From 340ecf6266363c10a84f41bee76f13b777ae1c32 Mon Sep 17 00:00:00 2001 From: AdyenAutomationBot <38424300+AdyenAutomationBot@users.noreply.github.com> Date: Wed, 27 Aug 2025 11:51:40 +0000 Subject: [PATCH 1/2] false[adyen-sdk-automation] automated change --- .../acswebhooks/AbstractOpenApiSchema.java | 246 +- .../model/acswebhooks/AcsWebhooksHandler.java | 142 +- .../com/adyen/model/acswebhooks/Amount.java | 86 +- .../acswebhooks/AuthenticationDecision.java | 88 +- .../model/acswebhooks/AuthenticationInfo.java | 499 +- .../AuthenticationNotificationData.java | 132 +- .../AuthenticationNotificationRequest.java | 114 +- .../BalancePlatformNotificationResponse.java | 81 +- .../model/acswebhooks/ChallengeInfo.java | 166 +- .../com/adyen/model/acswebhooks/JSON.java | 96 +- .../com/adyen/model/acswebhooks/Purchase.java | 57 +- .../adyen/model/acswebhooks/PurchaseInfo.java | 55 +- .../RelayedAuthenticationRequest.java | 163 +- .../RelayedAuthenticationResponse.java | 70 +- .../com/adyen/model/acswebhooks/Resource.java | 68 +- .../adyen/model/acswebhooks/ServiceError.java | 54 +- .../balancecontrol/AbstractOpenApiSchema.java | 246 +- .../adyen/model/balancecontrol/Amount.java | 86 +- .../BalanceTransferRequest.java | 158 +- .../BalanceTransferResponse.java | 217 +- .../com/adyen/model/balancecontrol/JSON.java | 96 +- .../AULocalAccountIdentification.java | 89 +- .../AbstractOpenApiSchema.java | 246 +- .../model/balanceplatform/AccountHolder.java | 384 +- .../AccountHolderCapability.java | 267 +- .../balanceplatform/AccountHolderInfo.java | 265 +- .../AccountHolderUpdateRequest.java | 358 +- .../AccountSupportingEntityCapability.java | 234 +- .../ActiveNetworkTokensRestriction.java | 60 +- .../AdditionalBankIdentification.java | 141 +- ...ditionalBankIdentificationRequirement.java | 190 +- .../adyen/model/balanceplatform/Address.java | 138 +- .../balanceplatform/AddressRequirement.java | 91 +- .../adyen/model/balanceplatform/Amount.java | 86 +- .../AmountMinMaxRequirement.java | 71 +- .../AmountNonZeroDecimalsRequirement.java | 98 +- ...ssociationDelegatedAuthenticationData.java | 74 +- .../AssociationFinaliseRequest.java | 128 +- .../AssociationFinaliseResponse.java | 80 +- .../AssociationInitiateRequest.java | 103 +- .../AssociationInitiateResponse.java | 59 +- .../model/balanceplatform/Authentication.java | 85 +- .../balanceplatform/AuthorisedCardUsers.java | 60 +- .../BRLocalAccountIdentification.java | 77 +- .../adyen/model/balanceplatform/Balance.java | 72 +- .../model/balanceplatform/BalanceAccount.java | 286 +- .../balanceplatform/BalanceAccountBase.java | 284 +- .../balanceplatform/BalanceAccountInfo.java | 252 +- .../BalanceAccountUpdateRequest.java | 234 +- .../balanceplatform/BalancePlatform.java | 66 +- .../BalanceSweepConfigurationsResponse.java | 71 +- .../BalanceWebhookSetting.java | 93 +- .../BalanceWebhookSettingInfo.java | 149 +- .../BalanceWebhookSettingInfoUpdate.java | 167 +- .../model/balanceplatform/BankAccount.java | 55 +- .../BankAccountAccountIdentification.java | 1782 +++--- .../balanceplatform/BankAccountDetails.java | 174 +- ...kAccountIdentificationTypeRequirement.java | 150 +- ...ccountIdentificationValidationRequest.java | 76 +- ...alidationRequestAccountIdentification.java | 1822 +++--- .../balanceplatform/BankAccountModel.java | 106 +- .../balanceplatform/BankIdentification.java | 103 +- .../BrandVariantsRestriction.java | 97 +- .../model/balanceplatform/BulkAddress.java | 113 +- .../CALocalAccountIdentification.java | 103 +- .../CZLocalAccountIdentification.java | 107 +- .../balanceplatform/CapabilityProblem.java | 57 +- .../CapabilityProblemEntity.java | 108 +- .../CapabilityProblemEntityRecursive.java | 112 +- .../balanceplatform/CapabilitySettings.java | 138 +- .../model/balanceplatform/CapitalBalance.java | 69 +- .../balanceplatform/CapitalGrantAccount.java | 73 +- .../com/adyen/model/balanceplatform/Card.java | 252 +- .../balanceplatform/CardConfiguration.java | 369 +- .../adyen/model/balanceplatform/CardInfo.java | 196 +- .../model/balanceplatform/CardOrder.java | 133 +- .../model/balanceplatform/CardOrderItem.java | 125 +- .../CardOrderItemDeliveryStatus.java | 71 +- .../model/balanceplatform/Condition.java | 154 +- .../model/balanceplatform/ContactDetails.java | 64 +- .../model/balanceplatform/Counterparty.java | 74 +- .../CounterpartyBankRestriction.java | 56 +- .../CounterpartyTypesRestriction.java | 68 +- .../balanceplatform/CountriesRestriction.java | 70 +- .../CreateSweepConfigurationV2.java | 534 +- .../DKLocalAccountIdentification.java | 83 +- .../balanceplatform/DayOfWeekRestriction.java | 83 +- .../DefaultErrorResponseEntity.java | 92 +- .../DelegatedAuthenticationData.java | 68 +- .../balanceplatform/DeliveryAddress.java | 159 +- .../balanceplatform/DeliveryContact.java | 105 +- .../adyen/model/balanceplatform/Device.java | 111 +- .../model/balanceplatform/DeviceInfo.java | 102 +- .../DifferentCurrenciesRestriction.java | 84 +- .../adyen/model/balanceplatform/Duration.java | 104 +- .../EntryModesRestriction.java | 83 +- .../adyen/model/balanceplatform/Expiry.java | 49 +- .../com/adyen/model/balanceplatform/Fee.java | 51 +- .../GetNetworkTokenResponse.java | 54 +- .../balanceplatform/GetTaxFormResponse.java | 77 +- .../model/balanceplatform/GrantLimit.java | 51 +- .../model/balanceplatform/GrantOffer.java | 113 +- .../model/balanceplatform/GrantOffers.java | 49 +- .../HKLocalAccountIdentification.java | 89 +- .../HULocalAccountIdentification.java | 68 +- .../com/adyen/model/balanceplatform/Href.java | 50 +- .../IbanAccountIdentification.java | 86 +- .../IbanAccountIdentificationRequirement.java | 110 +- .../InternationalTransactionRestriction.java | 84 +- .../model/balanceplatform/InvalidField.java | 48 +- .../com/adyen/model/balanceplatform/JSON.java | 96 +- .../com/adyen/model/balanceplatform/Link.java | 85 +- .../ListNetworkTokensResponse.java | 55 +- .../MatchingTransactionsRestriction.java | 60 +- .../MatchingValuesRestriction.java | 74 +- .../balanceplatform/MccsRestriction.java | 54 +- .../balanceplatform/MerchantAcquirerPair.java | 48 +- .../MerchantNamesRestriction.java | 62 +- .../balanceplatform/MerchantsRestriction.java | 53 +- .../NOLocalAccountIdentification.java | 68 +- .../NZLocalAccountIdentification.java | 92 +- .../com/adyen/model/balanceplatform/Name.java | 50 +- .../model/balanceplatform/NetworkToken.java | 180 +- .../NetworkTokenActivationDataRequest.java | 95 +- .../NetworkTokenActivationDataResponse.java | 98 +- .../NetworkTokenRequestor.java | 48 +- .../NumberAndBicAccountIdentification.java | 129 +- .../PLLocalAccountIdentification.java | 92 +- .../PaginatedAccountHoldersResponse.java | 71 +- .../PaginatedBalanceAccountsResponse.java | 77 +- .../PaginatedGetCardOrderItemResponse.java | 71 +- .../PaginatedGetCardOrderResponse.java | 68 +- .../PaginatedPaymentInstrumentsResponse.java | 78 +- .../balanceplatform/PaymentInstrument.java | 431 +- ...tionalBankAccountIdentificationsInner.java | 348 +- .../PaymentInstrumentGroup.java | 88 +- .../PaymentInstrumentGroupInfo.java | 88 +- .../PaymentInstrumentInfo.java | 342 +- .../PaymentInstrumentRequirement.java | 200 +- .../PaymentInstrumentRevealInfo.java | 61 +- .../PaymentInstrumentRevealRequest.java | 107 +- .../PaymentInstrumentRevealResponse.java | 56 +- .../PaymentInstrumentUpdateRequest.java | 247 +- .../adyen/model/balanceplatform/Phone.java | 99 +- .../model/balanceplatform/PhoneNumber.java | 101 +- .../balanceplatform/PinChangeRequest.java | 106 +- .../balanceplatform/PinChangeResponse.java | 78 +- .../PlatformPaymentConfiguration.java | 106 +- .../ProcessingTypesRestriction.java | 86 +- .../balanceplatform/PublicKeyResponse.java | 49 +- .../RegisterSCAFinalResponse.java | 50 +- .../balanceplatform/RegisterSCARequest.java | 106 +- .../balanceplatform/RegisterSCAResponse.java | 85 +- .../balanceplatform/RemediatingAction.java | 50 +- .../model/balanceplatform/Repayment.java | 80 +- .../model/balanceplatform/RepaymentTerm.java | 63 +- .../balanceplatform/RestServiceError.java | 107 +- .../balanceplatform/RevealPinRequest.java | 91 +- .../balanceplatform/RevealPinResponse.java | 54 +- .../model/balanceplatform/RiskScores.java | 86 +- .../RiskScoresRestriction.java | 55 +- .../SELocalAccountIdentification.java | 119 +- .../SGLocalAccountIdentification.java | 71 +- .../SameAmountRestriction.java | 54 +- .../SameCounterpartyRestriction.java | 57 +- .../SearchRegisteredDevicesResponse.java | 84 +- .../model/balanceplatform/SettingType.java | 16 +- .../SourceAccountTypesRestriction.java | 74 +- .../model/balanceplatform/StringMatch.java | 84 +- .../balanceplatform/SweepConfigurationV2.java | 538 +- .../balanceplatform/SweepCounterparty.java | 172 +- .../model/balanceplatform/SweepSchedule.java | 162 +- .../adyen/model/balanceplatform/Target.java | 122 +- .../model/balanceplatform/TargetUpdate.java | 122 +- .../balanceplatform/ThresholdRepayment.java | 54 +- .../model/balanceplatform/TimeOfDay.java | 86 +- .../balanceplatform/TimeOfDayRestriction.java | 55 +- .../TokenRequestorsRestriction.java | 61 +- .../TotalAmountRestriction.java | 55 +- .../balanceplatform/TransactionRule.java | 436 +- .../TransactionRuleEntityKey.java | 72 +- .../balanceplatform/TransactionRuleInfo.java | 435 +- .../TransactionRuleInterval.java | 264 +- .../TransactionRuleResponse.java | 54 +- .../TransactionRuleRestrictions.java | 420 +- .../TransactionRulesResponse.java | 55 +- .../model/balanceplatform/TransferRoute.java | 242 +- .../balanceplatform/TransferRouteRequest.java | 265 +- .../TransferRouteRequirementsInner.java | 1211 ++-- .../TransferRouteResponse.java | 70 +- .../UKLocalAccountIdentification.java | 89 +- .../USInstantPayoutAddressRequirement.java | 95 +- .../USInternationalAchAddressRequirement.java | 95 +- ...USInternationalAchPriorityRequirement.java | 95 +- .../USLocalAccountIdentification.java | 121 +- .../UpdateNetworkTokenRequest.java | 84 +- .../UpdatePaymentInstrument.java | 435 +- .../UpdateSweepConfigurationV2.java | 541 +- .../balanceplatform/VerificationDeadline.java | 115 +- .../balanceplatform/VerificationError.java | 147 +- .../VerificationErrorRecursive.java | 151 +- ...WalletProviderAccountScoreRestriction.java | 66 +- .../WalletProviderDeviceScore.java | 57 +- .../WalletProviderDeviceType.java | 74 +- .../model/balanceplatform/WebhookSetting.java | 110 +- .../balanceplatform/WebhookSettings.java | 49 +- .../AbstractOpenApiSchema.java | 246 +- ...anceAccountBalanceNotificationRequest.java | 114 +- .../BalanceNotificationData.java | 119 +- .../BalancePlatformNotificationResponse.java | 81 +- .../BalanceWebhooksHandler.java | 99 +- .../adyen/model/balancewebhooks/Balances.java | 51 +- .../com/adyen/model/balancewebhooks/JSON.java | 96 +- .../binlookup/AbstractOpenApiSchema.java | 246 +- .../com/adyen/model/binlookup/Amount.java | 86 +- .../com/adyen/model/binlookup/BinDetail.java | 44 +- .../com/adyen/model/binlookup/CardBin.java | 208 +- .../binlookup/CostEstimateAssumptions.java | 68 +- .../model/binlookup/CostEstimateRequest.java | 345 +- .../model/binlookup/CostEstimateResponse.java | 72 +- .../model/binlookup/DSPublicKeyDetail.java | 112 +- .../java/com/adyen/model/binlookup/JSON.java | 96 +- .../model/binlookup/MerchantDetails.java | 105 +- .../com/adyen/model/binlookup/Recurring.java | 173 +- .../adyen/model/binlookup/ServiceError.java | 82 +- .../binlookup/ThreeDS2CardRangeDetail.java | 109 +- .../binlookup/ThreeDSAvailabilityRequest.java | 113 +- .../ThreeDSAvailabilityResponse.java | 90 +- .../model/checkout/AbstractOpenApiSchema.java | 246 +- .../com/adyen/model/checkout/AccountInfo.java | 475 +- .../com/adyen/model/checkout/AcctInfo.java | 560 +- .../com/adyen/model/checkout/AchDetails.java | 313 +- .../checkout/AdditionalData3DSecure.java | 371 +- .../model/checkout/AdditionalDataAirline.java | 1012 +--- .../checkout/AdditionalDataCarRental.java | 749 +-- .../model/checkout/AdditionalDataCommon.java | 858 +-- .../model/checkout/AdditionalDataLevel23.java | 882 +-- .../model/checkout/AdditionalDataLodging.java | 555 +- .../checkout/AdditionalDataOpenInvoice.java | 595 +- .../model/checkout/AdditionalDataOpi.java | 81 +- .../model/checkout/AdditionalDataRatepay.java | 137 +- .../model/checkout/AdditionalDataRetry.java | 182 +- .../model/checkout/AdditionalDataRisk.java | 587 +- .../AdditionalDataRiskStandalone.java | 249 +- .../checkout/AdditionalDataSubMerchant.java | 533 +- .../AdditionalDataTemporaryServices.java | 359 +- .../model/checkout/AdditionalDataWallets.java | 76 +- .../com/adyen/model/checkout/Address.java | 138 +- .../adyen/model/checkout/AffirmDetails.java | 62 +- .../adyen/model/checkout/AfterpayDetails.java | 138 +- .../java/com/adyen/model/checkout/Agency.java | 86 +- .../com/adyen/model/checkout/Airline.java | 353 +- .../model/checkout/AmazonPayDetails.java | 119 +- .../java/com/adyen/model/checkout/Amount.java | 86 +- .../com/adyen/model/checkout/Amounts.java | 90 +- .../com/adyen/model/checkout/AncvDetails.java | 126 +- .../model/checkout/AndroidPayDetails.java | 62 +- .../adyen/model/checkout/ApplePayDetails.java | 185 +- .../model/checkout/ApplePayDonations.java | 185 +- .../checkout/ApplePaySessionRequest.java | 129 +- .../checkout/ApplePaySessionResponse.java | 65 +- .../adyen/model/checkout/ApplicationInfo.java | 116 +- .../model/checkout/AuthenticationData.java | 154 +- .../checkout/BacsDirectDebitDetails.java | 168 +- .../model/checkout/BalanceCheckRequest.java | 1294 ++--- .../model/checkout/BalanceCheckResponse.java | 223 +- .../adyen/model/checkout/BillDeskDetails.java | 65 +- .../adyen/model/checkout/BillingAddress.java | 138 +- .../com/adyen/model/checkout/BlikDetails.java | 126 +- .../com/adyen/model/checkout/BrowserInfo.java | 155 +- .../model/checkout/CancelOrderRequest.java | 55 +- .../model/checkout/CancelOrderResponse.java | 82 +- .../model/checkout/CardBrandDetails.java | 50 +- .../com/adyen/model/checkout/CardDetails.java | 496 +- .../model/checkout/CardDetailsRequest.java | 170 +- .../model/checkout/CardDetailsResponse.java | 99 +- .../adyen/model/checkout/CardDonations.java | 496 +- .../adyen/model/checkout/CashAppDetails.java | 150 +- .../model/checkout/CellulantDetails.java | 65 +- .../model/checkout/CheckoutAwaitAction.java | 71 +- .../model/checkout/CheckoutBankAccount.java | 224 +- .../checkout/CheckoutBankTransferAction.java | 123 +- ...CheckoutDelegatedAuthenticationAction.java | 103 +- .../CheckoutNativeRedirectAction.java | 107 +- .../model/checkout/CheckoutOrderResponse.java | 73 +- .../model/checkout/CheckoutPaymentMethod.java | 4976 ++++++++--------- .../model/checkout/CheckoutQrCodeAction.java | 77 +- .../checkout/CheckoutRedirectAction.java | 83 +- .../model/checkout/CheckoutSDKAction.java | 71 +- .../CheckoutSessionInstallmentOption.java | 131 +- .../CheckoutSessionThreeDS2RequestData.java | 160 +- .../checkout/CheckoutThreeDS2Action.java | 83 +- .../model/checkout/CheckoutVoucherAction.java | 207 +- .../com/adyen/model/checkout/CommonField.java | 50 +- .../com/adyen/model/checkout/Company.java | 57 +- .../CreateCheckoutSessionRequest.java | 1782 ++---- .../CreateCheckoutSessionResponse.java | 2014 ++----- .../model/checkout/CreateOrderRequest.java | 94 +- .../model/checkout/CreateOrderResponse.java | 218 +- .../checkout/DefaultErrorResponseEntity.java | 92 +- .../adyen/model/checkout/DeliveryAddress.java | 159 +- .../adyen/model/checkout/DeliveryMethod.java | 96 +- .../DetailsRequestAuthenticationData.java | 89 +- .../model/checkout/DeviceRenderOptions.java | 96 +- .../com/adyen/model/checkout/DokuDetails.java | 71 +- .../com/adyen/model/checkout/Donation.java | 184 +- .../model/checkout/DonationCampaign.java | 116 +- .../checkout/DonationCampaignsRequest.java | 72 +- .../checkout/DonationCampaignsResponse.java | 58 +- .../model/checkout/DonationPaymentMethod.java | 681 +-- .../checkout/DonationPaymentRequest.java | 1220 ++-- .../checkout/DonationPaymentResponse.java | 174 +- .../model/checkout/DragonpayDetails.java | 86 +- .../checkout/EBankingFinlandDetails.java | 68 +- .../checkout/EcontextVoucherDetails.java | 104 +- .../com/adyen/model/checkout/EftDetails.java | 202 +- .../model/checkout/EncryptedOrderData.java | 48 +- .../model/checkout/EnhancedSchemeData.java | 54 +- .../model/checkout/ExternalPlatform.java | 48 +- .../adyen/model/checkout/FastlaneDetails.java | 126 +- .../com/adyen/model/checkout/ForexQuote.java | 116 +- .../model/checkout/FraudCheckResult.java | 48 +- .../com/adyen/model/checkout/FraudResult.java | 55 +- .../com/adyen/model/checkout/FundOrigin.java | 71 +- .../adyen/model/checkout/FundRecipient.java | 204 +- .../GenericIssuerPaymentMethodDetails.java | 157 +- .../model/checkout/GooglePayDetails.java | 224 +- .../model/checkout/GooglePayDonations.java | 228 +- .../adyen/model/checkout/IdealDetails.java | 144 +- .../adyen/model/checkout/IdealDonations.java | 144 +- .../com/adyen/model/checkout/InputDetail.java | 91 +- .../model/checkout/InstallmentOption.java | 104 +- .../adyen/model/checkout/Installments.java | 157 +- .../adyen/model/checkout/InvalidField.java | 48 +- .../java/com/adyen/model/checkout/Item.java | 49 +- .../java/com/adyen/model/checkout/JSON.java | 96 +- .../adyen/model/checkout/KlarnaDetails.java | 142 +- .../java/com/adyen/model/checkout/Leg.java | 318 +- .../com/adyen/model/checkout/LineItem.java | 126 +- .../ListStoredPaymentMethodsResponse.java | 106 +- .../com/adyen/model/checkout/Mandate.java | 228 +- .../model/checkout/MasterpassDetails.java | 105 +- .../adyen/model/checkout/MbwayDetails.java | 88 +- .../adyen/model/checkout/MerchantDevice.java | 48 +- .../model/checkout/MerchantRiskIndicator.java | 323 +- .../model/checkout/MobilePayDetails.java | 62 +- .../adyen/model/checkout/MolPayDetails.java | 74 +- .../java/com/adyen/model/checkout/Name.java | 50 +- .../model/checkout/OpenInvoiceDetails.java | 142 +- .../com/adyen/model/checkout/Passenger.java | 152 +- .../PayByBankAISDirectDebitDetails.java | 143 +- .../model/checkout/PayByBankDetails.java | 65 +- .../adyen/model/checkout/PayPalDetails.java | 159 +- .../adyen/model/checkout/PayPayDetails.java | 120 +- .../adyen/model/checkout/PayToDetails.java | 143 +- .../model/checkout/PayToPaymentMethod.java | 77 +- .../adyen/model/checkout/PayUUpiDetails.java | 164 +- .../model/checkout/PayWithGoogleDetails.java | 208 +- .../checkout/PayWithGoogleDonations.java | 208 +- .../com/adyen/model/checkout/Payment.java | 134 +- .../checkout/PaymentAmountUpdateRequest.java | 196 +- .../checkout/PaymentAmountUpdateResponse.java | 236 +- .../model/checkout/PaymentCancelRequest.java | 68 +- .../model/checkout/PaymentCancelResponse.java | 102 +- .../model/checkout/PaymentCaptureRequest.java | 183 +- .../checkout/PaymentCaptureResponse.java | 214 +- .../checkout/PaymentCompletionDetails.java | 251 +- .../adyen/model/checkout/PaymentDetails.java | 62 +- .../model/checkout/PaymentDetailsRequest.java | 170 +- .../checkout/PaymentDetailsResponse.java | 490 +- .../PaymentDetailsResponseAction.java | 323 +- .../model/checkout/PaymentLinkRequest.java | 1147 +--- .../model/checkout/PaymentLinkResponse.java | 1244 ++--- .../adyen/model/checkout/PaymentMethod.java | 137 +- .../model/checkout/PaymentMethodGroup.java | 60 +- .../model/checkout/PaymentMethodIssuer.java | 69 +- .../model/checkout/PaymentMethodToStore.java | 180 +- .../model/checkout/PaymentMethodUPIApps.java | 53 +- .../model/checkout/PaymentMethodsRequest.java | 579 +- .../checkout/PaymentMethodsResponse.java | 64 +- .../model/checkout/PaymentRefundRequest.java | 263 +- .../model/checkout/PaymentRefundResponse.java | 277 +- .../adyen/model/checkout/PaymentRequest.java | 1918 ++----- .../adyen/model/checkout/PaymentResponse.java | 525 +- .../model/checkout/PaymentResponseAction.java | 1061 ++-- .../checkout/PaymentReversalRequest.java | 68 +- .../checkout/PaymentReversalResponse.java | 102 +- .../checkout/PaypalUpdateOrderRequest.java | 109 +- .../checkout/PaypalUpdateOrderResponse.java | 85 +- .../java/com/adyen/model/checkout/Phone.java | 61 +- .../com/adyen/model/checkout/PixDetails.java | 133 +- .../adyen/model/checkout/PixRecurring.java | 220 +- .../checkout/PlatformChargebackLogic.java | 131 +- .../com/adyen/model/checkout/PseDetails.java | 77 +- .../model/checkout/RakutenPayDetails.java | 120 +- .../adyen/model/checkout/RatepayDetails.java | 138 +- .../com/adyen/model/checkout/Recurring.java | 173 +- .../ResponseAdditionalData3DSecure.java | 157 +- .../ResponseAdditionalDataBillingAddress.java | 193 +- .../checkout/ResponseAdditionalDataCard.java | 289 +- .../ResponseAdditionalDataCommon.java | 1518 ++--- .../ResponseAdditionalDataDomesticError.java | 110 +- .../ResponseAdditionalDataInstallments.java | 504 +- .../ResponseAdditionalDataNetworkTokens.java | 110 +- .../checkout/ResponseAdditionalDataOpi.java | 86 +- .../checkout/ResponseAdditionalDataSepa.java | 146 +- .../checkout/ResponseAdditionalDataSwish.java | 131 + .../model/checkout/ResponsePaymentMethod.java | 66 +- .../java/com/adyen/model/checkout/Result.java | 20 +- .../com/adyen/model/checkout/RiskData.java | 100 +- .../adyen/model/checkout/RivertyDetails.java | 183 +- .../adyen/model/checkout/SDKEphemPubKey.java | 51 +- .../model/checkout/SamsungPayDetails.java | 167 +- .../checkout/SepaDirectDebitDetails.java | 164 +- .../adyen/model/checkout/ServiceError.java | 82 +- .../model/checkout/SessionResultResponse.java | 193 +- .../checkout/ShopperIdPaymentMethod.java | 71 +- .../checkout/ShopperInteractionDevice.java | 54 +- .../java/com/adyen/model/checkout/Split.java | 348 +- .../com/adyen/model/checkout/SplitAmount.java | 92 +- .../StandalonePaymentCancelRequest.java | 120 +- .../StandalonePaymentCancelResponse.java | 119 +- .../model/checkout/StoredPaymentMethod.java | 208 +- .../checkout/StoredPaymentMethodDetails.java | 128 +- .../checkout/StoredPaymentMethodRequest.java | 208 +- .../checkout/StoredPaymentMethodResource.java | 293 +- .../adyen/model/checkout/SubInputDetail.java | 62 +- .../com/adyen/model/checkout/SubMerchant.java | 156 +- .../adyen/model/checkout/SubMerchantInfo.java | 245 +- .../com/adyen/model/checkout/Surcharge.java | 89 +- .../com/adyen/model/checkout/TaxTotal.java | 51 +- .../model/checkout/ThreeDS2RequestData.java | 1063 ++-- .../model/checkout/ThreeDS2RequestFields.java | 964 +--- .../model/checkout/ThreeDS2ResponseData.java | 242 +- .../adyen/model/checkout/ThreeDS2Result.java | 340 +- .../model/checkout/ThreeDSRequestData.java | 220 +- .../ThreeDSRequestorAuthenticationInfo.java | 181 +- ...reeDSRequestorPriorAuthenticationInfo.java | 213 +- .../model/checkout/ThreeDSecureData.java | 288 +- .../java/com/adyen/model/checkout/Ticket.java | 107 +- .../adyen/model/checkout/TravelAgency.java | 95 +- .../adyen/model/checkout/TwintDetails.java | 126 +- .../model/checkout/UPIPaymentMethod.java | 78 +- .../checkout/UpdatePaymentLinkRequest.java | 67 +- .../model/checkout/UpiCollectDetails.java | 193 +- .../model/checkout/UpiIntentDetails.java | 160 +- .../adyen/model/checkout/UtilityRequest.java | 48 +- .../adyen/model/checkout/UtilityResponse.java | 66 +- .../checkout/ValidateShopperIdRequest.java | 94 +- .../checkout/ValidateShopperIdResponse.java | 70 +- .../adyen/model/checkout/VippsDetails.java | 136 +- .../model/checkout/VisaCheckoutDetails.java | 125 +- .../model/checkout/WeChatPayDetails.java | 62 +- .../checkout/WeChatPayMiniProgramDetails.java | 86 +- .../com/adyen/model/checkout/ZipDetails.java | 144 +- .../AbstractOpenApiSchema.java | 246 +- .../configurationwebhooks/AccountHolder.java | 393 +- .../AccountHolderCapability.java | 313 +- .../AccountHolderNotificationData.java | 64 +- .../AccountHolderNotificationRequest.java | 111 +- .../AccountSupportingEntityCapability.java | 286 +- .../model/configurationwebhooks/Address.java | 138 +- .../model/configurationwebhooks/Amount.java | 86 +- .../configurationwebhooks/Authentication.java | 85 +- .../model/configurationwebhooks/Balance.java | 72 +- .../configurationwebhooks/BalanceAccount.java | 288 +- .../BalanceAccountNotificationData.java | 67 +- .../BalanceAccountNotificationRequest.java | 117 +- .../BalancePlatformNotificationResponse.java | 81 +- .../BankAccountDetails.java | 174 +- .../BankScoreSignalTriggeredData.java | 134 +- .../configurationwebhooks/BulkAddress.java | 113 +- .../CapabilityProblem.java | 57 +- .../CapabilityProblemEntity.java | 108 +- .../CapabilityProblemEntityRecursive.java | 112 +- .../CapabilitySettings.java | 138 +- .../model/configurationwebhooks/Card.java | 259 +- .../CardConfiguration.java | 369 +- .../configurationwebhooks/CardOrderItem.java | 119 +- .../CardOrderItemDeliveryStatus.java | 71 +- .../CardOrderNotificationRequest.java | 96 +- .../ConfigurationWebhooksHandler.java | 336 +- .../configurationwebhooks/ContactDetails.java | 64 +- .../DeliveryAddress.java | 159 +- .../DeliveryContact.java | 105 +- .../model/configurationwebhooks/Device.java | 68 +- .../model/configurationwebhooks/Expiry.java | 49 +- .../IbanAccountIdentification.java | 86 +- .../model/configurationwebhooks/JSON.java | 96 +- .../model/configurationwebhooks/Name.java | 50 +- .../NetworkTokenNotificationDataV2.java | 270 +- .../NetworkTokenNotificationRequest.java | 111 +- .../NetworkTokenRequestor.java | 48 +- .../NetworkTokenRiskRuleData.java | 60 +- .../NetworkTokenRiskRuleSource.java | 81 +- .../NetworkTokenTransactionRulesResult.java | 122 +- .../NetworkTokenTriggeredRiskRule.java | 85 +- .../PaymentInstrument.java | 434 +- ...tionalBankAccountIdentificationsInner.java | 348 +- .../PaymentInstrumentNotificationData.java | 68 +- .../PaymentNotificationRequest.java | 102 +- .../model/configurationwebhooks/Phone.java | 99 +- .../configurationwebhooks/PhoneNumber.java | 101 +- .../PlatformPaymentConfiguration.java | 106 +- .../RemediatingAction.java | 50 +- .../model/configurationwebhooks/Resource.java | 68 +- .../ResourceReference.java | 48 +- .../ScoreNotificationRequest.java | 96 +- .../SweepConfigurationNotificationData.java | 82 +- ...SweepConfigurationNotificationRequest.java | 120 +- .../SweepConfigurationV2.java | 528 +- .../SweepCounterparty.java | 172 +- .../configurationwebhooks/SweepSchedule.java | 162 +- .../TokenAuthentication.java | 66 +- .../ValidationFacts.java | 106 +- .../VerificationDeadline.java | 104 +- .../VerificationError.java | 147 +- .../VerificationErrorRecursive.java | 151 +- .../model/configurationwebhooks/Wallet.java | 294 +- .../dataprotection/AbstractOpenApiSchema.java | 246 +- .../com/adyen/model/dataprotection/JSON.java | 96 +- .../model/dataprotection/ServiceError.java | 54 +- .../SubjectErasureByPspReferenceRequest.java | 99 +- .../SubjectErasureResponse.java | 64 +- .../model/disputes/AbstractOpenApiSchema.java | 246 +- .../model/disputes/AcceptDisputeRequest.java | 65 +- .../model/disputes/AcceptDisputeResponse.java | 58 +- .../model/disputes/DefendDisputeRequest.java | 68 +- .../model/disputes/DefendDisputeResponse.java | 58 +- .../adyen/model/disputes/DefenseDocument.java | 53 +- .../model/disputes/DefenseDocumentType.java | 115 +- .../adyen/model/disputes/DefenseReason.java | 78 +- .../model/disputes/DefenseReasonsRequest.java | 65 +- .../disputes/DefenseReasonsResponse.java | 64 +- .../DeleteDefenseDocumentRequest.java | 78 +- .../DeleteDefenseDocumentResponse.java | 70 +- .../model/disputes/DisputeServiceResult.java | 48 +- .../java/com/adyen/model/disputes/JSON.java | 96 +- .../adyen/model/disputes/ServiceError.java | 54 +- .../SupplyDefenseDocumentRequest.java | 81 +- .../SupplyDefenseDocumentResponse.java | 70 +- .../AbstractOpenApiSchema.java | 246 +- .../adyen/model/disputewebhooks/Amount.java | 86 +- .../BalancePlatformNotificationResponse.java | 81 +- .../DisputeEventNotification.java | 156 +- .../DisputeNotificationRequest.java | 75 +- .../DisputeWebhooksHandler.java | 97 +- .../com/adyen/model/disputewebhooks/JSON.java | 96 +- .../AULocalAccountIdentification.java | 89 +- .../AbstractOpenApiSchema.java | 246 +- .../AcceptTermsOfServiceRequest.java | 84 +- .../AcceptTermsOfServiceResponse.java | 148 +- .../AdditionalBankIdentification.java | 141 +- .../model/legalentitymanagement/Address.java | 159 +- .../model/legalentitymanagement/Amount.java | 50 +- .../legalentitymanagement/Attachment.java | 104 +- .../BankAccountInfo.java | 103 +- .../BankAccountInfoAccountIdentification.java | 1694 +++--- .../legalentitymanagement/BirthData.java | 44 +- .../legalentitymanagement/BusinessLine.java | 282 +- .../BusinessLineInfo.java | 268 +- .../BusinessLineInfoUpdate.java | 142 +- .../legalentitymanagement/BusinessLines.java | 49 +- .../CALocalAccountIdentification.java | 103 +- .../CZLocalAccountIdentification.java | 107 +- .../CalculatePciStatusRequest.java | 119 +- .../CalculatePciStatusResponse.java | 68 +- ...CalculateTermsOfServiceStatusResponse.java | 104 +- .../CapabilityProblem.java | 63 +- .../CapabilityProblemEntity.java | 99 +- .../CapabilityProblemEntityRecursive.java | 103 +- .../CapabilitySettings.java | 98 +- ...kTaxElectronicDeliveryConsentResponse.java | 56 +- .../DKLocalAccountIdentification.java | 83 +- .../DataReviewConfirmationResponse.java | 56 +- .../model/legalentitymanagement/Document.java | 273 +- .../legalentitymanagement/DocumentPage.java | 83 +- .../DocumentReference.java | 65 +- .../EntityReference.java | 44 +- .../FinancialReport.java | 82 +- .../GeneratePciDescriptionRequest.java | 142 +- .../GeneratePciDescriptionResponse.java | 116 +- ...cceptedTermsOfServiceDocumentResponse.java | 152 +- .../GetPciQuestionnaireInfosResponse.java | 61 +- .../GetPciQuestionnaireResponse.java | 96 +- ...TermsOfServiceAcceptanceInfosResponse.java | 64 +- .../GetTermsOfServiceDocumentRequest.java | 161 +- .../GetTermsOfServiceDocumentResponse.java | 193 +- .../HKLocalAccountIdentification.java | 89 +- .../HULocalAccountIdentification.java | 68 +- .../IbanAccountIdentification.java | 86 +- .../IdentificationData.java | 175 +- .../legalentitymanagement/Individual.java | 124 +- .../model/legalentitymanagement/JSON.java | 96 +- .../legalentitymanagement/LegalEntity.java | 314 +- .../LegalEntityAssociation.java | 307 +- .../LegalEntityCapability.java | 189 +- .../LegalEntityInfo.java | 234 +- .../LegalEntityInfoRequiredType.java | 250 +- .../NOLocalAccountIdentification.java | 68 +- .../NZLocalAccountIdentification.java | 92 +- .../model/legalentitymanagement/Name.java | 48 +- .../NumberAndBicAccountIdentification.java | 129 +- .../legalentitymanagement/OnboardingLink.java | 65 +- .../OnboardingLinkInfo.java | 118 +- .../OnboardingLinkSettings.java | 577 +- .../OnboardingTheme.java | 58 +- .../OnboardingThemes.java | 53 +- .../legalentitymanagement/Organization.java | 288 +- .../legalentitymanagement/OwnerEntity.java | 100 +- .../PLLocalAccountIdentification.java | 92 +- .../PciDocumentInfo.java | 86 +- .../PciSigningRequest.java | 86 +- .../PciSigningResponse.java | 80 +- .../legalentitymanagement/PhoneNumber.java | 79 +- .../RemediatingAction.java | 62 +- .../SELocalAccountIdentification.java | 119 +- .../SGLocalAccountIdentification.java | 71 +- .../legalentitymanagement/ServiceError.java | 54 +- ...etTaxElectronicDeliveryConsentRequest.java | 56 +- .../SoleProprietorship.java | 184 +- .../legalentitymanagement/SourceOfFunds.java | 150 +- .../legalentitymanagement/StockData.java | 87 +- .../SupportingEntityCapability.java | 102 +- .../legalentitymanagement/TaxInformation.java | 90 +- .../TaxReportingClassification.java | 200 +- .../TermsOfServiceAcceptanceInfo.java | 149 +- .../TransferInstrument.java | 137 +- .../TransferInstrumentInfo.java | 111 +- .../TransferInstrumentReference.java | 104 +- .../model/legalentitymanagement/Trust.java | 241 +- .../UKLocalAccountIdentification.java | 89 +- .../USLocalAccountIdentification.java | 121 +- .../UndefinedBeneficiary.java | 54 +- .../UnincorporatedPartnership.java | 225 +- .../VerificationDeadline.java | 124 +- .../VerificationError.java | 178 +- .../VerificationErrorRecursive.java | 173 +- .../VerificationErrors.java | 52 +- .../model/legalentitymanagement/WebData.java | 56 +- .../WebDataExemption.java | 70 +- .../management/AbstractOpenApiSchema.java | 246 +- .../com/adyen/model/management/AccelInfo.java | 118 +- .../management/AdditionalCommission.java | 60 +- .../model/management/AdditionalSettings.java | 106 +- .../AdditionalSettingsResponse.java | 127 +- .../com/adyen/model/management/Address.java | 108 +- .../adyen/model/management/AffirmInfo.java | 44 +- .../model/management/AfterpayTouchInfo.java | 45 +- .../model/management/AlipayPlusInfo.java | 48 +- .../adyen/model/management/AllowedOrigin.java | 55 +- .../management/AllowedOriginsResponse.java | 52 +- .../com/adyen/model/management/AmexInfo.java | 148 +- .../com/adyen/model/management/Amount.java | 86 +- .../adyen/model/management/AndroidApp.java | 183 +- .../model/management/AndroidAppError.java | 76 +- .../model/management/AndroidAppsResponse.java | 52 +- .../model/management/AndroidCertificate.java | 83 +- .../AndroidCertificatesResponse.java | 55 +- .../adyen/model/management/ApiCredential.java | 221 +- .../model/management/ApiCredentialLinks.java | 97 +- .../adyen/model/management/ApplePayInfo.java | 72 +- .../com/adyen/model/management/BcmcInfo.java | 62 +- .../management/BillingEntitiesResponse.java | 52 +- .../adyen/model/management/BillingEntity.java | 79 +- .../model/management/CardholderReceipt.java | 75 +- .../model/management/CartesBancairesInfo.java | 62 +- .../adyen/model/management/ClearpayInfo.java | 44 +- .../adyen/model/management/Commission.java | 45 +- .../com/adyen/model/management/Company.java | 132 +- .../management/CompanyApiCredential.java | 263 +- .../adyen/model/management/CompanyLinks.java | 76 +- .../adyen/model/management/CompanyUser.java | 176 +- .../adyen/model/management/Connectivity.java | 114 +- .../com/adyen/model/management/Contact.java | 72 +- .../CreateAllowedOriginRequest.java | 61 +- .../CreateApiCredentialResponse.java | 235 +- .../CreateCompanyApiCredentialRequest.java | 151 +- .../CreateCompanyApiCredentialResponse.java | 309 +- .../management/CreateCompanyUserRequest.java | 212 +- .../management/CreateCompanyUserResponse.java | 189 +- .../CreateCompanyWebhookRequest.java | 528 +- .../CreateMerchantApiCredentialRequest.java | 121 +- .../management/CreateMerchantRequest.java | 178 +- .../management/CreateMerchantResponse.java | 147 +- .../management/CreateMerchantUserRequest.java | 161 +- .../CreateMerchantWebhookRequest.java | 408 +- .../model/management/CreateUserResponse.java | 135 +- .../com/adyen/model/management/Currency.java | 123 +- .../model/management/CustomNotification.java | 171 +- .../adyen/model/management/DataCenter.java | 104 +- .../adyen/model/management/DinersInfo.java | 152 +- .../com/adyen/model/management/EventUrl.java | 68 +- .../management/ExternalTerminalAction.java | 107 +- .../management/GenerateApiKeyResponse.java | 47 +- .../management/GenerateClientKeyResponse.java | 50 +- .../management/GenerateHmacKeyResponse.java | 47 +- .../management/GenericPmWithTdiInfo.java | 61 +- .../adyen/model/management/GooglePayInfo.java | 84 +- .../com/adyen/model/management/Gratuity.java | 144 +- .../com/adyen/model/management/Hardware.java | 106 +- .../com/adyen/model/management/IdName.java | 49 +- .../management/InstallAndroidAppDetails.java | 68 +- .../InstallAndroidCertificateDetails.java | 77 +- .../adyen/model/management/InvalidField.java | 48 +- .../com/adyen/model/management/JCBInfo.java | 191 +- .../java/com/adyen/model/management/JSON.java | 96 +- .../java/com/adyen/model/management/Key.java | 102 +- .../adyen/model/management/KlarnaInfo.java | 92 +- .../com/adyen/model/management/Links.java | 51 +- .../adyen/model/management/LinksElement.java | 50 +- .../ListCompanyApiCredentialsResponse.java | 84 +- .../model/management/ListCompanyResponse.java | 66 +- .../management/ListCompanyUsersResponse.java | 69 +- .../ListExternalTerminalActionsResponse.java | 61 +- .../ListMerchantApiCredentialsResponse.java | 84 +- .../management/ListMerchantResponse.java | 66 +- .../management/ListMerchantUsersResponse.java | 69 +- .../model/management/ListStoresResponse.java | 66 +- .../management/ListTerminalsResponse.java | 66 +- .../management/ListWebhooksResponse.java | 69 +- .../adyen/model/management/Localization.java | 48 +- .../java/com/adyen/model/management/Logo.java | 53 +- .../model/management/MeApiCredential.java | 225 +- .../model/management/MealVoucherFRInfo.java | 73 +- .../com/adyen/model/management/Merchant.java | 306 +- .../adyen/model/management/MerchantLinks.java | 76 +- .../management/MinorUnitsMonetaryValue.java | 84 +- .../model/management/ModelConfiguration.java | 97 +- .../com/adyen/model/management/ModelFile.java | 50 +- .../java/com/adyen/model/management/Name.java | 50 +- .../com/adyen/model/management/Name2.java | 50 +- .../java/com/adyen/model/management/Nexo.java | 94 +- .../adyen/model/management/Notification.java | 125 +- .../model/management/NotificationUrl.java | 50 +- .../com/adyen/model/management/NyceInfo.java | 118 +- .../model/management/OfflineProcessing.java | 83 +- .../java/com/adyen/model/management/Opi.java | 52 +- .../com/adyen/model/management/OrderItem.java | 60 +- .../model/management/PaginationLinks.java | 85 +- .../com/adyen/model/management/Passcodes.java | 51 +- .../adyen/model/management/PayAtTable.java | 99 +- .../model/management/PayByBankPlaidInfo.java | 346 +- .../com/adyen/model/management/PayMeInfo.java | 48 +- .../adyen/model/management/PayPalInfo.java | 84 +- .../com/adyen/model/management/PayToInfo.java | 74 +- .../com/adyen/model/management/Payment.java | 99 +- .../adyen/model/management/PaymentMethod.java | 669 +-- .../management/PaymentMethodResponse.java | 91 +- .../management/PaymentMethodSetupInfo.java | 660 +-- .../model/management/PayoutSettings.java | 289 +- .../management/PayoutSettingsRequest.java | 151 +- .../management/PayoutSettingsResponse.java | 52 +- .../com/adyen/model/management/Profile.java | 359 +- .../com/adyen/model/management/PulseInfo.java | 118 +- .../model/management/ReceiptOptions.java | 109 +- .../model/management/ReceiptPrinting.java | 140 +- .../adyen/model/management/Referenced.java | 57 +- .../com/adyen/model/management/Refunds.java | 94 +- .../management/ReleaseUpdateDetails.java | 94 +- .../ReprocessAndroidAppResponse.java | 50 +- .../management/RequestActivationResponse.java | 51 +- .../model/management/RestServiceError.java | 107 +- .../ScheduleTerminalActionsRequest.java | 185 +- ...leTerminalActionsRequestActionDetails.java | 717 ++- .../ScheduleTerminalActionsResponse.java | 248 +- .../model/management/SepaDirectDebitInfo.java | 62 +- .../com/adyen/model/management/Settings.java | 66 +- .../model/management/ShippingLocation.java | 83 +- .../management/ShippingLocationsResponse.java | 55 +- .../com/adyen/model/management/Signature.java | 97 +- .../adyen/model/management/SodexoInfo.java | 48 +- .../adyen/model/management/SofortInfo.java | 50 +- .../model/management/SplitConfiguration.java | 65 +- .../management/SplitConfigurationList.java | 52 +- .../management/SplitConfigurationLogic.java | 781 +-- .../management/SplitConfigurationRule.java | 225 +- .../adyen/model/management/Standalone.java | 84 +- .../com/adyen/model/management/StarInfo.java | 118 +- .../com/adyen/model/management/Store.java | 309 +- .../model/management/StoreAndForward.java | 87 +- .../management/StoreCreationRequest.java | 253 +- .../StoreCreationWithMerchantCodeRequest.java | 301 +- .../adyen/model/management/StoreLocation.java | 105 +- .../management/StoreSplitConfiguration.java | 100 +- .../model/management/SubMerchantData.java | 111 +- .../model/management/SupportedCardTypes.java | 75 +- .../com/adyen/model/management/Surcharge.java | 79 +- .../com/adyen/model/management/SwishInfo.java | 47 +- .../com/adyen/model/management/TapToPay.java | 48 +- .../com/adyen/model/management/Terminal.java | 138 +- .../TerminalActionScheduleDetail.java | 51 +- .../model/management/TerminalAssignment.java | 129 +- .../management/TerminalConnectivity.java | 82 +- .../TerminalConnectivityBluetooth.java | 57 +- .../TerminalConnectivityCellular.java | 121 +- .../TerminalConnectivityEthernet.java | 54 +- .../management/TerminalConnectivityWifi.java | 54 +- .../management/TerminalInstructions.java | 65 +- .../management/TerminalModelsResponse.java | 52 +- .../adyen/model/management/TerminalOrder.java | 126 +- .../management/TerminalOrderRequest.java | 93 +- .../management/TerminalOrdersResponse.java | 52 +- .../model/management/TerminalProduct.java | 65 +- .../management/TerminalProductPrice.java | 66 +- .../management/TerminalProductsResponse.java | 55 +- .../TerminalReassignmentRequest.java | 117 +- .../TerminalReassignmentTarget.java | 105 +- .../model/management/TerminalSettings.java | 306 +- .../management/TestCompanyWebhookRequest.java | 173 +- .../adyen/model/management/TestOutput.java | 231 +- .../model/management/TestWebhookRequest.java | 131 +- .../model/management/TestWebhookResponse.java | 61 +- .../adyen/model/management/TicketInfo.java | 44 +- .../com/adyen/model/management/Timeouts.java | 62 +- .../TransactionDescriptionInfo.java | 175 +- .../com/adyen/model/management/TwintInfo.java | 44 +- .../UninstallAndroidAppDetails.java | 68 +- .../UninstallAndroidCertificateDetails.java | 77 +- .../adyen/model/management/Unreferenced.java | 131 + .../model/management/UpdatableAddress.java | 84 +- .../UpdateCompanyApiCredentialRequest.java | 157 +- .../management/UpdateCompanyUserRequest.java | 194 +- .../UpdateCompanyWebhookRequest.java | 451 +- .../UpdateMerchantApiCredentialRequest.java | 127 +- .../management/UpdateMerchantUserRequest.java | 143 +- .../UpdateMerchantWebhookRequest.java | 335 +- .../management/UpdatePaymentMethodInfo.java | 361 +- .../UpdatePayoutSettingsRequest.java | 71 +- .../UpdateSplitConfigurationLogicRequest.java | 841 +-- .../UpdateSplitConfigurationRequest.java | 56 +- .../UpdateSplitConfigurationRuleRequest.java | 190 +- .../model/management/UpdateStoreRequest.java | 258 +- .../management/UploadAndroidAppResponse.java | 50 +- .../UploadAndroidCertificateResponse.java | 56 +- .../java/com/adyen/model/management/Url.java | 51 +- .../java/com/adyen/model/management/User.java | 132 +- .../com/adyen/model/management/VippsInfo.java | 72 +- .../adyen/model/management/WeChatPayInfo.java | 45 +- .../model/management/WeChatPayPosInfo.java | 45 +- .../com/adyen/model/management/Webhook.java | 562 +- .../adyen/model/management/WebhookLinks.java | 85 +- .../adyen/model/management/WifiProfiles.java | 62 +- .../AbstractOpenApiSchema.java | 246 +- .../AccountCapabilityData.java | 226 +- .../AccountCreateNotificationData.java | 200 +- .../AccountNotificationResponse.java | 75 +- .../AccountUpdateNotificationData.java | 200 +- .../managementwebhooks/CapabilityProblem.java | 57 +- .../CapabilityProblemEntity.java | 111 +- .../CapabilityProblemEntityRecursive.java | 115 +- .../adyen/model/managementwebhooks/JSON.java | 96 +- .../ManagementWebhooksHandler.java | 348 +- .../MerchantCreatedNotificationRequest.java | 111 +- .../MerchantUpdatedNotificationRequest.java | 111 +- .../MidServiceNotificationData.java | 203 +- ...ymentMethodCreatedNotificationRequest.java | 111 +- .../PaymentMethodNotificationResponse.java | 81 +- ...thodRequestRemovedNotificationRequest.java | 115 +- ...cheduledForRemovalNotificationRequest.java | 116 +- .../managementwebhooks/RemediatingAction.java | 50 +- ...TerminalAssignmentNotificationRequest.java | 93 +- ...erminalAssignmentNotificationResponse.java | 81 +- .../TerminalBoardingData.java | 54 +- .../TerminalBoardingNotificationRequest.java | 111 +- .../TerminalBoardingNotificationResponse.java | 81 +- .../TerminalSettingsData.java | 103 +- .../TerminalSettingsNotificationRequest.java | 111 +- .../TerminalSettingsNotificationResponse.java | 81 +- .../managementwebhooks/VerificationError.java | 90 +- .../VerificationErrorRecursive.java | 94 +- .../AbstractOpenApiSchema.java | 248 +- .../Amount.java | 88 +- .../negativebalancewarningwebhooks/JSON.java | 96 +- ...ceCompensationWarningNotificationData.java | 209 +- ...ompensationWarningNotificationRequest.java | 124 +- ...NegativeBalanceWarningWebhooksHandler.java | 105 +- .../Resource.java | 70 +- .../ResourceReference.java | 50 +- .../model/payment/AbstractOpenApiSchema.java | 246 +- .../com/adyen/model/payment/AccountInfo.java | 475 +- .../com/adyen/model/payment/AcctInfo.java | 560 +- .../model/payment/AdditionalData3DSecure.java | 318 +- .../model/payment/AdditionalDataAirline.java | 1012 +--- .../payment/AdditionalDataCarRental.java | 749 +-- .../model/payment/AdditionalDataCommon.java | 858 +-- .../model/payment/AdditionalDataLevel23.java | 882 +-- .../model/payment/AdditionalDataLodging.java | 555 +- .../payment/AdditionalDataModifications.java | 87 +- .../payment/AdditionalDataOpenInvoice.java | 595 +- .../model/payment/AdditionalDataOpi.java | 81 +- .../model/payment/AdditionalDataRatepay.java | 137 +- .../model/payment/AdditionalDataRetry.java | 182 +- .../model/payment/AdditionalDataRisk.java | 587 +- .../payment/AdditionalDataRiskStandalone.java | 249 +- .../payment/AdditionalDataSubMerchant.java | 533 +- .../AdditionalDataTemporaryServices.java | 359 +- .../model/payment/AdditionalDataWallets.java | 76 +- .../java/com/adyen/model/payment/Address.java | 138 +- .../payment/AdjustAuthorisationRequest.java | 244 +- .../java/com/adyen/model/payment/Amount.java | 86 +- .../adyen/model/payment/ApplicationInfo.java | 116 +- .../payment/AuthenticationResultRequest.java | 60 +- .../payment/AuthenticationResultResponse.java | 65 +- .../com/adyen/model/payment/BankAccount.java | 200 +- .../com/adyen/model/payment/BrowserInfo.java | 155 +- .../model/payment/CancelOrRefundRequest.java | 201 +- .../adyen/model/payment/CancelRequest.java | 222 +- .../adyen/model/payment/CaptureRequest.java | 233 +- .../java/com/adyen/model/payment/Card.java | 162 +- .../com/adyen/model/payment/CommonField.java | 50 +- .../model/payment/DeviceRenderOptions.java | 96 +- .../adyen/model/payment/DonationRequest.java | 119 +- .../adyen/model/payment/ExternalPlatform.java | 48 +- .../com/adyen/model/payment/ForexQuote.java | 116 +- .../adyen/model/payment/FraudCheckResult.java | 48 +- .../payment/FraudCheckResultWrapper.java | 54 +- .../com/adyen/model/payment/FraudResult.java | 55 +- .../adyen/model/payment/FundDestination.java | 185 +- .../com/adyen/model/payment/FundSource.java | 94 +- .../com/adyen/model/payment/Installments.java | 157 +- .../java/com/adyen/model/payment/JSON.java | 96 +- .../java/com/adyen/model/payment/Mandate.java | 228 +- .../adyen/model/payment/MerchantDevice.java | 48 +- .../model/payment/MerchantRiskIndicator.java | 323 +- .../model/payment/ModificationResult.java | 107 +- .../java/com/adyen/model/payment/Name.java | 50 +- .../adyen/model/payment/PaymentRequest.java | 1407 ++--- .../adyen/model/payment/PaymentRequest3d.java | 1275 ++--- .../model/payment/PaymentRequest3ds2.java | 1271 ++--- .../adyen/model/payment/PaymentResult.java | 480 +- .../java/com/adyen/model/payment/Phone.java | 61 +- .../payment/PlatformChargebackLogic.java | 131 +- .../com/adyen/model/payment/Recurring.java | 173 +- .../adyen/model/payment/RefundRequest.java | 233 +- .../ResponseAdditionalData3DSecure.java | 157 +- .../ResponseAdditionalDataBillingAddress.java | 193 +- .../payment/ResponseAdditionalDataCard.java | 289 +- .../payment/ResponseAdditionalDataCommon.java | 1518 ++--- .../ResponseAdditionalDataDomesticError.java | 110 +- .../ResponseAdditionalDataInstallments.java | 504 +- .../ResponseAdditionalDataNetworkTokens.java | 110 +- .../payment/ResponseAdditionalDataOpi.java | 86 +- .../payment/ResponseAdditionalDataSepa.java | 146 +- .../adyen/model/payment/SDKEphemPubKey.java | 51 +- .../SecureRemoteCommerceCheckoutData.java | 182 +- .../com/adyen/model/payment/ServiceError.java | 82 +- .../payment/ShopperInteractionDevice.java | 54 +- .../java/com/adyen/model/payment/Split.java | 348 +- .../com/adyen/model/payment/SplitAmount.java | 92 +- .../com/adyen/model/payment/SubMerchant.java | 156 +- .../model/payment/TechnicalCancelRequest.java | 219 +- .../adyen/model/payment/ThreeDS1Result.java | 90 +- .../model/payment/ThreeDS2RequestData.java | 1048 ++-- .../adyen/model/payment/ThreeDS2Result.java | 340 +- .../model/payment/ThreeDS2ResultRequest.java | 57 +- .../model/payment/ThreeDS2ResultResponse.java | 54 +- .../ThreeDSRequestorAuthenticationInfo.java | 181 +- ...reeDSRequestorPriorAuthenticationInfo.java | 213 +- .../adyen/model/payment/ThreeDSecureData.java | 288 +- .../payment/VoidPendingRefundRequest.java | 244 +- .../paymentsapp/AbstractOpenApiSchema.java | 246 +- .../paymentsapp/BoardingTokenRequest.java | 51 +- .../paymentsapp/BoardingTokenResponse.java | 48 +- .../DefaultErrorResponseEntity.java | 92 +- .../adyen/model/paymentsapp/InvalidField.java | 48 +- .../com/adyen/model/paymentsapp/JSON.java | 96 +- .../model/paymentsapp/PaymentsAppDto.java | 55 +- .../paymentsapp/PaymentsAppResponse.java | 52 +- .../model/payout/AbstractOpenApiSchema.java | 246 +- .../java/com/adyen/model/payout/Address.java | 138 +- .../java/com/adyen/model/payout/Amount.java | 86 +- .../com/adyen/model/payout/BankAccount.java | 200 +- .../java/com/adyen/model/payout/Card.java | 162 +- .../adyen/model/payout/FraudCheckResult.java | 48 +- .../model/payout/FraudCheckResultWrapper.java | 54 +- .../com/adyen/model/payout/FraudResult.java | 55 +- .../com/adyen/model/payout/FundSource.java | 94 +- .../java/com/adyen/model/payout/JSON.java | 96 +- .../com/adyen/model/payout/ModifyRequest.java | 79 +- .../adyen/model/payout/ModifyResponse.java | 103 +- .../java/com/adyen/model/payout/Name.java | 50 +- .../com/adyen/model/payout/PayoutRequest.java | 415 +- .../adyen/model/payout/PayoutResponse.java | 480 +- .../com/adyen/model/payout/Recurring.java | 173 +- .../ResponseAdditionalData3DSecure.java | 157 +- .../ResponseAdditionalDataBillingAddress.java | 193 +- .../payout/ResponseAdditionalDataCard.java | 289 +- .../payout/ResponseAdditionalDataCommon.java | 1518 ++--- .../ResponseAdditionalDataDomesticError.java | 110 +- .../ResponseAdditionalDataInstallments.java | 504 +- .../ResponseAdditionalDataNetworkTokens.java | 110 +- .../payout/ResponseAdditionalDataOpi.java | 86 +- .../payout/ResponseAdditionalDataSepa.java | 146 +- .../com/adyen/model/payout/ServiceError.java | 82 +- .../payout/StoreDetailAndSubmitRequest.java | 325 +- .../payout/StoreDetailAndSubmitResponse.java | 88 +- .../model/payout/StoreDetailRequest.java | 260 +- .../model/payout/StoreDetailResponse.java | 93 +- .../com/adyen/model/payout/SubmitRequest.java | 328 +- .../adyen/model/payout/SubmitResponse.java | 83 +- .../posmobile/AbstractOpenApiSchema.java | 246 +- .../model/posmobile/CreateSessionRequest.java | 90 +- .../posmobile/CreateSessionResponse.java | 105 +- .../java/com/adyen/model/posmobile/JSON.java | 96 +- .../recurring/AbstractOpenApiSchema.java | 246 +- .../com/adyen/model/recurring/Address.java | 138 +- .../com/adyen/model/recurring/Amount.java | 86 +- .../adyen/model/recurring/BankAccount.java | 200 +- .../java/com/adyen/model/recurring/Card.java | 162 +- .../model/recurring/CreatePermitRequest.java | 82 +- .../model/recurring/CreatePermitResult.java | 71 +- .../model/recurring/DisablePermitRequest.java | 57 +- .../model/recurring/DisablePermitResult.java | 66 +- .../adyen/model/recurring/DisableRequest.java | 133 +- .../adyen/model/recurring/DisableResult.java | 62 +- .../java/com/adyen/model/recurring/JSON.java | 96 +- .../java/com/adyen/model/recurring/Name.java | 50 +- .../model/recurring/NotifyShopperRequest.java | 211 +- .../model/recurring/NotifyShopperResult.java | 93 +- .../com/adyen/model/recurring/Permit.java | 72 +- .../model/recurring/PermitRestriction.java | 83 +- .../adyen/model/recurring/PermitResult.java | 50 +- .../com/adyen/model/recurring/Recurring.java | 173 +- .../model/recurring/RecurringDetail.java | 301 +- .../recurring/RecurringDetailWrapper.java | 54 +- .../recurring/RecurringDetailsRequest.java | 76 +- .../recurring/RecurringDetailsResult.java | 72 +- .../ScheduleAccountUpdaterRequest.java | 157 +- .../ScheduleAccountUpdaterResult.java | 87 +- .../adyen/model/recurring/ServiceError.java | 82 +- .../adyen/model/recurring/TokenDetails.java | 61 +- .../reportwebhooks/AbstractOpenApiSchema.java | 246 +- .../BalancePlatformNotificationResponse.java | 81 +- .../com/adyen/model/reportwebhooks/JSON.java | 96 +- .../ReportNotificationData.java | 172 +- .../ReportNotificationRequest.java | 96 +- .../reportwebhooks/ReportWebhooksHandler.java | 97 +- .../adyen/model/reportwebhooks/Resource.java | 68 +- .../reportwebhooks/ResourceReference.java | 48 +- .../AbstractOpenApiSchema.java | 246 +- .../AccountHolderResource.java | 96 +- .../AuthenticationSessionRequest.java | 89 +- .../AuthenticationSessionResponse.java | 57 +- .../BalanceAccountResource.java | 78 +- .../DefaultErrorResponseEntity.java | 92 +- .../sessionauthentication/InvalidField.java | 48 +- .../model/sessionauthentication/JSON.java | 96 +- .../LegalEntityResource.java | 110 +- .../MerchantAccountResource.java | 82 +- .../PaymentInstrumentResource.java | 85 +- .../model/sessionauthentication/Policy.java | 103 +- .../sessionauthentication/ProductType.java | 20 +- .../model/sessionauthentication/Resource.java | 69 +- .../sessionauthentication/ResourceType.java | 24 +- .../storedvalue/AbstractOpenApiSchema.java | 246 +- .../com/adyen/model/storedvalue/Amount.java | 86 +- .../com/adyen/model/storedvalue/JSON.java | 96 +- .../adyen/model/storedvalue/ServiceError.java | 82 +- .../StoredValueBalanceCheckRequest.java | 291 +- .../StoredValueBalanceCheckResponse.java | 212 +- .../StoredValueBalanceMergeRequest.java | 333 +- .../StoredValueBalanceMergeResponse.java | 239 +- .../storedvalue/StoredValueIssueRequest.java | 257 +- .../storedvalue/StoredValueIssueResponse.java | 245 +- .../storedvalue/StoredValueLoadRequest.java | 277 +- .../storedvalue/StoredValueLoadResponse.java | 215 +- .../StoredValueStatusChangeRequest.java | 313 +- .../StoredValueStatusChangeResponse.java | 239 +- .../storedvalue/StoredValueVoidRequest.java | 90 +- .../storedvalue/StoredValueVoidResponse.java | 191 +- .../AbstractOpenApiSchema.java | 246 +- .../model/tokenizationwebhooks/JSON.java | 96 +- .../tokenizationwebhooks/RecurringToken.java | 73 +- .../RecurringTokenStoreOperation.java | 92 +- ...adyExistingDetailsNotificationRequest.java | 149 +- ...tionCreatedDetailsNotificationRequest.java | 140 +- ...ionDisabledDetailsNotificationRequest.java | 140 +- .../TokenizationNotificationResponse.java | 81 +- ...tionUpdatedDetailsNotificationRequest.java | 140 +- .../TokenizationWebhooksHandler.java | 234 +- .../AbstractOpenApiSchema.java | 246 +- .../model/transactionwebhooks/Amount.java | 86 +- .../BalancePlatformNotificationResponse.java | 81 +- .../transactionwebhooks/BankCategoryData.java | 160 +- .../InternalCategoryData.java | 90 +- .../model/transactionwebhooks/IssuedCard.java | 273 +- .../adyen/model/transactionwebhooks/JSON.java | 96 +- .../PaymentInstrument.java | 51 +- .../transactionwebhooks/PlatformPayment.java | 274 +- .../RelayedAuthorisationData.java | 73 +- .../model/transactionwebhooks/Resource.java | 68 +- .../ResourceReference.java | 48 +- .../transactionwebhooks/ThreeDSecure.java | 44 +- .../transactionwebhooks/Transaction.java | 222 +- .../TransactionNotificationRequestV4.java | 111 +- .../TransactionWebhooksHandler.java | 98 +- .../TransferNotificationValidationFact.java | 60 +- .../transactionwebhooks/TransferView.java | 85 +- .../TransferViewCategoryData.java | 597 +- .../AULocalAccountIdentification.java | 89 +- .../transfers/AbstractOpenApiSchema.java | 246 +- .../AdditionalBankIdentification.java | 141 +- .../com/adyen/model/transfers/Address.java | 168 +- .../com/adyen/model/transfers/Airline.java | 55 +- .../com/adyen/model/transfers/Amount.java | 86 +- .../model/transfers/AmountAdjustment.java | 93 +- .../transfers/ApproveTransfersRequest.java | 51 +- .../BRLocalAccountIdentification.java | 77 +- .../model/transfers/BalanceMutation.java | 123 +- .../adyen/model/transfers/BankAccountV3.java | 66 +- .../BankAccountV3AccountIdentification.java | 1783 +++--- .../model/transfers/BankCategoryData.java | 160 +- .../CALocalAccountIdentification.java | 103 +- .../CZLocalAccountIdentification.java | 107 +- .../transfers/CancelTransfersRequest.java | 51 +- .../adyen/model/transfers/CapitalBalance.java | 69 +- .../adyen/model/transfers/CapitalGrant.java | 156 +- .../model/transfers/CapitalGrantInfo.java | 73 +- .../adyen/model/transfers/CapitalGrants.java | 49 +- .../java/com/adyen/model/transfers/Card.java | 64 +- .../model/transfers/CardIdentification.java | 181 +- .../transfers/ConfirmationTrackingData.java | 115 +- .../adyen/model/transfers/Counterparty.java | 100 +- .../model/transfers/CounterpartyInfoV3.java | 108 +- .../adyen/model/transfers/CounterpartyV3.java | 115 +- .../DKLocalAccountIdentification.java | 83 +- .../transfers/DirectDebitInformation.java | 92 +- .../transfers/EstimationTrackingData.java | 89 +- .../adyen/model/transfers/ExecutionDate.java | 106 +- .../adyen/model/transfers/ExternalReason.java | 48 +- .../java/com/adyen/model/transfers/Fee.java | 51 +- .../transfers/FindTransfersResponse.java | 60 +- .../HKLocalAccountIdentification.java | 89 +- .../HULocalAccountIdentification.java | 68 +- .../transfers/IbanAccountIdentification.java | 86 +- .../model/transfers/InternalCategoryData.java | 90 +- .../transfers/InternalReviewTrackingData.java | 165 +- .../adyen/model/transfers/InvalidField.java | 48 +- .../com/adyen/model/transfers/IssuedCard.java | 273 +- .../transfers/IssuingTransactionData.java | 82 +- .../java/com/adyen/model/transfers/JSON.java | 96 +- .../java/com/adyen/model/transfers/Leg.java | 105 +- .../java/com/adyen/model/transfers/Link.java | 44 +- .../java/com/adyen/model/transfers/Links.java | 62 +- .../com/adyen/model/transfers/Lodging.java | 50 +- .../adyen/model/transfers/MerchantData.java | 61 +- .../model/transfers/MerchantPurchaseData.java | 89 +- .../adyen/model/transfers/Modification.java | 71 +- .../NOLocalAccountIdentification.java | 68 +- .../NZLocalAccountIdentification.java | 92 +- .../adyen/model/transfers/NameLocation.java | 99 +- .../NumberAndBicAccountIdentification.java | 129 +- .../PLLocalAccountIdentification.java | 92 +- .../model/transfers/PartyIdentification.java | 246 +- .../model/transfers/PaymentInstrument.java | 51 +- .../model/transfers/PlatformPayment.java | 274 +- .../transfers/RelayedAuthorisationData.java | 73 +- .../com/adyen/model/transfers/Repayment.java | 80 +- .../adyen/model/transfers/RepaymentTerm.java | 63 +- .../model/transfers/ResourceReference.java | 48 +- .../model/transfers/RestServiceError.java | 107 +- .../transfers/ReturnTransferRequest.java | 88 +- .../transfers/ReturnTransferResponse.java | 86 +- .../adyen/model/transfers/RoutingDetails.java | 148 +- .../SELocalAccountIdentification.java | 119 +- .../SGLocalAccountIdentification.java | 71 +- .../adyen/model/transfers/ServiceError.java | 54 +- .../adyen/model/transfers/ThreeDSecure.java | 44 +- .../model/transfers/ThresholdRepayment.java | 54 +- .../adyen/model/transfers/Transaction.java | 222 +- .../transfers/TransactionEventViolation.java | 76 +- .../transfers/TransactionRuleReference.java | 78 +- .../transfers/TransactionRuleSource.java | 78 +- .../transfers/TransactionRulesResult.java | 99 +- .../transfers/TransactionSearchResponse.java | 63 +- .../com/adyen/model/transfers/Transfer.java | 526 +- .../model/transfers/TransferCategoryData.java | 596 +- .../adyen/model/transfers/TransferData.java | 649 +-- .../model/transfers/TransferDataTracking.java | 503 +- .../adyen/model/transfers/TransferEvent.java | 266 +- .../TransferEventEventsDataInner.java | 419 +- .../transfers/TransferEventTrackingData.java | 504 +- .../adyen/model/transfers/TransferInfo.java | 655 +-- .../TransferNotificationCounterParty.java | 140 +- .../TransferNotificationMerchantData.java | 90 +- .../TransferNotificationValidationFact.java | 60 +- .../transfers/TransferRequestReview.java | 113 +- .../adyen/model/transfers/TransferReview.java | 110 +- .../TransferServiceRestServiceError.java | 177 +- .../adyen/model/transfers/TransferView.java | 85 +- .../UKLocalAccountIdentification.java | 89 +- .../USLocalAccountIdentification.java | 121 +- .../UltimatePartyIdentification.java | 249 +- .../AULocalAccountIdentification.java | 89 +- .../AbstractOpenApiSchema.java | 246 +- .../AdditionalBankIdentification.java | 141 +- .../adyen/model/transferwebhooks/Address.java | 168 +- .../adyen/model/transferwebhooks/Airline.java | 55 +- .../adyen/model/transferwebhooks/Amount.java | 86 +- .../transferwebhooks/AmountAdjustment.java | 93 +- .../BRLocalAccountIdentification.java | 77 +- .../transferwebhooks/BalanceMutation.java | 123 +- .../BalancePlatformNotificationResponse.java | 81 +- .../model/transferwebhooks/BankAccountV3.java | 66 +- .../BankAccountV3AccountIdentification.java | 1783 +++--- .../transferwebhooks/BankCategoryData.java | 160 +- .../CALocalAccountIdentification.java | 103 +- .../CZLocalAccountIdentification.java | 107 +- .../adyen/model/transferwebhooks/Card.java | 64 +- .../transferwebhooks/CardIdentification.java | 181 +- .../ConfirmationTrackingData.java | 115 +- .../transferwebhooks/CounterpartyV3.java | 115 +- .../DKLocalAccountIdentification.java | 83 +- .../DirectDebitInformation.java | 92 +- .../EstimationTrackingData.java | 89 +- .../model/transferwebhooks/ExecutionDate.java | 106 +- .../transferwebhooks/ExternalReason.java | 48 +- .../HKLocalAccountIdentification.java | 89 +- .../HULocalAccountIdentification.java | 68 +- .../IbanAccountIdentification.java | 86 +- .../InternalCategoryData.java | 90 +- .../InternalReviewTrackingData.java | 165 +- .../model/transferwebhooks/IssuedCard.java | 273 +- .../IssuingTransactionData.java | 82 +- .../adyen/model/transferwebhooks/JSON.java | 96 +- .../com/adyen/model/transferwebhooks/Leg.java | 105 +- .../adyen/model/transferwebhooks/Lodging.java | 50 +- .../model/transferwebhooks/MerchantData.java | 61 +- .../MerchantPurchaseData.java | 89 +- .../model/transferwebhooks/Modification.java | 71 +- .../NOLocalAccountIdentification.java | 68 +- .../NZLocalAccountIdentification.java | 92 +- .../model/transferwebhooks/NameLocation.java | 99 +- .../NumberAndBicAccountIdentification.java | 129 +- .../PLLocalAccountIdentification.java | 92 +- .../transferwebhooks/PartyIdentification.java | 246 +- .../transferwebhooks/PaymentInstrument.java | 51 +- .../transferwebhooks/PlatformPayment.java | 274 +- .../RelayedAuthorisationData.java | 73 +- .../model/transferwebhooks/Resource.java | 68 +- .../transferwebhooks/ResourceReference.java | 48 +- .../SELocalAccountIdentification.java | 119 +- .../SGLocalAccountIdentification.java | 71 +- .../model/transferwebhooks/ThreeDSecure.java | 44 +- .../TransactionEventViolation.java | 76 +- .../TransactionRuleReference.java | 78 +- .../TransactionRuleSource.java | 78 +- .../TransactionRulesResult.java | 99 +- .../model/transferwebhooks/TransferData.java | 649 +-- .../TransferDataCategoryData.java | 597 +- .../TransferDataTracking.java | 503 +- .../model/transferwebhooks/TransferEvent.java | 266 +- .../TransferEventEventsDataInner.java | 419 +- .../TransferEventTrackingData.java | 504 +- .../TransferNotificationCounterParty.java | 140 +- .../TransferNotificationMerchantData.java | 90 +- .../TransferNotificationRequest.java | 96 +- .../TransferNotificationValidationFact.java | 60 +- .../transferwebhooks/TransferReview.java | 110 +- .../TransferWebhooksHandler.java | 97 +- .../UKLocalAccountIdentification.java | 89 +- .../USLocalAccountIdentification.java | 121 +- .../balancecontrol/BalanceControlApi.java | 111 +- .../balanceplatform/AccountHoldersApi.java | 483 +- .../AuthorizedCardUsersApi.java | 342 +- .../balanceplatform/BalanceAccountsApi.java | 835 ++- .../service/balanceplatform/BalancesApi.java | 522 +- .../BankAccountValidationApi.java | 102 +- .../balanceplatform/CardOrdersApi.java | 304 +- .../balanceplatform/GrantAccountsApi.java | 124 +- .../balanceplatform/GrantOffersApi.java | 198 +- .../balanceplatform/ManageCardPinApi.java | 225 +- .../balanceplatform/ManageScaDevicesApi.java | 482 +- .../balanceplatform/NetworkTokensApi.java | 176 +- .../PaymentInstrumentGroupsApi.java | 249 +- .../PaymentInstrumentsApi.java | 666 +-- .../service/balanceplatform/PlatformApi.java | 277 +- .../balanceplatform/TransactionRulesApi.java | 333 +- .../balanceplatform/TransferRoutesApi.java | 104 +- .../adyen/service/binlookup/BinLookupApi.java | 157 +- .../adyen/service/checkout/DonationsApi.java | 157 +- .../service/checkout/ModificationsApi.java | 480 +- .../com/adyen/service/checkout/OrdersApi.java | 210 +- .../service/checkout/PaymentLinksApi.java | 255 +- .../adyen/service/checkout/PaymentsApi.java | 394 +- .../adyen/service/checkout/RecurringApi.java | 277 +- .../adyen/service/checkout/UtilityApi.java | 295 +- .../dataprotection/DataProtectionApi.java | 108 +- .../adyen/service/disputes/DisputesApi.java | 343 +- .../BusinessLinesApi.java | 312 +- .../legalentitymanagement/DocumentsApi.java | 319 +- .../HostedOnboardingApi.java | 247 +- .../LegalEntitiesApi.java | 429 +- .../PciQuestionnairesApi.java | 420 +- .../TaxEDeliveryConsentApi.java | 193 +- .../TermsOfServiceApi.java | 471 +- .../TransferInstrumentsApi.java | 314 +- .../management/AccountCompanyLevelApi.java | 277 +- .../management/AccountMerchantLevelApi.java | 317 +- .../management/AccountStoreLevelApi.java | 676 +-- .../AllowedOriginsCompanyLevelApi.java | 400 +- .../AllowedOriginsMerchantLevelApi.java | 402 +- .../AndroidFilesCompanyLevelApi.java | 527 +- .../ApiCredentialsCompanyLevelApi.java | 390 +- .../ApiCredentialsMerchantLevelApi.java | 383 +- .../management/ApiKeyCompanyLevelApi.java | 130 +- .../management/ApiKeyMerchantLevelApi.java | 131 +- .../management/ClientKeyCompanyLevelApi.java | 131 +- .../management/ClientKeyMerchantLevelApi.java | 131 +- .../management/MyApiCredentialApi.java | 390 +- .../PaymentMethodsMerchantLevelApi.java | 556 +- .../PayoutSettingsMerchantLevelApi.java | 425 +- .../SplitConfigurationMerchantLevelApi.java | 896 ++- .../TerminalActionsCompanyLevelApi.java | 239 +- .../TerminalActionsTerminalLevelApi.java | 105 +- .../TerminalOrdersCompanyLevelApi.java | 907 ++- .../TerminalOrdersMerchantLevelApi.java | 908 ++- .../TerminalSettingsCompanyLevelApi.java | 369 +- .../TerminalSettingsMerchantLevelApi.java | 369 +- .../TerminalSettingsStoreLevelApi.java | 739 ++- .../TerminalSettingsTerminalLevelApi.java | 337 +- .../management/TerminalsTerminalLevelApi.java | 248 +- .../management/UsersCompanyLevelApi.java | 393 +- .../management/UsersMerchantLevelApi.java | 392 +- .../management/WebhooksCompanyLevelApi.java | 595 +- .../management/WebhooksMerchantLevelApi.java | 592 +- .../service/payment/ModificationsApi.java | 477 +- .../adyen/service/payment/PaymentsApi.java | 339 +- .../service/paymentsapp/PaymentsAppApi.java | 492 +- .../service/payout/InitializationApi.java | 209 +- .../service/payout/InstantPayoutsApi.java | 102 +- .../adyen/service/payout/ReviewingApi.java | 155 +- .../adyen/service/posmobile/PosMobileApi.java | 103 +- .../adyen/service/recurring/RecurringApi.java | 446 +- .../SessionAuthenticationApi.java | 106 +- .../service/storedvalue/StoredValueApi.java | 402 +- .../adyen/service/transfers/CapitalApi.java | 279 +- .../service/transfers/TransactionsApi.java | 281 +- .../adyen/service/transfers/TransfersApi.java | 525 +- 1340 files changed, 99645 insertions(+), 145275 deletions(-) create mode 100644 src/main/java/com/adyen/model/checkout/ResponseAdditionalDataSwish.java create mode 100644 src/main/java/com/adyen/model/management/Unreferenced.java diff --git a/src/main/java/com/adyen/model/acswebhooks/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/acswebhooks/AbstractOpenApiSchema.java index bbee8bb88..a6b23ec1d 100644 --- a/src/main/java/com/adyen/model/acswebhooks/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/acswebhooks/AbstractOpenApiSchema.java @@ -2,141 +2,145 @@ * Authentication webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.acswebhooks; -import com.fasterxml.jackson.annotation.JsonValue; -import jakarta.ws.rs.core.GenericType; -import java.util.Map; import java.util.Objects; +import java.util.Map; +import jakarta.ws.rs.core.GenericType; -/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec + */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() { - return instance; - } - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) { - this.instance = instance; - } - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf - * schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); - } else { - return object.getActualInstance(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() {return instance;} + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) {this.instance = instance;} + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); + } else { + return object.getActualInstance(); + } + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) && + Objects.equals(this.isNullable, a.isNullable) && + Objects.equals(this.schemaType, a.schemaType); } - return o.toString().replace("\n", "\n "); - } - public boolean equals(Object o) { - if (this == o) { - return true; + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); } - if (o == null || getClass() != o.getClass()) { - return false; + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) - && Objects.equals(this.isNullable, a.isNullable) - && Objects.equals(this.schemaType, a.schemaType); - } - - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); - } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); - } -} + + + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/acswebhooks/AcsWebhooksHandler.java b/src/main/java/com/adyen/model/acswebhooks/AcsWebhooksHandler.java index c716fceef..19a5e1e96 100644 --- a/src/main/java/com/adyen/model/acswebhooks/AcsWebhooksHandler.java +++ b/src/main/java/com/adyen/model/acswebhooks/AcsWebhooksHandler.java @@ -2,7 +2,7 @@ * Authentication webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,85 +16,85 @@ /** * Handler for processing AcsWebhooks. - * - *

This class provides functionality to deserialize the payload of AcsWebhooks events. + *

+ * This class provides functionality to deserialize the payload of AcsWebhooks events. */ public class AcsWebhooksHandler { - private static final Logger LOG = Logger.getLogger(AcsWebhooksHandler.class.getName()); - - private final String payload; - - /** - * Constructs a new handler for the given webhook payload - * - * @param payload the raw JSON payload from the webhook - */ - public AcsWebhooksHandler(String payload) { - this.payload = payload; - } - - /** - * Attempts to deserialize the webhook payload into a AuthenticationNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getAuthenticationNotificationRequest() { - - var optionalAuthenticationNotificationRequest = - getOptionalField(AuthenticationNotificationRequest.class); - - if (optionalAuthenticationNotificationRequest.isPresent()) { - // verify event type - for (var value : AuthenticationNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalAuthenticationNotificationRequest.get().getType())) { - // found matching event type - return optionalAuthenticationNotificationRequest; - } - } + private static final Logger LOG = Logger.getLogger(AcsWebhooksHandler.class.getName()); + + private final String payload; + + /** + * Constructs a new handler for the given webhook payload + * + * @param payload the raw JSON payload from the webhook + */ + public AcsWebhooksHandler(String payload) { + this.payload = payload; } - return Optional.empty(); - } + /** + * Attempts to deserialize the webhook payload into a AuthenticationNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getAuthenticationNotificationRequest() { - /** - * Attempts to deserialize the webhook payload into a RelayedAuthenticationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getRelayedAuthenticationRequest() { + var optionalAuthenticationNotificationRequest = getOptionalField(AuthenticationNotificationRequest.class); - var optionalRelayedAuthenticationRequest = getOptionalField(RelayedAuthenticationRequest.class); + if(optionalAuthenticationNotificationRequest.isPresent()) { + // verify event type + for (var value : AuthenticationNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalAuthenticationNotificationRequest.get().getType())) { + // found matching event type + return optionalAuthenticationNotificationRequest; + } + } + } - if (optionalRelayedAuthenticationRequest.isPresent()) { - // verify event type - for (var value : RelayedAuthenticationRequest.TypeEnum.values()) { - if (value.equals(optionalRelayedAuthenticationRequest.get().getType())) { - // found matching event type - return optionalRelayedAuthenticationRequest; + return Optional.empty(); + } + + /** + * Attempts to deserialize the webhook payload into a RelayedAuthenticationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getRelayedAuthenticationRequest() { + + var optionalRelayedAuthenticationRequest = getOptionalField(RelayedAuthenticationRequest.class); + + if(optionalRelayedAuthenticationRequest.isPresent()) { + // verify event type + for (var value : RelayedAuthenticationRequest.TypeEnum.values()) { + if (value.equals(optionalRelayedAuthenticationRequest.get().getType())) { + // found matching event type + return optionalRelayedAuthenticationRequest; + } + } } - } + + return Optional.empty(); } - return Optional.empty(); - } - - /** - * Deserializes the payload into the specified class type. - * - * @param clazz the class to deserialize into - * @param the type of the class - * @return an Optional containing the deserialized object, or empty if an error occurs - */ - private Optional getOptionalField(Class clazz) { - try { - T val = JSON.getMapper().readValue(payload, clazz); - return Optional.ofNullable(val); - } catch (Exception e) { - // an error has occurred during deserialization (object not found, deserialization error) - LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); - LOG.warning("Deserialization error: " + e.getMessage()); - return Optional.empty(); + /** + * Deserializes the payload into the specified class type. + * + * @param clazz the class to deserialize into + * @param the type of the class + * @return an Optional containing the deserialized object, or empty if an error occurs + */ + private Optional getOptionalField(Class clazz) { + try { + T val = JSON.getMapper().readValue(payload, clazz); + return Optional.ofNullable(val); + } catch (Exception e) { + // an error has occurred during deserialization (object not found, deserialization error) + LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); + LOG.warning("Deserialization error: " + e.getMessage()); + return Optional.empty(); + } } - } -} + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/acswebhooks/Amount.java b/src/main/java/com/adyen/model/acswebhooks/Amount.java index 1266aa4d6..a698387ea 100644 --- a/src/main/java/com/adyen/model/acswebhooks/Amount.java +++ b/src/main/java/com/adyen/model/acswebhooks/Amount.java @@ -2,23 +2,36 @@ * Authentication webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.acswebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Amount */ -@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) + +/** + * Amount + */ +@JsonPropertyOrder({ + Amount.JSON_PROPERTY_CURRENCY, + Amount.JSON_PROPERTY_VALUE +}) + public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -26,14 +39,13 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() {} + public Amount() { + } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount currency(String currency) { @@ -42,11 +54,8 @@ public Amount currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -55,11 +64,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,11 +75,9 @@ public void setCurrency(String currency) { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount value(Long value) { @@ -81,11 +86,8 @@ public Amount value(Long value) { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). - * - * @return value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @return value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,11 +96,9 @@ public Long getValue() { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,7 +106,9 @@ public void setValue(Long value) { this.value = value; } - /** Return true if this Amount object is equal to o. */ + /** + * Return true if this Amount object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -116,8 +118,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) - && Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) && + Objects.equals(this.value, amount.value); } @Override @@ -136,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -155,12 +158,11 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } - - /** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/acswebhooks/AuthenticationDecision.java b/src/main/java/com/adyen/model/acswebhooks/AuthenticationDecision.java index 78d30b6d5..e77a07e21 100644 --- a/src/main/java/com/adyen/model/acswebhooks/AuthenticationDecision.java +++ b/src/main/java/com/adyen/model/acswebhooks/AuthenticationDecision.java @@ -2,34 +2,41 @@ * Authentication webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.acswebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * AuthenticationDecision + */ +@JsonPropertyOrder({ + AuthenticationDecision.JSON_PROPERTY_STATUS +}) -/** AuthenticationDecision */ -@JsonPropertyOrder({AuthenticationDecision.JSON_PROPERTY_STATUS}) public class AuthenticationDecision { /** - * The status of the authentication. Possible values: * **refused** * **proceed** For more - * information, refer to [Authenticate cardholders using the Authentication - * SDK](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/authenticate-cardholders/). + * The status of the authentication. Possible values: * **refused** * **proceed** For more information, refer to [Authenticate cardholders using the Authentication SDK](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/authenticate-cardholders/). */ public enum StatusEnum { + PROCEED(String.valueOf("proceed")), REFUSED(String.valueOf("refused")); @@ -39,7 +46,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +67,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -72,16 +75,13 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; - public AuthenticationDecision() {} + public AuthenticationDecision() { + } /** - * The status of the authentication. Possible values: * **refused** * **proceed** For more - * information, refer to [Authenticate cardholders using the Authentication - * SDK](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/authenticate-cardholders/). + * The status of the authentication. Possible values: * **refused** * **proceed** For more information, refer to [Authenticate cardholders using the Authentication SDK](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/authenticate-cardholders/). * - * @param status The status of the authentication. Possible values: * **refused** * **proceed** - * For more information, refer to [Authenticate cardholders using the Authentication - * SDK](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/authenticate-cardholders/). + * @param status The status of the authentication. Possible values: * **refused** * **proceed** For more information, refer to [Authenticate cardholders using the Authentication SDK](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/authenticate-cardholders/). * @return the current {@code AuthenticationDecision} instance, allowing for method chaining */ public AuthenticationDecision status(StatusEnum status) { @@ -90,13 +90,8 @@ public AuthenticationDecision status(StatusEnum status) { } /** - * The status of the authentication. Possible values: * **refused** * **proceed** For more - * information, refer to [Authenticate cardholders using the Authentication - * SDK](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/authenticate-cardholders/). - * - * @return status The status of the authentication. Possible values: * **refused** * **proceed** - * For more information, refer to [Authenticate cardholders using the Authentication - * SDK](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/authenticate-cardholders/). + * The status of the authentication. Possible values: * **refused** * **proceed** For more information, refer to [Authenticate cardholders using the Authentication SDK](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/authenticate-cardholders/). + * @return status The status of the authentication. Possible values: * **refused** * **proceed** For more information, refer to [Authenticate cardholders using the Authentication SDK](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/authenticate-cardholders/). */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,13 +100,9 @@ public StatusEnum getStatus() { } /** - * The status of the authentication. Possible values: * **refused** * **proceed** For more - * information, refer to [Authenticate cardholders using the Authentication - * SDK](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/authenticate-cardholders/). + * The status of the authentication. Possible values: * **refused** * **proceed** For more information, refer to [Authenticate cardholders using the Authentication SDK](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/authenticate-cardholders/). * - * @param status The status of the authentication. Possible values: * **refused** * **proceed** - * For more information, refer to [Authenticate cardholders using the Authentication - * SDK](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/authenticate-cardholders/). + * @param status The status of the authentication. Possible values: * **refused** * **proceed** For more information, refer to [Authenticate cardholders using the Authentication SDK](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/authenticate-cardholders/). */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -119,7 +110,9 @@ public void setStatus(StatusEnum status) { this.status = status; } - /** Return true if this AuthenticationDecision object is equal to o. */ + /** + * Return true if this AuthenticationDecision object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -147,7 +140,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -156,23 +150,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AuthenticationDecision given an JSON string * * @param jsonString JSON string * @return An instance of AuthenticationDecision - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AuthenticationDecision + * @throws JsonProcessingException if the JSON string is invalid with respect to AuthenticationDecision */ public static AuthenticationDecision fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AuthenticationDecision.class); } - - /** - * Convert an instance of AuthenticationDecision to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AuthenticationDecision to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/acswebhooks/AuthenticationInfo.java b/src/main/java/com/adyen/model/acswebhooks/AuthenticationInfo.java index 612f7db9c..fba7c930f 100644 --- a/src/main/java/com/adyen/model/acswebhooks/AuthenticationInfo.java +++ b/src/main/java/com/adyen/model/acswebhooks/AuthenticationInfo.java @@ -2,27 +2,33 @@ * Authentication webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.acswebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.acswebhooks.ChallengeInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** AuthenticationInfo */ + +/** + * AuthenticationInfo + */ @JsonPropertyOrder({ AuthenticationInfo.JSON_PROPERTY_ACS_TRANS_ID, AuthenticationInfo.JSON_PROPERTY_CHALLENGE, @@ -40,6 +46,7 @@ AuthenticationInfo.JSON_PROPERTY_TRANS_STATUS_REASON, AuthenticationInfo.JSON_PROPERTY_TYPE }) + public class AuthenticationInfo { public static final String JSON_PROPERTY_ACS_TRANS_ID = "acsTransId"; private String acsTransId; @@ -48,16 +55,10 @@ public class AuthenticationInfo { private ChallengeInfo challenge; /** - * Specifies a preference for receiving a challenge. Possible values: * **01**: No preference * - * **02**: No challenge requested * **03**: Challenge requested (preference) * **04**: Challenge - * requested (mandate) * **05**: No challenge requested (transactional risk analysis is already - * performed) * **07**: No challenge requested (SCA is already performed) * **08**: No challenge - * requested (trusted beneficiaries exemption of no challenge required) * **09**: Challenge - * requested (trusted beneficiaries prompt requested if challenge required) * **80**: No challenge - * requested (secure corporate payment with Mastercard) * **82**: No challenge requested (secure - * corporate payment with Visa) + * Specifies a preference for receiving a challenge. Possible values: * **01**: No preference * **02**: No challenge requested * **03**: Challenge requested (preference) * **04**: Challenge requested (mandate) * **05**: No challenge requested (transactional risk analysis is already performed) * **07**: No challenge requested (SCA is already performed) * **08**: No challenge requested (trusted beneficiaries exemption of no challenge required) * **09**: Challenge requested (trusted beneficiaries prompt requested if challenge required) * **80**: No challenge requested (secure corporate payment with Mastercard) * **82**: No challenge requested (secure corporate payment with Visa) */ public enum ChallengeIndicatorEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -83,7 +84,7 @@ public enum ChallengeIndicatorEnum { private String value; ChallengeIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -104,11 +105,7 @@ public static ChallengeIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ChallengeIndicatorEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ChallengeIndicatorEnum.values())); + LOG.warning("ChallengeIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChallengeIndicatorEnum.values())); return null; } } @@ -120,11 +117,10 @@ public static ChallengeIndicatorEnum fromValue(String value) { private OffsetDateTime createdAt; /** - * Indicates the type of channel interface being used to initiate the transaction. Possible - * values: * **app** * **browser** * **3DSRequestorInitiated** (initiated by a merchant when the - * cardholder is not available) + * Indicates the type of channel interface being used to initiate the transaction. Possible values: * **app** * **browser** * **3DSRequestorInitiated** (initiated by a merchant when the cardholder is not available) */ public enum DeviceChannelEnum { + APP(String.valueOf("app")), BROWSER(String.valueOf("browser")), @@ -136,7 +132,7 @@ public enum DeviceChannelEnum { private String value; DeviceChannelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -157,11 +153,7 @@ public static DeviceChannelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "DeviceChannelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(DeviceChannelEnum.values())); + LOG.warning("DeviceChannelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(DeviceChannelEnum.values())); return null; } } @@ -173,12 +165,10 @@ public static DeviceChannelEnum fromValue(String value) { private String dsTransID; /** - * Indicates the exemption type that was applied to the authentication by the issuer, if exemption - * applied. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * - * **transactionRiskAnalysis** * **acquirerExemption** * **noExemptionApplied** * - * **visaDAFExemption** + * Indicates the exemption type that was applied to the authentication by the issuer, if exemption applied. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * **acquirerExemption** * **noExemptionApplied** * **visaDAFExemption** */ public enum ExemptionIndicatorEnum { + LOWVALUE(String.valueOf("lowValue")), SECURECORPORATE(String.valueOf("secureCorporate")), @@ -198,7 +188,7 @@ public enum ExemptionIndicatorEnum { private String value; ExemptionIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -219,11 +209,7 @@ public static ExemptionIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ExemptionIndicatorEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ExemptionIndicatorEnum.values())); + LOG.warning("ExemptionIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ExemptionIndicatorEnum.values())); return null; } } @@ -235,10 +221,10 @@ public static ExemptionIndicatorEnum fromValue(String value) { private Boolean inPSD2Scope; /** - * Identifies the category of the message for a specific use case. Possible values: * **payment** - * * **nonPayment** + * Identifies the category of the message for a specific use case. Possible values: * **payment** * **nonPayment** */ public enum MessageCategoryEnum { + PAYMENT(String.valueOf("payment")), NONPAYMENT(String.valueOf("nonPayment")); @@ -248,7 +234,7 @@ public enum MessageCategoryEnum { private String value; MessageCategoryEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -269,11 +255,7 @@ public static MessageCategoryEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "MessageCategoryEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(MessageCategoryEnum.values())); + LOG.warning("MessageCategoryEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(MessageCategoryEnum.values())); return null; } } @@ -291,13 +273,10 @@ public static MessageCategoryEnum fromValue(String value) { private String threeDSServerTransID; /** - * The `transStatus` value as defined in the 3D Secure 2 specification. Possible values: - * * **Y**: Authentication / Account verification successful. * **N**: Not Authenticated / Account - * not verified. Transaction denied. * **U**: Authentication / Account verification could not be - * performed. * **I**: Informational Only / 3D Secure Requestor challenge preference acknowledged. - * * **R**: Authentication / Account verification rejected by the Issuer. + * The `transStatus` value as defined in the 3D Secure 2 specification. Possible values: * **Y**: Authentication / Account verification successful. * **N**: Not Authenticated / Account not verified. Transaction denied. * **U**: Authentication / Account verification could not be performed. * **I**: Informational Only / 3D Secure Requestor challenge preference acknowledged. * **R**: Authentication / Account verification rejected by the Issuer. */ public enum TransStatusEnum { + Y(String.valueOf("Y")), N(String.valueOf("N")), @@ -313,7 +292,7 @@ public enum TransStatusEnum { private String value; TransStatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -334,11 +313,7 @@ public static TransStatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TransStatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TransStatusEnum.values())); + LOG.warning("TransStatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TransStatusEnum.values())); return null; } } @@ -347,11 +322,10 @@ public static TransStatusEnum fromValue(String value) { private TransStatusEnum transStatus; /** - * Provides information on why the `transStatus` field has the specified value. For - * possible values, refer to [our - * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). */ public enum TransStatusReasonEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -427,7 +401,7 @@ public enum TransStatusReasonEnum { private String value; TransStatusReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -448,11 +422,7 @@ public static TransStatusReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TransStatusReasonEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TransStatusReasonEnum.values())); + LOG.warning("TransStatusReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TransStatusReasonEnum.values())); return null; } } @@ -460,8 +430,11 @@ public static TransStatusReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANS_STATUS_REASON = "transStatusReason"; private TransStatusReasonEnum transStatusReason; - /** The type of authentication performed. Possible values: * **frictionless** * **challenge** */ + /** + * The type of authentication performed. Possible values: * **frictionless** * **challenge** + */ public enum TypeEnum { + FRICTIONLESS(String.valueOf("frictionless")), CHALLENGE(String.valueOf("challenge")); @@ -471,7 +444,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -492,11 +465,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -504,14 +473,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AuthenticationInfo() {} + public AuthenticationInfo() { + } /** - * Universally unique transaction identifier assigned by the Access Control Server (ACS) to - * identify a single transaction. + * Universally unique transaction identifier assigned by the Access Control Server (ACS) to identify a single transaction. * - * @param acsTransId Universally unique transaction identifier assigned by the Access Control - * Server (ACS) to identify a single transaction. + * @param acsTransId Universally unique transaction identifier assigned by the Access Control Server (ACS) to identify a single transaction. * @return the current {@code AuthenticationInfo} instance, allowing for method chaining */ public AuthenticationInfo acsTransId(String acsTransId) { @@ -520,11 +488,8 @@ public AuthenticationInfo acsTransId(String acsTransId) { } /** - * Universally unique transaction identifier assigned by the Access Control Server (ACS) to - * identify a single transaction. - * - * @return acsTransId Universally unique transaction identifier assigned by the Access Control - * Server (ACS) to identify a single transaction. + * Universally unique transaction identifier assigned by the Access Control Server (ACS) to identify a single transaction. + * @return acsTransId Universally unique transaction identifier assigned by the Access Control Server (ACS) to identify a single transaction. */ @JsonProperty(JSON_PROPERTY_ACS_TRANS_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -533,11 +498,9 @@ public String getAcsTransId() { } /** - * Universally unique transaction identifier assigned by the Access Control Server (ACS) to - * identify a single transaction. + * Universally unique transaction identifier assigned by the Access Control Server (ACS) to identify a single transaction. * - * @param acsTransId Universally unique transaction identifier assigned by the Access Control - * Server (ACS) to identify a single transaction. + * @param acsTransId Universally unique transaction identifier assigned by the Access Control Server (ACS) to identify a single transaction. */ @JsonProperty(JSON_PROPERTY_ACS_TRANS_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -548,7 +511,7 @@ public void setAcsTransId(String acsTransId) { /** * challenge * - * @param challenge + * @param challenge * @return the current {@code AuthenticationInfo} instance, allowing for method chaining */ public AuthenticationInfo challenge(ChallengeInfo challenge) { @@ -558,8 +521,7 @@ public AuthenticationInfo challenge(ChallengeInfo challenge) { /** * Get challenge - * - * @return challenge + * @return challenge */ @JsonProperty(JSON_PROPERTY_CHALLENGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -570,7 +532,7 @@ public ChallengeInfo getChallenge() { /** * challenge * - * @param challenge + * @param challenge */ @JsonProperty(JSON_PROPERTY_CHALLENGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -579,23 +541,9 @@ public void setChallenge(ChallengeInfo challenge) { } /** - * Specifies a preference for receiving a challenge. Possible values: * **01**: No preference * - * **02**: No challenge requested * **03**: Challenge requested (preference) * **04**: Challenge - * requested (mandate) * **05**: No challenge requested (transactional risk analysis is already - * performed) * **07**: No challenge requested (SCA is already performed) * **08**: No challenge - * requested (trusted beneficiaries exemption of no challenge required) * **09**: Challenge - * requested (trusted beneficiaries prompt requested if challenge required) * **80**: No challenge - * requested (secure corporate payment with Mastercard) * **82**: No challenge requested (secure - * corporate payment with Visa) + * Specifies a preference for receiving a challenge. Possible values: * **01**: No preference * **02**: No challenge requested * **03**: Challenge requested (preference) * **04**: Challenge requested (mandate) * **05**: No challenge requested (transactional risk analysis is already performed) * **07**: No challenge requested (SCA is already performed) * **08**: No challenge requested (trusted beneficiaries exemption of no challenge required) * **09**: Challenge requested (trusted beneficiaries prompt requested if challenge required) * **80**: No challenge requested (secure corporate payment with Mastercard) * **82**: No challenge requested (secure corporate payment with Visa) * - * @param challengeIndicator Specifies a preference for receiving a challenge. Possible values: * - * **01**: No preference * **02**: No challenge requested * **03**: Challenge requested - * (preference) * **04**: Challenge requested (mandate) * **05**: No challenge requested - * (transactional risk analysis is already performed) * **07**: No challenge requested (SCA is - * already performed) * **08**: No challenge requested (trusted beneficiaries exemption of no - * challenge required) * **09**: Challenge requested (trusted beneficiaries prompt requested - * if challenge required) * **80**: No challenge requested (secure corporate payment with - * Mastercard) * **82**: No challenge requested (secure corporate payment with Visa) + * @param challengeIndicator Specifies a preference for receiving a challenge. Possible values: * **01**: No preference * **02**: No challenge requested * **03**: Challenge requested (preference) * **04**: Challenge requested (mandate) * **05**: No challenge requested (transactional risk analysis is already performed) * **07**: No challenge requested (SCA is already performed) * **08**: No challenge requested (trusted beneficiaries exemption of no challenge required) * **09**: Challenge requested (trusted beneficiaries prompt requested if challenge required) * **80**: No challenge requested (secure corporate payment with Mastercard) * **82**: No challenge requested (secure corporate payment with Visa) * @return the current {@code AuthenticationInfo} instance, allowing for method chaining */ public AuthenticationInfo challengeIndicator(ChallengeIndicatorEnum challengeIndicator) { @@ -604,23 +552,8 @@ public AuthenticationInfo challengeIndicator(ChallengeIndicatorEnum challengeInd } /** - * Specifies a preference for receiving a challenge. Possible values: * **01**: No preference * - * **02**: No challenge requested * **03**: Challenge requested (preference) * **04**: Challenge - * requested (mandate) * **05**: No challenge requested (transactional risk analysis is already - * performed) * **07**: No challenge requested (SCA is already performed) * **08**: No challenge - * requested (trusted beneficiaries exemption of no challenge required) * **09**: Challenge - * requested (trusted beneficiaries prompt requested if challenge required) * **80**: No challenge - * requested (secure corporate payment with Mastercard) * **82**: No challenge requested (secure - * corporate payment with Visa) - * - * @return challengeIndicator Specifies a preference for receiving a challenge. Possible values: * - * **01**: No preference * **02**: No challenge requested * **03**: Challenge requested - * (preference) * **04**: Challenge requested (mandate) * **05**: No challenge requested - * (transactional risk analysis is already performed) * **07**: No challenge requested (SCA is - * already performed) * **08**: No challenge requested (trusted beneficiaries exemption of no - * challenge required) * **09**: Challenge requested (trusted beneficiaries prompt requested - * if challenge required) * **80**: No challenge requested (secure corporate payment with - * Mastercard) * **82**: No challenge requested (secure corporate payment with Visa) + * Specifies a preference for receiving a challenge. Possible values: * **01**: No preference * **02**: No challenge requested * **03**: Challenge requested (preference) * **04**: Challenge requested (mandate) * **05**: No challenge requested (transactional risk analysis is already performed) * **07**: No challenge requested (SCA is already performed) * **08**: No challenge requested (trusted beneficiaries exemption of no challenge required) * **09**: Challenge requested (trusted beneficiaries prompt requested if challenge required) * **80**: No challenge requested (secure corporate payment with Mastercard) * **82**: No challenge requested (secure corporate payment with Visa) + * @return challengeIndicator Specifies a preference for receiving a challenge. Possible values: * **01**: No preference * **02**: No challenge requested * **03**: Challenge requested (preference) * **04**: Challenge requested (mandate) * **05**: No challenge requested (transactional risk analysis is already performed) * **07**: No challenge requested (SCA is already performed) * **08**: No challenge requested (trusted beneficiaries exemption of no challenge required) * **09**: Challenge requested (trusted beneficiaries prompt requested if challenge required) * **80**: No challenge requested (secure corporate payment with Mastercard) * **82**: No challenge requested (secure corporate payment with Visa) */ @JsonProperty(JSON_PROPERTY_CHALLENGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -629,23 +562,9 @@ public ChallengeIndicatorEnum getChallengeIndicator() { } /** - * Specifies a preference for receiving a challenge. Possible values: * **01**: No preference * - * **02**: No challenge requested * **03**: Challenge requested (preference) * **04**: Challenge - * requested (mandate) * **05**: No challenge requested (transactional risk analysis is already - * performed) * **07**: No challenge requested (SCA is already performed) * **08**: No challenge - * requested (trusted beneficiaries exemption of no challenge required) * **09**: Challenge - * requested (trusted beneficiaries prompt requested if challenge required) * **80**: No challenge - * requested (secure corporate payment with Mastercard) * **82**: No challenge requested (secure - * corporate payment with Visa) + * Specifies a preference for receiving a challenge. Possible values: * **01**: No preference * **02**: No challenge requested * **03**: Challenge requested (preference) * **04**: Challenge requested (mandate) * **05**: No challenge requested (transactional risk analysis is already performed) * **07**: No challenge requested (SCA is already performed) * **08**: No challenge requested (trusted beneficiaries exemption of no challenge required) * **09**: Challenge requested (trusted beneficiaries prompt requested if challenge required) * **80**: No challenge requested (secure corporate payment with Mastercard) * **82**: No challenge requested (secure corporate payment with Visa) * - * @param challengeIndicator Specifies a preference for receiving a challenge. Possible values: * - * **01**: No preference * **02**: No challenge requested * **03**: Challenge requested - * (preference) * **04**: Challenge requested (mandate) * **05**: No challenge requested - * (transactional risk analysis is already performed) * **07**: No challenge requested (SCA is - * already performed) * **08**: No challenge requested (trusted beneficiaries exemption of no - * challenge required) * **09**: Challenge requested (trusted beneficiaries prompt requested - * if challenge required) * **80**: No challenge requested (secure corporate payment with - * Mastercard) * **82**: No challenge requested (secure corporate payment with Visa) + * @param challengeIndicator Specifies a preference for receiving a challenge. Possible values: * **01**: No preference * **02**: No challenge requested * **03**: Challenge requested (preference) * **04**: Challenge requested (mandate) * **05**: No challenge requested (transactional risk analysis is already performed) * **07**: No challenge requested (SCA is already performed) * **08**: No challenge requested (trusted beneficiaries exemption of no challenge required) * **09**: Challenge requested (trusted beneficiaries prompt requested if challenge required) * **80**: No challenge requested (secure corporate payment with Mastercard) * **82**: No challenge requested (secure corporate payment with Visa) */ @JsonProperty(JSON_PROPERTY_CHALLENGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -654,13 +573,9 @@ public void setChallengeIndicator(ChallengeIndicatorEnum challengeIndicator) { } /** - * Date and time in UTC of the cardholder authentication. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. + * Date and time in UTC of the cardholder authentication. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. * - * @param createdAt Date and time in UTC of the cardholder authentication. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. + * @param createdAt Date and time in UTC of the cardholder authentication. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. * @return the current {@code AuthenticationInfo} instance, allowing for method chaining */ public AuthenticationInfo createdAt(OffsetDateTime createdAt) { @@ -669,13 +584,8 @@ public AuthenticationInfo createdAt(OffsetDateTime createdAt) { } /** - * Date and time in UTC of the cardholder authentication. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. - * - * @return createdAt Date and time in UTC of the cardholder authentication. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. + * Date and time in UTC of the cardholder authentication. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * @return createdAt Date and time in UTC of the cardholder authentication. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -684,13 +594,9 @@ public OffsetDateTime getCreatedAt() { } /** - * Date and time in UTC of the cardholder authentication. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. + * Date and time in UTC of the cardholder authentication. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. * - * @param createdAt Date and time in UTC of the cardholder authentication. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. + * @param createdAt Date and time in UTC of the cardholder authentication. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -699,13 +605,9 @@ public void setCreatedAt(OffsetDateTime createdAt) { } /** - * Indicates the type of channel interface being used to initiate the transaction. Possible - * values: * **app** * **browser** * **3DSRequestorInitiated** (initiated by a merchant when the - * cardholder is not available) + * Indicates the type of channel interface being used to initiate the transaction. Possible values: * **app** * **browser** * **3DSRequestorInitiated** (initiated by a merchant when the cardholder is not available) * - * @param deviceChannel Indicates the type of channel interface being used to initiate the - * transaction. Possible values: * **app** * **browser** * **3DSRequestorInitiated** - * (initiated by a merchant when the cardholder is not available) + * @param deviceChannel Indicates the type of channel interface being used to initiate the transaction. Possible values: * **app** * **browser** * **3DSRequestorInitiated** (initiated by a merchant when the cardholder is not available) * @return the current {@code AuthenticationInfo} instance, allowing for method chaining */ public AuthenticationInfo deviceChannel(DeviceChannelEnum deviceChannel) { @@ -714,13 +616,8 @@ public AuthenticationInfo deviceChannel(DeviceChannelEnum deviceChannel) { } /** - * Indicates the type of channel interface being used to initiate the transaction. Possible - * values: * **app** * **browser** * **3DSRequestorInitiated** (initiated by a merchant when the - * cardholder is not available) - * - * @return deviceChannel Indicates the type of channel interface being used to initiate the - * transaction. Possible values: * **app** * **browser** * **3DSRequestorInitiated** - * (initiated by a merchant when the cardholder is not available) + * Indicates the type of channel interface being used to initiate the transaction. Possible values: * **app** * **browser** * **3DSRequestorInitiated** (initiated by a merchant when the cardholder is not available) + * @return deviceChannel Indicates the type of channel interface being used to initiate the transaction. Possible values: * **app** * **browser** * **3DSRequestorInitiated** (initiated by a merchant when the cardholder is not available) */ @JsonProperty(JSON_PROPERTY_DEVICE_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -729,13 +626,9 @@ public DeviceChannelEnum getDeviceChannel() { } /** - * Indicates the type of channel interface being used to initiate the transaction. Possible - * values: * **app** * **browser** * **3DSRequestorInitiated** (initiated by a merchant when the - * cardholder is not available) + * Indicates the type of channel interface being used to initiate the transaction. Possible values: * **app** * **browser** * **3DSRequestorInitiated** (initiated by a merchant when the cardholder is not available) * - * @param deviceChannel Indicates the type of channel interface being used to initiate the - * transaction. Possible values: * **app** * **browser** * **3DSRequestorInitiated** - * (initiated by a merchant when the cardholder is not available) + * @param deviceChannel Indicates the type of channel interface being used to initiate the transaction. Possible values: * **app** * **browser** * **3DSRequestorInitiated** (initiated by a merchant when the cardholder is not available) */ @JsonProperty(JSON_PROPERTY_DEVICE_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -744,11 +637,9 @@ public void setDeviceChannel(DeviceChannelEnum deviceChannel) { } /** - * Universally unique transaction identifier assigned by the DS (card scheme) to identify a single - * transaction. + * Universally unique transaction identifier assigned by the DS (card scheme) to identify a single transaction. * - * @param dsTransID Universally unique transaction identifier assigned by the DS (card scheme) to - * identify a single transaction. + * @param dsTransID Universally unique transaction identifier assigned by the DS (card scheme) to identify a single transaction. * @return the current {@code AuthenticationInfo} instance, allowing for method chaining */ public AuthenticationInfo dsTransID(String dsTransID) { @@ -757,11 +648,8 @@ public AuthenticationInfo dsTransID(String dsTransID) { } /** - * Universally unique transaction identifier assigned by the DS (card scheme) to identify a single - * transaction. - * - * @return dsTransID Universally unique transaction identifier assigned by the DS (card scheme) to - * identify a single transaction. + * Universally unique transaction identifier assigned by the DS (card scheme) to identify a single transaction. + * @return dsTransID Universally unique transaction identifier assigned by the DS (card scheme) to identify a single transaction. */ @JsonProperty(JSON_PROPERTY_DS_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -770,11 +658,9 @@ public String getDsTransID() { } /** - * Universally unique transaction identifier assigned by the DS (card scheme) to identify a single - * transaction. + * Universally unique transaction identifier assigned by the DS (card scheme) to identify a single transaction. * - * @param dsTransID Universally unique transaction identifier assigned by the DS (card scheme) to - * identify a single transaction. + * @param dsTransID Universally unique transaction identifier assigned by the DS (card scheme) to identify a single transaction. */ @JsonProperty(JSON_PROPERTY_DS_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -783,15 +669,9 @@ public void setDsTransID(String dsTransID) { } /** - * Indicates the exemption type that was applied to the authentication by the issuer, if exemption - * applied. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * - * **transactionRiskAnalysis** * **acquirerExemption** * **noExemptionApplied** * - * **visaDAFExemption** + * Indicates the exemption type that was applied to the authentication by the issuer, if exemption applied. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * **acquirerExemption** * **noExemptionApplied** * **visaDAFExemption** * - * @param exemptionIndicator Indicates the exemption type that was applied to the authentication - * by the issuer, if exemption applied. Possible values: * **lowValue** * **secureCorporate** - * * **trustedBeneficiary** * **transactionRiskAnalysis** * **acquirerExemption** * - * **noExemptionApplied** * **visaDAFExemption** + * @param exemptionIndicator Indicates the exemption type that was applied to the authentication by the issuer, if exemption applied. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * **acquirerExemption** * **noExemptionApplied** * **visaDAFExemption** * @return the current {@code AuthenticationInfo} instance, allowing for method chaining */ public AuthenticationInfo exemptionIndicator(ExemptionIndicatorEnum exemptionIndicator) { @@ -800,15 +680,8 @@ public AuthenticationInfo exemptionIndicator(ExemptionIndicatorEnum exemptionInd } /** - * Indicates the exemption type that was applied to the authentication by the issuer, if exemption - * applied. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * - * **transactionRiskAnalysis** * **acquirerExemption** * **noExemptionApplied** * - * **visaDAFExemption** - * - * @return exemptionIndicator Indicates the exemption type that was applied to the authentication - * by the issuer, if exemption applied. Possible values: * **lowValue** * **secureCorporate** - * * **trustedBeneficiary** * **transactionRiskAnalysis** * **acquirerExemption** * - * **noExemptionApplied** * **visaDAFExemption** + * Indicates the exemption type that was applied to the authentication by the issuer, if exemption applied. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * **acquirerExemption** * **noExemptionApplied** * **visaDAFExemption** + * @return exemptionIndicator Indicates the exemption type that was applied to the authentication by the issuer, if exemption applied. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * **acquirerExemption** * **noExemptionApplied** * **visaDAFExemption** */ @JsonProperty(JSON_PROPERTY_EXEMPTION_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -817,15 +690,9 @@ public ExemptionIndicatorEnum getExemptionIndicator() { } /** - * Indicates the exemption type that was applied to the authentication by the issuer, if exemption - * applied. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * - * **transactionRiskAnalysis** * **acquirerExemption** * **noExemptionApplied** * - * **visaDAFExemption** + * Indicates the exemption type that was applied to the authentication by the issuer, if exemption applied. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * **acquirerExemption** * **noExemptionApplied** * **visaDAFExemption** * - * @param exemptionIndicator Indicates the exemption type that was applied to the authentication - * by the issuer, if exemption applied. Possible values: * **lowValue** * **secureCorporate** - * * **trustedBeneficiary** * **transactionRiskAnalysis** * **acquirerExemption** * - * **noExemptionApplied** * **visaDAFExemption** + * @param exemptionIndicator Indicates the exemption type that was applied to the authentication by the issuer, if exemption applied. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * **acquirerExemption** * **noExemptionApplied** * **visaDAFExemption** */ @JsonProperty(JSON_PROPERTY_EXEMPTION_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -846,7 +713,6 @@ public AuthenticationInfo inPSD2Scope(Boolean inPSD2Scope) { /** * Indicates if the purchase was in the PSD2 scope. - * * @return inPSD2Scope Indicates if the purchase was in the PSD2 scope. */ @JsonProperty(JSON_PROPERTY_IN_P_S_D2_SCOPE) @@ -867,11 +733,9 @@ public void setInPSD2Scope(Boolean inPSD2Scope) { } /** - * Identifies the category of the message for a specific use case. Possible values: * **payment** - * * **nonPayment** + * Identifies the category of the message for a specific use case. Possible values: * **payment** * **nonPayment** * - * @param messageCategory Identifies the category of the message for a specific use case. Possible - * values: * **payment** * **nonPayment** + * @param messageCategory Identifies the category of the message for a specific use case. Possible values: * **payment** * **nonPayment** * @return the current {@code AuthenticationInfo} instance, allowing for method chaining */ public AuthenticationInfo messageCategory(MessageCategoryEnum messageCategory) { @@ -880,11 +744,8 @@ public AuthenticationInfo messageCategory(MessageCategoryEnum messageCategory) { } /** - * Identifies the category of the message for a specific use case. Possible values: * **payment** - * * **nonPayment** - * - * @return messageCategory Identifies the category of the message for a specific use case. - * Possible values: * **payment** * **nonPayment** + * Identifies the category of the message for a specific use case. Possible values: * **payment** * **nonPayment** + * @return messageCategory Identifies the category of the message for a specific use case. Possible values: * **payment** * **nonPayment** */ @JsonProperty(JSON_PROPERTY_MESSAGE_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -893,11 +754,9 @@ public MessageCategoryEnum getMessageCategory() { } /** - * Identifies the category of the message for a specific use case. Possible values: * **payment** - * * **nonPayment** + * Identifies the category of the message for a specific use case. Possible values: * **payment** * **nonPayment** * - * @param messageCategory Identifies the category of the message for a specific use case. Possible - * values: * **payment** * **nonPayment** + * @param messageCategory Identifies the category of the message for a specific use case. Possible values: * **payment** * **nonPayment** */ @JsonProperty(JSON_PROPERTY_MESSAGE_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -908,8 +767,7 @@ public void setMessageCategory(MessageCategoryEnum messageCategory) { /** * The `messageVersion` value as defined in the 3D Secure 2 specification. * - * @param messageVersion The `messageVersion` value as defined in the 3D Secure 2 - * specification. + * @param messageVersion The `messageVersion` value as defined in the 3D Secure 2 specification. * @return the current {@code AuthenticationInfo} instance, allowing for method chaining */ public AuthenticationInfo messageVersion(String messageVersion) { @@ -919,9 +777,7 @@ public AuthenticationInfo messageVersion(String messageVersion) { /** * The `messageVersion` value as defined in the 3D Secure 2 specification. - * - * @return messageVersion The `messageVersion` value as defined in the 3D Secure 2 - * specification. + * @return messageVersion The `messageVersion` value as defined in the 3D Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_MESSAGE_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -932,8 +788,7 @@ public String getMessageVersion() { /** * The `messageVersion` value as defined in the 3D Secure 2 specification. * - * @param messageVersion The `messageVersion` value as defined in the 3D Secure 2 - * specification. + * @param messageVersion The `messageVersion` value as defined in the 3D Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_MESSAGE_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -954,7 +809,6 @@ public AuthenticationInfo riskScore(Integer riskScore) { /** * Risk score calculated from the transaction rules. - * * @return riskScore Risk score calculated from the transaction rules. */ @JsonProperty(JSON_PROPERTY_RISK_SCORE) @@ -977,8 +831,7 @@ public void setRiskScore(Integer riskScore) { /** * The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. * - * @param threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D - * Secure 2 specification. + * @param threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. * @return the current {@code AuthenticationInfo} instance, allowing for method chaining */ public AuthenticationInfo threeDSServerTransID(String threeDSServerTransID) { @@ -988,9 +841,7 @@ public AuthenticationInfo threeDSServerTransID(String threeDSServerTransID) { /** * The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. - * - * @return threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D - * Secure 2 specification. + * @return threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_SERVER_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1001,8 +852,7 @@ public String getThreeDSServerTransID() { /** * The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. * - * @param threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D - * Secure 2 specification. + * @param threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_SERVER_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1011,18 +861,9 @@ public void setThreeDSServerTransID(String threeDSServerTransID) { } /** - * The `transStatus` value as defined in the 3D Secure 2 specification. Possible values: - * * **Y**: Authentication / Account verification successful. * **N**: Not Authenticated / Account - * not verified. Transaction denied. * **U**: Authentication / Account verification could not be - * performed. * **I**: Informational Only / 3D Secure Requestor challenge preference acknowledged. - * * **R**: Authentication / Account verification rejected by the Issuer. + * The `transStatus` value as defined in the 3D Secure 2 specification. Possible values: * **Y**: Authentication / Account verification successful. * **N**: Not Authenticated / Account not verified. Transaction denied. * **U**: Authentication / Account verification could not be performed. * **I**: Informational Only / 3D Secure Requestor challenge preference acknowledged. * **R**: Authentication / Account verification rejected by the Issuer. * - * @param transStatus The `transStatus` value as defined in the 3D Secure 2 - * specification. Possible values: * **Y**: Authentication / Account verification successful. - * * **N**: Not Authenticated / Account not verified. Transaction denied. * **U**: - * Authentication / Account verification could not be performed. * **I**: Informational Only / - * 3D Secure Requestor challenge preference acknowledged. * **R**: Authentication / Account - * verification rejected by the Issuer. + * @param transStatus The `transStatus` value as defined in the 3D Secure 2 specification. Possible values: * **Y**: Authentication / Account verification successful. * **N**: Not Authenticated / Account not verified. Transaction denied. * **U**: Authentication / Account verification could not be performed. * **I**: Informational Only / 3D Secure Requestor challenge preference acknowledged. * **R**: Authentication / Account verification rejected by the Issuer. * @return the current {@code AuthenticationInfo} instance, allowing for method chaining */ public AuthenticationInfo transStatus(TransStatusEnum transStatus) { @@ -1031,18 +872,8 @@ public AuthenticationInfo transStatus(TransStatusEnum transStatus) { } /** - * The `transStatus` value as defined in the 3D Secure 2 specification. Possible values: - * * **Y**: Authentication / Account verification successful. * **N**: Not Authenticated / Account - * not verified. Transaction denied. * **U**: Authentication / Account verification could not be - * performed. * **I**: Informational Only / 3D Secure Requestor challenge preference acknowledged. - * * **R**: Authentication / Account verification rejected by the Issuer. - * - * @return transStatus The `transStatus` value as defined in the 3D Secure 2 - * specification. Possible values: * **Y**: Authentication / Account verification successful. - * * **N**: Not Authenticated / Account not verified. Transaction denied. * **U**: - * Authentication / Account verification could not be performed. * **I**: Informational Only / - * 3D Secure Requestor challenge preference acknowledged. * **R**: Authentication / Account - * verification rejected by the Issuer. + * The `transStatus` value as defined in the 3D Secure 2 specification. Possible values: * **Y**: Authentication / Account verification successful. * **N**: Not Authenticated / Account not verified. Transaction denied. * **U**: Authentication / Account verification could not be performed. * **I**: Informational Only / 3D Secure Requestor challenge preference acknowledged. * **R**: Authentication / Account verification rejected by the Issuer. + * @return transStatus The `transStatus` value as defined in the 3D Secure 2 specification. Possible values: * **Y**: Authentication / Account verification successful. * **N**: Not Authenticated / Account not verified. Transaction denied. * **U**: Authentication / Account verification could not be performed. * **I**: Informational Only / 3D Secure Requestor challenge preference acknowledged. * **R**: Authentication / Account verification rejected by the Issuer. */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1051,18 +882,9 @@ public TransStatusEnum getTransStatus() { } /** - * The `transStatus` value as defined in the 3D Secure 2 specification. Possible values: - * * **Y**: Authentication / Account verification successful. * **N**: Not Authenticated / Account - * not verified. Transaction denied. * **U**: Authentication / Account verification could not be - * performed. * **I**: Informational Only / 3D Secure Requestor challenge preference acknowledged. - * * **R**: Authentication / Account verification rejected by the Issuer. + * The `transStatus` value as defined in the 3D Secure 2 specification. Possible values: * **Y**: Authentication / Account verification successful. * **N**: Not Authenticated / Account not verified. Transaction denied. * **U**: Authentication / Account verification could not be performed. * **I**: Informational Only / 3D Secure Requestor challenge preference acknowledged. * **R**: Authentication / Account verification rejected by the Issuer. * - * @param transStatus The `transStatus` value as defined in the 3D Secure 2 - * specification. Possible values: * **Y**: Authentication / Account verification successful. - * * **N**: Not Authenticated / Account not verified. Transaction denied. * **U**: - * Authentication / Account verification could not be performed. * **I**: Informational Only / - * 3D Secure Requestor challenge preference acknowledged. * **R**: Authentication / Account - * verification rejected by the Issuer. + * @param transStatus The `transStatus` value as defined in the 3D Secure 2 specification. Possible values: * **Y**: Authentication / Account verification successful. * **N**: Not Authenticated / Account not verified. Transaction denied. * **U**: Authentication / Account verification could not be performed. * **I**: Informational Only / 3D Secure Requestor challenge preference acknowledged. * **R**: Authentication / Account verification rejected by the Issuer. */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1071,13 +893,9 @@ public void setTransStatus(TransStatusEnum transStatus) { } /** - * Provides information on why the `transStatus` field has the specified value. For - * possible values, refer to [our - * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). * - * @param transStatusReason Provides information on why the `transStatus` field has the - * specified value. For possible values, refer to [our - * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * @param transStatusReason Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). * @return the current {@code AuthenticationInfo} instance, allowing for method chaining */ public AuthenticationInfo transStatusReason(TransStatusReasonEnum transStatusReason) { @@ -1086,13 +904,8 @@ public AuthenticationInfo transStatusReason(TransStatusReasonEnum transStatusRea } /** - * Provides information on why the `transStatus` field has the specified value. For - * possible values, refer to [our - * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). - * - * @return transStatusReason Provides information on why the `transStatus` field has the - * specified value. For possible values, refer to [our - * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * @return transStatusReason Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1101,13 +914,9 @@ public TransStatusReasonEnum getTransStatusReason() { } /** - * Provides information on why the `transStatus` field has the specified value. For - * possible values, refer to [our - * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). * - * @param transStatusReason Provides information on why the `transStatus` field has the - * specified value. For possible values, refer to [our - * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * @param transStatusReason Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1116,10 +925,9 @@ public void setTransStatusReason(TransStatusReasonEnum transStatusReason) { } /** - * The type of authentication performed. Possible values: * **frictionless** * **challenge** + * The type of authentication performed. Possible values: * **frictionless** * **challenge** * - * @param type The type of authentication performed. Possible values: * **frictionless** * - * **challenge** + * @param type The type of authentication performed. Possible values: * **frictionless** * **challenge** * @return the current {@code AuthenticationInfo} instance, allowing for method chaining */ public AuthenticationInfo type(TypeEnum type) { @@ -1128,10 +936,8 @@ public AuthenticationInfo type(TypeEnum type) { } /** - * The type of authentication performed. Possible values: * **frictionless** * **challenge** - * - * @return type The type of authentication performed. Possible values: * **frictionless** * - * **challenge** + * The type of authentication performed. Possible values: * **frictionless** * **challenge** + * @return type The type of authentication performed. Possible values: * **frictionless** * **challenge** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1140,10 +946,9 @@ public TypeEnum getType() { } /** - * The type of authentication performed. Possible values: * **frictionless** * **challenge** + * The type of authentication performed. Possible values: * **frictionless** * **challenge** * - * @param type The type of authentication performed. Possible values: * **frictionless** * - * **challenge** + * @param type The type of authentication performed. Possible values: * **frictionless** * **challenge** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1151,7 +956,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this AuthenticationInfo object is equal to o. */ + /** + * Return true if this AuthenticationInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -1161,41 +968,26 @@ public boolean equals(Object o) { return false; } AuthenticationInfo authenticationInfo = (AuthenticationInfo) o; - return Objects.equals(this.acsTransId, authenticationInfo.acsTransId) - && Objects.equals(this.challenge, authenticationInfo.challenge) - && Objects.equals(this.challengeIndicator, authenticationInfo.challengeIndicator) - && Objects.equals(this.createdAt, authenticationInfo.createdAt) - && Objects.equals(this.deviceChannel, authenticationInfo.deviceChannel) - && Objects.equals(this.dsTransID, authenticationInfo.dsTransID) - && Objects.equals(this.exemptionIndicator, authenticationInfo.exemptionIndicator) - && Objects.equals(this.inPSD2Scope, authenticationInfo.inPSD2Scope) - && Objects.equals(this.messageCategory, authenticationInfo.messageCategory) - && Objects.equals(this.messageVersion, authenticationInfo.messageVersion) - && Objects.equals(this.riskScore, authenticationInfo.riskScore) - && Objects.equals(this.threeDSServerTransID, authenticationInfo.threeDSServerTransID) - && Objects.equals(this.transStatus, authenticationInfo.transStatus) - && Objects.equals(this.transStatusReason, authenticationInfo.transStatusReason) - && Objects.equals(this.type, authenticationInfo.type); + return Objects.equals(this.acsTransId, authenticationInfo.acsTransId) && + Objects.equals(this.challenge, authenticationInfo.challenge) && + Objects.equals(this.challengeIndicator, authenticationInfo.challengeIndicator) && + Objects.equals(this.createdAt, authenticationInfo.createdAt) && + Objects.equals(this.deviceChannel, authenticationInfo.deviceChannel) && + Objects.equals(this.dsTransID, authenticationInfo.dsTransID) && + Objects.equals(this.exemptionIndicator, authenticationInfo.exemptionIndicator) && + Objects.equals(this.inPSD2Scope, authenticationInfo.inPSD2Scope) && + Objects.equals(this.messageCategory, authenticationInfo.messageCategory) && + Objects.equals(this.messageVersion, authenticationInfo.messageVersion) && + Objects.equals(this.riskScore, authenticationInfo.riskScore) && + Objects.equals(this.threeDSServerTransID, authenticationInfo.threeDSServerTransID) && + Objects.equals(this.transStatus, authenticationInfo.transStatus) && + Objects.equals(this.transStatusReason, authenticationInfo.transStatusReason) && + Objects.equals(this.type, authenticationInfo.type); } @Override public int hashCode() { - return Objects.hash( - acsTransId, - challenge, - challengeIndicator, - createdAt, - deviceChannel, - dsTransID, - exemptionIndicator, - inPSD2Scope, - messageCategory, - messageVersion, - riskScore, - threeDSServerTransID, - transStatus, - transStatusReason, - type); + return Objects.hash(acsTransId, challenge, challengeIndicator, createdAt, deviceChannel, dsTransID, exemptionIndicator, inPSD2Scope, messageCategory, messageVersion, riskScore, threeDSServerTransID, transStatus, transStatusReason, type); } @Override @@ -1213,9 +1005,7 @@ public String toString() { sb.append(" messageCategory: ").append(toIndentedString(messageCategory)).append("\n"); sb.append(" messageVersion: ").append(toIndentedString(messageVersion)).append("\n"); sb.append(" riskScore: ").append(toIndentedString(riskScore)).append("\n"); - sb.append(" threeDSServerTransID: ") - .append(toIndentedString(threeDSServerTransID)) - .append("\n"); + sb.append(" threeDSServerTransID: ").append(toIndentedString(threeDSServerTransID)).append("\n"); sb.append(" transStatus: ").append(toIndentedString(transStatus)).append("\n"); sb.append(" transStatusReason: ").append(toIndentedString(transStatusReason)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); @@ -1224,7 +1014,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1233,23 +1024,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AuthenticationInfo given an JSON string * * @param jsonString JSON string * @return An instance of AuthenticationInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AuthenticationInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to AuthenticationInfo */ public static AuthenticationInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AuthenticationInfo.class); } - - /** - * Convert an instance of AuthenticationInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AuthenticationInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/acswebhooks/AuthenticationNotificationData.java b/src/main/java/com/adyen/model/acswebhooks/AuthenticationNotificationData.java index d7acf3076..acf61bd5b 100644 --- a/src/main/java/com/adyen/model/acswebhooks/AuthenticationNotificationData.java +++ b/src/main/java/com/adyen/model/acswebhooks/AuthenticationNotificationData.java @@ -2,26 +2,33 @@ * Authentication webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.acswebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.acswebhooks.AuthenticationInfo; +import com.adyen.model.acswebhooks.PurchaseInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** AuthenticationNotificationData */ +/** + * AuthenticationNotificationData + */ @JsonPropertyOrder({ AuthenticationNotificationData.JSON_PROPERTY_AUTHENTICATION, AuthenticationNotificationData.JSON_PROPERTY_BALANCE_PLATFORM, @@ -30,6 +37,7 @@ AuthenticationNotificationData.JSON_PROPERTY_PURCHASE, AuthenticationNotificationData.JSON_PROPERTY_STATUS }) + public class AuthenticationNotificationData { public static final String JSON_PROPERTY_AUTHENTICATION = "authentication"; private AuthenticationInfo authentication; @@ -46,8 +54,11 @@ public class AuthenticationNotificationData { public static final String JSON_PROPERTY_PURCHASE = "purchase"; private PurchaseInfo purchase; - /** Outcome of the authentication. Allowed values: * authenticated * rejected * error */ + /** + * Outcome of the authentication. Allowed values: * authenticated * rejected * error + */ public enum StatusEnum { + AUTHENTICATED(String.valueOf("authenticated")), REJECTED(String.valueOf("rejected")), @@ -59,7 +70,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -80,11 +91,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -92,14 +99,14 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; - public AuthenticationNotificationData() {} + public AuthenticationNotificationData() { + } /** * authentication * - * @param authentication - * @return the current {@code AuthenticationNotificationData} instance, allowing for method - * chaining + * @param authentication + * @return the current {@code AuthenticationNotificationData} instance, allowing for method chaining */ public AuthenticationNotificationData authentication(AuthenticationInfo authentication) { this.authentication = authentication; @@ -108,8 +115,7 @@ public AuthenticationNotificationData authentication(AuthenticationInfo authenti /** * Get authentication - * - * @return authentication + * @return authentication */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -120,7 +126,7 @@ public AuthenticationInfo getAuthentication() { /** * authentication * - * @param authentication + * @param authentication */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,8 +138,7 @@ public void setAuthentication(AuthenticationInfo authentication) { * The unique identifier of the balance platform. * * @param balancePlatform The unique identifier of the balance platform. - * @return the current {@code AuthenticationNotificationData} instance, allowing for method - * chaining + * @return the current {@code AuthenticationNotificationData} instance, allowing for method chaining */ public AuthenticationNotificationData balancePlatform(String balancePlatform) { this.balancePlatform = balancePlatform; @@ -142,7 +147,6 @@ public AuthenticationNotificationData balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. - * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -166,8 +170,7 @@ public void setBalancePlatform(String balancePlatform) { * The unique identifier of the authentication. * * @param id The unique identifier of the authentication. - * @return the current {@code AuthenticationNotificationData} instance, allowing for method - * chaining + * @return the current {@code AuthenticationNotificationData} instance, allowing for method chaining */ public AuthenticationNotificationData id(String id) { this.id = id; @@ -176,7 +179,6 @@ public AuthenticationNotificationData id(String id) { /** * The unique identifier of the authentication. - * * @return id The unique identifier of the authentication. */ @JsonProperty(JSON_PROPERTY_ID) @@ -199,10 +201,8 @@ public void setId(String id) { /** * The unique identifier of the payment instrument that was used for the authentication. * - * @param paymentInstrumentId The unique identifier of the payment instrument that was used for - * the authentication. - * @return the current {@code AuthenticationNotificationData} instance, allowing for method - * chaining + * @param paymentInstrumentId The unique identifier of the payment instrument that was used for the authentication. + * @return the current {@code AuthenticationNotificationData} instance, allowing for method chaining */ public AuthenticationNotificationData paymentInstrumentId(String paymentInstrumentId) { this.paymentInstrumentId = paymentInstrumentId; @@ -211,9 +211,7 @@ public AuthenticationNotificationData paymentInstrumentId(String paymentInstrume /** * The unique identifier of the payment instrument that was used for the authentication. - * - * @return paymentInstrumentId The unique identifier of the payment instrument that was used for - * the authentication. + * @return paymentInstrumentId The unique identifier of the payment instrument that was used for the authentication. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,8 +222,7 @@ public String getPaymentInstrumentId() { /** * The unique identifier of the payment instrument that was used for the authentication. * - * @param paymentInstrumentId The unique identifier of the payment instrument that was used for - * the authentication. + * @param paymentInstrumentId The unique identifier of the payment instrument that was used for the authentication. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -236,9 +233,8 @@ public void setPaymentInstrumentId(String paymentInstrumentId) { /** * purchase * - * @param purchase - * @return the current {@code AuthenticationNotificationData} instance, allowing for method - * chaining + * @param purchase + * @return the current {@code AuthenticationNotificationData} instance, allowing for method chaining */ public AuthenticationNotificationData purchase(PurchaseInfo purchase) { this.purchase = purchase; @@ -247,8 +243,7 @@ public AuthenticationNotificationData purchase(PurchaseInfo purchase) { /** * Get purchase - * - * @return purchase + * @return purchase */ @JsonProperty(JSON_PROPERTY_PURCHASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -259,7 +254,7 @@ public PurchaseInfo getPurchase() { /** * purchase * - * @param purchase + * @param purchase */ @JsonProperty(JSON_PROPERTY_PURCHASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -271,8 +266,7 @@ public void setPurchase(PurchaseInfo purchase) { * Outcome of the authentication. Allowed values: * authenticated * rejected * error * * @param status Outcome of the authentication. Allowed values: * authenticated * rejected * error - * @return the current {@code AuthenticationNotificationData} instance, allowing for method - * chaining + * @return the current {@code AuthenticationNotificationData} instance, allowing for method chaining */ public AuthenticationNotificationData status(StatusEnum status) { this.status = status; @@ -281,9 +275,7 @@ public AuthenticationNotificationData status(StatusEnum status) { /** * Outcome of the authentication. Allowed values: * authenticated * rejected * error - * - * @return status Outcome of the authentication. Allowed values: * authenticated * rejected * - * error + * @return status Outcome of the authentication. Allowed values: * authenticated * rejected * error */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -302,7 +294,9 @@ public void setStatus(StatusEnum status) { this.status = status; } - /** Return true if this AuthenticationNotificationData object is equal to o. */ + /** + * Return true if this AuthenticationNotificationData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -311,15 +305,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AuthenticationNotificationData authenticationNotificationData = - (AuthenticationNotificationData) o; - return Objects.equals(this.authentication, authenticationNotificationData.authentication) - && Objects.equals(this.balancePlatform, authenticationNotificationData.balancePlatform) - && Objects.equals(this.id, authenticationNotificationData.id) - && Objects.equals( - this.paymentInstrumentId, authenticationNotificationData.paymentInstrumentId) - && Objects.equals(this.purchase, authenticationNotificationData.purchase) - && Objects.equals(this.status, authenticationNotificationData.status); + AuthenticationNotificationData authenticationNotificationData = (AuthenticationNotificationData) o; + return Objects.equals(this.authentication, authenticationNotificationData.authentication) && + Objects.equals(this.balancePlatform, authenticationNotificationData.balancePlatform) && + Objects.equals(this.id, authenticationNotificationData.id) && + Objects.equals(this.paymentInstrumentId, authenticationNotificationData.paymentInstrumentId) && + Objects.equals(this.purchase, authenticationNotificationData.purchase) && + Objects.equals(this.status, authenticationNotificationData.status); } @Override @@ -334,9 +326,7 @@ public String toString() { sb.append(" authentication: ").append(toIndentedString(authentication)).append("\n"); sb.append(" balancePlatform: ").append(toIndentedString(balancePlatform)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" paymentInstrumentId: ") - .append(toIndentedString(paymentInstrumentId)) - .append("\n"); + sb.append(" paymentInstrumentId: ").append(toIndentedString(paymentInstrumentId)).append("\n"); sb.append(" purchase: ").append(toIndentedString(purchase)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append("}"); @@ -344,7 +334,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -353,24 +344,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AuthenticationNotificationData given an JSON string * * @param jsonString JSON string * @return An instance of AuthenticationNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AuthenticationNotificationData + * @throws JsonProcessingException if the JSON string is invalid with respect to AuthenticationNotificationData */ - public static AuthenticationNotificationData fromJson(String jsonString) - throws JsonProcessingException { + public static AuthenticationNotificationData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AuthenticationNotificationData.class); } - - /** - * Convert an instance of AuthenticationNotificationData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AuthenticationNotificationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/acswebhooks/AuthenticationNotificationRequest.java b/src/main/java/com/adyen/model/acswebhooks/AuthenticationNotificationRequest.java index 076294fdf..8d24c3121 100644 --- a/src/main/java/com/adyen/model/acswebhooks/AuthenticationNotificationRequest.java +++ b/src/main/java/com/adyen/model/acswebhooks/AuthenticationNotificationRequest.java @@ -2,33 +2,40 @@ * Authentication webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.acswebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.acswebhooks.AuthenticationNotificationData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** AuthenticationNotificationRequest */ + +/** + * AuthenticationNotificationRequest + */ @JsonPropertyOrder({ AuthenticationNotificationRequest.JSON_PROPERTY_DATA, AuthenticationNotificationRequest.JSON_PROPERTY_ENVIRONMENT, AuthenticationNotificationRequest.JSON_PROPERTY_TIMESTAMP, AuthenticationNotificationRequest.JSON_PROPERTY_TYPE }) + public class AuthenticationNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private AuthenticationNotificationData data; @@ -39,17 +46,19 @@ public class AuthenticationNotificationRequest { public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; private OffsetDateTime timestamp; - /** Type of notification. */ + /** + * Type of notification. + */ public enum TypeEnum { - BALANCEPLATFORM_AUTHENTICATION_CREATED( - String.valueOf("balancePlatform.authentication.created")); + + BALANCEPLATFORM_AUTHENTICATION_CREATED(String.valueOf("balancePlatform.authentication.created")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -70,11 +79,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -82,14 +87,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AuthenticationNotificationRequest() {} + public AuthenticationNotificationRequest() { + } /** * data * - * @param data - * @return the current {@code AuthenticationNotificationRequest} instance, allowing for method - * chaining + * @param data + * @return the current {@code AuthenticationNotificationRequest} instance, allowing for method chaining */ public AuthenticationNotificationRequest data(AuthenticationNotificationData data) { this.data = data; @@ -98,8 +103,7 @@ public AuthenticationNotificationRequest data(AuthenticationNotificationData dat /** * Get data - * - * @return data + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,7 +114,7 @@ public AuthenticationNotificationData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -119,12 +123,10 @@ public void setData(AuthenticationNotificationData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. - * @return the current {@code AuthenticationNotificationRequest} instance, allowing for method - * chaining + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @return the current {@code AuthenticationNotificationRequest} instance, allowing for method chaining */ public AuthenticationNotificationRequest environment(String environment) { this.environment = environment; @@ -132,10 +134,8 @@ public AuthenticationNotificationRequest environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * - * @return environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,10 +144,9 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,8 +158,7 @@ public void setEnvironment(String environment) { * When the event was queued. * * @param timestamp When the event was queued. - * @return the current {@code AuthenticationNotificationRequest} instance, allowing for method - * chaining + * @return the current {@code AuthenticationNotificationRequest} instance, allowing for method chaining */ public AuthenticationNotificationRequest timestamp(OffsetDateTime timestamp) { this.timestamp = timestamp; @@ -169,7 +167,6 @@ public AuthenticationNotificationRequest timestamp(OffsetDateTime timestamp) { /** * When the event was queued. - * * @return timestamp When the event was queued. */ @JsonProperty(JSON_PROPERTY_TIMESTAMP) @@ -193,8 +190,7 @@ public void setTimestamp(OffsetDateTime timestamp) { * Type of notification. * * @param type Type of notification. - * @return the current {@code AuthenticationNotificationRequest} instance, allowing for method - * chaining + * @return the current {@code AuthenticationNotificationRequest} instance, allowing for method chaining */ public AuthenticationNotificationRequest type(TypeEnum type) { this.type = type; @@ -203,7 +199,6 @@ public AuthenticationNotificationRequest type(TypeEnum type) { /** * Type of notification. - * * @return type Type of notification. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -223,7 +218,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this AuthenticationNotificationRequest object is equal to o. */ + /** + * Return true if this AuthenticationNotificationRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -232,12 +229,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AuthenticationNotificationRequest authenticationNotificationRequest = - (AuthenticationNotificationRequest) o; - return Objects.equals(this.data, authenticationNotificationRequest.data) - && Objects.equals(this.environment, authenticationNotificationRequest.environment) - && Objects.equals(this.timestamp, authenticationNotificationRequest.timestamp) - && Objects.equals(this.type, authenticationNotificationRequest.type); + AuthenticationNotificationRequest authenticationNotificationRequest = (AuthenticationNotificationRequest) o; + return Objects.equals(this.data, authenticationNotificationRequest.data) && + Objects.equals(this.environment, authenticationNotificationRequest.environment) && + Objects.equals(this.timestamp, authenticationNotificationRequest.timestamp) && + Objects.equals(this.type, authenticationNotificationRequest.type); } @Override @@ -258,7 +254,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -267,24 +264,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AuthenticationNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of AuthenticationNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AuthenticationNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to AuthenticationNotificationRequest */ - public static AuthenticationNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static AuthenticationNotificationRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AuthenticationNotificationRequest.class); } - - /** - * Convert an instance of AuthenticationNotificationRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AuthenticationNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/acswebhooks/BalancePlatformNotificationResponse.java b/src/main/java/com/adyen/model/acswebhooks/BalancePlatformNotificationResponse.java index 88b15bd90..1dce9e75b 100644 --- a/src/main/java/com/adyen/model/acswebhooks/BalancePlatformNotificationResponse.java +++ b/src/main/java/com/adyen/model/acswebhooks/BalancePlatformNotificationResponse.java @@ -2,37 +2,47 @@ * Authentication webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.acswebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** BalancePlatformNotificationResponse */ -@JsonPropertyOrder({BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) + +/** + * BalancePlatformNotificationResponse + */ +@JsonPropertyOrder({ + BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE +}) + public class BalancePlatformNotificationResponse { public static final String JSON_PROPERTY_NOTIFICATION_RESPONSE = "notificationResponse"; private String notificationResponse; - public BalancePlatformNotificationResponse() {} + public BalancePlatformNotificationResponse() { + } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method - * chaining + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method chaining */ public BalancePlatformNotificationResponse notificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; @@ -40,11 +50,8 @@ public BalancePlatformNotificationResponse notificationResponse(String notificat } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * - * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -53,11 +60,9 @@ public String getNotificationResponse() { } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -65,7 +70,9 @@ public void setNotificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; } - /** Return true if this BalancePlatformNotificationResponse object is equal to o. */ + /** + * Return true if this BalancePlatformNotificationResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -74,10 +81,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - BalancePlatformNotificationResponse balancePlatformNotificationResponse = - (BalancePlatformNotificationResponse) o; - return Objects.equals( - this.notificationResponse, balancePlatformNotificationResponse.notificationResponse); + BalancePlatformNotificationResponse balancePlatformNotificationResponse = (BalancePlatformNotificationResponse) o; + return Objects.equals(this.notificationResponse, balancePlatformNotificationResponse.notificationResponse); } @Override @@ -89,15 +94,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BalancePlatformNotificationResponse {\n"); - sb.append(" notificationResponse: ") - .append(toIndentedString(notificationResponse)) - .append("\n"); + sb.append(" notificationResponse: ").append(toIndentedString(notificationResponse)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -106,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BalancePlatformNotificationResponse given an JSON string * * @param jsonString JSON string * @return An instance of BalancePlatformNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BalancePlatformNotificationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to BalancePlatformNotificationResponse */ - public static BalancePlatformNotificationResponse fromJson(String jsonString) - throws JsonProcessingException { + public static BalancePlatformNotificationResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalancePlatformNotificationResponse.class); } - - /** - * Convert an instance of BalancePlatformNotificationResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BalancePlatformNotificationResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/acswebhooks/ChallengeInfo.java b/src/main/java/com/adyen/model/acswebhooks/ChallengeInfo.java index 65f350b04..703c221bf 100644 --- a/src/main/java/com/adyen/model/acswebhooks/ChallengeInfo.java +++ b/src/main/java/com/adyen/model/acswebhooks/ChallengeInfo.java @@ -2,27 +2,32 @@ * Authentication webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.acswebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** ChallengeInfo */ + +/** + * ChallengeInfo + */ @JsonPropertyOrder({ ChallengeInfo.JSON_PROPERTY_CHALLENGE_CANCEL, ChallengeInfo.JSON_PROPERTY_FLOW, @@ -31,17 +36,13 @@ ChallengeInfo.JSON_PROPERTY_RESENDS, ChallengeInfo.JSON_PROPERTY_RETRIES }) + public class ChallengeInfo { /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the - * authentication has been cancelled. Possible values: * **00**: Data element is absent or value - * has been sent back with the key `challengeCancel`. * **01**: Cardholder selected - * **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * **03**: Transaction abandoned. - * * **04**: Transaction timed out at ACS — other timeouts. * **05**: Transaction timed out at ACS - * — first CReq not received by ACS. * **06**: Transaction error. * **07**: Unknown. * **08**: - * Transaction time out at SDK. + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. Possible values: * **00**: Data element is absent or value has been sent back with the key `challengeCancel`. * **01**: Cardholder selected **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * **03**: Transaction abandoned. * **04**: Transaction timed out at ACS — other timeouts. * **05**: Transaction timed out at ACS — first CReq not received by ACS. * **06**: Transaction error. * **07**: Unknown. * **08**: Transaction time out at SDK. */ public enum ChallengeCancelEnum { + _00(String.valueOf("00")), _01(String.valueOf("01")), @@ -65,7 +66,7 @@ public enum ChallengeCancelEnum { private String value; ChallengeCancelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -86,11 +87,7 @@ public static ChallengeCancelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ChallengeCancelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ChallengeCancelEnum.values())); + LOG.warning("ChallengeCancelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChallengeCancelEnum.values())); return null; } } @@ -99,11 +96,10 @@ public static ChallengeCancelEnum fromValue(String value) { private ChallengeCancelEnum challengeCancel; /** - * The flow used in the challenge. Possible values: * **PWD_OTP_PHONE_FL**: one-time password - * (OTP) flow via SMS * **PWD_OTP_EMAIL_FL**: one-time password (OTP) flow via email * - * **OOB_TRIGGER_FL**: out-of-band (OOB) flow + * The flow used in the challenge. Possible values: * **PWD_OTP_PHONE_FL**: one-time password (OTP) flow via SMS * **PWD_OTP_EMAIL_FL**: one-time password (OTP) flow via email * **OOB_TRIGGER_FL**: out-of-band (OOB) flow */ public enum FlowEnum { + PWD_OTP_PHONE_FL(String.valueOf("PWD_OTP_PHONE_FL")), PWD_OTP_EMAIL_FL(String.valueOf("PWD_OTP_EMAIL_FL")), @@ -115,7 +111,7 @@ public enum FlowEnum { private String value; FlowEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -136,11 +132,7 @@ public static FlowEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FlowEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FlowEnum.values())); + LOG.warning("FlowEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FlowEnum.values())); return null; } } @@ -160,24 +152,13 @@ public static FlowEnum fromValue(String value) { public static final String JSON_PROPERTY_RETRIES = "retries"; private Integer retries; - public ChallengeInfo() {} + public ChallengeInfo() { + } /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the - * authentication has been cancelled. Possible values: * **00**: Data element is absent or value - * has been sent back with the key `challengeCancel`. * **01**: Cardholder selected - * **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * **03**: Transaction abandoned. - * * **04**: Transaction timed out at ACS — other timeouts. * **05**: Transaction timed out at ACS - * — first CReq not received by ACS. * **06**: Transaction error. * **07**: Unknown. * **08**: - * Transaction time out at SDK. + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. Possible values: * **00**: Data element is absent or value has been sent back with the key `challengeCancel`. * **01**: Cardholder selected **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * **03**: Transaction abandoned. * **04**: Transaction timed out at ACS — other timeouts. * **05**: Transaction timed out at ACS — first CReq not received by ACS. * **06**: Transaction error. * **07**: Unknown. * **08**: Transaction time out at SDK. * - * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory - * Server (DS) that the authentication has been cancelled. Possible values: * **00**: Data - * element is absent or value has been sent back with the key `challengeCancel`. * - * **01**: Cardholder selected **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * - * **03**: Transaction abandoned. * **04**: Transaction timed out at ACS — other timeouts. * - * **05**: Transaction timed out at ACS — first CReq not received by ACS. * **06**: - * Transaction error. * **07**: Unknown. * **08**: Transaction time out at SDK. + * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. Possible values: * **00**: Data element is absent or value has been sent back with the key `challengeCancel`. * **01**: Cardholder selected **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * **03**: Transaction abandoned. * **04**: Transaction timed out at ACS — other timeouts. * **05**: Transaction timed out at ACS — first CReq not received by ACS. * **06**: Transaction error. * **07**: Unknown. * **08**: Transaction time out at SDK. * @return the current {@code ChallengeInfo} instance, allowing for method chaining */ public ChallengeInfo challengeCancel(ChallengeCancelEnum challengeCancel) { @@ -186,21 +167,8 @@ public ChallengeInfo challengeCancel(ChallengeCancelEnum challengeCancel) { } /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the - * authentication has been cancelled. Possible values: * **00**: Data element is absent or value - * has been sent back with the key `challengeCancel`. * **01**: Cardholder selected - * **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * **03**: Transaction abandoned. - * * **04**: Transaction timed out at ACS — other timeouts. * **05**: Transaction timed out at ACS - * — first CReq not received by ACS. * **06**: Transaction error. * **07**: Unknown. * **08**: - * Transaction time out at SDK. - * - * @return challengeCancel Indicator informing the Access Control Server (ACS) and the Directory - * Server (DS) that the authentication has been cancelled. Possible values: * **00**: Data - * element is absent or value has been sent back with the key `challengeCancel`. * - * **01**: Cardholder selected **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * - * **03**: Transaction abandoned. * **04**: Transaction timed out at ACS — other timeouts. * - * **05**: Transaction timed out at ACS — first CReq not received by ACS. * **06**: - * Transaction error. * **07**: Unknown. * **08**: Transaction time out at SDK. + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. Possible values: * **00**: Data element is absent or value has been sent back with the key `challengeCancel`. * **01**: Cardholder selected **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * **03**: Transaction abandoned. * **04**: Transaction timed out at ACS — other timeouts. * **05**: Transaction timed out at ACS — first CReq not received by ACS. * **06**: Transaction error. * **07**: Unknown. * **08**: Transaction time out at SDK. + * @return challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. Possible values: * **00**: Data element is absent or value has been sent back with the key `challengeCancel`. * **01**: Cardholder selected **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * **03**: Transaction abandoned. * **04**: Transaction timed out at ACS — other timeouts. * **05**: Transaction timed out at ACS — first CReq not received by ACS. * **06**: Transaction error. * **07**: Unknown. * **08**: Transaction time out at SDK. */ @JsonProperty(JSON_PROPERTY_CHALLENGE_CANCEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -209,21 +177,9 @@ public ChallengeCancelEnum getChallengeCancel() { } /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the - * authentication has been cancelled. Possible values: * **00**: Data element is absent or value - * has been sent back with the key `challengeCancel`. * **01**: Cardholder selected - * **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * **03**: Transaction abandoned. - * * **04**: Transaction timed out at ACS — other timeouts. * **05**: Transaction timed out at ACS - * — first CReq not received by ACS. * **06**: Transaction error. * **07**: Unknown. * **08**: - * Transaction time out at SDK. + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. Possible values: * **00**: Data element is absent or value has been sent back with the key `challengeCancel`. * **01**: Cardholder selected **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * **03**: Transaction abandoned. * **04**: Transaction timed out at ACS — other timeouts. * **05**: Transaction timed out at ACS — first CReq not received by ACS. * **06**: Transaction error. * **07**: Unknown. * **08**: Transaction time out at SDK. * - * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory - * Server (DS) that the authentication has been cancelled. Possible values: * **00**: Data - * element is absent or value has been sent back with the key `challengeCancel`. * - * **01**: Cardholder selected **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * - * **03**: Transaction abandoned. * **04**: Transaction timed out at ACS — other timeouts. * - * **05**: Transaction timed out at ACS — first CReq not received by ACS. * **06**: - * Transaction error. * **07**: Unknown. * **08**: Transaction time out at SDK. + * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. Possible values: * **00**: Data element is absent or value has been sent back with the key `challengeCancel`. * **01**: Cardholder selected **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * **03**: Transaction abandoned. * **04**: Transaction timed out at ACS — other timeouts. * **05**: Transaction timed out at ACS — first CReq not received by ACS. * **06**: Transaction error. * **07**: Unknown. * **08**: Transaction time out at SDK. */ @JsonProperty(JSON_PROPERTY_CHALLENGE_CANCEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,13 +188,9 @@ public void setChallengeCancel(ChallengeCancelEnum challengeCancel) { } /** - * The flow used in the challenge. Possible values: * **PWD_OTP_PHONE_FL**: one-time password - * (OTP) flow via SMS * **PWD_OTP_EMAIL_FL**: one-time password (OTP) flow via email * - * **OOB_TRIGGER_FL**: out-of-band (OOB) flow + * The flow used in the challenge. Possible values: * **PWD_OTP_PHONE_FL**: one-time password (OTP) flow via SMS * **PWD_OTP_EMAIL_FL**: one-time password (OTP) flow via email * **OOB_TRIGGER_FL**: out-of-band (OOB) flow * - * @param flow The flow used in the challenge. Possible values: * **PWD_OTP_PHONE_FL**: one-time - * password (OTP) flow via SMS * **PWD_OTP_EMAIL_FL**: one-time password (OTP) flow via email - * * **OOB_TRIGGER_FL**: out-of-band (OOB) flow + * @param flow The flow used in the challenge. Possible values: * **PWD_OTP_PHONE_FL**: one-time password (OTP) flow via SMS * **PWD_OTP_EMAIL_FL**: one-time password (OTP) flow via email * **OOB_TRIGGER_FL**: out-of-band (OOB) flow * @return the current {@code ChallengeInfo} instance, allowing for method chaining */ public ChallengeInfo flow(FlowEnum flow) { @@ -247,13 +199,8 @@ public ChallengeInfo flow(FlowEnum flow) { } /** - * The flow used in the challenge. Possible values: * **PWD_OTP_PHONE_FL**: one-time password - * (OTP) flow via SMS * **PWD_OTP_EMAIL_FL**: one-time password (OTP) flow via email * - * **OOB_TRIGGER_FL**: out-of-band (OOB) flow - * - * @return flow The flow used in the challenge. Possible values: * **PWD_OTP_PHONE_FL**: one-time - * password (OTP) flow via SMS * **PWD_OTP_EMAIL_FL**: one-time password (OTP) flow via email - * * **OOB_TRIGGER_FL**: out-of-band (OOB) flow + * The flow used in the challenge. Possible values: * **PWD_OTP_PHONE_FL**: one-time password (OTP) flow via SMS * **PWD_OTP_EMAIL_FL**: one-time password (OTP) flow via email * **OOB_TRIGGER_FL**: out-of-band (OOB) flow + * @return flow The flow used in the challenge. Possible values: * **PWD_OTP_PHONE_FL**: one-time password (OTP) flow via SMS * **PWD_OTP_EMAIL_FL**: one-time password (OTP) flow via email * **OOB_TRIGGER_FL**: out-of-band (OOB) flow */ @JsonProperty(JSON_PROPERTY_FLOW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -262,13 +209,9 @@ public FlowEnum getFlow() { } /** - * The flow used in the challenge. Possible values: * **PWD_OTP_PHONE_FL**: one-time password - * (OTP) flow via SMS * **PWD_OTP_EMAIL_FL**: one-time password (OTP) flow via email * - * **OOB_TRIGGER_FL**: out-of-band (OOB) flow + * The flow used in the challenge. Possible values: * **PWD_OTP_PHONE_FL**: one-time password (OTP) flow via SMS * **PWD_OTP_EMAIL_FL**: one-time password (OTP) flow via email * **OOB_TRIGGER_FL**: out-of-band (OOB) flow * - * @param flow The flow used in the challenge. Possible values: * **PWD_OTP_PHONE_FL**: one-time - * password (OTP) flow via SMS * **PWD_OTP_EMAIL_FL**: one-time password (OTP) flow via email - * * **OOB_TRIGGER_FL**: out-of-band (OOB) flow + * @param flow The flow used in the challenge. Possible values: * **PWD_OTP_PHONE_FL**: one-time password (OTP) flow via SMS * **PWD_OTP_EMAIL_FL**: one-time password (OTP) flow via email * **OOB_TRIGGER_FL**: out-of-band (OOB) flow */ @JsonProperty(JSON_PROPERTY_FLOW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -289,7 +232,6 @@ public ChallengeInfo lastInteraction(OffsetDateTime lastInteraction) { /** * The last time of interaction with the challenge. - * * @return lastInteraction The last time of interaction with the challenge. */ @JsonProperty(JSON_PROPERTY_LAST_INTERACTION) @@ -322,7 +264,6 @@ public ChallengeInfo phoneNumber(String phoneNumber) { /** * The last four digits of the phone number used in the challenge. - * * @return phoneNumber The last four digits of the phone number used in the challenge. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @@ -355,9 +296,7 @@ public ChallengeInfo resends(Integer resends) { /** * The number of times the one-time password (OTP) was resent during the challenge. - * - * @return resends The number of times the one-time password (OTP) was resent during the - * challenge. + * @return resends The number of times the one-time password (OTP) was resent during the challenge. */ @JsonProperty(JSON_PROPERTY_RESENDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -389,7 +328,6 @@ public ChallengeInfo retries(Integer retries) { /** * The number of retries used in the challenge. - * * @return retries The number of retries used in the challenge. */ @JsonProperty(JSON_PROPERTY_RETRIES) @@ -409,7 +347,9 @@ public void setRetries(Integer retries) { this.retries = retries; } - /** Return true if this ChallengeInfo object is equal to o. */ + /** + * Return true if this ChallengeInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -419,12 +359,12 @@ public boolean equals(Object o) { return false; } ChallengeInfo challengeInfo = (ChallengeInfo) o; - return Objects.equals(this.challengeCancel, challengeInfo.challengeCancel) - && Objects.equals(this.flow, challengeInfo.flow) - && Objects.equals(this.lastInteraction, challengeInfo.lastInteraction) - && Objects.equals(this.phoneNumber, challengeInfo.phoneNumber) - && Objects.equals(this.resends, challengeInfo.resends) - && Objects.equals(this.retries, challengeInfo.retries); + return Objects.equals(this.challengeCancel, challengeInfo.challengeCancel) && + Objects.equals(this.flow, challengeInfo.flow) && + Objects.equals(this.lastInteraction, challengeInfo.lastInteraction) && + Objects.equals(this.phoneNumber, challengeInfo.phoneNumber) && + Objects.equals(this.resends, challengeInfo.resends) && + Objects.equals(this.retries, challengeInfo.retries); } @Override @@ -447,7 +387,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -456,7 +397,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ChallengeInfo given an JSON string * * @param jsonString JSON string @@ -466,12 +407,11 @@ private String toIndentedString(Object o) { public static ChallengeInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ChallengeInfo.class); } - - /** - * Convert an instance of ChallengeInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ChallengeInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/acswebhooks/JSON.java b/src/main/java/com/adyen/model/acswebhooks/JSON.java index 5b711524c..875b24ea7 100644 --- a/src/main/java/com/adyen/model/acswebhooks/JSON.java +++ b/src/main/java/com/adyen/model/acswebhooks/JSON.java @@ -1,18 +1,21 @@ package com.adyen.model.acswebhooks; -import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; +import com.adyen.serializer.ByteArrayDeserializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; +import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; +import com.adyen.model.acswebhooks.*; + import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -37,7 +40,6 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. - * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -54,13 +56,11 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { - return mapper; - } + public static ObjectMapper getMapper() { return mapper; } /** - * Returns the target model class that should be used to deserialize the input data. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,7 +73,9 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** Helper class to register the discriminator mappings. */ + /** + * Helper class to register the discriminator mappings. + */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -115,9 +117,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. This - * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -162,14 +164,13 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so - * it's not possible to use the instanceof keyword. + * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, + * so it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf( - Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -193,58 +194,59 @@ public static boolean isInstanceOf( return false; } - /** A map of discriminators for all model classes. */ - private static final Map, ClassDiscriminatorMapping> modelDiscriminators = - new HashMap, ClassDiscriminatorMapping>(); + /** + * A map of discriminators for all model classes. + */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); - /** A map of oneOf/anyOf descendants for each model class. */ + /** + * A map of oneOf/anyOf descendants for each model class. + */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator( - Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = - new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants( - Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants(Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static { + static + { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/acswebhooks/Purchase.java b/src/main/java/com/adyen/model/acswebhooks/Purchase.java index f3d4e8ca9..b4db1bba4 100644 --- a/src/main/java/com/adyen/model/acswebhooks/Purchase.java +++ b/src/main/java/com/adyen/model/acswebhooks/Purchase.java @@ -2,28 +2,39 @@ * Authentication webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.acswebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.acswebhooks.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.time.OffsetDateTime; -import java.util.*; -/** Purchase */ + +/** + * Purchase + */ @JsonPropertyOrder({ Purchase.JSON_PROPERTY_DATE, Purchase.JSON_PROPERTY_MERCHANT_NAME, Purchase.JSON_PROPERTY_ORIGINAL_AMOUNT }) + public class Purchase { public static final String JSON_PROPERTY_DATE = "date"; private OffsetDateTime date; @@ -34,7 +45,8 @@ public class Purchase { public static final String JSON_PROPERTY_ORIGINAL_AMOUNT = "originalAmount"; private Amount originalAmount; - public Purchase() {} + public Purchase() { + } /** * The time of the purchase. @@ -49,7 +61,6 @@ public Purchase date(OffsetDateTime date) { /** * The time of the purchase. - * * @return date The time of the purchase. */ @JsonProperty(JSON_PROPERTY_DATE) @@ -82,7 +93,6 @@ public Purchase merchantName(String merchantName) { /** * The name of the merchant. - * * @return merchantName The name of the merchant. */ @JsonProperty(JSON_PROPERTY_MERCHANT_NAME) @@ -105,7 +115,7 @@ public void setMerchantName(String merchantName) { /** * originalAmount * - * @param originalAmount + * @param originalAmount * @return the current {@code Purchase} instance, allowing for method chaining */ public Purchase originalAmount(Amount originalAmount) { @@ -115,8 +125,7 @@ public Purchase originalAmount(Amount originalAmount) { /** * Get originalAmount - * - * @return originalAmount + * @return originalAmount */ @JsonProperty(JSON_PROPERTY_ORIGINAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,7 +136,7 @@ public Amount getOriginalAmount() { /** * originalAmount * - * @param originalAmount + * @param originalAmount */ @JsonProperty(JSON_PROPERTY_ORIGINAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,7 +144,9 @@ public void setOriginalAmount(Amount originalAmount) { this.originalAmount = originalAmount; } - /** Return true if this Purchase object is equal to o. */ + /** + * Return true if this Purchase object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -145,9 +156,9 @@ public boolean equals(Object o) { return false; } Purchase purchase = (Purchase) o; - return Objects.equals(this.date, purchase.date) - && Objects.equals(this.merchantName, purchase.merchantName) - && Objects.equals(this.originalAmount, purchase.originalAmount); + return Objects.equals(this.date, purchase.date) && + Objects.equals(this.merchantName, purchase.merchantName) && + Objects.equals(this.originalAmount, purchase.originalAmount); } @Override @@ -167,7 +178,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -176,7 +188,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Purchase given an JSON string * * @param jsonString JSON string @@ -186,12 +198,11 @@ private String toIndentedString(Object o) { public static Purchase fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Purchase.class); } - - /** - * Convert an instance of Purchase to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Purchase to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/acswebhooks/PurchaseInfo.java b/src/main/java/com/adyen/model/acswebhooks/PurchaseInfo.java index 640bb6338..ef3ed187c 100644 --- a/src/main/java/com/adyen/model/acswebhooks/PurchaseInfo.java +++ b/src/main/java/com/adyen/model/acswebhooks/PurchaseInfo.java @@ -2,27 +2,38 @@ * Authentication webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.acswebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.acswebhooks.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** PurchaseInfo */ + +/** + * PurchaseInfo + */ @JsonPropertyOrder({ PurchaseInfo.JSON_PROPERTY_DATE, PurchaseInfo.JSON_PROPERTY_MERCHANT_NAME, PurchaseInfo.JSON_PROPERTY_ORIGINAL_AMOUNT }) + public class PurchaseInfo { public static final String JSON_PROPERTY_DATE = "date"; private String date; @@ -33,7 +44,8 @@ public class PurchaseInfo { public static final String JSON_PROPERTY_ORIGINAL_AMOUNT = "originalAmount"; private Amount originalAmount; - public PurchaseInfo() {} + public PurchaseInfo() { + } /** * The date of the purchase. @@ -48,7 +60,6 @@ public PurchaseInfo date(String date) { /** * The date of the purchase. - * * @return date The date of the purchase. */ @JsonProperty(JSON_PROPERTY_DATE) @@ -81,7 +92,6 @@ public PurchaseInfo merchantName(String merchantName) { /** * The name of the business that the cardholder purchased from. - * * @return merchantName The name of the business that the cardholder purchased from. */ @JsonProperty(JSON_PROPERTY_MERCHANT_NAME) @@ -104,7 +114,7 @@ public void setMerchantName(String merchantName) { /** * originalAmount * - * @param originalAmount + * @param originalAmount * @return the current {@code PurchaseInfo} instance, allowing for method chaining */ public PurchaseInfo originalAmount(Amount originalAmount) { @@ -114,8 +124,7 @@ public PurchaseInfo originalAmount(Amount originalAmount) { /** * Get originalAmount - * - * @return originalAmount + * @return originalAmount */ @JsonProperty(JSON_PROPERTY_ORIGINAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,7 +135,7 @@ public Amount getOriginalAmount() { /** * originalAmount * - * @param originalAmount + * @param originalAmount */ @JsonProperty(JSON_PROPERTY_ORIGINAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -134,7 +143,9 @@ public void setOriginalAmount(Amount originalAmount) { this.originalAmount = originalAmount; } - /** Return true if this PurchaseInfo object is equal to o. */ + /** + * Return true if this PurchaseInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,9 +155,9 @@ public boolean equals(Object o) { return false; } PurchaseInfo purchaseInfo = (PurchaseInfo) o; - return Objects.equals(this.date, purchaseInfo.date) - && Objects.equals(this.merchantName, purchaseInfo.merchantName) - && Objects.equals(this.originalAmount, purchaseInfo.originalAmount); + return Objects.equals(this.date, purchaseInfo.date) && + Objects.equals(this.merchantName, purchaseInfo.merchantName) && + Objects.equals(this.originalAmount, purchaseInfo.originalAmount); } @Override @@ -166,7 +177,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,7 +187,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PurchaseInfo given an JSON string * * @param jsonString JSON string @@ -185,12 +197,11 @@ private String toIndentedString(Object o) { public static PurchaseInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PurchaseInfo.class); } - - /** - * Convert an instance of PurchaseInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PurchaseInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/acswebhooks/RelayedAuthenticationRequest.java b/src/main/java/com/adyen/model/acswebhooks/RelayedAuthenticationRequest.java index 87f6ce555..c05e77478 100644 --- a/src/main/java/com/adyen/model/acswebhooks/RelayedAuthenticationRequest.java +++ b/src/main/java/com/adyen/model/acswebhooks/RelayedAuthenticationRequest.java @@ -2,27 +2,33 @@ * Authentication webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.acswebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.acswebhooks.Purchase; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** RelayedAuthenticationRequest */ +/** + * RelayedAuthenticationRequest + */ @JsonPropertyOrder({ RelayedAuthenticationRequest.JSON_PROPERTY_ENVIRONMENT, RelayedAuthenticationRequest.JSON_PROPERTY_ID, @@ -32,6 +38,7 @@ RelayedAuthenticationRequest.JSON_PROPERTY_TIMESTAMP, RelayedAuthenticationRequest.JSON_PROPERTY_TYPE }) + public class RelayedAuthenticationRequest { public static final String JSON_PROPERTY_ENVIRONMENT = "environment"; private String environment; @@ -51,17 +58,19 @@ public class RelayedAuthenticationRequest { public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; private OffsetDateTime timestamp; - /** Type of notification. */ + /** + * Type of notification. + */ public enum TypeEnum { - BALANCEPLATFORM_AUTHENTICATION_RELAYED( - String.valueOf("balancePlatform.authentication.relayed")); + + BALANCEPLATFORM_AUTHENTICATION_RELAYED(String.valueOf("balancePlatform.authentication.relayed")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -82,11 +91,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -94,13 +99,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public RelayedAuthenticationRequest() {} + public RelayedAuthenticationRequest() { + } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. * @return the current {@code RelayedAuthenticationRequest} instance, allowing for method chaining */ public RelayedAuthenticationRequest environment(String environment) { @@ -109,10 +114,8 @@ public RelayedAuthenticationRequest environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * - * @return environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,10 +124,9 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,7 +147,6 @@ public RelayedAuthenticationRequest id(String id) { /** * The unique identifier of the challenge. - * * @return id The unique identifier of the challenge. */ @JsonProperty(JSON_PROPERTY_ID) @@ -166,13 +167,9 @@ public void setId(String id) { } /** - * The unique identifier of the [payment - * instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_) - * used for the purchase. + * The unique identifier of the [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_) used for the purchase. * - * @param paymentInstrumentId The unique identifier of the [payment - * instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_) - * used for the purchase. + * @param paymentInstrumentId The unique identifier of the [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_) used for the purchase. * @return the current {@code RelayedAuthenticationRequest} instance, allowing for method chaining */ public RelayedAuthenticationRequest paymentInstrumentId(String paymentInstrumentId) { @@ -181,13 +178,8 @@ public RelayedAuthenticationRequest paymentInstrumentId(String paymentInstrument } /** - * The unique identifier of the [payment - * instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_) - * used for the purchase. - * - * @return paymentInstrumentId The unique identifier of the [payment - * instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_) - * used for the purchase. + * The unique identifier of the [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_) used for the purchase. + * @return paymentInstrumentId The unique identifier of the [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_) used for the purchase. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -196,13 +188,9 @@ public String getPaymentInstrumentId() { } /** - * The unique identifier of the [payment - * instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_) - * used for the purchase. + * The unique identifier of the [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_) used for the purchase. * - * @param paymentInstrumentId The unique identifier of the [payment - * instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_) - * used for the purchase. + * @param paymentInstrumentId The unique identifier of the [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_) used for the purchase. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -213,7 +201,7 @@ public void setPaymentInstrumentId(String paymentInstrumentId) { /** * purchase * - * @param purchase + * @param purchase * @return the current {@code RelayedAuthenticationRequest} instance, allowing for method chaining */ public RelayedAuthenticationRequest purchase(Purchase purchase) { @@ -223,8 +211,7 @@ public RelayedAuthenticationRequest purchase(Purchase purchase) { /** * Get purchase - * - * @return purchase + * @return purchase */ @JsonProperty(JSON_PROPERTY_PURCHASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -235,7 +222,7 @@ public Purchase getPurchase() { /** * purchase * - * @param purchase + * @param purchase */ @JsonProperty(JSON_PROPERTY_PURCHASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,11 +231,9 @@ public void setPurchase(Purchase purchase) { } /** - * URL for auto-switching to the threeDS Requestor App. If not present, the threeDS Requestor App - * doesn't support auto-switching. + * URL for auto-switching to the threeDS Requestor App. If not present, the threeDS Requestor App doesn't support auto-switching. * - * @param threeDSRequestorAppURL URL for auto-switching to the threeDS Requestor App. If not - * present, the threeDS Requestor App doesn't support auto-switching. + * @param threeDSRequestorAppURL URL for auto-switching to the threeDS Requestor App. If not present, the threeDS Requestor App doesn't support auto-switching. * @return the current {@code RelayedAuthenticationRequest} instance, allowing for method chaining */ public RelayedAuthenticationRequest threeDSRequestorAppURL(String threeDSRequestorAppURL) { @@ -257,11 +242,8 @@ public RelayedAuthenticationRequest threeDSRequestorAppURL(String threeDSRequest } /** - * URL for auto-switching to the threeDS Requestor App. If not present, the threeDS Requestor App - * doesn't support auto-switching. - * - * @return threeDSRequestorAppURL URL for auto-switching to the threeDS Requestor App. If not - * present, the threeDS Requestor App doesn't support auto-switching. + * URL for auto-switching to the threeDS Requestor App. If not present, the threeDS Requestor App doesn't support auto-switching. + * @return threeDSRequestorAppURL URL for auto-switching to the threeDS Requestor App. If not present, the threeDS Requestor App doesn't support auto-switching. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_APP_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -270,11 +252,9 @@ public String getThreeDSRequestorAppURL() { } /** - * URL for auto-switching to the threeDS Requestor App. If not present, the threeDS Requestor App - * doesn't support auto-switching. + * URL for auto-switching to the threeDS Requestor App. If not present, the threeDS Requestor App doesn't support auto-switching. * - * @param threeDSRequestorAppURL URL for auto-switching to the threeDS Requestor App. If not - * present, the threeDS Requestor App doesn't support auto-switching. + * @param threeDSRequestorAppURL URL for auto-switching to the threeDS Requestor App. If not present, the threeDS Requestor App doesn't support auto-switching. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_APP_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -295,7 +275,6 @@ public RelayedAuthenticationRequest timestamp(OffsetDateTime timestamp) { /** * When the event was queued. - * * @return timestamp When the event was queued. */ @JsonProperty(JSON_PROPERTY_TIMESTAMP) @@ -328,7 +307,6 @@ public RelayedAuthenticationRequest type(TypeEnum type) { /** * Type of notification. - * * @return type Type of notification. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -348,7 +326,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this RelayedAuthenticationRequest object is equal to o. */ + /** + * Return true if this RelayedAuthenticationRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -358,21 +338,18 @@ public boolean equals(Object o) { return false; } RelayedAuthenticationRequest relayedAuthenticationRequest = (RelayedAuthenticationRequest) o; - return Objects.equals(this.environment, relayedAuthenticationRequest.environment) - && Objects.equals(this.id, relayedAuthenticationRequest.id) - && Objects.equals( - this.paymentInstrumentId, relayedAuthenticationRequest.paymentInstrumentId) - && Objects.equals(this.purchase, relayedAuthenticationRequest.purchase) - && Objects.equals( - this.threeDSRequestorAppURL, relayedAuthenticationRequest.threeDSRequestorAppURL) - && Objects.equals(this.timestamp, relayedAuthenticationRequest.timestamp) - && Objects.equals(this.type, relayedAuthenticationRequest.type); + return Objects.equals(this.environment, relayedAuthenticationRequest.environment) && + Objects.equals(this.id, relayedAuthenticationRequest.id) && + Objects.equals(this.paymentInstrumentId, relayedAuthenticationRequest.paymentInstrumentId) && + Objects.equals(this.purchase, relayedAuthenticationRequest.purchase) && + Objects.equals(this.threeDSRequestorAppURL, relayedAuthenticationRequest.threeDSRequestorAppURL) && + Objects.equals(this.timestamp, relayedAuthenticationRequest.timestamp) && + Objects.equals(this.type, relayedAuthenticationRequest.type); } @Override public int hashCode() { - return Objects.hash( - environment, id, paymentInstrumentId, purchase, threeDSRequestorAppURL, timestamp, type); + return Objects.hash(environment, id, paymentInstrumentId, purchase, threeDSRequestorAppURL, timestamp, type); } @Override @@ -381,13 +358,9 @@ public String toString() { sb.append("class RelayedAuthenticationRequest {\n"); sb.append(" environment: ").append(toIndentedString(environment)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" paymentInstrumentId: ") - .append(toIndentedString(paymentInstrumentId)) - .append("\n"); + sb.append(" paymentInstrumentId: ").append(toIndentedString(paymentInstrumentId)).append("\n"); sb.append(" purchase: ").append(toIndentedString(purchase)).append("\n"); - sb.append(" threeDSRequestorAppURL: ") - .append(toIndentedString(threeDSRequestorAppURL)) - .append("\n"); + sb.append(" threeDSRequestorAppURL: ").append(toIndentedString(threeDSRequestorAppURL)).append("\n"); sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -395,7 +368,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -404,24 +378,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RelayedAuthenticationRequest given an JSON string * * @param jsonString JSON string * @return An instance of RelayedAuthenticationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * RelayedAuthenticationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to RelayedAuthenticationRequest */ - public static RelayedAuthenticationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static RelayedAuthenticationRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RelayedAuthenticationRequest.class); } - - /** - * Convert an instance of RelayedAuthenticationRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RelayedAuthenticationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/acswebhooks/RelayedAuthenticationResponse.java b/src/main/java/com/adyen/model/acswebhooks/RelayedAuthenticationResponse.java index edb1533bf..5f6f695fa 100644 --- a/src/main/java/com/adyen/model/acswebhooks/RelayedAuthenticationResponse.java +++ b/src/main/java/com/adyen/model/acswebhooks/RelayedAuthenticationResponse.java @@ -2,46 +2,57 @@ * Authentication webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.acswebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.acswebhooks.AuthenticationDecision; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** RelayedAuthenticationResponse */ -@JsonPropertyOrder({RelayedAuthenticationResponse.JSON_PROPERTY_AUTHENTICATION_DECISION}) + +/** + * RelayedAuthenticationResponse + */ +@JsonPropertyOrder({ + RelayedAuthenticationResponse.JSON_PROPERTY_AUTHENTICATION_DECISION +}) + public class RelayedAuthenticationResponse { public static final String JSON_PROPERTY_AUTHENTICATION_DECISION = "authenticationDecision"; private AuthenticationDecision authenticationDecision; - public RelayedAuthenticationResponse() {} + public RelayedAuthenticationResponse() { + } /** * authenticationDecision * - * @param authenticationDecision - * @return the current {@code RelayedAuthenticationResponse} instance, allowing for method - * chaining + * @param authenticationDecision + * @return the current {@code RelayedAuthenticationResponse} instance, allowing for method chaining */ - public RelayedAuthenticationResponse authenticationDecision( - AuthenticationDecision authenticationDecision) { + public RelayedAuthenticationResponse authenticationDecision(AuthenticationDecision authenticationDecision) { this.authenticationDecision = authenticationDecision; return this; } /** * Get authenticationDecision - * - * @return authenticationDecision + * @return authenticationDecision */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_DECISION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -52,7 +63,7 @@ public AuthenticationDecision getAuthenticationDecision() { /** * authenticationDecision * - * @param authenticationDecision + * @param authenticationDecision */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_DECISION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,7 +71,9 @@ public void setAuthenticationDecision(AuthenticationDecision authenticationDecis this.authenticationDecision = authenticationDecision; } - /** Return true if this RelayedAuthenticationResponse object is equal to o. */ + /** + * Return true if this RelayedAuthenticationResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -70,8 +83,7 @@ public boolean equals(Object o) { return false; } RelayedAuthenticationResponse relayedAuthenticationResponse = (RelayedAuthenticationResponse) o; - return Objects.equals( - this.authenticationDecision, relayedAuthenticationResponse.authenticationDecision); + return Objects.equals(this.authenticationDecision, relayedAuthenticationResponse.authenticationDecision); } @Override @@ -83,15 +95,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RelayedAuthenticationResponse {\n"); - sb.append(" authenticationDecision: ") - .append(toIndentedString(authenticationDecision)) - .append("\n"); + sb.append(" authenticationDecision: ").append(toIndentedString(authenticationDecision)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -100,24 +111,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RelayedAuthenticationResponse given an JSON string * * @param jsonString JSON string * @return An instance of RelayedAuthenticationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * RelayedAuthenticationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to RelayedAuthenticationResponse */ - public static RelayedAuthenticationResponse fromJson(String jsonString) - throws JsonProcessingException { + public static RelayedAuthenticationResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RelayedAuthenticationResponse.class); } - - /** - * Convert an instance of RelayedAuthenticationResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RelayedAuthenticationResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/acswebhooks/Resource.java b/src/main/java/com/adyen/model/acswebhooks/Resource.java index 37bb6def5..047d0b2a9 100644 --- a/src/main/java/com/adyen/model/acswebhooks/Resource.java +++ b/src/main/java/com/adyen/model/acswebhooks/Resource.java @@ -2,28 +2,38 @@ * Authentication webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.acswebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.time.OffsetDateTime; -import java.util.*; -/** Resource */ + +/** + * Resource + */ @JsonPropertyOrder({ Resource.JSON_PROPERTY_BALANCE_PLATFORM, Resource.JSON_PROPERTY_CREATION_DATE, Resource.JSON_PROPERTY_ID }) + public class Resource { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; @@ -34,7 +44,8 @@ public class Resource { public static final String JSON_PROPERTY_ID = "id"; private String id; - public Resource() {} + public Resource() { + } /** * The unique identifier of the balance platform. @@ -49,7 +60,6 @@ public Resource balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. - * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -70,11 +80,9 @@ public void setBalancePlatform(String balancePlatform) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code Resource} instance, allowing for method chaining */ public Resource creationDate(OffsetDateTime creationDate) { @@ -83,11 +91,8 @@ public Resource creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. - * - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,11 +101,9 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,7 +124,6 @@ public Resource id(String id) { /** * The ID of the resource. - * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -141,7 +143,9 @@ public void setId(String id) { this.id = id; } - /** Return true if this Resource object is equal to o. */ + /** + * Return true if this Resource object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -151,9 +155,9 @@ public boolean equals(Object o) { return false; } Resource resource = (Resource) o; - return Objects.equals(this.balancePlatform, resource.balancePlatform) - && Objects.equals(this.creationDate, resource.creationDate) - && Objects.equals(this.id, resource.id); + return Objects.equals(this.balancePlatform, resource.balancePlatform) && + Objects.equals(this.creationDate, resource.creationDate) && + Objects.equals(this.id, resource.id); } @Override @@ -173,7 +177,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,7 +187,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Resource given an JSON string * * @param jsonString JSON string @@ -192,12 +197,11 @@ private String toIndentedString(Object o) { public static Resource fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Resource.class); } - - /** - * Convert an instance of Resource to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Resource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/acswebhooks/ServiceError.java b/src/main/java/com/adyen/model/acswebhooks/ServiceError.java index d70fd8386..ca40621e4 100644 --- a/src/main/java/com/adyen/model/acswebhooks/ServiceError.java +++ b/src/main/java/com/adyen/model/acswebhooks/ServiceError.java @@ -2,22 +2,31 @@ * Authentication webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.acswebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ServiceError */ + +/** + * ServiceError + */ @JsonPropertyOrder({ ServiceError.JSON_PROPERTY_ERROR_CODE, ServiceError.JSON_PROPERTY_ERROR_TYPE, @@ -25,6 +34,7 @@ ServiceError.JSON_PROPERTY_PSP_REFERENCE, ServiceError.JSON_PROPERTY_STATUS }) + public class ServiceError { public static final String JSON_PROPERTY_ERROR_CODE = "errorCode"; private String errorCode; @@ -41,7 +51,8 @@ public class ServiceError { public static final String JSON_PROPERTY_STATUS = "status"; private Integer status; - public ServiceError() {} + public ServiceError() { + } /** * The error code mapped to the error message. @@ -56,7 +67,6 @@ public ServiceError errorCode(String errorCode) { /** * The error code mapped to the error message. - * * @return errorCode The error code mapped to the error message. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -89,7 +99,6 @@ public ServiceError errorType(String errorType) { /** * The category of the error. - * * @return errorType The category of the error. */ @JsonProperty(JSON_PROPERTY_ERROR_TYPE) @@ -122,7 +131,6 @@ public ServiceError message(String message) { /** * A short explanation of the issue. - * * @return message A short explanation of the issue. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -155,7 +163,6 @@ public ServiceError pspReference(String pspReference) { /** * The PSP reference of the payment. - * * @return pspReference The PSP reference of the payment. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -188,7 +195,6 @@ public ServiceError status(Integer status) { /** * The HTTP response status. - * * @return status The HTTP response status. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -208,7 +214,9 @@ public void setStatus(Integer status) { this.status = status; } - /** Return true if this ServiceError object is equal to o. */ + /** + * Return true if this ServiceError object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -218,11 +226,11 @@ public boolean equals(Object o) { return false; } ServiceError serviceError = (ServiceError) o; - return Objects.equals(this.errorCode, serviceError.errorCode) - && Objects.equals(this.errorType, serviceError.errorType) - && Objects.equals(this.message, serviceError.message) - && Objects.equals(this.pspReference, serviceError.pspReference) - && Objects.equals(this.status, serviceError.status); + return Objects.equals(this.errorCode, serviceError.errorCode) && + Objects.equals(this.errorType, serviceError.errorType) && + Objects.equals(this.message, serviceError.message) && + Objects.equals(this.pspReference, serviceError.pspReference) && + Objects.equals(this.status, serviceError.status); } @Override @@ -244,7 +252,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -253,7 +262,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ServiceError given an JSON string * * @param jsonString JSON string @@ -263,12 +272,11 @@ private String toIndentedString(Object o) { public static ServiceError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } - - /** - * Convert an instance of ServiceError to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ServiceError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balancecontrol/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/balancecontrol/AbstractOpenApiSchema.java index 16047f516..a44b2774a 100644 --- a/src/main/java/com/adyen/model/balancecontrol/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/balancecontrol/AbstractOpenApiSchema.java @@ -2,141 +2,145 @@ * Adyen Balance Control API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balancecontrol; -import com.fasterxml.jackson.annotation.JsonValue; -import jakarta.ws.rs.core.GenericType; -import java.util.Map; import java.util.Objects; +import java.util.Map; +import jakarta.ws.rs.core.GenericType; -/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec + */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() { - return instance; - } - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) { - this.instance = instance; - } - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf - * schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); - } else { - return object.getActualInstance(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() {return instance;} + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) {this.instance = instance;} + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); + } else { + return object.getActualInstance(); + } + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) && + Objects.equals(this.isNullable, a.isNullable) && + Objects.equals(this.schemaType, a.schemaType); } - return o.toString().replace("\n", "\n "); - } - public boolean equals(Object o) { - if (this == o) { - return true; + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); } - if (o == null || getClass() != o.getClass()) { - return false; + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) - && Objects.equals(this.isNullable, a.isNullable) - && Objects.equals(this.schemaType, a.schemaType); - } - - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); - } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); - } -} + + + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/balancecontrol/Amount.java b/src/main/java/com/adyen/model/balancecontrol/Amount.java index 076c43f80..6ed23313a 100644 --- a/src/main/java/com/adyen/model/balancecontrol/Amount.java +++ b/src/main/java/com/adyen/model/balancecontrol/Amount.java @@ -2,23 +2,36 @@ * Adyen Balance Control API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balancecontrol; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Amount */ -@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) + +/** + * Amount + */ +@JsonPropertyOrder({ + Amount.JSON_PROPERTY_CURRENCY, + Amount.JSON_PROPERTY_VALUE +}) + public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -26,14 +39,13 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() {} + public Amount() { + } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount currency(String currency) { @@ -42,11 +54,8 @@ public Amount currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -55,11 +64,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,11 +75,9 @@ public void setCurrency(String currency) { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount value(Long value) { @@ -81,11 +86,8 @@ public Amount value(Long value) { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). - * - * @return value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @return value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,11 +96,9 @@ public Long getValue() { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,7 +106,9 @@ public void setValue(Long value) { this.value = value; } - /** Return true if this Amount object is equal to o. */ + /** + * Return true if this Amount object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -116,8 +118,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) - && Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) && + Objects.equals(this.value, amount.value); } @Override @@ -136,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -155,12 +158,11 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } - - /** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balancecontrol/BalanceTransferRequest.java b/src/main/java/com/adyen/model/balancecontrol/BalanceTransferRequest.java index a4b8feb0b..09be977a2 100644 --- a/src/main/java/com/adyen/model/balancecontrol/BalanceTransferRequest.java +++ b/src/main/java/com/adyen/model/balancecontrol/BalanceTransferRequest.java @@ -2,26 +2,32 @@ * Adyen Balance Control API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balancecontrol; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balancecontrol.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** BalanceTransferRequest */ + +/** + * BalanceTransferRequest + */ @JsonPropertyOrder({ BalanceTransferRequest.JSON_PROPERTY_AMOUNT, BalanceTransferRequest.JSON_PROPERTY_DESCRIPTION, @@ -30,6 +36,7 @@ BalanceTransferRequest.JSON_PROPERTY_TO_MERCHANT, BalanceTransferRequest.JSON_PROPERTY_TYPE }) + public class BalanceTransferRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -47,10 +54,10 @@ public class BalanceTransferRequest { private String toMerchant; /** - * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, - * **debit**, and **adjustment**. + * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**. */ public enum TypeEnum { + TAX(String.valueOf("tax")), FEE(String.valueOf("fee")), @@ -68,7 +75,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -89,11 +96,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -101,12 +104,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public BalanceTransferRequest() {} + public BalanceTransferRequest() { + } /** * amount * - * @param amount + * @param amount * @return the current {@code BalanceTransferRequest} instance, allowing for method chaining */ public BalanceTransferRequest amount(Amount amount) { @@ -116,8 +120,7 @@ public BalanceTransferRequest amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,7 +131,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,12 +140,9 @@ public void setAmount(Amount amount) { } /** - * A human-readable description for the transfer. You can use alphanumeric characters and hyphens. - * We recommend sending a maximum of 140 characters, otherwise the description may be truncated. + * A human-readable description for the transfer. You can use alphanumeric characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. * - * @param description A human-readable description for the transfer. You can use alphanumeric - * characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the - * description may be truncated. + * @param description A human-readable description for the transfer. You can use alphanumeric characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. * @return the current {@code BalanceTransferRequest} instance, allowing for method chaining */ public BalanceTransferRequest description(String description) { @@ -151,12 +151,8 @@ public BalanceTransferRequest description(String description) { } /** - * A human-readable description for the transfer. You can use alphanumeric characters and hyphens. - * We recommend sending a maximum of 140 characters, otherwise the description may be truncated. - * - * @return description A human-readable description for the transfer. You can use alphanumeric - * characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the - * description may be truncated. + * A human-readable description for the transfer. You can use alphanumeric characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. + * @return description A human-readable description for the transfer. You can use alphanumeric characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -165,12 +161,9 @@ public String getDescription() { } /** - * A human-readable description for the transfer. You can use alphanumeric characters and hyphens. - * We recommend sending a maximum of 140 characters, otherwise the description may be truncated. + * A human-readable description for the transfer. You can use alphanumeric characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. * - * @param description A human-readable description for the transfer. You can use alphanumeric - * characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the - * description may be truncated. + * @param description A human-readable description for the transfer. You can use alphanumeric characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,8 +174,7 @@ public void setDescription(String description) { /** * The unique identifier of the source merchant account from which funds are deducted. * - * @param fromMerchant The unique identifier of the source merchant account from which funds are - * deducted. + * @param fromMerchant The unique identifier of the source merchant account from which funds are deducted. * @return the current {@code BalanceTransferRequest} instance, allowing for method chaining */ public BalanceTransferRequest fromMerchant(String fromMerchant) { @@ -192,9 +184,7 @@ public BalanceTransferRequest fromMerchant(String fromMerchant) { /** * The unique identifier of the source merchant account from which funds are deducted. - * - * @return fromMerchant The unique identifier of the source merchant account from which funds are - * deducted. + * @return fromMerchant The unique identifier of the source merchant account from which funds are deducted. */ @JsonProperty(JSON_PROPERTY_FROM_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -205,8 +195,7 @@ public String getFromMerchant() { /** * The unique identifier of the source merchant account from which funds are deducted. * - * @param fromMerchant The unique identifier of the source merchant account from which funds are - * deducted. + * @param fromMerchant The unique identifier of the source merchant account from which funds are deducted. */ @JsonProperty(JSON_PROPERTY_FROM_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -215,11 +204,9 @@ public void setFromMerchant(String fromMerchant) { } /** - * A reference for the balance transfer. If you don't provide this in the request, Adyen - * generates a unique reference. Maximum length: 80 characters. + * A reference for the balance transfer. If you don't provide this in the request, Adyen generates a unique reference. Maximum length: 80 characters. * - * @param reference A reference for the balance transfer. If you don't provide this in the - * request, Adyen generates a unique reference. Maximum length: 80 characters. + * @param reference A reference for the balance transfer. If you don't provide this in the request, Adyen generates a unique reference. Maximum length: 80 characters. * @return the current {@code BalanceTransferRequest} instance, allowing for method chaining */ public BalanceTransferRequest reference(String reference) { @@ -228,11 +215,8 @@ public BalanceTransferRequest reference(String reference) { } /** - * A reference for the balance transfer. If you don't provide this in the request, Adyen - * generates a unique reference. Maximum length: 80 characters. - * - * @return reference A reference for the balance transfer. If you don't provide this in the - * request, Adyen generates a unique reference. Maximum length: 80 characters. + * A reference for the balance transfer. If you don't provide this in the request, Adyen generates a unique reference. Maximum length: 80 characters. + * @return reference A reference for the balance transfer. If you don't provide this in the request, Adyen generates a unique reference. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -241,11 +225,9 @@ public String getReference() { } /** - * A reference for the balance transfer. If you don't provide this in the request, Adyen - * generates a unique reference. Maximum length: 80 characters. + * A reference for the balance transfer. If you don't provide this in the request, Adyen generates a unique reference. Maximum length: 80 characters. * - * @param reference A reference for the balance transfer. If you don't provide this in the - * request, Adyen generates a unique reference. Maximum length: 80 characters. + * @param reference A reference for the balance transfer. If you don't provide this in the request, Adyen generates a unique reference. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -256,8 +238,7 @@ public void setReference(String reference) { /** * The unique identifier of the destination merchant account from which funds are transferred. * - * @param toMerchant The unique identifier of the destination merchant account from which funds - * are transferred. + * @param toMerchant The unique identifier of the destination merchant account from which funds are transferred. * @return the current {@code BalanceTransferRequest} instance, allowing for method chaining */ public BalanceTransferRequest toMerchant(String toMerchant) { @@ -267,9 +248,7 @@ public BalanceTransferRequest toMerchant(String toMerchant) { /** * The unique identifier of the destination merchant account from which funds are transferred. - * - * @return toMerchant The unique identifier of the destination merchant account from which funds - * are transferred. + * @return toMerchant The unique identifier of the destination merchant account from which funds are transferred. */ @JsonProperty(JSON_PROPERTY_TO_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -280,8 +259,7 @@ public String getToMerchant() { /** * The unique identifier of the destination merchant account from which funds are transferred. * - * @param toMerchant The unique identifier of the destination merchant account from which funds - * are transferred. + * @param toMerchant The unique identifier of the destination merchant account from which funds are transferred. */ @JsonProperty(JSON_PROPERTY_TO_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -290,11 +268,9 @@ public void setToMerchant(String toMerchant) { } /** - * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, - * **debit**, and **adjustment**. + * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**. * - * @param type The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, - * **credit**, **debit**, and **adjustment**. + * @param type The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**. * @return the current {@code BalanceTransferRequest} instance, allowing for method chaining */ public BalanceTransferRequest type(TypeEnum type) { @@ -303,11 +279,8 @@ public BalanceTransferRequest type(TypeEnum type) { } /** - * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, - * **debit**, and **adjustment**. - * - * @return type The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, - * **credit**, **debit**, and **adjustment**. + * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**. + * @return type The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -316,11 +289,9 @@ public TypeEnum getType() { } /** - * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, - * **debit**, and **adjustment**. + * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**. * - * @param type The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, - * **credit**, **debit**, and **adjustment**. + * @param type The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -328,7 +299,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this BalanceTransferRequest object is equal to o. */ + /** + * Return true if this BalanceTransferRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -338,12 +311,12 @@ public boolean equals(Object o) { return false; } BalanceTransferRequest balanceTransferRequest = (BalanceTransferRequest) o; - return Objects.equals(this.amount, balanceTransferRequest.amount) - && Objects.equals(this.description, balanceTransferRequest.description) - && Objects.equals(this.fromMerchant, balanceTransferRequest.fromMerchant) - && Objects.equals(this.reference, balanceTransferRequest.reference) - && Objects.equals(this.toMerchant, balanceTransferRequest.toMerchant) - && Objects.equals(this.type, balanceTransferRequest.type); + return Objects.equals(this.amount, balanceTransferRequest.amount) && + Objects.equals(this.description, balanceTransferRequest.description) && + Objects.equals(this.fromMerchant, balanceTransferRequest.fromMerchant) && + Objects.equals(this.reference, balanceTransferRequest.reference) && + Objects.equals(this.toMerchant, balanceTransferRequest.toMerchant) && + Objects.equals(this.type, balanceTransferRequest.type); } @Override @@ -366,7 +339,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -375,23 +349,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BalanceTransferRequest given an JSON string * * @param jsonString JSON string * @return An instance of BalanceTransferRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BalanceTransferRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceTransferRequest */ public static BalanceTransferRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceTransferRequest.class); } - - /** - * Convert an instance of BalanceTransferRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BalanceTransferRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balancecontrol/BalanceTransferResponse.java b/src/main/java/com/adyen/model/balancecontrol/BalanceTransferResponse.java index e4922ef8a..db5a8ed99 100644 --- a/src/main/java/com/adyen/model/balancecontrol/BalanceTransferResponse.java +++ b/src/main/java/com/adyen/model/balancecontrol/BalanceTransferResponse.java @@ -2,27 +2,33 @@ * Adyen Balance Control API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balancecontrol; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balancecontrol.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** BalanceTransferResponse */ +/** + * BalanceTransferResponse + */ @JsonPropertyOrder({ BalanceTransferResponse.JSON_PROPERTY_AMOUNT, BalanceTransferResponse.JSON_PROPERTY_CREATED_AT, @@ -34,6 +40,7 @@ BalanceTransferResponse.JSON_PROPERTY_TO_MERCHANT, BalanceTransferResponse.JSON_PROPERTY_TYPE }) + public class BalanceTransferResponse { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -54,10 +61,10 @@ public class BalanceTransferResponse { private String reference; /** - * The status of the balance transfer. Possible values: **transferred**, **failed**, **error**, - * and **notEnoughBalance**. + * The status of the balance transfer. Possible values: **transferred**, **failed**, **error**, and **notEnoughBalance**. */ public enum StatusEnum { + ERROR(String.valueOf("error")), FAILED(String.valueOf("failed")), @@ -71,7 +78,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -92,11 +99,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -108,10 +111,10 @@ public static StatusEnum fromValue(String value) { private String toMerchant; /** - * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, - * **debit**, and **adjustment**. + * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**. */ public enum TypeEnum { + TAX(String.valueOf("tax")), FEE(String.valueOf("fee")), @@ -129,7 +132,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -150,11 +153,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -162,12 +161,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public BalanceTransferResponse() {} + public BalanceTransferResponse() { + } /** * amount * - * @param amount + * @param amount * @return the current {@code BalanceTransferResponse} instance, allowing for method chaining */ public BalanceTransferResponse amount(Amount amount) { @@ -177,8 +177,7 @@ public BalanceTransferResponse amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,7 +188,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -210,7 +209,6 @@ public BalanceTransferResponse createdAt(OffsetDateTime createdAt) { /** * The date when the balance transfer was requested. - * * @return createdAt The date when the balance transfer was requested. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @@ -231,12 +229,9 @@ public void setCreatedAt(OffsetDateTime createdAt) { } /** - * A human-readable description for the transfer. You can use alphanumeric characters and hyphens. - * We recommend sending a maximum of 140 characters, otherwise the description may be truncated. + * A human-readable description for the transfer. You can use alphanumeric characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. * - * @param description A human-readable description for the transfer. You can use alphanumeric - * characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the - * description may be truncated. + * @param description A human-readable description for the transfer. You can use alphanumeric characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. * @return the current {@code BalanceTransferResponse} instance, allowing for method chaining */ public BalanceTransferResponse description(String description) { @@ -245,12 +240,8 @@ public BalanceTransferResponse description(String description) { } /** - * A human-readable description for the transfer. You can use alphanumeric characters and hyphens. - * We recommend sending a maximum of 140 characters, otherwise the description may be truncated. - * - * @return description A human-readable description for the transfer. You can use alphanumeric - * characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the - * description may be truncated. + * A human-readable description for the transfer. You can use alphanumeric characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. + * @return description A human-readable description for the transfer. You can use alphanumeric characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -259,12 +250,9 @@ public String getDescription() { } /** - * A human-readable description for the transfer. You can use alphanumeric characters and hyphens. - * We recommend sending a maximum of 140 characters, otherwise the description may be truncated. + * A human-readable description for the transfer. You can use alphanumeric characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. * - * @param description A human-readable description for the transfer. You can use alphanumeric - * characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the - * description may be truncated. + * @param description A human-readable description for the transfer. You can use alphanumeric characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -275,8 +263,7 @@ public void setDescription(String description) { /** * The unique identifier of the source merchant account from which funds are deducted. * - * @param fromMerchant The unique identifier of the source merchant account from which funds are - * deducted. + * @param fromMerchant The unique identifier of the source merchant account from which funds are deducted. * @return the current {@code BalanceTransferResponse} instance, allowing for method chaining */ public BalanceTransferResponse fromMerchant(String fromMerchant) { @@ -286,9 +273,7 @@ public BalanceTransferResponse fromMerchant(String fromMerchant) { /** * The unique identifier of the source merchant account from which funds are deducted. - * - * @return fromMerchant The unique identifier of the source merchant account from which funds are - * deducted. + * @return fromMerchant The unique identifier of the source merchant account from which funds are deducted. */ @JsonProperty(JSON_PROPERTY_FROM_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -299,8 +284,7 @@ public String getFromMerchant() { /** * The unique identifier of the source merchant account from which funds are deducted. * - * @param fromMerchant The unique identifier of the source merchant account from which funds are - * deducted. + * @param fromMerchant The unique identifier of the source merchant account from which funds are deducted. */ @JsonProperty(JSON_PROPERTY_FROM_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -311,8 +295,7 @@ public void setFromMerchant(String fromMerchant) { /** * Adyen's 16-character string reference associated with the balance transfer. * - * @param pspReference Adyen's 16-character string reference associated with the balance - * transfer. + * @param pspReference Adyen's 16-character string reference associated with the balance transfer. * @return the current {@code BalanceTransferResponse} instance, allowing for method chaining */ public BalanceTransferResponse pspReference(String pspReference) { @@ -322,9 +305,7 @@ public BalanceTransferResponse pspReference(String pspReference) { /** * Adyen's 16-character string reference associated with the balance transfer. - * - * @return pspReference Adyen's 16-character string reference associated with the balance - * transfer. + * @return pspReference Adyen's 16-character string reference associated with the balance transfer. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -335,8 +316,7 @@ public String getPspReference() { /** * Adyen's 16-character string reference associated with the balance transfer. * - * @param pspReference Adyen's 16-character string reference associated with the balance - * transfer. + * @param pspReference Adyen's 16-character string reference associated with the balance transfer. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -345,11 +325,9 @@ public void setPspReference(String pspReference) { } /** - * A reference for the balance transfer. If you don't provide this in the request, Adyen - * generates a unique reference. Maximum length: 80 characters. + * A reference for the balance transfer. If you don't provide this in the request, Adyen generates a unique reference. Maximum length: 80 characters. * - * @param reference A reference for the balance transfer. If you don't provide this in the - * request, Adyen generates a unique reference. Maximum length: 80 characters. + * @param reference A reference for the balance transfer. If you don't provide this in the request, Adyen generates a unique reference. Maximum length: 80 characters. * @return the current {@code BalanceTransferResponse} instance, allowing for method chaining */ public BalanceTransferResponse reference(String reference) { @@ -358,11 +336,8 @@ public BalanceTransferResponse reference(String reference) { } /** - * A reference for the balance transfer. If you don't provide this in the request, Adyen - * generates a unique reference. Maximum length: 80 characters. - * - * @return reference A reference for the balance transfer. If you don't provide this in the - * request, Adyen generates a unique reference. Maximum length: 80 characters. + * A reference for the balance transfer. If you don't provide this in the request, Adyen generates a unique reference. Maximum length: 80 characters. + * @return reference A reference for the balance transfer. If you don't provide this in the request, Adyen generates a unique reference. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -371,11 +346,9 @@ public String getReference() { } /** - * A reference for the balance transfer. If you don't provide this in the request, Adyen - * generates a unique reference. Maximum length: 80 characters. + * A reference for the balance transfer. If you don't provide this in the request, Adyen generates a unique reference. Maximum length: 80 characters. * - * @param reference A reference for the balance transfer. If you don't provide this in the - * request, Adyen generates a unique reference. Maximum length: 80 characters. + * @param reference A reference for the balance transfer. If you don't provide this in the request, Adyen generates a unique reference. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -384,11 +357,9 @@ public void setReference(String reference) { } /** - * The status of the balance transfer. Possible values: **transferred**, **failed**, **error**, - * and **notEnoughBalance**. + * The status of the balance transfer. Possible values: **transferred**, **failed**, **error**, and **notEnoughBalance**. * - * @param status The status of the balance transfer. Possible values: **transferred**, **failed**, - * **error**, and **notEnoughBalance**. + * @param status The status of the balance transfer. Possible values: **transferred**, **failed**, **error**, and **notEnoughBalance**. * @return the current {@code BalanceTransferResponse} instance, allowing for method chaining */ public BalanceTransferResponse status(StatusEnum status) { @@ -397,11 +368,8 @@ public BalanceTransferResponse status(StatusEnum status) { } /** - * The status of the balance transfer. Possible values: **transferred**, **failed**, **error**, - * and **notEnoughBalance**. - * - * @return status The status of the balance transfer. Possible values: **transferred**, - * **failed**, **error**, and **notEnoughBalance**. + * The status of the balance transfer. Possible values: **transferred**, **failed**, **error**, and **notEnoughBalance**. + * @return status The status of the balance transfer. Possible values: **transferred**, **failed**, **error**, and **notEnoughBalance**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -410,11 +378,9 @@ public StatusEnum getStatus() { } /** - * The status of the balance transfer. Possible values: **transferred**, **failed**, **error**, - * and **notEnoughBalance**. + * The status of the balance transfer. Possible values: **transferred**, **failed**, **error**, and **notEnoughBalance**. * - * @param status The status of the balance transfer. Possible values: **transferred**, **failed**, - * **error**, and **notEnoughBalance**. + * @param status The status of the balance transfer. Possible values: **transferred**, **failed**, **error**, and **notEnoughBalance**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -425,8 +391,7 @@ public void setStatus(StatusEnum status) { /** * The unique identifier of the destination merchant account from which funds are transferred. * - * @param toMerchant The unique identifier of the destination merchant account from which funds - * are transferred. + * @param toMerchant The unique identifier of the destination merchant account from which funds are transferred. * @return the current {@code BalanceTransferResponse} instance, allowing for method chaining */ public BalanceTransferResponse toMerchant(String toMerchant) { @@ -436,9 +401,7 @@ public BalanceTransferResponse toMerchant(String toMerchant) { /** * The unique identifier of the destination merchant account from which funds are transferred. - * - * @return toMerchant The unique identifier of the destination merchant account from which funds - * are transferred. + * @return toMerchant The unique identifier of the destination merchant account from which funds are transferred. */ @JsonProperty(JSON_PROPERTY_TO_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -449,8 +412,7 @@ public String getToMerchant() { /** * The unique identifier of the destination merchant account from which funds are transferred. * - * @param toMerchant The unique identifier of the destination merchant account from which funds - * are transferred. + * @param toMerchant The unique identifier of the destination merchant account from which funds are transferred. */ @JsonProperty(JSON_PROPERTY_TO_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -459,11 +421,9 @@ public void setToMerchant(String toMerchant) { } /** - * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, - * **debit**, and **adjustment**. + * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**. * - * @param type The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, - * **credit**, **debit**, and **adjustment**. + * @param type The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**. * @return the current {@code BalanceTransferResponse} instance, allowing for method chaining */ public BalanceTransferResponse type(TypeEnum type) { @@ -472,11 +432,8 @@ public BalanceTransferResponse type(TypeEnum type) { } /** - * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, - * **debit**, and **adjustment**. - * - * @return type The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, - * **credit**, **debit**, and **adjustment**. + * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**. + * @return type The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -485,11 +442,9 @@ public TypeEnum getType() { } /** - * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, - * **debit**, and **adjustment**. + * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**. * - * @param type The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, - * **credit**, **debit**, and **adjustment**. + * @param type The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -497,7 +452,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this BalanceTransferResponse object is equal to o. */ + /** + * Return true if this BalanceTransferResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -507,29 +464,20 @@ public boolean equals(Object o) { return false; } BalanceTransferResponse balanceTransferResponse = (BalanceTransferResponse) o; - return Objects.equals(this.amount, balanceTransferResponse.amount) - && Objects.equals(this.createdAt, balanceTransferResponse.createdAt) - && Objects.equals(this.description, balanceTransferResponse.description) - && Objects.equals(this.fromMerchant, balanceTransferResponse.fromMerchant) - && Objects.equals(this.pspReference, balanceTransferResponse.pspReference) - && Objects.equals(this.reference, balanceTransferResponse.reference) - && Objects.equals(this.status, balanceTransferResponse.status) - && Objects.equals(this.toMerchant, balanceTransferResponse.toMerchant) - && Objects.equals(this.type, balanceTransferResponse.type); + return Objects.equals(this.amount, balanceTransferResponse.amount) && + Objects.equals(this.createdAt, balanceTransferResponse.createdAt) && + Objects.equals(this.description, balanceTransferResponse.description) && + Objects.equals(this.fromMerchant, balanceTransferResponse.fromMerchant) && + Objects.equals(this.pspReference, balanceTransferResponse.pspReference) && + Objects.equals(this.reference, balanceTransferResponse.reference) && + Objects.equals(this.status, balanceTransferResponse.status) && + Objects.equals(this.toMerchant, balanceTransferResponse.toMerchant) && + Objects.equals(this.type, balanceTransferResponse.type); } @Override public int hashCode() { - return Objects.hash( - amount, - createdAt, - description, - fromMerchant, - pspReference, - reference, - status, - toMerchant, - type); + return Objects.hash(amount, createdAt, description, fromMerchant, pspReference, reference, status, toMerchant, type); } @Override @@ -550,7 +498,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -559,23 +508,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BalanceTransferResponse given an JSON string * * @param jsonString JSON string * @return An instance of BalanceTransferResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BalanceTransferResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceTransferResponse */ public static BalanceTransferResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceTransferResponse.class); } - - /** - * Convert an instance of BalanceTransferResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BalanceTransferResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balancecontrol/JSON.java b/src/main/java/com/adyen/model/balancecontrol/JSON.java index a93acd72f..9dee8a946 100644 --- a/src/main/java/com/adyen/model/balancecontrol/JSON.java +++ b/src/main/java/com/adyen/model/balancecontrol/JSON.java @@ -1,18 +1,21 @@ package com.adyen.model.balancecontrol; -import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; +import com.adyen.serializer.ByteArrayDeserializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; +import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; +import com.adyen.model.balancecontrol.*; + import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -37,7 +40,6 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. - * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -54,13 +56,11 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { - return mapper; - } + public static ObjectMapper getMapper() { return mapper; } /** - * Returns the target model class that should be used to deserialize the input data. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,7 +73,9 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** Helper class to register the discriminator mappings. */ + /** + * Helper class to register the discriminator mappings. + */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -115,9 +117,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. This - * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -162,14 +164,13 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so - * it's not possible to use the instanceof keyword. + * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, + * so it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf( - Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -193,58 +194,59 @@ public static boolean isInstanceOf( return false; } - /** A map of discriminators for all model classes. */ - private static final Map, ClassDiscriminatorMapping> modelDiscriminators = - new HashMap, ClassDiscriminatorMapping>(); + /** + * A map of discriminators for all model classes. + */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); - /** A map of oneOf/anyOf descendants for each model class. */ + /** + * A map of oneOf/anyOf descendants for each model class. + */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator( - Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = - new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants( - Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants(Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static { + static + { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/balanceplatform/AULocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/AULocalAccountIdentification.java index fc9b5cafd..e0238cd49 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AULocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/AULocalAccountIdentification.java @@ -2,31 +2,37 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** AULocalAccountIdentification */ + +/** + * AULocalAccountIdentification + */ @JsonPropertyOrder({ AULocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, AULocalAccountIdentification.JSON_PROPERTY_BSB_CODE, AULocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class AULocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -34,8 +40,11 @@ public class AULocalAccountIdentification { public static final String JSON_PROPERTY_BSB_CODE = "bsbCode"; private String bsbCode; - /** **auLocal** */ + /** + * **auLocal** + */ public enum TypeEnum { + AULOCAL(String.valueOf("auLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -43,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -76,7 +81,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AULocalAccountIdentification() {} + public AULocalAccountIdentification() { + } /** * The bank account number, without separators or whitespace. @@ -91,7 +97,6 @@ public AULocalAccountIdentification accountNumber(String accountNumber) { /** * The bank account number, without separators or whitespace. - * * @return accountNumber The bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -112,11 +117,9 @@ public void setAccountNumber(String accountNumber) { } /** - * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), - * without separators or whitespace. + * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. * - * @param bsbCode The 6-digit [Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * @param bsbCode The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. * @return the current {@code AULocalAccountIdentification} instance, allowing for method chaining */ public AULocalAccountIdentification bsbCode(String bsbCode) { @@ -125,11 +128,8 @@ public AULocalAccountIdentification bsbCode(String bsbCode) { } /** - * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), - * without separators or whitespace. - * - * @return bsbCode The 6-digit [Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * @return bsbCode The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_BSB_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,11 +138,9 @@ public String getBsbCode() { } /** - * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), - * without separators or whitespace. + * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. * - * @param bsbCode The 6-digit [Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * @param bsbCode The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_BSB_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,7 +161,6 @@ public AULocalAccountIdentification type(TypeEnum type) { /** * **auLocal** - * * @return type **auLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -183,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this AULocalAccountIdentification object is equal to o. */ + /** + * Return true if this AULocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -193,9 +192,9 @@ public boolean equals(Object o) { return false; } AULocalAccountIdentification auLocalAccountIdentification = (AULocalAccountIdentification) o; - return Objects.equals(this.accountNumber, auLocalAccountIdentification.accountNumber) - && Objects.equals(this.bsbCode, auLocalAccountIdentification.bsbCode) - && Objects.equals(this.type, auLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, auLocalAccountIdentification.accountNumber) && + Objects.equals(this.bsbCode, auLocalAccountIdentification.bsbCode) && + Objects.equals(this.type, auLocalAccountIdentification.type); } @Override @@ -215,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,24 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AULocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of AULocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AULocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to AULocalAccountIdentification */ - public static AULocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static AULocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AULocalAccountIdentification.class); } - - /** - * Convert an instance of AULocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AULocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/balanceplatform/AbstractOpenApiSchema.java index 6300f20de..d41c09e3d 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/balanceplatform/AbstractOpenApiSchema.java @@ -2,141 +2,145 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonValue; -import jakarta.ws.rs.core.GenericType; -import java.util.Map; import java.util.Objects; +import java.util.Map; +import jakarta.ws.rs.core.GenericType; -/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec + */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() { - return instance; - } - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) { - this.instance = instance; - } - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf - * schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); - } else { - return object.getActualInstance(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() {return instance;} + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) {this.instance = instance;} + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); + } else { + return object.getActualInstance(); + } + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) && + Objects.equals(this.isNullable, a.isNullable) && + Objects.equals(this.schemaType, a.schemaType); } - return o.toString().replace("\n", "\n "); - } - public boolean equals(Object o) { - if (this == o) { - return true; + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); } - if (o == null || getClass() != o.getClass()) { - return false; + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) - && Objects.equals(this.isNullable, a.isNullable) - && Objects.equals(this.schemaType, a.schemaType); - } - - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); - } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); - } -} + + + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/balanceplatform/AccountHolder.java b/src/main/java/com/adyen/model/balanceplatform/AccountHolder.java index 7051c52ce..9bb7c539d 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AccountHolder.java +++ b/src/main/java/com/adyen/model/balanceplatform/AccountHolder.java @@ -2,29 +2,38 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.AccountHolderCapability; +import com.adyen.model.balanceplatform.ContactDetails; +import com.adyen.model.balanceplatform.VerificationDeadline; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** AccountHolder */ +/** + * AccountHolder + */ @JsonPropertyOrder({ AccountHolder.JSON_PROPERTY_BALANCE_PLATFORM, AccountHolder.JSON_PROPERTY_CAPABILITIES, @@ -40,6 +49,7 @@ AccountHolder.JSON_PROPERTY_TIME_ZONE, AccountHolder.JSON_PROPERTY_VERIFICATION_DEADLINES }) + public class AccountHolder { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; @@ -48,7 +58,7 @@ public class AccountHolder { private Map capabilities; public static final String JSON_PROPERTY_CONTACT_DETAILS = "contactDetails"; - @Deprecated // deprecated + @Deprecated // deprecated private ContactDetails contactDetails; public static final String JSON_PROPERTY_DESCRIPTION = "description"; @@ -63,8 +73,7 @@ public class AccountHolder { public static final String JSON_PROPERTY_METADATA = "metadata"; private Map metadata; - public static final String JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE = - "migratedAccountHolderCode"; + public static final String JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE = "migratedAccountHolderCode"; private String migratedAccountHolderCode; public static final String JSON_PROPERTY_PRIMARY_BALANCE_ACCOUNT = "primaryBalanceAccount"; @@ -74,14 +83,10 @@ public class AccountHolder { private String reference; /** - * The status of the account holder. Possible values: * **active**: The account holder is active - * and allowed to use its capabilities. This is the initial status for account holders and balance - * accounts. You can change this status to **suspended** or **closed**. * **suspended**: The - * account holder is temporarily disabled and payouts are blocked. You can change this status to - * **active** or **closed**. * **closed**: The account holder and all of its capabilities are - * permanently disabled. This is a final status and cannot be changed. + * The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. */ public enum StatusEnum { + ACTIVE(String.valueOf("active")), CLOSED(String.valueOf("closed")), @@ -93,7 +98,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -114,11 +119,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -132,14 +133,15 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_VERIFICATION_DEADLINES = "verificationDeadlines"; private List verificationDeadlines; - public AccountHolder() {} + public AccountHolder() { + } @JsonCreator public AccountHolder( - @JsonProperty(JSON_PROPERTY_ID) String id, - @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE) String migratedAccountHolderCode, - @JsonProperty(JSON_PROPERTY_VERIFICATION_DEADLINES) - List verificationDeadlines) { + @JsonProperty(JSON_PROPERTY_ID) String id, + @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE) String migratedAccountHolderCode, + @JsonProperty(JSON_PROPERTY_VERIFICATION_DEADLINES) List verificationDeadlines + ) { this(); this.id = id; this.migratedAccountHolderCode = migratedAccountHolderCode; @@ -147,15 +149,9 @@ public AccountHolder( } /** - * The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the account holder belongs. Required in the request if your API credentials can be - * used for multiple balance platforms. + * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. * - * @param balancePlatform The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the account holder belongs. Required in the request if your API credentials can be - * used for multiple balance platforms. + * @param balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. * @return the current {@code AccountHolder} instance, allowing for method chaining */ public AccountHolder balancePlatform(String balancePlatform) { @@ -164,15 +160,8 @@ public AccountHolder balancePlatform(String balancePlatform) { } /** - * The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the account holder belongs. Required in the request if your API credentials can be - * used for multiple balance platforms. - * - * @return balancePlatform The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the account holder belongs. Required in the request if your API credentials can be - * used for multiple balance platforms. + * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. + * @return balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,15 +170,9 @@ public String getBalancePlatform() { } /** - * The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the account holder belongs. Required in the request if your API credentials can be - * used for multiple balance platforms. + * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. * - * @param balancePlatform The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the account holder belongs. Required in the request if your API credentials can be - * used for multiple balance platforms. + * @param balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,14 +181,9 @@ public void setBalancePlatform(String balancePlatform) { } /** - * Contains key-value pairs that specify the actions that an account holder can do in your - * platform. The key is a capability required for your integration. For example, **issueCard** for - * Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that an account holder - * can do in your platform. The key is a capability required for your integration. For - * example, **issueCard** for Issuing. The value is an object containing the settings for the - * capability. + * @param capabilities Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. * @return the current {@code AccountHolder} instance, allowing for method chaining */ public AccountHolder capabilities(Map capabilities) { @@ -222,14 +200,8 @@ public AccountHolder putCapabilitiesItem(String key, AccountHolderCapability cap } /** - * Contains key-value pairs that specify the actions that an account holder can do in your - * platform. The key is a capability required for your integration. For example, **issueCard** for - * Issuing. The value is an object containing the settings for the capability. - * - * @return capabilities Contains key-value pairs that specify the actions that an account holder - * can do in your platform. The key is a capability required for your integration. For - * example, **issueCard** for Issuing. The value is an object containing the settings for the - * capability. + * Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * @return capabilities Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -238,14 +210,9 @@ public Map getCapabilities() { } /** - * Contains key-value pairs that specify the actions that an account holder can do in your - * platform. The key is a capability required for your integration. For example, **issueCard** for - * Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that an account holder - * can do in your platform. The key is a capability required for your integration. For - * example, **issueCard** for Issuing. The value is an object containing the settings for the - * capability. + * @param capabilities Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -256,11 +223,12 @@ public void setCapabilities(Map capabilities) { /** * contactDetails * - * @param contactDetails + * @param contactDetails * @return the current {@code AccountHolder} instance, allowing for method chaining - * @deprecated + * + * @deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated public AccountHolder contactDetails(ContactDetails contactDetails) { this.contactDetails = contactDetails; return this; @@ -268,11 +236,10 @@ public AccountHolder contactDetails(ContactDetails contactDetails) { /** * Get contactDetails - * - * @return contactDetails - * @deprecated // deprecated + * @return contactDetails + * @deprecated // deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated @JsonProperty(JSON_PROPERTY_CONTACT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ContactDetails getContactDetails() { @@ -282,10 +249,11 @@ public ContactDetails getContactDetails() { /** * contactDetails * - * @param contactDetails - * @deprecated + * @param contactDetails + * + * @deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated @JsonProperty(JSON_PROPERTY_CONTACT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setContactDetails(ContactDetails contactDetails) { @@ -305,7 +273,6 @@ public AccountHolder description(String description) { /** * Your description for the account holder. - * * @return description Your description for the account holder. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -327,7 +294,6 @@ public void setDescription(String description) { /** * The unique identifier of the account holder. - * * @return id The unique identifier of the account holder. */ @JsonProperty(JSON_PROPERTY_ID) @@ -336,16 +302,11 @@ public String getId() { return id; } + /** - * The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) - * associated with the account holder. Adyen performs a verification process against the legal - * entity of the account holder. + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. * - * @param legalEntityId The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) - * associated with the account holder. Adyen performs a verification process against the legal - * entity of the account holder. + * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. * @return the current {@code AccountHolder} instance, allowing for method chaining */ public AccountHolder legalEntityId(String legalEntityId) { @@ -354,15 +315,8 @@ public AccountHolder legalEntityId(String legalEntityId) { } /** - * The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) - * associated with the account holder. Adyen performs a verification process against the legal - * entity of the account holder. - * - * @return legalEntityId The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) - * associated with the account holder. Adyen performs a verification process against the legal - * entity of the account holder. + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. + * @return legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -371,15 +325,9 @@ public String getLegalEntityId() { } /** - * The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) - * associated with the account holder. Adyen performs a verification process against the legal - * entity of the account holder. + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. * - * @param legalEntityId The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) - * associated with the account holder. Adyen performs a verification process against the legal - * entity of the account holder. + * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -388,14 +336,9 @@ public void setLegalEntityId(String legalEntityId) { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be - * used for storing miscellaneous data as desired. > Note that during an update of metadata, - * the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific - * names and may be used for storing miscellaneous data as desired. > Note that during an - * update of metadata, the omission of existing key-value pairs will result in the deletion of - * those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. * @return the current {@code AccountHolder} instance, allowing for method chaining */ public AccountHolder metadata(Map metadata) { @@ -412,14 +355,8 @@ public AccountHolder putMetadataItem(String key, String metadataItem) { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be - * used for storing miscellaneous data as desired. > Note that during an update of metadata, - * the omission of existing key-value pairs will result in the deletion of those key-value pairs. - * - * @return metadata A set of key and value pairs for general use. The keys do not have specific - * names and may be used for storing miscellaneous data as desired. > Note that during an - * update of metadata, the omission of existing key-value pairs will result in the deletion of - * those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * @return metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -428,14 +365,9 @@ public Map getMetadata() { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be - * used for storing miscellaneous data as desired. > Note that during an update of metadata, - * the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific - * names and may be used for storing miscellaneous data as desired. > Note that during an - * update of metadata, the omission of existing key-value pairs will result in the deletion of - * those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -445,9 +377,7 @@ public void setMetadata(Map metadata) { /** * The unique identifier of the migrated account holder in the classic integration. - * - * @return migratedAccountHolderCode The unique identifier of the migrated account holder in the - * classic integration. + * @return migratedAccountHolderCode The unique identifier of the migrated account holder in the classic integration. */ @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -455,14 +385,11 @@ public String getMigratedAccountHolderCode() { return migratedAccountHolderCode; } + /** - * The ID of the account holder's primary balance account. By default, this is set to the - * first balance account that you create for the account holder. To assign a different balance - * account, send a PATCH request. + * The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. * - * @param primaryBalanceAccount The ID of the account holder's primary balance account. By - * default, this is set to the first balance account that you create for the account holder. - * To assign a different balance account, send a PATCH request. + * @param primaryBalanceAccount The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. * @return the current {@code AccountHolder} instance, allowing for method chaining */ public AccountHolder primaryBalanceAccount(String primaryBalanceAccount) { @@ -471,13 +398,8 @@ public AccountHolder primaryBalanceAccount(String primaryBalanceAccount) { } /** - * The ID of the account holder's primary balance account. By default, this is set to the - * first balance account that you create for the account holder. To assign a different balance - * account, send a PATCH request. - * - * @return primaryBalanceAccount The ID of the account holder's primary balance account. By - * default, this is set to the first balance account that you create for the account holder. - * To assign a different balance account, send a PATCH request. + * The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. + * @return primaryBalanceAccount The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. */ @JsonProperty(JSON_PROPERTY_PRIMARY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -486,13 +408,9 @@ public String getPrimaryBalanceAccount() { } /** - * The ID of the account holder's primary balance account. By default, this is set to the - * first balance account that you create for the account holder. To assign a different balance - * account, send a PATCH request. + * The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. * - * @param primaryBalanceAccount The ID of the account holder's primary balance account. By - * default, this is set to the first balance account that you create for the account holder. - * To assign a different balance account, send a PATCH request. + * @param primaryBalanceAccount The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. */ @JsonProperty(JSON_PROPERTY_PRIMARY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -513,7 +431,6 @@ public AccountHolder reference(String reference) { /** * Your reference for the account holder. - * * @return reference Your reference for the account holder. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -534,20 +451,9 @@ public void setReference(String reference) { } /** - * The status of the account holder. Possible values: * **active**: The account holder is active - * and allowed to use its capabilities. This is the initial status for account holders and balance - * accounts. You can change this status to **suspended** or **closed**. * **suspended**: The - * account holder is temporarily disabled and payouts are blocked. You can change this status to - * **active** or **closed**. * **closed**: The account holder and all of its capabilities are - * permanently disabled. This is a final status and cannot be changed. + * The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. * - * @param status The status of the account holder. Possible values: * **active**: The account - * holder is active and allowed to use its capabilities. This is the initial status for - * account holders and balance accounts. You can change this status to **suspended** or - * **closed**. * **suspended**: The account holder is temporarily disabled and payouts are - * blocked. You can change this status to **active** or **closed**. * **closed**: The account - * holder and all of its capabilities are permanently disabled. This is a final status and - * cannot be changed. + * @param status The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. * @return the current {@code AccountHolder} instance, allowing for method chaining */ public AccountHolder status(StatusEnum status) { @@ -556,20 +462,8 @@ public AccountHolder status(StatusEnum status) { } /** - * The status of the account holder. Possible values: * **active**: The account holder is active - * and allowed to use its capabilities. This is the initial status for account holders and balance - * accounts. You can change this status to **suspended** or **closed**. * **suspended**: The - * account holder is temporarily disabled and payouts are blocked. You can change this status to - * **active** or **closed**. * **closed**: The account holder and all of its capabilities are - * permanently disabled. This is a final status and cannot be changed. - * - * @return status The status of the account holder. Possible values: * **active**: The account - * holder is active and allowed to use its capabilities. This is the initial status for - * account holders and balance accounts. You can change this status to **suspended** or - * **closed**. * **suspended**: The account holder is temporarily disabled and payouts are - * blocked. You can change this status to **active** or **closed**. * **closed**: The account - * holder and all of its capabilities are permanently disabled. This is a final status and - * cannot be changed. + * The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. + * @return status The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -578,20 +472,9 @@ public StatusEnum getStatus() { } /** - * The status of the account holder. Possible values: * **active**: The account holder is active - * and allowed to use its capabilities. This is the initial status for account holders and balance - * accounts. You can change this status to **suspended** or **closed**. * **suspended**: The - * account holder is temporarily disabled and payouts are blocked. You can change this status to - * **active** or **closed**. * **closed**: The account holder and all of its capabilities are - * permanently disabled. This is a final status and cannot be changed. + * The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. * - * @param status The status of the account holder. Possible values: * **active**: The account - * holder is active and allowed to use its capabilities. This is the initial status for - * account holders and balance accounts. You can change this status to **suspended** or - * **closed**. * **suspended**: The account holder is temporarily disabled and payouts are - * blocked. You can change this status to **active** or **closed**. * **closed**: The account - * holder and all of its capabilities are permanently disabled. This is a final status and - * cannot be changed. + * @param status The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -600,14 +483,9 @@ public void setStatus(StatusEnum status) { } /** - * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time - * zone of the balance platform if no time zone is set. For possible values, see the [list of time - * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. - * Defaults to the time zone of the balance platform if no time zone is set. For possible - * values, see the [list of time zone - * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * @return the current {@code AccountHolder} instance, allowing for method chaining */ public AccountHolder timeZone(String timeZone) { @@ -616,14 +494,8 @@ public AccountHolder timeZone(String timeZone) { } /** - * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time - * zone of the balance platform if no time zone is set. For possible values, see the [list of time - * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). - * - * @return timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. - * Defaults to the time zone of the balance platform if no time zone is set. For possible - * values, see the [list of time zone - * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @return timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -632,14 +504,9 @@ public String getTimeZone() { } /** - * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time - * zone of the balance platform if no time zone is set. For possible values, see the [list of time - * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. - * Defaults to the time zone of the balance platform if no time zone is set. For possible - * values, see the [list of time zone - * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -648,11 +515,8 @@ public void setTimeZone(String timeZone) { } /** - * List of verification deadlines and the capabilities that will be disallowed if verification - * errors are not resolved. - * - * @return verificationDeadlines List of verification deadlines and the capabilities that will be - * disallowed if verification errors are not resolved. + * List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. + * @return verificationDeadlines List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_DEADLINES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -660,7 +524,10 @@ public List getVerificationDeadlines() { return verificationDeadlines; } - /** Return true if this AccountHolder object is equal to o. */ + + /** + * Return true if this AccountHolder object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -670,37 +537,24 @@ public boolean equals(Object o) { return false; } AccountHolder accountHolder = (AccountHolder) o; - return Objects.equals(this.balancePlatform, accountHolder.balancePlatform) - && Objects.equals(this.capabilities, accountHolder.capabilities) - && Objects.equals(this.contactDetails, accountHolder.contactDetails) - && Objects.equals(this.description, accountHolder.description) - && Objects.equals(this.id, accountHolder.id) - && Objects.equals(this.legalEntityId, accountHolder.legalEntityId) - && Objects.equals(this.metadata, accountHolder.metadata) - && Objects.equals(this.migratedAccountHolderCode, accountHolder.migratedAccountHolderCode) - && Objects.equals(this.primaryBalanceAccount, accountHolder.primaryBalanceAccount) - && Objects.equals(this.reference, accountHolder.reference) - && Objects.equals(this.status, accountHolder.status) - && Objects.equals(this.timeZone, accountHolder.timeZone) - && Objects.equals(this.verificationDeadlines, accountHolder.verificationDeadlines); + return Objects.equals(this.balancePlatform, accountHolder.balancePlatform) && + Objects.equals(this.capabilities, accountHolder.capabilities) && + Objects.equals(this.contactDetails, accountHolder.contactDetails) && + Objects.equals(this.description, accountHolder.description) && + Objects.equals(this.id, accountHolder.id) && + Objects.equals(this.legalEntityId, accountHolder.legalEntityId) && + Objects.equals(this.metadata, accountHolder.metadata) && + Objects.equals(this.migratedAccountHolderCode, accountHolder.migratedAccountHolderCode) && + Objects.equals(this.primaryBalanceAccount, accountHolder.primaryBalanceAccount) && + Objects.equals(this.reference, accountHolder.reference) && + Objects.equals(this.status, accountHolder.status) && + Objects.equals(this.timeZone, accountHolder.timeZone) && + Objects.equals(this.verificationDeadlines, accountHolder.verificationDeadlines); } @Override public int hashCode() { - return Objects.hash( - balancePlatform, - capabilities, - contactDetails, - description, - id, - legalEntityId, - metadata, - migratedAccountHolderCode, - primaryBalanceAccount, - reference, - status, - timeZone, - verificationDeadlines); + return Objects.hash(balancePlatform, capabilities, contactDetails, description, id, legalEntityId, metadata, migratedAccountHolderCode, primaryBalanceAccount, reference, status, timeZone, verificationDeadlines); } @Override @@ -714,24 +568,19 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" legalEntityId: ").append(toIndentedString(legalEntityId)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" migratedAccountHolderCode: ") - .append(toIndentedString(migratedAccountHolderCode)) - .append("\n"); - sb.append(" primaryBalanceAccount: ") - .append(toIndentedString(primaryBalanceAccount)) - .append("\n"); + sb.append(" migratedAccountHolderCode: ").append(toIndentedString(migratedAccountHolderCode)).append("\n"); + sb.append(" primaryBalanceAccount: ").append(toIndentedString(primaryBalanceAccount)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); - sb.append(" verificationDeadlines: ") - .append(toIndentedString(verificationDeadlines)) - .append("\n"); + sb.append(" verificationDeadlines: ").append(toIndentedString(verificationDeadlines)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -740,7 +589,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AccountHolder given an JSON string * * @param jsonString JSON string @@ -750,12 +599,11 @@ private String toIndentedString(Object o) { public static AccountHolder fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountHolder.class); } - - /** - * Convert an instance of AccountHolder to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AccountHolder to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/AccountHolderCapability.java b/src/main/java/com/adyen/model/balanceplatform/AccountHolderCapability.java index 4185adeb4..048b5a814 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AccountHolderCapability.java +++ b/src/main/java/com/adyen/model/balanceplatform/AccountHolderCapability.java @@ -2,27 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.AccountSupportingEntityCapability; +import com.adyen.model.balanceplatform.CapabilityProblem; +import com.adyen.model.balanceplatform.CapabilitySettings; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** AccountHolderCapability */ +/** + * AccountHolderCapability + */ @JsonPropertyOrder({ AccountHolderCapability.JSON_PROPERTY_ALLOWED, AccountHolderCapability.JSON_PROPERTY_ALLOWED_LEVEL, @@ -35,15 +44,16 @@ AccountHolderCapability.JSON_PROPERTY_TRANSFER_INSTRUMENTS, AccountHolderCapability.JSON_PROPERTY_VERIFICATION_STATUS }) + public class AccountHolderCapability { public static final String JSON_PROPERTY_ALLOWED = "allowed"; private Boolean allowed; /** - * The capability level that is allowed for the account holder. Possible values: - * **notApplicable**, **low**, **medium**, **high**. + * The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. */ public enum AllowedLevelEnum { + HIGH(String.valueOf("high")), LOW(String.valueOf("low")), @@ -57,7 +67,7 @@ public enum AllowedLevelEnum { private String value; AllowedLevelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -78,11 +88,7 @@ public static AllowedLevelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AllowedLevelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AllowedLevelEnum.values())); + LOG.warning("AllowedLevelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AllowedLevelEnum.values())); return null; } } @@ -103,12 +109,10 @@ public static AllowedLevelEnum fromValue(String value) { private Boolean requested; /** - * The requested level of the capability. Some capabilities, such as those used in [card - * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different - * levels. Levels increase the capability, but also require additional checks and increased - * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. */ public enum RequestedLevelEnum { + HIGH(String.valueOf("high")), LOW(String.valueOf("low")), @@ -122,7 +126,7 @@ public enum RequestedLevelEnum { private String value; RequestedLevelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -143,11 +147,7 @@ public static RequestedLevelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "RequestedLevelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(RequestedLevelEnum.values())); + LOG.warning("RequestedLevelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RequestedLevelEnum.values())); return null; } } @@ -162,13 +162,10 @@ public static RequestedLevelEnum fromValue(String value) { private List transferInstruments; /** - * The status of the verification checks for the capability. Possible values: * **pending**: Adyen - * is running the verification. * **invalid**: The verification failed. Check if the - * `errors` array contains more information. * **valid**: The verification has been - * successfully completed. * **rejected**: Adyen has verified the information, but found reasons - * to not allow the capability. + * The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. */ public enum VerificationStatusEnum { + INVALID(String.valueOf("invalid")), PENDING(String.valueOf("pending")), @@ -182,7 +179,7 @@ public enum VerificationStatusEnum { private String value; VerificationStatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -203,11 +200,7 @@ public static VerificationStatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "VerificationStatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(VerificationStatusEnum.values())); + LOG.warning("VerificationStatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(VerificationStatusEnum.values())); return null; } } @@ -215,16 +208,17 @@ public static VerificationStatusEnum fromValue(String value) { public static final String JSON_PROPERTY_VERIFICATION_STATUS = "verificationStatus"; private VerificationStatusEnum verificationStatus; - public AccountHolderCapability() {} + public AccountHolderCapability() { + } @JsonCreator public AccountHolderCapability( - @JsonProperty(JSON_PROPERTY_ALLOWED) Boolean allowed, - @JsonProperty(JSON_PROPERTY_ALLOWED_LEVEL) AllowedLevelEnum allowedLevel, - @JsonProperty(JSON_PROPERTY_PROBLEMS) List problems, - @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENTS) - List transferInstruments, - @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) VerificationStatusEnum verificationStatus) { + @JsonProperty(JSON_PROPERTY_ALLOWED) Boolean allowed, + @JsonProperty(JSON_PROPERTY_ALLOWED_LEVEL) AllowedLevelEnum allowedLevel, + @JsonProperty(JSON_PROPERTY_PROBLEMS) List problems, + @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENTS) List transferInstruments, + @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) VerificationStatusEnum verificationStatus + ) { this(); this.allowed = allowed; this.allowedLevel = allowedLevel; @@ -234,11 +228,8 @@ public AccountHolderCapability( } /** - * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is - * successful and the account holder is permitted to use the capability. - * - * @return allowed Indicates whether the capability is allowed. Adyen sets this to **true** if the - * verification is successful and the account holder is permitted to use the capability. + * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. + * @return allowed Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. */ @JsonProperty(JSON_PROPERTY_ALLOWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -246,12 +237,10 @@ public Boolean getAllowed() { return allowed; } + /** - * The capability level that is allowed for the account holder. Possible values: - * **notApplicable**, **low**, **medium**, **high**. - * - * @return allowedLevel The capability level that is allowed for the account holder. Possible - * values: **notApplicable**, **low**, **medium**, **high**. + * The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. + * @return allowedLevel The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. */ @JsonProperty(JSON_PROPERTY_ALLOWED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -259,10 +248,11 @@ public AllowedLevelEnum getAllowedLevel() { return allowedLevel; } + /** * allowedSettings * - * @param allowedSettings + * @param allowedSettings * @return the current {@code AccountHolderCapability} instance, allowing for method chaining */ public AccountHolderCapability allowedSettings(CapabilitySettings allowedSettings) { @@ -272,8 +262,7 @@ public AccountHolderCapability allowedSettings(CapabilitySettings allowedSetting /** * Get allowedSettings - * - * @return allowedSettings + * @return allowedSettings */ @JsonProperty(JSON_PROPERTY_ALLOWED_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,7 +273,7 @@ public CapabilitySettings getAllowedSettings() { /** * allowedSettings * - * @param allowedSettings + * @param allowedSettings */ @JsonProperty(JSON_PROPERTY_ALLOWED_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -293,11 +282,9 @@ public void setAllowedSettings(CapabilitySettings allowedSettings) { } /** - * Indicates whether the capability is enabled. If **false**, the capability is temporarily - * disabled for the account holder. + * Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. * - * @param enabled Indicates whether the capability is enabled. If **false**, the capability is - * temporarily disabled for the account holder. + * @param enabled Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. * @return the current {@code AccountHolderCapability} instance, allowing for method chaining */ public AccountHolderCapability enabled(Boolean enabled) { @@ -306,11 +293,8 @@ public AccountHolderCapability enabled(Boolean enabled) { } /** - * Indicates whether the capability is enabled. If **false**, the capability is temporarily - * disabled for the account holder. - * - * @return enabled Indicates whether the capability is enabled. If **false**, the capability is - * temporarily disabled for the account holder. + * Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. + * @return enabled Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -319,11 +303,9 @@ public Boolean getEnabled() { } /** - * Indicates whether the capability is enabled. If **false**, the capability is temporarily - * disabled for the account holder. + * Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. * - * @param enabled Indicates whether the capability is enabled. If **false**, the capability is - * temporarily disabled for the account holder. + * @param enabled Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -333,9 +315,7 @@ public void setEnabled(Boolean enabled) { /** * Contains verification errors and the actions that you can take to resolve them. - * - * @return problems Contains verification errors and the actions that you can take to resolve - * them. + * @return problems Contains verification errors and the actions that you can take to resolve them. */ @JsonProperty(JSON_PROPERTY_PROBLEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -343,12 +323,11 @@ public List getProblems() { return problems; } + /** - * Indicates whether the capability is requested. To check whether the account holder is permitted - * to use the capability, refer to the `allowed` field. + * Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. * - * @param requested Indicates whether the capability is requested. To check whether the account - * holder is permitted to use the capability, refer to the `allowed` field. + * @param requested Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. * @return the current {@code AccountHolderCapability} instance, allowing for method chaining */ public AccountHolderCapability requested(Boolean requested) { @@ -357,11 +336,8 @@ public AccountHolderCapability requested(Boolean requested) { } /** - * Indicates whether the capability is requested. To check whether the account holder is permitted - * to use the capability, refer to the `allowed` field. - * - * @return requested Indicates whether the capability is requested. To check whether the account - * holder is permitted to use the capability, refer to the `allowed` field. + * Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. + * @return requested Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. */ @JsonProperty(JSON_PROPERTY_REQUESTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -370,11 +346,9 @@ public Boolean getRequested() { } /** - * Indicates whether the capability is requested. To check whether the account holder is permitted - * to use the capability, refer to the `allowed` field. + * Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. * - * @param requested Indicates whether the capability is requested. To check whether the account - * holder is permitted to use the capability, refer to the `allowed` field. + * @param requested Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. */ @JsonProperty(JSON_PROPERTY_REQUESTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -383,16 +357,9 @@ public void setRequested(Boolean requested) { } /** - * The requested level of the capability. Some capabilities, such as those used in [card - * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different - * levels. Levels increase the capability, but also require additional checks and increased - * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. * - * @param requestedLevel The requested level of the capability. Some capabilities, such as those - * used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), - * have different levels. Levels increase the capability, but also require additional checks - * and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, - * **high**. + * @param requestedLevel The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. * @return the current {@code AccountHolderCapability} instance, allowing for method chaining */ public AccountHolderCapability requestedLevel(RequestedLevelEnum requestedLevel) { @@ -401,16 +368,8 @@ public AccountHolderCapability requestedLevel(RequestedLevelEnum requestedLevel) } /** - * The requested level of the capability. Some capabilities, such as those used in [card - * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different - * levels. Levels increase the capability, but also require additional checks and increased - * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. - * - * @return requestedLevel The requested level of the capability. Some capabilities, such as those - * used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), - * have different levels. Levels increase the capability, but also require additional checks - * and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, - * **high**. + * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * @return requestedLevel The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. */ @JsonProperty(JSON_PROPERTY_REQUESTED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -419,16 +378,9 @@ public RequestedLevelEnum getRequestedLevel() { } /** - * The requested level of the capability. Some capabilities, such as those used in [card - * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different - * levels. Levels increase the capability, but also require additional checks and increased - * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. * - * @param requestedLevel The requested level of the capability. Some capabilities, such as those - * used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), - * have different levels. Levels increase the capability, but also require additional checks - * and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, - * **high**. + * @param requestedLevel The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. */ @JsonProperty(JSON_PROPERTY_REQUESTED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -439,7 +391,7 @@ public void setRequestedLevel(RequestedLevelEnum requestedLevel) { /** * requestedSettings * - * @param requestedSettings + * @param requestedSettings * @return the current {@code AccountHolderCapability} instance, allowing for method chaining */ public AccountHolderCapability requestedSettings(CapabilitySettings requestedSettings) { @@ -449,8 +401,7 @@ public AccountHolderCapability requestedSettings(CapabilitySettings requestedSet /** * Get requestedSettings - * - * @return requestedSettings + * @return requestedSettings */ @JsonProperty(JSON_PROPERTY_REQUESTED_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -461,7 +412,7 @@ public CapabilitySettings getRequestedSettings() { /** * requestedSettings * - * @param requestedSettings + * @param requestedSettings */ @JsonProperty(JSON_PROPERTY_REQUESTED_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -470,10 +421,8 @@ public void setRequestedSettings(CapabilitySettings requestedSettings) { } /** - * Contains the status of the transfer instruments associated with this capability. - * - * @return transferInstruments Contains the status of the transfer instruments associated with - * this capability. + * Contains the status of the transfer instruments associated with this capability. + * @return transferInstruments Contains the status of the transfer instruments associated with this capability. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -481,18 +430,10 @@ public List getTransferInstruments() { return transferInstruments; } + /** - * The status of the verification checks for the capability. Possible values: * **pending**: Adyen - * is running the verification. * **invalid**: The verification failed. Check if the - * `errors` array contains more information. * **valid**: The verification has been - * successfully completed. * **rejected**: Adyen has verified the information, but found reasons - * to not allow the capability. - * - * @return verificationStatus The status of the verification checks for the capability. Possible - * values: * **pending**: Adyen is running the verification. * **invalid**: The verification - * failed. Check if the `errors` array contains more information. * **valid**: The - * verification has been successfully completed. * **rejected**: Adyen has verified the - * information, but found reasons to not allow the capability. + * The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. + * @return verificationStatus The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -500,7 +441,10 @@ public VerificationStatusEnum getVerificationStatus() { return verificationStatus; } - /** Return true if this AccountHolderCapability object is equal to o. */ + + /** + * Return true if this AccountHolderCapability object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -510,31 +454,21 @@ public boolean equals(Object o) { return false; } AccountHolderCapability accountHolderCapability = (AccountHolderCapability) o; - return Objects.equals(this.allowed, accountHolderCapability.allowed) - && Objects.equals(this.allowedLevel, accountHolderCapability.allowedLevel) - && Objects.equals(this.allowedSettings, accountHolderCapability.allowedSettings) - && Objects.equals(this.enabled, accountHolderCapability.enabled) - && Objects.equals(this.problems, accountHolderCapability.problems) - && Objects.equals(this.requested, accountHolderCapability.requested) - && Objects.equals(this.requestedLevel, accountHolderCapability.requestedLevel) - && Objects.equals(this.requestedSettings, accountHolderCapability.requestedSettings) - && Objects.equals(this.transferInstruments, accountHolderCapability.transferInstruments) - && Objects.equals(this.verificationStatus, accountHolderCapability.verificationStatus); + return Objects.equals(this.allowed, accountHolderCapability.allowed) && + Objects.equals(this.allowedLevel, accountHolderCapability.allowedLevel) && + Objects.equals(this.allowedSettings, accountHolderCapability.allowedSettings) && + Objects.equals(this.enabled, accountHolderCapability.enabled) && + Objects.equals(this.problems, accountHolderCapability.problems) && + Objects.equals(this.requested, accountHolderCapability.requested) && + Objects.equals(this.requestedLevel, accountHolderCapability.requestedLevel) && + Objects.equals(this.requestedSettings, accountHolderCapability.requestedSettings) && + Objects.equals(this.transferInstruments, accountHolderCapability.transferInstruments) && + Objects.equals(this.verificationStatus, accountHolderCapability.verificationStatus); } @Override public int hashCode() { - return Objects.hash( - allowed, - allowedLevel, - allowedSettings, - enabled, - problems, - requested, - requestedLevel, - requestedSettings, - transferInstruments, - verificationStatus); + return Objects.hash(allowed, allowedLevel, allowedSettings, enabled, problems, requested, requestedLevel, requestedSettings, transferInstruments, verificationStatus); } @Override @@ -549,16 +483,15 @@ public String toString() { sb.append(" requested: ").append(toIndentedString(requested)).append("\n"); sb.append(" requestedLevel: ").append(toIndentedString(requestedLevel)).append("\n"); sb.append(" requestedSettings: ").append(toIndentedString(requestedSettings)).append("\n"); - sb.append(" transferInstruments: ") - .append(toIndentedString(transferInstruments)) - .append("\n"); + sb.append(" transferInstruments: ").append(toIndentedString(transferInstruments)).append("\n"); sb.append(" verificationStatus: ").append(toIndentedString(verificationStatus)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -567,23 +500,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AccountHolderCapability given an JSON string * * @param jsonString JSON string * @return An instance of AccountHolderCapability - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AccountHolderCapability + * @throws JsonProcessingException if the JSON string is invalid with respect to AccountHolderCapability */ public static AccountHolderCapability fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountHolderCapability.class); } - - /** - * Convert an instance of AccountHolderCapability to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AccountHolderCapability to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/AccountHolderInfo.java b/src/main/java/com/adyen/model/balanceplatform/AccountHolderInfo.java index 873291221..516af05d0 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AccountHolderInfo.java +++ b/src/main/java/com/adyen/model/balanceplatform/AccountHolderInfo.java @@ -2,25 +2,35 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.AccountHolderCapability; +import com.adyen.model.balanceplatform.ContactDetails; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** AccountHolderInfo */ +/** + * AccountHolderInfo + */ @JsonPropertyOrder({ AccountHolderInfo.JSON_PROPERTY_BALANCE_PLATFORM, AccountHolderInfo.JSON_PROPERTY_CAPABILITIES, @@ -32,6 +42,7 @@ AccountHolderInfo.JSON_PROPERTY_REFERENCE, AccountHolderInfo.JSON_PROPERTY_TIME_ZONE }) + public class AccountHolderInfo { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; @@ -40,7 +51,7 @@ public class AccountHolderInfo { private Map capabilities; public static final String JSON_PROPERTY_CONTACT_DETAILS = "contactDetails"; - @Deprecated // deprecated + @Deprecated // deprecated private ContactDetails contactDetails; public static final String JSON_PROPERTY_DESCRIPTION = "description"; @@ -52,8 +63,7 @@ public class AccountHolderInfo { public static final String JSON_PROPERTY_METADATA = "metadata"; private Map metadata; - public static final String JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE = - "migratedAccountHolderCode"; + public static final String JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE = "migratedAccountHolderCode"; private String migratedAccountHolderCode; public static final String JSON_PROPERTY_REFERENCE = "reference"; @@ -62,25 +72,21 @@ public class AccountHolderInfo { public static final String JSON_PROPERTY_TIME_ZONE = "timeZone"; private String timeZone; - public AccountHolderInfo() {} + public AccountHolderInfo() { + } @JsonCreator public AccountHolderInfo( - @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE) String migratedAccountHolderCode) { + @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE) String migratedAccountHolderCode + ) { this(); this.migratedAccountHolderCode = migratedAccountHolderCode; } /** - * The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the account holder belongs. Required in the request if your API credentials can be - * used for multiple balance platforms. + * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. * - * @param balancePlatform The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the account holder belongs. Required in the request if your API credentials can be - * used for multiple balance platforms. + * @param balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. * @return the current {@code AccountHolderInfo} instance, allowing for method chaining */ public AccountHolderInfo balancePlatform(String balancePlatform) { @@ -89,15 +95,8 @@ public AccountHolderInfo balancePlatform(String balancePlatform) { } /** - * The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the account holder belongs. Required in the request if your API credentials can be - * used for multiple balance platforms. - * - * @return balancePlatform The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the account holder belongs. Required in the request if your API credentials can be - * used for multiple balance platforms. + * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. + * @return balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,15 +105,9 @@ public String getBalancePlatform() { } /** - * The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the account holder belongs. Required in the request if your API credentials can be - * used for multiple balance platforms. + * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. * - * @param balancePlatform The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the account holder belongs. Required in the request if your API credentials can be - * used for multiple balance platforms. + * @param balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,14 +116,9 @@ public void setBalancePlatform(String balancePlatform) { } /** - * Contains key-value pairs that specify the actions that an account holder can do in your - * platform. The key is a capability required for your integration. For example, **issueCard** for - * Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that an account holder - * can do in your platform. The key is a capability required for your integration. For - * example, **issueCard** for Issuing. The value is an object containing the settings for the - * capability. + * @param capabilities Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. * @return the current {@code AccountHolderInfo} instance, allowing for method chaining */ public AccountHolderInfo capabilities(Map capabilities) { @@ -138,8 +126,7 @@ public AccountHolderInfo capabilities(Map capab return this; } - public AccountHolderInfo putCapabilitiesItem( - String key, AccountHolderCapability capabilitiesItem) { + public AccountHolderInfo putCapabilitiesItem(String key, AccountHolderCapability capabilitiesItem) { if (this.capabilities == null) { this.capabilities = new HashMap<>(); } @@ -148,14 +135,8 @@ public AccountHolderInfo putCapabilitiesItem( } /** - * Contains key-value pairs that specify the actions that an account holder can do in your - * platform. The key is a capability required for your integration. For example, **issueCard** for - * Issuing. The value is an object containing the settings for the capability. - * - * @return capabilities Contains key-value pairs that specify the actions that an account holder - * can do in your platform. The key is a capability required for your integration. For - * example, **issueCard** for Issuing. The value is an object containing the settings for the - * capability. + * Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * @return capabilities Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -164,14 +145,9 @@ public Map getCapabilities() { } /** - * Contains key-value pairs that specify the actions that an account holder can do in your - * platform. The key is a capability required for your integration. For example, **issueCard** for - * Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that an account holder - * can do in your platform. The key is a capability required for your integration. For - * example, **issueCard** for Issuing. The value is an object containing the settings for the - * capability. + * @param capabilities Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,11 +158,12 @@ public void setCapabilities(Map capabilities) { /** * contactDetails * - * @param contactDetails + * @param contactDetails * @return the current {@code AccountHolderInfo} instance, allowing for method chaining - * @deprecated + * + * @deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated public AccountHolderInfo contactDetails(ContactDetails contactDetails) { this.contactDetails = contactDetails; return this; @@ -194,11 +171,10 @@ public AccountHolderInfo contactDetails(ContactDetails contactDetails) { /** * Get contactDetails - * - * @return contactDetails - * @deprecated // deprecated + * @return contactDetails + * @deprecated // deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated @JsonProperty(JSON_PROPERTY_CONTACT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ContactDetails getContactDetails() { @@ -208,10 +184,11 @@ public ContactDetails getContactDetails() { /** * contactDetails * - * @param contactDetails - * @deprecated + * @param contactDetails + * + * @deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated @JsonProperty(JSON_PROPERTY_CONTACT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setContactDetails(ContactDetails contactDetails) { @@ -231,7 +208,6 @@ public AccountHolderInfo description(String description) { /** * Your description for the account holder. - * * @return description Your description for the account holder. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -252,15 +228,9 @@ public void setDescription(String description) { } /** - * The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) - * associated with the account holder. Adyen performs a verification process against the legal - * entity of the account holder. + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. * - * @param legalEntityId The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) - * associated with the account holder. Adyen performs a verification process against the legal - * entity of the account holder. + * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. * @return the current {@code AccountHolderInfo} instance, allowing for method chaining */ public AccountHolderInfo legalEntityId(String legalEntityId) { @@ -269,15 +239,8 @@ public AccountHolderInfo legalEntityId(String legalEntityId) { } /** - * The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) - * associated with the account holder. Adyen performs a verification process against the legal - * entity of the account holder. - * - * @return legalEntityId The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) - * associated with the account holder. Adyen performs a verification process against the legal - * entity of the account holder. + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. + * @return legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -286,15 +249,9 @@ public String getLegalEntityId() { } /** - * The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) - * associated with the account holder. Adyen performs a verification process against the legal - * entity of the account holder. + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. * - * @param legalEntityId The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) - * associated with the account holder. Adyen performs a verification process against the legal - * entity of the account holder. + * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -303,14 +260,9 @@ public void setLegalEntityId(String legalEntityId) { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be - * used for storing miscellaneous data as desired. > Note that during an update of metadata, - * the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific - * names and may be used for storing miscellaneous data as desired. > Note that during an - * update of metadata, the omission of existing key-value pairs will result in the deletion of - * those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. * @return the current {@code AccountHolderInfo} instance, allowing for method chaining */ public AccountHolderInfo metadata(Map metadata) { @@ -327,14 +279,8 @@ public AccountHolderInfo putMetadataItem(String key, String metadataItem) { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be - * used for storing miscellaneous data as desired. > Note that during an update of metadata, - * the omission of existing key-value pairs will result in the deletion of those key-value pairs. - * - * @return metadata A set of key and value pairs for general use. The keys do not have specific - * names and may be used for storing miscellaneous data as desired. > Note that during an - * update of metadata, the omission of existing key-value pairs will result in the deletion of - * those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * @return metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -343,14 +289,9 @@ public Map getMetadata() { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be - * used for storing miscellaneous data as desired. > Note that during an update of metadata, - * the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific - * names and may be used for storing miscellaneous data as desired. > Note that during an - * update of metadata, the omission of existing key-value pairs will result in the deletion of - * those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -360,9 +301,7 @@ public void setMetadata(Map metadata) { /** * The unique identifier of the migrated account holder in the classic integration. - * - * @return migratedAccountHolderCode The unique identifier of the migrated account holder in the - * classic integration. + * @return migratedAccountHolderCode The unique identifier of the migrated account holder in the classic integration. */ @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -370,6 +309,7 @@ public String getMigratedAccountHolderCode() { return migratedAccountHolderCode; } + /** * Your reference for the account holder. * @@ -383,7 +323,6 @@ public AccountHolderInfo reference(String reference) { /** * Your reference for the account holder. - * * @return reference Your reference for the account holder. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -404,14 +343,9 @@ public void setReference(String reference) { } /** - * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time - * zone of the balance platform if no time zone is set. For possible values, see the [list of time - * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. - * Defaults to the time zone of the balance platform if no time zone is set. For possible - * values, see the [list of time zone - * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * @return the current {@code AccountHolderInfo} instance, allowing for method chaining */ public AccountHolderInfo timeZone(String timeZone) { @@ -420,14 +354,8 @@ public AccountHolderInfo timeZone(String timeZone) { } /** - * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time - * zone of the balance platform if no time zone is set. For possible values, see the [list of time - * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). - * - * @return timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. - * Defaults to the time zone of the balance platform if no time zone is set. For possible - * values, see the [list of time zone - * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @return timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -436,14 +364,9 @@ public String getTimeZone() { } /** - * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time - * zone of the balance platform if no time zone is set. For possible values, see the [list of time - * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. - * Defaults to the time zone of the balance platform if no time zone is set. For possible - * values, see the [list of time zone - * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -451,7 +374,9 @@ public void setTimeZone(String timeZone) { this.timeZone = timeZone; } - /** Return true if this AccountHolderInfo object is equal to o. */ + /** + * Return true if this AccountHolderInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -461,30 +386,20 @@ public boolean equals(Object o) { return false; } AccountHolderInfo accountHolderInfo = (AccountHolderInfo) o; - return Objects.equals(this.balancePlatform, accountHolderInfo.balancePlatform) - && Objects.equals(this.capabilities, accountHolderInfo.capabilities) - && Objects.equals(this.contactDetails, accountHolderInfo.contactDetails) - && Objects.equals(this.description, accountHolderInfo.description) - && Objects.equals(this.legalEntityId, accountHolderInfo.legalEntityId) - && Objects.equals(this.metadata, accountHolderInfo.metadata) - && Objects.equals( - this.migratedAccountHolderCode, accountHolderInfo.migratedAccountHolderCode) - && Objects.equals(this.reference, accountHolderInfo.reference) - && Objects.equals(this.timeZone, accountHolderInfo.timeZone); + return Objects.equals(this.balancePlatform, accountHolderInfo.balancePlatform) && + Objects.equals(this.capabilities, accountHolderInfo.capabilities) && + Objects.equals(this.contactDetails, accountHolderInfo.contactDetails) && + Objects.equals(this.description, accountHolderInfo.description) && + Objects.equals(this.legalEntityId, accountHolderInfo.legalEntityId) && + Objects.equals(this.metadata, accountHolderInfo.metadata) && + Objects.equals(this.migratedAccountHolderCode, accountHolderInfo.migratedAccountHolderCode) && + Objects.equals(this.reference, accountHolderInfo.reference) && + Objects.equals(this.timeZone, accountHolderInfo.timeZone); } @Override public int hashCode() { - return Objects.hash( - balancePlatform, - capabilities, - contactDetails, - description, - legalEntityId, - metadata, - migratedAccountHolderCode, - reference, - timeZone); + return Objects.hash(balancePlatform, capabilities, contactDetails, description, legalEntityId, metadata, migratedAccountHolderCode, reference, timeZone); } @Override @@ -497,9 +412,7 @@ public String toString() { sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" legalEntityId: ").append(toIndentedString(legalEntityId)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" migratedAccountHolderCode: ") - .append(toIndentedString(migratedAccountHolderCode)) - .append("\n"); + sb.append(" migratedAccountHolderCode: ").append(toIndentedString(migratedAccountHolderCode)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); sb.append("}"); @@ -507,7 +420,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -516,7 +430,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AccountHolderInfo given an JSON string * * @param jsonString JSON string @@ -526,12 +440,11 @@ private String toIndentedString(Object o) { public static AccountHolderInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountHolderInfo.class); } - - /** - * Convert an instance of AccountHolderInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AccountHolderInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/AccountHolderUpdateRequest.java b/src/main/java/com/adyen/model/balanceplatform/AccountHolderUpdateRequest.java index 48260784d..e2118a839 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AccountHolderUpdateRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/AccountHolderUpdateRequest.java @@ -2,29 +2,38 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.AccountHolderCapability; +import com.adyen.model.balanceplatform.ContactDetails; +import com.adyen.model.balanceplatform.VerificationDeadline; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** AccountHolderUpdateRequest */ +/** + * AccountHolderUpdateRequest + */ @JsonPropertyOrder({ AccountHolderUpdateRequest.JSON_PROPERTY_BALANCE_PLATFORM, AccountHolderUpdateRequest.JSON_PROPERTY_CAPABILITIES, @@ -38,6 +47,7 @@ AccountHolderUpdateRequest.JSON_PROPERTY_TIME_ZONE, AccountHolderUpdateRequest.JSON_PROPERTY_VERIFICATION_DEADLINES }) + public class AccountHolderUpdateRequest { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; @@ -46,7 +56,7 @@ public class AccountHolderUpdateRequest { private Map capabilities; public static final String JSON_PROPERTY_CONTACT_DETAILS = "contactDetails"; - @Deprecated // deprecated + @Deprecated // deprecated private ContactDetails contactDetails; public static final String JSON_PROPERTY_DESCRIPTION = "description"; @@ -55,8 +65,7 @@ public class AccountHolderUpdateRequest { public static final String JSON_PROPERTY_METADATA = "metadata"; private Map metadata; - public static final String JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE = - "migratedAccountHolderCode"; + public static final String JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE = "migratedAccountHolderCode"; private String migratedAccountHolderCode; public static final String JSON_PROPERTY_PRIMARY_BALANCE_ACCOUNT = "primaryBalanceAccount"; @@ -66,14 +75,10 @@ public class AccountHolderUpdateRequest { private String reference; /** - * The status of the account holder. Possible values: * **active**: The account holder is active - * and allowed to use its capabilities. This is the initial status for account holders and balance - * accounts. You can change this status to **suspended** or **closed**. * **suspended**: The - * account holder is temporarily disabled and payouts are blocked. You can change this status to - * **active** or **closed**. * **closed**: The account holder and all of its capabilities are - * permanently disabled. This is a final status and cannot be changed. + * The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. */ public enum StatusEnum { + ACTIVE(String.valueOf("active")), CLOSED(String.valueOf("closed")), @@ -85,7 +90,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -106,11 +111,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -124,28 +125,23 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_VERIFICATION_DEADLINES = "verificationDeadlines"; private List verificationDeadlines; - public AccountHolderUpdateRequest() {} + public AccountHolderUpdateRequest() { + } @JsonCreator public AccountHolderUpdateRequest( - @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE) String migratedAccountHolderCode, - @JsonProperty(JSON_PROPERTY_VERIFICATION_DEADLINES) - List verificationDeadlines) { + @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE) String migratedAccountHolderCode, + @JsonProperty(JSON_PROPERTY_VERIFICATION_DEADLINES) List verificationDeadlines + ) { this(); this.migratedAccountHolderCode = migratedAccountHolderCode; this.verificationDeadlines = verificationDeadlines; } /** - * The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the account holder belongs. Required in the request if your API credentials can be - * used for multiple balance platforms. + * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. * - * @param balancePlatform The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the account holder belongs. Required in the request if your API credentials can be - * used for multiple balance platforms. + * @param balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. * @return the current {@code AccountHolderUpdateRequest} instance, allowing for method chaining */ public AccountHolderUpdateRequest balancePlatform(String balancePlatform) { @@ -154,15 +150,8 @@ public AccountHolderUpdateRequest balancePlatform(String balancePlatform) { } /** - * The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the account holder belongs. Required in the request if your API credentials can be - * used for multiple balance platforms. - * - * @return balancePlatform The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the account holder belongs. Required in the request if your API credentials can be - * used for multiple balance platforms. + * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. + * @return balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -171,15 +160,9 @@ public String getBalancePlatform() { } /** - * The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the account holder belongs. Required in the request if your API credentials can be - * used for multiple balance platforms. + * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. * - * @param balancePlatform The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the account holder belongs. Required in the request if your API credentials can be - * used for multiple balance platforms. + * @param balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,24 +171,17 @@ public void setBalancePlatform(String balancePlatform) { } /** - * Contains key-value pairs that specify the actions that an account holder can do in your - * platform. The key is a capability required for your integration. For example, **issueCard** for - * Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that an account holder - * can do in your platform. The key is a capability required for your integration. For - * example, **issueCard** for Issuing. The value is an object containing the settings for the - * capability. + * @param capabilities Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. * @return the current {@code AccountHolderUpdateRequest} instance, allowing for method chaining */ - public AccountHolderUpdateRequest capabilities( - Map capabilities) { + public AccountHolderUpdateRequest capabilities(Map capabilities) { this.capabilities = capabilities; return this; } - public AccountHolderUpdateRequest putCapabilitiesItem( - String key, AccountHolderCapability capabilitiesItem) { + public AccountHolderUpdateRequest putCapabilitiesItem(String key, AccountHolderCapability capabilitiesItem) { if (this.capabilities == null) { this.capabilities = new HashMap<>(); } @@ -214,14 +190,8 @@ public AccountHolderUpdateRequest putCapabilitiesItem( } /** - * Contains key-value pairs that specify the actions that an account holder can do in your - * platform. The key is a capability required for your integration. For example, **issueCard** for - * Issuing. The value is an object containing the settings for the capability. - * - * @return capabilities Contains key-value pairs that specify the actions that an account holder - * can do in your platform. The key is a capability required for your integration. For - * example, **issueCard** for Issuing. The value is an object containing the settings for the - * capability. + * Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * @return capabilities Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -230,14 +200,9 @@ public Map getCapabilities() { } /** - * Contains key-value pairs that specify the actions that an account holder can do in your - * platform. The key is a capability required for your integration. For example, **issueCard** for - * Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that an account holder - * can do in your platform. The key is a capability required for your integration. For - * example, **issueCard** for Issuing. The value is an object containing the settings for the - * capability. + * @param capabilities Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -248,11 +213,12 @@ public void setCapabilities(Map capabilities) { /** * contactDetails * - * @param contactDetails + * @param contactDetails * @return the current {@code AccountHolderUpdateRequest} instance, allowing for method chaining - * @deprecated + * + * @deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated public AccountHolderUpdateRequest contactDetails(ContactDetails contactDetails) { this.contactDetails = contactDetails; return this; @@ -260,11 +226,10 @@ public AccountHolderUpdateRequest contactDetails(ContactDetails contactDetails) /** * Get contactDetails - * - * @return contactDetails - * @deprecated // deprecated + * @return contactDetails + * @deprecated // deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated @JsonProperty(JSON_PROPERTY_CONTACT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ContactDetails getContactDetails() { @@ -274,10 +239,11 @@ public ContactDetails getContactDetails() { /** * contactDetails * - * @param contactDetails - * @deprecated + * @param contactDetails + * + * @deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated @JsonProperty(JSON_PROPERTY_CONTACT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setContactDetails(ContactDetails contactDetails) { @@ -297,7 +263,6 @@ public AccountHolderUpdateRequest description(String description) { /** * Your description for the account holder. - * * @return description Your description for the account holder. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -318,14 +283,9 @@ public void setDescription(String description) { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be - * used for storing miscellaneous data as desired. > Note that during an update of metadata, - * the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific - * names and may be used for storing miscellaneous data as desired. > Note that during an - * update of metadata, the omission of existing key-value pairs will result in the deletion of - * those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. * @return the current {@code AccountHolderUpdateRequest} instance, allowing for method chaining */ public AccountHolderUpdateRequest metadata(Map metadata) { @@ -342,14 +302,8 @@ public AccountHolderUpdateRequest putMetadataItem(String key, String metadataIte } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be - * used for storing miscellaneous data as desired. > Note that during an update of metadata, - * the omission of existing key-value pairs will result in the deletion of those key-value pairs. - * - * @return metadata A set of key and value pairs for general use. The keys do not have specific - * names and may be used for storing miscellaneous data as desired. > Note that during an - * update of metadata, the omission of existing key-value pairs will result in the deletion of - * those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * @return metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -358,14 +312,9 @@ public Map getMetadata() { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be - * used for storing miscellaneous data as desired. > Note that during an update of metadata, - * the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific - * names and may be used for storing miscellaneous data as desired. > Note that during an - * update of metadata, the omission of existing key-value pairs will result in the deletion of - * those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -375,9 +324,7 @@ public void setMetadata(Map metadata) { /** * The unique identifier of the migrated account holder in the classic integration. - * - * @return migratedAccountHolderCode The unique identifier of the migrated account holder in the - * classic integration. + * @return migratedAccountHolderCode The unique identifier of the migrated account holder in the classic integration. */ @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -385,14 +332,11 @@ public String getMigratedAccountHolderCode() { return migratedAccountHolderCode; } + /** - * The ID of the account holder's primary balance account. By default, this is set to the - * first balance account that you create for the account holder. To assign a different balance - * account, send a PATCH request. + * The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. * - * @param primaryBalanceAccount The ID of the account holder's primary balance account. By - * default, this is set to the first balance account that you create for the account holder. - * To assign a different balance account, send a PATCH request. + * @param primaryBalanceAccount The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. * @return the current {@code AccountHolderUpdateRequest} instance, allowing for method chaining */ public AccountHolderUpdateRequest primaryBalanceAccount(String primaryBalanceAccount) { @@ -401,13 +345,8 @@ public AccountHolderUpdateRequest primaryBalanceAccount(String primaryBalanceAcc } /** - * The ID of the account holder's primary balance account. By default, this is set to the - * first balance account that you create for the account holder. To assign a different balance - * account, send a PATCH request. - * - * @return primaryBalanceAccount The ID of the account holder's primary balance account. By - * default, this is set to the first balance account that you create for the account holder. - * To assign a different balance account, send a PATCH request. + * The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. + * @return primaryBalanceAccount The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. */ @JsonProperty(JSON_PROPERTY_PRIMARY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -416,13 +355,9 @@ public String getPrimaryBalanceAccount() { } /** - * The ID of the account holder's primary balance account. By default, this is set to the - * first balance account that you create for the account holder. To assign a different balance - * account, send a PATCH request. + * The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. * - * @param primaryBalanceAccount The ID of the account holder's primary balance account. By - * default, this is set to the first balance account that you create for the account holder. - * To assign a different balance account, send a PATCH request. + * @param primaryBalanceAccount The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. */ @JsonProperty(JSON_PROPERTY_PRIMARY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -443,7 +378,6 @@ public AccountHolderUpdateRequest reference(String reference) { /** * Your reference for the account holder. - * * @return reference Your reference for the account holder. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -464,20 +398,9 @@ public void setReference(String reference) { } /** - * The status of the account holder. Possible values: * **active**: The account holder is active - * and allowed to use its capabilities. This is the initial status for account holders and balance - * accounts. You can change this status to **suspended** or **closed**. * **suspended**: The - * account holder is temporarily disabled and payouts are blocked. You can change this status to - * **active** or **closed**. * **closed**: The account holder and all of its capabilities are - * permanently disabled. This is a final status and cannot be changed. + * The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. * - * @param status The status of the account holder. Possible values: * **active**: The account - * holder is active and allowed to use its capabilities. This is the initial status for - * account holders and balance accounts. You can change this status to **suspended** or - * **closed**. * **suspended**: The account holder is temporarily disabled and payouts are - * blocked. You can change this status to **active** or **closed**. * **closed**: The account - * holder and all of its capabilities are permanently disabled. This is a final status and - * cannot be changed. + * @param status The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. * @return the current {@code AccountHolderUpdateRequest} instance, allowing for method chaining */ public AccountHolderUpdateRequest status(StatusEnum status) { @@ -486,20 +409,8 @@ public AccountHolderUpdateRequest status(StatusEnum status) { } /** - * The status of the account holder. Possible values: * **active**: The account holder is active - * and allowed to use its capabilities. This is the initial status for account holders and balance - * accounts. You can change this status to **suspended** or **closed**. * **suspended**: The - * account holder is temporarily disabled and payouts are blocked. You can change this status to - * **active** or **closed**. * **closed**: The account holder and all of its capabilities are - * permanently disabled. This is a final status and cannot be changed. - * - * @return status The status of the account holder. Possible values: * **active**: The account - * holder is active and allowed to use its capabilities. This is the initial status for - * account holders and balance accounts. You can change this status to **suspended** or - * **closed**. * **suspended**: The account holder is temporarily disabled and payouts are - * blocked. You can change this status to **active** or **closed**. * **closed**: The account - * holder and all of its capabilities are permanently disabled. This is a final status and - * cannot be changed. + * The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. + * @return status The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -508,20 +419,9 @@ public StatusEnum getStatus() { } /** - * The status of the account holder. Possible values: * **active**: The account holder is active - * and allowed to use its capabilities. This is the initial status for account holders and balance - * accounts. You can change this status to **suspended** or **closed**. * **suspended**: The - * account holder is temporarily disabled and payouts are blocked. You can change this status to - * **active** or **closed**. * **closed**: The account holder and all of its capabilities are - * permanently disabled. This is a final status and cannot be changed. + * The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. * - * @param status The status of the account holder. Possible values: * **active**: The account - * holder is active and allowed to use its capabilities. This is the initial status for - * account holders and balance accounts. You can change this status to **suspended** or - * **closed**. * **suspended**: The account holder is temporarily disabled and payouts are - * blocked. You can change this status to **active** or **closed**. * **closed**: The account - * holder and all of its capabilities are permanently disabled. This is a final status and - * cannot be changed. + * @param status The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -530,14 +430,9 @@ public void setStatus(StatusEnum status) { } /** - * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time - * zone of the balance platform if no time zone is set. For possible values, see the [list of time - * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. - * Defaults to the time zone of the balance platform if no time zone is set. For possible - * values, see the [list of time zone - * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * @return the current {@code AccountHolderUpdateRequest} instance, allowing for method chaining */ public AccountHolderUpdateRequest timeZone(String timeZone) { @@ -546,14 +441,8 @@ public AccountHolderUpdateRequest timeZone(String timeZone) { } /** - * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time - * zone of the balance platform if no time zone is set. For possible values, see the [list of time - * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). - * - * @return timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. - * Defaults to the time zone of the balance platform if no time zone is set. For possible - * values, see the [list of time zone - * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @return timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -562,14 +451,9 @@ public String getTimeZone() { } /** - * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time - * zone of the balance platform if no time zone is set. For possible values, see the [list of time - * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. - * Defaults to the time zone of the balance platform if no time zone is set. For possible - * values, see the [list of time zone - * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -578,11 +462,8 @@ public void setTimeZone(String timeZone) { } /** - * List of verification deadlines and the capabilities that will be disallowed if verification - * errors are not resolved. - * - * @return verificationDeadlines List of verification deadlines and the capabilities that will be - * disallowed if verification errors are not resolved. + * List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. + * @return verificationDeadlines List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_DEADLINES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -590,7 +471,10 @@ public List getVerificationDeadlines() { return verificationDeadlines; } - /** Return true if this AccountHolderUpdateRequest object is equal to o. */ + + /** + * Return true if this AccountHolderUpdateRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -600,36 +484,22 @@ public boolean equals(Object o) { return false; } AccountHolderUpdateRequest accountHolderUpdateRequest = (AccountHolderUpdateRequest) o; - return Objects.equals(this.balancePlatform, accountHolderUpdateRequest.balancePlatform) - && Objects.equals(this.capabilities, accountHolderUpdateRequest.capabilities) - && Objects.equals(this.contactDetails, accountHolderUpdateRequest.contactDetails) - && Objects.equals(this.description, accountHolderUpdateRequest.description) - && Objects.equals(this.metadata, accountHolderUpdateRequest.metadata) - && Objects.equals( - this.migratedAccountHolderCode, accountHolderUpdateRequest.migratedAccountHolderCode) - && Objects.equals( - this.primaryBalanceAccount, accountHolderUpdateRequest.primaryBalanceAccount) - && Objects.equals(this.reference, accountHolderUpdateRequest.reference) - && Objects.equals(this.status, accountHolderUpdateRequest.status) - && Objects.equals(this.timeZone, accountHolderUpdateRequest.timeZone) - && Objects.equals( - this.verificationDeadlines, accountHolderUpdateRequest.verificationDeadlines); + return Objects.equals(this.balancePlatform, accountHolderUpdateRequest.balancePlatform) && + Objects.equals(this.capabilities, accountHolderUpdateRequest.capabilities) && + Objects.equals(this.contactDetails, accountHolderUpdateRequest.contactDetails) && + Objects.equals(this.description, accountHolderUpdateRequest.description) && + Objects.equals(this.metadata, accountHolderUpdateRequest.metadata) && + Objects.equals(this.migratedAccountHolderCode, accountHolderUpdateRequest.migratedAccountHolderCode) && + Objects.equals(this.primaryBalanceAccount, accountHolderUpdateRequest.primaryBalanceAccount) && + Objects.equals(this.reference, accountHolderUpdateRequest.reference) && + Objects.equals(this.status, accountHolderUpdateRequest.status) && + Objects.equals(this.timeZone, accountHolderUpdateRequest.timeZone) && + Objects.equals(this.verificationDeadlines, accountHolderUpdateRequest.verificationDeadlines); } @Override public int hashCode() { - return Objects.hash( - balancePlatform, - capabilities, - contactDetails, - description, - metadata, - migratedAccountHolderCode, - primaryBalanceAccount, - reference, - status, - timeZone, - verificationDeadlines); + return Objects.hash(balancePlatform, capabilities, contactDetails, description, metadata, migratedAccountHolderCode, primaryBalanceAccount, reference, status, timeZone, verificationDeadlines); } @Override @@ -641,24 +511,19 @@ public String toString() { sb.append(" contactDetails: ").append(toIndentedString(contactDetails)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" migratedAccountHolderCode: ") - .append(toIndentedString(migratedAccountHolderCode)) - .append("\n"); - sb.append(" primaryBalanceAccount: ") - .append(toIndentedString(primaryBalanceAccount)) - .append("\n"); + sb.append(" migratedAccountHolderCode: ").append(toIndentedString(migratedAccountHolderCode)).append("\n"); + sb.append(" primaryBalanceAccount: ").append(toIndentedString(primaryBalanceAccount)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); - sb.append(" verificationDeadlines: ") - .append(toIndentedString(verificationDeadlines)) - .append("\n"); + sb.append(" verificationDeadlines: ").append(toIndentedString(verificationDeadlines)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -667,24 +532,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AccountHolderUpdateRequest given an JSON string * * @param jsonString JSON string * @return An instance of AccountHolderUpdateRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AccountHolderUpdateRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to AccountHolderUpdateRequest */ - public static AccountHolderUpdateRequest fromJson(String jsonString) - throws JsonProcessingException { + public static AccountHolderUpdateRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountHolderUpdateRequest.class); } - - /** - * Convert an instance of AccountHolderUpdateRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AccountHolderUpdateRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/AccountSupportingEntityCapability.java b/src/main/java/com/adyen/model/balanceplatform/AccountSupportingEntityCapability.java index 9344d2af8..d1d795c9b 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AccountSupportingEntityCapability.java +++ b/src/main/java/com/adyen/model/balanceplatform/AccountSupportingEntityCapability.java @@ -2,26 +2,31 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** AccountSupportingEntityCapability */ +/** + * AccountSupportingEntityCapability + */ @JsonPropertyOrder({ AccountSupportingEntityCapability.JSON_PROPERTY_ALLOWED, AccountSupportingEntityCapability.JSON_PROPERTY_ALLOWED_LEVEL, @@ -31,15 +36,16 @@ AccountSupportingEntityCapability.JSON_PROPERTY_REQUESTED_LEVEL, AccountSupportingEntityCapability.JSON_PROPERTY_VERIFICATION_STATUS }) + public class AccountSupportingEntityCapability { public static final String JSON_PROPERTY_ALLOWED = "allowed"; private Boolean allowed; /** - * The capability level that is allowed for the account holder. Possible values: - * **notApplicable**, **low**, **medium**, **high**. + * The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. */ public enum AllowedLevelEnum { + HIGH(String.valueOf("high")), LOW(String.valueOf("low")), @@ -53,7 +59,7 @@ public enum AllowedLevelEnum { private String value; AllowedLevelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -74,11 +80,7 @@ public static AllowedLevelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AllowedLevelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AllowedLevelEnum.values())); + LOG.warning("AllowedLevelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AllowedLevelEnum.values())); return null; } } @@ -96,12 +98,10 @@ public static AllowedLevelEnum fromValue(String value) { private Boolean requested; /** - * The requested level of the capability. Some capabilities, such as those used in [card - * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different - * levels. Levels increase the capability, but also require additional checks and increased - * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. */ public enum RequestedLevelEnum { + HIGH(String.valueOf("high")), LOW(String.valueOf("low")), @@ -115,7 +115,7 @@ public enum RequestedLevelEnum { private String value; RequestedLevelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -136,11 +136,7 @@ public static RequestedLevelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "RequestedLevelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(RequestedLevelEnum.values())); + LOG.warning("RequestedLevelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RequestedLevelEnum.values())); return null; } } @@ -149,13 +145,10 @@ public static RequestedLevelEnum fromValue(String value) { private RequestedLevelEnum requestedLevel; /** - * The status of the verification checks for the supporting entity capability. Possible values: * - * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check - * if the `errors` array contains more information. * **valid**: The verification has - * been successfully completed. * **rejected**: Adyen has verified the information, but found - * reasons to not allow the capability. + * The status of the verification checks for the supporting entity capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. */ public enum VerificationStatusEnum { + INVALID(String.valueOf("invalid")), PENDING(String.valueOf("pending")), @@ -169,7 +162,7 @@ public enum VerificationStatusEnum { private String value; VerificationStatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -190,11 +183,7 @@ public static VerificationStatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "VerificationStatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(VerificationStatusEnum.values())); + LOG.warning("VerificationStatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(VerificationStatusEnum.values())); return null; } } @@ -202,14 +191,16 @@ public static VerificationStatusEnum fromValue(String value) { public static final String JSON_PROPERTY_VERIFICATION_STATUS = "verificationStatus"; private VerificationStatusEnum verificationStatus; - public AccountSupportingEntityCapability() {} + public AccountSupportingEntityCapability() { + } @JsonCreator public AccountSupportingEntityCapability( - @JsonProperty(JSON_PROPERTY_ALLOWED) Boolean allowed, - @JsonProperty(JSON_PROPERTY_ALLOWED_LEVEL) AllowedLevelEnum allowedLevel, - @JsonProperty(JSON_PROPERTY_ID) String id, - @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) VerificationStatusEnum verificationStatus) { + @JsonProperty(JSON_PROPERTY_ALLOWED) Boolean allowed, + @JsonProperty(JSON_PROPERTY_ALLOWED_LEVEL) AllowedLevelEnum allowedLevel, + @JsonProperty(JSON_PROPERTY_ID) String id, + @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) VerificationStatusEnum verificationStatus + ) { this(); this.allowed = allowed; this.allowedLevel = allowedLevel; @@ -218,12 +209,8 @@ public AccountSupportingEntityCapability( } /** - * Indicates whether the supporting entity capability is allowed. Adyen sets this to **true** if - * the verification is successful and the account holder is permitted to use the capability. - * - * @return allowed Indicates whether the supporting entity capability is allowed. Adyen sets this - * to **true** if the verification is successful and the account holder is permitted to use - * the capability. + * Indicates whether the supporting entity capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. + * @return allowed Indicates whether the supporting entity capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. */ @JsonProperty(JSON_PROPERTY_ALLOWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -231,12 +218,10 @@ public Boolean getAllowed() { return allowed; } + /** - * The capability level that is allowed for the account holder. Possible values: - * **notApplicable**, **low**, **medium**, **high**. - * - * @return allowedLevel The capability level that is allowed for the account holder. Possible - * values: **notApplicable**, **low**, **medium**, **high**. + * The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. + * @return allowedLevel The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. */ @JsonProperty(JSON_PROPERTY_ALLOWED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,14 +229,12 @@ public AllowedLevelEnum getAllowedLevel() { return allowedLevel; } + /** - * Indicates whether the capability is enabled. If **false**, the capability is temporarily - * disabled for the account holder. + * Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. * - * @param enabled Indicates whether the capability is enabled. If **false**, the capability is - * temporarily disabled for the account holder. - * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method - * chaining + * @param enabled Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. + * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method chaining */ public AccountSupportingEntityCapability enabled(Boolean enabled) { this.enabled = enabled; @@ -259,11 +242,8 @@ public AccountSupportingEntityCapability enabled(Boolean enabled) { } /** - * Indicates whether the capability is enabled. If **false**, the capability is temporarily - * disabled for the account holder. - * - * @return enabled Indicates whether the capability is enabled. If **false**, the capability is - * temporarily disabled for the account holder. + * Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. + * @return enabled Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -272,11 +252,9 @@ public Boolean getEnabled() { } /** - * Indicates whether the capability is enabled. If **false**, the capability is temporarily - * disabled for the account holder. + * Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. * - * @param enabled Indicates whether the capability is enabled. If **false**, the capability is - * temporarily disabled for the account holder. + * @param enabled Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -286,7 +264,6 @@ public void setEnabled(Boolean enabled) { /** * The ID of the supporting entity. - * * @return id The ID of the supporting entity. */ @JsonProperty(JSON_PROPERTY_ID) @@ -295,14 +272,12 @@ public String getId() { return id; } + /** - * Indicates whether the capability is requested. To check whether the account holder is permitted - * to use the capability, refer to the `allowed` field. + * Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. * - * @param requested Indicates whether the capability is requested. To check whether the account - * holder is permitted to use the capability, refer to the `allowed` field. - * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method - * chaining + * @param requested Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. + * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method chaining */ public AccountSupportingEntityCapability requested(Boolean requested) { this.requested = requested; @@ -310,11 +285,8 @@ public AccountSupportingEntityCapability requested(Boolean requested) { } /** - * Indicates whether the capability is requested. To check whether the account holder is permitted - * to use the capability, refer to the `allowed` field. - * - * @return requested Indicates whether the capability is requested. To check whether the account - * holder is permitted to use the capability, refer to the `allowed` field. + * Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. + * @return requested Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. */ @JsonProperty(JSON_PROPERTY_REQUESTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -323,11 +295,9 @@ public Boolean getRequested() { } /** - * Indicates whether the capability is requested. To check whether the account holder is permitted - * to use the capability, refer to the `allowed` field. + * Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. * - * @param requested Indicates whether the capability is requested. To check whether the account - * holder is permitted to use the capability, refer to the `allowed` field. + * @param requested Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. */ @JsonProperty(JSON_PROPERTY_REQUESTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -336,18 +306,10 @@ public void setRequested(Boolean requested) { } /** - * The requested level of the capability. Some capabilities, such as those used in [card - * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different - * levels. Levels increase the capability, but also require additional checks and increased - * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. * - * @param requestedLevel The requested level of the capability. Some capabilities, such as those - * used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), - * have different levels. Levels increase the capability, but also require additional checks - * and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, - * **high**. - * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method - * chaining + * @param requestedLevel The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method chaining */ public AccountSupportingEntityCapability requestedLevel(RequestedLevelEnum requestedLevel) { this.requestedLevel = requestedLevel; @@ -355,16 +317,8 @@ public AccountSupportingEntityCapability requestedLevel(RequestedLevelEnum reque } /** - * The requested level of the capability. Some capabilities, such as those used in [card - * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different - * levels. Levels increase the capability, but also require additional checks and increased - * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. - * - * @return requestedLevel The requested level of the capability. Some capabilities, such as those - * used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), - * have different levels. Levels increase the capability, but also require additional checks - * and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, - * **high**. + * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * @return requestedLevel The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. */ @JsonProperty(JSON_PROPERTY_REQUESTED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -373,16 +327,9 @@ public RequestedLevelEnum getRequestedLevel() { } /** - * The requested level of the capability. Some capabilities, such as those used in [card - * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different - * levels. Levels increase the capability, but also require additional checks and increased - * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. * - * @param requestedLevel The requested level of the capability. Some capabilities, such as those - * used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), - * have different levels. Levels increase the capability, but also require additional checks - * and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, - * **high**. + * @param requestedLevel The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. */ @JsonProperty(JSON_PROPERTY_REQUESTED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -391,17 +338,8 @@ public void setRequestedLevel(RequestedLevelEnum requestedLevel) { } /** - * The status of the verification checks for the supporting entity capability. Possible values: * - * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check - * if the `errors` array contains more information. * **valid**: The verification has - * been successfully completed. * **rejected**: Adyen has verified the information, but found - * reasons to not allow the capability. - * - * @return verificationStatus The status of the verification checks for the supporting entity - * capability. Possible values: * **pending**: Adyen is running the verification. * - * **invalid**: The verification failed. Check if the `errors` array contains more - * information. * **valid**: The verification has been successfully completed. * **rejected**: - * Adyen has verified the information, but found reasons to not allow the capability. + * The status of the verification checks for the supporting entity capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. + * @return verificationStatus The status of the verification checks for the supporting entity capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -409,7 +347,10 @@ public VerificationStatusEnum getVerificationStatus() { return verificationStatus; } - /** Return true if this AccountSupportingEntityCapability object is equal to o. */ + + /** + * Return true if this AccountSupportingEntityCapability object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -418,22 +359,19 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AccountSupportingEntityCapability accountSupportingEntityCapability = - (AccountSupportingEntityCapability) o; - return Objects.equals(this.allowed, accountSupportingEntityCapability.allowed) - && Objects.equals(this.allowedLevel, accountSupportingEntityCapability.allowedLevel) - && Objects.equals(this.enabled, accountSupportingEntityCapability.enabled) - && Objects.equals(this.id, accountSupportingEntityCapability.id) - && Objects.equals(this.requested, accountSupportingEntityCapability.requested) - && Objects.equals(this.requestedLevel, accountSupportingEntityCapability.requestedLevel) - && Objects.equals( - this.verificationStatus, accountSupportingEntityCapability.verificationStatus); + AccountSupportingEntityCapability accountSupportingEntityCapability = (AccountSupportingEntityCapability) o; + return Objects.equals(this.allowed, accountSupportingEntityCapability.allowed) && + Objects.equals(this.allowedLevel, accountSupportingEntityCapability.allowedLevel) && + Objects.equals(this.enabled, accountSupportingEntityCapability.enabled) && + Objects.equals(this.id, accountSupportingEntityCapability.id) && + Objects.equals(this.requested, accountSupportingEntityCapability.requested) && + Objects.equals(this.requestedLevel, accountSupportingEntityCapability.requestedLevel) && + Objects.equals(this.verificationStatus, accountSupportingEntityCapability.verificationStatus); } @Override public int hashCode() { - return Objects.hash( - allowed, allowedLevel, enabled, id, requested, requestedLevel, verificationStatus); + return Objects.hash(allowed, allowedLevel, enabled, id, requested, requestedLevel, verificationStatus); } @Override @@ -452,7 +390,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -461,24 +400,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AccountSupportingEntityCapability given an JSON string * * @param jsonString JSON string * @return An instance of AccountSupportingEntityCapability - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AccountSupportingEntityCapability + * @throws JsonProcessingException if the JSON string is invalid with respect to AccountSupportingEntityCapability */ - public static AccountSupportingEntityCapability fromJson(String jsonString) - throws JsonProcessingException { + public static AccountSupportingEntityCapability fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountSupportingEntityCapability.class); } - - /** - * Convert an instance of AccountSupportingEntityCapability to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AccountSupportingEntityCapability to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/ActiveNetworkTokensRestriction.java b/src/main/java/com/adyen/model/balanceplatform/ActiveNetworkTokensRestriction.java index 6a4f3a8f1..3c95de963 100644 --- a/src/main/java/com/adyen/model/balanceplatform/ActiveNetworkTokensRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/ActiveNetworkTokensRestriction.java @@ -2,26 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ActiveNetworkTokensRestriction */ + +/** + * ActiveNetworkTokensRestriction + */ @JsonPropertyOrder({ ActiveNetworkTokensRestriction.JSON_PROPERTY_OPERATION, ActiveNetworkTokensRestriction.JSON_PROPERTY_VALUE }) + public class ActiveNetworkTokensRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -29,14 +39,14 @@ public class ActiveNetworkTokensRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private Integer value; - public ActiveNetworkTokensRestriction() {} + public ActiveNetworkTokensRestriction() { + } /** * Defines how the condition must be evaluated. * * @param operation Defines how the condition must be evaluated. - * @return the current {@code ActiveNetworkTokensRestriction} instance, allowing for method - * chaining + * @return the current {@code ActiveNetworkTokensRestriction} instance, allowing for method chaining */ public ActiveNetworkTokensRestriction operation(String operation) { this.operation = operation; @@ -45,7 +55,6 @@ public ActiveNetworkTokensRestriction operation(String operation) { /** * Defines how the condition must be evaluated. - * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -69,8 +78,7 @@ public void setOperation(String operation) { * The number of tokens. * * @param value The number of tokens. - * @return the current {@code ActiveNetworkTokensRestriction} instance, allowing for method - * chaining + * @return the current {@code ActiveNetworkTokensRestriction} instance, allowing for method chaining */ public ActiveNetworkTokensRestriction value(Integer value) { this.value = value; @@ -79,7 +87,6 @@ public ActiveNetworkTokensRestriction value(Integer value) { /** * The number of tokens. - * * @return value The number of tokens. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -99,7 +106,9 @@ public void setValue(Integer value) { this.value = value; } - /** Return true if this ActiveNetworkTokensRestriction object is equal to o. */ + /** + * Return true if this ActiveNetworkTokensRestriction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -108,10 +117,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ActiveNetworkTokensRestriction activeNetworkTokensRestriction = - (ActiveNetworkTokensRestriction) o; - return Objects.equals(this.operation, activeNetworkTokensRestriction.operation) - && Objects.equals(this.value, activeNetworkTokensRestriction.value); + ActiveNetworkTokensRestriction activeNetworkTokensRestriction = (ActiveNetworkTokensRestriction) o; + return Objects.equals(this.operation, activeNetworkTokensRestriction.operation) && + Objects.equals(this.value, activeNetworkTokensRestriction.value); } @Override @@ -130,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -139,24 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ActiveNetworkTokensRestriction given an JSON string * * @param jsonString JSON string * @return An instance of ActiveNetworkTokensRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ActiveNetworkTokensRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to ActiveNetworkTokensRestriction */ - public static ActiveNetworkTokensRestriction fromJson(String jsonString) - throws JsonProcessingException { + public static ActiveNetworkTokensRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ActiveNetworkTokensRestriction.class); } - - /** - * Convert an instance of ActiveNetworkTokensRestriction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ActiveNetworkTokensRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/AdditionalBankIdentification.java b/src/main/java/com/adyen/model/balanceplatform/AdditionalBankIdentification.java index c28210f8c..934506f00 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AdditionalBankIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/AdditionalBankIdentification.java @@ -2,47 +2,45 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** AdditionalBankIdentification */ +/** + * AdditionalBankIdentification + */ @JsonPropertyOrder({ AdditionalBankIdentification.JSON_PROPERTY_CODE, AdditionalBankIdentification.JSON_PROPERTY_TYPE }) + public class AdditionalBankIdentification { public static final String JSON_PROPERTY_CODE = "code"; private String code; /** - * The type of additional bank identification, depending on the country. Possible values: * - * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * - * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. + * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. */ public enum TypeEnum { + AUBSBCODE(String.valueOf("auBsbCode")), CAROUTINGNUMBER(String.valueOf("caRoutingNumber")), @@ -56,7 +54,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -77,11 +75,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -89,7 +83,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AdditionalBankIdentification() {} + public AdditionalBankIdentification() { + } /** * The value of the additional bank identification. @@ -104,7 +99,6 @@ public AdditionalBankIdentification code(String code) { /** * The value of the additional bank identification. - * * @return code The value of the additional bank identification. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -125,27 +119,9 @@ public void setCode(String code) { } /** - * The type of additional bank identification, depending on the country. Possible values: * - * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * - * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. + * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. * - * @param type The type of additional bank identification, depending on the country. Possible - * values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * - * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. + * @param type The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. * @return the current {@code AdditionalBankIdentification} instance, allowing for method chaining */ public AdditionalBankIdentification type(TypeEnum type) { @@ -154,27 +130,8 @@ public AdditionalBankIdentification type(TypeEnum type) { } /** - * The type of additional bank identification, depending on the country. Possible values: * - * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * - * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. - * - * @return type The type of additional bank identification, depending on the country. Possible - * values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * - * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. + * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * @return type The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,27 +140,9 @@ public TypeEnum getType() { } /** - * The type of additional bank identification, depending on the country. Possible values: * - * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * - * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. + * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. * - * @param type The type of additional bank identification, depending on the country. Possible - * values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * - * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. + * @param type The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,7 +150,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this AdditionalBankIdentification object is equal to o. */ + /** + * Return true if this AdditionalBankIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -221,8 +162,8 @@ public boolean equals(Object o) { return false; } AdditionalBankIdentification additionalBankIdentification = (AdditionalBankIdentification) o; - return Objects.equals(this.code, additionalBankIdentification.code) - && Objects.equals(this.type, additionalBankIdentification.type); + return Objects.equals(this.code, additionalBankIdentification.code) && + Objects.equals(this.type, additionalBankIdentification.type); } @Override @@ -241,7 +182,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -250,24 +192,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalBankIdentification given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalBankIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalBankIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalBankIdentification */ - public static AdditionalBankIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static AdditionalBankIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalBankIdentification.class); } - - /** - * Convert an instance of AdditionalBankIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalBankIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/AdditionalBankIdentificationRequirement.java b/src/main/java/com/adyen/model/balanceplatform/AdditionalBankIdentificationRequirement.java index 179aea932..2d7440f35 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AdditionalBankIdentificationRequirement.java +++ b/src/main/java/com/adyen/model/balanceplatform/AdditionalBankIdentificationRequirement.java @@ -2,45 +2,43 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** AdditionalBankIdentificationRequirement */ + +/** + * AdditionalBankIdentificationRequirement + */ @JsonPropertyOrder({ AdditionalBankIdentificationRequirement.JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION_TYPE, AdditionalBankIdentificationRequirement.JSON_PROPERTY_DESCRIPTION, AdditionalBankIdentificationRequirement.JSON_PROPERTY_TYPE }) + public class AdditionalBankIdentificationRequirement { /** - * The type of additional bank identification, depending on the country. Possible values: * - * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * - * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. + * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. */ public enum AdditionalBankIdentificationTypeEnum { + AUBSBCODE(String.valueOf("auBsbCode")), CAROUTINGNUMBER(String.valueOf("caRoutingNumber")), @@ -49,13 +47,12 @@ public enum AdditionalBankIdentificationTypeEnum { USROUTINGNUMBER(String.valueOf("usRoutingNumber")); - private static final Logger LOG = - Logger.getLogger(AdditionalBankIdentificationTypeEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(AdditionalBankIdentificationTypeEnum.class.getName()); private String value; AdditionalBankIdentificationTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -76,33 +73,30 @@ public static AdditionalBankIdentificationTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AdditionalBankIdentificationTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AdditionalBankIdentificationTypeEnum.values())); + LOG.warning("AdditionalBankIdentificationTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AdditionalBankIdentificationTypeEnum.values())); return null; } } - public static final String JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION_TYPE = - "additionalBankIdentificationType"; + public static final String JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION_TYPE = "additionalBankIdentificationType"; private AdditionalBankIdentificationTypeEnum additionalBankIdentificationType; public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; - /** **additionalBankIdentificationRequirement** */ + /** + * **additionalBankIdentificationRequirement** + */ public enum TypeEnum { - ADDITIONALBANKIDENTIFICATIONREQUIREMENT( - String.valueOf("additionalBankIdentificationRequirement")); + + ADDITIONALBANKIDENTIFICATIONREQUIREMENT(String.valueOf("additionalBankIdentificationRequirement")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -123,11 +117,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -135,61 +125,23 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AdditionalBankIdentificationRequirement() {} + public AdditionalBankIdentificationRequirement() { + } /** - * The type of additional bank identification, depending on the country. Possible values: * - * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * - * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. + * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. * - * @param additionalBankIdentificationType The type of additional bank identification, depending - * on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch - * (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. - * * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. - * @return the current {@code AdditionalBankIdentificationRequirement} instance, allowing for - * method chaining + * @param additionalBankIdentificationType The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * @return the current {@code AdditionalBankIdentificationRequirement} instance, allowing for method chaining */ - public AdditionalBankIdentificationRequirement additionalBankIdentificationType( - AdditionalBankIdentificationTypeEnum additionalBankIdentificationType) { + public AdditionalBankIdentificationRequirement additionalBankIdentificationType(AdditionalBankIdentificationTypeEnum additionalBankIdentificationType) { this.additionalBankIdentificationType = additionalBankIdentificationType; return this; } /** - * The type of additional bank identification, depending on the country. Possible values: * - * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * - * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. - * - * @return additionalBankIdentificationType The type of additional bank identification, depending - * on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch - * (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. - * * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. + * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * @return additionalBankIdentificationType The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,32 +150,13 @@ public AdditionalBankIdentificationTypeEnum getAdditionalBankIdentificationType( } /** - * The type of additional bank identification, depending on the country. Possible values: * - * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * - * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. + * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. * - * @param additionalBankIdentificationType The type of additional bank identification, depending - * on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch - * (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. - * * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. + * @param additionalBankIdentificationType The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAdditionalBankIdentificationType( - AdditionalBankIdentificationTypeEnum additionalBankIdentificationType) { + public void setAdditionalBankIdentificationType(AdditionalBankIdentificationTypeEnum additionalBankIdentificationType) { this.additionalBankIdentificationType = additionalBankIdentificationType; } @@ -231,8 +164,7 @@ public void setAdditionalBankIdentificationType( * The description of the additional bank identification requirement. * * @param description The description of the additional bank identification requirement. - * @return the current {@code AdditionalBankIdentificationRequirement} instance, allowing for - * method chaining + * @return the current {@code AdditionalBankIdentificationRequirement} instance, allowing for method chaining */ public AdditionalBankIdentificationRequirement description(String description) { this.description = description; @@ -241,7 +173,6 @@ public AdditionalBankIdentificationRequirement description(String description) { /** * The description of the additional bank identification requirement. - * * @return description The description of the additional bank identification requirement. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -265,8 +196,7 @@ public void setDescription(String description) { * **additionalBankIdentificationRequirement** * * @param type **additionalBankIdentificationRequirement** - * @return the current {@code AdditionalBankIdentificationRequirement} instance, allowing for - * method chaining + * @return the current {@code AdditionalBankIdentificationRequirement} instance, allowing for method chaining */ public AdditionalBankIdentificationRequirement type(TypeEnum type) { this.type = type; @@ -275,7 +205,6 @@ public AdditionalBankIdentificationRequirement type(TypeEnum type) { /** * **additionalBankIdentificationRequirement** - * * @return type **additionalBankIdentificationRequirement** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -295,7 +224,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this AdditionalBankIdentificationRequirement object is equal to o. */ + /** + * Return true if this AdditionalBankIdentificationRequirement object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -304,13 +235,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AdditionalBankIdentificationRequirement additionalBankIdentificationRequirement = - (AdditionalBankIdentificationRequirement) o; - return Objects.equals( - this.additionalBankIdentificationType, - additionalBankIdentificationRequirement.additionalBankIdentificationType) - && Objects.equals(this.description, additionalBankIdentificationRequirement.description) - && Objects.equals(this.type, additionalBankIdentificationRequirement.type); + AdditionalBankIdentificationRequirement additionalBankIdentificationRequirement = (AdditionalBankIdentificationRequirement) o; + return Objects.equals(this.additionalBankIdentificationType, additionalBankIdentificationRequirement.additionalBankIdentificationType) && + Objects.equals(this.description, additionalBankIdentificationRequirement.description) && + Objects.equals(this.type, additionalBankIdentificationRequirement.type); } @Override @@ -322,9 +250,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalBankIdentificationRequirement {\n"); - sb.append(" additionalBankIdentificationType: ") - .append(toIndentedString(additionalBankIdentificationType)) - .append("\n"); + sb.append(" additionalBankIdentificationType: ").append(toIndentedString(additionalBankIdentificationType)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -332,7 +258,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -341,24 +268,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalBankIdentificationRequirement given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalBankIdentificationRequirement - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalBankIdentificationRequirement + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalBankIdentificationRequirement */ - public static AdditionalBankIdentificationRequirement fromJson(String jsonString) - throws JsonProcessingException { + public static AdditionalBankIdentificationRequirement fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalBankIdentificationRequirement.class); } - - /** - * Convert an instance of AdditionalBankIdentificationRequirement to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalBankIdentificationRequirement to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/Address.java b/src/main/java/com/adyen/model/balanceplatform/Address.java index 314642ec9..c5257fdee 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Address.java +++ b/src/main/java/com/adyen/model/balanceplatform/Address.java @@ -2,22 +2,31 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Address */ + +/** + * Address + */ @JsonPropertyOrder({ Address.JSON_PROPERTY_CITY, Address.JSON_PROPERTY_COUNTRY, @@ -26,6 +35,7 @@ Address.JSON_PROPERTY_STATE_OR_PROVINCE, Address.JSON_PROPERTY_STREET }) + public class Address { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -45,7 +55,8 @@ public class Address { public static final String JSON_PROPERTY_STREET = "street"; private String street; - public Address() {} + public Address() { + } /** * The name of the city. Maximum length: 3000 characters. @@ -60,7 +71,6 @@ public Address city(String city) { /** * The name of the city. Maximum length: 3000 characters. - * * @return city The name of the city. Maximum length: 3000 characters. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -81,13 +91,9 @@ public void setCity(String city) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't - * know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If - * you don't know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. * @return the current {@code Address} instance, allowing for method chaining */ public Address country(String country) { @@ -96,13 +102,8 @@ public Address country(String country) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't - * know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. - * - * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If - * you don't know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,13 +112,9 @@ public String getCountry() { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't - * know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If - * you don't know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,7 +135,6 @@ public Address houseNumberOrName(String houseNumberOrName) { /** * The number or name of the house. Maximum length: 3000 characters. - * * @return houseNumberOrName The number or name of the house. Maximum length: 3000 characters. */ @JsonProperty(JSON_PROPERTY_HOUSE_NUMBER_OR_NAME) @@ -159,11 +155,9 @@ public void setHouseNumberOrName(String houseNumberOrName) { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an - * address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. * - * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten - * characters for an address in all other countries. + * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. * @return the current {@code Address} instance, allowing for method chaining */ public Address postalCode(String postalCode) { @@ -172,11 +166,8 @@ public Address postalCode(String postalCode) { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an - * address in all other countries. - * - * @return postalCode A maximum of five digits for an address in the US, or a maximum of ten - * characters for an address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * @return postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,11 +176,9 @@ public String getPostalCode() { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an - * address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. * - * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten - * characters for an address in all other countries. + * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,11 +187,9 @@ public void setPostalCode(String postalCode) { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** - * in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. * @return the current {@code Address} instance, allowing for method chaining */ public Address stateOrProvince(String stateOrProvince) { @@ -211,11 +198,8 @@ public Address stateOrProvince(String stateOrProvince) { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. - * - * @return stateOrProvince The two-character ISO 3166-2 state or province code. For example, - * **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * @return stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,11 +208,9 @@ public String getStateOrProvince() { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** - * in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,12 +219,9 @@ public void setStateOrProvince(String stateOrProvince) { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be - * included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. * - * @param street The name of the street. Maximum length: 3000 characters. > The house number - * should not be included in this field; it should be separately provided via - * `houseNumberOrName`. + * @param street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. * @return the current {@code Address} instance, allowing for method chaining */ public Address street(String street) { @@ -251,12 +230,8 @@ public Address street(String street) { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be - * included in this field; it should be separately provided via `houseNumberOrName`. - * - * @return street The name of the street. Maximum length: 3000 characters. > The house number - * should not be included in this field; it should be separately provided via - * `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * @return street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -265,12 +240,9 @@ public String getStreet() { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be - * included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. * - * @param street The name of the street. Maximum length: 3000 characters. > The house number - * should not be included in this field; it should be separately provided via - * `houseNumberOrName`. + * @param street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -278,7 +250,9 @@ public void setStreet(String street) { this.street = street; } - /** Return true if this Address object is equal to o. */ + /** + * Return true if this Address object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -288,12 +262,12 @@ public boolean equals(Object o) { return false; } Address address = (Address) o; - return Objects.equals(this.city, address.city) - && Objects.equals(this.country, address.country) - && Objects.equals(this.houseNumberOrName, address.houseNumberOrName) - && Objects.equals(this.postalCode, address.postalCode) - && Objects.equals(this.stateOrProvince, address.stateOrProvince) - && Objects.equals(this.street, address.street); + return Objects.equals(this.city, address.city) && + Objects.equals(this.country, address.country) && + Objects.equals(this.houseNumberOrName, address.houseNumberOrName) && + Objects.equals(this.postalCode, address.postalCode) && + Objects.equals(this.stateOrProvince, address.stateOrProvince) && + Objects.equals(this.street, address.street); } @Override @@ -316,7 +290,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -325,7 +300,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Address given an JSON string * * @param jsonString JSON string @@ -335,12 +310,11 @@ private String toIndentedString(Object o) { public static Address fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Address.class); } - - /** - * Convert an instance of Address to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Address to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/AddressRequirement.java b/src/main/java/com/adyen/model/balanceplatform/AddressRequirement.java index e5f9be663..799c23468 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AddressRequirement.java +++ b/src/main/java/com/adyen/model/balanceplatform/AddressRequirement.java @@ -2,39 +2,48 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** AddressRequirement */ +/** + * AddressRequirement + */ @JsonPropertyOrder({ AddressRequirement.JSON_PROPERTY_DESCRIPTION, AddressRequirement.JSON_PROPERTY_REQUIRED_ADDRESS_FIELDS, AddressRequirement.JSON_PROPERTY_TYPE }) + public class AddressRequirement { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; - /** Gets or Sets requiredAddressFields */ + /** + * Gets or Sets requiredAddressFields + */ public enum RequiredAddressFieldsEnum { + CITY(String.valueOf("city")), COUNTRY(String.valueOf("country")), @@ -50,7 +59,7 @@ public enum RequiredAddressFieldsEnum { private String value; RequiredAddressFieldsEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -71,11 +80,7 @@ public static RequiredAddressFieldsEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "RequiredAddressFieldsEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(RequiredAddressFieldsEnum.values())); + LOG.warning("RequiredAddressFieldsEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RequiredAddressFieldsEnum.values())); return null; } } @@ -83,8 +88,11 @@ public static RequiredAddressFieldsEnum fromValue(String value) { public static final String JSON_PROPERTY_REQUIRED_ADDRESS_FIELDS = "requiredAddressFields"; private List requiredAddressFields; - /** **addressRequirement** */ + /** + * **addressRequirement** + */ public enum TypeEnum { + ADDRESSREQUIREMENT(String.valueOf("addressRequirement")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -92,7 +100,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -113,11 +121,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -125,7 +129,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AddressRequirement() {} + public AddressRequirement() { + } /** * Specifies the required address related fields for a particular route. @@ -140,7 +145,6 @@ public AddressRequirement description(String description) { /** * Specifies the required address related fields for a particular route. - * * @return description Specifies the required address related fields for a particular route. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -166,14 +170,12 @@ public void setDescription(String description) { * @param requiredAddressFields List of address fields. * @return the current {@code AddressRequirement} instance, allowing for method chaining */ - public AddressRequirement requiredAddressFields( - List requiredAddressFields) { + public AddressRequirement requiredAddressFields(List requiredAddressFields) { this.requiredAddressFields = requiredAddressFields; return this; } - public AddressRequirement addRequiredAddressFieldsItem( - RequiredAddressFieldsEnum requiredAddressFieldsItem) { + public AddressRequirement addRequiredAddressFieldsItem(RequiredAddressFieldsEnum requiredAddressFieldsItem) { if (this.requiredAddressFields == null) { this.requiredAddressFields = new ArrayList<>(); } @@ -183,7 +185,6 @@ public AddressRequirement addRequiredAddressFieldsItem( /** * List of address fields. - * * @return requiredAddressFields List of address fields. */ @JsonProperty(JSON_PROPERTY_REQUIRED_ADDRESS_FIELDS) @@ -216,7 +217,6 @@ public AddressRequirement type(TypeEnum type) { /** * **addressRequirement** - * * @return type **addressRequirement** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -236,7 +236,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this AddressRequirement object is equal to o. */ + /** + * Return true if this AddressRequirement object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -246,9 +248,9 @@ public boolean equals(Object o) { return false; } AddressRequirement addressRequirement = (AddressRequirement) o; - return Objects.equals(this.description, addressRequirement.description) - && Objects.equals(this.requiredAddressFields, addressRequirement.requiredAddressFields) - && Objects.equals(this.type, addressRequirement.type); + return Objects.equals(this.description, addressRequirement.description) && + Objects.equals(this.requiredAddressFields, addressRequirement.requiredAddressFields) && + Objects.equals(this.type, addressRequirement.type); } @Override @@ -261,16 +263,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AddressRequirement {\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" requiredAddressFields: ") - .append(toIndentedString(requiredAddressFields)) - .append("\n"); + sb.append(" requiredAddressFields: ").append(toIndentedString(requiredAddressFields)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -279,23 +280,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AddressRequirement given an JSON string * * @param jsonString JSON string * @return An instance of AddressRequirement - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AddressRequirement + * @throws JsonProcessingException if the JSON string is invalid with respect to AddressRequirement */ public static AddressRequirement fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AddressRequirement.class); } - - /** - * Convert an instance of AddressRequirement to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AddressRequirement to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/Amount.java b/src/main/java/com/adyen/model/balanceplatform/Amount.java index 4cad929f3..9578faf2e 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Amount.java +++ b/src/main/java/com/adyen/model/balanceplatform/Amount.java @@ -2,23 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Amount */ -@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) + +/** + * Amount + */ +@JsonPropertyOrder({ + Amount.JSON_PROPERTY_CURRENCY, + Amount.JSON_PROPERTY_VALUE +}) + public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -26,14 +39,13 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() {} + public Amount() { + } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount currency(String currency) { @@ -42,11 +54,8 @@ public Amount currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -55,11 +64,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,11 +75,9 @@ public void setCurrency(String currency) { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount value(Long value) { @@ -81,11 +86,8 @@ public Amount value(Long value) { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). - * - * @return value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @return value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,11 +96,9 @@ public Long getValue() { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,7 +106,9 @@ public void setValue(Long value) { this.value = value; } - /** Return true if this Amount object is equal to o. */ + /** + * Return true if this Amount object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -116,8 +118,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) - && Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) && + Objects.equals(this.value, amount.value); } @Override @@ -136,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -155,12 +158,11 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } - - /** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/AmountMinMaxRequirement.java b/src/main/java/com/adyen/model/balanceplatform/AmountMinMaxRequirement.java index d46f7786d..8e0a5e279 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AmountMinMaxRequirement.java +++ b/src/main/java/com/adyen/model/balanceplatform/AmountMinMaxRequirement.java @@ -2,32 +2,38 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** AmountMinMaxRequirement */ + +/** + * AmountMinMaxRequirement + */ @JsonPropertyOrder({ AmountMinMaxRequirement.JSON_PROPERTY_DESCRIPTION, AmountMinMaxRequirement.JSON_PROPERTY_MAX, AmountMinMaxRequirement.JSON_PROPERTY_MIN, AmountMinMaxRequirement.JSON_PROPERTY_TYPE }) + public class AmountMinMaxRequirement { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -38,8 +44,11 @@ public class AmountMinMaxRequirement { public static final String JSON_PROPERTY_MIN = "min"; private Long min; - /** **amountMinMaxRequirement** */ + /** + * **amountMinMaxRequirement** + */ public enum TypeEnum { + AMOUNTMINMAXREQUIREMENT(String.valueOf("amountMinMaxRequirement")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -47,7 +56,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -68,11 +77,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -80,7 +85,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AmountMinMaxRequirement() {} + public AmountMinMaxRequirement() { + } /** * Specifies the eligible amounts for a particular route. @@ -95,7 +101,6 @@ public AmountMinMaxRequirement description(String description) { /** * Specifies the eligible amounts for a particular route. - * * @return description Specifies the eligible amounts for a particular route. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -128,7 +133,6 @@ public AmountMinMaxRequirement max(Long max) { /** * Maximum amount. - * * @return max Maximum amount. */ @JsonProperty(JSON_PROPERTY_MAX) @@ -161,7 +165,6 @@ public AmountMinMaxRequirement min(Long min) { /** * Minimum amount. - * * @return min Minimum amount. */ @JsonProperty(JSON_PROPERTY_MIN) @@ -194,7 +197,6 @@ public AmountMinMaxRequirement type(TypeEnum type) { /** * **amountMinMaxRequirement** - * * @return type **amountMinMaxRequirement** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -214,7 +216,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this AmountMinMaxRequirement object is equal to o. */ + /** + * Return true if this AmountMinMaxRequirement object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -224,10 +228,10 @@ public boolean equals(Object o) { return false; } AmountMinMaxRequirement amountMinMaxRequirement = (AmountMinMaxRequirement) o; - return Objects.equals(this.description, amountMinMaxRequirement.description) - && Objects.equals(this.max, amountMinMaxRequirement.max) - && Objects.equals(this.min, amountMinMaxRequirement.min) - && Objects.equals(this.type, amountMinMaxRequirement.type); + return Objects.equals(this.description, amountMinMaxRequirement.description) && + Objects.equals(this.max, amountMinMaxRequirement.max) && + Objects.equals(this.min, amountMinMaxRequirement.min) && + Objects.equals(this.type, amountMinMaxRequirement.type); } @Override @@ -248,7 +252,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -257,23 +262,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AmountMinMaxRequirement given an JSON string * * @param jsonString JSON string * @return An instance of AmountMinMaxRequirement - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AmountMinMaxRequirement + * @throws JsonProcessingException if the JSON string is invalid with respect to AmountMinMaxRequirement */ public static AmountMinMaxRequirement fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AmountMinMaxRequirement.class); } - - /** - * Convert an instance of AmountMinMaxRequirement to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AmountMinMaxRequirement to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/AmountNonZeroDecimalsRequirement.java b/src/main/java/com/adyen/model/balanceplatform/AmountNonZeroDecimalsRequirement.java index 935aad63b..774684ab9 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AmountNonZeroDecimalsRequirement.java +++ b/src/main/java/com/adyen/model/balanceplatform/AmountNonZeroDecimalsRequirement.java @@ -2,36 +2,45 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** AmountNonZeroDecimalsRequirement */ + +/** + * AmountNonZeroDecimalsRequirement + */ @JsonPropertyOrder({ AmountNonZeroDecimalsRequirement.JSON_PROPERTY_DESCRIPTION, AmountNonZeroDecimalsRequirement.JSON_PROPERTY_TYPE }) + public class AmountNonZeroDecimalsRequirement { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; - /** **amountNonZeroDecimalsRequirement** */ + /** + * **amountNonZeroDecimalsRequirement** + */ public enum TypeEnum { + AMOUNTNONZERODECIMALSREQUIREMENT(String.valueOf("amountNonZeroDecimalsRequirement")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -39,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -72,17 +77,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AmountNonZeroDecimalsRequirement() {} + public AmountNonZeroDecimalsRequirement() { + } /** - * Specifies for which routes the amount in a transfer request must have no non-zero decimal - * places, so the transfer can only be processed if the amount consists of round numbers. + * Specifies for which routes the amount in a transfer request must have no non-zero decimal places, so the transfer can only be processed if the amount consists of round numbers. * - * @param description Specifies for which routes the amount in a transfer request must have no - * non-zero decimal places, so the transfer can only be processed if the amount consists of - * round numbers. - * @return the current {@code AmountNonZeroDecimalsRequirement} instance, allowing for method - * chaining + * @param description Specifies for which routes the amount in a transfer request must have no non-zero decimal places, so the transfer can only be processed if the amount consists of round numbers. + * @return the current {@code AmountNonZeroDecimalsRequirement} instance, allowing for method chaining */ public AmountNonZeroDecimalsRequirement description(String description) { this.description = description; @@ -90,12 +92,8 @@ public AmountNonZeroDecimalsRequirement description(String description) { } /** - * Specifies for which routes the amount in a transfer request must have no non-zero decimal - * places, so the transfer can only be processed if the amount consists of round numbers. - * - * @return description Specifies for which routes the amount in a transfer request must have no - * non-zero decimal places, so the transfer can only be processed if the amount consists of - * round numbers. + * Specifies for which routes the amount in a transfer request must have no non-zero decimal places, so the transfer can only be processed if the amount consists of round numbers. + * @return description Specifies for which routes the amount in a transfer request must have no non-zero decimal places, so the transfer can only be processed if the amount consists of round numbers. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,12 +102,9 @@ public String getDescription() { } /** - * Specifies for which routes the amount in a transfer request must have no non-zero decimal - * places, so the transfer can only be processed if the amount consists of round numbers. + * Specifies for which routes the amount in a transfer request must have no non-zero decimal places, so the transfer can only be processed if the amount consists of round numbers. * - * @param description Specifies for which routes the amount in a transfer request must have no - * non-zero decimal places, so the transfer can only be processed if the amount consists of - * round numbers. + * @param description Specifies for which routes the amount in a transfer request must have no non-zero decimal places, so the transfer can only be processed if the amount consists of round numbers. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,8 +116,7 @@ public void setDescription(String description) { * **amountNonZeroDecimalsRequirement** * * @param type **amountNonZeroDecimalsRequirement** - * @return the current {@code AmountNonZeroDecimalsRequirement} instance, allowing for method - * chaining + * @return the current {@code AmountNonZeroDecimalsRequirement} instance, allowing for method chaining */ public AmountNonZeroDecimalsRequirement type(TypeEnum type) { this.type = type; @@ -131,7 +125,6 @@ public AmountNonZeroDecimalsRequirement type(TypeEnum type) { /** * **amountNonZeroDecimalsRequirement** - * * @return type **amountNonZeroDecimalsRequirement** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -151,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this AmountNonZeroDecimalsRequirement object is equal to o. */ + /** + * Return true if this AmountNonZeroDecimalsRequirement object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -160,10 +155,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AmountNonZeroDecimalsRequirement amountNonZeroDecimalsRequirement = - (AmountNonZeroDecimalsRequirement) o; - return Objects.equals(this.description, amountNonZeroDecimalsRequirement.description) - && Objects.equals(this.type, amountNonZeroDecimalsRequirement.type); + AmountNonZeroDecimalsRequirement amountNonZeroDecimalsRequirement = (AmountNonZeroDecimalsRequirement) o; + return Objects.equals(this.description, amountNonZeroDecimalsRequirement.description) && + Objects.equals(this.type, amountNonZeroDecimalsRequirement.type); } @Override @@ -182,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -191,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AmountNonZeroDecimalsRequirement given an JSON string * * @param jsonString JSON string * @return An instance of AmountNonZeroDecimalsRequirement - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AmountNonZeroDecimalsRequirement + * @throws JsonProcessingException if the JSON string is invalid with respect to AmountNonZeroDecimalsRequirement */ - public static AmountNonZeroDecimalsRequirement fromJson(String jsonString) - throws JsonProcessingException { + public static AmountNonZeroDecimalsRequirement fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AmountNonZeroDecimalsRequirement.class); } - - /** - * Convert an instance of AmountNonZeroDecimalsRequirement to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AmountNonZeroDecimalsRequirement to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/AssociationDelegatedAuthenticationData.java b/src/main/java/com/adyen/model/balanceplatform/AssociationDelegatedAuthenticationData.java index 9110d316e..1f79f0fe0 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AssociationDelegatedAuthenticationData.java +++ b/src/main/java/com/adyen/model/balanceplatform/AssociationDelegatedAuthenticationData.java @@ -2,37 +2,47 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AssociationDelegatedAuthenticationData */ -@JsonPropertyOrder({AssociationDelegatedAuthenticationData.JSON_PROPERTY_SDK_OUTPUT}) + +/** + * AssociationDelegatedAuthenticationData + */ +@JsonPropertyOrder({ + AssociationDelegatedAuthenticationData.JSON_PROPERTY_SDK_OUTPUT +}) + public class AssociationDelegatedAuthenticationData { public static final String JSON_PROPERTY_SDK_OUTPUT = "sdkOutput"; private String sdkOutput; - public AssociationDelegatedAuthenticationData() {} + public AssociationDelegatedAuthenticationData() { + } /** - * A base64-encoded block with the data required to authenticate the request. You obtain this - * information by using our authentication SDK. + * A base64-encoded block with the data required to authenticate the request. You obtain this information by using our authentication SDK. * - * @param sdkOutput A base64-encoded block with the data required to authenticate the request. You - * obtain this information by using our authentication SDK. - * @return the current {@code AssociationDelegatedAuthenticationData} instance, allowing for - * method chaining + * @param sdkOutput A base64-encoded block with the data required to authenticate the request. You obtain this information by using our authentication SDK. + * @return the current {@code AssociationDelegatedAuthenticationData} instance, allowing for method chaining */ public AssociationDelegatedAuthenticationData sdkOutput(String sdkOutput) { this.sdkOutput = sdkOutput; @@ -40,11 +50,8 @@ public AssociationDelegatedAuthenticationData sdkOutput(String sdkOutput) { } /** - * A base64-encoded block with the data required to authenticate the request. You obtain this - * information by using our authentication SDK. - * - * @return sdkOutput A base64-encoded block with the data required to authenticate the request. - * You obtain this information by using our authentication SDK. + * A base64-encoded block with the data required to authenticate the request. You obtain this information by using our authentication SDK. + * @return sdkOutput A base64-encoded block with the data required to authenticate the request. You obtain this information by using our authentication SDK. */ @JsonProperty(JSON_PROPERTY_SDK_OUTPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -53,11 +60,9 @@ public String getSdkOutput() { } /** - * A base64-encoded block with the data required to authenticate the request. You obtain this - * information by using our authentication SDK. + * A base64-encoded block with the data required to authenticate the request. You obtain this information by using our authentication SDK. * - * @param sdkOutput A base64-encoded block with the data required to authenticate the request. You - * obtain this information by using our authentication SDK. + * @param sdkOutput A base64-encoded block with the data required to authenticate the request. You obtain this information by using our authentication SDK. */ @JsonProperty(JSON_PROPERTY_SDK_OUTPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -65,7 +70,9 @@ public void setSdkOutput(String sdkOutput) { this.sdkOutput = sdkOutput; } - /** Return true if this AssociationDelegatedAuthenticationData object is equal to o. */ + /** + * Return true if this AssociationDelegatedAuthenticationData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -74,8 +81,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AssociationDelegatedAuthenticationData associationDelegatedAuthenticationData = - (AssociationDelegatedAuthenticationData) o; + AssociationDelegatedAuthenticationData associationDelegatedAuthenticationData = (AssociationDelegatedAuthenticationData) o; return Objects.equals(this.sdkOutput, associationDelegatedAuthenticationData.sdkOutput); } @@ -94,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -103,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AssociationDelegatedAuthenticationData given an JSON string * * @param jsonString JSON string * @return An instance of AssociationDelegatedAuthenticationData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AssociationDelegatedAuthenticationData + * @throws JsonProcessingException if the JSON string is invalid with respect to AssociationDelegatedAuthenticationData */ - public static AssociationDelegatedAuthenticationData fromJson(String jsonString) - throws JsonProcessingException { + public static AssociationDelegatedAuthenticationData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AssociationDelegatedAuthenticationData.class); } - - /** - * Convert an instance of AssociationDelegatedAuthenticationData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AssociationDelegatedAuthenticationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/AssociationFinaliseRequest.java b/src/main/java/com/adyen/model/balanceplatform/AssociationFinaliseRequest.java index a12d143a7..f292a24e2 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AssociationFinaliseRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/AssociationFinaliseRequest.java @@ -2,46 +2,52 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.AssociationDelegatedAuthenticationData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** AssociationFinaliseRequest */ +/** + * AssociationFinaliseRequest + */ @JsonPropertyOrder({ AssociationFinaliseRequest.JSON_PROPERTY_IDS, AssociationFinaliseRequest.JSON_PROPERTY_STRONG_CUSTOMER_AUTHENTICATION, AssociationFinaliseRequest.JSON_PROPERTY_TYPE }) + public class AssociationFinaliseRequest { public static final String JSON_PROPERTY_IDS = "ids"; private List ids; - public static final String JSON_PROPERTY_STRONG_CUSTOMER_AUTHENTICATION = - "strongCustomerAuthentication"; + public static final String JSON_PROPERTY_STRONG_CUSTOMER_AUTHENTICATION = "strongCustomerAuthentication"; private AssociationDelegatedAuthenticationData strongCustomerAuthentication; /** - * The type of resource that you are associating with the SCA device. Possible value: - * **PaymentInstrument** + * The type of resource that you are associating with the SCA device. Possible value: **PaymentInstrument** */ public enum TypeEnum { + PAYMENTINSTRUMENT(String.valueOf("PaymentInstrument")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -49,7 +55,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -70,11 +76,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -82,14 +84,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AssociationFinaliseRequest() {} + public AssociationFinaliseRequest() { + } /** - * The list of unique identifiers of the resources that you are associating with the SCA device. - * Maximum: 5 strings. + * The list of unique identifiers of the resources that you are associating with the SCA device. Maximum: 5 strings. * - * @param ids The list of unique identifiers of the resources that you are associating with the - * SCA device. Maximum: 5 strings. + * @param ids The list of unique identifiers of the resources that you are associating with the SCA device. Maximum: 5 strings. * @return the current {@code AssociationFinaliseRequest} instance, allowing for method chaining */ public AssociationFinaliseRequest ids(List ids) { @@ -106,11 +107,8 @@ public AssociationFinaliseRequest addIdsItem(String idsItem) { } /** - * The list of unique identifiers of the resources that you are associating with the SCA device. - * Maximum: 5 strings. - * - * @return ids The list of unique identifiers of the resources that you are associating with the - * SCA device. Maximum: 5 strings. + * The list of unique identifiers of the resources that you are associating with the SCA device. Maximum: 5 strings. + * @return ids The list of unique identifiers of the resources that you are associating with the SCA device. Maximum: 5 strings. */ @JsonProperty(JSON_PROPERTY_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -119,11 +117,9 @@ public List getIds() { } /** - * The list of unique identifiers of the resources that you are associating with the SCA device. - * Maximum: 5 strings. + * The list of unique identifiers of the resources that you are associating with the SCA device. Maximum: 5 strings. * - * @param ids The list of unique identifiers of the resources that you are associating with the - * SCA device. Maximum: 5 strings. + * @param ids The list of unique identifiers of the resources that you are associating with the SCA device. Maximum: 5 strings. */ @JsonProperty(JSON_PROPERTY_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -134,19 +130,17 @@ public void setIds(List ids) { /** * strongCustomerAuthentication * - * @param strongCustomerAuthentication + * @param strongCustomerAuthentication * @return the current {@code AssociationFinaliseRequest} instance, allowing for method chaining */ - public AssociationFinaliseRequest strongCustomerAuthentication( - AssociationDelegatedAuthenticationData strongCustomerAuthentication) { + public AssociationFinaliseRequest strongCustomerAuthentication(AssociationDelegatedAuthenticationData strongCustomerAuthentication) { this.strongCustomerAuthentication = strongCustomerAuthentication; return this; } /** * Get strongCustomerAuthentication - * - * @return strongCustomerAuthentication + * @return strongCustomerAuthentication */ @JsonProperty(JSON_PROPERTY_STRONG_CUSTOMER_AUTHENTICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -157,21 +151,18 @@ public AssociationDelegatedAuthenticationData getStrongCustomerAuthentication() /** * strongCustomerAuthentication * - * @param strongCustomerAuthentication + * @param strongCustomerAuthentication */ @JsonProperty(JSON_PROPERTY_STRONG_CUSTOMER_AUTHENTICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStrongCustomerAuthentication( - AssociationDelegatedAuthenticationData strongCustomerAuthentication) { + public void setStrongCustomerAuthentication(AssociationDelegatedAuthenticationData strongCustomerAuthentication) { this.strongCustomerAuthentication = strongCustomerAuthentication; } /** - * The type of resource that you are associating with the SCA device. Possible value: - * **PaymentInstrument** + * The type of resource that you are associating with the SCA device. Possible value: **PaymentInstrument** * - * @param type The type of resource that you are associating with the SCA device. Possible value: - * **PaymentInstrument** + * @param type The type of resource that you are associating with the SCA device. Possible value: **PaymentInstrument** * @return the current {@code AssociationFinaliseRequest} instance, allowing for method chaining */ public AssociationFinaliseRequest type(TypeEnum type) { @@ -180,11 +171,8 @@ public AssociationFinaliseRequest type(TypeEnum type) { } /** - * The type of resource that you are associating with the SCA device. Possible value: - * **PaymentInstrument** - * - * @return type The type of resource that you are associating with the SCA device. Possible value: - * **PaymentInstrument** + * The type of resource that you are associating with the SCA device. Possible value: **PaymentInstrument** + * @return type The type of resource that you are associating with the SCA device. Possible value: **PaymentInstrument** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,11 +181,9 @@ public TypeEnum getType() { } /** - * The type of resource that you are associating with the SCA device. Possible value: - * **PaymentInstrument** + * The type of resource that you are associating with the SCA device. Possible value: **PaymentInstrument** * - * @param type The type of resource that you are associating with the SCA device. Possible value: - * **PaymentInstrument** + * @param type The type of resource that you are associating with the SCA device. Possible value: **PaymentInstrument** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -205,7 +191,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this AssociationFinaliseRequest object is equal to o. */ + /** + * Return true if this AssociationFinaliseRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -215,11 +203,9 @@ public boolean equals(Object o) { return false; } AssociationFinaliseRequest associationFinaliseRequest = (AssociationFinaliseRequest) o; - return Objects.equals(this.ids, associationFinaliseRequest.ids) - && Objects.equals( - this.strongCustomerAuthentication, - associationFinaliseRequest.strongCustomerAuthentication) - && Objects.equals(this.type, associationFinaliseRequest.type); + return Objects.equals(this.ids, associationFinaliseRequest.ids) && + Objects.equals(this.strongCustomerAuthentication, associationFinaliseRequest.strongCustomerAuthentication) && + Objects.equals(this.type, associationFinaliseRequest.type); } @Override @@ -232,16 +218,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AssociationFinaliseRequest {\n"); sb.append(" ids: ").append(toIndentedString(ids)).append("\n"); - sb.append(" strongCustomerAuthentication: ") - .append(toIndentedString(strongCustomerAuthentication)) - .append("\n"); + sb.append(" strongCustomerAuthentication: ").append(toIndentedString(strongCustomerAuthentication)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -250,24 +235,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AssociationFinaliseRequest given an JSON string * * @param jsonString JSON string * @return An instance of AssociationFinaliseRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AssociationFinaliseRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to AssociationFinaliseRequest */ - public static AssociationFinaliseRequest fromJson(String jsonString) - throws JsonProcessingException { + public static AssociationFinaliseRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AssociationFinaliseRequest.class); } - - /** - * Convert an instance of AssociationFinaliseRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AssociationFinaliseRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/AssociationFinaliseResponse.java b/src/main/java/com/adyen/model/balanceplatform/AssociationFinaliseResponse.java index 5f88ae408..1426f0b3c 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AssociationFinaliseResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/AssociationFinaliseResponse.java @@ -2,33 +2,39 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** AssociationFinaliseResponse */ + +/** + * AssociationFinaliseResponse + */ @JsonPropertyOrder({ AssociationFinaliseResponse.JSON_PROPERTY_DEVICE_ID, AssociationFinaliseResponse.JSON_PROPERTY_IDS, AssociationFinaliseResponse.JSON_PROPERTY_TYPE }) + public class AssociationFinaliseResponse { public static final String JSON_PROPERTY_DEVICE_ID = "deviceId"; private String deviceId; @@ -36,8 +42,11 @@ public class AssociationFinaliseResponse { public static final String JSON_PROPERTY_IDS = "ids"; private List ids; - /** The type of resource that you associated with the SCA device. */ + /** + * The type of resource that you associated with the SCA device. + */ public enum TypeEnum { + PAYMENT_INSTRUMENT(String.valueOf("PAYMENT_INSTRUMENT")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -45,7 +54,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -66,11 +75,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -78,7 +83,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AssociationFinaliseResponse() {} + public AssociationFinaliseResponse() { + } /** * The unique identifier of the SCA device you associated with a resource. @@ -93,7 +99,6 @@ public AssociationFinaliseResponse deviceId(String deviceId) { /** * The unique identifier of the SCA device you associated with a resource. - * * @return deviceId The unique identifier of the SCA device you associated with a resource. */ @JsonProperty(JSON_PROPERTY_DEVICE_ID) @@ -116,8 +121,7 @@ public void setDeviceId(String deviceId) { /** * The list of unique identifiers of the resources that you associated with the SCA device. * - * @param ids The list of unique identifiers of the resources that you associated with the SCA - * device. + * @param ids The list of unique identifiers of the resources that you associated with the SCA device. * @return the current {@code AssociationFinaliseResponse} instance, allowing for method chaining */ public AssociationFinaliseResponse ids(List ids) { @@ -135,9 +139,7 @@ public AssociationFinaliseResponse addIdsItem(String idsItem) { /** * The list of unique identifiers of the resources that you associated with the SCA device. - * - * @return ids The list of unique identifiers of the resources that you associated with the SCA - * device. + * @return ids The list of unique identifiers of the resources that you associated with the SCA device. */ @JsonProperty(JSON_PROPERTY_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,8 +150,7 @@ public List getIds() { /** * The list of unique identifiers of the resources that you associated with the SCA device. * - * @param ids The list of unique identifiers of the resources that you associated with the SCA - * device. + * @param ids The list of unique identifiers of the resources that you associated with the SCA device. */ @JsonProperty(JSON_PROPERTY_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -170,7 +171,6 @@ public AssociationFinaliseResponse type(TypeEnum type) { /** * The type of resource that you associated with the SCA device. - * * @return type The type of resource that you associated with the SCA device. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -190,7 +190,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this AssociationFinaliseResponse object is equal to o. */ + /** + * Return true if this AssociationFinaliseResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -200,9 +202,9 @@ public boolean equals(Object o) { return false; } AssociationFinaliseResponse associationFinaliseResponse = (AssociationFinaliseResponse) o; - return Objects.equals(this.deviceId, associationFinaliseResponse.deviceId) - && Objects.equals(this.ids, associationFinaliseResponse.ids) - && Objects.equals(this.type, associationFinaliseResponse.type); + return Objects.equals(this.deviceId, associationFinaliseResponse.deviceId) && + Objects.equals(this.ids, associationFinaliseResponse.ids) && + Objects.equals(this.type, associationFinaliseResponse.type); } @Override @@ -222,7 +224,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -231,24 +234,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AssociationFinaliseResponse given an JSON string * * @param jsonString JSON string * @return An instance of AssociationFinaliseResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AssociationFinaliseResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to AssociationFinaliseResponse */ - public static AssociationFinaliseResponse fromJson(String jsonString) - throws JsonProcessingException { + public static AssociationFinaliseResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AssociationFinaliseResponse.class); } - - /** - * Convert an instance of AssociationFinaliseResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AssociationFinaliseResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/AssociationInitiateRequest.java b/src/main/java/com/adyen/model/balanceplatform/AssociationInitiateRequest.java index 848ef857b..0cda2b56f 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AssociationInitiateRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/AssociationInitiateRequest.java @@ -2,41 +2,47 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** AssociationInitiateRequest */ +/** + * AssociationInitiateRequest + */ @JsonPropertyOrder({ AssociationInitiateRequest.JSON_PROPERTY_IDS, AssociationInitiateRequest.JSON_PROPERTY_TYPE }) + public class AssociationInitiateRequest { public static final String JSON_PROPERTY_IDS = "ids"; private List ids; /** - * The type of resource that you are associating with the SCA device. Possible value: - * **PaymentInstrument** + * The type of resource that you are associating with the SCA device. Possible value: **PaymentInstrument** */ public enum TypeEnum { + PAYMENTINSTRUMENT(String.valueOf("PaymentInstrument")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -44,7 +50,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -65,11 +71,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -77,14 +79,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AssociationInitiateRequest() {} + public AssociationInitiateRequest() { + } /** - * The list of unique identifiers of the resources that you are associating with the SCA device. - * Maximum: 5 strings. + * The list of unique identifiers of the resources that you are associating with the SCA device. Maximum: 5 strings. * - * @param ids The list of unique identifiers of the resources that you are associating with the - * SCA device. Maximum: 5 strings. + * @param ids The list of unique identifiers of the resources that you are associating with the SCA device. Maximum: 5 strings. * @return the current {@code AssociationInitiateRequest} instance, allowing for method chaining */ public AssociationInitiateRequest ids(List ids) { @@ -101,11 +102,8 @@ public AssociationInitiateRequest addIdsItem(String idsItem) { } /** - * The list of unique identifiers of the resources that you are associating with the SCA device. - * Maximum: 5 strings. - * - * @return ids The list of unique identifiers of the resources that you are associating with the - * SCA device. Maximum: 5 strings. + * The list of unique identifiers of the resources that you are associating with the SCA device. Maximum: 5 strings. + * @return ids The list of unique identifiers of the resources that you are associating with the SCA device. Maximum: 5 strings. */ @JsonProperty(JSON_PROPERTY_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,11 +112,9 @@ public List getIds() { } /** - * The list of unique identifiers of the resources that you are associating with the SCA device. - * Maximum: 5 strings. + * The list of unique identifiers of the resources that you are associating with the SCA device. Maximum: 5 strings. * - * @param ids The list of unique identifiers of the resources that you are associating with the - * SCA device. Maximum: 5 strings. + * @param ids The list of unique identifiers of the resources that you are associating with the SCA device. Maximum: 5 strings. */ @JsonProperty(JSON_PROPERTY_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,11 +123,9 @@ public void setIds(List ids) { } /** - * The type of resource that you are associating with the SCA device. Possible value: - * **PaymentInstrument** + * The type of resource that you are associating with the SCA device. Possible value: **PaymentInstrument** * - * @param type The type of resource that you are associating with the SCA device. Possible value: - * **PaymentInstrument** + * @param type The type of resource that you are associating with the SCA device. Possible value: **PaymentInstrument** * @return the current {@code AssociationInitiateRequest} instance, allowing for method chaining */ public AssociationInitiateRequest type(TypeEnum type) { @@ -140,11 +134,8 @@ public AssociationInitiateRequest type(TypeEnum type) { } /** - * The type of resource that you are associating with the SCA device. Possible value: - * **PaymentInstrument** - * - * @return type The type of resource that you are associating with the SCA device. Possible value: - * **PaymentInstrument** + * The type of resource that you are associating with the SCA device. Possible value: **PaymentInstrument** + * @return type The type of resource that you are associating with the SCA device. Possible value: **PaymentInstrument** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -153,11 +144,9 @@ public TypeEnum getType() { } /** - * The type of resource that you are associating with the SCA device. Possible value: - * **PaymentInstrument** + * The type of resource that you are associating with the SCA device. Possible value: **PaymentInstrument** * - * @param type The type of resource that you are associating with the SCA device. Possible value: - * **PaymentInstrument** + * @param type The type of resource that you are associating with the SCA device. Possible value: **PaymentInstrument** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -165,7 +154,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this AssociationInitiateRequest object is equal to o. */ + /** + * Return true if this AssociationInitiateRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -175,8 +166,8 @@ public boolean equals(Object o) { return false; } AssociationInitiateRequest associationInitiateRequest = (AssociationInitiateRequest) o; - return Objects.equals(this.ids, associationInitiateRequest.ids) - && Objects.equals(this.type, associationInitiateRequest.type); + return Objects.equals(this.ids, associationInitiateRequest.ids) && + Objects.equals(this.type, associationInitiateRequest.type); } @Override @@ -195,7 +186,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -204,24 +196,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AssociationInitiateRequest given an JSON string * * @param jsonString JSON string * @return An instance of AssociationInitiateRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AssociationInitiateRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to AssociationInitiateRequest */ - public static AssociationInitiateRequest fromJson(String jsonString) - throws JsonProcessingException { + public static AssociationInitiateRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AssociationInitiateRequest.class); } - - /** - * Convert an instance of AssociationInitiateRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AssociationInitiateRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/AssociationInitiateResponse.java b/src/main/java/com/adyen/model/balanceplatform/AssociationInitiateResponse.java index ed4a2253c..7ab6f39bc 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AssociationInitiateResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/AssociationInitiateResponse.java @@ -2,34 +2,46 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AssociationInitiateResponse */ -@JsonPropertyOrder({AssociationInitiateResponse.JSON_PROPERTY_SDK_INPUT}) + +/** + * AssociationInitiateResponse + */ +@JsonPropertyOrder({ + AssociationInitiateResponse.JSON_PROPERTY_SDK_INPUT +}) + public class AssociationInitiateResponse { public static final String JSON_PROPERTY_SDK_INPUT = "sdkInput"; private String sdkInput; - public AssociationInitiateResponse() {} + public AssociationInitiateResponse() { + } /** * A string that you must pass to the authentication SDK to continue with the association process. * - * @param sdkInput A string that you must pass to the authentication SDK to continue with the - * association process. + * @param sdkInput A string that you must pass to the authentication SDK to continue with the association process. * @return the current {@code AssociationInitiateResponse} instance, allowing for method chaining */ public AssociationInitiateResponse sdkInput(String sdkInput) { @@ -39,9 +51,7 @@ public AssociationInitiateResponse sdkInput(String sdkInput) { /** * A string that you must pass to the authentication SDK to continue with the association process. - * - * @return sdkInput A string that you must pass to the authentication SDK to continue with the - * association process. + * @return sdkInput A string that you must pass to the authentication SDK to continue with the association process. */ @JsonProperty(JSON_PROPERTY_SDK_INPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -52,8 +62,7 @@ public String getSdkInput() { /** * A string that you must pass to the authentication SDK to continue with the association process. * - * @param sdkInput A string that you must pass to the authentication SDK to continue with the - * association process. + * @param sdkInput A string that you must pass to the authentication SDK to continue with the association process. */ @JsonProperty(JSON_PROPERTY_SDK_INPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -61,7 +70,9 @@ public void setSdkInput(String sdkInput) { this.sdkInput = sdkInput; } - /** Return true if this AssociationInitiateResponse object is equal to o. */ + /** + * Return true if this AssociationInitiateResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -89,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -98,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AssociationInitiateResponse given an JSON string * * @param jsonString JSON string * @return An instance of AssociationInitiateResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AssociationInitiateResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to AssociationInitiateResponse */ - public static AssociationInitiateResponse fromJson(String jsonString) - throws JsonProcessingException { + public static AssociationInitiateResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AssociationInitiateResponse.class); } - - /** - * Convert an instance of AssociationInitiateResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AssociationInitiateResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/Authentication.java b/src/main/java/com/adyen/model/balanceplatform/Authentication.java index b1ca55240..b5a7c03d6 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Authentication.java +++ b/src/main/java/com/adyen/model/balanceplatform/Authentication.java @@ -2,27 +2,38 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.Phone; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Authentication */ + +/** + * Authentication + */ @JsonPropertyOrder({ Authentication.JSON_PROPERTY_EMAIL, Authentication.JSON_PROPERTY_PASSWORD, Authentication.JSON_PROPERTY_PHONE }) + public class Authentication { public static final String JSON_PROPERTY_EMAIL = "email"; private String email; @@ -33,7 +44,8 @@ public class Authentication { public static final String JSON_PROPERTY_PHONE = "phone"; private Phone phone; - public Authentication() {} + public Authentication() { + } /** * The email address where the one-time password (OTP) is sent. @@ -48,7 +60,6 @@ public Authentication email(String email) { /** * The email address where the one-time password (OTP) is sent. - * * @return email The email address where the one-time password (OTP) is sent. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -69,15 +80,9 @@ public void setEmail(String email) { } /** - * The password used for 3D Secure password-based authentication. The value must be between 1 to - * 30 characters and must only contain the following supported characters. * Characters between - * **a-z**, **A-Z**, and **0-9** * Special characters: - * **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** + * The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters. * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** * - * @param password The password used for 3D Secure password-based authentication. The value must - * be between 1 to 30 characters and must only contain the following supported characters. * - * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: - * **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** + * @param password The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters. * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** * @return the current {@code Authentication} instance, allowing for method chaining */ public Authentication password(String password) { @@ -86,15 +91,8 @@ public Authentication password(String password) { } /** - * The password used for 3D Secure password-based authentication. The value must be between 1 to - * 30 characters and must only contain the following supported characters. * Characters between - * **a-z**, **A-Z**, and **0-9** * Special characters: - * **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** - * - * @return password The password used for 3D Secure password-based authentication. The value must - * be between 1 to 30 characters and must only contain the following supported characters. * - * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: - * **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** + * The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters. * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** + * @return password The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters. * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** */ @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -103,15 +101,9 @@ public String getPassword() { } /** - * The password used for 3D Secure password-based authentication. The value must be between 1 to - * 30 characters and must only contain the following supported characters. * Characters between - * **a-z**, **A-Z**, and **0-9** * Special characters: - * **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** + * The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters. * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** * - * @param password The password used for 3D Secure password-based authentication. The value must - * be between 1 to 30 characters and must only contain the following supported characters. * - * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: - * **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** + * @param password The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters. * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** */ @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -122,7 +114,7 @@ public void setPassword(String password) { /** * phone * - * @param phone + * @param phone * @return the current {@code Authentication} instance, allowing for method chaining */ public Authentication phone(Phone phone) { @@ -132,8 +124,7 @@ public Authentication phone(Phone phone) { /** * Get phone - * - * @return phone + * @return phone */ @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,7 +135,7 @@ public Phone getPhone() { /** * phone * - * @param phone + * @param phone */ @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,7 +143,9 @@ public void setPhone(Phone phone) { this.phone = phone; } - /** Return true if this Authentication object is equal to o. */ + /** + * Return true if this Authentication object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -162,9 +155,9 @@ public boolean equals(Object o) { return false; } Authentication authentication = (Authentication) o; - return Objects.equals(this.email, authentication.email) - && Objects.equals(this.password, authentication.password) - && Objects.equals(this.phone, authentication.phone); + return Objects.equals(this.email, authentication.email) && + Objects.equals(this.password, authentication.password) && + Objects.equals(this.phone, authentication.phone); } @Override @@ -184,7 +177,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -193,7 +187,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Authentication given an JSON string * * @param jsonString JSON string @@ -203,12 +197,11 @@ private String toIndentedString(Object o) { public static Authentication fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Authentication.class); } - - /** - * Convert an instance of Authentication to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Authentication to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/AuthorisedCardUsers.java b/src/main/java/com/adyen/model/balanceplatform/AuthorisedCardUsers.java index fae830b57..b9b64e805 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AuthorisedCardUsers.java +++ b/src/main/java/com/adyen/model/balanceplatform/AuthorisedCardUsers.java @@ -2,36 +2,48 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * AuthorisedCardUsers + */ +@JsonPropertyOrder({ + AuthorisedCardUsers.JSON_PROPERTY_LEGAL_ENTITY_IDS +}) -/** AuthorisedCardUsers */ -@JsonPropertyOrder({AuthorisedCardUsers.JSON_PROPERTY_LEGAL_ENTITY_IDS}) public class AuthorisedCardUsers { public static final String JSON_PROPERTY_LEGAL_ENTITY_IDS = "legalEntityIds"; private List legalEntityIds; - public AuthorisedCardUsers() {} + public AuthorisedCardUsers() { + } /** * The legal entity IDs of the authorized card users linked to the specified payment instrument. * - * @param legalEntityIds The legal entity IDs of the authorized card users linked to the specified - * payment instrument. + * @param legalEntityIds The legal entity IDs of the authorized card users linked to the specified payment instrument. * @return the current {@code AuthorisedCardUsers} instance, allowing for method chaining */ public AuthorisedCardUsers legalEntityIds(List legalEntityIds) { @@ -49,9 +61,7 @@ public AuthorisedCardUsers addLegalEntityIdsItem(String legalEntityIdsItem) { /** * The legal entity IDs of the authorized card users linked to the specified payment instrument. - * - * @return legalEntityIds The legal entity IDs of the authorized card users linked to the - * specified payment instrument. + * @return legalEntityIds The legal entity IDs of the authorized card users linked to the specified payment instrument. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -62,8 +72,7 @@ public List getLegalEntityIds() { /** * The legal entity IDs of the authorized card users linked to the specified payment instrument. * - * @param legalEntityIds The legal entity IDs of the authorized card users linked to the specified - * payment instrument. + * @param legalEntityIds The legal entity IDs of the authorized card users linked to the specified payment instrument. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,7 +80,9 @@ public void setLegalEntityIds(List legalEntityIds) { this.legalEntityIds = legalEntityIds; } - /** Return true if this AuthorisedCardUsers object is equal to o. */ + /** + * Return true if this AuthorisedCardUsers object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -99,7 +110,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -108,23 +120,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AuthorisedCardUsers given an JSON string * * @param jsonString JSON string * @return An instance of AuthorisedCardUsers - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AuthorisedCardUsers + * @throws JsonProcessingException if the JSON string is invalid with respect to AuthorisedCardUsers */ public static AuthorisedCardUsers fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AuthorisedCardUsers.class); } - - /** - * Convert an instance of AuthorisedCardUsers to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AuthorisedCardUsers to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BRLocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/BRLocalAccountIdentification.java index 163d24a87..d33dfaaaa 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BRLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/BRLocalAccountIdentification.java @@ -2,26 +2,31 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** BRLocalAccountIdentification */ + +/** + * BRLocalAccountIdentification + */ @JsonPropertyOrder({ BRLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, BRLocalAccountIdentification.JSON_PROPERTY_BANK_CODE, @@ -29,6 +34,7 @@ BRLocalAccountIdentification.JSON_PROPERTY_ISPB, BRLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class BRLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -42,8 +48,11 @@ public class BRLocalAccountIdentification { public static final String JSON_PROPERTY_ISPB = "ispb"; private String ispb; - /** **brLocal** */ + /** + * **brLocal** + */ public enum TypeEnum { + BRLOCAL(String.valueOf("brLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -51,7 +60,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -72,11 +81,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -84,7 +89,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public BRLocalAccountIdentification() {} + public BRLocalAccountIdentification() { + } /** * The bank account number, without separators or whitespace. @@ -99,7 +105,6 @@ public BRLocalAccountIdentification accountNumber(String accountNumber) { /** * The bank account number, without separators or whitespace. - * * @return accountNumber The bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -132,7 +137,6 @@ public BRLocalAccountIdentification bankCode(String bankCode) { /** * The 3-digit bank code, with leading zeros. - * * @return bankCode The 3-digit bank code, with leading zeros. */ @JsonProperty(JSON_PROPERTY_BANK_CODE) @@ -165,7 +169,6 @@ public BRLocalAccountIdentification branchNumber(String branchNumber) { /** * The bank account branch number, without separators or whitespace. - * * @return branchNumber The bank account branch number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_BRANCH_NUMBER) @@ -198,7 +201,6 @@ public BRLocalAccountIdentification ispb(String ispb) { /** * The 8-digit ISPB, with leading zeros. - * * @return ispb The 8-digit ISPB, with leading zeros. */ @JsonProperty(JSON_PROPERTY_ISPB) @@ -231,7 +233,6 @@ public BRLocalAccountIdentification type(TypeEnum type) { /** * **brLocal** - * * @return type **brLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -251,7 +252,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this BRLocalAccountIdentification object is equal to o. */ + /** + * Return true if this BRLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -261,11 +264,11 @@ public boolean equals(Object o) { return false; } BRLocalAccountIdentification brLocalAccountIdentification = (BRLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, brLocalAccountIdentification.accountNumber) - && Objects.equals(this.bankCode, brLocalAccountIdentification.bankCode) - && Objects.equals(this.branchNumber, brLocalAccountIdentification.branchNumber) - && Objects.equals(this.ispb, brLocalAccountIdentification.ispb) - && Objects.equals(this.type, brLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, brLocalAccountIdentification.accountNumber) && + Objects.equals(this.bankCode, brLocalAccountIdentification.bankCode) && + Objects.equals(this.branchNumber, brLocalAccountIdentification.branchNumber) && + Objects.equals(this.ispb, brLocalAccountIdentification.ispb) && + Objects.equals(this.type, brLocalAccountIdentification.type); } @Override @@ -287,7 +290,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -296,24 +300,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BRLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of BRLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BRLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to BRLocalAccountIdentification */ - public static BRLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static BRLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BRLocalAccountIdentification.class); } - - /** - * Convert an instance of BRLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BRLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/Balance.java b/src/main/java/com/adyen/model/balanceplatform/Balance.java index 8d4a8c88f..1b7ed488d 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Balance.java +++ b/src/main/java/com/adyen/model/balanceplatform/Balance.java @@ -2,22 +2,31 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Balance */ + +/** + * Balance + */ @JsonPropertyOrder({ Balance.JSON_PROPERTY_AVAILABLE, Balance.JSON_PROPERTY_BALANCE, @@ -25,6 +34,7 @@ Balance.JSON_PROPERTY_PENDING, Balance.JSON_PROPERTY_RESERVED }) + public class Balance { public static final String JSON_PROPERTY_AVAILABLE = "available"; private Long available; @@ -41,7 +51,8 @@ public class Balance { public static final String JSON_PROPERTY_RESERVED = "reserved"; private Long reserved; - public Balance() {} + public Balance() { + } /** * The balance available for use. @@ -56,7 +67,6 @@ public Balance available(Long available) { /** * The balance available for use. - * * @return available The balance available for use. */ @JsonProperty(JSON_PROPERTY_AVAILABLE) @@ -89,7 +99,6 @@ public Balance balance(Long balance) { /** * The sum of the transactions that have already been settled. - * * @return balance The sum of the transactions that have already been settled. */ @JsonProperty(JSON_PROPERTY_BALANCE) @@ -110,11 +119,9 @@ public void setBalance(Long balance) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. * @return the current {@code Balance} instance, allowing for method chaining */ public Balance currency(String currency) { @@ -123,11 +130,8 @@ public Balance currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,11 +140,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,7 +163,6 @@ public Balance pending(Long pending) { /** * The sum of the transactions that will be settled in the future. - * * @return pending The sum of the transactions that will be settled in the future. */ @JsonProperty(JSON_PROPERTY_PENDING) @@ -194,7 +195,6 @@ public Balance reserved(Long reserved) { /** * The balance currently held in reserve. - * * @return reserved The balance currently held in reserve. */ @JsonProperty(JSON_PROPERTY_RESERVED) @@ -214,7 +214,9 @@ public void setReserved(Long reserved) { this.reserved = reserved; } - /** Return true if this Balance object is equal to o. */ + /** + * Return true if this Balance object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -224,11 +226,11 @@ public boolean equals(Object o) { return false; } Balance balance = (Balance) o; - return Objects.equals(this.available, balance.available) - && Objects.equals(this.balance, balance.balance) - && Objects.equals(this.currency, balance.currency) - && Objects.equals(this.pending, balance.pending) - && Objects.equals(this.reserved, balance.reserved); + return Objects.equals(this.available, balance.available) && + Objects.equals(this.balance, balance.balance) && + Objects.equals(this.currency, balance.currency) && + Objects.equals(this.pending, balance.pending) && + Objects.equals(this.reserved, balance.reserved); } @Override @@ -250,7 +252,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -259,7 +262,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Balance given an JSON string * * @param jsonString JSON string @@ -269,12 +272,11 @@ private String toIndentedString(Object o) { public static Balance fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Balance.class); } - - /** - * Convert an instance of Balance to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Balance to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BalanceAccount.java b/src/main/java/com/adyen/model/balanceplatform/BalanceAccount.java index 61c175894..84e2dc249 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalanceAccount.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalanceAccount.java @@ -2,30 +2,37 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.Balance; +import com.adyen.model.balanceplatform.PlatformPaymentConfiguration; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** BalanceAccount */ +/** + * BalanceAccount + */ @JsonPropertyOrder({ BalanceAccount.JSON_PROPERTY_ACCOUNT_HOLDER_ID, BalanceAccount.JSON_PROPERTY_BALANCES, @@ -39,6 +46,7 @@ BalanceAccount.JSON_PROPERTY_STATUS, BalanceAccount.JSON_PROPERTY_TIME_ZONE }) + public class BalanceAccount { public static final String JSON_PROPERTY_ACCOUNT_HOLDER_ID = "accountHolderId"; private String accountHolderId; @@ -61,15 +69,17 @@ public class BalanceAccount { public static final String JSON_PROPERTY_MIGRATED_ACCOUNT_CODE = "migratedAccountCode"; private String migratedAccountCode; - public static final String JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION = - "platformPaymentConfiguration"; + public static final String JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION = "platformPaymentConfiguration"; private PlatformPaymentConfiguration platformPaymentConfiguration; public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - /** The status of the balance account, set to **active** by default. */ + /** + * The status of the balance account, set to **active** by default. + */ public enum StatusEnum { + ACTIVE(String.valueOf("active")), CLOSED(String.valueOf("closed")), @@ -83,7 +93,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -104,11 +114,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -119,23 +125,21 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_TIME_ZONE = "timeZone"; private String timeZone; - public BalanceAccount() {} + public BalanceAccount() { + } @JsonCreator public BalanceAccount( - @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_CODE) String migratedAccountCode) { + @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_CODE) String migratedAccountCode + ) { this(); this.migratedAccountCode = migratedAccountCode; } /** - * The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) - * associated with the balance account. + * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. * - * @param accountHolderId The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) - * associated with the balance account. + * @param accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. * @return the current {@code BalanceAccount} instance, allowing for method chaining */ public BalanceAccount accountHolderId(String accountHolderId) { @@ -144,13 +148,8 @@ public BalanceAccount accountHolderId(String accountHolderId) { } /** - * The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) - * associated with the balance account. - * - * @return accountHolderId The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) - * associated with the balance account. + * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. + * @return accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,13 +158,9 @@ public String getAccountHolderId() { } /** - * The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) - * associated with the balance account. + * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. * - * @param accountHolderId The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) - * associated with the balance account. + * @param accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,7 +189,6 @@ public BalanceAccount addBalancesItem(Balance balancesItem) { /** * List of balances with the amount and currency. - * * @return balances List of balances with the amount and currency. */ @JsonProperty(JSON_PROPERTY_BALANCES) @@ -215,17 +209,9 @@ public void setBalances(List balances) { } /** - * The default three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This - * is the currency displayed on the Balance Account overview page in your Customer Area. The - * default value is **EUR**. > After a balance account is created, you cannot change its - * default currency. + * The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. * - * @param defaultCurrencyCode The default three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. - * This is the currency displayed on the Balance Account overview page in your Customer Area. - * The default value is **EUR**. > After a balance account is created, you cannot change - * its default currency. + * @param defaultCurrencyCode The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. * @return the current {@code BalanceAccount} instance, allowing for method chaining */ public BalanceAccount defaultCurrencyCode(String defaultCurrencyCode) { @@ -234,17 +220,8 @@ public BalanceAccount defaultCurrencyCode(String defaultCurrencyCode) { } /** - * The default three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This - * is the currency displayed on the Balance Account overview page in your Customer Area. The - * default value is **EUR**. > After a balance account is created, you cannot change its - * default currency. - * - * @return defaultCurrencyCode The default three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. - * This is the currency displayed on the Balance Account overview page in your Customer Area. - * The default value is **EUR**. > After a balance account is created, you cannot change - * its default currency. + * The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. + * @return defaultCurrencyCode The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. */ @JsonProperty(JSON_PROPERTY_DEFAULT_CURRENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -253,17 +230,9 @@ public String getDefaultCurrencyCode() { } /** - * The default three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This - * is the currency displayed on the Balance Account overview page in your Customer Area. The - * default value is **EUR**. > After a balance account is created, you cannot change its - * default currency. + * The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. * - * @param defaultCurrencyCode The default three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. - * This is the currency displayed on the Balance Account overview page in your Customer Area. - * The default value is **EUR**. > After a balance account is created, you cannot change - * its default currency. + * @param defaultCurrencyCode The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. */ @JsonProperty(JSON_PROPERTY_DEFAULT_CURRENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -272,12 +241,9 @@ public void setDefaultCurrencyCode(String defaultCurrencyCode) { } /** - * A human-readable description of the balance account, maximum 300 characters. You can use this - * parameter to distinguish between multiple balance accounts under an account holder. + * A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. * - * @param description A human-readable description of the balance account, maximum 300 characters. - * You can use this parameter to distinguish between multiple balance accounts under an - * account holder. + * @param description A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. * @return the current {@code BalanceAccount} instance, allowing for method chaining */ public BalanceAccount description(String description) { @@ -286,12 +252,8 @@ public BalanceAccount description(String description) { } /** - * A human-readable description of the balance account, maximum 300 characters. You can use this - * parameter to distinguish between multiple balance accounts under an account holder. - * - * @return description A human-readable description of the balance account, maximum 300 - * characters. You can use this parameter to distinguish between multiple balance accounts - * under an account holder. + * A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. + * @return description A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -300,12 +262,9 @@ public String getDescription() { } /** - * A human-readable description of the balance account, maximum 300 characters. You can use this - * parameter to distinguish between multiple balance accounts under an account holder. + * A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. * - * @param description A human-readable description of the balance account, maximum 300 characters. - * You can use this parameter to distinguish between multiple balance accounts under an - * account holder. + * @param description A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -326,7 +285,6 @@ public BalanceAccount id(String id) { /** * The unique identifier of the balance account. - * * @return id The unique identifier of the balance account. */ @JsonProperty(JSON_PROPERTY_ID) @@ -347,14 +305,9 @@ public void setId(String id) { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be - * used for storing miscellaneous data as desired. > Note that during an update of metadata, - * the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific - * names and may be used for storing miscellaneous data as desired. > Note that during an - * update of metadata, the omission of existing key-value pairs will result in the deletion of - * those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. * @return the current {@code BalanceAccount} instance, allowing for method chaining */ public BalanceAccount metadata(Map metadata) { @@ -371,14 +324,8 @@ public BalanceAccount putMetadataItem(String key, String metadataItem) { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be - * used for storing miscellaneous data as desired. > Note that during an update of metadata, - * the omission of existing key-value pairs will result in the deletion of those key-value pairs. - * - * @return metadata A set of key and value pairs for general use. The keys do not have specific - * names and may be used for storing miscellaneous data as desired. > Note that during an - * update of metadata, the omission of existing key-value pairs will result in the deletion of - * those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * @return metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -387,14 +334,9 @@ public Map getMetadata() { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be - * used for storing miscellaneous data as desired. > Note that during an update of metadata, - * the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific - * names and may be used for storing miscellaneous data as desired. > Note that during an - * update of metadata, the omission of existing key-value pairs will result in the deletion of - * those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -404,9 +346,7 @@ public void setMetadata(Map metadata) { /** * The unique identifier of the account of the migrated account holder in the classic integration. - * - * @return migratedAccountCode The unique identifier of the account of the migrated account holder - * in the classic integration. + * @return migratedAccountCode The unique identifier of the account of the migrated account holder in the classic integration. */ @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -414,22 +354,21 @@ public String getMigratedAccountCode() { return migratedAccountCode; } + /** * platformPaymentConfiguration * - * @param platformPaymentConfiguration + * @param platformPaymentConfiguration * @return the current {@code BalanceAccount} instance, allowing for method chaining */ - public BalanceAccount platformPaymentConfiguration( - PlatformPaymentConfiguration platformPaymentConfiguration) { + public BalanceAccount platformPaymentConfiguration(PlatformPaymentConfiguration platformPaymentConfiguration) { this.platformPaymentConfiguration = platformPaymentConfiguration; return this; } /** * Get platformPaymentConfiguration - * - * @return platformPaymentConfiguration + * @return platformPaymentConfiguration */ @JsonProperty(JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -440,12 +379,11 @@ public PlatformPaymentConfiguration getPlatformPaymentConfiguration() { /** * platformPaymentConfiguration * - * @param platformPaymentConfiguration + * @param platformPaymentConfiguration */ @JsonProperty(JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPlatformPaymentConfiguration( - PlatformPaymentConfiguration platformPaymentConfiguration) { + public void setPlatformPaymentConfiguration(PlatformPaymentConfiguration platformPaymentConfiguration) { this.platformPaymentConfiguration = platformPaymentConfiguration; } @@ -462,7 +400,6 @@ public BalanceAccount reference(String reference) { /** * Your reference for the balance account, maximum 150 characters. - * * @return reference Your reference for the balance account, maximum 150 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -483,9 +420,9 @@ public void setReference(String reference) { } /** - * The status of the balance account, set to **active** by default. + * The status of the balance account, set to **active** by default. * - * @param status The status of the balance account, set to **active** by default. + * @param status The status of the balance account, set to **active** by default. * @return the current {@code BalanceAccount} instance, allowing for method chaining */ public BalanceAccount status(StatusEnum status) { @@ -494,9 +431,8 @@ public BalanceAccount status(StatusEnum status) { } /** - * The status of the balance account, set to **active** by default. - * - * @return status The status of the balance account, set to **active** by default. + * The status of the balance account, set to **active** by default. + * @return status The status of the balance account, set to **active** by default. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -505,9 +441,9 @@ public StatusEnum getStatus() { } /** - * The status of the balance account, set to **active** by default. + * The status of the balance account, set to **active** by default. * - * @param status The status of the balance account, set to **active** by default. + * @param status The status of the balance account, set to **active** by default. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -516,14 +452,9 @@ public void setStatus(StatusEnum status) { } /** - * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time - * zone of the account holder if no time zone is set. For possible values, see the [list of time - * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. - * Defaults to the time zone of the account holder if no time zone is set. For possible - * values, see the [list of time zone - * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * @return the current {@code BalanceAccount} instance, allowing for method chaining */ public BalanceAccount timeZone(String timeZone) { @@ -532,14 +463,8 @@ public BalanceAccount timeZone(String timeZone) { } /** - * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time - * zone of the account holder if no time zone is set. For possible values, see the [list of time - * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). - * - * @return timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. - * Defaults to the time zone of the account holder if no time zone is set. For possible - * values, see the [list of time zone - * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @return timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -548,14 +473,9 @@ public String getTimeZone() { } /** - * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time - * zone of the account holder if no time zone is set. For possible values, see the [list of time - * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. - * Defaults to the time zone of the account holder if no time zone is set. For possible - * values, see the [list of time zone - * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -563,7 +483,9 @@ public void setTimeZone(String timeZone) { this.timeZone = timeZone; } - /** Return true if this BalanceAccount object is equal to o. */ + /** + * Return true if this BalanceAccount object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -573,34 +495,22 @@ public boolean equals(Object o) { return false; } BalanceAccount balanceAccount = (BalanceAccount) o; - return Objects.equals(this.accountHolderId, balanceAccount.accountHolderId) - && Objects.equals(this.balances, balanceAccount.balances) - && Objects.equals(this.defaultCurrencyCode, balanceAccount.defaultCurrencyCode) - && Objects.equals(this.description, balanceAccount.description) - && Objects.equals(this.id, balanceAccount.id) - && Objects.equals(this.metadata, balanceAccount.metadata) - && Objects.equals(this.migratedAccountCode, balanceAccount.migratedAccountCode) - && Objects.equals( - this.platformPaymentConfiguration, balanceAccount.platformPaymentConfiguration) - && Objects.equals(this.reference, balanceAccount.reference) - && Objects.equals(this.status, balanceAccount.status) - && Objects.equals(this.timeZone, balanceAccount.timeZone); + return Objects.equals(this.accountHolderId, balanceAccount.accountHolderId) && + Objects.equals(this.balances, balanceAccount.balances) && + Objects.equals(this.defaultCurrencyCode, balanceAccount.defaultCurrencyCode) && + Objects.equals(this.description, balanceAccount.description) && + Objects.equals(this.id, balanceAccount.id) && + Objects.equals(this.metadata, balanceAccount.metadata) && + Objects.equals(this.migratedAccountCode, balanceAccount.migratedAccountCode) && + Objects.equals(this.platformPaymentConfiguration, balanceAccount.platformPaymentConfiguration) && + Objects.equals(this.reference, balanceAccount.reference) && + Objects.equals(this.status, balanceAccount.status) && + Objects.equals(this.timeZone, balanceAccount.timeZone); } @Override public int hashCode() { - return Objects.hash( - accountHolderId, - balances, - defaultCurrencyCode, - description, - id, - metadata, - migratedAccountCode, - platformPaymentConfiguration, - reference, - status, - timeZone); + return Objects.hash(accountHolderId, balances, defaultCurrencyCode, description, id, metadata, migratedAccountCode, platformPaymentConfiguration, reference, status, timeZone); } @Override @@ -609,18 +519,12 @@ public String toString() { sb.append("class BalanceAccount {\n"); sb.append(" accountHolderId: ").append(toIndentedString(accountHolderId)).append("\n"); sb.append(" balances: ").append(toIndentedString(balances)).append("\n"); - sb.append(" defaultCurrencyCode: ") - .append(toIndentedString(defaultCurrencyCode)) - .append("\n"); + sb.append(" defaultCurrencyCode: ").append(toIndentedString(defaultCurrencyCode)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" migratedAccountCode: ") - .append(toIndentedString(migratedAccountCode)) - .append("\n"); - sb.append(" platformPaymentConfiguration: ") - .append(toIndentedString(platformPaymentConfiguration)) - .append("\n"); + sb.append(" migratedAccountCode: ").append(toIndentedString(migratedAccountCode)).append("\n"); + sb.append(" platformPaymentConfiguration: ").append(toIndentedString(platformPaymentConfiguration)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); @@ -629,7 +533,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -638,7 +543,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BalanceAccount given an JSON string * * @param jsonString JSON string @@ -648,12 +553,11 @@ private String toIndentedString(Object o) { public static BalanceAccount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceAccount.class); } - - /** - * Convert an instance of BalanceAccount to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BalanceAccount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BalanceAccountBase.java b/src/main/java/com/adyen/model/balanceplatform/BalanceAccountBase.java index 5ffc89b49..5249572b7 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalanceAccountBase.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalanceAccountBase.java @@ -2,28 +2,34 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.PlatformPaymentConfiguration; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** BalanceAccountBase */ +/** + * BalanceAccountBase + */ @JsonPropertyOrder({ BalanceAccountBase.JSON_PROPERTY_ACCOUNT_HOLDER_ID, BalanceAccountBase.JSON_PROPERTY_DEFAULT_CURRENCY_CODE, @@ -36,6 +42,7 @@ BalanceAccountBase.JSON_PROPERTY_STATUS, BalanceAccountBase.JSON_PROPERTY_TIME_ZONE }) + public class BalanceAccountBase { public static final String JSON_PROPERTY_ACCOUNT_HOLDER_ID = "accountHolderId"; private String accountHolderId; @@ -55,15 +62,17 @@ public class BalanceAccountBase { public static final String JSON_PROPERTY_MIGRATED_ACCOUNT_CODE = "migratedAccountCode"; private String migratedAccountCode; - public static final String JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION = - "platformPaymentConfiguration"; + public static final String JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION = "platformPaymentConfiguration"; private PlatformPaymentConfiguration platformPaymentConfiguration; public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - /** The status of the balance account, set to **active** by default. */ + /** + * The status of the balance account, set to **active** by default. + */ public enum StatusEnum { + ACTIVE(String.valueOf("active")), CLOSED(String.valueOf("closed")), @@ -77,7 +86,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -98,11 +107,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -113,23 +118,21 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_TIME_ZONE = "timeZone"; private String timeZone; - public BalanceAccountBase() {} + public BalanceAccountBase() { + } @JsonCreator public BalanceAccountBase( - @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_CODE) String migratedAccountCode) { + @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_CODE) String migratedAccountCode + ) { this(); this.migratedAccountCode = migratedAccountCode; } /** - * The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) - * associated with the balance account. + * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. * - * @param accountHolderId The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) - * associated with the balance account. + * @param accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. * @return the current {@code BalanceAccountBase} instance, allowing for method chaining */ public BalanceAccountBase accountHolderId(String accountHolderId) { @@ -138,13 +141,8 @@ public BalanceAccountBase accountHolderId(String accountHolderId) { } /** - * The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) - * associated with the balance account. - * - * @return accountHolderId The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) - * associated with the balance account. + * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. + * @return accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -153,13 +151,9 @@ public String getAccountHolderId() { } /** - * The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) - * associated with the balance account. + * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. * - * @param accountHolderId The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) - * associated with the balance account. + * @param accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,17 +162,9 @@ public void setAccountHolderId(String accountHolderId) { } /** - * The default three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This - * is the currency displayed on the Balance Account overview page in your Customer Area. The - * default value is **EUR**. > After a balance account is created, you cannot change its - * default currency. + * The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. * - * @param defaultCurrencyCode The default three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. - * This is the currency displayed on the Balance Account overview page in your Customer Area. - * The default value is **EUR**. > After a balance account is created, you cannot change - * its default currency. + * @param defaultCurrencyCode The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. * @return the current {@code BalanceAccountBase} instance, allowing for method chaining */ public BalanceAccountBase defaultCurrencyCode(String defaultCurrencyCode) { @@ -187,17 +173,8 @@ public BalanceAccountBase defaultCurrencyCode(String defaultCurrencyCode) { } /** - * The default three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This - * is the currency displayed on the Balance Account overview page in your Customer Area. The - * default value is **EUR**. > After a balance account is created, you cannot change its - * default currency. - * - * @return defaultCurrencyCode The default three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. - * This is the currency displayed on the Balance Account overview page in your Customer Area. - * The default value is **EUR**. > After a balance account is created, you cannot change - * its default currency. + * The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. + * @return defaultCurrencyCode The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. */ @JsonProperty(JSON_PROPERTY_DEFAULT_CURRENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -206,17 +183,9 @@ public String getDefaultCurrencyCode() { } /** - * The default three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This - * is the currency displayed on the Balance Account overview page in your Customer Area. The - * default value is **EUR**. > After a balance account is created, you cannot change its - * default currency. + * The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. * - * @param defaultCurrencyCode The default three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. - * This is the currency displayed on the Balance Account overview page in your Customer Area. - * The default value is **EUR**. > After a balance account is created, you cannot change - * its default currency. + * @param defaultCurrencyCode The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. */ @JsonProperty(JSON_PROPERTY_DEFAULT_CURRENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -225,12 +194,9 @@ public void setDefaultCurrencyCode(String defaultCurrencyCode) { } /** - * A human-readable description of the balance account, maximum 300 characters. You can use this - * parameter to distinguish between multiple balance accounts under an account holder. + * A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. * - * @param description A human-readable description of the balance account, maximum 300 characters. - * You can use this parameter to distinguish between multiple balance accounts under an - * account holder. + * @param description A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. * @return the current {@code BalanceAccountBase} instance, allowing for method chaining */ public BalanceAccountBase description(String description) { @@ -239,12 +205,8 @@ public BalanceAccountBase description(String description) { } /** - * A human-readable description of the balance account, maximum 300 characters. You can use this - * parameter to distinguish between multiple balance accounts under an account holder. - * - * @return description A human-readable description of the balance account, maximum 300 - * characters. You can use this parameter to distinguish between multiple balance accounts - * under an account holder. + * A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. + * @return description A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -253,12 +215,9 @@ public String getDescription() { } /** - * A human-readable description of the balance account, maximum 300 characters. You can use this - * parameter to distinguish between multiple balance accounts under an account holder. + * A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. * - * @param description A human-readable description of the balance account, maximum 300 characters. - * You can use this parameter to distinguish between multiple balance accounts under an - * account holder. + * @param description A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -279,7 +238,6 @@ public BalanceAccountBase id(String id) { /** * The unique identifier of the balance account. - * * @return id The unique identifier of the balance account. */ @JsonProperty(JSON_PROPERTY_ID) @@ -300,14 +258,9 @@ public void setId(String id) { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be - * used for storing miscellaneous data as desired. > Note that during an update of metadata, - * the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific - * names and may be used for storing miscellaneous data as desired. > Note that during an - * update of metadata, the omission of existing key-value pairs will result in the deletion of - * those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. * @return the current {@code BalanceAccountBase} instance, allowing for method chaining */ public BalanceAccountBase metadata(Map metadata) { @@ -324,14 +277,8 @@ public BalanceAccountBase putMetadataItem(String key, String metadataItem) { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be - * used for storing miscellaneous data as desired. > Note that during an update of metadata, - * the omission of existing key-value pairs will result in the deletion of those key-value pairs. - * - * @return metadata A set of key and value pairs for general use. The keys do not have specific - * names and may be used for storing miscellaneous data as desired. > Note that during an - * update of metadata, the omission of existing key-value pairs will result in the deletion of - * those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * @return metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -340,14 +287,9 @@ public Map getMetadata() { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be - * used for storing miscellaneous data as desired. > Note that during an update of metadata, - * the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific - * names and may be used for storing miscellaneous data as desired. > Note that during an - * update of metadata, the omission of existing key-value pairs will result in the deletion of - * those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -357,9 +299,7 @@ public void setMetadata(Map metadata) { /** * The unique identifier of the account of the migrated account holder in the classic integration. - * - * @return migratedAccountCode The unique identifier of the account of the migrated account holder - * in the classic integration. + * @return migratedAccountCode The unique identifier of the account of the migrated account holder in the classic integration. */ @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -367,22 +307,21 @@ public String getMigratedAccountCode() { return migratedAccountCode; } + /** * platformPaymentConfiguration * - * @param platformPaymentConfiguration + * @param platformPaymentConfiguration * @return the current {@code BalanceAccountBase} instance, allowing for method chaining */ - public BalanceAccountBase platformPaymentConfiguration( - PlatformPaymentConfiguration platformPaymentConfiguration) { + public BalanceAccountBase platformPaymentConfiguration(PlatformPaymentConfiguration platformPaymentConfiguration) { this.platformPaymentConfiguration = platformPaymentConfiguration; return this; } /** * Get platformPaymentConfiguration - * - * @return platformPaymentConfiguration + * @return platformPaymentConfiguration */ @JsonProperty(JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -393,12 +332,11 @@ public PlatformPaymentConfiguration getPlatformPaymentConfiguration() { /** * platformPaymentConfiguration * - * @param platformPaymentConfiguration + * @param platformPaymentConfiguration */ @JsonProperty(JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPlatformPaymentConfiguration( - PlatformPaymentConfiguration platformPaymentConfiguration) { + public void setPlatformPaymentConfiguration(PlatformPaymentConfiguration platformPaymentConfiguration) { this.platformPaymentConfiguration = platformPaymentConfiguration; } @@ -415,7 +353,6 @@ public BalanceAccountBase reference(String reference) { /** * Your reference for the balance account, maximum 150 characters. - * * @return reference Your reference for the balance account, maximum 150 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -436,9 +373,9 @@ public void setReference(String reference) { } /** - * The status of the balance account, set to **active** by default. + * The status of the balance account, set to **active** by default. * - * @param status The status of the balance account, set to **active** by default. + * @param status The status of the balance account, set to **active** by default. * @return the current {@code BalanceAccountBase} instance, allowing for method chaining */ public BalanceAccountBase status(StatusEnum status) { @@ -447,9 +384,8 @@ public BalanceAccountBase status(StatusEnum status) { } /** - * The status of the balance account, set to **active** by default. - * - * @return status The status of the balance account, set to **active** by default. + * The status of the balance account, set to **active** by default. + * @return status The status of the balance account, set to **active** by default. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -458,9 +394,9 @@ public StatusEnum getStatus() { } /** - * The status of the balance account, set to **active** by default. + * The status of the balance account, set to **active** by default. * - * @param status The status of the balance account, set to **active** by default. + * @param status The status of the balance account, set to **active** by default. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -469,14 +405,9 @@ public void setStatus(StatusEnum status) { } /** - * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time - * zone of the account holder if no time zone is set. For possible values, see the [list of time - * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. - * Defaults to the time zone of the account holder if no time zone is set. For possible - * values, see the [list of time zone - * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * @return the current {@code BalanceAccountBase} instance, allowing for method chaining */ public BalanceAccountBase timeZone(String timeZone) { @@ -485,14 +416,8 @@ public BalanceAccountBase timeZone(String timeZone) { } /** - * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time - * zone of the account holder if no time zone is set. For possible values, see the [list of time - * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). - * - * @return timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. - * Defaults to the time zone of the account holder if no time zone is set. For possible - * values, see the [list of time zone - * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @return timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -501,14 +426,9 @@ public String getTimeZone() { } /** - * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time - * zone of the account holder if no time zone is set. For possible values, see the [list of time - * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. - * Defaults to the time zone of the account holder if no time zone is set. For possible - * values, see the [list of time zone - * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -516,7 +436,9 @@ public void setTimeZone(String timeZone) { this.timeZone = timeZone; } - /** Return true if this BalanceAccountBase object is equal to o. */ + /** + * Return true if this BalanceAccountBase object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -526,32 +448,21 @@ public boolean equals(Object o) { return false; } BalanceAccountBase balanceAccountBase = (BalanceAccountBase) o; - return Objects.equals(this.accountHolderId, balanceAccountBase.accountHolderId) - && Objects.equals(this.defaultCurrencyCode, balanceAccountBase.defaultCurrencyCode) - && Objects.equals(this.description, balanceAccountBase.description) - && Objects.equals(this.id, balanceAccountBase.id) - && Objects.equals(this.metadata, balanceAccountBase.metadata) - && Objects.equals(this.migratedAccountCode, balanceAccountBase.migratedAccountCode) - && Objects.equals( - this.platformPaymentConfiguration, balanceAccountBase.platformPaymentConfiguration) - && Objects.equals(this.reference, balanceAccountBase.reference) - && Objects.equals(this.status, balanceAccountBase.status) - && Objects.equals(this.timeZone, balanceAccountBase.timeZone); + return Objects.equals(this.accountHolderId, balanceAccountBase.accountHolderId) && + Objects.equals(this.defaultCurrencyCode, balanceAccountBase.defaultCurrencyCode) && + Objects.equals(this.description, balanceAccountBase.description) && + Objects.equals(this.id, balanceAccountBase.id) && + Objects.equals(this.metadata, balanceAccountBase.metadata) && + Objects.equals(this.migratedAccountCode, balanceAccountBase.migratedAccountCode) && + Objects.equals(this.platformPaymentConfiguration, balanceAccountBase.platformPaymentConfiguration) && + Objects.equals(this.reference, balanceAccountBase.reference) && + Objects.equals(this.status, balanceAccountBase.status) && + Objects.equals(this.timeZone, balanceAccountBase.timeZone); } @Override public int hashCode() { - return Objects.hash( - accountHolderId, - defaultCurrencyCode, - description, - id, - metadata, - migratedAccountCode, - platformPaymentConfiguration, - reference, - status, - timeZone); + return Objects.hash(accountHolderId, defaultCurrencyCode, description, id, metadata, migratedAccountCode, platformPaymentConfiguration, reference, status, timeZone); } @Override @@ -559,18 +470,12 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BalanceAccountBase {\n"); sb.append(" accountHolderId: ").append(toIndentedString(accountHolderId)).append("\n"); - sb.append(" defaultCurrencyCode: ") - .append(toIndentedString(defaultCurrencyCode)) - .append("\n"); + sb.append(" defaultCurrencyCode: ").append(toIndentedString(defaultCurrencyCode)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" migratedAccountCode: ") - .append(toIndentedString(migratedAccountCode)) - .append("\n"); - sb.append(" platformPaymentConfiguration: ") - .append(toIndentedString(platformPaymentConfiguration)) - .append("\n"); + sb.append(" migratedAccountCode: ").append(toIndentedString(migratedAccountCode)).append("\n"); + sb.append(" platformPaymentConfiguration: ").append(toIndentedString(platformPaymentConfiguration)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); @@ -579,7 +484,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -588,23 +494,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BalanceAccountBase given an JSON string * * @param jsonString JSON string * @return An instance of BalanceAccountBase - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BalanceAccountBase + * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceAccountBase */ public static BalanceAccountBase fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceAccountBase.class); } - - /** - * Convert an instance of BalanceAccountBase to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BalanceAccountBase to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BalanceAccountInfo.java b/src/main/java/com/adyen/model/balanceplatform/BalanceAccountInfo.java index f708e38b7..7fdea323c 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalanceAccountInfo.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalanceAccountInfo.java @@ -2,25 +2,34 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.PlatformPaymentConfiguration; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** BalanceAccountInfo */ + +/** + * BalanceAccountInfo + */ @JsonPropertyOrder({ BalanceAccountInfo.JSON_PROPERTY_ACCOUNT_HOLDER_ID, BalanceAccountInfo.JSON_PROPERTY_DEFAULT_CURRENCY_CODE, @@ -31,6 +40,7 @@ BalanceAccountInfo.JSON_PROPERTY_REFERENCE, BalanceAccountInfo.JSON_PROPERTY_TIME_ZONE }) + public class BalanceAccountInfo { public static final String JSON_PROPERTY_ACCOUNT_HOLDER_ID = "accountHolderId"; private String accountHolderId; @@ -47,8 +57,7 @@ public class BalanceAccountInfo { public static final String JSON_PROPERTY_MIGRATED_ACCOUNT_CODE = "migratedAccountCode"; private String migratedAccountCode; - public static final String JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION = - "platformPaymentConfiguration"; + public static final String JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION = "platformPaymentConfiguration"; private PlatformPaymentConfiguration platformPaymentConfiguration; public static final String JSON_PROPERTY_REFERENCE = "reference"; @@ -57,23 +66,21 @@ public class BalanceAccountInfo { public static final String JSON_PROPERTY_TIME_ZONE = "timeZone"; private String timeZone; - public BalanceAccountInfo() {} + public BalanceAccountInfo() { + } @JsonCreator public BalanceAccountInfo( - @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_CODE) String migratedAccountCode) { + @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_CODE) String migratedAccountCode + ) { this(); this.migratedAccountCode = migratedAccountCode; } /** - * The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) - * associated with the balance account. + * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. * - * @param accountHolderId The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) - * associated with the balance account. + * @param accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. * @return the current {@code BalanceAccountInfo} instance, allowing for method chaining */ public BalanceAccountInfo accountHolderId(String accountHolderId) { @@ -82,13 +89,8 @@ public BalanceAccountInfo accountHolderId(String accountHolderId) { } /** - * The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) - * associated with the balance account. - * - * @return accountHolderId The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) - * associated with the balance account. + * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. + * @return accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,13 +99,9 @@ public String getAccountHolderId() { } /** - * The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) - * associated with the balance account. + * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. * - * @param accountHolderId The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) - * associated with the balance account. + * @param accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,17 +110,9 @@ public void setAccountHolderId(String accountHolderId) { } /** - * The default three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This - * is the currency displayed on the Balance Account overview page in your Customer Area. The - * default value is **EUR**. > After a balance account is created, you cannot change its - * default currency. + * The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. * - * @param defaultCurrencyCode The default three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. - * This is the currency displayed on the Balance Account overview page in your Customer Area. - * The default value is **EUR**. > After a balance account is created, you cannot change - * its default currency. + * @param defaultCurrencyCode The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. * @return the current {@code BalanceAccountInfo} instance, allowing for method chaining */ public BalanceAccountInfo defaultCurrencyCode(String defaultCurrencyCode) { @@ -131,17 +121,8 @@ public BalanceAccountInfo defaultCurrencyCode(String defaultCurrencyCode) { } /** - * The default three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This - * is the currency displayed on the Balance Account overview page in your Customer Area. The - * default value is **EUR**. > After a balance account is created, you cannot change its - * default currency. - * - * @return defaultCurrencyCode The default three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. - * This is the currency displayed on the Balance Account overview page in your Customer Area. - * The default value is **EUR**. > After a balance account is created, you cannot change - * its default currency. + * The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. + * @return defaultCurrencyCode The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. */ @JsonProperty(JSON_PROPERTY_DEFAULT_CURRENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,17 +131,9 @@ public String getDefaultCurrencyCode() { } /** - * The default three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This - * is the currency displayed on the Balance Account overview page in your Customer Area. The - * default value is **EUR**. > After a balance account is created, you cannot change its - * default currency. + * The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. * - * @param defaultCurrencyCode The default three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. - * This is the currency displayed on the Balance Account overview page in your Customer Area. - * The default value is **EUR**. > After a balance account is created, you cannot change - * its default currency. + * @param defaultCurrencyCode The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. */ @JsonProperty(JSON_PROPERTY_DEFAULT_CURRENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,12 +142,9 @@ public void setDefaultCurrencyCode(String defaultCurrencyCode) { } /** - * A human-readable description of the balance account, maximum 300 characters. You can use this - * parameter to distinguish between multiple balance accounts under an account holder. + * A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. * - * @param description A human-readable description of the balance account, maximum 300 characters. - * You can use this parameter to distinguish between multiple balance accounts under an - * account holder. + * @param description A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. * @return the current {@code BalanceAccountInfo} instance, allowing for method chaining */ public BalanceAccountInfo description(String description) { @@ -183,12 +153,8 @@ public BalanceAccountInfo description(String description) { } /** - * A human-readable description of the balance account, maximum 300 characters. You can use this - * parameter to distinguish between multiple balance accounts under an account holder. - * - * @return description A human-readable description of the balance account, maximum 300 - * characters. You can use this parameter to distinguish between multiple balance accounts - * under an account holder. + * A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. + * @return description A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -197,12 +163,9 @@ public String getDescription() { } /** - * A human-readable description of the balance account, maximum 300 characters. You can use this - * parameter to distinguish between multiple balance accounts under an account holder. + * A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. * - * @param description A human-readable description of the balance account, maximum 300 characters. - * You can use this parameter to distinguish between multiple balance accounts under an - * account holder. + * @param description A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,14 +174,9 @@ public void setDescription(String description) { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be - * used for storing miscellaneous data as desired. > Note that during an update of metadata, - * the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific - * names and may be used for storing miscellaneous data as desired. > Note that during an - * update of metadata, the omission of existing key-value pairs will result in the deletion of - * those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. * @return the current {@code BalanceAccountInfo} instance, allowing for method chaining */ public BalanceAccountInfo metadata(Map metadata) { @@ -235,14 +193,8 @@ public BalanceAccountInfo putMetadataItem(String key, String metadataItem) { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be - * used for storing miscellaneous data as desired. > Note that during an update of metadata, - * the omission of existing key-value pairs will result in the deletion of those key-value pairs. - * - * @return metadata A set of key and value pairs for general use. The keys do not have specific - * names and may be used for storing miscellaneous data as desired. > Note that during an - * update of metadata, the omission of existing key-value pairs will result in the deletion of - * those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * @return metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -251,14 +203,9 @@ public Map getMetadata() { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be - * used for storing miscellaneous data as desired. > Note that during an update of metadata, - * the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific - * names and may be used for storing miscellaneous data as desired. > Note that during an - * update of metadata, the omission of existing key-value pairs will result in the deletion of - * those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -268,9 +215,7 @@ public void setMetadata(Map metadata) { /** * The unique identifier of the account of the migrated account holder in the classic integration. - * - * @return migratedAccountCode The unique identifier of the account of the migrated account holder - * in the classic integration. + * @return migratedAccountCode The unique identifier of the account of the migrated account holder in the classic integration. */ @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -278,22 +223,21 @@ public String getMigratedAccountCode() { return migratedAccountCode; } + /** * platformPaymentConfiguration * - * @param platformPaymentConfiguration + * @param platformPaymentConfiguration * @return the current {@code BalanceAccountInfo} instance, allowing for method chaining */ - public BalanceAccountInfo platformPaymentConfiguration( - PlatformPaymentConfiguration platformPaymentConfiguration) { + public BalanceAccountInfo platformPaymentConfiguration(PlatformPaymentConfiguration platformPaymentConfiguration) { this.platformPaymentConfiguration = platformPaymentConfiguration; return this; } /** * Get platformPaymentConfiguration - * - * @return platformPaymentConfiguration + * @return platformPaymentConfiguration */ @JsonProperty(JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -304,12 +248,11 @@ public PlatformPaymentConfiguration getPlatformPaymentConfiguration() { /** * platformPaymentConfiguration * - * @param platformPaymentConfiguration + * @param platformPaymentConfiguration */ @JsonProperty(JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPlatformPaymentConfiguration( - PlatformPaymentConfiguration platformPaymentConfiguration) { + public void setPlatformPaymentConfiguration(PlatformPaymentConfiguration platformPaymentConfiguration) { this.platformPaymentConfiguration = platformPaymentConfiguration; } @@ -326,7 +269,6 @@ public BalanceAccountInfo reference(String reference) { /** * Your reference for the balance account, maximum 150 characters. - * * @return reference Your reference for the balance account, maximum 150 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -347,14 +289,9 @@ public void setReference(String reference) { } /** - * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time - * zone of the account holder if no time zone is set. For possible values, see the [list of time - * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. - * Defaults to the time zone of the account holder if no time zone is set. For possible - * values, see the [list of time zone - * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * @return the current {@code BalanceAccountInfo} instance, allowing for method chaining */ public BalanceAccountInfo timeZone(String timeZone) { @@ -363,14 +300,8 @@ public BalanceAccountInfo timeZone(String timeZone) { } /** - * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time - * zone of the account holder if no time zone is set. For possible values, see the [list of time - * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). - * - * @return timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. - * Defaults to the time zone of the account holder if no time zone is set. For possible - * values, see the [list of time zone - * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @return timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -379,14 +310,9 @@ public String getTimeZone() { } /** - * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time - * zone of the account holder if no time zone is set. For possible values, see the [list of time - * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. - * Defaults to the time zone of the account holder if no time zone is set. For possible - * values, see the [list of time zone - * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -394,7 +320,9 @@ public void setTimeZone(String timeZone) { this.timeZone = timeZone; } - /** Return true if this BalanceAccountInfo object is equal to o. */ + /** + * Return true if this BalanceAccountInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -404,28 +332,19 @@ public boolean equals(Object o) { return false; } BalanceAccountInfo balanceAccountInfo = (BalanceAccountInfo) o; - return Objects.equals(this.accountHolderId, balanceAccountInfo.accountHolderId) - && Objects.equals(this.defaultCurrencyCode, balanceAccountInfo.defaultCurrencyCode) - && Objects.equals(this.description, balanceAccountInfo.description) - && Objects.equals(this.metadata, balanceAccountInfo.metadata) - && Objects.equals(this.migratedAccountCode, balanceAccountInfo.migratedAccountCode) - && Objects.equals( - this.platformPaymentConfiguration, balanceAccountInfo.platformPaymentConfiguration) - && Objects.equals(this.reference, balanceAccountInfo.reference) - && Objects.equals(this.timeZone, balanceAccountInfo.timeZone); + return Objects.equals(this.accountHolderId, balanceAccountInfo.accountHolderId) && + Objects.equals(this.defaultCurrencyCode, balanceAccountInfo.defaultCurrencyCode) && + Objects.equals(this.description, balanceAccountInfo.description) && + Objects.equals(this.metadata, balanceAccountInfo.metadata) && + Objects.equals(this.migratedAccountCode, balanceAccountInfo.migratedAccountCode) && + Objects.equals(this.platformPaymentConfiguration, balanceAccountInfo.platformPaymentConfiguration) && + Objects.equals(this.reference, balanceAccountInfo.reference) && + Objects.equals(this.timeZone, balanceAccountInfo.timeZone); } @Override public int hashCode() { - return Objects.hash( - accountHolderId, - defaultCurrencyCode, - description, - metadata, - migratedAccountCode, - platformPaymentConfiguration, - reference, - timeZone); + return Objects.hash(accountHolderId, defaultCurrencyCode, description, metadata, migratedAccountCode, platformPaymentConfiguration, reference, timeZone); } @Override @@ -433,17 +352,11 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BalanceAccountInfo {\n"); sb.append(" accountHolderId: ").append(toIndentedString(accountHolderId)).append("\n"); - sb.append(" defaultCurrencyCode: ") - .append(toIndentedString(defaultCurrencyCode)) - .append("\n"); + sb.append(" defaultCurrencyCode: ").append(toIndentedString(defaultCurrencyCode)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" migratedAccountCode: ") - .append(toIndentedString(migratedAccountCode)) - .append("\n"); - sb.append(" platformPaymentConfiguration: ") - .append(toIndentedString(platformPaymentConfiguration)) - .append("\n"); + sb.append(" migratedAccountCode: ").append(toIndentedString(migratedAccountCode)).append("\n"); + sb.append(" platformPaymentConfiguration: ").append(toIndentedString(platformPaymentConfiguration)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); sb.append("}"); @@ -451,7 +364,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -460,23 +374,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BalanceAccountInfo given an JSON string * * @param jsonString JSON string * @return An instance of BalanceAccountInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BalanceAccountInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceAccountInfo */ public static BalanceAccountInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceAccountInfo.class); } - - /** - * Convert an instance of BalanceAccountInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BalanceAccountInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BalanceAccountUpdateRequest.java b/src/main/java/com/adyen/model/balanceplatform/BalanceAccountUpdateRequest.java index 5cd3126b2..74303eba8 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalanceAccountUpdateRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalanceAccountUpdateRequest.java @@ -2,28 +2,34 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.PlatformPaymentConfiguration; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** BalanceAccountUpdateRequest */ + +/** + * BalanceAccountUpdateRequest + */ @JsonPropertyOrder({ BalanceAccountUpdateRequest.JSON_PROPERTY_ACCOUNT_HOLDER_ID, BalanceAccountUpdateRequest.JSON_PROPERTY_DESCRIPTION, @@ -33,6 +39,7 @@ BalanceAccountUpdateRequest.JSON_PROPERTY_STATUS, BalanceAccountUpdateRequest.JSON_PROPERTY_TIME_ZONE }) + public class BalanceAccountUpdateRequest { public static final String JSON_PROPERTY_ACCOUNT_HOLDER_ID = "accountHolderId"; private String accountHolderId; @@ -43,19 +50,17 @@ public class BalanceAccountUpdateRequest { public static final String JSON_PROPERTY_METADATA = "metadata"; private Map metadata; - public static final String JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION = - "platformPaymentConfiguration"; + public static final String JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION = "platformPaymentConfiguration"; private PlatformPaymentConfiguration platformPaymentConfiguration; public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; /** - * The status of the balance account. Payment instruments linked to the balance account can only - * be used if the balance account status is **active**. Possible values: **active**, **closed**, - * **suspended**. + * The status of the balance account. Payment instruments linked to the balance account can only be used if the balance account status is **active**. Possible values: **active**, **closed**, **suspended**. */ public enum StatusEnum { + ACTIVE(String.valueOf("active")), CLOSED(String.valueOf("closed")), @@ -69,7 +74,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -90,11 +95,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -105,16 +106,13 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_TIME_ZONE = "timeZone"; private String timeZone; - public BalanceAccountUpdateRequest() {} + public BalanceAccountUpdateRequest() { + } /** - * The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) - * associated with the balance account. + * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. * - * @param accountHolderId The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) - * associated with the balance account. + * @param accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. * @return the current {@code BalanceAccountUpdateRequest} instance, allowing for method chaining */ public BalanceAccountUpdateRequest accountHolderId(String accountHolderId) { @@ -123,13 +121,8 @@ public BalanceAccountUpdateRequest accountHolderId(String accountHolderId) { } /** - * The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) - * associated with the balance account. - * - * @return accountHolderId The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) - * associated with the balance account. + * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. + * @return accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,13 +131,9 @@ public String getAccountHolderId() { } /** - * The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) - * associated with the balance account. + * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. * - * @param accountHolderId The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) - * associated with the balance account. + * @param accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -153,11 +142,9 @@ public void setAccountHolderId(String accountHolderId) { } /** - * A human-readable description of the balance account. You can use this parameter to distinguish - * between multiple balance accounts under an account holder. + * A human-readable description of the balance account. You can use this parameter to distinguish between multiple balance accounts under an account holder. * - * @param description A human-readable description of the balance account. You can use this - * parameter to distinguish between multiple balance accounts under an account holder. + * @param description A human-readable description of the balance account. You can use this parameter to distinguish between multiple balance accounts under an account holder. * @return the current {@code BalanceAccountUpdateRequest} instance, allowing for method chaining */ public BalanceAccountUpdateRequest description(String description) { @@ -166,11 +153,8 @@ public BalanceAccountUpdateRequest description(String description) { } /** - * A human-readable description of the balance account. You can use this parameter to distinguish - * between multiple balance accounts under an account holder. - * - * @return description A human-readable description of the balance account. You can use this - * parameter to distinguish between multiple balance accounts under an account holder. + * A human-readable description of the balance account. You can use this parameter to distinguish between multiple balance accounts under an account holder. + * @return description A human-readable description of the balance account. You can use this parameter to distinguish between multiple balance accounts under an account holder. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,11 +163,9 @@ public String getDescription() { } /** - * A human-readable description of the balance account. You can use this parameter to distinguish - * between multiple balance accounts under an account holder. + * A human-readable description of the balance account. You can use this parameter to distinguish between multiple balance accounts under an account holder. * - * @param description A human-readable description of the balance account. You can use this - * parameter to distinguish between multiple balance accounts under an account holder. + * @param description A human-readable description of the balance account. You can use this parameter to distinguish between multiple balance accounts under an account holder. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,14 +174,9 @@ public void setDescription(String description) { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be - * used for storing miscellaneous data as desired. > Note that during an update of metadata, - * the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific - * names and may be used for storing miscellaneous data as desired. > Note that during an - * update of metadata, the omission of existing key-value pairs will result in the deletion of - * those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. * @return the current {@code BalanceAccountUpdateRequest} instance, allowing for method chaining */ public BalanceAccountUpdateRequest metadata(Map metadata) { @@ -216,14 +193,8 @@ public BalanceAccountUpdateRequest putMetadataItem(String key, String metadataIt } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be - * used for storing miscellaneous data as desired. > Note that during an update of metadata, - * the omission of existing key-value pairs will result in the deletion of those key-value pairs. - * - * @return metadata A set of key and value pairs for general use. The keys do not have specific - * names and may be used for storing miscellaneous data as desired. > Note that during an - * update of metadata, the omission of existing key-value pairs will result in the deletion of - * those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * @return metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,14 +203,9 @@ public Map getMetadata() { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be - * used for storing miscellaneous data as desired. > Note that during an update of metadata, - * the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific - * names and may be used for storing miscellaneous data as desired. > Note that during an - * update of metadata, the omission of existing key-value pairs will result in the deletion of - * those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,19 +216,17 @@ public void setMetadata(Map metadata) { /** * platformPaymentConfiguration * - * @param platformPaymentConfiguration + * @param platformPaymentConfiguration * @return the current {@code BalanceAccountUpdateRequest} instance, allowing for method chaining */ - public BalanceAccountUpdateRequest platformPaymentConfiguration( - PlatformPaymentConfiguration platformPaymentConfiguration) { + public BalanceAccountUpdateRequest platformPaymentConfiguration(PlatformPaymentConfiguration platformPaymentConfiguration) { this.platformPaymentConfiguration = platformPaymentConfiguration; return this; } /** * Get platformPaymentConfiguration - * - * @return platformPaymentConfiguration + * @return platformPaymentConfiguration */ @JsonProperty(JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -273,12 +237,11 @@ public PlatformPaymentConfiguration getPlatformPaymentConfiguration() { /** * platformPaymentConfiguration * - * @param platformPaymentConfiguration + * @param platformPaymentConfiguration */ @JsonProperty(JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPlatformPaymentConfiguration( - PlatformPaymentConfiguration platformPaymentConfiguration) { + public void setPlatformPaymentConfiguration(PlatformPaymentConfiguration platformPaymentConfiguration) { this.platformPaymentConfiguration = platformPaymentConfiguration; } @@ -295,7 +258,6 @@ public BalanceAccountUpdateRequest reference(String reference) { /** * Your reference to the balance account. - * * @return reference Your reference to the balance account. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -316,13 +278,9 @@ public void setReference(String reference) { } /** - * The status of the balance account. Payment instruments linked to the balance account can only - * be used if the balance account status is **active**. Possible values: **active**, **closed**, - * **suspended**. + * The status of the balance account. Payment instruments linked to the balance account can only be used if the balance account status is **active**. Possible values: **active**, **closed**, **suspended**. * - * @param status The status of the balance account. Payment instruments linked to the balance - * account can only be used if the balance account status is **active**. Possible values: - * **active**, **closed**, **suspended**. + * @param status The status of the balance account. Payment instruments linked to the balance account can only be used if the balance account status is **active**. Possible values: **active**, **closed**, **suspended**. * @return the current {@code BalanceAccountUpdateRequest} instance, allowing for method chaining */ public BalanceAccountUpdateRequest status(StatusEnum status) { @@ -331,13 +289,8 @@ public BalanceAccountUpdateRequest status(StatusEnum status) { } /** - * The status of the balance account. Payment instruments linked to the balance account can only - * be used if the balance account status is **active**. Possible values: **active**, **closed**, - * **suspended**. - * - * @return status The status of the balance account. Payment instruments linked to the balance - * account can only be used if the balance account status is **active**. Possible values: - * **active**, **closed**, **suspended**. + * The status of the balance account. Payment instruments linked to the balance account can only be used if the balance account status is **active**. Possible values: **active**, **closed**, **suspended**. + * @return status The status of the balance account. Payment instruments linked to the balance account can only be used if the balance account status is **active**. Possible values: **active**, **closed**, **suspended**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -346,13 +299,9 @@ public StatusEnum getStatus() { } /** - * The status of the balance account. Payment instruments linked to the balance account can only - * be used if the balance account status is **active**. Possible values: **active**, **closed**, - * **suspended**. + * The status of the balance account. Payment instruments linked to the balance account can only be used if the balance account status is **active**. Possible values: **active**, **closed**, **suspended**. * - * @param status The status of the balance account. Payment instruments linked to the balance - * account can only be used if the balance account status is **active**. Possible values: - * **active**, **closed**, **suspended**. + * @param status The status of the balance account. Payment instruments linked to the balance account can only be used if the balance account status is **active**. Possible values: **active**, **closed**, **suspended**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -361,14 +310,9 @@ public void setStatus(StatusEnum status) { } /** - * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time - * zone of the account holder if no time zone is set. For possible values, see the [list of time - * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. - * Defaults to the time zone of the account holder if no time zone is set. For possible - * values, see the [list of time zone - * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * @return the current {@code BalanceAccountUpdateRequest} instance, allowing for method chaining */ public BalanceAccountUpdateRequest timeZone(String timeZone) { @@ -377,14 +321,8 @@ public BalanceAccountUpdateRequest timeZone(String timeZone) { } /** - * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time - * zone of the account holder if no time zone is set. For possible values, see the [list of time - * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). - * - * @return timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. - * Defaults to the time zone of the account holder if no time zone is set. For possible - * values, see the [list of time zone - * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @return timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -393,14 +331,9 @@ public String getTimeZone() { } /** - * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time - * zone of the account holder if no time zone is set. For possible values, see the [list of time - * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. - * Defaults to the time zone of the account holder if no time zone is set. For possible - * values, see the [list of time zone - * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -408,7 +341,9 @@ public void setTimeZone(String timeZone) { this.timeZone = timeZone; } - /** Return true if this BalanceAccountUpdateRequest object is equal to o. */ + /** + * Return true if this BalanceAccountUpdateRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -418,27 +353,18 @@ public boolean equals(Object o) { return false; } BalanceAccountUpdateRequest balanceAccountUpdateRequest = (BalanceAccountUpdateRequest) o; - return Objects.equals(this.accountHolderId, balanceAccountUpdateRequest.accountHolderId) - && Objects.equals(this.description, balanceAccountUpdateRequest.description) - && Objects.equals(this.metadata, balanceAccountUpdateRequest.metadata) - && Objects.equals( - this.platformPaymentConfiguration, - balanceAccountUpdateRequest.platformPaymentConfiguration) - && Objects.equals(this.reference, balanceAccountUpdateRequest.reference) - && Objects.equals(this.status, balanceAccountUpdateRequest.status) - && Objects.equals(this.timeZone, balanceAccountUpdateRequest.timeZone); + return Objects.equals(this.accountHolderId, balanceAccountUpdateRequest.accountHolderId) && + Objects.equals(this.description, balanceAccountUpdateRequest.description) && + Objects.equals(this.metadata, balanceAccountUpdateRequest.metadata) && + Objects.equals(this.platformPaymentConfiguration, balanceAccountUpdateRequest.platformPaymentConfiguration) && + Objects.equals(this.reference, balanceAccountUpdateRequest.reference) && + Objects.equals(this.status, balanceAccountUpdateRequest.status) && + Objects.equals(this.timeZone, balanceAccountUpdateRequest.timeZone); } @Override public int hashCode() { - return Objects.hash( - accountHolderId, - description, - metadata, - platformPaymentConfiguration, - reference, - status, - timeZone); + return Objects.hash(accountHolderId, description, metadata, platformPaymentConfiguration, reference, status, timeZone); } @Override @@ -448,9 +374,7 @@ public String toString() { sb.append(" accountHolderId: ").append(toIndentedString(accountHolderId)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" platformPaymentConfiguration: ") - .append(toIndentedString(platformPaymentConfiguration)) - .append("\n"); + sb.append(" platformPaymentConfiguration: ").append(toIndentedString(platformPaymentConfiguration)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); @@ -459,7 +383,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -468,24 +393,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BalanceAccountUpdateRequest given an JSON string * * @param jsonString JSON string * @return An instance of BalanceAccountUpdateRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BalanceAccountUpdateRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceAccountUpdateRequest */ - public static BalanceAccountUpdateRequest fromJson(String jsonString) - throws JsonProcessingException { + public static BalanceAccountUpdateRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceAccountUpdateRequest.class); } - - /** - * Convert an instance of BalanceAccountUpdateRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BalanceAccountUpdateRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BalancePlatform.java b/src/main/java/com/adyen/model/balanceplatform/BalancePlatform.java index af312dddc..2a2ea5932 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalancePlatform.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalancePlatform.java @@ -2,27 +2,37 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** BalancePlatform */ + +/** + * BalancePlatform + */ @JsonPropertyOrder({ BalancePlatform.JSON_PROPERTY_DESCRIPTION, BalancePlatform.JSON_PROPERTY_ID, BalancePlatform.JSON_PROPERTY_STATUS }) + public class BalancePlatform { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -33,7 +43,8 @@ public class BalancePlatform { public static final String JSON_PROPERTY_STATUS = "status"; private String status; - public BalancePlatform() {} + public BalancePlatform() { + } /** * Your description of the balance platform. @@ -48,7 +59,6 @@ public BalancePlatform description(String description) { /** * Your description of the balance platform. - * * @return description Your description of the balance platform. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -81,7 +91,6 @@ public BalancePlatform id(String id) { /** * The unique identifier of the balance platform. - * * @return id The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_ID) @@ -102,11 +111,9 @@ public void setId(String id) { } /** - * The status of the balance platform. Possible values: **Active**, **Inactive**, **Closed**, - * **Suspended**. + * The status of the balance platform. Possible values: **Active**, **Inactive**, **Closed**, **Suspended**. * - * @param status The status of the balance platform. Possible values: **Active**, **Inactive**, - * **Closed**, **Suspended**. + * @param status The status of the balance platform. Possible values: **Active**, **Inactive**, **Closed**, **Suspended**. * @return the current {@code BalancePlatform} instance, allowing for method chaining */ public BalancePlatform status(String status) { @@ -115,11 +122,8 @@ public BalancePlatform status(String status) { } /** - * The status of the balance platform. Possible values: **Active**, **Inactive**, **Closed**, - * **Suspended**. - * - * @return status The status of the balance platform. Possible values: **Active**, **Inactive**, - * **Closed**, **Suspended**. + * The status of the balance platform. Possible values: **Active**, **Inactive**, **Closed**, **Suspended**. + * @return status The status of the balance platform. Possible values: **Active**, **Inactive**, **Closed**, **Suspended**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,11 +132,9 @@ public String getStatus() { } /** - * The status of the balance platform. Possible values: **Active**, **Inactive**, **Closed**, - * **Suspended**. + * The status of the balance platform. Possible values: **Active**, **Inactive**, **Closed**, **Suspended**. * - * @param status The status of the balance platform. Possible values: **Active**, **Inactive**, - * **Closed**, **Suspended**. + * @param status The status of the balance platform. Possible values: **Active**, **Inactive**, **Closed**, **Suspended**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,7 +142,9 @@ public void setStatus(String status) { this.status = status; } - /** Return true if this BalancePlatform object is equal to o. */ + /** + * Return true if this BalancePlatform object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -150,9 +154,9 @@ public boolean equals(Object o) { return false; } BalancePlatform balancePlatform = (BalancePlatform) o; - return Objects.equals(this.description, balancePlatform.description) - && Objects.equals(this.id, balancePlatform.id) - && Objects.equals(this.status, balancePlatform.status); + return Objects.equals(this.description, balancePlatform.description) && + Objects.equals(this.id, balancePlatform.id) && + Objects.equals(this.status, balancePlatform.status); } @Override @@ -172,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -181,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BalancePlatform given an JSON string * * @param jsonString JSON string @@ -191,12 +196,11 @@ private String toIndentedString(Object o) { public static BalancePlatform fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalancePlatform.class); } - - /** - * Convert an instance of BalancePlatform to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BalancePlatform to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BalanceSweepConfigurationsResponse.java b/src/main/java/com/adyen/model/balanceplatform/BalanceSweepConfigurationsResponse.java index 625bfc41b..7b8fa9f21 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalanceSweepConfigurationsResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalanceSweepConfigurationsResponse.java @@ -2,29 +2,40 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.SweepConfigurationV2; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** BalanceSweepConfigurationsResponse */ +/** + * BalanceSweepConfigurationsResponse + */ @JsonPropertyOrder({ BalanceSweepConfigurationsResponse.JSON_PROPERTY_HAS_NEXT, BalanceSweepConfigurationsResponse.JSON_PROPERTY_HAS_PREVIOUS, BalanceSweepConfigurationsResponse.JSON_PROPERTY_SWEEPS }) + public class BalanceSweepConfigurationsResponse { public static final String JSON_PROPERTY_HAS_NEXT = "hasNext"; private Boolean hasNext; @@ -35,14 +46,14 @@ public class BalanceSweepConfigurationsResponse { public static final String JSON_PROPERTY_SWEEPS = "sweeps"; private List sweeps; - public BalanceSweepConfigurationsResponse() {} + public BalanceSweepConfigurationsResponse() { + } /** * Indicates whether there are more items on the next page. * * @param hasNext Indicates whether there are more items on the next page. - * @return the current {@code BalanceSweepConfigurationsResponse} instance, allowing for method - * chaining + * @return the current {@code BalanceSweepConfigurationsResponse} instance, allowing for method chaining */ public BalanceSweepConfigurationsResponse hasNext(Boolean hasNext) { this.hasNext = hasNext; @@ -51,7 +62,6 @@ public BalanceSweepConfigurationsResponse hasNext(Boolean hasNext) { /** * Indicates whether there are more items on the next page. - * * @return hasNext Indicates whether there are more items on the next page. */ @JsonProperty(JSON_PROPERTY_HAS_NEXT) @@ -75,8 +85,7 @@ public void setHasNext(Boolean hasNext) { * Indicates whether there are more items on the previous page. * * @param hasPrevious Indicates whether there are more items on the previous page. - * @return the current {@code BalanceSweepConfigurationsResponse} instance, allowing for method - * chaining + * @return the current {@code BalanceSweepConfigurationsResponse} instance, allowing for method chaining */ public BalanceSweepConfigurationsResponse hasPrevious(Boolean hasPrevious) { this.hasPrevious = hasPrevious; @@ -85,7 +94,6 @@ public BalanceSweepConfigurationsResponse hasPrevious(Boolean hasPrevious) { /** * Indicates whether there are more items on the previous page. - * * @return hasPrevious Indicates whether there are more items on the previous page. */ @JsonProperty(JSON_PROPERTY_HAS_PREVIOUS) @@ -109,8 +117,7 @@ public void setHasPrevious(Boolean hasPrevious) { * List of sweeps associated with the balance account. * * @param sweeps List of sweeps associated with the balance account. - * @return the current {@code BalanceSweepConfigurationsResponse} instance, allowing for method - * chaining + * @return the current {@code BalanceSweepConfigurationsResponse} instance, allowing for method chaining */ public BalanceSweepConfigurationsResponse sweeps(List sweeps) { this.sweeps = sweeps; @@ -127,7 +134,6 @@ public BalanceSweepConfigurationsResponse addSweepsItem(SweepConfigurationV2 swe /** * List of sweeps associated with the balance account. - * * @return sweeps List of sweeps associated with the balance account. */ @JsonProperty(JSON_PROPERTY_SWEEPS) @@ -147,7 +153,9 @@ public void setSweeps(List sweeps) { this.sweeps = sweeps; } - /** Return true if this BalanceSweepConfigurationsResponse object is equal to o. */ + /** + * Return true if this BalanceSweepConfigurationsResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,11 +164,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - BalanceSweepConfigurationsResponse balanceSweepConfigurationsResponse = - (BalanceSweepConfigurationsResponse) o; - return Objects.equals(this.hasNext, balanceSweepConfigurationsResponse.hasNext) - && Objects.equals(this.hasPrevious, balanceSweepConfigurationsResponse.hasPrevious) - && Objects.equals(this.sweeps, balanceSweepConfigurationsResponse.sweeps); + BalanceSweepConfigurationsResponse balanceSweepConfigurationsResponse = (BalanceSweepConfigurationsResponse) o; + return Objects.equals(this.hasNext, balanceSweepConfigurationsResponse.hasNext) && + Objects.equals(this.hasPrevious, balanceSweepConfigurationsResponse.hasPrevious) && + Objects.equals(this.sweeps, balanceSweepConfigurationsResponse.sweeps); } @Override @@ -180,7 +187,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -189,24 +197,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BalanceSweepConfigurationsResponse given an JSON string * * @param jsonString JSON string * @return An instance of BalanceSweepConfigurationsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BalanceSweepConfigurationsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceSweepConfigurationsResponse */ - public static BalanceSweepConfigurationsResponse fromJson(String jsonString) - throws JsonProcessingException { + public static BalanceSweepConfigurationsResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceSweepConfigurationsResponse.class); } - - /** - * Convert an instance of BalanceSweepConfigurationsResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BalanceSweepConfigurationsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSetting.java b/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSetting.java index b115c25ff..fb795016f 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSetting.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSetting.java @@ -2,50 +2,61 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.Condition; +import com.adyen.model.balanceplatform.SettingType; +import com.adyen.model.balanceplatform.Target; +import com.adyen.model.balanceplatform.WebhookSetting; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * BalanceWebhookSetting + */ +@JsonPropertyOrder({ + BalanceWebhookSetting.JSON_PROPERTY_CONDITIONS +}) -/** BalanceWebhookSetting */ -@JsonPropertyOrder({BalanceWebhookSetting.JSON_PROPERTY_CONDITIONS}) @JsonIgnoreProperties( - value = - "type", // ignore manually set type, it will be automatically generated by Jackson during - // serialization - allowSetters = true // allows the type to be set during deserialization - ) -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - visible = true) + value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization + allowSetters = true // allows the type to be set during deserialization +) +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) + public class BalanceWebhookSetting extends WebhookSetting { public static final String JSON_PROPERTY_CONDITIONS = "conditions"; private List conditions; - public BalanceWebhookSetting() {} + public BalanceWebhookSetting() { + } /** - * The list of settings and criteria for triggering the [balance - * webhook](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balanceAccount.balance.updated). + * The list of settings and criteria for triggering the [balance webhook](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balanceAccount.balance.updated). * - * @param conditions The list of settings and criteria for triggering the [balance - * webhook](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balanceAccount.balance.updated). + * @param conditions The list of settings and criteria for triggering the [balance webhook](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balanceAccount.balance.updated). * @return the current {@code BalanceWebhookSetting} instance, allowing for method chaining */ public BalanceWebhookSetting conditions(List conditions) { @@ -62,11 +73,8 @@ public BalanceWebhookSetting addConditionsItem(Condition conditionsItem) { } /** - * The list of settings and criteria for triggering the [balance - * webhook](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balanceAccount.balance.updated). - * - * @return conditions The list of settings and criteria for triggering the [balance - * webhook](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balanceAccount.balance.updated). + * The list of settings and criteria for triggering the [balance webhook](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balanceAccount.balance.updated). + * @return conditions The list of settings and criteria for triggering the [balance webhook](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balanceAccount.balance.updated). */ @JsonProperty(JSON_PROPERTY_CONDITIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,11 +83,9 @@ public List getConditions() { } /** - * The list of settings and criteria for triggering the [balance - * webhook](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balanceAccount.balance.updated). + * The list of settings and criteria for triggering the [balance webhook](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balanceAccount.balance.updated). * - * @param conditions The list of settings and criteria for triggering the [balance - * webhook](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balanceAccount.balance.updated). + * @param conditions The list of settings and criteria for triggering the [balance webhook](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balanceAccount.balance.updated). */ @JsonProperty(JSON_PROPERTY_CONDITIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,7 +93,9 @@ public void setConditions(List conditions) { this.conditions = conditions; } - /** Return true if this BalanceWebhookSetting object is equal to o. */ + /** + * Return true if this BalanceWebhookSetting object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -97,7 +105,8 @@ public boolean equals(Object o) { return false; } BalanceWebhookSetting balanceWebhookSetting = (BalanceWebhookSetting) o; - return Objects.equals(this.conditions, balanceWebhookSetting.conditions) && super.equals(o); + return Objects.equals(this.conditions, balanceWebhookSetting.conditions) && + super.equals(o); } @Override @@ -116,7 +125,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -131,24 +141,21 @@ private String toIndentedString(Object o) { mappings.put("BalanceWebhookSetting", BalanceWebhookSetting.class); JSON.registerDiscriminator(BalanceWebhookSetting.class, "type", mappings); } - - /** +/** * Create an instance of BalanceWebhookSetting given an JSON string * * @param jsonString JSON string * @return An instance of BalanceWebhookSetting - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BalanceWebhookSetting + * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceWebhookSetting */ public static BalanceWebhookSetting fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceWebhookSetting.class); } - - /** - * Convert an instance of BalanceWebhookSetting to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BalanceWebhookSetting to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSettingInfo.java b/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSettingInfo.java index 5f084f64c..0c948f651 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSettingInfo.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSettingInfo.java @@ -2,28 +2,35 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.Condition; +import com.adyen.model.balanceplatform.Target; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** BalanceWebhookSettingInfo */ +/** + * BalanceWebhookSettingInfo + */ @JsonPropertyOrder({ BalanceWebhookSettingInfo.JSON_PROPERTY_CONDITIONS, BalanceWebhookSettingInfo.JSON_PROPERTY_CURRENCY, @@ -31,6 +38,7 @@ BalanceWebhookSettingInfo.JSON_PROPERTY_TARGET, BalanceWebhookSettingInfo.JSON_PROPERTY_TYPE }) + public class BalanceWebhookSettingInfo { public static final String JSON_PROPERTY_CONDITIONS = "conditions"; private List conditions; @@ -39,11 +47,10 @@ public class BalanceWebhookSettingInfo { private String currency; /** - * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook - * if any of the conditions in this setting are met. * **inactive**: You do not receive a balance - * webhook even if the conditions in this settings are met. + * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met. */ public enum StatusEnum { + ACTIVE(String.valueOf("active")), INACTIVE(String.valueOf("inactive")); @@ -53,7 +60,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -74,11 +81,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -89,8 +92,11 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_TARGET = "target"; private Target target; - /** The type of the webhook you are configuring. Set to **balance**. */ + /** + * The type of the webhook you are configuring. Set to **balance**. + */ public enum TypeEnum { + BALANCE(String.valueOf("balance")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -98,7 +104,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -119,11 +125,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -131,13 +133,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public BalanceWebhookSettingInfo() {} + public BalanceWebhookSettingInfo() { + } /** * The array of conditions a balance change must meet for Adyen to send the webhook. * - * @param conditions The array of conditions a balance change must meet for Adyen to send the - * webhook. + * @param conditions The array of conditions a balance change must meet for Adyen to send the webhook. * @return the current {@code BalanceWebhookSettingInfo} instance, allowing for method chaining */ public BalanceWebhookSettingInfo conditions(List conditions) { @@ -155,9 +157,7 @@ public BalanceWebhookSettingInfo addConditionsItem(Condition conditionsItem) { /** * The array of conditions a balance change must meet for Adyen to send the webhook. - * - * @return conditions The array of conditions a balance change must meet for Adyen to send the - * webhook. + * @return conditions The array of conditions a balance change must meet for Adyen to send the webhook. */ @JsonProperty(JSON_PROPERTY_CONDITIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,8 +168,7 @@ public List getConditions() { /** * The array of conditions a balance change must meet for Adyen to send the webhook. * - * @param conditions The array of conditions a balance change must meet for Adyen to send the - * webhook. + * @param conditions The array of conditions a balance change must meet for Adyen to send the webhook. */ @JsonProperty(JSON_PROPERTY_CONDITIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,11 +177,9 @@ public void setConditions(List conditions) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. * @return the current {@code BalanceWebhookSettingInfo} instance, allowing for method chaining */ public BalanceWebhookSettingInfo currency(String currency) { @@ -191,11 +188,8 @@ public BalanceWebhookSettingInfo currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,11 +198,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -217,13 +209,9 @@ public void setCurrency(String currency) { } /** - * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook - * if any of the conditions in this setting are met. * **inactive**: You do not receive a balance - * webhook even if the conditions in this settings are met. + * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met. * - * @param status The status of the webhook setting. Possible values: * **active**: You receive a - * balance webhook if any of the conditions in this setting are met. * **inactive**: You do - * not receive a balance webhook even if the conditions in this settings are met. + * @param status The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met. * @return the current {@code BalanceWebhookSettingInfo} instance, allowing for method chaining */ public BalanceWebhookSettingInfo status(StatusEnum status) { @@ -232,13 +220,8 @@ public BalanceWebhookSettingInfo status(StatusEnum status) { } /** - * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook - * if any of the conditions in this setting are met. * **inactive**: You do not receive a balance - * webhook even if the conditions in this settings are met. - * - * @return status The status of the webhook setting. Possible values: * **active**: You receive a - * balance webhook if any of the conditions in this setting are met. * **inactive**: You do - * not receive a balance webhook even if the conditions in this settings are met. + * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met. + * @return status The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -247,13 +230,9 @@ public StatusEnum getStatus() { } /** - * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook - * if any of the conditions in this setting are met. * **inactive**: You do not receive a balance - * webhook even if the conditions in this settings are met. + * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met. * - * @param status The status of the webhook setting. Possible values: * **active**: You receive a - * balance webhook if any of the conditions in this setting are met. * **inactive**: You do - * not receive a balance webhook even if the conditions in this settings are met. + * @param status The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -264,7 +243,7 @@ public void setStatus(StatusEnum status) { /** * target * - * @param target + * @param target * @return the current {@code BalanceWebhookSettingInfo} instance, allowing for method chaining */ public BalanceWebhookSettingInfo target(Target target) { @@ -274,8 +253,7 @@ public BalanceWebhookSettingInfo target(Target target) { /** * Get target - * - * @return target + * @return target */ @JsonProperty(JSON_PROPERTY_TARGET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -286,7 +264,7 @@ public Target getTarget() { /** * target * - * @param target + * @param target */ @JsonProperty(JSON_PROPERTY_TARGET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -307,7 +285,6 @@ public BalanceWebhookSettingInfo type(TypeEnum type) { /** * The type of the webhook you are configuring. Set to **balance**. - * * @return type The type of the webhook you are configuring. Set to **balance**. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -327,7 +304,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this BalanceWebhookSettingInfo object is equal to o. */ + /** + * Return true if this BalanceWebhookSettingInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -337,11 +316,11 @@ public boolean equals(Object o) { return false; } BalanceWebhookSettingInfo balanceWebhookSettingInfo = (BalanceWebhookSettingInfo) o; - return Objects.equals(this.conditions, balanceWebhookSettingInfo.conditions) - && Objects.equals(this.currency, balanceWebhookSettingInfo.currency) - && Objects.equals(this.status, balanceWebhookSettingInfo.status) - && Objects.equals(this.target, balanceWebhookSettingInfo.target) - && Objects.equals(this.type, balanceWebhookSettingInfo.type); + return Objects.equals(this.conditions, balanceWebhookSettingInfo.conditions) && + Objects.equals(this.currency, balanceWebhookSettingInfo.currency) && + Objects.equals(this.status, balanceWebhookSettingInfo.status) && + Objects.equals(this.target, balanceWebhookSettingInfo.target) && + Objects.equals(this.type, balanceWebhookSettingInfo.type); } @Override @@ -363,7 +342,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -372,24 +352,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BalanceWebhookSettingInfo given an JSON string * * @param jsonString JSON string * @return An instance of BalanceWebhookSettingInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BalanceWebhookSettingInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceWebhookSettingInfo */ - public static BalanceWebhookSettingInfo fromJson(String jsonString) - throws JsonProcessingException { + public static BalanceWebhookSettingInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceWebhookSettingInfo.class); } - - /** - * Convert an instance of BalanceWebhookSettingInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BalanceWebhookSettingInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSettingInfoUpdate.java b/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSettingInfoUpdate.java index dd077c2f3..724a6ba29 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSettingInfoUpdate.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSettingInfoUpdate.java @@ -2,28 +2,35 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.Condition; +import com.adyen.model.balanceplatform.TargetUpdate; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** BalanceWebhookSettingInfoUpdate */ +/** + * BalanceWebhookSettingInfoUpdate + */ @JsonPropertyOrder({ BalanceWebhookSettingInfoUpdate.JSON_PROPERTY_CONDITIONS, BalanceWebhookSettingInfoUpdate.JSON_PROPERTY_CURRENCY, @@ -31,6 +38,7 @@ BalanceWebhookSettingInfoUpdate.JSON_PROPERTY_TARGET, BalanceWebhookSettingInfoUpdate.JSON_PROPERTY_TYPE }) + public class BalanceWebhookSettingInfoUpdate { public static final String JSON_PROPERTY_CONDITIONS = "conditions"; private List conditions; @@ -39,11 +47,10 @@ public class BalanceWebhookSettingInfoUpdate { private String currency; /** - * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook - * if any of the conditions in this setting are met. * **inactive**: You do not receive a balance - * webhook even if the conditions in this settings are met. + * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met. */ public enum StatusEnum { + ACTIVE(String.valueOf("active")), INACTIVE(String.valueOf("inactive")); @@ -53,7 +60,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -74,11 +81,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -89,8 +92,11 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_TARGET = "target"; private TargetUpdate target; - /** The type of the webhook you are configuring. Set to **balance**. */ + /** + * The type of the webhook you are configuring. Set to **balance**. + */ public enum TypeEnum { + BALANCE(String.valueOf("balance")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -98,7 +104,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -119,11 +125,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -131,15 +133,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public BalanceWebhookSettingInfoUpdate() {} + public BalanceWebhookSettingInfoUpdate() { + } /** * The array of conditions a balance change must meet for Adyen to send the webhook. * - * @param conditions The array of conditions a balance change must meet for Adyen to send the - * webhook. - * @return the current {@code BalanceWebhookSettingInfoUpdate} instance, allowing for method - * chaining + * @param conditions The array of conditions a balance change must meet for Adyen to send the webhook. + * @return the current {@code BalanceWebhookSettingInfoUpdate} instance, allowing for method chaining */ public BalanceWebhookSettingInfoUpdate conditions(List conditions) { this.conditions = conditions; @@ -156,9 +157,7 @@ public BalanceWebhookSettingInfoUpdate addConditionsItem(Condition conditionsIte /** * The array of conditions a balance change must meet for Adyen to send the webhook. - * - * @return conditions The array of conditions a balance change must meet for Adyen to send the - * webhook. + * @return conditions The array of conditions a balance change must meet for Adyen to send the webhook. */ @JsonProperty(JSON_PROPERTY_CONDITIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,8 +168,7 @@ public List getConditions() { /** * The array of conditions a balance change must meet for Adyen to send the webhook. * - * @param conditions The array of conditions a balance change must meet for Adyen to send the - * webhook. + * @param conditions The array of conditions a balance change must meet for Adyen to send the webhook. */ @JsonProperty(JSON_PROPERTY_CONDITIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,13 +177,10 @@ public void setConditions(List conditions) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. - * @return the current {@code BalanceWebhookSettingInfoUpdate} instance, allowing for method - * chaining + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * @return the current {@code BalanceWebhookSettingInfoUpdate} instance, allowing for method chaining */ public BalanceWebhookSettingInfoUpdate currency(String currency) { this.currency = currency; @@ -193,11 +188,8 @@ public BalanceWebhookSettingInfoUpdate currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -206,11 +198,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,15 +209,10 @@ public void setCurrency(String currency) { } /** - * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook - * if any of the conditions in this setting are met. * **inactive**: You do not receive a balance - * webhook even if the conditions in this settings are met. + * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met. * - * @param status The status of the webhook setting. Possible values: * **active**: You receive a - * balance webhook if any of the conditions in this setting are met. * **inactive**: You do - * not receive a balance webhook even if the conditions in this settings are met. - * @return the current {@code BalanceWebhookSettingInfoUpdate} instance, allowing for method - * chaining + * @param status The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met. + * @return the current {@code BalanceWebhookSettingInfoUpdate} instance, allowing for method chaining */ public BalanceWebhookSettingInfoUpdate status(StatusEnum status) { this.status = status; @@ -235,13 +220,8 @@ public BalanceWebhookSettingInfoUpdate status(StatusEnum status) { } /** - * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook - * if any of the conditions in this setting are met. * **inactive**: You do not receive a balance - * webhook even if the conditions in this settings are met. - * - * @return status The status of the webhook setting. Possible values: * **active**: You receive a - * balance webhook if any of the conditions in this setting are met. * **inactive**: You do - * not receive a balance webhook even if the conditions in this settings are met. + * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met. + * @return status The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,13 +230,9 @@ public StatusEnum getStatus() { } /** - * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook - * if any of the conditions in this setting are met. * **inactive**: You do not receive a balance - * webhook even if the conditions in this settings are met. + * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met. * - * @param status The status of the webhook setting. Possible values: * **active**: You receive a - * balance webhook if any of the conditions in this setting are met. * **inactive**: You do - * not receive a balance webhook even if the conditions in this settings are met. + * @param status The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -267,9 +243,8 @@ public void setStatus(StatusEnum status) { /** * target * - * @param target - * @return the current {@code BalanceWebhookSettingInfoUpdate} instance, allowing for method - * chaining + * @param target + * @return the current {@code BalanceWebhookSettingInfoUpdate} instance, allowing for method chaining */ public BalanceWebhookSettingInfoUpdate target(TargetUpdate target) { this.target = target; @@ -278,8 +253,7 @@ public BalanceWebhookSettingInfoUpdate target(TargetUpdate target) { /** * Get target - * - * @return target + * @return target */ @JsonProperty(JSON_PROPERTY_TARGET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -290,7 +264,7 @@ public TargetUpdate getTarget() { /** * target * - * @param target + * @param target */ @JsonProperty(JSON_PROPERTY_TARGET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -302,8 +276,7 @@ public void setTarget(TargetUpdate target) { * The type of the webhook you are configuring. Set to **balance**. * * @param type The type of the webhook you are configuring. Set to **balance**. - * @return the current {@code BalanceWebhookSettingInfoUpdate} instance, allowing for method - * chaining + * @return the current {@code BalanceWebhookSettingInfoUpdate} instance, allowing for method chaining */ public BalanceWebhookSettingInfoUpdate type(TypeEnum type) { this.type = type; @@ -312,7 +285,6 @@ public BalanceWebhookSettingInfoUpdate type(TypeEnum type) { /** * The type of the webhook you are configuring. Set to **balance**. - * * @return type The type of the webhook you are configuring. Set to **balance**. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -332,7 +304,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this BalanceWebhookSettingInfoUpdate object is equal to o. */ + /** + * Return true if this BalanceWebhookSettingInfoUpdate object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -341,13 +315,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - BalanceWebhookSettingInfoUpdate balanceWebhookSettingInfoUpdate = - (BalanceWebhookSettingInfoUpdate) o; - return Objects.equals(this.conditions, balanceWebhookSettingInfoUpdate.conditions) - && Objects.equals(this.currency, balanceWebhookSettingInfoUpdate.currency) - && Objects.equals(this.status, balanceWebhookSettingInfoUpdate.status) - && Objects.equals(this.target, balanceWebhookSettingInfoUpdate.target) - && Objects.equals(this.type, balanceWebhookSettingInfoUpdate.type); + BalanceWebhookSettingInfoUpdate balanceWebhookSettingInfoUpdate = (BalanceWebhookSettingInfoUpdate) o; + return Objects.equals(this.conditions, balanceWebhookSettingInfoUpdate.conditions) && + Objects.equals(this.currency, balanceWebhookSettingInfoUpdate.currency) && + Objects.equals(this.status, balanceWebhookSettingInfoUpdate.status) && + Objects.equals(this.target, balanceWebhookSettingInfoUpdate.target) && + Objects.equals(this.type, balanceWebhookSettingInfoUpdate.type); } @Override @@ -369,7 +342,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -378,24 +352,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BalanceWebhookSettingInfoUpdate given an JSON string * * @param jsonString JSON string * @return An instance of BalanceWebhookSettingInfoUpdate - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BalanceWebhookSettingInfoUpdate + * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceWebhookSettingInfoUpdate */ - public static BalanceWebhookSettingInfoUpdate fromJson(String jsonString) - throws JsonProcessingException { + public static BalanceWebhookSettingInfoUpdate fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceWebhookSettingInfoUpdate.class); } - - /** - * Convert an instance of BalanceWebhookSettingInfoUpdate to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BalanceWebhookSettingInfoUpdate to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BankAccount.java b/src/main/java/com/adyen/model/balanceplatform/BankAccount.java index 0e9722170..fa5628abf 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BankAccount.java +++ b/src/main/java/com/adyen/model/balanceplatform/BankAccount.java @@ -2,33 +2,47 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.BankAccountAccountIdentification; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** BankAccount */ -@JsonPropertyOrder({BankAccount.JSON_PROPERTY_ACCOUNT_IDENTIFICATION}) + +/** + * BankAccount + */ +@JsonPropertyOrder({ + BankAccount.JSON_PROPERTY_ACCOUNT_IDENTIFICATION +}) + public class BankAccount { public static final String JSON_PROPERTY_ACCOUNT_IDENTIFICATION = "accountIdentification"; private BankAccountAccountIdentification accountIdentification; - public BankAccount() {} + public BankAccount() { + } /** * accountIdentification * - * @param accountIdentification + * @param accountIdentification * @return the current {@code BankAccount} instance, allowing for method chaining */ public BankAccount accountIdentification(BankAccountAccountIdentification accountIdentification) { @@ -38,8 +52,7 @@ public BankAccount accountIdentification(BankAccountAccountIdentification accoun /** * Get accountIdentification - * - * @return accountIdentification + * @return accountIdentification */ @JsonProperty(JSON_PROPERTY_ACCOUNT_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -50,7 +63,7 @@ public BankAccountAccountIdentification getAccountIdentification() { /** * accountIdentification * - * @param accountIdentification + * @param accountIdentification */ @JsonProperty(JSON_PROPERTY_ACCOUNT_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,7 +71,9 @@ public void setAccountIdentification(BankAccountAccountIdentification accountIde this.accountIdentification = accountIdentification; } - /** Return true if this BankAccount object is equal to o. */ + /** + * Return true if this BankAccount object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -80,15 +95,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BankAccount {\n"); - sb.append(" accountIdentification: ") - .append(toIndentedString(accountIdentification)) - .append("\n"); + sb.append(" accountIdentification: ").append(toIndentedString(accountIdentification)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -97,7 +111,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BankAccount given an JSON string * * @param jsonString JSON string @@ -107,12 +121,11 @@ private String toIndentedString(Object o) { public static BankAccount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankAccount.class); } - - /** - * Convert an instance of BankAccount to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BankAccount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BankAccountAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/BankAccountAccountIdentification.java index 725aa0b2f..bbad367b5 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BankAccountAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/BankAccountAccountIdentification.java @@ -2,19 +2,60 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.AULocalAccountIdentification; +import com.adyen.model.balanceplatform.AdditionalBankIdentification; +import com.adyen.model.balanceplatform.BRLocalAccountIdentification; +import com.adyen.model.balanceplatform.CALocalAccountIdentification; +import com.adyen.model.balanceplatform.CZLocalAccountIdentification; +import com.adyen.model.balanceplatform.DKLocalAccountIdentification; +import com.adyen.model.balanceplatform.HKLocalAccountIdentification; +import com.adyen.model.balanceplatform.HULocalAccountIdentification; +import com.adyen.model.balanceplatform.IbanAccountIdentification; +import com.adyen.model.balanceplatform.NOLocalAccountIdentification; +import com.adyen.model.balanceplatform.NZLocalAccountIdentification; +import com.adyen.model.balanceplatform.NumberAndBicAccountIdentification; +import com.adyen.model.balanceplatform.PLLocalAccountIdentification; +import com.adyen.model.balanceplatform.SELocalAccountIdentification; +import com.adyen.model.balanceplatform.SGLocalAccountIdentification; +import com.adyen.model.balanceplatform.UKLocalAccountIdentification; +import com.adyen.model.balanceplatform.USLocalAccountIdentification; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + +import com.fasterxml.jackson.core.type.TypeReference; + +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.Response; +import java.io.IOException; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; + import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; +import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -24,941 +65,872 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import jakarta.ws.rs.core.GenericType; -import java.io.IOException; -import java.util.*; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashSet; -import java.util.logging.Level; -import java.util.logging.Logger; -@JsonDeserialize( - using = BankAccountAccountIdentification.BankAccountAccountIdentificationDeserializer.class) -@JsonSerialize( - using = BankAccountAccountIdentification.BankAccountAccountIdentificationSerializer.class) + +@JsonDeserialize(using = BankAccountAccountIdentification.BankAccountAccountIdentificationDeserializer.class) +@JsonSerialize(using = BankAccountAccountIdentification.BankAccountAccountIdentificationSerializer.class) public class BankAccountAccountIdentification extends AbstractOpenApiSchema { - private static final Logger log = - Logger.getLogger(BankAccountAccountIdentification.class.getName()); + private static final Logger log = Logger.getLogger(BankAccountAccountIdentification.class.getName()); - public static class BankAccountAccountIdentificationSerializer - extends StdSerializer { - public BankAccountAccountIdentificationSerializer(Class t) { - super(t); + public static class BankAccountAccountIdentificationSerializer extends StdSerializer { + public BankAccountAccountIdentificationSerializer(Class t) { + super(t); + } + + public BankAccountAccountIdentificationSerializer() { + this(null); + } + + @Override + public void serialize(BankAccountAccountIdentification value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); + } } - public BankAccountAccountIdentificationSerializer() { - this(null); + public static class BankAccountAccountIdentificationDeserializer extends StdDeserializer { + public BankAccountAccountIdentificationDeserializer() { + this(BankAccountAccountIdentification.class); + } + + public BankAccountAccountIdentificationDeserializer(Class vc) { + super(vc); + } + + @Override + public BankAccountAccountIdentification deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize AULocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(AULocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(AULocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'AULocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'AULocalAccountIdentification'", e); + } + + // deserialize BRLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(BRLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(BRLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'BRLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'BRLocalAccountIdentification'", e); + } + + // deserialize CALocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(CALocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CALocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CALocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CALocalAccountIdentification'", e); + } + + // deserialize CZLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(CZLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CZLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CZLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CZLocalAccountIdentification'", e); + } + + // deserialize DKLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(DKLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(DKLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'DKLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'DKLocalAccountIdentification'", e); + } + + // deserialize HKLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(HKLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(HKLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'HKLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'HKLocalAccountIdentification'", e); + } + + // deserialize HULocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(HULocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(HULocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'HULocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'HULocalAccountIdentification'", e); + } + + // deserialize IbanAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(IbanAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'IbanAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'IbanAccountIdentification'", e); + } + + // deserialize NOLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(NOLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(NOLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'NOLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'NOLocalAccountIdentification'", e); + } + + // deserialize NZLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(NZLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(NZLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'NZLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'NZLocalAccountIdentification'", e); + } + + // deserialize NumberAndBicAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(NumberAndBicAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(NumberAndBicAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'NumberAndBicAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'NumberAndBicAccountIdentification'", e); + } + + // deserialize PLLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(PLLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PLLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PLLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PLLocalAccountIdentification'", e); + } + + // deserialize SELocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(SELocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(SELocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'SELocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'SELocalAccountIdentification'", e); + } + + // deserialize SGLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(SGLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(SGLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'SGLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'SGLocalAccountIdentification'", e); + } + + // deserialize UKLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(UKLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(UKLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'UKLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'UKLocalAccountIdentification'", e); + } + + // deserialize USLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(USLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(USLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'USLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'USLocalAccountIdentification'", e); + } + + if (match == 1) { + BankAccountAccountIdentification ret = new BankAccountAccountIdentification(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException(String.format("Failed deserialization for BankAccountAccountIdentification: %d classes match result, expected 1", match)); + } + + /** + * Handle deserialization of the 'null' value. + */ + @Override + public BankAccountAccountIdentification getNullValue(DeserializationContext ctxt) throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "BankAccountAccountIdentification cannot be null"); + } } - @Override - public void serialize( - BankAccountAccountIdentification value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public BankAccountAccountIdentification() { + super("oneOf", Boolean.FALSE); + } + + public BankAccountAccountIdentification(AULocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountAccountIdentification(BRLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountAccountIdentification(CALocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountAccountIdentification(CZLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountAccountIdentification(DKLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountAccountIdentification(HKLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountAccountIdentification(HULocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountAccountIdentification(IbanAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountAccountIdentification(NOLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountAccountIdentification(NZLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountAccountIdentification(NumberAndBicAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountAccountIdentification(PLLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountAccountIdentification(SELocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountAccountIdentification(SGLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountAccountIdentification(UKLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountAccountIdentification(USLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } - } - public static class BankAccountAccountIdentificationDeserializer - extends StdDeserializer { - public BankAccountAccountIdentificationDeserializer() { - this(BankAccountAccountIdentification.class); + static { + schemas.put("AULocalAccountIdentification", new GenericType() { + }); + schemas.put("BRLocalAccountIdentification", new GenericType() { + }); + schemas.put("CALocalAccountIdentification", new GenericType() { + }); + schemas.put("CZLocalAccountIdentification", new GenericType() { + }); + schemas.put("DKLocalAccountIdentification", new GenericType() { + }); + schemas.put("HKLocalAccountIdentification", new GenericType() { + }); + schemas.put("HULocalAccountIdentification", new GenericType() { + }); + schemas.put("IbanAccountIdentification", new GenericType() { + }); + schemas.put("NOLocalAccountIdentification", new GenericType() { + }); + schemas.put("NZLocalAccountIdentification", new GenericType() { + }); + schemas.put("NumberAndBicAccountIdentification", new GenericType() { + }); + schemas.put("PLLocalAccountIdentification", new GenericType() { + }); + schemas.put("SELocalAccountIdentification", new GenericType() { + }); + schemas.put("SGLocalAccountIdentification", new GenericType() { + }); + schemas.put("UKLocalAccountIdentification", new GenericType() { + }); + schemas.put("USLocalAccountIdentification", new GenericType() { + }); + JSON.registerDescendants(BankAccountAccountIdentification.class, Collections.unmodifiableMap(schemas)); } - public BankAccountAccountIdentificationDeserializer(Class vc) { - super(vc); + @Override + public Map> getSchemas() { + return BankAccountAccountIdentification.schemas; } + /** + * Set the instance that matches the oneOf child schema, check + * the instance parameter is valid against the oneOf child schemas: + * AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification + * + * It could be an instance of the 'oneOf' schemas. + * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). + */ @Override - public BankAccountAccountIdentification deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize AULocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(AULocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(AULocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AULocalAccountIdentification'"); - } + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(AULocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AULocalAccountIdentification'", e); - } - - // deserialize BRLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(BRLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(BRLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'BRLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(BRLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'BRLocalAccountIdentification'", e); - } - - // deserialize CALocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(CALocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(CALocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CALocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(CALocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CALocalAccountIdentification'", e); - } - - // deserialize CZLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(CZLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(CZLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CZLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(CZLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CZLocalAccountIdentification'", e); - } - - // deserialize DKLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(DKLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(DKLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'DKLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(DKLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'DKLocalAccountIdentification'", e); - } - - // deserialize HKLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(HKLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(HKLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'HKLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(HKLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'HKLocalAccountIdentification'", e); - } - - // deserialize HULocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(HULocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(HULocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'HULocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(HULocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'HULocalAccountIdentification'", e); - } - - // deserialize IbanAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(IbanAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'IbanAccountIdentification'"); - } + + if (JSON.isInstanceOf(IbanAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'IbanAccountIdentification'", e); - } - - // deserialize NOLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(NOLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(NOLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'NOLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(NOLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'NOLocalAccountIdentification'", e); - } - - // deserialize NZLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(NZLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(NZLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'NZLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(NZLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'NZLocalAccountIdentification'", e); - } - - // deserialize NumberAndBicAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(NumberAndBicAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(NumberAndBicAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'NumberAndBicAccountIdentification'"); - } + + if (JSON.isInstanceOf(NumberAndBicAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, "Input data does not match schema 'NumberAndBicAccountIdentification'", e); - } - - // deserialize PLLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(PLLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(PLLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PLLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(PLLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PLLocalAccountIdentification'", e); - } - - // deserialize SELocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(SELocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(SELocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SELocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(SELocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'SELocalAccountIdentification'", e); - } - - // deserialize SGLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(SGLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(SGLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SGLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(SGLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'SGLocalAccountIdentification'", e); - } - - // deserialize UKLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(UKLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(UKLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'UKLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(UKLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'UKLocalAccountIdentification'", e); - } - - // deserialize USLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(USLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(USLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'USLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(USLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'USLocalAccountIdentification'", e); - } - - if (match == 1) { - BankAccountAccountIdentification ret = new BankAccountAccountIdentification(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for BankAccountAccountIdentification: %d classes match result, expected 1", - match)); - } - - /** Handle deserialization of the 'null' value. */ + + throw new RuntimeException("Invalid instance type. Must be AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification"); + } + + /** + * Get the actual instance, which can be the following: + * AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification + * + * @return The actual instance (AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification) + */ @Override - public BankAccountAccountIdentification getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "BankAccountAccountIdentification cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public BankAccountAccountIdentification() { - super("oneOf", Boolean.FALSE); - } - - public BankAccountAccountIdentification(AULocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountAccountIdentification(BRLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountAccountIdentification(CALocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountAccountIdentification(CZLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountAccountIdentification(DKLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountAccountIdentification(HKLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountAccountIdentification(HULocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountAccountIdentification(IbanAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountAccountIdentification(NOLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountAccountIdentification(NZLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountAccountIdentification(NumberAndBicAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountAccountIdentification(PLLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountAccountIdentification(SELocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountAccountIdentification(SGLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountAccountIdentification(UKLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountAccountIdentification(USLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("AULocalAccountIdentification", new GenericType() {}); - schemas.put("BRLocalAccountIdentification", new GenericType() {}); - schemas.put("CALocalAccountIdentification", new GenericType() {}); - schemas.put("CZLocalAccountIdentification", new GenericType() {}); - schemas.put("DKLocalAccountIdentification", new GenericType() {}); - schemas.put("HKLocalAccountIdentification", new GenericType() {}); - schemas.put("HULocalAccountIdentification", new GenericType() {}); - schemas.put("IbanAccountIdentification", new GenericType() {}); - schemas.put("NOLocalAccountIdentification", new GenericType() {}); - schemas.put("NZLocalAccountIdentification", new GenericType() {}); - schemas.put( - "NumberAndBicAccountIdentification", - new GenericType() {}); - schemas.put("PLLocalAccountIdentification", new GenericType() {}); - schemas.put("SELocalAccountIdentification", new GenericType() {}); - schemas.put("SGLocalAccountIdentification", new GenericType() {}); - schemas.put("UKLocalAccountIdentification", new GenericType() {}); - schemas.put("USLocalAccountIdentification", new GenericType() {}); - JSON.registerDescendants( - BankAccountAccountIdentification.class, Collections.unmodifiableMap(schemas)); - } + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `AULocalAccountIdentification`. If the actual instance is not `AULocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `AULocalAccountIdentification` + * @throws ClassCastException if the instance is not `AULocalAccountIdentification` + */ + public AULocalAccountIdentification getAULocalAccountIdentification() throws ClassCastException { + return (AULocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `BRLocalAccountIdentification`. If the actual instance is not `BRLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `BRLocalAccountIdentification` + * @throws ClassCastException if the instance is not `BRLocalAccountIdentification` + */ + public BRLocalAccountIdentification getBRLocalAccountIdentification() throws ClassCastException { + return (BRLocalAccountIdentification)super.getActualInstance(); + } - @Override - public Map> getSchemas() { - return BankAccountAccountIdentification.schemas; - } + /** + * Get the actual instance of `CALocalAccountIdentification`. If the actual instance is not `CALocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CALocalAccountIdentification` + * @throws ClassCastException if the instance is not `CALocalAccountIdentification` + */ + public CALocalAccountIdentification getCALocalAccountIdentification() throws ClassCastException { + return (CALocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `CZLocalAccountIdentification`. If the actual instance is not `CZLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CZLocalAccountIdentification` + * @throws ClassCastException if the instance is not `CZLocalAccountIdentification` + */ + public CZLocalAccountIdentification getCZLocalAccountIdentification() throws ClassCastException { + return (CZLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `DKLocalAccountIdentification`. If the actual instance is not `DKLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `DKLocalAccountIdentification` + * @throws ClassCastException if the instance is not `DKLocalAccountIdentification` + */ + public DKLocalAccountIdentification getDKLocalAccountIdentification() throws ClassCastException { + return (DKLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `HKLocalAccountIdentification`. If the actual instance is not `HKLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `HKLocalAccountIdentification` + * @throws ClassCastException if the instance is not `HKLocalAccountIdentification` + */ + public HKLocalAccountIdentification getHKLocalAccountIdentification() throws ClassCastException { + return (HKLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `HULocalAccountIdentification`. If the actual instance is not `HULocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `HULocalAccountIdentification` + * @throws ClassCastException if the instance is not `HULocalAccountIdentification` + */ + public HULocalAccountIdentification getHULocalAccountIdentification() throws ClassCastException { + return (HULocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `IbanAccountIdentification`. If the actual instance is not `IbanAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `IbanAccountIdentification` + * @throws ClassCastException if the instance is not `IbanAccountIdentification` + */ + public IbanAccountIdentification getIbanAccountIdentification() throws ClassCastException { + return (IbanAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `NOLocalAccountIdentification`. If the actual instance is not `NOLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `NOLocalAccountIdentification` + * @throws ClassCastException if the instance is not `NOLocalAccountIdentification` + */ + public NOLocalAccountIdentification getNOLocalAccountIdentification() throws ClassCastException { + return (NOLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `NZLocalAccountIdentification`. If the actual instance is not `NZLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `NZLocalAccountIdentification` + * @throws ClassCastException if the instance is not `NZLocalAccountIdentification` + */ + public NZLocalAccountIdentification getNZLocalAccountIdentification() throws ClassCastException { + return (NZLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `NumberAndBicAccountIdentification`. If the actual instance is not `NumberAndBicAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `NumberAndBicAccountIdentification` + * @throws ClassCastException if the instance is not `NumberAndBicAccountIdentification` + */ + public NumberAndBicAccountIdentification getNumberAndBicAccountIdentification() throws ClassCastException { + return (NumberAndBicAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `PLLocalAccountIdentification`. If the actual instance is not `PLLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `PLLocalAccountIdentification` + * @throws ClassCastException if the instance is not `PLLocalAccountIdentification` + */ + public PLLocalAccountIdentification getPLLocalAccountIdentification() throws ClassCastException { + return (PLLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `SELocalAccountIdentification`. If the actual instance is not `SELocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `SELocalAccountIdentification` + * @throws ClassCastException if the instance is not `SELocalAccountIdentification` + */ + public SELocalAccountIdentification getSELocalAccountIdentification() throws ClassCastException { + return (SELocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `SGLocalAccountIdentification`. If the actual instance is not `SGLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `SGLocalAccountIdentification` + * @throws ClassCastException if the instance is not `SGLocalAccountIdentification` + */ + public SGLocalAccountIdentification getSGLocalAccountIdentification() throws ClassCastException { + return (SGLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `UKLocalAccountIdentification`. If the actual instance is not `UKLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `UKLocalAccountIdentification` + * @throws ClassCastException if the instance is not `UKLocalAccountIdentification` + */ + public UKLocalAccountIdentification getUKLocalAccountIdentification() throws ClassCastException { + return (UKLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `USLocalAccountIdentification`. If the actual instance is not `USLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `USLocalAccountIdentification` + * @throws ClassCastException if the instance is not `USLocalAccountIdentification` + */ + public USLocalAccountIdentification getUSLocalAccountIdentification() throws ClassCastException { + return (USLocalAccountIdentification)super.getActualInstance(); + } + + + /** + * Create an instance of BankAccountAccountIdentification given an JSON string + * + * @param jsonString JSON string + * @return An instance of BankAccountAccountIdentification + * @throws IOException if the JSON string is invalid with respect to BankAccountAccountIdentification + */ + public static BankAccountAccountIdentification fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, BankAccountAccountIdentification.class); + } + + /** + * Convert an instance of BankAccountAccountIdentification to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: AULocalAccountIdentification, BRLocalAccountIdentification, - * CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, - * HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, - * NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, - * PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, - * UKLocalAccountIdentification, USLocalAccountIdentification - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a - * composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(AULocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(BRLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(CALocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(CZLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(DKLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(HKLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(HULocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(IbanAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(NOLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(NZLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(NumberAndBicAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(PLLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(SELocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(SGLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(UKLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(USLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException( - "Invalid instance type. Must be AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification"); - } - - /** - * Get the actual instance, which can be the following: AULocalAccountIdentification, - * BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, - * DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, - * IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, - * NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, - * SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification - * - * @return The actual instance (AULocalAccountIdentification, BRLocalAccountIdentification, - * CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, - * HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, - * NOLocalAccountIdentification, NZLocalAccountIdentification, - * NumberAndBicAccountIdentification, PLLocalAccountIdentification, - * SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, - * USLocalAccountIdentification) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `AULocalAccountIdentification`. If the actual instance is not - * `AULocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `AULocalAccountIdentification` - * @throws ClassCastException if the instance is not `AULocalAccountIdentification` - */ - public AULocalAccountIdentification getAULocalAccountIdentification() throws ClassCastException { - return (AULocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `BRLocalAccountIdentification`. If the actual instance is not - * `BRLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `BRLocalAccountIdentification` - * @throws ClassCastException if the instance is not `BRLocalAccountIdentification` - */ - public BRLocalAccountIdentification getBRLocalAccountIdentification() throws ClassCastException { - return (BRLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `CALocalAccountIdentification`. If the actual instance is not - * `CALocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `CALocalAccountIdentification` - * @throws ClassCastException if the instance is not `CALocalAccountIdentification` - */ - public CALocalAccountIdentification getCALocalAccountIdentification() throws ClassCastException { - return (CALocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `CZLocalAccountIdentification`. If the actual instance is not - * `CZLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `CZLocalAccountIdentification` - * @throws ClassCastException if the instance is not `CZLocalAccountIdentification` - */ - public CZLocalAccountIdentification getCZLocalAccountIdentification() throws ClassCastException { - return (CZLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `DKLocalAccountIdentification`. If the actual instance is not - * `DKLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `DKLocalAccountIdentification` - * @throws ClassCastException if the instance is not `DKLocalAccountIdentification` - */ - public DKLocalAccountIdentification getDKLocalAccountIdentification() throws ClassCastException { - return (DKLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `HKLocalAccountIdentification`. If the actual instance is not - * `HKLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `HKLocalAccountIdentification` - * @throws ClassCastException if the instance is not `HKLocalAccountIdentification` - */ - public HKLocalAccountIdentification getHKLocalAccountIdentification() throws ClassCastException { - return (HKLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `HULocalAccountIdentification`. If the actual instance is not - * `HULocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `HULocalAccountIdentification` - * @throws ClassCastException if the instance is not `HULocalAccountIdentification` - */ - public HULocalAccountIdentification getHULocalAccountIdentification() throws ClassCastException { - return (HULocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `IbanAccountIdentification`. If the actual instance is not - * `IbanAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `IbanAccountIdentification` - * @throws ClassCastException if the instance is not `IbanAccountIdentification` - */ - public IbanAccountIdentification getIbanAccountIdentification() throws ClassCastException { - return (IbanAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `NOLocalAccountIdentification`. If the actual instance is not - * `NOLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `NOLocalAccountIdentification` - * @throws ClassCastException if the instance is not `NOLocalAccountIdentification` - */ - public NOLocalAccountIdentification getNOLocalAccountIdentification() throws ClassCastException { - return (NOLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `NZLocalAccountIdentification`. If the actual instance is not - * `NZLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `NZLocalAccountIdentification` - * @throws ClassCastException if the instance is not `NZLocalAccountIdentification` - */ - public NZLocalAccountIdentification getNZLocalAccountIdentification() throws ClassCastException { - return (NZLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `NumberAndBicAccountIdentification`. If the actual instance is not - * `NumberAndBicAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `NumberAndBicAccountIdentification` - * @throws ClassCastException if the instance is not `NumberAndBicAccountIdentification` - */ - public NumberAndBicAccountIdentification getNumberAndBicAccountIdentification() - throws ClassCastException { - return (NumberAndBicAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `PLLocalAccountIdentification`. If the actual instance is not - * `PLLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `PLLocalAccountIdentification` - * @throws ClassCastException if the instance is not `PLLocalAccountIdentification` - */ - public PLLocalAccountIdentification getPLLocalAccountIdentification() throws ClassCastException { - return (PLLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `SELocalAccountIdentification`. If the actual instance is not - * `SELocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `SELocalAccountIdentification` - * @throws ClassCastException if the instance is not `SELocalAccountIdentification` - */ - public SELocalAccountIdentification getSELocalAccountIdentification() throws ClassCastException { - return (SELocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `SGLocalAccountIdentification`. If the actual instance is not - * `SGLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `SGLocalAccountIdentification` - * @throws ClassCastException if the instance is not `SGLocalAccountIdentification` - */ - public SGLocalAccountIdentification getSGLocalAccountIdentification() throws ClassCastException { - return (SGLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `UKLocalAccountIdentification`. If the actual instance is not - * `UKLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `UKLocalAccountIdentification` - * @throws ClassCastException if the instance is not `UKLocalAccountIdentification` - */ - public UKLocalAccountIdentification getUKLocalAccountIdentification() throws ClassCastException { - return (UKLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `USLocalAccountIdentification`. If the actual instance is not - * `USLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `USLocalAccountIdentification` - * @throws ClassCastException if the instance is not `USLocalAccountIdentification` - */ - public USLocalAccountIdentification getUSLocalAccountIdentification() throws ClassCastException { - return (USLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Create an instance of BankAccountAccountIdentification given an JSON string - * - * @param jsonString JSON string - * @return An instance of BankAccountAccountIdentification - * @throws IOException if the JSON string is invalid with respect to - * BankAccountAccountIdentification - */ - public static BankAccountAccountIdentification fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, BankAccountAccountIdentification.class); - } - - /** - * Convert an instance of BankAccountAccountIdentification to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); - } } diff --git a/src/main/java/com/adyen/model/balanceplatform/BankAccountDetails.java b/src/main/java/com/adyen/model/balanceplatform/BankAccountDetails.java index 1e2a8749b..8f9a46f91 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BankAccountDetails.java +++ b/src/main/java/com/adyen/model/balanceplatform/BankAccountDetails.java @@ -2,22 +2,31 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** BankAccountDetails */ + +/** + * BankAccountDetails + */ @JsonPropertyOrder({ BankAccountDetails.JSON_PROPERTY_ACCOUNT_NUMBER, BankAccountDetails.JSON_PROPERTY_ACCOUNT_TYPE, @@ -28,6 +37,7 @@ BankAccountDetails.JSON_PROPERTY_SORT_CODE, BankAccountDetails.JSON_PROPERTY_TYPE }) + public class BankAccountDetails { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -53,7 +63,8 @@ public class BankAccountDetails { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public BankAccountDetails() {} + public BankAccountDetails() { + } /** * The bank account number, without separators or whitespace. @@ -68,7 +79,6 @@ public BankAccountDetails accountNumber(String accountNumber) { /** * The bank account number, without separators or whitespace. - * * @return accountNumber The bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -89,10 +99,9 @@ public void setAccountNumber(String accountNumber) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. - * Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * @return the current {@code BankAccountDetails} instance, allowing for method chaining */ public BankAccountDetails accountType(String accountType) { @@ -101,10 +110,8 @@ public BankAccountDetails accountType(String accountType) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. - * - * @return accountType The bank account type. Possible values: **checking** or **savings**. - * Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * @return accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,10 +120,9 @@ public String getAccountType() { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. - * Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,7 +143,6 @@ public BankAccountDetails branchNumber(String branchNumber) { /** * The bank account branch number, without separators or whitespace - * * @return branchNumber The bank account branch number, without separators or whitespace */ @JsonProperty(JSON_PROPERTY_BRANCH_NUMBER) @@ -158,19 +163,9 @@ public void setBranchNumber(String branchNumber) { } /** - * Business accounts with a `formFactor` value of **physical** are business accounts - * issued under the central bank of that country. The default value is **physical** for NL, US, - * and UK business accounts. Adyen creates a local IBAN for business accounts when the - * `formFactor` value is set to **virtual**. The local IBANs that are supported are for - * DE and FR, which reference a physical NL account, with funds being routed through the central - * bank of NL. + * Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. * - * @param formFactor Business accounts with a `formFactor` value of **physical** are - * business accounts issued under the central bank of that country. The default value is - * **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business - * accounts when the `formFactor` value is set to **virtual**. The local IBANs that - * are supported are for DE and FR, which reference a physical NL account, with funds being - * routed through the central bank of NL. + * @param formFactor Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. * @return the current {@code BankAccountDetails} instance, allowing for method chaining */ public BankAccountDetails formFactor(String formFactor) { @@ -179,19 +174,8 @@ public BankAccountDetails formFactor(String formFactor) { } /** - * Business accounts with a `formFactor` value of **physical** are business accounts - * issued under the central bank of that country. The default value is **physical** for NL, US, - * and UK business accounts. Adyen creates a local IBAN for business accounts when the - * `formFactor` value is set to **virtual**. The local IBANs that are supported are for - * DE and FR, which reference a physical NL account, with funds being routed through the central - * bank of NL. - * - * @return formFactor Business accounts with a `formFactor` value of **physical** are - * business accounts issued under the central bank of that country. The default value is - * **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business - * accounts when the `formFactor` value is set to **virtual**. The local IBANs that - * are supported are for DE and FR, which reference a physical NL account, with funds being - * routed through the central bank of NL. + * Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. + * @return formFactor Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. */ @JsonProperty(JSON_PROPERTY_FORM_FACTOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,19 +184,9 @@ public String getFormFactor() { } /** - * Business accounts with a `formFactor` value of **physical** are business accounts - * issued under the central bank of that country. The default value is **physical** for NL, US, - * and UK business accounts. Adyen creates a local IBAN for business accounts when the - * `formFactor` value is set to **virtual**. The local IBANs that are supported are for - * DE and FR, which reference a physical NL account, with funds being routed through the central - * bank of NL. + * Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. * - * @param formFactor Business accounts with a `formFactor` value of **physical** are - * business accounts issued under the central bank of that country. The default value is - * **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business - * accounts when the `formFactor` value is set to **virtual**. The local IBANs that - * are supported are for DE and FR, which reference a physical NL account, with funds being - * routed through the central bank of NL. + * @param formFactor Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. */ @JsonProperty(JSON_PROPERTY_FORM_FACTOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,11 +195,9 @@ public void setFormFactor(String formFactor) { } /** - * The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. * - * @param iban The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @param iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. * @return the current {@code BankAccountDetails} instance, allowing for method chaining */ public BankAccountDetails iban(String iban) { @@ -234,11 +206,8 @@ public BankAccountDetails iban(String iban) { } /** - * The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. - * - * @return iban The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @return iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -247,11 +216,9 @@ public String getIban() { } /** - * The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. * - * @param iban The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @param iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -260,12 +227,9 @@ public void setIban(String iban) { } /** - * The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without - * separators or whitespace. + * The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. * - * @param routingNumber The [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * whitespace. + * @param routingNumber The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. * @return the current {@code BankAccountDetails} instance, allowing for method chaining */ public BankAccountDetails routingNumber(String routingNumber) { @@ -274,12 +238,8 @@ public BankAccountDetails routingNumber(String routingNumber) { } /** - * The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without - * separators or whitespace. - * - * @return routingNumber The [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * whitespace. + * The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * @return routingNumber The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -288,12 +248,9 @@ public String getRoutingNumber() { } /** - * The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without - * separators or whitespace. + * The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. * - * @param routingNumber The [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * whitespace. + * @param routingNumber The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -304,8 +261,7 @@ public void setRoutingNumber(String routingNumber) { /** * The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. * - * @param sortCode The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or - * whitespace. + * @param sortCode The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. * @return the current {@code BankAccountDetails} instance, allowing for method chaining */ public BankAccountDetails sortCode(String sortCode) { @@ -315,9 +271,7 @@ public BankAccountDetails sortCode(String sortCode) { /** * The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. - * - * @return sortCode The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators - * or whitespace. + * @return sortCode The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_SORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -328,8 +282,7 @@ public String getSortCode() { /** * The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. * - * @param sortCode The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or - * whitespace. + * @param sortCode The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_SORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -350,7 +303,6 @@ public BankAccountDetails type(String type) { /** * **iban** or **usLocal** or **ukLocal** - * * @return type **iban** or **usLocal** or **ukLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -370,7 +322,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this BankAccountDetails object is equal to o. */ + /** + * Return true if this BankAccountDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -380,20 +334,19 @@ public boolean equals(Object o) { return false; } BankAccountDetails bankAccountDetails = (BankAccountDetails) o; - return Objects.equals(this.accountNumber, bankAccountDetails.accountNumber) - && Objects.equals(this.accountType, bankAccountDetails.accountType) - && Objects.equals(this.branchNumber, bankAccountDetails.branchNumber) - && Objects.equals(this.formFactor, bankAccountDetails.formFactor) - && Objects.equals(this.iban, bankAccountDetails.iban) - && Objects.equals(this.routingNumber, bankAccountDetails.routingNumber) - && Objects.equals(this.sortCode, bankAccountDetails.sortCode) - && Objects.equals(this.type, bankAccountDetails.type); + return Objects.equals(this.accountNumber, bankAccountDetails.accountNumber) && + Objects.equals(this.accountType, bankAccountDetails.accountType) && + Objects.equals(this.branchNumber, bankAccountDetails.branchNumber) && + Objects.equals(this.formFactor, bankAccountDetails.formFactor) && + Objects.equals(this.iban, bankAccountDetails.iban) && + Objects.equals(this.routingNumber, bankAccountDetails.routingNumber) && + Objects.equals(this.sortCode, bankAccountDetails.sortCode) && + Objects.equals(this.type, bankAccountDetails.type); } @Override public int hashCode() { - return Objects.hash( - accountNumber, accountType, branchNumber, formFactor, iban, routingNumber, sortCode, type); + return Objects.hash(accountNumber, accountType, branchNumber, formFactor, iban, routingNumber, sortCode, type); } @Override @@ -413,7 +366,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -422,23 +376,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BankAccountDetails given an JSON string * * @param jsonString JSON string * @return An instance of BankAccountDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BankAccountDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to BankAccountDetails */ public static BankAccountDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankAccountDetails.class); } - - /** - * Convert an instance of BankAccountDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BankAccountDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationTypeRequirement.java b/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationTypeRequirement.java index 5e2c81059..b4fd915fd 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationTypeRequirement.java +++ b/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationTypeRequirement.java @@ -2,36 +2,45 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** BankAccountIdentificationTypeRequirement */ +/** + * BankAccountIdentificationTypeRequirement + */ @JsonPropertyOrder({ BankAccountIdentificationTypeRequirement.JSON_PROPERTY_BANK_ACCOUNT_IDENTIFICATION_TYPES, BankAccountIdentificationTypeRequirement.JSON_PROPERTY_DESCRIPTION, BankAccountIdentificationTypeRequirement.JSON_PROPERTY_TYPE }) + public class BankAccountIdentificationTypeRequirement { - /** Gets or Sets bankAccountIdentificationTypes */ + /** + * Gets or Sets bankAccountIdentificationTypes + */ public enum BankAccountIdentificationTypesEnum { + AULOCAL(String.valueOf("auLocal")), BRLOCAL(String.valueOf("brLocal")), @@ -66,13 +75,12 @@ public enum BankAccountIdentificationTypesEnum { USLOCAL(String.valueOf("usLocal")); - private static final Logger LOG = - Logger.getLogger(BankAccountIdentificationTypesEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(BankAccountIdentificationTypesEnum.class.getName()); private String value; BankAccountIdentificationTypesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -93,33 +101,30 @@ public static BankAccountIdentificationTypesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "BankAccountIdentificationTypesEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(BankAccountIdentificationTypesEnum.values())); + LOG.warning("BankAccountIdentificationTypesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(BankAccountIdentificationTypesEnum.values())); return null; } } - public static final String JSON_PROPERTY_BANK_ACCOUNT_IDENTIFICATION_TYPES = - "bankAccountIdentificationTypes"; + public static final String JSON_PROPERTY_BANK_ACCOUNT_IDENTIFICATION_TYPES = "bankAccountIdentificationTypes"; private List bankAccountIdentificationTypes; public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; - /** **bankAccountIdentificationTypeRequirement** */ + /** + * **bankAccountIdentificationTypeRequirement** + */ public enum TypeEnum { - BANKACCOUNTIDENTIFICATIONTYPEREQUIREMENT( - String.valueOf("bankAccountIdentificationTypeRequirement")); + + BANKACCOUNTIDENTIFICATIONTYPEREQUIREMENT(String.valueOf("bankAccountIdentificationTypeRequirement")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -140,11 +145,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -152,24 +153,21 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public BankAccountIdentificationTypeRequirement() {} + public BankAccountIdentificationTypeRequirement() { + } /** * List of bank account identification types: eg.; [iban , numberAndBic] * - * @param bankAccountIdentificationTypes List of bank account identification types: eg.; [iban , - * numberAndBic] - * @return the current {@code BankAccountIdentificationTypeRequirement} instance, allowing for - * method chaining + * @param bankAccountIdentificationTypes List of bank account identification types: eg.; [iban , numberAndBic] + * @return the current {@code BankAccountIdentificationTypeRequirement} instance, allowing for method chaining */ - public BankAccountIdentificationTypeRequirement bankAccountIdentificationTypes( - List bankAccountIdentificationTypes) { + public BankAccountIdentificationTypeRequirement bankAccountIdentificationTypes(List bankAccountIdentificationTypes) { this.bankAccountIdentificationTypes = bankAccountIdentificationTypes; return this; } - public BankAccountIdentificationTypeRequirement addBankAccountIdentificationTypesItem( - BankAccountIdentificationTypesEnum bankAccountIdentificationTypesItem) { + public BankAccountIdentificationTypeRequirement addBankAccountIdentificationTypesItem(BankAccountIdentificationTypesEnum bankAccountIdentificationTypesItem) { if (this.bankAccountIdentificationTypes == null) { this.bankAccountIdentificationTypes = new ArrayList<>(); } @@ -179,9 +177,7 @@ public BankAccountIdentificationTypeRequirement addBankAccountIdentificationType /** * List of bank account identification types: eg.; [iban , numberAndBic] - * - * @return bankAccountIdentificationTypes List of bank account identification types: eg.; [iban , - * numberAndBic] + * @return bankAccountIdentificationTypes List of bank account identification types: eg.; [iban , numberAndBic] */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_IDENTIFICATION_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,25 +188,19 @@ public List getBankAccountIdentificationType /** * List of bank account identification types: eg.; [iban , numberAndBic] * - * @param bankAccountIdentificationTypes List of bank account identification types: eg.; [iban , - * numberAndBic] + * @param bankAccountIdentificationTypes List of bank account identification types: eg.; [iban , numberAndBic] */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_IDENTIFICATION_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBankAccountIdentificationTypes( - List bankAccountIdentificationTypes) { + public void setBankAccountIdentificationTypes(List bankAccountIdentificationTypes) { this.bankAccountIdentificationTypes = bankAccountIdentificationTypes; } /** - * Specifies the bank account details for a particular route per required field in this object - * depending on the country of the bank account and the currency of the transfer. + * Specifies the bank account details for a particular route per required field in this object depending on the country of the bank account and the currency of the transfer. * - * @param description Specifies the bank account details for a particular route per required field - * in this object depending on the country of the bank account and the currency of the - * transfer. - * @return the current {@code BankAccountIdentificationTypeRequirement} instance, allowing for - * method chaining + * @param description Specifies the bank account details for a particular route per required field in this object depending on the country of the bank account and the currency of the transfer. + * @return the current {@code BankAccountIdentificationTypeRequirement} instance, allowing for method chaining */ public BankAccountIdentificationTypeRequirement description(String description) { this.description = description; @@ -218,12 +208,8 @@ public BankAccountIdentificationTypeRequirement description(String description) } /** - * Specifies the bank account details for a particular route per required field in this object - * depending on the country of the bank account and the currency of the transfer. - * - * @return description Specifies the bank account details for a particular route per required - * field in this object depending on the country of the bank account and the currency of the - * transfer. + * Specifies the bank account details for a particular route per required field in this object depending on the country of the bank account and the currency of the transfer. + * @return description Specifies the bank account details for a particular route per required field in this object depending on the country of the bank account and the currency of the transfer. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,12 +218,9 @@ public String getDescription() { } /** - * Specifies the bank account details for a particular route per required field in this object - * depending on the country of the bank account and the currency of the transfer. + * Specifies the bank account details for a particular route per required field in this object depending on the country of the bank account and the currency of the transfer. * - * @param description Specifies the bank account details for a particular route per required field - * in this object depending on the country of the bank account and the currency of the - * transfer. + * @param description Specifies the bank account details for a particular route per required field in this object depending on the country of the bank account and the currency of the transfer. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -249,8 +232,7 @@ public void setDescription(String description) { * **bankAccountIdentificationTypeRequirement** * * @param type **bankAccountIdentificationTypeRequirement** - * @return the current {@code BankAccountIdentificationTypeRequirement} instance, allowing for - * method chaining + * @return the current {@code BankAccountIdentificationTypeRequirement} instance, allowing for method chaining */ public BankAccountIdentificationTypeRequirement type(TypeEnum type) { this.type = type; @@ -259,7 +241,6 @@ public BankAccountIdentificationTypeRequirement type(TypeEnum type) { /** * **bankAccountIdentificationTypeRequirement** - * * @return type **bankAccountIdentificationTypeRequirement** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -279,7 +260,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this BankAccountIdentificationTypeRequirement object is equal to o. */ + /** + * Return true if this BankAccountIdentificationTypeRequirement object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -288,13 +271,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - BankAccountIdentificationTypeRequirement bankAccountIdentificationTypeRequirement = - (BankAccountIdentificationTypeRequirement) o; - return Objects.equals( - this.bankAccountIdentificationTypes, - bankAccountIdentificationTypeRequirement.bankAccountIdentificationTypes) - && Objects.equals(this.description, bankAccountIdentificationTypeRequirement.description) - && Objects.equals(this.type, bankAccountIdentificationTypeRequirement.type); + BankAccountIdentificationTypeRequirement bankAccountIdentificationTypeRequirement = (BankAccountIdentificationTypeRequirement) o; + return Objects.equals(this.bankAccountIdentificationTypes, bankAccountIdentificationTypeRequirement.bankAccountIdentificationTypes) && + Objects.equals(this.description, bankAccountIdentificationTypeRequirement.description) && + Objects.equals(this.type, bankAccountIdentificationTypeRequirement.type); } @Override @@ -306,9 +286,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BankAccountIdentificationTypeRequirement {\n"); - sb.append(" bankAccountIdentificationTypes: ") - .append(toIndentedString(bankAccountIdentificationTypes)) - .append("\n"); + sb.append(" bankAccountIdentificationTypes: ").append(toIndentedString(bankAccountIdentificationTypes)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -316,7 +294,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -325,24 +304,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BankAccountIdentificationTypeRequirement given an JSON string * * @param jsonString JSON string * @return An instance of BankAccountIdentificationTypeRequirement - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BankAccountIdentificationTypeRequirement + * @throws JsonProcessingException if the JSON string is invalid with respect to BankAccountIdentificationTypeRequirement */ - public static BankAccountIdentificationTypeRequirement fromJson(String jsonString) - throws JsonProcessingException { + public static BankAccountIdentificationTypeRequirement fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankAccountIdentificationTypeRequirement.class); } - - /** - * Convert an instance of BankAccountIdentificationTypeRequirement to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BankAccountIdentificationTypeRequirement to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationValidationRequest.java b/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationValidationRequest.java index fbe2d5565..4db549ddf 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationValidationRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationValidationRequest.java @@ -2,69 +2,78 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.BankAccountIdentificationValidationRequestAccountIdentification; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** BankAccountIdentificationValidationRequest */ + +/** + * BankAccountIdentificationValidationRequest + */ @JsonPropertyOrder({ BankAccountIdentificationValidationRequest.JSON_PROPERTY_ACCOUNT_IDENTIFICATION }) + public class BankAccountIdentificationValidationRequest { public static final String JSON_PROPERTY_ACCOUNT_IDENTIFICATION = "accountIdentification"; private BankAccountIdentificationValidationRequestAccountIdentification accountIdentification; - public BankAccountIdentificationValidationRequest() {} + public BankAccountIdentificationValidationRequest() { + } /** * accountIdentification * - * @param accountIdentification - * @return the current {@code BankAccountIdentificationValidationRequest} instance, allowing for - * method chaining + * @param accountIdentification + * @return the current {@code BankAccountIdentificationValidationRequest} instance, allowing for method chaining */ - public BankAccountIdentificationValidationRequest accountIdentification( - BankAccountIdentificationValidationRequestAccountIdentification accountIdentification) { + public BankAccountIdentificationValidationRequest accountIdentification(BankAccountIdentificationValidationRequestAccountIdentification accountIdentification) { this.accountIdentification = accountIdentification; return this; } /** * Get accountIdentification - * - * @return accountIdentification + * @return accountIdentification */ @JsonProperty(JSON_PROPERTY_ACCOUNT_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BankAccountIdentificationValidationRequestAccountIdentification - getAccountIdentification() { + public BankAccountIdentificationValidationRequestAccountIdentification getAccountIdentification() { return accountIdentification; } /** * accountIdentification * - * @param accountIdentification + * @param accountIdentification */ @JsonProperty(JSON_PROPERTY_ACCOUNT_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountIdentification( - BankAccountIdentificationValidationRequestAccountIdentification accountIdentification) { + public void setAccountIdentification(BankAccountIdentificationValidationRequestAccountIdentification accountIdentification) { this.accountIdentification = accountIdentification; } - /** Return true if this BankAccountIdentificationValidationRequest object is equal to o. */ + /** + * Return true if this BankAccountIdentificationValidationRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -73,11 +82,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - BankAccountIdentificationValidationRequest bankAccountIdentificationValidationRequest = - (BankAccountIdentificationValidationRequest) o; - return Objects.equals( - this.accountIdentification, - bankAccountIdentificationValidationRequest.accountIdentification); + BankAccountIdentificationValidationRequest bankAccountIdentificationValidationRequest = (BankAccountIdentificationValidationRequest) o; + return Objects.equals(this.accountIdentification, bankAccountIdentificationValidationRequest.accountIdentification); } @Override @@ -89,15 +95,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BankAccountIdentificationValidationRequest {\n"); - sb.append(" accountIdentification: ") - .append(toIndentedString(accountIdentification)) - .append("\n"); + sb.append(" accountIdentification: ").append(toIndentedString(accountIdentification)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -106,24 +111,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BankAccountIdentificationValidationRequest given an JSON string * * @param jsonString JSON string * @return An instance of BankAccountIdentificationValidationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BankAccountIdentificationValidationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to BankAccountIdentificationValidationRequest */ - public static BankAccountIdentificationValidationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static BankAccountIdentificationValidationRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankAccountIdentificationValidationRequest.class); } - - /** - * Convert an instance of BankAccountIdentificationValidationRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BankAccountIdentificationValidationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationValidationRequestAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationValidationRequestAccountIdentification.java index 8b130a0b5..608017b94 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationValidationRequestAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationValidationRequestAccountIdentification.java @@ -2,19 +2,60 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.AULocalAccountIdentification; +import com.adyen.model.balanceplatform.AdditionalBankIdentification; +import com.adyen.model.balanceplatform.BRLocalAccountIdentification; +import com.adyen.model.balanceplatform.CALocalAccountIdentification; +import com.adyen.model.balanceplatform.CZLocalAccountIdentification; +import com.adyen.model.balanceplatform.DKLocalAccountIdentification; +import com.adyen.model.balanceplatform.HKLocalAccountIdentification; +import com.adyen.model.balanceplatform.HULocalAccountIdentification; +import com.adyen.model.balanceplatform.IbanAccountIdentification; +import com.adyen.model.balanceplatform.NOLocalAccountIdentification; +import com.adyen.model.balanceplatform.NZLocalAccountIdentification; +import com.adyen.model.balanceplatform.NumberAndBicAccountIdentification; +import com.adyen.model.balanceplatform.PLLocalAccountIdentification; +import com.adyen.model.balanceplatform.SELocalAccountIdentification; +import com.adyen.model.balanceplatform.SGLocalAccountIdentification; +import com.adyen.model.balanceplatform.UKLocalAccountIdentification; +import com.adyen.model.balanceplatform.USLocalAccountIdentification; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + +import com.fasterxml.jackson.core.type.TypeReference; + +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.Response; +import java.io.IOException; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; + import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; +import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -24,975 +65,872 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import jakarta.ws.rs.core.GenericType; -import java.io.IOException; -import java.util.*; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashSet; -import java.util.logging.Level; -import java.util.logging.Logger; -@JsonDeserialize( - using = - BankAccountIdentificationValidationRequestAccountIdentification - .BankAccountIdentificationValidationRequestAccountIdentificationDeserializer.class) -@JsonSerialize( - using = - BankAccountIdentificationValidationRequestAccountIdentification - .BankAccountIdentificationValidationRequestAccountIdentificationSerializer.class) -public class BankAccountIdentificationValidationRequestAccountIdentification - extends AbstractOpenApiSchema { - private static final Logger log = - Logger.getLogger( - BankAccountIdentificationValidationRequestAccountIdentification.class.getName()); - public static class BankAccountIdentificationValidationRequestAccountIdentificationSerializer - extends StdSerializer { - public BankAccountIdentificationValidationRequestAccountIdentificationSerializer( - Class t) { - super(t); +@JsonDeserialize(using = BankAccountIdentificationValidationRequestAccountIdentification.BankAccountIdentificationValidationRequestAccountIdentificationDeserializer.class) +@JsonSerialize(using = BankAccountIdentificationValidationRequestAccountIdentification.BankAccountIdentificationValidationRequestAccountIdentificationSerializer.class) +public class BankAccountIdentificationValidationRequestAccountIdentification extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(BankAccountIdentificationValidationRequestAccountIdentification.class.getName()); + + public static class BankAccountIdentificationValidationRequestAccountIdentificationSerializer extends StdSerializer { + public BankAccountIdentificationValidationRequestAccountIdentificationSerializer(Class t) { + super(t); + } + + public BankAccountIdentificationValidationRequestAccountIdentificationSerializer() { + this(null); + } + + @Override + public void serialize(BankAccountIdentificationValidationRequestAccountIdentification value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); + } + } + + public static class BankAccountIdentificationValidationRequestAccountIdentificationDeserializer extends StdDeserializer { + public BankAccountIdentificationValidationRequestAccountIdentificationDeserializer() { + this(BankAccountIdentificationValidationRequestAccountIdentification.class); + } + + public BankAccountIdentificationValidationRequestAccountIdentificationDeserializer(Class vc) { + super(vc); + } + + @Override + public BankAccountIdentificationValidationRequestAccountIdentification deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize AULocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(AULocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(AULocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'AULocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'AULocalAccountIdentification'", e); + } + + // deserialize BRLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(BRLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(BRLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'BRLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'BRLocalAccountIdentification'", e); + } + + // deserialize CALocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(CALocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CALocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CALocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CALocalAccountIdentification'", e); + } + + // deserialize CZLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(CZLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CZLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CZLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CZLocalAccountIdentification'", e); + } + + // deserialize DKLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(DKLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(DKLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'DKLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'DKLocalAccountIdentification'", e); + } + + // deserialize HKLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(HKLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(HKLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'HKLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'HKLocalAccountIdentification'", e); + } + + // deserialize HULocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(HULocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(HULocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'HULocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'HULocalAccountIdentification'", e); + } + + // deserialize IbanAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(IbanAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'IbanAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'IbanAccountIdentification'", e); + } + + // deserialize NOLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(NOLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(NOLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'NOLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'NOLocalAccountIdentification'", e); + } + + // deserialize NZLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(NZLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(NZLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'NZLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'NZLocalAccountIdentification'", e); + } + + // deserialize NumberAndBicAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(NumberAndBicAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(NumberAndBicAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'NumberAndBicAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'NumberAndBicAccountIdentification'", e); + } + + // deserialize PLLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(PLLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PLLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PLLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PLLocalAccountIdentification'", e); + } + + // deserialize SELocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(SELocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(SELocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'SELocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'SELocalAccountIdentification'", e); + } + + // deserialize SGLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(SGLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(SGLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'SGLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'SGLocalAccountIdentification'", e); + } + + // deserialize UKLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(UKLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(UKLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'UKLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'UKLocalAccountIdentification'", e); + } + + // deserialize USLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(USLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(USLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'USLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'USLocalAccountIdentification'", e); + } + + if (match == 1) { + BankAccountIdentificationValidationRequestAccountIdentification ret = new BankAccountIdentificationValidationRequestAccountIdentification(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException(String.format("Failed deserialization for BankAccountIdentificationValidationRequestAccountIdentification: %d classes match result, expected 1", match)); + } + + /** + * Handle deserialization of the 'null' value. + */ + @Override + public BankAccountIdentificationValidationRequestAccountIdentification getNullValue(DeserializationContext ctxt) throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "BankAccountIdentificationValidationRequestAccountIdentification cannot be null"); + } } - public BankAccountIdentificationValidationRequestAccountIdentificationSerializer() { - this(null); + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public BankAccountIdentificationValidationRequestAccountIdentification() { + super("oneOf", Boolean.FALSE); } - @Override - public void serialize( - BankAccountIdentificationValidationRequestAccountIdentification value, - JsonGenerator jgen, - SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + public BankAccountIdentificationValidationRequestAccountIdentification(AULocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountIdentificationValidationRequestAccountIdentification(BRLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountIdentificationValidationRequestAccountIdentification(CALocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountIdentificationValidationRequestAccountIdentification(CZLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountIdentificationValidationRequestAccountIdentification(DKLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountIdentificationValidationRequestAccountIdentification(HKLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountIdentificationValidationRequestAccountIdentification(HULocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountIdentificationValidationRequestAccountIdentification(IbanAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountIdentificationValidationRequestAccountIdentification(NOLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountIdentificationValidationRequestAccountIdentification(NZLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountIdentificationValidationRequestAccountIdentification(NumberAndBicAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountIdentificationValidationRequestAccountIdentification(PLLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountIdentificationValidationRequestAccountIdentification(SELocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } - } - public static class BankAccountIdentificationValidationRequestAccountIdentificationDeserializer - extends StdDeserializer { - public BankAccountIdentificationValidationRequestAccountIdentificationDeserializer() { - this(BankAccountIdentificationValidationRequestAccountIdentification.class); + public BankAccountIdentificationValidationRequestAccountIdentification(SGLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } - public BankAccountIdentificationValidationRequestAccountIdentificationDeserializer( - Class vc) { - super(vc); + public BankAccountIdentificationValidationRequestAccountIdentification(UKLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountIdentificationValidationRequestAccountIdentification(USLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("AULocalAccountIdentification", new GenericType() { + }); + schemas.put("BRLocalAccountIdentification", new GenericType() { + }); + schemas.put("CALocalAccountIdentification", new GenericType() { + }); + schemas.put("CZLocalAccountIdentification", new GenericType() { + }); + schemas.put("DKLocalAccountIdentification", new GenericType() { + }); + schemas.put("HKLocalAccountIdentification", new GenericType() { + }); + schemas.put("HULocalAccountIdentification", new GenericType() { + }); + schemas.put("IbanAccountIdentification", new GenericType() { + }); + schemas.put("NOLocalAccountIdentification", new GenericType() { + }); + schemas.put("NZLocalAccountIdentification", new GenericType() { + }); + schemas.put("NumberAndBicAccountIdentification", new GenericType() { + }); + schemas.put("PLLocalAccountIdentification", new GenericType() { + }); + schemas.put("SELocalAccountIdentification", new GenericType() { + }); + schemas.put("SGLocalAccountIdentification", new GenericType() { + }); + schemas.put("UKLocalAccountIdentification", new GenericType() { + }); + schemas.put("USLocalAccountIdentification", new GenericType() { + }); + JSON.registerDescendants(BankAccountIdentificationValidationRequestAccountIdentification.class, Collections.unmodifiableMap(schemas)); } @Override - public BankAccountIdentificationValidationRequestAccountIdentification deserialize( - JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize AULocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(AULocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(AULocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AULocalAccountIdentification'"); - } + public Map> getSchemas() { + return BankAccountIdentificationValidationRequestAccountIdentification.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check + * the instance parameter is valid against the oneOf child schemas: + * AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification + * + * It could be an instance of the 'oneOf' schemas. + * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(AULocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AULocalAccountIdentification'", e); - } - - // deserialize BRLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(BRLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(BRLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'BRLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(BRLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'BRLocalAccountIdentification'", e); - } - - // deserialize CALocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(CALocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(CALocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CALocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(CALocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CALocalAccountIdentification'", e); - } - - // deserialize CZLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(CZLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(CZLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CZLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(CZLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CZLocalAccountIdentification'", e); - } - - // deserialize DKLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(DKLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(DKLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'DKLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(DKLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'DKLocalAccountIdentification'", e); - } - - // deserialize HKLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(HKLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(HKLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'HKLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(HKLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'HKLocalAccountIdentification'", e); - } - - // deserialize HULocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(HULocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(HULocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'HULocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(HULocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'HULocalAccountIdentification'", e); - } - - // deserialize IbanAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(IbanAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'IbanAccountIdentification'"); - } + + if (JSON.isInstanceOf(IbanAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'IbanAccountIdentification'", e); - } - - // deserialize NOLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(NOLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(NOLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'NOLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(NOLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'NOLocalAccountIdentification'", e); - } - - // deserialize NZLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(NZLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(NZLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'NZLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(NZLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'NZLocalAccountIdentification'", e); - } - - // deserialize NumberAndBicAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(NumberAndBicAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(NumberAndBicAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'NumberAndBicAccountIdentification'"); - } + + if (JSON.isInstanceOf(NumberAndBicAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, "Input data does not match schema 'NumberAndBicAccountIdentification'", e); - } - - // deserialize PLLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(PLLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(PLLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PLLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(PLLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PLLocalAccountIdentification'", e); - } - - // deserialize SELocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(SELocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(SELocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SELocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(SELocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'SELocalAccountIdentification'", e); - } - - // deserialize SGLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(SGLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(SGLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SGLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(SGLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'SGLocalAccountIdentification'", e); - } - - // deserialize UKLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(UKLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(UKLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'UKLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(UKLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'UKLocalAccountIdentification'", e); - } - - // deserialize USLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(USLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(USLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'USLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(USLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'USLocalAccountIdentification'", e); - } - - if (match == 1) { - BankAccountIdentificationValidationRequestAccountIdentification ret = - new BankAccountIdentificationValidationRequestAccountIdentification(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for BankAccountIdentificationValidationRequestAccountIdentification: %d classes match result, expected 1", - match)); - } - - /** Handle deserialization of the 'null' value. */ + + throw new RuntimeException("Invalid instance type. Must be AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification"); + } + + /** + * Get the actual instance, which can be the following: + * AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification + * + * @return The actual instance (AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification) + */ @Override - public BankAccountIdentificationValidationRequestAccountIdentification getNullValue( - DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), - "BankAccountIdentificationValidationRequestAccountIdentification cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public BankAccountIdentificationValidationRequestAccountIdentification() { - super("oneOf", Boolean.FALSE); - } - - public BankAccountIdentificationValidationRequestAccountIdentification( - AULocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountIdentificationValidationRequestAccountIdentification( - BRLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountIdentificationValidationRequestAccountIdentification( - CALocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountIdentificationValidationRequestAccountIdentification( - CZLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountIdentificationValidationRequestAccountIdentification( - DKLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountIdentificationValidationRequestAccountIdentification( - HKLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountIdentificationValidationRequestAccountIdentification( - HULocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountIdentificationValidationRequestAccountIdentification( - IbanAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountIdentificationValidationRequestAccountIdentification( - NOLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountIdentificationValidationRequestAccountIdentification( - NZLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountIdentificationValidationRequestAccountIdentification( - NumberAndBicAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountIdentificationValidationRequestAccountIdentification( - PLLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountIdentificationValidationRequestAccountIdentification( - SELocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountIdentificationValidationRequestAccountIdentification( - SGLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountIdentificationValidationRequestAccountIdentification( - UKLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountIdentificationValidationRequestAccountIdentification( - USLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("AULocalAccountIdentification", new GenericType() {}); - schemas.put("BRLocalAccountIdentification", new GenericType() {}); - schemas.put("CALocalAccountIdentification", new GenericType() {}); - schemas.put("CZLocalAccountIdentification", new GenericType() {}); - schemas.put("DKLocalAccountIdentification", new GenericType() {}); - schemas.put("HKLocalAccountIdentification", new GenericType() {}); - schemas.put("HULocalAccountIdentification", new GenericType() {}); - schemas.put("IbanAccountIdentification", new GenericType() {}); - schemas.put("NOLocalAccountIdentification", new GenericType() {}); - schemas.put("NZLocalAccountIdentification", new GenericType() {}); - schemas.put( - "NumberAndBicAccountIdentification", - new GenericType() {}); - schemas.put("PLLocalAccountIdentification", new GenericType() {}); - schemas.put("SELocalAccountIdentification", new GenericType() {}); - schemas.put("SGLocalAccountIdentification", new GenericType() {}); - schemas.put("UKLocalAccountIdentification", new GenericType() {}); - schemas.put("USLocalAccountIdentification", new GenericType() {}); - JSON.registerDescendants( - BankAccountIdentificationValidationRequestAccountIdentification.class, - Collections.unmodifiableMap(schemas)); - } - - @Override - public Map> getSchemas() { - return BankAccountIdentificationValidationRequestAccountIdentification.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: AULocalAccountIdentification, BRLocalAccountIdentification, - * CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, - * HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, - * NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, - * PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, - * UKLocalAccountIdentification, USLocalAccountIdentification - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a - * composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(AULocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(BRLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(CALocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(CZLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(DKLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(HKLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(HULocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(IbanAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(NOLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(NZLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(NumberAndBicAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(PLLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(SELocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(SGLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(UKLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(USLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException( - "Invalid instance type. Must be AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification"); - } - - /** - * Get the actual instance, which can be the following: AULocalAccountIdentification, - * BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, - * DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, - * IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, - * NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, - * SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification - * - * @return The actual instance (AULocalAccountIdentification, BRLocalAccountIdentification, - * CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, - * HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, - * NOLocalAccountIdentification, NZLocalAccountIdentification, - * NumberAndBicAccountIdentification, PLLocalAccountIdentification, - * SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, - * USLocalAccountIdentification) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `AULocalAccountIdentification`. If the actual instance is not - * `AULocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `AULocalAccountIdentification` - * @throws ClassCastException if the instance is not `AULocalAccountIdentification` - */ - public AULocalAccountIdentification getAULocalAccountIdentification() throws ClassCastException { - return (AULocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `BRLocalAccountIdentification`. If the actual instance is not - * `BRLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `BRLocalAccountIdentification` - * @throws ClassCastException if the instance is not `BRLocalAccountIdentification` - */ - public BRLocalAccountIdentification getBRLocalAccountIdentification() throws ClassCastException { - return (BRLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `CALocalAccountIdentification`. If the actual instance is not - * `CALocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `CALocalAccountIdentification` - * @throws ClassCastException if the instance is not `CALocalAccountIdentification` - */ - public CALocalAccountIdentification getCALocalAccountIdentification() throws ClassCastException { - return (CALocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `CZLocalAccountIdentification`. If the actual instance is not - * `CZLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `CZLocalAccountIdentification` - * @throws ClassCastException if the instance is not `CZLocalAccountIdentification` - */ - public CZLocalAccountIdentification getCZLocalAccountIdentification() throws ClassCastException { - return (CZLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `DKLocalAccountIdentification`. If the actual instance is not - * `DKLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `DKLocalAccountIdentification` - * @throws ClassCastException if the instance is not `DKLocalAccountIdentification` - */ - public DKLocalAccountIdentification getDKLocalAccountIdentification() throws ClassCastException { - return (DKLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `HKLocalAccountIdentification`. If the actual instance is not - * `HKLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `HKLocalAccountIdentification` - * @throws ClassCastException if the instance is not `HKLocalAccountIdentification` - */ - public HKLocalAccountIdentification getHKLocalAccountIdentification() throws ClassCastException { - return (HKLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `HULocalAccountIdentification`. If the actual instance is not - * `HULocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `HULocalAccountIdentification` - * @throws ClassCastException if the instance is not `HULocalAccountIdentification` - */ - public HULocalAccountIdentification getHULocalAccountIdentification() throws ClassCastException { - return (HULocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `IbanAccountIdentification`. If the actual instance is not - * `IbanAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `IbanAccountIdentification` - * @throws ClassCastException if the instance is not `IbanAccountIdentification` - */ - public IbanAccountIdentification getIbanAccountIdentification() throws ClassCastException { - return (IbanAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `NOLocalAccountIdentification`. If the actual instance is not - * `NOLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `NOLocalAccountIdentification` - * @throws ClassCastException if the instance is not `NOLocalAccountIdentification` - */ - public NOLocalAccountIdentification getNOLocalAccountIdentification() throws ClassCastException { - return (NOLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `NZLocalAccountIdentification`. If the actual instance is not - * `NZLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `NZLocalAccountIdentification` - * @throws ClassCastException if the instance is not `NZLocalAccountIdentification` - */ - public NZLocalAccountIdentification getNZLocalAccountIdentification() throws ClassCastException { - return (NZLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `NumberAndBicAccountIdentification`. If the actual instance is not - * `NumberAndBicAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `NumberAndBicAccountIdentification` - * @throws ClassCastException if the instance is not `NumberAndBicAccountIdentification` - */ - public NumberAndBicAccountIdentification getNumberAndBicAccountIdentification() - throws ClassCastException { - return (NumberAndBicAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `PLLocalAccountIdentification`. If the actual instance is not - * `PLLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `PLLocalAccountIdentification` - * @throws ClassCastException if the instance is not `PLLocalAccountIdentification` - */ - public PLLocalAccountIdentification getPLLocalAccountIdentification() throws ClassCastException { - return (PLLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `SELocalAccountIdentification`. If the actual instance is not - * `SELocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `SELocalAccountIdentification` - * @throws ClassCastException if the instance is not `SELocalAccountIdentification` - */ - public SELocalAccountIdentification getSELocalAccountIdentification() throws ClassCastException { - return (SELocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `SGLocalAccountIdentification`. If the actual instance is not - * `SGLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `SGLocalAccountIdentification` - * @throws ClassCastException if the instance is not `SGLocalAccountIdentification` - */ - public SGLocalAccountIdentification getSGLocalAccountIdentification() throws ClassCastException { - return (SGLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `UKLocalAccountIdentification`. If the actual instance is not - * `UKLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `UKLocalAccountIdentification` - * @throws ClassCastException if the instance is not `UKLocalAccountIdentification` - */ - public UKLocalAccountIdentification getUKLocalAccountIdentification() throws ClassCastException { - return (UKLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `USLocalAccountIdentification`. If the actual instance is not - * `USLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `USLocalAccountIdentification` - * @throws ClassCastException if the instance is not `USLocalAccountIdentification` - */ - public USLocalAccountIdentification getUSLocalAccountIdentification() throws ClassCastException { - return (USLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Create an instance of BankAccountIdentificationValidationRequestAccountIdentification given an - * JSON string - * - * @param jsonString JSON string - * @return An instance of BankAccountIdentificationValidationRequestAccountIdentification - * @throws IOException if the JSON string is invalid with respect to - * BankAccountIdentificationValidationRequestAccountIdentification - */ - public static BankAccountIdentificationValidationRequestAccountIdentification fromJson( - String jsonString) throws IOException { - return JSON.getMapper() - .readValue( - jsonString, BankAccountIdentificationValidationRequestAccountIdentification.class); - } - - /** - * Convert an instance of BankAccountIdentificationValidationRequestAccountIdentification to an - * JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); - } + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `AULocalAccountIdentification`. If the actual instance is not `AULocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `AULocalAccountIdentification` + * @throws ClassCastException if the instance is not `AULocalAccountIdentification` + */ + public AULocalAccountIdentification getAULocalAccountIdentification() throws ClassCastException { + return (AULocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `BRLocalAccountIdentification`. If the actual instance is not `BRLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `BRLocalAccountIdentification` + * @throws ClassCastException if the instance is not `BRLocalAccountIdentification` + */ + public BRLocalAccountIdentification getBRLocalAccountIdentification() throws ClassCastException { + return (BRLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `CALocalAccountIdentification`. If the actual instance is not `CALocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CALocalAccountIdentification` + * @throws ClassCastException if the instance is not `CALocalAccountIdentification` + */ + public CALocalAccountIdentification getCALocalAccountIdentification() throws ClassCastException { + return (CALocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `CZLocalAccountIdentification`. If the actual instance is not `CZLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CZLocalAccountIdentification` + * @throws ClassCastException if the instance is not `CZLocalAccountIdentification` + */ + public CZLocalAccountIdentification getCZLocalAccountIdentification() throws ClassCastException { + return (CZLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `DKLocalAccountIdentification`. If the actual instance is not `DKLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `DKLocalAccountIdentification` + * @throws ClassCastException if the instance is not `DKLocalAccountIdentification` + */ + public DKLocalAccountIdentification getDKLocalAccountIdentification() throws ClassCastException { + return (DKLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `HKLocalAccountIdentification`. If the actual instance is not `HKLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `HKLocalAccountIdentification` + * @throws ClassCastException if the instance is not `HKLocalAccountIdentification` + */ + public HKLocalAccountIdentification getHKLocalAccountIdentification() throws ClassCastException { + return (HKLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `HULocalAccountIdentification`. If the actual instance is not `HULocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `HULocalAccountIdentification` + * @throws ClassCastException if the instance is not `HULocalAccountIdentification` + */ + public HULocalAccountIdentification getHULocalAccountIdentification() throws ClassCastException { + return (HULocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `IbanAccountIdentification`. If the actual instance is not `IbanAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `IbanAccountIdentification` + * @throws ClassCastException if the instance is not `IbanAccountIdentification` + */ + public IbanAccountIdentification getIbanAccountIdentification() throws ClassCastException { + return (IbanAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `NOLocalAccountIdentification`. If the actual instance is not `NOLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `NOLocalAccountIdentification` + * @throws ClassCastException if the instance is not `NOLocalAccountIdentification` + */ + public NOLocalAccountIdentification getNOLocalAccountIdentification() throws ClassCastException { + return (NOLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `NZLocalAccountIdentification`. If the actual instance is not `NZLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `NZLocalAccountIdentification` + * @throws ClassCastException if the instance is not `NZLocalAccountIdentification` + */ + public NZLocalAccountIdentification getNZLocalAccountIdentification() throws ClassCastException { + return (NZLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `NumberAndBicAccountIdentification`. If the actual instance is not `NumberAndBicAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `NumberAndBicAccountIdentification` + * @throws ClassCastException if the instance is not `NumberAndBicAccountIdentification` + */ + public NumberAndBicAccountIdentification getNumberAndBicAccountIdentification() throws ClassCastException { + return (NumberAndBicAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `PLLocalAccountIdentification`. If the actual instance is not `PLLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `PLLocalAccountIdentification` + * @throws ClassCastException if the instance is not `PLLocalAccountIdentification` + */ + public PLLocalAccountIdentification getPLLocalAccountIdentification() throws ClassCastException { + return (PLLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `SELocalAccountIdentification`. If the actual instance is not `SELocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `SELocalAccountIdentification` + * @throws ClassCastException if the instance is not `SELocalAccountIdentification` + */ + public SELocalAccountIdentification getSELocalAccountIdentification() throws ClassCastException { + return (SELocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `SGLocalAccountIdentification`. If the actual instance is not `SGLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `SGLocalAccountIdentification` + * @throws ClassCastException if the instance is not `SGLocalAccountIdentification` + */ + public SGLocalAccountIdentification getSGLocalAccountIdentification() throws ClassCastException { + return (SGLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `UKLocalAccountIdentification`. If the actual instance is not `UKLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `UKLocalAccountIdentification` + * @throws ClassCastException if the instance is not `UKLocalAccountIdentification` + */ + public UKLocalAccountIdentification getUKLocalAccountIdentification() throws ClassCastException { + return (UKLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `USLocalAccountIdentification`. If the actual instance is not `USLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `USLocalAccountIdentification` + * @throws ClassCastException if the instance is not `USLocalAccountIdentification` + */ + public USLocalAccountIdentification getUSLocalAccountIdentification() throws ClassCastException { + return (USLocalAccountIdentification)super.getActualInstance(); + } + + + /** + * Create an instance of BankAccountIdentificationValidationRequestAccountIdentification given an JSON string + * + * @param jsonString JSON string + * @return An instance of BankAccountIdentificationValidationRequestAccountIdentification + * @throws IOException if the JSON string is invalid with respect to BankAccountIdentificationValidationRequestAccountIdentification + */ + public static BankAccountIdentificationValidationRequestAccountIdentification fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, BankAccountIdentificationValidationRequestAccountIdentification.class); + } + + /** + * Convert an instance of BankAccountIdentificationValidationRequestAccountIdentification to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } + } diff --git a/src/main/java/com/adyen/model/balanceplatform/BankAccountModel.java b/src/main/java/com/adyen/model/balanceplatform/BankAccountModel.java index 821cb6521..7c0ce1977 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BankAccountModel.java +++ b/src/main/java/com/adyen/model/balanceplatform/BankAccountModel.java @@ -2,37 +2,41 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * BankAccountModel + */ +@JsonPropertyOrder({ + BankAccountModel.JSON_PROPERTY_FORM_FACTOR +}) -/** BankAccountModel */ -@JsonPropertyOrder({BankAccountModel.JSON_PROPERTY_FORM_FACTOR}) public class BankAccountModel { /** - * Business accounts with a `formFactor` value of **physical** are business accounts - * issued under the central bank of that country. The default value is **physical** for NL, US, - * and UK business accounts. Adyen creates a local IBAN for business accounts when the - * `formFactor` value is set to **virtual**. The local IBANs that are supported are for - * DE and FR, which reference a physical NL account, with funds being routed through the central - * bank of NL. + * Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. */ public enum FormFactorEnum { + PHYSICAL(String.valueOf("physical")), UNKNOWN(String.valueOf("unknown")), @@ -44,7 +48,7 @@ public enum FormFactorEnum { private String value; FormFactorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -65,11 +69,7 @@ public static FormFactorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FormFactorEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FormFactorEnum.values())); + LOG.warning("FormFactorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FormFactorEnum.values())); return null; } } @@ -77,22 +77,13 @@ public static FormFactorEnum fromValue(String value) { public static final String JSON_PROPERTY_FORM_FACTOR = "formFactor"; private FormFactorEnum formFactor; - public BankAccountModel() {} + public BankAccountModel() { + } /** - * Business accounts with a `formFactor` value of **physical** are business accounts - * issued under the central bank of that country. The default value is **physical** for NL, US, - * and UK business accounts. Adyen creates a local IBAN for business accounts when the - * `formFactor` value is set to **virtual**. The local IBANs that are supported are for - * DE and FR, which reference a physical NL account, with funds being routed through the central - * bank of NL. + * Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. * - * @param formFactor Business accounts with a `formFactor` value of **physical** are - * business accounts issued under the central bank of that country. The default value is - * **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business - * accounts when the `formFactor` value is set to **virtual**. The local IBANs that - * are supported are for DE and FR, which reference a physical NL account, with funds being - * routed through the central bank of NL. + * @param formFactor Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. * @return the current {@code BankAccountModel} instance, allowing for method chaining */ public BankAccountModel formFactor(FormFactorEnum formFactor) { @@ -101,19 +92,8 @@ public BankAccountModel formFactor(FormFactorEnum formFactor) { } /** - * Business accounts with a `formFactor` value of **physical** are business accounts - * issued under the central bank of that country. The default value is **physical** for NL, US, - * and UK business accounts. Adyen creates a local IBAN for business accounts when the - * `formFactor` value is set to **virtual**. The local IBANs that are supported are for - * DE and FR, which reference a physical NL account, with funds being routed through the central - * bank of NL. - * - * @return formFactor Business accounts with a `formFactor` value of **physical** are - * business accounts issued under the central bank of that country. The default value is - * **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business - * accounts when the `formFactor` value is set to **virtual**. The local IBANs that - * are supported are for DE and FR, which reference a physical NL account, with funds being - * routed through the central bank of NL. + * Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. + * @return formFactor Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. */ @JsonProperty(JSON_PROPERTY_FORM_FACTOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -122,19 +102,9 @@ public FormFactorEnum getFormFactor() { } /** - * Business accounts with a `formFactor` value of **physical** are business accounts - * issued under the central bank of that country. The default value is **physical** for NL, US, - * and UK business accounts. Adyen creates a local IBAN for business accounts when the - * `formFactor` value is set to **virtual**. The local IBANs that are supported are for - * DE and FR, which reference a physical NL account, with funds being routed through the central - * bank of NL. + * Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. * - * @param formFactor Business accounts with a `formFactor` value of **physical** are - * business accounts issued under the central bank of that country. The default value is - * **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business - * accounts when the `formFactor` value is set to **virtual**. The local IBANs that - * are supported are for DE and FR, which reference a physical NL account, with funds being - * routed through the central bank of NL. + * @param formFactor Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. */ @JsonProperty(JSON_PROPERTY_FORM_FACTOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,7 +112,9 @@ public void setFormFactor(FormFactorEnum formFactor) { this.formFactor = formFactor; } - /** Return true if this BankAccountModel object is equal to o. */ + /** + * Return true if this BankAccountModel object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -170,7 +142,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -179,7 +152,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BankAccountModel given an JSON string * * @param jsonString JSON string @@ -189,12 +162,11 @@ private String toIndentedString(Object o) { public static BankAccountModel fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankAccountModel.class); } - - /** - * Convert an instance of BankAccountModel to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BankAccountModel to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BankIdentification.java b/src/main/java/com/adyen/model/balanceplatform/BankIdentification.java index 7c393dbe2..a5cf184d4 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BankIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/BankIdentification.java @@ -2,31 +2,37 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** BankIdentification */ +/** + * BankIdentification + */ @JsonPropertyOrder({ BankIdentification.JSON_PROPERTY_COUNTRY, BankIdentification.JSON_PROPERTY_IDENTIFICATION, BankIdentification.JSON_PROPERTY_IDENTIFICATION_TYPE }) + public class BankIdentification { public static final String JSON_PROPERTY_COUNTRY = "country"; private String country; @@ -35,10 +41,10 @@ public class BankIdentification { private String identification; /** - * The type of the identification. Possible values: **iban**, **routingNumber**, **sortCode**, - * **bic**. + * The type of the identification. Possible values: **iban**, **routingNumber**, **sortCode**, **bic**. */ public enum IdentificationTypeEnum { + BIC(String.valueOf("bic")), IBAN(String.valueOf("iban")), @@ -52,7 +58,7 @@ public enum IdentificationTypeEnum { private String value; IdentificationTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,11 +79,7 @@ public static IdentificationTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "IdentificationTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(IdentificationTypeEnum.values())); + LOG.warning("IdentificationTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(IdentificationTypeEnum.values())); return null; } } @@ -85,14 +87,13 @@ public static IdentificationTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_IDENTIFICATION_TYPE = "identificationType"; private IdentificationTypeEnum identificationType; - public BankIdentification() {} + public BankIdentification() { + } /** - * Two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country - * code. + * Two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. * - * @param country Two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. + * @param country Two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. * @return the current {@code BankIdentification} instance, allowing for method chaining */ public BankIdentification country(String country) { @@ -101,11 +102,8 @@ public BankIdentification country(String country) { } /** - * Two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country - * code. - * - * @return country Two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. + * Two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. + * @return country Two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,11 +112,9 @@ public String getCountry() { } /** - * Two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country - * code. + * Two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. * - * @param country Two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. + * @param country Two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,7 +135,6 @@ public BankIdentification identification(String identification) { /** * The bank identification code. - * * @return identification The bank identification code. */ @JsonProperty(JSON_PROPERTY_IDENTIFICATION) @@ -160,11 +155,9 @@ public void setIdentification(String identification) { } /** - * The type of the identification. Possible values: **iban**, **routingNumber**, **sortCode**, - * **bic**. + * The type of the identification. Possible values: **iban**, **routingNumber**, **sortCode**, **bic**. * - * @param identificationType The type of the identification. Possible values: **iban**, - * **routingNumber**, **sortCode**, **bic**. + * @param identificationType The type of the identification. Possible values: **iban**, **routingNumber**, **sortCode**, **bic**. * @return the current {@code BankIdentification} instance, allowing for method chaining */ public BankIdentification identificationType(IdentificationTypeEnum identificationType) { @@ -173,11 +166,8 @@ public BankIdentification identificationType(IdentificationTypeEnum identificati } /** - * The type of the identification. Possible values: **iban**, **routingNumber**, **sortCode**, - * **bic**. - * - * @return identificationType The type of the identification. Possible values: **iban**, - * **routingNumber**, **sortCode**, **bic**. + * The type of the identification. Possible values: **iban**, **routingNumber**, **sortCode**, **bic**. + * @return identificationType The type of the identification. Possible values: **iban**, **routingNumber**, **sortCode**, **bic**. */ @JsonProperty(JSON_PROPERTY_IDENTIFICATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,11 +176,9 @@ public IdentificationTypeEnum getIdentificationType() { } /** - * The type of the identification. Possible values: **iban**, **routingNumber**, **sortCode**, - * **bic**. + * The type of the identification. Possible values: **iban**, **routingNumber**, **sortCode**, **bic**. * - * @param identificationType The type of the identification. Possible values: **iban**, - * **routingNumber**, **sortCode**, **bic**. + * @param identificationType The type of the identification. Possible values: **iban**, **routingNumber**, **sortCode**, **bic**. */ @JsonProperty(JSON_PROPERTY_IDENTIFICATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,7 +186,9 @@ public void setIdentificationType(IdentificationTypeEnum identificationType) { this.identificationType = identificationType; } - /** Return true if this BankIdentification object is equal to o. */ + /** + * Return true if this BankIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -208,9 +198,9 @@ public boolean equals(Object o) { return false; } BankIdentification bankIdentification = (BankIdentification) o; - return Objects.equals(this.country, bankIdentification.country) - && Objects.equals(this.identification, bankIdentification.identification) - && Objects.equals(this.identificationType, bankIdentification.identificationType); + return Objects.equals(this.country, bankIdentification.country) && + Objects.equals(this.identification, bankIdentification.identification) && + Objects.equals(this.identificationType, bankIdentification.identificationType); } @Override @@ -230,7 +220,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -239,23 +230,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BankIdentification given an JSON string * * @param jsonString JSON string * @return An instance of BankIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BankIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to BankIdentification */ public static BankIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankIdentification.class); } - - /** - * Convert an instance of BankIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BankIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BrandVariantsRestriction.java b/src/main/java/com/adyen/model/balanceplatform/BrandVariantsRestriction.java index fc760cce2..57de76a71 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BrandVariantsRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/BrandVariantsRestriction.java @@ -2,28 +2,38 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** BrandVariantsRestriction */ +/** + * BrandVariantsRestriction + */ @JsonPropertyOrder({ BrandVariantsRestriction.JSON_PROPERTY_OPERATION, BrandVariantsRestriction.JSON_PROPERTY_VALUE }) + public class BrandVariantsRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -31,7 +41,8 @@ public class BrandVariantsRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private List value; - public BrandVariantsRestriction() {} + public BrandVariantsRestriction() { + } /** * Defines how the condition must be evaluated. @@ -46,7 +57,6 @@ public BrandVariantsRestriction operation(String operation) { /** * Defines how the condition must be evaluated. - * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -67,19 +77,9 @@ public void setOperation(String operation) { } /** - * List of card brand variants. Possible values: - **mc**, **mccredit**, - * **mccommercialcredit_b2b**, **mcdebit**, **mcbusinessdebit**, **mcbusinessworlddebit**, - * **mcprepaid**, **mcmaestro** - **visa**, **visacredit**, **visadebit**, **visaprepaid**. You - * can specify a rule for a generic variant. For example, to create a rule for all Mastercard - * payment instruments, use **mc**. The rule is applied to all payment instruments under **mc**, - * such as **mcbusinessdebit** and **mcdebit**. + * List of card brand variants. Possible values: - **mc**, **mccredit**, **mccommercialcredit_b2b**, **mcdebit**, **mcbusinessdebit**, **mcbusinessworlddebit**, **mcprepaid**, **mcmaestro** - **visa**, **visacredit**, **visadebit**, **visaprepaid**. You can specify a rule for a generic variant. For example, to create a rule for all Mastercard payment instruments, use **mc**. The rule is applied to all payment instruments under **mc**, such as **mcbusinessdebit** and **mcdebit**. * - * @param value List of card brand variants. Possible values: - **mc**, **mccredit**, - * **mccommercialcredit_b2b**, **mcdebit**, **mcbusinessdebit**, **mcbusinessworlddebit**, - * **mcprepaid**, **mcmaestro** - **visa**, **visacredit**, **visadebit**, **visaprepaid**. - * You can specify a rule for a generic variant. For example, to create a rule for all - * Mastercard payment instruments, use **mc**. The rule is applied to all payment instruments - * under **mc**, such as **mcbusinessdebit** and **mcdebit**. + * @param value List of card brand variants. Possible values: - **mc**, **mccredit**, **mccommercialcredit_b2b**, **mcdebit**, **mcbusinessdebit**, **mcbusinessworlddebit**, **mcprepaid**, **mcmaestro** - **visa**, **visacredit**, **visadebit**, **visaprepaid**. You can specify a rule for a generic variant. For example, to create a rule for all Mastercard payment instruments, use **mc**. The rule is applied to all payment instruments under **mc**, such as **mcbusinessdebit** and **mcdebit**. * @return the current {@code BrandVariantsRestriction} instance, allowing for method chaining */ public BrandVariantsRestriction value(List value) { @@ -96,19 +96,8 @@ public BrandVariantsRestriction addValueItem(String valueItem) { } /** - * List of card brand variants. Possible values: - **mc**, **mccredit**, - * **mccommercialcredit_b2b**, **mcdebit**, **mcbusinessdebit**, **mcbusinessworlddebit**, - * **mcprepaid**, **mcmaestro** - **visa**, **visacredit**, **visadebit**, **visaprepaid**. You - * can specify a rule for a generic variant. For example, to create a rule for all Mastercard - * payment instruments, use **mc**. The rule is applied to all payment instruments under **mc**, - * such as **mcbusinessdebit** and **mcdebit**. - * - * @return value List of card brand variants. Possible values: - **mc**, **mccredit**, - * **mccommercialcredit_b2b**, **mcdebit**, **mcbusinessdebit**, **mcbusinessworlddebit**, - * **mcprepaid**, **mcmaestro** - **visa**, **visacredit**, **visadebit**, **visaprepaid**. - * You can specify a rule for a generic variant. For example, to create a rule for all - * Mastercard payment instruments, use **mc**. The rule is applied to all payment instruments - * under **mc**, such as **mcbusinessdebit** and **mcdebit**. + * List of card brand variants. Possible values: - **mc**, **mccredit**, **mccommercialcredit_b2b**, **mcdebit**, **mcbusinessdebit**, **mcbusinessworlddebit**, **mcprepaid**, **mcmaestro** - **visa**, **visacredit**, **visadebit**, **visaprepaid**. You can specify a rule for a generic variant. For example, to create a rule for all Mastercard payment instruments, use **mc**. The rule is applied to all payment instruments under **mc**, such as **mcbusinessdebit** and **mcdebit**. + * @return value List of card brand variants. Possible values: - **mc**, **mccredit**, **mccommercialcredit_b2b**, **mcdebit**, **mcbusinessdebit**, **mcbusinessworlddebit**, **mcprepaid**, **mcmaestro** - **visa**, **visacredit**, **visadebit**, **visaprepaid**. You can specify a rule for a generic variant. For example, to create a rule for all Mastercard payment instruments, use **mc**. The rule is applied to all payment instruments under **mc**, such as **mcbusinessdebit** and **mcdebit**. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,19 +106,9 @@ public List getValue() { } /** - * List of card brand variants. Possible values: - **mc**, **mccredit**, - * **mccommercialcredit_b2b**, **mcdebit**, **mcbusinessdebit**, **mcbusinessworlddebit**, - * **mcprepaid**, **mcmaestro** - **visa**, **visacredit**, **visadebit**, **visaprepaid**. You - * can specify a rule for a generic variant. For example, to create a rule for all Mastercard - * payment instruments, use **mc**. The rule is applied to all payment instruments under **mc**, - * such as **mcbusinessdebit** and **mcdebit**. + * List of card brand variants. Possible values: - **mc**, **mccredit**, **mccommercialcredit_b2b**, **mcdebit**, **mcbusinessdebit**, **mcbusinessworlddebit**, **mcprepaid**, **mcmaestro** - **visa**, **visacredit**, **visadebit**, **visaprepaid**. You can specify a rule for a generic variant. For example, to create a rule for all Mastercard payment instruments, use **mc**. The rule is applied to all payment instruments under **mc**, such as **mcbusinessdebit** and **mcdebit**. * - * @param value List of card brand variants. Possible values: - **mc**, **mccredit**, - * **mccommercialcredit_b2b**, **mcdebit**, **mcbusinessdebit**, **mcbusinessworlddebit**, - * **mcprepaid**, **mcmaestro** - **visa**, **visacredit**, **visadebit**, **visaprepaid**. - * You can specify a rule for a generic variant. For example, to create a rule for all - * Mastercard payment instruments, use **mc**. The rule is applied to all payment instruments - * under **mc**, such as **mcbusinessdebit** and **mcdebit**. + * @param value List of card brand variants. Possible values: - **mc**, **mccredit**, **mccommercialcredit_b2b**, **mcdebit**, **mcbusinessdebit**, **mcbusinessworlddebit**, **mcprepaid**, **mcmaestro** - **visa**, **visacredit**, **visadebit**, **visaprepaid**. You can specify a rule for a generic variant. For example, to create a rule for all Mastercard payment instruments, use **mc**. The rule is applied to all payment instruments under **mc**, such as **mcbusinessdebit** and **mcdebit**. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,7 +116,9 @@ public void setValue(List value) { this.value = value; } - /** Return true if this BrandVariantsRestriction object is equal to o. */ + /** + * Return true if this BrandVariantsRestriction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -147,8 +128,8 @@ public boolean equals(Object o) { return false; } BrandVariantsRestriction brandVariantsRestriction = (BrandVariantsRestriction) o; - return Objects.equals(this.operation, brandVariantsRestriction.operation) - && Objects.equals(this.value, brandVariantsRestriction.value); + return Objects.equals(this.operation, brandVariantsRestriction.operation) && + Objects.equals(this.value, brandVariantsRestriction.value); } @Override @@ -167,7 +148,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -176,24 +158,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BrandVariantsRestriction given an JSON string * * @param jsonString JSON string * @return An instance of BrandVariantsRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BrandVariantsRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to BrandVariantsRestriction */ - public static BrandVariantsRestriction fromJson(String jsonString) - throws JsonProcessingException { + public static BrandVariantsRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BrandVariantsRestriction.class); } - - /** - * Convert an instance of BrandVariantsRestriction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BrandVariantsRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BulkAddress.java b/src/main/java/com/adyen/model/balanceplatform/BulkAddress.java index aafa0ef66..fcd29d1b0 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BulkAddress.java +++ b/src/main/java/com/adyen/model/balanceplatform/BulkAddress.java @@ -2,22 +2,31 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** BulkAddress */ + +/** + * BulkAddress + */ @JsonPropertyOrder({ BulkAddress.JSON_PROPERTY_CITY, BulkAddress.JSON_PROPERTY_COMPANY, @@ -29,6 +38,7 @@ BulkAddress.JSON_PROPERTY_STATE_OR_PROVINCE, BulkAddress.JSON_PROPERTY_STREET }) + public class BulkAddress { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -57,7 +67,8 @@ public class BulkAddress { public static final String JSON_PROPERTY_STREET = "street"; private String street; - public BulkAddress() {} + public BulkAddress() { + } /** * The name of the city. @@ -72,7 +83,6 @@ public BulkAddress city(String city) { /** * The name of the city. - * * @return city The name of the city. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -105,7 +115,6 @@ public BulkAddress company(String company) { /** * The name of the company. - * * @return company The name of the company. */ @JsonProperty(JSON_PROPERTY_COMPANY) @@ -138,7 +147,6 @@ public BulkAddress country(String country) { /** * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. - * * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @@ -171,7 +179,6 @@ public BulkAddress email(String email) { /** * The email address. - * * @return email The email address. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -204,7 +211,6 @@ public BulkAddress houseNumberOrName(String houseNumberOrName) { /** * The house number or name. - * * @return houseNumberOrName The house number or name. */ @JsonProperty(JSON_PROPERTY_HOUSE_NUMBER_OR_NAME) @@ -237,7 +243,6 @@ public BulkAddress mobile(String mobile) { /** * The full telephone number. - * * @return mobile The full telephone number. */ @JsonProperty(JSON_PROPERTY_MOBILE) @@ -258,11 +263,9 @@ public void setMobile(String mobile) { } /** - * The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all - * other countries. + * The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries. * - * @param postalCode The postal code. Maximum length: * 5 digits for addresses in the US. * 10 - * characters for all other countries. + * @param postalCode The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries. * @return the current {@code BulkAddress} instance, allowing for method chaining */ public BulkAddress postalCode(String postalCode) { @@ -271,11 +274,8 @@ public BulkAddress postalCode(String postalCode) { } /** - * The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all - * other countries. - * - * @return postalCode The postal code. Maximum length: * 5 digits for addresses in the US. * 10 - * characters for all other countries. + * The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries. + * @return postalCode The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,11 +284,9 @@ public String getPostalCode() { } /** - * The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all - * other countries. + * The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries. * - * @param postalCode The postal code. Maximum length: * 5 digits for addresses in the US. * 10 - * characters for all other countries. + * @param postalCode The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -297,11 +295,9 @@ public void setPostalCode(String postalCode) { } /** - * The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in - * the US. + * The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in the US. * - * @param stateOrProvince The two-letter ISO 3166-2 state or province code. Maximum length: 2 - * characters for addresses in the US. + * @param stateOrProvince The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in the US. * @return the current {@code BulkAddress} instance, allowing for method chaining */ public BulkAddress stateOrProvince(String stateOrProvince) { @@ -310,11 +306,8 @@ public BulkAddress stateOrProvince(String stateOrProvince) { } /** - * The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in - * the US. - * - * @return stateOrProvince The two-letter ISO 3166-2 state or province code. Maximum length: 2 - * characters for addresses in the US. + * The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in the US. + * @return stateOrProvince The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in the US. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -323,11 +316,9 @@ public String getStateOrProvince() { } /** - * The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in - * the US. + * The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in the US. * - * @param stateOrProvince The two-letter ISO 3166-2 state or province code. Maximum length: 2 - * characters for addresses in the US. + * @param stateOrProvince The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in the US. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -348,7 +339,6 @@ public BulkAddress street(String street) { /** * The streetname of the house. - * * @return street The streetname of the house. */ @JsonProperty(JSON_PROPERTY_STREET) @@ -368,7 +358,9 @@ public void setStreet(String street) { this.street = street; } - /** Return true if this BulkAddress object is equal to o. */ + /** + * Return true if this BulkAddress object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -378,29 +370,20 @@ public boolean equals(Object o) { return false; } BulkAddress bulkAddress = (BulkAddress) o; - return Objects.equals(this.city, bulkAddress.city) - && Objects.equals(this.company, bulkAddress.company) - && Objects.equals(this.country, bulkAddress.country) - && Objects.equals(this.email, bulkAddress.email) - && Objects.equals(this.houseNumberOrName, bulkAddress.houseNumberOrName) - && Objects.equals(this.mobile, bulkAddress.mobile) - && Objects.equals(this.postalCode, bulkAddress.postalCode) - && Objects.equals(this.stateOrProvince, bulkAddress.stateOrProvince) - && Objects.equals(this.street, bulkAddress.street); + return Objects.equals(this.city, bulkAddress.city) && + Objects.equals(this.company, bulkAddress.company) && + Objects.equals(this.country, bulkAddress.country) && + Objects.equals(this.email, bulkAddress.email) && + Objects.equals(this.houseNumberOrName, bulkAddress.houseNumberOrName) && + Objects.equals(this.mobile, bulkAddress.mobile) && + Objects.equals(this.postalCode, bulkAddress.postalCode) && + Objects.equals(this.stateOrProvince, bulkAddress.stateOrProvince) && + Objects.equals(this.street, bulkAddress.street); } @Override public int hashCode() { - return Objects.hash( - city, - company, - country, - email, - houseNumberOrName, - mobile, - postalCode, - stateOrProvince, - street); + return Objects.hash(city, company, country, email, houseNumberOrName, mobile, postalCode, stateOrProvince, street); } @Override @@ -421,7 +404,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -430,7 +414,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BulkAddress given an JSON string * * @param jsonString JSON string @@ -440,12 +424,11 @@ private String toIndentedString(Object o) { public static BulkAddress fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BulkAddress.class); } - - /** - * Convert an instance of BulkAddress to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BulkAddress to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CALocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/CALocalAccountIdentification.java index 9f3813481..a2eaa1a94 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CALocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/CALocalAccountIdentification.java @@ -2,26 +2,31 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CALocalAccountIdentification */ +/** + * CALocalAccountIdentification + */ @JsonPropertyOrder({ CALocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, CALocalAccountIdentification.JSON_PROPERTY_ACCOUNT_TYPE, @@ -29,14 +34,16 @@ CALocalAccountIdentification.JSON_PROPERTY_TRANSIT_NUMBER, CALocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class CALocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ public enum AccountTypeEnum { + CHECKING(String.valueOf("checking")), SAVINGS(String.valueOf("savings")); @@ -46,7 +53,7 @@ public enum AccountTypeEnum { private String value; AccountTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -67,11 +74,7 @@ public static AccountTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AccountTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AccountTypeEnum.values())); + LOG.warning("AccountTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AccountTypeEnum.values())); return null; } } @@ -85,8 +88,11 @@ public static AccountTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANSIT_NUMBER = "transitNumber"; private String transitNumber; - /** **caLocal** */ + /** + * **caLocal** + */ public enum TypeEnum { + CALOCAL(String.valueOf("caLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -94,7 +100,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -115,11 +121,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -127,7 +129,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CALocalAccountIdentification() {} + public CALocalAccountIdentification() { + } /** * The 5- to 12-digit bank account number, without separators or whitespace. @@ -142,7 +145,6 @@ public CALocalAccountIdentification accountNumber(String accountNumber) { /** * The 5- to 12-digit bank account number, without separators or whitespace. - * * @return accountNumber The 5- to 12-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -163,10 +165,9 @@ public void setAccountNumber(String accountNumber) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. - * Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * @return the current {@code CALocalAccountIdentification} instance, allowing for method chaining */ public CALocalAccountIdentification accountType(AccountTypeEnum accountType) { @@ -175,10 +176,8 @@ public CALocalAccountIdentification accountType(AccountTypeEnum accountType) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. - * - * @return accountType The bank account type. Possible values: **checking** or **savings**. - * Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * @return accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,10 +186,9 @@ public AccountTypeEnum getAccountType() { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. - * Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,7 +209,6 @@ public CALocalAccountIdentification institutionNumber(String institutionNumber) /** * The 3-digit institution number, without separators or whitespace. - * * @return institutionNumber The 3-digit institution number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_INSTITUTION_NUMBER) @@ -244,7 +241,6 @@ public CALocalAccountIdentification transitNumber(String transitNumber) { /** * The 5-digit transit number, without separators or whitespace. - * * @return transitNumber The 5-digit transit number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_TRANSIT_NUMBER) @@ -277,7 +273,6 @@ public CALocalAccountIdentification type(TypeEnum type) { /** * **caLocal** - * * @return type **caLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -297,7 +292,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this CALocalAccountIdentification object is equal to o. */ + /** + * Return true if this CALocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -307,11 +304,11 @@ public boolean equals(Object o) { return false; } CALocalAccountIdentification caLocalAccountIdentification = (CALocalAccountIdentification) o; - return Objects.equals(this.accountNumber, caLocalAccountIdentification.accountNumber) - && Objects.equals(this.accountType, caLocalAccountIdentification.accountType) - && Objects.equals(this.institutionNumber, caLocalAccountIdentification.institutionNumber) - && Objects.equals(this.transitNumber, caLocalAccountIdentification.transitNumber) - && Objects.equals(this.type, caLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, caLocalAccountIdentification.accountNumber) && + Objects.equals(this.accountType, caLocalAccountIdentification.accountType) && + Objects.equals(this.institutionNumber, caLocalAccountIdentification.institutionNumber) && + Objects.equals(this.transitNumber, caLocalAccountIdentification.transitNumber) && + Objects.equals(this.type, caLocalAccountIdentification.type); } @Override @@ -333,7 +330,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -342,24 +340,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CALocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of CALocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CALocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to CALocalAccountIdentification */ - public static CALocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static CALocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CALocalAccountIdentification.class); } - - /** - * Convert an instance of CALocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CALocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CZLocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/CZLocalAccountIdentification.java index ede24669a..7ebb93a66 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CZLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/CZLocalAccountIdentification.java @@ -2,31 +2,37 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** CZLocalAccountIdentification */ + +/** + * CZLocalAccountIdentification + */ @JsonPropertyOrder({ CZLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, CZLocalAccountIdentification.JSON_PROPERTY_BANK_CODE, CZLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class CZLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -34,8 +40,11 @@ public class CZLocalAccountIdentification { public static final String JSON_PROPERTY_BANK_CODE = "bankCode"; private String bankCode; - /** **czLocal** */ + /** + * **czLocal** + */ public enum TypeEnum { + CZLOCAL(String.valueOf("czLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -43,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -76,20 +81,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CZLocalAccountIdentification() {} + public CZLocalAccountIdentification() { + } /** - * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional - * prefix (předčíslí). - The required second part (základní část) which must be at least two - * non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - - * **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, - * normalized) + * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) * - * @param accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following - * format: - The optional prefix (předčíslí). - The required second part (základní část) which - * must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** - * (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** - * (without prefix, normalized) + * @param accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) * @return the current {@code CZLocalAccountIdentification} instance, allowing for method chaining */ public CZLocalAccountIdentification accountNumber(String accountNumber) { @@ -98,17 +96,8 @@ public CZLocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional - * prefix (předčíslí). - The required second part (základní část) which must be at least two - * non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - - * **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, - * normalized) - * - * @return accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following - * format: - The optional prefix (předčíslí). - The required second part (základní část) which - * must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** - * (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** - * (without prefix, normalized) + * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) + * @return accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,17 +106,9 @@ public String getAccountNumber() { } /** - * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional - * prefix (předčíslí). - The required second part (základní část) which must be at least two - * non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - - * **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, - * normalized) + * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) * - * @param accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following - * format: - The optional prefix (předčíslí). - The required second part (základní část) which - * must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** - * (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** - * (without prefix, normalized) + * @param accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,7 +129,6 @@ public CZLocalAccountIdentification bankCode(String bankCode) { /** * The 4-digit bank code (Kód banky), without separators or whitespace. - * * @return bankCode The 4-digit bank code (Kód banky), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_BANK_CODE) @@ -181,7 +161,6 @@ public CZLocalAccountIdentification type(TypeEnum type) { /** * **czLocal** - * * @return type **czLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -201,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this CZLocalAccountIdentification object is equal to o. */ + /** + * Return true if this CZLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -211,9 +192,9 @@ public boolean equals(Object o) { return false; } CZLocalAccountIdentification czLocalAccountIdentification = (CZLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, czLocalAccountIdentification.accountNumber) - && Objects.equals(this.bankCode, czLocalAccountIdentification.bankCode) - && Objects.equals(this.type, czLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, czLocalAccountIdentification.accountNumber) && + Objects.equals(this.bankCode, czLocalAccountIdentification.bankCode) && + Objects.equals(this.type, czLocalAccountIdentification.type); } @Override @@ -233,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -242,24 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CZLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of CZLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CZLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to CZLocalAccountIdentification */ - public static CZLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static CZLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CZLocalAccountIdentification.class); } - - /** - * Convert an instance of CZLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CZLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CapabilityProblem.java b/src/main/java/com/adyen/model/balanceplatform/CapabilityProblem.java index e2ad5d9a4..9624c1841 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CapabilityProblem.java +++ b/src/main/java/com/adyen/model/balanceplatform/CapabilityProblem.java @@ -2,28 +2,40 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.CapabilityProblemEntity; +import com.adyen.model.balanceplatform.VerificationError; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CapabilityProblem */ +/** + * CapabilityProblem + */ @JsonPropertyOrder({ CapabilityProblem.JSON_PROPERTY_ENTITY, CapabilityProblem.JSON_PROPERTY_VERIFICATION_ERRORS }) + public class CapabilityProblem { public static final String JSON_PROPERTY_ENTITY = "entity"; private CapabilityProblemEntity entity; @@ -31,12 +43,13 @@ public class CapabilityProblem { public static final String JSON_PROPERTY_VERIFICATION_ERRORS = "verificationErrors"; private List verificationErrors; - public CapabilityProblem() {} + public CapabilityProblem() { + } /** * entity * - * @param entity + * @param entity * @return the current {@code CapabilityProblem} instance, allowing for method chaining */ public CapabilityProblem entity(CapabilityProblemEntity entity) { @@ -46,8 +59,7 @@ public CapabilityProblem entity(CapabilityProblemEntity entity) { /** * Get entity - * - * @return entity + * @return entity */ @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,7 +70,7 @@ public CapabilityProblemEntity getEntity() { /** * entity * - * @param entity + * @param entity */ @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,7 +99,6 @@ public CapabilityProblem addVerificationErrorsItem(VerificationError verificatio /** * Contains information about the verification error. - * * @return verificationErrors Contains information about the verification error. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_ERRORS) @@ -107,7 +118,9 @@ public void setVerificationErrors(List verificationErrors) { this.verificationErrors = verificationErrors; } - /** Return true if this CapabilityProblem object is equal to o. */ + /** + * Return true if this CapabilityProblem object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -117,8 +130,8 @@ public boolean equals(Object o) { return false; } CapabilityProblem capabilityProblem = (CapabilityProblem) o; - return Objects.equals(this.entity, capabilityProblem.entity) - && Objects.equals(this.verificationErrors, capabilityProblem.verificationErrors); + return Objects.equals(this.entity, capabilityProblem.entity) && + Objects.equals(this.verificationErrors, capabilityProblem.verificationErrors); } @Override @@ -137,7 +150,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -146,7 +160,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CapabilityProblem given an JSON string * * @param jsonString JSON string @@ -156,12 +170,11 @@ private String toIndentedString(Object o) { public static CapabilityProblem fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapabilityProblem.class); } - - /** - * Convert an instance of CapabilityProblem to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CapabilityProblem to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CapabilityProblemEntity.java b/src/main/java/com/adyen/model/balanceplatform/CapabilityProblemEntity.java index d57710394..422308015 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CapabilityProblemEntity.java +++ b/src/main/java/com/adyen/model/balanceplatform/CapabilityProblemEntity.java @@ -2,34 +2,41 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.CapabilityProblemEntityRecursive; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** CapabilityProblemEntity */ + +/** + * CapabilityProblemEntity + */ @JsonPropertyOrder({ CapabilityProblemEntity.JSON_PROPERTY_DOCUMENTS, CapabilityProblemEntity.JSON_PROPERTY_ID, CapabilityProblemEntity.JSON_PROPERTY_OWNER, CapabilityProblemEntity.JSON_PROPERTY_TYPE }) + public class CapabilityProblemEntity { public static final String JSON_PROPERTY_DOCUMENTS = "documents"; private List documents; @@ -40,8 +47,11 @@ public class CapabilityProblemEntity { public static final String JSON_PROPERTY_OWNER = "owner"; private CapabilityProblemEntityRecursive owner; - /** Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. */ + /** + * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + */ public enum TypeEnum { + BANKACCOUNT(String.valueOf("BankAccount")), DOCUMENT(String.valueOf("Document")), @@ -53,7 +63,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -74,11 +84,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -86,14 +92,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CapabilityProblemEntity() {} + public CapabilityProblemEntity() { + } /** - * List of document IDs to which the verification errors related to the capabilities correspond - * to. + * List of document IDs to which the verification errors related to the capabilities correspond to. * - * @param documents List of document IDs to which the verification errors related to the - * capabilities correspond to. + * @param documents List of document IDs to which the verification errors related to the capabilities correspond to. * @return the current {@code CapabilityProblemEntity} instance, allowing for method chaining */ public CapabilityProblemEntity documents(List documents) { @@ -110,11 +115,8 @@ public CapabilityProblemEntity addDocumentsItem(String documentsItem) { } /** - * List of document IDs to which the verification errors related to the capabilities correspond - * to. - * - * @return documents List of document IDs to which the verification errors related to the - * capabilities correspond to. + * List of document IDs to which the verification errors related to the capabilities correspond to. + * @return documents List of document IDs to which the verification errors related to the capabilities correspond to. */ @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,11 +125,9 @@ public List getDocuments() { } /** - * List of document IDs to which the verification errors related to the capabilities correspond - * to. + * List of document IDs to which the verification errors related to the capabilities correspond to. * - * @param documents List of document IDs to which the verification errors related to the - * capabilities correspond to. + * @param documents List of document IDs to which the verification errors related to the capabilities correspond to. */ @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,7 +148,6 @@ public CapabilityProblemEntity id(String id) { /** * The ID of the entity. - * * @return id The ID of the entity. */ @JsonProperty(JSON_PROPERTY_ID) @@ -171,7 +170,7 @@ public void setId(String id) { /** * owner * - * @param owner + * @param owner * @return the current {@code CapabilityProblemEntity} instance, allowing for method chaining */ public CapabilityProblemEntity owner(CapabilityProblemEntityRecursive owner) { @@ -181,8 +180,7 @@ public CapabilityProblemEntity owner(CapabilityProblemEntityRecursive owner) { /** * Get owner - * - * @return owner + * @return owner */ @JsonProperty(JSON_PROPERTY_OWNER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,7 +191,7 @@ public CapabilityProblemEntityRecursive getOwner() { /** * owner * - * @param owner + * @param owner */ @JsonProperty(JSON_PROPERTY_OWNER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -202,9 +200,9 @@ public void setOwner(CapabilityProblemEntityRecursive owner) { } /** - * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. * - * @param type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * @param type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. * @return the current {@code CapabilityProblemEntity} instance, allowing for method chaining */ public CapabilityProblemEntity type(TypeEnum type) { @@ -213,9 +211,8 @@ public CapabilityProblemEntity type(TypeEnum type) { } /** - * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. - * - * @return type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * @return type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,9 +221,9 @@ public TypeEnum getType() { } /** - * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. * - * @param type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * @param type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -234,7 +231,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this CapabilityProblemEntity object is equal to o. */ + /** + * Return true if this CapabilityProblemEntity object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -244,10 +243,10 @@ public boolean equals(Object o) { return false; } CapabilityProblemEntity capabilityProblemEntity = (CapabilityProblemEntity) o; - return Objects.equals(this.documents, capabilityProblemEntity.documents) - && Objects.equals(this.id, capabilityProblemEntity.id) - && Objects.equals(this.owner, capabilityProblemEntity.owner) - && Objects.equals(this.type, capabilityProblemEntity.type); + return Objects.equals(this.documents, capabilityProblemEntity.documents) && + Objects.equals(this.id, capabilityProblemEntity.id) && + Objects.equals(this.owner, capabilityProblemEntity.owner) && + Objects.equals(this.type, capabilityProblemEntity.type); } @Override @@ -268,7 +267,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -277,23 +277,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CapabilityProblemEntity given an JSON string * * @param jsonString JSON string * @return An instance of CapabilityProblemEntity - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CapabilityProblemEntity + * @throws JsonProcessingException if the JSON string is invalid with respect to CapabilityProblemEntity */ public static CapabilityProblemEntity fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapabilityProblemEntity.class); } - - /** - * Convert an instance of CapabilityProblemEntity to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CapabilityProblemEntity to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CapabilityProblemEntityRecursive.java b/src/main/java/com/adyen/model/balanceplatform/CapabilityProblemEntityRecursive.java index d7acf7623..02f14b2c1 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CapabilityProblemEntityRecursive.java +++ b/src/main/java/com/adyen/model/balanceplatform/CapabilityProblemEntityRecursive.java @@ -2,35 +2,40 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** CapabilityProblemEntityRecursive */ + +/** + * CapabilityProblemEntityRecursive + */ @JsonPropertyOrder({ CapabilityProblemEntityRecursive.JSON_PROPERTY_DOCUMENTS, CapabilityProblemEntityRecursive.JSON_PROPERTY_ID, CapabilityProblemEntityRecursive.JSON_PROPERTY_TYPE }) @JsonTypeName("CapabilityProblemEntity-recursive") + public class CapabilityProblemEntityRecursive { public static final String JSON_PROPERTY_DOCUMENTS = "documents"; private List documents; @@ -38,8 +43,11 @@ public class CapabilityProblemEntityRecursive { public static final String JSON_PROPERTY_ID = "id"; private String id; - /** Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. */ + /** + * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + */ public enum TypeEnum { + BANKACCOUNT(String.valueOf("BankAccount")), DOCUMENT(String.valueOf("Document")), @@ -51,7 +59,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -72,11 +80,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -84,16 +88,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CapabilityProblemEntityRecursive() {} + public CapabilityProblemEntityRecursive() { + } /** - * List of document IDs to which the verification errors related to the capabilities correspond - * to. + * List of document IDs to which the verification errors related to the capabilities correspond to. * - * @param documents List of document IDs to which the verification errors related to the - * capabilities correspond to. - * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method - * chaining + * @param documents List of document IDs to which the verification errors related to the capabilities correspond to. + * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method chaining */ public CapabilityProblemEntityRecursive documents(List documents) { this.documents = documents; @@ -109,11 +111,8 @@ public CapabilityProblemEntityRecursive addDocumentsItem(String documentsItem) { } /** - * List of document IDs to which the verification errors related to the capabilities correspond - * to. - * - * @return documents List of document IDs to which the verification errors related to the - * capabilities correspond to. + * List of document IDs to which the verification errors related to the capabilities correspond to. + * @return documents List of document IDs to which the verification errors related to the capabilities correspond to. */ @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -122,11 +121,9 @@ public List getDocuments() { } /** - * List of document IDs to which the verification errors related to the capabilities correspond - * to. + * List of document IDs to which the verification errors related to the capabilities correspond to. * - * @param documents List of document IDs to which the verification errors related to the - * capabilities correspond to. + * @param documents List of document IDs to which the verification errors related to the capabilities correspond to. */ @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,8 +135,7 @@ public void setDocuments(List documents) { * The ID of the entity. * * @param id The ID of the entity. - * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method - * chaining + * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method chaining */ public CapabilityProblemEntityRecursive id(String id) { this.id = id; @@ -148,7 +144,6 @@ public CapabilityProblemEntityRecursive id(String id) { /** * The ID of the entity. - * * @return id The ID of the entity. */ @JsonProperty(JSON_PROPERTY_ID) @@ -169,11 +164,10 @@ public void setId(String id) { } /** - * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. * - * @param type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. - * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method - * chaining + * @param type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method chaining */ public CapabilityProblemEntityRecursive type(TypeEnum type) { this.type = type; @@ -181,9 +175,8 @@ public CapabilityProblemEntityRecursive type(TypeEnum type) { } /** - * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. - * - * @return type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * @return type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,9 +185,9 @@ public TypeEnum getType() { } /** - * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. * - * @param type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * @param type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -202,7 +195,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this CapabilityProblemEntity-recursive object is equal to o. */ + /** + * Return true if this CapabilityProblemEntity-recursive object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -211,11 +206,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CapabilityProblemEntityRecursive capabilityProblemEntityRecursive = - (CapabilityProblemEntityRecursive) o; - return Objects.equals(this.documents, capabilityProblemEntityRecursive.documents) - && Objects.equals(this.id, capabilityProblemEntityRecursive.id) - && Objects.equals(this.type, capabilityProblemEntityRecursive.type); + CapabilityProblemEntityRecursive capabilityProblemEntityRecursive = (CapabilityProblemEntityRecursive) o; + return Objects.equals(this.documents, capabilityProblemEntityRecursive.documents) && + Objects.equals(this.id, capabilityProblemEntityRecursive.id) && + Objects.equals(this.type, capabilityProblemEntityRecursive.type); } @Override @@ -235,7 +229,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -244,24 +239,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CapabilityProblemEntityRecursive given an JSON string * * @param jsonString JSON string * @return An instance of CapabilityProblemEntityRecursive - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CapabilityProblemEntityRecursive + * @throws JsonProcessingException if the JSON string is invalid with respect to CapabilityProblemEntityRecursive */ - public static CapabilityProblemEntityRecursive fromJson(String jsonString) - throws JsonProcessingException { + public static CapabilityProblemEntityRecursive fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapabilityProblemEntityRecursive.class); } - - /** - * Convert an instance of CapabilityProblemEntityRecursive to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CapabilityProblemEntityRecursive to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CapabilitySettings.java b/src/main/java/com/adyen/model/balanceplatform/CapabilitySettings.java index 7d5db1da1..1995a6c6f 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CapabilitySettings.java +++ b/src/main/java/com/adyen/model/balanceplatform/CapabilitySettings.java @@ -2,30 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CapabilitySettings */ +/** + * CapabilitySettings + */ @JsonPropertyOrder({ CapabilitySettings.JSON_PROPERTY_AMOUNT_PER_INDUSTRY, CapabilitySettings.JSON_PROPERTY_AUTHORIZED_CARD_USERS, @@ -33,6 +39,7 @@ CapabilitySettings.JSON_PROPERTY_INTERVAL, CapabilitySettings.JSON_PROPERTY_MAX_AMOUNT }) + public class CapabilitySettings { public static final String JSON_PROPERTY_AMOUNT_PER_INDUSTRY = "amountPerIndustry"; private Map amountPerIndustry; @@ -40,8 +47,11 @@ public class CapabilitySettings { public static final String JSON_PROPERTY_AUTHORIZED_CARD_USERS = "authorizedCardUsers"; private Boolean authorizedCardUsers; - /** Gets or Sets fundingSource */ + /** + * Gets or Sets fundingSource + */ public enum FundingSourceEnum { + CREDIT(String.valueOf("credit")), DEBIT(String.valueOf("debit")), @@ -53,7 +63,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -74,11 +84,7 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FundingSourceEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FundingSourceEnum.values())); + LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -86,8 +92,11 @@ public static FundingSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_FUNDING_SOURCE = "fundingSource"; private List fundingSource; - /** */ + /** + * + */ public enum IntervalEnum { + DAILY(String.valueOf("daily")), MONTHLY(String.valueOf("monthly")), @@ -99,7 +108,7 @@ public enum IntervalEnum { private String value; IntervalEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -120,11 +129,7 @@ public static IntervalEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "IntervalEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(IntervalEnum.values())); + LOG.warning("IntervalEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(IntervalEnum.values())); return null; } } @@ -135,10 +140,13 @@ public static IntervalEnum fromValue(String value) { public static final String JSON_PROPERTY_MAX_AMOUNT = "maxAmount"; private Amount maxAmount; - public CapabilitySettings() {} + public CapabilitySettings() { + } /** - * @param amountPerIndustry + * + * + * @param amountPerIndustry * @return the current {@code CapabilitySettings} instance, allowing for method chaining */ public CapabilitySettings amountPerIndustry(Map amountPerIndustry) { @@ -155,7 +163,8 @@ public CapabilitySettings putAmountPerIndustryItem(String key, Amount amountPerI } /** - * @return amountPerIndustry + * + * @return amountPerIndustry */ @JsonProperty(JSON_PROPERTY_AMOUNT_PER_INDUSTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -164,7 +173,9 @@ public Map getAmountPerIndustry() { } /** - * @param amountPerIndustry + * + * + * @param amountPerIndustry */ @JsonProperty(JSON_PROPERTY_AMOUNT_PER_INDUSTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,7 +184,9 @@ public void setAmountPerIndustry(Map amountPerIndustry) { } /** - * @param authorizedCardUsers + * + * + * @param authorizedCardUsers * @return the current {@code CapabilitySettings} instance, allowing for method chaining */ public CapabilitySettings authorizedCardUsers(Boolean authorizedCardUsers) { @@ -182,7 +195,8 @@ public CapabilitySettings authorizedCardUsers(Boolean authorizedCardUsers) { } /** - * @return authorizedCardUsers + * + * @return authorizedCardUsers */ @JsonProperty(JSON_PROPERTY_AUTHORIZED_CARD_USERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,7 +205,9 @@ public Boolean getAuthorizedCardUsers() { } /** - * @param authorizedCardUsers + * + * + * @param authorizedCardUsers */ @JsonProperty(JSON_PROPERTY_AUTHORIZED_CARD_USERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,7 +216,9 @@ public void setAuthorizedCardUsers(Boolean authorizedCardUsers) { } /** - * @param fundingSource + * + * + * @param fundingSource * @return the current {@code CapabilitySettings} instance, allowing for method chaining */ public CapabilitySettings fundingSource(List fundingSource) { @@ -217,7 +235,8 @@ public CapabilitySettings addFundingSourceItem(FundingSourceEnum fundingSourceIt } /** - * @return fundingSource + * + * @return fundingSource */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -226,7 +245,9 @@ public List getFundingSource() { } /** - * @param fundingSource + * + * + * @param fundingSource */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -235,7 +256,9 @@ public void setFundingSource(List fundingSource) { } /** - * @param interval + * + * + * @param interval * @return the current {@code CapabilitySettings} instance, allowing for method chaining */ public CapabilitySettings interval(IntervalEnum interval) { @@ -244,7 +267,8 @@ public CapabilitySettings interval(IntervalEnum interval) { } /** - * @return interval + * + * @return interval */ @JsonProperty(JSON_PROPERTY_INTERVAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -253,7 +277,9 @@ public IntervalEnum getInterval() { } /** - * @param interval + * + * + * @param interval */ @JsonProperty(JSON_PROPERTY_INTERVAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -264,7 +290,7 @@ public void setInterval(IntervalEnum interval) { /** * maxAmount * - * @param maxAmount + * @param maxAmount * @return the current {@code CapabilitySettings} instance, allowing for method chaining */ public CapabilitySettings maxAmount(Amount maxAmount) { @@ -274,8 +300,7 @@ public CapabilitySettings maxAmount(Amount maxAmount) { /** * Get maxAmount - * - * @return maxAmount + * @return maxAmount */ @JsonProperty(JSON_PROPERTY_MAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -286,7 +311,7 @@ public Amount getMaxAmount() { /** * maxAmount * - * @param maxAmount + * @param maxAmount */ @JsonProperty(JSON_PROPERTY_MAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -294,7 +319,9 @@ public void setMaxAmount(Amount maxAmount) { this.maxAmount = maxAmount; } - /** Return true if this CapabilitySettings object is equal to o. */ + /** + * Return true if this CapabilitySettings object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -304,11 +331,11 @@ public boolean equals(Object o) { return false; } CapabilitySettings capabilitySettings = (CapabilitySettings) o; - return Objects.equals(this.amountPerIndustry, capabilitySettings.amountPerIndustry) - && Objects.equals(this.authorizedCardUsers, capabilitySettings.authorizedCardUsers) - && Objects.equals(this.fundingSource, capabilitySettings.fundingSource) - && Objects.equals(this.interval, capabilitySettings.interval) - && Objects.equals(this.maxAmount, capabilitySettings.maxAmount); + return Objects.equals(this.amountPerIndustry, capabilitySettings.amountPerIndustry) && + Objects.equals(this.authorizedCardUsers, capabilitySettings.authorizedCardUsers) && + Objects.equals(this.fundingSource, capabilitySettings.fundingSource) && + Objects.equals(this.interval, capabilitySettings.interval) && + Objects.equals(this.maxAmount, capabilitySettings.maxAmount); } @Override @@ -321,9 +348,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CapabilitySettings {\n"); sb.append(" amountPerIndustry: ").append(toIndentedString(amountPerIndustry)).append("\n"); - sb.append(" authorizedCardUsers: ") - .append(toIndentedString(authorizedCardUsers)) - .append("\n"); + sb.append(" authorizedCardUsers: ").append(toIndentedString(authorizedCardUsers)).append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); sb.append(" interval: ").append(toIndentedString(interval)).append("\n"); sb.append(" maxAmount: ").append(toIndentedString(maxAmount)).append("\n"); @@ -332,7 +357,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -341,23 +367,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CapabilitySettings given an JSON string * * @param jsonString JSON string * @return An instance of CapabilitySettings - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CapabilitySettings + * @throws JsonProcessingException if the JSON string is invalid with respect to CapabilitySettings */ public static CapabilitySettings fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapabilitySettings.class); } - - /** - * Convert an instance of CapabilitySettings to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CapabilitySettings to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CapitalBalance.java b/src/main/java/com/adyen/model/balanceplatform/CapitalBalance.java index a506efb74..378e808b6 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CapitalBalance.java +++ b/src/main/java/com/adyen/model/balanceplatform/CapitalBalance.java @@ -2,28 +2,38 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** CapitalBalance */ + +/** + * CapitalBalance + */ @JsonPropertyOrder({ CapitalBalance.JSON_PROPERTY_CURRENCY, CapitalBalance.JSON_PROPERTY_FEE, CapitalBalance.JSON_PROPERTY_PRINCIPAL, CapitalBalance.JSON_PROPERTY_TOTAL }) + public class CapitalBalance { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -37,14 +47,13 @@ public class CapitalBalance { public static final String JSON_PROPERTY_TOTAL = "total"; private Long total; - public CapitalBalance() {} + public CapitalBalance() { + } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code CapitalBalance} instance, allowing for method chaining */ public CapitalBalance currency(String currency) { @@ -53,11 +62,8 @@ public CapitalBalance currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -66,11 +72,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -91,7 +95,6 @@ public CapitalBalance fee(Long fee) { /** * Fee amount. - * * @return fee Fee amount. */ @JsonProperty(JSON_PROPERTY_FEE) @@ -124,7 +127,6 @@ public CapitalBalance principal(Long principal) { /** * Principal amount. - * * @return principal Principal amount. */ @JsonProperty(JSON_PROPERTY_PRINCIPAL) @@ -157,7 +159,6 @@ public CapitalBalance total(Long total) { /** * Total amount. A sum of principal amount and fee amount. - * * @return total Total amount. A sum of principal amount and fee amount. */ @JsonProperty(JSON_PROPERTY_TOTAL) @@ -177,7 +178,9 @@ public void setTotal(Long total) { this.total = total; } - /** Return true if this CapitalBalance object is equal to o. */ + /** + * Return true if this CapitalBalance object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -187,10 +190,10 @@ public boolean equals(Object o) { return false; } CapitalBalance capitalBalance = (CapitalBalance) o; - return Objects.equals(this.currency, capitalBalance.currency) - && Objects.equals(this.fee, capitalBalance.fee) - && Objects.equals(this.principal, capitalBalance.principal) - && Objects.equals(this.total, capitalBalance.total); + return Objects.equals(this.currency, capitalBalance.currency) && + Objects.equals(this.fee, capitalBalance.fee) && + Objects.equals(this.principal, capitalBalance.principal) && + Objects.equals(this.total, capitalBalance.total); } @Override @@ -211,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -220,7 +224,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CapitalBalance given an JSON string * * @param jsonString JSON string @@ -230,12 +234,11 @@ private String toIndentedString(Object o) { public static CapitalBalance fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapitalBalance.class); } - - /** - * Convert an instance of CapitalBalance to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CapitalBalance to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CapitalGrantAccount.java b/src/main/java/com/adyen/model/balanceplatform/CapitalGrantAccount.java index 53c3fcdce..f03a11222 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CapitalGrantAccount.java +++ b/src/main/java/com/adyen/model/balanceplatform/CapitalGrantAccount.java @@ -2,30 +2,42 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.CapitalBalance; +import com.adyen.model.balanceplatform.GrantLimit; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CapitalGrantAccount */ +/** + * CapitalGrantAccount + */ @JsonPropertyOrder({ CapitalGrantAccount.JSON_PROPERTY_BALANCES, CapitalGrantAccount.JSON_PROPERTY_FUNDING_BALANCE_ACCOUNT_ID, CapitalGrantAccount.JSON_PROPERTY_ID, CapitalGrantAccount.JSON_PROPERTY_LIMITS }) + public class CapitalGrantAccount { public static final String JSON_PROPERTY_BALANCES = "balances"; private List balances; @@ -39,7 +51,8 @@ public class CapitalGrantAccount { public static final String JSON_PROPERTY_LIMITS = "limits"; private List limits; - public CapitalGrantAccount() {} + public CapitalGrantAccount() { + } /** * The balances of the grant account. @@ -62,7 +75,6 @@ public CapitalGrantAccount addBalancesItem(CapitalBalance balancesItem) { /** * The balances of the grant account. - * * @return balances The balances of the grant account. */ @JsonProperty(JSON_PROPERTY_BALANCES) @@ -85,8 +97,7 @@ public void setBalances(List balances) { /** * The unique identifier of the balance account used to fund the grant. * - * @param fundingBalanceAccountId The unique identifier of the balance account used to fund the - * grant. + * @param fundingBalanceAccountId The unique identifier of the balance account used to fund the grant. * @return the current {@code CapitalGrantAccount} instance, allowing for method chaining */ public CapitalGrantAccount fundingBalanceAccountId(String fundingBalanceAccountId) { @@ -96,9 +107,7 @@ public CapitalGrantAccount fundingBalanceAccountId(String fundingBalanceAccountI /** * The unique identifier of the balance account used to fund the grant. - * - * @return fundingBalanceAccountId The unique identifier of the balance account used to fund the - * grant. + * @return fundingBalanceAccountId The unique identifier of the balance account used to fund the grant. */ @JsonProperty(JSON_PROPERTY_FUNDING_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -109,8 +118,7 @@ public String getFundingBalanceAccountId() { /** * The unique identifier of the balance account used to fund the grant. * - * @param fundingBalanceAccountId The unique identifier of the balance account used to fund the - * grant. + * @param fundingBalanceAccountId The unique identifier of the balance account used to fund the grant. */ @JsonProperty(JSON_PROPERTY_FUNDING_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -131,7 +139,6 @@ public CapitalGrantAccount id(String id) { /** * The identifier of the grant account. - * * @return id The identifier of the grant account. */ @JsonProperty(JSON_PROPERTY_ID) @@ -172,7 +179,6 @@ public CapitalGrantAccount addLimitsItem(GrantLimit limitsItem) { /** * The limits of the grant account. - * * @return limits The limits of the grant account. */ @JsonProperty(JSON_PROPERTY_LIMITS) @@ -192,7 +198,9 @@ public void setLimits(List limits) { this.limits = limits; } - /** Return true if this CapitalGrantAccount object is equal to o. */ + /** + * Return true if this CapitalGrantAccount object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -202,10 +210,10 @@ public boolean equals(Object o) { return false; } CapitalGrantAccount capitalGrantAccount = (CapitalGrantAccount) o; - return Objects.equals(this.balances, capitalGrantAccount.balances) - && Objects.equals(this.fundingBalanceAccountId, capitalGrantAccount.fundingBalanceAccountId) - && Objects.equals(this.id, capitalGrantAccount.id) - && Objects.equals(this.limits, capitalGrantAccount.limits); + return Objects.equals(this.balances, capitalGrantAccount.balances) && + Objects.equals(this.fundingBalanceAccountId, capitalGrantAccount.fundingBalanceAccountId) && + Objects.equals(this.id, capitalGrantAccount.id) && + Objects.equals(this.limits, capitalGrantAccount.limits); } @Override @@ -218,9 +226,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CapitalGrantAccount {\n"); sb.append(" balances: ").append(toIndentedString(balances)).append("\n"); - sb.append(" fundingBalanceAccountId: ") - .append(toIndentedString(fundingBalanceAccountId)) - .append("\n"); + sb.append(" fundingBalanceAccountId: ").append(toIndentedString(fundingBalanceAccountId)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" limits: ").append(toIndentedString(limits)).append("\n"); sb.append("}"); @@ -228,7 +234,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -237,23 +244,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CapitalGrantAccount given an JSON string * * @param jsonString JSON string * @return An instance of CapitalGrantAccount - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CapitalGrantAccount + * @throws JsonProcessingException if the JSON string is invalid with respect to CapitalGrantAccount */ public static CapitalGrantAccount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapitalGrantAccount.class); } - - /** - * Convert an instance of CapitalGrantAccount to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CapitalGrantAccount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/Card.java b/src/main/java/com/adyen/model/balanceplatform/Card.java index c80794462..a254af774 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Card.java +++ b/src/main/java/com/adyen/model/balanceplatform/Card.java @@ -2,26 +2,35 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.Authentication; +import com.adyen.model.balanceplatform.CardConfiguration; +import com.adyen.model.balanceplatform.DeliveryContact; +import com.adyen.model.balanceplatform.Expiry; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** Card */ +/** + * Card + */ @JsonPropertyOrder({ Card.JSON_PROPERTY_AUTHENTICATION, Card.JSON_PROPERTY_BIN, @@ -38,6 +47,7 @@ Card.JSON_PROPERTY_THREE_D_SECURE, Card.JSON_PROPERTY_USAGE }) + public class Card { public static final String JSON_PROPERTY_AUTHENTICATION = "authentication"; private Authentication authentication; @@ -66,8 +76,11 @@ public class Card { public static final String JSON_PROPERTY_EXPIRATION = "expiration"; private Expiry expiration; - /** The form factor of the card. Possible values: **virtual**, **physical**. */ + /** + * The form factor of the card. Possible values: **virtual**, **physical**. + */ public enum FormFactorEnum { + PHYSICAL(String.valueOf("physical")), UNKNOWN(String.valueOf("unknown")), @@ -79,7 +92,7 @@ public enum FormFactorEnum { private String value; FormFactorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -100,11 +113,7 @@ public static FormFactorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FormFactorEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FormFactorEnum.values())); + LOG.warning("FormFactorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FormFactorEnum.values())); return null; } } @@ -124,10 +133,13 @@ public static FormFactorEnum fromValue(String value) { public static final String JSON_PROPERTY_USAGE = "usage"; private String usage; - public Card() {} + public Card() { + } @JsonCreator - public Card(@JsonProperty(JSON_PROPERTY_NUMBER) String number) { + public Card( + @JsonProperty(JSON_PROPERTY_NUMBER) String number + ) { this(); this.number = number; } @@ -135,7 +147,7 @@ public Card(@JsonProperty(JSON_PROPERTY_NUMBER) String number) { /** * authentication * - * @param authentication + * @param authentication * @return the current {@code Card} instance, allowing for method chaining */ public Card authentication(Authentication authentication) { @@ -145,8 +157,7 @@ public Card authentication(Authentication authentication) { /** * Get authentication - * - * @return authentication + * @return authentication */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -157,7 +168,7 @@ public Authentication getAuthentication() { /** * authentication * - * @param authentication + * @param authentication */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,7 +189,6 @@ public Card bin(String bin) { /** * The bank identification number (BIN) of the card number. - * * @return bin The bank identification number (BIN) of the card number. */ @JsonProperty(JSON_PROPERTY_BIN) @@ -211,7 +221,6 @@ public Card brand(String brand) { /** * The brand of the physical or the virtual card. Possible values: **visa**, **mc**. - * * @return brand The brand of the physical or the virtual card. Possible values: **visa**, **mc**. */ @JsonProperty(JSON_PROPERTY_BRAND) @@ -232,13 +241,9 @@ public void setBrand(String brand) { } /** - * The brand variant of the physical or the virtual card. For example, **visadebit** or - * **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your - * integration. + * The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. * - * @param brandVariant The brand variant of the physical or the virtual card. For example, - * **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values - * relevant for your integration. + * @param brandVariant The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. * @return the current {@code Card} instance, allowing for method chaining */ public Card brandVariant(String brandVariant) { @@ -247,13 +252,8 @@ public Card brandVariant(String brandVariant) { } /** - * The brand variant of the physical or the virtual card. For example, **visadebit** or - * **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your - * integration. - * - * @return brandVariant The brand variant of the physical or the virtual card. For example, - * **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values - * relevant for your integration. + * The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. + * @return brandVariant The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. */ @JsonProperty(JSON_PROPERTY_BRAND_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -262,13 +262,9 @@ public String getBrandVariant() { } /** - * The brand variant of the physical or the virtual card. For example, **visadebit** or - * **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your - * integration. + * The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. * - * @param brandVariant The brand variant of the physical or the virtual card. For example, - * **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values - * relevant for your integration. + * @param brandVariant The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. */ @JsonProperty(JSON_PROPERTY_BRAND_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -277,9 +273,9 @@ public void setBrandVariant(String brandVariant) { } /** - * The name of the cardholder. Maximum length: 26 characters. + * The name of the cardholder. Maximum length: 26 characters. * - * @param cardholderName The name of the cardholder. Maximum length: 26 characters. + * @param cardholderName The name of the cardholder. Maximum length: 26 characters. * @return the current {@code Card} instance, allowing for method chaining */ public Card cardholderName(String cardholderName) { @@ -288,9 +284,8 @@ public Card cardholderName(String cardholderName) { } /** - * The name of the cardholder. Maximum length: 26 characters. - * - * @return cardholderName The name of the cardholder. Maximum length: 26 characters. + * The name of the cardholder. Maximum length: 26 characters. + * @return cardholderName The name of the cardholder. Maximum length: 26 characters. */ @JsonProperty(JSON_PROPERTY_CARDHOLDER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -299,9 +294,9 @@ public String getCardholderName() { } /** - * The name of the cardholder. Maximum length: 26 characters. + * The name of the cardholder. Maximum length: 26 characters. * - * @param cardholderName The name of the cardholder. Maximum length: 26 characters. + * @param cardholderName The name of the cardholder. Maximum length: 26 characters. */ @JsonProperty(JSON_PROPERTY_CARDHOLDER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -312,7 +307,7 @@ public void setCardholderName(String cardholderName) { /** * configuration * - * @param configuration + * @param configuration * @return the current {@code Card} instance, allowing for method chaining */ public Card configuration(CardConfiguration configuration) { @@ -322,8 +317,7 @@ public Card configuration(CardConfiguration configuration) { /** * Get configuration - * - * @return configuration + * @return configuration */ @JsonProperty(JSON_PROPERTY_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -334,7 +328,7 @@ public CardConfiguration getConfiguration() { /** * configuration * - * @param configuration + * @param configuration */ @JsonProperty(JSON_PROPERTY_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -343,11 +337,9 @@ public void setConfiguration(CardConfiguration configuration) { } /** - * The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the - * `POST` response for single-use virtual cards. + * The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards. * - * @param cvc The CVC2 value of the card. > The CVC2 is not sent by default. This is only - * returned in the `POST` response for single-use virtual cards. + * @param cvc The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards. * @return the current {@code Card} instance, allowing for method chaining */ public Card cvc(String cvc) { @@ -356,11 +348,8 @@ public Card cvc(String cvc) { } /** - * The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the - * `POST` response for single-use virtual cards. - * - * @return cvc The CVC2 value of the card. > The CVC2 is not sent by default. This is only - * returned in the `POST` response for single-use virtual cards. + * The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards. + * @return cvc The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards. */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -369,11 +358,9 @@ public String getCvc() { } /** - * The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the - * `POST` response for single-use virtual cards. + * The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards. * - * @param cvc The CVC2 value of the card. > The CVC2 is not sent by default. This is only - * returned in the `POST` response for single-use virtual cards. + * @param cvc The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards. */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -384,7 +371,7 @@ public void setCvc(String cvc) { /** * deliveryContact * - * @param deliveryContact + * @param deliveryContact * @return the current {@code Card} instance, allowing for method chaining */ public Card deliveryContact(DeliveryContact deliveryContact) { @@ -394,8 +381,7 @@ public Card deliveryContact(DeliveryContact deliveryContact) { /** * Get deliveryContact - * - * @return deliveryContact + * @return deliveryContact */ @JsonProperty(JSON_PROPERTY_DELIVERY_CONTACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -406,7 +392,7 @@ public DeliveryContact getDeliveryContact() { /** * deliveryContact * - * @param deliveryContact + * @param deliveryContact */ @JsonProperty(JSON_PROPERTY_DELIVERY_CONTACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -417,7 +403,7 @@ public void setDeliveryContact(DeliveryContact deliveryContact) { /** * expiration * - * @param expiration + * @param expiration * @return the current {@code Card} instance, allowing for method chaining */ public Card expiration(Expiry expiration) { @@ -427,8 +413,7 @@ public Card expiration(Expiry expiration) { /** * Get expiration - * - * @return expiration + * @return expiration */ @JsonProperty(JSON_PROPERTY_EXPIRATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -439,7 +424,7 @@ public Expiry getExpiration() { /** * expiration * - * @param expiration + * @param expiration */ @JsonProperty(JSON_PROPERTY_EXPIRATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -460,7 +445,6 @@ public Card formFactor(FormFactorEnum formFactor) { /** * The form factor of the card. Possible values: **virtual**, **physical**. - * * @return formFactor The form factor of the card. Possible values: **virtual**, **physical**. */ @JsonProperty(JSON_PROPERTY_FORM_FACTOR) @@ -493,7 +477,6 @@ public Card lastFour(String lastFour) { /** * Last last four digits of the card number. - * * @return lastFour Last last four digits of the card number. */ @JsonProperty(JSON_PROPERTY_LAST_FOUR) @@ -514,11 +497,8 @@ public void setLastFour(String lastFour) { } /** - * The primary account number (PAN) of the card. > The PAN is masked by default and returned - * only for single-use virtual cards. - * - * @return number The primary account number (PAN) of the card. > The PAN is masked by default - * and returned only for single-use virtual cards. + * The primary account number (PAN) of the card. > The PAN is masked by default and returned only for single-use virtual cards. + * @return number The primary account number (PAN) of the card. > The PAN is masked by default and returned only for single-use virtual cards. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -526,14 +506,11 @@ public String getNumber() { return number; } + /** - * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, - * **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your - * integration. + * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. * - * @param threeDSecure The 3DS configuration of the physical or the virtual card. Possible values: - * **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the - * values relevant for your integration. + * @param threeDSecure The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. * @return the current {@code Card} instance, allowing for method chaining */ public Card threeDSecure(String threeDSecure) { @@ -542,13 +519,8 @@ public Card threeDSecure(String threeDSecure) { } /** - * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, - * **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your - * integration. - * - * @return threeDSecure The 3DS configuration of the physical or the virtual card. Possible - * values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to - * get the values relevant for your integration. + * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. + * @return threeDSecure The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. */ @JsonProperty(JSON_PROPERTY_THREE_D_SECURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -557,13 +529,9 @@ public String getThreeDSecure() { } /** - * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, - * **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your - * integration. + * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. * - * @param threeDSecure The 3DS configuration of the physical or the virtual card. Possible values: - * **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the - * values relevant for your integration. + * @param threeDSecure The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. */ @JsonProperty(JSON_PROPERTY_THREE_D_SECURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -572,12 +540,9 @@ public void setThreeDSecure(String threeDSecure) { } /** - * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. - * > Reach out to your Adyen contact to determine the value relevant for your integration. + * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. * - * @param usage Specifies how many times the card can be used. Possible values: **singleUse**, - * **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your - * integration. + * @param usage Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. * @return the current {@code Card} instance, allowing for method chaining */ public Card usage(String usage) { @@ -586,12 +551,8 @@ public Card usage(String usage) { } /** - * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. - * > Reach out to your Adyen contact to determine the value relevant for your integration. - * - * @return usage Specifies how many times the card can be used. Possible values: **singleUse**, - * **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your - * integration. + * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. + * @return usage Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. */ @JsonProperty(JSON_PROPERTY_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -600,12 +561,9 @@ public String getUsage() { } /** - * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. - * > Reach out to your Adyen contact to determine the value relevant for your integration. + * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. * - * @param usage Specifies how many times the card can be used. Possible values: **singleUse**, - * **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your - * integration. + * @param usage Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. */ @JsonProperty(JSON_PROPERTY_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -613,7 +571,9 @@ public void setUsage(String usage) { this.usage = usage; } - /** Return true if this Card object is equal to o. */ + /** + * Return true if this Card object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -623,39 +583,25 @@ public boolean equals(Object o) { return false; } Card card = (Card) o; - return Objects.equals(this.authentication, card.authentication) - && Objects.equals(this.bin, card.bin) - && Objects.equals(this.brand, card.brand) - && Objects.equals(this.brandVariant, card.brandVariant) - && Objects.equals(this.cardholderName, card.cardholderName) - && Objects.equals(this.configuration, card.configuration) - && Objects.equals(this.cvc, card.cvc) - && Objects.equals(this.deliveryContact, card.deliveryContact) - && Objects.equals(this.expiration, card.expiration) - && Objects.equals(this.formFactor, card.formFactor) - && Objects.equals(this.lastFour, card.lastFour) - && Objects.equals(this.number, card.number) - && Objects.equals(this.threeDSecure, card.threeDSecure) - && Objects.equals(this.usage, card.usage); + return Objects.equals(this.authentication, card.authentication) && + Objects.equals(this.bin, card.bin) && + Objects.equals(this.brand, card.brand) && + Objects.equals(this.brandVariant, card.brandVariant) && + Objects.equals(this.cardholderName, card.cardholderName) && + Objects.equals(this.configuration, card.configuration) && + Objects.equals(this.cvc, card.cvc) && + Objects.equals(this.deliveryContact, card.deliveryContact) && + Objects.equals(this.expiration, card.expiration) && + Objects.equals(this.formFactor, card.formFactor) && + Objects.equals(this.lastFour, card.lastFour) && + Objects.equals(this.number, card.number) && + Objects.equals(this.threeDSecure, card.threeDSecure) && + Objects.equals(this.usage, card.usage); } @Override public int hashCode() { - return Objects.hash( - authentication, - bin, - brand, - brandVariant, - cardholderName, - configuration, - cvc, - deliveryContact, - expiration, - formFactor, - lastFour, - number, - threeDSecure, - usage); + return Objects.hash(authentication, bin, brand, brandVariant, cardholderName, configuration, cvc, deliveryContact, expiration, formFactor, lastFour, number, threeDSecure, usage); } @Override @@ -681,7 +627,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -690,7 +637,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Card given an JSON string * * @param jsonString JSON string @@ -700,12 +647,11 @@ private String toIndentedString(Object o) { public static Card fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Card.class); } - - /** - * Convert an instance of Card to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Card to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CardConfiguration.java b/src/main/java/com/adyen/model/balanceplatform/CardConfiguration.java index d448ec323..2decffd89 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CardConfiguration.java +++ b/src/main/java/com/adyen/model/balanceplatform/CardConfiguration.java @@ -2,22 +2,32 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.BulkAddress; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** CardConfiguration */ + +/** + * CardConfiguration + */ @JsonPropertyOrder({ CardConfiguration.JSON_PROPERTY_ACTIVATION, CardConfiguration.JSON_PROPERTY_ACTIVATION_URL, @@ -34,6 +44,7 @@ CardConfiguration.JSON_PROPERTY_PIN_MAILER, CardConfiguration.JSON_PROPERTY_SHIPMENT_METHOD }) + public class CardConfiguration { public static final String JSON_PROPERTY_ACTIVATION = "activation"; private String activation; @@ -77,15 +88,13 @@ public class CardConfiguration { public static final String JSON_PROPERTY_SHIPMENT_METHOD = "shipmentMethod"; private String shipmentMethod; - public CardConfiguration() {} + public CardConfiguration() { + } /** - * Overrides the activation label design ID defined in the `configurationProfileId`. The - * activation label is attached to the card and contains the activation instructions. + * Overrides the activation label design ID defined in the `configurationProfileId`. The activation label is attached to the card and contains the activation instructions. * - * @param activation Overrides the activation label design ID defined in the - * `configurationProfileId`. The activation label is attached to the card and - * contains the activation instructions. + * @param activation Overrides the activation label design ID defined in the `configurationProfileId`. The activation label is attached to the card and contains the activation instructions. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration activation(String activation) { @@ -94,12 +103,8 @@ public CardConfiguration activation(String activation) { } /** - * Overrides the activation label design ID defined in the `configurationProfileId`. The - * activation label is attached to the card and contains the activation instructions. - * - * @return activation Overrides the activation label design ID defined in the - * `configurationProfileId`. The activation label is attached to the card and - * contains the activation instructions. + * Overrides the activation label design ID defined in the `configurationProfileId`. The activation label is attached to the card and contains the activation instructions. + * @return activation Overrides the activation label design ID defined in the `configurationProfileId`. The activation label is attached to the card and contains the activation instructions. */ @JsonProperty(JSON_PROPERTY_ACTIVATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,12 +113,9 @@ public String getActivation() { } /** - * Overrides the activation label design ID defined in the `configurationProfileId`. The - * activation label is attached to the card and contains the activation instructions. + * Overrides the activation label design ID defined in the `configurationProfileId`. The activation label is attached to the card and contains the activation instructions. * - * @param activation Overrides the activation label design ID defined in the - * `configurationProfileId`. The activation label is attached to the card and - * contains the activation instructions. + * @param activation Overrides the activation label design ID defined in the `configurationProfileId`. The activation label is attached to the card and contains the activation instructions. */ @JsonProperty(JSON_PROPERTY_ACTIVATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -122,15 +124,9 @@ public void setActivation(String activation) { } /** - * Your app's URL, if you want to activate cards through your app. For example, - * **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the - * carrier. Before you use this field, reach out to your Adyen contact to set up the QR code - * process. Maximum length: 255 characters. + * Your app's URL, if you want to activate cards through your app. For example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR code process. Maximum length: 255 characters. * - * @param activationUrl Your app's URL, if you want to activate cards through your app. For - * example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included - * in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR - * code process. Maximum length: 255 characters. + * @param activationUrl Your app's URL, if you want to activate cards through your app. For example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR code process. Maximum length: 255 characters. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration activationUrl(String activationUrl) { @@ -139,15 +135,8 @@ public CardConfiguration activationUrl(String activationUrl) { } /** - * Your app's URL, if you want to activate cards through your app. For example, - * **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the - * carrier. Before you use this field, reach out to your Adyen contact to set up the QR code - * process. Maximum length: 255 characters. - * - * @return activationUrl Your app's URL, if you want to activate cards through your app. For - * example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included - * in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR - * code process. Maximum length: 255 characters. + * Your app's URL, if you want to activate cards through your app. For example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR code process. Maximum length: 255 characters. + * @return activationUrl Your app's URL, if you want to activate cards through your app. For example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR code process. Maximum length: 255 characters. */ @JsonProperty(JSON_PROPERTY_ACTIVATION_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,15 +145,9 @@ public String getActivationUrl() { } /** - * Your app's URL, if you want to activate cards through your app. For example, - * **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the - * carrier. Before you use this field, reach out to your Adyen contact to set up the QR code - * process. Maximum length: 255 characters. + * Your app's URL, if you want to activate cards through your app. For example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR code process. Maximum length: 255 characters. * - * @param activationUrl Your app's URL, if you want to activate cards through your app. For - * example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included - * in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR - * code process. Maximum length: 255 characters. + * @param activationUrl Your app's URL, if you want to activate cards through your app. For example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR code process. Maximum length: 255 characters. */ @JsonProperty(JSON_PROPERTY_ACTIVATION_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -175,7 +158,7 @@ public void setActivationUrl(String activationUrl) { /** * bulkAddress * - * @param bulkAddress + * @param bulkAddress * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration bulkAddress(BulkAddress bulkAddress) { @@ -185,8 +168,7 @@ public CardConfiguration bulkAddress(BulkAddress bulkAddress) { /** * Get bulkAddress - * - * @return bulkAddress + * @return bulkAddress */ @JsonProperty(JSON_PROPERTY_BULK_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -197,7 +179,7 @@ public BulkAddress getBulkAddress() { /** * bulkAddress * - * @param bulkAddress + * @param bulkAddress */ @JsonProperty(JSON_PROPERTY_BULK_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,8 +190,7 @@ public void setBulkAddress(BulkAddress bulkAddress) { /** * The ID of the card image. This is the image that will be printed on the full front of the card. * - * @param cardImageId The ID of the card image. This is the image that will be printed on the full - * front of the card. + * @param cardImageId The ID of the card image. This is the image that will be printed on the full front of the card. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration cardImageId(String cardImageId) { @@ -219,9 +200,7 @@ public CardConfiguration cardImageId(String cardImageId) { /** * The ID of the card image. This is the image that will be printed on the full front of the card. - * - * @return cardImageId The ID of the card image. This is the image that will be printed on the - * full front of the card. + * @return cardImageId The ID of the card image. This is the image that will be printed on the full front of the card. */ @JsonProperty(JSON_PROPERTY_CARD_IMAGE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,8 +211,7 @@ public String getCardImageId() { /** * The ID of the card image. This is the image that will be printed on the full front of the card. * - * @param cardImageId The ID of the card image. This is the image that will be printed on the full - * front of the card. + * @param cardImageId The ID of the card image. This is the image that will be printed on the full front of the card. */ @JsonProperty(JSON_PROPERTY_CARD_IMAGE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,12 +220,9 @@ public void setCardImageId(String cardImageId) { } /** - * Overrides the carrier design ID defined in the `configurationProfileId`. The carrier - * is the letter or packaging to which the card is attached. + * Overrides the carrier design ID defined in the `configurationProfileId`. The carrier is the letter or packaging to which the card is attached. * - * @param carrier Overrides the carrier design ID defined in the - * `configurationProfileId`. The carrier is the letter or packaging to which the - * card is attached. + * @param carrier Overrides the carrier design ID defined in the `configurationProfileId`. The carrier is the letter or packaging to which the card is attached. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration carrier(String carrier) { @@ -256,12 +231,8 @@ public CardConfiguration carrier(String carrier) { } /** - * Overrides the carrier design ID defined in the `configurationProfileId`. The carrier - * is the letter or packaging to which the card is attached. - * - * @return carrier Overrides the carrier design ID defined in the - * `configurationProfileId`. The carrier is the letter or packaging to which the - * card is attached. + * Overrides the carrier design ID defined in the `configurationProfileId`. The carrier is the letter or packaging to which the card is attached. + * @return carrier Overrides the carrier design ID defined in the `configurationProfileId`. The carrier is the letter or packaging to which the card is attached. */ @JsonProperty(JSON_PROPERTY_CARRIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -270,12 +241,9 @@ public String getCarrier() { } /** - * Overrides the carrier design ID defined in the `configurationProfileId`. The carrier - * is the letter or packaging to which the card is attached. + * Overrides the carrier design ID defined in the `configurationProfileId`. The carrier is the letter or packaging to which the card is attached. * - * @param carrier Overrides the carrier design ID defined in the - * `configurationProfileId`. The carrier is the letter or packaging to which the - * card is attached. + * @param carrier Overrides the carrier design ID defined in the `configurationProfileId`. The carrier is the letter or packaging to which the card is attached. */ @JsonProperty(JSON_PROPERTY_CARRIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,11 +252,9 @@ public void setCarrier(String carrier) { } /** - * The ID of the carrier image. This is the image that will printed on the letter to which the - * card is attached. + * The ID of the carrier image. This is the image that will printed on the letter to which the card is attached. * - * @param carrierImageId The ID of the carrier image. This is the image that will printed on the - * letter to which the card is attached. + * @param carrierImageId The ID of the carrier image. This is the image that will printed on the letter to which the card is attached. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration carrierImageId(String carrierImageId) { @@ -297,11 +263,8 @@ public CardConfiguration carrierImageId(String carrierImageId) { } /** - * The ID of the carrier image. This is the image that will printed on the letter to which the - * card is attached. - * - * @return carrierImageId The ID of the carrier image. This is the image that will printed on the - * letter to which the card is attached. + * The ID of the carrier image. This is the image that will printed on the letter to which the card is attached. + * @return carrierImageId The ID of the carrier image. This is the image that will printed on the letter to which the card is attached. */ @JsonProperty(JSON_PROPERTY_CARRIER_IMAGE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -310,11 +273,9 @@ public String getCarrierImageId() { } /** - * The ID of the carrier image. This is the image that will printed on the letter to which the - * card is attached. + * The ID of the carrier image. This is the image that will printed on the letter to which the card is attached. * - * @param carrierImageId The ID of the carrier image. This is the image that will printed on the - * letter to which the card is attached. + * @param carrierImageId The ID of the carrier image. This is the image that will printed on the letter to which the card is attached. */ @JsonProperty(JSON_PROPERTY_CARRIER_IMAGE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -323,18 +284,9 @@ public void setCarrierImageId(String carrierImageId) { } /** - * The ID of the card configuration profile that contains the settings of the card. For example, - * the envelope and PIN mailer designs or the logistics company handling the shipment. All the - * settings in the profile are applied to the card, unless you provide other fields to override - * them. For example, send the `shipmentMethod` to override the logistics company - * defined in the card configuration profile. + * The ID of the card configuration profile that contains the settings of the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. All the settings in the profile are applied to the card, unless you provide other fields to override them. For example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile. * - * @param configurationProfileId The ID of the card configuration profile that contains the - * settings of the card. For example, the envelope and PIN mailer designs or the logistics - * company handling the shipment. All the settings in the profile are applied to the card, - * unless you provide other fields to override them. For example, send the - * `shipmentMethod` to override the logistics company defined in the card - * configuration profile. + * @param configurationProfileId The ID of the card configuration profile that contains the settings of the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. All the settings in the profile are applied to the card, unless you provide other fields to override them. For example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration configurationProfileId(String configurationProfileId) { @@ -343,18 +295,8 @@ public CardConfiguration configurationProfileId(String configurationProfileId) { } /** - * The ID of the card configuration profile that contains the settings of the card. For example, - * the envelope and PIN mailer designs or the logistics company handling the shipment. All the - * settings in the profile are applied to the card, unless you provide other fields to override - * them. For example, send the `shipmentMethod` to override the logistics company - * defined in the card configuration profile. - * - * @return configurationProfileId The ID of the card configuration profile that contains the - * settings of the card. For example, the envelope and PIN mailer designs or the logistics - * company handling the shipment. All the settings in the profile are applied to the card, - * unless you provide other fields to override them. For example, send the - * `shipmentMethod` to override the logistics company defined in the card - * configuration profile. + * The ID of the card configuration profile that contains the settings of the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. All the settings in the profile are applied to the card, unless you provide other fields to override them. For example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile. + * @return configurationProfileId The ID of the card configuration profile that contains the settings of the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. All the settings in the profile are applied to the card, unless you provide other fields to override them. For example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile. */ @JsonProperty(JSON_PROPERTY_CONFIGURATION_PROFILE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -363,18 +305,9 @@ public String getConfigurationProfileId() { } /** - * The ID of the card configuration profile that contains the settings of the card. For example, - * the envelope and PIN mailer designs or the logistics company handling the shipment. All the - * settings in the profile are applied to the card, unless you provide other fields to override - * them. For example, send the `shipmentMethod` to override the logistics company - * defined in the card configuration profile. + * The ID of the card configuration profile that contains the settings of the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. All the settings in the profile are applied to the card, unless you provide other fields to override them. For example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile. * - * @param configurationProfileId The ID of the card configuration profile that contains the - * settings of the card. For example, the envelope and PIN mailer designs or the logistics - * company handling the shipment. All the settings in the profile are applied to the card, - * unless you provide other fields to override them. For example, send the - * `shipmentMethod` to override the logistics company defined in the card - * configuration profile. + * @param configurationProfileId The ID of the card configuration profile that contains the settings of the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. All the settings in the profile are applied to the card, unless you provide other fields to override them. For example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile. */ @JsonProperty(JSON_PROPERTY_CONFIGURATION_PROFILE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -383,11 +316,9 @@ public void setConfigurationProfileId(String configurationProfileId) { } /** - * The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. - * For example, **EUR**. + * The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. * - * @param currency The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency - * code of the card. For example, **EUR**. + * @param currency The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration currency(String currency) { @@ -396,11 +327,8 @@ public CardConfiguration currency(String currency) { } /** - * The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. - * For example, **EUR**. - * - * @return currency The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency - * code of the card. For example, **EUR**. + * The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. + * @return currency The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -409,11 +337,9 @@ public String getCurrency() { } /** - * The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. - * For example, **EUR**. + * The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. * - * @param currency The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency - * code of the card. For example, **EUR**. + * @param currency The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -422,10 +348,9 @@ public void setCurrency(String currency) { } /** - * Overrides the envelope design ID defined in the `configurationProfileId`. + * Overrides the envelope design ID defined in the `configurationProfileId`. * - * @param envelope Overrides the envelope design ID defined in the - * `configurationProfileId`. + * @param envelope Overrides the envelope design ID defined in the `configurationProfileId`. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration envelope(String envelope) { @@ -434,10 +359,8 @@ public CardConfiguration envelope(String envelope) { } /** - * Overrides the envelope design ID defined in the `configurationProfileId`. - * - * @return envelope Overrides the envelope design ID defined in the - * `configurationProfileId`. + * Overrides the envelope design ID defined in the `configurationProfileId`. + * @return envelope Overrides the envelope design ID defined in the `configurationProfileId`. */ @JsonProperty(JSON_PROPERTY_ENVELOPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -446,10 +369,9 @@ public String getEnvelope() { } /** - * Overrides the envelope design ID defined in the `configurationProfileId`. + * Overrides the envelope design ID defined in the `configurationProfileId`. * - * @param envelope Overrides the envelope design ID defined in the - * `configurationProfileId`. + * @param envelope Overrides the envelope design ID defined in the `configurationProfileId`. */ @JsonProperty(JSON_PROPERTY_ENVELOPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -458,12 +380,9 @@ public void setEnvelope(String envelope) { } /** - * Overrides the insert design ID defined in the `configurationProfileId`. An insert is - * any additional material, such as marketing materials, that are shipped together with the card. + * Overrides the insert design ID defined in the `configurationProfileId`. An insert is any additional material, such as marketing materials, that are shipped together with the card. * - * @param insert Overrides the insert design ID defined in the `configurationProfileId`. - * An insert is any additional material, such as marketing materials, that are shipped - * together with the card. + * @param insert Overrides the insert design ID defined in the `configurationProfileId`. An insert is any additional material, such as marketing materials, that are shipped together with the card. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration insert(String insert) { @@ -472,12 +391,8 @@ public CardConfiguration insert(String insert) { } /** - * Overrides the insert design ID defined in the `configurationProfileId`. An insert is - * any additional material, such as marketing materials, that are shipped together with the card. - * - * @return insert Overrides the insert design ID defined in the - * `configurationProfileId`. An insert is any additional material, such as marketing - * materials, that are shipped together with the card. + * Overrides the insert design ID defined in the `configurationProfileId`. An insert is any additional material, such as marketing materials, that are shipped together with the card. + * @return insert Overrides the insert design ID defined in the `configurationProfileId`. An insert is any additional material, such as marketing materials, that are shipped together with the card. */ @JsonProperty(JSON_PROPERTY_INSERT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -486,12 +401,9 @@ public String getInsert() { } /** - * Overrides the insert design ID defined in the `configurationProfileId`. An insert is - * any additional material, such as marketing materials, that are shipped together with the card. + * Overrides the insert design ID defined in the `configurationProfileId`. An insert is any additional material, such as marketing materials, that are shipped together with the card. * - * @param insert Overrides the insert design ID defined in the `configurationProfileId`. - * An insert is any additional material, such as marketing materials, that are shipped - * together with the card. + * @param insert Overrides the insert design ID defined in the `configurationProfileId`. An insert is any additional material, such as marketing materials, that are shipped together with the card. */ @JsonProperty(JSON_PROPERTY_INSERT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -500,12 +412,9 @@ public void setInsert(String insert) { } /** - * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code - * of the card. For example, **en**. + * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the card. For example, **en**. * - * @param language The two-letter - * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the - * card. For example, **en**. + * @param language The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the card. For example, **en**. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration language(String language) { @@ -514,12 +423,8 @@ public CardConfiguration language(String language) { } /** - * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code - * of the card. For example, **en**. - * - * @return language The two-letter - * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the - * card. For example, **en**. + * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the card. For example, **en**. + * @return language The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the card. For example, **en**. */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -528,12 +433,9 @@ public String getLanguage() { } /** - * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code - * of the card. For example, **en**. + * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the card. For example, **en**. * - * @param language The two-letter - * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the - * card. For example, **en**. + * @param language The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the card. For example, **en**. */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -542,11 +444,9 @@ public void setLanguage(String language) { } /** - * The ID of the logo image. This is the image that will be printed on the partial front of the - * card, such as a logo on the upper right corner. + * The ID of the logo image. This is the image that will be printed on the partial front of the card, such as a logo on the upper right corner. * - * @param logoImageId The ID of the logo image. This is the image that will be printed on the - * partial front of the card, such as a logo on the upper right corner. + * @param logoImageId The ID of the logo image. This is the image that will be printed on the partial front of the card, such as a logo on the upper right corner. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration logoImageId(String logoImageId) { @@ -555,11 +455,8 @@ public CardConfiguration logoImageId(String logoImageId) { } /** - * The ID of the logo image. This is the image that will be printed on the partial front of the - * card, such as a logo on the upper right corner. - * - * @return logoImageId The ID of the logo image. This is the image that will be printed on the - * partial front of the card, such as a logo on the upper right corner. + * The ID of the logo image. This is the image that will be printed on the partial front of the card, such as a logo on the upper right corner. + * @return logoImageId The ID of the logo image. This is the image that will be printed on the partial front of the card, such as a logo on the upper right corner. */ @JsonProperty(JSON_PROPERTY_LOGO_IMAGE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -568,11 +465,9 @@ public String getLogoImageId() { } /** - * The ID of the logo image. This is the image that will be printed on the partial front of the - * card, such as a logo on the upper right corner. + * The ID of the logo image. This is the image that will be printed on the partial front of the card, such as a logo on the upper right corner. * - * @param logoImageId The ID of the logo image. This is the image that will be printed on the - * partial front of the card, such as a logo on the upper right corner. + * @param logoImageId The ID of the logo image. This is the image that will be printed on the partial front of the card, such as a logo on the upper right corner. */ @JsonProperty(JSON_PROPERTY_LOGO_IMAGE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -581,12 +476,9 @@ public void setLogoImageId(String logoImageId) { } /** - * Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN - * mailer is the letter on which the PIN is printed. + * Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN mailer is the letter on which the PIN is printed. * - * @param pinMailer Overrides the PIN mailer design ID defined in the - * `configurationProfileId`. The PIN mailer is the letter on which the PIN is - * printed. + * @param pinMailer Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN mailer is the letter on which the PIN is printed. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration pinMailer(String pinMailer) { @@ -595,12 +487,8 @@ public CardConfiguration pinMailer(String pinMailer) { } /** - * Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN - * mailer is the letter on which the PIN is printed. - * - * @return pinMailer Overrides the PIN mailer design ID defined in the - * `configurationProfileId`. The PIN mailer is the letter on which the PIN is - * printed. + * Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN mailer is the letter on which the PIN is printed. + * @return pinMailer Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN mailer is the letter on which the PIN is printed. */ @JsonProperty(JSON_PROPERTY_PIN_MAILER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -609,12 +497,9 @@ public String getPinMailer() { } /** - * Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN - * mailer is the letter on which the PIN is printed. + * Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN mailer is the letter on which the PIN is printed. * - * @param pinMailer Overrides the PIN mailer design ID defined in the - * `configurationProfileId`. The PIN mailer is the letter on which the PIN is - * printed. + * @param pinMailer Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN mailer is the letter on which the PIN is printed. */ @JsonProperty(JSON_PROPERTY_PIN_MAILER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -625,8 +510,7 @@ public void setPinMailer(String pinMailer) { /** * Overrides the logistics company defined in the `configurationProfileId`. * - * @param shipmentMethod Overrides the logistics company defined in the - * `configurationProfileId`. + * @param shipmentMethod Overrides the logistics company defined in the `configurationProfileId`. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration shipmentMethod(String shipmentMethod) { @@ -636,9 +520,7 @@ public CardConfiguration shipmentMethod(String shipmentMethod) { /** * Overrides the logistics company defined in the `configurationProfileId`. - * - * @return shipmentMethod Overrides the logistics company defined in the - * `configurationProfileId`. + * @return shipmentMethod Overrides the logistics company defined in the `configurationProfileId`. */ @JsonProperty(JSON_PROPERTY_SHIPMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -649,8 +531,7 @@ public String getShipmentMethod() { /** * Overrides the logistics company defined in the `configurationProfileId`. * - * @param shipmentMethod Overrides the logistics company defined in the - * `configurationProfileId`. + * @param shipmentMethod Overrides the logistics company defined in the `configurationProfileId`. */ @JsonProperty(JSON_PROPERTY_SHIPMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -658,7 +539,9 @@ public void setShipmentMethod(String shipmentMethod) { this.shipmentMethod = shipmentMethod; } - /** Return true if this CardConfiguration object is equal to o. */ + /** + * Return true if this CardConfiguration object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -668,39 +551,25 @@ public boolean equals(Object o) { return false; } CardConfiguration cardConfiguration = (CardConfiguration) o; - return Objects.equals(this.activation, cardConfiguration.activation) - && Objects.equals(this.activationUrl, cardConfiguration.activationUrl) - && Objects.equals(this.bulkAddress, cardConfiguration.bulkAddress) - && Objects.equals(this.cardImageId, cardConfiguration.cardImageId) - && Objects.equals(this.carrier, cardConfiguration.carrier) - && Objects.equals(this.carrierImageId, cardConfiguration.carrierImageId) - && Objects.equals(this.configurationProfileId, cardConfiguration.configurationProfileId) - && Objects.equals(this.currency, cardConfiguration.currency) - && Objects.equals(this.envelope, cardConfiguration.envelope) - && Objects.equals(this.insert, cardConfiguration.insert) - && Objects.equals(this.language, cardConfiguration.language) - && Objects.equals(this.logoImageId, cardConfiguration.logoImageId) - && Objects.equals(this.pinMailer, cardConfiguration.pinMailer) - && Objects.equals(this.shipmentMethod, cardConfiguration.shipmentMethod); + return Objects.equals(this.activation, cardConfiguration.activation) && + Objects.equals(this.activationUrl, cardConfiguration.activationUrl) && + Objects.equals(this.bulkAddress, cardConfiguration.bulkAddress) && + Objects.equals(this.cardImageId, cardConfiguration.cardImageId) && + Objects.equals(this.carrier, cardConfiguration.carrier) && + Objects.equals(this.carrierImageId, cardConfiguration.carrierImageId) && + Objects.equals(this.configurationProfileId, cardConfiguration.configurationProfileId) && + Objects.equals(this.currency, cardConfiguration.currency) && + Objects.equals(this.envelope, cardConfiguration.envelope) && + Objects.equals(this.insert, cardConfiguration.insert) && + Objects.equals(this.language, cardConfiguration.language) && + Objects.equals(this.logoImageId, cardConfiguration.logoImageId) && + Objects.equals(this.pinMailer, cardConfiguration.pinMailer) && + Objects.equals(this.shipmentMethod, cardConfiguration.shipmentMethod); } @Override public int hashCode() { - return Objects.hash( - activation, - activationUrl, - bulkAddress, - cardImageId, - carrier, - carrierImageId, - configurationProfileId, - currency, - envelope, - insert, - language, - logoImageId, - pinMailer, - shipmentMethod); + return Objects.hash(activation, activationUrl, bulkAddress, cardImageId, carrier, carrierImageId, configurationProfileId, currency, envelope, insert, language, logoImageId, pinMailer, shipmentMethod); } @Override @@ -713,9 +582,7 @@ public String toString() { sb.append(" cardImageId: ").append(toIndentedString(cardImageId)).append("\n"); sb.append(" carrier: ").append(toIndentedString(carrier)).append("\n"); sb.append(" carrierImageId: ").append(toIndentedString(carrierImageId)).append("\n"); - sb.append(" configurationProfileId: ") - .append(toIndentedString(configurationProfileId)) - .append("\n"); + sb.append(" configurationProfileId: ").append(toIndentedString(configurationProfileId)).append("\n"); sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); sb.append(" envelope: ").append(toIndentedString(envelope)).append("\n"); sb.append(" insert: ").append(toIndentedString(insert)).append("\n"); @@ -728,7 +595,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -737,7 +605,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CardConfiguration given an JSON string * * @param jsonString JSON string @@ -747,12 +615,11 @@ private String toIndentedString(Object o) { public static CardConfiguration fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardConfiguration.class); } - - /** - * Convert an instance of CardConfiguration to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CardConfiguration to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CardInfo.java b/src/main/java/com/adyen/model/balanceplatform/CardInfo.java index 672469bfb..0ace6086c 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CardInfo.java +++ b/src/main/java/com/adyen/model/balanceplatform/CardInfo.java @@ -2,26 +2,34 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.Authentication; +import com.adyen.model.balanceplatform.CardConfiguration; +import com.adyen.model.balanceplatform.DeliveryContact; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** CardInfo */ + +/** + * CardInfo + */ @JsonPropertyOrder({ CardInfo.JSON_PROPERTY_AUTHENTICATION, CardInfo.JSON_PROPERTY_BRAND, @@ -33,6 +41,7 @@ CardInfo.JSON_PROPERTY_THREE_D_SECURE, CardInfo.JSON_PROPERTY_USAGE }) + public class CardInfo { public static final String JSON_PROPERTY_AUTHENTICATION = "authentication"; private Authentication authentication; @@ -52,8 +61,11 @@ public class CardInfo { public static final String JSON_PROPERTY_DELIVERY_CONTACT = "deliveryContact"; private DeliveryContact deliveryContact; - /** The form factor of the card. Possible values: **virtual**, **physical**. */ + /** + * The form factor of the card. Possible values: **virtual**, **physical**. + */ public enum FormFactorEnum { + PHYSICAL(String.valueOf("physical")), UNKNOWN(String.valueOf("unknown")), @@ -65,7 +77,7 @@ public enum FormFactorEnum { private String value; FormFactorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -86,11 +98,7 @@ public static FormFactorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FormFactorEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FormFactorEnum.values())); + LOG.warning("FormFactorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FormFactorEnum.values())); return null; } } @@ -104,12 +112,13 @@ public static FormFactorEnum fromValue(String value) { public static final String JSON_PROPERTY_USAGE = "usage"; private String usage; - public CardInfo() {} + public CardInfo() { + } /** * authentication * - * @param authentication + * @param authentication * @return the current {@code CardInfo} instance, allowing for method chaining */ public CardInfo authentication(Authentication authentication) { @@ -119,8 +128,7 @@ public CardInfo authentication(Authentication authentication) { /** * Get authentication - * - * @return authentication + * @return authentication */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -131,7 +139,7 @@ public Authentication getAuthentication() { /** * authentication * - * @param authentication + * @param authentication */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,7 +160,6 @@ public CardInfo brand(String brand) { /** * The brand of the physical or the virtual card. Possible values: **visa**, **mc**. - * * @return brand The brand of the physical or the virtual card. Possible values: **visa**, **mc**. */ @JsonProperty(JSON_PROPERTY_BRAND) @@ -173,13 +180,9 @@ public void setBrand(String brand) { } /** - * The brand variant of the physical or the virtual card. For example, **visadebit** or - * **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your - * integration. + * The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. * - * @param brandVariant The brand variant of the physical or the virtual card. For example, - * **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values - * relevant for your integration. + * @param brandVariant The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. * @return the current {@code CardInfo} instance, allowing for method chaining */ public CardInfo brandVariant(String brandVariant) { @@ -188,13 +191,8 @@ public CardInfo brandVariant(String brandVariant) { } /** - * The brand variant of the physical or the virtual card. For example, **visadebit** or - * **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your - * integration. - * - * @return brandVariant The brand variant of the physical or the virtual card. For example, - * **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values - * relevant for your integration. + * The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. + * @return brandVariant The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. */ @JsonProperty(JSON_PROPERTY_BRAND_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -203,13 +201,9 @@ public String getBrandVariant() { } /** - * The brand variant of the physical or the virtual card. For example, **visadebit** or - * **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your - * integration. + * The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. * - * @param brandVariant The brand variant of the physical or the virtual card. For example, - * **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values - * relevant for your integration. + * @param brandVariant The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. */ @JsonProperty(JSON_PROPERTY_BRAND_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -218,9 +212,9 @@ public void setBrandVariant(String brandVariant) { } /** - * The name of the cardholder. Maximum length: 26 characters. + * The name of the cardholder. Maximum length: 26 characters. * - * @param cardholderName The name of the cardholder. Maximum length: 26 characters. + * @param cardholderName The name of the cardholder. Maximum length: 26 characters. * @return the current {@code CardInfo} instance, allowing for method chaining */ public CardInfo cardholderName(String cardholderName) { @@ -229,9 +223,8 @@ public CardInfo cardholderName(String cardholderName) { } /** - * The name of the cardholder. Maximum length: 26 characters. - * - * @return cardholderName The name of the cardholder. Maximum length: 26 characters. + * The name of the cardholder. Maximum length: 26 characters. + * @return cardholderName The name of the cardholder. Maximum length: 26 characters. */ @JsonProperty(JSON_PROPERTY_CARDHOLDER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,9 +233,9 @@ public String getCardholderName() { } /** - * The name of the cardholder. Maximum length: 26 characters. + * The name of the cardholder. Maximum length: 26 characters. * - * @param cardholderName The name of the cardholder. Maximum length: 26 characters. + * @param cardholderName The name of the cardholder. Maximum length: 26 characters. */ @JsonProperty(JSON_PROPERTY_CARDHOLDER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -253,7 +246,7 @@ public void setCardholderName(String cardholderName) { /** * configuration * - * @param configuration + * @param configuration * @return the current {@code CardInfo} instance, allowing for method chaining */ public CardInfo configuration(CardConfiguration configuration) { @@ -263,8 +256,7 @@ public CardInfo configuration(CardConfiguration configuration) { /** * Get configuration - * - * @return configuration + * @return configuration */ @JsonProperty(JSON_PROPERTY_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -275,7 +267,7 @@ public CardConfiguration getConfiguration() { /** * configuration * - * @param configuration + * @param configuration */ @JsonProperty(JSON_PROPERTY_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -286,7 +278,7 @@ public void setConfiguration(CardConfiguration configuration) { /** * deliveryContact * - * @param deliveryContact + * @param deliveryContact * @return the current {@code CardInfo} instance, allowing for method chaining */ public CardInfo deliveryContact(DeliveryContact deliveryContact) { @@ -296,8 +288,7 @@ public CardInfo deliveryContact(DeliveryContact deliveryContact) { /** * Get deliveryContact - * - * @return deliveryContact + * @return deliveryContact */ @JsonProperty(JSON_PROPERTY_DELIVERY_CONTACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -308,7 +299,7 @@ public DeliveryContact getDeliveryContact() { /** * deliveryContact * - * @param deliveryContact + * @param deliveryContact */ @JsonProperty(JSON_PROPERTY_DELIVERY_CONTACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -329,7 +320,6 @@ public CardInfo formFactor(FormFactorEnum formFactor) { /** * The form factor of the card. Possible values: **virtual**, **physical**. - * * @return formFactor The form factor of the card. Possible values: **virtual**, **physical**. */ @JsonProperty(JSON_PROPERTY_FORM_FACTOR) @@ -350,13 +340,9 @@ public void setFormFactor(FormFactorEnum formFactor) { } /** - * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, - * **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your - * integration. + * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. * - * @param threeDSecure The 3DS configuration of the physical or the virtual card. Possible values: - * **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the - * values relevant for your integration. + * @param threeDSecure The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. * @return the current {@code CardInfo} instance, allowing for method chaining */ public CardInfo threeDSecure(String threeDSecure) { @@ -365,13 +351,8 @@ public CardInfo threeDSecure(String threeDSecure) { } /** - * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, - * **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your - * integration. - * - * @return threeDSecure The 3DS configuration of the physical or the virtual card. Possible - * values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to - * get the values relevant for your integration. + * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. + * @return threeDSecure The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. */ @JsonProperty(JSON_PROPERTY_THREE_D_SECURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -380,13 +361,9 @@ public String getThreeDSecure() { } /** - * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, - * **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your - * integration. + * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. * - * @param threeDSecure The 3DS configuration of the physical or the virtual card. Possible values: - * **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the - * values relevant for your integration. + * @param threeDSecure The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. */ @JsonProperty(JSON_PROPERTY_THREE_D_SECURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -395,12 +372,9 @@ public void setThreeDSecure(String threeDSecure) { } /** - * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. - * > Reach out to your Adyen contact to determine the value relevant for your integration. + * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. * - * @param usage Specifies how many times the card can be used. Possible values: **singleUse**, - * **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your - * integration. + * @param usage Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. * @return the current {@code CardInfo} instance, allowing for method chaining */ public CardInfo usage(String usage) { @@ -409,12 +383,8 @@ public CardInfo usage(String usage) { } /** - * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. - * > Reach out to your Adyen contact to determine the value relevant for your integration. - * - * @return usage Specifies how many times the card can be used. Possible values: **singleUse**, - * **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your - * integration. + * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. + * @return usage Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. */ @JsonProperty(JSON_PROPERTY_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -423,12 +393,9 @@ public String getUsage() { } /** - * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. - * > Reach out to your Adyen contact to determine the value relevant for your integration. + * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. * - * @param usage Specifies how many times the card can be used. Possible values: **singleUse**, - * **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your - * integration. + * @param usage Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. */ @JsonProperty(JSON_PROPERTY_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -436,7 +403,9 @@ public void setUsage(String usage) { this.usage = usage; } - /** Return true if this CardInfo object is equal to o. */ + /** + * Return true if this CardInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -446,29 +415,20 @@ public boolean equals(Object o) { return false; } CardInfo cardInfo = (CardInfo) o; - return Objects.equals(this.authentication, cardInfo.authentication) - && Objects.equals(this.brand, cardInfo.brand) - && Objects.equals(this.brandVariant, cardInfo.brandVariant) - && Objects.equals(this.cardholderName, cardInfo.cardholderName) - && Objects.equals(this.configuration, cardInfo.configuration) - && Objects.equals(this.deliveryContact, cardInfo.deliveryContact) - && Objects.equals(this.formFactor, cardInfo.formFactor) - && Objects.equals(this.threeDSecure, cardInfo.threeDSecure) - && Objects.equals(this.usage, cardInfo.usage); + return Objects.equals(this.authentication, cardInfo.authentication) && + Objects.equals(this.brand, cardInfo.brand) && + Objects.equals(this.brandVariant, cardInfo.brandVariant) && + Objects.equals(this.cardholderName, cardInfo.cardholderName) && + Objects.equals(this.configuration, cardInfo.configuration) && + Objects.equals(this.deliveryContact, cardInfo.deliveryContact) && + Objects.equals(this.formFactor, cardInfo.formFactor) && + Objects.equals(this.threeDSecure, cardInfo.threeDSecure) && + Objects.equals(this.usage, cardInfo.usage); } @Override public int hashCode() { - return Objects.hash( - authentication, - brand, - brandVariant, - cardholderName, - configuration, - deliveryContact, - formFactor, - threeDSecure, - usage); + return Objects.hash(authentication, brand, brandVariant, cardholderName, configuration, deliveryContact, formFactor, threeDSecure, usage); } @Override @@ -489,7 +449,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -498,7 +459,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CardInfo given an JSON string * * @param jsonString JSON string @@ -508,12 +469,11 @@ private String toIndentedString(Object o) { public static CardInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardInfo.class); } - - /** - * Convert an instance of CardInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CardInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CardOrder.java b/src/main/java/com/adyen/model/balanceplatform/CardOrder.java index 92fc351c6..6cab6776a 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CardOrder.java +++ b/src/main/java/com/adyen/model/balanceplatform/CardOrder.java @@ -2,27 +2,32 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CardOrder */ +/** + * CardOrder + */ @JsonPropertyOrder({ CardOrder.JSON_PROPERTY_BEGIN_DATE, CardOrder.JSON_PROPERTY_CARD_MANUFACTURING_PROFILE_ID, @@ -33,12 +38,12 @@ CardOrder.JSON_PROPERTY_SERVICE_CENTER, CardOrder.JSON_PROPERTY_STATUS }) + public class CardOrder { public static final String JSON_PROPERTY_BEGIN_DATE = "beginDate"; private OffsetDateTime beginDate; - public static final String JSON_PROPERTY_CARD_MANUFACTURING_PROFILE_ID = - "cardManufacturingProfileId"; + public static final String JSON_PROPERTY_CARD_MANUFACTURING_PROFILE_ID = "cardManufacturingProfileId"; private String cardManufacturingProfileId; public static final String JSON_PROPERTY_CLOSED_DATE = "closedDate"; @@ -56,8 +61,11 @@ public class CardOrder { public static final String JSON_PROPERTY_SERVICE_CENTER = "serviceCenter"; private String serviceCenter; - /** The status of the card order. Possible values: **Open**, **Closed**. */ + /** + * The status of the card order. Possible values: **Open**, **Closed**. + */ public enum StatusEnum { + CLOSED(String.valueOf("closed")), OPEN(String.valueOf("open")); @@ -67,7 +75,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -88,11 +96,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -100,7 +104,8 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; - public CardOrder() {} + public CardOrder() { + } /** * The date when the card order is created. @@ -115,7 +120,6 @@ public CardOrder beginDate(OffsetDateTime beginDate) { /** * The date when the card order is created. - * * @return beginDate The date when the card order is created. */ @JsonProperty(JSON_PROPERTY_BEGIN_DATE) @@ -148,7 +152,6 @@ public CardOrder cardManufacturingProfileId(String cardManufacturingProfileId) { /** * The unique identifier of the card manufacturer profile. - * * @return cardManufacturingProfileId The unique identifier of the card manufacturer profile. */ @JsonProperty(JSON_PROPERTY_CARD_MANUFACTURING_PROFILE_ID) @@ -181,7 +184,6 @@ public CardOrder closedDate(OffsetDateTime closedDate) { /** * The date when the card order processing ends. - * * @return closedDate The date when the card order processing ends. */ @JsonProperty(JSON_PROPERTY_CLOSED_DATE) @@ -202,13 +204,9 @@ public void setClosedDate(OffsetDateTime closedDate) { } /** - * The date when you manually closed the card order. Card orders are automatically closed by the - * end of the day it was created. If you manually closed it beforehand, the closing date is shown - * as the `endDate`. + * The date when you manually closed the card order. Card orders are automatically closed by the end of the day it was created. If you manually closed it beforehand, the closing date is shown as the `endDate`. * - * @param endDate The date when you manually closed the card order. Card orders are automatically - * closed by the end of the day it was created. If you manually closed it beforehand, the - * closing date is shown as the `endDate`. + * @param endDate The date when you manually closed the card order. Card orders are automatically closed by the end of the day it was created. If you manually closed it beforehand, the closing date is shown as the `endDate`. * @return the current {@code CardOrder} instance, allowing for method chaining */ public CardOrder endDate(OffsetDateTime endDate) { @@ -217,13 +215,8 @@ public CardOrder endDate(OffsetDateTime endDate) { } /** - * The date when you manually closed the card order. Card orders are automatically closed by the - * end of the day it was created. If you manually closed it beforehand, the closing date is shown - * as the `endDate`. - * - * @return endDate The date when you manually closed the card order. Card orders are automatically - * closed by the end of the day it was created. If you manually closed it beforehand, the - * closing date is shown as the `endDate`. + * The date when you manually closed the card order. Card orders are automatically closed by the end of the day it was created. If you manually closed it beforehand, the closing date is shown as the `endDate`. + * @return endDate The date when you manually closed the card order. Card orders are automatically closed by the end of the day it was created. If you manually closed it beforehand, the closing date is shown as the `endDate`. */ @JsonProperty(JSON_PROPERTY_END_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,13 +225,9 @@ public OffsetDateTime getEndDate() { } /** - * The date when you manually closed the card order. Card orders are automatically closed by the - * end of the day it was created. If you manually closed it beforehand, the closing date is shown - * as the `endDate`. + * The date when you manually closed the card order. Card orders are automatically closed by the end of the day it was created. If you manually closed it beforehand, the closing date is shown as the `endDate`. * - * @param endDate The date when you manually closed the card order. Card orders are automatically - * closed by the end of the day it was created. If you manually closed it beforehand, the - * closing date is shown as the `endDate`. + * @param endDate The date when you manually closed the card order. Card orders are automatically closed by the end of the day it was created. If you manually closed it beforehand, the closing date is shown as the `endDate`. */ @JsonProperty(JSON_PROPERTY_END_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -259,7 +248,6 @@ public CardOrder id(String id) { /** * The unique identifier of the card order. - * * @return id The unique identifier of the card order. */ @JsonProperty(JSON_PROPERTY_ID) @@ -292,7 +280,6 @@ public CardOrder lockDate(OffsetDateTime lockDate) { /** * The date when the card order processing begins. - * * @return lockDate The date when the card order processing begins. */ @JsonProperty(JSON_PROPERTY_LOCK_DATE) @@ -325,7 +312,6 @@ public CardOrder serviceCenter(String serviceCenter) { /** * The service center. - * * @return serviceCenter The service center. */ @JsonProperty(JSON_PROPERTY_SERVICE_CENTER) @@ -346,9 +332,9 @@ public void setServiceCenter(String serviceCenter) { } /** - * The status of the card order. Possible values: **Open**, **Closed**. + * The status of the card order. Possible values: **Open**, **Closed**. * - * @param status The status of the card order. Possible values: **Open**, **Closed**. + * @param status The status of the card order. Possible values: **Open**, **Closed**. * @return the current {@code CardOrder} instance, allowing for method chaining */ public CardOrder status(StatusEnum status) { @@ -357,9 +343,8 @@ public CardOrder status(StatusEnum status) { } /** - * The status of the card order. Possible values: **Open**, **Closed**. - * - * @return status The status of the card order. Possible values: **Open**, **Closed**. + * The status of the card order. Possible values: **Open**, **Closed**. + * @return status The status of the card order. Possible values: **Open**, **Closed**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -368,9 +353,9 @@ public StatusEnum getStatus() { } /** - * The status of the card order. Possible values: **Open**, **Closed**. + * The status of the card order. Possible values: **Open**, **Closed**. * - * @param status The status of the card order. Possible values: **Open**, **Closed**. + * @param status The status of the card order. Possible values: **Open**, **Closed**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -378,7 +363,9 @@ public void setStatus(StatusEnum status) { this.status = status; } - /** Return true if this CardOrder object is equal to o. */ + /** + * Return true if this CardOrder object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -388,27 +375,19 @@ public boolean equals(Object o) { return false; } CardOrder cardOrder = (CardOrder) o; - return Objects.equals(this.beginDate, cardOrder.beginDate) - && Objects.equals(this.cardManufacturingProfileId, cardOrder.cardManufacturingProfileId) - && Objects.equals(this.closedDate, cardOrder.closedDate) - && Objects.equals(this.endDate, cardOrder.endDate) - && Objects.equals(this.id, cardOrder.id) - && Objects.equals(this.lockDate, cardOrder.lockDate) - && Objects.equals(this.serviceCenter, cardOrder.serviceCenter) - && Objects.equals(this.status, cardOrder.status); + return Objects.equals(this.beginDate, cardOrder.beginDate) && + Objects.equals(this.cardManufacturingProfileId, cardOrder.cardManufacturingProfileId) && + Objects.equals(this.closedDate, cardOrder.closedDate) && + Objects.equals(this.endDate, cardOrder.endDate) && + Objects.equals(this.id, cardOrder.id) && + Objects.equals(this.lockDate, cardOrder.lockDate) && + Objects.equals(this.serviceCenter, cardOrder.serviceCenter) && + Objects.equals(this.status, cardOrder.status); } @Override public int hashCode() { - return Objects.hash( - beginDate, - cardManufacturingProfileId, - closedDate, - endDate, - id, - lockDate, - serviceCenter, - status); + return Objects.hash(beginDate, cardManufacturingProfileId, closedDate, endDate, id, lockDate, serviceCenter, status); } @Override @@ -416,9 +395,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CardOrder {\n"); sb.append(" beginDate: ").append(toIndentedString(beginDate)).append("\n"); - sb.append(" cardManufacturingProfileId: ") - .append(toIndentedString(cardManufacturingProfileId)) - .append("\n"); + sb.append(" cardManufacturingProfileId: ").append(toIndentedString(cardManufacturingProfileId)).append("\n"); sb.append(" closedDate: ").append(toIndentedString(closedDate)).append("\n"); sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); @@ -430,7 +407,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -439,7 +417,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CardOrder given an JSON string * * @param jsonString JSON string @@ -449,12 +427,11 @@ private String toIndentedString(Object o) { public static CardOrder fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardOrder.class); } - - /** - * Convert an instance of CardOrder to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CardOrder to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CardOrderItem.java b/src/main/java/com/adyen/model/balanceplatform/CardOrderItem.java index 94ea7a405..2a54e5749 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CardOrderItem.java +++ b/src/main/java/com/adyen/model/balanceplatform/CardOrderItem.java @@ -2,24 +2,33 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.CardOrderItemDeliveryStatus; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.time.OffsetDateTime; -import java.util.*; -/** CardOrderItem */ + +/** + * CardOrderItem + */ @JsonPropertyOrder({ CardOrderItem.JSON_PROPERTY_BALANCE_PLATFORM, CardOrderItem.JSON_PROPERTY_CARD, @@ -30,6 +39,7 @@ CardOrderItem.JSON_PROPERTY_PIN, CardOrderItem.JSON_PROPERTY_SHIPPING_METHOD }) + public class CardOrderItem { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; @@ -55,10 +65,13 @@ public class CardOrderItem { public static final String JSON_PROPERTY_SHIPPING_METHOD = "shippingMethod"; private String shippingMethod; - public CardOrderItem() {} + public CardOrderItem() { + } @JsonCreator - public CardOrderItem(@JsonProperty(JSON_PROPERTY_ID) String id) { + public CardOrderItem( + @JsonProperty(JSON_PROPERTY_ID) String id + ) { this(); this.id = id; } @@ -76,7 +89,6 @@ public CardOrderItem balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. - * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -99,7 +111,7 @@ public void setBalancePlatform(String balancePlatform) { /** * card * - * @param card + * @param card * @return the current {@code CardOrderItem} instance, allowing for method chaining */ public CardOrderItem card(CardOrderItemDeliveryStatus card) { @@ -109,8 +121,7 @@ public CardOrderItem card(CardOrderItemDeliveryStatus card) { /** * Get card - * - * @return card + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,7 +132,7 @@ public CardOrderItemDeliveryStatus getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,7 +153,6 @@ public CardOrderItem cardOrderItemId(String cardOrderItemId) { /** * The unique identifier of the card order item. - * * @return cardOrderItemId The unique identifier of the card order item. */ @JsonProperty(JSON_PROPERTY_CARD_ORDER_ITEM_ID) @@ -163,11 +173,9 @@ public void setCardOrderItemId(String cardOrderItemId) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code CardOrderItem} instance, allowing for method chaining */ public CardOrderItem creationDate(OffsetDateTime creationDate) { @@ -176,11 +184,8 @@ public CardOrderItem creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. - * - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,11 +194,9 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -203,7 +206,6 @@ public void setCreationDate(OffsetDateTime creationDate) { /** * The ID of the resource. - * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -212,11 +214,11 @@ public String getId() { return id; } + /** * The unique identifier of the payment instrument related to the card order item. * - * @param paymentInstrumentId The unique identifier of the payment instrument related to the card - * order item. + * @param paymentInstrumentId The unique identifier of the payment instrument related to the card order item. * @return the current {@code CardOrderItem} instance, allowing for method chaining */ public CardOrderItem paymentInstrumentId(String paymentInstrumentId) { @@ -226,9 +228,7 @@ public CardOrderItem paymentInstrumentId(String paymentInstrumentId) { /** * The unique identifier of the payment instrument related to the card order item. - * - * @return paymentInstrumentId The unique identifier of the payment instrument related to the card - * order item. + * @return paymentInstrumentId The unique identifier of the payment instrument related to the card order item. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -239,8 +239,7 @@ public String getPaymentInstrumentId() { /** * The unique identifier of the payment instrument related to the card order item. * - * @param paymentInstrumentId The unique identifier of the payment instrument related to the card - * order item. + * @param paymentInstrumentId The unique identifier of the payment instrument related to the card order item. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -251,7 +250,7 @@ public void setPaymentInstrumentId(String paymentInstrumentId) { /** * pin * - * @param pin + * @param pin * @return the current {@code CardOrderItem} instance, allowing for method chaining */ public CardOrderItem pin(CardOrderItemDeliveryStatus pin) { @@ -261,8 +260,7 @@ public CardOrderItem pin(CardOrderItemDeliveryStatus pin) { /** * Get pin - * - * @return pin + * @return pin */ @JsonProperty(JSON_PROPERTY_PIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -273,7 +271,7 @@ public CardOrderItemDeliveryStatus getPin() { /** * pin * - * @param pin + * @param pin */ @JsonProperty(JSON_PROPERTY_PIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -294,7 +292,6 @@ public CardOrderItem shippingMethod(String shippingMethod) { /** * The shipping method used to deliver the card or the PIN. - * * @return shippingMethod The shipping method used to deliver the card or the PIN. */ @JsonProperty(JSON_PROPERTY_SHIPPING_METHOD) @@ -314,7 +311,9 @@ public void setShippingMethod(String shippingMethod) { this.shippingMethod = shippingMethod; } - /** Return true if this CardOrderItem object is equal to o. */ + /** + * Return true if this CardOrderItem object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -324,27 +323,19 @@ public boolean equals(Object o) { return false; } CardOrderItem cardOrderItem = (CardOrderItem) o; - return Objects.equals(this.balancePlatform, cardOrderItem.balancePlatform) - && Objects.equals(this.card, cardOrderItem.card) - && Objects.equals(this.cardOrderItemId, cardOrderItem.cardOrderItemId) - && Objects.equals(this.creationDate, cardOrderItem.creationDate) - && Objects.equals(this.id, cardOrderItem.id) - && Objects.equals(this.paymentInstrumentId, cardOrderItem.paymentInstrumentId) - && Objects.equals(this.pin, cardOrderItem.pin) - && Objects.equals(this.shippingMethod, cardOrderItem.shippingMethod); + return Objects.equals(this.balancePlatform, cardOrderItem.balancePlatform) && + Objects.equals(this.card, cardOrderItem.card) && + Objects.equals(this.cardOrderItemId, cardOrderItem.cardOrderItemId) && + Objects.equals(this.creationDate, cardOrderItem.creationDate) && + Objects.equals(this.id, cardOrderItem.id) && + Objects.equals(this.paymentInstrumentId, cardOrderItem.paymentInstrumentId) && + Objects.equals(this.pin, cardOrderItem.pin) && + Objects.equals(this.shippingMethod, cardOrderItem.shippingMethod); } @Override public int hashCode() { - return Objects.hash( - balancePlatform, - card, - cardOrderItemId, - creationDate, - id, - paymentInstrumentId, - pin, - shippingMethod); + return Objects.hash(balancePlatform, card, cardOrderItemId, creationDate, id, paymentInstrumentId, pin, shippingMethod); } @Override @@ -356,9 +347,7 @@ public String toString() { sb.append(" cardOrderItemId: ").append(toIndentedString(cardOrderItemId)).append("\n"); sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" paymentInstrumentId: ") - .append(toIndentedString(paymentInstrumentId)) - .append("\n"); + sb.append(" paymentInstrumentId: ").append(toIndentedString(paymentInstrumentId)).append("\n"); sb.append(" pin: ").append(toIndentedString(pin)).append("\n"); sb.append(" shippingMethod: ").append(toIndentedString(shippingMethod)).append("\n"); sb.append("}"); @@ -366,7 +355,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -375,7 +365,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CardOrderItem given an JSON string * * @param jsonString JSON string @@ -385,12 +375,11 @@ private String toIndentedString(Object o) { public static CardOrderItem fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardOrderItem.class); } - - /** - * Convert an instance of CardOrderItem to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CardOrderItem to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CardOrderItemDeliveryStatus.java b/src/main/java/com/adyen/model/balanceplatform/CardOrderItemDeliveryStatus.java index 325c4e3e2..8fe150299 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CardOrderItemDeliveryStatus.java +++ b/src/main/java/com/adyen/model/balanceplatform/CardOrderItemDeliveryStatus.java @@ -2,37 +2,46 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** CardOrderItemDeliveryStatus */ + +/** + * CardOrderItemDeliveryStatus + */ @JsonPropertyOrder({ CardOrderItemDeliveryStatus.JSON_PROPERTY_ERROR_MESSAGE, CardOrderItemDeliveryStatus.JSON_PROPERTY_STATUS, CardOrderItemDeliveryStatus.JSON_PROPERTY_TRACKING_NUMBER }) + public class CardOrderItemDeliveryStatus { public static final String JSON_PROPERTY_ERROR_MESSAGE = "errorMessage"; private String errorMessage; - /** The status of the PIN delivery. */ + /** + * The status of the PIN delivery. + */ public enum StatusEnum { + CREATED(String.valueOf("created")), DELIVERED(String.valueOf("delivered")), @@ -54,7 +63,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -75,11 +84,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -90,7 +95,8 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_TRACKING_NUMBER = "trackingNumber"; private String trackingNumber; - public CardOrderItemDeliveryStatus() {} + public CardOrderItemDeliveryStatus() { + } /** * An error message. @@ -105,7 +111,6 @@ public CardOrderItemDeliveryStatus errorMessage(String errorMessage) { /** * An error message. - * * @return errorMessage An error message. */ @JsonProperty(JSON_PROPERTY_ERROR_MESSAGE) @@ -138,7 +143,6 @@ public CardOrderItemDeliveryStatus status(StatusEnum status) { /** * The status of the PIN delivery. - * * @return status The status of the PIN delivery. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -171,7 +175,6 @@ public CardOrderItemDeliveryStatus trackingNumber(String trackingNumber) { /** * The tracking number of the PIN delivery. - * * @return trackingNumber The tracking number of the PIN delivery. */ @JsonProperty(JSON_PROPERTY_TRACKING_NUMBER) @@ -191,7 +194,9 @@ public void setTrackingNumber(String trackingNumber) { this.trackingNumber = trackingNumber; } - /** Return true if this CardOrderItemDeliveryStatus object is equal to o. */ + /** + * Return true if this CardOrderItemDeliveryStatus object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -201,9 +206,9 @@ public boolean equals(Object o) { return false; } CardOrderItemDeliveryStatus cardOrderItemDeliveryStatus = (CardOrderItemDeliveryStatus) o; - return Objects.equals(this.errorMessage, cardOrderItemDeliveryStatus.errorMessage) - && Objects.equals(this.status, cardOrderItemDeliveryStatus.status) - && Objects.equals(this.trackingNumber, cardOrderItemDeliveryStatus.trackingNumber); + return Objects.equals(this.errorMessage, cardOrderItemDeliveryStatus.errorMessage) && + Objects.equals(this.status, cardOrderItemDeliveryStatus.status) && + Objects.equals(this.trackingNumber, cardOrderItemDeliveryStatus.trackingNumber); } @Override @@ -223,7 +228,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -232,24 +238,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CardOrderItemDeliveryStatus given an JSON string * * @param jsonString JSON string * @return An instance of CardOrderItemDeliveryStatus - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CardOrderItemDeliveryStatus + * @throws JsonProcessingException if the JSON string is invalid with respect to CardOrderItemDeliveryStatus */ - public static CardOrderItemDeliveryStatus fromJson(String jsonString) - throws JsonProcessingException { + public static CardOrderItemDeliveryStatus fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardOrderItemDeliveryStatus.class); } - - /** - * Convert an instance of CardOrderItemDeliveryStatus to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CardOrderItemDeliveryStatus to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/Condition.java b/src/main/java/com/adyen/model/balanceplatform/Condition.java index 413cfa8b5..ba448c212 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Condition.java +++ b/src/main/java/com/adyen/model/balanceplatform/Condition.java @@ -2,39 +2,43 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** Condition */ +/** + * Condition + */ @JsonPropertyOrder({ Condition.JSON_PROPERTY_BALANCE_TYPE, Condition.JSON_PROPERTY_CONDITION_TYPE, Condition.JSON_PROPERTY_VALUE }) + public class Condition { /** - * Define the type of balance about which you want to get notified. Possible values: * - * **available**: the balance available for use. * **balance**: the sum of transactions that have - * already been settled. * **pending**: the sum of transactions that will be settled in the - * future. * **reserved**: the balance currently held in reserve. + * Define the type of balance about which you want to get notified. Possible values: * **available**: the balance available for use. * **balance**: the sum of transactions that have already been settled. * **pending**: the sum of transactions that will be settled in the future. * **reserved**: the balance currently held in reserve. */ public enum BalanceTypeEnum { + BALANCE(String.valueOf("balance")), AVAILABLE(String.valueOf("available")), @@ -48,7 +52,7 @@ public enum BalanceTypeEnum { private String value; BalanceTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,11 +73,7 @@ public static BalanceTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "BalanceTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(BalanceTypeEnum.values())); + LOG.warning("BalanceTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(BalanceTypeEnum.values())); return null; } } @@ -82,14 +82,10 @@ public static BalanceTypeEnum fromValue(String value) { private BalanceTypeEnum balanceType; /** - * Define when you want to get notified about a balance change. Possible values: * - * **greaterThan**: the balance in the account(s) exceeds the specified `value`. * - * **greaterThanOrEqual**: the balance in the account(s) reaches or exceeds the specified - * `value`. * **lessThan**: the balance in the account(s) drops below the specified - * `value`. * **lessThanOrEqual**: the balance in the account(s) reaches to drops below - * the specified `value`. + * Define when you want to get notified about a balance change. Possible values: * **greaterThan**: the balance in the account(s) exceeds the specified `value`. * **greaterThanOrEqual**: the balance in the account(s) reaches or exceeds the specified `value`. * **lessThan**: the balance in the account(s) drops below the specified `value`. * **lessThanOrEqual**: the balance in the account(s) reaches to drops below the specified `value`. */ public enum ConditionTypeEnum { + GREATERTHAN(String.valueOf("greaterThan")), GREATERTHANOREQUAL(String.valueOf("greaterThanOrEqual")), @@ -103,7 +99,7 @@ public enum ConditionTypeEnum { private String value; ConditionTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -124,11 +120,7 @@ public static ConditionTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ConditionTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ConditionTypeEnum.values())); + LOG.warning("ConditionTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ConditionTypeEnum.values())); return null; } } @@ -139,18 +131,13 @@ public static ConditionTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Condition() {} + public Condition() { + } /** - * Define the type of balance about which you want to get notified. Possible values: * - * **available**: the balance available for use. * **balance**: the sum of transactions that have - * already been settled. * **pending**: the sum of transactions that will be settled in the - * future. * **reserved**: the balance currently held in reserve. + * Define the type of balance about which you want to get notified. Possible values: * **available**: the balance available for use. * **balance**: the sum of transactions that have already been settled. * **pending**: the sum of transactions that will be settled in the future. * **reserved**: the balance currently held in reserve. * - * @param balanceType Define the type of balance about which you want to get notified. Possible - * values: * **available**: the balance available for use. * **balance**: the sum of - * transactions that have already been settled. * **pending**: the sum of transactions that - * will be settled in the future. * **reserved**: the balance currently held in reserve. + * @param balanceType Define the type of balance about which you want to get notified. Possible values: * **available**: the balance available for use. * **balance**: the sum of transactions that have already been settled. * **pending**: the sum of transactions that will be settled in the future. * **reserved**: the balance currently held in reserve. * @return the current {@code Condition} instance, allowing for method chaining */ public Condition balanceType(BalanceTypeEnum balanceType) { @@ -159,15 +146,8 @@ public Condition balanceType(BalanceTypeEnum balanceType) { } /** - * Define the type of balance about which you want to get notified. Possible values: * - * **available**: the balance available for use. * **balance**: the sum of transactions that have - * already been settled. * **pending**: the sum of transactions that will be settled in the - * future. * **reserved**: the balance currently held in reserve. - * - * @return balanceType Define the type of balance about which you want to get notified. Possible - * values: * **available**: the balance available for use. * **balance**: the sum of - * transactions that have already been settled. * **pending**: the sum of transactions that - * will be settled in the future. * **reserved**: the balance currently held in reserve. + * Define the type of balance about which you want to get notified. Possible values: * **available**: the balance available for use. * **balance**: the sum of transactions that have already been settled. * **pending**: the sum of transactions that will be settled in the future. * **reserved**: the balance currently held in reserve. + * @return balanceType Define the type of balance about which you want to get notified. Possible values: * **available**: the balance available for use. * **balance**: the sum of transactions that have already been settled. * **pending**: the sum of transactions that will be settled in the future. * **reserved**: the balance currently held in reserve. */ @JsonProperty(JSON_PROPERTY_BALANCE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,15 +156,9 @@ public BalanceTypeEnum getBalanceType() { } /** - * Define the type of balance about which you want to get notified. Possible values: * - * **available**: the balance available for use. * **balance**: the sum of transactions that have - * already been settled. * **pending**: the sum of transactions that will be settled in the - * future. * **reserved**: the balance currently held in reserve. + * Define the type of balance about which you want to get notified. Possible values: * **available**: the balance available for use. * **balance**: the sum of transactions that have already been settled. * **pending**: the sum of transactions that will be settled in the future. * **reserved**: the balance currently held in reserve. * - * @param balanceType Define the type of balance about which you want to get notified. Possible - * values: * **available**: the balance available for use. * **balance**: the sum of - * transactions that have already been settled. * **pending**: the sum of transactions that - * will be settled in the future. * **reserved**: the balance currently held in reserve. + * @param balanceType Define the type of balance about which you want to get notified. Possible values: * **available**: the balance available for use. * **balance**: the sum of transactions that have already been settled. * **pending**: the sum of transactions that will be settled in the future. * **reserved**: the balance currently held in reserve. */ @JsonProperty(JSON_PROPERTY_BALANCE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,19 +167,9 @@ public void setBalanceType(BalanceTypeEnum balanceType) { } /** - * Define when you want to get notified about a balance change. Possible values: * - * **greaterThan**: the balance in the account(s) exceeds the specified `value`. * - * **greaterThanOrEqual**: the balance in the account(s) reaches or exceeds the specified - * `value`. * **lessThan**: the balance in the account(s) drops below the specified - * `value`. * **lessThanOrEqual**: the balance in the account(s) reaches to drops below - * the specified `value`. + * Define when you want to get notified about a balance change. Possible values: * **greaterThan**: the balance in the account(s) exceeds the specified `value`. * **greaterThanOrEqual**: the balance in the account(s) reaches or exceeds the specified `value`. * **lessThan**: the balance in the account(s) drops below the specified `value`. * **lessThanOrEqual**: the balance in the account(s) reaches to drops below the specified `value`. * - * @param conditionType Define when you want to get notified about a balance change. Possible - * values: * **greaterThan**: the balance in the account(s) exceeds the specified - * `value`. * **greaterThanOrEqual**: the balance in the account(s) reaches or - * exceeds the specified `value`. * **lessThan**: the balance in the account(s) - * drops below the specified `value`. * **lessThanOrEqual**: the balance in the - * account(s) reaches to drops below the specified `value`. + * @param conditionType Define when you want to get notified about a balance change. Possible values: * **greaterThan**: the balance in the account(s) exceeds the specified `value`. * **greaterThanOrEqual**: the balance in the account(s) reaches or exceeds the specified `value`. * **lessThan**: the balance in the account(s) drops below the specified `value`. * **lessThanOrEqual**: the balance in the account(s) reaches to drops below the specified `value`. * @return the current {@code Condition} instance, allowing for method chaining */ public Condition conditionType(ConditionTypeEnum conditionType) { @@ -214,19 +178,8 @@ public Condition conditionType(ConditionTypeEnum conditionType) { } /** - * Define when you want to get notified about a balance change. Possible values: * - * **greaterThan**: the balance in the account(s) exceeds the specified `value`. * - * **greaterThanOrEqual**: the balance in the account(s) reaches or exceeds the specified - * `value`. * **lessThan**: the balance in the account(s) drops below the specified - * `value`. * **lessThanOrEqual**: the balance in the account(s) reaches to drops below - * the specified `value`. - * - * @return conditionType Define when you want to get notified about a balance change. Possible - * values: * **greaterThan**: the balance in the account(s) exceeds the specified - * `value`. * **greaterThanOrEqual**: the balance in the account(s) reaches or - * exceeds the specified `value`. * **lessThan**: the balance in the account(s) - * drops below the specified `value`. * **lessThanOrEqual**: the balance in the - * account(s) reaches to drops below the specified `value`. + * Define when you want to get notified about a balance change. Possible values: * **greaterThan**: the balance in the account(s) exceeds the specified `value`. * **greaterThanOrEqual**: the balance in the account(s) reaches or exceeds the specified `value`. * **lessThan**: the balance in the account(s) drops below the specified `value`. * **lessThanOrEqual**: the balance in the account(s) reaches to drops below the specified `value`. + * @return conditionType Define when you want to get notified about a balance change. Possible values: * **greaterThan**: the balance in the account(s) exceeds the specified `value`. * **greaterThanOrEqual**: the balance in the account(s) reaches or exceeds the specified `value`. * **lessThan**: the balance in the account(s) drops below the specified `value`. * **lessThanOrEqual**: the balance in the account(s) reaches to drops below the specified `value`. */ @JsonProperty(JSON_PROPERTY_CONDITION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -235,19 +188,9 @@ public ConditionTypeEnum getConditionType() { } /** - * Define when you want to get notified about a balance change. Possible values: * - * **greaterThan**: the balance in the account(s) exceeds the specified `value`. * - * **greaterThanOrEqual**: the balance in the account(s) reaches or exceeds the specified - * `value`. * **lessThan**: the balance in the account(s) drops below the specified - * `value`. * **lessThanOrEqual**: the balance in the account(s) reaches to drops below - * the specified `value`. + * Define when you want to get notified about a balance change. Possible values: * **greaterThan**: the balance in the account(s) exceeds the specified `value`. * **greaterThanOrEqual**: the balance in the account(s) reaches or exceeds the specified `value`. * **lessThan**: the balance in the account(s) drops below the specified `value`. * **lessThanOrEqual**: the balance in the account(s) reaches to drops below the specified `value`. * - * @param conditionType Define when you want to get notified about a balance change. Possible - * values: * **greaterThan**: the balance in the account(s) exceeds the specified - * `value`. * **greaterThanOrEqual**: the balance in the account(s) reaches or - * exceeds the specified `value`. * **lessThan**: the balance in the account(s) - * drops below the specified `value`. * **lessThanOrEqual**: the balance in the - * account(s) reaches to drops below the specified `value`. + * @param conditionType Define when you want to get notified about a balance change. Possible values: * **greaterThan**: the balance in the account(s) exceeds the specified `value`. * **greaterThanOrEqual**: the balance in the account(s) reaches or exceeds the specified `value`. * **lessThan**: the balance in the account(s) drops below the specified `value`. * **lessThanOrEqual**: the balance in the account(s) reaches to drops below the specified `value`. */ @JsonProperty(JSON_PROPERTY_CONDITION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -268,7 +211,6 @@ public Condition value(Long value) { /** * The value limit in the specified balance type and currency, in minor units. - * * @return value The value limit in the specified balance type and currency, in minor units. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -288,7 +230,9 @@ public void setValue(Long value) { this.value = value; } - /** Return true if this Condition object is equal to o. */ + /** + * Return true if this Condition object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -298,9 +242,9 @@ public boolean equals(Object o) { return false; } Condition condition = (Condition) o; - return Objects.equals(this.balanceType, condition.balanceType) - && Objects.equals(this.conditionType, condition.conditionType) - && Objects.equals(this.value, condition.value); + return Objects.equals(this.balanceType, condition.balanceType) && + Objects.equals(this.conditionType, condition.conditionType) && + Objects.equals(this.value, condition.value); } @Override @@ -320,7 +264,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -329,7 +274,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Condition given an JSON string * * @param jsonString JSON string @@ -339,12 +284,11 @@ private String toIndentedString(Object o) { public static Condition fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Condition.class); } - - /** - * Convert an instance of Condition to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Condition to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/ContactDetails.java b/src/main/java/com/adyen/model/balanceplatform/ContactDetails.java index fcfef740d..8df8338db 100644 --- a/src/main/java/com/adyen/model/balanceplatform/ContactDetails.java +++ b/src/main/java/com/adyen/model/balanceplatform/ContactDetails.java @@ -2,25 +2,33 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.Address; +import com.adyen.model.balanceplatform.Phone; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; + /** * ContactDetails - * - * @deprecated + * @deprecated */ @Deprecated @JsonPropertyOrder({ @@ -29,6 +37,7 @@ ContactDetails.JSON_PROPERTY_PHONE, ContactDetails.JSON_PROPERTY_WEB_ADDRESS }) + public class ContactDetails { public static final String JSON_PROPERTY_ADDRESS = "address"; private Address address; @@ -42,12 +51,13 @@ public class ContactDetails { public static final String JSON_PROPERTY_WEB_ADDRESS = "webAddress"; private String webAddress; - public ContactDetails() {} + public ContactDetails() { + } /** * address * - * @param address + * @param address * @return the current {@code ContactDetails} instance, allowing for method chaining */ public ContactDetails address(Address address) { @@ -57,8 +67,7 @@ public ContactDetails address(Address address) { /** * Get address - * - * @return address + * @return address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -69,7 +78,7 @@ public Address getAddress() { /** * address * - * @param address + * @param address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -90,7 +99,6 @@ public ContactDetails email(String email) { /** * The email address of the account holder. - * * @return email The email address of the account holder. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -113,7 +121,7 @@ public void setEmail(String email) { /** * phone * - * @param phone + * @param phone * @return the current {@code ContactDetails} instance, allowing for method chaining */ public ContactDetails phone(Phone phone) { @@ -123,8 +131,7 @@ public ContactDetails phone(Phone phone) { /** * Get phone - * - * @return phone + * @return phone */ @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,7 +142,7 @@ public Phone getPhone() { /** * phone * - * @param phone + * @param phone */ @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,7 +163,6 @@ public ContactDetails webAddress(String webAddress) { /** * The URL of the account holder's website. - * * @return webAddress The URL of the account holder's website. */ @JsonProperty(JSON_PROPERTY_WEB_ADDRESS) @@ -176,7 +182,9 @@ public void setWebAddress(String webAddress) { this.webAddress = webAddress; } - /** Return true if this ContactDetails object is equal to o. */ + /** + * Return true if this ContactDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -186,10 +194,10 @@ public boolean equals(Object o) { return false; } ContactDetails contactDetails = (ContactDetails) o; - return Objects.equals(this.address, contactDetails.address) - && Objects.equals(this.email, contactDetails.email) - && Objects.equals(this.phone, contactDetails.phone) - && Objects.equals(this.webAddress, contactDetails.webAddress); + return Objects.equals(this.address, contactDetails.address) && + Objects.equals(this.email, contactDetails.email) && + Objects.equals(this.phone, contactDetails.phone) && + Objects.equals(this.webAddress, contactDetails.webAddress); } @Override @@ -210,7 +218,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -219,7 +228,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ContactDetails given an JSON string * * @param jsonString JSON string @@ -229,12 +238,11 @@ private String toIndentedString(Object o) { public static ContactDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ContactDetails.class); } - - /** - * Convert an instance of ContactDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ContactDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/Counterparty.java b/src/main/java/com/adyen/model/balanceplatform/Counterparty.java index 9cf7780d1..8a95f33a7 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Counterparty.java +++ b/src/main/java/com/adyen/model/balanceplatform/Counterparty.java @@ -2,26 +2,37 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.BankAccount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Counterparty */ + +/** + * Counterparty + */ @JsonPropertyOrder({ Counterparty.JSON_PROPERTY_BANK_ACCOUNT, Counterparty.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID }) + public class Counterparty { public static final String JSON_PROPERTY_BANK_ACCOUNT = "bankAccount"; private BankAccount bankAccount; @@ -29,12 +40,13 @@ public class Counterparty { public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_ID = "transferInstrumentId"; private String transferInstrumentId; - public Counterparty() {} + public Counterparty() { + } /** * bankAccount * - * @param bankAccount + * @param bankAccount * @return the current {@code Counterparty} instance, allowing for method chaining */ public Counterparty bankAccount(BankAccount bankAccount) { @@ -44,8 +56,7 @@ public Counterparty bankAccount(BankAccount bankAccount) { /** * Get bankAccount - * - * @return bankAccount + * @return bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -56,7 +67,7 @@ public BankAccount getBankAccount() { /** * bankAccount * - * @param bankAccount + * @param bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -65,11 +76,9 @@ public void setBankAccount(BankAccount bankAccount) { } /** - * The unique identifier of the [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). * - * @param transferInstrumentId The unique identifier of the [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * @param transferInstrumentId The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). * @return the current {@code Counterparty} instance, allowing for method chaining */ public Counterparty transferInstrumentId(String transferInstrumentId) { @@ -78,11 +87,8 @@ public Counterparty transferInstrumentId(String transferInstrumentId) { } /** - * The unique identifier of the [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - * - * @return transferInstrumentId The unique identifier of the [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * @return transferInstrumentId The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -91,11 +97,9 @@ public String getTransferInstrumentId() { } /** - * The unique identifier of the [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). * - * @param transferInstrumentId The unique identifier of the [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * @param transferInstrumentId The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -103,7 +107,9 @@ public void setTransferInstrumentId(String transferInstrumentId) { this.transferInstrumentId = transferInstrumentId; } - /** Return true if this Counterparty object is equal to o. */ + /** + * Return true if this Counterparty object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -113,8 +119,8 @@ public boolean equals(Object o) { return false; } Counterparty counterparty = (Counterparty) o; - return Objects.equals(this.bankAccount, counterparty.bankAccount) - && Objects.equals(this.transferInstrumentId, counterparty.transferInstrumentId); + return Objects.equals(this.bankAccount, counterparty.bankAccount) && + Objects.equals(this.transferInstrumentId, counterparty.transferInstrumentId); } @Override @@ -127,15 +133,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Counterparty {\n"); sb.append(" bankAccount: ").append(toIndentedString(bankAccount)).append("\n"); - sb.append(" transferInstrumentId: ") - .append(toIndentedString(transferInstrumentId)) - .append("\n"); + sb.append(" transferInstrumentId: ").append(toIndentedString(transferInstrumentId)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,7 +149,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Counterparty given an JSON string * * @param jsonString JSON string @@ -154,12 +159,11 @@ private String toIndentedString(Object o) { public static Counterparty fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Counterparty.class); } - - /** - * Convert an instance of Counterparty to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Counterparty to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CounterpartyBankRestriction.java b/src/main/java/com/adyen/model/balanceplatform/CounterpartyBankRestriction.java index e42dbdcd9..6e15e96ab 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CounterpartyBankRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/CounterpartyBankRestriction.java @@ -2,28 +2,39 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.BankIdentification; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CounterpartyBankRestriction */ +/** + * CounterpartyBankRestriction + */ @JsonPropertyOrder({ CounterpartyBankRestriction.JSON_PROPERTY_OPERATION, CounterpartyBankRestriction.JSON_PROPERTY_VALUE }) + public class CounterpartyBankRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -31,7 +42,8 @@ public class CounterpartyBankRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private List value; - public CounterpartyBankRestriction() {} + public CounterpartyBankRestriction() { + } /** * Defines how the condition must be evaluated. @@ -46,7 +58,6 @@ public CounterpartyBankRestriction operation(String operation) { /** * Defines how the condition must be evaluated. - * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -87,7 +98,6 @@ public CounterpartyBankRestriction addValueItem(BankIdentification valueItem) { /** * The list of counterparty bank institutions to be evaluated. - * * @return value The list of counterparty bank institutions to be evaluated. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -107,7 +117,9 @@ public void setValue(List value) { this.value = value; } - /** Return true if this CounterpartyBankRestriction object is equal to o. */ + /** + * Return true if this CounterpartyBankRestriction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -117,8 +129,8 @@ public boolean equals(Object o) { return false; } CounterpartyBankRestriction counterpartyBankRestriction = (CounterpartyBankRestriction) o; - return Objects.equals(this.operation, counterpartyBankRestriction.operation) - && Objects.equals(this.value, counterpartyBankRestriction.value); + return Objects.equals(this.operation, counterpartyBankRestriction.operation) && + Objects.equals(this.value, counterpartyBankRestriction.value); } @Override @@ -137,7 +149,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -146,24 +159,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CounterpartyBankRestriction given an JSON string * * @param jsonString JSON string * @return An instance of CounterpartyBankRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CounterpartyBankRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to CounterpartyBankRestriction */ - public static CounterpartyBankRestriction fromJson(String jsonString) - throws JsonProcessingException { + public static CounterpartyBankRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CounterpartyBankRestriction.class); } - - /** - * Convert an instance of CounterpartyBankRestriction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CounterpartyBankRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CounterpartyTypesRestriction.java b/src/main/java/com/adyen/model/balanceplatform/CounterpartyTypesRestriction.java index 19e5a61a3..c5188cba2 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CounterpartyTypesRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/CounterpartyTypesRestriction.java @@ -2,38 +2,47 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CounterpartyTypesRestriction */ +/** + * CounterpartyTypesRestriction + */ @JsonPropertyOrder({ CounterpartyTypesRestriction.JSON_PROPERTY_OPERATION, CounterpartyTypesRestriction.JSON_PROPERTY_VALUE }) + public class CounterpartyTypesRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; - /** Gets or Sets value */ + /** + * Gets or Sets value + */ public enum ValueEnum { + BALANCEACCOUNT(String.valueOf("balanceAccount")), BANKACCOUNT(String.valueOf("bankAccount")), @@ -47,7 +56,7 @@ public enum ValueEnum { private String value; ValueEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -68,11 +77,7 @@ public static ValueEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ValueEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ValueEnum.values())); + LOG.warning("ValueEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ValueEnum.values())); return null; } } @@ -80,7 +85,8 @@ public static ValueEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUE = "value"; private List value; - public CounterpartyTypesRestriction() {} + public CounterpartyTypesRestriction() { + } /** * Defines how the condition must be evaluated. @@ -95,7 +101,6 @@ public CounterpartyTypesRestriction operation(String operation) { /** * Defines how the condition must be evaluated. - * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -136,7 +141,6 @@ public CounterpartyTypesRestriction addValueItem(ValueEnum valueItem) { /** * The list of counterparty types to be evaluated. - * * @return value The list of counterparty types to be evaluated. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -156,7 +160,9 @@ public void setValue(List value) { this.value = value; } - /** Return true if this CounterpartyTypesRestriction object is equal to o. */ + /** + * Return true if this CounterpartyTypesRestriction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -166,8 +172,8 @@ public boolean equals(Object o) { return false; } CounterpartyTypesRestriction counterpartyTypesRestriction = (CounterpartyTypesRestriction) o; - return Objects.equals(this.operation, counterpartyTypesRestriction.operation) - && Objects.equals(this.value, counterpartyTypesRestriction.value); + return Objects.equals(this.operation, counterpartyTypesRestriction.operation) && + Objects.equals(this.value, counterpartyTypesRestriction.value); } @Override @@ -186,7 +192,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -195,24 +202,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CounterpartyTypesRestriction given an JSON string * * @param jsonString JSON string * @return An instance of CounterpartyTypesRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CounterpartyTypesRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to CounterpartyTypesRestriction */ - public static CounterpartyTypesRestriction fromJson(String jsonString) - throws JsonProcessingException { + public static CounterpartyTypesRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CounterpartyTypesRestriction.class); } - - /** - * Convert an instance of CounterpartyTypesRestriction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CounterpartyTypesRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CountriesRestriction.java b/src/main/java/com/adyen/model/balanceplatform/CountriesRestriction.java index 78d780e09..ec02aeb68 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CountriesRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/CountriesRestriction.java @@ -2,28 +2,38 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CountriesRestriction */ +/** + * CountriesRestriction + */ @JsonPropertyOrder({ CountriesRestriction.JSON_PROPERTY_OPERATION, CountriesRestriction.JSON_PROPERTY_VALUE }) + public class CountriesRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -31,7 +41,8 @@ public class CountriesRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private List value; - public CountriesRestriction() {} + public CountriesRestriction() { + } /** * Defines how the condition must be evaluated. @@ -46,7 +57,6 @@ public CountriesRestriction operation(String operation) { /** * Defines how the condition must be evaluated. - * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -67,11 +77,9 @@ public void setOperation(String operation) { } /** - * List of two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country codes. + * List of two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. * - * @param value List of two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. + * @param value List of two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. * @return the current {@code CountriesRestriction} instance, allowing for method chaining */ public CountriesRestriction value(List value) { @@ -88,11 +96,8 @@ public CountriesRestriction addValueItem(String valueItem) { } /** - * List of two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country codes. - * - * @return value List of two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. + * List of two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. + * @return value List of two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,11 +106,9 @@ public List getValue() { } /** - * List of two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country codes. + * List of two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. * - * @param value List of two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. + * @param value List of two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,7 +116,9 @@ public void setValue(List value) { this.value = value; } - /** Return true if this CountriesRestriction object is equal to o. */ + /** + * Return true if this CountriesRestriction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -123,8 +128,8 @@ public boolean equals(Object o) { return false; } CountriesRestriction countriesRestriction = (CountriesRestriction) o; - return Objects.equals(this.operation, countriesRestriction.operation) - && Objects.equals(this.value, countriesRestriction.value); + return Objects.equals(this.operation, countriesRestriction.operation) && + Objects.equals(this.value, countriesRestriction.value); } @Override @@ -143,7 +148,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -152,23 +158,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CountriesRestriction given an JSON string * * @param jsonString JSON string * @return An instance of CountriesRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CountriesRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to CountriesRestriction */ public static CountriesRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CountriesRestriction.class); } - - /** - * Convert an instance of CountriesRestriction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CountriesRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CreateSweepConfigurationV2.java b/src/main/java/com/adyen/model/balanceplatform/CreateSweepConfigurationV2.java index 216b62e90..84064147e 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CreateSweepConfigurationV2.java +++ b/src/main/java/com/adyen/model/balanceplatform/CreateSweepConfigurationV2.java @@ -2,28 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.Amount; +import com.adyen.model.balanceplatform.SweepCounterparty; +import com.adyen.model.balanceplatform.SweepSchedule; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CreateSweepConfigurationV2 */ +/** + * CreateSweepConfigurationV2 + */ @JsonPropertyOrder({ CreateSweepConfigurationV2.JSON_PROPERTY_CATEGORY, CreateSweepConfigurationV2.JSON_PROPERTY_COUNTERPARTY, @@ -41,16 +49,13 @@ CreateSweepConfigurationV2.JSON_PROPERTY_TRIGGER_AMOUNT, CreateSweepConfigurationV2.JSON_PROPERTY_TYPE }) + public class CreateSweepConfigurationV2 { /** - * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a - * [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - * - **internal**: Transfer to another [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. Required when setting `priorities`. + * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. */ public enum CategoryEnum { + BANK(String.valueOf("bank")), INTERNAL(String.valueOf("internal")), @@ -62,7 +67,7 @@ public enum CategoryEnum { private String value; CategoryEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -83,11 +88,7 @@ public static CategoryEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "CategoryEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(CategoryEnum.values())); + LOG.warning("CategoryEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CategoryEnum.values())); return null; } } @@ -104,8 +105,11 @@ public static CategoryEnum fromValue(String value) { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; - /** Gets or Sets priorities */ + /** + * Gets or Sets priorities + */ public enum PrioritiesEnum { + CROSSBORDER(String.valueOf("crossBorder")), FAST(String.valueOf("fast")), @@ -123,7 +127,7 @@ public enum PrioritiesEnum { private String value; PrioritiesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -144,11 +148,7 @@ public static PrioritiesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PrioritiesEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PrioritiesEnum.values())); + LOG.warning("PrioritiesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PrioritiesEnum.values())); return null; } } @@ -156,8 +156,11 @@ public static PrioritiesEnum fromValue(String value) { public static final String JSON_PROPERTY_PRIORITIES = "priorities"; private List priorities; - /** The reason for disabling the sweep. */ + /** + * The reason for disabling the sweep. + */ public enum ReasonEnum { + ACCOUNTHIERARCHYNOTACTIVE(String.valueOf("accountHierarchyNotActive")), AMOUNTLIMITEXCEEDED(String.valueOf("amountLimitExceeded")), @@ -166,8 +169,7 @@ public enum ReasonEnum { APPROVED(String.valueOf("approved")), - BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE( - String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), + BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE(String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), COUNTERPARTYACCOUNTBLOCKED(String.valueOf("counterpartyAccountBlocked")), @@ -214,7 +216,7 @@ public enum ReasonEnum { private String value; ReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -235,11 +237,7 @@ public static ReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ReasonEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ReasonEnum.values())); + LOG.warning("ReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ReasonEnum.values())); return null; } } @@ -260,11 +258,10 @@ public static ReasonEnum fromValue(String value) { private SweepSchedule schedule; /** - * The status of the sweep. If not provided, by default, this is set to **active**. Possible - * values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on - * the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. */ public enum StatusEnum { + ACTIVE(String.valueOf("active")), INACTIVE(String.valueOf("inactive")); @@ -274,7 +271,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -295,11 +292,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -317,12 +310,10 @@ public static StatusEnum fromValue(String value) { private Amount triggerAmount; /** - * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not - * provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to - * a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source - * merchant account, transfer instrument, or balance account. + * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. */ public enum TypeEnum { + PULL(String.valueOf("pull")), PUSH(String.valueOf("push")); @@ -332,7 +323,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -353,11 +344,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -365,31 +352,23 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CreateSweepConfigurationV2() {} + public CreateSweepConfigurationV2() { + } @JsonCreator public CreateSweepConfigurationV2( - @JsonProperty(JSON_PROPERTY_REASON) ReasonEnum reason, - @JsonProperty(JSON_PROPERTY_REASON_DETAIL) String reasonDetail) { + @JsonProperty(JSON_PROPERTY_REASON) ReasonEnum reason, + @JsonProperty(JSON_PROPERTY_REASON_DETAIL) String reasonDetail + ) { this(); this.reason = reason; this.reasonDetail = reasonDetail; } /** - * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a - * [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - * - **internal**: Transfer to another [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. Required when setting `priorities`. + * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. * - * @param category The type of transfer that results from the sweep. Possible values: - **bank**: - * Sweep to a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - * - **internal**: Transfer to another [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. Required when setting `priorities`. + * @param category The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. * @return the current {@code CreateSweepConfigurationV2} instance, allowing for method chaining */ public CreateSweepConfigurationV2 category(CategoryEnum category) { @@ -398,19 +377,8 @@ public CreateSweepConfigurationV2 category(CategoryEnum category) { } /** - * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a - * [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - * - **internal**: Transfer to another [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. Required when setting `priorities`. - * - * @return category The type of transfer that results from the sweep. Possible values: - **bank**: - * Sweep to a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - * - **internal**: Transfer to another [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. Required when setting `priorities`. + * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. + * @return category The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -419,19 +387,9 @@ public CategoryEnum getCategory() { } /** - * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a - * [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - * - **internal**: Transfer to another [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. Required when setting `priorities`. + * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. * - * @param category The type of transfer that results from the sweep. Possible values: - **bank**: - * Sweep to a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - * - **internal**: Transfer to another [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. Required when setting `priorities`. + * @param category The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -442,7 +400,7 @@ public void setCategory(CategoryEnum category) { /** * counterparty * - * @param counterparty + * @param counterparty * @return the current {@code CreateSweepConfigurationV2} instance, allowing for method chaining */ public CreateSweepConfigurationV2 counterparty(SweepCounterparty counterparty) { @@ -452,8 +410,7 @@ public CreateSweepConfigurationV2 counterparty(SweepCounterparty counterparty) { /** * Get counterparty - * - * @return counterparty + * @return counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -464,7 +421,7 @@ public SweepCounterparty getCounterparty() { /** * counterparty * - * @param counterparty + * @param counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -473,15 +430,9 @@ public void setCounterparty(SweepCounterparty counterparty) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, - * **EUR**. The sweep currency must match any of the [balances - * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For - * example, **EUR**. The sweep currency must match any of the [balances - * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). * @return the current {@code CreateSweepConfigurationV2} instance, allowing for method chaining */ public CreateSweepConfigurationV2 currency(String currency) { @@ -490,15 +441,8 @@ public CreateSweepConfigurationV2 currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, - * **EUR**. The sweep currency must match any of the [balances - * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For - * example, **EUR**. The sweep currency must match any of the [balances - * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -507,15 +451,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, - * **EUR**. The sweep currency must match any of the [balances - * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For - * example, **EUR**. The sweep currency must match any of the [balances - * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -524,13 +462,9 @@ public void setCurrency(String currency) { } /** - * The message that will be used in the sweep transfer's description body with a maximum - * length of 140 characters. If the message is longer after replacing placeholders, the message - * will be cut off at 140 characters. + * The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. * - * @param description The message that will be used in the sweep transfer's description body - * with a maximum length of 140 characters. If the message is longer after replacing - * placeholders, the message will be cut off at 140 characters. + * @param description The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. * @return the current {@code CreateSweepConfigurationV2} instance, allowing for method chaining */ public CreateSweepConfigurationV2 description(String description) { @@ -539,13 +473,8 @@ public CreateSweepConfigurationV2 description(String description) { } /** - * The message that will be used in the sweep transfer's description body with a maximum - * length of 140 characters. If the message is longer after replacing placeholders, the message - * will be cut off at 140 characters. - * - * @return description The message that will be used in the sweep transfer's description body - * with a maximum length of 140 characters. If the message is longer after replacing - * placeholders, the message will be cut off at 140 characters. + * The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. + * @return description The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -554,13 +483,9 @@ public String getDescription() { } /** - * The message that will be used in the sweep transfer's description body with a maximum - * length of 140 characters. If the message is longer after replacing placeholders, the message - * will be cut off at 140 characters. + * The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. * - * @param description The message that will be used in the sweep transfer's description body - * with a maximum length of 140 characters. If the message is longer after replacing - * placeholders, the message will be cut off at 140 characters. + * @param description The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -569,50 +494,9 @@ public void setDescription(String description) { } /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent - * and the fees that you have to pay. You can provide multiple priorities, ordered by your - * preference. Adyen will try to pay out using the priorities in the given order. If the first - * priority is not currently supported or enabled for your platform, the system will try the next - * one, and so on. The request will be accepted as long as **at least one** of the provided - * priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if - * you provide `[\"wire\",\"regular\"]`, and `wire` is not - * supported but `regular` is, the request will still be accepted and processed. - * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to - * transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. - * * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the - * United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). Set `category` to **bank**. For more details, see optional priorities - * setup for - * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) - * or - * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). * - * @param priorities The list of priorities for the bank transfer. This sets the speed at which - * the transfer is sent and the fees that you have to pay. You can provide multiple - * priorities, ordered by your preference. Adyen will try to pay out using the priorities in - * the given order. If the first priority is not currently supported or enabled for your - * platform, the system will try the next one, and so on. The request will be accepted as long - * as **at least one** of the provided priorities is valid (i.e., supported by Adyen and - * activated for your platform). For example, if you provide - * `[\"wire\",\"regular\"]`, and `wire` is not - * supported but `regular` is, the request will still be accepted and processed. - * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster - * way to transfer funds, but the fees are higher. Recommended for high-priority, low-value - * transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. - * Recommended for high-priority, high-value transactions. * **instant**: for instant funds - * transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). Set `category` to **bank**. For more details, see optional - * priorities setup for - * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) - * or - * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * @param priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). * @return the current {@code CreateSweepConfigurationV2} instance, allowing for method chaining */ public CreateSweepConfigurationV2 priorities(List priorities) { @@ -629,50 +513,8 @@ public CreateSweepConfigurationV2 addPrioritiesItem(PrioritiesEnum prioritiesIte } /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent - * and the fees that you have to pay. You can provide multiple priorities, ordered by your - * preference. Adyen will try to pay out using the priorities in the given order. If the first - * priority is not currently supported or enabled for your platform, the system will try the next - * one, and so on. The request will be accepted as long as **at least one** of the provided - * priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if - * you provide `[\"wire\",\"regular\"]`, and `wire` is not - * supported but `regular` is, the request will still be accepted and processed. - * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to - * transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. - * * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the - * United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). Set `category` to **bank**. For more details, see optional priorities - * setup for - * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) - * or - * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). - * - * @return priorities The list of priorities for the bank transfer. This sets the speed at which - * the transfer is sent and the fees that you have to pay. You can provide multiple - * priorities, ordered by your preference. Adyen will try to pay out using the priorities in - * the given order. If the first priority is not currently supported or enabled for your - * platform, the system will try the next one, and so on. The request will be accepted as long - * as **at least one** of the provided priorities is valid (i.e., supported by Adyen and - * activated for your platform). For example, if you provide - * `[\"wire\",\"regular\"]`, and `wire` is not - * supported but `regular` is, the request will still be accepted and processed. - * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster - * way to transfer funds, but the fees are higher. Recommended for high-priority, low-value - * transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. - * Recommended for high-priority, high-value transactions. * **instant**: for instant funds - * transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). Set `category` to **bank**. For more details, see optional - * priorities setup for - * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) - * or - * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * @return priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). */ @JsonProperty(JSON_PROPERTY_PRIORITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -681,50 +523,9 @@ public List getPriorities() { } /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent - * and the fees that you have to pay. You can provide multiple priorities, ordered by your - * preference. Adyen will try to pay out using the priorities in the given order. If the first - * priority is not currently supported or enabled for your platform, the system will try the next - * one, and so on. The request will be accepted as long as **at least one** of the provided - * priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if - * you provide `[\"wire\",\"regular\"]`, and `wire` is not - * supported but `regular` is, the request will still be accepted and processed. - * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to - * transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. - * * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the - * United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). Set `category` to **bank**. For more details, see optional priorities - * setup for - * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) - * or - * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). * - * @param priorities The list of priorities for the bank transfer. This sets the speed at which - * the transfer is sent and the fees that you have to pay. You can provide multiple - * priorities, ordered by your preference. Adyen will try to pay out using the priorities in - * the given order. If the first priority is not currently supported or enabled for your - * platform, the system will try the next one, and so on. The request will be accepted as long - * as **at least one** of the provided priorities is valid (i.e., supported by Adyen and - * activated for your platform). For example, if you provide - * `[\"wire\",\"regular\"]`, and `wire` is not - * supported but `regular` is, the request will still be accepted and processed. - * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster - * way to transfer funds, but the fees are higher. Recommended for high-priority, low-value - * transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. - * Recommended for high-priority, high-value transactions. * **instant**: for instant funds - * transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). Set `category` to **bank**. For more details, see optional - * priorities setup for - * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) - * or - * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * @param priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). */ @JsonProperty(JSON_PROPERTY_PRIORITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -734,7 +535,6 @@ public void setPriorities(List priorities) { /** * The reason for disabling the sweep. - * * @return reason The reason for disabling the sweep. */ @JsonProperty(JSON_PROPERTY_REASON) @@ -743,9 +543,9 @@ public ReasonEnum getReason() { return reason; } + /** * The human readable reason for disabling the sweep. - * * @return reasonDetail The human readable reason for disabling the sweep. */ @JsonProperty(JSON_PROPERTY_REASON_DETAIL) @@ -754,6 +554,7 @@ public String getReasonDetail() { return reasonDetail; } + /** * Your reference for the sweep configuration. * @@ -767,7 +568,6 @@ public CreateSweepConfigurationV2 reference(String reference) { /** * Your reference for the sweep configuration. - * * @return reference Your reference for the sweep configuration. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -788,11 +588,9 @@ public void setReference(String reference) { } /** - * The reference sent to or received from the counterparty. Only alphanumeric characters are - * allowed. + * The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. * - * @param referenceForBeneficiary The reference sent to or received from the counterparty. Only - * alphanumeric characters are allowed. + * @param referenceForBeneficiary The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. * @return the current {@code CreateSweepConfigurationV2} instance, allowing for method chaining */ public CreateSweepConfigurationV2 referenceForBeneficiary(String referenceForBeneficiary) { @@ -801,11 +599,8 @@ public CreateSweepConfigurationV2 referenceForBeneficiary(String referenceForBen } /** - * The reference sent to or received from the counterparty. Only alphanumeric characters are - * allowed. - * - * @return referenceForBeneficiary The reference sent to or received from the counterparty. Only - * alphanumeric characters are allowed. + * The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. + * @return referenceForBeneficiary The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -814,11 +609,9 @@ public String getReferenceForBeneficiary() { } /** - * The reference sent to or received from the counterparty. Only alphanumeric characters are - * allowed. + * The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. * - * @param referenceForBeneficiary The reference sent to or received from the counterparty. Only - * alphanumeric characters are allowed. + * @param referenceForBeneficiary The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -829,7 +622,7 @@ public void setReferenceForBeneficiary(String referenceForBeneficiary) { /** * schedule * - * @param schedule + * @param schedule * @return the current {@code CreateSweepConfigurationV2} instance, allowing for method chaining */ public CreateSweepConfigurationV2 schedule(SweepSchedule schedule) { @@ -839,8 +632,7 @@ public CreateSweepConfigurationV2 schedule(SweepSchedule schedule) { /** * Get schedule - * - * @return schedule + * @return schedule */ @JsonProperty(JSON_PROPERTY_SCHEDULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -851,7 +643,7 @@ public SweepSchedule getSchedule() { /** * schedule * - * @param schedule + * @param schedule */ @JsonProperty(JSON_PROPERTY_SCHEDULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -860,14 +652,9 @@ public void setSchedule(SweepSchedule schedule) { } /** - * The status of the sweep. If not provided, by default, this is set to **active**. Possible - * values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on - * the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. * - * @param status The status of the sweep. If not provided, by default, this is set to **active**. - * Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed - * out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be - * triggered. + * @param status The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. * @return the current {@code CreateSweepConfigurationV2} instance, allowing for method chaining */ public CreateSweepConfigurationV2 status(StatusEnum status) { @@ -876,14 +663,8 @@ public CreateSweepConfigurationV2 status(StatusEnum status) { } /** - * The status of the sweep. If not provided, by default, this is set to **active**. Possible - * values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on - * the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. - * - * @return status The status of the sweep. If not provided, by default, this is set to **active**. - * Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed - * out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be - * triggered. + * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * @return status The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -892,14 +673,9 @@ public StatusEnum getStatus() { } /** - * The status of the sweep. If not provided, by default, this is set to **active**. Possible - * values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on - * the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. * - * @param status The status of the sweep. If not provided, by default, this is set to **active**. - * Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed - * out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be - * triggered. + * @param status The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -910,7 +686,7 @@ public void setStatus(StatusEnum status) { /** * sweepAmount * - * @param sweepAmount + * @param sweepAmount * @return the current {@code CreateSweepConfigurationV2} instance, allowing for method chaining */ public CreateSweepConfigurationV2 sweepAmount(Amount sweepAmount) { @@ -920,8 +696,7 @@ public CreateSweepConfigurationV2 sweepAmount(Amount sweepAmount) { /** * Get sweepAmount - * - * @return sweepAmount + * @return sweepAmount */ @JsonProperty(JSON_PROPERTY_SWEEP_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -932,7 +707,7 @@ public Amount getSweepAmount() { /** * sweepAmount * - * @param sweepAmount + * @param sweepAmount */ @JsonProperty(JSON_PROPERTY_SWEEP_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -943,7 +718,7 @@ public void setSweepAmount(Amount sweepAmount) { /** * targetAmount * - * @param targetAmount + * @param targetAmount * @return the current {@code CreateSweepConfigurationV2} instance, allowing for method chaining */ public CreateSweepConfigurationV2 targetAmount(Amount targetAmount) { @@ -953,8 +728,7 @@ public CreateSweepConfigurationV2 targetAmount(Amount targetAmount) { /** * Get targetAmount - * - * @return targetAmount + * @return targetAmount */ @JsonProperty(JSON_PROPERTY_TARGET_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -965,7 +739,7 @@ public Amount getTargetAmount() { /** * targetAmount * - * @param targetAmount + * @param targetAmount */ @JsonProperty(JSON_PROPERTY_TARGET_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -976,7 +750,7 @@ public void setTargetAmount(Amount targetAmount) { /** * triggerAmount * - * @param triggerAmount + * @param triggerAmount * @return the current {@code CreateSweepConfigurationV2} instance, allowing for method chaining */ public CreateSweepConfigurationV2 triggerAmount(Amount triggerAmount) { @@ -986,8 +760,7 @@ public CreateSweepConfigurationV2 triggerAmount(Amount triggerAmount) { /** * Get triggerAmount - * - * @return triggerAmount + * @return triggerAmount */ @JsonProperty(JSON_PROPERTY_TRIGGER_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -998,7 +771,7 @@ public Amount getTriggerAmount() { /** * triggerAmount * - * @param triggerAmount + * @param triggerAmount */ @JsonProperty(JSON_PROPERTY_TRIGGER_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1007,15 +780,9 @@ public void setTriggerAmount(Amount triggerAmount) { } /** - * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not - * provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to - * a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source - * merchant account, transfer instrument, or balance account. + * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. * - * @param type The direction of sweep, whether pushing out or pulling in funds to the balance - * account. If not provided, by default, this is set to **push**. Possible values: * **push**: - * _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull - * in funds_ from a source merchant account, transfer instrument, or balance account. + * @param type The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. * @return the current {@code CreateSweepConfigurationV2} instance, allowing for method chaining */ public CreateSweepConfigurationV2 type(TypeEnum type) { @@ -1024,15 +791,8 @@ public CreateSweepConfigurationV2 type(TypeEnum type) { } /** - * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not - * provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to - * a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source - * merchant account, transfer instrument, or balance account. - * - * @return type The direction of sweep, whether pushing out or pulling in funds to the balance - * account. If not provided, by default, this is set to **push**. Possible values: * **push**: - * _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull - * in funds_ from a source merchant account, transfer instrument, or balance account. + * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. + * @return type The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1041,15 +801,9 @@ public TypeEnum getType() { } /** - * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not - * provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to - * a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source - * merchant account, transfer instrument, or balance account. + * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. * - * @param type The direction of sweep, whether pushing out or pulling in funds to the balance - * account. If not provided, by default, this is set to **push**. Possible values: * **push**: - * _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull - * in funds_ from a source merchant account, transfer instrument, or balance account. + * @param type The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1057,7 +811,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this CreateSweepConfigurationV2 object is equal to o. */ + /** + * Return true if this CreateSweepConfigurationV2 object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -1067,42 +823,26 @@ public boolean equals(Object o) { return false; } CreateSweepConfigurationV2 createSweepConfigurationV2 = (CreateSweepConfigurationV2) o; - return Objects.equals(this.category, createSweepConfigurationV2.category) - && Objects.equals(this.counterparty, createSweepConfigurationV2.counterparty) - && Objects.equals(this.currency, createSweepConfigurationV2.currency) - && Objects.equals(this.description, createSweepConfigurationV2.description) - && Objects.equals(this.priorities, createSweepConfigurationV2.priorities) - && Objects.equals(this.reason, createSweepConfigurationV2.reason) - && Objects.equals(this.reasonDetail, createSweepConfigurationV2.reasonDetail) - && Objects.equals(this.reference, createSweepConfigurationV2.reference) - && Objects.equals( - this.referenceForBeneficiary, createSweepConfigurationV2.referenceForBeneficiary) - && Objects.equals(this.schedule, createSweepConfigurationV2.schedule) - && Objects.equals(this.status, createSweepConfigurationV2.status) - && Objects.equals(this.sweepAmount, createSweepConfigurationV2.sweepAmount) - && Objects.equals(this.targetAmount, createSweepConfigurationV2.targetAmount) - && Objects.equals(this.triggerAmount, createSweepConfigurationV2.triggerAmount) - && Objects.equals(this.type, createSweepConfigurationV2.type); + return Objects.equals(this.category, createSweepConfigurationV2.category) && + Objects.equals(this.counterparty, createSweepConfigurationV2.counterparty) && + Objects.equals(this.currency, createSweepConfigurationV2.currency) && + Objects.equals(this.description, createSweepConfigurationV2.description) && + Objects.equals(this.priorities, createSweepConfigurationV2.priorities) && + Objects.equals(this.reason, createSweepConfigurationV2.reason) && + Objects.equals(this.reasonDetail, createSweepConfigurationV2.reasonDetail) && + Objects.equals(this.reference, createSweepConfigurationV2.reference) && + Objects.equals(this.referenceForBeneficiary, createSweepConfigurationV2.referenceForBeneficiary) && + Objects.equals(this.schedule, createSweepConfigurationV2.schedule) && + Objects.equals(this.status, createSweepConfigurationV2.status) && + Objects.equals(this.sweepAmount, createSweepConfigurationV2.sweepAmount) && + Objects.equals(this.targetAmount, createSweepConfigurationV2.targetAmount) && + Objects.equals(this.triggerAmount, createSweepConfigurationV2.triggerAmount) && + Objects.equals(this.type, createSweepConfigurationV2.type); } @Override public int hashCode() { - return Objects.hash( - category, - counterparty, - currency, - description, - priorities, - reason, - reasonDetail, - reference, - referenceForBeneficiary, - schedule, - status, - sweepAmount, - targetAmount, - triggerAmount, - type); + return Objects.hash(category, counterparty, currency, description, priorities, reason, reasonDetail, reference, referenceForBeneficiary, schedule, status, sweepAmount, targetAmount, triggerAmount, type); } @Override @@ -1117,9 +857,7 @@ public String toString() { sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" reasonDetail: ").append(toIndentedString(reasonDetail)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); - sb.append(" referenceForBeneficiary: ") - .append(toIndentedString(referenceForBeneficiary)) - .append("\n"); + sb.append(" referenceForBeneficiary: ").append(toIndentedString(referenceForBeneficiary)).append("\n"); sb.append(" schedule: ").append(toIndentedString(schedule)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" sweepAmount: ").append(toIndentedString(sweepAmount)).append("\n"); @@ -1131,7 +869,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1140,24 +879,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CreateSweepConfigurationV2 given an JSON string * * @param jsonString JSON string * @return An instance of CreateSweepConfigurationV2 - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreateSweepConfigurationV2 + * @throws JsonProcessingException if the JSON string is invalid with respect to CreateSweepConfigurationV2 */ - public static CreateSweepConfigurationV2 fromJson(String jsonString) - throws JsonProcessingException { + public static CreateSweepConfigurationV2 fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateSweepConfigurationV2.class); } - - /** - * Convert an instance of CreateSweepConfigurationV2 to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CreateSweepConfigurationV2 to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/DKLocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/DKLocalAccountIdentification.java index d71699bac..3be11e816 100644 --- a/src/main/java/com/adyen/model/balanceplatform/DKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/DKLocalAccountIdentification.java @@ -2,31 +2,37 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** DKLocalAccountIdentification */ + +/** + * DKLocalAccountIdentification + */ @JsonPropertyOrder({ DKLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, DKLocalAccountIdentification.JSON_PROPERTY_BANK_CODE, DKLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class DKLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -34,8 +40,11 @@ public class DKLocalAccountIdentification { public static final String JSON_PROPERTY_BANK_CODE = "bankCode"; private String bankCode; - /** **dkLocal** */ + /** + * **dkLocal** + */ public enum TypeEnum { + DKLOCAL(String.valueOf("dkLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -43,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -76,13 +81,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public DKLocalAccountIdentification() {} + public DKLocalAccountIdentification() { + } /** * The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). * - * @param accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or - * whitespace). + * @param accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). * @return the current {@code DKLocalAccountIdentification} instance, allowing for method chaining */ public DKLocalAccountIdentification accountNumber(String accountNumber) { @@ -92,9 +97,7 @@ public DKLocalAccountIdentification accountNumber(String accountNumber) { /** * The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). - * - * @return accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or - * whitespace). + * @return accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,8 +108,7 @@ public String getAccountNumber() { /** * The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). * - * @param accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or - * whitespace). + * @param accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,9 +129,7 @@ public DKLocalAccountIdentification bankCode(String bankCode) { /** * The 4-digit bank code (Registreringsnummer) (without separators or whitespace). - * - * @return bankCode The 4-digit bank code (Registreringsnummer) (without separators or - * whitespace). + * @return bankCode The 4-digit bank code (Registreringsnummer) (without separators or whitespace). */ @JsonProperty(JSON_PROPERTY_BANK_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,7 +161,6 @@ public DKLocalAccountIdentification type(TypeEnum type) { /** * **dkLocal** - * * @return type **dkLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -181,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this DKLocalAccountIdentification object is equal to o. */ + /** + * Return true if this DKLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -191,9 +192,9 @@ public boolean equals(Object o) { return false; } DKLocalAccountIdentification dkLocalAccountIdentification = (DKLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, dkLocalAccountIdentification.accountNumber) - && Objects.equals(this.bankCode, dkLocalAccountIdentification.bankCode) - && Objects.equals(this.type, dkLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, dkLocalAccountIdentification.accountNumber) && + Objects.equals(this.bankCode, dkLocalAccountIdentification.bankCode) && + Objects.equals(this.type, dkLocalAccountIdentification.type); } @Override @@ -213,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -222,24 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DKLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of DKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DKLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to DKLocalAccountIdentification */ - public static DKLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static DKLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DKLocalAccountIdentification.class); } - - /** - * Convert an instance of DKLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DKLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/DayOfWeekRestriction.java b/src/main/java/com/adyen/model/balanceplatform/DayOfWeekRestriction.java index 175e26def..7c312efa6 100644 --- a/src/main/java/com/adyen/model/balanceplatform/DayOfWeekRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/DayOfWeekRestriction.java @@ -2,38 +2,47 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** DayOfWeekRestriction */ +/** + * DayOfWeekRestriction + */ @JsonPropertyOrder({ DayOfWeekRestriction.JSON_PROPERTY_OPERATION, DayOfWeekRestriction.JSON_PROPERTY_VALUE }) + public class DayOfWeekRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; - /** Gets or Sets value */ + /** + * Gets or Sets value + */ public enum ValueEnum { + FRIDAY(String.valueOf("friday")), MONDAY(String.valueOf("monday")), @@ -53,7 +62,7 @@ public enum ValueEnum { private String value; ValueEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -74,11 +83,7 @@ public static ValueEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ValueEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ValueEnum.values())); + LOG.warning("ValueEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ValueEnum.values())); return null; } } @@ -86,7 +91,8 @@ public static ValueEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUE = "value"; private List value; - public DayOfWeekRestriction() {} + public DayOfWeekRestriction() { + } /** * Defines how the condition must be evaluated. @@ -101,7 +107,6 @@ public DayOfWeekRestriction operation(String operation) { /** * Defines how the condition must be evaluated. - * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -122,11 +127,9 @@ public void setOperation(String operation) { } /** - * List of days of the week. Possible values: **monday**, **tuesday**, **wednesday**, - * **thursday**, **friday**, **saturday**, **sunday**. + * List of days of the week. Possible values: **monday**, **tuesday**, **wednesday**, **thursday**, **friday**, **saturday**, **sunday**. * - * @param value List of days of the week. Possible values: **monday**, **tuesday**, **wednesday**, - * **thursday**, **friday**, **saturday**, **sunday**. + * @param value List of days of the week. Possible values: **monday**, **tuesday**, **wednesday**, **thursday**, **friday**, **saturday**, **sunday**. * @return the current {@code DayOfWeekRestriction} instance, allowing for method chaining */ public DayOfWeekRestriction value(List value) { @@ -143,11 +146,8 @@ public DayOfWeekRestriction addValueItem(ValueEnum valueItem) { } /** - * List of days of the week. Possible values: **monday**, **tuesday**, **wednesday**, - * **thursday**, **friday**, **saturday**, **sunday**. - * - * @return value List of days of the week. Possible values: **monday**, **tuesday**, - * **wednesday**, **thursday**, **friday**, **saturday**, **sunday**. + * List of days of the week. Possible values: **monday**, **tuesday**, **wednesday**, **thursday**, **friday**, **saturday**, **sunday**. + * @return value List of days of the week. Possible values: **monday**, **tuesday**, **wednesday**, **thursday**, **friday**, **saturday**, **sunday**. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,11 +156,9 @@ public List getValue() { } /** - * List of days of the week. Possible values: **monday**, **tuesday**, **wednesday**, - * **thursday**, **friday**, **saturday**, **sunday**. + * List of days of the week. Possible values: **monday**, **tuesday**, **wednesday**, **thursday**, **friday**, **saturday**, **sunday**. * - * @param value List of days of the week. Possible values: **monday**, **tuesday**, **wednesday**, - * **thursday**, **friday**, **saturday**, **sunday**. + * @param value List of days of the week. Possible values: **monday**, **tuesday**, **wednesday**, **thursday**, **friday**, **saturday**, **sunday**. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,7 +166,9 @@ public void setValue(List value) { this.value = value; } - /** Return true if this DayOfWeekRestriction object is equal to o. */ + /** + * Return true if this DayOfWeekRestriction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -178,8 +178,8 @@ public boolean equals(Object o) { return false; } DayOfWeekRestriction dayOfWeekRestriction = (DayOfWeekRestriction) o; - return Objects.equals(this.operation, dayOfWeekRestriction.operation) - && Objects.equals(this.value, dayOfWeekRestriction.value); + return Objects.equals(this.operation, dayOfWeekRestriction.operation) && + Objects.equals(this.value, dayOfWeekRestriction.value); } @Override @@ -198,7 +198,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -207,23 +208,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DayOfWeekRestriction given an JSON string * * @param jsonString JSON string * @return An instance of DayOfWeekRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DayOfWeekRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to DayOfWeekRestriction */ public static DayOfWeekRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DayOfWeekRestriction.class); } - - /** - * Convert an instance of DayOfWeekRestriction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DayOfWeekRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/DefaultErrorResponseEntity.java b/src/main/java/com/adyen/model/balanceplatform/DefaultErrorResponseEntity.java index a83760921..5c26c14f3 100644 --- a/src/main/java/com/adyen/model/balanceplatform/DefaultErrorResponseEntity.java +++ b/src/main/java/com/adyen/model/balanceplatform/DefaultErrorResponseEntity.java @@ -2,24 +2,34 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.InvalidField; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** Standardized error response following RFC-7807 format */ +/** + * Standardized error response following RFC-7807 format + */ @JsonPropertyOrder({ DefaultErrorResponseEntity.JSON_PROPERTY_DETAIL, DefaultErrorResponseEntity.JSON_PROPERTY_ERROR_CODE, @@ -30,6 +40,7 @@ DefaultErrorResponseEntity.JSON_PROPERTY_TITLE, DefaultErrorResponseEntity.JSON_PROPERTY_TYPE }) + public class DefaultErrorResponseEntity { public static final String JSON_PROPERTY_DETAIL = "detail"; private String detail; @@ -55,7 +66,8 @@ public class DefaultErrorResponseEntity { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public DefaultErrorResponseEntity() {} + public DefaultErrorResponseEntity() { + } /** * A human-readable explanation specific to this occurrence of the problem. @@ -70,7 +82,6 @@ public DefaultErrorResponseEntity detail(String detail) { /** * A human-readable explanation specific to this occurrence of the problem. - * * @return detail A human-readable explanation specific to this occurrence of the problem. */ @JsonProperty(JSON_PROPERTY_DETAIL) @@ -103,7 +114,6 @@ public DefaultErrorResponseEntity errorCode(String errorCode) { /** * Unique business error code. - * * @return errorCode Unique business error code. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -136,7 +146,6 @@ public DefaultErrorResponseEntity instance(String instance) { /** * A URI that identifies the specific occurrence of the problem if applicable. - * * @return instance A URI that identifies the specific occurrence of the problem if applicable. */ @JsonProperty(JSON_PROPERTY_INSTANCE) @@ -177,7 +186,6 @@ public DefaultErrorResponseEntity addInvalidFieldsItem(InvalidField invalidField /** * Array of fields with validation errors when applicable. - * * @return invalidFields Array of fields with validation errors when applicable. */ @JsonProperty(JSON_PROPERTY_INVALID_FIELDS) @@ -210,7 +218,6 @@ public DefaultErrorResponseEntity requestId(String requestId) { /** * The unique reference for the request. - * * @return requestId The unique reference for the request. */ @JsonProperty(JSON_PROPERTY_REQUEST_ID) @@ -243,7 +250,6 @@ public DefaultErrorResponseEntity status(Integer status) { /** * The HTTP status code. - * * @return status The HTTP status code. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -276,7 +282,6 @@ public DefaultErrorResponseEntity title(String title) { /** * A short, human-readable summary of the problem type. - * * @return title A short, human-readable summary of the problem type. */ @JsonProperty(JSON_PROPERTY_TITLE) @@ -297,11 +302,9 @@ public void setTitle(String title) { } /** - * A URI that identifies the validation error type. It points to human-readable documentation for - * the problem type. + * A URI that identifies the validation error type. It points to human-readable documentation for the problem type. * - * @param type A URI that identifies the validation error type. It points to human-readable - * documentation for the problem type. + * @param type A URI that identifies the validation error type. It points to human-readable documentation for the problem type. * @return the current {@code DefaultErrorResponseEntity} instance, allowing for method chaining */ public DefaultErrorResponseEntity type(String type) { @@ -310,11 +313,8 @@ public DefaultErrorResponseEntity type(String type) { } /** - * A URI that identifies the validation error type. It points to human-readable documentation for - * the problem type. - * - * @return type A URI that identifies the validation error type. It points to human-readable - * documentation for the problem type. + * A URI that identifies the validation error type. It points to human-readable documentation for the problem type. + * @return type A URI that identifies the validation error type. It points to human-readable documentation for the problem type. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -323,11 +323,9 @@ public String getType() { } /** - * A URI that identifies the validation error type. It points to human-readable documentation for - * the problem type. + * A URI that identifies the validation error type. It points to human-readable documentation for the problem type. * - * @param type A URI that identifies the validation error type. It points to human-readable - * documentation for the problem type. + * @param type A URI that identifies the validation error type. It points to human-readable documentation for the problem type. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -335,7 +333,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this DefaultErrorResponseEntity object is equal to o. */ + /** + * Return true if this DefaultErrorResponseEntity object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -345,14 +345,14 @@ public boolean equals(Object o) { return false; } DefaultErrorResponseEntity defaultErrorResponseEntity = (DefaultErrorResponseEntity) o; - return Objects.equals(this.detail, defaultErrorResponseEntity.detail) - && Objects.equals(this.errorCode, defaultErrorResponseEntity.errorCode) - && Objects.equals(this.instance, defaultErrorResponseEntity.instance) - && Objects.equals(this.invalidFields, defaultErrorResponseEntity.invalidFields) - && Objects.equals(this.requestId, defaultErrorResponseEntity.requestId) - && Objects.equals(this.status, defaultErrorResponseEntity.status) - && Objects.equals(this.title, defaultErrorResponseEntity.title) - && Objects.equals(this.type, defaultErrorResponseEntity.type); + return Objects.equals(this.detail, defaultErrorResponseEntity.detail) && + Objects.equals(this.errorCode, defaultErrorResponseEntity.errorCode) && + Objects.equals(this.instance, defaultErrorResponseEntity.instance) && + Objects.equals(this.invalidFields, defaultErrorResponseEntity.invalidFields) && + Objects.equals(this.requestId, defaultErrorResponseEntity.requestId) && + Objects.equals(this.status, defaultErrorResponseEntity.status) && + Objects.equals(this.title, defaultErrorResponseEntity.title) && + Objects.equals(this.type, defaultErrorResponseEntity.type); } @Override @@ -377,7 +377,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -386,24 +387,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DefaultErrorResponseEntity given an JSON string * * @param jsonString JSON string * @return An instance of DefaultErrorResponseEntity - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DefaultErrorResponseEntity + * @throws JsonProcessingException if the JSON string is invalid with respect to DefaultErrorResponseEntity */ - public static DefaultErrorResponseEntity fromJson(String jsonString) - throws JsonProcessingException { + public static DefaultErrorResponseEntity fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DefaultErrorResponseEntity.class); } - - /** - * Convert an instance of DefaultErrorResponseEntity to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DefaultErrorResponseEntity to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/DelegatedAuthenticationData.java b/src/main/java/com/adyen/model/balanceplatform/DelegatedAuthenticationData.java index eea5efe3a..a999cfb66 100644 --- a/src/main/java/com/adyen/model/balanceplatform/DelegatedAuthenticationData.java +++ b/src/main/java/com/adyen/model/balanceplatform/DelegatedAuthenticationData.java @@ -2,35 +2,46 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** DelegatedAuthenticationData */ -@JsonPropertyOrder({DelegatedAuthenticationData.JSON_PROPERTY_SDK_OUTPUT}) + +/** + * DelegatedAuthenticationData + */ +@JsonPropertyOrder({ + DelegatedAuthenticationData.JSON_PROPERTY_SDK_OUTPUT +}) + public class DelegatedAuthenticationData { public static final String JSON_PROPERTY_SDK_OUTPUT = "sdkOutput"; private String sdkOutput; - public DelegatedAuthenticationData() {} + public DelegatedAuthenticationData() { + } /** - * A base64-encoded block with the data required to register the SCA device. You obtain this - * information by using our authentication SDK. + * A base64-encoded block with the data required to register the SCA device. You obtain this information by using our authentication SDK. * - * @param sdkOutput A base64-encoded block with the data required to register the SCA device. You - * obtain this information by using our authentication SDK. + * @param sdkOutput A base64-encoded block with the data required to register the SCA device. You obtain this information by using our authentication SDK. * @return the current {@code DelegatedAuthenticationData} instance, allowing for method chaining */ public DelegatedAuthenticationData sdkOutput(String sdkOutput) { @@ -39,11 +50,8 @@ public DelegatedAuthenticationData sdkOutput(String sdkOutput) { } /** - * A base64-encoded block with the data required to register the SCA device. You obtain this - * information by using our authentication SDK. - * - * @return sdkOutput A base64-encoded block with the data required to register the SCA device. You - * obtain this information by using our authentication SDK. + * A base64-encoded block with the data required to register the SCA device. You obtain this information by using our authentication SDK. + * @return sdkOutput A base64-encoded block with the data required to register the SCA device. You obtain this information by using our authentication SDK. */ @JsonProperty(JSON_PROPERTY_SDK_OUTPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -52,11 +60,9 @@ public String getSdkOutput() { } /** - * A base64-encoded block with the data required to register the SCA device. You obtain this - * information by using our authentication SDK. + * A base64-encoded block with the data required to register the SCA device. You obtain this information by using our authentication SDK. * - * @param sdkOutput A base64-encoded block with the data required to register the SCA device. You - * obtain this information by using our authentication SDK. + * @param sdkOutput A base64-encoded block with the data required to register the SCA device. You obtain this information by using our authentication SDK. */ @JsonProperty(JSON_PROPERTY_SDK_OUTPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,7 +70,9 @@ public void setSdkOutput(String sdkOutput) { this.sdkOutput = sdkOutput; } - /** Return true if this DelegatedAuthenticationData object is equal to o. */ + /** + * Return true if this DelegatedAuthenticationData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -92,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -101,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DelegatedAuthenticationData given an JSON string * * @param jsonString JSON string * @return An instance of DelegatedAuthenticationData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DelegatedAuthenticationData + * @throws JsonProcessingException if the JSON string is invalid with respect to DelegatedAuthenticationData */ - public static DelegatedAuthenticationData fromJson(String jsonString) - throws JsonProcessingException { + public static DelegatedAuthenticationData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DelegatedAuthenticationData.class); } - - /** - * Convert an instance of DelegatedAuthenticationData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DelegatedAuthenticationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/DeliveryAddress.java b/src/main/java/com/adyen/model/balanceplatform/DeliveryAddress.java index a83f678b9..a32a72678 100644 --- a/src/main/java/com/adyen/model/balanceplatform/DeliveryAddress.java +++ b/src/main/java/com/adyen/model/balanceplatform/DeliveryAddress.java @@ -2,22 +2,31 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** DeliveryAddress */ + +/** + * DeliveryAddress + */ @JsonPropertyOrder({ DeliveryAddress.JSON_PROPERTY_CITY, DeliveryAddress.JSON_PROPERTY_COUNTRY, @@ -27,6 +36,7 @@ DeliveryAddress.JSON_PROPERTY_POSTAL_CODE, DeliveryAddress.JSON_PROPERTY_STATE_OR_PROVINCE }) + public class DeliveryAddress { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -49,7 +59,8 @@ public class DeliveryAddress { public static final String JSON_PROPERTY_STATE_OR_PROVINCE = "stateOrProvince"; private String stateOrProvince; - public DeliveryAddress() {} + public DeliveryAddress() { + } /** * The name of the city. @@ -64,7 +75,6 @@ public DeliveryAddress city(String city) { /** * The name of the city. - * * @return city The name of the city. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -85,13 +95,9 @@ public void setCity(String city) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't - * know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If - * you don't know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress country(String country) { @@ -100,13 +106,8 @@ public DeliveryAddress country(String country) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't - * know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. - * - * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If - * you don't know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,13 +116,9 @@ public String getCountry() { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't - * know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If - * you don't know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -130,11 +127,9 @@ public void setCountry(String country) { } /** - * The name of the street. Do not include the number of the building. For example, if the address - * is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. + * The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. * - * @param line1 The name of the street. Do not include the number of the building. For example, if - * the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. + * @param line1 The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress line1(String line1) { @@ -143,11 +138,8 @@ public DeliveryAddress line1(String line1) { } /** - * The name of the street. Do not include the number of the building. For example, if the address - * is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. - * - * @return line1 The name of the street. Do not include the number of the building. For example, - * if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. + * The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. + * @return line1 The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. */ @JsonProperty(JSON_PROPERTY_LINE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,11 +148,9 @@ public String getLine1() { } /** - * The name of the street. Do not include the number of the building. For example, if the address - * is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. + * The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. * - * @param line1 The name of the street. Do not include the number of the building. For example, if - * the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. + * @param line1 The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. */ @JsonProperty(JSON_PROPERTY_LINE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,11 +159,9 @@ public void setLine1(String line1) { } /** - * The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide - * **6-50**. + * The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**. * - * @param line2 The number of the building. For example, if the address is Simon Carmiggeltstraat - * 6-50, provide **6-50**. + * @param line2 The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**. * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress line2(String line2) { @@ -182,11 +170,8 @@ public DeliveryAddress line2(String line2) { } /** - * The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide - * **6-50**. - * - * @return line2 The number of the building. For example, if the address is Simon Carmiggeltstraat - * 6-50, provide **6-50**. + * The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**. + * @return line2 The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**. */ @JsonProperty(JSON_PROPERTY_LINE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,11 +180,9 @@ public String getLine2() { } /** - * The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide - * **6-50**. + * The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**. * - * @param line2 The number of the building. For example, if the address is Simon Carmiggeltstraat - * 6-50, provide **6-50**. + * @param line2 The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**. */ @JsonProperty(JSON_PROPERTY_LINE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -220,7 +203,6 @@ public DeliveryAddress line3(String line3) { /** * Additional information about the delivery address. - * * @return line3 Additional information about the delivery address. */ @JsonProperty(JSON_PROPERTY_LINE3) @@ -241,11 +223,9 @@ public void setLine3(String line3) { } /** - * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an - * address in all other countries. + * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. * - * @param postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 - * characters for an address in all other countries. + * @param postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress postalCode(String postalCode) { @@ -254,11 +234,8 @@ public DeliveryAddress postalCode(String postalCode) { } /** - * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an - * address in all other countries. - * - * @return postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 - * characters for an address in all other countries. + * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. + * @return postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -267,11 +244,9 @@ public String getPostalCode() { } /** - * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an - * address in all other countries. + * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. * - * @param postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 - * characters for an address in all other countries. + * @param postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -280,12 +255,9 @@ public void setPostalCode(String postalCode) { } /** - * The state or province code, maximum 3 characters. For example, **CA** for California in the US - * or **ON** for Ontario in Canada. > Required for the US and Canada. + * The state or province code, maximum 3 characters. For example, **CA** for California in the US or **ON** for Ontario in Canada. > Required for the US and Canada. * - * @param stateOrProvince The state or province code, maximum 3 characters. For example, **CA** - * for California in the US or **ON** for Ontario in Canada. > Required for the US and - * Canada. + * @param stateOrProvince The state or province code, maximum 3 characters. For example, **CA** for California in the US or **ON** for Ontario in Canada. > Required for the US and Canada. * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress stateOrProvince(String stateOrProvince) { @@ -294,12 +266,8 @@ public DeliveryAddress stateOrProvince(String stateOrProvince) { } /** - * The state or province code, maximum 3 characters. For example, **CA** for California in the US - * or **ON** for Ontario in Canada. > Required for the US and Canada. - * - * @return stateOrProvince The state or province code, maximum 3 characters. For example, **CA** - * for California in the US or **ON** for Ontario in Canada. > Required for the US and - * Canada. + * The state or province code, maximum 3 characters. For example, **CA** for California in the US or **ON** for Ontario in Canada. > Required for the US and Canada. + * @return stateOrProvince The state or province code, maximum 3 characters. For example, **CA** for California in the US or **ON** for Ontario in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -308,12 +276,9 @@ public String getStateOrProvince() { } /** - * The state or province code, maximum 3 characters. For example, **CA** for California in the US - * or **ON** for Ontario in Canada. > Required for the US and Canada. + * The state or province code, maximum 3 characters. For example, **CA** for California in the US or **ON** for Ontario in Canada. > Required for the US and Canada. * - * @param stateOrProvince The state or province code, maximum 3 characters. For example, **CA** - * for California in the US or **ON** for Ontario in Canada. > Required for the US and - * Canada. + * @param stateOrProvince The state or province code, maximum 3 characters. For example, **CA** for California in the US or **ON** for Ontario in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -321,7 +286,9 @@ public void setStateOrProvince(String stateOrProvince) { this.stateOrProvince = stateOrProvince; } - /** Return true if this DeliveryAddress object is equal to o. */ + /** + * Return true if this DeliveryAddress object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -331,13 +298,13 @@ public boolean equals(Object o) { return false; } DeliveryAddress deliveryAddress = (DeliveryAddress) o; - return Objects.equals(this.city, deliveryAddress.city) - && Objects.equals(this.country, deliveryAddress.country) - && Objects.equals(this.line1, deliveryAddress.line1) - && Objects.equals(this.line2, deliveryAddress.line2) - && Objects.equals(this.line3, deliveryAddress.line3) - && Objects.equals(this.postalCode, deliveryAddress.postalCode) - && Objects.equals(this.stateOrProvince, deliveryAddress.stateOrProvince); + return Objects.equals(this.city, deliveryAddress.city) && + Objects.equals(this.country, deliveryAddress.country) && + Objects.equals(this.line1, deliveryAddress.line1) && + Objects.equals(this.line2, deliveryAddress.line2) && + Objects.equals(this.line3, deliveryAddress.line3) && + Objects.equals(this.postalCode, deliveryAddress.postalCode) && + Objects.equals(this.stateOrProvince, deliveryAddress.stateOrProvince); } @Override @@ -361,7 +328,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -370,7 +338,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DeliveryAddress given an JSON string * * @param jsonString JSON string @@ -380,12 +348,11 @@ private String toIndentedString(Object o) { public static DeliveryAddress fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DeliveryAddress.class); } - - /** - * Convert an instance of DeliveryAddress to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DeliveryAddress to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/DeliveryContact.java b/src/main/java/com/adyen/model/balanceplatform/DeliveryContact.java index 2060508f9..e47e2061a 100644 --- a/src/main/java/com/adyen/model/balanceplatform/DeliveryContact.java +++ b/src/main/java/com/adyen/model/balanceplatform/DeliveryContact.java @@ -2,22 +2,34 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.DeliveryAddress; +import com.adyen.model.balanceplatform.Name; +import com.adyen.model.balanceplatform.PhoneNumber; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** DeliveryContact */ + +/** + * DeliveryContact + */ @JsonPropertyOrder({ DeliveryContact.JSON_PROPERTY_ADDRESS, DeliveryContact.JSON_PROPERTY_COMPANY, @@ -27,6 +39,7 @@ DeliveryContact.JSON_PROPERTY_PHONE_NUMBER, DeliveryContact.JSON_PROPERTY_WEB_ADDRESS }) + public class DeliveryContact { public static final String JSON_PROPERTY_ADDRESS = "address"; private DeliveryAddress address; @@ -49,12 +62,13 @@ public class DeliveryContact { public static final String JSON_PROPERTY_WEB_ADDRESS = "webAddress"; private String webAddress; - public DeliveryContact() {} + public DeliveryContact() { + } /** * address * - * @param address + * @param address * @return the current {@code DeliveryContact} instance, allowing for method chaining */ public DeliveryContact address(DeliveryAddress address) { @@ -64,8 +78,7 @@ public DeliveryContact address(DeliveryAddress address) { /** * Get address - * - * @return address + * @return address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -76,7 +89,7 @@ public DeliveryAddress getAddress() { /** * address * - * @param address + * @param address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,7 +110,6 @@ public DeliveryContact company(String company) { /** * The company name of the contact. - * * @return company The company name of the contact. */ @JsonProperty(JSON_PROPERTY_COMPANY) @@ -130,7 +142,6 @@ public DeliveryContact email(String email) { /** * The email address of the contact. - * * @return email The email address of the contact. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -151,13 +162,9 @@ public void setEmail(String email) { } /** - * The full phone number of the contact provided as a single string. It will be handled as a - * landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", - * \"(0031) 611223344\" + * The full phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\" * - * @param fullPhoneNumber The full phone number of the contact provided as a single string. It - * will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", - * \"+316/1122-3344\", \"(0031) 611223344\" + * @param fullPhoneNumber The full phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\" * @return the current {@code DeliveryContact} instance, allowing for method chaining */ public DeliveryContact fullPhoneNumber(String fullPhoneNumber) { @@ -166,13 +173,8 @@ public DeliveryContact fullPhoneNumber(String fullPhoneNumber) { } /** - * The full phone number of the contact provided as a single string. It will be handled as a - * landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", - * \"(0031) 611223344\" - * - * @return fullPhoneNumber The full phone number of the contact provided as a single string. It - * will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", - * \"+316/1122-3344\", \"(0031) 611223344\" + * The full phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\" + * @return fullPhoneNumber The full phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\" */ @JsonProperty(JSON_PROPERTY_FULL_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,13 +183,9 @@ public String getFullPhoneNumber() { } /** - * The full phone number of the contact provided as a single string. It will be handled as a - * landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", - * \"(0031) 611223344\" + * The full phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\" * - * @param fullPhoneNumber The full phone number of the contact provided as a single string. It - * will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", - * \"+316/1122-3344\", \"(0031) 611223344\" + * @param fullPhoneNumber The full phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\" */ @JsonProperty(JSON_PROPERTY_FULL_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,7 +196,7 @@ public void setFullPhoneNumber(String fullPhoneNumber) { /** * name * - * @param name + * @param name * @return the current {@code DeliveryContact} instance, allowing for method chaining */ public DeliveryContact name(Name name) { @@ -208,8 +206,7 @@ public DeliveryContact name(Name name) { /** * Get name - * - * @return name + * @return name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -220,7 +217,7 @@ public Name getName() { /** * name * - * @param name + * @param name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -231,7 +228,7 @@ public void setName(Name name) { /** * phoneNumber * - * @param phoneNumber + * @param phoneNumber * @return the current {@code DeliveryContact} instance, allowing for method chaining */ public DeliveryContact phoneNumber(PhoneNumber phoneNumber) { @@ -241,8 +238,7 @@ public DeliveryContact phoneNumber(PhoneNumber phoneNumber) { /** * Get phoneNumber - * - * @return phoneNumber + * @return phoneNumber */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -253,7 +249,7 @@ public PhoneNumber getPhoneNumber() { /** * phoneNumber * - * @param phoneNumber + * @param phoneNumber */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -274,7 +270,6 @@ public DeliveryContact webAddress(String webAddress) { /** * The URL of the contact's website. - * * @return webAddress The URL of the contact's website. */ @JsonProperty(JSON_PROPERTY_WEB_ADDRESS) @@ -294,7 +289,9 @@ public void setWebAddress(String webAddress) { this.webAddress = webAddress; } - /** Return true if this DeliveryContact object is equal to o. */ + /** + * Return true if this DeliveryContact object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -304,13 +301,13 @@ public boolean equals(Object o) { return false; } DeliveryContact deliveryContact = (DeliveryContact) o; - return Objects.equals(this.address, deliveryContact.address) - && Objects.equals(this.company, deliveryContact.company) - && Objects.equals(this.email, deliveryContact.email) - && Objects.equals(this.fullPhoneNumber, deliveryContact.fullPhoneNumber) - && Objects.equals(this.name, deliveryContact.name) - && Objects.equals(this.phoneNumber, deliveryContact.phoneNumber) - && Objects.equals(this.webAddress, deliveryContact.webAddress); + return Objects.equals(this.address, deliveryContact.address) && + Objects.equals(this.company, deliveryContact.company) && + Objects.equals(this.email, deliveryContact.email) && + Objects.equals(this.fullPhoneNumber, deliveryContact.fullPhoneNumber) && + Objects.equals(this.name, deliveryContact.name) && + Objects.equals(this.phoneNumber, deliveryContact.phoneNumber) && + Objects.equals(this.webAddress, deliveryContact.webAddress); } @Override @@ -334,7 +331,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -343,7 +341,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DeliveryContact given an JSON string * * @param jsonString JSON string @@ -353,12 +351,11 @@ private String toIndentedString(Object o) { public static DeliveryContact fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DeliveryContact.class); } - - /** - * Convert an instance of DeliveryContact to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DeliveryContact to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/Device.java b/src/main/java/com/adyen/model/balanceplatform/Device.java index 6ccc17a0d..5f9b8603a 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Device.java +++ b/src/main/java/com/adyen/model/balanceplatform/Device.java @@ -2,32 +2,38 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** Device */ + +/** + * Device + */ @JsonPropertyOrder({ Device.JSON_PROPERTY_ID, Device.JSON_PROPERTY_NAME, Device.JSON_PROPERTY_PAYMENT_INSTRUMENT_ID, Device.JSON_PROPERTY_TYPE }) + public class Device { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -38,8 +44,11 @@ public class Device { public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT_ID = "paymentInstrumentId"; private String paymentInstrumentId; - /** The type of device. Possible values: **ios**, **android**, **browser**. */ + /** + * The type of device. Possible values: **ios**, **android**, **browser**. + */ public enum TypeEnum { + IOS(String.valueOf("ios")), ANDROID(String.valueOf("android")), @@ -51,7 +60,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -72,11 +81,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -84,7 +89,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public Device() {} + public Device() { + } /** * The unique identifier of the SCA device. @@ -99,7 +105,6 @@ public Device id(String id) { /** * The unique identifier of the SCA device. - * * @return id The unique identifier of the SCA device. */ @JsonProperty(JSON_PROPERTY_ID) @@ -120,11 +125,9 @@ public void setId(String id) { } /** - * The name of the SCA device. You can show this name to your user to help them identify the - * device. + * The name of the SCA device. You can show this name to your user to help them identify the device. * - * @param name The name of the SCA device. You can show this name to your user to help them - * identify the device. + * @param name The name of the SCA device. You can show this name to your user to help them identify the device. * @return the current {@code Device} instance, allowing for method chaining */ public Device name(String name) { @@ -133,11 +136,8 @@ public Device name(String name) { } /** - * The name of the SCA device. You can show this name to your user to help them identify the - * device. - * - * @return name The name of the SCA device. You can show this name to your user to help them - * identify the device. + * The name of the SCA device. You can show this name to your user to help them identify the device. + * @return name The name of the SCA device. You can show this name to your user to help them identify the device. */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,11 +146,9 @@ public String getName() { } /** - * The name of the SCA device. You can show this name to your user to help them identify the - * device. + * The name of the SCA device. You can show this name to your user to help them identify the device. * - * @param name The name of the SCA device. You can show this name to your user to help them - * identify the device. + * @param name The name of the SCA device. You can show this name to your user to help them identify the device. */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,8 +159,7 @@ public void setName(String name) { /** * The unique identifier of the payment instrument that is associated with the SCA device. * - * @param paymentInstrumentId The unique identifier of the payment instrument that is associated - * with the SCA device. + * @param paymentInstrumentId The unique identifier of the payment instrument that is associated with the SCA device. * @return the current {@code Device} instance, allowing for method chaining */ public Device paymentInstrumentId(String paymentInstrumentId) { @@ -172,9 +169,7 @@ public Device paymentInstrumentId(String paymentInstrumentId) { /** * The unique identifier of the payment instrument that is associated with the SCA device. - * - * @return paymentInstrumentId The unique identifier of the payment instrument that is associated - * with the SCA device. + * @return paymentInstrumentId The unique identifier of the payment instrument that is associated with the SCA device. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,8 +180,7 @@ public String getPaymentInstrumentId() { /** * The unique identifier of the payment instrument that is associated with the SCA device. * - * @param paymentInstrumentId The unique identifier of the payment instrument that is associated - * with the SCA device. + * @param paymentInstrumentId The unique identifier of the payment instrument that is associated with the SCA device. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,9 +189,9 @@ public void setPaymentInstrumentId(String paymentInstrumentId) { } /** - * The type of device. Possible values: **ios**, **android**, **browser**. + * The type of device. Possible values: **ios**, **android**, **browser**. * - * @param type The type of device. Possible values: **ios**, **android**, **browser**. + * @param type The type of device. Possible values: **ios**, **android**, **browser**. * @return the current {@code Device} instance, allowing for method chaining */ public Device type(TypeEnum type) { @@ -206,9 +200,8 @@ public Device type(TypeEnum type) { } /** - * The type of device. Possible values: **ios**, **android**, **browser**. - * - * @return type The type of device. Possible values: **ios**, **android**, **browser**. + * The type of device. Possible values: **ios**, **android**, **browser**. + * @return type The type of device. Possible values: **ios**, **android**, **browser**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -217,9 +210,9 @@ public TypeEnum getType() { } /** - * The type of device. Possible values: **ios**, **android**, **browser**. + * The type of device. Possible values: **ios**, **android**, **browser**. * - * @param type The type of device. Possible values: **ios**, **android**, **browser**. + * @param type The type of device. Possible values: **ios**, **android**, **browser**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -227,7 +220,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this Device object is equal to o. */ + /** + * Return true if this Device object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -237,10 +232,10 @@ public boolean equals(Object o) { return false; } Device device = (Device) o; - return Objects.equals(this.id, device.id) - && Objects.equals(this.name, device.name) - && Objects.equals(this.paymentInstrumentId, device.paymentInstrumentId) - && Objects.equals(this.type, device.type); + return Objects.equals(this.id, device.id) && + Objects.equals(this.name, device.name) && + Objects.equals(this.paymentInstrumentId, device.paymentInstrumentId) && + Objects.equals(this.type, device.type); } @Override @@ -254,16 +249,15 @@ public String toString() { sb.append("class Device {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" paymentInstrumentId: ") - .append(toIndentedString(paymentInstrumentId)) - .append("\n"); + sb.append(" paymentInstrumentId: ").append(toIndentedString(paymentInstrumentId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -272,7 +266,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Device given an JSON string * * @param jsonString JSON string @@ -282,12 +276,11 @@ private String toIndentedString(Object o) { public static Device fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Device.class); } - - /** - * Convert an instance of Device to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Device to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/DeviceInfo.java b/src/main/java/com/adyen/model/balanceplatform/DeviceInfo.java index 720a344a6..bf5e1e135 100644 --- a/src/main/java/com/adyen/model/balanceplatform/DeviceInfo.java +++ b/src/main/java/com/adyen/model/balanceplatform/DeviceInfo.java @@ -2,24 +2,33 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** DeviceInfo */ + +/** + * DeviceInfo + */ @JsonPropertyOrder({ DeviceInfo.JSON_PROPERTY_CARD_CAPTURE_TECHNOLOGY, DeviceInfo.JSON_PROPERTY_DEVICE_NAME, @@ -33,6 +42,7 @@ DeviceInfo.JSON_PROPERTY_SERIAL_NUMBER, DeviceInfo.JSON_PROPERTY_STORAGE_TECHNOLOGY }) + public class DeviceInfo { public static final String JSON_PROPERTY_CARD_CAPTURE_TECHNOLOGY = "cardCaptureTechnology"; private String cardCaptureTechnology; @@ -67,7 +77,8 @@ public class DeviceInfo { public static final String JSON_PROPERTY_STORAGE_TECHNOLOGY = "storageTechnology"; private String storageTechnology; - public DeviceInfo() {} + public DeviceInfo() { + } /** * The technology used to capture the card details. @@ -82,7 +93,6 @@ public DeviceInfo cardCaptureTechnology(String cardCaptureTechnology) { /** * The technology used to capture the card details. - * * @return cardCaptureTechnology The technology used to capture the card details. */ @JsonProperty(JSON_PROPERTY_CARD_CAPTURE_TECHNOLOGY) @@ -115,7 +125,6 @@ public DeviceInfo deviceName(String deviceName) { /** * The name of the device. - * * @return deviceName The name of the device. */ @JsonProperty(JSON_PROPERTY_DEVICE_NAME) @@ -148,7 +157,6 @@ public DeviceInfo formFactor(String formFactor) { /** * The form factor of the device to be provisioned. - * * @return formFactor The form factor of the device to be provisioned. */ @JsonProperty(JSON_PROPERTY_FORM_FACTOR) @@ -181,7 +189,6 @@ public DeviceInfo imei(String imei) { /** * The IMEI number of the device being provisioned. - * * @return imei The IMEI number of the device being provisioned. */ @JsonProperty(JSON_PROPERTY_IMEI) @@ -204,8 +211,7 @@ public void setImei(String imei) { /** * The 2-digit device type provided on the ISO messages that the token is being provisioned to. * - * @param isoDeviceType The 2-digit device type provided on the ISO messages that the token is - * being provisioned to. + * @param isoDeviceType The 2-digit device type provided on the ISO messages that the token is being provisioned to. * @return the current {@code DeviceInfo} instance, allowing for method chaining */ public DeviceInfo isoDeviceType(String isoDeviceType) { @@ -215,9 +221,7 @@ public DeviceInfo isoDeviceType(String isoDeviceType) { /** * The 2-digit device type provided on the ISO messages that the token is being provisioned to. - * - * @return isoDeviceType The 2-digit device type provided on the ISO messages that the token is - * being provisioned to. + * @return isoDeviceType The 2-digit device type provided on the ISO messages that the token is being provisioned to. */ @JsonProperty(JSON_PROPERTY_ISO_DEVICE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -228,8 +232,7 @@ public String getIsoDeviceType() { /** * The 2-digit device type provided on the ISO messages that the token is being provisioned to. * - * @param isoDeviceType The 2-digit device type provided on the ISO messages that the token is - * being provisioned to. + * @param isoDeviceType The 2-digit device type provided on the ISO messages that the token is being provisioned to. */ @JsonProperty(JSON_PROPERTY_ISO_DEVICE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,7 +253,6 @@ public DeviceInfo msisdn(String msisdn) { /** * The MSISDN of the device being provisioned. - * * @return msisdn The MSISDN of the device being provisioned. */ @JsonProperty(JSON_PROPERTY_MSISDN) @@ -283,7 +285,6 @@ public DeviceInfo osName(String osName) { /** * The name of the device operating system. - * * @return osName The name of the device operating system. */ @JsonProperty(JSON_PROPERTY_OS_NAME) @@ -316,7 +317,6 @@ public DeviceInfo osVersion(String osVersion) { /** * The version of the device operating system. - * * @return osVersion The version of the device operating system. */ @JsonProperty(JSON_PROPERTY_OS_VERSION) @@ -357,7 +357,6 @@ public DeviceInfo addPaymentTypesItem(String paymentTypesItem) { /** * Different types of payments supported for the network token. - * * @return paymentTypes Different types of payments supported for the network token. */ @JsonProperty(JSON_PROPERTY_PAYMENT_TYPES) @@ -390,7 +389,6 @@ public DeviceInfo serialNumber(String serialNumber) { /** * The serial number of the device. - * * @return serialNumber The serial number of the device. */ @JsonProperty(JSON_PROPERTY_SERIAL_NUMBER) @@ -423,7 +421,6 @@ public DeviceInfo storageTechnology(String storageTechnology) { /** * The architecture or technology used for network token storage. - * * @return storageTechnology The architecture or technology used for network token storage. */ @JsonProperty(JSON_PROPERTY_STORAGE_TECHNOLOGY) @@ -443,7 +440,9 @@ public void setStorageTechnology(String storageTechnology) { this.storageTechnology = storageTechnology; } - /** Return true if this DeviceInfo object is equal to o. */ + /** + * Return true if this DeviceInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -453,42 +452,29 @@ public boolean equals(Object o) { return false; } DeviceInfo deviceInfo = (DeviceInfo) o; - return Objects.equals(this.cardCaptureTechnology, deviceInfo.cardCaptureTechnology) - && Objects.equals(this.deviceName, deviceInfo.deviceName) - && Objects.equals(this.formFactor, deviceInfo.formFactor) - && Objects.equals(this.imei, deviceInfo.imei) - && Objects.equals(this.isoDeviceType, deviceInfo.isoDeviceType) - && Objects.equals(this.msisdn, deviceInfo.msisdn) - && Objects.equals(this.osName, deviceInfo.osName) - && Objects.equals(this.osVersion, deviceInfo.osVersion) - && Objects.equals(this.paymentTypes, deviceInfo.paymentTypes) - && Objects.equals(this.serialNumber, deviceInfo.serialNumber) - && Objects.equals(this.storageTechnology, deviceInfo.storageTechnology); + return Objects.equals(this.cardCaptureTechnology, deviceInfo.cardCaptureTechnology) && + Objects.equals(this.deviceName, deviceInfo.deviceName) && + Objects.equals(this.formFactor, deviceInfo.formFactor) && + Objects.equals(this.imei, deviceInfo.imei) && + Objects.equals(this.isoDeviceType, deviceInfo.isoDeviceType) && + Objects.equals(this.msisdn, deviceInfo.msisdn) && + Objects.equals(this.osName, deviceInfo.osName) && + Objects.equals(this.osVersion, deviceInfo.osVersion) && + Objects.equals(this.paymentTypes, deviceInfo.paymentTypes) && + Objects.equals(this.serialNumber, deviceInfo.serialNumber) && + Objects.equals(this.storageTechnology, deviceInfo.storageTechnology); } @Override public int hashCode() { - return Objects.hash( - cardCaptureTechnology, - deviceName, - formFactor, - imei, - isoDeviceType, - msisdn, - osName, - osVersion, - paymentTypes, - serialNumber, - storageTechnology); + return Objects.hash(cardCaptureTechnology, deviceName, formFactor, imei, isoDeviceType, msisdn, osName, osVersion, paymentTypes, serialNumber, storageTechnology); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeviceInfo {\n"); - sb.append(" cardCaptureTechnology: ") - .append(toIndentedString(cardCaptureTechnology)) - .append("\n"); + sb.append(" cardCaptureTechnology: ").append(toIndentedString(cardCaptureTechnology)).append("\n"); sb.append(" deviceName: ").append(toIndentedString(deviceName)).append("\n"); sb.append(" formFactor: ").append(toIndentedString(formFactor)).append("\n"); sb.append(" imei: ").append(toIndentedString(imei)).append("\n"); @@ -504,7 +490,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -513,7 +500,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DeviceInfo given an JSON string * * @param jsonString JSON string @@ -523,12 +510,11 @@ private String toIndentedString(Object o) { public static DeviceInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DeviceInfo.class); } - - /** - * Convert an instance of DeviceInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DeviceInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/DifferentCurrenciesRestriction.java b/src/main/java/com/adyen/model/balanceplatform/DifferentCurrenciesRestriction.java index a20738a43..137a32ffe 100644 --- a/src/main/java/com/adyen/model/balanceplatform/DifferentCurrenciesRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/DifferentCurrenciesRestriction.java @@ -2,26 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** DifferentCurrenciesRestriction */ + +/** + * DifferentCurrenciesRestriction + */ @JsonPropertyOrder({ DifferentCurrenciesRestriction.JSON_PROPERTY_OPERATION, DifferentCurrenciesRestriction.JSON_PROPERTY_VALUE }) + public class DifferentCurrenciesRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -29,14 +39,14 @@ public class DifferentCurrenciesRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private Boolean value; - public DifferentCurrenciesRestriction() {} + public DifferentCurrenciesRestriction() { + } /** * Defines how the condition must be evaluated. * * @param operation Defines how the condition must be evaluated. - * @return the current {@code DifferentCurrenciesRestriction} instance, allowing for method - * chaining + * @return the current {@code DifferentCurrenciesRestriction} instance, allowing for method chaining */ public DifferentCurrenciesRestriction operation(String operation) { this.operation = operation; @@ -45,7 +55,6 @@ public DifferentCurrenciesRestriction operation(String operation) { /** * Defines how the condition must be evaluated. - * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -66,15 +75,10 @@ public void setOperation(String operation) { } /** - * Checks the currency of the payment against the currency of the payment instrument. Possible - * values: - **true**: The currency of the payment is different from the currency of the payment - * instrument. - **false**: The currencies are the same. + * Checks the currency of the payment against the currency of the payment instrument. Possible values: - **true**: The currency of the payment is different from the currency of the payment instrument. - **false**: The currencies are the same. * - * @param value Checks the currency of the payment against the currency of the payment instrument. - * Possible values: - **true**: The currency of the payment is different from the currency of - * the payment instrument. - **false**: The currencies are the same. - * @return the current {@code DifferentCurrenciesRestriction} instance, allowing for method - * chaining + * @param value Checks the currency of the payment against the currency of the payment instrument. Possible values: - **true**: The currency of the payment is different from the currency of the payment instrument. - **false**: The currencies are the same. + * @return the current {@code DifferentCurrenciesRestriction} instance, allowing for method chaining */ public DifferentCurrenciesRestriction value(Boolean value) { this.value = value; @@ -82,13 +86,8 @@ public DifferentCurrenciesRestriction value(Boolean value) { } /** - * Checks the currency of the payment against the currency of the payment instrument. Possible - * values: - **true**: The currency of the payment is different from the currency of the payment - * instrument. - **false**: The currencies are the same. - * - * @return value Checks the currency of the payment against the currency of the payment - * instrument. Possible values: - **true**: The currency of the payment is different from the - * currency of the payment instrument. - **false**: The currencies are the same. + * Checks the currency of the payment against the currency of the payment instrument. Possible values: - **true**: The currency of the payment is different from the currency of the payment instrument. - **false**: The currencies are the same. + * @return value Checks the currency of the payment against the currency of the payment instrument. Possible values: - **true**: The currency of the payment is different from the currency of the payment instrument. - **false**: The currencies are the same. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,13 +96,9 @@ public Boolean getValue() { } /** - * Checks the currency of the payment against the currency of the payment instrument. Possible - * values: - **true**: The currency of the payment is different from the currency of the payment - * instrument. - **false**: The currencies are the same. + * Checks the currency of the payment against the currency of the payment instrument. Possible values: - **true**: The currency of the payment is different from the currency of the payment instrument. - **false**: The currencies are the same. * - * @param value Checks the currency of the payment against the currency of the payment instrument. - * Possible values: - **true**: The currency of the payment is different from the currency of - * the payment instrument. - **false**: The currencies are the same. + * @param value Checks the currency of the payment against the currency of the payment instrument. Possible values: - **true**: The currency of the payment is different from the currency of the payment instrument. - **false**: The currencies are the same. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,7 +106,9 @@ public void setValue(Boolean value) { this.value = value; } - /** Return true if this DifferentCurrenciesRestriction object is equal to o. */ + /** + * Return true if this DifferentCurrenciesRestriction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -120,10 +117,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - DifferentCurrenciesRestriction differentCurrenciesRestriction = - (DifferentCurrenciesRestriction) o; - return Objects.equals(this.operation, differentCurrenciesRestriction.operation) - && Objects.equals(this.value, differentCurrenciesRestriction.value); + DifferentCurrenciesRestriction differentCurrenciesRestriction = (DifferentCurrenciesRestriction) o; + return Objects.equals(this.operation, differentCurrenciesRestriction.operation) && + Objects.equals(this.value, differentCurrenciesRestriction.value); } @Override @@ -142,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -151,24 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DifferentCurrenciesRestriction given an JSON string * * @param jsonString JSON string * @return An instance of DifferentCurrenciesRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DifferentCurrenciesRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to DifferentCurrenciesRestriction */ - public static DifferentCurrenciesRestriction fromJson(String jsonString) - throws JsonProcessingException { + public static DifferentCurrenciesRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DifferentCurrenciesRestriction.class); } - - /** - * Convert an instance of DifferentCurrenciesRestriction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DifferentCurrenciesRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/Duration.java b/src/main/java/com/adyen/model/balanceplatform/Duration.java index 67087e9a8..529f97782 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Duration.java +++ b/src/main/java/com/adyen/model/balanceplatform/Duration.java @@ -2,33 +2,42 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * Duration + */ +@JsonPropertyOrder({ + Duration.JSON_PROPERTY_UNIT, + Duration.JSON_PROPERTY_VALUE +}) -/** Duration */ -@JsonPropertyOrder({Duration.JSON_PROPERTY_UNIT, Duration.JSON_PROPERTY_VALUE}) public class Duration { /** - * The unit of time. You can only use **minutes** and **hours** if the `interval.type` - * is **sliding**. Possible values: **minutes**, **hours**, **days**, **weeks**, or **months** + * The unit of time. You can only use **minutes** and **hours** if the `interval.type` is **sliding**. Possible values: **minutes**, **hours**, **days**, **weeks**, or **months** */ public enum UnitEnum { + DAYS(String.valueOf("days")), HOURS(String.valueOf("hours")), @@ -44,7 +53,7 @@ public enum UnitEnum { private String value; UnitEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -65,11 +74,7 @@ public static UnitEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "UnitEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(UnitEnum.values())); + LOG.warning("UnitEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(UnitEnum.values())); return null; } } @@ -80,15 +85,13 @@ public static UnitEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUE = "value"; private Integer value; - public Duration() {} + public Duration() { + } /** - * The unit of time. You can only use **minutes** and **hours** if the `interval.type` - * is **sliding**. Possible values: **minutes**, **hours**, **days**, **weeks**, or **months** + * The unit of time. You can only use **minutes** and **hours** if the `interval.type` is **sliding**. Possible values: **minutes**, **hours**, **days**, **weeks**, or **months** * - * @param unit The unit of time. You can only use **minutes** and **hours** if the - * `interval.type` is **sliding**. Possible values: **minutes**, **hours**, - * **days**, **weeks**, or **months** + * @param unit The unit of time. You can only use **minutes** and **hours** if the `interval.type` is **sliding**. Possible values: **minutes**, **hours**, **days**, **weeks**, or **months** * @return the current {@code Duration} instance, allowing for method chaining */ public Duration unit(UnitEnum unit) { @@ -97,12 +100,8 @@ public Duration unit(UnitEnum unit) { } /** - * The unit of time. You can only use **minutes** and **hours** if the `interval.type` - * is **sliding**. Possible values: **minutes**, **hours**, **days**, **weeks**, or **months** - * - * @return unit The unit of time. You can only use **minutes** and **hours** if the - * `interval.type` is **sliding**. Possible values: **minutes**, **hours**, - * **days**, **weeks**, or **months** + * The unit of time. You can only use **minutes** and **hours** if the `interval.type` is **sliding**. Possible values: **minutes**, **hours**, **days**, **weeks**, or **months** + * @return unit The unit of time. You can only use **minutes** and **hours** if the `interval.type` is **sliding**. Possible values: **minutes**, **hours**, **days**, **weeks**, or **months** */ @JsonProperty(JSON_PROPERTY_UNIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,12 +110,9 @@ public UnitEnum getUnit() { } /** - * The unit of time. You can only use **minutes** and **hours** if the `interval.type` - * is **sliding**. Possible values: **minutes**, **hours**, **days**, **weeks**, or **months** + * The unit of time. You can only use **minutes** and **hours** if the `interval.type` is **sliding**. Possible values: **minutes**, **hours**, **days**, **weeks**, or **months** * - * @param unit The unit of time. You can only use **minutes** and **hours** if the - * `interval.type` is **sliding**. Possible values: **minutes**, **hours**, - * **days**, **weeks**, or **months** + * @param unit The unit of time. You can only use **minutes** and **hours** if the `interval.type` is **sliding**. Possible values: **minutes**, **hours**, **days**, **weeks**, or **months** */ @JsonProperty(JSON_PROPERTY_UNIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,11 +121,9 @@ public void setUnit(UnitEnum unit) { } /** - * The length of time by the unit. For example, 5 days. The maximum duration is 90 days or an - * equivalent in other units. For example, 3 months. + * The length of time by the unit. For example, 5 days. The maximum duration is 90 days or an equivalent in other units. For example, 3 months. * - * @param value The length of time by the unit. For example, 5 days. The maximum duration is 90 - * days or an equivalent in other units. For example, 3 months. + * @param value The length of time by the unit. For example, 5 days. The maximum duration is 90 days or an equivalent in other units. For example, 3 months. * @return the current {@code Duration} instance, allowing for method chaining */ public Duration value(Integer value) { @@ -138,11 +132,8 @@ public Duration value(Integer value) { } /** - * The length of time by the unit. For example, 5 days. The maximum duration is 90 days or an - * equivalent in other units. For example, 3 months. - * - * @return value The length of time by the unit. For example, 5 days. The maximum duration is 90 - * days or an equivalent in other units. For example, 3 months. + * The length of time by the unit. For example, 5 days. The maximum duration is 90 days or an equivalent in other units. For example, 3 months. + * @return value The length of time by the unit. For example, 5 days. The maximum duration is 90 days or an equivalent in other units. For example, 3 months. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,11 +142,9 @@ public Integer getValue() { } /** - * The length of time by the unit. For example, 5 days. The maximum duration is 90 days or an - * equivalent in other units. For example, 3 months. + * The length of time by the unit. For example, 5 days. The maximum duration is 90 days or an equivalent in other units. For example, 3 months. * - * @param value The length of time by the unit. For example, 5 days. The maximum duration is 90 - * days or an equivalent in other units. For example, 3 months. + * @param value The length of time by the unit. For example, 5 days. The maximum duration is 90 days or an equivalent in other units. For example, 3 months. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,7 +152,9 @@ public void setValue(Integer value) { this.value = value; } - /** Return true if this Duration object is equal to o. */ + /** + * Return true if this Duration object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -173,7 +164,8 @@ public boolean equals(Object o) { return false; } Duration duration = (Duration) o; - return Objects.equals(this.unit, duration.unit) && Objects.equals(this.value, duration.value); + return Objects.equals(this.unit, duration.unit) && + Objects.equals(this.value, duration.value); } @Override @@ -192,7 +184,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -201,7 +194,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Duration given an JSON string * * @param jsonString JSON string @@ -211,12 +204,11 @@ private String toIndentedString(Object o) { public static Duration fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Duration.class); } - - /** - * Convert an instance of Duration to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Duration to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/EntryModesRestriction.java b/src/main/java/com/adyen/model/balanceplatform/EntryModesRestriction.java index 989e79ce3..e10234796 100644 --- a/src/main/java/com/adyen/model/balanceplatform/EntryModesRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/EntryModesRestriction.java @@ -2,38 +2,47 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** EntryModesRestriction */ +/** + * EntryModesRestriction + */ @JsonPropertyOrder({ EntryModesRestriction.JSON_PROPERTY_OPERATION, EntryModesRestriction.JSON_PROPERTY_VALUE }) + public class EntryModesRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; - /** Gets or Sets value */ + /** + * Gets or Sets value + */ public enum ValueEnum { + BARCODE(String.valueOf("barcode")), CHIP(String.valueOf("chip")), @@ -57,7 +66,7 @@ public enum ValueEnum { private String value; ValueEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -78,11 +87,7 @@ public static ValueEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ValueEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ValueEnum.values())); + LOG.warning("ValueEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ValueEnum.values())); return null; } } @@ -90,7 +95,8 @@ public static ValueEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUE = "value"; private List value; - public EntryModesRestriction() {} + public EntryModesRestriction() { + } /** * Defines how the condition must be evaluated. @@ -105,7 +111,6 @@ public EntryModesRestriction operation(String operation) { /** * Defines how the condition must be evaluated. - * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -126,11 +131,9 @@ public void setOperation(String operation) { } /** - * List of point-of-sale entry modes. Possible values: **barcode**, **chip**, **cof**, - * **contactless**, **magstripe**, **manual**, **ocr**, **server**. + * List of point-of-sale entry modes. Possible values: **barcode**, **chip**, **cof**, **contactless**, **magstripe**, **manual**, **ocr**, **server**. * - * @param value List of point-of-sale entry modes. Possible values: **barcode**, **chip**, - * **cof**, **contactless**, **magstripe**, **manual**, **ocr**, **server**. + * @param value List of point-of-sale entry modes. Possible values: **barcode**, **chip**, **cof**, **contactless**, **magstripe**, **manual**, **ocr**, **server**. * @return the current {@code EntryModesRestriction} instance, allowing for method chaining */ public EntryModesRestriction value(List value) { @@ -147,11 +150,8 @@ public EntryModesRestriction addValueItem(ValueEnum valueItem) { } /** - * List of point-of-sale entry modes. Possible values: **barcode**, **chip**, **cof**, - * **contactless**, **magstripe**, **manual**, **ocr**, **server**. - * - * @return value List of point-of-sale entry modes. Possible values: **barcode**, **chip**, - * **cof**, **contactless**, **magstripe**, **manual**, **ocr**, **server**. + * List of point-of-sale entry modes. Possible values: **barcode**, **chip**, **cof**, **contactless**, **magstripe**, **manual**, **ocr**, **server**. + * @return value List of point-of-sale entry modes. Possible values: **barcode**, **chip**, **cof**, **contactless**, **magstripe**, **manual**, **ocr**, **server**. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,11 +160,9 @@ public List getValue() { } /** - * List of point-of-sale entry modes. Possible values: **barcode**, **chip**, **cof**, - * **contactless**, **magstripe**, **manual**, **ocr**, **server**. + * List of point-of-sale entry modes. Possible values: **barcode**, **chip**, **cof**, **contactless**, **magstripe**, **manual**, **ocr**, **server**. * - * @param value List of point-of-sale entry modes. Possible values: **barcode**, **chip**, - * **cof**, **contactless**, **magstripe**, **manual**, **ocr**, **server**. + * @param value List of point-of-sale entry modes. Possible values: **barcode**, **chip**, **cof**, **contactless**, **magstripe**, **manual**, **ocr**, **server**. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,7 +170,9 @@ public void setValue(List value) { this.value = value; } - /** Return true if this EntryModesRestriction object is equal to o. */ + /** + * Return true if this EntryModesRestriction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -182,8 +182,8 @@ public boolean equals(Object o) { return false; } EntryModesRestriction entryModesRestriction = (EntryModesRestriction) o; - return Objects.equals(this.operation, entryModesRestriction.operation) - && Objects.equals(this.value, entryModesRestriction.value); + return Objects.equals(this.operation, entryModesRestriction.operation) && + Objects.equals(this.value, entryModesRestriction.value); } @Override @@ -202,7 +202,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -211,23 +212,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of EntryModesRestriction given an JSON string * * @param jsonString JSON string * @return An instance of EntryModesRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * EntryModesRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to EntryModesRestriction */ public static EntryModesRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, EntryModesRestriction.class); } - - /** - * Convert an instance of EntryModesRestriction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of EntryModesRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/Expiry.java b/src/main/java/com/adyen/model/balanceplatform/Expiry.java index ad0235bcc..f7d4d14d7 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Expiry.java +++ b/src/main/java/com/adyen/model/balanceplatform/Expiry.java @@ -2,23 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Expiry */ -@JsonPropertyOrder({Expiry.JSON_PROPERTY_MONTH, Expiry.JSON_PROPERTY_YEAR}) + +/** + * Expiry + */ +@JsonPropertyOrder({ + Expiry.JSON_PROPERTY_MONTH, + Expiry.JSON_PROPERTY_YEAR +}) + public class Expiry { public static final String JSON_PROPERTY_MONTH = "month"; private String month; @@ -26,7 +39,8 @@ public class Expiry { public static final String JSON_PROPERTY_YEAR = "year"; private String year; - public Expiry() {} + public Expiry() { + } /** * The month in which the card will expire. @@ -41,7 +55,6 @@ public Expiry month(String month) { /** * The month in which the card will expire. - * * @return month The month in which the card will expire. */ @JsonProperty(JSON_PROPERTY_MONTH) @@ -74,7 +87,6 @@ public Expiry year(String year) { /** * The year in which the card will expire. - * * @return year The year in which the card will expire. */ @JsonProperty(JSON_PROPERTY_YEAR) @@ -94,7 +106,9 @@ public void setYear(String year) { this.year = year; } - /** Return true if this Expiry object is equal to o. */ + /** + * Return true if this Expiry object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -104,7 +118,8 @@ public boolean equals(Object o) { return false; } Expiry expiry = (Expiry) o; - return Objects.equals(this.month, expiry.month) && Objects.equals(this.year, expiry.year); + return Objects.equals(this.month, expiry.month) && + Objects.equals(this.year, expiry.year); } @Override @@ -123,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -132,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Expiry given an JSON string * * @param jsonString JSON string @@ -142,12 +158,11 @@ private String toIndentedString(Object o) { public static Expiry fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Expiry.class); } - - /** - * Convert an instance of Expiry to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Expiry to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/Fee.java b/src/main/java/com/adyen/model/balanceplatform/Fee.java index 160316204..308d855a3 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Fee.java +++ b/src/main/java/com/adyen/model/balanceplatform/Fee.java @@ -2,33 +2,47 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Fee */ -@JsonPropertyOrder({Fee.JSON_PROPERTY_AMOUNT}) + +/** + * Fee + */ +@JsonPropertyOrder({ + Fee.JSON_PROPERTY_AMOUNT +}) + public class Fee { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; - public Fee() {} + public Fee() { + } /** * amount * - * @param amount + * @param amount * @return the current {@code Fee} instance, allowing for method chaining */ public Fee amount(Amount amount) { @@ -38,8 +52,7 @@ public Fee amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -50,7 +63,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,7 +71,9 @@ public void setAmount(Amount amount) { this.amount = amount; } - /** Return true if this Fee object is equal to o. */ + /** + * Return true if this Fee object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,7 +101,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,7 +111,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Fee given an JSON string * * @param jsonString JSON string @@ -105,12 +121,11 @@ private String toIndentedString(Object o) { public static Fee fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Fee.class); } - - /** - * Convert an instance of Fee to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Fee to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/GetNetworkTokenResponse.java b/src/main/java/com/adyen/model/balanceplatform/GetNetworkTokenResponse.java index a5b7260ca..5b3d50238 100644 --- a/src/main/java/com/adyen/model/balanceplatform/GetNetworkTokenResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/GetNetworkTokenResponse.java @@ -2,33 +2,47 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.NetworkToken; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** GetNetworkTokenResponse */ -@JsonPropertyOrder({GetNetworkTokenResponse.JSON_PROPERTY_TOKEN}) + +/** + * GetNetworkTokenResponse + */ +@JsonPropertyOrder({ + GetNetworkTokenResponse.JSON_PROPERTY_TOKEN +}) + public class GetNetworkTokenResponse { public static final String JSON_PROPERTY_TOKEN = "token"; private NetworkToken token; - public GetNetworkTokenResponse() {} + public GetNetworkTokenResponse() { + } /** * token * - * @param token + * @param token * @return the current {@code GetNetworkTokenResponse} instance, allowing for method chaining */ public GetNetworkTokenResponse token(NetworkToken token) { @@ -38,8 +52,7 @@ public GetNetworkTokenResponse token(NetworkToken token) { /** * Get token - * - * @return token + * @return token */ @JsonProperty(JSON_PROPERTY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -50,7 +63,7 @@ public NetworkToken getToken() { /** * token * - * @param token + * @param token */ @JsonProperty(JSON_PROPERTY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,7 +71,9 @@ public void setToken(NetworkToken token) { this.token = token; } - /** Return true if this GetNetworkTokenResponse object is equal to o. */ + /** + * Return true if this GetNetworkTokenResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,7 +101,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,23 +111,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of GetNetworkTokenResponse given an JSON string * * @param jsonString JSON string * @return An instance of GetNetworkTokenResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * GetNetworkTokenResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to GetNetworkTokenResponse */ public static GetNetworkTokenResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GetNetworkTokenResponse.class); } - - /** - * Convert an instance of GetNetworkTokenResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of GetNetworkTokenResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/GetTaxFormResponse.java b/src/main/java/com/adyen/model/balanceplatform/GetTaxFormResponse.java index 3a8702c6c..042275103 100644 --- a/src/main/java/com/adyen/model/balanceplatform/GetTaxFormResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/GetTaxFormResponse.java @@ -2,36 +2,45 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** GetTaxFormResponse */ +/** + * GetTaxFormResponse + */ @JsonPropertyOrder({ GetTaxFormResponse.JSON_PROPERTY_CONTENT, GetTaxFormResponse.JSON_PROPERTY_CONTENT_TYPE }) + public class GetTaxFormResponse { public static final String JSON_PROPERTY_CONTENT = "content"; private byte[] content; - /** The content type of the tax form. Possible values: * **application/pdf** */ + /** + * The content type of the tax form. Possible values: * **application/pdf** + */ public enum ContentTypeEnum { + APPLICATION_PDF(String.valueOf("application/pdf")); private static final Logger LOG = Logger.getLogger(ContentTypeEnum.class.getName()); @@ -39,7 +48,7 @@ public enum ContentTypeEnum { private String value; ContentTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static ContentTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ContentTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ContentTypeEnum.values())); + LOG.warning("ContentTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ContentTypeEnum.values())); return null; } } @@ -72,7 +77,8 @@ public static ContentTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_CONTENT_TYPE = "contentType"; private ContentTypeEnum contentType; - public GetTaxFormResponse() {} + public GetTaxFormResponse() { + } /** * The content of the tax form in Base64 format. @@ -87,7 +93,6 @@ public GetTaxFormResponse content(byte[] content) { /** * The content of the tax form in Base64 format. - * * @return content The content of the tax form in Base64 format. */ @JsonProperty(JSON_PROPERTY_CONTENT) @@ -108,9 +113,9 @@ public void setContent(byte[] content) { } /** - * The content type of the tax form. Possible values: * **application/pdf** + * The content type of the tax form. Possible values: * **application/pdf** * - * @param contentType The content type of the tax form. Possible values: * **application/pdf** + * @param contentType The content type of the tax form. Possible values: * **application/pdf** * @return the current {@code GetTaxFormResponse} instance, allowing for method chaining */ public GetTaxFormResponse contentType(ContentTypeEnum contentType) { @@ -119,9 +124,8 @@ public GetTaxFormResponse contentType(ContentTypeEnum contentType) { } /** - * The content type of the tax form. Possible values: * **application/pdf** - * - * @return contentType The content type of the tax form. Possible values: * **application/pdf** + * The content type of the tax form. Possible values: * **application/pdf** + * @return contentType The content type of the tax form. Possible values: * **application/pdf** */ @JsonProperty(JSON_PROPERTY_CONTENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -130,9 +134,9 @@ public ContentTypeEnum getContentType() { } /** - * The content type of the tax form. Possible values: * **application/pdf** + * The content type of the tax form. Possible values: * **application/pdf** * - * @param contentType The content type of the tax form. Possible values: * **application/pdf** + * @param contentType The content type of the tax form. Possible values: * **application/pdf** */ @JsonProperty(JSON_PROPERTY_CONTENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,7 +144,9 @@ public void setContentType(ContentTypeEnum contentType) { this.contentType = contentType; } - /** Return true if this GetTaxFormResponse object is equal to o. */ + /** + * Return true if this GetTaxFormResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -150,8 +156,8 @@ public boolean equals(Object o) { return false; } GetTaxFormResponse getTaxFormResponse = (GetTaxFormResponse) o; - return Arrays.equals(this.content, getTaxFormResponse.content) - && Objects.equals(this.contentType, getTaxFormResponse.contentType); + return Arrays.equals(this.content, getTaxFormResponse.content) && + Objects.equals(this.contentType, getTaxFormResponse.contentType); } @Override @@ -170,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -179,23 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of GetTaxFormResponse given an JSON string * * @param jsonString JSON string * @return An instance of GetTaxFormResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * GetTaxFormResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to GetTaxFormResponse */ public static GetTaxFormResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GetTaxFormResponse.class); } - - /** - * Convert an instance of GetTaxFormResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of GetTaxFormResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/GrantLimit.java b/src/main/java/com/adyen/model/balanceplatform/GrantLimit.java index 3ca21beb3..11d54f67e 100644 --- a/src/main/java/com/adyen/model/balanceplatform/GrantLimit.java +++ b/src/main/java/com/adyen/model/balanceplatform/GrantLimit.java @@ -2,33 +2,47 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** GrantLimit */ -@JsonPropertyOrder({GrantLimit.JSON_PROPERTY_AMOUNT}) + +/** + * GrantLimit + */ +@JsonPropertyOrder({ + GrantLimit.JSON_PROPERTY_AMOUNT +}) + public class GrantLimit { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; - public GrantLimit() {} + public GrantLimit() { + } /** * amount * - * @param amount + * @param amount * @return the current {@code GrantLimit} instance, allowing for method chaining */ public GrantLimit amount(Amount amount) { @@ -38,8 +52,7 @@ public GrantLimit amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -50,7 +63,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,7 +71,9 @@ public void setAmount(Amount amount) { this.amount = amount; } - /** Return true if this GrantLimit object is equal to o. */ + /** + * Return true if this GrantLimit object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,7 +101,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,7 +111,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of GrantLimit given an JSON string * * @param jsonString JSON string @@ -105,12 +121,11 @@ private String toIndentedString(Object o) { public static GrantLimit fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GrantLimit.class); } - - /** - * Convert an instance of GrantLimit to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of GrantLimit to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/GrantOffer.java b/src/main/java/com/adyen/model/balanceplatform/GrantOffer.java index 533556a4b..5c2ca4013 100644 --- a/src/main/java/com/adyen/model/balanceplatform/GrantOffer.java +++ b/src/main/java/com/adyen/model/balanceplatform/GrantOffer.java @@ -2,27 +2,35 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.Amount; +import com.adyen.model.balanceplatform.Fee; +import com.adyen.model.balanceplatform.Repayment; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** GrantOffer */ + +/** + * GrantOffer + */ @JsonPropertyOrder({ GrantOffer.JSON_PROPERTY_ACCOUNT_HOLDER_ID, GrantOffer.JSON_PROPERTY_AMOUNT, @@ -33,6 +41,7 @@ GrantOffer.JSON_PROPERTY_REPAYMENT, GrantOffer.JSON_PROPERTY_STARTS_AT }) + public class GrantOffer { public static final String JSON_PROPERTY_ACCOUNT_HOLDER_ID = "accountHolderId"; private String accountHolderId; @@ -40,8 +49,11 @@ public class GrantOffer { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; - /** The contract type of the grant offer. Possible value: **cashAdvance**, **loan**. */ + /** + * The contract type of the grant offer. Possible value: **cashAdvance**, **loan**. + */ public enum ContractTypeEnum { + CASHADVANCE(String.valueOf("cashAdvance")), LOAN(String.valueOf("loan")); @@ -51,7 +63,7 @@ public enum ContractTypeEnum { private String value; ContractTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -72,11 +84,7 @@ public static ContractTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ContractTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ContractTypeEnum.values())); + LOG.warning("ContractTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ContractTypeEnum.values())); return null; } } @@ -99,7 +107,8 @@ public static ContractTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_STARTS_AT = "startsAt"; private OffsetDateTime startsAt; - public GrantOffer() {} + public GrantOffer() { + } /** * The identifier of the account holder to which the grant is offered. @@ -114,7 +123,6 @@ public GrantOffer accountHolderId(String accountHolderId) { /** * The identifier of the account holder to which the grant is offered. - * * @return accountHolderId The identifier of the account holder to which the grant is offered. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @@ -137,7 +145,7 @@ public void setAccountHolderId(String accountHolderId) { /** * amount * - * @param amount + * @param amount * @return the current {@code GrantOffer} instance, allowing for method chaining */ public GrantOffer amount(Amount amount) { @@ -147,8 +155,7 @@ public GrantOffer amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,7 +166,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -170,8 +177,7 @@ public void setAmount(Amount amount) { /** * The contract type of the grant offer. Possible value: **cashAdvance**, **loan**. * - * @param contractType The contract type of the grant offer. Possible value: **cashAdvance**, - * **loan**. + * @param contractType The contract type of the grant offer. Possible value: **cashAdvance**, **loan**. * @return the current {@code GrantOffer} instance, allowing for method chaining */ public GrantOffer contractType(ContractTypeEnum contractType) { @@ -181,9 +187,7 @@ public GrantOffer contractType(ContractTypeEnum contractType) { /** * The contract type of the grant offer. Possible value: **cashAdvance**, **loan**. - * - * @return contractType The contract type of the grant offer. Possible value: **cashAdvance**, - * **loan**. + * @return contractType The contract type of the grant offer. Possible value: **cashAdvance**, **loan**. */ @JsonProperty(JSON_PROPERTY_CONTRACT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,8 +198,7 @@ public ContractTypeEnum getContractType() { /** * The contract type of the grant offer. Possible value: **cashAdvance**, **loan**. * - * @param contractType The contract type of the grant offer. Possible value: **cashAdvance**, - * **loan**. + * @param contractType The contract type of the grant offer. Possible value: **cashAdvance**, **loan**. */ @JsonProperty(JSON_PROPERTY_CONTRACT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -216,7 +219,6 @@ public GrantOffer expiresAt(OffsetDateTime expiresAt) { /** * The end date of the grant offer validity period. - * * @return expiresAt The end date of the grant offer validity period. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @@ -239,7 +241,7 @@ public void setExpiresAt(OffsetDateTime expiresAt) { /** * fee * - * @param fee + * @param fee * @return the current {@code GrantOffer} instance, allowing for method chaining */ public GrantOffer fee(Fee fee) { @@ -249,8 +251,7 @@ public GrantOffer fee(Fee fee) { /** * Get fee - * - * @return fee + * @return fee */ @JsonProperty(JSON_PROPERTY_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -261,7 +262,7 @@ public Fee getFee() { /** * fee * - * @param fee + * @param fee */ @JsonProperty(JSON_PROPERTY_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -282,7 +283,6 @@ public GrantOffer id(String id) { /** * The unique identifier of the grant offer. - * * @return id The unique identifier of the grant offer. */ @JsonProperty(JSON_PROPERTY_ID) @@ -305,7 +305,7 @@ public void setId(String id) { /** * repayment * - * @param repayment + * @param repayment * @return the current {@code GrantOffer} instance, allowing for method chaining */ public GrantOffer repayment(Repayment repayment) { @@ -315,8 +315,7 @@ public GrantOffer repayment(Repayment repayment) { /** * Get repayment - * - * @return repayment + * @return repayment */ @JsonProperty(JSON_PROPERTY_REPAYMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -327,7 +326,7 @@ public Repayment getRepayment() { /** * repayment * - * @param repayment + * @param repayment */ @JsonProperty(JSON_PROPERTY_REPAYMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -348,7 +347,6 @@ public GrantOffer startsAt(OffsetDateTime startsAt) { /** * The starting date of the grant offer validity period. - * * @return startsAt The starting date of the grant offer validity period. */ @JsonProperty(JSON_PROPERTY_STARTS_AT) @@ -368,7 +366,9 @@ public void setStartsAt(OffsetDateTime startsAt) { this.startsAt = startsAt; } - /** Return true if this GrantOffer object is equal to o. */ + /** + * Return true if this GrantOffer object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -378,20 +378,19 @@ public boolean equals(Object o) { return false; } GrantOffer grantOffer = (GrantOffer) o; - return Objects.equals(this.accountHolderId, grantOffer.accountHolderId) - && Objects.equals(this.amount, grantOffer.amount) - && Objects.equals(this.contractType, grantOffer.contractType) - && Objects.equals(this.expiresAt, grantOffer.expiresAt) - && Objects.equals(this.fee, grantOffer.fee) - && Objects.equals(this.id, grantOffer.id) - && Objects.equals(this.repayment, grantOffer.repayment) - && Objects.equals(this.startsAt, grantOffer.startsAt); + return Objects.equals(this.accountHolderId, grantOffer.accountHolderId) && + Objects.equals(this.amount, grantOffer.amount) && + Objects.equals(this.contractType, grantOffer.contractType) && + Objects.equals(this.expiresAt, grantOffer.expiresAt) && + Objects.equals(this.fee, grantOffer.fee) && + Objects.equals(this.id, grantOffer.id) && + Objects.equals(this.repayment, grantOffer.repayment) && + Objects.equals(this.startsAt, grantOffer.startsAt); } @Override public int hashCode() { - return Objects.hash( - accountHolderId, amount, contractType, expiresAt, fee, id, repayment, startsAt); + return Objects.hash(accountHolderId, amount, contractType, expiresAt, fee, id, repayment, startsAt); } @Override @@ -411,7 +410,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -420,7 +420,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of GrantOffer given an JSON string * * @param jsonString JSON string @@ -430,12 +430,11 @@ private String toIndentedString(Object o) { public static GrantOffer fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GrantOffer.class); } - - /** - * Convert an instance of GrantOffer to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of GrantOffer to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/GrantOffers.java b/src/main/java/com/adyen/model/balanceplatform/GrantOffers.java index 31a8f8664..4b882c105 100644 --- a/src/main/java/com/adyen/model/balanceplatform/GrantOffers.java +++ b/src/main/java/com/adyen/model/balanceplatform/GrantOffers.java @@ -2,30 +2,44 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.GrantOffer; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * GrantOffers + */ +@JsonPropertyOrder({ + GrantOffers.JSON_PROPERTY_GRANT_OFFERS +}) -/** GrantOffers */ -@JsonPropertyOrder({GrantOffers.JSON_PROPERTY_GRANT_OFFERS}) public class GrantOffers { public static final String JSON_PROPERTY_GRANT_OFFERS = "grantOffers"; private List grantOffers; - public GrantOffers() {} + public GrantOffers() { + } /** * A list of available grant offers. @@ -48,7 +62,6 @@ public GrantOffers addGrantOffersItem(GrantOffer grantOffersItem) { /** * A list of available grant offers. - * * @return grantOffers A list of available grant offers. */ @JsonProperty(JSON_PROPERTY_GRANT_OFFERS) @@ -68,7 +81,9 @@ public void setGrantOffers(List grantOffers) { this.grantOffers = grantOffers; } - /** Return true if this GrantOffers object is equal to o. */ + /** + * Return true if this GrantOffers object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -96,7 +111,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -105,7 +121,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of GrantOffers given an JSON string * * @param jsonString JSON string @@ -115,12 +131,11 @@ private String toIndentedString(Object o) { public static GrantOffers fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GrantOffers.class); } - - /** - * Convert an instance of GrantOffers to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of GrantOffers to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/HKLocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/HKLocalAccountIdentification.java index c8915897e..44c04873c 100644 --- a/src/main/java/com/adyen/model/balanceplatform/HKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/HKLocalAccountIdentification.java @@ -2,31 +2,37 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** HKLocalAccountIdentification */ + +/** + * HKLocalAccountIdentification + */ @JsonPropertyOrder({ HKLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, HKLocalAccountIdentification.JSON_PROPERTY_CLEARING_CODE, HKLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class HKLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -34,8 +40,11 @@ public class HKLocalAccountIdentification { public static final String JSON_PROPERTY_CLEARING_CODE = "clearingCode"; private String clearingCode; - /** **hkLocal** */ + /** + * **hkLocal** + */ public enum TypeEnum { + HKLOCAL(String.valueOf("hkLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -43,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -76,14 +81,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public HKLocalAccountIdentification() {} + public HKLocalAccountIdentification() { + } /** - * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. - * Starts with the 3-digit branch code. + * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. * - * @param accountNumber The 9- to 15-character bank account number (alphanumeric), without - * separators or whitespace. Starts with the 3-digit branch code. + * @param accountNumber The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. * @return the current {@code HKLocalAccountIdentification} instance, allowing for method chaining */ public HKLocalAccountIdentification accountNumber(String accountNumber) { @@ -92,11 +96,8 @@ public HKLocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. - * Starts with the 3-digit branch code. - * - * @return accountNumber The 9- to 15-character bank account number (alphanumeric), without - * separators or whitespace. Starts with the 3-digit branch code. + * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. + * @return accountNumber The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,11 +106,9 @@ public String getAccountNumber() { } /** - * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. - * Starts with the 3-digit branch code. + * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. * - * @param accountNumber The 9- to 15-character bank account number (alphanumeric), without - * separators or whitespace. Starts with the 3-digit branch code. + * @param accountNumber The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -130,7 +129,6 @@ public HKLocalAccountIdentification clearingCode(String clearingCode) { /** * The 3-digit clearing code, without separators or whitespace. - * * @return clearingCode The 3-digit clearing code, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_CLEARING_CODE) @@ -163,7 +161,6 @@ public HKLocalAccountIdentification type(TypeEnum type) { /** * **hkLocal** - * * @return type **hkLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -183,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this HKLocalAccountIdentification object is equal to o. */ + /** + * Return true if this HKLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -193,9 +192,9 @@ public boolean equals(Object o) { return false; } HKLocalAccountIdentification hkLocalAccountIdentification = (HKLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, hkLocalAccountIdentification.accountNumber) - && Objects.equals(this.clearingCode, hkLocalAccountIdentification.clearingCode) - && Objects.equals(this.type, hkLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, hkLocalAccountIdentification.accountNumber) && + Objects.equals(this.clearingCode, hkLocalAccountIdentification.clearingCode) && + Objects.equals(this.type, hkLocalAccountIdentification.type); } @Override @@ -215,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,24 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of HKLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of HKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * HKLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to HKLocalAccountIdentification */ - public static HKLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static HKLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, HKLocalAccountIdentification.class); } - - /** - * Convert an instance of HKLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of HKLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/HULocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/HULocalAccountIdentification.java index 5683cbc72..5ca0e924b 100644 --- a/src/main/java/com/adyen/model/balanceplatform/HULocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/HULocalAccountIdentification.java @@ -2,36 +2,45 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** HULocalAccountIdentification */ + +/** + * HULocalAccountIdentification + */ @JsonPropertyOrder({ HULocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, HULocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class HULocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - /** **huLocal** */ + /** + * **huLocal** + */ public enum TypeEnum { + HULOCAL(String.valueOf("huLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -39,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -72,7 +77,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public HULocalAccountIdentification() {} + public HULocalAccountIdentification() { + } /** * The 24-digit bank account number, without separators or whitespace. @@ -87,7 +93,6 @@ public HULocalAccountIdentification accountNumber(String accountNumber) { /** * The 24-digit bank account number, without separators or whitespace. - * * @return accountNumber The 24-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -120,7 +125,6 @@ public HULocalAccountIdentification type(TypeEnum type) { /** * **huLocal** - * * @return type **huLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -140,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this HULocalAccountIdentification object is equal to o. */ + /** + * Return true if this HULocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -150,8 +156,8 @@ public boolean equals(Object o) { return false; } HULocalAccountIdentification huLocalAccountIdentification = (HULocalAccountIdentification) o; - return Objects.equals(this.accountNumber, huLocalAccountIdentification.accountNumber) - && Objects.equals(this.type, huLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, huLocalAccountIdentification.accountNumber) && + Objects.equals(this.type, huLocalAccountIdentification.type); } @Override @@ -170,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -179,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of HULocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of HULocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * HULocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to HULocalAccountIdentification */ - public static HULocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static HULocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, HULocalAccountIdentification.class); } - - /** - * Convert an instance of HULocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of HULocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/Href.java b/src/main/java/com/adyen/model/balanceplatform/Href.java index c228ee0e0..80c4d51b2 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Href.java +++ b/src/main/java/com/adyen/model/balanceplatform/Href.java @@ -2,33 +2,46 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Href */ -@JsonPropertyOrder({Href.JSON_PROPERTY_HREF}) + +/** + * Href + */ +@JsonPropertyOrder({ + Href.JSON_PROPERTY_HREF +}) + public class Href { public static final String JSON_PROPERTY_HREF = "href"; private String href; - public Href() {} + public Href() { + } /** * href * - * @param href + * @param href * @return the current {@code Href} instance, allowing for method chaining */ public Href href(String href) { @@ -38,8 +51,7 @@ public Href href(String href) { /** * Get href - * - * @return href + * @return href */ @JsonProperty(JSON_PROPERTY_HREF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -50,7 +62,7 @@ public String getHref() { /** * href * - * @param href + * @param href */ @JsonProperty(JSON_PROPERTY_HREF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,7 +70,9 @@ public void setHref(String href) { this.href = href; } - /** Return true if this Href object is equal to o. */ + /** + * Return true if this Href object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,7 +110,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Href given an JSON string * * @param jsonString JSON string @@ -105,12 +120,11 @@ private String toIndentedString(Object o) { public static Href fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Href.class); } - - /** - * Convert an instance of Href to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Href to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/IbanAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/IbanAccountIdentification.java index 19889943a..d0ec8f95d 100644 --- a/src/main/java/com/adyen/model/balanceplatform/IbanAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/IbanAccountIdentification.java @@ -2,36 +2,45 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** IbanAccountIdentification */ + +/** + * IbanAccountIdentification + */ @JsonPropertyOrder({ IbanAccountIdentification.JSON_PROPERTY_IBAN, IbanAccountIdentification.JSON_PROPERTY_TYPE }) + public class IbanAccountIdentification { public static final String JSON_PROPERTY_IBAN = "iban"; private String iban; - /** **iban** */ + /** + * **iban** + */ public enum TypeEnum { + IBAN(String.valueOf("iban")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -39,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -72,14 +77,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public IbanAccountIdentification() {} + public IbanAccountIdentification() { + } /** - * The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. * - * @param iban The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @param iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. * @return the current {@code IbanAccountIdentification} instance, allowing for method chaining */ public IbanAccountIdentification iban(String iban) { @@ -88,11 +92,8 @@ public IbanAccountIdentification iban(String iban) { } /** - * The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. - * - * @return iban The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @return iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,11 +102,9 @@ public String getIban() { } /** - * The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. * - * @param iban The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @param iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,7 +125,6 @@ public IbanAccountIdentification type(TypeEnum type) { /** * **iban** - * * @return type **iban** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -146,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this IbanAccountIdentification object is equal to o. */ + /** + * Return true if this IbanAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +156,8 @@ public boolean equals(Object o) { return false; } IbanAccountIdentification ibanAccountIdentification = (IbanAccountIdentification) o; - return Objects.equals(this.iban, ibanAccountIdentification.iban) - && Objects.equals(this.type, ibanAccountIdentification.type); + return Objects.equals(this.iban, ibanAccountIdentification.iban) && + Objects.equals(this.type, ibanAccountIdentification.type); } @Override @@ -176,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -185,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of IbanAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of IbanAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * IbanAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to IbanAccountIdentification */ - public static IbanAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static IbanAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, IbanAccountIdentification.class); } - - /** - * Convert an instance of IbanAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of IbanAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/IbanAccountIdentificationRequirement.java b/src/main/java/com/adyen/model/balanceplatform/IbanAccountIdentificationRequirement.java index f0747e208..e1a6f0825 100644 --- a/src/main/java/com/adyen/model/balanceplatform/IbanAccountIdentificationRequirement.java +++ b/src/main/java/com/adyen/model/balanceplatform/IbanAccountIdentificationRequirement.java @@ -2,33 +2,39 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** IbanAccountIdentificationRequirement */ + +/** + * IbanAccountIdentificationRequirement + */ @JsonPropertyOrder({ IbanAccountIdentificationRequirement.JSON_PROPERTY_DESCRIPTION, IbanAccountIdentificationRequirement.JSON_PROPERTY_IBAN_PREFIXES, IbanAccountIdentificationRequirement.JSON_PROPERTY_TYPE }) + public class IbanAccountIdentificationRequirement { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -36,8 +42,11 @@ public class IbanAccountIdentificationRequirement { public static final String JSON_PROPERTY_IBAN_PREFIXES = "ibanPrefixes"; private List ibanPrefixes; - /** **ibanAccountIdentificationRequirement** */ + /** + * **ibanAccountIdentificationRequirement** + */ public enum TypeEnum { + IBANACCOUNTIDENTIFICATIONREQUIREMENT(String.valueOf("ibanAccountIdentificationRequirement")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -45,7 +54,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -66,11 +75,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -78,16 +83,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public IbanAccountIdentificationRequirement() {} + public IbanAccountIdentificationRequirement() { + } /** - * Specifies the allowed prefixes for the international bank account number as defined in the - * ISO-13616 standard. + * Specifies the allowed prefixes for the international bank account number as defined in the ISO-13616 standard. * - * @param description Specifies the allowed prefixes for the international bank account number as - * defined in the ISO-13616 standard. - * @return the current {@code IbanAccountIdentificationRequirement} instance, allowing for method - * chaining + * @param description Specifies the allowed prefixes for the international bank account number as defined in the ISO-13616 standard. + * @return the current {@code IbanAccountIdentificationRequirement} instance, allowing for method chaining */ public IbanAccountIdentificationRequirement description(String description) { this.description = description; @@ -95,11 +98,8 @@ public IbanAccountIdentificationRequirement description(String description) { } /** - * Specifies the allowed prefixes for the international bank account number as defined in the - * ISO-13616 standard. - * - * @return description Specifies the allowed prefixes for the international bank account number as - * defined in the ISO-13616 standard. + * Specifies the allowed prefixes for the international bank account number as defined in the ISO-13616 standard. + * @return description Specifies the allowed prefixes for the international bank account number as defined in the ISO-13616 standard. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,11 +108,9 @@ public String getDescription() { } /** - * Specifies the allowed prefixes for the international bank account number as defined in the - * ISO-13616 standard. + * Specifies the allowed prefixes for the international bank account number as defined in the ISO-13616 standard. * - * @param description Specifies the allowed prefixes for the international bank account number as - * defined in the ISO-13616 standard. + * @param description Specifies the allowed prefixes for the international bank account number as defined in the ISO-13616 standard. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,10 +121,8 @@ public void setDescription(String description) { /** * Contains the list of allowed prefixes for international bank accounts. For example: NL, US, UK. * - * @param ibanPrefixes Contains the list of allowed prefixes for international bank accounts. For - * example: NL, US, UK. - * @return the current {@code IbanAccountIdentificationRequirement} instance, allowing for method - * chaining + * @param ibanPrefixes Contains the list of allowed prefixes for international bank accounts. For example: NL, US, UK. + * @return the current {@code IbanAccountIdentificationRequirement} instance, allowing for method chaining */ public IbanAccountIdentificationRequirement ibanPrefixes(List ibanPrefixes) { this.ibanPrefixes = ibanPrefixes; @@ -143,9 +139,7 @@ public IbanAccountIdentificationRequirement addIbanPrefixesItem(String ibanPrefi /** * Contains the list of allowed prefixes for international bank accounts. For example: NL, US, UK. - * - * @return ibanPrefixes Contains the list of allowed prefixes for international bank accounts. For - * example: NL, US, UK. + * @return ibanPrefixes Contains the list of allowed prefixes for international bank accounts. For example: NL, US, UK. */ @JsonProperty(JSON_PROPERTY_IBAN_PREFIXES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,8 +150,7 @@ public List getIbanPrefixes() { /** * Contains the list of allowed prefixes for international bank accounts. For example: NL, US, UK. * - * @param ibanPrefixes Contains the list of allowed prefixes for international bank accounts. For - * example: NL, US, UK. + * @param ibanPrefixes Contains the list of allowed prefixes for international bank accounts. For example: NL, US, UK. */ @JsonProperty(JSON_PROPERTY_IBAN_PREFIXES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,8 +162,7 @@ public void setIbanPrefixes(List ibanPrefixes) { * **ibanAccountIdentificationRequirement** * * @param type **ibanAccountIdentificationRequirement** - * @return the current {@code IbanAccountIdentificationRequirement} instance, allowing for method - * chaining + * @return the current {@code IbanAccountIdentificationRequirement} instance, allowing for method chaining */ public IbanAccountIdentificationRequirement type(TypeEnum type) { this.type = type; @@ -179,7 +171,6 @@ public IbanAccountIdentificationRequirement type(TypeEnum type) { /** * **ibanAccountIdentificationRequirement** - * * @return type **ibanAccountIdentificationRequirement** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -199,7 +190,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this IbanAccountIdentificationRequirement object is equal to o. */ + /** + * Return true if this IbanAccountIdentificationRequirement object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -208,11 +201,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - IbanAccountIdentificationRequirement ibanAccountIdentificationRequirement = - (IbanAccountIdentificationRequirement) o; - return Objects.equals(this.description, ibanAccountIdentificationRequirement.description) - && Objects.equals(this.ibanPrefixes, ibanAccountIdentificationRequirement.ibanPrefixes) - && Objects.equals(this.type, ibanAccountIdentificationRequirement.type); + IbanAccountIdentificationRequirement ibanAccountIdentificationRequirement = (IbanAccountIdentificationRequirement) o; + return Objects.equals(this.description, ibanAccountIdentificationRequirement.description) && + Objects.equals(this.ibanPrefixes, ibanAccountIdentificationRequirement.ibanPrefixes) && + Objects.equals(this.type, ibanAccountIdentificationRequirement.type); } @Override @@ -232,7 +224,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -241,24 +234,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of IbanAccountIdentificationRequirement given an JSON string * * @param jsonString JSON string * @return An instance of IbanAccountIdentificationRequirement - * @throws JsonProcessingException if the JSON string is invalid with respect to - * IbanAccountIdentificationRequirement + * @throws JsonProcessingException if the JSON string is invalid with respect to IbanAccountIdentificationRequirement */ - public static IbanAccountIdentificationRequirement fromJson(String jsonString) - throws JsonProcessingException { + public static IbanAccountIdentificationRequirement fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, IbanAccountIdentificationRequirement.class); } - - /** - * Convert an instance of IbanAccountIdentificationRequirement to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of IbanAccountIdentificationRequirement to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/InternationalTransactionRestriction.java b/src/main/java/com/adyen/model/balanceplatform/InternationalTransactionRestriction.java index 00236b240..48d84ce0e 100644 --- a/src/main/java/com/adyen/model/balanceplatform/InternationalTransactionRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/InternationalTransactionRestriction.java @@ -2,26 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** InternationalTransactionRestriction */ + +/** + * InternationalTransactionRestriction + */ @JsonPropertyOrder({ InternationalTransactionRestriction.JSON_PROPERTY_OPERATION, InternationalTransactionRestriction.JSON_PROPERTY_VALUE }) + public class InternationalTransactionRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -29,14 +39,14 @@ public class InternationalTransactionRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private Boolean value; - public InternationalTransactionRestriction() {} + public InternationalTransactionRestriction() { + } /** * Defines how the condition must be evaluated. * * @param operation Defines how the condition must be evaluated. - * @return the current {@code InternationalTransactionRestriction} instance, allowing for method - * chaining + * @return the current {@code InternationalTransactionRestriction} instance, allowing for method chaining */ public InternationalTransactionRestriction operation(String operation) { this.operation = operation; @@ -45,7 +55,6 @@ public InternationalTransactionRestriction operation(String operation) { /** * Defines how the condition must be evaluated. - * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -66,15 +75,10 @@ public void setOperation(String operation) { } /** - * Boolean indicating whether transaction is an international transaction. Possible values: - - * **true**: The transaction is an international transaction. - **false**: The transaction is a - * domestic transaction. + * Boolean indicating whether transaction is an international transaction. Possible values: - **true**: The transaction is an international transaction. - **false**: The transaction is a domestic transaction. * - * @param value Boolean indicating whether transaction is an international transaction. Possible - * values: - **true**: The transaction is an international transaction. - **false**: The - * transaction is a domestic transaction. - * @return the current {@code InternationalTransactionRestriction} instance, allowing for method - * chaining + * @param value Boolean indicating whether transaction is an international transaction. Possible values: - **true**: The transaction is an international transaction. - **false**: The transaction is a domestic transaction. + * @return the current {@code InternationalTransactionRestriction} instance, allowing for method chaining */ public InternationalTransactionRestriction value(Boolean value) { this.value = value; @@ -82,13 +86,8 @@ public InternationalTransactionRestriction value(Boolean value) { } /** - * Boolean indicating whether transaction is an international transaction. Possible values: - - * **true**: The transaction is an international transaction. - **false**: The transaction is a - * domestic transaction. - * - * @return value Boolean indicating whether transaction is an international transaction. Possible - * values: - **true**: The transaction is an international transaction. - **false**: The - * transaction is a domestic transaction. + * Boolean indicating whether transaction is an international transaction. Possible values: - **true**: The transaction is an international transaction. - **false**: The transaction is a domestic transaction. + * @return value Boolean indicating whether transaction is an international transaction. Possible values: - **true**: The transaction is an international transaction. - **false**: The transaction is a domestic transaction. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,13 +96,9 @@ public Boolean getValue() { } /** - * Boolean indicating whether transaction is an international transaction. Possible values: - - * **true**: The transaction is an international transaction. - **false**: The transaction is a - * domestic transaction. + * Boolean indicating whether transaction is an international transaction. Possible values: - **true**: The transaction is an international transaction. - **false**: The transaction is a domestic transaction. * - * @param value Boolean indicating whether transaction is an international transaction. Possible - * values: - **true**: The transaction is an international transaction. - **false**: The - * transaction is a domestic transaction. + * @param value Boolean indicating whether transaction is an international transaction. Possible values: - **true**: The transaction is an international transaction. - **false**: The transaction is a domestic transaction. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,7 +106,9 @@ public void setValue(Boolean value) { this.value = value; } - /** Return true if this InternationalTransactionRestriction object is equal to o. */ + /** + * Return true if this InternationalTransactionRestriction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -120,10 +117,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InternationalTransactionRestriction internationalTransactionRestriction = - (InternationalTransactionRestriction) o; - return Objects.equals(this.operation, internationalTransactionRestriction.operation) - && Objects.equals(this.value, internationalTransactionRestriction.value); + InternationalTransactionRestriction internationalTransactionRestriction = (InternationalTransactionRestriction) o; + return Objects.equals(this.operation, internationalTransactionRestriction.operation) && + Objects.equals(this.value, internationalTransactionRestriction.value); } @Override @@ -142,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -151,24 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of InternationalTransactionRestriction given an JSON string * * @param jsonString JSON string * @return An instance of InternationalTransactionRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * InternationalTransactionRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to InternationalTransactionRestriction */ - public static InternationalTransactionRestriction fromJson(String jsonString) - throws JsonProcessingException { + public static InternationalTransactionRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, InternationalTransactionRestriction.class); } - - /** - * Convert an instance of InternationalTransactionRestriction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of InternationalTransactionRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/InvalidField.java b/src/main/java/com/adyen/model/balanceplatform/InvalidField.java index 3d7f8e77f..c487d3f7a 100644 --- a/src/main/java/com/adyen/model/balanceplatform/InvalidField.java +++ b/src/main/java/com/adyen/model/balanceplatform/InvalidField.java @@ -2,27 +2,37 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** InvalidField */ + +/** + * InvalidField + */ @JsonPropertyOrder({ InvalidField.JSON_PROPERTY_NAME, InvalidField.JSON_PROPERTY_VALUE, InvalidField.JSON_PROPERTY_MESSAGE }) + public class InvalidField { public static final String JSON_PROPERTY_NAME = "name"; private String name; @@ -33,7 +43,8 @@ public class InvalidField { public static final String JSON_PROPERTY_MESSAGE = "message"; private String message; - public InvalidField() {} + public InvalidField() { + } /** * The field that has an invalid value. @@ -48,7 +59,6 @@ public InvalidField name(String name) { /** * The field that has an invalid value. - * * @return name The field that has an invalid value. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -81,7 +91,6 @@ public InvalidField value(String value) { /** * The invalid value. - * * @return value The invalid value. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -114,7 +123,6 @@ public InvalidField message(String message) { /** * Description of the validation error. - * * @return message Description of the validation error. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -134,7 +142,9 @@ public void setMessage(String message) { this.message = message; } - /** Return true if this InvalidField object is equal to o. */ + /** + * Return true if this InvalidField object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,9 +154,9 @@ public boolean equals(Object o) { return false; } InvalidField invalidField = (InvalidField) o; - return Objects.equals(this.name, invalidField.name) - && Objects.equals(this.value, invalidField.value) - && Objects.equals(this.message, invalidField.message); + return Objects.equals(this.name, invalidField.name) && + Objects.equals(this.value, invalidField.value) && + Objects.equals(this.message, invalidField.message); } @Override @@ -166,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of InvalidField given an JSON string * * @param jsonString JSON string @@ -185,12 +196,11 @@ private String toIndentedString(Object o) { public static InvalidField fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, InvalidField.class); } - - /** - * Convert an instance of InvalidField to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of InvalidField to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/JSON.java b/src/main/java/com/adyen/model/balanceplatform/JSON.java index ee05bfaec..e76bd8d16 100644 --- a/src/main/java/com/adyen/model/balanceplatform/JSON.java +++ b/src/main/java/com/adyen/model/balanceplatform/JSON.java @@ -1,18 +1,21 @@ package com.adyen.model.balanceplatform; -import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; +import com.adyen.serializer.ByteArrayDeserializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; +import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; +import com.adyen.model.balanceplatform.*; + import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -37,7 +40,6 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. - * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -54,13 +56,11 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { - return mapper; - } + public static ObjectMapper getMapper() { return mapper; } /** - * Returns the target model class that should be used to deserialize the input data. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,7 +73,9 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** Helper class to register the discriminator mappings. */ + /** + * Helper class to register the discriminator mappings. + */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -115,9 +117,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. This - * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -162,14 +164,13 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so - * it's not possible to use the instanceof keyword. + * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, + * so it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf( - Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -193,58 +194,59 @@ public static boolean isInstanceOf( return false; } - /** A map of discriminators for all model classes. */ - private static final Map, ClassDiscriminatorMapping> modelDiscriminators = - new HashMap, ClassDiscriminatorMapping>(); + /** + * A map of discriminators for all model classes. + */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); - /** A map of oneOf/anyOf descendants for each model class. */ + /** + * A map of oneOf/anyOf descendants for each model class. + */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator( - Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = - new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants( - Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants(Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static { + static + { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/balanceplatform/Link.java b/src/main/java/com/adyen/model/balanceplatform/Link.java index b8be30eab..63a92b632 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Link.java +++ b/src/main/java/com/adyen/model/balanceplatform/Link.java @@ -2,22 +2,32 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.Href; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Link */ + +/** + * Link + */ @JsonPropertyOrder({ Link.JSON_PROPERTY_FIRST, Link.JSON_PROPERTY_LAST, @@ -25,6 +35,7 @@ Link.JSON_PROPERTY_PREVIOUS, Link.JSON_PROPERTY_SELF }) + public class Link { public static final String JSON_PROPERTY_FIRST = "first"; private Href first; @@ -41,12 +52,13 @@ public class Link { public static final String JSON_PROPERTY_SELF = "self"; private Href self; - public Link() {} + public Link() { + } /** * first * - * @param first + * @param first * @return the current {@code Link} instance, allowing for method chaining */ public Link first(Href first) { @@ -56,8 +68,7 @@ public Link first(Href first) { /** * Get first - * - * @return first + * @return first */ @JsonProperty(JSON_PROPERTY_FIRST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,7 +79,7 @@ public Href getFirst() { /** * first * - * @param first + * @param first */ @JsonProperty(JSON_PROPERTY_FIRST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,7 +90,7 @@ public void setFirst(Href first) { /** * last * - * @param last + * @param last * @return the current {@code Link} instance, allowing for method chaining */ public Link last(Href last) { @@ -89,8 +100,7 @@ public Link last(Href last) { /** * Get last - * - * @return last + * @return last */ @JsonProperty(JSON_PROPERTY_LAST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,7 +111,7 @@ public Href getLast() { /** * last * - * @param last + * @param last */ @JsonProperty(JSON_PROPERTY_LAST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,7 +122,7 @@ public void setLast(Href last) { /** * next * - * @param next + * @param next * @return the current {@code Link} instance, allowing for method chaining */ public Link next(Href next) { @@ -122,8 +132,7 @@ public Link next(Href next) { /** * Get next - * - * @return next + * @return next */ @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -134,7 +143,7 @@ public Href getNext() { /** * next * - * @param next + * @param next */ @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,7 +154,7 @@ public void setNext(Href next) { /** * previous * - * @param previous + * @param previous * @return the current {@code Link} instance, allowing for method chaining */ public Link previous(Href previous) { @@ -155,8 +164,7 @@ public Link previous(Href previous) { /** * Get previous - * - * @return previous + * @return previous */ @JsonProperty(JSON_PROPERTY_PREVIOUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,7 +175,7 @@ public Href getPrevious() { /** * previous * - * @param previous + * @param previous */ @JsonProperty(JSON_PROPERTY_PREVIOUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,7 +186,7 @@ public void setPrevious(Href previous) { /** * self * - * @param self + * @param self * @return the current {@code Link} instance, allowing for method chaining */ public Link self(Href self) { @@ -188,8 +196,7 @@ public Link self(Href self) { /** * Get self - * - * @return self + * @return self */ @JsonProperty(JSON_PROPERTY_SELF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,7 +207,7 @@ public Href getSelf() { /** * self * - * @param self + * @param self */ @JsonProperty(JSON_PROPERTY_SELF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,7 +215,9 @@ public void setSelf(Href self) { this.self = self; } - /** Return true if this Link object is equal to o. */ + /** + * Return true if this Link object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -218,11 +227,11 @@ public boolean equals(Object o) { return false; } Link link = (Link) o; - return Objects.equals(this.first, link.first) - && Objects.equals(this.last, link.last) - && Objects.equals(this.next, link.next) - && Objects.equals(this.previous, link.previous) - && Objects.equals(this.self, link.self); + return Objects.equals(this.first, link.first) && + Objects.equals(this.last, link.last) && + Objects.equals(this.next, link.next) && + Objects.equals(this.previous, link.previous) && + Objects.equals(this.self, link.self); } @Override @@ -244,7 +253,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -253,7 +263,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Link given an JSON string * * @param jsonString JSON string @@ -263,12 +273,11 @@ private String toIndentedString(Object o) { public static Link fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Link.class); } - - /** - * Convert an instance of Link to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Link to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/ListNetworkTokensResponse.java b/src/main/java/com/adyen/model/balanceplatform/ListNetworkTokensResponse.java index fb3fe0ebb..c3558506c 100644 --- a/src/main/java/com/adyen/model/balanceplatform/ListNetworkTokensResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/ListNetworkTokensResponse.java @@ -2,30 +2,44 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.NetworkToken; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * ListNetworkTokensResponse + */ +@JsonPropertyOrder({ + ListNetworkTokensResponse.JSON_PROPERTY_NETWORK_TOKENS +}) -/** ListNetworkTokensResponse */ -@JsonPropertyOrder({ListNetworkTokensResponse.JSON_PROPERTY_NETWORK_TOKENS}) public class ListNetworkTokensResponse { public static final String JSON_PROPERTY_NETWORK_TOKENS = "networkTokens"; private List networkTokens; - public ListNetworkTokensResponse() {} + public ListNetworkTokensResponse() { + } /** * List of network tokens. @@ -48,7 +62,6 @@ public ListNetworkTokensResponse addNetworkTokensItem(NetworkToken networkTokens /** * List of network tokens. - * * @return networkTokens List of network tokens. */ @JsonProperty(JSON_PROPERTY_NETWORK_TOKENS) @@ -68,7 +81,9 @@ public void setNetworkTokens(List networkTokens) { this.networkTokens = networkTokens; } - /** Return true if this ListNetworkTokensResponse object is equal to o. */ + /** + * Return true if this ListNetworkTokensResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -96,7 +111,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -105,24 +121,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ListNetworkTokensResponse given an JSON string * * @param jsonString JSON string * @return An instance of ListNetworkTokensResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ListNetworkTokensResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to ListNetworkTokensResponse */ - public static ListNetworkTokensResponse fromJson(String jsonString) - throws JsonProcessingException { + public static ListNetworkTokensResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ListNetworkTokensResponse.class); } - - /** - * Convert an instance of ListNetworkTokensResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ListNetworkTokensResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/MatchingTransactionsRestriction.java b/src/main/java/com/adyen/model/balanceplatform/MatchingTransactionsRestriction.java index afe47fe42..49cf44a40 100644 --- a/src/main/java/com/adyen/model/balanceplatform/MatchingTransactionsRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/MatchingTransactionsRestriction.java @@ -2,26 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** MatchingTransactionsRestriction */ + +/** + * MatchingTransactionsRestriction + */ @JsonPropertyOrder({ MatchingTransactionsRestriction.JSON_PROPERTY_OPERATION, MatchingTransactionsRestriction.JSON_PROPERTY_VALUE }) + public class MatchingTransactionsRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -29,14 +39,14 @@ public class MatchingTransactionsRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private Integer value; - public MatchingTransactionsRestriction() {} + public MatchingTransactionsRestriction() { + } /** * Defines how the condition must be evaluated. * * @param operation Defines how the condition must be evaluated. - * @return the current {@code MatchingTransactionsRestriction} instance, allowing for method - * chaining + * @return the current {@code MatchingTransactionsRestriction} instance, allowing for method chaining */ public MatchingTransactionsRestriction operation(String operation) { this.operation = operation; @@ -45,7 +55,6 @@ public MatchingTransactionsRestriction operation(String operation) { /** * Defines how the condition must be evaluated. - * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -69,8 +78,7 @@ public void setOperation(String operation) { * The number of transactions. * * @param value The number of transactions. - * @return the current {@code MatchingTransactionsRestriction} instance, allowing for method - * chaining + * @return the current {@code MatchingTransactionsRestriction} instance, allowing for method chaining */ public MatchingTransactionsRestriction value(Integer value) { this.value = value; @@ -79,7 +87,6 @@ public MatchingTransactionsRestriction value(Integer value) { /** * The number of transactions. - * * @return value The number of transactions. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -99,7 +106,9 @@ public void setValue(Integer value) { this.value = value; } - /** Return true if this MatchingTransactionsRestriction object is equal to o. */ + /** + * Return true if this MatchingTransactionsRestriction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -108,10 +117,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - MatchingTransactionsRestriction matchingTransactionsRestriction = - (MatchingTransactionsRestriction) o; - return Objects.equals(this.operation, matchingTransactionsRestriction.operation) - && Objects.equals(this.value, matchingTransactionsRestriction.value); + MatchingTransactionsRestriction matchingTransactionsRestriction = (MatchingTransactionsRestriction) o; + return Objects.equals(this.operation, matchingTransactionsRestriction.operation) && + Objects.equals(this.value, matchingTransactionsRestriction.value); } @Override @@ -130,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -139,24 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of MatchingTransactionsRestriction given an JSON string * * @param jsonString JSON string * @return An instance of MatchingTransactionsRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * MatchingTransactionsRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to MatchingTransactionsRestriction */ - public static MatchingTransactionsRestriction fromJson(String jsonString) - throws JsonProcessingException { + public static MatchingTransactionsRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MatchingTransactionsRestriction.class); } - - /** - * Convert an instance of MatchingTransactionsRestriction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of MatchingTransactionsRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/MatchingValuesRestriction.java b/src/main/java/com/adyen/model/balanceplatform/MatchingValuesRestriction.java index fead0fb06..b1d6dba6e 100644 --- a/src/main/java/com/adyen/model/balanceplatform/MatchingValuesRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/MatchingValuesRestriction.java @@ -2,38 +2,47 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** MatchingValuesRestriction */ +/** + * MatchingValuesRestriction + */ @JsonPropertyOrder({ MatchingValuesRestriction.JSON_PROPERTY_OPERATION, MatchingValuesRestriction.JSON_PROPERTY_VALUE }) + public class MatchingValuesRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; - /** Gets or Sets value */ + /** + * Gets or Sets value + */ public enum ValueEnum { + ACQUIRERID(String.valueOf("acquirerId")), AMOUNT(String.valueOf("amount")), @@ -49,7 +58,7 @@ public enum ValueEnum { private String value; ValueEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -70,11 +79,7 @@ public static ValueEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ValueEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ValueEnum.values())); + LOG.warning("ValueEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ValueEnum.values())); return null; } } @@ -82,7 +87,8 @@ public static ValueEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUE = "value"; private List value; - public MatchingValuesRestriction() {} + public MatchingValuesRestriction() { + } /** * Defines how the condition must be evaluated. @@ -97,7 +103,6 @@ public MatchingValuesRestriction operation(String operation) { /** * Defines how the condition must be evaluated. - * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -120,7 +125,7 @@ public void setOperation(String operation) { /** * value * - * @param value + * @param value * @return the current {@code MatchingValuesRestriction} instance, allowing for method chaining */ public MatchingValuesRestriction value(List value) { @@ -138,8 +143,7 @@ public MatchingValuesRestriction addValueItem(ValueEnum valueItem) { /** * Get value - * - * @return value + * @return value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,7 +154,7 @@ public List getValue() { /** * value * - * @param value + * @param value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,7 +162,9 @@ public void setValue(List value) { this.value = value; } - /** Return true if this MatchingValuesRestriction object is equal to o. */ + /** + * Return true if this MatchingValuesRestriction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -168,8 +174,8 @@ public boolean equals(Object o) { return false; } MatchingValuesRestriction matchingValuesRestriction = (MatchingValuesRestriction) o; - return Objects.equals(this.operation, matchingValuesRestriction.operation) - && Objects.equals(this.value, matchingValuesRestriction.value); + return Objects.equals(this.operation, matchingValuesRestriction.operation) && + Objects.equals(this.value, matchingValuesRestriction.value); } @Override @@ -188,7 +194,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -197,24 +204,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of MatchingValuesRestriction given an JSON string * * @param jsonString JSON string * @return An instance of MatchingValuesRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * MatchingValuesRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to MatchingValuesRestriction */ - public static MatchingValuesRestriction fromJson(String jsonString) - throws JsonProcessingException { + public static MatchingValuesRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MatchingValuesRestriction.class); } - - /** - * Convert an instance of MatchingValuesRestriction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of MatchingValuesRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/MccsRestriction.java b/src/main/java/com/adyen/model/balanceplatform/MccsRestriction.java index ad2ef17c7..3da4cfb42 100644 --- a/src/main/java/com/adyen/model/balanceplatform/MccsRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/MccsRestriction.java @@ -2,25 +2,38 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * MccsRestriction + */ +@JsonPropertyOrder({ + MccsRestriction.JSON_PROPERTY_OPERATION, + MccsRestriction.JSON_PROPERTY_VALUE +}) -/** MccsRestriction */ -@JsonPropertyOrder({MccsRestriction.JSON_PROPERTY_OPERATION, MccsRestriction.JSON_PROPERTY_VALUE}) public class MccsRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -28,7 +41,8 @@ public class MccsRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private List value; - public MccsRestriction() {} + public MccsRestriction() { + } /** * Defines how the condition must be evaluated. @@ -43,7 +57,6 @@ public MccsRestriction operation(String operation) { /** * Defines how the condition must be evaluated. - * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -84,7 +97,6 @@ public MccsRestriction addValueItem(String valueItem) { /** * List of merchant category codes (MCCs). - * * @return value List of merchant category codes (MCCs). */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -104,7 +116,9 @@ public void setValue(List value) { this.value = value; } - /** Return true if this MccsRestriction object is equal to o. */ + /** + * Return true if this MccsRestriction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -114,8 +128,8 @@ public boolean equals(Object o) { return false; } MccsRestriction mccsRestriction = (MccsRestriction) o; - return Objects.equals(this.operation, mccsRestriction.operation) - && Objects.equals(this.value, mccsRestriction.value); + return Objects.equals(this.operation, mccsRestriction.operation) && + Objects.equals(this.value, mccsRestriction.value); } @Override @@ -134,7 +148,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -143,7 +158,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of MccsRestriction given an JSON string * * @param jsonString JSON string @@ -153,12 +168,11 @@ private String toIndentedString(Object o) { public static MccsRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MccsRestriction.class); } - - /** - * Convert an instance of MccsRestriction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of MccsRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/MerchantAcquirerPair.java b/src/main/java/com/adyen/model/balanceplatform/MerchantAcquirerPair.java index 96533ff3e..376053541 100644 --- a/src/main/java/com/adyen/model/balanceplatform/MerchantAcquirerPair.java +++ b/src/main/java/com/adyen/model/balanceplatform/MerchantAcquirerPair.java @@ -2,26 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** MerchantAcquirerPair */ + +/** + * MerchantAcquirerPair + */ @JsonPropertyOrder({ MerchantAcquirerPair.JSON_PROPERTY_ACQUIRER_ID, MerchantAcquirerPair.JSON_PROPERTY_MERCHANT_ID }) + public class MerchantAcquirerPair { public static final String JSON_PROPERTY_ACQUIRER_ID = "acquirerId"; private String acquirerId; @@ -29,7 +39,8 @@ public class MerchantAcquirerPair { public static final String JSON_PROPERTY_MERCHANT_ID = "merchantId"; private String merchantId; - public MerchantAcquirerPair() {} + public MerchantAcquirerPair() { + } /** * The acquirer ID. @@ -44,7 +55,6 @@ public MerchantAcquirerPair acquirerId(String acquirerId) { /** * The acquirer ID. - * * @return acquirerId The acquirer ID. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_ID) @@ -77,7 +87,6 @@ public MerchantAcquirerPair merchantId(String merchantId) { /** * The merchant identification number (MID). - * * @return merchantId The merchant identification number (MID). */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @@ -97,7 +106,9 @@ public void setMerchantId(String merchantId) { this.merchantId = merchantId; } - /** Return true if this MerchantAcquirerPair object is equal to o. */ + /** + * Return true if this MerchantAcquirerPair object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -107,8 +118,8 @@ public boolean equals(Object o) { return false; } MerchantAcquirerPair merchantAcquirerPair = (MerchantAcquirerPair) o; - return Objects.equals(this.acquirerId, merchantAcquirerPair.acquirerId) - && Objects.equals(this.merchantId, merchantAcquirerPair.merchantId); + return Objects.equals(this.acquirerId, merchantAcquirerPair.acquirerId) && + Objects.equals(this.merchantId, merchantAcquirerPair.merchantId); } @Override @@ -127,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,23 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of MerchantAcquirerPair given an JSON string * * @param jsonString JSON string * @return An instance of MerchantAcquirerPair - * @throws JsonProcessingException if the JSON string is invalid with respect to - * MerchantAcquirerPair + * @throws JsonProcessingException if the JSON string is invalid with respect to MerchantAcquirerPair */ public static MerchantAcquirerPair fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MerchantAcquirerPair.class); } - - /** - * Convert an instance of MerchantAcquirerPair to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of MerchantAcquirerPair to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/MerchantNamesRestriction.java b/src/main/java/com/adyen/model/balanceplatform/MerchantNamesRestriction.java index c9224bdac..74b9c829c 100644 --- a/src/main/java/com/adyen/model/balanceplatform/MerchantNamesRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/MerchantNamesRestriction.java @@ -2,28 +2,39 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.StringMatch; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** MerchantNamesRestriction */ +/** + * MerchantNamesRestriction + */ @JsonPropertyOrder({ MerchantNamesRestriction.JSON_PROPERTY_OPERATION, MerchantNamesRestriction.JSON_PROPERTY_VALUE }) + public class MerchantNamesRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -31,7 +42,8 @@ public class MerchantNamesRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private List value; - public MerchantNamesRestriction() {} + public MerchantNamesRestriction() { + } /** * Defines how the condition must be evaluated. @@ -46,7 +58,6 @@ public MerchantNamesRestriction operation(String operation) { /** * Defines how the condition must be evaluated. - * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -69,7 +80,7 @@ public void setOperation(String operation) { /** * value * - * @param value + * @param value * @return the current {@code MerchantNamesRestriction} instance, allowing for method chaining */ public MerchantNamesRestriction value(List value) { @@ -87,8 +98,7 @@ public MerchantNamesRestriction addValueItem(StringMatch valueItem) { /** * Get value - * - * @return value + * @return value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,7 +109,7 @@ public List getValue() { /** * value * - * @param value + * @param value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,7 +117,9 @@ public void setValue(List value) { this.value = value; } - /** Return true if this MerchantNamesRestriction object is equal to o. */ + /** + * Return true if this MerchantNamesRestriction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -117,8 +129,8 @@ public boolean equals(Object o) { return false; } MerchantNamesRestriction merchantNamesRestriction = (MerchantNamesRestriction) o; - return Objects.equals(this.operation, merchantNamesRestriction.operation) - && Objects.equals(this.value, merchantNamesRestriction.value); + return Objects.equals(this.operation, merchantNamesRestriction.operation) && + Objects.equals(this.value, merchantNamesRestriction.value); } @Override @@ -137,7 +149,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -146,24 +159,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of MerchantNamesRestriction given an JSON string * * @param jsonString JSON string * @return An instance of MerchantNamesRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * MerchantNamesRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to MerchantNamesRestriction */ - public static MerchantNamesRestriction fromJson(String jsonString) - throws JsonProcessingException { + public static MerchantNamesRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MerchantNamesRestriction.class); } - - /** - * Convert an instance of MerchantNamesRestriction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of MerchantNamesRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/MerchantsRestriction.java b/src/main/java/com/adyen/model/balanceplatform/MerchantsRestriction.java index b65cbd58d..b60e89675 100644 --- a/src/main/java/com/adyen/model/balanceplatform/MerchantsRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/MerchantsRestriction.java @@ -2,28 +2,39 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.MerchantAcquirerPair; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** MerchantsRestriction */ +/** + * MerchantsRestriction + */ @JsonPropertyOrder({ MerchantsRestriction.JSON_PROPERTY_OPERATION, MerchantsRestriction.JSON_PROPERTY_VALUE }) + public class MerchantsRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -31,7 +42,8 @@ public class MerchantsRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private List value; - public MerchantsRestriction() {} + public MerchantsRestriction() { + } /** * Defines how the condition must be evaluated. @@ -46,7 +58,6 @@ public MerchantsRestriction operation(String operation) { /** * Defines how the condition must be evaluated. - * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -87,7 +98,6 @@ public MerchantsRestriction addValueItem(MerchantAcquirerPair valueItem) { /** * List of merchant ID and acquirer ID pairs. - * * @return value List of merchant ID and acquirer ID pairs. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -107,7 +117,9 @@ public void setValue(List value) { this.value = value; } - /** Return true if this MerchantsRestriction object is equal to o. */ + /** + * Return true if this MerchantsRestriction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -117,8 +129,8 @@ public boolean equals(Object o) { return false; } MerchantsRestriction merchantsRestriction = (MerchantsRestriction) o; - return Objects.equals(this.operation, merchantsRestriction.operation) - && Objects.equals(this.value, merchantsRestriction.value); + return Objects.equals(this.operation, merchantsRestriction.operation) && + Objects.equals(this.value, merchantsRestriction.value); } @Override @@ -137,7 +149,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -146,23 +159,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of MerchantsRestriction given an JSON string * * @param jsonString JSON string * @return An instance of MerchantsRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * MerchantsRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to MerchantsRestriction */ public static MerchantsRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MerchantsRestriction.class); } - - /** - * Convert an instance of MerchantsRestriction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of MerchantsRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/NOLocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/NOLocalAccountIdentification.java index 764bfed0a..e01dbd9a2 100644 --- a/src/main/java/com/adyen/model/balanceplatform/NOLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/NOLocalAccountIdentification.java @@ -2,36 +2,45 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** NOLocalAccountIdentification */ + +/** + * NOLocalAccountIdentification + */ @JsonPropertyOrder({ NOLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, NOLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class NOLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - /** **noLocal** */ + /** + * **noLocal** + */ public enum TypeEnum { + NOLOCAL(String.valueOf("noLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -39,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -72,7 +77,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public NOLocalAccountIdentification() {} + public NOLocalAccountIdentification() { + } /** * The 11-digit bank account number, without separators or whitespace. @@ -87,7 +93,6 @@ public NOLocalAccountIdentification accountNumber(String accountNumber) { /** * The 11-digit bank account number, without separators or whitespace. - * * @return accountNumber The 11-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -120,7 +125,6 @@ public NOLocalAccountIdentification type(TypeEnum type) { /** * **noLocal** - * * @return type **noLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -140,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this NOLocalAccountIdentification object is equal to o. */ + /** + * Return true if this NOLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -150,8 +156,8 @@ public boolean equals(Object o) { return false; } NOLocalAccountIdentification noLocalAccountIdentification = (NOLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, noLocalAccountIdentification.accountNumber) - && Objects.equals(this.type, noLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, noLocalAccountIdentification.accountNumber) && + Objects.equals(this.type, noLocalAccountIdentification.type); } @Override @@ -170,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -179,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of NOLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of NOLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * NOLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to NOLocalAccountIdentification */ - public static NOLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static NOLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NOLocalAccountIdentification.class); } - - /** - * Convert an instance of NOLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of NOLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/NZLocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/NZLocalAccountIdentification.java index 83606b6c9..2f3864296 100644 --- a/src/main/java/com/adyen/model/balanceplatform/NZLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/NZLocalAccountIdentification.java @@ -2,36 +2,45 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** NZLocalAccountIdentification */ + +/** + * NZLocalAccountIdentification + */ @JsonPropertyOrder({ NZLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, NZLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class NZLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - /** **nzLocal** */ + /** + * **nzLocal** + */ public enum TypeEnum { + NZLOCAL(String.valueOf("nzLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -39,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -72,16 +77,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public NZLocalAccountIdentification() {} + public NZLocalAccountIdentification() { + } /** - * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits - * are the branch number, the next 7 digits are the account number, and the final 2-3 digits are - * the suffix. + * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. * - * @param accountNumber The 15-16 digit bank account number. The first 2 digits are the bank - * number, the next 4 digits are the branch number, the next 7 digits are the account number, - * and the final 2-3 digits are the suffix. + * @param accountNumber The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. * @return the current {@code NZLocalAccountIdentification} instance, allowing for method chaining */ public NZLocalAccountIdentification accountNumber(String accountNumber) { @@ -90,13 +92,8 @@ public NZLocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits - * are the branch number, the next 7 digits are the account number, and the final 2-3 digits are - * the suffix. - * - * @return accountNumber The 15-16 digit bank account number. The first 2 digits are the bank - * number, the next 4 digits are the branch number, the next 7 digits are the account number, - * and the final 2-3 digits are the suffix. + * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. + * @return accountNumber The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,13 +102,9 @@ public String getAccountNumber() { } /** - * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits - * are the branch number, the next 7 digits are the account number, and the final 2-3 digits are - * the suffix. + * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. * - * @param accountNumber The 15-16 digit bank account number. The first 2 digits are the bank - * number, the next 4 digits are the branch number, the next 7 digits are the account number, - * and the final 2-3 digits are the suffix. + * @param accountNumber The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,7 +125,6 @@ public NZLocalAccountIdentification type(TypeEnum type) { /** * **nzLocal** - * * @return type **nzLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -152,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this NZLocalAccountIdentification object is equal to o. */ + /** + * Return true if this NZLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -162,8 +156,8 @@ public boolean equals(Object o) { return false; } NZLocalAccountIdentification nzLocalAccountIdentification = (NZLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, nzLocalAccountIdentification.accountNumber) - && Objects.equals(this.type, nzLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, nzLocalAccountIdentification.accountNumber) && + Objects.equals(this.type, nzLocalAccountIdentification.type); } @Override @@ -182,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -191,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of NZLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of NZLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * NZLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to NZLocalAccountIdentification */ - public static NZLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static NZLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NZLocalAccountIdentification.class); } - - /** - * Convert an instance of NZLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of NZLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/Name.java b/src/main/java/com/adyen/model/balanceplatform/Name.java index 66e9d37aa..ff11847f4 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Name.java +++ b/src/main/java/com/adyen/model/balanceplatform/Name.java @@ -2,23 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Name */ -@JsonPropertyOrder({Name.JSON_PROPERTY_FIRST_NAME, Name.JSON_PROPERTY_LAST_NAME}) + +/** + * Name + */ +@JsonPropertyOrder({ + Name.JSON_PROPERTY_FIRST_NAME, + Name.JSON_PROPERTY_LAST_NAME +}) + public class Name { public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; private String firstName; @@ -26,7 +39,8 @@ public class Name { public static final String JSON_PROPERTY_LAST_NAME = "lastName"; private String lastName; - public Name() {} + public Name() { + } /** * The first name. @@ -41,7 +55,6 @@ public Name firstName(String firstName) { /** * The first name. - * * @return firstName The first name. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @@ -74,7 +87,6 @@ public Name lastName(String lastName) { /** * The last name. - * * @return lastName The last name. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @@ -94,7 +106,9 @@ public void setLastName(String lastName) { this.lastName = lastName; } - /** Return true if this Name object is equal to o. */ + /** + * Return true if this Name object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -104,8 +118,8 @@ public boolean equals(Object o) { return false; } Name name = (Name) o; - return Objects.equals(this.firstName, name.firstName) - && Objects.equals(this.lastName, name.lastName); + return Objects.equals(this.firstName, name.firstName) && + Objects.equals(this.lastName, name.lastName); } @Override @@ -124,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Name given an JSON string * * @param jsonString JSON string @@ -143,12 +158,11 @@ private String toIndentedString(Object o) { public static Name fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Name.class); } - - /** - * Convert an instance of Name to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Name to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/NetworkToken.java b/src/main/java/com/adyen/model/balanceplatform/NetworkToken.java index 10a5f39d0..b56da6f79 100644 --- a/src/main/java/com/adyen/model/balanceplatform/NetworkToken.java +++ b/src/main/java/com/adyen/model/balanceplatform/NetworkToken.java @@ -2,27 +2,34 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.DeviceInfo; +import com.adyen.model.balanceplatform.NetworkTokenRequestor; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** NetworkToken */ +/** + * NetworkToken + */ @JsonPropertyOrder({ NetworkToken.JSON_PROPERTY_BRAND_VARIANT, NetworkToken.JSON_PROPERTY_CREATION_DATE, @@ -34,6 +41,7 @@ NetworkToken.JSON_PROPERTY_TOKEN_REQUESTOR, NetworkToken.JSON_PROPERTY_TYPE }) + public class NetworkToken { public static final String JSON_PROPERTY_BRAND_VARIANT = "brandVariant"; private String brandVariant; @@ -51,10 +59,10 @@ public class NetworkToken { private String paymentInstrumentId; /** - * The status of the network token. Possible values: **active**, **inactive**, **suspended**, - * **closed**. + * The status of the network token. Possible values: **active**, **inactive**, **suspended**, **closed**. */ public enum StatusEnum { + ACTIVE(String.valueOf("active")), INACTIVE(String.valueOf("inactive")), @@ -68,7 +76,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -89,11 +97,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -110,14 +114,13 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public NetworkToken() {} + public NetworkToken() { + } /** - * The card brand variant of the payment instrument associated with the network token. For - * example, **mc_prepaid_mrw**. + * The card brand variant of the payment instrument associated with the network token. For example, **mc_prepaid_mrw**. * - * @param brandVariant The card brand variant of the payment instrument associated with the - * network token. For example, **mc_prepaid_mrw**. + * @param brandVariant The card brand variant of the payment instrument associated with the network token. For example, **mc_prepaid_mrw**. * @return the current {@code NetworkToken} instance, allowing for method chaining */ public NetworkToken brandVariant(String brandVariant) { @@ -126,11 +129,8 @@ public NetworkToken brandVariant(String brandVariant) { } /** - * The card brand variant of the payment instrument associated with the network token. For - * example, **mc_prepaid_mrw**. - * - * @return brandVariant The card brand variant of the payment instrument associated with the - * network token. For example, **mc_prepaid_mrw**. + * The card brand variant of the payment instrument associated with the network token. For example, **mc_prepaid_mrw**. + * @return brandVariant The card brand variant of the payment instrument associated with the network token. For example, **mc_prepaid_mrw**. */ @JsonProperty(JSON_PROPERTY_BRAND_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,11 +139,9 @@ public String getBrandVariant() { } /** - * The card brand variant of the payment instrument associated with the network token. For - * example, **mc_prepaid_mrw**. + * The card brand variant of the payment instrument associated with the network token. For example, **mc_prepaid_mrw**. * - * @param brandVariant The card brand variant of the payment instrument associated with the - * network token. For example, **mc_prepaid_mrw**. + * @param brandVariant The card brand variant of the payment instrument associated with the network token. For example, **mc_prepaid_mrw**. */ @JsonProperty(JSON_PROPERTY_BRAND_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,13 +150,9 @@ public void setBrandVariant(String brandVariant) { } /** - * Date and time when the network token was created, in [ISO - * 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, - * **2025-03-19T10:15:30+01:00**.. + * Date and time when the network token was created, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, **2025-03-19T10:15:30+01:00**.. * - * @param creationDate Date and time when the network token was created, in [ISO - * 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, - * **2025-03-19T10:15:30+01:00**.. + * @param creationDate Date and time when the network token was created, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, **2025-03-19T10:15:30+01:00**.. * @return the current {@code NetworkToken} instance, allowing for method chaining */ public NetworkToken creationDate(OffsetDateTime creationDate) { @@ -167,13 +161,8 @@ public NetworkToken creationDate(OffsetDateTime creationDate) { } /** - * Date and time when the network token was created, in [ISO - * 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, - * **2025-03-19T10:15:30+01:00**.. - * - * @return creationDate Date and time when the network token was created, in [ISO - * 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, - * **2025-03-19T10:15:30+01:00**.. + * Date and time when the network token was created, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, **2025-03-19T10:15:30+01:00**.. + * @return creationDate Date and time when the network token was created, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, **2025-03-19T10:15:30+01:00**.. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,13 +171,9 @@ public OffsetDateTime getCreationDate() { } /** - * Date and time when the network token was created, in [ISO - * 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, - * **2025-03-19T10:15:30+01:00**.. + * Date and time when the network token was created, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, **2025-03-19T10:15:30+01:00**.. * - * @param creationDate Date and time when the network token was created, in [ISO - * 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, - * **2025-03-19T10:15:30+01:00**.. + * @param creationDate Date and time when the network token was created, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, **2025-03-19T10:15:30+01:00**.. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -199,7 +184,7 @@ public void setCreationDate(OffsetDateTime creationDate) { /** * device * - * @param device + * @param device * @return the current {@code NetworkToken} instance, allowing for method chaining */ public NetworkToken device(DeviceInfo device) { @@ -209,8 +194,7 @@ public NetworkToken device(DeviceInfo device) { /** * Get device - * - * @return device + * @return device */ @JsonProperty(JSON_PROPERTY_DEVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,7 +205,7 @@ public DeviceInfo getDevice() { /** * device * - * @param device + * @param device */ @JsonProperty(JSON_PROPERTY_DEVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,7 +226,6 @@ public NetworkToken id(String id) { /** * The unique identifier of the network token. - * * @return id The unique identifier of the network token. */ @JsonProperty(JSON_PROPERTY_ID) @@ -265,8 +248,7 @@ public void setId(String id) { /** * The unique identifier of the payment instrument to which this network token belongs to. * - * @param paymentInstrumentId The unique identifier of the payment instrument to which this - * network token belongs to. + * @param paymentInstrumentId The unique identifier of the payment instrument to which this network token belongs to. * @return the current {@code NetworkToken} instance, allowing for method chaining */ public NetworkToken paymentInstrumentId(String paymentInstrumentId) { @@ -276,9 +258,7 @@ public NetworkToken paymentInstrumentId(String paymentInstrumentId) { /** * The unique identifier of the payment instrument to which this network token belongs to. - * - * @return paymentInstrumentId The unique identifier of the payment instrument to which this - * network token belongs to. + * @return paymentInstrumentId The unique identifier of the payment instrument to which this network token belongs to. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -289,8 +269,7 @@ public String getPaymentInstrumentId() { /** * The unique identifier of the payment instrument to which this network token belongs to. * - * @param paymentInstrumentId The unique identifier of the payment instrument to which this - * network token belongs to. + * @param paymentInstrumentId The unique identifier of the payment instrument to which this network token belongs to. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -299,11 +278,9 @@ public void setPaymentInstrumentId(String paymentInstrumentId) { } /** - * The status of the network token. Possible values: **active**, **inactive**, **suspended**, - * **closed**. + * The status of the network token. Possible values: **active**, **inactive**, **suspended**, **closed**. * - * @param status The status of the network token. Possible values: **active**, **inactive**, - * **suspended**, **closed**. + * @param status The status of the network token. Possible values: **active**, **inactive**, **suspended**, **closed**. * @return the current {@code NetworkToken} instance, allowing for method chaining */ public NetworkToken status(StatusEnum status) { @@ -312,11 +289,8 @@ public NetworkToken status(StatusEnum status) { } /** - * The status of the network token. Possible values: **active**, **inactive**, **suspended**, - * **closed**. - * - * @return status The status of the network token. Possible values: **active**, **inactive**, - * **suspended**, **closed**. + * The status of the network token. Possible values: **active**, **inactive**, **suspended**, **closed**. + * @return status The status of the network token. Possible values: **active**, **inactive**, **suspended**, **closed**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -325,11 +299,9 @@ public StatusEnum getStatus() { } /** - * The status of the network token. Possible values: **active**, **inactive**, **suspended**, - * **closed**. + * The status of the network token. Possible values: **active**, **inactive**, **suspended**, **closed**. * - * @param status The status of the network token. Possible values: **active**, **inactive**, - * **suspended**, **closed**. + * @param status The status of the network token. Possible values: **active**, **inactive**, **suspended**, **closed**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -350,7 +322,6 @@ public NetworkToken tokenLastFour(String tokenLastFour) { /** * The last four digits of the network token `id`. - * * @return tokenLastFour The last four digits of the network token `id`. */ @JsonProperty(JSON_PROPERTY_TOKEN_LAST_FOUR) @@ -373,7 +344,7 @@ public void setTokenLastFour(String tokenLastFour) { /** * tokenRequestor * - * @param tokenRequestor + * @param tokenRequestor * @return the current {@code NetworkToken} instance, allowing for method chaining */ public NetworkToken tokenRequestor(NetworkTokenRequestor tokenRequestor) { @@ -383,8 +354,7 @@ public NetworkToken tokenRequestor(NetworkTokenRequestor tokenRequestor) { /** * Get tokenRequestor - * - * @return tokenRequestor + * @return tokenRequestor */ @JsonProperty(JSON_PROPERTY_TOKEN_REQUESTOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -395,7 +365,7 @@ public NetworkTokenRequestor getTokenRequestor() { /** * tokenRequestor * - * @param tokenRequestor + * @param tokenRequestor */ @JsonProperty(JSON_PROPERTY_TOKEN_REQUESTOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -416,7 +386,6 @@ public NetworkToken type(String type) { /** * The type of network token. For example, **wallet**, **cof**. - * * @return type The type of network token. For example, **wallet**, **cof**. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -436,7 +405,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this NetworkToken object is equal to o. */ + /** + * Return true if this NetworkToken object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -446,29 +417,20 @@ public boolean equals(Object o) { return false; } NetworkToken networkToken = (NetworkToken) o; - return Objects.equals(this.brandVariant, networkToken.brandVariant) - && Objects.equals(this.creationDate, networkToken.creationDate) - && Objects.equals(this.device, networkToken.device) - && Objects.equals(this.id, networkToken.id) - && Objects.equals(this.paymentInstrumentId, networkToken.paymentInstrumentId) - && Objects.equals(this.status, networkToken.status) - && Objects.equals(this.tokenLastFour, networkToken.tokenLastFour) - && Objects.equals(this.tokenRequestor, networkToken.tokenRequestor) - && Objects.equals(this.type, networkToken.type); + return Objects.equals(this.brandVariant, networkToken.brandVariant) && + Objects.equals(this.creationDate, networkToken.creationDate) && + Objects.equals(this.device, networkToken.device) && + Objects.equals(this.id, networkToken.id) && + Objects.equals(this.paymentInstrumentId, networkToken.paymentInstrumentId) && + Objects.equals(this.status, networkToken.status) && + Objects.equals(this.tokenLastFour, networkToken.tokenLastFour) && + Objects.equals(this.tokenRequestor, networkToken.tokenRequestor) && + Objects.equals(this.type, networkToken.type); } @Override public int hashCode() { - return Objects.hash( - brandVariant, - creationDate, - device, - id, - paymentInstrumentId, - status, - tokenLastFour, - tokenRequestor, - type); + return Objects.hash(brandVariant, creationDate, device, id, paymentInstrumentId, status, tokenLastFour, tokenRequestor, type); } @Override @@ -479,9 +441,7 @@ public String toString() { sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n"); sb.append(" device: ").append(toIndentedString(device)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" paymentInstrumentId: ") - .append(toIndentedString(paymentInstrumentId)) - .append("\n"); + sb.append(" paymentInstrumentId: ").append(toIndentedString(paymentInstrumentId)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" tokenLastFour: ").append(toIndentedString(tokenLastFour)).append("\n"); sb.append(" tokenRequestor: ").append(toIndentedString(tokenRequestor)).append("\n"); @@ -491,7 +451,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -500,7 +461,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of NetworkToken given an JSON string * * @param jsonString JSON string @@ -510,12 +471,11 @@ private String toIndentedString(Object o) { public static NetworkToken fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NetworkToken.class); } - - /** - * Convert an instance of NetworkToken to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of NetworkToken to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/NetworkTokenActivationDataRequest.java b/src/main/java/com/adyen/model/balanceplatform/NetworkTokenActivationDataRequest.java index 33a0c67e4..fb8a8e8f9 100644 --- a/src/main/java/com/adyen/model/balanceplatform/NetworkTokenActivationDataRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/NetworkTokenActivationDataRequest.java @@ -2,44 +2,47 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** NetworkTokenActivationDataRequest */ -@JsonPropertyOrder({NetworkTokenActivationDataRequest.JSON_PROPERTY_SDK_OUTPUT}) + +/** + * NetworkTokenActivationDataRequest + */ +@JsonPropertyOrder({ + NetworkTokenActivationDataRequest.JSON_PROPERTY_SDK_OUTPUT +}) + public class NetworkTokenActivationDataRequest { public static final String JSON_PROPERTY_SDK_OUTPUT = "sdkOutput"; private String sdkOutput; - public NetworkTokenActivationDataRequest() {} + public NetworkTokenActivationDataRequest() { + } /** - * A block of data automatically generated by Adyen's SDK for network token provisioning. This - * `sdkOutput` is required to create provisioning data for the network token. For more - * information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen - * Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * - * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) + * A block of data automatically generated by Adyen's SDK for network token provisioning. This `sdkOutput` is required to create provisioning data for the network token. For more information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) * - * @param sdkOutput A block of data automatically generated by Adyen's SDK for network token - * provisioning. This `sdkOutput` is required to create provisioning data for the - * network token. For more information, see the repositories for Adyen's SDKs for network - * token provisioning: * [Adyen Apple Pay Provisioning - * SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet - * Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) - * @return the current {@code NetworkTokenActivationDataRequest} instance, allowing for method - * chaining + * @param sdkOutput A block of data automatically generated by Adyen's SDK for network token provisioning. This `sdkOutput` is required to create provisioning data for the network token. For more information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) + * @return the current {@code NetworkTokenActivationDataRequest} instance, allowing for method chaining */ public NetworkTokenActivationDataRequest sdkOutput(String sdkOutput) { this.sdkOutput = sdkOutput; @@ -47,18 +50,8 @@ public NetworkTokenActivationDataRequest sdkOutput(String sdkOutput) { } /** - * A block of data automatically generated by Adyen's SDK for network token provisioning. This - * `sdkOutput` is required to create provisioning data for the network token. For more - * information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen - * Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * - * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) - * - * @return sdkOutput A block of data automatically generated by Adyen's SDK for network token - * provisioning. This `sdkOutput` is required to create provisioning data for the - * network token. For more information, see the repositories for Adyen's SDKs for network - * token provisioning: * [Adyen Apple Pay Provisioning - * SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet - * Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) + * A block of data automatically generated by Adyen's SDK for network token provisioning. This `sdkOutput` is required to create provisioning data for the network token. For more information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) + * @return sdkOutput A block of data automatically generated by Adyen's SDK for network token provisioning. This `sdkOutput` is required to create provisioning data for the network token. For more information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) */ @JsonProperty(JSON_PROPERTY_SDK_OUTPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -67,18 +60,9 @@ public String getSdkOutput() { } /** - * A block of data automatically generated by Adyen's SDK for network token provisioning. This - * `sdkOutput` is required to create provisioning data for the network token. For more - * information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen - * Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * - * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) + * A block of data automatically generated by Adyen's SDK for network token provisioning. This `sdkOutput` is required to create provisioning data for the network token. For more information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) * - * @param sdkOutput A block of data automatically generated by Adyen's SDK for network token - * provisioning. This `sdkOutput` is required to create provisioning data for the - * network token. For more information, see the repositories for Adyen's SDKs for network - * token provisioning: * [Adyen Apple Pay Provisioning - * SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet - * Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) + * @param sdkOutput A block of data automatically generated by Adyen's SDK for network token provisioning. This `sdkOutput` is required to create provisioning data for the network token. For more information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) */ @JsonProperty(JSON_PROPERTY_SDK_OUTPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -86,7 +70,9 @@ public void setSdkOutput(String sdkOutput) { this.sdkOutput = sdkOutput; } - /** Return true if this NetworkTokenActivationDataRequest object is equal to o. */ + /** + * Return true if this NetworkTokenActivationDataRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -95,8 +81,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - NetworkTokenActivationDataRequest networkTokenActivationDataRequest = - (NetworkTokenActivationDataRequest) o; + NetworkTokenActivationDataRequest networkTokenActivationDataRequest = (NetworkTokenActivationDataRequest) o; return Objects.equals(this.sdkOutput, networkTokenActivationDataRequest.sdkOutput); } @@ -115,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -124,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of NetworkTokenActivationDataRequest given an JSON string * * @param jsonString JSON string * @return An instance of NetworkTokenActivationDataRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * NetworkTokenActivationDataRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to NetworkTokenActivationDataRequest */ - public static NetworkTokenActivationDataRequest fromJson(String jsonString) - throws JsonProcessingException { + public static NetworkTokenActivationDataRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NetworkTokenActivationDataRequest.class); } - - /** - * Convert an instance of NetworkTokenActivationDataRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of NetworkTokenActivationDataRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/NetworkTokenActivationDataResponse.java b/src/main/java/com/adyen/model/balanceplatform/NetworkTokenActivationDataResponse.java index 27bd58cba..fc21f39e3 100644 --- a/src/main/java/com/adyen/model/balanceplatform/NetworkTokenActivationDataResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/NetworkTokenActivationDataResponse.java @@ -2,45 +2,47 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** NetworkTokenActivationDataResponse */ -@JsonPropertyOrder({NetworkTokenActivationDataResponse.JSON_PROPERTY_SDK_INPUT}) + +/** + * NetworkTokenActivationDataResponse + */ +@JsonPropertyOrder({ + NetworkTokenActivationDataResponse.JSON_PROPERTY_SDK_INPUT +}) + public class NetworkTokenActivationDataResponse { public static final String JSON_PROPERTY_SDK_INPUT = "sdkInput"; private String sdkInput; - public NetworkTokenActivationDataResponse() {} + public NetworkTokenActivationDataResponse() { + } /** - * A block of data that contains the activation data for a network token. This - * `sdkInput` is required to initialize Adyen's SDK for network token provisioning. - * For more information, see the repositories for Adyen's SDKs for network token provisioning: - * * [Adyen Apple Pay Provisioning - * SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet - * Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) + * A block of data that contains the activation data for a network token. This `sdkInput` is required to initialize Adyen's SDK for network token provisioning. For more information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) * - * @param sdkInput A block of data that contains the activation data for a network token. This - * `sdkInput` is required to initialize Adyen's SDK for network token - * provisioning. For more information, see the repositories for Adyen's SDKs for network - * token provisioning: * [Adyen Apple Pay Provisioning - * SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet - * Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) - * @return the current {@code NetworkTokenActivationDataResponse} instance, allowing for method - * chaining + * @param sdkInput A block of data that contains the activation data for a network token. This `sdkInput` is required to initialize Adyen's SDK for network token provisioning. For more information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) + * @return the current {@code NetworkTokenActivationDataResponse} instance, allowing for method chaining */ public NetworkTokenActivationDataResponse sdkInput(String sdkInput) { this.sdkInput = sdkInput; @@ -48,19 +50,8 @@ public NetworkTokenActivationDataResponse sdkInput(String sdkInput) { } /** - * A block of data that contains the activation data for a network token. This - * `sdkInput` is required to initialize Adyen's SDK for network token provisioning. - * For more information, see the repositories for Adyen's SDKs for network token provisioning: - * * [Adyen Apple Pay Provisioning - * SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet - * Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) - * - * @return sdkInput A block of data that contains the activation data for a network token. This - * `sdkInput` is required to initialize Adyen's SDK for network token - * provisioning. For more information, see the repositories for Adyen's SDKs for network - * token provisioning: * [Adyen Apple Pay Provisioning - * SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet - * Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) + * A block of data that contains the activation data for a network token. This `sdkInput` is required to initialize Adyen's SDK for network token provisioning. For more information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) + * @return sdkInput A block of data that contains the activation data for a network token. This `sdkInput` is required to initialize Adyen's SDK for network token provisioning. For more information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) */ @JsonProperty(JSON_PROPERTY_SDK_INPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -69,19 +60,9 @@ public String getSdkInput() { } /** - * A block of data that contains the activation data for a network token. This - * `sdkInput` is required to initialize Adyen's SDK for network token provisioning. - * For more information, see the repositories for Adyen's SDKs for network token provisioning: - * * [Adyen Apple Pay Provisioning - * SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet - * Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) + * A block of data that contains the activation data for a network token. This `sdkInput` is required to initialize Adyen's SDK for network token provisioning. For more information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) * - * @param sdkInput A block of data that contains the activation data for a network token. This - * `sdkInput` is required to initialize Adyen's SDK for network token - * provisioning. For more information, see the repositories for Adyen's SDKs for network - * token provisioning: * [Adyen Apple Pay Provisioning - * SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet - * Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) + * @param sdkInput A block of data that contains the activation data for a network token. This `sdkInput` is required to initialize Adyen's SDK for network token provisioning. For more information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) */ @JsonProperty(JSON_PROPERTY_SDK_INPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -89,7 +70,9 @@ public void setSdkInput(String sdkInput) { this.sdkInput = sdkInput; } - /** Return true if this NetworkTokenActivationDataResponse object is equal to o. */ + /** + * Return true if this NetworkTokenActivationDataResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -98,8 +81,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - NetworkTokenActivationDataResponse networkTokenActivationDataResponse = - (NetworkTokenActivationDataResponse) o; + NetworkTokenActivationDataResponse networkTokenActivationDataResponse = (NetworkTokenActivationDataResponse) o; return Objects.equals(this.sdkInput, networkTokenActivationDataResponse.sdkInput); } @@ -118,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -127,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of NetworkTokenActivationDataResponse given an JSON string * * @param jsonString JSON string * @return An instance of NetworkTokenActivationDataResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * NetworkTokenActivationDataResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to NetworkTokenActivationDataResponse */ - public static NetworkTokenActivationDataResponse fromJson(String jsonString) - throws JsonProcessingException { + public static NetworkTokenActivationDataResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NetworkTokenActivationDataResponse.class); } - - /** - * Convert an instance of NetworkTokenActivationDataResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of NetworkTokenActivationDataResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/NetworkTokenRequestor.java b/src/main/java/com/adyen/model/balanceplatform/NetworkTokenRequestor.java index 0949bb0a0..ef48e19dc 100644 --- a/src/main/java/com/adyen/model/balanceplatform/NetworkTokenRequestor.java +++ b/src/main/java/com/adyen/model/balanceplatform/NetworkTokenRequestor.java @@ -2,26 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** NetworkTokenRequestor */ + +/** + * NetworkTokenRequestor + */ @JsonPropertyOrder({ NetworkTokenRequestor.JSON_PROPERTY_ID, NetworkTokenRequestor.JSON_PROPERTY_NAME }) + public class NetworkTokenRequestor { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -29,7 +39,8 @@ public class NetworkTokenRequestor { public static final String JSON_PROPERTY_NAME = "name"; private String name; - public NetworkTokenRequestor() {} + public NetworkTokenRequestor() { + } /** * The id of the network token requestor. @@ -44,7 +55,6 @@ public NetworkTokenRequestor id(String id) { /** * The id of the network token requestor. - * * @return id The id of the network token requestor. */ @JsonProperty(JSON_PROPERTY_ID) @@ -77,7 +87,6 @@ public NetworkTokenRequestor name(String name) { /** * The name of the network token requestor. - * * @return name The name of the network token requestor. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -97,7 +106,9 @@ public void setName(String name) { this.name = name; } - /** Return true if this NetworkTokenRequestor object is equal to o. */ + /** + * Return true if this NetworkTokenRequestor object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -107,8 +118,8 @@ public boolean equals(Object o) { return false; } NetworkTokenRequestor networkTokenRequestor = (NetworkTokenRequestor) o; - return Objects.equals(this.id, networkTokenRequestor.id) - && Objects.equals(this.name, networkTokenRequestor.name); + return Objects.equals(this.id, networkTokenRequestor.id) && + Objects.equals(this.name, networkTokenRequestor.name); } @Override @@ -127,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,23 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of NetworkTokenRequestor given an JSON string * * @param jsonString JSON string * @return An instance of NetworkTokenRequestor - * @throws JsonProcessingException if the JSON string is invalid with respect to - * NetworkTokenRequestor + * @throws JsonProcessingException if the JSON string is invalid with respect to NetworkTokenRequestor */ public static NetworkTokenRequestor fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NetworkTokenRequestor.class); } - - /** - * Convert an instance of NetworkTokenRequestor to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of NetworkTokenRequestor to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/NumberAndBicAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/NumberAndBicAccountIdentification.java index fba8b6740..24b4de15e 100644 --- a/src/main/java/com/adyen/model/balanceplatform/NumberAndBicAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/NumberAndBicAccountIdentification.java @@ -2,45 +2,54 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.AdditionalBankIdentification; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** NumberAndBicAccountIdentification */ + +/** + * NumberAndBicAccountIdentification + */ @JsonPropertyOrder({ NumberAndBicAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, NumberAndBicAccountIdentification.JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION, NumberAndBicAccountIdentification.JSON_PROPERTY_BIC, NumberAndBicAccountIdentification.JSON_PROPERTY_TYPE }) + public class NumberAndBicAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - public static final String JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION = - "additionalBankIdentification"; + public static final String JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION = "additionalBankIdentification"; private AdditionalBankIdentification additionalBankIdentification; public static final String JSON_PROPERTY_BIC = "bic"; private String bic; - /** **numberAndBic** */ + /** + * **numberAndBic** + */ public enum TypeEnum { + NUMBERANDBIC(String.valueOf("numberAndBic")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +57,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,11 +78,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -81,16 +86,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public NumberAndBicAccountIdentification() {} + public NumberAndBicAccountIdentification() { + } /** - * The bank account number, without separators or whitespace. The length and format depends on the - * bank or country. + * The bank account number, without separators or whitespace. The length and format depends on the bank or country. * - * @param accountNumber The bank account number, without separators or whitespace. The length and - * format depends on the bank or country. - * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method - * chaining + * @param accountNumber The bank account number, without separators or whitespace. The length and format depends on the bank or country. + * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method chaining */ public NumberAndBicAccountIdentification accountNumber(String accountNumber) { this.accountNumber = accountNumber; @@ -98,11 +101,8 @@ public NumberAndBicAccountIdentification accountNumber(String accountNumber) { } /** - * The bank account number, without separators or whitespace. The length and format depends on the - * bank or country. - * - * @return accountNumber The bank account number, without separators or whitespace. The length and - * format depends on the bank or country. + * The bank account number, without separators or whitespace. The length and format depends on the bank or country. + * @return accountNumber The bank account number, without separators or whitespace. The length and format depends on the bank or country. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,11 +111,9 @@ public String getAccountNumber() { } /** - * The bank account number, without separators or whitespace. The length and format depends on the - * bank or country. + * The bank account number, without separators or whitespace. The length and format depends on the bank or country. * - * @param accountNumber The bank account number, without separators or whitespace. The length and - * format depends on the bank or country. + * @param accountNumber The bank account number, without separators or whitespace. The length and format depends on the bank or country. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,20 +124,17 @@ public void setAccountNumber(String accountNumber) { /** * additionalBankIdentification * - * @param additionalBankIdentification - * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method - * chaining + * @param additionalBankIdentification + * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method chaining */ - public NumberAndBicAccountIdentification additionalBankIdentification( - AdditionalBankIdentification additionalBankIdentification) { + public NumberAndBicAccountIdentification additionalBankIdentification(AdditionalBankIdentification additionalBankIdentification) { this.additionalBankIdentification = additionalBankIdentification; return this; } /** * Get additionalBankIdentification - * - * @return additionalBankIdentification + * @return additionalBankIdentification */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,12 +145,11 @@ public AdditionalBankIdentification getAdditionalBankIdentification() { /** * additionalBankIdentification * - * @param additionalBankIdentification + * @param additionalBankIdentification */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAdditionalBankIdentification( - AdditionalBankIdentification additionalBankIdentification) { + public void setAdditionalBankIdentification(AdditionalBankIdentification additionalBankIdentification) { this.additionalBankIdentification = additionalBankIdentification; } @@ -163,8 +157,7 @@ public void setAdditionalBankIdentification( * The bank's 8- or 11-character BIC or SWIFT code. * * @param bic The bank's 8- or 11-character BIC or SWIFT code. - * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method - * chaining + * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method chaining */ public NumberAndBicAccountIdentification bic(String bic) { this.bic = bic; @@ -173,7 +166,6 @@ public NumberAndBicAccountIdentification bic(String bic) { /** * The bank's 8- or 11-character BIC or SWIFT code. - * * @return bic The bank's 8- or 11-character BIC or SWIFT code. */ @JsonProperty(JSON_PROPERTY_BIC) @@ -197,8 +189,7 @@ public void setBic(String bic) { * **numberAndBic** * * @param type **numberAndBic** - * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method - * chaining + * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method chaining */ public NumberAndBicAccountIdentification type(TypeEnum type) { this.type = type; @@ -207,7 +198,6 @@ public NumberAndBicAccountIdentification type(TypeEnum type) { /** * **numberAndBic** - * * @return type **numberAndBic** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -227,7 +217,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this NumberAndBicAccountIdentification object is equal to o. */ + /** + * Return true if this NumberAndBicAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -236,14 +228,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - NumberAndBicAccountIdentification numberAndBicAccountIdentification = - (NumberAndBicAccountIdentification) o; - return Objects.equals(this.accountNumber, numberAndBicAccountIdentification.accountNumber) - && Objects.equals( - this.additionalBankIdentification, - numberAndBicAccountIdentification.additionalBankIdentification) - && Objects.equals(this.bic, numberAndBicAccountIdentification.bic) - && Objects.equals(this.type, numberAndBicAccountIdentification.type); + NumberAndBicAccountIdentification numberAndBicAccountIdentification = (NumberAndBicAccountIdentification) o; + return Objects.equals(this.accountNumber, numberAndBicAccountIdentification.accountNumber) && + Objects.equals(this.additionalBankIdentification, numberAndBicAccountIdentification.additionalBankIdentification) && + Objects.equals(this.bic, numberAndBicAccountIdentification.bic) && + Objects.equals(this.type, numberAndBicAccountIdentification.type); } @Override @@ -256,9 +245,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NumberAndBicAccountIdentification {\n"); sb.append(" accountNumber: ").append(toIndentedString(accountNumber)).append("\n"); - sb.append(" additionalBankIdentification: ") - .append(toIndentedString(additionalBankIdentification)) - .append("\n"); + sb.append(" additionalBankIdentification: ").append(toIndentedString(additionalBankIdentification)).append("\n"); sb.append(" bic: ").append(toIndentedString(bic)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -266,7 +253,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -275,24 +263,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of NumberAndBicAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of NumberAndBicAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * NumberAndBicAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to NumberAndBicAccountIdentification */ - public static NumberAndBicAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static NumberAndBicAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NumberAndBicAccountIdentification.class); } - - /** - * Convert an instance of NumberAndBicAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of NumberAndBicAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PLLocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/PLLocalAccountIdentification.java index fb7880c65..7ae759832 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PLLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/PLLocalAccountIdentification.java @@ -2,36 +2,45 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** PLLocalAccountIdentification */ + +/** + * PLLocalAccountIdentification + */ @JsonPropertyOrder({ PLLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, PLLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class PLLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - /** **plLocal** */ + /** + * **plLocal** + */ public enum TypeEnum { + PLLOCAL(String.valueOf("plLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -39,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -72,16 +77,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PLLocalAccountIdentification() {} + public PLLocalAccountIdentification() { + } /** - * The 26-digit bank account number ([Numer - * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or - * whitespace. + * The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. * - * @param accountNumber The 26-digit bank account number ([Numer - * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or - * whitespace. + * @param accountNumber The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. * @return the current {@code PLLocalAccountIdentification} instance, allowing for method chaining */ public PLLocalAccountIdentification accountNumber(String accountNumber) { @@ -90,13 +92,8 @@ public PLLocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 26-digit bank account number ([Numer - * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or - * whitespace. - * - * @return accountNumber The 26-digit bank account number ([Numer - * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or - * whitespace. + * The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. + * @return accountNumber The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,13 +102,9 @@ public String getAccountNumber() { } /** - * The 26-digit bank account number ([Numer - * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or - * whitespace. + * The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. * - * @param accountNumber The 26-digit bank account number ([Numer - * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or - * whitespace. + * @param accountNumber The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,7 +125,6 @@ public PLLocalAccountIdentification type(TypeEnum type) { /** * **plLocal** - * * @return type **plLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -152,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this PLLocalAccountIdentification object is equal to o. */ + /** + * Return true if this PLLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -162,8 +156,8 @@ public boolean equals(Object o) { return false; } PLLocalAccountIdentification plLocalAccountIdentification = (PLLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, plLocalAccountIdentification.accountNumber) - && Objects.equals(this.type, plLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, plLocalAccountIdentification.accountNumber) && + Objects.equals(this.type, plLocalAccountIdentification.type); } @Override @@ -182,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -191,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PLLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of PLLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PLLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to PLLocalAccountIdentification */ - public static PLLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static PLLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PLLocalAccountIdentification.class); } - - /** - * Convert an instance of PLLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PLLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaginatedAccountHoldersResponse.java b/src/main/java/com/adyen/model/balanceplatform/PaginatedAccountHoldersResponse.java index 9453624ea..8d8ba1343 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaginatedAccountHoldersResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaginatedAccountHoldersResponse.java @@ -2,29 +2,40 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.AccountHolder; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PaginatedAccountHoldersResponse */ +/** + * PaginatedAccountHoldersResponse + */ @JsonPropertyOrder({ PaginatedAccountHoldersResponse.JSON_PROPERTY_ACCOUNT_HOLDERS, PaginatedAccountHoldersResponse.JSON_PROPERTY_HAS_NEXT, PaginatedAccountHoldersResponse.JSON_PROPERTY_HAS_PREVIOUS }) + public class PaginatedAccountHoldersResponse { public static final String JSON_PROPERTY_ACCOUNT_HOLDERS = "accountHolders"; private List accountHolders; @@ -35,14 +46,14 @@ public class PaginatedAccountHoldersResponse { public static final String JSON_PROPERTY_HAS_PREVIOUS = "hasPrevious"; private Boolean hasPrevious; - public PaginatedAccountHoldersResponse() {} + public PaginatedAccountHoldersResponse() { + } /** * List of account holders. * * @param accountHolders List of account holders. - * @return the current {@code PaginatedAccountHoldersResponse} instance, allowing for method - * chaining + * @return the current {@code PaginatedAccountHoldersResponse} instance, allowing for method chaining */ public PaginatedAccountHoldersResponse accountHolders(List accountHolders) { this.accountHolders = accountHolders; @@ -59,7 +70,6 @@ public PaginatedAccountHoldersResponse addAccountHoldersItem(AccountHolder accou /** * List of account holders. - * * @return accountHolders List of account holders. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDERS) @@ -83,8 +93,7 @@ public void setAccountHolders(List accountHolders) { * Indicates whether there are more items on the next page. * * @param hasNext Indicates whether there are more items on the next page. - * @return the current {@code PaginatedAccountHoldersResponse} instance, allowing for method - * chaining + * @return the current {@code PaginatedAccountHoldersResponse} instance, allowing for method chaining */ public PaginatedAccountHoldersResponse hasNext(Boolean hasNext) { this.hasNext = hasNext; @@ -93,7 +102,6 @@ public PaginatedAccountHoldersResponse hasNext(Boolean hasNext) { /** * Indicates whether there are more items on the next page. - * * @return hasNext Indicates whether there are more items on the next page. */ @JsonProperty(JSON_PROPERTY_HAS_NEXT) @@ -117,8 +125,7 @@ public void setHasNext(Boolean hasNext) { * Indicates whether there are more items on the previous page. * * @param hasPrevious Indicates whether there are more items on the previous page. - * @return the current {@code PaginatedAccountHoldersResponse} instance, allowing for method - * chaining + * @return the current {@code PaginatedAccountHoldersResponse} instance, allowing for method chaining */ public PaginatedAccountHoldersResponse hasPrevious(Boolean hasPrevious) { this.hasPrevious = hasPrevious; @@ -127,7 +134,6 @@ public PaginatedAccountHoldersResponse hasPrevious(Boolean hasPrevious) { /** * Indicates whether there are more items on the previous page. - * * @return hasPrevious Indicates whether there are more items on the previous page. */ @JsonProperty(JSON_PROPERTY_HAS_PREVIOUS) @@ -147,7 +153,9 @@ public void setHasPrevious(Boolean hasPrevious) { this.hasPrevious = hasPrevious; } - /** Return true if this PaginatedAccountHoldersResponse object is equal to o. */ + /** + * Return true if this PaginatedAccountHoldersResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,11 +164,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaginatedAccountHoldersResponse paginatedAccountHoldersResponse = - (PaginatedAccountHoldersResponse) o; - return Objects.equals(this.accountHolders, paginatedAccountHoldersResponse.accountHolders) - && Objects.equals(this.hasNext, paginatedAccountHoldersResponse.hasNext) - && Objects.equals(this.hasPrevious, paginatedAccountHoldersResponse.hasPrevious); + PaginatedAccountHoldersResponse paginatedAccountHoldersResponse = (PaginatedAccountHoldersResponse) o; + return Objects.equals(this.accountHolders, paginatedAccountHoldersResponse.accountHolders) && + Objects.equals(this.hasNext, paginatedAccountHoldersResponse.hasNext) && + Objects.equals(this.hasPrevious, paginatedAccountHoldersResponse.hasPrevious); } @Override @@ -180,7 +187,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -189,24 +197,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaginatedAccountHoldersResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaginatedAccountHoldersResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaginatedAccountHoldersResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to PaginatedAccountHoldersResponse */ - public static PaginatedAccountHoldersResponse fromJson(String jsonString) - throws JsonProcessingException { + public static PaginatedAccountHoldersResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaginatedAccountHoldersResponse.class); } - - /** - * Convert an instance of PaginatedAccountHoldersResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaginatedAccountHoldersResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaginatedBalanceAccountsResponse.java b/src/main/java/com/adyen/model/balanceplatform/PaginatedBalanceAccountsResponse.java index 34c37f969..8d5ac8f9a 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaginatedBalanceAccountsResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaginatedBalanceAccountsResponse.java @@ -2,29 +2,40 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.BalanceAccountBase; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PaginatedBalanceAccountsResponse */ +/** + * PaginatedBalanceAccountsResponse + */ @JsonPropertyOrder({ PaginatedBalanceAccountsResponse.JSON_PROPERTY_BALANCE_ACCOUNTS, PaginatedBalanceAccountsResponse.JSON_PROPERTY_HAS_NEXT, PaginatedBalanceAccountsResponse.JSON_PROPERTY_HAS_PREVIOUS }) + public class PaginatedBalanceAccountsResponse { public static final String JSON_PROPERTY_BALANCE_ACCOUNTS = "balanceAccounts"; private List balanceAccounts; @@ -35,23 +46,21 @@ public class PaginatedBalanceAccountsResponse { public static final String JSON_PROPERTY_HAS_PREVIOUS = "hasPrevious"; private Boolean hasPrevious; - public PaginatedBalanceAccountsResponse() {} + public PaginatedBalanceAccountsResponse() { + } /** * List of balance accounts. * * @param balanceAccounts List of balance accounts. - * @return the current {@code PaginatedBalanceAccountsResponse} instance, allowing for method - * chaining + * @return the current {@code PaginatedBalanceAccountsResponse} instance, allowing for method chaining */ - public PaginatedBalanceAccountsResponse balanceAccounts( - List balanceAccounts) { + public PaginatedBalanceAccountsResponse balanceAccounts(List balanceAccounts) { this.balanceAccounts = balanceAccounts; return this; } - public PaginatedBalanceAccountsResponse addBalanceAccountsItem( - BalanceAccountBase balanceAccountsItem) { + public PaginatedBalanceAccountsResponse addBalanceAccountsItem(BalanceAccountBase balanceAccountsItem) { if (this.balanceAccounts == null) { this.balanceAccounts = new ArrayList<>(); } @@ -61,7 +70,6 @@ public PaginatedBalanceAccountsResponse addBalanceAccountsItem( /** * List of balance accounts. - * * @return balanceAccounts List of balance accounts. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNTS) @@ -85,8 +93,7 @@ public void setBalanceAccounts(List balanceAccounts) { * Indicates whether there are more items on the next page. * * @param hasNext Indicates whether there are more items on the next page. - * @return the current {@code PaginatedBalanceAccountsResponse} instance, allowing for method - * chaining + * @return the current {@code PaginatedBalanceAccountsResponse} instance, allowing for method chaining */ public PaginatedBalanceAccountsResponse hasNext(Boolean hasNext) { this.hasNext = hasNext; @@ -95,7 +102,6 @@ public PaginatedBalanceAccountsResponse hasNext(Boolean hasNext) { /** * Indicates whether there are more items on the next page. - * * @return hasNext Indicates whether there are more items on the next page. */ @JsonProperty(JSON_PROPERTY_HAS_NEXT) @@ -119,8 +125,7 @@ public void setHasNext(Boolean hasNext) { * Indicates whether there are more items on the previous page. * * @param hasPrevious Indicates whether there are more items on the previous page. - * @return the current {@code PaginatedBalanceAccountsResponse} instance, allowing for method - * chaining + * @return the current {@code PaginatedBalanceAccountsResponse} instance, allowing for method chaining */ public PaginatedBalanceAccountsResponse hasPrevious(Boolean hasPrevious) { this.hasPrevious = hasPrevious; @@ -129,7 +134,6 @@ public PaginatedBalanceAccountsResponse hasPrevious(Boolean hasPrevious) { /** * Indicates whether there are more items on the previous page. - * * @return hasPrevious Indicates whether there are more items on the previous page. */ @JsonProperty(JSON_PROPERTY_HAS_PREVIOUS) @@ -149,7 +153,9 @@ public void setHasPrevious(Boolean hasPrevious) { this.hasPrevious = hasPrevious; } - /** Return true if this PaginatedBalanceAccountsResponse object is equal to o. */ + /** + * Return true if this PaginatedBalanceAccountsResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -158,11 +164,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaginatedBalanceAccountsResponse paginatedBalanceAccountsResponse = - (PaginatedBalanceAccountsResponse) o; - return Objects.equals(this.balanceAccounts, paginatedBalanceAccountsResponse.balanceAccounts) - && Objects.equals(this.hasNext, paginatedBalanceAccountsResponse.hasNext) - && Objects.equals(this.hasPrevious, paginatedBalanceAccountsResponse.hasPrevious); + PaginatedBalanceAccountsResponse paginatedBalanceAccountsResponse = (PaginatedBalanceAccountsResponse) o; + return Objects.equals(this.balanceAccounts, paginatedBalanceAccountsResponse.balanceAccounts) && + Objects.equals(this.hasNext, paginatedBalanceAccountsResponse.hasNext) && + Objects.equals(this.hasPrevious, paginatedBalanceAccountsResponse.hasPrevious); } @Override @@ -182,7 +187,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -191,24 +197,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaginatedBalanceAccountsResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaginatedBalanceAccountsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaginatedBalanceAccountsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to PaginatedBalanceAccountsResponse */ - public static PaginatedBalanceAccountsResponse fromJson(String jsonString) - throws JsonProcessingException { + public static PaginatedBalanceAccountsResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaginatedBalanceAccountsResponse.class); } - - /** - * Convert an instance of PaginatedBalanceAccountsResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaginatedBalanceAccountsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaginatedGetCardOrderItemResponse.java b/src/main/java/com/adyen/model/balanceplatform/PaginatedGetCardOrderItemResponse.java index 3c817d137..3dbead8d1 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaginatedGetCardOrderItemResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaginatedGetCardOrderItemResponse.java @@ -2,29 +2,40 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.CardOrderItem; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PaginatedGetCardOrderItemResponse */ +/** + * PaginatedGetCardOrderItemResponse + */ @JsonPropertyOrder({ PaginatedGetCardOrderItemResponse.JSON_PROPERTY_DATA, PaginatedGetCardOrderItemResponse.JSON_PROPERTY_HAS_NEXT, PaginatedGetCardOrderItemResponse.JSON_PROPERTY_HAS_PREVIOUS }) + public class PaginatedGetCardOrderItemResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; @@ -35,14 +46,14 @@ public class PaginatedGetCardOrderItemResponse { public static final String JSON_PROPERTY_HAS_PREVIOUS = "hasPrevious"; private Boolean hasPrevious; - public PaginatedGetCardOrderItemResponse() {} + public PaginatedGetCardOrderItemResponse() { + } /** * List of card order items in the card order batch. * * @param data List of card order items in the card order batch. - * @return the current {@code PaginatedGetCardOrderItemResponse} instance, allowing for method - * chaining + * @return the current {@code PaginatedGetCardOrderItemResponse} instance, allowing for method chaining */ public PaginatedGetCardOrderItemResponse data(List data) { this.data = data; @@ -59,7 +70,6 @@ public PaginatedGetCardOrderItemResponse addDataItem(CardOrderItem dataItem) { /** * List of card order items in the card order batch. - * * @return data List of card order items in the card order batch. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -83,8 +93,7 @@ public void setData(List data) { * Indicates whether there are more items on the next page. * * @param hasNext Indicates whether there are more items on the next page. - * @return the current {@code PaginatedGetCardOrderItemResponse} instance, allowing for method - * chaining + * @return the current {@code PaginatedGetCardOrderItemResponse} instance, allowing for method chaining */ public PaginatedGetCardOrderItemResponse hasNext(Boolean hasNext) { this.hasNext = hasNext; @@ -93,7 +102,6 @@ public PaginatedGetCardOrderItemResponse hasNext(Boolean hasNext) { /** * Indicates whether there are more items on the next page. - * * @return hasNext Indicates whether there are more items on the next page. */ @JsonProperty(JSON_PROPERTY_HAS_NEXT) @@ -117,8 +125,7 @@ public void setHasNext(Boolean hasNext) { * Indicates whether there are more items on the previous page. * * @param hasPrevious Indicates whether there are more items on the previous page. - * @return the current {@code PaginatedGetCardOrderItemResponse} instance, allowing for method - * chaining + * @return the current {@code PaginatedGetCardOrderItemResponse} instance, allowing for method chaining */ public PaginatedGetCardOrderItemResponse hasPrevious(Boolean hasPrevious) { this.hasPrevious = hasPrevious; @@ -127,7 +134,6 @@ public PaginatedGetCardOrderItemResponse hasPrevious(Boolean hasPrevious) { /** * Indicates whether there are more items on the previous page. - * * @return hasPrevious Indicates whether there are more items on the previous page. */ @JsonProperty(JSON_PROPERTY_HAS_PREVIOUS) @@ -147,7 +153,9 @@ public void setHasPrevious(Boolean hasPrevious) { this.hasPrevious = hasPrevious; } - /** Return true if this PaginatedGetCardOrderItemResponse object is equal to o. */ + /** + * Return true if this PaginatedGetCardOrderItemResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,11 +164,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaginatedGetCardOrderItemResponse paginatedGetCardOrderItemResponse = - (PaginatedGetCardOrderItemResponse) o; - return Objects.equals(this.data, paginatedGetCardOrderItemResponse.data) - && Objects.equals(this.hasNext, paginatedGetCardOrderItemResponse.hasNext) - && Objects.equals(this.hasPrevious, paginatedGetCardOrderItemResponse.hasPrevious); + PaginatedGetCardOrderItemResponse paginatedGetCardOrderItemResponse = (PaginatedGetCardOrderItemResponse) o; + return Objects.equals(this.data, paginatedGetCardOrderItemResponse.data) && + Objects.equals(this.hasNext, paginatedGetCardOrderItemResponse.hasNext) && + Objects.equals(this.hasPrevious, paginatedGetCardOrderItemResponse.hasPrevious); } @Override @@ -180,7 +187,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -189,24 +197,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaginatedGetCardOrderItemResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaginatedGetCardOrderItemResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaginatedGetCardOrderItemResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to PaginatedGetCardOrderItemResponse */ - public static PaginatedGetCardOrderItemResponse fromJson(String jsonString) - throws JsonProcessingException { + public static PaginatedGetCardOrderItemResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaginatedGetCardOrderItemResponse.class); } - - /** - * Convert an instance of PaginatedGetCardOrderItemResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaginatedGetCardOrderItemResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaginatedGetCardOrderResponse.java b/src/main/java/com/adyen/model/balanceplatform/PaginatedGetCardOrderResponse.java index ef97d58f7..973eda716 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaginatedGetCardOrderResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaginatedGetCardOrderResponse.java @@ -2,29 +2,40 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.CardOrder; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PaginatedGetCardOrderResponse */ +/** + * PaginatedGetCardOrderResponse + */ @JsonPropertyOrder({ PaginatedGetCardOrderResponse.JSON_PROPERTY_CARD_ORDERS, PaginatedGetCardOrderResponse.JSON_PROPERTY_HAS_NEXT, PaginatedGetCardOrderResponse.JSON_PROPERTY_HAS_PREVIOUS }) + public class PaginatedGetCardOrderResponse { public static final String JSON_PROPERTY_CARD_ORDERS = "cardOrders"; private List cardOrders; @@ -35,14 +46,14 @@ public class PaginatedGetCardOrderResponse { public static final String JSON_PROPERTY_HAS_PREVIOUS = "hasPrevious"; private Boolean hasPrevious; - public PaginatedGetCardOrderResponse() {} + public PaginatedGetCardOrderResponse() { + } /** * Contains objects with information about card orders. * * @param cardOrders Contains objects with information about card orders. - * @return the current {@code PaginatedGetCardOrderResponse} instance, allowing for method - * chaining + * @return the current {@code PaginatedGetCardOrderResponse} instance, allowing for method chaining */ public PaginatedGetCardOrderResponse cardOrders(List cardOrders) { this.cardOrders = cardOrders; @@ -59,7 +70,6 @@ public PaginatedGetCardOrderResponse addCardOrdersItem(CardOrder cardOrdersItem) /** * Contains objects with information about card orders. - * * @return cardOrders Contains objects with information about card orders. */ @JsonProperty(JSON_PROPERTY_CARD_ORDERS) @@ -83,8 +93,7 @@ public void setCardOrders(List cardOrders) { * Indicates whether there are more items on the next page. * * @param hasNext Indicates whether there are more items on the next page. - * @return the current {@code PaginatedGetCardOrderResponse} instance, allowing for method - * chaining + * @return the current {@code PaginatedGetCardOrderResponse} instance, allowing for method chaining */ public PaginatedGetCardOrderResponse hasNext(Boolean hasNext) { this.hasNext = hasNext; @@ -93,7 +102,6 @@ public PaginatedGetCardOrderResponse hasNext(Boolean hasNext) { /** * Indicates whether there are more items on the next page. - * * @return hasNext Indicates whether there are more items on the next page. */ @JsonProperty(JSON_PROPERTY_HAS_NEXT) @@ -117,8 +125,7 @@ public void setHasNext(Boolean hasNext) { * Indicates whether there are more items on the previous page. * * @param hasPrevious Indicates whether there are more items on the previous page. - * @return the current {@code PaginatedGetCardOrderResponse} instance, allowing for method - * chaining + * @return the current {@code PaginatedGetCardOrderResponse} instance, allowing for method chaining */ public PaginatedGetCardOrderResponse hasPrevious(Boolean hasPrevious) { this.hasPrevious = hasPrevious; @@ -127,7 +134,6 @@ public PaginatedGetCardOrderResponse hasPrevious(Boolean hasPrevious) { /** * Indicates whether there are more items on the previous page. - * * @return hasPrevious Indicates whether there are more items on the previous page. */ @JsonProperty(JSON_PROPERTY_HAS_PREVIOUS) @@ -147,7 +153,9 @@ public void setHasPrevious(Boolean hasPrevious) { this.hasPrevious = hasPrevious; } - /** Return true if this PaginatedGetCardOrderResponse object is equal to o. */ + /** + * Return true if this PaginatedGetCardOrderResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -157,9 +165,9 @@ public boolean equals(Object o) { return false; } PaginatedGetCardOrderResponse paginatedGetCardOrderResponse = (PaginatedGetCardOrderResponse) o; - return Objects.equals(this.cardOrders, paginatedGetCardOrderResponse.cardOrders) - && Objects.equals(this.hasNext, paginatedGetCardOrderResponse.hasNext) - && Objects.equals(this.hasPrevious, paginatedGetCardOrderResponse.hasPrevious); + return Objects.equals(this.cardOrders, paginatedGetCardOrderResponse.cardOrders) && + Objects.equals(this.hasNext, paginatedGetCardOrderResponse.hasNext) && + Objects.equals(this.hasPrevious, paginatedGetCardOrderResponse.hasPrevious); } @Override @@ -179,7 +187,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -188,24 +197,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaginatedGetCardOrderResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaginatedGetCardOrderResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaginatedGetCardOrderResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to PaginatedGetCardOrderResponse */ - public static PaginatedGetCardOrderResponse fromJson(String jsonString) - throws JsonProcessingException { + public static PaginatedGetCardOrderResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaginatedGetCardOrderResponse.class); } - - /** - * Convert an instance of PaginatedGetCardOrderResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaginatedGetCardOrderResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaginatedPaymentInstrumentsResponse.java b/src/main/java/com/adyen/model/balanceplatform/PaginatedPaymentInstrumentsResponse.java index 96ec52439..5dce5ffd8 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaginatedPaymentInstrumentsResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaginatedPaymentInstrumentsResponse.java @@ -2,29 +2,40 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.PaymentInstrument; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PaginatedPaymentInstrumentsResponse */ +/** + * PaginatedPaymentInstrumentsResponse + */ @JsonPropertyOrder({ PaginatedPaymentInstrumentsResponse.JSON_PROPERTY_HAS_NEXT, PaginatedPaymentInstrumentsResponse.JSON_PROPERTY_HAS_PREVIOUS, PaginatedPaymentInstrumentsResponse.JSON_PROPERTY_PAYMENT_INSTRUMENTS }) + public class PaginatedPaymentInstrumentsResponse { public static final String JSON_PROPERTY_HAS_NEXT = "hasNext"; private Boolean hasNext; @@ -35,14 +46,14 @@ public class PaginatedPaymentInstrumentsResponse { public static final String JSON_PROPERTY_PAYMENT_INSTRUMENTS = "paymentInstruments"; private List paymentInstruments; - public PaginatedPaymentInstrumentsResponse() {} + public PaginatedPaymentInstrumentsResponse() { + } /** * Indicates whether there are more items on the next page. * * @param hasNext Indicates whether there are more items on the next page. - * @return the current {@code PaginatedPaymentInstrumentsResponse} instance, allowing for method - * chaining + * @return the current {@code PaginatedPaymentInstrumentsResponse} instance, allowing for method chaining */ public PaginatedPaymentInstrumentsResponse hasNext(Boolean hasNext) { this.hasNext = hasNext; @@ -51,7 +62,6 @@ public PaginatedPaymentInstrumentsResponse hasNext(Boolean hasNext) { /** * Indicates whether there are more items on the next page. - * * @return hasNext Indicates whether there are more items on the next page. */ @JsonProperty(JSON_PROPERTY_HAS_NEXT) @@ -75,8 +85,7 @@ public void setHasNext(Boolean hasNext) { * Indicates whether there are more items on the previous page. * * @param hasPrevious Indicates whether there are more items on the previous page. - * @return the current {@code PaginatedPaymentInstrumentsResponse} instance, allowing for method - * chaining + * @return the current {@code PaginatedPaymentInstrumentsResponse} instance, allowing for method chaining */ public PaginatedPaymentInstrumentsResponse hasPrevious(Boolean hasPrevious) { this.hasPrevious = hasPrevious; @@ -85,7 +94,6 @@ public PaginatedPaymentInstrumentsResponse hasPrevious(Boolean hasPrevious) { /** * Indicates whether there are more items on the previous page. - * * @return hasPrevious Indicates whether there are more items on the previous page. */ @JsonProperty(JSON_PROPERTY_HAS_PREVIOUS) @@ -109,17 +117,14 @@ public void setHasPrevious(Boolean hasPrevious) { * List of payment instruments associated with the balance account. * * @param paymentInstruments List of payment instruments associated with the balance account. - * @return the current {@code PaginatedPaymentInstrumentsResponse} instance, allowing for method - * chaining + * @return the current {@code PaginatedPaymentInstrumentsResponse} instance, allowing for method chaining */ - public PaginatedPaymentInstrumentsResponse paymentInstruments( - List paymentInstruments) { + public PaginatedPaymentInstrumentsResponse paymentInstruments(List paymentInstruments) { this.paymentInstruments = paymentInstruments; return this; } - public PaginatedPaymentInstrumentsResponse addPaymentInstrumentsItem( - PaymentInstrument paymentInstrumentsItem) { + public PaginatedPaymentInstrumentsResponse addPaymentInstrumentsItem(PaymentInstrument paymentInstrumentsItem) { if (this.paymentInstruments == null) { this.paymentInstruments = new ArrayList<>(); } @@ -129,7 +134,6 @@ public PaginatedPaymentInstrumentsResponse addPaymentInstrumentsItem( /** * List of payment instruments associated with the balance account. - * * @return paymentInstruments List of payment instruments associated with the balance account. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENTS) @@ -149,7 +153,9 @@ public void setPaymentInstruments(List paymentInstruments) { this.paymentInstruments = paymentInstruments; } - /** Return true if this PaginatedPaymentInstrumentsResponse object is equal to o. */ + /** + * Return true if this PaginatedPaymentInstrumentsResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -158,12 +164,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaginatedPaymentInstrumentsResponse paginatedPaymentInstrumentsResponse = - (PaginatedPaymentInstrumentsResponse) o; - return Objects.equals(this.hasNext, paginatedPaymentInstrumentsResponse.hasNext) - && Objects.equals(this.hasPrevious, paginatedPaymentInstrumentsResponse.hasPrevious) - && Objects.equals( - this.paymentInstruments, paginatedPaymentInstrumentsResponse.paymentInstruments); + PaginatedPaymentInstrumentsResponse paginatedPaymentInstrumentsResponse = (PaginatedPaymentInstrumentsResponse) o; + return Objects.equals(this.hasNext, paginatedPaymentInstrumentsResponse.hasNext) && + Objects.equals(this.hasPrevious, paginatedPaymentInstrumentsResponse.hasPrevious) && + Objects.equals(this.paymentInstruments, paginatedPaymentInstrumentsResponse.paymentInstruments); } @Override @@ -183,7 +187,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -192,24 +197,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaginatedPaymentInstrumentsResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaginatedPaymentInstrumentsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaginatedPaymentInstrumentsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to PaginatedPaymentInstrumentsResponse */ - public static PaginatedPaymentInstrumentsResponse fromJson(String jsonString) - throws JsonProcessingException { + public static PaginatedPaymentInstrumentsResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaginatedPaymentInstrumentsResponse.class); } - - /** - * Convert an instance of PaginatedPaymentInstrumentsResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaginatedPaymentInstrumentsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrument.java b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrument.java index dd614b16b..6d17102ed 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrument.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrument.java @@ -2,28 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.BankAccountDetails; +import com.adyen.model.balanceplatform.Card; +import com.adyen.model.balanceplatform.PaymentInstrumentAdditionalBankAccountIdentificationsInner; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** PaymentInstrument */ + +/** + * PaymentInstrument + */ @JsonPropertyOrder({ PaymentInstrument.JSON_PROPERTY_ADDITIONAL_BANK_ACCOUNT_IDENTIFICATIONS, PaymentInstrument.JSON_PROPERTY_BALANCE_ACCOUNT_ID, @@ -41,12 +49,11 @@ PaymentInstrument.JSON_PROPERTY_STATUS_REASON, PaymentInstrument.JSON_PROPERTY_TYPE }) + public class PaymentInstrument { - public static final String JSON_PROPERTY_ADDITIONAL_BANK_ACCOUNT_IDENTIFICATIONS = - "additionalBankAccountIdentifications"; + public static final String JSON_PROPERTY_ADDITIONAL_BANK_ACCOUNT_IDENTIFICATIONS = "additionalBankAccountIdentifications"; @Deprecated // deprecated since Configuration API v2: Please use `bankAccount` object instead - private List - additionalBankAccountIdentifications; + private List additionalBankAccountIdentifications; public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; @@ -79,16 +86,10 @@ public class PaymentInstrument { private String replacementOfId; /** - * The status of the payment instrument. If a status is not specified when creating a payment - * instrument, it is set to **active** by default. However, there can be exceptions for cards - * based on the `card.formFactor` and the `issuingCountryCode`. For example, - * when issuing physical cards in the US, the default status is **inactive**. Possible values: * - * **active**: The payment instrument is active and can be used to make payments. * **inactive**: - * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The - * payment instrument is suspended, either because it was stolen or lost. * **closed**: The - * payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. */ public enum StatusEnum { + ACTIVE(String.valueOf("active")), CLOSED(String.valueOf("closed")), @@ -102,7 +103,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -123,11 +124,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -139,12 +136,10 @@ public static StatusEnum fromValue(String value) { private String statusComment; /** - * The reason for the status of the payment instrument. Possible values: **accountClosure**, - * **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, - * **transactionRule**, **other**. If the reason is **other**, you must also send the - * `statusComment` parameter describing the status change. + * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. */ public enum StatusReasonEnum { + ACCOUNTCLOSURE(String.valueOf("accountClosure")), DAMAGED(String.valueOf("damaged")), @@ -168,7 +163,7 @@ public enum StatusReasonEnum { private String value; StatusReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -189,11 +184,7 @@ public static StatusReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusReasonEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusReasonEnum.values())); + LOG.warning("StatusReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusReasonEnum.values())); return null; } } @@ -201,8 +192,11 @@ public static StatusReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS_REASON = "statusReason"; private StatusReasonEnum statusReason; - /** The type of payment instrument. Possible values: **card**, **bankAccount**. */ + /** + * The type of payment instrument. Possible values: **card**, **bankAccount**. + */ public enum TypeEnum { + BANKACCOUNT(String.valueOf("bankAccount")), CARD(String.valueOf("card")); @@ -212,7 +206,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -233,11 +227,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -245,29 +235,25 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PaymentInstrument() {} + public PaymentInstrument() { + } /** - * Contains optional, additional business account details. Returned when you create a payment - * instrument with `type` **bankAccount**. + * Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. * - * @param additionalBankAccountIdentifications Contains optional, additional business account - * details. Returned when you create a payment instrument with `type` - * **bankAccount**. + * @param additionalBankAccountIdentifications Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. * @return the current {@code PaymentInstrument} instance, allowing for method chaining - * @deprecated since Configuration API v2 Please use `bankAccount` object instead + * + * @deprecated since Configuration API v2 + * Please use `bankAccount` object instead */ @Deprecated // deprecated since Configuration API v2: Please use `bankAccount` object instead - public PaymentInstrument additionalBankAccountIdentifications( - List - additionalBankAccountIdentifications) { + public PaymentInstrument additionalBankAccountIdentifications(List additionalBankAccountIdentifications) { this.additionalBankAccountIdentifications = additionalBankAccountIdentifications; return this; } - public PaymentInstrument addAdditionalBankAccountIdentificationsItem( - PaymentInstrumentAdditionalBankAccountIdentificationsInner - additionalBankAccountIdentificationsItem) { + public PaymentInstrument addAdditionalBankAccountIdentificationsItem(PaymentInstrumentAdditionalBankAccountIdentificationsInner additionalBankAccountIdentificationsItem) { if (this.additionalBankAccountIdentifications == null) { this.additionalBankAccountIdentifications = new ArrayList<>(); } @@ -276,48 +262,36 @@ public PaymentInstrument addAdditionalBankAccountIdentificationsItem( } /** - * Contains optional, additional business account details. Returned when you create a payment - * instrument with `type` **bankAccount**. - * - * @return additionalBankAccountIdentifications Contains optional, additional business account - * details. Returned when you create a payment instrument with `type` - * **bankAccount**. + * Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. + * @return additionalBankAccountIdentifications Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. * @deprecated // deprecated since Configuration API v2: Please use `bankAccount` object instead */ @Deprecated // deprecated since Configuration API v2: Please use `bankAccount` object instead @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_ACCOUNT_IDENTIFICATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List - getAdditionalBankAccountIdentifications() { + public List getAdditionalBankAccountIdentifications() { return additionalBankAccountIdentifications; } /** - * Contains optional, additional business account details. Returned when you create a payment - * instrument with `type` **bankAccount**. + * Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. * - * @param additionalBankAccountIdentifications Contains optional, additional business account - * details. Returned when you create a payment instrument with `type` - * **bankAccount**. - * @deprecated since Configuration API v2 Please use `bankAccount` object instead + * @param additionalBankAccountIdentifications Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. + * + * @deprecated since Configuration API v2 + * Please use `bankAccount` object instead */ @Deprecated // deprecated since Configuration API v2: Please use `bankAccount` object instead @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_ACCOUNT_IDENTIFICATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAdditionalBankAccountIdentifications( - List - additionalBankAccountIdentifications) { + public void setAdditionalBankAccountIdentifications(List additionalBankAccountIdentifications) { this.additionalBankAccountIdentifications = additionalBankAccountIdentifications; } /** - * The unique identifier of the [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) - * associated with the payment instrument. + * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. * - * @param balanceAccountId The unique identifier of the [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) - * associated with the payment instrument. + * @param balanceAccountId The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument balanceAccountId(String balanceAccountId) { @@ -326,13 +300,8 @@ public PaymentInstrument balanceAccountId(String balanceAccountId) { } /** - * The unique identifier of the [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) - * associated with the payment instrument. - * - * @return balanceAccountId The unique identifier of the [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) - * associated with the payment instrument. + * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. + * @return balanceAccountId The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -341,13 +310,9 @@ public String getBalanceAccountId() { } /** - * The unique identifier of the [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) - * associated with the payment instrument. + * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. * - * @param balanceAccountId The unique identifier of the [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) - * associated with the payment instrument. + * @param balanceAccountId The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -358,7 +323,7 @@ public void setBalanceAccountId(String balanceAccountId) { /** * bankAccount * - * @param bankAccount + * @param bankAccount * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument bankAccount(BankAccountDetails bankAccount) { @@ -368,8 +333,7 @@ public PaymentInstrument bankAccount(BankAccountDetails bankAccount) { /** * Get bankAccount - * - * @return bankAccount + * @return bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -380,7 +344,7 @@ public BankAccountDetails getBankAccount() { /** * bankAccount * - * @param bankAccount + * @param bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -391,7 +355,7 @@ public void setBankAccount(BankAccountDetails bankAccount) { /** * card * - * @param card + * @param card * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument card(Card card) { @@ -401,8 +365,7 @@ public PaymentInstrument card(Card card) { /** * Get card - * - * @return card + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -413,7 +376,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -434,7 +397,6 @@ public PaymentInstrument description(String description) { /** * Your description for the payment instrument, maximum 300 characters. - * * @return description Your description for the payment instrument, maximum 300 characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -467,7 +429,6 @@ public PaymentInstrument id(String id) { /** * The unique identifier of the payment instrument. - * * @return id The unique identifier of the payment instrument. */ @JsonProperty(JSON_PROPERTY_ID) @@ -488,12 +449,9 @@ public void setId(String id) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code where the payment instrument is issued. For example, **NL** or **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. * - * @param issuingCountryCode The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment - * instrument is issued. For example, **NL** or **US**. + * @param issuingCountryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument issuingCountryCode(String issuingCountryCode) { @@ -502,12 +460,8 @@ public PaymentInstrument issuingCountryCode(String issuingCountryCode) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code where the payment instrument is issued. For example, **NL** or **US**. - * - * @return issuingCountryCode The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment - * instrument is issued. For example, **NL** or **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. + * @return issuingCountryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. */ @JsonProperty(JSON_PROPERTY_ISSUING_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -516,12 +470,9 @@ public String getIssuingCountryCode() { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code where the payment instrument is issued. For example, **NL** or **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. * - * @param issuingCountryCode The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment - * instrument is issued. For example, **NL** or **US**. + * @param issuingCountryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. */ @JsonProperty(JSON_PROPERTY_ISSUING_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -530,13 +481,9 @@ public void setIssuingCountryCode(String issuingCountryCode) { } /** - * The unique identifier of the [payment instrument - * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) - * to which the payment instrument belongs. + * The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. * - * @param paymentInstrumentGroupId The unique identifier of the [payment instrument - * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) - * to which the payment instrument belongs. + * @param paymentInstrumentGroupId The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument paymentInstrumentGroupId(String paymentInstrumentGroupId) { @@ -545,13 +492,8 @@ public PaymentInstrument paymentInstrumentGroupId(String paymentInstrumentGroupI } /** - * The unique identifier of the [payment instrument - * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) - * to which the payment instrument belongs. - * - * @return paymentInstrumentGroupId The unique identifier of the [payment instrument - * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) - * to which the payment instrument belongs. + * The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. + * @return paymentInstrumentGroupId The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_GROUP_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -560,13 +502,9 @@ public String getPaymentInstrumentGroupId() { } /** - * The unique identifier of the [payment instrument - * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) - * to which the payment instrument belongs. + * The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. * - * @param paymentInstrumentGroupId The unique identifier of the [payment instrument - * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) - * to which the payment instrument belongs. + * @param paymentInstrumentGroupId The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_GROUP_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -587,7 +525,6 @@ public PaymentInstrument reference(String reference) { /** * Your reference for the payment instrument, maximum 150 characters. - * * @return reference Your reference for the payment instrument, maximum 150 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -610,8 +547,7 @@ public void setReference(String reference) { /** * The unique identifier of the payment instrument that replaced this payment instrument. * - * @param replacedById The unique identifier of the payment instrument that replaced this payment - * instrument. + * @param replacedById The unique identifier of the payment instrument that replaced this payment instrument. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument replacedById(String replacedById) { @@ -621,9 +557,7 @@ public PaymentInstrument replacedById(String replacedById) { /** * The unique identifier of the payment instrument that replaced this payment instrument. - * - * @return replacedById The unique identifier of the payment instrument that replaced this payment - * instrument. + * @return replacedById The unique identifier of the payment instrument that replaced this payment instrument. */ @JsonProperty(JSON_PROPERTY_REPLACED_BY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -634,8 +568,7 @@ public String getReplacedById() { /** * The unique identifier of the payment instrument that replaced this payment instrument. * - * @param replacedById The unique identifier of the payment instrument that replaced this payment - * instrument. + * @param replacedById The unique identifier of the payment instrument that replaced this payment instrument. */ @JsonProperty(JSON_PROPERTY_REPLACED_BY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -646,8 +579,7 @@ public void setReplacedById(String replacedById) { /** * The unique identifier of the payment instrument that is replaced by this payment instrument. * - * @param replacementOfId The unique identifier of the payment instrument that is replaced by this - * payment instrument. + * @param replacementOfId The unique identifier of the payment instrument that is replaced by this payment instrument. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument replacementOfId(String replacementOfId) { @@ -657,9 +589,7 @@ public PaymentInstrument replacementOfId(String replacementOfId) { /** * The unique identifier of the payment instrument that is replaced by this payment instrument. - * - * @return replacementOfId The unique identifier of the payment instrument that is replaced by - * this payment instrument. + * @return replacementOfId The unique identifier of the payment instrument that is replaced by this payment instrument. */ @JsonProperty(JSON_PROPERTY_REPLACEMENT_OF_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -670,8 +600,7 @@ public String getReplacementOfId() { /** * The unique identifier of the payment instrument that is replaced by this payment instrument. * - * @param replacementOfId The unique identifier of the payment instrument that is replaced by this - * payment instrument. + * @param replacementOfId The unique identifier of the payment instrument that is replaced by this payment instrument. */ @JsonProperty(JSON_PROPERTY_REPLACEMENT_OF_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -680,24 +609,9 @@ public void setReplacementOfId(String replacementOfId) { } /** - * The status of the payment instrument. If a status is not specified when creating a payment - * instrument, it is set to **active** by default. However, there can be exceptions for cards - * based on the `card.formFactor` and the `issuingCountryCode`. For example, - * when issuing physical cards in the US, the default status is **inactive**. Possible values: * - * **active**: The payment instrument is active and can be used to make payments. * **inactive**: - * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The - * payment instrument is suspended, either because it was stolen or lost. * **closed**: The - * payment instrument is permanently closed. This action cannot be undone. - * - * @param status The status of the payment instrument. If a status is not specified when creating - * a payment instrument, it is set to **active** by default. However, there can be exceptions - * for cards based on the `card.formFactor` and the `issuingCountryCode`. - * For example, when issuing physical cards in the US, the default status is **inactive**. - * Possible values: * **active**: The payment instrument is active and can be used to make - * payments. * **inactive**: The payment instrument is inactive and cannot be used to make - * payments. * **suspended**: The payment instrument is suspended, either because it was - * stolen or lost. * **closed**: The payment instrument is permanently closed. This action - * cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * + * @param status The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument status(StatusEnum status) { @@ -706,24 +620,8 @@ public PaymentInstrument status(StatusEnum status) { } /** - * The status of the payment instrument. If a status is not specified when creating a payment - * instrument, it is set to **active** by default. However, there can be exceptions for cards - * based on the `card.formFactor` and the `issuingCountryCode`. For example, - * when issuing physical cards in the US, the default status is **inactive**. Possible values: * - * **active**: The payment instrument is active and can be used to make payments. * **inactive**: - * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The - * payment instrument is suspended, either because it was stolen or lost. * **closed**: The - * payment instrument is permanently closed. This action cannot be undone. - * - * @return status The status of the payment instrument. If a status is not specified when creating - * a payment instrument, it is set to **active** by default. However, there can be exceptions - * for cards based on the `card.formFactor` and the `issuingCountryCode`. - * For example, when issuing physical cards in the US, the default status is **inactive**. - * Possible values: * **active**: The payment instrument is active and can be used to make - * payments. * **inactive**: The payment instrument is inactive and cannot be used to make - * payments. * **suspended**: The payment instrument is suspended, either because it was - * stolen or lost. * **closed**: The payment instrument is permanently closed. This action - * cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * @return status The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -732,24 +630,9 @@ public StatusEnum getStatus() { } /** - * The status of the payment instrument. If a status is not specified when creating a payment - * instrument, it is set to **active** by default. However, there can be exceptions for cards - * based on the `card.formFactor` and the `issuingCountryCode`. For example, - * when issuing physical cards in the US, the default status is **inactive**. Possible values: * - * **active**: The payment instrument is active and can be used to make payments. * **inactive**: - * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The - * payment instrument is suspended, either because it was stolen or lost. * **closed**: The - * payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. * - * @param status The status of the payment instrument. If a status is not specified when creating - * a payment instrument, it is set to **active** by default. However, there can be exceptions - * for cards based on the `card.formFactor` and the `issuingCountryCode`. - * For example, when issuing physical cards in the US, the default status is **inactive**. - * Possible values: * **active**: The payment instrument is active and can be used to make - * payments. * **inactive**: The payment instrument is inactive and cannot be used to make - * payments. * **suspended**: The payment instrument is suspended, either because it was - * stolen or lost. * **closed**: The payment instrument is permanently closed. This action - * cannot be undone. + * @param status The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -758,11 +641,9 @@ public void setStatus(StatusEnum status) { } /** - * The status comment provides additional information for the statusReason of the payment - * instrument. + * The status comment provides additional information for the statusReason of the payment instrument. * - * @param statusComment The status comment provides additional information for the statusReason of - * the payment instrument. + * @param statusComment The status comment provides additional information for the statusReason of the payment instrument. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument statusComment(String statusComment) { @@ -771,11 +652,8 @@ public PaymentInstrument statusComment(String statusComment) { } /** - * The status comment provides additional information for the statusReason of the payment - * instrument. - * - * @return statusComment The status comment provides additional information for the statusReason - * of the payment instrument. + * The status comment provides additional information for the statusReason of the payment instrument. + * @return statusComment The status comment provides additional information for the statusReason of the payment instrument. */ @JsonProperty(JSON_PROPERTY_STATUS_COMMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -784,11 +662,9 @@ public String getStatusComment() { } /** - * The status comment provides additional information for the statusReason of the payment - * instrument. + * The status comment provides additional information for the statusReason of the payment instrument. * - * @param statusComment The status comment provides additional information for the statusReason of - * the payment instrument. + * @param statusComment The status comment provides additional information for the statusReason of the payment instrument. */ @JsonProperty(JSON_PROPERTY_STATUS_COMMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -797,15 +673,9 @@ public void setStatusComment(String statusComment) { } /** - * The reason for the status of the payment instrument. Possible values: **accountClosure**, - * **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, - * **transactionRule**, **other**. If the reason is **other**, you must also send the - * `statusComment` parameter describing the status change. + * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. * - * @param statusReason The reason for the status of the payment instrument. Possible values: - * **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, - * **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must - * also send the `statusComment` parameter describing the status change. + * @param statusReason The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument statusReason(StatusReasonEnum statusReason) { @@ -814,15 +684,8 @@ public PaymentInstrument statusReason(StatusReasonEnum statusReason) { } /** - * The reason for the status of the payment instrument. Possible values: **accountClosure**, - * **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, - * **transactionRule**, **other**. If the reason is **other**, you must also send the - * `statusComment` parameter describing the status change. - * - * @return statusReason The reason for the status of the payment instrument. Possible values: - * **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, - * **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must - * also send the `statusComment` parameter describing the status change. + * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * @return statusReason The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. */ @JsonProperty(JSON_PROPERTY_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -831,15 +694,9 @@ public StatusReasonEnum getStatusReason() { } /** - * The reason for the status of the payment instrument. Possible values: **accountClosure**, - * **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, - * **transactionRule**, **other**. If the reason is **other**, you must also send the - * `statusComment` parameter describing the status change. + * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. * - * @param statusReason The reason for the status of the payment instrument. Possible values: - * **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, - * **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must - * also send the `statusComment` parameter describing the status change. + * @param statusReason The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. */ @JsonProperty(JSON_PROPERTY_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -848,9 +705,9 @@ public void setStatusReason(StatusReasonEnum statusReason) { } /** - * The type of payment instrument. Possible values: **card**, **bankAccount**. + * The type of payment instrument. Possible values: **card**, **bankAccount**. * - * @param type The type of payment instrument. Possible values: **card**, **bankAccount**. + * @param type The type of payment instrument. Possible values: **card**, **bankAccount**. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument type(TypeEnum type) { @@ -859,9 +716,8 @@ public PaymentInstrument type(TypeEnum type) { } /** - * The type of payment instrument. Possible values: **card**, **bankAccount**. - * - * @return type The type of payment instrument. Possible values: **card**, **bankAccount**. + * The type of payment instrument. Possible values: **card**, **bankAccount**. + * @return type The type of payment instrument. Possible values: **card**, **bankAccount**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -870,9 +726,9 @@ public TypeEnum getType() { } /** - * The type of payment instrument. Possible values: **card**, **bankAccount**. + * The type of payment instrument. Possible values: **card**, **bankAccount**. * - * @param type The type of payment instrument. Possible values: **card**, **bankAccount**. + * @param type The type of payment instrument. Possible values: **card**, **bankAccount**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -880,7 +736,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this PaymentInstrument object is equal to o. */ + /** + * Return true if this PaymentInstrument object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -890,61 +748,40 @@ public boolean equals(Object o) { return false; } PaymentInstrument paymentInstrument = (PaymentInstrument) o; - return Objects.equals( - this.additionalBankAccountIdentifications, - paymentInstrument.additionalBankAccountIdentifications) - && Objects.equals(this.balanceAccountId, paymentInstrument.balanceAccountId) - && Objects.equals(this.bankAccount, paymentInstrument.bankAccount) - && Objects.equals(this.card, paymentInstrument.card) - && Objects.equals(this.description, paymentInstrument.description) - && Objects.equals(this.id, paymentInstrument.id) - && Objects.equals(this.issuingCountryCode, paymentInstrument.issuingCountryCode) - && Objects.equals(this.paymentInstrumentGroupId, paymentInstrument.paymentInstrumentGroupId) - && Objects.equals(this.reference, paymentInstrument.reference) - && Objects.equals(this.replacedById, paymentInstrument.replacedById) - && Objects.equals(this.replacementOfId, paymentInstrument.replacementOfId) - && Objects.equals(this.status, paymentInstrument.status) - && Objects.equals(this.statusComment, paymentInstrument.statusComment) - && Objects.equals(this.statusReason, paymentInstrument.statusReason) - && Objects.equals(this.type, paymentInstrument.type); + return Objects.equals(this.additionalBankAccountIdentifications, paymentInstrument.additionalBankAccountIdentifications) && + Objects.equals(this.balanceAccountId, paymentInstrument.balanceAccountId) && + Objects.equals(this.bankAccount, paymentInstrument.bankAccount) && + Objects.equals(this.card, paymentInstrument.card) && + Objects.equals(this.description, paymentInstrument.description) && + Objects.equals(this.id, paymentInstrument.id) && + Objects.equals(this.issuingCountryCode, paymentInstrument.issuingCountryCode) && + Objects.equals(this.paymentInstrumentGroupId, paymentInstrument.paymentInstrumentGroupId) && + Objects.equals(this.reference, paymentInstrument.reference) && + Objects.equals(this.replacedById, paymentInstrument.replacedById) && + Objects.equals(this.replacementOfId, paymentInstrument.replacementOfId) && + Objects.equals(this.status, paymentInstrument.status) && + Objects.equals(this.statusComment, paymentInstrument.statusComment) && + Objects.equals(this.statusReason, paymentInstrument.statusReason) && + Objects.equals(this.type, paymentInstrument.type); } @Override public int hashCode() { - return Objects.hash( - additionalBankAccountIdentifications, - balanceAccountId, - bankAccount, - card, - description, - id, - issuingCountryCode, - paymentInstrumentGroupId, - reference, - replacedById, - replacementOfId, - status, - statusComment, - statusReason, - type); + return Objects.hash(additionalBankAccountIdentifications, balanceAccountId, bankAccount, card, description, id, issuingCountryCode, paymentInstrumentGroupId, reference, replacedById, replacementOfId, status, statusComment, statusReason, type); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentInstrument {\n"); - sb.append(" additionalBankAccountIdentifications: ") - .append(toIndentedString(additionalBankAccountIdentifications)) - .append("\n"); + sb.append(" additionalBankAccountIdentifications: ").append(toIndentedString(additionalBankAccountIdentifications)).append("\n"); sb.append(" balanceAccountId: ").append(toIndentedString(balanceAccountId)).append("\n"); sb.append(" bankAccount: ").append(toIndentedString(bankAccount)).append("\n"); sb.append(" card: ").append(toIndentedString(card)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" issuingCountryCode: ").append(toIndentedString(issuingCountryCode)).append("\n"); - sb.append(" paymentInstrumentGroupId: ") - .append(toIndentedString(paymentInstrumentGroupId)) - .append("\n"); + sb.append(" paymentInstrumentGroupId: ").append(toIndentedString(paymentInstrumentGroupId)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" replacedById: ").append(toIndentedString(replacedById)).append("\n"); sb.append(" replacementOfId: ").append(toIndentedString(replacementOfId)).append("\n"); @@ -957,7 +794,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -966,7 +804,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentInstrument given an JSON string * * @param jsonString JSON string @@ -976,12 +814,11 @@ private String toIndentedString(Object o) { public static PaymentInstrument fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentInstrument.class); } - - /** - * Convert an instance of PaymentInstrument to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentInstrument to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java index e851b6972..3d7938c18 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java @@ -2,19 +2,44 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.IbanAccountIdentification; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + +import com.fasterxml.jackson.core.type.TypeReference; + +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.Response; +import java.io.IOException; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; + import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; +import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -24,200 +49,167 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import jakarta.ws.rs.core.GenericType; -import java.io.IOException; -import java.util.*; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashSet; -import java.util.logging.Level; -import java.util.logging.Logger; -@JsonDeserialize( - using = - PaymentInstrumentAdditionalBankAccountIdentificationsInner - .PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer.class) -@JsonSerialize( - using = - PaymentInstrumentAdditionalBankAccountIdentificationsInner - .PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer.class) -public class PaymentInstrumentAdditionalBankAccountIdentificationsInner - extends AbstractOpenApiSchema { - private static final Logger log = - Logger.getLogger(PaymentInstrumentAdditionalBankAccountIdentificationsInner.class.getName()); - - public static class PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer - extends StdSerializer { - public PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer( - Class t) { - super(t); + +@JsonDeserialize(using = PaymentInstrumentAdditionalBankAccountIdentificationsInner.PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer.class) +@JsonSerialize(using = PaymentInstrumentAdditionalBankAccountIdentificationsInner.PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer.class) +public class PaymentInstrumentAdditionalBankAccountIdentificationsInner extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(PaymentInstrumentAdditionalBankAccountIdentificationsInner.class.getName()); + + public static class PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer extends StdSerializer { + public PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer(Class t) { + super(t); + } + + public PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer() { + this(null); + } + + @Override + public void serialize(PaymentInstrumentAdditionalBankAccountIdentificationsInner value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); + } + } + + public static class PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer extends StdDeserializer { + public PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer() { + this(PaymentInstrumentAdditionalBankAccountIdentificationsInner.class); + } + + public PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer(Class vc) { + super(vc); + } + + @Override + public PaymentInstrumentAdditionalBankAccountIdentificationsInner deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize IbanAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(IbanAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'IbanAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'IbanAccountIdentification'", e); + } + + if (match == 1) { + PaymentInstrumentAdditionalBankAccountIdentificationsInner ret = new PaymentInstrumentAdditionalBankAccountIdentificationsInner(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException(String.format("Failed deserialization for PaymentInstrumentAdditionalBankAccountIdentificationsInner: %d classes match result, expected 1", match)); + } + + /** + * Handle deserialization of the 'null' value. + */ + @Override + public PaymentInstrumentAdditionalBankAccountIdentificationsInner getNullValue(DeserializationContext ctxt) throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "PaymentInstrumentAdditionalBankAccountIdentificationsInner cannot be null"); + } } - public PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer() { - this(null); + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public PaymentInstrumentAdditionalBankAccountIdentificationsInner() { + super("oneOf", Boolean.FALSE); } - @Override - public void serialize( - PaymentInstrumentAdditionalBankAccountIdentificationsInner value, - JsonGenerator jgen, - SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + public PaymentInstrumentAdditionalBankAccountIdentificationsInner(IbanAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } - } - public static class PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer - extends StdDeserializer { - public PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer() { - this(PaymentInstrumentAdditionalBankAccountIdentificationsInner.class); + static { + schemas.put("IbanAccountIdentification", new GenericType() { + }); + JSON.registerDescendants(PaymentInstrumentAdditionalBankAccountIdentificationsInner.class, Collections.unmodifiableMap(schemas)); } - public PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer(Class vc) { - super(vc); + @Override + public Map> getSchemas() { + return PaymentInstrumentAdditionalBankAccountIdentificationsInner.schemas; } + /** + * Set the instance that matches the oneOf child schema, check + * the instance parameter is valid against the oneOf child schemas: + * IbanAccountIdentification + * + * It could be an instance of the 'oneOf' schemas. + * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). + */ @Override - public PaymentInstrumentAdditionalBankAccountIdentificationsInner deserialize( - JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize IbanAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(IbanAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'IbanAccountIdentification'"); - } + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(IbanAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'IbanAccountIdentification'", e); - } - - if (match == 1) { - PaymentInstrumentAdditionalBankAccountIdentificationsInner ret = - new PaymentInstrumentAdditionalBankAccountIdentificationsInner(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for PaymentInstrumentAdditionalBankAccountIdentificationsInner: %d classes match result, expected 1", - match)); + + throw new RuntimeException("Invalid instance type. Must be IbanAccountIdentification"); } - /** Handle deserialization of the 'null' value. */ + /** + * Get the actual instance, which can be the following: + * IbanAccountIdentification + * + * @return The actual instance (IbanAccountIdentification) + */ @Override - public PaymentInstrumentAdditionalBankAccountIdentificationsInner getNullValue( - DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), - "PaymentInstrumentAdditionalBankAccountIdentificationsInner cannot be null"); + public Object getActualInstance() { + return super.getActualInstance(); } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public PaymentInstrumentAdditionalBankAccountIdentificationsInner() { - super("oneOf", Boolean.FALSE); - } - - public PaymentInstrumentAdditionalBankAccountIdentificationsInner(IbanAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("IbanAccountIdentification", new GenericType() {}); - JSON.registerDescendants( - PaymentInstrumentAdditionalBankAccountIdentificationsInner.class, - Collections.unmodifiableMap(schemas)); - } - - @Override - public Map> getSchemas() { - return PaymentInstrumentAdditionalBankAccountIdentificationsInner.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: IbanAccountIdentification - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a - * composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(IbanAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + + /** + * Get the actual instance of `IbanAccountIdentification`. If the actual instance is not `IbanAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `IbanAccountIdentification` + * @throws ClassCastException if the instance is not `IbanAccountIdentification` + */ + public IbanAccountIdentification getIbanAccountIdentification() throws ClassCastException { + return (IbanAccountIdentification)super.getActualInstance(); + } + + + /** + * Create an instance of PaymentInstrumentAdditionalBankAccountIdentificationsInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of PaymentInstrumentAdditionalBankAccountIdentificationsInner + * @throws IOException if the JSON string is invalid with respect to PaymentInstrumentAdditionalBankAccountIdentificationsInner + */ + public static PaymentInstrumentAdditionalBankAccountIdentificationsInner fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, PaymentInstrumentAdditionalBankAccountIdentificationsInner.class); + } + + /** + * Convert an instance of PaymentInstrumentAdditionalBankAccountIdentificationsInner to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); } - throw new RuntimeException("Invalid instance type. Must be IbanAccountIdentification"); - } - - /** - * Get the actual instance, which can be the following: IbanAccountIdentification - * - * @return The actual instance (IbanAccountIdentification) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `IbanAccountIdentification`. If the actual instance is not - * `IbanAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `IbanAccountIdentification` - * @throws ClassCastException if the instance is not `IbanAccountIdentification` - */ - public IbanAccountIdentification getIbanAccountIdentification() throws ClassCastException { - return (IbanAccountIdentification) super.getActualInstance(); - } - - /** - * Create an instance of PaymentInstrumentAdditionalBankAccountIdentificationsInner given an JSON - * string - * - * @param jsonString JSON string - * @return An instance of PaymentInstrumentAdditionalBankAccountIdentificationsInner - * @throws IOException if the JSON string is invalid with respect to - * PaymentInstrumentAdditionalBankAccountIdentificationsInner - */ - public static PaymentInstrumentAdditionalBankAccountIdentificationsInner fromJson( - String jsonString) throws IOException { - return JSON.getMapper() - .readValue(jsonString, PaymentInstrumentAdditionalBankAccountIdentificationsInner.class); - } - - /** - * Convert an instance of PaymentInstrumentAdditionalBankAccountIdentificationsInner to an JSON - * string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); - } } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentGroup.java b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentGroup.java index 04a81415a..1de7d2d1f 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentGroup.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentGroup.java @@ -2,24 +2,33 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PaymentInstrumentGroup */ +/** + * PaymentInstrumentGroup + */ @JsonPropertyOrder({ PaymentInstrumentGroup.JSON_PROPERTY_BALANCE_PLATFORM, PaymentInstrumentGroup.JSON_PROPERTY_DESCRIPTION, @@ -28,6 +37,7 @@ PaymentInstrumentGroup.JSON_PROPERTY_REFERENCE, PaymentInstrumentGroup.JSON_PROPERTY_TX_VARIANT }) + public class PaymentInstrumentGroup { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; @@ -47,16 +57,13 @@ public class PaymentInstrumentGroup { public static final String JSON_PROPERTY_TX_VARIANT = "txVariant"; private String txVariant; - public PaymentInstrumentGroup() {} + public PaymentInstrumentGroup() { + } /** - * The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the payment instrument group belongs. + * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs. * - * @param balancePlatform The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the payment instrument group belongs. + * @param balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs. * @return the current {@code PaymentInstrumentGroup} instance, allowing for method chaining */ public PaymentInstrumentGroup balancePlatform(String balancePlatform) { @@ -65,13 +72,8 @@ public PaymentInstrumentGroup balancePlatform(String balancePlatform) { } /** - * The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the payment instrument group belongs. - * - * @return balancePlatform The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the payment instrument group belongs. + * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs. + * @return balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,13 +82,9 @@ public String getBalancePlatform() { } /** - * The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the payment instrument group belongs. + * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs. * - * @param balancePlatform The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the payment instrument group belongs. + * @param balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,7 +105,6 @@ public PaymentInstrumentGroup description(String description) { /** * Your description for the payment instrument group. - * * @return description Your description for the payment instrument group. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -140,7 +137,6 @@ public PaymentInstrumentGroup id(String id) { /** * The unique identifier of the payment instrument group. - * * @return id The unique identifier of the payment instrument group. */ @JsonProperty(JSON_PROPERTY_ID) @@ -181,7 +177,6 @@ public PaymentInstrumentGroup putPropertiesItem(String key, String propertiesIte /** * Properties of the payment instrument group. - * * @return properties Properties of the payment instrument group. */ @JsonProperty(JSON_PROPERTY_PROPERTIES) @@ -214,7 +209,6 @@ public PaymentInstrumentGroup reference(String reference) { /** * Your reference for the payment instrument group. - * * @return reference Your reference for the payment instrument group. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -247,7 +241,6 @@ public PaymentInstrumentGroup txVariant(String txVariant) { /** * The tx variant of the payment instrument group. - * * @return txVariant The tx variant of the payment instrument group. */ @JsonProperty(JSON_PROPERTY_TX_VARIANT) @@ -267,7 +260,9 @@ public void setTxVariant(String txVariant) { this.txVariant = txVariant; } - /** Return true if this PaymentInstrumentGroup object is equal to o. */ + /** + * Return true if this PaymentInstrumentGroup object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -277,12 +272,12 @@ public boolean equals(Object o) { return false; } PaymentInstrumentGroup paymentInstrumentGroup = (PaymentInstrumentGroup) o; - return Objects.equals(this.balancePlatform, paymentInstrumentGroup.balancePlatform) - && Objects.equals(this.description, paymentInstrumentGroup.description) - && Objects.equals(this.id, paymentInstrumentGroup.id) - && Objects.equals(this.properties, paymentInstrumentGroup.properties) - && Objects.equals(this.reference, paymentInstrumentGroup.reference) - && Objects.equals(this.txVariant, paymentInstrumentGroup.txVariant); + return Objects.equals(this.balancePlatform, paymentInstrumentGroup.balancePlatform) && + Objects.equals(this.description, paymentInstrumentGroup.description) && + Objects.equals(this.id, paymentInstrumentGroup.id) && + Objects.equals(this.properties, paymentInstrumentGroup.properties) && + Objects.equals(this.reference, paymentInstrumentGroup.reference) && + Objects.equals(this.txVariant, paymentInstrumentGroup.txVariant); } @Override @@ -305,7 +300,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -314,23 +310,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentInstrumentGroup given an JSON string * * @param jsonString JSON string * @return An instance of PaymentInstrumentGroup - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentInstrumentGroup + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentInstrumentGroup */ public static PaymentInstrumentGroup fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentInstrumentGroup.class); } - - /** - * Convert an instance of PaymentInstrumentGroup to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentInstrumentGroup to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentGroupInfo.java b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentGroupInfo.java index fdbe8a44f..6e8dbe1e4 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentGroupInfo.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentGroupInfo.java @@ -2,24 +2,33 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PaymentInstrumentGroupInfo */ +/** + * PaymentInstrumentGroupInfo + */ @JsonPropertyOrder({ PaymentInstrumentGroupInfo.JSON_PROPERTY_BALANCE_PLATFORM, PaymentInstrumentGroupInfo.JSON_PROPERTY_DESCRIPTION, @@ -27,6 +36,7 @@ PaymentInstrumentGroupInfo.JSON_PROPERTY_REFERENCE, PaymentInstrumentGroupInfo.JSON_PROPERTY_TX_VARIANT }) + public class PaymentInstrumentGroupInfo { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; @@ -43,16 +53,13 @@ public class PaymentInstrumentGroupInfo { public static final String JSON_PROPERTY_TX_VARIANT = "txVariant"; private String txVariant; - public PaymentInstrumentGroupInfo() {} + public PaymentInstrumentGroupInfo() { + } /** - * The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the payment instrument group belongs. + * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs. * - * @param balancePlatform The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the payment instrument group belongs. + * @param balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs. * @return the current {@code PaymentInstrumentGroupInfo} instance, allowing for method chaining */ public PaymentInstrumentGroupInfo balancePlatform(String balancePlatform) { @@ -61,13 +68,8 @@ public PaymentInstrumentGroupInfo balancePlatform(String balancePlatform) { } /** - * The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the payment instrument group belongs. - * - * @return balancePlatform The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the payment instrument group belongs. + * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs. + * @return balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -76,13 +78,9 @@ public String getBalancePlatform() { } /** - * The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the payment instrument group belongs. + * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs. * - * @param balancePlatform The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the payment instrument group belongs. + * @param balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -103,7 +101,6 @@ public PaymentInstrumentGroupInfo description(String description) { /** * Your description for the payment instrument group. - * * @return description Your description for the payment instrument group. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -144,7 +141,6 @@ public PaymentInstrumentGroupInfo putPropertiesItem(String key, String propertie /** * Properties of the payment instrument group. - * * @return properties Properties of the payment instrument group. */ @JsonProperty(JSON_PROPERTY_PROPERTIES) @@ -177,7 +173,6 @@ public PaymentInstrumentGroupInfo reference(String reference) { /** * Your reference for the payment instrument group. - * * @return reference Your reference for the payment instrument group. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -210,7 +205,6 @@ public PaymentInstrumentGroupInfo txVariant(String txVariant) { /** * The tx variant of the payment instrument group. - * * @return txVariant The tx variant of the payment instrument group. */ @JsonProperty(JSON_PROPERTY_TX_VARIANT) @@ -230,7 +224,9 @@ public void setTxVariant(String txVariant) { this.txVariant = txVariant; } - /** Return true if this PaymentInstrumentGroupInfo object is equal to o. */ + /** + * Return true if this PaymentInstrumentGroupInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -240,11 +236,11 @@ public boolean equals(Object o) { return false; } PaymentInstrumentGroupInfo paymentInstrumentGroupInfo = (PaymentInstrumentGroupInfo) o; - return Objects.equals(this.balancePlatform, paymentInstrumentGroupInfo.balancePlatform) - && Objects.equals(this.description, paymentInstrumentGroupInfo.description) - && Objects.equals(this.properties, paymentInstrumentGroupInfo.properties) - && Objects.equals(this.reference, paymentInstrumentGroupInfo.reference) - && Objects.equals(this.txVariant, paymentInstrumentGroupInfo.txVariant); + return Objects.equals(this.balancePlatform, paymentInstrumentGroupInfo.balancePlatform) && + Objects.equals(this.description, paymentInstrumentGroupInfo.description) && + Objects.equals(this.properties, paymentInstrumentGroupInfo.properties) && + Objects.equals(this.reference, paymentInstrumentGroupInfo.reference) && + Objects.equals(this.txVariant, paymentInstrumentGroupInfo.txVariant); } @Override @@ -266,7 +262,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -275,24 +272,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentInstrumentGroupInfo given an JSON string * * @param jsonString JSON string * @return An instance of PaymentInstrumentGroupInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentInstrumentGroupInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentInstrumentGroupInfo */ - public static PaymentInstrumentGroupInfo fromJson(String jsonString) - throws JsonProcessingException { + public static PaymentInstrumentGroupInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentInstrumentGroupInfo.class); } - - /** - * Convert an instance of PaymentInstrumentGroupInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentInstrumentGroupInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentInfo.java b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentInfo.java index 8b24392cf..e80814dec 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentInfo.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentInfo.java @@ -2,26 +2,33 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.BankAccountModel; +import com.adyen.model.balanceplatform.CardInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PaymentInstrumentInfo */ +/** + * PaymentInstrumentInfo + */ @JsonPropertyOrder({ PaymentInstrumentInfo.JSON_PROPERTY_BALANCE_ACCOUNT_ID, PaymentInstrumentInfo.JSON_PROPERTY_BANK_ACCOUNT, @@ -35,6 +42,7 @@ PaymentInstrumentInfo.JSON_PROPERTY_STATUS_REASON, PaymentInstrumentInfo.JSON_PROPERTY_TYPE }) + public class PaymentInstrumentInfo { public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; @@ -58,16 +66,10 @@ public class PaymentInstrumentInfo { private String reference; /** - * The status of the payment instrument. If a status is not specified when creating a payment - * instrument, it is set to **active** by default. However, there can be exceptions for cards - * based on the `card.formFactor` and the `issuingCountryCode`. For example, - * when issuing physical cards in the US, the default status is **inactive**. Possible values: * - * **active**: The payment instrument is active and can be used to make payments. * **inactive**: - * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The - * payment instrument is suspended, either because it was stolen or lost. * **closed**: The - * payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. */ public enum StatusEnum { + ACTIVE(String.valueOf("active")), CLOSED(String.valueOf("closed")), @@ -81,7 +83,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -102,11 +104,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -118,12 +116,10 @@ public static StatusEnum fromValue(String value) { private String statusComment; /** - * The reason for the status of the payment instrument. Possible values: **accountClosure**, - * **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, - * **transactionRule**, **other**. If the reason is **other**, you must also send the - * `statusComment` parameter describing the status change. + * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. */ public enum StatusReasonEnum { + ACCOUNTCLOSURE(String.valueOf("accountClosure")), DAMAGED(String.valueOf("damaged")), @@ -147,7 +143,7 @@ public enum StatusReasonEnum { private String value; StatusReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -168,11 +164,7 @@ public static StatusReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusReasonEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusReasonEnum.values())); + LOG.warning("StatusReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusReasonEnum.values())); return null; } } @@ -180,8 +172,11 @@ public static StatusReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS_REASON = "statusReason"; private StatusReasonEnum statusReason; - /** The type of payment instrument. Possible values: **card**, **bankAccount**. */ + /** + * The type of payment instrument. Possible values: **card**, **bankAccount**. + */ public enum TypeEnum { + BANKACCOUNT(String.valueOf("bankAccount")), CARD(String.valueOf("card")); @@ -191,7 +186,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -212,11 +207,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -224,16 +215,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PaymentInstrumentInfo() {} + public PaymentInstrumentInfo() { + } /** - * The unique identifier of the [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) - * associated with the payment instrument. + * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. * - * @param balanceAccountId The unique identifier of the [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) - * associated with the payment instrument. + * @param balanceAccountId The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. * @return the current {@code PaymentInstrumentInfo} instance, allowing for method chaining */ public PaymentInstrumentInfo balanceAccountId(String balanceAccountId) { @@ -242,13 +230,8 @@ public PaymentInstrumentInfo balanceAccountId(String balanceAccountId) { } /** - * The unique identifier of the [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) - * associated with the payment instrument. - * - * @return balanceAccountId The unique identifier of the [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) - * associated with the payment instrument. + * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. + * @return balanceAccountId The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -257,13 +240,9 @@ public String getBalanceAccountId() { } /** - * The unique identifier of the [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) - * associated with the payment instrument. + * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. * - * @param balanceAccountId The unique identifier of the [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) - * associated with the payment instrument. + * @param balanceAccountId The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -274,7 +253,7 @@ public void setBalanceAccountId(String balanceAccountId) { /** * bankAccount * - * @param bankAccount + * @param bankAccount * @return the current {@code PaymentInstrumentInfo} instance, allowing for method chaining */ public PaymentInstrumentInfo bankAccount(BankAccountModel bankAccount) { @@ -284,8 +263,7 @@ public PaymentInstrumentInfo bankAccount(BankAccountModel bankAccount) { /** * Get bankAccount - * - * @return bankAccount + * @return bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -296,7 +274,7 @@ public BankAccountModel getBankAccount() { /** * bankAccount * - * @param bankAccount + * @param bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -307,7 +285,7 @@ public void setBankAccount(BankAccountModel bankAccount) { /** * card * - * @param card + * @param card * @return the current {@code PaymentInstrumentInfo} instance, allowing for method chaining */ public PaymentInstrumentInfo card(CardInfo card) { @@ -317,8 +295,7 @@ public PaymentInstrumentInfo card(CardInfo card) { /** * Get card - * - * @return card + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -329,7 +306,7 @@ public CardInfo getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -350,7 +327,6 @@ public PaymentInstrumentInfo description(String description) { /** * Your description for the payment instrument, maximum 300 characters. - * * @return description Your description for the payment instrument, maximum 300 characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -371,12 +347,9 @@ public void setDescription(String description) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code where the payment instrument is issued. For example, **NL** or **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. * - * @param issuingCountryCode The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment - * instrument is issued. For example, **NL** or **US**. + * @param issuingCountryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. * @return the current {@code PaymentInstrumentInfo} instance, allowing for method chaining */ public PaymentInstrumentInfo issuingCountryCode(String issuingCountryCode) { @@ -385,12 +358,8 @@ public PaymentInstrumentInfo issuingCountryCode(String issuingCountryCode) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code where the payment instrument is issued. For example, **NL** or **US**. - * - * @return issuingCountryCode The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment - * instrument is issued. For example, **NL** or **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. + * @return issuingCountryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. */ @JsonProperty(JSON_PROPERTY_ISSUING_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -399,12 +368,9 @@ public String getIssuingCountryCode() { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code where the payment instrument is issued. For example, **NL** or **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. * - * @param issuingCountryCode The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment - * instrument is issued. For example, **NL** or **US**. + * @param issuingCountryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. */ @JsonProperty(JSON_PROPERTY_ISSUING_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -413,13 +379,9 @@ public void setIssuingCountryCode(String issuingCountryCode) { } /** - * The unique identifier of the [payment instrument - * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) - * to which the payment instrument belongs. + * The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. * - * @param paymentInstrumentGroupId The unique identifier of the [payment instrument - * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) - * to which the payment instrument belongs. + * @param paymentInstrumentGroupId The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. * @return the current {@code PaymentInstrumentInfo} instance, allowing for method chaining */ public PaymentInstrumentInfo paymentInstrumentGroupId(String paymentInstrumentGroupId) { @@ -428,13 +390,8 @@ public PaymentInstrumentInfo paymentInstrumentGroupId(String paymentInstrumentGr } /** - * The unique identifier of the [payment instrument - * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) - * to which the payment instrument belongs. - * - * @return paymentInstrumentGroupId The unique identifier of the [payment instrument - * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) - * to which the payment instrument belongs. + * The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. + * @return paymentInstrumentGroupId The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_GROUP_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -443,13 +400,9 @@ public String getPaymentInstrumentGroupId() { } /** - * The unique identifier of the [payment instrument - * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) - * to which the payment instrument belongs. + * The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. * - * @param paymentInstrumentGroupId The unique identifier of the [payment instrument - * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) - * to which the payment instrument belongs. + * @param paymentInstrumentGroupId The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_GROUP_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -470,7 +423,6 @@ public PaymentInstrumentInfo reference(String reference) { /** * Your reference for the payment instrument, maximum 150 characters. - * * @return reference Your reference for the payment instrument, maximum 150 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -491,24 +443,9 @@ public void setReference(String reference) { } /** - * The status of the payment instrument. If a status is not specified when creating a payment - * instrument, it is set to **active** by default. However, there can be exceptions for cards - * based on the `card.formFactor` and the `issuingCountryCode`. For example, - * when issuing physical cards in the US, the default status is **inactive**. Possible values: * - * **active**: The payment instrument is active and can be used to make payments. * **inactive**: - * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The - * payment instrument is suspended, either because it was stolen or lost. * **closed**: The - * payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. * - * @param status The status of the payment instrument. If a status is not specified when creating - * a payment instrument, it is set to **active** by default. However, there can be exceptions - * for cards based on the `card.formFactor` and the `issuingCountryCode`. - * For example, when issuing physical cards in the US, the default status is **inactive**. - * Possible values: * **active**: The payment instrument is active and can be used to make - * payments. * **inactive**: The payment instrument is inactive and cannot be used to make - * payments. * **suspended**: The payment instrument is suspended, either because it was - * stolen or lost. * **closed**: The payment instrument is permanently closed. This action - * cannot be undone. + * @param status The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. * @return the current {@code PaymentInstrumentInfo} instance, allowing for method chaining */ public PaymentInstrumentInfo status(StatusEnum status) { @@ -517,24 +454,8 @@ public PaymentInstrumentInfo status(StatusEnum status) { } /** - * The status of the payment instrument. If a status is not specified when creating a payment - * instrument, it is set to **active** by default. However, there can be exceptions for cards - * based on the `card.formFactor` and the `issuingCountryCode`. For example, - * when issuing physical cards in the US, the default status is **inactive**. Possible values: * - * **active**: The payment instrument is active and can be used to make payments. * **inactive**: - * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The - * payment instrument is suspended, either because it was stolen or lost. * **closed**: The - * payment instrument is permanently closed. This action cannot be undone. - * - * @return status The status of the payment instrument. If a status is not specified when creating - * a payment instrument, it is set to **active** by default. However, there can be exceptions - * for cards based on the `card.formFactor` and the `issuingCountryCode`. - * For example, when issuing physical cards in the US, the default status is **inactive**. - * Possible values: * **active**: The payment instrument is active and can be used to make - * payments. * **inactive**: The payment instrument is inactive and cannot be used to make - * payments. * **suspended**: The payment instrument is suspended, either because it was - * stolen or lost. * **closed**: The payment instrument is permanently closed. This action - * cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * @return status The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -543,24 +464,9 @@ public StatusEnum getStatus() { } /** - * The status of the payment instrument. If a status is not specified when creating a payment - * instrument, it is set to **active** by default. However, there can be exceptions for cards - * based on the `card.formFactor` and the `issuingCountryCode`. For example, - * when issuing physical cards in the US, the default status is **inactive**. Possible values: * - * **active**: The payment instrument is active and can be used to make payments. * **inactive**: - * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The - * payment instrument is suspended, either because it was stolen or lost. * **closed**: The - * payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. * - * @param status The status of the payment instrument. If a status is not specified when creating - * a payment instrument, it is set to **active** by default. However, there can be exceptions - * for cards based on the `card.formFactor` and the `issuingCountryCode`. - * For example, when issuing physical cards in the US, the default status is **inactive**. - * Possible values: * **active**: The payment instrument is active and can be used to make - * payments. * **inactive**: The payment instrument is inactive and cannot be used to make - * payments. * **suspended**: The payment instrument is suspended, either because it was - * stolen or lost. * **closed**: The payment instrument is permanently closed. This action - * cannot be undone. + * @param status The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -569,11 +475,9 @@ public void setStatus(StatusEnum status) { } /** - * The status comment provides additional information for the statusReason of the payment - * instrument. + * The status comment provides additional information for the statusReason of the payment instrument. * - * @param statusComment The status comment provides additional information for the statusReason of - * the payment instrument. + * @param statusComment The status comment provides additional information for the statusReason of the payment instrument. * @return the current {@code PaymentInstrumentInfo} instance, allowing for method chaining */ public PaymentInstrumentInfo statusComment(String statusComment) { @@ -582,11 +486,8 @@ public PaymentInstrumentInfo statusComment(String statusComment) { } /** - * The status comment provides additional information for the statusReason of the payment - * instrument. - * - * @return statusComment The status comment provides additional information for the statusReason - * of the payment instrument. + * The status comment provides additional information for the statusReason of the payment instrument. + * @return statusComment The status comment provides additional information for the statusReason of the payment instrument. */ @JsonProperty(JSON_PROPERTY_STATUS_COMMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -595,11 +496,9 @@ public String getStatusComment() { } /** - * The status comment provides additional information for the statusReason of the payment - * instrument. + * The status comment provides additional information for the statusReason of the payment instrument. * - * @param statusComment The status comment provides additional information for the statusReason of - * the payment instrument. + * @param statusComment The status comment provides additional information for the statusReason of the payment instrument. */ @JsonProperty(JSON_PROPERTY_STATUS_COMMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -608,15 +507,9 @@ public void setStatusComment(String statusComment) { } /** - * The reason for the status of the payment instrument. Possible values: **accountClosure**, - * **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, - * **transactionRule**, **other**. If the reason is **other**, you must also send the - * `statusComment` parameter describing the status change. + * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. * - * @param statusReason The reason for the status of the payment instrument. Possible values: - * **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, - * **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must - * also send the `statusComment` parameter describing the status change. + * @param statusReason The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. * @return the current {@code PaymentInstrumentInfo} instance, allowing for method chaining */ public PaymentInstrumentInfo statusReason(StatusReasonEnum statusReason) { @@ -625,15 +518,8 @@ public PaymentInstrumentInfo statusReason(StatusReasonEnum statusReason) { } /** - * The reason for the status of the payment instrument. Possible values: **accountClosure**, - * **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, - * **transactionRule**, **other**. If the reason is **other**, you must also send the - * `statusComment` parameter describing the status change. - * - * @return statusReason The reason for the status of the payment instrument. Possible values: - * **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, - * **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must - * also send the `statusComment` parameter describing the status change. + * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * @return statusReason The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. */ @JsonProperty(JSON_PROPERTY_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -642,15 +528,9 @@ public StatusReasonEnum getStatusReason() { } /** - * The reason for the status of the payment instrument. Possible values: **accountClosure**, - * **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, - * **transactionRule**, **other**. If the reason is **other**, you must also send the - * `statusComment` parameter describing the status change. + * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. * - * @param statusReason The reason for the status of the payment instrument. Possible values: - * **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, - * **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must - * also send the `statusComment` parameter describing the status change. + * @param statusReason The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. */ @JsonProperty(JSON_PROPERTY_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -659,9 +539,9 @@ public void setStatusReason(StatusReasonEnum statusReason) { } /** - * The type of payment instrument. Possible values: **card**, **bankAccount**. + * The type of payment instrument. Possible values: **card**, **bankAccount**. * - * @param type The type of payment instrument. Possible values: **card**, **bankAccount**. + * @param type The type of payment instrument. Possible values: **card**, **bankAccount**. * @return the current {@code PaymentInstrumentInfo} instance, allowing for method chaining */ public PaymentInstrumentInfo type(TypeEnum type) { @@ -670,9 +550,8 @@ public PaymentInstrumentInfo type(TypeEnum type) { } /** - * The type of payment instrument. Possible values: **card**, **bankAccount**. - * - * @return type The type of payment instrument. Possible values: **card**, **bankAccount**. + * The type of payment instrument. Possible values: **card**, **bankAccount**. + * @return type The type of payment instrument. Possible values: **card**, **bankAccount**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -681,9 +560,9 @@ public TypeEnum getType() { } /** - * The type of payment instrument. Possible values: **card**, **bankAccount**. + * The type of payment instrument. Possible values: **card**, **bankAccount**. * - * @param type The type of payment instrument. Possible values: **card**, **bankAccount**. + * @param type The type of payment instrument. Possible values: **card**, **bankAccount**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -691,7 +570,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this PaymentInstrumentInfo object is equal to o. */ + /** + * Return true if this PaymentInstrumentInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -701,34 +582,22 @@ public boolean equals(Object o) { return false; } PaymentInstrumentInfo paymentInstrumentInfo = (PaymentInstrumentInfo) o; - return Objects.equals(this.balanceAccountId, paymentInstrumentInfo.balanceAccountId) - && Objects.equals(this.bankAccount, paymentInstrumentInfo.bankAccount) - && Objects.equals(this.card, paymentInstrumentInfo.card) - && Objects.equals(this.description, paymentInstrumentInfo.description) - && Objects.equals(this.issuingCountryCode, paymentInstrumentInfo.issuingCountryCode) - && Objects.equals( - this.paymentInstrumentGroupId, paymentInstrumentInfo.paymentInstrumentGroupId) - && Objects.equals(this.reference, paymentInstrumentInfo.reference) - && Objects.equals(this.status, paymentInstrumentInfo.status) - && Objects.equals(this.statusComment, paymentInstrumentInfo.statusComment) - && Objects.equals(this.statusReason, paymentInstrumentInfo.statusReason) - && Objects.equals(this.type, paymentInstrumentInfo.type); + return Objects.equals(this.balanceAccountId, paymentInstrumentInfo.balanceAccountId) && + Objects.equals(this.bankAccount, paymentInstrumentInfo.bankAccount) && + Objects.equals(this.card, paymentInstrumentInfo.card) && + Objects.equals(this.description, paymentInstrumentInfo.description) && + Objects.equals(this.issuingCountryCode, paymentInstrumentInfo.issuingCountryCode) && + Objects.equals(this.paymentInstrumentGroupId, paymentInstrumentInfo.paymentInstrumentGroupId) && + Objects.equals(this.reference, paymentInstrumentInfo.reference) && + Objects.equals(this.status, paymentInstrumentInfo.status) && + Objects.equals(this.statusComment, paymentInstrumentInfo.statusComment) && + Objects.equals(this.statusReason, paymentInstrumentInfo.statusReason) && + Objects.equals(this.type, paymentInstrumentInfo.type); } @Override public int hashCode() { - return Objects.hash( - balanceAccountId, - bankAccount, - card, - description, - issuingCountryCode, - paymentInstrumentGroupId, - reference, - status, - statusComment, - statusReason, - type); + return Objects.hash(balanceAccountId, bankAccount, card, description, issuingCountryCode, paymentInstrumentGroupId, reference, status, statusComment, statusReason, type); } @Override @@ -740,9 +609,7 @@ public String toString() { sb.append(" card: ").append(toIndentedString(card)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" issuingCountryCode: ").append(toIndentedString(issuingCountryCode)).append("\n"); - sb.append(" paymentInstrumentGroupId: ") - .append(toIndentedString(paymentInstrumentGroupId)) - .append("\n"); + sb.append(" paymentInstrumentGroupId: ").append(toIndentedString(paymentInstrumentGroupId)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" statusComment: ").append(toIndentedString(statusComment)).append("\n"); @@ -753,7 +620,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -762,23 +630,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentInstrumentInfo given an JSON string * * @param jsonString JSON string * @return An instance of PaymentInstrumentInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentInstrumentInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentInstrumentInfo */ public static PaymentInstrumentInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentInstrumentInfo.class); } - - /** - * Convert an instance of PaymentInstrumentInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentInstrumentInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRequirement.java b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRequirement.java index 60fb0e6b3..91033c7a9 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRequirement.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRequirement.java @@ -2,28 +2,33 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PaymentInstrumentRequirement */ +/** + * PaymentInstrumentRequirement + */ @JsonPropertyOrder({ PaymentInstrumentRequirement.JSON_PROPERTY_DESCRIPTION, PaymentInstrumentRequirement.JSON_PROPERTY_ISSUING_COUNTRY_CODE, @@ -32,6 +37,7 @@ PaymentInstrumentRequirement.JSON_PROPERTY_PAYMENT_INSTRUMENT_TYPE, PaymentInstrumentRequirement.JSON_PROPERTY_TYPE }) + public class PaymentInstrumentRequirement { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -42,15 +48,14 @@ public class PaymentInstrumentRequirement { public static final String JSON_PROPERTY_ISSUING_COUNTRY_CODES = "issuingCountryCodes"; private List issuingCountryCodes; - public static final String JSON_PROPERTY_ONLY_FOR_CROSS_BALANCE_PLATFORM = - "onlyForCrossBalancePlatform"; + public static final String JSON_PROPERTY_ONLY_FOR_CROSS_BALANCE_PLATFORM = "onlyForCrossBalancePlatform"; private Boolean onlyForCrossBalancePlatform; /** - * The type of the payment instrument. For example, \"BankAccount\" or - * \"Card\". + * The type of the payment instrument. For example, \"BankAccount\" or \"Card\". */ public enum PaymentInstrumentTypeEnum { + BANKACCOUNT(String.valueOf("BankAccount")), CARD(String.valueOf("Card")); @@ -60,7 +65,7 @@ public enum PaymentInstrumentTypeEnum { private String value; PaymentInstrumentTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -81,11 +86,7 @@ public static PaymentInstrumentTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PaymentInstrumentTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PaymentInstrumentTypeEnum.values())); + LOG.warning("PaymentInstrumentTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PaymentInstrumentTypeEnum.values())); return null; } } @@ -93,8 +94,11 @@ public static PaymentInstrumentTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT_TYPE = "paymentInstrumentType"; private PaymentInstrumentTypeEnum paymentInstrumentType; - /** **paymentInstrumentRequirement** */ + /** + * **paymentInstrumentRequirement** + */ public enum TypeEnum { + PAYMENTINSTRUMENTREQUIREMENT(String.valueOf("paymentInstrumentRequirement")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -102,7 +106,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -123,11 +127,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -135,14 +135,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PaymentInstrumentRequirement() {} + public PaymentInstrumentRequirement() { + } /** - * Specifies the requirements for the payment instrument that need to be included in the request - * for a particular route. + * Specifies the requirements for the payment instrument that need to be included in the request for a particular route. * - * @param description Specifies the requirements for the payment instrument that need to be - * included in the request for a particular route. + * @param description Specifies the requirements for the payment instrument that need to be included in the request for a particular route. * @return the current {@code PaymentInstrumentRequirement} instance, allowing for method chaining */ public PaymentInstrumentRequirement description(String description) { @@ -151,11 +150,8 @@ public PaymentInstrumentRequirement description(String description) { } /** - * Specifies the requirements for the payment instrument that need to be included in the request - * for a particular route. - * - * @return description Specifies the requirements for the payment instrument that need to be - * included in the request for a particular route. + * Specifies the requirements for the payment instrument that need to be included in the request for a particular route. + * @return description Specifies the requirements for the payment instrument that need to be included in the request for a particular route. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -164,11 +160,9 @@ public String getDescription() { } /** - * Specifies the requirements for the payment instrument that need to be included in the request - * for a particular route. + * Specifies the requirements for the payment instrument that need to be included in the request for a particular route. * - * @param description Specifies the requirements for the payment instrument that need to be - * included in the request for a particular route. + * @param description Specifies the requirements for the payment instrument that need to be included in the request for a particular route. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,12 +171,9 @@ public void setDescription(String description) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code where the payment instrument is issued. For example, **NL** or **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. * - * @param issuingCountryCode The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment - * instrument is issued. For example, **NL** or **US**. + * @param issuingCountryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. * @return the current {@code PaymentInstrumentRequirement} instance, allowing for method chaining */ public PaymentInstrumentRequirement issuingCountryCode(String issuingCountryCode) { @@ -191,12 +182,8 @@ public PaymentInstrumentRequirement issuingCountryCode(String issuingCountryCode } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code where the payment instrument is issued. For example, **NL** or **US**. - * - * @return issuingCountryCode The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment - * instrument is issued. For example, **NL** or **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. + * @return issuingCountryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. */ @JsonProperty(JSON_PROPERTY_ISSUING_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -205,12 +192,9 @@ public String getIssuingCountryCode() { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code where the payment instrument is issued. For example, **NL** or **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. * - * @param issuingCountryCode The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment - * instrument is issued. For example, **NL** or **US**. + * @param issuingCountryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. */ @JsonProperty(JSON_PROPERTY_ISSUING_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,8 +205,7 @@ public void setIssuingCountryCode(String issuingCountryCode) { /** * The two-character ISO-3166-1 alpha-2 country code list for payment instruments. * - * @param issuingCountryCodes The two-character ISO-3166-1 alpha-2 country code list for payment - * instruments. + * @param issuingCountryCodes The two-character ISO-3166-1 alpha-2 country code list for payment instruments. * @return the current {@code PaymentInstrumentRequirement} instance, allowing for method chaining */ public PaymentInstrumentRequirement issuingCountryCodes(List issuingCountryCodes) { @@ -240,9 +223,7 @@ public PaymentInstrumentRequirement addIssuingCountryCodesItem(String issuingCou /** * The two-character ISO-3166-1 alpha-2 country code list for payment instruments. - * - * @return issuingCountryCodes The two-character ISO-3166-1 alpha-2 country code list for payment - * instruments. + * @return issuingCountryCodes The two-character ISO-3166-1 alpha-2 country code list for payment instruments. */ @JsonProperty(JSON_PROPERTY_ISSUING_COUNTRY_CODES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -253,8 +234,7 @@ public List getIssuingCountryCodes() { /** * The two-character ISO-3166-1 alpha-2 country code list for payment instruments. * - * @param issuingCountryCodes The two-character ISO-3166-1 alpha-2 country code list for payment - * instruments. + * @param issuingCountryCodes The two-character ISO-3166-1 alpha-2 country code list for payment instruments. */ @JsonProperty(JSON_PROPERTY_ISSUING_COUNTRY_CODES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -265,21 +245,17 @@ public void setIssuingCountryCodes(List issuingCountryCodes) { /** * Specifies if the requirement only applies to transfers to another balance platform. * - * @param onlyForCrossBalancePlatform Specifies if the requirement only applies to transfers to - * another balance platform. + * @param onlyForCrossBalancePlatform Specifies if the requirement only applies to transfers to another balance platform. * @return the current {@code PaymentInstrumentRequirement} instance, allowing for method chaining */ - public PaymentInstrumentRequirement onlyForCrossBalancePlatform( - Boolean onlyForCrossBalancePlatform) { + public PaymentInstrumentRequirement onlyForCrossBalancePlatform(Boolean onlyForCrossBalancePlatform) { this.onlyForCrossBalancePlatform = onlyForCrossBalancePlatform; return this; } /** * Specifies if the requirement only applies to transfers to another balance platform. - * - * @return onlyForCrossBalancePlatform Specifies if the requirement only applies to transfers to - * another balance platform. + * @return onlyForCrossBalancePlatform Specifies if the requirement only applies to transfers to another balance platform. */ @JsonProperty(JSON_PROPERTY_ONLY_FOR_CROSS_BALANCE_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -290,8 +266,7 @@ public Boolean getOnlyForCrossBalancePlatform() { /** * Specifies if the requirement only applies to transfers to another balance platform. * - * @param onlyForCrossBalancePlatform Specifies if the requirement only applies to transfers to - * another balance platform. + * @param onlyForCrossBalancePlatform Specifies if the requirement only applies to transfers to another balance platform. */ @JsonProperty(JSON_PROPERTY_ONLY_FOR_CROSS_BALANCE_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -300,25 +275,19 @@ public void setOnlyForCrossBalancePlatform(Boolean onlyForCrossBalancePlatform) } /** - * The type of the payment instrument. For example, \"BankAccount\" or - * \"Card\". + * The type of the payment instrument. For example, \"BankAccount\" or \"Card\". * - * @param paymentInstrumentType The type of the payment instrument. For example, - * \"BankAccount\" or \"Card\". + * @param paymentInstrumentType The type of the payment instrument. For example, \"BankAccount\" or \"Card\". * @return the current {@code PaymentInstrumentRequirement} instance, allowing for method chaining */ - public PaymentInstrumentRequirement paymentInstrumentType( - PaymentInstrumentTypeEnum paymentInstrumentType) { + public PaymentInstrumentRequirement paymentInstrumentType(PaymentInstrumentTypeEnum paymentInstrumentType) { this.paymentInstrumentType = paymentInstrumentType; return this; } /** - * The type of the payment instrument. For example, \"BankAccount\" or - * \"Card\". - * - * @return paymentInstrumentType The type of the payment instrument. For example, - * \"BankAccount\" or \"Card\". + * The type of the payment instrument. For example, \"BankAccount\" or \"Card\". + * @return paymentInstrumentType The type of the payment instrument. For example, \"BankAccount\" or \"Card\". */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -327,11 +296,9 @@ public PaymentInstrumentTypeEnum getPaymentInstrumentType() { } /** - * The type of the payment instrument. For example, \"BankAccount\" or - * \"Card\". + * The type of the payment instrument. For example, \"BankAccount\" or \"Card\". * - * @param paymentInstrumentType The type of the payment instrument. For example, - * \"BankAccount\" or \"Card\". + * @param paymentInstrumentType The type of the payment instrument. For example, \"BankAccount\" or \"Card\". */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -352,7 +319,6 @@ public PaymentInstrumentRequirement type(TypeEnum type) { /** * **paymentInstrumentRequirement** - * * @return type **paymentInstrumentRequirement** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -372,7 +338,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this PaymentInstrumentRequirement object is equal to o. */ + /** + * Return true if this PaymentInstrumentRequirement object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -382,27 +350,17 @@ public boolean equals(Object o) { return false; } PaymentInstrumentRequirement paymentInstrumentRequirement = (PaymentInstrumentRequirement) o; - return Objects.equals(this.description, paymentInstrumentRequirement.description) - && Objects.equals(this.issuingCountryCode, paymentInstrumentRequirement.issuingCountryCode) - && Objects.equals( - this.issuingCountryCodes, paymentInstrumentRequirement.issuingCountryCodes) - && Objects.equals( - this.onlyForCrossBalancePlatform, - paymentInstrumentRequirement.onlyForCrossBalancePlatform) - && Objects.equals( - this.paymentInstrumentType, paymentInstrumentRequirement.paymentInstrumentType) - && Objects.equals(this.type, paymentInstrumentRequirement.type); + return Objects.equals(this.description, paymentInstrumentRequirement.description) && + Objects.equals(this.issuingCountryCode, paymentInstrumentRequirement.issuingCountryCode) && + Objects.equals(this.issuingCountryCodes, paymentInstrumentRequirement.issuingCountryCodes) && + Objects.equals(this.onlyForCrossBalancePlatform, paymentInstrumentRequirement.onlyForCrossBalancePlatform) && + Objects.equals(this.paymentInstrumentType, paymentInstrumentRequirement.paymentInstrumentType) && + Objects.equals(this.type, paymentInstrumentRequirement.type); } @Override public int hashCode() { - return Objects.hash( - description, - issuingCountryCode, - issuingCountryCodes, - onlyForCrossBalancePlatform, - paymentInstrumentType, - type); + return Objects.hash(description, issuingCountryCode, issuingCountryCodes, onlyForCrossBalancePlatform, paymentInstrumentType, type); } @Override @@ -411,22 +369,17 @@ public String toString() { sb.append("class PaymentInstrumentRequirement {\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" issuingCountryCode: ").append(toIndentedString(issuingCountryCode)).append("\n"); - sb.append(" issuingCountryCodes: ") - .append(toIndentedString(issuingCountryCodes)) - .append("\n"); - sb.append(" onlyForCrossBalancePlatform: ") - .append(toIndentedString(onlyForCrossBalancePlatform)) - .append("\n"); - sb.append(" paymentInstrumentType: ") - .append(toIndentedString(paymentInstrumentType)) - .append("\n"); + sb.append(" issuingCountryCodes: ").append(toIndentedString(issuingCountryCodes)).append("\n"); + sb.append(" onlyForCrossBalancePlatform: ").append(toIndentedString(onlyForCrossBalancePlatform)).append("\n"); + sb.append(" paymentInstrumentType: ").append(toIndentedString(paymentInstrumentType)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -435,24 +388,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentInstrumentRequirement given an JSON string * * @param jsonString JSON string * @return An instance of PaymentInstrumentRequirement - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentInstrumentRequirement + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentInstrumentRequirement */ - public static PaymentInstrumentRequirement fromJson(String jsonString) - throws JsonProcessingException { + public static PaymentInstrumentRequirement fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentInstrumentRequirement.class); } - - /** - * Convert an instance of PaymentInstrumentRequirement to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentInstrumentRequirement to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealInfo.java b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealInfo.java index 3772295b1..a527c6132 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealInfo.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealInfo.java @@ -2,27 +2,38 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.Expiry; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** PaymentInstrumentRevealInfo */ + +/** + * PaymentInstrumentRevealInfo + */ @JsonPropertyOrder({ PaymentInstrumentRevealInfo.JSON_PROPERTY_CVC, PaymentInstrumentRevealInfo.JSON_PROPERTY_EXPIRATION, PaymentInstrumentRevealInfo.JSON_PROPERTY_PAN }) + public class PaymentInstrumentRevealInfo { public static final String JSON_PROPERTY_CVC = "cvc"; private String cvc; @@ -33,7 +44,8 @@ public class PaymentInstrumentRevealInfo { public static final String JSON_PROPERTY_PAN = "pan"; private String pan; - public PaymentInstrumentRevealInfo() {} + public PaymentInstrumentRevealInfo() { + } /** * The CVC2 value of the card. @@ -48,7 +60,6 @@ public PaymentInstrumentRevealInfo cvc(String cvc) { /** * The CVC2 value of the card. - * * @return cvc The CVC2 value of the card. */ @JsonProperty(JSON_PROPERTY_CVC) @@ -71,7 +82,7 @@ public void setCvc(String cvc) { /** * expiration * - * @param expiration + * @param expiration * @return the current {@code PaymentInstrumentRevealInfo} instance, allowing for method chaining */ public PaymentInstrumentRevealInfo expiration(Expiry expiration) { @@ -81,8 +92,7 @@ public PaymentInstrumentRevealInfo expiration(Expiry expiration) { /** * Get expiration - * - * @return expiration + * @return expiration */ @JsonProperty(JSON_PROPERTY_EXPIRATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -93,7 +103,7 @@ public Expiry getExpiration() { /** * expiration * - * @param expiration + * @param expiration */ @JsonProperty(JSON_PROPERTY_EXPIRATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,7 +124,6 @@ public PaymentInstrumentRevealInfo pan(String pan) { /** * The primary account number (PAN) of the card. - * * @return pan The primary account number (PAN) of the card. */ @JsonProperty(JSON_PROPERTY_PAN) @@ -134,7 +143,9 @@ public void setPan(String pan) { this.pan = pan; } - /** Return true if this PaymentInstrumentRevealInfo object is equal to o. */ + /** + * Return true if this PaymentInstrumentRevealInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,9 +155,9 @@ public boolean equals(Object o) { return false; } PaymentInstrumentRevealInfo paymentInstrumentRevealInfo = (PaymentInstrumentRevealInfo) o; - return Objects.equals(this.cvc, paymentInstrumentRevealInfo.cvc) - && Objects.equals(this.expiration, paymentInstrumentRevealInfo.expiration) - && Objects.equals(this.pan, paymentInstrumentRevealInfo.pan); + return Objects.equals(this.cvc, paymentInstrumentRevealInfo.cvc) && + Objects.equals(this.expiration, paymentInstrumentRevealInfo.expiration) && + Objects.equals(this.pan, paymentInstrumentRevealInfo.pan); } @Override @@ -166,7 +177,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,24 +187,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentInstrumentRevealInfo given an JSON string * * @param jsonString JSON string * @return An instance of PaymentInstrumentRevealInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentInstrumentRevealInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentInstrumentRevealInfo */ - public static PaymentInstrumentRevealInfo fromJson(String jsonString) - throws JsonProcessingException { + public static PaymentInstrumentRevealInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentInstrumentRevealInfo.class); } - - /** - * Convert an instance of PaymentInstrumentRevealInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentInstrumentRevealInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealRequest.java b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealRequest.java index 600da23f1..3ddf1c350 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealRequest.java @@ -2,26 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** PaymentInstrumentRevealRequest */ + +/** + * PaymentInstrumentRevealRequest + */ @JsonPropertyOrder({ PaymentInstrumentRevealRequest.JSON_PROPERTY_ENCRYPTED_KEY, PaymentInstrumentRevealRequest.JSON_PROPERTY_PAYMENT_INSTRUMENT_ID }) + public class PaymentInstrumentRevealRequest { public static final String JSON_PROPERTY_ENCRYPTED_KEY = "encryptedKey"; private String encryptedKey; @@ -29,18 +39,14 @@ public class PaymentInstrumentRevealRequest { public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT_ID = "paymentInstrumentId"; private String paymentInstrumentId; - public PaymentInstrumentRevealRequest() {} + public PaymentInstrumentRevealRequest() { + } /** - * The symmetric session key that you encrypted with the [public - * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received - * from Adyen. + * The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. * - * @param encryptedKey The symmetric session key that you encrypted with the [public - * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received - * from Adyen. - * @return the current {@code PaymentInstrumentRevealRequest} instance, allowing for method - * chaining + * @param encryptedKey The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. + * @return the current {@code PaymentInstrumentRevealRequest} instance, allowing for method chaining */ public PaymentInstrumentRevealRequest encryptedKey(String encryptedKey) { this.encryptedKey = encryptedKey; @@ -48,13 +54,8 @@ public PaymentInstrumentRevealRequest encryptedKey(String encryptedKey) { } /** - * The symmetric session key that you encrypted with the [public - * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received - * from Adyen. - * - * @return encryptedKey The symmetric session key that you encrypted with the [public - * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received - * from Adyen. + * The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. + * @return encryptedKey The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,13 +64,9 @@ public String getEncryptedKey() { } /** - * The symmetric session key that you encrypted with the [public - * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received - * from Adyen. + * The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. * - * @param encryptedKey The symmetric session key that you encrypted with the [public - * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received - * from Adyen. + * @param encryptedKey The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -78,13 +75,10 @@ public void setEncryptedKey(String encryptedKey) { } /** - * The unique identifier of the payment instrument, which is the card for which you are managing - * the PIN. + * The unique identifier of the payment instrument, which is the card for which you are managing the PIN. * - * @param paymentInstrumentId The unique identifier of the payment instrument, which is the card - * for which you are managing the PIN. - * @return the current {@code PaymentInstrumentRevealRequest} instance, allowing for method - * chaining + * @param paymentInstrumentId The unique identifier of the payment instrument, which is the card for which you are managing the PIN. + * @return the current {@code PaymentInstrumentRevealRequest} instance, allowing for method chaining */ public PaymentInstrumentRevealRequest paymentInstrumentId(String paymentInstrumentId) { this.paymentInstrumentId = paymentInstrumentId; @@ -92,11 +86,8 @@ public PaymentInstrumentRevealRequest paymentInstrumentId(String paymentInstrume } /** - * The unique identifier of the payment instrument, which is the card for which you are managing - * the PIN. - * - * @return paymentInstrumentId The unique identifier of the payment instrument, which is the card - * for which you are managing the PIN. + * The unique identifier of the payment instrument, which is the card for which you are managing the PIN. + * @return paymentInstrumentId The unique identifier of the payment instrument, which is the card for which you are managing the PIN. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,11 +96,9 @@ public String getPaymentInstrumentId() { } /** - * The unique identifier of the payment instrument, which is the card for which you are managing - * the PIN. + * The unique identifier of the payment instrument, which is the card for which you are managing the PIN. * - * @param paymentInstrumentId The unique identifier of the payment instrument, which is the card - * for which you are managing the PIN. + * @param paymentInstrumentId The unique identifier of the payment instrument, which is the card for which you are managing the PIN. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,7 +106,9 @@ public void setPaymentInstrumentId(String paymentInstrumentId) { this.paymentInstrumentId = paymentInstrumentId; } - /** Return true if this PaymentInstrumentRevealRequest object is equal to o. */ + /** + * Return true if this PaymentInstrumentRevealRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -126,11 +117,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaymentInstrumentRevealRequest paymentInstrumentRevealRequest = - (PaymentInstrumentRevealRequest) o; - return Objects.equals(this.encryptedKey, paymentInstrumentRevealRequest.encryptedKey) - && Objects.equals( - this.paymentInstrumentId, paymentInstrumentRevealRequest.paymentInstrumentId); + PaymentInstrumentRevealRequest paymentInstrumentRevealRequest = (PaymentInstrumentRevealRequest) o; + return Objects.equals(this.encryptedKey, paymentInstrumentRevealRequest.encryptedKey) && + Objects.equals(this.paymentInstrumentId, paymentInstrumentRevealRequest.paymentInstrumentId); } @Override @@ -143,15 +132,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentInstrumentRevealRequest {\n"); sb.append(" encryptedKey: ").append(toIndentedString(encryptedKey)).append("\n"); - sb.append(" paymentInstrumentId: ") - .append(toIndentedString(paymentInstrumentId)) - .append("\n"); + sb.append(" paymentInstrumentId: ").append(toIndentedString(paymentInstrumentId)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -160,24 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentInstrumentRevealRequest given an JSON string * * @param jsonString JSON string * @return An instance of PaymentInstrumentRevealRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentInstrumentRevealRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentInstrumentRevealRequest */ - public static PaymentInstrumentRevealRequest fromJson(String jsonString) - throws JsonProcessingException { + public static PaymentInstrumentRevealRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentInstrumentRevealRequest.class); } - - /** - * Convert an instance of PaymentInstrumentRevealRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentInstrumentRevealRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealResponse.java b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealResponse.java index 960d44b62..d67be13e8 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealResponse.java @@ -2,35 +2,47 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** PaymentInstrumentRevealResponse */ -@JsonPropertyOrder({PaymentInstrumentRevealResponse.JSON_PROPERTY_ENCRYPTED_DATA}) + +/** + * PaymentInstrumentRevealResponse + */ +@JsonPropertyOrder({ + PaymentInstrumentRevealResponse.JSON_PROPERTY_ENCRYPTED_DATA +}) + public class PaymentInstrumentRevealResponse { public static final String JSON_PROPERTY_ENCRYPTED_DATA = "encryptedData"; private String encryptedData; - public PaymentInstrumentRevealResponse() {} + public PaymentInstrumentRevealResponse() { + } /** * The data encrypted using the `encryptedKey`. * * @param encryptedData The data encrypted using the `encryptedKey`. - * @return the current {@code PaymentInstrumentRevealResponse} instance, allowing for method - * chaining + * @return the current {@code PaymentInstrumentRevealResponse} instance, allowing for method chaining */ public PaymentInstrumentRevealResponse encryptedData(String encryptedData) { this.encryptedData = encryptedData; @@ -39,7 +51,6 @@ public PaymentInstrumentRevealResponse encryptedData(String encryptedData) { /** * The data encrypted using the `encryptedKey`. - * * @return encryptedData The data encrypted using the `encryptedKey`. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_DATA) @@ -59,7 +70,9 @@ public void setEncryptedData(String encryptedData) { this.encryptedData = encryptedData; } - /** Return true if this PaymentInstrumentRevealResponse object is equal to o. */ + /** + * Return true if this PaymentInstrumentRevealResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -68,8 +81,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaymentInstrumentRevealResponse paymentInstrumentRevealResponse = - (PaymentInstrumentRevealResponse) o; + PaymentInstrumentRevealResponse paymentInstrumentRevealResponse = (PaymentInstrumentRevealResponse) o; return Objects.equals(this.encryptedData, paymentInstrumentRevealResponse.encryptedData); } @@ -88,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -97,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentInstrumentRevealResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaymentInstrumentRevealResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentInstrumentRevealResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentInstrumentRevealResponse */ - public static PaymentInstrumentRevealResponse fromJson(String jsonString) - throws JsonProcessingException { + public static PaymentInstrumentRevealResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentInstrumentRevealResponse.class); } - - /** - * Convert an instance of PaymentInstrumentRevealResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentInstrumentRevealResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentUpdateRequest.java b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentUpdateRequest.java index 20cb3a261..6d6885f66 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentUpdateRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentUpdateRequest.java @@ -2,26 +2,32 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.CardInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** PaymentInstrumentUpdateRequest */ + +/** + * PaymentInstrumentUpdateRequest + */ @JsonPropertyOrder({ PaymentInstrumentUpdateRequest.JSON_PROPERTY_BALANCE_ACCOUNT_ID, PaymentInstrumentUpdateRequest.JSON_PROPERTY_CARD, @@ -29,6 +35,7 @@ PaymentInstrumentUpdateRequest.JSON_PROPERTY_STATUS_COMMENT, PaymentInstrumentUpdateRequest.JSON_PROPERTY_STATUS_REASON }) + public class PaymentInstrumentUpdateRequest { public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; @@ -37,16 +44,10 @@ public class PaymentInstrumentUpdateRequest { private CardInfo card; /** - * The status of the payment instrument. If a status is not specified when creating a payment - * instrument, it is set to **active** by default. However, there can be exceptions for cards - * based on the `card.formFactor` and the `issuingCountryCode`. For example, - * when issuing physical cards in the US, the default status is **inactive**. Possible values: * - * **active**: The payment instrument is active and can be used to make payments. * **inactive**: - * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The - * payment instrument is suspended, either because it was stolen or lost. * **closed**: The - * payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. */ public enum StatusEnum { + ACTIVE(String.valueOf("active")), CLOSED(String.valueOf("closed")), @@ -60,7 +61,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -81,11 +82,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -97,12 +94,10 @@ public static StatusEnum fromValue(String value) { private String statusComment; /** - * The reason for updating the status of the payment instrument. Possible values: **lost**, - * **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, **accountClosure**, - * **other**. If the reason is **other**, you must also send the `statusComment` - * parameter describing the status change. + * The reason for updating the status of the payment instrument. Possible values: **lost**, **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, **accountClosure**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. */ public enum StatusReasonEnum { + ACCOUNTCLOSURE(String.valueOf("accountClosure")), DAMAGED(String.valueOf("damaged")), @@ -126,7 +121,7 @@ public enum StatusReasonEnum { private String value; StatusReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -147,11 +142,7 @@ public static StatusReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusReasonEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusReasonEnum.values())); + LOG.warning("StatusReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusReasonEnum.values())); return null; } } @@ -159,17 +150,14 @@ public static StatusReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS_REASON = "statusReason"; private StatusReasonEnum statusReason; - public PaymentInstrumentUpdateRequest() {} + public PaymentInstrumentUpdateRequest() { + } /** - * The unique identifier of the balance account associated with this payment instrument. >You - * can only change the balance account ID if the payment instrument has **inactive** status. + * The unique identifier of the balance account associated with this payment instrument. >You can only change the balance account ID if the payment instrument has **inactive** status. * - * @param balanceAccountId The unique identifier of the balance account associated with this - * payment instrument. >You can only change the balance account ID if the payment - * instrument has **inactive** status. - * @return the current {@code PaymentInstrumentUpdateRequest} instance, allowing for method - * chaining + * @param balanceAccountId The unique identifier of the balance account associated with this payment instrument. >You can only change the balance account ID if the payment instrument has **inactive** status. + * @return the current {@code PaymentInstrumentUpdateRequest} instance, allowing for method chaining */ public PaymentInstrumentUpdateRequest balanceAccountId(String balanceAccountId) { this.balanceAccountId = balanceAccountId; @@ -177,12 +165,8 @@ public PaymentInstrumentUpdateRequest balanceAccountId(String balanceAccountId) } /** - * The unique identifier of the balance account associated with this payment instrument. >You - * can only change the balance account ID if the payment instrument has **inactive** status. - * - * @return balanceAccountId The unique identifier of the balance account associated with this - * payment instrument. >You can only change the balance account ID if the payment - * instrument has **inactive** status. + * The unique identifier of the balance account associated with this payment instrument. >You can only change the balance account ID if the payment instrument has **inactive** status. + * @return balanceAccountId The unique identifier of the balance account associated with this payment instrument. >You can only change the balance account ID if the payment instrument has **inactive** status. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,12 +175,9 @@ public String getBalanceAccountId() { } /** - * The unique identifier of the balance account associated with this payment instrument. >You - * can only change the balance account ID if the payment instrument has **inactive** status. + * The unique identifier of the balance account associated with this payment instrument. >You can only change the balance account ID if the payment instrument has **inactive** status. * - * @param balanceAccountId The unique identifier of the balance account associated with this - * payment instrument. >You can only change the balance account ID if the payment - * instrument has **inactive** status. + * @param balanceAccountId The unique identifier of the balance account associated with this payment instrument. >You can only change the balance account ID if the payment instrument has **inactive** status. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -207,9 +188,8 @@ public void setBalanceAccountId(String balanceAccountId) { /** * card * - * @param card - * @return the current {@code PaymentInstrumentUpdateRequest} instance, allowing for method - * chaining + * @param card + * @return the current {@code PaymentInstrumentUpdateRequest} instance, allowing for method chaining */ public PaymentInstrumentUpdateRequest card(CardInfo card) { this.card = card; @@ -218,8 +198,7 @@ public PaymentInstrumentUpdateRequest card(CardInfo card) { /** * Get card - * - * @return card + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -230,7 +209,7 @@ public CardInfo getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -239,26 +218,10 @@ public void setCard(CardInfo card) { } /** - * The status of the payment instrument. If a status is not specified when creating a payment - * instrument, it is set to **active** by default. However, there can be exceptions for cards - * based on the `card.formFactor` and the `issuingCountryCode`. For example, - * when issuing physical cards in the US, the default status is **inactive**. Possible values: * - * **active**: The payment instrument is active and can be used to make payments. * **inactive**: - * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The - * payment instrument is suspended, either because it was stolen or lost. * **closed**: The - * payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. * - * @param status The status of the payment instrument. If a status is not specified when creating - * a payment instrument, it is set to **active** by default. However, there can be exceptions - * for cards based on the `card.formFactor` and the `issuingCountryCode`. - * For example, when issuing physical cards in the US, the default status is **inactive**. - * Possible values: * **active**: The payment instrument is active and can be used to make - * payments. * **inactive**: The payment instrument is inactive and cannot be used to make - * payments. * **suspended**: The payment instrument is suspended, either because it was - * stolen or lost. * **closed**: The payment instrument is permanently closed. This action - * cannot be undone. - * @return the current {@code PaymentInstrumentUpdateRequest} instance, allowing for method - * chaining + * @param status The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * @return the current {@code PaymentInstrumentUpdateRequest} instance, allowing for method chaining */ public PaymentInstrumentUpdateRequest status(StatusEnum status) { this.status = status; @@ -266,24 +229,8 @@ public PaymentInstrumentUpdateRequest status(StatusEnum status) { } /** - * The status of the payment instrument. If a status is not specified when creating a payment - * instrument, it is set to **active** by default. However, there can be exceptions for cards - * based on the `card.formFactor` and the `issuingCountryCode`. For example, - * when issuing physical cards in the US, the default status is **inactive**. Possible values: * - * **active**: The payment instrument is active and can be used to make payments. * **inactive**: - * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The - * payment instrument is suspended, either because it was stolen or lost. * **closed**: The - * payment instrument is permanently closed. This action cannot be undone. - * - * @return status The status of the payment instrument. If a status is not specified when creating - * a payment instrument, it is set to **active** by default. However, there can be exceptions - * for cards based on the `card.formFactor` and the `issuingCountryCode`. - * For example, when issuing physical cards in the US, the default status is **inactive**. - * Possible values: * **active**: The payment instrument is active and can be used to make - * payments. * **inactive**: The payment instrument is inactive and cannot be used to make - * payments. * **suspended**: The payment instrument is suspended, either because it was - * stolen or lost. * **closed**: The payment instrument is permanently closed. This action - * cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * @return status The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -292,24 +239,9 @@ public StatusEnum getStatus() { } /** - * The status of the payment instrument. If a status is not specified when creating a payment - * instrument, it is set to **active** by default. However, there can be exceptions for cards - * based on the `card.formFactor` and the `issuingCountryCode`. For example, - * when issuing physical cards in the US, the default status is **inactive**. Possible values: * - * **active**: The payment instrument is active and can be used to make payments. * **inactive**: - * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The - * payment instrument is suspended, either because it was stolen or lost. * **closed**: The - * payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. * - * @param status The status of the payment instrument. If a status is not specified when creating - * a payment instrument, it is set to **active** by default. However, there can be exceptions - * for cards based on the `card.formFactor` and the `issuingCountryCode`. - * For example, when issuing physical cards in the US, the default status is **inactive**. - * Possible values: * **active**: The payment instrument is active and can be used to make - * payments. * **inactive**: The payment instrument is inactive and cannot be used to make - * payments. * **suspended**: The payment instrument is suspended, either because it was - * stolen or lost. * **closed**: The payment instrument is permanently closed. This action - * cannot be undone. + * @param status The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -318,13 +250,10 @@ public void setStatus(StatusEnum status) { } /** - * Comment for the status of the payment instrument. Required if `statusReason` is - * **other**. + * Comment for the status of the payment instrument. Required if `statusReason` is **other**. * - * @param statusComment Comment for the status of the payment instrument. Required if - * `statusReason` is **other**. - * @return the current {@code PaymentInstrumentUpdateRequest} instance, allowing for method - * chaining + * @param statusComment Comment for the status of the payment instrument. Required if `statusReason` is **other**. + * @return the current {@code PaymentInstrumentUpdateRequest} instance, allowing for method chaining */ public PaymentInstrumentUpdateRequest statusComment(String statusComment) { this.statusComment = statusComment; @@ -332,11 +261,8 @@ public PaymentInstrumentUpdateRequest statusComment(String statusComment) { } /** - * Comment for the status of the payment instrument. Required if `statusReason` is - * **other**. - * - * @return statusComment Comment for the status of the payment instrument. Required if - * `statusReason` is **other**. + * Comment for the status of the payment instrument. Required if `statusReason` is **other**. + * @return statusComment Comment for the status of the payment instrument. Required if `statusReason` is **other**. */ @JsonProperty(JSON_PROPERTY_STATUS_COMMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -345,11 +271,9 @@ public String getStatusComment() { } /** - * Comment for the status of the payment instrument. Required if `statusReason` is - * **other**. + * Comment for the status of the payment instrument. Required if `statusReason` is **other**. * - * @param statusComment Comment for the status of the payment instrument. Required if - * `statusReason` is **other**. + * @param statusComment Comment for the status of the payment instrument. Required if `statusReason` is **other**. */ @JsonProperty(JSON_PROPERTY_STATUS_COMMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -358,17 +282,10 @@ public void setStatusComment(String statusComment) { } /** - * The reason for updating the status of the payment instrument. Possible values: **lost**, - * **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, **accountClosure**, - * **other**. If the reason is **other**, you must also send the `statusComment` - * parameter describing the status change. + * The reason for updating the status of the payment instrument. Possible values: **lost**, **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, **accountClosure**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. * - * @param statusReason The reason for updating the status of the payment instrument. Possible - * values: **lost**, **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, - * **accountClosure**, **other**. If the reason is **other**, you must also send the - * `statusComment` parameter describing the status change. - * @return the current {@code PaymentInstrumentUpdateRequest} instance, allowing for method - * chaining + * @param statusReason The reason for updating the status of the payment instrument. Possible values: **lost**, **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, **accountClosure**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * @return the current {@code PaymentInstrumentUpdateRequest} instance, allowing for method chaining */ public PaymentInstrumentUpdateRequest statusReason(StatusReasonEnum statusReason) { this.statusReason = statusReason; @@ -376,15 +293,8 @@ public PaymentInstrumentUpdateRequest statusReason(StatusReasonEnum statusReason } /** - * The reason for updating the status of the payment instrument. Possible values: **lost**, - * **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, **accountClosure**, - * **other**. If the reason is **other**, you must also send the `statusComment` - * parameter describing the status change. - * - * @return statusReason The reason for updating the status of the payment instrument. Possible - * values: **lost**, **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, - * **accountClosure**, **other**. If the reason is **other**, you must also send the - * `statusComment` parameter describing the status change. + * The reason for updating the status of the payment instrument. Possible values: **lost**, **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, **accountClosure**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * @return statusReason The reason for updating the status of the payment instrument. Possible values: **lost**, **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, **accountClosure**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. */ @JsonProperty(JSON_PROPERTY_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -393,15 +303,9 @@ public StatusReasonEnum getStatusReason() { } /** - * The reason for updating the status of the payment instrument. Possible values: **lost**, - * **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, **accountClosure**, - * **other**. If the reason is **other**, you must also send the `statusComment` - * parameter describing the status change. + * The reason for updating the status of the payment instrument. Possible values: **lost**, **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, **accountClosure**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. * - * @param statusReason The reason for updating the status of the payment instrument. Possible - * values: **lost**, **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, - * **accountClosure**, **other**. If the reason is **other**, you must also send the - * `statusComment` parameter describing the status change. + * @param statusReason The reason for updating the status of the payment instrument. Possible values: **lost**, **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, **accountClosure**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. */ @JsonProperty(JSON_PROPERTY_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -409,7 +313,9 @@ public void setStatusReason(StatusReasonEnum statusReason) { this.statusReason = statusReason; } - /** Return true if this PaymentInstrumentUpdateRequest object is equal to o. */ + /** + * Return true if this PaymentInstrumentUpdateRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -418,13 +324,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaymentInstrumentUpdateRequest paymentInstrumentUpdateRequest = - (PaymentInstrumentUpdateRequest) o; - return Objects.equals(this.balanceAccountId, paymentInstrumentUpdateRequest.balanceAccountId) - && Objects.equals(this.card, paymentInstrumentUpdateRequest.card) - && Objects.equals(this.status, paymentInstrumentUpdateRequest.status) - && Objects.equals(this.statusComment, paymentInstrumentUpdateRequest.statusComment) - && Objects.equals(this.statusReason, paymentInstrumentUpdateRequest.statusReason); + PaymentInstrumentUpdateRequest paymentInstrumentUpdateRequest = (PaymentInstrumentUpdateRequest) o; + return Objects.equals(this.balanceAccountId, paymentInstrumentUpdateRequest.balanceAccountId) && + Objects.equals(this.card, paymentInstrumentUpdateRequest.card) && + Objects.equals(this.status, paymentInstrumentUpdateRequest.status) && + Objects.equals(this.statusComment, paymentInstrumentUpdateRequest.statusComment) && + Objects.equals(this.statusReason, paymentInstrumentUpdateRequest.statusReason); } @Override @@ -446,7 +351,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -455,24 +361,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentInstrumentUpdateRequest given an JSON string * * @param jsonString JSON string * @return An instance of PaymentInstrumentUpdateRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentInstrumentUpdateRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentInstrumentUpdateRequest */ - public static PaymentInstrumentUpdateRequest fromJson(String jsonString) - throws JsonProcessingException { + public static PaymentInstrumentUpdateRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentInstrumentUpdateRequest.class); } - - /** - * Convert an instance of PaymentInstrumentUpdateRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentInstrumentUpdateRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/Phone.java b/src/main/java/com/adyen/model/balanceplatform/Phone.java index 6d10d0f8e..0b108334c 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Phone.java +++ b/src/main/java/com/adyen/model/balanceplatform/Phone.java @@ -2,33 +2,45 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * Phone + */ +@JsonPropertyOrder({ + Phone.JSON_PROPERTY_NUMBER, + Phone.JSON_PROPERTY_TYPE +}) -/** Phone */ -@JsonPropertyOrder({Phone.JSON_PROPERTY_NUMBER, Phone.JSON_PROPERTY_TYPE}) public class Phone { public static final String JSON_PROPERTY_NUMBER = "number"; private String number; - /** Type of phone number. Possible values: **Landline**, **Mobile**. */ + /** + * Type of phone number. Possible values: **Landline**, **Mobile**. + */ public enum TypeEnum { + LANDLINE(String.valueOf("landline")), MOBILE(String.valueOf("mobile")); @@ -38,7 +50,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -59,11 +71,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -71,15 +79,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public Phone() {} + public Phone() { + } /** - * The full phone number provided as a single string. For example, **\"0031 6 11 22 33 - * 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. + * The full phone number provided as a single string. For example, **\"0031 6 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. * - * @param number The full phone number provided as a single string. For example, **\"0031 6 - * 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) - * 611223344\"**. + * @param number The full phone number provided as a single string. For example, **\"0031 6 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. * @return the current {@code Phone} instance, allowing for method chaining */ public Phone number(String number) { @@ -88,12 +94,8 @@ public Phone number(String number) { } /** - * The full phone number provided as a single string. For example, **\"0031 6 11 22 33 - * 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. - * - * @return number The full phone number provided as a single string. For example, **\"0031 6 - * 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) - * 611223344\"**. + * The full phone number provided as a single string. For example, **\"0031 6 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. + * @return number The full phone number provided as a single string. For example, **\"0031 6 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,12 +104,9 @@ public String getNumber() { } /** - * The full phone number provided as a single string. For example, **\"0031 6 11 22 33 - * 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. + * The full phone number provided as a single string. For example, **\"0031 6 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. * - * @param number The full phone number provided as a single string. For example, **\"0031 6 - * 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) - * 611223344\"**. + * @param number The full phone number provided as a single string. For example, **\"0031 6 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,9 +115,9 @@ public void setNumber(String number) { } /** - * Type of phone number. Possible values: **Landline**, **Mobile**. + * Type of phone number. Possible values: **Landline**, **Mobile**. * - * @param type Type of phone number. Possible values: **Landline**, **Mobile**. + * @param type Type of phone number. Possible values: **Landline**, **Mobile**. * @return the current {@code Phone} instance, allowing for method chaining */ public Phone type(TypeEnum type) { @@ -127,9 +126,8 @@ public Phone type(TypeEnum type) { } /** - * Type of phone number. Possible values: **Landline**, **Mobile**. - * - * @return type Type of phone number. Possible values: **Landline**, **Mobile**. + * Type of phone number. Possible values: **Landline**, **Mobile**. + * @return type Type of phone number. Possible values: **Landline**, **Mobile**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,9 +136,9 @@ public TypeEnum getType() { } /** - * Type of phone number. Possible values: **Landline**, **Mobile**. + * Type of phone number. Possible values: **Landline**, **Mobile**. * - * @param type Type of phone number. Possible values: **Landline**, **Mobile**. + * @param type Type of phone number. Possible values: **Landline**, **Mobile**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,7 +146,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this Phone object is equal to o. */ + /** + * Return true if this Phone object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -158,7 +158,8 @@ public boolean equals(Object o) { return false; } Phone phone = (Phone) o; - return Objects.equals(this.number, phone.number) && Objects.equals(this.type, phone.type); + return Objects.equals(this.number, phone.number) && + Objects.equals(this.type, phone.type); } @Override @@ -177,7 +178,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +188,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Phone given an JSON string * * @param jsonString JSON string @@ -196,12 +198,11 @@ private String toIndentedString(Object o) { public static Phone fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Phone.class); } - - /** - * Convert an instance of Phone to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Phone to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PhoneNumber.java b/src/main/java/com/adyen/model/balanceplatform/PhoneNumber.java index cdc93e935..164230b31 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PhoneNumber.java +++ b/src/main/java/com/adyen/model/balanceplatform/PhoneNumber.java @@ -2,31 +2,37 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** PhoneNumber */ + +/** + * PhoneNumber + */ @JsonPropertyOrder({ PhoneNumber.JSON_PROPERTY_PHONE_COUNTRY_CODE, PhoneNumber.JSON_PROPERTY_PHONE_NUMBER, PhoneNumber.JSON_PROPERTY_PHONE_TYPE }) + public class PhoneNumber { public static final String JSON_PROPERTY_PHONE_COUNTRY_CODE = "phoneCountryCode"; private String phoneCountryCode; @@ -34,8 +40,11 @@ public class PhoneNumber { public static final String JSON_PROPERTY_PHONE_NUMBER = "phoneNumber"; private String phoneNumber; - /** The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. */ + /** + * The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. + */ public enum PhoneTypeEnum { + FAX(String.valueOf("Fax")), LANDLINE(String.valueOf("Landline")), @@ -49,7 +58,7 @@ public enum PhoneTypeEnum { private String value; PhoneTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -70,11 +79,7 @@ public static PhoneTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PhoneTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PhoneTypeEnum.values())); + LOG.warning("PhoneTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PhoneTypeEnum.values())); return null; } } @@ -82,14 +87,13 @@ public static PhoneTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_PHONE_TYPE = "phoneType"; private PhoneTypeEnum phoneType; - public PhoneNumber() {} + public PhoneNumber() { + } /** - * The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or - * **NL**. + * The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or **NL**. * - * @param phoneCountryCode The two-character ISO-3166-1 alpha-2 country code of the phone number. - * For example, **US** or **NL**. + * @param phoneCountryCode The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or **NL**. * @return the current {@code PhoneNumber} instance, allowing for method chaining */ public PhoneNumber phoneCountryCode(String phoneCountryCode) { @@ -98,11 +102,8 @@ public PhoneNumber phoneCountryCode(String phoneCountryCode) { } /** - * The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or - * **NL**. - * - * @return phoneCountryCode The two-character ISO-3166-1 alpha-2 country code of the phone number. - * For example, **US** or **NL**. + * The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or **NL**. + * @return phoneCountryCode The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or **NL**. */ @JsonProperty(JSON_PROPERTY_PHONE_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,11 +112,9 @@ public String getPhoneCountryCode() { } /** - * The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or - * **NL**. + * The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or **NL**. * - * @param phoneCountryCode The two-character ISO-3166-1 alpha-2 country code of the phone number. - * For example, **US** or **NL**. + * @param phoneCountryCode The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or **NL**. */ @JsonProperty(JSON_PROPERTY_PHONE_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,8 +125,7 @@ public void setPhoneCountryCode(String phoneCountryCode) { /** * The phone number. The inclusion of the phone number country code is not necessary. * - * @param phoneNumber The phone number. The inclusion of the phone number country code is not - * necessary. + * @param phoneNumber The phone number. The inclusion of the phone number country code is not necessary. * @return the current {@code PhoneNumber} instance, allowing for method chaining */ public PhoneNumber phoneNumber(String phoneNumber) { @@ -137,9 +135,7 @@ public PhoneNumber phoneNumber(String phoneNumber) { /** * The phone number. The inclusion of the phone number country code is not necessary. - * - * @return phoneNumber The phone number. The inclusion of the phone number country code is not - * necessary. + * @return phoneNumber The phone number. The inclusion of the phone number country code is not necessary. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,8 +146,7 @@ public String getPhoneNumber() { /** * The phone number. The inclusion of the phone number country code is not necessary. * - * @param phoneNumber The phone number. The inclusion of the phone number country code is not - * necessary. + * @param phoneNumber The phone number. The inclusion of the phone number country code is not necessary. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -162,8 +157,7 @@ public void setPhoneNumber(String phoneNumber) { /** * The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. * - * @param phoneType The type of the phone number. Possible values: **Landline**, **Mobile**, - * **SIP**, **Fax**. + * @param phoneType The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. * @return the current {@code PhoneNumber} instance, allowing for method chaining */ public PhoneNumber phoneType(PhoneTypeEnum phoneType) { @@ -173,9 +167,7 @@ public PhoneNumber phoneType(PhoneTypeEnum phoneType) { /** * The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. - * - * @return phoneType The type of the phone number. Possible values: **Landline**, **Mobile**, - * **SIP**, **Fax**. + * @return phoneType The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. */ @JsonProperty(JSON_PROPERTY_PHONE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,8 +178,7 @@ public PhoneTypeEnum getPhoneType() { /** * The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. * - * @param phoneType The type of the phone number. Possible values: **Landline**, **Mobile**, - * **SIP**, **Fax**. + * @param phoneType The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. */ @JsonProperty(JSON_PROPERTY_PHONE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,7 +186,9 @@ public void setPhoneType(PhoneTypeEnum phoneType) { this.phoneType = phoneType; } - /** Return true if this PhoneNumber object is equal to o. */ + /** + * Return true if this PhoneNumber object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -205,9 +198,9 @@ public boolean equals(Object o) { return false; } PhoneNumber phoneNumber = (PhoneNumber) o; - return Objects.equals(this.phoneCountryCode, phoneNumber.phoneCountryCode) - && Objects.equals(this.phoneNumber, phoneNumber.phoneNumber) - && Objects.equals(this.phoneType, phoneNumber.phoneType); + return Objects.equals(this.phoneCountryCode, phoneNumber.phoneCountryCode) && + Objects.equals(this.phoneNumber, phoneNumber.phoneNumber) && + Objects.equals(this.phoneType, phoneNumber.phoneType); } @Override @@ -227,7 +220,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -236,7 +230,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PhoneNumber given an JSON string * * @param jsonString JSON string @@ -246,12 +240,11 @@ private String toIndentedString(Object o) { public static PhoneNumber fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PhoneNumber.class); } - - /** - * Convert an instance of PhoneNumber to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PhoneNumber to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PinChangeRequest.java b/src/main/java/com/adyen/model/balanceplatform/PinChangeRequest.java index ccc1df0a2..7bdf8df19 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PinChangeRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/PinChangeRequest.java @@ -2,28 +2,38 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** PinChangeRequest */ + +/** + * PinChangeRequest + */ @JsonPropertyOrder({ PinChangeRequest.JSON_PROPERTY_ENCRYPTED_KEY, PinChangeRequest.JSON_PROPERTY_ENCRYPTED_PIN_BLOCK, PinChangeRequest.JSON_PROPERTY_PAYMENT_INSTRUMENT_ID, PinChangeRequest.JSON_PROPERTY_TOKEN }) + public class PinChangeRequest { public static final String JSON_PROPERTY_ENCRYPTED_KEY = "encryptedKey"; private String encryptedKey; @@ -37,16 +47,13 @@ public class PinChangeRequest { public static final String JSON_PROPERTY_TOKEN = "token"; private String token; - public PinChangeRequest() {} + public PinChangeRequest() { + } /** - * The symmetric session key that you encrypted with the [public - * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received - * from Adyen. + * The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. * - * @param encryptedKey The symmetric session key that you encrypted with the [public - * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received - * from Adyen. + * @param encryptedKey The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. * @return the current {@code PinChangeRequest} instance, allowing for method chaining */ public PinChangeRequest encryptedKey(String encryptedKey) { @@ -55,13 +62,8 @@ public PinChangeRequest encryptedKey(String encryptedKey) { } /** - * The symmetric session key that you encrypted with the [public - * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received - * from Adyen. - * - * @return encryptedKey The symmetric session key that you encrypted with the [public - * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received - * from Adyen. + * The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. + * @return encryptedKey The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,13 +72,9 @@ public String getEncryptedKey() { } /** - * The symmetric session key that you encrypted with the [public - * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received - * from Adyen. + * The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. * - * @param encryptedKey The symmetric session key that you encrypted with the [public - * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received - * from Adyen. + * @param encryptedKey The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,8 +85,7 @@ public void setEncryptedKey(String encryptedKey) { /** * The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block). * - * @param encryptedPinBlock The encrypted [PIN - * block](https://www.pcisecuritystandards.org/glossary/pin-block). + * @param encryptedPinBlock The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block). * @return the current {@code PinChangeRequest} instance, allowing for method chaining */ public PinChangeRequest encryptedPinBlock(String encryptedPinBlock) { @@ -98,9 +95,7 @@ public PinChangeRequest encryptedPinBlock(String encryptedPinBlock) { /** * The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block). - * - * @return encryptedPinBlock The encrypted [PIN - * block](https://www.pcisecuritystandards.org/glossary/pin-block). + * @return encryptedPinBlock The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block). */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_PIN_BLOCK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,8 +106,7 @@ public String getEncryptedPinBlock() { /** * The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block). * - * @param encryptedPinBlock The encrypted [PIN - * block](https://www.pcisecuritystandards.org/glossary/pin-block). + * @param encryptedPinBlock The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block). */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_PIN_BLOCK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,11 +115,9 @@ public void setEncryptedPinBlock(String encryptedPinBlock) { } /** - * The unique identifier of the payment instrument, which is the card for which you are managing - * the PIN. + * The unique identifier of the payment instrument, which is the card for which you are managing the PIN. * - * @param paymentInstrumentId The unique identifier of the payment instrument, which is the card - * for which you are managing the PIN. + * @param paymentInstrumentId The unique identifier of the payment instrument, which is the card for which you are managing the PIN. * @return the current {@code PinChangeRequest} instance, allowing for method chaining */ public PinChangeRequest paymentInstrumentId(String paymentInstrumentId) { @@ -134,11 +126,8 @@ public PinChangeRequest paymentInstrumentId(String paymentInstrumentId) { } /** - * The unique identifier of the payment instrument, which is the card for which you are managing - * the PIN. - * - * @return paymentInstrumentId The unique identifier of the payment instrument, which is the card - * for which you are managing the PIN. + * The unique identifier of the payment instrument, which is the card for which you are managing the PIN. + * @return paymentInstrumentId The unique identifier of the payment instrument, which is the card for which you are managing the PIN. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,11 +136,9 @@ public String getPaymentInstrumentId() { } /** - * The unique identifier of the payment instrument, which is the card for which you are managing - * the PIN. + * The unique identifier of the payment instrument, which is the card for which you are managing the PIN. * - * @param paymentInstrumentId The unique identifier of the payment instrument, which is the card - * for which you are managing the PIN. + * @param paymentInstrumentId The unique identifier of the payment instrument, which is the card for which you are managing the PIN. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,7 +159,6 @@ public PinChangeRequest token(String token) { /** * The 16-digit token that you used to generate the `encryptedPinBlock`. - * * @return token The 16-digit token that you used to generate the `encryptedPinBlock`. */ @JsonProperty(JSON_PROPERTY_TOKEN) @@ -192,7 +178,9 @@ public void setToken(String token) { this.token = token; } - /** Return true if this PinChangeRequest object is equal to o. */ + /** + * Return true if this PinChangeRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -202,10 +190,10 @@ public boolean equals(Object o) { return false; } PinChangeRequest pinChangeRequest = (PinChangeRequest) o; - return Objects.equals(this.encryptedKey, pinChangeRequest.encryptedKey) - && Objects.equals(this.encryptedPinBlock, pinChangeRequest.encryptedPinBlock) - && Objects.equals(this.paymentInstrumentId, pinChangeRequest.paymentInstrumentId) - && Objects.equals(this.token, pinChangeRequest.token); + return Objects.equals(this.encryptedKey, pinChangeRequest.encryptedKey) && + Objects.equals(this.encryptedPinBlock, pinChangeRequest.encryptedPinBlock) && + Objects.equals(this.paymentInstrumentId, pinChangeRequest.paymentInstrumentId) && + Objects.equals(this.token, pinChangeRequest.token); } @Override @@ -219,16 +207,15 @@ public String toString() { sb.append("class PinChangeRequest {\n"); sb.append(" encryptedKey: ").append(toIndentedString(encryptedKey)).append("\n"); sb.append(" encryptedPinBlock: ").append(toIndentedString(encryptedPinBlock)).append("\n"); - sb.append(" paymentInstrumentId: ") - .append(toIndentedString(paymentInstrumentId)) - .append("\n"); + sb.append(" paymentInstrumentId: ").append(toIndentedString(paymentInstrumentId)).append("\n"); sb.append(" token: ").append(toIndentedString(token)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -237,7 +224,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PinChangeRequest given an JSON string * * @param jsonString JSON string @@ -247,12 +234,11 @@ private String toIndentedString(Object o) { public static PinChangeRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PinChangeRequest.class); } - - /** - * Convert an instance of PinChangeRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PinChangeRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PinChangeResponse.java b/src/main/java/com/adyen/model/balanceplatform/PinChangeResponse.java index e917de51c..343dba9bf 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PinChangeResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/PinChangeResponse.java @@ -2,33 +2,41 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * PinChangeResponse + */ +@JsonPropertyOrder({ + PinChangeResponse.JSON_PROPERTY_STATUS +}) -/** PinChangeResponse */ -@JsonPropertyOrder({PinChangeResponse.JSON_PROPERTY_STATUS}) public class PinChangeResponse { /** - * The status of the request for PIN change. Possible values: **completed**, **pending**, - * **unavailable**. + * The status of the request for PIN change. Possible values: **completed**, **pending**, **unavailable**. */ public enum StatusEnum { + COMPLETED(String.valueOf("completed")), PENDING(String.valueOf("pending")), @@ -40,7 +48,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -61,11 +69,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -73,14 +77,13 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; - public PinChangeResponse() {} + public PinChangeResponse() { + } /** - * The status of the request for PIN change. Possible values: **completed**, **pending**, - * **unavailable**. + * The status of the request for PIN change. Possible values: **completed**, **pending**, **unavailable**. * - * @param status The status of the request for PIN change. Possible values: **completed**, - * **pending**, **unavailable**. + * @param status The status of the request for PIN change. Possible values: **completed**, **pending**, **unavailable**. * @return the current {@code PinChangeResponse} instance, allowing for method chaining */ public PinChangeResponse status(StatusEnum status) { @@ -89,11 +92,8 @@ public PinChangeResponse status(StatusEnum status) { } /** - * The status of the request for PIN change. Possible values: **completed**, **pending**, - * **unavailable**. - * - * @return status The status of the request for PIN change. Possible values: **completed**, - * **pending**, **unavailable**. + * The status of the request for PIN change. Possible values: **completed**, **pending**, **unavailable**. + * @return status The status of the request for PIN change. Possible values: **completed**, **pending**, **unavailable**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,11 +102,9 @@ public StatusEnum getStatus() { } /** - * The status of the request for PIN change. Possible values: **completed**, **pending**, - * **unavailable**. + * The status of the request for PIN change. Possible values: **completed**, **pending**, **unavailable**. * - * @param status The status of the request for PIN change. Possible values: **completed**, - * **pending**, **unavailable**. + * @param status The status of the request for PIN change. Possible values: **completed**, **pending**, **unavailable**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,7 +112,9 @@ public void setStatus(StatusEnum status) { this.status = status; } - /** Return true if this PinChangeResponse object is equal to o. */ + /** + * Return true if this PinChangeResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -142,7 +142,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -151,7 +152,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PinChangeResponse given an JSON string * * @param jsonString JSON string @@ -161,12 +162,11 @@ private String toIndentedString(Object o) { public static PinChangeResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PinChangeResponse.class); } - - /** - * Convert an instance of PinChangeResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PinChangeResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PlatformPaymentConfiguration.java b/src/main/java/com/adyen/model/balanceplatform/PlatformPaymentConfiguration.java index b4cc3b6e1..3188d3202 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PlatformPaymentConfiguration.java +++ b/src/main/java/com/adyen/model/balanceplatform/PlatformPaymentConfiguration.java @@ -2,26 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** PlatformPaymentConfiguration */ + +/** + * PlatformPaymentConfiguration + */ @JsonPropertyOrder({ PlatformPaymentConfiguration.JSON_PROPERTY_SALES_DAY_CLOSING_TIME, PlatformPaymentConfiguration.JSON_PROPERTY_SETTLEMENT_DELAY_DAYS }) + public class PlatformPaymentConfiguration { public static final String JSON_PROPERTY_SALES_DAY_CLOSING_TIME = "salesDayClosingTime"; private String salesDayClosingTime; @@ -29,16 +39,13 @@ public class PlatformPaymentConfiguration { public static final String JSON_PROPERTY_SETTLEMENT_DELAY_DAYS = "settlementDelayDays"; private Integer settlementDelayDays; - public PlatformPaymentConfiguration() {} + public PlatformPaymentConfiguration() { + } /** - * Specifies at what time a sales day ends for this account. Possible values: Time in - * **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. - * Default value: **\"00:00\"**. + * Specifies at what time a sales day ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**. * - * @param salesDayClosingTime Specifies at what time a sales day ends for this account. Possible - * values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** - * must be **00**. Default value: **\"00:00\"**. + * @param salesDayClosingTime Specifies at what time a sales day ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**. * @return the current {@code PlatformPaymentConfiguration} instance, allowing for method chaining */ public PlatformPaymentConfiguration salesDayClosingTime(String salesDayClosingTime) { @@ -47,13 +54,8 @@ public PlatformPaymentConfiguration salesDayClosingTime(String salesDayClosingTi } /** - * Specifies at what time a sales day ends for this account. Possible values: Time in - * **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. - * Default value: **\"00:00\"**. - * - * @return salesDayClosingTime Specifies at what time a sales day ends for this account. Possible - * values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** - * must be **00**. Default value: **\"00:00\"**. + * Specifies at what time a sales day ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**. + * @return salesDayClosingTime Specifies at what time a sales day ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**. */ @JsonProperty(JSON_PROPERTY_SALES_DAY_CLOSING_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -62,13 +64,9 @@ public String getSalesDayClosingTime() { } /** - * Specifies at what time a sales day ends for this account. Possible values: Time in - * **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. - * Default value: **\"00:00\"**. + * Specifies at what time a sales day ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**. * - * @param salesDayClosingTime Specifies at what time a sales day ends for this account. Possible - * values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** - * must be **00**. Default value: **\"00:00\"**. + * @param salesDayClosingTime Specifies at what time a sales day ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**. */ @JsonProperty(JSON_PROPERTY_SALES_DAY_CLOSING_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -77,12 +75,9 @@ public void setSalesDayClosingTime(String salesDayClosingTime) { } /** - * Specifies after how many business days the funds in a settlement batch are made available in - * this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. + * Specifies after how many business days the funds in a settlement batch are made available in this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. * - * @param settlementDelayDays Specifies after how many business days the funds in a settlement - * batch are made available in this balance account. Possible values: **1** to **20**, or - * **null**. Default value: **null**. + * @param settlementDelayDays Specifies after how many business days the funds in a settlement batch are made available in this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. * @return the current {@code PlatformPaymentConfiguration} instance, allowing for method chaining */ public PlatformPaymentConfiguration settlementDelayDays(Integer settlementDelayDays) { @@ -91,12 +86,8 @@ public PlatformPaymentConfiguration settlementDelayDays(Integer settlementDelayD } /** - * Specifies after how many business days the funds in a settlement batch are made available in - * this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. - * - * @return settlementDelayDays Specifies after how many business days the funds in a settlement - * batch are made available in this balance account. Possible values: **1** to **20**, or - * **null**. Default value: **null**. + * Specifies after how many business days the funds in a settlement batch are made available in this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. + * @return settlementDelayDays Specifies after how many business days the funds in a settlement batch are made available in this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. */ @JsonProperty(JSON_PROPERTY_SETTLEMENT_DELAY_DAYS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,12 +96,9 @@ public Integer getSettlementDelayDays() { } /** - * Specifies after how many business days the funds in a settlement batch are made available in - * this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. + * Specifies after how many business days the funds in a settlement batch are made available in this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. * - * @param settlementDelayDays Specifies after how many business days the funds in a settlement - * batch are made available in this balance account. Possible values: **1** to **20**, or - * **null**. Default value: **null**. + * @param settlementDelayDays Specifies after how many business days the funds in a settlement batch are made available in this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. */ @JsonProperty(JSON_PROPERTY_SETTLEMENT_DELAY_DAYS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,7 +106,9 @@ public void setSettlementDelayDays(Integer settlementDelayDays) { this.settlementDelayDays = settlementDelayDays; } - /** Return true if this PlatformPaymentConfiguration object is equal to o. */ + /** + * Return true if this PlatformPaymentConfiguration object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -128,10 +118,8 @@ public boolean equals(Object o) { return false; } PlatformPaymentConfiguration platformPaymentConfiguration = (PlatformPaymentConfiguration) o; - return Objects.equals( - this.salesDayClosingTime, platformPaymentConfiguration.salesDayClosingTime) - && Objects.equals( - this.settlementDelayDays, platformPaymentConfiguration.settlementDelayDays); + return Objects.equals(this.salesDayClosingTime, platformPaymentConfiguration.salesDayClosingTime) && + Objects.equals(this.settlementDelayDays, platformPaymentConfiguration.settlementDelayDays); } @Override @@ -143,18 +131,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PlatformPaymentConfiguration {\n"); - sb.append(" salesDayClosingTime: ") - .append(toIndentedString(salesDayClosingTime)) - .append("\n"); - sb.append(" settlementDelayDays: ") - .append(toIndentedString(settlementDelayDays)) - .append("\n"); + sb.append(" salesDayClosingTime: ").append(toIndentedString(salesDayClosingTime)).append("\n"); + sb.append(" settlementDelayDays: ").append(toIndentedString(settlementDelayDays)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -163,24 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PlatformPaymentConfiguration given an JSON string * * @param jsonString JSON string * @return An instance of PlatformPaymentConfiguration - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PlatformPaymentConfiguration + * @throws JsonProcessingException if the JSON string is invalid with respect to PlatformPaymentConfiguration */ - public static PlatformPaymentConfiguration fromJson(String jsonString) - throws JsonProcessingException { + public static PlatformPaymentConfiguration fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PlatformPaymentConfiguration.class); } - - /** - * Convert an instance of PlatformPaymentConfiguration to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PlatformPaymentConfiguration to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/ProcessingTypesRestriction.java b/src/main/java/com/adyen/model/balanceplatform/ProcessingTypesRestriction.java index c51b0478d..c015844bf 100644 --- a/src/main/java/com/adyen/model/balanceplatform/ProcessingTypesRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/ProcessingTypesRestriction.java @@ -2,38 +2,47 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ProcessingTypesRestriction */ +/** + * ProcessingTypesRestriction + */ @JsonPropertyOrder({ ProcessingTypesRestriction.JSON_PROPERTY_OPERATION, ProcessingTypesRestriction.JSON_PROPERTY_VALUE }) + public class ProcessingTypesRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; - /** Gets or Sets value */ + /** + * Gets or Sets value + */ public enum ValueEnum { + ATMWITHDRAW(String.valueOf("atmWithdraw")), BALANCEINQUIRY(String.valueOf("balanceInquiry")), @@ -55,7 +64,7 @@ public enum ValueEnum { private String value; ValueEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -76,11 +85,7 @@ public static ValueEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ValueEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ValueEnum.values())); + LOG.warning("ValueEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ValueEnum.values())); return null; } } @@ -88,7 +93,8 @@ public static ValueEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUE = "value"; private List value; - public ProcessingTypesRestriction() {} + public ProcessingTypesRestriction() { + } /** * Defines how the condition must be evaluated. @@ -103,7 +109,6 @@ public ProcessingTypesRestriction operation(String operation) { /** * Defines how the condition must be evaluated. - * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -124,11 +129,9 @@ public void setOperation(String operation) { } /** - * List of processing types. Possible values: **atmWithdraw**, **balanceInquiry**, **ecommerce**, - * **moto**, **pos**, **recurring**, **token**. + * List of processing types. Possible values: **atmWithdraw**, **balanceInquiry**, **ecommerce**, **moto**, **pos**, **recurring**, **token**. * - * @param value List of processing types. Possible values: **atmWithdraw**, **balanceInquiry**, - * **ecommerce**, **moto**, **pos**, **recurring**, **token**. + * @param value List of processing types. Possible values: **atmWithdraw**, **balanceInquiry**, **ecommerce**, **moto**, **pos**, **recurring**, **token**. * @return the current {@code ProcessingTypesRestriction} instance, allowing for method chaining */ public ProcessingTypesRestriction value(List value) { @@ -145,11 +148,8 @@ public ProcessingTypesRestriction addValueItem(ValueEnum valueItem) { } /** - * List of processing types. Possible values: **atmWithdraw**, **balanceInquiry**, **ecommerce**, - * **moto**, **pos**, **recurring**, **token**. - * - * @return value List of processing types. Possible values: **atmWithdraw**, **balanceInquiry**, - * **ecommerce**, **moto**, **pos**, **recurring**, **token**. + * List of processing types. Possible values: **atmWithdraw**, **balanceInquiry**, **ecommerce**, **moto**, **pos**, **recurring**, **token**. + * @return value List of processing types. Possible values: **atmWithdraw**, **balanceInquiry**, **ecommerce**, **moto**, **pos**, **recurring**, **token**. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,11 +158,9 @@ public List getValue() { } /** - * List of processing types. Possible values: **atmWithdraw**, **balanceInquiry**, **ecommerce**, - * **moto**, **pos**, **recurring**, **token**. + * List of processing types. Possible values: **atmWithdraw**, **balanceInquiry**, **ecommerce**, **moto**, **pos**, **recurring**, **token**. * - * @param value List of processing types. Possible values: **atmWithdraw**, **balanceInquiry**, - * **ecommerce**, **moto**, **pos**, **recurring**, **token**. + * @param value List of processing types. Possible values: **atmWithdraw**, **balanceInquiry**, **ecommerce**, **moto**, **pos**, **recurring**, **token**. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -170,7 +168,9 @@ public void setValue(List value) { this.value = value; } - /** Return true if this ProcessingTypesRestriction object is equal to o. */ + /** + * Return true if this ProcessingTypesRestriction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -180,8 +180,8 @@ public boolean equals(Object o) { return false; } ProcessingTypesRestriction processingTypesRestriction = (ProcessingTypesRestriction) o; - return Objects.equals(this.operation, processingTypesRestriction.operation) - && Objects.equals(this.value, processingTypesRestriction.value); + return Objects.equals(this.operation, processingTypesRestriction.operation) && + Objects.equals(this.value, processingTypesRestriction.value); } @Override @@ -200,7 +200,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -209,24 +210,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ProcessingTypesRestriction given an JSON string * * @param jsonString JSON string * @return An instance of ProcessingTypesRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ProcessingTypesRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to ProcessingTypesRestriction */ - public static ProcessingTypesRestriction fromJson(String jsonString) - throws JsonProcessingException { + public static ProcessingTypesRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ProcessingTypesRestriction.class); } - - /** - * Convert an instance of ProcessingTypesRestriction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ProcessingTypesRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PublicKeyResponse.java b/src/main/java/com/adyen/model/balanceplatform/PublicKeyResponse.java index 1e4eccac7..53607c762 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PublicKeyResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/PublicKeyResponse.java @@ -2,26 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** PublicKeyResponse */ + +/** + * PublicKeyResponse + */ @JsonPropertyOrder({ PublicKeyResponse.JSON_PROPERTY_PUBLIC_KEY, PublicKeyResponse.JSON_PROPERTY_PUBLIC_KEY_EXPIRY_DATE }) + public class PublicKeyResponse { public static final String JSON_PROPERTY_PUBLIC_KEY = "publicKey"; private String publicKey; @@ -29,7 +39,8 @@ public class PublicKeyResponse { public static final String JSON_PROPERTY_PUBLIC_KEY_EXPIRY_DATE = "publicKeyExpiryDate"; private String publicKeyExpiryDate; - public PublicKeyResponse() {} + public PublicKeyResponse() { + } /** * The public key you need for encrypting a symmetric session key. @@ -44,7 +55,6 @@ public PublicKeyResponse publicKey(String publicKey) { /** * The public key you need for encrypting a symmetric session key. - * * @return publicKey The public key you need for encrypting a symmetric session key. */ @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) @@ -77,7 +87,6 @@ public PublicKeyResponse publicKeyExpiryDate(String publicKeyExpiryDate) { /** * The expiry date of the public key. - * * @return publicKeyExpiryDate The expiry date of the public key. */ @JsonProperty(JSON_PROPERTY_PUBLIC_KEY_EXPIRY_DATE) @@ -97,7 +106,9 @@ public void setPublicKeyExpiryDate(String publicKeyExpiryDate) { this.publicKeyExpiryDate = publicKeyExpiryDate; } - /** Return true if this PublicKeyResponse object is equal to o. */ + /** + * Return true if this PublicKeyResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -107,8 +118,8 @@ public boolean equals(Object o) { return false; } PublicKeyResponse publicKeyResponse = (PublicKeyResponse) o; - return Objects.equals(this.publicKey, publicKeyResponse.publicKey) - && Objects.equals(this.publicKeyExpiryDate, publicKeyResponse.publicKeyExpiryDate); + return Objects.equals(this.publicKey, publicKeyResponse.publicKey) && + Objects.equals(this.publicKeyExpiryDate, publicKeyResponse.publicKeyExpiryDate); } @Override @@ -121,15 +132,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PublicKeyResponse {\n"); sb.append(" publicKey: ").append(toIndentedString(publicKey)).append("\n"); - sb.append(" publicKeyExpiryDate: ") - .append(toIndentedString(publicKeyExpiryDate)) - .append("\n"); + sb.append(" publicKeyExpiryDate: ").append(toIndentedString(publicKeyExpiryDate)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -138,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PublicKeyResponse given an JSON string * * @param jsonString JSON string @@ -148,12 +158,11 @@ private String toIndentedString(Object o) { public static PublicKeyResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PublicKeyResponse.class); } - - /** - * Convert an instance of PublicKeyResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PublicKeyResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/RegisterSCAFinalResponse.java b/src/main/java/com/adyen/model/balanceplatform/RegisterSCAFinalResponse.java index 564b53724..ac4c3c6e1 100644 --- a/src/main/java/com/adyen/model/balanceplatform/RegisterSCAFinalResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/RegisterSCAFinalResponse.java @@ -2,28 +2,41 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** RegisterSCAFinalResponse */ -@JsonPropertyOrder({RegisterSCAFinalResponse.JSON_PROPERTY_SUCCESS}) + +/** + * RegisterSCAFinalResponse + */ +@JsonPropertyOrder({ + RegisterSCAFinalResponse.JSON_PROPERTY_SUCCESS +}) + public class RegisterSCAFinalResponse { public static final String JSON_PROPERTY_SUCCESS = "success"; private Boolean success; - public RegisterSCAFinalResponse() {} + public RegisterSCAFinalResponse() { + } /** * Specifies if the registration was initiated successfully. @@ -38,7 +51,6 @@ public RegisterSCAFinalResponse success(Boolean success) { /** * Specifies if the registration was initiated successfully. - * * @return success Specifies if the registration was initiated successfully. */ @JsonProperty(JSON_PROPERTY_SUCCESS) @@ -58,7 +70,9 @@ public void setSuccess(Boolean success) { this.success = success; } - /** Return true if this RegisterSCAFinalResponse object is equal to o. */ + /** + * Return true if this RegisterSCAFinalResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RegisterSCAFinalResponse given an JSON string * * @param jsonString JSON string * @return An instance of RegisterSCAFinalResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * RegisterSCAFinalResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to RegisterSCAFinalResponse */ - public static RegisterSCAFinalResponse fromJson(String jsonString) - throws JsonProcessingException { + public static RegisterSCAFinalResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RegisterSCAFinalResponse.class); } - - /** - * Convert an instance of RegisterSCAFinalResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RegisterSCAFinalResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/RegisterSCARequest.java b/src/main/java/com/adyen/model/balanceplatform/RegisterSCARequest.java index 31167cc89..13321ac82 100644 --- a/src/main/java/com/adyen/model/balanceplatform/RegisterSCARequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/RegisterSCARequest.java @@ -2,27 +2,38 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.DelegatedAuthenticationData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** RegisterSCARequest */ + +/** + * RegisterSCARequest + */ @JsonPropertyOrder({ RegisterSCARequest.JSON_PROPERTY_NAME, RegisterSCARequest.JSON_PROPERTY_PAYMENT_INSTRUMENT_ID, RegisterSCARequest.JSON_PROPERTY_STRONG_CUSTOMER_AUTHENTICATION }) + public class RegisterSCARequest { public static final String JSON_PROPERTY_NAME = "name"; private String name; @@ -30,19 +41,16 @@ public class RegisterSCARequest { public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT_ID = "paymentInstrumentId"; private String paymentInstrumentId; - public static final String JSON_PROPERTY_STRONG_CUSTOMER_AUTHENTICATION = - "strongCustomerAuthentication"; + public static final String JSON_PROPERTY_STRONG_CUSTOMER_AUTHENTICATION = "strongCustomerAuthentication"; private DelegatedAuthenticationData strongCustomerAuthentication; - public RegisterSCARequest() {} + public RegisterSCARequest() { + } /** - * The name of the SCA device that you are registering. You can use it to help your users identify - * the device. If you do not specify a `name`, Adyen automatically generates one. + * The name of the SCA device that you are registering. You can use it to help your users identify the device. If you do not specify a `name`, Adyen automatically generates one. * - * @param name The name of the SCA device that you are registering. You can use it to help your - * users identify the device. If you do not specify a `name`, Adyen automatically - * generates one. + * @param name The name of the SCA device that you are registering. You can use it to help your users identify the device. If you do not specify a `name`, Adyen automatically generates one. * @return the current {@code RegisterSCARequest} instance, allowing for method chaining */ public RegisterSCARequest name(String name) { @@ -51,12 +59,8 @@ public RegisterSCARequest name(String name) { } /** - * The name of the SCA device that you are registering. You can use it to help your users identify - * the device. If you do not specify a `name`, Adyen automatically generates one. - * - * @return name The name of the SCA device that you are registering. You can use it to help your - * users identify the device. If you do not specify a `name`, Adyen automatically - * generates one. + * The name of the SCA device that you are registering. You can use it to help your users identify the device. If you do not specify a `name`, Adyen automatically generates one. + * @return name The name of the SCA device that you are registering. You can use it to help your users identify the device. If you do not specify a `name`, Adyen automatically generates one. */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -65,12 +69,9 @@ public String getName() { } /** - * The name of the SCA device that you are registering. You can use it to help your users identify - * the device. If you do not specify a `name`, Adyen automatically generates one. + * The name of the SCA device that you are registering. You can use it to help your users identify the device. If you do not specify a `name`, Adyen automatically generates one. * - * @param name The name of the SCA device that you are registering. You can use it to help your - * users identify the device. If you do not specify a `name`, Adyen automatically - * generates one. + * @param name The name of the SCA device that you are registering. You can use it to help your users identify the device. If you do not specify a `name`, Adyen automatically generates one. */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -81,8 +82,7 @@ public void setName(String name) { /** * The unique identifier of the payment instrument for which you are registering the SCA device. * - * @param paymentInstrumentId The unique identifier of the payment instrument for which you are - * registering the SCA device. + * @param paymentInstrumentId The unique identifier of the payment instrument for which you are registering the SCA device. * @return the current {@code RegisterSCARequest} instance, allowing for method chaining */ public RegisterSCARequest paymentInstrumentId(String paymentInstrumentId) { @@ -92,9 +92,7 @@ public RegisterSCARequest paymentInstrumentId(String paymentInstrumentId) { /** * The unique identifier of the payment instrument for which you are registering the SCA device. - * - * @return paymentInstrumentId The unique identifier of the payment instrument for which you are - * registering the SCA device. + * @return paymentInstrumentId The unique identifier of the payment instrument for which you are registering the SCA device. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,8 +103,7 @@ public String getPaymentInstrumentId() { /** * The unique identifier of the payment instrument for which you are registering the SCA device. * - * @param paymentInstrumentId The unique identifier of the payment instrument for which you are - * registering the SCA device. + * @param paymentInstrumentId The unique identifier of the payment instrument for which you are registering the SCA device. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,19 +114,17 @@ public void setPaymentInstrumentId(String paymentInstrumentId) { /** * strongCustomerAuthentication * - * @param strongCustomerAuthentication + * @param strongCustomerAuthentication * @return the current {@code RegisterSCARequest} instance, allowing for method chaining */ - public RegisterSCARequest strongCustomerAuthentication( - DelegatedAuthenticationData strongCustomerAuthentication) { + public RegisterSCARequest strongCustomerAuthentication(DelegatedAuthenticationData strongCustomerAuthentication) { this.strongCustomerAuthentication = strongCustomerAuthentication; return this; } /** * Get strongCustomerAuthentication - * - * @return strongCustomerAuthentication + * @return strongCustomerAuthentication */ @JsonProperty(JSON_PROPERTY_STRONG_CUSTOMER_AUTHENTICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,16 +135,17 @@ public DelegatedAuthenticationData getStrongCustomerAuthentication() { /** * strongCustomerAuthentication * - * @param strongCustomerAuthentication + * @param strongCustomerAuthentication */ @JsonProperty(JSON_PROPERTY_STRONG_CUSTOMER_AUTHENTICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStrongCustomerAuthentication( - DelegatedAuthenticationData strongCustomerAuthentication) { + public void setStrongCustomerAuthentication(DelegatedAuthenticationData strongCustomerAuthentication) { this.strongCustomerAuthentication = strongCustomerAuthentication; } - /** Return true if this RegisterSCARequest object is equal to o. */ + /** + * Return true if this RegisterSCARequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -159,10 +155,9 @@ public boolean equals(Object o) { return false; } RegisterSCARequest registerSCARequest = (RegisterSCARequest) o; - return Objects.equals(this.name, registerSCARequest.name) - && Objects.equals(this.paymentInstrumentId, registerSCARequest.paymentInstrumentId) - && Objects.equals( - this.strongCustomerAuthentication, registerSCARequest.strongCustomerAuthentication); + return Objects.equals(this.name, registerSCARequest.name) && + Objects.equals(this.paymentInstrumentId, registerSCARequest.paymentInstrumentId) && + Objects.equals(this.strongCustomerAuthentication, registerSCARequest.strongCustomerAuthentication); } @Override @@ -175,18 +170,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RegisterSCARequest {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" paymentInstrumentId: ") - .append(toIndentedString(paymentInstrumentId)) - .append("\n"); - sb.append(" strongCustomerAuthentication: ") - .append(toIndentedString(strongCustomerAuthentication)) - .append("\n"); + sb.append(" paymentInstrumentId: ").append(toIndentedString(paymentInstrumentId)).append("\n"); + sb.append(" strongCustomerAuthentication: ").append(toIndentedString(strongCustomerAuthentication)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -195,23 +187,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RegisterSCARequest given an JSON string * * @param jsonString JSON string * @return An instance of RegisterSCARequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * RegisterSCARequest + * @throws JsonProcessingException if the JSON string is invalid with respect to RegisterSCARequest */ public static RegisterSCARequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RegisterSCARequest.class); } - - /** - * Convert an instance of RegisterSCARequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RegisterSCARequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/RegisterSCAResponse.java b/src/main/java/com/adyen/model/balanceplatform/RegisterSCAResponse.java index 8f491a766..99bac7b14 100644 --- a/src/main/java/com/adyen/model/balanceplatform/RegisterSCAResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/RegisterSCAResponse.java @@ -2,28 +2,38 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** RegisterSCAResponse */ + +/** + * RegisterSCAResponse + */ @JsonPropertyOrder({ RegisterSCAResponse.JSON_PROPERTY_ID, RegisterSCAResponse.JSON_PROPERTY_PAYMENT_INSTRUMENT_ID, RegisterSCAResponse.JSON_PROPERTY_SDK_INPUT, RegisterSCAResponse.JSON_PROPERTY_SUCCESS }) + public class RegisterSCAResponse { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -37,7 +47,8 @@ public class RegisterSCAResponse { public static final String JSON_PROPERTY_SUCCESS = "success"; private Boolean success; - public RegisterSCAResponse() {} + public RegisterSCAResponse() { + } /** * The unique identifier of the SCA device you are registering. @@ -52,7 +63,6 @@ public RegisterSCAResponse id(String id) { /** * The unique identifier of the SCA device you are registering. - * * @return id The unique identifier of the SCA device you are registering. */ @JsonProperty(JSON_PROPERTY_ID) @@ -75,8 +85,7 @@ public void setId(String id) { /** * The unique identifier of the payment instrument for which you are registering the SCA device. * - * @param paymentInstrumentId The unique identifier of the payment instrument for which you are - * registering the SCA device. + * @param paymentInstrumentId The unique identifier of the payment instrument for which you are registering the SCA device. * @return the current {@code RegisterSCAResponse} instance, allowing for method chaining */ public RegisterSCAResponse paymentInstrumentId(String paymentInstrumentId) { @@ -86,9 +95,7 @@ public RegisterSCAResponse paymentInstrumentId(String paymentInstrumentId) { /** * The unique identifier of the payment instrument for which you are registering the SCA device. - * - * @return paymentInstrumentId The unique identifier of the payment instrument for which you are - * registering the SCA device. + * @return paymentInstrumentId The unique identifier of the payment instrument for which you are registering the SCA device. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,8 +106,7 @@ public String getPaymentInstrumentId() { /** * The unique identifier of the payment instrument for which you are registering the SCA device. * - * @param paymentInstrumentId The unique identifier of the payment instrument for which you are - * registering the SCA device. + * @param paymentInstrumentId The unique identifier of the payment instrument for which you are registering the SCA device. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -109,11 +115,9 @@ public void setPaymentInstrumentId(String paymentInstrumentId) { } /** - * A string that you must pass to the authentication SDK to continue with the registration - * process. + * A string that you must pass to the authentication SDK to continue with the registration process. * - * @param sdkInput A string that you must pass to the authentication SDK to continue with the - * registration process. + * @param sdkInput A string that you must pass to the authentication SDK to continue with the registration process. * @return the current {@code RegisterSCAResponse} instance, allowing for method chaining */ public RegisterSCAResponse sdkInput(String sdkInput) { @@ -122,11 +126,8 @@ public RegisterSCAResponse sdkInput(String sdkInput) { } /** - * A string that you must pass to the authentication SDK to continue with the registration - * process. - * - * @return sdkInput A string that you must pass to the authentication SDK to continue with the - * registration process. + * A string that you must pass to the authentication SDK to continue with the registration process. + * @return sdkInput A string that you must pass to the authentication SDK to continue with the registration process. */ @JsonProperty(JSON_PROPERTY_SDK_INPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,11 +136,9 @@ public String getSdkInput() { } /** - * A string that you must pass to the authentication SDK to continue with the registration - * process. + * A string that you must pass to the authentication SDK to continue with the registration process. * - * @param sdkInput A string that you must pass to the authentication SDK to continue with the - * registration process. + * @param sdkInput A string that you must pass to the authentication SDK to continue with the registration process. */ @JsonProperty(JSON_PROPERTY_SDK_INPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,7 +159,6 @@ public RegisterSCAResponse success(Boolean success) { /** * Specifies if the registration was initiated successfully. - * * @return success Specifies if the registration was initiated successfully. */ @JsonProperty(JSON_PROPERTY_SUCCESS) @@ -180,7 +178,9 @@ public void setSuccess(Boolean success) { this.success = success; } - /** Return true if this RegisterSCAResponse object is equal to o. */ + /** + * Return true if this RegisterSCAResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -190,10 +190,10 @@ public boolean equals(Object o) { return false; } RegisterSCAResponse registerSCAResponse = (RegisterSCAResponse) o; - return Objects.equals(this.id, registerSCAResponse.id) - && Objects.equals(this.paymentInstrumentId, registerSCAResponse.paymentInstrumentId) - && Objects.equals(this.sdkInput, registerSCAResponse.sdkInput) - && Objects.equals(this.success, registerSCAResponse.success); + return Objects.equals(this.id, registerSCAResponse.id) && + Objects.equals(this.paymentInstrumentId, registerSCAResponse.paymentInstrumentId) && + Objects.equals(this.sdkInput, registerSCAResponse.sdkInput) && + Objects.equals(this.success, registerSCAResponse.success); } @Override @@ -206,9 +206,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RegisterSCAResponse {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" paymentInstrumentId: ") - .append(toIndentedString(paymentInstrumentId)) - .append("\n"); + sb.append(" paymentInstrumentId: ").append(toIndentedString(paymentInstrumentId)).append("\n"); sb.append(" sdkInput: ").append(toIndentedString(sdkInput)).append("\n"); sb.append(" success: ").append(toIndentedString(success)).append("\n"); sb.append("}"); @@ -216,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -225,23 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RegisterSCAResponse given an JSON string * * @param jsonString JSON string * @return An instance of RegisterSCAResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * RegisterSCAResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to RegisterSCAResponse */ public static RegisterSCAResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RegisterSCAResponse.class); } - - /** - * Convert an instance of RegisterSCAResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RegisterSCAResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/RemediatingAction.java b/src/main/java/com/adyen/model/balanceplatform/RemediatingAction.java index 70aba6fbc..e04142fa3 100644 --- a/src/main/java/com/adyen/model/balanceplatform/RemediatingAction.java +++ b/src/main/java/com/adyen/model/balanceplatform/RemediatingAction.java @@ -2,23 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** RemediatingAction */ -@JsonPropertyOrder({RemediatingAction.JSON_PROPERTY_CODE, RemediatingAction.JSON_PROPERTY_MESSAGE}) + +/** + * RemediatingAction + */ +@JsonPropertyOrder({ + RemediatingAction.JSON_PROPERTY_CODE, + RemediatingAction.JSON_PROPERTY_MESSAGE +}) + public class RemediatingAction { public static final String JSON_PROPERTY_CODE = "code"; private String code; @@ -26,7 +39,8 @@ public class RemediatingAction { public static final String JSON_PROPERTY_MESSAGE = "message"; private String message; - public RemediatingAction() {} + public RemediatingAction() { + } /** * The remediating action code. @@ -41,7 +55,6 @@ public RemediatingAction code(String code) { /** * The remediating action code. - * * @return code The remediating action code. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -74,7 +87,6 @@ public RemediatingAction message(String message) { /** * A description of how you can resolve the verification error. - * * @return message A description of how you can resolve the verification error. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -94,7 +106,9 @@ public void setMessage(String message) { this.message = message; } - /** Return true if this RemediatingAction object is equal to o. */ + /** + * Return true if this RemediatingAction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -104,8 +118,8 @@ public boolean equals(Object o) { return false; } RemediatingAction remediatingAction = (RemediatingAction) o; - return Objects.equals(this.code, remediatingAction.code) - && Objects.equals(this.message, remediatingAction.message); + return Objects.equals(this.code, remediatingAction.code) && + Objects.equals(this.message, remediatingAction.message); } @Override @@ -124,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RemediatingAction given an JSON string * * @param jsonString JSON string @@ -143,12 +158,11 @@ private String toIndentedString(Object o) { public static RemediatingAction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RemediatingAction.class); } - - /** - * Convert an instance of RemediatingAction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RemediatingAction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/Repayment.java b/src/main/java/com/adyen/model/balanceplatform/Repayment.java index aa2f906c7..c41f9e237 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Repayment.java +++ b/src/main/java/com/adyen/model/balanceplatform/Repayment.java @@ -2,27 +2,39 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.RepaymentTerm; +import com.adyen.model.balanceplatform.ThresholdRepayment; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Repayment */ + +/** + * Repayment + */ @JsonPropertyOrder({ Repayment.JSON_PROPERTY_BASIS_POINTS, Repayment.JSON_PROPERTY_TERM, Repayment.JSON_PROPERTY_THRESHOLD }) + public class Repayment { public static final String JSON_PROPERTY_BASIS_POINTS = "basisPoints"; private Integer basisPoints; @@ -33,14 +45,13 @@ public class Repayment { public static final String JSON_PROPERTY_THRESHOLD = "threshold"; private ThresholdRepayment threshold; - public Repayment() {} + public Repayment() { + } /** - * The repayment that is deducted daily from incoming net volume, in [basis - * points](https://www.investopedia.com/terms/b/basispoint.asp). + * The repayment that is deducted daily from incoming net volume, in [basis points](https://www.investopedia.com/terms/b/basispoint.asp). * - * @param basisPoints The repayment that is deducted daily from incoming net volume, in [basis - * points](https://www.investopedia.com/terms/b/basispoint.asp). + * @param basisPoints The repayment that is deducted daily from incoming net volume, in [basis points](https://www.investopedia.com/terms/b/basispoint.asp). * @return the current {@code Repayment} instance, allowing for method chaining */ public Repayment basisPoints(Integer basisPoints) { @@ -49,11 +60,8 @@ public Repayment basisPoints(Integer basisPoints) { } /** - * The repayment that is deducted daily from incoming net volume, in [basis - * points](https://www.investopedia.com/terms/b/basispoint.asp). - * - * @return basisPoints The repayment that is deducted daily from incoming net volume, in [basis - * points](https://www.investopedia.com/terms/b/basispoint.asp). + * The repayment that is deducted daily from incoming net volume, in [basis points](https://www.investopedia.com/terms/b/basispoint.asp). + * @return basisPoints The repayment that is deducted daily from incoming net volume, in [basis points](https://www.investopedia.com/terms/b/basispoint.asp). */ @JsonProperty(JSON_PROPERTY_BASIS_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -62,11 +70,9 @@ public Integer getBasisPoints() { } /** - * The repayment that is deducted daily from incoming net volume, in [basis - * points](https://www.investopedia.com/terms/b/basispoint.asp). + * The repayment that is deducted daily from incoming net volume, in [basis points](https://www.investopedia.com/terms/b/basispoint.asp). * - * @param basisPoints The repayment that is deducted daily from incoming net volume, in [basis - * points](https://www.investopedia.com/terms/b/basispoint.asp). + * @param basisPoints The repayment that is deducted daily from incoming net volume, in [basis points](https://www.investopedia.com/terms/b/basispoint.asp). */ @JsonProperty(JSON_PROPERTY_BASIS_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -77,7 +83,7 @@ public void setBasisPoints(Integer basisPoints) { /** * term * - * @param term + * @param term * @return the current {@code Repayment} instance, allowing for method chaining */ public Repayment term(RepaymentTerm term) { @@ -87,8 +93,7 @@ public Repayment term(RepaymentTerm term) { /** * Get term - * - * @return term + * @return term */ @JsonProperty(JSON_PROPERTY_TERM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,7 +104,7 @@ public RepaymentTerm getTerm() { /** * term * - * @param term + * @param term */ @JsonProperty(JSON_PROPERTY_TERM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,7 +115,7 @@ public void setTerm(RepaymentTerm term) { /** * threshold * - * @param threshold + * @param threshold * @return the current {@code Repayment} instance, allowing for method chaining */ public Repayment threshold(ThresholdRepayment threshold) { @@ -120,8 +125,7 @@ public Repayment threshold(ThresholdRepayment threshold) { /** * Get threshold - * - * @return threshold + * @return threshold */ @JsonProperty(JSON_PROPERTY_THRESHOLD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,7 +136,7 @@ public ThresholdRepayment getThreshold() { /** * threshold * - * @param threshold + * @param threshold */ @JsonProperty(JSON_PROPERTY_THRESHOLD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,7 +144,9 @@ public void setThreshold(ThresholdRepayment threshold) { this.threshold = threshold; } - /** Return true if this Repayment object is equal to o. */ + /** + * Return true if this Repayment object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -150,9 +156,9 @@ public boolean equals(Object o) { return false; } Repayment repayment = (Repayment) o; - return Objects.equals(this.basisPoints, repayment.basisPoints) - && Objects.equals(this.term, repayment.term) - && Objects.equals(this.threshold, repayment.threshold); + return Objects.equals(this.basisPoints, repayment.basisPoints) && + Objects.equals(this.term, repayment.term) && + Objects.equals(this.threshold, repayment.threshold); } @Override @@ -172,7 +178,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -181,7 +188,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Repayment given an JSON string * * @param jsonString JSON string @@ -191,12 +198,11 @@ private String toIndentedString(Object o) { public static Repayment fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Repayment.class); } - - /** - * Convert an instance of Repayment to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Repayment to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/RepaymentTerm.java b/src/main/java/com/adyen/model/balanceplatform/RepaymentTerm.java index 66ff77e61..1c538aea0 100644 --- a/src/main/java/com/adyen/model/balanceplatform/RepaymentTerm.java +++ b/src/main/java/com/adyen/model/balanceplatform/RepaymentTerm.java @@ -2,26 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** RepaymentTerm */ + +/** + * RepaymentTerm + */ @JsonPropertyOrder({ RepaymentTerm.JSON_PROPERTY_ESTIMATED_DAYS, RepaymentTerm.JSON_PROPERTY_MAXIMUM_DAYS }) + public class RepaymentTerm { public static final String JSON_PROPERTY_ESTIMATED_DAYS = "estimatedDays"; private Integer estimatedDays; @@ -29,7 +39,8 @@ public class RepaymentTerm { public static final String JSON_PROPERTY_MAXIMUM_DAYS = "maximumDays"; private Integer maximumDays; - public RepaymentTerm() {} + public RepaymentTerm() { + } /** * The estimated term for repaying the grant, in days. @@ -44,7 +55,6 @@ public RepaymentTerm estimatedDays(Integer estimatedDays) { /** * The estimated term for repaying the grant, in days. - * * @return estimatedDays The estimated term for repaying the grant, in days. */ @JsonProperty(JSON_PROPERTY_ESTIMATED_DAYS) @@ -65,11 +75,9 @@ public void setEstimatedDays(Integer estimatedDays) { } /** - * The maximum term for repaying the grant, in days. Only applies when `contractType` is - * **loan**. + * The maximum term for repaying the grant, in days. Only applies when `contractType` is **loan**. * - * @param maximumDays The maximum term for repaying the grant, in days. Only applies when - * `contractType` is **loan**. + * @param maximumDays The maximum term for repaying the grant, in days. Only applies when `contractType` is **loan**. * @return the current {@code RepaymentTerm} instance, allowing for method chaining */ public RepaymentTerm maximumDays(Integer maximumDays) { @@ -78,11 +86,8 @@ public RepaymentTerm maximumDays(Integer maximumDays) { } /** - * The maximum term for repaying the grant, in days. Only applies when `contractType` is - * **loan**. - * - * @return maximumDays The maximum term for repaying the grant, in days. Only applies when - * `contractType` is **loan**. + * The maximum term for repaying the grant, in days. Only applies when `contractType` is **loan**. + * @return maximumDays The maximum term for repaying the grant, in days. Only applies when `contractType` is **loan**. */ @JsonProperty(JSON_PROPERTY_MAXIMUM_DAYS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -91,11 +96,9 @@ public Integer getMaximumDays() { } /** - * The maximum term for repaying the grant, in days. Only applies when `contractType` is - * **loan**. + * The maximum term for repaying the grant, in days. Only applies when `contractType` is **loan**. * - * @param maximumDays The maximum term for repaying the grant, in days. Only applies when - * `contractType` is **loan**. + * @param maximumDays The maximum term for repaying the grant, in days. Only applies when `contractType` is **loan**. */ @JsonProperty(JSON_PROPERTY_MAXIMUM_DAYS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -103,7 +106,9 @@ public void setMaximumDays(Integer maximumDays) { this.maximumDays = maximumDays; } - /** Return true if this RepaymentTerm object is equal to o. */ + /** + * Return true if this RepaymentTerm object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -113,8 +118,8 @@ public boolean equals(Object o) { return false; } RepaymentTerm repaymentTerm = (RepaymentTerm) o; - return Objects.equals(this.estimatedDays, repaymentTerm.estimatedDays) - && Objects.equals(this.maximumDays, repaymentTerm.maximumDays); + return Objects.equals(this.estimatedDays, repaymentTerm.estimatedDays) && + Objects.equals(this.maximumDays, repaymentTerm.maximumDays); } @Override @@ -133,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -142,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RepaymentTerm given an JSON string * * @param jsonString JSON string @@ -152,12 +158,11 @@ private String toIndentedString(Object o) { public static RepaymentTerm fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RepaymentTerm.class); } - - /** - * Convert an instance of RepaymentTerm to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RepaymentTerm to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/RestServiceError.java b/src/main/java/com/adyen/model/balanceplatform/RestServiceError.java index 02871dfeb..d0d60bc5e 100644 --- a/src/main/java/com/adyen/model/balanceplatform/RestServiceError.java +++ b/src/main/java/com/adyen/model/balanceplatform/RestServiceError.java @@ -2,24 +2,34 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.InvalidField; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** RestServiceError */ +/** + * RestServiceError + */ @JsonPropertyOrder({ RestServiceError.JSON_PROPERTY_DETAIL, RestServiceError.JSON_PROPERTY_ERROR_CODE, @@ -31,6 +41,7 @@ RestServiceError.JSON_PROPERTY_TITLE, RestServiceError.JSON_PROPERTY_TYPE }) + public class RestServiceError { public static final String JSON_PROPERTY_DETAIL = "detail"; private String detail; @@ -59,7 +70,8 @@ public class RestServiceError { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public RestServiceError() {} + public RestServiceError() { + } /** * A human-readable explanation specific to this occurrence of the problem. @@ -74,7 +86,6 @@ public RestServiceError detail(String detail) { /** * A human-readable explanation specific to this occurrence of the problem. - * * @return detail A human-readable explanation specific to this occurrence of the problem. */ @JsonProperty(JSON_PROPERTY_DETAIL) @@ -107,7 +118,6 @@ public RestServiceError errorCode(String errorCode) { /** * A code that identifies the problem type. - * * @return errorCode A code that identifies the problem type. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -140,7 +150,6 @@ public RestServiceError instance(String instance) { /** * A unique URI that identifies the specific occurrence of the problem. - * * @return instance A unique URI that identifies the specific occurrence of the problem. */ @JsonProperty(JSON_PROPERTY_INSTANCE) @@ -181,7 +190,6 @@ public RestServiceError addInvalidFieldsItem(InvalidField invalidFieldsItem) { /** * Detailed explanation of each validation error, when applicable. - * * @return invalidFields Detailed explanation of each validation error, when applicable. */ @JsonProperty(JSON_PROPERTY_INVALID_FIELDS) @@ -204,8 +212,7 @@ public void setInvalidFields(List invalidFields) { /** * A unique reference for the request, essentially the same as `pspReference`. * - * @param requestId A unique reference for the request, essentially the same as - * `pspReference`. + * @param requestId A unique reference for the request, essentially the same as `pspReference`. * @return the current {@code RestServiceError} instance, allowing for method chaining */ public RestServiceError requestId(String requestId) { @@ -215,9 +222,7 @@ public RestServiceError requestId(String requestId) { /** * A unique reference for the request, essentially the same as `pspReference`. - * - * @return requestId A unique reference for the request, essentially the same as - * `pspReference`. + * @return requestId A unique reference for the request, essentially the same as `pspReference`. */ @JsonProperty(JSON_PROPERTY_REQUEST_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -228,8 +233,7 @@ public String getRequestId() { /** * A unique reference for the request, essentially the same as `pspReference`. * - * @param requestId A unique reference for the request, essentially the same as - * `pspReference`. + * @param requestId A unique reference for the request, essentially the same as `pspReference`. */ @JsonProperty(JSON_PROPERTY_REQUEST_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,7 +244,7 @@ public void setRequestId(String requestId) { /** * response * - * @param response + * @param response * @return the current {@code RestServiceError} instance, allowing for method chaining */ public RestServiceError response(Object response) { @@ -250,8 +254,7 @@ public RestServiceError response(Object response) { /** * Get response - * - * @return response + * @return response */ @JsonProperty(JSON_PROPERTY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -262,7 +265,7 @@ public Object getResponse() { /** * response * - * @param response + * @param response */ @JsonProperty(JSON_PROPERTY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -283,7 +286,6 @@ public RestServiceError status(Integer status) { /** * The HTTP status code. - * * @return status The HTTP status code. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -316,7 +318,6 @@ public RestServiceError title(String title) { /** * A short, human-readable summary of the problem type. - * * @return title A short, human-readable summary of the problem type. */ @JsonProperty(JSON_PROPERTY_TITLE) @@ -337,11 +338,9 @@ public void setTitle(String title) { } /** - * A URI that identifies the problem type, pointing to human-readable documentation on this - * problem type. + * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. * - * @param type A URI that identifies the problem type, pointing to human-readable documentation on - * this problem type. + * @param type A URI that identifies the problem type, pointing to human-readable documentation on this problem type. * @return the current {@code RestServiceError} instance, allowing for method chaining */ public RestServiceError type(String type) { @@ -350,11 +349,8 @@ public RestServiceError type(String type) { } /** - * A URI that identifies the problem type, pointing to human-readable documentation on this - * problem type. - * - * @return type A URI that identifies the problem type, pointing to human-readable documentation - * on this problem type. + * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. + * @return type A URI that identifies the problem type, pointing to human-readable documentation on this problem type. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -363,11 +359,9 @@ public String getType() { } /** - * A URI that identifies the problem type, pointing to human-readable documentation on this - * problem type. + * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. * - * @param type A URI that identifies the problem type, pointing to human-readable documentation on - * this problem type. + * @param type A URI that identifies the problem type, pointing to human-readable documentation on this problem type. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -375,7 +369,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this RestServiceError object is equal to o. */ + /** + * Return true if this RestServiceError object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -385,21 +381,20 @@ public boolean equals(Object o) { return false; } RestServiceError restServiceError = (RestServiceError) o; - return Objects.equals(this.detail, restServiceError.detail) - && Objects.equals(this.errorCode, restServiceError.errorCode) - && Objects.equals(this.instance, restServiceError.instance) - && Objects.equals(this.invalidFields, restServiceError.invalidFields) - && Objects.equals(this.requestId, restServiceError.requestId) - && Objects.equals(this.response, restServiceError.response) - && Objects.equals(this.status, restServiceError.status) - && Objects.equals(this.title, restServiceError.title) - && Objects.equals(this.type, restServiceError.type); + return Objects.equals(this.detail, restServiceError.detail) && + Objects.equals(this.errorCode, restServiceError.errorCode) && + Objects.equals(this.instance, restServiceError.instance) && + Objects.equals(this.invalidFields, restServiceError.invalidFields) && + Objects.equals(this.requestId, restServiceError.requestId) && + Objects.equals(this.response, restServiceError.response) && + Objects.equals(this.status, restServiceError.status) && + Objects.equals(this.title, restServiceError.title) && + Objects.equals(this.type, restServiceError.type); } @Override public int hashCode() { - return Objects.hash( - detail, errorCode, instance, invalidFields, requestId, response, status, title, type); + return Objects.hash(detail, errorCode, instance, invalidFields, requestId, response, status, title, type); } @Override @@ -420,7 +415,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -429,7 +425,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RestServiceError given an JSON string * * @param jsonString JSON string @@ -439,12 +435,11 @@ private String toIndentedString(Object o) { public static RestServiceError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RestServiceError.class); } - - /** - * Convert an instance of RestServiceError to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RestServiceError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/RevealPinRequest.java b/src/main/java/com/adyen/model/balanceplatform/RevealPinRequest.java index ea1075b73..e73fa576b 100644 --- a/src/main/java/com/adyen/model/balanceplatform/RevealPinRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/RevealPinRequest.java @@ -2,26 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** RevealPinRequest */ + +/** + * RevealPinRequest + */ @JsonPropertyOrder({ RevealPinRequest.JSON_PROPERTY_ENCRYPTED_KEY, RevealPinRequest.JSON_PROPERTY_PAYMENT_INSTRUMENT_ID }) + public class RevealPinRequest { public static final String JSON_PROPERTY_ENCRYPTED_KEY = "encryptedKey"; private String encryptedKey; @@ -29,16 +39,13 @@ public class RevealPinRequest { public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT_ID = "paymentInstrumentId"; private String paymentInstrumentId; - public RevealPinRequest() {} + public RevealPinRequest() { + } /** - * The symmetric session key that you encrypted with the [public - * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received - * from Adyen. + * The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. * - * @param encryptedKey The symmetric session key that you encrypted with the [public - * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received - * from Adyen. + * @param encryptedKey The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. * @return the current {@code RevealPinRequest} instance, allowing for method chaining */ public RevealPinRequest encryptedKey(String encryptedKey) { @@ -47,13 +54,8 @@ public RevealPinRequest encryptedKey(String encryptedKey) { } /** - * The symmetric session key that you encrypted with the [public - * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received - * from Adyen. - * - * @return encryptedKey The symmetric session key that you encrypted with the [public - * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received - * from Adyen. + * The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. + * @return encryptedKey The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -62,13 +64,9 @@ public String getEncryptedKey() { } /** - * The symmetric session key that you encrypted with the [public - * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received - * from Adyen. + * The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. * - * @param encryptedKey The symmetric session key that you encrypted with the [public - * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received - * from Adyen. + * @param encryptedKey The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -77,11 +75,9 @@ public void setEncryptedKey(String encryptedKey) { } /** - * The unique identifier of the payment instrument, which is the card for which you are managing - * the PIN. + * The unique identifier of the payment instrument, which is the card for which you are managing the PIN. * - * @param paymentInstrumentId The unique identifier of the payment instrument, which is the card - * for which you are managing the PIN. + * @param paymentInstrumentId The unique identifier of the payment instrument, which is the card for which you are managing the PIN. * @return the current {@code RevealPinRequest} instance, allowing for method chaining */ public RevealPinRequest paymentInstrumentId(String paymentInstrumentId) { @@ -90,11 +86,8 @@ public RevealPinRequest paymentInstrumentId(String paymentInstrumentId) { } /** - * The unique identifier of the payment instrument, which is the card for which you are managing - * the PIN. - * - * @return paymentInstrumentId The unique identifier of the payment instrument, which is the card - * for which you are managing the PIN. + * The unique identifier of the payment instrument, which is the card for which you are managing the PIN. + * @return paymentInstrumentId The unique identifier of the payment instrument, which is the card for which you are managing the PIN. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -103,11 +96,9 @@ public String getPaymentInstrumentId() { } /** - * The unique identifier of the payment instrument, which is the card for which you are managing - * the PIN. + * The unique identifier of the payment instrument, which is the card for which you are managing the PIN. * - * @param paymentInstrumentId The unique identifier of the payment instrument, which is the card - * for which you are managing the PIN. + * @param paymentInstrumentId The unique identifier of the payment instrument, which is the card for which you are managing the PIN. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,7 +106,9 @@ public void setPaymentInstrumentId(String paymentInstrumentId) { this.paymentInstrumentId = paymentInstrumentId; } - /** Return true if this RevealPinRequest object is equal to o. */ + /** + * Return true if this RevealPinRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -125,8 +118,8 @@ public boolean equals(Object o) { return false; } RevealPinRequest revealPinRequest = (RevealPinRequest) o; - return Objects.equals(this.encryptedKey, revealPinRequest.encryptedKey) - && Objects.equals(this.paymentInstrumentId, revealPinRequest.paymentInstrumentId); + return Objects.equals(this.encryptedKey, revealPinRequest.encryptedKey) && + Objects.equals(this.paymentInstrumentId, revealPinRequest.paymentInstrumentId); } @Override @@ -139,15 +132,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RevealPinRequest {\n"); sb.append(" encryptedKey: ").append(toIndentedString(encryptedKey)).append("\n"); - sb.append(" paymentInstrumentId: ") - .append(toIndentedString(paymentInstrumentId)) - .append("\n"); + sb.append(" paymentInstrumentId: ").append(toIndentedString(paymentInstrumentId)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -156,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RevealPinRequest given an JSON string * * @param jsonString JSON string @@ -166,12 +158,11 @@ private String toIndentedString(Object o) { public static RevealPinRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RevealPinRequest.class); } - - /** - * Convert an instance of RevealPinRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RevealPinRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/RevealPinResponse.java b/src/main/java/com/adyen/model/balanceplatform/RevealPinResponse.java index 395dcab77..7526dc2f1 100644 --- a/src/main/java/com/adyen/model/balanceplatform/RevealPinResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/RevealPinResponse.java @@ -2,26 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** RevealPinResponse */ + +/** + * RevealPinResponse + */ @JsonPropertyOrder({ RevealPinResponse.JSON_PROPERTY_ENCRYPTED_PIN_BLOCK, RevealPinResponse.JSON_PROPERTY_TOKEN }) + public class RevealPinResponse { public static final String JSON_PROPERTY_ENCRYPTED_PIN_BLOCK = "encryptedPinBlock"; private String encryptedPinBlock; @@ -29,13 +39,13 @@ public class RevealPinResponse { public static final String JSON_PROPERTY_TOKEN = "token"; private String token; - public RevealPinResponse() {} + public RevealPinResponse() { + } /** * The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block). * - * @param encryptedPinBlock The encrypted [PIN - * block](https://www.pcisecuritystandards.org/glossary/pin-block). + * @param encryptedPinBlock The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block). * @return the current {@code RevealPinResponse} instance, allowing for method chaining */ public RevealPinResponse encryptedPinBlock(String encryptedPinBlock) { @@ -45,9 +55,7 @@ public RevealPinResponse encryptedPinBlock(String encryptedPinBlock) { /** * The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block). - * - * @return encryptedPinBlock The encrypted [PIN - * block](https://www.pcisecuritystandards.org/glossary/pin-block). + * @return encryptedPinBlock The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block). */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_PIN_BLOCK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,8 +66,7 @@ public String getEncryptedPinBlock() { /** * The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block). * - * @param encryptedPinBlock The encrypted [PIN - * block](https://www.pcisecuritystandards.org/glossary/pin-block). + * @param encryptedPinBlock The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block). */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_PIN_BLOCK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,7 +87,6 @@ public RevealPinResponse token(String token) { /** * The 16-digit token that you need to extract the `encryptedPinBlock`. - * * @return token The 16-digit token that you need to extract the `encryptedPinBlock`. */ @JsonProperty(JSON_PROPERTY_TOKEN) @@ -100,7 +106,9 @@ public void setToken(String token) { this.token = token; } - /** Return true if this RevealPinResponse object is equal to o. */ + /** + * Return true if this RevealPinResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -110,8 +118,8 @@ public boolean equals(Object o) { return false; } RevealPinResponse revealPinResponse = (RevealPinResponse) o; - return Objects.equals(this.encryptedPinBlock, revealPinResponse.encryptedPinBlock) - && Objects.equals(this.token, revealPinResponse.token); + return Objects.equals(this.encryptedPinBlock, revealPinResponse.encryptedPinBlock) && + Objects.equals(this.token, revealPinResponse.token); } @Override @@ -130,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -139,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RevealPinResponse given an JSON string * * @param jsonString JSON string @@ -149,12 +158,11 @@ private String toIndentedString(Object o) { public static RevealPinResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RevealPinResponse.class); } - - /** - * Convert an instance of RevealPinResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RevealPinResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/RiskScores.java b/src/main/java/com/adyen/model/balanceplatform/RiskScores.java index 6e1742123..8df23219c 100644 --- a/src/main/java/com/adyen/model/balanceplatform/RiskScores.java +++ b/src/main/java/com/adyen/model/balanceplatform/RiskScores.java @@ -2,23 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** RiskScores */ -@JsonPropertyOrder({RiskScores.JSON_PROPERTY_MASTERCARD, RiskScores.JSON_PROPERTY_VISA}) + +/** + * RiskScores + */ +@JsonPropertyOrder({ + RiskScores.JSON_PROPERTY_MASTERCARD, + RiskScores.JSON_PROPERTY_VISA +}) + public class RiskScores { public static final String JSON_PROPERTY_MASTERCARD = "mastercard"; private Integer mastercard; @@ -26,14 +39,13 @@ public class RiskScores { public static final String JSON_PROPERTY_VISA = "visa"; private Integer visa; - public RiskScores() {} + public RiskScores() { + } /** - * Transaction risk score provided by Mastercard. Values provided by Mastercard range between 0 - * (lowest risk) to 998 (highest risk). + * Transaction risk score provided by Mastercard. Values provided by Mastercard range between 0 (lowest risk) to 998 (highest risk). * - * @param mastercard Transaction risk score provided by Mastercard. Values provided by Mastercard - * range between 0 (lowest risk) to 998 (highest risk). + * @param mastercard Transaction risk score provided by Mastercard. Values provided by Mastercard range between 0 (lowest risk) to 998 (highest risk). * @return the current {@code RiskScores} instance, allowing for method chaining */ public RiskScores mastercard(Integer mastercard) { @@ -42,11 +54,8 @@ public RiskScores mastercard(Integer mastercard) { } /** - * Transaction risk score provided by Mastercard. Values provided by Mastercard range between 0 - * (lowest risk) to 998 (highest risk). - * - * @return mastercard Transaction risk score provided by Mastercard. Values provided by Mastercard - * range between 0 (lowest risk) to 998 (highest risk). + * Transaction risk score provided by Mastercard. Values provided by Mastercard range between 0 (lowest risk) to 998 (highest risk). + * @return mastercard Transaction risk score provided by Mastercard. Values provided by Mastercard range between 0 (lowest risk) to 998 (highest risk). */ @JsonProperty(JSON_PROPERTY_MASTERCARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -55,11 +64,9 @@ public Integer getMastercard() { } /** - * Transaction risk score provided by Mastercard. Values provided by Mastercard range between 0 - * (lowest risk) to 998 (highest risk). + * Transaction risk score provided by Mastercard. Values provided by Mastercard range between 0 (lowest risk) to 998 (highest risk). * - * @param mastercard Transaction risk score provided by Mastercard. Values provided by Mastercard - * range between 0 (lowest risk) to 998 (highest risk). + * @param mastercard Transaction risk score provided by Mastercard. Values provided by Mastercard range between 0 (lowest risk) to 998 (highest risk). */ @JsonProperty(JSON_PROPERTY_MASTERCARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,11 +75,9 @@ public void setMastercard(Integer mastercard) { } /** - * Transaction risk score provided by Visa. Values provided by Visa range between 01 (lowest risk) - * to 99 (highest risk). + * Transaction risk score provided by Visa. Values provided by Visa range between 01 (lowest risk) to 99 (highest risk). * - * @param visa Transaction risk score provided by Visa. Values provided by Visa range between 01 - * (lowest risk) to 99 (highest risk). + * @param visa Transaction risk score provided by Visa. Values provided by Visa range between 01 (lowest risk) to 99 (highest risk). * @return the current {@code RiskScores} instance, allowing for method chaining */ public RiskScores visa(Integer visa) { @@ -81,11 +86,8 @@ public RiskScores visa(Integer visa) { } /** - * Transaction risk score provided by Visa. Values provided by Visa range between 01 (lowest risk) - * to 99 (highest risk). - * - * @return visa Transaction risk score provided by Visa. Values provided by Visa range between 01 - * (lowest risk) to 99 (highest risk). + * Transaction risk score provided by Visa. Values provided by Visa range between 01 (lowest risk) to 99 (highest risk). + * @return visa Transaction risk score provided by Visa. Values provided by Visa range between 01 (lowest risk) to 99 (highest risk). */ @JsonProperty(JSON_PROPERTY_VISA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,11 +96,9 @@ public Integer getVisa() { } /** - * Transaction risk score provided by Visa. Values provided by Visa range between 01 (lowest risk) - * to 99 (highest risk). + * Transaction risk score provided by Visa. Values provided by Visa range between 01 (lowest risk) to 99 (highest risk). * - * @param visa Transaction risk score provided by Visa. Values provided by Visa range between 01 - * (lowest risk) to 99 (highest risk). + * @param visa Transaction risk score provided by Visa. Values provided by Visa range between 01 (lowest risk) to 99 (highest risk). */ @JsonProperty(JSON_PROPERTY_VISA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,7 +106,9 @@ public void setVisa(Integer visa) { this.visa = visa; } - /** Return true if this RiskScores object is equal to o. */ + /** + * Return true if this RiskScores object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -116,8 +118,8 @@ public boolean equals(Object o) { return false; } RiskScores riskScores = (RiskScores) o; - return Objects.equals(this.mastercard, riskScores.mastercard) - && Objects.equals(this.visa, riskScores.visa); + return Objects.equals(this.mastercard, riskScores.mastercard) && + Objects.equals(this.visa, riskScores.visa); } @Override @@ -136,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RiskScores given an JSON string * * @param jsonString JSON string @@ -155,12 +158,11 @@ private String toIndentedString(Object o) { public static RiskScores fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RiskScores.class); } - - /** - * Convert an instance of RiskScores to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RiskScores to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/RiskScoresRestriction.java b/src/main/java/com/adyen/model/balanceplatform/RiskScoresRestriction.java index 46afd17bb..aa63f5351 100644 --- a/src/main/java/com/adyen/model/balanceplatform/RiskScoresRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/RiskScoresRestriction.java @@ -2,26 +2,37 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.RiskScores; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** RiskScoresRestriction */ + +/** + * RiskScoresRestriction + */ @JsonPropertyOrder({ RiskScoresRestriction.JSON_PROPERTY_OPERATION, RiskScoresRestriction.JSON_PROPERTY_VALUE }) + public class RiskScoresRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -29,7 +40,8 @@ public class RiskScoresRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private RiskScores value; - public RiskScoresRestriction() {} + public RiskScoresRestriction() { + } /** * Defines how the condition must be evaluated. @@ -44,7 +56,6 @@ public RiskScoresRestriction operation(String operation) { /** * Defines how the condition must be evaluated. - * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -67,7 +78,7 @@ public void setOperation(String operation) { /** * value * - * @param value + * @param value * @return the current {@code RiskScoresRestriction} instance, allowing for method chaining */ public RiskScoresRestriction value(RiskScores value) { @@ -77,8 +88,7 @@ public RiskScoresRestriction value(RiskScores value) { /** * Get value - * - * @return value + * @return value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -89,7 +99,7 @@ public RiskScores getValue() { /** * value * - * @param value + * @param value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,7 +107,9 @@ public void setValue(RiskScores value) { this.value = value; } - /** Return true if this RiskScoresRestriction object is equal to o. */ + /** + * Return true if this RiskScoresRestriction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -107,8 +119,8 @@ public boolean equals(Object o) { return false; } RiskScoresRestriction riskScoresRestriction = (RiskScoresRestriction) o; - return Objects.equals(this.operation, riskScoresRestriction.operation) - && Objects.equals(this.value, riskScoresRestriction.value); + return Objects.equals(this.operation, riskScoresRestriction.operation) && + Objects.equals(this.value, riskScoresRestriction.value); } @Override @@ -127,7 +139,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,23 +149,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RiskScoresRestriction given an JSON string * * @param jsonString JSON string * @return An instance of RiskScoresRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * RiskScoresRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to RiskScoresRestriction */ public static RiskScoresRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RiskScoresRestriction.class); } - - /** - * Convert an instance of RiskScoresRestriction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RiskScoresRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/SELocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/SELocalAccountIdentification.java index a316850d9..9fd9b2ee0 100644 --- a/src/main/java/com/adyen/model/balanceplatform/SELocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/SELocalAccountIdentification.java @@ -2,31 +2,37 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** SELocalAccountIdentification */ + +/** + * SELocalAccountIdentification + */ @JsonPropertyOrder({ SELocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, SELocalAccountIdentification.JSON_PROPERTY_CLEARING_NUMBER, SELocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class SELocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -34,8 +40,11 @@ public class SELocalAccountIdentification { public static final String JSON_PROPERTY_CLEARING_NUMBER = "clearingNumber"; private String clearingNumber; - /** **seLocal** */ + /** + * **seLocal** + */ public enum TypeEnum { + SELOCAL(String.valueOf("seLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -43,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -76,16 +81,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public SELocalAccountIdentification() {} + public SELocalAccountIdentification() { + } /** - * The 7- to 10-digit bank account number - * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, - * separators, or whitespace. + * The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. * - * @param accountNumber The 7- to 10-digit bank account number - * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, - * separators, or whitespace. + * @param accountNumber The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. * @return the current {@code SELocalAccountIdentification} instance, allowing for method chaining */ public SELocalAccountIdentification accountNumber(String accountNumber) { @@ -94,13 +96,8 @@ public SELocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 7- to 10-digit bank account number - * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, - * separators, or whitespace. - * - * @return accountNumber The 7- to 10-digit bank account number - * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, - * separators, or whitespace. + * The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. + * @return accountNumber The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -109,13 +106,9 @@ public String getAccountNumber() { } /** - * The 7- to 10-digit bank account number - * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, - * separators, or whitespace. + * The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. * - * @param accountNumber The 7- to 10-digit bank account number - * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, - * separators, or whitespace. + * @param accountNumber The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,13 +117,9 @@ public void setAccountNumber(String accountNumber) { } /** - * The 4- to 5-digit clearing number - * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or - * whitespace. + * The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. * - * @param clearingNumber The 4- to 5-digit clearing number - * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or - * whitespace. + * @param clearingNumber The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. * @return the current {@code SELocalAccountIdentification} instance, allowing for method chaining */ public SELocalAccountIdentification clearingNumber(String clearingNumber) { @@ -139,13 +128,8 @@ public SELocalAccountIdentification clearingNumber(String clearingNumber) { } /** - * The 4- to 5-digit clearing number - * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or - * whitespace. - * - * @return clearingNumber The 4- to 5-digit clearing number - * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or - * whitespace. + * The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. + * @return clearingNumber The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_CLEARING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -154,13 +138,9 @@ public String getClearingNumber() { } /** - * The 4- to 5-digit clearing number - * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or - * whitespace. + * The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. * - * @param clearingNumber The 4- to 5-digit clearing number - * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or - * whitespace. + * @param clearingNumber The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_CLEARING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,7 +161,6 @@ public SELocalAccountIdentification type(TypeEnum type) { /** * **seLocal** - * * @return type **seLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -201,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this SELocalAccountIdentification object is equal to o. */ + /** + * Return true if this SELocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -211,9 +192,9 @@ public boolean equals(Object o) { return false; } SELocalAccountIdentification seLocalAccountIdentification = (SELocalAccountIdentification) o; - return Objects.equals(this.accountNumber, seLocalAccountIdentification.accountNumber) - && Objects.equals(this.clearingNumber, seLocalAccountIdentification.clearingNumber) - && Objects.equals(this.type, seLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, seLocalAccountIdentification.accountNumber) && + Objects.equals(this.clearingNumber, seLocalAccountIdentification.clearingNumber) && + Objects.equals(this.type, seLocalAccountIdentification.type); } @Override @@ -233,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -242,24 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SELocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of SELocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SELocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to SELocalAccountIdentification */ - public static SELocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static SELocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SELocalAccountIdentification.class); } - - /** - * Convert an instance of SELocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SELocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/SGLocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/SGLocalAccountIdentification.java index 0d9892271..30f2625a7 100644 --- a/src/main/java/com/adyen/model/balanceplatform/SGLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/SGLocalAccountIdentification.java @@ -2,31 +2,37 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** SGLocalAccountIdentification */ + +/** + * SGLocalAccountIdentification + */ @JsonPropertyOrder({ SGLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, SGLocalAccountIdentification.JSON_PROPERTY_BIC, SGLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class SGLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -34,8 +40,11 @@ public class SGLocalAccountIdentification { public static final String JSON_PROPERTY_BIC = "bic"; private String bic; - /** **sgLocal** */ + /** + * **sgLocal** + */ public enum TypeEnum { + SGLOCAL(String.valueOf("sgLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -43,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -76,7 +81,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public SGLocalAccountIdentification() {} + public SGLocalAccountIdentification() { + } /** * The 4- to 19-digit bank account number, without separators or whitespace. @@ -91,7 +97,6 @@ public SGLocalAccountIdentification accountNumber(String accountNumber) { /** * The 4- to 19-digit bank account number, without separators or whitespace. - * * @return accountNumber The 4- to 19-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -124,7 +129,6 @@ public SGLocalAccountIdentification bic(String bic) { /** * The bank's 8- or 11-character BIC or SWIFT code. - * * @return bic The bank's 8- or 11-character BIC or SWIFT code. */ @JsonProperty(JSON_PROPERTY_BIC) @@ -157,7 +161,6 @@ public SGLocalAccountIdentification type(TypeEnum type) { /** * **sgLocal** - * * @return type **sgLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -177,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this SGLocalAccountIdentification object is equal to o. */ + /** + * Return true if this SGLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -187,9 +192,9 @@ public boolean equals(Object o) { return false; } SGLocalAccountIdentification sgLocalAccountIdentification = (SGLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, sgLocalAccountIdentification.accountNumber) - && Objects.equals(this.bic, sgLocalAccountIdentification.bic) - && Objects.equals(this.type, sgLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, sgLocalAccountIdentification.accountNumber) && + Objects.equals(this.bic, sgLocalAccountIdentification.bic) && + Objects.equals(this.type, sgLocalAccountIdentification.type); } @Override @@ -209,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -218,24 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SGLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of SGLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SGLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to SGLocalAccountIdentification */ - public static SGLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static SGLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SGLocalAccountIdentification.class); } - - /** - * Convert an instance of SGLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SGLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/SameAmountRestriction.java b/src/main/java/com/adyen/model/balanceplatform/SameAmountRestriction.java index 907568935..54ebb7a48 100644 --- a/src/main/java/com/adyen/model/balanceplatform/SameAmountRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/SameAmountRestriction.java @@ -2,26 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** SameAmountRestriction */ + +/** + * SameAmountRestriction + */ @JsonPropertyOrder({ SameAmountRestriction.JSON_PROPERTY_OPERATION, SameAmountRestriction.JSON_PROPERTY_VALUE }) + public class SameAmountRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -29,7 +39,8 @@ public class SameAmountRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private Boolean value; - public SameAmountRestriction() {} + public SameAmountRestriction() { + } /** * Defines how the condition must be evaluated. @@ -44,7 +55,6 @@ public SameAmountRestriction operation(String operation) { /** * Defines how the condition must be evaluated. - * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -67,7 +77,7 @@ public void setOperation(String operation) { /** * value * - * @param value + * @param value * @return the current {@code SameAmountRestriction} instance, allowing for method chaining */ public SameAmountRestriction value(Boolean value) { @@ -77,8 +87,7 @@ public SameAmountRestriction value(Boolean value) { /** * Get value - * - * @return value + * @return value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -89,7 +98,7 @@ public Boolean getValue() { /** * value * - * @param value + * @param value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,7 +106,9 @@ public void setValue(Boolean value) { this.value = value; } - /** Return true if this SameAmountRestriction object is equal to o. */ + /** + * Return true if this SameAmountRestriction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -107,8 +118,8 @@ public boolean equals(Object o) { return false; } SameAmountRestriction sameAmountRestriction = (SameAmountRestriction) o; - return Objects.equals(this.operation, sameAmountRestriction.operation) - && Objects.equals(this.value, sameAmountRestriction.value); + return Objects.equals(this.operation, sameAmountRestriction.operation) && + Objects.equals(this.value, sameAmountRestriction.value); } @Override @@ -127,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,23 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SameAmountRestriction given an JSON string * * @param jsonString JSON string * @return An instance of SameAmountRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SameAmountRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to SameAmountRestriction */ public static SameAmountRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SameAmountRestriction.class); } - - /** - * Convert an instance of SameAmountRestriction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SameAmountRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/SameCounterpartyRestriction.java b/src/main/java/com/adyen/model/balanceplatform/SameCounterpartyRestriction.java index 995cdf7da..69b19bb09 100644 --- a/src/main/java/com/adyen/model/balanceplatform/SameCounterpartyRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/SameCounterpartyRestriction.java @@ -2,26 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** SameCounterpartyRestriction */ + +/** + * SameCounterpartyRestriction + */ @JsonPropertyOrder({ SameCounterpartyRestriction.JSON_PROPERTY_OPERATION, SameCounterpartyRestriction.JSON_PROPERTY_VALUE }) + public class SameCounterpartyRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -29,7 +39,8 @@ public class SameCounterpartyRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private Boolean value; - public SameCounterpartyRestriction() {} + public SameCounterpartyRestriction() { + } /** * Defines how the condition must be evaluated. @@ -44,7 +55,6 @@ public SameCounterpartyRestriction operation(String operation) { /** * Defines how the condition must be evaluated. - * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -67,7 +77,7 @@ public void setOperation(String operation) { /** * value * - * @param value + * @param value * @return the current {@code SameCounterpartyRestriction} instance, allowing for method chaining */ public SameCounterpartyRestriction value(Boolean value) { @@ -77,8 +87,7 @@ public SameCounterpartyRestriction value(Boolean value) { /** * Get value - * - * @return value + * @return value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -89,7 +98,7 @@ public Boolean getValue() { /** * value * - * @param value + * @param value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,7 +106,9 @@ public void setValue(Boolean value) { this.value = value; } - /** Return true if this SameCounterpartyRestriction object is equal to o. */ + /** + * Return true if this SameCounterpartyRestriction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -107,8 +118,8 @@ public boolean equals(Object o) { return false; } SameCounterpartyRestriction sameCounterpartyRestriction = (SameCounterpartyRestriction) o; - return Objects.equals(this.operation, sameCounterpartyRestriction.operation) - && Objects.equals(this.value, sameCounterpartyRestriction.value); + return Objects.equals(this.operation, sameCounterpartyRestriction.operation) && + Objects.equals(this.value, sameCounterpartyRestriction.value); } @Override @@ -127,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,24 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SameCounterpartyRestriction given an JSON string * * @param jsonString JSON string * @return An instance of SameCounterpartyRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SameCounterpartyRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to SameCounterpartyRestriction */ - public static SameCounterpartyRestriction fromJson(String jsonString) - throws JsonProcessingException { + public static SameCounterpartyRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SameCounterpartyRestriction.class); } - - /** - * Convert an instance of SameCounterpartyRestriction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SameCounterpartyRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/SearchRegisteredDevicesResponse.java b/src/main/java/com/adyen/model/balanceplatform/SearchRegisteredDevicesResponse.java index 099cdc84f..bdcac1690 100644 --- a/src/main/java/com/adyen/model/balanceplatform/SearchRegisteredDevicesResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/SearchRegisteredDevicesResponse.java @@ -2,30 +2,42 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.Device; +import com.adyen.model.balanceplatform.Link; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** SearchRegisteredDevicesResponse */ +/** + * SearchRegisteredDevicesResponse + */ @JsonPropertyOrder({ SearchRegisteredDevicesResponse.JSON_PROPERTY_DATA, SearchRegisteredDevicesResponse.JSON_PROPERTY_ITEMS_TOTAL, SearchRegisteredDevicesResponse.JSON_PROPERTY_LINK, SearchRegisteredDevicesResponse.JSON_PROPERTY_PAGES_TOTAL }) + public class SearchRegisteredDevicesResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; @@ -39,14 +51,14 @@ public class SearchRegisteredDevicesResponse { public static final String JSON_PROPERTY_PAGES_TOTAL = "pagesTotal"; private Integer pagesTotal; - public SearchRegisteredDevicesResponse() {} + public SearchRegisteredDevicesResponse() { + } /** * Contains a list of registered SCA devices and their corresponding details. * * @param data Contains a list of registered SCA devices and their corresponding details. - * @return the current {@code SearchRegisteredDevicesResponse} instance, allowing for method - * chaining + * @return the current {@code SearchRegisteredDevicesResponse} instance, allowing for method chaining */ public SearchRegisteredDevicesResponse data(List data) { this.data = data; @@ -63,7 +75,6 @@ public SearchRegisteredDevicesResponse addDataItem(Device dataItem) { /** * Contains a list of registered SCA devices and their corresponding details. - * * @return data Contains a list of registered SCA devices and their corresponding details. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -87,8 +98,7 @@ public void setData(List data) { * The total amount of registered SCA devices that match the query parameters. * * @param itemsTotal The total amount of registered SCA devices that match the query parameters. - * @return the current {@code SearchRegisteredDevicesResponse} instance, allowing for method - * chaining + * @return the current {@code SearchRegisteredDevicesResponse} instance, allowing for method chaining */ public SearchRegisteredDevicesResponse itemsTotal(Integer itemsTotal) { this.itemsTotal = itemsTotal; @@ -97,7 +107,6 @@ public SearchRegisteredDevicesResponse itemsTotal(Integer itemsTotal) { /** * The total amount of registered SCA devices that match the query parameters. - * * @return itemsTotal The total amount of registered SCA devices that match the query parameters. */ @JsonProperty(JSON_PROPERTY_ITEMS_TOTAL) @@ -120,9 +129,8 @@ public void setItemsTotal(Integer itemsTotal) { /** * link * - * @param link - * @return the current {@code SearchRegisteredDevicesResponse} instance, allowing for method - * chaining + * @param link + * @return the current {@code SearchRegisteredDevicesResponse} instance, allowing for method chaining */ public SearchRegisteredDevicesResponse link(Link link) { this.link = link; @@ -131,8 +139,7 @@ public SearchRegisteredDevicesResponse link(Link link) { /** * Get link - * - * @return link + * @return link */ @JsonProperty(JSON_PROPERTY_LINK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,7 +150,7 @@ public Link getLink() { /** * link * - * @param link + * @param link */ @JsonProperty(JSON_PROPERTY_LINK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -155,8 +162,7 @@ public void setLink(Link link) { * The total amount of list pages. * * @param pagesTotal The total amount of list pages. - * @return the current {@code SearchRegisteredDevicesResponse} instance, allowing for method - * chaining + * @return the current {@code SearchRegisteredDevicesResponse} instance, allowing for method chaining */ public SearchRegisteredDevicesResponse pagesTotal(Integer pagesTotal) { this.pagesTotal = pagesTotal; @@ -165,7 +171,6 @@ public SearchRegisteredDevicesResponse pagesTotal(Integer pagesTotal) { /** * The total amount of list pages. - * * @return pagesTotal The total amount of list pages. */ @JsonProperty(JSON_PROPERTY_PAGES_TOTAL) @@ -185,7 +190,9 @@ public void setPagesTotal(Integer pagesTotal) { this.pagesTotal = pagesTotal; } - /** Return true if this SearchRegisteredDevicesResponse object is equal to o. */ + /** + * Return true if this SearchRegisteredDevicesResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -194,12 +201,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SearchRegisteredDevicesResponse searchRegisteredDevicesResponse = - (SearchRegisteredDevicesResponse) o; - return Objects.equals(this.data, searchRegisteredDevicesResponse.data) - && Objects.equals(this.itemsTotal, searchRegisteredDevicesResponse.itemsTotal) - && Objects.equals(this.link, searchRegisteredDevicesResponse.link) - && Objects.equals(this.pagesTotal, searchRegisteredDevicesResponse.pagesTotal); + SearchRegisteredDevicesResponse searchRegisteredDevicesResponse = (SearchRegisteredDevicesResponse) o; + return Objects.equals(this.data, searchRegisteredDevicesResponse.data) && + Objects.equals(this.itemsTotal, searchRegisteredDevicesResponse.itemsTotal) && + Objects.equals(this.link, searchRegisteredDevicesResponse.link) && + Objects.equals(this.pagesTotal, searchRegisteredDevicesResponse.pagesTotal); } @Override @@ -220,7 +226,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -229,24 +236,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SearchRegisteredDevicesResponse given an JSON string * * @param jsonString JSON string * @return An instance of SearchRegisteredDevicesResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SearchRegisteredDevicesResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to SearchRegisteredDevicesResponse */ - public static SearchRegisteredDevicesResponse fromJson(String jsonString) - throws JsonProcessingException { + public static SearchRegisteredDevicesResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SearchRegisteredDevicesResponse.class); } - - /** - * Convert an instance of SearchRegisteredDevicesResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SearchRegisteredDevicesResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/SettingType.java b/src/main/java/com/adyen/model/balanceplatform/SettingType.java index 1205ae090..3e8742f60 100644 --- a/src/main/java/com/adyen/model/balanceplatform/SettingType.java +++ b/src/main/java/com/adyen/model/balanceplatform/SettingType.java @@ -2,21 +2,30 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -import java.util.*; -/** Gets or Sets SettingType */ +/** + * Gets or Sets SettingType + */ public enum SettingType { + BALANCE("balance"); private String value; @@ -45,3 +54,4 @@ public static SettingType fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } + diff --git a/src/main/java/com/adyen/model/balanceplatform/SourceAccountTypesRestriction.java b/src/main/java/com/adyen/model/balanceplatform/SourceAccountTypesRestriction.java index b8f3fcb1f..4a810eac0 100644 --- a/src/main/java/com/adyen/model/balanceplatform/SourceAccountTypesRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/SourceAccountTypesRestriction.java @@ -2,38 +2,47 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** SourceAccountTypesRestriction */ +/** + * SourceAccountTypesRestriction + */ @JsonPropertyOrder({ SourceAccountTypesRestriction.JSON_PROPERTY_OPERATION, SourceAccountTypesRestriction.JSON_PROPERTY_VALUE }) + public class SourceAccountTypesRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; - /** Gets or Sets value */ + /** + * Gets or Sets value + */ public enum ValueEnum { + BALANCEACCOUNT(String.valueOf("balanceAccount")), BUSINESSACCOUNT(String.valueOf("businessAccount")); @@ -43,7 +52,7 @@ public enum ValueEnum { private String value; ValueEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +73,7 @@ public static ValueEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ValueEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ValueEnum.values())); + LOG.warning("ValueEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ValueEnum.values())); return null; } } @@ -76,14 +81,14 @@ public static ValueEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUE = "value"; private List value; - public SourceAccountTypesRestriction() {} + public SourceAccountTypesRestriction() { + } /** * Defines how the condition must be evaluated. * * @param operation Defines how the condition must be evaluated. - * @return the current {@code SourceAccountTypesRestriction} instance, allowing for method - * chaining + * @return the current {@code SourceAccountTypesRestriction} instance, allowing for method chaining */ public SourceAccountTypesRestriction operation(String operation) { this.operation = operation; @@ -92,7 +97,6 @@ public SourceAccountTypesRestriction operation(String operation) { /** * Defines how the condition must be evaluated. - * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -116,8 +120,7 @@ public void setOperation(String operation) { * The list of source account types to be evaluated. * * @param value The list of source account types to be evaluated. - * @return the current {@code SourceAccountTypesRestriction} instance, allowing for method - * chaining + * @return the current {@code SourceAccountTypesRestriction} instance, allowing for method chaining */ public SourceAccountTypesRestriction value(List value) { this.value = value; @@ -134,7 +137,6 @@ public SourceAccountTypesRestriction addValueItem(ValueEnum valueItem) { /** * The list of source account types to be evaluated. - * * @return value The list of source account types to be evaluated. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -154,7 +156,9 @@ public void setValue(List value) { this.value = value; } - /** Return true if this SourceAccountTypesRestriction object is equal to o. */ + /** + * Return true if this SourceAccountTypesRestriction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -164,8 +168,8 @@ public boolean equals(Object o) { return false; } SourceAccountTypesRestriction sourceAccountTypesRestriction = (SourceAccountTypesRestriction) o; - return Objects.equals(this.operation, sourceAccountTypesRestriction.operation) - && Objects.equals(this.value, sourceAccountTypesRestriction.value); + return Objects.equals(this.operation, sourceAccountTypesRestriction.operation) && + Objects.equals(this.value, sourceAccountTypesRestriction.value); } @Override @@ -184,7 +188,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -193,24 +198,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SourceAccountTypesRestriction given an JSON string * * @param jsonString JSON string * @return An instance of SourceAccountTypesRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SourceAccountTypesRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to SourceAccountTypesRestriction */ - public static SourceAccountTypesRestriction fromJson(String jsonString) - throws JsonProcessingException { + public static SourceAccountTypesRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SourceAccountTypesRestriction.class); } - - /** - * Convert an instance of SourceAccountTypesRestriction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SourceAccountTypesRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/StringMatch.java b/src/main/java/com/adyen/model/balanceplatform/StringMatch.java index 9c2f29d09..16e657cde 100644 --- a/src/main/java/com/adyen/model/balanceplatform/StringMatch.java +++ b/src/main/java/com/adyen/model/balanceplatform/StringMatch.java @@ -2,33 +2,42 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * StringMatch + */ +@JsonPropertyOrder({ + StringMatch.JSON_PROPERTY_OPERATION, + StringMatch.JSON_PROPERTY_VALUE +}) -/** StringMatch */ -@JsonPropertyOrder({StringMatch.JSON_PROPERTY_OPERATION, StringMatch.JSON_PROPERTY_VALUE}) public class StringMatch { /** - * The type of string matching operation. Possible values: **startsWith**, **endsWith**, - * **isEqualTo**, **contains**, + * The type of string matching operation. Possible values: **startsWith**, **endsWith**, **isEqualTo**, **contains**, */ public enum OperationEnum { + CONTAINS(String.valueOf("contains")), ENDSWITH(String.valueOf("endsWith")), @@ -42,7 +51,7 @@ public enum OperationEnum { private String value; OperationEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -63,11 +72,7 @@ public static OperationEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "OperationEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(OperationEnum.values())); + LOG.warning("OperationEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(OperationEnum.values())); return null; } } @@ -78,14 +83,13 @@ public static OperationEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUE = "value"; private String value; - public StringMatch() {} + public StringMatch() { + } /** - * The type of string matching operation. Possible values: **startsWith**, **endsWith**, - * **isEqualTo**, **contains**, + * The type of string matching operation. Possible values: **startsWith**, **endsWith**, **isEqualTo**, **contains**, * - * @param operation The type of string matching operation. Possible values: **startsWith**, - * **endsWith**, **isEqualTo**, **contains**, + * @param operation The type of string matching operation. Possible values: **startsWith**, **endsWith**, **isEqualTo**, **contains**, * @return the current {@code StringMatch} instance, allowing for method chaining */ public StringMatch operation(OperationEnum operation) { @@ -94,11 +98,8 @@ public StringMatch operation(OperationEnum operation) { } /** - * The type of string matching operation. Possible values: **startsWith**, **endsWith**, - * **isEqualTo**, **contains**, - * - * @return operation The type of string matching operation. Possible values: **startsWith**, - * **endsWith**, **isEqualTo**, **contains**, + * The type of string matching operation. Possible values: **startsWith**, **endsWith**, **isEqualTo**, **contains**, + * @return operation The type of string matching operation. Possible values: **startsWith**, **endsWith**, **isEqualTo**, **contains**, */ @JsonProperty(JSON_PROPERTY_OPERATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,11 +108,9 @@ public OperationEnum getOperation() { } /** - * The type of string matching operation. Possible values: **startsWith**, **endsWith**, - * **isEqualTo**, **contains**, + * The type of string matching operation. Possible values: **startsWith**, **endsWith**, **isEqualTo**, **contains**, * - * @param operation The type of string matching operation. Possible values: **startsWith**, - * **endsWith**, **isEqualTo**, **contains**, + * @param operation The type of string matching operation. Possible values: **startsWith**, **endsWith**, **isEqualTo**, **contains**, */ @JsonProperty(JSON_PROPERTY_OPERATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,7 +131,6 @@ public StringMatch value(String value) { /** * The string to be matched. - * * @return value The string to be matched. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -152,7 +150,9 @@ public void setValue(String value) { this.value = value; } - /** Return true if this StringMatch object is equal to o. */ + /** + * Return true if this StringMatch object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -162,8 +162,8 @@ public boolean equals(Object o) { return false; } StringMatch stringMatch = (StringMatch) o; - return Objects.equals(this.operation, stringMatch.operation) - && Objects.equals(this.value, stringMatch.value); + return Objects.equals(this.operation, stringMatch.operation) && + Objects.equals(this.value, stringMatch.value); } @Override @@ -182,7 +182,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -191,7 +192,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of StringMatch given an JSON string * * @param jsonString JSON string @@ -201,12 +202,11 @@ private String toIndentedString(Object o) { public static StringMatch fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StringMatch.class); } - - /** - * Convert an instance of StringMatch to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of StringMatch to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/SweepConfigurationV2.java b/src/main/java/com/adyen/model/balanceplatform/SweepConfigurationV2.java index 08b97b895..d4f4f82eb 100644 --- a/src/main/java/com/adyen/model/balanceplatform/SweepConfigurationV2.java +++ b/src/main/java/com/adyen/model/balanceplatform/SweepConfigurationV2.java @@ -2,28 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.Amount; +import com.adyen.model.balanceplatform.SweepCounterparty; +import com.adyen.model.balanceplatform.SweepSchedule; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** SweepConfigurationV2 */ +/** + * SweepConfigurationV2 + */ @JsonPropertyOrder({ SweepConfigurationV2.JSON_PROPERTY_CATEGORY, SweepConfigurationV2.JSON_PROPERTY_COUNTERPARTY, @@ -42,16 +50,13 @@ SweepConfigurationV2.JSON_PROPERTY_TRIGGER_AMOUNT, SweepConfigurationV2.JSON_PROPERTY_TYPE }) + public class SweepConfigurationV2 { /** - * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a - * [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - * - **internal**: Transfer to another [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. Required when setting `priorities`. + * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. */ public enum CategoryEnum { + BANK(String.valueOf("bank")), INTERNAL(String.valueOf("internal")), @@ -63,7 +68,7 @@ public enum CategoryEnum { private String value; CategoryEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -84,11 +89,7 @@ public static CategoryEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "CategoryEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(CategoryEnum.values())); + LOG.warning("CategoryEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CategoryEnum.values())); return null; } } @@ -108,8 +109,11 @@ public static CategoryEnum fromValue(String value) { public static final String JSON_PROPERTY_ID = "id"; private String id; - /** Gets or Sets priorities */ + /** + * Gets or Sets priorities + */ public enum PrioritiesEnum { + CROSSBORDER(String.valueOf("crossBorder")), FAST(String.valueOf("fast")), @@ -127,7 +131,7 @@ public enum PrioritiesEnum { private String value; PrioritiesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -148,11 +152,7 @@ public static PrioritiesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PrioritiesEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PrioritiesEnum.values())); + LOG.warning("PrioritiesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PrioritiesEnum.values())); return null; } } @@ -160,8 +160,11 @@ public static PrioritiesEnum fromValue(String value) { public static final String JSON_PROPERTY_PRIORITIES = "priorities"; private List priorities; - /** The reason for disabling the sweep. */ + /** + * The reason for disabling the sweep. + */ public enum ReasonEnum { + ACCOUNTHIERARCHYNOTACTIVE(String.valueOf("accountHierarchyNotActive")), AMOUNTLIMITEXCEEDED(String.valueOf("amountLimitExceeded")), @@ -170,8 +173,7 @@ public enum ReasonEnum { APPROVED(String.valueOf("approved")), - BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE( - String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), + BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE(String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), COUNTERPARTYACCOUNTBLOCKED(String.valueOf("counterpartyAccountBlocked")), @@ -218,7 +220,7 @@ public enum ReasonEnum { private String value; ReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -239,11 +241,7 @@ public static ReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ReasonEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ReasonEnum.values())); + LOG.warning("ReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ReasonEnum.values())); return null; } } @@ -264,11 +262,10 @@ public static ReasonEnum fromValue(String value) { private SweepSchedule schedule; /** - * The status of the sweep. If not provided, by default, this is set to **active**. Possible - * values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on - * the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. */ public enum StatusEnum { + ACTIVE(String.valueOf("active")), INACTIVE(String.valueOf("inactive")); @@ -278,7 +275,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -299,11 +296,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -321,12 +314,10 @@ public static StatusEnum fromValue(String value) { private Amount triggerAmount; /** - * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not - * provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to - * a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source - * merchant account, transfer instrument, or balance account. + * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. */ public enum TypeEnum { + PULL(String.valueOf("pull")), PUSH(String.valueOf("push")); @@ -336,7 +327,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -357,11 +348,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -369,13 +356,15 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public SweepConfigurationV2() {} + public SweepConfigurationV2() { + } @JsonCreator public SweepConfigurationV2( - @JsonProperty(JSON_PROPERTY_ID) String id, - @JsonProperty(JSON_PROPERTY_REASON) ReasonEnum reason, - @JsonProperty(JSON_PROPERTY_REASON_DETAIL) String reasonDetail) { + @JsonProperty(JSON_PROPERTY_ID) String id, + @JsonProperty(JSON_PROPERTY_REASON) ReasonEnum reason, + @JsonProperty(JSON_PROPERTY_REASON_DETAIL) String reasonDetail + ) { this(); this.id = id; this.reason = reason; @@ -383,19 +372,9 @@ public SweepConfigurationV2( } /** - * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a - * [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - * - **internal**: Transfer to another [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. Required when setting `priorities`. + * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. * - * @param category The type of transfer that results from the sweep. Possible values: - **bank**: - * Sweep to a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - * - **internal**: Transfer to another [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. Required when setting `priorities`. + * @param category The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 category(CategoryEnum category) { @@ -404,19 +383,8 @@ public SweepConfigurationV2 category(CategoryEnum category) { } /** - * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a - * [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - * - **internal**: Transfer to another [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. Required when setting `priorities`. - * - * @return category The type of transfer that results from the sweep. Possible values: - **bank**: - * Sweep to a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - * - **internal**: Transfer to another [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. Required when setting `priorities`. + * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. + * @return category The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -425,19 +393,9 @@ public CategoryEnum getCategory() { } /** - * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a - * [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - * - **internal**: Transfer to another [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. Required when setting `priorities`. + * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. * - * @param category The type of transfer that results from the sweep. Possible values: - **bank**: - * Sweep to a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - * - **internal**: Transfer to another [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. Required when setting `priorities`. + * @param category The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -448,7 +406,7 @@ public void setCategory(CategoryEnum category) { /** * counterparty * - * @param counterparty + * @param counterparty * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 counterparty(SweepCounterparty counterparty) { @@ -458,8 +416,7 @@ public SweepConfigurationV2 counterparty(SweepCounterparty counterparty) { /** * Get counterparty - * - * @return counterparty + * @return counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -470,7 +427,7 @@ public SweepCounterparty getCounterparty() { /** * counterparty * - * @param counterparty + * @param counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -479,15 +436,9 @@ public void setCounterparty(SweepCounterparty counterparty) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, - * **EUR**. The sweep currency must match any of the [balances - * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For - * example, **EUR**. The sweep currency must match any of the [balances - * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 currency(String currency) { @@ -496,15 +447,8 @@ public SweepConfigurationV2 currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, - * **EUR**. The sweep currency must match any of the [balances - * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For - * example, **EUR**. The sweep currency must match any of the [balances - * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -513,15 +457,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, - * **EUR**. The sweep currency must match any of the [balances - * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For - * example, **EUR**. The sweep currency must match any of the [balances - * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -530,13 +468,9 @@ public void setCurrency(String currency) { } /** - * The message that will be used in the sweep transfer's description body with a maximum - * length of 140 characters. If the message is longer after replacing placeholders, the message - * will be cut off at 140 characters. + * The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. * - * @param description The message that will be used in the sweep transfer's description body - * with a maximum length of 140 characters. If the message is longer after replacing - * placeholders, the message will be cut off at 140 characters. + * @param description The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 description(String description) { @@ -545,13 +479,8 @@ public SweepConfigurationV2 description(String description) { } /** - * The message that will be used in the sweep transfer's description body with a maximum - * length of 140 characters. If the message is longer after replacing placeholders, the message - * will be cut off at 140 characters. - * - * @return description The message that will be used in the sweep transfer's description body - * with a maximum length of 140 characters. If the message is longer after replacing - * placeholders, the message will be cut off at 140 characters. + * The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. + * @return description The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -560,13 +489,9 @@ public String getDescription() { } /** - * The message that will be used in the sweep transfer's description body with a maximum - * length of 140 characters. If the message is longer after replacing placeholders, the message - * will be cut off at 140 characters. + * The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. * - * @param description The message that will be used in the sweep transfer's description body - * with a maximum length of 140 characters. If the message is longer after replacing - * placeholders, the message will be cut off at 140 characters. + * @param description The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -576,7 +501,6 @@ public void setDescription(String description) { /** * The unique identifier of the sweep. - * * @return id The unique identifier of the sweep. */ @JsonProperty(JSON_PROPERTY_ID) @@ -585,51 +509,11 @@ public String getId() { return id; } + /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent - * and the fees that you have to pay. You can provide multiple priorities, ordered by your - * preference. Adyen will try to pay out using the priorities in the given order. If the first - * priority is not currently supported or enabled for your platform, the system will try the next - * one, and so on. The request will be accepted as long as **at least one** of the provided - * priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if - * you provide `[\"wire\",\"regular\"]`, and `wire` is not - * supported but `regular` is, the request will still be accepted and processed. - * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to - * transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. - * * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the - * United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). Set `category` to **bank**. For more details, see optional priorities - * setup for - * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) - * or - * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). * - * @param priorities The list of priorities for the bank transfer. This sets the speed at which - * the transfer is sent and the fees that you have to pay. You can provide multiple - * priorities, ordered by your preference. Adyen will try to pay out using the priorities in - * the given order. If the first priority is not currently supported or enabled for your - * platform, the system will try the next one, and so on. The request will be accepted as long - * as **at least one** of the provided priorities is valid (i.e., supported by Adyen and - * activated for your platform). For example, if you provide - * `[\"wire\",\"regular\"]`, and `wire` is not - * supported but `regular` is, the request will still be accepted and processed. - * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster - * way to transfer funds, but the fees are higher. Recommended for high-priority, low-value - * transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. - * Recommended for high-priority, high-value transactions. * **instant**: for instant funds - * transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). Set `category` to **bank**. For more details, see optional - * priorities setup for - * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) - * or - * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * @param priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 priorities(List priorities) { @@ -646,50 +530,8 @@ public SweepConfigurationV2 addPrioritiesItem(PrioritiesEnum prioritiesItem) { } /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent - * and the fees that you have to pay. You can provide multiple priorities, ordered by your - * preference. Adyen will try to pay out using the priorities in the given order. If the first - * priority is not currently supported or enabled for your platform, the system will try the next - * one, and so on. The request will be accepted as long as **at least one** of the provided - * priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if - * you provide `[\"wire\",\"regular\"]`, and `wire` is not - * supported but `regular` is, the request will still be accepted and processed. - * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to - * transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. - * * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the - * United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). Set `category` to **bank**. For more details, see optional priorities - * setup for - * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) - * or - * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). - * - * @return priorities The list of priorities for the bank transfer. This sets the speed at which - * the transfer is sent and the fees that you have to pay. You can provide multiple - * priorities, ordered by your preference. Adyen will try to pay out using the priorities in - * the given order. If the first priority is not currently supported or enabled for your - * platform, the system will try the next one, and so on. The request will be accepted as long - * as **at least one** of the provided priorities is valid (i.e., supported by Adyen and - * activated for your platform). For example, if you provide - * `[\"wire\",\"regular\"]`, and `wire` is not - * supported but `regular` is, the request will still be accepted and processed. - * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster - * way to transfer funds, but the fees are higher. Recommended for high-priority, low-value - * transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. - * Recommended for high-priority, high-value transactions. * **instant**: for instant funds - * transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). Set `category` to **bank**. For more details, see optional - * priorities setup for - * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) - * or - * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * @return priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). */ @JsonProperty(JSON_PROPERTY_PRIORITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -698,50 +540,9 @@ public List getPriorities() { } /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent - * and the fees that you have to pay. You can provide multiple priorities, ordered by your - * preference. Adyen will try to pay out using the priorities in the given order. If the first - * priority is not currently supported or enabled for your platform, the system will try the next - * one, and so on. The request will be accepted as long as **at least one** of the provided - * priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if - * you provide `[\"wire\",\"regular\"]`, and `wire` is not - * supported but `regular` is, the request will still be accepted and processed. - * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to - * transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. - * * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the - * United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). Set `category` to **bank**. For more details, see optional priorities - * setup for - * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) - * or - * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). * - * @param priorities The list of priorities for the bank transfer. This sets the speed at which - * the transfer is sent and the fees that you have to pay. You can provide multiple - * priorities, ordered by your preference. Adyen will try to pay out using the priorities in - * the given order. If the first priority is not currently supported or enabled for your - * platform, the system will try the next one, and so on. The request will be accepted as long - * as **at least one** of the provided priorities is valid (i.e., supported by Adyen and - * activated for your platform). For example, if you provide - * `[\"wire\",\"regular\"]`, and `wire` is not - * supported but `regular` is, the request will still be accepted and processed. - * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster - * way to transfer funds, but the fees are higher. Recommended for high-priority, low-value - * transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. - * Recommended for high-priority, high-value transactions. * **instant**: for instant funds - * transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). Set `category` to **bank**. For more details, see optional - * priorities setup for - * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) - * or - * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * @param priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). */ @JsonProperty(JSON_PROPERTY_PRIORITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -751,7 +552,6 @@ public void setPriorities(List priorities) { /** * The reason for disabling the sweep. - * * @return reason The reason for disabling the sweep. */ @JsonProperty(JSON_PROPERTY_REASON) @@ -760,9 +560,9 @@ public ReasonEnum getReason() { return reason; } + /** * The human readable reason for disabling the sweep. - * * @return reasonDetail The human readable reason for disabling the sweep. */ @JsonProperty(JSON_PROPERTY_REASON_DETAIL) @@ -771,6 +571,7 @@ public String getReasonDetail() { return reasonDetail; } + /** * Your reference for the sweep configuration. * @@ -784,7 +585,6 @@ public SweepConfigurationV2 reference(String reference) { /** * Your reference for the sweep configuration. - * * @return reference Your reference for the sweep configuration. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -805,11 +605,9 @@ public void setReference(String reference) { } /** - * The reference sent to or received from the counterparty. Only alphanumeric characters are - * allowed. + * The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. * - * @param referenceForBeneficiary The reference sent to or received from the counterparty. Only - * alphanumeric characters are allowed. + * @param referenceForBeneficiary The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 referenceForBeneficiary(String referenceForBeneficiary) { @@ -818,11 +616,8 @@ public SweepConfigurationV2 referenceForBeneficiary(String referenceForBeneficia } /** - * The reference sent to or received from the counterparty. Only alphanumeric characters are - * allowed. - * - * @return referenceForBeneficiary The reference sent to or received from the counterparty. Only - * alphanumeric characters are allowed. + * The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. + * @return referenceForBeneficiary The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -831,11 +626,9 @@ public String getReferenceForBeneficiary() { } /** - * The reference sent to or received from the counterparty. Only alphanumeric characters are - * allowed. + * The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. * - * @param referenceForBeneficiary The reference sent to or received from the counterparty. Only - * alphanumeric characters are allowed. + * @param referenceForBeneficiary The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -846,7 +639,7 @@ public void setReferenceForBeneficiary(String referenceForBeneficiary) { /** * schedule * - * @param schedule + * @param schedule * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 schedule(SweepSchedule schedule) { @@ -856,8 +649,7 @@ public SweepConfigurationV2 schedule(SweepSchedule schedule) { /** * Get schedule - * - * @return schedule + * @return schedule */ @JsonProperty(JSON_PROPERTY_SCHEDULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -868,7 +660,7 @@ public SweepSchedule getSchedule() { /** * schedule * - * @param schedule + * @param schedule */ @JsonProperty(JSON_PROPERTY_SCHEDULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -877,14 +669,9 @@ public void setSchedule(SweepSchedule schedule) { } /** - * The status of the sweep. If not provided, by default, this is set to **active**. Possible - * values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on - * the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. * - * @param status The status of the sweep. If not provided, by default, this is set to **active**. - * Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed - * out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be - * triggered. + * @param status The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 status(StatusEnum status) { @@ -893,14 +680,8 @@ public SweepConfigurationV2 status(StatusEnum status) { } /** - * The status of the sweep. If not provided, by default, this is set to **active**. Possible - * values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on - * the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. - * - * @return status The status of the sweep. If not provided, by default, this is set to **active**. - * Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed - * out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be - * triggered. + * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * @return status The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -909,14 +690,9 @@ public StatusEnum getStatus() { } /** - * The status of the sweep. If not provided, by default, this is set to **active**. Possible - * values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on - * the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. * - * @param status The status of the sweep. If not provided, by default, this is set to **active**. - * Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed - * out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be - * triggered. + * @param status The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -927,7 +703,7 @@ public void setStatus(StatusEnum status) { /** * sweepAmount * - * @param sweepAmount + * @param sweepAmount * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 sweepAmount(Amount sweepAmount) { @@ -937,8 +713,7 @@ public SweepConfigurationV2 sweepAmount(Amount sweepAmount) { /** * Get sweepAmount - * - * @return sweepAmount + * @return sweepAmount */ @JsonProperty(JSON_PROPERTY_SWEEP_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -949,7 +724,7 @@ public Amount getSweepAmount() { /** * sweepAmount * - * @param sweepAmount + * @param sweepAmount */ @JsonProperty(JSON_PROPERTY_SWEEP_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -960,7 +735,7 @@ public void setSweepAmount(Amount sweepAmount) { /** * targetAmount * - * @param targetAmount + * @param targetAmount * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 targetAmount(Amount targetAmount) { @@ -970,8 +745,7 @@ public SweepConfigurationV2 targetAmount(Amount targetAmount) { /** * Get targetAmount - * - * @return targetAmount + * @return targetAmount */ @JsonProperty(JSON_PROPERTY_TARGET_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -982,7 +756,7 @@ public Amount getTargetAmount() { /** * targetAmount * - * @param targetAmount + * @param targetAmount */ @JsonProperty(JSON_PROPERTY_TARGET_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -993,7 +767,7 @@ public void setTargetAmount(Amount targetAmount) { /** * triggerAmount * - * @param triggerAmount + * @param triggerAmount * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 triggerAmount(Amount triggerAmount) { @@ -1003,8 +777,7 @@ public SweepConfigurationV2 triggerAmount(Amount triggerAmount) { /** * Get triggerAmount - * - * @return triggerAmount + * @return triggerAmount */ @JsonProperty(JSON_PROPERTY_TRIGGER_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1015,7 +788,7 @@ public Amount getTriggerAmount() { /** * triggerAmount * - * @param triggerAmount + * @param triggerAmount */ @JsonProperty(JSON_PROPERTY_TRIGGER_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1024,15 +797,9 @@ public void setTriggerAmount(Amount triggerAmount) { } /** - * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not - * provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to - * a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source - * merchant account, transfer instrument, or balance account. + * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. * - * @param type The direction of sweep, whether pushing out or pulling in funds to the balance - * account. If not provided, by default, this is set to **push**. Possible values: * **push**: - * _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull - * in funds_ from a source merchant account, transfer instrument, or balance account. + * @param type The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 type(TypeEnum type) { @@ -1041,15 +808,8 @@ public SweepConfigurationV2 type(TypeEnum type) { } /** - * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not - * provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to - * a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source - * merchant account, transfer instrument, or balance account. - * - * @return type The direction of sweep, whether pushing out or pulling in funds to the balance - * account. If not provided, by default, this is set to **push**. Possible values: * **push**: - * _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull - * in funds_ from a source merchant account, transfer instrument, or balance account. + * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. + * @return type The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1058,15 +818,9 @@ public TypeEnum getType() { } /** - * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not - * provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to - * a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source - * merchant account, transfer instrument, or balance account. + * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. * - * @param type The direction of sweep, whether pushing out or pulling in funds to the balance - * account. If not provided, by default, this is set to **push**. Possible values: * **push**: - * _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull - * in funds_ from a source merchant account, transfer instrument, or balance account. + * @param type The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1074,7 +828,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this SweepConfigurationV2 object is equal to o. */ + /** + * Return true if this SweepConfigurationV2 object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -1084,44 +840,27 @@ public boolean equals(Object o) { return false; } SweepConfigurationV2 sweepConfigurationV2 = (SweepConfigurationV2) o; - return Objects.equals(this.category, sweepConfigurationV2.category) - && Objects.equals(this.counterparty, sweepConfigurationV2.counterparty) - && Objects.equals(this.currency, sweepConfigurationV2.currency) - && Objects.equals(this.description, sweepConfigurationV2.description) - && Objects.equals(this.id, sweepConfigurationV2.id) - && Objects.equals(this.priorities, sweepConfigurationV2.priorities) - && Objects.equals(this.reason, sweepConfigurationV2.reason) - && Objects.equals(this.reasonDetail, sweepConfigurationV2.reasonDetail) - && Objects.equals(this.reference, sweepConfigurationV2.reference) - && Objects.equals( - this.referenceForBeneficiary, sweepConfigurationV2.referenceForBeneficiary) - && Objects.equals(this.schedule, sweepConfigurationV2.schedule) - && Objects.equals(this.status, sweepConfigurationV2.status) - && Objects.equals(this.sweepAmount, sweepConfigurationV2.sweepAmount) - && Objects.equals(this.targetAmount, sweepConfigurationV2.targetAmount) - && Objects.equals(this.triggerAmount, sweepConfigurationV2.triggerAmount) - && Objects.equals(this.type, sweepConfigurationV2.type); + return Objects.equals(this.category, sweepConfigurationV2.category) && + Objects.equals(this.counterparty, sweepConfigurationV2.counterparty) && + Objects.equals(this.currency, sweepConfigurationV2.currency) && + Objects.equals(this.description, sweepConfigurationV2.description) && + Objects.equals(this.id, sweepConfigurationV2.id) && + Objects.equals(this.priorities, sweepConfigurationV2.priorities) && + Objects.equals(this.reason, sweepConfigurationV2.reason) && + Objects.equals(this.reasonDetail, sweepConfigurationV2.reasonDetail) && + Objects.equals(this.reference, sweepConfigurationV2.reference) && + Objects.equals(this.referenceForBeneficiary, sweepConfigurationV2.referenceForBeneficiary) && + Objects.equals(this.schedule, sweepConfigurationV2.schedule) && + Objects.equals(this.status, sweepConfigurationV2.status) && + Objects.equals(this.sweepAmount, sweepConfigurationV2.sweepAmount) && + Objects.equals(this.targetAmount, sweepConfigurationV2.targetAmount) && + Objects.equals(this.triggerAmount, sweepConfigurationV2.triggerAmount) && + Objects.equals(this.type, sweepConfigurationV2.type); } @Override public int hashCode() { - return Objects.hash( - category, - counterparty, - currency, - description, - id, - priorities, - reason, - reasonDetail, - reference, - referenceForBeneficiary, - schedule, - status, - sweepAmount, - targetAmount, - triggerAmount, - type); + return Objects.hash(category, counterparty, currency, description, id, priorities, reason, reasonDetail, reference, referenceForBeneficiary, schedule, status, sweepAmount, targetAmount, triggerAmount, type); } @Override @@ -1137,9 +876,7 @@ public String toString() { sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" reasonDetail: ").append(toIndentedString(reasonDetail)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); - sb.append(" referenceForBeneficiary: ") - .append(toIndentedString(referenceForBeneficiary)) - .append("\n"); + sb.append(" referenceForBeneficiary: ").append(toIndentedString(referenceForBeneficiary)).append("\n"); sb.append(" schedule: ").append(toIndentedString(schedule)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" sweepAmount: ").append(toIndentedString(sweepAmount)).append("\n"); @@ -1151,7 +888,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1160,23 +898,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SweepConfigurationV2 given an JSON string * * @param jsonString JSON string * @return An instance of SweepConfigurationV2 - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SweepConfigurationV2 + * @throws JsonProcessingException if the JSON string is invalid with respect to SweepConfigurationV2 */ public static SweepConfigurationV2 fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SweepConfigurationV2.class); } - - /** - * Convert an instance of SweepConfigurationV2 to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SweepConfigurationV2 to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/SweepCounterparty.java b/src/main/java/com/adyen/model/balanceplatform/SweepCounterparty.java index e12f86ab6..6a922b592 100644 --- a/src/main/java/com/adyen/model/balanceplatform/SweepCounterparty.java +++ b/src/main/java/com/adyen/model/balanceplatform/SweepCounterparty.java @@ -2,27 +2,37 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** SweepCounterparty */ + +/** + * SweepCounterparty + */ @JsonPropertyOrder({ SweepCounterparty.JSON_PROPERTY_BALANCE_ACCOUNT_ID, SweepCounterparty.JSON_PROPERTY_MERCHANT_ACCOUNT, SweepCounterparty.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID }) + public class SweepCounterparty { public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; @@ -33,18 +43,13 @@ public class SweepCounterparty { public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_ID = "transferInstrumentId"; private String transferInstrumentId; - public SweepCounterparty() {} + public SweepCounterparty() { + } /** - * The unique identifier of the destination or source [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). - * > If you are updating the counterparty from a transfer instrument to a balance account, set - * `transferInstrumentId` to **null**. + * The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). > If you are updating the counterparty from a transfer instrument to a balance account, set `transferInstrumentId` to **null**. * - * @param balanceAccountId The unique identifier of the destination or source [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). - * > If you are updating the counterparty from a transfer instrument to a balance account, - * set `transferInstrumentId` to **null**. + * @param balanceAccountId The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). > If you are updating the counterparty from a transfer instrument to a balance account, set `transferInstrumentId` to **null**. * @return the current {@code SweepCounterparty} instance, allowing for method chaining */ public SweepCounterparty balanceAccountId(String balanceAccountId) { @@ -53,15 +58,8 @@ public SweepCounterparty balanceAccountId(String balanceAccountId) { } /** - * The unique identifier of the destination or source [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). - * > If you are updating the counterparty from a transfer instrument to a balance account, set - * `transferInstrumentId` to **null**. - * - * @return balanceAccountId The unique identifier of the destination or source [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). - * > If you are updating the counterparty from a transfer instrument to a balance account, - * set `transferInstrumentId` to **null**. + * The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). > If you are updating the counterparty from a transfer instrument to a balance account, set `transferInstrumentId` to **null**. + * @return balanceAccountId The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). > If you are updating the counterparty from a transfer instrument to a balance account, set `transferInstrumentId` to **null**. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,15 +68,9 @@ public String getBalanceAccountId() { } /** - * The unique identifier of the destination or source [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). - * > If you are updating the counterparty from a transfer instrument to a balance account, set - * `transferInstrumentId` to **null**. + * The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). > If you are updating the counterparty from a transfer instrument to a balance account, set `transferInstrumentId` to **null**. * - * @param balanceAccountId The unique identifier of the destination or source [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). - * > If you are updating the counterparty from a transfer instrument to a balance account, - * set `transferInstrumentId` to **null**. + * @param balanceAccountId The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). > If you are updating the counterparty from a transfer instrument to a balance account, set `transferInstrumentId` to **null**. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,12 +79,9 @@ public void setBalanceAccountId(String balanceAccountId) { } /** - * The merchant account that will be the source of funds. You can only use this parameter with - * sweeps of `type` **pull** and if you are processing payments with Adyen. + * The merchant account that will be the source of funds. You can only use this parameter with sweeps of `type` **pull** and if you are processing payments with Adyen. * - * @param merchantAccount The merchant account that will be the source of funds. You can only use - * this parameter with sweeps of `type` **pull** and if you are processing payments - * with Adyen. + * @param merchantAccount The merchant account that will be the source of funds. You can only use this parameter with sweeps of `type` **pull** and if you are processing payments with Adyen. * @return the current {@code SweepCounterparty} instance, allowing for method chaining */ public SweepCounterparty merchantAccount(String merchantAccount) { @@ -101,12 +90,8 @@ public SweepCounterparty merchantAccount(String merchantAccount) { } /** - * The merchant account that will be the source of funds. You can only use this parameter with - * sweeps of `type` **pull** and if you are processing payments with Adyen. - * - * @return merchantAccount The merchant account that will be the source of funds. You can only use - * this parameter with sweeps of `type` **pull** and if you are processing payments - * with Adyen. + * The merchant account that will be the source of funds. You can only use this parameter with sweeps of `type` **pull** and if you are processing payments with Adyen. + * @return merchantAccount The merchant account that will be the source of funds. You can only use this parameter with sweeps of `type` **pull** and if you are processing payments with Adyen. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,12 +100,9 @@ public String getMerchantAccount() { } /** - * The merchant account that will be the source of funds. You can only use this parameter with - * sweeps of `type` **pull** and if you are processing payments with Adyen. + * The merchant account that will be the source of funds. You can only use this parameter with sweeps of `type` **pull** and if you are processing payments with Adyen. * - * @param merchantAccount The merchant account that will be the source of funds. You can only use - * this parameter with sweeps of `type` **pull** and if you are processing payments - * with Adyen. + * @param merchantAccount The merchant account that will be the source of funds. You can only use this parameter with sweeps of `type` **pull** and if you are processing payments with Adyen. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,28 +111,9 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The unique identifier of the destination or source [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) - * depending on the sweep `type` . To set up automated top-up sweeps to balance accounts - * in your - * [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or - * [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this - * parameter in combination with a `merchantAccount` and a sweep `type` of - * **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. - * Contact Adyen Support to enable this feature.> If you are updating the counterparty from a - * balance account to a transfer instrument, set `balanceAccountId` to **null**. + * The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type` . To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.> If you are updating the counterparty from a balance account to a transfer instrument, set `balanceAccountId` to **null**. * - * @param transferInstrumentId The unique identifier of the destination or source [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) - * depending on the sweep `type` . To set up automated top-up sweeps to balance - * accounts in your - * [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) - * or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), - * use this parameter in combination with a `merchantAccount` and a sweep - * `type` of **pull**. Top-up sweeps start a direct debit request from the source - * transfer instrument. Contact Adyen Support to enable this feature.> If you are updating - * the counterparty from a balance account to a transfer instrument, set - * `balanceAccountId` to **null**. + * @param transferInstrumentId The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type` . To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.> If you are updating the counterparty from a balance account to a transfer instrument, set `balanceAccountId` to **null**. * @return the current {@code SweepCounterparty} instance, allowing for method chaining */ public SweepCounterparty transferInstrumentId(String transferInstrumentId) { @@ -159,28 +122,8 @@ public SweepCounterparty transferInstrumentId(String transferInstrumentId) { } /** - * The unique identifier of the destination or source [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) - * depending on the sweep `type` . To set up automated top-up sweeps to balance accounts - * in your - * [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or - * [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this - * parameter in combination with a `merchantAccount` and a sweep `type` of - * **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. - * Contact Adyen Support to enable this feature.> If you are updating the counterparty from a - * balance account to a transfer instrument, set `balanceAccountId` to **null**. - * - * @return transferInstrumentId The unique identifier of the destination or source [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) - * depending on the sweep `type` . To set up automated top-up sweeps to balance - * accounts in your - * [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) - * or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), - * use this parameter in combination with a `merchantAccount` and a sweep - * `type` of **pull**. Top-up sweeps start a direct debit request from the source - * transfer instrument. Contact Adyen Support to enable this feature.> If you are updating - * the counterparty from a balance account to a transfer instrument, set - * `balanceAccountId` to **null**. + * The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type` . To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.> If you are updating the counterparty from a balance account to a transfer instrument, set `balanceAccountId` to **null**. + * @return transferInstrumentId The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type` . To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.> If you are updating the counterparty from a balance account to a transfer instrument, set `balanceAccountId` to **null**. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,28 +132,9 @@ public String getTransferInstrumentId() { } /** - * The unique identifier of the destination or source [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) - * depending on the sweep `type` . To set up automated top-up sweeps to balance accounts - * in your - * [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or - * [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this - * parameter in combination with a `merchantAccount` and a sweep `type` of - * **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. - * Contact Adyen Support to enable this feature.> If you are updating the counterparty from a - * balance account to a transfer instrument, set `balanceAccountId` to **null**. + * The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type` . To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.> If you are updating the counterparty from a balance account to a transfer instrument, set `balanceAccountId` to **null**. * - * @param transferInstrumentId The unique identifier of the destination or source [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) - * depending on the sweep `type` . To set up automated top-up sweeps to balance - * accounts in your - * [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) - * or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), - * use this parameter in combination with a `merchantAccount` and a sweep - * `type` of **pull**. Top-up sweeps start a direct debit request from the source - * transfer instrument. Contact Adyen Support to enable this feature.> If you are updating - * the counterparty from a balance account to a transfer instrument, set - * `balanceAccountId` to **null**. + * @param transferInstrumentId The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type` . To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.> If you are updating the counterparty from a balance account to a transfer instrument, set `balanceAccountId` to **null**. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -218,7 +142,9 @@ public void setTransferInstrumentId(String transferInstrumentId) { this.transferInstrumentId = transferInstrumentId; } - /** Return true if this SweepCounterparty object is equal to o. */ + /** + * Return true if this SweepCounterparty object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -228,9 +154,9 @@ public boolean equals(Object o) { return false; } SweepCounterparty sweepCounterparty = (SweepCounterparty) o; - return Objects.equals(this.balanceAccountId, sweepCounterparty.balanceAccountId) - && Objects.equals(this.merchantAccount, sweepCounterparty.merchantAccount) - && Objects.equals(this.transferInstrumentId, sweepCounterparty.transferInstrumentId); + return Objects.equals(this.balanceAccountId, sweepCounterparty.balanceAccountId) && + Objects.equals(this.merchantAccount, sweepCounterparty.merchantAccount) && + Objects.equals(this.transferInstrumentId, sweepCounterparty.transferInstrumentId); } @Override @@ -244,15 +170,14 @@ public String toString() { sb.append("class SweepCounterparty {\n"); sb.append(" balanceAccountId: ").append(toIndentedString(balanceAccountId)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" transferInstrumentId: ") - .append(toIndentedString(transferInstrumentId)) - .append("\n"); + sb.append(" transferInstrumentId: ").append(toIndentedString(transferInstrumentId)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -261,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SweepCounterparty given an JSON string * * @param jsonString JSON string @@ -271,12 +196,11 @@ private String toIndentedString(Object o) { public static SweepCounterparty fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SweepCounterparty.class); } - - /** - * Convert an instance of SweepCounterparty to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SweepCounterparty to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/SweepSchedule.java b/src/main/java/com/adyen/model/balanceplatform/SweepSchedule.java index 7b309ae0b..c5d0be3ca 100644 --- a/src/main/java/com/adyen/model/balanceplatform/SweepSchedule.java +++ b/src/main/java/com/adyen/model/balanceplatform/SweepSchedule.java @@ -2,39 +2,45 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * SweepSchedule + */ +@JsonPropertyOrder({ + SweepSchedule.JSON_PROPERTY_CRON_EXPRESSION, + SweepSchedule.JSON_PROPERTY_TYPE +}) -/** SweepSchedule */ -@JsonPropertyOrder({SweepSchedule.JSON_PROPERTY_CRON_EXPRESSION, SweepSchedule.JSON_PROPERTY_TYPE}) public class SweepSchedule { public static final String JSON_PROPERTY_CRON_EXPRESSION = "cronExpression"; private String cronExpression; /** - * The schedule type. Possible values: * **cron**: push out funds based on a - * `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: - * push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the - * month at 07:00 AM CET. * **balance**: execute the sweep instantly if the - * `triggerAmount` is reached. + * The schedule type. Possible values: * **cron**: push out funds based on a `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the `triggerAmount` is reached. */ public enum TypeEnum { + DAILY(String.valueOf("daily")), WEEKLY(String.valueOf("weekly")), @@ -50,7 +56,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -71,11 +77,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -83,27 +85,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public SweepSchedule() {} + public SweepSchedule() { + } /** - * A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the - * sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * - * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated - * by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the - * month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are - * Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, - * **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. - * Required when `type` is **cron**. + * A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. Required when `type` is **cron**. * - * @param cronExpression A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) - * that is used to set the sweep schedule. The schedule uses the time zone of the balance - * account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The - * expression must have five values separated by a single space in the following order: * - * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or - * **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following - * non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See - * [crontab guru](https://crontab.guru/) for more examples. Required when `type` is - * **cron**. + * @param cronExpression A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. Required when `type` is **cron**. * @return the current {@code SweepSchedule} instance, allowing for method chaining */ public SweepSchedule cronExpression(String cronExpression) { @@ -112,24 +100,8 @@ public SweepSchedule cronExpression(String cronExpression) { } /** - * A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the - * sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * - * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated - * by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the - * month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are - * Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, - * **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. - * Required when `type` is **cron**. - * - * @return cronExpression A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) - * that is used to set the sweep schedule. The schedule uses the time zone of the balance - * account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The - * expression must have five values separated by a single space in the following order: * - * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or - * **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following - * non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See - * [crontab guru](https://crontab.guru/) for more examples. Required when `type` is - * **cron**. + * A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. Required when `type` is **cron**. + * @return cronExpression A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. Required when `type` is **cron**. */ @JsonProperty(JSON_PROPERTY_CRON_EXPRESSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,24 +110,9 @@ public String getCronExpression() { } /** - * A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the - * sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * - * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated - * by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the - * month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are - * Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, - * **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. - * Required when `type` is **cron**. + * A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. Required when `type` is **cron**. * - * @param cronExpression A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) - * that is used to set the sweep schedule. The schedule uses the time zone of the balance - * account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The - * expression must have five values separated by a single space in the following order: * - * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or - * **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following - * non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See - * [crontab guru](https://crontab.guru/) for more examples. Required when `type` is - * **cron**. + * @param cronExpression A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. Required when `type` is **cron**. */ @JsonProperty(JSON_PROPERTY_CRON_EXPRESSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -164,17 +121,9 @@ public void setCronExpression(String cronExpression) { } /** - * The schedule type. Possible values: * **cron**: push out funds based on a - * `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: - * push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the - * month at 07:00 AM CET. * **balance**: execute the sweep instantly if the - * `triggerAmount` is reached. + * The schedule type. Possible values: * **cron**: push out funds based on a `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the `triggerAmount` is reached. * - * @param type The schedule type. Possible values: * **cron**: push out funds based on a - * `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * - * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds - * every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the - * `triggerAmount` is reached. + * @param type The schedule type. Possible values: * **cron**: push out funds based on a `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the `triggerAmount` is reached. * @return the current {@code SweepSchedule} instance, allowing for method chaining */ public SweepSchedule type(TypeEnum type) { @@ -183,17 +132,8 @@ public SweepSchedule type(TypeEnum type) { } /** - * The schedule type. Possible values: * **cron**: push out funds based on a - * `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: - * push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the - * month at 07:00 AM CET. * **balance**: execute the sweep instantly if the - * `triggerAmount` is reached. - * - * @return type The schedule type. Possible values: * **cron**: push out funds based on a - * `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * - * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds - * every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the - * `triggerAmount` is reached. + * The schedule type. Possible values: * **cron**: push out funds based on a `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the `triggerAmount` is reached. + * @return type The schedule type. Possible values: * **cron**: push out funds based on a `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the `triggerAmount` is reached. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -202,17 +142,9 @@ public TypeEnum getType() { } /** - * The schedule type. Possible values: * **cron**: push out funds based on a - * `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: - * push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the - * month at 07:00 AM CET. * **balance**: execute the sweep instantly if the - * `triggerAmount` is reached. + * The schedule type. Possible values: * **cron**: push out funds based on a `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the `triggerAmount` is reached. * - * @param type The schedule type. Possible values: * **cron**: push out funds based on a - * `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * - * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds - * every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the - * `triggerAmount` is reached. + * @param type The schedule type. Possible values: * **cron**: push out funds based on a `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the `triggerAmount` is reached. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -220,7 +152,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this SweepSchedule object is equal to o. */ + /** + * Return true if this SweepSchedule object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -230,8 +164,8 @@ public boolean equals(Object o) { return false; } SweepSchedule sweepSchedule = (SweepSchedule) o; - return Objects.equals(this.cronExpression, sweepSchedule.cronExpression) - && Objects.equals(this.type, sweepSchedule.type); + return Objects.equals(this.cronExpression, sweepSchedule.cronExpression) && + Objects.equals(this.type, sweepSchedule.type); } @Override @@ -250,7 +184,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -259,7 +194,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SweepSchedule given an JSON string * * @param jsonString JSON string @@ -269,12 +204,11 @@ private String toIndentedString(Object o) { public static SweepSchedule fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SweepSchedule.class); } - - /** - * Convert an instance of SweepSchedule to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SweepSchedule to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/Target.java b/src/main/java/com/adyen/model/balanceplatform/Target.java index f88f96c2a..83d34e589 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Target.java +++ b/src/main/java/com/adyen/model/balanceplatform/Target.java @@ -2,39 +2,45 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * Target + */ +@JsonPropertyOrder({ + Target.JSON_PROPERTY_ID, + Target.JSON_PROPERTY_TYPE +}) -/** Target */ -@JsonPropertyOrder({Target.JSON_PROPERTY_ID, Target.JSON_PROPERTY_TYPE}) public class Target { public static final String JSON_PROPERTY_ID = "id"; private String id; /** - * The resource for which you want to receive notifications. Possible values: * - * **balancePlatform**: receive notifications about balance changes in your entire balance - * platform. * **accountHolder**: receive notifications about balance changes of a specific user. - * * **balanceAccount**: receive notifications about balance changes in a specific balance - * account. + * The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account. */ public enum TypeEnum { + BALANCEACCOUNT(String.valueOf("balanceAccount")), ACCOUNTHOLDER(String.valueOf("accountHolder")), @@ -46,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -67,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -79,14 +81,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public Target() {} + public Target() { + } /** - * The unique identifier of the `target.type`. This can be the ID of your: * balance - * platform * account holder * account holder's balance account + * The unique identifier of the `target.type`. This can be the ID of your: * balance platform * account holder * account holder's balance account * - * @param id The unique identifier of the `target.type`. This can be the ID of your: * - * balance platform * account holder * account holder's balance account + * @param id The unique identifier of the `target.type`. This can be the ID of your: * balance platform * account holder * account holder's balance account * @return the current {@code Target} instance, allowing for method chaining */ public Target id(String id) { @@ -95,11 +96,8 @@ public Target id(String id) { } /** - * The unique identifier of the `target.type`. This can be the ID of your: * balance - * platform * account holder * account holder's balance account - * - * @return id The unique identifier of the `target.type`. This can be the ID of your: * - * balance platform * account holder * account holder's balance account + * The unique identifier of the `target.type`. This can be the ID of your: * balance platform * account holder * account holder's balance account + * @return id The unique identifier of the `target.type`. This can be the ID of your: * balance platform * account holder * account holder's balance account */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,11 +106,9 @@ public String getId() { } /** - * The unique identifier of the `target.type`. This can be the ID of your: * balance - * platform * account holder * account holder's balance account + * The unique identifier of the `target.type`. This can be the ID of your: * balance platform * account holder * account holder's balance account * - * @param id The unique identifier of the `target.type`. This can be the ID of your: * - * balance platform * account holder * account holder's balance account + * @param id The unique identifier of the `target.type`. This can be the ID of your: * balance platform * account holder * account holder's balance account */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,17 +117,9 @@ public void setId(String id) { } /** - * The resource for which you want to receive notifications. Possible values: * - * **balancePlatform**: receive notifications about balance changes in your entire balance - * platform. * **accountHolder**: receive notifications about balance changes of a specific user. - * * **balanceAccount**: receive notifications about balance changes in a specific balance - * account. + * The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account. * - * @param type The resource for which you want to receive notifications. Possible values: * - * **balancePlatform**: receive notifications about balance changes in your entire balance - * platform. * **accountHolder**: receive notifications about balance changes of a specific - * user. * **balanceAccount**: receive notifications about balance changes in a specific - * balance account. + * @param type The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account. * @return the current {@code Target} instance, allowing for method chaining */ public Target type(TypeEnum type) { @@ -140,17 +128,8 @@ public Target type(TypeEnum type) { } /** - * The resource for which you want to receive notifications. Possible values: * - * **balancePlatform**: receive notifications about balance changes in your entire balance - * platform. * **accountHolder**: receive notifications about balance changes of a specific user. - * * **balanceAccount**: receive notifications about balance changes in a specific balance - * account. - * - * @return type The resource for which you want to receive notifications. Possible values: * - * **balancePlatform**: receive notifications about balance changes in your entire balance - * platform. * **accountHolder**: receive notifications about balance changes of a specific - * user. * **balanceAccount**: receive notifications about balance changes in a specific - * balance account. + * The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account. + * @return type The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,17 +138,9 @@ public TypeEnum getType() { } /** - * The resource for which you want to receive notifications. Possible values: * - * **balancePlatform**: receive notifications about balance changes in your entire balance - * platform. * **accountHolder**: receive notifications about balance changes of a specific user. - * * **balanceAccount**: receive notifications about balance changes in a specific balance - * account. + * The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account. * - * @param type The resource for which you want to receive notifications. Possible values: * - * **balancePlatform**: receive notifications about balance changes in your entire balance - * platform. * **accountHolder**: receive notifications about balance changes of a specific - * user. * **balanceAccount**: receive notifications about balance changes in a specific - * balance account. + * @param type The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,7 +148,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this Target object is equal to o. */ + /** + * Return true if this Target object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -187,7 +160,8 @@ public boolean equals(Object o) { return false; } Target target = (Target) o; - return Objects.equals(this.id, target.id) && Objects.equals(this.type, target.type); + return Objects.equals(this.id, target.id) && + Objects.equals(this.type, target.type); } @Override @@ -206,7 +180,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -215,7 +190,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Target given an JSON string * * @param jsonString JSON string @@ -225,12 +200,11 @@ private String toIndentedString(Object o) { public static Target fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Target.class); } - - /** - * Convert an instance of Target to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Target to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/TargetUpdate.java b/src/main/java/com/adyen/model/balanceplatform/TargetUpdate.java index 240936b7b..6ae387da6 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TargetUpdate.java +++ b/src/main/java/com/adyen/model/balanceplatform/TargetUpdate.java @@ -2,39 +2,45 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * TargetUpdate + */ +@JsonPropertyOrder({ + TargetUpdate.JSON_PROPERTY_ID, + TargetUpdate.JSON_PROPERTY_TYPE +}) -/** TargetUpdate */ -@JsonPropertyOrder({TargetUpdate.JSON_PROPERTY_ID, TargetUpdate.JSON_PROPERTY_TYPE}) public class TargetUpdate { public static final String JSON_PROPERTY_ID = "id"; private String id; /** - * The resource for which you want to receive notifications. Possible values: * - * **balancePlatform**: receive notifications about balance changes in your entire balance - * platform. * **accountHolder**: receive notifications about balance changes of a specific user. - * * **balanceAccount**: receive notifications about balance changes in a specific balance - * account. + * The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account. */ public enum TypeEnum { + BALANCEACCOUNT(String.valueOf("balanceAccount")), ACCOUNTHOLDER(String.valueOf("accountHolder")), @@ -46,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -67,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -79,14 +81,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public TargetUpdate() {} + public TargetUpdate() { + } /** - * The unique identifier of the `target.type`. This can be the ID of your: * balance - * platform * account holder * account holder's balance account + * The unique identifier of the `target.type`. This can be the ID of your: * balance platform * account holder * account holder's balance account * - * @param id The unique identifier of the `target.type`. This can be the ID of your: * - * balance platform * account holder * account holder's balance account + * @param id The unique identifier of the `target.type`. This can be the ID of your: * balance platform * account holder * account holder's balance account * @return the current {@code TargetUpdate} instance, allowing for method chaining */ public TargetUpdate id(String id) { @@ -95,11 +96,8 @@ public TargetUpdate id(String id) { } /** - * The unique identifier of the `target.type`. This can be the ID of your: * balance - * platform * account holder * account holder's balance account - * - * @return id The unique identifier of the `target.type`. This can be the ID of your: * - * balance platform * account holder * account holder's balance account + * The unique identifier of the `target.type`. This can be the ID of your: * balance platform * account holder * account holder's balance account + * @return id The unique identifier of the `target.type`. This can be the ID of your: * balance platform * account holder * account holder's balance account */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,11 +106,9 @@ public String getId() { } /** - * The unique identifier of the `target.type`. This can be the ID of your: * balance - * platform * account holder * account holder's balance account + * The unique identifier of the `target.type`. This can be the ID of your: * balance platform * account holder * account holder's balance account * - * @param id The unique identifier of the `target.type`. This can be the ID of your: * - * balance platform * account holder * account holder's balance account + * @param id The unique identifier of the `target.type`. This can be the ID of your: * balance platform * account holder * account holder's balance account */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,17 +117,9 @@ public void setId(String id) { } /** - * The resource for which you want to receive notifications. Possible values: * - * **balancePlatform**: receive notifications about balance changes in your entire balance - * platform. * **accountHolder**: receive notifications about balance changes of a specific user. - * * **balanceAccount**: receive notifications about balance changes in a specific balance - * account. + * The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account. * - * @param type The resource for which you want to receive notifications. Possible values: * - * **balancePlatform**: receive notifications about balance changes in your entire balance - * platform. * **accountHolder**: receive notifications about balance changes of a specific - * user. * **balanceAccount**: receive notifications about balance changes in a specific - * balance account. + * @param type The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account. * @return the current {@code TargetUpdate} instance, allowing for method chaining */ public TargetUpdate type(TypeEnum type) { @@ -140,17 +128,8 @@ public TargetUpdate type(TypeEnum type) { } /** - * The resource for which you want to receive notifications. Possible values: * - * **balancePlatform**: receive notifications about balance changes in your entire balance - * platform. * **accountHolder**: receive notifications about balance changes of a specific user. - * * **balanceAccount**: receive notifications about balance changes in a specific balance - * account. - * - * @return type The resource for which you want to receive notifications. Possible values: * - * **balancePlatform**: receive notifications about balance changes in your entire balance - * platform. * **accountHolder**: receive notifications about balance changes of a specific - * user. * **balanceAccount**: receive notifications about balance changes in a specific - * balance account. + * The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account. + * @return type The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,17 +138,9 @@ public TypeEnum getType() { } /** - * The resource for which you want to receive notifications. Possible values: * - * **balancePlatform**: receive notifications about balance changes in your entire balance - * platform. * **accountHolder**: receive notifications about balance changes of a specific user. - * * **balanceAccount**: receive notifications about balance changes in a specific balance - * account. + * The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account. * - * @param type The resource for which you want to receive notifications. Possible values: * - * **balancePlatform**: receive notifications about balance changes in your entire balance - * platform. * **accountHolder**: receive notifications about balance changes of a specific - * user. * **balanceAccount**: receive notifications about balance changes in a specific - * balance account. + * @param type The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,7 +148,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this TargetUpdate object is equal to o. */ + /** + * Return true if this TargetUpdate object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -187,7 +160,8 @@ public boolean equals(Object o) { return false; } TargetUpdate targetUpdate = (TargetUpdate) o; - return Objects.equals(this.id, targetUpdate.id) && Objects.equals(this.type, targetUpdate.type); + return Objects.equals(this.id, targetUpdate.id) && + Objects.equals(this.type, targetUpdate.type); } @Override @@ -206,7 +180,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -215,7 +190,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TargetUpdate given an JSON string * * @param jsonString JSON string @@ -225,12 +200,11 @@ private String toIndentedString(Object o) { public static TargetUpdate fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TargetUpdate.class); } - - /** - * Convert an instance of TargetUpdate to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TargetUpdate to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/ThresholdRepayment.java b/src/main/java/com/adyen/model/balanceplatform/ThresholdRepayment.java index 591e826a3..b99fde42f 100644 --- a/src/main/java/com/adyen/model/balanceplatform/ThresholdRepayment.java +++ b/src/main/java/com/adyen/model/balanceplatform/ThresholdRepayment.java @@ -2,33 +2,47 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ThresholdRepayment */ -@JsonPropertyOrder({ThresholdRepayment.JSON_PROPERTY_AMOUNT}) + +/** + * ThresholdRepayment + */ +@JsonPropertyOrder({ + ThresholdRepayment.JSON_PROPERTY_AMOUNT +}) + public class ThresholdRepayment { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; - public ThresholdRepayment() {} + public ThresholdRepayment() { + } /** * amount * - * @param amount + * @param amount * @return the current {@code ThresholdRepayment} instance, allowing for method chaining */ public ThresholdRepayment amount(Amount amount) { @@ -38,8 +52,7 @@ public ThresholdRepayment amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -50,7 +63,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,7 +71,9 @@ public void setAmount(Amount amount) { this.amount = amount; } - /** Return true if this ThresholdRepayment object is equal to o. */ + /** + * Return true if this ThresholdRepayment object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,7 +101,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,23 +111,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ThresholdRepayment given an JSON string * * @param jsonString JSON string * @return An instance of ThresholdRepayment - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ThresholdRepayment + * @throws JsonProcessingException if the JSON string is invalid with respect to ThresholdRepayment */ public static ThresholdRepayment fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThresholdRepayment.class); } - - /** - * Convert an instance of ThresholdRepayment to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ThresholdRepayment to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/TimeOfDay.java b/src/main/java/com/adyen/model/balanceplatform/TimeOfDay.java index f975493f6..b857d75e1 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TimeOfDay.java +++ b/src/main/java/com/adyen/model/balanceplatform/TimeOfDay.java @@ -2,23 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TimeOfDay */ -@JsonPropertyOrder({TimeOfDay.JSON_PROPERTY_END_TIME, TimeOfDay.JSON_PROPERTY_START_TIME}) + +/** + * TimeOfDay + */ +@JsonPropertyOrder({ + TimeOfDay.JSON_PROPERTY_END_TIME, + TimeOfDay.JSON_PROPERTY_START_TIME +}) + public class TimeOfDay { public static final String JSON_PROPERTY_END_TIME = "endTime"; private String endTime; @@ -26,14 +39,13 @@ public class TimeOfDay { public static final String JSON_PROPERTY_START_TIME = "startTime"; private String startTime; - public TimeOfDay() {} + public TimeOfDay() { + } /** - * The end time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, - * **22:30:00-03:00**. + * The end time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**. * - * @param endTime The end time in a time-only ISO-8601 extended offset format. For example: - * **08:00:00+02:00**, **22:30:00-03:00**. + * @param endTime The end time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**. * @return the current {@code TimeOfDay} instance, allowing for method chaining */ public TimeOfDay endTime(String endTime) { @@ -42,11 +54,8 @@ public TimeOfDay endTime(String endTime) { } /** - * The end time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, - * **22:30:00-03:00**. - * - * @return endTime The end time in a time-only ISO-8601 extended offset format. For example: - * **08:00:00+02:00**, **22:30:00-03:00**. + * The end time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**. + * @return endTime The end time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**. */ @JsonProperty(JSON_PROPERTY_END_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -55,11 +64,9 @@ public String getEndTime() { } /** - * The end time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, - * **22:30:00-03:00**. + * The end time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**. * - * @param endTime The end time in a time-only ISO-8601 extended offset format. For example: - * **08:00:00+02:00**, **22:30:00-03:00**. + * @param endTime The end time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**. */ @JsonProperty(JSON_PROPERTY_END_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,11 +75,9 @@ public void setEndTime(String endTime) { } /** - * The start time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, - * **22:30:00-03:00**. + * The start time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**. * - * @param startTime The start time in a time-only ISO-8601 extended offset format. For example: - * **08:00:00+02:00**, **22:30:00-03:00**. + * @param startTime The start time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**. * @return the current {@code TimeOfDay} instance, allowing for method chaining */ public TimeOfDay startTime(String startTime) { @@ -81,11 +86,8 @@ public TimeOfDay startTime(String startTime) { } /** - * The start time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, - * **22:30:00-03:00**. - * - * @return startTime The start time in a time-only ISO-8601 extended offset format. For example: - * **08:00:00+02:00**, **22:30:00-03:00**. + * The start time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**. + * @return startTime The start time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**. */ @JsonProperty(JSON_PROPERTY_START_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,11 +96,9 @@ public String getStartTime() { } /** - * The start time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, - * **22:30:00-03:00**. + * The start time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**. * - * @param startTime The start time in a time-only ISO-8601 extended offset format. For example: - * **08:00:00+02:00**, **22:30:00-03:00**. + * @param startTime The start time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**. */ @JsonProperty(JSON_PROPERTY_START_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,7 +106,9 @@ public void setStartTime(String startTime) { this.startTime = startTime; } - /** Return true if this TimeOfDay object is equal to o. */ + /** + * Return true if this TimeOfDay object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -116,8 +118,8 @@ public boolean equals(Object o) { return false; } TimeOfDay timeOfDay = (TimeOfDay) o; - return Objects.equals(this.endTime, timeOfDay.endTime) - && Objects.equals(this.startTime, timeOfDay.startTime); + return Objects.equals(this.endTime, timeOfDay.endTime) && + Objects.equals(this.startTime, timeOfDay.startTime); } @Override @@ -136,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TimeOfDay given an JSON string * * @param jsonString JSON string @@ -155,12 +158,11 @@ private String toIndentedString(Object o) { public static TimeOfDay fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TimeOfDay.class); } - - /** - * Convert an instance of TimeOfDay to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TimeOfDay to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/TimeOfDayRestriction.java b/src/main/java/com/adyen/model/balanceplatform/TimeOfDayRestriction.java index 0bed38d2a..470315e1c 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TimeOfDayRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/TimeOfDayRestriction.java @@ -2,26 +2,37 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.TimeOfDay; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TimeOfDayRestriction */ + +/** + * TimeOfDayRestriction + */ @JsonPropertyOrder({ TimeOfDayRestriction.JSON_PROPERTY_OPERATION, TimeOfDayRestriction.JSON_PROPERTY_VALUE }) + public class TimeOfDayRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -29,7 +40,8 @@ public class TimeOfDayRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private TimeOfDay value; - public TimeOfDayRestriction() {} + public TimeOfDayRestriction() { + } /** * Defines how the condition must be evaluated. @@ -44,7 +56,6 @@ public TimeOfDayRestriction operation(String operation) { /** * Defines how the condition must be evaluated. - * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -67,7 +78,7 @@ public void setOperation(String operation) { /** * value * - * @param value + * @param value * @return the current {@code TimeOfDayRestriction} instance, allowing for method chaining */ public TimeOfDayRestriction value(TimeOfDay value) { @@ -77,8 +88,7 @@ public TimeOfDayRestriction value(TimeOfDay value) { /** * Get value - * - * @return value + * @return value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -89,7 +99,7 @@ public TimeOfDay getValue() { /** * value * - * @param value + * @param value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,7 +107,9 @@ public void setValue(TimeOfDay value) { this.value = value; } - /** Return true if this TimeOfDayRestriction object is equal to o. */ + /** + * Return true if this TimeOfDayRestriction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -107,8 +119,8 @@ public boolean equals(Object o) { return false; } TimeOfDayRestriction timeOfDayRestriction = (TimeOfDayRestriction) o; - return Objects.equals(this.operation, timeOfDayRestriction.operation) - && Objects.equals(this.value, timeOfDayRestriction.value); + return Objects.equals(this.operation, timeOfDayRestriction.operation) && + Objects.equals(this.value, timeOfDayRestriction.value); } @Override @@ -127,7 +139,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,23 +149,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TimeOfDayRestriction given an JSON string * * @param jsonString JSON string * @return An instance of TimeOfDayRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TimeOfDayRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to TimeOfDayRestriction */ public static TimeOfDayRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TimeOfDayRestriction.class); } - - /** - * Convert an instance of TimeOfDayRestriction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TimeOfDayRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/TokenRequestorsRestriction.java b/src/main/java/com/adyen/model/balanceplatform/TokenRequestorsRestriction.java index bb4db99db..d21d4c645 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TokenRequestorsRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/TokenRequestorsRestriction.java @@ -2,28 +2,38 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** TokenRequestorsRestriction */ +/** + * TokenRequestorsRestriction + */ @JsonPropertyOrder({ TokenRequestorsRestriction.JSON_PROPERTY_OPERATION, TokenRequestorsRestriction.JSON_PROPERTY_VALUE }) + public class TokenRequestorsRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -31,7 +41,8 @@ public class TokenRequestorsRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private List value; - public TokenRequestorsRestriction() {} + public TokenRequestorsRestriction() { + } /** * Defines how the condition must be evaluated. @@ -46,7 +57,6 @@ public TokenRequestorsRestriction operation(String operation) { /** * Defines how the condition must be evaluated. - * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -69,7 +79,7 @@ public void setOperation(String operation) { /** * value * - * @param value + * @param value * @return the current {@code TokenRequestorsRestriction} instance, allowing for method chaining */ public TokenRequestorsRestriction value(List value) { @@ -87,8 +97,7 @@ public TokenRequestorsRestriction addValueItem(String valueItem) { /** * Get value - * - * @return value + * @return value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,7 +108,7 @@ public List getValue() { /** * value * - * @param value + * @param value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,7 +116,9 @@ public void setValue(List value) { this.value = value; } - /** Return true if this TokenRequestorsRestriction object is equal to o. */ + /** + * Return true if this TokenRequestorsRestriction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -117,8 +128,8 @@ public boolean equals(Object o) { return false; } TokenRequestorsRestriction tokenRequestorsRestriction = (TokenRequestorsRestriction) o; - return Objects.equals(this.operation, tokenRequestorsRestriction.operation) - && Objects.equals(this.value, tokenRequestorsRestriction.value); + return Objects.equals(this.operation, tokenRequestorsRestriction.operation) && + Objects.equals(this.value, tokenRequestorsRestriction.value); } @Override @@ -137,7 +148,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -146,24 +158,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TokenRequestorsRestriction given an JSON string * * @param jsonString JSON string * @return An instance of TokenRequestorsRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TokenRequestorsRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to TokenRequestorsRestriction */ - public static TokenRequestorsRestriction fromJson(String jsonString) - throws JsonProcessingException { + public static TokenRequestorsRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TokenRequestorsRestriction.class); } - - /** - * Convert an instance of TokenRequestorsRestriction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TokenRequestorsRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/TotalAmountRestriction.java b/src/main/java/com/adyen/model/balanceplatform/TotalAmountRestriction.java index 6327e440f..e565e90e8 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TotalAmountRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/TotalAmountRestriction.java @@ -2,26 +2,37 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TotalAmountRestriction */ + +/** + * TotalAmountRestriction + */ @JsonPropertyOrder({ TotalAmountRestriction.JSON_PROPERTY_OPERATION, TotalAmountRestriction.JSON_PROPERTY_VALUE }) + public class TotalAmountRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -29,7 +40,8 @@ public class TotalAmountRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private Amount value; - public TotalAmountRestriction() {} + public TotalAmountRestriction() { + } /** * Defines how the condition must be evaluated. @@ -44,7 +56,6 @@ public TotalAmountRestriction operation(String operation) { /** * Defines how the condition must be evaluated. - * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -67,7 +78,7 @@ public void setOperation(String operation) { /** * value * - * @param value + * @param value * @return the current {@code TotalAmountRestriction} instance, allowing for method chaining */ public TotalAmountRestriction value(Amount value) { @@ -77,8 +88,7 @@ public TotalAmountRestriction value(Amount value) { /** * Get value - * - * @return value + * @return value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -89,7 +99,7 @@ public Amount getValue() { /** * value * - * @param value + * @param value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,7 +107,9 @@ public void setValue(Amount value) { this.value = value; } - /** Return true if this TotalAmountRestriction object is equal to o. */ + /** + * Return true if this TotalAmountRestriction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -107,8 +119,8 @@ public boolean equals(Object o) { return false; } TotalAmountRestriction totalAmountRestriction = (TotalAmountRestriction) o; - return Objects.equals(this.operation, totalAmountRestriction.operation) - && Objects.equals(this.value, totalAmountRestriction.value); + return Objects.equals(this.operation, totalAmountRestriction.operation) && + Objects.equals(this.value, totalAmountRestriction.value); } @Override @@ -127,7 +139,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,23 +149,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TotalAmountRestriction given an JSON string * * @param jsonString JSON string * @return An instance of TotalAmountRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TotalAmountRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to TotalAmountRestriction */ public static TotalAmountRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TotalAmountRestriction.class); } - - /** - * Convert an instance of TotalAmountRestriction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TotalAmountRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransactionRule.java b/src/main/java/com/adyen/model/balanceplatform/TransactionRule.java index c9473bd3a..3dd8c3662 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransactionRule.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransactionRule.java @@ -2,26 +2,34 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.TransactionRuleEntityKey; +import com.adyen.model.balanceplatform.TransactionRuleInterval; +import com.adyen.model.balanceplatform.TransactionRuleRestrictions; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** TransactionRule */ +/** + * TransactionRule + */ @JsonPropertyOrder({ TransactionRule.JSON_PROPERTY_AGGREGATION_LEVEL, TransactionRule.JSON_PROPERTY_DESCRIPTION, @@ -38,6 +46,7 @@ TransactionRule.JSON_PROPERTY_STATUS, TransactionRule.JSON_PROPERTY_TYPE }) + public class TransactionRule { public static final String JSON_PROPERTY_AGGREGATION_LEVEL = "aggregationLevel"; private String aggregationLevel; @@ -58,14 +67,10 @@ public class TransactionRule { private TransactionRuleInterval interval; /** - * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied - * when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the - * transaction is declined. * **scoreBased**: the transaction is assigned the `score` - * you specified. Adyen calculates the total score and if it exceeds 100, the transaction is - * declined. Default value: **hardBlock**. > **scoreBased** is not allowed when - * `requestType` is **bankTransfer**. + * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. */ public enum OutcomeTypeEnum { + ENFORCESCA(String.valueOf("enforceSCA")), HARDBLOCK(String.valueOf("hardBlock")), @@ -79,7 +84,7 @@ public enum OutcomeTypeEnum { private String value; OutcomeTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -100,11 +105,7 @@ public static OutcomeTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "OutcomeTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(OutcomeTypeEnum.values())); + LOG.warning("OutcomeTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(OutcomeTypeEnum.values())); return null; } } @@ -116,11 +117,10 @@ public static OutcomeTypeEnum fromValue(String value) { private String reference; /** - * Indicates the type of request to which the rule applies. If not provided, by default, this is - * set to **authorization**. Possible values: **authorization**, **authentication**, - * **tokenization**, **bankTransfer**. + * Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**. */ public enum RequestTypeEnum { + AUTHENTICATION(String.valueOf("authentication")), AUTHORIZATION(String.valueOf("authorization")), @@ -134,7 +134,7 @@ public enum RequestTypeEnum { private String value; RequestTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -155,11 +155,7 @@ public static RequestTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "RequestTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(RequestTypeEnum.values())); + LOG.warning("RequestTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RequestTypeEnum.values())); return null; } } @@ -177,11 +173,10 @@ public static RequestTypeEnum fromValue(String value) { private String startDate; /** - * The status of the transaction rule. If you provide a `startDate` in the request, the - * rule is automatically created with an **active** status. Possible values: **active**, - * **inactive**. + * The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created with an **active** status. Possible values: **active**, **inactive**. */ public enum StatusEnum { + ACTIVE(String.valueOf("active")), INACTIVE(String.valueOf("inactive")); @@ -191,7 +186,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -212,11 +207,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -225,15 +216,10 @@ public static StatusEnum fromValue(String value) { private StatusEnum status; /** - * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines - * if a rule blocks transactions based on individual characteristics or accumulates data. Possible - * values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add - * the amount or number of transactions for the lifetime of a payment instrument, and then decline - * a transaction when the specified limits are met. * **velocity**: add the amount or number of - * transactions based on a specified time interval, and then decline a transaction when the - * specified limits are met. + * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. */ public enum TypeEnum { + ALLOWLIST(String.valueOf("allowList")), BLOCKLIST(String.valueOf("blockList")), @@ -247,7 +233,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -268,11 +254,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -280,22 +262,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public TransactionRule() {} + public TransactionRule() { + } /** - * The level at which data must be accumulated, used in rules with `type` **velocity** - * or **maxUsage**. The level must be the [same or lower in - * hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the - * `entityKey`. If not provided, by default, the rule will accumulate data at the - * **paymentInstrument** level. Possible values: **paymentInstrument**, - * **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. + * The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`. If not provided, by default, the rule will accumulate data at the **paymentInstrument** level. Possible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. * - * @param aggregationLevel The level at which data must be accumulated, used in rules with - * `type` **velocity** or **maxUsage**. The level must be the [same or lower in - * hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the - * `entityKey`. If not provided, by default, the rule will accumulate data at the - * **paymentInstrument** level. Possible values: **paymentInstrument**, - * **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. + * @param aggregationLevel The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`. If not provided, by default, the rule will accumulate data at the **paymentInstrument** level. Possible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. * @return the current {@code TransactionRule} instance, allowing for method chaining */ public TransactionRule aggregationLevel(String aggregationLevel) { @@ -304,19 +277,8 @@ public TransactionRule aggregationLevel(String aggregationLevel) { } /** - * The level at which data must be accumulated, used in rules with `type` **velocity** - * or **maxUsage**. The level must be the [same or lower in - * hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the - * `entityKey`. If not provided, by default, the rule will accumulate data at the - * **paymentInstrument** level. Possible values: **paymentInstrument**, - * **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. - * - * @return aggregationLevel The level at which data must be accumulated, used in rules with - * `type` **velocity** or **maxUsage**. The level must be the [same or lower in - * hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the - * `entityKey`. If not provided, by default, the rule will accumulate data at the - * **paymentInstrument** level. Possible values: **paymentInstrument**, - * **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. + * The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`. If not provided, by default, the rule will accumulate data at the **paymentInstrument** level. Possible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. + * @return aggregationLevel The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`. If not provided, by default, the rule will accumulate data at the **paymentInstrument** level. Possible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. */ @JsonProperty(JSON_PROPERTY_AGGREGATION_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -325,19 +287,9 @@ public String getAggregationLevel() { } /** - * The level at which data must be accumulated, used in rules with `type` **velocity** - * or **maxUsage**. The level must be the [same or lower in - * hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the - * `entityKey`. If not provided, by default, the rule will accumulate data at the - * **paymentInstrument** level. Possible values: **paymentInstrument**, - * **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. + * The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`. If not provided, by default, the rule will accumulate data at the **paymentInstrument** level. Possible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. * - * @param aggregationLevel The level at which data must be accumulated, used in rules with - * `type` **velocity** or **maxUsage**. The level must be the [same or lower in - * hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the - * `entityKey`. If not provided, by default, the rule will accumulate data at the - * **paymentInstrument** level. Possible values: **paymentInstrument**, - * **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. + * @param aggregationLevel The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`. If not provided, by default, the rule will accumulate data at the **paymentInstrument** level. Possible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. */ @JsonProperty(JSON_PROPERTY_AGGREGATION_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -358,7 +310,6 @@ public TransactionRule description(String description) { /** * Your description for the transaction rule. - * * @return description Your description for the transaction rule. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -379,13 +330,9 @@ public void setDescription(String description) { } /** - * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. - * For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until - * the rule status is set to **inactive**. + * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**. * - * @param endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset - * date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule - * will be evaluated until the rule status is set to **inactive**. + * @param endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**. * @return the current {@code TransactionRule} instance, allowing for method chaining */ public TransactionRule endDate(String endDate) { @@ -394,13 +341,8 @@ public TransactionRule endDate(String endDate) { } /** - * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. - * For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until - * the rule status is set to **inactive**. - * - * @return endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset - * date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule - * will be evaluated until the rule status is set to **inactive**. + * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**. + * @return endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**. */ @JsonProperty(JSON_PROPERTY_END_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -409,13 +351,9 @@ public String getEndDate() { } /** - * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. - * For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until - * the rule status is set to **inactive**. + * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**. * - * @param endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset - * date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule - * will be evaluated until the rule status is set to **inactive**. + * @param endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**. */ @JsonProperty(JSON_PROPERTY_END_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -426,7 +364,7 @@ public void setEndDate(String endDate) { /** * entityKey * - * @param entityKey + * @param entityKey * @return the current {@code TransactionRule} instance, allowing for method chaining */ public TransactionRule entityKey(TransactionRuleEntityKey entityKey) { @@ -436,8 +374,7 @@ public TransactionRule entityKey(TransactionRuleEntityKey entityKey) { /** * Get entityKey - * - * @return entityKey + * @return entityKey */ @JsonProperty(JSON_PROPERTY_ENTITY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -448,7 +385,7 @@ public TransactionRuleEntityKey getEntityKey() { /** * entityKey * - * @param entityKey + * @param entityKey */ @JsonProperty(JSON_PROPERTY_ENTITY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -469,7 +406,6 @@ public TransactionRule id(String id) { /** * The unique identifier of the transaction rule. - * * @return id The unique identifier of the transaction rule. */ @JsonProperty(JSON_PROPERTY_ID) @@ -492,7 +428,7 @@ public void setId(String id) { /** * interval * - * @param interval + * @param interval * @return the current {@code TransactionRule} instance, allowing for method chaining */ public TransactionRule interval(TransactionRuleInterval interval) { @@ -502,8 +438,7 @@ public TransactionRule interval(TransactionRuleInterval interval) { /** * Get interval - * - * @return interval + * @return interval */ @JsonProperty(JSON_PROPERTY_INTERVAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -514,7 +449,7 @@ public TransactionRuleInterval getInterval() { /** * interval * - * @param interval + * @param interval */ @JsonProperty(JSON_PROPERTY_INTERVAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -523,19 +458,9 @@ public void setInterval(TransactionRuleInterval interval) { } /** - * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied - * when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the - * transaction is declined. * **scoreBased**: the transaction is assigned the `score` - * you specified. Adyen calculates the total score and if it exceeds 100, the transaction is - * declined. Default value: **hardBlock**. > **scoreBased** is not allowed when - * `requestType` is **bankTransfer**. + * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. * - * @param outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that - * will be applied when a transaction meets the conditions of the rule. Possible values: * - * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned - * the `score` you specified. Adyen calculates the total score and if it exceeds - * 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not - * allowed when `requestType` is **bankTransfer**. + * @param outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. * @return the current {@code TransactionRule} instance, allowing for method chaining */ public TransactionRule outcomeType(OutcomeTypeEnum outcomeType) { @@ -544,19 +469,8 @@ public TransactionRule outcomeType(OutcomeTypeEnum outcomeType) { } /** - * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied - * when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the - * transaction is declined. * **scoreBased**: the transaction is assigned the `score` - * you specified. Adyen calculates the total score and if it exceeds 100, the transaction is - * declined. Default value: **hardBlock**. > **scoreBased** is not allowed when - * `requestType` is **bankTransfer**. - * - * @return outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) - * that will be applied when a transaction meets the conditions of the rule. Possible values: - * * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned - * the `score` you specified. Adyen calculates the total score and if it exceeds - * 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not - * allowed when `requestType` is **bankTransfer**. + * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. + * @return outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. */ @JsonProperty(JSON_PROPERTY_OUTCOME_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -565,19 +479,9 @@ public OutcomeTypeEnum getOutcomeType() { } /** - * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied - * when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the - * transaction is declined. * **scoreBased**: the transaction is assigned the `score` - * you specified. Adyen calculates the total score and if it exceeds 100, the transaction is - * declined. Default value: **hardBlock**. > **scoreBased** is not allowed when - * `requestType` is **bankTransfer**. + * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. * - * @param outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that - * will be applied when a transaction meets the conditions of the rule. Possible values: * - * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned - * the `score` you specified. Adyen calculates the total score and if it exceeds - * 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not - * allowed when `requestType` is **bankTransfer**. + * @param outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. */ @JsonProperty(JSON_PROPERTY_OUTCOME_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -598,7 +502,6 @@ public TransactionRule reference(String reference) { /** * Your reference for the transaction rule. - * * @return reference Your reference for the transaction rule. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -619,13 +522,9 @@ public void setReference(String reference) { } /** - * Indicates the type of request to which the rule applies. If not provided, by default, this is - * set to **authorization**. Possible values: **authorization**, **authentication**, - * **tokenization**, **bankTransfer**. + * Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**. * - * @param requestType Indicates the type of request to which the rule applies. If not provided, by - * default, this is set to **authorization**. Possible values: **authorization**, - * **authentication**, **tokenization**, **bankTransfer**. + * @param requestType Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**. * @return the current {@code TransactionRule} instance, allowing for method chaining */ public TransactionRule requestType(RequestTypeEnum requestType) { @@ -634,13 +533,8 @@ public TransactionRule requestType(RequestTypeEnum requestType) { } /** - * Indicates the type of request to which the rule applies. If not provided, by default, this is - * set to **authorization**. Possible values: **authorization**, **authentication**, - * **tokenization**, **bankTransfer**. - * - * @return requestType Indicates the type of request to which the rule applies. If not provided, - * by default, this is set to **authorization**. Possible values: **authorization**, - * **authentication**, **tokenization**, **bankTransfer**. + * Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**. + * @return requestType Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**. */ @JsonProperty(JSON_PROPERTY_REQUEST_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -649,13 +543,9 @@ public RequestTypeEnum getRequestType() { } /** - * Indicates the type of request to which the rule applies. If not provided, by default, this is - * set to **authorization**. Possible values: **authorization**, **authentication**, - * **tokenization**, **bankTransfer**. + * Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**. * - * @param requestType Indicates the type of request to which the rule applies. If not provided, by - * default, this is set to **authorization**. Possible values: **authorization**, - * **authentication**, **tokenization**, **bankTransfer**. + * @param requestType Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**. */ @JsonProperty(JSON_PROPERTY_REQUEST_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -666,7 +556,7 @@ public void setRequestType(RequestTypeEnum requestType) { /** * ruleRestrictions * - * @param ruleRestrictions + * @param ruleRestrictions * @return the current {@code TransactionRule} instance, allowing for method chaining */ public TransactionRule ruleRestrictions(TransactionRuleRestrictions ruleRestrictions) { @@ -676,8 +566,7 @@ public TransactionRule ruleRestrictions(TransactionRuleRestrictions ruleRestrict /** * Get ruleRestrictions - * - * @return ruleRestrictions + * @return ruleRestrictions */ @JsonProperty(JSON_PROPERTY_RULE_RESTRICTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -688,7 +577,7 @@ public TransactionRuleRestrictions getRuleRestrictions() { /** * ruleRestrictions * - * @param ruleRestrictions + * @param ruleRestrictions */ @JsonProperty(JSON_PROPERTY_RULE_RESTRICTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -697,13 +586,9 @@ public void setRuleRestrictions(TransactionRuleRestrictions ruleRestrictions) { } /** - * A positive or negative score applied to the transaction if it meets the conditions of the rule. - * Required when `outcomeType` is **scoreBased**. The value must be between **-100** and - * **100**. + * A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**. * - * @param score A positive or negative score applied to the transaction if it meets the conditions - * of the rule. Required when `outcomeType` is **scoreBased**. The value must be - * between **-100** and **100**. + * @param score A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**. * @return the current {@code TransactionRule} instance, allowing for method chaining */ public TransactionRule score(Integer score) { @@ -712,13 +597,8 @@ public TransactionRule score(Integer score) { } /** - * A positive or negative score applied to the transaction if it meets the conditions of the rule. - * Required when `outcomeType` is **scoreBased**. The value must be between **-100** and - * **100**. - * - * @return score A positive or negative score applied to the transaction if it meets the - * conditions of the rule. Required when `outcomeType` is **scoreBased**. The value - * must be between **-100** and **100**. + * A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**. + * @return score A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**. */ @JsonProperty(JSON_PROPERTY_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -727,13 +607,9 @@ public Integer getScore() { } /** - * A positive or negative score applied to the transaction if it meets the conditions of the rule. - * Required when `outcomeType` is **scoreBased**. The value must be between **-100** and - * **100**. + * A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**. * - * @param score A positive or negative score applied to the transaction if it meets the conditions - * of the rule. Required when `outcomeType` is **scoreBased**. The value must be - * between **-100** and **100**. + * @param score A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**. */ @JsonProperty(JSON_PROPERTY_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -742,14 +618,9 @@ public void setScore(Integer score) { } /** - * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time - * format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction - * rule, the `startDate` is set to the date when the rule status is set to **active**. + * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. * - * @param startDate The date when the rule will start to be evaluated, in ISO 8601 extended offset - * date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating - * a transaction rule, the `startDate` is set to the date when the rule status is - * set to **active**. + * @param startDate The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. * @return the current {@code TransactionRule} instance, allowing for method chaining */ public TransactionRule startDate(String startDate) { @@ -758,14 +629,8 @@ public TransactionRule startDate(String startDate) { } /** - * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time - * format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction - * rule, the `startDate` is set to the date when the rule status is set to **active**. - * - * @return startDate The date when the rule will start to be evaluated, in ISO 8601 extended - * offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when - * creating a transaction rule, the `startDate` is set to the date when the rule - * status is set to **active**. + * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. + * @return startDate The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. */ @JsonProperty(JSON_PROPERTY_START_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -774,14 +639,9 @@ public String getStartDate() { } /** - * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time - * format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction - * rule, the `startDate` is set to the date when the rule status is set to **active**. + * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. * - * @param startDate The date when the rule will start to be evaluated, in ISO 8601 extended offset - * date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating - * a transaction rule, the `startDate` is set to the date when the rule status is - * set to **active**. + * @param startDate The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. */ @JsonProperty(JSON_PROPERTY_START_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -790,13 +650,9 @@ public void setStartDate(String startDate) { } /** - * The status of the transaction rule. If you provide a `startDate` in the request, the - * rule is automatically created with an **active** status. Possible values: **active**, - * **inactive**. + * The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created with an **active** status. Possible values: **active**, **inactive**. * - * @param status The status of the transaction rule. If you provide a `startDate` in the - * request, the rule is automatically created with an **active** status. Possible values: - * **active**, **inactive**. + * @param status The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created with an **active** status. Possible values: **active**, **inactive**. * @return the current {@code TransactionRule} instance, allowing for method chaining */ public TransactionRule status(StatusEnum status) { @@ -805,13 +661,8 @@ public TransactionRule status(StatusEnum status) { } /** - * The status of the transaction rule. If you provide a `startDate` in the request, the - * rule is automatically created with an **active** status. Possible values: **active**, - * **inactive**. - * - * @return status The status of the transaction rule. If you provide a `startDate` in - * the request, the rule is automatically created with an **active** status. Possible values: - * **active**, **inactive**. + * The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created with an **active** status. Possible values: **active**, **inactive**. + * @return status The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created with an **active** status. Possible values: **active**, **inactive**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -820,13 +671,9 @@ public StatusEnum getStatus() { } /** - * The status of the transaction rule. If you provide a `startDate` in the request, the - * rule is automatically created with an **active** status. Possible values: **active**, - * **inactive**. + * The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created with an **active** status. Possible values: **active**, **inactive**. * - * @param status The status of the transaction rule. If you provide a `startDate` in the - * request, the rule is automatically created with an **active** status. Possible values: - * **active**, **inactive**. + * @param status The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created with an **active** status. Possible values: **active**, **inactive**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -835,21 +682,9 @@ public void setStatus(StatusEnum status) { } /** - * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines - * if a rule blocks transactions based on individual characteristics or accumulates data. Possible - * values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add - * the amount or number of transactions for the lifetime of a payment instrument, and then decline - * a transaction when the specified limits are met. * **velocity**: add the amount or number of - * transactions based on a specified time interval, and then decline a transaction when the - * specified limits are met. + * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. * - * @param type The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), - * which defines if a rule blocks transactions based on individual characteristics or - * accumulates data. Possible values: * **blockList**: decline a transaction when the - * conditions are met. * **maxUsage**: add the amount or number of transactions for the - * lifetime of a payment instrument, and then decline a transaction when the specified limits - * are met. * **velocity**: add the amount or number of transactions based on a specified time - * interval, and then decline a transaction when the specified limits are met. + * @param type The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. * @return the current {@code TransactionRule} instance, allowing for method chaining */ public TransactionRule type(TypeEnum type) { @@ -858,21 +693,8 @@ public TransactionRule type(TypeEnum type) { } /** - * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines - * if a rule blocks transactions based on individual characteristics or accumulates data. Possible - * values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add - * the amount or number of transactions for the lifetime of a payment instrument, and then decline - * a transaction when the specified limits are met. * **velocity**: add the amount or number of - * transactions based on a specified time interval, and then decline a transaction when the - * specified limits are met. - * - * @return type The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), - * which defines if a rule blocks transactions based on individual characteristics or - * accumulates data. Possible values: * **blockList**: decline a transaction when the - * conditions are met. * **maxUsage**: add the amount or number of transactions for the - * lifetime of a payment instrument, and then decline a transaction when the specified limits - * are met. * **velocity**: add the amount or number of transactions based on a specified time - * interval, and then decline a transaction when the specified limits are met. + * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. + * @return type The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -881,21 +703,9 @@ public TypeEnum getType() { } /** - * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines - * if a rule blocks transactions based on individual characteristics or accumulates data. Possible - * values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add - * the amount or number of transactions for the lifetime of a payment instrument, and then decline - * a transaction when the specified limits are met. * **velocity**: add the amount or number of - * transactions based on a specified time interval, and then decline a transaction when the - * specified limits are met. + * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. * - * @param type The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), - * which defines if a rule blocks transactions based on individual characteristics or - * accumulates data. Possible values: * **blockList**: decline a transaction when the - * conditions are met. * **maxUsage**: add the amount or number of transactions for the - * lifetime of a payment instrument, and then decline a transaction when the specified limits - * are met. * **velocity**: add the amount or number of transactions based on a specified time - * interval, and then decline a transaction when the specified limits are met. + * @param type The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -903,7 +713,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this TransactionRule object is equal to o. */ + /** + * Return true if this TransactionRule object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -913,39 +725,25 @@ public boolean equals(Object o) { return false; } TransactionRule transactionRule = (TransactionRule) o; - return Objects.equals(this.aggregationLevel, transactionRule.aggregationLevel) - && Objects.equals(this.description, transactionRule.description) - && Objects.equals(this.endDate, transactionRule.endDate) - && Objects.equals(this.entityKey, transactionRule.entityKey) - && Objects.equals(this.id, transactionRule.id) - && Objects.equals(this.interval, transactionRule.interval) - && Objects.equals(this.outcomeType, transactionRule.outcomeType) - && Objects.equals(this.reference, transactionRule.reference) - && Objects.equals(this.requestType, transactionRule.requestType) - && Objects.equals(this.ruleRestrictions, transactionRule.ruleRestrictions) - && Objects.equals(this.score, transactionRule.score) - && Objects.equals(this.startDate, transactionRule.startDate) - && Objects.equals(this.status, transactionRule.status) - && Objects.equals(this.type, transactionRule.type); + return Objects.equals(this.aggregationLevel, transactionRule.aggregationLevel) && + Objects.equals(this.description, transactionRule.description) && + Objects.equals(this.endDate, transactionRule.endDate) && + Objects.equals(this.entityKey, transactionRule.entityKey) && + Objects.equals(this.id, transactionRule.id) && + Objects.equals(this.interval, transactionRule.interval) && + Objects.equals(this.outcomeType, transactionRule.outcomeType) && + Objects.equals(this.reference, transactionRule.reference) && + Objects.equals(this.requestType, transactionRule.requestType) && + Objects.equals(this.ruleRestrictions, transactionRule.ruleRestrictions) && + Objects.equals(this.score, transactionRule.score) && + Objects.equals(this.startDate, transactionRule.startDate) && + Objects.equals(this.status, transactionRule.status) && + Objects.equals(this.type, transactionRule.type); } @Override public int hashCode() { - return Objects.hash( - aggregationLevel, - description, - endDate, - entityKey, - id, - interval, - outcomeType, - reference, - requestType, - ruleRestrictions, - score, - startDate, - status, - type); + return Objects.hash(aggregationLevel, description, endDate, entityKey, id, interval, outcomeType, reference, requestType, ruleRestrictions, score, startDate, status, type); } @Override @@ -971,7 +769,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -980,7 +779,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransactionRule given an JSON string * * @param jsonString JSON string @@ -990,12 +789,11 @@ private String toIndentedString(Object o) { public static TransactionRule fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionRule.class); } - - /** - * Convert an instance of TransactionRule to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransactionRule to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleEntityKey.java b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleEntityKey.java index 1a0616f80..552652cec 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleEntityKey.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleEntityKey.java @@ -2,26 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TransactionRuleEntityKey */ + +/** + * TransactionRuleEntityKey + */ @JsonPropertyOrder({ TransactionRuleEntityKey.JSON_PROPERTY_ENTITY_REFERENCE, TransactionRuleEntityKey.JSON_PROPERTY_ENTITY_TYPE }) + public class TransactionRuleEntityKey { public static final String JSON_PROPERTY_ENTITY_REFERENCE = "entityReference"; private String entityReference; @@ -29,7 +39,8 @@ public class TransactionRuleEntityKey { public static final String JSON_PROPERTY_ENTITY_TYPE = "entityType"; private String entityType; - public TransactionRuleEntityKey() {} + public TransactionRuleEntityKey() { + } /** * The unique identifier of the resource. @@ -44,7 +55,6 @@ public TransactionRuleEntityKey entityReference(String entityReference) { /** * The unique identifier of the resource. - * * @return entityReference The unique identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ENTITY_REFERENCE) @@ -65,12 +75,9 @@ public void setEntityReference(String entityReference) { } /** - * The type of resource. Possible values: **balancePlatform**, **paymentInstrumentGroup**, - * **accountHolder**, **balanceAccount**, or **paymentInstrument**. + * The type of resource. Possible values: **balancePlatform**, **paymentInstrumentGroup**, **accountHolder**, **balanceAccount**, or **paymentInstrument**. * - * @param entityType The type of resource. Possible values: **balancePlatform**, - * **paymentInstrumentGroup**, **accountHolder**, **balanceAccount**, or - * **paymentInstrument**. + * @param entityType The type of resource. Possible values: **balancePlatform**, **paymentInstrumentGroup**, **accountHolder**, **balanceAccount**, or **paymentInstrument**. * @return the current {@code TransactionRuleEntityKey} instance, allowing for method chaining */ public TransactionRuleEntityKey entityType(String entityType) { @@ -79,12 +86,8 @@ public TransactionRuleEntityKey entityType(String entityType) { } /** - * The type of resource. Possible values: **balancePlatform**, **paymentInstrumentGroup**, - * **accountHolder**, **balanceAccount**, or **paymentInstrument**. - * - * @return entityType The type of resource. Possible values: **balancePlatform**, - * **paymentInstrumentGroup**, **accountHolder**, **balanceAccount**, or - * **paymentInstrument**. + * The type of resource. Possible values: **balancePlatform**, **paymentInstrumentGroup**, **accountHolder**, **balanceAccount**, or **paymentInstrument**. + * @return entityType The type of resource. Possible values: **balancePlatform**, **paymentInstrumentGroup**, **accountHolder**, **balanceAccount**, or **paymentInstrument**. */ @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -93,12 +96,9 @@ public String getEntityType() { } /** - * The type of resource. Possible values: **balancePlatform**, **paymentInstrumentGroup**, - * **accountHolder**, **balanceAccount**, or **paymentInstrument**. + * The type of resource. Possible values: **balancePlatform**, **paymentInstrumentGroup**, **accountHolder**, **balanceAccount**, or **paymentInstrument**. * - * @param entityType The type of resource. Possible values: **balancePlatform**, - * **paymentInstrumentGroup**, **accountHolder**, **balanceAccount**, or - * **paymentInstrument**. + * @param entityType The type of resource. Possible values: **balancePlatform**, **paymentInstrumentGroup**, **accountHolder**, **balanceAccount**, or **paymentInstrument**. */ @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,7 +106,9 @@ public void setEntityType(String entityType) { this.entityType = entityType; } - /** Return true if this TransactionRuleEntityKey object is equal to o. */ + /** + * Return true if this TransactionRuleEntityKey object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -116,8 +118,8 @@ public boolean equals(Object o) { return false; } TransactionRuleEntityKey transactionRuleEntityKey = (TransactionRuleEntityKey) o; - return Objects.equals(this.entityReference, transactionRuleEntityKey.entityReference) - && Objects.equals(this.entityType, transactionRuleEntityKey.entityType); + return Objects.equals(this.entityReference, transactionRuleEntityKey.entityReference) && + Objects.equals(this.entityType, transactionRuleEntityKey.entityType); } @Override @@ -136,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,24 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransactionRuleEntityKey given an JSON string * * @param jsonString JSON string * @return An instance of TransactionRuleEntityKey - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionRuleEntityKey + * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionRuleEntityKey */ - public static TransactionRuleEntityKey fromJson(String jsonString) - throws JsonProcessingException { + public static TransactionRuleEntityKey fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionRuleEntityKey.class); } - - /** - * Convert an instance of TransactionRuleEntityKey to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransactionRuleEntityKey to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleInfo.java b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleInfo.java index 5a380710e..b1d2c4c4d 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleInfo.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleInfo.java @@ -2,26 +2,34 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.TransactionRuleEntityKey; +import com.adyen.model.balanceplatform.TransactionRuleInterval; +import com.adyen.model.balanceplatform.TransactionRuleRestrictions; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** TransactionRuleInfo */ +/** + * TransactionRuleInfo + */ @JsonPropertyOrder({ TransactionRuleInfo.JSON_PROPERTY_AGGREGATION_LEVEL, TransactionRuleInfo.JSON_PROPERTY_DESCRIPTION, @@ -37,6 +45,7 @@ TransactionRuleInfo.JSON_PROPERTY_STATUS, TransactionRuleInfo.JSON_PROPERTY_TYPE }) + public class TransactionRuleInfo { public static final String JSON_PROPERTY_AGGREGATION_LEVEL = "aggregationLevel"; private String aggregationLevel; @@ -54,14 +63,10 @@ public class TransactionRuleInfo { private TransactionRuleInterval interval; /** - * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied - * when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the - * transaction is declined. * **scoreBased**: the transaction is assigned the `score` - * you specified. Adyen calculates the total score and if it exceeds 100, the transaction is - * declined. Default value: **hardBlock**. > **scoreBased** is not allowed when - * `requestType` is **bankTransfer**. + * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. */ public enum OutcomeTypeEnum { + ENFORCESCA(String.valueOf("enforceSCA")), HARDBLOCK(String.valueOf("hardBlock")), @@ -75,7 +80,7 @@ public enum OutcomeTypeEnum { private String value; OutcomeTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -96,11 +101,7 @@ public static OutcomeTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "OutcomeTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(OutcomeTypeEnum.values())); + LOG.warning("OutcomeTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(OutcomeTypeEnum.values())); return null; } } @@ -112,11 +113,10 @@ public static OutcomeTypeEnum fromValue(String value) { private String reference; /** - * Indicates the type of request to which the rule applies. If not provided, by default, this is - * set to **authorization**. Possible values: **authorization**, **authentication**, - * **tokenization**, **bankTransfer**. + * Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**. */ public enum RequestTypeEnum { + AUTHENTICATION(String.valueOf("authentication")), AUTHORIZATION(String.valueOf("authorization")), @@ -130,7 +130,7 @@ public enum RequestTypeEnum { private String value; RequestTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -151,11 +151,7 @@ public static RequestTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "RequestTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(RequestTypeEnum.values())); + LOG.warning("RequestTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RequestTypeEnum.values())); return null; } } @@ -173,11 +169,10 @@ public static RequestTypeEnum fromValue(String value) { private String startDate; /** - * The status of the transaction rule. If you provide a `startDate` in the request, the - * rule is automatically created with an **active** status. Possible values: **active**, - * **inactive**. + * The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created with an **active** status. Possible values: **active**, **inactive**. */ public enum StatusEnum { + ACTIVE(String.valueOf("active")), INACTIVE(String.valueOf("inactive")); @@ -187,7 +182,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -208,11 +203,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -221,15 +212,10 @@ public static StatusEnum fromValue(String value) { private StatusEnum status; /** - * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines - * if a rule blocks transactions based on individual characteristics or accumulates data. Possible - * values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add - * the amount or number of transactions for the lifetime of a payment instrument, and then decline - * a transaction when the specified limits are met. * **velocity**: add the amount or number of - * transactions based on a specified time interval, and then decline a transaction when the - * specified limits are met. + * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. */ public enum TypeEnum { + ALLOWLIST(String.valueOf("allowList")), BLOCKLIST(String.valueOf("blockList")), @@ -243,7 +229,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -264,11 +250,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -276,22 +258,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public TransactionRuleInfo() {} + public TransactionRuleInfo() { + } /** - * The level at which data must be accumulated, used in rules with `type` **velocity** - * or **maxUsage**. The level must be the [same or lower in - * hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the - * `entityKey`. If not provided, by default, the rule will accumulate data at the - * **paymentInstrument** level. Possible values: **paymentInstrument**, - * **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. + * The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`. If not provided, by default, the rule will accumulate data at the **paymentInstrument** level. Possible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. * - * @param aggregationLevel The level at which data must be accumulated, used in rules with - * `type` **velocity** or **maxUsage**. The level must be the [same or lower in - * hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the - * `entityKey`. If not provided, by default, the rule will accumulate data at the - * **paymentInstrument** level. Possible values: **paymentInstrument**, - * **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. + * @param aggregationLevel The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`. If not provided, by default, the rule will accumulate data at the **paymentInstrument** level. Possible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. * @return the current {@code TransactionRuleInfo} instance, allowing for method chaining */ public TransactionRuleInfo aggregationLevel(String aggregationLevel) { @@ -300,19 +273,8 @@ public TransactionRuleInfo aggregationLevel(String aggregationLevel) { } /** - * The level at which data must be accumulated, used in rules with `type` **velocity** - * or **maxUsage**. The level must be the [same or lower in - * hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the - * `entityKey`. If not provided, by default, the rule will accumulate data at the - * **paymentInstrument** level. Possible values: **paymentInstrument**, - * **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. - * - * @return aggregationLevel The level at which data must be accumulated, used in rules with - * `type` **velocity** or **maxUsage**. The level must be the [same or lower in - * hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the - * `entityKey`. If not provided, by default, the rule will accumulate data at the - * **paymentInstrument** level. Possible values: **paymentInstrument**, - * **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. + * The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`. If not provided, by default, the rule will accumulate data at the **paymentInstrument** level. Possible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. + * @return aggregationLevel The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`. If not provided, by default, the rule will accumulate data at the **paymentInstrument** level. Possible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. */ @JsonProperty(JSON_PROPERTY_AGGREGATION_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -321,19 +283,9 @@ public String getAggregationLevel() { } /** - * The level at which data must be accumulated, used in rules with `type` **velocity** - * or **maxUsage**. The level must be the [same or lower in - * hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the - * `entityKey`. If not provided, by default, the rule will accumulate data at the - * **paymentInstrument** level. Possible values: **paymentInstrument**, - * **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. + * The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`. If not provided, by default, the rule will accumulate data at the **paymentInstrument** level. Possible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. * - * @param aggregationLevel The level at which data must be accumulated, used in rules with - * `type` **velocity** or **maxUsage**. The level must be the [same or lower in - * hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the - * `entityKey`. If not provided, by default, the rule will accumulate data at the - * **paymentInstrument** level. Possible values: **paymentInstrument**, - * **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. + * @param aggregationLevel The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`. If not provided, by default, the rule will accumulate data at the **paymentInstrument** level. Possible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. */ @JsonProperty(JSON_PROPERTY_AGGREGATION_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -354,7 +306,6 @@ public TransactionRuleInfo description(String description) { /** * Your description for the transaction rule. - * * @return description Your description for the transaction rule. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -375,13 +326,9 @@ public void setDescription(String description) { } /** - * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. - * For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until - * the rule status is set to **inactive**. + * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**. * - * @param endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset - * date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule - * will be evaluated until the rule status is set to **inactive**. + * @param endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**. * @return the current {@code TransactionRuleInfo} instance, allowing for method chaining */ public TransactionRuleInfo endDate(String endDate) { @@ -390,13 +337,8 @@ public TransactionRuleInfo endDate(String endDate) { } /** - * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. - * For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until - * the rule status is set to **inactive**. - * - * @return endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset - * date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule - * will be evaluated until the rule status is set to **inactive**. + * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**. + * @return endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**. */ @JsonProperty(JSON_PROPERTY_END_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -405,13 +347,9 @@ public String getEndDate() { } /** - * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. - * For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until - * the rule status is set to **inactive**. + * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**. * - * @param endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset - * date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule - * will be evaluated until the rule status is set to **inactive**. + * @param endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**. */ @JsonProperty(JSON_PROPERTY_END_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -422,7 +360,7 @@ public void setEndDate(String endDate) { /** * entityKey * - * @param entityKey + * @param entityKey * @return the current {@code TransactionRuleInfo} instance, allowing for method chaining */ public TransactionRuleInfo entityKey(TransactionRuleEntityKey entityKey) { @@ -432,8 +370,7 @@ public TransactionRuleInfo entityKey(TransactionRuleEntityKey entityKey) { /** * Get entityKey - * - * @return entityKey + * @return entityKey */ @JsonProperty(JSON_PROPERTY_ENTITY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -444,7 +381,7 @@ public TransactionRuleEntityKey getEntityKey() { /** * entityKey * - * @param entityKey + * @param entityKey */ @JsonProperty(JSON_PROPERTY_ENTITY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -455,7 +392,7 @@ public void setEntityKey(TransactionRuleEntityKey entityKey) { /** * interval * - * @param interval + * @param interval * @return the current {@code TransactionRuleInfo} instance, allowing for method chaining */ public TransactionRuleInfo interval(TransactionRuleInterval interval) { @@ -465,8 +402,7 @@ public TransactionRuleInfo interval(TransactionRuleInterval interval) { /** * Get interval - * - * @return interval + * @return interval */ @JsonProperty(JSON_PROPERTY_INTERVAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -477,7 +413,7 @@ public TransactionRuleInterval getInterval() { /** * interval * - * @param interval + * @param interval */ @JsonProperty(JSON_PROPERTY_INTERVAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -486,19 +422,9 @@ public void setInterval(TransactionRuleInterval interval) { } /** - * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied - * when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the - * transaction is declined. * **scoreBased**: the transaction is assigned the `score` - * you specified. Adyen calculates the total score and if it exceeds 100, the transaction is - * declined. Default value: **hardBlock**. > **scoreBased** is not allowed when - * `requestType` is **bankTransfer**. + * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. * - * @param outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that - * will be applied when a transaction meets the conditions of the rule. Possible values: * - * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned - * the `score` you specified. Adyen calculates the total score and if it exceeds - * 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not - * allowed when `requestType` is **bankTransfer**. + * @param outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. * @return the current {@code TransactionRuleInfo} instance, allowing for method chaining */ public TransactionRuleInfo outcomeType(OutcomeTypeEnum outcomeType) { @@ -507,19 +433,8 @@ public TransactionRuleInfo outcomeType(OutcomeTypeEnum outcomeType) { } /** - * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied - * when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the - * transaction is declined. * **scoreBased**: the transaction is assigned the `score` - * you specified. Adyen calculates the total score and if it exceeds 100, the transaction is - * declined. Default value: **hardBlock**. > **scoreBased** is not allowed when - * `requestType` is **bankTransfer**. - * - * @return outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) - * that will be applied when a transaction meets the conditions of the rule. Possible values: - * * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned - * the `score` you specified. Adyen calculates the total score and if it exceeds - * 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not - * allowed when `requestType` is **bankTransfer**. + * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. + * @return outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. */ @JsonProperty(JSON_PROPERTY_OUTCOME_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -528,19 +443,9 @@ public OutcomeTypeEnum getOutcomeType() { } /** - * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied - * when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the - * transaction is declined. * **scoreBased**: the transaction is assigned the `score` - * you specified. Adyen calculates the total score and if it exceeds 100, the transaction is - * declined. Default value: **hardBlock**. > **scoreBased** is not allowed when - * `requestType` is **bankTransfer**. + * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. * - * @param outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that - * will be applied when a transaction meets the conditions of the rule. Possible values: * - * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned - * the `score` you specified. Adyen calculates the total score and if it exceeds - * 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not - * allowed when `requestType` is **bankTransfer**. + * @param outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. */ @JsonProperty(JSON_PROPERTY_OUTCOME_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -561,7 +466,6 @@ public TransactionRuleInfo reference(String reference) { /** * Your reference for the transaction rule. - * * @return reference Your reference for the transaction rule. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -582,13 +486,9 @@ public void setReference(String reference) { } /** - * Indicates the type of request to which the rule applies. If not provided, by default, this is - * set to **authorization**. Possible values: **authorization**, **authentication**, - * **tokenization**, **bankTransfer**. + * Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**. * - * @param requestType Indicates the type of request to which the rule applies. If not provided, by - * default, this is set to **authorization**. Possible values: **authorization**, - * **authentication**, **tokenization**, **bankTransfer**. + * @param requestType Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**. * @return the current {@code TransactionRuleInfo} instance, allowing for method chaining */ public TransactionRuleInfo requestType(RequestTypeEnum requestType) { @@ -597,13 +497,8 @@ public TransactionRuleInfo requestType(RequestTypeEnum requestType) { } /** - * Indicates the type of request to which the rule applies. If not provided, by default, this is - * set to **authorization**. Possible values: **authorization**, **authentication**, - * **tokenization**, **bankTransfer**. - * - * @return requestType Indicates the type of request to which the rule applies. If not provided, - * by default, this is set to **authorization**. Possible values: **authorization**, - * **authentication**, **tokenization**, **bankTransfer**. + * Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**. + * @return requestType Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**. */ @JsonProperty(JSON_PROPERTY_REQUEST_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -612,13 +507,9 @@ public RequestTypeEnum getRequestType() { } /** - * Indicates the type of request to which the rule applies. If not provided, by default, this is - * set to **authorization**. Possible values: **authorization**, **authentication**, - * **tokenization**, **bankTransfer**. + * Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**. * - * @param requestType Indicates the type of request to which the rule applies. If not provided, by - * default, this is set to **authorization**. Possible values: **authorization**, - * **authentication**, **tokenization**, **bankTransfer**. + * @param requestType Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**. */ @JsonProperty(JSON_PROPERTY_REQUEST_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -629,7 +520,7 @@ public void setRequestType(RequestTypeEnum requestType) { /** * ruleRestrictions * - * @param ruleRestrictions + * @param ruleRestrictions * @return the current {@code TransactionRuleInfo} instance, allowing for method chaining */ public TransactionRuleInfo ruleRestrictions(TransactionRuleRestrictions ruleRestrictions) { @@ -639,8 +530,7 @@ public TransactionRuleInfo ruleRestrictions(TransactionRuleRestrictions ruleRest /** * Get ruleRestrictions - * - * @return ruleRestrictions + * @return ruleRestrictions */ @JsonProperty(JSON_PROPERTY_RULE_RESTRICTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -651,7 +541,7 @@ public TransactionRuleRestrictions getRuleRestrictions() { /** * ruleRestrictions * - * @param ruleRestrictions + * @param ruleRestrictions */ @JsonProperty(JSON_PROPERTY_RULE_RESTRICTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -660,13 +550,9 @@ public void setRuleRestrictions(TransactionRuleRestrictions ruleRestrictions) { } /** - * A positive or negative score applied to the transaction if it meets the conditions of the rule. - * Required when `outcomeType` is **scoreBased**. The value must be between **-100** and - * **100**. + * A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**. * - * @param score A positive or negative score applied to the transaction if it meets the conditions - * of the rule. Required when `outcomeType` is **scoreBased**. The value must be - * between **-100** and **100**. + * @param score A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**. * @return the current {@code TransactionRuleInfo} instance, allowing for method chaining */ public TransactionRuleInfo score(Integer score) { @@ -675,13 +561,8 @@ public TransactionRuleInfo score(Integer score) { } /** - * A positive or negative score applied to the transaction if it meets the conditions of the rule. - * Required when `outcomeType` is **scoreBased**. The value must be between **-100** and - * **100**. - * - * @return score A positive or negative score applied to the transaction if it meets the - * conditions of the rule. Required when `outcomeType` is **scoreBased**. The value - * must be between **-100** and **100**. + * A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**. + * @return score A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**. */ @JsonProperty(JSON_PROPERTY_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -690,13 +571,9 @@ public Integer getScore() { } /** - * A positive or negative score applied to the transaction if it meets the conditions of the rule. - * Required when `outcomeType` is **scoreBased**. The value must be between **-100** and - * **100**. + * A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**. * - * @param score A positive or negative score applied to the transaction if it meets the conditions - * of the rule. Required when `outcomeType` is **scoreBased**. The value must be - * between **-100** and **100**. + * @param score A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**. */ @JsonProperty(JSON_PROPERTY_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -705,14 +582,9 @@ public void setScore(Integer score) { } /** - * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time - * format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction - * rule, the `startDate` is set to the date when the rule status is set to **active**. + * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. * - * @param startDate The date when the rule will start to be evaluated, in ISO 8601 extended offset - * date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating - * a transaction rule, the `startDate` is set to the date when the rule status is - * set to **active**. + * @param startDate The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. * @return the current {@code TransactionRuleInfo} instance, allowing for method chaining */ public TransactionRuleInfo startDate(String startDate) { @@ -721,14 +593,8 @@ public TransactionRuleInfo startDate(String startDate) { } /** - * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time - * format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction - * rule, the `startDate` is set to the date when the rule status is set to **active**. - * - * @return startDate The date when the rule will start to be evaluated, in ISO 8601 extended - * offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when - * creating a transaction rule, the `startDate` is set to the date when the rule - * status is set to **active**. + * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. + * @return startDate The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. */ @JsonProperty(JSON_PROPERTY_START_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -737,14 +603,9 @@ public String getStartDate() { } /** - * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time - * format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction - * rule, the `startDate` is set to the date when the rule status is set to **active**. + * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. * - * @param startDate The date when the rule will start to be evaluated, in ISO 8601 extended offset - * date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating - * a transaction rule, the `startDate` is set to the date when the rule status is - * set to **active**. + * @param startDate The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. */ @JsonProperty(JSON_PROPERTY_START_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -753,13 +614,9 @@ public void setStartDate(String startDate) { } /** - * The status of the transaction rule. If you provide a `startDate` in the request, the - * rule is automatically created with an **active** status. Possible values: **active**, - * **inactive**. + * The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created with an **active** status. Possible values: **active**, **inactive**. * - * @param status The status of the transaction rule. If you provide a `startDate` in the - * request, the rule is automatically created with an **active** status. Possible values: - * **active**, **inactive**. + * @param status The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created with an **active** status. Possible values: **active**, **inactive**. * @return the current {@code TransactionRuleInfo} instance, allowing for method chaining */ public TransactionRuleInfo status(StatusEnum status) { @@ -768,13 +625,8 @@ public TransactionRuleInfo status(StatusEnum status) { } /** - * The status of the transaction rule. If you provide a `startDate` in the request, the - * rule is automatically created with an **active** status. Possible values: **active**, - * **inactive**. - * - * @return status The status of the transaction rule. If you provide a `startDate` in - * the request, the rule is automatically created with an **active** status. Possible values: - * **active**, **inactive**. + * The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created with an **active** status. Possible values: **active**, **inactive**. + * @return status The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created with an **active** status. Possible values: **active**, **inactive**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -783,13 +635,9 @@ public StatusEnum getStatus() { } /** - * The status of the transaction rule. If you provide a `startDate` in the request, the - * rule is automatically created with an **active** status. Possible values: **active**, - * **inactive**. + * The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created with an **active** status. Possible values: **active**, **inactive**. * - * @param status The status of the transaction rule. If you provide a `startDate` in the - * request, the rule is automatically created with an **active** status. Possible values: - * **active**, **inactive**. + * @param status The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created with an **active** status. Possible values: **active**, **inactive**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -798,21 +646,9 @@ public void setStatus(StatusEnum status) { } /** - * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines - * if a rule blocks transactions based on individual characteristics or accumulates data. Possible - * values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add - * the amount or number of transactions for the lifetime of a payment instrument, and then decline - * a transaction when the specified limits are met. * **velocity**: add the amount or number of - * transactions based on a specified time interval, and then decline a transaction when the - * specified limits are met. + * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. * - * @param type The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), - * which defines if a rule blocks transactions based on individual characteristics or - * accumulates data. Possible values: * **blockList**: decline a transaction when the - * conditions are met. * **maxUsage**: add the amount or number of transactions for the - * lifetime of a payment instrument, and then decline a transaction when the specified limits - * are met. * **velocity**: add the amount or number of transactions based on a specified time - * interval, and then decline a transaction when the specified limits are met. + * @param type The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. * @return the current {@code TransactionRuleInfo} instance, allowing for method chaining */ public TransactionRuleInfo type(TypeEnum type) { @@ -821,21 +657,8 @@ public TransactionRuleInfo type(TypeEnum type) { } /** - * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines - * if a rule blocks transactions based on individual characteristics or accumulates data. Possible - * values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add - * the amount or number of transactions for the lifetime of a payment instrument, and then decline - * a transaction when the specified limits are met. * **velocity**: add the amount or number of - * transactions based on a specified time interval, and then decline a transaction when the - * specified limits are met. - * - * @return type The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), - * which defines if a rule blocks transactions based on individual characteristics or - * accumulates data. Possible values: * **blockList**: decline a transaction when the - * conditions are met. * **maxUsage**: add the amount or number of transactions for the - * lifetime of a payment instrument, and then decline a transaction when the specified limits - * are met. * **velocity**: add the amount or number of transactions based on a specified time - * interval, and then decline a transaction when the specified limits are met. + * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. + * @return type The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -844,21 +667,9 @@ public TypeEnum getType() { } /** - * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines - * if a rule blocks transactions based on individual characteristics or accumulates data. Possible - * values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add - * the amount or number of transactions for the lifetime of a payment instrument, and then decline - * a transaction when the specified limits are met. * **velocity**: add the amount or number of - * transactions based on a specified time interval, and then decline a transaction when the - * specified limits are met. + * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. * - * @param type The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), - * which defines if a rule blocks transactions based on individual characteristics or - * accumulates data. Possible values: * **blockList**: decline a transaction when the - * conditions are met. * **maxUsage**: add the amount or number of transactions for the - * lifetime of a payment instrument, and then decline a transaction when the specified limits - * are met. * **velocity**: add the amount or number of transactions based on a specified time - * interval, and then decline a transaction when the specified limits are met. + * @param type The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -866,7 +677,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this TransactionRuleInfo object is equal to o. */ + /** + * Return true if this TransactionRuleInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -876,37 +689,24 @@ public boolean equals(Object o) { return false; } TransactionRuleInfo transactionRuleInfo = (TransactionRuleInfo) o; - return Objects.equals(this.aggregationLevel, transactionRuleInfo.aggregationLevel) - && Objects.equals(this.description, transactionRuleInfo.description) - && Objects.equals(this.endDate, transactionRuleInfo.endDate) - && Objects.equals(this.entityKey, transactionRuleInfo.entityKey) - && Objects.equals(this.interval, transactionRuleInfo.interval) - && Objects.equals(this.outcomeType, transactionRuleInfo.outcomeType) - && Objects.equals(this.reference, transactionRuleInfo.reference) - && Objects.equals(this.requestType, transactionRuleInfo.requestType) - && Objects.equals(this.ruleRestrictions, transactionRuleInfo.ruleRestrictions) - && Objects.equals(this.score, transactionRuleInfo.score) - && Objects.equals(this.startDate, transactionRuleInfo.startDate) - && Objects.equals(this.status, transactionRuleInfo.status) - && Objects.equals(this.type, transactionRuleInfo.type); + return Objects.equals(this.aggregationLevel, transactionRuleInfo.aggregationLevel) && + Objects.equals(this.description, transactionRuleInfo.description) && + Objects.equals(this.endDate, transactionRuleInfo.endDate) && + Objects.equals(this.entityKey, transactionRuleInfo.entityKey) && + Objects.equals(this.interval, transactionRuleInfo.interval) && + Objects.equals(this.outcomeType, transactionRuleInfo.outcomeType) && + Objects.equals(this.reference, transactionRuleInfo.reference) && + Objects.equals(this.requestType, transactionRuleInfo.requestType) && + Objects.equals(this.ruleRestrictions, transactionRuleInfo.ruleRestrictions) && + Objects.equals(this.score, transactionRuleInfo.score) && + Objects.equals(this.startDate, transactionRuleInfo.startDate) && + Objects.equals(this.status, transactionRuleInfo.status) && + Objects.equals(this.type, transactionRuleInfo.type); } @Override public int hashCode() { - return Objects.hash( - aggregationLevel, - description, - endDate, - entityKey, - interval, - outcomeType, - reference, - requestType, - ruleRestrictions, - score, - startDate, - status, - type); + return Objects.hash(aggregationLevel, description, endDate, entityKey, interval, outcomeType, reference, requestType, ruleRestrictions, score, startDate, status, type); } @Override @@ -931,7 +731,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -940,23 +741,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransactionRuleInfo given an JSON string * * @param jsonString JSON string * @return An instance of TransactionRuleInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionRuleInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionRuleInfo */ public static TransactionRuleInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionRuleInfo.class); } - - /** - * Convert an instance of TransactionRuleInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransactionRuleInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleInterval.java b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleInterval.java index e9ecdc45d..68b149ceb 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleInterval.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleInterval.java @@ -2,26 +2,32 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.Duration; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** TransactionRuleInterval */ + +/** + * TransactionRuleInterval + */ @JsonPropertyOrder({ TransactionRuleInterval.JSON_PROPERTY_DAY_OF_MONTH, TransactionRuleInterval.JSON_PROPERTY_DAY_OF_WEEK, @@ -30,16 +36,16 @@ TransactionRuleInterval.JSON_PROPERTY_TIME_ZONE, TransactionRuleInterval.JSON_PROPERTY_TYPE }) + public class TransactionRuleInterval { public static final String JSON_PROPERTY_DAY_OF_MONTH = "dayOfMonth"; private Integer dayOfMonth; /** - * The day of week, used when the `duration.unit` is **weeks**. If not provided, by - * default, this is set to **monday**. Possible values: **sunday**, **monday**, **tuesday**, - * **wednesday**, **thursday**, **friday**. + * The day of week, used when the `duration.unit` is **weeks**. If not provided, by default, this is set to **monday**. Possible values: **sunday**, **monday**, **tuesday**, **wednesday**, **thursday**, **friday**. */ public enum DayOfWeekEnum { + FRIDAY(String.valueOf("friday")), MONDAY(String.valueOf("monday")), @@ -59,7 +65,7 @@ public enum DayOfWeekEnum { private String value; DayOfWeekEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -80,11 +86,7 @@ public static DayOfWeekEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "DayOfWeekEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(DayOfWeekEnum.values())); + LOG.warning("DayOfWeekEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(DayOfWeekEnum.values())); return null; } } @@ -102,19 +104,10 @@ public static DayOfWeekEnum fromValue(String value) { private String timeZone; /** - * The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during - * which the rule conditions and limits apply, and how often counters are reset. Possible values: - * * **perTransaction**: conditions are evaluated and the counters are reset for every - * transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the - * counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every first - * day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the lifetime of the - * payment instrument. * **rolling**: conditions are applied and the counters are reset based on a - * `duration`. If the reset date and time are not provided, Adyen applies the default - * reset time similar to fixed intervals. For example, if the duration is every two weeks, the - * counter resets every third Monday at 00:00:00 CET. * **sliding**: conditions are applied and - * the counters are reset based on the current time and a `duration` that you specify. + * The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the rule conditions and limits apply, and how often counters are reset. Possible values: * **perTransaction**: conditions are evaluated and the counters are reset for every transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every first day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the lifetime of the payment instrument. * **rolling**: conditions are applied and the counters are reset based on a `duration`. If the reset date and time are not provided, Adyen applies the default reset time similar to fixed intervals. For example, if the duration is every two weeks, the counter resets every third Monday at 00:00:00 CET. * **sliding**: conditions are applied and the counters are reset based on the current time and a `duration` that you specify. */ public enum TypeEnum { + DAILY(String.valueOf("daily")), LIFETIME(String.valueOf("lifetime")), @@ -134,7 +127,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -155,11 +148,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -167,14 +156,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public TransactionRuleInterval() {} + public TransactionRuleInterval() { + } /** - * The day of month, used when the `duration.unit` is **months**. If not provided, by - * default, this is set to **1**, the first day of the month. + * The day of month, used when the `duration.unit` is **months**. If not provided, by default, this is set to **1**, the first day of the month. * - * @param dayOfMonth The day of month, used when the `duration.unit` is **months**. If - * not provided, by default, this is set to **1**, the first day of the month. + * @param dayOfMonth The day of month, used when the `duration.unit` is **months**. If not provided, by default, this is set to **1**, the first day of the month. * @return the current {@code TransactionRuleInterval} instance, allowing for method chaining */ public TransactionRuleInterval dayOfMonth(Integer dayOfMonth) { @@ -183,11 +171,8 @@ public TransactionRuleInterval dayOfMonth(Integer dayOfMonth) { } /** - * The day of month, used when the `duration.unit` is **months**. If not provided, by - * default, this is set to **1**, the first day of the month. - * - * @return dayOfMonth The day of month, used when the `duration.unit` is **months**. If - * not provided, by default, this is set to **1**, the first day of the month. + * The day of month, used when the `duration.unit` is **months**. If not provided, by default, this is set to **1**, the first day of the month. + * @return dayOfMonth The day of month, used when the `duration.unit` is **months**. If not provided, by default, this is set to **1**, the first day of the month. */ @JsonProperty(JSON_PROPERTY_DAY_OF_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -196,11 +181,9 @@ public Integer getDayOfMonth() { } /** - * The day of month, used when the `duration.unit` is **months**. If not provided, by - * default, this is set to **1**, the first day of the month. + * The day of month, used when the `duration.unit` is **months**. If not provided, by default, this is set to **1**, the first day of the month. * - * @param dayOfMonth The day of month, used when the `duration.unit` is **months**. If - * not provided, by default, this is set to **1**, the first day of the month. + * @param dayOfMonth The day of month, used when the `duration.unit` is **months**. If not provided, by default, this is set to **1**, the first day of the month. */ @JsonProperty(JSON_PROPERTY_DAY_OF_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -209,13 +192,9 @@ public void setDayOfMonth(Integer dayOfMonth) { } /** - * The day of week, used when the `duration.unit` is **weeks**. If not provided, by - * default, this is set to **monday**. Possible values: **sunday**, **monday**, **tuesday**, - * **wednesday**, **thursday**, **friday**. + * The day of week, used when the `duration.unit` is **weeks**. If not provided, by default, this is set to **monday**. Possible values: **sunday**, **monday**, **tuesday**, **wednesday**, **thursday**, **friday**. * - * @param dayOfWeek The day of week, used when the `duration.unit` is **weeks**. If not - * provided, by default, this is set to **monday**. Possible values: **sunday**, **monday**, - * **tuesday**, **wednesday**, **thursday**, **friday**. + * @param dayOfWeek The day of week, used when the `duration.unit` is **weeks**. If not provided, by default, this is set to **monday**. Possible values: **sunday**, **monday**, **tuesday**, **wednesday**, **thursday**, **friday**. * @return the current {@code TransactionRuleInterval} instance, allowing for method chaining */ public TransactionRuleInterval dayOfWeek(DayOfWeekEnum dayOfWeek) { @@ -224,13 +203,8 @@ public TransactionRuleInterval dayOfWeek(DayOfWeekEnum dayOfWeek) { } /** - * The day of week, used when the `duration.unit` is **weeks**. If not provided, by - * default, this is set to **monday**. Possible values: **sunday**, **monday**, **tuesday**, - * **wednesday**, **thursday**, **friday**. - * - * @return dayOfWeek The day of week, used when the `duration.unit` is **weeks**. If not - * provided, by default, this is set to **monday**. Possible values: **sunday**, **monday**, - * **tuesday**, **wednesday**, **thursday**, **friday**. + * The day of week, used when the `duration.unit` is **weeks**. If not provided, by default, this is set to **monday**. Possible values: **sunday**, **monday**, **tuesday**, **wednesday**, **thursday**, **friday**. + * @return dayOfWeek The day of week, used when the `duration.unit` is **weeks**. If not provided, by default, this is set to **monday**. Possible values: **sunday**, **monday**, **tuesday**, **wednesday**, **thursday**, **friday**. */ @JsonProperty(JSON_PROPERTY_DAY_OF_WEEK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -239,13 +213,9 @@ public DayOfWeekEnum getDayOfWeek() { } /** - * The day of week, used when the `duration.unit` is **weeks**. If not provided, by - * default, this is set to **monday**. Possible values: **sunday**, **monday**, **tuesday**, - * **wednesday**, **thursday**, **friday**. + * The day of week, used when the `duration.unit` is **weeks**. If not provided, by default, this is set to **monday**. Possible values: **sunday**, **monday**, **tuesday**, **wednesday**, **thursday**, **friday**. * - * @param dayOfWeek The day of week, used when the `duration.unit` is **weeks**. If not - * provided, by default, this is set to **monday**. Possible values: **sunday**, **monday**, - * **tuesday**, **wednesday**, **thursday**, **friday**. + * @param dayOfWeek The day of week, used when the `duration.unit` is **weeks**. If not provided, by default, this is set to **monday**. Possible values: **sunday**, **monday**, **tuesday**, **wednesday**, **thursday**, **friday**. */ @JsonProperty(JSON_PROPERTY_DAY_OF_WEEK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -256,7 +226,7 @@ public void setDayOfWeek(DayOfWeekEnum dayOfWeek) { /** * duration * - * @param duration + * @param duration * @return the current {@code TransactionRuleInterval} instance, allowing for method chaining */ public TransactionRuleInterval duration(Duration duration) { @@ -266,8 +236,7 @@ public TransactionRuleInterval duration(Duration duration) { /** * Get duration - * - * @return duration + * @return duration */ @JsonProperty(JSON_PROPERTY_DURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -278,7 +247,7 @@ public Duration getDuration() { /** * duration * - * @param duration + * @param duration */ @JsonProperty(JSON_PROPERTY_DURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -287,12 +256,9 @@ public void setDuration(Duration duration) { } /** - * The time of day, in **hh:mm:ss** format, used when the `duration.unit` is **hours**. - * If not provided, by default, this is set to **00:00:00**. + * The time of day, in **hh:mm:ss** format, used when the `duration.unit` is **hours**. If not provided, by default, this is set to **00:00:00**. * - * @param timeOfDay The time of day, in **hh:mm:ss** format, used when the - * `duration.unit` is **hours**. If not provided, by default, this is set to - * **00:00:00**. + * @param timeOfDay The time of day, in **hh:mm:ss** format, used when the `duration.unit` is **hours**. If not provided, by default, this is set to **00:00:00**. * @return the current {@code TransactionRuleInterval} instance, allowing for method chaining */ public TransactionRuleInterval timeOfDay(String timeOfDay) { @@ -301,12 +267,8 @@ public TransactionRuleInterval timeOfDay(String timeOfDay) { } /** - * The time of day, in **hh:mm:ss** format, used when the `duration.unit` is **hours**. - * If not provided, by default, this is set to **00:00:00**. - * - * @return timeOfDay The time of day, in **hh:mm:ss** format, used when the - * `duration.unit` is **hours**. If not provided, by default, this is set to - * **00:00:00**. + * The time of day, in **hh:mm:ss** format, used when the `duration.unit` is **hours**. If not provided, by default, this is set to **00:00:00**. + * @return timeOfDay The time of day, in **hh:mm:ss** format, used when the `duration.unit` is **hours**. If not provided, by default, this is set to **00:00:00**. */ @JsonProperty(JSON_PROPERTY_TIME_OF_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -315,12 +277,9 @@ public String getTimeOfDay() { } /** - * The time of day, in **hh:mm:ss** format, used when the `duration.unit` is **hours**. - * If not provided, by default, this is set to **00:00:00**. + * The time of day, in **hh:mm:ss** format, used when the `duration.unit` is **hours**. If not provided, by default, this is set to **00:00:00**. * - * @param timeOfDay The time of day, in **hh:mm:ss** format, used when the - * `duration.unit` is **hours**. If not provided, by default, this is set to - * **00:00:00**. + * @param timeOfDay The time of day, in **hh:mm:ss** format, used when the `duration.unit` is **hours**. If not provided, by default, this is set to **00:00:00**. */ @JsonProperty(JSON_PROPERTY_TIME_OF_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -329,11 +288,9 @@ public void setTimeOfDay(String timeOfDay) { } /** - * The [time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For example, - * **Europe/Amsterdam**. By default, this is set to **UTC**. + * The [time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For example, **Europe/Amsterdam**. By default, this is set to **UTC**. * - * @param timeZone The [time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). - * For example, **Europe/Amsterdam**. By default, this is set to **UTC**. + * @param timeZone The [time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For example, **Europe/Amsterdam**. By default, this is set to **UTC**. * @return the current {@code TransactionRuleInterval} instance, allowing for method chaining */ public TransactionRuleInterval timeZone(String timeZone) { @@ -342,11 +299,8 @@ public TransactionRuleInterval timeZone(String timeZone) { } /** - * The [time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For example, - * **Europe/Amsterdam**. By default, this is set to **UTC**. - * - * @return timeZone The [time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). - * For example, **Europe/Amsterdam**. By default, this is set to **UTC**. + * The [time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For example, **Europe/Amsterdam**. By default, this is set to **UTC**. + * @return timeZone The [time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For example, **Europe/Amsterdam**. By default, this is set to **UTC**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -355,11 +309,9 @@ public String getTimeZone() { } /** - * The [time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For example, - * **Europe/Amsterdam**. By default, this is set to **UTC**. + * The [time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For example, **Europe/Amsterdam**. By default, this is set to **UTC**. * - * @param timeZone The [time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). - * For example, **Europe/Amsterdam**. By default, this is set to **UTC**. + * @param timeZone The [time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For example, **Europe/Amsterdam**. By default, this is set to **UTC**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -368,31 +320,9 @@ public void setTimeZone(String timeZone) { } /** - * The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during - * which the rule conditions and limits apply, and how often counters are reset. Possible values: - * * **perTransaction**: conditions are evaluated and the counters are reset for every - * transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the - * counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every first - * day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the lifetime of the - * payment instrument. * **rolling**: conditions are applied and the counters are reset based on a - * `duration`. If the reset date and time are not provided, Adyen applies the default - * reset time similar to fixed intervals. For example, if the duration is every two weeks, the - * counter resets every third Monday at 00:00:00 CET. * **sliding**: conditions are applied and - * the counters are reset based on the current time and a `duration` that you specify. + * The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the rule conditions and limits apply, and how often counters are reset. Possible values: * **perTransaction**: conditions are evaluated and the counters are reset for every transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every first day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the lifetime of the payment instrument. * **rolling**: conditions are applied and the counters are reset based on a `duration`. If the reset date and time are not provided, Adyen applies the default reset time similar to fixed intervals. For example, if the duration is every two weeks, the counter resets every third Monday at 00:00:00 CET. * **sliding**: conditions are applied and the counters are reset based on the current time and a `duration` that you specify. * - * @param type The [type of - * interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the - * rule conditions and limits apply, and how often counters are reset. Possible values: * - * **perTransaction**: conditions are evaluated and the counters are reset for every - * transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the - * counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every - * first day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the - * lifetime of the payment instrument. * **rolling**: conditions are applied and the counters - * are reset based on a `duration`. If the reset date and time are not provided, - * Adyen applies the default reset time similar to fixed intervals. For example, if the - * duration is every two weeks, the counter resets every third Monday at 00:00:00 CET. * - * **sliding**: conditions are applied and the counters are reset based on the current time - * and a `duration` that you specify. + * @param type The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the rule conditions and limits apply, and how often counters are reset. Possible values: * **perTransaction**: conditions are evaluated and the counters are reset for every transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every first day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the lifetime of the payment instrument. * **rolling**: conditions are applied and the counters are reset based on a `duration`. If the reset date and time are not provided, Adyen applies the default reset time similar to fixed intervals. For example, if the duration is every two weeks, the counter resets every third Monday at 00:00:00 CET. * **sliding**: conditions are applied and the counters are reset based on the current time and a `duration` that you specify. * @return the current {@code TransactionRuleInterval} instance, allowing for method chaining */ public TransactionRuleInterval type(TypeEnum type) { @@ -401,31 +331,8 @@ public TransactionRuleInterval type(TypeEnum type) { } /** - * The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during - * which the rule conditions and limits apply, and how often counters are reset. Possible values: - * * **perTransaction**: conditions are evaluated and the counters are reset for every - * transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the - * counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every first - * day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the lifetime of the - * payment instrument. * **rolling**: conditions are applied and the counters are reset based on a - * `duration`. If the reset date and time are not provided, Adyen applies the default - * reset time similar to fixed intervals. For example, if the duration is every two weeks, the - * counter resets every third Monday at 00:00:00 CET. * **sliding**: conditions are applied and - * the counters are reset based on the current time and a `duration` that you specify. - * - * @return type The [type of - * interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the - * rule conditions and limits apply, and how often counters are reset. Possible values: * - * **perTransaction**: conditions are evaluated and the counters are reset for every - * transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the - * counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every - * first day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the - * lifetime of the payment instrument. * **rolling**: conditions are applied and the counters - * are reset based on a `duration`. If the reset date and time are not provided, - * Adyen applies the default reset time similar to fixed intervals. For example, if the - * duration is every two weeks, the counter resets every third Monday at 00:00:00 CET. * - * **sliding**: conditions are applied and the counters are reset based on the current time - * and a `duration` that you specify. + * The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the rule conditions and limits apply, and how often counters are reset. Possible values: * **perTransaction**: conditions are evaluated and the counters are reset for every transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every first day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the lifetime of the payment instrument. * **rolling**: conditions are applied and the counters are reset based on a `duration`. If the reset date and time are not provided, Adyen applies the default reset time similar to fixed intervals. For example, if the duration is every two weeks, the counter resets every third Monday at 00:00:00 CET. * **sliding**: conditions are applied and the counters are reset based on the current time and a `duration` that you specify. + * @return type The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the rule conditions and limits apply, and how often counters are reset. Possible values: * **perTransaction**: conditions are evaluated and the counters are reset for every transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every first day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the lifetime of the payment instrument. * **rolling**: conditions are applied and the counters are reset based on a `duration`. If the reset date and time are not provided, Adyen applies the default reset time similar to fixed intervals. For example, if the duration is every two weeks, the counter resets every third Monday at 00:00:00 CET. * **sliding**: conditions are applied and the counters are reset based on the current time and a `duration` that you specify. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -434,31 +341,9 @@ public TypeEnum getType() { } /** - * The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during - * which the rule conditions and limits apply, and how often counters are reset. Possible values: - * * **perTransaction**: conditions are evaluated and the counters are reset for every - * transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the - * counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every first - * day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the lifetime of the - * payment instrument. * **rolling**: conditions are applied and the counters are reset based on a - * `duration`. If the reset date and time are not provided, Adyen applies the default - * reset time similar to fixed intervals. For example, if the duration is every two weeks, the - * counter resets every third Monday at 00:00:00 CET. * **sliding**: conditions are applied and - * the counters are reset based on the current time and a `duration` that you specify. + * The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the rule conditions and limits apply, and how often counters are reset. Possible values: * **perTransaction**: conditions are evaluated and the counters are reset for every transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every first day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the lifetime of the payment instrument. * **rolling**: conditions are applied and the counters are reset based on a `duration`. If the reset date and time are not provided, Adyen applies the default reset time similar to fixed intervals. For example, if the duration is every two weeks, the counter resets every third Monday at 00:00:00 CET. * **sliding**: conditions are applied and the counters are reset based on the current time and a `duration` that you specify. * - * @param type The [type of - * interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the - * rule conditions and limits apply, and how often counters are reset. Possible values: * - * **perTransaction**: conditions are evaluated and the counters are reset for every - * transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the - * counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every - * first day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the - * lifetime of the payment instrument. * **rolling**: conditions are applied and the counters - * are reset based on a `duration`. If the reset date and time are not provided, - * Adyen applies the default reset time similar to fixed intervals. For example, if the - * duration is every two weeks, the counter resets every third Monday at 00:00:00 CET. * - * **sliding**: conditions are applied and the counters are reset based on the current time - * and a `duration` that you specify. + * @param type The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the rule conditions and limits apply, and how often counters are reset. Possible values: * **perTransaction**: conditions are evaluated and the counters are reset for every transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every first day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the lifetime of the payment instrument. * **rolling**: conditions are applied and the counters are reset based on a `duration`. If the reset date and time are not provided, Adyen applies the default reset time similar to fixed intervals. For example, if the duration is every two weeks, the counter resets every third Monday at 00:00:00 CET. * **sliding**: conditions are applied and the counters are reset based on the current time and a `duration` that you specify. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -466,7 +351,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this TransactionRuleInterval object is equal to o. */ + /** + * Return true if this TransactionRuleInterval object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -476,12 +363,12 @@ public boolean equals(Object o) { return false; } TransactionRuleInterval transactionRuleInterval = (TransactionRuleInterval) o; - return Objects.equals(this.dayOfMonth, transactionRuleInterval.dayOfMonth) - && Objects.equals(this.dayOfWeek, transactionRuleInterval.dayOfWeek) - && Objects.equals(this.duration, transactionRuleInterval.duration) - && Objects.equals(this.timeOfDay, transactionRuleInterval.timeOfDay) - && Objects.equals(this.timeZone, transactionRuleInterval.timeZone) - && Objects.equals(this.type, transactionRuleInterval.type); + return Objects.equals(this.dayOfMonth, transactionRuleInterval.dayOfMonth) && + Objects.equals(this.dayOfWeek, transactionRuleInterval.dayOfWeek) && + Objects.equals(this.duration, transactionRuleInterval.duration) && + Objects.equals(this.timeOfDay, transactionRuleInterval.timeOfDay) && + Objects.equals(this.timeZone, transactionRuleInterval.timeZone) && + Objects.equals(this.type, transactionRuleInterval.type); } @Override @@ -504,7 +391,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -513,23 +401,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransactionRuleInterval given an JSON string * * @param jsonString JSON string * @return An instance of TransactionRuleInterval - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionRuleInterval + * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionRuleInterval */ public static TransactionRuleInterval fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionRuleInterval.class); } - - /** - * Convert an instance of TransactionRuleInterval to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransactionRuleInterval to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleResponse.java b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleResponse.java index 71abff1aa..e4faf95a2 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleResponse.java @@ -2,33 +2,47 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.TransactionRule; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TransactionRuleResponse */ -@JsonPropertyOrder({TransactionRuleResponse.JSON_PROPERTY_TRANSACTION_RULE}) + +/** + * TransactionRuleResponse + */ +@JsonPropertyOrder({ + TransactionRuleResponse.JSON_PROPERTY_TRANSACTION_RULE +}) + public class TransactionRuleResponse { public static final String JSON_PROPERTY_TRANSACTION_RULE = "transactionRule"; private TransactionRule transactionRule; - public TransactionRuleResponse() {} + public TransactionRuleResponse() { + } /** * transactionRule * - * @param transactionRule + * @param transactionRule * @return the current {@code TransactionRuleResponse} instance, allowing for method chaining */ public TransactionRuleResponse transactionRule(TransactionRule transactionRule) { @@ -38,8 +52,7 @@ public TransactionRuleResponse transactionRule(TransactionRule transactionRule) /** * Get transactionRule - * - * @return transactionRule + * @return transactionRule */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -50,7 +63,7 @@ public TransactionRule getTransactionRule() { /** * transactionRule * - * @param transactionRule + * @param transactionRule */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,7 +71,9 @@ public void setTransactionRule(TransactionRule transactionRule) { this.transactionRule = transactionRule; } - /** Return true if this TransactionRuleResponse object is equal to o. */ + /** + * Return true if this TransactionRuleResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,7 +101,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,23 +111,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransactionRuleResponse given an JSON string * * @param jsonString JSON string * @return An instance of TransactionRuleResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionRuleResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionRuleResponse */ public static TransactionRuleResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionRuleResponse.class); } - - /** - * Convert an instance of TransactionRuleResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransactionRuleResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleRestrictions.java b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleRestrictions.java index 82b143bc8..d18d8d687 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleRestrictions.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleRestrictions.java @@ -2,22 +2,56 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.ActiveNetworkTokensRestriction; +import com.adyen.model.balanceplatform.BrandVariantsRestriction; +import com.adyen.model.balanceplatform.CounterpartyBankRestriction; +import com.adyen.model.balanceplatform.CounterpartyTypesRestriction; +import com.adyen.model.balanceplatform.CountriesRestriction; +import com.adyen.model.balanceplatform.DayOfWeekRestriction; +import com.adyen.model.balanceplatform.DifferentCurrenciesRestriction; +import com.adyen.model.balanceplatform.EntryModesRestriction; +import com.adyen.model.balanceplatform.InternationalTransactionRestriction; +import com.adyen.model.balanceplatform.MatchingTransactionsRestriction; +import com.adyen.model.balanceplatform.MatchingValuesRestriction; +import com.adyen.model.balanceplatform.MccsRestriction; +import com.adyen.model.balanceplatform.MerchantNamesRestriction; +import com.adyen.model.balanceplatform.MerchantsRestriction; +import com.adyen.model.balanceplatform.ProcessingTypesRestriction; +import com.adyen.model.balanceplatform.RiskScoresRestriction; +import com.adyen.model.balanceplatform.SameAmountRestriction; +import com.adyen.model.balanceplatform.SameCounterpartyRestriction; +import com.adyen.model.balanceplatform.SourceAccountTypesRestriction; +import com.adyen.model.balanceplatform.TimeOfDayRestriction; +import com.adyen.model.balanceplatform.TokenRequestorsRestriction; +import com.adyen.model.balanceplatform.TotalAmountRestriction; +import com.adyen.model.balanceplatform.WalletProviderAccountScoreRestriction; +import com.adyen.model.balanceplatform.WalletProviderDeviceScore; +import com.adyen.model.balanceplatform.WalletProviderDeviceType; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TransactionRuleRestrictions */ + +/** + * TransactionRuleRestrictions + */ @JsonPropertyOrder({ TransactionRuleRestrictions.JSON_PROPERTY_ACTIVE_NETWORK_TOKENS, TransactionRuleRestrictions.JSON_PROPERTY_BRAND_VARIANTS, @@ -45,6 +79,7 @@ TransactionRuleRestrictions.JSON_PROPERTY_WALLET_PROVIDER_DEVICE_SCORE, TransactionRuleRestrictions.JSON_PROPERTY_WALLET_PROVIDER_DEVICE_TYPE }) + public class TransactionRuleRestrictions { public static final String JSON_PROPERTY_ACTIVE_NETWORK_TOKENS = "activeNetworkTokens"; private ActiveNetworkTokensRestriction activeNetworkTokens; @@ -97,8 +132,7 @@ public class TransactionRuleRestrictions { public static final String JSON_PROPERTY_SAME_AMOUNT_RESTRICTION = "sameAmountRestriction"; private SameAmountRestriction sameAmountRestriction; - public static final String JSON_PROPERTY_SAME_COUNTERPARTY_RESTRICTION = - "sameCounterpartyRestriction"; + public static final String JSON_PROPERTY_SAME_COUNTERPARTY_RESTRICTION = "sameCounterpartyRestriction"; private SameCounterpartyRestriction sameCounterpartyRestriction; public static final String JSON_PROPERTY_SOURCE_ACCOUNT_TYPES = "sourceAccountTypes"; @@ -113,35 +147,32 @@ public class TransactionRuleRestrictions { public static final String JSON_PROPERTY_TOTAL_AMOUNT = "totalAmount"; private TotalAmountRestriction totalAmount; - public static final String JSON_PROPERTY_WALLET_PROVIDER_ACCOUNT_SCORE = - "walletProviderAccountScore"; + public static final String JSON_PROPERTY_WALLET_PROVIDER_ACCOUNT_SCORE = "walletProviderAccountScore"; private WalletProviderAccountScoreRestriction walletProviderAccountScore; - public static final String JSON_PROPERTY_WALLET_PROVIDER_DEVICE_SCORE = - "walletProviderDeviceScore"; + public static final String JSON_PROPERTY_WALLET_PROVIDER_DEVICE_SCORE = "walletProviderDeviceScore"; private WalletProviderDeviceScore walletProviderDeviceScore; public static final String JSON_PROPERTY_WALLET_PROVIDER_DEVICE_TYPE = "walletProviderDeviceType"; private WalletProviderDeviceType walletProviderDeviceType; - public TransactionRuleRestrictions() {} + public TransactionRuleRestrictions() { + } /** * activeNetworkTokens * - * @param activeNetworkTokens + * @param activeNetworkTokens * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ - public TransactionRuleRestrictions activeNetworkTokens( - ActiveNetworkTokensRestriction activeNetworkTokens) { + public TransactionRuleRestrictions activeNetworkTokens(ActiveNetworkTokensRestriction activeNetworkTokens) { this.activeNetworkTokens = activeNetworkTokens; return this; } /** * Get activeNetworkTokens - * - * @return activeNetworkTokens + * @return activeNetworkTokens */ @JsonProperty(JSON_PROPERTY_ACTIVE_NETWORK_TOKENS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,7 +183,7 @@ public ActiveNetworkTokensRestriction getActiveNetworkTokens() { /** * activeNetworkTokens * - * @param activeNetworkTokens + * @param activeNetworkTokens */ @JsonProperty(JSON_PROPERTY_ACTIVE_NETWORK_TOKENS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,7 +194,7 @@ public void setActiveNetworkTokens(ActiveNetworkTokensRestriction activeNetworkT /** * brandVariants * - * @param brandVariants + * @param brandVariants * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ public TransactionRuleRestrictions brandVariants(BrandVariantsRestriction brandVariants) { @@ -173,8 +204,7 @@ public TransactionRuleRestrictions brandVariants(BrandVariantsRestriction brandV /** * Get brandVariants - * - * @return brandVariants + * @return brandVariants */ @JsonProperty(JSON_PROPERTY_BRAND_VARIANTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,7 +215,7 @@ public BrandVariantsRestriction getBrandVariants() { /** * brandVariants * - * @param brandVariants + * @param brandVariants */ @JsonProperty(JSON_PROPERTY_BRAND_VARIANTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -196,19 +226,17 @@ public void setBrandVariants(BrandVariantsRestriction brandVariants) { /** * counterpartyBank * - * @param counterpartyBank + * @param counterpartyBank * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ - public TransactionRuleRestrictions counterpartyBank( - CounterpartyBankRestriction counterpartyBank) { + public TransactionRuleRestrictions counterpartyBank(CounterpartyBankRestriction counterpartyBank) { this.counterpartyBank = counterpartyBank; return this; } /** * Get counterpartyBank - * - * @return counterpartyBank + * @return counterpartyBank */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY_BANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,7 +247,7 @@ public CounterpartyBankRestriction getCounterpartyBank() { /** * counterpartyBank * - * @param counterpartyBank + * @param counterpartyBank */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY_BANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -230,19 +258,17 @@ public void setCounterpartyBank(CounterpartyBankRestriction counterpartyBank) { /** * counterpartyTypes * - * @param counterpartyTypes + * @param counterpartyTypes * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ - public TransactionRuleRestrictions counterpartyTypes( - CounterpartyTypesRestriction counterpartyTypes) { + public TransactionRuleRestrictions counterpartyTypes(CounterpartyTypesRestriction counterpartyTypes) { this.counterpartyTypes = counterpartyTypes; return this; } /** * Get counterpartyTypes - * - * @return counterpartyTypes + * @return counterpartyTypes */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -253,7 +279,7 @@ public CounterpartyTypesRestriction getCounterpartyTypes() { /** * counterpartyTypes * - * @param counterpartyTypes + * @param counterpartyTypes */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -264,7 +290,7 @@ public void setCounterpartyTypes(CounterpartyTypesRestriction counterpartyTypes) /** * countries * - * @param countries + * @param countries * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ public TransactionRuleRestrictions countries(CountriesRestriction countries) { @@ -274,8 +300,7 @@ public TransactionRuleRestrictions countries(CountriesRestriction countries) { /** * Get countries - * - * @return countries + * @return countries */ @JsonProperty(JSON_PROPERTY_COUNTRIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -286,7 +311,7 @@ public CountriesRestriction getCountries() { /** * countries * - * @param countries + * @param countries */ @JsonProperty(JSON_PROPERTY_COUNTRIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -297,7 +322,7 @@ public void setCountries(CountriesRestriction countries) { /** * dayOfWeek * - * @param dayOfWeek + * @param dayOfWeek * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ public TransactionRuleRestrictions dayOfWeek(DayOfWeekRestriction dayOfWeek) { @@ -307,8 +332,7 @@ public TransactionRuleRestrictions dayOfWeek(DayOfWeekRestriction dayOfWeek) { /** * Get dayOfWeek - * - * @return dayOfWeek + * @return dayOfWeek */ @JsonProperty(JSON_PROPERTY_DAY_OF_WEEK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -319,7 +343,7 @@ public DayOfWeekRestriction getDayOfWeek() { /** * dayOfWeek * - * @param dayOfWeek + * @param dayOfWeek */ @JsonProperty(JSON_PROPERTY_DAY_OF_WEEK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -330,19 +354,17 @@ public void setDayOfWeek(DayOfWeekRestriction dayOfWeek) { /** * differentCurrencies * - * @param differentCurrencies + * @param differentCurrencies * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ - public TransactionRuleRestrictions differentCurrencies( - DifferentCurrenciesRestriction differentCurrencies) { + public TransactionRuleRestrictions differentCurrencies(DifferentCurrenciesRestriction differentCurrencies) { this.differentCurrencies = differentCurrencies; return this; } /** * Get differentCurrencies - * - * @return differentCurrencies + * @return differentCurrencies */ @JsonProperty(JSON_PROPERTY_DIFFERENT_CURRENCIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -353,7 +375,7 @@ public DifferentCurrenciesRestriction getDifferentCurrencies() { /** * differentCurrencies * - * @param differentCurrencies + * @param differentCurrencies */ @JsonProperty(JSON_PROPERTY_DIFFERENT_CURRENCIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -364,7 +386,7 @@ public void setDifferentCurrencies(DifferentCurrenciesRestriction differentCurre /** * entryModes * - * @param entryModes + * @param entryModes * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ public TransactionRuleRestrictions entryModes(EntryModesRestriction entryModes) { @@ -374,8 +396,7 @@ public TransactionRuleRestrictions entryModes(EntryModesRestriction entryModes) /** * Get entryModes - * - * @return entryModes + * @return entryModes */ @JsonProperty(JSON_PROPERTY_ENTRY_MODES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -386,7 +407,7 @@ public EntryModesRestriction getEntryModes() { /** * entryModes * - * @param entryModes + * @param entryModes */ @JsonProperty(JSON_PROPERTY_ENTRY_MODES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -397,19 +418,17 @@ public void setEntryModes(EntryModesRestriction entryModes) { /** * internationalTransaction * - * @param internationalTransaction + * @param internationalTransaction * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ - public TransactionRuleRestrictions internationalTransaction( - InternationalTransactionRestriction internationalTransaction) { + public TransactionRuleRestrictions internationalTransaction(InternationalTransactionRestriction internationalTransaction) { this.internationalTransaction = internationalTransaction; return this; } /** * Get internationalTransaction - * - * @return internationalTransaction + * @return internationalTransaction */ @JsonProperty(JSON_PROPERTY_INTERNATIONAL_TRANSACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -420,31 +439,28 @@ public InternationalTransactionRestriction getInternationalTransaction() { /** * internationalTransaction * - * @param internationalTransaction + * @param internationalTransaction */ @JsonProperty(JSON_PROPERTY_INTERNATIONAL_TRANSACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInternationalTransaction( - InternationalTransactionRestriction internationalTransaction) { + public void setInternationalTransaction(InternationalTransactionRestriction internationalTransaction) { this.internationalTransaction = internationalTransaction; } /** * matchingTransactions * - * @param matchingTransactions + * @param matchingTransactions * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ - public TransactionRuleRestrictions matchingTransactions( - MatchingTransactionsRestriction matchingTransactions) { + public TransactionRuleRestrictions matchingTransactions(MatchingTransactionsRestriction matchingTransactions) { this.matchingTransactions = matchingTransactions; return this; } /** * Get matchingTransactions - * - * @return matchingTransactions + * @return matchingTransactions */ @JsonProperty(JSON_PROPERTY_MATCHING_TRANSACTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -455,7 +471,7 @@ public MatchingTransactionsRestriction getMatchingTransactions() { /** * matchingTransactions * - * @param matchingTransactions + * @param matchingTransactions */ @JsonProperty(JSON_PROPERTY_MATCHING_TRANSACTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -466,7 +482,7 @@ public void setMatchingTransactions(MatchingTransactionsRestriction matchingTran /** * matchingValues * - * @param matchingValues + * @param matchingValues * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ public TransactionRuleRestrictions matchingValues(MatchingValuesRestriction matchingValues) { @@ -476,8 +492,7 @@ public TransactionRuleRestrictions matchingValues(MatchingValuesRestriction matc /** * Get matchingValues - * - * @return matchingValues + * @return matchingValues */ @JsonProperty(JSON_PROPERTY_MATCHING_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -488,7 +503,7 @@ public MatchingValuesRestriction getMatchingValues() { /** * matchingValues * - * @param matchingValues + * @param matchingValues */ @JsonProperty(JSON_PROPERTY_MATCHING_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -499,7 +514,7 @@ public void setMatchingValues(MatchingValuesRestriction matchingValues) { /** * mccs * - * @param mccs + * @param mccs * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ public TransactionRuleRestrictions mccs(MccsRestriction mccs) { @@ -509,8 +524,7 @@ public TransactionRuleRestrictions mccs(MccsRestriction mccs) { /** * Get mccs - * - * @return mccs + * @return mccs */ @JsonProperty(JSON_PROPERTY_MCCS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -521,7 +535,7 @@ public MccsRestriction getMccs() { /** * mccs * - * @param mccs + * @param mccs */ @JsonProperty(JSON_PROPERTY_MCCS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -532,7 +546,7 @@ public void setMccs(MccsRestriction mccs) { /** * merchantNames * - * @param merchantNames + * @param merchantNames * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ public TransactionRuleRestrictions merchantNames(MerchantNamesRestriction merchantNames) { @@ -542,8 +556,7 @@ public TransactionRuleRestrictions merchantNames(MerchantNamesRestriction mercha /** * Get merchantNames - * - * @return merchantNames + * @return merchantNames */ @JsonProperty(JSON_PROPERTY_MERCHANT_NAMES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -554,7 +567,7 @@ public MerchantNamesRestriction getMerchantNames() { /** * merchantNames * - * @param merchantNames + * @param merchantNames */ @JsonProperty(JSON_PROPERTY_MERCHANT_NAMES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -565,7 +578,7 @@ public void setMerchantNames(MerchantNamesRestriction merchantNames) { /** * merchants * - * @param merchants + * @param merchants * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ public TransactionRuleRestrictions merchants(MerchantsRestriction merchants) { @@ -575,8 +588,7 @@ public TransactionRuleRestrictions merchants(MerchantsRestriction merchants) { /** * Get merchants - * - * @return merchants + * @return merchants */ @JsonProperty(JSON_PROPERTY_MERCHANTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -587,7 +599,7 @@ public MerchantsRestriction getMerchants() { /** * merchants * - * @param merchants + * @param merchants */ @JsonProperty(JSON_PROPERTY_MERCHANTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -598,7 +610,7 @@ public void setMerchants(MerchantsRestriction merchants) { /** * processingTypes * - * @param processingTypes + * @param processingTypes * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ public TransactionRuleRestrictions processingTypes(ProcessingTypesRestriction processingTypes) { @@ -608,8 +620,7 @@ public TransactionRuleRestrictions processingTypes(ProcessingTypesRestriction pr /** * Get processingTypes - * - * @return processingTypes + * @return processingTypes */ @JsonProperty(JSON_PROPERTY_PROCESSING_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -620,7 +631,7 @@ public ProcessingTypesRestriction getProcessingTypes() { /** * processingTypes * - * @param processingTypes + * @param processingTypes */ @JsonProperty(JSON_PROPERTY_PROCESSING_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -631,7 +642,7 @@ public void setProcessingTypes(ProcessingTypesRestriction processingTypes) { /** * riskScores * - * @param riskScores + * @param riskScores * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ public TransactionRuleRestrictions riskScores(RiskScoresRestriction riskScores) { @@ -641,8 +652,7 @@ public TransactionRuleRestrictions riskScores(RiskScoresRestriction riskScores) /** * Get riskScores - * - * @return riskScores + * @return riskScores */ @JsonProperty(JSON_PROPERTY_RISK_SCORES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -653,7 +663,7 @@ public RiskScoresRestriction getRiskScores() { /** * riskScores * - * @param riskScores + * @param riskScores */ @JsonProperty(JSON_PROPERTY_RISK_SCORES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -664,19 +674,17 @@ public void setRiskScores(RiskScoresRestriction riskScores) { /** * sameAmountRestriction * - * @param sameAmountRestriction + * @param sameAmountRestriction * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ - public TransactionRuleRestrictions sameAmountRestriction( - SameAmountRestriction sameAmountRestriction) { + public TransactionRuleRestrictions sameAmountRestriction(SameAmountRestriction sameAmountRestriction) { this.sameAmountRestriction = sameAmountRestriction; return this; } /** * Get sameAmountRestriction - * - * @return sameAmountRestriction + * @return sameAmountRestriction */ @JsonProperty(JSON_PROPERTY_SAME_AMOUNT_RESTRICTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -687,7 +695,7 @@ public SameAmountRestriction getSameAmountRestriction() { /** * sameAmountRestriction * - * @param sameAmountRestriction + * @param sameAmountRestriction */ @JsonProperty(JSON_PROPERTY_SAME_AMOUNT_RESTRICTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -698,19 +706,17 @@ public void setSameAmountRestriction(SameAmountRestriction sameAmountRestriction /** * sameCounterpartyRestriction * - * @param sameCounterpartyRestriction + * @param sameCounterpartyRestriction * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ - public TransactionRuleRestrictions sameCounterpartyRestriction( - SameCounterpartyRestriction sameCounterpartyRestriction) { + public TransactionRuleRestrictions sameCounterpartyRestriction(SameCounterpartyRestriction sameCounterpartyRestriction) { this.sameCounterpartyRestriction = sameCounterpartyRestriction; return this; } /** * Get sameCounterpartyRestriction - * - * @return sameCounterpartyRestriction + * @return sameCounterpartyRestriction */ @JsonProperty(JSON_PROPERTY_SAME_COUNTERPARTY_RESTRICTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -721,31 +727,28 @@ public SameCounterpartyRestriction getSameCounterpartyRestriction() { /** * sameCounterpartyRestriction * - * @param sameCounterpartyRestriction + * @param sameCounterpartyRestriction */ @JsonProperty(JSON_PROPERTY_SAME_COUNTERPARTY_RESTRICTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSameCounterpartyRestriction( - SameCounterpartyRestriction sameCounterpartyRestriction) { + public void setSameCounterpartyRestriction(SameCounterpartyRestriction sameCounterpartyRestriction) { this.sameCounterpartyRestriction = sameCounterpartyRestriction; } /** * sourceAccountTypes * - * @param sourceAccountTypes + * @param sourceAccountTypes * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ - public TransactionRuleRestrictions sourceAccountTypes( - SourceAccountTypesRestriction sourceAccountTypes) { + public TransactionRuleRestrictions sourceAccountTypes(SourceAccountTypesRestriction sourceAccountTypes) { this.sourceAccountTypes = sourceAccountTypes; return this; } /** * Get sourceAccountTypes - * - * @return sourceAccountTypes + * @return sourceAccountTypes */ @JsonProperty(JSON_PROPERTY_SOURCE_ACCOUNT_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -756,7 +759,7 @@ public SourceAccountTypesRestriction getSourceAccountTypes() { /** * sourceAccountTypes * - * @param sourceAccountTypes + * @param sourceAccountTypes */ @JsonProperty(JSON_PROPERTY_SOURCE_ACCOUNT_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -767,7 +770,7 @@ public void setSourceAccountTypes(SourceAccountTypesRestriction sourceAccountTyp /** * timeOfDay * - * @param timeOfDay + * @param timeOfDay * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ public TransactionRuleRestrictions timeOfDay(TimeOfDayRestriction timeOfDay) { @@ -777,8 +780,7 @@ public TransactionRuleRestrictions timeOfDay(TimeOfDayRestriction timeOfDay) { /** * Get timeOfDay - * - * @return timeOfDay + * @return timeOfDay */ @JsonProperty(JSON_PROPERTY_TIME_OF_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -789,7 +791,7 @@ public TimeOfDayRestriction getTimeOfDay() { /** * timeOfDay * - * @param timeOfDay + * @param timeOfDay */ @JsonProperty(JSON_PROPERTY_TIME_OF_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -800,7 +802,7 @@ public void setTimeOfDay(TimeOfDayRestriction timeOfDay) { /** * tokenRequestors * - * @param tokenRequestors + * @param tokenRequestors * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ public TransactionRuleRestrictions tokenRequestors(TokenRequestorsRestriction tokenRequestors) { @@ -810,8 +812,7 @@ public TransactionRuleRestrictions tokenRequestors(TokenRequestorsRestriction to /** * Get tokenRequestors - * - * @return tokenRequestors + * @return tokenRequestors */ @JsonProperty(JSON_PROPERTY_TOKEN_REQUESTORS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -822,7 +823,7 @@ public TokenRequestorsRestriction getTokenRequestors() { /** * tokenRequestors * - * @param tokenRequestors + * @param tokenRequestors */ @JsonProperty(JSON_PROPERTY_TOKEN_REQUESTORS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -833,7 +834,7 @@ public void setTokenRequestors(TokenRequestorsRestriction tokenRequestors) { /** * totalAmount * - * @param totalAmount + * @param totalAmount * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ public TransactionRuleRestrictions totalAmount(TotalAmountRestriction totalAmount) { @@ -843,8 +844,7 @@ public TransactionRuleRestrictions totalAmount(TotalAmountRestriction totalAmoun /** * Get totalAmount - * - * @return totalAmount + * @return totalAmount */ @JsonProperty(JSON_PROPERTY_TOTAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -855,7 +855,7 @@ public TotalAmountRestriction getTotalAmount() { /** * totalAmount * - * @param totalAmount + * @param totalAmount */ @JsonProperty(JSON_PROPERTY_TOTAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -866,19 +866,17 @@ public void setTotalAmount(TotalAmountRestriction totalAmount) { /** * walletProviderAccountScore * - * @param walletProviderAccountScore + * @param walletProviderAccountScore * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ - public TransactionRuleRestrictions walletProviderAccountScore( - WalletProviderAccountScoreRestriction walletProviderAccountScore) { + public TransactionRuleRestrictions walletProviderAccountScore(WalletProviderAccountScoreRestriction walletProviderAccountScore) { this.walletProviderAccountScore = walletProviderAccountScore; return this; } /** * Get walletProviderAccountScore - * - * @return walletProviderAccountScore + * @return walletProviderAccountScore */ @JsonProperty(JSON_PROPERTY_WALLET_PROVIDER_ACCOUNT_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -889,31 +887,28 @@ public WalletProviderAccountScoreRestriction getWalletProviderAccountScore() { /** * walletProviderAccountScore * - * @param walletProviderAccountScore + * @param walletProviderAccountScore */ @JsonProperty(JSON_PROPERTY_WALLET_PROVIDER_ACCOUNT_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWalletProviderAccountScore( - WalletProviderAccountScoreRestriction walletProviderAccountScore) { + public void setWalletProviderAccountScore(WalletProviderAccountScoreRestriction walletProviderAccountScore) { this.walletProviderAccountScore = walletProviderAccountScore; } /** * walletProviderDeviceScore * - * @param walletProviderDeviceScore + * @param walletProviderDeviceScore * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ - public TransactionRuleRestrictions walletProviderDeviceScore( - WalletProviderDeviceScore walletProviderDeviceScore) { + public TransactionRuleRestrictions walletProviderDeviceScore(WalletProviderDeviceScore walletProviderDeviceScore) { this.walletProviderDeviceScore = walletProviderDeviceScore; return this; } /** * Get walletProviderDeviceScore - * - * @return walletProviderDeviceScore + * @return walletProviderDeviceScore */ @JsonProperty(JSON_PROPERTY_WALLET_PROVIDER_DEVICE_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -924,7 +919,7 @@ public WalletProviderDeviceScore getWalletProviderDeviceScore() { /** * walletProviderDeviceScore * - * @param walletProviderDeviceScore + * @param walletProviderDeviceScore */ @JsonProperty(JSON_PROPERTY_WALLET_PROVIDER_DEVICE_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -935,19 +930,17 @@ public void setWalletProviderDeviceScore(WalletProviderDeviceScore walletProvide /** * walletProviderDeviceType * - * @param walletProviderDeviceType + * @param walletProviderDeviceType * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ - public TransactionRuleRestrictions walletProviderDeviceType( - WalletProviderDeviceType walletProviderDeviceType) { + public TransactionRuleRestrictions walletProviderDeviceType(WalletProviderDeviceType walletProviderDeviceType) { this.walletProviderDeviceType = walletProviderDeviceType; return this; } /** * Get walletProviderDeviceType - * - * @return walletProviderDeviceType + * @return walletProviderDeviceType */ @JsonProperty(JSON_PROPERTY_WALLET_PROVIDER_DEVICE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -958,7 +951,7 @@ public WalletProviderDeviceType getWalletProviderDeviceType() { /** * walletProviderDeviceType * - * @param walletProviderDeviceType + * @param walletProviderDeviceType */ @JsonProperty(JSON_PROPERTY_WALLET_PROVIDER_DEVICE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -966,7 +959,9 @@ public void setWalletProviderDeviceType(WalletProviderDeviceType walletProviderD this.walletProviderDeviceType = walletProviderDeviceType; } - /** Return true if this TransactionRuleRestrictions object is equal to o. */ + /** + * Return true if this TransactionRuleRestrictions object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -976,124 +971,74 @@ public boolean equals(Object o) { return false; } TransactionRuleRestrictions transactionRuleRestrictions = (TransactionRuleRestrictions) o; - return Objects.equals(this.activeNetworkTokens, transactionRuleRestrictions.activeNetworkTokens) - && Objects.equals(this.brandVariants, transactionRuleRestrictions.brandVariants) - && Objects.equals(this.counterpartyBank, transactionRuleRestrictions.counterpartyBank) - && Objects.equals(this.counterpartyTypes, transactionRuleRestrictions.counterpartyTypes) - && Objects.equals(this.countries, transactionRuleRestrictions.countries) - && Objects.equals(this.dayOfWeek, transactionRuleRestrictions.dayOfWeek) - && Objects.equals(this.differentCurrencies, transactionRuleRestrictions.differentCurrencies) - && Objects.equals(this.entryModes, transactionRuleRestrictions.entryModes) - && Objects.equals( - this.internationalTransaction, transactionRuleRestrictions.internationalTransaction) - && Objects.equals( - this.matchingTransactions, transactionRuleRestrictions.matchingTransactions) - && Objects.equals(this.matchingValues, transactionRuleRestrictions.matchingValues) - && Objects.equals(this.mccs, transactionRuleRestrictions.mccs) - && Objects.equals(this.merchantNames, transactionRuleRestrictions.merchantNames) - && Objects.equals(this.merchants, transactionRuleRestrictions.merchants) - && Objects.equals(this.processingTypes, transactionRuleRestrictions.processingTypes) - && Objects.equals(this.riskScores, transactionRuleRestrictions.riskScores) - && Objects.equals( - this.sameAmountRestriction, transactionRuleRestrictions.sameAmountRestriction) - && Objects.equals( - this.sameCounterpartyRestriction, - transactionRuleRestrictions.sameCounterpartyRestriction) - && Objects.equals(this.sourceAccountTypes, transactionRuleRestrictions.sourceAccountTypes) - && Objects.equals(this.timeOfDay, transactionRuleRestrictions.timeOfDay) - && Objects.equals(this.tokenRequestors, transactionRuleRestrictions.tokenRequestors) - && Objects.equals(this.totalAmount, transactionRuleRestrictions.totalAmount) - && Objects.equals( - this.walletProviderAccountScore, transactionRuleRestrictions.walletProviderAccountScore) - && Objects.equals( - this.walletProviderDeviceScore, transactionRuleRestrictions.walletProviderDeviceScore) - && Objects.equals( - this.walletProviderDeviceType, transactionRuleRestrictions.walletProviderDeviceType); + return Objects.equals(this.activeNetworkTokens, transactionRuleRestrictions.activeNetworkTokens) && + Objects.equals(this.brandVariants, transactionRuleRestrictions.brandVariants) && + Objects.equals(this.counterpartyBank, transactionRuleRestrictions.counterpartyBank) && + Objects.equals(this.counterpartyTypes, transactionRuleRestrictions.counterpartyTypes) && + Objects.equals(this.countries, transactionRuleRestrictions.countries) && + Objects.equals(this.dayOfWeek, transactionRuleRestrictions.dayOfWeek) && + Objects.equals(this.differentCurrencies, transactionRuleRestrictions.differentCurrencies) && + Objects.equals(this.entryModes, transactionRuleRestrictions.entryModes) && + Objects.equals(this.internationalTransaction, transactionRuleRestrictions.internationalTransaction) && + Objects.equals(this.matchingTransactions, transactionRuleRestrictions.matchingTransactions) && + Objects.equals(this.matchingValues, transactionRuleRestrictions.matchingValues) && + Objects.equals(this.mccs, transactionRuleRestrictions.mccs) && + Objects.equals(this.merchantNames, transactionRuleRestrictions.merchantNames) && + Objects.equals(this.merchants, transactionRuleRestrictions.merchants) && + Objects.equals(this.processingTypes, transactionRuleRestrictions.processingTypes) && + Objects.equals(this.riskScores, transactionRuleRestrictions.riskScores) && + Objects.equals(this.sameAmountRestriction, transactionRuleRestrictions.sameAmountRestriction) && + Objects.equals(this.sameCounterpartyRestriction, transactionRuleRestrictions.sameCounterpartyRestriction) && + Objects.equals(this.sourceAccountTypes, transactionRuleRestrictions.sourceAccountTypes) && + Objects.equals(this.timeOfDay, transactionRuleRestrictions.timeOfDay) && + Objects.equals(this.tokenRequestors, transactionRuleRestrictions.tokenRequestors) && + Objects.equals(this.totalAmount, transactionRuleRestrictions.totalAmount) && + Objects.equals(this.walletProviderAccountScore, transactionRuleRestrictions.walletProviderAccountScore) && + Objects.equals(this.walletProviderDeviceScore, transactionRuleRestrictions.walletProviderDeviceScore) && + Objects.equals(this.walletProviderDeviceType, transactionRuleRestrictions.walletProviderDeviceType); } @Override public int hashCode() { - return Objects.hash( - activeNetworkTokens, - brandVariants, - counterpartyBank, - counterpartyTypes, - countries, - dayOfWeek, - differentCurrencies, - entryModes, - internationalTransaction, - matchingTransactions, - matchingValues, - mccs, - merchantNames, - merchants, - processingTypes, - riskScores, - sameAmountRestriction, - sameCounterpartyRestriction, - sourceAccountTypes, - timeOfDay, - tokenRequestors, - totalAmount, - walletProviderAccountScore, - walletProviderDeviceScore, - walletProviderDeviceType); + return Objects.hash(activeNetworkTokens, brandVariants, counterpartyBank, counterpartyTypes, countries, dayOfWeek, differentCurrencies, entryModes, internationalTransaction, matchingTransactions, matchingValues, mccs, merchantNames, merchants, processingTypes, riskScores, sameAmountRestriction, sameCounterpartyRestriction, sourceAccountTypes, timeOfDay, tokenRequestors, totalAmount, walletProviderAccountScore, walletProviderDeviceScore, walletProviderDeviceType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TransactionRuleRestrictions {\n"); - sb.append(" activeNetworkTokens: ") - .append(toIndentedString(activeNetworkTokens)) - .append("\n"); + sb.append(" activeNetworkTokens: ").append(toIndentedString(activeNetworkTokens)).append("\n"); sb.append(" brandVariants: ").append(toIndentedString(brandVariants)).append("\n"); sb.append(" counterpartyBank: ").append(toIndentedString(counterpartyBank)).append("\n"); sb.append(" counterpartyTypes: ").append(toIndentedString(counterpartyTypes)).append("\n"); sb.append(" countries: ").append(toIndentedString(countries)).append("\n"); sb.append(" dayOfWeek: ").append(toIndentedString(dayOfWeek)).append("\n"); - sb.append(" differentCurrencies: ") - .append(toIndentedString(differentCurrencies)) - .append("\n"); + sb.append(" differentCurrencies: ").append(toIndentedString(differentCurrencies)).append("\n"); sb.append(" entryModes: ").append(toIndentedString(entryModes)).append("\n"); - sb.append(" internationalTransaction: ") - .append(toIndentedString(internationalTransaction)) - .append("\n"); - sb.append(" matchingTransactions: ") - .append(toIndentedString(matchingTransactions)) - .append("\n"); + sb.append(" internationalTransaction: ").append(toIndentedString(internationalTransaction)).append("\n"); + sb.append(" matchingTransactions: ").append(toIndentedString(matchingTransactions)).append("\n"); sb.append(" matchingValues: ").append(toIndentedString(matchingValues)).append("\n"); sb.append(" mccs: ").append(toIndentedString(mccs)).append("\n"); sb.append(" merchantNames: ").append(toIndentedString(merchantNames)).append("\n"); sb.append(" merchants: ").append(toIndentedString(merchants)).append("\n"); sb.append(" processingTypes: ").append(toIndentedString(processingTypes)).append("\n"); sb.append(" riskScores: ").append(toIndentedString(riskScores)).append("\n"); - sb.append(" sameAmountRestriction: ") - .append(toIndentedString(sameAmountRestriction)) - .append("\n"); - sb.append(" sameCounterpartyRestriction: ") - .append(toIndentedString(sameCounterpartyRestriction)) - .append("\n"); + sb.append(" sameAmountRestriction: ").append(toIndentedString(sameAmountRestriction)).append("\n"); + sb.append(" sameCounterpartyRestriction: ").append(toIndentedString(sameCounterpartyRestriction)).append("\n"); sb.append(" sourceAccountTypes: ").append(toIndentedString(sourceAccountTypes)).append("\n"); sb.append(" timeOfDay: ").append(toIndentedString(timeOfDay)).append("\n"); sb.append(" tokenRequestors: ").append(toIndentedString(tokenRequestors)).append("\n"); sb.append(" totalAmount: ").append(toIndentedString(totalAmount)).append("\n"); - sb.append(" walletProviderAccountScore: ") - .append(toIndentedString(walletProviderAccountScore)) - .append("\n"); - sb.append(" walletProviderDeviceScore: ") - .append(toIndentedString(walletProviderDeviceScore)) - .append("\n"); - sb.append(" walletProviderDeviceType: ") - .append(toIndentedString(walletProviderDeviceType)) - .append("\n"); + sb.append(" walletProviderAccountScore: ").append(toIndentedString(walletProviderAccountScore)).append("\n"); + sb.append(" walletProviderDeviceScore: ").append(toIndentedString(walletProviderDeviceScore)).append("\n"); + sb.append(" walletProviderDeviceType: ").append(toIndentedString(walletProviderDeviceType)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1102,24 +1047,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransactionRuleRestrictions given an JSON string * * @param jsonString JSON string * @return An instance of TransactionRuleRestrictions - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionRuleRestrictions + * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionRuleRestrictions */ - public static TransactionRuleRestrictions fromJson(String jsonString) - throws JsonProcessingException { + public static TransactionRuleRestrictions fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionRuleRestrictions.class); } - - /** - * Convert an instance of TransactionRuleRestrictions to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransactionRuleRestrictions to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransactionRulesResponse.java b/src/main/java/com/adyen/model/balanceplatform/TransactionRulesResponse.java index cae4762b0..9b2295fcd 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransactionRulesResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransactionRulesResponse.java @@ -2,30 +2,44 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.TransactionRule; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * TransactionRulesResponse + */ +@JsonPropertyOrder({ + TransactionRulesResponse.JSON_PROPERTY_TRANSACTION_RULES +}) -/** TransactionRulesResponse */ -@JsonPropertyOrder({TransactionRulesResponse.JSON_PROPERTY_TRANSACTION_RULES}) public class TransactionRulesResponse { public static final String JSON_PROPERTY_TRANSACTION_RULES = "transactionRules"; private List transactionRules; - public TransactionRulesResponse() {} + public TransactionRulesResponse() { + } /** * List of transaction rules. @@ -48,7 +62,6 @@ public TransactionRulesResponse addTransactionRulesItem(TransactionRule transact /** * List of transaction rules. - * * @return transactionRules List of transaction rules. */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULES) @@ -68,7 +81,9 @@ public void setTransactionRules(List transactionRules) { this.transactionRules = transactionRules; } - /** Return true if this TransactionRulesResponse object is equal to o. */ + /** + * Return true if this TransactionRulesResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -96,7 +111,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -105,24 +121,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransactionRulesResponse given an JSON string * * @param jsonString JSON string * @return An instance of TransactionRulesResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionRulesResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionRulesResponse */ - public static TransactionRulesResponse fromJson(String jsonString) - throws JsonProcessingException { + public static TransactionRulesResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionRulesResponse.class); } - - /** - * Convert an instance of TransactionRulesResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransactionRulesResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransferRoute.java b/src/main/java/com/adyen/model/balanceplatform/TransferRoute.java index 723c0542e..68f9b1ef5 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransferRoute.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransferRoute.java @@ -2,28 +2,34 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.TransferRouteRequirementsInner; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** TransferRoute */ + +/** + * TransferRoute + */ @JsonPropertyOrder({ TransferRoute.JSON_PROPERTY_CATEGORY, TransferRoute.JSON_PROPERTY_COUNTRY, @@ -31,13 +37,13 @@ TransferRoute.JSON_PROPERTY_PRIORITY, TransferRoute.JSON_PROPERTY_REQUIREMENTS }) + public class TransferRoute { /** - * The type of transfer. Possible values: - **bank**: Transfer to a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. + * The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. */ public enum CategoryEnum { + BANK(String.valueOf("bank")), CARD(String.valueOf("card")), @@ -63,7 +69,7 @@ public enum CategoryEnum { private String value; CategoryEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -84,11 +90,7 @@ public static CategoryEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "CategoryEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(CategoryEnum.values())); + LOG.warning("CategoryEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CategoryEnum.values())); return null; } } @@ -103,18 +105,10 @@ public static CategoryEnum fromValue(String value) { private String currency; /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the - * fees that you have to pay. Possible values: * **regular**: for normal, low-value transactions. - * * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for - * high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this - * has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: - * for instant funds transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). */ public enum PriorityEnum { + CROSSBORDER(String.valueOf("crossBorder")), FAST(String.valueOf("fast")), @@ -132,7 +126,7 @@ public enum PriorityEnum { private String value; PriorityEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -153,11 +147,7 @@ public static PriorityEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PriorityEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PriorityEnum.values())); + LOG.warning("PriorityEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PriorityEnum.values())); return null; } } @@ -168,16 +158,13 @@ public static PriorityEnum fromValue(String value) { public static final String JSON_PROPERTY_REQUIREMENTS = "requirements"; private List requirements; - public TransferRoute() {} + public TransferRoute() { + } /** - * The type of transfer. Possible values: - **bank**: Transfer to a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. + * The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. * - * @param category The type of transfer. Possible values: - **bank**: Transfer to a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. + * @param category The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. * @return the current {@code TransferRoute} instance, allowing for method chaining */ public TransferRoute category(CategoryEnum category) { @@ -186,13 +173,8 @@ public TransferRoute category(CategoryEnum category) { } /** - * The type of transfer. Possible values: - **bank**: Transfer to a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. - * - * @return category The type of transfer. Possible values: - **bank**: Transfer to a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. + * The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. + * @return category The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -201,13 +183,9 @@ public CategoryEnum getCategory() { } /** - * The type of transfer. Possible values: - **bank**: Transfer to a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. + * The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. * - * @param category The type of transfer. Possible values: - **bank**: Transfer to a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. + * @param category The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -216,11 +194,9 @@ public void setCategory(CategoryEnum category) { } /** - * The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or - * **NL**. + * The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**. * - * @param country The two-character ISO-3166-1 alpha-2 country code of the counterparty. For - * example, **US** or **NL**. + * @param country The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**. * @return the current {@code TransferRoute} instance, allowing for method chaining */ public TransferRoute country(String country) { @@ -229,11 +205,8 @@ public TransferRoute country(String country) { } /** - * The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or - * **NL**. - * - * @return country The two-character ISO-3166-1 alpha-2 country code of the counterparty. For - * example, **US** or **NL**. + * The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**. + * @return country The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,11 +215,9 @@ public String getCountry() { } /** - * The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or - * **NL**. + * The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**. * - * @param country The two-character ISO-3166-1 alpha-2 country code of the counterparty. For - * example, **US** or **NL**. + * @param country The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -257,8 +228,7 @@ public void setCountry(String country) { /** * The three-character ISO currency code of transfer. For example, **USD** or **EUR**. * - * @param currency The three-character ISO currency code of transfer. For example, **USD** or - * **EUR**. + * @param currency The three-character ISO currency code of transfer. For example, **USD** or **EUR**. * @return the current {@code TransferRoute} instance, allowing for method chaining */ public TransferRoute currency(String currency) { @@ -268,9 +238,7 @@ public TransferRoute currency(String currency) { /** * The three-character ISO currency code of transfer. For example, **USD** or **EUR**. - * - * @return currency The three-character ISO currency code of transfer. For example, **USD** or - * **EUR**. + * @return currency The three-character ISO currency code of transfer. For example, **USD** or **EUR**. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -281,8 +249,7 @@ public String getCurrency() { /** * The three-character ISO currency code of transfer. For example, **USD** or **EUR**. * - * @param currency The three-character ISO currency code of transfer. For example, **USD** or - * **EUR**. + * @param currency The three-character ISO currency code of transfer. For example, **USD** or **EUR**. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -291,28 +258,9 @@ public void setCurrency(String currency) { } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the - * fees that you have to pay. Possible values: * **regular**: for normal, low-value transactions. - * * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for - * high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this - * has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: - * for instant funds transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). * - * @param priority The priority for the bank transfer. This sets the speed at which the transfer - * is sent and the fees that you have to pay. Possible values: * **regular**: for normal, - * low-value transactions. * **fast**: a faster way to transfer funds, but the fees are - * higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way - * to transfer funds, but this has the highest fees. Recommended for high-priority, high-value - * transactions. * **instant**: for instant funds transfers within the United States and in - * [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * @param priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). * @return the current {@code TransferRoute} instance, allowing for method chaining */ public TransferRoute priority(PriorityEnum priority) { @@ -321,28 +269,8 @@ public TransferRoute priority(PriorityEnum priority) { } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the - * fees that you have to pay. Possible values: * **regular**: for normal, low-value transactions. - * * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for - * high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this - * has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: - * for instant funds transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). - * - * @return priority The priority for the bank transfer. This sets the speed at which the transfer - * is sent and the fees that you have to pay. Possible values: * **regular**: for normal, - * low-value transactions. * **fast**: a faster way to transfer funds, but the fees are - * higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way - * to transfer funds, but this has the highest fees. Recommended for high-priority, high-value - * transactions. * **instant**: for instant funds transfers within the United States and in - * [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * @return priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). */ @JsonProperty(JSON_PROPERTY_PRIORITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -351,28 +279,9 @@ public PriorityEnum getPriority() { } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the - * fees that you have to pay. Possible values: * **regular**: for normal, low-value transactions. - * * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for - * high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this - * has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: - * for instant funds transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). * - * @param priority The priority for the bank transfer. This sets the speed at which the transfer - * is sent and the fees that you have to pay. Possible values: * **regular**: for normal, - * low-value transactions. * **fast**: a faster way to transfer funds, but the fees are - * higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way - * to transfer funds, but this has the highest fees. Recommended for high-priority, high-value - * transactions. * **instant**: for instant funds transfers within the United States and in - * [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * @param priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). */ @JsonProperty(JSON_PROPERTY_PRIORITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -381,15 +290,9 @@ public void setPriority(PriorityEnum priority) { } /** - * A set of rules defined by clearing houses and banking partners. Your transfer request must - * adhere to these rules to ensure successful initiation of transfer. Based on the priority, one - * or more requirements may be returned. Each requirement is defined with a `type` and - * `description`. + * A set of rules defined by clearing houses and banking partners. Your transfer request must adhere to these rules to ensure successful initiation of transfer. Based on the priority, one or more requirements may be returned. Each requirement is defined with a `type` and `description`. * - * @param requirements A set of rules defined by clearing houses and banking partners. Your - * transfer request must adhere to these rules to ensure successful initiation of transfer. - * Based on the priority, one or more requirements may be returned. Each requirement is - * defined with a `type` and `description`. + * @param requirements A set of rules defined by clearing houses and banking partners. Your transfer request must adhere to these rules to ensure successful initiation of transfer. Based on the priority, one or more requirements may be returned. Each requirement is defined with a `type` and `description`. * @return the current {@code TransferRoute} instance, allowing for method chaining */ public TransferRoute requirements(List requirements) { @@ -406,15 +309,8 @@ public TransferRoute addRequirementsItem(TransferRouteRequirementsInner requirem } /** - * A set of rules defined by clearing houses and banking partners. Your transfer request must - * adhere to these rules to ensure successful initiation of transfer. Based on the priority, one - * or more requirements may be returned. Each requirement is defined with a `type` and - * `description`. - * - * @return requirements A set of rules defined by clearing houses and banking partners. Your - * transfer request must adhere to these rules to ensure successful initiation of transfer. - * Based on the priority, one or more requirements may be returned. Each requirement is - * defined with a `type` and `description`. + * A set of rules defined by clearing houses and banking partners. Your transfer request must adhere to these rules to ensure successful initiation of transfer. Based on the priority, one or more requirements may be returned. Each requirement is defined with a `type` and `description`. + * @return requirements A set of rules defined by clearing houses and banking partners. Your transfer request must adhere to these rules to ensure successful initiation of transfer. Based on the priority, one or more requirements may be returned. Each requirement is defined with a `type` and `description`. */ @JsonProperty(JSON_PROPERTY_REQUIREMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -423,15 +319,9 @@ public List getRequirements() { } /** - * A set of rules defined by clearing houses and banking partners. Your transfer request must - * adhere to these rules to ensure successful initiation of transfer. Based on the priority, one - * or more requirements may be returned. Each requirement is defined with a `type` and - * `description`. + * A set of rules defined by clearing houses and banking partners. Your transfer request must adhere to these rules to ensure successful initiation of transfer. Based on the priority, one or more requirements may be returned. Each requirement is defined with a `type` and `description`. * - * @param requirements A set of rules defined by clearing houses and banking partners. Your - * transfer request must adhere to these rules to ensure successful initiation of transfer. - * Based on the priority, one or more requirements may be returned. Each requirement is - * defined with a `type` and `description`. + * @param requirements A set of rules defined by clearing houses and banking partners. Your transfer request must adhere to these rules to ensure successful initiation of transfer. Based on the priority, one or more requirements may be returned. Each requirement is defined with a `type` and `description`. */ @JsonProperty(JSON_PROPERTY_REQUIREMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -439,7 +329,9 @@ public void setRequirements(List requirements) { this.requirements = requirements; } - /** Return true if this TransferRoute object is equal to o. */ + /** + * Return true if this TransferRoute object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -449,11 +341,11 @@ public boolean equals(Object o) { return false; } TransferRoute transferRoute = (TransferRoute) o; - return Objects.equals(this.category, transferRoute.category) - && Objects.equals(this.country, transferRoute.country) - && Objects.equals(this.currency, transferRoute.currency) - && Objects.equals(this.priority, transferRoute.priority) - && Objects.equals(this.requirements, transferRoute.requirements); + return Objects.equals(this.category, transferRoute.category) && + Objects.equals(this.country, transferRoute.country) && + Objects.equals(this.currency, transferRoute.currency) && + Objects.equals(this.priority, transferRoute.priority) && + Objects.equals(this.requirements, transferRoute.requirements); } @Override @@ -475,7 +367,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -484,7 +377,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransferRoute given an JSON string * * @param jsonString JSON string @@ -494,12 +387,11 @@ private String toIndentedString(Object o) { public static TransferRoute fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferRoute.class); } - - /** - * Convert an instance of TransferRoute to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransferRoute to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransferRouteRequest.java b/src/main/java/com/adyen/model/balanceplatform/TransferRouteRequest.java index 0809b00a2..049cd4b8f 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransferRouteRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransferRouteRequest.java @@ -2,28 +2,34 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.Counterparty; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** TransferRouteRequest */ +/** + * TransferRouteRequest + */ @JsonPropertyOrder({ TransferRouteRequest.JSON_PROPERTY_BALANCE_ACCOUNT_ID, TransferRouteRequest.JSON_PROPERTY_BALANCE_PLATFORM, @@ -33,6 +39,7 @@ TransferRouteRequest.JSON_PROPERTY_CURRENCY, TransferRouteRequest.JSON_PROPERTY_PRIORITIES }) + public class TransferRouteRequest { public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; @@ -41,11 +48,10 @@ public class TransferRouteRequest { private String balancePlatform; /** - * The type of transfer. Possible values: - **bank**: Transfer to a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. + * The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. */ public enum CategoryEnum { + BANK(String.valueOf("bank")); private static final Logger LOG = Logger.getLogger(CategoryEnum.class.getName()); @@ -53,7 +59,7 @@ public enum CategoryEnum { private String value; CategoryEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -74,11 +80,7 @@ public static CategoryEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "CategoryEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(CategoryEnum.values())); + LOG.warning("CategoryEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CategoryEnum.values())); return null; } } @@ -95,8 +97,11 @@ public static CategoryEnum fromValue(String value) { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; - /** Gets or Sets priorities */ + /** + * Gets or Sets priorities + */ public enum PrioritiesEnum { + CROSSBORDER(String.valueOf("crossBorder")), FAST(String.valueOf("fast")), @@ -114,7 +119,7 @@ public enum PrioritiesEnum { private String value; PrioritiesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -135,11 +140,7 @@ public static PrioritiesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PrioritiesEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PrioritiesEnum.values())); + LOG.warning("PrioritiesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PrioritiesEnum.values())); return null; } } @@ -147,16 +148,13 @@ public static PrioritiesEnum fromValue(String value) { public static final String JSON_PROPERTY_PRIORITIES = "priorities"; private List priorities; - public TransferRouteRequest() {} + public TransferRouteRequest() { + } /** - * The unique identifier of the source [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). - * Required if `counterparty` is **transferInstrumentId**. + * The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). Required if `counterparty` is **transferInstrumentId**. * - * @param balanceAccountId The unique identifier of the source [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). - * Required if `counterparty` is **transferInstrumentId**. + * @param balanceAccountId The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). Required if `counterparty` is **transferInstrumentId**. * @return the current {@code TransferRouteRequest} instance, allowing for method chaining */ public TransferRouteRequest balanceAccountId(String balanceAccountId) { @@ -165,13 +163,8 @@ public TransferRouteRequest balanceAccountId(String balanceAccountId) { } /** - * The unique identifier of the source [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). - * Required if `counterparty` is **transferInstrumentId**. - * - * @return balanceAccountId The unique identifier of the source [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). - * Required if `counterparty` is **transferInstrumentId**. + * The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). Required if `counterparty` is **transferInstrumentId**. + * @return balanceAccountId The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). Required if `counterparty` is **transferInstrumentId**. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -180,13 +173,9 @@ public String getBalanceAccountId() { } /** - * The unique identifier of the source [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). - * Required if `counterparty` is **transferInstrumentId**. + * The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). Required if `counterparty` is **transferInstrumentId**. * - * @param balanceAccountId The unique identifier of the source [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). - * Required if `counterparty` is **transferInstrumentId**. + * @param balanceAccountId The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). Required if `counterparty` is **transferInstrumentId**. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -197,8 +186,7 @@ public void setBalanceAccountId(String balanceAccountId) { /** * The unique identifier assigned to the balance platform associated with the account holder. * - * @param balancePlatform The unique identifier assigned to the balance platform associated with - * the account holder. + * @param balancePlatform The unique identifier assigned to the balance platform associated with the account holder. * @return the current {@code TransferRouteRequest} instance, allowing for method chaining */ public TransferRouteRequest balancePlatform(String balancePlatform) { @@ -208,9 +196,7 @@ public TransferRouteRequest balancePlatform(String balancePlatform) { /** * The unique identifier assigned to the balance platform associated with the account holder. - * - * @return balancePlatform The unique identifier assigned to the balance platform associated with - * the account holder. + * @return balancePlatform The unique identifier assigned to the balance platform associated with the account holder. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,8 +207,7 @@ public String getBalancePlatform() { /** * The unique identifier assigned to the balance platform associated with the account holder. * - * @param balancePlatform The unique identifier assigned to the balance platform associated with - * the account holder. + * @param balancePlatform The unique identifier assigned to the balance platform associated with the account holder. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -231,13 +216,9 @@ public void setBalancePlatform(String balancePlatform) { } /** - * The type of transfer. Possible values: - **bank**: Transfer to a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. + * The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. * - * @param category The type of transfer. Possible values: - **bank**: Transfer to a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. + * @param category The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. * @return the current {@code TransferRouteRequest} instance, allowing for method chaining */ public TransferRouteRequest category(CategoryEnum category) { @@ -246,13 +227,8 @@ public TransferRouteRequest category(CategoryEnum category) { } /** - * The type of transfer. Possible values: - **bank**: Transfer to a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. - * - * @return category The type of transfer. Possible values: - **bank**: Transfer to a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. + * The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. + * @return category The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -261,13 +237,9 @@ public CategoryEnum getCategory() { } /** - * The type of transfer. Possible values: - **bank**: Transfer to a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. + * The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. * - * @param category The type of transfer. Possible values: - **bank**: Transfer to a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. + * @param category The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -278,7 +250,7 @@ public void setCategory(CategoryEnum category) { /** * counterparty * - * @param counterparty + * @param counterparty * @return the current {@code TransferRouteRequest} instance, allowing for method chaining */ public TransferRouteRequest counterparty(Counterparty counterparty) { @@ -288,8 +260,7 @@ public TransferRouteRequest counterparty(Counterparty counterparty) { /** * Get counterparty - * - * @return counterparty + * @return counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -300,7 +271,7 @@ public Counterparty getCounterparty() { /** * counterparty * - * @param counterparty + * @param counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -309,13 +280,9 @@ public void setCounterparty(Counterparty counterparty) { } /** - * The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or - * **NL**. > Either `counterparty` or `country` field must be provided in a - * transfer route request. + * The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**. > Either `counterparty` or `country` field must be provided in a transfer route request. * - * @param country The two-character ISO-3166-1 alpha-2 country code of the counterparty. For - * example, **US** or **NL**. > Either `counterparty` or `country` - * field must be provided in a transfer route request. + * @param country The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**. > Either `counterparty` or `country` field must be provided in a transfer route request. * @return the current {@code TransferRouteRequest} instance, allowing for method chaining */ public TransferRouteRequest country(String country) { @@ -324,13 +291,8 @@ public TransferRouteRequest country(String country) { } /** - * The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or - * **NL**. > Either `counterparty` or `country` field must be provided in a - * transfer route request. - * - * @return country The two-character ISO-3166-1 alpha-2 country code of the counterparty. For - * example, **US** or **NL**. > Either `counterparty` or `country` - * field must be provided in a transfer route request. + * The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**. > Either `counterparty` or `country` field must be provided in a transfer route request. + * @return country The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**. > Either `counterparty` or `country` field must be provided in a transfer route request. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -339,13 +301,9 @@ public String getCountry() { } /** - * The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or - * **NL**. > Either `counterparty` or `country` field must be provided in a - * transfer route request. + * The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**. > Either `counterparty` or `country` field must be provided in a transfer route request. * - * @param country The two-character ISO-3166-1 alpha-2 country code of the counterparty. For - * example, **US** or **NL**. > Either `counterparty` or `country` - * field must be provided in a transfer route request. + * @param country The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**. > Either `counterparty` or `country` field must be provided in a transfer route request. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -356,8 +314,7 @@ public void setCountry(String country) { /** * The three-character ISO currency code of transfer. For example, **USD** or **EUR**. * - * @param currency The three-character ISO currency code of transfer. For example, **USD** or - * **EUR**. + * @param currency The three-character ISO currency code of transfer. For example, **USD** or **EUR**. * @return the current {@code TransferRouteRequest} instance, allowing for method chaining */ public TransferRouteRequest currency(String currency) { @@ -367,9 +324,7 @@ public TransferRouteRequest currency(String currency) { /** * The three-character ISO currency code of transfer. For example, **USD** or **EUR**. - * - * @return currency The three-character ISO currency code of transfer. For example, **USD** or - * **EUR**. + * @return currency The three-character ISO currency code of transfer. For example, **USD** or **EUR**. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -380,8 +335,7 @@ public String getCurrency() { /** * The three-character ISO currency code of transfer. For example, **USD** or **EUR**. * - * @param currency The three-character ISO currency code of transfer. For example, **USD** or - * **EUR**. + * @param currency The three-character ISO currency code of transfer. For example, **USD** or **EUR**. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -390,29 +344,9 @@ public void setCurrency(String currency) { } /** - * The list of priorities for the bank transfer. Priorities set the speed at which the transfer is - * sent and the fees that you have to pay. Multiple values can be provided. Possible values: * - * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, - * but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the - * fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, - * high-value transactions. * **instant**: for instant funds transfers within the United States - * and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * The list of priorities for the bank transfer. Priorities set the speed at which the transfer is sent and the fees that you have to pay. Multiple values can be provided. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). * - * @param priorities The list of priorities for the bank transfer. Priorities set the speed at - * which the transfer is sent and the fees that you have to pay. Multiple values can be - * provided. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a - * faster way to transfer funds, but the fees are higher. Recommended for high-priority, - * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the - * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for - * instant funds transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * @param priorities The list of priorities for the bank transfer. Priorities set the speed at which the transfer is sent and the fees that you have to pay. Multiple values can be provided. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). * @return the current {@code TransferRouteRequest} instance, allowing for method chaining */ public TransferRouteRequest priorities(List priorities) { @@ -429,29 +363,8 @@ public TransferRouteRequest addPrioritiesItem(PrioritiesEnum prioritiesItem) { } /** - * The list of priorities for the bank transfer. Priorities set the speed at which the transfer is - * sent and the fees that you have to pay. Multiple values can be provided. Possible values: * - * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, - * but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the - * fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, - * high-value transactions. * **instant**: for instant funds transfers within the United States - * and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). - * - * @return priorities The list of priorities for the bank transfer. Priorities set the speed at - * which the transfer is sent and the fees that you have to pay. Multiple values can be - * provided. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a - * faster way to transfer funds, but the fees are higher. Recommended for high-priority, - * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the - * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for - * instant funds transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * The list of priorities for the bank transfer. Priorities set the speed at which the transfer is sent and the fees that you have to pay. Multiple values can be provided. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * @return priorities The list of priorities for the bank transfer. Priorities set the speed at which the transfer is sent and the fees that you have to pay. Multiple values can be provided. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). */ @JsonProperty(JSON_PROPERTY_PRIORITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -460,29 +373,9 @@ public List getPriorities() { } /** - * The list of priorities for the bank transfer. Priorities set the speed at which the transfer is - * sent and the fees that you have to pay. Multiple values can be provided. Possible values: * - * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, - * but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the - * fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, - * high-value transactions. * **instant**: for instant funds transfers within the United States - * and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * The list of priorities for the bank transfer. Priorities set the speed at which the transfer is sent and the fees that you have to pay. Multiple values can be provided. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). * - * @param priorities The list of priorities for the bank transfer. Priorities set the speed at - * which the transfer is sent and the fees that you have to pay. Multiple values can be - * provided. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a - * faster way to transfer funds, but the fees are higher. Recommended for high-priority, - * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the - * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for - * instant funds transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * @param priorities The list of priorities for the bank transfer. Priorities set the speed at which the transfer is sent and the fees that you have to pay. Multiple values can be provided. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). */ @JsonProperty(JSON_PROPERTY_PRIORITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -490,7 +383,9 @@ public void setPriorities(List priorities) { this.priorities = priorities; } - /** Return true if this TransferRouteRequest object is equal to o. */ + /** + * Return true if this TransferRouteRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -500,19 +395,18 @@ public boolean equals(Object o) { return false; } TransferRouteRequest transferRouteRequest = (TransferRouteRequest) o; - return Objects.equals(this.balanceAccountId, transferRouteRequest.balanceAccountId) - && Objects.equals(this.balancePlatform, transferRouteRequest.balancePlatform) - && Objects.equals(this.category, transferRouteRequest.category) - && Objects.equals(this.counterparty, transferRouteRequest.counterparty) - && Objects.equals(this.country, transferRouteRequest.country) - && Objects.equals(this.currency, transferRouteRequest.currency) - && Objects.equals(this.priorities, transferRouteRequest.priorities); + return Objects.equals(this.balanceAccountId, transferRouteRequest.balanceAccountId) && + Objects.equals(this.balancePlatform, transferRouteRequest.balancePlatform) && + Objects.equals(this.category, transferRouteRequest.category) && + Objects.equals(this.counterparty, transferRouteRequest.counterparty) && + Objects.equals(this.country, transferRouteRequest.country) && + Objects.equals(this.currency, transferRouteRequest.currency) && + Objects.equals(this.priorities, transferRouteRequest.priorities); } @Override public int hashCode() { - return Objects.hash( - balanceAccountId, balancePlatform, category, counterparty, country, currency, priorities); + return Objects.hash(balanceAccountId, balancePlatform, category, counterparty, country, currency, priorities); } @Override @@ -531,7 +425,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -540,23 +435,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransferRouteRequest given an JSON string * * @param jsonString JSON string * @return An instance of TransferRouteRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransferRouteRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to TransferRouteRequest */ public static TransferRouteRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferRouteRequest.class); } - - /** - * Convert an instance of TransferRouteRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransferRouteRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransferRouteRequirementsInner.java b/src/main/java/com/adyen/model/balanceplatform/TransferRouteRequirementsInner.java index 0a86079f4..a0d3fe7df 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransferRouteRequirementsInner.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransferRouteRequirementsInner.java @@ -2,19 +2,55 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.AdditionalBankIdentificationRequirement; +import com.adyen.model.balanceplatform.AddressRequirement; +import com.adyen.model.balanceplatform.AmountMinMaxRequirement; +import com.adyen.model.balanceplatform.AmountNonZeroDecimalsRequirement; +import com.adyen.model.balanceplatform.BankAccountIdentificationTypeRequirement; +import com.adyen.model.balanceplatform.IbanAccountIdentificationRequirement; +import com.adyen.model.balanceplatform.PaymentInstrumentRequirement; +import com.adyen.model.balanceplatform.USInstantPayoutAddressRequirement; +import com.adyen.model.balanceplatform.USInternationalAchAddressRequirement; +import com.adyen.model.balanceplatform.USInternationalAchPriorityRequirement; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + +import com.fasterxml.jackson.core.type.TypeReference; + +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.Response; +import java.io.IOException; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; + import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; +import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -24,687 +60,590 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import jakarta.ws.rs.core.GenericType; -import java.io.IOException; -import java.util.*; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashSet; -import java.util.logging.Level; -import java.util.logging.Logger; -@JsonDeserialize( - using = TransferRouteRequirementsInner.TransferRouteRequirementsInnerDeserializer.class) -@JsonSerialize( - using = TransferRouteRequirementsInner.TransferRouteRequirementsInnerSerializer.class) + +@JsonDeserialize(using = TransferRouteRequirementsInner.TransferRouteRequirementsInnerDeserializer.class) +@JsonSerialize(using = TransferRouteRequirementsInner.TransferRouteRequirementsInnerSerializer.class) public class TransferRouteRequirementsInner extends AbstractOpenApiSchema { - private static final Logger log = - Logger.getLogger(TransferRouteRequirementsInner.class.getName()); + private static final Logger log = Logger.getLogger(TransferRouteRequirementsInner.class.getName()); - public static class TransferRouteRequirementsInnerSerializer - extends StdSerializer { - public TransferRouteRequirementsInnerSerializer(Class t) { - super(t); + public static class TransferRouteRequirementsInnerSerializer extends StdSerializer { + public TransferRouteRequirementsInnerSerializer(Class t) { + super(t); + } + + public TransferRouteRequirementsInnerSerializer() { + this(null); + } + + @Override + public void serialize(TransferRouteRequirementsInner value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); + } } - public TransferRouteRequirementsInnerSerializer() { - this(null); + public static class TransferRouteRequirementsInnerDeserializer extends StdDeserializer { + public TransferRouteRequirementsInnerDeserializer() { + this(TransferRouteRequirementsInner.class); + } + + public TransferRouteRequirementsInnerDeserializer(Class vc) { + super(vc); + } + + @Override + public TransferRouteRequirementsInner deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize AdditionalBankIdentificationRequirement + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(AdditionalBankIdentificationRequirement.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(AdditionalBankIdentificationRequirement.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'AdditionalBankIdentificationRequirement'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'AdditionalBankIdentificationRequirement'", e); + } + + // deserialize AddressRequirement + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(AddressRequirement.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(AddressRequirement.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'AddressRequirement'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'AddressRequirement'", e); + } + + // deserialize AmountMinMaxRequirement + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(AmountMinMaxRequirement.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(AmountMinMaxRequirement.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'AmountMinMaxRequirement'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'AmountMinMaxRequirement'", e); + } + + // deserialize AmountNonZeroDecimalsRequirement + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(AmountNonZeroDecimalsRequirement.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(AmountNonZeroDecimalsRequirement.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'AmountNonZeroDecimalsRequirement'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'AmountNonZeroDecimalsRequirement'", e); + } + + // deserialize BankAccountIdentificationTypeRequirement + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(BankAccountIdentificationTypeRequirement.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(BankAccountIdentificationTypeRequirement.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'BankAccountIdentificationTypeRequirement'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'BankAccountIdentificationTypeRequirement'", e); + } + + // deserialize IbanAccountIdentificationRequirement + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(IbanAccountIdentificationRequirement.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentificationRequirement.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'IbanAccountIdentificationRequirement'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'IbanAccountIdentificationRequirement'", e); + } + + // deserialize PaymentInstrumentRequirement + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(PaymentInstrumentRequirement.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PaymentInstrumentRequirement.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PaymentInstrumentRequirement'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PaymentInstrumentRequirement'", e); + } + + // deserialize USInstantPayoutAddressRequirement + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(USInstantPayoutAddressRequirement.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(USInstantPayoutAddressRequirement.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'USInstantPayoutAddressRequirement'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'USInstantPayoutAddressRequirement'", e); + } + + // deserialize USInternationalAchAddressRequirement + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(USInternationalAchAddressRequirement.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(USInternationalAchAddressRequirement.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'USInternationalAchAddressRequirement'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'USInternationalAchAddressRequirement'", e); + } + + // deserialize USInternationalAchPriorityRequirement + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(USInternationalAchPriorityRequirement.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(USInternationalAchPriorityRequirement.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'USInternationalAchPriorityRequirement'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'USInternationalAchPriorityRequirement'", e); + } + + if (match == 1) { + TransferRouteRequirementsInner ret = new TransferRouteRequirementsInner(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException(String.format("Failed deserialization for TransferRouteRequirementsInner: %d classes match result, expected 1", match)); + } + + /** + * Handle deserialization of the 'null' value. + */ + @Override + public TransferRouteRequirementsInner getNullValue(DeserializationContext ctxt) throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "TransferRouteRequirementsInner cannot be null"); + } } - @Override - public void serialize( - TransferRouteRequirementsInner value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public TransferRouteRequirementsInner() { + super("oneOf", Boolean.FALSE); } - } - public static class TransferRouteRequirementsInnerDeserializer - extends StdDeserializer { - public TransferRouteRequirementsInnerDeserializer() { - this(TransferRouteRequirementsInner.class); + public TransferRouteRequirementsInner(AdditionalBankIdentificationRequirement o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } - public TransferRouteRequirementsInnerDeserializer(Class vc) { - super(vc); + public TransferRouteRequirementsInner(AddressRequirement o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferRouteRequirementsInner(AmountMinMaxRequirement o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferRouteRequirementsInner(AmountNonZeroDecimalsRequirement o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferRouteRequirementsInner(BankAccountIdentificationTypeRequirement o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferRouteRequirementsInner(IbanAccountIdentificationRequirement o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferRouteRequirementsInner(PaymentInstrumentRequirement o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferRouteRequirementsInner(USInstantPayoutAddressRequirement o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferRouteRequirementsInner(USInternationalAchAddressRequirement o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferRouteRequirementsInner(USInternationalAchPriorityRequirement o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("AdditionalBankIdentificationRequirement", new GenericType() { + }); + schemas.put("AddressRequirement", new GenericType() { + }); + schemas.put("AmountMinMaxRequirement", new GenericType() { + }); + schemas.put("AmountNonZeroDecimalsRequirement", new GenericType() { + }); + schemas.put("BankAccountIdentificationTypeRequirement", new GenericType() { + }); + schemas.put("IbanAccountIdentificationRequirement", new GenericType() { + }); + schemas.put("PaymentInstrumentRequirement", new GenericType() { + }); + schemas.put("USInstantPayoutAddressRequirement", new GenericType() { + }); + schemas.put("USInternationalAchAddressRequirement", new GenericType() { + }); + schemas.put("USInternationalAchPriorityRequirement", new GenericType() { + }); + JSON.registerDescendants(TransferRouteRequirementsInner.class, Collections.unmodifiableMap(schemas)); } @Override - public TransferRouteRequirementsInner deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize AdditionalBankIdentificationRequirement - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(AdditionalBankIdentificationRequirement.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()) - .readValueAs(AdditionalBankIdentificationRequirement.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log( - Level.FINER, "Input data matches schema 'AdditionalBankIdentificationRequirement'"); - } + public Map> getSchemas() { + return TransferRouteRequirementsInner.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check + * the instance parameter is valid against the oneOf child schemas: + * AdditionalBankIdentificationRequirement, AddressRequirement, AmountMinMaxRequirement, AmountNonZeroDecimalsRequirement, BankAccountIdentificationTypeRequirement, IbanAccountIdentificationRequirement, PaymentInstrumentRequirement, USInstantPayoutAddressRequirement, USInternationalAchAddressRequirement, USInternationalAchPriorityRequirement + * + * It could be an instance of the 'oneOf' schemas. + * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(AdditionalBankIdentificationRequirement.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, - "Input data does not match schema 'AdditionalBankIdentificationRequirement'", - e); - } - - // deserialize AddressRequirement - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(AddressRequirement.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AddressRequirement.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AddressRequirement'"); - } + + if (JSON.isInstanceOf(AddressRequirement.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AddressRequirement'", e); - } - - // deserialize AmountMinMaxRequirement - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(AmountMinMaxRequirement.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AmountMinMaxRequirement.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AmountMinMaxRequirement'"); - } + + if (JSON.isInstanceOf(AmountMinMaxRequirement.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AmountMinMaxRequirement'", e); - } - - // deserialize AmountNonZeroDecimalsRequirement - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(AmountNonZeroDecimalsRequirement.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(AmountNonZeroDecimalsRequirement.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AmountNonZeroDecimalsRequirement'"); - } + + if (JSON.isInstanceOf(AmountNonZeroDecimalsRequirement.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, "Input data does not match schema 'AmountNonZeroDecimalsRequirement'", e); - } - - // deserialize BankAccountIdentificationTypeRequirement - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(BankAccountIdentificationTypeRequirement.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()) - .readValueAs(BankAccountIdentificationTypeRequirement.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log( - Level.FINER, - "Input data matches schema 'BankAccountIdentificationTypeRequirement'"); - } + + if (JSON.isInstanceOf(BankAccountIdentificationTypeRequirement.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, - "Input data does not match schema 'BankAccountIdentificationTypeRequirement'", - e); - } - - // deserialize IbanAccountIdentificationRequirement - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(IbanAccountIdentificationRequirement.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()) - .readValueAs(IbanAccountIdentificationRequirement.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log( - Level.FINER, "Input data matches schema 'IbanAccountIdentificationRequirement'"); - } + + if (JSON.isInstanceOf(IbanAccountIdentificationRequirement.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, - "Input data does not match schema 'IbanAccountIdentificationRequirement'", - e); - } - - // deserialize PaymentInstrumentRequirement - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(PaymentInstrumentRequirement.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(PaymentInstrumentRequirement.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PaymentInstrumentRequirement'"); - } + + if (JSON.isInstanceOf(PaymentInstrumentRequirement.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PaymentInstrumentRequirement'", e); - } - - // deserialize USInstantPayoutAddressRequirement - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(USInstantPayoutAddressRequirement.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(USInstantPayoutAddressRequirement.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'USInstantPayoutAddressRequirement'"); - } + + if (JSON.isInstanceOf(USInstantPayoutAddressRequirement.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, "Input data does not match schema 'USInstantPayoutAddressRequirement'", e); - } - - // deserialize USInternationalAchAddressRequirement - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(USInternationalAchAddressRequirement.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()) - .readValueAs(USInternationalAchAddressRequirement.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log( - Level.FINER, "Input data matches schema 'USInternationalAchAddressRequirement'"); - } + + if (JSON.isInstanceOf(USInternationalAchAddressRequirement.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, - "Input data does not match schema 'USInternationalAchAddressRequirement'", - e); - } - - // deserialize USInternationalAchPriorityRequirement - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(USInternationalAchPriorityRequirement.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()) - .readValueAs(USInternationalAchPriorityRequirement.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log( - Level.FINER, "Input data matches schema 'USInternationalAchPriorityRequirement'"); - } + + if (JSON.isInstanceOf(USInternationalAchPriorityRequirement.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, - "Input data does not match schema 'USInternationalAchPriorityRequirement'", - e); - } - - if (match == 1) { - TransferRouteRequirementsInner ret = new TransferRouteRequirementsInner(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for TransferRouteRequirementsInner: %d classes match result, expected 1", - match)); + + throw new RuntimeException("Invalid instance type. Must be AdditionalBankIdentificationRequirement, AddressRequirement, AmountMinMaxRequirement, AmountNonZeroDecimalsRequirement, BankAccountIdentificationTypeRequirement, IbanAccountIdentificationRequirement, PaymentInstrumentRequirement, USInstantPayoutAddressRequirement, USInternationalAchAddressRequirement, USInternationalAchPriorityRequirement"); } - /** Handle deserialization of the 'null' value. */ + /** + * Get the actual instance, which can be the following: + * AdditionalBankIdentificationRequirement, AddressRequirement, AmountMinMaxRequirement, AmountNonZeroDecimalsRequirement, BankAccountIdentificationTypeRequirement, IbanAccountIdentificationRequirement, PaymentInstrumentRequirement, USInstantPayoutAddressRequirement, USInternationalAchAddressRequirement, USInternationalAchPriorityRequirement + * + * @return The actual instance (AdditionalBankIdentificationRequirement, AddressRequirement, AmountMinMaxRequirement, AmountNonZeroDecimalsRequirement, BankAccountIdentificationTypeRequirement, IbanAccountIdentificationRequirement, PaymentInstrumentRequirement, USInstantPayoutAddressRequirement, USInternationalAchAddressRequirement, USInternationalAchPriorityRequirement) + */ @Override - public TransferRouteRequirementsInner getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "TransferRouteRequirementsInner cannot be null"); + public Object getActualInstance() { + return super.getActualInstance(); } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public TransferRouteRequirementsInner() { - super("oneOf", Boolean.FALSE); - } - - public TransferRouteRequirementsInner(AdditionalBankIdentificationRequirement o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferRouteRequirementsInner(AddressRequirement o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferRouteRequirementsInner(AmountMinMaxRequirement o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferRouteRequirementsInner(AmountNonZeroDecimalsRequirement o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferRouteRequirementsInner(BankAccountIdentificationTypeRequirement o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferRouteRequirementsInner(IbanAccountIdentificationRequirement o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferRouteRequirementsInner(PaymentInstrumentRequirement o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferRouteRequirementsInner(USInstantPayoutAddressRequirement o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferRouteRequirementsInner(USInternationalAchAddressRequirement o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferRouteRequirementsInner(USInternationalAchPriorityRequirement o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put( - "AdditionalBankIdentificationRequirement", - new GenericType() {}); - schemas.put("AddressRequirement", new GenericType() {}); - schemas.put("AmountMinMaxRequirement", new GenericType() {}); - schemas.put( - "AmountNonZeroDecimalsRequirement", new GenericType() {}); - schemas.put( - "BankAccountIdentificationTypeRequirement", - new GenericType() {}); - schemas.put( - "IbanAccountIdentificationRequirement", - new GenericType() {}); - schemas.put("PaymentInstrumentRequirement", new GenericType() {}); - schemas.put( - "USInstantPayoutAddressRequirement", - new GenericType() {}); - schemas.put( - "USInternationalAchAddressRequirement", - new GenericType() {}); - schemas.put( - "USInternationalAchPriorityRequirement", - new GenericType() {}); - JSON.registerDescendants( - TransferRouteRequirementsInner.class, Collections.unmodifiableMap(schemas)); - } - - @Override - public Map> getSchemas() { - return TransferRouteRequirementsInner.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: AdditionalBankIdentificationRequirement, AddressRequirement, - * AmountMinMaxRequirement, AmountNonZeroDecimalsRequirement, - * BankAccountIdentificationTypeRequirement, IbanAccountIdentificationRequirement, - * PaymentInstrumentRequirement, USInstantPayoutAddressRequirement, - * USInternationalAchAddressRequirement, USInternationalAchPriorityRequirement - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a - * composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf( - AdditionalBankIdentificationRequirement.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + + /** + * Get the actual instance of `AdditionalBankIdentificationRequirement`. If the actual instance is not `AdditionalBankIdentificationRequirement`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `AdditionalBankIdentificationRequirement` + * @throws ClassCastException if the instance is not `AdditionalBankIdentificationRequirement` + */ + public AdditionalBankIdentificationRequirement getAdditionalBankIdentificationRequirement() throws ClassCastException { + return (AdditionalBankIdentificationRequirement)super.getActualInstance(); } - if (JSON.isInstanceOf(AddressRequirement.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `AddressRequirement`. If the actual instance is not `AddressRequirement`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `AddressRequirement` + * @throws ClassCastException if the instance is not `AddressRequirement` + */ + public AddressRequirement getAddressRequirement() throws ClassCastException { + return (AddressRequirement)super.getActualInstance(); } - if (JSON.isInstanceOf(AmountMinMaxRequirement.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `AmountMinMaxRequirement`. If the actual instance is not `AmountMinMaxRequirement`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `AmountMinMaxRequirement` + * @throws ClassCastException if the instance is not `AmountMinMaxRequirement` + */ + public AmountMinMaxRequirement getAmountMinMaxRequirement() throws ClassCastException { + return (AmountMinMaxRequirement)super.getActualInstance(); } - if (JSON.isInstanceOf(AmountNonZeroDecimalsRequirement.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `AmountNonZeroDecimalsRequirement`. If the actual instance is not `AmountNonZeroDecimalsRequirement`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `AmountNonZeroDecimalsRequirement` + * @throws ClassCastException if the instance is not `AmountNonZeroDecimalsRequirement` + */ + public AmountNonZeroDecimalsRequirement getAmountNonZeroDecimalsRequirement() throws ClassCastException { + return (AmountNonZeroDecimalsRequirement)super.getActualInstance(); } - if (JSON.isInstanceOf( - BankAccountIdentificationTypeRequirement.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `BankAccountIdentificationTypeRequirement`. If the actual instance is not `BankAccountIdentificationTypeRequirement`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `BankAccountIdentificationTypeRequirement` + * @throws ClassCastException if the instance is not `BankAccountIdentificationTypeRequirement` + */ + public BankAccountIdentificationTypeRequirement getBankAccountIdentificationTypeRequirement() throws ClassCastException { + return (BankAccountIdentificationTypeRequirement)super.getActualInstance(); } - if (JSON.isInstanceOf(IbanAccountIdentificationRequirement.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `IbanAccountIdentificationRequirement`. If the actual instance is not `IbanAccountIdentificationRequirement`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `IbanAccountIdentificationRequirement` + * @throws ClassCastException if the instance is not `IbanAccountIdentificationRequirement` + */ + public IbanAccountIdentificationRequirement getIbanAccountIdentificationRequirement() throws ClassCastException { + return (IbanAccountIdentificationRequirement)super.getActualInstance(); } - if (JSON.isInstanceOf(PaymentInstrumentRequirement.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `PaymentInstrumentRequirement`. If the actual instance is not `PaymentInstrumentRequirement`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `PaymentInstrumentRequirement` + * @throws ClassCastException if the instance is not `PaymentInstrumentRequirement` + */ + public PaymentInstrumentRequirement getPaymentInstrumentRequirement() throws ClassCastException { + return (PaymentInstrumentRequirement)super.getActualInstance(); } - if (JSON.isInstanceOf(USInstantPayoutAddressRequirement.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `USInstantPayoutAddressRequirement`. If the actual instance is not `USInstantPayoutAddressRequirement`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `USInstantPayoutAddressRequirement` + * @throws ClassCastException if the instance is not `USInstantPayoutAddressRequirement` + */ + public USInstantPayoutAddressRequirement getUSInstantPayoutAddressRequirement() throws ClassCastException { + return (USInstantPayoutAddressRequirement)super.getActualInstance(); } - if (JSON.isInstanceOf(USInternationalAchAddressRequirement.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `USInternationalAchAddressRequirement`. If the actual instance is not `USInternationalAchAddressRequirement`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `USInternationalAchAddressRequirement` + * @throws ClassCastException if the instance is not `USInternationalAchAddressRequirement` + */ + public USInternationalAchAddressRequirement getUSInternationalAchAddressRequirement() throws ClassCastException { + return (USInternationalAchAddressRequirement)super.getActualInstance(); + } + + /** + * Get the actual instance of `USInternationalAchPriorityRequirement`. If the actual instance is not `USInternationalAchPriorityRequirement`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `USInternationalAchPriorityRequirement` + * @throws ClassCastException if the instance is not `USInternationalAchPriorityRequirement` + */ + public USInternationalAchPriorityRequirement getUSInternationalAchPriorityRequirement() throws ClassCastException { + return (USInternationalAchPriorityRequirement)super.getActualInstance(); + } + + + /** + * Create an instance of TransferRouteRequirementsInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of TransferRouteRequirementsInner + * @throws IOException if the JSON string is invalid with respect to TransferRouteRequirementsInner + */ + public static TransferRouteRequirementsInner fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, TransferRouteRequirementsInner.class); } - if (JSON.isInstanceOf(USInternationalAchPriorityRequirement.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Convert an instance of TransferRouteRequirementsInner to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); } - throw new RuntimeException( - "Invalid instance type. Must be AdditionalBankIdentificationRequirement, AddressRequirement, AmountMinMaxRequirement, AmountNonZeroDecimalsRequirement, BankAccountIdentificationTypeRequirement, IbanAccountIdentificationRequirement, PaymentInstrumentRequirement, USInstantPayoutAddressRequirement, USInternationalAchAddressRequirement, USInternationalAchPriorityRequirement"); - } - - /** - * Get the actual instance, which can be the following: AdditionalBankIdentificationRequirement, - * AddressRequirement, AmountMinMaxRequirement, AmountNonZeroDecimalsRequirement, - * BankAccountIdentificationTypeRequirement, IbanAccountIdentificationRequirement, - * PaymentInstrumentRequirement, USInstantPayoutAddressRequirement, - * USInternationalAchAddressRequirement, USInternationalAchPriorityRequirement - * - * @return The actual instance (AdditionalBankIdentificationRequirement, AddressRequirement, - * AmountMinMaxRequirement, AmountNonZeroDecimalsRequirement, - * BankAccountIdentificationTypeRequirement, IbanAccountIdentificationRequirement, - * PaymentInstrumentRequirement, USInstantPayoutAddressRequirement, - * USInternationalAchAddressRequirement, USInternationalAchPriorityRequirement) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `AdditionalBankIdentificationRequirement`. If the actual instance is - * not `AdditionalBankIdentificationRequirement`, the ClassCastException will be thrown. - * - * @return The actual instance of `AdditionalBankIdentificationRequirement` - * @throws ClassCastException if the instance is not `AdditionalBankIdentificationRequirement` - */ - public AdditionalBankIdentificationRequirement getAdditionalBankIdentificationRequirement() - throws ClassCastException { - return (AdditionalBankIdentificationRequirement) super.getActualInstance(); - } - - /** - * Get the actual instance of `AddressRequirement`. If the actual instance is not - * `AddressRequirement`, the ClassCastException will be thrown. - * - * @return The actual instance of `AddressRequirement` - * @throws ClassCastException if the instance is not `AddressRequirement` - */ - public AddressRequirement getAddressRequirement() throws ClassCastException { - return (AddressRequirement) super.getActualInstance(); - } - - /** - * Get the actual instance of `AmountMinMaxRequirement`. If the actual instance is not - * `AmountMinMaxRequirement`, the ClassCastException will be thrown. - * - * @return The actual instance of `AmountMinMaxRequirement` - * @throws ClassCastException if the instance is not `AmountMinMaxRequirement` - */ - public AmountMinMaxRequirement getAmountMinMaxRequirement() throws ClassCastException { - return (AmountMinMaxRequirement) super.getActualInstance(); - } - - /** - * Get the actual instance of `AmountNonZeroDecimalsRequirement`. If the actual instance is not - * `AmountNonZeroDecimalsRequirement`, the ClassCastException will be thrown. - * - * @return The actual instance of `AmountNonZeroDecimalsRequirement` - * @throws ClassCastException if the instance is not `AmountNonZeroDecimalsRequirement` - */ - public AmountNonZeroDecimalsRequirement getAmountNonZeroDecimalsRequirement() - throws ClassCastException { - return (AmountNonZeroDecimalsRequirement) super.getActualInstance(); - } - - /** - * Get the actual instance of `BankAccountIdentificationTypeRequirement`. If the actual instance - * is not `BankAccountIdentificationTypeRequirement`, the ClassCastException will be thrown. - * - * @return The actual instance of `BankAccountIdentificationTypeRequirement` - * @throws ClassCastException if the instance is not `BankAccountIdentificationTypeRequirement` - */ - public BankAccountIdentificationTypeRequirement getBankAccountIdentificationTypeRequirement() - throws ClassCastException { - return (BankAccountIdentificationTypeRequirement) super.getActualInstance(); - } - - /** - * Get the actual instance of `IbanAccountIdentificationRequirement`. If the actual instance is - * not `IbanAccountIdentificationRequirement`, the ClassCastException will be thrown. - * - * @return The actual instance of `IbanAccountIdentificationRequirement` - * @throws ClassCastException if the instance is not `IbanAccountIdentificationRequirement` - */ - public IbanAccountIdentificationRequirement getIbanAccountIdentificationRequirement() - throws ClassCastException { - return (IbanAccountIdentificationRequirement) super.getActualInstance(); - } - - /** - * Get the actual instance of `PaymentInstrumentRequirement`. If the actual instance is not - * `PaymentInstrumentRequirement`, the ClassCastException will be thrown. - * - * @return The actual instance of `PaymentInstrumentRequirement` - * @throws ClassCastException if the instance is not `PaymentInstrumentRequirement` - */ - public PaymentInstrumentRequirement getPaymentInstrumentRequirement() throws ClassCastException { - return (PaymentInstrumentRequirement) super.getActualInstance(); - } - - /** - * Get the actual instance of `USInstantPayoutAddressRequirement`. If the actual instance is not - * `USInstantPayoutAddressRequirement`, the ClassCastException will be thrown. - * - * @return The actual instance of `USInstantPayoutAddressRequirement` - * @throws ClassCastException if the instance is not `USInstantPayoutAddressRequirement` - */ - public USInstantPayoutAddressRequirement getUSInstantPayoutAddressRequirement() - throws ClassCastException { - return (USInstantPayoutAddressRequirement) super.getActualInstance(); - } - - /** - * Get the actual instance of `USInternationalAchAddressRequirement`. If the actual instance is - * not `USInternationalAchAddressRequirement`, the ClassCastException will be thrown. - * - * @return The actual instance of `USInternationalAchAddressRequirement` - * @throws ClassCastException if the instance is not `USInternationalAchAddressRequirement` - */ - public USInternationalAchAddressRequirement getUSInternationalAchAddressRequirement() - throws ClassCastException { - return (USInternationalAchAddressRequirement) super.getActualInstance(); - } - - /** - * Get the actual instance of `USInternationalAchPriorityRequirement`. If the actual instance is - * not `USInternationalAchPriorityRequirement`, the ClassCastException will be thrown. - * - * @return The actual instance of `USInternationalAchPriorityRequirement` - * @throws ClassCastException if the instance is not `USInternationalAchPriorityRequirement` - */ - public USInternationalAchPriorityRequirement getUSInternationalAchPriorityRequirement() - throws ClassCastException { - return (USInternationalAchPriorityRequirement) super.getActualInstance(); - } - - /** - * Create an instance of TransferRouteRequirementsInner given an JSON string - * - * @param jsonString JSON string - * @return An instance of TransferRouteRequirementsInner - * @throws IOException if the JSON string is invalid with respect to - * TransferRouteRequirementsInner - */ - public static TransferRouteRequirementsInner fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, TransferRouteRequirementsInner.class); - } - - /** - * Convert an instance of TransferRouteRequirementsInner to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); - } } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransferRouteResponse.java b/src/main/java/com/adyen/model/balanceplatform/TransferRouteResponse.java index 70da671ca..4b24dd828 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransferRouteResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransferRouteResponse.java @@ -2,37 +2,49 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.TransferRoute; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * TransferRouteResponse + */ +@JsonPropertyOrder({ + TransferRouteResponse.JSON_PROPERTY_TRANSFER_ROUTES +}) -/** TransferRouteResponse */ -@JsonPropertyOrder({TransferRouteResponse.JSON_PROPERTY_TRANSFER_ROUTES}) public class TransferRouteResponse { public static final String JSON_PROPERTY_TRANSFER_ROUTES = "transferRoutes"; private List transferRoutes; - public TransferRouteResponse() {} + public TransferRouteResponse() { + } /** - * List of available priorities for a transfer, along with requirements. Use this information to - * initiate a transfer. + * List of available priorities for a transfer, along with requirements. Use this information to initiate a transfer. * - * @param transferRoutes List of available priorities for a transfer, along with requirements. Use - * this information to initiate a transfer. + * @param transferRoutes List of available priorities for a transfer, along with requirements. Use this information to initiate a transfer. * @return the current {@code TransferRouteResponse} instance, allowing for method chaining */ public TransferRouteResponse transferRoutes(List transferRoutes) { @@ -49,11 +61,8 @@ public TransferRouteResponse addTransferRoutesItem(TransferRoute transferRoutesI } /** - * List of available priorities for a transfer, along with requirements. Use this information to - * initiate a transfer. - * - * @return transferRoutes List of available priorities for a transfer, along with requirements. - * Use this information to initiate a transfer. + * List of available priorities for a transfer, along with requirements. Use this information to initiate a transfer. + * @return transferRoutes List of available priorities for a transfer, along with requirements. Use this information to initiate a transfer. */ @JsonProperty(JSON_PROPERTY_TRANSFER_ROUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -62,11 +71,9 @@ public List getTransferRoutes() { } /** - * List of available priorities for a transfer, along with requirements. Use this information to - * initiate a transfer. + * List of available priorities for a transfer, along with requirements. Use this information to initiate a transfer. * - * @param transferRoutes List of available priorities for a transfer, along with requirements. Use - * this information to initiate a transfer. + * @param transferRoutes List of available priorities for a transfer, along with requirements. Use this information to initiate a transfer. */ @JsonProperty(JSON_PROPERTY_TRANSFER_ROUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -74,7 +81,9 @@ public void setTransferRoutes(List transferRoutes) { this.transferRoutes = transferRoutes; } - /** Return true if this TransferRouteResponse object is equal to o. */ + /** + * Return true if this TransferRouteResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -102,7 +111,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -111,23 +121,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransferRouteResponse given an JSON string * * @param jsonString JSON string * @return An instance of TransferRouteResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransferRouteResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to TransferRouteResponse */ public static TransferRouteResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferRouteResponse.class); } - - /** - * Convert an instance of TransferRouteResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransferRouteResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/UKLocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/UKLocalAccountIdentification.java index c2179eeb7..f3db100dd 100644 --- a/src/main/java/com/adyen/model/balanceplatform/UKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/UKLocalAccountIdentification.java @@ -2,31 +2,37 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** UKLocalAccountIdentification */ + +/** + * UKLocalAccountIdentification + */ @JsonPropertyOrder({ UKLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, UKLocalAccountIdentification.JSON_PROPERTY_SORT_CODE, UKLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class UKLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -34,8 +40,11 @@ public class UKLocalAccountIdentification { public static final String JSON_PROPERTY_SORT_CODE = "sortCode"; private String sortCode; - /** **ukLocal** */ + /** + * **ukLocal** + */ public enum TypeEnum { + UKLOCAL(String.valueOf("ukLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -43,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -76,7 +81,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public UKLocalAccountIdentification() {} + public UKLocalAccountIdentification() { + } /** * The 8-digit bank account number, without separators or whitespace. @@ -91,7 +97,6 @@ public UKLocalAccountIdentification accountNumber(String accountNumber) { /** * The 8-digit bank account number, without separators or whitespace. - * * @return accountNumber The 8-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -112,11 +117,9 @@ public void setAccountNumber(String accountNumber) { } /** - * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or - * whitespace. + * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. * - * @param sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without - * separators or whitespace. + * @param sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. * @return the current {@code UKLocalAccountIdentification} instance, allowing for method chaining */ public UKLocalAccountIdentification sortCode(String sortCode) { @@ -125,11 +128,8 @@ public UKLocalAccountIdentification sortCode(String sortCode) { } /** - * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or - * whitespace. - * - * @return sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without - * separators or whitespace. + * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. + * @return sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_SORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,11 +138,9 @@ public String getSortCode() { } /** - * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or - * whitespace. + * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. * - * @param sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without - * separators or whitespace. + * @param sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_SORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,7 +161,6 @@ public UKLocalAccountIdentification type(TypeEnum type) { /** * **ukLocal** - * * @return type **ukLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -183,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this UKLocalAccountIdentification object is equal to o. */ + /** + * Return true if this UKLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -193,9 +192,9 @@ public boolean equals(Object o) { return false; } UKLocalAccountIdentification ukLocalAccountIdentification = (UKLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, ukLocalAccountIdentification.accountNumber) - && Objects.equals(this.sortCode, ukLocalAccountIdentification.sortCode) - && Objects.equals(this.type, ukLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, ukLocalAccountIdentification.accountNumber) && + Objects.equals(this.sortCode, ukLocalAccountIdentification.sortCode) && + Objects.equals(this.type, ukLocalAccountIdentification.type); } @Override @@ -215,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,24 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of UKLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of UKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UKLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to UKLocalAccountIdentification */ - public static UKLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static UKLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UKLocalAccountIdentification.class); } - - /** - * Convert an instance of UKLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of UKLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/USInstantPayoutAddressRequirement.java b/src/main/java/com/adyen/model/balanceplatform/USInstantPayoutAddressRequirement.java index 08b0c1d1a..1aa667872 100644 --- a/src/main/java/com/adyen/model/balanceplatform/USInstantPayoutAddressRequirement.java +++ b/src/main/java/com/adyen/model/balanceplatform/USInstantPayoutAddressRequirement.java @@ -2,36 +2,45 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** USInstantPayoutAddressRequirement */ + +/** + * USInstantPayoutAddressRequirement + */ @JsonPropertyOrder({ USInstantPayoutAddressRequirement.JSON_PROPERTY_DESCRIPTION, USInstantPayoutAddressRequirement.JSON_PROPERTY_TYPE }) + public class USInstantPayoutAddressRequirement { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; - /** **usInstantPayoutAddressRequirement** */ + /** + * **usInstantPayoutAddressRequirement** + */ public enum TypeEnum { + USINSTANTPAYOUTADDRESSREQUIREMENT(String.valueOf("usInstantPayoutAddressRequirement")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -39,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -72,16 +77,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public USInstantPayoutAddressRequirement() {} + public USInstantPayoutAddressRequirement() { + } /** - * Specifies that you must provide complete street addresses for the party and counterParty for - * transactions greater than USD 3000. + * Specifies that you must provide complete street addresses for the party and counterParty for transactions greater than USD 3000. * - * @param description Specifies that you must provide complete street addresses for the party and - * counterParty for transactions greater than USD 3000. - * @return the current {@code USInstantPayoutAddressRequirement} instance, allowing for method - * chaining + * @param description Specifies that you must provide complete street addresses for the party and counterParty for transactions greater than USD 3000. + * @return the current {@code USInstantPayoutAddressRequirement} instance, allowing for method chaining */ public USInstantPayoutAddressRequirement description(String description) { this.description = description; @@ -89,11 +92,8 @@ public USInstantPayoutAddressRequirement description(String description) { } /** - * Specifies that you must provide complete street addresses for the party and counterParty for - * transactions greater than USD 3000. - * - * @return description Specifies that you must provide complete street addresses for the party and - * counterParty for transactions greater than USD 3000. + * Specifies that you must provide complete street addresses for the party and counterParty for transactions greater than USD 3000. + * @return description Specifies that you must provide complete street addresses for the party and counterParty for transactions greater than USD 3000. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,11 +102,9 @@ public String getDescription() { } /** - * Specifies that you must provide complete street addresses for the party and counterParty for - * transactions greater than USD 3000. + * Specifies that you must provide complete street addresses for the party and counterParty for transactions greater than USD 3000. * - * @param description Specifies that you must provide complete street addresses for the party and - * counterParty for transactions greater than USD 3000. + * @param description Specifies that you must provide complete street addresses for the party and counterParty for transactions greater than USD 3000. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,8 +116,7 @@ public void setDescription(String description) { * **usInstantPayoutAddressRequirement** * * @param type **usInstantPayoutAddressRequirement** - * @return the current {@code USInstantPayoutAddressRequirement} instance, allowing for method - * chaining + * @return the current {@code USInstantPayoutAddressRequirement} instance, allowing for method chaining */ public USInstantPayoutAddressRequirement type(TypeEnum type) { this.type = type; @@ -128,7 +125,6 @@ public USInstantPayoutAddressRequirement type(TypeEnum type) { /** * **usInstantPayoutAddressRequirement** - * * @return type **usInstantPayoutAddressRequirement** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -148,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this USInstantPayoutAddressRequirement object is equal to o. */ + /** + * Return true if this USInstantPayoutAddressRequirement object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -157,10 +155,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - USInstantPayoutAddressRequirement usInstantPayoutAddressRequirement = - (USInstantPayoutAddressRequirement) o; - return Objects.equals(this.description, usInstantPayoutAddressRequirement.description) - && Objects.equals(this.type, usInstantPayoutAddressRequirement.type); + USInstantPayoutAddressRequirement usInstantPayoutAddressRequirement = (USInstantPayoutAddressRequirement) o; + return Objects.equals(this.description, usInstantPayoutAddressRequirement.description) && + Objects.equals(this.type, usInstantPayoutAddressRequirement.type); } @Override @@ -179,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -188,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of USInstantPayoutAddressRequirement given an JSON string * * @param jsonString JSON string * @return An instance of USInstantPayoutAddressRequirement - * @throws JsonProcessingException if the JSON string is invalid with respect to - * USInstantPayoutAddressRequirement + * @throws JsonProcessingException if the JSON string is invalid with respect to USInstantPayoutAddressRequirement */ - public static USInstantPayoutAddressRequirement fromJson(String jsonString) - throws JsonProcessingException { + public static USInstantPayoutAddressRequirement fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, USInstantPayoutAddressRequirement.class); } - - /** - * Convert an instance of USInstantPayoutAddressRequirement to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of USInstantPayoutAddressRequirement to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/USInternationalAchAddressRequirement.java b/src/main/java/com/adyen/model/balanceplatform/USInternationalAchAddressRequirement.java index 2c4fc47bd..a8acfb3cd 100644 --- a/src/main/java/com/adyen/model/balanceplatform/USInternationalAchAddressRequirement.java +++ b/src/main/java/com/adyen/model/balanceplatform/USInternationalAchAddressRequirement.java @@ -2,36 +2,45 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** USInternationalAchAddressRequirement */ + +/** + * USInternationalAchAddressRequirement + */ @JsonPropertyOrder({ USInternationalAchAddressRequirement.JSON_PROPERTY_DESCRIPTION, USInternationalAchAddressRequirement.JSON_PROPERTY_TYPE }) + public class USInternationalAchAddressRequirement { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; - /** **usInternationalAchAddressRequirement** */ + /** + * **usInternationalAchAddressRequirement** + */ public enum TypeEnum { + USINTERNATIONALACHADDRESSREQUIREMENT(String.valueOf("usInternationalAchAddressRequirement")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -39,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -72,16 +77,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public USInternationalAchAddressRequirement() {} + public USInternationalAchAddressRequirement() { + } /** - * Specifies that you must provide a complete street address for International ACH (IAT) - * transactions. + * Specifies that you must provide a complete street address for International ACH (IAT) transactions. * - * @param description Specifies that you must provide a complete street address for International - * ACH (IAT) transactions. - * @return the current {@code USInternationalAchAddressRequirement} instance, allowing for method - * chaining + * @param description Specifies that you must provide a complete street address for International ACH (IAT) transactions. + * @return the current {@code USInternationalAchAddressRequirement} instance, allowing for method chaining */ public USInternationalAchAddressRequirement description(String description) { this.description = description; @@ -89,11 +92,8 @@ public USInternationalAchAddressRequirement description(String description) { } /** - * Specifies that you must provide a complete street address for International ACH (IAT) - * transactions. - * - * @return description Specifies that you must provide a complete street address for International - * ACH (IAT) transactions. + * Specifies that you must provide a complete street address for International ACH (IAT) transactions. + * @return description Specifies that you must provide a complete street address for International ACH (IAT) transactions. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,11 +102,9 @@ public String getDescription() { } /** - * Specifies that you must provide a complete street address for International ACH (IAT) - * transactions. + * Specifies that you must provide a complete street address for International ACH (IAT) transactions. * - * @param description Specifies that you must provide a complete street address for International - * ACH (IAT) transactions. + * @param description Specifies that you must provide a complete street address for International ACH (IAT) transactions. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,8 +116,7 @@ public void setDescription(String description) { * **usInternationalAchAddressRequirement** * * @param type **usInternationalAchAddressRequirement** - * @return the current {@code USInternationalAchAddressRequirement} instance, allowing for method - * chaining + * @return the current {@code USInternationalAchAddressRequirement} instance, allowing for method chaining */ public USInternationalAchAddressRequirement type(TypeEnum type) { this.type = type; @@ -128,7 +125,6 @@ public USInternationalAchAddressRequirement type(TypeEnum type) { /** * **usInternationalAchAddressRequirement** - * * @return type **usInternationalAchAddressRequirement** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -148,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this USInternationalAchAddressRequirement object is equal to o. */ + /** + * Return true if this USInternationalAchAddressRequirement object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -157,10 +155,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - USInternationalAchAddressRequirement usInternationalAchAddressRequirement = - (USInternationalAchAddressRequirement) o; - return Objects.equals(this.description, usInternationalAchAddressRequirement.description) - && Objects.equals(this.type, usInternationalAchAddressRequirement.type); + USInternationalAchAddressRequirement usInternationalAchAddressRequirement = (USInternationalAchAddressRequirement) o; + return Objects.equals(this.description, usInternationalAchAddressRequirement.description) && + Objects.equals(this.type, usInternationalAchAddressRequirement.type); } @Override @@ -179,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -188,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of USInternationalAchAddressRequirement given an JSON string * * @param jsonString JSON string * @return An instance of USInternationalAchAddressRequirement - * @throws JsonProcessingException if the JSON string is invalid with respect to - * USInternationalAchAddressRequirement + * @throws JsonProcessingException if the JSON string is invalid with respect to USInternationalAchAddressRequirement */ - public static USInternationalAchAddressRequirement fromJson(String jsonString) - throws JsonProcessingException { + public static USInternationalAchAddressRequirement fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, USInternationalAchAddressRequirement.class); } - - /** - * Convert an instance of USInternationalAchAddressRequirement to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of USInternationalAchAddressRequirement to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/USInternationalAchPriorityRequirement.java b/src/main/java/com/adyen/model/balanceplatform/USInternationalAchPriorityRequirement.java index e83b85ed3..9cdee3dea 100644 --- a/src/main/java/com/adyen/model/balanceplatform/USInternationalAchPriorityRequirement.java +++ b/src/main/java/com/adyen/model/balanceplatform/USInternationalAchPriorityRequirement.java @@ -2,36 +2,45 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** USInternationalAchPriorityRequirement */ + +/** + * USInternationalAchPriorityRequirement + */ @JsonPropertyOrder({ USInternationalAchPriorityRequirement.JSON_PROPERTY_DESCRIPTION, USInternationalAchPriorityRequirement.JSON_PROPERTY_TYPE }) + public class USInternationalAchPriorityRequirement { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; - /** **usInternationalAchPriorityRequirement** */ + /** + * **usInternationalAchPriorityRequirement** + */ public enum TypeEnum { + USINTERNATIONALACHPRIORITYREQUIREMENT(String.valueOf("usInternationalAchPriorityRequirement")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -39,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -72,16 +77,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public USInternationalAchPriorityRequirement() {} + public USInternationalAchPriorityRequirement() { + } /** - * Specifies that transactions deemed to be International ACH (IAT) per OFAC/NACHA rules cannot - * have fast priority. + * Specifies that transactions deemed to be International ACH (IAT) per OFAC/NACHA rules cannot have fast priority. * - * @param description Specifies that transactions deemed to be International ACH (IAT) per - * OFAC/NACHA rules cannot have fast priority. - * @return the current {@code USInternationalAchPriorityRequirement} instance, allowing for method - * chaining + * @param description Specifies that transactions deemed to be International ACH (IAT) per OFAC/NACHA rules cannot have fast priority. + * @return the current {@code USInternationalAchPriorityRequirement} instance, allowing for method chaining */ public USInternationalAchPriorityRequirement description(String description) { this.description = description; @@ -89,11 +92,8 @@ public USInternationalAchPriorityRequirement description(String description) { } /** - * Specifies that transactions deemed to be International ACH (IAT) per OFAC/NACHA rules cannot - * have fast priority. - * - * @return description Specifies that transactions deemed to be International ACH (IAT) per - * OFAC/NACHA rules cannot have fast priority. + * Specifies that transactions deemed to be International ACH (IAT) per OFAC/NACHA rules cannot have fast priority. + * @return description Specifies that transactions deemed to be International ACH (IAT) per OFAC/NACHA rules cannot have fast priority. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,11 +102,9 @@ public String getDescription() { } /** - * Specifies that transactions deemed to be International ACH (IAT) per OFAC/NACHA rules cannot - * have fast priority. + * Specifies that transactions deemed to be International ACH (IAT) per OFAC/NACHA rules cannot have fast priority. * - * @param description Specifies that transactions deemed to be International ACH (IAT) per - * OFAC/NACHA rules cannot have fast priority. + * @param description Specifies that transactions deemed to be International ACH (IAT) per OFAC/NACHA rules cannot have fast priority. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,8 +116,7 @@ public void setDescription(String description) { * **usInternationalAchPriorityRequirement** * * @param type **usInternationalAchPriorityRequirement** - * @return the current {@code USInternationalAchPriorityRequirement} instance, allowing for method - * chaining + * @return the current {@code USInternationalAchPriorityRequirement} instance, allowing for method chaining */ public USInternationalAchPriorityRequirement type(TypeEnum type) { this.type = type; @@ -128,7 +125,6 @@ public USInternationalAchPriorityRequirement type(TypeEnum type) { /** * **usInternationalAchPriorityRequirement** - * * @return type **usInternationalAchPriorityRequirement** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -148,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this USInternationalAchPriorityRequirement object is equal to o. */ + /** + * Return true if this USInternationalAchPriorityRequirement object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -157,10 +155,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - USInternationalAchPriorityRequirement usInternationalAchPriorityRequirement = - (USInternationalAchPriorityRequirement) o; - return Objects.equals(this.description, usInternationalAchPriorityRequirement.description) - && Objects.equals(this.type, usInternationalAchPriorityRequirement.type); + USInternationalAchPriorityRequirement usInternationalAchPriorityRequirement = (USInternationalAchPriorityRequirement) o; + return Objects.equals(this.description, usInternationalAchPriorityRequirement.description) && + Objects.equals(this.type, usInternationalAchPriorityRequirement.type); } @Override @@ -179,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -188,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of USInternationalAchPriorityRequirement given an JSON string * * @param jsonString JSON string * @return An instance of USInternationalAchPriorityRequirement - * @throws JsonProcessingException if the JSON string is invalid with respect to - * USInternationalAchPriorityRequirement + * @throws JsonProcessingException if the JSON string is invalid with respect to USInternationalAchPriorityRequirement */ - public static USInternationalAchPriorityRequirement fromJson(String jsonString) - throws JsonProcessingException { + public static USInternationalAchPriorityRequirement fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, USInternationalAchPriorityRequirement.class); } - - /** - * Convert an instance of USInternationalAchPriorityRequirement to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of USInternationalAchPriorityRequirement to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/USLocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/USLocalAccountIdentification.java index 9a27421eb..5bde8e3ba 100644 --- a/src/main/java/com/adyen/model/balanceplatform/USLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/USLocalAccountIdentification.java @@ -2,40 +2,47 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** USLocalAccountIdentification */ + +/** + * USLocalAccountIdentification + */ @JsonPropertyOrder({ USLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, USLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_TYPE, USLocalAccountIdentification.JSON_PROPERTY_ROUTING_NUMBER, USLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class USLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ public enum AccountTypeEnum { + CHECKING(String.valueOf("checking")), SAVINGS(String.valueOf("savings")); @@ -45,7 +52,7 @@ public enum AccountTypeEnum { private String value; AccountTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -66,11 +73,7 @@ public static AccountTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AccountTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AccountTypeEnum.values())); + LOG.warning("AccountTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AccountTypeEnum.values())); return null; } } @@ -81,8 +84,11 @@ public static AccountTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_ROUTING_NUMBER = "routingNumber"; private String routingNumber; - /** **usLocal** */ + /** + * **usLocal** + */ public enum TypeEnum { + USLOCAL(String.valueOf("usLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -90,7 +96,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -111,11 +117,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -123,7 +125,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public USLocalAccountIdentification() {} + public USLocalAccountIdentification() { + } /** * The bank account number, without separators or whitespace. @@ -138,7 +141,6 @@ public USLocalAccountIdentification accountNumber(String accountNumber) { /** * The bank account number, without separators or whitespace. - * * @return accountNumber The bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -159,10 +161,9 @@ public void setAccountNumber(String accountNumber) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. - * Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * @return the current {@code USLocalAccountIdentification} instance, allowing for method chaining */ public USLocalAccountIdentification accountType(AccountTypeEnum accountType) { @@ -171,10 +172,8 @@ public USLocalAccountIdentification accountType(AccountTypeEnum accountType) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. - * - * @return accountType The bank account type. Possible values: **checking** or **savings**. - * Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * @return accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,10 +182,9 @@ public AccountTypeEnum getAccountType() { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. - * Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,12 +193,9 @@ public void setAccountType(AccountTypeEnum accountType) { } /** - * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without - * separators or whitespace. + * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. * - * @param routingNumber The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * whitespace. + * @param routingNumber The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. * @return the current {@code USLocalAccountIdentification} instance, allowing for method chaining */ public USLocalAccountIdentification routingNumber(String routingNumber) { @@ -209,12 +204,8 @@ public USLocalAccountIdentification routingNumber(String routingNumber) { } /** - * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without - * separators or whitespace. - * - * @return routingNumber The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * whitespace. + * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * @return routingNumber The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,12 +214,9 @@ public String getRoutingNumber() { } /** - * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without - * separators or whitespace. + * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. * - * @param routingNumber The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * whitespace. + * @param routingNumber The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -249,7 +237,6 @@ public USLocalAccountIdentification type(TypeEnum type) { /** * **usLocal** - * * @return type **usLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -269,7 +256,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this USLocalAccountIdentification object is equal to o. */ + /** + * Return true if this USLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -279,10 +268,10 @@ public boolean equals(Object o) { return false; } USLocalAccountIdentification usLocalAccountIdentification = (USLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, usLocalAccountIdentification.accountNumber) - && Objects.equals(this.accountType, usLocalAccountIdentification.accountType) - && Objects.equals(this.routingNumber, usLocalAccountIdentification.routingNumber) - && Objects.equals(this.type, usLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, usLocalAccountIdentification.accountNumber) && + Objects.equals(this.accountType, usLocalAccountIdentification.accountType) && + Objects.equals(this.routingNumber, usLocalAccountIdentification.routingNumber) && + Objects.equals(this.type, usLocalAccountIdentification.type); } @Override @@ -303,7 +292,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -312,24 +302,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of USLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of USLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * USLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to USLocalAccountIdentification */ - public static USLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static USLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, USLocalAccountIdentification.class); } - - /** - * Convert an instance of USLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of USLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/UpdateNetworkTokenRequest.java b/src/main/java/com/adyen/model/balanceplatform/UpdateNetworkTokenRequest.java index 646fdf789..6c3c0f7e2 100644 --- a/src/main/java/com/adyen/model/balanceplatform/UpdateNetworkTokenRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/UpdateNetworkTokenRequest.java @@ -2,33 +2,41 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * UpdateNetworkTokenRequest + */ +@JsonPropertyOrder({ + UpdateNetworkTokenRequest.JSON_PROPERTY_STATUS +}) -/** UpdateNetworkTokenRequest */ -@JsonPropertyOrder({UpdateNetworkTokenRequest.JSON_PROPERTY_STATUS}) public class UpdateNetworkTokenRequest { /** - * The new status of the network token. Possible values: **active**, **suspended**, **closed**. - * The **closed** status is final and cannot be changed. + * The new status of the network token. Possible values: **active**, **suspended**, **closed**. The **closed** status is final and cannot be changed. */ public enum StatusEnum { + ACTIVE(String.valueOf("active")), SUSPENDED(String.valueOf("suspended")), @@ -40,7 +48,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -61,11 +69,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -73,14 +77,13 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; - public UpdateNetworkTokenRequest() {} + public UpdateNetworkTokenRequest() { + } /** - * The new status of the network token. Possible values: **active**, **suspended**, **closed**. - * The **closed** status is final and cannot be changed. + * The new status of the network token. Possible values: **active**, **suspended**, **closed**. The **closed** status is final and cannot be changed. * - * @param status The new status of the network token. Possible values: **active**, **suspended**, - * **closed**. The **closed** status is final and cannot be changed. + * @param status The new status of the network token. Possible values: **active**, **suspended**, **closed**. The **closed** status is final and cannot be changed. * @return the current {@code UpdateNetworkTokenRequest} instance, allowing for method chaining */ public UpdateNetworkTokenRequest status(StatusEnum status) { @@ -89,11 +92,8 @@ public UpdateNetworkTokenRequest status(StatusEnum status) { } /** - * The new status of the network token. Possible values: **active**, **suspended**, **closed**. - * The **closed** status is final and cannot be changed. - * - * @return status The new status of the network token. Possible values: **active**, **suspended**, - * **closed**. The **closed** status is final and cannot be changed. + * The new status of the network token. Possible values: **active**, **suspended**, **closed**. The **closed** status is final and cannot be changed. + * @return status The new status of the network token. Possible values: **active**, **suspended**, **closed**. The **closed** status is final and cannot be changed. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,11 +102,9 @@ public StatusEnum getStatus() { } /** - * The new status of the network token. Possible values: **active**, **suspended**, **closed**. - * The **closed** status is final and cannot be changed. + * The new status of the network token. Possible values: **active**, **suspended**, **closed**. The **closed** status is final and cannot be changed. * - * @param status The new status of the network token. Possible values: **active**, **suspended**, - * **closed**. The **closed** status is final and cannot be changed. + * @param status The new status of the network token. Possible values: **active**, **suspended**, **closed**. The **closed** status is final and cannot be changed. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,7 +112,9 @@ public void setStatus(StatusEnum status) { this.status = status; } - /** Return true if this UpdateNetworkTokenRequest object is equal to o. */ + /** + * Return true if this UpdateNetworkTokenRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -142,7 +142,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -151,24 +152,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of UpdateNetworkTokenRequest given an JSON string * * @param jsonString JSON string * @return An instance of UpdateNetworkTokenRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UpdateNetworkTokenRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to UpdateNetworkTokenRequest */ - public static UpdateNetworkTokenRequest fromJson(String jsonString) - throws JsonProcessingException { + public static UpdateNetworkTokenRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdateNetworkTokenRequest.class); } - - /** - * Convert an instance of UpdateNetworkTokenRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of UpdateNetworkTokenRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/UpdatePaymentInstrument.java b/src/main/java/com/adyen/model/balanceplatform/UpdatePaymentInstrument.java index ef7c6c6d7..de441d6d7 100644 --- a/src/main/java/com/adyen/model/balanceplatform/UpdatePaymentInstrument.java +++ b/src/main/java/com/adyen/model/balanceplatform/UpdatePaymentInstrument.java @@ -2,28 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.BankAccountDetails; +import com.adyen.model.balanceplatform.Card; +import com.adyen.model.balanceplatform.PaymentInstrumentAdditionalBankAccountIdentificationsInner; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** UpdatePaymentInstrument */ + +/** + * UpdatePaymentInstrument + */ @JsonPropertyOrder({ UpdatePaymentInstrument.JSON_PROPERTY_ADDITIONAL_BANK_ACCOUNT_IDENTIFICATIONS, UpdatePaymentInstrument.JSON_PROPERTY_BALANCE_ACCOUNT_ID, @@ -41,12 +49,11 @@ UpdatePaymentInstrument.JSON_PROPERTY_STATUS_REASON, UpdatePaymentInstrument.JSON_PROPERTY_TYPE }) + public class UpdatePaymentInstrument { - public static final String JSON_PROPERTY_ADDITIONAL_BANK_ACCOUNT_IDENTIFICATIONS = - "additionalBankAccountIdentifications"; + public static final String JSON_PROPERTY_ADDITIONAL_BANK_ACCOUNT_IDENTIFICATIONS = "additionalBankAccountIdentifications"; @Deprecated // deprecated since Configuration API v2: Please use `bankAccount` object instead - private List - additionalBankAccountIdentifications; + private List additionalBankAccountIdentifications; public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; @@ -79,16 +86,10 @@ public class UpdatePaymentInstrument { private String replacementOfId; /** - * The status of the payment instrument. If a status is not specified when creating a payment - * instrument, it is set to **active** by default. However, there can be exceptions for cards - * based on the `card.formFactor` and the `issuingCountryCode`. For example, - * when issuing physical cards in the US, the default status is **inactive**. Possible values: * - * **active**: The payment instrument is active and can be used to make payments. * **inactive**: - * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The - * payment instrument is suspended, either because it was stolen or lost. * **closed**: The - * payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. */ public enum StatusEnum { + ACTIVE(String.valueOf("active")), CLOSED(String.valueOf("closed")), @@ -102,7 +103,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -123,11 +124,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -139,12 +136,10 @@ public static StatusEnum fromValue(String value) { private String statusComment; /** - * The reason for the status of the payment instrument. Possible values: **accountClosure**, - * **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, - * **transactionRule**, **other**. If the reason is **other**, you must also send the - * `statusComment` parameter describing the status change. + * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. */ public enum StatusReasonEnum { + ACCOUNTCLOSURE(String.valueOf("accountClosure")), DAMAGED(String.valueOf("damaged")), @@ -168,7 +163,7 @@ public enum StatusReasonEnum { private String value; StatusReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -189,11 +184,7 @@ public static StatusReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusReasonEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusReasonEnum.values())); + LOG.warning("StatusReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusReasonEnum.values())); return null; } } @@ -201,8 +192,11 @@ public static StatusReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS_REASON = "statusReason"; private StatusReasonEnum statusReason; - /** The type of payment instrument. Possible values: **card**, **bankAccount**. */ + /** + * The type of payment instrument. Possible values: **card**, **bankAccount**. + */ public enum TypeEnum { + BANKACCOUNT(String.valueOf("bankAccount")), CARD(String.valueOf("card")); @@ -212,7 +206,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -233,11 +227,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -245,29 +235,25 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public UpdatePaymentInstrument() {} + public UpdatePaymentInstrument() { + } /** - * Contains optional, additional business account details. Returned when you create a payment - * instrument with `type` **bankAccount**. + * Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. * - * @param additionalBankAccountIdentifications Contains optional, additional business account - * details. Returned when you create a payment instrument with `type` - * **bankAccount**. + * @param additionalBankAccountIdentifications Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. * @return the current {@code UpdatePaymentInstrument} instance, allowing for method chaining - * @deprecated since Configuration API v2 Please use `bankAccount` object instead + * + * @deprecated since Configuration API v2 + * Please use `bankAccount` object instead */ @Deprecated // deprecated since Configuration API v2: Please use `bankAccount` object instead - public UpdatePaymentInstrument additionalBankAccountIdentifications( - List - additionalBankAccountIdentifications) { + public UpdatePaymentInstrument additionalBankAccountIdentifications(List additionalBankAccountIdentifications) { this.additionalBankAccountIdentifications = additionalBankAccountIdentifications; return this; } - public UpdatePaymentInstrument addAdditionalBankAccountIdentificationsItem( - PaymentInstrumentAdditionalBankAccountIdentificationsInner - additionalBankAccountIdentificationsItem) { + public UpdatePaymentInstrument addAdditionalBankAccountIdentificationsItem(PaymentInstrumentAdditionalBankAccountIdentificationsInner additionalBankAccountIdentificationsItem) { if (this.additionalBankAccountIdentifications == null) { this.additionalBankAccountIdentifications = new ArrayList<>(); } @@ -276,48 +262,36 @@ public UpdatePaymentInstrument addAdditionalBankAccountIdentificationsItem( } /** - * Contains optional, additional business account details. Returned when you create a payment - * instrument with `type` **bankAccount**. - * - * @return additionalBankAccountIdentifications Contains optional, additional business account - * details. Returned when you create a payment instrument with `type` - * **bankAccount**. + * Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. + * @return additionalBankAccountIdentifications Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. * @deprecated // deprecated since Configuration API v2: Please use `bankAccount` object instead */ @Deprecated // deprecated since Configuration API v2: Please use `bankAccount` object instead @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_ACCOUNT_IDENTIFICATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List - getAdditionalBankAccountIdentifications() { + public List getAdditionalBankAccountIdentifications() { return additionalBankAccountIdentifications; } /** - * Contains optional, additional business account details. Returned when you create a payment - * instrument with `type` **bankAccount**. + * Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. * - * @param additionalBankAccountIdentifications Contains optional, additional business account - * details. Returned when you create a payment instrument with `type` - * **bankAccount**. - * @deprecated since Configuration API v2 Please use `bankAccount` object instead + * @param additionalBankAccountIdentifications Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. + * + * @deprecated since Configuration API v2 + * Please use `bankAccount` object instead */ @Deprecated // deprecated since Configuration API v2: Please use `bankAccount` object instead @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_ACCOUNT_IDENTIFICATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAdditionalBankAccountIdentifications( - List - additionalBankAccountIdentifications) { + public void setAdditionalBankAccountIdentifications(List additionalBankAccountIdentifications) { this.additionalBankAccountIdentifications = additionalBankAccountIdentifications; } /** - * The unique identifier of the [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) - * associated with the payment instrument. + * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. * - * @param balanceAccountId The unique identifier of the [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) - * associated with the payment instrument. + * @param balanceAccountId The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. * @return the current {@code UpdatePaymentInstrument} instance, allowing for method chaining */ public UpdatePaymentInstrument balanceAccountId(String balanceAccountId) { @@ -326,13 +300,8 @@ public UpdatePaymentInstrument balanceAccountId(String balanceAccountId) { } /** - * The unique identifier of the [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) - * associated with the payment instrument. - * - * @return balanceAccountId The unique identifier of the [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) - * associated with the payment instrument. + * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. + * @return balanceAccountId The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -341,13 +310,9 @@ public String getBalanceAccountId() { } /** - * The unique identifier of the [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) - * associated with the payment instrument. + * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. * - * @param balanceAccountId The unique identifier of the [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) - * associated with the payment instrument. + * @param balanceAccountId The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -358,7 +323,7 @@ public void setBalanceAccountId(String balanceAccountId) { /** * bankAccount * - * @param bankAccount + * @param bankAccount * @return the current {@code UpdatePaymentInstrument} instance, allowing for method chaining */ public UpdatePaymentInstrument bankAccount(BankAccountDetails bankAccount) { @@ -368,8 +333,7 @@ public UpdatePaymentInstrument bankAccount(BankAccountDetails bankAccount) { /** * Get bankAccount - * - * @return bankAccount + * @return bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -380,7 +344,7 @@ public BankAccountDetails getBankAccount() { /** * bankAccount * - * @param bankAccount + * @param bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -391,7 +355,7 @@ public void setBankAccount(BankAccountDetails bankAccount) { /** * card * - * @param card + * @param card * @return the current {@code UpdatePaymentInstrument} instance, allowing for method chaining */ public UpdatePaymentInstrument card(Card card) { @@ -401,8 +365,7 @@ public UpdatePaymentInstrument card(Card card) { /** * Get card - * - * @return card + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -413,7 +376,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -434,7 +397,6 @@ public UpdatePaymentInstrument description(String description) { /** * Your description for the payment instrument, maximum 300 characters. - * * @return description Your description for the payment instrument, maximum 300 characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -467,7 +429,6 @@ public UpdatePaymentInstrument id(String id) { /** * The unique identifier of the payment instrument. - * * @return id The unique identifier of the payment instrument. */ @JsonProperty(JSON_PROPERTY_ID) @@ -488,12 +449,9 @@ public void setId(String id) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code where the payment instrument is issued. For example, **NL** or **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. * - * @param issuingCountryCode The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment - * instrument is issued. For example, **NL** or **US**. + * @param issuingCountryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. * @return the current {@code UpdatePaymentInstrument} instance, allowing for method chaining */ public UpdatePaymentInstrument issuingCountryCode(String issuingCountryCode) { @@ -502,12 +460,8 @@ public UpdatePaymentInstrument issuingCountryCode(String issuingCountryCode) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code where the payment instrument is issued. For example, **NL** or **US**. - * - * @return issuingCountryCode The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment - * instrument is issued. For example, **NL** or **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. + * @return issuingCountryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. */ @JsonProperty(JSON_PROPERTY_ISSUING_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -516,12 +470,9 @@ public String getIssuingCountryCode() { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code where the payment instrument is issued. For example, **NL** or **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. * - * @param issuingCountryCode The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment - * instrument is issued. For example, **NL** or **US**. + * @param issuingCountryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. */ @JsonProperty(JSON_PROPERTY_ISSUING_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -530,13 +481,9 @@ public void setIssuingCountryCode(String issuingCountryCode) { } /** - * The unique identifier of the [payment instrument - * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) - * to which the payment instrument belongs. + * The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. * - * @param paymentInstrumentGroupId The unique identifier of the [payment instrument - * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) - * to which the payment instrument belongs. + * @param paymentInstrumentGroupId The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. * @return the current {@code UpdatePaymentInstrument} instance, allowing for method chaining */ public UpdatePaymentInstrument paymentInstrumentGroupId(String paymentInstrumentGroupId) { @@ -545,13 +492,8 @@ public UpdatePaymentInstrument paymentInstrumentGroupId(String paymentInstrument } /** - * The unique identifier of the [payment instrument - * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) - * to which the payment instrument belongs. - * - * @return paymentInstrumentGroupId The unique identifier of the [payment instrument - * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) - * to which the payment instrument belongs. + * The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. + * @return paymentInstrumentGroupId The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_GROUP_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -560,13 +502,9 @@ public String getPaymentInstrumentGroupId() { } /** - * The unique identifier of the [payment instrument - * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) - * to which the payment instrument belongs. + * The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. * - * @param paymentInstrumentGroupId The unique identifier of the [payment instrument - * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) - * to which the payment instrument belongs. + * @param paymentInstrumentGroupId The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_GROUP_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -587,7 +525,6 @@ public UpdatePaymentInstrument reference(String reference) { /** * Your reference for the payment instrument, maximum 150 characters. - * * @return reference Your reference for the payment instrument, maximum 150 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -610,8 +547,7 @@ public void setReference(String reference) { /** * The unique identifier of the payment instrument that replaced this payment instrument. * - * @param replacedById The unique identifier of the payment instrument that replaced this payment - * instrument. + * @param replacedById The unique identifier of the payment instrument that replaced this payment instrument. * @return the current {@code UpdatePaymentInstrument} instance, allowing for method chaining */ public UpdatePaymentInstrument replacedById(String replacedById) { @@ -621,9 +557,7 @@ public UpdatePaymentInstrument replacedById(String replacedById) { /** * The unique identifier of the payment instrument that replaced this payment instrument. - * - * @return replacedById The unique identifier of the payment instrument that replaced this payment - * instrument. + * @return replacedById The unique identifier of the payment instrument that replaced this payment instrument. */ @JsonProperty(JSON_PROPERTY_REPLACED_BY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -634,8 +568,7 @@ public String getReplacedById() { /** * The unique identifier of the payment instrument that replaced this payment instrument. * - * @param replacedById The unique identifier of the payment instrument that replaced this payment - * instrument. + * @param replacedById The unique identifier of the payment instrument that replaced this payment instrument. */ @JsonProperty(JSON_PROPERTY_REPLACED_BY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -646,8 +579,7 @@ public void setReplacedById(String replacedById) { /** * The unique identifier of the payment instrument that is replaced by this payment instrument. * - * @param replacementOfId The unique identifier of the payment instrument that is replaced by this - * payment instrument. + * @param replacementOfId The unique identifier of the payment instrument that is replaced by this payment instrument. * @return the current {@code UpdatePaymentInstrument} instance, allowing for method chaining */ public UpdatePaymentInstrument replacementOfId(String replacementOfId) { @@ -657,9 +589,7 @@ public UpdatePaymentInstrument replacementOfId(String replacementOfId) { /** * The unique identifier of the payment instrument that is replaced by this payment instrument. - * - * @return replacementOfId The unique identifier of the payment instrument that is replaced by - * this payment instrument. + * @return replacementOfId The unique identifier of the payment instrument that is replaced by this payment instrument. */ @JsonProperty(JSON_PROPERTY_REPLACEMENT_OF_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -670,8 +600,7 @@ public String getReplacementOfId() { /** * The unique identifier of the payment instrument that is replaced by this payment instrument. * - * @param replacementOfId The unique identifier of the payment instrument that is replaced by this - * payment instrument. + * @param replacementOfId The unique identifier of the payment instrument that is replaced by this payment instrument. */ @JsonProperty(JSON_PROPERTY_REPLACEMENT_OF_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -680,24 +609,9 @@ public void setReplacementOfId(String replacementOfId) { } /** - * The status of the payment instrument. If a status is not specified when creating a payment - * instrument, it is set to **active** by default. However, there can be exceptions for cards - * based on the `card.formFactor` and the `issuingCountryCode`. For example, - * when issuing physical cards in the US, the default status is **inactive**. Possible values: * - * **active**: The payment instrument is active and can be used to make payments. * **inactive**: - * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The - * payment instrument is suspended, either because it was stolen or lost. * **closed**: The - * payment instrument is permanently closed. This action cannot be undone. - * - * @param status The status of the payment instrument. If a status is not specified when creating - * a payment instrument, it is set to **active** by default. However, there can be exceptions - * for cards based on the `card.formFactor` and the `issuingCountryCode`. - * For example, when issuing physical cards in the US, the default status is **inactive**. - * Possible values: * **active**: The payment instrument is active and can be used to make - * payments. * **inactive**: The payment instrument is inactive and cannot be used to make - * payments. * **suspended**: The payment instrument is suspended, either because it was - * stolen or lost. * **closed**: The payment instrument is permanently closed. This action - * cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * + * @param status The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. * @return the current {@code UpdatePaymentInstrument} instance, allowing for method chaining */ public UpdatePaymentInstrument status(StatusEnum status) { @@ -706,24 +620,8 @@ public UpdatePaymentInstrument status(StatusEnum status) { } /** - * The status of the payment instrument. If a status is not specified when creating a payment - * instrument, it is set to **active** by default. However, there can be exceptions for cards - * based on the `card.formFactor` and the `issuingCountryCode`. For example, - * when issuing physical cards in the US, the default status is **inactive**. Possible values: * - * **active**: The payment instrument is active and can be used to make payments. * **inactive**: - * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The - * payment instrument is suspended, either because it was stolen or lost. * **closed**: The - * payment instrument is permanently closed. This action cannot be undone. - * - * @return status The status of the payment instrument. If a status is not specified when creating - * a payment instrument, it is set to **active** by default. However, there can be exceptions - * for cards based on the `card.formFactor` and the `issuingCountryCode`. - * For example, when issuing physical cards in the US, the default status is **inactive**. - * Possible values: * **active**: The payment instrument is active and can be used to make - * payments. * **inactive**: The payment instrument is inactive and cannot be used to make - * payments. * **suspended**: The payment instrument is suspended, either because it was - * stolen or lost. * **closed**: The payment instrument is permanently closed. This action - * cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * @return status The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -732,24 +630,9 @@ public StatusEnum getStatus() { } /** - * The status of the payment instrument. If a status is not specified when creating a payment - * instrument, it is set to **active** by default. However, there can be exceptions for cards - * based on the `card.formFactor` and the `issuingCountryCode`. For example, - * when issuing physical cards in the US, the default status is **inactive**. Possible values: * - * **active**: The payment instrument is active and can be used to make payments. * **inactive**: - * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The - * payment instrument is suspended, either because it was stolen or lost. * **closed**: The - * payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. * - * @param status The status of the payment instrument. If a status is not specified when creating - * a payment instrument, it is set to **active** by default. However, there can be exceptions - * for cards based on the `card.formFactor` and the `issuingCountryCode`. - * For example, when issuing physical cards in the US, the default status is **inactive**. - * Possible values: * **active**: The payment instrument is active and can be used to make - * payments. * **inactive**: The payment instrument is inactive and cannot be used to make - * payments. * **suspended**: The payment instrument is suspended, either because it was - * stolen or lost. * **closed**: The payment instrument is permanently closed. This action - * cannot be undone. + * @param status The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -758,11 +641,9 @@ public void setStatus(StatusEnum status) { } /** - * Comment for the status of the payment instrument. Required if `statusReason` is - * **other**. + * Comment for the status of the payment instrument. Required if `statusReason` is **other**. * - * @param statusComment Comment for the status of the payment instrument. Required if - * `statusReason` is **other**. + * @param statusComment Comment for the status of the payment instrument. Required if `statusReason` is **other**. * @return the current {@code UpdatePaymentInstrument} instance, allowing for method chaining */ public UpdatePaymentInstrument statusComment(String statusComment) { @@ -771,11 +652,8 @@ public UpdatePaymentInstrument statusComment(String statusComment) { } /** - * Comment for the status of the payment instrument. Required if `statusReason` is - * **other**. - * - * @return statusComment Comment for the status of the payment instrument. Required if - * `statusReason` is **other**. + * Comment for the status of the payment instrument. Required if `statusReason` is **other**. + * @return statusComment Comment for the status of the payment instrument. Required if `statusReason` is **other**. */ @JsonProperty(JSON_PROPERTY_STATUS_COMMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -784,11 +662,9 @@ public String getStatusComment() { } /** - * Comment for the status of the payment instrument. Required if `statusReason` is - * **other**. + * Comment for the status of the payment instrument. Required if `statusReason` is **other**. * - * @param statusComment Comment for the status of the payment instrument. Required if - * `statusReason` is **other**. + * @param statusComment Comment for the status of the payment instrument. Required if `statusReason` is **other**. */ @JsonProperty(JSON_PROPERTY_STATUS_COMMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -797,15 +673,9 @@ public void setStatusComment(String statusComment) { } /** - * The reason for the status of the payment instrument. Possible values: **accountClosure**, - * **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, - * **transactionRule**, **other**. If the reason is **other**, you must also send the - * `statusComment` parameter describing the status change. + * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. * - * @param statusReason The reason for the status of the payment instrument. Possible values: - * **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, - * **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must - * also send the `statusComment` parameter describing the status change. + * @param statusReason The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. * @return the current {@code UpdatePaymentInstrument} instance, allowing for method chaining */ public UpdatePaymentInstrument statusReason(StatusReasonEnum statusReason) { @@ -814,15 +684,8 @@ public UpdatePaymentInstrument statusReason(StatusReasonEnum statusReason) { } /** - * The reason for the status of the payment instrument. Possible values: **accountClosure**, - * **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, - * **transactionRule**, **other**. If the reason is **other**, you must also send the - * `statusComment` parameter describing the status change. - * - * @return statusReason The reason for the status of the payment instrument. Possible values: - * **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, - * **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must - * also send the `statusComment` parameter describing the status change. + * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * @return statusReason The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. */ @JsonProperty(JSON_PROPERTY_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -831,15 +694,9 @@ public StatusReasonEnum getStatusReason() { } /** - * The reason for the status of the payment instrument. Possible values: **accountClosure**, - * **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, - * **transactionRule**, **other**. If the reason is **other**, you must also send the - * `statusComment` parameter describing the status change. + * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. * - * @param statusReason The reason for the status of the payment instrument. Possible values: - * **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, - * **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must - * also send the `statusComment` parameter describing the status change. + * @param statusReason The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. */ @JsonProperty(JSON_PROPERTY_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -848,9 +705,9 @@ public void setStatusReason(StatusReasonEnum statusReason) { } /** - * The type of payment instrument. Possible values: **card**, **bankAccount**. + * The type of payment instrument. Possible values: **card**, **bankAccount**. * - * @param type The type of payment instrument. Possible values: **card**, **bankAccount**. + * @param type The type of payment instrument. Possible values: **card**, **bankAccount**. * @return the current {@code UpdatePaymentInstrument} instance, allowing for method chaining */ public UpdatePaymentInstrument type(TypeEnum type) { @@ -859,9 +716,8 @@ public UpdatePaymentInstrument type(TypeEnum type) { } /** - * The type of payment instrument. Possible values: **card**, **bankAccount**. - * - * @return type The type of payment instrument. Possible values: **card**, **bankAccount**. + * The type of payment instrument. Possible values: **card**, **bankAccount**. + * @return type The type of payment instrument. Possible values: **card**, **bankAccount**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -870,9 +726,9 @@ public TypeEnum getType() { } /** - * The type of payment instrument. Possible values: **card**, **bankAccount**. + * The type of payment instrument. Possible values: **card**, **bankAccount**. * - * @param type The type of payment instrument. Possible values: **card**, **bankAccount**. + * @param type The type of payment instrument. Possible values: **card**, **bankAccount**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -880,7 +736,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this UpdatePaymentInstrument object is equal to o. */ + /** + * Return true if this UpdatePaymentInstrument object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -890,62 +748,40 @@ public boolean equals(Object o) { return false; } UpdatePaymentInstrument updatePaymentInstrument = (UpdatePaymentInstrument) o; - return Objects.equals( - this.additionalBankAccountIdentifications, - updatePaymentInstrument.additionalBankAccountIdentifications) - && Objects.equals(this.balanceAccountId, updatePaymentInstrument.balanceAccountId) - && Objects.equals(this.bankAccount, updatePaymentInstrument.bankAccount) - && Objects.equals(this.card, updatePaymentInstrument.card) - && Objects.equals(this.description, updatePaymentInstrument.description) - && Objects.equals(this.id, updatePaymentInstrument.id) - && Objects.equals(this.issuingCountryCode, updatePaymentInstrument.issuingCountryCode) - && Objects.equals( - this.paymentInstrumentGroupId, updatePaymentInstrument.paymentInstrumentGroupId) - && Objects.equals(this.reference, updatePaymentInstrument.reference) - && Objects.equals(this.replacedById, updatePaymentInstrument.replacedById) - && Objects.equals(this.replacementOfId, updatePaymentInstrument.replacementOfId) - && Objects.equals(this.status, updatePaymentInstrument.status) - && Objects.equals(this.statusComment, updatePaymentInstrument.statusComment) - && Objects.equals(this.statusReason, updatePaymentInstrument.statusReason) - && Objects.equals(this.type, updatePaymentInstrument.type); + return Objects.equals(this.additionalBankAccountIdentifications, updatePaymentInstrument.additionalBankAccountIdentifications) && + Objects.equals(this.balanceAccountId, updatePaymentInstrument.balanceAccountId) && + Objects.equals(this.bankAccount, updatePaymentInstrument.bankAccount) && + Objects.equals(this.card, updatePaymentInstrument.card) && + Objects.equals(this.description, updatePaymentInstrument.description) && + Objects.equals(this.id, updatePaymentInstrument.id) && + Objects.equals(this.issuingCountryCode, updatePaymentInstrument.issuingCountryCode) && + Objects.equals(this.paymentInstrumentGroupId, updatePaymentInstrument.paymentInstrumentGroupId) && + Objects.equals(this.reference, updatePaymentInstrument.reference) && + Objects.equals(this.replacedById, updatePaymentInstrument.replacedById) && + Objects.equals(this.replacementOfId, updatePaymentInstrument.replacementOfId) && + Objects.equals(this.status, updatePaymentInstrument.status) && + Objects.equals(this.statusComment, updatePaymentInstrument.statusComment) && + Objects.equals(this.statusReason, updatePaymentInstrument.statusReason) && + Objects.equals(this.type, updatePaymentInstrument.type); } @Override public int hashCode() { - return Objects.hash( - additionalBankAccountIdentifications, - balanceAccountId, - bankAccount, - card, - description, - id, - issuingCountryCode, - paymentInstrumentGroupId, - reference, - replacedById, - replacementOfId, - status, - statusComment, - statusReason, - type); + return Objects.hash(additionalBankAccountIdentifications, balanceAccountId, bankAccount, card, description, id, issuingCountryCode, paymentInstrumentGroupId, reference, replacedById, replacementOfId, status, statusComment, statusReason, type); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdatePaymentInstrument {\n"); - sb.append(" additionalBankAccountIdentifications: ") - .append(toIndentedString(additionalBankAccountIdentifications)) - .append("\n"); + sb.append(" additionalBankAccountIdentifications: ").append(toIndentedString(additionalBankAccountIdentifications)).append("\n"); sb.append(" balanceAccountId: ").append(toIndentedString(balanceAccountId)).append("\n"); sb.append(" bankAccount: ").append(toIndentedString(bankAccount)).append("\n"); sb.append(" card: ").append(toIndentedString(card)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" issuingCountryCode: ").append(toIndentedString(issuingCountryCode)).append("\n"); - sb.append(" paymentInstrumentGroupId: ") - .append(toIndentedString(paymentInstrumentGroupId)) - .append("\n"); + sb.append(" paymentInstrumentGroupId: ").append(toIndentedString(paymentInstrumentGroupId)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" replacedById: ").append(toIndentedString(replacedById)).append("\n"); sb.append(" replacementOfId: ").append(toIndentedString(replacementOfId)).append("\n"); @@ -958,7 +794,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -967,23 +804,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of UpdatePaymentInstrument given an JSON string * * @param jsonString JSON string * @return An instance of UpdatePaymentInstrument - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UpdatePaymentInstrument + * @throws JsonProcessingException if the JSON string is invalid with respect to UpdatePaymentInstrument */ public static UpdatePaymentInstrument fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdatePaymentInstrument.class); } - - /** - * Convert an instance of UpdatePaymentInstrument to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of UpdatePaymentInstrument to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/UpdateSweepConfigurationV2.java b/src/main/java/com/adyen/model/balanceplatform/UpdateSweepConfigurationV2.java index ff6417562..96cdd4a51 100644 --- a/src/main/java/com/adyen/model/balanceplatform/UpdateSweepConfigurationV2.java +++ b/src/main/java/com/adyen/model/balanceplatform/UpdateSweepConfigurationV2.java @@ -2,28 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.Amount; +import com.adyen.model.balanceplatform.SweepCounterparty; +import com.adyen.model.balanceplatform.SweepSchedule; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** UpdateSweepConfigurationV2 */ +/** + * UpdateSweepConfigurationV2 + */ @JsonPropertyOrder({ UpdateSweepConfigurationV2.JSON_PROPERTY_CATEGORY, UpdateSweepConfigurationV2.JSON_PROPERTY_COUNTERPARTY, @@ -42,16 +50,13 @@ UpdateSweepConfigurationV2.JSON_PROPERTY_TRIGGER_AMOUNT, UpdateSweepConfigurationV2.JSON_PROPERTY_TYPE }) + public class UpdateSweepConfigurationV2 { /** - * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a - * [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - * - **internal**: Transfer to another [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. Required when setting `priorities`. + * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. */ public enum CategoryEnum { + BANK(String.valueOf("bank")), INTERNAL(String.valueOf("internal")), @@ -63,7 +68,7 @@ public enum CategoryEnum { private String value; CategoryEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -84,11 +89,7 @@ public static CategoryEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "CategoryEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(CategoryEnum.values())); + LOG.warning("CategoryEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CategoryEnum.values())); return null; } } @@ -108,8 +109,11 @@ public static CategoryEnum fromValue(String value) { public static final String JSON_PROPERTY_ID = "id"; private String id; - /** Gets or Sets priorities */ + /** + * Gets or Sets priorities + */ public enum PrioritiesEnum { + CROSSBORDER(String.valueOf("crossBorder")), FAST(String.valueOf("fast")), @@ -127,7 +131,7 @@ public enum PrioritiesEnum { private String value; PrioritiesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -148,11 +152,7 @@ public static PrioritiesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PrioritiesEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PrioritiesEnum.values())); + LOG.warning("PrioritiesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PrioritiesEnum.values())); return null; } } @@ -160,8 +160,11 @@ public static PrioritiesEnum fromValue(String value) { public static final String JSON_PROPERTY_PRIORITIES = "priorities"; private List priorities; - /** The reason for disabling the sweep. */ + /** + * The reason for disabling the sweep. + */ public enum ReasonEnum { + ACCOUNTHIERARCHYNOTACTIVE(String.valueOf("accountHierarchyNotActive")), AMOUNTLIMITEXCEEDED(String.valueOf("amountLimitExceeded")), @@ -170,8 +173,7 @@ public enum ReasonEnum { APPROVED(String.valueOf("approved")), - BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE( - String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), + BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE(String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), COUNTERPARTYACCOUNTBLOCKED(String.valueOf("counterpartyAccountBlocked")), @@ -218,7 +220,7 @@ public enum ReasonEnum { private String value; ReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -239,11 +241,7 @@ public static ReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ReasonEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ReasonEnum.values())); + LOG.warning("ReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ReasonEnum.values())); return null; } } @@ -264,11 +262,10 @@ public static ReasonEnum fromValue(String value) { private SweepSchedule schedule; /** - * The status of the sweep. If not provided, by default, this is set to **active**. Possible - * values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on - * the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. */ public enum StatusEnum { + ACTIVE(String.valueOf("active")), INACTIVE(String.valueOf("inactive")); @@ -278,7 +275,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -299,11 +296,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -321,12 +314,10 @@ public static StatusEnum fromValue(String value) { private Amount triggerAmount; /** - * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not - * provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to - * a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source - * merchant account, transfer instrument, or balance account. + * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. */ public enum TypeEnum { + PULL(String.valueOf("pull")), PUSH(String.valueOf("push")); @@ -336,7 +327,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -357,11 +348,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -369,13 +356,15 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public UpdateSweepConfigurationV2() {} + public UpdateSweepConfigurationV2() { + } @JsonCreator public UpdateSweepConfigurationV2( - @JsonProperty(JSON_PROPERTY_ID) String id, - @JsonProperty(JSON_PROPERTY_REASON) ReasonEnum reason, - @JsonProperty(JSON_PROPERTY_REASON_DETAIL) String reasonDetail) { + @JsonProperty(JSON_PROPERTY_ID) String id, + @JsonProperty(JSON_PROPERTY_REASON) ReasonEnum reason, + @JsonProperty(JSON_PROPERTY_REASON_DETAIL) String reasonDetail + ) { this(); this.id = id; this.reason = reason; @@ -383,19 +372,9 @@ public UpdateSweepConfigurationV2( } /** - * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a - * [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - * - **internal**: Transfer to another [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. Required when setting `priorities`. + * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. * - * @param category The type of transfer that results from the sweep. Possible values: - **bank**: - * Sweep to a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - * - **internal**: Transfer to another [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. Required when setting `priorities`. + * @param category The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. * @return the current {@code UpdateSweepConfigurationV2} instance, allowing for method chaining */ public UpdateSweepConfigurationV2 category(CategoryEnum category) { @@ -404,19 +383,8 @@ public UpdateSweepConfigurationV2 category(CategoryEnum category) { } /** - * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a - * [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - * - **internal**: Transfer to another [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. Required when setting `priorities`. - * - * @return category The type of transfer that results from the sweep. Possible values: - **bank**: - * Sweep to a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - * - **internal**: Transfer to another [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. Required when setting `priorities`. + * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. + * @return category The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -425,19 +393,9 @@ public CategoryEnum getCategory() { } /** - * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a - * [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - * - **internal**: Transfer to another [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. Required when setting `priorities`. + * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. * - * @param category The type of transfer that results from the sweep. Possible values: - **bank**: - * Sweep to a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - * - **internal**: Transfer to another [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. Required when setting `priorities`. + * @param category The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -448,7 +406,7 @@ public void setCategory(CategoryEnum category) { /** * counterparty * - * @param counterparty + * @param counterparty * @return the current {@code UpdateSweepConfigurationV2} instance, allowing for method chaining */ public UpdateSweepConfigurationV2 counterparty(SweepCounterparty counterparty) { @@ -458,8 +416,7 @@ public UpdateSweepConfigurationV2 counterparty(SweepCounterparty counterparty) { /** * Get counterparty - * - * @return counterparty + * @return counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -470,7 +427,7 @@ public SweepCounterparty getCounterparty() { /** * counterparty * - * @param counterparty + * @param counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -479,15 +436,9 @@ public void setCounterparty(SweepCounterparty counterparty) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, - * **EUR**. The sweep currency must match any of the [balances - * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For - * example, **EUR**. The sweep currency must match any of the [balances - * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). * @return the current {@code UpdateSweepConfigurationV2} instance, allowing for method chaining */ public UpdateSweepConfigurationV2 currency(String currency) { @@ -496,15 +447,8 @@ public UpdateSweepConfigurationV2 currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, - * **EUR**. The sweep currency must match any of the [balances - * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For - * example, **EUR**. The sweep currency must match any of the [balances - * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -513,15 +457,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, - * **EUR**. The sweep currency must match any of the [balances - * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For - * example, **EUR**. The sweep currency must match any of the [balances - * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -530,13 +468,9 @@ public void setCurrency(String currency) { } /** - * The message that will be used in the sweep transfer's description body with a maximum - * length of 140 characters. If the message is longer after replacing placeholders, the message - * will be cut off at 140 characters. + * The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. * - * @param description The message that will be used in the sweep transfer's description body - * with a maximum length of 140 characters. If the message is longer after replacing - * placeholders, the message will be cut off at 140 characters. + * @param description The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. * @return the current {@code UpdateSweepConfigurationV2} instance, allowing for method chaining */ public UpdateSweepConfigurationV2 description(String description) { @@ -545,13 +479,8 @@ public UpdateSweepConfigurationV2 description(String description) { } /** - * The message that will be used in the sweep transfer's description body with a maximum - * length of 140 characters. If the message is longer after replacing placeholders, the message - * will be cut off at 140 characters. - * - * @return description The message that will be used in the sweep transfer's description body - * with a maximum length of 140 characters. If the message is longer after replacing - * placeholders, the message will be cut off at 140 characters. + * The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. + * @return description The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -560,13 +489,9 @@ public String getDescription() { } /** - * The message that will be used in the sweep transfer's description body with a maximum - * length of 140 characters. If the message is longer after replacing placeholders, the message - * will be cut off at 140 characters. + * The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. * - * @param description The message that will be used in the sweep transfer's description body - * with a maximum length of 140 characters. If the message is longer after replacing - * placeholders, the message will be cut off at 140 characters. + * @param description The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -576,7 +501,6 @@ public void setDescription(String description) { /** * The unique identifier of the sweep. - * * @return id The unique identifier of the sweep. */ @JsonProperty(JSON_PROPERTY_ID) @@ -585,51 +509,11 @@ public String getId() { return id; } + /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent - * and the fees that you have to pay. You can provide multiple priorities, ordered by your - * preference. Adyen will try to pay out using the priorities in the given order. If the first - * priority is not currently supported or enabled for your platform, the system will try the next - * one, and so on. The request will be accepted as long as **at least one** of the provided - * priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if - * you provide `[\"wire\",\"regular\"]`, and `wire` is not - * supported but `regular` is, the request will still be accepted and processed. - * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to - * transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. - * * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the - * United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). Set `category` to **bank**. For more details, see optional priorities - * setup for - * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) - * or - * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). * - * @param priorities The list of priorities for the bank transfer. This sets the speed at which - * the transfer is sent and the fees that you have to pay. You can provide multiple - * priorities, ordered by your preference. Adyen will try to pay out using the priorities in - * the given order. If the first priority is not currently supported or enabled for your - * platform, the system will try the next one, and so on. The request will be accepted as long - * as **at least one** of the provided priorities is valid (i.e., supported by Adyen and - * activated for your platform). For example, if you provide - * `[\"wire\",\"regular\"]`, and `wire` is not - * supported but `regular` is, the request will still be accepted and processed. - * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster - * way to transfer funds, but the fees are higher. Recommended for high-priority, low-value - * transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. - * Recommended for high-priority, high-value transactions. * **instant**: for instant funds - * transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). Set `category` to **bank**. For more details, see optional - * priorities setup for - * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) - * or - * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * @param priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). * @return the current {@code UpdateSweepConfigurationV2} instance, allowing for method chaining */ public UpdateSweepConfigurationV2 priorities(List priorities) { @@ -646,50 +530,8 @@ public UpdateSweepConfigurationV2 addPrioritiesItem(PrioritiesEnum prioritiesIte } /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent - * and the fees that you have to pay. You can provide multiple priorities, ordered by your - * preference. Adyen will try to pay out using the priorities in the given order. If the first - * priority is not currently supported or enabled for your platform, the system will try the next - * one, and so on. The request will be accepted as long as **at least one** of the provided - * priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if - * you provide `[\"wire\",\"regular\"]`, and `wire` is not - * supported but `regular` is, the request will still be accepted and processed. - * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to - * transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. - * * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the - * United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). Set `category` to **bank**. For more details, see optional priorities - * setup for - * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) - * or - * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). - * - * @return priorities The list of priorities for the bank transfer. This sets the speed at which - * the transfer is sent and the fees that you have to pay. You can provide multiple - * priorities, ordered by your preference. Adyen will try to pay out using the priorities in - * the given order. If the first priority is not currently supported or enabled for your - * platform, the system will try the next one, and so on. The request will be accepted as long - * as **at least one** of the provided priorities is valid (i.e., supported by Adyen and - * activated for your platform). For example, if you provide - * `[\"wire\",\"regular\"]`, and `wire` is not - * supported but `regular` is, the request will still be accepted and processed. - * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster - * way to transfer funds, but the fees are higher. Recommended for high-priority, low-value - * transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. - * Recommended for high-priority, high-value transactions. * **instant**: for instant funds - * transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). Set `category` to **bank**. For more details, see optional - * priorities setup for - * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) - * or - * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * @return priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). */ @JsonProperty(JSON_PROPERTY_PRIORITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -698,50 +540,9 @@ public List getPriorities() { } /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent - * and the fees that you have to pay. You can provide multiple priorities, ordered by your - * preference. Adyen will try to pay out using the priorities in the given order. If the first - * priority is not currently supported or enabled for your platform, the system will try the next - * one, and so on. The request will be accepted as long as **at least one** of the provided - * priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if - * you provide `[\"wire\",\"regular\"]`, and `wire` is not - * supported but `regular` is, the request will still be accepted and processed. - * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to - * transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. - * * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the - * United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). Set `category` to **bank**. For more details, see optional priorities - * setup for - * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) - * or - * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). * - * @param priorities The list of priorities for the bank transfer. This sets the speed at which - * the transfer is sent and the fees that you have to pay. You can provide multiple - * priorities, ordered by your preference. Adyen will try to pay out using the priorities in - * the given order. If the first priority is not currently supported or enabled for your - * platform, the system will try the next one, and so on. The request will be accepted as long - * as **at least one** of the provided priorities is valid (i.e., supported by Adyen and - * activated for your platform). For example, if you provide - * `[\"wire\",\"regular\"]`, and `wire` is not - * supported but `regular` is, the request will still be accepted and processed. - * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster - * way to transfer funds, but the fees are higher. Recommended for high-priority, low-value - * transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. - * Recommended for high-priority, high-value transactions. * **instant**: for instant funds - * transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). Set `category` to **bank**. For more details, see optional - * priorities setup for - * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) - * or - * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * @param priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). */ @JsonProperty(JSON_PROPERTY_PRIORITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -751,7 +552,6 @@ public void setPriorities(List priorities) { /** * The reason for disabling the sweep. - * * @return reason The reason for disabling the sweep. */ @JsonProperty(JSON_PROPERTY_REASON) @@ -760,9 +560,9 @@ public ReasonEnum getReason() { return reason; } + /** * The human readable reason for disabling the sweep. - * * @return reasonDetail The human readable reason for disabling the sweep. */ @JsonProperty(JSON_PROPERTY_REASON_DETAIL) @@ -771,6 +571,7 @@ public String getReasonDetail() { return reasonDetail; } + /** * Your reference for the sweep configuration. * @@ -784,7 +585,6 @@ public UpdateSweepConfigurationV2 reference(String reference) { /** * Your reference for the sweep configuration. - * * @return reference Your reference for the sweep configuration. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -805,11 +605,9 @@ public void setReference(String reference) { } /** - * The reference sent to or received from the counterparty. Only alphanumeric characters are - * allowed. + * The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. * - * @param referenceForBeneficiary The reference sent to or received from the counterparty. Only - * alphanumeric characters are allowed. + * @param referenceForBeneficiary The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. * @return the current {@code UpdateSweepConfigurationV2} instance, allowing for method chaining */ public UpdateSweepConfigurationV2 referenceForBeneficiary(String referenceForBeneficiary) { @@ -818,11 +616,8 @@ public UpdateSweepConfigurationV2 referenceForBeneficiary(String referenceForBen } /** - * The reference sent to or received from the counterparty. Only alphanumeric characters are - * allowed. - * - * @return referenceForBeneficiary The reference sent to or received from the counterparty. Only - * alphanumeric characters are allowed. + * The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. + * @return referenceForBeneficiary The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -831,11 +626,9 @@ public String getReferenceForBeneficiary() { } /** - * The reference sent to or received from the counterparty. Only alphanumeric characters are - * allowed. + * The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. * - * @param referenceForBeneficiary The reference sent to or received from the counterparty. Only - * alphanumeric characters are allowed. + * @param referenceForBeneficiary The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -846,7 +639,7 @@ public void setReferenceForBeneficiary(String referenceForBeneficiary) { /** * schedule * - * @param schedule + * @param schedule * @return the current {@code UpdateSweepConfigurationV2} instance, allowing for method chaining */ public UpdateSweepConfigurationV2 schedule(SweepSchedule schedule) { @@ -856,8 +649,7 @@ public UpdateSweepConfigurationV2 schedule(SweepSchedule schedule) { /** * Get schedule - * - * @return schedule + * @return schedule */ @JsonProperty(JSON_PROPERTY_SCHEDULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -868,7 +660,7 @@ public SweepSchedule getSchedule() { /** * schedule * - * @param schedule + * @param schedule */ @JsonProperty(JSON_PROPERTY_SCHEDULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -877,14 +669,9 @@ public void setSchedule(SweepSchedule schedule) { } /** - * The status of the sweep. If not provided, by default, this is set to **active**. Possible - * values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on - * the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. * - * @param status The status of the sweep. If not provided, by default, this is set to **active**. - * Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed - * out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be - * triggered. + * @param status The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. * @return the current {@code UpdateSweepConfigurationV2} instance, allowing for method chaining */ public UpdateSweepConfigurationV2 status(StatusEnum status) { @@ -893,14 +680,8 @@ public UpdateSweepConfigurationV2 status(StatusEnum status) { } /** - * The status of the sweep. If not provided, by default, this is set to **active**. Possible - * values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on - * the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. - * - * @return status The status of the sweep. If not provided, by default, this is set to **active**. - * Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed - * out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be - * triggered. + * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * @return status The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -909,14 +690,9 @@ public StatusEnum getStatus() { } /** - * The status of the sweep. If not provided, by default, this is set to **active**. Possible - * values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on - * the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. * - * @param status The status of the sweep. If not provided, by default, this is set to **active**. - * Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed - * out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be - * triggered. + * @param status The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -927,7 +703,7 @@ public void setStatus(StatusEnum status) { /** * sweepAmount * - * @param sweepAmount + * @param sweepAmount * @return the current {@code UpdateSweepConfigurationV2} instance, allowing for method chaining */ public UpdateSweepConfigurationV2 sweepAmount(Amount sweepAmount) { @@ -937,8 +713,7 @@ public UpdateSweepConfigurationV2 sweepAmount(Amount sweepAmount) { /** * Get sweepAmount - * - * @return sweepAmount + * @return sweepAmount */ @JsonProperty(JSON_PROPERTY_SWEEP_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -949,7 +724,7 @@ public Amount getSweepAmount() { /** * sweepAmount * - * @param sweepAmount + * @param sweepAmount */ @JsonProperty(JSON_PROPERTY_SWEEP_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -960,7 +735,7 @@ public void setSweepAmount(Amount sweepAmount) { /** * targetAmount * - * @param targetAmount + * @param targetAmount * @return the current {@code UpdateSweepConfigurationV2} instance, allowing for method chaining */ public UpdateSweepConfigurationV2 targetAmount(Amount targetAmount) { @@ -970,8 +745,7 @@ public UpdateSweepConfigurationV2 targetAmount(Amount targetAmount) { /** * Get targetAmount - * - * @return targetAmount + * @return targetAmount */ @JsonProperty(JSON_PROPERTY_TARGET_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -982,7 +756,7 @@ public Amount getTargetAmount() { /** * targetAmount * - * @param targetAmount + * @param targetAmount */ @JsonProperty(JSON_PROPERTY_TARGET_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -993,7 +767,7 @@ public void setTargetAmount(Amount targetAmount) { /** * triggerAmount * - * @param triggerAmount + * @param triggerAmount * @return the current {@code UpdateSweepConfigurationV2} instance, allowing for method chaining */ public UpdateSweepConfigurationV2 triggerAmount(Amount triggerAmount) { @@ -1003,8 +777,7 @@ public UpdateSweepConfigurationV2 triggerAmount(Amount triggerAmount) { /** * Get triggerAmount - * - * @return triggerAmount + * @return triggerAmount */ @JsonProperty(JSON_PROPERTY_TRIGGER_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1015,7 +788,7 @@ public Amount getTriggerAmount() { /** * triggerAmount * - * @param triggerAmount + * @param triggerAmount */ @JsonProperty(JSON_PROPERTY_TRIGGER_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1024,15 +797,9 @@ public void setTriggerAmount(Amount triggerAmount) { } /** - * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not - * provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to - * a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source - * merchant account, transfer instrument, or balance account. + * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. * - * @param type The direction of sweep, whether pushing out or pulling in funds to the balance - * account. If not provided, by default, this is set to **push**. Possible values: * **push**: - * _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull - * in funds_ from a source merchant account, transfer instrument, or balance account. + * @param type The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. * @return the current {@code UpdateSweepConfigurationV2} instance, allowing for method chaining */ public UpdateSweepConfigurationV2 type(TypeEnum type) { @@ -1041,15 +808,8 @@ public UpdateSweepConfigurationV2 type(TypeEnum type) { } /** - * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not - * provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to - * a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source - * merchant account, transfer instrument, or balance account. - * - * @return type The direction of sweep, whether pushing out or pulling in funds to the balance - * account. If not provided, by default, this is set to **push**. Possible values: * **push**: - * _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull - * in funds_ from a source merchant account, transfer instrument, or balance account. + * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. + * @return type The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1058,15 +818,9 @@ public TypeEnum getType() { } /** - * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not - * provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to - * a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source - * merchant account, transfer instrument, or balance account. + * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. * - * @param type The direction of sweep, whether pushing out or pulling in funds to the balance - * account. If not provided, by default, this is set to **push**. Possible values: * **push**: - * _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull - * in funds_ from a source merchant account, transfer instrument, or balance account. + * @param type The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1074,7 +828,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this UpdateSweepConfigurationV2 object is equal to o. */ + /** + * Return true if this UpdateSweepConfigurationV2 object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -1084,44 +840,27 @@ public boolean equals(Object o) { return false; } UpdateSweepConfigurationV2 updateSweepConfigurationV2 = (UpdateSweepConfigurationV2) o; - return Objects.equals(this.category, updateSweepConfigurationV2.category) - && Objects.equals(this.counterparty, updateSweepConfigurationV2.counterparty) - && Objects.equals(this.currency, updateSweepConfigurationV2.currency) - && Objects.equals(this.description, updateSweepConfigurationV2.description) - && Objects.equals(this.id, updateSweepConfigurationV2.id) - && Objects.equals(this.priorities, updateSweepConfigurationV2.priorities) - && Objects.equals(this.reason, updateSweepConfigurationV2.reason) - && Objects.equals(this.reasonDetail, updateSweepConfigurationV2.reasonDetail) - && Objects.equals(this.reference, updateSweepConfigurationV2.reference) - && Objects.equals( - this.referenceForBeneficiary, updateSweepConfigurationV2.referenceForBeneficiary) - && Objects.equals(this.schedule, updateSweepConfigurationV2.schedule) - && Objects.equals(this.status, updateSweepConfigurationV2.status) - && Objects.equals(this.sweepAmount, updateSweepConfigurationV2.sweepAmount) - && Objects.equals(this.targetAmount, updateSweepConfigurationV2.targetAmount) - && Objects.equals(this.triggerAmount, updateSweepConfigurationV2.triggerAmount) - && Objects.equals(this.type, updateSweepConfigurationV2.type); + return Objects.equals(this.category, updateSweepConfigurationV2.category) && + Objects.equals(this.counterparty, updateSweepConfigurationV2.counterparty) && + Objects.equals(this.currency, updateSweepConfigurationV2.currency) && + Objects.equals(this.description, updateSweepConfigurationV2.description) && + Objects.equals(this.id, updateSweepConfigurationV2.id) && + Objects.equals(this.priorities, updateSweepConfigurationV2.priorities) && + Objects.equals(this.reason, updateSweepConfigurationV2.reason) && + Objects.equals(this.reasonDetail, updateSweepConfigurationV2.reasonDetail) && + Objects.equals(this.reference, updateSweepConfigurationV2.reference) && + Objects.equals(this.referenceForBeneficiary, updateSweepConfigurationV2.referenceForBeneficiary) && + Objects.equals(this.schedule, updateSweepConfigurationV2.schedule) && + Objects.equals(this.status, updateSweepConfigurationV2.status) && + Objects.equals(this.sweepAmount, updateSweepConfigurationV2.sweepAmount) && + Objects.equals(this.targetAmount, updateSweepConfigurationV2.targetAmount) && + Objects.equals(this.triggerAmount, updateSweepConfigurationV2.triggerAmount) && + Objects.equals(this.type, updateSweepConfigurationV2.type); } @Override public int hashCode() { - return Objects.hash( - category, - counterparty, - currency, - description, - id, - priorities, - reason, - reasonDetail, - reference, - referenceForBeneficiary, - schedule, - status, - sweepAmount, - targetAmount, - triggerAmount, - type); + return Objects.hash(category, counterparty, currency, description, id, priorities, reason, reasonDetail, reference, referenceForBeneficiary, schedule, status, sweepAmount, targetAmount, triggerAmount, type); } @Override @@ -1137,9 +876,7 @@ public String toString() { sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" reasonDetail: ").append(toIndentedString(reasonDetail)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); - sb.append(" referenceForBeneficiary: ") - .append(toIndentedString(referenceForBeneficiary)) - .append("\n"); + sb.append(" referenceForBeneficiary: ").append(toIndentedString(referenceForBeneficiary)).append("\n"); sb.append(" schedule: ").append(toIndentedString(schedule)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" sweepAmount: ").append(toIndentedString(sweepAmount)).append("\n"); @@ -1151,7 +888,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1160,24 +898,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of UpdateSweepConfigurationV2 given an JSON string * * @param jsonString JSON string * @return An instance of UpdateSweepConfigurationV2 - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UpdateSweepConfigurationV2 + * @throws JsonProcessingException if the JSON string is invalid with respect to UpdateSweepConfigurationV2 */ - public static UpdateSweepConfigurationV2 fromJson(String jsonString) - throws JsonProcessingException { + public static UpdateSweepConfigurationV2 fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdateSweepConfigurationV2.class); } - - /** - * Convert an instance of UpdateSweepConfigurationV2 to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of UpdateSweepConfigurationV2 to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/VerificationDeadline.java b/src/main/java/com/adyen/model/balanceplatform/VerificationDeadline.java index 1b1306286..d81739b5e 100644 --- a/src/main/java/com/adyen/model/balanceplatform/VerificationDeadline.java +++ b/src/main/java/com/adyen/model/balanceplatform/VerificationDeadline.java @@ -2,57 +2,61 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; +import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** VerificationDeadline */ + +/** + * VerificationDeadline + */ @JsonPropertyOrder({ VerificationDeadline.JSON_PROPERTY_CAPABILITIES, VerificationDeadline.JSON_PROPERTY_ENTITY_IDS, VerificationDeadline.JSON_PROPERTY_EXPIRES_AT }) + public class VerificationDeadline { - /** Gets or Sets capabilities */ + /** + * Gets or Sets capabilities + */ public enum CapabilitiesEnum { + ACCEPTEXTERNALFUNDING(String.valueOf("acceptExternalFunding")), ACCEPTPSPFUNDING(String.valueOf("acceptPspFunding")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES( - String.valueOf("acceptTransactionInRestrictedCountries")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES(String.valueOf("acceptTransactionInRestrictedCountries")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER( - String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES( - String.valueOf("acceptTransactionInRestrictedIndustries")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES(String.valueOf("acceptTransactionInRestrictedIndustries")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL( - String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER( - String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), ACQUIRING(String.valueOf("acquiring")), @@ -64,11 +68,9 @@ public enum CapabilitiesEnum { ATMWITHDRAWALINRESTRICTEDCOUNTRIES(String.valueOf("atmWithdrawalInRestrictedCountries")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER( - String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), AUTHORISEDPAYMENTINSTRUMENTUSER(String.valueOf("authorisedPaymentInstrumentUser")), @@ -124,15 +126,13 @@ public enum CapabilitiesEnum { USECARDINRESTRICTEDCOUNTRIES(String.valueOf("useCardInRestrictedCountries")), - USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("useCardInRestrictedCountriesCommercial")), + USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedCountriesCommercial")), USECARDINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("useCardInRestrictedCountriesConsumer")), USECARDINRESTRICTEDINDUSTRIES(String.valueOf("useCardInRestrictedIndustries")), - USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL( - String.valueOf("useCardInRestrictedIndustriesCommercial")), + USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedIndustriesCommercial")), USECARDINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("useCardInRestrictedIndustriesConsumer")), @@ -148,18 +148,16 @@ public enum CapabilitiesEnum { WITHDRAWFROMATMINRESTRICTEDCOUNTRIES(String.valueOf("withdrawFromAtmInRestrictedCountries")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER( - String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); private static final Logger LOG = Logger.getLogger(CapabilitiesEnum.class.getName()); private String value; CapabilitiesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -180,11 +178,7 @@ public static CapabilitiesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "CapabilitiesEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(CapabilitiesEnum.values())); + LOG.warning("CapabilitiesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CapabilitiesEnum.values())); return null; } } @@ -198,13 +192,15 @@ public static CapabilitiesEnum fromValue(String value) { public static final String JSON_PROPERTY_EXPIRES_AT = "expiresAt"; private OffsetDateTime expiresAt; - public VerificationDeadline() {} + public VerificationDeadline() { + } @JsonCreator public VerificationDeadline( - @JsonProperty(JSON_PROPERTY_CAPABILITIES) List capabilities, - @JsonProperty(JSON_PROPERTY_ENTITY_IDS) List entityIds, - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) OffsetDateTime expiresAt) { + @JsonProperty(JSON_PROPERTY_CAPABILITIES) List capabilities, + @JsonProperty(JSON_PROPERTY_ENTITY_IDS) List entityIds, + @JsonProperty(JSON_PROPERTY_EXPIRES_AT) OffsetDateTime expiresAt + ) { this(); this.capabilities = capabilities; this.entityIds = entityIds; @@ -213,7 +209,6 @@ public VerificationDeadline( /** * The names of the capabilities to be disallowed. - * * @return capabilities The names of the capabilities to be disallowed. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @@ -222,9 +217,9 @@ public List getCapabilities() { return capabilities; } + /** * The unique identifiers of the bank account(s) that the deadline applies to - * * @return entityIds The unique identifiers of the bank account(s) that the deadline applies to */ @JsonProperty(JSON_PROPERTY_ENTITY_IDS) @@ -233,9 +228,9 @@ public List getEntityIds() { return entityIds; } + /** * The date that verification is due by before capabilities are disallowed. - * * @return expiresAt The date that verification is due by before capabilities are disallowed. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @@ -244,7 +239,10 @@ public OffsetDateTime getExpiresAt() { return expiresAt; } - /** Return true if this VerificationDeadline object is equal to o. */ + + /** + * Return true if this VerificationDeadline object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -254,9 +252,9 @@ public boolean equals(Object o) { return false; } VerificationDeadline verificationDeadline = (VerificationDeadline) o; - return Objects.equals(this.capabilities, verificationDeadline.capabilities) - && Objects.equals(this.entityIds, verificationDeadline.entityIds) - && Objects.equals(this.expiresAt, verificationDeadline.expiresAt); + return Objects.equals(this.capabilities, verificationDeadline.capabilities) && + Objects.equals(this.entityIds, verificationDeadline.entityIds) && + Objects.equals(this.expiresAt, verificationDeadline.expiresAt); } @Override @@ -276,7 +274,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -285,23 +284,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of VerificationDeadline given an JSON string * * @param jsonString JSON string * @return An instance of VerificationDeadline - * @throws JsonProcessingException if the JSON string is invalid with respect to - * VerificationDeadline + * @throws JsonProcessingException if the JSON string is invalid with respect to VerificationDeadline */ public static VerificationDeadline fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, VerificationDeadline.class); } - - /** - * Convert an instance of VerificationDeadline to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of VerificationDeadline to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/VerificationError.java b/src/main/java/com/adyen/model/balanceplatform/VerificationError.java index a552dff03..cdf78f067 100644 --- a/src/main/java/com/adyen/model/balanceplatform/VerificationError.java +++ b/src/main/java/com/adyen/model/balanceplatform/VerificationError.java @@ -2,28 +2,35 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.RemediatingAction; +import com.adyen.model.balanceplatform.VerificationErrorRecursive; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** VerificationError */ +/** + * VerificationError + */ @JsonPropertyOrder({ VerificationError.JSON_PROPERTY_CAPABILITIES, VerificationError.JSON_PROPERTY_CODE, @@ -32,30 +39,28 @@ VerificationError.JSON_PROPERTY_SUB_ERRORS, VerificationError.JSON_PROPERTY_TYPE }) + public class VerificationError { - /** Gets or Sets capabilities */ + /** + * Gets or Sets capabilities + */ public enum CapabilitiesEnum { + ACCEPTEXTERNALFUNDING(String.valueOf("acceptExternalFunding")), ACCEPTPSPFUNDING(String.valueOf("acceptPspFunding")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES( - String.valueOf("acceptTransactionInRestrictedCountries")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES(String.valueOf("acceptTransactionInRestrictedCountries")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER( - String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES( - String.valueOf("acceptTransactionInRestrictedIndustries")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES(String.valueOf("acceptTransactionInRestrictedIndustries")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL( - String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER( - String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), ACQUIRING(String.valueOf("acquiring")), @@ -67,11 +72,9 @@ public enum CapabilitiesEnum { ATMWITHDRAWALINRESTRICTEDCOUNTRIES(String.valueOf("atmWithdrawalInRestrictedCountries")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER( - String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), AUTHORISEDPAYMENTINSTRUMENTUSER(String.valueOf("authorisedPaymentInstrumentUser")), @@ -127,15 +130,13 @@ public enum CapabilitiesEnum { USECARDINRESTRICTEDCOUNTRIES(String.valueOf("useCardInRestrictedCountries")), - USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("useCardInRestrictedCountriesCommercial")), + USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedCountriesCommercial")), USECARDINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("useCardInRestrictedCountriesConsumer")), USECARDINRESTRICTEDINDUSTRIES(String.valueOf("useCardInRestrictedIndustries")), - USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL( - String.valueOf("useCardInRestrictedIndustriesCommercial")), + USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedIndustriesCommercial")), USECARDINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("useCardInRestrictedIndustriesConsumer")), @@ -151,18 +152,16 @@ public enum CapabilitiesEnum { WITHDRAWFROMATMINRESTRICTEDCOUNTRIES(String.valueOf("withdrawFromAtmInRestrictedCountries")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER( - String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); private static final Logger LOG = Logger.getLogger(CapabilitiesEnum.class.getName()); private String value; CapabilitiesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -183,11 +182,7 @@ public static CapabilitiesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "CapabilitiesEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(CapabilitiesEnum.values())); + LOG.warning("CapabilitiesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CapabilitiesEnum.values())); return null; } } @@ -208,9 +203,10 @@ public static CapabilitiesEnum fromValue(String value) { private List subErrors; /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** */ public enum TypeEnum { + DATAMISSING(String.valueOf("dataMissing")), INVALIDINPUT(String.valueOf("invalidInput")), @@ -222,7 +218,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -243,11 +239,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -255,7 +247,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public VerificationError() {} + public VerificationError() { + } /** * Contains the capabilities that the verification error applies to. @@ -278,7 +271,6 @@ public VerificationError addCapabilitiesItem(CapabilitiesEnum capabilitiesItem) /** * Contains the capabilities that the verification error applies to. - * * @return capabilities Contains the capabilities that the verification error applies to. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @@ -311,7 +303,6 @@ public VerificationError code(String code) { /** * The verification error code. - * * @return code The verification error code. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -344,7 +335,6 @@ public VerificationError message(String message) { /** * A description of the error. - * * @return message A description of the error. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -367,8 +357,7 @@ public void setMessage(String message) { /** * Contains the actions that you can take to resolve the verification error. * - * @param remediatingActions Contains the actions that you can take to resolve the verification - * error. + * @param remediatingActions Contains the actions that you can take to resolve the verification error. * @return the current {@code VerificationError} instance, allowing for method chaining */ public VerificationError remediatingActions(List remediatingActions) { @@ -386,9 +375,7 @@ public VerificationError addRemediatingActionsItem(RemediatingAction remediating /** * Contains the actions that you can take to resolve the verification error. - * - * @return remediatingActions Contains the actions that you can take to resolve the verification - * error. + * @return remediatingActions Contains the actions that you can take to resolve the verification error. */ @JsonProperty(JSON_PROPERTY_REMEDIATING_ACTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -399,8 +386,7 @@ public List getRemediatingActions() { /** * Contains the actions that you can take to resolve the verification error. * - * @param remediatingActions Contains the actions that you can take to resolve the verification - * error. + * @param remediatingActions Contains the actions that you can take to resolve the verification error. */ @JsonProperty(JSON_PROPERTY_REMEDIATING_ACTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -429,7 +415,6 @@ public VerificationError addSubErrorsItem(VerificationErrorRecursive subErrorsIt /** * Contains more granular information about the verification error. - * * @return subErrors Contains more granular information about the verification error. */ @JsonProperty(JSON_PROPERTY_SUB_ERRORS) @@ -450,10 +435,9 @@ public void setSubErrors(List subErrors) { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * - * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * - * **pendingStatus** + * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * @return the current {@code VerificationError} instance, allowing for method chaining */ public VerificationError type(TypeEnum type) { @@ -462,10 +446,8 @@ public VerificationError type(TypeEnum type) { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** - * - * @return type The type of error. Possible values: * **invalidInput** * **dataMissing** * - * **pendingStatus** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * @return type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -474,10 +456,9 @@ public TypeEnum getType() { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * - * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * - * **pendingStatus** + * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -485,7 +466,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this VerificationError object is equal to o. */ + /** + * Return true if this VerificationError object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -495,12 +478,12 @@ public boolean equals(Object o) { return false; } VerificationError verificationError = (VerificationError) o; - return Objects.equals(this.capabilities, verificationError.capabilities) - && Objects.equals(this.code, verificationError.code) - && Objects.equals(this.message, verificationError.message) - && Objects.equals(this.remediatingActions, verificationError.remediatingActions) - && Objects.equals(this.subErrors, verificationError.subErrors) - && Objects.equals(this.type, verificationError.type); + return Objects.equals(this.capabilities, verificationError.capabilities) && + Objects.equals(this.code, verificationError.code) && + Objects.equals(this.message, verificationError.message) && + Objects.equals(this.remediatingActions, verificationError.remediatingActions) && + Objects.equals(this.subErrors, verificationError.subErrors) && + Objects.equals(this.type, verificationError.type); } @Override @@ -523,7 +506,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -532,7 +516,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of VerificationError given an JSON string * * @param jsonString JSON string @@ -542,12 +526,11 @@ private String toIndentedString(Object o) { public static VerificationError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, VerificationError.class); } - - /** - * Convert an instance of VerificationError to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of VerificationError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/VerificationErrorRecursive.java b/src/main/java/com/adyen/model/balanceplatform/VerificationErrorRecursive.java index a295209f9..0cf78485e 100644 --- a/src/main/java/com/adyen/model/balanceplatform/VerificationErrorRecursive.java +++ b/src/main/java/com/adyen/model/balanceplatform/VerificationErrorRecursive.java @@ -2,29 +2,34 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.RemediatingAction; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** VerificationErrorRecursive */ + +/** + * VerificationErrorRecursive + */ @JsonPropertyOrder({ VerificationErrorRecursive.JSON_PROPERTY_CAPABILITIES, VerificationErrorRecursive.JSON_PROPERTY_CODE, @@ -33,30 +38,28 @@ VerificationErrorRecursive.JSON_PROPERTY_REMEDIATING_ACTIONS }) @JsonTypeName("VerificationError-recursive") + public class VerificationErrorRecursive { - /** Gets or Sets capabilities */ + /** + * Gets or Sets capabilities + */ public enum CapabilitiesEnum { + ACCEPTEXTERNALFUNDING(String.valueOf("acceptExternalFunding")), ACCEPTPSPFUNDING(String.valueOf("acceptPspFunding")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES( - String.valueOf("acceptTransactionInRestrictedCountries")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES(String.valueOf("acceptTransactionInRestrictedCountries")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER( - String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES( - String.valueOf("acceptTransactionInRestrictedIndustries")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES(String.valueOf("acceptTransactionInRestrictedIndustries")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL( - String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER( - String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), ACQUIRING(String.valueOf("acquiring")), @@ -68,11 +71,9 @@ public enum CapabilitiesEnum { ATMWITHDRAWALINRESTRICTEDCOUNTRIES(String.valueOf("atmWithdrawalInRestrictedCountries")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER( - String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), AUTHORISEDPAYMENTINSTRUMENTUSER(String.valueOf("authorisedPaymentInstrumentUser")), @@ -128,15 +129,13 @@ public enum CapabilitiesEnum { USECARDINRESTRICTEDCOUNTRIES(String.valueOf("useCardInRestrictedCountries")), - USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("useCardInRestrictedCountriesCommercial")), + USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedCountriesCommercial")), USECARDINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("useCardInRestrictedCountriesConsumer")), USECARDINRESTRICTEDINDUSTRIES(String.valueOf("useCardInRestrictedIndustries")), - USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL( - String.valueOf("useCardInRestrictedIndustriesCommercial")), + USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedIndustriesCommercial")), USECARDINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("useCardInRestrictedIndustriesConsumer")), @@ -152,18 +151,16 @@ public enum CapabilitiesEnum { WITHDRAWFROMATMINRESTRICTEDCOUNTRIES(String.valueOf("withdrawFromAtmInRestrictedCountries")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER( - String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); private static final Logger LOG = Logger.getLogger(CapabilitiesEnum.class.getName()); private String value; CapabilitiesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -184,11 +181,7 @@ public static CapabilitiesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "CapabilitiesEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(CapabilitiesEnum.values())); + LOG.warning("CapabilitiesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CapabilitiesEnum.values())); return null; } } @@ -203,9 +196,10 @@ public static CapabilitiesEnum fromValue(String value) { private String message; /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** */ public enum TypeEnum { + DATAMISSING(String.valueOf("dataMissing")), INVALIDINPUT(String.valueOf("invalidInput")), @@ -217,7 +211,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -238,11 +232,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -253,7 +243,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_REMEDIATING_ACTIONS = "remediatingActions"; private List remediatingActions; - public VerificationErrorRecursive() {} + public VerificationErrorRecursive() { + } /** * Contains the capabilities that the verification error applies to. @@ -276,7 +267,6 @@ public VerificationErrorRecursive addCapabilitiesItem(CapabilitiesEnum capabilit /** * Contains the capabilities that the verification error applies to. - * * @return capabilities Contains the capabilities that the verification error applies to. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @@ -309,7 +299,6 @@ public VerificationErrorRecursive code(String code) { /** * The verification error code. - * * @return code The verification error code. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -342,7 +331,6 @@ public VerificationErrorRecursive message(String message) { /** * A description of the error. - * * @return message A description of the error. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -363,10 +351,9 @@ public void setMessage(String message) { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * - * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * - * **pendingStatus** + * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * @return the current {@code VerificationErrorRecursive} instance, allowing for method chaining */ public VerificationErrorRecursive type(TypeEnum type) { @@ -375,10 +362,8 @@ public VerificationErrorRecursive type(TypeEnum type) { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** - * - * @return type The type of error. Possible values: * **invalidInput** * **dataMissing** * - * **pendingStatus** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * @return type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -387,10 +372,9 @@ public TypeEnum getType() { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * - * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * - * **pendingStatus** + * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -401,8 +385,7 @@ public void setType(TypeEnum type) { /** * Contains the actions that you can take to resolve the verification error. * - * @param remediatingActions Contains the actions that you can take to resolve the verification - * error. + * @param remediatingActions Contains the actions that you can take to resolve the verification error. * @return the current {@code VerificationErrorRecursive} instance, allowing for method chaining */ public VerificationErrorRecursive remediatingActions(List remediatingActions) { @@ -410,8 +393,7 @@ public VerificationErrorRecursive remediatingActions(List rem return this; } - public VerificationErrorRecursive addRemediatingActionsItem( - RemediatingAction remediatingActionsItem) { + public VerificationErrorRecursive addRemediatingActionsItem(RemediatingAction remediatingActionsItem) { if (this.remediatingActions == null) { this.remediatingActions = new ArrayList<>(); } @@ -421,9 +403,7 @@ public VerificationErrorRecursive addRemediatingActionsItem( /** * Contains the actions that you can take to resolve the verification error. - * - * @return remediatingActions Contains the actions that you can take to resolve the verification - * error. + * @return remediatingActions Contains the actions that you can take to resolve the verification error. */ @JsonProperty(JSON_PROPERTY_REMEDIATING_ACTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -434,8 +414,7 @@ public List getRemediatingActions() { /** * Contains the actions that you can take to resolve the verification error. * - * @param remediatingActions Contains the actions that you can take to resolve the verification - * error. + * @param remediatingActions Contains the actions that you can take to resolve the verification error. */ @JsonProperty(JSON_PROPERTY_REMEDIATING_ACTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -443,7 +422,9 @@ public void setRemediatingActions(List remediatingActions) { this.remediatingActions = remediatingActions; } - /** Return true if this VerificationError-recursive object is equal to o. */ + /** + * Return true if this VerificationError-recursive object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -453,11 +434,11 @@ public boolean equals(Object o) { return false; } VerificationErrorRecursive verificationErrorRecursive = (VerificationErrorRecursive) o; - return Objects.equals(this.capabilities, verificationErrorRecursive.capabilities) - && Objects.equals(this.code, verificationErrorRecursive.code) - && Objects.equals(this.message, verificationErrorRecursive.message) - && Objects.equals(this.type, verificationErrorRecursive.type) - && Objects.equals(this.remediatingActions, verificationErrorRecursive.remediatingActions); + return Objects.equals(this.capabilities, verificationErrorRecursive.capabilities) && + Objects.equals(this.code, verificationErrorRecursive.code) && + Objects.equals(this.message, verificationErrorRecursive.message) && + Objects.equals(this.type, verificationErrorRecursive.type) && + Objects.equals(this.remediatingActions, verificationErrorRecursive.remediatingActions); } @Override @@ -479,7 +460,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -488,24 +470,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of VerificationErrorRecursive given an JSON string * * @param jsonString JSON string * @return An instance of VerificationErrorRecursive - * @throws JsonProcessingException if the JSON string is invalid with respect to - * VerificationErrorRecursive + * @throws JsonProcessingException if the JSON string is invalid with respect to VerificationErrorRecursive */ - public static VerificationErrorRecursive fromJson(String jsonString) - throws JsonProcessingException { + public static VerificationErrorRecursive fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, VerificationErrorRecursive.class); } - - /** - * Convert an instance of VerificationErrorRecursive to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of VerificationErrorRecursive to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/WalletProviderAccountScoreRestriction.java b/src/main/java/com/adyen/model/balanceplatform/WalletProviderAccountScoreRestriction.java index ceef30825..a0b670e9b 100644 --- a/src/main/java/com/adyen/model/balanceplatform/WalletProviderAccountScoreRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/WalletProviderAccountScoreRestriction.java @@ -2,26 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** WalletProviderAccountScoreRestriction */ + +/** + * WalletProviderAccountScoreRestriction + */ @JsonPropertyOrder({ WalletProviderAccountScoreRestriction.JSON_PROPERTY_OPERATION, WalletProviderAccountScoreRestriction.JSON_PROPERTY_VALUE }) + public class WalletProviderAccountScoreRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -29,14 +39,14 @@ public class WalletProviderAccountScoreRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private Integer value; - public WalletProviderAccountScoreRestriction() {} + public WalletProviderAccountScoreRestriction() { + } /** * Defines how the condition must be evaluated. * * @param operation Defines how the condition must be evaluated. - * @return the current {@code WalletProviderAccountScoreRestriction} instance, allowing for method - * chaining + * @return the current {@code WalletProviderAccountScoreRestriction} instance, allowing for method chaining */ public WalletProviderAccountScoreRestriction operation(String operation) { this.operation = operation; @@ -45,7 +55,6 @@ public WalletProviderAccountScoreRestriction operation(String operation) { /** * Defines how the condition must be evaluated. - * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -68,9 +77,8 @@ public void setOperation(String operation) { /** * value * - * @param value - * @return the current {@code WalletProviderAccountScoreRestriction} instance, allowing for method - * chaining + * @param value + * @return the current {@code WalletProviderAccountScoreRestriction} instance, allowing for method chaining */ public WalletProviderAccountScoreRestriction value(Integer value) { this.value = value; @@ -79,8 +87,7 @@ public WalletProviderAccountScoreRestriction value(Integer value) { /** * Get value - * - * @return value + * @return value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -91,7 +98,7 @@ public Integer getValue() { /** * value * - * @param value + * @param value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,7 +106,9 @@ public void setValue(Integer value) { this.value = value; } - /** Return true if this WalletProviderAccountScoreRestriction object is equal to o. */ + /** + * Return true if this WalletProviderAccountScoreRestriction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -108,10 +117,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - WalletProviderAccountScoreRestriction walletProviderAccountScoreRestriction = - (WalletProviderAccountScoreRestriction) o; - return Objects.equals(this.operation, walletProviderAccountScoreRestriction.operation) - && Objects.equals(this.value, walletProviderAccountScoreRestriction.value); + WalletProviderAccountScoreRestriction walletProviderAccountScoreRestriction = (WalletProviderAccountScoreRestriction) o; + return Objects.equals(this.operation, walletProviderAccountScoreRestriction.operation) && + Objects.equals(this.value, walletProviderAccountScoreRestriction.value); } @Override @@ -130,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -139,24 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of WalletProviderAccountScoreRestriction given an JSON string * * @param jsonString JSON string * @return An instance of WalletProviderAccountScoreRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * WalletProviderAccountScoreRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to WalletProviderAccountScoreRestriction */ - public static WalletProviderAccountScoreRestriction fromJson(String jsonString) - throws JsonProcessingException { + public static WalletProviderAccountScoreRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, WalletProviderAccountScoreRestriction.class); } - - /** - * Convert an instance of WalletProviderAccountScoreRestriction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of WalletProviderAccountScoreRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/WalletProviderDeviceScore.java b/src/main/java/com/adyen/model/balanceplatform/WalletProviderDeviceScore.java index 2d91ed64f..e58b4423e 100644 --- a/src/main/java/com/adyen/model/balanceplatform/WalletProviderDeviceScore.java +++ b/src/main/java/com/adyen/model/balanceplatform/WalletProviderDeviceScore.java @@ -2,26 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** WalletProviderDeviceScore */ + +/** + * WalletProviderDeviceScore + */ @JsonPropertyOrder({ WalletProviderDeviceScore.JSON_PROPERTY_OPERATION, WalletProviderDeviceScore.JSON_PROPERTY_VALUE }) + public class WalletProviderDeviceScore { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -29,7 +39,8 @@ public class WalletProviderDeviceScore { public static final String JSON_PROPERTY_VALUE = "value"; private Integer value; - public WalletProviderDeviceScore() {} + public WalletProviderDeviceScore() { + } /** * Defines how the condition must be evaluated. @@ -44,7 +55,6 @@ public WalletProviderDeviceScore operation(String operation) { /** * Defines how the condition must be evaluated. - * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -67,7 +77,7 @@ public void setOperation(String operation) { /** * value * - * @param value + * @param value * @return the current {@code WalletProviderDeviceScore} instance, allowing for method chaining */ public WalletProviderDeviceScore value(Integer value) { @@ -77,8 +87,7 @@ public WalletProviderDeviceScore value(Integer value) { /** * Get value - * - * @return value + * @return value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -89,7 +98,7 @@ public Integer getValue() { /** * value * - * @param value + * @param value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,7 +106,9 @@ public void setValue(Integer value) { this.value = value; } - /** Return true if this WalletProviderDeviceScore object is equal to o. */ + /** + * Return true if this WalletProviderDeviceScore object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -107,8 +118,8 @@ public boolean equals(Object o) { return false; } WalletProviderDeviceScore walletProviderDeviceScore = (WalletProviderDeviceScore) o; - return Objects.equals(this.operation, walletProviderDeviceScore.operation) - && Objects.equals(this.value, walletProviderDeviceScore.value); + return Objects.equals(this.operation, walletProviderDeviceScore.operation) && + Objects.equals(this.value, walletProviderDeviceScore.value); } @Override @@ -127,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,24 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of WalletProviderDeviceScore given an JSON string * * @param jsonString JSON string * @return An instance of WalletProviderDeviceScore - * @throws JsonProcessingException if the JSON string is invalid with respect to - * WalletProviderDeviceScore + * @throws JsonProcessingException if the JSON string is invalid with respect to WalletProviderDeviceScore */ - public static WalletProviderDeviceScore fromJson(String jsonString) - throws JsonProcessingException { + public static WalletProviderDeviceScore fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, WalletProviderDeviceScore.class); } - - /** - * Convert an instance of WalletProviderDeviceScore to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of WalletProviderDeviceScore to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/WalletProviderDeviceType.java b/src/main/java/com/adyen/model/balanceplatform/WalletProviderDeviceType.java index 8a06909da..5484fc0eb 100644 --- a/src/main/java/com/adyen/model/balanceplatform/WalletProviderDeviceType.java +++ b/src/main/java/com/adyen/model/balanceplatform/WalletProviderDeviceType.java @@ -2,38 +2,47 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** WalletProviderDeviceType */ +/** + * WalletProviderDeviceType + */ @JsonPropertyOrder({ WalletProviderDeviceType.JSON_PROPERTY_OPERATION, WalletProviderDeviceType.JSON_PROPERTY_VALUE }) + public class WalletProviderDeviceType { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; - /** Gets or Sets value */ + /** + * Gets or Sets value + */ public enum ValueEnum { + CARD(String.valueOf("CARD")), MOBILE_PHONE(String.valueOf("MOBILE_PHONE")), @@ -55,7 +64,7 @@ public enum ValueEnum { private String value; ValueEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -76,11 +85,7 @@ public static ValueEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ValueEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ValueEnum.values())); + LOG.warning("ValueEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ValueEnum.values())); return null; } } @@ -88,7 +93,8 @@ public static ValueEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUE = "value"; private List value; - public WalletProviderDeviceType() {} + public WalletProviderDeviceType() { + } /** * Defines how the condition must be evaluated. @@ -103,7 +109,6 @@ public WalletProviderDeviceType operation(String operation) { /** * Defines how the condition must be evaluated. - * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -126,7 +131,7 @@ public void setOperation(String operation) { /** * value * - * @param value + * @param value * @return the current {@code WalletProviderDeviceType} instance, allowing for method chaining */ public WalletProviderDeviceType value(List value) { @@ -144,8 +149,7 @@ public WalletProviderDeviceType addValueItem(ValueEnum valueItem) { /** * Get value - * - * @return value + * @return value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,7 +160,7 @@ public List getValue() { /** * value * - * @param value + * @param value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -164,7 +168,9 @@ public void setValue(List value) { this.value = value; } - /** Return true if this WalletProviderDeviceType object is equal to o. */ + /** + * Return true if this WalletProviderDeviceType object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -174,8 +180,8 @@ public boolean equals(Object o) { return false; } WalletProviderDeviceType walletProviderDeviceType = (WalletProviderDeviceType) o; - return Objects.equals(this.operation, walletProviderDeviceType.operation) - && Objects.equals(this.value, walletProviderDeviceType.value); + return Objects.equals(this.operation, walletProviderDeviceType.operation) && + Objects.equals(this.value, walletProviderDeviceType.value); } @Override @@ -194,7 +200,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -203,24 +210,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of WalletProviderDeviceType given an JSON string * * @param jsonString JSON string * @return An instance of WalletProviderDeviceType - * @throws JsonProcessingException if the JSON string is invalid with respect to - * WalletProviderDeviceType + * @throws JsonProcessingException if the JSON string is invalid with respect to WalletProviderDeviceType */ - public static WalletProviderDeviceType fromJson(String jsonString) - throws JsonProcessingException { + public static WalletProviderDeviceType fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, WalletProviderDeviceType.class); } - - /** - * Convert an instance of WalletProviderDeviceType to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of WalletProviderDeviceType to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/WebhookSetting.java b/src/main/java/com/adyen/model/balanceplatform/WebhookSetting.java index 973e2fec5..19689d4b7 100644 --- a/src/main/java/com/adyen/model/balanceplatform/WebhookSetting.java +++ b/src/main/java/com/adyen/model/balanceplatform/WebhookSetting.java @@ -2,25 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.SettingType; +import com.adyen.model.balanceplatform.Target; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** WebhookSetting */ + +/** + * WebhookSetting + */ @JsonPropertyOrder({ WebhookSetting.JSON_PROPERTY_CURRENCY, WebhookSetting.JSON_PROPERTY_ID, @@ -28,20 +39,16 @@ WebhookSetting.JSON_PROPERTY_TARGET, WebhookSetting.JSON_PROPERTY_TYPE }) + @JsonIgnoreProperties( - value = - "type", // ignore manually set type, it will be automatically generated by Jackson during - // serialization - allowSetters = true // allows the type to be set during deserialization - ) -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - visible = true) + value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization + allowSetters = true // allows the type to be set during deserialization +) +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) @JsonSubTypes({ @JsonSubTypes.Type(value = BalanceWebhookSetting.class, name = "balance"), }) + public class WebhookSetting { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -58,14 +65,13 @@ public class WebhookSetting { public static final String JSON_PROPERTY_TYPE = "type"; private SettingType type; - public WebhookSetting() {} + public WebhookSetting() { + } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. * @return the current {@code WebhookSetting} instance, allowing for method chaining */ public WebhookSetting currency(String currency) { @@ -74,11 +80,8 @@ public WebhookSetting currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,11 +90,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,7 +113,6 @@ public WebhookSetting id(String id) { /** * The unique identifier of the webhook setting. - * * @return id The unique identifier of the webhook setting. */ @JsonProperty(JSON_PROPERTY_ID) @@ -135,7 +135,7 @@ public void setId(String id) { /** * status * - * @param status + * @param status * @return the current {@code WebhookSetting} instance, allowing for method chaining */ public WebhookSetting status(String status) { @@ -145,8 +145,7 @@ public WebhookSetting status(String status) { /** * Get status - * - * @return status + * @return status */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -157,7 +156,7 @@ public String getStatus() { /** * status * - * @param status + * @param status */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,7 +167,7 @@ public void setStatus(String status) { /** * target * - * @param target + * @param target * @return the current {@code WebhookSetting} instance, allowing for method chaining */ public WebhookSetting target(Target target) { @@ -178,8 +177,7 @@ public WebhookSetting target(Target target) { /** * Get target - * - * @return target + * @return target */ @JsonProperty(JSON_PROPERTY_TARGET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,7 +188,7 @@ public Target getTarget() { /** * target * - * @param target + * @param target */ @JsonProperty(JSON_PROPERTY_TARGET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -201,7 +199,7 @@ public void setTarget(Target target) { /** * type * - * @param type + * @param type * @return the current {@code WebhookSetting} instance, allowing for method chaining */ public WebhookSetting type(SettingType type) { @@ -211,8 +209,7 @@ public WebhookSetting type(SettingType type) { /** * Get type - * - * @return type + * @return type */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,7 +220,7 @@ public SettingType getType() { /** * type * - * @param type + * @param type */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -231,7 +228,9 @@ public void setType(SettingType type) { this.type = type; } - /** Return true if this WebhookSetting object is equal to o. */ + /** + * Return true if this WebhookSetting object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -241,11 +240,11 @@ public boolean equals(Object o) { return false; } WebhookSetting webhookSetting = (WebhookSetting) o; - return Objects.equals(this.currency, webhookSetting.currency) - && Objects.equals(this.id, webhookSetting.id) - && Objects.equals(this.status, webhookSetting.status) - && Objects.equals(this.target, webhookSetting.target) - && Objects.equals(this.type, webhookSetting.type); + return Objects.equals(this.currency, webhookSetting.currency) && + Objects.equals(this.id, webhookSetting.id) && + Objects.equals(this.status, webhookSetting.status) && + Objects.equals(this.target, webhookSetting.target) && + Objects.equals(this.type, webhookSetting.type); } @Override @@ -267,7 +266,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -283,8 +283,7 @@ private String toIndentedString(Object o) { mappings.put("WebhookSetting", WebhookSetting.class); JSON.registerDiscriminator(WebhookSetting.class, "type", mappings); } - - /** +/** * Create an instance of WebhookSetting given an JSON string * * @param jsonString JSON string @@ -294,12 +293,11 @@ private String toIndentedString(Object o) { public static WebhookSetting fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, WebhookSetting.class); } - - /** - * Convert an instance of WebhookSetting to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of WebhookSetting to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/WebhookSettings.java b/src/main/java/com/adyen/model/balanceplatform/WebhookSettings.java index b28a145a0..8e734df7d 100644 --- a/src/main/java/com/adyen/model/balanceplatform/WebhookSettings.java +++ b/src/main/java/com/adyen/model/balanceplatform/WebhookSettings.java @@ -2,30 +2,44 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balanceplatform; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balanceplatform.WebhookSetting; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * WebhookSettings + */ +@JsonPropertyOrder({ + WebhookSettings.JSON_PROPERTY_WEBHOOK_SETTINGS +}) -/** WebhookSettings */ -@JsonPropertyOrder({WebhookSettings.JSON_PROPERTY_WEBHOOK_SETTINGS}) public class WebhookSettings { public static final String JSON_PROPERTY_WEBHOOK_SETTINGS = "webhookSettings"; private List webhookSettings; - public WebhookSettings() {} + public WebhookSettings() { + } /** * The list of webhook settings. @@ -48,7 +62,6 @@ public WebhookSettings addWebhookSettingsItem(WebhookSetting webhookSettingsItem /** * The list of webhook settings. - * * @return webhookSettings The list of webhook settings. */ @JsonProperty(JSON_PROPERTY_WEBHOOK_SETTINGS) @@ -68,7 +81,9 @@ public void setWebhookSettings(List webhookSettings) { this.webhookSettings = webhookSettings; } - /** Return true if this WebhookSettings object is equal to o. */ + /** + * Return true if this WebhookSettings object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -96,7 +111,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -105,7 +121,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of WebhookSettings given an JSON string * * @param jsonString JSON string @@ -115,12 +131,11 @@ private String toIndentedString(Object o) { public static WebhookSettings fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, WebhookSettings.class); } - - /** - * Convert an instance of WebhookSettings to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of WebhookSettings to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balancewebhooks/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/balancewebhooks/AbstractOpenApiSchema.java index 3845894e9..ba485a8e0 100644 --- a/src/main/java/com/adyen/model/balancewebhooks/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/balancewebhooks/AbstractOpenApiSchema.java @@ -2,141 +2,145 @@ * Balance webhook * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balancewebhooks; -import com.fasterxml.jackson.annotation.JsonValue; -import jakarta.ws.rs.core.GenericType; -import java.util.Map; import java.util.Objects; +import java.util.Map; +import jakarta.ws.rs.core.GenericType; -/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec + */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() { - return instance; - } - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) { - this.instance = instance; - } - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf - * schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); - } else { - return object.getActualInstance(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() {return instance;} + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) {this.instance = instance;} + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); + } else { + return object.getActualInstance(); + } + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) && + Objects.equals(this.isNullable, a.isNullable) && + Objects.equals(this.schemaType, a.schemaType); } - return o.toString().replace("\n", "\n "); - } - public boolean equals(Object o) { - if (this == o) { - return true; + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); } - if (o == null || getClass() != o.getClass()) { - return false; + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) - && Objects.equals(this.isNullable, a.isNullable) - && Objects.equals(this.schemaType, a.schemaType); - } - - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); - } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); - } -} + + + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/balancewebhooks/BalanceAccountBalanceNotificationRequest.java b/src/main/java/com/adyen/model/balancewebhooks/BalanceAccountBalanceNotificationRequest.java index 7d2e5378e..1d84f075b 100644 --- a/src/main/java/com/adyen/model/balancewebhooks/BalanceAccountBalanceNotificationRequest.java +++ b/src/main/java/com/adyen/model/balancewebhooks/BalanceAccountBalanceNotificationRequest.java @@ -2,33 +2,40 @@ * Balance webhook * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balancewebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balancewebhooks.BalanceNotificationData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** BalanceAccountBalanceNotificationRequest */ + +/** + * BalanceAccountBalanceNotificationRequest + */ @JsonPropertyOrder({ BalanceAccountBalanceNotificationRequest.JSON_PROPERTY_DATA, BalanceAccountBalanceNotificationRequest.JSON_PROPERTY_ENVIRONMENT, BalanceAccountBalanceNotificationRequest.JSON_PROPERTY_TIMESTAMP, BalanceAccountBalanceNotificationRequest.JSON_PROPERTY_TYPE }) + public class BalanceAccountBalanceNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private BalanceNotificationData data; @@ -39,17 +46,19 @@ public class BalanceAccountBalanceNotificationRequest { public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; private OffsetDateTime timestamp; - /** Type of webhook. */ + /** + * Type of webhook. + */ public enum TypeEnum { - BALANCEPLATFORM_BALANCEACCOUNT_BALANCE_UPDATED( - String.valueOf("balancePlatform.balanceAccount.balance.updated")); + + BALANCEPLATFORM_BALANCEACCOUNT_BALANCE_UPDATED(String.valueOf("balancePlatform.balanceAccount.balance.updated")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -70,11 +79,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -82,14 +87,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public BalanceAccountBalanceNotificationRequest() {} + public BalanceAccountBalanceNotificationRequest() { + } /** * data * - * @param data - * @return the current {@code BalanceAccountBalanceNotificationRequest} instance, allowing for - * method chaining + * @param data + * @return the current {@code BalanceAccountBalanceNotificationRequest} instance, allowing for method chaining */ public BalanceAccountBalanceNotificationRequest data(BalanceNotificationData data) { this.data = data; @@ -98,8 +103,7 @@ public BalanceAccountBalanceNotificationRequest data(BalanceNotificationData dat /** * Get data - * - * @return data + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,7 +114,7 @@ public BalanceNotificationData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -119,12 +123,10 @@ public void setData(BalanceNotificationData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. - * @return the current {@code BalanceAccountBalanceNotificationRequest} instance, allowing for - * method chaining + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @return the current {@code BalanceAccountBalanceNotificationRequest} instance, allowing for method chaining */ public BalanceAccountBalanceNotificationRequest environment(String environment) { this.environment = environment; @@ -132,10 +134,8 @@ public BalanceAccountBalanceNotificationRequest environment(String environment) } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * - * @return environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,10 +144,9 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,8 +158,7 @@ public void setEnvironment(String environment) { * When the event was queued. * * @param timestamp When the event was queued. - * @return the current {@code BalanceAccountBalanceNotificationRequest} instance, allowing for - * method chaining + * @return the current {@code BalanceAccountBalanceNotificationRequest} instance, allowing for method chaining */ public BalanceAccountBalanceNotificationRequest timestamp(OffsetDateTime timestamp) { this.timestamp = timestamp; @@ -169,7 +167,6 @@ public BalanceAccountBalanceNotificationRequest timestamp(OffsetDateTime timesta /** * When the event was queued. - * * @return timestamp When the event was queued. */ @JsonProperty(JSON_PROPERTY_TIMESTAMP) @@ -193,8 +190,7 @@ public void setTimestamp(OffsetDateTime timestamp) { * Type of webhook. * * @param type Type of webhook. - * @return the current {@code BalanceAccountBalanceNotificationRequest} instance, allowing for - * method chaining + * @return the current {@code BalanceAccountBalanceNotificationRequest} instance, allowing for method chaining */ public BalanceAccountBalanceNotificationRequest type(TypeEnum type) { this.type = type; @@ -203,7 +199,6 @@ public BalanceAccountBalanceNotificationRequest type(TypeEnum type) { /** * Type of webhook. - * * @return type Type of webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -223,7 +218,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this BalanceAccountBalanceNotificationRequest object is equal to o. */ + /** + * Return true if this BalanceAccountBalanceNotificationRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -232,12 +229,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - BalanceAccountBalanceNotificationRequest balanceAccountBalanceNotificationRequest = - (BalanceAccountBalanceNotificationRequest) o; - return Objects.equals(this.data, balanceAccountBalanceNotificationRequest.data) - && Objects.equals(this.environment, balanceAccountBalanceNotificationRequest.environment) - && Objects.equals(this.timestamp, balanceAccountBalanceNotificationRequest.timestamp) - && Objects.equals(this.type, balanceAccountBalanceNotificationRequest.type); + BalanceAccountBalanceNotificationRequest balanceAccountBalanceNotificationRequest = (BalanceAccountBalanceNotificationRequest) o; + return Objects.equals(this.data, balanceAccountBalanceNotificationRequest.data) && + Objects.equals(this.environment, balanceAccountBalanceNotificationRequest.environment) && + Objects.equals(this.timestamp, balanceAccountBalanceNotificationRequest.timestamp) && + Objects.equals(this.type, balanceAccountBalanceNotificationRequest.type); } @Override @@ -258,7 +254,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -267,24 +264,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BalanceAccountBalanceNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of BalanceAccountBalanceNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BalanceAccountBalanceNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceAccountBalanceNotificationRequest */ - public static BalanceAccountBalanceNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static BalanceAccountBalanceNotificationRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceAccountBalanceNotificationRequest.class); } - - /** - * Convert an instance of BalanceAccountBalanceNotificationRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BalanceAccountBalanceNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balancewebhooks/BalanceNotificationData.java b/src/main/java/com/adyen/model/balancewebhooks/BalanceNotificationData.java index 61f6bab65..8e97d5d72 100644 --- a/src/main/java/com/adyen/model/balancewebhooks/BalanceNotificationData.java +++ b/src/main/java/com/adyen/model/balancewebhooks/BalanceNotificationData.java @@ -2,26 +2,35 @@ * Balance webhook * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balancewebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.balancewebhooks.Balances; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; -import java.util.*; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** BalanceNotificationData */ + +/** + * BalanceNotificationData + */ @JsonPropertyOrder({ BalanceNotificationData.JSON_PROPERTY_BALANCE_ACCOUNT_ID, BalanceNotificationData.JSON_PROPERTY_BALANCE_PLATFORM, @@ -31,6 +40,7 @@ BalanceNotificationData.JSON_PROPERTY_ID, BalanceNotificationData.JSON_PROPERTY_SETTING_IDS }) + public class BalanceNotificationData { public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; @@ -53,10 +63,13 @@ public class BalanceNotificationData { public static final String JSON_PROPERTY_SETTING_IDS = "settingIds"; private List settingIds; - public BalanceNotificationData() {} + public BalanceNotificationData() { + } @JsonCreator - public BalanceNotificationData(@JsonProperty(JSON_PROPERTY_ID) String id) { + public BalanceNotificationData( + @JsonProperty(JSON_PROPERTY_ID) String id + ) { this(); this.id = id; } @@ -74,7 +87,6 @@ public BalanceNotificationData balanceAccountId(String balanceAccountId) { /** * The unique identifier of the balance account. - * * @return balanceAccountId The unique identifier of the balance account. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @@ -107,7 +119,6 @@ public BalanceNotificationData balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. - * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -130,7 +141,7 @@ public void setBalancePlatform(String balancePlatform) { /** * balances * - * @param balances + * @param balances * @return the current {@code BalanceNotificationData} instance, allowing for method chaining */ public BalanceNotificationData balances(Balances balances) { @@ -140,8 +151,7 @@ public BalanceNotificationData balances(Balances balances) { /** * Get balances - * - * @return balances + * @return balances */ @JsonProperty(JSON_PROPERTY_BALANCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,7 +162,7 @@ public Balances getBalances() { /** * balances * - * @param balances + * @param balances */ @JsonProperty(JSON_PROPERTY_BALANCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,11 +171,9 @@ public void setBalances(Balances balances) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code BalanceNotificationData} instance, allowing for method chaining */ public BalanceNotificationData creationDate(OffsetDateTime creationDate) { @@ -174,11 +182,8 @@ public BalanceNotificationData creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. - * - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,11 +192,9 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,11 +203,9 @@ public void setCreationDate(OffsetDateTime creationDate) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code BalanceNotificationData} instance, allowing for method chaining */ public BalanceNotificationData currency(String currency) { @@ -213,11 +214,8 @@ public BalanceNotificationData currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -226,11 +224,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,7 +236,6 @@ public void setCurrency(String currency) { /** * The ID of the resource. - * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -249,6 +244,7 @@ public String getId() { return id; } + /** * The unique identifier of the balance webhook setting. * @@ -270,7 +266,6 @@ public BalanceNotificationData addSettingIdsItem(String settingIdsItem) { /** * The unique identifier of the balance webhook setting. - * * @return settingIds The unique identifier of the balance webhook setting. */ @JsonProperty(JSON_PROPERTY_SETTING_IDS) @@ -290,7 +285,9 @@ public void setSettingIds(List settingIds) { this.settingIds = settingIds; } - /** Return true if this BalanceNotificationData object is equal to o. */ + /** + * Return true if this BalanceNotificationData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -300,19 +297,18 @@ public boolean equals(Object o) { return false; } BalanceNotificationData balanceNotificationData = (BalanceNotificationData) o; - return Objects.equals(this.balanceAccountId, balanceNotificationData.balanceAccountId) - && Objects.equals(this.balancePlatform, balanceNotificationData.balancePlatform) - && Objects.equals(this.balances, balanceNotificationData.balances) - && Objects.equals(this.creationDate, balanceNotificationData.creationDate) - && Objects.equals(this.currency, balanceNotificationData.currency) - && Objects.equals(this.id, balanceNotificationData.id) - && Objects.equals(this.settingIds, balanceNotificationData.settingIds); + return Objects.equals(this.balanceAccountId, balanceNotificationData.balanceAccountId) && + Objects.equals(this.balancePlatform, balanceNotificationData.balancePlatform) && + Objects.equals(this.balances, balanceNotificationData.balances) && + Objects.equals(this.creationDate, balanceNotificationData.creationDate) && + Objects.equals(this.currency, balanceNotificationData.currency) && + Objects.equals(this.id, balanceNotificationData.id) && + Objects.equals(this.settingIds, balanceNotificationData.settingIds); } @Override public int hashCode() { - return Objects.hash( - balanceAccountId, balancePlatform, balances, creationDate, currency, id, settingIds); + return Objects.hash(balanceAccountId, balancePlatform, balances, creationDate, currency, id, settingIds); } @Override @@ -331,7 +327,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -340,23 +337,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BalanceNotificationData given an JSON string * * @param jsonString JSON string * @return An instance of BalanceNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BalanceNotificationData + * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceNotificationData */ public static BalanceNotificationData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceNotificationData.class); } - - /** - * Convert an instance of BalanceNotificationData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BalanceNotificationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balancewebhooks/BalancePlatformNotificationResponse.java b/src/main/java/com/adyen/model/balancewebhooks/BalancePlatformNotificationResponse.java index 535426b80..b2c63d697 100644 --- a/src/main/java/com/adyen/model/balancewebhooks/BalancePlatformNotificationResponse.java +++ b/src/main/java/com/adyen/model/balancewebhooks/BalancePlatformNotificationResponse.java @@ -2,37 +2,47 @@ * Balance webhook * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balancewebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** BalancePlatformNotificationResponse */ -@JsonPropertyOrder({BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) + +/** + * BalancePlatformNotificationResponse + */ +@JsonPropertyOrder({ + BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE +}) + public class BalancePlatformNotificationResponse { public static final String JSON_PROPERTY_NOTIFICATION_RESPONSE = "notificationResponse"; private String notificationResponse; - public BalancePlatformNotificationResponse() {} + public BalancePlatformNotificationResponse() { + } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method - * chaining + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method chaining */ public BalancePlatformNotificationResponse notificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; @@ -40,11 +50,8 @@ public BalancePlatformNotificationResponse notificationResponse(String notificat } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * - * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -53,11 +60,9 @@ public String getNotificationResponse() { } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -65,7 +70,9 @@ public void setNotificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; } - /** Return true if this BalancePlatformNotificationResponse object is equal to o. */ + /** + * Return true if this BalancePlatformNotificationResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -74,10 +81,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - BalancePlatformNotificationResponse balancePlatformNotificationResponse = - (BalancePlatformNotificationResponse) o; - return Objects.equals( - this.notificationResponse, balancePlatformNotificationResponse.notificationResponse); + BalancePlatformNotificationResponse balancePlatformNotificationResponse = (BalancePlatformNotificationResponse) o; + return Objects.equals(this.notificationResponse, balancePlatformNotificationResponse.notificationResponse); } @Override @@ -89,15 +94,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BalancePlatformNotificationResponse {\n"); - sb.append(" notificationResponse: ") - .append(toIndentedString(notificationResponse)) - .append("\n"); + sb.append(" notificationResponse: ").append(toIndentedString(notificationResponse)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -106,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BalancePlatformNotificationResponse given an JSON string * * @param jsonString JSON string * @return An instance of BalancePlatformNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BalancePlatformNotificationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to BalancePlatformNotificationResponse */ - public static BalancePlatformNotificationResponse fromJson(String jsonString) - throws JsonProcessingException { + public static BalancePlatformNotificationResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalancePlatformNotificationResponse.class); } - - /** - * Convert an instance of BalancePlatformNotificationResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BalancePlatformNotificationResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balancewebhooks/BalanceWebhooksHandler.java b/src/main/java/com/adyen/model/balancewebhooks/BalanceWebhooksHandler.java index eedb9fc25..0cff52bff 100644 --- a/src/main/java/com/adyen/model/balancewebhooks/BalanceWebhooksHandler.java +++ b/src/main/java/com/adyen/model/balancewebhooks/BalanceWebhooksHandler.java @@ -2,7 +2,7 @@ * Balance webhook * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,64 +16,63 @@ /** * Handler for processing BalanceWebhooks. - * - *

This class provides functionality to deserialize the payload of BalanceWebhooks events. + *

+ * This class provides functionality to deserialize the payload of BalanceWebhooks events. */ public class BalanceWebhooksHandler { - private static final Logger LOG = Logger.getLogger(BalanceWebhooksHandler.class.getName()); + private static final Logger LOG = Logger.getLogger(BalanceWebhooksHandler.class.getName()); - private final String payload; + private final String payload; - /** - * Constructs a new handler for the given webhook payload - * - * @param payload the raw JSON payload from the webhook - */ - public BalanceWebhooksHandler(String payload) { - this.payload = payload; - } + /** + * Constructs a new handler for the given webhook payload + * + * @param payload the raw JSON payload from the webhook + */ + public BalanceWebhooksHandler(String payload) { + this.payload = payload; + } - /** - * Attempts to deserialize the webhook payload into a BalanceAccountBalanceNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional - getBalanceAccountBalanceNotificationRequest() { + /** + * Attempts to deserialize the webhook payload into a BalanceAccountBalanceNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getBalanceAccountBalanceNotificationRequest() { - var optionalBalanceAccountBalanceNotificationRequest = - getOptionalField(BalanceAccountBalanceNotificationRequest.class); + var optionalBalanceAccountBalanceNotificationRequest = getOptionalField(BalanceAccountBalanceNotificationRequest.class); - if (optionalBalanceAccountBalanceNotificationRequest.isPresent()) { - // verify event type - for (var value : BalanceAccountBalanceNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalBalanceAccountBalanceNotificationRequest.get().getType())) { - // found matching event type - return optionalBalanceAccountBalanceNotificationRequest; + if(optionalBalanceAccountBalanceNotificationRequest.isPresent()) { + // verify event type + for (var value : BalanceAccountBalanceNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalBalanceAccountBalanceNotificationRequest.get().getType())) { + // found matching event type + return optionalBalanceAccountBalanceNotificationRequest; + } + } } - } - } - return Optional.empty(); - } + return Optional.empty(); + } - /** - * Deserializes the payload into the specified class type. - * - * @param clazz the class to deserialize into - * @param the type of the class - * @return an Optional containing the deserialized object, or empty if an error occurs - */ - private Optional getOptionalField(Class clazz) { - try { - T val = JSON.getMapper().readValue(payload, clazz); - return Optional.ofNullable(val); - } catch (Exception e) { - // an error has occurred during deserialization (object not found, deserialization error) - LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); - LOG.warning("Deserialization error: " + e.getMessage()); - return Optional.empty(); + /** + * Deserializes the payload into the specified class type. + * + * @param clazz the class to deserialize into + * @param the type of the class + * @return an Optional containing the deserialized object, or empty if an error occurs + */ + private Optional getOptionalField(Class clazz) { + try { + T val = JSON.getMapper().readValue(payload, clazz); + return Optional.ofNullable(val); + } catch (Exception e) { + // an error has occurred during deserialization (object not found, deserialization error) + LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); + LOG.warning("Deserialization error: " + e.getMessage()); + return Optional.empty(); + } } - } -} + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/balancewebhooks/Balances.java b/src/main/java/com/adyen/model/balancewebhooks/Balances.java index 4ea9ac6e9..14cf3184f 100644 --- a/src/main/java/com/adyen/model/balancewebhooks/Balances.java +++ b/src/main/java/com/adyen/model/balancewebhooks/Balances.java @@ -2,28 +2,38 @@ * Balance webhook * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.balancewebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Balances */ + +/** + * Balances + */ @JsonPropertyOrder({ Balances.JSON_PROPERTY_AVAILABLE, Balances.JSON_PROPERTY_BALANCE, Balances.JSON_PROPERTY_PENDING, Balances.JSON_PROPERTY_RESERVED }) + public class Balances { public static final String JSON_PROPERTY_AVAILABLE = "available"; private Long available; @@ -37,7 +47,8 @@ public class Balances { public static final String JSON_PROPERTY_RESERVED = "reserved"; private Long reserved; - public Balances() {} + public Balances() { + } /** * The balance that is available for use. @@ -52,7 +63,6 @@ public Balances available(Long available) { /** * The balance that is available for use. - * * @return available The balance that is available for use. */ @JsonProperty(JSON_PROPERTY_AVAILABLE) @@ -85,7 +95,6 @@ public Balances balance(Long balance) { /** * The sum of transactions that have already been settled. - * * @return balance The sum of transactions that have already been settled. */ @JsonProperty(JSON_PROPERTY_BALANCE) @@ -118,7 +127,6 @@ public Balances pending(Long pending) { /** * The sum of transactions that will be settled in the future. - * * @return pending The sum of transactions that will be settled in the future. */ @JsonProperty(JSON_PROPERTY_PENDING) @@ -151,7 +159,6 @@ public Balances reserved(Long reserved) { /** * The balance currently held in reserve. - * * @return reserved The balance currently held in reserve. */ @JsonProperty(JSON_PROPERTY_RESERVED) @@ -171,7 +178,9 @@ public void setReserved(Long reserved) { this.reserved = reserved; } - /** Return true if this Balances object is equal to o. */ + /** + * Return true if this Balances object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -181,10 +190,10 @@ public boolean equals(Object o) { return false; } Balances balances = (Balances) o; - return Objects.equals(this.available, balances.available) - && Objects.equals(this.balance, balances.balance) - && Objects.equals(this.pending, balances.pending) - && Objects.equals(this.reserved, balances.reserved); + return Objects.equals(this.available, balances.available) && + Objects.equals(this.balance, balances.balance) && + Objects.equals(this.pending, balances.pending) && + Objects.equals(this.reserved, balances.reserved); } @Override @@ -205,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -214,7 +224,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Balances given an JSON string * * @param jsonString JSON string @@ -224,12 +234,11 @@ private String toIndentedString(Object o) { public static Balances fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Balances.class); } - - /** - * Convert an instance of Balances to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Balances to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balancewebhooks/JSON.java b/src/main/java/com/adyen/model/balancewebhooks/JSON.java index ae0cc024b..999cc008c 100644 --- a/src/main/java/com/adyen/model/balancewebhooks/JSON.java +++ b/src/main/java/com/adyen/model/balancewebhooks/JSON.java @@ -1,18 +1,21 @@ package com.adyen.model.balancewebhooks; -import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; +import com.adyen.serializer.ByteArrayDeserializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; +import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; +import com.adyen.model.balancewebhooks.*; + import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -37,7 +40,6 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. - * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -54,13 +56,11 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { - return mapper; - } + public static ObjectMapper getMapper() { return mapper; } /** - * Returns the target model class that should be used to deserialize the input data. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,7 +73,9 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** Helper class to register the discriminator mappings. */ + /** + * Helper class to register the discriminator mappings. + */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -115,9 +117,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. This - * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -162,14 +164,13 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so - * it's not possible to use the instanceof keyword. + * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, + * so it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf( - Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -193,58 +194,59 @@ public static boolean isInstanceOf( return false; } - /** A map of discriminators for all model classes. */ - private static final Map, ClassDiscriminatorMapping> modelDiscriminators = - new HashMap, ClassDiscriminatorMapping>(); + /** + * A map of discriminators for all model classes. + */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); - /** A map of oneOf/anyOf descendants for each model class. */ + /** + * A map of oneOf/anyOf descendants for each model class. + */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator( - Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = - new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants( - Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants(Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static { + static + { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/binlookup/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/binlookup/AbstractOpenApiSchema.java index 7f2ed8b2d..8de4e5397 100644 --- a/src/main/java/com/adyen/model/binlookup/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/binlookup/AbstractOpenApiSchema.java @@ -2,141 +2,145 @@ * Adyen BinLookup API * * The version of the OpenAPI document: 54 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.binlookup; -import com.fasterxml.jackson.annotation.JsonValue; -import jakarta.ws.rs.core.GenericType; -import java.util.Map; import java.util.Objects; +import java.util.Map; +import jakarta.ws.rs.core.GenericType; -/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec + */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() { - return instance; - } - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) { - this.instance = instance; - } - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf - * schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); - } else { - return object.getActualInstance(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() {return instance;} + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) {this.instance = instance;} + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); + } else { + return object.getActualInstance(); + } + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) && + Objects.equals(this.isNullable, a.isNullable) && + Objects.equals(this.schemaType, a.schemaType); } - return o.toString().replace("\n", "\n "); - } - public boolean equals(Object o) { - if (this == o) { - return true; + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); } - if (o == null || getClass() != o.getClass()) { - return false; + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) - && Objects.equals(this.isNullable, a.isNullable) - && Objects.equals(this.schemaType, a.schemaType); - } - - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); - } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); - } -} + + + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/binlookup/Amount.java b/src/main/java/com/adyen/model/binlookup/Amount.java index fe8b80909..646280b05 100644 --- a/src/main/java/com/adyen/model/binlookup/Amount.java +++ b/src/main/java/com/adyen/model/binlookup/Amount.java @@ -2,23 +2,36 @@ * Adyen BinLookup API * * The version of the OpenAPI document: 54 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.binlookup; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Amount */ -@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) + +/** + * Amount + */ +@JsonPropertyOrder({ + Amount.JSON_PROPERTY_CURRENCY, + Amount.JSON_PROPERTY_VALUE +}) + public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -26,14 +39,13 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() {} + public Amount() { + } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount currency(String currency) { @@ -42,11 +54,8 @@ public Amount currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -55,11 +64,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,11 +75,9 @@ public void setCurrency(String currency) { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount value(Long value) { @@ -81,11 +86,8 @@ public Amount value(Long value) { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). - * - * @return value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @return value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,11 +96,9 @@ public Long getValue() { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,7 +106,9 @@ public void setValue(Long value) { this.value = value; } - /** Return true if this Amount object is equal to o. */ + /** + * Return true if this Amount object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -116,8 +118,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) - && Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) && + Objects.equals(this.value, amount.value); } @Override @@ -136,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -155,12 +158,11 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } - - /** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/binlookup/BinDetail.java b/src/main/java/com/adyen/model/binlookup/BinDetail.java index 8d557c070..626c6751c 100644 --- a/src/main/java/com/adyen/model/binlookup/BinDetail.java +++ b/src/main/java/com/adyen/model/binlookup/BinDetail.java @@ -2,28 +2,41 @@ * Adyen BinLookup API * * The version of the OpenAPI document: 54 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.binlookup; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** BinDetail */ -@JsonPropertyOrder({BinDetail.JSON_PROPERTY_ISSUER_COUNTRY}) + +/** + * BinDetail + */ +@JsonPropertyOrder({ + BinDetail.JSON_PROPERTY_ISSUER_COUNTRY +}) + public class BinDetail { public static final String JSON_PROPERTY_ISSUER_COUNTRY = "issuerCountry"; private String issuerCountry; - public BinDetail() {} + public BinDetail() { + } /** * The country where the card was issued. @@ -38,7 +51,6 @@ public BinDetail issuerCountry(String issuerCountry) { /** * The country where the card was issued. - * * @return issuerCountry The country where the card was issued. */ @JsonProperty(JSON_PROPERTY_ISSUER_COUNTRY) @@ -58,7 +70,9 @@ public void setIssuerCountry(String issuerCountry) { this.issuerCountry = issuerCountry; } - /** Return true if this BinDetail object is equal to o. */ + /** + * Return true if this BinDetail object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,7 +110,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BinDetail given an JSON string * * @param jsonString JSON string @@ -105,12 +120,11 @@ private String toIndentedString(Object o) { public static BinDetail fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BinDetail.class); } - - /** - * Convert an instance of BinDetail to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BinDetail to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/binlookup/CardBin.java b/src/main/java/com/adyen/model/binlookup/CardBin.java index afada99d5..ab88c03c1 100644 --- a/src/main/java/com/adyen/model/binlookup/CardBin.java +++ b/src/main/java/com/adyen/model/binlookup/CardBin.java @@ -2,22 +2,31 @@ * Adyen BinLookup API * * The version of the OpenAPI document: 54 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.binlookup; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** CardBin */ + +/** + * CardBin + */ @JsonPropertyOrder({ CardBin.JSON_PROPERTY_BIN, CardBin.JSON_PROPERTY_COMMERCIAL, @@ -31,6 +40,7 @@ CardBin.JSON_PROPERTY_PAYOUT_ELIGIBLE, CardBin.JSON_PROPERTY_SUMMARY }) + public class CardBin { public static final String JSON_PROPERTY_BIN = "bin"; private String bin; @@ -65,13 +75,13 @@ public class CardBin { public static final String JSON_PROPERTY_SUMMARY = "summary"; private String summary; - public CardBin() {} + public CardBin() { + } /** * The first 6 digit of the card number. Enable this field via merchant account settings. * - * @param bin The first 6 digit of the card number. Enable this field via merchant account - * settings. + * @param bin The first 6 digit of the card number. Enable this field via merchant account settings. * @return the current {@code CardBin} instance, allowing for method chaining */ public CardBin bin(String bin) { @@ -81,9 +91,7 @@ public CardBin bin(String bin) { /** * The first 6 digit of the card number. Enable this field via merchant account settings. - * - * @return bin The first 6 digit of the card number. Enable this field via merchant account - * settings. + * @return bin The first 6 digit of the card number. Enable this field via merchant account settings. */ @JsonProperty(JSON_PROPERTY_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,8 +102,7 @@ public String getBin() { /** * The first 6 digit of the card number. Enable this field via merchant account settings. * - * @param bin The first 6 digit of the card number. Enable this field via merchant account - * settings. + * @param bin The first 6 digit of the card number. Enable this field via merchant account settings. */ @JsonProperty(JSON_PROPERTY_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,8 +113,7 @@ public void setBin(String bin) { /** * If true, it indicates a commercial card. Enable this field via merchant account settings. * - * @param commercial If true, it indicates a commercial card. Enable this field via merchant - * account settings. + * @param commercial If true, it indicates a commercial card. Enable this field via merchant account settings. * @return the current {@code CardBin} instance, allowing for method chaining */ public CardBin commercial(Boolean commercial) { @@ -117,9 +123,7 @@ public CardBin commercial(Boolean commercial) { /** * If true, it indicates a commercial card. Enable this field via merchant account settings. - * - * @return commercial If true, it indicates a commercial card. Enable this field via merchant - * account settings. + * @return commercial If true, it indicates a commercial card. Enable this field via merchant account settings. */ @JsonProperty(JSON_PROPERTY_COMMERCIAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -130,8 +134,7 @@ public Boolean getCommercial() { /** * If true, it indicates a commercial card. Enable this field via merchant account settings. * - * @param commercial If true, it indicates a commercial card. Enable this field via merchant - * account settings. + * @param commercial If true, it indicates a commercial card. Enable this field via merchant account settings. */ @JsonProperty(JSON_PROPERTY_COMMERCIAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,13 +143,9 @@ public void setCommercial(Boolean commercial) { } /** - * The card funding source. Valid values are: * CHARGE * CREDIT * DEBIT * DEFERRED_DEBIT * PREPAID - * * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE > Enable this field via merchant account - * settings. + * The card funding source. Valid values are: * CHARGE * CREDIT * DEBIT * DEFERRED_DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE > Enable this field via merchant account settings. * - * @param fundingSource The card funding source. Valid values are: * CHARGE * CREDIT * DEBIT * - * DEFERRED_DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE > Enable this - * field via merchant account settings. + * @param fundingSource The card funding source. Valid values are: * CHARGE * CREDIT * DEBIT * DEFERRED_DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE > Enable this field via merchant account settings. * @return the current {@code CardBin} instance, allowing for method chaining */ public CardBin fundingSource(String fundingSource) { @@ -155,13 +154,8 @@ public CardBin fundingSource(String fundingSource) { } /** - * The card funding source. Valid values are: * CHARGE * CREDIT * DEBIT * DEFERRED_DEBIT * PREPAID - * * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE > Enable this field via merchant account - * settings. - * - * @return fundingSource The card funding source. Valid values are: * CHARGE * CREDIT * DEBIT * - * DEFERRED_DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE > Enable this - * field via merchant account settings. + * The card funding source. Valid values are: * CHARGE * CREDIT * DEBIT * DEFERRED_DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE > Enable this field via merchant account settings. + * @return fundingSource The card funding source. Valid values are: * CHARGE * CREDIT * DEBIT * DEFERRED_DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE > Enable this field via merchant account settings. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -170,13 +164,9 @@ public String getFundingSource() { } /** - * The card funding source. Valid values are: * CHARGE * CREDIT * DEBIT * DEFERRED_DEBIT * PREPAID - * * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE > Enable this field via merchant account - * settings. + * The card funding source. Valid values are: * CHARGE * CREDIT * DEBIT * DEFERRED_DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE > Enable this field via merchant account settings. * - * @param fundingSource The card funding source. Valid values are: * CHARGE * CREDIT * DEBIT * - * DEFERRED_DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE > Enable this - * field via merchant account settings. + * @param fundingSource The card funding source. Valid values are: * CHARGE * CREDIT * DEBIT * DEFERRED_DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE > Enable this field via merchant account settings. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,17 +175,9 @@ public void setFundingSource(String fundingSource) { } /** - * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * - * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or - * issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you - * verify a card BIN or estimate costs, and only if `payoutEligible` is different from - * \"N\" or \"U\". + * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". * - * @param fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds - * are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is - * Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) - * > Returned when you verify a card BIN or estimate costs, and only if - * `payoutEligible` is different from \"N\" or \"U\". + * @param fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". * @return the current {@code CardBin} instance, allowing for method chaining */ public CardBin fundsAvailability(String fundsAvailability) { @@ -204,17 +186,8 @@ public CardBin fundsAvailability(String fundsAvailability) { } /** - * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * - * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or - * issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you - * verify a card BIN or estimate costs, and only if `payoutEligible` is different from - * \"N\" or \"U\". - * - * @return fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds - * are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is - * Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) - * > Returned when you verify a card BIN or estimate costs, and only if - * `payoutEligible` is different from \"N\" or \"U\". + * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". + * @return fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". */ @JsonProperty(JSON_PROPERTY_FUNDS_AVAILABILITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,17 +196,9 @@ public String getFundsAvailability() { } /** - * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * - * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or - * issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you - * verify a card BIN or estimate costs, and only if `payoutEligible` is different from - * \"N\" or \"U\". + * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". * - * @param fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds - * are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is - * Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) - * > Returned when you verify a card BIN or estimate costs, and only if - * `payoutEligible` is different from \"N\" or \"U\". + * @param fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". */ @JsonProperty(JSON_PROPERTY_FUNDS_AVAILABILITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,8 +209,7 @@ public void setFundsAvailability(String fundsAvailability) { /** * The first 8 digit of the card number. Enable this field via merchant account settings. * - * @param issuerBin The first 8 digit of the card number. Enable this field via merchant account - * settings. + * @param issuerBin The first 8 digit of the card number. Enable this field via merchant account settings. * @return the current {@code CardBin} instance, allowing for method chaining */ public CardBin issuerBin(String issuerBin) { @@ -255,9 +219,7 @@ public CardBin issuerBin(String issuerBin) { /** * The first 8 digit of the card number. Enable this field via merchant account settings. - * - * @return issuerBin The first 8 digit of the card number. Enable this field via merchant account - * settings. + * @return issuerBin The first 8 digit of the card number. Enable this field via merchant account settings. */ @JsonProperty(JSON_PROPERTY_ISSUER_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -268,8 +230,7 @@ public String getIssuerBin() { /** * The first 8 digit of the card number. Enable this field via merchant account settings. * - * @param issuerBin The first 8 digit of the card number. Enable this field via merchant account - * settings. + * @param issuerBin The first 8 digit of the card number. Enable this field via merchant account settings. */ @JsonProperty(JSON_PROPERTY_ISSUER_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -290,7 +251,6 @@ public CardBin issuingBank(String issuingBank) { /** * The issuing bank of the card. - * * @return issuingBank The issuing bank of the card. */ @JsonProperty(JSON_PROPERTY_ISSUING_BANK) @@ -323,7 +283,6 @@ public CardBin issuingCountry(String issuingCountry) { /** * The country where the card was issued from. - * * @return issuingCountry The country where the card was issued from. */ @JsonProperty(JSON_PROPERTY_ISSUING_COUNTRY) @@ -356,7 +315,6 @@ public CardBin issuingCurrency(String issuingCurrency) { /** * The currency of the card. - * * @return issuingCurrency The currency of the card. */ @JsonProperty(JSON_PROPERTY_ISSUING_CURRENCY) @@ -389,7 +347,6 @@ public CardBin paymentMethod(String paymentMethod) { /** * The payment method associated with the card (e.g. visa, mc, or amex). - * * @return paymentMethod The payment method associated with the card (e.g. visa, mc, or amex). */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @@ -410,17 +367,9 @@ public void setPaymentMethod(String paymentMethod) { } /** - * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * - * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" - * (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) > Returned when - * you verify a card BIN or estimate costs, and only if `payoutEligible` is different - * from \"N\" or \"U\". + * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". * - * @param payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * - * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) - * * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" - * (unknown) > Returned when you verify a card BIN or estimate costs, and only if - * `payoutEligible` is different from \"N\" or \"U\". + * @param payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". * @return the current {@code CardBin} instance, allowing for method chaining */ public CardBin payoutEligible(String payoutEligible) { @@ -429,17 +378,8 @@ public CardBin payoutEligible(String payoutEligible) { } /** - * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * - * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" - * (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) > Returned when - * you verify a card BIN or estimate costs, and only if `payoutEligible` is different - * from \"N\" or \"U\". - * - * @return payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * - * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) - * * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" - * (unknown) > Returned when you verify a card BIN or estimate costs, and only if - * `payoutEligible` is different from \"N\" or \"U\". + * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". + * @return payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". */ @JsonProperty(JSON_PROPERTY_PAYOUT_ELIGIBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -448,17 +388,9 @@ public String getPayoutEligible() { } /** - * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * - * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" - * (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) > Returned when - * you verify a card BIN or estimate costs, and only if `payoutEligible` is different - * from \"N\" or \"U\". + * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". * - * @param payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * - * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) - * * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" - * (unknown) > Returned when you verify a card BIN or estimate costs, and only if - * `payoutEligible` is different from \"N\" or \"U\". + * @param payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". */ @JsonProperty(JSON_PROPERTY_PAYOUT_ELIGIBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -479,7 +411,6 @@ public CardBin summary(String summary) { /** * The last four digits of the card number. - * * @return summary The last four digits of the card number. */ @JsonProperty(JSON_PROPERTY_SUMMARY) @@ -499,7 +430,9 @@ public void setSummary(String summary) { this.summary = summary; } - /** Return true if this CardBin object is equal to o. */ + /** + * Return true if this CardBin object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -509,33 +442,22 @@ public boolean equals(Object o) { return false; } CardBin cardBin = (CardBin) o; - return Objects.equals(this.bin, cardBin.bin) - && Objects.equals(this.commercial, cardBin.commercial) - && Objects.equals(this.fundingSource, cardBin.fundingSource) - && Objects.equals(this.fundsAvailability, cardBin.fundsAvailability) - && Objects.equals(this.issuerBin, cardBin.issuerBin) - && Objects.equals(this.issuingBank, cardBin.issuingBank) - && Objects.equals(this.issuingCountry, cardBin.issuingCountry) - && Objects.equals(this.issuingCurrency, cardBin.issuingCurrency) - && Objects.equals(this.paymentMethod, cardBin.paymentMethod) - && Objects.equals(this.payoutEligible, cardBin.payoutEligible) - && Objects.equals(this.summary, cardBin.summary); + return Objects.equals(this.bin, cardBin.bin) && + Objects.equals(this.commercial, cardBin.commercial) && + Objects.equals(this.fundingSource, cardBin.fundingSource) && + Objects.equals(this.fundsAvailability, cardBin.fundsAvailability) && + Objects.equals(this.issuerBin, cardBin.issuerBin) && + Objects.equals(this.issuingBank, cardBin.issuingBank) && + Objects.equals(this.issuingCountry, cardBin.issuingCountry) && + Objects.equals(this.issuingCurrency, cardBin.issuingCurrency) && + Objects.equals(this.paymentMethod, cardBin.paymentMethod) && + Objects.equals(this.payoutEligible, cardBin.payoutEligible) && + Objects.equals(this.summary, cardBin.summary); } @Override public int hashCode() { - return Objects.hash( - bin, - commercial, - fundingSource, - fundsAvailability, - issuerBin, - issuingBank, - issuingCountry, - issuingCurrency, - paymentMethod, - payoutEligible, - summary); + return Objects.hash(bin, commercial, fundingSource, fundsAvailability, issuerBin, issuingBank, issuingCountry, issuingCurrency, paymentMethod, payoutEligible, summary); } @Override @@ -558,7 +480,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -567,7 +490,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CardBin given an JSON string * * @param jsonString JSON string @@ -577,12 +500,11 @@ private String toIndentedString(Object o) { public static CardBin fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardBin.class); } - - /** - * Convert an instance of CardBin to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CardBin to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/binlookup/CostEstimateAssumptions.java b/src/main/java/com/adyen/model/binlookup/CostEstimateAssumptions.java index b9d3e0d55..906dcd34f 100644 --- a/src/main/java/com/adyen/model/binlookup/CostEstimateAssumptions.java +++ b/src/main/java/com/adyen/model/binlookup/CostEstimateAssumptions.java @@ -2,30 +2,39 @@ * Adyen BinLookup API * * The version of the OpenAPI document: 54 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.binlookup; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** CostEstimateAssumptions */ + +/** + * CostEstimateAssumptions + */ @JsonPropertyOrder({ CostEstimateAssumptions.JSON_PROPERTY_ASSUME3_D_SECURE_AUTHENTICATED, CostEstimateAssumptions.JSON_PROPERTY_ASSUME_LEVEL3_DATA, CostEstimateAssumptions.JSON_PROPERTY_INSTALLMENTS }) + public class CostEstimateAssumptions { - public static final String JSON_PROPERTY_ASSUME3_D_SECURE_AUTHENTICATED = - "assume3DSecureAuthenticated"; + public static final String JSON_PROPERTY_ASSUME3_D_SECURE_AUTHENTICATED = "assume3DSecureAuthenticated"; private Boolean assume3DSecureAuthenticated; public static final String JSON_PROPERTY_ASSUME_LEVEL3_DATA = "assumeLevel3Data"; @@ -34,13 +43,13 @@ public class CostEstimateAssumptions { public static final String JSON_PROPERTY_INSTALLMENTS = "installments"; private Integer installments; - public CostEstimateAssumptions() {} + public CostEstimateAssumptions() { + } /** * If true, the cardholder is expected to successfully authorise via 3D Secure. * - * @param assume3DSecureAuthenticated If true, the cardholder is expected to successfully - * authorise via 3D Secure. + * @param assume3DSecureAuthenticated If true, the cardholder is expected to successfully authorise via 3D Secure. * @return the current {@code CostEstimateAssumptions} instance, allowing for method chaining */ public CostEstimateAssumptions assume3DSecureAuthenticated(Boolean assume3DSecureAuthenticated) { @@ -50,9 +59,7 @@ public CostEstimateAssumptions assume3DSecureAuthenticated(Boolean assume3DSecur /** * If true, the cardholder is expected to successfully authorise via 3D Secure. - * - * @return assume3DSecureAuthenticated If true, the cardholder is expected to successfully - * authorise via 3D Secure. + * @return assume3DSecureAuthenticated If true, the cardholder is expected to successfully authorise via 3D Secure. */ @JsonProperty(JSON_PROPERTY_ASSUME3_D_SECURE_AUTHENTICATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,8 +70,7 @@ public Boolean getAssume3DSecureAuthenticated() { /** * If true, the cardholder is expected to successfully authorise via 3D Secure. * - * @param assume3DSecureAuthenticated If true, the cardholder is expected to successfully - * authorise via 3D Secure. + * @param assume3DSecureAuthenticated If true, the cardholder is expected to successfully authorise via 3D Secure. */ @JsonProperty(JSON_PROPERTY_ASSUME3_D_SECURE_AUTHENTICATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -85,7 +91,6 @@ public CostEstimateAssumptions assumeLevel3Data(Boolean assumeLevel3Data) { /** * If true, the transaction is expected to have valid Level 3 data. - * * @return assumeLevel3Data If true, the transaction is expected to have valid Level 3 data. */ @JsonProperty(JSON_PROPERTY_ASSUME_LEVEL3_DATA) @@ -118,7 +123,6 @@ public CostEstimateAssumptions installments(Integer installments) { /** * If not zero, the number of installments. - * * @return installments If not zero, the number of installments. */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS) @@ -138,7 +142,9 @@ public void setInstallments(Integer installments) { this.installments = installments; } - /** Return true if this CostEstimateAssumptions object is equal to o. */ + /** + * Return true if this CostEstimateAssumptions object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -148,10 +154,9 @@ public boolean equals(Object o) { return false; } CostEstimateAssumptions costEstimateAssumptions = (CostEstimateAssumptions) o; - return Objects.equals( - this.assume3DSecureAuthenticated, costEstimateAssumptions.assume3DSecureAuthenticated) - && Objects.equals(this.assumeLevel3Data, costEstimateAssumptions.assumeLevel3Data) - && Objects.equals(this.installments, costEstimateAssumptions.installments); + return Objects.equals(this.assume3DSecureAuthenticated, costEstimateAssumptions.assume3DSecureAuthenticated) && + Objects.equals(this.assumeLevel3Data, costEstimateAssumptions.assumeLevel3Data) && + Objects.equals(this.installments, costEstimateAssumptions.installments); } @Override @@ -163,9 +168,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CostEstimateAssumptions {\n"); - sb.append(" assume3DSecureAuthenticated: ") - .append(toIndentedString(assume3DSecureAuthenticated)) - .append("\n"); + sb.append(" assume3DSecureAuthenticated: ").append(toIndentedString(assume3DSecureAuthenticated)).append("\n"); sb.append(" assumeLevel3Data: ").append(toIndentedString(assumeLevel3Data)).append("\n"); sb.append(" installments: ").append(toIndentedString(installments)).append("\n"); sb.append("}"); @@ -173,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,23 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CostEstimateAssumptions given an JSON string * * @param jsonString JSON string * @return An instance of CostEstimateAssumptions - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CostEstimateAssumptions + * @throws JsonProcessingException if the JSON string is invalid with respect to CostEstimateAssumptions */ public static CostEstimateAssumptions fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CostEstimateAssumptions.class); } - - /** - * Convert an instance of CostEstimateAssumptions to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CostEstimateAssumptions to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/binlookup/CostEstimateRequest.java b/src/main/java/com/adyen/model/binlookup/CostEstimateRequest.java index 297e83756..94ddcf5cc 100644 --- a/src/main/java/com/adyen/model/binlookup/CostEstimateRequest.java +++ b/src/main/java/com/adyen/model/binlookup/CostEstimateRequest.java @@ -2,26 +2,35 @@ * Adyen BinLookup API * * The version of the OpenAPI document: 54 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.binlookup; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.binlookup.Amount; +import com.adyen.model.binlookup.CostEstimateAssumptions; +import com.adyen.model.binlookup.MerchantDetails; +import com.adyen.model.binlookup.Recurring; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CostEstimateRequest */ +/** + * CostEstimateRequest + */ @JsonPropertyOrder({ CostEstimateRequest.JSON_PROPERTY_AMOUNT, CostEstimateRequest.JSON_PROPERTY_ASSUMPTIONS, @@ -34,6 +43,7 @@ CostEstimateRequest.JSON_PROPERTY_SHOPPER_INTERACTION, CostEstimateRequest.JSON_PROPERTY_SHOPPER_REFERENCE }) + public class CostEstimateRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -56,24 +66,14 @@ public class CostEstimateRequest { public static final String JSON_PROPERTY_RECURRING = "recurring"; private Recurring recurring; - public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = - "selectedRecurringDetailReference"; + public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = "selectedRecurringDetailReference"; private String selectedRecurringDetailReference; /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the card holder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the card holder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ public enum ShopperInteractionEnum { + ECOMMERCE(String.valueOf("Ecommerce")), CONTAUTH(String.valueOf("ContAuth")), @@ -87,7 +87,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -108,11 +108,7 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ShopperInteractionEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -123,12 +119,13 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference"; private String shopperReference; - public CostEstimateRequest() {} + public CostEstimateRequest() { + } /** * amount * - * @param amount + * @param amount * @return the current {@code CostEstimateRequest} instance, allowing for method chaining */ public CostEstimateRequest amount(Amount amount) { @@ -138,8 +135,7 @@ public CostEstimateRequest amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,7 +146,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,7 +157,7 @@ public void setAmount(Amount amount) { /** * assumptions * - * @param assumptions + * @param assumptions * @return the current {@code CostEstimateRequest} instance, allowing for method chaining */ public CostEstimateRequest assumptions(CostEstimateAssumptions assumptions) { @@ -171,8 +167,7 @@ public CostEstimateRequest assumptions(CostEstimateAssumptions assumptions) { /** * Get assumptions - * - * @return assumptions + * @return assumptions */ @JsonProperty(JSON_PROPERTY_ASSUMPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,7 +178,7 @@ public CostEstimateAssumptions getAssumptions() { /** * assumptions * - * @param assumptions + * @param assumptions */ @JsonProperty(JSON_PROPERTY_ASSUMPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,13 +187,9 @@ public void setAssumptions(CostEstimateAssumptions assumptions) { } /** - * The card number (4-19 characters) for PCI compliant use cases. Do not use any separators. > - * Either the `cardNumber` or `encryptedCardNumber` field must be provided in - * a payment request. + * The card number (4-19 characters) for PCI compliant use cases. Do not use any separators. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request. * - * @param cardNumber The card number (4-19 characters) for PCI compliant use cases. Do not use any - * separators. > Either the `cardNumber` or `encryptedCardNumber` field - * must be provided in a payment request. + * @param cardNumber The card number (4-19 characters) for PCI compliant use cases. Do not use any separators. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request. * @return the current {@code CostEstimateRequest} instance, allowing for method chaining */ public CostEstimateRequest cardNumber(String cardNumber) { @@ -207,13 +198,8 @@ public CostEstimateRequest cardNumber(String cardNumber) { } /** - * The card number (4-19 characters) for PCI compliant use cases. Do not use any separators. > - * Either the `cardNumber` or `encryptedCardNumber` field must be provided in - * a payment request. - * - * @return cardNumber The card number (4-19 characters) for PCI compliant use cases. Do not use - * any separators. > Either the `cardNumber` or `encryptedCardNumber` - * field must be provided in a payment request. + * The card number (4-19 characters) for PCI compliant use cases. Do not use any separators. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request. + * @return cardNumber The card number (4-19 characters) for PCI compliant use cases. Do not use any separators. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request. */ @JsonProperty(JSON_PROPERTY_CARD_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -222,13 +208,9 @@ public String getCardNumber() { } /** - * The card number (4-19 characters) for PCI compliant use cases. Do not use any separators. > - * Either the `cardNumber` or `encryptedCardNumber` field must be provided in - * a payment request. + * The card number (4-19 characters) for PCI compliant use cases. Do not use any separators. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request. * - * @param cardNumber The card number (4-19 characters) for PCI compliant use cases. Do not use any - * separators. > Either the `cardNumber` or `encryptedCardNumber` field - * must be provided in a payment request. + * @param cardNumber The card number (4-19 characters) for PCI compliant use cases. Do not use any separators. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request. */ @JsonProperty(JSON_PROPERTY_CARD_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,16 +219,9 @@ public void setCardNumber(String cardNumber) { } /** - * Encrypted data that stores card information for non PCI-compliant use cases. The encrypted data - * must be created with the Checkout Card Component or Secured Fields Component, and must contain - * the `encryptedCardNumber` field. > Either the `cardNumber` or - * `encryptedCardNumber` field must be provided in a payment request. + * Encrypted data that stores card information for non PCI-compliant use cases. The encrypted data must be created with the Checkout Card Component or Secured Fields Component, and must contain the `encryptedCardNumber` field. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request. * - * @param encryptedCardNumber Encrypted data that stores card information for non PCI-compliant - * use cases. The encrypted data must be created with the Checkout Card Component or Secured - * Fields Component, and must contain the `encryptedCardNumber` field. > Either - * the `cardNumber` or `encryptedCardNumber` field must be provided in a - * payment request. + * @param encryptedCardNumber Encrypted data that stores card information for non PCI-compliant use cases. The encrypted data must be created with the Checkout Card Component or Secured Fields Component, and must contain the `encryptedCardNumber` field. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request. * @return the current {@code CostEstimateRequest} instance, allowing for method chaining */ public CostEstimateRequest encryptedCardNumber(String encryptedCardNumber) { @@ -255,16 +230,8 @@ public CostEstimateRequest encryptedCardNumber(String encryptedCardNumber) { } /** - * Encrypted data that stores card information for non PCI-compliant use cases. The encrypted data - * must be created with the Checkout Card Component or Secured Fields Component, and must contain - * the `encryptedCardNumber` field. > Either the `cardNumber` or - * `encryptedCardNumber` field must be provided in a payment request. - * - * @return encryptedCardNumber Encrypted data that stores card information for non PCI-compliant - * use cases. The encrypted data must be created with the Checkout Card Component or Secured - * Fields Component, and must contain the `encryptedCardNumber` field. > Either - * the `cardNumber` or `encryptedCardNumber` field must be provided in a - * payment request. + * Encrypted data that stores card information for non PCI-compliant use cases. The encrypted data must be created with the Checkout Card Component or Secured Fields Component, and must contain the `encryptedCardNumber` field. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request. + * @return encryptedCardNumber Encrypted data that stores card information for non PCI-compliant use cases. The encrypted data must be created with the Checkout Card Component or Secured Fields Component, and must contain the `encryptedCardNumber` field. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_CARD_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -273,16 +240,9 @@ public String getEncryptedCardNumber() { } /** - * Encrypted data that stores card information for non PCI-compliant use cases. The encrypted data - * must be created with the Checkout Card Component or Secured Fields Component, and must contain - * the `encryptedCardNumber` field. > Either the `cardNumber` or - * `encryptedCardNumber` field must be provided in a payment request. + * Encrypted data that stores card information for non PCI-compliant use cases. The encrypted data must be created with the Checkout Card Component or Secured Fields Component, and must contain the `encryptedCardNumber` field. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request. * - * @param encryptedCardNumber Encrypted data that stores card information for non PCI-compliant - * use cases. The encrypted data must be created with the Checkout Card Component or Secured - * Fields Component, and must contain the `encryptedCardNumber` field. > Either - * the `cardNumber` or `encryptedCardNumber` field must be provided in a - * payment request. + * @param encryptedCardNumber Encrypted data that stores card information for non PCI-compliant use cases. The encrypted data must be created with the Checkout Card Component or Secured Fields Component, and must contain the `encryptedCardNumber` field. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_CARD_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -293,8 +253,7 @@ public void setEncryptedCardNumber(String encryptedCardNumber) { /** * The merchant account identifier you want to process the (transaction) request with. * - * @param merchantAccount The merchant account identifier you want to process the (transaction) - * request with. + * @param merchantAccount The merchant account identifier you want to process the (transaction) request with. * @return the current {@code CostEstimateRequest} instance, allowing for method chaining */ public CostEstimateRequest merchantAccount(String merchantAccount) { @@ -304,9 +263,7 @@ public CostEstimateRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier you want to process the (transaction) request with. - * - * @return merchantAccount The merchant account identifier you want to process the (transaction) - * request with. + * @return merchantAccount The merchant account identifier you want to process the (transaction) request with. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -317,8 +274,7 @@ public String getMerchantAccount() { /** * The merchant account identifier you want to process the (transaction) request with. * - * @param merchantAccount The merchant account identifier you want to process the (transaction) - * request with. + * @param merchantAccount The merchant account identifier you want to process the (transaction) request with. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -329,7 +285,7 @@ public void setMerchantAccount(String merchantAccount) { /** * merchantDetails * - * @param merchantDetails + * @param merchantDetails * @return the current {@code CostEstimateRequest} instance, allowing for method chaining */ public CostEstimateRequest merchantDetails(MerchantDetails merchantDetails) { @@ -339,8 +295,7 @@ public CostEstimateRequest merchantDetails(MerchantDetails merchantDetails) { /** * Get merchantDetails - * - * @return merchantDetails + * @return merchantDetails */ @JsonProperty(JSON_PROPERTY_MERCHANT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -351,7 +306,7 @@ public MerchantDetails getMerchantDetails() { /** * merchantDetails * - * @param merchantDetails + * @param merchantDetails */ @JsonProperty(JSON_PROPERTY_MERCHANT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -362,7 +317,7 @@ public void setMerchantDetails(MerchantDetails merchantDetails) { /** * recurring * - * @param recurring + * @param recurring * @return the current {@code CostEstimateRequest} instance, allowing for method chaining */ public CostEstimateRequest recurring(Recurring recurring) { @@ -372,8 +327,7 @@ public CostEstimateRequest recurring(Recurring recurring) { /** * Get recurring - * - * @return recurring + * @return recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -384,7 +338,7 @@ public Recurring getRecurring() { /** * recurring * - * @param recurring + * @param recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -393,27 +347,19 @@ public void setRecurring(Recurring recurring) { } /** - * The `recurringDetailReference` you want to use for this cost estimate. The value - * `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this cost estimate. The value `LATEST` can be used to select the most recently stored recurring detail. * - * @param selectedRecurringDetailReference The `recurringDetailReference` you want to - * use for this cost estimate. The value `LATEST` can be used to select the most - * recently stored recurring detail. + * @param selectedRecurringDetailReference The `recurringDetailReference` you want to use for this cost estimate. The value `LATEST` can be used to select the most recently stored recurring detail. * @return the current {@code CostEstimateRequest} instance, allowing for method chaining */ - public CostEstimateRequest selectedRecurringDetailReference( - String selectedRecurringDetailReference) { + public CostEstimateRequest selectedRecurringDetailReference(String selectedRecurringDetailReference) { this.selectedRecurringDetailReference = selectedRecurringDetailReference; return this; } /** - * The `recurringDetailReference` you want to use for this cost estimate. The value - * `LATEST` can be used to select the most recently stored recurring detail. - * - * @return selectedRecurringDetailReference The `recurringDetailReference` you want to - * use for this cost estimate. The value `LATEST` can be used to select the most - * recently stored recurring detail. + * The `recurringDetailReference` you want to use for this cost estimate. The value `LATEST` can be used to select the most recently stored recurring detail. + * @return selectedRecurringDetailReference The `recurringDetailReference` you want to use for this cost estimate. The value `LATEST` can be used to select the most recently stored recurring detail. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -422,12 +368,9 @@ public String getSelectedRecurringDetailReference() { } /** - * The `recurringDetailReference` you want to use for this cost estimate. The value - * `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this cost estimate. The value `LATEST` can be used to select the most recently stored recurring detail. * - * @param selectedRecurringDetailReference The `recurringDetailReference` you want to - * use for this cost estimate. The value `LATEST` can be used to select the most - * recently stored recurring detail. + * @param selectedRecurringDetailReference The `recurringDetailReference` you want to use for this cost estimate. The value `LATEST` can be used to select the most recently stored recurring detail. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -436,30 +379,9 @@ public void setSelectedRecurringDetailReference(String selectedRecurringDetailRe } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the card holder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the card holder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the card holder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the card holder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. * @return the current {@code CostEstimateRequest} instance, allowing for method chaining */ public CostEstimateRequest shopperInteraction(ShopperInteractionEnum shopperInteraction) { @@ -468,30 +390,8 @@ public CostEstimateRequest shopperInteraction(ShopperInteractionEnum shopperInte } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the card holder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. - * - * @return shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the card holder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the card holder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * @return shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the card holder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -500,30 +400,9 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the card holder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the card holder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the card holder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the card holder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -532,15 +411,9 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example - * user ID or account ID. The value is case-sensitive and must be at least three characters. > - * Your reference must not include personally identifiable information (PII) such as name or email - * address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify - * this shopper, for example user ID or account ID. The value is case-sensitive and must be at - * least three characters. > Your reference must not include personally identifiable - * information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * @return the current {@code CostEstimateRequest} instance, allowing for method chaining */ public CostEstimateRequest shopperReference(String shopperReference) { @@ -549,15 +422,8 @@ public CostEstimateRequest shopperReference(String shopperReference) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example - * user ID or account ID. The value is case-sensitive and must be at least three characters. > - * Your reference must not include personally identifiable information (PII) such as name or email - * address. - * - * @return shopperReference Required for recurring payments. Your reference to uniquely identify - * this shopper, for example user ID or account ID. The value is case-sensitive and must be at - * least three characters. > Your reference must not include personally identifiable - * information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @return shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -566,15 +432,9 @@ public String getShopperReference() { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example - * user ID or account ID. The value is case-sensitive and must be at least three characters. > - * Your reference must not include personally identifiable information (PII) such as name or email - * address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify - * this shopper, for example user ID or account ID. The value is case-sensitive and must be at - * least three characters. > Your reference must not include personally identifiable - * information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -582,7 +442,9 @@ public void setShopperReference(String shopperReference) { this.shopperReference = shopperReference; } - /** Return true if this CostEstimateRequest object is equal to o. */ + /** + * Return true if this CostEstimateRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -592,33 +454,21 @@ public boolean equals(Object o) { return false; } CostEstimateRequest costEstimateRequest = (CostEstimateRequest) o; - return Objects.equals(this.amount, costEstimateRequest.amount) - && Objects.equals(this.assumptions, costEstimateRequest.assumptions) - && Objects.equals(this.cardNumber, costEstimateRequest.cardNumber) - && Objects.equals(this.encryptedCardNumber, costEstimateRequest.encryptedCardNumber) - && Objects.equals(this.merchantAccount, costEstimateRequest.merchantAccount) - && Objects.equals(this.merchantDetails, costEstimateRequest.merchantDetails) - && Objects.equals(this.recurring, costEstimateRequest.recurring) - && Objects.equals( - this.selectedRecurringDetailReference, - costEstimateRequest.selectedRecurringDetailReference) - && Objects.equals(this.shopperInteraction, costEstimateRequest.shopperInteraction) - && Objects.equals(this.shopperReference, costEstimateRequest.shopperReference); + return Objects.equals(this.amount, costEstimateRequest.amount) && + Objects.equals(this.assumptions, costEstimateRequest.assumptions) && + Objects.equals(this.cardNumber, costEstimateRequest.cardNumber) && + Objects.equals(this.encryptedCardNumber, costEstimateRequest.encryptedCardNumber) && + Objects.equals(this.merchantAccount, costEstimateRequest.merchantAccount) && + Objects.equals(this.merchantDetails, costEstimateRequest.merchantDetails) && + Objects.equals(this.recurring, costEstimateRequest.recurring) && + Objects.equals(this.selectedRecurringDetailReference, costEstimateRequest.selectedRecurringDetailReference) && + Objects.equals(this.shopperInteraction, costEstimateRequest.shopperInteraction) && + Objects.equals(this.shopperReference, costEstimateRequest.shopperReference); } @Override public int hashCode() { - return Objects.hash( - amount, - assumptions, - cardNumber, - encryptedCardNumber, - merchantAccount, - merchantDetails, - recurring, - selectedRecurringDetailReference, - shopperInteraction, - shopperReference); + return Objects.hash(amount, assumptions, cardNumber, encryptedCardNumber, merchantAccount, merchantDetails, recurring, selectedRecurringDetailReference, shopperInteraction, shopperReference); } @Override @@ -628,15 +478,11 @@ public String toString() { sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" assumptions: ").append(toIndentedString(assumptions)).append("\n"); sb.append(" cardNumber: ").append(toIndentedString(cardNumber)).append("\n"); - sb.append(" encryptedCardNumber: ") - .append(toIndentedString(encryptedCardNumber)) - .append("\n"); + sb.append(" encryptedCardNumber: ").append(toIndentedString(encryptedCardNumber)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" merchantDetails: ").append(toIndentedString(merchantDetails)).append("\n"); sb.append(" recurring: ").append(toIndentedString(recurring)).append("\n"); - sb.append(" selectedRecurringDetailReference: ") - .append(toIndentedString(selectedRecurringDetailReference)) - .append("\n"); + sb.append(" selectedRecurringDetailReference: ").append(toIndentedString(selectedRecurringDetailReference)).append("\n"); sb.append(" shopperInteraction: ").append(toIndentedString(shopperInteraction)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append("}"); @@ -644,7 +490,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -653,23 +500,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CostEstimateRequest given an JSON string * * @param jsonString JSON string * @return An instance of CostEstimateRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CostEstimateRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to CostEstimateRequest */ public static CostEstimateRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CostEstimateRequest.class); } - - /** - * Convert an instance of CostEstimateRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CostEstimateRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/binlookup/CostEstimateResponse.java b/src/main/java/com/adyen/model/binlookup/CostEstimateResponse.java index 4a4746707..d24dae628 100644 --- a/src/main/java/com/adyen/model/binlookup/CostEstimateResponse.java +++ b/src/main/java/com/adyen/model/binlookup/CostEstimateResponse.java @@ -2,28 +2,40 @@ * Adyen BinLookup API * * The version of the OpenAPI document: 54 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.binlookup; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.binlookup.Amount; +import com.adyen.model.binlookup.CardBin; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** CostEstimateResponse */ + +/** + * CostEstimateResponse + */ @JsonPropertyOrder({ CostEstimateResponse.JSON_PROPERTY_CARD_BIN, CostEstimateResponse.JSON_PROPERTY_COST_ESTIMATE_AMOUNT, CostEstimateResponse.JSON_PROPERTY_COST_ESTIMATE_REFERENCE, CostEstimateResponse.JSON_PROPERTY_RESULT_CODE }) + public class CostEstimateResponse { public static final String JSON_PROPERTY_CARD_BIN = "cardBin"; private CardBin cardBin; @@ -37,12 +49,13 @@ public class CostEstimateResponse { public static final String JSON_PROPERTY_RESULT_CODE = "resultCode"; private String resultCode; - public CostEstimateResponse() {} + public CostEstimateResponse() { + } /** * cardBin * - * @param cardBin + * @param cardBin * @return the current {@code CostEstimateResponse} instance, allowing for method chaining */ public CostEstimateResponse cardBin(CardBin cardBin) { @@ -52,8 +65,7 @@ public CostEstimateResponse cardBin(CardBin cardBin) { /** * Get cardBin - * - * @return cardBin + * @return cardBin */ @JsonProperty(JSON_PROPERTY_CARD_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,7 +76,7 @@ public CardBin getCardBin() { /** * cardBin * - * @param cardBin + * @param cardBin */ @JsonProperty(JSON_PROPERTY_CARD_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,7 +87,7 @@ public void setCardBin(CardBin cardBin) { /** * costEstimateAmount * - * @param costEstimateAmount + * @param costEstimateAmount * @return the current {@code CostEstimateResponse} instance, allowing for method chaining */ public CostEstimateResponse costEstimateAmount(Amount costEstimateAmount) { @@ -85,8 +97,7 @@ public CostEstimateResponse costEstimateAmount(Amount costEstimateAmount) { /** * Get costEstimateAmount - * - * @return costEstimateAmount + * @return costEstimateAmount */ @JsonProperty(JSON_PROPERTY_COST_ESTIMATE_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,7 +108,7 @@ public Amount getCostEstimateAmount() { /** * costEstimateAmount * - * @param costEstimateAmount + * @param costEstimateAmount */ @JsonProperty(JSON_PROPERTY_COST_ESTIMATE_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,7 +129,6 @@ public CostEstimateResponse costEstimateReference(String costEstimateReference) /** * Adyen's 16-character reference associated with the request. - * * @return costEstimateReference Adyen's 16-character reference associated with the request. */ @JsonProperty(JSON_PROPERTY_COST_ESTIMATE_REFERENCE) @@ -151,7 +161,6 @@ public CostEstimateResponse resultCode(String resultCode) { /** * The result of the cost estimation. - * * @return resultCode The result of the cost estimation. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @@ -171,7 +180,9 @@ public void setResultCode(String resultCode) { this.resultCode = resultCode; } - /** Return true if this CostEstimateResponse object is equal to o. */ + /** + * Return true if this CostEstimateResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -181,10 +192,10 @@ public boolean equals(Object o) { return false; } CostEstimateResponse costEstimateResponse = (CostEstimateResponse) o; - return Objects.equals(this.cardBin, costEstimateResponse.cardBin) - && Objects.equals(this.costEstimateAmount, costEstimateResponse.costEstimateAmount) - && Objects.equals(this.costEstimateReference, costEstimateResponse.costEstimateReference) - && Objects.equals(this.resultCode, costEstimateResponse.resultCode); + return Objects.equals(this.cardBin, costEstimateResponse.cardBin) && + Objects.equals(this.costEstimateAmount, costEstimateResponse.costEstimateAmount) && + Objects.equals(this.costEstimateReference, costEstimateResponse.costEstimateReference) && + Objects.equals(this.resultCode, costEstimateResponse.resultCode); } @Override @@ -198,16 +209,15 @@ public String toString() { sb.append("class CostEstimateResponse {\n"); sb.append(" cardBin: ").append(toIndentedString(cardBin)).append("\n"); sb.append(" costEstimateAmount: ").append(toIndentedString(costEstimateAmount)).append("\n"); - sb.append(" costEstimateReference: ") - .append(toIndentedString(costEstimateReference)) - .append("\n"); + sb.append(" costEstimateReference: ").append(toIndentedString(costEstimateReference)).append("\n"); sb.append(" resultCode: ").append(toIndentedString(resultCode)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -216,23 +226,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CostEstimateResponse given an JSON string * * @param jsonString JSON string * @return An instance of CostEstimateResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CostEstimateResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to CostEstimateResponse */ public static CostEstimateResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CostEstimateResponse.class); } - - /** - * Convert an instance of CostEstimateResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CostEstimateResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/binlookup/DSPublicKeyDetail.java b/src/main/java/com/adyen/model/binlookup/DSPublicKeyDetail.java index c19037c43..7a0bcff91 100644 --- a/src/main/java/com/adyen/model/binlookup/DSPublicKeyDetail.java +++ b/src/main/java/com/adyen/model/binlookup/DSPublicKeyDetail.java @@ -2,23 +2,31 @@ * Adyen BinLookup API * * The version of the OpenAPI document: 54 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.binlookup; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -import java.util.Arrays; -/** DSPublicKeyDetail */ + +/** + * DSPublicKeyDetail + */ @JsonPropertyOrder({ DSPublicKeyDetail.JSON_PROPERTY_BRAND, DSPublicKeyDetail.JSON_PROPERTY_DIRECTORY_SERVER_ID, @@ -26,6 +34,7 @@ DSPublicKeyDetail.JSON_PROPERTY_PUBLIC_KEY, DSPublicKeyDetail.JSON_PROPERTY_ROOT_CERTIFICATES }) + public class DSPublicKeyDetail { public static final String JSON_PROPERTY_BRAND = "brand"; private String brand; @@ -42,7 +51,8 @@ public class DSPublicKeyDetail { public static final String JSON_PROPERTY_ROOT_CERTIFICATES = "rootCertificates"; private String rootCertificates; - public DSPublicKeyDetail() {} + public DSPublicKeyDetail() { + } /** * Card brand. @@ -57,7 +67,6 @@ public DSPublicKeyDetail brand(String brand) { /** * Card brand. - * * @return brand Card brand. */ @JsonProperty(JSON_PROPERTY_BRAND) @@ -90,7 +99,6 @@ public DSPublicKeyDetail directoryServerId(String directoryServerId) { /** * Directory Server (DS) identifier. - * * @return directoryServerId Directory Server (DS) identifier. */ @JsonProperty(JSON_PROPERTY_DIRECTORY_SERVER_ID) @@ -111,14 +119,9 @@ public void setDirectoryServerId(String directoryServerId) { } /** - * The version of the mobile 3D Secure 2 SDK. For the possible values, refer to the versions in - * [Adyen 3DS2 Android](https://github.com/Adyen/adyen-3ds2-android/releases) and [Adyen 3DS2 - * iOS](https://github.com/Adyen/adyen-3ds2-ios/releases). + * The version of the mobile 3D Secure 2 SDK. For the possible values, refer to the versions in [Adyen 3DS2 Android](https://github.com/Adyen/adyen-3ds2-android/releases) and [Adyen 3DS2 iOS](https://github.com/Adyen/adyen-3ds2-ios/releases). * - * @param fromSDKVersion The version of the mobile 3D Secure 2 SDK. For the possible values, refer - * to the versions in [Adyen 3DS2 - * Android](https://github.com/Adyen/adyen-3ds2-android/releases) and [Adyen 3DS2 - * iOS](https://github.com/Adyen/adyen-3ds2-ios/releases). + * @param fromSDKVersion The version of the mobile 3D Secure 2 SDK. For the possible values, refer to the versions in [Adyen 3DS2 Android](https://github.com/Adyen/adyen-3ds2-android/releases) and [Adyen 3DS2 iOS](https://github.com/Adyen/adyen-3ds2-ios/releases). * @return the current {@code DSPublicKeyDetail} instance, allowing for method chaining */ public DSPublicKeyDetail fromSDKVersion(String fromSDKVersion) { @@ -127,14 +130,8 @@ public DSPublicKeyDetail fromSDKVersion(String fromSDKVersion) { } /** - * The version of the mobile 3D Secure 2 SDK. For the possible values, refer to the versions in - * [Adyen 3DS2 Android](https://github.com/Adyen/adyen-3ds2-android/releases) and [Adyen 3DS2 - * iOS](https://github.com/Adyen/adyen-3ds2-ios/releases). - * - * @return fromSDKVersion The version of the mobile 3D Secure 2 SDK. For the possible values, - * refer to the versions in [Adyen 3DS2 - * Android](https://github.com/Adyen/adyen-3ds2-android/releases) and [Adyen 3DS2 - * iOS](https://github.com/Adyen/adyen-3ds2-ios/releases). + * The version of the mobile 3D Secure 2 SDK. For the possible values, refer to the versions in [Adyen 3DS2 Android](https://github.com/Adyen/adyen-3ds2-android/releases) and [Adyen 3DS2 iOS](https://github.com/Adyen/adyen-3ds2-ios/releases). + * @return fromSDKVersion The version of the mobile 3D Secure 2 SDK. For the possible values, refer to the versions in [Adyen 3DS2 Android](https://github.com/Adyen/adyen-3ds2-android/releases) and [Adyen 3DS2 iOS](https://github.com/Adyen/adyen-3ds2-ios/releases). */ @JsonProperty(JSON_PROPERTY_FROM_S_D_K_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,14 +140,9 @@ public String getFromSDKVersion() { } /** - * The version of the mobile 3D Secure 2 SDK. For the possible values, refer to the versions in - * [Adyen 3DS2 Android](https://github.com/Adyen/adyen-3ds2-android/releases) and [Adyen 3DS2 - * iOS](https://github.com/Adyen/adyen-3ds2-ios/releases). + * The version of the mobile 3D Secure 2 SDK. For the possible values, refer to the versions in [Adyen 3DS2 Android](https://github.com/Adyen/adyen-3ds2-android/releases) and [Adyen 3DS2 iOS](https://github.com/Adyen/adyen-3ds2-ios/releases). * - * @param fromSDKVersion The version of the mobile 3D Secure 2 SDK. For the possible values, refer - * to the versions in [Adyen 3DS2 - * Android](https://github.com/Adyen/adyen-3ds2-android/releases) and [Adyen 3DS2 - * iOS](https://github.com/Adyen/adyen-3ds2-ios/releases). + * @param fromSDKVersion The version of the mobile 3D Secure 2 SDK. For the possible values, refer to the versions in [Adyen 3DS2 Android](https://github.com/Adyen/adyen-3ds2-android/releases) and [Adyen 3DS2 iOS](https://github.com/Adyen/adyen-3ds2-ios/releases). */ @JsonProperty(JSON_PROPERTY_FROM_S_D_K_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,8 +153,7 @@ public void setFromSDKVersion(String fromSDKVersion) { /** * Public key. The 3D Secure 2 SDK encrypts the device information by using the DS public key. * - * @param publicKey Public key. The 3D Secure 2 SDK encrypts the device information by using the - * DS public key. + * @param publicKey Public key. The 3D Secure 2 SDK encrypts the device information by using the DS public key. * @return the current {@code DSPublicKeyDetail} instance, allowing for method chaining */ public DSPublicKeyDetail publicKey(byte[] publicKey) { @@ -172,9 +163,7 @@ public DSPublicKeyDetail publicKey(byte[] publicKey) { /** * Public key. The 3D Secure 2 SDK encrypts the device information by using the DS public key. - * - * @return publicKey Public key. The 3D Secure 2 SDK encrypts the device information by using the - * DS public key. + * @return publicKey Public key. The 3D Secure 2 SDK encrypts the device information by using the DS public key. */ @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,8 +174,7 @@ public byte[] getPublicKey() { /** * Public key. The 3D Secure 2 SDK encrypts the device information by using the DS public key. * - * @param publicKey Public key. The 3D Secure 2 SDK encrypts the device information by using the - * DS public key. + * @param publicKey Public key. The 3D Secure 2 SDK encrypts the device information by using the DS public key. */ @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,11 +183,9 @@ public void setPublicKey(byte[] publicKey) { } /** - * Directory Server root certificates. The 3D Secure 2 SDK verifies the ACS signed content using - * the rootCertificates. + * Directory Server root certificates. The 3D Secure 2 SDK verifies the ACS signed content using the rootCertificates. * - * @param rootCertificates Directory Server root certificates. The 3D Secure 2 SDK verifies the - * ACS signed content using the rootCertificates. + * @param rootCertificates Directory Server root certificates. The 3D Secure 2 SDK verifies the ACS signed content using the rootCertificates. * @return the current {@code DSPublicKeyDetail} instance, allowing for method chaining */ public DSPublicKeyDetail rootCertificates(String rootCertificates) { @@ -208,11 +194,8 @@ public DSPublicKeyDetail rootCertificates(String rootCertificates) { } /** - * Directory Server root certificates. The 3D Secure 2 SDK verifies the ACS signed content using - * the rootCertificates. - * - * @return rootCertificates Directory Server root certificates. The 3D Secure 2 SDK verifies the - * ACS signed content using the rootCertificates. + * Directory Server root certificates. The 3D Secure 2 SDK verifies the ACS signed content using the rootCertificates. + * @return rootCertificates Directory Server root certificates. The 3D Secure 2 SDK verifies the ACS signed content using the rootCertificates. */ @JsonProperty(JSON_PROPERTY_ROOT_CERTIFICATES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,11 +204,9 @@ public String getRootCertificates() { } /** - * Directory Server root certificates. The 3D Secure 2 SDK verifies the ACS signed content using - * the rootCertificates. + * Directory Server root certificates. The 3D Secure 2 SDK verifies the ACS signed content using the rootCertificates. * - * @param rootCertificates Directory Server root certificates. The 3D Secure 2 SDK verifies the - * ACS signed content using the rootCertificates. + * @param rootCertificates Directory Server root certificates. The 3D Secure 2 SDK verifies the ACS signed content using the rootCertificates. */ @JsonProperty(JSON_PROPERTY_ROOT_CERTIFICATES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -233,7 +214,9 @@ public void setRootCertificates(String rootCertificates) { this.rootCertificates = rootCertificates; } - /** Return true if this DSPublicKeyDetail object is equal to o. */ + /** + * Return true if this DSPublicKeyDetail object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -243,17 +226,16 @@ public boolean equals(Object o) { return false; } DSPublicKeyDetail dsPublicKeyDetail = (DSPublicKeyDetail) o; - return Objects.equals(this.brand, dsPublicKeyDetail.brand) - && Objects.equals(this.directoryServerId, dsPublicKeyDetail.directoryServerId) - && Objects.equals(this.fromSDKVersion, dsPublicKeyDetail.fromSDKVersion) - && Arrays.equals(this.publicKey, dsPublicKeyDetail.publicKey) - && Objects.equals(this.rootCertificates, dsPublicKeyDetail.rootCertificates); + return Objects.equals(this.brand, dsPublicKeyDetail.brand) && + Objects.equals(this.directoryServerId, dsPublicKeyDetail.directoryServerId) && + Objects.equals(this.fromSDKVersion, dsPublicKeyDetail.fromSDKVersion) && + Arrays.equals(this.publicKey, dsPublicKeyDetail.publicKey) && + Objects.equals(this.rootCertificates, dsPublicKeyDetail.rootCertificates); } @Override public int hashCode() { - return Objects.hash( - brand, directoryServerId, fromSDKVersion, Arrays.hashCode(publicKey), rootCertificates); + return Objects.hash(brand, directoryServerId, fromSDKVersion, Arrays.hashCode(publicKey), rootCertificates); } @Override @@ -270,7 +252,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -279,7 +262,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DSPublicKeyDetail given an JSON string * * @param jsonString JSON string @@ -289,12 +272,11 @@ private String toIndentedString(Object o) { public static DSPublicKeyDetail fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DSPublicKeyDetail.class); } - - /** - * Convert an instance of DSPublicKeyDetail to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DSPublicKeyDetail to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/binlookup/JSON.java b/src/main/java/com/adyen/model/binlookup/JSON.java index 275acb249..457befe0e 100644 --- a/src/main/java/com/adyen/model/binlookup/JSON.java +++ b/src/main/java/com/adyen/model/binlookup/JSON.java @@ -1,18 +1,21 @@ package com.adyen.model.binlookup; -import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; +import com.adyen.serializer.ByteArrayDeserializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; +import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; +import com.adyen.model.binlookup.*; + import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -37,7 +40,6 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. - * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -54,13 +56,11 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { - return mapper; - } + public static ObjectMapper getMapper() { return mapper; } /** - * Returns the target model class that should be used to deserialize the input data. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,7 +73,9 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** Helper class to register the discriminator mappings. */ + /** + * Helper class to register the discriminator mappings. + */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -115,9 +117,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. This - * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -162,14 +164,13 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so - * it's not possible to use the instanceof keyword. + * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, + * so it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf( - Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -193,58 +194,59 @@ public static boolean isInstanceOf( return false; } - /** A map of discriminators for all model classes. */ - private static final Map, ClassDiscriminatorMapping> modelDiscriminators = - new HashMap, ClassDiscriminatorMapping>(); + /** + * A map of discriminators for all model classes. + */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); - /** A map of oneOf/anyOf descendants for each model class. */ + /** + * A map of oneOf/anyOf descendants for each model class. + */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator( - Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = - new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants( - Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants(Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static { + static + { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/binlookup/MerchantDetails.java b/src/main/java/com/adyen/model/binlookup/MerchantDetails.java index 02bbc179b..bc6a30cd3 100644 --- a/src/main/java/com/adyen/model/binlookup/MerchantDetails.java +++ b/src/main/java/com/adyen/model/binlookup/MerchantDetails.java @@ -2,27 +2,37 @@ * Adyen BinLookup API * * The version of the OpenAPI document: 54 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.binlookup; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** MerchantDetails */ + +/** + * MerchantDetails + */ @JsonPropertyOrder({ MerchantDetails.JSON_PROPERTY_COUNTRY_CODE, MerchantDetails.JSON_PROPERTY_ENROLLED_IN3_D_SECURE, MerchantDetails.JSON_PROPERTY_MCC }) + public class MerchantDetails { public static final String JSON_PROPERTY_COUNTRY_CODE = "countryCode"; private String countryCode; @@ -33,15 +43,13 @@ public class MerchantDetails { public static final String JSON_PROPERTY_MCC = "mcc"; private String mcc; - public MerchantDetails() {} + public MerchantDetails() { + } /** - * 2-letter ISO 3166 country code of the card acceptor location. > This parameter is required - * for the merchants who don't use Adyen as the payment authorisation gateway. + * 2-letter ISO 3166 country code of the card acceptor location. > This parameter is required for the merchants who don't use Adyen as the payment authorisation gateway. * - * @param countryCode 2-letter ISO 3166 country code of the card acceptor location. > This - * parameter is required for the merchants who don't use Adyen as the payment - * authorisation gateway. + * @param countryCode 2-letter ISO 3166 country code of the card acceptor location. > This parameter is required for the merchants who don't use Adyen as the payment authorisation gateway. * @return the current {@code MerchantDetails} instance, allowing for method chaining */ public MerchantDetails countryCode(String countryCode) { @@ -50,12 +58,8 @@ public MerchantDetails countryCode(String countryCode) { } /** - * 2-letter ISO 3166 country code of the card acceptor location. > This parameter is required - * for the merchants who don't use Adyen as the payment authorisation gateway. - * - * @return countryCode 2-letter ISO 3166 country code of the card acceptor location. > This - * parameter is required for the merchants who don't use Adyen as the payment - * authorisation gateway. + * 2-letter ISO 3166 country code of the card acceptor location. > This parameter is required for the merchants who don't use Adyen as the payment authorisation gateway. + * @return countryCode 2-letter ISO 3166 country code of the card acceptor location. > This parameter is required for the merchants who don't use Adyen as the payment authorisation gateway. */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,12 +68,9 @@ public String getCountryCode() { } /** - * 2-letter ISO 3166 country code of the card acceptor location. > This parameter is required - * for the merchants who don't use Adyen as the payment authorisation gateway. + * 2-letter ISO 3166 country code of the card acceptor location. > This parameter is required for the merchants who don't use Adyen as the payment authorisation gateway. * - * @param countryCode 2-letter ISO 3166 country code of the card acceptor location. > This - * parameter is required for the merchants who don't use Adyen as the payment - * authorisation gateway. + * @param countryCode 2-letter ISO 3166 country code of the card acceptor location. > This parameter is required for the merchants who don't use Adyen as the payment authorisation gateway. */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,8 +81,7 @@ public void setCountryCode(String countryCode) { /** * If true, indicates that the merchant is enrolled in 3D Secure for the card network. * - * @param enrolledIn3DSecure If true, indicates that the merchant is enrolled in 3D Secure for the - * card network. + * @param enrolledIn3DSecure If true, indicates that the merchant is enrolled in 3D Secure for the card network. * @return the current {@code MerchantDetails} instance, allowing for method chaining */ public MerchantDetails enrolledIn3DSecure(Boolean enrolledIn3DSecure) { @@ -91,9 +91,7 @@ public MerchantDetails enrolledIn3DSecure(Boolean enrolledIn3DSecure) { /** * If true, indicates that the merchant is enrolled in 3D Secure for the card network. - * - * @return enrolledIn3DSecure If true, indicates that the merchant is enrolled in 3D Secure for - * the card network. + * @return enrolledIn3DSecure If true, indicates that the merchant is enrolled in 3D Secure for the card network. */ @JsonProperty(JSON_PROPERTY_ENROLLED_IN3_D_SECURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,8 +102,7 @@ public Boolean getEnrolledIn3DSecure() { /** * If true, indicates that the merchant is enrolled in 3D Secure for the card network. * - * @param enrolledIn3DSecure If true, indicates that the merchant is enrolled in 3D Secure for the - * card network. + * @param enrolledIn3DSecure If true, indicates that the merchant is enrolled in 3D Secure for the card network. */ @JsonProperty(JSON_PROPERTY_ENROLLED_IN3_D_SECURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,14 +111,9 @@ public void setEnrolledIn3DSecure(Boolean enrolledIn3DSecure) { } /** - * The merchant category code (MCC) is a four-digit number which relates to a particular market - * segment. This code reflects the predominant activity that is conducted by the merchant. The - * list of MCCs can be found [here](https://en.wikipedia.org/wiki/Merchant_category_code). + * The merchant category code (MCC) is a four-digit number which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. The list of MCCs can be found [here](https://en.wikipedia.org/wiki/Merchant_category_code). * - * @param mcc The merchant category code (MCC) is a four-digit number which relates to a - * particular market segment. This code reflects the predominant activity that is conducted by - * the merchant. The list of MCCs can be found - * [here](https://en.wikipedia.org/wiki/Merchant_category_code). + * @param mcc The merchant category code (MCC) is a four-digit number which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. The list of MCCs can be found [here](https://en.wikipedia.org/wiki/Merchant_category_code). * @return the current {@code MerchantDetails} instance, allowing for method chaining */ public MerchantDetails mcc(String mcc) { @@ -130,14 +122,8 @@ public MerchantDetails mcc(String mcc) { } /** - * The merchant category code (MCC) is a four-digit number which relates to a particular market - * segment. This code reflects the predominant activity that is conducted by the merchant. The - * list of MCCs can be found [here](https://en.wikipedia.org/wiki/Merchant_category_code). - * - * @return mcc The merchant category code (MCC) is a four-digit number which relates to a - * particular market segment. This code reflects the predominant activity that is conducted by - * the merchant. The list of MCCs can be found - * [here](https://en.wikipedia.org/wiki/Merchant_category_code). + * The merchant category code (MCC) is a four-digit number which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. The list of MCCs can be found [here](https://en.wikipedia.org/wiki/Merchant_category_code). + * @return mcc The merchant category code (MCC) is a four-digit number which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. The list of MCCs can be found [here](https://en.wikipedia.org/wiki/Merchant_category_code). */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,14 +132,9 @@ public String getMcc() { } /** - * The merchant category code (MCC) is a four-digit number which relates to a particular market - * segment. This code reflects the predominant activity that is conducted by the merchant. The - * list of MCCs can be found [here](https://en.wikipedia.org/wiki/Merchant_category_code). + * The merchant category code (MCC) is a four-digit number which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. The list of MCCs can be found [here](https://en.wikipedia.org/wiki/Merchant_category_code). * - * @param mcc The merchant category code (MCC) is a four-digit number which relates to a - * particular market segment. This code reflects the predominant activity that is conducted by - * the merchant. The list of MCCs can be found - * [here](https://en.wikipedia.org/wiki/Merchant_category_code). + * @param mcc The merchant category code (MCC) is a four-digit number which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. The list of MCCs can be found [here](https://en.wikipedia.org/wiki/Merchant_category_code). */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,7 +142,9 @@ public void setMcc(String mcc) { this.mcc = mcc; } - /** Return true if this MerchantDetails object is equal to o. */ + /** + * Return true if this MerchantDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -171,9 +154,9 @@ public boolean equals(Object o) { return false; } MerchantDetails merchantDetails = (MerchantDetails) o; - return Objects.equals(this.countryCode, merchantDetails.countryCode) - && Objects.equals(this.enrolledIn3DSecure, merchantDetails.enrolledIn3DSecure) - && Objects.equals(this.mcc, merchantDetails.mcc); + return Objects.equals(this.countryCode, merchantDetails.countryCode) && + Objects.equals(this.enrolledIn3DSecure, merchantDetails.enrolledIn3DSecure) && + Objects.equals(this.mcc, merchantDetails.mcc); } @Override @@ -193,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -202,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of MerchantDetails given an JSON string * * @param jsonString JSON string @@ -212,12 +196,11 @@ private String toIndentedString(Object o) { public static MerchantDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MerchantDetails.class); } - - /** - * Convert an instance of MerchantDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of MerchantDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/binlookup/Recurring.java b/src/main/java/com/adyen/model/binlookup/Recurring.java index 6e8b4f2c8..0a6a5f026 100644 --- a/src/main/java/com/adyen/model/binlookup/Recurring.java +++ b/src/main/java/com/adyen/model/binlookup/Recurring.java @@ -2,27 +2,32 @@ * Adyen BinLookup API * * The version of the OpenAPI document: 54 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.binlookup; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** Recurring */ +/** + * Recurring + */ @JsonPropertyOrder({ Recurring.JSON_PROPERTY_CONTRACT, Recurring.JSON_PROPERTY_RECURRING_DETAIL_NAME, @@ -30,20 +35,13 @@ Recurring.JSON_PROPERTY_RECURRING_FREQUENCY, Recurring.JSON_PROPERTY_TOKEN_SERVICE }) + public class Recurring { /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment - * details can be used to initiate a one-click payment, where the shopper enters the [card - * security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a - * payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). */ public enum ContractEnum { + ONECLICK(String.valueOf("ONECLICK")), RECURRING(String.valueOf("RECURRING")), @@ -55,7 +53,7 @@ public enum ContractEnum { private String value; ContractEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -76,11 +74,7 @@ public static ContractEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ContractEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ContractEnum.values())); + LOG.warning("ContractEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ContractEnum.values())); return null; } } @@ -97,8 +91,11 @@ public static ContractEnum fromValue(String value) { public static final String JSON_PROPERTY_RECURRING_FREQUENCY = "recurringFrequency"; private String recurringFrequency; - /** The name of the token service. */ + /** + * The name of the token service. + */ public enum TokenServiceEnum { + VISATOKENSERVICE(String.valueOf("VISATOKENSERVICE")), MCTOKENSERVICE(String.valueOf("MCTOKENSERVICE")), @@ -112,7 +109,7 @@ public enum TokenServiceEnum { private String value; TokenServiceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -133,11 +130,7 @@ public static TokenServiceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TokenServiceEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TokenServiceEnum.values())); + LOG.warning("TokenServiceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TokenServiceEnum.values())); return null; } } @@ -145,30 +138,13 @@ public static TokenServiceEnum fromValue(String value) { public static final String JSON_PROPERTY_TOKEN_SERVICE = "tokenService"; private TokenServiceEnum tokenService; - public Recurring() {} + public Recurring() { + } /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment - * details can be used to initiate a one-click payment, where the shopper enters the [card - * security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a - * payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). * - * @param contract The type of recurring contract to be used. Possible values: * - * `ONECLICK` – Payment details can be used to initiate a one-click payment, where - * the shopper enters the [card security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make - * a payout](https://docs.adyen.com/online-payments/online-payouts). + * @param contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). * @return the current {@code Recurring} instance, allowing for method chaining */ public Recurring contract(ContractEnum contract) { @@ -177,27 +153,8 @@ public Recurring contract(ContractEnum contract) { } /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment - * details can be used to initiate a one-click payment, where the shopper enters the [card - * security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a - * payout](https://docs.adyen.com/online-payments/online-payouts). - * - * @return contract The type of recurring contract to be used. Possible values: * - * `ONECLICK` – Payment details can be used to initiate a one-click payment, where - * the shopper enters the [card security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make - * a payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * @return contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). */ @JsonProperty(JSON_PROPERTY_CONTRACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -206,27 +163,9 @@ public ContractEnum getContract() { } /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment - * details can be used to initiate a one-click payment, where the shopper enters the [card - * security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a - * payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). * - * @param contract The type of recurring contract to be used. Possible values: * - * `ONECLICK` – Payment details can be used to initiate a one-click payment, where - * the shopper enters the [card security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make - * a payout](https://docs.adyen.com/online-payments/online-payouts). + * @param contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). */ @JsonProperty(JSON_PROPERTY_CONTRACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -247,7 +186,6 @@ public Recurring recurringDetailName(String recurringDetailName) { /** * A descriptive name for this detail. - * * @return recurringDetailName A descriptive name for this detail. */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_NAME) @@ -270,8 +208,7 @@ public void setRecurringDetailName(String recurringDetailName) { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. * - * @param recurringExpiry Date after which no further authorisations shall be performed. Only for - * 3D Secure 2. + * @param recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. * @return the current {@code Recurring} instance, allowing for method chaining */ public Recurring recurringExpiry(OffsetDateTime recurringExpiry) { @@ -281,9 +218,7 @@ public Recurring recurringExpiry(OffsetDateTime recurringExpiry) { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. - * - * @return recurringExpiry Date after which no further authorisations shall be performed. Only for - * 3D Secure 2. + * @return recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -294,8 +229,7 @@ public OffsetDateTime getRecurringExpiry() { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. * - * @param recurringExpiry Date after which no further authorisations shall be performed. Only for - * 3D Secure 2. + * @param recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -316,7 +250,6 @@ public Recurring recurringFrequency(String recurringFrequency) { /** * Minimum number of days between authorisations. Only for 3D Secure 2. - * * @return recurringFrequency Minimum number of days between authorisations. Only for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY) @@ -349,7 +282,6 @@ public Recurring tokenService(TokenServiceEnum tokenService) { /** * The name of the token service. - * * @return tokenService The name of the token service. */ @JsonProperty(JSON_PROPERTY_TOKEN_SERVICE) @@ -369,7 +301,9 @@ public void setTokenService(TokenServiceEnum tokenService) { this.tokenService = tokenService; } - /** Return true if this Recurring object is equal to o. */ + /** + * Return true if this Recurring object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -379,17 +313,16 @@ public boolean equals(Object o) { return false; } Recurring recurring = (Recurring) o; - return Objects.equals(this.contract, recurring.contract) - && Objects.equals(this.recurringDetailName, recurring.recurringDetailName) - && Objects.equals(this.recurringExpiry, recurring.recurringExpiry) - && Objects.equals(this.recurringFrequency, recurring.recurringFrequency) - && Objects.equals(this.tokenService, recurring.tokenService); + return Objects.equals(this.contract, recurring.contract) && + Objects.equals(this.recurringDetailName, recurring.recurringDetailName) && + Objects.equals(this.recurringExpiry, recurring.recurringExpiry) && + Objects.equals(this.recurringFrequency, recurring.recurringFrequency) && + Objects.equals(this.tokenService, recurring.tokenService); } @Override public int hashCode() { - return Objects.hash( - contract, recurringDetailName, recurringExpiry, recurringFrequency, tokenService); + return Objects.hash(contract, recurringDetailName, recurringExpiry, recurringFrequency, tokenService); } @Override @@ -397,9 +330,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Recurring {\n"); sb.append(" contract: ").append(toIndentedString(contract)).append("\n"); - sb.append(" recurringDetailName: ") - .append(toIndentedString(recurringDetailName)) - .append("\n"); + sb.append(" recurringDetailName: ").append(toIndentedString(recurringDetailName)).append("\n"); sb.append(" recurringExpiry: ").append(toIndentedString(recurringExpiry)).append("\n"); sb.append(" recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n"); sb.append(" tokenService: ").append(toIndentedString(tokenService)).append("\n"); @@ -408,7 +339,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -417,7 +349,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Recurring given an JSON string * * @param jsonString JSON string @@ -427,12 +359,11 @@ private String toIndentedString(Object o) { public static Recurring fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Recurring.class); } - - /** - * Convert an instance of Recurring to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Recurring to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/binlookup/ServiceError.java b/src/main/java/com/adyen/model/binlookup/ServiceError.java index 287ed2970..e2364938b 100644 --- a/src/main/java/com/adyen/model/binlookup/ServiceError.java +++ b/src/main/java/com/adyen/model/binlookup/ServiceError.java @@ -2,24 +2,33 @@ * Adyen BinLookup API * * The version of the OpenAPI document: 54 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.binlookup; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ServiceError */ +/** + * ServiceError + */ @JsonPropertyOrder({ ServiceError.JSON_PROPERTY_ADDITIONAL_DATA, ServiceError.JSON_PROPERTY_ERROR_CODE, @@ -28,6 +37,7 @@ ServiceError.JSON_PROPERTY_PSP_REFERENCE, ServiceError.JSON_PROPERTY_STATUS }) + public class ServiceError { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -47,15 +57,13 @@ public class ServiceError { public static final String JSON_PROPERTY_STATUS = "status"; private Integer status; - public ServiceError() {} + public ServiceError() { + } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first. Go to **Customer Area** > **Developers** > - * **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. * @return the current {@code ServiceError} instance, allowing for method chaining */ public ServiceError additionalData(Map additionalData) { @@ -72,12 +80,8 @@ public ServiceError putAdditionalDataItem(String key, String additionalDataItem) } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first. Go to **Customer Area** > **Developers** > **Additional data**. - * - * @return additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first. Go to **Customer Area** > **Developers** > - * **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * @return additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -86,12 +90,9 @@ public Map getAdditionalData() { } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first. Go to **Customer Area** > **Developers** > - * **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,7 +113,6 @@ public ServiceError errorCode(String errorCode) { /** * The error code mapped to the error message. - * * @return errorCode The error code mapped to the error message. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -145,7 +145,6 @@ public ServiceError errorType(String errorType) { /** * The category of the error. - * * @return errorType The category of the error. */ @JsonProperty(JSON_PROPERTY_ERROR_TYPE) @@ -178,7 +177,6 @@ public ServiceError message(String message) { /** * A short explanation of the issue. - * * @return message A short explanation of the issue. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -211,7 +209,6 @@ public ServiceError pspReference(String pspReference) { /** * The PSP reference of the payment. - * * @return pspReference The PSP reference of the payment. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -244,7 +241,6 @@ public ServiceError status(Integer status) { /** * The HTTP response status. - * * @return status The HTTP response status. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -264,7 +260,9 @@ public void setStatus(Integer status) { this.status = status; } - /** Return true if this ServiceError object is equal to o. */ + /** + * Return true if this ServiceError object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -274,12 +272,12 @@ public boolean equals(Object o) { return false; } ServiceError serviceError = (ServiceError) o; - return Objects.equals(this.additionalData, serviceError.additionalData) - && Objects.equals(this.errorCode, serviceError.errorCode) - && Objects.equals(this.errorType, serviceError.errorType) - && Objects.equals(this.message, serviceError.message) - && Objects.equals(this.pspReference, serviceError.pspReference) - && Objects.equals(this.status, serviceError.status); + return Objects.equals(this.additionalData, serviceError.additionalData) && + Objects.equals(this.errorCode, serviceError.errorCode) && + Objects.equals(this.errorType, serviceError.errorType) && + Objects.equals(this.message, serviceError.message) && + Objects.equals(this.pspReference, serviceError.pspReference) && + Objects.equals(this.status, serviceError.status); } @Override @@ -302,7 +300,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -311,7 +310,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ServiceError given an JSON string * * @param jsonString JSON string @@ -321,12 +320,11 @@ private String toIndentedString(Object o) { public static ServiceError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } - - /** - * Convert an instance of ServiceError to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ServiceError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/binlookup/ThreeDS2CardRangeDetail.java b/src/main/java/com/adyen/model/binlookup/ThreeDS2CardRangeDetail.java index 4da57d9ad..eed1a2072 100644 --- a/src/main/java/com/adyen/model/binlookup/ThreeDS2CardRangeDetail.java +++ b/src/main/java/com/adyen/model/binlookup/ThreeDS2CardRangeDetail.java @@ -2,24 +2,33 @@ * Adyen BinLookup API * * The version of the OpenAPI document: 54 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.binlookup; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ThreeDS2CardRangeDetail */ +/** + * ThreeDS2CardRangeDetail + */ @JsonPropertyOrder({ ThreeDS2CardRangeDetail.JSON_PROPERTY_ACS_INFO_IND, ThreeDS2CardRangeDetail.JSON_PROPERTY_BRAND_CODE, @@ -28,6 +37,7 @@ ThreeDS2CardRangeDetail.JSON_PROPERTY_THREE_D_S2_VERSIONS, ThreeDS2CardRangeDetail.JSON_PROPERTY_THREE_D_S_METHOD_U_R_L }) + public class ThreeDS2CardRangeDetail { public static final String JSON_PROPERTY_ACS_INFO_IND = "acsInfoInd"; private List acsInfoInd; @@ -47,16 +57,13 @@ public class ThreeDS2CardRangeDetail { public static final String JSON_PROPERTY_THREE_D_S_METHOD_U_R_L = "threeDSMethodURL"; private String threeDSMethodURL; - public ThreeDS2CardRangeDetail() {} + public ThreeDS2CardRangeDetail() { + } /** - * Provides additional information to the 3DS Server. Possible values: - 01 (Authentication is - * available at ACS) - 02 (Attempts supported by ACS or DS) - 03 (Decoupled authentication - * supported) - 04 (Whitelisting supported) + * Provides additional information to the 3DS Server. Possible values: - 01 (Authentication is available at ACS) - 02 (Attempts supported by ACS or DS) - 03 (Decoupled authentication supported) - 04 (Whitelisting supported) * - * @param acsInfoInd Provides additional information to the 3DS Server. Possible values: - 01 - * (Authentication is available at ACS) - 02 (Attempts supported by ACS or DS) - 03 (Decoupled - * authentication supported) - 04 (Whitelisting supported) + * @param acsInfoInd Provides additional information to the 3DS Server. Possible values: - 01 (Authentication is available at ACS) - 02 (Attempts supported by ACS or DS) - 03 (Decoupled authentication supported) - 04 (Whitelisting supported) * @return the current {@code ThreeDS2CardRangeDetail} instance, allowing for method chaining */ public ThreeDS2CardRangeDetail acsInfoInd(List acsInfoInd) { @@ -73,13 +80,8 @@ public ThreeDS2CardRangeDetail addAcsInfoIndItem(String acsInfoIndItem) { } /** - * Provides additional information to the 3DS Server. Possible values: - 01 (Authentication is - * available at ACS) - 02 (Attempts supported by ACS or DS) - 03 (Decoupled authentication - * supported) - 04 (Whitelisting supported) - * - * @return acsInfoInd Provides additional information to the 3DS Server. Possible values: - 01 - * (Authentication is available at ACS) - 02 (Attempts supported by ACS or DS) - 03 (Decoupled - * authentication supported) - 04 (Whitelisting supported) + * Provides additional information to the 3DS Server. Possible values: - 01 (Authentication is available at ACS) - 02 (Attempts supported by ACS or DS) - 03 (Decoupled authentication supported) - 04 (Whitelisting supported) + * @return acsInfoInd Provides additional information to the 3DS Server. Possible values: - 01 (Authentication is available at ACS) - 02 (Attempts supported by ACS or DS) - 03 (Decoupled authentication supported) - 04 (Whitelisting supported) */ @JsonProperty(JSON_PROPERTY_ACS_INFO_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -88,13 +90,9 @@ public List getAcsInfoInd() { } /** - * Provides additional information to the 3DS Server. Possible values: - 01 (Authentication is - * available at ACS) - 02 (Attempts supported by ACS or DS) - 03 (Decoupled authentication - * supported) - 04 (Whitelisting supported) + * Provides additional information to the 3DS Server. Possible values: - 01 (Authentication is available at ACS) - 02 (Attempts supported by ACS or DS) - 03 (Decoupled authentication supported) - 04 (Whitelisting supported) * - * @param acsInfoInd Provides additional information to the 3DS Server. Possible values: - 01 - * (Authentication is available at ACS) - 02 (Attempts supported by ACS or DS) - 03 (Decoupled - * authentication supported) - 04 (Whitelisting supported) + * @param acsInfoInd Provides additional information to the 3DS Server. Possible values: - 01 (Authentication is available at ACS) - 02 (Attempts supported by ACS or DS) - 03 (Decoupled authentication supported) - 04 (Whitelisting supported) */ @JsonProperty(JSON_PROPERTY_ACS_INFO_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,7 +113,6 @@ public ThreeDS2CardRangeDetail brandCode(String brandCode) { /** * Card brand. - * * @return brandCode Card brand. */ @JsonProperty(JSON_PROPERTY_BRAND_CODE) @@ -148,7 +145,6 @@ public ThreeDS2CardRangeDetail endRange(String endRange) { /** * BIN end range. - * * @return endRange BIN end range. */ @JsonProperty(JSON_PROPERTY_END_RANGE) @@ -181,7 +177,6 @@ public ThreeDS2CardRangeDetail startRange(String startRange) { /** * BIN start range. - * * @return startRange BIN start range. */ @JsonProperty(JSON_PROPERTY_START_RANGE) @@ -222,7 +217,6 @@ public ThreeDS2CardRangeDetail addThreeDS2VersionsItem(String threeDS2VersionsIt /** * Supported 3D Secure protocol versions - * * @return threeDS2Versions Supported 3D Secure protocol versions */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_VERSIONS) @@ -243,11 +237,9 @@ public void setThreeDS2Versions(List threeDS2Versions) { } /** - * In a 3D Secure 2 browser-based flow, this is the URL where you should send the device - * fingerprint to. + * In a 3D Secure 2 browser-based flow, this is the URL where you should send the device fingerprint to. * - * @param threeDSMethodURL In a 3D Secure 2 browser-based flow, this is the URL where you should - * send the device fingerprint to. + * @param threeDSMethodURL In a 3D Secure 2 browser-based flow, this is the URL where you should send the device fingerprint to. * @return the current {@code ThreeDS2CardRangeDetail} instance, allowing for method chaining */ public ThreeDS2CardRangeDetail threeDSMethodURL(String threeDSMethodURL) { @@ -256,11 +248,8 @@ public ThreeDS2CardRangeDetail threeDSMethodURL(String threeDSMethodURL) { } /** - * In a 3D Secure 2 browser-based flow, this is the URL where you should send the device - * fingerprint to. - * - * @return threeDSMethodURL In a 3D Secure 2 browser-based flow, this is the URL where you should - * send the device fingerprint to. + * In a 3D Secure 2 browser-based flow, this is the URL where you should send the device fingerprint to. + * @return threeDSMethodURL In a 3D Secure 2 browser-based flow, this is the URL where you should send the device fingerprint to. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_METHOD_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -269,11 +258,9 @@ public String getThreeDSMethodURL() { } /** - * In a 3D Secure 2 browser-based flow, this is the URL where you should send the device - * fingerprint to. + * In a 3D Secure 2 browser-based flow, this is the URL where you should send the device fingerprint to. * - * @param threeDSMethodURL In a 3D Secure 2 browser-based flow, this is the URL where you should - * send the device fingerprint to. + * @param threeDSMethodURL In a 3D Secure 2 browser-based flow, this is the URL where you should send the device fingerprint to. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_METHOD_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -281,7 +268,9 @@ public void setThreeDSMethodURL(String threeDSMethodURL) { this.threeDSMethodURL = threeDSMethodURL; } - /** Return true if this ThreeDS2CardRangeDetail object is equal to o. */ + /** + * Return true if this ThreeDS2CardRangeDetail object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -291,18 +280,17 @@ public boolean equals(Object o) { return false; } ThreeDS2CardRangeDetail threeDS2CardRangeDetail = (ThreeDS2CardRangeDetail) o; - return Objects.equals(this.acsInfoInd, threeDS2CardRangeDetail.acsInfoInd) - && Objects.equals(this.brandCode, threeDS2CardRangeDetail.brandCode) - && Objects.equals(this.endRange, threeDS2CardRangeDetail.endRange) - && Objects.equals(this.startRange, threeDS2CardRangeDetail.startRange) - && Objects.equals(this.threeDS2Versions, threeDS2CardRangeDetail.threeDS2Versions) - && Objects.equals(this.threeDSMethodURL, threeDS2CardRangeDetail.threeDSMethodURL); + return Objects.equals(this.acsInfoInd, threeDS2CardRangeDetail.acsInfoInd) && + Objects.equals(this.brandCode, threeDS2CardRangeDetail.brandCode) && + Objects.equals(this.endRange, threeDS2CardRangeDetail.endRange) && + Objects.equals(this.startRange, threeDS2CardRangeDetail.startRange) && + Objects.equals(this.threeDS2Versions, threeDS2CardRangeDetail.threeDS2Versions) && + Objects.equals(this.threeDSMethodURL, threeDS2CardRangeDetail.threeDSMethodURL); } @Override public int hashCode() { - return Objects.hash( - acsInfoInd, brandCode, endRange, startRange, threeDS2Versions, threeDSMethodURL); + return Objects.hash(acsInfoInd, brandCode, endRange, startRange, threeDS2Versions, threeDSMethodURL); } @Override @@ -320,7 +308,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -329,23 +318,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ThreeDS2CardRangeDetail given an JSON string * * @param jsonString JSON string * @return An instance of ThreeDS2CardRangeDetail - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ThreeDS2CardRangeDetail + * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDS2CardRangeDetail */ public static ThreeDS2CardRangeDetail fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDS2CardRangeDetail.class); } - - /** - * Convert an instance of ThreeDS2CardRangeDetail to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ThreeDS2CardRangeDetail to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/binlookup/ThreeDSAvailabilityRequest.java b/src/main/java/com/adyen/model/binlookup/ThreeDSAvailabilityRequest.java index 5f9adbbf1..8e2f16180 100644 --- a/src/main/java/com/adyen/model/binlookup/ThreeDSAvailabilityRequest.java +++ b/src/main/java/com/adyen/model/binlookup/ThreeDSAvailabilityRequest.java @@ -2,26 +2,35 @@ * Adyen BinLookup API * * The version of the OpenAPI document: 54 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.binlookup; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ThreeDSAvailabilityRequest */ +/** + * ThreeDSAvailabilityRequest + */ @JsonPropertyOrder({ ThreeDSAvailabilityRequest.JSON_PROPERTY_ADDITIONAL_DATA, ThreeDSAvailabilityRequest.JSON_PROPERTY_BRANDS, @@ -30,6 +39,7 @@ ThreeDSAvailabilityRequest.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, ThreeDSAvailabilityRequest.JSON_PROPERTY_SHOPPER_REFERENCE }) + public class ThreeDSAvailabilityRequest { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -49,16 +59,13 @@ public class ThreeDSAvailabilityRequest { public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference"; private String shopperReference; - public ThreeDSAvailabilityRequest() {} + public ThreeDSAvailabilityRequest() { + } /** - * This field contains additional data, which may be required for a particular request. The - * `additionalData` object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular request. The `additionalData` object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular request. The `additionalData` object consists of entries, each of - * which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a particular request. The `additionalData` object consists of entries, each of which includes the key and value. * @return the current {@code ThreeDSAvailabilityRequest} instance, allowing for method chaining */ public ThreeDSAvailabilityRequest additionalData(Map additionalData) { @@ -75,13 +82,8 @@ public ThreeDSAvailabilityRequest putAdditionalDataItem(String key, String addit } /** - * This field contains additional data, which may be required for a particular request. The - * `additionalData` object consists of entries, each of which includes the key and - * value. - * - * @return additionalData This field contains additional data, which may be required for a - * particular request. The `additionalData` object consists of entries, each of - * which includes the key and value. + * This field contains additional data, which may be required for a particular request. The `additionalData` object consists of entries, each of which includes the key and value. + * @return additionalData This field contains additional data, which may be required for a particular request. The `additionalData` object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -90,13 +92,9 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular request. The - * `additionalData` object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular request. The `additionalData` object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular request. The `additionalData` object consists of entries, each of - * which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a particular request. The `additionalData` object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,7 +123,6 @@ public ThreeDSAvailabilityRequest addBrandsItem(String brandsItem) { /** * List of brands. - * * @return brands List of brands. */ @JsonProperty(JSON_PROPERTY_BRANDS) @@ -158,7 +155,6 @@ public ThreeDSAvailabilityRequest cardNumber(String cardNumber) { /** * Card number or BIN. - * * @return cardNumber Card number or BIN. */ @JsonProperty(JSON_PROPERTY_CARD_NUMBER) @@ -191,7 +187,6 @@ public ThreeDSAvailabilityRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier. - * * @return merchantAccount The merchant account identifier. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -224,7 +219,6 @@ public ThreeDSAvailabilityRequest recurringDetailReference(String recurringDetai /** * A recurring detail reference corresponding to a card. - * * @return recurringDetailReference A recurring detail reference corresponding to a card. */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -247,8 +241,7 @@ public void setRecurringDetailReference(String recurringDetailReference) { /** * The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). * - * @param shopperReference The shopper's reference to uniquely identify this shopper (e.g. - * user ID or account ID). + * @param shopperReference The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). * @return the current {@code ThreeDSAvailabilityRequest} instance, allowing for method chaining */ public ThreeDSAvailabilityRequest shopperReference(String shopperReference) { @@ -258,9 +251,7 @@ public ThreeDSAvailabilityRequest shopperReference(String shopperReference) { /** * The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). - * - * @return shopperReference The shopper's reference to uniquely identify this shopper (e.g. - * user ID or account ID). + * @return shopperReference The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -271,8 +262,7 @@ public String getShopperReference() { /** * The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). * - * @param shopperReference The shopper's reference to uniquely identify this shopper (e.g. - * user ID or account ID). + * @param shopperReference The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -280,7 +270,9 @@ public void setShopperReference(String shopperReference) { this.shopperReference = shopperReference; } - /** Return true if this ThreeDSAvailabilityRequest object is equal to o. */ + /** + * Return true if this ThreeDSAvailabilityRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -290,24 +282,17 @@ public boolean equals(Object o) { return false; } ThreeDSAvailabilityRequest threeDSAvailabilityRequest = (ThreeDSAvailabilityRequest) o; - return Objects.equals(this.additionalData, threeDSAvailabilityRequest.additionalData) - && Objects.equals(this.brands, threeDSAvailabilityRequest.brands) - && Objects.equals(this.cardNumber, threeDSAvailabilityRequest.cardNumber) - && Objects.equals(this.merchantAccount, threeDSAvailabilityRequest.merchantAccount) - && Objects.equals( - this.recurringDetailReference, threeDSAvailabilityRequest.recurringDetailReference) - && Objects.equals(this.shopperReference, threeDSAvailabilityRequest.shopperReference); + return Objects.equals(this.additionalData, threeDSAvailabilityRequest.additionalData) && + Objects.equals(this.brands, threeDSAvailabilityRequest.brands) && + Objects.equals(this.cardNumber, threeDSAvailabilityRequest.cardNumber) && + Objects.equals(this.merchantAccount, threeDSAvailabilityRequest.merchantAccount) && + Objects.equals(this.recurringDetailReference, threeDSAvailabilityRequest.recurringDetailReference) && + Objects.equals(this.shopperReference, threeDSAvailabilityRequest.shopperReference); } @Override public int hashCode() { - return Objects.hash( - additionalData, - brands, - cardNumber, - merchantAccount, - recurringDetailReference, - shopperReference); + return Objects.hash(additionalData, brands, cardNumber, merchantAccount, recurringDetailReference, shopperReference); } @Override @@ -318,16 +303,15 @@ public String toString() { sb.append(" brands: ").append(toIndentedString(brands)).append("\n"); sb.append(" cardNumber: ").append(toIndentedString(cardNumber)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -336,24 +320,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ThreeDSAvailabilityRequest given an JSON string * * @param jsonString JSON string * @return An instance of ThreeDSAvailabilityRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ThreeDSAvailabilityRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDSAvailabilityRequest */ - public static ThreeDSAvailabilityRequest fromJson(String jsonString) - throws JsonProcessingException { + public static ThreeDSAvailabilityRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDSAvailabilityRequest.class); } - - /** - * Convert an instance of ThreeDSAvailabilityRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ThreeDSAvailabilityRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/binlookup/ThreeDSAvailabilityResponse.java b/src/main/java/com/adyen/model/binlookup/ThreeDSAvailabilityResponse.java index 0192d75a3..1662731a6 100644 --- a/src/main/java/com/adyen/model/binlookup/ThreeDSAvailabilityResponse.java +++ b/src/main/java/com/adyen/model/binlookup/ThreeDSAvailabilityResponse.java @@ -2,24 +2,36 @@ * Adyen BinLookup API * * The version of the OpenAPI document: 54 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.binlookup; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.binlookup.BinDetail; +import com.adyen.model.binlookup.DSPublicKeyDetail; +import com.adyen.model.binlookup.ThreeDS2CardRangeDetail; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ThreeDSAvailabilityResponse */ +/** + * ThreeDSAvailabilityResponse + */ @JsonPropertyOrder({ ThreeDSAvailabilityResponse.JSON_PROPERTY_BIN_DETAILS, ThreeDSAvailabilityResponse.JSON_PROPERTY_DS_PUBLIC_KEYS, @@ -27,6 +39,7 @@ ThreeDSAvailabilityResponse.JSON_PROPERTY_THREE_D_S2_CARD_RANGE_DETAILS, ThreeDSAvailabilityResponse.JSON_PROPERTY_THREE_D_S2SUPPORTED }) + public class ThreeDSAvailabilityResponse { public static final String JSON_PROPERTY_BIN_DETAILS = "binDetails"; private BinDetail binDetails; @@ -37,19 +50,19 @@ public class ThreeDSAvailabilityResponse { public static final String JSON_PROPERTY_THREE_D_S1_SUPPORTED = "threeDS1Supported"; private Boolean threeDS1Supported; - public static final String JSON_PROPERTY_THREE_D_S2_CARD_RANGE_DETAILS = - "threeDS2CardRangeDetails"; + public static final String JSON_PROPERTY_THREE_D_S2_CARD_RANGE_DETAILS = "threeDS2CardRangeDetails"; private List threeDS2CardRangeDetails; public static final String JSON_PROPERTY_THREE_D_S2SUPPORTED = "threeDS2supported"; private Boolean threeDS2supported; - public ThreeDSAvailabilityResponse() {} + public ThreeDSAvailabilityResponse() { + } /** * binDetails * - * @param binDetails + * @param binDetails * @return the current {@code ThreeDSAvailabilityResponse} instance, allowing for method chaining */ public ThreeDSAvailabilityResponse binDetails(BinDetail binDetails) { @@ -59,8 +72,7 @@ public ThreeDSAvailabilityResponse binDetails(BinDetail binDetails) { /** * Get binDetails - * - * @return binDetails + * @return binDetails */ @JsonProperty(JSON_PROPERTY_BIN_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,7 +83,7 @@ public BinDetail getBinDetails() { /** * binDetails * - * @param binDetails + * @param binDetails */ @JsonProperty(JSON_PROPERTY_BIN_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,7 +112,6 @@ public ThreeDSAvailabilityResponse addDsPublicKeysItem(DSPublicKeyDetail dsPubli /** * List of Directory Server (DS) public keys. - * * @return dsPublicKeys List of Directory Server (DS) public keys. */ @JsonProperty(JSON_PROPERTY_DS_PUBLIC_KEYS) @@ -133,7 +144,6 @@ public ThreeDSAvailabilityResponse threeDS1Supported(Boolean threeDS1Supported) /** * Indicator if 3D Secure 1 is supported. - * * @return threeDS1Supported Indicator if 3D Secure 1 is supported. */ @JsonProperty(JSON_PROPERTY_THREE_D_S1_SUPPORTED) @@ -159,14 +169,12 @@ public void setThreeDS1Supported(Boolean threeDS1Supported) { * @param threeDS2CardRangeDetails List of brand and card range pairs. * @return the current {@code ThreeDSAvailabilityResponse} instance, allowing for method chaining */ - public ThreeDSAvailabilityResponse threeDS2CardRangeDetails( - List threeDS2CardRangeDetails) { + public ThreeDSAvailabilityResponse threeDS2CardRangeDetails(List threeDS2CardRangeDetails) { this.threeDS2CardRangeDetails = threeDS2CardRangeDetails; return this; } - public ThreeDSAvailabilityResponse addThreeDS2CardRangeDetailsItem( - ThreeDS2CardRangeDetail threeDS2CardRangeDetailsItem) { + public ThreeDSAvailabilityResponse addThreeDS2CardRangeDetailsItem(ThreeDS2CardRangeDetail threeDS2CardRangeDetailsItem) { if (this.threeDS2CardRangeDetails == null) { this.threeDS2CardRangeDetails = new ArrayList<>(); } @@ -176,7 +184,6 @@ public ThreeDSAvailabilityResponse addThreeDS2CardRangeDetailsItem( /** * List of brand and card range pairs. - * * @return threeDS2CardRangeDetails List of brand and card range pairs. */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_CARD_RANGE_DETAILS) @@ -209,7 +216,6 @@ public ThreeDSAvailabilityResponse threeDS2supported(Boolean threeDS2supported) /** * Indicator if 3D Secure 2 is supported. - * * @return threeDS2supported Indicator if 3D Secure 2 is supported. */ @JsonProperty(JSON_PROPERTY_THREE_D_S2SUPPORTED) @@ -229,7 +235,9 @@ public void setThreeDS2supported(Boolean threeDS2supported) { this.threeDS2supported = threeDS2supported; } - /** Return true if this ThreeDSAvailabilityResponse object is equal to o. */ + /** + * Return true if this ThreeDSAvailabilityResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -239,18 +247,16 @@ public boolean equals(Object o) { return false; } ThreeDSAvailabilityResponse threeDSAvailabilityResponse = (ThreeDSAvailabilityResponse) o; - return Objects.equals(this.binDetails, threeDSAvailabilityResponse.binDetails) - && Objects.equals(this.dsPublicKeys, threeDSAvailabilityResponse.dsPublicKeys) - && Objects.equals(this.threeDS1Supported, threeDSAvailabilityResponse.threeDS1Supported) - && Objects.equals( - this.threeDS2CardRangeDetails, threeDSAvailabilityResponse.threeDS2CardRangeDetails) - && Objects.equals(this.threeDS2supported, threeDSAvailabilityResponse.threeDS2supported); + return Objects.equals(this.binDetails, threeDSAvailabilityResponse.binDetails) && + Objects.equals(this.dsPublicKeys, threeDSAvailabilityResponse.dsPublicKeys) && + Objects.equals(this.threeDS1Supported, threeDSAvailabilityResponse.threeDS1Supported) && + Objects.equals(this.threeDS2CardRangeDetails, threeDSAvailabilityResponse.threeDS2CardRangeDetails) && + Objects.equals(this.threeDS2supported, threeDSAvailabilityResponse.threeDS2supported); } @Override public int hashCode() { - return Objects.hash( - binDetails, dsPublicKeys, threeDS1Supported, threeDS2CardRangeDetails, threeDS2supported); + return Objects.hash(binDetails, dsPublicKeys, threeDS1Supported, threeDS2CardRangeDetails, threeDS2supported); } @Override @@ -260,16 +266,15 @@ public String toString() { sb.append(" binDetails: ").append(toIndentedString(binDetails)).append("\n"); sb.append(" dsPublicKeys: ").append(toIndentedString(dsPublicKeys)).append("\n"); sb.append(" threeDS1Supported: ").append(toIndentedString(threeDS1Supported)).append("\n"); - sb.append(" threeDS2CardRangeDetails: ") - .append(toIndentedString(threeDS2CardRangeDetails)) - .append("\n"); + sb.append(" threeDS2CardRangeDetails: ").append(toIndentedString(threeDS2CardRangeDetails)).append("\n"); sb.append(" threeDS2supported: ").append(toIndentedString(threeDS2supported)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -278,24 +283,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ThreeDSAvailabilityResponse given an JSON string * * @param jsonString JSON string * @return An instance of ThreeDSAvailabilityResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ThreeDSAvailabilityResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDSAvailabilityResponse */ - public static ThreeDSAvailabilityResponse fromJson(String jsonString) - throws JsonProcessingException { + public static ThreeDSAvailabilityResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDSAvailabilityResponse.class); } - - /** - * Convert an instance of ThreeDSAvailabilityResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ThreeDSAvailabilityResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/checkout/AbstractOpenApiSchema.java index 0c1cc93b3..f0d11c375 100644 --- a/src/main/java/com/adyen/model/checkout/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/checkout/AbstractOpenApiSchema.java @@ -2,141 +2,145 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonValue; -import jakarta.ws.rs.core.GenericType; -import java.util.Map; import java.util.Objects; +import java.util.Map; +import jakarta.ws.rs.core.GenericType; -/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec + */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() { - return instance; - } - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) { - this.instance = instance; - } - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf - * schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); - } else { - return object.getActualInstance(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() {return instance;} + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) {this.instance = instance;} + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); + } else { + return object.getActualInstance(); + } + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) && + Objects.equals(this.isNullable, a.isNullable) && + Objects.equals(this.schemaType, a.schemaType); } - return o.toString().replace("\n", "\n "); - } - public boolean equals(Object o) { - if (this == o) { - return true; + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); } - if (o == null || getClass() != o.getClass()) { - return false; + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) - && Objects.equals(this.isNullable, a.isNullable) - && Objects.equals(this.schemaType, a.schemaType); - } - - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); - } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); - } -} + + + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/checkout/AccountInfo.java b/src/main/java/com/adyen/model/checkout/AccountInfo.java index 248c546f8..d2a8a6d4d 100644 --- a/src/main/java/com/adyen/model/checkout/AccountInfo.java +++ b/src/main/java/com/adyen/model/checkout/AccountInfo.java @@ -2,27 +2,32 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** AccountInfo */ +/** + * AccountInfo + */ @JsonPropertyOrder({ AccountInfo.JSON_PROPERTY_ACCOUNT_AGE_INDICATOR, AccountInfo.JSON_PROPERTY_ACCOUNT_CHANGE_DATE, @@ -44,13 +49,13 @@ AccountInfo.JSON_PROPERTY_SUSPICIOUS_ACTIVITY, AccountInfo.JSON_PROPERTY_WORK_PHONE }) + public class AccountInfo { /** - * Indicator for the length of time since this shopper account was created in the merchant's - * environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * - * from30To60Days * moreThan60Days + * Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ public enum AccountAgeIndicatorEnum { + NOTAPPLICABLE(String.valueOf("notApplicable")), THISTRANSACTION(String.valueOf("thisTransaction")), @@ -66,7 +71,7 @@ public enum AccountAgeIndicatorEnum { private String value; AccountAgeIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -87,11 +92,7 @@ public static AccountAgeIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AccountAgeIndicatorEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AccountAgeIndicatorEnum.values())); + LOG.warning("AccountAgeIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AccountAgeIndicatorEnum.values())); return null; } } @@ -103,10 +104,10 @@ public static AccountAgeIndicatorEnum fromValue(String value) { private OffsetDateTime accountChangeDate; /** - * Indicator for the length of time since the shopper's account was last updated. Allowed - * values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ public enum AccountChangeIndicatorEnum { + THISTRANSACTION(String.valueOf("thisTransaction")), LESSTHAN30DAYS(String.valueOf("lessThan30Days")), @@ -120,7 +121,7 @@ public enum AccountChangeIndicatorEnum { private String value; AccountChangeIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -141,11 +142,7 @@ public static AccountChangeIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AccountChangeIndicatorEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AccountChangeIndicatorEnum.values())); + LOG.warning("AccountChangeIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AccountChangeIndicatorEnum.values())); return null; } } @@ -157,10 +154,10 @@ public static AccountChangeIndicatorEnum fromValue(String value) { private OffsetDateTime accountCreationDate; /** - * Indicates the type of account. For example, for a multi-account card product. Allowed values: * - * notApplicable * credit * debit + * Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit */ public enum AccountTypeEnum { + NOTAPPLICABLE(String.valueOf("notApplicable")), CREDIT(String.valueOf("credit")), @@ -172,7 +169,7 @@ public enum AccountTypeEnum { private String value; AccountTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -193,11 +190,7 @@ public static AccountTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AccountTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AccountTypeEnum.values())); + LOG.warning("AccountTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AccountTypeEnum.values())); return null; } } @@ -212,10 +205,10 @@ public static AccountTypeEnum fromValue(String value) { private OffsetDateTime deliveryAddressUsageDate; /** - * Indicator for the length of time since this delivery address was first used. Allowed values: * - * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ public enum DeliveryAddressUsageIndicatorEnum { + THISTRANSACTION(String.valueOf("thisTransaction")), LESSTHAN30DAYS(String.valueOf("lessThan30Days")), @@ -224,13 +217,12 @@ public enum DeliveryAddressUsageIndicatorEnum { MORETHAN60DAYS(String.valueOf("moreThan60Days")); - private static final Logger LOG = - Logger.getLogger(DeliveryAddressUsageIndicatorEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(DeliveryAddressUsageIndicatorEnum.class.getName()); private String value; DeliveryAddressUsageIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -251,37 +243,30 @@ public static DeliveryAddressUsageIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "DeliveryAddressUsageIndicatorEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(DeliveryAddressUsageIndicatorEnum.values())); + LOG.warning("DeliveryAddressUsageIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(DeliveryAddressUsageIndicatorEnum.values())); return null; } } - public static final String JSON_PROPERTY_DELIVERY_ADDRESS_USAGE_INDICATOR = - "deliveryAddressUsageIndicator"; + public static final String JSON_PROPERTY_DELIVERY_ADDRESS_USAGE_INDICATOR = "deliveryAddressUsageIndicator"; private DeliveryAddressUsageIndicatorEnum deliveryAddressUsageIndicator; public static final String JSON_PROPERTY_HOME_PHONE = "homePhone"; - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.homePhone` - // instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.homePhone` instead. private String homePhone; public static final String JSON_PROPERTY_MOBILE_PHONE = "mobilePhone"; - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.mobilePhone` - // instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.mobilePhone` instead. private String mobilePhone; public static final String JSON_PROPERTY_PASSWORD_CHANGE_DATE = "passwordChangeDate"; private OffsetDateTime passwordChangeDate; /** - * Indicator when the shopper has changed their password. Allowed values: * notApplicable * - * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ public enum PasswordChangeIndicatorEnum { + NOTAPPLICABLE(String.valueOf("notApplicable")), THISTRANSACTION(String.valueOf("thisTransaction")), @@ -297,7 +282,7 @@ public enum PasswordChangeIndicatorEnum { private String value; PasswordChangeIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -318,11 +303,7 @@ public static PasswordChangeIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PasswordChangeIndicatorEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PasswordChangeIndicatorEnum.values())); + LOG.warning("PasswordChangeIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PasswordChangeIndicatorEnum.values())); return null; } } @@ -340,11 +321,10 @@ public static PasswordChangeIndicatorEnum fromValue(String value) { private OffsetDateTime paymentAccountAge; /** - * Indicator for the length of time since this payment method was added to this shopper's - * account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * - * moreThan60Days + * Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ public enum PaymentAccountIndicatorEnum { + NOTAPPLICABLE(String.valueOf("notApplicable")), THISTRANSACTION(String.valueOf("thisTransaction")), @@ -360,7 +340,7 @@ public enum PaymentAccountIndicatorEnum { private String value; PaymentAccountIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -381,11 +361,7 @@ public static PaymentAccountIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PaymentAccountIndicatorEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PaymentAccountIndicatorEnum.values())); + LOG.warning("PaymentAccountIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PaymentAccountIndicatorEnum.values())); return null; } } @@ -400,20 +376,16 @@ public static PaymentAccountIndicatorEnum fromValue(String value) { private Boolean suspiciousActivity; public static final String JSON_PROPERTY_WORK_PHONE = "workPhone"; - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.workPhone` - // instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.workPhone` instead. private String workPhone; - public AccountInfo() {} + public AccountInfo() { + } /** - * Indicator for the length of time since this shopper account was created in the merchant's - * environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * - * from30To60Days * moreThan60Days + * Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * - * @param accountAgeIndicator Indicator for the length of time since this shopper account was - * created in the merchant's environment. Allowed values: * notApplicable * - * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @param accountAgeIndicator Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * @return the current {@code AccountInfo} instance, allowing for method chaining */ public AccountInfo accountAgeIndicator(AccountAgeIndicatorEnum accountAgeIndicator) { @@ -422,13 +394,8 @@ public AccountInfo accountAgeIndicator(AccountAgeIndicatorEnum accountAgeIndicat } /** - * Indicator for the length of time since this shopper account was created in the merchant's - * environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * - * from30To60Days * moreThan60Days - * - * @return accountAgeIndicator Indicator for the length of time since this shopper account was - * created in the merchant's environment. Allowed values: * notApplicable * - * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @return accountAgeIndicator Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ @JsonProperty(JSON_PROPERTY_ACCOUNT_AGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -437,13 +404,9 @@ public AccountAgeIndicatorEnum getAccountAgeIndicator() { } /** - * Indicator for the length of time since this shopper account was created in the merchant's - * environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * - * from30To60Days * moreThan60Days + * Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * - * @param accountAgeIndicator Indicator for the length of time since this shopper account was - * created in the merchant's environment. Allowed values: * notApplicable * - * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @param accountAgeIndicator Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ @JsonProperty(JSON_PROPERTY_ACCOUNT_AGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -464,7 +427,6 @@ public AccountInfo accountChangeDate(OffsetDateTime accountChangeDate) { /** * Date when the shopper's account was last changed. - * * @return accountChangeDate Date when the shopper's account was last changed. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_CHANGE_DATE) @@ -485,12 +447,9 @@ public void setAccountChangeDate(OffsetDateTime accountChangeDate) { } /** - * Indicator for the length of time since the shopper's account was last updated. Allowed - * values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * - * @param accountChangeIndicator Indicator for the length of time since the shopper's account - * was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * - * moreThan60Days + * @param accountChangeIndicator Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * @return the current {@code AccountInfo} instance, allowing for method chaining */ public AccountInfo accountChangeIndicator(AccountChangeIndicatorEnum accountChangeIndicator) { @@ -499,12 +458,8 @@ public AccountInfo accountChangeIndicator(AccountChangeIndicatorEnum accountChan } /** - * Indicator for the length of time since the shopper's account was last updated. Allowed - * values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days - * - * @return accountChangeIndicator Indicator for the length of time since the shopper's account - * was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * - * moreThan60Days + * Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @return accountChangeIndicator Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ @JsonProperty(JSON_PROPERTY_ACCOUNT_CHANGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -513,12 +468,9 @@ public AccountChangeIndicatorEnum getAccountChangeIndicator() { } /** - * Indicator for the length of time since the shopper's account was last updated. Allowed - * values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * - * @param accountChangeIndicator Indicator for the length of time since the shopper's account - * was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * - * moreThan60Days + * @param accountChangeIndicator Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ @JsonProperty(JSON_PROPERTY_ACCOUNT_CHANGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -539,7 +491,6 @@ public AccountInfo accountCreationDate(OffsetDateTime accountCreationDate) { /** * Date when the shopper's account was created. - * * @return accountCreationDate Date when the shopper's account was created. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_CREATION_DATE) @@ -560,11 +511,9 @@ public void setAccountCreationDate(OffsetDateTime accountCreationDate) { } /** - * Indicates the type of account. For example, for a multi-account card product. Allowed values: * - * notApplicable * credit * debit + * Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit * - * @param accountType Indicates the type of account. For example, for a multi-account card - * product. Allowed values: * notApplicable * credit * debit + * @param accountType Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit * @return the current {@code AccountInfo} instance, allowing for method chaining */ public AccountInfo accountType(AccountTypeEnum accountType) { @@ -573,11 +522,8 @@ public AccountInfo accountType(AccountTypeEnum accountType) { } /** - * Indicates the type of account. For example, for a multi-account card product. Allowed values: * - * notApplicable * credit * debit - * - * @return accountType Indicates the type of account. For example, for a multi-account card - * product. Allowed values: * notApplicable * credit * debit + * Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit + * @return accountType Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -586,11 +532,9 @@ public AccountTypeEnum getAccountType() { } /** - * Indicates the type of account. For example, for a multi-account card product. Allowed values: * - * notApplicable * credit * debit + * Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit * - * @param accountType Indicates the type of account. For example, for a multi-account card - * product. Allowed values: * notApplicable * credit * debit + * @param accountType Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -601,8 +545,7 @@ public void setAccountType(AccountTypeEnum accountType) { /** * Number of attempts the shopper tried to add a card to their account in the last day. * - * @param addCardAttemptsDay Number of attempts the shopper tried to add a card to their account - * in the last day. + * @param addCardAttemptsDay Number of attempts the shopper tried to add a card to their account in the last day. * @return the current {@code AccountInfo} instance, allowing for method chaining */ public AccountInfo addCardAttemptsDay(Integer addCardAttemptsDay) { @@ -612,9 +555,7 @@ public AccountInfo addCardAttemptsDay(Integer addCardAttemptsDay) { /** * Number of attempts the shopper tried to add a card to their account in the last day. - * - * @return addCardAttemptsDay Number of attempts the shopper tried to add a card to their account - * in the last day. + * @return addCardAttemptsDay Number of attempts the shopper tried to add a card to their account in the last day. */ @JsonProperty(JSON_PROPERTY_ADD_CARD_ATTEMPTS_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -625,8 +566,7 @@ public Integer getAddCardAttemptsDay() { /** * Number of attempts the shopper tried to add a card to their account in the last day. * - * @param addCardAttemptsDay Number of attempts the shopper tried to add a card to their account - * in the last day. + * @param addCardAttemptsDay Number of attempts the shopper tried to add a card to their account in the last day. */ @JsonProperty(JSON_PROPERTY_ADD_CARD_ATTEMPTS_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -647,7 +587,6 @@ public AccountInfo deliveryAddressUsageDate(OffsetDateTime deliveryAddressUsageD /** * Date the selected delivery address was first used. - * * @return deliveryAddressUsageDate Date the selected delivery address was first used. */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS_USAGE_DATE) @@ -668,27 +607,19 @@ public void setDeliveryAddressUsageDate(OffsetDateTime deliveryAddressUsageDate) } /** - * Indicator for the length of time since this delivery address was first used. Allowed values: * - * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * - * @param deliveryAddressUsageIndicator Indicator for the length of time since this delivery - * address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days - * * moreThan60Days + * @param deliveryAddressUsageIndicator Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * @return the current {@code AccountInfo} instance, allowing for method chaining */ - public AccountInfo deliveryAddressUsageIndicator( - DeliveryAddressUsageIndicatorEnum deliveryAddressUsageIndicator) { + public AccountInfo deliveryAddressUsageIndicator(DeliveryAddressUsageIndicatorEnum deliveryAddressUsageIndicator) { this.deliveryAddressUsageIndicator = deliveryAddressUsageIndicator; return this; } /** - * Indicator for the length of time since this delivery address was first used. Allowed values: * - * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days - * - * @return deliveryAddressUsageIndicator Indicator for the length of time since this delivery - * address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days - * * moreThan60Days + * Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @return deliveryAddressUsageIndicator Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS_USAGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -697,17 +628,13 @@ public DeliveryAddressUsageIndicatorEnum getDeliveryAddressUsageIndicator() { } /** - * Indicator for the length of time since this delivery address was first used. Allowed values: * - * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * - * @param deliveryAddressUsageIndicator Indicator for the length of time since this delivery - * address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days - * * moreThan60Days + * @param deliveryAddressUsageIndicator Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS_USAGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeliveryAddressUsageIndicator( - DeliveryAddressUsageIndicatorEnum deliveryAddressUsageIndicator) { + public void setDeliveryAddressUsageIndicator(DeliveryAddressUsageIndicatorEnum deliveryAddressUsageIndicator) { this.deliveryAddressUsageIndicator = deliveryAddressUsageIndicator; } @@ -716,10 +643,11 @@ public void setDeliveryAddressUsageIndicator( * * @param homePhone Shopper's home phone number (including the country code). * @return the current {@code AccountInfo} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v68 Use `ThreeDS2RequestData.homePhone` instead. + * + * @deprecated since Adyen Checkout API v68 + * Use `ThreeDS2RequestData.homePhone` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.homePhone` - // instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.homePhone` instead. public AccountInfo homePhone(String homePhone) { this.homePhone = homePhone; return this; @@ -727,13 +655,10 @@ public AccountInfo homePhone(String homePhone) { /** * Shopper's home phone number (including the country code). - * * @return homePhone Shopper's home phone number (including the country code). - * @deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.homePhone` - * instead. + * @deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.homePhone` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.homePhone` - // instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.homePhone` instead. @JsonProperty(JSON_PROPERTY_HOME_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getHomePhone() { @@ -744,10 +669,11 @@ public String getHomePhone() { * Shopper's home phone number (including the country code). * * @param homePhone Shopper's home phone number (including the country code). - * @deprecated since Adyen Checkout API v68 Use `ThreeDS2RequestData.homePhone` instead. + * + * @deprecated since Adyen Checkout API v68 + * Use `ThreeDS2RequestData.homePhone` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.homePhone` - // instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.homePhone` instead. @JsonProperty(JSON_PROPERTY_HOME_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHomePhone(String homePhone) { @@ -759,11 +685,11 @@ public void setHomePhone(String homePhone) { * * @param mobilePhone Shopper's mobile phone number (including the country code). * @return the current {@code AccountInfo} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v68 Use `ThreeDS2RequestData.mobilePhone` - * instead. + * + * @deprecated since Adyen Checkout API v68 + * Use `ThreeDS2RequestData.mobilePhone` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.mobilePhone` - // instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.mobilePhone` instead. public AccountInfo mobilePhone(String mobilePhone) { this.mobilePhone = mobilePhone; return this; @@ -771,13 +697,10 @@ public AccountInfo mobilePhone(String mobilePhone) { /** * Shopper's mobile phone number (including the country code). - * * @return mobilePhone Shopper's mobile phone number (including the country code). - * @deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.mobilePhone` - * instead. + * @deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.mobilePhone` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.mobilePhone` - // instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.mobilePhone` instead. @JsonProperty(JSON_PROPERTY_MOBILE_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMobilePhone() { @@ -788,11 +711,11 @@ public String getMobilePhone() { * Shopper's mobile phone number (including the country code). * * @param mobilePhone Shopper's mobile phone number (including the country code). - * @deprecated since Adyen Checkout API v68 Use `ThreeDS2RequestData.mobilePhone` - * instead. + * + * @deprecated since Adyen Checkout API v68 + * Use `ThreeDS2RequestData.mobilePhone` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.mobilePhone` - // instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.mobilePhone` instead. @JsonProperty(JSON_PROPERTY_MOBILE_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMobilePhone(String mobilePhone) { @@ -812,7 +735,6 @@ public AccountInfo passwordChangeDate(OffsetDateTime passwordChangeDate) { /** * Date when the shopper last changed their password. - * * @return passwordChangeDate Date when the shopper last changed their password. */ @JsonProperty(JSON_PROPERTY_PASSWORD_CHANGE_DATE) @@ -833,12 +755,9 @@ public void setPasswordChangeDate(OffsetDateTime passwordChangeDate) { } /** - * Indicator when the shopper has changed their password. Allowed values: * notApplicable * - * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * - * @param passwordChangeIndicator Indicator when the shopper has changed their password. Allowed - * values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * - * moreThan60Days + * @param passwordChangeIndicator Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * @return the current {@code AccountInfo} instance, allowing for method chaining */ public AccountInfo passwordChangeIndicator(PasswordChangeIndicatorEnum passwordChangeIndicator) { @@ -847,12 +766,8 @@ public AccountInfo passwordChangeIndicator(PasswordChangeIndicatorEnum passwordC } /** - * Indicator when the shopper has changed their password. Allowed values: * notApplicable * - * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days - * - * @return passwordChangeIndicator Indicator when the shopper has changed their password. Allowed - * values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * - * moreThan60Days + * Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @return passwordChangeIndicator Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ @JsonProperty(JSON_PROPERTY_PASSWORD_CHANGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -861,12 +776,9 @@ public PasswordChangeIndicatorEnum getPasswordChangeIndicator() { } /** - * Indicator when the shopper has changed their password. Allowed values: * notApplicable * - * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * - * @param passwordChangeIndicator Indicator when the shopper has changed their password. Allowed - * values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * - * moreThan60Days + * @param passwordChangeIndicator Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ @JsonProperty(JSON_PROPERTY_PASSWORD_CHANGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -877,8 +789,7 @@ public void setPasswordChangeIndicator(PasswordChangeIndicatorEnum passwordChang /** * Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. * - * @param pastTransactionsDay Number of all transactions (successful and abandoned) from this - * shopper in the past 24 hours. + * @param pastTransactionsDay Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. * @return the current {@code AccountInfo} instance, allowing for method chaining */ public AccountInfo pastTransactionsDay(Integer pastTransactionsDay) { @@ -888,9 +799,7 @@ public AccountInfo pastTransactionsDay(Integer pastTransactionsDay) { /** * Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. - * - * @return pastTransactionsDay Number of all transactions (successful and abandoned) from this - * shopper in the past 24 hours. + * @return pastTransactionsDay Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. */ @JsonProperty(JSON_PROPERTY_PAST_TRANSACTIONS_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -901,8 +810,7 @@ public Integer getPastTransactionsDay() { /** * Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. * - * @param pastTransactionsDay Number of all transactions (successful and abandoned) from this - * shopper in the past 24 hours. + * @param pastTransactionsDay Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. */ @JsonProperty(JSON_PROPERTY_PAST_TRANSACTIONS_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -913,8 +821,7 @@ public void setPastTransactionsDay(Integer pastTransactionsDay) { /** * Number of all transactions (successful and abandoned) from this shopper in the past year. * - * @param pastTransactionsYear Number of all transactions (successful and abandoned) from this - * shopper in the past year. + * @param pastTransactionsYear Number of all transactions (successful and abandoned) from this shopper in the past year. * @return the current {@code AccountInfo} instance, allowing for method chaining */ public AccountInfo pastTransactionsYear(Integer pastTransactionsYear) { @@ -924,9 +831,7 @@ public AccountInfo pastTransactionsYear(Integer pastTransactionsYear) { /** * Number of all transactions (successful and abandoned) from this shopper in the past year. - * - * @return pastTransactionsYear Number of all transactions (successful and abandoned) from this - * shopper in the past year. + * @return pastTransactionsYear Number of all transactions (successful and abandoned) from this shopper in the past year. */ @JsonProperty(JSON_PROPERTY_PAST_TRANSACTIONS_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -937,8 +842,7 @@ public Integer getPastTransactionsYear() { /** * Number of all transactions (successful and abandoned) from this shopper in the past year. * - * @param pastTransactionsYear Number of all transactions (successful and abandoned) from this - * shopper in the past year. + * @param pastTransactionsYear Number of all transactions (successful and abandoned) from this shopper in the past year. */ @JsonProperty(JSON_PROPERTY_PAST_TRANSACTIONS_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -959,7 +863,6 @@ public AccountInfo paymentAccountAge(OffsetDateTime paymentAccountAge) { /** * Date this payment method was added to the shopper's account. - * * @return paymentAccountAge Date this payment method was added to the shopper's account. */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACCOUNT_AGE) @@ -980,13 +883,9 @@ public void setPaymentAccountAge(OffsetDateTime paymentAccountAge) { } /** - * Indicator for the length of time since this payment method was added to this shopper's - * account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * - * moreThan60Days + * Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * - * @param paymentAccountIndicator Indicator for the length of time since this payment method was - * added to this shopper's account. Allowed values: * notApplicable * thisTransaction * - * lessThan30Days * from30To60Days * moreThan60Days + * @param paymentAccountIndicator Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * @return the current {@code AccountInfo} instance, allowing for method chaining */ public AccountInfo paymentAccountIndicator(PaymentAccountIndicatorEnum paymentAccountIndicator) { @@ -995,13 +894,8 @@ public AccountInfo paymentAccountIndicator(PaymentAccountIndicatorEnum paymentAc } /** - * Indicator for the length of time since this payment method was added to this shopper's - * account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * - * moreThan60Days - * - * @return paymentAccountIndicator Indicator for the length of time since this payment method was - * added to this shopper's account. Allowed values: * notApplicable * thisTransaction * - * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @return paymentAccountIndicator Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACCOUNT_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1010,13 +904,9 @@ public PaymentAccountIndicatorEnum getPaymentAccountIndicator() { } /** - * Indicator for the length of time since this payment method was added to this shopper's - * account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * - * moreThan60Days + * Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * - * @param paymentAccountIndicator Indicator for the length of time since this payment method was - * added to this shopper's account. Allowed values: * notApplicable * thisTransaction * - * lessThan30Days * from30To60Days * moreThan60Days + * @param paymentAccountIndicator Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACCOUNT_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1037,7 +927,6 @@ public AccountInfo purchasesLast6Months(Integer purchasesLast6Months) { /** * Number of successful purchases in the last six months. - * * @return purchasesLast6Months Number of successful purchases in the last six months. */ @JsonProperty(JSON_PROPERTY_PURCHASES_LAST6_MONTHS) @@ -1070,7 +959,6 @@ public AccountInfo suspiciousActivity(Boolean suspiciousActivity) { /** * Whether suspicious activity was recorded on this account. - * * @return suspiciousActivity Whether suspicious activity was recorded on this account. */ @JsonProperty(JSON_PROPERTY_SUSPICIOUS_ACTIVITY) @@ -1095,10 +983,11 @@ public void setSuspiciousActivity(Boolean suspiciousActivity) { * * @param workPhone Shopper's work phone number (including the country code). * @return the current {@code AccountInfo} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v68 Use `ThreeDS2RequestData.workPhone` instead. + * + * @deprecated since Adyen Checkout API v68 + * Use `ThreeDS2RequestData.workPhone` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.workPhone` - // instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.workPhone` instead. public AccountInfo workPhone(String workPhone) { this.workPhone = workPhone; return this; @@ -1106,13 +995,10 @@ public AccountInfo workPhone(String workPhone) { /** * Shopper's work phone number (including the country code). - * * @return workPhone Shopper's work phone number (including the country code). - * @deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.workPhone` - * instead. + * @deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.workPhone` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.workPhone` - // instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.workPhone` instead. @JsonProperty(JSON_PROPERTY_WORK_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getWorkPhone() { @@ -1123,17 +1009,20 @@ public String getWorkPhone() { * Shopper's work phone number (including the country code). * * @param workPhone Shopper's work phone number (including the country code). - * @deprecated since Adyen Checkout API v68 Use `ThreeDS2RequestData.workPhone` instead. + * + * @deprecated since Adyen Checkout API v68 + * Use `ThreeDS2RequestData.workPhone` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.workPhone` - // instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.workPhone` instead. @JsonProperty(JSON_PROPERTY_WORK_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWorkPhone(String workPhone) { this.workPhone = workPhone; } - /** Return true if this AccountInfo object is equal to o. */ + /** + * Return true if this AccountInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -1143,93 +1032,53 @@ public boolean equals(Object o) { return false; } AccountInfo accountInfo = (AccountInfo) o; - return Objects.equals(this.accountAgeIndicator, accountInfo.accountAgeIndicator) - && Objects.equals(this.accountChangeDate, accountInfo.accountChangeDate) - && Objects.equals(this.accountChangeIndicator, accountInfo.accountChangeIndicator) - && Objects.equals(this.accountCreationDate, accountInfo.accountCreationDate) - && Objects.equals(this.accountType, accountInfo.accountType) - && Objects.equals(this.addCardAttemptsDay, accountInfo.addCardAttemptsDay) - && Objects.equals(this.deliveryAddressUsageDate, accountInfo.deliveryAddressUsageDate) - && Objects.equals( - this.deliveryAddressUsageIndicator, accountInfo.deliveryAddressUsageIndicator) - && Objects.equals(this.homePhone, accountInfo.homePhone) - && Objects.equals(this.mobilePhone, accountInfo.mobilePhone) - && Objects.equals(this.passwordChangeDate, accountInfo.passwordChangeDate) - && Objects.equals(this.passwordChangeIndicator, accountInfo.passwordChangeIndicator) - && Objects.equals(this.pastTransactionsDay, accountInfo.pastTransactionsDay) - && Objects.equals(this.pastTransactionsYear, accountInfo.pastTransactionsYear) - && Objects.equals(this.paymentAccountAge, accountInfo.paymentAccountAge) - && Objects.equals(this.paymentAccountIndicator, accountInfo.paymentAccountIndicator) - && Objects.equals(this.purchasesLast6Months, accountInfo.purchasesLast6Months) - && Objects.equals(this.suspiciousActivity, accountInfo.suspiciousActivity) - && Objects.equals(this.workPhone, accountInfo.workPhone); + return Objects.equals(this.accountAgeIndicator, accountInfo.accountAgeIndicator) && + Objects.equals(this.accountChangeDate, accountInfo.accountChangeDate) && + Objects.equals(this.accountChangeIndicator, accountInfo.accountChangeIndicator) && + Objects.equals(this.accountCreationDate, accountInfo.accountCreationDate) && + Objects.equals(this.accountType, accountInfo.accountType) && + Objects.equals(this.addCardAttemptsDay, accountInfo.addCardAttemptsDay) && + Objects.equals(this.deliveryAddressUsageDate, accountInfo.deliveryAddressUsageDate) && + Objects.equals(this.deliveryAddressUsageIndicator, accountInfo.deliveryAddressUsageIndicator) && + Objects.equals(this.homePhone, accountInfo.homePhone) && + Objects.equals(this.mobilePhone, accountInfo.mobilePhone) && + Objects.equals(this.passwordChangeDate, accountInfo.passwordChangeDate) && + Objects.equals(this.passwordChangeIndicator, accountInfo.passwordChangeIndicator) && + Objects.equals(this.pastTransactionsDay, accountInfo.pastTransactionsDay) && + Objects.equals(this.pastTransactionsYear, accountInfo.pastTransactionsYear) && + Objects.equals(this.paymentAccountAge, accountInfo.paymentAccountAge) && + Objects.equals(this.paymentAccountIndicator, accountInfo.paymentAccountIndicator) && + Objects.equals(this.purchasesLast6Months, accountInfo.purchasesLast6Months) && + Objects.equals(this.suspiciousActivity, accountInfo.suspiciousActivity) && + Objects.equals(this.workPhone, accountInfo.workPhone); } @Override public int hashCode() { - return Objects.hash( - accountAgeIndicator, - accountChangeDate, - accountChangeIndicator, - accountCreationDate, - accountType, - addCardAttemptsDay, - deliveryAddressUsageDate, - deliveryAddressUsageIndicator, - homePhone, - mobilePhone, - passwordChangeDate, - passwordChangeIndicator, - pastTransactionsDay, - pastTransactionsYear, - paymentAccountAge, - paymentAccountIndicator, - purchasesLast6Months, - suspiciousActivity, - workPhone); + return Objects.hash(accountAgeIndicator, accountChangeDate, accountChangeIndicator, accountCreationDate, accountType, addCardAttemptsDay, deliveryAddressUsageDate, deliveryAddressUsageIndicator, homePhone, mobilePhone, passwordChangeDate, passwordChangeIndicator, pastTransactionsDay, pastTransactionsYear, paymentAccountAge, paymentAccountIndicator, purchasesLast6Months, suspiciousActivity, workPhone); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AccountInfo {\n"); - sb.append(" accountAgeIndicator: ") - .append(toIndentedString(accountAgeIndicator)) - .append("\n"); + sb.append(" accountAgeIndicator: ").append(toIndentedString(accountAgeIndicator)).append("\n"); sb.append(" accountChangeDate: ").append(toIndentedString(accountChangeDate)).append("\n"); - sb.append(" accountChangeIndicator: ") - .append(toIndentedString(accountChangeIndicator)) - .append("\n"); - sb.append(" accountCreationDate: ") - .append(toIndentedString(accountCreationDate)) - .append("\n"); + sb.append(" accountChangeIndicator: ").append(toIndentedString(accountChangeIndicator)).append("\n"); + sb.append(" accountCreationDate: ").append(toIndentedString(accountCreationDate)).append("\n"); sb.append(" accountType: ").append(toIndentedString(accountType)).append("\n"); sb.append(" addCardAttemptsDay: ").append(toIndentedString(addCardAttemptsDay)).append("\n"); - sb.append(" deliveryAddressUsageDate: ") - .append(toIndentedString(deliveryAddressUsageDate)) - .append("\n"); - sb.append(" deliveryAddressUsageIndicator: ") - .append(toIndentedString(deliveryAddressUsageIndicator)) - .append("\n"); + sb.append(" deliveryAddressUsageDate: ").append(toIndentedString(deliveryAddressUsageDate)).append("\n"); + sb.append(" deliveryAddressUsageIndicator: ").append(toIndentedString(deliveryAddressUsageIndicator)).append("\n"); sb.append(" homePhone: ").append(toIndentedString(homePhone)).append("\n"); sb.append(" mobilePhone: ").append(toIndentedString(mobilePhone)).append("\n"); sb.append(" passwordChangeDate: ").append(toIndentedString(passwordChangeDate)).append("\n"); - sb.append(" passwordChangeIndicator: ") - .append(toIndentedString(passwordChangeIndicator)) - .append("\n"); - sb.append(" pastTransactionsDay: ") - .append(toIndentedString(pastTransactionsDay)) - .append("\n"); - sb.append(" pastTransactionsYear: ") - .append(toIndentedString(pastTransactionsYear)) - .append("\n"); + sb.append(" passwordChangeIndicator: ").append(toIndentedString(passwordChangeIndicator)).append("\n"); + sb.append(" pastTransactionsDay: ").append(toIndentedString(pastTransactionsDay)).append("\n"); + sb.append(" pastTransactionsYear: ").append(toIndentedString(pastTransactionsYear)).append("\n"); sb.append(" paymentAccountAge: ").append(toIndentedString(paymentAccountAge)).append("\n"); - sb.append(" paymentAccountIndicator: ") - .append(toIndentedString(paymentAccountIndicator)) - .append("\n"); - sb.append(" purchasesLast6Months: ") - .append(toIndentedString(purchasesLast6Months)) - .append("\n"); + sb.append(" paymentAccountIndicator: ").append(toIndentedString(paymentAccountIndicator)).append("\n"); + sb.append(" purchasesLast6Months: ").append(toIndentedString(purchasesLast6Months)).append("\n"); sb.append(" suspiciousActivity: ").append(toIndentedString(suspiciousActivity)).append("\n"); sb.append(" workPhone: ").append(toIndentedString(workPhone)).append("\n"); sb.append("}"); @@ -1237,7 +1086,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1246,7 +1096,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AccountInfo given an JSON string * * @param jsonString JSON string @@ -1256,12 +1106,11 @@ private String toIndentedString(Object o) { public static AccountInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountInfo.class); } - - /** - * Convert an instance of AccountInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AccountInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AcctInfo.java b/src/main/java/com/adyen/model/checkout/AcctInfo.java index 89c0eda53..281bcd6ff 100644 --- a/src/main/java/com/adyen/model/checkout/AcctInfo.java +++ b/src/main/java/com/adyen/model/checkout/AcctInfo.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** AcctInfo */ + +/** + * AcctInfo + */ @JsonPropertyOrder({ AcctInfo.JSON_PROPERTY_CH_ACC_AGE_IND, AcctInfo.JSON_PROPERTY_CH_ACC_CHANGE, @@ -40,13 +45,13 @@ AcctInfo.JSON_PROPERTY_TXN_ACTIVITY_DAY, AcctInfo.JSON_PROPERTY_TXN_ACTIVITY_YEAR }) + public class AcctInfo { /** - * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: - * * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * - * **04** — 30–60 days * **05** — More than 60 days + * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days */ public enum ChAccAgeIndEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -62,7 +67,7 @@ public enum ChAccAgeIndEnum { private String value; ChAccAgeIndEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -83,11 +88,7 @@ public static ChAccAgeIndEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ChAccAgeIndEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ChAccAgeIndEnum.values())); + LOG.warning("ChAccAgeIndEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChAccAgeIndEnum.values())); return null; } } @@ -99,12 +100,10 @@ public static ChAccAgeIndEnum fromValue(String value) { private String chAccChange; /** - * Length of time since the cardholder’s account information with the 3DS Requestor was last - * changed, including Billing or Shipping address, new payment account, or new user(s) added. - * Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * - * **03** — 30–60 days * **04** — More than 60 days + * Length of time since the cardholder’s account information with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days */ public enum ChAccChangeIndEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -118,7 +117,7 @@ public enum ChAccChangeIndEnum { private String value; ChAccChangeIndEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -139,11 +138,7 @@ public static ChAccChangeIndEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ChAccChangeIndEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ChAccChangeIndEnum.values())); + LOG.warning("ChAccChangeIndEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChAccChangeIndEnum.values())); return null; } } @@ -155,12 +150,10 @@ public static ChAccChangeIndEnum fromValue(String value) { private String chAccPwChange; /** - * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a - * password change or account reset. Allowed values: * **01** — No change * **02** — Changed - * during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than - * 60 days + * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days */ public enum ChAccPwChangeIndEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -176,7 +169,7 @@ public enum ChAccPwChangeIndEnum { private String value; ChAccPwChangeIndEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -197,11 +190,7 @@ public static ChAccPwChangeIndEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ChAccPwChangeIndEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ChAccPwChangeIndEnum.values())); + LOG.warning("ChAccPwChangeIndEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChAccPwChangeIndEnum.values())); return null; } } @@ -219,12 +208,10 @@ public static ChAccPwChangeIndEnum fromValue(String value) { private String paymentAccAge; /** - * Indicates the length of time that the payment account was enrolled in the cardholder’s account - * with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — - * During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than - * 60 days + * Indicates the length of time that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days */ public enum PaymentAccIndEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -240,7 +227,7 @@ public enum PaymentAccIndEnum { private String value; PaymentAccIndEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -261,11 +248,7 @@ public static PaymentAccIndEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PaymentAccIndEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PaymentAccIndEnum.values())); + LOG.warning("PaymentAccIndEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PaymentAccIndEnum.values())); return null; } } @@ -280,11 +263,10 @@ public static PaymentAccIndEnum fromValue(String value) { private String shipAddressUsage; /** - * Indicates when the shipping address used for this transaction was first used with the 3DS - * Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — - * 30–60 days * **04** — More than 60 days + * Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days */ public enum ShipAddressUsageIndEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -298,7 +280,7 @@ public enum ShipAddressUsageIndEnum { private String value; ShipAddressUsageIndEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -319,11 +301,7 @@ public static ShipAddressUsageIndEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ShipAddressUsageIndEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ShipAddressUsageIndEnum.values())); + LOG.warning("ShipAddressUsageIndEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShipAddressUsageIndEnum.values())); return null; } } @@ -332,11 +310,10 @@ public static ShipAddressUsageIndEnum fromValue(String value) { private ShipAddressUsageIndEnum shipAddressUsageInd; /** - * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this - * transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — - * Account Name different to shipping Name + * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — Account Name different to shipping Name */ public enum ShipNameIndicatorEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")); @@ -346,7 +323,7 @@ public enum ShipNameIndicatorEnum { private String value; ShipNameIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -367,11 +344,7 @@ public static ShipNameIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ShipNameIndicatorEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ShipNameIndicatorEnum.values())); + LOG.warning("ShipNameIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShipNameIndicatorEnum.values())); return null; } } @@ -380,11 +353,10 @@ public static ShipNameIndicatorEnum fromValue(String value) { private ShipNameIndicatorEnum shipNameIndicator; /** - * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous - * fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been - * observed * **02** — Suspicious activity has been observed + * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been observed * **02** — Suspicious activity has been observed */ public enum SuspiciousAccActivityEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")); @@ -394,7 +366,7 @@ public enum SuspiciousAccActivityEnum { private String value; SuspiciousAccActivityEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -415,11 +387,7 @@ public static SuspiciousAccActivityEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "SuspiciousAccActivityEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(SuspiciousAccActivityEnum.values())); + LOG.warning("SuspiciousAccActivityEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(SuspiciousAccActivityEnum.values())); return null; } } @@ -433,16 +401,13 @@ public static SuspiciousAccActivityEnum fromValue(String value) { public static final String JSON_PROPERTY_TXN_ACTIVITY_YEAR = "txnActivityYear"; private String txnActivityYear; - public AcctInfo() {} + public AcctInfo() { + } /** - * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: - * * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * - * **04** — 30–60 days * **05** — More than 60 days + * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days * - * @param chAccAgeInd Length of time that the cardholder has had the account with the 3DS - * Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction - * * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * @param chAccAgeInd Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo chAccAgeInd(ChAccAgeIndEnum chAccAgeInd) { @@ -451,13 +416,8 @@ public AcctInfo chAccAgeInd(ChAccAgeIndEnum chAccAgeInd) { } /** - * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: - * * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * - * **04** — 30–60 days * **05** — More than 60 days - * - * @return chAccAgeInd Length of time that the cardholder has had the account with the 3DS - * Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction - * * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * @return chAccAgeInd Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days */ @JsonProperty(JSON_PROPERTY_CH_ACC_AGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -466,13 +426,9 @@ public ChAccAgeIndEnum getChAccAgeInd() { } /** - * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: - * * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * - * **04** — 30–60 days * **05** — More than 60 days + * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days * - * @param chAccAgeInd Length of time that the cardholder has had the account with the 3DS - * Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction - * * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * @param chAccAgeInd Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days */ @JsonProperty(JSON_PROPERTY_CH_ACC_AGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -481,12 +437,9 @@ public void setChAccAgeInd(ChAccAgeIndEnum chAccAgeInd) { } /** - * Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing - * or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** + * Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** * - * @param chAccChange Date that the cardholder’s account with the 3DS Requestor was last changed, - * including Billing or Shipping address, new payment account, or new user(s) added. Format: - * **YYYYMMDD** + * @param chAccChange Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo chAccChange(String chAccChange) { @@ -495,12 +448,8 @@ public AcctInfo chAccChange(String chAccChange) { } /** - * Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing - * or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** - * - * @return chAccChange Date that the cardholder’s account with the 3DS Requestor was last changed, - * including Billing or Shipping address, new payment account, or new user(s) added. Format: - * **YYYYMMDD** + * Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** + * @return chAccChange Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_CH_ACC_CHANGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -509,12 +458,9 @@ public String getChAccChange() { } /** - * Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing - * or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** + * Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** * - * @param chAccChange Date that the cardholder’s account with the 3DS Requestor was last changed, - * including Billing or Shipping address, new payment account, or new user(s) added. Format: - * **YYYYMMDD** + * @param chAccChange Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_CH_ACC_CHANGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -523,15 +469,9 @@ public void setChAccChange(String chAccChange) { } /** - * Length of time since the cardholder’s account information with the 3DS Requestor was last - * changed, including Billing or Shipping address, new payment account, or new user(s) added. - * Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * - * **03** — 30–60 days * **04** — More than 60 days + * Length of time since the cardholder’s account information with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days * - * @param chAccChangeInd Length of time since the cardholder’s account information with the 3DS - * Requestor was last changed, including Billing or Shipping address, new payment account, or - * new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — - * Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * @param chAccChangeInd Length of time since the cardholder’s account information with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo chAccChangeInd(ChAccChangeIndEnum chAccChangeInd) { @@ -540,15 +480,8 @@ public AcctInfo chAccChangeInd(ChAccChangeIndEnum chAccChangeInd) { } /** - * Length of time since the cardholder’s account information with the 3DS Requestor was last - * changed, including Billing or Shipping address, new payment account, or new user(s) added. - * Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * - * **03** — 30–60 days * **04** — More than 60 days - * - * @return chAccChangeInd Length of time since the cardholder’s account information with the 3DS - * Requestor was last changed, including Billing or Shipping address, new payment account, or - * new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — - * Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * Length of time since the cardholder’s account information with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * @return chAccChangeInd Length of time since the cardholder’s account information with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days */ @JsonProperty(JSON_PROPERTY_CH_ACC_CHANGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -557,15 +490,9 @@ public ChAccChangeIndEnum getChAccChangeInd() { } /** - * Length of time since the cardholder’s account information with the 3DS Requestor was last - * changed, including Billing or Shipping address, new payment account, or new user(s) added. - * Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * - * **03** — 30–60 days * **04** — More than 60 days + * Length of time since the cardholder’s account information with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days * - * @param chAccChangeInd Length of time since the cardholder’s account information with the 3DS - * Requestor was last changed, including Billing or Shipping address, new payment account, or - * new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — - * Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * @param chAccChangeInd Length of time since the cardholder’s account information with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days */ @JsonProperty(JSON_PROPERTY_CH_ACC_CHANGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -574,11 +501,9 @@ public void setChAccChangeInd(ChAccChangeIndEnum chAccChangeInd) { } /** - * Date that cardholder’s account with the 3DS Requestor had a password change or account reset. - * Format: **YYYYMMDD** + * Date that cardholder’s account with the 3DS Requestor had a password change or account reset. Format: **YYYYMMDD** * - * @param chAccPwChange Date that cardholder’s account with the 3DS Requestor had a password - * change or account reset. Format: **YYYYMMDD** + * @param chAccPwChange Date that cardholder’s account with the 3DS Requestor had a password change or account reset. Format: **YYYYMMDD** * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo chAccPwChange(String chAccPwChange) { @@ -587,11 +512,8 @@ public AcctInfo chAccPwChange(String chAccPwChange) { } /** - * Date that cardholder’s account with the 3DS Requestor had a password change or account reset. - * Format: **YYYYMMDD** - * - * @return chAccPwChange Date that cardholder’s account with the 3DS Requestor had a password - * change or account reset. Format: **YYYYMMDD** + * Date that cardholder’s account with the 3DS Requestor had a password change or account reset. Format: **YYYYMMDD** + * @return chAccPwChange Date that cardholder’s account with the 3DS Requestor had a password change or account reset. Format: **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_CH_ACC_PW_CHANGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -600,11 +522,9 @@ public String getChAccPwChange() { } /** - * Date that cardholder’s account with the 3DS Requestor had a password change or account reset. - * Format: **YYYYMMDD** + * Date that cardholder’s account with the 3DS Requestor had a password change or account reset. Format: **YYYYMMDD** * - * @param chAccPwChange Date that cardholder’s account with the 3DS Requestor had a password - * change or account reset. Format: **YYYYMMDD** + * @param chAccPwChange Date that cardholder’s account with the 3DS Requestor had a password change or account reset. Format: **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_CH_ACC_PW_CHANGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -613,15 +533,9 @@ public void setChAccPwChange(String chAccPwChange) { } /** - * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a - * password change or account reset. Allowed values: * **01** — No change * **02** — Changed - * during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than - * 60 days + * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days * - * @param chAccPwChangeInd Indicates the length of time since the cardholder’s account with the - * 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change - * * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 - * days * **05** — More than 60 days + * @param chAccPwChangeInd Indicates the length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo chAccPwChangeInd(ChAccPwChangeIndEnum chAccPwChangeInd) { @@ -630,15 +544,8 @@ public AcctInfo chAccPwChangeInd(ChAccPwChangeIndEnum chAccPwChangeInd) { } /** - * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a - * password change or account reset. Allowed values: * **01** — No change * **02** — Changed - * during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than - * 60 days - * - * @return chAccPwChangeInd Indicates the length of time since the cardholder’s account with the - * 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change - * * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 - * days * **05** — More than 60 days + * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * @return chAccPwChangeInd Indicates the length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days */ @JsonProperty(JSON_PROPERTY_CH_ACC_PW_CHANGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -647,15 +554,9 @@ public ChAccPwChangeIndEnum getChAccPwChangeInd() { } /** - * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a - * password change or account reset. Allowed values: * **01** — No change * **02** — Changed - * during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than - * 60 days + * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days * - * @param chAccPwChangeInd Indicates the length of time since the cardholder’s account with the - * 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change - * * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 - * days * **05** — More than 60 days + * @param chAccPwChangeInd Indicates the length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days */ @JsonProperty(JSON_PROPERTY_CH_ACC_PW_CHANGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -664,10 +565,9 @@ public void setChAccPwChangeInd(ChAccPwChangeIndEnum chAccPwChangeInd) { } /** - * Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** + * Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** * - * @param chAccString Date that the cardholder opened the account with the 3DS Requestor. Format: - * **YYYYMMDD** + * @param chAccString Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo chAccString(String chAccString) { @@ -676,10 +576,8 @@ public AcctInfo chAccString(String chAccString) { } /** - * Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** - * - * @return chAccString Date that the cardholder opened the account with the 3DS Requestor. Format: - * **YYYYMMDD** + * Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** + * @return chAccString Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_CH_ACC_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -688,10 +586,9 @@ public String getChAccString() { } /** - * Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** + * Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** * - * @param chAccString Date that the cardholder opened the account with the 3DS Requestor. Format: - * **YYYYMMDD** + * @param chAccString Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_CH_ACC_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -700,11 +597,9 @@ public void setChAccString(String chAccString) { } /** - * Number of purchases with this cardholder account during the previous six months. Max length: 4 - * characters. + * Number of purchases with this cardholder account during the previous six months. Max length: 4 characters. * - * @param nbPurchaseAccount Number of purchases with this cardholder account during the previous - * six months. Max length: 4 characters. + * @param nbPurchaseAccount Number of purchases with this cardholder account during the previous six months. Max length: 4 characters. * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo nbPurchaseAccount(String nbPurchaseAccount) { @@ -713,11 +608,8 @@ public AcctInfo nbPurchaseAccount(String nbPurchaseAccount) { } /** - * Number of purchases with this cardholder account during the previous six months. Max length: 4 - * characters. - * - * @return nbPurchaseAccount Number of purchases with this cardholder account during the previous - * six months. Max length: 4 characters. + * Number of purchases with this cardholder account during the previous six months. Max length: 4 characters. + * @return nbPurchaseAccount Number of purchases with this cardholder account during the previous six months. Max length: 4 characters. */ @JsonProperty(JSON_PROPERTY_NB_PURCHASE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -726,11 +618,9 @@ public String getNbPurchaseAccount() { } /** - * Number of purchases with this cardholder account during the previous six months. Max length: 4 - * characters. + * Number of purchases with this cardholder account during the previous six months. Max length: 4 characters. * - * @param nbPurchaseAccount Number of purchases with this cardholder account during the previous - * six months. Max length: 4 characters. + * @param nbPurchaseAccount Number of purchases with this cardholder account during the previous six months. Max length: 4 characters. */ @JsonProperty(JSON_PROPERTY_NB_PURCHASE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -739,11 +629,9 @@ public void setNbPurchaseAccount(String nbPurchaseAccount) { } /** - * String that the payment account was enrolled in the cardholder’s account with the 3DS - * Requestor. Format: **YYYYMMDD** + * String that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Format: **YYYYMMDD** * - * @param paymentAccAge String that the payment account was enrolled in the cardholder’s account - * with the 3DS Requestor. Format: **YYYYMMDD** + * @param paymentAccAge String that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Format: **YYYYMMDD** * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo paymentAccAge(String paymentAccAge) { @@ -752,11 +640,8 @@ public AcctInfo paymentAccAge(String paymentAccAge) { } /** - * String that the payment account was enrolled in the cardholder’s account with the 3DS - * Requestor. Format: **YYYYMMDD** - * - * @return paymentAccAge String that the payment account was enrolled in the cardholder’s account - * with the 3DS Requestor. Format: **YYYYMMDD** + * String that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Format: **YYYYMMDD** + * @return paymentAccAge String that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Format: **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACC_AGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -765,11 +650,9 @@ public String getPaymentAccAge() { } /** - * String that the payment account was enrolled in the cardholder’s account with the 3DS - * Requestor. Format: **YYYYMMDD** + * String that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Format: **YYYYMMDD** * - * @param paymentAccAge String that the payment account was enrolled in the cardholder’s account - * with the 3DS Requestor. Format: **YYYYMMDD** + * @param paymentAccAge String that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Format: **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACC_AGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -778,15 +661,9 @@ public void setPaymentAccAge(String paymentAccAge) { } /** - * Indicates the length of time that the payment account was enrolled in the cardholder’s account - * with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — - * During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than - * 60 days + * Indicates the length of time that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days * - * @param paymentAccInd Indicates the length of time that the payment account was enrolled in the - * cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest - * checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 - * days * **05** — More than 60 days + * @param paymentAccInd Indicates the length of time that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo paymentAccInd(PaymentAccIndEnum paymentAccInd) { @@ -795,15 +672,8 @@ public AcctInfo paymentAccInd(PaymentAccIndEnum paymentAccInd) { } /** - * Indicates the length of time that the payment account was enrolled in the cardholder’s account - * with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — - * During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than - * 60 days - * - * @return paymentAccInd Indicates the length of time that the payment account was enrolled in the - * cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest - * checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 - * days * **05** — More than 60 days + * Indicates the length of time that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * @return paymentAccInd Indicates the length of time that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACC_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -812,15 +682,9 @@ public PaymentAccIndEnum getPaymentAccInd() { } /** - * Indicates the length of time that the payment account was enrolled in the cardholder’s account - * with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — - * During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than - * 60 days + * Indicates the length of time that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days * - * @param paymentAccInd Indicates the length of time that the payment account was enrolled in the - * cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest - * checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 - * days * **05** — More than 60 days + * @param paymentAccInd Indicates the length of time that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACC_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -831,8 +695,7 @@ public void setPaymentAccInd(PaymentAccIndEnum paymentAccInd) { /** * Number of Add Card attempts in the last 24 hours. Max length: 3 characters. * - * @param provisionAttemptsDay Number of Add Card attempts in the last 24 hours. Max length: 3 - * characters. + * @param provisionAttemptsDay Number of Add Card attempts in the last 24 hours. Max length: 3 characters. * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo provisionAttemptsDay(String provisionAttemptsDay) { @@ -842,9 +705,7 @@ public AcctInfo provisionAttemptsDay(String provisionAttemptsDay) { /** * Number of Add Card attempts in the last 24 hours. Max length: 3 characters. - * - * @return provisionAttemptsDay Number of Add Card attempts in the last 24 hours. Max length: 3 - * characters. + * @return provisionAttemptsDay Number of Add Card attempts in the last 24 hours. Max length: 3 characters. */ @JsonProperty(JSON_PROPERTY_PROVISION_ATTEMPTS_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -855,8 +716,7 @@ public String getProvisionAttemptsDay() { /** * Number of Add Card attempts in the last 24 hours. Max length: 3 characters. * - * @param provisionAttemptsDay Number of Add Card attempts in the last 24 hours. Max length: 3 - * characters. + * @param provisionAttemptsDay Number of Add Card attempts in the last 24 hours. Max length: 3 characters. */ @JsonProperty(JSON_PROPERTY_PROVISION_ATTEMPTS_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -865,11 +725,9 @@ public void setProvisionAttemptsDay(String provisionAttemptsDay) { } /** - * String when the shipping address used for this transaction was first used with the 3DS - * Requestor. Format: **YYYYMMDD** + * String when the shipping address used for this transaction was first used with the 3DS Requestor. Format: **YYYYMMDD** * - * @param shipAddressUsage String when the shipping address used for this transaction was first - * used with the 3DS Requestor. Format: **YYYYMMDD** + * @param shipAddressUsage String when the shipping address used for this transaction was first used with the 3DS Requestor. Format: **YYYYMMDD** * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo shipAddressUsage(String shipAddressUsage) { @@ -878,11 +736,8 @@ public AcctInfo shipAddressUsage(String shipAddressUsage) { } /** - * String when the shipping address used for this transaction was first used with the 3DS - * Requestor. Format: **YYYYMMDD** - * - * @return shipAddressUsage String when the shipping address used for this transaction was first - * used with the 3DS Requestor. Format: **YYYYMMDD** + * String when the shipping address used for this transaction was first used with the 3DS Requestor. Format: **YYYYMMDD** + * @return shipAddressUsage String when the shipping address used for this transaction was first used with the 3DS Requestor. Format: **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_SHIP_ADDRESS_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -891,11 +746,9 @@ public String getShipAddressUsage() { } /** - * String when the shipping address used for this transaction was first used with the 3DS - * Requestor. Format: **YYYYMMDD** + * String when the shipping address used for this transaction was first used with the 3DS Requestor. Format: **YYYYMMDD** * - * @param shipAddressUsage String when the shipping address used for this transaction was first - * used with the 3DS Requestor. Format: **YYYYMMDD** + * @param shipAddressUsage String when the shipping address used for this transaction was first used with the 3DS Requestor. Format: **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_SHIP_ADDRESS_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -904,13 +757,9 @@ public void setShipAddressUsage(String shipAddressUsage) { } /** - * Indicates when the shipping address used for this transaction was first used with the 3DS - * Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — - * 30–60 days * **04** — More than 60 days + * Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days * - * @param shipAddressUsageInd Indicates when the shipping address used for this transaction was - * first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — - * Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * @param shipAddressUsageInd Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo shipAddressUsageInd(ShipAddressUsageIndEnum shipAddressUsageInd) { @@ -919,13 +768,8 @@ public AcctInfo shipAddressUsageInd(ShipAddressUsageIndEnum shipAddressUsageInd) } /** - * Indicates when the shipping address used for this transaction was first used with the 3DS - * Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — - * 30–60 days * **04** — More than 60 days - * - * @return shipAddressUsageInd Indicates when the shipping address used for this transaction was - * first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — - * Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * @return shipAddressUsageInd Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days */ @JsonProperty(JSON_PROPERTY_SHIP_ADDRESS_USAGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -934,13 +778,9 @@ public ShipAddressUsageIndEnum getShipAddressUsageInd() { } /** - * Indicates when the shipping address used for this transaction was first used with the 3DS - * Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — - * 30–60 days * **04** — More than 60 days + * Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days * - * @param shipAddressUsageInd Indicates when the shipping address used for this transaction was - * first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — - * Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * @param shipAddressUsageInd Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days */ @JsonProperty(JSON_PROPERTY_SHIP_ADDRESS_USAGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -949,13 +789,9 @@ public void setShipAddressUsageInd(ShipAddressUsageIndEnum shipAddressUsageInd) } /** - * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this - * transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — - * Account Name different to shipping Name + * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — Account Name different to shipping Name * - * @param shipNameIndicator Indicates if the Cardholder Name on the account is identical to the - * shipping Name used for this transaction. Allowed values: * **01** — Account Name identical - * to shipping Name * **02** — Account Name different to shipping Name + * @param shipNameIndicator Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — Account Name different to shipping Name * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo shipNameIndicator(ShipNameIndicatorEnum shipNameIndicator) { @@ -964,13 +800,8 @@ public AcctInfo shipNameIndicator(ShipNameIndicatorEnum shipNameIndicator) { } /** - * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this - * transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — - * Account Name different to shipping Name - * - * @return shipNameIndicator Indicates if the Cardholder Name on the account is identical to the - * shipping Name used for this transaction. Allowed values: * **01** — Account Name identical - * to shipping Name * **02** — Account Name different to shipping Name + * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — Account Name different to shipping Name + * @return shipNameIndicator Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — Account Name different to shipping Name */ @JsonProperty(JSON_PROPERTY_SHIP_NAME_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -979,13 +810,9 @@ public ShipNameIndicatorEnum getShipNameIndicator() { } /** - * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this - * transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — - * Account Name different to shipping Name + * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — Account Name different to shipping Name * - * @param shipNameIndicator Indicates if the Cardholder Name on the account is identical to the - * shipping Name used for this transaction. Allowed values: * **01** — Account Name identical - * to shipping Name * **02** — Account Name different to shipping Name + * @param shipNameIndicator Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — Account Name different to shipping Name */ @JsonProperty(JSON_PROPERTY_SHIP_NAME_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -994,13 +821,9 @@ public void setShipNameIndicator(ShipNameIndicatorEnum shipNameIndicator) { } /** - * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous - * fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been - * observed * **02** — Suspicious activity has been observed + * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been observed * **02** — Suspicious activity has been observed * - * @param suspiciousAccActivity Indicates whether the 3DS Requestor has experienced suspicious - * activity (including previous fraud) on the cardholder account. Allowed values: * **01** — - * No suspicious activity has been observed * **02** — Suspicious activity has been observed + * @param suspiciousAccActivity Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been observed * **02** — Suspicious activity has been observed * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo suspiciousAccActivity(SuspiciousAccActivityEnum suspiciousAccActivity) { @@ -1009,13 +832,8 @@ public AcctInfo suspiciousAccActivity(SuspiciousAccActivityEnum suspiciousAccAct } /** - * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous - * fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been - * observed * **02** — Suspicious activity has been observed - * - * @return suspiciousAccActivity Indicates whether the 3DS Requestor has experienced suspicious - * activity (including previous fraud) on the cardholder account. Allowed values: * **01** — - * No suspicious activity has been observed * **02** — Suspicious activity has been observed + * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been observed * **02** — Suspicious activity has been observed + * @return suspiciousAccActivity Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been observed * **02** — Suspicious activity has been observed */ @JsonProperty(JSON_PROPERTY_SUSPICIOUS_ACC_ACTIVITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1024,13 +842,9 @@ public SuspiciousAccActivityEnum getSuspiciousAccActivity() { } /** - * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous - * fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been - * observed * **02** — Suspicious activity has been observed + * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been observed * **02** — Suspicious activity has been observed * - * @param suspiciousAccActivity Indicates whether the 3DS Requestor has experienced suspicious - * activity (including previous fraud) on the cardholder account. Allowed values: * **01** — - * No suspicious activity has been observed * **02** — Suspicious activity has been observed + * @param suspiciousAccActivity Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been observed * **02** — Suspicious activity has been observed */ @JsonProperty(JSON_PROPERTY_SUSPICIOUS_ACC_ACTIVITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1039,12 +853,9 @@ public void setSuspiciousAccActivity(SuspiciousAccActivityEnum suspiciousAccActi } /** - * Number of transactions (successful and abandoned) for this cardholder account with the 3DS - * Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. + * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. * - * @param txnActivityDay Number of transactions (successful and abandoned) for this cardholder - * account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max - * length: 3 characters. + * @param txnActivityDay Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo txnActivityDay(String txnActivityDay) { @@ -1053,12 +864,8 @@ public AcctInfo txnActivityDay(String txnActivityDay) { } /** - * Number of transactions (successful and abandoned) for this cardholder account with the 3DS - * Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. - * - * @return txnActivityDay Number of transactions (successful and abandoned) for this cardholder - * account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max - * length: 3 characters. + * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. + * @return txnActivityDay Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. */ @JsonProperty(JSON_PROPERTY_TXN_ACTIVITY_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1067,12 +874,9 @@ public String getTxnActivityDay() { } /** - * Number of transactions (successful and abandoned) for this cardholder account with the 3DS - * Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. + * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. * - * @param txnActivityDay Number of transactions (successful and abandoned) for this cardholder - * account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max - * length: 3 characters. + * @param txnActivityDay Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. */ @JsonProperty(JSON_PROPERTY_TXN_ACTIVITY_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1081,12 +885,9 @@ public void setTxnActivityDay(String txnActivityDay) { } /** - * Number of transactions (successful and abandoned) for this cardholder account with the 3DS - * Requestor across all payment accounts in the previous year. Max length: 3 characters. + * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous year. Max length: 3 characters. * - * @param txnActivityYear Number of transactions (successful and abandoned) for this cardholder - * account with the 3DS Requestor across all payment accounts in the previous year. Max - * length: 3 characters. + * @param txnActivityYear Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous year. Max length: 3 characters. * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo txnActivityYear(String txnActivityYear) { @@ -1095,12 +896,8 @@ public AcctInfo txnActivityYear(String txnActivityYear) { } /** - * Number of transactions (successful and abandoned) for this cardholder account with the 3DS - * Requestor across all payment accounts in the previous year. Max length: 3 characters. - * - * @return txnActivityYear Number of transactions (successful and abandoned) for this cardholder - * account with the 3DS Requestor across all payment accounts in the previous year. Max - * length: 3 characters. + * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous year. Max length: 3 characters. + * @return txnActivityYear Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous year. Max length: 3 characters. */ @JsonProperty(JSON_PROPERTY_TXN_ACTIVITY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1109,12 +906,9 @@ public String getTxnActivityYear() { } /** - * Number of transactions (successful and abandoned) for this cardholder account with the 3DS - * Requestor across all payment accounts in the previous year. Max length: 3 characters. + * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous year. Max length: 3 characters. * - * @param txnActivityYear Number of transactions (successful and abandoned) for this cardholder - * account with the 3DS Requestor across all payment accounts in the previous year. Max - * length: 3 characters. + * @param txnActivityYear Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous year. Max length: 3 characters. */ @JsonProperty(JSON_PROPERTY_TXN_ACTIVITY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1122,7 +916,9 @@ public void setTxnActivityYear(String txnActivityYear) { this.txnActivityYear = txnActivityYear; } - /** Return true if this AcctInfo object is equal to o. */ + /** + * Return true if this AcctInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -1132,43 +928,27 @@ public boolean equals(Object o) { return false; } AcctInfo acctInfo = (AcctInfo) o; - return Objects.equals(this.chAccAgeInd, acctInfo.chAccAgeInd) - && Objects.equals(this.chAccChange, acctInfo.chAccChange) - && Objects.equals(this.chAccChangeInd, acctInfo.chAccChangeInd) - && Objects.equals(this.chAccPwChange, acctInfo.chAccPwChange) - && Objects.equals(this.chAccPwChangeInd, acctInfo.chAccPwChangeInd) - && Objects.equals(this.chAccString, acctInfo.chAccString) - && Objects.equals(this.nbPurchaseAccount, acctInfo.nbPurchaseAccount) - && Objects.equals(this.paymentAccAge, acctInfo.paymentAccAge) - && Objects.equals(this.paymentAccInd, acctInfo.paymentAccInd) - && Objects.equals(this.provisionAttemptsDay, acctInfo.provisionAttemptsDay) - && Objects.equals(this.shipAddressUsage, acctInfo.shipAddressUsage) - && Objects.equals(this.shipAddressUsageInd, acctInfo.shipAddressUsageInd) - && Objects.equals(this.shipNameIndicator, acctInfo.shipNameIndicator) - && Objects.equals(this.suspiciousAccActivity, acctInfo.suspiciousAccActivity) - && Objects.equals(this.txnActivityDay, acctInfo.txnActivityDay) - && Objects.equals(this.txnActivityYear, acctInfo.txnActivityYear); + return Objects.equals(this.chAccAgeInd, acctInfo.chAccAgeInd) && + Objects.equals(this.chAccChange, acctInfo.chAccChange) && + Objects.equals(this.chAccChangeInd, acctInfo.chAccChangeInd) && + Objects.equals(this.chAccPwChange, acctInfo.chAccPwChange) && + Objects.equals(this.chAccPwChangeInd, acctInfo.chAccPwChangeInd) && + Objects.equals(this.chAccString, acctInfo.chAccString) && + Objects.equals(this.nbPurchaseAccount, acctInfo.nbPurchaseAccount) && + Objects.equals(this.paymentAccAge, acctInfo.paymentAccAge) && + Objects.equals(this.paymentAccInd, acctInfo.paymentAccInd) && + Objects.equals(this.provisionAttemptsDay, acctInfo.provisionAttemptsDay) && + Objects.equals(this.shipAddressUsage, acctInfo.shipAddressUsage) && + Objects.equals(this.shipAddressUsageInd, acctInfo.shipAddressUsageInd) && + Objects.equals(this.shipNameIndicator, acctInfo.shipNameIndicator) && + Objects.equals(this.suspiciousAccActivity, acctInfo.suspiciousAccActivity) && + Objects.equals(this.txnActivityDay, acctInfo.txnActivityDay) && + Objects.equals(this.txnActivityYear, acctInfo.txnActivityYear); } @Override public int hashCode() { - return Objects.hash( - chAccAgeInd, - chAccChange, - chAccChangeInd, - chAccPwChange, - chAccPwChangeInd, - chAccString, - nbPurchaseAccount, - paymentAccAge, - paymentAccInd, - provisionAttemptsDay, - shipAddressUsage, - shipAddressUsageInd, - shipNameIndicator, - suspiciousAccActivity, - txnActivityDay, - txnActivityYear); + return Objects.hash(chAccAgeInd, chAccChange, chAccChangeInd, chAccPwChange, chAccPwChangeInd, chAccString, nbPurchaseAccount, paymentAccAge, paymentAccInd, provisionAttemptsDay, shipAddressUsage, shipAddressUsageInd, shipNameIndicator, suspiciousAccActivity, txnActivityDay, txnActivityYear); } @Override @@ -1184,17 +964,11 @@ public String toString() { sb.append(" nbPurchaseAccount: ").append(toIndentedString(nbPurchaseAccount)).append("\n"); sb.append(" paymentAccAge: ").append(toIndentedString(paymentAccAge)).append("\n"); sb.append(" paymentAccInd: ").append(toIndentedString(paymentAccInd)).append("\n"); - sb.append(" provisionAttemptsDay: ") - .append(toIndentedString(provisionAttemptsDay)) - .append("\n"); + sb.append(" provisionAttemptsDay: ").append(toIndentedString(provisionAttemptsDay)).append("\n"); sb.append(" shipAddressUsage: ").append(toIndentedString(shipAddressUsage)).append("\n"); - sb.append(" shipAddressUsageInd: ") - .append(toIndentedString(shipAddressUsageInd)) - .append("\n"); + sb.append(" shipAddressUsageInd: ").append(toIndentedString(shipAddressUsageInd)).append("\n"); sb.append(" shipNameIndicator: ").append(toIndentedString(shipNameIndicator)).append("\n"); - sb.append(" suspiciousAccActivity: ") - .append(toIndentedString(suspiciousAccActivity)) - .append("\n"); + sb.append(" suspiciousAccActivity: ").append(toIndentedString(suspiciousAccActivity)).append("\n"); sb.append(" txnActivityDay: ").append(toIndentedString(txnActivityDay)).append("\n"); sb.append(" txnActivityYear: ").append(toIndentedString(txnActivityYear)).append("\n"); sb.append("}"); @@ -1202,7 +976,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1211,7 +986,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AcctInfo given an JSON string * * @param jsonString JSON string @@ -1221,12 +996,11 @@ private String toIndentedString(Object o) { public static AcctInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AcctInfo.class); } - - /** - * Convert an instance of AcctInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AcctInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AchDetails.java b/src/main/java/com/adyen/model/checkout/AchDetails.java index 8bc042147..9fcdc5e09 100644 --- a/src/main/java/com/adyen/model/checkout/AchDetails.java +++ b/src/main/java/com/adyen/model/checkout/AchDetails.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** AchDetails */ +/** + * AchDetails + */ @JsonPropertyOrder({ AchDetails.JSON_PROPERTY_ACCOUNT_HOLDER_TYPE, AchDetails.JSON_PROPERTY_BANK_ACCOUNT_NUMBER, @@ -36,9 +41,13 @@ AchDetails.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID, AchDetails.JSON_PROPERTY_TYPE }) + public class AchDetails { - /** The account holder type (personal or business). */ + /** + * The account holder type (personal or business). + */ public enum AccountHolderTypeEnum { + BUSINESS(String.valueOf("business")), PERSONAL(String.valueOf("personal")); @@ -48,7 +57,7 @@ public enum AccountHolderTypeEnum { private String value; AccountHolderTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,11 +78,7 @@ public static AccountHolderTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AccountHolderTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AccountHolderTypeEnum.values())); + LOG.warning("AccountHolderTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AccountHolderTypeEnum.values())); return null; } } @@ -84,8 +89,11 @@ public static AccountHolderTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_BANK_ACCOUNT_NUMBER = "bankAccountNumber"; private String bankAccountNumber; - /** The bank account type (checking, savings...). */ + /** + * The bank account type (checking, savings...). + */ public enum BankAccountTypeEnum { + BALANCE(String.valueOf("balance")), CHECKING(String.valueOf("checking")), @@ -105,7 +113,7 @@ public enum BankAccountTypeEnum { private String value; BankAccountTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -126,11 +134,7 @@ public static BankAccountTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "BankAccountTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(BankAccountTypeEnum.values())); + LOG.warning("BankAccountTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(BankAccountTypeEnum.values())); return null; } } @@ -144,8 +148,7 @@ public static BankAccountTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; - public static final String JSON_PROPERTY_ENCRYPTED_BANK_ACCOUNT_NUMBER = - "encryptedBankAccountNumber"; + public static final String JSON_PROPERTY_ENCRYPTED_BANK_ACCOUNT_NUMBER = "encryptedBankAccountNumber"; private String encryptedBankAccountNumber; public static final String JSON_PROPERTY_ENCRYPTED_BANK_LOCATION_ID = "encryptedBankLocationId"; @@ -164,8 +167,11 @@ public static BankAccountTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_ID = "transferInstrumentId"; private String transferInstrumentId; - /** **ach** */ + /** + * **ach** + */ public enum TypeEnum { + ACH(String.valueOf("ach")), ACH_PLAID(String.valueOf("ach_plaid")); @@ -175,7 +181,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -196,11 +202,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -208,7 +210,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AchDetails() {} + public AchDetails() { + } /** * The account holder type (personal or business). @@ -223,7 +226,6 @@ public AchDetails accountHolderType(AccountHolderTypeEnum accountHolderType) { /** * The account holder type (personal or business). - * * @return accountHolderType The account holder type (personal or business). */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_TYPE) @@ -256,7 +258,6 @@ public AchDetails bankAccountNumber(String bankAccountNumber) { /** * The bank account number (without separators). - * * @return bankAccountNumber The bank account number (without separators). */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_NUMBER) @@ -289,7 +290,6 @@ public AchDetails bankAccountType(BankAccountTypeEnum bankAccountType) { /** * The bank account type (checking, savings...). - * * @return bankAccountType The bank account type (checking, savings...). */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_TYPE) @@ -312,8 +312,7 @@ public void setBankAccountType(BankAccountTypeEnum bankAccountType) { /** * The bank routing number of the account. The field value is `nil` in most cases. * - * @param bankLocationId The bank routing number of the account. The field value is - * `nil` in most cases. + * @param bankLocationId The bank routing number of the account. The field value is `nil` in most cases. * @return the current {@code AchDetails} instance, allowing for method chaining */ public AchDetails bankLocationId(String bankLocationId) { @@ -323,9 +322,7 @@ public AchDetails bankLocationId(String bankLocationId) { /** * The bank routing number of the account. The field value is `nil` in most cases. - * - * @return bankLocationId The bank routing number of the account. The field value is - * `nil` in most cases. + * @return bankLocationId The bank routing number of the account. The field value is `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_BANK_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -336,8 +333,7 @@ public String getBankLocationId() { /** * The bank routing number of the account. The field value is `nil` in most cases. * - * @param bankLocationId The bank routing number of the account. The field value is - * `nil` in most cases. + * @param bankLocationId The bank routing number of the account. The field value is `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_BANK_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -358,7 +354,6 @@ public AchDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -381,8 +376,7 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { /** * Encrypted bank account number. The bank account number (without separators). * - * @param encryptedBankAccountNumber Encrypted bank account number. The bank account number - * (without separators). + * @param encryptedBankAccountNumber Encrypted bank account number. The bank account number (without separators). * @return the current {@code AchDetails} instance, allowing for method chaining */ public AchDetails encryptedBankAccountNumber(String encryptedBankAccountNumber) { @@ -392,9 +386,7 @@ public AchDetails encryptedBankAccountNumber(String encryptedBankAccountNumber) /** * Encrypted bank account number. The bank account number (without separators). - * - * @return encryptedBankAccountNumber Encrypted bank account number. The bank account number - * (without separators). + * @return encryptedBankAccountNumber Encrypted bank account number. The bank account number (without separators). */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_BANK_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -405,8 +397,7 @@ public String getEncryptedBankAccountNumber() { /** * Encrypted bank account number. The bank account number (without separators). * - * @param encryptedBankAccountNumber Encrypted bank account number. The bank account number - * (without separators). + * @param encryptedBankAccountNumber Encrypted bank account number. The bank account number (without separators). */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_BANK_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -415,11 +406,9 @@ public void setEncryptedBankAccountNumber(String encryptedBankAccountNumber) { } /** - * Encrypted location id. The bank routing number of the account. The field value is - * `nil` in most cases. + * Encrypted location id. The bank routing number of the account. The field value is `nil` in most cases. * - * @param encryptedBankLocationId Encrypted location id. The bank routing number of the account. - * The field value is `nil` in most cases. + * @param encryptedBankLocationId Encrypted location id. The bank routing number of the account. The field value is `nil` in most cases. * @return the current {@code AchDetails} instance, allowing for method chaining */ public AchDetails encryptedBankLocationId(String encryptedBankLocationId) { @@ -428,11 +417,8 @@ public AchDetails encryptedBankLocationId(String encryptedBankLocationId) { } /** - * Encrypted location id. The bank routing number of the account. The field value is - * `nil` in most cases. - * - * @return encryptedBankLocationId Encrypted location id. The bank routing number of the account. - * The field value is `nil` in most cases. + * Encrypted location id. The bank routing number of the account. The field value is `nil` in most cases. + * @return encryptedBankLocationId Encrypted location id. The bank routing number of the account. The field value is `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_BANK_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -441,11 +427,9 @@ public String getEncryptedBankLocationId() { } /** - * Encrypted location id. The bank routing number of the account. The field value is - * `nil` in most cases. + * Encrypted location id. The bank routing number of the account. The field value is `nil` in most cases. * - * @param encryptedBankLocationId Encrypted location id. The bank routing number of the account. - * The field value is `nil` in most cases. + * @param encryptedBankLocationId Encrypted location id. The bank routing number of the account. The field value is `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_BANK_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -454,25 +438,9 @@ public void setEncryptedBankLocationId(String encryptedBankLocationId) { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we - * automatically replace some of them with corresponding Latin characters to meet the FATF - * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter - * Møller is converted to Peter Mller, because banks don't accept 'ø'. After - * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), - * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - - * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details - * don't match the required format, the response returns the error message: 203 'Invalid - * bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. * - * @param ownerName The name of the bank account holder. If you submit a name with non-Latin - * characters, we automatically replace some of them with corresponding Latin characters to - * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted - * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept - * 'ø'. After replacement, the ownerName must have at least three alphanumeric - * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, - * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - - * allowed. > If provided details don't match the required format, the response returns - * the error message: 203 'Invalid bank account holder name'. + * @param ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. * @return the current {@code AchDetails} instance, allowing for method chaining */ public AchDetails ownerName(String ownerName) { @@ -481,25 +449,8 @@ public AchDetails ownerName(String ownerName) { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we - * automatically replace some of them with corresponding Latin characters to meet the FATF - * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter - * Møller is converted to Peter Mller, because banks don't accept 'ø'. After - * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), - * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - - * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details - * don't match the required format, the response returns the error message: 203 'Invalid - * bank account holder name'. - * - * @return ownerName The name of the bank account holder. If you submit a name with non-Latin - * characters, we automatically replace some of them with corresponding Latin characters to - * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted - * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept - * 'ø'. After replacement, the ownerName must have at least three alphanumeric - * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, - * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - - * allowed. > If provided details don't match the required format, the response returns - * the error message: 203 'Invalid bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * @return ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -508,25 +459,9 @@ public String getOwnerName() { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we - * automatically replace some of them with corresponding Latin characters to meet the FATF - * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter - * Møller is converted to Peter Mller, because banks don't accept 'ø'. After - * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), - * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - - * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details - * don't match the required format, the response returns the error message: 203 'Invalid - * bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. * - * @param ownerName The name of the bank account holder. If you submit a name with non-Latin - * characters, we automatically replace some of them with corresponding Latin characters to - * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted - * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept - * 'ø'. After replacement, the ownerName must have at least three alphanumeric - * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, - * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - - * allowed. > If provided details don't match the required format, the response returns - * the error message: 203 'Invalid bank account holder name'. + * @param ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -535,13 +470,13 @@ public void setOwnerName(String ownerName) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code AchDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public AchDetails recurringDetailReference(String recurringDetailReference) { @@ -550,11 +485,8 @@ public AchDetails recurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -565,12 +497,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -580,11 +512,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code AchDetails} instance, allowing for method chaining */ public AchDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -593,11 +523,8 @@ public AchDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -606,11 +533,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -619,11 +544,9 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { } /** - * The unique identifier of your user's verified transfer instrument, which you can use to top - * up their balance accounts. + * The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. * - * @param transferInstrumentId The unique identifier of your user's verified transfer - * instrument, which you can use to top up their balance accounts. + * @param transferInstrumentId The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. * @return the current {@code AchDetails} instance, allowing for method chaining */ public AchDetails transferInstrumentId(String transferInstrumentId) { @@ -632,11 +555,8 @@ public AchDetails transferInstrumentId(String transferInstrumentId) { } /** - * The unique identifier of your user's verified transfer instrument, which you can use to top - * up their balance accounts. - * - * @return transferInstrumentId The unique identifier of your user's verified transfer - * instrument, which you can use to top up their balance accounts. + * The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. + * @return transferInstrumentId The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -645,11 +565,9 @@ public String getTransferInstrumentId() { } /** - * The unique identifier of your user's verified transfer instrument, which you can use to top - * up their balance accounts. + * The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. * - * @param transferInstrumentId The unique identifier of your user's verified transfer - * instrument, which you can use to top up their balance accounts. + * @param transferInstrumentId The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -670,7 +588,6 @@ public AchDetails type(TypeEnum type) { /** * **ach** - * * @return type **ach** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -690,7 +607,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this AchDetails object is equal to o. */ + /** + * Return true if this AchDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -700,35 +619,23 @@ public boolean equals(Object o) { return false; } AchDetails achDetails = (AchDetails) o; - return Objects.equals(this.accountHolderType, achDetails.accountHolderType) - && Objects.equals(this.bankAccountNumber, achDetails.bankAccountNumber) - && Objects.equals(this.bankAccountType, achDetails.bankAccountType) - && Objects.equals(this.bankLocationId, achDetails.bankLocationId) - && Objects.equals(this.checkoutAttemptId, achDetails.checkoutAttemptId) - && Objects.equals(this.encryptedBankAccountNumber, achDetails.encryptedBankAccountNumber) - && Objects.equals(this.encryptedBankLocationId, achDetails.encryptedBankLocationId) - && Objects.equals(this.ownerName, achDetails.ownerName) - && Objects.equals(this.recurringDetailReference, achDetails.recurringDetailReference) - && Objects.equals(this.storedPaymentMethodId, achDetails.storedPaymentMethodId) - && Objects.equals(this.transferInstrumentId, achDetails.transferInstrumentId) - && Objects.equals(this.type, achDetails.type); + return Objects.equals(this.accountHolderType, achDetails.accountHolderType) && + Objects.equals(this.bankAccountNumber, achDetails.bankAccountNumber) && + Objects.equals(this.bankAccountType, achDetails.bankAccountType) && + Objects.equals(this.bankLocationId, achDetails.bankLocationId) && + Objects.equals(this.checkoutAttemptId, achDetails.checkoutAttemptId) && + Objects.equals(this.encryptedBankAccountNumber, achDetails.encryptedBankAccountNumber) && + Objects.equals(this.encryptedBankLocationId, achDetails.encryptedBankLocationId) && + Objects.equals(this.ownerName, achDetails.ownerName) && + Objects.equals(this.recurringDetailReference, achDetails.recurringDetailReference) && + Objects.equals(this.storedPaymentMethodId, achDetails.storedPaymentMethodId) && + Objects.equals(this.transferInstrumentId, achDetails.transferInstrumentId) && + Objects.equals(this.type, achDetails.type); } @Override public int hashCode() { - return Objects.hash( - accountHolderType, - bankAccountNumber, - bankAccountType, - bankLocationId, - checkoutAttemptId, - encryptedBankAccountNumber, - encryptedBankLocationId, - ownerName, - recurringDetailReference, - storedPaymentMethodId, - transferInstrumentId, - type); + return Objects.hash(accountHolderType, bankAccountNumber, bankAccountType, bankLocationId, checkoutAttemptId, encryptedBankAccountNumber, encryptedBankLocationId, ownerName, recurringDetailReference, storedPaymentMethodId, transferInstrumentId, type); } @Override @@ -740,29 +647,20 @@ public String toString() { sb.append(" bankAccountType: ").append(toIndentedString(bankAccountType)).append("\n"); sb.append(" bankLocationId: ").append(toIndentedString(bankLocationId)).append("\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); - sb.append(" encryptedBankAccountNumber: ") - .append(toIndentedString(encryptedBankAccountNumber)) - .append("\n"); - sb.append(" encryptedBankLocationId: ") - .append(toIndentedString(encryptedBankLocationId)) - .append("\n"); + sb.append(" encryptedBankAccountNumber: ").append(toIndentedString(encryptedBankAccountNumber)).append("\n"); + sb.append(" encryptedBankLocationId: ").append(toIndentedString(encryptedBankLocationId)).append("\n"); sb.append(" ownerName: ").append(toIndentedString(ownerName)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); - sb.append(" transferInstrumentId: ") - .append(toIndentedString(transferInstrumentId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" transferInstrumentId: ").append(toIndentedString(transferInstrumentId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -771,7 +669,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AchDetails given an JSON string * * @param jsonString JSON string @@ -781,12 +679,11 @@ private String toIndentedString(Object o) { public static AchDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AchDetails.class); } - - /** - * Convert an instance of AchDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AchDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalData3DSecure.java b/src/main/java/com/adyen/model/checkout/AdditionalData3DSecure.java index f70e4ecfc..0ead93c5b 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalData3DSecure.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalData3DSecure.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** AdditionalData3DSecure */ +/** + * AdditionalData3DSecure + */ @JsonPropertyOrder({ AdditionalData3DSecure.JSON_PROPERTY_ALLOW3_D_S2, AdditionalData3DSecure.JSON_PROPERTY_CHALLENGE_WINDOW_SIZE, @@ -30,18 +35,17 @@ AdditionalData3DSecure.JSON_PROPERTY_SCA_EXEMPTION, AdditionalData3DSecure.JSON_PROPERTY_THREE_D_S_VERSION }) + public class AdditionalData3DSecure { public static final String JSON_PROPERTY_ALLOW3_D_S2 = "allow3DS2"; - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.threeDSRequestData.nativeThreeDS` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.threeDSRequestData.nativeThreeDS` instead. private String allow3DS2; /** - * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * - * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size - * of 600x400 * **05** - Fullscreen + * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen */ public enum ChallengeWindowSizeEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -57,7 +61,7 @@ public enum ChallengeWindowSizeEnum { private String value; ChallengeWindowSizeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -78,11 +82,7 @@ public static ChallengeWindowSizeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ChallengeWindowSizeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ChallengeWindowSizeEnum.values())); + LOG.warning("ChallengeWindowSizeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChallengeWindowSizeEnum.values())); return null; } } @@ -91,8 +91,7 @@ public static ChallengeWindowSizeEnum fromValue(String value) { private ChallengeWindowSizeEnum challengeWindowSize; public static final String JSON_PROPERTY_EXECUTE_THREE_D = "executeThreeD"; - @Deprecated // deprecated since Adyen Checkout API v69: Use - // [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead + @Deprecated // deprecated since Adyen Checkout API v69: Use [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead private String executeThreeD; public static final String JSON_PROPERTY_MPI_IMPLEMENTATION_TYPE = "mpiImplementationType"; @@ -104,76 +103,30 @@ public static ChallengeWindowSizeEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_VERSION = "threeDSVersion"; private String threeDSVersion; - public AdditionalData3DSecure() {} + public AdditionalData3DSecure() { + } /** - * Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. - * Send this parameter when you are using `/payments` endpoint with any of our [native - * 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This - * parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if - * you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or - * send the `executeThreeD` parameter. Possible values: * **true** - Ready to support - * native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure - * 2. Adyen selects redirect or native authentication based on your configuration to optimize - * authorization rates and improve the shopper's experience. * **false** – Not ready to - * support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication - * instead, based on your configuration. + * Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen selects redirect or native authentication based on your configuration to optimize authorization rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication instead, based on your configuration. * - * @param allow3DS2 Indicates if you are able to process 3D Secure 2 transactions natively on your - * payment page. Send this parameter when you are using `/payments` endpoint with - * any of our [native 3D Secure 2 - * solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This - * parameter only indicates readiness to support native 3D Secure 2 authentication. To specify - * if you _want_ to perform 3D Secure, use [Dynamic 3D - * Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` - * parameter. Possible values: * **true** - Ready to support native 3D Secure 2 - * authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen - * selects redirect or native authentication based on your configuration to optimize - * authorization rates and improve the shopper's experience. * **false** – Not ready to - * support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication - * instead, based on your configuration. + * @param allow3DS2 Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen selects redirect or native authentication based on your configuration to optimize authorization rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication instead, based on your configuration. * @return the current {@code AdditionalData3DSecure} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v69 Use - * `authenticationData.threeDSRequestData.nativeThreeDS` instead. + * + * @deprecated since Adyen Checkout API v69 + * Use `authenticationData.threeDSRequestData.nativeThreeDS` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.threeDSRequestData.nativeThreeDS` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.threeDSRequestData.nativeThreeDS` instead. public AdditionalData3DSecure allow3DS2(String allow3DS2) { this.allow3DS2 = allow3DS2; return this; } /** - * Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. - * Send this parameter when you are using `/payments` endpoint with any of our [native - * 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This - * parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if - * you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or - * send the `executeThreeD` parameter. Possible values: * **true** - Ready to support - * native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure - * 2. Adyen selects redirect or native authentication based on your configuration to optimize - * authorization rates and improve the shopper's experience. * **false** – Not ready to - * support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication - * instead, based on your configuration. - * - * @return allow3DS2 Indicates if you are able to process 3D Secure 2 transactions natively on - * your payment page. Send this parameter when you are using `/payments` endpoint - * with any of our [native 3D Secure 2 - * solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This - * parameter only indicates readiness to support native 3D Secure 2 authentication. To specify - * if you _want_ to perform 3D Secure, use [Dynamic 3D - * Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` - * parameter. Possible values: * **true** - Ready to support native 3D Secure 2 - * authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen - * selects redirect or native authentication based on your configuration to optimize - * authorization rates and improve the shopper's experience. * **false** – Not ready to - * support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication - * instead, based on your configuration. - * @deprecated // deprecated since Adyen Checkout API v69: Use - * `authenticationData.threeDSRequestData.nativeThreeDS` instead. + * Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen selects redirect or native authentication based on your configuration to optimize authorization rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication instead, based on your configuration. + * @return allow3DS2 Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen selects redirect or native authentication based on your configuration to optimize authorization rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication instead, based on your configuration. + * @deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.threeDSRequestData.nativeThreeDS` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.threeDSRequestData.nativeThreeDS` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.threeDSRequestData.nativeThreeDS` instead. @JsonProperty(JSON_PROPERTY_ALLOW3_D_S2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAllow3DS2() { @@ -181,36 +134,14 @@ public String getAllow3DS2() { } /** - * Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. - * Send this parameter when you are using `/payments` endpoint with any of our [native - * 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This - * parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if - * you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or - * send the `executeThreeD` parameter. Possible values: * **true** - Ready to support - * native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure - * 2. Adyen selects redirect or native authentication based on your configuration to optimize - * authorization rates and improve the shopper's experience. * **false** – Not ready to - * support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication - * instead, based on your configuration. + * Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen selects redirect or native authentication based on your configuration to optimize authorization rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication instead, based on your configuration. + * + * @param allow3DS2 Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen selects redirect or native authentication based on your configuration to optimize authorization rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication instead, based on your configuration. * - * @param allow3DS2 Indicates if you are able to process 3D Secure 2 transactions natively on your - * payment page. Send this parameter when you are using `/payments` endpoint with - * any of our [native 3D Secure 2 - * solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This - * parameter only indicates readiness to support native 3D Secure 2 authentication. To specify - * if you _want_ to perform 3D Secure, use [Dynamic 3D - * Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` - * parameter. Possible values: * **true** - Ready to support native 3D Secure 2 - * authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen - * selects redirect or native authentication based on your configuration to optimize - * authorization rates and improve the shopper's experience. * **false** – Not ready to - * support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication - * instead, based on your configuration. - * @deprecated since Adyen Checkout API v69 Use - * `authenticationData.threeDSRequestData.nativeThreeDS` instead. + * @deprecated since Adyen Checkout API v69 + * Use `authenticationData.threeDSRequestData.nativeThreeDS` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.threeDSRequestData.nativeThreeDS` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.threeDSRequestData.nativeThreeDS` instead. @JsonProperty(JSON_PROPERTY_ALLOW3_D_S2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllow3DS2(String allow3DS2) { @@ -218,13 +149,9 @@ public void setAllow3DS2(String allow3DS2) { } /** - * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * - * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size - * of 600x400 * **05** - Fullscreen + * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen * - * @param challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the - * cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - * - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + * @param challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen * @return the current {@code AdditionalData3DSecure} instance, allowing for method chaining */ public AdditionalData3DSecure challengeWindowSize(ChallengeWindowSizeEnum challengeWindowSize) { @@ -233,13 +160,8 @@ public AdditionalData3DSecure challengeWindowSize(ChallengeWindowSizeEnum challe } /** - * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * - * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size - * of 600x400 * **05** - Fullscreen - * - * @return challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the - * cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - * - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + * @return challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen */ @JsonProperty(JSON_PROPERTY_CHALLENGE_WINDOW_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -248,13 +170,9 @@ public ChallengeWindowSizeEnum getChallengeWindowSize() { } /** - * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * - * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size - * of 600x400 * **05** - Fullscreen + * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen * - * @param challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the - * cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - * - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + * @param challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen */ @JsonProperty(JSON_PROPERTY_CHALLENGE_WINDOW_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -263,49 +181,26 @@ public void setChallengeWindowSize(ChallengeWindowSizeEnum challengeWindowSize) } /** - * Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, - * you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for - * applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** - * – Don't perform 3D Secure authentication. Note that this setting results in refusals if the - * issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. + * Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. * - * @param executeThreeD Indicates if you want to perform 3D Secure authentication on a - * transaction. > Alternatively, you can use [Dynamic 3D - * Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. - * Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't - * perform 3D Secure authentication. Note that this setting results in refusals if the issuer - * mandates 3D Secure because of the PSD2 directive or other, national regulations. + * @param executeThreeD Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. * @return the current {@code AdditionalData3DSecure} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v69 Use - * [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) - * instead + * + * @deprecated since Adyen Checkout API v69 + * Use [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead + @Deprecated // deprecated since Adyen Checkout API v69: Use [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead public AdditionalData3DSecure executeThreeD(String executeThreeD) { this.executeThreeD = executeThreeD; return this; } /** - * Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, - * you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for - * applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** - * – Don't perform 3D Secure authentication. Note that this setting results in refusals if the - * issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. - * - * @return executeThreeD Indicates if you want to perform 3D Secure authentication on a - * transaction. > Alternatively, you can use [Dynamic 3D - * Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. - * Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't - * perform 3D Secure authentication. Note that this setting results in refusals if the issuer - * mandates 3D Secure because of the PSD2 directive or other, national regulations. - * @deprecated // deprecated since Adyen Checkout API v69: Use - * [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) - * instead + * Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. + * @return executeThreeD Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. + * @deprecated // deprecated since Adyen Checkout API v69: Use [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead + @Deprecated // deprecated since Adyen Checkout API v69: Use [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead @JsonProperty(JSON_PROPERTY_EXECUTE_THREE_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getExecuteThreeD() { @@ -313,24 +208,14 @@ public String getExecuteThreeD() { } /** - * Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, - * you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for - * applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** - * – Don't perform 3D Secure authentication. Note that this setting results in refusals if the - * issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. + * Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. + * + * @param executeThreeD Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. * - * @param executeThreeD Indicates if you want to perform 3D Secure authentication on a - * transaction. > Alternatively, you can use [Dynamic 3D - * Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. - * Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't - * perform 3D Secure authentication. Note that this setting results in refusals if the issuer - * mandates 3D Secure because of the PSD2 directive or other, national regulations. - * @deprecated since Adyen Checkout API v69 Use - * [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) - * instead + * @deprecated since Adyen Checkout API v69 + * Use [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead + @Deprecated // deprecated since Adyen Checkout API v69: Use [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead @JsonProperty(JSON_PROPERTY_EXECUTE_THREE_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExecuteThreeD(String executeThreeD) { @@ -350,7 +235,6 @@ public AdditionalData3DSecure mpiImplementationType(String mpiImplementationType /** * In case of Secure+, this field must be set to **CUPSecurePlus**. - * * @return mpiImplementationType In case of Secure+, this field must be set to **CUPSecurePlus**. */ @JsonProperty(JSON_PROPERTY_MPI_IMPLEMENTATION_TYPE) @@ -371,15 +255,9 @@ public void setMpiImplementationType(String mpiImplementationType) { } /** - * Indicates the [exemption - * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) - * that you want to request for the transaction. Possible values: * **lowValue** * - * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * - * @param scaExemption Indicates the [exemption - * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) - * that you want to request for the transaction. Possible values: * **lowValue** * - * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * @param scaExemption Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * @return the current {@code AdditionalData3DSecure} instance, allowing for method chaining */ public AdditionalData3DSecure scaExemption(String scaExemption) { @@ -388,15 +266,8 @@ public AdditionalData3DSecure scaExemption(String scaExemption) { } /** - * Indicates the [exemption - * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) - * that you want to request for the transaction. Possible values: * **lowValue** * - * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** - * - * @return scaExemption Indicates the [exemption - * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) - * that you want to request for the transaction. Possible values: * **lowValue** * - * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * @return scaExemption Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** */ @JsonProperty(JSON_PROPERTY_SCA_EXEMPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -405,15 +276,9 @@ public String getScaExemption() { } /** - * Indicates the [exemption - * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) - * that you want to request for the transaction. Possible values: * **lowValue** * - * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * - * @param scaExemption Indicates the [exemption - * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) - * that you want to request for the transaction. Possible values: * **lowValue** * - * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * @param scaExemption Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** */ @JsonProperty(JSON_PROPERTY_SCA_EXEMPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -422,23 +287,9 @@ public void setScaExemption(String scaExemption) { } /** - * Indicates your preference for the 3D Secure version. > If you use this parameter, you - * override the checks from Adyen's Authentication Engine. We recommend to use this field only - * if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure - * version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support - * version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or - * 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply - * the fallback policy configured in your account. * If you the BIN is not enrolled, you will - * receive an error. + * Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen's Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. * If you the BIN is not enrolled, you will receive an error. * - * @param threeDSVersion Indicates your preference for the 3D Secure version. > If you use this - * parameter, you override the checks from Adyen's Authentication Engine. We recommend to - * use this field only if you have an extensive knowledge of 3D Secure. Possible values: * - * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If - * the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules - * apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in - * the `ARes`, we will apply the fallback policy configured in your account. * If - * you the BIN is not enrolled, you will receive an error. + * @param threeDSVersion Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen's Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. * If you the BIN is not enrolled, you will receive an error. * @return the current {@code AdditionalData3DSecure} instance, allowing for method chaining */ public AdditionalData3DSecure threeDSVersion(String threeDSVersion) { @@ -447,23 +298,8 @@ public AdditionalData3DSecure threeDSVersion(String threeDSVersion) { } /** - * Indicates your preference for the 3D Secure version. > If you use this parameter, you - * override the checks from Adyen's Authentication Engine. We recommend to use this field only - * if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure - * version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support - * version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or - * 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply - * the fallback policy configured in your account. * If you the BIN is not enrolled, you will - * receive an error. - * - * @return threeDSVersion Indicates your preference for the 3D Secure version. > If you use - * this parameter, you override the checks from Adyen's Authentication Engine. We - * recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible - * values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version - * 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The - * following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative - * `transStatus` in the `ARes`, we will apply the fallback policy - * configured in your account. * If you the BIN is not enrolled, you will receive an error. + * Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen's Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. * If you the BIN is not enrolled, you will receive an error. + * @return threeDSVersion Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen's Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. * If you the BIN is not enrolled, you will receive an error. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -472,23 +308,9 @@ public String getThreeDSVersion() { } /** - * Indicates your preference for the 3D Secure version. > If you use this parameter, you - * override the checks from Adyen's Authentication Engine. We recommend to use this field only - * if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure - * version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support - * version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or - * 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply - * the fallback policy configured in your account. * If you the BIN is not enrolled, you will - * receive an error. + * Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen's Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. * If you the BIN is not enrolled, you will receive an error. * - * @param threeDSVersion Indicates your preference for the 3D Secure version. > If you use this - * parameter, you override the checks from Adyen's Authentication Engine. We recommend to - * use this field only if you have an extensive knowledge of 3D Secure. Possible values: * - * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If - * the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules - * apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in - * the `ARes`, we will apply the fallback policy configured in your account. * If - * you the BIN is not enrolled, you will receive an error. + * @param threeDSVersion Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen's Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. * If you the BIN is not enrolled, you will receive an error. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -496,7 +318,9 @@ public void setThreeDSVersion(String threeDSVersion) { this.threeDSVersion = threeDSVersion; } - /** Return true if this AdditionalData3DSecure object is equal to o. */ + /** + * Return true if this AdditionalData3DSecure object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -506,23 +330,17 @@ public boolean equals(Object o) { return false; } AdditionalData3DSecure additionalData3DSecure = (AdditionalData3DSecure) o; - return Objects.equals(this.allow3DS2, additionalData3DSecure.allow3DS2) - && Objects.equals(this.challengeWindowSize, additionalData3DSecure.challengeWindowSize) - && Objects.equals(this.executeThreeD, additionalData3DSecure.executeThreeD) - && Objects.equals(this.mpiImplementationType, additionalData3DSecure.mpiImplementationType) - && Objects.equals(this.scaExemption, additionalData3DSecure.scaExemption) - && Objects.equals(this.threeDSVersion, additionalData3DSecure.threeDSVersion); + return Objects.equals(this.allow3DS2, additionalData3DSecure.allow3DS2) && + Objects.equals(this.challengeWindowSize, additionalData3DSecure.challengeWindowSize) && + Objects.equals(this.executeThreeD, additionalData3DSecure.executeThreeD) && + Objects.equals(this.mpiImplementationType, additionalData3DSecure.mpiImplementationType) && + Objects.equals(this.scaExemption, additionalData3DSecure.scaExemption) && + Objects.equals(this.threeDSVersion, additionalData3DSecure.threeDSVersion); } @Override public int hashCode() { - return Objects.hash( - allow3DS2, - challengeWindowSize, - executeThreeD, - mpiImplementationType, - scaExemption, - threeDSVersion); + return Objects.hash(allow3DS2, challengeWindowSize, executeThreeD, mpiImplementationType, scaExemption, threeDSVersion); } @Override @@ -530,13 +348,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalData3DSecure {\n"); sb.append(" allow3DS2: ").append(toIndentedString(allow3DS2)).append("\n"); - sb.append(" challengeWindowSize: ") - .append(toIndentedString(challengeWindowSize)) - .append("\n"); + sb.append(" challengeWindowSize: ").append(toIndentedString(challengeWindowSize)).append("\n"); sb.append(" executeThreeD: ").append(toIndentedString(executeThreeD)).append("\n"); - sb.append(" mpiImplementationType: ") - .append(toIndentedString(mpiImplementationType)) - .append("\n"); + sb.append(" mpiImplementationType: ").append(toIndentedString(mpiImplementationType)).append("\n"); sb.append(" scaExemption: ").append(toIndentedString(scaExemption)).append("\n"); sb.append(" threeDSVersion: ").append(toIndentedString(threeDSVersion)).append("\n"); sb.append("}"); @@ -544,7 +358,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -553,23 +368,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalData3DSecure given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalData3DSecure - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalData3DSecure + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalData3DSecure */ public static AdditionalData3DSecure fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalData3DSecure.class); } - - /** - * Convert an instance of AdditionalData3DSecure to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalData3DSecure to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataAirline.java b/src/main/java/com/adyen/model/checkout/AdditionalDataAirline.java index 5e580f112..df94ed14c 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataAirline.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataAirline.java @@ -2,22 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AdditionalDataAirline */ + +/** + * AdditionalDataAirline + */ @JsonPropertyOrder({ AdditionalDataAirline.JSON_PROPERTY_AIRLINE_AGENCY_INVOICE_NUMBER, AdditionalDataAirline.JSON_PROPERTY_AIRLINE_AGENCY_PLAN_NAME, @@ -49,9 +58,9 @@ AdditionalDataAirline.JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_CODE, AdditionalDataAirline.JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_NAME }) + public class AdditionalDataAirline { - public static final String JSON_PROPERTY_AIRLINE_AGENCY_INVOICE_NUMBER = - "airline.agency_invoice_number"; + public static final String JSON_PROPERTY_AIRLINE_AGENCY_INVOICE_NUMBER = "airline.agency_invoice_number"; private String airlineAgencyInvoiceNumber; public static final String JSON_PROPERTY_AIRLINE_AGENCY_PLAN_NAME = "airline.agency_plan_name"; @@ -60,19 +69,16 @@ public class AdditionalDataAirline { public static final String JSON_PROPERTY_AIRLINE_AIRLINE_CODE = "airline.airline_code"; private String airlineAirlineCode; - public static final String JSON_PROPERTY_AIRLINE_AIRLINE_DESIGNATOR_CODE = - "airline.airline_designator_code"; + public static final String JSON_PROPERTY_AIRLINE_AIRLINE_DESIGNATOR_CODE = "airline.airline_designator_code"; private String airlineAirlineDesignatorCode; public static final String JSON_PROPERTY_AIRLINE_BOARDING_FEE = "airline.boarding_fee"; private String airlineBoardingFee; - public static final String JSON_PROPERTY_AIRLINE_COMPUTERIZED_RESERVATION_SYSTEM = - "airline.computerized_reservation_system"; + public static final String JSON_PROPERTY_AIRLINE_COMPUTERIZED_RESERVATION_SYSTEM = "airline.computerized_reservation_system"; private String airlineComputerizedReservationSystem; - public static final String JSON_PROPERTY_AIRLINE_CUSTOMER_REFERENCE_NUMBER = - "airline.customer_reference_number"; + public static final String JSON_PROPERTY_AIRLINE_CUSTOMER_REFERENCE_NUMBER = "airline.customer_reference_number"; private String airlineCustomerReferenceNumber; public static final String JSON_PROPERTY_AIRLINE_DOCUMENT_TYPE = "airline.document_type"; @@ -87,82 +93,67 @@ public class AdditionalDataAirline { public static final String JSON_PROPERTY_AIRLINE_LEG_CARRIER_CODE = "airline.leg.carrier_code"; private String airlineLegCarrierCode; - public static final String JSON_PROPERTY_AIRLINE_LEG_CLASS_OF_TRAVEL = - "airline.leg.class_of_travel"; + public static final String JSON_PROPERTY_AIRLINE_LEG_CLASS_OF_TRAVEL = "airline.leg.class_of_travel"; private String airlineLegClassOfTravel; - public static final String JSON_PROPERTY_AIRLINE_LEG_DATE_OF_TRAVEL = - "airline.leg.date_of_travel"; + public static final String JSON_PROPERTY_AIRLINE_LEG_DATE_OF_TRAVEL = "airline.leg.date_of_travel"; private String airlineLegDateOfTravel; - public static final String JSON_PROPERTY_AIRLINE_LEG_DEPART_AIRPORT = - "airline.leg.depart_airport"; + public static final String JSON_PROPERTY_AIRLINE_LEG_DEPART_AIRPORT = "airline.leg.depart_airport"; private String airlineLegDepartAirport; public static final String JSON_PROPERTY_AIRLINE_LEG_DEPART_TAX = "airline.leg.depart_tax"; private String airlineLegDepartTax; - public static final String JSON_PROPERTY_AIRLINE_LEG_DESTINATION_CODE = - "airline.leg.destination_code"; + public static final String JSON_PROPERTY_AIRLINE_LEG_DESTINATION_CODE = "airline.leg.destination_code"; private String airlineLegDestinationCode; - public static final String JSON_PROPERTY_AIRLINE_LEG_FARE_BASE_CODE = - "airline.leg.fare_base_code"; + public static final String JSON_PROPERTY_AIRLINE_LEG_FARE_BASE_CODE = "airline.leg.fare_base_code"; private String airlineLegFareBaseCode; public static final String JSON_PROPERTY_AIRLINE_LEG_FLIGHT_NUMBER = "airline.leg.flight_number"; private String airlineLegFlightNumber; - public static final String JSON_PROPERTY_AIRLINE_LEG_STOP_OVER_CODE = - "airline.leg.stop_over_code"; + public static final String JSON_PROPERTY_AIRLINE_LEG_STOP_OVER_CODE = "airline.leg.stop_over_code"; private String airlineLegStopOverCode; - public static final String JSON_PROPERTY_AIRLINE_PASSENGER_DATE_OF_BIRTH = - "airline.passenger.date_of_birth"; + public static final String JSON_PROPERTY_AIRLINE_PASSENGER_DATE_OF_BIRTH = "airline.passenger.date_of_birth"; private String airlinePassengerDateOfBirth; - public static final String JSON_PROPERTY_AIRLINE_PASSENGER_FIRST_NAME = - "airline.passenger.first_name"; + public static final String JSON_PROPERTY_AIRLINE_PASSENGER_FIRST_NAME = "airline.passenger.first_name"; private String airlinePassengerFirstName; - public static final String JSON_PROPERTY_AIRLINE_PASSENGER_LAST_NAME = - "airline.passenger.last_name"; + public static final String JSON_PROPERTY_AIRLINE_PASSENGER_LAST_NAME = "airline.passenger.last_name"; private String airlinePassengerLastName; - public static final String JSON_PROPERTY_AIRLINE_PASSENGER_PHONE_NUMBER = - "airline.passenger.phone_number"; + public static final String JSON_PROPERTY_AIRLINE_PASSENGER_PHONE_NUMBER = "airline.passenger.phone_number"; private String airlinePassengerPhoneNumber; - public static final String JSON_PROPERTY_AIRLINE_PASSENGER_TRAVELLER_TYPE = - "airline.passenger.traveller_type"; + public static final String JSON_PROPERTY_AIRLINE_PASSENGER_TRAVELLER_TYPE = "airline.passenger.traveller_type"; private String airlinePassengerTravellerType; public static final String JSON_PROPERTY_AIRLINE_PASSENGER_NAME = "airline.passenger_name"; private String airlinePassengerName; - public static final String JSON_PROPERTY_AIRLINE_TICKET_ISSUE_ADDRESS = - "airline.ticket_issue_address"; + public static final String JSON_PROPERTY_AIRLINE_TICKET_ISSUE_ADDRESS = "airline.ticket_issue_address"; private String airlineTicketIssueAddress; public static final String JSON_PROPERTY_AIRLINE_TICKET_NUMBER = "airline.ticket_number"; private String airlineTicketNumber; - public static final String JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_CODE = - "airline.travel_agency_code"; + public static final String JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_CODE = "airline.travel_agency_code"; private String airlineTravelAgencyCode; - public static final String JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_NAME = - "airline.travel_agency_name"; + public static final String JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_NAME = "airline.travel_agency_name"; private String airlineTravelAgencyName; - public AdditionalDataAirline() {} + public AdditionalDataAirline() { + } /** - * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 - * character * maxLength: 6 characters + * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters * - * @param airlineAgencyInvoiceNumber The reference number for the invoice, issued by the agency. * - * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters + * @param airlineAgencyInvoiceNumber The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineAgencyInvoiceNumber(String airlineAgencyInvoiceNumber) { @@ -171,11 +162,8 @@ public AdditionalDataAirline airlineAgencyInvoiceNumber(String airlineAgencyInvo } /** - * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 - * character * maxLength: 6 characters - * - * @return airlineAgencyInvoiceNumber The reference number for the invoice, issued by the agency. - * * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters + * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters + * @return airlineAgencyInvoiceNumber The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_AGENCY_INVOICE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -184,11 +172,9 @@ public String getAirlineAgencyInvoiceNumber() { } /** - * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 - * character * maxLength: 6 characters + * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters * - * @param airlineAgencyInvoiceNumber The reference number for the invoice, issued by the agency. * - * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters + * @param airlineAgencyInvoiceNumber The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_AGENCY_INVOICE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -197,11 +183,9 @@ public void setAirlineAgencyInvoiceNumber(String airlineAgencyInvoiceNumber) { } /** - * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: - * 2 characters + * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters * - * @param airlineAgencyPlanName The two-letter agency plan identifier. * Encoding: ASCII * - * minLength: 2 characters * maxLength: 2 characters + * @param airlineAgencyPlanName The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineAgencyPlanName(String airlineAgencyPlanName) { @@ -210,11 +194,8 @@ public AdditionalDataAirline airlineAgencyPlanName(String airlineAgencyPlanName) } /** - * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: - * 2 characters - * - * @return airlineAgencyPlanName The two-letter agency plan identifier. * Encoding: ASCII * - * minLength: 2 characters * maxLength: 2 characters + * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters + * @return airlineAgencyPlanName The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_AGENCY_PLAN_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,11 +204,9 @@ public String getAirlineAgencyPlanName() { } /** - * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: - * 2 characters + * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters * - * @param airlineAgencyPlanName The two-letter agency plan identifier. * Encoding: ASCII * - * minLength: 2 characters * maxLength: 2 characters + * @param airlineAgencyPlanName The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_AGENCY_PLAN_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -236,15 +215,9 @@ public void setAirlineAgencyPlanName(String airlineAgencyPlanName) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that - * identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 - * * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all - * zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineAirlineCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit - * accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code - * (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must - * not be all spaces * Must not be all zeros. + * @param airlineAirlineCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineAirlineCode(String airlineAirlineCode) { @@ -253,15 +226,8 @@ public AdditionalDataAirline airlineAirlineCode(String airlineAirlineCode) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that - * identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 - * * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all - * zeros. - * - * @return airlineAirlineCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit - * accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code - * (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must - * not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * @return airlineAirlineCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_AIRLINE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -270,15 +236,9 @@ public String getAirlineAirlineCode() { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that - * identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 - * * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all - * zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineAirlineCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit - * accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code - * (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must - * not be all spaces * Must not be all zeros. + * @param airlineAirlineCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_AIRLINE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -287,14 +247,9 @@ public void setAirlineAirlineCode(String airlineAirlineCode) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that - * identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * - * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineAirlineDesignatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) - * 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: - * KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces - * * Must not be all zeros. + * @param airlineAirlineDesignatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineAirlineDesignatorCode(String airlineAirlineDesignatorCode) { @@ -303,14 +258,8 @@ public AdditionalDataAirline airlineAirlineDesignatorCode(String airlineAirlineD } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that - * identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * - * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. - * - * @return airlineAirlineDesignatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) - * 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: - * KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces - * * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * @return airlineAirlineDesignatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_AIRLINE_DESIGNATOR_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -319,14 +268,9 @@ public String getAirlineAirlineDesignatorCode() { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that - * identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * - * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineAirlineDesignatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) - * 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: - * KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces - * * Must not be all zeros. + * @param airlineAirlineDesignatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_AIRLINE_DESIGNATOR_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -335,13 +279,9 @@ public void setAirlineAirlineDesignatorCode(String airlineAirlineDesignatorCode) } /** - * The amount charged for boarding the plane, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * - * minLength: 1 character * maxLength: 18 characters + * The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 18 characters * - * @param airlineBoardingFee The amount charged for boarding the plane, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * - * minLength: 1 character * maxLength: 18 characters + * @param airlineBoardingFee The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 18 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineBoardingFee(String airlineBoardingFee) { @@ -350,13 +290,8 @@ public AdditionalDataAirline airlineBoardingFee(String airlineBoardingFee) { } /** - * The amount charged for boarding the plane, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * - * minLength: 1 character * maxLength: 18 characters - * - * @return airlineBoardingFee The amount charged for boarding the plane, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * - * minLength: 1 character * maxLength: 18 characters + * The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 18 characters + * @return airlineBoardingFee The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 18 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_BOARDING_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -365,13 +300,9 @@ public String getAirlineBoardingFee() { } /** - * The amount charged for boarding the plane, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * - * minLength: 1 character * maxLength: 18 characters + * The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 18 characters * - * @param airlineBoardingFee The amount charged for boarding the plane, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * - * minLength: 1 character * maxLength: 18 characters + * @param airlineBoardingFee The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 18 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_BOARDING_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -380,31 +311,19 @@ public void setAirlineBoardingFee(String airlineBoardingFee) { } /** - * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the - * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 - * characters + * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters * - * @param airlineComputerizedReservationSystem The - * [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the - * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * - * maxLength: 4 characters + * @param airlineComputerizedReservationSystem The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ - public AdditionalDataAirline airlineComputerizedReservationSystem( - String airlineComputerizedReservationSystem) { + public AdditionalDataAirline airlineComputerizedReservationSystem(String airlineComputerizedReservationSystem) { this.airlineComputerizedReservationSystem = airlineComputerizedReservationSystem; return this; } /** - * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the - * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 - * characters - * - * @return airlineComputerizedReservationSystem The - * [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the - * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * - * maxLength: 4 characters + * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters + * @return airlineComputerizedReservationSystem The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_COMPUTERIZED_RESERVATION_SYSTEM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -413,14 +332,9 @@ public String getAirlineComputerizedReservationSystem() { } /** - * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the - * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 - * characters + * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters * - * @param airlineComputerizedReservationSystem The - * [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the - * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * - * maxLength: 4 characters + * @param airlineComputerizedReservationSystem The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_COMPUTERIZED_RESERVATION_SYSTEM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -429,29 +343,19 @@ public void setAirlineComputerizedReservationSystem(String airlineComputerizedRe } /** - * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If - * you send more than 20 characters, the customer reference number is truncated * Must not be all - * spaces + * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not be all spaces * - * @param airlineCustomerReferenceNumber The alphanumeric customer reference number. * Encoding: - * ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer - * reference number is truncated * Must not be all spaces + * @param airlineCustomerReferenceNumber The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not be all spaces * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ - public AdditionalDataAirline airlineCustomerReferenceNumber( - String airlineCustomerReferenceNumber) { + public AdditionalDataAirline airlineCustomerReferenceNumber(String airlineCustomerReferenceNumber) { this.airlineCustomerReferenceNumber = airlineCustomerReferenceNumber; return this; } /** - * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If - * you send more than 20 characters, the customer reference number is truncated * Must not be all - * spaces - * - * @return airlineCustomerReferenceNumber The alphanumeric customer reference number. * Encoding: - * ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer - * reference number is truncated * Must not be all spaces + * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not be all spaces + * @return airlineCustomerReferenceNumber The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not be all spaces */ @JsonProperty(JSON_PROPERTY_AIRLINE_CUSTOMER_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -460,13 +364,9 @@ public String getAirlineCustomerReferenceNumber() { } /** - * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If - * you send more than 20 characters, the customer reference number is truncated * Must not be all - * spaces + * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not be all spaces * - * @param airlineCustomerReferenceNumber The alphanumeric customer reference number. * Encoding: - * ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer - * reference number is truncated * Must not be all spaces + * @param airlineCustomerReferenceNumber The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not be all spaces */ @JsonProperty(JSON_PROPERTY_AIRLINE_CUSTOMER_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -475,13 +375,9 @@ public void setAirlineCustomerReferenceNumber(String airlineCustomerReferenceNum } /** - * A code that identifies the type of item bought. The description of the code can appear on - * credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 - * characters * maxLength: 2 characters + * A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters * - * @param airlineDocumentType A code that identifies the type of item bought. The description of - * the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger - * ticket = 01 * minLength: 2 characters * maxLength: 2 characters + * @param airlineDocumentType A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineDocumentType(String airlineDocumentType) { @@ -490,13 +386,8 @@ public AdditionalDataAirline airlineDocumentType(String airlineDocumentType) { } /** - * A code that identifies the type of item bought. The description of the code can appear on - * credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 - * characters * maxLength: 2 characters - * - * @return airlineDocumentType A code that identifies the type of item bought. The description of - * the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger - * ticket = 01 * minLength: 2 characters * maxLength: 2 characters + * A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters + * @return airlineDocumentType A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_DOCUMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -505,13 +396,9 @@ public String getAirlineDocumentType() { } /** - * A code that identifies the type of item bought. The description of the code can appear on - * credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 - * characters * maxLength: 2 characters + * A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters * - * @param airlineDocumentType A code that identifies the type of item bought. The description of - * the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger - * ticket = 01 * minLength: 2 characters * maxLength: 2 characters + * @param airlineDocumentType A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_DOCUMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -520,13 +407,9 @@ public void setAirlineDocumentType(String airlineDocumentType) { } /** - * The flight departure date. Local time `(HH:mm)` is optional. * Date format: - * `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 - * characters * maxLength: 16 characters + * The flight departure date. Local time `(HH:mm)` is optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 characters * maxLength: 16 characters * - * @param airlineFlightDate The flight departure date. Local time `(HH:mm)` is optional. - * * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` - * * minLength: 10 characters * maxLength: 16 characters + * @param airlineFlightDate The flight departure date. Local time `(HH:mm)` is optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 characters * maxLength: 16 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineFlightDate(String airlineFlightDate) { @@ -535,13 +418,8 @@ public AdditionalDataAirline airlineFlightDate(String airlineFlightDate) { } /** - * The flight departure date. Local time `(HH:mm)` is optional. * Date format: - * `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 - * characters * maxLength: 16 characters - * - * @return airlineFlightDate The flight departure date. Local time `(HH:mm)` is - * optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd - * HH:mm` * minLength: 10 characters * maxLength: 16 characters + * The flight departure date. Local time `(HH:mm)` is optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 characters * maxLength: 16 characters + * @return airlineFlightDate The flight departure date. Local time `(HH:mm)` is optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_FLIGHT_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -550,13 +428,9 @@ public String getAirlineFlightDate() { } /** - * The flight departure date. Local time `(HH:mm)` is optional. * Date format: - * `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 - * characters * maxLength: 16 characters + * The flight departure date. Local time `(HH:mm)` is optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 characters * maxLength: 16 characters * - * @param airlineFlightDate The flight departure date. Local time `(HH:mm)` is optional. - * * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` - * * minLength: 10 characters * maxLength: 16 characters + * @param airlineFlightDate The flight departure date. Local time `(HH:mm)` is optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_FLIGHT_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -565,11 +439,9 @@ public void setAirlineFlightDate(String airlineFlightDate) { } /** - * The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 - * characters * Date format: YYMMDD + * The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 characters * Date format: YYMMDD * - * @param airlineIssueDate The date that the ticket was issued to the passenger. * minLength: 6 - * characters * maxLength: 6 characters * Date format: YYMMDD + * @param airlineIssueDate The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 characters * Date format: YYMMDD * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineIssueDate(String airlineIssueDate) { @@ -578,11 +450,8 @@ public AdditionalDataAirline airlineIssueDate(String airlineIssueDate) { } /** - * The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 - * characters * Date format: YYMMDD - * - * @return airlineIssueDate The date that the ticket was issued to the passenger. * minLength: 6 - * characters * maxLength: 6 characters * Date format: YYMMDD + * The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 characters * Date format: YYMMDD + * @return airlineIssueDate The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 characters * Date format: YYMMDD */ @JsonProperty(JSON_PROPERTY_AIRLINE_ISSUE_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -591,11 +460,9 @@ public String getAirlineIssueDate() { } /** - * The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 - * characters * Date format: YYMMDD + * The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 characters * Date format: YYMMDD * - * @param airlineIssueDate The date that the ticket was issued to the passenger. * minLength: 6 - * characters * maxLength: 6 characters * Date format: YYMMDD + * @param airlineIssueDate The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 characters * Date format: YYMMDD */ @JsonProperty(JSON_PROPERTY_AIRLINE_ISSUE_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -604,15 +471,9 @@ public void setAirlineIssueDate(String airlineIssueDate) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that - * identifies the carrier. This field is required if the airline data includes leg details. * - * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all - * spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineLegCarrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) - * 2-letter accounting code (PAX) that identifies the carrier. This field is required if the - * airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * - * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegCarrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegCarrierCode(String airlineLegCarrierCode) { @@ -621,15 +482,8 @@ public AdditionalDataAirline airlineLegCarrierCode(String airlineLegCarrierCode) } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that - * identifies the carrier. This field is required if the airline data includes leg details. * - * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all - * spaces * Must not be all zeros. - * - * @return airlineLegCarrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) - * 2-letter accounting code (PAX) that identifies the carrier. This field is required if the - * airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * - * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * @return airlineLegCarrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_CARRIER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -638,15 +492,9 @@ public String getAirlineLegCarrierCode() { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that - * identifies the carrier. This field is required if the airline data includes leg details. * - * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all - * spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineLegCarrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) - * 2-letter accounting code (PAX) that identifies the carrier. This field is required if the - * airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * - * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegCarrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_CARRIER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -655,14 +503,9 @@ public void setAirlineLegCarrierCode(String airlineLegCarrierCode) { } /** - * A one-letter travel class identifier. The following are common: * F: first class * J: business - * class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * - * maxLength: 1 character * Must not be all spaces * Must not be all zeros. + * A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not be all zeros. * - * @param airlineLegClassOfTravel A one-letter travel class identifier. The following are common: - * * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: - * ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not - * be all zeros. + * @param airlineLegClassOfTravel A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegClassOfTravel(String airlineLegClassOfTravel) { @@ -671,14 +514,8 @@ public AdditionalDataAirline airlineLegClassOfTravel(String airlineLegClassOfTra } /** - * A one-letter travel class identifier. The following are common: * F: first class * J: business - * class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * - * maxLength: 1 character * Must not be all spaces * Must not be all zeros. - * - * @return airlineLegClassOfTravel A one-letter travel class identifier. The following are common: - * * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: - * ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not - * be all zeros. + * A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not be all zeros. + * @return airlineLegClassOfTravel A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_CLASS_OF_TRAVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -687,14 +524,9 @@ public String getAirlineLegClassOfTravel() { } /** - * A one-letter travel class identifier. The following are common: * F: first class * J: business - * class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * - * maxLength: 1 character * Must not be all spaces * Must not be all zeros. + * A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not be all zeros. * - * @param airlineLegClassOfTravel A one-letter travel class identifier. The following are common: - * * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: - * ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not - * be all zeros. + * @param airlineLegClassOfTravel A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_CLASS_OF_TRAVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -703,13 +535,9 @@ public void setAirlineLegClassOfTravel(String airlineLegClassOfTravel) { } /** - * Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format - * `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 - * characters + * Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters * - * @param airlineLegDateOfTravel Date and time of travel in [ISO - * 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * - * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters + * @param airlineLegDateOfTravel Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegDateOfTravel(String airlineLegDateOfTravel) { @@ -718,13 +546,8 @@ public AdditionalDataAirline airlineLegDateOfTravel(String airlineLegDateOfTrave } /** - * Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format - * `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 - * characters - * - * @return airlineLegDateOfTravel Date and time of travel in [ISO - * 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * - * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters + * Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters + * @return airlineLegDateOfTravel Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_DATE_OF_TRAVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -733,13 +556,9 @@ public String getAirlineLegDateOfTravel() { } /** - * Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format - * `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 - * characters + * Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters * - * @param airlineLegDateOfTravel Date and time of travel in [ISO - * 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * - * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters + * @param airlineLegDateOfTravel Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_DATE_OF_TRAVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -748,15 +567,9 @@ public void setAirlineLegDateOfTravel(String airlineLegDateOfTravel) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the - * departure airport. This field is required if the airline data includes leg details. * Encoding: - * ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * - * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineLegDepartAirport The [IATA](https://www.iata.org/services/pages/codes.aspx) - * three-letter airport code of the departure airport. This field is required if the airline - * data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 - * characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegDepartAirport The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegDepartAirport(String airlineLegDepartAirport) { @@ -765,15 +578,8 @@ public AdditionalDataAirline airlineLegDepartAirport(String airlineLegDepartAirp } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the - * departure airport. This field is required if the airline data includes leg details. * Encoding: - * ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * - * Must not be all spaces * Must not be all zeros. - * - * @return airlineLegDepartAirport The [IATA](https://www.iata.org/services/pages/codes.aspx) - * three-letter airport code of the departure airport. This field is required if the airline - * data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 - * characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * @return airlineLegDepartAirport The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_DEPART_AIRPORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -782,15 +588,9 @@ public String getAirlineLegDepartAirport() { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the - * departure airport. This field is required if the airline data includes leg details. * Encoding: - * ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * - * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineLegDepartAirport The [IATA](https://www.iata.org/services/pages/codes.aspx) - * three-letter airport code of the departure airport. This field is required if the airline - * data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 - * characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegDepartAirport The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_DEPART_AIRPORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -799,14 +599,9 @@ public void setAirlineLegDepartAirport(String airlineLegDepartAirport) { } /** - * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * - * minLength: 1 * maxLength: 12 * Must not be all zeros. + * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 12 * Must not be all zeros. * - * @param airlineLegDepartTax The amount of [departure - * tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * - * minLength: 1 * maxLength: 12 * Must not be all zeros. + * @param airlineLegDepartTax The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 12 * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegDepartTax(String airlineLegDepartTax) { @@ -815,14 +610,8 @@ public AdditionalDataAirline airlineLegDepartTax(String airlineLegDepartTax) { } /** - * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * - * minLength: 1 * maxLength: 12 * Must not be all zeros. - * - * @return airlineLegDepartTax The amount of [departure - * tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * - * minLength: 1 * maxLength: 12 * Must not be all zeros. + * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 12 * Must not be all zeros. + * @return airlineLegDepartTax The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 12 * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_DEPART_TAX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -831,14 +620,9 @@ public String getAirlineLegDepartTax() { } /** - * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * - * minLength: 1 * maxLength: 12 * Must not be all zeros. + * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 12 * Must not be all zeros. * - * @param airlineLegDepartTax The amount of [departure - * tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * - * minLength: 1 * maxLength: 12 * Must not be all zeros. + * @param airlineLegDepartTax The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 12 * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_DEPART_TAX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -847,15 +631,9 @@ public void setAirlineLegDepartTax(String airlineLegDepartTax) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the - * destination airport. This field is required if the airline data includes leg details. * - * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 - * characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineLegDestinationCode The [IATA](https://www.iata.org/services/pages/codes.aspx) - * 3-letter airport code of the destination airport. This field is required if the airline - * data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 - * characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegDestinationCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegDestinationCode(String airlineLegDestinationCode) { @@ -864,15 +642,8 @@ public AdditionalDataAirline airlineLegDestinationCode(String airlineLegDestinat } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the - * destination airport. This field is required if the airline data includes leg details. * - * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 - * characters * Must not be all spaces * Must not be all zeros. - * - * @return airlineLegDestinationCode The [IATA](https://www.iata.org/services/pages/codes.aspx) - * 3-letter airport code of the destination airport. This field is required if the airline - * data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 - * characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * @return airlineLegDestinationCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_DESTINATION_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -881,15 +652,9 @@ public String getAirlineLegDestinationCode() { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the - * destination airport. This field is required if the airline data includes leg details. * - * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 - * characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineLegDestinationCode The [IATA](https://www.iata.org/services/pages/codes.aspx) - * 3-letter airport code of the destination airport. This field is required if the airline - * data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 - * characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegDestinationCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_DESTINATION_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -898,13 +663,9 @@ public void setAirlineLegDestinationCode(String airlineLegDestinationCode) { } /** - * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * - * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all - * zeros. + * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineLegFareBaseCode The [fare basis - * code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 - * character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegFareBaseCode The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegFareBaseCode(String airlineLegFareBaseCode) { @@ -913,13 +674,8 @@ public AdditionalDataAirline airlineLegFareBaseCode(String airlineLegFareBaseCod } /** - * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * - * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all - * zeros. - * - * @return airlineLegFareBaseCode The [fare basis - * code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 - * character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * @return airlineLegFareBaseCode The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_FARE_BASE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -928,13 +684,9 @@ public String getAirlineLegFareBaseCode() { } /** - * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * - * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all - * zeros. + * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineLegFareBaseCode The [fare basis - * code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 - * character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegFareBaseCode The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_FARE_BASE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -943,11 +695,9 @@ public void setAirlineLegFareBaseCode(String airlineLegFareBaseCode) { } /** - * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all - * spaces * Must not be all zeros. + * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineLegFlightNumber The flight identifier. * minLength: 1 character * maxLength: 5 - * characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegFlightNumber The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegFlightNumber(String airlineLegFlightNumber) { @@ -956,11 +706,8 @@ public AdditionalDataAirline airlineLegFlightNumber(String airlineLegFlightNumbe } /** - * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all - * spaces * Must not be all zeros. - * - * @return airlineLegFlightNumber The flight identifier. * minLength: 1 character * maxLength: 5 - * characters * Must not be all spaces * Must not be all zeros. + * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all spaces * Must not be all zeros. + * @return airlineLegFlightNumber The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_FLIGHT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -969,11 +716,9 @@ public String getAirlineLegFlightNumber() { } /** - * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all - * spaces * Must not be all zeros. + * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineLegFlightNumber The flight identifier. * minLength: 1 character * maxLength: 5 - * characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegFlightNumber The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_FLIGHT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -982,14 +727,9 @@ public void setAirlineLegFlightNumber(String airlineLegFlightNumber) { } /** - * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a - * space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: - * ASCII * minLength: 1 character * maxLength: 1 character + * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * - * @param airlineLegStopOverCode A one-letter code that indicates whether the passenger is - * entitled to make a stopover. Can be a space, O if the passenger is entitled to make a - * stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 - * character + * @param airlineLegStopOverCode A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegStopOverCode(String airlineLegStopOverCode) { @@ -998,14 +738,8 @@ public AdditionalDataAirline airlineLegStopOverCode(String airlineLegStopOverCod } /** - * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a - * space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: - * ASCII * minLength: 1 character * maxLength: 1 character - * - * @return airlineLegStopOverCode A one-letter code that indicates whether the passenger is - * entitled to make a stopover. Can be a space, O if the passenger is entitled to make a - * stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 - * character + * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character + * @return airlineLegStopOverCode A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_STOP_OVER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1014,14 +748,9 @@ public String getAirlineLegStopOverCode() { } /** - * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a - * space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: - * ASCII * minLength: 1 character * maxLength: 1 character + * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * - * @param airlineLegStopOverCode A one-letter code that indicates whether the passenger is - * entitled to make a stopover. Can be a space, O if the passenger is entitled to make a - * stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 - * character + * @param airlineLegStopOverCode A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_STOP_OVER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1030,11 +759,9 @@ public void setAirlineLegStopOverCode(String airlineLegStopOverCode) { } /** - * The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * - * maxLength: 10 + * The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 * - * @param airlinePassengerDateOfBirth The passenger's date of birth. Date format: - * `yyyy-MM-dd` * minLength: 10 * maxLength: 10 + * @param airlinePassengerDateOfBirth The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlinePassengerDateOfBirth(String airlinePassengerDateOfBirth) { @@ -1043,11 +770,8 @@ public AdditionalDataAirline airlinePassengerDateOfBirth(String airlinePassenger } /** - * The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * - * maxLength: 10 - * - * @return airlinePassengerDateOfBirth The passenger's date of birth. Date format: - * `yyyy-MM-dd` * minLength: 10 * maxLength: 10 + * The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 + * @return airlinePassengerDateOfBirth The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1056,11 +780,9 @@ public String getAirlinePassengerDateOfBirth() { } /** - * The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * - * maxLength: 10 + * The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 * - * @param airlinePassengerDateOfBirth The passenger's date of birth. Date format: - * `yyyy-MM-dd` * minLength: 10 * maxLength: 10 + * @param airlinePassengerDateOfBirth The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1069,11 +791,9 @@ public void setAirlinePassengerDateOfBirth(String airlinePassengerDateOfBirth) { } /** - * The passenger's first name. > This field is required if the airline data includes - * passenger details or leg details. * Encoding: ASCII + * The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII * - * @param airlinePassengerFirstName The passenger's first name. > This field is required if - * the airline data includes passenger details or leg details. * Encoding: ASCII + * @param airlinePassengerFirstName The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlinePassengerFirstName(String airlinePassengerFirstName) { @@ -1082,11 +802,8 @@ public AdditionalDataAirline airlinePassengerFirstName(String airlinePassengerFi } /** - * The passenger's first name. > This field is required if the airline data includes - * passenger details or leg details. * Encoding: ASCII - * - * @return airlinePassengerFirstName The passenger's first name. > This field is required - * if the airline data includes passenger details or leg details. * Encoding: ASCII + * The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * @return airlinePassengerFirstName The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1095,11 +812,9 @@ public String getAirlinePassengerFirstName() { } /** - * The passenger's first name. > This field is required if the airline data includes - * passenger details or leg details. * Encoding: ASCII + * The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII * - * @param airlinePassengerFirstName The passenger's first name. > This field is required if - * the airline data includes passenger details or leg details. * Encoding: ASCII + * @param airlinePassengerFirstName The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1108,11 +823,9 @@ public void setAirlinePassengerFirstName(String airlinePassengerFirstName) { } /** - * The passenger's last name. > This field is required if the airline data includes - * passenger details or leg details. * Encoding: ASCII + * The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII * - * @param airlinePassengerLastName The passenger's last name. > This field is required if - * the airline data includes passenger details or leg details. * Encoding: ASCII + * @param airlinePassengerLastName The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlinePassengerLastName(String airlinePassengerLastName) { @@ -1121,11 +834,8 @@ public AdditionalDataAirline airlinePassengerLastName(String airlinePassengerLas } /** - * The passenger's last name. > This field is required if the airline data includes - * passenger details or leg details. * Encoding: ASCII - * - * @return airlinePassengerLastName The passenger's last name. > This field is required if - * the airline data includes passenger details or leg details. * Encoding: ASCII + * The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * @return airlinePassengerLastName The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1134,11 +844,9 @@ public String getAirlinePassengerLastName() { } /** - * The passenger's last name. > This field is required if the airline data includes - * passenger details or leg details. * Encoding: ASCII + * The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII * - * @param airlinePassengerLastName The passenger's last name. > This field is required if - * the airline data includes passenger details or leg details. * Encoding: ASCII + * @param airlinePassengerLastName The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1147,13 +855,9 @@ public void setAirlinePassengerLastName(String airlinePassengerLastName) { } /** - * The passenger's phone number, including country code. This is an alphanumeric field that - * can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters - * * maxLength: 30 characters + * The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters * - * @param airlinePassengerPhoneNumber The passenger's phone number, including country code. - * This is an alphanumeric field that can include the '+' and '-' signs. * - * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters + * @param airlinePassengerPhoneNumber The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlinePassengerPhoneNumber(String airlinePassengerPhoneNumber) { @@ -1162,13 +866,8 @@ public AdditionalDataAirline airlinePassengerPhoneNumber(String airlinePassenger } /** - * The passenger's phone number, including country code. This is an alphanumeric field that - * can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters - * * maxLength: 30 characters - * - * @return airlinePassengerPhoneNumber The passenger's phone number, including country code. - * This is an alphanumeric field that can include the '+' and '-' signs. * - * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters + * The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters + * @return airlinePassengerPhoneNumber The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1177,13 +876,9 @@ public String getAirlinePassengerPhoneNumber() { } /** - * The passenger's phone number, including country code. This is an alphanumeric field that - * can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters - * * maxLength: 30 characters + * The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters * - * @param airlinePassengerPhoneNumber The passenger's phone number, including country code. - * This is an alphanumeric field that can include the '+' and '-' signs. * - * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters + * @param airlinePassengerPhoneNumber The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1192,11 +887,9 @@ public void setAirlinePassengerPhoneNumber(String airlinePassengerPhoneNumber) { } /** - * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 - * characters + * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters * - * @param airlinePassengerTravellerType The IATA passenger type code (PTC). * Encoding: ASCII * - * minLength: 3 characters * maxLength: 6 characters + * @param airlinePassengerTravellerType The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlinePassengerTravellerType(String airlinePassengerTravellerType) { @@ -1205,11 +898,8 @@ public AdditionalDataAirline airlinePassengerTravellerType(String airlinePasseng } /** - * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 - * characters - * - * @return airlinePassengerTravellerType The IATA passenger type code (PTC). * Encoding: ASCII * - * minLength: 3 characters * maxLength: 6 characters + * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters + * @return airlinePassengerTravellerType The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_TRAVELLER_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1218,11 +908,9 @@ public String getAirlinePassengerTravellerType() { } /** - * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 - * characters + * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters * - * @param airlinePassengerTravellerType The IATA passenger type code (PTC). * Encoding: ASCII * - * minLength: 3 characters * maxLength: 6 characters + * @param airlinePassengerTravellerType The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_TRAVELLER_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1231,15 +919,9 @@ public void setAirlinePassengerTravellerType(String airlinePassengerTravellerTyp } /** - * The passenger's name, initials, and title. * Format: last name + first name or initials + - * title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you - * send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all - * zeros. + * The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all zeros. * - * @param airlinePassengerName The passenger's name, initials, and title. * Format: last name - * + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * - * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * - * Must not be all spaces * Must not be all zeros. + * @param airlinePassengerName The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlinePassengerName(String airlinePassengerName) { @@ -1248,15 +930,8 @@ public AdditionalDataAirline airlinePassengerName(String airlinePassengerName) { } /** - * The passenger's name, initials, and title. * Format: last name + first name or initials + - * title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you - * send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all - * zeros. - * - * @return airlinePassengerName The passenger's name, initials, and title. * Format: last name - * + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * - * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * - * Must not be all spaces * Must not be all zeros. + * The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all zeros. + * @return airlinePassengerName The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1265,15 +940,9 @@ public String getAirlinePassengerName() { } /** - * The passenger's name, initials, and title. * Format: last name + first name or initials + - * title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you - * send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all - * zeros. + * The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all zeros. * - * @param airlinePassengerName The passenger's name, initials, and title. * Format: last name - * + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * - * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * - * Must not be all spaces * Must not be all zeros. + * @param airlinePassengerName The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1282,11 +951,9 @@ public void setAirlinePassengerName(String airlinePassengerName) { } /** - * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: - * 16 characters + * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters * - * @param airlineTicketIssueAddress The address of the organization that issued the ticket. * - * minLength: 0 characters * maxLength: 16 characters + * @param airlineTicketIssueAddress The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineTicketIssueAddress(String airlineTicketIssueAddress) { @@ -1295,11 +962,8 @@ public AdditionalDataAirline airlineTicketIssueAddress(String airlineTicketIssue } /** - * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: - * 16 characters - * - * @return airlineTicketIssueAddress The address of the organization that issued the ticket. * - * minLength: 0 characters * maxLength: 16 characters + * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters + * @return airlineTicketIssueAddress The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_TICKET_ISSUE_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1308,11 +972,9 @@ public String getAirlineTicketIssueAddress() { } /** - * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: - * 16 characters + * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters * - * @param airlineTicketIssueAddress The address of the organization that issued the ticket. * - * minLength: 0 characters * maxLength: 16 characters + * @param airlineTicketIssueAddress The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_TICKET_ISSUE_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1321,11 +983,9 @@ public void setAirlineTicketIssueAddress(String airlineTicketIssueAddress) { } /** - * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must - * not be all spaces * Must not be all zeros. + * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineTicketNumber The ticket's unique identifier. * minLength: 1 character * - * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * @param airlineTicketNumber The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineTicketNumber(String airlineTicketNumber) { @@ -1334,11 +994,8 @@ public AdditionalDataAirline airlineTicketNumber(String airlineTicketNumber) { } /** - * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must - * not be all spaces * Must not be all zeros. - * - * @return airlineTicketNumber The ticket's unique identifier. * minLength: 1 character * - * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * @return airlineTicketNumber The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_TICKET_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1347,11 +1004,9 @@ public String getAirlineTicketNumber() { } /** - * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must - * not be all spaces * Must not be all zeros. + * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineTicketNumber The ticket's unique identifier. * minLength: 1 character * - * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * @param airlineTicketNumber The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_TICKET_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1360,13 +1015,9 @@ public void setAirlineTicketNumber(String airlineTicketNumber) { } /** - * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * - * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * - * Must not be all zeros. + * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineTravelAgencyCode The unique identifier from IATA or ARC for the travel agency - * that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 - * characters * Must not be all spaces * Must not be all zeros. + * @param airlineTravelAgencyCode The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineTravelAgencyCode(String airlineTravelAgencyCode) { @@ -1375,13 +1026,8 @@ public AdditionalDataAirline airlineTravelAgencyCode(String airlineTravelAgencyC } /** - * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * - * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * - * Must not be all zeros. - * - * @return airlineTravelAgencyCode The unique identifier from IATA or ARC for the travel agency - * that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 - * characters * Must not be all spaces * Must not be all zeros. + * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * Must not be all zeros. + * @return airlineTravelAgencyCode The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1390,13 +1036,9 @@ public String getAirlineTravelAgencyCode() { } /** - * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * - * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * - * Must not be all zeros. + * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineTravelAgencyCode The unique identifier from IATA or ARC for the travel agency - * that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 - * characters * Must not be all spaces * Must not be all zeros. + * @param airlineTravelAgencyCode The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1405,11 +1047,9 @@ public void setAirlineTravelAgencyCode(String airlineTravelAgencyCode) { } /** - * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 - * characters * Must not be all spaces * Must not be all zeros. + * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineTravelAgencyName The name of the travel agency. * Encoding: ASCII * minLength: 1 - * character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. + * @param airlineTravelAgencyName The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineTravelAgencyName(String airlineTravelAgencyName) { @@ -1418,11 +1058,8 @@ public AdditionalDataAirline airlineTravelAgencyName(String airlineTravelAgencyN } /** - * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 - * characters * Must not be all spaces * Must not be all zeros. - * - * @return airlineTravelAgencyName The name of the travel agency. * Encoding: ASCII * minLength: 1 - * character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. + * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. + * @return airlineTravelAgencyName The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1431,11 +1068,9 @@ public String getAirlineTravelAgencyName() { } /** - * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 - * characters * Must not be all spaces * Must not be all zeros. + * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineTravelAgencyName The name of the travel agency. * Encoding: ASCII * minLength: 1 - * character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. + * @param airlineTravelAgencyName The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1443,7 +1078,9 @@ public void setAirlineTravelAgencyName(String airlineTravelAgencyName) { this.airlineTravelAgencyName = airlineTravelAgencyName; } - /** Return true if this AdditionalDataAirline object is equal to o. */ + /** + * Return true if this AdditionalDataAirline object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -1453,177 +1090,82 @@ public boolean equals(Object o) { return false; } AdditionalDataAirline additionalDataAirline = (AdditionalDataAirline) o; - return Objects.equals( - this.airlineAgencyInvoiceNumber, additionalDataAirline.airlineAgencyInvoiceNumber) - && Objects.equals(this.airlineAgencyPlanName, additionalDataAirline.airlineAgencyPlanName) - && Objects.equals(this.airlineAirlineCode, additionalDataAirline.airlineAirlineCode) - && Objects.equals( - this.airlineAirlineDesignatorCode, additionalDataAirline.airlineAirlineDesignatorCode) - && Objects.equals(this.airlineBoardingFee, additionalDataAirline.airlineBoardingFee) - && Objects.equals( - this.airlineComputerizedReservationSystem, - additionalDataAirline.airlineComputerizedReservationSystem) - && Objects.equals( - this.airlineCustomerReferenceNumber, - additionalDataAirline.airlineCustomerReferenceNumber) - && Objects.equals(this.airlineDocumentType, additionalDataAirline.airlineDocumentType) - && Objects.equals(this.airlineFlightDate, additionalDataAirline.airlineFlightDate) - && Objects.equals(this.airlineIssueDate, additionalDataAirline.airlineIssueDate) - && Objects.equals(this.airlineLegCarrierCode, additionalDataAirline.airlineLegCarrierCode) - && Objects.equals( - this.airlineLegClassOfTravel, additionalDataAirline.airlineLegClassOfTravel) - && Objects.equals(this.airlineLegDateOfTravel, additionalDataAirline.airlineLegDateOfTravel) - && Objects.equals( - this.airlineLegDepartAirport, additionalDataAirline.airlineLegDepartAirport) - && Objects.equals(this.airlineLegDepartTax, additionalDataAirline.airlineLegDepartTax) - && Objects.equals( - this.airlineLegDestinationCode, additionalDataAirline.airlineLegDestinationCode) - && Objects.equals(this.airlineLegFareBaseCode, additionalDataAirline.airlineLegFareBaseCode) - && Objects.equals(this.airlineLegFlightNumber, additionalDataAirline.airlineLegFlightNumber) - && Objects.equals(this.airlineLegStopOverCode, additionalDataAirline.airlineLegStopOverCode) - && Objects.equals( - this.airlinePassengerDateOfBirth, additionalDataAirline.airlinePassengerDateOfBirth) - && Objects.equals( - this.airlinePassengerFirstName, additionalDataAirline.airlinePassengerFirstName) - && Objects.equals( - this.airlinePassengerLastName, additionalDataAirline.airlinePassengerLastName) - && Objects.equals( - this.airlinePassengerPhoneNumber, additionalDataAirline.airlinePassengerPhoneNumber) - && Objects.equals( - this.airlinePassengerTravellerType, additionalDataAirline.airlinePassengerTravellerType) - && Objects.equals(this.airlinePassengerName, additionalDataAirline.airlinePassengerName) - && Objects.equals( - this.airlineTicketIssueAddress, additionalDataAirline.airlineTicketIssueAddress) - && Objects.equals(this.airlineTicketNumber, additionalDataAirline.airlineTicketNumber) - && Objects.equals( - this.airlineTravelAgencyCode, additionalDataAirline.airlineTravelAgencyCode) - && Objects.equals( - this.airlineTravelAgencyName, additionalDataAirline.airlineTravelAgencyName); + return Objects.equals(this.airlineAgencyInvoiceNumber, additionalDataAirline.airlineAgencyInvoiceNumber) && + Objects.equals(this.airlineAgencyPlanName, additionalDataAirline.airlineAgencyPlanName) && + Objects.equals(this.airlineAirlineCode, additionalDataAirline.airlineAirlineCode) && + Objects.equals(this.airlineAirlineDesignatorCode, additionalDataAirline.airlineAirlineDesignatorCode) && + Objects.equals(this.airlineBoardingFee, additionalDataAirline.airlineBoardingFee) && + Objects.equals(this.airlineComputerizedReservationSystem, additionalDataAirline.airlineComputerizedReservationSystem) && + Objects.equals(this.airlineCustomerReferenceNumber, additionalDataAirline.airlineCustomerReferenceNumber) && + Objects.equals(this.airlineDocumentType, additionalDataAirline.airlineDocumentType) && + Objects.equals(this.airlineFlightDate, additionalDataAirline.airlineFlightDate) && + Objects.equals(this.airlineIssueDate, additionalDataAirline.airlineIssueDate) && + Objects.equals(this.airlineLegCarrierCode, additionalDataAirline.airlineLegCarrierCode) && + Objects.equals(this.airlineLegClassOfTravel, additionalDataAirline.airlineLegClassOfTravel) && + Objects.equals(this.airlineLegDateOfTravel, additionalDataAirline.airlineLegDateOfTravel) && + Objects.equals(this.airlineLegDepartAirport, additionalDataAirline.airlineLegDepartAirport) && + Objects.equals(this.airlineLegDepartTax, additionalDataAirline.airlineLegDepartTax) && + Objects.equals(this.airlineLegDestinationCode, additionalDataAirline.airlineLegDestinationCode) && + Objects.equals(this.airlineLegFareBaseCode, additionalDataAirline.airlineLegFareBaseCode) && + Objects.equals(this.airlineLegFlightNumber, additionalDataAirline.airlineLegFlightNumber) && + Objects.equals(this.airlineLegStopOverCode, additionalDataAirline.airlineLegStopOverCode) && + Objects.equals(this.airlinePassengerDateOfBirth, additionalDataAirline.airlinePassengerDateOfBirth) && + Objects.equals(this.airlinePassengerFirstName, additionalDataAirline.airlinePassengerFirstName) && + Objects.equals(this.airlinePassengerLastName, additionalDataAirline.airlinePassengerLastName) && + Objects.equals(this.airlinePassengerPhoneNumber, additionalDataAirline.airlinePassengerPhoneNumber) && + Objects.equals(this.airlinePassengerTravellerType, additionalDataAirline.airlinePassengerTravellerType) && + Objects.equals(this.airlinePassengerName, additionalDataAirline.airlinePassengerName) && + Objects.equals(this.airlineTicketIssueAddress, additionalDataAirline.airlineTicketIssueAddress) && + Objects.equals(this.airlineTicketNumber, additionalDataAirline.airlineTicketNumber) && + Objects.equals(this.airlineTravelAgencyCode, additionalDataAirline.airlineTravelAgencyCode) && + Objects.equals(this.airlineTravelAgencyName, additionalDataAirline.airlineTravelAgencyName); } @Override public int hashCode() { - return Objects.hash( - airlineAgencyInvoiceNumber, - airlineAgencyPlanName, - airlineAirlineCode, - airlineAirlineDesignatorCode, - airlineBoardingFee, - airlineComputerizedReservationSystem, - airlineCustomerReferenceNumber, - airlineDocumentType, - airlineFlightDate, - airlineIssueDate, - airlineLegCarrierCode, - airlineLegClassOfTravel, - airlineLegDateOfTravel, - airlineLegDepartAirport, - airlineLegDepartTax, - airlineLegDestinationCode, - airlineLegFareBaseCode, - airlineLegFlightNumber, - airlineLegStopOverCode, - airlinePassengerDateOfBirth, - airlinePassengerFirstName, - airlinePassengerLastName, - airlinePassengerPhoneNumber, - airlinePassengerTravellerType, - airlinePassengerName, - airlineTicketIssueAddress, - airlineTicketNumber, - airlineTravelAgencyCode, - airlineTravelAgencyName); + return Objects.hash(airlineAgencyInvoiceNumber, airlineAgencyPlanName, airlineAirlineCode, airlineAirlineDesignatorCode, airlineBoardingFee, airlineComputerizedReservationSystem, airlineCustomerReferenceNumber, airlineDocumentType, airlineFlightDate, airlineIssueDate, airlineLegCarrierCode, airlineLegClassOfTravel, airlineLegDateOfTravel, airlineLegDepartAirport, airlineLegDepartTax, airlineLegDestinationCode, airlineLegFareBaseCode, airlineLegFlightNumber, airlineLegStopOverCode, airlinePassengerDateOfBirth, airlinePassengerFirstName, airlinePassengerLastName, airlinePassengerPhoneNumber, airlinePassengerTravellerType, airlinePassengerName, airlineTicketIssueAddress, airlineTicketNumber, airlineTravelAgencyCode, airlineTravelAgencyName); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataAirline {\n"); - sb.append(" airlineAgencyInvoiceNumber: ") - .append(toIndentedString(airlineAgencyInvoiceNumber)) - .append("\n"); - sb.append(" airlineAgencyPlanName: ") - .append(toIndentedString(airlineAgencyPlanName)) - .append("\n"); + sb.append(" airlineAgencyInvoiceNumber: ").append(toIndentedString(airlineAgencyInvoiceNumber)).append("\n"); + sb.append(" airlineAgencyPlanName: ").append(toIndentedString(airlineAgencyPlanName)).append("\n"); sb.append(" airlineAirlineCode: ").append(toIndentedString(airlineAirlineCode)).append("\n"); - sb.append(" airlineAirlineDesignatorCode: ") - .append(toIndentedString(airlineAirlineDesignatorCode)) - .append("\n"); + sb.append(" airlineAirlineDesignatorCode: ").append(toIndentedString(airlineAirlineDesignatorCode)).append("\n"); sb.append(" airlineBoardingFee: ").append(toIndentedString(airlineBoardingFee)).append("\n"); - sb.append(" airlineComputerizedReservationSystem: ") - .append(toIndentedString(airlineComputerizedReservationSystem)) - .append("\n"); - sb.append(" airlineCustomerReferenceNumber: ") - .append(toIndentedString(airlineCustomerReferenceNumber)) - .append("\n"); - sb.append(" airlineDocumentType: ") - .append(toIndentedString(airlineDocumentType)) - .append("\n"); + sb.append(" airlineComputerizedReservationSystem: ").append(toIndentedString(airlineComputerizedReservationSystem)).append("\n"); + sb.append(" airlineCustomerReferenceNumber: ").append(toIndentedString(airlineCustomerReferenceNumber)).append("\n"); + sb.append(" airlineDocumentType: ").append(toIndentedString(airlineDocumentType)).append("\n"); sb.append(" airlineFlightDate: ").append(toIndentedString(airlineFlightDate)).append("\n"); sb.append(" airlineIssueDate: ").append(toIndentedString(airlineIssueDate)).append("\n"); - sb.append(" airlineLegCarrierCode: ") - .append(toIndentedString(airlineLegCarrierCode)) - .append("\n"); - sb.append(" airlineLegClassOfTravel: ") - .append(toIndentedString(airlineLegClassOfTravel)) - .append("\n"); - sb.append(" airlineLegDateOfTravel: ") - .append(toIndentedString(airlineLegDateOfTravel)) - .append("\n"); - sb.append(" airlineLegDepartAirport: ") - .append(toIndentedString(airlineLegDepartAirport)) - .append("\n"); - sb.append(" airlineLegDepartTax: ") - .append(toIndentedString(airlineLegDepartTax)) - .append("\n"); - sb.append(" airlineLegDestinationCode: ") - .append(toIndentedString(airlineLegDestinationCode)) - .append("\n"); - sb.append(" airlineLegFareBaseCode: ") - .append(toIndentedString(airlineLegFareBaseCode)) - .append("\n"); - sb.append(" airlineLegFlightNumber: ") - .append(toIndentedString(airlineLegFlightNumber)) - .append("\n"); - sb.append(" airlineLegStopOverCode: ") - .append(toIndentedString(airlineLegStopOverCode)) - .append("\n"); - sb.append(" airlinePassengerDateOfBirth: ") - .append(toIndentedString(airlinePassengerDateOfBirth)) - .append("\n"); - sb.append(" airlinePassengerFirstName: ") - .append(toIndentedString(airlinePassengerFirstName)) - .append("\n"); - sb.append(" airlinePassengerLastName: ") - .append(toIndentedString(airlinePassengerLastName)) - .append("\n"); - sb.append(" airlinePassengerPhoneNumber: ") - .append(toIndentedString(airlinePassengerPhoneNumber)) - .append("\n"); - sb.append(" airlinePassengerTravellerType: ") - .append(toIndentedString(airlinePassengerTravellerType)) - .append("\n"); - sb.append(" airlinePassengerName: ") - .append(toIndentedString(airlinePassengerName)) - .append("\n"); - sb.append(" airlineTicketIssueAddress: ") - .append(toIndentedString(airlineTicketIssueAddress)) - .append("\n"); - sb.append(" airlineTicketNumber: ") - .append(toIndentedString(airlineTicketNumber)) - .append("\n"); - sb.append(" airlineTravelAgencyCode: ") - .append(toIndentedString(airlineTravelAgencyCode)) - .append("\n"); - sb.append(" airlineTravelAgencyName: ") - .append(toIndentedString(airlineTravelAgencyName)) - .append("\n"); + sb.append(" airlineLegCarrierCode: ").append(toIndentedString(airlineLegCarrierCode)).append("\n"); + sb.append(" airlineLegClassOfTravel: ").append(toIndentedString(airlineLegClassOfTravel)).append("\n"); + sb.append(" airlineLegDateOfTravel: ").append(toIndentedString(airlineLegDateOfTravel)).append("\n"); + sb.append(" airlineLegDepartAirport: ").append(toIndentedString(airlineLegDepartAirport)).append("\n"); + sb.append(" airlineLegDepartTax: ").append(toIndentedString(airlineLegDepartTax)).append("\n"); + sb.append(" airlineLegDestinationCode: ").append(toIndentedString(airlineLegDestinationCode)).append("\n"); + sb.append(" airlineLegFareBaseCode: ").append(toIndentedString(airlineLegFareBaseCode)).append("\n"); + sb.append(" airlineLegFlightNumber: ").append(toIndentedString(airlineLegFlightNumber)).append("\n"); + sb.append(" airlineLegStopOverCode: ").append(toIndentedString(airlineLegStopOverCode)).append("\n"); + sb.append(" airlinePassengerDateOfBirth: ").append(toIndentedString(airlinePassengerDateOfBirth)).append("\n"); + sb.append(" airlinePassengerFirstName: ").append(toIndentedString(airlinePassengerFirstName)).append("\n"); + sb.append(" airlinePassengerLastName: ").append(toIndentedString(airlinePassengerLastName)).append("\n"); + sb.append(" airlinePassengerPhoneNumber: ").append(toIndentedString(airlinePassengerPhoneNumber)).append("\n"); + sb.append(" airlinePassengerTravellerType: ").append(toIndentedString(airlinePassengerTravellerType)).append("\n"); + sb.append(" airlinePassengerName: ").append(toIndentedString(airlinePassengerName)).append("\n"); + sb.append(" airlineTicketIssueAddress: ").append(toIndentedString(airlineTicketIssueAddress)).append("\n"); + sb.append(" airlineTicketNumber: ").append(toIndentedString(airlineTicketNumber)).append("\n"); + sb.append(" airlineTravelAgencyCode: ").append(toIndentedString(airlineTravelAgencyCode)).append("\n"); + sb.append(" airlineTravelAgencyName: ").append(toIndentedString(airlineTravelAgencyName)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1632,23 +1174,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalDataAirline given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataAirline - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataAirline + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataAirline */ public static AdditionalDataAirline fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataAirline.class); } - - /** - * Convert an instance of AdditionalDataAirline to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalDataAirline to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataCarRental.java b/src/main/java/com/adyen/model/checkout/AdditionalDataCarRental.java index 4369495af..103654735 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataCarRental.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataCarRental.java @@ -2,22 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AdditionalDataCarRental */ + +/** + * AdditionalDataCarRental + */ @JsonPropertyOrder({ AdditionalDataCarRental.JSON_PROPERTY_CAR_RENTAL_CHECK_OUT_DATE, AdditionalDataCarRental.JSON_PROPERTY_CAR_RENTAL_CUSTOMER_SERVICE_TOLL_FREE_NUMBER, @@ -43,12 +52,12 @@ AdditionalDataCarRental.JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION, AdditionalDataCarRental.JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET }) + public class AdditionalDataCarRental { public static final String JSON_PROPERTY_CAR_RENTAL_CHECK_OUT_DATE = "carRental.checkOutDate"; private String carRentalCheckOutDate; - public static final String JSON_PROPERTY_CAR_RENTAL_CUSTOMER_SERVICE_TOLL_FREE_NUMBER = - "carRental.customerServiceTollFreeNumber"; + public static final String JSON_PROPERTY_CAR_RENTAL_CUSTOMER_SERVICE_TOLL_FREE_NUMBER = "carRental.customerServiceTollFreeNumber"; private String carRentalCustomerServiceTollFreeNumber; public static final String JSON_PROPERTY_CAR_RENTAL_DAYS_RENTED = "carRental.daysRented"; @@ -57,27 +66,22 @@ public class AdditionalDataCarRental { public static final String JSON_PROPERTY_CAR_RENTAL_FUEL_CHARGES = "carRental.fuelCharges"; private String carRentalFuelCharges; - public static final String JSON_PROPERTY_CAR_RENTAL_INSURANCE_CHARGES = - "carRental.insuranceCharges"; + public static final String JSON_PROPERTY_CAR_RENTAL_INSURANCE_CHARGES = "carRental.insuranceCharges"; private String carRentalInsuranceCharges; public static final String JSON_PROPERTY_CAR_RENTAL_LOCATION_CITY = "carRental.locationCity"; private String carRentalLocationCity; - public static final String JSON_PROPERTY_CAR_RENTAL_LOCATION_COUNTRY = - "carRental.locationCountry"; + public static final String JSON_PROPERTY_CAR_RENTAL_LOCATION_COUNTRY = "carRental.locationCountry"; private String carRentalLocationCountry; - public static final String JSON_PROPERTY_CAR_RENTAL_LOCATION_STATE_PROVINCE = - "carRental.locationStateProvince"; + public static final String JSON_PROPERTY_CAR_RENTAL_LOCATION_STATE_PROVINCE = "carRental.locationStateProvince"; private String carRentalLocationStateProvince; - public static final String JSON_PROPERTY_CAR_RENTAL_NO_SHOW_INDICATOR = - "carRental.noShowIndicator"; + public static final String JSON_PROPERTY_CAR_RENTAL_NO_SHOW_INDICATOR = "carRental.noShowIndicator"; private String carRentalNoShowIndicator; - public static final String JSON_PROPERTY_CAR_RENTAL_ONE_WAY_DROP_OFF_CHARGES = - "carRental.oneWayDropOffCharges"; + public static final String JSON_PROPERTY_CAR_RENTAL_ONE_WAY_DROP_OFF_CHARGES = "carRental.oneWayDropOffCharges"; private String carRentalOneWayDropOffCharges; public static final String JSON_PROPERTY_CAR_RENTAL_RATE = "carRental.rate"; @@ -86,8 +90,7 @@ public class AdditionalDataCarRental { public static final String JSON_PROPERTY_CAR_RENTAL_RATE_INDICATOR = "carRental.rateIndicator"; private String carRentalRateIndicator; - public static final String JSON_PROPERTY_CAR_RENTAL_RENTAL_AGREEMENT_NUMBER = - "carRental.rentalAgreementNumber"; + public static final String JSON_PROPERTY_CAR_RENTAL_RENTAL_AGREEMENT_NUMBER = "carRental.rentalAgreementNumber"; private String carRentalRentalAgreementNumber; public static final String JSON_PROPERTY_CAR_RENTAL_RENTAL_CLASS_ID = "carRental.rentalClassId"; @@ -105,27 +108,23 @@ public class AdditionalDataCarRental { public static final String JSON_PROPERTY_CAR_RENTAL_RETURN_DATE = "carRental.returnDate"; private String carRentalReturnDate; - public static final String JSON_PROPERTY_CAR_RENTAL_RETURN_LOCATION_ID = - "carRental.returnLocationId"; + public static final String JSON_PROPERTY_CAR_RENTAL_RETURN_LOCATION_ID = "carRental.returnLocationId"; private String carRentalReturnLocationId; - public static final String JSON_PROPERTY_CAR_RENTAL_RETURN_STATE_PROVINCE = - "carRental.returnStateProvince"; + public static final String JSON_PROPERTY_CAR_RENTAL_RETURN_STATE_PROVINCE = "carRental.returnStateProvince"; private String carRentalReturnStateProvince; - public static final String JSON_PROPERTY_CAR_RENTAL_TAX_EXEMPT_INDICATOR = - "carRental.taxExemptIndicator"; + public static final String JSON_PROPERTY_CAR_RENTAL_TAX_EXEMPT_INDICATOR = "carRental.taxExemptIndicator"; private String carRentalTaxExemptIndicator; - public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION = - "travelEntertainmentAuthData.duration"; + public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION = "travelEntertainmentAuthData.duration"; private String travelEntertainmentAuthDataDuration; - public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET = - "travelEntertainmentAuthData.market"; + public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET = "travelEntertainmentAuthData.market"; private String travelEntertainmentAuthDataMarket; - public AdditionalDataCarRental() {} + public AdditionalDataCarRental() { + } /** * The pick-up date. * Date format: `yyyyMMdd` @@ -140,7 +139,6 @@ public AdditionalDataCarRental carRentalCheckOutDate(String carRentalCheckOutDat /** * The pick-up date. * Date format: `yyyyMMdd` - * * @return carRentalCheckOutDate The pick-up date. * Date format: `yyyyMMdd` */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_CHECK_OUT_DATE) @@ -161,31 +159,19 @@ public void setCarRentalCheckOutDate(String carRentalCheckOutDate) { } /** - * The customer service phone number of the car rental company. * Format: Alphanumeric * - * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a - * space * Must not contain any special characters such as + or - *Must not be all zeros. + * The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. * - * @param carRentalCustomerServiceTollFreeNumber The customer service phone number of the car - * rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 - * characters in length * Must not start with a space * Must not contain any special - * characters such as + or - *Must not be all zeros. + * @param carRentalCustomerServiceTollFreeNumber The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ - public AdditionalDataCarRental carRentalCustomerServiceTollFreeNumber( - String carRentalCustomerServiceTollFreeNumber) { + public AdditionalDataCarRental carRentalCustomerServiceTollFreeNumber(String carRentalCustomerServiceTollFreeNumber) { this.carRentalCustomerServiceTollFreeNumber = carRentalCustomerServiceTollFreeNumber; return this; } /** - * The customer service phone number of the car rental company. * Format: Alphanumeric * - * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a - * space * Must not contain any special characters such as + or - *Must not be all zeros. - * - * @return carRentalCustomerServiceTollFreeNumber The customer service phone number of the car - * rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 - * characters in length * Must not start with a space * Must not contain any special - * characters such as + or - *Must not be all zeros. + * The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. + * @return carRentalCustomerServiceTollFreeNumber The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_CUSTOMER_SERVICE_TOLL_FREE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,28 +180,20 @@ public String getCarRentalCustomerServiceTollFreeNumber() { } /** - * The customer service phone number of the car rental company. * Format: Alphanumeric * - * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a - * space * Must not contain any special characters such as + or - *Must not be all zeros. + * The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. * - * @param carRentalCustomerServiceTollFreeNumber The customer service phone number of the car - * rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 - * characters in length * Must not start with a space * Must not contain any special - * characters such as + or - *Must not be all zeros. + * @param carRentalCustomerServiceTollFreeNumber The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_CUSTOMER_SERVICE_TOLL_FREE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCarRentalCustomerServiceTollFreeNumber( - String carRentalCustomerServiceTollFreeNumber) { + public void setCarRentalCustomerServiceTollFreeNumber(String carRentalCustomerServiceTollFreeNumber) { this.carRentalCustomerServiceTollFreeNumber = carRentalCustomerServiceTollFreeNumber; } /** - * Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not - * be all spaces + * Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not be all spaces * - * @param carRentalDaysRented Number of days for which the car is being rented. * Format: Numeric - * * maxLength: 4 * Must not be all spaces + * @param carRentalDaysRented Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not be all spaces * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalDaysRented(String carRentalDaysRented) { @@ -224,11 +202,8 @@ public AdditionalDataCarRental carRentalDaysRented(String carRentalDaysRented) { } /** - * Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not - * be all spaces - * - * @return carRentalDaysRented Number of days for which the car is being rented. * Format: Numeric - * * maxLength: 4 * Must not be all spaces + * Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not be all spaces + * @return carRentalDaysRented Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not be all spaces */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_DAYS_RENTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,11 +212,9 @@ public String getCarRentalDaysRented() { } /** - * Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not - * be all spaces + * Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not be all spaces * - * @param carRentalDaysRented Number of days for which the car is being rented. * Format: Numeric - * * maxLength: 4 * Must not be all spaces + * @param carRentalDaysRented Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not be all spaces */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_DAYS_RENTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,13 +223,9 @@ public void setCarRentalDaysRented(String carRentalDaysRented) { } /** - * Any fuel charges associated with the rental, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * - * maxLength: 12 + * Any fuel charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * - * @param carRentalFuelCharges Any fuel charges associated with the rental, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * - * maxLength: 12 + * @param carRentalFuelCharges Any fuel charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalFuelCharges(String carRentalFuelCharges) { @@ -265,13 +234,8 @@ public AdditionalDataCarRental carRentalFuelCharges(String carRentalFuelCharges) } /** - * Any fuel charges associated with the rental, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * - * maxLength: 12 - * - * @return carRentalFuelCharges Any fuel charges associated with the rental, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * - * maxLength: 12 + * Any fuel charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 + * @return carRentalFuelCharges Any fuel charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_FUEL_CHARGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -280,13 +244,9 @@ public String getCarRentalFuelCharges() { } /** - * Any fuel charges associated with the rental, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * - * maxLength: 12 + * Any fuel charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * - * @param carRentalFuelCharges Any fuel charges associated with the rental, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * - * maxLength: 12 + * @param carRentalFuelCharges Any fuel charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_FUEL_CHARGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -295,13 +255,9 @@ public void setCarRentalFuelCharges(String carRentalFuelCharges) { } /** - * Any insurance charges associated with the rental, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * - * maxLength: 12 * Must not be all spaces *Must not be all zeros. + * Any insurance charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * Must not be all spaces *Must not be all zeros. * - * @param carRentalInsuranceCharges Any insurance charges associated with the rental, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * - * maxLength: 12 * Must not be all spaces *Must not be all zeros. + * @param carRentalInsuranceCharges Any insurance charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * Must not be all spaces *Must not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalInsuranceCharges(String carRentalInsuranceCharges) { @@ -310,13 +266,8 @@ public AdditionalDataCarRental carRentalInsuranceCharges(String carRentalInsuran } /** - * Any insurance charges associated with the rental, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * - * maxLength: 12 * Must not be all spaces *Must not be all zeros. - * - * @return carRentalInsuranceCharges Any insurance charges associated with the rental, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * - * maxLength: 12 * Must not be all spaces *Must not be all zeros. + * Any insurance charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * Must not be all spaces *Must not be all zeros. + * @return carRentalInsuranceCharges Any insurance charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * Must not be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_INSURANCE_CHARGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -325,13 +276,9 @@ public String getCarRentalInsuranceCharges() { } /** - * Any insurance charges associated with the rental, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * - * maxLength: 12 * Must not be all spaces *Must not be all zeros. + * Any insurance charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * Must not be all spaces *Must not be all zeros. * - * @param carRentalInsuranceCharges Any insurance charges associated with the rental, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * - * maxLength: 12 * Must not be all spaces *Must not be all zeros. + * @param carRentalInsuranceCharges Any insurance charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * Must not be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_INSURANCE_CHARGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -340,11 +287,9 @@ public void setCarRentalInsuranceCharges(String carRentalInsuranceCharges) { } /** - * The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with - * a space or be all spaces *Must not be all zeros. + * The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalLocationCity The city where the car is rented. * Format: Alphanumeric * - * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalLocationCity The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalLocationCity(String carRentalLocationCity) { @@ -353,11 +298,8 @@ public AdditionalDataCarRental carRentalLocationCity(String carRentalLocationCit } /** - * The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with - * a space or be all spaces *Must not be all zeros. - * - * @return carRentalLocationCity The city where the car is rented. * Format: Alphanumeric * - * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * @return carRentalLocationCity The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_LOCATION_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -366,11 +308,9 @@ public String getCarRentalLocationCity() { } /** - * The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with - * a space or be all spaces *Must not be all zeros. + * The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalLocationCity The city where the car is rented. * Format: Alphanumeric * - * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalLocationCity The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_LOCATION_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -379,13 +319,9 @@ public void setCarRentalLocationCity(String carRentalLocationCity) { } /** - * The country where the car is rented, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * - * maxLength: 2 + * The country where the car is rented, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 * - * @param carRentalLocationCountry The country where the car is rented, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * - * maxLength: 2 + * @param carRentalLocationCountry The country where the car is rented, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalLocationCountry(String carRentalLocationCountry) { @@ -394,13 +330,8 @@ public AdditionalDataCarRental carRentalLocationCountry(String carRentalLocation } /** - * The country where the car is rented, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * - * maxLength: 2 - * - * @return carRentalLocationCountry The country where the car is rented, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * - * maxLength: 2 + * The country where the car is rented, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 + * @return carRentalLocationCountry The country where the car is rented, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_LOCATION_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -409,13 +340,9 @@ public String getCarRentalLocationCountry() { } /** - * The country where the car is rented, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * - * maxLength: 2 + * The country where the car is rented, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 * - * @param carRentalLocationCountry The country where the car is rented, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * - * maxLength: 2 + * @param carRentalLocationCountry The country where the car is rented, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_LOCATION_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -424,27 +351,19 @@ public void setCarRentalLocationCountry(String carRentalLocationCountry) { } /** - * The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not - * start with a space or be all spaces *Must not be all zeros. + * The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalLocationStateProvince The state or province where the car is rented. * Format: - * Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all - * zeros. + * @param carRentalLocationStateProvince The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ - public AdditionalDataCarRental carRentalLocationStateProvince( - String carRentalLocationStateProvince) { + public AdditionalDataCarRental carRentalLocationStateProvince(String carRentalLocationStateProvince) { this.carRentalLocationStateProvince = carRentalLocationStateProvince; return this; } /** - * The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not - * start with a space or be all spaces *Must not be all zeros. - * - * @return carRentalLocationStateProvince The state or province where the car is rented. * Format: - * Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all - * zeros. + * The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all zeros. + * @return carRentalLocationStateProvince The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_LOCATION_STATE_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -453,12 +372,9 @@ public String getCarRentalLocationStateProvince() { } /** - * The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not - * start with a space or be all spaces *Must not be all zeros. + * The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalLocationStateProvince The state or province where the car is rented. * Format: - * Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all - * zeros. + * @param carRentalLocationStateProvince The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_LOCATION_STATE_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -467,11 +383,9 @@ public void setCarRentalLocationStateProvince(String carRentalLocationStateProvi } /** - * Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up - * their car * N - Not applicable + * Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up their car * N - Not applicable * - * @param carRentalNoShowIndicator Indicates if the customer didn't pick up their rental car. - * * Y - Customer did not pick up their car * N - Not applicable + * @param carRentalNoShowIndicator Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up their car * N - Not applicable * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalNoShowIndicator(String carRentalNoShowIndicator) { @@ -480,11 +394,8 @@ public AdditionalDataCarRental carRentalNoShowIndicator(String carRentalNoShowIn } /** - * Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up - * their car * N - Not applicable - * - * @return carRentalNoShowIndicator Indicates if the customer didn't pick up their rental car. - * * Y - Customer did not pick up their car * N - Not applicable + * Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up their car * N - Not applicable + * @return carRentalNoShowIndicator Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up their car * N - Not applicable */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_NO_SHOW_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -493,11 +404,9 @@ public String getCarRentalNoShowIndicator() { } /** - * Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up - * their car * N - Not applicable + * Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up their car * N - Not applicable * - * @param carRentalNoShowIndicator Indicates if the customer didn't pick up their rental car. - * * Y - Customer did not pick up their car * N - Not applicable + * @param carRentalNoShowIndicator Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up their car * N - Not applicable */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_NO_SHOW_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -506,27 +415,19 @@ public void setCarRentalNoShowIndicator(String carRentalNoShowIndicator) { } /** - * The charge for not returning a car to the original rental location, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 + * The charge for not returning a car to the original rental location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 * - * @param carRentalOneWayDropOffCharges The charge for not returning a car to the original rental - * location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * maxLength: 12 + * @param carRentalOneWayDropOffCharges The charge for not returning a car to the original rental location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ - public AdditionalDataCarRental carRentalOneWayDropOffCharges( - String carRentalOneWayDropOffCharges) { + public AdditionalDataCarRental carRentalOneWayDropOffCharges(String carRentalOneWayDropOffCharges) { this.carRentalOneWayDropOffCharges = carRentalOneWayDropOffCharges; return this; } /** - * The charge for not returning a car to the original rental location, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 - * - * @return carRentalOneWayDropOffCharges The charge for not returning a car to the original rental - * location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * maxLength: 12 + * The charge for not returning a car to the original rental location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 + * @return carRentalOneWayDropOffCharges The charge for not returning a car to the original rental location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_ONE_WAY_DROP_OFF_CHARGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -535,12 +436,9 @@ public String getCarRentalOneWayDropOffCharges() { } /** - * The charge for not returning a car to the original rental location, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 + * The charge for not returning a car to the original rental location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 * - * @param carRentalOneWayDropOffCharges The charge for not returning a car to the original rental - * location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * maxLength: 12 + * @param carRentalOneWayDropOffCharges The charge for not returning a car to the original rental location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_ONE_WAY_DROP_OFF_CHARGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -549,13 +447,9 @@ public void setCarRentalOneWayDropOffCharges(String carRentalOneWayDropOffCharge } /** - * The daily rental rate, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * - * maxLength: 12 + * The daily rental rate, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * maxLength: 12 * - * @param carRentalRate The daily rental rate, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric - * * maxLength: 12 + * @param carRentalRate The daily rental rate, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * maxLength: 12 * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalRate(String carRentalRate) { @@ -564,13 +458,8 @@ public AdditionalDataCarRental carRentalRate(String carRentalRate) { } /** - * The daily rental rate, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * - * maxLength: 12 - * - * @return carRentalRate The daily rental rate, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric - * * maxLength: 12 + * The daily rental rate, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * maxLength: 12 + * @return carRentalRate The daily rental rate, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * maxLength: 12 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -579,13 +468,9 @@ public String getCarRentalRate() { } /** - * The daily rental rate, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * - * maxLength: 12 + * The daily rental rate, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * maxLength: 12 * - * @param carRentalRate The daily rental rate, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric - * * maxLength: 12 + * @param carRentalRate The daily rental rate, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * maxLength: 12 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -596,8 +481,7 @@ public void setCarRentalRate(String carRentalRate) { /** * Specifies whether the given rate is applied daily or weekly. * D - Daily rate * W - Weekly rate * - * @param carRentalRateIndicator Specifies whether the given rate is applied daily or weekly. * D - * - Daily rate * W - Weekly rate + * @param carRentalRateIndicator Specifies whether the given rate is applied daily or weekly. * D - Daily rate * W - Weekly rate * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalRateIndicator(String carRentalRateIndicator) { @@ -607,9 +491,7 @@ public AdditionalDataCarRental carRentalRateIndicator(String carRentalRateIndica /** * Specifies whether the given rate is applied daily or weekly. * D - Daily rate * W - Weekly rate - * - * @return carRentalRateIndicator Specifies whether the given rate is applied daily or weekly. * D - * - Daily rate * W - Weekly rate + * @return carRentalRateIndicator Specifies whether the given rate is applied daily or weekly. * D - Daily rate * W - Weekly rate */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RATE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -620,8 +502,7 @@ public String getCarRentalRateIndicator() { /** * Specifies whether the given rate is applied daily or weekly. * D - Daily rate * W - Weekly rate * - * @param carRentalRateIndicator Specifies whether the given rate is applied daily or weekly. * D - * - Daily rate * W - Weekly rate + * @param carRentalRateIndicator Specifies whether the given rate is applied daily or weekly. * D - Daily rate * W - Weekly rate */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RATE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -630,27 +511,19 @@ public void setCarRentalRateIndicator(String carRentalRateIndicator) { } /** - * The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must - * not start with a space or be all spaces *Must not be all zeros. + * The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalRentalAgreementNumber The rental agreement number for the car rental. * Format: - * Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all - * zeros. + * @param carRentalRentalAgreementNumber The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ - public AdditionalDataCarRental carRentalRentalAgreementNumber( - String carRentalRentalAgreementNumber) { + public AdditionalDataCarRental carRentalRentalAgreementNumber(String carRentalRentalAgreementNumber) { this.carRentalRentalAgreementNumber = carRentalRentalAgreementNumber; return this; } /** - * The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must - * not start with a space or be all spaces *Must not be all zeros. - * - * @return carRentalRentalAgreementNumber The rental agreement number for the car rental. * - * Format: Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must - * not be all zeros. + * The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all zeros. + * @return carRentalRentalAgreementNumber The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RENTAL_AGREEMENT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -659,12 +532,9 @@ public String getCarRentalRentalAgreementNumber() { } /** - * The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must - * not start with a space or be all spaces *Must not be all zeros. + * The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalRentalAgreementNumber The rental agreement number for the car rental. * Format: - * Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all - * zeros. + * @param carRentalRentalAgreementNumber The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RENTAL_AGREEMENT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -673,11 +543,9 @@ public void setCarRentalRentalAgreementNumber(String carRentalRentalAgreementNum } /** - * The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start - * with a space or be all spaces *Must not be all zeros. + * The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalRentalClassId The classification of the rental car. * Format: Alphanumeric * - * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalRentalClassId The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalRentalClassId(String carRentalRentalClassId) { @@ -686,11 +554,8 @@ public AdditionalDataCarRental carRentalRentalClassId(String carRentalRentalClas } /** - * The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start - * with a space or be all spaces *Must not be all zeros. - * - * @return carRentalRentalClassId The classification of the rental car. * Format: Alphanumeric * - * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. + * The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. + * @return carRentalRentalClassId The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RENTAL_CLASS_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -699,11 +564,9 @@ public String getCarRentalRentalClassId() { } /** - * The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start - * with a space or be all spaces *Must not be all zeros. + * The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalRentalClassId The classification of the rental car. * Format: Alphanumeric * - * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalRentalClassId The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RENTAL_CLASS_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -712,13 +575,9 @@ public void setCarRentalRentalClassId(String carRentalRentalClassId) { } /** - * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send - * more than 26 characters, the name is truncated * Must not start with a space or be all spaces - * *Must not be all zeros. + * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalRenterName The name of the person renting the car. * Format: Alphanumeric * - * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start - * with a space or be all spaces *Must not be all zeros. + * @param carRentalRenterName The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start with a space or be all spaces *Must not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalRenterName(String carRentalRenterName) { @@ -727,13 +586,8 @@ public AdditionalDataCarRental carRentalRenterName(String carRentalRenterName) { } /** - * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send - * more than 26 characters, the name is truncated * Must not start with a space or be all spaces - * *Must not be all zeros. - * - * @return carRentalRenterName The name of the person renting the car. * Format: Alphanumeric * - * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start - * with a space or be all spaces *Must not be all zeros. + * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start with a space or be all spaces *Must not be all zeros. + * @return carRentalRenterName The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RENTER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -742,13 +596,9 @@ public String getCarRentalRenterName() { } /** - * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send - * more than 26 characters, the name is truncated * Must not start with a space or be all spaces - * *Must not be all zeros. + * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalRenterName The name of the person renting the car. * Format: Alphanumeric * - * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start - * with a space or be all spaces *Must not be all zeros. + * @param carRentalRenterName The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RENTER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -757,11 +607,9 @@ public void setCarRentalRenterName(String carRentalRenterName) { } /** - * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not - * start with a space or be all spaces *Must not be all zeros. + * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalReturnCity The city where the car must be returned. * Format: Alphanumeric * - * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalReturnCity The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalReturnCity(String carRentalReturnCity) { @@ -770,11 +618,8 @@ public AdditionalDataCarRental carRentalReturnCity(String carRentalReturnCity) { } /** - * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not - * start with a space or be all spaces *Must not be all zeros. - * - * @return carRentalReturnCity The city where the car must be returned. * Format: Alphanumeric * - * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * @return carRentalReturnCity The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -783,11 +628,9 @@ public String getCarRentalReturnCity() { } /** - * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not - * start with a space or be all spaces *Must not be all zeros. + * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalReturnCity The city where the car must be returned. * Format: Alphanumeric * - * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalReturnCity The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -796,13 +639,9 @@ public void setCarRentalReturnCity(String carRentalReturnCity) { } /** - * The country where the car must be returned, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * - * maxLength: 2 + * The country where the car must be returned, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 * - * @param carRentalReturnCountry The country where the car must be returned, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * - * maxLength: 2 + * @param carRentalReturnCountry The country where the car must be returned, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalReturnCountry(String carRentalReturnCountry) { @@ -811,13 +650,8 @@ public AdditionalDataCarRental carRentalReturnCountry(String carRentalReturnCoun } /** - * The country where the car must be returned, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * - * maxLength: 2 - * - * @return carRentalReturnCountry The country where the car must be returned, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * - * maxLength: 2 + * The country where the car must be returned, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 + * @return carRentalReturnCountry The country where the car must be returned, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -826,13 +660,9 @@ public String getCarRentalReturnCountry() { } /** - * The country where the car must be returned, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * - * maxLength: 2 + * The country where the car must be returned, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 * - * @param carRentalReturnCountry The country where the car must be returned, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * - * maxLength: 2 + * @param carRentalReturnCountry The country where the car must be returned, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -843,8 +673,7 @@ public void setCarRentalReturnCountry(String carRentalReturnCountry) { /** * The last date to return the car by. * Date format: `yyyyMMdd` * maxLength: 8 * - * @param carRentalReturnDate The last date to return the car by. * Date format: - * `yyyyMMdd` * maxLength: 8 + * @param carRentalReturnDate The last date to return the car by. * Date format: `yyyyMMdd` * maxLength: 8 * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalReturnDate(String carRentalReturnDate) { @@ -854,9 +683,7 @@ public AdditionalDataCarRental carRentalReturnDate(String carRentalReturnDate) { /** * The last date to return the car by. * Date format: `yyyyMMdd` * maxLength: 8 - * - * @return carRentalReturnDate The last date to return the car by. * Date format: - * `yyyyMMdd` * maxLength: 8 + * @return carRentalReturnDate The last date to return the car by. * Date format: `yyyyMMdd` * maxLength: 8 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -867,8 +694,7 @@ public String getCarRentalReturnDate() { /** * The last date to return the car by. * Date format: `yyyyMMdd` * maxLength: 8 * - * @param carRentalReturnDate The last date to return the car by. * Date format: - * `yyyyMMdd` * maxLength: 8 + * @param carRentalReturnDate The last date to return the car by. * Date format: `yyyyMMdd` * maxLength: 8 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -877,12 +703,9 @@ public void setCarRentalReturnDate(String carRentalReturnDate) { } /** - * The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * - * Must not start with a space or be all spaces *Must not be all zeros. + * The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalReturnLocationId The agency code, phone number, or address abbreviation * - * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must - * not be all zeros. + * @param carRentalReturnLocationId The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalReturnLocationId(String carRentalReturnLocationId) { @@ -891,12 +714,8 @@ public AdditionalDataCarRental carRentalReturnLocationId(String carRentalReturnL } /** - * The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * - * Must not start with a space or be all spaces *Must not be all zeros. - * - * @return carRentalReturnLocationId The agency code, phone number, or address abbreviation * - * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must - * not be all zeros. + * The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must not be all zeros. + * @return carRentalReturnLocationId The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -905,12 +724,9 @@ public String getCarRentalReturnLocationId() { } /** - * The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * - * Must not start with a space or be all spaces *Must not be all zeros. + * The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalReturnLocationId The agency code, phone number, or address abbreviation * - * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must - * not be all zeros. + * @param carRentalReturnLocationId The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -919,12 +735,9 @@ public void setCarRentalReturnLocationId(String carRentalReturnLocationId) { } /** - * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * - * Must not start with a space or be all spaces *Must not be all zeros. + * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalReturnStateProvince The state or province where the car must be returned. * - * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must - * not be all zeros. + * @param carRentalReturnStateProvince The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalReturnStateProvince(String carRentalReturnStateProvince) { @@ -933,12 +746,8 @@ public AdditionalDataCarRental carRentalReturnStateProvince(String carRentalRetu } /** - * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * - * Must not start with a space or be all spaces *Must not be all zeros. - * - * @return carRentalReturnStateProvince The state or province where the car must be returned. * - * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must - * not be all zeros. + * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must not be all zeros. + * @return carRentalReturnStateProvince The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_STATE_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -947,12 +756,9 @@ public String getCarRentalReturnStateProvince() { } /** - * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * - * Must not start with a space or be all spaces *Must not be all zeros. + * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalReturnStateProvince The state or province where the car must be returned. * - * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must - * not be all zeros. + * @param carRentalReturnStateProvince The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_STATE_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -961,12 +767,9 @@ public void setCarRentalReturnStateProvince(String carRentalReturnStateProvince) } /** - * Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y - * - Goods or services were tax exempt * N - Tax was not collected + * Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not collected * - * @param carRentalTaxExemptIndicator Indicates if the goods or services were tax-exempt, or if - * tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not - * collected + * @param carRentalTaxExemptIndicator Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not collected * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalTaxExemptIndicator(String carRentalTaxExemptIndicator) { @@ -975,12 +778,8 @@ public AdditionalDataCarRental carRentalTaxExemptIndicator(String carRentalTaxEx } /** - * Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y - * - Goods or services were tax exempt * N - Tax was not collected - * - * @return carRentalTaxExemptIndicator Indicates if the goods or services were tax-exempt, or if - * tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not - * collected + * Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not collected + * @return carRentalTaxExemptIndicator Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not collected */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_TAX_EXEMPT_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -989,12 +788,9 @@ public String getCarRentalTaxExemptIndicator() { } /** - * Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y - * - Goods or services were tax exempt * N - Tax was not collected + * Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not collected * - * @param carRentalTaxExemptIndicator Indicates if the goods or services were tax-exempt, or if - * tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not - * collected + * @param carRentalTaxExemptIndicator Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not collected */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_TAX_EXEMPT_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1003,25 +799,19 @@ public void setCarRentalTaxExemptIndicator(String carRentalTaxExemptIndicator) { } /** - * Number of days the car is rented for. This should be included in the auth message. * Format: - * Numeric * maxLength: 4 + * Number of days the car is rented for. This should be included in the auth message. * Format: Numeric * maxLength: 4 * - * @param travelEntertainmentAuthDataDuration Number of days the car is rented for. This should be - * included in the auth message. * Format: Numeric * maxLength: 4 + * @param travelEntertainmentAuthDataDuration Number of days the car is rented for. This should be included in the auth message. * Format: Numeric * maxLength: 4 * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ - public AdditionalDataCarRental travelEntertainmentAuthDataDuration( - String travelEntertainmentAuthDataDuration) { + public AdditionalDataCarRental travelEntertainmentAuthDataDuration(String travelEntertainmentAuthDataDuration) { this.travelEntertainmentAuthDataDuration = travelEntertainmentAuthDataDuration; return this; } /** - * Number of days the car is rented for. This should be included in the auth message. * Format: - * Numeric * maxLength: 4 - * - * @return travelEntertainmentAuthDataDuration Number of days the car is rented for. This should - * be included in the auth message. * Format: Numeric * maxLength: 4 + * Number of days the car is rented for. This should be included in the auth message. * Format: Numeric * maxLength: 4 + * @return travelEntertainmentAuthDataDuration Number of days the car is rented for. This should be included in the auth message. * Format: Numeric * maxLength: 4 */ @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1030,11 +820,9 @@ public String getTravelEntertainmentAuthDataDuration() { } /** - * Number of days the car is rented for. This should be included in the auth message. * Format: - * Numeric * maxLength: 4 + * Number of days the car is rented for. This should be included in the auth message. * Format: Numeric * maxLength: 4 * - * @param travelEntertainmentAuthDataDuration Number of days the car is rented for. This should be - * included in the auth message. * Format: Numeric * maxLength: 4 + * @param travelEntertainmentAuthDataDuration Number of days the car is rented for. This should be included in the auth message. * Format: Numeric * maxLength: 4 */ @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1043,29 +831,19 @@ public void setTravelEntertainmentAuthDataDuration(String travelEntertainmentAut } /** - * Indicates what market-specific dataset will be submitted or is being submitted. Value should be - * 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric - * * maxLength: 1 + * Indicates what market-specific dataset will be submitted or is being submitted. Value should be 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 * - * @param travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be - * submitted or is being submitted. Value should be 'A' for car rental. This should be - * included in the auth message. * Format: Alphanumeric * maxLength: 1 + * @param travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be submitted or is being submitted. Value should be 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ - public AdditionalDataCarRental travelEntertainmentAuthDataMarket( - String travelEntertainmentAuthDataMarket) { + public AdditionalDataCarRental travelEntertainmentAuthDataMarket(String travelEntertainmentAuthDataMarket) { this.travelEntertainmentAuthDataMarket = travelEntertainmentAuthDataMarket; return this; } /** - * Indicates what market-specific dataset will be submitted or is being submitted. Value should be - * 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric - * * maxLength: 1 - * - * @return travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be - * submitted or is being submitted. Value should be 'A' for car rental. This should be - * included in the auth message. * Format: Alphanumeric * maxLength: 1 + * Indicates what market-specific dataset will be submitted or is being submitted. Value should be 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 + * @return travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be submitted or is being submitted. Value should be 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 */ @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1074,13 +852,9 @@ public String getTravelEntertainmentAuthDataMarket() { } /** - * Indicates what market-specific dataset will be submitted or is being submitted. Value should be - * 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric - * * maxLength: 1 + * Indicates what market-specific dataset will be submitted or is being submitted. Value should be 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 * - * @param travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be - * submitted or is being submitted. Value should be 'A' for car rental. This should be - * included in the auth message. * Format: Alphanumeric * maxLength: 1 + * @param travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be submitted or is being submitted. Value should be 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 */ @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1088,7 +862,9 @@ public void setTravelEntertainmentAuthDataMarket(String travelEntertainmentAuthD this.travelEntertainmentAuthDataMarket = travelEntertainmentAuthDataMarket; } - /** Return true if this AdditionalDataCarRental object is equal to o. */ + /** + * Return true if this AdditionalDataCarRental object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -1098,157 +874,70 @@ public boolean equals(Object o) { return false; } AdditionalDataCarRental additionalDataCarRental = (AdditionalDataCarRental) o; - return Objects.equals(this.carRentalCheckOutDate, additionalDataCarRental.carRentalCheckOutDate) - && Objects.equals( - this.carRentalCustomerServiceTollFreeNumber, - additionalDataCarRental.carRentalCustomerServiceTollFreeNumber) - && Objects.equals(this.carRentalDaysRented, additionalDataCarRental.carRentalDaysRented) - && Objects.equals(this.carRentalFuelCharges, additionalDataCarRental.carRentalFuelCharges) - && Objects.equals( - this.carRentalInsuranceCharges, additionalDataCarRental.carRentalInsuranceCharges) - && Objects.equals(this.carRentalLocationCity, additionalDataCarRental.carRentalLocationCity) - && Objects.equals( - this.carRentalLocationCountry, additionalDataCarRental.carRentalLocationCountry) - && Objects.equals( - this.carRentalLocationStateProvince, - additionalDataCarRental.carRentalLocationStateProvince) - && Objects.equals( - this.carRentalNoShowIndicator, additionalDataCarRental.carRentalNoShowIndicator) - && Objects.equals( - this.carRentalOneWayDropOffCharges, - additionalDataCarRental.carRentalOneWayDropOffCharges) - && Objects.equals(this.carRentalRate, additionalDataCarRental.carRentalRate) - && Objects.equals( - this.carRentalRateIndicator, additionalDataCarRental.carRentalRateIndicator) - && Objects.equals( - this.carRentalRentalAgreementNumber, - additionalDataCarRental.carRentalRentalAgreementNumber) - && Objects.equals( - this.carRentalRentalClassId, additionalDataCarRental.carRentalRentalClassId) - && Objects.equals(this.carRentalRenterName, additionalDataCarRental.carRentalRenterName) - && Objects.equals(this.carRentalReturnCity, additionalDataCarRental.carRentalReturnCity) - && Objects.equals( - this.carRentalReturnCountry, additionalDataCarRental.carRentalReturnCountry) - && Objects.equals(this.carRentalReturnDate, additionalDataCarRental.carRentalReturnDate) - && Objects.equals( - this.carRentalReturnLocationId, additionalDataCarRental.carRentalReturnLocationId) - && Objects.equals( - this.carRentalReturnStateProvince, additionalDataCarRental.carRentalReturnStateProvince) - && Objects.equals( - this.carRentalTaxExemptIndicator, additionalDataCarRental.carRentalTaxExemptIndicator) - && Objects.equals( - this.travelEntertainmentAuthDataDuration, - additionalDataCarRental.travelEntertainmentAuthDataDuration) - && Objects.equals( - this.travelEntertainmentAuthDataMarket, - additionalDataCarRental.travelEntertainmentAuthDataMarket); + return Objects.equals(this.carRentalCheckOutDate, additionalDataCarRental.carRentalCheckOutDate) && + Objects.equals(this.carRentalCustomerServiceTollFreeNumber, additionalDataCarRental.carRentalCustomerServiceTollFreeNumber) && + Objects.equals(this.carRentalDaysRented, additionalDataCarRental.carRentalDaysRented) && + Objects.equals(this.carRentalFuelCharges, additionalDataCarRental.carRentalFuelCharges) && + Objects.equals(this.carRentalInsuranceCharges, additionalDataCarRental.carRentalInsuranceCharges) && + Objects.equals(this.carRentalLocationCity, additionalDataCarRental.carRentalLocationCity) && + Objects.equals(this.carRentalLocationCountry, additionalDataCarRental.carRentalLocationCountry) && + Objects.equals(this.carRentalLocationStateProvince, additionalDataCarRental.carRentalLocationStateProvince) && + Objects.equals(this.carRentalNoShowIndicator, additionalDataCarRental.carRentalNoShowIndicator) && + Objects.equals(this.carRentalOneWayDropOffCharges, additionalDataCarRental.carRentalOneWayDropOffCharges) && + Objects.equals(this.carRentalRate, additionalDataCarRental.carRentalRate) && + Objects.equals(this.carRentalRateIndicator, additionalDataCarRental.carRentalRateIndicator) && + Objects.equals(this.carRentalRentalAgreementNumber, additionalDataCarRental.carRentalRentalAgreementNumber) && + Objects.equals(this.carRentalRentalClassId, additionalDataCarRental.carRentalRentalClassId) && + Objects.equals(this.carRentalRenterName, additionalDataCarRental.carRentalRenterName) && + Objects.equals(this.carRentalReturnCity, additionalDataCarRental.carRentalReturnCity) && + Objects.equals(this.carRentalReturnCountry, additionalDataCarRental.carRentalReturnCountry) && + Objects.equals(this.carRentalReturnDate, additionalDataCarRental.carRentalReturnDate) && + Objects.equals(this.carRentalReturnLocationId, additionalDataCarRental.carRentalReturnLocationId) && + Objects.equals(this.carRentalReturnStateProvince, additionalDataCarRental.carRentalReturnStateProvince) && + Objects.equals(this.carRentalTaxExemptIndicator, additionalDataCarRental.carRentalTaxExemptIndicator) && + Objects.equals(this.travelEntertainmentAuthDataDuration, additionalDataCarRental.travelEntertainmentAuthDataDuration) && + Objects.equals(this.travelEntertainmentAuthDataMarket, additionalDataCarRental.travelEntertainmentAuthDataMarket); } @Override public int hashCode() { - return Objects.hash( - carRentalCheckOutDate, - carRentalCustomerServiceTollFreeNumber, - carRentalDaysRented, - carRentalFuelCharges, - carRentalInsuranceCharges, - carRentalLocationCity, - carRentalLocationCountry, - carRentalLocationStateProvince, - carRentalNoShowIndicator, - carRentalOneWayDropOffCharges, - carRentalRate, - carRentalRateIndicator, - carRentalRentalAgreementNumber, - carRentalRentalClassId, - carRentalRenterName, - carRentalReturnCity, - carRentalReturnCountry, - carRentalReturnDate, - carRentalReturnLocationId, - carRentalReturnStateProvince, - carRentalTaxExemptIndicator, - travelEntertainmentAuthDataDuration, - travelEntertainmentAuthDataMarket); + return Objects.hash(carRentalCheckOutDate, carRentalCustomerServiceTollFreeNumber, carRentalDaysRented, carRentalFuelCharges, carRentalInsuranceCharges, carRentalLocationCity, carRentalLocationCountry, carRentalLocationStateProvince, carRentalNoShowIndicator, carRentalOneWayDropOffCharges, carRentalRate, carRentalRateIndicator, carRentalRentalAgreementNumber, carRentalRentalClassId, carRentalRenterName, carRentalReturnCity, carRentalReturnCountry, carRentalReturnDate, carRentalReturnLocationId, carRentalReturnStateProvince, carRentalTaxExemptIndicator, travelEntertainmentAuthDataDuration, travelEntertainmentAuthDataMarket); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataCarRental {\n"); - sb.append(" carRentalCheckOutDate: ") - .append(toIndentedString(carRentalCheckOutDate)) - .append("\n"); - sb.append(" carRentalCustomerServiceTollFreeNumber: ") - .append(toIndentedString(carRentalCustomerServiceTollFreeNumber)) - .append("\n"); - sb.append(" carRentalDaysRented: ") - .append(toIndentedString(carRentalDaysRented)) - .append("\n"); - sb.append(" carRentalFuelCharges: ") - .append(toIndentedString(carRentalFuelCharges)) - .append("\n"); - sb.append(" carRentalInsuranceCharges: ") - .append(toIndentedString(carRentalInsuranceCharges)) - .append("\n"); - sb.append(" carRentalLocationCity: ") - .append(toIndentedString(carRentalLocationCity)) - .append("\n"); - sb.append(" carRentalLocationCountry: ") - .append(toIndentedString(carRentalLocationCountry)) - .append("\n"); - sb.append(" carRentalLocationStateProvince: ") - .append(toIndentedString(carRentalLocationStateProvince)) - .append("\n"); - sb.append(" carRentalNoShowIndicator: ") - .append(toIndentedString(carRentalNoShowIndicator)) - .append("\n"); - sb.append(" carRentalOneWayDropOffCharges: ") - .append(toIndentedString(carRentalOneWayDropOffCharges)) - .append("\n"); + sb.append(" carRentalCheckOutDate: ").append(toIndentedString(carRentalCheckOutDate)).append("\n"); + sb.append(" carRentalCustomerServiceTollFreeNumber: ").append(toIndentedString(carRentalCustomerServiceTollFreeNumber)).append("\n"); + sb.append(" carRentalDaysRented: ").append(toIndentedString(carRentalDaysRented)).append("\n"); + sb.append(" carRentalFuelCharges: ").append(toIndentedString(carRentalFuelCharges)).append("\n"); + sb.append(" carRentalInsuranceCharges: ").append(toIndentedString(carRentalInsuranceCharges)).append("\n"); + sb.append(" carRentalLocationCity: ").append(toIndentedString(carRentalLocationCity)).append("\n"); + sb.append(" carRentalLocationCountry: ").append(toIndentedString(carRentalLocationCountry)).append("\n"); + sb.append(" carRentalLocationStateProvince: ").append(toIndentedString(carRentalLocationStateProvince)).append("\n"); + sb.append(" carRentalNoShowIndicator: ").append(toIndentedString(carRentalNoShowIndicator)).append("\n"); + sb.append(" carRentalOneWayDropOffCharges: ").append(toIndentedString(carRentalOneWayDropOffCharges)).append("\n"); sb.append(" carRentalRate: ").append(toIndentedString(carRentalRate)).append("\n"); - sb.append(" carRentalRateIndicator: ") - .append(toIndentedString(carRentalRateIndicator)) - .append("\n"); - sb.append(" carRentalRentalAgreementNumber: ") - .append(toIndentedString(carRentalRentalAgreementNumber)) - .append("\n"); - sb.append(" carRentalRentalClassId: ") - .append(toIndentedString(carRentalRentalClassId)) - .append("\n"); - sb.append(" carRentalRenterName: ") - .append(toIndentedString(carRentalRenterName)) - .append("\n"); - sb.append(" carRentalReturnCity: ") - .append(toIndentedString(carRentalReturnCity)) - .append("\n"); - sb.append(" carRentalReturnCountry: ") - .append(toIndentedString(carRentalReturnCountry)) - .append("\n"); - sb.append(" carRentalReturnDate: ") - .append(toIndentedString(carRentalReturnDate)) - .append("\n"); - sb.append(" carRentalReturnLocationId: ") - .append(toIndentedString(carRentalReturnLocationId)) - .append("\n"); - sb.append(" carRentalReturnStateProvince: ") - .append(toIndentedString(carRentalReturnStateProvince)) - .append("\n"); - sb.append(" carRentalTaxExemptIndicator: ") - .append(toIndentedString(carRentalTaxExemptIndicator)) - .append("\n"); - sb.append(" travelEntertainmentAuthDataDuration: ") - .append(toIndentedString(travelEntertainmentAuthDataDuration)) - .append("\n"); - sb.append(" travelEntertainmentAuthDataMarket: ") - .append(toIndentedString(travelEntertainmentAuthDataMarket)) - .append("\n"); + sb.append(" carRentalRateIndicator: ").append(toIndentedString(carRentalRateIndicator)).append("\n"); + sb.append(" carRentalRentalAgreementNumber: ").append(toIndentedString(carRentalRentalAgreementNumber)).append("\n"); + sb.append(" carRentalRentalClassId: ").append(toIndentedString(carRentalRentalClassId)).append("\n"); + sb.append(" carRentalRenterName: ").append(toIndentedString(carRentalRenterName)).append("\n"); + sb.append(" carRentalReturnCity: ").append(toIndentedString(carRentalReturnCity)).append("\n"); + sb.append(" carRentalReturnCountry: ").append(toIndentedString(carRentalReturnCountry)).append("\n"); + sb.append(" carRentalReturnDate: ").append(toIndentedString(carRentalReturnDate)).append("\n"); + sb.append(" carRentalReturnLocationId: ").append(toIndentedString(carRentalReturnLocationId)).append("\n"); + sb.append(" carRentalReturnStateProvince: ").append(toIndentedString(carRentalReturnStateProvince)).append("\n"); + sb.append(" carRentalTaxExemptIndicator: ").append(toIndentedString(carRentalTaxExemptIndicator)).append("\n"); + sb.append(" travelEntertainmentAuthDataDuration: ").append(toIndentedString(travelEntertainmentAuthDataDuration)).append("\n"); + sb.append(" travelEntertainmentAuthDataMarket: ").append(toIndentedString(travelEntertainmentAuthDataMarket)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1257,23 +946,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalDataCarRental given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataCarRental - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataCarRental + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataCarRental */ public static AdditionalDataCarRental fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataCarRental.class); } - - /** - * Convert an instance of AdditionalDataCarRental to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalDataCarRental to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataCommon.java b/src/main/java/com/adyen/model/checkout/AdditionalDataCommon.java index 5e60cc065..53c2252ab 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataCommon.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataCommon.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** AdditionalDataCommon */ + +/** + * AdditionalDataCommon + */ @JsonPropertyOrder({ AdditionalDataCommon.JSON_PROPERTY_REQUESTED_TEST_ACQUIRER_RESPONSE_CODE, AdditionalDataCommon.JSON_PROPERTY_REQUESTED_TEST_ERROR_RESPONSE_CODE, @@ -45,13 +50,12 @@ AdditionalDataCommon.JSON_PROPERTY_SUB_MERCHANT_STREET, AdditionalDataCommon.JSON_PROPERTY_SUB_MERCHANT_TAX_ID }) + public class AdditionalDataCommon { - public static final String JSON_PROPERTY_REQUESTED_TEST_ACQUIRER_RESPONSE_CODE = - "RequestedTestAcquirerResponseCode"; + public static final String JSON_PROPERTY_REQUESTED_TEST_ACQUIRER_RESPONSE_CODE = "RequestedTestAcquirerResponseCode"; private String requestedTestAcquirerResponseCode; - public static final String JSON_PROPERTY_REQUESTED_TEST_ERROR_RESPONSE_CODE = - "RequestedTestErrorResponseCode"; + public static final String JSON_PROPERTY_REQUESTED_TEST_ERROR_RESPONSE_CODE = "RequestedTestErrorResponseCode"; private String requestedTestErrorResponseCode; public static final String JSON_PROPERTY_ALLOW_PARTIAL_AUTH = "allowPartialAuth"; @@ -67,14 +71,10 @@ public class AdditionalDataCommon { private String customRoutingFlag; /** - * In case of [asynchronous authorisation - * adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), - * this field denotes why the additional payment is made. Possible values: * **NoShow**: An - * incremental charge is carried out because of a no-show for a guaranteed reservation. * - * **DelayedCharge**: An incremental charge is carried out to process an additional payment after - * the original services have been rendered and the respective payment has been processed. + * In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed. */ public enum IndustryUsageEnum { + NOSHOW(String.valueOf("NoShow")), DELAYEDCHARGE(String.valueOf("DelayedCharge")); @@ -84,7 +84,7 @@ public enum IndustryUsageEnum { private String value; IndustryUsageEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -105,11 +105,7 @@ public static IndustryUsageEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "IndustryUsageEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(IndustryUsageEnum.values())); + LOG.warning("IndustryUsageEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(IndustryUsageEnum.values())); return null; } } @@ -159,36 +155,23 @@ public static IndustryUsageEnum fromValue(String value) { public static final String JSON_PROPERTY_SUB_MERCHANT_TAX_ID = "subMerchantTaxId"; private String subMerchantTaxId; - public AdditionalDataCommon() {} + public AdditionalDataCommon() { + } /** - * Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing - * result codes and refusal - * reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the - * possible values, and the `refusalReason` values you can trigger. + * Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing result codes and refusal reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the possible values, and the `refusalReason` values you can trigger. * - * @param requestedTestAcquirerResponseCode Triggers test scenarios that allow to replicate - * certain acquirer response codes. See [Testing result codes and refusal - * reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about - * the possible values, and the `refusalReason` values you can trigger. + * @param requestedTestAcquirerResponseCode Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing result codes and refusal reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the possible values, and the `refusalReason` values you can trigger. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ - public AdditionalDataCommon requestedTestAcquirerResponseCode( - String requestedTestAcquirerResponseCode) { + public AdditionalDataCommon requestedTestAcquirerResponseCode(String requestedTestAcquirerResponseCode) { this.requestedTestAcquirerResponseCode = requestedTestAcquirerResponseCode; return this; } /** - * Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing - * result codes and refusal - * reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the - * possible values, and the `refusalReason` values you can trigger. - * - * @return requestedTestAcquirerResponseCode Triggers test scenarios that allow to replicate - * certain acquirer response codes. See [Testing result codes and refusal - * reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about - * the possible values, and the `refusalReason` values you can trigger. + * Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing result codes and refusal reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the possible values, and the `refusalReason` values you can trigger. + * @return requestedTestAcquirerResponseCode Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing result codes and refusal reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the possible values, and the `refusalReason` values you can trigger. */ @JsonProperty(JSON_PROPERTY_REQUESTED_TEST_ACQUIRER_RESPONSE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -197,15 +180,9 @@ public String getRequestedTestAcquirerResponseCode() { } /** - * Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing - * result codes and refusal - * reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the - * possible values, and the `refusalReason` values you can trigger. + * Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing result codes and refusal reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the possible values, and the `refusalReason` values you can trigger. * - * @param requestedTestAcquirerResponseCode Triggers test scenarios that allow to replicate - * certain acquirer response codes. See [Testing result codes and refusal - * reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about - * the possible values, and the `refusalReason` values you can trigger. + * @param requestedTestAcquirerResponseCode Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing result codes and refusal reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the possible values, and the `refusalReason` values you can trigger. */ @JsonProperty(JSON_PROPERTY_REQUESTED_TEST_ACQUIRER_RESPONSE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,63 +191,19 @@ public void setRequestedTestAcquirerResponseCode(String requestedTestAcquirerRes } /** - * Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * - * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing - * communication. This is a transient, retriable error since no messaging could be initiated to an - * issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true - * is returned in the response. A subsequent request using the same idempotency key will be - * processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong - * during transmission of the message or receiving the response. This is a classified as - * non-transient because the message could have been received by the issuing party and been acted - * upon. No transient error header is returned. If using idempotency, the (error) response is - * stored as the final result for the idempotency key. Subsequent messages with the same - * idempotency key not be processed beyond returning the stored response. + * Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response. * - * @param requestedTestErrorResponseCode Triggers test scenarios that allow to replicate certain - * communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a - * connection available to service the outgoing communication. This is a transient, retriable - * error since no messaging could be initiated to an issuing system (or third-party acquiring - * system). Therefore, the header Transient-Error: true is returned in the response. A - * subsequent request using the same idempotency key will be processed as if it was the first - * request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the - * message or receiving the response. This is a classified as non-transient because the - * message could have been received by the issuing party and been acted upon. No transient - * error header is returned. If using idempotency, the (error) response is stored as the final - * result for the idempotency key. Subsequent messages with the same idempotency key not be - * processed beyond returning the stored response. + * @param requestedTestErrorResponseCode Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ - public AdditionalDataCommon requestedTestErrorResponseCode( - String requestedTestErrorResponseCode) { + public AdditionalDataCommon requestedTestErrorResponseCode(String requestedTestErrorResponseCode) { this.requestedTestErrorResponseCode = requestedTestErrorResponseCode; return this; } /** - * Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * - * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing - * communication. This is a transient, retriable error since no messaging could be initiated to an - * issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true - * is returned in the response. A subsequent request using the same idempotency key will be - * processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong - * during transmission of the message or receiving the response. This is a classified as - * non-transient because the message could have been received by the issuing party and been acted - * upon. No transient error header is returned. If using idempotency, the (error) response is - * stored as the final result for the idempotency key. Subsequent messages with the same - * idempotency key not be processed beyond returning the stored response. - * - * @return requestedTestErrorResponseCode Triggers test scenarios that allow to replicate certain - * communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a - * connection available to service the outgoing communication. This is a transient, retriable - * error since no messaging could be initiated to an issuing system (or third-party acquiring - * system). Therefore, the header Transient-Error: true is returned in the response. A - * subsequent request using the same idempotency key will be processed as if it was the first - * request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the - * message or receiving the response. This is a classified as non-transient because the - * message could have been received by the issuing party and been acted upon. No transient - * error header is returned. If using idempotency, the (error) response is stored as the final - * result for the idempotency key. Subsequent messages with the same idempotency key not be - * processed beyond returning the stored response. + * Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response. + * @return requestedTestErrorResponseCode Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response. */ @JsonProperty(JSON_PROPERTY_REQUESTED_TEST_ERROR_RESPONSE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -279,30 +212,9 @@ public String getRequestedTestErrorResponseCode() { } /** - * Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * - * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing - * communication. This is a transient, retriable error since no messaging could be initiated to an - * issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true - * is returned in the response. A subsequent request using the same idempotency key will be - * processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong - * during transmission of the message or receiving the response. This is a classified as - * non-transient because the message could have been received by the issuing party and been acted - * upon. No transient error header is returned. If using idempotency, the (error) response is - * stored as the final result for the idempotency key. Subsequent messages with the same - * idempotency key not be processed beyond returning the stored response. + * Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response. * - * @param requestedTestErrorResponseCode Triggers test scenarios that allow to replicate certain - * communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a - * connection available to service the outgoing communication. This is a transient, retriable - * error since no messaging could be initiated to an issuing system (or third-party acquiring - * system). Therefore, the header Transient-Error: true is returned in the response. A - * subsequent request using the same idempotency key will be processed as if it was the first - * request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the - * message or receiving the response. This is a classified as non-transient because the - * message could have been received by the issuing party and been acted upon. No transient - * error header is returned. If using idempotency, the (error) response is stored as the final - * result for the idempotency key. Subsequent messages with the same idempotency key not be - * processed beyond returning the stored response. + * @param requestedTestErrorResponseCode Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response. */ @JsonProperty(JSON_PROPERTY_REQUESTED_TEST_ERROR_RESPONSE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -311,16 +223,9 @@ public void setRequestedTestErrorResponseCode(String requestedTestErrorResponseC } /** - * Set to true to authorise a part of the requested amount in case the cardholder does not have - * enough funds on their account. If a payment was partially authorised, the response includes - * resultCode: PartiallyAuthorised and the authorised amount in - * additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. + * Set to true to authorise a part of the requested amount in case the cardholder does not have enough funds on their account. If a payment was partially authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount in additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. * - * @param allowPartialAuth Set to true to authorise a part of the requested amount in case the - * cardholder does not have enough funds on their account. If a payment was partially - * authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount - * in additionalData.authorisedAmountValue. To enable this functionality, contact our Support - * Team. + * @param allowPartialAuth Set to true to authorise a part of the requested amount in case the cardholder does not have enough funds on their account. If a payment was partially authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount in additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon allowPartialAuth(String allowPartialAuth) { @@ -329,16 +234,8 @@ public AdditionalDataCommon allowPartialAuth(String allowPartialAuth) { } /** - * Set to true to authorise a part of the requested amount in case the cardholder does not have - * enough funds on their account. If a payment was partially authorised, the response includes - * resultCode: PartiallyAuthorised and the authorised amount in - * additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. - * - * @return allowPartialAuth Set to true to authorise a part of the requested amount in case the - * cardholder does not have enough funds on their account. If a payment was partially - * authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount - * in additionalData.authorisedAmountValue. To enable this functionality, contact our Support - * Team. + * Set to true to authorise a part of the requested amount in case the cardholder does not have enough funds on their account. If a payment was partially authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount in additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. + * @return allowPartialAuth Set to true to authorise a part of the requested amount in case the cardholder does not have enough funds on their account. If a payment was partially authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount in additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. */ @JsonProperty(JSON_PROPERTY_ALLOW_PARTIAL_AUTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -347,16 +244,9 @@ public String getAllowPartialAuth() { } /** - * Set to true to authorise a part of the requested amount in case the cardholder does not have - * enough funds on their account. If a payment was partially authorised, the response includes - * resultCode: PartiallyAuthorised and the authorised amount in - * additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. + * Set to true to authorise a part of the requested amount in case the cardholder does not have enough funds on their account. If a payment was partially authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount in additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. * - * @param allowPartialAuth Set to true to authorise a part of the requested amount in case the - * cardholder does not have enough funds on their account. If a payment was partially - * authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount - * in additionalData.authorisedAmountValue. To enable this functionality, contact our Support - * Team. + * @param allowPartialAuth Set to true to authorise a part of the requested amount in case the cardholder does not have enough funds on their account. If a payment was partially authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount in additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. */ @JsonProperty(JSON_PROPERTY_ALLOW_PARTIAL_AUTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -365,18 +255,9 @@ public void setAllowPartialAuth(String allowPartialAuth) { } /** - * Flags a card payment request for either pre-authorisation or final authorisation. For more - * information, refer to [Authorisation - * types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). - * Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. - * * **FinalAuth** – flags the payment request to be handled as a final authorisation. + * Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final authorisation. * - * @param authorisationType Flags a card payment request for either pre-authorisation or final - * authorisation. For more information, refer to [Authorisation - * types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). - * Allowed values: * **PreAuth** – flags the payment request to be handled as a - * pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final - * authorisation. + * @param authorisationType Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final authorisation. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon authorisationType(String authorisationType) { @@ -385,18 +266,8 @@ public AdditionalDataCommon authorisationType(String authorisationType) { } /** - * Flags a card payment request for either pre-authorisation or final authorisation. For more - * information, refer to [Authorisation - * types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). - * Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. - * * **FinalAuth** – flags the payment request to be handled as a final authorisation. - * - * @return authorisationType Flags a card payment request for either pre-authorisation or final - * authorisation. For more information, refer to [Authorisation - * types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). - * Allowed values: * **PreAuth** – flags the payment request to be handled as a - * pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final - * authorisation. + * Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final authorisation. + * @return authorisationType Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final authorisation. */ @JsonProperty(JSON_PROPERTY_AUTHORISATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -405,18 +276,9 @@ public String getAuthorisationType() { } /** - * Flags a card payment request for either pre-authorisation or final authorisation. For more - * information, refer to [Authorisation - * types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). - * Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. - * * **FinalAuth** – flags the payment request to be handled as a final authorisation. + * Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final authorisation. * - * @param authorisationType Flags a card payment request for either pre-authorisation or final - * authorisation. For more information, refer to [Authorisation - * types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). - * Allowed values: * **PreAuth** – flags the payment request to be handled as a - * pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final - * authorisation. + * @param authorisationType Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final authorisation. */ @JsonProperty(JSON_PROPERTY_AUTHORISATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -425,12 +287,9 @@ public void setAuthorisationType(String authorisationType) { } /** - * Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) - * for a transaction. Use the `maxDaysToRescue` to specify a rescue window. + * Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the `maxDaysToRescue` to specify a rescue window. * - * @param autoRescue Set to **true** to enable [Auto - * Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the - * `maxDaysToRescue` to specify a rescue window. + * @param autoRescue Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the `maxDaysToRescue` to specify a rescue window. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon autoRescue(String autoRescue) { @@ -439,12 +298,8 @@ public AdditionalDataCommon autoRescue(String autoRescue) { } /** - * Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) - * for a transaction. Use the `maxDaysToRescue` to specify a rescue window. - * - * @return autoRescue Set to **true** to enable [Auto - * Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the - * `maxDaysToRescue` to specify a rescue window. + * Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the `maxDaysToRescue` to specify a rescue window. + * @return autoRescue Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the `maxDaysToRescue` to specify a rescue window. */ @JsonProperty(JSON_PROPERTY_AUTO_RESCUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -453,12 +308,9 @@ public String getAutoRescue() { } /** - * Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) - * for a transaction. Use the `maxDaysToRescue` to specify a rescue window. + * Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the `maxDaysToRescue` to specify a rescue window. * - * @param autoRescue Set to **true** to enable [Auto - * Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the - * `maxDaysToRescue` to specify a rescue window. + * @param autoRescue Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the `maxDaysToRescue` to specify a rescue window. */ @JsonProperty(JSON_PROPERTY_AUTO_RESCUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -467,18 +319,9 @@ public void setAutoRescue(String autoRescue) { } /** - * Allows you to determine or override the acquirer account that should be used for the - * transaction. If you need to process a payment with an acquirer different from a default one, - * you can set up a corresponding configuration on the Adyen payments platform. Then you can pass - * a custom routing flag in a payment request's additional data to target a specific acquirer. - * To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). + * Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request's additional data to target a specific acquirer. To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param customRoutingFlag Allows you to determine or override the acquirer account that should - * be used for the transaction. If you need to process a payment with an acquirer different - * from a default one, you can set up a corresponding configuration on the Adyen payments - * platform. Then you can pass a custom routing flag in a payment request's additional - * data to target a specific acquirer. To enable this functionality, contact - * [Support](https://www.adyen.help/hc/en-us/requests/new). + * @param customRoutingFlag Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request's additional data to target a specific acquirer. To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon customRoutingFlag(String customRoutingFlag) { @@ -487,18 +330,8 @@ public AdditionalDataCommon customRoutingFlag(String customRoutingFlag) { } /** - * Allows you to determine or override the acquirer account that should be used for the - * transaction. If you need to process a payment with an acquirer different from a default one, - * you can set up a corresponding configuration on the Adyen payments platform. Then you can pass - * a custom routing flag in a payment request's additional data to target a specific acquirer. - * To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). - * - * @return customRoutingFlag Allows you to determine or override the acquirer account that should - * be used for the transaction. If you need to process a payment with an acquirer different - * from a default one, you can set up a corresponding configuration on the Adyen payments - * platform. Then you can pass a custom routing flag in a payment request's additional - * data to target a specific acquirer. To enable this functionality, contact - * [Support](https://www.adyen.help/hc/en-us/requests/new). + * Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request's additional data to target a specific acquirer. To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). + * @return customRoutingFlag Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request's additional data to target a specific acquirer. To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_CUSTOM_ROUTING_FLAG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -507,18 +340,9 @@ public String getCustomRoutingFlag() { } /** - * Allows you to determine or override the acquirer account that should be used for the - * transaction. If you need to process a payment with an acquirer different from a default one, - * you can set up a corresponding configuration on the Adyen payments platform. Then you can pass - * a custom routing flag in a payment request's additional data to target a specific acquirer. - * To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). + * Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request's additional data to target a specific acquirer. To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param customRoutingFlag Allows you to determine or override the acquirer account that should - * be used for the transaction. If you need to process a payment with an acquirer different - * from a default one, you can set up a corresponding configuration on the Adyen payments - * platform. Then you can pass a custom routing flag in a payment request's additional - * data to target a specific acquirer. To enable this functionality, contact - * [Support](https://www.adyen.help/hc/en-us/requests/new). + * @param customRoutingFlag Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request's additional data to target a specific acquirer. To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_CUSTOM_ROUTING_FLAG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -527,20 +351,9 @@ public void setCustomRoutingFlag(String customRoutingFlag) { } /** - * In case of [asynchronous authorisation - * adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), - * this field denotes why the additional payment is made. Possible values: * **NoShow**: An - * incremental charge is carried out because of a no-show for a guaranteed reservation. * - * **DelayedCharge**: An incremental charge is carried out to process an additional payment after - * the original services have been rendered and the respective payment has been processed. + * In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed. * - * @param industryUsage In case of [asynchronous authorisation - * adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), - * this field denotes why the additional payment is made. Possible values: * **NoShow**: An - * incremental charge is carried out because of a no-show for a guaranteed reservation. * - * **DelayedCharge**: An incremental charge is carried out to process an additional payment - * after the original services have been rendered and the respective payment has been - * processed. + * @param industryUsage In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon industryUsage(IndustryUsageEnum industryUsage) { @@ -549,20 +362,8 @@ public AdditionalDataCommon industryUsage(IndustryUsageEnum industryUsage) { } /** - * In case of [asynchronous authorisation - * adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), - * this field denotes why the additional payment is made. Possible values: * **NoShow**: An - * incremental charge is carried out because of a no-show for a guaranteed reservation. * - * **DelayedCharge**: An incremental charge is carried out to process an additional payment after - * the original services have been rendered and the respective payment has been processed. - * - * @return industryUsage In case of [asynchronous authorisation - * adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), - * this field denotes why the additional payment is made. Possible values: * **NoShow**: An - * incremental charge is carried out because of a no-show for a guaranteed reservation. * - * **DelayedCharge**: An incremental charge is carried out to process an additional payment - * after the original services have been rendered and the respective payment has been - * processed. + * In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed. + * @return industryUsage In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed. */ @JsonProperty(JSON_PROPERTY_INDUSTRY_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -571,20 +372,9 @@ public IndustryUsageEnum getIndustryUsage() { } /** - * In case of [asynchronous authorisation - * adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), - * this field denotes why the additional payment is made. Possible values: * **NoShow**: An - * incremental charge is carried out because of a no-show for a guaranteed reservation. * - * **DelayedCharge**: An incremental charge is carried out to process an additional payment after - * the original services have been rendered and the respective payment has been processed. + * In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed. * - * @param industryUsage In case of [asynchronous authorisation - * adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), - * this field denotes why the additional payment is made. Possible values: * **NoShow**: An - * incremental charge is carried out because of a no-show for a guaranteed reservation. * - * **DelayedCharge**: An incremental charge is carried out to process an additional payment - * after the original services have been rendered and the respective payment has been - * processed. + * @param industryUsage In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed. */ @JsonProperty(JSON_PROPERTY_INDUSTRY_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -593,11 +383,9 @@ public void setIndustryUsage(IndustryUsageEnum industryUsage) { } /** - * Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for - * the transaction. + * Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for the transaction. * - * @param manualCapture Set to **true** to require [manual - * capture](https://docs.adyen.com/online-payments/capture) for the transaction. + * @param manualCapture Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for the transaction. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon manualCapture(String manualCapture) { @@ -606,11 +394,8 @@ public AdditionalDataCommon manualCapture(String manualCapture) { } /** - * Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for - * the transaction. - * - * @return manualCapture Set to **true** to require [manual - * capture](https://docs.adyen.com/online-payments/capture) for the transaction. + * Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for the transaction. + * @return manualCapture Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for the transaction. */ @JsonProperty(JSON_PROPERTY_MANUAL_CAPTURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -619,11 +404,9 @@ public String getManualCapture() { } /** - * Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for - * the transaction. + * Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for the transaction. * - * @param manualCapture Set to **true** to require [manual - * capture](https://docs.adyen.com/online-payments/capture) for the transaction. + * @param manualCapture Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for the transaction. */ @JsonProperty(JSON_PROPERTY_MANUAL_CAPTURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -632,17 +415,9 @@ public void setManualCapture(String manualCapture) { } /** - * The rescue window for a transaction, in days, when `autoRescue` is set to **true**. - * You can specify a value between 1 and 48. * For - * [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar - * month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is - * 42 days. + * The rescue window for a transaction, in days, when `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is 42 days. * - * @param maxDaysToRescue The rescue window for a transaction, in days, when - * `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For - * [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one - * calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the - * default is 42 days. + * @param maxDaysToRescue The rescue window for a transaction, in days, when `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is 42 days. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon maxDaysToRescue(String maxDaysToRescue) { @@ -651,17 +426,8 @@ public AdditionalDataCommon maxDaysToRescue(String maxDaysToRescue) { } /** - * The rescue window for a transaction, in days, when `autoRescue` is set to **true**. - * You can specify a value between 1 and 48. * For - * [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar - * month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is - * 42 days. - * - * @return maxDaysToRescue The rescue window for a transaction, in days, when - * `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For - * [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one - * calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the - * default is 42 days. + * The rescue window for a transaction, in days, when `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is 42 days. + * @return maxDaysToRescue The rescue window for a transaction, in days, when `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is 42 days. */ @JsonProperty(JSON_PROPERTY_MAX_DAYS_TO_RESCUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -670,17 +436,9 @@ public String getMaxDaysToRescue() { } /** - * The rescue window for a transaction, in days, when `autoRescue` is set to **true**. - * You can specify a value between 1 and 48. * For - * [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar - * month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is - * 42 days. + * The rescue window for a transaction, in days, when `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is 42 days. * - * @param maxDaysToRescue The rescue window for a transaction, in days, when - * `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For - * [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one - * calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the - * default is 42 days. + * @param maxDaysToRescue The rescue window for a transaction, in days, when `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is 42 days. */ @JsonProperty(JSON_PROPERTY_MAX_DAYS_TO_RESCUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -689,25 +447,9 @@ public void setMaxDaysToRescue(String maxDaysToRescue) { } /** - * Allows you to link the transaction to the original or previous one in a - * subscription/card-on-file chain. This field is required for token-based transactions where - * Adyen does not tokenize the card. Transaction identifier from card schemes, for example, - * Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the - * contract in your payment request if you are not tokenizing card details with Adyen and are - * making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending - * `shopperInteraction` **ContAuth** and `recurringProcessingModel` - * **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as - * MIT. + * Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT. * - * @param networkTxReference Allows you to link the transaction to the original or previous one in - * a subscription/card-on-file chain. This field is required for token-based transactions - * where Adyen does not tokenize the card. Transaction identifier from card schemes, for - * example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID - * of the contract in your payment request if you are not tokenizing card details with Adyen - * and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you - * are sending `shopperInteraction` **ContAuth** and - * `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to - * ensure that the transaction is classified as MIT. + * @param networkTxReference Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon networkTxReference(String networkTxReference) { @@ -716,25 +458,8 @@ public AdditionalDataCommon networkTxReference(String networkTxReference) { } /** - * Allows you to link the transaction to the original or previous one in a - * subscription/card-on-file chain. This field is required for token-based transactions where - * Adyen does not tokenize the card. Transaction identifier from card schemes, for example, - * Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the - * contract in your payment request if you are not tokenizing card details with Adyen and are - * making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending - * `shopperInteraction` **ContAuth** and `recurringProcessingModel` - * **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as - * MIT. - * - * @return networkTxReference Allows you to link the transaction to the original or previous one - * in a subscription/card-on-file chain. This field is required for token-based transactions - * where Adyen does not tokenize the card. Transaction identifier from card schemes, for - * example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID - * of the contract in your payment request if you are not tokenizing card details with Adyen - * and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you - * are sending `shopperInteraction` **ContAuth** and - * `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to - * ensure that the transaction is classified as MIT. + * Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT. + * @return networkTxReference Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT. */ @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -743,25 +468,9 @@ public String getNetworkTxReference() { } /** - * Allows you to link the transaction to the original or previous one in a - * subscription/card-on-file chain. This field is required for token-based transactions where - * Adyen does not tokenize the card. Transaction identifier from card schemes, for example, - * Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the - * contract in your payment request if you are not tokenizing card details with Adyen and are - * making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending - * `shopperInteraction` **ContAuth** and `recurringProcessingModel` - * **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as - * MIT. + * Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT. * - * @param networkTxReference Allows you to link the transaction to the original or previous one in - * a subscription/card-on-file chain. This field is required for token-based transactions - * where Adyen does not tokenize the card. Transaction identifier from card schemes, for - * example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID - * of the contract in your payment request if you are not tokenizing card details with Adyen - * and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you - * are sending `shopperInteraction` **ContAuth** and - * `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to - * ensure that the transaction is classified as MIT. + * @param networkTxReference Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT. */ @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -770,15 +479,9 @@ public void setNetworkTxReference(String networkTxReference) { } /** - * Boolean indicator that can be optionally used for performing debit transactions on combo cards - * (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this - * to true if you want to use the `selectedBrand` value to specify how to process the - * transaction. + * Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction. * - * @param overwriteBrand Boolean indicator that can be optionally used for performing debit - * transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but - * we recommend that you set this to true if you want to use the `selectedBrand` - * value to specify how to process the transaction. + * @param overwriteBrand Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon overwriteBrand(String overwriteBrand) { @@ -787,15 +490,8 @@ public AdditionalDataCommon overwriteBrand(String overwriteBrand) { } /** - * Boolean indicator that can be optionally used for performing debit transactions on combo cards - * (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this - * to true if you want to use the `selectedBrand` value to specify how to process the - * transaction. - * - * @return overwriteBrand Boolean indicator that can be optionally used for performing debit - * transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but - * we recommend that you set this to true if you want to use the `selectedBrand` - * value to specify how to process the transaction. + * Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction. + * @return overwriteBrand Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction. */ @JsonProperty(JSON_PROPERTY_OVERWRITE_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -804,15 +500,9 @@ public String getOverwriteBrand() { } /** - * Boolean indicator that can be optionally used for performing debit transactions on combo cards - * (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this - * to true if you want to use the `selectedBrand` value to specify how to process the - * transaction. + * Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction. * - * @param overwriteBrand Boolean indicator that can be optionally used for performing debit - * transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but - * we recommend that you set this to true if you want to use the `selectedBrand` - * value to specify how to process the transaction. + * @param overwriteBrand Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction. */ @JsonProperty(JSON_PROPERTY_OVERWRITE_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -821,13 +511,9 @@ public void setOverwriteBrand(String overwriteBrand) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the city of the actual merchant's address. * Format: alpha-numeric. - * * Maximum length: 13 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 13 characters. * - * @param subMerchantCity This field is required if the transaction is performed by a registered - * payment facilitator. This field must contain the city of the actual merchant's address. - * * Format: alpha-numeric. * Maximum length: 13 characters. + * @param subMerchantCity This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 13 characters. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantCity(String subMerchantCity) { @@ -836,13 +522,8 @@ public AdditionalDataCommon subMerchantCity(String subMerchantCity) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the city of the actual merchant's address. * Format: alpha-numeric. - * * Maximum length: 13 characters. - * - * @return subMerchantCity This field is required if the transaction is performed by a registered - * payment facilitator. This field must contain the city of the actual merchant's address. - * * Format: alpha-numeric. * Maximum length: 13 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 13 characters. + * @return subMerchantCity This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 13 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -851,13 +532,9 @@ public String getSubMerchantCity() { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the city of the actual merchant's address. * Format: alpha-numeric. - * * Maximum length: 13 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 13 characters. * - * @param subMerchantCity This field is required if the transaction is performed by a registered - * payment facilitator. This field must contain the city of the actual merchant's address. - * * Format: alpha-numeric. * Maximum length: 13 characters. + * @param subMerchantCity This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 13 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -866,13 +543,9 @@ public void setSubMerchantCity(String subMerchantCity) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the three-letter country code of the actual merchant's address. * - * Format: alpha-numeric. * Fixed length: 3 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. * - * @param subMerchantCountry This field is required if the transaction is performed by a - * registered payment facilitator. This field must contain the three-letter country code of - * the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. + * @param subMerchantCountry This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantCountry(String subMerchantCountry) { @@ -881,13 +554,8 @@ public AdditionalDataCommon subMerchantCountry(String subMerchantCountry) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the three-letter country code of the actual merchant's address. * - * Format: alpha-numeric. * Fixed length: 3 characters. - * - * @return subMerchantCountry This field is required if the transaction is performed by a - * registered payment facilitator. This field must contain the three-letter country code of - * the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. + * @return subMerchantCountry This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -896,13 +564,9 @@ public String getSubMerchantCountry() { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the three-letter country code of the actual merchant's address. * - * Format: alpha-numeric. * Fixed length: 3 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. * - * @param subMerchantCountry This field is required if the transaction is performed by a - * registered payment facilitator. This field must contain the three-letter country code of - * the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. + * @param subMerchantCountry This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -911,13 +575,9 @@ public void setSubMerchantCountry(String subMerchantCountry) { } /** - * This field is required for transactions performed by registered payment facilitators. This - * field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: - * 40 characters + * This field is required for transactions performed by registered payment facilitators. This field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters * - * @param subMerchantEmail This field is required for transactions performed by registered payment - * facilitators. This field contains the email address of the sub-merchant. * Format: - * Alphanumeric * Maximum length: 40 characters + * @param subMerchantEmail This field is required for transactions performed by registered payment facilitators. This field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantEmail(String subMerchantEmail) { @@ -926,13 +586,8 @@ public AdditionalDataCommon subMerchantEmail(String subMerchantEmail) { } /** - * This field is required for transactions performed by registered payment facilitators. This - * field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: - * 40 characters - * - * @return subMerchantEmail This field is required for transactions performed by registered - * payment facilitators. This field contains the email address of the sub-merchant. * Format: - * Alphanumeric * Maximum length: 40 characters + * This field is required for transactions performed by registered payment facilitators. This field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters + * @return subMerchantEmail This field is required for transactions performed by registered payment facilitators. This field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -941,13 +596,9 @@ public String getSubMerchantEmail() { } /** - * This field is required for transactions performed by registered payment facilitators. This - * field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: - * 40 characters + * This field is required for transactions performed by registered payment facilitators. This field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters * - * @param subMerchantEmail This field is required for transactions performed by registered payment - * facilitators. This field contains the email address of the sub-merchant. * Format: - * Alphanumeric * Maximum length: 40 characters + * @param subMerchantEmail This field is required for transactions performed by registered payment facilitators. This field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -956,16 +607,9 @@ public void setSubMerchantEmail(String subMerchantEmail) { } /** - * This field contains an identifier of the actual merchant when a transaction is submitted via a - * payment facilitator. The payment facilitator must send in this unique ID. A unique identifier - * per submerchant that is required if the transaction is performed by a registered payment - * facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. + * This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. * - * @param subMerchantID This field contains an identifier of the actual merchant when a - * transaction is submitted via a payment facilitator. The payment facilitator must send in - * this unique ID. A unique identifier per submerchant that is required if the transaction is - * performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 - * characters. + * @param subMerchantID This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantID(String subMerchantID) { @@ -974,16 +618,8 @@ public AdditionalDataCommon subMerchantID(String subMerchantID) { } /** - * This field contains an identifier of the actual merchant when a transaction is submitted via a - * payment facilitator. The payment facilitator must send in this unique ID. A unique identifier - * per submerchant that is required if the transaction is performed by a registered payment - * facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. - * - * @return subMerchantID This field contains an identifier of the actual merchant when a - * transaction is submitted via a payment facilitator. The payment facilitator must send in - * this unique ID. A unique identifier per submerchant that is required if the transaction is - * performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 - * characters. + * This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. + * @return subMerchantID This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -992,16 +628,9 @@ public String getSubMerchantID() { } /** - * This field contains an identifier of the actual merchant when a transaction is submitted via a - * payment facilitator. The payment facilitator must send in this unique ID. A unique identifier - * per submerchant that is required if the transaction is performed by a registered payment - * facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. + * This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. * - * @param subMerchantID This field contains an identifier of the actual merchant when a - * transaction is submitted via a payment facilitator. The payment facilitator must send in - * this unique ID. A unique identifier per submerchant that is required if the transaction is - * performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 - * characters. + * @param subMerchantID This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1010,13 +639,9 @@ public void setSubMerchantID(String subMerchantID) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum - * length: 22 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum length: 22 characters. * - * @param subMerchantName This field is required if the transaction is performed by a registered - * payment facilitator. This field must contain the name of the actual merchant. * Format: - * alpha-numeric. * Maximum length: 22 characters. + * @param subMerchantName This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum length: 22 characters. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantName(String subMerchantName) { @@ -1025,13 +650,8 @@ public AdditionalDataCommon subMerchantName(String subMerchantName) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum - * length: 22 characters. - * - * @return subMerchantName This field is required if the transaction is performed by a registered - * payment facilitator. This field must contain the name of the actual merchant. * Format: - * alpha-numeric. * Maximum length: 22 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum length: 22 characters. + * @return subMerchantName This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum length: 22 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1040,13 +660,9 @@ public String getSubMerchantName() { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum - * length: 22 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum length: 22 characters. * - * @param subMerchantName This field is required if the transaction is performed by a registered - * payment facilitator. This field must contain the name of the actual merchant. * Format: - * alpha-numeric. * Maximum length: 22 characters. + * @param subMerchantName This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum length: 22 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1055,13 +671,9 @@ public void setSubMerchantName(String subMerchantName) { } /** - * This field is required for transactions performed by registered payment facilitators. This - * field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 - * characters + * This field is required for transactions performed by registered payment facilitators. This field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters * - * @param subMerchantPhoneNumber This field is required for transactions performed by registered - * payment facilitators. This field contains the phone number of the sub-merchant.* Format: - * Alphanumeric * Maximum length: 20 characters + * @param subMerchantPhoneNumber This field is required for transactions performed by registered payment facilitators. This field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantPhoneNumber(String subMerchantPhoneNumber) { @@ -1070,13 +682,8 @@ public AdditionalDataCommon subMerchantPhoneNumber(String subMerchantPhoneNumber } /** - * This field is required for transactions performed by registered payment facilitators. This - * field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 - * characters - * - * @return subMerchantPhoneNumber This field is required for transactions performed by registered - * payment facilitators. This field contains the phone number of the sub-merchant.* Format: - * Alphanumeric * Maximum length: 20 characters + * This field is required for transactions performed by registered payment facilitators. This field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * @return subMerchantPhoneNumber This field is required for transactions performed by registered payment facilitators. This field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1085,13 +692,9 @@ public String getSubMerchantPhoneNumber() { } /** - * This field is required for transactions performed by registered payment facilitators. This - * field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 - * characters + * This field is required for transactions performed by registered payment facilitators. This field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters * - * @param subMerchantPhoneNumber This field is required for transactions performed by registered - * payment facilitators. This field contains the phone number of the sub-merchant.* Format: - * Alphanumeric * Maximum length: 20 characters + * @param subMerchantPhoneNumber This field is required for transactions performed by registered payment facilitators. This field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1100,13 +703,9 @@ public void setSubMerchantPhoneNumber(String subMerchantPhoneNumber) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the postal code of the actual merchant's address. * Format: - * alpha-numeric. * Maximum length: 10 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. * - * @param subMerchantPostalCode This field is required if the transaction is performed by a - * registered payment facilitator. This field must contain the postal code of the actual - * merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. + * @param subMerchantPostalCode This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantPostalCode(String subMerchantPostalCode) { @@ -1115,13 +714,8 @@ public AdditionalDataCommon subMerchantPostalCode(String subMerchantPostalCode) } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the postal code of the actual merchant's address. * Format: - * alpha-numeric. * Maximum length: 10 characters. - * - * @return subMerchantPostalCode This field is required if the transaction is performed by a - * registered payment facilitator. This field must contain the postal code of the actual - * merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. + * @return subMerchantPostalCode This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1130,13 +724,9 @@ public String getSubMerchantPostalCode() { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the postal code of the actual merchant's address. * Format: - * alpha-numeric. * Maximum length: 10 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. * - * @param subMerchantPostalCode This field is required if the transaction is performed by a - * registered payment facilitator. This field must contain the postal code of the actual - * merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. + * @param subMerchantPostalCode This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1145,14 +735,9 @@ public void setSubMerchantPostalCode(String subMerchantPostalCode) { } /** - * This field is required if the transaction is performed by a registered payment facilitator, and - * if applicable to the country. This field must contain the state code of the actual - * merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. + * This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. * - * @param subMerchantState This field is required if the transaction is performed by a registered - * payment facilitator, and if applicable to the country. This field must contain the state - * code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 - * characters. + * @param subMerchantState This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantState(String subMerchantState) { @@ -1161,14 +746,8 @@ public AdditionalDataCommon subMerchantState(String subMerchantState) { } /** - * This field is required if the transaction is performed by a registered payment facilitator, and - * if applicable to the country. This field must contain the state code of the actual - * merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. - * - * @return subMerchantState This field is required if the transaction is performed by a registered - * payment facilitator, and if applicable to the country. This field must contain the state - * code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 - * characters. + * This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. + * @return subMerchantState This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_STATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1177,14 +756,9 @@ public String getSubMerchantState() { } /** - * This field is required if the transaction is performed by a registered payment facilitator, and - * if applicable to the country. This field must contain the state code of the actual - * merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. + * This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. * - * @param subMerchantState This field is required if the transaction is performed by a registered - * payment facilitator, and if applicable to the country. This field must contain the state - * code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 - * characters. + * @param subMerchantState This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_STATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1193,13 +767,9 @@ public void setSubMerchantState(String subMerchantState) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the street of the actual merchant's address. * Format: - * alpha-numeric. * Maximum length: 60 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 60 characters. * - * @param subMerchantStreet This field is required if the transaction is performed by a registered - * payment facilitator. This field must contain the street of the actual merchant's - * address. * Format: alpha-numeric. * Maximum length: 60 characters. + * @param subMerchantStreet This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 60 characters. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantStreet(String subMerchantStreet) { @@ -1208,13 +778,8 @@ public AdditionalDataCommon subMerchantStreet(String subMerchantStreet) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the street of the actual merchant's address. * Format: - * alpha-numeric. * Maximum length: 60 characters. - * - * @return subMerchantStreet This field is required if the transaction is performed by a - * registered payment facilitator. This field must contain the street of the actual - * merchant's address. * Format: alpha-numeric. * Maximum length: 60 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 60 characters. + * @return subMerchantStreet This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 60 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1223,13 +788,9 @@ public String getSubMerchantStreet() { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the street of the actual merchant's address. * Format: - * alpha-numeric. * Maximum length: 60 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 60 characters. * - * @param subMerchantStreet This field is required if the transaction is performed by a registered - * payment facilitator. This field must contain the street of the actual merchant's - * address. * Format: alpha-numeric. * Maximum length: 60 characters. + * @param subMerchantStreet This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 60 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1238,13 +799,9 @@ public void setSubMerchantStreet(String subMerchantStreet) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed - * length: 11 or 14 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed length: 11 or 14 characters. * - * @param subMerchantTaxId This field is required if the transaction is performed by a registered - * payment facilitator. This field must contain the tax ID of the actual merchant. * Format: - * alpha-numeric. * Fixed length: 11 or 14 characters. + * @param subMerchantTaxId This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed length: 11 or 14 characters. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantTaxId(String subMerchantTaxId) { @@ -1253,13 +810,8 @@ public AdditionalDataCommon subMerchantTaxId(String subMerchantTaxId) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed - * length: 11 or 14 characters. - * - * @return subMerchantTaxId This field is required if the transaction is performed by a registered - * payment facilitator. This field must contain the tax ID of the actual merchant. * Format: - * alpha-numeric. * Fixed length: 11 or 14 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed length: 11 or 14 characters. + * @return subMerchantTaxId This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed length: 11 or 14 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_TAX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1268,13 +820,9 @@ public String getSubMerchantTaxId() { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed - * length: 11 or 14 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed length: 11 or 14 characters. * - * @param subMerchantTaxId This field is required if the transaction is performed by a registered - * payment facilitator. This field must contain the tax ID of the actual merchant. * Format: - * alpha-numeric. * Fixed length: 11 or 14 characters. + * @param subMerchantTaxId This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed length: 11 or 14 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_TAX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1282,7 +830,9 @@ public void setSubMerchantTaxId(String subMerchantTaxId) { this.subMerchantTaxId = subMerchantTaxId; } - /** Return true if this AdditionalDataCommon object is equal to o. */ + /** + * Return true if this AdditionalDataCommon object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -1292,69 +842,40 @@ public boolean equals(Object o) { return false; } AdditionalDataCommon additionalDataCommon = (AdditionalDataCommon) o; - return Objects.equals( - this.requestedTestAcquirerResponseCode, - additionalDataCommon.requestedTestAcquirerResponseCode) - && Objects.equals( - this.requestedTestErrorResponseCode, - additionalDataCommon.requestedTestErrorResponseCode) - && Objects.equals(this.allowPartialAuth, additionalDataCommon.allowPartialAuth) - && Objects.equals(this.authorisationType, additionalDataCommon.authorisationType) - && Objects.equals(this.autoRescue, additionalDataCommon.autoRescue) - && Objects.equals(this.customRoutingFlag, additionalDataCommon.customRoutingFlag) - && Objects.equals(this.industryUsage, additionalDataCommon.industryUsage) - && Objects.equals(this.manualCapture, additionalDataCommon.manualCapture) - && Objects.equals(this.maxDaysToRescue, additionalDataCommon.maxDaysToRescue) - && Objects.equals(this.networkTxReference, additionalDataCommon.networkTxReference) - && Objects.equals(this.overwriteBrand, additionalDataCommon.overwriteBrand) - && Objects.equals(this.subMerchantCity, additionalDataCommon.subMerchantCity) - && Objects.equals(this.subMerchantCountry, additionalDataCommon.subMerchantCountry) - && Objects.equals(this.subMerchantEmail, additionalDataCommon.subMerchantEmail) - && Objects.equals(this.subMerchantID, additionalDataCommon.subMerchantID) - && Objects.equals(this.subMerchantName, additionalDataCommon.subMerchantName) - && Objects.equals(this.subMerchantPhoneNumber, additionalDataCommon.subMerchantPhoneNumber) - && Objects.equals(this.subMerchantPostalCode, additionalDataCommon.subMerchantPostalCode) - && Objects.equals(this.subMerchantState, additionalDataCommon.subMerchantState) - && Objects.equals(this.subMerchantStreet, additionalDataCommon.subMerchantStreet) - && Objects.equals(this.subMerchantTaxId, additionalDataCommon.subMerchantTaxId); + return Objects.equals(this.requestedTestAcquirerResponseCode, additionalDataCommon.requestedTestAcquirerResponseCode) && + Objects.equals(this.requestedTestErrorResponseCode, additionalDataCommon.requestedTestErrorResponseCode) && + Objects.equals(this.allowPartialAuth, additionalDataCommon.allowPartialAuth) && + Objects.equals(this.authorisationType, additionalDataCommon.authorisationType) && + Objects.equals(this.autoRescue, additionalDataCommon.autoRescue) && + Objects.equals(this.customRoutingFlag, additionalDataCommon.customRoutingFlag) && + Objects.equals(this.industryUsage, additionalDataCommon.industryUsage) && + Objects.equals(this.manualCapture, additionalDataCommon.manualCapture) && + Objects.equals(this.maxDaysToRescue, additionalDataCommon.maxDaysToRescue) && + Objects.equals(this.networkTxReference, additionalDataCommon.networkTxReference) && + Objects.equals(this.overwriteBrand, additionalDataCommon.overwriteBrand) && + Objects.equals(this.subMerchantCity, additionalDataCommon.subMerchantCity) && + Objects.equals(this.subMerchantCountry, additionalDataCommon.subMerchantCountry) && + Objects.equals(this.subMerchantEmail, additionalDataCommon.subMerchantEmail) && + Objects.equals(this.subMerchantID, additionalDataCommon.subMerchantID) && + Objects.equals(this.subMerchantName, additionalDataCommon.subMerchantName) && + Objects.equals(this.subMerchantPhoneNumber, additionalDataCommon.subMerchantPhoneNumber) && + Objects.equals(this.subMerchantPostalCode, additionalDataCommon.subMerchantPostalCode) && + Objects.equals(this.subMerchantState, additionalDataCommon.subMerchantState) && + Objects.equals(this.subMerchantStreet, additionalDataCommon.subMerchantStreet) && + Objects.equals(this.subMerchantTaxId, additionalDataCommon.subMerchantTaxId); } @Override public int hashCode() { - return Objects.hash( - requestedTestAcquirerResponseCode, - requestedTestErrorResponseCode, - allowPartialAuth, - authorisationType, - autoRescue, - customRoutingFlag, - industryUsage, - manualCapture, - maxDaysToRescue, - networkTxReference, - overwriteBrand, - subMerchantCity, - subMerchantCountry, - subMerchantEmail, - subMerchantID, - subMerchantName, - subMerchantPhoneNumber, - subMerchantPostalCode, - subMerchantState, - subMerchantStreet, - subMerchantTaxId); + return Objects.hash(requestedTestAcquirerResponseCode, requestedTestErrorResponseCode, allowPartialAuth, authorisationType, autoRescue, customRoutingFlag, industryUsage, manualCapture, maxDaysToRescue, networkTxReference, overwriteBrand, subMerchantCity, subMerchantCountry, subMerchantEmail, subMerchantID, subMerchantName, subMerchantPhoneNumber, subMerchantPostalCode, subMerchantState, subMerchantStreet, subMerchantTaxId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataCommon {\n"); - sb.append(" requestedTestAcquirerResponseCode: ") - .append(toIndentedString(requestedTestAcquirerResponseCode)) - .append("\n"); - sb.append(" requestedTestErrorResponseCode: ") - .append(toIndentedString(requestedTestErrorResponseCode)) - .append("\n"); + sb.append(" requestedTestAcquirerResponseCode: ").append(toIndentedString(requestedTestAcquirerResponseCode)).append("\n"); + sb.append(" requestedTestErrorResponseCode: ").append(toIndentedString(requestedTestErrorResponseCode)).append("\n"); sb.append(" allowPartialAuth: ").append(toIndentedString(allowPartialAuth)).append("\n"); sb.append(" authorisationType: ").append(toIndentedString(authorisationType)).append("\n"); sb.append(" autoRescue: ").append(toIndentedString(autoRescue)).append("\n"); @@ -1369,12 +890,8 @@ public String toString() { sb.append(" subMerchantEmail: ").append(toIndentedString(subMerchantEmail)).append("\n"); sb.append(" subMerchantID: ").append(toIndentedString(subMerchantID)).append("\n"); sb.append(" subMerchantName: ").append(toIndentedString(subMerchantName)).append("\n"); - sb.append(" subMerchantPhoneNumber: ") - .append(toIndentedString(subMerchantPhoneNumber)) - .append("\n"); - sb.append(" subMerchantPostalCode: ") - .append(toIndentedString(subMerchantPostalCode)) - .append("\n"); + sb.append(" subMerchantPhoneNumber: ").append(toIndentedString(subMerchantPhoneNumber)).append("\n"); + sb.append(" subMerchantPostalCode: ").append(toIndentedString(subMerchantPostalCode)).append("\n"); sb.append(" subMerchantState: ").append(toIndentedString(subMerchantState)).append("\n"); sb.append(" subMerchantStreet: ").append(toIndentedString(subMerchantStreet)).append("\n"); sb.append(" subMerchantTaxId: ").append(toIndentedString(subMerchantTaxId)).append("\n"); @@ -1383,7 +900,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1392,23 +910,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalDataCommon given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataCommon - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataCommon + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataCommon */ public static AdditionalDataCommon fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataCommon.class); } - - /** - * Convert an instance of AdditionalDataCommon to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalDataCommon to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataLevel23.java b/src/main/java/com/adyen/model/checkout/AdditionalDataLevel23.java index e66397f3c..a510fc263 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataLevel23.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataLevel23.java @@ -2,22 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AdditionalDataLevel23 */ + +/** + * AdditionalDataLevel23 + */ @JsonPropertyOrder({ AdditionalDataLevel23.JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE, AdditionalDataLevel23.JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_COUNTRY_CODE, @@ -37,106 +46,76 @@ AdditionalDataLevel23.JSON_PROPERTY_ENHANCED_SCHEME_DATA_SHIP_FROM_POSTAL_CODE, AdditionalDataLevel23.JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT }) + public class AdditionalDataLevel23 { - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE = - "enhancedSchemeData.customerReference"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE = "enhancedSchemeData.customerReference"; private String enhancedSchemeDataCustomerReference; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_COUNTRY_CODE = - "enhancedSchemeData.destinationCountryCode"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_COUNTRY_CODE = "enhancedSchemeData.destinationCountryCode"; private String enhancedSchemeDataDestinationCountryCode; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_POSTAL_CODE = - "enhancedSchemeData.destinationPostalCode"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_POSTAL_CODE = "enhancedSchemeData.destinationPostalCode"; private String enhancedSchemeDataDestinationPostalCode; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_STATE_PROVINCE_CODE = - "enhancedSchemeData.destinationStateProvinceCode"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_STATE_PROVINCE_CODE = "enhancedSchemeData.destinationStateProvinceCode"; private String enhancedSchemeDataDestinationStateProvinceCode; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_DUTY_AMOUNT = - "enhancedSchemeData.dutyAmount"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_DUTY_AMOUNT = "enhancedSchemeData.dutyAmount"; private String enhancedSchemeDataDutyAmount; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_FREIGHT_AMOUNT = - "enhancedSchemeData.freightAmount"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_FREIGHT_AMOUNT = "enhancedSchemeData.freightAmount"; private String enhancedSchemeDataFreightAmount; - public static final String - JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_COMMODITY_CODE = - "enhancedSchemeData.itemDetailLine[itemNr].commodityCode"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_COMMODITY_CODE = "enhancedSchemeData.itemDetailLine[itemNr].commodityCode"; private String enhancedSchemeDataItemDetailLineItemNrCommodityCode; - public static final String - JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DESCRIPTION = - "enhancedSchemeData.itemDetailLine[itemNr].description"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DESCRIPTION = "enhancedSchemeData.itemDetailLine[itemNr].description"; private String enhancedSchemeDataItemDetailLineItemNrDescription; - public static final String - JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DISCOUNT_AMOUNT = - "enhancedSchemeData.itemDetailLine[itemNr].discountAmount"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DISCOUNT_AMOUNT = "enhancedSchemeData.itemDetailLine[itemNr].discountAmount"; private String enhancedSchemeDataItemDetailLineItemNrDiscountAmount; - public static final String - JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_PRODUCT_CODE = - "enhancedSchemeData.itemDetailLine[itemNr].productCode"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_PRODUCT_CODE = "enhancedSchemeData.itemDetailLine[itemNr].productCode"; private String enhancedSchemeDataItemDetailLineItemNrProductCode; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_QUANTITY = - "enhancedSchemeData.itemDetailLine[itemNr].quantity"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_QUANTITY = "enhancedSchemeData.itemDetailLine[itemNr].quantity"; private String enhancedSchemeDataItemDetailLineItemNrQuantity; - public static final String - JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_TOTAL_AMOUNT = - "enhancedSchemeData.itemDetailLine[itemNr].totalAmount"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_TOTAL_AMOUNT = "enhancedSchemeData.itemDetailLine[itemNr].totalAmount"; private String enhancedSchemeDataItemDetailLineItemNrTotalAmount; - public static final String - JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_UNIT_OF_MEASURE = - "enhancedSchemeData.itemDetailLine[itemNr].unitOfMeasure"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_UNIT_OF_MEASURE = "enhancedSchemeData.itemDetailLine[itemNr].unitOfMeasure"; private String enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure; - public static final String - JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_UNIT_PRICE = - "enhancedSchemeData.itemDetailLine[itemNr].unitPrice"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_UNIT_PRICE = "enhancedSchemeData.itemDetailLine[itemNr].unitPrice"; private String enhancedSchemeDataItemDetailLineItemNrUnitPrice; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ORDER_DATE = - "enhancedSchemeData.orderDate"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ORDER_DATE = "enhancedSchemeData.orderDate"; private String enhancedSchemeDataOrderDate; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_SHIP_FROM_POSTAL_CODE = - "enhancedSchemeData.shipFromPostalCode"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_SHIP_FROM_POSTAL_CODE = "enhancedSchemeData.shipFromPostalCode"; private String enhancedSchemeDataShipFromPostalCode; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT = - "enhancedSchemeData.totalTaxAmount"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT = "enhancedSchemeData.totalTaxAmount"; private String enhancedSchemeDataTotalTaxAmount; - public AdditionalDataLevel23() {} + public AdditionalDataLevel23() { + } /** - * The reference number to identify the customer and their order. * Encoding: ASCII * Max length: - * 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The reference number to identify the customer and their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataCustomerReference The reference number to identify the customer and - * their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or - * be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataCustomerReference The reference number to identify the customer and their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataCustomerReference( - String enhancedSchemeDataCustomerReference) { + public AdditionalDataLevel23 enhancedSchemeDataCustomerReference(String enhancedSchemeDataCustomerReference) { this.enhancedSchemeDataCustomerReference = enhancedSchemeDataCustomerReference; return this; } /** - * The reference number to identify the customer and their order. * Encoding: ASCII * Max length: - * 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. - * - * @return enhancedSchemeDataCustomerReference The reference number to identify the customer and - * their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or - * be all spaces. * Must not be all zeros. + * The reference number to identify the customer and their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @return enhancedSchemeDataCustomerReference The reference number to identify the customer and their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,12 +124,9 @@ public String getEnhancedSchemeDataCustomerReference() { } /** - * The reference number to identify the customer and their order. * Encoding: ASCII * Max length: - * 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The reference number to identify the customer and their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataCustomerReference The reference number to identify the customer and - * their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or - * be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataCustomerReference The reference number to identify the customer and their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,29 +135,19 @@ public void setEnhancedSchemeDataCustomerReference(String enhancedSchemeDataCust } /** - * The three-letter [ISO 3166-1 alpha-3 country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * - * Encoding: ASCII * Fixed length: 3 characters + * The three-letter [ISO 3166-1 alpha-3 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * Encoding: ASCII * Fixed length: 3 characters * - * @param enhancedSchemeDataDestinationCountryCode The three-letter [ISO 3166-1 alpha-3 country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * - * Encoding: ASCII * Fixed length: 3 characters + * @param enhancedSchemeDataDestinationCountryCode The three-letter [ISO 3166-1 alpha-3 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * Encoding: ASCII * Fixed length: 3 characters * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataDestinationCountryCode( - String enhancedSchemeDataDestinationCountryCode) { + public AdditionalDataLevel23 enhancedSchemeDataDestinationCountryCode(String enhancedSchemeDataDestinationCountryCode) { this.enhancedSchemeDataDestinationCountryCode = enhancedSchemeDataDestinationCountryCode; return this; } /** - * The three-letter [ISO 3166-1 alpha-3 country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * - * Encoding: ASCII * Fixed length: 3 characters - * - * @return enhancedSchemeDataDestinationCountryCode The three-letter [ISO 3166-1 alpha-3 country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * - * Encoding: ASCII * Fixed length: 3 characters + * The three-letter [ISO 3166-1 alpha-3 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * Encoding: ASCII * Fixed length: 3 characters + * @return enhancedSchemeDataDestinationCountryCode The three-letter [ISO 3166-1 alpha-3 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * Encoding: ASCII * Fixed length: 3 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,49 +156,30 @@ public String getEnhancedSchemeDataDestinationCountryCode() { } /** - * The three-letter [ISO 3166-1 alpha-3 country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * - * Encoding: ASCII * Fixed length: 3 characters + * The three-letter [ISO 3166-1 alpha-3 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * Encoding: ASCII * Fixed length: 3 characters * - * @param enhancedSchemeDataDestinationCountryCode The three-letter [ISO 3166-1 alpha-3 country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * - * Encoding: ASCII * Fixed length: 3 characters + * @param enhancedSchemeDataDestinationCountryCode The three-letter [ISO 3166-1 alpha-3 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * Encoding: ASCII * Fixed length: 3 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataDestinationCountryCode( - String enhancedSchemeDataDestinationCountryCode) { + public void setEnhancedSchemeDataDestinationCountryCode(String enhancedSchemeDataDestinationCountryCode) { this.enhancedSchemeDataDestinationCountryCode = enhancedSchemeDataDestinationCountryCode; } /** - * The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * - * Must not start with a space. * For the US, it must be in five or nine digits format. For - * example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B - * 1G5. + * The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. * - * @param enhancedSchemeDataDestinationPostalCode The postal code of the destination address. * - * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it - * must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it - * must be in 6 digits format. For example, M4B 1G5. + * @param enhancedSchemeDataDestinationPostalCode The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataDestinationPostalCode( - String enhancedSchemeDataDestinationPostalCode) { + public AdditionalDataLevel23 enhancedSchemeDataDestinationPostalCode(String enhancedSchemeDataDestinationPostalCode) { this.enhancedSchemeDataDestinationPostalCode = enhancedSchemeDataDestinationPostalCode; return this; } /** - * The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * - * Must not start with a space. * For the US, it must be in five or nine digits format. For - * example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B - * 1G5. - * - * @return enhancedSchemeDataDestinationPostalCode The postal code of the destination address. * - * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it - * must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it - * must be in 6 digits format. For example, M4B 1G5. + * The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. + * @return enhancedSchemeDataDestinationPostalCode The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -241,46 +188,30 @@ public String getEnhancedSchemeDataDestinationPostalCode() { } /** - * The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * - * Must not start with a space. * For the US, it must be in five or nine digits format. For - * example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B - * 1G5. + * The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. * - * @param enhancedSchemeDataDestinationPostalCode The postal code of the destination address. * - * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it - * must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it - * must be in 6 digits format. For example, M4B 1G5. + * @param enhancedSchemeDataDestinationPostalCode The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataDestinationPostalCode( - String enhancedSchemeDataDestinationPostalCode) { + public void setEnhancedSchemeDataDestinationPostalCode(String enhancedSchemeDataDestinationPostalCode) { this.enhancedSchemeDataDestinationPostalCode = enhancedSchemeDataDestinationPostalCode; } /** - * The state or province code of the destination address. * Encoding: ASCII * Max length: 3 - * characters * Must not start with a space. + * The state or province code of the destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a space. * - * @param enhancedSchemeDataDestinationStateProvinceCode The state or province code of the - * destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a - * space. + * @param enhancedSchemeDataDestinationStateProvinceCode The state or province code of the destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a space. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataDestinationStateProvinceCode( - String enhancedSchemeDataDestinationStateProvinceCode) { - this.enhancedSchemeDataDestinationStateProvinceCode = - enhancedSchemeDataDestinationStateProvinceCode; + public AdditionalDataLevel23 enhancedSchemeDataDestinationStateProvinceCode(String enhancedSchemeDataDestinationStateProvinceCode) { + this.enhancedSchemeDataDestinationStateProvinceCode = enhancedSchemeDataDestinationStateProvinceCode; return this; } /** - * The state or province code of the destination address. * Encoding: ASCII * Max length: 3 - * characters * Must not start with a space. - * - * @return enhancedSchemeDataDestinationStateProvinceCode The state or province code of the - * destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a - * space. + * The state or province code of the destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a space. + * @return enhancedSchemeDataDestinationStateProvinceCode The state or province code of the destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a space. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_STATE_PROVINCE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -289,29 +220,20 @@ public String getEnhancedSchemeDataDestinationStateProvinceCode() { } /** - * The state or province code of the destination address. * Encoding: ASCII * Max length: 3 - * characters * Must not start with a space. + * The state or province code of the destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a space. * - * @param enhancedSchemeDataDestinationStateProvinceCode The state or province code of the - * destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a - * space. + * @param enhancedSchemeDataDestinationStateProvinceCode The state or province code of the destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a space. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_STATE_PROVINCE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataDestinationStateProvinceCode( - String enhancedSchemeDataDestinationStateProvinceCode) { - this.enhancedSchemeDataDestinationStateProvinceCode = - enhancedSchemeDataDestinationStateProvinceCode; + public void setEnhancedSchemeDataDestinationStateProvinceCode(String enhancedSchemeDataDestinationStateProvinceCode) { + this.enhancedSchemeDataDestinationStateProvinceCode = enhancedSchemeDataDestinationStateProvinceCode; } /** - * The duty tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means - * USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * - * @param enhancedSchemeDataDutyAmount The duty tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 - * means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * @param enhancedSchemeDataDutyAmount The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ public AdditionalDataLevel23 enhancedSchemeDataDutyAmount(String enhancedSchemeDataDutyAmount) { @@ -320,13 +242,8 @@ public AdditionalDataLevel23 enhancedSchemeDataDutyAmount(String enhancedSchemeD } /** - * The duty tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means - * USD 20.00. * Encoding: Numeric * Max length: 12 characters - * - * @return enhancedSchemeDataDutyAmount The duty tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 - * means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * @return enhancedSchemeDataDutyAmount The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_DUTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -335,13 +252,9 @@ public String getEnhancedSchemeDataDutyAmount() { } /** - * The duty tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means - * USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * - * @param enhancedSchemeDataDutyAmount The duty tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 - * means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * @param enhancedSchemeDataDutyAmount The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_DUTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -350,29 +263,19 @@ public void setEnhancedSchemeDataDutyAmount(String enhancedSchemeDataDutyAmount) } /** - * The shipping amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means - * USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * - * @param enhancedSchemeDataFreightAmount The shipping amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 - * means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * @param enhancedSchemeDataFreightAmount The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataFreightAmount( - String enhancedSchemeDataFreightAmount) { + public AdditionalDataLevel23 enhancedSchemeDataFreightAmount(String enhancedSchemeDataFreightAmount) { this.enhancedSchemeDataFreightAmount = enhancedSchemeDataFreightAmount; return this; } /** - * The shipping amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means - * USD 20.00. * Encoding: Numeric * Max length: 12 characters - * - * @return enhancedSchemeDataFreightAmount The shipping amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 - * means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * @return enhancedSchemeDataFreightAmount The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_FREIGHT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -381,13 +284,9 @@ public String getEnhancedSchemeDataFreightAmount() { } /** - * The shipping amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means - * USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * - * @param enhancedSchemeDataFreightAmount The shipping amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 - * means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * @param enhancedSchemeDataFreightAmount The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_FREIGHT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -396,44 +295,19 @@ public void setEnhancedSchemeDataFreightAmount(String enhancedSchemeDataFreightA } /** - * The code that identifies the item in a standardized commodity coding scheme. There are - * different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS - * commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS - * commodity codes](https://www.census.gov/naics/) * [NAPCS commodity - * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * - * Must not start with a space or be all spaces. * Must not be all zeros. + * The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in - * a standardized commodity coding scheme. There are different commodity coding schemes: * - * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity - * codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity - * codes](https://www.census.gov/naics/) * [NAPCS commodity - * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * - * Must not start with a space or be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrCommodityCode( - String enhancedSchemeDataItemDetailLineItemNrCommodityCode) { - this.enhancedSchemeDataItemDetailLineItemNrCommodityCode = - enhancedSchemeDataItemDetailLineItemNrCommodityCode; + public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrCommodityCode(String enhancedSchemeDataItemDetailLineItemNrCommodityCode) { + this.enhancedSchemeDataItemDetailLineItemNrCommodityCode = enhancedSchemeDataItemDetailLineItemNrCommodityCode; return this; } /** - * The code that identifies the item in a standardized commodity coding scheme. There are - * different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS - * commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS - * commodity codes](https://www.census.gov/naics/) * [NAPCS commodity - * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * - * Must not start with a space or be all spaces. * Must not be all zeros. - * - * @return enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item - * in a standardized commodity coding scheme. There are different commodity coding schemes: * - * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity - * codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity - * codes](https://www.census.gov/naics/) * [NAPCS commodity - * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * - * Must not start with a space or be all spaces. * Must not be all zeros. + * The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @return enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_COMMODITY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -442,68 +316,30 @@ public String getEnhancedSchemeDataItemDetailLineItemNrCommodityCode() { } /** - * The code that identifies the item in a standardized commodity coding scheme. There are - * different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS - * commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS - * commodity codes](https://www.census.gov/naics/) * [NAPCS commodity - * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * - * Must not start with a space or be all spaces. * Must not be all zeros. + * The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in - * a standardized commodity coding scheme. There are different commodity coding schemes: * - * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity - * codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity - * codes](https://www.census.gov/naics/) * [NAPCS commodity - * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * - * Must not start with a space or be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_COMMODITY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataItemDetailLineItemNrCommodityCode( - String enhancedSchemeDataItemDetailLineItemNrCommodityCode) { - this.enhancedSchemeDataItemDetailLineItemNrCommodityCode = - enhancedSchemeDataItemDetailLineItemNrCommodityCode; + public void setEnhancedSchemeDataItemDetailLineItemNrCommodityCode(String enhancedSchemeDataItemDetailLineItemNrCommodityCode) { + this.enhancedSchemeDataItemDetailLineItemNrCommodityCode = enhancedSchemeDataItemDetailLineItemNrCommodityCode; } /** - * A description of the item, that provides details about the purchase. For Visa transactions with - * level 3 ESD, the description must not be the same or very similar to your merchant name, or, - * consist only of common words like \"product\", or \"service\". * Encoding: - * ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must - * not be all special characters. * Must not be blank. * Must not start with a space or be all - * spaces. * Must not be all zeros. + * A description of the item, that provides details about the purchase. For Visa transactions with level 3 ESD, the description must not be the same or very similar to your merchant name, or, consist only of common words like \"product\", or \"service\". * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not be all special characters. * Must not be blank. * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrDescription A description of the item, that - * provides details about the purchase. For Visa transactions with level 3 ESD, the - * description must not be the same or very similar to your merchant name, or, consist only of - * common words like \"product\", or \"service\". * Encoding: ASCII * Max - * length: 26 characters * Must not be a single character. * Must not be blank. * Must not be - * all special characters. * Must not be blank. * Must not start with a space or be all - * spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrDescription A description of the item, that provides details about the purchase. For Visa transactions with level 3 ESD, the description must not be the same or very similar to your merchant name, or, consist only of common words like \"product\", or \"service\". * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not be all special characters. * Must not be blank. * Must not start with a space or be all spaces. * Must not be all zeros. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrDescription( - String enhancedSchemeDataItemDetailLineItemNrDescription) { - this.enhancedSchemeDataItemDetailLineItemNrDescription = - enhancedSchemeDataItemDetailLineItemNrDescription; + public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrDescription(String enhancedSchemeDataItemDetailLineItemNrDescription) { + this.enhancedSchemeDataItemDetailLineItemNrDescription = enhancedSchemeDataItemDetailLineItemNrDescription; return this; } /** - * A description of the item, that provides details about the purchase. For Visa transactions with - * level 3 ESD, the description must not be the same or very similar to your merchant name, or, - * consist only of common words like \"product\", or \"service\". * Encoding: - * ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must - * not be all special characters. * Must not be blank. * Must not start with a space or be all - * spaces. * Must not be all zeros. - * - * @return enhancedSchemeDataItemDetailLineItemNrDescription A description of the item, that - * provides details about the purchase. For Visa transactions with level 3 ESD, the - * description must not be the same or very similar to your merchant name, or, consist only of - * common words like \"product\", or \"service\". * Encoding: ASCII * Max - * length: 26 characters * Must not be a single character. * Must not be blank. * Must not be - * all special characters. * Must not be blank. * Must not start with a space or be all - * spaces. * Must not be all zeros. + * A description of the item, that provides details about the purchase. For Visa transactions with level 3 ESD, the description must not be the same or very similar to your merchant name, or, consist only of common words like \"product\", or \"service\". * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not be all special characters. * Must not be blank. * Must not start with a space or be all spaces. * Must not be all zeros. + * @return enhancedSchemeDataItemDetailLineItemNrDescription A description of the item, that provides details about the purchase. For Visa transactions with level 3 ESD, the description must not be the same or very similar to your merchant name, or, consist only of common words like \"product\", or \"service\". * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not be all special characters. * Must not be blank. * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -512,54 +348,30 @@ public String getEnhancedSchemeDataItemDetailLineItemNrDescription() { } /** - * A description of the item, that provides details about the purchase. For Visa transactions with - * level 3 ESD, the description must not be the same or very similar to your merchant name, or, - * consist only of common words like \"product\", or \"service\". * Encoding: - * ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must - * not be all special characters. * Must not be blank. * Must not start with a space or be all - * spaces. * Must not be all zeros. + * A description of the item, that provides details about the purchase. For Visa transactions with level 3 ESD, the description must not be the same or very similar to your merchant name, or, consist only of common words like \"product\", or \"service\". * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not be all special characters. * Must not be blank. * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrDescription A description of the item, that - * provides details about the purchase. For Visa transactions with level 3 ESD, the - * description must not be the same or very similar to your merchant name, or, consist only of - * common words like \"product\", or \"service\". * Encoding: ASCII * Max - * length: 26 characters * Must not be a single character. * Must not be blank. * Must not be - * all special characters. * Must not be blank. * Must not start with a space or be all - * spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrDescription A description of the item, that provides details about the purchase. For Visa transactions with level 3 ESD, the description must not be the same or very similar to your merchant name, or, consist only of common words like \"product\", or \"service\". * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not be all special characters. * Must not be blank. * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataItemDetailLineItemNrDescription( - String enhancedSchemeDataItemDetailLineItemNrDescription) { - this.enhancedSchemeDataItemDetailLineItemNrDescription = - enhancedSchemeDataItemDetailLineItemNrDescription; + public void setEnhancedSchemeDataItemDetailLineItemNrDescription(String enhancedSchemeDataItemDetailLineItemNrDescription) { + this.enhancedSchemeDataItemDetailLineItemNrDescription = enhancedSchemeDataItemDetailLineItemNrDescription; } /** - * The discount amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means - * USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The discount amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * - * @param enhancedSchemeDataItemDetailLineItemNrDiscountAmount The discount amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 - * means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * @param enhancedSchemeDataItemDetailLineItemNrDiscountAmount The discount amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrDiscountAmount( - String enhancedSchemeDataItemDetailLineItemNrDiscountAmount) { - this.enhancedSchemeDataItemDetailLineItemNrDiscountAmount = - enhancedSchemeDataItemDetailLineItemNrDiscountAmount; + public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrDiscountAmount(String enhancedSchemeDataItemDetailLineItemNrDiscountAmount) { + this.enhancedSchemeDataItemDetailLineItemNrDiscountAmount = enhancedSchemeDataItemDetailLineItemNrDiscountAmount; return this; } /** - * The discount amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means - * USD 20.00. * Encoding: Numeric * Max length: 12 characters - * - * @return enhancedSchemeDataItemDetailLineItemNrDiscountAmount The discount amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 - * means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The discount amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * @return enhancedSchemeDataItemDetailLineItemNrDiscountAmount The discount amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DISCOUNT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -568,51 +380,30 @@ public String getEnhancedSchemeDataItemDetailLineItemNrDiscountAmount() { } /** - * The discount amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means - * USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The discount amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * - * @param enhancedSchemeDataItemDetailLineItemNrDiscountAmount The discount amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 - * means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * @param enhancedSchemeDataItemDetailLineItemNrDiscountAmount The discount amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DISCOUNT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataItemDetailLineItemNrDiscountAmount( - String enhancedSchemeDataItemDetailLineItemNrDiscountAmount) { - this.enhancedSchemeDataItemDetailLineItemNrDiscountAmount = - enhancedSchemeDataItemDetailLineItemNrDiscountAmount; + public void setEnhancedSchemeDataItemDetailLineItemNrDiscountAmount(String enhancedSchemeDataItemDetailLineItemNrDiscountAmount) { + this.enhancedSchemeDataItemDetailLineItemNrDiscountAmount = enhancedSchemeDataItemDetailLineItemNrDiscountAmount; } /** - * The product code. Must be a unique product code associated with the item or service. This can - * be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * - * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all - * zeros. + * The product code. Must be a unique product code associated with the item or service. This can be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrProductCode The product code. Must be a unique - * product code associated with the item or service. This can be your unique code for the - * item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 - * characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrProductCode The product code. Must be a unique product code associated with the item or service. This can be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrProductCode( - String enhancedSchemeDataItemDetailLineItemNrProductCode) { - this.enhancedSchemeDataItemDetailLineItemNrProductCode = - enhancedSchemeDataItemDetailLineItemNrProductCode; + public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrProductCode(String enhancedSchemeDataItemDetailLineItemNrProductCode) { + this.enhancedSchemeDataItemDetailLineItemNrProductCode = enhancedSchemeDataItemDetailLineItemNrProductCode; return this; } /** - * The product code. Must be a unique product code associated with the item or service. This can - * be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * - * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all - * zeros. - * - * @return enhancedSchemeDataItemDetailLineItemNrProductCode The product code. Must be a unique - * product code associated with the item or service. This can be your unique code for the - * item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 - * characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The product code. Must be a unique product code associated with the item or service. This can be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @return enhancedSchemeDataItemDetailLineItemNrProductCode The product code. Must be a unique product code associated with the item or service. This can be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_PRODUCT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -621,47 +412,30 @@ public String getEnhancedSchemeDataItemDetailLineItemNrProductCode() { } /** - * The product code. Must be a unique product code associated with the item or service. This can - * be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * - * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all - * zeros. + * The product code. Must be a unique product code associated with the item or service. This can be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrProductCode The product code. Must be a unique - * product code associated with the item or service. This can be your unique code for the - * item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 - * characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrProductCode The product code. Must be a unique product code associated with the item or service. This can be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_PRODUCT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataItemDetailLineItemNrProductCode( - String enhancedSchemeDataItemDetailLineItemNrProductCode) { - this.enhancedSchemeDataItemDetailLineItemNrProductCode = - enhancedSchemeDataItemDetailLineItemNrProductCode; + public void setEnhancedSchemeDataItemDetailLineItemNrProductCode(String enhancedSchemeDataItemDetailLineItemNrProductCode) { + this.enhancedSchemeDataItemDetailLineItemNrProductCode = enhancedSchemeDataItemDetailLineItemNrProductCode; } /** - * The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 - * characters * Must not start with a space or be all spaces. + * The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a space or be all spaces. * - * @param enhancedSchemeDataItemDetailLineItemNrQuantity The number of items. Must be an integer - * greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a - * space or be all spaces. + * @param enhancedSchemeDataItemDetailLineItemNrQuantity The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a space or be all spaces. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrQuantity( - String enhancedSchemeDataItemDetailLineItemNrQuantity) { - this.enhancedSchemeDataItemDetailLineItemNrQuantity = - enhancedSchemeDataItemDetailLineItemNrQuantity; + public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrQuantity(String enhancedSchemeDataItemDetailLineItemNrQuantity) { + this.enhancedSchemeDataItemDetailLineItemNrQuantity = enhancedSchemeDataItemDetailLineItemNrQuantity; return this; } /** - * The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 - * characters * Must not start with a space or be all spaces. - * - * @return enhancedSchemeDataItemDetailLineItemNrQuantity The number of items. Must be an integer - * greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a - * space or be all spaces. + * The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a space or be all spaces. + * @return enhancedSchemeDataItemDetailLineItemNrQuantity The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a space or be all spaces. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -670,62 +444,30 @@ public String getEnhancedSchemeDataItemDetailLineItemNrQuantity() { } /** - * The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 - * characters * Must not start with a space or be all spaces. + * The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a space or be all spaces. * - * @param enhancedSchemeDataItemDetailLineItemNrQuantity The number of items. Must be an integer - * greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a - * space or be all spaces. + * @param enhancedSchemeDataItemDetailLineItemNrQuantity The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a space or be all spaces. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataItemDetailLineItemNrQuantity( - String enhancedSchemeDataItemDetailLineItemNrQuantity) { - this.enhancedSchemeDataItemDetailLineItemNrQuantity = - enhancedSchemeDataItemDetailLineItemNrQuantity; + public void setEnhancedSchemeDataItemDetailLineItemNrQuantity(String enhancedSchemeDataItemDetailLineItemNrQuantity) { + this.enhancedSchemeDataItemDetailLineItemNrQuantity = enhancedSchemeDataItemDetailLineItemNrQuantity; } /** - * The total amount for the line item, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements - * for level 2/3 - * ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) - * to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. - * * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all - * zeros. + * The total amount for the line item, in [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements for level 2/3 ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrTotalAmount The total amount for the line item, in - * [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount - * requirements for level 2/3 - * ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) - * to learn more about how to calculate the line item total. * For example, 2000 means USD - * 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must - * not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrTotalAmount The total amount for the line item, in [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements for level 2/3 ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrTotalAmount( - String enhancedSchemeDataItemDetailLineItemNrTotalAmount) { - this.enhancedSchemeDataItemDetailLineItemNrTotalAmount = - enhancedSchemeDataItemDetailLineItemNrTotalAmount; + public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrTotalAmount(String enhancedSchemeDataItemDetailLineItemNrTotalAmount) { + this.enhancedSchemeDataItemDetailLineItemNrTotalAmount = enhancedSchemeDataItemDetailLineItemNrTotalAmount; return this; } /** - * The total amount for the line item, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements - * for level 2/3 - * ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) - * to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. - * * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all - * zeros. - * - * @return enhancedSchemeDataItemDetailLineItemNrTotalAmount The total amount for the line item, - * in [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount - * requirements for level 2/3 - * ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) - * to learn more about how to calculate the line item total. * For example, 2000 means USD - * 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must - * not be all zeros. + * The total amount for the line item, in [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements for level 2/3 ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @return enhancedSchemeDataItemDetailLineItemNrTotalAmount The total amount for the line item, in [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements for level 2/3 ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_TOTAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -734,53 +476,30 @@ public String getEnhancedSchemeDataItemDetailLineItemNrTotalAmount() { } /** - * The total amount for the line item, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements - * for level 2/3 - * ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) - * to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. - * * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all - * zeros. + * The total amount for the line item, in [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements for level 2/3 ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrTotalAmount The total amount for the line item, in - * [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount - * requirements for level 2/3 - * ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) - * to learn more about how to calculate the line item total. * For example, 2000 means USD - * 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must - * not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrTotalAmount The total amount for the line item, in [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements for level 2/3 ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_TOTAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataItemDetailLineItemNrTotalAmount( - String enhancedSchemeDataItemDetailLineItemNrTotalAmount) { - this.enhancedSchemeDataItemDetailLineItemNrTotalAmount = - enhancedSchemeDataItemDetailLineItemNrTotalAmount; + public void setEnhancedSchemeDataItemDetailLineItemNrTotalAmount(String enhancedSchemeDataItemDetailLineItemNrTotalAmount) { + this.enhancedSchemeDataItemDetailLineItemNrTotalAmount = enhancedSchemeDataItemDetailLineItemNrTotalAmount; } /** - * The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not - * start with a space or be all spaces. * Must not be all zeros. + * The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure The unit of measurement for an item. - * * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all - * spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure( - String enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure) { - this.enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure = - enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure; + public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure(String enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure) { + this.enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure = enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure; return this; } /** - * The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not - * start with a space or be all spaces. * Must not be all zeros. - * - * @return enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure The unit of measurement for an - * item. * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all - * spaces. * Must not be all zeros. + * The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @return enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_UNIT_OF_MEASURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -789,46 +508,30 @@ public String getEnhancedSchemeDataItemDetailLineItemNrUnitOfMeasure() { } /** - * The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not - * start with a space or be all spaces. * Must not be all zeros. + * The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure The unit of measurement for an item. - * * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all - * spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_UNIT_OF_MEASURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataItemDetailLineItemNrUnitOfMeasure( - String enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure) { - this.enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure = - enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure; + public void setEnhancedSchemeDataItemDetailLineItemNrUnitOfMeasure(String enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure) { + this.enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure = enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure; } /** - * The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not - * be all zeros. + * The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrUnitPrice The unit price in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 - * means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrUnitPrice The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrUnitPrice( - String enhancedSchemeDataItemDetailLineItemNrUnitPrice) { - this.enhancedSchemeDataItemDetailLineItemNrUnitPrice = - enhancedSchemeDataItemDetailLineItemNrUnitPrice; + public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrUnitPrice(String enhancedSchemeDataItemDetailLineItemNrUnitPrice) { + this.enhancedSchemeDataItemDetailLineItemNrUnitPrice = enhancedSchemeDataItemDetailLineItemNrUnitPrice; return this; } /** - * The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not - * be all zeros. - * - * @return enhancedSchemeDataItemDetailLineItemNrUnitPrice The unit price in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 - * means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * @return enhancedSchemeDataItemDetailLineItemNrUnitPrice The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_UNIT_PRICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -837,27 +540,20 @@ public String getEnhancedSchemeDataItemDetailLineItemNrUnitPrice() { } /** - * The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not - * be all zeros. + * The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrUnitPrice The unit price in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 - * means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrUnitPrice The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_UNIT_PRICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataItemDetailLineItemNrUnitPrice( - String enhancedSchemeDataItemDetailLineItemNrUnitPrice) { - this.enhancedSchemeDataItemDetailLineItemNrUnitPrice = - enhancedSchemeDataItemDetailLineItemNrUnitPrice; + public void setEnhancedSchemeDataItemDetailLineItemNrUnitPrice(String enhancedSchemeDataItemDetailLineItemNrUnitPrice) { + this.enhancedSchemeDataItemDetailLineItemNrUnitPrice = enhancedSchemeDataItemDetailLineItemNrUnitPrice; } /** * The order date. * Format: `ddMMyy` * Encoding: ASCII * Max length: 6 characters * - * @param enhancedSchemeDataOrderDate The order date. * Format: `ddMMyy` * Encoding: - * ASCII * Max length: 6 characters + * @param enhancedSchemeDataOrderDate The order date. * Format: `ddMMyy` * Encoding: ASCII * Max length: 6 characters * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ public AdditionalDataLevel23 enhancedSchemeDataOrderDate(String enhancedSchemeDataOrderDate) { @@ -867,9 +563,7 @@ public AdditionalDataLevel23 enhancedSchemeDataOrderDate(String enhancedSchemeDa /** * The order date. * Format: `ddMMyy` * Encoding: ASCII * Max length: 6 characters - * - * @return enhancedSchemeDataOrderDate The order date. * Format: `ddMMyy` * Encoding: - * ASCII * Max length: 6 characters + * @return enhancedSchemeDataOrderDate The order date. * Format: `ddMMyy` * Encoding: ASCII * Max length: 6 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ORDER_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -880,8 +574,7 @@ public String getEnhancedSchemeDataOrderDate() { /** * The order date. * Format: `ddMMyy` * Encoding: ASCII * Max length: 6 characters * - * @param enhancedSchemeDataOrderDate The order date. * Format: `ddMMyy` * Encoding: - * ASCII * Max length: 6 characters + * @param enhancedSchemeDataOrderDate The order date. * Format: `ddMMyy` * Encoding: ASCII * Max length: 6 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ORDER_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -890,35 +583,19 @@ public void setEnhancedSchemeDataOrderDate(String enhancedSchemeDataOrderDate) { } /** - * The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: - * 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the - * US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, - * it must be in 6 digits format. For example, M4B 1G5. + * The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. * - * @param enhancedSchemeDataShipFromPostalCode The postal code of the address where the item is - * shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space - * or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits - * format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For - * example, M4B 1G5. + * @param enhancedSchemeDataShipFromPostalCode The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataShipFromPostalCode( - String enhancedSchemeDataShipFromPostalCode) { + public AdditionalDataLevel23 enhancedSchemeDataShipFromPostalCode(String enhancedSchemeDataShipFromPostalCode) { this.enhancedSchemeDataShipFromPostalCode = enhancedSchemeDataShipFromPostalCode; return this; } /** - * The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: - * 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the - * US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, - * it must be in 6 digits format. For example, M4B 1G5. - * - * @return enhancedSchemeDataShipFromPostalCode The postal code of the address where the item is - * shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space - * or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits - * format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For - * example, M4B 1G5. + * The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. + * @return enhancedSchemeDataShipFromPostalCode The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_SHIP_FROM_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -927,16 +604,9 @@ public String getEnhancedSchemeDataShipFromPostalCode() { } /** - * The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: - * 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the - * US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, - * it must be in 6 digits format. For example, M4B 1G5. + * The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. * - * @param enhancedSchemeDataShipFromPostalCode The postal code of the address where the item is - * shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space - * or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits - * format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For - * example, M4B 1G5. + * @param enhancedSchemeDataShipFromPostalCode The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_SHIP_FROM_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -945,37 +615,19 @@ public void setEnhancedSchemeDataShipFromPostalCode(String enhancedSchemeDataShi } /** - * The amount of state or provincial [tax included in the total transaction - * amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), - * in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, - * 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. * - * @param enhancedSchemeDataTotalTaxAmount The amount of state or provincial [tax included in the - * total transaction - * amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), - * in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For - * example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not - * be all zeros. + * @param enhancedSchemeDataTotalTaxAmount The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataTotalTaxAmount( - String enhancedSchemeDataTotalTaxAmount) { + public AdditionalDataLevel23 enhancedSchemeDataTotalTaxAmount(String enhancedSchemeDataTotalTaxAmount) { this.enhancedSchemeDataTotalTaxAmount = enhancedSchemeDataTotalTaxAmount; return this; } /** - * The amount of state or provincial [tax included in the total transaction - * amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), - * in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, - * 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. - * - * @return enhancedSchemeDataTotalTaxAmount The amount of state or provincial [tax included in the - * total transaction - * amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), - * in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For - * example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not - * be all zeros. + * The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * @return enhancedSchemeDataTotalTaxAmount The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -984,17 +636,9 @@ public String getEnhancedSchemeDataTotalTaxAmount() { } /** - * The amount of state or provincial [tax included in the total transaction - * amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), - * in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, - * 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. * - * @param enhancedSchemeDataTotalTaxAmount The amount of state or provincial [tax included in the - * total transaction - * amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), - * in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For - * example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not - * be all zeros. + * @param enhancedSchemeDataTotalTaxAmount The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1002,7 +646,9 @@ public void setEnhancedSchemeDataTotalTaxAmount(String enhancedSchemeDataTotalTa this.enhancedSchemeDataTotalTaxAmount = enhancedSchemeDataTotalTaxAmount; } - /** Return true if this AdditionalDataLevel23 object is equal to o. */ + /** + * Return true if this AdditionalDataLevel23 object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -1012,140 +658,58 @@ public boolean equals(Object o) { return false; } AdditionalDataLevel23 additionalDataLevel23 = (AdditionalDataLevel23) o; - return Objects.equals( - this.enhancedSchemeDataCustomerReference, - additionalDataLevel23.enhancedSchemeDataCustomerReference) - && Objects.equals( - this.enhancedSchemeDataDestinationCountryCode, - additionalDataLevel23.enhancedSchemeDataDestinationCountryCode) - && Objects.equals( - this.enhancedSchemeDataDestinationPostalCode, - additionalDataLevel23.enhancedSchemeDataDestinationPostalCode) - && Objects.equals( - this.enhancedSchemeDataDestinationStateProvinceCode, - additionalDataLevel23.enhancedSchemeDataDestinationStateProvinceCode) - && Objects.equals( - this.enhancedSchemeDataDutyAmount, additionalDataLevel23.enhancedSchemeDataDutyAmount) - && Objects.equals( - this.enhancedSchemeDataFreightAmount, - additionalDataLevel23.enhancedSchemeDataFreightAmount) - && Objects.equals( - this.enhancedSchemeDataItemDetailLineItemNrCommodityCode, - additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrCommodityCode) - && Objects.equals( - this.enhancedSchemeDataItemDetailLineItemNrDescription, - additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrDescription) - && Objects.equals( - this.enhancedSchemeDataItemDetailLineItemNrDiscountAmount, - additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrDiscountAmount) - && Objects.equals( - this.enhancedSchemeDataItemDetailLineItemNrProductCode, - additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrProductCode) - && Objects.equals( - this.enhancedSchemeDataItemDetailLineItemNrQuantity, - additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrQuantity) - && Objects.equals( - this.enhancedSchemeDataItemDetailLineItemNrTotalAmount, - additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrTotalAmount) - && Objects.equals( - this.enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure, - additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure) - && Objects.equals( - this.enhancedSchemeDataItemDetailLineItemNrUnitPrice, - additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrUnitPrice) - && Objects.equals( - this.enhancedSchemeDataOrderDate, additionalDataLevel23.enhancedSchemeDataOrderDate) - && Objects.equals( - this.enhancedSchemeDataShipFromPostalCode, - additionalDataLevel23.enhancedSchemeDataShipFromPostalCode) - && Objects.equals( - this.enhancedSchemeDataTotalTaxAmount, - additionalDataLevel23.enhancedSchemeDataTotalTaxAmount); + return Objects.equals(this.enhancedSchemeDataCustomerReference, additionalDataLevel23.enhancedSchemeDataCustomerReference) && + Objects.equals(this.enhancedSchemeDataDestinationCountryCode, additionalDataLevel23.enhancedSchemeDataDestinationCountryCode) && + Objects.equals(this.enhancedSchemeDataDestinationPostalCode, additionalDataLevel23.enhancedSchemeDataDestinationPostalCode) && + Objects.equals(this.enhancedSchemeDataDestinationStateProvinceCode, additionalDataLevel23.enhancedSchemeDataDestinationStateProvinceCode) && + Objects.equals(this.enhancedSchemeDataDutyAmount, additionalDataLevel23.enhancedSchemeDataDutyAmount) && + Objects.equals(this.enhancedSchemeDataFreightAmount, additionalDataLevel23.enhancedSchemeDataFreightAmount) && + Objects.equals(this.enhancedSchemeDataItemDetailLineItemNrCommodityCode, additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrCommodityCode) && + Objects.equals(this.enhancedSchemeDataItemDetailLineItemNrDescription, additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrDescription) && + Objects.equals(this.enhancedSchemeDataItemDetailLineItemNrDiscountAmount, additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrDiscountAmount) && + Objects.equals(this.enhancedSchemeDataItemDetailLineItemNrProductCode, additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrProductCode) && + Objects.equals(this.enhancedSchemeDataItemDetailLineItemNrQuantity, additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrQuantity) && + Objects.equals(this.enhancedSchemeDataItemDetailLineItemNrTotalAmount, additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrTotalAmount) && + Objects.equals(this.enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure, additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure) && + Objects.equals(this.enhancedSchemeDataItemDetailLineItemNrUnitPrice, additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrUnitPrice) && + Objects.equals(this.enhancedSchemeDataOrderDate, additionalDataLevel23.enhancedSchemeDataOrderDate) && + Objects.equals(this.enhancedSchemeDataShipFromPostalCode, additionalDataLevel23.enhancedSchemeDataShipFromPostalCode) && + Objects.equals(this.enhancedSchemeDataTotalTaxAmount, additionalDataLevel23.enhancedSchemeDataTotalTaxAmount); } @Override public int hashCode() { - return Objects.hash( - enhancedSchemeDataCustomerReference, - enhancedSchemeDataDestinationCountryCode, - enhancedSchemeDataDestinationPostalCode, - enhancedSchemeDataDestinationStateProvinceCode, - enhancedSchemeDataDutyAmount, - enhancedSchemeDataFreightAmount, - enhancedSchemeDataItemDetailLineItemNrCommodityCode, - enhancedSchemeDataItemDetailLineItemNrDescription, - enhancedSchemeDataItemDetailLineItemNrDiscountAmount, - enhancedSchemeDataItemDetailLineItemNrProductCode, - enhancedSchemeDataItemDetailLineItemNrQuantity, - enhancedSchemeDataItemDetailLineItemNrTotalAmount, - enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure, - enhancedSchemeDataItemDetailLineItemNrUnitPrice, - enhancedSchemeDataOrderDate, - enhancedSchemeDataShipFromPostalCode, - enhancedSchemeDataTotalTaxAmount); + return Objects.hash(enhancedSchemeDataCustomerReference, enhancedSchemeDataDestinationCountryCode, enhancedSchemeDataDestinationPostalCode, enhancedSchemeDataDestinationStateProvinceCode, enhancedSchemeDataDutyAmount, enhancedSchemeDataFreightAmount, enhancedSchemeDataItemDetailLineItemNrCommodityCode, enhancedSchemeDataItemDetailLineItemNrDescription, enhancedSchemeDataItemDetailLineItemNrDiscountAmount, enhancedSchemeDataItemDetailLineItemNrProductCode, enhancedSchemeDataItemDetailLineItemNrQuantity, enhancedSchemeDataItemDetailLineItemNrTotalAmount, enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure, enhancedSchemeDataItemDetailLineItemNrUnitPrice, enhancedSchemeDataOrderDate, enhancedSchemeDataShipFromPostalCode, enhancedSchemeDataTotalTaxAmount); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataLevel23 {\n"); - sb.append(" enhancedSchemeDataCustomerReference: ") - .append(toIndentedString(enhancedSchemeDataCustomerReference)) - .append("\n"); - sb.append(" enhancedSchemeDataDestinationCountryCode: ") - .append(toIndentedString(enhancedSchemeDataDestinationCountryCode)) - .append("\n"); - sb.append(" enhancedSchemeDataDestinationPostalCode: ") - .append(toIndentedString(enhancedSchemeDataDestinationPostalCode)) - .append("\n"); - sb.append(" enhancedSchemeDataDestinationStateProvinceCode: ") - .append(toIndentedString(enhancedSchemeDataDestinationStateProvinceCode)) - .append("\n"); - sb.append(" enhancedSchemeDataDutyAmount: ") - .append(toIndentedString(enhancedSchemeDataDutyAmount)) - .append("\n"); - sb.append(" enhancedSchemeDataFreightAmount: ") - .append(toIndentedString(enhancedSchemeDataFreightAmount)) - .append("\n"); - sb.append(" enhancedSchemeDataItemDetailLineItemNrCommodityCode: ") - .append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrCommodityCode)) - .append("\n"); - sb.append(" enhancedSchemeDataItemDetailLineItemNrDescription: ") - .append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrDescription)) - .append("\n"); - sb.append(" enhancedSchemeDataItemDetailLineItemNrDiscountAmount: ") - .append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrDiscountAmount)) - .append("\n"); - sb.append(" enhancedSchemeDataItemDetailLineItemNrProductCode: ") - .append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrProductCode)) - .append("\n"); - sb.append(" enhancedSchemeDataItemDetailLineItemNrQuantity: ") - .append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrQuantity)) - .append("\n"); - sb.append(" enhancedSchemeDataItemDetailLineItemNrTotalAmount: ") - .append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrTotalAmount)) - .append("\n"); - sb.append(" enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure: ") - .append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure)) - .append("\n"); - sb.append(" enhancedSchemeDataItemDetailLineItemNrUnitPrice: ") - .append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrUnitPrice)) - .append("\n"); - sb.append(" enhancedSchemeDataOrderDate: ") - .append(toIndentedString(enhancedSchemeDataOrderDate)) - .append("\n"); - sb.append(" enhancedSchemeDataShipFromPostalCode: ") - .append(toIndentedString(enhancedSchemeDataShipFromPostalCode)) - .append("\n"); - sb.append(" enhancedSchemeDataTotalTaxAmount: ") - .append(toIndentedString(enhancedSchemeDataTotalTaxAmount)) - .append("\n"); + sb.append(" enhancedSchemeDataCustomerReference: ").append(toIndentedString(enhancedSchemeDataCustomerReference)).append("\n"); + sb.append(" enhancedSchemeDataDestinationCountryCode: ").append(toIndentedString(enhancedSchemeDataDestinationCountryCode)).append("\n"); + sb.append(" enhancedSchemeDataDestinationPostalCode: ").append(toIndentedString(enhancedSchemeDataDestinationPostalCode)).append("\n"); + sb.append(" enhancedSchemeDataDestinationStateProvinceCode: ").append(toIndentedString(enhancedSchemeDataDestinationStateProvinceCode)).append("\n"); + sb.append(" enhancedSchemeDataDutyAmount: ").append(toIndentedString(enhancedSchemeDataDutyAmount)).append("\n"); + sb.append(" enhancedSchemeDataFreightAmount: ").append(toIndentedString(enhancedSchemeDataFreightAmount)).append("\n"); + sb.append(" enhancedSchemeDataItemDetailLineItemNrCommodityCode: ").append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrCommodityCode)).append("\n"); + sb.append(" enhancedSchemeDataItemDetailLineItemNrDescription: ").append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrDescription)).append("\n"); + sb.append(" enhancedSchemeDataItemDetailLineItemNrDiscountAmount: ").append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrDiscountAmount)).append("\n"); + sb.append(" enhancedSchemeDataItemDetailLineItemNrProductCode: ").append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrProductCode)).append("\n"); + sb.append(" enhancedSchemeDataItemDetailLineItemNrQuantity: ").append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrQuantity)).append("\n"); + sb.append(" enhancedSchemeDataItemDetailLineItemNrTotalAmount: ").append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrTotalAmount)).append("\n"); + sb.append(" enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure: ").append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure)).append("\n"); + sb.append(" enhancedSchemeDataItemDetailLineItemNrUnitPrice: ").append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrUnitPrice)).append("\n"); + sb.append(" enhancedSchemeDataOrderDate: ").append(toIndentedString(enhancedSchemeDataOrderDate)).append("\n"); + sb.append(" enhancedSchemeDataShipFromPostalCode: ").append(toIndentedString(enhancedSchemeDataShipFromPostalCode)).append("\n"); + sb.append(" enhancedSchemeDataTotalTaxAmount: ").append(toIndentedString(enhancedSchemeDataTotalTaxAmount)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1154,23 +718,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalDataLevel23 given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataLevel23 - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataLevel23 + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataLevel23 */ public static AdditionalDataLevel23 fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataLevel23.class); } - - /** - * Convert an instance of AdditionalDataLevel23 to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalDataLevel23 to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataLodging.java b/src/main/java/com/adyen/model/checkout/AdditionalDataLodging.java index 66f480469..fd37c915a 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataLodging.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataLodging.java @@ -2,22 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AdditionalDataLodging */ + +/** + * AdditionalDataLodging + */ @JsonPropertyOrder({ AdditionalDataLodging.JSON_PROPERTY_LODGING_SPECIAL_PROGRAM_CODE, AdditionalDataLodging.JSON_PROPERTY_LODGING_CHECK_IN_DATE, @@ -37,9 +46,9 @@ AdditionalDataLodging.JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION, AdditionalDataLodging.JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET }) + public class AdditionalDataLodging { - public static final String JSON_PROPERTY_LODGING_SPECIAL_PROGRAM_CODE = - "lodging.SpecialProgramCode"; + public static final String JSON_PROPERTY_LODGING_SPECIAL_PROGRAM_CODE = "lodging.SpecialProgramCode"; private String lodgingSpecialProgramCode; public static final String JSON_PROPERTY_LODGING_CHECK_IN_DATE = "lodging.checkInDate"; @@ -48,23 +57,19 @@ public class AdditionalDataLodging { public static final String JSON_PROPERTY_LODGING_CHECK_OUT_DATE = "lodging.checkOutDate"; private String lodgingCheckOutDate; - public static final String JSON_PROPERTY_LODGING_CUSTOMER_SERVICE_TOLL_FREE_NUMBER = - "lodging.customerServiceTollFreeNumber"; + public static final String JSON_PROPERTY_LODGING_CUSTOMER_SERVICE_TOLL_FREE_NUMBER = "lodging.customerServiceTollFreeNumber"; private String lodgingCustomerServiceTollFreeNumber; - public static final String JSON_PROPERTY_LODGING_FIRE_SAFETY_ACT_INDICATOR = - "lodging.fireSafetyActIndicator"; + public static final String JSON_PROPERTY_LODGING_FIRE_SAFETY_ACT_INDICATOR = "lodging.fireSafetyActIndicator"; private String lodgingFireSafetyActIndicator; - public static final String JSON_PROPERTY_LODGING_FOLIO_CASH_ADVANCES = - "lodging.folioCashAdvances"; + public static final String JSON_PROPERTY_LODGING_FOLIO_CASH_ADVANCES = "lodging.folioCashAdvances"; private String lodgingFolioCashAdvances; public static final String JSON_PROPERTY_LODGING_FOLIO_NUMBER = "lodging.folioNumber"; private String lodgingFolioNumber; - public static final String JSON_PROPERTY_LODGING_FOOD_BEVERAGE_CHARGES = - "lodging.foodBeverageCharges"; + public static final String JSON_PROPERTY_LODGING_FOOD_BEVERAGE_CHARGES = "lodging.foodBeverageCharges"; private String lodgingFoodBeverageCharges; public static final String JSON_PROPERTY_LODGING_NO_SHOW_INDICATOR = "lodging.noShowIndicator"; @@ -73,12 +78,10 @@ public class AdditionalDataLodging { public static final String JSON_PROPERTY_LODGING_PREPAID_EXPENSES = "lodging.prepaidExpenses"; private String lodgingPrepaidExpenses; - public static final String JSON_PROPERTY_LODGING_PROPERTY_PHONE_NUMBER = - "lodging.propertyPhoneNumber"; + public static final String JSON_PROPERTY_LODGING_PROPERTY_PHONE_NUMBER = "lodging.propertyPhoneNumber"; private String lodgingPropertyPhoneNumber; - public static final String JSON_PROPERTY_LODGING_ROOM1_NUMBER_OF_NIGHTS = - "lodging.room1.numberOfNights"; + public static final String JSON_PROPERTY_LODGING_ROOM1_NUMBER_OF_NIGHTS = "lodging.room1.numberOfNights"; private String lodgingRoom1NumberOfNights; public static final String JSON_PROPERTY_LODGING_ROOM1_RATE = "lodging.room1.rate"; @@ -90,22 +93,19 @@ public class AdditionalDataLodging { public static final String JSON_PROPERTY_LODGING_TOTAL_TAX = "lodging.totalTax"; private String lodgingTotalTax; - public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION = - "travelEntertainmentAuthData.duration"; + public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION = "travelEntertainmentAuthData.duration"; private String travelEntertainmentAuthDataDuration; - public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET = - "travelEntertainmentAuthData.market"; + public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET = "travelEntertainmentAuthData.market"; private String travelEntertainmentAuthDataMarket; - public AdditionalDataLodging() {} + public AdditionalDataLodging() { + } /** - * A code that corresponds to the category of lodging charges for the payment. Possible values: * - * 1: Lodging * 2: No show reservation * 3: Advanced deposit + * A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit * - * @param lodgingSpecialProgramCode A code that corresponds to the category of lodging charges for - * the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit + * @param lodgingSpecialProgramCode A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingSpecialProgramCode(String lodgingSpecialProgramCode) { @@ -114,12 +114,8 @@ public AdditionalDataLodging lodgingSpecialProgramCode(String lodgingSpecialProg } /** - * A code that corresponds to the category of lodging charges for the payment. Possible values: * - * 1: Lodging * 2: No show reservation * 3: Advanced deposit - * - * @return lodgingSpecialProgramCode A code that corresponds to the category of lodging charges - * for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced - * deposit + * A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit + * @return lodgingSpecialProgramCode A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit */ @JsonProperty(JSON_PROPERTY_LODGING_SPECIAL_PROGRAM_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,11 +124,9 @@ public String getLodgingSpecialProgramCode() { } /** - * A code that corresponds to the category of lodging charges for the payment. Possible values: * - * 1: Lodging * 2: No show reservation * 3: Advanced deposit + * A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit * - * @param lodgingSpecialProgramCode A code that corresponds to the category of lodging charges for - * the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit + * @param lodgingSpecialProgramCode A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit */ @JsonProperty(JSON_PROPERTY_LODGING_SPECIAL_PROGRAM_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,8 +137,7 @@ public void setLodgingSpecialProgramCode(String lodgingSpecialProgramCode) { /** * The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. * - * @param lodgingCheckInDate The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 - * April 22, **20230422**. + * @param lodgingCheckInDate The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingCheckInDate(String lodgingCheckInDate) { @@ -154,9 +147,7 @@ public AdditionalDataLodging lodgingCheckInDate(String lodgingCheckInDate) { /** * The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. - * - * @return lodgingCheckInDate The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 - * April 22, **20230422**. + * @return lodgingCheckInDate The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. */ @JsonProperty(JSON_PROPERTY_LODGING_CHECK_IN_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,8 +158,7 @@ public String getLodgingCheckInDate() { /** * The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. * - * @param lodgingCheckInDate The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 - * April 22, **20230422**. + * @param lodgingCheckInDate The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. */ @JsonProperty(JSON_PROPERTY_LODGING_CHECK_IN_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,8 +169,7 @@ public void setLodgingCheckInDate(String lodgingCheckInDate) { /** * The departure date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. * - * @param lodgingCheckOutDate The departure date. * Date format: **yyyyMmDd**. For example, for - * 2023 April 22, **20230422**. + * @param lodgingCheckOutDate The departure date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingCheckOutDate(String lodgingCheckOutDate) { @@ -190,9 +179,7 @@ public AdditionalDataLodging lodgingCheckOutDate(String lodgingCheckOutDate) { /** * The departure date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. - * - * @return lodgingCheckOutDate The departure date. * Date format: **yyyyMmDd**. For example, for - * 2023 April 22, **20230422**. + * @return lodgingCheckOutDate The departure date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. */ @JsonProperty(JSON_PROPERTY_LODGING_CHECK_OUT_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -203,8 +190,7 @@ public String getLodgingCheckOutDate() { /** * The departure date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. * - * @param lodgingCheckOutDate The departure date. * Date format: **yyyyMmDd**. For example, for - * 2023 April 22, **20230422**. + * @param lodgingCheckOutDate The departure date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. */ @JsonProperty(JSON_PROPERTY_LODGING_CHECK_OUT_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -213,31 +199,19 @@ public void setLodgingCheckOutDate(String lodgingCheckOutDate) { } /** - * The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * - * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not - * contain any special characters such as + or - * Must not be all zeros. + * The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. * - * @param lodgingCustomerServiceTollFreeNumber The toll-free phone number for the lodging. * - * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters - * in length * Must not start with a space * Must not contain any special characters such as + - * or - * Must not be all zeros. + * @param lodgingCustomerServiceTollFreeNumber The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ - public AdditionalDataLodging lodgingCustomerServiceTollFreeNumber( - String lodgingCustomerServiceTollFreeNumber) { + public AdditionalDataLodging lodgingCustomerServiceTollFreeNumber(String lodgingCustomerServiceTollFreeNumber) { this.lodgingCustomerServiceTollFreeNumber = lodgingCustomerServiceTollFreeNumber; return this; } /** - * The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * - * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not - * contain any special characters such as + or - * Must not be all zeros. - * - * @return lodgingCustomerServiceTollFreeNumber The toll-free phone number for the lodging. * - * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters - * in length * Must not start with a space * Must not contain any special characters such as + - * or - * Must not be all zeros. + * The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. + * @return lodgingCustomerServiceTollFreeNumber The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_LODGING_CUSTOMER_SERVICE_TOLL_FREE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -246,14 +220,9 @@ public String getLodgingCustomerServiceTollFreeNumber() { } /** - * The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * - * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not - * contain any special characters such as + or - * Must not be all zeros. + * The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. * - * @param lodgingCustomerServiceTollFreeNumber The toll-free phone number for the lodging. * - * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters - * in length * Must not start with a space * Must not contain any special characters such as + - * or - * Must not be all zeros. + * @param lodgingCustomerServiceTollFreeNumber The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_LODGING_CUSTOMER_SERVICE_TOLL_FREE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -262,12 +231,9 @@ public void setLodgingCustomerServiceTollFreeNumber(String lodgingCustomerServic } /** - * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be - * 'Y' or 'N'. * Format: alphabetic * Max length: 1 character + * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * Max length: 1 character * - * @param lodgingFireSafetyActIndicator Identifies that the facility complies with the Hotel and - * Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * - * Max length: 1 character + * @param lodgingFireSafetyActIndicator Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * Max length: 1 character * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingFireSafetyActIndicator(String lodgingFireSafetyActIndicator) { @@ -276,12 +242,8 @@ public AdditionalDataLodging lodgingFireSafetyActIndicator(String lodgingFireSaf } /** - * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be - * 'Y' or 'N'. * Format: alphabetic * Max length: 1 character - * - * @return lodgingFireSafetyActIndicator Identifies that the facility complies with the Hotel and - * Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * - * Max length: 1 character + * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * Max length: 1 character + * @return lodgingFireSafetyActIndicator Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * Max length: 1 character */ @JsonProperty(JSON_PROPERTY_LODGING_FIRE_SAFETY_ACT_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -290,12 +252,9 @@ public String getLodgingFireSafetyActIndicator() { } /** - * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be - * 'Y' or 'N'. * Format: alphabetic * Max length: 1 character + * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * Max length: 1 character * - * @param lodgingFireSafetyActIndicator Identifies that the facility complies with the Hotel and - * Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * - * Max length: 1 character + * @param lodgingFireSafetyActIndicator Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * Max length: 1 character */ @JsonProperty(JSON_PROPERTY_LODGING_FIRE_SAFETY_ACT_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -304,13 +263,9 @@ public void setLodgingFireSafetyActIndicator(String lodgingFireSafetyActIndicato } /** - * The folio cash advances, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max - * length: 12 characters + * The folio cash advances, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * - * @param lodgingFolioCashAdvances The folio cash advances, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * - * Max length: 12 characters + * @param lodgingFolioCashAdvances The folio cash advances, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingFolioCashAdvances(String lodgingFolioCashAdvances) { @@ -319,13 +274,8 @@ public AdditionalDataLodging lodgingFolioCashAdvances(String lodgingFolioCashAdv } /** - * The folio cash advances, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max - * length: 12 characters - * - * @return lodgingFolioCashAdvances The folio cash advances, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * - * Max length: 12 characters + * The folio cash advances, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters + * @return lodgingFolioCashAdvances The folio cash advances, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_LODGING_FOLIO_CASH_ADVANCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -334,13 +284,9 @@ public String getLodgingFolioCashAdvances() { } /** - * The folio cash advances, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max - * length: 12 characters + * The folio cash advances, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * - * @param lodgingFolioCashAdvances The folio cash advances, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * - * Max length: 12 characters + * @param lodgingFolioCashAdvances The folio cash advances, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_LODGING_FOLIO_CASH_ADVANCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -349,13 +295,9 @@ public void setLodgingFolioCashAdvances(String lodgingFolioCashAdvances) { } /** - * The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 - * characters * Must not start with a space * Must not contain any special characters * Must not - * be all zeros. + * The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters * Must not start with a space * Must not contain any special characters * Must not be all zeros. * - * @param lodgingFolioNumber The card acceptor’s internal invoice or billing ID reference number. - * * Max length: 25 characters * Must not start with a space * Must not contain any special - * characters * Must not be all zeros. + * @param lodgingFolioNumber The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters * Must not start with a space * Must not contain any special characters * Must not be all zeros. * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingFolioNumber(String lodgingFolioNumber) { @@ -364,13 +306,8 @@ public AdditionalDataLodging lodgingFolioNumber(String lodgingFolioNumber) { } /** - * The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 - * characters * Must not start with a space * Must not contain any special characters * Must not - * be all zeros. - * - * @return lodgingFolioNumber The card acceptor’s internal invoice or billing ID reference number. - * * Max length: 25 characters * Must not start with a space * Must not contain any special - * characters * Must not be all zeros. + * The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters * Must not start with a space * Must not contain any special characters * Must not be all zeros. + * @return lodgingFolioNumber The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters * Must not start with a space * Must not contain any special characters * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_LODGING_FOLIO_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -379,13 +316,9 @@ public String getLodgingFolioNumber() { } /** - * The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 - * characters * Must not start with a space * Must not contain any special characters * Must not - * be all zeros. + * The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters * Must not start with a space * Must not contain any special characters * Must not be all zeros. * - * @param lodgingFolioNumber The card acceptor’s internal invoice or billing ID reference number. - * * Max length: 25 characters * Must not start with a space * Must not contain any special - * characters * Must not be all zeros. + * @param lodgingFolioNumber The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters * Must not start with a space * Must not contain any special characters * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_LODGING_FOLIO_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -394,13 +327,9 @@ public void setLodgingFolioNumber(String lodgingFolioNumber) { } /** - * Any charges for food and beverages associated with the booking, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max - * length: 12 characters + * Any charges for food and beverages associated with the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * - * @param lodgingFoodBeverageCharges Any charges for food and beverages associated with the - * booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * Format: numeric * Max length: 12 characters + * @param lodgingFoodBeverageCharges Any charges for food and beverages associated with the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingFoodBeverageCharges(String lodgingFoodBeverageCharges) { @@ -409,13 +338,8 @@ public AdditionalDataLodging lodgingFoodBeverageCharges(String lodgingFoodBevera } /** - * Any charges for food and beverages associated with the booking, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max - * length: 12 characters - * - * @return lodgingFoodBeverageCharges Any charges for food and beverages associated with the - * booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * Format: numeric * Max length: 12 characters + * Any charges for food and beverages associated with the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters + * @return lodgingFoodBeverageCharges Any charges for food and beverages associated with the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_LODGING_FOOD_BEVERAGE_CHARGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -424,13 +348,9 @@ public String getLodgingFoodBeverageCharges() { } /** - * Any charges for food and beverages associated with the booking, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max - * length: 12 characters + * Any charges for food and beverages associated with the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * - * @param lodgingFoodBeverageCharges Any charges for food and beverages associated with the - * booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * Format: numeric * Max length: 12 characters + * @param lodgingFoodBeverageCharges Any charges for food and beverages associated with the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_LODGING_FOOD_BEVERAGE_CHARGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -439,11 +359,9 @@ public void setLodgingFoodBeverageCharges(String lodgingFoodBeverageCharges) { } /** - * Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the - * customer didn't check in * **N**: the customer checked in + * Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in * - * @param lodgingNoShowIndicator Indicates if the customer didn't check in for their booking. - * Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in + * @param lodgingNoShowIndicator Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingNoShowIndicator(String lodgingNoShowIndicator) { @@ -452,11 +370,8 @@ public AdditionalDataLodging lodgingNoShowIndicator(String lodgingNoShowIndicato } /** - * Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the - * customer didn't check in * **N**: the customer checked in - * - * @return lodgingNoShowIndicator Indicates if the customer didn't check in for their booking. - * Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in + * Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in + * @return lodgingNoShowIndicator Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in */ @JsonProperty(JSON_PROPERTY_LODGING_NO_SHOW_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -465,11 +380,9 @@ public String getLodgingNoShowIndicator() { } /** - * Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the - * customer didn't check in * **N**: the customer checked in + * Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in * - * @param lodgingNoShowIndicator Indicates if the customer didn't check in for their booking. - * Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in + * @param lodgingNoShowIndicator Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in */ @JsonProperty(JSON_PROPERTY_LODGING_NO_SHOW_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -480,8 +393,7 @@ public void setLodgingNoShowIndicator(String lodgingNoShowIndicator) { /** * The prepaid expenses for the booking. * Format: numeric * Max length: 12 characters * - * @param lodgingPrepaidExpenses The prepaid expenses for the booking. * Format: numeric * Max - * length: 12 characters + * @param lodgingPrepaidExpenses The prepaid expenses for the booking. * Format: numeric * Max length: 12 characters * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingPrepaidExpenses(String lodgingPrepaidExpenses) { @@ -491,9 +403,7 @@ public AdditionalDataLodging lodgingPrepaidExpenses(String lodgingPrepaidExpense /** * The prepaid expenses for the booking. * Format: numeric * Max length: 12 characters - * - * @return lodgingPrepaidExpenses The prepaid expenses for the booking. * Format: numeric * Max - * length: 12 characters + * @return lodgingPrepaidExpenses The prepaid expenses for the booking. * Format: numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_LODGING_PREPAID_EXPENSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -504,8 +414,7 @@ public String getLodgingPrepaidExpenses() { /** * The prepaid expenses for the booking. * Format: numeric * Max length: 12 characters * - * @param lodgingPrepaidExpenses The prepaid expenses for the booking. * Format: numeric * Max - * length: 12 characters + * @param lodgingPrepaidExpenses The prepaid expenses for the booking. * Format: numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_LODGING_PREPAID_EXPENSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -514,15 +423,9 @@ public void setLodgingPrepaidExpenses(String lodgingPrepaidExpenses) { } /** - * The lodging property location's phone number. * Format: numeric * Min length: 10 characters - * * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not - * start with a space * Must not contain any special characters such as + or - * Must not be all - * zeros. + * The lodging property location's phone number. * Format: numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. * - * @param lodgingPropertyPhoneNumber The lodging property location's phone number. * Format: - * numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers - * must be 10 characters in length * Must not start with a space * Must not contain any - * special characters such as + or - * Must not be all zeros. + * @param lodgingPropertyPhoneNumber The lodging property location's phone number. * Format: numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingPropertyPhoneNumber(String lodgingPropertyPhoneNumber) { @@ -531,15 +434,8 @@ public AdditionalDataLodging lodgingPropertyPhoneNumber(String lodgingPropertyPh } /** - * The lodging property location's phone number. * Format: numeric * Min length: 10 characters - * * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not - * start with a space * Must not contain any special characters such as + or - * Must not be all - * zeros. - * - * @return lodgingPropertyPhoneNumber The lodging property location's phone number. * Format: - * numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers - * must be 10 characters in length * Must not start with a space * Must not contain any - * special characters such as + or - * Must not be all zeros. + * The lodging property location's phone number. * Format: numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. + * @return lodgingPropertyPhoneNumber The lodging property location's phone number. * Format: numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_LODGING_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -548,15 +444,9 @@ public String getLodgingPropertyPhoneNumber() { } /** - * The lodging property location's phone number. * Format: numeric * Min length: 10 characters - * * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not - * start with a space * Must not contain any special characters such as + or - * Must not be all - * zeros. + * The lodging property location's phone number. * Format: numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. * - * @param lodgingPropertyPhoneNumber The lodging property location's phone number. * Format: - * numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers - * must be 10 characters in length * Must not start with a space * Must not contain any - * special characters such as + or - * Must not be all zeros. + * @param lodgingPropertyPhoneNumber The lodging property location's phone number. * Format: numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_LODGING_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -565,11 +455,9 @@ public void setLodgingPropertyPhoneNumber(String lodgingPropertyPhoneNumber) { } /** - * The total number of nights the room is booked for. * Format: numeric * Must be a number between - * 0 and 99 * Max length: 4 characters + * The total number of nights the room is booked for. * Format: numeric * Must be a number between 0 and 99 * Max length: 4 characters * - * @param lodgingRoom1NumberOfNights The total number of nights the room is booked for. * Format: - * numeric * Must be a number between 0 and 99 * Max length: 4 characters + * @param lodgingRoom1NumberOfNights The total number of nights the room is booked for. * Format: numeric * Must be a number between 0 and 99 * Max length: 4 characters * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingRoom1NumberOfNights(String lodgingRoom1NumberOfNights) { @@ -578,11 +466,8 @@ public AdditionalDataLodging lodgingRoom1NumberOfNights(String lodgingRoom1Numbe } /** - * The total number of nights the room is booked for. * Format: numeric * Must be a number between - * 0 and 99 * Max length: 4 characters - * - * @return lodgingRoom1NumberOfNights The total number of nights the room is booked for. * Format: - * numeric * Must be a number between 0 and 99 * Max length: 4 characters + * The total number of nights the room is booked for. * Format: numeric * Must be a number between 0 and 99 * Max length: 4 characters + * @return lodgingRoom1NumberOfNights The total number of nights the room is booked for. * Format: numeric * Must be a number between 0 and 99 * Max length: 4 characters */ @JsonProperty(JSON_PROPERTY_LODGING_ROOM1_NUMBER_OF_NIGHTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -591,11 +476,9 @@ public String getLodgingRoom1NumberOfNights() { } /** - * The total number of nights the room is booked for. * Format: numeric * Must be a number between - * 0 and 99 * Max length: 4 characters + * The total number of nights the room is booked for. * Format: numeric * Must be a number between 0 and 99 * Max length: 4 characters * - * @param lodgingRoom1NumberOfNights The total number of nights the room is booked for. * Format: - * numeric * Must be a number between 0 and 99 * Max length: 4 characters + * @param lodgingRoom1NumberOfNights The total number of nights the room is booked for. * Format: numeric * Must be a number between 0 and 99 * Max length: 4 characters */ @JsonProperty(JSON_PROPERTY_LODGING_ROOM1_NUMBER_OF_NIGHTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -604,13 +487,9 @@ public void setLodgingRoom1NumberOfNights(String lodgingRoom1NumberOfNights) { } /** - * The rate for the room, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max - * length: 12 characters * Must not be a negative number + * The rate for the room, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number * - * @param lodgingRoom1Rate The rate for the room, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * - * Max length: 12 characters * Must not be a negative number + * @param lodgingRoom1Rate The rate for the room, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingRoom1Rate(String lodgingRoom1Rate) { @@ -619,13 +498,8 @@ public AdditionalDataLodging lodgingRoom1Rate(String lodgingRoom1Rate) { } /** - * The rate for the room, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max - * length: 12 characters * Must not be a negative number - * - * @return lodgingRoom1Rate The rate for the room, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * - * Max length: 12 characters * Must not be a negative number + * The rate for the room, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * @return lodgingRoom1Rate The rate for the room, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number */ @JsonProperty(JSON_PROPERTY_LODGING_ROOM1_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -634,13 +508,9 @@ public String getLodgingRoom1Rate() { } /** - * The rate for the room, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max - * length: 12 characters * Must not be a negative number + * The rate for the room, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number * - * @param lodgingRoom1Rate The rate for the room, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * - * Max length: 12 characters * Must not be a negative number + * @param lodgingRoom1Rate The rate for the room, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number */ @JsonProperty(JSON_PROPERTY_LODGING_ROOM1_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -649,13 +519,9 @@ public void setLodgingRoom1Rate(String lodgingRoom1Rate) { } /** - * The total room tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max - * length: 12 characters * Must not be a negative number + * The total room tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number * - * @param lodgingTotalRoomTax The total room tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * - * Max length: 12 characters * Must not be a negative number + * @param lodgingTotalRoomTax The total room tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingTotalRoomTax(String lodgingTotalRoomTax) { @@ -664,13 +530,8 @@ public AdditionalDataLodging lodgingTotalRoomTax(String lodgingTotalRoomTax) { } /** - * The total room tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max - * length: 12 characters * Must not be a negative number - * - * @return lodgingTotalRoomTax The total room tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * - * Max length: 12 characters * Must not be a negative number + * The total room tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * @return lodgingTotalRoomTax The total room tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number */ @JsonProperty(JSON_PROPERTY_LODGING_TOTAL_ROOM_TAX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -679,13 +540,9 @@ public String getLodgingTotalRoomTax() { } /** - * The total room tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max - * length: 12 characters * Must not be a negative number + * The total room tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number * - * @param lodgingTotalRoomTax The total room tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * - * Max length: 12 characters * Must not be a negative number + * @param lodgingTotalRoomTax The total room tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number */ @JsonProperty(JSON_PROPERTY_LODGING_TOTAL_ROOM_TAX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -694,13 +551,9 @@ public void setLodgingTotalRoomTax(String lodgingTotalRoomTax) { } /** - * The total tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max - * length: 12 characters * Must not be a negative number + * The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number * - * @param lodgingTotalTax The total tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * - * Max length: 12 characters * Must not be a negative number + * @param lodgingTotalTax The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingTotalTax(String lodgingTotalTax) { @@ -709,13 +562,8 @@ public AdditionalDataLodging lodgingTotalTax(String lodgingTotalTax) { } /** - * The total tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max - * length: 12 characters * Must not be a negative number - * - * @return lodgingTotalTax The total tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * - * Max length: 12 characters * Must not be a negative number + * The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * @return lodgingTotalTax The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number */ @JsonProperty(JSON_PROPERTY_LODGING_TOTAL_TAX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -724,13 +572,9 @@ public String getLodgingTotalTax() { } /** - * The total tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max - * length: 12 characters * Must not be a negative number + * The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number * - * @param lodgingTotalTax The total tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * - * Max length: 12 characters * Must not be a negative number + * @param lodgingTotalTax The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number */ @JsonProperty(JSON_PROPERTY_LODGING_TOTAL_TAX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -739,25 +583,19 @@ public void setLodgingTotalTax(String lodgingTotalTax) { } /** - * The number of nights. This should be included in the auth message. * Format: numeric * Max - * length: 4 characters + * The number of nights. This should be included in the auth message. * Format: numeric * Max length: 4 characters * - * @param travelEntertainmentAuthDataDuration The number of nights. This should be included in the - * auth message. * Format: numeric * Max length: 4 characters + * @param travelEntertainmentAuthDataDuration The number of nights. This should be included in the auth message. * Format: numeric * Max length: 4 characters * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ - public AdditionalDataLodging travelEntertainmentAuthDataDuration( - String travelEntertainmentAuthDataDuration) { + public AdditionalDataLodging travelEntertainmentAuthDataDuration(String travelEntertainmentAuthDataDuration) { this.travelEntertainmentAuthDataDuration = travelEntertainmentAuthDataDuration; return this; } /** - * The number of nights. This should be included in the auth message. * Format: numeric * Max - * length: 4 characters - * - * @return travelEntertainmentAuthDataDuration The number of nights. This should be included in - * the auth message. * Format: numeric * Max length: 4 characters + * The number of nights. This should be included in the auth message. * Format: numeric * Max length: 4 characters + * @return travelEntertainmentAuthDataDuration The number of nights. This should be included in the auth message. * Format: numeric * Max length: 4 characters */ @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -766,11 +604,9 @@ public String getTravelEntertainmentAuthDataDuration() { } /** - * The number of nights. This should be included in the auth message. * Format: numeric * Max - * length: 4 characters + * The number of nights. This should be included in the auth message. * Format: numeric * Max length: 4 characters * - * @param travelEntertainmentAuthDataDuration The number of nights. This should be included in the - * auth message. * Format: numeric * Max length: 4 characters + * @param travelEntertainmentAuthDataDuration The number of nights. This should be included in the auth message. * Format: numeric * Max length: 4 characters */ @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -779,27 +615,19 @@ public void setTravelEntertainmentAuthDataDuration(String travelEntertainmentAut } /** - * Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This - * should be included in the auth message. * Format: alphanumeric * Max length: 1 character + * Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This should be included in the auth message. * Format: alphanumeric * Max length: 1 character * - * @param travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be - * submitted. Must be 'H' for Hotel. This should be included in the auth message. * - * Format: alphanumeric * Max length: 1 character + * @param travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This should be included in the auth message. * Format: alphanumeric * Max length: 1 character * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ - public AdditionalDataLodging travelEntertainmentAuthDataMarket( - String travelEntertainmentAuthDataMarket) { + public AdditionalDataLodging travelEntertainmentAuthDataMarket(String travelEntertainmentAuthDataMarket) { this.travelEntertainmentAuthDataMarket = travelEntertainmentAuthDataMarket; return this; } /** - * Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This - * should be included in the auth message. * Format: alphanumeric * Max length: 1 character - * - * @return travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be - * submitted. Must be 'H' for Hotel. This should be included in the auth message. * - * Format: alphanumeric * Max length: 1 character + * Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This should be included in the auth message. * Format: alphanumeric * Max length: 1 character + * @return travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This should be included in the auth message. * Format: alphanumeric * Max length: 1 character */ @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -808,12 +636,9 @@ public String getTravelEntertainmentAuthDataMarket() { } /** - * Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This - * should be included in the auth message. * Format: alphanumeric * Max length: 1 character + * Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This should be included in the auth message. * Format: alphanumeric * Max length: 1 character * - * @param travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be - * submitted. Must be 'H' for Hotel. This should be included in the auth message. * - * Format: alphanumeric * Max length: 1 character + * @param travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This should be included in the auth message. * Format: alphanumeric * Max length: 1 character */ @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -821,7 +646,9 @@ public void setTravelEntertainmentAuthDataMarket(String travelEntertainmentAuthD this.travelEntertainmentAuthDataMarket = travelEntertainmentAuthDataMarket; } - /** Return true if this AdditionalDataLodging object is equal to o. */ + /** + * Return true if this AdditionalDataLodging object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -831,112 +658,58 @@ public boolean equals(Object o) { return false; } AdditionalDataLodging additionalDataLodging = (AdditionalDataLodging) o; - return Objects.equals( - this.lodgingSpecialProgramCode, additionalDataLodging.lodgingSpecialProgramCode) - && Objects.equals(this.lodgingCheckInDate, additionalDataLodging.lodgingCheckInDate) - && Objects.equals(this.lodgingCheckOutDate, additionalDataLodging.lodgingCheckOutDate) - && Objects.equals( - this.lodgingCustomerServiceTollFreeNumber, - additionalDataLodging.lodgingCustomerServiceTollFreeNumber) - && Objects.equals( - this.lodgingFireSafetyActIndicator, additionalDataLodging.lodgingFireSafetyActIndicator) - && Objects.equals( - this.lodgingFolioCashAdvances, additionalDataLodging.lodgingFolioCashAdvances) - && Objects.equals(this.lodgingFolioNumber, additionalDataLodging.lodgingFolioNumber) - && Objects.equals( - this.lodgingFoodBeverageCharges, additionalDataLodging.lodgingFoodBeverageCharges) - && Objects.equals(this.lodgingNoShowIndicator, additionalDataLodging.lodgingNoShowIndicator) - && Objects.equals(this.lodgingPrepaidExpenses, additionalDataLodging.lodgingPrepaidExpenses) - && Objects.equals( - this.lodgingPropertyPhoneNumber, additionalDataLodging.lodgingPropertyPhoneNumber) - && Objects.equals( - this.lodgingRoom1NumberOfNights, additionalDataLodging.lodgingRoom1NumberOfNights) - && Objects.equals(this.lodgingRoom1Rate, additionalDataLodging.lodgingRoom1Rate) - && Objects.equals(this.lodgingTotalRoomTax, additionalDataLodging.lodgingTotalRoomTax) - && Objects.equals(this.lodgingTotalTax, additionalDataLodging.lodgingTotalTax) - && Objects.equals( - this.travelEntertainmentAuthDataDuration, - additionalDataLodging.travelEntertainmentAuthDataDuration) - && Objects.equals( - this.travelEntertainmentAuthDataMarket, - additionalDataLodging.travelEntertainmentAuthDataMarket); + return Objects.equals(this.lodgingSpecialProgramCode, additionalDataLodging.lodgingSpecialProgramCode) && + Objects.equals(this.lodgingCheckInDate, additionalDataLodging.lodgingCheckInDate) && + Objects.equals(this.lodgingCheckOutDate, additionalDataLodging.lodgingCheckOutDate) && + Objects.equals(this.lodgingCustomerServiceTollFreeNumber, additionalDataLodging.lodgingCustomerServiceTollFreeNumber) && + Objects.equals(this.lodgingFireSafetyActIndicator, additionalDataLodging.lodgingFireSafetyActIndicator) && + Objects.equals(this.lodgingFolioCashAdvances, additionalDataLodging.lodgingFolioCashAdvances) && + Objects.equals(this.lodgingFolioNumber, additionalDataLodging.lodgingFolioNumber) && + Objects.equals(this.lodgingFoodBeverageCharges, additionalDataLodging.lodgingFoodBeverageCharges) && + Objects.equals(this.lodgingNoShowIndicator, additionalDataLodging.lodgingNoShowIndicator) && + Objects.equals(this.lodgingPrepaidExpenses, additionalDataLodging.lodgingPrepaidExpenses) && + Objects.equals(this.lodgingPropertyPhoneNumber, additionalDataLodging.lodgingPropertyPhoneNumber) && + Objects.equals(this.lodgingRoom1NumberOfNights, additionalDataLodging.lodgingRoom1NumberOfNights) && + Objects.equals(this.lodgingRoom1Rate, additionalDataLodging.lodgingRoom1Rate) && + Objects.equals(this.lodgingTotalRoomTax, additionalDataLodging.lodgingTotalRoomTax) && + Objects.equals(this.lodgingTotalTax, additionalDataLodging.lodgingTotalTax) && + Objects.equals(this.travelEntertainmentAuthDataDuration, additionalDataLodging.travelEntertainmentAuthDataDuration) && + Objects.equals(this.travelEntertainmentAuthDataMarket, additionalDataLodging.travelEntertainmentAuthDataMarket); } @Override public int hashCode() { - return Objects.hash( - lodgingSpecialProgramCode, - lodgingCheckInDate, - lodgingCheckOutDate, - lodgingCustomerServiceTollFreeNumber, - lodgingFireSafetyActIndicator, - lodgingFolioCashAdvances, - lodgingFolioNumber, - lodgingFoodBeverageCharges, - lodgingNoShowIndicator, - lodgingPrepaidExpenses, - lodgingPropertyPhoneNumber, - lodgingRoom1NumberOfNights, - lodgingRoom1Rate, - lodgingTotalRoomTax, - lodgingTotalTax, - travelEntertainmentAuthDataDuration, - travelEntertainmentAuthDataMarket); + return Objects.hash(lodgingSpecialProgramCode, lodgingCheckInDate, lodgingCheckOutDate, lodgingCustomerServiceTollFreeNumber, lodgingFireSafetyActIndicator, lodgingFolioCashAdvances, lodgingFolioNumber, lodgingFoodBeverageCharges, lodgingNoShowIndicator, lodgingPrepaidExpenses, lodgingPropertyPhoneNumber, lodgingRoom1NumberOfNights, lodgingRoom1Rate, lodgingTotalRoomTax, lodgingTotalTax, travelEntertainmentAuthDataDuration, travelEntertainmentAuthDataMarket); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataLodging {\n"); - sb.append(" lodgingSpecialProgramCode: ") - .append(toIndentedString(lodgingSpecialProgramCode)) - .append("\n"); + sb.append(" lodgingSpecialProgramCode: ").append(toIndentedString(lodgingSpecialProgramCode)).append("\n"); sb.append(" lodgingCheckInDate: ").append(toIndentedString(lodgingCheckInDate)).append("\n"); - sb.append(" lodgingCheckOutDate: ") - .append(toIndentedString(lodgingCheckOutDate)) - .append("\n"); - sb.append(" lodgingCustomerServiceTollFreeNumber: ") - .append(toIndentedString(lodgingCustomerServiceTollFreeNumber)) - .append("\n"); - sb.append(" lodgingFireSafetyActIndicator: ") - .append(toIndentedString(lodgingFireSafetyActIndicator)) - .append("\n"); - sb.append(" lodgingFolioCashAdvances: ") - .append(toIndentedString(lodgingFolioCashAdvances)) - .append("\n"); + sb.append(" lodgingCheckOutDate: ").append(toIndentedString(lodgingCheckOutDate)).append("\n"); + sb.append(" lodgingCustomerServiceTollFreeNumber: ").append(toIndentedString(lodgingCustomerServiceTollFreeNumber)).append("\n"); + sb.append(" lodgingFireSafetyActIndicator: ").append(toIndentedString(lodgingFireSafetyActIndicator)).append("\n"); + sb.append(" lodgingFolioCashAdvances: ").append(toIndentedString(lodgingFolioCashAdvances)).append("\n"); sb.append(" lodgingFolioNumber: ").append(toIndentedString(lodgingFolioNumber)).append("\n"); - sb.append(" lodgingFoodBeverageCharges: ") - .append(toIndentedString(lodgingFoodBeverageCharges)) - .append("\n"); - sb.append(" lodgingNoShowIndicator: ") - .append(toIndentedString(lodgingNoShowIndicator)) - .append("\n"); - sb.append(" lodgingPrepaidExpenses: ") - .append(toIndentedString(lodgingPrepaidExpenses)) - .append("\n"); - sb.append(" lodgingPropertyPhoneNumber: ") - .append(toIndentedString(lodgingPropertyPhoneNumber)) - .append("\n"); - sb.append(" lodgingRoom1NumberOfNights: ") - .append(toIndentedString(lodgingRoom1NumberOfNights)) - .append("\n"); + sb.append(" lodgingFoodBeverageCharges: ").append(toIndentedString(lodgingFoodBeverageCharges)).append("\n"); + sb.append(" lodgingNoShowIndicator: ").append(toIndentedString(lodgingNoShowIndicator)).append("\n"); + sb.append(" lodgingPrepaidExpenses: ").append(toIndentedString(lodgingPrepaidExpenses)).append("\n"); + sb.append(" lodgingPropertyPhoneNumber: ").append(toIndentedString(lodgingPropertyPhoneNumber)).append("\n"); + sb.append(" lodgingRoom1NumberOfNights: ").append(toIndentedString(lodgingRoom1NumberOfNights)).append("\n"); sb.append(" lodgingRoom1Rate: ").append(toIndentedString(lodgingRoom1Rate)).append("\n"); - sb.append(" lodgingTotalRoomTax: ") - .append(toIndentedString(lodgingTotalRoomTax)) - .append("\n"); + sb.append(" lodgingTotalRoomTax: ").append(toIndentedString(lodgingTotalRoomTax)).append("\n"); sb.append(" lodgingTotalTax: ").append(toIndentedString(lodgingTotalTax)).append("\n"); - sb.append(" travelEntertainmentAuthDataDuration: ") - .append(toIndentedString(travelEntertainmentAuthDataDuration)) - .append("\n"); - sb.append(" travelEntertainmentAuthDataMarket: ") - .append(toIndentedString(travelEntertainmentAuthDataMarket)) - .append("\n"); + sb.append(" travelEntertainmentAuthDataDuration: ").append(toIndentedString(travelEntertainmentAuthDataDuration)).append("\n"); + sb.append(" travelEntertainmentAuthDataMarket: ").append(toIndentedString(travelEntertainmentAuthDataMarket)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -945,23 +718,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalDataLodging given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataLodging - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataLodging + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataLodging */ public static AdditionalDataLodging fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataLodging.class); } - - /** - * Convert an instance of AdditionalDataLodging to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalDataLodging to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataOpenInvoice.java b/src/main/java/com/adyen/model/checkout/AdditionalDataOpenInvoice.java index f7d5a7cf1..2fe55eee7 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataOpenInvoice.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataOpenInvoice.java @@ -2,22 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AdditionalDataOpenInvoice */ + +/** + * AdditionalDataOpenInvoice + */ @JsonPropertyOrder({ AdditionalDataOpenInvoice.JSON_PROPERTY_OPENINVOICEDATA_MERCHANT_DATA, AdditionalDataOpenInvoice.JSON_PROPERTY_OPENINVOICEDATA_NUMBER_OF_LINES, @@ -38,94 +47,69 @@ AdditionalDataOpenInvoice.JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_NUMBER, AdditionalDataOpenInvoice.JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_URI }) + public class AdditionalDataOpenInvoice { - public static final String JSON_PROPERTY_OPENINVOICEDATA_MERCHANT_DATA = - "openinvoicedata.merchantData"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_MERCHANT_DATA = "openinvoicedata.merchantData"; private String openinvoicedataMerchantData; - public static final String JSON_PROPERTY_OPENINVOICEDATA_NUMBER_OF_LINES = - "openinvoicedata.numberOfLines"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_NUMBER_OF_LINES = "openinvoicedata.numberOfLines"; private String openinvoicedataNumberOfLines; - public static final String JSON_PROPERTY_OPENINVOICEDATA_RECIPIENT_FIRST_NAME = - "openinvoicedata.recipientFirstName"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_RECIPIENT_FIRST_NAME = "openinvoicedata.recipientFirstName"; private String openinvoicedataRecipientFirstName; - public static final String JSON_PROPERTY_OPENINVOICEDATA_RECIPIENT_LAST_NAME = - "openinvoicedata.recipientLastName"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_RECIPIENT_LAST_NAME = "openinvoicedata.recipientLastName"; private String openinvoicedataRecipientLastName; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_CURRENCY_CODE = - "openinvoicedataLine[itemNr].currencyCode"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_CURRENCY_CODE = "openinvoicedataLine[itemNr].currencyCode"; private String openinvoicedataLineItemNrCurrencyCode; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_DESCRIPTION = - "openinvoicedataLine[itemNr].description"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_DESCRIPTION = "openinvoicedataLine[itemNr].description"; private String openinvoicedataLineItemNrDescription; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_AMOUNT = - "openinvoicedataLine[itemNr].itemAmount"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_AMOUNT = "openinvoicedataLine[itemNr].itemAmount"; private String openinvoicedataLineItemNrItemAmount; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_ID = - "openinvoicedataLine[itemNr].itemId"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_ID = "openinvoicedataLine[itemNr].itemId"; private String openinvoicedataLineItemNrItemId; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_VAT_AMOUNT = - "openinvoicedataLine[itemNr].itemVatAmount"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_VAT_AMOUNT = "openinvoicedataLine[itemNr].itemVatAmount"; private String openinvoicedataLineItemNrItemVatAmount; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_VAT_PERCENTAGE = - "openinvoicedataLine[itemNr].itemVatPercentage"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_VAT_PERCENTAGE = "openinvoicedataLine[itemNr].itemVatPercentage"; private String openinvoicedataLineItemNrItemVatPercentage; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_NUMBER_OF_ITEMS = - "openinvoicedataLine[itemNr].numberOfItems"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_NUMBER_OF_ITEMS = "openinvoicedataLine[itemNr].numberOfItems"; private String openinvoicedataLineItemNrNumberOfItems; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_SHIPPING_COMPANY = - "openinvoicedataLine[itemNr].returnShippingCompany"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_SHIPPING_COMPANY = "openinvoicedataLine[itemNr].returnShippingCompany"; private String openinvoicedataLineItemNrReturnShippingCompany; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_TRACKING_NUMBER = - "openinvoicedataLine[itemNr].returnTrackingNumber"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_TRACKING_NUMBER = "openinvoicedataLine[itemNr].returnTrackingNumber"; private String openinvoicedataLineItemNrReturnTrackingNumber; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_TRACKING_URI = - "openinvoicedataLine[itemNr].returnTrackingUri"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_TRACKING_URI = "openinvoicedataLine[itemNr].returnTrackingUri"; private String openinvoicedataLineItemNrReturnTrackingUri; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_SHIPPING_COMPANY = - "openinvoicedataLine[itemNr].shippingCompany"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_SHIPPING_COMPANY = "openinvoicedataLine[itemNr].shippingCompany"; private String openinvoicedataLineItemNrShippingCompany; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_SHIPPING_METHOD = - "openinvoicedataLine[itemNr].shippingMethod"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_SHIPPING_METHOD = "openinvoicedataLine[itemNr].shippingMethod"; private String openinvoicedataLineItemNrShippingMethod; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_NUMBER = - "openinvoicedataLine[itemNr].trackingNumber"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_NUMBER = "openinvoicedataLine[itemNr].trackingNumber"; private String openinvoicedataLineItemNrTrackingNumber; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_URI = - "openinvoicedataLine[itemNr].trackingUri"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_URI = "openinvoicedataLine[itemNr].trackingUri"; private String openinvoicedataLineItemNrTrackingUri; - public AdditionalDataOpenInvoice() {} + public AdditionalDataOpenInvoice() { + } /** - * Holds different merchant data points like product, purchase, customer, and so on. It takes data - * in a Base64 encoded string. The `merchantData` parameter needs to be added to the - * `openinvoicedata` signature at the end. Since the field is optional, if it's not - * included it does not impact computing the merchant signature. Applies only to Klarna. You can - * contact Klarna for the format and structure of the string. + * Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string. The `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end. Since the field is optional, if it's not included it does not impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for the format and structure of the string. * - * @param openinvoicedataMerchantData Holds different merchant data points like product, purchase, - * customer, and so on. It takes data in a Base64 encoded string. The `merchantData` - * parameter needs to be added to the `openinvoicedata` signature at the end. Since - * the field is optional, if it's not included it does not impact computing the merchant - * signature. Applies only to Klarna. You can contact Klarna for the format and structure of - * the string. + * @param openinvoicedataMerchantData Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string. The `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end. Since the field is optional, if it's not included it does not impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for the format and structure of the string. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ public AdditionalDataOpenInvoice openinvoicedataMerchantData(String openinvoicedataMerchantData) { @@ -134,18 +118,8 @@ public AdditionalDataOpenInvoice openinvoicedataMerchantData(String openinvoiced } /** - * Holds different merchant data points like product, purchase, customer, and so on. It takes data - * in a Base64 encoded string. The `merchantData` parameter needs to be added to the - * `openinvoicedata` signature at the end. Since the field is optional, if it's not - * included it does not impact computing the merchant signature. Applies only to Klarna. You can - * contact Klarna for the format and structure of the string. - * - * @return openinvoicedataMerchantData Holds different merchant data points like product, - * purchase, customer, and so on. It takes data in a Base64 encoded string. The - * `merchantData` parameter needs to be added to the `openinvoicedata` - * signature at the end. Since the field is optional, if it's not included it does not - * impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for - * the format and structure of the string. + * Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string. The `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end. Since the field is optional, if it's not included it does not impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for the format and structure of the string. + * @return openinvoicedataMerchantData Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string. The `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end. Since the field is optional, if it's not included it does not impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for the format and structure of the string. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_MERCHANT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -154,18 +128,9 @@ public String getOpeninvoicedataMerchantData() { } /** - * Holds different merchant data points like product, purchase, customer, and so on. It takes data - * in a Base64 encoded string. The `merchantData` parameter needs to be added to the - * `openinvoicedata` signature at the end. Since the field is optional, if it's not - * included it does not impact computing the merchant signature. Applies only to Klarna. You can - * contact Klarna for the format and structure of the string. + * Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string. The `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end. Since the field is optional, if it's not included it does not impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for the format and structure of the string. * - * @param openinvoicedataMerchantData Holds different merchant data points like product, purchase, - * customer, and so on. It takes data in a Base64 encoded string. The `merchantData` - * parameter needs to be added to the `openinvoicedata` signature at the end. Since - * the field is optional, if it's not included it does not impact computing the merchant - * signature. Applies only to Klarna. You can contact Klarna for the format and structure of - * the string. + * @param openinvoicedataMerchantData Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string. The `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end. Since the field is optional, if it's not included it does not impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for the format and structure of the string. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_MERCHANT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -174,27 +139,19 @@ public void setOpeninvoicedataMerchantData(String openinvoicedataMerchantData) { } /** - * The number of invoice lines included in `openinvoicedata`. There needs to be at least - * one line, so `numberOfLines` needs to be at least 1. + * The number of invoice lines included in `openinvoicedata`. There needs to be at least one line, so `numberOfLines` needs to be at least 1. * - * @param openinvoicedataNumberOfLines The number of invoice lines included in - * `openinvoicedata`. There needs to be at least one line, so - * `numberOfLines` needs to be at least 1. + * @param openinvoicedataNumberOfLines The number of invoice lines included in `openinvoicedata`. There needs to be at least one line, so `numberOfLines` needs to be at least 1. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataNumberOfLines( - String openinvoicedataNumberOfLines) { + public AdditionalDataOpenInvoice openinvoicedataNumberOfLines(String openinvoicedataNumberOfLines) { this.openinvoicedataNumberOfLines = openinvoicedataNumberOfLines; return this; } /** - * The number of invoice lines included in `openinvoicedata`. There needs to be at least - * one line, so `numberOfLines` needs to be at least 1. - * - * @return openinvoicedataNumberOfLines The number of invoice lines included in - * `openinvoicedata`. There needs to be at least one line, so - * `numberOfLines` needs to be at least 1. + * The number of invoice lines included in `openinvoicedata`. There needs to be at least one line, so `numberOfLines` needs to be at least 1. + * @return openinvoicedataNumberOfLines The number of invoice lines included in `openinvoicedata`. There needs to be at least one line, so `numberOfLines` needs to be at least 1. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_NUMBER_OF_LINES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -203,12 +160,9 @@ public String getOpeninvoicedataNumberOfLines() { } /** - * The number of invoice lines included in `openinvoicedata`. There needs to be at least - * one line, so `numberOfLines` needs to be at least 1. + * The number of invoice lines included in `openinvoicedata`. There needs to be at least one line, so `numberOfLines` needs to be at least 1. * - * @param openinvoicedataNumberOfLines The number of invoice lines included in - * `openinvoicedata`. There needs to be at least one line, so - * `numberOfLines` needs to be at least 1. + * @param openinvoicedataNumberOfLines The number of invoice lines included in `openinvoicedata`. There needs to be at least one line, so `numberOfLines` needs to be at least 1. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_NUMBER_OF_LINES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -217,31 +171,19 @@ public void setOpeninvoicedataNumberOfLines(String openinvoicedataNumberOfLines) } /** - * First name of the recipient. If the delivery address and the billing address are different, - * specify the `recipientFirstName` and `recipientLastName` to share the - * delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * First name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. * - * @param openinvoicedataRecipientFirstName First name of the recipient. If the delivery address - * and the billing address are different, specify the `recipientFirstName` and - * `recipientLastName` to share the delivery address with Klarna. Otherwise, only - * the billing address is shared with Klarna. + * @param openinvoicedataRecipientFirstName First name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataRecipientFirstName( - String openinvoicedataRecipientFirstName) { + public AdditionalDataOpenInvoice openinvoicedataRecipientFirstName(String openinvoicedataRecipientFirstName) { this.openinvoicedataRecipientFirstName = openinvoicedataRecipientFirstName; return this; } /** - * First name of the recipient. If the delivery address and the billing address are different, - * specify the `recipientFirstName` and `recipientLastName` to share the - * delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. - * - * @return openinvoicedataRecipientFirstName First name of the recipient. If the delivery address - * and the billing address are different, specify the `recipientFirstName` and - * `recipientLastName` to share the delivery address with Klarna. Otherwise, only - * the billing address is shared with Klarna. + * First name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * @return openinvoicedataRecipientFirstName First name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_RECIPIENT_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,14 +192,9 @@ public String getOpeninvoicedataRecipientFirstName() { } /** - * First name of the recipient. If the delivery address and the billing address are different, - * specify the `recipientFirstName` and `recipientLastName` to share the - * delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * First name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. * - * @param openinvoicedataRecipientFirstName First name of the recipient. If the delivery address - * and the billing address are different, specify the `recipientFirstName` and - * `recipientLastName` to share the delivery address with Klarna. Otherwise, only - * the billing address is shared with Klarna. + * @param openinvoicedataRecipientFirstName First name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_RECIPIENT_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -266,31 +203,19 @@ public void setOpeninvoicedataRecipientFirstName(String openinvoicedataRecipient } /** - * Last name of the recipient. If the delivery address and the billing address are different, - * specify the `recipientFirstName` and `recipientLastName` to share the - * delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * Last name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. * - * @param openinvoicedataRecipientLastName Last name of the recipient. If the delivery address and - * the billing address are different, specify the `recipientFirstName` and - * `recipientLastName` to share the delivery address with Klarna. Otherwise, only - * the billing address is shared with Klarna. + * @param openinvoicedataRecipientLastName Last name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataRecipientLastName( - String openinvoicedataRecipientLastName) { + public AdditionalDataOpenInvoice openinvoicedataRecipientLastName(String openinvoicedataRecipientLastName) { this.openinvoicedataRecipientLastName = openinvoicedataRecipientLastName; return this; } /** - * Last name of the recipient. If the delivery address and the billing address are different, - * specify the `recipientFirstName` and `recipientLastName` to share the - * delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. - * - * @return openinvoicedataRecipientLastName Last name of the recipient. If the delivery address - * and the billing address are different, specify the `recipientFirstName` and - * `recipientLastName` to share the delivery address with Klarna. Otherwise, only - * the billing address is shared with Klarna. + * Last name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * @return openinvoicedataRecipientLastName Last name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_RECIPIENT_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -299,14 +224,9 @@ public String getOpeninvoicedataRecipientLastName() { } /** - * Last name of the recipient. If the delivery address and the billing address are different, - * specify the `recipientFirstName` and `recipientLastName` to share the - * delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * Last name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. * - * @param openinvoicedataRecipientLastName Last name of the recipient. If the delivery address and - * the billing address are different, specify the `recipientFirstName` and - * `recipientLastName` to share the delivery address with Klarna. Otherwise, only - * the billing address is shared with Klarna. + * @param openinvoicedataRecipientLastName Last name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_RECIPIENT_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -320,15 +240,13 @@ public void setOpeninvoicedataRecipientLastName(String openinvoicedataRecipientL * @param openinvoicedataLineItemNrCurrencyCode The three-character ISO currency code. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrCurrencyCode( - String openinvoicedataLineItemNrCurrencyCode) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrCurrencyCode(String openinvoicedataLineItemNrCurrencyCode) { this.openinvoicedataLineItemNrCurrencyCode = openinvoicedataLineItemNrCurrencyCode; return this; } /** * The three-character ISO currency code. - * * @return openinvoicedataLineItemNrCurrencyCode The three-character ISO currency code. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_CURRENCY_CODE) @@ -344,29 +262,24 @@ public String getOpeninvoicedataLineItemNrCurrencyCode() { */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_CURRENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrCurrencyCode( - String openinvoicedataLineItemNrCurrencyCode) { + public void setOpeninvoicedataLineItemNrCurrencyCode(String openinvoicedataLineItemNrCurrencyCode) { this.openinvoicedataLineItemNrCurrencyCode = openinvoicedataLineItemNrCurrencyCode; } /** * A text description of the product the invoice line refers to. * - * @param openinvoicedataLineItemNrDescription A text description of the product the invoice line - * refers to. + * @param openinvoicedataLineItemNrDescription A text description of the product the invoice line refers to. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrDescription( - String openinvoicedataLineItemNrDescription) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrDescription(String openinvoicedataLineItemNrDescription) { this.openinvoicedataLineItemNrDescription = openinvoicedataLineItemNrDescription; return this; } /** * A text description of the product the invoice line refers to. - * - * @return openinvoicedataLineItemNrDescription A text description of the product the invoice line - * refers to. + * @return openinvoicedataLineItemNrDescription A text description of the product the invoice line refers to. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -377,8 +290,7 @@ public String getOpeninvoicedataLineItemNrDescription() { /** * A text description of the product the invoice line refers to. * - * @param openinvoicedataLineItemNrDescription A text description of the product the invoice line - * refers to. + * @param openinvoicedataLineItemNrDescription A text description of the product the invoice line refers to. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -387,25 +299,19 @@ public void setOpeninvoicedataLineItemNrDescription(String openinvoicedataLineIt } /** - * The price for one item in the invoice line, represented in minor units. The due amount for the - * item, VAT excluded. + * The price for one item in the invoice line, represented in minor units. The due amount for the item, VAT excluded. * - * @param openinvoicedataLineItemNrItemAmount The price for one item in the invoice line, - * represented in minor units. The due amount for the item, VAT excluded. + * @param openinvoicedataLineItemNrItemAmount The price for one item in the invoice line, represented in minor units. The due amount for the item, VAT excluded. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrItemAmount( - String openinvoicedataLineItemNrItemAmount) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrItemAmount(String openinvoicedataLineItemNrItemAmount) { this.openinvoicedataLineItemNrItemAmount = openinvoicedataLineItemNrItemAmount; return this; } /** - * The price for one item in the invoice line, represented in minor units. The due amount for the - * item, VAT excluded. - * - * @return openinvoicedataLineItemNrItemAmount The price for one item in the invoice line, - * represented in minor units. The due amount for the item, VAT excluded. + * The price for one item in the invoice line, represented in minor units. The due amount for the item, VAT excluded. + * @return openinvoicedataLineItemNrItemAmount The price for one item in the invoice line, represented in minor units. The due amount for the item, VAT excluded. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -414,11 +320,9 @@ public String getOpeninvoicedataLineItemNrItemAmount() { } /** - * The price for one item in the invoice line, represented in minor units. The due amount for the - * item, VAT excluded. + * The price for one item in the invoice line, represented in minor units. The due amount for the item, VAT excluded. * - * @param openinvoicedataLineItemNrItemAmount The price for one item in the invoice line, - * represented in minor units. The due amount for the item, VAT excluded. + * @param openinvoicedataLineItemNrItemAmount The price for one item in the invoice line, represented in minor units. The due amount for the item, VAT excluded. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -429,21 +333,17 @@ public void setOpeninvoicedataLineItemNrItemAmount(String openinvoicedataLineIte /** * A unique id for this item. Required for RatePay if the description of each item is not unique. * - * @param openinvoicedataLineItemNrItemId A unique id for this item. Required for RatePay if the - * description of each item is not unique. + * @param openinvoicedataLineItemNrItemId A unique id for this item. Required for RatePay if the description of each item is not unique. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrItemId( - String openinvoicedataLineItemNrItemId) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrItemId(String openinvoicedataLineItemNrItemId) { this.openinvoicedataLineItemNrItemId = openinvoicedataLineItemNrItemId; return this; } /** * A unique id for this item. Required for RatePay if the description of each item is not unique. - * - * @return openinvoicedataLineItemNrItemId A unique id for this item. Required for RatePay if the - * description of each item is not unique. + * @return openinvoicedataLineItemNrItemId A unique id for this item. Required for RatePay if the description of each item is not unique. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -454,8 +354,7 @@ public String getOpeninvoicedataLineItemNrItemId() { /** * A unique id for this item. Required for RatePay if the description of each item is not unique. * - * @param openinvoicedataLineItemNrItemId A unique id for this item. Required for RatePay if the - * description of each item is not unique. + * @param openinvoicedataLineItemNrItemId A unique id for this item. Required for RatePay if the description of each item is not unique. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -466,21 +365,17 @@ public void setOpeninvoicedataLineItemNrItemId(String openinvoicedataLineItemNrI /** * The VAT due for one item in the invoice line, represented in minor units. * - * @param openinvoicedataLineItemNrItemVatAmount The VAT due for one item in the invoice line, - * represented in minor units. + * @param openinvoicedataLineItemNrItemVatAmount The VAT due for one item in the invoice line, represented in minor units. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrItemVatAmount( - String openinvoicedataLineItemNrItemVatAmount) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrItemVatAmount(String openinvoicedataLineItemNrItemVatAmount) { this.openinvoicedataLineItemNrItemVatAmount = openinvoicedataLineItemNrItemVatAmount; return this; } /** * The VAT due for one item in the invoice line, represented in minor units. - * - * @return openinvoicedataLineItemNrItemVatAmount The VAT due for one item in the invoice line, - * represented in minor units. + * @return openinvoicedataLineItemNrItemVatAmount The VAT due for one item in the invoice line, represented in minor units. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_VAT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -491,36 +386,28 @@ public String getOpeninvoicedataLineItemNrItemVatAmount() { /** * The VAT due for one item in the invoice line, represented in minor units. * - * @param openinvoicedataLineItemNrItemVatAmount The VAT due for one item in the invoice line, - * represented in minor units. + * @param openinvoicedataLineItemNrItemVatAmount The VAT due for one item in the invoice line, represented in minor units. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_VAT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrItemVatAmount( - String openinvoicedataLineItemNrItemVatAmount) { + public void setOpeninvoicedataLineItemNrItemVatAmount(String openinvoicedataLineItemNrItemVatAmount) { this.openinvoicedataLineItemNrItemVatAmount = openinvoicedataLineItemNrItemVatAmount; } /** - * The VAT percentage for one item in the invoice line, represented in minor units. For example, - * 19% VAT is specified as 1900. + * The VAT percentage for one item in the invoice line, represented in minor units. For example, 19% VAT is specified as 1900. * - * @param openinvoicedataLineItemNrItemVatPercentage The VAT percentage for one item in the - * invoice line, represented in minor units. For example, 19% VAT is specified as 1900. + * @param openinvoicedataLineItemNrItemVatPercentage The VAT percentage for one item in the invoice line, represented in minor units. For example, 19% VAT is specified as 1900. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrItemVatPercentage( - String openinvoicedataLineItemNrItemVatPercentage) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrItemVatPercentage(String openinvoicedataLineItemNrItemVatPercentage) { this.openinvoicedataLineItemNrItemVatPercentage = openinvoicedataLineItemNrItemVatPercentage; return this; } /** - * The VAT percentage for one item in the invoice line, represented in minor units. For example, - * 19% VAT is specified as 1900. - * - * @return openinvoicedataLineItemNrItemVatPercentage The VAT percentage for one item in the - * invoice line, represented in minor units. For example, 19% VAT is specified as 1900. + * The VAT percentage for one item in the invoice line, represented in minor units. For example, 19% VAT is specified as 1900. + * @return openinvoicedataLineItemNrItemVatPercentage The VAT percentage for one item in the invoice line, represented in minor units. For example, 19% VAT is specified as 1900. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_VAT_PERCENTAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -529,37 +416,30 @@ public String getOpeninvoicedataLineItemNrItemVatPercentage() { } /** - * The VAT percentage for one item in the invoice line, represented in minor units. For example, - * 19% VAT is specified as 1900. + * The VAT percentage for one item in the invoice line, represented in minor units. For example, 19% VAT is specified as 1900. * - * @param openinvoicedataLineItemNrItemVatPercentage The VAT percentage for one item in the - * invoice line, represented in minor units. For example, 19% VAT is specified as 1900. + * @param openinvoicedataLineItemNrItemVatPercentage The VAT percentage for one item in the invoice line, represented in minor units. For example, 19% VAT is specified as 1900. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_VAT_PERCENTAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrItemVatPercentage( - String openinvoicedataLineItemNrItemVatPercentage) { + public void setOpeninvoicedataLineItemNrItemVatPercentage(String openinvoicedataLineItemNrItemVatPercentage) { this.openinvoicedataLineItemNrItemVatPercentage = openinvoicedataLineItemNrItemVatPercentage; } /** * The number of units purchased of a specific product. * - * @param openinvoicedataLineItemNrNumberOfItems The number of units purchased of a specific - * product. + * @param openinvoicedataLineItemNrNumberOfItems The number of units purchased of a specific product. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrNumberOfItems( - String openinvoicedataLineItemNrNumberOfItems) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrNumberOfItems(String openinvoicedataLineItemNrNumberOfItems) { this.openinvoicedataLineItemNrNumberOfItems = openinvoicedataLineItemNrNumberOfItems; return this; } /** * The number of units purchased of a specific product. - * - * @return openinvoicedataLineItemNrNumberOfItems The number of units purchased of a specific - * product. + * @return openinvoicedataLineItemNrNumberOfItems The number of units purchased of a specific product. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_NUMBER_OF_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -570,35 +450,28 @@ public String getOpeninvoicedataLineItemNrNumberOfItems() { /** * The number of units purchased of a specific product. * - * @param openinvoicedataLineItemNrNumberOfItems The number of units purchased of a specific - * product. + * @param openinvoicedataLineItemNrNumberOfItems The number of units purchased of a specific product. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_NUMBER_OF_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrNumberOfItems( - String openinvoicedataLineItemNrNumberOfItems) { + public void setOpeninvoicedataLineItemNrNumberOfItems(String openinvoicedataLineItemNrNumberOfItems) { this.openinvoicedataLineItemNrNumberOfItems = openinvoicedataLineItemNrNumberOfItems; } /** * Name of the shipping company handling the the return shipment. * - * @param openinvoicedataLineItemNrReturnShippingCompany Name of the shipping company handling the - * the return shipment. + * @param openinvoicedataLineItemNrReturnShippingCompany Name of the shipping company handling the the return shipment. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrReturnShippingCompany( - String openinvoicedataLineItemNrReturnShippingCompany) { - this.openinvoicedataLineItemNrReturnShippingCompany = - openinvoicedataLineItemNrReturnShippingCompany; + public AdditionalDataOpenInvoice openinvoicedataLineItemNrReturnShippingCompany(String openinvoicedataLineItemNrReturnShippingCompany) { + this.openinvoicedataLineItemNrReturnShippingCompany = openinvoicedataLineItemNrReturnShippingCompany; return this; } /** * Name of the shipping company handling the the return shipment. - * - * @return openinvoicedataLineItemNrReturnShippingCompany Name of the shipping company handling - * the the return shipment. + * @return openinvoicedataLineItemNrReturnShippingCompany Name of the shipping company handling the the return shipment. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_SHIPPING_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -609,36 +482,28 @@ public String getOpeninvoicedataLineItemNrReturnShippingCompany() { /** * Name of the shipping company handling the the return shipment. * - * @param openinvoicedataLineItemNrReturnShippingCompany Name of the shipping company handling the - * the return shipment. + * @param openinvoicedataLineItemNrReturnShippingCompany Name of the shipping company handling the the return shipment. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_SHIPPING_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrReturnShippingCompany( - String openinvoicedataLineItemNrReturnShippingCompany) { - this.openinvoicedataLineItemNrReturnShippingCompany = - openinvoicedataLineItemNrReturnShippingCompany; + public void setOpeninvoicedataLineItemNrReturnShippingCompany(String openinvoicedataLineItemNrReturnShippingCompany) { + this.openinvoicedataLineItemNrReturnShippingCompany = openinvoicedataLineItemNrReturnShippingCompany; } /** * The tracking number for the return of the shipment. * - * @param openinvoicedataLineItemNrReturnTrackingNumber The tracking number for the return of the - * shipment. + * @param openinvoicedataLineItemNrReturnTrackingNumber The tracking number for the return of the shipment. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrReturnTrackingNumber( - String openinvoicedataLineItemNrReturnTrackingNumber) { - this.openinvoicedataLineItemNrReturnTrackingNumber = - openinvoicedataLineItemNrReturnTrackingNumber; + public AdditionalDataOpenInvoice openinvoicedataLineItemNrReturnTrackingNumber(String openinvoicedataLineItemNrReturnTrackingNumber) { + this.openinvoicedataLineItemNrReturnTrackingNumber = openinvoicedataLineItemNrReturnTrackingNumber; return this; } /** * The tracking number for the return of the shipment. - * - * @return openinvoicedataLineItemNrReturnTrackingNumber The tracking number for the return of the - * shipment. + * @return openinvoicedataLineItemNrReturnTrackingNumber The tracking number for the return of the shipment. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_TRACKING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -649,35 +514,28 @@ public String getOpeninvoicedataLineItemNrReturnTrackingNumber() { /** * The tracking number for the return of the shipment. * - * @param openinvoicedataLineItemNrReturnTrackingNumber The tracking number for the return of the - * shipment. + * @param openinvoicedataLineItemNrReturnTrackingNumber The tracking number for the return of the shipment. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_TRACKING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrReturnTrackingNumber( - String openinvoicedataLineItemNrReturnTrackingNumber) { - this.openinvoicedataLineItemNrReturnTrackingNumber = - openinvoicedataLineItemNrReturnTrackingNumber; + public void setOpeninvoicedataLineItemNrReturnTrackingNumber(String openinvoicedataLineItemNrReturnTrackingNumber) { + this.openinvoicedataLineItemNrReturnTrackingNumber = openinvoicedataLineItemNrReturnTrackingNumber; } /** * URI where the customer can track the return of their shipment. * - * @param openinvoicedataLineItemNrReturnTrackingUri URI where the customer can track the return - * of their shipment. + * @param openinvoicedataLineItemNrReturnTrackingUri URI where the customer can track the return of their shipment. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrReturnTrackingUri( - String openinvoicedataLineItemNrReturnTrackingUri) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrReturnTrackingUri(String openinvoicedataLineItemNrReturnTrackingUri) { this.openinvoicedataLineItemNrReturnTrackingUri = openinvoicedataLineItemNrReturnTrackingUri; return this; } /** * URI where the customer can track the return of their shipment. - * - * @return openinvoicedataLineItemNrReturnTrackingUri URI where the customer can track the return - * of their shipment. + * @return openinvoicedataLineItemNrReturnTrackingUri URI where the customer can track the return of their shipment. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_TRACKING_URI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -688,34 +546,28 @@ public String getOpeninvoicedataLineItemNrReturnTrackingUri() { /** * URI where the customer can track the return of their shipment. * - * @param openinvoicedataLineItemNrReturnTrackingUri URI where the customer can track the return - * of their shipment. + * @param openinvoicedataLineItemNrReturnTrackingUri URI where the customer can track the return of their shipment. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_TRACKING_URI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrReturnTrackingUri( - String openinvoicedataLineItemNrReturnTrackingUri) { + public void setOpeninvoicedataLineItemNrReturnTrackingUri(String openinvoicedataLineItemNrReturnTrackingUri) { this.openinvoicedataLineItemNrReturnTrackingUri = openinvoicedataLineItemNrReturnTrackingUri; } /** * Name of the shipping company handling the delivery. * - * @param openinvoicedataLineItemNrShippingCompany Name of the shipping company handling the - * delivery. + * @param openinvoicedataLineItemNrShippingCompany Name of the shipping company handling the delivery. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrShippingCompany( - String openinvoicedataLineItemNrShippingCompany) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrShippingCompany(String openinvoicedataLineItemNrShippingCompany) { this.openinvoicedataLineItemNrShippingCompany = openinvoicedataLineItemNrShippingCompany; return this; } /** * Name of the shipping company handling the delivery. - * - * @return openinvoicedataLineItemNrShippingCompany Name of the shipping company handling the - * delivery. + * @return openinvoicedataLineItemNrShippingCompany Name of the shipping company handling the delivery. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_SHIPPING_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -726,13 +578,11 @@ public String getOpeninvoicedataLineItemNrShippingCompany() { /** * Name of the shipping company handling the delivery. * - * @param openinvoicedataLineItemNrShippingCompany Name of the shipping company handling the - * delivery. + * @param openinvoicedataLineItemNrShippingCompany Name of the shipping company handling the delivery. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_SHIPPING_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrShippingCompany( - String openinvoicedataLineItemNrShippingCompany) { + public void setOpeninvoicedataLineItemNrShippingCompany(String openinvoicedataLineItemNrShippingCompany) { this.openinvoicedataLineItemNrShippingCompany = openinvoicedataLineItemNrShippingCompany; } @@ -742,15 +592,13 @@ public void setOpeninvoicedataLineItemNrShippingCompany( * @param openinvoicedataLineItemNrShippingMethod Shipping method. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrShippingMethod( - String openinvoicedataLineItemNrShippingMethod) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrShippingMethod(String openinvoicedataLineItemNrShippingMethod) { this.openinvoicedataLineItemNrShippingMethod = openinvoicedataLineItemNrShippingMethod; return this; } /** * Shipping method. - * * @return openinvoicedataLineItemNrShippingMethod Shipping method. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_SHIPPING_METHOD) @@ -766,8 +614,7 @@ public String getOpeninvoicedataLineItemNrShippingMethod() { */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_SHIPPING_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrShippingMethod( - String openinvoicedataLineItemNrShippingMethod) { + public void setOpeninvoicedataLineItemNrShippingMethod(String openinvoicedataLineItemNrShippingMethod) { this.openinvoicedataLineItemNrShippingMethod = openinvoicedataLineItemNrShippingMethod; } @@ -777,15 +624,13 @@ public void setOpeninvoicedataLineItemNrShippingMethod( * @param openinvoicedataLineItemNrTrackingNumber The tracking number for the shipment. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrTrackingNumber( - String openinvoicedataLineItemNrTrackingNumber) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrTrackingNumber(String openinvoicedataLineItemNrTrackingNumber) { this.openinvoicedataLineItemNrTrackingNumber = openinvoicedataLineItemNrTrackingNumber; return this; } /** * The tracking number for the shipment. - * * @return openinvoicedataLineItemNrTrackingNumber The tracking number for the shipment. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_NUMBER) @@ -801,8 +646,7 @@ public String getOpeninvoicedataLineItemNrTrackingNumber() { */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrTrackingNumber( - String openinvoicedataLineItemNrTrackingNumber) { + public void setOpeninvoicedataLineItemNrTrackingNumber(String openinvoicedataLineItemNrTrackingNumber) { this.openinvoicedataLineItemNrTrackingNumber = openinvoicedataLineItemNrTrackingNumber; } @@ -812,15 +656,13 @@ public void setOpeninvoicedataLineItemNrTrackingNumber( * @param openinvoicedataLineItemNrTrackingUri URI where the customer can track their shipment. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrTrackingUri( - String openinvoicedataLineItemNrTrackingUri) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrTrackingUri(String openinvoicedataLineItemNrTrackingUri) { this.openinvoicedataLineItemNrTrackingUri = openinvoicedataLineItemNrTrackingUri; return this; } /** * URI where the customer can track their shipment. - * * @return openinvoicedataLineItemNrTrackingUri URI where the customer can track their shipment. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_URI) @@ -840,7 +682,9 @@ public void setOpeninvoicedataLineItemNrTrackingUri(String openinvoicedataLineIt this.openinvoicedataLineItemNrTrackingUri = openinvoicedataLineItemNrTrackingUri; } - /** Return true if this AdditionalDataOpenInvoice object is equal to o. */ + /** + * Return true if this AdditionalDataOpenInvoice object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -850,148 +694,60 @@ public boolean equals(Object o) { return false; } AdditionalDataOpenInvoice additionalDataOpenInvoice = (AdditionalDataOpenInvoice) o; - return Objects.equals( - this.openinvoicedataMerchantData, additionalDataOpenInvoice.openinvoicedataMerchantData) - && Objects.equals( - this.openinvoicedataNumberOfLines, - additionalDataOpenInvoice.openinvoicedataNumberOfLines) - && Objects.equals( - this.openinvoicedataRecipientFirstName, - additionalDataOpenInvoice.openinvoicedataRecipientFirstName) - && Objects.equals( - this.openinvoicedataRecipientLastName, - additionalDataOpenInvoice.openinvoicedataRecipientLastName) - && Objects.equals( - this.openinvoicedataLineItemNrCurrencyCode, - additionalDataOpenInvoice.openinvoicedataLineItemNrCurrencyCode) - && Objects.equals( - this.openinvoicedataLineItemNrDescription, - additionalDataOpenInvoice.openinvoicedataLineItemNrDescription) - && Objects.equals( - this.openinvoicedataLineItemNrItemAmount, - additionalDataOpenInvoice.openinvoicedataLineItemNrItemAmount) - && Objects.equals( - this.openinvoicedataLineItemNrItemId, - additionalDataOpenInvoice.openinvoicedataLineItemNrItemId) - && Objects.equals( - this.openinvoicedataLineItemNrItemVatAmount, - additionalDataOpenInvoice.openinvoicedataLineItemNrItemVatAmount) - && Objects.equals( - this.openinvoicedataLineItemNrItemVatPercentage, - additionalDataOpenInvoice.openinvoicedataLineItemNrItemVatPercentage) - && Objects.equals( - this.openinvoicedataLineItemNrNumberOfItems, - additionalDataOpenInvoice.openinvoicedataLineItemNrNumberOfItems) - && Objects.equals( - this.openinvoicedataLineItemNrReturnShippingCompany, - additionalDataOpenInvoice.openinvoicedataLineItemNrReturnShippingCompany) - && Objects.equals( - this.openinvoicedataLineItemNrReturnTrackingNumber, - additionalDataOpenInvoice.openinvoicedataLineItemNrReturnTrackingNumber) - && Objects.equals( - this.openinvoicedataLineItemNrReturnTrackingUri, - additionalDataOpenInvoice.openinvoicedataLineItemNrReturnTrackingUri) - && Objects.equals( - this.openinvoicedataLineItemNrShippingCompany, - additionalDataOpenInvoice.openinvoicedataLineItemNrShippingCompany) - && Objects.equals( - this.openinvoicedataLineItemNrShippingMethod, - additionalDataOpenInvoice.openinvoicedataLineItemNrShippingMethod) - && Objects.equals( - this.openinvoicedataLineItemNrTrackingNumber, - additionalDataOpenInvoice.openinvoicedataLineItemNrTrackingNumber) - && Objects.equals( - this.openinvoicedataLineItemNrTrackingUri, - additionalDataOpenInvoice.openinvoicedataLineItemNrTrackingUri); + return Objects.equals(this.openinvoicedataMerchantData, additionalDataOpenInvoice.openinvoicedataMerchantData) && + Objects.equals(this.openinvoicedataNumberOfLines, additionalDataOpenInvoice.openinvoicedataNumberOfLines) && + Objects.equals(this.openinvoicedataRecipientFirstName, additionalDataOpenInvoice.openinvoicedataRecipientFirstName) && + Objects.equals(this.openinvoicedataRecipientLastName, additionalDataOpenInvoice.openinvoicedataRecipientLastName) && + Objects.equals(this.openinvoicedataLineItemNrCurrencyCode, additionalDataOpenInvoice.openinvoicedataLineItemNrCurrencyCode) && + Objects.equals(this.openinvoicedataLineItemNrDescription, additionalDataOpenInvoice.openinvoicedataLineItemNrDescription) && + Objects.equals(this.openinvoicedataLineItemNrItemAmount, additionalDataOpenInvoice.openinvoicedataLineItemNrItemAmount) && + Objects.equals(this.openinvoicedataLineItemNrItemId, additionalDataOpenInvoice.openinvoicedataLineItemNrItemId) && + Objects.equals(this.openinvoicedataLineItemNrItemVatAmount, additionalDataOpenInvoice.openinvoicedataLineItemNrItemVatAmount) && + Objects.equals(this.openinvoicedataLineItemNrItemVatPercentage, additionalDataOpenInvoice.openinvoicedataLineItemNrItemVatPercentage) && + Objects.equals(this.openinvoicedataLineItemNrNumberOfItems, additionalDataOpenInvoice.openinvoicedataLineItemNrNumberOfItems) && + Objects.equals(this.openinvoicedataLineItemNrReturnShippingCompany, additionalDataOpenInvoice.openinvoicedataLineItemNrReturnShippingCompany) && + Objects.equals(this.openinvoicedataLineItemNrReturnTrackingNumber, additionalDataOpenInvoice.openinvoicedataLineItemNrReturnTrackingNumber) && + Objects.equals(this.openinvoicedataLineItemNrReturnTrackingUri, additionalDataOpenInvoice.openinvoicedataLineItemNrReturnTrackingUri) && + Objects.equals(this.openinvoicedataLineItemNrShippingCompany, additionalDataOpenInvoice.openinvoicedataLineItemNrShippingCompany) && + Objects.equals(this.openinvoicedataLineItemNrShippingMethod, additionalDataOpenInvoice.openinvoicedataLineItemNrShippingMethod) && + Objects.equals(this.openinvoicedataLineItemNrTrackingNumber, additionalDataOpenInvoice.openinvoicedataLineItemNrTrackingNumber) && + Objects.equals(this.openinvoicedataLineItemNrTrackingUri, additionalDataOpenInvoice.openinvoicedataLineItemNrTrackingUri); } @Override public int hashCode() { - return Objects.hash( - openinvoicedataMerchantData, - openinvoicedataNumberOfLines, - openinvoicedataRecipientFirstName, - openinvoicedataRecipientLastName, - openinvoicedataLineItemNrCurrencyCode, - openinvoicedataLineItemNrDescription, - openinvoicedataLineItemNrItemAmount, - openinvoicedataLineItemNrItemId, - openinvoicedataLineItemNrItemVatAmount, - openinvoicedataLineItemNrItemVatPercentage, - openinvoicedataLineItemNrNumberOfItems, - openinvoicedataLineItemNrReturnShippingCompany, - openinvoicedataLineItemNrReturnTrackingNumber, - openinvoicedataLineItemNrReturnTrackingUri, - openinvoicedataLineItemNrShippingCompany, - openinvoicedataLineItemNrShippingMethod, - openinvoicedataLineItemNrTrackingNumber, - openinvoicedataLineItemNrTrackingUri); + return Objects.hash(openinvoicedataMerchantData, openinvoicedataNumberOfLines, openinvoicedataRecipientFirstName, openinvoicedataRecipientLastName, openinvoicedataLineItemNrCurrencyCode, openinvoicedataLineItemNrDescription, openinvoicedataLineItemNrItemAmount, openinvoicedataLineItemNrItemId, openinvoicedataLineItemNrItemVatAmount, openinvoicedataLineItemNrItemVatPercentage, openinvoicedataLineItemNrNumberOfItems, openinvoicedataLineItemNrReturnShippingCompany, openinvoicedataLineItemNrReturnTrackingNumber, openinvoicedataLineItemNrReturnTrackingUri, openinvoicedataLineItemNrShippingCompany, openinvoicedataLineItemNrShippingMethod, openinvoicedataLineItemNrTrackingNumber, openinvoicedataLineItemNrTrackingUri); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataOpenInvoice {\n"); - sb.append(" openinvoicedataMerchantData: ") - .append(toIndentedString(openinvoicedataMerchantData)) - .append("\n"); - sb.append(" openinvoicedataNumberOfLines: ") - .append(toIndentedString(openinvoicedataNumberOfLines)) - .append("\n"); - sb.append(" openinvoicedataRecipientFirstName: ") - .append(toIndentedString(openinvoicedataRecipientFirstName)) - .append("\n"); - sb.append(" openinvoicedataRecipientLastName: ") - .append(toIndentedString(openinvoicedataRecipientLastName)) - .append("\n"); - sb.append(" openinvoicedataLineItemNrCurrencyCode: ") - .append(toIndentedString(openinvoicedataLineItemNrCurrencyCode)) - .append("\n"); - sb.append(" openinvoicedataLineItemNrDescription: ") - .append(toIndentedString(openinvoicedataLineItemNrDescription)) - .append("\n"); - sb.append(" openinvoicedataLineItemNrItemAmount: ") - .append(toIndentedString(openinvoicedataLineItemNrItemAmount)) - .append("\n"); - sb.append(" openinvoicedataLineItemNrItemId: ") - .append(toIndentedString(openinvoicedataLineItemNrItemId)) - .append("\n"); - sb.append(" openinvoicedataLineItemNrItemVatAmount: ") - .append(toIndentedString(openinvoicedataLineItemNrItemVatAmount)) - .append("\n"); - sb.append(" openinvoicedataLineItemNrItemVatPercentage: ") - .append(toIndentedString(openinvoicedataLineItemNrItemVatPercentage)) - .append("\n"); - sb.append(" openinvoicedataLineItemNrNumberOfItems: ") - .append(toIndentedString(openinvoicedataLineItemNrNumberOfItems)) - .append("\n"); - sb.append(" openinvoicedataLineItemNrReturnShippingCompany: ") - .append(toIndentedString(openinvoicedataLineItemNrReturnShippingCompany)) - .append("\n"); - sb.append(" openinvoicedataLineItemNrReturnTrackingNumber: ") - .append(toIndentedString(openinvoicedataLineItemNrReturnTrackingNumber)) - .append("\n"); - sb.append(" openinvoicedataLineItemNrReturnTrackingUri: ") - .append(toIndentedString(openinvoicedataLineItemNrReturnTrackingUri)) - .append("\n"); - sb.append(" openinvoicedataLineItemNrShippingCompany: ") - .append(toIndentedString(openinvoicedataLineItemNrShippingCompany)) - .append("\n"); - sb.append(" openinvoicedataLineItemNrShippingMethod: ") - .append(toIndentedString(openinvoicedataLineItemNrShippingMethod)) - .append("\n"); - sb.append(" openinvoicedataLineItemNrTrackingNumber: ") - .append(toIndentedString(openinvoicedataLineItemNrTrackingNumber)) - .append("\n"); - sb.append(" openinvoicedataLineItemNrTrackingUri: ") - .append(toIndentedString(openinvoicedataLineItemNrTrackingUri)) - .append("\n"); + sb.append(" openinvoicedataMerchantData: ").append(toIndentedString(openinvoicedataMerchantData)).append("\n"); + sb.append(" openinvoicedataNumberOfLines: ").append(toIndentedString(openinvoicedataNumberOfLines)).append("\n"); + sb.append(" openinvoicedataRecipientFirstName: ").append(toIndentedString(openinvoicedataRecipientFirstName)).append("\n"); + sb.append(" openinvoicedataRecipientLastName: ").append(toIndentedString(openinvoicedataRecipientLastName)).append("\n"); + sb.append(" openinvoicedataLineItemNrCurrencyCode: ").append(toIndentedString(openinvoicedataLineItemNrCurrencyCode)).append("\n"); + sb.append(" openinvoicedataLineItemNrDescription: ").append(toIndentedString(openinvoicedataLineItemNrDescription)).append("\n"); + sb.append(" openinvoicedataLineItemNrItemAmount: ").append(toIndentedString(openinvoicedataLineItemNrItemAmount)).append("\n"); + sb.append(" openinvoicedataLineItemNrItemId: ").append(toIndentedString(openinvoicedataLineItemNrItemId)).append("\n"); + sb.append(" openinvoicedataLineItemNrItemVatAmount: ").append(toIndentedString(openinvoicedataLineItemNrItemVatAmount)).append("\n"); + sb.append(" openinvoicedataLineItemNrItemVatPercentage: ").append(toIndentedString(openinvoicedataLineItemNrItemVatPercentage)).append("\n"); + sb.append(" openinvoicedataLineItemNrNumberOfItems: ").append(toIndentedString(openinvoicedataLineItemNrNumberOfItems)).append("\n"); + sb.append(" openinvoicedataLineItemNrReturnShippingCompany: ").append(toIndentedString(openinvoicedataLineItemNrReturnShippingCompany)).append("\n"); + sb.append(" openinvoicedataLineItemNrReturnTrackingNumber: ").append(toIndentedString(openinvoicedataLineItemNrReturnTrackingNumber)).append("\n"); + sb.append(" openinvoicedataLineItemNrReturnTrackingUri: ").append(toIndentedString(openinvoicedataLineItemNrReturnTrackingUri)).append("\n"); + sb.append(" openinvoicedataLineItemNrShippingCompany: ").append(toIndentedString(openinvoicedataLineItemNrShippingCompany)).append("\n"); + sb.append(" openinvoicedataLineItemNrShippingMethod: ").append(toIndentedString(openinvoicedataLineItemNrShippingMethod)).append("\n"); + sb.append(" openinvoicedataLineItemNrTrackingNumber: ").append(toIndentedString(openinvoicedataLineItemNrTrackingNumber)).append("\n"); + sb.append(" openinvoicedataLineItemNrTrackingUri: ").append(toIndentedString(openinvoicedataLineItemNrTrackingUri)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1000,24 +756,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalDataOpenInvoice given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataOpenInvoice - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataOpenInvoice + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataOpenInvoice */ - public static AdditionalDataOpenInvoice fromJson(String jsonString) - throws JsonProcessingException { + public static AdditionalDataOpenInvoice fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataOpenInvoice.class); } - - /** - * Convert an instance of AdditionalDataOpenInvoice to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalDataOpenInvoice to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataOpi.java b/src/main/java/com/adyen/model/checkout/AdditionalDataOpi.java index 95283e1af..2fc7519e9 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataOpi.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataOpi.java @@ -2,40 +2,46 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AdditionalDataOpi */ -@JsonPropertyOrder({AdditionalDataOpi.JSON_PROPERTY_OPI_INCLUDE_TRANS_TOKEN}) + +/** + * AdditionalDataOpi + */ +@JsonPropertyOrder({ + AdditionalDataOpi.JSON_PROPERTY_OPI_INCLUDE_TRANS_TOKEN +}) + public class AdditionalDataOpi { public static final String JSON_PROPERTY_OPI_INCLUDE_TRANS_TOKEN = "opi.includeTransToken"; private String opiIncludeTransToken; - public AdditionalDataOpi() {} + public AdditionalDataOpi() { + } /** - * Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an - * `opi.transToken` as additional data in the response. You can store this Oracle - * Payment Interface token in your Oracle Opera database. For more information and required - * settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an `opi.transToken` as additional data in the response. You can store this Oracle Payment Interface token in your Oracle Opera database. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). * - * @param opiIncludeTransToken Optional boolean indicator. Set to **true** if you want an - * ecommerce transaction to return an `opi.transToken` as additional data in the - * response. You can store this Oracle Payment Interface token in your Oracle Opera database. - * For more information and required settings, see [Oracle - * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * @param opiIncludeTransToken Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an `opi.transToken` as additional data in the response. You can store this Oracle Payment Interface token in your Oracle Opera database. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). * @return the current {@code AdditionalDataOpi} instance, allowing for method chaining */ public AdditionalDataOpi opiIncludeTransToken(String opiIncludeTransToken) { @@ -44,16 +50,8 @@ public AdditionalDataOpi opiIncludeTransToken(String opiIncludeTransToken) { } /** - * Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an - * `opi.transToken` as additional data in the response. You can store this Oracle - * Payment Interface token in your Oracle Opera database. For more information and required - * settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). - * - * @return opiIncludeTransToken Optional boolean indicator. Set to **true** if you want an - * ecommerce transaction to return an `opi.transToken` as additional data in the - * response. You can store this Oracle Payment Interface token in your Oracle Opera database. - * For more information and required settings, see [Oracle - * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an `opi.transToken` as additional data in the response. You can store this Oracle Payment Interface token in your Oracle Opera database. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * @return opiIncludeTransToken Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an `opi.transToken` as additional data in the response. You can store this Oracle Payment Interface token in your Oracle Opera database. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). */ @JsonProperty(JSON_PROPERTY_OPI_INCLUDE_TRANS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -62,16 +60,9 @@ public String getOpiIncludeTransToken() { } /** - * Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an - * `opi.transToken` as additional data in the response. You can store this Oracle - * Payment Interface token in your Oracle Opera database. For more information and required - * settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an `opi.transToken` as additional data in the response. You can store this Oracle Payment Interface token in your Oracle Opera database. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). * - * @param opiIncludeTransToken Optional boolean indicator. Set to **true** if you want an - * ecommerce transaction to return an `opi.transToken` as additional data in the - * response. You can store this Oracle Payment Interface token in your Oracle Opera database. - * For more information and required settings, see [Oracle - * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * @param opiIncludeTransToken Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an `opi.transToken` as additional data in the response. You can store this Oracle Payment Interface token in your Oracle Opera database. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). */ @JsonProperty(JSON_PROPERTY_OPI_INCLUDE_TRANS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,7 +70,9 @@ public void setOpiIncludeTransToken(String opiIncludeTransToken) { this.opiIncludeTransToken = opiIncludeTransToken; } - /** Return true if this AdditionalDataOpi object is equal to o. */ + /** + * Return true if this AdditionalDataOpi object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -101,15 +94,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataOpi {\n"); - sb.append(" opiIncludeTransToken: ") - .append(toIndentedString(opiIncludeTransToken)) - .append("\n"); + sb.append(" opiIncludeTransToken: ").append(toIndentedString(opiIncludeTransToken)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -118,7 +110,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalDataOpi given an JSON string * * @param jsonString JSON string @@ -128,12 +120,11 @@ private String toIndentedString(Object o) { public static AdditionalDataOpi fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataOpi.class); } - - /** - * Convert an instance of AdditionalDataOpi to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalDataOpi to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataRatepay.java b/src/main/java/com/adyen/model/checkout/AdditionalDataRatepay.java index a51848a87..9bc415ba1 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataRatepay.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataRatepay.java @@ -2,22 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AdditionalDataRatepay */ + +/** + * AdditionalDataRatepay + */ @JsonPropertyOrder({ AdditionalDataRatepay.JSON_PROPERTY_RATEPAY_INSTALLMENT_AMOUNT, AdditionalDataRatepay.JSON_PROPERTY_RATEPAY_INTEREST_RATE, @@ -28,6 +37,7 @@ AdditionalDataRatepay.JSON_PROPERTY_RATEPAYDATA_INVOICE_DATE, AdditionalDataRatepay.JSON_PROPERTY_RATEPAYDATA_INVOICE_ID }) + public class AdditionalDataRatepay { public static final String JSON_PROPERTY_RATEPAY_INSTALLMENT_AMOUNT = "ratepay.installmentAmount"; private String ratepayInstallmentAmount; @@ -35,8 +45,7 @@ public class AdditionalDataRatepay { public static final String JSON_PROPERTY_RATEPAY_INTEREST_RATE = "ratepay.interestRate"; private String ratepayInterestRate; - public static final String JSON_PROPERTY_RATEPAY_LAST_INSTALLMENT_AMOUNT = - "ratepay.lastInstallmentAmount"; + public static final String JSON_PROPERTY_RATEPAY_LAST_INSTALLMENT_AMOUNT = "ratepay.lastInstallmentAmount"; private String ratepayLastInstallmentAmount; public static final String JSON_PROPERTY_RATEPAY_PAYMENT_FIRSTDAY = "ratepay.paymentFirstday"; @@ -54,7 +63,8 @@ public class AdditionalDataRatepay { public static final String JSON_PROPERTY_RATEPAYDATA_INVOICE_ID = "ratepaydata.invoiceId"; private String ratepaydataInvoiceId; - public AdditionalDataRatepay() {} + public AdditionalDataRatepay() { + } /** * Amount the customer has to pay each month. @@ -69,7 +79,6 @@ public AdditionalDataRatepay ratepayInstallmentAmount(String ratepayInstallmentA /** * Amount the customer has to pay each month. - * * @return ratepayInstallmentAmount Amount the customer has to pay each month. */ @JsonProperty(JSON_PROPERTY_RATEPAY_INSTALLMENT_AMOUNT) @@ -102,7 +111,6 @@ public AdditionalDataRatepay ratepayInterestRate(String ratepayInterestRate) { /** * Interest rate of this installment. - * * @return ratepayInterestRate Interest rate of this installment. */ @JsonProperty(JSON_PROPERTY_RATEPAY_INTEREST_RATE) @@ -135,7 +143,6 @@ public AdditionalDataRatepay ratepayLastInstallmentAmount(String ratepayLastInst /** * Amount of the last installment. - * * @return ratepayLastInstallmentAmount Amount of the last installment. */ @JsonProperty(JSON_PROPERTY_RATEPAY_LAST_INSTALLMENT_AMOUNT) @@ -168,7 +175,6 @@ public AdditionalDataRatepay ratepayPaymentFirstday(String ratepayPaymentFirstda /** * Calendar day of the first payment. - * * @return ratepayPaymentFirstday Calendar day of the first payment. */ @JsonProperty(JSON_PROPERTY_RATEPAY_PAYMENT_FIRSTDAY) @@ -201,7 +207,6 @@ public AdditionalDataRatepay ratepaydataDeliveryDate(String ratepaydataDeliveryD /** * Date the merchant delivered the goods to the customer. - * * @return ratepaydataDeliveryDate Date the merchant delivered the goods to the customer. */ @JsonProperty(JSON_PROPERTY_RATEPAYDATA_DELIVERY_DATE) @@ -234,7 +239,6 @@ public AdditionalDataRatepay ratepaydataDueDate(String ratepaydataDueDate) { /** * Date by which the customer must settle the payment. - * * @return ratepaydataDueDate Date by which the customer must settle the payment. */ @JsonProperty(JSON_PROPERTY_RATEPAYDATA_DUE_DATE) @@ -255,11 +259,9 @@ public void setRatepaydataDueDate(String ratepaydataDueDate) { } /** - * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery - * date. + * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. * - * @param ratepaydataInvoiceDate Invoice date, defined by the merchant. If not included, the - * invoice date is set to the delivery date. + * @param ratepaydataInvoiceDate Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. * @return the current {@code AdditionalDataRatepay} instance, allowing for method chaining */ public AdditionalDataRatepay ratepaydataInvoiceDate(String ratepaydataInvoiceDate) { @@ -268,11 +270,8 @@ public AdditionalDataRatepay ratepaydataInvoiceDate(String ratepaydataInvoiceDat } /** - * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery - * date. - * - * @return ratepaydataInvoiceDate Invoice date, defined by the merchant. If not included, the - * invoice date is set to the delivery date. + * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. + * @return ratepaydataInvoiceDate Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. */ @JsonProperty(JSON_PROPERTY_RATEPAYDATA_INVOICE_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -281,11 +280,9 @@ public String getRatepaydataInvoiceDate() { } /** - * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery - * date. + * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. * - * @param ratepaydataInvoiceDate Invoice date, defined by the merchant. If not included, the - * invoice date is set to the delivery date. + * @param ratepaydataInvoiceDate Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. */ @JsonProperty(JSON_PROPERTY_RATEPAYDATA_INVOICE_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -296,8 +293,7 @@ public void setRatepaydataInvoiceDate(String ratepaydataInvoiceDate) { /** * Identification name or number for the invoice, defined by the merchant. * - * @param ratepaydataInvoiceId Identification name or number for the invoice, defined by the - * merchant. + * @param ratepaydataInvoiceId Identification name or number for the invoice, defined by the merchant. * @return the current {@code AdditionalDataRatepay} instance, allowing for method chaining */ public AdditionalDataRatepay ratepaydataInvoiceId(String ratepaydataInvoiceId) { @@ -307,9 +303,7 @@ public AdditionalDataRatepay ratepaydataInvoiceId(String ratepaydataInvoiceId) { /** * Identification name or number for the invoice, defined by the merchant. - * - * @return ratepaydataInvoiceId Identification name or number for the invoice, defined by the - * merchant. + * @return ratepaydataInvoiceId Identification name or number for the invoice, defined by the merchant. */ @JsonProperty(JSON_PROPERTY_RATEPAYDATA_INVOICE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -320,8 +314,7 @@ public String getRatepaydataInvoiceId() { /** * Identification name or number for the invoice, defined by the merchant. * - * @param ratepaydataInvoiceId Identification name or number for the invoice, defined by the - * merchant. + * @param ratepaydataInvoiceId Identification name or number for the invoice, defined by the merchant. */ @JsonProperty(JSON_PROPERTY_RATEPAYDATA_INVOICE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -329,7 +322,9 @@ public void setRatepaydataInvoiceId(String ratepaydataInvoiceId) { this.ratepaydataInvoiceId = ratepaydataInvoiceId; } - /** Return true if this AdditionalDataRatepay object is equal to o. */ + /** + * Return true if this AdditionalDataRatepay object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -339,64 +334,40 @@ public boolean equals(Object o) { return false; } AdditionalDataRatepay additionalDataRatepay = (AdditionalDataRatepay) o; - return Objects.equals( - this.ratepayInstallmentAmount, additionalDataRatepay.ratepayInstallmentAmount) - && Objects.equals(this.ratepayInterestRate, additionalDataRatepay.ratepayInterestRate) - && Objects.equals( - this.ratepayLastInstallmentAmount, additionalDataRatepay.ratepayLastInstallmentAmount) - && Objects.equals(this.ratepayPaymentFirstday, additionalDataRatepay.ratepayPaymentFirstday) - && Objects.equals( - this.ratepaydataDeliveryDate, additionalDataRatepay.ratepaydataDeliveryDate) - && Objects.equals(this.ratepaydataDueDate, additionalDataRatepay.ratepaydataDueDate) - && Objects.equals(this.ratepaydataInvoiceDate, additionalDataRatepay.ratepaydataInvoiceDate) - && Objects.equals(this.ratepaydataInvoiceId, additionalDataRatepay.ratepaydataInvoiceId); + return Objects.equals(this.ratepayInstallmentAmount, additionalDataRatepay.ratepayInstallmentAmount) && + Objects.equals(this.ratepayInterestRate, additionalDataRatepay.ratepayInterestRate) && + Objects.equals(this.ratepayLastInstallmentAmount, additionalDataRatepay.ratepayLastInstallmentAmount) && + Objects.equals(this.ratepayPaymentFirstday, additionalDataRatepay.ratepayPaymentFirstday) && + Objects.equals(this.ratepaydataDeliveryDate, additionalDataRatepay.ratepaydataDeliveryDate) && + Objects.equals(this.ratepaydataDueDate, additionalDataRatepay.ratepaydataDueDate) && + Objects.equals(this.ratepaydataInvoiceDate, additionalDataRatepay.ratepaydataInvoiceDate) && + Objects.equals(this.ratepaydataInvoiceId, additionalDataRatepay.ratepaydataInvoiceId); } @Override public int hashCode() { - return Objects.hash( - ratepayInstallmentAmount, - ratepayInterestRate, - ratepayLastInstallmentAmount, - ratepayPaymentFirstday, - ratepaydataDeliveryDate, - ratepaydataDueDate, - ratepaydataInvoiceDate, - ratepaydataInvoiceId); + return Objects.hash(ratepayInstallmentAmount, ratepayInterestRate, ratepayLastInstallmentAmount, ratepayPaymentFirstday, ratepaydataDeliveryDate, ratepaydataDueDate, ratepaydataInvoiceDate, ratepaydataInvoiceId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataRatepay {\n"); - sb.append(" ratepayInstallmentAmount: ") - .append(toIndentedString(ratepayInstallmentAmount)) - .append("\n"); - sb.append(" ratepayInterestRate: ") - .append(toIndentedString(ratepayInterestRate)) - .append("\n"); - sb.append(" ratepayLastInstallmentAmount: ") - .append(toIndentedString(ratepayLastInstallmentAmount)) - .append("\n"); - sb.append(" ratepayPaymentFirstday: ") - .append(toIndentedString(ratepayPaymentFirstday)) - .append("\n"); - sb.append(" ratepaydataDeliveryDate: ") - .append(toIndentedString(ratepaydataDeliveryDate)) - .append("\n"); + sb.append(" ratepayInstallmentAmount: ").append(toIndentedString(ratepayInstallmentAmount)).append("\n"); + sb.append(" ratepayInterestRate: ").append(toIndentedString(ratepayInterestRate)).append("\n"); + sb.append(" ratepayLastInstallmentAmount: ").append(toIndentedString(ratepayLastInstallmentAmount)).append("\n"); + sb.append(" ratepayPaymentFirstday: ").append(toIndentedString(ratepayPaymentFirstday)).append("\n"); + sb.append(" ratepaydataDeliveryDate: ").append(toIndentedString(ratepaydataDeliveryDate)).append("\n"); sb.append(" ratepaydataDueDate: ").append(toIndentedString(ratepaydataDueDate)).append("\n"); - sb.append(" ratepaydataInvoiceDate: ") - .append(toIndentedString(ratepaydataInvoiceDate)) - .append("\n"); - sb.append(" ratepaydataInvoiceId: ") - .append(toIndentedString(ratepaydataInvoiceId)) - .append("\n"); + sb.append(" ratepaydataInvoiceDate: ").append(toIndentedString(ratepaydataInvoiceDate)).append("\n"); + sb.append(" ratepaydataInvoiceId: ").append(toIndentedString(ratepaydataInvoiceId)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -405,23 +376,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalDataRatepay given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataRatepay - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataRatepay + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataRatepay */ public static AdditionalDataRatepay fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataRatepay.class); } - - /** - * Convert an instance of AdditionalDataRatepay to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalDataRatepay to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataRetry.java b/src/main/java/com/adyen/model/checkout/AdditionalDataRetry.java index 39af136d2..90e4a5b77 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataRetry.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataRetry.java @@ -2,27 +2,37 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AdditionalDataRetry */ + +/** + * AdditionalDataRetry + */ @JsonPropertyOrder({ AdditionalDataRetry.JSON_PROPERTY_RETRY_CHAIN_ATTEMPT_NUMBER, AdditionalDataRetry.JSON_PROPERTY_RETRY_ORDER_ATTEMPT_NUMBER, AdditionalDataRetry.JSON_PROPERTY_RETRY_SKIP_RETRY }) + public class AdditionalDataRetry { public static final String JSON_PROPERTY_RETRY_CHAIN_ATTEMPT_NUMBER = "retry.chainAttemptNumber"; private String retryChainAttemptNumber; @@ -33,23 +43,13 @@ public class AdditionalDataRetry { public static final String JSON_PROPERTY_RETRY_SKIP_RETRY = "retry.skipRetry"; private String retrySkipRetry; - public AdditionalDataRetry() {} + public AdditionalDataRetry() { + } /** - * The number of times the transaction (not order) has been retried between different payment - * service providers. For instance, the `chainAttemptNumber` set to 2 means that this - * transaction has been recently tried on another provider before being sent to Adyen. > If you - * submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and - * `retry.skipRetry` values, we also recommend you provide the - * `merchantOrderReference` to facilitate linking payment attempts together. + * The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. * - * @param retryChainAttemptNumber The number of times the transaction (not order) has been retried - * between different payment service providers. For instance, the - * `chainAttemptNumber` set to 2 means that this transaction has been recently tried - * on another provider before being sent to Adyen. > If you submit - * `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and - * `retry.skipRetry` values, we also recommend you provide the - * `merchantOrderReference` to facilitate linking payment attempts together. + * @param retryChainAttemptNumber The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. * @return the current {@code AdditionalDataRetry} instance, allowing for method chaining */ public AdditionalDataRetry retryChainAttemptNumber(String retryChainAttemptNumber) { @@ -58,20 +58,8 @@ public AdditionalDataRetry retryChainAttemptNumber(String retryChainAttemptNumbe } /** - * The number of times the transaction (not order) has been retried between different payment - * service providers. For instance, the `chainAttemptNumber` set to 2 means that this - * transaction has been recently tried on another provider before being sent to Adyen. > If you - * submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and - * `retry.skipRetry` values, we also recommend you provide the - * `merchantOrderReference` to facilitate linking payment attempts together. - * - * @return retryChainAttemptNumber The number of times the transaction (not order) has been - * retried between different payment service providers. For instance, the - * `chainAttemptNumber` set to 2 means that this transaction has been recently tried - * on another provider before being sent to Adyen. > If you submit - * `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and - * `retry.skipRetry` values, we also recommend you provide the - * `merchantOrderReference` to facilitate linking payment attempts together. + * The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * @return retryChainAttemptNumber The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. */ @JsonProperty(JSON_PROPERTY_RETRY_CHAIN_ATTEMPT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,20 +68,9 @@ public String getRetryChainAttemptNumber() { } /** - * The number of times the transaction (not order) has been retried between different payment - * service providers. For instance, the `chainAttemptNumber` set to 2 means that this - * transaction has been recently tried on another provider before being sent to Adyen. > If you - * submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and - * `retry.skipRetry` values, we also recommend you provide the - * `merchantOrderReference` to facilitate linking payment attempts together. + * The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. * - * @param retryChainAttemptNumber The number of times the transaction (not order) has been retried - * between different payment service providers. For instance, the - * `chainAttemptNumber` set to 2 means that this transaction has been recently tried - * on another provider before being sent to Adyen. > If you submit - * `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and - * `retry.skipRetry` values, we also recommend you provide the - * `merchantOrderReference` to facilitate linking payment attempts together. + * @param retryChainAttemptNumber The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. */ @JsonProperty(JSON_PROPERTY_RETRY_CHAIN_ATTEMPT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,20 +79,9 @@ public void setRetryChainAttemptNumber(String retryChainAttemptNumber) { } /** - * The index of the attempt to bill a particular order, which is identified by the - * `merchantOrderReference` field. For example, if a recurring transaction fails and is - * retried one day later, then the order number for these attempts would be 1 and 2, respectively. - * > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, - * and `retry.skipRetry` values, we also recommend you provide the - * `merchantOrderReference` to facilitate linking payment attempts together. + * The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. * - * @param retryOrderAttemptNumber The index of the attempt to bill a particular order, which is - * identified by the `merchantOrderReference` field. For example, if a recurring - * transaction fails and is retried one day later, then the order number for these attempts - * would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, - * `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also - * recommend you provide the `merchantOrderReference` to facilitate linking payment - * attempts together. + * @param retryOrderAttemptNumber The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. * @return the current {@code AdditionalDataRetry} instance, allowing for method chaining */ public AdditionalDataRetry retryOrderAttemptNumber(String retryOrderAttemptNumber) { @@ -124,20 +90,8 @@ public AdditionalDataRetry retryOrderAttemptNumber(String retryOrderAttemptNumbe } /** - * The index of the attempt to bill a particular order, which is identified by the - * `merchantOrderReference` field. For example, if a recurring transaction fails and is - * retried one day later, then the order number for these attempts would be 1 and 2, respectively. - * > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, - * and `retry.skipRetry` values, we also recommend you provide the - * `merchantOrderReference` to facilitate linking payment attempts together. - * - * @return retryOrderAttemptNumber The index of the attempt to bill a particular order, which is - * identified by the `merchantOrderReference` field. For example, if a recurring - * transaction fails and is retried one day later, then the order number for these attempts - * would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, - * `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also - * recommend you provide the `merchantOrderReference` to facilitate linking payment - * attempts together. + * The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * @return retryOrderAttemptNumber The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. */ @JsonProperty(JSON_PROPERTY_RETRY_ORDER_ATTEMPT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,20 +100,9 @@ public String getRetryOrderAttemptNumber() { } /** - * The index of the attempt to bill a particular order, which is identified by the - * `merchantOrderReference` field. For example, if a recurring transaction fails and is - * retried one day later, then the order number for these attempts would be 1 and 2, respectively. - * > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, - * and `retry.skipRetry` values, we also recommend you provide the - * `merchantOrderReference` to facilitate linking payment attempts together. + * The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. * - * @param retryOrderAttemptNumber The index of the attempt to bill a particular order, which is - * identified by the `merchantOrderReference` field. For example, if a recurring - * transaction fails and is retried one day later, then the order number for these attempts - * would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, - * `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also - * recommend you provide the `merchantOrderReference` to facilitate linking payment - * attempts together. + * @param retryOrderAttemptNumber The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. */ @JsonProperty(JSON_PROPERTY_RETRY_ORDER_ATTEMPT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,16 +111,9 @@ public void setRetryOrderAttemptNumber(String retryOrderAttemptNumber) { } /** - * The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. - * > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, - * and `retry.skipRetry` values, we also recommend you provide the - * `merchantOrderReference` to facilitate linking payment attempts together. + * The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. * - * @param retrySkipRetry The Boolean value indicating whether Adyen should skip or retry this - * transaction, if possible. > If you submit `retry.chainAttemptNumber`, - * `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also - * recommend you provide the `merchantOrderReference` to facilitate linking payment - * attempts together. + * @param retrySkipRetry The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. * @return the current {@code AdditionalDataRetry} instance, allowing for method chaining */ public AdditionalDataRetry retrySkipRetry(String retrySkipRetry) { @@ -186,16 +122,8 @@ public AdditionalDataRetry retrySkipRetry(String retrySkipRetry) { } /** - * The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. - * > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, - * and `retry.skipRetry` values, we also recommend you provide the - * `merchantOrderReference` to facilitate linking payment attempts together. - * - * @return retrySkipRetry The Boolean value indicating whether Adyen should skip or retry this - * transaction, if possible. > If you submit `retry.chainAttemptNumber`, - * `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also - * recommend you provide the `merchantOrderReference` to facilitate linking payment - * attempts together. + * The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * @return retrySkipRetry The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. */ @JsonProperty(JSON_PROPERTY_RETRY_SKIP_RETRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,16 +132,9 @@ public String getRetrySkipRetry() { } /** - * The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. - * > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, - * and `retry.skipRetry` values, we also recommend you provide the - * `merchantOrderReference` to facilitate linking payment attempts together. + * The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. * - * @param retrySkipRetry The Boolean value indicating whether Adyen should skip or retry this - * transaction, if possible. > If you submit `retry.chainAttemptNumber`, - * `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also - * recommend you provide the `merchantOrderReference` to facilitate linking payment - * attempts together. + * @param retrySkipRetry The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. */ @JsonProperty(JSON_PROPERTY_RETRY_SKIP_RETRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,7 +142,9 @@ public void setRetrySkipRetry(String retrySkipRetry) { this.retrySkipRetry = retrySkipRetry; } - /** Return true if this AdditionalDataRetry object is equal to o. */ + /** + * Return true if this AdditionalDataRetry object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -231,9 +154,9 @@ public boolean equals(Object o) { return false; } AdditionalDataRetry additionalDataRetry = (AdditionalDataRetry) o; - return Objects.equals(this.retryChainAttemptNumber, additionalDataRetry.retryChainAttemptNumber) - && Objects.equals(this.retryOrderAttemptNumber, additionalDataRetry.retryOrderAttemptNumber) - && Objects.equals(this.retrySkipRetry, additionalDataRetry.retrySkipRetry); + return Objects.equals(this.retryChainAttemptNumber, additionalDataRetry.retryChainAttemptNumber) && + Objects.equals(this.retryOrderAttemptNumber, additionalDataRetry.retryOrderAttemptNumber) && + Objects.equals(this.retrySkipRetry, additionalDataRetry.retrySkipRetry); } @Override @@ -245,19 +168,16 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataRetry {\n"); - sb.append(" retryChainAttemptNumber: ") - .append(toIndentedString(retryChainAttemptNumber)) - .append("\n"); - sb.append(" retryOrderAttemptNumber: ") - .append(toIndentedString(retryOrderAttemptNumber)) - .append("\n"); + sb.append(" retryChainAttemptNumber: ").append(toIndentedString(retryChainAttemptNumber)).append("\n"); + sb.append(" retryOrderAttemptNumber: ").append(toIndentedString(retryOrderAttemptNumber)).append("\n"); sb.append(" retrySkipRetry: ").append(toIndentedString(retrySkipRetry)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -266,23 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalDataRetry given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataRetry - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataRetry + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataRetry */ public static AdditionalDataRetry fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataRetry.class); } - - /** - * Convert an instance of AdditionalDataRetry to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalDataRetry to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataRisk.java b/src/main/java/com/adyen/model/checkout/AdditionalDataRisk.java index f8f352421..8d83b5387 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataRisk.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataRisk.java @@ -2,22 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AdditionalDataRisk */ + +/** + * AdditionalDataRisk + */ @JsonPropertyOrder({ AdditionalDataRisk.JSON_PROPERTY_RISKDATA_CUSTOM_FIELD_NAME, AdditionalDataRisk.JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_AMOUNT_PER_ITEM, @@ -35,110 +44,84 @@ AdditionalDataRisk.JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_UPC, AdditionalDataRisk.JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_CODE, AdditionalDataRisk.JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_AMOUNT, - AdditionalDataRisk - .JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_CURRENCY, - AdditionalDataRisk - .JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_PERCENTAGE, + AdditionalDataRisk.JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_CURRENCY, + AdditionalDataRisk.JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_PERCENTAGE, AdditionalDataRisk.JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_NAME, AdditionalDataRisk.JSON_PROPERTY_RISKDATA_RISK_PROFILE_REFERENCE, AdditionalDataRisk.JSON_PROPERTY_RISKDATA_SKIP_RISK }) + public class AdditionalDataRisk { - public static final String JSON_PROPERTY_RISKDATA_CUSTOM_FIELD_NAME = - "riskdata.[customFieldName]"; + public static final String JSON_PROPERTY_RISKDATA_CUSTOM_FIELD_NAME = "riskdata.[customFieldName]"; private String riskdataCustomFieldName; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_AMOUNT_PER_ITEM = - "riskdata.basket.item[itemNr].amountPerItem"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_AMOUNT_PER_ITEM = "riskdata.basket.item[itemNr].amountPerItem"; private String riskdataBasketItemItemNrAmountPerItem; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_BRAND = - "riskdata.basket.item[itemNr].brand"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_BRAND = "riskdata.basket.item[itemNr].brand"; private String riskdataBasketItemItemNrBrand; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_CATEGORY = - "riskdata.basket.item[itemNr].category"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_CATEGORY = "riskdata.basket.item[itemNr].category"; private String riskdataBasketItemItemNrCategory; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_COLOR = - "riskdata.basket.item[itemNr].color"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_COLOR = "riskdata.basket.item[itemNr].color"; private String riskdataBasketItemItemNrColor; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_CURRENCY = - "riskdata.basket.item[itemNr].currency"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_CURRENCY = "riskdata.basket.item[itemNr].currency"; private String riskdataBasketItemItemNrCurrency; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_ITEM_I_D = - "riskdata.basket.item[itemNr].itemID"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_ITEM_I_D = "riskdata.basket.item[itemNr].itemID"; private String riskdataBasketItemItemNrItemID; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_MANUFACTURER = - "riskdata.basket.item[itemNr].manufacturer"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_MANUFACTURER = "riskdata.basket.item[itemNr].manufacturer"; private String riskdataBasketItemItemNrManufacturer; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_PRODUCT_TITLE = - "riskdata.basket.item[itemNr].productTitle"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_PRODUCT_TITLE = "riskdata.basket.item[itemNr].productTitle"; private String riskdataBasketItemItemNrProductTitle; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_QUANTITY = - "riskdata.basket.item[itemNr].quantity"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_QUANTITY = "riskdata.basket.item[itemNr].quantity"; private String riskdataBasketItemItemNrQuantity; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_RECEIVER_EMAIL = - "riskdata.basket.item[itemNr].receiverEmail"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_RECEIVER_EMAIL = "riskdata.basket.item[itemNr].receiverEmail"; private String riskdataBasketItemItemNrReceiverEmail; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_SIZE = - "riskdata.basket.item[itemNr].size"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_SIZE = "riskdata.basket.item[itemNr].size"; private String riskdataBasketItemItemNrSize; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_SKU = - "riskdata.basket.item[itemNr].sku"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_SKU = "riskdata.basket.item[itemNr].sku"; private String riskdataBasketItemItemNrSku; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_UPC = - "riskdata.basket.item[itemNr].upc"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_UPC = "riskdata.basket.item[itemNr].upc"; private String riskdataBasketItemItemNrUpc; - public static final String JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_CODE = - "riskdata.promotions.promotion[itemNr].promotionCode"; + public static final String JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_CODE = "riskdata.promotions.promotion[itemNr].promotionCode"; private String riskdataPromotionsPromotionItemNrPromotionCode; - public static final String - JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_AMOUNT = - "riskdata.promotions.promotion[itemNr].promotionDiscountAmount"; + public static final String JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_AMOUNT = "riskdata.promotions.promotion[itemNr].promotionDiscountAmount"; private String riskdataPromotionsPromotionItemNrPromotionDiscountAmount; - public static final String - JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_CURRENCY = - "riskdata.promotions.promotion[itemNr].promotionDiscountCurrency"; + public static final String JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_CURRENCY = "riskdata.promotions.promotion[itemNr].promotionDiscountCurrency"; private String riskdataPromotionsPromotionItemNrPromotionDiscountCurrency; - public static final String - JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_PERCENTAGE = - "riskdata.promotions.promotion[itemNr].promotionDiscountPercentage"; + public static final String JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_PERCENTAGE = "riskdata.promotions.promotion[itemNr].promotionDiscountPercentage"; private String riskdataPromotionsPromotionItemNrPromotionDiscountPercentage; - public static final String JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_NAME = - "riskdata.promotions.promotion[itemNr].promotionName"; + public static final String JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_NAME = "riskdata.promotions.promotion[itemNr].promotionName"; private String riskdataPromotionsPromotionItemNrPromotionName; - public static final String JSON_PROPERTY_RISKDATA_RISK_PROFILE_REFERENCE = - "riskdata.riskProfileReference"; + public static final String JSON_PROPERTY_RISKDATA_RISK_PROFILE_REFERENCE = "riskdata.riskProfileReference"; private String riskdataRiskProfileReference; public static final String JSON_PROPERTY_RISKDATA_SKIP_RISK = "riskdata.skipRisk"; private String riskdataSkipRisk; - public AdditionalDataRisk() {} + public AdditionalDataRisk() { + } /** - * The data for your custom risk field. For more information, refer to [Create custom risk - * fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). + * The data for your custom risk field. For more information, refer to [Create custom risk fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). * - * @param riskdataCustomFieldName The data for your custom risk field. For more information, refer - * to [Create custom risk - * fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). + * @param riskdataCustomFieldName The data for your custom risk field. For more information, refer to [Create custom risk fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ public AdditionalDataRisk riskdataCustomFieldName(String riskdataCustomFieldName) { @@ -147,12 +130,8 @@ public AdditionalDataRisk riskdataCustomFieldName(String riskdataCustomFieldName } /** - * The data for your custom risk field. For more information, refer to [Create custom risk - * fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). - * - * @return riskdataCustomFieldName The data for your custom risk field. For more information, - * refer to [Create custom risk - * fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). + * The data for your custom risk field. For more information, refer to [Create custom risk fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). + * @return riskdataCustomFieldName The data for your custom risk field. For more information, refer to [Create custom risk fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). */ @JsonProperty(JSON_PROPERTY_RISKDATA_CUSTOM_FIELD_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,12 +140,9 @@ public String getRiskdataCustomFieldName() { } /** - * The data for your custom risk field. For more information, refer to [Create custom risk - * fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). + * The data for your custom risk field. For more information, refer to [Create custom risk fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). * - * @param riskdataCustomFieldName The data for your custom risk field. For more information, refer - * to [Create custom risk - * fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). + * @param riskdataCustomFieldName The data for your custom risk field. For more information, refer to [Create custom risk fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). */ @JsonProperty(JSON_PROPERTY_RISKDATA_CUSTOM_FIELD_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -175,25 +151,19 @@ public void setRiskdataCustomFieldName(String riskdataCustomFieldName) { } /** - * The price of item in the basket, represented in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * @param riskdataBasketItemItemNrAmountPerItem The price of item in the basket, represented in - * [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @param riskdataBasketItemItemNrAmountPerItem The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataBasketItemItemNrAmountPerItem( - String riskdataBasketItemItemNrAmountPerItem) { + public AdditionalDataRisk riskdataBasketItemItemNrAmountPerItem(String riskdataBasketItemItemNrAmountPerItem) { this.riskdataBasketItemItemNrAmountPerItem = riskdataBasketItemItemNrAmountPerItem; return this; } /** - * The price of item in the basket, represented in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). - * - * @return riskdataBasketItemItemNrAmountPerItem The price of item in the basket, represented in - * [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @return riskdataBasketItemItemNrAmountPerItem The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_AMOUNT_PER_ITEM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -202,16 +172,13 @@ public String getRiskdataBasketItemItemNrAmountPerItem() { } /** - * The price of item in the basket, represented in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * @param riskdataBasketItemItemNrAmountPerItem The price of item in the basket, represented in - * [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @param riskdataBasketItemItemNrAmountPerItem The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_AMOUNT_PER_ITEM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRiskdataBasketItemItemNrAmountPerItem( - String riskdataBasketItemItemNrAmountPerItem) { + public void setRiskdataBasketItemItemNrAmountPerItem(String riskdataBasketItemItemNrAmountPerItem) { this.riskdataBasketItemItemNrAmountPerItem = riskdataBasketItemItemNrAmountPerItem; } @@ -228,7 +195,6 @@ public AdditionalDataRisk riskdataBasketItemItemNrBrand(String riskdataBasketIte /** * Brand of the item. - * * @return riskdataBasketItemItemNrBrand Brand of the item. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_BRAND) @@ -254,15 +220,13 @@ public void setRiskdataBasketItemItemNrBrand(String riskdataBasketItemItemNrBran * @param riskdataBasketItemItemNrCategory Category of the item. * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataBasketItemItemNrCategory( - String riskdataBasketItemItemNrCategory) { + public AdditionalDataRisk riskdataBasketItemItemNrCategory(String riskdataBasketItemItemNrCategory) { this.riskdataBasketItemItemNrCategory = riskdataBasketItemItemNrCategory; return this; } /** * Category of the item. - * * @return riskdataBasketItemItemNrCategory Category of the item. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_CATEGORY) @@ -295,7 +259,6 @@ public AdditionalDataRisk riskdataBasketItemItemNrColor(String riskdataBasketIte /** * Color of the item. - * * @return riskdataBasketItemItemNrColor Color of the item. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_COLOR) @@ -318,21 +281,17 @@ public void setRiskdataBasketItemItemNrColor(String riskdataBasketItemItemNrColo /** * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). * - * @param riskdataBasketItemItemNrCurrency The three-character [ISO currency - * code](https://en.wikipedia.org/wiki/ISO_4217). + * @param riskdataBasketItemItemNrCurrency The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataBasketItemItemNrCurrency( - String riskdataBasketItemItemNrCurrency) { + public AdditionalDataRisk riskdataBasketItemItemNrCurrency(String riskdataBasketItemItemNrCurrency) { this.riskdataBasketItemItemNrCurrency = riskdataBasketItemItemNrCurrency; return this; } /** * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). - * - * @return riskdataBasketItemItemNrCurrency The three-character [ISO currency - * code](https://en.wikipedia.org/wiki/ISO_4217). + * @return riskdataBasketItemItemNrCurrency The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -343,8 +302,7 @@ public String getRiskdataBasketItemItemNrCurrency() { /** * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). * - * @param riskdataBasketItemItemNrCurrency The three-character [ISO currency - * code](https://en.wikipedia.org/wiki/ISO_4217). + * @param riskdataBasketItemItemNrCurrency The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -365,7 +323,6 @@ public AdditionalDataRisk riskdataBasketItemItemNrItemID(String riskdataBasketIt /** * ID of the item. - * * @return riskdataBasketItemItemNrItemID ID of the item. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_ITEM_I_D) @@ -391,15 +348,13 @@ public void setRiskdataBasketItemItemNrItemID(String riskdataBasketItemItemNrIte * @param riskdataBasketItemItemNrManufacturer Manufacturer of the item. * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataBasketItemItemNrManufacturer( - String riskdataBasketItemItemNrManufacturer) { + public AdditionalDataRisk riskdataBasketItemItemNrManufacturer(String riskdataBasketItemItemNrManufacturer) { this.riskdataBasketItemItemNrManufacturer = riskdataBasketItemItemNrManufacturer; return this; } /** * Manufacturer of the item. - * * @return riskdataBasketItemItemNrManufacturer Manufacturer of the item. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_MANUFACTURER) @@ -422,21 +377,17 @@ public void setRiskdataBasketItemItemNrManufacturer(String riskdataBasketItemIte /** * A text description of the product the invoice line refers to. * - * @param riskdataBasketItemItemNrProductTitle A text description of the product the invoice line - * refers to. + * @param riskdataBasketItemItemNrProductTitle A text description of the product the invoice line refers to. * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataBasketItemItemNrProductTitle( - String riskdataBasketItemItemNrProductTitle) { + public AdditionalDataRisk riskdataBasketItemItemNrProductTitle(String riskdataBasketItemItemNrProductTitle) { this.riskdataBasketItemItemNrProductTitle = riskdataBasketItemItemNrProductTitle; return this; } /** * A text description of the product the invoice line refers to. - * - * @return riskdataBasketItemItemNrProductTitle A text description of the product the invoice line - * refers to. + * @return riskdataBasketItemItemNrProductTitle A text description of the product the invoice line refers to. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_PRODUCT_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -447,8 +398,7 @@ public String getRiskdataBasketItemItemNrProductTitle() { /** * A text description of the product the invoice line refers to. * - * @param riskdataBasketItemItemNrProductTitle A text description of the product the invoice line - * refers to. + * @param riskdataBasketItemItemNrProductTitle A text description of the product the invoice line refers to. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_PRODUCT_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -462,15 +412,13 @@ public void setRiskdataBasketItemItemNrProductTitle(String riskdataBasketItemIte * @param riskdataBasketItemItemNrQuantity Quantity of the item purchased. * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataBasketItemItemNrQuantity( - String riskdataBasketItemItemNrQuantity) { + public AdditionalDataRisk riskdataBasketItemItemNrQuantity(String riskdataBasketItemItemNrQuantity) { this.riskdataBasketItemItemNrQuantity = riskdataBasketItemItemNrQuantity; return this; } /** * Quantity of the item purchased. - * * @return riskdataBasketItemItemNrQuantity Quantity of the item purchased. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_QUANTITY) @@ -493,21 +441,17 @@ public void setRiskdataBasketItemItemNrQuantity(String riskdataBasketItemItemNrQ /** * Email associated with the given product in the basket (usually in electronic gift cards). * - * @param riskdataBasketItemItemNrReceiverEmail Email associated with the given product in the - * basket (usually in electronic gift cards). + * @param riskdataBasketItemItemNrReceiverEmail Email associated with the given product in the basket (usually in electronic gift cards). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataBasketItemItemNrReceiverEmail( - String riskdataBasketItemItemNrReceiverEmail) { + public AdditionalDataRisk riskdataBasketItemItemNrReceiverEmail(String riskdataBasketItemItemNrReceiverEmail) { this.riskdataBasketItemItemNrReceiverEmail = riskdataBasketItemItemNrReceiverEmail; return this; } /** * Email associated with the given product in the basket (usually in electronic gift cards). - * - * @return riskdataBasketItemItemNrReceiverEmail Email associated with the given product in the - * basket (usually in electronic gift cards). + * @return riskdataBasketItemItemNrReceiverEmail Email associated with the given product in the basket (usually in electronic gift cards). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_RECEIVER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -518,13 +462,11 @@ public String getRiskdataBasketItemItemNrReceiverEmail() { /** * Email associated with the given product in the basket (usually in electronic gift cards). * - * @param riskdataBasketItemItemNrReceiverEmail Email associated with the given product in the - * basket (usually in electronic gift cards). + * @param riskdataBasketItemItemNrReceiverEmail Email associated with the given product in the basket (usually in electronic gift cards). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_RECEIVER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRiskdataBasketItemItemNrReceiverEmail( - String riskdataBasketItemItemNrReceiverEmail) { + public void setRiskdataBasketItemItemNrReceiverEmail(String riskdataBasketItemItemNrReceiverEmail) { this.riskdataBasketItemItemNrReceiverEmail = riskdataBasketItemItemNrReceiverEmail; } @@ -541,7 +483,6 @@ public AdditionalDataRisk riskdataBasketItemItemNrSize(String riskdataBasketItem /** * Size of the item. - * * @return riskdataBasketItemItemNrSize Size of the item. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_SIZE) @@ -564,8 +505,7 @@ public void setRiskdataBasketItemItemNrSize(String riskdataBasketItemItemNrSize) /** * [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). * - * @param riskdataBasketItemItemNrSku [Stock keeping - * unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). + * @param riskdataBasketItemItemNrSku [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ public AdditionalDataRisk riskdataBasketItemItemNrSku(String riskdataBasketItemItemNrSku) { @@ -575,9 +515,7 @@ public AdditionalDataRisk riskdataBasketItemItemNrSku(String riskdataBasketItemI /** * [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). - * - * @return riskdataBasketItemItemNrSku [Stock keeping - * unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). + * @return riskdataBasketItemItemNrSku [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_SKU) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -588,8 +526,7 @@ public String getRiskdataBasketItemItemNrSku() { /** * [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). * - * @param riskdataBasketItemItemNrSku [Stock keeping - * unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). + * @param riskdataBasketItemItemNrSku [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_SKU) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -600,8 +537,7 @@ public void setRiskdataBasketItemItemNrSku(String riskdataBasketItemItemNrSku) { /** * [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). * - * @param riskdataBasketItemItemNrUpc [Universal Product - * Code](https://en.wikipedia.org/wiki/Universal_Product_Code). + * @param riskdataBasketItemItemNrUpc [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ public AdditionalDataRisk riskdataBasketItemItemNrUpc(String riskdataBasketItemItemNrUpc) { @@ -611,9 +547,7 @@ public AdditionalDataRisk riskdataBasketItemItemNrUpc(String riskdataBasketItemI /** * [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). - * - * @return riskdataBasketItemItemNrUpc [Universal Product - * Code](https://en.wikipedia.org/wiki/Universal_Product_Code). + * @return riskdataBasketItemItemNrUpc [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_UPC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -624,8 +558,7 @@ public String getRiskdataBasketItemItemNrUpc() { /** * [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). * - * @param riskdataBasketItemItemNrUpc [Universal Product - * Code](https://en.wikipedia.org/wiki/Universal_Product_Code). + * @param riskdataBasketItemItemNrUpc [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_UPC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -639,16 +572,13 @@ public void setRiskdataBasketItemItemNrUpc(String riskdataBasketItemItemNrUpc) { * @param riskdataPromotionsPromotionItemNrPromotionCode Code of the promotion. * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionCode( - String riskdataPromotionsPromotionItemNrPromotionCode) { - this.riskdataPromotionsPromotionItemNrPromotionCode = - riskdataPromotionsPromotionItemNrPromotionCode; + public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionCode(String riskdataPromotionsPromotionItemNrPromotionCode) { + this.riskdataPromotionsPromotionItemNrPromotionCode = riskdataPromotionsPromotionItemNrPromotionCode; return this; } /** * Code of the promotion. - * * @return riskdataPromotionsPromotionItemNrPromotionCode Code of the promotion. */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_CODE) @@ -664,35 +594,24 @@ public String getRiskdataPromotionsPromotionItemNrPromotionCode() { */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRiskdataPromotionsPromotionItemNrPromotionCode( - String riskdataPromotionsPromotionItemNrPromotionCode) { - this.riskdataPromotionsPromotionItemNrPromotionCode = - riskdataPromotionsPromotionItemNrPromotionCode; + public void setRiskdataPromotionsPromotionItemNrPromotionCode(String riskdataPromotionsPromotionItemNrPromotionCode) { + this.riskdataPromotionsPromotionItemNrPromotionCode = riskdataPromotionsPromotionItemNrPromotionCode; } /** - * The discount amount of the promotion, represented in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * @param riskdataPromotionsPromotionItemNrPromotionDiscountAmount The discount amount of the - * promotion, represented in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * @param riskdataPromotionsPromotionItemNrPromotionDiscountAmount The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionDiscountAmount( - String riskdataPromotionsPromotionItemNrPromotionDiscountAmount) { - this.riskdataPromotionsPromotionItemNrPromotionDiscountAmount = - riskdataPromotionsPromotionItemNrPromotionDiscountAmount; + public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionDiscountAmount(String riskdataPromotionsPromotionItemNrPromotionDiscountAmount) { + this.riskdataPromotionsPromotionItemNrPromotionDiscountAmount = riskdataPromotionsPromotionItemNrPromotionDiscountAmount; return this; } /** - * The discount amount of the promotion, represented in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). - * - * @return riskdataPromotionsPromotionItemNrPromotionDiscountAmount The discount amount of the - * promotion, represented in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @return riskdataPromotionsPromotionItemNrPromotionDiscountAmount The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -701,40 +620,30 @@ public String getRiskdataPromotionsPromotionItemNrPromotionDiscountAmount() { } /** - * The discount amount of the promotion, represented in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * @param riskdataPromotionsPromotionItemNrPromotionDiscountAmount The discount amount of the - * promotion, represented in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * @param riskdataPromotionsPromotionItemNrPromotionDiscountAmount The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRiskdataPromotionsPromotionItemNrPromotionDiscountAmount( - String riskdataPromotionsPromotionItemNrPromotionDiscountAmount) { - this.riskdataPromotionsPromotionItemNrPromotionDiscountAmount = - riskdataPromotionsPromotionItemNrPromotionDiscountAmount; + public void setRiskdataPromotionsPromotionItemNrPromotionDiscountAmount(String riskdataPromotionsPromotionItemNrPromotionDiscountAmount) { + this.riskdataPromotionsPromotionItemNrPromotionDiscountAmount = riskdataPromotionsPromotionItemNrPromotionDiscountAmount; } /** * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). * - * @param riskdataPromotionsPromotionItemNrPromotionDiscountCurrency The three-character [ISO - * currency code](https://en.wikipedia.org/wiki/ISO_4217). + * @param riskdataPromotionsPromotionItemNrPromotionDiscountCurrency The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionDiscountCurrency( - String riskdataPromotionsPromotionItemNrPromotionDiscountCurrency) { - this.riskdataPromotionsPromotionItemNrPromotionDiscountCurrency = - riskdataPromotionsPromotionItemNrPromotionDiscountCurrency; + public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionDiscountCurrency(String riskdataPromotionsPromotionItemNrPromotionDiscountCurrency) { + this.riskdataPromotionsPromotionItemNrPromotionDiscountCurrency = riskdataPromotionsPromotionItemNrPromotionDiscountCurrency; return this; } /** * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). - * - * @return riskdataPromotionsPromotionItemNrPromotionDiscountCurrency The three-character [ISO - * currency code](https://en.wikipedia.org/wiki/ISO_4217). + * @return riskdataPromotionsPromotionItemNrPromotionDiscountCurrency The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -745,44 +654,28 @@ public String getRiskdataPromotionsPromotionItemNrPromotionDiscountCurrency() { /** * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). * - * @param riskdataPromotionsPromotionItemNrPromotionDiscountCurrency The three-character [ISO - * currency code](https://en.wikipedia.org/wiki/ISO_4217). + * @param riskdataPromotionsPromotionItemNrPromotionDiscountCurrency The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRiskdataPromotionsPromotionItemNrPromotionDiscountCurrency( - String riskdataPromotionsPromotionItemNrPromotionDiscountCurrency) { - this.riskdataPromotionsPromotionItemNrPromotionDiscountCurrency = - riskdataPromotionsPromotionItemNrPromotionDiscountCurrency; + public void setRiskdataPromotionsPromotionItemNrPromotionDiscountCurrency(String riskdataPromotionsPromotionItemNrPromotionDiscountCurrency) { + this.riskdataPromotionsPromotionItemNrPromotionDiscountCurrency = riskdataPromotionsPromotionItemNrPromotionDiscountCurrency; } /** - * Promotion's percentage discount. It is represented in percentage value and there is no need - * to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field - * should be 30. + * Promotion's percentage discount. It is represented in percentage value and there is no need to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field should be 30. * - * @param riskdataPromotionsPromotionItemNrPromotionDiscountPercentage Promotion's percentage - * discount. It is represented in percentage value and there is no need to include the - * '%' sign. e.g. for a promotion discount of 30%, the value of the field should be - * 30. + * @param riskdataPromotionsPromotionItemNrPromotionDiscountPercentage Promotion's percentage discount. It is represented in percentage value and there is no need to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field should be 30. * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionDiscountPercentage( - String riskdataPromotionsPromotionItemNrPromotionDiscountPercentage) { - this.riskdataPromotionsPromotionItemNrPromotionDiscountPercentage = - riskdataPromotionsPromotionItemNrPromotionDiscountPercentage; + public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionDiscountPercentage(String riskdataPromotionsPromotionItemNrPromotionDiscountPercentage) { + this.riskdataPromotionsPromotionItemNrPromotionDiscountPercentage = riskdataPromotionsPromotionItemNrPromotionDiscountPercentage; return this; } /** - * Promotion's percentage discount. It is represented in percentage value and there is no need - * to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field - * should be 30. - * - * @return riskdataPromotionsPromotionItemNrPromotionDiscountPercentage Promotion's percentage - * discount. It is represented in percentage value and there is no need to include the - * '%' sign. e.g. for a promotion discount of 30%, the value of the field should be - * 30. + * Promotion's percentage discount. It is represented in percentage value and there is no need to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field should be 30. + * @return riskdataPromotionsPromotionItemNrPromotionDiscountPercentage Promotion's percentage discount. It is represented in percentage value and there is no need to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field should be 30. */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_PERCENTAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -791,21 +684,14 @@ public String getRiskdataPromotionsPromotionItemNrPromotionDiscountPercentage() } /** - * Promotion's percentage discount. It is represented in percentage value and there is no need - * to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field - * should be 30. + * Promotion's percentage discount. It is represented in percentage value and there is no need to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field should be 30. * - * @param riskdataPromotionsPromotionItemNrPromotionDiscountPercentage Promotion's percentage - * discount. It is represented in percentage value and there is no need to include the - * '%' sign. e.g. for a promotion discount of 30%, the value of the field should be - * 30. + * @param riskdataPromotionsPromotionItemNrPromotionDiscountPercentage Promotion's percentage discount. It is represented in percentage value and there is no need to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field should be 30. */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_PERCENTAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRiskdataPromotionsPromotionItemNrPromotionDiscountPercentage( - String riskdataPromotionsPromotionItemNrPromotionDiscountPercentage) { - this.riskdataPromotionsPromotionItemNrPromotionDiscountPercentage = - riskdataPromotionsPromotionItemNrPromotionDiscountPercentage; + public void setRiskdataPromotionsPromotionItemNrPromotionDiscountPercentage(String riskdataPromotionsPromotionItemNrPromotionDiscountPercentage) { + this.riskdataPromotionsPromotionItemNrPromotionDiscountPercentage = riskdataPromotionsPromotionItemNrPromotionDiscountPercentage; } /** @@ -814,16 +700,13 @@ public void setRiskdataPromotionsPromotionItemNrPromotionDiscountPercentage( * @param riskdataPromotionsPromotionItemNrPromotionName Name of the promotion. * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionName( - String riskdataPromotionsPromotionItemNrPromotionName) { - this.riskdataPromotionsPromotionItemNrPromotionName = - riskdataPromotionsPromotionItemNrPromotionName; + public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionName(String riskdataPromotionsPromotionItemNrPromotionName) { + this.riskdataPromotionsPromotionItemNrPromotionName = riskdataPromotionsPromotionItemNrPromotionName; return this; } /** * Name of the promotion. - * * @return riskdataPromotionsPromotionItemNrPromotionName Name of the promotion. */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_NAME) @@ -839,23 +722,14 @@ public String getRiskdataPromotionsPromotionItemNrPromotionName() { */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRiskdataPromotionsPromotionItemNrPromotionName( - String riskdataPromotionsPromotionItemNrPromotionName) { - this.riskdataPromotionsPromotionItemNrPromotionName = - riskdataPromotionsPromotionItemNrPromotionName; + public void setRiskdataPromotionsPromotionItemNrPromotionName(String riskdataPromotionsPromotionItemNrPromotionName) { + this.riskdataPromotionsPromotionItemNrPromotionName = riskdataPromotionsPromotionItemNrPromotionName; } /** - * Reference number of the risk profile that you want to apply to the payment. If not provided or - * left blank, the merchant-level account's default risk profile will be applied to the - * payment. For more information, see [dynamically assign a risk profile to a - * payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). + * Reference number of the risk profile that you want to apply to the payment. If not provided or left blank, the merchant-level account's default risk profile will be applied to the payment. For more information, see [dynamically assign a risk profile to a payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). * - * @param riskdataRiskProfileReference Reference number of the risk profile that you want to apply - * to the payment. If not provided or left blank, the merchant-level account's default - * risk profile will be applied to the payment. For more information, see [dynamically assign - * a risk profile to a - * payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). + * @param riskdataRiskProfileReference Reference number of the risk profile that you want to apply to the payment. If not provided or left blank, the merchant-level account's default risk profile will be applied to the payment. For more information, see [dynamically assign a risk profile to a payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ public AdditionalDataRisk riskdataRiskProfileReference(String riskdataRiskProfileReference) { @@ -864,16 +738,8 @@ public AdditionalDataRisk riskdataRiskProfileReference(String riskdataRiskProfil } /** - * Reference number of the risk profile that you want to apply to the payment. If not provided or - * left blank, the merchant-level account's default risk profile will be applied to the - * payment. For more information, see [dynamically assign a risk profile to a - * payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). - * - * @return riskdataRiskProfileReference Reference number of the risk profile that you want to - * apply to the payment. If not provided or left blank, the merchant-level account's - * default risk profile will be applied to the payment. For more information, see [dynamically - * assign a risk profile to a - * payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). + * Reference number of the risk profile that you want to apply to the payment. If not provided or left blank, the merchant-level account's default risk profile will be applied to the payment. For more information, see [dynamically assign a risk profile to a payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). + * @return riskdataRiskProfileReference Reference number of the risk profile that you want to apply to the payment. If not provided or left blank, the merchant-level account's default risk profile will be applied to the payment. For more information, see [dynamically assign a risk profile to a payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). */ @JsonProperty(JSON_PROPERTY_RISKDATA_RISK_PROFILE_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -882,16 +748,9 @@ public String getRiskdataRiskProfileReference() { } /** - * Reference number of the risk profile that you want to apply to the payment. If not provided or - * left blank, the merchant-level account's default risk profile will be applied to the - * payment. For more information, see [dynamically assign a risk profile to a - * payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). + * Reference number of the risk profile that you want to apply to the payment. If not provided or left blank, the merchant-level account's default risk profile will be applied to the payment. For more information, see [dynamically assign a risk profile to a payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). * - * @param riskdataRiskProfileReference Reference number of the risk profile that you want to apply - * to the payment. If not provided or left blank, the merchant-level account's default - * risk profile will be applied to the payment. For more information, see [dynamically assign - * a risk profile to a - * payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). + * @param riskdataRiskProfileReference Reference number of the risk profile that you want to apply to the payment. If not provided or left blank, the merchant-level account's default risk profile will be applied to the payment. For more information, see [dynamically assign a risk profile to a payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). */ @JsonProperty(JSON_PROPERTY_RISKDATA_RISK_PROFILE_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -900,11 +759,9 @@ public void setRiskdataRiskProfileReference(String riskdataRiskProfileReference) } /** - * If this parameter is provided with the value **true**, risk checks for the payment request are - * skipped and the transaction will not get a risk score. + * If this parameter is provided with the value **true**, risk checks for the payment request are skipped and the transaction will not get a risk score. * - * @param riskdataSkipRisk If this parameter is provided with the value **true**, risk checks for - * the payment request are skipped and the transaction will not get a risk score. + * @param riskdataSkipRisk If this parameter is provided with the value **true**, risk checks for the payment request are skipped and the transaction will not get a risk score. * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ public AdditionalDataRisk riskdataSkipRisk(String riskdataSkipRisk) { @@ -913,11 +770,8 @@ public AdditionalDataRisk riskdataSkipRisk(String riskdataSkipRisk) { } /** - * If this parameter is provided with the value **true**, risk checks for the payment request are - * skipped and the transaction will not get a risk score. - * - * @return riskdataSkipRisk If this parameter is provided with the value **true**, risk checks for - * the payment request are skipped and the transaction will not get a risk score. + * If this parameter is provided with the value **true**, risk checks for the payment request are skipped and the transaction will not get a risk score. + * @return riskdataSkipRisk If this parameter is provided with the value **true**, risk checks for the payment request are skipped and the transaction will not get a risk score. */ @JsonProperty(JSON_PROPERTY_RISKDATA_SKIP_RISK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -926,11 +780,9 @@ public String getRiskdataSkipRisk() { } /** - * If this parameter is provided with the value **true**, risk checks for the payment request are - * skipped and the transaction will not get a risk score. + * If this parameter is provided with the value **true**, risk checks for the payment request are skipped and the transaction will not get a risk score. * - * @param riskdataSkipRisk If this parameter is provided with the value **true**, risk checks for - * the payment request are skipped and the transaction will not get a risk score. + * @param riskdataSkipRisk If this parameter is provided with the value **true**, risk checks for the payment request are skipped and the transaction will not get a risk score. */ @JsonProperty(JSON_PROPERTY_RISKDATA_SKIP_RISK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -938,7 +790,9 @@ public void setRiskdataSkipRisk(String riskdataSkipRisk) { this.riskdataSkipRisk = riskdataSkipRisk; } - /** Return true if this AdditionalDataRisk object is equal to o. */ + /** + * Return true if this AdditionalDataRisk object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -948,157 +802,66 @@ public boolean equals(Object o) { return false; } AdditionalDataRisk additionalDataRisk = (AdditionalDataRisk) o; - return Objects.equals(this.riskdataCustomFieldName, additionalDataRisk.riskdataCustomFieldName) - && Objects.equals( - this.riskdataBasketItemItemNrAmountPerItem, - additionalDataRisk.riskdataBasketItemItemNrAmountPerItem) - && Objects.equals( - this.riskdataBasketItemItemNrBrand, additionalDataRisk.riskdataBasketItemItemNrBrand) - && Objects.equals( - this.riskdataBasketItemItemNrCategory, - additionalDataRisk.riskdataBasketItemItemNrCategory) - && Objects.equals( - this.riskdataBasketItemItemNrColor, additionalDataRisk.riskdataBasketItemItemNrColor) - && Objects.equals( - this.riskdataBasketItemItemNrCurrency, - additionalDataRisk.riskdataBasketItemItemNrCurrency) - && Objects.equals( - this.riskdataBasketItemItemNrItemID, additionalDataRisk.riskdataBasketItemItemNrItemID) - && Objects.equals( - this.riskdataBasketItemItemNrManufacturer, - additionalDataRisk.riskdataBasketItemItemNrManufacturer) - && Objects.equals( - this.riskdataBasketItemItemNrProductTitle, - additionalDataRisk.riskdataBasketItemItemNrProductTitle) - && Objects.equals( - this.riskdataBasketItemItemNrQuantity, - additionalDataRisk.riskdataBasketItemItemNrQuantity) - && Objects.equals( - this.riskdataBasketItemItemNrReceiverEmail, - additionalDataRisk.riskdataBasketItemItemNrReceiverEmail) - && Objects.equals( - this.riskdataBasketItemItemNrSize, additionalDataRisk.riskdataBasketItemItemNrSize) - && Objects.equals( - this.riskdataBasketItemItemNrSku, additionalDataRisk.riskdataBasketItemItemNrSku) - && Objects.equals( - this.riskdataBasketItemItemNrUpc, additionalDataRisk.riskdataBasketItemItemNrUpc) - && Objects.equals( - this.riskdataPromotionsPromotionItemNrPromotionCode, - additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionCode) - && Objects.equals( - this.riskdataPromotionsPromotionItemNrPromotionDiscountAmount, - additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionDiscountAmount) - && Objects.equals( - this.riskdataPromotionsPromotionItemNrPromotionDiscountCurrency, - additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionDiscountCurrency) - && Objects.equals( - this.riskdataPromotionsPromotionItemNrPromotionDiscountPercentage, - additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionDiscountPercentage) - && Objects.equals( - this.riskdataPromotionsPromotionItemNrPromotionName, - additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionName) - && Objects.equals( - this.riskdataRiskProfileReference, additionalDataRisk.riskdataRiskProfileReference) - && Objects.equals(this.riskdataSkipRisk, additionalDataRisk.riskdataSkipRisk); + return Objects.equals(this.riskdataCustomFieldName, additionalDataRisk.riskdataCustomFieldName) && + Objects.equals(this.riskdataBasketItemItemNrAmountPerItem, additionalDataRisk.riskdataBasketItemItemNrAmountPerItem) && + Objects.equals(this.riskdataBasketItemItemNrBrand, additionalDataRisk.riskdataBasketItemItemNrBrand) && + Objects.equals(this.riskdataBasketItemItemNrCategory, additionalDataRisk.riskdataBasketItemItemNrCategory) && + Objects.equals(this.riskdataBasketItemItemNrColor, additionalDataRisk.riskdataBasketItemItemNrColor) && + Objects.equals(this.riskdataBasketItemItemNrCurrency, additionalDataRisk.riskdataBasketItemItemNrCurrency) && + Objects.equals(this.riskdataBasketItemItemNrItemID, additionalDataRisk.riskdataBasketItemItemNrItemID) && + Objects.equals(this.riskdataBasketItemItemNrManufacturer, additionalDataRisk.riskdataBasketItemItemNrManufacturer) && + Objects.equals(this.riskdataBasketItemItemNrProductTitle, additionalDataRisk.riskdataBasketItemItemNrProductTitle) && + Objects.equals(this.riskdataBasketItemItemNrQuantity, additionalDataRisk.riskdataBasketItemItemNrQuantity) && + Objects.equals(this.riskdataBasketItemItemNrReceiverEmail, additionalDataRisk.riskdataBasketItemItemNrReceiverEmail) && + Objects.equals(this.riskdataBasketItemItemNrSize, additionalDataRisk.riskdataBasketItemItemNrSize) && + Objects.equals(this.riskdataBasketItemItemNrSku, additionalDataRisk.riskdataBasketItemItemNrSku) && + Objects.equals(this.riskdataBasketItemItemNrUpc, additionalDataRisk.riskdataBasketItemItemNrUpc) && + Objects.equals(this.riskdataPromotionsPromotionItemNrPromotionCode, additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionCode) && + Objects.equals(this.riskdataPromotionsPromotionItemNrPromotionDiscountAmount, additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionDiscountAmount) && + Objects.equals(this.riskdataPromotionsPromotionItemNrPromotionDiscountCurrency, additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionDiscountCurrency) && + Objects.equals(this.riskdataPromotionsPromotionItemNrPromotionDiscountPercentage, additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionDiscountPercentage) && + Objects.equals(this.riskdataPromotionsPromotionItemNrPromotionName, additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionName) && + Objects.equals(this.riskdataRiskProfileReference, additionalDataRisk.riskdataRiskProfileReference) && + Objects.equals(this.riskdataSkipRisk, additionalDataRisk.riskdataSkipRisk); } @Override public int hashCode() { - return Objects.hash( - riskdataCustomFieldName, - riskdataBasketItemItemNrAmountPerItem, - riskdataBasketItemItemNrBrand, - riskdataBasketItemItemNrCategory, - riskdataBasketItemItemNrColor, - riskdataBasketItemItemNrCurrency, - riskdataBasketItemItemNrItemID, - riskdataBasketItemItemNrManufacturer, - riskdataBasketItemItemNrProductTitle, - riskdataBasketItemItemNrQuantity, - riskdataBasketItemItemNrReceiverEmail, - riskdataBasketItemItemNrSize, - riskdataBasketItemItemNrSku, - riskdataBasketItemItemNrUpc, - riskdataPromotionsPromotionItemNrPromotionCode, - riskdataPromotionsPromotionItemNrPromotionDiscountAmount, - riskdataPromotionsPromotionItemNrPromotionDiscountCurrency, - riskdataPromotionsPromotionItemNrPromotionDiscountPercentage, - riskdataPromotionsPromotionItemNrPromotionName, - riskdataRiskProfileReference, - riskdataSkipRisk); + return Objects.hash(riskdataCustomFieldName, riskdataBasketItemItemNrAmountPerItem, riskdataBasketItemItemNrBrand, riskdataBasketItemItemNrCategory, riskdataBasketItemItemNrColor, riskdataBasketItemItemNrCurrency, riskdataBasketItemItemNrItemID, riskdataBasketItemItemNrManufacturer, riskdataBasketItemItemNrProductTitle, riskdataBasketItemItemNrQuantity, riskdataBasketItemItemNrReceiverEmail, riskdataBasketItemItemNrSize, riskdataBasketItemItemNrSku, riskdataBasketItemItemNrUpc, riskdataPromotionsPromotionItemNrPromotionCode, riskdataPromotionsPromotionItemNrPromotionDiscountAmount, riskdataPromotionsPromotionItemNrPromotionDiscountCurrency, riskdataPromotionsPromotionItemNrPromotionDiscountPercentage, riskdataPromotionsPromotionItemNrPromotionName, riskdataRiskProfileReference, riskdataSkipRisk); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataRisk {\n"); - sb.append(" riskdataCustomFieldName: ") - .append(toIndentedString(riskdataCustomFieldName)) - .append("\n"); - sb.append(" riskdataBasketItemItemNrAmountPerItem: ") - .append(toIndentedString(riskdataBasketItemItemNrAmountPerItem)) - .append("\n"); - sb.append(" riskdataBasketItemItemNrBrand: ") - .append(toIndentedString(riskdataBasketItemItemNrBrand)) - .append("\n"); - sb.append(" riskdataBasketItemItemNrCategory: ") - .append(toIndentedString(riskdataBasketItemItemNrCategory)) - .append("\n"); - sb.append(" riskdataBasketItemItemNrColor: ") - .append(toIndentedString(riskdataBasketItemItemNrColor)) - .append("\n"); - sb.append(" riskdataBasketItemItemNrCurrency: ") - .append(toIndentedString(riskdataBasketItemItemNrCurrency)) - .append("\n"); - sb.append(" riskdataBasketItemItemNrItemID: ") - .append(toIndentedString(riskdataBasketItemItemNrItemID)) - .append("\n"); - sb.append(" riskdataBasketItemItemNrManufacturer: ") - .append(toIndentedString(riskdataBasketItemItemNrManufacturer)) - .append("\n"); - sb.append(" riskdataBasketItemItemNrProductTitle: ") - .append(toIndentedString(riskdataBasketItemItemNrProductTitle)) - .append("\n"); - sb.append(" riskdataBasketItemItemNrQuantity: ") - .append(toIndentedString(riskdataBasketItemItemNrQuantity)) - .append("\n"); - sb.append(" riskdataBasketItemItemNrReceiverEmail: ") - .append(toIndentedString(riskdataBasketItemItemNrReceiverEmail)) - .append("\n"); - sb.append(" riskdataBasketItemItemNrSize: ") - .append(toIndentedString(riskdataBasketItemItemNrSize)) - .append("\n"); - sb.append(" riskdataBasketItemItemNrSku: ") - .append(toIndentedString(riskdataBasketItemItemNrSku)) - .append("\n"); - sb.append(" riskdataBasketItemItemNrUpc: ") - .append(toIndentedString(riskdataBasketItemItemNrUpc)) - .append("\n"); - sb.append(" riskdataPromotionsPromotionItemNrPromotionCode: ") - .append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionCode)) - .append("\n"); - sb.append(" riskdataPromotionsPromotionItemNrPromotionDiscountAmount: ") - .append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionDiscountAmount)) - .append("\n"); - sb.append(" riskdataPromotionsPromotionItemNrPromotionDiscountCurrency: ") - .append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionDiscountCurrency)) - .append("\n"); - sb.append(" riskdataPromotionsPromotionItemNrPromotionDiscountPercentage: ") - .append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionDiscountPercentage)) - .append("\n"); - sb.append(" riskdataPromotionsPromotionItemNrPromotionName: ") - .append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionName)) - .append("\n"); - sb.append(" riskdataRiskProfileReference: ") - .append(toIndentedString(riskdataRiskProfileReference)) - .append("\n"); + sb.append(" riskdataCustomFieldName: ").append(toIndentedString(riskdataCustomFieldName)).append("\n"); + sb.append(" riskdataBasketItemItemNrAmountPerItem: ").append(toIndentedString(riskdataBasketItemItemNrAmountPerItem)).append("\n"); + sb.append(" riskdataBasketItemItemNrBrand: ").append(toIndentedString(riskdataBasketItemItemNrBrand)).append("\n"); + sb.append(" riskdataBasketItemItemNrCategory: ").append(toIndentedString(riskdataBasketItemItemNrCategory)).append("\n"); + sb.append(" riskdataBasketItemItemNrColor: ").append(toIndentedString(riskdataBasketItemItemNrColor)).append("\n"); + sb.append(" riskdataBasketItemItemNrCurrency: ").append(toIndentedString(riskdataBasketItemItemNrCurrency)).append("\n"); + sb.append(" riskdataBasketItemItemNrItemID: ").append(toIndentedString(riskdataBasketItemItemNrItemID)).append("\n"); + sb.append(" riskdataBasketItemItemNrManufacturer: ").append(toIndentedString(riskdataBasketItemItemNrManufacturer)).append("\n"); + sb.append(" riskdataBasketItemItemNrProductTitle: ").append(toIndentedString(riskdataBasketItemItemNrProductTitle)).append("\n"); + sb.append(" riskdataBasketItemItemNrQuantity: ").append(toIndentedString(riskdataBasketItemItemNrQuantity)).append("\n"); + sb.append(" riskdataBasketItemItemNrReceiverEmail: ").append(toIndentedString(riskdataBasketItemItemNrReceiverEmail)).append("\n"); + sb.append(" riskdataBasketItemItemNrSize: ").append(toIndentedString(riskdataBasketItemItemNrSize)).append("\n"); + sb.append(" riskdataBasketItemItemNrSku: ").append(toIndentedString(riskdataBasketItemItemNrSku)).append("\n"); + sb.append(" riskdataBasketItemItemNrUpc: ").append(toIndentedString(riskdataBasketItemItemNrUpc)).append("\n"); + sb.append(" riskdataPromotionsPromotionItemNrPromotionCode: ").append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionCode)).append("\n"); + sb.append(" riskdataPromotionsPromotionItemNrPromotionDiscountAmount: ").append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionDiscountAmount)).append("\n"); + sb.append(" riskdataPromotionsPromotionItemNrPromotionDiscountCurrency: ").append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionDiscountCurrency)).append("\n"); + sb.append(" riskdataPromotionsPromotionItemNrPromotionDiscountPercentage: ").append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionDiscountPercentage)).append("\n"); + sb.append(" riskdataPromotionsPromotionItemNrPromotionName: ").append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionName)).append("\n"); + sb.append(" riskdataRiskProfileReference: ").append(toIndentedString(riskdataRiskProfileReference)).append("\n"); sb.append(" riskdataSkipRisk: ").append(toIndentedString(riskdataSkipRisk)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1107,23 +870,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalDataRisk given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataRisk - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataRisk + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataRisk */ public static AdditionalDataRisk fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataRisk.class); } - - /** - * Convert an instance of AdditionalDataRisk to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalDataRisk to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataRiskStandalone.java b/src/main/java/com/adyen/model/checkout/AdditionalDataRiskStandalone.java index b3afd2db9..b1a522884 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataRiskStandalone.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataRiskStandalone.java @@ -2,22 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AdditionalDataRiskStandalone */ + +/** + * AdditionalDataRiskStandalone + */ @JsonPropertyOrder({ AdditionalDataRiskStandalone.JSON_PROPERTY_PAY_PAL_COUNTRY_CODE, AdditionalDataRiskStandalone.JSON_PROPERTY_PAY_PAL_EMAIL_ID, @@ -35,6 +44,7 @@ AdditionalDataRiskStandalone.JSON_PROPERTY_THREE_D_OFFERED, AdditionalDataRiskStandalone.JSON_PROPERTY_TOKEN_DATA_TYPE }) + public class AdditionalDataRiskStandalone { public static final String JSON_PROPERTY_PAY_PAL_COUNTRY_CODE = "PayPal.CountryCode"; private String payPalCountryCode; @@ -54,8 +64,7 @@ public class AdditionalDataRiskStandalone { public static final String JSON_PROPERTY_PAY_PAL_PHONE = "PayPal.Phone"; private String payPalPhone; - public static final String JSON_PROPERTY_PAY_PAL_PROTECTION_ELIGIBILITY = - "PayPal.ProtectionEligibility"; + public static final String JSON_PROPERTY_PAY_PAL_PROTECTION_ELIGIBILITY = "PayPal.ProtectionEligibility"; private String payPalProtectionEligibility; public static final String JSON_PROPERTY_PAY_PAL_TRANSACTION_ID = "PayPal.TransactionId"; @@ -82,13 +91,13 @@ public class AdditionalDataRiskStandalone { public static final String JSON_PROPERTY_TOKEN_DATA_TYPE = "tokenDataType"; private String tokenDataType; - public AdditionalDataRiskStandalone() {} + public AdditionalDataRiskStandalone() { + } /** * Shopper's country of residence in the form of ISO standard 3166 2-character country codes. * - * @param payPalCountryCode Shopper's country of residence in the form of ISO standard 3166 - * 2-character country codes. + * @param payPalCountryCode Shopper's country of residence in the form of ISO standard 3166 2-character country codes. * @return the current {@code AdditionalDataRiskStandalone} instance, allowing for method chaining */ public AdditionalDataRiskStandalone payPalCountryCode(String payPalCountryCode) { @@ -98,9 +107,7 @@ public AdditionalDataRiskStandalone payPalCountryCode(String payPalCountryCode) /** * Shopper's country of residence in the form of ISO standard 3166 2-character country codes. - * - * @return payPalCountryCode Shopper's country of residence in the form of ISO standard 3166 - * 2-character country codes. + * @return payPalCountryCode Shopper's country of residence in the form of ISO standard 3166 2-character country codes. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,8 +118,7 @@ public String getPayPalCountryCode() { /** * Shopper's country of residence in the form of ISO standard 3166 2-character country codes. * - * @param payPalCountryCode Shopper's country of residence in the form of ISO standard 3166 - * 2-character country codes. + * @param payPalCountryCode Shopper's country of residence in the form of ISO standard 3166 2-character country codes. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -133,7 +139,6 @@ public AdditionalDataRiskStandalone payPalEmailId(String payPalEmailId) { /** * Shopper's email. - * * @return payPalEmailId Shopper's email. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_EMAIL_ID) @@ -166,7 +171,6 @@ public AdditionalDataRiskStandalone payPalFirstName(String payPalFirstName) { /** * Shopper's first name. - * * @return payPalFirstName Shopper's first name. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_FIRST_NAME) @@ -199,7 +203,6 @@ public AdditionalDataRiskStandalone payPalLastName(String payPalLastName) { /** * Shopper's last name. - * * @return payPalLastName Shopper's last name. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_LAST_NAME) @@ -220,11 +223,9 @@ public void setPayPalLastName(String payPalLastName) { } /** - * Unique PayPal Customer Account identification number. Character length and limitations: 13 - * single-byte alphanumeric characters. + * Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. * - * @param payPalPayerId Unique PayPal Customer Account identification number. Character length and - * limitations: 13 single-byte alphanumeric characters. + * @param payPalPayerId Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. * @return the current {@code AdditionalDataRiskStandalone} instance, allowing for method chaining */ public AdditionalDataRiskStandalone payPalPayerId(String payPalPayerId) { @@ -233,11 +234,8 @@ public AdditionalDataRiskStandalone payPalPayerId(String payPalPayerId) { } /** - * Unique PayPal Customer Account identification number. Character length and limitations: 13 - * single-byte alphanumeric characters. - * - * @return payPalPayerId Unique PayPal Customer Account identification number. Character length - * and limitations: 13 single-byte alphanumeric characters. + * Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. + * @return payPalPayerId Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_PAYER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -246,11 +244,9 @@ public String getPayPalPayerId() { } /** - * Unique PayPal Customer Account identification number. Character length and limitations: 13 - * single-byte alphanumeric characters. + * Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. * - * @param payPalPayerId Unique PayPal Customer Account identification number. Character length and - * limitations: 13 single-byte alphanumeric characters. + * @param payPalPayerId Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_PAYER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -271,7 +267,6 @@ public AdditionalDataRiskStandalone payPalPhone(String payPalPhone) { /** * Shopper's phone number. - * * @return payPalPhone Shopper's phone number. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_PHONE) @@ -292,35 +287,19 @@ public void setPayPalPhone(String payPalPhone) { } /** - * Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy - * for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is - * protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — - * Merchant is not protected under the Seller Protection Policy. + * Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy. * - * @param payPalProtectionEligibility Allowed values: * **Eligible** — Merchant is protected by - * PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * - * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for - * Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection - * Policy. + * @param payPalProtectionEligibility Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy. * @return the current {@code AdditionalDataRiskStandalone} instance, allowing for method chaining */ - public AdditionalDataRiskStandalone payPalProtectionEligibility( - String payPalProtectionEligibility) { + public AdditionalDataRiskStandalone payPalProtectionEligibility(String payPalProtectionEligibility) { this.payPalProtectionEligibility = payPalProtectionEligibility; return this; } /** - * Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy - * for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is - * protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — - * Merchant is not protected under the Seller Protection Policy. - * - * @return payPalProtectionEligibility Allowed values: * **Eligible** — Merchant is protected by - * PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * - * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for - * Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection - * Policy. + * Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy. + * @return payPalProtectionEligibility Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_PROTECTION_ELIGIBILITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -329,16 +308,9 @@ public String getPayPalProtectionEligibility() { } /** - * Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy - * for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is - * protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — - * Merchant is not protected under the Seller Protection Policy. + * Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy. * - * @param payPalProtectionEligibility Allowed values: * **Eligible** — Merchant is protected by - * PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * - * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for - * Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection - * Policy. + * @param payPalProtectionEligibility Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_PROTECTION_ELIGIBILITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -359,7 +331,6 @@ public AdditionalDataRiskStandalone payPalTransactionId(String payPalTransaction /** * Unique transaction ID of the payment. - * * @return payPalTransactionId Unique transaction ID of the payment. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_TRANSACTION_ID) @@ -392,7 +363,6 @@ public AdditionalDataRiskStandalone avsResultRaw(String avsResultRaw) { /** * Raw AVS result received from the acquirer, where available. Example: D - * * @return avsResultRaw Raw AVS result received from the acquirer, where available. Example: D */ @JsonProperty(JSON_PROPERTY_AVS_RESULT_RAW) @@ -413,13 +383,9 @@ public void setAvsResultRaw(String avsResultRaw) { } /** - * The Bank Identification Number of a credit card, which is the first six digits of a card - * number. Required for [tokenized card - * request](https://docs.adyen.com/online-payments/tokenization). + * The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/online-payments/tokenization). * - * @param bin The Bank Identification Number of a credit card, which is the first six digits of a - * card number. Required for [tokenized card - * request](https://docs.adyen.com/online-payments/tokenization). + * @param bin The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/online-payments/tokenization). * @return the current {@code AdditionalDataRiskStandalone} instance, allowing for method chaining */ public AdditionalDataRiskStandalone bin(String bin) { @@ -428,13 +394,8 @@ public AdditionalDataRiskStandalone bin(String bin) { } /** - * The Bank Identification Number of a credit card, which is the first six digits of a card - * number. Required for [tokenized card - * request](https://docs.adyen.com/online-payments/tokenization). - * - * @return bin The Bank Identification Number of a credit card, which is the first six digits of a - * card number. Required for [tokenized card - * request](https://docs.adyen.com/online-payments/tokenization). + * The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/online-payments/tokenization). + * @return bin The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/online-payments/tokenization). */ @JsonProperty(JSON_PROPERTY_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -443,13 +404,9 @@ public String getBin() { } /** - * The Bank Identification Number of a credit card, which is the first six digits of a card - * number. Required for [tokenized card - * request](https://docs.adyen.com/online-payments/tokenization). + * The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/online-payments/tokenization). * - * @param bin The Bank Identification Number of a credit card, which is the first six digits of a - * card number. Required for [tokenized card - * request](https://docs.adyen.com/online-payments/tokenization). + * @param bin The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/online-payments/tokenization). */ @JsonProperty(JSON_PROPERTY_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -470,7 +427,6 @@ public AdditionalDataRiskStandalone cvcResultRaw(String cvcResultRaw) { /** * Raw CVC result received from the acquirer, where available. Example: 1 - * * @return cvcResultRaw Raw CVC result received from the acquirer, where available. Example: 1 */ @JsonProperty(JSON_PROPERTY_CVC_RESULT_RAW) @@ -503,7 +459,6 @@ public AdditionalDataRiskStandalone riskToken(String riskToken) { /** * Unique identifier or token for the shopper's card details. - * * @return riskToken Unique identifier or token for the shopper's card details. */ @JsonProperty(JSON_PROPERTY_RISK_TOKEN) @@ -524,11 +479,9 @@ public void setRiskToken(String riskToken) { } /** - * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: - * true + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true * - * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed - * on this payment. Example: true + * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true * @return the current {@code AdditionalDataRiskStandalone} instance, allowing for method chaining */ public AdditionalDataRiskStandalone threeDAuthenticated(String threeDAuthenticated) { @@ -537,11 +490,8 @@ public AdditionalDataRiskStandalone threeDAuthenticated(String threeDAuthenticat } /** - * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: - * true - * - * @return threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed - * on this payment. Example: true + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + * @return threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -550,11 +500,9 @@ public String getThreeDAuthenticated() { } /** - * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: - * true + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true * - * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed - * on this payment. Example: true + * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -565,8 +513,7 @@ public void setThreeDAuthenticated(String threeDAuthenticated) { /** * A Boolean value indicating whether 3DS was offered for this payment. Example: true * - * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. - * Example: true + * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. Example: true * @return the current {@code AdditionalDataRiskStandalone} instance, allowing for method chaining */ public AdditionalDataRiskStandalone threeDOffered(String threeDOffered) { @@ -576,9 +523,7 @@ public AdditionalDataRiskStandalone threeDOffered(String threeDOffered) { /** * A Boolean value indicating whether 3DS was offered for this payment. Example: true - * - * @return threeDOffered A Boolean value indicating whether 3DS was offered for this payment. - * Example: true + * @return threeDOffered A Boolean value indicating whether 3DS was offered for this payment. Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -589,8 +534,7 @@ public String getThreeDOffered() { /** * A Boolean value indicating whether 3DS was offered for this payment. Example: true * - * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. - * Example: true + * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -601,8 +545,7 @@ public void setThreeDOffered(String threeDOffered) { /** * Required for PayPal payments only. The only supported value is: **paypal**. * - * @param tokenDataType Required for PayPal payments only. The only supported value is: - * **paypal**. + * @param tokenDataType Required for PayPal payments only. The only supported value is: **paypal**. * @return the current {@code AdditionalDataRiskStandalone} instance, allowing for method chaining */ public AdditionalDataRiskStandalone tokenDataType(String tokenDataType) { @@ -612,9 +555,7 @@ public AdditionalDataRiskStandalone tokenDataType(String tokenDataType) { /** * Required for PayPal payments only. The only supported value is: **paypal**. - * - * @return tokenDataType Required for PayPal payments only. The only supported value is: - * **paypal**. + * @return tokenDataType Required for PayPal payments only. The only supported value is: **paypal**. */ @JsonProperty(JSON_PROPERTY_TOKEN_DATA_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -625,8 +566,7 @@ public String getTokenDataType() { /** * Required for PayPal payments only. The only supported value is: **paypal**. * - * @param tokenDataType Required for PayPal payments only. The only supported value is: - * **paypal**. + * @param tokenDataType Required for PayPal payments only. The only supported value is: **paypal**. */ @JsonProperty(JSON_PROPERTY_TOKEN_DATA_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -634,7 +574,9 @@ public void setTokenDataType(String tokenDataType) { this.tokenDataType = tokenDataType; } - /** Return true if this AdditionalDataRiskStandalone object is equal to o. */ + /** + * Return true if this AdditionalDataRiskStandalone object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -644,45 +586,26 @@ public boolean equals(Object o) { return false; } AdditionalDataRiskStandalone additionalDataRiskStandalone = (AdditionalDataRiskStandalone) o; - return Objects.equals(this.payPalCountryCode, additionalDataRiskStandalone.payPalCountryCode) - && Objects.equals(this.payPalEmailId, additionalDataRiskStandalone.payPalEmailId) - && Objects.equals(this.payPalFirstName, additionalDataRiskStandalone.payPalFirstName) - && Objects.equals(this.payPalLastName, additionalDataRiskStandalone.payPalLastName) - && Objects.equals(this.payPalPayerId, additionalDataRiskStandalone.payPalPayerId) - && Objects.equals(this.payPalPhone, additionalDataRiskStandalone.payPalPhone) - && Objects.equals( - this.payPalProtectionEligibility, - additionalDataRiskStandalone.payPalProtectionEligibility) - && Objects.equals( - this.payPalTransactionId, additionalDataRiskStandalone.payPalTransactionId) - && Objects.equals(this.avsResultRaw, additionalDataRiskStandalone.avsResultRaw) - && Objects.equals(this.bin, additionalDataRiskStandalone.bin) - && Objects.equals(this.cvcResultRaw, additionalDataRiskStandalone.cvcResultRaw) - && Objects.equals(this.riskToken, additionalDataRiskStandalone.riskToken) - && Objects.equals( - this.threeDAuthenticated, additionalDataRiskStandalone.threeDAuthenticated) - && Objects.equals(this.threeDOffered, additionalDataRiskStandalone.threeDOffered) - && Objects.equals(this.tokenDataType, additionalDataRiskStandalone.tokenDataType); + return Objects.equals(this.payPalCountryCode, additionalDataRiskStandalone.payPalCountryCode) && + Objects.equals(this.payPalEmailId, additionalDataRiskStandalone.payPalEmailId) && + Objects.equals(this.payPalFirstName, additionalDataRiskStandalone.payPalFirstName) && + Objects.equals(this.payPalLastName, additionalDataRiskStandalone.payPalLastName) && + Objects.equals(this.payPalPayerId, additionalDataRiskStandalone.payPalPayerId) && + Objects.equals(this.payPalPhone, additionalDataRiskStandalone.payPalPhone) && + Objects.equals(this.payPalProtectionEligibility, additionalDataRiskStandalone.payPalProtectionEligibility) && + Objects.equals(this.payPalTransactionId, additionalDataRiskStandalone.payPalTransactionId) && + Objects.equals(this.avsResultRaw, additionalDataRiskStandalone.avsResultRaw) && + Objects.equals(this.bin, additionalDataRiskStandalone.bin) && + Objects.equals(this.cvcResultRaw, additionalDataRiskStandalone.cvcResultRaw) && + Objects.equals(this.riskToken, additionalDataRiskStandalone.riskToken) && + Objects.equals(this.threeDAuthenticated, additionalDataRiskStandalone.threeDAuthenticated) && + Objects.equals(this.threeDOffered, additionalDataRiskStandalone.threeDOffered) && + Objects.equals(this.tokenDataType, additionalDataRiskStandalone.tokenDataType); } @Override public int hashCode() { - return Objects.hash( - payPalCountryCode, - payPalEmailId, - payPalFirstName, - payPalLastName, - payPalPayerId, - payPalPhone, - payPalProtectionEligibility, - payPalTransactionId, - avsResultRaw, - bin, - cvcResultRaw, - riskToken, - threeDAuthenticated, - threeDOffered, - tokenDataType); + return Objects.hash(payPalCountryCode, payPalEmailId, payPalFirstName, payPalLastName, payPalPayerId, payPalPhone, payPalProtectionEligibility, payPalTransactionId, avsResultRaw, bin, cvcResultRaw, riskToken, threeDAuthenticated, threeDOffered, tokenDataType); } @Override @@ -695,19 +618,13 @@ public String toString() { sb.append(" payPalLastName: ").append(toIndentedString(payPalLastName)).append("\n"); sb.append(" payPalPayerId: ").append(toIndentedString(payPalPayerId)).append("\n"); sb.append(" payPalPhone: ").append(toIndentedString(payPalPhone)).append("\n"); - sb.append(" payPalProtectionEligibility: ") - .append(toIndentedString(payPalProtectionEligibility)) - .append("\n"); - sb.append(" payPalTransactionId: ") - .append(toIndentedString(payPalTransactionId)) - .append("\n"); + sb.append(" payPalProtectionEligibility: ").append(toIndentedString(payPalProtectionEligibility)).append("\n"); + sb.append(" payPalTransactionId: ").append(toIndentedString(payPalTransactionId)).append("\n"); sb.append(" avsResultRaw: ").append(toIndentedString(avsResultRaw)).append("\n"); sb.append(" bin: ").append(toIndentedString(bin)).append("\n"); sb.append(" cvcResultRaw: ").append(toIndentedString(cvcResultRaw)).append("\n"); sb.append(" riskToken: ").append(toIndentedString(riskToken)).append("\n"); - sb.append(" threeDAuthenticated: ") - .append(toIndentedString(threeDAuthenticated)) - .append("\n"); + sb.append(" threeDAuthenticated: ").append(toIndentedString(threeDAuthenticated)).append("\n"); sb.append(" threeDOffered: ").append(toIndentedString(threeDOffered)).append("\n"); sb.append(" tokenDataType: ").append(toIndentedString(tokenDataType)).append("\n"); sb.append("}"); @@ -715,7 +632,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -724,24 +642,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalDataRiskStandalone given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataRiskStandalone - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataRiskStandalone + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataRiskStandalone */ - public static AdditionalDataRiskStandalone fromJson(String jsonString) - throws JsonProcessingException { + public static AdditionalDataRiskStandalone fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataRiskStandalone.class); } - - /** - * Convert an instance of AdditionalDataRiskStandalone to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalDataRiskStandalone to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataSubMerchant.java b/src/main/java/com/adyen/model/checkout/AdditionalDataSubMerchant.java index ba1997bfb..07f66e2fb 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataSubMerchant.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataSubMerchant.java @@ -2,22 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AdditionalDataSubMerchant */ + +/** + * AdditionalDataSubMerchant + */ @JsonPropertyOrder({ AdditionalDataSubMerchant.JSON_PROPERTY_SUB_MERCHANT_NUMBER_OF_SUB_SELLERS, AdditionalDataSubMerchant.JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_CITY, @@ -32,79 +41,61 @@ AdditionalDataSubMerchant.JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STREET, AdditionalDataSubMerchant.JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_TAX_ID }) + public class AdditionalDataSubMerchant { - public static final String JSON_PROPERTY_SUB_MERCHANT_NUMBER_OF_SUB_SELLERS = - "subMerchant.numberOfSubSellers"; + public static final String JSON_PROPERTY_SUB_MERCHANT_NUMBER_OF_SUB_SELLERS = "subMerchant.numberOfSubSellers"; private String subMerchantNumberOfSubSellers; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_CITY = - "subMerchant.subSeller[subSellerNr].city"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_CITY = "subMerchant.subSeller[subSellerNr].city"; private String subMerchantSubSellerSubSellerNrCity; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_COUNTRY = - "subMerchant.subSeller[subSellerNr].country"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_COUNTRY = "subMerchant.subSeller[subSellerNr].country"; private String subMerchantSubSellerSubSellerNrCountry; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_EMAIL = - "subMerchant.subSeller[subSellerNr].email"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_EMAIL = "subMerchant.subSeller[subSellerNr].email"; private String subMerchantSubSellerSubSellerNrEmail; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_ID = - "subMerchant.subSeller[subSellerNr].id"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_ID = "subMerchant.subSeller[subSellerNr].id"; private String subMerchantSubSellerSubSellerNrId; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_MCC = - "subMerchant.subSeller[subSellerNr].mcc"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_MCC = "subMerchant.subSeller[subSellerNr].mcc"; private String subMerchantSubSellerSubSellerNrMcc; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_NAME = - "subMerchant.subSeller[subSellerNr].name"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_NAME = "subMerchant.subSeller[subSellerNr].name"; private String subMerchantSubSellerSubSellerNrName; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_PHONE_NUMBER = - "subMerchant.subSeller[subSellerNr].phoneNumber"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_PHONE_NUMBER = "subMerchant.subSeller[subSellerNr].phoneNumber"; private String subMerchantSubSellerSubSellerNrPhoneNumber; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_POSTAL_CODE = - "subMerchant.subSeller[subSellerNr].postalCode"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_POSTAL_CODE = "subMerchant.subSeller[subSellerNr].postalCode"; private String subMerchantSubSellerSubSellerNrPostalCode; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STATE = - "subMerchant.subSeller[subSellerNr].state"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STATE = "subMerchant.subSeller[subSellerNr].state"; private String subMerchantSubSellerSubSellerNrState; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STREET = - "subMerchant.subSeller[subSellerNr].street"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STREET = "subMerchant.subSeller[subSellerNr].street"; private String subMerchantSubSellerSubSellerNrStreet; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_TAX_ID = - "subMerchant.subSeller[subSellerNr].taxId"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_TAX_ID = "subMerchant.subSeller[subSellerNr].taxId"; private String subMerchantSubSellerSubSellerNrTaxId; - public AdditionalDataSubMerchant() {} + public AdditionalDataSubMerchant() { + } /** - * Required for transactions performed by registered payment facilitators. Indicates the number of - * sub-merchants contained in the request. For example, **3**. + * Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**. * - * @param subMerchantNumberOfSubSellers Required for transactions performed by registered payment - * facilitators. Indicates the number of sub-merchants contained in the request. For example, - * **3**. + * @param subMerchantNumberOfSubSellers Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**. * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantNumberOfSubSellers( - String subMerchantNumberOfSubSellers) { + public AdditionalDataSubMerchant subMerchantNumberOfSubSellers(String subMerchantNumberOfSubSellers) { this.subMerchantNumberOfSubSellers = subMerchantNumberOfSubSellers; return this; } /** - * Required for transactions performed by registered payment facilitators. Indicates the number of - * sub-merchants contained in the request. For example, **3**. - * - * @return subMerchantNumberOfSubSellers Required for transactions performed by registered payment - * facilitators. Indicates the number of sub-merchants contained in the request. For example, - * **3**. + * Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**. + * @return subMerchantNumberOfSubSellers Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_NUMBER_OF_SUB_SELLERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,12 +104,9 @@ public String getSubMerchantNumberOfSubSellers() { } /** - * Required for transactions performed by registered payment facilitators. Indicates the number of - * sub-merchants contained in the request. For example, **3**. + * Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**. * - * @param subMerchantNumberOfSubSellers Required for transactions performed by registered payment - * facilitators. Indicates the number of sub-merchants contained in the request. For example, - * **3**. + * @param subMerchantNumberOfSubSellers Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_NUMBER_OF_SUB_SELLERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,27 +115,19 @@ public void setSubMerchantNumberOfSubSellers(String subMerchantNumberOfSubSeller } /** - * Required for transactions performed by registered payment facilitators. The city of the - * sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters + * Required for transactions performed by registered payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters * - * @param subMerchantSubSellerSubSellerNrCity Required for transactions performed by registered - * payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * - * Maximum length: 13 characters + * @param subMerchantSubSellerSubSellerNrCity Required for transactions performed by registered payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrCity( - String subMerchantSubSellerSubSellerNrCity) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrCity(String subMerchantSubSellerSubSellerNrCity) { this.subMerchantSubSellerSubSellerNrCity = subMerchantSubSellerSubSellerNrCity; return this; } /** - * Required for transactions performed by registered payment facilitators. The city of the - * sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters - * - * @return subMerchantSubSellerSubSellerNrCity Required for transactions performed by registered - * payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * - * Maximum length: 13 characters + * Required for transactions performed by registered payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters + * @return subMerchantSubSellerSubSellerNrCity Required for transactions performed by registered payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,12 +136,9 @@ public String getSubMerchantSubSellerSubSellerNrCity() { } /** - * Required for transactions performed by registered payment facilitators. The city of the - * sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters + * Required for transactions performed by registered payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters * - * @param subMerchantSubSellerSubSellerNrCity Required for transactions performed by registered - * payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * - * Maximum length: 13 characters + * @param subMerchantSubSellerSubSellerNrCity Required for transactions performed by registered payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -170,31 +147,19 @@ public void setSubMerchantSubSellerSubSellerNrCity(String subMerchantSubSellerSu } /** - * Required for transactions performed by registered payment facilitators. The three-letter - * country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO - * 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * Required for transactions performed by registered payment facilitators. The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters * - * @param subMerchantSubSellerSubSellerNrCountry Required for transactions performed by registered - * payment facilitators. The three-letter country code of the sub-merchant's address. For - * example, **BRA** for Brazil. * Format: [ISO 3166-1 - * alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * @param subMerchantSubSellerSubSellerNrCountry Required for transactions performed by registered payment facilitators. The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrCountry( - String subMerchantSubSellerSubSellerNrCountry) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrCountry(String subMerchantSubSellerSubSellerNrCountry) { this.subMerchantSubSellerSubSellerNrCountry = subMerchantSubSellerSubSellerNrCountry; return this; } /** - * Required for transactions performed by registered payment facilitators. The three-letter - * country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO - * 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters - * - * @return subMerchantSubSellerSubSellerNrCountry Required for transactions performed by - * registered payment facilitators. The three-letter country code of the sub-merchant's - * address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 - * alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * Required for transactions performed by registered payment facilitators. The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * @return subMerchantSubSellerSubSellerNrCountry Required for transactions performed by registered payment facilitators. The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -203,44 +168,30 @@ public String getSubMerchantSubSellerSubSellerNrCountry() { } /** - * Required for transactions performed by registered payment facilitators. The three-letter - * country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO - * 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * Required for transactions performed by registered payment facilitators. The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters * - * @param subMerchantSubSellerSubSellerNrCountry Required for transactions performed by registered - * payment facilitators. The three-letter country code of the sub-merchant's address. For - * example, **BRA** for Brazil. * Format: [ISO 3166-1 - * alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * @param subMerchantSubSellerSubSellerNrCountry Required for transactions performed by registered payment facilitators. The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubMerchantSubSellerSubSellerNrCountry( - String subMerchantSubSellerSubSellerNrCountry) { + public void setSubMerchantSubSellerSubSellerNrCountry(String subMerchantSubSellerSubSellerNrCountry) { this.subMerchantSubSellerSubSellerNrCountry = subMerchantSubSellerSubSellerNrCountry; } /** - * Required for transactions performed by registered payment facilitators. The email address of - * the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters + * Required for transactions performed by registered payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters * - * @param subMerchantSubSellerSubSellerNrEmail Required for transactions performed by registered - * payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * - * Maximum length: 40 characters + * @param subMerchantSubSellerSubSellerNrEmail Required for transactions performed by registered payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrEmail( - String subMerchantSubSellerSubSellerNrEmail) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrEmail(String subMerchantSubSellerSubSellerNrEmail) { this.subMerchantSubSellerSubSellerNrEmail = subMerchantSubSellerSubSellerNrEmail; return this; } /** - * Required for transactions performed by registered payment facilitators. The email address of - * the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters - * - * @return subMerchantSubSellerSubSellerNrEmail Required for transactions performed by registered - * payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * - * Maximum length: 40 characters + * Required for transactions performed by registered payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters + * @return subMerchantSubSellerSubSellerNrEmail Required for transactions performed by registered payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -249,12 +200,9 @@ public String getSubMerchantSubSellerSubSellerNrEmail() { } /** - * Required for transactions performed by registered payment facilitators. The email address of - * the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters + * Required for transactions performed by registered payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters * - * @param subMerchantSubSellerSubSellerNrEmail Required for transactions performed by registered - * payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * - * Maximum length: 40 characters + * @param subMerchantSubSellerSubSellerNrEmail Required for transactions performed by registered payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -263,31 +211,19 @@ public void setSubMerchantSubSellerSubSellerNrEmail(String subMerchantSubSellerS } /** - * Required for transactions performed by registered payment facilitators. A unique identifier - * that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: - * Alphanumeric * Maximum length: 15 characters + * Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters * - * @param subMerchantSubSellerSubSellerNrId Required for transactions performed by registered - * payment facilitators. A unique identifier that you create for the sub-merchant, used by - * schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 - * characters + * @param subMerchantSubSellerSubSellerNrId Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrId( - String subMerchantSubSellerSubSellerNrId) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrId(String subMerchantSubSellerSubSellerNrId) { this.subMerchantSubSellerSubSellerNrId = subMerchantSubSellerSubSellerNrId; return this; } /** - * Required for transactions performed by registered payment facilitators. A unique identifier - * that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: - * Alphanumeric * Maximum length: 15 characters - * - * @return subMerchantSubSellerSubSellerNrId Required for transactions performed by registered - * payment facilitators. A unique identifier that you create for the sub-merchant, used by - * schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 - * characters + * Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * @return subMerchantSubSellerSubSellerNrId Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -296,14 +232,9 @@ public String getSubMerchantSubSellerSubSellerNrId() { } /** - * Required for transactions performed by registered payment facilitators. A unique identifier - * that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: - * Alphanumeric * Maximum length: 15 characters + * Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters * - * @param subMerchantSubSellerSubSellerNrId Required for transactions performed by registered - * payment facilitators. A unique identifier that you create for the sub-merchant, used by - * schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 - * characters + * @param subMerchantSubSellerSubSellerNrId Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -312,27 +243,19 @@ public void setSubMerchantSubSellerSubSellerNrId(String subMerchantSubSellerSubS } /** - * Required for transactions performed by registered payment facilitators. The sub-merchant's - * 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits * - * @param subMerchantSubSellerSubSellerNrMcc Required for transactions performed by registered - * payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * - * Format: Numeric * Fixed length: 4 digits + * @param subMerchantSubSellerSubSellerNrMcc Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrMcc( - String subMerchantSubSellerSubSellerNrMcc) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrMcc(String subMerchantSubSellerSubSellerNrMcc) { this.subMerchantSubSellerSubSellerNrMcc = subMerchantSubSellerSubSellerNrMcc; return this; } /** - * Required for transactions performed by registered payment facilitators. The sub-merchant's - * 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits - * - * @return subMerchantSubSellerSubSellerNrMcc Required for transactions performed by registered - * payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * - * Format: Numeric * Fixed length: 4 digits + * Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * @return subMerchantSubSellerSubSellerNrMcc Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -341,12 +264,9 @@ public String getSubMerchantSubSellerSubSellerNrMcc() { } /** - * Required for transactions performed by registered payment facilitators. The sub-merchant's - * 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits * - * @param subMerchantSubSellerSubSellerNrMcc Required for transactions performed by registered - * payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * - * Format: Numeric * Fixed length: 4 digits + * @param subMerchantSubSellerSubSellerNrMcc Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -355,35 +275,19 @@ public void setSubMerchantSubSellerSubSellerNrMcc(String subMerchantSubSellerSub } /** - * Required for transactions performed by registered payment facilitators. The name of the - * sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement - * that will appear in the card statement. Exception: for acquirers in Brazil, this value does not - * overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters + * Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters * - * @param subMerchantSubSellerSubSellerNrName Required for transactions performed by registered - * payment facilitators. The name of the sub-merchant. Based on scheme specifications, this - * value will overwrite the shopper statement that will appear in the card statement. - * Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * - * Format: Alphanumeric * Maximum length: 22 characters + * @param subMerchantSubSellerSubSellerNrName Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrName( - String subMerchantSubSellerSubSellerNrName) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrName(String subMerchantSubSellerSubSellerNrName) { this.subMerchantSubSellerSubSellerNrName = subMerchantSubSellerSubSellerNrName; return this; } /** - * Required for transactions performed by registered payment facilitators. The name of the - * sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement - * that will appear in the card statement. Exception: for acquirers in Brazil, this value does not - * overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters - * - * @return subMerchantSubSellerSubSellerNrName Required for transactions performed by registered - * payment facilitators. The name of the sub-merchant. Based on scheme specifications, this - * value will overwrite the shopper statement that will appear in the card statement. - * Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * - * Format: Alphanumeric * Maximum length: 22 characters + * Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters + * @return subMerchantSubSellerSubSellerNrName Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -392,16 +296,9 @@ public String getSubMerchantSubSellerSubSellerNrName() { } /** - * Required for transactions performed by registered payment facilitators. The name of the - * sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement - * that will appear in the card statement. Exception: for acquirers in Brazil, this value does not - * overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters + * Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters * - * @param subMerchantSubSellerSubSellerNrName Required for transactions performed by registered - * payment facilitators. The name of the sub-merchant. Based on scheme specifications, this - * value will overwrite the shopper statement that will appear in the card statement. - * Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * - * Format: Alphanumeric * Maximum length: 22 characters + * @param subMerchantSubSellerSubSellerNrName Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -410,27 +307,19 @@ public void setSubMerchantSubSellerSubSellerNrName(String subMerchantSubSellerSu } /** - * Required for transactions performed by registered payment facilitators. The phone number of the - * sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters * - * @param subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by - * registered payment facilitators. The phone number of the sub-merchant.* Format: - * Alphanumeric * Maximum length: 20 characters + * @param subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrPhoneNumber( - String subMerchantSubSellerSubSellerNrPhoneNumber) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrPhoneNumber(String subMerchantSubSellerSubSellerNrPhoneNumber) { this.subMerchantSubSellerSubSellerNrPhoneNumber = subMerchantSubSellerSubSellerNrPhoneNumber; return this; } /** - * Required for transactions performed by registered payment facilitators. The phone number of the - * sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters - * - * @return subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by - * registered payment facilitators. The phone number of the sub-merchant.* Format: - * Alphanumeric * Maximum length: 20 characters + * Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * @return subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -439,42 +328,30 @@ public String getSubMerchantSubSellerSubSellerNrPhoneNumber() { } /** - * Required for transactions performed by registered payment facilitators. The phone number of the - * sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters * - * @param subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by - * registered payment facilitators. The phone number of the sub-merchant.* Format: - * Alphanumeric * Maximum length: 20 characters + * @param subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubMerchantSubSellerSubSellerNrPhoneNumber( - String subMerchantSubSellerSubSellerNrPhoneNumber) { + public void setSubMerchantSubSellerSubSellerNrPhoneNumber(String subMerchantSubSellerSubSellerNrPhoneNumber) { this.subMerchantSubSellerSubSellerNrPhoneNumber = subMerchantSubSellerSubSellerNrPhoneNumber; } /** - * Required for transactions performed by registered payment facilitators. The postal code of the - * sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits + * Required for transactions performed by registered payment facilitators. The postal code of the sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits * - * @param subMerchantSubSellerSubSellerNrPostalCode Required for transactions performed by - * registered payment facilitators. The postal code of the sub-merchant's address, without - * dashes. * Format: Numeric * Fixed length: 8 digits + * @param subMerchantSubSellerSubSellerNrPostalCode Required for transactions performed by registered payment facilitators. The postal code of the sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrPostalCode( - String subMerchantSubSellerSubSellerNrPostalCode) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrPostalCode(String subMerchantSubSellerSubSellerNrPostalCode) { this.subMerchantSubSellerSubSellerNrPostalCode = subMerchantSubSellerSubSellerNrPostalCode; return this; } /** - * Required for transactions performed by registered payment facilitators. The postal code of the - * sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits - * - * @return subMerchantSubSellerSubSellerNrPostalCode Required for transactions performed by - * registered payment facilitators. The postal code of the sub-merchant's address, without - * dashes. * Format: Numeric * Fixed length: 8 digits + * Required for transactions performed by registered payment facilitators. The postal code of the sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits + * @return subMerchantSubSellerSubSellerNrPostalCode Required for transactions performed by registered payment facilitators. The postal code of the sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -483,44 +360,30 @@ public String getSubMerchantSubSellerSubSellerNrPostalCode() { } /** - * Required for transactions performed by registered payment facilitators. The postal code of the - * sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits + * Required for transactions performed by registered payment facilitators. The postal code of the sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits * - * @param subMerchantSubSellerSubSellerNrPostalCode Required for transactions performed by - * registered payment facilitators. The postal code of the sub-merchant's address, without - * dashes. * Format: Numeric * Fixed length: 8 digits + * @param subMerchantSubSellerSubSellerNrPostalCode Required for transactions performed by registered payment facilitators. The postal code of the sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubMerchantSubSellerSubSellerNrPostalCode( - String subMerchantSubSellerSubSellerNrPostalCode) { + public void setSubMerchantSubSellerSubSellerNrPostalCode(String subMerchantSubSellerSubSellerNrPostalCode) { this.subMerchantSubSellerSubSellerNrPostalCode = subMerchantSubSellerSubSellerNrPostalCode; } /** - * Required for transactions performed by registered payment facilitators. The state code of the - * sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum - * length: 2 characters + * Required for transactions performed by registered payment facilitators. The state code of the sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum length: 2 characters * - * @param subMerchantSubSellerSubSellerNrState Required for transactions performed by registered - * payment facilitators. The state code of the sub-merchant's address, if applicable to - * the country. * Format: Alphanumeric * Maximum length: 2 characters + * @param subMerchantSubSellerSubSellerNrState Required for transactions performed by registered payment facilitators. The state code of the sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum length: 2 characters * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrState( - String subMerchantSubSellerSubSellerNrState) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrState(String subMerchantSubSellerSubSellerNrState) { this.subMerchantSubSellerSubSellerNrState = subMerchantSubSellerSubSellerNrState; return this; } /** - * Required for transactions performed by registered payment facilitators. The state code of the - * sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum - * length: 2 characters - * - * @return subMerchantSubSellerSubSellerNrState Required for transactions performed by registered - * payment facilitators. The state code of the sub-merchant's address, if applicable to - * the country. * Format: Alphanumeric * Maximum length: 2 characters + * Required for transactions performed by registered payment facilitators. The state code of the sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum length: 2 characters + * @return subMerchantSubSellerSubSellerNrState Required for transactions performed by registered payment facilitators. The state code of the sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum length: 2 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -529,13 +392,9 @@ public String getSubMerchantSubSellerSubSellerNrState() { } /** - * Required for transactions performed by registered payment facilitators. The state code of the - * sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum - * length: 2 characters + * Required for transactions performed by registered payment facilitators. The state code of the sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum length: 2 characters * - * @param subMerchantSubSellerSubSellerNrState Required for transactions performed by registered - * payment facilitators. The state code of the sub-merchant's address, if applicable to - * the country. * Format: Alphanumeric * Maximum length: 2 characters + * @param subMerchantSubSellerSubSellerNrState Required for transactions performed by registered payment facilitators. The state code of the sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum length: 2 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -544,29 +403,19 @@ public void setSubMerchantSubSellerSubSellerNrState(String subMerchantSubSellerS } /** - * Required for transactions performed by registered payment facilitators. The street name and - * house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 - * characters + * Required for transactions performed by registered payment facilitators. The street name and house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 characters * - * @param subMerchantSubSellerSubSellerNrStreet Required for transactions performed by registered - * payment facilitators. The street name and house number of the sub-merchant's address. * - * Format: Alphanumeric * Maximum length: 60 characters + * @param subMerchantSubSellerSubSellerNrStreet Required for transactions performed by registered payment facilitators. The street name and house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 characters * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrStreet( - String subMerchantSubSellerSubSellerNrStreet) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrStreet(String subMerchantSubSellerSubSellerNrStreet) { this.subMerchantSubSellerSubSellerNrStreet = subMerchantSubSellerSubSellerNrStreet; return this; } /** - * Required for transactions performed by registered payment facilitators. The street name and - * house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 - * characters - * - * @return subMerchantSubSellerSubSellerNrStreet Required for transactions performed by registered - * payment facilitators. The street name and house number of the sub-merchant's address. * - * Format: Alphanumeric * Maximum length: 60 characters + * Required for transactions performed by registered payment facilitators. The street name and house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 characters + * @return subMerchantSubSellerSubSellerNrStreet Required for transactions performed by registered payment facilitators. The street name and house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -575,43 +424,30 @@ public String getSubMerchantSubSellerSubSellerNrStreet() { } /** - * Required for transactions performed by registered payment facilitators. The street name and - * house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 - * characters + * Required for transactions performed by registered payment facilitators. The street name and house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 characters * - * @param subMerchantSubSellerSubSellerNrStreet Required for transactions performed by registered - * payment facilitators. The street name and house number of the sub-merchant's address. * - * Format: Alphanumeric * Maximum length: 60 characters + * @param subMerchantSubSellerSubSellerNrStreet Required for transactions performed by registered payment facilitators. The street name and house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubMerchantSubSellerSubSellerNrStreet( - String subMerchantSubSellerSubSellerNrStreet) { + public void setSubMerchantSubSellerSubSellerNrStreet(String subMerchantSubSellerSubSellerNrStreet) { this.subMerchantSubSellerSubSellerNrStreet = subMerchantSubSellerSubSellerNrStreet; } /** - * Required for transactions performed by registered payment facilitators. The tax ID of the - * sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ * - * @param subMerchantSubSellerSubSellerNrTaxId Required for transactions performed by registered - * payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 - * digits for the CPF or 14 digits for the CNPJ + * @param subMerchantSubSellerSubSellerNrTaxId Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrTaxId( - String subMerchantSubSellerSubSellerNrTaxId) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrTaxId(String subMerchantSubSellerSubSellerNrTaxId) { this.subMerchantSubSellerSubSellerNrTaxId = subMerchantSubSellerSubSellerNrTaxId; return this; } /** - * Required for transactions performed by registered payment facilitators. The tax ID of the - * sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ - * - * @return subMerchantSubSellerSubSellerNrTaxId Required for transactions performed by registered - * payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 - * digits for the CPF or 14 digits for the CNPJ + * Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * @return subMerchantSubSellerSubSellerNrTaxId Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_TAX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -620,12 +456,9 @@ public String getSubMerchantSubSellerSubSellerNrTaxId() { } /** - * Required for transactions performed by registered payment facilitators. The tax ID of the - * sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ * - * @param subMerchantSubSellerSubSellerNrTaxId Required for transactions performed by registered - * payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 - * digits for the CPF or 14 digits for the CNPJ + * @param subMerchantSubSellerSubSellerNrTaxId Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_TAX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -633,7 +466,9 @@ public void setSubMerchantSubSellerSubSellerNrTaxId(String subMerchantSubSellerS this.subMerchantSubSellerSubSellerNrTaxId = subMerchantSubSellerSubSellerNrTaxId; } - /** Return true if this AdditionalDataSubMerchant object is equal to o. */ + /** + * Return true if this AdditionalDataSubMerchant object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -643,107 +478,48 @@ public boolean equals(Object o) { return false; } AdditionalDataSubMerchant additionalDataSubMerchant = (AdditionalDataSubMerchant) o; - return Objects.equals( - this.subMerchantNumberOfSubSellers, - additionalDataSubMerchant.subMerchantNumberOfSubSellers) - && Objects.equals( - this.subMerchantSubSellerSubSellerNrCity, - additionalDataSubMerchant.subMerchantSubSellerSubSellerNrCity) - && Objects.equals( - this.subMerchantSubSellerSubSellerNrCountry, - additionalDataSubMerchant.subMerchantSubSellerSubSellerNrCountry) - && Objects.equals( - this.subMerchantSubSellerSubSellerNrEmail, - additionalDataSubMerchant.subMerchantSubSellerSubSellerNrEmail) - && Objects.equals( - this.subMerchantSubSellerSubSellerNrId, - additionalDataSubMerchant.subMerchantSubSellerSubSellerNrId) - && Objects.equals( - this.subMerchantSubSellerSubSellerNrMcc, - additionalDataSubMerchant.subMerchantSubSellerSubSellerNrMcc) - && Objects.equals( - this.subMerchantSubSellerSubSellerNrName, - additionalDataSubMerchant.subMerchantSubSellerSubSellerNrName) - && Objects.equals( - this.subMerchantSubSellerSubSellerNrPhoneNumber, - additionalDataSubMerchant.subMerchantSubSellerSubSellerNrPhoneNumber) - && Objects.equals( - this.subMerchantSubSellerSubSellerNrPostalCode, - additionalDataSubMerchant.subMerchantSubSellerSubSellerNrPostalCode) - && Objects.equals( - this.subMerchantSubSellerSubSellerNrState, - additionalDataSubMerchant.subMerchantSubSellerSubSellerNrState) - && Objects.equals( - this.subMerchantSubSellerSubSellerNrStreet, - additionalDataSubMerchant.subMerchantSubSellerSubSellerNrStreet) - && Objects.equals( - this.subMerchantSubSellerSubSellerNrTaxId, - additionalDataSubMerchant.subMerchantSubSellerSubSellerNrTaxId); + return Objects.equals(this.subMerchantNumberOfSubSellers, additionalDataSubMerchant.subMerchantNumberOfSubSellers) && + Objects.equals(this.subMerchantSubSellerSubSellerNrCity, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrCity) && + Objects.equals(this.subMerchantSubSellerSubSellerNrCountry, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrCountry) && + Objects.equals(this.subMerchantSubSellerSubSellerNrEmail, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrEmail) && + Objects.equals(this.subMerchantSubSellerSubSellerNrId, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrId) && + Objects.equals(this.subMerchantSubSellerSubSellerNrMcc, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrMcc) && + Objects.equals(this.subMerchantSubSellerSubSellerNrName, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrName) && + Objects.equals(this.subMerchantSubSellerSubSellerNrPhoneNumber, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrPhoneNumber) && + Objects.equals(this.subMerchantSubSellerSubSellerNrPostalCode, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrPostalCode) && + Objects.equals(this.subMerchantSubSellerSubSellerNrState, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrState) && + Objects.equals(this.subMerchantSubSellerSubSellerNrStreet, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrStreet) && + Objects.equals(this.subMerchantSubSellerSubSellerNrTaxId, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrTaxId); } @Override public int hashCode() { - return Objects.hash( - subMerchantNumberOfSubSellers, - subMerchantSubSellerSubSellerNrCity, - subMerchantSubSellerSubSellerNrCountry, - subMerchantSubSellerSubSellerNrEmail, - subMerchantSubSellerSubSellerNrId, - subMerchantSubSellerSubSellerNrMcc, - subMerchantSubSellerSubSellerNrName, - subMerchantSubSellerSubSellerNrPhoneNumber, - subMerchantSubSellerSubSellerNrPostalCode, - subMerchantSubSellerSubSellerNrState, - subMerchantSubSellerSubSellerNrStreet, - subMerchantSubSellerSubSellerNrTaxId); + return Objects.hash(subMerchantNumberOfSubSellers, subMerchantSubSellerSubSellerNrCity, subMerchantSubSellerSubSellerNrCountry, subMerchantSubSellerSubSellerNrEmail, subMerchantSubSellerSubSellerNrId, subMerchantSubSellerSubSellerNrMcc, subMerchantSubSellerSubSellerNrName, subMerchantSubSellerSubSellerNrPhoneNumber, subMerchantSubSellerSubSellerNrPostalCode, subMerchantSubSellerSubSellerNrState, subMerchantSubSellerSubSellerNrStreet, subMerchantSubSellerSubSellerNrTaxId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataSubMerchant {\n"); - sb.append(" subMerchantNumberOfSubSellers: ") - .append(toIndentedString(subMerchantNumberOfSubSellers)) - .append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrCity: ") - .append(toIndentedString(subMerchantSubSellerSubSellerNrCity)) - .append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrCountry: ") - .append(toIndentedString(subMerchantSubSellerSubSellerNrCountry)) - .append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrEmail: ") - .append(toIndentedString(subMerchantSubSellerSubSellerNrEmail)) - .append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrId: ") - .append(toIndentedString(subMerchantSubSellerSubSellerNrId)) - .append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrMcc: ") - .append(toIndentedString(subMerchantSubSellerSubSellerNrMcc)) - .append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrName: ") - .append(toIndentedString(subMerchantSubSellerSubSellerNrName)) - .append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrPhoneNumber: ") - .append(toIndentedString(subMerchantSubSellerSubSellerNrPhoneNumber)) - .append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrPostalCode: ") - .append(toIndentedString(subMerchantSubSellerSubSellerNrPostalCode)) - .append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrState: ") - .append(toIndentedString(subMerchantSubSellerSubSellerNrState)) - .append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrStreet: ") - .append(toIndentedString(subMerchantSubSellerSubSellerNrStreet)) - .append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrTaxId: ") - .append(toIndentedString(subMerchantSubSellerSubSellerNrTaxId)) - .append("\n"); + sb.append(" subMerchantNumberOfSubSellers: ").append(toIndentedString(subMerchantNumberOfSubSellers)).append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrCity: ").append(toIndentedString(subMerchantSubSellerSubSellerNrCity)).append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrCountry: ").append(toIndentedString(subMerchantSubSellerSubSellerNrCountry)).append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrEmail: ").append(toIndentedString(subMerchantSubSellerSubSellerNrEmail)).append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrId: ").append(toIndentedString(subMerchantSubSellerSubSellerNrId)).append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrMcc: ").append(toIndentedString(subMerchantSubSellerSubSellerNrMcc)).append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrName: ").append(toIndentedString(subMerchantSubSellerSubSellerNrName)).append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrPhoneNumber: ").append(toIndentedString(subMerchantSubSellerSubSellerNrPhoneNumber)).append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrPostalCode: ").append(toIndentedString(subMerchantSubSellerSubSellerNrPostalCode)).append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrState: ").append(toIndentedString(subMerchantSubSellerSubSellerNrState)).append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrStreet: ").append(toIndentedString(subMerchantSubSellerSubSellerNrStreet)).append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrTaxId: ").append(toIndentedString(subMerchantSubSellerSubSellerNrTaxId)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -752,24 +528,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalDataSubMerchant given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataSubMerchant - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataSubMerchant + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataSubMerchant */ - public static AdditionalDataSubMerchant fromJson(String jsonString) - throws JsonProcessingException { + public static AdditionalDataSubMerchant fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataSubMerchant.class); } - - /** - * Convert an instance of AdditionalDataSubMerchant to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalDataSubMerchant to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataTemporaryServices.java b/src/main/java/com/adyen/model/checkout/AdditionalDataTemporaryServices.java index f27f68c52..955cee6c1 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataTemporaryServices.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataTemporaryServices.java @@ -2,22 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AdditionalDataTemporaryServices */ + +/** + * AdditionalDataTemporaryServices + */ @JsonPropertyOrder({ AdditionalDataTemporaryServices.JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE, AdditionalDataTemporaryServices.JSON_PROPERTY_ENHANCED_SCHEME_DATA_EMPLOYEE_NAME, @@ -29,64 +38,52 @@ AdditionalDataTemporaryServices.JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_WEEK_ENDING, AdditionalDataTemporaryServices.JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT }) + public class AdditionalDataTemporaryServices { - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE = - "enhancedSchemeData.customerReference"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE = "enhancedSchemeData.customerReference"; private String enhancedSchemeDataCustomerReference; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_EMPLOYEE_NAME = - "enhancedSchemeData.employeeName"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_EMPLOYEE_NAME = "enhancedSchemeData.employeeName"; private String enhancedSchemeDataEmployeeName; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_JOB_DESCRIPTION = - "enhancedSchemeData.jobDescription"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_JOB_DESCRIPTION = "enhancedSchemeData.jobDescription"; private String enhancedSchemeDataJobDescription; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_REGULAR_HOURS_RATE = - "enhancedSchemeData.regularHoursRate"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_REGULAR_HOURS_RATE = "enhancedSchemeData.regularHoursRate"; private String enhancedSchemeDataRegularHoursRate; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_REGULAR_HOURS_WORKED = - "enhancedSchemeData.regularHoursWorked"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_REGULAR_HOURS_WORKED = "enhancedSchemeData.regularHoursWorked"; private String enhancedSchemeDataRegularHoursWorked; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_REQUEST_NAME = - "enhancedSchemeData.requestName"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_REQUEST_NAME = "enhancedSchemeData.requestName"; private String enhancedSchemeDataRequestName; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_START_DATE = - "enhancedSchemeData.tempStartDate"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_START_DATE = "enhancedSchemeData.tempStartDate"; private String enhancedSchemeDataTempStartDate; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_WEEK_ENDING = - "enhancedSchemeData.tempWeekEnding"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_WEEK_ENDING = "enhancedSchemeData.tempWeekEnding"; private String enhancedSchemeDataTempWeekEnding; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT = - "enhancedSchemeData.totalTaxAmount"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT = "enhancedSchemeData.totalTaxAmount"; private String enhancedSchemeDataTotalTaxAmount; - public AdditionalDataTemporaryServices() {} + public AdditionalDataTemporaryServices() { + } /** * The customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 * - * @param enhancedSchemeDataCustomerReference The customer code, if supplied by a customer. * - * Encoding: ASCII * maxLength: 25 - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method - * chaining + * @param enhancedSchemeDataCustomerReference The customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataCustomerReference( - String enhancedSchemeDataCustomerReference) { + public AdditionalDataTemporaryServices enhancedSchemeDataCustomerReference(String enhancedSchemeDataCustomerReference) { this.enhancedSchemeDataCustomerReference = enhancedSchemeDataCustomerReference; return this; } /** * The customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 - * - * @return enhancedSchemeDataCustomerReference The customer code, if supplied by a customer. * - * Encoding: ASCII * maxLength: 25 + * @return enhancedSchemeDataCustomerReference The customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,8 +94,7 @@ public String getEnhancedSchemeDataCustomerReference() { /** * The customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 * - * @param enhancedSchemeDataCustomerReference The customer code, if supplied by a customer. * - * Encoding: ASCII * maxLength: 25 + * @param enhancedSchemeDataCustomerReference The customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,26 +103,19 @@ public void setEnhancedSchemeDataCustomerReference(String enhancedSchemeDataCust } /** - * The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be - * all spaces. *Must not be all zeros. + * The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. * - * @param enhancedSchemeDataEmployeeName The name or ID of the person working in a temporary - * capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method - * chaining + * @param enhancedSchemeDataEmployeeName The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataEmployeeName( - String enhancedSchemeDataEmployeeName) { + public AdditionalDataTemporaryServices enhancedSchemeDataEmployeeName(String enhancedSchemeDataEmployeeName) { this.enhancedSchemeDataEmployeeName = enhancedSchemeDataEmployeeName; return this; } /** - * The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be - * all spaces. *Must not be all zeros. - * - * @return enhancedSchemeDataEmployeeName The name or ID of the person working in a temporary - * capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. + * The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. + * @return enhancedSchemeDataEmployeeName The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_EMPLOYEE_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,11 +124,9 @@ public String getEnhancedSchemeDataEmployeeName() { } /** - * The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be - * all spaces. *Must not be all zeros. + * The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. * - * @param enhancedSchemeDataEmployeeName The name or ID of the person working in a temporary - * capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. + * @param enhancedSchemeDataEmployeeName The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_EMPLOYEE_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,26 +135,19 @@ public void setEnhancedSchemeDataEmployeeName(String enhancedSchemeDataEmployeeN } /** - * The job description of the person working in a temporary capacity. * maxLength: 40 * Must not - * be all spaces. *Must not be all zeros. + * The job description of the person working in a temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. * - * @param enhancedSchemeDataJobDescription The job description of the person working in a - * temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method - * chaining + * @param enhancedSchemeDataJobDescription The job description of the person working in a temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataJobDescription( - String enhancedSchemeDataJobDescription) { + public AdditionalDataTemporaryServices enhancedSchemeDataJobDescription(String enhancedSchemeDataJobDescription) { this.enhancedSchemeDataJobDescription = enhancedSchemeDataJobDescription; return this; } /** - * The job description of the person working in a temporary capacity. * maxLength: 40 * Must not - * be all spaces. *Must not be all zeros. - * - * @return enhancedSchemeDataJobDescription The job description of the person working in a - * temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. + * The job description of the person working in a temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. + * @return enhancedSchemeDataJobDescription The job description of the person working in a temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_JOB_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,11 +156,9 @@ public String getEnhancedSchemeDataJobDescription() { } /** - * The job description of the person working in a temporary capacity. * maxLength: 40 * Must not - * be all spaces. *Must not be all zeros. + * The job description of the person working in a temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. * - * @param enhancedSchemeDataJobDescription The job description of the person working in a - * temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. + * @param enhancedSchemeDataJobDescription The job description of the person working in a temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_JOB_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,30 +167,19 @@ public void setEnhancedSchemeDataJobDescription(String enhancedSchemeDataJobDesc } /** - * The amount paid for regular hours worked, [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not - * be empty * Can be all zeros + * The amount paid for regular hours worked, [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not be empty * Can be all zeros * - * @param enhancedSchemeDataRegularHoursRate The amount paid for regular hours worked, [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must - * not be empty * Can be all zeros - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method - * chaining + * @param enhancedSchemeDataRegularHoursRate The amount paid for regular hours worked, [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not be empty * Can be all zeros + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataRegularHoursRate( - String enhancedSchemeDataRegularHoursRate) { + public AdditionalDataTemporaryServices enhancedSchemeDataRegularHoursRate(String enhancedSchemeDataRegularHoursRate) { this.enhancedSchemeDataRegularHoursRate = enhancedSchemeDataRegularHoursRate; return this; } /** - * The amount paid for regular hours worked, [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not - * be empty * Can be all zeros - * - * @return enhancedSchemeDataRegularHoursRate The amount paid for regular hours worked, [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must - * not be empty * Can be all zeros + * The amount paid for regular hours worked, [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not be empty * Can be all zeros + * @return enhancedSchemeDataRegularHoursRate The amount paid for regular hours worked, [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not be empty * Can be all zeros */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_REGULAR_HOURS_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,13 +188,9 @@ public String getEnhancedSchemeDataRegularHoursRate() { } /** - * The amount paid for regular hours worked, [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not - * be empty * Can be all zeros + * The amount paid for regular hours worked, [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not be empty * Can be all zeros * - * @param enhancedSchemeDataRegularHoursRate The amount paid for regular hours worked, [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must - * not be empty * Can be all zeros + * @param enhancedSchemeDataRegularHoursRate The amount paid for regular hours worked, [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not be empty * Can be all zeros */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_REGULAR_HOURS_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -238,22 +201,17 @@ public void setEnhancedSchemeDataRegularHoursRate(String enhancedSchemeDataRegul /** * The hours worked. * maxLength: 7 * Must not be empty * Can be all zeros * - * @param enhancedSchemeDataRegularHoursWorked The hours worked. * maxLength: 7 * Must not be - * empty * Can be all zeros - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method - * chaining + * @param enhancedSchemeDataRegularHoursWorked The hours worked. * maxLength: 7 * Must not be empty * Can be all zeros + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataRegularHoursWorked( - String enhancedSchemeDataRegularHoursWorked) { + public AdditionalDataTemporaryServices enhancedSchemeDataRegularHoursWorked(String enhancedSchemeDataRegularHoursWorked) { this.enhancedSchemeDataRegularHoursWorked = enhancedSchemeDataRegularHoursWorked; return this; } /** * The hours worked. * maxLength: 7 * Must not be empty * Can be all zeros - * - * @return enhancedSchemeDataRegularHoursWorked The hours worked. * maxLength: 7 * Must not be - * empty * Can be all zeros + * @return enhancedSchemeDataRegularHoursWorked The hours worked. * maxLength: 7 * Must not be empty * Can be all zeros */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_REGULAR_HOURS_WORKED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -264,8 +222,7 @@ public String getEnhancedSchemeDataRegularHoursWorked() { /** * The hours worked. * maxLength: 7 * Must not be empty * Can be all zeros * - * @param enhancedSchemeDataRegularHoursWorked The hours worked. * maxLength: 7 * Must not be - * empty * Can be all zeros + * @param enhancedSchemeDataRegularHoursWorked The hours worked. * maxLength: 7 * Must not be empty * Can be all zeros */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_REGULAR_HOURS_WORKED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -274,26 +231,19 @@ public void setEnhancedSchemeDataRegularHoursWorked(String enhancedSchemeDataReg } /** - * The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * - * Must not be all spaces + * The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * Must not be all spaces * - * @param enhancedSchemeDataRequestName The name of the person requesting temporary services. * - * maxLength: 40 * Must not be all zeros * Must not be all spaces - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method - * chaining + * @param enhancedSchemeDataRequestName The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * Must not be all spaces + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataRequestName( - String enhancedSchemeDataRequestName) { + public AdditionalDataTemporaryServices enhancedSchemeDataRequestName(String enhancedSchemeDataRequestName) { this.enhancedSchemeDataRequestName = enhancedSchemeDataRequestName; return this; } /** - * The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * - * Must not be all spaces - * - * @return enhancedSchemeDataRequestName The name of the person requesting temporary services. * - * maxLength: 40 * Must not be all zeros * Must not be all spaces + * The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * Must not be all spaces + * @return enhancedSchemeDataRequestName The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * Must not be all spaces */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_REQUEST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -302,11 +252,9 @@ public String getEnhancedSchemeDataRequestName() { } /** - * The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * - * Must not be all spaces + * The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * Must not be all spaces * - * @param enhancedSchemeDataRequestName The name of the person requesting temporary services. * - * maxLength: 40 * Must not be all zeros * Must not be all spaces + * @param enhancedSchemeDataRequestName The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * Must not be all spaces */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_REQUEST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -317,22 +265,17 @@ public void setEnhancedSchemeDataRequestName(String enhancedSchemeDataRequestNam /** * The billing period start date. * Format: ddMMyy * maxLength: 6 * - * @param enhancedSchemeDataTempStartDate The billing period start date. * Format: ddMMyy * - * maxLength: 6 - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method - * chaining + * @param enhancedSchemeDataTempStartDate The billing period start date. * Format: ddMMyy * maxLength: 6 + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataTempStartDate( - String enhancedSchemeDataTempStartDate) { + public AdditionalDataTemporaryServices enhancedSchemeDataTempStartDate(String enhancedSchemeDataTempStartDate) { this.enhancedSchemeDataTempStartDate = enhancedSchemeDataTempStartDate; return this; } /** * The billing period start date. * Format: ddMMyy * maxLength: 6 - * - * @return enhancedSchemeDataTempStartDate The billing period start date. * Format: ddMMyy * - * maxLength: 6 + * @return enhancedSchemeDataTempStartDate The billing period start date. * Format: ddMMyy * maxLength: 6 */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_START_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -343,8 +286,7 @@ public String getEnhancedSchemeDataTempStartDate() { /** * The billing period start date. * Format: ddMMyy * maxLength: 6 * - * @param enhancedSchemeDataTempStartDate The billing period start date. * Format: ddMMyy * - * maxLength: 6 + * @param enhancedSchemeDataTempStartDate The billing period start date. * Format: ddMMyy * maxLength: 6 */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_START_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -355,22 +297,17 @@ public void setEnhancedSchemeDataTempStartDate(String enhancedSchemeDataTempStar /** * The billing period end date. * Format: ddMMyy * maxLength: 6 * - * @param enhancedSchemeDataTempWeekEnding The billing period end date. * Format: ddMMyy * - * maxLength: 6 - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method - * chaining + * @param enhancedSchemeDataTempWeekEnding The billing period end date. * Format: ddMMyy * maxLength: 6 + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataTempWeekEnding( - String enhancedSchemeDataTempWeekEnding) { + public AdditionalDataTemporaryServices enhancedSchemeDataTempWeekEnding(String enhancedSchemeDataTempWeekEnding) { this.enhancedSchemeDataTempWeekEnding = enhancedSchemeDataTempWeekEnding; return this; } /** * The billing period end date. * Format: ddMMyy * maxLength: 6 - * - * @return enhancedSchemeDataTempWeekEnding The billing period end date. * Format: ddMMyy * - * maxLength: 6 + * @return enhancedSchemeDataTempWeekEnding The billing period end date. * Format: ddMMyy * maxLength: 6 */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_WEEK_ENDING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -381,8 +318,7 @@ public String getEnhancedSchemeDataTempWeekEnding() { /** * The billing period end date. * Format: ddMMyy * maxLength: 6 * - * @param enhancedSchemeDataTempWeekEnding The billing period end date. * Format: ddMMyy * - * maxLength: 6 + * @param enhancedSchemeDataTempWeekEnding The billing period end date. * Format: ddMMyy * maxLength: 6 */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_WEEK_ENDING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -391,30 +327,19 @@ public void setEnhancedSchemeDataTempWeekEnding(String enhancedSchemeDataTempWee } /** - * The total tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means - * USD 20.00 * maxLength: 12 + * The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00 * maxLength: 12 * - * @param enhancedSchemeDataTotalTaxAmount The total tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 - * means USD 20.00 * maxLength: 12 - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method - * chaining + * @param enhancedSchemeDataTotalTaxAmount The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00 * maxLength: 12 + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataTotalTaxAmount( - String enhancedSchemeDataTotalTaxAmount) { + public AdditionalDataTemporaryServices enhancedSchemeDataTotalTaxAmount(String enhancedSchemeDataTotalTaxAmount) { this.enhancedSchemeDataTotalTaxAmount = enhancedSchemeDataTotalTaxAmount; return this; } /** - * The total tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means - * USD 20.00 * maxLength: 12 - * - * @return enhancedSchemeDataTotalTaxAmount The total tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 - * means USD 20.00 * maxLength: 12 + * The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00 * maxLength: 12 + * @return enhancedSchemeDataTotalTaxAmount The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00 * maxLength: 12 */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -423,13 +348,9 @@ public String getEnhancedSchemeDataTotalTaxAmount() { } /** - * The total tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means - * USD 20.00 * maxLength: 12 + * The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00 * maxLength: 12 * - * @param enhancedSchemeDataTotalTaxAmount The total tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 - * means USD 20.00 * maxLength: 12 + * @param enhancedSchemeDataTotalTaxAmount The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00 * maxLength: 12 */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -437,7 +358,9 @@ public void setEnhancedSchemeDataTotalTaxAmount(String enhancedSchemeDataTotalTa this.enhancedSchemeDataTotalTaxAmount = enhancedSchemeDataTotalTaxAmount; } - /** Return true if this AdditionalDataTemporaryServices object is equal to o. */ + /** + * Return true if this AdditionalDataTemporaryServices object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -446,88 +369,43 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AdditionalDataTemporaryServices additionalDataTemporaryServices = - (AdditionalDataTemporaryServices) o; - return Objects.equals( - this.enhancedSchemeDataCustomerReference, - additionalDataTemporaryServices.enhancedSchemeDataCustomerReference) - && Objects.equals( - this.enhancedSchemeDataEmployeeName, - additionalDataTemporaryServices.enhancedSchemeDataEmployeeName) - && Objects.equals( - this.enhancedSchemeDataJobDescription, - additionalDataTemporaryServices.enhancedSchemeDataJobDescription) - && Objects.equals( - this.enhancedSchemeDataRegularHoursRate, - additionalDataTemporaryServices.enhancedSchemeDataRegularHoursRate) - && Objects.equals( - this.enhancedSchemeDataRegularHoursWorked, - additionalDataTemporaryServices.enhancedSchemeDataRegularHoursWorked) - && Objects.equals( - this.enhancedSchemeDataRequestName, - additionalDataTemporaryServices.enhancedSchemeDataRequestName) - && Objects.equals( - this.enhancedSchemeDataTempStartDate, - additionalDataTemporaryServices.enhancedSchemeDataTempStartDate) - && Objects.equals( - this.enhancedSchemeDataTempWeekEnding, - additionalDataTemporaryServices.enhancedSchemeDataTempWeekEnding) - && Objects.equals( - this.enhancedSchemeDataTotalTaxAmount, - additionalDataTemporaryServices.enhancedSchemeDataTotalTaxAmount); + AdditionalDataTemporaryServices additionalDataTemporaryServices = (AdditionalDataTemporaryServices) o; + return Objects.equals(this.enhancedSchemeDataCustomerReference, additionalDataTemporaryServices.enhancedSchemeDataCustomerReference) && + Objects.equals(this.enhancedSchemeDataEmployeeName, additionalDataTemporaryServices.enhancedSchemeDataEmployeeName) && + Objects.equals(this.enhancedSchemeDataJobDescription, additionalDataTemporaryServices.enhancedSchemeDataJobDescription) && + Objects.equals(this.enhancedSchemeDataRegularHoursRate, additionalDataTemporaryServices.enhancedSchemeDataRegularHoursRate) && + Objects.equals(this.enhancedSchemeDataRegularHoursWorked, additionalDataTemporaryServices.enhancedSchemeDataRegularHoursWorked) && + Objects.equals(this.enhancedSchemeDataRequestName, additionalDataTemporaryServices.enhancedSchemeDataRequestName) && + Objects.equals(this.enhancedSchemeDataTempStartDate, additionalDataTemporaryServices.enhancedSchemeDataTempStartDate) && + Objects.equals(this.enhancedSchemeDataTempWeekEnding, additionalDataTemporaryServices.enhancedSchemeDataTempWeekEnding) && + Objects.equals(this.enhancedSchemeDataTotalTaxAmount, additionalDataTemporaryServices.enhancedSchemeDataTotalTaxAmount); } @Override public int hashCode() { - return Objects.hash( - enhancedSchemeDataCustomerReference, - enhancedSchemeDataEmployeeName, - enhancedSchemeDataJobDescription, - enhancedSchemeDataRegularHoursRate, - enhancedSchemeDataRegularHoursWorked, - enhancedSchemeDataRequestName, - enhancedSchemeDataTempStartDate, - enhancedSchemeDataTempWeekEnding, - enhancedSchemeDataTotalTaxAmount); + return Objects.hash(enhancedSchemeDataCustomerReference, enhancedSchemeDataEmployeeName, enhancedSchemeDataJobDescription, enhancedSchemeDataRegularHoursRate, enhancedSchemeDataRegularHoursWorked, enhancedSchemeDataRequestName, enhancedSchemeDataTempStartDate, enhancedSchemeDataTempWeekEnding, enhancedSchemeDataTotalTaxAmount); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataTemporaryServices {\n"); - sb.append(" enhancedSchemeDataCustomerReference: ") - .append(toIndentedString(enhancedSchemeDataCustomerReference)) - .append("\n"); - sb.append(" enhancedSchemeDataEmployeeName: ") - .append(toIndentedString(enhancedSchemeDataEmployeeName)) - .append("\n"); - sb.append(" enhancedSchemeDataJobDescription: ") - .append(toIndentedString(enhancedSchemeDataJobDescription)) - .append("\n"); - sb.append(" enhancedSchemeDataRegularHoursRate: ") - .append(toIndentedString(enhancedSchemeDataRegularHoursRate)) - .append("\n"); - sb.append(" enhancedSchemeDataRegularHoursWorked: ") - .append(toIndentedString(enhancedSchemeDataRegularHoursWorked)) - .append("\n"); - sb.append(" enhancedSchemeDataRequestName: ") - .append(toIndentedString(enhancedSchemeDataRequestName)) - .append("\n"); - sb.append(" enhancedSchemeDataTempStartDate: ") - .append(toIndentedString(enhancedSchemeDataTempStartDate)) - .append("\n"); - sb.append(" enhancedSchemeDataTempWeekEnding: ") - .append(toIndentedString(enhancedSchemeDataTempWeekEnding)) - .append("\n"); - sb.append(" enhancedSchemeDataTotalTaxAmount: ") - .append(toIndentedString(enhancedSchemeDataTotalTaxAmount)) - .append("\n"); + sb.append(" enhancedSchemeDataCustomerReference: ").append(toIndentedString(enhancedSchemeDataCustomerReference)).append("\n"); + sb.append(" enhancedSchemeDataEmployeeName: ").append(toIndentedString(enhancedSchemeDataEmployeeName)).append("\n"); + sb.append(" enhancedSchemeDataJobDescription: ").append(toIndentedString(enhancedSchemeDataJobDescription)).append("\n"); + sb.append(" enhancedSchemeDataRegularHoursRate: ").append(toIndentedString(enhancedSchemeDataRegularHoursRate)).append("\n"); + sb.append(" enhancedSchemeDataRegularHoursWorked: ").append(toIndentedString(enhancedSchemeDataRegularHoursWorked)).append("\n"); + sb.append(" enhancedSchemeDataRequestName: ").append(toIndentedString(enhancedSchemeDataRequestName)).append("\n"); + sb.append(" enhancedSchemeDataTempStartDate: ").append(toIndentedString(enhancedSchemeDataTempStartDate)).append("\n"); + sb.append(" enhancedSchemeDataTempWeekEnding: ").append(toIndentedString(enhancedSchemeDataTempWeekEnding)).append("\n"); + sb.append(" enhancedSchemeDataTotalTaxAmount: ").append(toIndentedString(enhancedSchemeDataTotalTaxAmount)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -536,24 +414,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalDataTemporaryServices given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataTemporaryServices - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataTemporaryServices + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataTemporaryServices */ - public static AdditionalDataTemporaryServices fromJson(String jsonString) - throws JsonProcessingException { + public static AdditionalDataTemporaryServices fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataTemporaryServices.class); } - - /** - * Convert an instance of AdditionalDataTemporaryServices to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalDataTemporaryServices to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataWallets.java b/src/main/java/com/adyen/model/checkout/AdditionalDataWallets.java index d5c3315b8..968829d05 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataWallets.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataWallets.java @@ -2,22 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AdditionalDataWallets */ + +/** + * AdditionalDataWallets + */ @JsonPropertyOrder({ AdditionalDataWallets.JSON_PROPERTY_ANDROIDPAY_TOKEN, AdditionalDataWallets.JSON_PROPERTY_MASTERPASS_TRANSACTION_ID, @@ -26,6 +35,7 @@ AdditionalDataWallets.JSON_PROPERTY_SAMSUNGPAY_TOKEN, AdditionalDataWallets.JSON_PROPERTY_VISACHECKOUT_CALL_ID }) + public class AdditionalDataWallets { public static final String JSON_PROPERTY_ANDROIDPAY_TOKEN = "androidpay.token"; private String androidpayToken; @@ -45,7 +55,8 @@ public class AdditionalDataWallets { public static final String JSON_PROPERTY_VISACHECKOUT_CALL_ID = "visacheckout.callId"; private String visacheckoutCallId; - public AdditionalDataWallets() {} + public AdditionalDataWallets() { + } /** * The Android Pay token retrieved from the SDK. @@ -60,7 +71,6 @@ public AdditionalDataWallets androidpayToken(String androidpayToken) { /** * The Android Pay token retrieved from the SDK. - * * @return androidpayToken The Android Pay token retrieved from the SDK. */ @JsonProperty(JSON_PROPERTY_ANDROIDPAY_TOKEN) @@ -93,9 +103,7 @@ public AdditionalDataWallets masterpassTransactionId(String masterpassTransactio /** * The Mastercard Masterpass Transaction ID retrieved from the SDK. - * - * @return masterpassTransactionId The Mastercard Masterpass Transaction ID retrieved from the - * SDK. + * @return masterpassTransactionId The Mastercard Masterpass Transaction ID retrieved from the SDK. */ @JsonProperty(JSON_PROPERTY_MASTERPASS_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,7 +135,6 @@ public AdditionalDataWallets paymentToken(String paymentToken) { /** * The Apple Pay token retrieved from the SDK. - * * @return paymentToken The Apple Pay token retrieved from the SDK. */ @JsonProperty(JSON_PROPERTY_PAYMENT_TOKEN) @@ -160,7 +167,6 @@ public AdditionalDataWallets paywithgoogleToken(String paywithgoogleToken) { /** * The Google Pay token retrieved from the SDK. - * * @return paywithgoogleToken The Google Pay token retrieved from the SDK. */ @JsonProperty(JSON_PROPERTY_PAYWITHGOOGLE_TOKEN) @@ -193,7 +199,6 @@ public AdditionalDataWallets samsungpayToken(String samsungpayToken) { /** * The Samsung Pay token retrieved from the SDK. - * * @return samsungpayToken The Samsung Pay token retrieved from the SDK. */ @JsonProperty(JSON_PROPERTY_SAMSUNGPAY_TOKEN) @@ -226,7 +231,6 @@ public AdditionalDataWallets visacheckoutCallId(String visacheckoutCallId) { /** * The Visa Checkout Call ID retrieved from the SDK. - * * @return visacheckoutCallId The Visa Checkout Call ID retrieved from the SDK. */ @JsonProperty(JSON_PROPERTY_VISACHECKOUT_CALL_ID) @@ -246,7 +250,9 @@ public void setVisacheckoutCallId(String visacheckoutCallId) { this.visacheckoutCallId = visacheckoutCallId; } - /** Return true if this AdditionalDataWallets object is equal to o. */ + /** + * Return true if this AdditionalDataWallets object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -256,24 +262,17 @@ public boolean equals(Object o) { return false; } AdditionalDataWallets additionalDataWallets = (AdditionalDataWallets) o; - return Objects.equals(this.androidpayToken, additionalDataWallets.androidpayToken) - && Objects.equals( - this.masterpassTransactionId, additionalDataWallets.masterpassTransactionId) - && Objects.equals(this.paymentToken, additionalDataWallets.paymentToken) - && Objects.equals(this.paywithgoogleToken, additionalDataWallets.paywithgoogleToken) - && Objects.equals(this.samsungpayToken, additionalDataWallets.samsungpayToken) - && Objects.equals(this.visacheckoutCallId, additionalDataWallets.visacheckoutCallId); + return Objects.equals(this.androidpayToken, additionalDataWallets.androidpayToken) && + Objects.equals(this.masterpassTransactionId, additionalDataWallets.masterpassTransactionId) && + Objects.equals(this.paymentToken, additionalDataWallets.paymentToken) && + Objects.equals(this.paywithgoogleToken, additionalDataWallets.paywithgoogleToken) && + Objects.equals(this.samsungpayToken, additionalDataWallets.samsungpayToken) && + Objects.equals(this.visacheckoutCallId, additionalDataWallets.visacheckoutCallId); } @Override public int hashCode() { - return Objects.hash( - androidpayToken, - masterpassTransactionId, - paymentToken, - paywithgoogleToken, - samsungpayToken, - visacheckoutCallId); + return Objects.hash(androidpayToken, masterpassTransactionId, paymentToken, paywithgoogleToken, samsungpayToken, visacheckoutCallId); } @Override @@ -281,9 +280,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataWallets {\n"); sb.append(" androidpayToken: ").append(toIndentedString(androidpayToken)).append("\n"); - sb.append(" masterpassTransactionId: ") - .append(toIndentedString(masterpassTransactionId)) - .append("\n"); + sb.append(" masterpassTransactionId: ").append(toIndentedString(masterpassTransactionId)).append("\n"); sb.append(" paymentToken: ").append(toIndentedString(paymentToken)).append("\n"); sb.append(" paywithgoogleToken: ").append(toIndentedString(paywithgoogleToken)).append("\n"); sb.append(" samsungpayToken: ").append(toIndentedString(samsungpayToken)).append("\n"); @@ -293,7 +290,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -302,23 +300,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalDataWallets given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataWallets - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataWallets + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataWallets */ public static AdditionalDataWallets fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataWallets.class); } - - /** - * Convert an instance of AdditionalDataWallets to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalDataWallets to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Address.java b/src/main/java/com/adyen/model/checkout/Address.java index b8f2434e7..f171efcd7 100644 --- a/src/main/java/com/adyen/model/checkout/Address.java +++ b/src/main/java/com/adyen/model/checkout/Address.java @@ -2,22 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Address */ + +/** + * Address + */ @JsonPropertyOrder({ Address.JSON_PROPERTY_CITY, Address.JSON_PROPERTY_COUNTRY, @@ -26,6 +35,7 @@ Address.JSON_PROPERTY_STATE_OR_PROVINCE, Address.JSON_PROPERTY_STREET }) + public class Address { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -45,7 +55,8 @@ public class Address { public static final String JSON_PROPERTY_STREET = "street"; private String street; - public Address() {} + public Address() { + } /** * The name of the city. Maximum length: 3000 characters. @@ -60,7 +71,6 @@ public Address city(String city) { /** * The name of the city. Maximum length: 3000 characters. - * * @return city The name of the city. Maximum length: 3000 characters. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -81,13 +91,9 @@ public void setCity(String city) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't - * know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If - * you don't know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. * @return the current {@code Address} instance, allowing for method chaining */ public Address country(String country) { @@ -96,13 +102,8 @@ public Address country(String country) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't - * know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. - * - * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If - * you don't know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,13 +112,9 @@ public String getCountry() { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't - * know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If - * you don't know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,7 +135,6 @@ public Address houseNumberOrName(String houseNumberOrName) { /** * The number or name of the house. Maximum length: 3000 characters. - * * @return houseNumberOrName The number or name of the house. Maximum length: 3000 characters. */ @JsonProperty(JSON_PROPERTY_HOUSE_NUMBER_OR_NAME) @@ -159,11 +155,9 @@ public void setHouseNumberOrName(String houseNumberOrName) { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an - * address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. * - * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten - * characters for an address in all other countries. + * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. * @return the current {@code Address} instance, allowing for method chaining */ public Address postalCode(String postalCode) { @@ -172,11 +166,8 @@ public Address postalCode(String postalCode) { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an - * address in all other countries. - * - * @return postalCode A maximum of five digits for an address in the US, or a maximum of ten - * characters for an address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * @return postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,11 +176,9 @@ public String getPostalCode() { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an - * address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. * - * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten - * characters for an address in all other countries. + * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,11 +187,9 @@ public void setPostalCode(String postalCode) { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** - * in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. * @return the current {@code Address} instance, allowing for method chaining */ public Address stateOrProvince(String stateOrProvince) { @@ -211,11 +198,8 @@ public Address stateOrProvince(String stateOrProvince) { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. - * - * @return stateOrProvince The two-character ISO 3166-2 state or province code. For example, - * **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * @return stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,11 +208,9 @@ public String getStateOrProvince() { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** - * in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,12 +219,9 @@ public void setStateOrProvince(String stateOrProvince) { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be - * included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. * - * @param street The name of the street. Maximum length: 3000 characters. > The house number - * should not be included in this field; it should be separately provided via - * `houseNumberOrName`. + * @param street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. * @return the current {@code Address} instance, allowing for method chaining */ public Address street(String street) { @@ -251,12 +230,8 @@ public Address street(String street) { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be - * included in this field; it should be separately provided via `houseNumberOrName`. - * - * @return street The name of the street. Maximum length: 3000 characters. > The house number - * should not be included in this field; it should be separately provided via - * `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * @return street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -265,12 +240,9 @@ public String getStreet() { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be - * included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. * - * @param street The name of the street. Maximum length: 3000 characters. > The house number - * should not be included in this field; it should be separately provided via - * `houseNumberOrName`. + * @param street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -278,7 +250,9 @@ public void setStreet(String street) { this.street = street; } - /** Return true if this Address object is equal to o. */ + /** + * Return true if this Address object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -288,12 +262,12 @@ public boolean equals(Object o) { return false; } Address address = (Address) o; - return Objects.equals(this.city, address.city) - && Objects.equals(this.country, address.country) - && Objects.equals(this.houseNumberOrName, address.houseNumberOrName) - && Objects.equals(this.postalCode, address.postalCode) - && Objects.equals(this.stateOrProvince, address.stateOrProvince) - && Objects.equals(this.street, address.street); + return Objects.equals(this.city, address.city) && + Objects.equals(this.country, address.country) && + Objects.equals(this.houseNumberOrName, address.houseNumberOrName) && + Objects.equals(this.postalCode, address.postalCode) && + Objects.equals(this.stateOrProvince, address.stateOrProvince) && + Objects.equals(this.street, address.street); } @Override @@ -316,7 +290,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -325,7 +300,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Address given an JSON string * * @param jsonString JSON string @@ -335,12 +310,11 @@ private String toIndentedString(Object o) { public static Address fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Address.class); } - - /** - * Convert an instance of Address to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Address to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AffirmDetails.java b/src/main/java/com/adyen/model/checkout/AffirmDetails.java index 9ff5682df..0de27dc43 100644 --- a/src/main/java/com/adyen/model/checkout/AffirmDetails.java +++ b/src/main/java/com/adyen/model/checkout/AffirmDetails.java @@ -2,36 +2,45 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** AffirmDetails */ + +/** + * AffirmDetails + */ @JsonPropertyOrder({ AffirmDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, AffirmDetails.JSON_PROPERTY_TYPE }) + public class AffirmDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; - /** **affirm** */ + /** + * **affirm** + */ public enum TypeEnum { + AFFIRM(String.valueOf("affirm")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -39,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -72,7 +77,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AffirmDetails() {} + public AffirmDetails() { + } /** * The checkout attempt identifier. @@ -87,7 +93,6 @@ public AffirmDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -120,7 +125,6 @@ public AffirmDetails type(TypeEnum type) { /** * **affirm** - * * @return type **affirm** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -140,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this AffirmDetails object is equal to o. */ + /** + * Return true if this AffirmDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -150,8 +156,8 @@ public boolean equals(Object o) { return false; } AffirmDetails affirmDetails = (AffirmDetails) o; - return Objects.equals(this.checkoutAttemptId, affirmDetails.checkoutAttemptId) - && Objects.equals(this.type, affirmDetails.type); + return Objects.equals(this.checkoutAttemptId, affirmDetails.checkoutAttemptId) && + Objects.equals(this.type, affirmDetails.type); } @Override @@ -170,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -179,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AffirmDetails given an JSON string * * @param jsonString JSON string @@ -189,12 +196,11 @@ private String toIndentedString(Object o) { public static AffirmDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AffirmDetails.class); } - - /** - * Convert an instance of AffirmDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AffirmDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AfterpayDetails.java b/src/main/java/com/adyen/model/checkout/AfterpayDetails.java index e6c353358..996c858b9 100644 --- a/src/main/java/com/adyen/model/checkout/AfterpayDetails.java +++ b/src/main/java/com/adyen/model/checkout/AfterpayDetails.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** AfterpayDetails */ + +/** + * AfterpayDetails + */ @JsonPropertyOrder({ AfterpayDetails.JSON_PROPERTY_BILLING_ADDRESS, AfterpayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, @@ -31,6 +36,7 @@ AfterpayDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, AfterpayDetails.JSON_PROPERTY_TYPE }) + public class AfterpayDetails { public static final String JSON_PROPERTY_BILLING_ADDRESS = "billingAddress"; private String billingAddress; @@ -51,8 +57,11 @@ public class AfterpayDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** **afterpay_default** */ + /** + * **afterpay_default** + */ public enum TypeEnum { + AFTERPAY_DEFAULT(String.valueOf("afterpay_default")), AFTERPAYTOUCH(String.valueOf("afterpaytouch")), @@ -66,7 +75,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -87,11 +96,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -99,7 +104,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AfterpayDetails() {} + public AfterpayDetails() { + } /** * The address where to send the invoice. @@ -114,7 +120,6 @@ public AfterpayDetails billingAddress(String billingAddress) { /** * The address where to send the invoice. - * * @return billingAddress The address where to send the invoice. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @@ -147,7 +152,6 @@ public AfterpayDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -180,7 +184,6 @@ public AfterpayDetails deliveryAddress(String deliveryAddress) { /** * The address where the goods should be delivered. - * * @return deliveryAddress The address where the goods should be delivered. */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @@ -213,7 +216,6 @@ public AfterpayDetails personalDetails(String personalDetails) { /** * Shopper name, date of birth, phone number, and email address. - * * @return personalDetails Shopper name, date of birth, phone number, and email address. */ @JsonProperty(JSON_PROPERTY_PERSONAL_DETAILS) @@ -234,13 +236,13 @@ public void setPersonalDetails(String personalDetails) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code AfterpayDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public AfterpayDetails recurringDetailReference(String recurringDetailReference) { @@ -249,11 +251,8 @@ public AfterpayDetails recurringDetailReference(String recurringDetailReference) } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -264,12 +263,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -279,11 +278,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code AfterpayDetails} instance, allowing for method chaining */ public AfterpayDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -292,11 +289,8 @@ public AfterpayDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -305,11 +299,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -330,7 +322,6 @@ public AfterpayDetails type(TypeEnum type) { /** * **afterpay_default** - * * @return type **afterpay_default** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -350,7 +341,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this AfterpayDetails object is equal to o. */ + /** + * Return true if this AfterpayDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -360,25 +353,18 @@ public boolean equals(Object o) { return false; } AfterpayDetails afterpayDetails = (AfterpayDetails) o; - return Objects.equals(this.billingAddress, afterpayDetails.billingAddress) - && Objects.equals(this.checkoutAttemptId, afterpayDetails.checkoutAttemptId) - && Objects.equals(this.deliveryAddress, afterpayDetails.deliveryAddress) - && Objects.equals(this.personalDetails, afterpayDetails.personalDetails) - && Objects.equals(this.recurringDetailReference, afterpayDetails.recurringDetailReference) - && Objects.equals(this.storedPaymentMethodId, afterpayDetails.storedPaymentMethodId) - && Objects.equals(this.type, afterpayDetails.type); + return Objects.equals(this.billingAddress, afterpayDetails.billingAddress) && + Objects.equals(this.checkoutAttemptId, afterpayDetails.checkoutAttemptId) && + Objects.equals(this.deliveryAddress, afterpayDetails.deliveryAddress) && + Objects.equals(this.personalDetails, afterpayDetails.personalDetails) && + Objects.equals(this.recurringDetailReference, afterpayDetails.recurringDetailReference) && + Objects.equals(this.storedPaymentMethodId, afterpayDetails.storedPaymentMethodId) && + Objects.equals(this.type, afterpayDetails.type); } @Override public int hashCode() { - return Objects.hash( - billingAddress, - checkoutAttemptId, - deliveryAddress, - personalDetails, - recurringDetailReference, - storedPaymentMethodId, - type); + return Objects.hash(billingAddress, checkoutAttemptId, deliveryAddress, personalDetails, recurringDetailReference, storedPaymentMethodId, type); } @Override @@ -389,19 +375,16 @@ public String toString() { sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" deliveryAddress: ").append(toIndentedString(deliveryAddress)).append("\n"); sb.append(" personalDetails: ").append(toIndentedString(personalDetails)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -410,7 +393,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AfterpayDetails given an JSON string * * @param jsonString JSON string @@ -420,12 +403,11 @@ private String toIndentedString(Object o) { public static AfterpayDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AfterpayDetails.class); } - - /** - * Convert an instance of AfterpayDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AfterpayDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Agency.java b/src/main/java/com/adyen/model/checkout/Agency.java index 1f4e0105e..ae1c557a7 100644 --- a/src/main/java/com/adyen/model/checkout/Agency.java +++ b/src/main/java/com/adyen/model/checkout/Agency.java @@ -2,23 +2,36 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Agency */ -@JsonPropertyOrder({Agency.JSON_PROPERTY_INVOICE_NUMBER, Agency.JSON_PROPERTY_PLAN_NAME}) + +/** + * Agency + */ +@JsonPropertyOrder({ + Agency.JSON_PROPERTY_INVOICE_NUMBER, + Agency.JSON_PROPERTY_PLAN_NAME +}) + public class Agency { public static final String JSON_PROPERTY_INVOICE_NUMBER = "invoiceNumber"; private String invoiceNumber; @@ -26,14 +39,13 @@ public class Agency { public static final String JSON_PROPERTY_PLAN_NAME = "planName"; private String planName; - public Agency() {} + public Agency() { + } /** - * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 - * character * maxLength: 6 characters + * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters * - * @param invoiceNumber The reference number for the invoice, issued by the agency. * Encoding: - * ASCII * minLength: 1 character * maxLength: 6 characters + * @param invoiceNumber The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters * @return the current {@code Agency} instance, allowing for method chaining */ public Agency invoiceNumber(String invoiceNumber) { @@ -42,11 +54,8 @@ public Agency invoiceNumber(String invoiceNumber) { } /** - * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 - * character * maxLength: 6 characters - * - * @return invoiceNumber The reference number for the invoice, issued by the agency. * Encoding: - * ASCII * minLength: 1 character * maxLength: 6 characters + * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters + * @return invoiceNumber The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters */ @JsonProperty(JSON_PROPERTY_INVOICE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -55,11 +64,9 @@ public String getInvoiceNumber() { } /** - * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 - * character * maxLength: 6 characters + * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters * - * @param invoiceNumber The reference number for the invoice, issued by the agency. * Encoding: - * ASCII * minLength: 1 character * maxLength: 6 characters + * @param invoiceNumber The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters */ @JsonProperty(JSON_PROPERTY_INVOICE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,11 +75,9 @@ public void setInvoiceNumber(String invoiceNumber) { } /** - * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: - * 2 characters + * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters * - * @param planName The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 - * characters * maxLength: 2 characters + * @param planName The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters * @return the current {@code Agency} instance, allowing for method chaining */ public Agency planName(String planName) { @@ -81,11 +86,8 @@ public Agency planName(String planName) { } /** - * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: - * 2 characters - * - * @return planName The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 - * characters * maxLength: 2 characters + * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters + * @return planName The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters */ @JsonProperty(JSON_PROPERTY_PLAN_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,11 +96,9 @@ public String getPlanName() { } /** - * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: - * 2 characters + * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters * - * @param planName The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 - * characters * maxLength: 2 characters + * @param planName The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters */ @JsonProperty(JSON_PROPERTY_PLAN_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,7 +106,9 @@ public void setPlanName(String planName) { this.planName = planName; } - /** Return true if this Agency object is equal to o. */ + /** + * Return true if this Agency object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -116,8 +118,8 @@ public boolean equals(Object o) { return false; } Agency agency = (Agency) o; - return Objects.equals(this.invoiceNumber, agency.invoiceNumber) - && Objects.equals(this.planName, agency.planName); + return Objects.equals(this.invoiceNumber, agency.invoiceNumber) && + Objects.equals(this.planName, agency.planName); } @Override @@ -136,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Agency given an JSON string * * @param jsonString JSON string @@ -155,12 +158,11 @@ private String toIndentedString(Object o) { public static Agency fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Agency.class); } - - /** - * Convert an instance of Agency to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Agency to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Airline.java b/src/main/java/com/adyen/model/checkout/Airline.java index 96e8b1138..fd74a9095 100644 --- a/src/main/java/com/adyen/model/checkout/Airline.java +++ b/src/main/java/com/adyen/model/checkout/Airline.java @@ -2,25 +2,39 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Agency; +import com.adyen.model.checkout.Leg; +import com.adyen.model.checkout.Passenger; +import com.adyen.model.checkout.Ticket; +import com.adyen.model.checkout.TravelAgency; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; -import java.util.*; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** Airline */ + +/** + * Airline + */ @JsonPropertyOrder({ Airline.JSON_PROPERTY_AGENCY, Airline.JSON_PROPERTY_BOARDING_FEE, @@ -36,6 +50,7 @@ Airline.JSON_PROPERTY_TICKET, Airline.JSON_PROPERTY_TRAVEL_AGENCY }) + public class Airline { public static final String JSON_PROPERTY_AGENCY = "agency"; private Agency agency; @@ -46,8 +61,7 @@ public class Airline { public static final String JSON_PROPERTY_CODE = "code"; private String code; - public static final String JSON_PROPERTY_COMPUTERIZED_RESERVATION_SYSTEM = - "computerizedReservationSystem"; + public static final String JSON_PROPERTY_COMPUTERIZED_RESERVATION_SYSTEM = "computerizedReservationSystem"; private String computerizedReservationSystem; public static final String JSON_PROPERTY_CUSTOMER_REFERENCE_NUMBER = "customerReferenceNumber"; @@ -77,12 +91,13 @@ public class Airline { public static final String JSON_PROPERTY_TRAVEL_AGENCY = "travelAgency"; private TravelAgency travelAgency; - public Airline() {} + public Airline() { + } /** * agency * - * @param agency + * @param agency * @return the current {@code Airline} instance, allowing for method chaining */ public Airline agency(Agency agency) { @@ -92,8 +107,7 @@ public Airline agency(Agency agency) { /** * Get agency - * - * @return agency + * @return agency */ @JsonProperty(JSON_PROPERTY_AGENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,7 +118,7 @@ public Agency getAgency() { /** * agency * - * @param agency + * @param agency */ @JsonProperty(JSON_PROPERTY_AGENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,13 +127,9 @@ public void setAgency(Agency agency) { } /** - * The amount charged for boarding the plane, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * - * minLength: 1 character * maxLength: 11 characters + * The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 11 characters * - * @param boardingFee The amount charged for boarding the plane, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * - * minLength: 1 character * maxLength: 11 characters + * @param boardingFee The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 11 characters * @return the current {@code Airline} instance, allowing for method chaining */ public Airline boardingFee(Long boardingFee) { @@ -128,13 +138,8 @@ public Airline boardingFee(Long boardingFee) { } /** - * The amount charged for boarding the plane, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * - * minLength: 1 character * maxLength: 11 characters - * - * @return boardingFee The amount charged for boarding the plane, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * - * minLength: 1 character * maxLength: 11 characters + * The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 11 characters + * @return boardingFee The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 11 characters */ @JsonProperty(JSON_PROPERTY_BOARDING_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,13 +148,9 @@ public Long getBoardingFee() { } /** - * The amount charged for boarding the plane, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * - * minLength: 1 character * maxLength: 11 characters + * The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 11 characters * - * @param boardingFee The amount charged for boarding the plane, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * - * minLength: 1 character * maxLength: 11 characters + * @param boardingFee The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 11 characters */ @JsonProperty(JSON_PROPERTY_BOARDING_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,15 +159,9 @@ public void setBoardingFee(Long boardingFee) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that - * identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 - * * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all - * spaces. * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param code The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code - * (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: - * KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not start with a - * space or be all spaces. * Must not be all zeros. + * @param code The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. * @return the current {@code Airline} instance, allowing for method chaining */ public Airline code(String code) { @@ -175,15 +170,8 @@ public Airline code(String code) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that - * identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 - * * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all - * spaces. * Must not be all zeros. - * - * @return code The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code - * (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: - * KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not start with a - * space or be all spaces. * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @return code The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,15 +180,9 @@ public String getCode() { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that - * identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 - * * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all - * spaces. * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param code The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code - * (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: - * KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not start with a - * space or be all spaces. * Must not be all zeros. + * @param code The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -209,14 +191,9 @@ public void setCode(String code) { } /** - * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the - * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 - * characters + * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters * - * @param computerizedReservationSystem The - * [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the - * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * - * maxLength: 4 characters + * @param computerizedReservationSystem The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters * @return the current {@code Airline} instance, allowing for method chaining */ public Airline computerizedReservationSystem(String computerizedReservationSystem) { @@ -225,14 +202,8 @@ public Airline computerizedReservationSystem(String computerizedReservationSyste } /** - * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the - * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 - * characters - * - * @return computerizedReservationSystem The - * [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the - * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * - * maxLength: 4 characters + * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters + * @return computerizedReservationSystem The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters */ @JsonProperty(JSON_PROPERTY_COMPUTERIZED_RESERVATION_SYSTEM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -241,14 +212,9 @@ public String getComputerizedReservationSystem() { } /** - * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the - * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 - * characters + * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters * - * @param computerizedReservationSystem The - * [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the - * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * - * maxLength: 4 characters + * @param computerizedReservationSystem The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters */ @JsonProperty(JSON_PROPERTY_COMPUTERIZED_RESERVATION_SYSTEM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -257,13 +223,9 @@ public void setComputerizedReservationSystem(String computerizedReservationSyste } /** - * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If - * you send more than 20 characters, the customer reference number is truncated * Must not start - * with a space or be all spaces. + * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not start with a space or be all spaces. * - * @param customerReferenceNumber The alphanumeric customer reference number. * Encoding: ASCII * - * maxLength: 20 characters * If you send more than 20 characters, the customer reference - * number is truncated * Must not start with a space or be all spaces. + * @param customerReferenceNumber The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not start with a space or be all spaces. * @return the current {@code Airline} instance, allowing for method chaining */ public Airline customerReferenceNumber(String customerReferenceNumber) { @@ -272,13 +234,8 @@ public Airline customerReferenceNumber(String customerReferenceNumber) { } /** - * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If - * you send more than 20 characters, the customer reference number is truncated * Must not start - * with a space or be all spaces. - * - * @return customerReferenceNumber The alphanumeric customer reference number. * Encoding: ASCII * - * maxLength: 20 characters * If you send more than 20 characters, the customer reference - * number is truncated * Must not start with a space or be all spaces. + * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not start with a space or be all spaces. + * @return customerReferenceNumber The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not start with a space or be all spaces. */ @JsonProperty(JSON_PROPERTY_CUSTOMER_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -287,13 +244,9 @@ public String getCustomerReferenceNumber() { } /** - * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If - * you send more than 20 characters, the customer reference number is truncated * Must not start - * with a space or be all spaces. + * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not start with a space or be all spaces. * - * @param customerReferenceNumber The alphanumeric customer reference number. * Encoding: ASCII * - * maxLength: 20 characters * If you send more than 20 characters, the customer reference - * number is truncated * Must not start with a space or be all spaces. + * @param customerReferenceNumber The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not start with a space or be all spaces. */ @JsonProperty(JSON_PROPERTY_CUSTOMER_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -302,14 +255,9 @@ public void setCustomerReferenceNumber(String customerReferenceNumber) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that - * identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * - * maxLength: 2 characters * Must not start with a space or be all spaces. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. * - * @param designatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter - * accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = - * KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be - * all spaces. + * @param designatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. * @return the current {@code Airline} instance, allowing for method chaining */ public Airline designatorCode(String designatorCode) { @@ -318,14 +266,8 @@ public Airline designatorCode(String designatorCode) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that - * identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * - * maxLength: 2 characters * Must not start with a space or be all spaces. - * - * @return designatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter - * accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = - * KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be - * all spaces. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. + * @return designatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. */ @JsonProperty(JSON_PROPERTY_DESIGNATOR_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -334,14 +276,9 @@ public String getDesignatorCode() { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that - * identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * - * maxLength: 2 characters * Must not start with a space or be all spaces. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. * - * @param designatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter - * accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = - * KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be - * all spaces. + * @param designatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. */ @JsonProperty(JSON_PROPERTY_DESIGNATOR_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -350,13 +287,9 @@ public void setDesignatorCode(String designatorCode) { } /** - * A code that identifies the type of item bought. The description of the code can appear on - * credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 - * characters * maxLength: 2 characters + * A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters * - * @param documentType A code that identifies the type of item bought. The description of the code - * can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = - * 01 * minLength: 2 characters * maxLength: 2 characters + * @param documentType A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters * @return the current {@code Airline} instance, allowing for method chaining */ public Airline documentType(String documentType) { @@ -365,13 +298,8 @@ public Airline documentType(String documentType) { } /** - * A code that identifies the type of item bought. The description of the code can appear on - * credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 - * characters * maxLength: 2 characters - * - * @return documentType A code that identifies the type of item bought. The description of the - * code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket - * = 01 * minLength: 2 characters * maxLength: 2 characters + * A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters + * @return documentType A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters */ @JsonProperty(JSON_PROPERTY_DOCUMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -380,13 +308,9 @@ public String getDocumentType() { } /** - * A code that identifies the type of item bought. The description of the code can appear on - * credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 - * characters * maxLength: 2 characters + * A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters * - * @param documentType A code that identifies the type of item bought. The description of the code - * can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = - * 01 * minLength: 2 characters * maxLength: 2 characters + * @param documentType A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters */ @JsonProperty(JSON_PROPERTY_DOCUMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -395,13 +319,9 @@ public void setDocumentType(String documentType) { } /** - * The flight departure date. Time is optional. * Format for date only: `yyyy-MM-dd` * - * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local time of departure airport. * - * minLength: 10 characters * maxLength: 16 characters + * The flight departure date. Time is optional. * Format for date only: `yyyy-MM-dd` * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local time of departure airport. * minLength: 10 characters * maxLength: 16 characters * - * @param flightDate The flight departure date. Time is optional. * Format for date only: - * `yyyy-MM-dd` * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local - * time of departure airport. * minLength: 10 characters * maxLength: 16 characters + * @param flightDate The flight departure date. Time is optional. * Format for date only: `yyyy-MM-dd` * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local time of departure airport. * minLength: 10 characters * maxLength: 16 characters * @return the current {@code Airline} instance, allowing for method chaining */ public Airline flightDate(OffsetDateTime flightDate) { @@ -410,13 +330,8 @@ public Airline flightDate(OffsetDateTime flightDate) { } /** - * The flight departure date. Time is optional. * Format for date only: `yyyy-MM-dd` * - * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local time of departure airport. * - * minLength: 10 characters * maxLength: 16 characters - * - * @return flightDate The flight departure date. Time is optional. * Format for date only: - * `yyyy-MM-dd` * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local - * time of departure airport. * minLength: 10 characters * maxLength: 16 characters + * The flight departure date. Time is optional. * Format for date only: `yyyy-MM-dd` * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local time of departure airport. * minLength: 10 characters * maxLength: 16 characters + * @return flightDate The flight departure date. Time is optional. * Format for date only: `yyyy-MM-dd` * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local time of departure airport. * minLength: 10 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_FLIGHT_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -425,13 +340,9 @@ public OffsetDateTime getFlightDate() { } /** - * The flight departure date. Time is optional. * Format for date only: `yyyy-MM-dd` * - * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local time of departure airport. * - * minLength: 10 characters * maxLength: 16 characters + * The flight departure date. Time is optional. * Format for date only: `yyyy-MM-dd` * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local time of departure airport. * minLength: 10 characters * maxLength: 16 characters * - * @param flightDate The flight departure date. Time is optional. * Format for date only: - * `yyyy-MM-dd` * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local - * time of departure airport. * minLength: 10 characters * maxLength: 16 characters + * @param flightDate The flight departure date. Time is optional. * Format for date only: `yyyy-MM-dd` * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local time of departure airport. * minLength: 10 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_FLIGHT_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -442,7 +353,7 @@ public void setFlightDate(OffsetDateTime flightDate) { /** * legs * - * @param legs + * @param legs * @return the current {@code Airline} instance, allowing for method chaining */ public Airline legs(List legs) { @@ -460,8 +371,7 @@ public Airline addLegsItem(Leg legsItem) { /** * Get legs - * - * @return legs + * @return legs */ @JsonProperty(JSON_PROPERTY_LEGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -472,7 +382,7 @@ public List getLegs() { /** * legs * - * @param legs + * @param legs */ @JsonProperty(JSON_PROPERTY_LEGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -481,15 +391,9 @@ public void setLegs(List legs) { } /** - * The passenger's name, initials, and title. * Format: last name + first name or initials + - * title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you - * send more than 20 characters, the name is truncated * Must not start with a space or be all - * spaces. * Must not be all zeros. + * The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param passengerName The passenger's name, initials, and title. * Format: last name + first - * name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: - * 20 characters * If you send more than 20 characters, the name is truncated * Must not start - * with a space or be all spaces. * Must not be all zeros. + * @param passengerName The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not start with a space or be all spaces. * Must not be all zeros. * @return the current {@code Airline} instance, allowing for method chaining */ public Airline passengerName(String passengerName) { @@ -498,15 +402,8 @@ public Airline passengerName(String passengerName) { } /** - * The passenger's name, initials, and title. * Format: last name + first name or initials + - * title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you - * send more than 20 characters, the name is truncated * Must not start with a space or be all - * spaces. * Must not be all zeros. - * - * @return passengerName The passenger's name, initials, and title. * Format: last name + - * first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * - * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * - * Must not start with a space or be all spaces. * Must not be all zeros. + * The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not start with a space or be all spaces. * Must not be all zeros. + * @return passengerName The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_PASSENGER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -515,15 +412,9 @@ public String getPassengerName() { } /** - * The passenger's name, initials, and title. * Format: last name + first name or initials + - * title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you - * send more than 20 characters, the name is truncated * Must not start with a space or be all - * spaces. * Must not be all zeros. + * The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param passengerName The passenger's name, initials, and title. * Format: last name + first - * name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: - * 20 characters * If you send more than 20 characters, the name is truncated * Must not start - * with a space or be all spaces. * Must not be all zeros. + * @param passengerName The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_PASSENGER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -534,7 +425,7 @@ public void setPassengerName(String passengerName) { /** * passengers * - * @param passengers + * @param passengers * @return the current {@code Airline} instance, allowing for method chaining */ public Airline passengers(List passengers) { @@ -552,8 +443,7 @@ public Airline addPassengersItem(Passenger passengersItem) { /** * Get passengers - * - * @return passengers + * @return passengers */ @JsonProperty(JSON_PROPERTY_PASSENGERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -564,7 +454,7 @@ public List getPassengers() { /** * passengers * - * @param passengers + * @param passengers */ @JsonProperty(JSON_PROPERTY_PASSENGERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -575,7 +465,7 @@ public void setPassengers(List passengers) { /** * ticket * - * @param ticket + * @param ticket * @return the current {@code Airline} instance, allowing for method chaining */ public Airline ticket(Ticket ticket) { @@ -585,8 +475,7 @@ public Airline ticket(Ticket ticket) { /** * Get ticket - * - * @return ticket + * @return ticket */ @JsonProperty(JSON_PROPERTY_TICKET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -597,7 +486,7 @@ public Ticket getTicket() { /** * ticket * - * @param ticket + * @param ticket */ @JsonProperty(JSON_PROPERTY_TICKET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -608,7 +497,7 @@ public void setTicket(Ticket ticket) { /** * travelAgency * - * @param travelAgency + * @param travelAgency * @return the current {@code Airline} instance, allowing for method chaining */ public Airline travelAgency(TravelAgency travelAgency) { @@ -618,8 +507,7 @@ public Airline travelAgency(TravelAgency travelAgency) { /** * Get travelAgency - * - * @return travelAgency + * @return travelAgency */ @JsonProperty(JSON_PROPERTY_TRAVEL_AGENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -630,7 +518,7 @@ public TravelAgency getTravelAgency() { /** * travelAgency * - * @param travelAgency + * @param travelAgency */ @JsonProperty(JSON_PROPERTY_TRAVEL_AGENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -638,7 +526,9 @@ public void setTravelAgency(TravelAgency travelAgency) { this.travelAgency = travelAgency; } - /** Return true if this Airline object is equal to o. */ + /** + * Return true if this Airline object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -648,37 +538,24 @@ public boolean equals(Object o) { return false; } Airline airline = (Airline) o; - return Objects.equals(this.agency, airline.agency) - && Objects.equals(this.boardingFee, airline.boardingFee) - && Objects.equals(this.code, airline.code) - && Objects.equals(this.computerizedReservationSystem, airline.computerizedReservationSystem) - && Objects.equals(this.customerReferenceNumber, airline.customerReferenceNumber) - && Objects.equals(this.designatorCode, airline.designatorCode) - && Objects.equals(this.documentType, airline.documentType) - && Objects.equals(this.flightDate, airline.flightDate) - && Objects.equals(this.legs, airline.legs) - && Objects.equals(this.passengerName, airline.passengerName) - && Objects.equals(this.passengers, airline.passengers) - && Objects.equals(this.ticket, airline.ticket) - && Objects.equals(this.travelAgency, airline.travelAgency); + return Objects.equals(this.agency, airline.agency) && + Objects.equals(this.boardingFee, airline.boardingFee) && + Objects.equals(this.code, airline.code) && + Objects.equals(this.computerizedReservationSystem, airline.computerizedReservationSystem) && + Objects.equals(this.customerReferenceNumber, airline.customerReferenceNumber) && + Objects.equals(this.designatorCode, airline.designatorCode) && + Objects.equals(this.documentType, airline.documentType) && + Objects.equals(this.flightDate, airline.flightDate) && + Objects.equals(this.legs, airline.legs) && + Objects.equals(this.passengerName, airline.passengerName) && + Objects.equals(this.passengers, airline.passengers) && + Objects.equals(this.ticket, airline.ticket) && + Objects.equals(this.travelAgency, airline.travelAgency); } @Override public int hashCode() { - return Objects.hash( - agency, - boardingFee, - code, - computerizedReservationSystem, - customerReferenceNumber, - designatorCode, - documentType, - flightDate, - legs, - passengerName, - passengers, - ticket, - travelAgency); + return Objects.hash(agency, boardingFee, code, computerizedReservationSystem, customerReferenceNumber, designatorCode, documentType, flightDate, legs, passengerName, passengers, ticket, travelAgency); } @Override @@ -688,12 +565,8 @@ public String toString() { sb.append(" agency: ").append(toIndentedString(agency)).append("\n"); sb.append(" boardingFee: ").append(toIndentedString(boardingFee)).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" computerizedReservationSystem: ") - .append(toIndentedString(computerizedReservationSystem)) - .append("\n"); - sb.append(" customerReferenceNumber: ") - .append(toIndentedString(customerReferenceNumber)) - .append("\n"); + sb.append(" computerizedReservationSystem: ").append(toIndentedString(computerizedReservationSystem)).append("\n"); + sb.append(" customerReferenceNumber: ").append(toIndentedString(customerReferenceNumber)).append("\n"); sb.append(" designatorCode: ").append(toIndentedString(designatorCode)).append("\n"); sb.append(" documentType: ").append(toIndentedString(documentType)).append("\n"); sb.append(" flightDate: ").append(toIndentedString(flightDate)).append("\n"); @@ -707,7 +580,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -716,7 +590,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Airline given an JSON string * * @param jsonString JSON string @@ -726,12 +600,11 @@ private String toIndentedString(Object o) { public static Airline fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Airline.class); } - - /** - * Convert an instance of Airline to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Airline to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AmazonPayDetails.java b/src/main/java/com/adyen/model/checkout/AmazonPayDetails.java index 023946dd0..51b8b8b53 100644 --- a/src/main/java/com/adyen/model/checkout/AmazonPayDetails.java +++ b/src/main/java/com/adyen/model/checkout/AmazonPayDetails.java @@ -2,32 +2,38 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** AmazonPayDetails */ + +/** + * AmazonPayDetails + */ @JsonPropertyOrder({ AmazonPayDetails.JSON_PROPERTY_AMAZON_PAY_TOKEN, AmazonPayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, AmazonPayDetails.JSON_PROPERTY_CHECKOUT_SESSION_ID, AmazonPayDetails.JSON_PROPERTY_TYPE }) + public class AmazonPayDetails { public static final String JSON_PROPERTY_AMAZON_PAY_TOKEN = "amazonPayToken"; private String amazonPayToken; @@ -38,8 +44,11 @@ public class AmazonPayDetails { public static final String JSON_PROPERTY_CHECKOUT_SESSION_ID = "checkoutSessionId"; private String checkoutSessionId; - /** **amazonpay** */ + /** + * **amazonpay** + */ public enum TypeEnum { + AMAZONPAY(String.valueOf("amazonpay")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -47,7 +56,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -68,11 +77,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -80,17 +85,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AmazonPayDetails() {} + public AmazonPayDetails() { + } /** - * This is the `amazonPayToken` that you obtained from the [Get Checkout - * Session](https://amazon-pay-acquirer-guide.s3-eu-west-1.amazonaws.com/v1/amazon-pay-api-v2/checkout-session.html#get-checkout-session) - * response. This token is used for API only integration specifically. + * This is the `amazonPayToken` that you obtained from the [Get Checkout Session](https://amazon-pay-acquirer-guide.s3-eu-west-1.amazonaws.com/v1/amazon-pay-api-v2/checkout-session.html#get-checkout-session) response. This token is used for API only integration specifically. * - * @param amazonPayToken This is the `amazonPayToken` that you obtained from the [Get - * Checkout - * Session](https://amazon-pay-acquirer-guide.s3-eu-west-1.amazonaws.com/v1/amazon-pay-api-v2/checkout-session.html#get-checkout-session) - * response. This token is used for API only integration specifically. + * @param amazonPayToken This is the `amazonPayToken` that you obtained from the [Get Checkout Session](https://amazon-pay-acquirer-guide.s3-eu-west-1.amazonaws.com/v1/amazon-pay-api-v2/checkout-session.html#get-checkout-session) response. This token is used for API only integration specifically. * @return the current {@code AmazonPayDetails} instance, allowing for method chaining */ public AmazonPayDetails amazonPayToken(String amazonPayToken) { @@ -99,14 +100,8 @@ public AmazonPayDetails amazonPayToken(String amazonPayToken) { } /** - * This is the `amazonPayToken` that you obtained from the [Get Checkout - * Session](https://amazon-pay-acquirer-guide.s3-eu-west-1.amazonaws.com/v1/amazon-pay-api-v2/checkout-session.html#get-checkout-session) - * response. This token is used for API only integration specifically. - * - * @return amazonPayToken This is the `amazonPayToken` that you obtained from the [Get - * Checkout - * Session](https://amazon-pay-acquirer-guide.s3-eu-west-1.amazonaws.com/v1/amazon-pay-api-v2/checkout-session.html#get-checkout-session) - * response. This token is used for API only integration specifically. + * This is the `amazonPayToken` that you obtained from the [Get Checkout Session](https://amazon-pay-acquirer-guide.s3-eu-west-1.amazonaws.com/v1/amazon-pay-api-v2/checkout-session.html#get-checkout-session) response. This token is used for API only integration specifically. + * @return amazonPayToken This is the `amazonPayToken` that you obtained from the [Get Checkout Session](https://amazon-pay-acquirer-guide.s3-eu-west-1.amazonaws.com/v1/amazon-pay-api-v2/checkout-session.html#get-checkout-session) response. This token is used for API only integration specifically. */ @JsonProperty(JSON_PROPERTY_AMAZON_PAY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,14 +110,9 @@ public String getAmazonPayToken() { } /** - * This is the `amazonPayToken` that you obtained from the [Get Checkout - * Session](https://amazon-pay-acquirer-guide.s3-eu-west-1.amazonaws.com/v1/amazon-pay-api-v2/checkout-session.html#get-checkout-session) - * response. This token is used for API only integration specifically. + * This is the `amazonPayToken` that you obtained from the [Get Checkout Session](https://amazon-pay-acquirer-guide.s3-eu-west-1.amazonaws.com/v1/amazon-pay-api-v2/checkout-session.html#get-checkout-session) response. This token is used for API only integration specifically. * - * @param amazonPayToken This is the `amazonPayToken` that you obtained from the [Get - * Checkout - * Session](https://amazon-pay-acquirer-guide.s3-eu-west-1.amazonaws.com/v1/amazon-pay-api-v2/checkout-session.html#get-checkout-session) - * response. This token is used for API only integration specifically. + * @param amazonPayToken This is the `amazonPayToken` that you obtained from the [Get Checkout Session](https://amazon-pay-acquirer-guide.s3-eu-west-1.amazonaws.com/v1/amazon-pay-api-v2/checkout-session.html#get-checkout-session) response. This token is used for API only integration specifically. */ @JsonProperty(JSON_PROPERTY_AMAZON_PAY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,7 +133,6 @@ public AmazonPayDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -164,13 +153,9 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * The `checkoutSessionId` is used to identify the checkout session at the Amazon Pay - * side. This field is required only for drop-in and components integration, where it replaces the - * amazonPayToken. + * The `checkoutSessionId` is used to identify the checkout session at the Amazon Pay side. This field is required only for drop-in and components integration, where it replaces the amazonPayToken. * - * @param checkoutSessionId The `checkoutSessionId` is used to identify the checkout - * session at the Amazon Pay side. This field is required only for drop-in and components - * integration, where it replaces the amazonPayToken. + * @param checkoutSessionId The `checkoutSessionId` is used to identify the checkout session at the Amazon Pay side. This field is required only for drop-in and components integration, where it replaces the amazonPayToken. * @return the current {@code AmazonPayDetails} instance, allowing for method chaining */ public AmazonPayDetails checkoutSessionId(String checkoutSessionId) { @@ -179,13 +164,8 @@ public AmazonPayDetails checkoutSessionId(String checkoutSessionId) { } /** - * The `checkoutSessionId` is used to identify the checkout session at the Amazon Pay - * side. This field is required only for drop-in and components integration, where it replaces the - * amazonPayToken. - * - * @return checkoutSessionId The `checkoutSessionId` is used to identify the checkout - * session at the Amazon Pay side. This field is required only for drop-in and components - * integration, where it replaces the amazonPayToken. + * The `checkoutSessionId` is used to identify the checkout session at the Amazon Pay side. This field is required only for drop-in and components integration, where it replaces the amazonPayToken. + * @return checkoutSessionId The `checkoutSessionId` is used to identify the checkout session at the Amazon Pay side. This field is required only for drop-in and components integration, where it replaces the amazonPayToken. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_SESSION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,13 +174,9 @@ public String getCheckoutSessionId() { } /** - * The `checkoutSessionId` is used to identify the checkout session at the Amazon Pay - * side. This field is required only for drop-in and components integration, where it replaces the - * amazonPayToken. + * The `checkoutSessionId` is used to identify the checkout session at the Amazon Pay side. This field is required only for drop-in and components integration, where it replaces the amazonPayToken. * - * @param checkoutSessionId The `checkoutSessionId` is used to identify the checkout - * session at the Amazon Pay side. This field is required only for drop-in and components - * integration, where it replaces the amazonPayToken. + * @param checkoutSessionId The `checkoutSessionId` is used to identify the checkout session at the Amazon Pay side. This field is required only for drop-in and components integration, where it replaces the amazonPayToken. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_SESSION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,7 +197,6 @@ public AmazonPayDetails type(TypeEnum type) { /** * **amazonpay** - * * @return type **amazonpay** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -241,7 +216,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this AmazonPayDetails object is equal to o. */ + /** + * Return true if this AmazonPayDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -251,10 +228,10 @@ public boolean equals(Object o) { return false; } AmazonPayDetails amazonPayDetails = (AmazonPayDetails) o; - return Objects.equals(this.amazonPayToken, amazonPayDetails.amazonPayToken) - && Objects.equals(this.checkoutAttemptId, amazonPayDetails.checkoutAttemptId) - && Objects.equals(this.checkoutSessionId, amazonPayDetails.checkoutSessionId) - && Objects.equals(this.type, amazonPayDetails.type); + return Objects.equals(this.amazonPayToken, amazonPayDetails.amazonPayToken) && + Objects.equals(this.checkoutAttemptId, amazonPayDetails.checkoutAttemptId) && + Objects.equals(this.checkoutSessionId, amazonPayDetails.checkoutSessionId) && + Objects.equals(this.type, amazonPayDetails.type); } @Override @@ -275,7 +252,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -284,7 +262,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AmazonPayDetails given an JSON string * * @param jsonString JSON string @@ -294,12 +272,11 @@ private String toIndentedString(Object o) { public static AmazonPayDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AmazonPayDetails.class); } - - /** - * Convert an instance of AmazonPayDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AmazonPayDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Amount.java b/src/main/java/com/adyen/model/checkout/Amount.java index 7f0b61d65..a01f2a09d 100644 --- a/src/main/java/com/adyen/model/checkout/Amount.java +++ b/src/main/java/com/adyen/model/checkout/Amount.java @@ -2,23 +2,36 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Amount */ -@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) + +/** + * Amount + */ +@JsonPropertyOrder({ + Amount.JSON_PROPERTY_CURRENCY, + Amount.JSON_PROPERTY_VALUE +}) + public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -26,14 +39,13 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() {} + public Amount() { + } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount currency(String currency) { @@ -42,11 +54,8 @@ public Amount currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -55,11 +64,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,11 +75,9 @@ public void setCurrency(String currency) { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount value(Long value) { @@ -81,11 +86,8 @@ public Amount value(Long value) { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). - * - * @return value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @return value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,11 +96,9 @@ public Long getValue() { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,7 +106,9 @@ public void setValue(Long value) { this.value = value; } - /** Return true if this Amount object is equal to o. */ + /** + * Return true if this Amount object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -116,8 +118,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) - && Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) && + Objects.equals(this.value, amount.value); } @Override @@ -136,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -155,12 +158,11 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } - - /** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Amounts.java b/src/main/java/com/adyen/model/checkout/Amounts.java index a0ecfc893..23dd95171 100644 --- a/src/main/java/com/adyen/model/checkout/Amounts.java +++ b/src/main/java/com/adyen/model/checkout/Amounts.java @@ -2,25 +2,38 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * Amounts + */ +@JsonPropertyOrder({ + Amounts.JSON_PROPERTY_CURRENCY, + Amounts.JSON_PROPERTY_VALUES +}) -/** Amounts */ -@JsonPropertyOrder({Amounts.JSON_PROPERTY_CURRENCY, Amounts.JSON_PROPERTY_VALUES}) public class Amounts { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -28,14 +41,13 @@ public class Amounts { public static final String JSON_PROPERTY_VALUES = "values"; private List values; - public Amounts() {} + public Amounts() { + } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes/). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes/). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). * @return the current {@code Amounts} instance, allowing for method chaining */ public Amounts currency(String currency) { @@ -44,11 +56,8 @@ public Amounts currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes/). - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes/). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -57,11 +66,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes/). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes/). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,11 +77,9 @@ public void setCurrency(String currency) { } /** - * The amounts of the donation (in [minor - * units](https://docs.adyen.com/development-resources/currency-codes/)). + * The amounts of the donation (in [minor units](https://docs.adyen.com/development-resources/currency-codes/)). * - * @param values The amounts of the donation (in [minor - * units](https://docs.adyen.com/development-resources/currency-codes/)). + * @param values The amounts of the donation (in [minor units](https://docs.adyen.com/development-resources/currency-codes/)). * @return the current {@code Amounts} instance, allowing for method chaining */ public Amounts values(List values) { @@ -91,11 +96,8 @@ public Amounts addValuesItem(Long valuesItem) { } /** - * The amounts of the donation (in [minor - * units](https://docs.adyen.com/development-resources/currency-codes/)). - * - * @return values The amounts of the donation (in [minor - * units](https://docs.adyen.com/development-resources/currency-codes/)). + * The amounts of the donation (in [minor units](https://docs.adyen.com/development-resources/currency-codes/)). + * @return values The amounts of the donation (in [minor units](https://docs.adyen.com/development-resources/currency-codes/)). */ @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,11 +106,9 @@ public List getValues() { } /** - * The amounts of the donation (in [minor - * units](https://docs.adyen.com/development-resources/currency-codes/)). + * The amounts of the donation (in [minor units](https://docs.adyen.com/development-resources/currency-codes/)). * - * @param values The amounts of the donation (in [minor - * units](https://docs.adyen.com/development-resources/currency-codes/)). + * @param values The amounts of the donation (in [minor units](https://docs.adyen.com/development-resources/currency-codes/)). */ @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,7 +116,9 @@ public void setValues(List values) { this.values = values; } - /** Return true if this Amounts object is equal to o. */ + /** + * Return true if this Amounts object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -126,8 +128,8 @@ public boolean equals(Object o) { return false; } Amounts amounts = (Amounts) o; - return Objects.equals(this.currency, amounts.currency) - && Objects.equals(this.values, amounts.values); + return Objects.equals(this.currency, amounts.currency) && + Objects.equals(this.values, amounts.values); } @Override @@ -146,7 +148,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -155,7 +158,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Amounts given an JSON string * * @param jsonString JSON string @@ -165,12 +168,11 @@ private String toIndentedString(Object o) { public static Amounts fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amounts.class); } - - /** - * Convert an instance of Amounts to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Amounts to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AncvDetails.java b/src/main/java/com/adyen/model/checkout/AncvDetails.java index f9d406b7c..60f1af37e 100644 --- a/src/main/java/com/adyen/model/checkout/AncvDetails.java +++ b/src/main/java/com/adyen/model/checkout/AncvDetails.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** AncvDetails */ +/** + * AncvDetails + */ @JsonPropertyOrder({ AncvDetails.JSON_PROPERTY_BENEFICIARY_ID, AncvDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, @@ -29,6 +34,7 @@ AncvDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, AncvDetails.JSON_PROPERTY_TYPE }) + public class AncvDetails { public static final String JSON_PROPERTY_BENEFICIARY_ID = "beneficiaryId"; private String beneficiaryId; @@ -43,8 +49,11 @@ public class AncvDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** **ancv** */ + /** + * **ancv** + */ public enum TypeEnum { + ANCV(String.valueOf("ancv")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +61,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,11 +82,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -85,7 +90,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AncvDetails() {} + public AncvDetails() { + } /** * ANCV account identification (email or account number) @@ -100,7 +106,6 @@ public AncvDetails beneficiaryId(String beneficiaryId) { /** * ANCV account identification (email or account number) - * * @return beneficiaryId ANCV account identification (email or account number) */ @JsonProperty(JSON_PROPERTY_BENEFICIARY_ID) @@ -133,7 +138,6 @@ public AncvDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -154,13 +158,13 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code AncvDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public AncvDetails recurringDetailReference(String recurringDetailReference) { @@ -169,11 +173,8 @@ public AncvDetails recurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -184,12 +185,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -199,11 +200,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code AncvDetails} instance, allowing for method chaining */ public AncvDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -212,11 +211,8 @@ public AncvDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -225,11 +221,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,7 +244,6 @@ public AncvDetails type(TypeEnum type) { /** * **ancv** - * * @return type **ancv** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -270,7 +263,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this AncvDetails object is equal to o. */ + /** + * Return true if this AncvDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -280,17 +275,16 @@ public boolean equals(Object o) { return false; } AncvDetails ancvDetails = (AncvDetails) o; - return Objects.equals(this.beneficiaryId, ancvDetails.beneficiaryId) - && Objects.equals(this.checkoutAttemptId, ancvDetails.checkoutAttemptId) - && Objects.equals(this.recurringDetailReference, ancvDetails.recurringDetailReference) - && Objects.equals(this.storedPaymentMethodId, ancvDetails.storedPaymentMethodId) - && Objects.equals(this.type, ancvDetails.type); + return Objects.equals(this.beneficiaryId, ancvDetails.beneficiaryId) && + Objects.equals(this.checkoutAttemptId, ancvDetails.checkoutAttemptId) && + Objects.equals(this.recurringDetailReference, ancvDetails.recurringDetailReference) && + Objects.equals(this.storedPaymentMethodId, ancvDetails.storedPaymentMethodId) && + Objects.equals(this.type, ancvDetails.type); } @Override public int hashCode() { - return Objects.hash( - beneficiaryId, checkoutAttemptId, recurringDetailReference, storedPaymentMethodId, type); + return Objects.hash(beneficiaryId, checkoutAttemptId, recurringDetailReference, storedPaymentMethodId, type); } @Override @@ -299,19 +293,16 @@ public String toString() { sb.append("class AncvDetails {\n"); sb.append(" beneficiaryId: ").append(toIndentedString(beneficiaryId)).append("\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -320,7 +311,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AncvDetails given an JSON string * * @param jsonString JSON string @@ -330,12 +321,11 @@ private String toIndentedString(Object o) { public static AncvDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AncvDetails.class); } - - /** - * Convert an instance of AncvDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AncvDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AndroidPayDetails.java b/src/main/java/com/adyen/model/checkout/AndroidPayDetails.java index f4a04af78..16ed1220c 100644 --- a/src/main/java/com/adyen/model/checkout/AndroidPayDetails.java +++ b/src/main/java/com/adyen/model/checkout/AndroidPayDetails.java @@ -2,36 +2,45 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** AndroidPayDetails */ + +/** + * AndroidPayDetails + */ @JsonPropertyOrder({ AndroidPayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, AndroidPayDetails.JSON_PROPERTY_TYPE }) + public class AndroidPayDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; - /** **androidpay** */ + /** + * **androidpay** + */ public enum TypeEnum { + ANDROIDPAY(String.valueOf("androidpay")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -39,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -72,7 +77,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AndroidPayDetails() {} + public AndroidPayDetails() { + } /** * The checkout attempt identifier. @@ -87,7 +93,6 @@ public AndroidPayDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -120,7 +125,6 @@ public AndroidPayDetails type(TypeEnum type) { /** * **androidpay** - * * @return type **androidpay** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -140,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this AndroidPayDetails object is equal to o. */ + /** + * Return true if this AndroidPayDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -150,8 +156,8 @@ public boolean equals(Object o) { return false; } AndroidPayDetails androidPayDetails = (AndroidPayDetails) o; - return Objects.equals(this.checkoutAttemptId, androidPayDetails.checkoutAttemptId) - && Objects.equals(this.type, androidPayDetails.type); + return Objects.equals(this.checkoutAttemptId, androidPayDetails.checkoutAttemptId) && + Objects.equals(this.type, androidPayDetails.type); } @Override @@ -170,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -179,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AndroidPayDetails given an JSON string * * @param jsonString JSON string @@ -189,12 +196,11 @@ private String toIndentedString(Object o) { public static AndroidPayDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AndroidPayDetails.class); } - - /** - * Convert an instance of AndroidPayDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AndroidPayDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ApplePayDetails.java b/src/main/java/com/adyen/model/checkout/ApplePayDetails.java index 6f262032a..866307b62 100644 --- a/src/main/java/com/adyen/model/checkout/ApplePayDetails.java +++ b/src/main/java/com/adyen/model/checkout/ApplePayDetails.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** ApplePayDetails */ + +/** + * ApplePayDetails + */ @JsonPropertyOrder({ ApplePayDetails.JSON_PROPERTY_APPLE_PAY_TOKEN, ApplePayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, @@ -30,6 +35,7 @@ ApplePayDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, ApplePayDetails.JSON_PROPERTY_TYPE }) + public class ApplePayDetails { public static final String JSON_PROPERTY_APPLE_PAY_TOKEN = "applePayToken"; private String applePayToken; @@ -38,10 +44,10 @@ public class ApplePayDetails { private String checkoutAttemptId; /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ public enum FundingSourceEnum { + CREDIT(String.valueOf("credit")), DEBIT(String.valueOf("debit")); @@ -51,7 +57,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -72,11 +78,7 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FundingSourceEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FundingSourceEnum.values())); + LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -91,8 +93,11 @@ public static FundingSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** **applepay** */ + /** + * **applepay** + */ public enum TypeEnum { + APPLEPAY(String.valueOf("applepay")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -100,7 +105,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -121,11 +126,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -133,14 +134,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public ApplePayDetails() {} + public ApplePayDetails() { + } /** - * The stringified and base64 encoded `paymentData` you retrieved from the Apple - * framework. + * The stringified and base64 encoded `paymentData` you retrieved from the Apple framework. * - * @param applePayToken The stringified and base64 encoded `paymentData` you retrieved - * from the Apple framework. + * @param applePayToken The stringified and base64 encoded `paymentData` you retrieved from the Apple framework. * @return the current {@code ApplePayDetails} instance, allowing for method chaining */ public ApplePayDetails applePayToken(String applePayToken) { @@ -149,11 +149,8 @@ public ApplePayDetails applePayToken(String applePayToken) { } /** - * The stringified and base64 encoded `paymentData` you retrieved from the Apple - * framework. - * - * @return applePayToken The stringified and base64 encoded `paymentData` you retrieved - * from the Apple framework. + * The stringified and base64 encoded `paymentData` you retrieved from the Apple framework. + * @return applePayToken The stringified and base64 encoded `paymentData` you retrieved from the Apple framework. */ @JsonProperty(JSON_PROPERTY_APPLE_PAY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -162,11 +159,9 @@ public String getApplePayToken() { } /** - * The stringified and base64 encoded `paymentData` you retrieved from the Apple - * framework. + * The stringified and base64 encoded `paymentData` you retrieved from the Apple framework. * - * @param applePayToken The stringified and base64 encoded `paymentData` you retrieved - * from the Apple framework. + * @param applePayToken The stringified and base64 encoded `paymentData` you retrieved from the Apple framework. */ @JsonProperty(JSON_PROPERTY_APPLE_PAY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,7 +182,6 @@ public ApplePayDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -208,12 +202,9 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * @return the current {@code ApplePayDetails} instance, allowing for method chaining */ public ApplePayDetails fundingSource(FundingSourceEnum fundingSource) { @@ -222,12 +213,8 @@ public ApplePayDetails fundingSource(FundingSourceEnum fundingSource) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. - * - * @return fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @return fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -236,12 +223,9 @@ public FundingSourceEnum getFundingSource() { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,13 +234,13 @@ public void setFundingSource(FundingSourceEnum fundingSource) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code ApplePayDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public ApplePayDetails recurringDetailReference(String recurringDetailReference) { @@ -265,11 +249,8 @@ public ApplePayDetails recurringDetailReference(String recurringDetailReference) } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -280,12 +261,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -295,11 +276,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code ApplePayDetails} instance, allowing for method chaining */ public ApplePayDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -308,11 +287,8 @@ public ApplePayDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -321,11 +297,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -346,7 +320,6 @@ public ApplePayDetails type(TypeEnum type) { /** * **applepay** - * * @return type **applepay** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -366,7 +339,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this ApplePayDetails object is equal to o. */ + /** + * Return true if this ApplePayDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -376,23 +351,17 @@ public boolean equals(Object o) { return false; } ApplePayDetails applePayDetails = (ApplePayDetails) o; - return Objects.equals(this.applePayToken, applePayDetails.applePayToken) - && Objects.equals(this.checkoutAttemptId, applePayDetails.checkoutAttemptId) - && Objects.equals(this.fundingSource, applePayDetails.fundingSource) - && Objects.equals(this.recurringDetailReference, applePayDetails.recurringDetailReference) - && Objects.equals(this.storedPaymentMethodId, applePayDetails.storedPaymentMethodId) - && Objects.equals(this.type, applePayDetails.type); + return Objects.equals(this.applePayToken, applePayDetails.applePayToken) && + Objects.equals(this.checkoutAttemptId, applePayDetails.checkoutAttemptId) && + Objects.equals(this.fundingSource, applePayDetails.fundingSource) && + Objects.equals(this.recurringDetailReference, applePayDetails.recurringDetailReference) && + Objects.equals(this.storedPaymentMethodId, applePayDetails.storedPaymentMethodId) && + Objects.equals(this.type, applePayDetails.type); } @Override public int hashCode() { - return Objects.hash( - applePayToken, - checkoutAttemptId, - fundingSource, - recurringDetailReference, - storedPaymentMethodId, - type); + return Objects.hash(applePayToken, checkoutAttemptId, fundingSource, recurringDetailReference, storedPaymentMethodId, type); } @Override @@ -402,19 +371,16 @@ public String toString() { sb.append(" applePayToken: ").append(toIndentedString(applePayToken)).append("\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -423,7 +389,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ApplePayDetails given an JSON string * * @param jsonString JSON string @@ -433,12 +399,11 @@ private String toIndentedString(Object o) { public static ApplePayDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ApplePayDetails.class); } - - /** - * Convert an instance of ApplePayDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ApplePayDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ApplePayDonations.java b/src/main/java/com/adyen/model/checkout/ApplePayDonations.java index 65439971d..1ab62a317 100644 --- a/src/main/java/com/adyen/model/checkout/ApplePayDonations.java +++ b/src/main/java/com/adyen/model/checkout/ApplePayDonations.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** ApplePayDonations */ + +/** + * ApplePayDonations + */ @JsonPropertyOrder({ ApplePayDonations.JSON_PROPERTY_APPLE_PAY_TOKEN, ApplePayDonations.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, @@ -30,6 +35,7 @@ ApplePayDonations.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, ApplePayDonations.JSON_PROPERTY_TYPE }) + public class ApplePayDonations { public static final String JSON_PROPERTY_APPLE_PAY_TOKEN = "applePayToken"; private String applePayToken; @@ -38,10 +44,10 @@ public class ApplePayDonations { private String checkoutAttemptId; /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ public enum FundingSourceEnum { + CREDIT(String.valueOf("credit")), DEBIT(String.valueOf("debit")); @@ -51,7 +57,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -72,11 +78,7 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FundingSourceEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FundingSourceEnum.values())); + LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -91,8 +93,11 @@ public static FundingSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** **applepay** */ + /** + * **applepay** + */ public enum TypeEnum { + APPLEPAY(String.valueOf("applepay")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -100,7 +105,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -121,11 +126,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -133,14 +134,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public ApplePayDonations() {} + public ApplePayDonations() { + } /** - * The stringified and base64 encoded `paymentData` you retrieved from the Apple - * framework. + * The stringified and base64 encoded `paymentData` you retrieved from the Apple framework. * - * @param applePayToken The stringified and base64 encoded `paymentData` you retrieved - * from the Apple framework. + * @param applePayToken The stringified and base64 encoded `paymentData` you retrieved from the Apple framework. * @return the current {@code ApplePayDonations} instance, allowing for method chaining */ public ApplePayDonations applePayToken(String applePayToken) { @@ -149,11 +149,8 @@ public ApplePayDonations applePayToken(String applePayToken) { } /** - * The stringified and base64 encoded `paymentData` you retrieved from the Apple - * framework. - * - * @return applePayToken The stringified and base64 encoded `paymentData` you retrieved - * from the Apple framework. + * The stringified and base64 encoded `paymentData` you retrieved from the Apple framework. + * @return applePayToken The stringified and base64 encoded `paymentData` you retrieved from the Apple framework. */ @JsonProperty(JSON_PROPERTY_APPLE_PAY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -162,11 +159,9 @@ public String getApplePayToken() { } /** - * The stringified and base64 encoded `paymentData` you retrieved from the Apple - * framework. + * The stringified and base64 encoded `paymentData` you retrieved from the Apple framework. * - * @param applePayToken The stringified and base64 encoded `paymentData` you retrieved - * from the Apple framework. + * @param applePayToken The stringified and base64 encoded `paymentData` you retrieved from the Apple framework. */ @JsonProperty(JSON_PROPERTY_APPLE_PAY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,7 +182,6 @@ public ApplePayDonations checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -208,12 +202,9 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * @return the current {@code ApplePayDonations} instance, allowing for method chaining */ public ApplePayDonations fundingSource(FundingSourceEnum fundingSource) { @@ -222,12 +213,8 @@ public ApplePayDonations fundingSource(FundingSourceEnum fundingSource) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. - * - * @return fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @return fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -236,12 +223,9 @@ public FundingSourceEnum getFundingSource() { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,13 +234,13 @@ public void setFundingSource(FundingSourceEnum fundingSource) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code ApplePayDonations} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public ApplePayDonations recurringDetailReference(String recurringDetailReference) { @@ -265,11 +249,8 @@ public ApplePayDonations recurringDetailReference(String recurringDetailReferenc } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -280,12 +261,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -295,11 +276,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code ApplePayDonations} instance, allowing for method chaining */ public ApplePayDonations storedPaymentMethodId(String storedPaymentMethodId) { @@ -308,11 +287,8 @@ public ApplePayDonations storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -321,11 +297,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -346,7 +320,6 @@ public ApplePayDonations type(TypeEnum type) { /** * **applepay** - * * @return type **applepay** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -366,7 +339,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this ApplePayDonations object is equal to o. */ + /** + * Return true if this ApplePayDonations object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -376,23 +351,17 @@ public boolean equals(Object o) { return false; } ApplePayDonations applePayDonations = (ApplePayDonations) o; - return Objects.equals(this.applePayToken, applePayDonations.applePayToken) - && Objects.equals(this.checkoutAttemptId, applePayDonations.checkoutAttemptId) - && Objects.equals(this.fundingSource, applePayDonations.fundingSource) - && Objects.equals(this.recurringDetailReference, applePayDonations.recurringDetailReference) - && Objects.equals(this.storedPaymentMethodId, applePayDonations.storedPaymentMethodId) - && Objects.equals(this.type, applePayDonations.type); + return Objects.equals(this.applePayToken, applePayDonations.applePayToken) && + Objects.equals(this.checkoutAttemptId, applePayDonations.checkoutAttemptId) && + Objects.equals(this.fundingSource, applePayDonations.fundingSource) && + Objects.equals(this.recurringDetailReference, applePayDonations.recurringDetailReference) && + Objects.equals(this.storedPaymentMethodId, applePayDonations.storedPaymentMethodId) && + Objects.equals(this.type, applePayDonations.type); } @Override public int hashCode() { - return Objects.hash( - applePayToken, - checkoutAttemptId, - fundingSource, - recurringDetailReference, - storedPaymentMethodId, - type); + return Objects.hash(applePayToken, checkoutAttemptId, fundingSource, recurringDetailReference, storedPaymentMethodId, type); } @Override @@ -402,19 +371,16 @@ public String toString() { sb.append(" applePayToken: ").append(toIndentedString(applePayToken)).append("\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -423,7 +389,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ApplePayDonations given an JSON string * * @param jsonString JSON string @@ -433,12 +399,11 @@ private String toIndentedString(Object o) { public static ApplePayDonations fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ApplePayDonations.class); } - - /** - * Convert an instance of ApplePayDonations to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ApplePayDonations to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ApplePaySessionRequest.java b/src/main/java/com/adyen/model/checkout/ApplePaySessionRequest.java index bf154ed7c..102155077 100644 --- a/src/main/java/com/adyen/model/checkout/ApplePaySessionRequest.java +++ b/src/main/java/com/adyen/model/checkout/ApplePaySessionRequest.java @@ -2,27 +2,37 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ApplePaySessionRequest */ + +/** + * ApplePaySessionRequest + */ @JsonPropertyOrder({ ApplePaySessionRequest.JSON_PROPERTY_DISPLAY_NAME, ApplePaySessionRequest.JSON_PROPERTY_DOMAIN_NAME, ApplePaySessionRequest.JSON_PROPERTY_MERCHANT_IDENTIFIER }) + public class ApplePaySessionRequest { public static final String JSON_PROPERTY_DISPLAY_NAME = "displayName"; private String displayName; @@ -33,18 +43,13 @@ public class ApplePaySessionRequest { public static final String JSON_PROPERTY_MERCHANT_IDENTIFIER = "merchantIdentifier"; private String merchantIdentifier; - public ApplePaySessionRequest() {} + public ApplePaySessionRequest() { + } /** - * This is the name that your shoppers will see in the Apple Pay interface. The value returned as - * `configuration.merchantName` field from the - * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) - * response. + * This is the name that your shoppers will see in the Apple Pay interface. The value returned as `configuration.merchantName` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. * - * @param displayName This is the name that your shoppers will see in the Apple Pay interface. The - * value returned as `configuration.merchantName` field from the - * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) - * response. + * @param displayName This is the name that your shoppers will see in the Apple Pay interface. The value returned as `configuration.merchantName` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. * @return the current {@code ApplePaySessionRequest} instance, allowing for method chaining */ public ApplePaySessionRequest displayName(String displayName) { @@ -53,15 +58,8 @@ public ApplePaySessionRequest displayName(String displayName) { } /** - * This is the name that your shoppers will see in the Apple Pay interface. The value returned as - * `configuration.merchantName` field from the - * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) - * response. - * - * @return displayName This is the name that your shoppers will see in the Apple Pay interface. - * The value returned as `configuration.merchantName` field from the - * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) - * response. + * This is the name that your shoppers will see in the Apple Pay interface. The value returned as `configuration.merchantName` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. + * @return displayName This is the name that your shoppers will see in the Apple Pay interface. The value returned as `configuration.merchantName` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. */ @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,15 +68,9 @@ public String getDisplayName() { } /** - * This is the name that your shoppers will see in the Apple Pay interface. The value returned as - * `configuration.merchantName` field from the - * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) - * response. + * This is the name that your shoppers will see in the Apple Pay interface. The value returned as `configuration.merchantName` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. * - * @param displayName This is the name that your shoppers will see in the Apple Pay interface. The - * value returned as `configuration.merchantName` field from the - * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) - * response. + * @param displayName This is the name that your shoppers will see in the Apple Pay interface. The value returned as `configuration.merchantName` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. */ @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,11 +79,9 @@ public void setDisplayName(String displayName) { } /** - * The domain name you provided when you added Apple Pay in your Customer Area. This must match - * the `window.location.hostname` of the web shop. + * The domain name you provided when you added Apple Pay in your Customer Area. This must match the `window.location.hostname` of the web shop. * - * @param domainName The domain name you provided when you added Apple Pay in your Customer Area. - * This must match the `window.location.hostname` of the web shop. + * @param domainName The domain name you provided when you added Apple Pay in your Customer Area. This must match the `window.location.hostname` of the web shop. * @return the current {@code ApplePaySessionRequest} instance, allowing for method chaining */ public ApplePaySessionRequest domainName(String domainName) { @@ -100,11 +90,8 @@ public ApplePaySessionRequest domainName(String domainName) { } /** - * The domain name you provided when you added Apple Pay in your Customer Area. This must match - * the `window.location.hostname` of the web shop. - * - * @return domainName The domain name you provided when you added Apple Pay in your Customer Area. - * This must match the `window.location.hostname` of the web shop. + * The domain name you provided when you added Apple Pay in your Customer Area. This must match the `window.location.hostname` of the web shop. + * @return domainName The domain name you provided when you added Apple Pay in your Customer Area. This must match the `window.location.hostname` of the web shop. */ @JsonProperty(JSON_PROPERTY_DOMAIN_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,11 +100,9 @@ public String getDomainName() { } /** - * The domain name you provided when you added Apple Pay in your Customer Area. This must match - * the `window.location.hostname` of the web shop. + * The domain name you provided when you added Apple Pay in your Customer Area. This must match the `window.location.hostname` of the web shop. * - * @param domainName The domain name you provided when you added Apple Pay in your Customer Area. - * This must match the `window.location.hostname` of the web shop. + * @param domainName The domain name you provided when you added Apple Pay in your Customer Area. This must match the `window.location.hostname` of the web shop. */ @JsonProperty(JSON_PROPERTY_DOMAIN_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,15 +111,9 @@ public void setDomainName(String domainName) { } /** - * Your merchant identifier registered with Apple Pay. Use the value of the - * `configuration.merchantId` field from the - * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) - * response. + * Your merchant identifier registered with Apple Pay. Use the value of the `configuration.merchantId` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. * - * @param merchantIdentifier Your merchant identifier registered with Apple Pay. Use the value of - * the `configuration.merchantId` field from the - * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) - * response. + * @param merchantIdentifier Your merchant identifier registered with Apple Pay. Use the value of the `configuration.merchantId` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. * @return the current {@code ApplePaySessionRequest} instance, allowing for method chaining */ public ApplePaySessionRequest merchantIdentifier(String merchantIdentifier) { @@ -143,15 +122,8 @@ public ApplePaySessionRequest merchantIdentifier(String merchantIdentifier) { } /** - * Your merchant identifier registered with Apple Pay. Use the value of the - * `configuration.merchantId` field from the - * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) - * response. - * - * @return merchantIdentifier Your merchant identifier registered with Apple Pay. Use the value of - * the `configuration.merchantId` field from the - * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) - * response. + * Your merchant identifier registered with Apple Pay. Use the value of the `configuration.merchantId` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. + * @return merchantIdentifier Your merchant identifier registered with Apple Pay. Use the value of the `configuration.merchantId` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. */ @JsonProperty(JSON_PROPERTY_MERCHANT_IDENTIFIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,15 +132,9 @@ public String getMerchantIdentifier() { } /** - * Your merchant identifier registered with Apple Pay. Use the value of the - * `configuration.merchantId` field from the - * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) - * response. + * Your merchant identifier registered with Apple Pay. Use the value of the `configuration.merchantId` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. * - * @param merchantIdentifier Your merchant identifier registered with Apple Pay. Use the value of - * the `configuration.merchantId` field from the - * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) - * response. + * @param merchantIdentifier Your merchant identifier registered with Apple Pay. Use the value of the `configuration.merchantId` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. */ @JsonProperty(JSON_PROPERTY_MERCHANT_IDENTIFIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,7 +142,9 @@ public void setMerchantIdentifier(String merchantIdentifier) { this.merchantIdentifier = merchantIdentifier; } - /** Return true if this ApplePaySessionRequest object is equal to o. */ + /** + * Return true if this ApplePaySessionRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -186,9 +154,9 @@ public boolean equals(Object o) { return false; } ApplePaySessionRequest applePaySessionRequest = (ApplePaySessionRequest) o; - return Objects.equals(this.displayName, applePaySessionRequest.displayName) - && Objects.equals(this.domainName, applePaySessionRequest.domainName) - && Objects.equals(this.merchantIdentifier, applePaySessionRequest.merchantIdentifier); + return Objects.equals(this.displayName, applePaySessionRequest.displayName) && + Objects.equals(this.domainName, applePaySessionRequest.domainName) && + Objects.equals(this.merchantIdentifier, applePaySessionRequest.merchantIdentifier); } @Override @@ -208,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -217,23 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ApplePaySessionRequest given an JSON string * * @param jsonString JSON string * @return An instance of ApplePaySessionRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ApplePaySessionRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to ApplePaySessionRequest */ public static ApplePaySessionRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ApplePaySessionRequest.class); } - - /** - * Convert an instance of ApplePaySessionRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ApplePaySessionRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ApplePaySessionResponse.java b/src/main/java/com/adyen/model/checkout/ApplePaySessionResponse.java index 2befc8166..fa6865334 100644 --- a/src/main/java/com/adyen/model/checkout/ApplePaySessionResponse.java +++ b/src/main/java/com/adyen/model/checkout/ApplePaySessionResponse.java @@ -2,35 +2,46 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ApplePaySessionResponse */ -@JsonPropertyOrder({ApplePaySessionResponse.JSON_PROPERTY_DATA}) + +/** + * ApplePaySessionResponse + */ +@JsonPropertyOrder({ + ApplePaySessionResponse.JSON_PROPERTY_DATA +}) + public class ApplePaySessionResponse { public static final String JSON_PROPERTY_DATA = "data"; private String data; - public ApplePaySessionResponse() {} + public ApplePaySessionResponse() { + } /** - * Base64 encoded data you need to [complete the Apple Pay merchant - * validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation). + * Base64 encoded data you need to [complete the Apple Pay merchant validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation). * - * @param data Base64 encoded data you need to [complete the Apple Pay merchant - * validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation). + * @param data Base64 encoded data you need to [complete the Apple Pay merchant validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation). * @return the current {@code ApplePaySessionResponse} instance, allowing for method chaining */ public ApplePaySessionResponse data(String data) { @@ -39,11 +50,8 @@ public ApplePaySessionResponse data(String data) { } /** - * Base64 encoded data you need to [complete the Apple Pay merchant - * validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation). - * - * @return data Base64 encoded data you need to [complete the Apple Pay merchant - * validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation). + * Base64 encoded data you need to [complete the Apple Pay merchant validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation). + * @return data Base64 encoded data you need to [complete the Apple Pay merchant validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation). */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -52,11 +60,9 @@ public String getData() { } /** - * Base64 encoded data you need to [complete the Apple Pay merchant - * validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation). + * Base64 encoded data you need to [complete the Apple Pay merchant validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation). * - * @param data Base64 encoded data you need to [complete the Apple Pay merchant - * validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation). + * @param data Base64 encoded data you need to [complete the Apple Pay merchant validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation). */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,7 +70,9 @@ public void setData(String data) { this.data = data; } - /** Return true if this ApplePaySessionResponse object is equal to o. */ + /** + * Return true if this ApplePaySessionResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -92,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -101,23 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ApplePaySessionResponse given an JSON string * * @param jsonString JSON string * @return An instance of ApplePaySessionResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ApplePaySessionResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to ApplePaySessionResponse */ public static ApplePaySessionResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ApplePaySessionResponse.class); } - - /** - * Convert an instance of ApplePaySessionResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ApplePaySessionResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ApplicationInfo.java b/src/main/java/com/adyen/model/checkout/ApplicationInfo.java index 973a8bdf4..7fcaf693a 100644 --- a/src/main/java/com/adyen/model/checkout/ApplicationInfo.java +++ b/src/main/java/com/adyen/model/checkout/ApplicationInfo.java @@ -2,22 +2,35 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.CommonField; +import com.adyen.model.checkout.ExternalPlatform; +import com.adyen.model.checkout.MerchantDevice; +import com.adyen.model.checkout.ShopperInteractionDevice; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ApplicationInfo */ + +/** + * ApplicationInfo + */ @JsonPropertyOrder({ ApplicationInfo.JSON_PROPERTY_ADYEN_LIBRARY, ApplicationInfo.JSON_PROPERTY_ADYEN_PAYMENT_SOURCE, @@ -26,6 +39,7 @@ ApplicationInfo.JSON_PROPERTY_MERCHANT_DEVICE, ApplicationInfo.JSON_PROPERTY_SHOPPER_INTERACTION_DEVICE }) + public class ApplicationInfo { public static final String JSON_PROPERTY_ADYEN_LIBRARY = "adyenLibrary"; private CommonField adyenLibrary; @@ -45,12 +59,13 @@ public class ApplicationInfo { public static final String JSON_PROPERTY_SHOPPER_INTERACTION_DEVICE = "shopperInteractionDevice"; private ShopperInteractionDevice shopperInteractionDevice; - public ApplicationInfo() {} + public ApplicationInfo() { + } /** * adyenLibrary * - * @param adyenLibrary + * @param adyenLibrary * @return the current {@code ApplicationInfo} instance, allowing for method chaining */ public ApplicationInfo adyenLibrary(CommonField adyenLibrary) { @@ -60,8 +75,7 @@ public ApplicationInfo adyenLibrary(CommonField adyenLibrary) { /** * Get adyenLibrary - * - * @return adyenLibrary + * @return adyenLibrary */ @JsonProperty(JSON_PROPERTY_ADYEN_LIBRARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -72,7 +86,7 @@ public CommonField getAdyenLibrary() { /** * adyenLibrary * - * @param adyenLibrary + * @param adyenLibrary */ @JsonProperty(JSON_PROPERTY_ADYEN_LIBRARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,7 +97,7 @@ public void setAdyenLibrary(CommonField adyenLibrary) { /** * adyenPaymentSource * - * @param adyenPaymentSource + * @param adyenPaymentSource * @return the current {@code ApplicationInfo} instance, allowing for method chaining */ public ApplicationInfo adyenPaymentSource(CommonField adyenPaymentSource) { @@ -93,8 +107,7 @@ public ApplicationInfo adyenPaymentSource(CommonField adyenPaymentSource) { /** * Get adyenPaymentSource - * - * @return adyenPaymentSource + * @return adyenPaymentSource */ @JsonProperty(JSON_PROPERTY_ADYEN_PAYMENT_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,7 +118,7 @@ public CommonField getAdyenPaymentSource() { /** * adyenPaymentSource * - * @param adyenPaymentSource + * @param adyenPaymentSource */ @JsonProperty(JSON_PROPERTY_ADYEN_PAYMENT_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,7 +129,7 @@ public void setAdyenPaymentSource(CommonField adyenPaymentSource) { /** * externalPlatform * - * @param externalPlatform + * @param externalPlatform * @return the current {@code ApplicationInfo} instance, allowing for method chaining */ public ApplicationInfo externalPlatform(ExternalPlatform externalPlatform) { @@ -126,8 +139,7 @@ public ApplicationInfo externalPlatform(ExternalPlatform externalPlatform) { /** * Get externalPlatform - * - * @return externalPlatform + * @return externalPlatform */ @JsonProperty(JSON_PROPERTY_EXTERNAL_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,7 +150,7 @@ public ExternalPlatform getExternalPlatform() { /** * externalPlatform * - * @param externalPlatform + * @param externalPlatform */ @JsonProperty(JSON_PROPERTY_EXTERNAL_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -149,7 +161,7 @@ public void setExternalPlatform(ExternalPlatform externalPlatform) { /** * merchantApplication * - * @param merchantApplication + * @param merchantApplication * @return the current {@code ApplicationInfo} instance, allowing for method chaining */ public ApplicationInfo merchantApplication(CommonField merchantApplication) { @@ -159,8 +171,7 @@ public ApplicationInfo merchantApplication(CommonField merchantApplication) { /** * Get merchantApplication - * - * @return merchantApplication + * @return merchantApplication */ @JsonProperty(JSON_PROPERTY_MERCHANT_APPLICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -171,7 +182,7 @@ public CommonField getMerchantApplication() { /** * merchantApplication * - * @param merchantApplication + * @param merchantApplication */ @JsonProperty(JSON_PROPERTY_MERCHANT_APPLICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,7 +193,7 @@ public void setMerchantApplication(CommonField merchantApplication) { /** * merchantDevice * - * @param merchantDevice + * @param merchantDevice * @return the current {@code ApplicationInfo} instance, allowing for method chaining */ public ApplicationInfo merchantDevice(MerchantDevice merchantDevice) { @@ -192,8 +203,7 @@ public ApplicationInfo merchantDevice(MerchantDevice merchantDevice) { /** * Get merchantDevice - * - * @return merchantDevice + * @return merchantDevice */ @JsonProperty(JSON_PROPERTY_MERCHANT_DEVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,7 +214,7 @@ public MerchantDevice getMerchantDevice() { /** * merchantDevice * - * @param merchantDevice + * @param merchantDevice */ @JsonProperty(JSON_PROPERTY_MERCHANT_DEVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -215,19 +225,17 @@ public void setMerchantDevice(MerchantDevice merchantDevice) { /** * shopperInteractionDevice * - * @param shopperInteractionDevice + * @param shopperInteractionDevice * @return the current {@code ApplicationInfo} instance, allowing for method chaining */ - public ApplicationInfo shopperInteractionDevice( - ShopperInteractionDevice shopperInteractionDevice) { + public ApplicationInfo shopperInteractionDevice(ShopperInteractionDevice shopperInteractionDevice) { this.shopperInteractionDevice = shopperInteractionDevice; return this; } /** * Get shopperInteractionDevice - * - * @return shopperInteractionDevice + * @return shopperInteractionDevice */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION_DEVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -238,7 +246,7 @@ public ShopperInteractionDevice getShopperInteractionDevice() { /** * shopperInteractionDevice * - * @param shopperInteractionDevice + * @param shopperInteractionDevice */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION_DEVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -246,7 +254,9 @@ public void setShopperInteractionDevice(ShopperInteractionDevice shopperInteract this.shopperInteractionDevice = shopperInteractionDevice; } - /** Return true if this ApplicationInfo object is equal to o. */ + /** + * Return true if this ApplicationInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -256,23 +266,17 @@ public boolean equals(Object o) { return false; } ApplicationInfo applicationInfo = (ApplicationInfo) o; - return Objects.equals(this.adyenLibrary, applicationInfo.adyenLibrary) - && Objects.equals(this.adyenPaymentSource, applicationInfo.adyenPaymentSource) - && Objects.equals(this.externalPlatform, applicationInfo.externalPlatform) - && Objects.equals(this.merchantApplication, applicationInfo.merchantApplication) - && Objects.equals(this.merchantDevice, applicationInfo.merchantDevice) - && Objects.equals(this.shopperInteractionDevice, applicationInfo.shopperInteractionDevice); + return Objects.equals(this.adyenLibrary, applicationInfo.adyenLibrary) && + Objects.equals(this.adyenPaymentSource, applicationInfo.adyenPaymentSource) && + Objects.equals(this.externalPlatform, applicationInfo.externalPlatform) && + Objects.equals(this.merchantApplication, applicationInfo.merchantApplication) && + Objects.equals(this.merchantDevice, applicationInfo.merchantDevice) && + Objects.equals(this.shopperInteractionDevice, applicationInfo.shopperInteractionDevice); } @Override public int hashCode() { - return Objects.hash( - adyenLibrary, - adyenPaymentSource, - externalPlatform, - merchantApplication, - merchantDevice, - shopperInteractionDevice); + return Objects.hash(adyenLibrary, adyenPaymentSource, externalPlatform, merchantApplication, merchantDevice, shopperInteractionDevice); } @Override @@ -282,19 +286,16 @@ public String toString() { sb.append(" adyenLibrary: ").append(toIndentedString(adyenLibrary)).append("\n"); sb.append(" adyenPaymentSource: ").append(toIndentedString(adyenPaymentSource)).append("\n"); sb.append(" externalPlatform: ").append(toIndentedString(externalPlatform)).append("\n"); - sb.append(" merchantApplication: ") - .append(toIndentedString(merchantApplication)) - .append("\n"); + sb.append(" merchantApplication: ").append(toIndentedString(merchantApplication)).append("\n"); sb.append(" merchantDevice: ").append(toIndentedString(merchantDevice)).append("\n"); - sb.append(" shopperInteractionDevice: ") - .append(toIndentedString(shopperInteractionDevice)) - .append("\n"); + sb.append(" shopperInteractionDevice: ").append(toIndentedString(shopperInteractionDevice)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -303,7 +304,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ApplicationInfo given an JSON string * * @param jsonString JSON string @@ -313,12 +314,11 @@ private String toIndentedString(Object o) { public static ApplicationInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ApplicationInfo.class); } - - /** - * Convert an instance of ApplicationInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ApplicationInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AuthenticationData.java b/src/main/java/com/adyen/model/checkout/AuthenticationData.java index 912b2ba23..ae6fc3146 100644 --- a/src/main/java/com/adyen/model/checkout/AuthenticationData.java +++ b/src/main/java/com/adyen/model/checkout/AuthenticationData.java @@ -2,41 +2,44 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.ThreeDSRequestData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** AuthenticationData */ +/** + * AuthenticationData + */ @JsonPropertyOrder({ AuthenticationData.JSON_PROPERTY_ATTEMPT_AUTHENTICATION, AuthenticationData.JSON_PROPERTY_AUTHENTICATION_ONLY, AuthenticationData.JSON_PROPERTY_THREE_D_S_REQUEST_DATA }) + public class AuthenticationData { /** - * Indicates when 3D Secure authentication should be attempted. This overrides all other rules, - * including [Dynamic 3D Secure - * settings](https://docs.adyen.com/risk-management/dynamic-3d-secure). Possible values: * - * **always**: Perform 3D Secure authentication. * **never**: Don't perform 3D Secure - * authentication. If PSD2 SCA or other national regulations require authentication, the - * transaction gets declined. + * Indicates when 3D Secure authentication should be attempted. This overrides all other rules, including [Dynamic 3D Secure settings](https://docs.adyen.com/risk-management/dynamic-3d-secure). Possible values: * **always**: Perform 3D Secure authentication. * **never**: Don't perform 3D Secure authentication. If PSD2 SCA or other national regulations require authentication, the transaction gets declined. */ public enum AttemptAuthenticationEnum { + ALWAYS(String.valueOf("always")), NEVER(String.valueOf("never")); @@ -46,7 +49,7 @@ public enum AttemptAuthenticationEnum { private String value; AttemptAuthenticationEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -67,11 +70,7 @@ public static AttemptAuthenticationEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AttemptAuthenticationEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AttemptAuthenticationEnum.values())); + LOG.warning("AttemptAuthenticationEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AttemptAuthenticationEnum.values())); return null; } } @@ -85,22 +84,13 @@ public static AttemptAuthenticationEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_REQUEST_DATA = "threeDSRequestData"; private ThreeDSRequestData threeDSRequestData; - public AuthenticationData() {} + public AuthenticationData() { + } /** - * Indicates when 3D Secure authentication should be attempted. This overrides all other rules, - * including [Dynamic 3D Secure - * settings](https://docs.adyen.com/risk-management/dynamic-3d-secure). Possible values: * - * **always**: Perform 3D Secure authentication. * **never**: Don't perform 3D Secure - * authentication. If PSD2 SCA or other national regulations require authentication, the - * transaction gets declined. + * Indicates when 3D Secure authentication should be attempted. This overrides all other rules, including [Dynamic 3D Secure settings](https://docs.adyen.com/risk-management/dynamic-3d-secure). Possible values: * **always**: Perform 3D Secure authentication. * **never**: Don't perform 3D Secure authentication. If PSD2 SCA or other national regulations require authentication, the transaction gets declined. * - * @param attemptAuthentication Indicates when 3D Secure authentication should be attempted. This - * overrides all other rules, including [Dynamic 3D Secure - * settings](https://docs.adyen.com/risk-management/dynamic-3d-secure). Possible values: * - * **always**: Perform 3D Secure authentication. * **never**: Don't perform 3D Secure - * authentication. If PSD2 SCA or other national regulations require authentication, the - * transaction gets declined. + * @param attemptAuthentication Indicates when 3D Secure authentication should be attempted. This overrides all other rules, including [Dynamic 3D Secure settings](https://docs.adyen.com/risk-management/dynamic-3d-secure). Possible values: * **always**: Perform 3D Secure authentication. * **never**: Don't perform 3D Secure authentication. If PSD2 SCA or other national regulations require authentication, the transaction gets declined. * @return the current {@code AuthenticationData} instance, allowing for method chaining */ public AuthenticationData attemptAuthentication(AttemptAuthenticationEnum attemptAuthentication) { @@ -109,19 +99,8 @@ public AuthenticationData attemptAuthentication(AttemptAuthenticationEnum attemp } /** - * Indicates when 3D Secure authentication should be attempted. This overrides all other rules, - * including [Dynamic 3D Secure - * settings](https://docs.adyen.com/risk-management/dynamic-3d-secure). Possible values: * - * **always**: Perform 3D Secure authentication. * **never**: Don't perform 3D Secure - * authentication. If PSD2 SCA or other national regulations require authentication, the - * transaction gets declined. - * - * @return attemptAuthentication Indicates when 3D Secure authentication should be attempted. This - * overrides all other rules, including [Dynamic 3D Secure - * settings](https://docs.adyen.com/risk-management/dynamic-3d-secure). Possible values: * - * **always**: Perform 3D Secure authentication. * **never**: Don't perform 3D Secure - * authentication. If PSD2 SCA or other national regulations require authentication, the - * transaction gets declined. + * Indicates when 3D Secure authentication should be attempted. This overrides all other rules, including [Dynamic 3D Secure settings](https://docs.adyen.com/risk-management/dynamic-3d-secure). Possible values: * **always**: Perform 3D Secure authentication. * **never**: Don't perform 3D Secure authentication. If PSD2 SCA or other national regulations require authentication, the transaction gets declined. + * @return attemptAuthentication Indicates when 3D Secure authentication should be attempted. This overrides all other rules, including [Dynamic 3D Secure settings](https://docs.adyen.com/risk-management/dynamic-3d-secure). Possible values: * **always**: Perform 3D Secure authentication. * **never**: Don't perform 3D Secure authentication. If PSD2 SCA or other national regulations require authentication, the transaction gets declined. */ @JsonProperty(JSON_PROPERTY_ATTEMPT_AUTHENTICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -130,19 +109,9 @@ public AttemptAuthenticationEnum getAttemptAuthentication() { } /** - * Indicates when 3D Secure authentication should be attempted. This overrides all other rules, - * including [Dynamic 3D Secure - * settings](https://docs.adyen.com/risk-management/dynamic-3d-secure). Possible values: * - * **always**: Perform 3D Secure authentication. * **never**: Don't perform 3D Secure - * authentication. If PSD2 SCA or other national regulations require authentication, the - * transaction gets declined. + * Indicates when 3D Secure authentication should be attempted. This overrides all other rules, including [Dynamic 3D Secure settings](https://docs.adyen.com/risk-management/dynamic-3d-secure). Possible values: * **always**: Perform 3D Secure authentication. * **never**: Don't perform 3D Secure authentication. If PSD2 SCA or other national regulations require authentication, the transaction gets declined. * - * @param attemptAuthentication Indicates when 3D Secure authentication should be attempted. This - * overrides all other rules, including [Dynamic 3D Secure - * settings](https://docs.adyen.com/risk-management/dynamic-3d-secure). Possible values: * - * **always**: Perform 3D Secure authentication. * **never**: Don't perform 3D Secure - * authentication. If PSD2 SCA or other national regulations require authentication, the - * transaction gets declined. + * @param attemptAuthentication Indicates when 3D Secure authentication should be attempted. This overrides all other rules, including [Dynamic 3D Secure settings](https://docs.adyen.com/risk-management/dynamic-3d-secure). Possible values: * **always**: Perform 3D Secure authentication. * **never**: Don't perform 3D Secure authentication. If PSD2 SCA or other national regulations require authentication, the transaction gets declined. */ @JsonProperty(JSON_PROPERTY_ATTEMPT_AUTHENTICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,15 +120,9 @@ public void setAttemptAuthentication(AttemptAuthenticationEnum attemptAuthentica } /** - * Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization. Default: **false**. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization. Default: **false**. * - * @param authenticationOnly Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization. Default: **false**. + * @param authenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization. Default: **false**. * @return the current {@code AuthenticationData} instance, allowing for method chaining */ public AuthenticationData authenticationOnly(Boolean authenticationOnly) { @@ -168,15 +131,8 @@ public AuthenticationData authenticationOnly(Boolean authenticationOnly) { } /** - * Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization. Default: **false**. - * - * @return authenticationOnly Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization. Default: **false**. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization. Default: **false**. + * @return authenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization. Default: **false**. */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,15 +141,9 @@ public Boolean getAuthenticationOnly() { } /** - * Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization. Default: **false**. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization. Default: **false**. * - * @param authenticationOnly Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization. Default: **false**. + * @param authenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization. Default: **false**. */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,7 +154,7 @@ public void setAuthenticationOnly(Boolean authenticationOnly) { /** * threeDSRequestData * - * @param threeDSRequestData + * @param threeDSRequestData * @return the current {@code AuthenticationData} instance, allowing for method chaining */ public AuthenticationData threeDSRequestData(ThreeDSRequestData threeDSRequestData) { @@ -214,8 +164,7 @@ public AuthenticationData threeDSRequestData(ThreeDSRequestData threeDSRequestDa /** * Get threeDSRequestData - * - * @return threeDSRequestData + * @return threeDSRequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -226,7 +175,7 @@ public ThreeDSRequestData getThreeDSRequestData() { /** * threeDSRequestData * - * @param threeDSRequestData + * @param threeDSRequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -234,7 +183,9 @@ public void setThreeDSRequestData(ThreeDSRequestData threeDSRequestData) { this.threeDSRequestData = threeDSRequestData; } - /** Return true if this AuthenticationData object is equal to o. */ + /** + * Return true if this AuthenticationData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -244,9 +195,9 @@ public boolean equals(Object o) { return false; } AuthenticationData authenticationData = (AuthenticationData) o; - return Objects.equals(this.attemptAuthentication, authenticationData.attemptAuthentication) - && Objects.equals(this.authenticationOnly, authenticationData.authenticationOnly) - && Objects.equals(this.threeDSRequestData, authenticationData.threeDSRequestData); + return Objects.equals(this.attemptAuthentication, authenticationData.attemptAuthentication) && + Objects.equals(this.authenticationOnly, authenticationData.authenticationOnly) && + Objects.equals(this.threeDSRequestData, authenticationData.threeDSRequestData); } @Override @@ -258,9 +209,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AuthenticationData {\n"); - sb.append(" attemptAuthentication: ") - .append(toIndentedString(attemptAuthentication)) - .append("\n"); + sb.append(" attemptAuthentication: ").append(toIndentedString(attemptAuthentication)).append("\n"); sb.append(" authenticationOnly: ").append(toIndentedString(authenticationOnly)).append("\n"); sb.append(" threeDSRequestData: ").append(toIndentedString(threeDSRequestData)).append("\n"); sb.append("}"); @@ -268,7 +217,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -277,23 +227,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AuthenticationData given an JSON string * * @param jsonString JSON string * @return An instance of AuthenticationData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AuthenticationData + * @throws JsonProcessingException if the JSON string is invalid with respect to AuthenticationData */ public static AuthenticationData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AuthenticationData.class); } - - /** - * Convert an instance of AuthenticationData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AuthenticationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/BacsDirectDebitDetails.java b/src/main/java/com/adyen/model/checkout/BacsDirectDebitDetails.java index 842c7b180..c784c1ad1 100644 --- a/src/main/java/com/adyen/model/checkout/BacsDirectDebitDetails.java +++ b/src/main/java/com/adyen/model/checkout/BacsDirectDebitDetails.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** BacsDirectDebitDetails */ +/** + * BacsDirectDebitDetails + */ @JsonPropertyOrder({ BacsDirectDebitDetails.JSON_PROPERTY_BANK_ACCOUNT_NUMBER, BacsDirectDebitDetails.JSON_PROPERTY_BANK_LOCATION_ID, @@ -32,6 +37,7 @@ BacsDirectDebitDetails.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID, BacsDirectDebitDetails.JSON_PROPERTY_TYPE }) + public class BacsDirectDebitDetails { public static final String JSON_PROPERTY_BANK_ACCOUNT_NUMBER = "bankAccountNumber"; private String bankAccountNumber; @@ -55,8 +61,11 @@ public class BacsDirectDebitDetails { public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_ID = "transferInstrumentId"; private String transferInstrumentId; - /** **directdebit_GB** */ + /** + * **directdebit_GB** + */ public enum TypeEnum { + DIRECTDEBIT_GB(String.valueOf("directdebit_GB")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -64,7 +73,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -85,11 +94,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -97,7 +102,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public BacsDirectDebitDetails() {} + public BacsDirectDebitDetails() { + } /** * The bank account number (without separators). @@ -112,7 +118,6 @@ public BacsDirectDebitDetails bankAccountNumber(String bankAccountNumber) { /** * The bank account number (without separators). - * * @return bankAccountNumber The bank account number (without separators). */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_NUMBER) @@ -145,7 +150,6 @@ public BacsDirectDebitDetails bankLocationId(String bankLocationId) { /** * The bank routing number of the account. - * * @return bankLocationId The bank routing number of the account. */ @JsonProperty(JSON_PROPERTY_BANK_LOCATION_ID) @@ -178,7 +182,6 @@ public BacsDirectDebitDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -211,7 +214,6 @@ public BacsDirectDebitDetails holderName(String holderName) { /** * The name of the bank account holder. - * * @return holderName The name of the bank account holder. */ @JsonProperty(JSON_PROPERTY_HOLDER_NAME) @@ -232,13 +234,13 @@ public void setHolderName(String holderName) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code BacsDirectDebitDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public BacsDirectDebitDetails recurringDetailReference(String recurringDetailReference) { @@ -247,11 +249,8 @@ public BacsDirectDebitDetails recurringDetailReference(String recurringDetailRef } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -262,12 +261,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -277,11 +276,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code BacsDirectDebitDetails} instance, allowing for method chaining */ public BacsDirectDebitDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -290,11 +287,8 @@ public BacsDirectDebitDetails storedPaymentMethodId(String storedPaymentMethodId } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -303,11 +297,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -316,11 +308,9 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { } /** - * The unique identifier of your user's verified transfer instrument, which you can use to top - * up their balance accounts. + * The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. * - * @param transferInstrumentId The unique identifier of your user's verified transfer - * instrument, which you can use to top up their balance accounts. + * @param transferInstrumentId The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. * @return the current {@code BacsDirectDebitDetails} instance, allowing for method chaining */ public BacsDirectDebitDetails transferInstrumentId(String transferInstrumentId) { @@ -329,11 +319,8 @@ public BacsDirectDebitDetails transferInstrumentId(String transferInstrumentId) } /** - * The unique identifier of your user's verified transfer instrument, which you can use to top - * up their balance accounts. - * - * @return transferInstrumentId The unique identifier of your user's verified transfer - * instrument, which you can use to top up their balance accounts. + * The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. + * @return transferInstrumentId The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -342,11 +329,9 @@ public String getTransferInstrumentId() { } /** - * The unique identifier of your user's verified transfer instrument, which you can use to top - * up their balance accounts. + * The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. * - * @param transferInstrumentId The unique identifier of your user's verified transfer - * instrument, which you can use to top up their balance accounts. + * @param transferInstrumentId The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -367,7 +352,6 @@ public BacsDirectDebitDetails type(TypeEnum type) { /** * **directdebit_GB** - * * @return type **directdebit_GB** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -387,7 +371,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this BacsDirectDebitDetails object is equal to o. */ + /** + * Return true if this BacsDirectDebitDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -397,28 +383,19 @@ public boolean equals(Object o) { return false; } BacsDirectDebitDetails bacsDirectDebitDetails = (BacsDirectDebitDetails) o; - return Objects.equals(this.bankAccountNumber, bacsDirectDebitDetails.bankAccountNumber) - && Objects.equals(this.bankLocationId, bacsDirectDebitDetails.bankLocationId) - && Objects.equals(this.checkoutAttemptId, bacsDirectDebitDetails.checkoutAttemptId) - && Objects.equals(this.holderName, bacsDirectDebitDetails.holderName) - && Objects.equals( - this.recurringDetailReference, bacsDirectDebitDetails.recurringDetailReference) - && Objects.equals(this.storedPaymentMethodId, bacsDirectDebitDetails.storedPaymentMethodId) - && Objects.equals(this.transferInstrumentId, bacsDirectDebitDetails.transferInstrumentId) - && Objects.equals(this.type, bacsDirectDebitDetails.type); + return Objects.equals(this.bankAccountNumber, bacsDirectDebitDetails.bankAccountNumber) && + Objects.equals(this.bankLocationId, bacsDirectDebitDetails.bankLocationId) && + Objects.equals(this.checkoutAttemptId, bacsDirectDebitDetails.checkoutAttemptId) && + Objects.equals(this.holderName, bacsDirectDebitDetails.holderName) && + Objects.equals(this.recurringDetailReference, bacsDirectDebitDetails.recurringDetailReference) && + Objects.equals(this.storedPaymentMethodId, bacsDirectDebitDetails.storedPaymentMethodId) && + Objects.equals(this.transferInstrumentId, bacsDirectDebitDetails.transferInstrumentId) && + Objects.equals(this.type, bacsDirectDebitDetails.type); } @Override public int hashCode() { - return Objects.hash( - bankAccountNumber, - bankLocationId, - checkoutAttemptId, - holderName, - recurringDetailReference, - storedPaymentMethodId, - transferInstrumentId, - type); + return Objects.hash(bankAccountNumber, bankLocationId, checkoutAttemptId, holderName, recurringDetailReference, storedPaymentMethodId, transferInstrumentId, type); } @Override @@ -429,22 +406,17 @@ public String toString() { sb.append(" bankLocationId: ").append(toIndentedString(bankLocationId)).append("\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" holderName: ").append(toIndentedString(holderName)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); - sb.append(" transferInstrumentId: ") - .append(toIndentedString(transferInstrumentId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" transferInstrumentId: ").append(toIndentedString(transferInstrumentId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -453,23 +425,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BacsDirectDebitDetails given an JSON string * * @param jsonString JSON string * @return An instance of BacsDirectDebitDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BacsDirectDebitDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to BacsDirectDebitDetails */ public static BacsDirectDebitDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BacsDirectDebitDetails.class); } - - /** - * Convert an instance of BacsDirectDebitDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BacsDirectDebitDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/BalanceCheckRequest.java b/src/main/java/com/adyen/model/checkout/BalanceCheckRequest.java index 5c663c73d..979c84551 100644 --- a/src/main/java/com/adyen/model/checkout/BalanceCheckRequest.java +++ b/src/main/java/com/adyen/model/checkout/BalanceCheckRequest.java @@ -2,32 +2,49 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.AccountInfo; +import com.adyen.model.checkout.Address; +import com.adyen.model.checkout.Amount; +import com.adyen.model.checkout.ApplicationInfo; +import com.adyen.model.checkout.BrowserInfo; +import com.adyen.model.checkout.ForexQuote; +import com.adyen.model.checkout.Installments; +import com.adyen.model.checkout.MerchantRiskIndicator; +import com.adyen.model.checkout.Name; +import com.adyen.model.checkout.Recurring; +import com.adyen.model.checkout.Split; +import com.adyen.model.checkout.ThreeDS2RequestData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.time.OffsetDateTime; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** BalanceCheckRequest */ +/** + * BalanceCheckRequest + */ @JsonPropertyOrder({ BalanceCheckRequest.JSON_PROPERTY_ACCOUNT_INFO, BalanceCheckRequest.JSON_PROPERTY_ADDITIONAL_AMOUNT, @@ -74,6 +91,7 @@ BalanceCheckRequest.JSON_PROPERTY_TOTALS_GROUP, BalanceCheckRequest.JSON_PROPERTY_TRUSTED_SHOPPER }) + public class BalanceCheckRequest { public static final String JSON_PROPERTY_ACCOUNT_INFO = "accountInfo"; private AccountInfo accountInfo; @@ -120,8 +138,7 @@ public class BalanceCheckRequest { public static final String JSON_PROPERTY_INSTALLMENTS = "installments"; private Installments installments; - public static final String JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT = - "localizedShopperStatement"; + public static final String JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT = "localizedShopperStatement"; private Map localizedShopperStatement; public static final String JSON_PROPERTY_MCC = "mcc"; @@ -149,30 +166,22 @@ public class BalanceCheckRequest { private Recurring recurring; /** - * Defines a recurring payment type. Required when creating a token to store payment details or - * using stored payment details. Allowed values: * `Subscription` – A transaction for a - * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a - * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – - * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ public enum RecurringProcessingModelEnum { + CARDONFILE(String.valueOf("CardOnFile")), SUBSCRIPTION(String.valueOf("Subscription")), UNSCHEDULEDCARDONFILE(String.valueOf("UnscheduledCardOnFile")); - private static final Logger LOG = - Logger.getLogger(RecurringProcessingModelEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(RecurringProcessingModelEnum.class.getName()); private String value; RecurringProcessingModelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -193,11 +202,7 @@ public static RecurringProcessingModelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "RecurringProcessingModelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(RecurringProcessingModelEnum.values())); + LOG.warning("RecurringProcessingModelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RecurringProcessingModelEnum.values())); return null; } } @@ -211,8 +216,7 @@ public static RecurringProcessingModelEnum fromValue(String value) { public static final String JSON_PROPERTY_SELECTED_BRAND = "selectedBrand"; private String selectedBrand; - public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = - "selectedRecurringDetailReference"; + public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = "selectedRecurringDetailReference"; private String selectedRecurringDetailReference; public static final String JSON_PROPERTY_SESSION_ID = "sessionId"; @@ -225,19 +229,10 @@ public static RecurringProcessingModelEnum fromValue(String value) { private String shopperIP; /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ public enum ShopperInteractionEnum { + ECOMMERCE(String.valueOf("Ecommerce")), CONTAUTH(String.valueOf("ContAuth")), @@ -251,7 +246,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -272,11 +267,7 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ShopperInteractionEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -311,10 +302,8 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S2_REQUEST_DATA = "threeDS2RequestData"; private ThreeDS2RequestData threeDS2RequestData; - public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = - "threeDSAuthenticationOnly"; - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = "threeDSAuthenticationOnly"; + @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. private Boolean threeDSAuthenticationOnly; public static final String JSON_PROPERTY_TOTALS_GROUP = "totalsGroup"; @@ -323,12 +312,13 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_TRUSTED_SHOPPER = "trustedShopper"; private Boolean trustedShopper; - public BalanceCheckRequest() {} + public BalanceCheckRequest() { + } /** * accountInfo * - * @param accountInfo + * @param accountInfo * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest accountInfo(AccountInfo accountInfo) { @@ -338,8 +328,7 @@ public BalanceCheckRequest accountInfo(AccountInfo accountInfo) { /** * Get accountInfo - * - * @return accountInfo + * @return accountInfo */ @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -350,7 +339,7 @@ public AccountInfo getAccountInfo() { /** * accountInfo * - * @param accountInfo + * @param accountInfo */ @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -361,7 +350,7 @@ public void setAccountInfo(AccountInfo accountInfo) { /** * additionalAmount * - * @param additionalAmount + * @param additionalAmount * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest additionalAmount(Amount additionalAmount) { @@ -371,8 +360,7 @@ public BalanceCheckRequest additionalAmount(Amount additionalAmount) { /** * Get additionalAmount - * - * @return additionalAmount + * @return additionalAmount */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -383,7 +371,7 @@ public Amount getAdditionalAmount() { /** * additionalAmount * - * @param additionalAmount + * @param additionalAmount */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -392,13 +380,9 @@ public void setAdditionalAmount(Amount additionalAmount) { } /** - * This field contains additional data, which may be required for a particular payment request. - * The `additionalData` object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular payment request. The `additionalData` object consists of entries, each - * of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest additionalData(Map additionalData) { @@ -415,13 +399,8 @@ public BalanceCheckRequest putAdditionalDataItem(String key, String additionalDa } /** - * This field contains additional data, which may be required for a particular payment request. - * The `additionalData` object consists of entries, each of which includes the key and - * value. - * - * @return additionalData This field contains additional data, which may be required for a - * particular payment request. The `additionalData` object consists of entries, each - * of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * @return additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -430,13 +409,9 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular payment request. - * The `additionalData` object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular payment request. The `additionalData` object consists of entries, each - * of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -447,7 +422,7 @@ public void setAdditionalData(Map additionalData) { /** * amount * - * @param amount + * @param amount * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest amount(Amount amount) { @@ -457,8 +432,7 @@ public BalanceCheckRequest amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -469,7 +443,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -480,7 +454,7 @@ public void setAmount(Amount amount) { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest applicationInfo(ApplicationInfo applicationInfo) { @@ -490,8 +464,7 @@ public BalanceCheckRequest applicationInfo(ApplicationInfo applicationInfo) { /** * Get applicationInfo - * - * @return applicationInfo + * @return applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -502,7 +475,7 @@ public ApplicationInfo getApplicationInfo() { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -513,7 +486,7 @@ public void setApplicationInfo(ApplicationInfo applicationInfo) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest billingAddress(Address billingAddress) { @@ -523,8 +496,7 @@ public BalanceCheckRequest billingAddress(Address billingAddress) { /** * Get billingAddress - * - * @return billingAddress + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -535,7 +507,7 @@ public Address getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -546,7 +518,7 @@ public void setBillingAddress(Address billingAddress) { /** * browserInfo * - * @param browserInfo + * @param browserInfo * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest browserInfo(BrowserInfo browserInfo) { @@ -556,8 +528,7 @@ public BalanceCheckRequest browserInfo(BrowserInfo browserInfo) { /** * Get browserInfo - * - * @return browserInfo + * @return browserInfo */ @JsonProperty(JSON_PROPERTY_BROWSER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -568,7 +539,7 @@ public BrowserInfo getBrowserInfo() { /** * browserInfo * - * @param browserInfo + * @param browserInfo */ @JsonProperty(JSON_PROPERTY_BROWSER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -579,8 +550,7 @@ public void setBrowserInfo(BrowserInfo browserInfo) { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, - * specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest captureDelayHours(Integer captureDelayHours) { @@ -590,9 +560,7 @@ public BalanceCheckRequest captureDelayHours(Integer captureDelayHours) { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. - * - * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, - * specified in hours. + * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -603,8 +571,7 @@ public Integer getCaptureDelayHours() { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, - * specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -613,11 +580,9 @@ public void setCaptureDelayHours(Integer captureDelayHours) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): - * YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest dateOfBirth(LocalDate dateOfBirth) { @@ -626,11 +591,8 @@ public BalanceCheckRequest dateOfBirth(LocalDate dateOfBirth) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): - * YYYY-MM-DD - * - * @return dateOfBirth The shopper's date of birth. Format - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @return dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -639,11 +601,9 @@ public LocalDate getDateOfBirth() { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): - * YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -654,7 +614,7 @@ public void setDateOfBirth(LocalDate dateOfBirth) { /** * dccQuote * - * @param dccQuote + * @param dccQuote * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest dccQuote(ForexQuote dccQuote) { @@ -664,8 +624,7 @@ public BalanceCheckRequest dccQuote(ForexQuote dccQuote) { /** * Get dccQuote - * - * @return dccQuote + * @return dccQuote */ @JsonProperty(JSON_PROPERTY_DCC_QUOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -676,7 +635,7 @@ public ForexQuote getDccQuote() { /** * dccQuote * - * @param dccQuote + * @param dccQuote */ @JsonProperty(JSON_PROPERTY_DCC_QUOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -687,7 +646,7 @@ public void setDccQuote(ForexQuote dccQuote) { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest deliveryAddress(Address deliveryAddress) { @@ -697,8 +656,7 @@ public BalanceCheckRequest deliveryAddress(Address deliveryAddress) { /** * Get deliveryAddress - * - * @return deliveryAddress + * @return deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -709,7 +667,7 @@ public Address getDeliveryAddress() { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -718,13 +676,9 @@ public void setDeliveryAddress(Address deliveryAddress) { } /** - * The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 * - * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest deliveryDate(OffsetDateTime deliveryDate) { @@ -733,13 +687,8 @@ public BalanceCheckRequest deliveryDate(OffsetDateTime deliveryDate) { } /** - * The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 - * - * @return deliveryDate The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * @return deliveryDate The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 */ @JsonProperty(JSON_PROPERTY_DELIVERY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -748,13 +697,9 @@ public OffsetDateTime getDeliveryDate() { } /** - * The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 * - * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 */ @JsonProperty(JSON_PROPERTY_DELIVERY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -763,12 +708,9 @@ public void setDeliveryDate(OffsetDateTime deliveryDate) { } /** - * A string containing the shopper's device fingerprint. For more information, refer to - * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * - * @param deviceFingerprint A string containing the shopper's device fingerprint. For more - * information, refer to [Device - * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @param deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest deviceFingerprint(String deviceFingerprint) { @@ -777,12 +719,8 @@ public BalanceCheckRequest deviceFingerprint(String deviceFingerprint) { } /** - * A string containing the shopper's device fingerprint. For more information, refer to - * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). - * - * @return deviceFingerprint A string containing the shopper's device fingerprint. For more - * information, refer to [Device - * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @return deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -791,12 +729,9 @@ public String getDeviceFingerprint() { } /** - * A string containing the shopper's device fingerprint. For more information, refer to - * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * - * @param deviceFingerprint A string containing the shopper's device fingerprint. For more - * information, refer to [Device - * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @param deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -805,11 +740,9 @@ public void setDeviceFingerprint(String deviceFingerprint) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or - * negative. + * An integer value that is added to the normal fraud score. The value can be either positive or negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be - * either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest fraudOffset(Integer fraudOffset) { @@ -818,11 +751,8 @@ public BalanceCheckRequest fraudOffset(Integer fraudOffset) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or - * negative. - * - * @return fraudOffset An integer value that is added to the normal fraud score. The value can be - * either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + * @return fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -831,11 +761,9 @@ public Integer getFraudOffset() { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or - * negative. + * An integer value that is added to the normal fraud score. The value can be either positive or negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be - * either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -846,7 +774,7 @@ public void setFraudOffset(Integer fraudOffset) { /** * installments * - * @param installments + * @param installments * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest installments(Installments installments) { @@ -856,8 +784,7 @@ public BalanceCheckRequest installments(Installments installments) { /** * Get installments - * - * @return installments + * @return installments */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -868,7 +795,7 @@ public Installments getInstallments() { /** * installments * - * @param installments + * @param installments */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -877,29 +804,17 @@ public void setInstallments(Installments installments) { } /** - * The `localizedShopperStatement` field lets you use dynamic values for your shopper - * statement in a local character set. If not supplied, left empty, or for cross-border - * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani - * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This - * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special - * characters. * Half-width or full-width characters. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. * - * @param localizedShopperStatement The `localizedShopperStatement` field lets you use - * dynamic values for your shopper statement in a local character set. If not supplied, left - * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently - * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in - * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, - * capital letters, numbers and special characters. * Half-width or full-width characters. + * @param localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ - public BalanceCheckRequest localizedShopperStatement( - Map localizedShopperStatement) { + public BalanceCheckRequest localizedShopperStatement(Map localizedShopperStatement) { this.localizedShopperStatement = localizedShopperStatement; return this; } - public BalanceCheckRequest putLocalizedShopperStatementItem( - String key, String localizedShopperStatementItem) { + public BalanceCheckRequest putLocalizedShopperStatementItem(String key, String localizedShopperStatementItem) { if (this.localizedShopperStatement == null) { this.localizedShopperStatement = new HashMap<>(); } @@ -908,19 +823,8 @@ public BalanceCheckRequest putLocalizedShopperStatementItem( } /** - * The `localizedShopperStatement` field lets you use dynamic values for your shopper - * statement in a local character set. If not supplied, left empty, or for cross-border - * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani - * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This - * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special - * characters. * Half-width or full-width characters. - * - * @return localizedShopperStatement The `localizedShopperStatement` field lets you use - * dynamic values for your shopper statement in a local character set. If not supplied, left - * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently - * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in - * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, - * capital letters, numbers and special characters. * Half-width or full-width characters. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. + * @return localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. */ @JsonProperty(JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -929,19 +833,9 @@ public Map getLocalizedShopperStatement() { } /** - * The `localizedShopperStatement` field lets you use dynamic values for your shopper - * statement in a local character set. If not supplied, left empty, or for cross-border - * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani - * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This - * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special - * characters. * Half-width or full-width characters. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. * - * @param localizedShopperStatement The `localizedShopperStatement` field lets you use - * dynamic values for your shopper statement in a local character set. If not supplied, left - * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently - * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in - * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, - * capital letters, numbers and special characters. * Half-width or full-width characters. + * @param localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. */ @JsonProperty(JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -950,13 +844,9 @@ public void setLocalizedShopperStatement(Map localizedShopperSta } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a - * four-digit number, which relates to a particular market segment. This code reflects the - * predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) - * (MCC) is a four-digit number, which relates to a particular market segment. This code - * reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest mcc(String mcc) { @@ -965,13 +855,8 @@ public BalanceCheckRequest mcc(String mcc) { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a - * four-digit number, which relates to a particular market segment. This code reflects the - * predominant activity that is conducted by the merchant. - * - * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) - * (MCC) is a four-digit number, which relates to a particular market segment. This code - * reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -980,13 +865,9 @@ public String getMcc() { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a - * four-digit number, which relates to a particular market segment. This code reflects the - * predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) - * (MCC) is a four-digit number, which relates to a particular market segment. This code - * reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -997,8 +878,7 @@ public void setMcc(String mcc) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest merchantAccount(String merchantAccount) { @@ -1008,9 +888,7 @@ public BalanceCheckRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * - * @return merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @return merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1021,8 +899,7 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1031,23 +908,9 @@ public void setMerchantAccount(String merchantAccount) { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. - * order auth-rate). The reference should be unique per billing cycle. The same merchant order - * reference should never be reused after the first authorised attempt. If used, this field should - * be supplied for all incoming authorisations. > We strongly recommend you send the - * `merchantOrderReference` value to benefit from linking payment requests when - * authorisation retries take place. In addition, we recommend you provide - * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. - * - * @param merchantOrderReference This reference allows linking multiple transactions to each other - * for reporting purposes (i.e. order auth-rate). The reference should be unique per billing - * cycle. The same merchant order reference should never be reused after the first authorised - * attempt. If used, this field should be supplied for all incoming authorisations. > We - * strongly recommend you send the `merchantOrderReference` value to benefit from - * linking payment requests when authorisation retries take place. In addition, we recommend - * you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * + * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest merchantOrderReference(String merchantOrderReference) { @@ -1056,24 +919,8 @@ public BalanceCheckRequest merchantOrderReference(String merchantOrderReference) } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. - * order auth-rate). The reference should be unique per billing cycle. The same merchant order - * reference should never be reused after the first authorised attempt. If used, this field should - * be supplied for all incoming authorisations. > We strongly recommend you send the - * `merchantOrderReference` value to benefit from linking payment requests when - * authorisation retries take place. In addition, we recommend you provide - * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. - * - * @return merchantOrderReference This reference allows linking multiple transactions to each - * other for reporting purposes (i.e. order auth-rate). The reference should be unique per - * billing cycle. The same merchant order reference should never be reused after the first - * authorised attempt. If used, this field should be supplied for all incoming authorisations. - * > We strongly recommend you send the `merchantOrderReference` value to benefit - * from linking payment requests when authorisation retries take place. In addition, we - * recommend you provide `retry.orderAttemptNumber`, - * `retry.chainAttemptNumber`, and `retry.skipRetry` values in - * `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * @return merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1082,23 +929,9 @@ public String getMerchantOrderReference() { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. - * order auth-rate). The reference should be unique per billing cycle. The same merchant order - * reference should never be reused after the first authorised attempt. If used, this field should - * be supplied for all incoming authorisations. > We strongly recommend you send the - * `merchantOrderReference` value to benefit from linking payment requests when - * authorisation retries take place. In addition, we recommend you provide - * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. * - * @param merchantOrderReference This reference allows linking multiple transactions to each other - * for reporting purposes (i.e. order auth-rate). The reference should be unique per billing - * cycle. The same merchant order reference should never be reused after the first authorised - * attempt. If used, this field should be supplied for all incoming authorisations. > We - * strongly recommend you send the `merchantOrderReference` value to benefit from - * linking payment requests when authorisation retries take place. In addition, we recommend - * you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1109,7 +942,7 @@ public void setMerchantOrderReference(String merchantOrderReference) { /** * merchantRiskIndicator * - * @param merchantRiskIndicator + * @param merchantRiskIndicator * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest merchantRiskIndicator(MerchantRiskIndicator merchantRiskIndicator) { @@ -1119,8 +952,7 @@ public BalanceCheckRequest merchantRiskIndicator(MerchantRiskIndicator merchantR /** * Get merchantRiskIndicator - * - * @return merchantRiskIndicator + * @return merchantRiskIndicator */ @JsonProperty(JSON_PROPERTY_MERCHANT_RISK_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1131,7 +963,7 @@ public MerchantRiskIndicator getMerchantRiskIndicator() { /** * merchantRiskIndicator * - * @param merchantRiskIndicator + * @param merchantRiskIndicator */ @JsonProperty(JSON_PROPERTY_MERCHANT_RISK_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1140,15 +972,9 @@ public void setMerchantRiskIndicator(MerchantRiskIndicator merchantRiskIndicator } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 - * key-value pairs per request. When exceeding, the \"177\" error occurs: - * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 - * characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: - * * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error - * occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * - * Maximum 80 characters per value. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest metadata(Map metadata) { @@ -1165,15 +991,8 @@ public BalanceCheckRequest putMetadataItem(String key, String metadataItem) { } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 - * key-value pairs per request. When exceeding, the \"177\" error occurs: - * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 - * characters per value. - * - * @return metadata Metadata consists of entries, each of which includes a key and a value. - * Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" - * error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * - * Maximum 80 characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * @return metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1182,15 +1001,9 @@ public Map getMetadata() { } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 - * key-value pairs per request. When exceeding, the \"177\" error occurs: - * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 - * characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: - * * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error - * occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * - * Maximum 80 characters per value. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1199,14 +1012,9 @@ public void setMetadata(Map metadata) { } /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` - * of the first payment. We use this to link the multiple payments to each other. As your own - * reference for linking multiple payments, use the `merchantOrderReference`instead. + * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. * - * @param orderReference When you are doing multiple partial (gift card) payments, this is the - * `pspReference` of the first payment. We use this to link the multiple payments to - * each other. As your own reference for linking multiple payments, use the - * `merchantOrderReference`instead. + * @param orderReference When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest orderReference(String orderReference) { @@ -1215,14 +1023,8 @@ public BalanceCheckRequest orderReference(String orderReference) { } /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` - * of the first payment. We use this to link the multiple payments to each other. As your own - * reference for linking multiple payments, use the `merchantOrderReference`instead. - * - * @return orderReference When you are doing multiple partial (gift card) payments, this is the - * `pspReference` of the first payment. We use this to link the multiple payments to - * each other. As your own reference for linking multiple payments, use the - * `merchantOrderReference`instead. + * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + * @return orderReference When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. */ @JsonProperty(JSON_PROPERTY_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1231,14 +1033,9 @@ public String getOrderReference() { } /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` - * of the first payment. We use this to link the multiple payments to each other. As your own - * reference for linking multiple payments, use the `merchantOrderReference`instead. + * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. * - * @param orderReference When you are doing multiple partial (gift card) payments, this is the - * `pspReference` of the first payment. We use this to link the multiple payments to - * each other. As your own reference for linking multiple payments, use the - * `merchantOrderReference`instead. + * @param orderReference When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. */ @JsonProperty(JSON_PROPERTY_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1249,8 +1046,7 @@ public void setOrderReference(String orderReference) { /** * The collection that contains the type of the payment method and its specific information. * - * @param paymentMethod The collection that contains the type of the payment method and its - * specific information. + * @param paymentMethod The collection that contains the type of the payment method and its specific information. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest paymentMethod(Map paymentMethod) { @@ -1268,9 +1064,7 @@ public BalanceCheckRequest putPaymentMethodItem(String key, String paymentMethod /** * The collection that contains the type of the payment method and its specific information. - * - * @return paymentMethod The collection that contains the type of the payment method and its - * specific information. + * @return paymentMethod The collection that contains the type of the payment method and its specific information. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1281,8 +1075,7 @@ public Map getPaymentMethod() { /** * The collection that contains the type of the payment method and its specific information. * - * @param paymentMethod The collection that contains the type of the payment method and its - * specific information. + * @param paymentMethod The collection that contains the type of the payment method and its specific information. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1293,7 +1086,7 @@ public void setPaymentMethod(Map paymentMethod) { /** * recurring * - * @param recurring + * @param recurring * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest recurring(Recurring recurring) { @@ -1303,8 +1096,7 @@ public BalanceCheckRequest recurring(Recurring recurring) { /** * Get recurring - * - * @return recurring + * @return recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1315,7 +1107,7 @@ public Recurring getRecurring() { /** * recurring * - * @param recurring + * @param recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1324,55 +1116,19 @@ public void setRecurring(Recurring recurring) { } /** - * Defines a recurring payment type. Required when creating a token to store payment details or - * using stored payment details. Allowed values: * `Subscription` – A transaction for a - * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a - * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – - * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. - * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a - * token to store payment details or using stored payment details. Allowed values: * - * `Subscription` – A transaction for a fixed or variable amount, which follows a - * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card - * details are stored to enable one-click or omnichannel journeys, or simply to streamline the - * checkout process. Any subscription not following a fixed schedule is also considered a - * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file - * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have - * variable amounts. For example, automatic top-ups when a cardholder's balance drops - * below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ - public BalanceCheckRequest recurringProcessingModel( - RecurringProcessingModelEnum recurringProcessingModel) { + public BalanceCheckRequest recurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) { this.recurringProcessingModel = recurringProcessingModel; return this; } /** - * Defines a recurring payment type. Required when creating a token to store payment details or - * using stored payment details. Allowed values: * `Subscription` – A transaction for a - * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a - * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – - * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. - * - * @return recurringProcessingModel Defines a recurring payment type. Required when creating a - * token to store payment details or using stored payment details. Allowed values: * - * `Subscription` – A transaction for a fixed or variable amount, which follows a - * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card - * details are stored to enable one-click or omnichannel journeys, or simply to streamline the - * checkout process. Any subscription not following a fixed schedule is also considered a - * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file - * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have - * variable amounts. For example, automatic top-ups when a cardholder's balance drops - * below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * @return recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1381,26 +1137,9 @@ public RecurringProcessingModelEnum getRecurringProcessingModel() { } /** - * Defines a recurring payment type. Required when creating a token to store payment details or - * using stored payment details. Allowed values: * `Subscription` – A transaction for a - * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a - * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – - * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. - * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a - * token to store payment details or using stored payment details. Allowed values: * - * `Subscription` – A transaction for a fixed or variable amount, which follows a - * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card - * details are stored to enable one-click or omnichannel journeys, or simply to streamline the - * checkout process. Any subscription not following a fixed schedule is also considered a - * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file - * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have - * variable amounts. For example, automatic top-ups when a cardholder's balance drops - * below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1409,15 +1148,9 @@ public void setRecurringProcessingModel(RecurringProcessingModelEnum recurringPr } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest reference(String reference) { @@ -1426,15 +1159,8 @@ public BalanceCheckRequest reference(String reference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. - * - * @return reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @return reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1443,15 +1169,9 @@ public String getReference() { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1460,15 +1180,9 @@ public void setReference(String reference) { } /** - * Some payment methods require defining a value for this field to specify how to process the - * transaction. For the Bancontact payment method, it can be set to: * `maestro` - * (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a - * Bancontact card. + * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. * - * @param selectedBrand Some payment methods require defining a value for this field to specify - * how to process the transaction. For the Bancontact payment method, it can be set to: * - * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, - * to be processed like a Bancontact card. + * @param selectedBrand Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest selectedBrand(String selectedBrand) { @@ -1477,15 +1191,8 @@ public BalanceCheckRequest selectedBrand(String selectedBrand) { } /** - * Some payment methods require defining a value for this field to specify how to process the - * transaction. For the Bancontact payment method, it can be set to: * `maestro` - * (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a - * Bancontact card. - * - * @return selectedBrand Some payment methods require defining a value for this field to specify - * how to process the transaction. For the Bancontact payment method, it can be set to: * - * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, - * to be processed like a Bancontact card. + * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. + * @return selectedBrand Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. */ @JsonProperty(JSON_PROPERTY_SELECTED_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1494,15 +1201,9 @@ public String getSelectedBrand() { } /** - * Some payment methods require defining a value for this field to specify how to process the - * transaction. For the Bancontact payment method, it can be set to: * `maestro` - * (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a - * Bancontact card. + * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. * - * @param selectedBrand Some payment methods require defining a value for this field to specify - * how to process the transaction. For the Bancontact payment method, it can be set to: * - * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, - * to be processed like a Bancontact card. + * @param selectedBrand Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. */ @JsonProperty(JSON_PROPERTY_SELECTED_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1511,27 +1212,19 @@ public void setSelectedBrand(String selectedBrand) { } /** - * The `recurringDetailReference` you want to use for this payment. The value - * `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. * - * @param selectedRecurringDetailReference The `recurringDetailReference` you want to - * use for this payment. The value `LATEST` can be used to select the most recently - * stored recurring detail. + * @param selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ - public BalanceCheckRequest selectedRecurringDetailReference( - String selectedRecurringDetailReference) { + public BalanceCheckRequest selectedRecurringDetailReference(String selectedRecurringDetailReference) { this.selectedRecurringDetailReference = selectedRecurringDetailReference; return this; } /** - * The `recurringDetailReference` you want to use for this payment. The value - * `LATEST` can be used to select the most recently stored recurring detail. - * - * @return selectedRecurringDetailReference The `recurringDetailReference` you want to - * use for this payment. The value `LATEST` can be used to select the most recently - * stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * @return selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1540,12 +1233,9 @@ public String getSelectedRecurringDetailReference() { } /** - * The `recurringDetailReference` you want to use for this payment. The value - * `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. * - * @param selectedRecurringDetailReference The `recurringDetailReference` you want to - * use for this payment. The value `LATEST` can be used to select the most recently - * stored recurring detail. + * @param selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1566,7 +1256,6 @@ public BalanceCheckRequest sessionId(String sessionId) { /** * A session ID used to identify a payment session. - * * @return sessionId A session ID used to identify a payment session. */ @JsonProperty(JSON_PROPERTY_SESSION_ID) @@ -1587,13 +1276,9 @@ public void setSessionId(String sessionId) { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in - * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 - * authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, - * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that - * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest shopperEmail(String shopperEmail) { @@ -1602,13 +1287,8 @@ public BalanceCheckRequest shopperEmail(String shopperEmail) { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in - * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 - * authentication if you did not include the `telephoneNumber`. - * - * @return shopperEmail The shopper's email address. We recommend that you provide this data, - * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that - * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @return shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1617,13 +1297,9 @@ public String getShopperEmail() { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in - * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 - * authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, - * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that - * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1632,22 +1308,9 @@ public void setShopperEmail(String shopperEmail) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks). > - * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and - * mobile integrations, if you did not include the `shopperEmail`. For native mobile - * integrations, the field is required to support cases where authentication is routed to the - * redirect flow. This field is also mandatory for some merchants depending on your business - * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it - * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks). > Required for Visa and JCB transactions that require 3D Secure - * 2 authentication for all web and mobile integrations, if you did not include the - * `shopperEmail`. For native mobile integrations, the field is required to support - * cases where authentication is routed to the redirect flow. This field is also mandatory for - * some merchants depending on your business model. For more information, [contact - * Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest shopperIP(String shopperIP) { @@ -1656,22 +1319,8 @@ public BalanceCheckRequest shopperIP(String shopperIP) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks). > - * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and - * mobile integrations, if you did not include the `shopperEmail`. For native mobile - * integrations, the field is required to support cases where authentication is routed to the - * redirect flow. This field is also mandatory for some merchants depending on your business - * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). - * - * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it - * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks). > Required for Visa and JCB transactions that require 3D Secure - * 2 authentication for all web and mobile integrations, if you did not include the - * `shopperEmail`. For native mobile integrations, the field is required to support - * cases where authentication is routed to the redirect flow. This field is also mandatory for - * some merchants depending on your business model. For more information, [contact - * Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1680,22 +1329,9 @@ public String getShopperIP() { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks). > - * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and - * mobile integrations, if you did not include the `shopperEmail`. For native mobile - * integrations, the field is required to support cases where authentication is routed to the - * redirect flow. This field is also mandatory for some merchants depending on your business - * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it - * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks). > Required for Visa and JCB transactions that require 3D Secure - * 2 authentication for all web and mobile integrations, if you did not include the - * `shopperEmail`. For native mobile integrations, the field is required to support - * cases where authentication is routed to the redirect flow. This field is also mandatory for - * some merchants depending on your business model. For more information, [contact - * Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1704,30 +1340,9 @@ public void setShopperIP(String shopperIP) { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. - * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest shopperInteraction(ShopperInteractionEnum shopperInteraction) { @@ -1736,30 +1351,8 @@ public BalanceCheckRequest shopperInteraction(ShopperInteractionEnum shopperInte } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. - * - * @return shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * @return shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1768,30 +1361,9 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. - * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1800,11 +1372,9 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The combination of a language code and a country code to specify the language to be used in the payment. * - * @param shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest shopperLocale(String shopperLocale) { @@ -1813,11 +1383,8 @@ public BalanceCheckRequest shopperLocale(String shopperLocale) { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. - * - * @return shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the payment. + * @return shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1826,11 +1393,9 @@ public String getShopperLocale() { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The combination of a language code and a country code to specify the language to be used in the payment. * - * @param shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1841,7 +1406,7 @@ public void setShopperLocale(String shopperLocale) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest shopperName(Name shopperName) { @@ -1851,8 +1416,7 @@ public BalanceCheckRequest shopperName(Name shopperName) { /** * Get shopperName - * - * @return shopperName + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1863,7 +1427,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1872,15 +1436,9 @@ public void setShopperName(Name shopperName) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example - * user ID or account ID. The value is case-sensitive and must be at least three characters. > - * Your reference must not include personally identifiable information (PII) such as name or email - * address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify - * this shopper, for example user ID or account ID. The value is case-sensitive and must be at - * least three characters. > Your reference must not include personally identifiable - * information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest shopperReference(String shopperReference) { @@ -1889,15 +1447,8 @@ public BalanceCheckRequest shopperReference(String shopperReference) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example - * user ID or account ID. The value is case-sensitive and must be at least three characters. > - * Your reference must not include personally identifiable information (PII) such as name or email - * address. - * - * @return shopperReference Required for recurring payments. Your reference to uniquely identify - * this shopper, for example user ID or account ID. The value is case-sensitive and must be at - * least three characters. > Your reference must not include personally identifiable - * information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @return shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1906,15 +1457,9 @@ public String getShopperReference() { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example - * user ID or account ID. The value is case-sensitive and must be at least three characters. > - * Your reference must not include personally identifiable information (PII) such as name or email - * address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify - * this shopper, for example user ID or account ID. The value is case-sensitive and must be at - * least three characters. > Your reference must not include personally identifiable - * information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1923,14 +1468,9 @@ public void setShopperReference(String shopperReference) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 - * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, - * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend - * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed - * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * - * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest shopperStatement(String shopperStatement) { @@ -1939,14 +1479,8 @@ public BalanceCheckRequest shopperStatement(String shopperStatement) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 - * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, - * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. - * - * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend - * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed - * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * - * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1955,14 +1489,9 @@ public String getShopperStatement() { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 - * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, - * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend - * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed - * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * - * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1983,7 +1512,6 @@ public BalanceCheckRequest socialSecurityNumber(String socialSecurityNumber) { /** * The shopper's social security number. - * * @return socialSecurityNumber The shopper's social security number. */ @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER) @@ -2004,15 +1532,9 @@ public void setSocialSecurityNumber(String socialSecurityNumber) { } /** - * An array of objects specifying how the payment should be split when using either Adyen for - * Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/split-payments), or standalone - * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). * - * @param splits An array of objects specifying how the payment should be split when using either - * Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) - * or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone - * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * @param splits An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest splits(List splits) { @@ -2029,15 +1551,8 @@ public BalanceCheckRequest addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how the payment should be split when using either Adyen for - * Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/split-payments), or standalone - * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). - * - * @return splits An array of objects specifying how the payment should be split when using either - * Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) - * or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone - * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * @return splits An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2046,15 +1561,9 @@ public List getSplits() { } /** - * An array of objects specifying how the payment should be split when using either Adyen for - * Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/split-payments), or standalone - * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). * - * @param splits An array of objects specifying how the payment should be split when using either - * Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) - * or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone - * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * @param splits An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2063,22 +1572,9 @@ public void setSplits(List splits) { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. * - * @param store Required for Adyen for Platforms integrations if you are a platform model. This is - * your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest store(String store) { @@ -2087,22 +1583,8 @@ public BalanceCheckRequest store(String store) { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. - * - * @return store Required for Adyen for Platforms integrations if you are a platform model. This - * is your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * @return store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2111,22 +1593,9 @@ public String getStore() { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. * - * @param store Required for Adyen for Platforms integrations if you are a platform model. This is - * your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2135,17 +1604,9 @@ public void setStore(String store) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus - * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest telephoneNumber(String telephoneNumber) { @@ -2154,17 +1615,8 @@ public BalanceCheckRequest telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. - * - * @return telephoneNumber The shopper's telephone number. The phone number must include a - * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @return telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2173,17 +1625,9 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus - * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2194,7 +1638,7 @@ public void setTelephoneNumber(String telephoneNumber) { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest threeDS2RequestData(ThreeDS2RequestData threeDS2RequestData) { @@ -2204,8 +1648,7 @@ public BalanceCheckRequest threeDS2RequestData(ThreeDS2RequestData threeDS2Reque /** * Get threeDS2RequestData - * - * @return threeDS2RequestData + * @return threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2216,7 +1659,7 @@ public ThreeDS2RequestData getThreeDS2RequestData() { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2225,41 +1668,26 @@ public void setThreeDS2RequestData(ThreeDS2RequestData threeDS2RequestData) { } /** - * Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. * - * @param threeDSAuthenticationOnly Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. + * @param threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` - * instead. + * + * @deprecated since Adyen Checkout API v69 + * Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. public BalanceCheckRequest threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { this.threeDSAuthenticationOnly = threeDSAuthenticationOnly; return this; } /** - * Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. - * - * @return threeDSAuthenticationOnly Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. - * @deprecated // deprecated since Adyen Checkout API v69: Use - * `authenticationData.authenticationOnly` instead. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * @return threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * @deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getThreeDSAuthenticationOnly() { @@ -2267,20 +1695,14 @@ public Boolean getThreeDSAuthenticationOnly() { } /** - * Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * + * @param threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. * - * @param threeDSAuthenticationOnly Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. - * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` - * instead. + * @deprecated since Adyen Checkout API v69 + * Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { @@ -2288,11 +1710,9 @@ public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { } /** - * The reference value to aggregate sales totals in reporting. When not specified, the store field - * is used (if available). + * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). * - * @param totalsGroup The reference value to aggregate sales totals in reporting. When not - * specified, the store field is used (if available). + * @param totalsGroup The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest totalsGroup(String totalsGroup) { @@ -2301,11 +1721,8 @@ public BalanceCheckRequest totalsGroup(String totalsGroup) { } /** - * The reference value to aggregate sales totals in reporting. When not specified, the store field - * is used (if available). - * - * @return totalsGroup The reference value to aggregate sales totals in reporting. When not - * specified, the store field is used (if available). + * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). + * @return totalsGroup The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). */ @JsonProperty(JSON_PROPERTY_TOTALS_GROUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2314,11 +1731,9 @@ public String getTotalsGroup() { } /** - * The reference value to aggregate sales totals in reporting. When not specified, the store field - * is used (if available). + * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). * - * @param totalsGroup The reference value to aggregate sales totals in reporting. When not - * specified, the store field is used (if available). + * @param totalsGroup The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). */ @JsonProperty(JSON_PROPERTY_TOTALS_GROUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2339,7 +1754,6 @@ public BalanceCheckRequest trustedShopper(Boolean trustedShopper) { /** * Set to true if the payment should be routed to a trusted MID. - * * @return trustedShopper Set to true if the payment should be routed to a trusted MID. */ @JsonProperty(JSON_PROPERTY_TRUSTED_SHOPPER) @@ -2359,7 +1773,9 @@ public void setTrustedShopper(Boolean trustedShopper) { this.trustedShopper = trustedShopper; } - /** Return true if this BalanceCheckRequest object is equal to o. */ + /** + * Return true if this BalanceCheckRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -2369,104 +1785,55 @@ public boolean equals(Object o) { return false; } BalanceCheckRequest balanceCheckRequest = (BalanceCheckRequest) o; - return Objects.equals(this.accountInfo, balanceCheckRequest.accountInfo) - && Objects.equals(this.additionalAmount, balanceCheckRequest.additionalAmount) - && Objects.equals(this.additionalData, balanceCheckRequest.additionalData) - && Objects.equals(this.amount, balanceCheckRequest.amount) - && Objects.equals(this.applicationInfo, balanceCheckRequest.applicationInfo) - && Objects.equals(this.billingAddress, balanceCheckRequest.billingAddress) - && Objects.equals(this.browserInfo, balanceCheckRequest.browserInfo) - && Objects.equals(this.captureDelayHours, balanceCheckRequest.captureDelayHours) - && Objects.equals(this.dateOfBirth, balanceCheckRequest.dateOfBirth) - && Objects.equals(this.dccQuote, balanceCheckRequest.dccQuote) - && Objects.equals(this.deliveryAddress, balanceCheckRequest.deliveryAddress) - && Objects.equals(this.deliveryDate, balanceCheckRequest.deliveryDate) - && Objects.equals(this.deviceFingerprint, balanceCheckRequest.deviceFingerprint) - && Objects.equals(this.fraudOffset, balanceCheckRequest.fraudOffset) - && Objects.equals(this.installments, balanceCheckRequest.installments) - && Objects.equals( - this.localizedShopperStatement, balanceCheckRequest.localizedShopperStatement) - && Objects.equals(this.mcc, balanceCheckRequest.mcc) - && Objects.equals(this.merchantAccount, balanceCheckRequest.merchantAccount) - && Objects.equals(this.merchantOrderReference, balanceCheckRequest.merchantOrderReference) - && Objects.equals(this.merchantRiskIndicator, balanceCheckRequest.merchantRiskIndicator) - && Objects.equals(this.metadata, balanceCheckRequest.metadata) - && Objects.equals(this.orderReference, balanceCheckRequest.orderReference) - && Objects.equals(this.paymentMethod, balanceCheckRequest.paymentMethod) - && Objects.equals(this.recurring, balanceCheckRequest.recurring) - && Objects.equals( - this.recurringProcessingModel, balanceCheckRequest.recurringProcessingModel) - && Objects.equals(this.reference, balanceCheckRequest.reference) - && Objects.equals(this.selectedBrand, balanceCheckRequest.selectedBrand) - && Objects.equals( - this.selectedRecurringDetailReference, - balanceCheckRequest.selectedRecurringDetailReference) - && Objects.equals(this.sessionId, balanceCheckRequest.sessionId) - && Objects.equals(this.shopperEmail, balanceCheckRequest.shopperEmail) - && Objects.equals(this.shopperIP, balanceCheckRequest.shopperIP) - && Objects.equals(this.shopperInteraction, balanceCheckRequest.shopperInteraction) - && Objects.equals(this.shopperLocale, balanceCheckRequest.shopperLocale) - && Objects.equals(this.shopperName, balanceCheckRequest.shopperName) - && Objects.equals(this.shopperReference, balanceCheckRequest.shopperReference) - && Objects.equals(this.shopperStatement, balanceCheckRequest.shopperStatement) - && Objects.equals(this.socialSecurityNumber, balanceCheckRequest.socialSecurityNumber) - && Objects.equals(this.splits, balanceCheckRequest.splits) - && Objects.equals(this.store, balanceCheckRequest.store) - && Objects.equals(this.telephoneNumber, balanceCheckRequest.telephoneNumber) - && Objects.equals(this.threeDS2RequestData, balanceCheckRequest.threeDS2RequestData) - && Objects.equals( - this.threeDSAuthenticationOnly, balanceCheckRequest.threeDSAuthenticationOnly) - && Objects.equals(this.totalsGroup, balanceCheckRequest.totalsGroup) - && Objects.equals(this.trustedShopper, balanceCheckRequest.trustedShopper); + return Objects.equals(this.accountInfo, balanceCheckRequest.accountInfo) && + Objects.equals(this.additionalAmount, balanceCheckRequest.additionalAmount) && + Objects.equals(this.additionalData, balanceCheckRequest.additionalData) && + Objects.equals(this.amount, balanceCheckRequest.amount) && + Objects.equals(this.applicationInfo, balanceCheckRequest.applicationInfo) && + Objects.equals(this.billingAddress, balanceCheckRequest.billingAddress) && + Objects.equals(this.browserInfo, balanceCheckRequest.browserInfo) && + Objects.equals(this.captureDelayHours, balanceCheckRequest.captureDelayHours) && + Objects.equals(this.dateOfBirth, balanceCheckRequest.dateOfBirth) && + Objects.equals(this.dccQuote, balanceCheckRequest.dccQuote) && + Objects.equals(this.deliveryAddress, balanceCheckRequest.deliveryAddress) && + Objects.equals(this.deliveryDate, balanceCheckRequest.deliveryDate) && + Objects.equals(this.deviceFingerprint, balanceCheckRequest.deviceFingerprint) && + Objects.equals(this.fraudOffset, balanceCheckRequest.fraudOffset) && + Objects.equals(this.installments, balanceCheckRequest.installments) && + Objects.equals(this.localizedShopperStatement, balanceCheckRequest.localizedShopperStatement) && + Objects.equals(this.mcc, balanceCheckRequest.mcc) && + Objects.equals(this.merchantAccount, balanceCheckRequest.merchantAccount) && + Objects.equals(this.merchantOrderReference, balanceCheckRequest.merchantOrderReference) && + Objects.equals(this.merchantRiskIndicator, balanceCheckRequest.merchantRiskIndicator) && + Objects.equals(this.metadata, balanceCheckRequest.metadata) && + Objects.equals(this.orderReference, balanceCheckRequest.orderReference) && + Objects.equals(this.paymentMethod, balanceCheckRequest.paymentMethod) && + Objects.equals(this.recurring, balanceCheckRequest.recurring) && + Objects.equals(this.recurringProcessingModel, balanceCheckRequest.recurringProcessingModel) && + Objects.equals(this.reference, balanceCheckRequest.reference) && + Objects.equals(this.selectedBrand, balanceCheckRequest.selectedBrand) && + Objects.equals(this.selectedRecurringDetailReference, balanceCheckRequest.selectedRecurringDetailReference) && + Objects.equals(this.sessionId, balanceCheckRequest.sessionId) && + Objects.equals(this.shopperEmail, balanceCheckRequest.shopperEmail) && + Objects.equals(this.shopperIP, balanceCheckRequest.shopperIP) && + Objects.equals(this.shopperInteraction, balanceCheckRequest.shopperInteraction) && + Objects.equals(this.shopperLocale, balanceCheckRequest.shopperLocale) && + Objects.equals(this.shopperName, balanceCheckRequest.shopperName) && + Objects.equals(this.shopperReference, balanceCheckRequest.shopperReference) && + Objects.equals(this.shopperStatement, balanceCheckRequest.shopperStatement) && + Objects.equals(this.socialSecurityNumber, balanceCheckRequest.socialSecurityNumber) && + Objects.equals(this.splits, balanceCheckRequest.splits) && + Objects.equals(this.store, balanceCheckRequest.store) && + Objects.equals(this.telephoneNumber, balanceCheckRequest.telephoneNumber) && + Objects.equals(this.threeDS2RequestData, balanceCheckRequest.threeDS2RequestData) && + Objects.equals(this.threeDSAuthenticationOnly, balanceCheckRequest.threeDSAuthenticationOnly) && + Objects.equals(this.totalsGroup, balanceCheckRequest.totalsGroup) && + Objects.equals(this.trustedShopper, balanceCheckRequest.trustedShopper); } @Override public int hashCode() { - return Objects.hash( - accountInfo, - additionalAmount, - additionalData, - amount, - applicationInfo, - billingAddress, - browserInfo, - captureDelayHours, - dateOfBirth, - dccQuote, - deliveryAddress, - deliveryDate, - deviceFingerprint, - fraudOffset, - installments, - localizedShopperStatement, - mcc, - merchantAccount, - merchantOrderReference, - merchantRiskIndicator, - metadata, - orderReference, - paymentMethod, - recurring, - recurringProcessingModel, - reference, - selectedBrand, - selectedRecurringDetailReference, - sessionId, - shopperEmail, - shopperIP, - shopperInteraction, - shopperLocale, - shopperName, - shopperReference, - shopperStatement, - socialSecurityNumber, - splits, - store, - telephoneNumber, - threeDS2RequestData, - threeDSAuthenticationOnly, - totalsGroup, - trustedShopper); + return Objects.hash(accountInfo, additionalAmount, additionalData, amount, applicationInfo, billingAddress, browserInfo, captureDelayHours, dateOfBirth, dccQuote, deliveryAddress, deliveryDate, deviceFingerprint, fraudOffset, installments, localizedShopperStatement, mcc, merchantAccount, merchantOrderReference, merchantRiskIndicator, metadata, orderReference, paymentMethod, recurring, recurringProcessingModel, reference, selectedBrand, selectedRecurringDetailReference, sessionId, shopperEmail, shopperIP, shopperInteraction, shopperLocale, shopperName, shopperReference, shopperStatement, socialSecurityNumber, splits, store, telephoneNumber, threeDS2RequestData, threeDSAuthenticationOnly, totalsGroup, trustedShopper); } @Override @@ -2488,29 +1855,19 @@ public String toString() { sb.append(" deviceFingerprint: ").append(toIndentedString(deviceFingerprint)).append("\n"); sb.append(" fraudOffset: ").append(toIndentedString(fraudOffset)).append("\n"); sb.append(" installments: ").append(toIndentedString(installments)).append("\n"); - sb.append(" localizedShopperStatement: ") - .append(toIndentedString(localizedShopperStatement)) - .append("\n"); + sb.append(" localizedShopperStatement: ").append(toIndentedString(localizedShopperStatement)).append("\n"); sb.append(" mcc: ").append(toIndentedString(mcc)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" merchantOrderReference: ") - .append(toIndentedString(merchantOrderReference)) - .append("\n"); - sb.append(" merchantRiskIndicator: ") - .append(toIndentedString(merchantRiskIndicator)) - .append("\n"); + sb.append(" merchantOrderReference: ").append(toIndentedString(merchantOrderReference)).append("\n"); + sb.append(" merchantRiskIndicator: ").append(toIndentedString(merchantRiskIndicator)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" orderReference: ").append(toIndentedString(orderReference)).append("\n"); sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n"); sb.append(" recurring: ").append(toIndentedString(recurring)).append("\n"); - sb.append(" recurringProcessingModel: ") - .append(toIndentedString(recurringProcessingModel)) - .append("\n"); + sb.append(" recurringProcessingModel: ").append(toIndentedString(recurringProcessingModel)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" selectedBrand: ").append(toIndentedString(selectedBrand)).append("\n"); - sb.append(" selectedRecurringDetailReference: ") - .append(toIndentedString(selectedRecurringDetailReference)) - .append("\n"); + sb.append(" selectedRecurringDetailReference: ").append(toIndentedString(selectedRecurringDetailReference)).append("\n"); sb.append(" sessionId: ").append(toIndentedString(sessionId)).append("\n"); sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); sb.append(" shopperIP: ").append(toIndentedString(shopperIP)).append("\n"); @@ -2519,18 +1876,12 @@ public String toString() { sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append(" shopperStatement: ").append(toIndentedString(shopperStatement)).append("\n"); - sb.append(" socialSecurityNumber: ") - .append(toIndentedString(socialSecurityNumber)) - .append("\n"); + sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" store: ").append(toIndentedString(store)).append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); - sb.append(" threeDS2RequestData: ") - .append(toIndentedString(threeDS2RequestData)) - .append("\n"); - sb.append(" threeDSAuthenticationOnly: ") - .append(toIndentedString(threeDSAuthenticationOnly)) - .append("\n"); + sb.append(" threeDS2RequestData: ").append(toIndentedString(threeDS2RequestData)).append("\n"); + sb.append(" threeDSAuthenticationOnly: ").append(toIndentedString(threeDSAuthenticationOnly)).append("\n"); sb.append(" totalsGroup: ").append(toIndentedString(totalsGroup)).append("\n"); sb.append(" trustedShopper: ").append(toIndentedString(trustedShopper)).append("\n"); sb.append("}"); @@ -2538,7 +1889,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -2547,23 +1899,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BalanceCheckRequest given an JSON string * * @param jsonString JSON string * @return An instance of BalanceCheckRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BalanceCheckRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceCheckRequest */ public static BalanceCheckRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceCheckRequest.class); } - - /** - * Convert an instance of BalanceCheckRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BalanceCheckRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/BalanceCheckResponse.java b/src/main/java/com/adyen/model/checkout/BalanceCheckResponse.java index fd894eac9..5c551a556 100644 --- a/src/main/java/com/adyen/model/checkout/BalanceCheckResponse.java +++ b/src/main/java/com/adyen/model/checkout/BalanceCheckResponse.java @@ -2,28 +2,35 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Amount; +import com.adyen.model.checkout.FraudResult; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** BalanceCheckResponse */ + +/** + * BalanceCheckResponse + */ @JsonPropertyOrder({ BalanceCheckResponse.JSON_PROPERTY_ADDITIONAL_DATA, BalanceCheckResponse.JSON_PROPERTY_BALANCE, @@ -33,6 +40,7 @@ BalanceCheckResponse.JSON_PROPERTY_RESULT_CODE, BalanceCheckResponse.JSON_PROPERTY_TRANSACTION_LIMIT }) + public class BalanceCheckResponse { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -50,13 +58,10 @@ public class BalanceCheckResponse { private String refusalReason; /** - * The result of the cancellation request. Possible values: * **Success** – Indicates that the - * balance check was successful. * **NotEnoughBalance** – Commonly indicates that the card did not - * have enough balance to pay the amount in the request, or that the currency of the balance on - * the card did not match the currency of the requested amount. * **Failed** – Indicates that the - * balance check failed. + * The result of the cancellation request. Possible values: * **Success** – Indicates that the balance check was successful. * **NotEnoughBalance** – Commonly indicates that the card did not have enough balance to pay the amount in the request, or that the currency of the balance on the card did not match the currency of the requested amount. * **Failed** – Indicates that the balance check failed. */ public enum ResultCodeEnum { + SUCCESS(String.valueOf("Success")), NOTENOUGHBALANCE(String.valueOf("NotEnoughBalance")), @@ -68,7 +73,7 @@ public enum ResultCodeEnum { private String value; ResultCodeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -89,11 +94,7 @@ public static ResultCodeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ResultCodeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ResultCodeEnum.values())); + LOG.warning("ResultCodeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResultCodeEnum.values())); return null; } } @@ -104,15 +105,13 @@ public static ResultCodeEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANSACTION_LIMIT = "transactionLimit"; private Amount transactionLimit; - public BalanceCheckResponse() {} + public BalanceCheckResponse() { + } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first: Go to **Customer Area** > **Developers** > - * **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. * @return the current {@code BalanceCheckResponse} instance, allowing for method chaining */ public BalanceCheckResponse additionalData(Map additionalData) { @@ -129,12 +128,8 @@ public BalanceCheckResponse putAdditionalDataItem(String key, String additionalD } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first: Go to **Customer Area** > **Developers** > **Additional data**. - * - * @return additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first: Go to **Customer Area** > **Developers** > - * **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * @return additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,12 +138,9 @@ public Map getAdditionalData() { } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first: Go to **Customer Area** > **Developers** > - * **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,7 +151,7 @@ public void setAdditionalData(Map additionalData) { /** * balance * - * @param balance + * @param balance * @return the current {@code BalanceCheckResponse} instance, allowing for method chaining */ public BalanceCheckResponse balance(Amount balance) { @@ -169,8 +161,7 @@ public BalanceCheckResponse balance(Amount balance) { /** * Get balance - * - * @return balance + * @return balance */ @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,7 +172,7 @@ public Amount getBalance() { /** * balance * - * @param balance + * @param balance */ @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,7 +183,7 @@ public void setBalance(Amount balance) { /** * fraudResult * - * @param fraudResult + * @param fraudResult * @return the current {@code BalanceCheckResponse} instance, allowing for method chaining */ public BalanceCheckResponse fraudResult(FraudResult fraudResult) { @@ -202,8 +193,7 @@ public BalanceCheckResponse fraudResult(FraudResult fraudResult) { /** * Get fraudResult - * - * @return fraudResult + * @return fraudResult */ @JsonProperty(JSON_PROPERTY_FRAUD_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,7 +204,7 @@ public FraudResult getFraudResult() { /** * fraudResult * - * @param fraudResult + * @param fraudResult */ @JsonProperty(JSON_PROPERTY_FRAUD_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,11 +213,9 @@ public void setFraudResult(FraudResult fraudResult) { } /** - * Adyen's 16-character reference associated with the transaction/request. This value is - * globally unique; quote it when communicating with us about this request. + * Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character reference associated with the transaction/request. - * This value is globally unique; quote it when communicating with us about this request. + * @param pspReference Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. * @return the current {@code BalanceCheckResponse} instance, allowing for method chaining */ public BalanceCheckResponse pspReference(String pspReference) { @@ -236,12 +224,8 @@ public BalanceCheckResponse pspReference(String pspReference) { } /** - * Adyen's 16-character reference associated with the transaction/request. This value is - * globally unique; quote it when communicating with us about this request. - * - * @return pspReference Adyen's 16-character reference associated with the - * transaction/request. This value is globally unique; quote it when communicating with us - * about this request. + * Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @return pspReference Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,11 +234,9 @@ public String getPspReference() { } /** - * Adyen's 16-character reference associated with the transaction/request. This value is - * globally unique; quote it when communicating with us about this request. + * Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character reference associated with the transaction/request. - * This value is globally unique; quote it when communicating with us about this request. + * @param pspReference Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -263,17 +245,9 @@ public void setPspReference(String pspReference) { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this - * field holds Adyen's mapped reason for the refusal or a description of the error. When a - * transaction fails, the authorisation response includes `resultCode` and - * `refusalReason` values. For more information, see [Refusal - * reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). * - * @param refusalReason If the payment's authorisation is refused or an error occurs during - * authorisation, this field holds Adyen's mapped reason for the refusal or a description - * of the error. When a transaction fails, the authorisation response includes - * `resultCode` and `refusalReason` values. For more information, see - * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @param refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). * @return the current {@code BalanceCheckResponse} instance, allowing for method chaining */ public BalanceCheckResponse refusalReason(String refusalReason) { @@ -282,17 +256,8 @@ public BalanceCheckResponse refusalReason(String refusalReason) { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this - * field holds Adyen's mapped reason for the refusal or a description of the error. When a - * transaction fails, the authorisation response includes `resultCode` and - * `refusalReason` values. For more information, see [Refusal - * reasons](https://docs.adyen.com/development-resources/refusal-reasons). - * - * @return refusalReason If the payment's authorisation is refused or an error occurs during - * authorisation, this field holds Adyen's mapped reason for the refusal or a description - * of the error. When a transaction fails, the authorisation response includes - * `resultCode` and `refusalReason` values. For more information, see - * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @return refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -301,17 +266,9 @@ public String getRefusalReason() { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this - * field holds Adyen's mapped reason for the refusal or a description of the error. When a - * transaction fails, the authorisation response includes `resultCode` and - * `refusalReason` values. For more information, see [Refusal - * reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). * - * @param refusalReason If the payment's authorisation is refused or an error occurs during - * authorisation, this field holds Adyen's mapped reason for the refusal or a description - * of the error. When a transaction fails, the authorisation response includes - * `resultCode` and `refusalReason` values. For more information, see - * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @param refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -320,17 +277,9 @@ public void setRefusalReason(String refusalReason) { } /** - * The result of the cancellation request. Possible values: * **Success** – Indicates that the - * balance check was successful. * **NotEnoughBalance** – Commonly indicates that the card did not - * have enough balance to pay the amount in the request, or that the currency of the balance on - * the card did not match the currency of the requested amount. * **Failed** – Indicates that the - * balance check failed. + * The result of the cancellation request. Possible values: * **Success** – Indicates that the balance check was successful. * **NotEnoughBalance** – Commonly indicates that the card did not have enough balance to pay the amount in the request, or that the currency of the balance on the card did not match the currency of the requested amount. * **Failed** – Indicates that the balance check failed. * - * @param resultCode The result of the cancellation request. Possible values: * **Success** – - * Indicates that the balance check was successful. * **NotEnoughBalance** – Commonly - * indicates that the card did not have enough balance to pay the amount in the request, or - * that the currency of the balance on the card did not match the currency of the requested - * amount. * **Failed** – Indicates that the balance check failed. + * @param resultCode The result of the cancellation request. Possible values: * **Success** – Indicates that the balance check was successful. * **NotEnoughBalance** – Commonly indicates that the card did not have enough balance to pay the amount in the request, or that the currency of the balance on the card did not match the currency of the requested amount. * **Failed** – Indicates that the balance check failed. * @return the current {@code BalanceCheckResponse} instance, allowing for method chaining */ public BalanceCheckResponse resultCode(ResultCodeEnum resultCode) { @@ -339,17 +288,8 @@ public BalanceCheckResponse resultCode(ResultCodeEnum resultCode) { } /** - * The result of the cancellation request. Possible values: * **Success** – Indicates that the - * balance check was successful. * **NotEnoughBalance** – Commonly indicates that the card did not - * have enough balance to pay the amount in the request, or that the currency of the balance on - * the card did not match the currency of the requested amount. * **Failed** – Indicates that the - * balance check failed. - * - * @return resultCode The result of the cancellation request. Possible values: * **Success** – - * Indicates that the balance check was successful. * **NotEnoughBalance** – Commonly - * indicates that the card did not have enough balance to pay the amount in the request, or - * that the currency of the balance on the card did not match the currency of the requested - * amount. * **Failed** – Indicates that the balance check failed. + * The result of the cancellation request. Possible values: * **Success** – Indicates that the balance check was successful. * **NotEnoughBalance** – Commonly indicates that the card did not have enough balance to pay the amount in the request, or that the currency of the balance on the card did not match the currency of the requested amount. * **Failed** – Indicates that the balance check failed. + * @return resultCode The result of the cancellation request. Possible values: * **Success** – Indicates that the balance check was successful. * **NotEnoughBalance** – Commonly indicates that the card did not have enough balance to pay the amount in the request, or that the currency of the balance on the card did not match the currency of the requested amount. * **Failed** – Indicates that the balance check failed. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -358,17 +298,9 @@ public ResultCodeEnum getResultCode() { } /** - * The result of the cancellation request. Possible values: * **Success** – Indicates that the - * balance check was successful. * **NotEnoughBalance** – Commonly indicates that the card did not - * have enough balance to pay the amount in the request, or that the currency of the balance on - * the card did not match the currency of the requested amount. * **Failed** – Indicates that the - * balance check failed. + * The result of the cancellation request. Possible values: * **Success** – Indicates that the balance check was successful. * **NotEnoughBalance** – Commonly indicates that the card did not have enough balance to pay the amount in the request, or that the currency of the balance on the card did not match the currency of the requested amount. * **Failed** – Indicates that the balance check failed. * - * @param resultCode The result of the cancellation request. Possible values: * **Success** – - * Indicates that the balance check was successful. * **NotEnoughBalance** – Commonly - * indicates that the card did not have enough balance to pay the amount in the request, or - * that the currency of the balance on the card did not match the currency of the requested - * amount. * **Failed** – Indicates that the balance check failed. + * @param resultCode The result of the cancellation request. Possible values: * **Success** – Indicates that the balance check was successful. * **NotEnoughBalance** – Commonly indicates that the card did not have enough balance to pay the amount in the request, or that the currency of the balance on the card did not match the currency of the requested amount. * **Failed** – Indicates that the balance check failed. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -379,7 +311,7 @@ public void setResultCode(ResultCodeEnum resultCode) { /** * transactionLimit * - * @param transactionLimit + * @param transactionLimit * @return the current {@code BalanceCheckResponse} instance, allowing for method chaining */ public BalanceCheckResponse transactionLimit(Amount transactionLimit) { @@ -389,8 +321,7 @@ public BalanceCheckResponse transactionLimit(Amount transactionLimit) { /** * Get transactionLimit - * - * @return transactionLimit + * @return transactionLimit */ @JsonProperty(JSON_PROPERTY_TRANSACTION_LIMIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -401,7 +332,7 @@ public Amount getTransactionLimit() { /** * transactionLimit * - * @param transactionLimit + * @param transactionLimit */ @JsonProperty(JSON_PROPERTY_TRANSACTION_LIMIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -409,7 +340,9 @@ public void setTransactionLimit(Amount transactionLimit) { this.transactionLimit = transactionLimit; } - /** Return true if this BalanceCheckResponse object is equal to o. */ + /** + * Return true if this BalanceCheckResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -419,25 +352,18 @@ public boolean equals(Object o) { return false; } BalanceCheckResponse balanceCheckResponse = (BalanceCheckResponse) o; - return Objects.equals(this.additionalData, balanceCheckResponse.additionalData) - && Objects.equals(this.balance, balanceCheckResponse.balance) - && Objects.equals(this.fraudResult, balanceCheckResponse.fraudResult) - && Objects.equals(this.pspReference, balanceCheckResponse.pspReference) - && Objects.equals(this.refusalReason, balanceCheckResponse.refusalReason) - && Objects.equals(this.resultCode, balanceCheckResponse.resultCode) - && Objects.equals(this.transactionLimit, balanceCheckResponse.transactionLimit); + return Objects.equals(this.additionalData, balanceCheckResponse.additionalData) && + Objects.equals(this.balance, balanceCheckResponse.balance) && + Objects.equals(this.fraudResult, balanceCheckResponse.fraudResult) && + Objects.equals(this.pspReference, balanceCheckResponse.pspReference) && + Objects.equals(this.refusalReason, balanceCheckResponse.refusalReason) && + Objects.equals(this.resultCode, balanceCheckResponse.resultCode) && + Objects.equals(this.transactionLimit, balanceCheckResponse.transactionLimit); } @Override public int hashCode() { - return Objects.hash( - additionalData, - balance, - fraudResult, - pspReference, - refusalReason, - resultCode, - transactionLimit); + return Objects.hash(additionalData, balance, fraudResult, pspReference, refusalReason, resultCode, transactionLimit); } @Override @@ -456,7 +382,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -465,23 +392,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BalanceCheckResponse given an JSON string * * @param jsonString JSON string * @return An instance of BalanceCheckResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BalanceCheckResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceCheckResponse */ public static BalanceCheckResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceCheckResponse.class); } - - /** - * Convert an instance of BalanceCheckResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BalanceCheckResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/BillDeskDetails.java b/src/main/java/com/adyen/model/checkout/BillDeskDetails.java index 64442fc83..23be9a6f3 100644 --- a/src/main/java/com/adyen/model/checkout/BillDeskDetails.java +++ b/src/main/java/com/adyen/model/checkout/BillDeskDetails.java @@ -2,31 +2,37 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** BillDeskDetails */ + +/** + * BillDeskDetails + */ @JsonPropertyOrder({ BillDeskDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, BillDeskDetails.JSON_PROPERTY_ISSUER, BillDeskDetails.JSON_PROPERTY_TYPE }) + public class BillDeskDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -34,8 +40,11 @@ public class BillDeskDetails { public static final String JSON_PROPERTY_ISSUER = "issuer"; private String issuer; - /** **billdesk** */ + /** + * **billdesk** + */ public enum TypeEnum { + BILLDESK_ONLINE(String.valueOf("billdesk_online")), BILLDESK_WALLET(String.valueOf("billdesk_wallet")); @@ -45,7 +54,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -66,11 +75,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -78,7 +83,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public BillDeskDetails() {} + public BillDeskDetails() { + } /** * The checkout attempt identifier. @@ -93,7 +99,6 @@ public BillDeskDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -126,7 +131,6 @@ public BillDeskDetails issuer(String issuer) { /** * The issuer id of the shopper's selected bank. - * * @return issuer The issuer id of the shopper's selected bank. */ @JsonProperty(JSON_PROPERTY_ISSUER) @@ -159,7 +163,6 @@ public BillDeskDetails type(TypeEnum type) { /** * **billdesk** - * * @return type **billdesk** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -179,7 +182,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this BillDeskDetails object is equal to o. */ + /** + * Return true if this BillDeskDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -189,9 +194,9 @@ public boolean equals(Object o) { return false; } BillDeskDetails billDeskDetails = (BillDeskDetails) o; - return Objects.equals(this.checkoutAttemptId, billDeskDetails.checkoutAttemptId) - && Objects.equals(this.issuer, billDeskDetails.issuer) - && Objects.equals(this.type, billDeskDetails.type); + return Objects.equals(this.checkoutAttemptId, billDeskDetails.checkoutAttemptId) && + Objects.equals(this.issuer, billDeskDetails.issuer) && + Objects.equals(this.type, billDeskDetails.type); } @Override @@ -211,7 +216,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -220,7 +226,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BillDeskDetails given an JSON string * * @param jsonString JSON string @@ -230,12 +236,11 @@ private String toIndentedString(Object o) { public static BillDeskDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BillDeskDetails.class); } - - /** - * Convert an instance of BillDeskDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BillDeskDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/BillingAddress.java b/src/main/java/com/adyen/model/checkout/BillingAddress.java index 8dfacc2a5..ffbeb4ccb 100644 --- a/src/main/java/com/adyen/model/checkout/BillingAddress.java +++ b/src/main/java/com/adyen/model/checkout/BillingAddress.java @@ -2,22 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** BillingAddress */ + +/** + * BillingAddress + */ @JsonPropertyOrder({ BillingAddress.JSON_PROPERTY_CITY, BillingAddress.JSON_PROPERTY_COUNTRY, @@ -26,6 +35,7 @@ BillingAddress.JSON_PROPERTY_STATE_OR_PROVINCE, BillingAddress.JSON_PROPERTY_STREET }) + public class BillingAddress { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -45,7 +55,8 @@ public class BillingAddress { public static final String JSON_PROPERTY_STREET = "street"; private String street; - public BillingAddress() {} + public BillingAddress() { + } /** * The name of the city. Maximum length: 3000 characters. @@ -60,7 +71,6 @@ public BillingAddress city(String city) { /** * The name of the city. Maximum length: 3000 characters. - * * @return city The name of the city. Maximum length: 3000 characters. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -81,13 +91,9 @@ public void setCity(String city) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't - * know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If - * you don't know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. * @return the current {@code BillingAddress} instance, allowing for method chaining */ public BillingAddress country(String country) { @@ -96,13 +102,8 @@ public BillingAddress country(String country) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't - * know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. - * - * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If - * you don't know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,13 +112,9 @@ public String getCountry() { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't - * know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If - * you don't know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,7 +135,6 @@ public BillingAddress houseNumberOrName(String houseNumberOrName) { /** * The number or name of the house. Maximum length: 3000 characters. - * * @return houseNumberOrName The number or name of the house. Maximum length: 3000 characters. */ @JsonProperty(JSON_PROPERTY_HOUSE_NUMBER_OR_NAME) @@ -159,11 +155,9 @@ public void setHouseNumberOrName(String houseNumberOrName) { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an - * address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. * - * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten - * characters for an address in all other countries. + * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. * @return the current {@code BillingAddress} instance, allowing for method chaining */ public BillingAddress postalCode(String postalCode) { @@ -172,11 +166,8 @@ public BillingAddress postalCode(String postalCode) { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an - * address in all other countries. - * - * @return postalCode A maximum of five digits for an address in the US, or a maximum of ten - * characters for an address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * @return postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,11 +176,9 @@ public String getPostalCode() { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an - * address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. * - * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten - * characters for an address in all other countries. + * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,11 +187,9 @@ public void setPostalCode(String postalCode) { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** - * in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. * @return the current {@code BillingAddress} instance, allowing for method chaining */ public BillingAddress stateOrProvince(String stateOrProvince) { @@ -211,11 +198,8 @@ public BillingAddress stateOrProvince(String stateOrProvince) { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. - * - * @return stateOrProvince The two-character ISO 3166-2 state or province code. For example, - * **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * @return stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,11 +208,9 @@ public String getStateOrProvince() { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** - * in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,12 +219,9 @@ public void setStateOrProvince(String stateOrProvince) { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be - * included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. * - * @param street The name of the street. Maximum length: 3000 characters. > The house number - * should not be included in this field; it should be separately provided via - * `houseNumberOrName`. + * @param street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. * @return the current {@code BillingAddress} instance, allowing for method chaining */ public BillingAddress street(String street) { @@ -251,12 +230,8 @@ public BillingAddress street(String street) { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be - * included in this field; it should be separately provided via `houseNumberOrName`. - * - * @return street The name of the street. Maximum length: 3000 characters. > The house number - * should not be included in this field; it should be separately provided via - * `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * @return street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -265,12 +240,9 @@ public String getStreet() { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be - * included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. * - * @param street The name of the street. Maximum length: 3000 characters. > The house number - * should not be included in this field; it should be separately provided via - * `houseNumberOrName`. + * @param street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -278,7 +250,9 @@ public void setStreet(String street) { this.street = street; } - /** Return true if this BillingAddress object is equal to o. */ + /** + * Return true if this BillingAddress object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -288,12 +262,12 @@ public boolean equals(Object o) { return false; } BillingAddress billingAddress = (BillingAddress) o; - return Objects.equals(this.city, billingAddress.city) - && Objects.equals(this.country, billingAddress.country) - && Objects.equals(this.houseNumberOrName, billingAddress.houseNumberOrName) - && Objects.equals(this.postalCode, billingAddress.postalCode) - && Objects.equals(this.stateOrProvince, billingAddress.stateOrProvince) - && Objects.equals(this.street, billingAddress.street); + return Objects.equals(this.city, billingAddress.city) && + Objects.equals(this.country, billingAddress.country) && + Objects.equals(this.houseNumberOrName, billingAddress.houseNumberOrName) && + Objects.equals(this.postalCode, billingAddress.postalCode) && + Objects.equals(this.stateOrProvince, billingAddress.stateOrProvince) && + Objects.equals(this.street, billingAddress.street); } @Override @@ -316,7 +290,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -325,7 +300,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BillingAddress given an JSON string * * @param jsonString JSON string @@ -335,12 +310,11 @@ private String toIndentedString(Object o) { public static BillingAddress fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BillingAddress.class); } - - /** - * Convert an instance of BillingAddress to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BillingAddress to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/BlikDetails.java b/src/main/java/com/adyen/model/checkout/BlikDetails.java index 49c626d4f..841500eb7 100644 --- a/src/main/java/com/adyen/model/checkout/BlikDetails.java +++ b/src/main/java/com/adyen/model/checkout/BlikDetails.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** BlikDetails */ +/** + * BlikDetails + */ @JsonPropertyOrder({ BlikDetails.JSON_PROPERTY_BLIK_CODE, BlikDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, @@ -29,6 +34,7 @@ BlikDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, BlikDetails.JSON_PROPERTY_TYPE }) + public class BlikDetails { public static final String JSON_PROPERTY_BLIK_CODE = "blikCode"; private String blikCode; @@ -43,8 +49,11 @@ public class BlikDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** **blik** */ + /** + * **blik** + */ public enum TypeEnum { + BLIK(String.valueOf("blik")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +61,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,11 +82,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -85,7 +90,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public BlikDetails() {} + public BlikDetails() { + } /** * BLIK code consisting of 6 digits. @@ -100,7 +106,6 @@ public BlikDetails blikCode(String blikCode) { /** * BLIK code consisting of 6 digits. - * * @return blikCode BLIK code consisting of 6 digits. */ @JsonProperty(JSON_PROPERTY_BLIK_CODE) @@ -133,7 +138,6 @@ public BlikDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -154,13 +158,13 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code BlikDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public BlikDetails recurringDetailReference(String recurringDetailReference) { @@ -169,11 +173,8 @@ public BlikDetails recurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -184,12 +185,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -199,11 +200,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code BlikDetails} instance, allowing for method chaining */ public BlikDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -212,11 +211,8 @@ public BlikDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -225,11 +221,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,7 +244,6 @@ public BlikDetails type(TypeEnum type) { /** * **blik** - * * @return type **blik** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -270,7 +263,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this BlikDetails object is equal to o. */ + /** + * Return true if this BlikDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -280,17 +275,16 @@ public boolean equals(Object o) { return false; } BlikDetails blikDetails = (BlikDetails) o; - return Objects.equals(this.blikCode, blikDetails.blikCode) - && Objects.equals(this.checkoutAttemptId, blikDetails.checkoutAttemptId) - && Objects.equals(this.recurringDetailReference, blikDetails.recurringDetailReference) - && Objects.equals(this.storedPaymentMethodId, blikDetails.storedPaymentMethodId) - && Objects.equals(this.type, blikDetails.type); + return Objects.equals(this.blikCode, blikDetails.blikCode) && + Objects.equals(this.checkoutAttemptId, blikDetails.checkoutAttemptId) && + Objects.equals(this.recurringDetailReference, blikDetails.recurringDetailReference) && + Objects.equals(this.storedPaymentMethodId, blikDetails.storedPaymentMethodId) && + Objects.equals(this.type, blikDetails.type); } @Override public int hashCode() { - return Objects.hash( - blikCode, checkoutAttemptId, recurringDetailReference, storedPaymentMethodId, type); + return Objects.hash(blikCode, checkoutAttemptId, recurringDetailReference, storedPaymentMethodId, type); } @Override @@ -299,19 +293,16 @@ public String toString() { sb.append("class BlikDetails {\n"); sb.append(" blikCode: ").append(toIndentedString(blikCode)).append("\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -320,7 +311,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BlikDetails given an JSON string * * @param jsonString JSON string @@ -330,12 +321,11 @@ private String toIndentedString(Object o) { public static BlikDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BlikDetails.class); } - - /** - * Convert an instance of BlikDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BlikDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/BrowserInfo.java b/src/main/java/com/adyen/model/checkout/BrowserInfo.java index c2d1d508c..3cb5de5d0 100644 --- a/src/main/java/com/adyen/model/checkout/BrowserInfo.java +++ b/src/main/java/com/adyen/model/checkout/BrowserInfo.java @@ -2,22 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** BrowserInfo */ + +/** + * BrowserInfo + */ @JsonPropertyOrder({ BrowserInfo.JSON_PROPERTY_ACCEPT_HEADER, BrowserInfo.JSON_PROPERTY_COLOR_DEPTH, @@ -29,6 +38,7 @@ BrowserInfo.JSON_PROPERTY_TIME_ZONE_OFFSET, BrowserInfo.JSON_PROPERTY_USER_AGENT }) + public class BrowserInfo { public static final String JSON_PROPERTY_ACCEPT_HEADER = "acceptHeader"; private String acceptHeader; @@ -57,7 +67,8 @@ public class BrowserInfo { public static final String JSON_PROPERTY_USER_AGENT = "userAgent"; private String userAgent; - public BrowserInfo() {} + public BrowserInfo() { + } /** * The accept header value of the shopper's browser. @@ -72,7 +83,6 @@ public BrowserInfo acceptHeader(String acceptHeader) { /** * The accept header value of the shopper's browser. - * * @return acceptHeader The accept header value of the shopper's browser. */ @JsonProperty(JSON_PROPERTY_ACCEPT_HEADER) @@ -93,13 +103,9 @@ public void setAcceptHeader(String acceptHeader) { } /** - * The color depth of the shopper's browser in bits per pixel. This should be obtained by - * using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, - * 16, 24, 30, 32 or 48 bit color depth. + * The color depth of the shopper's browser in bits per pixel. This should be obtained by using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. * - * @param colorDepth The color depth of the shopper's browser in bits per pixel. This should - * be obtained by using the browser's `screen.colorDepth` property. Accepted - * values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. + * @param colorDepth The color depth of the shopper's browser in bits per pixel. This should be obtained by using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. * @return the current {@code BrowserInfo} instance, allowing for method chaining */ public BrowserInfo colorDepth(Integer colorDepth) { @@ -108,13 +114,8 @@ public BrowserInfo colorDepth(Integer colorDepth) { } /** - * The color depth of the shopper's browser in bits per pixel. This should be obtained by - * using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, - * 16, 24, 30, 32 or 48 bit color depth. - * - * @return colorDepth The color depth of the shopper's browser in bits per pixel. This should - * be obtained by using the browser's `screen.colorDepth` property. Accepted - * values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. + * The color depth of the shopper's browser in bits per pixel. This should be obtained by using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. + * @return colorDepth The color depth of the shopper's browser in bits per pixel. This should be obtained by using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. */ @JsonProperty(JSON_PROPERTY_COLOR_DEPTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,13 +124,9 @@ public Integer getColorDepth() { } /** - * The color depth of the shopper's browser in bits per pixel. This should be obtained by - * using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, - * 16, 24, 30, 32 or 48 bit color depth. + * The color depth of the shopper's browser in bits per pixel. This should be obtained by using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. * - * @param colorDepth The color depth of the shopper's browser in bits per pixel. This should - * be obtained by using the browser's `screen.colorDepth` property. Accepted - * values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. + * @param colorDepth The color depth of the shopper's browser in bits per pixel. This should be obtained by using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. */ @JsonProperty(JSON_PROPERTY_COLOR_DEPTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,8 +137,7 @@ public void setColorDepth(Integer colorDepth) { /** * Boolean value indicating if the shopper's browser is able to execute Java. * - * @param javaEnabled Boolean value indicating if the shopper's browser is able to execute - * Java. + * @param javaEnabled Boolean value indicating if the shopper's browser is able to execute Java. * @return the current {@code BrowserInfo} instance, allowing for method chaining */ public BrowserInfo javaEnabled(Boolean javaEnabled) { @@ -151,9 +147,7 @@ public BrowserInfo javaEnabled(Boolean javaEnabled) { /** * Boolean value indicating if the shopper's browser is able to execute Java. - * - * @return javaEnabled Boolean value indicating if the shopper's browser is able to execute - * Java. + * @return javaEnabled Boolean value indicating if the shopper's browser is able to execute Java. */ @JsonProperty(JSON_PROPERTY_JAVA_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -164,8 +158,7 @@ public Boolean getJavaEnabled() { /** * Boolean value indicating if the shopper's browser is able to execute Java. * - * @param javaEnabled Boolean value indicating if the shopper's browser is able to execute - * Java. + * @param javaEnabled Boolean value indicating if the shopper's browser is able to execute Java. */ @JsonProperty(JSON_PROPERTY_JAVA_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -174,11 +167,9 @@ public void setJavaEnabled(Boolean javaEnabled) { } /** - * Boolean value indicating if the shopper's browser is able to execute JavaScript. A default - * 'true' value is assumed if the field is not present. + * Boolean value indicating if the shopper's browser is able to execute JavaScript. A default 'true' value is assumed if the field is not present. * - * @param javaScriptEnabled Boolean value indicating if the shopper's browser is able to - * execute JavaScript. A default 'true' value is assumed if the field is not present. + * @param javaScriptEnabled Boolean value indicating if the shopper's browser is able to execute JavaScript. A default 'true' value is assumed if the field is not present. * @return the current {@code BrowserInfo} instance, allowing for method chaining */ public BrowserInfo javaScriptEnabled(Boolean javaScriptEnabled) { @@ -187,11 +178,8 @@ public BrowserInfo javaScriptEnabled(Boolean javaScriptEnabled) { } /** - * Boolean value indicating if the shopper's browser is able to execute JavaScript. A default - * 'true' value is assumed if the field is not present. - * - * @return javaScriptEnabled Boolean value indicating if the shopper's browser is able to - * execute JavaScript. A default 'true' value is assumed if the field is not present. + * Boolean value indicating if the shopper's browser is able to execute JavaScript. A default 'true' value is assumed if the field is not present. + * @return javaScriptEnabled Boolean value indicating if the shopper's browser is able to execute JavaScript. A default 'true' value is assumed if the field is not present. */ @JsonProperty(JSON_PROPERTY_JAVA_SCRIPT_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,11 +188,9 @@ public Boolean getJavaScriptEnabled() { } /** - * Boolean value indicating if the shopper's browser is able to execute JavaScript. A default - * 'true' value is assumed if the field is not present. + * Boolean value indicating if the shopper's browser is able to execute JavaScript. A default 'true' value is assumed if the field is not present. * - * @param javaScriptEnabled Boolean value indicating if the shopper's browser is able to - * execute JavaScript. A default 'true' value is assumed if the field is not present. + * @param javaScriptEnabled Boolean value indicating if the shopper's browser is able to execute JavaScript. A default 'true' value is assumed if the field is not present. */ @JsonProperty(JSON_PROPERTY_JAVA_SCRIPT_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -213,11 +199,9 @@ public void setJavaScriptEnabled(Boolean javaScriptEnabled) { } /** - * The `navigator.language` value of the shopper's browser (as defined in IETF BCP - * 47). + * The `navigator.language` value of the shopper's browser (as defined in IETF BCP 47). * - * @param language The `navigator.language` value of the shopper's browser (as - * defined in IETF BCP 47). + * @param language The `navigator.language` value of the shopper's browser (as defined in IETF BCP 47). * @return the current {@code BrowserInfo} instance, allowing for method chaining */ public BrowserInfo language(String language) { @@ -226,11 +210,8 @@ public BrowserInfo language(String language) { } /** - * The `navigator.language` value of the shopper's browser (as defined in IETF BCP - * 47). - * - * @return language The `navigator.language` value of the shopper's browser (as - * defined in IETF BCP 47). + * The `navigator.language` value of the shopper's browser (as defined in IETF BCP 47). + * @return language The `navigator.language` value of the shopper's browser (as defined in IETF BCP 47). */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -239,11 +220,9 @@ public String getLanguage() { } /** - * The `navigator.language` value of the shopper's browser (as defined in IETF BCP - * 47). + * The `navigator.language` value of the shopper's browser (as defined in IETF BCP 47). * - * @param language The `navigator.language` value of the shopper's browser (as - * defined in IETF BCP 47). + * @param language The `navigator.language` value of the shopper's browser (as defined in IETF BCP 47). */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -264,7 +243,6 @@ public BrowserInfo screenHeight(Integer screenHeight) { /** * The total height of the shopper's device screen in pixels. - * * @return screenHeight The total height of the shopper's device screen in pixels. */ @JsonProperty(JSON_PROPERTY_SCREEN_HEIGHT) @@ -297,7 +275,6 @@ public BrowserInfo screenWidth(Integer screenWidth) { /** * The total width of the shopper's device screen in pixels. - * * @return screenWidth The total width of the shopper's device screen in pixels. */ @JsonProperty(JSON_PROPERTY_SCREEN_WIDTH) @@ -320,8 +297,7 @@ public void setScreenWidth(Integer screenWidth) { /** * Time difference between UTC time and the shopper's browser local time, in minutes. * - * @param timeZoneOffset Time difference between UTC time and the shopper's browser local - * time, in minutes. + * @param timeZoneOffset Time difference between UTC time and the shopper's browser local time, in minutes. * @return the current {@code BrowserInfo} instance, allowing for method chaining */ public BrowserInfo timeZoneOffset(Integer timeZoneOffset) { @@ -331,9 +307,7 @@ public BrowserInfo timeZoneOffset(Integer timeZoneOffset) { /** * Time difference between UTC time and the shopper's browser local time, in minutes. - * - * @return timeZoneOffset Time difference between UTC time and the shopper's browser local - * time, in minutes. + * @return timeZoneOffset Time difference between UTC time and the shopper's browser local time, in minutes. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -344,8 +318,7 @@ public Integer getTimeZoneOffset() { /** * Time difference between UTC time and the shopper's browser local time, in minutes. * - * @param timeZoneOffset Time difference between UTC time and the shopper's browser local - * time, in minutes. + * @param timeZoneOffset Time difference between UTC time and the shopper's browser local time, in minutes. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -366,7 +339,6 @@ public BrowserInfo userAgent(String userAgent) { /** * The user agent value of the shopper's browser. - * * @return userAgent The user agent value of the shopper's browser. */ @JsonProperty(JSON_PROPERTY_USER_AGENT) @@ -386,7 +358,9 @@ public void setUserAgent(String userAgent) { this.userAgent = userAgent; } - /** Return true if this BrowserInfo object is equal to o. */ + /** + * Return true if this BrowserInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -396,29 +370,20 @@ public boolean equals(Object o) { return false; } BrowserInfo browserInfo = (BrowserInfo) o; - return Objects.equals(this.acceptHeader, browserInfo.acceptHeader) - && Objects.equals(this.colorDepth, browserInfo.colorDepth) - && Objects.equals(this.javaEnabled, browserInfo.javaEnabled) - && Objects.equals(this.javaScriptEnabled, browserInfo.javaScriptEnabled) - && Objects.equals(this.language, browserInfo.language) - && Objects.equals(this.screenHeight, browserInfo.screenHeight) - && Objects.equals(this.screenWidth, browserInfo.screenWidth) - && Objects.equals(this.timeZoneOffset, browserInfo.timeZoneOffset) - && Objects.equals(this.userAgent, browserInfo.userAgent); + return Objects.equals(this.acceptHeader, browserInfo.acceptHeader) && + Objects.equals(this.colorDepth, browserInfo.colorDepth) && + Objects.equals(this.javaEnabled, browserInfo.javaEnabled) && + Objects.equals(this.javaScriptEnabled, browserInfo.javaScriptEnabled) && + Objects.equals(this.language, browserInfo.language) && + Objects.equals(this.screenHeight, browserInfo.screenHeight) && + Objects.equals(this.screenWidth, browserInfo.screenWidth) && + Objects.equals(this.timeZoneOffset, browserInfo.timeZoneOffset) && + Objects.equals(this.userAgent, browserInfo.userAgent); } @Override public int hashCode() { - return Objects.hash( - acceptHeader, - colorDepth, - javaEnabled, - javaScriptEnabled, - language, - screenHeight, - screenWidth, - timeZoneOffset, - userAgent); + return Objects.hash(acceptHeader, colorDepth, javaEnabled, javaScriptEnabled, language, screenHeight, screenWidth, timeZoneOffset, userAgent); } @Override @@ -439,7 +404,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -448,7 +414,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BrowserInfo given an JSON string * * @param jsonString JSON string @@ -458,12 +424,11 @@ private String toIndentedString(Object o) { public static BrowserInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BrowserInfo.class); } - - /** - * Convert an instance of BrowserInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BrowserInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CancelOrderRequest.java b/src/main/java/com/adyen/model/checkout/CancelOrderRequest.java index b146581d3..7ce22fda0 100644 --- a/src/main/java/com/adyen/model/checkout/CancelOrderRequest.java +++ b/src/main/java/com/adyen/model/checkout/CancelOrderRequest.java @@ -2,26 +2,37 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.EncryptedOrderData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** CancelOrderRequest */ + +/** + * CancelOrderRequest + */ @JsonPropertyOrder({ CancelOrderRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, CancelOrderRequest.JSON_PROPERTY_ORDER }) + public class CancelOrderRequest { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; @@ -29,7 +40,8 @@ public class CancelOrderRequest { public static final String JSON_PROPERTY_ORDER = "order"; private EncryptedOrderData order; - public CancelOrderRequest() {} + public CancelOrderRequest() { + } /** * The merchant account identifier that orderData belongs to. @@ -44,7 +56,6 @@ public CancelOrderRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier that orderData belongs to. - * * @return merchantAccount The merchant account identifier that orderData belongs to. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -67,7 +78,7 @@ public void setMerchantAccount(String merchantAccount) { /** * order * - * @param order + * @param order * @return the current {@code CancelOrderRequest} instance, allowing for method chaining */ public CancelOrderRequest order(EncryptedOrderData order) { @@ -77,8 +88,7 @@ public CancelOrderRequest order(EncryptedOrderData order) { /** * Get order - * - * @return order + * @return order */ @JsonProperty(JSON_PROPERTY_ORDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -89,7 +99,7 @@ public EncryptedOrderData getOrder() { /** * order * - * @param order + * @param order */ @JsonProperty(JSON_PROPERTY_ORDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,7 +107,9 @@ public void setOrder(EncryptedOrderData order) { this.order = order; } - /** Return true if this CancelOrderRequest object is equal to o. */ + /** + * Return true if this CancelOrderRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -107,8 +119,8 @@ public boolean equals(Object o) { return false; } CancelOrderRequest cancelOrderRequest = (CancelOrderRequest) o; - return Objects.equals(this.merchantAccount, cancelOrderRequest.merchantAccount) - && Objects.equals(this.order, cancelOrderRequest.order); + return Objects.equals(this.merchantAccount, cancelOrderRequest.merchantAccount) && + Objects.equals(this.order, cancelOrderRequest.order); } @Override @@ -127,7 +139,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,23 +149,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CancelOrderRequest given an JSON string * * @param jsonString JSON string * @return An instance of CancelOrderRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CancelOrderRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to CancelOrderRequest */ public static CancelOrderRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CancelOrderRequest.class); } - - /** - * Convert an instance of CancelOrderRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CancelOrderRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CancelOrderResponse.java b/src/main/java/com/adyen/model/checkout/CancelOrderResponse.java index d38e65f49..30669f317 100644 --- a/src/main/java/com/adyen/model/checkout/CancelOrderResponse.java +++ b/src/main/java/com/adyen/model/checkout/CancelOrderResponse.java @@ -2,39 +2,45 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CancelOrderResponse */ +/** + * CancelOrderResponse + */ @JsonPropertyOrder({ CancelOrderResponse.JSON_PROPERTY_PSP_REFERENCE, CancelOrderResponse.JSON_PROPERTY_RESULT_CODE }) + public class CancelOrderResponse { public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference"; private String pspReference; /** - * The result of the cancellation request. Possible values: * **Received** – Indicates the - * cancellation has successfully been received by Adyen, and will be processed. + * The result of the cancellation request. Possible values: * **Received** – Indicates the cancellation has successfully been received by Adyen, and will be processed. */ public enum ResultCodeEnum { + RECEIVED(String.valueOf("Received")); private static final Logger LOG = Logger.getLogger(ResultCodeEnum.class.getName()); @@ -42,7 +48,7 @@ public enum ResultCodeEnum { private String value; ResultCodeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -63,11 +69,7 @@ public static ResultCodeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ResultCodeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ResultCodeEnum.values())); + LOG.warning("ResultCodeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResultCodeEnum.values())); return null; } } @@ -75,7 +77,8 @@ public static ResultCodeEnum fromValue(String value) { public static final String JSON_PROPERTY_RESULT_CODE = "resultCode"; private ResultCodeEnum resultCode; - public CancelOrderResponse() {} + public CancelOrderResponse() { + } /** * A unique reference of the cancellation request. @@ -90,7 +93,6 @@ public CancelOrderResponse pspReference(String pspReference) { /** * A unique reference of the cancellation request. - * * @return pspReference A unique reference of the cancellation request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -111,11 +113,9 @@ public void setPspReference(String pspReference) { } /** - * The result of the cancellation request. Possible values: * **Received** – Indicates the - * cancellation has successfully been received by Adyen, and will be processed. + * The result of the cancellation request. Possible values: * **Received** – Indicates the cancellation has successfully been received by Adyen, and will be processed. * - * @param resultCode The result of the cancellation request. Possible values: * **Received** – - * Indicates the cancellation has successfully been received by Adyen, and will be processed. + * @param resultCode The result of the cancellation request. Possible values: * **Received** – Indicates the cancellation has successfully been received by Adyen, and will be processed. * @return the current {@code CancelOrderResponse} instance, allowing for method chaining */ public CancelOrderResponse resultCode(ResultCodeEnum resultCode) { @@ -124,11 +124,8 @@ public CancelOrderResponse resultCode(ResultCodeEnum resultCode) { } /** - * The result of the cancellation request. Possible values: * **Received** – Indicates the - * cancellation has successfully been received by Adyen, and will be processed. - * - * @return resultCode The result of the cancellation request. Possible values: * **Received** – - * Indicates the cancellation has successfully been received by Adyen, and will be processed. + * The result of the cancellation request. Possible values: * **Received** – Indicates the cancellation has successfully been received by Adyen, and will be processed. + * @return resultCode The result of the cancellation request. Possible values: * **Received** – Indicates the cancellation has successfully been received by Adyen, and will be processed. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,11 +134,9 @@ public ResultCodeEnum getResultCode() { } /** - * The result of the cancellation request. Possible values: * **Received** – Indicates the - * cancellation has successfully been received by Adyen, and will be processed. + * The result of the cancellation request. Possible values: * **Received** – Indicates the cancellation has successfully been received by Adyen, and will be processed. * - * @param resultCode The result of the cancellation request. Possible values: * **Received** – - * Indicates the cancellation has successfully been received by Adyen, and will be processed. + * @param resultCode The result of the cancellation request. Possible values: * **Received** – Indicates the cancellation has successfully been received by Adyen, and will be processed. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -149,7 +144,9 @@ public void setResultCode(ResultCodeEnum resultCode) { this.resultCode = resultCode; } - /** Return true if this CancelOrderResponse object is equal to o. */ + /** + * Return true if this CancelOrderResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -159,8 +156,8 @@ public boolean equals(Object o) { return false; } CancelOrderResponse cancelOrderResponse = (CancelOrderResponse) o; - return Objects.equals(this.pspReference, cancelOrderResponse.pspReference) - && Objects.equals(this.resultCode, cancelOrderResponse.resultCode); + return Objects.equals(this.pspReference, cancelOrderResponse.pspReference) && + Objects.equals(this.resultCode, cancelOrderResponse.resultCode); } @Override @@ -179,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -188,23 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CancelOrderResponse given an JSON string * * @param jsonString JSON string * @return An instance of CancelOrderResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CancelOrderResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to CancelOrderResponse */ public static CancelOrderResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CancelOrderResponse.class); } - - /** - * Convert an instance of CancelOrderResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CancelOrderResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CardBrandDetails.java b/src/main/java/com/adyen/model/checkout/CardBrandDetails.java index 10d8876cc..cc633b8d6 100644 --- a/src/main/java/com/adyen/model/checkout/CardBrandDetails.java +++ b/src/main/java/com/adyen/model/checkout/CardBrandDetails.java @@ -2,23 +2,36 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** CardBrandDetails */ -@JsonPropertyOrder({CardBrandDetails.JSON_PROPERTY_SUPPORTED, CardBrandDetails.JSON_PROPERTY_TYPE}) + +/** + * CardBrandDetails + */ +@JsonPropertyOrder({ + CardBrandDetails.JSON_PROPERTY_SUPPORTED, + CardBrandDetails.JSON_PROPERTY_TYPE +}) + public class CardBrandDetails { public static final String JSON_PROPERTY_SUPPORTED = "supported"; private Boolean supported; @@ -26,7 +39,8 @@ public class CardBrandDetails { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public CardBrandDetails() {} + public CardBrandDetails() { + } /** * Indicates if you support the card brand. @@ -41,7 +55,6 @@ public CardBrandDetails supported(Boolean supported) { /** * Indicates if you support the card brand. - * * @return supported Indicates if you support the card brand. */ @JsonProperty(JSON_PROPERTY_SUPPORTED) @@ -74,7 +87,6 @@ public CardBrandDetails type(String type) { /** * The name of the card brand. - * * @return type The name of the card brand. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -94,7 +106,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this CardBrandDetails object is equal to o. */ + /** + * Return true if this CardBrandDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -104,8 +118,8 @@ public boolean equals(Object o) { return false; } CardBrandDetails cardBrandDetails = (CardBrandDetails) o; - return Objects.equals(this.supported, cardBrandDetails.supported) - && Objects.equals(this.type, cardBrandDetails.type); + return Objects.equals(this.supported, cardBrandDetails.supported) && + Objects.equals(this.type, cardBrandDetails.type); } @Override @@ -124,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CardBrandDetails given an JSON string * * @param jsonString JSON string @@ -143,12 +158,11 @@ private String toIndentedString(Object o) { public static CardBrandDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardBrandDetails.class); } - - /** - * Convert an instance of CardBrandDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CardBrandDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CardDetails.java b/src/main/java/com/adyen/model/checkout/CardDetails.java index 5fbf3ec91..87ead1e31 100644 --- a/src/main/java/com/adyen/model/checkout/CardDetails.java +++ b/src/main/java/com/adyen/model/checkout/CardDetails.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CardDetails */ +/** + * CardDetails + */ @JsonPropertyOrder({ CardDetails.JSON_PROPERTY_BRAND, CardDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, @@ -31,6 +36,7 @@ CardDetails.JSON_PROPERTY_ENCRYPTED_CARD_NUMBER, CardDetails.JSON_PROPERTY_ENCRYPTED_EXPIRY_MONTH, CardDetails.JSON_PROPERTY_ENCRYPTED_EXPIRY_YEAR, + CardDetails.JSON_PROPERTY_ENCRYPTED_PASSWORD, CardDetails.JSON_PROPERTY_ENCRYPTED_SECURITY_CODE, CardDetails.JSON_PROPERTY_EXPIRY_MONTH, CardDetails.JSON_PROPERTY_EXPIRY_YEAR, @@ -49,6 +55,7 @@ CardDetails.JSON_PROPERTY_THREE_D_S2_SDK_VERSION, CardDetails.JSON_PROPERTY_TYPE }) + public class CardDetails { public static final String JSON_PROPERTY_BRAND = "brand"; private String brand; @@ -57,7 +64,7 @@ public class CardDetails { private String checkoutAttemptId; public static final String JSON_PROPERTY_CUPSECUREPLUS_SMSCODE = "cupsecureplus.smscode"; - @Deprecated // deprecated + @Deprecated // deprecated private String cupsecureplusSmscode; public static final String JSON_PROPERTY_CVC = "cvc"; @@ -75,6 +82,9 @@ public class CardDetails { public static final String JSON_PROPERTY_ENCRYPTED_EXPIRY_YEAR = "encryptedExpiryYear"; private String encryptedExpiryYear; + public static final String JSON_PROPERTY_ENCRYPTED_PASSWORD = "encryptedPassword"; + private String encryptedPassword; + public static final String JSON_PROPERTY_ENCRYPTED_SECURITY_CODE = "encryptedSecurityCode"; private String encryptedSecurityCode; @@ -88,10 +98,10 @@ public class CardDetails { private String fastlaneData; /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ public enum FundingSourceEnum { + CREDIT(String.valueOf("credit")), DEBIT(String.valueOf("debit")); @@ -101,7 +111,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -122,11 +132,7 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FundingSourceEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FundingSourceEnum.values())); + LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -147,8 +153,7 @@ public static FundingSourceEnum fromValue(String value) { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; - public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE = - "shopperNotificationReference"; + public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE = "shopperNotificationReference"; private String shopperNotificationReference; public static final String JSON_PROPERTY_SRC_CORRELATION_ID = "srcCorrelationId"; @@ -170,10 +175,10 @@ public static FundingSourceEnum fromValue(String value) { private String threeDS2SdkVersion; /** - * Default payment method details. Common for scheme payment methods, and for simple payment - * method details. + * Default payment method details. Common for scheme payment methods, and for simple payment method details. */ public enum TypeEnum { + BCMC(String.valueOf("bcmc")), SCHEME(String.valueOf("scheme")), @@ -191,7 +196,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -212,11 +217,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -224,7 +225,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CardDetails() {} + public CardDetails() { + } /** * Secondary brand of the card. For example: **plastix**, **hmclub**. @@ -239,7 +241,6 @@ public CardDetails brand(String brand) { /** * Secondary brand of the card. For example: **plastix**, **hmclub**. - * * @return brand Secondary brand of the card. For example: **plastix**, **hmclub**. */ @JsonProperty(JSON_PROPERTY_BRAND) @@ -272,7 +273,6 @@ public CardDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -295,11 +295,12 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { /** * cupsecureplusSmscode * - * @param cupsecureplusSmscode + * @param cupsecureplusSmscode * @return the current {@code CardDetails} instance, allowing for method chaining - * @deprecated + * + * @deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated public CardDetails cupsecureplusSmscode(String cupsecureplusSmscode) { this.cupsecureplusSmscode = cupsecureplusSmscode; return this; @@ -307,11 +308,10 @@ public CardDetails cupsecureplusSmscode(String cupsecureplusSmscode) { /** * Get cupsecureplusSmscode - * - * @return cupsecureplusSmscode - * @deprecated // deprecated + * @return cupsecureplusSmscode + * @deprecated // deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated @JsonProperty(JSON_PROPERTY_CUPSECUREPLUS_SMSCODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCupsecureplusSmscode() { @@ -321,10 +321,11 @@ public String getCupsecureplusSmscode() { /** * cupsecureplusSmscode * - * @param cupsecureplusSmscode - * @deprecated + * @param cupsecureplusSmscode + * + * @deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated @JsonProperty(JSON_PROPERTY_CUPSECUREPLUS_SMSCODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCupsecureplusSmscode(String cupsecureplusSmscode) { @@ -332,11 +333,9 @@ public void setCupsecureplusSmscode(String cupsecureplusSmscode) { } /** - * The card verification code. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param cvc The card verification code. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param cvc The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * @return the current {@code CardDetails} instance, allowing for method chaining */ public CardDetails cvc(String cvc) { @@ -345,11 +344,8 @@ public CardDetails cvc(String cvc) { } /** - * The card verification code. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). - * - * @return cvc The card verification code. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @return cvc The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -358,11 +354,9 @@ public String getCvc() { } /** - * The card verification code. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param cvc The card verification code. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param cvc The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -371,11 +365,9 @@ public void setCvc(String cvc) { } /** - * Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card - * details. + * Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details. * - * @param encryptedCard Only include this for JSON Web Encryption (JWE) implementations. The - * JWE-encrypted card details. + * @param encryptedCard Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details. * @return the current {@code CardDetails} instance, allowing for method chaining */ public CardDetails encryptedCard(String encryptedCard) { @@ -384,11 +376,8 @@ public CardDetails encryptedCard(String encryptedCard) { } /** - * Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card - * details. - * - * @return encryptedCard Only include this for JSON Web Encryption (JWE) implementations. The - * JWE-encrypted card details. + * Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details. + * @return encryptedCard Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -397,11 +386,9 @@ public String getEncryptedCard() { } /** - * Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card - * details. + * Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details. * - * @param encryptedCard Only include this for JSON Web Encryption (JWE) implementations. The - * JWE-encrypted card details. + * @param encryptedCard Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -422,7 +409,6 @@ public CardDetails encryptedCardNumber(String encryptedCardNumber) { /** * The encrypted card number. - * * @return encryptedCardNumber The encrypted card number. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_CARD_NUMBER) @@ -455,7 +441,6 @@ public CardDetails encryptedExpiryMonth(String encryptedExpiryMonth) { /** * The encrypted card expiry month. - * * @return encryptedExpiryMonth The encrypted card expiry month. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_EXPIRY_MONTH) @@ -488,7 +473,6 @@ public CardDetails encryptedExpiryYear(String encryptedExpiryYear) { /** * The encrypted card expiry year. - * * @return encryptedExpiryYear The encrypted card expiry year. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_EXPIRY_YEAR) @@ -508,6 +492,38 @@ public void setEncryptedExpiryYear(String encryptedExpiryYear) { this.encryptedExpiryYear = encryptedExpiryYear; } + /** + * This field contains an encrypted, one-time password or an authentication code provided by the cardholder. + * + * @param encryptedPassword This field contains an encrypted, one-time password or an authentication code provided by the cardholder. + * @return the current {@code CardDetails} instance, allowing for method chaining + */ + public CardDetails encryptedPassword(String encryptedPassword) { + this.encryptedPassword = encryptedPassword; + return this; + } + + /** + * This field contains an encrypted, one-time password or an authentication code provided by the cardholder. + * @return encryptedPassword This field contains an encrypted, one-time password or an authentication code provided by the cardholder. + */ + @JsonProperty(JSON_PROPERTY_ENCRYPTED_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEncryptedPassword() { + return encryptedPassword; + } + + /** + * This field contains an encrypted, one-time password or an authentication code provided by the cardholder. + * + * @param encryptedPassword This field contains an encrypted, one-time password or an authentication code provided by the cardholder. + */ + @JsonProperty(JSON_PROPERTY_ENCRYPTED_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEncryptedPassword(String encryptedPassword) { + this.encryptedPassword = encryptedPassword; + } + /** * The encrypted card verification code. * @@ -521,7 +537,6 @@ public CardDetails encryptedSecurityCode(String encryptedSecurityCode) { /** * The encrypted card verification code. - * * @return encryptedSecurityCode The encrypted card verification code. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_SECURITY_CODE) @@ -542,11 +557,9 @@ public void setEncryptedSecurityCode(String encryptedSecurityCode) { } /** - * The card expiry month. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * @return the current {@code CardDetails} instance, allowing for method chaining */ public CardDetails expiryMonth(String expiryMonth) { @@ -555,11 +568,8 @@ public CardDetails expiryMonth(String expiryMonth) { } /** - * The card expiry month. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). - * - * @return expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @return expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -568,11 +578,9 @@ public String getExpiryMonth() { } /** - * The card expiry month. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -581,11 +589,9 @@ public void setExpiryMonth(String expiryMonth) { } /** - * The card expiry year. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param expiryYear The card expiry year. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param expiryYear The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * @return the current {@code CardDetails} instance, allowing for method chaining */ public CardDetails expiryYear(String expiryYear) { @@ -594,11 +600,8 @@ public CardDetails expiryYear(String expiryYear) { } /** - * The card expiry year. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). - * - * @return expiryYear The card expiry year. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @return expiryYear The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -607,11 +610,9 @@ public String getExpiryYear() { } /** - * The card expiry year. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param expiryYear The card expiry year. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param expiryYear The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -632,7 +633,6 @@ public CardDetails fastlaneData(String fastlaneData) { /** * The encoded fastlane data blob - * * @return fastlaneData The encoded fastlane data blob */ @JsonProperty(JSON_PROPERTY_FASTLANE_DATA) @@ -653,12 +653,9 @@ public void setFastlaneData(String fastlaneData) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * @return the current {@code CardDetails} instance, allowing for method chaining */ public CardDetails fundingSource(FundingSourceEnum fundingSource) { @@ -667,12 +664,8 @@ public CardDetails fundingSource(FundingSourceEnum fundingSource) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. - * - * @return fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @return fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -681,12 +674,9 @@ public FundingSourceEnum getFundingSource() { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -707,7 +697,6 @@ public CardDetails holderName(String holderName) { /** * The name of the card holder. - * * @return holderName The name of the card holder. */ @JsonProperty(JSON_PROPERTY_HOLDER_NAME) @@ -728,13 +717,9 @@ public void setHolderName(String holderName) { } /** - * The transaction identifier from card schemes. This is the - * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) - * from the response to the first payment. + * The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. * - * @param networkPaymentReference The transaction identifier from card schemes. This is the - * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) - * from the response to the first payment. + * @param networkPaymentReference The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. * @return the current {@code CardDetails} instance, allowing for method chaining */ public CardDetails networkPaymentReference(String networkPaymentReference) { @@ -743,13 +728,8 @@ public CardDetails networkPaymentReference(String networkPaymentReference) { } /** - * The transaction identifier from card schemes. This is the - * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) - * from the response to the first payment. - * - * @return networkPaymentReference The transaction identifier from card schemes. This is the - * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) - * from the response to the first payment. + * The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. + * @return networkPaymentReference The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. */ @JsonProperty(JSON_PROPERTY_NETWORK_PAYMENT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -758,13 +738,9 @@ public String getNetworkPaymentReference() { } /** - * The transaction identifier from card schemes. This is the - * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) - * from the response to the first payment. + * The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. * - * @param networkPaymentReference The transaction identifier from card schemes. This is the - * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) - * from the response to the first payment. + * @param networkPaymentReference The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. */ @JsonProperty(JSON_PROPERTY_NETWORK_PAYMENT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -773,11 +749,9 @@ public void setNetworkPaymentReference(String networkPaymentReference) { } /** - * The card number. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param number The card number. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param number The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * @return the current {@code CardDetails} instance, allowing for method chaining */ public CardDetails number(String number) { @@ -786,11 +760,8 @@ public CardDetails number(String number) { } /** - * The card number. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). - * - * @return number The card number. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @return number The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -799,11 +770,9 @@ public String getNumber() { } /** - * The card number. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param number The card number. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param number The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -812,13 +781,13 @@ public void setNumber(String number) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code CardDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public CardDetails recurringDetailReference(String recurringDetailReference) { @@ -827,11 +796,8 @@ public CardDetails recurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -842,12 +808,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -857,12 +823,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * The `shopperNotificationReference` returned in the response when you requested to - * notify the shopper. Used only for recurring payments in India. + * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India. * - * @param shopperNotificationReference The `shopperNotificationReference` returned in - * the response when you requested to notify the shopper. Used only for recurring payments in - * India. + * @param shopperNotificationReference The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India. * @return the current {@code CardDetails} instance, allowing for method chaining */ public CardDetails shopperNotificationReference(String shopperNotificationReference) { @@ -871,12 +834,8 @@ public CardDetails shopperNotificationReference(String shopperNotificationRefere } /** - * The `shopperNotificationReference` returned in the response when you requested to - * notify the shopper. Used only for recurring payments in India. - * - * @return shopperNotificationReference The `shopperNotificationReference` returned in - * the response when you requested to notify the shopper. Used only for recurring payments in - * India. + * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India. + * @return shopperNotificationReference The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India. */ @JsonProperty(JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -885,12 +844,9 @@ public String getShopperNotificationReference() { } /** - * The `shopperNotificationReference` returned in the response when you requested to - * notify the shopper. Used only for recurring payments in India. + * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India. * - * @param shopperNotificationReference The `shopperNotificationReference` returned in - * the response when you requested to notify the shopper. Used only for recurring payments in - * India. + * @param shopperNotificationReference The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India. */ @JsonProperty(JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -911,7 +867,6 @@ public CardDetails srcCorrelationId(String srcCorrelationId) { /** * An identifier used for the Click to Pay transaction. - * * @return srcCorrelationId An identifier used for the Click to Pay transaction. */ @JsonProperty(JSON_PROPERTY_SRC_CORRELATION_ID) @@ -944,7 +899,6 @@ public CardDetails srcDigitalCardId(String srcDigitalCardId) { /** * The SRC reference for the Click to Pay token. - * * @return srcDigitalCardId The SRC reference for the Click to Pay token. */ @JsonProperty(JSON_PROPERTY_SRC_DIGITAL_CARD_ID) @@ -977,7 +931,6 @@ public CardDetails srcScheme(String srcScheme) { /** * The scheme that is being used for Click to Pay. - * * @return srcScheme The scheme that is being used for Click to Pay. */ @JsonProperty(JSON_PROPERTY_SRC_SCHEME) @@ -1010,7 +963,6 @@ public CardDetails srcTokenReference(String srcTokenReference) { /** * The reference for the Click to Pay token. - * * @return srcTokenReference The reference for the Click to Pay token. */ @JsonProperty(JSON_PROPERTY_SRC_TOKEN_REFERENCE) @@ -1031,11 +983,9 @@ public void setSrcTokenReference(String srcTokenReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code CardDetails} instance, allowing for method chaining */ public CardDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -1044,11 +994,8 @@ public CardDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1057,11 +1004,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1072,8 +1017,7 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. * - * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile - * SDK. + * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. * @return the current {@code CardDetails} instance, allowing for method chaining */ public CardDetails threeDS2SdkVersion(String threeDS2SdkVersion) { @@ -1083,9 +1027,7 @@ public CardDetails threeDS2SdkVersion(String threeDS2SdkVersion) { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. - * - * @return threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile - * SDK. + * @return threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_SDK_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1096,8 +1038,7 @@ public String getThreeDS2SdkVersion() { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. * - * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile - * SDK. + * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_SDK_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1106,11 +1047,9 @@ public void setThreeDS2SdkVersion(String threeDS2SdkVersion) { } /** - * Default payment method details. Common for scheme payment methods, and for simple payment - * method details. + * Default payment method details. Common for scheme payment methods, and for simple payment method details. * - * @param type Default payment method details. Common for scheme payment methods, and for simple - * payment method details. + * @param type Default payment method details. Common for scheme payment methods, and for simple payment method details. * @return the current {@code CardDetails} instance, allowing for method chaining */ public CardDetails type(TypeEnum type) { @@ -1119,11 +1058,8 @@ public CardDetails type(TypeEnum type) { } /** - * Default payment method details. Common for scheme payment methods, and for simple payment - * method details. - * - * @return type Default payment method details. Common for scheme payment methods, and for simple - * payment method details. + * Default payment method details. Common for scheme payment methods, and for simple payment method details. + * @return type Default payment method details. Common for scheme payment methods, and for simple payment method details. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1132,11 +1068,9 @@ public TypeEnum getType() { } /** - * Default payment method details. Common for scheme payment methods, and for simple payment - * method details. + * Default payment method details. Common for scheme payment methods, and for simple payment method details. * - * @param type Default payment method details. Common for scheme payment methods, and for simple - * payment method details. + * @param type Default payment method details. Common for scheme payment methods, and for simple payment method details. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1144,7 +1078,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this CardDetails object is equal to o. */ + /** + * Return true if this CardDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -1154,62 +1090,37 @@ public boolean equals(Object o) { return false; } CardDetails cardDetails = (CardDetails) o; - return Objects.equals(this.brand, cardDetails.brand) - && Objects.equals(this.checkoutAttemptId, cardDetails.checkoutAttemptId) - && Objects.equals(this.cupsecureplusSmscode, cardDetails.cupsecureplusSmscode) - && Objects.equals(this.cvc, cardDetails.cvc) - && Objects.equals(this.encryptedCard, cardDetails.encryptedCard) - && Objects.equals(this.encryptedCardNumber, cardDetails.encryptedCardNumber) - && Objects.equals(this.encryptedExpiryMonth, cardDetails.encryptedExpiryMonth) - && Objects.equals(this.encryptedExpiryYear, cardDetails.encryptedExpiryYear) - && Objects.equals(this.encryptedSecurityCode, cardDetails.encryptedSecurityCode) - && Objects.equals(this.expiryMonth, cardDetails.expiryMonth) - && Objects.equals(this.expiryYear, cardDetails.expiryYear) - && Objects.equals(this.fastlaneData, cardDetails.fastlaneData) - && Objects.equals(this.fundingSource, cardDetails.fundingSource) - && Objects.equals(this.holderName, cardDetails.holderName) - && Objects.equals(this.networkPaymentReference, cardDetails.networkPaymentReference) - && Objects.equals(this.number, cardDetails.number) - && Objects.equals(this.recurringDetailReference, cardDetails.recurringDetailReference) - && Objects.equals( - this.shopperNotificationReference, cardDetails.shopperNotificationReference) - && Objects.equals(this.srcCorrelationId, cardDetails.srcCorrelationId) - && Objects.equals(this.srcDigitalCardId, cardDetails.srcDigitalCardId) - && Objects.equals(this.srcScheme, cardDetails.srcScheme) - && Objects.equals(this.srcTokenReference, cardDetails.srcTokenReference) - && Objects.equals(this.storedPaymentMethodId, cardDetails.storedPaymentMethodId) - && Objects.equals(this.threeDS2SdkVersion, cardDetails.threeDS2SdkVersion) - && Objects.equals(this.type, cardDetails.type); + return Objects.equals(this.brand, cardDetails.brand) && + Objects.equals(this.checkoutAttemptId, cardDetails.checkoutAttemptId) && + Objects.equals(this.cupsecureplusSmscode, cardDetails.cupsecureplusSmscode) && + Objects.equals(this.cvc, cardDetails.cvc) && + Objects.equals(this.encryptedCard, cardDetails.encryptedCard) && + Objects.equals(this.encryptedCardNumber, cardDetails.encryptedCardNumber) && + Objects.equals(this.encryptedExpiryMonth, cardDetails.encryptedExpiryMonth) && + Objects.equals(this.encryptedExpiryYear, cardDetails.encryptedExpiryYear) && + Objects.equals(this.encryptedPassword, cardDetails.encryptedPassword) && + Objects.equals(this.encryptedSecurityCode, cardDetails.encryptedSecurityCode) && + Objects.equals(this.expiryMonth, cardDetails.expiryMonth) && + Objects.equals(this.expiryYear, cardDetails.expiryYear) && + Objects.equals(this.fastlaneData, cardDetails.fastlaneData) && + Objects.equals(this.fundingSource, cardDetails.fundingSource) && + Objects.equals(this.holderName, cardDetails.holderName) && + Objects.equals(this.networkPaymentReference, cardDetails.networkPaymentReference) && + Objects.equals(this.number, cardDetails.number) && + Objects.equals(this.recurringDetailReference, cardDetails.recurringDetailReference) && + Objects.equals(this.shopperNotificationReference, cardDetails.shopperNotificationReference) && + Objects.equals(this.srcCorrelationId, cardDetails.srcCorrelationId) && + Objects.equals(this.srcDigitalCardId, cardDetails.srcDigitalCardId) && + Objects.equals(this.srcScheme, cardDetails.srcScheme) && + Objects.equals(this.srcTokenReference, cardDetails.srcTokenReference) && + Objects.equals(this.storedPaymentMethodId, cardDetails.storedPaymentMethodId) && + Objects.equals(this.threeDS2SdkVersion, cardDetails.threeDS2SdkVersion) && + Objects.equals(this.type, cardDetails.type); } @Override public int hashCode() { - return Objects.hash( - brand, - checkoutAttemptId, - cupsecureplusSmscode, - cvc, - encryptedCard, - encryptedCardNumber, - encryptedExpiryMonth, - encryptedExpiryYear, - encryptedSecurityCode, - expiryMonth, - expiryYear, - fastlaneData, - fundingSource, - holderName, - networkPaymentReference, - number, - recurringDetailReference, - shopperNotificationReference, - srcCorrelationId, - srcDigitalCardId, - srcScheme, - srcTokenReference, - storedPaymentMethodId, - threeDS2SdkVersion, - type); + return Objects.hash(brand, checkoutAttemptId, cupsecureplusSmscode, cvc, encryptedCard, encryptedCardNumber, encryptedExpiryMonth, encryptedExpiryYear, encryptedPassword, encryptedSecurityCode, expiryMonth, expiryYear, fastlaneData, fundingSource, holderName, networkPaymentReference, number, recurringDetailReference, shopperNotificationReference, srcCorrelationId, srcDigitalCardId, srcScheme, srcTokenReference, storedPaymentMethodId, threeDS2SdkVersion, type); } @Override @@ -1218,45 +1129,28 @@ public String toString() { sb.append("class CardDetails {\n"); sb.append(" brand: ").append(toIndentedString(brand)).append("\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); - sb.append(" cupsecureplusSmscode: ") - .append(toIndentedString(cupsecureplusSmscode)) - .append("\n"); + sb.append(" cupsecureplusSmscode: ").append(toIndentedString(cupsecureplusSmscode)).append("\n"); sb.append(" cvc: ").append(toIndentedString(cvc)).append("\n"); sb.append(" encryptedCard: ").append(toIndentedString(encryptedCard)).append("\n"); - sb.append(" encryptedCardNumber: ") - .append(toIndentedString(encryptedCardNumber)) - .append("\n"); - sb.append(" encryptedExpiryMonth: ") - .append(toIndentedString(encryptedExpiryMonth)) - .append("\n"); - sb.append(" encryptedExpiryYear: ") - .append(toIndentedString(encryptedExpiryYear)) - .append("\n"); - sb.append(" encryptedSecurityCode: ") - .append(toIndentedString(encryptedSecurityCode)) - .append("\n"); + sb.append(" encryptedCardNumber: ").append(toIndentedString(encryptedCardNumber)).append("\n"); + sb.append(" encryptedExpiryMonth: ").append(toIndentedString(encryptedExpiryMonth)).append("\n"); + sb.append(" encryptedExpiryYear: ").append(toIndentedString(encryptedExpiryYear)).append("\n"); + sb.append(" encryptedPassword: ").append(toIndentedString(encryptedPassword)).append("\n"); + sb.append(" encryptedSecurityCode: ").append(toIndentedString(encryptedSecurityCode)).append("\n"); sb.append(" expiryMonth: ").append(toIndentedString(expiryMonth)).append("\n"); sb.append(" expiryYear: ").append(toIndentedString(expiryYear)).append("\n"); sb.append(" fastlaneData: ").append(toIndentedString(fastlaneData)).append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); sb.append(" holderName: ").append(toIndentedString(holderName)).append("\n"); - sb.append(" networkPaymentReference: ") - .append(toIndentedString(networkPaymentReference)) - .append("\n"); + sb.append(" networkPaymentReference: ").append(toIndentedString(networkPaymentReference)).append("\n"); sb.append(" number: ").append(toIndentedString(number)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" shopperNotificationReference: ") - .append(toIndentedString(shopperNotificationReference)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" shopperNotificationReference: ").append(toIndentedString(shopperNotificationReference)).append("\n"); sb.append(" srcCorrelationId: ").append(toIndentedString(srcCorrelationId)).append("\n"); sb.append(" srcDigitalCardId: ").append(toIndentedString(srcDigitalCardId)).append("\n"); sb.append(" srcScheme: ").append(toIndentedString(srcScheme)).append("\n"); sb.append(" srcTokenReference: ").append(toIndentedString(srcTokenReference)).append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" threeDS2SdkVersion: ").append(toIndentedString(threeDS2SdkVersion)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -1264,7 +1158,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1273,7 +1168,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CardDetails given an JSON string * * @param jsonString JSON string @@ -1283,12 +1178,11 @@ private String toIndentedString(Object o) { public static CardDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardDetails.class); } - - /** - * Convert an instance of CardDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CardDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CardDetailsRequest.java b/src/main/java/com/adyen/model/checkout/CardDetailsRequest.java index a861ede83..03c45ef8f 100644 --- a/src/main/java/com/adyen/model/checkout/CardDetailsRequest.java +++ b/src/main/java/com/adyen/model/checkout/CardDetailsRequest.java @@ -2,24 +2,33 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CardDetailsRequest */ +/** + * CardDetailsRequest + */ @JsonPropertyOrder({ CardDetailsRequest.JSON_PROPERTY_CARD_NUMBER, CardDetailsRequest.JSON_PROPERTY_COUNTRY_CODE, @@ -27,6 +36,7 @@ CardDetailsRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, CardDetailsRequest.JSON_PROPERTY_SUPPORTED_BRANDS }) + public class CardDetailsRequest { public static final String JSON_PROPERTY_CARD_NUMBER = "cardNumber"; private String cardNumber; @@ -43,19 +53,13 @@ public class CardDetailsRequest { public static final String JSON_PROPERTY_SUPPORTED_BRANDS = "supportedBrands"; private List supportedBrands; - public CardDetailsRequest() {} + public CardDetailsRequest() { + } /** - * A minimum of the first eight digits of the card number. The full card number gives the best - * result. You must be [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect - * raw card data. Alternatively, you can use the `encryptedCardNumber` field. + * A minimum of the first eight digits of the card number. The full card number gives the best result. You must be [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect raw card data. Alternatively, you can use the `encryptedCardNumber` field. * - * @param cardNumber A minimum of the first eight digits of the card number. The full card number - * gives the best result. You must be [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to - * collect raw card data. Alternatively, you can use the `encryptedCardNumber` - * field. + * @param cardNumber A minimum of the first eight digits of the card number. The full card number gives the best result. You must be [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect raw card data. Alternatively, you can use the `encryptedCardNumber` field. * @return the current {@code CardDetailsRequest} instance, allowing for method chaining */ public CardDetailsRequest cardNumber(String cardNumber) { @@ -64,16 +68,8 @@ public CardDetailsRequest cardNumber(String cardNumber) { } /** - * A minimum of the first eight digits of the card number. The full card number gives the best - * result. You must be [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect - * raw card data. Alternatively, you can use the `encryptedCardNumber` field. - * - * @return cardNumber A minimum of the first eight digits of the card number. The full card number - * gives the best result. You must be [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to - * collect raw card data. Alternatively, you can use the `encryptedCardNumber` - * field. + * A minimum of the first eight digits of the card number. The full card number gives the best result. You must be [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect raw card data. Alternatively, you can use the `encryptedCardNumber` field. + * @return cardNumber A minimum of the first eight digits of the card number. The full card number gives the best result. You must be [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect raw card data. Alternatively, you can use the `encryptedCardNumber` field. */ @JsonProperty(JSON_PROPERTY_CARD_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -82,16 +78,9 @@ public String getCardNumber() { } /** - * A minimum of the first eight digits of the card number. The full card number gives the best - * result. You must be [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect - * raw card data. Alternatively, you can use the `encryptedCardNumber` field. + * A minimum of the first eight digits of the card number. The full card number gives the best result. You must be [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect raw card data. Alternatively, you can use the `encryptedCardNumber` field. * - * @param cardNumber A minimum of the first eight digits of the card number. The full card number - * gives the best result. You must be [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to - * collect raw card data. Alternatively, you can use the `encryptedCardNumber` - * field. + * @param cardNumber A minimum of the first eight digits of the card number. The full card number gives the best result. You must be [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect raw card data. Alternatively, you can use the `encryptedCardNumber` field. */ @JsonProperty(JSON_PROPERTY_CARD_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,11 +89,9 @@ public void setCardNumber(String cardNumber) { } /** - * The shopper country. Format: [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE * - * @param countryCode The shopper country. Format: [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * @param countryCode The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE * @return the current {@code CardDetailsRequest} instance, allowing for method chaining */ public CardDetailsRequest countryCode(String countryCode) { @@ -113,11 +100,8 @@ public CardDetailsRequest countryCode(String countryCode) { } /** - * The shopper country. Format: [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE - * - * @return countryCode The shopper country. Format: [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * @return countryCode The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,11 +110,9 @@ public String getCountryCode() { } /** - * The shopper country. Format: [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE * - * @param countryCode The shopper country. Format: [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * @param countryCode The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,7 +133,6 @@ public CardDetailsRequest encryptedCardNumber(String encryptedCardNumber) { /** * The encrypted card number. - * * @return encryptedCardNumber The encrypted card number. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_CARD_NUMBER) @@ -174,8 +155,7 @@ public void setEncryptedCardNumber(String encryptedCardNumber) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. * @return the current {@code CardDetailsRequest} instance, allowing for method chaining */ public CardDetailsRequest merchantAccount(String merchantAccount) { @@ -185,9 +165,7 @@ public CardDetailsRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * - * @return merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @return merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,8 +176,7 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,19 +185,9 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The card brands you support. This is the - * [`brands`](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#responses-200-paymentMethods-brands) - * array from your - * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) - * response. If not included, our API uses the ones configured for your merchant account and, if - * provided, the country code. + * The card brands you support. This is the [`brands`](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#responses-200-paymentMethods-brands) array from your [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. If not included, our API uses the ones configured for your merchant account and, if provided, the country code. * - * @param supportedBrands The card brands you support. This is the - * [`brands`](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#responses-200-paymentMethods-brands) - * array from your - * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) - * response. If not included, our API uses the ones configured for your merchant account and, - * if provided, the country code. + * @param supportedBrands The card brands you support. This is the [`brands`](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#responses-200-paymentMethods-brands) array from your [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. If not included, our API uses the ones configured for your merchant account and, if provided, the country code. * @return the current {@code CardDetailsRequest} instance, allowing for method chaining */ public CardDetailsRequest supportedBrands(List supportedBrands) { @@ -237,19 +204,8 @@ public CardDetailsRequest addSupportedBrandsItem(String supportedBrandsItem) { } /** - * The card brands you support. This is the - * [`brands`](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#responses-200-paymentMethods-brands) - * array from your - * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) - * response. If not included, our API uses the ones configured for your merchant account and, if - * provided, the country code. - * - * @return supportedBrands The card brands you support. This is the - * [`brands`](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#responses-200-paymentMethods-brands) - * array from your - * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) - * response. If not included, our API uses the ones configured for your merchant account and, - * if provided, the country code. + * The card brands you support. This is the [`brands`](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#responses-200-paymentMethods-brands) array from your [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. If not included, our API uses the ones configured for your merchant account and, if provided, the country code. + * @return supportedBrands The card brands you support. This is the [`brands`](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#responses-200-paymentMethods-brands) array from your [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. If not included, our API uses the ones configured for your merchant account and, if provided, the country code. */ @JsonProperty(JSON_PROPERTY_SUPPORTED_BRANDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -258,19 +214,9 @@ public List getSupportedBrands() { } /** - * The card brands you support. This is the - * [`brands`](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#responses-200-paymentMethods-brands) - * array from your - * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) - * response. If not included, our API uses the ones configured for your merchant account and, if - * provided, the country code. + * The card brands you support. This is the [`brands`](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#responses-200-paymentMethods-brands) array from your [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. If not included, our API uses the ones configured for your merchant account and, if provided, the country code. * - * @param supportedBrands The card brands you support. This is the - * [`brands`](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#responses-200-paymentMethods-brands) - * array from your - * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) - * response. If not included, our API uses the ones configured for your merchant account and, - * if provided, the country code. + * @param supportedBrands The card brands you support. This is the [`brands`](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#responses-200-paymentMethods-brands) array from your [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. If not included, our API uses the ones configured for your merchant account and, if provided, the country code. */ @JsonProperty(JSON_PROPERTY_SUPPORTED_BRANDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -278,7 +224,9 @@ public void setSupportedBrands(List supportedBrands) { this.supportedBrands = supportedBrands; } - /** Return true if this CardDetailsRequest object is equal to o. */ + /** + * Return true if this CardDetailsRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -288,17 +236,16 @@ public boolean equals(Object o) { return false; } CardDetailsRequest cardDetailsRequest = (CardDetailsRequest) o; - return Objects.equals(this.cardNumber, cardDetailsRequest.cardNumber) - && Objects.equals(this.countryCode, cardDetailsRequest.countryCode) - && Objects.equals(this.encryptedCardNumber, cardDetailsRequest.encryptedCardNumber) - && Objects.equals(this.merchantAccount, cardDetailsRequest.merchantAccount) - && Objects.equals(this.supportedBrands, cardDetailsRequest.supportedBrands); + return Objects.equals(this.cardNumber, cardDetailsRequest.cardNumber) && + Objects.equals(this.countryCode, cardDetailsRequest.countryCode) && + Objects.equals(this.encryptedCardNumber, cardDetailsRequest.encryptedCardNumber) && + Objects.equals(this.merchantAccount, cardDetailsRequest.merchantAccount) && + Objects.equals(this.supportedBrands, cardDetailsRequest.supportedBrands); } @Override public int hashCode() { - return Objects.hash( - cardNumber, countryCode, encryptedCardNumber, merchantAccount, supportedBrands); + return Objects.hash(cardNumber, countryCode, encryptedCardNumber, merchantAccount, supportedBrands); } @Override @@ -307,9 +254,7 @@ public String toString() { sb.append("class CardDetailsRequest {\n"); sb.append(" cardNumber: ").append(toIndentedString(cardNumber)).append("\n"); sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n"); - sb.append(" encryptedCardNumber: ") - .append(toIndentedString(encryptedCardNumber)) - .append("\n"); + sb.append(" encryptedCardNumber: ").append(toIndentedString(encryptedCardNumber)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" supportedBrands: ").append(toIndentedString(supportedBrands)).append("\n"); sb.append("}"); @@ -317,7 +262,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -326,23 +272,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CardDetailsRequest given an JSON string * * @param jsonString JSON string * @return An instance of CardDetailsRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CardDetailsRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to CardDetailsRequest */ public static CardDetailsRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardDetailsRequest.class); } - - /** - * Convert an instance of CardDetailsRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CardDetailsRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CardDetailsResponse.java b/src/main/java/com/adyen/model/checkout/CardDetailsResponse.java index 5575fa6af..13df13f82 100644 --- a/src/main/java/com/adyen/model/checkout/CardDetailsResponse.java +++ b/src/main/java/com/adyen/model/checkout/CardDetailsResponse.java @@ -2,30 +2,41 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.CardBrandDetails; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CardDetailsResponse */ +/** + * CardDetailsResponse + */ @JsonPropertyOrder({ CardDetailsResponse.JSON_PROPERTY_BRANDS, CardDetailsResponse.JSON_PROPERTY_FUNDING_SOURCE, CardDetailsResponse.JSON_PROPERTY_IS_CARD_COMMERCIAL, CardDetailsResponse.JSON_PROPERTY_ISSUING_COUNTRY_CODE }) + public class CardDetailsResponse { public static final String JSON_PROPERTY_BRANDS = "brands"; private List brands; @@ -39,7 +50,8 @@ public class CardDetailsResponse { public static final String JSON_PROPERTY_ISSUING_COUNTRY_CODE = "issuingCountryCode"; private String issuingCountryCode; - public CardDetailsResponse() {} + public CardDetailsResponse() { + } /** * The list of brands identified for the card. @@ -62,7 +74,6 @@ public CardDetailsResponse addBrandsItem(CardBrandDetails brandsItem) { /** * The list of brands identified for the card. - * * @return brands The list of brands identified for the card. */ @JsonProperty(JSON_PROPERTY_BRANDS) @@ -85,8 +96,7 @@ public void setBrands(List brands) { /** * The funding source of the card, for example **DEBIT**, **CREDIT**, or **PREPAID**. * - * @param fundingSource The funding source of the card, for example **DEBIT**, **CREDIT**, or - * **PREPAID**. + * @param fundingSource The funding source of the card, for example **DEBIT**, **CREDIT**, or **PREPAID**. * @return the current {@code CardDetailsResponse} instance, allowing for method chaining */ public CardDetailsResponse fundingSource(String fundingSource) { @@ -96,9 +106,7 @@ public CardDetailsResponse fundingSource(String fundingSource) { /** * The funding source of the card, for example **DEBIT**, **CREDIT**, or **PREPAID**. - * - * @return fundingSource The funding source of the card, for example **DEBIT**, **CREDIT**, or - * **PREPAID**. + * @return fundingSource The funding source of the card, for example **DEBIT**, **CREDIT**, or **PREPAID**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -109,8 +117,7 @@ public String getFundingSource() { /** * The funding source of the card, for example **DEBIT**, **CREDIT**, or **PREPAID**. * - * @param fundingSource The funding source of the card, for example **DEBIT**, **CREDIT**, or - * **PREPAID**. + * @param fundingSource The funding source of the card, for example **DEBIT**, **CREDIT**, or **PREPAID**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -119,11 +126,9 @@ public void setFundingSource(String fundingSource) { } /** - * Indicates if this is a commercial card or a consumer card. If **true**, it is a commercial - * card. If **false**, it is a consumer card. + * Indicates if this is a commercial card or a consumer card. If **true**, it is a commercial card. If **false**, it is a consumer card. * - * @param isCardCommercial Indicates if this is a commercial card or a consumer card. If **true**, - * it is a commercial card. If **false**, it is a consumer card. + * @param isCardCommercial Indicates if this is a commercial card or a consumer card. If **true**, it is a commercial card. If **false**, it is a consumer card. * @return the current {@code CardDetailsResponse} instance, allowing for method chaining */ public CardDetailsResponse isCardCommercial(Boolean isCardCommercial) { @@ -132,11 +137,8 @@ public CardDetailsResponse isCardCommercial(Boolean isCardCommercial) { } /** - * Indicates if this is a commercial card or a consumer card. If **true**, it is a commercial - * card. If **false**, it is a consumer card. - * - * @return isCardCommercial Indicates if this is a commercial card or a consumer card. If - * **true**, it is a commercial card. If **false**, it is a consumer card. + * Indicates if this is a commercial card or a consumer card. If **true**, it is a commercial card. If **false**, it is a consumer card. + * @return isCardCommercial Indicates if this is a commercial card or a consumer card. If **true**, it is a commercial card. If **false**, it is a consumer card. */ @JsonProperty(JSON_PROPERTY_IS_CARD_COMMERCIAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,11 +147,9 @@ public Boolean getIsCardCommercial() { } /** - * Indicates if this is a commercial card or a consumer card. If **true**, it is a commercial - * card. If **false**, it is a consumer card. + * Indicates if this is a commercial card or a consumer card. If **true**, it is a commercial card. If **false**, it is a consumer card. * - * @param isCardCommercial Indicates if this is a commercial card or a consumer card. If **true**, - * it is a commercial card. If **false**, it is a consumer card. + * @param isCardCommercial Indicates if this is a commercial card or a consumer card. If **true**, it is a commercial card. If **false**, it is a consumer card. */ @JsonProperty(JSON_PROPERTY_IS_CARD_COMMERCIAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,9 +158,9 @@ public void setIsCardCommercial(Boolean isCardCommercial) { } /** - * The two-letter country code of the country where the card was issued. + * The two-letter country code of the country where the card was issued. * - * @param issuingCountryCode The two-letter country code of the country where the card was issued. + * @param issuingCountryCode The two-letter country code of the country where the card was issued. * @return the current {@code CardDetailsResponse} instance, allowing for method chaining */ public CardDetailsResponse issuingCountryCode(String issuingCountryCode) { @@ -169,10 +169,8 @@ public CardDetailsResponse issuingCountryCode(String issuingCountryCode) { } /** - * The two-letter country code of the country where the card was issued. - * - * @return issuingCountryCode The two-letter country code of the country where the card was - * issued. + * The two-letter country code of the country where the card was issued. + * @return issuingCountryCode The two-letter country code of the country where the card was issued. */ @JsonProperty(JSON_PROPERTY_ISSUING_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,9 +179,9 @@ public String getIssuingCountryCode() { } /** - * The two-letter country code of the country where the card was issued. + * The two-letter country code of the country where the card was issued. * - * @param issuingCountryCode The two-letter country code of the country where the card was issued. + * @param issuingCountryCode The two-letter country code of the country where the card was issued. */ @JsonProperty(JSON_PROPERTY_ISSUING_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,7 +189,9 @@ public void setIssuingCountryCode(String issuingCountryCode) { this.issuingCountryCode = issuingCountryCode; } - /** Return true if this CardDetailsResponse object is equal to o. */ + /** + * Return true if this CardDetailsResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -201,10 +201,10 @@ public boolean equals(Object o) { return false; } CardDetailsResponse cardDetailsResponse = (CardDetailsResponse) o; - return Objects.equals(this.brands, cardDetailsResponse.brands) - && Objects.equals(this.fundingSource, cardDetailsResponse.fundingSource) - && Objects.equals(this.isCardCommercial, cardDetailsResponse.isCardCommercial) - && Objects.equals(this.issuingCountryCode, cardDetailsResponse.issuingCountryCode); + return Objects.equals(this.brands, cardDetailsResponse.brands) && + Objects.equals(this.fundingSource, cardDetailsResponse.fundingSource) && + Objects.equals(this.isCardCommercial, cardDetailsResponse.isCardCommercial) && + Objects.equals(this.issuingCountryCode, cardDetailsResponse.issuingCountryCode); } @Override @@ -225,7 +225,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -234,23 +235,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CardDetailsResponse given an JSON string * * @param jsonString JSON string * @return An instance of CardDetailsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CardDetailsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to CardDetailsResponse */ public static CardDetailsResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardDetailsResponse.class); } - - /** - * Convert an instance of CardDetailsResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CardDetailsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CardDonations.java b/src/main/java/com/adyen/model/checkout/CardDonations.java index c239bd6a4..8d36fae43 100644 --- a/src/main/java/com/adyen/model/checkout/CardDonations.java +++ b/src/main/java/com/adyen/model/checkout/CardDonations.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CardDonations */ +/** + * CardDonations + */ @JsonPropertyOrder({ CardDonations.JSON_PROPERTY_BRAND, CardDonations.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, @@ -31,6 +36,7 @@ CardDonations.JSON_PROPERTY_ENCRYPTED_CARD_NUMBER, CardDonations.JSON_PROPERTY_ENCRYPTED_EXPIRY_MONTH, CardDonations.JSON_PROPERTY_ENCRYPTED_EXPIRY_YEAR, + CardDonations.JSON_PROPERTY_ENCRYPTED_PASSWORD, CardDonations.JSON_PROPERTY_ENCRYPTED_SECURITY_CODE, CardDonations.JSON_PROPERTY_EXPIRY_MONTH, CardDonations.JSON_PROPERTY_EXPIRY_YEAR, @@ -49,6 +55,7 @@ CardDonations.JSON_PROPERTY_THREE_D_S2_SDK_VERSION, CardDonations.JSON_PROPERTY_TYPE }) + public class CardDonations { public static final String JSON_PROPERTY_BRAND = "brand"; private String brand; @@ -57,7 +64,7 @@ public class CardDonations { private String checkoutAttemptId; public static final String JSON_PROPERTY_CUPSECUREPLUS_SMSCODE = "cupsecureplus.smscode"; - @Deprecated // deprecated + @Deprecated // deprecated private String cupsecureplusSmscode; public static final String JSON_PROPERTY_CVC = "cvc"; @@ -75,6 +82,9 @@ public class CardDonations { public static final String JSON_PROPERTY_ENCRYPTED_EXPIRY_YEAR = "encryptedExpiryYear"; private String encryptedExpiryYear; + public static final String JSON_PROPERTY_ENCRYPTED_PASSWORD = "encryptedPassword"; + private String encryptedPassword; + public static final String JSON_PROPERTY_ENCRYPTED_SECURITY_CODE = "encryptedSecurityCode"; private String encryptedSecurityCode; @@ -88,10 +98,10 @@ public class CardDonations { private String fastlaneData; /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ public enum FundingSourceEnum { + CREDIT(String.valueOf("credit")), DEBIT(String.valueOf("debit")); @@ -101,7 +111,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -122,11 +132,7 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FundingSourceEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FundingSourceEnum.values())); + LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -147,8 +153,7 @@ public static FundingSourceEnum fromValue(String value) { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; - public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE = - "shopperNotificationReference"; + public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE = "shopperNotificationReference"; private String shopperNotificationReference; public static final String JSON_PROPERTY_SRC_CORRELATION_ID = "srcCorrelationId"; @@ -170,10 +175,10 @@ public static FundingSourceEnum fromValue(String value) { private String threeDS2SdkVersion; /** - * Default payment method details. Common for scheme payment methods, and for simple payment - * method details. + * Default payment method details. Common for scheme payment methods, and for simple payment method details. */ public enum TypeEnum { + BCMC(String.valueOf("bcmc")), SCHEME(String.valueOf("scheme")), @@ -191,7 +196,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -212,11 +217,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -224,7 +225,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CardDonations() {} + public CardDonations() { + } /** * Secondary brand of the card. For example: **plastix**, **hmclub**. @@ -239,7 +241,6 @@ public CardDonations brand(String brand) { /** * Secondary brand of the card. For example: **plastix**, **hmclub**. - * * @return brand Secondary brand of the card. For example: **plastix**, **hmclub**. */ @JsonProperty(JSON_PROPERTY_BRAND) @@ -272,7 +273,6 @@ public CardDonations checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -295,11 +295,12 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { /** * cupsecureplusSmscode * - * @param cupsecureplusSmscode + * @param cupsecureplusSmscode * @return the current {@code CardDonations} instance, allowing for method chaining - * @deprecated + * + * @deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated public CardDonations cupsecureplusSmscode(String cupsecureplusSmscode) { this.cupsecureplusSmscode = cupsecureplusSmscode; return this; @@ -307,11 +308,10 @@ public CardDonations cupsecureplusSmscode(String cupsecureplusSmscode) { /** * Get cupsecureplusSmscode - * - * @return cupsecureplusSmscode - * @deprecated // deprecated + * @return cupsecureplusSmscode + * @deprecated // deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated @JsonProperty(JSON_PROPERTY_CUPSECUREPLUS_SMSCODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCupsecureplusSmscode() { @@ -321,10 +321,11 @@ public String getCupsecureplusSmscode() { /** * cupsecureplusSmscode * - * @param cupsecureplusSmscode - * @deprecated + * @param cupsecureplusSmscode + * + * @deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated @JsonProperty(JSON_PROPERTY_CUPSECUREPLUS_SMSCODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCupsecureplusSmscode(String cupsecureplusSmscode) { @@ -332,11 +333,9 @@ public void setCupsecureplusSmscode(String cupsecureplusSmscode) { } /** - * The card verification code. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param cvc The card verification code. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param cvc The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * @return the current {@code CardDonations} instance, allowing for method chaining */ public CardDonations cvc(String cvc) { @@ -345,11 +344,8 @@ public CardDonations cvc(String cvc) { } /** - * The card verification code. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). - * - * @return cvc The card verification code. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @return cvc The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -358,11 +354,9 @@ public String getCvc() { } /** - * The card verification code. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param cvc The card verification code. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param cvc The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -371,11 +365,9 @@ public void setCvc(String cvc) { } /** - * Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card - * details. + * Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details. * - * @param encryptedCard Only include this for JSON Web Encryption (JWE) implementations. The - * JWE-encrypted card details. + * @param encryptedCard Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details. * @return the current {@code CardDonations} instance, allowing for method chaining */ public CardDonations encryptedCard(String encryptedCard) { @@ -384,11 +376,8 @@ public CardDonations encryptedCard(String encryptedCard) { } /** - * Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card - * details. - * - * @return encryptedCard Only include this for JSON Web Encryption (JWE) implementations. The - * JWE-encrypted card details. + * Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details. + * @return encryptedCard Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -397,11 +386,9 @@ public String getEncryptedCard() { } /** - * Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card - * details. + * Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details. * - * @param encryptedCard Only include this for JSON Web Encryption (JWE) implementations. The - * JWE-encrypted card details. + * @param encryptedCard Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -422,7 +409,6 @@ public CardDonations encryptedCardNumber(String encryptedCardNumber) { /** * The encrypted card number. - * * @return encryptedCardNumber The encrypted card number. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_CARD_NUMBER) @@ -455,7 +441,6 @@ public CardDonations encryptedExpiryMonth(String encryptedExpiryMonth) { /** * The encrypted card expiry month. - * * @return encryptedExpiryMonth The encrypted card expiry month. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_EXPIRY_MONTH) @@ -488,7 +473,6 @@ public CardDonations encryptedExpiryYear(String encryptedExpiryYear) { /** * The encrypted card expiry year. - * * @return encryptedExpiryYear The encrypted card expiry year. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_EXPIRY_YEAR) @@ -508,6 +492,38 @@ public void setEncryptedExpiryYear(String encryptedExpiryYear) { this.encryptedExpiryYear = encryptedExpiryYear; } + /** + * This field contains an encrypted, one-time password or an authentication code provided by the cardholder. + * + * @param encryptedPassword This field contains an encrypted, one-time password or an authentication code provided by the cardholder. + * @return the current {@code CardDonations} instance, allowing for method chaining + */ + public CardDonations encryptedPassword(String encryptedPassword) { + this.encryptedPassword = encryptedPassword; + return this; + } + + /** + * This field contains an encrypted, one-time password or an authentication code provided by the cardholder. + * @return encryptedPassword This field contains an encrypted, one-time password or an authentication code provided by the cardholder. + */ + @JsonProperty(JSON_PROPERTY_ENCRYPTED_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEncryptedPassword() { + return encryptedPassword; + } + + /** + * This field contains an encrypted, one-time password or an authentication code provided by the cardholder. + * + * @param encryptedPassword This field contains an encrypted, one-time password or an authentication code provided by the cardholder. + */ + @JsonProperty(JSON_PROPERTY_ENCRYPTED_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEncryptedPassword(String encryptedPassword) { + this.encryptedPassword = encryptedPassword; + } + /** * The encrypted card verification code. * @@ -521,7 +537,6 @@ public CardDonations encryptedSecurityCode(String encryptedSecurityCode) { /** * The encrypted card verification code. - * * @return encryptedSecurityCode The encrypted card verification code. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_SECURITY_CODE) @@ -542,11 +557,9 @@ public void setEncryptedSecurityCode(String encryptedSecurityCode) { } /** - * The card expiry month. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * @return the current {@code CardDonations} instance, allowing for method chaining */ public CardDonations expiryMonth(String expiryMonth) { @@ -555,11 +568,8 @@ public CardDonations expiryMonth(String expiryMonth) { } /** - * The card expiry month. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). - * - * @return expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @return expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -568,11 +578,9 @@ public String getExpiryMonth() { } /** - * The card expiry month. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -581,11 +589,9 @@ public void setExpiryMonth(String expiryMonth) { } /** - * The card expiry year. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param expiryYear The card expiry year. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param expiryYear The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * @return the current {@code CardDonations} instance, allowing for method chaining */ public CardDonations expiryYear(String expiryYear) { @@ -594,11 +600,8 @@ public CardDonations expiryYear(String expiryYear) { } /** - * The card expiry year. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). - * - * @return expiryYear The card expiry year. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @return expiryYear The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -607,11 +610,9 @@ public String getExpiryYear() { } /** - * The card expiry year. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param expiryYear The card expiry year. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param expiryYear The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -632,7 +633,6 @@ public CardDonations fastlaneData(String fastlaneData) { /** * The encoded fastlane data blob - * * @return fastlaneData The encoded fastlane data blob */ @JsonProperty(JSON_PROPERTY_FASTLANE_DATA) @@ -653,12 +653,9 @@ public void setFastlaneData(String fastlaneData) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * @return the current {@code CardDonations} instance, allowing for method chaining */ public CardDonations fundingSource(FundingSourceEnum fundingSource) { @@ -667,12 +664,8 @@ public CardDonations fundingSource(FundingSourceEnum fundingSource) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. - * - * @return fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @return fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -681,12 +674,9 @@ public FundingSourceEnum getFundingSource() { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -707,7 +697,6 @@ public CardDonations holderName(String holderName) { /** * The name of the card holder. - * * @return holderName The name of the card holder. */ @JsonProperty(JSON_PROPERTY_HOLDER_NAME) @@ -728,13 +717,9 @@ public void setHolderName(String holderName) { } /** - * The transaction identifier from card schemes. This is the - * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) - * from the response to the first payment. + * The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. * - * @param networkPaymentReference The transaction identifier from card schemes. This is the - * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) - * from the response to the first payment. + * @param networkPaymentReference The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. * @return the current {@code CardDonations} instance, allowing for method chaining */ public CardDonations networkPaymentReference(String networkPaymentReference) { @@ -743,13 +728,8 @@ public CardDonations networkPaymentReference(String networkPaymentReference) { } /** - * The transaction identifier from card schemes. This is the - * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) - * from the response to the first payment. - * - * @return networkPaymentReference The transaction identifier from card schemes. This is the - * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) - * from the response to the first payment. + * The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. + * @return networkPaymentReference The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. */ @JsonProperty(JSON_PROPERTY_NETWORK_PAYMENT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -758,13 +738,9 @@ public String getNetworkPaymentReference() { } /** - * The transaction identifier from card schemes. This is the - * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) - * from the response to the first payment. + * The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. * - * @param networkPaymentReference The transaction identifier from card schemes. This is the - * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) - * from the response to the first payment. + * @param networkPaymentReference The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. */ @JsonProperty(JSON_PROPERTY_NETWORK_PAYMENT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -773,11 +749,9 @@ public void setNetworkPaymentReference(String networkPaymentReference) { } /** - * The card number. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param number The card number. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param number The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * @return the current {@code CardDonations} instance, allowing for method chaining */ public CardDonations number(String number) { @@ -786,11 +760,8 @@ public CardDonations number(String number) { } /** - * The card number. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). - * - * @return number The card number. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @return number The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -799,11 +770,9 @@ public String getNumber() { } /** - * The card number. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param number The card number. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param number The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -812,13 +781,13 @@ public void setNumber(String number) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code CardDonations} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public CardDonations recurringDetailReference(String recurringDetailReference) { @@ -827,11 +796,8 @@ public CardDonations recurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -842,12 +808,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -857,12 +823,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * The `shopperNotificationReference` returned in the response when you requested to - * notify the shopper. Used only for recurring payments in India. + * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India. * - * @param shopperNotificationReference The `shopperNotificationReference` returned in - * the response when you requested to notify the shopper. Used only for recurring payments in - * India. + * @param shopperNotificationReference The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India. * @return the current {@code CardDonations} instance, allowing for method chaining */ public CardDonations shopperNotificationReference(String shopperNotificationReference) { @@ -871,12 +834,8 @@ public CardDonations shopperNotificationReference(String shopperNotificationRefe } /** - * The `shopperNotificationReference` returned in the response when you requested to - * notify the shopper. Used only for recurring payments in India. - * - * @return shopperNotificationReference The `shopperNotificationReference` returned in - * the response when you requested to notify the shopper. Used only for recurring payments in - * India. + * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India. + * @return shopperNotificationReference The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India. */ @JsonProperty(JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -885,12 +844,9 @@ public String getShopperNotificationReference() { } /** - * The `shopperNotificationReference` returned in the response when you requested to - * notify the shopper. Used only for recurring payments in India. + * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India. * - * @param shopperNotificationReference The `shopperNotificationReference` returned in - * the response when you requested to notify the shopper. Used only for recurring payments in - * India. + * @param shopperNotificationReference The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India. */ @JsonProperty(JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -911,7 +867,6 @@ public CardDonations srcCorrelationId(String srcCorrelationId) { /** * An identifier used for the Click to Pay transaction. - * * @return srcCorrelationId An identifier used for the Click to Pay transaction. */ @JsonProperty(JSON_PROPERTY_SRC_CORRELATION_ID) @@ -944,7 +899,6 @@ public CardDonations srcDigitalCardId(String srcDigitalCardId) { /** * The SRC reference for the Click to Pay token. - * * @return srcDigitalCardId The SRC reference for the Click to Pay token. */ @JsonProperty(JSON_PROPERTY_SRC_DIGITAL_CARD_ID) @@ -977,7 +931,6 @@ public CardDonations srcScheme(String srcScheme) { /** * The scheme that is being used for Click to Pay. - * * @return srcScheme The scheme that is being used for Click to Pay. */ @JsonProperty(JSON_PROPERTY_SRC_SCHEME) @@ -1010,7 +963,6 @@ public CardDonations srcTokenReference(String srcTokenReference) { /** * The reference for the Click to Pay token. - * * @return srcTokenReference The reference for the Click to Pay token. */ @JsonProperty(JSON_PROPERTY_SRC_TOKEN_REFERENCE) @@ -1031,11 +983,9 @@ public void setSrcTokenReference(String srcTokenReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code CardDonations} instance, allowing for method chaining */ public CardDonations storedPaymentMethodId(String storedPaymentMethodId) { @@ -1044,11 +994,8 @@ public CardDonations storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1057,11 +1004,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1072,8 +1017,7 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. * - * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile - * SDK. + * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. * @return the current {@code CardDonations} instance, allowing for method chaining */ public CardDonations threeDS2SdkVersion(String threeDS2SdkVersion) { @@ -1083,9 +1027,7 @@ public CardDonations threeDS2SdkVersion(String threeDS2SdkVersion) { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. - * - * @return threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile - * SDK. + * @return threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_SDK_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1096,8 +1038,7 @@ public String getThreeDS2SdkVersion() { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. * - * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile - * SDK. + * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_SDK_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1106,11 +1047,9 @@ public void setThreeDS2SdkVersion(String threeDS2SdkVersion) { } /** - * Default payment method details. Common for scheme payment methods, and for simple payment - * method details. + * Default payment method details. Common for scheme payment methods, and for simple payment method details. * - * @param type Default payment method details. Common for scheme payment methods, and for simple - * payment method details. + * @param type Default payment method details. Common for scheme payment methods, and for simple payment method details. * @return the current {@code CardDonations} instance, allowing for method chaining */ public CardDonations type(TypeEnum type) { @@ -1119,11 +1058,8 @@ public CardDonations type(TypeEnum type) { } /** - * Default payment method details. Common for scheme payment methods, and for simple payment - * method details. - * - * @return type Default payment method details. Common for scheme payment methods, and for simple - * payment method details. + * Default payment method details. Common for scheme payment methods, and for simple payment method details. + * @return type Default payment method details. Common for scheme payment methods, and for simple payment method details. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1132,11 +1068,9 @@ public TypeEnum getType() { } /** - * Default payment method details. Common for scheme payment methods, and for simple payment - * method details. + * Default payment method details. Common for scheme payment methods, and for simple payment method details. * - * @param type Default payment method details. Common for scheme payment methods, and for simple - * payment method details. + * @param type Default payment method details. Common for scheme payment methods, and for simple payment method details. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1144,7 +1078,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this CardDonations object is equal to o. */ + /** + * Return true if this CardDonations object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -1154,62 +1090,37 @@ public boolean equals(Object o) { return false; } CardDonations cardDonations = (CardDonations) o; - return Objects.equals(this.brand, cardDonations.brand) - && Objects.equals(this.checkoutAttemptId, cardDonations.checkoutAttemptId) - && Objects.equals(this.cupsecureplusSmscode, cardDonations.cupsecureplusSmscode) - && Objects.equals(this.cvc, cardDonations.cvc) - && Objects.equals(this.encryptedCard, cardDonations.encryptedCard) - && Objects.equals(this.encryptedCardNumber, cardDonations.encryptedCardNumber) - && Objects.equals(this.encryptedExpiryMonth, cardDonations.encryptedExpiryMonth) - && Objects.equals(this.encryptedExpiryYear, cardDonations.encryptedExpiryYear) - && Objects.equals(this.encryptedSecurityCode, cardDonations.encryptedSecurityCode) - && Objects.equals(this.expiryMonth, cardDonations.expiryMonth) - && Objects.equals(this.expiryYear, cardDonations.expiryYear) - && Objects.equals(this.fastlaneData, cardDonations.fastlaneData) - && Objects.equals(this.fundingSource, cardDonations.fundingSource) - && Objects.equals(this.holderName, cardDonations.holderName) - && Objects.equals(this.networkPaymentReference, cardDonations.networkPaymentReference) - && Objects.equals(this.number, cardDonations.number) - && Objects.equals(this.recurringDetailReference, cardDonations.recurringDetailReference) - && Objects.equals( - this.shopperNotificationReference, cardDonations.shopperNotificationReference) - && Objects.equals(this.srcCorrelationId, cardDonations.srcCorrelationId) - && Objects.equals(this.srcDigitalCardId, cardDonations.srcDigitalCardId) - && Objects.equals(this.srcScheme, cardDonations.srcScheme) - && Objects.equals(this.srcTokenReference, cardDonations.srcTokenReference) - && Objects.equals(this.storedPaymentMethodId, cardDonations.storedPaymentMethodId) - && Objects.equals(this.threeDS2SdkVersion, cardDonations.threeDS2SdkVersion) - && Objects.equals(this.type, cardDonations.type); + return Objects.equals(this.brand, cardDonations.brand) && + Objects.equals(this.checkoutAttemptId, cardDonations.checkoutAttemptId) && + Objects.equals(this.cupsecureplusSmscode, cardDonations.cupsecureplusSmscode) && + Objects.equals(this.cvc, cardDonations.cvc) && + Objects.equals(this.encryptedCard, cardDonations.encryptedCard) && + Objects.equals(this.encryptedCardNumber, cardDonations.encryptedCardNumber) && + Objects.equals(this.encryptedExpiryMonth, cardDonations.encryptedExpiryMonth) && + Objects.equals(this.encryptedExpiryYear, cardDonations.encryptedExpiryYear) && + Objects.equals(this.encryptedPassword, cardDonations.encryptedPassword) && + Objects.equals(this.encryptedSecurityCode, cardDonations.encryptedSecurityCode) && + Objects.equals(this.expiryMonth, cardDonations.expiryMonth) && + Objects.equals(this.expiryYear, cardDonations.expiryYear) && + Objects.equals(this.fastlaneData, cardDonations.fastlaneData) && + Objects.equals(this.fundingSource, cardDonations.fundingSource) && + Objects.equals(this.holderName, cardDonations.holderName) && + Objects.equals(this.networkPaymentReference, cardDonations.networkPaymentReference) && + Objects.equals(this.number, cardDonations.number) && + Objects.equals(this.recurringDetailReference, cardDonations.recurringDetailReference) && + Objects.equals(this.shopperNotificationReference, cardDonations.shopperNotificationReference) && + Objects.equals(this.srcCorrelationId, cardDonations.srcCorrelationId) && + Objects.equals(this.srcDigitalCardId, cardDonations.srcDigitalCardId) && + Objects.equals(this.srcScheme, cardDonations.srcScheme) && + Objects.equals(this.srcTokenReference, cardDonations.srcTokenReference) && + Objects.equals(this.storedPaymentMethodId, cardDonations.storedPaymentMethodId) && + Objects.equals(this.threeDS2SdkVersion, cardDonations.threeDS2SdkVersion) && + Objects.equals(this.type, cardDonations.type); } @Override public int hashCode() { - return Objects.hash( - brand, - checkoutAttemptId, - cupsecureplusSmscode, - cvc, - encryptedCard, - encryptedCardNumber, - encryptedExpiryMonth, - encryptedExpiryYear, - encryptedSecurityCode, - expiryMonth, - expiryYear, - fastlaneData, - fundingSource, - holderName, - networkPaymentReference, - number, - recurringDetailReference, - shopperNotificationReference, - srcCorrelationId, - srcDigitalCardId, - srcScheme, - srcTokenReference, - storedPaymentMethodId, - threeDS2SdkVersion, - type); + return Objects.hash(brand, checkoutAttemptId, cupsecureplusSmscode, cvc, encryptedCard, encryptedCardNumber, encryptedExpiryMonth, encryptedExpiryYear, encryptedPassword, encryptedSecurityCode, expiryMonth, expiryYear, fastlaneData, fundingSource, holderName, networkPaymentReference, number, recurringDetailReference, shopperNotificationReference, srcCorrelationId, srcDigitalCardId, srcScheme, srcTokenReference, storedPaymentMethodId, threeDS2SdkVersion, type); } @Override @@ -1218,45 +1129,28 @@ public String toString() { sb.append("class CardDonations {\n"); sb.append(" brand: ").append(toIndentedString(brand)).append("\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); - sb.append(" cupsecureplusSmscode: ") - .append(toIndentedString(cupsecureplusSmscode)) - .append("\n"); + sb.append(" cupsecureplusSmscode: ").append(toIndentedString(cupsecureplusSmscode)).append("\n"); sb.append(" cvc: ").append(toIndentedString(cvc)).append("\n"); sb.append(" encryptedCard: ").append(toIndentedString(encryptedCard)).append("\n"); - sb.append(" encryptedCardNumber: ") - .append(toIndentedString(encryptedCardNumber)) - .append("\n"); - sb.append(" encryptedExpiryMonth: ") - .append(toIndentedString(encryptedExpiryMonth)) - .append("\n"); - sb.append(" encryptedExpiryYear: ") - .append(toIndentedString(encryptedExpiryYear)) - .append("\n"); - sb.append(" encryptedSecurityCode: ") - .append(toIndentedString(encryptedSecurityCode)) - .append("\n"); + sb.append(" encryptedCardNumber: ").append(toIndentedString(encryptedCardNumber)).append("\n"); + sb.append(" encryptedExpiryMonth: ").append(toIndentedString(encryptedExpiryMonth)).append("\n"); + sb.append(" encryptedExpiryYear: ").append(toIndentedString(encryptedExpiryYear)).append("\n"); + sb.append(" encryptedPassword: ").append(toIndentedString(encryptedPassword)).append("\n"); + sb.append(" encryptedSecurityCode: ").append(toIndentedString(encryptedSecurityCode)).append("\n"); sb.append(" expiryMonth: ").append(toIndentedString(expiryMonth)).append("\n"); sb.append(" expiryYear: ").append(toIndentedString(expiryYear)).append("\n"); sb.append(" fastlaneData: ").append(toIndentedString(fastlaneData)).append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); sb.append(" holderName: ").append(toIndentedString(holderName)).append("\n"); - sb.append(" networkPaymentReference: ") - .append(toIndentedString(networkPaymentReference)) - .append("\n"); + sb.append(" networkPaymentReference: ").append(toIndentedString(networkPaymentReference)).append("\n"); sb.append(" number: ").append(toIndentedString(number)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" shopperNotificationReference: ") - .append(toIndentedString(shopperNotificationReference)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" shopperNotificationReference: ").append(toIndentedString(shopperNotificationReference)).append("\n"); sb.append(" srcCorrelationId: ").append(toIndentedString(srcCorrelationId)).append("\n"); sb.append(" srcDigitalCardId: ").append(toIndentedString(srcDigitalCardId)).append("\n"); sb.append(" srcScheme: ").append(toIndentedString(srcScheme)).append("\n"); sb.append(" srcTokenReference: ").append(toIndentedString(srcTokenReference)).append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" threeDS2SdkVersion: ").append(toIndentedString(threeDS2SdkVersion)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -1264,7 +1158,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1273,7 +1168,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CardDonations given an JSON string * * @param jsonString JSON string @@ -1283,12 +1178,11 @@ private String toIndentedString(Object o) { public static CardDonations fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardDonations.class); } - - /** - * Convert an instance of CardDonations to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CardDonations to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CashAppDetails.java b/src/main/java/com/adyen/model/checkout/CashAppDetails.java index 630dee12b..fa181f392 100644 --- a/src/main/java/com/adyen/model/checkout/CashAppDetails.java +++ b/src/main/java/com/adyen/model/checkout/CashAppDetails.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CashAppDetails */ +/** + * CashAppDetails + */ @JsonPropertyOrder({ CashAppDetails.JSON_PROPERTY_CASHTAG, CashAppDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, @@ -34,6 +39,7 @@ CashAppDetails.JSON_PROPERTY_SUBTYPE, CashAppDetails.JSON_PROPERTY_TYPE }) + public class CashAppDetails { public static final String JSON_PROPERTY_CASHTAG = "cashtag"; private String cashtag; @@ -63,8 +69,11 @@ public class CashAppDetails { public static final String JSON_PROPERTY_SUBTYPE = "subtype"; private String subtype; - /** cashapp */ + /** + * cashapp + */ public enum TypeEnum { + CASHAPP(String.valueOf("cashapp")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -72,7 +81,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -93,11 +102,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -105,7 +110,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CashAppDetails() {} + public CashAppDetails() { + } /** * Cash App issued cashtag for recurring payment @@ -120,7 +126,6 @@ public CashAppDetails cashtag(String cashtag) { /** * Cash App issued cashtag for recurring payment - * * @return cashtag Cash App issued cashtag for recurring payment */ @JsonProperty(JSON_PROPERTY_CASHTAG) @@ -153,7 +158,6 @@ public CashAppDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -186,7 +190,6 @@ public CashAppDetails customerId(String customerId) { /** * Cash App issued customerId for recurring payment - * * @return customerId Cash App issued customerId for recurring payment */ @JsonProperty(JSON_PROPERTY_CUSTOMER_ID) @@ -219,7 +222,6 @@ public CashAppDetails grantId(String grantId) { /** * Cash App issued grantId for one time payment - * * @return grantId Cash App issued grantId for one time payment */ @JsonProperty(JSON_PROPERTY_GRANT_ID) @@ -252,7 +254,6 @@ public CashAppDetails onFileGrantId(String onFileGrantId) { /** * Cash App issued onFileGrantId for recurring payment - * * @return onFileGrantId Cash App issued onFileGrantId for recurring payment */ @JsonProperty(JSON_PROPERTY_ON_FILE_GRANT_ID) @@ -273,13 +274,13 @@ public void setOnFileGrantId(String onFileGrantId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code CashAppDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public CashAppDetails recurringDetailReference(String recurringDetailReference) { @@ -288,11 +289,8 @@ public CashAppDetails recurringDetailReference(String recurringDetailReference) } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -303,12 +301,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -330,7 +328,6 @@ public CashAppDetails requestId(String requestId) { /** * Cash App request id - * * @return requestId Cash App request id */ @JsonProperty(JSON_PROPERTY_REQUEST_ID) @@ -351,11 +348,9 @@ public void setRequestId(String requestId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code CashAppDetails} instance, allowing for method chaining */ public CashAppDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -364,11 +359,8 @@ public CashAppDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -377,11 +369,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -402,7 +392,6 @@ public CashAppDetails subtype(String subtype) { /** * The payment method subtype. - * * @return subtype The payment method subtype. */ @JsonProperty(JSON_PROPERTY_SUBTYPE) @@ -435,7 +424,6 @@ public CashAppDetails type(TypeEnum type) { /** * cashapp - * * @return type cashapp */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -455,7 +443,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this CashAppDetails object is equal to o. */ + /** + * Return true if this CashAppDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -465,31 +455,21 @@ public boolean equals(Object o) { return false; } CashAppDetails cashAppDetails = (CashAppDetails) o; - return Objects.equals(this.cashtag, cashAppDetails.cashtag) - && Objects.equals(this.checkoutAttemptId, cashAppDetails.checkoutAttemptId) - && Objects.equals(this.customerId, cashAppDetails.customerId) - && Objects.equals(this.grantId, cashAppDetails.grantId) - && Objects.equals(this.onFileGrantId, cashAppDetails.onFileGrantId) - && Objects.equals(this.recurringDetailReference, cashAppDetails.recurringDetailReference) - && Objects.equals(this.requestId, cashAppDetails.requestId) - && Objects.equals(this.storedPaymentMethodId, cashAppDetails.storedPaymentMethodId) - && Objects.equals(this.subtype, cashAppDetails.subtype) - && Objects.equals(this.type, cashAppDetails.type); + return Objects.equals(this.cashtag, cashAppDetails.cashtag) && + Objects.equals(this.checkoutAttemptId, cashAppDetails.checkoutAttemptId) && + Objects.equals(this.customerId, cashAppDetails.customerId) && + Objects.equals(this.grantId, cashAppDetails.grantId) && + Objects.equals(this.onFileGrantId, cashAppDetails.onFileGrantId) && + Objects.equals(this.recurringDetailReference, cashAppDetails.recurringDetailReference) && + Objects.equals(this.requestId, cashAppDetails.requestId) && + Objects.equals(this.storedPaymentMethodId, cashAppDetails.storedPaymentMethodId) && + Objects.equals(this.subtype, cashAppDetails.subtype) && + Objects.equals(this.type, cashAppDetails.type); } @Override public int hashCode() { - return Objects.hash( - cashtag, - checkoutAttemptId, - customerId, - grantId, - onFileGrantId, - recurringDetailReference, - requestId, - storedPaymentMethodId, - subtype, - type); + return Objects.hash(cashtag, checkoutAttemptId, customerId, grantId, onFileGrantId, recurringDetailReference, requestId, storedPaymentMethodId, subtype, type); } @Override @@ -501,13 +481,9 @@ public String toString() { sb.append(" customerId: ").append(toIndentedString(customerId)).append("\n"); sb.append(" grantId: ").append(toIndentedString(grantId)).append("\n"); sb.append(" onFileGrantId: ").append(toIndentedString(onFileGrantId)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -515,7 +491,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -524,7 +501,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CashAppDetails given an JSON string * * @param jsonString JSON string @@ -534,12 +511,11 @@ private String toIndentedString(Object o) { public static CashAppDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CashAppDetails.class); } - - /** - * Convert an instance of CashAppDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CashAppDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CellulantDetails.java b/src/main/java/com/adyen/model/checkout/CellulantDetails.java index cd0758abd..9abbd36e2 100644 --- a/src/main/java/com/adyen/model/checkout/CellulantDetails.java +++ b/src/main/java/com/adyen/model/checkout/CellulantDetails.java @@ -2,31 +2,37 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** CellulantDetails */ + +/** + * CellulantDetails + */ @JsonPropertyOrder({ CellulantDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, CellulantDetails.JSON_PROPERTY_ISSUER, CellulantDetails.JSON_PROPERTY_TYPE }) + public class CellulantDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -34,8 +40,11 @@ public class CellulantDetails { public static final String JSON_PROPERTY_ISSUER = "issuer"; private String issuer; - /** **Cellulant** */ + /** + * **Cellulant** + */ public enum TypeEnum { + CELLULANT(String.valueOf("cellulant")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -43,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -76,7 +81,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CellulantDetails() {} + public CellulantDetails() { + } /** * The checkout attempt identifier. @@ -91,7 +97,6 @@ public CellulantDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -124,7 +129,6 @@ public CellulantDetails issuer(String issuer) { /** * The Cellulant issuer. - * * @return issuer The Cellulant issuer. */ @JsonProperty(JSON_PROPERTY_ISSUER) @@ -157,7 +161,6 @@ public CellulantDetails type(TypeEnum type) { /** * **Cellulant** - * * @return type **Cellulant** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -177,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this CellulantDetails object is equal to o. */ + /** + * Return true if this CellulantDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -187,9 +192,9 @@ public boolean equals(Object o) { return false; } CellulantDetails cellulantDetails = (CellulantDetails) o; - return Objects.equals(this.checkoutAttemptId, cellulantDetails.checkoutAttemptId) - && Objects.equals(this.issuer, cellulantDetails.issuer) - && Objects.equals(this.type, cellulantDetails.type); + return Objects.equals(this.checkoutAttemptId, cellulantDetails.checkoutAttemptId) && + Objects.equals(this.issuer, cellulantDetails.issuer) && + Objects.equals(this.type, cellulantDetails.type); } @Override @@ -209,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -218,7 +224,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CellulantDetails given an JSON string * * @param jsonString JSON string @@ -228,12 +234,11 @@ private String toIndentedString(Object o) { public static CellulantDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CellulantDetails.class); } - - /** - * Convert an instance of CellulantDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CellulantDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutAwaitAction.java b/src/main/java/com/adyen/model/checkout/CheckoutAwaitAction.java index 7844abc1d..7f6997bb9 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutAwaitAction.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutAwaitAction.java @@ -2,32 +2,38 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** CheckoutAwaitAction */ + +/** + * CheckoutAwaitAction + */ @JsonPropertyOrder({ CheckoutAwaitAction.JSON_PROPERTY_PAYMENT_DATA, CheckoutAwaitAction.JSON_PROPERTY_PAYMENT_METHOD_TYPE, CheckoutAwaitAction.JSON_PROPERTY_TYPE, CheckoutAwaitAction.JSON_PROPERTY_URL }) + public class CheckoutAwaitAction { public static final String JSON_PROPERTY_PAYMENT_DATA = "paymentData"; private String paymentData; @@ -35,8 +41,11 @@ public class CheckoutAwaitAction { public static final String JSON_PROPERTY_PAYMENT_METHOD_TYPE = "paymentMethodType"; private String paymentMethodType; - /** **await** */ + /** + * **await** + */ public enum TypeEnum { + AWAIT(String.valueOf("await")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -44,7 +53,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -65,11 +74,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -80,7 +85,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_URL = "url"; private String url; - public CheckoutAwaitAction() {} + public CheckoutAwaitAction() { + } /** * Encoded payment data. @@ -95,7 +101,6 @@ public CheckoutAwaitAction paymentData(String paymentData) { /** * Encoded payment data. - * * @return paymentData Encoded payment data. */ @JsonProperty(JSON_PROPERTY_PAYMENT_DATA) @@ -128,7 +133,6 @@ public CheckoutAwaitAction paymentMethodType(String paymentMethodType) { /** * Specifies the payment method. - * * @return paymentMethodType Specifies the payment method. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_TYPE) @@ -161,7 +165,6 @@ public CheckoutAwaitAction type(TypeEnum type) { /** * **await** - * * @return type **await** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -194,7 +197,6 @@ public CheckoutAwaitAction url(String url) { /** * Specifies the URL to redirect to. - * * @return url Specifies the URL to redirect to. */ @JsonProperty(JSON_PROPERTY_URL) @@ -214,7 +216,9 @@ public void setUrl(String url) { this.url = url; } - /** Return true if this CheckoutAwaitAction object is equal to o. */ + /** + * Return true if this CheckoutAwaitAction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -224,10 +228,10 @@ public boolean equals(Object o) { return false; } CheckoutAwaitAction checkoutAwaitAction = (CheckoutAwaitAction) o; - return Objects.equals(this.paymentData, checkoutAwaitAction.paymentData) - && Objects.equals(this.paymentMethodType, checkoutAwaitAction.paymentMethodType) - && Objects.equals(this.type, checkoutAwaitAction.type) - && Objects.equals(this.url, checkoutAwaitAction.url); + return Objects.equals(this.paymentData, checkoutAwaitAction.paymentData) && + Objects.equals(this.paymentMethodType, checkoutAwaitAction.paymentMethodType) && + Objects.equals(this.type, checkoutAwaitAction.type) && + Objects.equals(this.url, checkoutAwaitAction.url); } @Override @@ -248,7 +252,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -257,23 +262,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CheckoutAwaitAction given an JSON string * * @param jsonString JSON string * @return An instance of CheckoutAwaitAction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CheckoutAwaitAction + * @throws JsonProcessingException if the JSON string is invalid with respect to CheckoutAwaitAction */ public static CheckoutAwaitAction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CheckoutAwaitAction.class); } - - /** - * Convert an instance of CheckoutAwaitAction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CheckoutAwaitAction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutBankAccount.java b/src/main/java/com/adyen/model/checkout/CheckoutBankAccount.java index 35ecb5bde..85d7c4e27 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutBankAccount.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutBankAccount.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CheckoutBankAccount */ +/** + * CheckoutBankAccount + */ @JsonPropertyOrder({ CheckoutBankAccount.JSON_PROPERTY_ACCOUNT_TYPE, CheckoutBankAccount.JSON_PROPERTY_BANK_ACCOUNT_NUMBER, @@ -34,9 +39,13 @@ CheckoutBankAccount.JSON_PROPERTY_OWNER_NAME, CheckoutBankAccount.JSON_PROPERTY_TAX_ID }) + public class CheckoutBankAccount { - /** The type of the bank account. */ + /** + * The type of the bank account. + */ public enum AccountTypeEnum { + BALANCE(String.valueOf("balance")), CHECKING(String.valueOf("checking")), @@ -56,7 +65,7 @@ public enum AccountTypeEnum { private String value; AccountTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -77,11 +86,7 @@ public static AccountTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AccountTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AccountTypeEnum.values())); + LOG.warning("AccountTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AccountTypeEnum.values())); return null; } } @@ -116,7 +121,8 @@ public static AccountTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TAX_ID = "taxId"; private String taxId; - public CheckoutBankAccount() {} + public CheckoutBankAccount() { + } /** * The type of the bank account. @@ -131,7 +137,6 @@ public CheckoutBankAccount accountType(AccountTypeEnum accountType) { /** * The type of the bank account. - * * @return accountType The type of the bank account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @@ -164,7 +169,6 @@ public CheckoutBankAccount bankAccountNumber(String bankAccountNumber) { /** * The bank account number (without separators). - * * @return bankAccountNumber The bank account number (without separators). */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_NUMBER) @@ -197,7 +201,6 @@ public CheckoutBankAccount bankCity(String bankCity) { /** * The bank city. - * * @return bankCity The bank city. */ @JsonProperty(JSON_PROPERTY_BANK_CITY) @@ -220,8 +223,7 @@ public void setBankCity(String bankCity) { /** * The location id of the bank. The field value is `nil` in most cases. * - * @param bankLocationId The location id of the bank. The field value is `nil` in most - * cases. + * @param bankLocationId The location id of the bank. The field value is `nil` in most cases. * @return the current {@code CheckoutBankAccount} instance, allowing for method chaining */ public CheckoutBankAccount bankLocationId(String bankLocationId) { @@ -231,9 +233,7 @@ public CheckoutBankAccount bankLocationId(String bankLocationId) { /** * The location id of the bank. The field value is `nil` in most cases. - * - * @return bankLocationId The location id of the bank. The field value is `nil` in most - * cases. + * @return bankLocationId The location id of the bank. The field value is `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_BANK_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,8 +244,7 @@ public String getBankLocationId() { /** * The location id of the bank. The field value is `nil` in most cases. * - * @param bankLocationId The location id of the bank. The field value is `nil` in most - * cases. + * @param bankLocationId The location id of the bank. The field value is `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_BANK_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -266,7 +265,6 @@ public CheckoutBankAccount bankName(String bankName) { /** * The name of the bank. - * * @return bankName The name of the bank. */ @JsonProperty(JSON_PROPERTY_BANK_NAME) @@ -287,11 +285,9 @@ public void setBankName(String bankName) { } /** - * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT - * address assigned to a bank. The field value is `nil` in most cases. + * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. * - * @param bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the - * SWIFT address assigned to a bank. The field value is `nil` in most cases. + * @param bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. * @return the current {@code CheckoutBankAccount} instance, allowing for method chaining */ public CheckoutBankAccount bic(String bic) { @@ -300,11 +296,8 @@ public CheckoutBankAccount bic(String bic) { } /** - * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT - * address assigned to a bank. The field value is `nil` in most cases. - * - * @return bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the - * SWIFT address assigned to a bank. The field value is `nil` in most cases. + * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. + * @return bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_BIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -313,11 +306,9 @@ public String getBic() { } /** - * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT - * address assigned to a bank. The field value is `nil` in most cases. + * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. * - * @param bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the - * SWIFT address assigned to a bank. The field value is `nil` in most cases. + * @param bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_BIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -326,11 +317,9 @@ public void setBic(String bic) { } /** - * Country code where the bank is located. A valid value is an ISO two-character country code - * (e.g. 'NL'). + * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). * - * @param countryCode Country code where the bank is located. A valid value is an ISO - * two-character country code (e.g. 'NL'). + * @param countryCode Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). * @return the current {@code CheckoutBankAccount} instance, allowing for method chaining */ public CheckoutBankAccount countryCode(String countryCode) { @@ -339,11 +328,8 @@ public CheckoutBankAccount countryCode(String countryCode) { } /** - * Country code where the bank is located. A valid value is an ISO two-character country code - * (e.g. 'NL'). - * - * @return countryCode Country code where the bank is located. A valid value is an ISO - * two-character country code (e.g. 'NL'). + * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). + * @return countryCode Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -352,11 +338,9 @@ public String getCountryCode() { } /** - * Country code where the bank is located. A valid value is an ISO two-character country code - * (e.g. 'NL'). + * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). * - * @param countryCode Country code where the bank is located. A valid value is an ISO - * two-character country code (e.g. 'NL'). + * @param countryCode Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -365,11 +349,9 @@ public void setCountryCode(String countryCode) { } /** - * The [International Bank Account - * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). * - * @param iban The [International Bank Account - * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * @param iban The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). * @return the current {@code CheckoutBankAccount} instance, allowing for method chaining */ public CheckoutBankAccount iban(String iban) { @@ -378,11 +360,8 @@ public CheckoutBankAccount iban(String iban) { } /** - * The [International Bank Account - * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). - * - * @return iban The [International Bank Account - * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * @return iban The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -391,11 +370,9 @@ public String getIban() { } /** - * The [International Bank Account - * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). * - * @param iban The [International Bank Account - * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * @param iban The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -404,25 +381,9 @@ public void setIban(String iban) { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we - * automatically replace some of them with corresponding Latin characters to meet the FATF - * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter - * Møller is converted to Peter Mller, because banks don't accept 'ø'. After - * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), - * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - - * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details - * don't match the required format, the response returns the error message: 203 'Invalid - * bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. * - * @param ownerName The name of the bank account holder. If you submit a name with non-Latin - * characters, we automatically replace some of them with corresponding Latin characters to - * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted - * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept - * 'ø'. After replacement, the ownerName must have at least three alphanumeric - * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, - * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - - * allowed. > If provided details don't match the required format, the response returns - * the error message: 203 'Invalid bank account holder name'. + * @param ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. * @return the current {@code CheckoutBankAccount} instance, allowing for method chaining */ public CheckoutBankAccount ownerName(String ownerName) { @@ -431,25 +392,8 @@ public CheckoutBankAccount ownerName(String ownerName) { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we - * automatically replace some of them with corresponding Latin characters to meet the FATF - * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter - * Møller is converted to Peter Mller, because banks don't accept 'ø'. After - * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), - * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - - * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details - * don't match the required format, the response returns the error message: 203 'Invalid - * bank account holder name'. - * - * @return ownerName The name of the bank account holder. If you submit a name with non-Latin - * characters, we automatically replace some of them with corresponding Latin characters to - * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted - * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept - * 'ø'. After replacement, the ownerName must have at least three alphanumeric - * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, - * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - - * allowed. > If provided details don't match the required format, the response returns - * the error message: 203 'Invalid bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * @return ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -458,25 +402,9 @@ public String getOwnerName() { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we - * automatically replace some of them with corresponding Latin characters to meet the FATF - * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter - * Møller is converted to Peter Mller, because banks don't accept 'ø'. After - * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), - * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - - * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details - * don't match the required format, the response returns the error message: 203 'Invalid - * bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. * - * @param ownerName The name of the bank account holder. If you submit a name with non-Latin - * characters, we automatically replace some of them with corresponding Latin characters to - * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted - * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept - * 'ø'. After replacement, the ownerName must have at least three alphanumeric - * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, - * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - - * allowed. > If provided details don't match the required format, the response returns - * the error message: 203 'Invalid bank account holder name'. + * @param ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -497,7 +425,6 @@ public CheckoutBankAccount taxId(String taxId) { /** * The bank account holder's tax ID. - * * @return taxId The bank account holder's tax ID. */ @JsonProperty(JSON_PROPERTY_TAX_ID) @@ -517,7 +444,9 @@ public void setTaxId(String taxId) { this.taxId = taxId; } - /** Return true if this CheckoutBankAccount object is equal to o. */ + /** + * Return true if this CheckoutBankAccount object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -527,31 +456,21 @@ public boolean equals(Object o) { return false; } CheckoutBankAccount checkoutBankAccount = (CheckoutBankAccount) o; - return Objects.equals(this.accountType, checkoutBankAccount.accountType) - && Objects.equals(this.bankAccountNumber, checkoutBankAccount.bankAccountNumber) - && Objects.equals(this.bankCity, checkoutBankAccount.bankCity) - && Objects.equals(this.bankLocationId, checkoutBankAccount.bankLocationId) - && Objects.equals(this.bankName, checkoutBankAccount.bankName) - && Objects.equals(this.bic, checkoutBankAccount.bic) - && Objects.equals(this.countryCode, checkoutBankAccount.countryCode) - && Objects.equals(this.iban, checkoutBankAccount.iban) - && Objects.equals(this.ownerName, checkoutBankAccount.ownerName) - && Objects.equals(this.taxId, checkoutBankAccount.taxId); + return Objects.equals(this.accountType, checkoutBankAccount.accountType) && + Objects.equals(this.bankAccountNumber, checkoutBankAccount.bankAccountNumber) && + Objects.equals(this.bankCity, checkoutBankAccount.bankCity) && + Objects.equals(this.bankLocationId, checkoutBankAccount.bankLocationId) && + Objects.equals(this.bankName, checkoutBankAccount.bankName) && + Objects.equals(this.bic, checkoutBankAccount.bic) && + Objects.equals(this.countryCode, checkoutBankAccount.countryCode) && + Objects.equals(this.iban, checkoutBankAccount.iban) && + Objects.equals(this.ownerName, checkoutBankAccount.ownerName) && + Objects.equals(this.taxId, checkoutBankAccount.taxId); } @Override public int hashCode() { - return Objects.hash( - accountType, - bankAccountNumber, - bankCity, - bankLocationId, - bankName, - bic, - countryCode, - iban, - ownerName, - taxId); + return Objects.hash(accountType, bankAccountNumber, bankCity, bankLocationId, bankName, bic, countryCode, iban, ownerName, taxId); } @Override @@ -573,7 +492,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -582,23 +502,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CheckoutBankAccount given an JSON string * * @param jsonString JSON string * @return An instance of CheckoutBankAccount - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CheckoutBankAccount + * @throws JsonProcessingException if the JSON string is invalid with respect to CheckoutBankAccount */ public static CheckoutBankAccount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CheckoutBankAccount.class); } - - /** - * Convert an instance of CheckoutBankAccount to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CheckoutBankAccount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutBankTransferAction.java b/src/main/java/com/adyen/model/checkout/CheckoutBankTransferAction.java index e856c2ec2..7102f9404 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutBankTransferAction.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutBankTransferAction.java @@ -2,26 +2,32 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CheckoutBankTransferAction */ +/** + * CheckoutBankTransferAction + */ @JsonPropertyOrder({ CheckoutBankTransferAction.JSON_PROPERTY_ACCOUNT_NUMBER, CheckoutBankTransferAction.JSON_PROPERTY_BENEFICIARY, @@ -37,6 +43,7 @@ CheckoutBankTransferAction.JSON_PROPERTY_TYPE, CheckoutBankTransferAction.JSON_PROPERTY_URL }) + public class CheckoutBankTransferAction { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -71,8 +78,11 @@ public class CheckoutBankTransferAction { public static final String JSON_PROPERTY_TOTAL_AMOUNT = "totalAmount"; private Amount totalAmount; - /** The type of the action. */ + /** + * The type of the action. + */ public enum TypeEnum { + BANKTRANSFER(String.valueOf("bankTransfer")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -80,7 +90,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -101,11 +111,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -116,7 +122,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_URL = "url"; private String url; - public CheckoutBankTransferAction() {} + public CheckoutBankTransferAction() { + } /** * The account number of the bank transfer. @@ -131,7 +138,6 @@ public CheckoutBankTransferAction accountNumber(String accountNumber) { /** * The account number of the bank transfer. - * * @return accountNumber The account number of the bank transfer. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -164,7 +170,6 @@ public CheckoutBankTransferAction beneficiary(String beneficiary) { /** * The name of the account holder. - * * @return beneficiary The name of the account holder. */ @JsonProperty(JSON_PROPERTY_BENEFICIARY) @@ -197,7 +202,6 @@ public CheckoutBankTransferAction bic(String bic) { /** * The BIC of the IBAN. - * * @return bic The BIC of the IBAN. */ @JsonProperty(JSON_PROPERTY_BIC) @@ -230,7 +234,6 @@ public CheckoutBankTransferAction downloadUrl(String downloadUrl) { /** * The url to download payment details with. - * * @return downloadUrl The url to download payment details with. */ @JsonProperty(JSON_PROPERTY_DOWNLOAD_URL) @@ -263,7 +266,6 @@ public CheckoutBankTransferAction iban(String iban) { /** * The IBAN of the bank transfer. - * * @return iban The IBAN of the bank transfer. */ @JsonProperty(JSON_PROPERTY_IBAN) @@ -296,7 +298,6 @@ public CheckoutBankTransferAction paymentMethodType(String paymentMethodType) { /** * Specifies the payment method. - * * @return paymentMethodType Specifies the payment method. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_TYPE) @@ -329,7 +330,6 @@ public CheckoutBankTransferAction reference(String reference) { /** * The transfer reference. - * * @return reference The transfer reference. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -362,7 +362,6 @@ public CheckoutBankTransferAction routingNumber(String routingNumber) { /** * The routing number of the bank transfer. - * * @return routingNumber The routing number of the bank transfer. */ @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @@ -395,7 +394,6 @@ public CheckoutBankTransferAction shopperEmail(String shopperEmail) { /** * The e-mail of the shopper, included if an e-mail was sent to the shopper. - * * @return shopperEmail The e-mail of the shopper, included if an e-mail was sent to the shopper. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -428,7 +426,6 @@ public CheckoutBankTransferAction sortCode(String sortCode) { /** * The sort code of the bank transfer. - * * @return sortCode The sort code of the bank transfer. */ @JsonProperty(JSON_PROPERTY_SORT_CODE) @@ -451,7 +448,7 @@ public void setSortCode(String sortCode) { /** * totalAmount * - * @param totalAmount + * @param totalAmount * @return the current {@code CheckoutBankTransferAction} instance, allowing for method chaining */ public CheckoutBankTransferAction totalAmount(Amount totalAmount) { @@ -461,8 +458,7 @@ public CheckoutBankTransferAction totalAmount(Amount totalAmount) { /** * Get totalAmount - * - * @return totalAmount + * @return totalAmount */ @JsonProperty(JSON_PROPERTY_TOTAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -473,7 +469,7 @@ public Amount getTotalAmount() { /** * totalAmount * - * @param totalAmount + * @param totalAmount */ @JsonProperty(JSON_PROPERTY_TOTAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -494,7 +490,6 @@ public CheckoutBankTransferAction type(TypeEnum type) { /** * The type of the action. - * * @return type The type of the action. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -527,7 +522,6 @@ public CheckoutBankTransferAction url(String url) { /** * Specifies the URL to redirect to. - * * @return url Specifies the URL to redirect to. */ @JsonProperty(JSON_PROPERTY_URL) @@ -547,7 +541,9 @@ public void setUrl(String url) { this.url = url; } - /** Return true if this CheckoutBankTransferAction object is equal to o. */ + /** + * Return true if this CheckoutBankTransferAction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -557,37 +553,24 @@ public boolean equals(Object o) { return false; } CheckoutBankTransferAction checkoutBankTransferAction = (CheckoutBankTransferAction) o; - return Objects.equals(this.accountNumber, checkoutBankTransferAction.accountNumber) - && Objects.equals(this.beneficiary, checkoutBankTransferAction.beneficiary) - && Objects.equals(this.bic, checkoutBankTransferAction.bic) - && Objects.equals(this.downloadUrl, checkoutBankTransferAction.downloadUrl) - && Objects.equals(this.iban, checkoutBankTransferAction.iban) - && Objects.equals(this.paymentMethodType, checkoutBankTransferAction.paymentMethodType) - && Objects.equals(this.reference, checkoutBankTransferAction.reference) - && Objects.equals(this.routingNumber, checkoutBankTransferAction.routingNumber) - && Objects.equals(this.shopperEmail, checkoutBankTransferAction.shopperEmail) - && Objects.equals(this.sortCode, checkoutBankTransferAction.sortCode) - && Objects.equals(this.totalAmount, checkoutBankTransferAction.totalAmount) - && Objects.equals(this.type, checkoutBankTransferAction.type) - && Objects.equals(this.url, checkoutBankTransferAction.url); + return Objects.equals(this.accountNumber, checkoutBankTransferAction.accountNumber) && + Objects.equals(this.beneficiary, checkoutBankTransferAction.beneficiary) && + Objects.equals(this.bic, checkoutBankTransferAction.bic) && + Objects.equals(this.downloadUrl, checkoutBankTransferAction.downloadUrl) && + Objects.equals(this.iban, checkoutBankTransferAction.iban) && + Objects.equals(this.paymentMethodType, checkoutBankTransferAction.paymentMethodType) && + Objects.equals(this.reference, checkoutBankTransferAction.reference) && + Objects.equals(this.routingNumber, checkoutBankTransferAction.routingNumber) && + Objects.equals(this.shopperEmail, checkoutBankTransferAction.shopperEmail) && + Objects.equals(this.sortCode, checkoutBankTransferAction.sortCode) && + Objects.equals(this.totalAmount, checkoutBankTransferAction.totalAmount) && + Objects.equals(this.type, checkoutBankTransferAction.type) && + Objects.equals(this.url, checkoutBankTransferAction.url); } @Override public int hashCode() { - return Objects.hash( - accountNumber, - beneficiary, - bic, - downloadUrl, - iban, - paymentMethodType, - reference, - routingNumber, - shopperEmail, - sortCode, - totalAmount, - type, - url); + return Objects.hash(accountNumber, beneficiary, bic, downloadUrl, iban, paymentMethodType, reference, routingNumber, shopperEmail, sortCode, totalAmount, type, url); } @Override @@ -612,7 +595,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -621,24 +605,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CheckoutBankTransferAction given an JSON string * * @param jsonString JSON string * @return An instance of CheckoutBankTransferAction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CheckoutBankTransferAction + * @throws JsonProcessingException if the JSON string is invalid with respect to CheckoutBankTransferAction */ - public static CheckoutBankTransferAction fromJson(String jsonString) - throws JsonProcessingException { + public static CheckoutBankTransferAction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CheckoutBankTransferAction.class); } - - /** - * Convert an instance of CheckoutBankTransferAction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CheckoutBankTransferAction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutDelegatedAuthenticationAction.java b/src/main/java/com/adyen/model/checkout/CheckoutDelegatedAuthenticationAction.java index 3ac65b281..0c7972988 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutDelegatedAuthenticationAction.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutDelegatedAuthenticationAction.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CheckoutDelegatedAuthenticationAction */ +/** + * CheckoutDelegatedAuthenticationAction + */ @JsonPropertyOrder({ CheckoutDelegatedAuthenticationAction.JSON_PROPERTY_AUTHORISATION_TOKEN, CheckoutDelegatedAuthenticationAction.JSON_PROPERTY_PAYMENT_DATA, @@ -30,6 +35,7 @@ CheckoutDelegatedAuthenticationAction.JSON_PROPERTY_TYPE, CheckoutDelegatedAuthenticationAction.JSON_PROPERTY_URL }) + public class CheckoutDelegatedAuthenticationAction { public static final String JSON_PROPERTY_AUTHORISATION_TOKEN = "authorisationToken"; private String authorisationToken; @@ -43,8 +49,11 @@ public class CheckoutDelegatedAuthenticationAction { public static final String JSON_PROPERTY_TOKEN = "token"; private String token; - /** **delegatedAuthentication** */ + /** + * **delegatedAuthentication** + */ public enum TypeEnum { + DELEGATEDAUTHENTICATION(String.valueOf("delegatedAuthentication")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +61,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,11 +82,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -88,14 +93,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_URL = "url"; private String url; - public CheckoutDelegatedAuthenticationAction() {} + public CheckoutDelegatedAuthenticationAction() { + } /** * A token needed to authorise a payment. * * @param authorisationToken A token needed to authorise a payment. - * @return the current {@code CheckoutDelegatedAuthenticationAction} instance, allowing for method - * chaining + * @return the current {@code CheckoutDelegatedAuthenticationAction} instance, allowing for method chaining */ public CheckoutDelegatedAuthenticationAction authorisationToken(String authorisationToken) { this.authorisationToken = authorisationToken; @@ -104,7 +109,6 @@ public CheckoutDelegatedAuthenticationAction authorisationToken(String authorisa /** * A token needed to authorise a payment. - * * @return authorisationToken A token needed to authorise a payment. */ @JsonProperty(JSON_PROPERTY_AUTHORISATION_TOKEN) @@ -128,8 +132,7 @@ public void setAuthorisationToken(String authorisationToken) { * Encoded payment data. * * @param paymentData Encoded payment data. - * @return the current {@code CheckoutDelegatedAuthenticationAction} instance, allowing for method - * chaining + * @return the current {@code CheckoutDelegatedAuthenticationAction} instance, allowing for method chaining */ public CheckoutDelegatedAuthenticationAction paymentData(String paymentData) { this.paymentData = paymentData; @@ -138,7 +141,6 @@ public CheckoutDelegatedAuthenticationAction paymentData(String paymentData) { /** * Encoded payment data. - * * @return paymentData Encoded payment data. */ @JsonProperty(JSON_PROPERTY_PAYMENT_DATA) @@ -162,8 +164,7 @@ public void setPaymentData(String paymentData) { * Specifies the payment method. * * @param paymentMethodType Specifies the payment method. - * @return the current {@code CheckoutDelegatedAuthenticationAction} instance, allowing for method - * chaining + * @return the current {@code CheckoutDelegatedAuthenticationAction} instance, allowing for method chaining */ public CheckoutDelegatedAuthenticationAction paymentMethodType(String paymentMethodType) { this.paymentMethodType = paymentMethodType; @@ -172,7 +173,6 @@ public CheckoutDelegatedAuthenticationAction paymentMethodType(String paymentMet /** * Specifies the payment method. - * * @return paymentMethodType Specifies the payment method. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_TYPE) @@ -196,8 +196,7 @@ public void setPaymentMethodType(String paymentMethodType) { * A token to pass to the delegatedAuthentication component. * * @param token A token to pass to the delegatedAuthentication component. - * @return the current {@code CheckoutDelegatedAuthenticationAction} instance, allowing for method - * chaining + * @return the current {@code CheckoutDelegatedAuthenticationAction} instance, allowing for method chaining */ public CheckoutDelegatedAuthenticationAction token(String token) { this.token = token; @@ -206,7 +205,6 @@ public CheckoutDelegatedAuthenticationAction token(String token) { /** * A token to pass to the delegatedAuthentication component. - * * @return token A token to pass to the delegatedAuthentication component. */ @JsonProperty(JSON_PROPERTY_TOKEN) @@ -230,8 +228,7 @@ public void setToken(String token) { * **delegatedAuthentication** * * @param type **delegatedAuthentication** - * @return the current {@code CheckoutDelegatedAuthenticationAction} instance, allowing for method - * chaining + * @return the current {@code CheckoutDelegatedAuthenticationAction} instance, allowing for method chaining */ public CheckoutDelegatedAuthenticationAction type(TypeEnum type) { this.type = type; @@ -240,7 +237,6 @@ public CheckoutDelegatedAuthenticationAction type(TypeEnum type) { /** * **delegatedAuthentication** - * * @return type **delegatedAuthentication** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -264,8 +260,7 @@ public void setType(TypeEnum type) { * Specifies the URL to redirect to. * * @param url Specifies the URL to redirect to. - * @return the current {@code CheckoutDelegatedAuthenticationAction} instance, allowing for method - * chaining + * @return the current {@code CheckoutDelegatedAuthenticationAction} instance, allowing for method chaining */ public CheckoutDelegatedAuthenticationAction url(String url) { this.url = url; @@ -274,7 +269,6 @@ public CheckoutDelegatedAuthenticationAction url(String url) { /** * Specifies the URL to redirect to. - * * @return url Specifies the URL to redirect to. */ @JsonProperty(JSON_PROPERTY_URL) @@ -294,7 +288,9 @@ public void setUrl(String url) { this.url = url; } - /** Return true if this CheckoutDelegatedAuthenticationAction object is equal to o. */ + /** + * Return true if this CheckoutDelegatedAuthenticationAction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -303,16 +299,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CheckoutDelegatedAuthenticationAction checkoutDelegatedAuthenticationAction = - (CheckoutDelegatedAuthenticationAction) o; - return Objects.equals( - this.authorisationToken, checkoutDelegatedAuthenticationAction.authorisationToken) - && Objects.equals(this.paymentData, checkoutDelegatedAuthenticationAction.paymentData) - && Objects.equals( - this.paymentMethodType, checkoutDelegatedAuthenticationAction.paymentMethodType) - && Objects.equals(this.token, checkoutDelegatedAuthenticationAction.token) - && Objects.equals(this.type, checkoutDelegatedAuthenticationAction.type) - && Objects.equals(this.url, checkoutDelegatedAuthenticationAction.url); + CheckoutDelegatedAuthenticationAction checkoutDelegatedAuthenticationAction = (CheckoutDelegatedAuthenticationAction) o; + return Objects.equals(this.authorisationToken, checkoutDelegatedAuthenticationAction.authorisationToken) && + Objects.equals(this.paymentData, checkoutDelegatedAuthenticationAction.paymentData) && + Objects.equals(this.paymentMethodType, checkoutDelegatedAuthenticationAction.paymentMethodType) && + Objects.equals(this.token, checkoutDelegatedAuthenticationAction.token) && + Objects.equals(this.type, checkoutDelegatedAuthenticationAction.type) && + Objects.equals(this.url, checkoutDelegatedAuthenticationAction.url); } @Override @@ -335,7 +328,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -344,24 +338,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CheckoutDelegatedAuthenticationAction given an JSON string * * @param jsonString JSON string * @return An instance of CheckoutDelegatedAuthenticationAction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CheckoutDelegatedAuthenticationAction + * @throws JsonProcessingException if the JSON string is invalid with respect to CheckoutDelegatedAuthenticationAction */ - public static CheckoutDelegatedAuthenticationAction fromJson(String jsonString) - throws JsonProcessingException { + public static CheckoutDelegatedAuthenticationAction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CheckoutDelegatedAuthenticationAction.class); } - - /** - * Convert an instance of CheckoutDelegatedAuthenticationAction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CheckoutDelegatedAuthenticationAction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutNativeRedirectAction.java b/src/main/java/com/adyen/model/checkout/CheckoutNativeRedirectAction.java index 5d4a6b3c1..f8e11bad6 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutNativeRedirectAction.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutNativeRedirectAction.java @@ -2,28 +2,33 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CheckoutNativeRedirectAction */ +/** + * CheckoutNativeRedirectAction + */ @JsonPropertyOrder({ CheckoutNativeRedirectAction.JSON_PROPERTY_DATA, CheckoutNativeRedirectAction.JSON_PROPERTY_METHOD, @@ -32,6 +37,7 @@ CheckoutNativeRedirectAction.JSON_PROPERTY_TYPE, CheckoutNativeRedirectAction.JSON_PROPERTY_URL }) + public class CheckoutNativeRedirectAction { public static final String JSON_PROPERTY_DATA = "data"; private Map data; @@ -45,8 +51,11 @@ public class CheckoutNativeRedirectAction { public static final String JSON_PROPERTY_PAYMENT_METHOD_TYPE = "paymentMethodType"; private String paymentMethodType; - /** **nativeRedirect** */ + /** + * **nativeRedirect** + */ public enum TypeEnum { + NATIVEREDIRECT(String.valueOf("nativeRedirect")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -54,7 +63,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -75,11 +84,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -90,13 +95,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_URL = "url"; private String url; - public CheckoutNativeRedirectAction() {} + public CheckoutNativeRedirectAction() { + } /** * When the redirect URL must be accessed via POST, use this data to post to the redirect URL. * - * @param data When the redirect URL must be accessed via POST, use this data to post to the - * redirect URL. + * @param data When the redirect URL must be accessed via POST, use this data to post to the redirect URL. * @return the current {@code CheckoutNativeRedirectAction} instance, allowing for method chaining */ public CheckoutNativeRedirectAction data(Map data) { @@ -114,9 +119,7 @@ public CheckoutNativeRedirectAction putDataItem(String key, String dataItem) { /** * When the redirect URL must be accessed via POST, use this data to post to the redirect URL. - * - * @return data When the redirect URL must be accessed via POST, use this data to post to the - * redirect URL. + * @return data When the redirect URL must be accessed via POST, use this data to post to the redirect URL. */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,8 +130,7 @@ public Map getData() { /** * When the redirect URL must be accessed via POST, use this data to post to the redirect URL. * - * @param data When the redirect URL must be accessed via POST, use this data to post to the - * redirect URL. + * @param data When the redirect URL must be accessed via POST, use this data to post to the redirect URL. */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -149,7 +151,6 @@ public CheckoutNativeRedirectAction method(String method) { /** * Specifies the HTTP method, for example GET or POST. - * * @return method Specifies the HTTP method, for example GET or POST. */ @JsonProperty(JSON_PROPERTY_METHOD) @@ -170,11 +171,9 @@ public void setMethod(String method) { } /** - * Native SDK's redirect data containing the direct issuer link and state data that must be - * submitted to the /v1/nativeRedirect/redirectResult. + * Native SDK's redirect data containing the direct issuer link and state data that must be submitted to the /v1/nativeRedirect/redirectResult. * - * @param nativeRedirectData Native SDK's redirect data containing the direct issuer link and - * state data that must be submitted to the /v1/nativeRedirect/redirectResult. + * @param nativeRedirectData Native SDK's redirect data containing the direct issuer link and state data that must be submitted to the /v1/nativeRedirect/redirectResult. * @return the current {@code CheckoutNativeRedirectAction} instance, allowing for method chaining */ public CheckoutNativeRedirectAction nativeRedirectData(String nativeRedirectData) { @@ -183,11 +182,8 @@ public CheckoutNativeRedirectAction nativeRedirectData(String nativeRedirectData } /** - * Native SDK's redirect data containing the direct issuer link and state data that must be - * submitted to the /v1/nativeRedirect/redirectResult. - * - * @return nativeRedirectData Native SDK's redirect data containing the direct issuer link and - * state data that must be submitted to the /v1/nativeRedirect/redirectResult. + * Native SDK's redirect data containing the direct issuer link and state data that must be submitted to the /v1/nativeRedirect/redirectResult. + * @return nativeRedirectData Native SDK's redirect data containing the direct issuer link and state data that must be submitted to the /v1/nativeRedirect/redirectResult. */ @JsonProperty(JSON_PROPERTY_NATIVE_REDIRECT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -196,11 +192,9 @@ public String getNativeRedirectData() { } /** - * Native SDK's redirect data containing the direct issuer link and state data that must be - * submitted to the /v1/nativeRedirect/redirectResult. + * Native SDK's redirect data containing the direct issuer link and state data that must be submitted to the /v1/nativeRedirect/redirectResult. * - * @param nativeRedirectData Native SDK's redirect data containing the direct issuer link and - * state data that must be submitted to the /v1/nativeRedirect/redirectResult. + * @param nativeRedirectData Native SDK's redirect data containing the direct issuer link and state data that must be submitted to the /v1/nativeRedirect/redirectResult. */ @JsonProperty(JSON_PROPERTY_NATIVE_REDIRECT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,7 +215,6 @@ public CheckoutNativeRedirectAction paymentMethodType(String paymentMethodType) /** * Specifies the payment method. - * * @return paymentMethodType Specifies the payment method. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_TYPE) @@ -254,7 +247,6 @@ public CheckoutNativeRedirectAction type(TypeEnum type) { /** * **nativeRedirect** - * * @return type **nativeRedirect** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -287,7 +279,6 @@ public CheckoutNativeRedirectAction url(String url) { /** * Specifies the URL to redirect to. - * * @return url Specifies the URL to redirect to. */ @JsonProperty(JSON_PROPERTY_URL) @@ -307,7 +298,9 @@ public void setUrl(String url) { this.url = url; } - /** Return true if this CheckoutNativeRedirectAction object is equal to o. */ + /** + * Return true if this CheckoutNativeRedirectAction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -317,12 +310,12 @@ public boolean equals(Object o) { return false; } CheckoutNativeRedirectAction checkoutNativeRedirectAction = (CheckoutNativeRedirectAction) o; - return Objects.equals(this.data, checkoutNativeRedirectAction.data) - && Objects.equals(this.method, checkoutNativeRedirectAction.method) - && Objects.equals(this.nativeRedirectData, checkoutNativeRedirectAction.nativeRedirectData) - && Objects.equals(this.paymentMethodType, checkoutNativeRedirectAction.paymentMethodType) - && Objects.equals(this.type, checkoutNativeRedirectAction.type) - && Objects.equals(this.url, checkoutNativeRedirectAction.url); + return Objects.equals(this.data, checkoutNativeRedirectAction.data) && + Objects.equals(this.method, checkoutNativeRedirectAction.method) && + Objects.equals(this.nativeRedirectData, checkoutNativeRedirectAction.nativeRedirectData) && + Objects.equals(this.paymentMethodType, checkoutNativeRedirectAction.paymentMethodType) && + Objects.equals(this.type, checkoutNativeRedirectAction.type) && + Objects.equals(this.url, checkoutNativeRedirectAction.url); } @Override @@ -345,7 +338,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -354,24 +348,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CheckoutNativeRedirectAction given an JSON string * * @param jsonString JSON string * @return An instance of CheckoutNativeRedirectAction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CheckoutNativeRedirectAction + * @throws JsonProcessingException if the JSON string is invalid with respect to CheckoutNativeRedirectAction */ - public static CheckoutNativeRedirectAction fromJson(String jsonString) - throws JsonProcessingException { + public static CheckoutNativeRedirectAction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CheckoutNativeRedirectAction.class); } - - /** - * Convert an instance of CheckoutNativeRedirectAction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CheckoutNativeRedirectAction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutOrderResponse.java b/src/main/java/com/adyen/model/checkout/CheckoutOrderResponse.java index 8d75c9cf3..effb015a9 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutOrderResponse.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutOrderResponse.java @@ -2,22 +2,32 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** CheckoutOrderResponse */ + +/** + * CheckoutOrderResponse + */ @JsonPropertyOrder({ CheckoutOrderResponse.JSON_PROPERTY_AMOUNT, CheckoutOrderResponse.JSON_PROPERTY_EXPIRES_AT, @@ -26,6 +36,7 @@ CheckoutOrderResponse.JSON_PROPERTY_REFERENCE, CheckoutOrderResponse.JSON_PROPERTY_REMAINING_AMOUNT }) + public class CheckoutOrderResponse { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -45,12 +56,13 @@ public class CheckoutOrderResponse { public static final String JSON_PROPERTY_REMAINING_AMOUNT = "remainingAmount"; private Amount remainingAmount; - public CheckoutOrderResponse() {} + public CheckoutOrderResponse() { + } /** * amount * - * @param amount + * @param amount * @return the current {@code CheckoutOrderResponse} instance, allowing for method chaining */ public CheckoutOrderResponse amount(Amount amount) { @@ -60,8 +72,7 @@ public CheckoutOrderResponse amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -72,7 +83,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -93,7 +104,6 @@ public CheckoutOrderResponse expiresAt(String expiresAt) { /** * The expiry date for the order. - * * @return expiresAt The expiry date for the order. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @@ -126,7 +136,6 @@ public CheckoutOrderResponse orderData(String orderData) { /** * The encrypted order data. - * * @return orderData The encrypted order data. */ @JsonProperty(JSON_PROPERTY_ORDER_DATA) @@ -159,7 +168,6 @@ public CheckoutOrderResponse pspReference(String pspReference) { /** * The `pspReference` that belongs to the order. - * * @return pspReference The `pspReference` that belongs to the order. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -192,7 +200,6 @@ public CheckoutOrderResponse reference(String reference) { /** * The merchant reference for the order. - * * @return reference The merchant reference for the order. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -215,7 +222,7 @@ public void setReference(String reference) { /** * remainingAmount * - * @param remainingAmount + * @param remainingAmount * @return the current {@code CheckoutOrderResponse} instance, allowing for method chaining */ public CheckoutOrderResponse remainingAmount(Amount remainingAmount) { @@ -225,8 +232,7 @@ public CheckoutOrderResponse remainingAmount(Amount remainingAmount) { /** * Get remainingAmount - * - * @return remainingAmount + * @return remainingAmount */ @JsonProperty(JSON_PROPERTY_REMAINING_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,7 +243,7 @@ public Amount getRemainingAmount() { /** * remainingAmount * - * @param remainingAmount + * @param remainingAmount */ @JsonProperty(JSON_PROPERTY_REMAINING_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -245,7 +251,9 @@ public void setRemainingAmount(Amount remainingAmount) { this.remainingAmount = remainingAmount; } - /** Return true if this CheckoutOrderResponse object is equal to o. */ + /** + * Return true if this CheckoutOrderResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -255,12 +263,12 @@ public boolean equals(Object o) { return false; } CheckoutOrderResponse checkoutOrderResponse = (CheckoutOrderResponse) o; - return Objects.equals(this.amount, checkoutOrderResponse.amount) - && Objects.equals(this.expiresAt, checkoutOrderResponse.expiresAt) - && Objects.equals(this.orderData, checkoutOrderResponse.orderData) - && Objects.equals(this.pspReference, checkoutOrderResponse.pspReference) - && Objects.equals(this.reference, checkoutOrderResponse.reference) - && Objects.equals(this.remainingAmount, checkoutOrderResponse.remainingAmount); + return Objects.equals(this.amount, checkoutOrderResponse.amount) && + Objects.equals(this.expiresAt, checkoutOrderResponse.expiresAt) && + Objects.equals(this.orderData, checkoutOrderResponse.orderData) && + Objects.equals(this.pspReference, checkoutOrderResponse.pspReference) && + Objects.equals(this.reference, checkoutOrderResponse.reference) && + Objects.equals(this.remainingAmount, checkoutOrderResponse.remainingAmount); } @Override @@ -283,7 +291,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -292,23 +301,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CheckoutOrderResponse given an JSON string * * @param jsonString JSON string * @return An instance of CheckoutOrderResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CheckoutOrderResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to CheckoutOrderResponse */ public static CheckoutOrderResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CheckoutOrderResponse.class); } - - /** - * Convert an instance of CheckoutOrderResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CheckoutOrderResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutPaymentMethod.java b/src/main/java/com/adyen/model/checkout/CheckoutPaymentMethod.java index a0d2fe2ae..4cef9f89f 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutPaymentMethod.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutPaymentMethod.java @@ -2,19 +2,96 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.AchDetails; +import com.adyen.model.checkout.AffirmDetails; +import com.adyen.model.checkout.AfterpayDetails; +import com.adyen.model.checkout.AmazonPayDetails; +import com.adyen.model.checkout.AncvDetails; +import com.adyen.model.checkout.AndroidPayDetails; +import com.adyen.model.checkout.ApplePayDetails; +import com.adyen.model.checkout.BacsDirectDebitDetails; +import com.adyen.model.checkout.BillDeskDetails; +import com.adyen.model.checkout.BlikDetails; +import com.adyen.model.checkout.CardDetails; +import com.adyen.model.checkout.CashAppDetails; +import com.adyen.model.checkout.CellulantDetails; +import com.adyen.model.checkout.DokuDetails; +import com.adyen.model.checkout.DragonpayDetails; +import com.adyen.model.checkout.EBankingFinlandDetails; +import com.adyen.model.checkout.EcontextVoucherDetails; +import com.adyen.model.checkout.EftDetails; +import com.adyen.model.checkout.FastlaneDetails; +import com.adyen.model.checkout.GenericIssuerPaymentMethodDetails; +import com.adyen.model.checkout.GooglePayDetails; +import com.adyen.model.checkout.IdealDetails; +import com.adyen.model.checkout.KlarnaDetails; +import com.adyen.model.checkout.MasterpassDetails; +import com.adyen.model.checkout.MbwayDetails; +import com.adyen.model.checkout.MobilePayDetails; +import com.adyen.model.checkout.MolPayDetails; +import com.adyen.model.checkout.OpenInvoiceDetails; +import com.adyen.model.checkout.PayByBankAISDirectDebitDetails; +import com.adyen.model.checkout.PayByBankDetails; +import com.adyen.model.checkout.PayPalDetails; +import com.adyen.model.checkout.PayPayDetails; +import com.adyen.model.checkout.PayToDetails; +import com.adyen.model.checkout.PayUUpiDetails; +import com.adyen.model.checkout.PayWithGoogleDetails; +import com.adyen.model.checkout.PaymentDetails; +import com.adyen.model.checkout.PixDetails; +import com.adyen.model.checkout.PixRecurring; +import com.adyen.model.checkout.PseDetails; +import com.adyen.model.checkout.RakutenPayDetails; +import com.adyen.model.checkout.RatepayDetails; +import com.adyen.model.checkout.RivertyDetails; +import com.adyen.model.checkout.SamsungPayDetails; +import com.adyen.model.checkout.SepaDirectDebitDetails; +import com.adyen.model.checkout.StoredPaymentMethodDetails; +import com.adyen.model.checkout.TwintDetails; +import com.adyen.model.checkout.UpiCollectDetails; +import com.adyen.model.checkout.UpiIntentDetails; +import com.adyen.model.checkout.VippsDetails; +import com.adyen.model.checkout.VisaCheckoutDetails; +import com.adyen.model.checkout.WeChatPayDetails; +import com.adyen.model.checkout.WeChatPayMiniProgramDetails; +import com.adyen.model.checkout.ZipDetails; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + +import com.fasterxml.jackson.core.type.TypeReference; + +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.Response; +import java.io.IOException; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; + import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; +import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -24,2669 +101,2564 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import jakarta.ws.rs.core.GenericType; -import java.io.IOException; -import java.util.*; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashSet; -import java.util.logging.Level; -import java.util.logging.Logger; + @JsonDeserialize(using = CheckoutPaymentMethod.CheckoutPaymentMethodDeserializer.class) @JsonSerialize(using = CheckoutPaymentMethod.CheckoutPaymentMethodSerializer.class) public class CheckoutPaymentMethod extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CheckoutPaymentMethod.class.getName()); + private static final Logger log = Logger.getLogger(CheckoutPaymentMethod.class.getName()); + + public static class CheckoutPaymentMethodSerializer extends StdSerializer { + public CheckoutPaymentMethodSerializer(Class t) { + super(t); + } + + public CheckoutPaymentMethodSerializer() { + this(null); + } + + @Override + public void serialize(CheckoutPaymentMethod value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); + } + } + + public static class CheckoutPaymentMethodDeserializer extends StdDeserializer { + public CheckoutPaymentMethodDeserializer() { + this(CheckoutPaymentMethod.class); + } + + public CheckoutPaymentMethodDeserializer(Class vc) { + super(vc); + } + + @Override + public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize AchDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(AchDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(AchDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'AchDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'AchDetails'", e); + } + + // deserialize AffirmDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(AffirmDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(AffirmDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'AffirmDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'AffirmDetails'", e); + } + + // deserialize AfterpayDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(AfterpayDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(AfterpayDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'AfterpayDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'AfterpayDetails'", e); + } + + // deserialize AmazonPayDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(AmazonPayDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(AmazonPayDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'AmazonPayDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'AmazonPayDetails'", e); + } + + // deserialize AncvDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(AncvDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(AncvDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'AncvDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'AncvDetails'", e); + } + + // deserialize AndroidPayDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(AndroidPayDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(AndroidPayDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'AndroidPayDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'AndroidPayDetails'", e); + } + + // deserialize ApplePayDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(ApplePayDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(ApplePayDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'ApplePayDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'ApplePayDetails'", e); + } + + // deserialize BacsDirectDebitDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(BacsDirectDebitDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(BacsDirectDebitDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'BacsDirectDebitDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'BacsDirectDebitDetails'", e); + } + + // deserialize BillDeskDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(BillDeskDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(BillDeskDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'BillDeskDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'BillDeskDetails'", e); + } + + // deserialize BlikDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(BlikDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(BlikDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'BlikDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'BlikDetails'", e); + } + + // deserialize CardDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(CardDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CardDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CardDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CardDetails'", e); + } + + // deserialize CashAppDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(CashAppDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CashAppDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CashAppDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CashAppDetails'", e); + } + + // deserialize CellulantDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(CellulantDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CellulantDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CellulantDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CellulantDetails'", e); + } + + // deserialize DokuDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(DokuDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(DokuDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'DokuDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'DokuDetails'", e); + } + + // deserialize DragonpayDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(DragonpayDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(DragonpayDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'DragonpayDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'DragonpayDetails'", e); + } + + // deserialize EBankingFinlandDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(EBankingFinlandDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(EBankingFinlandDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'EBankingFinlandDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'EBankingFinlandDetails'", e); + } + + // deserialize EcontextVoucherDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(EcontextVoucherDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(EcontextVoucherDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'EcontextVoucherDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'EcontextVoucherDetails'", e); + } + + // deserialize EftDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(EftDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(EftDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'EftDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'EftDetails'", e); + } + + // deserialize FastlaneDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(FastlaneDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(FastlaneDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'FastlaneDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'FastlaneDetails'", e); + } + + // deserialize GenericIssuerPaymentMethodDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(GenericIssuerPaymentMethodDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(GenericIssuerPaymentMethodDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'GenericIssuerPaymentMethodDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'GenericIssuerPaymentMethodDetails'", e); + } + + // deserialize GooglePayDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(GooglePayDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(GooglePayDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'GooglePayDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'GooglePayDetails'", e); + } + + // deserialize IdealDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(IdealDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(IdealDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'IdealDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'IdealDetails'", e); + } + + // deserialize KlarnaDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(KlarnaDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(KlarnaDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'KlarnaDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'KlarnaDetails'", e); + } + + // deserialize MasterpassDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(MasterpassDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(MasterpassDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'MasterpassDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'MasterpassDetails'", e); + } + + // deserialize MbwayDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(MbwayDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(MbwayDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'MbwayDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'MbwayDetails'", e); + } + + // deserialize MobilePayDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(MobilePayDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(MobilePayDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'MobilePayDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'MobilePayDetails'", e); + } + + // deserialize MolPayDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(MolPayDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(MolPayDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'MolPayDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'MolPayDetails'", e); + } + + // deserialize OpenInvoiceDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(OpenInvoiceDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(OpenInvoiceDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'OpenInvoiceDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'OpenInvoiceDetails'", e); + } + + // deserialize PayByBankAISDirectDebitDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(PayByBankAISDirectDebitDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PayByBankAISDirectDebitDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PayByBankAISDirectDebitDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PayByBankAISDirectDebitDetails'", e); + } + + // deserialize PayByBankDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(PayByBankDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PayByBankDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PayByBankDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PayByBankDetails'", e); + } + + // deserialize PayPalDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(PayPalDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PayPalDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PayPalDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PayPalDetails'", e); + } + + // deserialize PayPayDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(PayPayDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PayPayDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PayPayDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PayPayDetails'", e); + } + + // deserialize PayToDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(PayToDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PayToDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PayToDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PayToDetails'", e); + } + + // deserialize PayUUpiDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(PayUUpiDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PayUUpiDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PayUUpiDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PayUUpiDetails'", e); + } + + // deserialize PayWithGoogleDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(PayWithGoogleDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PayWithGoogleDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PayWithGoogleDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PayWithGoogleDetails'", e); + } + + // deserialize PaymentDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(PaymentDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PaymentDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PaymentDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PaymentDetails'", e); + } + + // deserialize PixDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(PixDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PixDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PixDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PixDetails'", e); + } + + // deserialize PseDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(PseDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PseDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PseDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PseDetails'", e); + } + + // deserialize RakutenPayDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(RakutenPayDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(RakutenPayDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'RakutenPayDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'RakutenPayDetails'", e); + } + + // deserialize RatepayDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(RatepayDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(RatepayDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'RatepayDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'RatepayDetails'", e); + } + + // deserialize RivertyDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(RivertyDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(RivertyDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'RivertyDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'RivertyDetails'", e); + } + + // deserialize SamsungPayDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(SamsungPayDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(SamsungPayDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'SamsungPayDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'SamsungPayDetails'", e); + } + + // deserialize SepaDirectDebitDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(SepaDirectDebitDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(SepaDirectDebitDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'SepaDirectDebitDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'SepaDirectDebitDetails'", e); + } + + // deserialize StoredPaymentMethodDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(StoredPaymentMethodDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(StoredPaymentMethodDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'StoredPaymentMethodDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'StoredPaymentMethodDetails'", e); + } + + // deserialize TwintDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(TwintDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(TwintDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'TwintDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'TwintDetails'", e); + } + + // deserialize UpiCollectDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(UpiCollectDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(UpiCollectDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'UpiCollectDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'UpiCollectDetails'", e); + } + + // deserialize UpiIntentDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(UpiIntentDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(UpiIntentDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'UpiIntentDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'UpiIntentDetails'", e); + } + + // deserialize VippsDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(VippsDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(VippsDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'VippsDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'VippsDetails'", e); + } + + // deserialize VisaCheckoutDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(VisaCheckoutDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(VisaCheckoutDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'VisaCheckoutDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'VisaCheckoutDetails'", e); + } + + // deserialize WeChatPayDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(WeChatPayDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(WeChatPayDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'WeChatPayDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'WeChatPayDetails'", e); + } + + // deserialize WeChatPayMiniProgramDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(WeChatPayMiniProgramDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(WeChatPayMiniProgramDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'WeChatPayMiniProgramDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'WeChatPayMiniProgramDetails'", e); + } + + // deserialize ZipDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(ZipDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(ZipDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'ZipDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'ZipDetails'", e); + } + + if (match == 1) { + CheckoutPaymentMethod ret = new CheckoutPaymentMethod(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException(String.format("Failed deserialization for CheckoutPaymentMethod: %d classes match result, expected 1", match)); + } - public static class CheckoutPaymentMethodSerializer extends StdSerializer { - public CheckoutPaymentMethodSerializer(Class t) { - super(t); + /** + * Handle deserialization of the 'null' value. + */ + @Override + public CheckoutPaymentMethod getNullValue(DeserializationContext ctxt) throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "CheckoutPaymentMethod cannot be null"); + } } - public CheckoutPaymentMethodSerializer() { - this(null); + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public CheckoutPaymentMethod() { + super("oneOf", Boolean.FALSE); } - @Override - public void serialize( - CheckoutPaymentMethod value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + public CheckoutPaymentMethod(AchDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(AffirmDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(AfterpayDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(AmazonPayDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(AncvDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(AndroidPayDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(ApplePayDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(BacsDirectDebitDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } - } - public static class CheckoutPaymentMethodDeserializer - extends StdDeserializer { - public CheckoutPaymentMethodDeserializer() { - this(CheckoutPaymentMethod.class); + public CheckoutPaymentMethod(BillDeskDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } - public CheckoutPaymentMethodDeserializer(Class vc) { - super(vc); + public CheckoutPaymentMethod(BlikDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(CardDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(CashAppDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(CellulantDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(DokuDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(DragonpayDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(EBankingFinlandDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(EcontextVoucherDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(EftDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(FastlaneDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(GenericIssuerPaymentMethodDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(GooglePayDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(IdealDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(KlarnaDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(MasterpassDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(MbwayDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(MobilePayDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(MolPayDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(OpenInvoiceDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(PayByBankAISDirectDebitDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(PayByBankDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(PayPalDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(PayPayDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(PayToDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(PayUUpiDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(PayWithGoogleDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(PaymentDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(PixDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(PseDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(RakutenPayDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(RatepayDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(RivertyDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(SamsungPayDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(SepaDirectDebitDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(StoredPaymentMethodDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(TwintDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(UpiCollectDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(UpiIntentDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(VippsDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(VisaCheckoutDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(WeChatPayDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(WeChatPayMiniProgramDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(ZipDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("AchDetails", new GenericType() { + }); + schemas.put("AffirmDetails", new GenericType() { + }); + schemas.put("AfterpayDetails", new GenericType() { + }); + schemas.put("AmazonPayDetails", new GenericType() { + }); + schemas.put("AncvDetails", new GenericType() { + }); + schemas.put("AndroidPayDetails", new GenericType() { + }); + schemas.put("ApplePayDetails", new GenericType() { + }); + schemas.put("BacsDirectDebitDetails", new GenericType() { + }); + schemas.put("BillDeskDetails", new GenericType() { + }); + schemas.put("BlikDetails", new GenericType() { + }); + schemas.put("CardDetails", new GenericType() { + }); + schemas.put("CashAppDetails", new GenericType() { + }); + schemas.put("CellulantDetails", new GenericType() { + }); + schemas.put("DokuDetails", new GenericType() { + }); + schemas.put("DragonpayDetails", new GenericType() { + }); + schemas.put("EBankingFinlandDetails", new GenericType() { + }); + schemas.put("EcontextVoucherDetails", new GenericType() { + }); + schemas.put("EftDetails", new GenericType() { + }); + schemas.put("FastlaneDetails", new GenericType() { + }); + schemas.put("GenericIssuerPaymentMethodDetails", new GenericType() { + }); + schemas.put("GooglePayDetails", new GenericType() { + }); + schemas.put("IdealDetails", new GenericType() { + }); + schemas.put("KlarnaDetails", new GenericType() { + }); + schemas.put("MasterpassDetails", new GenericType() { + }); + schemas.put("MbwayDetails", new GenericType() { + }); + schemas.put("MobilePayDetails", new GenericType() { + }); + schemas.put("MolPayDetails", new GenericType() { + }); + schemas.put("OpenInvoiceDetails", new GenericType() { + }); + schemas.put("PayByBankAISDirectDebitDetails", new GenericType() { + }); + schemas.put("PayByBankDetails", new GenericType() { + }); + schemas.put("PayPalDetails", new GenericType() { + }); + schemas.put("PayPayDetails", new GenericType() { + }); + schemas.put("PayToDetails", new GenericType() { + }); + schemas.put("PayUUpiDetails", new GenericType() { + }); + schemas.put("PayWithGoogleDetails", new GenericType() { + }); + schemas.put("PaymentDetails", new GenericType() { + }); + schemas.put("PixDetails", new GenericType() { + }); + schemas.put("PseDetails", new GenericType() { + }); + schemas.put("RakutenPayDetails", new GenericType() { + }); + schemas.put("RatepayDetails", new GenericType() { + }); + schemas.put("RivertyDetails", new GenericType() { + }); + schemas.put("SamsungPayDetails", new GenericType() { + }); + schemas.put("SepaDirectDebitDetails", new GenericType() { + }); + schemas.put("StoredPaymentMethodDetails", new GenericType() { + }); + schemas.put("TwintDetails", new GenericType() { + }); + schemas.put("UpiCollectDetails", new GenericType() { + }); + schemas.put("UpiIntentDetails", new GenericType() { + }); + schemas.put("VippsDetails", new GenericType() { + }); + schemas.put("VisaCheckoutDetails", new GenericType() { + }); + schemas.put("WeChatPayDetails", new GenericType() { + }); + schemas.put("WeChatPayMiniProgramDetails", new GenericType() { + }); + schemas.put("ZipDetails", new GenericType() { + }); + JSON.registerDescendants(CheckoutPaymentMethod.class, Collections.unmodifiableMap(schemas)); } @Override - public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize AchDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(AchDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AchDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AchDetails'"); - } + public Map> getSchemas() { + return CheckoutPaymentMethod.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check + * the instance parameter is valid against the oneOf child schemas: + * AchDetails, AffirmDetails, AfterpayDetails, AmazonPayDetails, AncvDetails, AndroidPayDetails, ApplePayDetails, BacsDirectDebitDetails, BillDeskDetails, BlikDetails, CardDetails, CashAppDetails, CellulantDetails, DokuDetails, DragonpayDetails, EBankingFinlandDetails, EcontextVoucherDetails, EftDetails, FastlaneDetails, GenericIssuerPaymentMethodDetails, GooglePayDetails, IdealDetails, KlarnaDetails, MasterpassDetails, MbwayDetails, MobilePayDetails, MolPayDetails, OpenInvoiceDetails, PayByBankAISDirectDebitDetails, PayByBankDetails, PayPalDetails, PayPayDetails, PayToDetails, PayUUpiDetails, PayWithGoogleDetails, PaymentDetails, PixDetails, PseDetails, RakutenPayDetails, RatepayDetails, RivertyDetails, SamsungPayDetails, SepaDirectDebitDetails, StoredPaymentMethodDetails, TwintDetails, UpiCollectDetails, UpiIntentDetails, VippsDetails, VisaCheckoutDetails, WeChatPayDetails, WeChatPayMiniProgramDetails, ZipDetails + * + * It could be an instance of the 'oneOf' schemas. + * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(AchDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AchDetails'", e); - } - - // deserialize AffirmDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(AffirmDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AffirmDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AffirmDetails'"); - } + + if (JSON.isInstanceOf(AffirmDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AffirmDetails'", e); - } - - // deserialize AfterpayDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(AfterpayDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AfterpayDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AfterpayDetails'"); - } + + if (JSON.isInstanceOf(AfterpayDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AfterpayDetails'", e); - } - - // deserialize AmazonPayDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(AmazonPayDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AmazonPayDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AmazonPayDetails'"); - } + + if (JSON.isInstanceOf(AmazonPayDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AmazonPayDetails'", e); - } - - // deserialize AncvDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(AncvDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AncvDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AncvDetails'"); - } + + if (JSON.isInstanceOf(AncvDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AncvDetails'", e); - } - - // deserialize AndroidPayDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(AndroidPayDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AndroidPayDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AndroidPayDetails'"); - } + + if (JSON.isInstanceOf(AndroidPayDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AndroidPayDetails'", e); - } - - // deserialize ApplePayDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(ApplePayDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(ApplePayDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'ApplePayDetails'"); - } + + if (JSON.isInstanceOf(ApplePayDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'ApplePayDetails'", e); - } - - // deserialize BacsDirectDebitDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(BacsDirectDebitDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(BacsDirectDebitDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'BacsDirectDebitDetails'"); - } + + if (JSON.isInstanceOf(BacsDirectDebitDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'BacsDirectDebitDetails'", e); - } - - // deserialize BillDeskDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(BillDeskDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(BillDeskDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'BillDeskDetails'"); - } + + if (JSON.isInstanceOf(BillDeskDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'BillDeskDetails'", e); - } - - // deserialize BlikDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(BlikDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(BlikDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'BlikDetails'"); - } + + if (JSON.isInstanceOf(BlikDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'BlikDetails'", e); - } - - // deserialize CardDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(CardDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CardDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CardDetails'"); - } + + if (JSON.isInstanceOf(CardDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CardDetails'", e); - } - - // deserialize CashAppDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(CashAppDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CashAppDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CashAppDetails'"); - } + + if (JSON.isInstanceOf(CashAppDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CashAppDetails'", e); - } - - // deserialize CellulantDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(CellulantDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CellulantDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CellulantDetails'"); - } + + if (JSON.isInstanceOf(CellulantDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CellulantDetails'", e); - } - - // deserialize DokuDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(DokuDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(DokuDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'DokuDetails'"); - } + + if (JSON.isInstanceOf(DokuDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'DokuDetails'", e); - } - - // deserialize DragonpayDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(DragonpayDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(DragonpayDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'DragonpayDetails'"); - } + + if (JSON.isInstanceOf(DragonpayDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'DragonpayDetails'", e); - } - - // deserialize EBankingFinlandDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(EBankingFinlandDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(EBankingFinlandDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'EBankingFinlandDetails'"); - } + + if (JSON.isInstanceOf(EBankingFinlandDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'EBankingFinlandDetails'", e); - } - - // deserialize EcontextVoucherDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(EcontextVoucherDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(EcontextVoucherDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'EcontextVoucherDetails'"); - } + + if (JSON.isInstanceOf(EcontextVoucherDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'EcontextVoucherDetails'", e); - } - - // deserialize EftDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(EftDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(EftDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'EftDetails'"); - } + + if (JSON.isInstanceOf(EftDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'EftDetails'", e); - } - - // deserialize FastlaneDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(FastlaneDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(FastlaneDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'FastlaneDetails'"); - } + + if (JSON.isInstanceOf(FastlaneDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'FastlaneDetails'", e); - } - - // deserialize GenericIssuerPaymentMethodDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(GenericIssuerPaymentMethodDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(GenericIssuerPaymentMethodDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'GenericIssuerPaymentMethodDetails'"); - } + + if (JSON.isInstanceOf(GenericIssuerPaymentMethodDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, "Input data does not match schema 'GenericIssuerPaymentMethodDetails'", e); - } - - // deserialize GooglePayDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(GooglePayDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(GooglePayDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'GooglePayDetails'"); - } + + if (JSON.isInstanceOf(GooglePayDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'GooglePayDetails'", e); - } - - // deserialize IdealDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(IdealDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(IdealDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'IdealDetails'"); - } + + if (JSON.isInstanceOf(IdealDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'IdealDetails'", e); - } - - // deserialize KlarnaDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(KlarnaDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(KlarnaDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'KlarnaDetails'"); - } + + if (JSON.isInstanceOf(KlarnaDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'KlarnaDetails'", e); - } - - // deserialize MasterpassDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(MasterpassDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(MasterpassDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'MasterpassDetails'"); - } + + if (JSON.isInstanceOf(MasterpassDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'MasterpassDetails'", e); - } - - // deserialize MbwayDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(MbwayDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(MbwayDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'MbwayDetails'"); - } + + if (JSON.isInstanceOf(MbwayDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'MbwayDetails'", e); - } - - // deserialize MobilePayDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(MobilePayDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(MobilePayDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'MobilePayDetails'"); - } + + if (JSON.isInstanceOf(MobilePayDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'MobilePayDetails'", e); - } - - // deserialize MolPayDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(MolPayDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(MolPayDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'MolPayDetails'"); - } + + if (JSON.isInstanceOf(MolPayDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'MolPayDetails'", e); - } - - // deserialize OpenInvoiceDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(OpenInvoiceDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(OpenInvoiceDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'OpenInvoiceDetails'"); - } + + if (JSON.isInstanceOf(OpenInvoiceDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'OpenInvoiceDetails'", e); - } - - // deserialize PayByBankAISDirectDebitDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(PayByBankAISDirectDebitDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(PayByBankAISDirectDebitDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PayByBankAISDirectDebitDetails'"); - } + + if (JSON.isInstanceOf(PayByBankAISDirectDebitDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, "Input data does not match schema 'PayByBankAISDirectDebitDetails'", e); - } - - // deserialize PayByBankDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(PayByBankDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PayByBankDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PayByBankDetails'"); - } + + if (JSON.isInstanceOf(PayByBankDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PayByBankDetails'", e); - } - - // deserialize PayPalDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(PayPalDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PayPalDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PayPalDetails'"); - } + + if (JSON.isInstanceOf(PayPalDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PayPalDetails'", e); - } - - // deserialize PayPayDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(PayPayDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PayPayDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PayPayDetails'"); - } + + if (JSON.isInstanceOf(PayPayDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PayPayDetails'", e); - } - - // deserialize PayToDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(PayToDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PayToDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PayToDetails'"); - } + + if (JSON.isInstanceOf(PayToDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PayToDetails'", e); - } - - // deserialize PayUUpiDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(PayUUpiDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PayUUpiDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PayUUpiDetails'"); - } + + if (JSON.isInstanceOf(PayUUpiDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PayUUpiDetails'", e); - } - - // deserialize PayWithGoogleDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(PayWithGoogleDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PayWithGoogleDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PayWithGoogleDetails'"); - } + + if (JSON.isInstanceOf(PayWithGoogleDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PayWithGoogleDetails'", e); - } - - // deserialize PaymentDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(PaymentDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PaymentDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PaymentDetails'"); - } + + if (JSON.isInstanceOf(PaymentDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PaymentDetails'", e); - } - - // deserialize PixDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(PixDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PixDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PixDetails'"); - } + + if (JSON.isInstanceOf(PixDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PixDetails'", e); - } - - // deserialize PseDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(PseDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PseDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PseDetails'"); - } + + if (JSON.isInstanceOf(PseDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PseDetails'", e); - } - - // deserialize RakutenPayDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(RakutenPayDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(RakutenPayDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'RakutenPayDetails'"); - } + + if (JSON.isInstanceOf(RakutenPayDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'RakutenPayDetails'", e); - } - - // deserialize RatepayDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(RatepayDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(RatepayDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'RatepayDetails'"); - } + + if (JSON.isInstanceOf(RatepayDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'RatepayDetails'", e); - } - - // deserialize RivertyDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(RivertyDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(RivertyDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'RivertyDetails'"); - } + + if (JSON.isInstanceOf(RivertyDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'RivertyDetails'", e); - } - - // deserialize SamsungPayDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(SamsungPayDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(SamsungPayDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SamsungPayDetails'"); - } + + if (JSON.isInstanceOf(SamsungPayDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'SamsungPayDetails'", e); - } - - // deserialize SepaDirectDebitDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(SepaDirectDebitDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(SepaDirectDebitDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SepaDirectDebitDetails'"); - } + + if (JSON.isInstanceOf(SepaDirectDebitDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'SepaDirectDebitDetails'", e); - } - - // deserialize StoredPaymentMethodDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(StoredPaymentMethodDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(StoredPaymentMethodDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'StoredPaymentMethodDetails'"); - } + + if (JSON.isInstanceOf(StoredPaymentMethodDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'StoredPaymentMethodDetails'", e); - } - - // deserialize TwintDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(TwintDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(TwintDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'TwintDetails'"); - } + + if (JSON.isInstanceOf(TwintDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'TwintDetails'", e); - } - - // deserialize UpiCollectDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(UpiCollectDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(UpiCollectDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'UpiCollectDetails'"); - } + + if (JSON.isInstanceOf(UpiCollectDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'UpiCollectDetails'", e); - } - - // deserialize UpiIntentDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(UpiIntentDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(UpiIntentDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'UpiIntentDetails'"); - } + + if (JSON.isInstanceOf(UpiIntentDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'UpiIntentDetails'", e); - } - - // deserialize VippsDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(VippsDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(VippsDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'VippsDetails'"); - } + + if (JSON.isInstanceOf(VippsDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'VippsDetails'", e); - } - - // deserialize VisaCheckoutDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(VisaCheckoutDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(VisaCheckoutDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'VisaCheckoutDetails'"); - } + + if (JSON.isInstanceOf(VisaCheckoutDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'VisaCheckoutDetails'", e); - } - - // deserialize WeChatPayDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(WeChatPayDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(WeChatPayDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'WeChatPayDetails'"); - } + + if (JSON.isInstanceOf(WeChatPayDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'WeChatPayDetails'", e); - } - - // deserialize WeChatPayMiniProgramDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(WeChatPayMiniProgramDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(WeChatPayMiniProgramDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'WeChatPayMiniProgramDetails'"); - } + + if (JSON.isInstanceOf(WeChatPayMiniProgramDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'WeChatPayMiniProgramDetails'", e); - } - - // deserialize ZipDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(ZipDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(ZipDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'ZipDetails'"); - } + + if (JSON.isInstanceOf(ZipDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'ZipDetails'", e); - } - - if (match == 1) { - CheckoutPaymentMethod ret = new CheckoutPaymentMethod(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for CheckoutPaymentMethod: %d classes match result, expected 1", - match)); - } - - /** Handle deserialization of the 'null' value. */ + + throw new RuntimeException("Invalid instance type. Must be AchDetails, AffirmDetails, AfterpayDetails, AmazonPayDetails, AncvDetails, AndroidPayDetails, ApplePayDetails, BacsDirectDebitDetails, BillDeskDetails, BlikDetails, CardDetails, CashAppDetails, CellulantDetails, DokuDetails, DragonpayDetails, EBankingFinlandDetails, EcontextVoucherDetails, EftDetails, FastlaneDetails, GenericIssuerPaymentMethodDetails, GooglePayDetails, IdealDetails, KlarnaDetails, MasterpassDetails, MbwayDetails, MobilePayDetails, MolPayDetails, OpenInvoiceDetails, PayByBankAISDirectDebitDetails, PayByBankDetails, PayPalDetails, PayPayDetails, PayToDetails, PayUUpiDetails, PayWithGoogleDetails, PaymentDetails, PixDetails, PseDetails, RakutenPayDetails, RatepayDetails, RivertyDetails, SamsungPayDetails, SepaDirectDebitDetails, StoredPaymentMethodDetails, TwintDetails, UpiCollectDetails, UpiIntentDetails, VippsDetails, VisaCheckoutDetails, WeChatPayDetails, WeChatPayMiniProgramDetails, ZipDetails"); + } + + /** + * Get the actual instance, which can be the following: + * AchDetails, AffirmDetails, AfterpayDetails, AmazonPayDetails, AncvDetails, AndroidPayDetails, ApplePayDetails, BacsDirectDebitDetails, BillDeskDetails, BlikDetails, CardDetails, CashAppDetails, CellulantDetails, DokuDetails, DragonpayDetails, EBankingFinlandDetails, EcontextVoucherDetails, EftDetails, FastlaneDetails, GenericIssuerPaymentMethodDetails, GooglePayDetails, IdealDetails, KlarnaDetails, MasterpassDetails, MbwayDetails, MobilePayDetails, MolPayDetails, OpenInvoiceDetails, PayByBankAISDirectDebitDetails, PayByBankDetails, PayPalDetails, PayPayDetails, PayToDetails, PayUUpiDetails, PayWithGoogleDetails, PaymentDetails, PixDetails, PseDetails, RakutenPayDetails, RatepayDetails, RivertyDetails, SamsungPayDetails, SepaDirectDebitDetails, StoredPaymentMethodDetails, TwintDetails, UpiCollectDetails, UpiIntentDetails, VippsDetails, VisaCheckoutDetails, WeChatPayDetails, WeChatPayMiniProgramDetails, ZipDetails + * + * @return The actual instance (AchDetails, AffirmDetails, AfterpayDetails, AmazonPayDetails, AncvDetails, AndroidPayDetails, ApplePayDetails, BacsDirectDebitDetails, BillDeskDetails, BlikDetails, CardDetails, CashAppDetails, CellulantDetails, DokuDetails, DragonpayDetails, EBankingFinlandDetails, EcontextVoucherDetails, EftDetails, FastlaneDetails, GenericIssuerPaymentMethodDetails, GooglePayDetails, IdealDetails, KlarnaDetails, MasterpassDetails, MbwayDetails, MobilePayDetails, MolPayDetails, OpenInvoiceDetails, PayByBankAISDirectDebitDetails, PayByBankDetails, PayPalDetails, PayPayDetails, PayToDetails, PayUUpiDetails, PayWithGoogleDetails, PaymentDetails, PixDetails, PseDetails, RakutenPayDetails, RatepayDetails, RivertyDetails, SamsungPayDetails, SepaDirectDebitDetails, StoredPaymentMethodDetails, TwintDetails, UpiCollectDetails, UpiIntentDetails, VippsDetails, VisaCheckoutDetails, WeChatPayDetails, WeChatPayMiniProgramDetails, ZipDetails) + */ @Override - public CheckoutPaymentMethod getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "CheckoutPaymentMethod cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public CheckoutPaymentMethod() { - super("oneOf", Boolean.FALSE); - } - - public CheckoutPaymentMethod(AchDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(AffirmDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(AfterpayDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(AmazonPayDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(AncvDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(AndroidPayDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(ApplePayDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(BacsDirectDebitDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(BillDeskDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(BlikDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(CardDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(CashAppDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(CellulantDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(DokuDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(DragonpayDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(EBankingFinlandDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(EcontextVoucherDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(EftDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(FastlaneDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(GenericIssuerPaymentMethodDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(GooglePayDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(IdealDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(KlarnaDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(MasterpassDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(MbwayDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(MobilePayDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(MolPayDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(OpenInvoiceDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(PayByBankAISDirectDebitDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(PayByBankDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(PayPalDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(PayPayDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(PayToDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(PayUUpiDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(PayWithGoogleDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(PaymentDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(PixDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(PseDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(RakutenPayDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(RatepayDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(RivertyDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(SamsungPayDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(SepaDirectDebitDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(StoredPaymentMethodDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(TwintDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(UpiCollectDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(UpiIntentDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(VippsDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(VisaCheckoutDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(WeChatPayDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(WeChatPayMiniProgramDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(ZipDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("AchDetails", new GenericType() {}); - schemas.put("AffirmDetails", new GenericType() {}); - schemas.put("AfterpayDetails", new GenericType() {}); - schemas.put("AmazonPayDetails", new GenericType() {}); - schemas.put("AncvDetails", new GenericType() {}); - schemas.put("AndroidPayDetails", new GenericType() {}); - schemas.put("ApplePayDetails", new GenericType() {}); - schemas.put("BacsDirectDebitDetails", new GenericType() {}); - schemas.put("BillDeskDetails", new GenericType() {}); - schemas.put("BlikDetails", new GenericType() {}); - schemas.put("CardDetails", new GenericType() {}); - schemas.put("CashAppDetails", new GenericType() {}); - schemas.put("CellulantDetails", new GenericType() {}); - schemas.put("DokuDetails", new GenericType() {}); - schemas.put("DragonpayDetails", new GenericType() {}); - schemas.put("EBankingFinlandDetails", new GenericType() {}); - schemas.put("EcontextVoucherDetails", new GenericType() {}); - schemas.put("EftDetails", new GenericType() {}); - schemas.put("FastlaneDetails", new GenericType() {}); - schemas.put( - "GenericIssuerPaymentMethodDetails", - new GenericType() {}); - schemas.put("GooglePayDetails", new GenericType() {}); - schemas.put("IdealDetails", new GenericType() {}); - schemas.put("KlarnaDetails", new GenericType() {}); - schemas.put("MasterpassDetails", new GenericType() {}); - schemas.put("MbwayDetails", new GenericType() {}); - schemas.put("MobilePayDetails", new GenericType() {}); - schemas.put("MolPayDetails", new GenericType() {}); - schemas.put("OpenInvoiceDetails", new GenericType() {}); - schemas.put( - "PayByBankAISDirectDebitDetails", new GenericType() {}); - schemas.put("PayByBankDetails", new GenericType() {}); - schemas.put("PayPalDetails", new GenericType() {}); - schemas.put("PayPayDetails", new GenericType() {}); - schemas.put("PayToDetails", new GenericType() {}); - schemas.put("PayUUpiDetails", new GenericType() {}); - schemas.put("PayWithGoogleDetails", new GenericType() {}); - schemas.put("PaymentDetails", new GenericType() {}); - schemas.put("PixDetails", new GenericType() {}); - schemas.put("PseDetails", new GenericType() {}); - schemas.put("RakutenPayDetails", new GenericType() {}); - schemas.put("RatepayDetails", new GenericType() {}); - schemas.put("RivertyDetails", new GenericType() {}); - schemas.put("SamsungPayDetails", new GenericType() {}); - schemas.put("SepaDirectDebitDetails", new GenericType() {}); - schemas.put("StoredPaymentMethodDetails", new GenericType() {}); - schemas.put("TwintDetails", new GenericType() {}); - schemas.put("UpiCollectDetails", new GenericType() {}); - schemas.put("UpiIntentDetails", new GenericType() {}); - schemas.put("VippsDetails", new GenericType() {}); - schemas.put("VisaCheckoutDetails", new GenericType() {}); - schemas.put("WeChatPayDetails", new GenericType() {}); - schemas.put("WeChatPayMiniProgramDetails", new GenericType() {}); - schemas.put("ZipDetails", new GenericType() {}); - JSON.registerDescendants(CheckoutPaymentMethod.class, Collections.unmodifiableMap(schemas)); - } - - @Override - public Map> getSchemas() { - return CheckoutPaymentMethod.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: AchDetails, AffirmDetails, AfterpayDetails, AmazonPayDetails, - * AncvDetails, AndroidPayDetails, ApplePayDetails, BacsDirectDebitDetails, BillDeskDetails, - * BlikDetails, CardDetails, CashAppDetails, CellulantDetails, DokuDetails, DragonpayDetails, - * EBankingFinlandDetails, EcontextVoucherDetails, EftDetails, FastlaneDetails, - * GenericIssuerPaymentMethodDetails, GooglePayDetails, IdealDetails, KlarnaDetails, - * MasterpassDetails, MbwayDetails, MobilePayDetails, MolPayDetails, OpenInvoiceDetails, - * PayByBankAISDirectDebitDetails, PayByBankDetails, PayPalDetails, PayPayDetails, PayToDetails, - * PayUUpiDetails, PayWithGoogleDetails, PaymentDetails, PixDetails, PseDetails, - * RakutenPayDetails, RatepayDetails, RivertyDetails, SamsungPayDetails, SepaDirectDebitDetails, - * StoredPaymentMethodDetails, TwintDetails, UpiCollectDetails, UpiIntentDetails, VippsDetails, - * VisaCheckoutDetails, WeChatPayDetails, WeChatPayMiniProgramDetails, ZipDetails - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a - * composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(AchDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(AffirmDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(AfterpayDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(AmazonPayDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `AchDetails`. If the actual instance is not `AchDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `AchDetails` + * @throws ClassCastException if the instance is not `AchDetails` + */ + public AchDetails getAchDetails() throws ClassCastException { + return (AchDetails)super.getActualInstance(); + } - if (JSON.isInstanceOf(AncvDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `AffirmDetails`. If the actual instance is not `AffirmDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `AffirmDetails` + * @throws ClassCastException if the instance is not `AffirmDetails` + */ + public AffirmDetails getAffirmDetails() throws ClassCastException { + return (AffirmDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(AndroidPayDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `AfterpayDetails`. If the actual instance is not `AfterpayDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `AfterpayDetails` + * @throws ClassCastException if the instance is not `AfterpayDetails` + */ + public AfterpayDetails getAfterpayDetails() throws ClassCastException { + return (AfterpayDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(ApplePayDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `AmazonPayDetails`. If the actual instance is not `AmazonPayDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `AmazonPayDetails` + * @throws ClassCastException if the instance is not `AmazonPayDetails` + */ + public AmazonPayDetails getAmazonPayDetails() throws ClassCastException { + return (AmazonPayDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(BacsDirectDebitDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `AncvDetails`. If the actual instance is not `AncvDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `AncvDetails` + * @throws ClassCastException if the instance is not `AncvDetails` + */ + public AncvDetails getAncvDetails() throws ClassCastException { + return (AncvDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(BillDeskDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `AndroidPayDetails`. If the actual instance is not `AndroidPayDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `AndroidPayDetails` + * @throws ClassCastException if the instance is not `AndroidPayDetails` + */ + public AndroidPayDetails getAndroidPayDetails() throws ClassCastException { + return (AndroidPayDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(BlikDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `ApplePayDetails`. If the actual instance is not `ApplePayDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `ApplePayDetails` + * @throws ClassCastException if the instance is not `ApplePayDetails` + */ + public ApplePayDetails getApplePayDetails() throws ClassCastException { + return (ApplePayDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(CardDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `BacsDirectDebitDetails`. If the actual instance is not `BacsDirectDebitDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `BacsDirectDebitDetails` + * @throws ClassCastException if the instance is not `BacsDirectDebitDetails` + */ + public BacsDirectDebitDetails getBacsDirectDebitDetails() throws ClassCastException { + return (BacsDirectDebitDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(CashAppDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `BillDeskDetails`. If the actual instance is not `BillDeskDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `BillDeskDetails` + * @throws ClassCastException if the instance is not `BillDeskDetails` + */ + public BillDeskDetails getBillDeskDetails() throws ClassCastException { + return (BillDeskDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(CellulantDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `BlikDetails`. If the actual instance is not `BlikDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `BlikDetails` + * @throws ClassCastException if the instance is not `BlikDetails` + */ + public BlikDetails getBlikDetails() throws ClassCastException { + return (BlikDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(DokuDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `CardDetails`. If the actual instance is not `CardDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CardDetails` + * @throws ClassCastException if the instance is not `CardDetails` + */ + public CardDetails getCardDetails() throws ClassCastException { + return (CardDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(DragonpayDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `CashAppDetails`. If the actual instance is not `CashAppDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CashAppDetails` + * @throws ClassCastException if the instance is not `CashAppDetails` + */ + public CashAppDetails getCashAppDetails() throws ClassCastException { + return (CashAppDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(EBankingFinlandDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `CellulantDetails`. If the actual instance is not `CellulantDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CellulantDetails` + * @throws ClassCastException if the instance is not `CellulantDetails` + */ + public CellulantDetails getCellulantDetails() throws ClassCastException { + return (CellulantDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(EcontextVoucherDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `DokuDetails`. If the actual instance is not `DokuDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `DokuDetails` + * @throws ClassCastException if the instance is not `DokuDetails` + */ + public DokuDetails getDokuDetails() throws ClassCastException { + return (DokuDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(EftDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `DragonpayDetails`. If the actual instance is not `DragonpayDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `DragonpayDetails` + * @throws ClassCastException if the instance is not `DragonpayDetails` + */ + public DragonpayDetails getDragonpayDetails() throws ClassCastException { + return (DragonpayDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(FastlaneDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `EBankingFinlandDetails`. If the actual instance is not `EBankingFinlandDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `EBankingFinlandDetails` + * @throws ClassCastException if the instance is not `EBankingFinlandDetails` + */ + public EBankingFinlandDetails getEBankingFinlandDetails() throws ClassCastException { + return (EBankingFinlandDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(GenericIssuerPaymentMethodDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `EcontextVoucherDetails`. If the actual instance is not `EcontextVoucherDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `EcontextVoucherDetails` + * @throws ClassCastException if the instance is not `EcontextVoucherDetails` + */ + public EcontextVoucherDetails getEcontextVoucherDetails() throws ClassCastException { + return (EcontextVoucherDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(GooglePayDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `EftDetails`. If the actual instance is not `EftDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `EftDetails` + * @throws ClassCastException if the instance is not `EftDetails` + */ + public EftDetails getEftDetails() throws ClassCastException { + return (EftDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(IdealDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `FastlaneDetails`. If the actual instance is not `FastlaneDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `FastlaneDetails` + * @throws ClassCastException if the instance is not `FastlaneDetails` + */ + public FastlaneDetails getFastlaneDetails() throws ClassCastException { + return (FastlaneDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(KlarnaDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `GenericIssuerPaymentMethodDetails`. If the actual instance is not `GenericIssuerPaymentMethodDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `GenericIssuerPaymentMethodDetails` + * @throws ClassCastException if the instance is not `GenericIssuerPaymentMethodDetails` + */ + public GenericIssuerPaymentMethodDetails getGenericIssuerPaymentMethodDetails() throws ClassCastException { + return (GenericIssuerPaymentMethodDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(MasterpassDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `GooglePayDetails`. If the actual instance is not `GooglePayDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `GooglePayDetails` + * @throws ClassCastException if the instance is not `GooglePayDetails` + */ + public GooglePayDetails getGooglePayDetails() throws ClassCastException { + return (GooglePayDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(MbwayDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `IdealDetails`. If the actual instance is not `IdealDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `IdealDetails` + * @throws ClassCastException if the instance is not `IdealDetails` + */ + public IdealDetails getIdealDetails() throws ClassCastException { + return (IdealDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(MobilePayDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `KlarnaDetails`. If the actual instance is not `KlarnaDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `KlarnaDetails` + * @throws ClassCastException if the instance is not `KlarnaDetails` + */ + public KlarnaDetails getKlarnaDetails() throws ClassCastException { + return (KlarnaDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(MolPayDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `MasterpassDetails`. If the actual instance is not `MasterpassDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `MasterpassDetails` + * @throws ClassCastException if the instance is not `MasterpassDetails` + */ + public MasterpassDetails getMasterpassDetails() throws ClassCastException { + return (MasterpassDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(OpenInvoiceDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `MbwayDetails`. If the actual instance is not `MbwayDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `MbwayDetails` + * @throws ClassCastException if the instance is not `MbwayDetails` + */ + public MbwayDetails getMbwayDetails() throws ClassCastException { + return (MbwayDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(PayByBankAISDirectDebitDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `MobilePayDetails`. If the actual instance is not `MobilePayDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `MobilePayDetails` + * @throws ClassCastException if the instance is not `MobilePayDetails` + */ + public MobilePayDetails getMobilePayDetails() throws ClassCastException { + return (MobilePayDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(PayByBankDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `MolPayDetails`. If the actual instance is not `MolPayDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `MolPayDetails` + * @throws ClassCastException if the instance is not `MolPayDetails` + */ + public MolPayDetails getMolPayDetails() throws ClassCastException { + return (MolPayDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(PayPalDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `OpenInvoiceDetails`. If the actual instance is not `OpenInvoiceDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `OpenInvoiceDetails` + * @throws ClassCastException if the instance is not `OpenInvoiceDetails` + */ + public OpenInvoiceDetails getOpenInvoiceDetails() throws ClassCastException { + return (OpenInvoiceDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(PayPayDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `PayByBankAISDirectDebitDetails`. If the actual instance is not `PayByBankAISDirectDebitDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `PayByBankAISDirectDebitDetails` + * @throws ClassCastException if the instance is not `PayByBankAISDirectDebitDetails` + */ + public PayByBankAISDirectDebitDetails getPayByBankAISDirectDebitDetails() throws ClassCastException { + return (PayByBankAISDirectDebitDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(PayToDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `PayByBankDetails`. If the actual instance is not `PayByBankDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `PayByBankDetails` + * @throws ClassCastException if the instance is not `PayByBankDetails` + */ + public PayByBankDetails getPayByBankDetails() throws ClassCastException { + return (PayByBankDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(PayUUpiDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `PayPalDetails`. If the actual instance is not `PayPalDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `PayPalDetails` + * @throws ClassCastException if the instance is not `PayPalDetails` + */ + public PayPalDetails getPayPalDetails() throws ClassCastException { + return (PayPalDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(PayWithGoogleDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `PayPayDetails`. If the actual instance is not `PayPayDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `PayPayDetails` + * @throws ClassCastException if the instance is not `PayPayDetails` + */ + public PayPayDetails getPayPayDetails() throws ClassCastException { + return (PayPayDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(PaymentDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `PayToDetails`. If the actual instance is not `PayToDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `PayToDetails` + * @throws ClassCastException if the instance is not `PayToDetails` + */ + public PayToDetails getPayToDetails() throws ClassCastException { + return (PayToDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(PixDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `PayUUpiDetails`. If the actual instance is not `PayUUpiDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `PayUUpiDetails` + * @throws ClassCastException if the instance is not `PayUUpiDetails` + */ + public PayUUpiDetails getPayUUpiDetails() throws ClassCastException { + return (PayUUpiDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(PseDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `PayWithGoogleDetails`. If the actual instance is not `PayWithGoogleDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `PayWithGoogleDetails` + * @throws ClassCastException if the instance is not `PayWithGoogleDetails` + */ + public PayWithGoogleDetails getPayWithGoogleDetails() throws ClassCastException { + return (PayWithGoogleDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(RakutenPayDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `PaymentDetails`. If the actual instance is not `PaymentDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `PaymentDetails` + * @throws ClassCastException if the instance is not `PaymentDetails` + */ + public PaymentDetails getPaymentDetails() throws ClassCastException { + return (PaymentDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(RatepayDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `PixDetails`. If the actual instance is not `PixDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `PixDetails` + * @throws ClassCastException if the instance is not `PixDetails` + */ + public PixDetails getPixDetails() throws ClassCastException { + return (PixDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(RivertyDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `PseDetails`. If the actual instance is not `PseDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `PseDetails` + * @throws ClassCastException if the instance is not `PseDetails` + */ + public PseDetails getPseDetails() throws ClassCastException { + return (PseDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(SamsungPayDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `RakutenPayDetails`. If the actual instance is not `RakutenPayDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `RakutenPayDetails` + * @throws ClassCastException if the instance is not `RakutenPayDetails` + */ + public RakutenPayDetails getRakutenPayDetails() throws ClassCastException { + return (RakutenPayDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(SepaDirectDebitDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `RatepayDetails`. If the actual instance is not `RatepayDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `RatepayDetails` + * @throws ClassCastException if the instance is not `RatepayDetails` + */ + public RatepayDetails getRatepayDetails() throws ClassCastException { + return (RatepayDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(StoredPaymentMethodDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `RivertyDetails`. If the actual instance is not `RivertyDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `RivertyDetails` + * @throws ClassCastException if the instance is not `RivertyDetails` + */ + public RivertyDetails getRivertyDetails() throws ClassCastException { + return (RivertyDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(TwintDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `SamsungPayDetails`. If the actual instance is not `SamsungPayDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `SamsungPayDetails` + * @throws ClassCastException if the instance is not `SamsungPayDetails` + */ + public SamsungPayDetails getSamsungPayDetails() throws ClassCastException { + return (SamsungPayDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(UpiCollectDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `SepaDirectDebitDetails`. If the actual instance is not `SepaDirectDebitDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `SepaDirectDebitDetails` + * @throws ClassCastException if the instance is not `SepaDirectDebitDetails` + */ + public SepaDirectDebitDetails getSepaDirectDebitDetails() throws ClassCastException { + return (SepaDirectDebitDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(UpiIntentDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `StoredPaymentMethodDetails`. If the actual instance is not `StoredPaymentMethodDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `StoredPaymentMethodDetails` + * @throws ClassCastException if the instance is not `StoredPaymentMethodDetails` + */ + public StoredPaymentMethodDetails getStoredPaymentMethodDetails() throws ClassCastException { + return (StoredPaymentMethodDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(VippsDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `TwintDetails`. If the actual instance is not `TwintDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `TwintDetails` + * @throws ClassCastException if the instance is not `TwintDetails` + */ + public TwintDetails getTwintDetails() throws ClassCastException { + return (TwintDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(VisaCheckoutDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `UpiCollectDetails`. If the actual instance is not `UpiCollectDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `UpiCollectDetails` + * @throws ClassCastException if the instance is not `UpiCollectDetails` + */ + public UpiCollectDetails getUpiCollectDetails() throws ClassCastException { + return (UpiCollectDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(WeChatPayDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `UpiIntentDetails`. If the actual instance is not `UpiIntentDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `UpiIntentDetails` + * @throws ClassCastException if the instance is not `UpiIntentDetails` + */ + public UpiIntentDetails getUpiIntentDetails() throws ClassCastException { + return (UpiIntentDetails)super.getActualInstance(); + } + + /** + * Get the actual instance of `VippsDetails`. If the actual instance is not `VippsDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `VippsDetails` + * @throws ClassCastException if the instance is not `VippsDetails` + */ + public VippsDetails getVippsDetails() throws ClassCastException { + return (VippsDetails)super.getActualInstance(); + } + + /** + * Get the actual instance of `VisaCheckoutDetails`. If the actual instance is not `VisaCheckoutDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `VisaCheckoutDetails` + * @throws ClassCastException if the instance is not `VisaCheckoutDetails` + */ + public VisaCheckoutDetails getVisaCheckoutDetails() throws ClassCastException { + return (VisaCheckoutDetails)super.getActualInstance(); + } + + /** + * Get the actual instance of `WeChatPayDetails`. If the actual instance is not `WeChatPayDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `WeChatPayDetails` + * @throws ClassCastException if the instance is not `WeChatPayDetails` + */ + public WeChatPayDetails getWeChatPayDetails() throws ClassCastException { + return (WeChatPayDetails)super.getActualInstance(); + } + + /** + * Get the actual instance of `WeChatPayMiniProgramDetails`. If the actual instance is not `WeChatPayMiniProgramDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `WeChatPayMiniProgramDetails` + * @throws ClassCastException if the instance is not `WeChatPayMiniProgramDetails` + */ + public WeChatPayMiniProgramDetails getWeChatPayMiniProgramDetails() throws ClassCastException { + return (WeChatPayMiniProgramDetails)super.getActualInstance(); + } + + /** + * Get the actual instance of `ZipDetails`. If the actual instance is not `ZipDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `ZipDetails` + * @throws ClassCastException if the instance is not `ZipDetails` + */ + public ZipDetails getZipDetails() throws ClassCastException { + return (ZipDetails)super.getActualInstance(); + } + + + /** + * Create an instance of CheckoutPaymentMethod given an JSON string + * + * @param jsonString JSON string + * @return An instance of CheckoutPaymentMethod + * @throws IOException if the JSON string is invalid with respect to CheckoutPaymentMethod + */ + public static CheckoutPaymentMethod fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, CheckoutPaymentMethod.class); } - if (JSON.isInstanceOf(WeChatPayMiniProgramDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Convert an instance of CheckoutPaymentMethod to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); } - if (JSON.isInstanceOf(ZipDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException( - "Invalid instance type. Must be AchDetails, AffirmDetails, AfterpayDetails, AmazonPayDetails, AncvDetails, AndroidPayDetails, ApplePayDetails, BacsDirectDebitDetails, BillDeskDetails, BlikDetails, CardDetails, CashAppDetails, CellulantDetails, DokuDetails, DragonpayDetails, EBankingFinlandDetails, EcontextVoucherDetails, EftDetails, FastlaneDetails, GenericIssuerPaymentMethodDetails, GooglePayDetails, IdealDetails, KlarnaDetails, MasterpassDetails, MbwayDetails, MobilePayDetails, MolPayDetails, OpenInvoiceDetails, PayByBankAISDirectDebitDetails, PayByBankDetails, PayPalDetails, PayPayDetails, PayToDetails, PayUUpiDetails, PayWithGoogleDetails, PaymentDetails, PixDetails, PseDetails, RakutenPayDetails, RatepayDetails, RivertyDetails, SamsungPayDetails, SepaDirectDebitDetails, StoredPaymentMethodDetails, TwintDetails, UpiCollectDetails, UpiIntentDetails, VippsDetails, VisaCheckoutDetails, WeChatPayDetails, WeChatPayMiniProgramDetails, ZipDetails"); - } - - /** - * Get the actual instance, which can be the following: AchDetails, AffirmDetails, - * AfterpayDetails, AmazonPayDetails, AncvDetails, AndroidPayDetails, ApplePayDetails, - * BacsDirectDebitDetails, BillDeskDetails, BlikDetails, CardDetails, CashAppDetails, - * CellulantDetails, DokuDetails, DragonpayDetails, EBankingFinlandDetails, - * EcontextVoucherDetails, EftDetails, FastlaneDetails, GenericIssuerPaymentMethodDetails, - * GooglePayDetails, IdealDetails, KlarnaDetails, MasterpassDetails, MbwayDetails, - * MobilePayDetails, MolPayDetails, OpenInvoiceDetails, PayByBankAISDirectDebitDetails, - * PayByBankDetails, PayPalDetails, PayPayDetails, PayToDetails, PayUUpiDetails, - * PayWithGoogleDetails, PaymentDetails, PixDetails, PseDetails, RakutenPayDetails, - * RatepayDetails, RivertyDetails, SamsungPayDetails, SepaDirectDebitDetails, - * StoredPaymentMethodDetails, TwintDetails, UpiCollectDetails, UpiIntentDetails, VippsDetails, - * VisaCheckoutDetails, WeChatPayDetails, WeChatPayMiniProgramDetails, ZipDetails - * - * @return The actual instance (AchDetails, AffirmDetails, AfterpayDetails, AmazonPayDetails, - * AncvDetails, AndroidPayDetails, ApplePayDetails, BacsDirectDebitDetails, BillDeskDetails, - * BlikDetails, CardDetails, CashAppDetails, CellulantDetails, DokuDetails, DragonpayDetails, - * EBankingFinlandDetails, EcontextVoucherDetails, EftDetails, FastlaneDetails, - * GenericIssuerPaymentMethodDetails, GooglePayDetails, IdealDetails, KlarnaDetails, - * MasterpassDetails, MbwayDetails, MobilePayDetails, MolPayDetails, OpenInvoiceDetails, - * PayByBankAISDirectDebitDetails, PayByBankDetails, PayPalDetails, PayPayDetails, - * PayToDetails, PayUUpiDetails, PayWithGoogleDetails, PaymentDetails, PixDetails, PseDetails, - * RakutenPayDetails, RatepayDetails, RivertyDetails, SamsungPayDetails, - * SepaDirectDebitDetails, StoredPaymentMethodDetails, TwintDetails, UpiCollectDetails, - * UpiIntentDetails, VippsDetails, VisaCheckoutDetails, WeChatPayDetails, - * WeChatPayMiniProgramDetails, ZipDetails) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `AchDetails`. If the actual instance is not `AchDetails`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `AchDetails` - * @throws ClassCastException if the instance is not `AchDetails` - */ - public AchDetails getAchDetails() throws ClassCastException { - return (AchDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `AffirmDetails`. If the actual instance is not `AffirmDetails`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `AffirmDetails` - * @throws ClassCastException if the instance is not `AffirmDetails` - */ - public AffirmDetails getAffirmDetails() throws ClassCastException { - return (AffirmDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `AfterpayDetails`. If the actual instance is not `AfterpayDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `AfterpayDetails` - * @throws ClassCastException if the instance is not `AfterpayDetails` - */ - public AfterpayDetails getAfterpayDetails() throws ClassCastException { - return (AfterpayDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `AmazonPayDetails`. If the actual instance is not - * `AmazonPayDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `AmazonPayDetails` - * @throws ClassCastException if the instance is not `AmazonPayDetails` - */ - public AmazonPayDetails getAmazonPayDetails() throws ClassCastException { - return (AmazonPayDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `AncvDetails`. If the actual instance is not `AncvDetails`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `AncvDetails` - * @throws ClassCastException if the instance is not `AncvDetails` - */ - public AncvDetails getAncvDetails() throws ClassCastException { - return (AncvDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `AndroidPayDetails`. If the actual instance is not - * `AndroidPayDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `AndroidPayDetails` - * @throws ClassCastException if the instance is not `AndroidPayDetails` - */ - public AndroidPayDetails getAndroidPayDetails() throws ClassCastException { - return (AndroidPayDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `ApplePayDetails`. If the actual instance is not `ApplePayDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `ApplePayDetails` - * @throws ClassCastException if the instance is not `ApplePayDetails` - */ - public ApplePayDetails getApplePayDetails() throws ClassCastException { - return (ApplePayDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `BacsDirectDebitDetails`. If the actual instance is not - * `BacsDirectDebitDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `BacsDirectDebitDetails` - * @throws ClassCastException if the instance is not `BacsDirectDebitDetails` - */ - public BacsDirectDebitDetails getBacsDirectDebitDetails() throws ClassCastException { - return (BacsDirectDebitDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `BillDeskDetails`. If the actual instance is not `BillDeskDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `BillDeskDetails` - * @throws ClassCastException if the instance is not `BillDeskDetails` - */ - public BillDeskDetails getBillDeskDetails() throws ClassCastException { - return (BillDeskDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `BlikDetails`. If the actual instance is not `BlikDetails`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `BlikDetails` - * @throws ClassCastException if the instance is not `BlikDetails` - */ - public BlikDetails getBlikDetails() throws ClassCastException { - return (BlikDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `CardDetails`. If the actual instance is not `CardDetails`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `CardDetails` - * @throws ClassCastException if the instance is not `CardDetails` - */ - public CardDetails getCardDetails() throws ClassCastException { - return (CardDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `CashAppDetails`. If the actual instance is not `CashAppDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CashAppDetails` - * @throws ClassCastException if the instance is not `CashAppDetails` - */ - public CashAppDetails getCashAppDetails() throws ClassCastException { - return (CashAppDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `CellulantDetails`. If the actual instance is not - * `CellulantDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `CellulantDetails` - * @throws ClassCastException if the instance is not `CellulantDetails` - */ - public CellulantDetails getCellulantDetails() throws ClassCastException { - return (CellulantDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `DokuDetails`. If the actual instance is not `DokuDetails`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `DokuDetails` - * @throws ClassCastException if the instance is not `DokuDetails` - */ - public DokuDetails getDokuDetails() throws ClassCastException { - return (DokuDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `DragonpayDetails`. If the actual instance is not - * `DragonpayDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `DragonpayDetails` - * @throws ClassCastException if the instance is not `DragonpayDetails` - */ - public DragonpayDetails getDragonpayDetails() throws ClassCastException { - return (DragonpayDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `EBankingFinlandDetails`. If the actual instance is not - * `EBankingFinlandDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `EBankingFinlandDetails` - * @throws ClassCastException if the instance is not `EBankingFinlandDetails` - */ - public EBankingFinlandDetails getEBankingFinlandDetails() throws ClassCastException { - return (EBankingFinlandDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `EcontextVoucherDetails`. If the actual instance is not - * `EcontextVoucherDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `EcontextVoucherDetails` - * @throws ClassCastException if the instance is not `EcontextVoucherDetails` - */ - public EcontextVoucherDetails getEcontextVoucherDetails() throws ClassCastException { - return (EcontextVoucherDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `EftDetails`. If the actual instance is not `EftDetails`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `EftDetails` - * @throws ClassCastException if the instance is not `EftDetails` - */ - public EftDetails getEftDetails() throws ClassCastException { - return (EftDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `FastlaneDetails`. If the actual instance is not `FastlaneDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `FastlaneDetails` - * @throws ClassCastException if the instance is not `FastlaneDetails` - */ - public FastlaneDetails getFastlaneDetails() throws ClassCastException { - return (FastlaneDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `GenericIssuerPaymentMethodDetails`. If the actual instance is not - * `GenericIssuerPaymentMethodDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `GenericIssuerPaymentMethodDetails` - * @throws ClassCastException if the instance is not `GenericIssuerPaymentMethodDetails` - */ - public GenericIssuerPaymentMethodDetails getGenericIssuerPaymentMethodDetails() - throws ClassCastException { - return (GenericIssuerPaymentMethodDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `GooglePayDetails`. If the actual instance is not - * `GooglePayDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `GooglePayDetails` - * @throws ClassCastException if the instance is not `GooglePayDetails` - */ - public GooglePayDetails getGooglePayDetails() throws ClassCastException { - return (GooglePayDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `IdealDetails`. If the actual instance is not `IdealDetails`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `IdealDetails` - * @throws ClassCastException if the instance is not `IdealDetails` - */ - public IdealDetails getIdealDetails() throws ClassCastException { - return (IdealDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `KlarnaDetails`. If the actual instance is not `KlarnaDetails`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `KlarnaDetails` - * @throws ClassCastException if the instance is not `KlarnaDetails` - */ - public KlarnaDetails getKlarnaDetails() throws ClassCastException { - return (KlarnaDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `MasterpassDetails`. If the actual instance is not - * `MasterpassDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `MasterpassDetails` - * @throws ClassCastException if the instance is not `MasterpassDetails` - */ - public MasterpassDetails getMasterpassDetails() throws ClassCastException { - return (MasterpassDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `MbwayDetails`. If the actual instance is not `MbwayDetails`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `MbwayDetails` - * @throws ClassCastException if the instance is not `MbwayDetails` - */ - public MbwayDetails getMbwayDetails() throws ClassCastException { - return (MbwayDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `MobilePayDetails`. If the actual instance is not - * `MobilePayDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `MobilePayDetails` - * @throws ClassCastException if the instance is not `MobilePayDetails` - */ - public MobilePayDetails getMobilePayDetails() throws ClassCastException { - return (MobilePayDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `MolPayDetails`. If the actual instance is not `MolPayDetails`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `MolPayDetails` - * @throws ClassCastException if the instance is not `MolPayDetails` - */ - public MolPayDetails getMolPayDetails() throws ClassCastException { - return (MolPayDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `OpenInvoiceDetails`. If the actual instance is not - * `OpenInvoiceDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `OpenInvoiceDetails` - * @throws ClassCastException if the instance is not `OpenInvoiceDetails` - */ - public OpenInvoiceDetails getOpenInvoiceDetails() throws ClassCastException { - return (OpenInvoiceDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `PayByBankAISDirectDebitDetails`. If the actual instance is not - * `PayByBankAISDirectDebitDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `PayByBankAISDirectDebitDetails` - * @throws ClassCastException if the instance is not `PayByBankAISDirectDebitDetails` - */ - public PayByBankAISDirectDebitDetails getPayByBankAISDirectDebitDetails() - throws ClassCastException { - return (PayByBankAISDirectDebitDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `PayByBankDetails`. If the actual instance is not - * `PayByBankDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `PayByBankDetails` - * @throws ClassCastException if the instance is not `PayByBankDetails` - */ - public PayByBankDetails getPayByBankDetails() throws ClassCastException { - return (PayByBankDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `PayPalDetails`. If the actual instance is not `PayPalDetails`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `PayPalDetails` - * @throws ClassCastException if the instance is not `PayPalDetails` - */ - public PayPalDetails getPayPalDetails() throws ClassCastException { - return (PayPalDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `PayPayDetails`. If the actual instance is not `PayPayDetails`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `PayPayDetails` - * @throws ClassCastException if the instance is not `PayPayDetails` - */ - public PayPayDetails getPayPayDetails() throws ClassCastException { - return (PayPayDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `PayToDetails`. If the actual instance is not `PayToDetails`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `PayToDetails` - * @throws ClassCastException if the instance is not `PayToDetails` - */ - public PayToDetails getPayToDetails() throws ClassCastException { - return (PayToDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `PayUUpiDetails`. If the actual instance is not `PayUUpiDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PayUUpiDetails` - * @throws ClassCastException if the instance is not `PayUUpiDetails` - */ - public PayUUpiDetails getPayUUpiDetails() throws ClassCastException { - return (PayUUpiDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `PayWithGoogleDetails`. If the actual instance is not - * `PayWithGoogleDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `PayWithGoogleDetails` - * @throws ClassCastException if the instance is not `PayWithGoogleDetails` - */ - public PayWithGoogleDetails getPayWithGoogleDetails() throws ClassCastException { - return (PayWithGoogleDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `PaymentDetails`. If the actual instance is not `PaymentDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PaymentDetails` - * @throws ClassCastException if the instance is not `PaymentDetails` - */ - public PaymentDetails getPaymentDetails() throws ClassCastException { - return (PaymentDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `PixDetails`. If the actual instance is not `PixDetails`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `PixDetails` - * @throws ClassCastException if the instance is not `PixDetails` - */ - public PixDetails getPixDetails() throws ClassCastException { - return (PixDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `PseDetails`. If the actual instance is not `PseDetails`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `PseDetails` - * @throws ClassCastException if the instance is not `PseDetails` - */ - public PseDetails getPseDetails() throws ClassCastException { - return (PseDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `RakutenPayDetails`. If the actual instance is not - * `RakutenPayDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `RakutenPayDetails` - * @throws ClassCastException if the instance is not `RakutenPayDetails` - */ - public RakutenPayDetails getRakutenPayDetails() throws ClassCastException { - return (RakutenPayDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `RatepayDetails`. If the actual instance is not `RatepayDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `RatepayDetails` - * @throws ClassCastException if the instance is not `RatepayDetails` - */ - public RatepayDetails getRatepayDetails() throws ClassCastException { - return (RatepayDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `RivertyDetails`. If the actual instance is not `RivertyDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `RivertyDetails` - * @throws ClassCastException if the instance is not `RivertyDetails` - */ - public RivertyDetails getRivertyDetails() throws ClassCastException { - return (RivertyDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `SamsungPayDetails`. If the actual instance is not - * `SamsungPayDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `SamsungPayDetails` - * @throws ClassCastException if the instance is not `SamsungPayDetails` - */ - public SamsungPayDetails getSamsungPayDetails() throws ClassCastException { - return (SamsungPayDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `SepaDirectDebitDetails`. If the actual instance is not - * `SepaDirectDebitDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `SepaDirectDebitDetails` - * @throws ClassCastException if the instance is not `SepaDirectDebitDetails` - */ - public SepaDirectDebitDetails getSepaDirectDebitDetails() throws ClassCastException { - return (SepaDirectDebitDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `StoredPaymentMethodDetails`. If the actual instance is not - * `StoredPaymentMethodDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `StoredPaymentMethodDetails` - * @throws ClassCastException if the instance is not `StoredPaymentMethodDetails` - */ - public StoredPaymentMethodDetails getStoredPaymentMethodDetails() throws ClassCastException { - return (StoredPaymentMethodDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `TwintDetails`. If the actual instance is not `TwintDetails`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `TwintDetails` - * @throws ClassCastException if the instance is not `TwintDetails` - */ - public TwintDetails getTwintDetails() throws ClassCastException { - return (TwintDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `UpiCollectDetails`. If the actual instance is not - * `UpiCollectDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `UpiCollectDetails` - * @throws ClassCastException if the instance is not `UpiCollectDetails` - */ - public UpiCollectDetails getUpiCollectDetails() throws ClassCastException { - return (UpiCollectDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `UpiIntentDetails`. If the actual instance is not - * `UpiIntentDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `UpiIntentDetails` - * @throws ClassCastException if the instance is not `UpiIntentDetails` - */ - public UpiIntentDetails getUpiIntentDetails() throws ClassCastException { - return (UpiIntentDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `VippsDetails`. If the actual instance is not `VippsDetails`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `VippsDetails` - * @throws ClassCastException if the instance is not `VippsDetails` - */ - public VippsDetails getVippsDetails() throws ClassCastException { - return (VippsDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `VisaCheckoutDetails`. If the actual instance is not - * `VisaCheckoutDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `VisaCheckoutDetails` - * @throws ClassCastException if the instance is not `VisaCheckoutDetails` - */ - public VisaCheckoutDetails getVisaCheckoutDetails() throws ClassCastException { - return (VisaCheckoutDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `WeChatPayDetails`. If the actual instance is not - * `WeChatPayDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `WeChatPayDetails` - * @throws ClassCastException if the instance is not `WeChatPayDetails` - */ - public WeChatPayDetails getWeChatPayDetails() throws ClassCastException { - return (WeChatPayDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `WeChatPayMiniProgramDetails`. If the actual instance is not - * `WeChatPayMiniProgramDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `WeChatPayMiniProgramDetails` - * @throws ClassCastException if the instance is not `WeChatPayMiniProgramDetails` - */ - public WeChatPayMiniProgramDetails getWeChatPayMiniProgramDetails() throws ClassCastException { - return (WeChatPayMiniProgramDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `ZipDetails`. If the actual instance is not `ZipDetails`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `ZipDetails` - * @throws ClassCastException if the instance is not `ZipDetails` - */ - public ZipDetails getZipDetails() throws ClassCastException { - return (ZipDetails) super.getActualInstance(); - } - - /** - * Create an instance of CheckoutPaymentMethod given an JSON string - * - * @param jsonString JSON string - * @return An instance of CheckoutPaymentMethod - * @throws IOException if the JSON string is invalid with respect to CheckoutPaymentMethod - */ - public static CheckoutPaymentMethod fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, CheckoutPaymentMethod.class); - } - - /** - * Convert an instance of CheckoutPaymentMethod to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); - } } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutQrCodeAction.java b/src/main/java/com/adyen/model/checkout/CheckoutQrCodeAction.java index fe798f762..3a92c11bc 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutQrCodeAction.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutQrCodeAction.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CheckoutQrCodeAction */ +/** + * CheckoutQrCodeAction + */ @JsonPropertyOrder({ CheckoutQrCodeAction.JSON_PROPERTY_EXPIRES_AT, CheckoutQrCodeAction.JSON_PROPERTY_PAYMENT_DATA, @@ -30,6 +35,7 @@ CheckoutQrCodeAction.JSON_PROPERTY_TYPE, CheckoutQrCodeAction.JSON_PROPERTY_URL }) + public class CheckoutQrCodeAction { public static final String JSON_PROPERTY_EXPIRES_AT = "expiresAt"; private String expiresAt; @@ -43,8 +49,11 @@ public class CheckoutQrCodeAction { public static final String JSON_PROPERTY_QR_CODE_DATA = "qrCodeData"; private String qrCodeData; - /** **qrCode** */ + /** + * **qrCode** + */ public enum TypeEnum { + QRCODE(String.valueOf("qrCode")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +61,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,11 +82,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -88,7 +93,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_URL = "url"; private String url; - public CheckoutQrCodeAction() {} + public CheckoutQrCodeAction() { + } /** * Expiry time of the QR code. @@ -103,7 +109,6 @@ public CheckoutQrCodeAction expiresAt(String expiresAt) { /** * Expiry time of the QR code. - * * @return expiresAt Expiry time of the QR code. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @@ -136,7 +141,6 @@ public CheckoutQrCodeAction paymentData(String paymentData) { /** * Encoded payment data. - * * @return paymentData Encoded payment data. */ @JsonProperty(JSON_PROPERTY_PAYMENT_DATA) @@ -169,7 +173,6 @@ public CheckoutQrCodeAction paymentMethodType(String paymentMethodType) { /** * Specifies the payment method. - * * @return paymentMethodType Specifies the payment method. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_TYPE) @@ -202,7 +205,6 @@ public CheckoutQrCodeAction qrCodeData(String qrCodeData) { /** * The contents of the QR code as a UTF8 string. - * * @return qrCodeData The contents of the QR code as a UTF8 string. */ @JsonProperty(JSON_PROPERTY_QR_CODE_DATA) @@ -235,7 +237,6 @@ public CheckoutQrCodeAction type(TypeEnum type) { /** * **qrCode** - * * @return type **qrCode** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -268,7 +269,6 @@ public CheckoutQrCodeAction url(String url) { /** * Specifies the URL to redirect to. - * * @return url Specifies the URL to redirect to. */ @JsonProperty(JSON_PROPERTY_URL) @@ -288,7 +288,9 @@ public void setUrl(String url) { this.url = url; } - /** Return true if this CheckoutQrCodeAction object is equal to o. */ + /** + * Return true if this CheckoutQrCodeAction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -298,12 +300,12 @@ public boolean equals(Object o) { return false; } CheckoutQrCodeAction checkoutQrCodeAction = (CheckoutQrCodeAction) o; - return Objects.equals(this.expiresAt, checkoutQrCodeAction.expiresAt) - && Objects.equals(this.paymentData, checkoutQrCodeAction.paymentData) - && Objects.equals(this.paymentMethodType, checkoutQrCodeAction.paymentMethodType) - && Objects.equals(this.qrCodeData, checkoutQrCodeAction.qrCodeData) - && Objects.equals(this.type, checkoutQrCodeAction.type) - && Objects.equals(this.url, checkoutQrCodeAction.url); + return Objects.equals(this.expiresAt, checkoutQrCodeAction.expiresAt) && + Objects.equals(this.paymentData, checkoutQrCodeAction.paymentData) && + Objects.equals(this.paymentMethodType, checkoutQrCodeAction.paymentMethodType) && + Objects.equals(this.qrCodeData, checkoutQrCodeAction.qrCodeData) && + Objects.equals(this.type, checkoutQrCodeAction.type) && + Objects.equals(this.url, checkoutQrCodeAction.url); } @Override @@ -326,7 +328,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -335,23 +338,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CheckoutQrCodeAction given an JSON string * * @param jsonString JSON string * @return An instance of CheckoutQrCodeAction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CheckoutQrCodeAction + * @throws JsonProcessingException if the JSON string is invalid with respect to CheckoutQrCodeAction */ public static CheckoutQrCodeAction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CheckoutQrCodeAction.class); } - - /** - * Convert an instance of CheckoutQrCodeAction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CheckoutQrCodeAction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutRedirectAction.java b/src/main/java/com/adyen/model/checkout/CheckoutRedirectAction.java index 20acd4339..7c40a7ff4 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutRedirectAction.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutRedirectAction.java @@ -2,28 +2,33 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** CheckoutRedirectAction */ + +/** + * CheckoutRedirectAction + */ @JsonPropertyOrder({ CheckoutRedirectAction.JSON_PROPERTY_DATA, CheckoutRedirectAction.JSON_PROPERTY_METHOD, @@ -31,6 +36,7 @@ CheckoutRedirectAction.JSON_PROPERTY_TYPE, CheckoutRedirectAction.JSON_PROPERTY_URL }) + public class CheckoutRedirectAction { public static final String JSON_PROPERTY_DATA = "data"; private Map data; @@ -41,8 +47,11 @@ public class CheckoutRedirectAction { public static final String JSON_PROPERTY_PAYMENT_METHOD_TYPE = "paymentMethodType"; private String paymentMethodType; - /** **redirect** */ + /** + * **redirect** + */ public enum TypeEnum { + REDIRECT(String.valueOf("redirect")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -50,7 +59,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -71,11 +80,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -86,13 +91,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_URL = "url"; private String url; - public CheckoutRedirectAction() {} + public CheckoutRedirectAction() { + } /** * When the redirect URL must be accessed via POST, use this data to post to the redirect URL. * - * @param data When the redirect URL must be accessed via POST, use this data to post to the - * redirect URL. + * @param data When the redirect URL must be accessed via POST, use this data to post to the redirect URL. * @return the current {@code CheckoutRedirectAction} instance, allowing for method chaining */ public CheckoutRedirectAction data(Map data) { @@ -110,9 +115,7 @@ public CheckoutRedirectAction putDataItem(String key, String dataItem) { /** * When the redirect URL must be accessed via POST, use this data to post to the redirect URL. - * - * @return data When the redirect URL must be accessed via POST, use this data to post to the - * redirect URL. + * @return data When the redirect URL must be accessed via POST, use this data to post to the redirect URL. */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,8 +126,7 @@ public Map getData() { /** * When the redirect URL must be accessed via POST, use this data to post to the redirect URL. * - * @param data When the redirect URL must be accessed via POST, use this data to post to the - * redirect URL. + * @param data When the redirect URL must be accessed via POST, use this data to post to the redirect URL. */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,7 +147,6 @@ public CheckoutRedirectAction method(String method) { /** * Specifies the HTTP method, for example GET or POST. - * * @return method Specifies the HTTP method, for example GET or POST. */ @JsonProperty(JSON_PROPERTY_METHOD) @@ -178,7 +179,6 @@ public CheckoutRedirectAction paymentMethodType(String paymentMethodType) { /** * Specifies the payment method. - * * @return paymentMethodType Specifies the payment method. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_TYPE) @@ -211,7 +211,6 @@ public CheckoutRedirectAction type(TypeEnum type) { /** * **redirect** - * * @return type **redirect** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -244,7 +243,6 @@ public CheckoutRedirectAction url(String url) { /** * Specifies the URL to redirect to. - * * @return url Specifies the URL to redirect to. */ @JsonProperty(JSON_PROPERTY_URL) @@ -264,7 +262,9 @@ public void setUrl(String url) { this.url = url; } - /** Return true if this CheckoutRedirectAction object is equal to o. */ + /** + * Return true if this CheckoutRedirectAction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -274,11 +274,11 @@ public boolean equals(Object o) { return false; } CheckoutRedirectAction checkoutRedirectAction = (CheckoutRedirectAction) o; - return Objects.equals(this.data, checkoutRedirectAction.data) - && Objects.equals(this.method, checkoutRedirectAction.method) - && Objects.equals(this.paymentMethodType, checkoutRedirectAction.paymentMethodType) - && Objects.equals(this.type, checkoutRedirectAction.type) - && Objects.equals(this.url, checkoutRedirectAction.url); + return Objects.equals(this.data, checkoutRedirectAction.data) && + Objects.equals(this.method, checkoutRedirectAction.method) && + Objects.equals(this.paymentMethodType, checkoutRedirectAction.paymentMethodType) && + Objects.equals(this.type, checkoutRedirectAction.type) && + Objects.equals(this.url, checkoutRedirectAction.url); } @Override @@ -300,7 +300,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -309,23 +310,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CheckoutRedirectAction given an JSON string * * @param jsonString JSON string * @return An instance of CheckoutRedirectAction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CheckoutRedirectAction + * @throws JsonProcessingException if the JSON string is invalid with respect to CheckoutRedirectAction */ public static CheckoutRedirectAction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CheckoutRedirectAction.class); } - - /** - * Convert an instance of CheckoutRedirectAction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CheckoutRedirectAction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutSDKAction.java b/src/main/java/com/adyen/model/checkout/CheckoutSDKAction.java index 77dd438e3..43b782732 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutSDKAction.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutSDKAction.java @@ -2,28 +2,33 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** CheckoutSDKAction */ + +/** + * CheckoutSDKAction + */ @JsonPropertyOrder({ CheckoutSDKAction.JSON_PROPERTY_PAYMENT_DATA, CheckoutSDKAction.JSON_PROPERTY_PAYMENT_METHOD_TYPE, @@ -31,6 +36,7 @@ CheckoutSDKAction.JSON_PROPERTY_TYPE, CheckoutSDKAction.JSON_PROPERTY_URL }) + public class CheckoutSDKAction { public static final String JSON_PROPERTY_PAYMENT_DATA = "paymentData"; private String paymentData; @@ -41,8 +47,11 @@ public class CheckoutSDKAction { public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; private Map sdkData; - /** The type of the action. */ + /** + * The type of the action. + */ public enum TypeEnum { + SDK(String.valueOf("sdk")), WECHATPAYSDK(String.valueOf("wechatpaySDK")); @@ -52,7 +61,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,11 +82,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -88,7 +93,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_URL = "url"; private String url; - public CheckoutSDKAction() {} + public CheckoutSDKAction() { + } /** * Encoded payment data. @@ -103,7 +109,6 @@ public CheckoutSDKAction paymentData(String paymentData) { /** * Encoded payment data. - * * @return paymentData Encoded payment data. */ @JsonProperty(JSON_PROPERTY_PAYMENT_DATA) @@ -136,7 +141,6 @@ public CheckoutSDKAction paymentMethodType(String paymentMethodType) { /** * Specifies the payment method. - * * @return paymentMethodType Specifies the payment method. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_TYPE) @@ -177,7 +181,6 @@ public CheckoutSDKAction putSdkDataItem(String key, String sdkDataItem) { /** * The data to pass to the SDK. - * * @return sdkData The data to pass to the SDK. */ @JsonProperty(JSON_PROPERTY_SDK_DATA) @@ -210,7 +213,6 @@ public CheckoutSDKAction type(TypeEnum type) { /** * The type of the action. - * * @return type The type of the action. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -243,7 +245,6 @@ public CheckoutSDKAction url(String url) { /** * Specifies the URL to redirect to. - * * @return url Specifies the URL to redirect to. */ @JsonProperty(JSON_PROPERTY_URL) @@ -263,7 +264,9 @@ public void setUrl(String url) { this.url = url; } - /** Return true if this CheckoutSDKAction object is equal to o. */ + /** + * Return true if this CheckoutSDKAction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -273,11 +276,11 @@ public boolean equals(Object o) { return false; } CheckoutSDKAction checkoutSDKAction = (CheckoutSDKAction) o; - return Objects.equals(this.paymentData, checkoutSDKAction.paymentData) - && Objects.equals(this.paymentMethodType, checkoutSDKAction.paymentMethodType) - && Objects.equals(this.sdkData, checkoutSDKAction.sdkData) - && Objects.equals(this.type, checkoutSDKAction.type) - && Objects.equals(this.url, checkoutSDKAction.url); + return Objects.equals(this.paymentData, checkoutSDKAction.paymentData) && + Objects.equals(this.paymentMethodType, checkoutSDKAction.paymentMethodType) && + Objects.equals(this.sdkData, checkoutSDKAction.sdkData) && + Objects.equals(this.type, checkoutSDKAction.type) && + Objects.equals(this.url, checkoutSDKAction.url); } @Override @@ -299,7 +302,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -308,7 +312,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CheckoutSDKAction given an JSON string * * @param jsonString JSON string @@ -318,12 +322,11 @@ private String toIndentedString(Object o) { public static CheckoutSDKAction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CheckoutSDKAction.class); } - - /** - * Convert an instance of CheckoutSDKAction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CheckoutSDKAction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutSessionInstallmentOption.java b/src/main/java/com/adyen/model/checkout/CheckoutSessionInstallmentOption.java index 7dba3c069..602a7f6e9 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutSessionInstallmentOption.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutSessionInstallmentOption.java @@ -2,36 +2,45 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** CheckoutSessionInstallmentOption */ + +/** + * CheckoutSessionInstallmentOption + */ @JsonPropertyOrder({ CheckoutSessionInstallmentOption.JSON_PROPERTY_PLANS, CheckoutSessionInstallmentOption.JSON_PROPERTY_PRESELECTED_VALUE, CheckoutSessionInstallmentOption.JSON_PROPERTY_VALUES }) + public class CheckoutSessionInstallmentOption { - /** Gets or Sets plans */ + /** + * Gets or Sets plans + */ public enum PlansEnum { + BONUS(String.valueOf("bonus")), BUYNOW_PAYLATER(String.valueOf("buynow_paylater")), @@ -57,7 +66,7 @@ public enum PlansEnum { private String value; PlansEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -78,11 +87,7 @@ public static PlansEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PlansEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PlansEnum.values())); + LOG.warning("PlansEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PlansEnum.values())); return null; } } @@ -96,20 +101,14 @@ public static PlansEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUES = "values"; private List values; - public CheckoutSessionInstallmentOption() {} + public CheckoutSessionInstallmentOption() { + } /** - * Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * - * **regular** * **revolving*** **bonus** * **with_interest** * **buynow_paylater** * - * **nointerest_bonus** * **interest_bonus** * **refund_prctg** * **nointeres_refund_prctg** * - * **interes_refund_prctg** + * Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving*** **bonus** * **with_interest** * **buynow_paylater** * **nointerest_bonus** * **interest_bonus** * **refund_prctg** * **nointeres_refund_prctg** * **interes_refund_prctg** * - * @param plans Defines the type of installment plan. If not set, defaults to **regular**. - * Possible values: * **regular** * **revolving*** **bonus** * **with_interest** * - * **buynow_paylater** * **nointerest_bonus** * **interest_bonus** * **refund_prctg** * - * **nointeres_refund_prctg** * **interes_refund_prctg** - * @return the current {@code CheckoutSessionInstallmentOption} instance, allowing for method - * chaining + * @param plans Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving*** **bonus** * **with_interest** * **buynow_paylater** * **nointerest_bonus** * **interest_bonus** * **refund_prctg** * **nointeres_refund_prctg** * **interes_refund_prctg** + * @return the current {@code CheckoutSessionInstallmentOption} instance, allowing for method chaining */ public CheckoutSessionInstallmentOption plans(List plans) { this.plans = plans; @@ -125,15 +124,8 @@ public CheckoutSessionInstallmentOption addPlansItem(PlansEnum plansItem) { } /** - * Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * - * **regular** * **revolving*** **bonus** * **with_interest** * **buynow_paylater** * - * **nointerest_bonus** * **interest_bonus** * **refund_prctg** * **nointeres_refund_prctg** * - * **interes_refund_prctg** - * - * @return plans Defines the type of installment plan. If not set, defaults to **regular**. - * Possible values: * **regular** * **revolving*** **bonus** * **with_interest** * - * **buynow_paylater** * **nointerest_bonus** * **interest_bonus** * **refund_prctg** * - * **nointeres_refund_prctg** * **interes_refund_prctg** + * Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving*** **bonus** * **with_interest** * **buynow_paylater** * **nointerest_bonus** * **interest_bonus** * **refund_prctg** * **nointeres_refund_prctg** * **interes_refund_prctg** + * @return plans Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving*** **bonus** * **with_interest** * **buynow_paylater** * **nointerest_bonus** * **interest_bonus** * **refund_prctg** * **nointeres_refund_prctg** * **interes_refund_prctg** */ @JsonProperty(JSON_PROPERTY_PLANS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,15 +134,9 @@ public List getPlans() { } /** - * Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * - * **regular** * **revolving*** **bonus** * **with_interest** * **buynow_paylater** * - * **nointerest_bonus** * **interest_bonus** * **refund_prctg** * **nointeres_refund_prctg** * - * **interes_refund_prctg** + * Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving*** **bonus** * **with_interest** * **buynow_paylater** * **nointerest_bonus** * **interest_bonus** * **refund_prctg** * **nointeres_refund_prctg** * **interes_refund_prctg** * - * @param plans Defines the type of installment plan. If not set, defaults to **regular**. - * Possible values: * **regular** * **revolving*** **bonus** * **with_interest** * - * **buynow_paylater** * **nointerest_bonus** * **interest_bonus** * **refund_prctg** * - * **nointeres_refund_prctg** * **interes_refund_prctg** + * @param plans Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving*** **bonus** * **with_interest** * **buynow_paylater** * **nointerest_bonus** * **interest_bonus** * **refund_prctg** * **nointeres_refund_prctg** * **interes_refund_prctg** */ @JsonProperty(JSON_PROPERTY_PLANS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -162,8 +148,7 @@ public void setPlans(List plans) { * Preselected number of installments offered for this payment method. * * @param preselectedValue Preselected number of installments offered for this payment method. - * @return the current {@code CheckoutSessionInstallmentOption} instance, allowing for method - * chaining + * @return the current {@code CheckoutSessionInstallmentOption} instance, allowing for method chaining */ public CheckoutSessionInstallmentOption preselectedValue(Integer preselectedValue) { this.preselectedValue = preselectedValue; @@ -172,7 +157,6 @@ public CheckoutSessionInstallmentOption preselectedValue(Integer preselectedValu /** * Preselected number of installments offered for this payment method. - * * @return preselectedValue Preselected number of installments offered for this payment method. */ @JsonProperty(JSON_PROPERTY_PRESELECTED_VALUE) @@ -193,13 +177,10 @@ public void setPreselectedValue(Integer preselectedValue) { } /** - * An array of the number of installments that the shopper can choose from. For example, - * **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. + * An array of the number of installments that the shopper can choose from. For example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. * - * @param values An array of the number of installments that the shopper can choose from. For - * example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. - * @return the current {@code CheckoutSessionInstallmentOption} instance, allowing for method - * chaining + * @param values An array of the number of installments that the shopper can choose from. For example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. + * @return the current {@code CheckoutSessionInstallmentOption} instance, allowing for method chaining */ public CheckoutSessionInstallmentOption values(List values) { this.values = values; @@ -215,11 +196,8 @@ public CheckoutSessionInstallmentOption addValuesItem(Integer valuesItem) { } /** - * An array of the number of installments that the shopper can choose from. For example, - * **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. - * - * @return values An array of the number of installments that the shopper can choose from. For - * example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. + * An array of the number of installments that the shopper can choose from. For example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. + * @return values An array of the number of installments that the shopper can choose from. For example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. */ @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -228,11 +206,9 @@ public List getValues() { } /** - * An array of the number of installments that the shopper can choose from. For example, - * **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. + * An array of the number of installments that the shopper can choose from. For example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. * - * @param values An array of the number of installments that the shopper can choose from. For - * example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. + * @param values An array of the number of installments that the shopper can choose from. For example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. */ @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,7 +216,9 @@ public void setValues(List values) { this.values = values; } - /** Return true if this CheckoutSessionInstallmentOption object is equal to o. */ + /** + * Return true if this CheckoutSessionInstallmentOption object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -249,11 +227,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CheckoutSessionInstallmentOption checkoutSessionInstallmentOption = - (CheckoutSessionInstallmentOption) o; - return Objects.equals(this.plans, checkoutSessionInstallmentOption.plans) - && Objects.equals(this.preselectedValue, checkoutSessionInstallmentOption.preselectedValue) - && Objects.equals(this.values, checkoutSessionInstallmentOption.values); + CheckoutSessionInstallmentOption checkoutSessionInstallmentOption = (CheckoutSessionInstallmentOption) o; + return Objects.equals(this.plans, checkoutSessionInstallmentOption.plans) && + Objects.equals(this.preselectedValue, checkoutSessionInstallmentOption.preselectedValue) && + Objects.equals(this.values, checkoutSessionInstallmentOption.values); } @Override @@ -273,7 +250,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -282,24 +260,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CheckoutSessionInstallmentOption given an JSON string * * @param jsonString JSON string * @return An instance of CheckoutSessionInstallmentOption - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CheckoutSessionInstallmentOption + * @throws JsonProcessingException if the JSON string is invalid with respect to CheckoutSessionInstallmentOption */ - public static CheckoutSessionInstallmentOption fromJson(String jsonString) - throws JsonProcessingException { + public static CheckoutSessionInstallmentOption fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CheckoutSessionInstallmentOption.class); } - - /** - * Convert an instance of CheckoutSessionInstallmentOption to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CheckoutSessionInstallmentOption to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutSessionThreeDS2RequestData.java b/src/main/java/com/adyen/model/checkout/CheckoutSessionThreeDS2RequestData.java index f8bf8c289..ae5402acd 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutSessionThreeDS2RequestData.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutSessionThreeDS2RequestData.java @@ -2,32 +2,39 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Phone; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CheckoutSessionThreeDS2RequestData */ +/** + * CheckoutSessionThreeDS2RequestData + */ @JsonPropertyOrder({ CheckoutSessionThreeDS2RequestData.JSON_PROPERTY_HOME_PHONE, CheckoutSessionThreeDS2RequestData.JSON_PROPERTY_MOBILE_PHONE, CheckoutSessionThreeDS2RequestData.JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND, CheckoutSessionThreeDS2RequestData.JSON_PROPERTY_WORK_PHONE }) + public class CheckoutSessionThreeDS2RequestData { public static final String JSON_PROPERTY_HOME_PHONE = "homePhone"; private Phone homePhone; @@ -36,12 +43,10 @@ public class CheckoutSessionThreeDS2RequestData { private Phone mobilePhone; /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No - * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor - * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional - * risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only */ public enum ThreeDSRequestorChallengeIndEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -54,13 +59,12 @@ public enum ThreeDSRequestorChallengeIndEnum { _06(String.valueOf("06")); - private static final Logger LOG = - Logger.getLogger(ThreeDSRequestorChallengeIndEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(ThreeDSRequestorChallengeIndEnum.class.getName()); private String value; ThreeDSRequestorChallengeIndEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -81,30 +85,25 @@ public static ThreeDSRequestorChallengeIndEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ThreeDSRequestorChallengeIndEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ThreeDSRequestorChallengeIndEnum.values())); + LOG.warning("ThreeDSRequestorChallengeIndEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ThreeDSRequestorChallengeIndEnum.values())); return null; } } - public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND = - "threeDSRequestorChallengeInd"; + public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND = "threeDSRequestorChallengeInd"; private ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd; public static final String JSON_PROPERTY_WORK_PHONE = "workPhone"; private Phone workPhone; - public CheckoutSessionThreeDS2RequestData() {} + public CheckoutSessionThreeDS2RequestData() { + } /** * homePhone * - * @param homePhone - * @return the current {@code CheckoutSessionThreeDS2RequestData} instance, allowing for method - * chaining + * @param homePhone + * @return the current {@code CheckoutSessionThreeDS2RequestData} instance, allowing for method chaining */ public CheckoutSessionThreeDS2RequestData homePhone(Phone homePhone) { this.homePhone = homePhone; @@ -113,8 +112,7 @@ public CheckoutSessionThreeDS2RequestData homePhone(Phone homePhone) { /** * Get homePhone - * - * @return homePhone + * @return homePhone */ @JsonProperty(JSON_PROPERTY_HOME_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,7 +123,7 @@ public Phone getHomePhone() { /** * homePhone * - * @param homePhone + * @param homePhone */ @JsonProperty(JSON_PROPERTY_HOME_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,9 +134,8 @@ public void setHomePhone(Phone homePhone) { /** * mobilePhone * - * @param mobilePhone - * @return the current {@code CheckoutSessionThreeDS2RequestData} instance, allowing for method - * chaining + * @param mobilePhone + * @return the current {@code CheckoutSessionThreeDS2RequestData} instance, allowing for method chaining */ public CheckoutSessionThreeDS2RequestData mobilePhone(Phone mobilePhone) { this.mobilePhone = mobilePhone; @@ -147,8 +144,7 @@ public CheckoutSessionThreeDS2RequestData mobilePhone(Phone mobilePhone) { /** * Get mobilePhone - * - * @return mobilePhone + * @return mobilePhone */ @JsonProperty(JSON_PROPERTY_MOBILE_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,7 +155,7 @@ public Phone getMobilePhone() { /** * mobilePhone * - * @param mobilePhone + * @param mobilePhone */ @JsonProperty(JSON_PROPERTY_MOBILE_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,36 +164,19 @@ public void setMobilePhone(Phone mobilePhone) { } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No - * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor - * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional - * risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only * - * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this - * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * - * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested - * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * - * **06** — Data Only - * @return the current {@code CheckoutSessionThreeDS2RequestData} instance, allowing for method - * chaining + * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * @return the current {@code CheckoutSessionThreeDS2RequestData} instance, allowing for method chaining */ - public CheckoutSessionThreeDS2RequestData threeDSRequestorChallengeInd( - ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { + public CheckoutSessionThreeDS2RequestData threeDSRequestorChallengeInd(ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { this.threeDSRequestorChallengeInd = threeDSRequestorChallengeInd; return this; } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No - * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor - * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional - * risk analysis is already performed) * **06** — Data Only - * - * @return threeDSRequestorChallengeInd Indicates whether a challenge is requested for this - * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * - * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested - * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * - * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * @return threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -206,30 +185,21 @@ public ThreeDSRequestorChallengeIndEnum getThreeDSRequestorChallengeInd() { } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No - * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor - * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional - * risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only * - * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this - * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * - * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested - * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * - * **06** — Data Only + * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setThreeDSRequestorChallengeInd( - ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { + public void setThreeDSRequestorChallengeInd(ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { this.threeDSRequestorChallengeInd = threeDSRequestorChallengeInd; } /** * workPhone * - * @param workPhone - * @return the current {@code CheckoutSessionThreeDS2RequestData} instance, allowing for method - * chaining + * @param workPhone + * @return the current {@code CheckoutSessionThreeDS2RequestData} instance, allowing for method chaining */ public CheckoutSessionThreeDS2RequestData workPhone(Phone workPhone) { this.workPhone = workPhone; @@ -238,8 +208,7 @@ public CheckoutSessionThreeDS2RequestData workPhone(Phone workPhone) { /** * Get workPhone - * - * @return workPhone + * @return workPhone */ @JsonProperty(JSON_PROPERTY_WORK_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,7 +219,7 @@ public Phone getWorkPhone() { /** * workPhone * - * @param workPhone + * @param workPhone */ @JsonProperty(JSON_PROPERTY_WORK_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -258,7 +227,9 @@ public void setWorkPhone(Phone workPhone) { this.workPhone = workPhone; } - /** Return true if this CheckoutSessionThreeDS2RequestData object is equal to o. */ + /** + * Return true if this CheckoutSessionThreeDS2RequestData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -267,14 +238,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CheckoutSessionThreeDS2RequestData checkoutSessionThreeDS2RequestData = - (CheckoutSessionThreeDS2RequestData) o; - return Objects.equals(this.homePhone, checkoutSessionThreeDS2RequestData.homePhone) - && Objects.equals(this.mobilePhone, checkoutSessionThreeDS2RequestData.mobilePhone) - && Objects.equals( - this.threeDSRequestorChallengeInd, - checkoutSessionThreeDS2RequestData.threeDSRequestorChallengeInd) - && Objects.equals(this.workPhone, checkoutSessionThreeDS2RequestData.workPhone); + CheckoutSessionThreeDS2RequestData checkoutSessionThreeDS2RequestData = (CheckoutSessionThreeDS2RequestData) o; + return Objects.equals(this.homePhone, checkoutSessionThreeDS2RequestData.homePhone) && + Objects.equals(this.mobilePhone, checkoutSessionThreeDS2RequestData.mobilePhone) && + Objects.equals(this.threeDSRequestorChallengeInd, checkoutSessionThreeDS2RequestData.threeDSRequestorChallengeInd) && + Objects.equals(this.workPhone, checkoutSessionThreeDS2RequestData.workPhone); } @Override @@ -288,16 +256,15 @@ public String toString() { sb.append("class CheckoutSessionThreeDS2RequestData {\n"); sb.append(" homePhone: ").append(toIndentedString(homePhone)).append("\n"); sb.append(" mobilePhone: ").append(toIndentedString(mobilePhone)).append("\n"); - sb.append(" threeDSRequestorChallengeInd: ") - .append(toIndentedString(threeDSRequestorChallengeInd)) - .append("\n"); + sb.append(" threeDSRequestorChallengeInd: ").append(toIndentedString(threeDSRequestorChallengeInd)).append("\n"); sb.append(" workPhone: ").append(toIndentedString(workPhone)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -306,24 +273,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CheckoutSessionThreeDS2RequestData given an JSON string * * @param jsonString JSON string * @return An instance of CheckoutSessionThreeDS2RequestData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CheckoutSessionThreeDS2RequestData + * @throws JsonProcessingException if the JSON string is invalid with respect to CheckoutSessionThreeDS2RequestData */ - public static CheckoutSessionThreeDS2RequestData fromJson(String jsonString) - throws JsonProcessingException { + public static CheckoutSessionThreeDS2RequestData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CheckoutSessionThreeDS2RequestData.class); } - - /** - * Convert an instance of CheckoutSessionThreeDS2RequestData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CheckoutSessionThreeDS2RequestData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutThreeDS2Action.java b/src/main/java/com/adyen/model/checkout/CheckoutThreeDS2Action.java index 088f45254..93714a184 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutThreeDS2Action.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutThreeDS2Action.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CheckoutThreeDS2Action */ +/** + * CheckoutThreeDS2Action + */ @JsonPropertyOrder({ CheckoutThreeDS2Action.JSON_PROPERTY_AUTHORISATION_TOKEN, CheckoutThreeDS2Action.JSON_PROPERTY_PAYMENT_DATA, @@ -31,6 +36,7 @@ CheckoutThreeDS2Action.JSON_PROPERTY_TYPE, CheckoutThreeDS2Action.JSON_PROPERTY_URL }) + public class CheckoutThreeDS2Action { public static final String JSON_PROPERTY_AUTHORISATION_TOKEN = "authorisationToken"; private String authorisationToken; @@ -47,8 +53,11 @@ public class CheckoutThreeDS2Action { public static final String JSON_PROPERTY_TOKEN = "token"; private String token; - /** **threeDS2** */ + /** + * **threeDS2** + */ public enum TypeEnum { + THREEDS2(String.valueOf("threeDS2")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -56,7 +65,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -77,11 +86,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -92,7 +97,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_URL = "url"; private String url; - public CheckoutThreeDS2Action() {} + public CheckoutThreeDS2Action() { + } /** * A token needed to authorise a payment. @@ -107,7 +113,6 @@ public CheckoutThreeDS2Action authorisationToken(String authorisationToken) { /** * A token needed to authorise a payment. - * * @return authorisationToken A token needed to authorise a payment. */ @JsonProperty(JSON_PROPERTY_AUTHORISATION_TOKEN) @@ -140,7 +145,6 @@ public CheckoutThreeDS2Action paymentData(String paymentData) { /** * Encoded payment data. - * * @return paymentData Encoded payment data. */ @JsonProperty(JSON_PROPERTY_PAYMENT_DATA) @@ -173,7 +177,6 @@ public CheckoutThreeDS2Action paymentMethodType(String paymentMethodType) { /** * Specifies the payment method. - * * @return paymentMethodType Specifies the payment method. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_TYPE) @@ -206,7 +209,6 @@ public CheckoutThreeDS2Action subtype(String subtype) { /** * A subtype of the token. - * * @return subtype A subtype of the token. */ @JsonProperty(JSON_PROPERTY_SUBTYPE) @@ -239,7 +241,6 @@ public CheckoutThreeDS2Action token(String token) { /** * A token to pass to the 3DS2 Component to get the fingerprint. - * * @return token A token to pass to the 3DS2 Component to get the fingerprint. */ @JsonProperty(JSON_PROPERTY_TOKEN) @@ -272,7 +273,6 @@ public CheckoutThreeDS2Action type(TypeEnum type) { /** * **threeDS2** - * * @return type **threeDS2** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -305,7 +305,6 @@ public CheckoutThreeDS2Action url(String url) { /** * Specifies the URL to redirect to. - * * @return url Specifies the URL to redirect to. */ @JsonProperty(JSON_PROPERTY_URL) @@ -325,7 +324,9 @@ public void setUrl(String url) { this.url = url; } - /** Return true if this CheckoutThreeDS2Action object is equal to o. */ + /** + * Return true if this CheckoutThreeDS2Action object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -335,19 +336,18 @@ public boolean equals(Object o) { return false; } CheckoutThreeDS2Action checkoutThreeDS2Action = (CheckoutThreeDS2Action) o; - return Objects.equals(this.authorisationToken, checkoutThreeDS2Action.authorisationToken) - && Objects.equals(this.paymentData, checkoutThreeDS2Action.paymentData) - && Objects.equals(this.paymentMethodType, checkoutThreeDS2Action.paymentMethodType) - && Objects.equals(this.subtype, checkoutThreeDS2Action.subtype) - && Objects.equals(this.token, checkoutThreeDS2Action.token) - && Objects.equals(this.type, checkoutThreeDS2Action.type) - && Objects.equals(this.url, checkoutThreeDS2Action.url); + return Objects.equals(this.authorisationToken, checkoutThreeDS2Action.authorisationToken) && + Objects.equals(this.paymentData, checkoutThreeDS2Action.paymentData) && + Objects.equals(this.paymentMethodType, checkoutThreeDS2Action.paymentMethodType) && + Objects.equals(this.subtype, checkoutThreeDS2Action.subtype) && + Objects.equals(this.token, checkoutThreeDS2Action.token) && + Objects.equals(this.type, checkoutThreeDS2Action.type) && + Objects.equals(this.url, checkoutThreeDS2Action.url); } @Override public int hashCode() { - return Objects.hash( - authorisationToken, paymentData, paymentMethodType, subtype, token, type, url); + return Objects.hash(authorisationToken, paymentData, paymentMethodType, subtype, token, type, url); } @Override @@ -366,7 +366,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -375,23 +376,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CheckoutThreeDS2Action given an JSON string * * @param jsonString JSON string * @return An instance of CheckoutThreeDS2Action - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CheckoutThreeDS2Action + * @throws JsonProcessingException if the JSON string is invalid with respect to CheckoutThreeDS2Action */ public static CheckoutThreeDS2Action fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CheckoutThreeDS2Action.class); } - - /** - * Convert an instance of CheckoutThreeDS2Action to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CheckoutThreeDS2Action to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutVoucherAction.java b/src/main/java/com/adyen/model/checkout/CheckoutVoucherAction.java index 8dc61f06c..b9e587458 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutVoucherAction.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutVoucherAction.java @@ -2,26 +2,32 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** CheckoutVoucherAction */ + +/** + * CheckoutVoucherAction + */ @JsonPropertyOrder({ CheckoutVoucherAction.JSON_PROPERTY_ALTERNATIVE_REFERENCE, CheckoutVoucherAction.JSON_PROPERTY_COLLECTION_INSTITUTION_NUMBER, @@ -45,12 +51,12 @@ CheckoutVoucherAction.JSON_PROPERTY_TYPE, CheckoutVoucherAction.JSON_PROPERTY_URL }) + public class CheckoutVoucherAction { public static final String JSON_PROPERTY_ALTERNATIVE_REFERENCE = "alternativeReference"; private String alternativeReference; - public static final String JSON_PROPERTY_COLLECTION_INSTITUTION_NUMBER = - "collectionInstitutionNumber"; + public static final String JSON_PROPERTY_COLLECTION_INSTITUTION_NUMBER = "collectionInstitutionNumber"; private String collectionInstitutionNumber; public static final String JSON_PROPERTY_DOWNLOAD_URL = "downloadUrl"; @@ -104,8 +110,11 @@ public class CheckoutVoucherAction { public static final String JSON_PROPERTY_TOTAL_AMOUNT = "totalAmount"; private Amount totalAmount; - /** **voucher** */ + /** + * **voucher** + */ public enum TypeEnum { + VOUCHER(String.valueOf("voucher")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -113,7 +122,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -134,11 +143,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -149,7 +154,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_URL = "url"; private String url; - public CheckoutVoucherAction() {} + public CheckoutVoucherAction() { + } /** * The voucher alternative reference code. @@ -164,7 +170,6 @@ public CheckoutVoucherAction alternativeReference(String alternativeReference) { /** * The voucher alternative reference code. - * * @return alternativeReference The voucher alternative reference code. */ @JsonProperty(JSON_PROPERTY_ALTERNATIVE_REFERENCE) @@ -187,8 +192,7 @@ public void setAlternativeReference(String alternativeReference) { /** * A collection institution number (store number) for Econtext Pay-Easy ATM. * - * @param collectionInstitutionNumber A collection institution number (store number) for Econtext - * Pay-Easy ATM. + * @param collectionInstitutionNumber A collection institution number (store number) for Econtext Pay-Easy ATM. * @return the current {@code CheckoutVoucherAction} instance, allowing for method chaining */ public CheckoutVoucherAction collectionInstitutionNumber(String collectionInstitutionNumber) { @@ -198,9 +202,7 @@ public CheckoutVoucherAction collectionInstitutionNumber(String collectionInstit /** * A collection institution number (store number) for Econtext Pay-Easy ATM. - * - * @return collectionInstitutionNumber A collection institution number (store number) for Econtext - * Pay-Easy ATM. + * @return collectionInstitutionNumber A collection institution number (store number) for Econtext Pay-Easy ATM. */ @JsonProperty(JSON_PROPERTY_COLLECTION_INSTITUTION_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,8 +213,7 @@ public String getCollectionInstitutionNumber() { /** * A collection institution number (store number) for Econtext Pay-Easy ATM. * - * @param collectionInstitutionNumber A collection institution number (store number) for Econtext - * Pay-Easy ATM. + * @param collectionInstitutionNumber A collection institution number (store number) for Econtext Pay-Easy ATM. */ @JsonProperty(JSON_PROPERTY_COLLECTION_INSTITUTION_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -233,7 +234,6 @@ public CheckoutVoucherAction downloadUrl(String downloadUrl) { /** * The URL to download the voucher. - * * @return downloadUrl The URL to download the voucher. */ @JsonProperty(JSON_PROPERTY_DOWNLOAD_URL) @@ -266,7 +266,6 @@ public CheckoutVoucherAction entity(String entity) { /** * An entity number of Multibanco. - * * @return entity An entity number of Multibanco. */ @JsonProperty(JSON_PROPERTY_ENTITY) @@ -299,7 +298,6 @@ public CheckoutVoucherAction expiresAt(String expiresAt) { /** * The date time of the voucher expiry. - * * @return expiresAt The date time of the voucher expiry. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @@ -322,7 +320,7 @@ public void setExpiresAt(String expiresAt) { /** * initialAmount * - * @param initialAmount + * @param initialAmount * @return the current {@code CheckoutVoucherAction} instance, allowing for method chaining */ public CheckoutVoucherAction initialAmount(Amount initialAmount) { @@ -332,8 +330,7 @@ public CheckoutVoucherAction initialAmount(Amount initialAmount) { /** * Get initialAmount - * - * @return initialAmount + * @return initialAmount */ @JsonProperty(JSON_PROPERTY_INITIAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -344,7 +341,7 @@ public Amount getInitialAmount() { /** * initialAmount * - * @param initialAmount + * @param initialAmount */ @JsonProperty(JSON_PROPERTY_INITIAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -365,7 +362,6 @@ public CheckoutVoucherAction instructionsUrl(String instructionsUrl) { /** * The URL to the detailed instructions to make payment using the voucher. - * * @return instructionsUrl The URL to the detailed instructions to make payment using the voucher. */ @JsonProperty(JSON_PROPERTY_INSTRUCTIONS_URL) @@ -398,7 +394,6 @@ public CheckoutVoucherAction issuer(String issuer) { /** * The issuer of the voucher. - * * @return issuer The issuer of the voucher. */ @JsonProperty(JSON_PROPERTY_ISSUER) @@ -431,7 +426,6 @@ public CheckoutVoucherAction maskedTelephoneNumber(String maskedTelephoneNumber) /** * The shopper telephone number (partially masked). - * * @return maskedTelephoneNumber The shopper telephone number (partially masked). */ @JsonProperty(JSON_PROPERTY_MASKED_TELEPHONE_NUMBER) @@ -464,7 +458,6 @@ public CheckoutVoucherAction merchantName(String merchantName) { /** * The merchant name. - * * @return merchantName The merchant name. */ @JsonProperty(JSON_PROPERTY_MERCHANT_NAME) @@ -497,7 +490,6 @@ public CheckoutVoucherAction merchantReference(String merchantReference) { /** * The merchant reference. - * * @return merchantReference The merchant reference. */ @JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCE) @@ -518,11 +510,9 @@ public void setMerchantReference(String merchantReference) { } /** - * A Base64-encoded token containing all properties of the voucher. For iOS, you can use this to - * pass a voucher to Apple Wallet. + * A Base64-encoded token containing all properties of the voucher. For iOS, you can use this to pass a voucher to Apple Wallet. * - * @param passCreationToken A Base64-encoded token containing all properties of the voucher. For - * iOS, you can use this to pass a voucher to Apple Wallet. + * @param passCreationToken A Base64-encoded token containing all properties of the voucher. For iOS, you can use this to pass a voucher to Apple Wallet. * @return the current {@code CheckoutVoucherAction} instance, allowing for method chaining */ public CheckoutVoucherAction passCreationToken(String passCreationToken) { @@ -531,11 +521,8 @@ public CheckoutVoucherAction passCreationToken(String passCreationToken) { } /** - * A Base64-encoded token containing all properties of the voucher. For iOS, you can use this to - * pass a voucher to Apple Wallet. - * - * @return passCreationToken A Base64-encoded token containing all properties of the voucher. For - * iOS, you can use this to pass a voucher to Apple Wallet. + * A Base64-encoded token containing all properties of the voucher. For iOS, you can use this to pass a voucher to Apple Wallet. + * @return passCreationToken A Base64-encoded token containing all properties of the voucher. For iOS, you can use this to pass a voucher to Apple Wallet. */ @JsonProperty(JSON_PROPERTY_PASS_CREATION_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -544,11 +531,9 @@ public String getPassCreationToken() { } /** - * A Base64-encoded token containing all properties of the voucher. For iOS, you can use this to - * pass a voucher to Apple Wallet. + * A Base64-encoded token containing all properties of the voucher. For iOS, you can use this to pass a voucher to Apple Wallet. * - * @param passCreationToken A Base64-encoded token containing all properties of the voucher. For - * iOS, you can use this to pass a voucher to Apple Wallet. + * @param passCreationToken A Base64-encoded token containing all properties of the voucher. For iOS, you can use this to pass a voucher to Apple Wallet. */ @JsonProperty(JSON_PROPERTY_PASS_CREATION_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -569,7 +554,6 @@ public CheckoutVoucherAction paymentData(String paymentData) { /** * Encoded payment data. - * * @return paymentData Encoded payment data. */ @JsonProperty(JSON_PROPERTY_PAYMENT_DATA) @@ -602,7 +586,6 @@ public CheckoutVoucherAction paymentMethodType(String paymentMethodType) { /** * Specifies the payment method. - * * @return paymentMethodType Specifies the payment method. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_TYPE) @@ -635,7 +618,6 @@ public CheckoutVoucherAction reference(String reference) { /** * The voucher reference code. - * * @return reference The voucher reference code. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -668,7 +650,6 @@ public CheckoutVoucherAction shopperEmail(String shopperEmail) { /** * The shopper email. - * * @return shopperEmail The shopper email. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -701,7 +682,6 @@ public CheckoutVoucherAction shopperName(String shopperName) { /** * The shopper name. - * * @return shopperName The shopper name. */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @@ -724,7 +704,7 @@ public void setShopperName(String shopperName) { /** * surcharge * - * @param surcharge + * @param surcharge * @return the current {@code CheckoutVoucherAction} instance, allowing for method chaining */ public CheckoutVoucherAction surcharge(Amount surcharge) { @@ -734,8 +714,7 @@ public CheckoutVoucherAction surcharge(Amount surcharge) { /** * Get surcharge - * - * @return surcharge + * @return surcharge */ @JsonProperty(JSON_PROPERTY_SURCHARGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -746,7 +725,7 @@ public Amount getSurcharge() { /** * surcharge * - * @param surcharge + * @param surcharge */ @JsonProperty(JSON_PROPERTY_SURCHARGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -757,7 +736,7 @@ public void setSurcharge(Amount surcharge) { /** * totalAmount * - * @param totalAmount + * @param totalAmount * @return the current {@code CheckoutVoucherAction} instance, allowing for method chaining */ public CheckoutVoucherAction totalAmount(Amount totalAmount) { @@ -767,8 +746,7 @@ public CheckoutVoucherAction totalAmount(Amount totalAmount) { /** * Get totalAmount - * - * @return totalAmount + * @return totalAmount */ @JsonProperty(JSON_PROPERTY_TOTAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -779,7 +757,7 @@ public Amount getTotalAmount() { /** * totalAmount * - * @param totalAmount + * @param totalAmount */ @JsonProperty(JSON_PROPERTY_TOTAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -800,7 +778,6 @@ public CheckoutVoucherAction type(TypeEnum type) { /** * **voucher** - * * @return type **voucher** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -833,7 +810,6 @@ public CheckoutVoucherAction url(String url) { /** * Specifies the URL to redirect to. - * * @return url Specifies the URL to redirect to. */ @JsonProperty(JSON_PROPERTY_URL) @@ -853,7 +829,9 @@ public void setUrl(String url) { this.url = url; } - /** Return true if this CheckoutVoucherAction object is equal to o. */ + /** + * Return true if this CheckoutVoucherAction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -863,75 +841,47 @@ public boolean equals(Object o) { return false; } CheckoutVoucherAction checkoutVoucherAction = (CheckoutVoucherAction) o; - return Objects.equals(this.alternativeReference, checkoutVoucherAction.alternativeReference) - && Objects.equals( - this.collectionInstitutionNumber, checkoutVoucherAction.collectionInstitutionNumber) - && Objects.equals(this.downloadUrl, checkoutVoucherAction.downloadUrl) - && Objects.equals(this.entity, checkoutVoucherAction.entity) - && Objects.equals(this.expiresAt, checkoutVoucherAction.expiresAt) - && Objects.equals(this.initialAmount, checkoutVoucherAction.initialAmount) - && Objects.equals(this.instructionsUrl, checkoutVoucherAction.instructionsUrl) - && Objects.equals(this.issuer, checkoutVoucherAction.issuer) - && Objects.equals(this.maskedTelephoneNumber, checkoutVoucherAction.maskedTelephoneNumber) - && Objects.equals(this.merchantName, checkoutVoucherAction.merchantName) - && Objects.equals(this.merchantReference, checkoutVoucherAction.merchantReference) - && Objects.equals(this.passCreationToken, checkoutVoucherAction.passCreationToken) - && Objects.equals(this.paymentData, checkoutVoucherAction.paymentData) - && Objects.equals(this.paymentMethodType, checkoutVoucherAction.paymentMethodType) - && Objects.equals(this.reference, checkoutVoucherAction.reference) - && Objects.equals(this.shopperEmail, checkoutVoucherAction.shopperEmail) - && Objects.equals(this.shopperName, checkoutVoucherAction.shopperName) - && Objects.equals(this.surcharge, checkoutVoucherAction.surcharge) - && Objects.equals(this.totalAmount, checkoutVoucherAction.totalAmount) - && Objects.equals(this.type, checkoutVoucherAction.type) - && Objects.equals(this.url, checkoutVoucherAction.url); + return Objects.equals(this.alternativeReference, checkoutVoucherAction.alternativeReference) && + Objects.equals(this.collectionInstitutionNumber, checkoutVoucherAction.collectionInstitutionNumber) && + Objects.equals(this.downloadUrl, checkoutVoucherAction.downloadUrl) && + Objects.equals(this.entity, checkoutVoucherAction.entity) && + Objects.equals(this.expiresAt, checkoutVoucherAction.expiresAt) && + Objects.equals(this.initialAmount, checkoutVoucherAction.initialAmount) && + Objects.equals(this.instructionsUrl, checkoutVoucherAction.instructionsUrl) && + Objects.equals(this.issuer, checkoutVoucherAction.issuer) && + Objects.equals(this.maskedTelephoneNumber, checkoutVoucherAction.maskedTelephoneNumber) && + Objects.equals(this.merchantName, checkoutVoucherAction.merchantName) && + Objects.equals(this.merchantReference, checkoutVoucherAction.merchantReference) && + Objects.equals(this.passCreationToken, checkoutVoucherAction.passCreationToken) && + Objects.equals(this.paymentData, checkoutVoucherAction.paymentData) && + Objects.equals(this.paymentMethodType, checkoutVoucherAction.paymentMethodType) && + Objects.equals(this.reference, checkoutVoucherAction.reference) && + Objects.equals(this.shopperEmail, checkoutVoucherAction.shopperEmail) && + Objects.equals(this.shopperName, checkoutVoucherAction.shopperName) && + Objects.equals(this.surcharge, checkoutVoucherAction.surcharge) && + Objects.equals(this.totalAmount, checkoutVoucherAction.totalAmount) && + Objects.equals(this.type, checkoutVoucherAction.type) && + Objects.equals(this.url, checkoutVoucherAction.url); } @Override public int hashCode() { - return Objects.hash( - alternativeReference, - collectionInstitutionNumber, - downloadUrl, - entity, - expiresAt, - initialAmount, - instructionsUrl, - issuer, - maskedTelephoneNumber, - merchantName, - merchantReference, - passCreationToken, - paymentData, - paymentMethodType, - reference, - shopperEmail, - shopperName, - surcharge, - totalAmount, - type, - url); + return Objects.hash(alternativeReference, collectionInstitutionNumber, downloadUrl, entity, expiresAt, initialAmount, instructionsUrl, issuer, maskedTelephoneNumber, merchantName, merchantReference, passCreationToken, paymentData, paymentMethodType, reference, shopperEmail, shopperName, surcharge, totalAmount, type, url); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CheckoutVoucherAction {\n"); - sb.append(" alternativeReference: ") - .append(toIndentedString(alternativeReference)) - .append("\n"); - sb.append(" collectionInstitutionNumber: ") - .append(toIndentedString(collectionInstitutionNumber)) - .append("\n"); + sb.append(" alternativeReference: ").append(toIndentedString(alternativeReference)).append("\n"); + sb.append(" collectionInstitutionNumber: ").append(toIndentedString(collectionInstitutionNumber)).append("\n"); sb.append(" downloadUrl: ").append(toIndentedString(downloadUrl)).append("\n"); sb.append(" entity: ").append(toIndentedString(entity)).append("\n"); sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n"); sb.append(" initialAmount: ").append(toIndentedString(initialAmount)).append("\n"); sb.append(" instructionsUrl: ").append(toIndentedString(instructionsUrl)).append("\n"); sb.append(" issuer: ").append(toIndentedString(issuer)).append("\n"); - sb.append(" maskedTelephoneNumber: ") - .append(toIndentedString(maskedTelephoneNumber)) - .append("\n"); + sb.append(" maskedTelephoneNumber: ").append(toIndentedString(maskedTelephoneNumber)).append("\n"); sb.append(" merchantName: ").append(toIndentedString(merchantName)).append("\n"); sb.append(" merchantReference: ").append(toIndentedString(merchantReference)).append("\n"); sb.append(" passCreationToken: ").append(toIndentedString(passCreationToken)).append("\n"); @@ -949,7 +899,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -958,23 +909,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CheckoutVoucherAction given an JSON string * * @param jsonString JSON string * @return An instance of CheckoutVoucherAction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CheckoutVoucherAction + * @throws JsonProcessingException if the JSON string is invalid with respect to CheckoutVoucherAction */ public static CheckoutVoucherAction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CheckoutVoucherAction.class); } - - /** - * Convert an instance of CheckoutVoucherAction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CheckoutVoucherAction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CommonField.java b/src/main/java/com/adyen/model/checkout/CommonField.java index 711a5d058..f4bdfb6eb 100644 --- a/src/main/java/com/adyen/model/checkout/CommonField.java +++ b/src/main/java/com/adyen/model/checkout/CommonField.java @@ -2,23 +2,36 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** CommonField */ -@JsonPropertyOrder({CommonField.JSON_PROPERTY_NAME, CommonField.JSON_PROPERTY_VERSION}) + +/** + * CommonField + */ +@JsonPropertyOrder({ + CommonField.JSON_PROPERTY_NAME, + CommonField.JSON_PROPERTY_VERSION +}) + public class CommonField { public static final String JSON_PROPERTY_NAME = "name"; private String name; @@ -26,7 +39,8 @@ public class CommonField { public static final String JSON_PROPERTY_VERSION = "version"; private String version; - public CommonField() {} + public CommonField() { + } /** * Name of the field. For example, Name of External Platform. @@ -41,7 +55,6 @@ public CommonField name(String name) { /** * Name of the field. For example, Name of External Platform. - * * @return name Name of the field. For example, Name of External Platform. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -74,7 +87,6 @@ public CommonField version(String version) { /** * Version of the field. For example, Version of External Platform. - * * @return version Version of the field. For example, Version of External Platform. */ @JsonProperty(JSON_PROPERTY_VERSION) @@ -94,7 +106,9 @@ public void setVersion(String version) { this.version = version; } - /** Return true if this CommonField object is equal to o. */ + /** + * Return true if this CommonField object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -104,8 +118,8 @@ public boolean equals(Object o) { return false; } CommonField commonField = (CommonField) o; - return Objects.equals(this.name, commonField.name) - && Objects.equals(this.version, commonField.version); + return Objects.equals(this.name, commonField.name) && + Objects.equals(this.version, commonField.version); } @Override @@ -124,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CommonField given an JSON string * * @param jsonString JSON string @@ -143,12 +158,11 @@ private String toIndentedString(Object o) { public static CommonField fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CommonField.class); } - - /** - * Convert an instance of CommonField to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CommonField to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Company.java b/src/main/java/com/adyen/model/checkout/Company.java index a8338d9b9..3905f9a54 100644 --- a/src/main/java/com/adyen/model/checkout/Company.java +++ b/src/main/java/com/adyen/model/checkout/Company.java @@ -2,22 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Company */ + +/** + * Company + */ @JsonPropertyOrder({ Company.JSON_PROPERTY_HOMEPAGE, Company.JSON_PROPERTY_NAME, @@ -26,6 +35,7 @@ Company.JSON_PROPERTY_TAX_ID, Company.JSON_PROPERTY_TYPE }) + public class Company { public static final String JSON_PROPERTY_HOMEPAGE = "homepage"; private String homepage; @@ -45,7 +55,8 @@ public class Company { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public Company() {} + public Company() { + } /** * The company website's home page. @@ -60,7 +71,6 @@ public Company homepage(String homepage) { /** * The company website's home page. - * * @return homepage The company website's home page. */ @JsonProperty(JSON_PROPERTY_HOMEPAGE) @@ -93,7 +103,6 @@ public Company name(String name) { /** * The company name. - * * @return name The company name. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -126,7 +135,6 @@ public Company registrationNumber(String registrationNumber) { /** * Registration number of the company. - * * @return registrationNumber Registration number of the company. */ @JsonProperty(JSON_PROPERTY_REGISTRATION_NUMBER) @@ -159,7 +167,6 @@ public Company registryLocation(String registryLocation) { /** * Registry location of the company. - * * @return registryLocation Registry location of the company. */ @JsonProperty(JSON_PROPERTY_REGISTRY_LOCATION) @@ -192,7 +199,6 @@ public Company taxId(String taxId) { /** * Tax ID of the company. - * * @return taxId Tax ID of the company. */ @JsonProperty(JSON_PROPERTY_TAX_ID) @@ -225,7 +231,6 @@ public Company type(String type) { /** * The company type. - * * @return type The company type. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -245,7 +250,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this Company object is equal to o. */ + /** + * Return true if this Company object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -255,12 +262,12 @@ public boolean equals(Object o) { return false; } Company company = (Company) o; - return Objects.equals(this.homepage, company.homepage) - && Objects.equals(this.name, company.name) - && Objects.equals(this.registrationNumber, company.registrationNumber) - && Objects.equals(this.registryLocation, company.registryLocation) - && Objects.equals(this.taxId, company.taxId) - && Objects.equals(this.type, company.type); + return Objects.equals(this.homepage, company.homepage) && + Objects.equals(this.name, company.name) && + Objects.equals(this.registrationNumber, company.registrationNumber) && + Objects.equals(this.registryLocation, company.registryLocation) && + Objects.equals(this.taxId, company.taxId) && + Objects.equals(this.type, company.type); } @Override @@ -283,7 +290,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -292,7 +300,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Company given an JSON string * * @param jsonString JSON string @@ -302,12 +310,11 @@ private String toIndentedString(Object o) { public static Company fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Company.class); } - - /** - * Convert an instance of Company to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Company to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionRequest.java b/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionRequest.java index 4bb275727..50317ccb6 100644 --- a/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionRequest.java +++ b/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionRequest.java @@ -2,32 +2,55 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.AccountInfo; +import com.adyen.model.checkout.Amount; +import com.adyen.model.checkout.ApplicationInfo; +import com.adyen.model.checkout.AuthenticationData; +import com.adyen.model.checkout.BillingAddress; +import com.adyen.model.checkout.CheckoutSessionInstallmentOption; +import com.adyen.model.checkout.CheckoutSessionThreeDS2RequestData; +import com.adyen.model.checkout.Company; +import com.adyen.model.checkout.DeliveryAddress; +import com.adyen.model.checkout.FundOrigin; +import com.adyen.model.checkout.FundRecipient; +import com.adyen.model.checkout.LineItem; +import com.adyen.model.checkout.Mandate; +import com.adyen.model.checkout.Name; +import com.adyen.model.checkout.PlatformChargebackLogic; +import com.adyen.model.checkout.RiskData; +import com.adyen.model.checkout.Split; +import com.adyen.model.checkout.ThreeDSecureData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.time.OffsetDateTime; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** CreateCheckoutSessionRequest */ + +/** + * CreateCheckoutSessionRequest + */ @JsonPropertyOrder({ CreateCheckoutSessionRequest.JSON_PROPERTY_ACCOUNT_INFO, CreateCheckoutSessionRequest.JSON_PROPERTY_ADDITIONAL_AMOUNT, @@ -91,6 +114,7 @@ CreateCheckoutSessionRequest.JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY, CreateCheckoutSessionRequest.JSON_PROPERTY_TRUSTED_SHOPPER }) + public class CreateCheckoutSessionRequest { public static final String JSON_PROPERTY_ACCOUNT_INFO = "accountInfo"; private AccountInfo accountInfo; @@ -123,12 +147,10 @@ public class CreateCheckoutSessionRequest { private Integer captureDelayHours; /** - * The platform where a payment transaction takes place. This field is optional for filtering out - * payment methods that are only available on specific platforms. If this value is not set, then - * we will try to infer it from the `sdkVersion` or `token`. Possible values: - * * **iOS** * **Android** * **Web** + * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** */ public enum ChannelEnum { + IOS(String.valueOf("iOS")), ANDROID(String.valueOf("Android")), @@ -140,7 +162,7 @@ public enum ChannelEnum { private String value; ChannelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -161,11 +183,7 @@ public static ChannelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ChannelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ChannelEnum.values())); + LOG.warning("ChannelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChannelEnum.values())); return null; } } @@ -228,10 +246,10 @@ public static ChannelEnum fromValue(String value) { private Map metadata; /** - * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in - * or Components integration * **hosted**: Hosted Checkout integration + * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration */ public enum ModeEnum { + EMBEDDED(String.valueOf("embedded")), HOSTED(String.valueOf("hosted")); @@ -241,7 +259,7 @@ public enum ModeEnum { private String value; ModeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -262,11 +280,7 @@ public static ModeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ModeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ModeEnum.values())); + LOG.warning("ModeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ModeEnum.values())); return null; } } @@ -287,30 +301,22 @@ public static ModeEnum fromValue(String value) { private String recurringFrequency; /** - * Defines a recurring payment type. Required when creating a token to store payment details. - * Allowed values: * `Subscription` – A transaction for a fixed or variable amount, - * which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) - * transaction, card details are stored to enable one-click or omnichannel journeys, or simply to - * streamline the checkout process. Any subscription not following a fixed schedule is also - * considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled - * card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or - * have variable amounts. For example, automatic top-ups when a cardholder's balance drops - * below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ public enum RecurringProcessingModelEnum { + CARDONFILE(String.valueOf("CardOnFile")), SUBSCRIPTION(String.valueOf("Subscription")), UNSCHEDULEDCARDONFILE(String.valueOf("UnscheduledCardOnFile")); - private static final Logger LOG = - Logger.getLogger(RecurringProcessingModelEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(RecurringProcessingModelEnum.class.getName()); private String value; RecurringProcessingModelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -331,11 +337,7 @@ public static RecurringProcessingModelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "RecurringProcessingModelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(RecurringProcessingModelEnum.values())); + LOG.warning("RecurringProcessingModelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RecurringProcessingModelEnum.values())); return null; } } @@ -365,19 +367,10 @@ public static RecurringProcessingModelEnum fromValue(String value) { private String shopperIP; /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ public enum ShopperInteractionEnum { + ECOMMERCE(String.valueOf("Ecommerce")), CONTAUTH(String.valueOf("ContAuth")), @@ -391,7 +384,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -412,11 +405,7 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ShopperInteractionEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -439,8 +428,7 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_SHOW_INSTALLMENT_AMOUNT = "showInstallmentAmount"; private Boolean showInstallmentAmount; - public static final String JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON = - "showRemovePaymentMethodButton"; + public static final String JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON = "showRemovePaymentMethodButton"; private Boolean showRemovePaymentMethodButton; public static final String JSON_PROPERTY_SOCIAL_SECURITY_NUMBER = "socialSecurityNumber"; @@ -456,12 +444,10 @@ public static ShopperInteractionEnum fromValue(String value) { private String store; /** - * Specifies how payment methods should be filtered based on the 'store' parameter: - - * 'exclusive': Only payment methods belonging to the specified 'store' are - * returned. - 'inclusive': Payment methods from the 'store' and those not - * associated with any other store are returned. + * Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. */ public enum StoreFiltrationModeEnum { + EXCLUSIVE(String.valueOf("exclusive")), INCLUSIVE(String.valueOf("inclusive")), @@ -473,7 +459,7 @@ public enum StoreFiltrationModeEnum { private String value; StoreFiltrationModeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -494,11 +480,7 @@ public static StoreFiltrationModeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StoreFiltrationModeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StoreFiltrationModeEnum.values())); + LOG.warning("StoreFiltrationModeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StoreFiltrationModeEnum.values())); return null; } } @@ -510,13 +492,10 @@ public static StoreFiltrationModeEnum fromValue(String value) { private Boolean storePaymentMethod; /** - * Indicates if the details of the payment method will be stored for the shopper. Possible values: - * * **disabled** – No details will be stored (default). * **askForConsent** – If the - * `shopperReference` is provided, the UI lets the shopper choose if they want their - * payment details to be stored. * **enabled** – If the `shopperReference` is provided, - * the details will be stored without asking the shopper for consent. + * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. */ public enum StorePaymentMethodModeEnum { + ASKFORCONSENT(String.valueOf("askForConsent")), DISABLED(String.valueOf("disabled")), @@ -528,7 +507,7 @@ public enum StorePaymentMethodModeEnum { private String value; StorePaymentMethodModeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -549,11 +528,7 @@ public static StorePaymentMethodModeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StorePaymentMethodModeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StorePaymentMethodModeEnum.values())); + LOG.warning("StorePaymentMethodModeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StorePaymentMethodModeEnum.values())); return null; } } @@ -570,21 +545,20 @@ public static StorePaymentMethodModeEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S2_REQUEST_DATA = "threeDS2RequestData"; private CheckoutSessionThreeDS2RequestData threeDS2RequestData; - public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = - "threeDSAuthenticationOnly"; - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = "threeDSAuthenticationOnly"; + @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. private Boolean threeDSAuthenticationOnly; public static final String JSON_PROPERTY_TRUSTED_SHOPPER = "trustedShopper"; private Boolean trustedShopper; - public CreateCheckoutSessionRequest() {} + public CreateCheckoutSessionRequest() { + } /** * accountInfo * - * @param accountInfo + * @param accountInfo * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest accountInfo(AccountInfo accountInfo) { @@ -594,8 +568,7 @@ public CreateCheckoutSessionRequest accountInfo(AccountInfo accountInfo) { /** * Get accountInfo - * - * @return accountInfo + * @return accountInfo */ @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -606,7 +579,7 @@ public AccountInfo getAccountInfo() { /** * accountInfo * - * @param accountInfo + * @param accountInfo */ @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -617,7 +590,7 @@ public void setAccountInfo(AccountInfo accountInfo) { /** * additionalAmount * - * @param additionalAmount + * @param additionalAmount * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest additionalAmount(Amount additionalAmount) { @@ -627,8 +600,7 @@ public CreateCheckoutSessionRequest additionalAmount(Amount additionalAmount) { /** * Get additionalAmount - * - * @return additionalAmount + * @return additionalAmount */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -639,7 +611,7 @@ public Amount getAdditionalAmount() { /** * additionalAmount * - * @param additionalAmount + * @param additionalAmount */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -648,13 +620,9 @@ public void setAdditionalAmount(Amount additionalAmount) { } /** - * This field contains additional data, which may be required for a particular payment request. - * The `additionalData` object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular payment request. The `additionalData` object consists of entries, each - * of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest additionalData(Map additionalData) { @@ -671,13 +639,8 @@ public CreateCheckoutSessionRequest putAdditionalDataItem(String key, String add } /** - * This field contains additional data, which may be required for a particular payment request. - * The `additionalData` object consists of entries, each of which includes the key and - * value. - * - * @return additionalData This field contains additional data, which may be required for a - * particular payment request. The `additionalData` object consists of entries, each - * of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * @return additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -686,13 +649,9 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular payment request. - * The `additionalData` object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular payment request. The `additionalData` object consists of entries, each - * of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -701,14 +660,9 @@ public void setAdditionalData(Map additionalData) { } /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their - * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer - * to payment methods, use their [payment method - * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest allowedPaymentMethods(List allowedPaymentMethods) { @@ -716,8 +670,7 @@ public CreateCheckoutSessionRequest allowedPaymentMethods(List allowedPa return this; } - public CreateCheckoutSessionRequest addAllowedPaymentMethodsItem( - String allowedPaymentMethodsItem) { + public CreateCheckoutSessionRequest addAllowedPaymentMethodsItem(String allowedPaymentMethodsItem) { if (this.allowedPaymentMethods == null) { this.allowedPaymentMethods = new ArrayList<>(); } @@ -726,14 +679,8 @@ public CreateCheckoutSessionRequest addAllowedPaymentMethodsItem( } /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their - * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` - * - * @return allowedPaymentMethods List of payment methods to be presented to the shopper. To refer - * to payment methods, use their [payment method - * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @return allowedPaymentMethods List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -742,14 +689,9 @@ public List getAllowedPaymentMethods() { } /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their - * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer - * to payment methods, use their [payment method - * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -760,7 +702,7 @@ public void setAllowedPaymentMethods(List allowedPaymentMethods) { /** * amount * - * @param amount + * @param amount * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest amount(Amount amount) { @@ -770,8 +712,7 @@ public CreateCheckoutSessionRequest amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -782,7 +723,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -793,7 +734,7 @@ public void setAmount(Amount amount) { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest applicationInfo(ApplicationInfo applicationInfo) { @@ -803,8 +744,7 @@ public CreateCheckoutSessionRequest applicationInfo(ApplicationInfo applicationI /** * Get applicationInfo - * - * @return applicationInfo + * @return applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -815,7 +755,7 @@ public ApplicationInfo getApplicationInfo() { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -826,7 +766,7 @@ public void setApplicationInfo(ApplicationInfo applicationInfo) { /** * authenticationData * - * @param authenticationData + * @param authenticationData * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest authenticationData(AuthenticationData authenticationData) { @@ -836,8 +776,7 @@ public CreateCheckoutSessionRequest authenticationData(AuthenticationData authen /** * Get authenticationData - * - * @return authenticationData + * @return authenticationData */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -848,7 +787,7 @@ public AuthenticationData getAuthenticationData() { /** * authenticationData * - * @param authenticationData + * @param authenticationData */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -859,7 +798,7 @@ public void setAuthenticationData(AuthenticationData authenticationData) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest billingAddress(BillingAddress billingAddress) { @@ -869,8 +808,7 @@ public CreateCheckoutSessionRequest billingAddress(BillingAddress billingAddress /** * Get billingAddress - * - * @return billingAddress + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -881,7 +819,7 @@ public BillingAddress getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -890,14 +828,9 @@ public void setBillingAddress(BillingAddress billingAddress) { } /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their - * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to - * payment methods, use their [payment method - * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest blockedPaymentMethods(List blockedPaymentMethods) { @@ -905,8 +838,7 @@ public CreateCheckoutSessionRequest blockedPaymentMethods(List blockedPa return this; } - public CreateCheckoutSessionRequest addBlockedPaymentMethodsItem( - String blockedPaymentMethodsItem) { + public CreateCheckoutSessionRequest addBlockedPaymentMethodsItem(String blockedPaymentMethodsItem) { if (this.blockedPaymentMethods == null) { this.blockedPaymentMethods = new ArrayList<>(); } @@ -915,14 +847,8 @@ public CreateCheckoutSessionRequest addBlockedPaymentMethodsItem( } /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their - * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` - * - * @return blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer - * to payment methods, use their [payment method - * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @return blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_BLOCKED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -931,14 +857,9 @@ public List getBlockedPaymentMethods() { } /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their - * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to - * payment methods, use their [payment method - * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_BLOCKED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -949,8 +870,7 @@ public void setBlockedPaymentMethods(List blockedPaymentMethods) { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, - * specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest captureDelayHours(Integer captureDelayHours) { @@ -960,9 +880,7 @@ public CreateCheckoutSessionRequest captureDelayHours(Integer captureDelayHours) /** * The delay between the authorisation and scheduled auto-capture, specified in hours. - * - * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, - * specified in hours. + * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -973,8 +891,7 @@ public Integer getCaptureDelayHours() { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, - * specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -983,15 +900,9 @@ public void setCaptureDelayHours(Integer captureDelayHours) { } /** - * The platform where a payment transaction takes place. This field is optional for filtering out - * payment methods that are only available on specific platforms. If this value is not set, then - * we will try to infer it from the `sdkVersion` or `token`. Possible values: - * * **iOS** * **Android** * **Web** + * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** * - * @param channel The platform where a payment transaction takes place. This field is optional for - * filtering out payment methods that are only available on specific platforms. If this value - * is not set, then we will try to infer it from the `sdkVersion` or - * `token`. Possible values: * **iOS** * **Android** * **Web** + * @param channel The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest channel(ChannelEnum channel) { @@ -1000,15 +911,8 @@ public CreateCheckoutSessionRequest channel(ChannelEnum channel) { } /** - * The platform where a payment transaction takes place. This field is optional for filtering out - * payment methods that are only available on specific platforms. If this value is not set, then - * we will try to infer it from the `sdkVersion` or `token`. Possible values: - * * **iOS** * **Android** * **Web** - * - * @return channel The platform where a payment transaction takes place. This field is optional - * for filtering out payment methods that are only available on specific platforms. If this - * value is not set, then we will try to infer it from the `sdkVersion` or - * `token`. Possible values: * **iOS** * **Android** * **Web** + * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** + * @return channel The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** */ @JsonProperty(JSON_PROPERTY_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1017,15 +921,9 @@ public ChannelEnum getChannel() { } /** - * The platform where a payment transaction takes place. This field is optional for filtering out - * payment methods that are only available on specific platforms. If this value is not set, then - * we will try to infer it from the `sdkVersion` or `token`. Possible values: - * * **iOS** * **Android** * **Web** + * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** * - * @param channel The platform where a payment transaction takes place. This field is optional for - * filtering out payment methods that are only available on specific platforms. If this value - * is not set, then we will try to infer it from the `sdkVersion` or - * `token`. Possible values: * **iOS** * **Android** * **Web** + * @param channel The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** */ @JsonProperty(JSON_PROPERTY_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1036,7 +934,7 @@ public void setChannel(ChannelEnum channel) { /** * company * - * @param company + * @param company * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest company(Company company) { @@ -1046,8 +944,7 @@ public CreateCheckoutSessionRequest company(Company company) { /** * Get company - * - * @return company + * @return company */ @JsonProperty(JSON_PROPERTY_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1058,7 +955,7 @@ public Company getCompany() { /** * company * - * @param company + * @param company */ @JsonProperty(JSON_PROPERTY_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1079,7 +976,6 @@ public CreateCheckoutSessionRequest countryCode(String countryCode) { /** * The shopper's two-letter country code. - * * @return countryCode The shopper's two-letter country code. */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @@ -1100,11 +996,9 @@ public void setCountryCode(String countryCode) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): - * YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest dateOfBirth(LocalDate dateOfBirth) { @@ -1113,11 +1007,8 @@ public CreateCheckoutSessionRequest dateOfBirth(LocalDate dateOfBirth) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): - * YYYY-MM-DD - * - * @return dateOfBirth The shopper's date of birth. Format - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @return dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1126,11 +1017,9 @@ public LocalDate getDateOfBirth() { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): - * YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1139,13 +1028,9 @@ public void setDateOfBirth(LocalDate dateOfBirth) { } /** - * The date and time when the purchased goods should be delivered. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. + * The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. * - * @param deliverAt The date and time when the purchased goods should be delivered. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. + * @param deliverAt The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest deliverAt(OffsetDateTime deliverAt) { @@ -1154,13 +1039,8 @@ public CreateCheckoutSessionRequest deliverAt(OffsetDateTime deliverAt) { } /** - * The date and time when the purchased goods should be delivered. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. - * - * @return deliverAt The date and time when the purchased goods should be delivered. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. + * The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * @return deliverAt The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_DELIVER_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1169,13 +1049,9 @@ public OffsetDateTime getDeliverAt() { } /** - * The date and time when the purchased goods should be delivered. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. + * The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. * - * @param deliverAt The date and time when the purchased goods should be delivered. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. + * @param deliverAt The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_DELIVER_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1186,7 +1062,7 @@ public void setDeliverAt(OffsetDateTime deliverAt) { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest deliveryAddress(DeliveryAddress deliveryAddress) { @@ -1196,8 +1072,7 @@ public CreateCheckoutSessionRequest deliveryAddress(DeliveryAddress deliveryAddr /** * Get deliveryAddress - * - * @return deliveryAddress + * @return deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1208,7 +1083,7 @@ public DeliveryAddress getDeliveryAddress() { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1217,13 +1092,9 @@ public void setDeliveryAddress(DeliveryAddress deliveryAddress) { } /** - * When true and `shopperReference` is provided, the shopper will be asked if the - * payment details should be stored for future [one-click - * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). * - * @param enableOneClick When true and `shopperReference` is provided, the shopper will - * be asked if the payment details should be stored for future [one-click - * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * @param enableOneClick When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest enableOneClick(Boolean enableOneClick) { @@ -1232,13 +1103,8 @@ public CreateCheckoutSessionRequest enableOneClick(Boolean enableOneClick) { } /** - * When true and `shopperReference` is provided, the shopper will be asked if the - * payment details should be stored for future [one-click - * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). - * - * @return enableOneClick When true and `shopperReference` is provided, the shopper will - * be asked if the payment details should be stored for future [one-click - * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * @return enableOneClick When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). */ @JsonProperty(JSON_PROPERTY_ENABLE_ONE_CLICK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1247,13 +1113,9 @@ public Boolean getEnableOneClick() { } /** - * When true and `shopperReference` is provided, the shopper will be asked if the - * payment details should be stored for future [one-click - * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). * - * @param enableOneClick When true and `shopperReference` is provided, the shopper will - * be asked if the payment details should be stored for future [one-click - * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * @param enableOneClick When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). */ @JsonProperty(JSON_PROPERTY_ENABLE_ONE_CLICK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1262,11 +1124,9 @@ public void setEnableOneClick(Boolean enableOneClick) { } /** - * When true and `shopperReference` is provided, the payment details will be tokenized - * for payouts. + * When true and `shopperReference` is provided, the payment details will be tokenized for payouts. * - * @param enablePayOut When true and `shopperReference` is provided, the payment details - * will be tokenized for payouts. + * @param enablePayOut When true and `shopperReference` is provided, the payment details will be tokenized for payouts. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest enablePayOut(Boolean enablePayOut) { @@ -1275,11 +1135,8 @@ public CreateCheckoutSessionRequest enablePayOut(Boolean enablePayOut) { } /** - * When true and `shopperReference` is provided, the payment details will be tokenized - * for payouts. - * - * @return enablePayOut When true and `shopperReference` is provided, the payment - * details will be tokenized for payouts. + * When true and `shopperReference` is provided, the payment details will be tokenized for payouts. + * @return enablePayOut When true and `shopperReference` is provided, the payment details will be tokenized for payouts. */ @JsonProperty(JSON_PROPERTY_ENABLE_PAY_OUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1288,11 +1145,9 @@ public Boolean getEnablePayOut() { } /** - * When true and `shopperReference` is provided, the payment details will be tokenized - * for payouts. + * When true and `shopperReference` is provided, the payment details will be tokenized for payouts. * - * @param enablePayOut When true and `shopperReference` is provided, the payment details - * will be tokenized for payouts. + * @param enablePayOut When true and `shopperReference` is provided, the payment details will be tokenized for payouts. */ @JsonProperty(JSON_PROPERTY_ENABLE_PAY_OUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1301,15 +1156,9 @@ public void setEnablePayOut(Boolean enablePayOut) { } /** - * When true and `shopperReference` is provided, the payment details will be stored for - * [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where - * the shopper is not present, such as subscription or automatic top-up payments. + * When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. * - * @param enableRecurring When true and `shopperReference` is provided, the payment - * details will be stored for [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) - * where the shopper is not present, such as subscription or automatic top-up payments. + * @param enableRecurring When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest enableRecurring(Boolean enableRecurring) { @@ -1318,15 +1167,8 @@ public CreateCheckoutSessionRequest enableRecurring(Boolean enableRecurring) { } /** - * When true and `shopperReference` is provided, the payment details will be stored for - * [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where - * the shopper is not present, such as subscription or automatic top-up payments. - * - * @return enableRecurring When true and `shopperReference` is provided, the payment - * details will be stored for [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) - * where the shopper is not present, such as subscription or automatic top-up payments. + * When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. + * @return enableRecurring When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. */ @JsonProperty(JSON_PROPERTY_ENABLE_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1335,15 +1177,9 @@ public Boolean getEnableRecurring() { } /** - * When true and `shopperReference` is provided, the payment details will be stored for - * [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where - * the shopper is not present, such as subscription or automatic top-up payments. + * When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. * - * @param enableRecurring When true and `shopperReference` is provided, the payment - * details will be stored for [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) - * where the shopper is not present, such as subscription or automatic top-up payments. + * @param enableRecurring When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. */ @JsonProperty(JSON_PROPERTY_ENABLE_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1352,15 +1188,9 @@ public void setEnableRecurring(Boolean enableRecurring) { } /** - * The date the session expires in - * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, - * the expiry date is set to 1 hour after session creation. You cannot set the session expiry to - * more than 24 hours after session creation. + * The date the session expires in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation. * - * @param expiresAt The date the session expires in - * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not - * specified, the expiry date is set to 1 hour after session creation. You cannot set the - * session expiry to more than 24 hours after session creation. + * @param expiresAt The date the session expires in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest expiresAt(OffsetDateTime expiresAt) { @@ -1369,15 +1199,8 @@ public CreateCheckoutSessionRequest expiresAt(OffsetDateTime expiresAt) { } /** - * The date the session expires in - * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, - * the expiry date is set to 1 hour after session creation. You cannot set the session expiry to - * more than 24 hours after session creation. - * - * @return expiresAt The date the session expires in - * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not - * specified, the expiry date is set to 1 hour after session creation. You cannot set the - * session expiry to more than 24 hours after session creation. + * The date the session expires in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation. + * @return expiresAt The date the session expires in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1386,15 +1209,9 @@ public OffsetDateTime getExpiresAt() { } /** - * The date the session expires in - * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, - * the expiry date is set to 1 hour after session creation. You cannot set the session expiry to - * more than 24 hours after session creation. + * The date the session expires in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation. * - * @param expiresAt The date the session expires in - * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not - * specified, the expiry date is set to 1 hour after session creation. You cannot set the - * session expiry to more than 24 hours after session creation. + * @param expiresAt The date the session expires in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1405,7 +1222,7 @@ public void setExpiresAt(OffsetDateTime expiresAt) { /** * fundOrigin * - * @param fundOrigin + * @param fundOrigin * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest fundOrigin(FundOrigin fundOrigin) { @@ -1415,8 +1232,7 @@ public CreateCheckoutSessionRequest fundOrigin(FundOrigin fundOrigin) { /** * Get fundOrigin - * - * @return fundOrigin + * @return fundOrigin */ @JsonProperty(JSON_PROPERTY_FUND_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1427,7 +1243,7 @@ public FundOrigin getFundOrigin() { /** * fundOrigin * - * @param fundOrigin + * @param fundOrigin */ @JsonProperty(JSON_PROPERTY_FUND_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1438,7 +1254,7 @@ public void setFundOrigin(FundOrigin fundOrigin) { /** * fundRecipient * - * @param fundRecipient + * @param fundRecipient * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest fundRecipient(FundRecipient fundRecipient) { @@ -1448,8 +1264,7 @@ public CreateCheckoutSessionRequest fundRecipient(FundRecipient fundRecipient) { /** * Get fundRecipient - * - * @return fundRecipient + * @return fundRecipient */ @JsonProperty(JSON_PROPERTY_FUND_RECIPIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1460,7 +1275,7 @@ public FundRecipient getFundRecipient() { /** * fundRecipient * - * @param fundRecipient + * @param fundRecipient */ @JsonProperty(JSON_PROPERTY_FUND_RECIPIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1469,25 +1284,17 @@ public void setFundRecipient(FundRecipient fundRecipient) { } /** - * A set of key-value pairs that specifies the installment options available per payment method. - * The key must be a payment method name in lowercase. For example, **card** to specify - * installment options for all cards, or **visa** or **mc**. The value must be an object - * containing the installment options. + * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. * - * @param installmentOptions A set of key-value pairs that specifies the installment options - * available per payment method. The key must be a payment method name in lowercase. For - * example, **card** to specify installment options for all cards, or **visa** or **mc**. The - * value must be an object containing the installment options. + * @param installmentOptions A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ - public CreateCheckoutSessionRequest installmentOptions( - Map installmentOptions) { + public CreateCheckoutSessionRequest installmentOptions(Map installmentOptions) { this.installmentOptions = installmentOptions; return this; } - public CreateCheckoutSessionRequest putInstallmentOptionsItem( - String key, CheckoutSessionInstallmentOption installmentOptionsItem) { + public CreateCheckoutSessionRequest putInstallmentOptionsItem(String key, CheckoutSessionInstallmentOption installmentOptionsItem) { if (this.installmentOptions == null) { this.installmentOptions = new HashMap<>(); } @@ -1496,15 +1303,8 @@ public CreateCheckoutSessionRequest putInstallmentOptionsItem( } /** - * A set of key-value pairs that specifies the installment options available per payment method. - * The key must be a payment method name in lowercase. For example, **card** to specify - * installment options for all cards, or **visa** or **mc**. The value must be an object - * containing the installment options. - * - * @return installmentOptions A set of key-value pairs that specifies the installment options - * available per payment method. The key must be a payment method name in lowercase. For - * example, **card** to specify installment options for all cards, or **visa** or **mc**. The - * value must be an object containing the installment options. + * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. + * @return installmentOptions A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1513,31 +1313,20 @@ public Map getInstallmentOptions() { } /** - * A set of key-value pairs that specifies the installment options available per payment method. - * The key must be a payment method name in lowercase. For example, **card** to specify - * installment options for all cards, or **visa** or **mc**. The value must be an object - * containing the installment options. + * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. * - * @param installmentOptions A set of key-value pairs that specifies the installment options - * available per payment method. The key must be a payment method name in lowercase. For - * example, **card** to specify installment options for all cards, or **visa** or **mc**. The - * value must be an object containing the installment options. + * @param installmentOptions A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentOptions( - Map installmentOptions) { + public void setInstallmentOptions(Map installmentOptions) { this.installmentOptions = installmentOptions; } /** - * Price and product information about the purchased items, to be included on the invoice sent to - * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, - * Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. * - * @param lineItems Price and product information about the purchased items, to be included on the - * invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, - * Clearpay, Klarna, Ratepay, and Riverty. + * @param lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest lineItems(List lineItems) { @@ -1554,13 +1343,8 @@ public CreateCheckoutSessionRequest addLineItemsItem(LineItem lineItemsItem) { } /** - * Price and product information about the purchased items, to be included on the invoice sent to - * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, - * Ratepay, and Riverty. - * - * @return lineItems Price and product information about the purchased items, to be included on - * the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, - * Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * @return lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1569,13 +1353,9 @@ public List getLineItems() { } /** - * Price and product information about the purchased items, to be included on the invoice sent to - * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, - * Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. * - * @param lineItems Price and product information about the purchased items, to be included on the - * invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, - * Clearpay, Klarna, Ratepay, and Riverty. + * @param lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1586,7 +1366,7 @@ public void setLineItems(List lineItems) { /** * mandate * - * @param mandate + * @param mandate * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest mandate(Mandate mandate) { @@ -1596,8 +1376,7 @@ public CreateCheckoutSessionRequest mandate(Mandate mandate) { /** * Get mandate - * - * @return mandate + * @return mandate */ @JsonProperty(JSON_PROPERTY_MANDATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1608,7 +1387,7 @@ public Mandate getMandate() { /** * mandate * - * @param mandate + * @param mandate */ @JsonProperty(JSON_PROPERTY_MANDATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1617,13 +1396,9 @@ public void setMandate(Mandate mandate) { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a - * four-digit number, which relates to a particular market segment. This code reflects the - * predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) - * (MCC) is a four-digit number, which relates to a particular market segment. This code - * reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest mcc(String mcc) { @@ -1632,13 +1407,8 @@ public CreateCheckoutSessionRequest mcc(String mcc) { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a - * four-digit number, which relates to a particular market segment. This code reflects the - * predominant activity that is conducted by the merchant. - * - * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) - * (MCC) is a four-digit number, which relates to a particular market segment. This code - * reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1647,13 +1417,9 @@ public String getMcc() { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a - * four-digit number, which relates to a particular market segment. This code reflects the - * predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) - * (MCC) is a four-digit number, which relates to a particular market segment. This code - * reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1664,8 +1430,7 @@ public void setMcc(String mcc) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest merchantAccount(String merchantAccount) { @@ -1675,9 +1440,7 @@ public CreateCheckoutSessionRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * - * @return merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @return merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1688,8 +1451,7 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1698,23 +1460,9 @@ public void setMerchantAccount(String merchantAccount) { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. - * order auth-rate). The reference should be unique per billing cycle. The same merchant order - * reference should never be reused after the first authorised attempt. If used, this field should - * be supplied for all incoming authorisations. > We strongly recommend you send the - * `merchantOrderReference` value to benefit from linking payment requests when - * authorisation retries take place. In addition, we recommend you provide - * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. - * - * @param merchantOrderReference This reference allows linking multiple transactions to each other - * for reporting purposes (i.e. order auth-rate). The reference should be unique per billing - * cycle. The same merchant order reference should never be reused after the first authorised - * attempt. If used, this field should be supplied for all incoming authorisations. > We - * strongly recommend you send the `merchantOrderReference` value to benefit from - * linking payment requests when authorisation retries take place. In addition, we recommend - * you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * + * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest merchantOrderReference(String merchantOrderReference) { @@ -1723,24 +1471,8 @@ public CreateCheckoutSessionRequest merchantOrderReference(String merchantOrderR } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. - * order auth-rate). The reference should be unique per billing cycle. The same merchant order - * reference should never be reused after the first authorised attempt. If used, this field should - * be supplied for all incoming authorisations. > We strongly recommend you send the - * `merchantOrderReference` value to benefit from linking payment requests when - * authorisation retries take place. In addition, we recommend you provide - * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. - * - * @return merchantOrderReference This reference allows linking multiple transactions to each - * other for reporting purposes (i.e. order auth-rate). The reference should be unique per - * billing cycle. The same merchant order reference should never be reused after the first - * authorised attempt. If used, this field should be supplied for all incoming authorisations. - * > We strongly recommend you send the `merchantOrderReference` value to benefit - * from linking payment requests when authorisation retries take place. In addition, we - * recommend you provide `retry.orderAttemptNumber`, - * `retry.chainAttemptNumber`, and `retry.skipRetry` values in - * `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * @return merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1749,23 +1481,9 @@ public String getMerchantOrderReference() { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. - * order auth-rate). The reference should be unique per billing cycle. The same merchant order - * reference should never be reused after the first authorised attempt. If used, this field should - * be supplied for all incoming authorisations. > We strongly recommend you send the - * `merchantOrderReference` value to benefit from linking payment requests when - * authorisation retries take place. In addition, we recommend you provide - * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. * - * @param merchantOrderReference This reference allows linking multiple transactions to each other - * for reporting purposes (i.e. order auth-rate). The reference should be unique per billing - * cycle. The same merchant order reference should never be reused after the first authorised - * attempt. If used, this field should be supplied for all incoming authorisations. > We - * strongly recommend you send the `merchantOrderReference` value to benefit from - * linking payment requests when authorisation retries take place. In addition, we recommend - * you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1774,13 +1492,9 @@ public void setMerchantOrderReference(String merchantOrderReference) { } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 - * key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per - * value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per value. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: - * * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 - * characters per value. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per value. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest metadata(Map metadata) { @@ -1797,13 +1511,8 @@ public CreateCheckoutSessionRequest putMetadataItem(String key, String metadataI } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 - * key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per - * value. - * - * @return metadata Metadata consists of entries, each of which includes a key and a value. - * Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * - * Maximum 80 characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per value. + * @return metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per value. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1812,13 +1521,9 @@ public Map getMetadata() { } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 - * key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per - * value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per value. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: - * * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 - * characters per value. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per value. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1827,11 +1532,9 @@ public void setMetadata(Map metadata) { } /** - * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in - * or Components integration * **hosted**: Hosted Checkout integration + * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration * - * @param mode Indicates the type of front end integration. Possible values: * **embedded** - * (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration + * @param mode Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest mode(ModeEnum mode) { @@ -1840,11 +1543,8 @@ public CreateCheckoutSessionRequest mode(ModeEnum mode) { } /** - * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in - * or Components integration * **hosted**: Hosted Checkout integration - * - * @return mode Indicates the type of front end integration. Possible values: * **embedded** - * (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration + * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration + * @return mode Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration */ @JsonProperty(JSON_PROPERTY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1853,11 +1553,9 @@ public ModeEnum getMode() { } /** - * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in - * or Components integration * **hosted**: Hosted Checkout integration + * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration * - * @param mode Indicates the type of front end integration. Possible values: * **embedded** - * (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration + * @param mode Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration */ @JsonProperty(JSON_PROPERTY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1868,7 +1566,7 @@ public void setMode(ModeEnum mode) { /** * mpiData * - * @param mpiData + * @param mpiData * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest mpiData(ThreeDSecureData mpiData) { @@ -1878,8 +1576,7 @@ public CreateCheckoutSessionRequest mpiData(ThreeDSecureData mpiData) { /** * Get mpiData - * - * @return mpiData + * @return mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1890,7 +1587,7 @@ public ThreeDSecureData getMpiData() { /** * mpiData * - * @param mpiData + * @param mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1901,19 +1598,17 @@ public void setMpiData(ThreeDSecureData mpiData) { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ - public CreateCheckoutSessionRequest platformChargebackLogic( - PlatformChargebackLogic platformChargebackLogic) { + public CreateCheckoutSessionRequest platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) { this.platformChargebackLogic = platformChargebackLogic; return this; } /** * Get platformChargebackLogic - * - * @return platformChargebackLogic + * @return platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1924,7 +1619,7 @@ public PlatformChargebackLogic getPlatformChargebackLogic() { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1935,8 +1630,7 @@ public void setPlatformChargebackLogic(PlatformChargebackLogic platformChargebac /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. * - * @param recurringExpiry Date after which no further authorisations shall be performed. Only for - * 3D Secure 2. + * @param recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest recurringExpiry(String recurringExpiry) { @@ -1946,9 +1640,7 @@ public CreateCheckoutSessionRequest recurringExpiry(String recurringExpiry) { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. - * - * @return recurringExpiry Date after which no further authorisations shall be performed. Only for - * 3D Secure 2. + * @return recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1959,8 +1651,7 @@ public String getRecurringExpiry() { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. * - * @param recurringExpiry Date after which no further authorisations shall be performed. Only for - * 3D Secure 2. + * @param recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1981,7 +1672,6 @@ public CreateCheckoutSessionRequest recurringFrequency(String recurringFrequency /** * Minimum number of days between authorisations. Only for 3D Secure 2. - * * @return recurringFrequency Minimum number of days between authorisations. Only for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY) @@ -2002,53 +1692,19 @@ public void setRecurringFrequency(String recurringFrequency) { } /** - * Defines a recurring payment type. Required when creating a token to store payment details. - * Allowed values: * `Subscription` – A transaction for a fixed or variable amount, - * which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) - * transaction, card details are stored to enable one-click or omnichannel journeys, or simply to - * streamline the checkout process. Any subscription not following a fixed schedule is also - * considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled - * card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or - * have variable amounts. For example, automatic top-ups when a cardholder's balance drops - * below a certain amount. - * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a - * token to store payment details. Allowed values: * `Subscription` – A transaction - * for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – - * With a card-on-file (CoF) transaction, card details are stored to enable one-click or - * omnichannel journeys, or simply to streamline the checkout process. Any subscription not - * following a fixed schedule is also considered a card-on-file transaction. * - * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a - * transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, - * automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ - public CreateCheckoutSessionRequest recurringProcessingModel( - RecurringProcessingModelEnum recurringProcessingModel) { + public CreateCheckoutSessionRequest recurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) { this.recurringProcessingModel = recurringProcessingModel; return this; } /** - * Defines a recurring payment type. Required when creating a token to store payment details. - * Allowed values: * `Subscription` – A transaction for a fixed or variable amount, - * which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) - * transaction, card details are stored to enable one-click or omnichannel journeys, or simply to - * streamline the checkout process. Any subscription not following a fixed schedule is also - * considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled - * card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or - * have variable amounts. For example, automatic top-ups when a cardholder's balance drops - * below a certain amount. - * - * @return recurringProcessingModel Defines a recurring payment type. Required when creating a - * token to store payment details. Allowed values: * `Subscription` – A transaction - * for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – - * With a card-on-file (CoF) transaction, card details are stored to enable one-click or - * omnichannel journeys, or simply to streamline the checkout process. Any subscription not - * following a fixed schedule is also considered a card-on-file transaction. * - * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a - * transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, - * automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * @return recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2057,25 +1713,9 @@ public RecurringProcessingModelEnum getRecurringProcessingModel() { } /** - * Defines a recurring payment type. Required when creating a token to store payment details. - * Allowed values: * `Subscription` – A transaction for a fixed or variable amount, - * which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) - * transaction, card details are stored to enable one-click or omnichannel journeys, or simply to - * streamline the checkout process. Any subscription not following a fixed schedule is also - * considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled - * card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or - * have variable amounts. For example, automatic top-ups when a cardholder's balance drops - * below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a - * token to store payment details. Allowed values: * `Subscription` – A transaction - * for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – - * With a card-on-file (CoF) transaction, card details are stored to enable one-click or - * omnichannel journeys, or simply to streamline the checkout process. Any subscription not - * following a fixed schedule is also considered a card-on-file transaction. * - * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a - * transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, - * automatic top-ups when a cardholder's balance drops below a certain amount. + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2086,8 +1726,7 @@ public void setRecurringProcessingModel(RecurringProcessingModelEnum recurringPr /** * Specifies the redirect method (GET or POST) when redirecting back from the issuer. * - * @param redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting - * back from the issuer. + * @param redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting back from the issuer. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest redirectFromIssuerMethod(String redirectFromIssuerMethod) { @@ -2097,9 +1736,7 @@ public CreateCheckoutSessionRequest redirectFromIssuerMethod(String redirectFrom /** * Specifies the redirect method (GET or POST) when redirecting back from the issuer. - * - * @return redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting - * back from the issuer. + * @return redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting back from the issuer. */ @JsonProperty(JSON_PROPERTY_REDIRECT_FROM_ISSUER_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2110,8 +1747,7 @@ public String getRedirectFromIssuerMethod() { /** * Specifies the redirect method (GET or POST) when redirecting back from the issuer. * - * @param redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting - * back from the issuer. + * @param redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting back from the issuer. */ @JsonProperty(JSON_PROPERTY_REDIRECT_FROM_ISSUER_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2122,8 +1758,7 @@ public void setRedirectFromIssuerMethod(String redirectFromIssuerMethod) { /** * Specifies the redirect method (GET or POST) when redirecting to the issuer. * - * @param redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to - * the issuer. + * @param redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to the issuer. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest redirectToIssuerMethod(String redirectToIssuerMethod) { @@ -2133,9 +1768,7 @@ public CreateCheckoutSessionRequest redirectToIssuerMethod(String redirectToIssu /** * Specifies the redirect method (GET or POST) when redirecting to the issuer. - * - * @return redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to - * the issuer. + * @return redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to the issuer. */ @JsonProperty(JSON_PROPERTY_REDIRECT_TO_ISSUER_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2146,8 +1779,7 @@ public String getRedirectToIssuerMethod() { /** * Specifies the redirect method (GET or POST) when redirecting to the issuer. * - * @param redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to - * the issuer. + * @param redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to the issuer. */ @JsonProperty(JSON_PROPERTY_REDIRECT_TO_ISSUER_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2168,7 +1800,6 @@ public CreateCheckoutSessionRequest reference(String reference) { /** * The reference to uniquely identify a payment. - * * @return reference The reference to uniquely identify a payment. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -2189,36 +1820,9 @@ public void setReference(String reference) { } /** - * The URL to return to in case of a redirection. The format depends on the channel. * For web, - * include the protocol `http://` or `https://`. You can also include your own - * additional query parameters, for example, shopper ID or order reference number. Example: - * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the - * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple - * Developer - * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). - * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your - * app. You can configure it with an [intent - * filter](https://developer.android.com/guide/components/intents-filters). Example: - * `my-app://your.package.name` If the URL to return to includes non-ASCII characters, - * like spaces or special letters, URL encode the value. We strongly recommend that you use a - * maximum of 1024 characters. > The URL must not include personally identifiable information - * (PII), for example name or email address. - * - * @param returnUrl The URL to return to in case of a redirection. The format depends on the - * channel. * For web, include the protocol `http://` or `https://`. You - * can also include your own additional query parameters, for example, shopper ID or order - * reference number. Example: - * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use - * the custom URL for your app. To know more about setting custom URL schemes, refer to the - * [Apple Developer - * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). - * Example: `my-app://` * For Android, use a custom URL handled by an Activity on - * your app. You can configure it with an [intent - * filter](https://developer.android.com/guide/components/intents-filters). Example: - * `my-app://your.package.name` If the URL to return to includes non-ASCII - * characters, like spaces or special letters, URL encode the value. We strongly recommend - * that you use a maximum of 1024 characters. > The URL must not include personally - * identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. + * + * @param returnUrl The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest returnUrl(String returnUrl) { @@ -2227,36 +1831,8 @@ public CreateCheckoutSessionRequest returnUrl(String returnUrl) { } /** - * The URL to return to in case of a redirection. The format depends on the channel. * For web, - * include the protocol `http://` or `https://`. You can also include your own - * additional query parameters, for example, shopper ID or order reference number. Example: - * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the - * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple - * Developer - * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). - * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your - * app. You can configure it with an [intent - * filter](https://developer.android.com/guide/components/intents-filters). Example: - * `my-app://your.package.name` If the URL to return to includes non-ASCII characters, - * like spaces or special letters, URL encode the value. We strongly recommend that you use a - * maximum of 1024 characters. > The URL must not include personally identifiable information - * (PII), for example name or email address. - * - * @return returnUrl The URL to return to in case of a redirection. The format depends on the - * channel. * For web, include the protocol `http://` or `https://`. You - * can also include your own additional query parameters, for example, shopper ID or order - * reference number. Example: - * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use - * the custom URL for your app. To know more about setting custom URL schemes, refer to the - * [Apple Developer - * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). - * Example: `my-app://` * For Android, use a custom URL handled by an Activity on - * your app. You can configure it with an [intent - * filter](https://developer.android.com/guide/components/intents-filters). Example: - * `my-app://your.package.name` If the URL to return to includes non-ASCII - * characters, like spaces or special letters, URL encode the value. We strongly recommend - * that you use a maximum of 1024 characters. > The URL must not include personally - * identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. + * @return returnUrl The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. */ @JsonProperty(JSON_PROPERTY_RETURN_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2265,36 +1841,9 @@ public String getReturnUrl() { } /** - * The URL to return to in case of a redirection. The format depends on the channel. * For web, - * include the protocol `http://` or `https://`. You can also include your own - * additional query parameters, for example, shopper ID or order reference number. Example: - * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the - * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple - * Developer - * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). - * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your - * app. You can configure it with an [intent - * filter](https://developer.android.com/guide/components/intents-filters). Example: - * `my-app://your.package.name` If the URL to return to includes non-ASCII characters, - * like spaces or special letters, URL encode the value. We strongly recommend that you use a - * maximum of 1024 characters. > The URL must not include personally identifiable information - * (PII), for example name or email address. - * - * @param returnUrl The URL to return to in case of a redirection. The format depends on the - * channel. * For web, include the protocol `http://` or `https://`. You - * can also include your own additional query parameters, for example, shopper ID or order - * reference number. Example: - * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use - * the custom URL for your app. To know more about setting custom URL schemes, refer to the - * [Apple Developer - * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). - * Example: `my-app://` * For Android, use a custom URL handled by an Activity on - * your app. You can configure it with an [intent - * filter](https://developer.android.com/guide/components/intents-filters). Example: - * `my-app://your.package.name` If the URL to return to includes non-ASCII - * characters, like spaces or special letters, URL encode the value. We strongly recommend - * that you use a maximum of 1024 characters. > The URL must not include personally - * identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. + * + * @param returnUrl The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. */ @JsonProperty(JSON_PROPERTY_RETURN_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2305,7 +1854,7 @@ public void setReturnUrl(String returnUrl) { /** * riskData * - * @param riskData + * @param riskData * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest riskData(RiskData riskData) { @@ -2315,8 +1864,7 @@ public CreateCheckoutSessionRequest riskData(RiskData riskData) { /** * Get riskData - * - * @return riskData + * @return riskData */ @JsonProperty(JSON_PROPERTY_RISK_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2327,7 +1875,7 @@ public RiskData getRiskData() { /** * riskData * - * @param riskData + * @param riskData */ @JsonProperty(JSON_PROPERTY_RISK_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2348,7 +1896,6 @@ public CreateCheckoutSessionRequest shopperEmail(String shopperEmail) { /** * The shopper's email address. - * * @return shopperEmail The shopper's email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -2369,22 +1916,9 @@ public void setShopperEmail(String shopperEmail) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks). > - * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and - * mobile integrations, if you did not include the `shopperEmail`. For native mobile - * integrations, the field is required to support cases where authentication is routed to the - * redirect flow. This field is also mandatory for some merchants depending on your business - * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it - * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks). > Required for Visa and JCB transactions that require 3D Secure - * 2 authentication for all web and mobile integrations, if you did not include the - * `shopperEmail`. For native mobile integrations, the field is required to support - * cases where authentication is routed to the redirect flow. This field is also mandatory for - * some merchants depending on your business model. For more information, [contact - * Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest shopperIP(String shopperIP) { @@ -2393,22 +1927,8 @@ public CreateCheckoutSessionRequest shopperIP(String shopperIP) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks). > - * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and - * mobile integrations, if you did not include the `shopperEmail`. For native mobile - * integrations, the field is required to support cases where authentication is routed to the - * redirect flow. This field is also mandatory for some merchants depending on your business - * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). - * - * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it - * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks). > Required for Visa and JCB transactions that require 3D Secure - * 2 authentication for all web and mobile integrations, if you did not include the - * `shopperEmail`. For native mobile integrations, the field is required to support - * cases where authentication is routed to the redirect flow. This field is also mandatory for - * some merchants depending on your business model. For more information, [contact - * Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2417,22 +1937,9 @@ public String getShopperIP() { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks). > - * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and - * mobile integrations, if you did not include the `shopperEmail`. For native mobile - * integrations, the field is required to support cases where authentication is routed to the - * redirect flow. This field is also mandatory for some merchants depending on your business - * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it - * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks). > Required for Visa and JCB transactions that require 3D Secure - * 2 authentication for all web and mobile integrations, if you did not include the - * `shopperEmail`. For native mobile integrations, the field is required to support - * cases where authentication is routed to the redirect flow. This field is also mandatory for - * some merchants depending on your business model. For more information, [contact - * Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2441,63 +1948,19 @@ public void setShopperIP(String shopperIP) { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. - * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ - public CreateCheckoutSessionRequest shopperInteraction( - ShopperInteractionEnum shopperInteraction) { + public CreateCheckoutSessionRequest shopperInteraction(ShopperInteractionEnum shopperInteraction) { this.shopperInteraction = shopperInteraction; return this; } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. - * - * @return shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * @return shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2506,30 +1969,9 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. - * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2538,11 +1980,9 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The combination of a language code and a country code to specify the language to be used in the payment. * - * @param shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest shopperLocale(String shopperLocale) { @@ -2551,11 +1991,8 @@ public CreateCheckoutSessionRequest shopperLocale(String shopperLocale) { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. - * - * @return shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the payment. + * @return shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2564,11 +2001,9 @@ public String getShopperLocale() { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The combination of a language code and a country code to specify the language to be used in the payment. * - * @param shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2579,7 +2014,7 @@ public void setShopperLocale(String shopperLocale) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest shopperName(Name shopperName) { @@ -2589,8 +2024,7 @@ public CreateCheckoutSessionRequest shopperName(Name shopperName) { /** * Get shopperName - * - * @return shopperName + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2601,7 +2035,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2610,14 +2044,9 @@ public void setShopperName(Name shopperName) { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. The value - * is case-sensitive and must be at least three characters. > Your reference must not include - * personally identifiable information (PII) such as name or email address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * - * @param shopperReference Your reference to uniquely identify this shopper, for example user ID - * or account ID. The value is case-sensitive and must be at least three characters. > Your - * reference must not include personally identifiable information (PII) such as name or email - * address. + * @param shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest shopperReference(String shopperReference) { @@ -2626,14 +2055,8 @@ public CreateCheckoutSessionRequest shopperReference(String shopperReference) { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. The value - * is case-sensitive and must be at least three characters. > Your reference must not include - * personally identifiable information (PII) such as name or email address. - * - * @return shopperReference Your reference to uniquely identify this shopper, for example user ID - * or account ID. The value is case-sensitive and must be at least three characters. > Your - * reference must not include personally identifiable information (PII) such as name or email - * address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @return shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2642,14 +2065,9 @@ public String getShopperReference() { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. The value - * is case-sensitive and must be at least three characters. > Your reference must not include - * personally identifiable information (PII) such as name or email address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * - * @param shopperReference Your reference to uniquely identify this shopper, for example user ID - * or account ID. The value is case-sensitive and must be at least three characters. > Your - * reference must not include personally identifiable information (PII) such as name or email - * address. + * @param shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2658,14 +2076,9 @@ public void setShopperReference(String shopperReference) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 - * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, - * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend - * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed - * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * - * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest shopperStatement(String shopperStatement) { @@ -2674,14 +2087,8 @@ public CreateCheckoutSessionRequest shopperStatement(String shopperStatement) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 - * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, - * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. - * - * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend - * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed - * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * - * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2690,14 +2097,9 @@ public String getShopperStatement() { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 - * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, - * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend - * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed - * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * - * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2718,7 +2120,6 @@ public CreateCheckoutSessionRequest showInstallmentAmount(Boolean showInstallmen /** * Set to true to show the payment amount per installment. - * * @return showInstallmentAmount Set to true to show the payment amount per installment. */ @JsonProperty(JSON_PROPERTY_SHOW_INSTALLMENT_AMOUNT) @@ -2741,21 +2142,17 @@ public void setShowInstallmentAmount(Boolean showInstallmentAmount) { /** * Set to **true** to show a button that lets the shopper remove a stored payment method. * - * @param showRemovePaymentMethodButton Set to **true** to show a button that lets the shopper - * remove a stored payment method. + * @param showRemovePaymentMethodButton Set to **true** to show a button that lets the shopper remove a stored payment method. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ - public CreateCheckoutSessionRequest showRemovePaymentMethodButton( - Boolean showRemovePaymentMethodButton) { + public CreateCheckoutSessionRequest showRemovePaymentMethodButton(Boolean showRemovePaymentMethodButton) { this.showRemovePaymentMethodButton = showRemovePaymentMethodButton; return this; } /** * Set to **true** to show a button that lets the shopper remove a stored payment method. - * - * @return showRemovePaymentMethodButton Set to **true** to show a button that lets the shopper - * remove a stored payment method. + * @return showRemovePaymentMethodButton Set to **true** to show a button that lets the shopper remove a stored payment method. */ @JsonProperty(JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2766,8 +2163,7 @@ public Boolean getShowRemovePaymentMethodButton() { /** * Set to **true** to show a button that lets the shopper remove a stored payment method. * - * @param showRemovePaymentMethodButton Set to **true** to show a button that lets the shopper - * remove a stored payment method. + * @param showRemovePaymentMethodButton Set to **true** to show a button that lets the shopper remove a stored payment method. */ @JsonProperty(JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2788,7 +2184,6 @@ public CreateCheckoutSessionRequest socialSecurityNumber(String socialSecurityNu /** * The shopper's social security number. - * * @return socialSecurityNumber The shopper's social security number. */ @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER) @@ -2809,11 +2204,9 @@ public void setSocialSecurityNumber(String socialSecurityNumber) { } /** - * Boolean value indicating whether the card payment method should be split into separate debit - * and credit options. + * Boolean value indicating whether the card payment method should be split into separate debit and credit options. * - * @param splitCardFundingSources Boolean value indicating whether the card payment method should - * be split into separate debit and credit options. + * @param splitCardFundingSources Boolean value indicating whether the card payment method should be split into separate debit and credit options. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest splitCardFundingSources(Boolean splitCardFundingSources) { @@ -2822,11 +2215,8 @@ public CreateCheckoutSessionRequest splitCardFundingSources(Boolean splitCardFun } /** - * Boolean value indicating whether the card payment method should be split into separate debit - * and credit options. - * - * @return splitCardFundingSources Boolean value indicating whether the card payment method should - * be split into separate debit and credit options. + * Boolean value indicating whether the card payment method should be split into separate debit and credit options. + * @return splitCardFundingSources Boolean value indicating whether the card payment method should be split into separate debit and credit options. */ @JsonProperty(JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2835,11 +2225,9 @@ public Boolean getSplitCardFundingSources() { } /** - * Boolean value indicating whether the card payment method should be split into separate debit - * and credit options. + * Boolean value indicating whether the card payment method should be split into separate debit and credit options. * - * @param splitCardFundingSources Boolean value indicating whether the card payment method should - * be split into separate debit and credit options. + * @param splitCardFundingSources Boolean value indicating whether the card payment method should be split into separate debit and credit options. */ @JsonProperty(JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2848,17 +2236,9 @@ public void setSplitCardFundingSources(Boolean splitCardFundingSources) { } /** - * An array of objects specifying how to split a payment when using [Adyen for - * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), - * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), - * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). * - * @param splits An array of objects specifying how to split a payment when using [Adyen for - * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), - * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), - * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * @param splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest splits(List splits) { @@ -2875,17 +2255,8 @@ public CreateCheckoutSessionRequest addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how to split a payment when using [Adyen for - * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), - * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), - * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). - * - * @return splits An array of objects specifying how to split a payment when using [Adyen for - * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), - * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), - * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * @return splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2894,17 +2265,9 @@ public List getSplits() { } /** - * An array of objects specifying how to split a payment when using [Adyen for - * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), - * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), - * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). * - * @param splits An array of objects specifying how to split a payment when using [Adyen for - * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), - * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), - * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * @param splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2913,22 +2276,9 @@ public void setSplits(List splits) { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. * - * @param store Required for Adyen for Platforms integrations if you are a platform model. This is - * your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest store(String store) { @@ -2937,22 +2287,8 @@ public CreateCheckoutSessionRequest store(String store) { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. - * - * @return store Required for Adyen for Platforms integrations if you are a platform model. This - * is your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * @return store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2961,22 +2297,9 @@ public String getStore() { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. * - * @param store Required for Adyen for Platforms integrations if you are a platform model. This is - * your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2985,33 +2308,19 @@ public void setStore(String store) { } /** - * Specifies how payment methods should be filtered based on the 'store' parameter: - - * 'exclusive': Only payment methods belonging to the specified 'store' are - * returned. - 'inclusive': Payment methods from the 'store' and those not - * associated with any other store are returned. + * Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. * - * @param storeFiltrationMode Specifies how payment methods should be filtered based on the - * 'store' parameter: - 'exclusive': Only payment methods belonging to the - * specified 'store' are returned. - 'inclusive': Payment methods from the - * 'store' and those not associated with any other store are returned. + * @param storeFiltrationMode Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ - public CreateCheckoutSessionRequest storeFiltrationMode( - StoreFiltrationModeEnum storeFiltrationMode) { + public CreateCheckoutSessionRequest storeFiltrationMode(StoreFiltrationModeEnum storeFiltrationMode) { this.storeFiltrationMode = storeFiltrationMode; return this; } /** - * Specifies how payment methods should be filtered based on the 'store' parameter: - - * 'exclusive': Only payment methods belonging to the specified 'store' are - * returned. - 'inclusive': Payment methods from the 'store' and those not - * associated with any other store are returned. - * - * @return storeFiltrationMode Specifies how payment methods should be filtered based on the - * 'store' parameter: - 'exclusive': Only payment methods belonging to the - * specified 'store' are returned. - 'inclusive': Payment methods from the - * 'store' and those not associated with any other store are returned. + * Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. + * @return storeFiltrationMode Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. */ @JsonProperty(JSON_PROPERTY_STORE_FILTRATION_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3020,15 +2329,9 @@ public StoreFiltrationModeEnum getStoreFiltrationMode() { } /** - * Specifies how payment methods should be filtered based on the 'store' parameter: - - * 'exclusive': Only payment methods belonging to the specified 'store' are - * returned. - 'inclusive': Payment methods from the 'store' and those not - * associated with any other store are returned. + * Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. * - * @param storeFiltrationMode Specifies how payment methods should be filtered based on the - * 'store' parameter: - 'exclusive': Only payment methods belonging to the - * specified 'store' are returned. - 'inclusive': Payment methods from the - * 'store' and those not associated with any other store are returned. + * @param storeFiltrationMode Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. */ @JsonProperty(JSON_PROPERTY_STORE_FILTRATION_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3037,13 +2340,9 @@ public void setStoreFiltrationMode(StoreFiltrationModeEnum storeFiltrationMode) } /** - * When true and `shopperReference` is provided, the payment details will be stored for - * future [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). * - * @param storePaymentMethod When true and `shopperReference` is provided, the payment - * details will be stored for future [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * @param storePaymentMethod When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest storePaymentMethod(Boolean storePaymentMethod) { @@ -3052,13 +2351,8 @@ public CreateCheckoutSessionRequest storePaymentMethod(Boolean storePaymentMetho } /** - * When true and `shopperReference` is provided, the payment details will be stored for - * future [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). - * - * @return storePaymentMethod When true and `shopperReference` is provided, the payment - * details will be stored for future [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * @return storePaymentMethod When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). */ @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3067,13 +2361,9 @@ public Boolean getStorePaymentMethod() { } /** - * When true and `shopperReference` is provided, the payment details will be stored for - * future [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). * - * @param storePaymentMethod When true and `shopperReference` is provided, the payment - * details will be stored for future [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * @param storePaymentMethod When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). */ @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3082,39 +2372,19 @@ public void setStorePaymentMethod(Boolean storePaymentMethod) { } /** - * Indicates if the details of the payment method will be stored for the shopper. Possible values: - * * **disabled** – No details will be stored (default). * **askForConsent** – If the - * `shopperReference` is provided, the UI lets the shopper choose if they want their - * payment details to be stored. * **enabled** – If the `shopperReference` is provided, - * the details will be stored without asking the shopper for consent. + * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. * - * @param storePaymentMethodMode Indicates if the details of the payment method will be stored for - * the shopper. Possible values: * **disabled** – No details will be stored (default). * - * **askForConsent** – If the `shopperReference` is provided, the UI lets the - * shopper choose if they want their payment details to be stored. * **enabled** – If the - * `shopperReference` is provided, the details will be stored without asking the - * shopper for consent. + * @param storePaymentMethodMode Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ - public CreateCheckoutSessionRequest storePaymentMethodMode( - StorePaymentMethodModeEnum storePaymentMethodMode) { + public CreateCheckoutSessionRequest storePaymentMethodMode(StorePaymentMethodModeEnum storePaymentMethodMode) { this.storePaymentMethodMode = storePaymentMethodMode; return this; } /** - * Indicates if the details of the payment method will be stored for the shopper. Possible values: - * * **disabled** – No details will be stored (default). * **askForConsent** – If the - * `shopperReference` is provided, the UI lets the shopper choose if they want their - * payment details to be stored. * **enabled** – If the `shopperReference` is provided, - * the details will be stored without asking the shopper for consent. - * - * @return storePaymentMethodMode Indicates if the details of the payment method will be stored - * for the shopper. Possible values: * **disabled** – No details will be stored (default). * - * **askForConsent** – If the `shopperReference` is provided, the UI lets the - * shopper choose if they want their payment details to be stored. * **enabled** – If the - * `shopperReference` is provided, the details will be stored without asking the - * shopper for consent. + * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. + * @return storePaymentMethodMode Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. */ @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3123,18 +2393,9 @@ public StorePaymentMethodModeEnum getStorePaymentMethodMode() { } /** - * Indicates if the details of the payment method will be stored for the shopper. Possible values: - * * **disabled** – No details will be stored (default). * **askForConsent** – If the - * `shopperReference` is provided, the UI lets the shopper choose if they want their - * payment details to be stored. * **enabled** – If the `shopperReference` is provided, - * the details will be stored without asking the shopper for consent. + * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. * - * @param storePaymentMethodMode Indicates if the details of the payment method will be stored for - * the shopper. Possible values: * **disabled** – No details will be stored (default). * - * **askForConsent** – If the `shopperReference` is provided, the UI lets the - * shopper choose if they want their payment details to be stored. * **enabled** – If the - * `shopperReference` is provided, the details will be stored without asking the - * shopper for consent. + * @param storePaymentMethodMode Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. */ @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3143,17 +2404,9 @@ public void setStorePaymentMethodMode(StorePaymentMethodModeEnum storePaymentMet } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus - * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest telephoneNumber(String telephoneNumber) { @@ -3162,17 +2415,8 @@ public CreateCheckoutSessionRequest telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. - * - * @return telephoneNumber The shopper's telephone number. The phone number must include a - * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @return telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3181,17 +2425,9 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus - * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3200,13 +2436,9 @@ public void setTelephoneNumber(String telephoneNumber) { } /** - * Sets a custom theme for [Hosted - * Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). - * The value can be any of the **Theme ID** values from your Customer Area. + * Sets a custom theme for [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). The value can be any of the **Theme ID** values from your Customer Area. * - * @param themeId Sets a custom theme for [Hosted - * Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). - * The value can be any of the **Theme ID** values from your Customer Area. + * @param themeId Sets a custom theme for [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). The value can be any of the **Theme ID** values from your Customer Area. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest themeId(String themeId) { @@ -3215,13 +2447,8 @@ public CreateCheckoutSessionRequest themeId(String themeId) { } /** - * Sets a custom theme for [Hosted - * Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). - * The value can be any of the **Theme ID** values from your Customer Area. - * - * @return themeId Sets a custom theme for [Hosted - * Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). - * The value can be any of the **Theme ID** values from your Customer Area. + * Sets a custom theme for [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). The value can be any of the **Theme ID** values from your Customer Area. + * @return themeId Sets a custom theme for [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). The value can be any of the **Theme ID** values from your Customer Area. */ @JsonProperty(JSON_PROPERTY_THEME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3230,13 +2457,9 @@ public String getThemeId() { } /** - * Sets a custom theme for [Hosted - * Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). - * The value can be any of the **Theme ID** values from your Customer Area. + * Sets a custom theme for [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). The value can be any of the **Theme ID** values from your Customer Area. * - * @param themeId Sets a custom theme for [Hosted - * Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). - * The value can be any of the **Theme ID** values from your Customer Area. + * @param themeId Sets a custom theme for [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). The value can be any of the **Theme ID** values from your Customer Area. */ @JsonProperty(JSON_PROPERTY_THEME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3247,19 +2470,17 @@ public void setThemeId(String themeId) { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ - public CreateCheckoutSessionRequest threeDS2RequestData( - CheckoutSessionThreeDS2RequestData threeDS2RequestData) { + public CreateCheckoutSessionRequest threeDS2RequestData(CheckoutSessionThreeDS2RequestData threeDS2RequestData) { this.threeDS2RequestData = threeDS2RequestData; return this; } /** * Get threeDS2RequestData - * - * @return threeDS2RequestData + * @return threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3270,7 +2491,7 @@ public CheckoutSessionThreeDS2RequestData getThreeDS2RequestData() { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3279,41 +2500,26 @@ public void setThreeDS2RequestData(CheckoutSessionThreeDS2RequestData threeDS2Re } /** - * Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. * - * @param threeDSAuthenticationOnly Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. + * @param threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` - * instead. + * + * @deprecated since Adyen Checkout API v69 + * Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. public CreateCheckoutSessionRequest threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { this.threeDSAuthenticationOnly = threeDSAuthenticationOnly; return this; } /** - * Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. - * - * @return threeDSAuthenticationOnly Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. - * @deprecated // deprecated since Adyen Checkout API v69: Use - * `authenticationData.authenticationOnly` instead. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * @return threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * @deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getThreeDSAuthenticationOnly() { @@ -3321,20 +2527,14 @@ public Boolean getThreeDSAuthenticationOnly() { } /** - * Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. * - * @param threeDSAuthenticationOnly Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. - * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` - * instead. + * @param threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * + * @deprecated since Adyen Checkout API v69 + * Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { @@ -3354,7 +2554,6 @@ public CreateCheckoutSessionRequest trustedShopper(Boolean trustedShopper) { /** * Set to true if the payment should be routed to a trusted MID. - * * @return trustedShopper Set to true if the payment should be routed to a trusted MID. */ @JsonProperty(JSON_PROPERTY_TRUSTED_SHOPPER) @@ -3374,7 +2573,9 @@ public void setTrustedShopper(Boolean trustedShopper) { this.trustedShopper = trustedShopper; } - /** Return true if this CreateCheckoutSessionRequest object is equal to o. */ + /** + * Return true if this CreateCheckoutSessionRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -3384,149 +2585,72 @@ public boolean equals(Object o) { return false; } CreateCheckoutSessionRequest createCheckoutSessionRequest = (CreateCheckoutSessionRequest) o; - return Objects.equals(this.accountInfo, createCheckoutSessionRequest.accountInfo) - && Objects.equals(this.additionalAmount, createCheckoutSessionRequest.additionalAmount) - && Objects.equals(this.additionalData, createCheckoutSessionRequest.additionalData) - && Objects.equals( - this.allowedPaymentMethods, createCheckoutSessionRequest.allowedPaymentMethods) - && Objects.equals(this.amount, createCheckoutSessionRequest.amount) - && Objects.equals(this.applicationInfo, createCheckoutSessionRequest.applicationInfo) - && Objects.equals(this.authenticationData, createCheckoutSessionRequest.authenticationData) - && Objects.equals(this.billingAddress, createCheckoutSessionRequest.billingAddress) - && Objects.equals( - this.blockedPaymentMethods, createCheckoutSessionRequest.blockedPaymentMethods) - && Objects.equals(this.captureDelayHours, createCheckoutSessionRequest.captureDelayHours) - && Objects.equals(this.channel, createCheckoutSessionRequest.channel) - && Objects.equals(this.company, createCheckoutSessionRequest.company) - && Objects.equals(this.countryCode, createCheckoutSessionRequest.countryCode) - && Objects.equals(this.dateOfBirth, createCheckoutSessionRequest.dateOfBirth) - && Objects.equals(this.deliverAt, createCheckoutSessionRequest.deliverAt) - && Objects.equals(this.deliveryAddress, createCheckoutSessionRequest.deliveryAddress) - && Objects.equals(this.enableOneClick, createCheckoutSessionRequest.enableOneClick) - && Objects.equals(this.enablePayOut, createCheckoutSessionRequest.enablePayOut) - && Objects.equals(this.enableRecurring, createCheckoutSessionRequest.enableRecurring) - && Objects.equals(this.expiresAt, createCheckoutSessionRequest.expiresAt) - && Objects.equals(this.fundOrigin, createCheckoutSessionRequest.fundOrigin) - && Objects.equals(this.fundRecipient, createCheckoutSessionRequest.fundRecipient) - && Objects.equals(this.installmentOptions, createCheckoutSessionRequest.installmentOptions) - && Objects.equals(this.lineItems, createCheckoutSessionRequest.lineItems) - && Objects.equals(this.mandate, createCheckoutSessionRequest.mandate) - && Objects.equals(this.mcc, createCheckoutSessionRequest.mcc) - && Objects.equals(this.merchantAccount, createCheckoutSessionRequest.merchantAccount) - && Objects.equals( - this.merchantOrderReference, createCheckoutSessionRequest.merchantOrderReference) - && Objects.equals(this.metadata, createCheckoutSessionRequest.metadata) - && Objects.equals(this.mode, createCheckoutSessionRequest.mode) - && Objects.equals(this.mpiData, createCheckoutSessionRequest.mpiData) - && Objects.equals( - this.platformChargebackLogic, createCheckoutSessionRequest.platformChargebackLogic) - && Objects.equals(this.recurringExpiry, createCheckoutSessionRequest.recurringExpiry) - && Objects.equals(this.recurringFrequency, createCheckoutSessionRequest.recurringFrequency) - && Objects.equals( - this.recurringProcessingModel, createCheckoutSessionRequest.recurringProcessingModel) - && Objects.equals( - this.redirectFromIssuerMethod, createCheckoutSessionRequest.redirectFromIssuerMethod) - && Objects.equals( - this.redirectToIssuerMethod, createCheckoutSessionRequest.redirectToIssuerMethod) - && Objects.equals(this.reference, createCheckoutSessionRequest.reference) - && Objects.equals(this.returnUrl, createCheckoutSessionRequest.returnUrl) - && Objects.equals(this.riskData, createCheckoutSessionRequest.riskData) - && Objects.equals(this.shopperEmail, createCheckoutSessionRequest.shopperEmail) - && Objects.equals(this.shopperIP, createCheckoutSessionRequest.shopperIP) - && Objects.equals(this.shopperInteraction, createCheckoutSessionRequest.shopperInteraction) - && Objects.equals(this.shopperLocale, createCheckoutSessionRequest.shopperLocale) - && Objects.equals(this.shopperName, createCheckoutSessionRequest.shopperName) - && Objects.equals(this.shopperReference, createCheckoutSessionRequest.shopperReference) - && Objects.equals(this.shopperStatement, createCheckoutSessionRequest.shopperStatement) - && Objects.equals( - this.showInstallmentAmount, createCheckoutSessionRequest.showInstallmentAmount) - && Objects.equals( - this.showRemovePaymentMethodButton, - createCheckoutSessionRequest.showRemovePaymentMethodButton) - && Objects.equals( - this.socialSecurityNumber, createCheckoutSessionRequest.socialSecurityNumber) - && Objects.equals( - this.splitCardFundingSources, createCheckoutSessionRequest.splitCardFundingSources) - && Objects.equals(this.splits, createCheckoutSessionRequest.splits) - && Objects.equals(this.store, createCheckoutSessionRequest.store) - && Objects.equals( - this.storeFiltrationMode, createCheckoutSessionRequest.storeFiltrationMode) - && Objects.equals(this.storePaymentMethod, createCheckoutSessionRequest.storePaymentMethod) - && Objects.equals( - this.storePaymentMethodMode, createCheckoutSessionRequest.storePaymentMethodMode) - && Objects.equals(this.telephoneNumber, createCheckoutSessionRequest.telephoneNumber) - && Objects.equals(this.themeId, createCheckoutSessionRequest.themeId) - && Objects.equals( - this.threeDS2RequestData, createCheckoutSessionRequest.threeDS2RequestData) - && Objects.equals( - this.threeDSAuthenticationOnly, createCheckoutSessionRequest.threeDSAuthenticationOnly) - && Objects.equals(this.trustedShopper, createCheckoutSessionRequest.trustedShopper); + return Objects.equals(this.accountInfo, createCheckoutSessionRequest.accountInfo) && + Objects.equals(this.additionalAmount, createCheckoutSessionRequest.additionalAmount) && + Objects.equals(this.additionalData, createCheckoutSessionRequest.additionalData) && + Objects.equals(this.allowedPaymentMethods, createCheckoutSessionRequest.allowedPaymentMethods) && + Objects.equals(this.amount, createCheckoutSessionRequest.amount) && + Objects.equals(this.applicationInfo, createCheckoutSessionRequest.applicationInfo) && + Objects.equals(this.authenticationData, createCheckoutSessionRequest.authenticationData) && + Objects.equals(this.billingAddress, createCheckoutSessionRequest.billingAddress) && + Objects.equals(this.blockedPaymentMethods, createCheckoutSessionRequest.blockedPaymentMethods) && + Objects.equals(this.captureDelayHours, createCheckoutSessionRequest.captureDelayHours) && + Objects.equals(this.channel, createCheckoutSessionRequest.channel) && + Objects.equals(this.company, createCheckoutSessionRequest.company) && + Objects.equals(this.countryCode, createCheckoutSessionRequest.countryCode) && + Objects.equals(this.dateOfBirth, createCheckoutSessionRequest.dateOfBirth) && + Objects.equals(this.deliverAt, createCheckoutSessionRequest.deliverAt) && + Objects.equals(this.deliveryAddress, createCheckoutSessionRequest.deliveryAddress) && + Objects.equals(this.enableOneClick, createCheckoutSessionRequest.enableOneClick) && + Objects.equals(this.enablePayOut, createCheckoutSessionRequest.enablePayOut) && + Objects.equals(this.enableRecurring, createCheckoutSessionRequest.enableRecurring) && + Objects.equals(this.expiresAt, createCheckoutSessionRequest.expiresAt) && + Objects.equals(this.fundOrigin, createCheckoutSessionRequest.fundOrigin) && + Objects.equals(this.fundRecipient, createCheckoutSessionRequest.fundRecipient) && + Objects.equals(this.installmentOptions, createCheckoutSessionRequest.installmentOptions) && + Objects.equals(this.lineItems, createCheckoutSessionRequest.lineItems) && + Objects.equals(this.mandate, createCheckoutSessionRequest.mandate) && + Objects.equals(this.mcc, createCheckoutSessionRequest.mcc) && + Objects.equals(this.merchantAccount, createCheckoutSessionRequest.merchantAccount) && + Objects.equals(this.merchantOrderReference, createCheckoutSessionRequest.merchantOrderReference) && + Objects.equals(this.metadata, createCheckoutSessionRequest.metadata) && + Objects.equals(this.mode, createCheckoutSessionRequest.mode) && + Objects.equals(this.mpiData, createCheckoutSessionRequest.mpiData) && + Objects.equals(this.platformChargebackLogic, createCheckoutSessionRequest.platformChargebackLogic) && + Objects.equals(this.recurringExpiry, createCheckoutSessionRequest.recurringExpiry) && + Objects.equals(this.recurringFrequency, createCheckoutSessionRequest.recurringFrequency) && + Objects.equals(this.recurringProcessingModel, createCheckoutSessionRequest.recurringProcessingModel) && + Objects.equals(this.redirectFromIssuerMethod, createCheckoutSessionRequest.redirectFromIssuerMethod) && + Objects.equals(this.redirectToIssuerMethod, createCheckoutSessionRequest.redirectToIssuerMethod) && + Objects.equals(this.reference, createCheckoutSessionRequest.reference) && + Objects.equals(this.returnUrl, createCheckoutSessionRequest.returnUrl) && + Objects.equals(this.riskData, createCheckoutSessionRequest.riskData) && + Objects.equals(this.shopperEmail, createCheckoutSessionRequest.shopperEmail) && + Objects.equals(this.shopperIP, createCheckoutSessionRequest.shopperIP) && + Objects.equals(this.shopperInteraction, createCheckoutSessionRequest.shopperInteraction) && + Objects.equals(this.shopperLocale, createCheckoutSessionRequest.shopperLocale) && + Objects.equals(this.shopperName, createCheckoutSessionRequest.shopperName) && + Objects.equals(this.shopperReference, createCheckoutSessionRequest.shopperReference) && + Objects.equals(this.shopperStatement, createCheckoutSessionRequest.shopperStatement) && + Objects.equals(this.showInstallmentAmount, createCheckoutSessionRequest.showInstallmentAmount) && + Objects.equals(this.showRemovePaymentMethodButton, createCheckoutSessionRequest.showRemovePaymentMethodButton) && + Objects.equals(this.socialSecurityNumber, createCheckoutSessionRequest.socialSecurityNumber) && + Objects.equals(this.splitCardFundingSources, createCheckoutSessionRequest.splitCardFundingSources) && + Objects.equals(this.splits, createCheckoutSessionRequest.splits) && + Objects.equals(this.store, createCheckoutSessionRequest.store) && + Objects.equals(this.storeFiltrationMode, createCheckoutSessionRequest.storeFiltrationMode) && + Objects.equals(this.storePaymentMethod, createCheckoutSessionRequest.storePaymentMethod) && + Objects.equals(this.storePaymentMethodMode, createCheckoutSessionRequest.storePaymentMethodMode) && + Objects.equals(this.telephoneNumber, createCheckoutSessionRequest.telephoneNumber) && + Objects.equals(this.themeId, createCheckoutSessionRequest.themeId) && + Objects.equals(this.threeDS2RequestData, createCheckoutSessionRequest.threeDS2RequestData) && + Objects.equals(this.threeDSAuthenticationOnly, createCheckoutSessionRequest.threeDSAuthenticationOnly) && + Objects.equals(this.trustedShopper, createCheckoutSessionRequest.trustedShopper); } @Override public int hashCode() { - return Objects.hash( - accountInfo, - additionalAmount, - additionalData, - allowedPaymentMethods, - amount, - applicationInfo, - authenticationData, - billingAddress, - blockedPaymentMethods, - captureDelayHours, - channel, - company, - countryCode, - dateOfBirth, - deliverAt, - deliveryAddress, - enableOneClick, - enablePayOut, - enableRecurring, - expiresAt, - fundOrigin, - fundRecipient, - installmentOptions, - lineItems, - mandate, - mcc, - merchantAccount, - merchantOrderReference, - metadata, - mode, - mpiData, - platformChargebackLogic, - recurringExpiry, - recurringFrequency, - recurringProcessingModel, - redirectFromIssuerMethod, - redirectToIssuerMethod, - reference, - returnUrl, - riskData, - shopperEmail, - shopperIP, - shopperInteraction, - shopperLocale, - shopperName, - shopperReference, - shopperStatement, - showInstallmentAmount, - showRemovePaymentMethodButton, - socialSecurityNumber, - splitCardFundingSources, - splits, - store, - storeFiltrationMode, - storePaymentMethod, - storePaymentMethodMode, - telephoneNumber, - themeId, - threeDS2RequestData, - threeDSAuthenticationOnly, - trustedShopper); + return Objects.hash(accountInfo, additionalAmount, additionalData, allowedPaymentMethods, amount, applicationInfo, authenticationData, billingAddress, blockedPaymentMethods, captureDelayHours, channel, company, countryCode, dateOfBirth, deliverAt, deliveryAddress, enableOneClick, enablePayOut, enableRecurring, expiresAt, fundOrigin, fundRecipient, installmentOptions, lineItems, mandate, mcc, merchantAccount, merchantOrderReference, metadata, mode, mpiData, platformChargebackLogic, recurringExpiry, recurringFrequency, recurringProcessingModel, redirectFromIssuerMethod, redirectToIssuerMethod, reference, returnUrl, riskData, shopperEmail, shopperIP, shopperInteraction, shopperLocale, shopperName, shopperReference, shopperStatement, showInstallmentAmount, showRemovePaymentMethodButton, socialSecurityNumber, splitCardFundingSources, splits, store, storeFiltrationMode, storePaymentMethod, storePaymentMethodMode, telephoneNumber, themeId, threeDS2RequestData, threeDSAuthenticationOnly, trustedShopper); } @Override @@ -3536,16 +2660,12 @@ public String toString() { sb.append(" accountInfo: ").append(toIndentedString(accountInfo)).append("\n"); sb.append(" additionalAmount: ").append(toIndentedString(additionalAmount)).append("\n"); sb.append(" additionalData: ").append(toIndentedString(additionalData)).append("\n"); - sb.append(" allowedPaymentMethods: ") - .append(toIndentedString(allowedPaymentMethods)) - .append("\n"); + sb.append(" allowedPaymentMethods: ").append(toIndentedString(allowedPaymentMethods)).append("\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" applicationInfo: ").append(toIndentedString(applicationInfo)).append("\n"); sb.append(" authenticationData: ").append(toIndentedString(authenticationData)).append("\n"); sb.append(" billingAddress: ").append(toIndentedString(billingAddress)).append("\n"); - sb.append(" blockedPaymentMethods: ") - .append(toIndentedString(blockedPaymentMethods)) - .append("\n"); + sb.append(" blockedPaymentMethods: ").append(toIndentedString(blockedPaymentMethods)).append("\n"); sb.append(" captureDelayHours: ").append(toIndentedString(captureDelayHours)).append("\n"); sb.append(" channel: ").append(toIndentedString(channel)).append("\n"); sb.append(" company: ").append(toIndentedString(company)).append("\n"); @@ -3564,26 +2684,16 @@ public String toString() { sb.append(" mandate: ").append(toIndentedString(mandate)).append("\n"); sb.append(" mcc: ").append(toIndentedString(mcc)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" merchantOrderReference: ") - .append(toIndentedString(merchantOrderReference)) - .append("\n"); + sb.append(" merchantOrderReference: ").append(toIndentedString(merchantOrderReference)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); sb.append(" mpiData: ").append(toIndentedString(mpiData)).append("\n"); - sb.append(" platformChargebackLogic: ") - .append(toIndentedString(platformChargebackLogic)) - .append("\n"); + sb.append(" platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n"); sb.append(" recurringExpiry: ").append(toIndentedString(recurringExpiry)).append("\n"); sb.append(" recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n"); - sb.append(" recurringProcessingModel: ") - .append(toIndentedString(recurringProcessingModel)) - .append("\n"); - sb.append(" redirectFromIssuerMethod: ") - .append(toIndentedString(redirectFromIssuerMethod)) - .append("\n"); - sb.append(" redirectToIssuerMethod: ") - .append(toIndentedString(redirectToIssuerMethod)) - .append("\n"); + sb.append(" recurringProcessingModel: ").append(toIndentedString(recurringProcessingModel)).append("\n"); + sb.append(" redirectFromIssuerMethod: ").append(toIndentedString(redirectFromIssuerMethod)).append("\n"); + sb.append(" redirectToIssuerMethod: ").append(toIndentedString(redirectToIssuerMethod)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" returnUrl: ").append(toIndentedString(returnUrl)).append("\n"); sb.append(" riskData: ").append(toIndentedString(riskData)).append("\n"); @@ -3594,42 +2704,27 @@ public String toString() { sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append(" shopperStatement: ").append(toIndentedString(shopperStatement)).append("\n"); - sb.append(" showInstallmentAmount: ") - .append(toIndentedString(showInstallmentAmount)) - .append("\n"); - sb.append(" showRemovePaymentMethodButton: ") - .append(toIndentedString(showRemovePaymentMethodButton)) - .append("\n"); - sb.append(" socialSecurityNumber: ") - .append(toIndentedString(socialSecurityNumber)) - .append("\n"); - sb.append(" splitCardFundingSources: ") - .append(toIndentedString(splitCardFundingSources)) - .append("\n"); + sb.append(" showInstallmentAmount: ").append(toIndentedString(showInstallmentAmount)).append("\n"); + sb.append(" showRemovePaymentMethodButton: ").append(toIndentedString(showRemovePaymentMethodButton)).append("\n"); + sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); + sb.append(" splitCardFundingSources: ").append(toIndentedString(splitCardFundingSources)).append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" store: ").append(toIndentedString(store)).append("\n"); - sb.append(" storeFiltrationMode: ") - .append(toIndentedString(storeFiltrationMode)) - .append("\n"); + sb.append(" storeFiltrationMode: ").append(toIndentedString(storeFiltrationMode)).append("\n"); sb.append(" storePaymentMethod: ").append(toIndentedString(storePaymentMethod)).append("\n"); - sb.append(" storePaymentMethodMode: ") - .append(toIndentedString(storePaymentMethodMode)) - .append("\n"); + sb.append(" storePaymentMethodMode: ").append(toIndentedString(storePaymentMethodMode)).append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); sb.append(" themeId: ").append(toIndentedString(themeId)).append("\n"); - sb.append(" threeDS2RequestData: ") - .append(toIndentedString(threeDS2RequestData)) - .append("\n"); - sb.append(" threeDSAuthenticationOnly: ") - .append(toIndentedString(threeDSAuthenticationOnly)) - .append("\n"); + sb.append(" threeDS2RequestData: ").append(toIndentedString(threeDS2RequestData)).append("\n"); + sb.append(" threeDSAuthenticationOnly: ").append(toIndentedString(threeDSAuthenticationOnly)).append("\n"); sb.append(" trustedShopper: ").append(toIndentedString(trustedShopper)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -3638,24 +2733,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CreateCheckoutSessionRequest given an JSON string * * @param jsonString JSON string * @return An instance of CreateCheckoutSessionRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreateCheckoutSessionRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to CreateCheckoutSessionRequest */ - public static CreateCheckoutSessionRequest fromJson(String jsonString) - throws JsonProcessingException { + public static CreateCheckoutSessionRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateCheckoutSessionRequest.class); } - - /** - * Convert an instance of CreateCheckoutSessionRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CreateCheckoutSessionRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionResponse.java b/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionResponse.java index 2e59087e2..878717818 100644 --- a/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionResponse.java +++ b/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionResponse.java @@ -2,31 +2,54 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.AccountInfo; +import com.adyen.model.checkout.Amount; +import com.adyen.model.checkout.ApplicationInfo; +import com.adyen.model.checkout.AuthenticationData; +import com.adyen.model.checkout.BillingAddress; +import com.adyen.model.checkout.CheckoutSessionInstallmentOption; +import com.adyen.model.checkout.CheckoutSessionThreeDS2RequestData; +import com.adyen.model.checkout.Company; +import com.adyen.model.checkout.DeliveryAddress; +import com.adyen.model.checkout.FundOrigin; +import com.adyen.model.checkout.FundRecipient; +import com.adyen.model.checkout.LineItem; +import com.adyen.model.checkout.Mandate; +import com.adyen.model.checkout.Name; +import com.adyen.model.checkout.PlatformChargebackLogic; +import com.adyen.model.checkout.RiskData; +import com.adyen.model.checkout.Split; +import com.adyen.model.checkout.ThreeDSecureData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CreateCheckoutSessionResponse */ +/** + * CreateCheckoutSessionResponse + */ @JsonPropertyOrder({ CreateCheckoutSessionResponse.JSON_PROPERTY_ACCOUNT_INFO, CreateCheckoutSessionResponse.JSON_PROPERTY_ADDITIONAL_AMOUNT, @@ -93,6 +116,7 @@ CreateCheckoutSessionResponse.JSON_PROPERTY_TRUSTED_SHOPPER, CreateCheckoutSessionResponse.JSON_PROPERTY_URL }) + public class CreateCheckoutSessionResponse { public static final String JSON_PROPERTY_ACCOUNT_INFO = "accountInfo"; private AccountInfo accountInfo; @@ -125,12 +149,10 @@ public class CreateCheckoutSessionResponse { private Integer captureDelayHours; /** - * The platform where a payment transaction takes place. This field is optional for filtering out - * payment methods that are only available on specific platforms. If this value is not set, then - * we will try to infer it from the `sdkVersion` or `token`. Possible values: - * * **iOS** * **Android** * **Web** + * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** */ public enum ChannelEnum { + IOS(String.valueOf("iOS")), ANDROID(String.valueOf("Android")), @@ -142,7 +164,7 @@ public enum ChannelEnum { private String value; ChannelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -163,11 +185,7 @@ public static ChannelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ChannelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ChannelEnum.values())); + LOG.warning("ChannelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChannelEnum.values())); return null; } } @@ -233,10 +251,10 @@ public static ChannelEnum fromValue(String value) { private Map metadata; /** - * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in - * or Components integration * **hosted**: Hosted Checkout integration + * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration */ public enum ModeEnum { + EMBEDDED(String.valueOf("embedded")), HOSTED(String.valueOf("hosted")); @@ -246,7 +264,7 @@ public enum ModeEnum { private String value; ModeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -267,11 +285,7 @@ public static ModeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ModeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ModeEnum.values())); + LOG.warning("ModeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ModeEnum.values())); return null; } } @@ -292,30 +306,22 @@ public static ModeEnum fromValue(String value) { private String recurringFrequency; /** - * Defines a recurring payment type. Required when creating a token to store payment details. - * Allowed values: * `Subscription` – A transaction for a fixed or variable amount, - * which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) - * transaction, card details are stored to enable one-click or omnichannel journeys, or simply to - * streamline the checkout process. Any subscription not following a fixed schedule is also - * considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled - * card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or - * have variable amounts. For example, automatic top-ups when a cardholder's balance drops - * below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ public enum RecurringProcessingModelEnum { + CARDONFILE(String.valueOf("CardOnFile")), SUBSCRIPTION(String.valueOf("Subscription")), UNSCHEDULEDCARDONFILE(String.valueOf("UnscheduledCardOnFile")); - private static final Logger LOG = - Logger.getLogger(RecurringProcessingModelEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(RecurringProcessingModelEnum.class.getName()); private String value; RecurringProcessingModelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -336,11 +342,7 @@ public static RecurringProcessingModelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "RecurringProcessingModelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(RecurringProcessingModelEnum.values())); + LOG.warning("RecurringProcessingModelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RecurringProcessingModelEnum.values())); return null; } } @@ -373,19 +375,10 @@ public static RecurringProcessingModelEnum fromValue(String value) { private String shopperIP; /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ public enum ShopperInteractionEnum { + ECOMMERCE(String.valueOf("Ecommerce")), CONTAUTH(String.valueOf("ContAuth")), @@ -399,7 +392,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -420,11 +413,7 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ShopperInteractionEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -447,8 +436,7 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_SHOW_INSTALLMENT_AMOUNT = "showInstallmentAmount"; private Boolean showInstallmentAmount; - public static final String JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON = - "showRemovePaymentMethodButton"; + public static final String JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON = "showRemovePaymentMethodButton"; private Boolean showRemovePaymentMethodButton; public static final String JSON_PROPERTY_SOCIAL_SECURITY_NUMBER = "socialSecurityNumber"; @@ -464,12 +452,10 @@ public static ShopperInteractionEnum fromValue(String value) { private String store; /** - * Specifies how payment methods should be filtered based on the 'store' parameter: - - * 'exclusive': Only payment methods belonging to the specified 'store' are - * returned. - 'inclusive': Payment methods from the 'store' and those not - * associated with any other store are returned. + * Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. */ public enum StoreFiltrationModeEnum { + EXCLUSIVE(String.valueOf("exclusive")), INCLUSIVE(String.valueOf("inclusive")), @@ -481,7 +467,7 @@ public enum StoreFiltrationModeEnum { private String value; StoreFiltrationModeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -502,11 +488,7 @@ public static StoreFiltrationModeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StoreFiltrationModeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StoreFiltrationModeEnum.values())); + LOG.warning("StoreFiltrationModeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StoreFiltrationModeEnum.values())); return null; } } @@ -518,13 +500,10 @@ public static StoreFiltrationModeEnum fromValue(String value) { private Boolean storePaymentMethod; /** - * Indicates if the details of the payment method will be stored for the shopper. Possible values: - * * **disabled** – No details will be stored (default). * **askForConsent** – If the - * `shopperReference` is provided, the UI lets the shopper choose if they want their - * payment details to be stored. * **enabled** – If the `shopperReference` is provided, - * the details will be stored without asking the shopper for consent. + * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. */ public enum StorePaymentMethodModeEnum { + ASKFORCONSENT(String.valueOf("askForConsent")), DISABLED(String.valueOf("disabled")), @@ -536,7 +515,7 @@ public enum StorePaymentMethodModeEnum { private String value; StorePaymentMethodModeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -557,11 +536,7 @@ public static StorePaymentMethodModeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StorePaymentMethodModeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StorePaymentMethodModeEnum.values())); + LOG.warning("StorePaymentMethodModeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StorePaymentMethodModeEnum.values())); return null; } } @@ -578,10 +553,8 @@ public static StorePaymentMethodModeEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S2_REQUEST_DATA = "threeDS2RequestData"; private CheckoutSessionThreeDS2RequestData threeDS2RequestData; - public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = - "threeDSAuthenticationOnly"; - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = "threeDSAuthenticationOnly"; + @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. private Boolean threeDSAuthenticationOnly; public static final String JSON_PROPERTY_TRUSTED_SHOPPER = "trustedShopper"; @@ -590,10 +563,13 @@ public static StorePaymentMethodModeEnum fromValue(String value) { public static final String JSON_PROPERTY_URL = "url"; private String url; - public CreateCheckoutSessionResponse() {} + public CreateCheckoutSessionResponse() { + } @JsonCreator - public CreateCheckoutSessionResponse(@JsonProperty(JSON_PROPERTY_ID) String id) { + public CreateCheckoutSessionResponse( + @JsonProperty(JSON_PROPERTY_ID) String id + ) { this(); this.id = id; } @@ -601,9 +577,8 @@ public CreateCheckoutSessionResponse(@JsonProperty(JSON_PROPERTY_ID) String id) /** * accountInfo * - * @param accountInfo - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param accountInfo + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse accountInfo(AccountInfo accountInfo) { this.accountInfo = accountInfo; @@ -612,8 +587,7 @@ public CreateCheckoutSessionResponse accountInfo(AccountInfo accountInfo) { /** * Get accountInfo - * - * @return accountInfo + * @return accountInfo */ @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -624,7 +598,7 @@ public AccountInfo getAccountInfo() { /** * accountInfo * - * @param accountInfo + * @param accountInfo */ @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -635,9 +609,8 @@ public void setAccountInfo(AccountInfo accountInfo) { /** * additionalAmount * - * @param additionalAmount - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param additionalAmount + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse additionalAmount(Amount additionalAmount) { this.additionalAmount = additionalAmount; @@ -646,8 +619,7 @@ public CreateCheckoutSessionResponse additionalAmount(Amount additionalAmount) { /** * Get additionalAmount - * - * @return additionalAmount + * @return additionalAmount */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -658,7 +630,7 @@ public Amount getAdditionalAmount() { /** * additionalAmount * - * @param additionalAmount + * @param additionalAmount */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -667,23 +639,17 @@ public void setAdditionalAmount(Amount additionalAmount) { } /** - * This field contains additional data, which may be required for a particular payment request. - * The `additionalData` object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular payment request. The `additionalData` object consists of entries, each - * of which includes the key and value. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse additionalData(Map additionalData) { this.additionalData = additionalData; return this; } - public CreateCheckoutSessionResponse putAdditionalDataItem( - String key, String additionalDataItem) { + public CreateCheckoutSessionResponse putAdditionalDataItem(String key, String additionalDataItem) { if (this.additionalData == null) { this.additionalData = new HashMap<>(); } @@ -692,13 +658,8 @@ public CreateCheckoutSessionResponse putAdditionalDataItem( } /** - * This field contains additional data, which may be required for a particular payment request. - * The `additionalData` object consists of entries, each of which includes the key and - * value. - * - * @return additionalData This field contains additional data, which may be required for a - * particular payment request. The `additionalData` object consists of entries, each - * of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * @return additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -707,13 +668,9 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular payment request. - * The `additionalData` object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular payment request. The `additionalData` object consists of entries, each - * of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -722,24 +679,17 @@ public void setAdditionalData(Map additionalData) { } /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their - * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer - * to payment methods, use their [payment method - * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse allowedPaymentMethods(List allowedPaymentMethods) { this.allowedPaymentMethods = allowedPaymentMethods; return this; } - public CreateCheckoutSessionResponse addAllowedPaymentMethodsItem( - String allowedPaymentMethodsItem) { + public CreateCheckoutSessionResponse addAllowedPaymentMethodsItem(String allowedPaymentMethodsItem) { if (this.allowedPaymentMethods == null) { this.allowedPaymentMethods = new ArrayList<>(); } @@ -748,14 +698,8 @@ public CreateCheckoutSessionResponse addAllowedPaymentMethodsItem( } /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their - * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` - * - * @return allowedPaymentMethods List of payment methods to be presented to the shopper. To refer - * to payment methods, use their [payment method - * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @return allowedPaymentMethods List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -764,14 +708,9 @@ public List getAllowedPaymentMethods() { } /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their - * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer - * to payment methods, use their [payment method - * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -782,9 +721,8 @@ public void setAllowedPaymentMethods(List allowedPaymentMethods) { /** * amount * - * @param amount - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param amount + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse amount(Amount amount) { this.amount = amount; @@ -793,8 +731,7 @@ public CreateCheckoutSessionResponse amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -805,7 +742,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -816,9 +753,8 @@ public void setAmount(Amount amount) { /** * applicationInfo * - * @param applicationInfo - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param applicationInfo + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse applicationInfo(ApplicationInfo applicationInfo) { this.applicationInfo = applicationInfo; @@ -827,8 +763,7 @@ public CreateCheckoutSessionResponse applicationInfo(ApplicationInfo application /** * Get applicationInfo - * - * @return applicationInfo + * @return applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -839,7 +774,7 @@ public ApplicationInfo getApplicationInfo() { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -850,9 +785,8 @@ public void setApplicationInfo(ApplicationInfo applicationInfo) { /** * authenticationData * - * @param authenticationData - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param authenticationData + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse authenticationData(AuthenticationData authenticationData) { this.authenticationData = authenticationData; @@ -861,8 +795,7 @@ public CreateCheckoutSessionResponse authenticationData(AuthenticationData authe /** * Get authenticationData - * - * @return authenticationData + * @return authenticationData */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -873,7 +806,7 @@ public AuthenticationData getAuthenticationData() { /** * authenticationData * - * @param authenticationData + * @param authenticationData */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -884,9 +817,8 @@ public void setAuthenticationData(AuthenticationData authenticationData) { /** * billingAddress * - * @param billingAddress - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param billingAddress + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse billingAddress(BillingAddress billingAddress) { this.billingAddress = billingAddress; @@ -895,8 +827,7 @@ public CreateCheckoutSessionResponse billingAddress(BillingAddress billingAddres /** * Get billingAddress - * - * @return billingAddress + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -907,7 +838,7 @@ public BillingAddress getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -916,24 +847,17 @@ public void setBillingAddress(BillingAddress billingAddress) { } /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their - * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to - * payment methods, use their [payment method - * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse blockedPaymentMethods(List blockedPaymentMethods) { this.blockedPaymentMethods = blockedPaymentMethods; return this; } - public CreateCheckoutSessionResponse addBlockedPaymentMethodsItem( - String blockedPaymentMethodsItem) { + public CreateCheckoutSessionResponse addBlockedPaymentMethodsItem(String blockedPaymentMethodsItem) { if (this.blockedPaymentMethods == null) { this.blockedPaymentMethods = new ArrayList<>(); } @@ -942,14 +866,8 @@ public CreateCheckoutSessionResponse addBlockedPaymentMethodsItem( } /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their - * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` - * - * @return blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer - * to payment methods, use their [payment method - * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @return blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_BLOCKED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -958,14 +876,9 @@ public List getBlockedPaymentMethods() { } /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their - * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to - * payment methods, use their [payment method - * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_BLOCKED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -976,10 +889,8 @@ public void setBlockedPaymentMethods(List blockedPaymentMethods) { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, - * specified in hours. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse captureDelayHours(Integer captureDelayHours) { this.captureDelayHours = captureDelayHours; @@ -988,9 +899,7 @@ public CreateCheckoutSessionResponse captureDelayHours(Integer captureDelayHours /** * The delay between the authorisation and scheduled auto-capture, specified in hours. - * - * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, - * specified in hours. + * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1001,8 +910,7 @@ public Integer getCaptureDelayHours() { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, - * specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1011,17 +919,10 @@ public void setCaptureDelayHours(Integer captureDelayHours) { } /** - * The platform where a payment transaction takes place. This field is optional for filtering out - * payment methods that are only available on specific platforms. If this value is not set, then - * we will try to infer it from the `sdkVersion` or `token`. Possible values: - * * **iOS** * **Android** * **Web** + * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** * - * @param channel The platform where a payment transaction takes place. This field is optional for - * filtering out payment methods that are only available on specific platforms. If this value - * is not set, then we will try to infer it from the `sdkVersion` or - * `token`. Possible values: * **iOS** * **Android** * **Web** - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param channel The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse channel(ChannelEnum channel) { this.channel = channel; @@ -1029,15 +930,8 @@ public CreateCheckoutSessionResponse channel(ChannelEnum channel) { } /** - * The platform where a payment transaction takes place. This field is optional for filtering out - * payment methods that are only available on specific platforms. If this value is not set, then - * we will try to infer it from the `sdkVersion` or `token`. Possible values: - * * **iOS** * **Android** * **Web** - * - * @return channel The platform where a payment transaction takes place. This field is optional - * for filtering out payment methods that are only available on specific platforms. If this - * value is not set, then we will try to infer it from the `sdkVersion` or - * `token`. Possible values: * **iOS** * **Android** * **Web** + * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** + * @return channel The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** */ @JsonProperty(JSON_PROPERTY_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1046,15 +940,9 @@ public ChannelEnum getChannel() { } /** - * The platform where a payment transaction takes place. This field is optional for filtering out - * payment methods that are only available on specific platforms. If this value is not set, then - * we will try to infer it from the `sdkVersion` or `token`. Possible values: - * * **iOS** * **Android** * **Web** + * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** * - * @param channel The platform where a payment transaction takes place. This field is optional for - * filtering out payment methods that are only available on specific platforms. If this value - * is not set, then we will try to infer it from the `sdkVersion` or - * `token`. Possible values: * **iOS** * **Android** * **Web** + * @param channel The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** */ @JsonProperty(JSON_PROPERTY_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1065,9 +953,8 @@ public void setChannel(ChannelEnum channel) { /** * company * - * @param company - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param company + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse company(Company company) { this.company = company; @@ -1076,8 +963,7 @@ public CreateCheckoutSessionResponse company(Company company) { /** * Get company - * - * @return company + * @return company */ @JsonProperty(JSON_PROPERTY_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1088,7 +974,7 @@ public Company getCompany() { /** * company * - * @param company + * @param company */ @JsonProperty(JSON_PROPERTY_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1100,8 +986,7 @@ public void setCompany(Company company) { * The shopper's two-letter country code. * * @param countryCode The shopper's two-letter country code. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse countryCode(String countryCode) { this.countryCode = countryCode; @@ -1110,7 +995,6 @@ public CreateCheckoutSessionResponse countryCode(String countryCode) { /** * The shopper's two-letter country code. - * * @return countryCode The shopper's two-letter country code. */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @@ -1131,13 +1015,10 @@ public void setCountryCode(String countryCode) { } /** - * The shopper's date of birth in - * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. + * The shopper's date of birth in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. * - * @param dateOfBirth The shopper's date of birth in - * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param dateOfBirth The shopper's date of birth in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse dateOfBirth(OffsetDateTime dateOfBirth) { this.dateOfBirth = dateOfBirth; @@ -1145,11 +1026,8 @@ public CreateCheckoutSessionResponse dateOfBirth(OffsetDateTime dateOfBirth) { } /** - * The shopper's date of birth in - * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. - * - * @return dateOfBirth The shopper's date of birth in - * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. + * The shopper's date of birth in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. + * @return dateOfBirth The shopper's date of birth in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1158,11 +1036,9 @@ public OffsetDateTime getDateOfBirth() { } /** - * The shopper's date of birth in - * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. + * The shopper's date of birth in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. * - * @param dateOfBirth The shopper's date of birth in - * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. + * @param dateOfBirth The shopper's date of birth in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1171,15 +1047,10 @@ public void setDateOfBirth(OffsetDateTime dateOfBirth) { } /** - * The date and time when the purchased goods should be delivered. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. + * The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. * - * @param deliverAt The date and time when the purchased goods should be delivered. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param deliverAt The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse deliverAt(OffsetDateTime deliverAt) { this.deliverAt = deliverAt; @@ -1187,13 +1058,8 @@ public CreateCheckoutSessionResponse deliverAt(OffsetDateTime deliverAt) { } /** - * The date and time when the purchased goods should be delivered. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. - * - * @return deliverAt The date and time when the purchased goods should be delivered. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. + * The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * @return deliverAt The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_DELIVER_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1202,13 +1068,9 @@ public OffsetDateTime getDeliverAt() { } /** - * The date and time when the purchased goods should be delivered. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. + * The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. * - * @param deliverAt The date and time when the purchased goods should be delivered. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. + * @param deliverAt The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_DELIVER_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1219,9 +1081,8 @@ public void setDeliverAt(OffsetDateTime deliverAt) { /** * deliveryAddress * - * @param deliveryAddress - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param deliveryAddress + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse deliveryAddress(DeliveryAddress deliveryAddress) { this.deliveryAddress = deliveryAddress; @@ -1230,8 +1091,7 @@ public CreateCheckoutSessionResponse deliveryAddress(DeliveryAddress deliveryAdd /** * Get deliveryAddress - * - * @return deliveryAddress + * @return deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1242,7 +1102,7 @@ public DeliveryAddress getDeliveryAddress() { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1251,15 +1111,10 @@ public void setDeliveryAddress(DeliveryAddress deliveryAddress) { } /** - * When true and `shopperReference` is provided, the shopper will be asked if the - * payment details should be stored for future [one-click - * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). * - * @param enableOneClick When true and `shopperReference` is provided, the shopper will - * be asked if the payment details should be stored for future [one-click - * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param enableOneClick When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse enableOneClick(Boolean enableOneClick) { this.enableOneClick = enableOneClick; @@ -1267,13 +1122,8 @@ public CreateCheckoutSessionResponse enableOneClick(Boolean enableOneClick) { } /** - * When true and `shopperReference` is provided, the shopper will be asked if the - * payment details should be stored for future [one-click - * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). - * - * @return enableOneClick When true and `shopperReference` is provided, the shopper will - * be asked if the payment details should be stored for future [one-click - * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * @return enableOneClick When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). */ @JsonProperty(JSON_PROPERTY_ENABLE_ONE_CLICK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1282,13 +1132,9 @@ public Boolean getEnableOneClick() { } /** - * When true and `shopperReference` is provided, the shopper will be asked if the - * payment details should be stored for future [one-click - * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). * - * @param enableOneClick When true and `shopperReference` is provided, the shopper will - * be asked if the payment details should be stored for future [one-click - * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * @param enableOneClick When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). */ @JsonProperty(JSON_PROPERTY_ENABLE_ONE_CLICK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1297,13 +1143,10 @@ public void setEnableOneClick(Boolean enableOneClick) { } /** - * When true and `shopperReference` is provided, the payment details will be tokenized - * for payouts. + * When true and `shopperReference` is provided, the payment details will be tokenized for payouts. * - * @param enablePayOut When true and `shopperReference` is provided, the payment details - * will be tokenized for payouts. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param enablePayOut When true and `shopperReference` is provided, the payment details will be tokenized for payouts. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse enablePayOut(Boolean enablePayOut) { this.enablePayOut = enablePayOut; @@ -1311,11 +1154,8 @@ public CreateCheckoutSessionResponse enablePayOut(Boolean enablePayOut) { } /** - * When true and `shopperReference` is provided, the payment details will be tokenized - * for payouts. - * - * @return enablePayOut When true and `shopperReference` is provided, the payment - * details will be tokenized for payouts. + * When true and `shopperReference` is provided, the payment details will be tokenized for payouts. + * @return enablePayOut When true and `shopperReference` is provided, the payment details will be tokenized for payouts. */ @JsonProperty(JSON_PROPERTY_ENABLE_PAY_OUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1324,11 +1164,9 @@ public Boolean getEnablePayOut() { } /** - * When true and `shopperReference` is provided, the payment details will be tokenized - * for payouts. + * When true and `shopperReference` is provided, the payment details will be tokenized for payouts. * - * @param enablePayOut When true and `shopperReference` is provided, the payment details - * will be tokenized for payouts. + * @param enablePayOut When true and `shopperReference` is provided, the payment details will be tokenized for payouts. */ @JsonProperty(JSON_PROPERTY_ENABLE_PAY_OUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1337,17 +1175,10 @@ public void setEnablePayOut(Boolean enablePayOut) { } /** - * When true and `shopperReference` is provided, the payment details will be stored for - * [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where - * the shopper is not present, such as subscription or automatic top-up payments. + * When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. * - * @param enableRecurring When true and `shopperReference` is provided, the payment - * details will be stored for [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) - * where the shopper is not present, such as subscription or automatic top-up payments. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param enableRecurring When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse enableRecurring(Boolean enableRecurring) { this.enableRecurring = enableRecurring; @@ -1355,15 +1186,8 @@ public CreateCheckoutSessionResponse enableRecurring(Boolean enableRecurring) { } /** - * When true and `shopperReference` is provided, the payment details will be stored for - * [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where - * the shopper is not present, such as subscription or automatic top-up payments. - * - * @return enableRecurring When true and `shopperReference` is provided, the payment - * details will be stored for [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) - * where the shopper is not present, such as subscription or automatic top-up payments. + * When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. + * @return enableRecurring When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. */ @JsonProperty(JSON_PROPERTY_ENABLE_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1372,15 +1196,9 @@ public Boolean getEnableRecurring() { } /** - * When true and `shopperReference` is provided, the payment details will be stored for - * [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where - * the shopper is not present, such as subscription or automatic top-up payments. + * When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. * - * @param enableRecurring When true and `shopperReference` is provided, the payment - * details will be stored for [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) - * where the shopper is not present, such as subscription or automatic top-up payments. + * @param enableRecurring When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. */ @JsonProperty(JSON_PROPERTY_ENABLE_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1389,17 +1207,10 @@ public void setEnableRecurring(Boolean enableRecurring) { } /** - * The date the session expires in - * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, - * the expiry date is set to 1 hour after session creation. You cannot set the session expiry to - * more than 24 hours after session creation. + * The date the session expires in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation. * - * @param expiresAt The date the session expires in - * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not - * specified, the expiry date is set to 1 hour after session creation. You cannot set the - * session expiry to more than 24 hours after session creation. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param expiresAt The date the session expires in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse expiresAt(OffsetDateTime expiresAt) { this.expiresAt = expiresAt; @@ -1407,15 +1218,8 @@ public CreateCheckoutSessionResponse expiresAt(OffsetDateTime expiresAt) { } /** - * The date the session expires in - * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, - * the expiry date is set to 1 hour after session creation. You cannot set the session expiry to - * more than 24 hours after session creation. - * - * @return expiresAt The date the session expires in - * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not - * specified, the expiry date is set to 1 hour after session creation. You cannot set the - * session expiry to more than 24 hours after session creation. + * The date the session expires in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation. + * @return expiresAt The date the session expires in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1424,15 +1228,9 @@ public OffsetDateTime getExpiresAt() { } /** - * The date the session expires in - * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, - * the expiry date is set to 1 hour after session creation. You cannot set the session expiry to - * more than 24 hours after session creation. + * The date the session expires in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation. * - * @param expiresAt The date the session expires in - * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not - * specified, the expiry date is set to 1 hour after session creation. You cannot set the - * session expiry to more than 24 hours after session creation. + * @param expiresAt The date the session expires in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1443,9 +1241,8 @@ public void setExpiresAt(OffsetDateTime expiresAt) { /** * fundOrigin * - * @param fundOrigin - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param fundOrigin + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse fundOrigin(FundOrigin fundOrigin) { this.fundOrigin = fundOrigin; @@ -1454,8 +1251,7 @@ public CreateCheckoutSessionResponse fundOrigin(FundOrigin fundOrigin) { /** * Get fundOrigin - * - * @return fundOrigin + * @return fundOrigin */ @JsonProperty(JSON_PROPERTY_FUND_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1466,7 +1262,7 @@ public FundOrigin getFundOrigin() { /** * fundOrigin * - * @param fundOrigin + * @param fundOrigin */ @JsonProperty(JSON_PROPERTY_FUND_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1477,9 +1273,8 @@ public void setFundOrigin(FundOrigin fundOrigin) { /** * fundRecipient * - * @param fundRecipient - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param fundRecipient + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse fundRecipient(FundRecipient fundRecipient) { this.fundRecipient = fundRecipient; @@ -1488,8 +1283,7 @@ public CreateCheckoutSessionResponse fundRecipient(FundRecipient fundRecipient) /** * Get fundRecipient - * - * @return fundRecipient + * @return fundRecipient */ @JsonProperty(JSON_PROPERTY_FUND_RECIPIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1500,7 +1294,7 @@ public FundRecipient getFundRecipient() { /** * fundRecipient * - * @param fundRecipient + * @param fundRecipient */ @JsonProperty(JSON_PROPERTY_FUND_RECIPIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1510,7 +1304,6 @@ public void setFundRecipient(FundRecipient fundRecipient) { /** * A unique identifier of the session. - * * @return id A unique identifier of the session. */ @JsonProperty(JSON_PROPERTY_ID) @@ -1519,27 +1312,19 @@ public String getId() { return id; } + /** - * A set of key-value pairs that specifies the installment options available per payment method. - * The key must be a payment method name in lowercase. For example, **card** to specify - * installment options for all cards, or **visa** or **mc**. The value must be an object - * containing the installment options. + * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. * - * @param installmentOptions A set of key-value pairs that specifies the installment options - * available per payment method. The key must be a payment method name in lowercase. For - * example, **card** to specify installment options for all cards, or **visa** or **mc**. The - * value must be an object containing the installment options. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param installmentOptions A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ - public CreateCheckoutSessionResponse installmentOptions( - Map installmentOptions) { + public CreateCheckoutSessionResponse installmentOptions(Map installmentOptions) { this.installmentOptions = installmentOptions; return this; } - public CreateCheckoutSessionResponse putInstallmentOptionsItem( - String key, CheckoutSessionInstallmentOption installmentOptionsItem) { + public CreateCheckoutSessionResponse putInstallmentOptionsItem(String key, CheckoutSessionInstallmentOption installmentOptionsItem) { if (this.installmentOptions == null) { this.installmentOptions = new HashMap<>(); } @@ -1548,15 +1333,8 @@ public CreateCheckoutSessionResponse putInstallmentOptionsItem( } /** - * A set of key-value pairs that specifies the installment options available per payment method. - * The key must be a payment method name in lowercase. For example, **card** to specify - * installment options for all cards, or **visa** or **mc**. The value must be an object - * containing the installment options. - * - * @return installmentOptions A set of key-value pairs that specifies the installment options - * available per payment method. The key must be a payment method name in lowercase. For - * example, **card** to specify installment options for all cards, or **visa** or **mc**. The - * value must be an object containing the installment options. + * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. + * @return installmentOptions A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1565,33 +1343,21 @@ public Map getInstallmentOptions() { } /** - * A set of key-value pairs that specifies the installment options available per payment method. - * The key must be a payment method name in lowercase. For example, **card** to specify - * installment options for all cards, or **visa** or **mc**. The value must be an object - * containing the installment options. + * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. * - * @param installmentOptions A set of key-value pairs that specifies the installment options - * available per payment method. The key must be a payment method name in lowercase. For - * example, **card** to specify installment options for all cards, or **visa** or **mc**. The - * value must be an object containing the installment options. + * @param installmentOptions A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentOptions( - Map installmentOptions) { + public void setInstallmentOptions(Map installmentOptions) { this.installmentOptions = installmentOptions; } /** - * Price and product information about the purchased items, to be included on the invoice sent to - * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, - * Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. * - * @param lineItems Price and product information about the purchased items, to be included on the - * invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, - * Clearpay, Klarna, Ratepay, and Riverty. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse lineItems(List lineItems) { this.lineItems = lineItems; @@ -1607,13 +1373,8 @@ public CreateCheckoutSessionResponse addLineItemsItem(LineItem lineItemsItem) { } /** - * Price and product information about the purchased items, to be included on the invoice sent to - * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, - * Ratepay, and Riverty. - * - * @return lineItems Price and product information about the purchased items, to be included on - * the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, - * Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * @return lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1622,13 +1383,9 @@ public List getLineItems() { } /** - * Price and product information about the purchased items, to be included on the invoice sent to - * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, - * Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. * - * @param lineItems Price and product information about the purchased items, to be included on the - * invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, - * Clearpay, Klarna, Ratepay, and Riverty. + * @param lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1639,9 +1396,8 @@ public void setLineItems(List lineItems) { /** * mandate * - * @param mandate - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param mandate + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse mandate(Mandate mandate) { this.mandate = mandate; @@ -1650,8 +1406,7 @@ public CreateCheckoutSessionResponse mandate(Mandate mandate) { /** * Get mandate - * - * @return mandate + * @return mandate */ @JsonProperty(JSON_PROPERTY_MANDATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1662,7 +1417,7 @@ public Mandate getMandate() { /** * mandate * - * @param mandate + * @param mandate */ @JsonProperty(JSON_PROPERTY_MANDATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1671,15 +1426,10 @@ public void setMandate(Mandate mandate) { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a - * four-digit number, which relates to a particular market segment. This code reflects the - * predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) - * (MCC) is a four-digit number, which relates to a particular market segment. This code - * reflects the predominant activity that is conducted by the merchant. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse mcc(String mcc) { this.mcc = mcc; @@ -1687,13 +1437,8 @@ public CreateCheckoutSessionResponse mcc(String mcc) { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a - * four-digit number, which relates to a particular market segment. This code reflects the - * predominant activity that is conducted by the merchant. - * - * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) - * (MCC) is a four-digit number, which relates to a particular market segment. This code - * reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1702,13 +1447,9 @@ public String getMcc() { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a - * four-digit number, which relates to a particular market segment. This code reflects the - * predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) - * (MCC) is a four-digit number, which relates to a particular market segment. This code - * reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1719,10 +1460,8 @@ public void setMcc(String mcc) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse merchantAccount(String merchantAccount) { this.merchantAccount = merchantAccount; @@ -1731,9 +1470,7 @@ public CreateCheckoutSessionResponse merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * - * @return merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @return merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1744,8 +1481,7 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1754,25 +1490,10 @@ public void setMerchantAccount(String merchantAccount) { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. - * order auth-rate). The reference should be unique per billing cycle. The same merchant order - * reference should never be reused after the first authorised attempt. If used, this field should - * be supplied for all incoming authorisations. > We strongly recommend you send the - * `merchantOrderReference` value to benefit from linking payment requests when - * authorisation retries take place. In addition, we recommend you provide - * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. * - * @param merchantOrderReference This reference allows linking multiple transactions to each other - * for reporting purposes (i.e. order auth-rate). The reference should be unique per billing - * cycle. The same merchant order reference should never be reused after the first authorised - * attempt. If used, this field should be supplied for all incoming authorisations. > We - * strongly recommend you send the `merchantOrderReference` value to benefit from - * linking payment requests when authorisation retries take place. In addition, we recommend - * you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse merchantOrderReference(String merchantOrderReference) { this.merchantOrderReference = merchantOrderReference; @@ -1780,24 +1501,8 @@ public CreateCheckoutSessionResponse merchantOrderReference(String merchantOrder } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. - * order auth-rate). The reference should be unique per billing cycle. The same merchant order - * reference should never be reused after the first authorised attempt. If used, this field should - * be supplied for all incoming authorisations. > We strongly recommend you send the - * `merchantOrderReference` value to benefit from linking payment requests when - * authorisation retries take place. In addition, we recommend you provide - * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. - * - * @return merchantOrderReference This reference allows linking multiple transactions to each - * other for reporting purposes (i.e. order auth-rate). The reference should be unique per - * billing cycle. The same merchant order reference should never be reused after the first - * authorised attempt. If used, this field should be supplied for all incoming authorisations. - * > We strongly recommend you send the `merchantOrderReference` value to benefit - * from linking payment requests when authorisation retries take place. In addition, we - * recommend you provide `retry.orderAttemptNumber`, - * `retry.chainAttemptNumber`, and `retry.skipRetry` values in - * `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * @return merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1806,23 +1511,9 @@ public String getMerchantOrderReference() { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. - * order auth-rate). The reference should be unique per billing cycle. The same merchant order - * reference should never be reused after the first authorised attempt. If used, this field should - * be supplied for all incoming authorisations. > We strongly recommend you send the - * `merchantOrderReference` value to benefit from linking payment requests when - * authorisation retries take place. In addition, we recommend you provide - * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. * - * @param merchantOrderReference This reference allows linking multiple transactions to each other - * for reporting purposes (i.e. order auth-rate). The reference should be unique per billing - * cycle. The same merchant order reference should never be reused after the first authorised - * attempt. If used, this field should be supplied for all incoming authorisations. > We - * strongly recommend you send the `merchantOrderReference` value to benefit from - * linking payment requests when authorisation retries take place. In addition, we recommend - * you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1831,15 +1522,10 @@ public void setMerchantOrderReference(String merchantOrderReference) { } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 - * key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per - * value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per value. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: - * * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 - * characters per value. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per value. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse metadata(Map metadata) { this.metadata = metadata; @@ -1855,13 +1541,8 @@ public CreateCheckoutSessionResponse putMetadataItem(String key, String metadata } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 - * key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per - * value. - * - * @return metadata Metadata consists of entries, each of which includes a key and a value. - * Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * - * Maximum 80 characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per value. + * @return metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per value. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1870,13 +1551,9 @@ public Map getMetadata() { } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 - * key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per - * value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per value. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: - * * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 - * characters per value. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per value. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1885,13 +1562,10 @@ public void setMetadata(Map metadata) { } /** - * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in - * or Components integration * **hosted**: Hosted Checkout integration + * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration * - * @param mode Indicates the type of front end integration. Possible values: * **embedded** - * (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param mode Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse mode(ModeEnum mode) { this.mode = mode; @@ -1899,11 +1573,8 @@ public CreateCheckoutSessionResponse mode(ModeEnum mode) { } /** - * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in - * or Components integration * **hosted**: Hosted Checkout integration - * - * @return mode Indicates the type of front end integration. Possible values: * **embedded** - * (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration + * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration + * @return mode Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration */ @JsonProperty(JSON_PROPERTY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1912,11 +1583,9 @@ public ModeEnum getMode() { } /** - * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in - * or Components integration * **hosted**: Hosted Checkout integration + * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration * - * @param mode Indicates the type of front end integration. Possible values: * **embedded** - * (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration + * @param mode Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration */ @JsonProperty(JSON_PROPERTY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1927,9 +1596,8 @@ public void setMode(ModeEnum mode) { /** * mpiData * - * @param mpiData - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param mpiData + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse mpiData(ThreeDSecureData mpiData) { this.mpiData = mpiData; @@ -1938,8 +1606,7 @@ public CreateCheckoutSessionResponse mpiData(ThreeDSecureData mpiData) { /** * Get mpiData - * - * @return mpiData + * @return mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1950,7 +1617,7 @@ public ThreeDSecureData getMpiData() { /** * mpiData * - * @param mpiData + * @param mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1961,20 +1628,17 @@ public void setMpiData(ThreeDSecureData mpiData) { /** * platformChargebackLogic * - * @param platformChargebackLogic - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param platformChargebackLogic + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ - public CreateCheckoutSessionResponse platformChargebackLogic( - PlatformChargebackLogic platformChargebackLogic) { + public CreateCheckoutSessionResponse platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) { this.platformChargebackLogic = platformChargebackLogic; return this; } /** * Get platformChargebackLogic - * - * @return platformChargebackLogic + * @return platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1985,7 +1649,7 @@ public PlatformChargebackLogic getPlatformChargebackLogic() { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1996,10 +1660,8 @@ public void setPlatformChargebackLogic(PlatformChargebackLogic platformChargebac /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. * - * @param recurringExpiry Date after which no further authorisations shall be performed. Only for - * 3D Secure 2. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse recurringExpiry(String recurringExpiry) { this.recurringExpiry = recurringExpiry; @@ -2008,9 +1670,7 @@ public CreateCheckoutSessionResponse recurringExpiry(String recurringExpiry) { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. - * - * @return recurringExpiry Date after which no further authorisations shall be performed. Only for - * 3D Secure 2. + * @return recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2021,8 +1681,7 @@ public String getRecurringExpiry() { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. * - * @param recurringExpiry Date after which no further authorisations shall be performed. Only for - * 3D Secure 2. + * @param recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2034,8 +1693,7 @@ public void setRecurringExpiry(String recurringExpiry) { * Minimum number of days between authorisations. Only for 3D Secure 2. * * @param recurringFrequency Minimum number of days between authorisations. Only for 3D Secure 2. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse recurringFrequency(String recurringFrequency) { this.recurringFrequency = recurringFrequency; @@ -2044,7 +1702,6 @@ public CreateCheckoutSessionResponse recurringFrequency(String recurringFrequenc /** * Minimum number of days between authorisations. Only for 3D Secure 2. - * * @return recurringFrequency Minimum number of days between authorisations. Only for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY) @@ -2065,54 +1722,19 @@ public void setRecurringFrequency(String recurringFrequency) { } /** - * Defines a recurring payment type. Required when creating a token to store payment details. - * Allowed values: * `Subscription` – A transaction for a fixed or variable amount, - * which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) - * transaction, card details are stored to enable one-click or omnichannel journeys, or simply to - * streamline the checkout process. Any subscription not following a fixed schedule is also - * considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled - * card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or - * have variable amounts. For example, automatic top-ups when a cardholder's balance drops - * below a certain amount. - * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a - * token to store payment details. Allowed values: * `Subscription` – A transaction - * for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – - * With a card-on-file (CoF) transaction, card details are stored to enable one-click or - * omnichannel journeys, or simply to streamline the checkout process. Any subscription not - * following a fixed schedule is also considered a card-on-file transaction. * - * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a - * transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, - * automatic top-ups when a cardholder's balance drops below a certain amount. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining - */ - public CreateCheckoutSessionResponse recurringProcessingModel( - RecurringProcessingModelEnum recurringProcessingModel) { + * Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + */ + public CreateCheckoutSessionResponse recurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) { this.recurringProcessingModel = recurringProcessingModel; return this; } /** - * Defines a recurring payment type. Required when creating a token to store payment details. - * Allowed values: * `Subscription` – A transaction for a fixed or variable amount, - * which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) - * transaction, card details are stored to enable one-click or omnichannel journeys, or simply to - * streamline the checkout process. Any subscription not following a fixed schedule is also - * considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled - * card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or - * have variable amounts. For example, automatic top-ups when a cardholder's balance drops - * below a certain amount. - * - * @return recurringProcessingModel Defines a recurring payment type. Required when creating a - * token to store payment details. Allowed values: * `Subscription` – A transaction - * for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – - * With a card-on-file (CoF) transaction, card details are stored to enable one-click or - * omnichannel journeys, or simply to streamline the checkout process. Any subscription not - * following a fixed schedule is also considered a card-on-file transaction. * - * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a - * transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, - * automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * @return recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2121,25 +1743,9 @@ public RecurringProcessingModelEnum getRecurringProcessingModel() { } /** - * Defines a recurring payment type. Required when creating a token to store payment details. - * Allowed values: * `Subscription` – A transaction for a fixed or variable amount, - * which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) - * transaction, card details are stored to enable one-click or omnichannel journeys, or simply to - * streamline the checkout process. Any subscription not following a fixed schedule is also - * considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled - * card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or - * have variable amounts. For example, automatic top-ups when a cardholder's balance drops - * below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a - * token to store payment details. Allowed values: * `Subscription` – A transaction - * for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – - * With a card-on-file (CoF) transaction, card details are stored to enable one-click or - * omnichannel journeys, or simply to streamline the checkout process. Any subscription not - * following a fixed schedule is also considered a card-on-file transaction. * - * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a - * transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, - * automatic top-ups when a cardholder's balance drops below a certain amount. + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2150,10 +1756,8 @@ public void setRecurringProcessingModel(RecurringProcessingModelEnum recurringPr /** * Specifies the redirect method (GET or POST) when redirecting back from the issuer. * - * @param redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting - * back from the issuer. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting back from the issuer. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse redirectFromIssuerMethod(String redirectFromIssuerMethod) { this.redirectFromIssuerMethod = redirectFromIssuerMethod; @@ -2162,9 +1766,7 @@ public CreateCheckoutSessionResponse redirectFromIssuerMethod(String redirectFro /** * Specifies the redirect method (GET or POST) when redirecting back from the issuer. - * - * @return redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting - * back from the issuer. + * @return redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting back from the issuer. */ @JsonProperty(JSON_PROPERTY_REDIRECT_FROM_ISSUER_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2175,8 +1777,7 @@ public String getRedirectFromIssuerMethod() { /** * Specifies the redirect method (GET or POST) when redirecting back from the issuer. * - * @param redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting - * back from the issuer. + * @param redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting back from the issuer. */ @JsonProperty(JSON_PROPERTY_REDIRECT_FROM_ISSUER_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2187,10 +1788,8 @@ public void setRedirectFromIssuerMethod(String redirectFromIssuerMethod) { /** * Specifies the redirect method (GET or POST) when redirecting to the issuer. * - * @param redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to - * the issuer. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to the issuer. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse redirectToIssuerMethod(String redirectToIssuerMethod) { this.redirectToIssuerMethod = redirectToIssuerMethod; @@ -2199,9 +1798,7 @@ public CreateCheckoutSessionResponse redirectToIssuerMethod(String redirectToIss /** * Specifies the redirect method (GET or POST) when redirecting to the issuer. - * - * @return redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to - * the issuer. + * @return redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to the issuer. */ @JsonProperty(JSON_PROPERTY_REDIRECT_TO_ISSUER_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2212,8 +1809,7 @@ public String getRedirectToIssuerMethod() { /** * Specifies the redirect method (GET or POST) when redirecting to the issuer. * - * @param redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to - * the issuer. + * @param redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to the issuer. */ @JsonProperty(JSON_PROPERTY_REDIRECT_TO_ISSUER_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2225,8 +1821,7 @@ public void setRedirectToIssuerMethod(String redirectToIssuerMethod) { * The reference to uniquely identify a payment. * * @param reference The reference to uniquely identify a payment. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse reference(String reference) { this.reference = reference; @@ -2235,7 +1830,6 @@ public CreateCheckoutSessionResponse reference(String reference) { /** * The reference to uniquely identify a payment. - * * @return reference The reference to uniquely identify a payment. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -2256,38 +1850,10 @@ public void setReference(String reference) { } /** - * The URL to return to in case of a redirection. The format depends on the channel. * For web, - * include the protocol `http://` or `https://`. You can also include your own - * additional query parameters, for example, shopper ID or order reference number. Example: - * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the - * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple - * Developer - * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). - * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your - * app. You can configure it with an [intent - * filter](https://developer.android.com/guide/components/intents-filters). Example: - * `my-app://your.package.name` If the URL to return to includes non-ASCII characters, - * like spaces or special letters, URL encode the value. We strongly recommend that you use a - * maximum of 1024 characters. > The URL must not include personally identifiable information - * (PII), for example name or email address. - * - * @param returnUrl The URL to return to in case of a redirection. The format depends on the - * channel. * For web, include the protocol `http://` or `https://`. You - * can also include your own additional query parameters, for example, shopper ID or order - * reference number. Example: - * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use - * the custom URL for your app. To know more about setting custom URL schemes, refer to the - * [Apple Developer - * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). - * Example: `my-app://` * For Android, use a custom URL handled by an Activity on - * your app. You can configure it with an [intent - * filter](https://developer.android.com/guide/components/intents-filters). Example: - * `my-app://your.package.name` If the URL to return to includes non-ASCII - * characters, like spaces or special letters, URL encode the value. We strongly recommend - * that you use a maximum of 1024 characters. > The URL must not include personally - * identifiable information (PII), for example name or email address. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. + * + * @param returnUrl The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse returnUrl(String returnUrl) { this.returnUrl = returnUrl; @@ -2295,36 +1861,8 @@ public CreateCheckoutSessionResponse returnUrl(String returnUrl) { } /** - * The URL to return to in case of a redirection. The format depends on the channel. * For web, - * include the protocol `http://` or `https://`. You can also include your own - * additional query parameters, for example, shopper ID or order reference number. Example: - * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the - * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple - * Developer - * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). - * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your - * app. You can configure it with an [intent - * filter](https://developer.android.com/guide/components/intents-filters). Example: - * `my-app://your.package.name` If the URL to return to includes non-ASCII characters, - * like spaces or special letters, URL encode the value. We strongly recommend that you use a - * maximum of 1024 characters. > The URL must not include personally identifiable information - * (PII), for example name or email address. - * - * @return returnUrl The URL to return to in case of a redirection. The format depends on the - * channel. * For web, include the protocol `http://` or `https://`. You - * can also include your own additional query parameters, for example, shopper ID or order - * reference number. Example: - * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use - * the custom URL for your app. To know more about setting custom URL schemes, refer to the - * [Apple Developer - * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). - * Example: `my-app://` * For Android, use a custom URL handled by an Activity on - * your app. You can configure it with an [intent - * filter](https://developer.android.com/guide/components/intents-filters). Example: - * `my-app://your.package.name` If the URL to return to includes non-ASCII - * characters, like spaces or special letters, URL encode the value. We strongly recommend - * that you use a maximum of 1024 characters. > The URL must not include personally - * identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. + * @return returnUrl The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. */ @JsonProperty(JSON_PROPERTY_RETURN_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2333,36 +1871,9 @@ public String getReturnUrl() { } /** - * The URL to return to in case of a redirection. The format depends on the channel. * For web, - * include the protocol `http://` or `https://`. You can also include your own - * additional query parameters, for example, shopper ID or order reference number. Example: - * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the - * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple - * Developer - * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). - * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your - * app. You can configure it with an [intent - * filter](https://developer.android.com/guide/components/intents-filters). Example: - * `my-app://your.package.name` If the URL to return to includes non-ASCII characters, - * like spaces or special letters, URL encode the value. We strongly recommend that you use a - * maximum of 1024 characters. > The URL must not include personally identifiable information - * (PII), for example name or email address. - * - * @param returnUrl The URL to return to in case of a redirection. The format depends on the - * channel. * For web, include the protocol `http://` or `https://`. You - * can also include your own additional query parameters, for example, shopper ID or order - * reference number. Example: - * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use - * the custom URL for your app. To know more about setting custom URL schemes, refer to the - * [Apple Developer - * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). - * Example: `my-app://` * For Android, use a custom URL handled by an Activity on - * your app. You can configure it with an [intent - * filter](https://developer.android.com/guide/components/intents-filters). Example: - * `my-app://your.package.name` If the URL to return to includes non-ASCII - * characters, like spaces or special letters, URL encode the value. We strongly recommend - * that you use a maximum of 1024 characters. > The URL must not include personally - * identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. + * + * @param returnUrl The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. */ @JsonProperty(JSON_PROPERTY_RETURN_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2373,9 +1884,8 @@ public void setReturnUrl(String returnUrl) { /** * riskData * - * @param riskData - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param riskData + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse riskData(RiskData riskData) { this.riskData = riskData; @@ -2384,8 +1894,7 @@ public CreateCheckoutSessionResponse riskData(RiskData riskData) { /** * Get riskData - * - * @return riskData + * @return riskData */ @JsonProperty(JSON_PROPERTY_RISK_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2396,7 +1905,7 @@ public RiskData getRiskData() { /** * riskData * - * @param riskData + * @param riskData */ @JsonProperty(JSON_PROPERTY_RISK_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2408,8 +1917,7 @@ public void setRiskData(RiskData riskData) { * The payment session data you need to pass to your front end. * * @param sessionData The payment session data you need to pass to your front end. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse sessionData(String sessionData) { this.sessionData = sessionData; @@ -2418,7 +1926,6 @@ public CreateCheckoutSessionResponse sessionData(String sessionData) { /** * The payment session data you need to pass to your front end. - * * @return sessionData The payment session data you need to pass to your front end. */ @JsonProperty(JSON_PROPERTY_SESSION_DATA) @@ -2442,8 +1949,7 @@ public void setSessionData(String sessionData) { * The shopper's email address. * * @param shopperEmail The shopper's email address. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse shopperEmail(String shopperEmail) { this.shopperEmail = shopperEmail; @@ -2452,7 +1958,6 @@ public CreateCheckoutSessionResponse shopperEmail(String shopperEmail) { /** * The shopper's email address. - * * @return shopperEmail The shopper's email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -2473,24 +1978,10 @@ public void setShopperEmail(String shopperEmail) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks). > - * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and - * mobile integrations, if you did not include the `shopperEmail`. For native mobile - * integrations, the field is required to support cases where authentication is routed to the - * redirect flow. This field is also mandatory for some merchants depending on your business - * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it - * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks). > Required for Visa and JCB transactions that require 3D Secure - * 2 authentication for all web and mobile integrations, if you did not include the - * `shopperEmail`. For native mobile integrations, the field is required to support - * cases where authentication is routed to the redirect flow. This field is also mandatory for - * some merchants depending on your business model. For more information, [contact - * Support](https://www.adyen.help/hc/en-us/requests/new). - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse shopperIP(String shopperIP) { this.shopperIP = shopperIP; @@ -2498,22 +1989,8 @@ public CreateCheckoutSessionResponse shopperIP(String shopperIP) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks). > - * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and - * mobile integrations, if you did not include the `shopperEmail`. For native mobile - * integrations, the field is required to support cases where authentication is routed to the - * redirect flow. This field is also mandatory for some merchants depending on your business - * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). - * - * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it - * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks). > Required for Visa and JCB transactions that require 3D Secure - * 2 authentication for all web and mobile integrations, if you did not include the - * `shopperEmail`. For native mobile integrations, the field is required to support - * cases where authentication is routed to the redirect flow. This field is also mandatory for - * some merchants depending on your business model. For more information, [contact - * Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2522,22 +1999,9 @@ public String getShopperIP() { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks). > - * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and - * mobile integrations, if you did not include the `shopperEmail`. For native mobile - * integrations, the field is required to support cases where authentication is routed to the - * redirect flow. This field is also mandatory for some merchants depending on your business - * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it - * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks). > Required for Visa and JCB transactions that require 3D Secure - * 2 authentication for all web and mobile integrations, if you did not include the - * `shopperEmail`. For native mobile integrations, the field is required to support - * cases where authentication is routed to the redirect flow. This field is also mandatory for - * some merchants depending on your business model. For more information, [contact - * Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2546,64 +2010,19 @@ public void setShopperIP(String shopperIP) { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. - * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining - */ - public CreateCheckoutSessionResponse shopperInteraction( - ShopperInteractionEnum shopperInteraction) { + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + */ + public CreateCheckoutSessionResponse shopperInteraction(ShopperInteractionEnum shopperInteraction) { this.shopperInteraction = shopperInteraction; return this; } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. - * - * @return shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * @return shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2612,30 +2031,9 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. - * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2644,13 +2042,10 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The combination of a language code and a country code to specify the language to be used in the payment. * - * @param shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse shopperLocale(String shopperLocale) { this.shopperLocale = shopperLocale; @@ -2658,11 +2053,8 @@ public CreateCheckoutSessionResponse shopperLocale(String shopperLocale) { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. - * - * @return shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the payment. + * @return shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2671,11 +2063,9 @@ public String getShopperLocale() { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The combination of a language code and a country code to specify the language to be used in the payment. * - * @param shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2686,9 +2076,8 @@ public void setShopperLocale(String shopperLocale) { /** * shopperName * - * @param shopperName - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param shopperName + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse shopperName(Name shopperName) { this.shopperName = shopperName; @@ -2697,8 +2086,7 @@ public CreateCheckoutSessionResponse shopperName(Name shopperName) { /** * Get shopperName - * - * @return shopperName + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2709,7 +2097,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2718,16 +2106,10 @@ public void setShopperName(Name shopperName) { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. The value - * is case-sensitive and must be at least three characters. > Your reference must not include - * personally identifiable information (PII) such as name or email address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * - * @param shopperReference Your reference to uniquely identify this shopper, for example user ID - * or account ID. The value is case-sensitive and must be at least three characters. > Your - * reference must not include personally identifiable information (PII) such as name or email - * address. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse shopperReference(String shopperReference) { this.shopperReference = shopperReference; @@ -2735,14 +2117,8 @@ public CreateCheckoutSessionResponse shopperReference(String shopperReference) { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. The value - * is case-sensitive and must be at least three characters. > Your reference must not include - * personally identifiable information (PII) such as name or email address. - * - * @return shopperReference Your reference to uniquely identify this shopper, for example user ID - * or account ID. The value is case-sensitive and must be at least three characters. > Your - * reference must not include personally identifiable information (PII) such as name or email - * address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @return shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2751,14 +2127,9 @@ public String getShopperReference() { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. The value - * is case-sensitive and must be at least three characters. > Your reference must not include - * personally identifiable information (PII) such as name or email address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * - * @param shopperReference Your reference to uniquely identify this shopper, for example user ID - * or account ID. The value is case-sensitive and must be at least three characters. > Your - * reference must not include personally identifiable information (PII) such as name or email - * address. + * @param shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2767,16 +2138,10 @@ public void setShopperReference(String shopperReference) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 - * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, - * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend - * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed - * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * - * /_**. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse shopperStatement(String shopperStatement) { this.shopperStatement = shopperStatement; @@ -2784,14 +2149,8 @@ public CreateCheckoutSessionResponse shopperStatement(String shopperStatement) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 - * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, - * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. - * - * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend - * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed - * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * - * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2800,14 +2159,9 @@ public String getShopperStatement() { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 - * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, - * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend - * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed - * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * - * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2819,8 +2173,7 @@ public void setShopperStatement(String shopperStatement) { * Set to true to show the payment amount per installment. * * @param showInstallmentAmount Set to true to show the payment amount per installment. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse showInstallmentAmount(Boolean showInstallmentAmount) { this.showInstallmentAmount = showInstallmentAmount; @@ -2829,7 +2182,6 @@ public CreateCheckoutSessionResponse showInstallmentAmount(Boolean showInstallme /** * Set to true to show the payment amount per installment. - * * @return showInstallmentAmount Set to true to show the payment amount per installment. */ @JsonProperty(JSON_PROPERTY_SHOW_INSTALLMENT_AMOUNT) @@ -2852,22 +2204,17 @@ public void setShowInstallmentAmount(Boolean showInstallmentAmount) { /** * Set to **true** to show a button that lets the shopper remove a stored payment method. * - * @param showRemovePaymentMethodButton Set to **true** to show a button that lets the shopper - * remove a stored payment method. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param showRemovePaymentMethodButton Set to **true** to show a button that lets the shopper remove a stored payment method. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ - public CreateCheckoutSessionResponse showRemovePaymentMethodButton( - Boolean showRemovePaymentMethodButton) { + public CreateCheckoutSessionResponse showRemovePaymentMethodButton(Boolean showRemovePaymentMethodButton) { this.showRemovePaymentMethodButton = showRemovePaymentMethodButton; return this; } /** * Set to **true** to show a button that lets the shopper remove a stored payment method. - * - * @return showRemovePaymentMethodButton Set to **true** to show a button that lets the shopper - * remove a stored payment method. + * @return showRemovePaymentMethodButton Set to **true** to show a button that lets the shopper remove a stored payment method. */ @JsonProperty(JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2878,8 +2225,7 @@ public Boolean getShowRemovePaymentMethodButton() { /** * Set to **true** to show a button that lets the shopper remove a stored payment method. * - * @param showRemovePaymentMethodButton Set to **true** to show a button that lets the shopper - * remove a stored payment method. + * @param showRemovePaymentMethodButton Set to **true** to show a button that lets the shopper remove a stored payment method. */ @JsonProperty(JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2891,8 +2237,7 @@ public void setShowRemovePaymentMethodButton(Boolean showRemovePaymentMethodButt * The shopper's social security number. * * @param socialSecurityNumber The shopper's social security number. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse socialSecurityNumber(String socialSecurityNumber) { this.socialSecurityNumber = socialSecurityNumber; @@ -2901,7 +2246,6 @@ public CreateCheckoutSessionResponse socialSecurityNumber(String socialSecurityN /** * The shopper's social security number. - * * @return socialSecurityNumber The shopper's social security number. */ @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER) @@ -2922,13 +2266,10 @@ public void setSocialSecurityNumber(String socialSecurityNumber) { } /** - * Boolean value indicating whether the card payment method should be split into separate debit - * and credit options. + * Boolean value indicating whether the card payment method should be split into separate debit and credit options. * - * @param splitCardFundingSources Boolean value indicating whether the card payment method should - * be split into separate debit and credit options. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param splitCardFundingSources Boolean value indicating whether the card payment method should be split into separate debit and credit options. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse splitCardFundingSources(Boolean splitCardFundingSources) { this.splitCardFundingSources = splitCardFundingSources; @@ -2936,11 +2277,8 @@ public CreateCheckoutSessionResponse splitCardFundingSources(Boolean splitCardFu } /** - * Boolean value indicating whether the card payment method should be split into separate debit - * and credit options. - * - * @return splitCardFundingSources Boolean value indicating whether the card payment method should - * be split into separate debit and credit options. + * Boolean value indicating whether the card payment method should be split into separate debit and credit options. + * @return splitCardFundingSources Boolean value indicating whether the card payment method should be split into separate debit and credit options. */ @JsonProperty(JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2949,11 +2287,9 @@ public Boolean getSplitCardFundingSources() { } /** - * Boolean value indicating whether the card payment method should be split into separate debit - * and credit options. + * Boolean value indicating whether the card payment method should be split into separate debit and credit options. * - * @param splitCardFundingSources Boolean value indicating whether the card payment method should - * be split into separate debit and credit options. + * @param splitCardFundingSources Boolean value indicating whether the card payment method should be split into separate debit and credit options. */ @JsonProperty(JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2962,19 +2298,10 @@ public void setSplitCardFundingSources(Boolean splitCardFundingSources) { } /** - * An array of objects specifying how to split a payment when using [Adyen for - * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), - * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), - * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). * - * @param splits An array of objects specifying how to split a payment when using [Adyen for - * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), - * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), - * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse splits(List splits) { this.splits = splits; @@ -2990,17 +2317,8 @@ public CreateCheckoutSessionResponse addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how to split a payment when using [Adyen for - * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), - * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), - * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). - * - * @return splits An array of objects specifying how to split a payment when using [Adyen for - * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), - * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), - * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * @return splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3009,17 +2327,9 @@ public List getSplits() { } /** - * An array of objects specifying how to split a payment when using [Adyen for - * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), - * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), - * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). * - * @param splits An array of objects specifying how to split a payment when using [Adyen for - * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), - * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), - * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * @param splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3028,24 +2338,10 @@ public void setSplits(List splits) { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. * - * @param store Required for Adyen for Platforms integrations if you are a platform model. This is - * your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse store(String store) { this.store = store; @@ -3053,22 +2349,8 @@ public CreateCheckoutSessionResponse store(String store) { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. - * - * @return store Required for Adyen for Platforms integrations if you are a platform model. This - * is your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * @return store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3077,22 +2359,9 @@ public String getStore() { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. * - * @param store Required for Adyen for Platforms integrations if you are a platform model. This is - * your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3101,34 +2370,19 @@ public void setStore(String store) { } /** - * Specifies how payment methods should be filtered based on the 'store' parameter: - - * 'exclusive': Only payment methods belonging to the specified 'store' are - * returned. - 'inclusive': Payment methods from the 'store' and those not - * associated with any other store are returned. + * Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. * - * @param storeFiltrationMode Specifies how payment methods should be filtered based on the - * 'store' parameter: - 'exclusive': Only payment methods belonging to the - * specified 'store' are returned. - 'inclusive': Payment methods from the - * 'store' and those not associated with any other store are returned. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param storeFiltrationMode Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ - public CreateCheckoutSessionResponse storeFiltrationMode( - StoreFiltrationModeEnum storeFiltrationMode) { + public CreateCheckoutSessionResponse storeFiltrationMode(StoreFiltrationModeEnum storeFiltrationMode) { this.storeFiltrationMode = storeFiltrationMode; return this; } /** - * Specifies how payment methods should be filtered based on the 'store' parameter: - - * 'exclusive': Only payment methods belonging to the specified 'store' are - * returned. - 'inclusive': Payment methods from the 'store' and those not - * associated with any other store are returned. - * - * @return storeFiltrationMode Specifies how payment methods should be filtered based on the - * 'store' parameter: - 'exclusive': Only payment methods belonging to the - * specified 'store' are returned. - 'inclusive': Payment methods from the - * 'store' and those not associated with any other store are returned. + * Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. + * @return storeFiltrationMode Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. */ @JsonProperty(JSON_PROPERTY_STORE_FILTRATION_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3137,15 +2391,9 @@ public StoreFiltrationModeEnum getStoreFiltrationMode() { } /** - * Specifies how payment methods should be filtered based on the 'store' parameter: - - * 'exclusive': Only payment methods belonging to the specified 'store' are - * returned. - 'inclusive': Payment methods from the 'store' and those not - * associated with any other store are returned. + * Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. * - * @param storeFiltrationMode Specifies how payment methods should be filtered based on the - * 'store' parameter: - 'exclusive': Only payment methods belonging to the - * specified 'store' are returned. - 'inclusive': Payment methods from the - * 'store' and those not associated with any other store are returned. + * @param storeFiltrationMode Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. */ @JsonProperty(JSON_PROPERTY_STORE_FILTRATION_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3154,15 +2402,10 @@ public void setStoreFiltrationMode(StoreFiltrationModeEnum storeFiltrationMode) } /** - * When true and `shopperReference` is provided, the payment details will be stored for - * future [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). * - * @param storePaymentMethod When true and `shopperReference` is provided, the payment - * details will be stored for future [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param storePaymentMethod When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse storePaymentMethod(Boolean storePaymentMethod) { this.storePaymentMethod = storePaymentMethod; @@ -3170,13 +2413,8 @@ public CreateCheckoutSessionResponse storePaymentMethod(Boolean storePaymentMeth } /** - * When true and `shopperReference` is provided, the payment details will be stored for - * future [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). - * - * @return storePaymentMethod When true and `shopperReference` is provided, the payment - * details will be stored for future [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * @return storePaymentMethod When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). */ @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3185,13 +2423,9 @@ public Boolean getStorePaymentMethod() { } /** - * When true and `shopperReference` is provided, the payment details will be stored for - * future [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). * - * @param storePaymentMethod When true and `shopperReference` is provided, the payment - * details will be stored for future [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * @param storePaymentMethod When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). */ @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3200,40 +2434,19 @@ public void setStorePaymentMethod(Boolean storePaymentMethod) { } /** - * Indicates if the details of the payment method will be stored for the shopper. Possible values: - * * **disabled** – No details will be stored (default). * **askForConsent** – If the - * `shopperReference` is provided, the UI lets the shopper choose if they want their - * payment details to be stored. * **enabled** – If the `shopperReference` is provided, - * the details will be stored without asking the shopper for consent. + * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. * - * @param storePaymentMethodMode Indicates if the details of the payment method will be stored for - * the shopper. Possible values: * **disabled** – No details will be stored (default). * - * **askForConsent** – If the `shopperReference` is provided, the UI lets the - * shopper choose if they want their payment details to be stored. * **enabled** – If the - * `shopperReference` is provided, the details will be stored without asking the - * shopper for consent. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param storePaymentMethodMode Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ - public CreateCheckoutSessionResponse storePaymentMethodMode( - StorePaymentMethodModeEnum storePaymentMethodMode) { + public CreateCheckoutSessionResponse storePaymentMethodMode(StorePaymentMethodModeEnum storePaymentMethodMode) { this.storePaymentMethodMode = storePaymentMethodMode; return this; } /** - * Indicates if the details of the payment method will be stored for the shopper. Possible values: - * * **disabled** – No details will be stored (default). * **askForConsent** – If the - * `shopperReference` is provided, the UI lets the shopper choose if they want their - * payment details to be stored. * **enabled** – If the `shopperReference` is provided, - * the details will be stored without asking the shopper for consent. - * - * @return storePaymentMethodMode Indicates if the details of the payment method will be stored - * for the shopper. Possible values: * **disabled** – No details will be stored (default). * - * **askForConsent** – If the `shopperReference` is provided, the UI lets the - * shopper choose if they want their payment details to be stored. * **enabled** – If the - * `shopperReference` is provided, the details will be stored without asking the - * shopper for consent. + * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. + * @return storePaymentMethodMode Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. */ @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3242,18 +2455,9 @@ public StorePaymentMethodModeEnum getStorePaymentMethodMode() { } /** - * Indicates if the details of the payment method will be stored for the shopper. Possible values: - * * **disabled** – No details will be stored (default). * **askForConsent** – If the - * `shopperReference` is provided, the UI lets the shopper choose if they want their - * payment details to be stored. * **enabled** – If the `shopperReference` is provided, - * the details will be stored without asking the shopper for consent. + * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. * - * @param storePaymentMethodMode Indicates if the details of the payment method will be stored for - * the shopper. Possible values: * **disabled** – No details will be stored (default). * - * **askForConsent** – If the `shopperReference` is provided, the UI lets the - * shopper choose if they want their payment details to be stored. * **enabled** – If the - * `shopperReference` is provided, the details will be stored without asking the - * shopper for consent. + * @param storePaymentMethodMode Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. */ @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3262,19 +2466,10 @@ public void setStorePaymentMethodMode(StorePaymentMethodModeEnum storePaymentMet } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus - * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse telephoneNumber(String telephoneNumber) { this.telephoneNumber = telephoneNumber; @@ -3282,17 +2477,8 @@ public CreateCheckoutSessionResponse telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. - * - * @return telephoneNumber The shopper's telephone number. The phone number must include a - * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @return telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3301,17 +2487,9 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus - * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3320,15 +2498,10 @@ public void setTelephoneNumber(String telephoneNumber) { } /** - * Sets a custom theme for [Hosted - * Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). - * The value can be any of the **Theme ID** values from your Customer Area. + * Sets a custom theme for [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). The value can be any of the **Theme ID** values from your Customer Area. * - * @param themeId Sets a custom theme for [Hosted - * Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). - * The value can be any of the **Theme ID** values from your Customer Area. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param themeId Sets a custom theme for [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). The value can be any of the **Theme ID** values from your Customer Area. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse themeId(String themeId) { this.themeId = themeId; @@ -3336,13 +2509,8 @@ public CreateCheckoutSessionResponse themeId(String themeId) { } /** - * Sets a custom theme for [Hosted - * Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). - * The value can be any of the **Theme ID** values from your Customer Area. - * - * @return themeId Sets a custom theme for [Hosted - * Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). - * The value can be any of the **Theme ID** values from your Customer Area. + * Sets a custom theme for [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). The value can be any of the **Theme ID** values from your Customer Area. + * @return themeId Sets a custom theme for [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). The value can be any of the **Theme ID** values from your Customer Area. */ @JsonProperty(JSON_PROPERTY_THEME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3351,13 +2519,9 @@ public String getThemeId() { } /** - * Sets a custom theme for [Hosted - * Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). - * The value can be any of the **Theme ID** values from your Customer Area. + * Sets a custom theme for [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). The value can be any of the **Theme ID** values from your Customer Area. * - * @param themeId Sets a custom theme for [Hosted - * Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). - * The value can be any of the **Theme ID** values from your Customer Area. + * @param themeId Sets a custom theme for [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). The value can be any of the **Theme ID** values from your Customer Area. */ @JsonProperty(JSON_PROPERTY_THEME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3368,20 +2532,17 @@ public void setThemeId(String themeId) { /** * threeDS2RequestData * - * @param threeDS2RequestData - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param threeDS2RequestData + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ - public CreateCheckoutSessionResponse threeDS2RequestData( - CheckoutSessionThreeDS2RequestData threeDS2RequestData) { + public CreateCheckoutSessionResponse threeDS2RequestData(CheckoutSessionThreeDS2RequestData threeDS2RequestData) { this.threeDS2RequestData = threeDS2RequestData; return this; } /** * Get threeDS2RequestData - * - * @return threeDS2RequestData + * @return threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3392,7 +2553,7 @@ public CheckoutSessionThreeDS2RequestData getThreeDS2RequestData() { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3401,43 +2562,26 @@ public void setThreeDS2RequestData(CheckoutSessionThreeDS2RequestData threeDS2Re } /** - * Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. * - * @param threeDSAuthenticationOnly Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining - * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` - * instead. + * @param threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * + * @deprecated since Adyen Checkout API v69 + * Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. - public CreateCheckoutSessionResponse threeDSAuthenticationOnly( - Boolean threeDSAuthenticationOnly) { + @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. + public CreateCheckoutSessionResponse threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { this.threeDSAuthenticationOnly = threeDSAuthenticationOnly; return this; } /** - * Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. - * - * @return threeDSAuthenticationOnly Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. - * @deprecated // deprecated since Adyen Checkout API v69: Use - * `authenticationData.authenticationOnly` instead. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * @return threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * @deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getThreeDSAuthenticationOnly() { @@ -3445,20 +2589,14 @@ public Boolean getThreeDSAuthenticationOnly() { } /** - * Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * + * @param threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. * - * @param threeDSAuthenticationOnly Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. - * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` - * instead. + * @deprecated since Adyen Checkout API v69 + * Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { @@ -3469,8 +2607,7 @@ public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { * Set to true if the payment should be routed to a trusted MID. * * @param trustedShopper Set to true if the payment should be routed to a trusted MID. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse trustedShopper(Boolean trustedShopper) { this.trustedShopper = trustedShopper; @@ -3479,7 +2616,6 @@ public CreateCheckoutSessionResponse trustedShopper(Boolean trustedShopper) { /** * Set to true if the payment should be routed to a trusted MID. - * * @return trustedShopper Set to true if the payment should be routed to a trusted MID. */ @JsonProperty(JSON_PROPERTY_TRUSTED_SHOPPER) @@ -3500,13 +2636,10 @@ public void setTrustedShopper(Boolean trustedShopper) { } /** - * The URL for the Hosted Checkout page. Redirect the shopper to this URL so they can make the - * payment. + * The URL for the Hosted Checkout page. Redirect the shopper to this URL so they can make the payment. * - * @param url The URL for the Hosted Checkout page. Redirect the shopper to this URL so they can - * make the payment. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method - * chaining + * @param url The URL for the Hosted Checkout page. Redirect the shopper to this URL so they can make the payment. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining */ public CreateCheckoutSessionResponse url(String url) { this.url = url; @@ -3514,11 +2647,8 @@ public CreateCheckoutSessionResponse url(String url) { } /** - * The URL for the Hosted Checkout page. Redirect the shopper to this URL so they can make the - * payment. - * - * @return url The URL for the Hosted Checkout page. Redirect the shopper to this URL so they can - * make the payment. + * The URL for the Hosted Checkout page. Redirect the shopper to this URL so they can make the payment. + * @return url The URL for the Hosted Checkout page. Redirect the shopper to this URL so they can make the payment. */ @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3527,11 +2657,9 @@ public String getUrl() { } /** - * The URL for the Hosted Checkout page. Redirect the shopper to this URL so they can make the - * payment. + * The URL for the Hosted Checkout page. Redirect the shopper to this URL so they can make the payment. * - * @param url The URL for the Hosted Checkout page. Redirect the shopper to this URL so they can - * make the payment. + * @param url The URL for the Hosted Checkout page. Redirect the shopper to this URL so they can make the payment. */ @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3539,7 +2667,9 @@ public void setUrl(String url) { this.url = url; } - /** Return true if this CreateCheckoutSessionResponse object is equal to o. */ + /** + * Return true if this CreateCheckoutSessionResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -3549,155 +2679,75 @@ public boolean equals(Object o) { return false; } CreateCheckoutSessionResponse createCheckoutSessionResponse = (CreateCheckoutSessionResponse) o; - return Objects.equals(this.accountInfo, createCheckoutSessionResponse.accountInfo) - && Objects.equals(this.additionalAmount, createCheckoutSessionResponse.additionalAmount) - && Objects.equals(this.additionalData, createCheckoutSessionResponse.additionalData) - && Objects.equals( - this.allowedPaymentMethods, createCheckoutSessionResponse.allowedPaymentMethods) - && Objects.equals(this.amount, createCheckoutSessionResponse.amount) - && Objects.equals(this.applicationInfo, createCheckoutSessionResponse.applicationInfo) - && Objects.equals(this.authenticationData, createCheckoutSessionResponse.authenticationData) - && Objects.equals(this.billingAddress, createCheckoutSessionResponse.billingAddress) - && Objects.equals( - this.blockedPaymentMethods, createCheckoutSessionResponse.blockedPaymentMethods) - && Objects.equals(this.captureDelayHours, createCheckoutSessionResponse.captureDelayHours) - && Objects.equals(this.channel, createCheckoutSessionResponse.channel) - && Objects.equals(this.company, createCheckoutSessionResponse.company) - && Objects.equals(this.countryCode, createCheckoutSessionResponse.countryCode) - && Objects.equals(this.dateOfBirth, createCheckoutSessionResponse.dateOfBirth) - && Objects.equals(this.deliverAt, createCheckoutSessionResponse.deliverAt) - && Objects.equals(this.deliveryAddress, createCheckoutSessionResponse.deliveryAddress) - && Objects.equals(this.enableOneClick, createCheckoutSessionResponse.enableOneClick) - && Objects.equals(this.enablePayOut, createCheckoutSessionResponse.enablePayOut) - && Objects.equals(this.enableRecurring, createCheckoutSessionResponse.enableRecurring) - && Objects.equals(this.expiresAt, createCheckoutSessionResponse.expiresAt) - && Objects.equals(this.fundOrigin, createCheckoutSessionResponse.fundOrigin) - && Objects.equals(this.fundRecipient, createCheckoutSessionResponse.fundRecipient) - && Objects.equals(this.id, createCheckoutSessionResponse.id) - && Objects.equals(this.installmentOptions, createCheckoutSessionResponse.installmentOptions) - && Objects.equals(this.lineItems, createCheckoutSessionResponse.lineItems) - && Objects.equals(this.mandate, createCheckoutSessionResponse.mandate) - && Objects.equals(this.mcc, createCheckoutSessionResponse.mcc) - && Objects.equals(this.merchantAccount, createCheckoutSessionResponse.merchantAccount) - && Objects.equals( - this.merchantOrderReference, createCheckoutSessionResponse.merchantOrderReference) - && Objects.equals(this.metadata, createCheckoutSessionResponse.metadata) - && Objects.equals(this.mode, createCheckoutSessionResponse.mode) - && Objects.equals(this.mpiData, createCheckoutSessionResponse.mpiData) - && Objects.equals( - this.platformChargebackLogic, createCheckoutSessionResponse.platformChargebackLogic) - && Objects.equals(this.recurringExpiry, createCheckoutSessionResponse.recurringExpiry) - && Objects.equals(this.recurringFrequency, createCheckoutSessionResponse.recurringFrequency) - && Objects.equals( - this.recurringProcessingModel, createCheckoutSessionResponse.recurringProcessingModel) - && Objects.equals( - this.redirectFromIssuerMethod, createCheckoutSessionResponse.redirectFromIssuerMethod) - && Objects.equals( - this.redirectToIssuerMethod, createCheckoutSessionResponse.redirectToIssuerMethod) - && Objects.equals(this.reference, createCheckoutSessionResponse.reference) - && Objects.equals(this.returnUrl, createCheckoutSessionResponse.returnUrl) - && Objects.equals(this.riskData, createCheckoutSessionResponse.riskData) - && Objects.equals(this.sessionData, createCheckoutSessionResponse.sessionData) - && Objects.equals(this.shopperEmail, createCheckoutSessionResponse.shopperEmail) - && Objects.equals(this.shopperIP, createCheckoutSessionResponse.shopperIP) - && Objects.equals(this.shopperInteraction, createCheckoutSessionResponse.shopperInteraction) - && Objects.equals(this.shopperLocale, createCheckoutSessionResponse.shopperLocale) - && Objects.equals(this.shopperName, createCheckoutSessionResponse.shopperName) - && Objects.equals(this.shopperReference, createCheckoutSessionResponse.shopperReference) - && Objects.equals(this.shopperStatement, createCheckoutSessionResponse.shopperStatement) - && Objects.equals( - this.showInstallmentAmount, createCheckoutSessionResponse.showInstallmentAmount) - && Objects.equals( - this.showRemovePaymentMethodButton, - createCheckoutSessionResponse.showRemovePaymentMethodButton) - && Objects.equals( - this.socialSecurityNumber, createCheckoutSessionResponse.socialSecurityNumber) - && Objects.equals( - this.splitCardFundingSources, createCheckoutSessionResponse.splitCardFundingSources) - && Objects.equals(this.splits, createCheckoutSessionResponse.splits) - && Objects.equals(this.store, createCheckoutSessionResponse.store) - && Objects.equals( - this.storeFiltrationMode, createCheckoutSessionResponse.storeFiltrationMode) - && Objects.equals(this.storePaymentMethod, createCheckoutSessionResponse.storePaymentMethod) - && Objects.equals( - this.storePaymentMethodMode, createCheckoutSessionResponse.storePaymentMethodMode) - && Objects.equals(this.telephoneNumber, createCheckoutSessionResponse.telephoneNumber) - && Objects.equals(this.themeId, createCheckoutSessionResponse.themeId) - && Objects.equals( - this.threeDS2RequestData, createCheckoutSessionResponse.threeDS2RequestData) - && Objects.equals( - this.threeDSAuthenticationOnly, createCheckoutSessionResponse.threeDSAuthenticationOnly) - && Objects.equals(this.trustedShopper, createCheckoutSessionResponse.trustedShopper) - && Objects.equals(this.url, createCheckoutSessionResponse.url); + return Objects.equals(this.accountInfo, createCheckoutSessionResponse.accountInfo) && + Objects.equals(this.additionalAmount, createCheckoutSessionResponse.additionalAmount) && + Objects.equals(this.additionalData, createCheckoutSessionResponse.additionalData) && + Objects.equals(this.allowedPaymentMethods, createCheckoutSessionResponse.allowedPaymentMethods) && + Objects.equals(this.amount, createCheckoutSessionResponse.amount) && + Objects.equals(this.applicationInfo, createCheckoutSessionResponse.applicationInfo) && + Objects.equals(this.authenticationData, createCheckoutSessionResponse.authenticationData) && + Objects.equals(this.billingAddress, createCheckoutSessionResponse.billingAddress) && + Objects.equals(this.blockedPaymentMethods, createCheckoutSessionResponse.blockedPaymentMethods) && + Objects.equals(this.captureDelayHours, createCheckoutSessionResponse.captureDelayHours) && + Objects.equals(this.channel, createCheckoutSessionResponse.channel) && + Objects.equals(this.company, createCheckoutSessionResponse.company) && + Objects.equals(this.countryCode, createCheckoutSessionResponse.countryCode) && + Objects.equals(this.dateOfBirth, createCheckoutSessionResponse.dateOfBirth) && + Objects.equals(this.deliverAt, createCheckoutSessionResponse.deliverAt) && + Objects.equals(this.deliveryAddress, createCheckoutSessionResponse.deliveryAddress) && + Objects.equals(this.enableOneClick, createCheckoutSessionResponse.enableOneClick) && + Objects.equals(this.enablePayOut, createCheckoutSessionResponse.enablePayOut) && + Objects.equals(this.enableRecurring, createCheckoutSessionResponse.enableRecurring) && + Objects.equals(this.expiresAt, createCheckoutSessionResponse.expiresAt) && + Objects.equals(this.fundOrigin, createCheckoutSessionResponse.fundOrigin) && + Objects.equals(this.fundRecipient, createCheckoutSessionResponse.fundRecipient) && + Objects.equals(this.id, createCheckoutSessionResponse.id) && + Objects.equals(this.installmentOptions, createCheckoutSessionResponse.installmentOptions) && + Objects.equals(this.lineItems, createCheckoutSessionResponse.lineItems) && + Objects.equals(this.mandate, createCheckoutSessionResponse.mandate) && + Objects.equals(this.mcc, createCheckoutSessionResponse.mcc) && + Objects.equals(this.merchantAccount, createCheckoutSessionResponse.merchantAccount) && + Objects.equals(this.merchantOrderReference, createCheckoutSessionResponse.merchantOrderReference) && + Objects.equals(this.metadata, createCheckoutSessionResponse.metadata) && + Objects.equals(this.mode, createCheckoutSessionResponse.mode) && + Objects.equals(this.mpiData, createCheckoutSessionResponse.mpiData) && + Objects.equals(this.platformChargebackLogic, createCheckoutSessionResponse.platformChargebackLogic) && + Objects.equals(this.recurringExpiry, createCheckoutSessionResponse.recurringExpiry) && + Objects.equals(this.recurringFrequency, createCheckoutSessionResponse.recurringFrequency) && + Objects.equals(this.recurringProcessingModel, createCheckoutSessionResponse.recurringProcessingModel) && + Objects.equals(this.redirectFromIssuerMethod, createCheckoutSessionResponse.redirectFromIssuerMethod) && + Objects.equals(this.redirectToIssuerMethod, createCheckoutSessionResponse.redirectToIssuerMethod) && + Objects.equals(this.reference, createCheckoutSessionResponse.reference) && + Objects.equals(this.returnUrl, createCheckoutSessionResponse.returnUrl) && + Objects.equals(this.riskData, createCheckoutSessionResponse.riskData) && + Objects.equals(this.sessionData, createCheckoutSessionResponse.sessionData) && + Objects.equals(this.shopperEmail, createCheckoutSessionResponse.shopperEmail) && + Objects.equals(this.shopperIP, createCheckoutSessionResponse.shopperIP) && + Objects.equals(this.shopperInteraction, createCheckoutSessionResponse.shopperInteraction) && + Objects.equals(this.shopperLocale, createCheckoutSessionResponse.shopperLocale) && + Objects.equals(this.shopperName, createCheckoutSessionResponse.shopperName) && + Objects.equals(this.shopperReference, createCheckoutSessionResponse.shopperReference) && + Objects.equals(this.shopperStatement, createCheckoutSessionResponse.shopperStatement) && + Objects.equals(this.showInstallmentAmount, createCheckoutSessionResponse.showInstallmentAmount) && + Objects.equals(this.showRemovePaymentMethodButton, createCheckoutSessionResponse.showRemovePaymentMethodButton) && + Objects.equals(this.socialSecurityNumber, createCheckoutSessionResponse.socialSecurityNumber) && + Objects.equals(this.splitCardFundingSources, createCheckoutSessionResponse.splitCardFundingSources) && + Objects.equals(this.splits, createCheckoutSessionResponse.splits) && + Objects.equals(this.store, createCheckoutSessionResponse.store) && + Objects.equals(this.storeFiltrationMode, createCheckoutSessionResponse.storeFiltrationMode) && + Objects.equals(this.storePaymentMethod, createCheckoutSessionResponse.storePaymentMethod) && + Objects.equals(this.storePaymentMethodMode, createCheckoutSessionResponse.storePaymentMethodMode) && + Objects.equals(this.telephoneNumber, createCheckoutSessionResponse.telephoneNumber) && + Objects.equals(this.themeId, createCheckoutSessionResponse.themeId) && + Objects.equals(this.threeDS2RequestData, createCheckoutSessionResponse.threeDS2RequestData) && + Objects.equals(this.threeDSAuthenticationOnly, createCheckoutSessionResponse.threeDSAuthenticationOnly) && + Objects.equals(this.trustedShopper, createCheckoutSessionResponse.trustedShopper) && + Objects.equals(this.url, createCheckoutSessionResponse.url); } @Override public int hashCode() { - return Objects.hash( - accountInfo, - additionalAmount, - additionalData, - allowedPaymentMethods, - amount, - applicationInfo, - authenticationData, - billingAddress, - blockedPaymentMethods, - captureDelayHours, - channel, - company, - countryCode, - dateOfBirth, - deliverAt, - deliveryAddress, - enableOneClick, - enablePayOut, - enableRecurring, - expiresAt, - fundOrigin, - fundRecipient, - id, - installmentOptions, - lineItems, - mandate, - mcc, - merchantAccount, - merchantOrderReference, - metadata, - mode, - mpiData, - platformChargebackLogic, - recurringExpiry, - recurringFrequency, - recurringProcessingModel, - redirectFromIssuerMethod, - redirectToIssuerMethod, - reference, - returnUrl, - riskData, - sessionData, - shopperEmail, - shopperIP, - shopperInteraction, - shopperLocale, - shopperName, - shopperReference, - shopperStatement, - showInstallmentAmount, - showRemovePaymentMethodButton, - socialSecurityNumber, - splitCardFundingSources, - splits, - store, - storeFiltrationMode, - storePaymentMethod, - storePaymentMethodMode, - telephoneNumber, - themeId, - threeDS2RequestData, - threeDSAuthenticationOnly, - trustedShopper, - url); + return Objects.hash(accountInfo, additionalAmount, additionalData, allowedPaymentMethods, amount, applicationInfo, authenticationData, billingAddress, blockedPaymentMethods, captureDelayHours, channel, company, countryCode, dateOfBirth, deliverAt, deliveryAddress, enableOneClick, enablePayOut, enableRecurring, expiresAt, fundOrigin, fundRecipient, id, installmentOptions, lineItems, mandate, mcc, merchantAccount, merchantOrderReference, metadata, mode, mpiData, platformChargebackLogic, recurringExpiry, recurringFrequency, recurringProcessingModel, redirectFromIssuerMethod, redirectToIssuerMethod, reference, returnUrl, riskData, sessionData, shopperEmail, shopperIP, shopperInteraction, shopperLocale, shopperName, shopperReference, shopperStatement, showInstallmentAmount, showRemovePaymentMethodButton, socialSecurityNumber, splitCardFundingSources, splits, store, storeFiltrationMode, storePaymentMethod, storePaymentMethodMode, telephoneNumber, themeId, threeDS2RequestData, threeDSAuthenticationOnly, trustedShopper, url); } @Override @@ -3707,16 +2757,12 @@ public String toString() { sb.append(" accountInfo: ").append(toIndentedString(accountInfo)).append("\n"); sb.append(" additionalAmount: ").append(toIndentedString(additionalAmount)).append("\n"); sb.append(" additionalData: ").append(toIndentedString(additionalData)).append("\n"); - sb.append(" allowedPaymentMethods: ") - .append(toIndentedString(allowedPaymentMethods)) - .append("\n"); + sb.append(" allowedPaymentMethods: ").append(toIndentedString(allowedPaymentMethods)).append("\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" applicationInfo: ").append(toIndentedString(applicationInfo)).append("\n"); sb.append(" authenticationData: ").append(toIndentedString(authenticationData)).append("\n"); sb.append(" billingAddress: ").append(toIndentedString(billingAddress)).append("\n"); - sb.append(" blockedPaymentMethods: ") - .append(toIndentedString(blockedPaymentMethods)) - .append("\n"); + sb.append(" blockedPaymentMethods: ").append(toIndentedString(blockedPaymentMethods)).append("\n"); sb.append(" captureDelayHours: ").append(toIndentedString(captureDelayHours)).append("\n"); sb.append(" channel: ").append(toIndentedString(channel)).append("\n"); sb.append(" company: ").append(toIndentedString(company)).append("\n"); @@ -3736,26 +2782,16 @@ public String toString() { sb.append(" mandate: ").append(toIndentedString(mandate)).append("\n"); sb.append(" mcc: ").append(toIndentedString(mcc)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" merchantOrderReference: ") - .append(toIndentedString(merchantOrderReference)) - .append("\n"); + sb.append(" merchantOrderReference: ").append(toIndentedString(merchantOrderReference)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); sb.append(" mpiData: ").append(toIndentedString(mpiData)).append("\n"); - sb.append(" platformChargebackLogic: ") - .append(toIndentedString(platformChargebackLogic)) - .append("\n"); + sb.append(" platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n"); sb.append(" recurringExpiry: ").append(toIndentedString(recurringExpiry)).append("\n"); sb.append(" recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n"); - sb.append(" recurringProcessingModel: ") - .append(toIndentedString(recurringProcessingModel)) - .append("\n"); - sb.append(" redirectFromIssuerMethod: ") - .append(toIndentedString(redirectFromIssuerMethod)) - .append("\n"); - sb.append(" redirectToIssuerMethod: ") - .append(toIndentedString(redirectToIssuerMethod)) - .append("\n"); + sb.append(" recurringProcessingModel: ").append(toIndentedString(recurringProcessingModel)).append("\n"); + sb.append(" redirectFromIssuerMethod: ").append(toIndentedString(redirectFromIssuerMethod)).append("\n"); + sb.append(" redirectToIssuerMethod: ").append(toIndentedString(redirectToIssuerMethod)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" returnUrl: ").append(toIndentedString(returnUrl)).append("\n"); sb.append(" riskData: ").append(toIndentedString(riskData)).append("\n"); @@ -3767,35 +2803,19 @@ public String toString() { sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append(" shopperStatement: ").append(toIndentedString(shopperStatement)).append("\n"); - sb.append(" showInstallmentAmount: ") - .append(toIndentedString(showInstallmentAmount)) - .append("\n"); - sb.append(" showRemovePaymentMethodButton: ") - .append(toIndentedString(showRemovePaymentMethodButton)) - .append("\n"); - sb.append(" socialSecurityNumber: ") - .append(toIndentedString(socialSecurityNumber)) - .append("\n"); - sb.append(" splitCardFundingSources: ") - .append(toIndentedString(splitCardFundingSources)) - .append("\n"); + sb.append(" showInstallmentAmount: ").append(toIndentedString(showInstallmentAmount)).append("\n"); + sb.append(" showRemovePaymentMethodButton: ").append(toIndentedString(showRemovePaymentMethodButton)).append("\n"); + sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); + sb.append(" splitCardFundingSources: ").append(toIndentedString(splitCardFundingSources)).append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" store: ").append(toIndentedString(store)).append("\n"); - sb.append(" storeFiltrationMode: ") - .append(toIndentedString(storeFiltrationMode)) - .append("\n"); + sb.append(" storeFiltrationMode: ").append(toIndentedString(storeFiltrationMode)).append("\n"); sb.append(" storePaymentMethod: ").append(toIndentedString(storePaymentMethod)).append("\n"); - sb.append(" storePaymentMethodMode: ") - .append(toIndentedString(storePaymentMethodMode)) - .append("\n"); + sb.append(" storePaymentMethodMode: ").append(toIndentedString(storePaymentMethodMode)).append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); sb.append(" themeId: ").append(toIndentedString(themeId)).append("\n"); - sb.append(" threeDS2RequestData: ") - .append(toIndentedString(threeDS2RequestData)) - .append("\n"); - sb.append(" threeDSAuthenticationOnly: ") - .append(toIndentedString(threeDSAuthenticationOnly)) - .append("\n"); + sb.append(" threeDS2RequestData: ").append(toIndentedString(threeDS2RequestData)).append("\n"); + sb.append(" threeDSAuthenticationOnly: ").append(toIndentedString(threeDSAuthenticationOnly)).append("\n"); sb.append(" trustedShopper: ").append(toIndentedString(trustedShopper)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append("}"); @@ -3803,7 +2823,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -3812,24 +2833,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CreateCheckoutSessionResponse given an JSON string * * @param jsonString JSON string * @return An instance of CreateCheckoutSessionResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreateCheckoutSessionResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to CreateCheckoutSessionResponse */ - public static CreateCheckoutSessionResponse fromJson(String jsonString) - throws JsonProcessingException { + public static CreateCheckoutSessionResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateCheckoutSessionResponse.class); } - - /** - * Convert an instance of CreateCheckoutSessionResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CreateCheckoutSessionResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CreateOrderRequest.java b/src/main/java/com/adyen/model/checkout/CreateOrderRequest.java index 71280b5a6..a9dee3c58 100644 --- a/src/main/java/com/adyen/model/checkout/CreateOrderRequest.java +++ b/src/main/java/com/adyen/model/checkout/CreateOrderRequest.java @@ -2,28 +2,39 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** CreateOrderRequest */ + +/** + * CreateOrderRequest + */ @JsonPropertyOrder({ CreateOrderRequest.JSON_PROPERTY_AMOUNT, CreateOrderRequest.JSON_PROPERTY_EXPIRES_AT, CreateOrderRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, CreateOrderRequest.JSON_PROPERTY_REFERENCE }) + public class CreateOrderRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -37,12 +48,13 @@ public class CreateOrderRequest { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public CreateOrderRequest() {} + public CreateOrderRequest() { + } /** * amount * - * @param amount + * @param amount * @return the current {@code CreateOrderRequest} instance, allowing for method chaining */ public CreateOrderRequest amount(Amount amount) { @@ -52,8 +64,7 @@ public CreateOrderRequest amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,7 +75,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -73,13 +84,9 @@ public void setAmount(Amount amount) { } /** - * The date when the order should expire. If not provided, the default expiry duration is 1 day. - * [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. + * The date when the order should expire. If not provided, the default expiry duration is 1 day. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. * - * @param expiresAt The date when the order should expire. If not provided, the default expiry - * duration is 1 day. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: - * YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * @param expiresAt The date when the order should expire. If not provided, the default expiry duration is 1 day. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. * @return the current {@code CreateOrderRequest} instance, allowing for method chaining */ public CreateOrderRequest expiresAt(String expiresAt) { @@ -88,13 +95,8 @@ public CreateOrderRequest expiresAt(String expiresAt) { } /** - * The date when the order should expire. If not provided, the default expiry duration is 1 day. - * [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. - * - * @return expiresAt The date when the order should expire. If not provided, the default expiry - * duration is 1 day. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: - * YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * The date when the order should expire. If not provided, the default expiry duration is 1 day. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * @return expiresAt The date when the order should expire. If not provided, the default expiry duration is 1 day. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -103,13 +105,9 @@ public String getExpiresAt() { } /** - * The date when the order should expire. If not provided, the default expiry duration is 1 day. - * [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. + * The date when the order should expire. If not provided, the default expiry duration is 1 day. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. * - * @param expiresAt The date when the order should expire. If not provided, the default expiry - * duration is 1 day. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: - * YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * @param expiresAt The date when the order should expire. If not provided, the default expiry duration is 1 day. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -120,8 +118,7 @@ public void setExpiresAt(String expiresAt) { /** * The merchant account identifier, with which you want to process the order. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * order. + * @param merchantAccount The merchant account identifier, with which you want to process the order. * @return the current {@code CreateOrderRequest} instance, allowing for method chaining */ public CreateOrderRequest merchantAccount(String merchantAccount) { @@ -131,9 +128,7 @@ public CreateOrderRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the order. - * - * @return merchantAccount The merchant account identifier, with which you want to process the - * order. + * @return merchantAccount The merchant account identifier, with which you want to process the order. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,8 +139,7 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the order. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * order. + * @param merchantAccount The merchant account identifier, with which you want to process the order. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -166,7 +160,6 @@ public CreateOrderRequest reference(String reference) { /** * A custom reference identifying the order. - * * @return reference A custom reference identifying the order. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -186,7 +179,9 @@ public void setReference(String reference) { this.reference = reference; } - /** Return true if this CreateOrderRequest object is equal to o. */ + /** + * Return true if this CreateOrderRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -196,10 +191,10 @@ public boolean equals(Object o) { return false; } CreateOrderRequest createOrderRequest = (CreateOrderRequest) o; - return Objects.equals(this.amount, createOrderRequest.amount) - && Objects.equals(this.expiresAt, createOrderRequest.expiresAt) - && Objects.equals(this.merchantAccount, createOrderRequest.merchantAccount) - && Objects.equals(this.reference, createOrderRequest.reference); + return Objects.equals(this.amount, createOrderRequest.amount) && + Objects.equals(this.expiresAt, createOrderRequest.expiresAt) && + Objects.equals(this.merchantAccount, createOrderRequest.merchantAccount) && + Objects.equals(this.reference, createOrderRequest.reference); } @Override @@ -220,7 +215,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -229,23 +225,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CreateOrderRequest given an JSON string * * @param jsonString JSON string * @return An instance of CreateOrderRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreateOrderRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to CreateOrderRequest */ public static CreateOrderRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateOrderRequest.class); } - - /** - * Convert an instance of CreateOrderRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CreateOrderRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CreateOrderResponse.java b/src/main/java/com/adyen/model/checkout/CreateOrderResponse.java index b83dc21ea..3976d9257 100644 --- a/src/main/java/com/adyen/model/checkout/CreateOrderResponse.java +++ b/src/main/java/com/adyen/model/checkout/CreateOrderResponse.java @@ -2,28 +2,35 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Amount; +import com.adyen.model.checkout.FraudResult; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** CreateOrderResponse */ + +/** + * CreateOrderResponse + */ @JsonPropertyOrder({ CreateOrderResponse.JSON_PROPERTY_ADDITIONAL_DATA, CreateOrderResponse.JSON_PROPERTY_AMOUNT, @@ -36,6 +43,7 @@ CreateOrderResponse.JSON_PROPERTY_REMAINING_AMOUNT, CreateOrderResponse.JSON_PROPERTY_RESULT_CODE }) + public class CreateOrderResponse { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -64,8 +72,11 @@ public class CreateOrderResponse { public static final String JSON_PROPERTY_REMAINING_AMOUNT = "remainingAmount"; private Amount remainingAmount; - /** The result of the order creation request. The value is always **Success**. */ + /** + * The result of the order creation request. The value is always **Success**. + */ public enum ResultCodeEnum { + SUCCESS(String.valueOf("Success")); private static final Logger LOG = Logger.getLogger(ResultCodeEnum.class.getName()); @@ -73,7 +84,7 @@ public enum ResultCodeEnum { private String value; ResultCodeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -94,11 +105,7 @@ public static ResultCodeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ResultCodeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ResultCodeEnum.values())); + LOG.warning("ResultCodeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResultCodeEnum.values())); return null; } } @@ -106,15 +113,13 @@ public static ResultCodeEnum fromValue(String value) { public static final String JSON_PROPERTY_RESULT_CODE = "resultCode"; private ResultCodeEnum resultCode; - public CreateOrderResponse() {} + public CreateOrderResponse() { + } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first: Go to **Customer Area** > **Developers** > - * **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. * @return the current {@code CreateOrderResponse} instance, allowing for method chaining */ public CreateOrderResponse additionalData(Map additionalData) { @@ -131,12 +136,8 @@ public CreateOrderResponse putAdditionalDataItem(String key, String additionalDa } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first: Go to **Customer Area** > **Developers** > **Additional data**. - * - * @return additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first: Go to **Customer Area** > **Developers** > - * **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * @return additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,12 +146,9 @@ public Map getAdditionalData() { } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first: Go to **Customer Area** > **Developers** > - * **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,7 +159,7 @@ public void setAdditionalData(Map additionalData) { /** * amount * - * @param amount + * @param amount * @return the current {@code CreateOrderResponse} instance, allowing for method chaining */ public CreateOrderResponse amount(Amount amount) { @@ -171,8 +169,7 @@ public CreateOrderResponse amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,7 +180,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,7 +201,6 @@ public CreateOrderResponse expiresAt(String expiresAt) { /** * The date that the order will expire. - * * @return expiresAt The date that the order will expire. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @@ -227,7 +223,7 @@ public void setExpiresAt(String expiresAt) { /** * fraudResult * - * @param fraudResult + * @param fraudResult * @return the current {@code CreateOrderResponse} instance, allowing for method chaining */ public CreateOrderResponse fraudResult(FraudResult fraudResult) { @@ -237,8 +233,7 @@ public CreateOrderResponse fraudResult(FraudResult fraudResult) { /** * Get fraudResult - * - * @return fraudResult + * @return fraudResult */ @JsonProperty(JSON_PROPERTY_FRAUD_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -249,7 +244,7 @@ public FraudResult getFraudResult() { /** * fraudResult * - * @param fraudResult + * @param fraudResult */ @JsonProperty(JSON_PROPERTY_FRAUD_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -260,8 +255,7 @@ public void setFraudResult(FraudResult fraudResult) { /** * The encrypted data that will be used by merchant for adding payments to the order. * - * @param orderData The encrypted data that will be used by merchant for adding payments to the - * order. + * @param orderData The encrypted data that will be used by merchant for adding payments to the order. * @return the current {@code CreateOrderResponse} instance, allowing for method chaining */ public CreateOrderResponse orderData(String orderData) { @@ -271,9 +265,7 @@ public CreateOrderResponse orderData(String orderData) { /** * The encrypted data that will be used by merchant for adding payments to the order. - * - * @return orderData The encrypted data that will be used by merchant for adding payments to the - * order. + * @return orderData The encrypted data that will be used by merchant for adding payments to the order. */ @JsonProperty(JSON_PROPERTY_ORDER_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,8 +276,7 @@ public String getOrderData() { /** * The encrypted data that will be used by merchant for adding payments to the order. * - * @param orderData The encrypted data that will be used by merchant for adding payments to the - * order. + * @param orderData The encrypted data that will be used by merchant for adding payments to the order. */ @JsonProperty(JSON_PROPERTY_ORDER_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -294,11 +285,9 @@ public void setOrderData(String orderData) { } /** - * Adyen's 16-character reference associated with the transaction/request. This value is - * globally unique; quote it when communicating with us about this request. + * Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character reference associated with the transaction/request. - * This value is globally unique; quote it when communicating with us about this request. + * @param pspReference Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. * @return the current {@code CreateOrderResponse} instance, allowing for method chaining */ public CreateOrderResponse pspReference(String pspReference) { @@ -307,12 +296,8 @@ public CreateOrderResponse pspReference(String pspReference) { } /** - * Adyen's 16-character reference associated with the transaction/request. This value is - * globally unique; quote it when communicating with us about this request. - * - * @return pspReference Adyen's 16-character reference associated with the - * transaction/request. This value is globally unique; quote it when communicating with us - * about this request. + * Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @return pspReference Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -321,11 +306,9 @@ public String getPspReference() { } /** - * Adyen's 16-character reference associated with the transaction/request. This value is - * globally unique; quote it when communicating with us about this request. + * Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character reference associated with the transaction/request. - * This value is globally unique; quote it when communicating with us about this request. + * @param pspReference Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -346,7 +329,6 @@ public CreateOrderResponse reference(String reference) { /** * The reference provided by merchant for creating the order. - * * @return reference The reference provided by merchant for creating the order. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -367,17 +349,9 @@ public void setReference(String reference) { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this - * field holds Adyen's mapped reason for the refusal or a description of the error. When a - * transaction fails, the authorisation response includes `resultCode` and - * `refusalReason` values. For more information, see [Refusal - * reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). * - * @param refusalReason If the payment's authorisation is refused or an error occurs during - * authorisation, this field holds Adyen's mapped reason for the refusal or a description - * of the error. When a transaction fails, the authorisation response includes - * `resultCode` and `refusalReason` values. For more information, see - * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @param refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). * @return the current {@code CreateOrderResponse} instance, allowing for method chaining */ public CreateOrderResponse refusalReason(String refusalReason) { @@ -386,17 +360,8 @@ public CreateOrderResponse refusalReason(String refusalReason) { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this - * field holds Adyen's mapped reason for the refusal or a description of the error. When a - * transaction fails, the authorisation response includes `resultCode` and - * `refusalReason` values. For more information, see [Refusal - * reasons](https://docs.adyen.com/development-resources/refusal-reasons). - * - * @return refusalReason If the payment's authorisation is refused or an error occurs during - * authorisation, this field holds Adyen's mapped reason for the refusal or a description - * of the error. When a transaction fails, the authorisation response includes - * `resultCode` and `refusalReason` values. For more information, see - * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @return refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -405,17 +370,9 @@ public String getRefusalReason() { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this - * field holds Adyen's mapped reason for the refusal or a description of the error. When a - * transaction fails, the authorisation response includes `resultCode` and - * `refusalReason` values. For more information, see [Refusal - * reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). * - * @param refusalReason If the payment's authorisation is refused or an error occurs during - * authorisation, this field holds Adyen's mapped reason for the refusal or a description - * of the error. When a transaction fails, the authorisation response includes - * `resultCode` and `refusalReason` values. For more information, see - * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @param refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -426,7 +383,7 @@ public void setRefusalReason(String refusalReason) { /** * remainingAmount * - * @param remainingAmount + * @param remainingAmount * @return the current {@code CreateOrderResponse} instance, allowing for method chaining */ public CreateOrderResponse remainingAmount(Amount remainingAmount) { @@ -436,8 +393,7 @@ public CreateOrderResponse remainingAmount(Amount remainingAmount) { /** * Get remainingAmount - * - * @return remainingAmount + * @return remainingAmount */ @JsonProperty(JSON_PROPERTY_REMAINING_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -448,7 +404,7 @@ public Amount getRemainingAmount() { /** * remainingAmount * - * @param remainingAmount + * @param remainingAmount */ @JsonProperty(JSON_PROPERTY_REMAINING_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -457,9 +413,9 @@ public void setRemainingAmount(Amount remainingAmount) { } /** - * The result of the order creation request. The value is always **Success**. + * The result of the order creation request. The value is always **Success**. * - * @param resultCode The result of the order creation request. The value is always **Success**. + * @param resultCode The result of the order creation request. The value is always **Success**. * @return the current {@code CreateOrderResponse} instance, allowing for method chaining */ public CreateOrderResponse resultCode(ResultCodeEnum resultCode) { @@ -468,9 +424,8 @@ public CreateOrderResponse resultCode(ResultCodeEnum resultCode) { } /** - * The result of the order creation request. The value is always **Success**. - * - * @return resultCode The result of the order creation request. The value is always **Success**. + * The result of the order creation request. The value is always **Success**. + * @return resultCode The result of the order creation request. The value is always **Success**. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -479,9 +434,9 @@ public ResultCodeEnum getResultCode() { } /** - * The result of the order creation request. The value is always **Success**. + * The result of the order creation request. The value is always **Success**. * - * @param resultCode The result of the order creation request. The value is always **Success**. + * @param resultCode The result of the order creation request. The value is always **Success**. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -489,7 +444,9 @@ public void setResultCode(ResultCodeEnum resultCode) { this.resultCode = resultCode; } - /** Return true if this CreateOrderResponse object is equal to o. */ + /** + * Return true if this CreateOrderResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -499,31 +456,21 @@ public boolean equals(Object o) { return false; } CreateOrderResponse createOrderResponse = (CreateOrderResponse) o; - return Objects.equals(this.additionalData, createOrderResponse.additionalData) - && Objects.equals(this.amount, createOrderResponse.amount) - && Objects.equals(this.expiresAt, createOrderResponse.expiresAt) - && Objects.equals(this.fraudResult, createOrderResponse.fraudResult) - && Objects.equals(this.orderData, createOrderResponse.orderData) - && Objects.equals(this.pspReference, createOrderResponse.pspReference) - && Objects.equals(this.reference, createOrderResponse.reference) - && Objects.equals(this.refusalReason, createOrderResponse.refusalReason) - && Objects.equals(this.remainingAmount, createOrderResponse.remainingAmount) - && Objects.equals(this.resultCode, createOrderResponse.resultCode); + return Objects.equals(this.additionalData, createOrderResponse.additionalData) && + Objects.equals(this.amount, createOrderResponse.amount) && + Objects.equals(this.expiresAt, createOrderResponse.expiresAt) && + Objects.equals(this.fraudResult, createOrderResponse.fraudResult) && + Objects.equals(this.orderData, createOrderResponse.orderData) && + Objects.equals(this.pspReference, createOrderResponse.pspReference) && + Objects.equals(this.reference, createOrderResponse.reference) && + Objects.equals(this.refusalReason, createOrderResponse.refusalReason) && + Objects.equals(this.remainingAmount, createOrderResponse.remainingAmount) && + Objects.equals(this.resultCode, createOrderResponse.resultCode); } @Override public int hashCode() { - return Objects.hash( - additionalData, - amount, - expiresAt, - fraudResult, - orderData, - pspReference, - reference, - refusalReason, - remainingAmount, - resultCode); + return Objects.hash(additionalData, amount, expiresAt, fraudResult, orderData, pspReference, reference, refusalReason, remainingAmount, resultCode); } @Override @@ -545,7 +492,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -554,23 +502,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CreateOrderResponse given an JSON string * * @param jsonString JSON string * @return An instance of CreateOrderResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreateOrderResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to CreateOrderResponse */ public static CreateOrderResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateOrderResponse.class); } - - /** - * Convert an instance of CreateOrderResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CreateOrderResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/DefaultErrorResponseEntity.java b/src/main/java/com/adyen/model/checkout/DefaultErrorResponseEntity.java index ff692da56..89c2f816e 100644 --- a/src/main/java/com/adyen/model/checkout/DefaultErrorResponseEntity.java +++ b/src/main/java/com/adyen/model/checkout/DefaultErrorResponseEntity.java @@ -2,24 +2,34 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.InvalidField; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** Standardized error response following RFC-7807 format */ +/** + * Standardized error response following RFC-7807 format + */ @JsonPropertyOrder({ DefaultErrorResponseEntity.JSON_PROPERTY_DETAIL, DefaultErrorResponseEntity.JSON_PROPERTY_ERROR_CODE, @@ -30,6 +40,7 @@ DefaultErrorResponseEntity.JSON_PROPERTY_TITLE, DefaultErrorResponseEntity.JSON_PROPERTY_TYPE }) + public class DefaultErrorResponseEntity { public static final String JSON_PROPERTY_DETAIL = "detail"; private String detail; @@ -55,7 +66,8 @@ public class DefaultErrorResponseEntity { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public DefaultErrorResponseEntity() {} + public DefaultErrorResponseEntity() { + } /** * A human-readable explanation specific to this occurrence of the problem. @@ -70,7 +82,6 @@ public DefaultErrorResponseEntity detail(String detail) { /** * A human-readable explanation specific to this occurrence of the problem. - * * @return detail A human-readable explanation specific to this occurrence of the problem. */ @JsonProperty(JSON_PROPERTY_DETAIL) @@ -103,7 +114,6 @@ public DefaultErrorResponseEntity errorCode(String errorCode) { /** * Unique business error code. - * * @return errorCode Unique business error code. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -136,7 +146,6 @@ public DefaultErrorResponseEntity instance(String instance) { /** * A URI that identifies the specific occurrence of the problem if applicable. - * * @return instance A URI that identifies the specific occurrence of the problem if applicable. */ @JsonProperty(JSON_PROPERTY_INSTANCE) @@ -177,7 +186,6 @@ public DefaultErrorResponseEntity addInvalidFieldsItem(InvalidField invalidField /** * Array of fields with validation errors when applicable. - * * @return invalidFields Array of fields with validation errors when applicable. */ @JsonProperty(JSON_PROPERTY_INVALID_FIELDS) @@ -210,7 +218,6 @@ public DefaultErrorResponseEntity requestId(String requestId) { /** * The unique reference for the request. - * * @return requestId The unique reference for the request. */ @JsonProperty(JSON_PROPERTY_REQUEST_ID) @@ -243,7 +250,6 @@ public DefaultErrorResponseEntity status(Integer status) { /** * The HTTP status code. - * * @return status The HTTP status code. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -276,7 +282,6 @@ public DefaultErrorResponseEntity title(String title) { /** * A short, human-readable summary of the problem type. - * * @return title A short, human-readable summary of the problem type. */ @JsonProperty(JSON_PROPERTY_TITLE) @@ -297,11 +302,9 @@ public void setTitle(String title) { } /** - * A URI that identifies the validation error type. It points to human-readable documentation for - * the problem type. + * A URI that identifies the validation error type. It points to human-readable documentation for the problem type. * - * @param type A URI that identifies the validation error type. It points to human-readable - * documentation for the problem type. + * @param type A URI that identifies the validation error type. It points to human-readable documentation for the problem type. * @return the current {@code DefaultErrorResponseEntity} instance, allowing for method chaining */ public DefaultErrorResponseEntity type(String type) { @@ -310,11 +313,8 @@ public DefaultErrorResponseEntity type(String type) { } /** - * A URI that identifies the validation error type. It points to human-readable documentation for - * the problem type. - * - * @return type A URI that identifies the validation error type. It points to human-readable - * documentation for the problem type. + * A URI that identifies the validation error type. It points to human-readable documentation for the problem type. + * @return type A URI that identifies the validation error type. It points to human-readable documentation for the problem type. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -323,11 +323,9 @@ public String getType() { } /** - * A URI that identifies the validation error type. It points to human-readable documentation for - * the problem type. + * A URI that identifies the validation error type. It points to human-readable documentation for the problem type. * - * @param type A URI that identifies the validation error type. It points to human-readable - * documentation for the problem type. + * @param type A URI that identifies the validation error type. It points to human-readable documentation for the problem type. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -335,7 +333,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this DefaultErrorResponseEntity object is equal to o. */ + /** + * Return true if this DefaultErrorResponseEntity object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -345,14 +345,14 @@ public boolean equals(Object o) { return false; } DefaultErrorResponseEntity defaultErrorResponseEntity = (DefaultErrorResponseEntity) o; - return Objects.equals(this.detail, defaultErrorResponseEntity.detail) - && Objects.equals(this.errorCode, defaultErrorResponseEntity.errorCode) - && Objects.equals(this.instance, defaultErrorResponseEntity.instance) - && Objects.equals(this.invalidFields, defaultErrorResponseEntity.invalidFields) - && Objects.equals(this.requestId, defaultErrorResponseEntity.requestId) - && Objects.equals(this.status, defaultErrorResponseEntity.status) - && Objects.equals(this.title, defaultErrorResponseEntity.title) - && Objects.equals(this.type, defaultErrorResponseEntity.type); + return Objects.equals(this.detail, defaultErrorResponseEntity.detail) && + Objects.equals(this.errorCode, defaultErrorResponseEntity.errorCode) && + Objects.equals(this.instance, defaultErrorResponseEntity.instance) && + Objects.equals(this.invalidFields, defaultErrorResponseEntity.invalidFields) && + Objects.equals(this.requestId, defaultErrorResponseEntity.requestId) && + Objects.equals(this.status, defaultErrorResponseEntity.status) && + Objects.equals(this.title, defaultErrorResponseEntity.title) && + Objects.equals(this.type, defaultErrorResponseEntity.type); } @Override @@ -377,7 +377,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -386,24 +387,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DefaultErrorResponseEntity given an JSON string * * @param jsonString JSON string * @return An instance of DefaultErrorResponseEntity - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DefaultErrorResponseEntity + * @throws JsonProcessingException if the JSON string is invalid with respect to DefaultErrorResponseEntity */ - public static DefaultErrorResponseEntity fromJson(String jsonString) - throws JsonProcessingException { + public static DefaultErrorResponseEntity fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DefaultErrorResponseEntity.class); } - - /** - * Convert an instance of DefaultErrorResponseEntity to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DefaultErrorResponseEntity to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/DeliveryAddress.java b/src/main/java/com/adyen/model/checkout/DeliveryAddress.java index 8be597897..e3df3f994 100644 --- a/src/main/java/com/adyen/model/checkout/DeliveryAddress.java +++ b/src/main/java/com/adyen/model/checkout/DeliveryAddress.java @@ -2,22 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** DeliveryAddress */ + +/** + * DeliveryAddress + */ @JsonPropertyOrder({ DeliveryAddress.JSON_PROPERTY_CITY, DeliveryAddress.JSON_PROPERTY_COUNTRY, @@ -28,6 +37,7 @@ DeliveryAddress.JSON_PROPERTY_STATE_OR_PROVINCE, DeliveryAddress.JSON_PROPERTY_STREET }) + public class DeliveryAddress { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -53,7 +63,8 @@ public class DeliveryAddress { public static final String JSON_PROPERTY_STREET = "street"; private String street; - public DeliveryAddress() {} + public DeliveryAddress() { + } /** * The name of the city. Maximum length: 3000 characters. @@ -68,7 +79,6 @@ public DeliveryAddress city(String city) { /** * The name of the city. Maximum length: 3000 characters. - * * @return city The name of the city. Maximum length: 3000 characters. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -89,13 +99,9 @@ public void setCity(String city) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't - * know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If - * you don't know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress country(String country) { @@ -104,13 +110,8 @@ public DeliveryAddress country(String country) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't - * know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. - * - * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If - * you don't know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -119,13 +120,9 @@ public String getCountry() { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't - * know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If - * you don't know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,7 +133,7 @@ public void setCountry(String country) { /** * firstName * - * @param firstName + * @param firstName * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress firstName(String firstName) { @@ -146,8 +143,7 @@ public DeliveryAddress firstName(String firstName) { /** * Get firstName - * - * @return firstName + * @return firstName */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,7 +154,7 @@ public String getFirstName() { /** * firstName * - * @param firstName + * @param firstName */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,7 +175,6 @@ public DeliveryAddress houseNumberOrName(String houseNumberOrName) { /** * The number or name of the house. Maximum length: 3000 characters. - * * @return houseNumberOrName The number or name of the house. Maximum length: 3000 characters. */ @JsonProperty(JSON_PROPERTY_HOUSE_NUMBER_OR_NAME) @@ -202,7 +197,7 @@ public void setHouseNumberOrName(String houseNumberOrName) { /** * lastName * - * @param lastName + * @param lastName * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress lastName(String lastName) { @@ -212,8 +207,7 @@ public DeliveryAddress lastName(String lastName) { /** * Get lastName - * - * @return lastName + * @return lastName */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,7 +218,7 @@ public String getLastName() { /** * lastName * - * @param lastName + * @param lastName */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -233,11 +227,9 @@ public void setLastName(String lastName) { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an - * address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. * - * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten - * characters for an address in all other countries. + * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress postalCode(String postalCode) { @@ -246,11 +238,8 @@ public DeliveryAddress postalCode(String postalCode) { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an - * address in all other countries. - * - * @return postalCode A maximum of five digits for an address in the US, or a maximum of ten - * characters for an address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * @return postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -259,11 +248,9 @@ public String getPostalCode() { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an - * address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. * - * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten - * characters for an address in all other countries. + * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -272,11 +259,9 @@ public void setPostalCode(String postalCode) { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** - * in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress stateOrProvince(String stateOrProvince) { @@ -285,11 +270,8 @@ public DeliveryAddress stateOrProvince(String stateOrProvince) { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. - * - * @return stateOrProvince The two-character ISO 3166-2 state or province code. For example, - * **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * @return stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -298,11 +280,9 @@ public String getStateOrProvince() { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** - * in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -311,12 +291,9 @@ public void setStateOrProvince(String stateOrProvince) { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be - * included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. * - * @param street The name of the street. Maximum length: 3000 characters. > The house number - * should not be included in this field; it should be separately provided via - * `houseNumberOrName`. + * @param street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress street(String street) { @@ -325,12 +302,8 @@ public DeliveryAddress street(String street) { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be - * included in this field; it should be separately provided via `houseNumberOrName`. - * - * @return street The name of the street. Maximum length: 3000 characters. > The house number - * should not be included in this field; it should be separately provided via - * `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * @return street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -339,12 +312,9 @@ public String getStreet() { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be - * included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. * - * @param street The name of the street. Maximum length: 3000 characters. > The house number - * should not be included in this field; it should be separately provided via - * `houseNumberOrName`. + * @param street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -352,7 +322,9 @@ public void setStreet(String street) { this.street = street; } - /** Return true if this DeliveryAddress object is equal to o. */ + /** + * Return true if this DeliveryAddress object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -362,20 +334,19 @@ public boolean equals(Object o) { return false; } DeliveryAddress deliveryAddress = (DeliveryAddress) o; - return Objects.equals(this.city, deliveryAddress.city) - && Objects.equals(this.country, deliveryAddress.country) - && Objects.equals(this.firstName, deliveryAddress.firstName) - && Objects.equals(this.houseNumberOrName, deliveryAddress.houseNumberOrName) - && Objects.equals(this.lastName, deliveryAddress.lastName) - && Objects.equals(this.postalCode, deliveryAddress.postalCode) - && Objects.equals(this.stateOrProvince, deliveryAddress.stateOrProvince) - && Objects.equals(this.street, deliveryAddress.street); + return Objects.equals(this.city, deliveryAddress.city) && + Objects.equals(this.country, deliveryAddress.country) && + Objects.equals(this.firstName, deliveryAddress.firstName) && + Objects.equals(this.houseNumberOrName, deliveryAddress.houseNumberOrName) && + Objects.equals(this.lastName, deliveryAddress.lastName) && + Objects.equals(this.postalCode, deliveryAddress.postalCode) && + Objects.equals(this.stateOrProvince, deliveryAddress.stateOrProvince) && + Objects.equals(this.street, deliveryAddress.street); } @Override public int hashCode() { - return Objects.hash( - city, country, firstName, houseNumberOrName, lastName, postalCode, stateOrProvince, street); + return Objects.hash(city, country, firstName, houseNumberOrName, lastName, postalCode, stateOrProvince, street); } @Override @@ -395,7 +366,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -404,7 +376,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DeliveryAddress given an JSON string * * @param jsonString JSON string @@ -414,12 +386,11 @@ private String toIndentedString(Object o) { public static DeliveryAddress fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DeliveryAddress.class); } - - /** - * Convert an instance of DeliveryAddress to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DeliveryAddress to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/DeliveryMethod.java b/src/main/java/com/adyen/model/checkout/DeliveryMethod.java index a07d214ab..1b6775813 100644 --- a/src/main/java/com/adyen/model/checkout/DeliveryMethod.java +++ b/src/main/java/com/adyen/model/checkout/DeliveryMethod.java @@ -2,26 +2,32 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** DeliveryMethod */ + +/** + * DeliveryMethod + */ @JsonPropertyOrder({ DeliveryMethod.JSON_PROPERTY_AMOUNT, DeliveryMethod.JSON_PROPERTY_DESCRIPTION, @@ -29,6 +35,7 @@ DeliveryMethod.JSON_PROPERTY_SELECTED, DeliveryMethod.JSON_PROPERTY_TYPE }) + public class DeliveryMethod { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -42,8 +49,11 @@ public class DeliveryMethod { public static final String JSON_PROPERTY_SELECTED = "selected"; private Boolean selected; - /** The type of the delivery method. */ + /** + * The type of the delivery method. + */ public enum TypeEnum { + SHIPPING(String.valueOf("Shipping")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -51,7 +61,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -72,11 +82,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -84,12 +90,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public DeliveryMethod() {} + public DeliveryMethod() { + } /** * amount * - * @param amount + * @param amount * @return the current {@code DeliveryMethod} instance, allowing for method chaining */ public DeliveryMethod amount(Amount amount) { @@ -99,8 +106,7 @@ public DeliveryMethod amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,7 +117,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,7 +138,6 @@ public DeliveryMethod description(String description) { /** * The name of the delivery method as shown to the shopper. - * * @return description The name of the delivery method as shown to the shopper. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -165,7 +170,6 @@ public DeliveryMethod reference(String reference) { /** * The reference of the delivery method. - * * @return reference The reference of the delivery method. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -186,11 +190,9 @@ public void setReference(String reference) { } /** - * If you display the PayPal lightbox with delivery methods, set to **true** for the delivery - * method that is selected. Only one delivery method can be selected at a time. + * If you display the PayPal lightbox with delivery methods, set to **true** for the delivery method that is selected. Only one delivery method can be selected at a time. * - * @param selected If you display the PayPal lightbox with delivery methods, set to **true** for - * the delivery method that is selected. Only one delivery method can be selected at a time. + * @param selected If you display the PayPal lightbox with delivery methods, set to **true** for the delivery method that is selected. Only one delivery method can be selected at a time. * @return the current {@code DeliveryMethod} instance, allowing for method chaining */ public DeliveryMethod selected(Boolean selected) { @@ -199,11 +201,8 @@ public DeliveryMethod selected(Boolean selected) { } /** - * If you display the PayPal lightbox with delivery methods, set to **true** for the delivery - * method that is selected. Only one delivery method can be selected at a time. - * - * @return selected If you display the PayPal lightbox with delivery methods, set to **true** for - * the delivery method that is selected. Only one delivery method can be selected at a time. + * If you display the PayPal lightbox with delivery methods, set to **true** for the delivery method that is selected. Only one delivery method can be selected at a time. + * @return selected If you display the PayPal lightbox with delivery methods, set to **true** for the delivery method that is selected. Only one delivery method can be selected at a time. */ @JsonProperty(JSON_PROPERTY_SELECTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -212,11 +211,9 @@ public Boolean getSelected() { } /** - * If you display the PayPal lightbox with delivery methods, set to **true** for the delivery - * method that is selected. Only one delivery method can be selected at a time. + * If you display the PayPal lightbox with delivery methods, set to **true** for the delivery method that is selected. Only one delivery method can be selected at a time. * - * @param selected If you display the PayPal lightbox with delivery methods, set to **true** for - * the delivery method that is selected. Only one delivery method can be selected at a time. + * @param selected If you display the PayPal lightbox with delivery methods, set to **true** for the delivery method that is selected. Only one delivery method can be selected at a time. */ @JsonProperty(JSON_PROPERTY_SELECTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,7 +234,6 @@ public DeliveryMethod type(TypeEnum type) { /** * The type of the delivery method. - * * @return type The type of the delivery method. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -257,7 +253,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this DeliveryMethod object is equal to o. */ + /** + * Return true if this DeliveryMethod object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -267,11 +265,11 @@ public boolean equals(Object o) { return false; } DeliveryMethod deliveryMethod = (DeliveryMethod) o; - return Objects.equals(this.amount, deliveryMethod.amount) - && Objects.equals(this.description, deliveryMethod.description) - && Objects.equals(this.reference, deliveryMethod.reference) - && Objects.equals(this.selected, deliveryMethod.selected) - && Objects.equals(this.type, deliveryMethod.type); + return Objects.equals(this.amount, deliveryMethod.amount) && + Objects.equals(this.description, deliveryMethod.description) && + Objects.equals(this.reference, deliveryMethod.reference) && + Objects.equals(this.selected, deliveryMethod.selected) && + Objects.equals(this.type, deliveryMethod.type); } @Override @@ -293,7 +291,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -302,7 +301,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DeliveryMethod given an JSON string * * @param jsonString JSON string @@ -312,12 +311,11 @@ private String toIndentedString(Object o) { public static DeliveryMethod fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DeliveryMethod.class); } - - /** - * Convert an instance of DeliveryMethod to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DeliveryMethod to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/DetailsRequestAuthenticationData.java b/src/main/java/com/adyen/model/checkout/DetailsRequestAuthenticationData.java index e584b917e..e85bd98eb 100644 --- a/src/main/java/com/adyen/model/checkout/DetailsRequestAuthenticationData.java +++ b/src/main/java/com/adyen/model/checkout/DetailsRequestAuthenticationData.java @@ -2,41 +2,47 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** DetailsRequestAuthenticationData */ -@JsonPropertyOrder({DetailsRequestAuthenticationData.JSON_PROPERTY_AUTHENTICATION_ONLY}) + +/** + * DetailsRequestAuthenticationData + */ +@JsonPropertyOrder({ + DetailsRequestAuthenticationData.JSON_PROPERTY_AUTHENTICATION_ONLY +}) + public class DetailsRequestAuthenticationData { public static final String JSON_PROPERTY_AUTHENTICATION_ONLY = "authenticationOnly"; private Boolean authenticationOnly; - public DetailsRequestAuthenticationData() {} + public DetailsRequestAuthenticationData() { + } /** - * Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. * - * @param authenticationOnly Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. - * @return the current {@code DetailsRequestAuthenticationData} instance, allowing for method - * chaining + * @param authenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * @return the current {@code DetailsRequestAuthenticationData} instance, allowing for method chaining */ public DetailsRequestAuthenticationData authenticationOnly(Boolean authenticationOnly) { this.authenticationOnly = authenticationOnly; @@ -44,15 +50,8 @@ public DetailsRequestAuthenticationData authenticationOnly(Boolean authenticatio } /** - * Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. - * - * @return authenticationOnly Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * @return authenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -61,15 +60,9 @@ public Boolean getAuthenticationOnly() { } /** - * Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. * - * @param authenticationOnly Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. + * @param authenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -77,7 +70,9 @@ public void setAuthenticationOnly(Boolean authenticationOnly) { this.authenticationOnly = authenticationOnly; } - /** Return true if this DetailsRequestAuthenticationData object is equal to o. */ + /** + * Return true if this DetailsRequestAuthenticationData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,10 +81,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - DetailsRequestAuthenticationData detailsRequestAuthenticationData = - (DetailsRequestAuthenticationData) o; - return Objects.equals( - this.authenticationOnly, detailsRequestAuthenticationData.authenticationOnly); + DetailsRequestAuthenticationData detailsRequestAuthenticationData = (DetailsRequestAuthenticationData) o; + return Objects.equals(this.authenticationOnly, detailsRequestAuthenticationData.authenticationOnly); } @Override @@ -107,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -116,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DetailsRequestAuthenticationData given an JSON string * * @param jsonString JSON string * @return An instance of DetailsRequestAuthenticationData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DetailsRequestAuthenticationData + * @throws JsonProcessingException if the JSON string is invalid with respect to DetailsRequestAuthenticationData */ - public static DetailsRequestAuthenticationData fromJson(String jsonString) - throws JsonProcessingException { + public static DetailsRequestAuthenticationData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DetailsRequestAuthenticationData.class); } - - /** - * Convert an instance of DetailsRequestAuthenticationData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DetailsRequestAuthenticationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/DeviceRenderOptions.java b/src/main/java/com/adyen/model/checkout/DeviceRenderOptions.java index 929db88d5..e9ed600eb 100644 --- a/src/main/java/com/adyen/model/checkout/DeviceRenderOptions.java +++ b/src/main/java/com/adyen/model/checkout/DeviceRenderOptions.java @@ -2,35 +2,44 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** DeviceRenderOptions */ + +/** + * DeviceRenderOptions + */ @JsonPropertyOrder({ DeviceRenderOptions.JSON_PROPERTY_SDK_INTERFACE, DeviceRenderOptions.JSON_PROPERTY_SDK_UI_TYPE }) + public class DeviceRenderOptions { - /** Supported SDK interface types. Allowed values: * native * html * both */ + /** + * Supported SDK interface types. Allowed values: * native * html * both + */ public enum SdkInterfaceEnum { + NATIVE(String.valueOf("native")), HTML(String.valueOf("html")), @@ -42,7 +51,7 @@ public enum SdkInterfaceEnum { private String value; SdkInterfaceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -63,11 +72,7 @@ public static SdkInterfaceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "SdkInterfaceEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(SdkInterfaceEnum.values())); + LOG.warning("SdkInterfaceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(SdkInterfaceEnum.values())); return null; } } @@ -75,8 +80,11 @@ public static SdkInterfaceEnum fromValue(String value) { public static final String JSON_PROPERTY_SDK_INTERFACE = "sdkInterface"; private SdkInterfaceEnum sdkInterface; - /** Gets or Sets sdkUiType */ + /** + * Gets or Sets sdkUiType + */ public enum SdkUiTypeEnum { + MULTISELECT(String.valueOf("multiSelect")), OTHERHTML(String.valueOf("otherHtml")), @@ -92,7 +100,7 @@ public enum SdkUiTypeEnum { private String value; SdkUiTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -113,11 +121,7 @@ public static SdkUiTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "SdkUiTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(SdkUiTypeEnum.values())); + LOG.warning("SdkUiTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(SdkUiTypeEnum.values())); return null; } } @@ -125,7 +129,8 @@ public static SdkUiTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_SDK_UI_TYPE = "sdkUiType"; private List sdkUiType; - public DeviceRenderOptions() {} + public DeviceRenderOptions() { + } /** * Supported SDK interface types. Allowed values: * native * html * both @@ -140,7 +145,6 @@ public DeviceRenderOptions sdkInterface(SdkInterfaceEnum sdkInterface) { /** * Supported SDK interface types. Allowed values: * native * html * both - * * @return sdkInterface Supported SDK interface types. Allowed values: * native * html * both */ @JsonProperty(JSON_PROPERTY_SDK_INTERFACE) @@ -161,11 +165,9 @@ public void setSdkInterface(SdkInterfaceEnum sdkInterface) { } /** - * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * - * outOfBand * otherHtml * multiSelect + * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect * - * @param sdkUiType UI types supported for displaying specific challenges. Allowed values: * text - * * singleSelect * outOfBand * otherHtml * multiSelect + * @param sdkUiType UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect * @return the current {@code DeviceRenderOptions} instance, allowing for method chaining */ public DeviceRenderOptions sdkUiType(List sdkUiType) { @@ -182,11 +184,8 @@ public DeviceRenderOptions addSdkUiTypeItem(SdkUiTypeEnum sdkUiTypeItem) { } /** - * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * - * outOfBand * otherHtml * multiSelect - * - * @return sdkUiType UI types supported for displaying specific challenges. Allowed values: * text - * * singleSelect * outOfBand * otherHtml * multiSelect + * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect + * @return sdkUiType UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect */ @JsonProperty(JSON_PROPERTY_SDK_UI_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,11 +194,9 @@ public List getSdkUiType() { } /** - * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * - * outOfBand * otherHtml * multiSelect + * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect * - * @param sdkUiType UI types supported for displaying specific challenges. Allowed values: * text - * * singleSelect * outOfBand * otherHtml * multiSelect + * @param sdkUiType UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect */ @JsonProperty(JSON_PROPERTY_SDK_UI_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -207,7 +204,9 @@ public void setSdkUiType(List sdkUiType) { this.sdkUiType = sdkUiType; } - /** Return true if this DeviceRenderOptions object is equal to o. */ + /** + * Return true if this DeviceRenderOptions object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -217,8 +216,8 @@ public boolean equals(Object o) { return false; } DeviceRenderOptions deviceRenderOptions = (DeviceRenderOptions) o; - return Objects.equals(this.sdkInterface, deviceRenderOptions.sdkInterface) - && Objects.equals(this.sdkUiType, deviceRenderOptions.sdkUiType); + return Objects.equals(this.sdkInterface, deviceRenderOptions.sdkInterface) && + Objects.equals(this.sdkUiType, deviceRenderOptions.sdkUiType); } @Override @@ -237,7 +236,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -246,23 +246,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DeviceRenderOptions given an JSON string * * @param jsonString JSON string * @return An instance of DeviceRenderOptions - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DeviceRenderOptions + * @throws JsonProcessingException if the JSON string is invalid with respect to DeviceRenderOptions */ public static DeviceRenderOptions fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DeviceRenderOptions.class); } - - /** - * Convert an instance of DeviceRenderOptions to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DeviceRenderOptions to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/DokuDetails.java b/src/main/java/com/adyen/model/checkout/DokuDetails.java index d5a4a36af..3f0d0464b 100644 --- a/src/main/java/com/adyen/model/checkout/DokuDetails.java +++ b/src/main/java/com/adyen/model/checkout/DokuDetails.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** DokuDetails */ + +/** + * DokuDetails + */ @JsonPropertyOrder({ DokuDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, DokuDetails.JSON_PROPERTY_FIRST_NAME, @@ -29,6 +34,7 @@ DokuDetails.JSON_PROPERTY_SHOPPER_EMAIL, DokuDetails.JSON_PROPERTY_TYPE }) + public class DokuDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -42,8 +48,11 @@ public class DokuDetails { public static final String JSON_PROPERTY_SHOPPER_EMAIL = "shopperEmail"; private String shopperEmail; - /** **doku** */ + /** + * **doku** + */ public enum TypeEnum { + DOKU_MANDIRI_VA(String.valueOf("doku_mandiri_va")), DOKU_CIMB_VA(String.valueOf("doku_cimb_va")), @@ -71,7 +80,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -92,11 +101,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -104,7 +109,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public DokuDetails() {} + public DokuDetails() { + } /** * The checkout attempt identifier. @@ -119,7 +125,6 @@ public DokuDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -152,7 +157,6 @@ public DokuDetails firstName(String firstName) { /** * The shopper's first name. - * * @return firstName The shopper's first name. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @@ -185,7 +189,6 @@ public DokuDetails lastName(String lastName) { /** * The shopper's last name. - * * @return lastName The shopper's last name. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @@ -218,7 +221,6 @@ public DokuDetails shopperEmail(String shopperEmail) { /** * The shopper's email. - * * @return shopperEmail The shopper's email. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -251,7 +253,6 @@ public DokuDetails type(TypeEnum type) { /** * **doku** - * * @return type **doku** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -271,7 +272,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this DokuDetails object is equal to o. */ + /** + * Return true if this DokuDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -281,11 +284,11 @@ public boolean equals(Object o) { return false; } DokuDetails dokuDetails = (DokuDetails) o; - return Objects.equals(this.checkoutAttemptId, dokuDetails.checkoutAttemptId) - && Objects.equals(this.firstName, dokuDetails.firstName) - && Objects.equals(this.lastName, dokuDetails.lastName) - && Objects.equals(this.shopperEmail, dokuDetails.shopperEmail) - && Objects.equals(this.type, dokuDetails.type); + return Objects.equals(this.checkoutAttemptId, dokuDetails.checkoutAttemptId) && + Objects.equals(this.firstName, dokuDetails.firstName) && + Objects.equals(this.lastName, dokuDetails.lastName) && + Objects.equals(this.shopperEmail, dokuDetails.shopperEmail) && + Objects.equals(this.type, dokuDetails.type); } @Override @@ -307,7 +310,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -316,7 +320,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DokuDetails given an JSON string * * @param jsonString JSON string @@ -326,12 +330,11 @@ private String toIndentedString(Object o) { public static DokuDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DokuDetails.class); } - - /** - * Convert an instance of DokuDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DokuDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Donation.java b/src/main/java/com/adyen/model/checkout/Donation.java index 750c3a67a..5d0cddac8 100644 --- a/src/main/java/com/adyen/model/checkout/Donation.java +++ b/src/main/java/com/adyen/model/checkout/Donation.java @@ -2,24 +2,33 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** Donation */ +/** + * Donation + */ @JsonPropertyOrder({ Donation.JSON_PROPERTY_CURRENCY, Donation.JSON_PROPERTY_DONATION_TYPE, @@ -27,6 +36,7 @@ Donation.JSON_PROPERTY_TYPE, Donation.JSON_PROPERTY_VALUES }) + public class Donation { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -43,14 +53,13 @@ public class Donation { public static final String JSON_PROPERTY_VALUES = "values"; private List values; - public Donation() {} + public Donation() { + } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes/). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes/). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). * @return the current {@code Donation} instance, allowing for method chaining */ public Donation currency(String currency) { @@ -59,11 +68,8 @@ public Donation currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes/). - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes/). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -72,11 +78,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes/). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes/). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -85,16 +89,9 @@ public void setCurrency(String currency) { } /** - * The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). - * Possible values: * **roundup**: a donation where the original transaction amount is rounded up - * as a donation. * **fixedAmounts**: a donation where you show fixed donations amounts that the - * shopper can select from. + * The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donations amounts that the shopper can select from. * - * @param donationType The [type of - * donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible - * values: * **roundup**: a donation where the original transaction amount is rounded up as a - * donation. * **fixedAmounts**: a donation where you show fixed donations amounts that the - * shopper can select from. + * @param donationType The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donations amounts that the shopper can select from. * @return the current {@code Donation} instance, allowing for method chaining */ public Donation donationType(String donationType) { @@ -103,16 +100,8 @@ public Donation donationType(String donationType) { } /** - * The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). - * Possible values: * **roundup**: a donation where the original transaction amount is rounded up - * as a donation. * **fixedAmounts**: a donation where you show fixed donations amounts that the - * shopper can select from. - * - * @return donationType The [type of - * donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible - * values: * **roundup**: a donation where the original transaction amount is rounded up as a - * donation. * **fixedAmounts**: a donation where you show fixed donations amounts that the - * shopper can select from. + * The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donations amounts that the shopper can select from. + * @return donationType The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donations amounts that the shopper can select from. */ @JsonProperty(JSON_PROPERTY_DONATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,16 +110,9 @@ public String getDonationType() { } /** - * The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). - * Possible values: * **roundup**: a donation where the original transaction amount is rounded up - * as a donation. * **fixedAmounts**: a donation where you show fixed donations amounts that the - * shopper can select from. + * The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donations amounts that the shopper can select from. * - * @param donationType The [type of - * donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible - * values: * **roundup**: a donation where the original transaction amount is rounded up as a - * donation. * **fixedAmounts**: a donation where you show fixed donations amounts that the - * shopper can select from. + * @param donationType The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donations amounts that the shopper can select from. */ @JsonProperty(JSON_PROPERTY_DONATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,11 +121,9 @@ public void setDonationType(String donationType) { } /** - * The maximum amount a transaction can be rounded up to make a donation. This field is only - * present when `donationType` is **roundup**. + * The maximum amount a transaction can be rounded up to make a donation. This field is only present when `donationType` is **roundup**. * - * @param maxRoundupAmount The maximum amount a transaction can be rounded up to make a donation. - * This field is only present when `donationType` is **roundup**. + * @param maxRoundupAmount The maximum amount a transaction can be rounded up to make a donation. This field is only present when `donationType` is **roundup**. * @return the current {@code Donation} instance, allowing for method chaining */ public Donation maxRoundupAmount(Long maxRoundupAmount) { @@ -152,11 +132,8 @@ public Donation maxRoundupAmount(Long maxRoundupAmount) { } /** - * The maximum amount a transaction can be rounded up to make a donation. This field is only - * present when `donationType` is **roundup**. - * - * @return maxRoundupAmount The maximum amount a transaction can be rounded up to make a donation. - * This field is only present when `donationType` is **roundup**. + * The maximum amount a transaction can be rounded up to make a donation. This field is only present when `donationType` is **roundup**. + * @return maxRoundupAmount The maximum amount a transaction can be rounded up to make a donation. This field is only present when `donationType` is **roundup**. */ @JsonProperty(JSON_PROPERTY_MAX_ROUNDUP_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -165,11 +142,9 @@ public Long getMaxRoundupAmount() { } /** - * The maximum amount a transaction can be rounded up to make a donation. This field is only - * present when `donationType` is **roundup**. + * The maximum amount a transaction can be rounded up to make a donation. This field is only present when `donationType` is **roundup**. * - * @param maxRoundupAmount The maximum amount a transaction can be rounded up to make a donation. - * This field is only present when `donationType` is **roundup**. + * @param maxRoundupAmount The maximum amount a transaction can be rounded up to make a donation. This field is only present when `donationType` is **roundup**. */ @JsonProperty(JSON_PROPERTY_MAX_ROUNDUP_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,16 +153,9 @@ public void setMaxRoundupAmount(Long maxRoundupAmount) { } /** - * The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). - * Possible values: * **roundup**: a donation where the original transaction amount is rounded up - * as a donation. * **fixedAmounts**: a donation where you show fixed donation amounts that the - * shopper can select from. + * The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donation amounts that the shopper can select from. * - * @param type The [type of - * donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible - * values: * **roundup**: a donation where the original transaction amount is rounded up as a - * donation. * **fixedAmounts**: a donation where you show fixed donation amounts that the - * shopper can select from. + * @param type The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donation amounts that the shopper can select from. * @return the current {@code Donation} instance, allowing for method chaining */ public Donation type(String type) { @@ -196,16 +164,8 @@ public Donation type(String type) { } /** - * The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). - * Possible values: * **roundup**: a donation where the original transaction amount is rounded up - * as a donation. * **fixedAmounts**: a donation where you show fixed donation amounts that the - * shopper can select from. - * - * @return type The [type of - * donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible - * values: * **roundup**: a donation where the original transaction amount is rounded up as a - * donation. * **fixedAmounts**: a donation where you show fixed donation amounts that the - * shopper can select from. + * The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donation amounts that the shopper can select from. + * @return type The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donation amounts that the shopper can select from. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,16 +174,9 @@ public String getType() { } /** - * The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). - * Possible values: * **roundup**: a donation where the original transaction amount is rounded up - * as a donation. * **fixedAmounts**: a donation where you show fixed donation amounts that the - * shopper can select from. + * The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donation amounts that the shopper can select from. * - * @param type The [type of - * donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible - * values: * **roundup**: a donation where the original transaction amount is rounded up as a - * donation. * **fixedAmounts**: a donation where you show fixed donation amounts that the - * shopper can select from. + * @param type The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donation amounts that the shopper can select from. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,13 +185,9 @@ public void setType(String type) { } /** - * The fixed donation amounts in [minor - * units](https://docs.adyen.com/development-resources/currency-codes//#minor-units). This field - * is only present when `donationType` is **fixedAmounts**. + * The fixed donation amounts in [minor units](https://docs.adyen.com/development-resources/currency-codes//#minor-units). This field is only present when `donationType` is **fixedAmounts**. * - * @param values The fixed donation amounts in [minor - * units](https://docs.adyen.com/development-resources/currency-codes//#minor-units). This - * field is only present when `donationType` is **fixedAmounts**. + * @param values The fixed donation amounts in [minor units](https://docs.adyen.com/development-resources/currency-codes//#minor-units). This field is only present when `donationType` is **fixedAmounts**. * @return the current {@code Donation} instance, allowing for method chaining */ public Donation values(List values) { @@ -255,13 +204,8 @@ public Donation addValuesItem(Long valuesItem) { } /** - * The fixed donation amounts in [minor - * units](https://docs.adyen.com/development-resources/currency-codes//#minor-units). This field - * is only present when `donationType` is **fixedAmounts**. - * - * @return values The fixed donation amounts in [minor - * units](https://docs.adyen.com/development-resources/currency-codes//#minor-units). This - * field is only present when `donationType` is **fixedAmounts**. + * The fixed donation amounts in [minor units](https://docs.adyen.com/development-resources/currency-codes//#minor-units). This field is only present when `donationType` is **fixedAmounts**. + * @return values The fixed donation amounts in [minor units](https://docs.adyen.com/development-resources/currency-codes//#minor-units). This field is only present when `donationType` is **fixedAmounts**. */ @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -270,13 +214,9 @@ public List getValues() { } /** - * The fixed donation amounts in [minor - * units](https://docs.adyen.com/development-resources/currency-codes//#minor-units). This field - * is only present when `donationType` is **fixedAmounts**. + * The fixed donation amounts in [minor units](https://docs.adyen.com/development-resources/currency-codes//#minor-units). This field is only present when `donationType` is **fixedAmounts**. * - * @param values The fixed donation amounts in [minor - * units](https://docs.adyen.com/development-resources/currency-codes//#minor-units). This - * field is only present when `donationType` is **fixedAmounts**. + * @param values The fixed donation amounts in [minor units](https://docs.adyen.com/development-resources/currency-codes//#minor-units). This field is only present when `donationType` is **fixedAmounts**. */ @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,7 +224,9 @@ public void setValues(List values) { this.values = values; } - /** Return true if this Donation object is equal to o. */ + /** + * Return true if this Donation object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -294,11 +236,11 @@ public boolean equals(Object o) { return false; } Donation donation = (Donation) o; - return Objects.equals(this.currency, donation.currency) - && Objects.equals(this.donationType, donation.donationType) - && Objects.equals(this.maxRoundupAmount, donation.maxRoundupAmount) - && Objects.equals(this.type, donation.type) - && Objects.equals(this.values, donation.values); + return Objects.equals(this.currency, donation.currency) && + Objects.equals(this.donationType, donation.donationType) && + Objects.equals(this.maxRoundupAmount, donation.maxRoundupAmount) && + Objects.equals(this.type, donation.type) && + Objects.equals(this.values, donation.values); } @Override @@ -320,7 +262,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -329,7 +272,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Donation given an JSON string * * @param jsonString JSON string @@ -339,12 +282,11 @@ private String toIndentedString(Object o) { public static Donation fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Donation.class); } - - /** - * Convert an instance of Donation to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Donation to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/DonationCampaign.java b/src/main/java/com/adyen/model/checkout/DonationCampaign.java index 3d9f37a04..87ddd3b1a 100644 --- a/src/main/java/com/adyen/model/checkout/DonationCampaign.java +++ b/src/main/java/com/adyen/model/checkout/DonationCampaign.java @@ -2,22 +2,33 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Amounts; +import com.adyen.model.checkout.Donation; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** DonationCampaign */ + +/** + * DonationCampaign + */ @JsonPropertyOrder({ DonationCampaign.JSON_PROPERTY_AMOUNTS, DonationCampaign.JSON_PROPERTY_BANNER_URL, @@ -31,6 +42,7 @@ DonationCampaign.JSON_PROPERTY_NONPROFIT_URL, DonationCampaign.JSON_PROPERTY_TERMS_AND_CONDITIONS_URL }) + public class DonationCampaign { public static final String JSON_PROPERTY_AMOUNTS = "amounts"; private Amounts amounts; @@ -65,12 +77,13 @@ public class DonationCampaign { public static final String JSON_PROPERTY_TERMS_AND_CONDITIONS_URL = "termsAndConditionsUrl"; private String termsAndConditionsUrl; - public DonationCampaign() {} + public DonationCampaign() { + } /** * amounts * - * @param amounts + * @param amounts * @return the current {@code DonationCampaign} instance, allowing for method chaining */ public DonationCampaign amounts(Amounts amounts) { @@ -80,8 +93,7 @@ public DonationCampaign amounts(Amounts amounts) { /** * Get amounts - * - * @return amounts + * @return amounts */ @JsonProperty(JSON_PROPERTY_AMOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -92,7 +104,7 @@ public Amounts getAmounts() { /** * amounts * - * @param amounts + * @param amounts */ @JsonProperty(JSON_PROPERTY_AMOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,7 +125,6 @@ public DonationCampaign bannerUrl(String bannerUrl) { /** * The URL for the banner of the nonprofit or campaign. - * * @return bannerUrl The URL for the banner of the nonprofit or campaign. */ @JsonProperty(JSON_PROPERTY_BANNER_URL) @@ -146,7 +157,6 @@ public DonationCampaign campaignName(String campaignName) { /** * The name of the donation campaign.. - * * @return campaignName The name of the donation campaign.. */ @JsonProperty(JSON_PROPERTY_CAMPAIGN_NAME) @@ -179,7 +189,6 @@ public DonationCampaign causeName(String causeName) { /** * The cause of the nonprofit. - * * @return causeName The cause of the nonprofit. */ @JsonProperty(JSON_PROPERTY_CAUSE_NAME) @@ -202,7 +211,7 @@ public void setCauseName(String causeName) { /** * donation * - * @param donation + * @param donation * @return the current {@code DonationCampaign} instance, allowing for method chaining */ public DonationCampaign donation(Donation donation) { @@ -212,8 +221,7 @@ public DonationCampaign donation(Donation donation) { /** * Get donation - * - * @return donation + * @return donation */ @JsonProperty(JSON_PROPERTY_DONATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,7 +232,7 @@ public Donation getDonation() { /** * donation * - * @param donation + * @param donation */ @JsonProperty(JSON_PROPERTY_DONATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -245,7 +253,6 @@ public DonationCampaign id(String id) { /** * The unique campaign ID of the donation campaign. - * * @return id The unique campaign ID of the donation campaign. */ @JsonProperty(JSON_PROPERTY_ID) @@ -278,7 +285,6 @@ public DonationCampaign logoUrl(String logoUrl) { /** * The URL for the logo of the nonprofit. - * * @return logoUrl The URL for the logo of the nonprofit. */ @JsonProperty(JSON_PROPERTY_LOGO_URL) @@ -311,7 +317,6 @@ public DonationCampaign nonprofitDescription(String nonprofitDescription) { /** * The description of the nonprofit. - * * @return nonprofitDescription The description of the nonprofit. */ @JsonProperty(JSON_PROPERTY_NONPROFIT_DESCRIPTION) @@ -344,7 +349,6 @@ public DonationCampaign nonprofitName(String nonprofitName) { /** * The name of the nonprofit organization that receives the donation. - * * @return nonprofitName The name of the nonprofit organization that receives the donation. */ @JsonProperty(JSON_PROPERTY_NONPROFIT_NAME) @@ -377,7 +381,6 @@ public DonationCampaign nonprofitUrl(String nonprofitUrl) { /** * The website URL of the nonprofit. - * * @return nonprofitUrl The website URL of the nonprofit. */ @JsonProperty(JSON_PROPERTY_NONPROFIT_URL) @@ -400,8 +403,7 @@ public void setNonprofitUrl(String nonprofitUrl) { /** * The URL of the terms and conditions page of the nonprofit and the campaign. * - * @param termsAndConditionsUrl The URL of the terms and conditions page of the nonprofit and the - * campaign. + * @param termsAndConditionsUrl The URL of the terms and conditions page of the nonprofit and the campaign. * @return the current {@code DonationCampaign} instance, allowing for method chaining */ public DonationCampaign termsAndConditionsUrl(String termsAndConditionsUrl) { @@ -411,9 +413,7 @@ public DonationCampaign termsAndConditionsUrl(String termsAndConditionsUrl) { /** * The URL of the terms and conditions page of the nonprofit and the campaign. - * - * @return termsAndConditionsUrl The URL of the terms and conditions page of the nonprofit and the - * campaign. + * @return termsAndConditionsUrl The URL of the terms and conditions page of the nonprofit and the campaign. */ @JsonProperty(JSON_PROPERTY_TERMS_AND_CONDITIONS_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -424,8 +424,7 @@ public String getTermsAndConditionsUrl() { /** * The URL of the terms and conditions page of the nonprofit and the campaign. * - * @param termsAndConditionsUrl The URL of the terms and conditions page of the nonprofit and the - * campaign. + * @param termsAndConditionsUrl The URL of the terms and conditions page of the nonprofit and the campaign. */ @JsonProperty(JSON_PROPERTY_TERMS_AND_CONDITIONS_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -433,7 +432,9 @@ public void setTermsAndConditionsUrl(String termsAndConditionsUrl) { this.termsAndConditionsUrl = termsAndConditionsUrl; } - /** Return true if this DonationCampaign object is equal to o. */ + /** + * Return true if this DonationCampaign object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -443,33 +444,22 @@ public boolean equals(Object o) { return false; } DonationCampaign donationCampaign = (DonationCampaign) o; - return Objects.equals(this.amounts, donationCampaign.amounts) - && Objects.equals(this.bannerUrl, donationCampaign.bannerUrl) - && Objects.equals(this.campaignName, donationCampaign.campaignName) - && Objects.equals(this.causeName, donationCampaign.causeName) - && Objects.equals(this.donation, donationCampaign.donation) - && Objects.equals(this.id, donationCampaign.id) - && Objects.equals(this.logoUrl, donationCampaign.logoUrl) - && Objects.equals(this.nonprofitDescription, donationCampaign.nonprofitDescription) - && Objects.equals(this.nonprofitName, donationCampaign.nonprofitName) - && Objects.equals(this.nonprofitUrl, donationCampaign.nonprofitUrl) - && Objects.equals(this.termsAndConditionsUrl, donationCampaign.termsAndConditionsUrl); + return Objects.equals(this.amounts, donationCampaign.amounts) && + Objects.equals(this.bannerUrl, donationCampaign.bannerUrl) && + Objects.equals(this.campaignName, donationCampaign.campaignName) && + Objects.equals(this.causeName, donationCampaign.causeName) && + Objects.equals(this.donation, donationCampaign.donation) && + Objects.equals(this.id, donationCampaign.id) && + Objects.equals(this.logoUrl, donationCampaign.logoUrl) && + Objects.equals(this.nonprofitDescription, donationCampaign.nonprofitDescription) && + Objects.equals(this.nonprofitName, donationCampaign.nonprofitName) && + Objects.equals(this.nonprofitUrl, donationCampaign.nonprofitUrl) && + Objects.equals(this.termsAndConditionsUrl, donationCampaign.termsAndConditionsUrl); } @Override public int hashCode() { - return Objects.hash( - amounts, - bannerUrl, - campaignName, - causeName, - donation, - id, - logoUrl, - nonprofitDescription, - nonprofitName, - nonprofitUrl, - termsAndConditionsUrl); + return Objects.hash(amounts, bannerUrl, campaignName, causeName, donation, id, logoUrl, nonprofitDescription, nonprofitName, nonprofitUrl, termsAndConditionsUrl); } @Override @@ -483,20 +473,17 @@ public String toString() { sb.append(" donation: ").append(toIndentedString(donation)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" logoUrl: ").append(toIndentedString(logoUrl)).append("\n"); - sb.append(" nonprofitDescription: ") - .append(toIndentedString(nonprofitDescription)) - .append("\n"); + sb.append(" nonprofitDescription: ").append(toIndentedString(nonprofitDescription)).append("\n"); sb.append(" nonprofitName: ").append(toIndentedString(nonprofitName)).append("\n"); sb.append(" nonprofitUrl: ").append(toIndentedString(nonprofitUrl)).append("\n"); - sb.append(" termsAndConditionsUrl: ") - .append(toIndentedString(termsAndConditionsUrl)) - .append("\n"); + sb.append(" termsAndConditionsUrl: ").append(toIndentedString(termsAndConditionsUrl)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -505,7 +492,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DonationCampaign given an JSON string * * @param jsonString JSON string @@ -515,12 +502,11 @@ private String toIndentedString(Object o) { public static DonationCampaign fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DonationCampaign.class); } - - /** - * Convert an instance of DonationCampaign to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DonationCampaign to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/DonationCampaignsRequest.java b/src/main/java/com/adyen/model/checkout/DonationCampaignsRequest.java index 001265b8d..4cde81802 100644 --- a/src/main/java/com/adyen/model/checkout/DonationCampaignsRequest.java +++ b/src/main/java/com/adyen/model/checkout/DonationCampaignsRequest.java @@ -2,27 +2,37 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** DonationCampaignsRequest */ + +/** + * DonationCampaignsRequest + */ @JsonPropertyOrder({ DonationCampaignsRequest.JSON_PROPERTY_CURRENCY, DonationCampaignsRequest.JSON_PROPERTY_LOCALE, DonationCampaignsRequest.JSON_PROPERTY_MERCHANT_ACCOUNT }) + public class DonationCampaignsRequest { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -33,14 +43,13 @@ public class DonationCampaignsRequest { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; - public DonationCampaignsRequest() {} + public DonationCampaignsRequest() { + } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes/). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes/). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). * @return the current {@code DonationCampaignsRequest} instance, allowing for method chaining */ public DonationCampaignsRequest currency(String currency) { @@ -49,11 +58,8 @@ public DonationCampaignsRequest currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes/). - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes/). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -62,11 +68,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes/). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes/). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,7 +91,6 @@ public DonationCampaignsRequest locale(String locale) { /** * Locale on the shopper interaction device. - * * @return locale Locale on the shopper interaction device. */ @JsonProperty(JSON_PROPERTY_LOCALE) @@ -120,7 +123,6 @@ public DonationCampaignsRequest merchantAccount(String merchantAccount) { /** * Your merchant account identifier. - * * @return merchantAccount Your merchant account identifier. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -140,7 +142,9 @@ public void setMerchantAccount(String merchantAccount) { this.merchantAccount = merchantAccount; } - /** Return true if this DonationCampaignsRequest object is equal to o. */ + /** + * Return true if this DonationCampaignsRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -150,9 +154,9 @@ public boolean equals(Object o) { return false; } DonationCampaignsRequest donationCampaignsRequest = (DonationCampaignsRequest) o; - return Objects.equals(this.currency, donationCampaignsRequest.currency) - && Objects.equals(this.locale, donationCampaignsRequest.locale) - && Objects.equals(this.merchantAccount, donationCampaignsRequest.merchantAccount); + return Objects.equals(this.currency, donationCampaignsRequest.currency) && + Objects.equals(this.locale, donationCampaignsRequest.locale) && + Objects.equals(this.merchantAccount, donationCampaignsRequest.merchantAccount); } @Override @@ -172,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -181,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DonationCampaignsRequest given an JSON string * * @param jsonString JSON string * @return An instance of DonationCampaignsRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DonationCampaignsRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to DonationCampaignsRequest */ - public static DonationCampaignsRequest fromJson(String jsonString) - throws JsonProcessingException { + public static DonationCampaignsRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DonationCampaignsRequest.class); } - - /** - * Convert an instance of DonationCampaignsRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DonationCampaignsRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/DonationCampaignsResponse.java b/src/main/java/com/adyen/model/checkout/DonationCampaignsResponse.java index 0bb1ff92c..c24cf5a1a 100644 --- a/src/main/java/com/adyen/model/checkout/DonationCampaignsResponse.java +++ b/src/main/java/com/adyen/model/checkout/DonationCampaignsResponse.java @@ -2,30 +2,44 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.DonationCampaign; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * DonationCampaignsResponse + */ +@JsonPropertyOrder({ + DonationCampaignsResponse.JSON_PROPERTY_DONATION_CAMPAIGNS +}) -/** DonationCampaignsResponse */ -@JsonPropertyOrder({DonationCampaignsResponse.JSON_PROPERTY_DONATION_CAMPAIGNS}) public class DonationCampaignsResponse { public static final String JSON_PROPERTY_DONATION_CAMPAIGNS = "donationCampaigns"; private List donationCampaigns; - public DonationCampaignsResponse() {} + public DonationCampaignsResponse() { + } /** * List of active donation campaigns for your merchant account. @@ -38,8 +52,7 @@ public DonationCampaignsResponse donationCampaigns(List donati return this; } - public DonationCampaignsResponse addDonationCampaignsItem( - DonationCampaign donationCampaignsItem) { + public DonationCampaignsResponse addDonationCampaignsItem(DonationCampaign donationCampaignsItem) { if (this.donationCampaigns == null) { this.donationCampaigns = new ArrayList<>(); } @@ -49,7 +62,6 @@ public DonationCampaignsResponse addDonationCampaignsItem( /** * List of active donation campaigns for your merchant account. - * * @return donationCampaigns List of active donation campaigns for your merchant account. */ @JsonProperty(JSON_PROPERTY_DONATION_CAMPAIGNS) @@ -69,7 +81,9 @@ public void setDonationCampaigns(List donationCampaigns) { this.donationCampaigns = donationCampaigns; } - /** Return true if this DonationCampaignsResponse object is equal to o. */ + /** + * Return true if this DonationCampaignsResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -97,7 +111,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -106,24 +121,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DonationCampaignsResponse given an JSON string * * @param jsonString JSON string * @return An instance of DonationCampaignsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DonationCampaignsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to DonationCampaignsResponse */ - public static DonationCampaignsResponse fromJson(String jsonString) - throws JsonProcessingException { + public static DonationCampaignsResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DonationCampaignsResponse.class); } - - /** - * Convert an instance of DonationCampaignsResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DonationCampaignsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/DonationPaymentMethod.java b/src/main/java/com/adyen/model/checkout/DonationPaymentMethod.java index 6eafdf5a2..c3d0cd4f0 100644 --- a/src/main/java/com/adyen/model/checkout/DonationPaymentMethod.java +++ b/src/main/java/com/adyen/model/checkout/DonationPaymentMethod.java @@ -2,19 +2,48 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.ApplePayDonations; +import com.adyen.model.checkout.CardDonations; +import com.adyen.model.checkout.GooglePayDonations; +import com.adyen.model.checkout.IdealDonations; +import com.adyen.model.checkout.PayWithGoogleDonations; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + +import com.fasterxml.jackson.core.type.TypeReference; + +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.Response; +import java.io.IOException; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; + import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; +import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -24,373 +53,355 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import jakarta.ws.rs.core.GenericType; -import java.io.IOException; -import java.util.*; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashSet; -import java.util.logging.Level; -import java.util.logging.Logger; + @JsonDeserialize(using = DonationPaymentMethod.DonationPaymentMethodDeserializer.class) @JsonSerialize(using = DonationPaymentMethod.DonationPaymentMethodSerializer.class) public class DonationPaymentMethod extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(DonationPaymentMethod.class.getName()); + private static final Logger log = Logger.getLogger(DonationPaymentMethod.class.getName()); + + public static class DonationPaymentMethodSerializer extends StdSerializer { + public DonationPaymentMethodSerializer(Class t) { + super(t); + } + + public DonationPaymentMethodSerializer() { + this(null); + } + + @Override + public void serialize(DonationPaymentMethod value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); + } + } + + public static class DonationPaymentMethodDeserializer extends StdDeserializer { + public DonationPaymentMethodDeserializer() { + this(DonationPaymentMethod.class); + } + + public DonationPaymentMethodDeserializer(Class vc) { + super(vc); + } + + @Override + public DonationPaymentMethod deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize ApplePayDonations + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(ApplePayDonations.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(ApplePayDonations.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'ApplePayDonations'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'ApplePayDonations'", e); + } + + // deserialize CardDonations + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(CardDonations.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CardDonations.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CardDonations'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CardDonations'", e); + } + + // deserialize GooglePayDonations + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(GooglePayDonations.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(GooglePayDonations.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'GooglePayDonations'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'GooglePayDonations'", e); + } + + // deserialize IdealDonations + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(IdealDonations.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(IdealDonations.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'IdealDonations'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'IdealDonations'", e); + } + + // deserialize PayWithGoogleDonations + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(PayWithGoogleDonations.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PayWithGoogleDonations.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PayWithGoogleDonations'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PayWithGoogleDonations'", e); + } + + if (match == 1) { + DonationPaymentMethod ret = new DonationPaymentMethod(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException(String.format("Failed deserialization for DonationPaymentMethod: %d classes match result, expected 1", match)); + } - public static class DonationPaymentMethodSerializer extends StdSerializer { - public DonationPaymentMethodSerializer(Class t) { - super(t); + /** + * Handle deserialization of the 'null' value. + */ + @Override + public DonationPaymentMethod getNullValue(DeserializationContext ctxt) throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "DonationPaymentMethod cannot be null"); + } } - public DonationPaymentMethodSerializer() { - this(null); + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public DonationPaymentMethod() { + super("oneOf", Boolean.FALSE); } - @Override - public void serialize( - DonationPaymentMethod value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + public DonationPaymentMethod(ApplePayDonations o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public DonationPaymentMethod(CardDonations o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public DonationPaymentMethod(GooglePayDonations o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public DonationPaymentMethod(IdealDonations o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public DonationPaymentMethod(PayWithGoogleDonations o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } - } - public static class DonationPaymentMethodDeserializer - extends StdDeserializer { - public DonationPaymentMethodDeserializer() { - this(DonationPaymentMethod.class); + static { + schemas.put("ApplePayDonations", new GenericType() { + }); + schemas.put("CardDonations", new GenericType() { + }); + schemas.put("GooglePayDonations", new GenericType() { + }); + schemas.put("IdealDonations", new GenericType() { + }); + schemas.put("PayWithGoogleDonations", new GenericType() { + }); + JSON.registerDescendants(DonationPaymentMethod.class, Collections.unmodifiableMap(schemas)); } - public DonationPaymentMethodDeserializer(Class vc) { - super(vc); + @Override + public Map> getSchemas() { + return DonationPaymentMethod.schemas; } + /** + * Set the instance that matches the oneOf child schema, check + * the instance parameter is valid against the oneOf child schemas: + * ApplePayDonations, CardDonations, GooglePayDonations, IdealDonations, PayWithGoogleDonations + * + * It could be an instance of the 'oneOf' schemas. + * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). + */ @Override - public DonationPaymentMethod deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize ApplePayDonations - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(ApplePayDonations.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(ApplePayDonations.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'ApplePayDonations'"); - } + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(ApplePayDonations.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'ApplePayDonations'", e); - } - - // deserialize CardDonations - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(CardDonations.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CardDonations.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CardDonations'"); - } + + if (JSON.isInstanceOf(CardDonations.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CardDonations'", e); - } - - // deserialize GooglePayDonations - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(GooglePayDonations.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(GooglePayDonations.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'GooglePayDonations'"); - } + + if (JSON.isInstanceOf(GooglePayDonations.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'GooglePayDonations'", e); - } - - // deserialize IdealDonations - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(IdealDonations.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(IdealDonations.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'IdealDonations'"); - } + + if (JSON.isInstanceOf(IdealDonations.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'IdealDonations'", e); - } - - // deserialize PayWithGoogleDonations - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(PayWithGoogleDonations.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PayWithGoogleDonations.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PayWithGoogleDonations'"); - } + + if (JSON.isInstanceOf(PayWithGoogleDonations.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PayWithGoogleDonations'", e); - } - - if (match == 1) { - DonationPaymentMethod ret = new DonationPaymentMethod(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for DonationPaymentMethod: %d classes match result, expected 1", - match)); + + throw new RuntimeException("Invalid instance type. Must be ApplePayDonations, CardDonations, GooglePayDonations, IdealDonations, PayWithGoogleDonations"); } - /** Handle deserialization of the 'null' value. */ + /** + * Get the actual instance, which can be the following: + * ApplePayDonations, CardDonations, GooglePayDonations, IdealDonations, PayWithGoogleDonations + * + * @return The actual instance (ApplePayDonations, CardDonations, GooglePayDonations, IdealDonations, PayWithGoogleDonations) + */ @Override - public DonationPaymentMethod getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "DonationPaymentMethod cannot be null"); + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `ApplePayDonations`. If the actual instance is not `ApplePayDonations`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `ApplePayDonations` + * @throws ClassCastException if the instance is not `ApplePayDonations` + */ + public ApplePayDonations getApplePayDonations() throws ClassCastException { + return (ApplePayDonations)super.getActualInstance(); } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public DonationPaymentMethod() { - super("oneOf", Boolean.FALSE); - } - - public DonationPaymentMethod(ApplePayDonations o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public DonationPaymentMethod(CardDonations o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public DonationPaymentMethod(GooglePayDonations o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public DonationPaymentMethod(IdealDonations o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public DonationPaymentMethod(PayWithGoogleDonations o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("ApplePayDonations", new GenericType() {}); - schemas.put("CardDonations", new GenericType() {}); - schemas.put("GooglePayDonations", new GenericType() {}); - schemas.put("IdealDonations", new GenericType() {}); - schemas.put("PayWithGoogleDonations", new GenericType() {}); - JSON.registerDescendants(DonationPaymentMethod.class, Collections.unmodifiableMap(schemas)); - } - - @Override - public Map> getSchemas() { - return DonationPaymentMethod.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: ApplePayDonations, CardDonations, GooglePayDonations, - * IdealDonations, PayWithGoogleDonations - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a - * composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(ApplePayDonations.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + + /** + * Get the actual instance of `CardDonations`. If the actual instance is not `CardDonations`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CardDonations` + * @throws ClassCastException if the instance is not `CardDonations` + */ + public CardDonations getCardDonations() throws ClassCastException { + return (CardDonations)super.getActualInstance(); } - if (JSON.isInstanceOf(CardDonations.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `GooglePayDonations`. If the actual instance is not `GooglePayDonations`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `GooglePayDonations` + * @throws ClassCastException if the instance is not `GooglePayDonations` + */ + public GooglePayDonations getGooglePayDonations() throws ClassCastException { + return (GooglePayDonations)super.getActualInstance(); } - if (JSON.isInstanceOf(GooglePayDonations.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `IdealDonations`. If the actual instance is not `IdealDonations`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `IdealDonations` + * @throws ClassCastException if the instance is not `IdealDonations` + */ + public IdealDonations getIdealDonations() throws ClassCastException { + return (IdealDonations)super.getActualInstance(); } - if (JSON.isInstanceOf(IdealDonations.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `PayWithGoogleDonations`. If the actual instance is not `PayWithGoogleDonations`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `PayWithGoogleDonations` + * @throws ClassCastException if the instance is not `PayWithGoogleDonations` + */ + public PayWithGoogleDonations getPayWithGoogleDonations() throws ClassCastException { + return (PayWithGoogleDonations)super.getActualInstance(); + } + + + /** + * Create an instance of DonationPaymentMethod given an JSON string + * + * @param jsonString JSON string + * @return An instance of DonationPaymentMethod + * @throws IOException if the JSON string is invalid with respect to DonationPaymentMethod + */ + public static DonationPaymentMethod fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, DonationPaymentMethod.class); } - if (JSON.isInstanceOf(PayWithGoogleDonations.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Convert an instance of DonationPaymentMethod to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); } - throw new RuntimeException( - "Invalid instance type. Must be ApplePayDonations, CardDonations, GooglePayDonations, IdealDonations, PayWithGoogleDonations"); - } - - /** - * Get the actual instance, which can be the following: ApplePayDonations, CardDonations, - * GooglePayDonations, IdealDonations, PayWithGoogleDonations - * - * @return The actual instance (ApplePayDonations, CardDonations, GooglePayDonations, - * IdealDonations, PayWithGoogleDonations) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `ApplePayDonations`. If the actual instance is not - * `ApplePayDonations`, the ClassCastException will be thrown. - * - * @return The actual instance of `ApplePayDonations` - * @throws ClassCastException if the instance is not `ApplePayDonations` - */ - public ApplePayDonations getApplePayDonations() throws ClassCastException { - return (ApplePayDonations) super.getActualInstance(); - } - - /** - * Get the actual instance of `CardDonations`. If the actual instance is not `CardDonations`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `CardDonations` - * @throws ClassCastException if the instance is not `CardDonations` - */ - public CardDonations getCardDonations() throws ClassCastException { - return (CardDonations) super.getActualInstance(); - } - - /** - * Get the actual instance of `GooglePayDonations`. If the actual instance is not - * `GooglePayDonations`, the ClassCastException will be thrown. - * - * @return The actual instance of `GooglePayDonations` - * @throws ClassCastException if the instance is not `GooglePayDonations` - */ - public GooglePayDonations getGooglePayDonations() throws ClassCastException { - return (GooglePayDonations) super.getActualInstance(); - } - - /** - * Get the actual instance of `IdealDonations`. If the actual instance is not `IdealDonations`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `IdealDonations` - * @throws ClassCastException if the instance is not `IdealDonations` - */ - public IdealDonations getIdealDonations() throws ClassCastException { - return (IdealDonations) super.getActualInstance(); - } - - /** - * Get the actual instance of `PayWithGoogleDonations`. If the actual instance is not - * `PayWithGoogleDonations`, the ClassCastException will be thrown. - * - * @return The actual instance of `PayWithGoogleDonations` - * @throws ClassCastException if the instance is not `PayWithGoogleDonations` - */ - public PayWithGoogleDonations getPayWithGoogleDonations() throws ClassCastException { - return (PayWithGoogleDonations) super.getActualInstance(); - } - - /** - * Create an instance of DonationPaymentMethod given an JSON string - * - * @param jsonString JSON string - * @return An instance of DonationPaymentMethod - * @throws IOException if the JSON string is invalid with respect to DonationPaymentMethod - */ - public static DonationPaymentMethod fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, DonationPaymentMethod.class); - } - - /** - * Convert an instance of DonationPaymentMethod to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); - } } diff --git a/src/main/java/com/adyen/model/checkout/DonationPaymentRequest.java b/src/main/java/com/adyen/model/checkout/DonationPaymentRequest.java index d54f3dc88..5320cd1ef 100644 --- a/src/main/java/com/adyen/model/checkout/DonationPaymentRequest.java +++ b/src/main/java/com/adyen/model/checkout/DonationPaymentRequest.java @@ -2,31 +2,49 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.AccountInfo; +import com.adyen.model.checkout.Amount; +import com.adyen.model.checkout.ApplicationInfo; +import com.adyen.model.checkout.AuthenticationData; +import com.adyen.model.checkout.BillingAddress; +import com.adyen.model.checkout.BrowserInfo; +import com.adyen.model.checkout.DeliveryAddress; +import com.adyen.model.checkout.DonationPaymentMethod; +import com.adyen.model.checkout.LineItem; +import com.adyen.model.checkout.MerchantRiskIndicator; +import com.adyen.model.checkout.Name; +import com.adyen.model.checkout.ThreeDS2RequestFields; +import com.adyen.model.checkout.ThreeDSecureData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** DonationPaymentRequest */ +/** + * DonationPaymentRequest + */ @JsonPropertyOrder({ DonationPaymentRequest.JSON_PROPERTY_ACCOUNT_INFO, DonationPaymentRequest.JSON_PROPERTY_ADDITIONAL_DATA, @@ -71,6 +89,7 @@ DonationPaymentRequest.JSON_PROPERTY_THREE_D_S2_REQUEST_DATA, DonationPaymentRequest.JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY }) + public class DonationPaymentRequest { public static final String JSON_PROPERTY_ACCOUNT_INFO = "accountInfo"; private AccountInfo accountInfo; @@ -94,12 +113,10 @@ public class DonationPaymentRequest { private BrowserInfo browserInfo; /** - * The platform where a payment transaction takes place. This field is optional for filtering out - * payment methods that are only available on specific platforms. If this value is not set, then - * we will try to infer it from the `sdkVersion` or `token`. Possible values: - * * iOS * Android * Web + * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web */ public enum ChannelEnum { + IOS(String.valueOf("iOS")), ANDROID(String.valueOf("Android")), @@ -111,7 +128,7 @@ public enum ChannelEnum { private String value; ChannelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -132,11 +149,7 @@ public static ChannelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ChannelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ChannelEnum.values())); + LOG.warning("ChannelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChannelEnum.values())); return null; } } @@ -172,8 +185,7 @@ public static ChannelEnum fromValue(String value) { public static final String JSON_PROPERTY_DONATION_CAMPAIGN_ID = "donationCampaignId"; private String donationCampaignId; - public static final String JSON_PROPERTY_DONATION_ORIGINAL_PSP_REFERENCE = - "donationOriginalPspReference"; + public static final String JSON_PROPERTY_DONATION_ORIGINAL_PSP_REFERENCE = "donationOriginalPspReference"; private String donationOriginalPspReference; public static final String JSON_PROPERTY_DONATION_TOKEN = "donationToken"; @@ -201,30 +213,22 @@ public static ChannelEnum fromValue(String value) { private DonationPaymentMethod paymentMethod; /** - * Defines a recurring payment type. Required when creating a token to store payment details or - * using stored payment details. Allowed values: * `Subscription` – A transaction for a - * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a - * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – - * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ public enum RecurringProcessingModelEnum { + CARDONFILE(String.valueOf("CardOnFile")), SUBSCRIPTION(String.valueOf("Subscription")), UNSCHEDULEDCARDONFILE(String.valueOf("UnscheduledCardOnFile")); - private static final Logger LOG = - Logger.getLogger(RecurringProcessingModelEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(RecurringProcessingModelEnum.class.getName()); private String value; RecurringProcessingModelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -245,11 +249,7 @@ public static RecurringProcessingModelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "RecurringProcessingModelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(RecurringProcessingModelEnum.values())); + LOG.warning("RecurringProcessingModelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RecurringProcessingModelEnum.values())); return null; } } @@ -279,19 +279,10 @@ public static RecurringProcessingModelEnum fromValue(String value) { private String shopperIP; /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorization rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorization (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorization rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorization (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ public enum ShopperInteractionEnum { + ECOMMERCE(String.valueOf("Ecommerce")), CONTAUTH(String.valueOf("ContAuth")), @@ -305,7 +296,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -326,11 +317,7 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ShopperInteractionEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -356,18 +343,17 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S2_REQUEST_DATA = "threeDS2RequestData"; private ThreeDS2RequestFields threeDS2RequestData; - public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = - "threeDSAuthenticationOnly"; - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = "threeDSAuthenticationOnly"; + @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. private Boolean threeDSAuthenticationOnly; - public DonationPaymentRequest() {} + public DonationPaymentRequest() { + } /** * accountInfo * - * @param accountInfo + * @param accountInfo * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest accountInfo(AccountInfo accountInfo) { @@ -377,8 +363,7 @@ public DonationPaymentRequest accountInfo(AccountInfo accountInfo) { /** * Get accountInfo - * - * @return accountInfo + * @return accountInfo */ @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -389,7 +374,7 @@ public AccountInfo getAccountInfo() { /** * accountInfo * - * @param accountInfo + * @param accountInfo */ @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -398,13 +383,9 @@ public void setAccountInfo(AccountInfo accountInfo) { } /** - * This field contains additional data, which may be required for a particular payment request. - * The `additionalData` object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular payment request. The `additionalData` object consists of entries, each - * of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest additionalData(Map additionalData) { @@ -421,13 +402,8 @@ public DonationPaymentRequest putAdditionalDataItem(String key, String additiona } /** - * This field contains additional data, which may be required for a particular payment request. - * The `additionalData` object consists of entries, each of which includes the key and - * value. - * - * @return additionalData This field contains additional data, which may be required for a - * particular payment request. The `additionalData` object consists of entries, each - * of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * @return additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -436,13 +412,9 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular payment request. - * The `additionalData` object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular payment request. The `additionalData` object consists of entries, each - * of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -453,7 +425,7 @@ public void setAdditionalData(Map additionalData) { /** * amount * - * @param amount + * @param amount * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest amount(Amount amount) { @@ -463,8 +435,7 @@ public DonationPaymentRequest amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -475,7 +446,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -486,7 +457,7 @@ public void setAmount(Amount amount) { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest applicationInfo(ApplicationInfo applicationInfo) { @@ -496,8 +467,7 @@ public DonationPaymentRequest applicationInfo(ApplicationInfo applicationInfo) { /** * Get applicationInfo - * - * @return applicationInfo + * @return applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -508,7 +478,7 @@ public ApplicationInfo getApplicationInfo() { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -519,7 +489,7 @@ public void setApplicationInfo(ApplicationInfo applicationInfo) { /** * authenticationData * - * @param authenticationData + * @param authenticationData * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest authenticationData(AuthenticationData authenticationData) { @@ -529,8 +499,7 @@ public DonationPaymentRequest authenticationData(AuthenticationData authenticati /** * Get authenticationData - * - * @return authenticationData + * @return authenticationData */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -541,7 +510,7 @@ public AuthenticationData getAuthenticationData() { /** * authenticationData * - * @param authenticationData + * @param authenticationData */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -552,7 +521,7 @@ public void setAuthenticationData(AuthenticationData authenticationData) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest billingAddress(BillingAddress billingAddress) { @@ -562,8 +531,7 @@ public DonationPaymentRequest billingAddress(BillingAddress billingAddress) { /** * Get billingAddress - * - * @return billingAddress + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -574,7 +542,7 @@ public BillingAddress getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -585,7 +553,7 @@ public void setBillingAddress(BillingAddress billingAddress) { /** * browserInfo * - * @param browserInfo + * @param browserInfo * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest browserInfo(BrowserInfo browserInfo) { @@ -595,8 +563,7 @@ public DonationPaymentRequest browserInfo(BrowserInfo browserInfo) { /** * Get browserInfo - * - * @return browserInfo + * @return browserInfo */ @JsonProperty(JSON_PROPERTY_BROWSER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -607,7 +574,7 @@ public BrowserInfo getBrowserInfo() { /** * browserInfo * - * @param browserInfo + * @param browserInfo */ @JsonProperty(JSON_PROPERTY_BROWSER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -616,15 +583,9 @@ public void setBrowserInfo(BrowserInfo browserInfo) { } /** - * The platform where a payment transaction takes place. This field is optional for filtering out - * payment methods that are only available on specific platforms. If this value is not set, then - * we will try to infer it from the `sdkVersion` or `token`. Possible values: - * * iOS * Android * Web + * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web * - * @param channel The platform where a payment transaction takes place. This field is optional for - * filtering out payment methods that are only available on specific platforms. If this value - * is not set, then we will try to infer it from the `sdkVersion` or - * `token`. Possible values: * iOS * Android * Web + * @param channel The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest channel(ChannelEnum channel) { @@ -633,15 +594,8 @@ public DonationPaymentRequest channel(ChannelEnum channel) { } /** - * The platform where a payment transaction takes place. This field is optional for filtering out - * payment methods that are only available on specific platforms. If this value is not set, then - * we will try to infer it from the `sdkVersion` or `token`. Possible values: - * * iOS * Android * Web - * - * @return channel The platform where a payment transaction takes place. This field is optional - * for filtering out payment methods that are only available on specific platforms. If this - * value is not set, then we will try to infer it from the `sdkVersion` or - * `token`. Possible values: * iOS * Android * Web + * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web + * @return channel The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web */ @JsonProperty(JSON_PROPERTY_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -650,15 +604,9 @@ public ChannelEnum getChannel() { } /** - * The platform where a payment transaction takes place. This field is optional for filtering out - * payment methods that are only available on specific platforms. If this value is not set, then - * we will try to infer it from the `sdkVersion` or `token`. Possible values: - * * iOS * Android * Web + * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web * - * @param channel The platform where a payment transaction takes place. This field is optional for - * filtering out payment methods that are only available on specific platforms. If this value - * is not set, then we will try to infer it from the `sdkVersion` or - * `token`. Possible values: * iOS * Android * Web + * @param channel The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web */ @JsonProperty(JSON_PROPERTY_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -667,11 +615,9 @@ public void setChannel(ChannelEnum channel) { } /** - * Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user - * payment journey. + * Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user payment journey. * - * @param checkoutAttemptId Checkout attempt ID that corresponds to the Id generated by the client - * SDK for tracking user payment journey. + * @param checkoutAttemptId Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user payment journey. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest checkoutAttemptId(String checkoutAttemptId) { @@ -680,11 +626,8 @@ public DonationPaymentRequest checkoutAttemptId(String checkoutAttemptId) { } /** - * Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user - * payment journey. - * - * @return checkoutAttemptId Checkout attempt ID that corresponds to the Id generated by the - * client SDK for tracking user payment journey. + * Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user payment journey. + * @return checkoutAttemptId Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user payment journey. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -693,11 +636,9 @@ public String getCheckoutAttemptId() { } /** - * Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user - * payment journey. + * Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user payment journey. * - * @param checkoutAttemptId Checkout attempt ID that corresponds to the Id generated by the client - * SDK for tracking user payment journey. + * @param checkoutAttemptId Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user payment journey. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -706,13 +647,13 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment - * journey. + * Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey. * - * @param conversionId Conversion ID that corresponds to the Id generated by the client SDK for - * tracking user payment journey. + * @param conversionId Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v68 Use `checkoutAttemptId` instead + * + * @deprecated since Adyen Checkout API v68 + * Use `checkoutAttemptId` instead */ @Deprecated // deprecated since Adyen Checkout API v68: Use `checkoutAttemptId` instead public DonationPaymentRequest conversionId(String conversionId) { @@ -721,11 +662,8 @@ public DonationPaymentRequest conversionId(String conversionId) { } /** - * Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment - * journey. - * - * @return conversionId Conversion ID that corresponds to the Id generated by the client SDK for - * tracking user payment journey. + * Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey. + * @return conversionId Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey. * @deprecated // deprecated since Adyen Checkout API v68: Use `checkoutAttemptId` instead */ @Deprecated // deprecated since Adyen Checkout API v68: Use `checkoutAttemptId` instead @@ -736,12 +674,12 @@ public String getConversionId() { } /** - * Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment - * journey. + * Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey. + * + * @param conversionId Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey. * - * @param conversionId Conversion ID that corresponds to the Id generated by the client SDK for - * tracking user payment journey. - * @deprecated since Adyen Checkout API v68 Use `checkoutAttemptId` instead + * @deprecated since Adyen Checkout API v68 + * Use `checkoutAttemptId` instead */ @Deprecated // deprecated since Adyen Checkout API v68: Use `checkoutAttemptId` instead @JsonProperty(JSON_PROPERTY_CONVERSION_ID) @@ -751,11 +689,9 @@ public void setConversionId(String conversionId) { } /** - * The shopper country. Format: [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE * - * @param countryCode The shopper country. Format: [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * @param countryCode The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest countryCode(String countryCode) { @@ -764,11 +700,8 @@ public DonationPaymentRequest countryCode(String countryCode) { } /** - * The shopper country. Format: [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE - * - * @return countryCode The shopper country. Format: [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * @return countryCode The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -777,11 +710,9 @@ public String getCountryCode() { } /** - * The shopper country. Format: [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE * - * @param countryCode The shopper country. Format: [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * @param countryCode The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -790,11 +721,9 @@ public void setCountryCode(String countryCode) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): - * YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest dateOfBirth(OffsetDateTime dateOfBirth) { @@ -803,11 +732,8 @@ public DonationPaymentRequest dateOfBirth(OffsetDateTime dateOfBirth) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): - * YYYY-MM-DD - * - * @return dateOfBirth The shopper's date of birth. Format - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @return dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -816,11 +742,9 @@ public OffsetDateTime getDateOfBirth() { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): - * YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -829,13 +753,9 @@ public void setDateOfBirth(OffsetDateTime dateOfBirth) { } /** - * The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 * - * @param deliverAt The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * @param deliverAt The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest deliverAt(OffsetDateTime deliverAt) { @@ -844,13 +764,8 @@ public DonationPaymentRequest deliverAt(OffsetDateTime deliverAt) { } /** - * The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 - * - * @return deliverAt The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * @return deliverAt The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 */ @JsonProperty(JSON_PROPERTY_DELIVER_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -859,13 +774,9 @@ public OffsetDateTime getDeliverAt() { } /** - * The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 * - * @param deliverAt The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * @param deliverAt The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 */ @JsonProperty(JSON_PROPERTY_DELIVER_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -876,7 +787,7 @@ public void setDeliverAt(OffsetDateTime deliverAt) { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest deliveryAddress(DeliveryAddress deliveryAddress) { @@ -886,8 +797,7 @@ public DonationPaymentRequest deliveryAddress(DeliveryAddress deliveryAddress) { /** * Get deliveryAddress - * - * @return deliveryAddress + * @return deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -898,7 +808,7 @@ public DeliveryAddress getDeliveryAddress() { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -907,12 +817,9 @@ public void setDeliveryAddress(DeliveryAddress deliveryAddress) { } /** - * A string containing the shopper's device fingerprint. For more information, refer to - * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * - * @param deviceFingerprint A string containing the shopper's device fingerprint. For more - * information, refer to [Device - * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @param deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest deviceFingerprint(String deviceFingerprint) { @@ -921,12 +828,8 @@ public DonationPaymentRequest deviceFingerprint(String deviceFingerprint) { } /** - * A string containing the shopper's device fingerprint. For more information, refer to - * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). - * - * @return deviceFingerprint A string containing the shopper's device fingerprint. For more - * information, refer to [Device - * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @return deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -935,12 +838,9 @@ public String getDeviceFingerprint() { } /** - * A string containing the shopper's device fingerprint. For more information, refer to - * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * - * @param deviceFingerprint A string containing the shopper's device fingerprint. For more - * information, refer to [Device - * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @param deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -961,7 +861,6 @@ public DonationPaymentRequest donationAccount(String donationAccount) { /** * Donation account to which the transaction is credited. - * * @return donationAccount Donation account to which the transaction is credited. */ @JsonProperty(JSON_PROPERTY_DONATION_ACCOUNT) @@ -984,8 +883,7 @@ public void setDonationAccount(String donationAccount) { /** * The donation campaign ID received in the `/donationCampaigns` call. * - * @param donationCampaignId The donation campaign ID received in the - * `/donationCampaigns` call. + * @param donationCampaignId The donation campaign ID received in the `/donationCampaigns` call. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest donationCampaignId(String donationCampaignId) { @@ -995,9 +893,7 @@ public DonationPaymentRequest donationCampaignId(String donationCampaignId) { /** * The donation campaign ID received in the `/donationCampaigns` call. - * - * @return donationCampaignId The donation campaign ID received in the - * `/donationCampaigns` call. + * @return donationCampaignId The donation campaign ID received in the `/donationCampaigns` call. */ @JsonProperty(JSON_PROPERTY_DONATION_CAMPAIGN_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1008,8 +904,7 @@ public String getDonationCampaignId() { /** * The donation campaign ID received in the `/donationCampaigns` call. * - * @param donationCampaignId The donation campaign ID received in the - * `/donationCampaigns` call. + * @param donationCampaignId The donation campaign ID received in the `/donationCampaigns` call. */ @JsonProperty(JSON_PROPERTY_DONATION_CAMPAIGN_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1018,11 +913,9 @@ public void setDonationCampaignId(String donationCampaignId) { } /** - * PSP reference of the transaction from which the donation token is generated. Required when - * `donationToken` is provided. + * PSP reference of the transaction from which the donation token is generated. Required when `donationToken` is provided. * - * @param donationOriginalPspReference PSP reference of the transaction from which the donation - * token is generated. Required when `donationToken` is provided. + * @param donationOriginalPspReference PSP reference of the transaction from which the donation token is generated. Required when `donationToken` is provided. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest donationOriginalPspReference(String donationOriginalPspReference) { @@ -1031,11 +924,8 @@ public DonationPaymentRequest donationOriginalPspReference(String donationOrigin } /** - * PSP reference of the transaction from which the donation token is generated. Required when - * `donationToken` is provided. - * - * @return donationOriginalPspReference PSP reference of the transaction from which the donation - * token is generated. Required when `donationToken` is provided. + * PSP reference of the transaction from which the donation token is generated. Required when `donationToken` is provided. + * @return donationOriginalPspReference PSP reference of the transaction from which the donation token is generated. Required when `donationToken` is provided. */ @JsonProperty(JSON_PROPERTY_DONATION_ORIGINAL_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1044,11 +934,9 @@ public String getDonationOriginalPspReference() { } /** - * PSP reference of the transaction from which the donation token is generated. Required when - * `donationToken` is provided. + * PSP reference of the transaction from which the donation token is generated. Required when `donationToken` is provided. * - * @param donationOriginalPspReference PSP reference of the transaction from which the donation - * token is generated. Required when `donationToken` is provided. + * @param donationOriginalPspReference PSP reference of the transaction from which the donation token is generated. Required when `donationToken` is provided. */ @JsonProperty(JSON_PROPERTY_DONATION_ORIGINAL_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1069,7 +957,6 @@ public DonationPaymentRequest donationToken(String donationToken) { /** * Donation token received in the `/payments` call. - * * @return donationToken Donation token received in the `/payments` call. */ @JsonProperty(JSON_PROPERTY_DONATION_TOKEN) @@ -1090,13 +977,9 @@ public void setDonationToken(String donationToken) { } /** - * Price and product information about the purchased items, to be included on the invoice sent to - * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, - * Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. * - * @param lineItems Price and product information about the purchased items, to be included on the - * invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, - * Clearpay, Klarna, Ratepay, and Riverty. + * @param lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest lineItems(List lineItems) { @@ -1113,13 +996,8 @@ public DonationPaymentRequest addLineItemsItem(LineItem lineItemsItem) { } /** - * Price and product information about the purchased items, to be included on the invoice sent to - * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, - * Ratepay, and Riverty. - * - * @return lineItems Price and product information about the purchased items, to be included on - * the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, - * Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * @return lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1128,13 +1006,9 @@ public List getLineItems() { } /** - * Price and product information about the purchased items, to be included on the invoice sent to - * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, - * Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. * - * @param lineItems Price and product information about the purchased items, to be included on the - * invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, - * Clearpay, Klarna, Ratepay, and Riverty. + * @param lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1145,8 +1019,7 @@ public void setLineItems(List lineItems) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest merchantAccount(String merchantAccount) { @@ -1156,9 +1029,7 @@ public DonationPaymentRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * - * @return merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @return merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1169,8 +1040,7 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1181,7 +1051,7 @@ public void setMerchantAccount(String merchantAccount) { /** * merchantRiskIndicator * - * @param merchantRiskIndicator + * @param merchantRiskIndicator * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest merchantRiskIndicator(MerchantRiskIndicator merchantRiskIndicator) { @@ -1191,8 +1061,7 @@ public DonationPaymentRequest merchantRiskIndicator(MerchantRiskIndicator mercha /** * Get merchantRiskIndicator - * - * @return merchantRiskIndicator + * @return merchantRiskIndicator */ @JsonProperty(JSON_PROPERTY_MERCHANT_RISK_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1203,7 +1072,7 @@ public MerchantRiskIndicator getMerchantRiskIndicator() { /** * merchantRiskIndicator * - * @param merchantRiskIndicator + * @param merchantRiskIndicator */ @JsonProperty(JSON_PROPERTY_MERCHANT_RISK_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1212,15 +1081,9 @@ public void setMerchantRiskIndicator(MerchantRiskIndicator merchantRiskIndicator } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 - * key-value pairs per request. When exceeding, the \"177\" error occurs: - * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 - * characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: - * * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error - * occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * - * Maximum 80 characters per value. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest metadata(Map metadata) { @@ -1237,15 +1100,8 @@ public DonationPaymentRequest putMetadataItem(String key, String metadataItem) { } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 - * key-value pairs per request. When exceeding, the \"177\" error occurs: - * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 - * characters per value. - * - * @return metadata Metadata consists of entries, each of which includes a key and a value. - * Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" - * error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * - * Maximum 80 characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * @return metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1254,15 +1110,9 @@ public Map getMetadata() { } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 - * key-value pairs per request. When exceeding, the \"177\" error occurs: - * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 - * characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: - * * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error - * occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * - * Maximum 80 characters per value. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1273,7 +1123,7 @@ public void setMetadata(Map metadata) { /** * mpiData * - * @param mpiData + * @param mpiData * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest mpiData(ThreeDSecureData mpiData) { @@ -1283,8 +1133,7 @@ public DonationPaymentRequest mpiData(ThreeDSecureData mpiData) { /** * Get mpiData - * - * @return mpiData + * @return mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1295,7 +1144,7 @@ public ThreeDSecureData getMpiData() { /** * mpiData * - * @param mpiData + * @param mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1304,13 +1153,9 @@ public void setMpiData(ThreeDSecureData mpiData) { } /** - * > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this - * to the origin URL of the page where you are rendering the Drop-in/Component. Do not include - * subdirectories and a trailing slash. + * > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this to the origin URL of the page where you are rendering the Drop-in/Component. Do not include subdirectories and a trailing slash. * - * @param origin > Required for browser-based (`channel` **Web**) 3D Secure 2 - * transactions.Set this to the origin URL of the page where you are rendering the - * Drop-in/Component. Do not include subdirectories and a trailing slash. + * @param origin > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this to the origin URL of the page where you are rendering the Drop-in/Component. Do not include subdirectories and a trailing slash. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest origin(String origin) { @@ -1319,13 +1164,8 @@ public DonationPaymentRequest origin(String origin) { } /** - * > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this - * to the origin URL of the page where you are rendering the Drop-in/Component. Do not include - * subdirectories and a trailing slash. - * - * @return origin > Required for browser-based (`channel` **Web**) 3D Secure 2 - * transactions.Set this to the origin URL of the page where you are rendering the - * Drop-in/Component. Do not include subdirectories and a trailing slash. + * > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this to the origin URL of the page where you are rendering the Drop-in/Component. Do not include subdirectories and a trailing slash. + * @return origin > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this to the origin URL of the page where you are rendering the Drop-in/Component. Do not include subdirectories and a trailing slash. */ @JsonProperty(JSON_PROPERTY_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1334,13 +1174,9 @@ public String getOrigin() { } /** - * > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this - * to the origin URL of the page where you are rendering the Drop-in/Component. Do not include - * subdirectories and a trailing slash. + * > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this to the origin URL of the page where you are rendering the Drop-in/Component. Do not include subdirectories and a trailing slash. * - * @param origin > Required for browser-based (`channel` **Web**) 3D Secure 2 - * transactions.Set this to the origin URL of the page where you are rendering the - * Drop-in/Component. Do not include subdirectories and a trailing slash. + * @param origin > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this to the origin URL of the page where you are rendering the Drop-in/Component. Do not include subdirectories and a trailing slash. */ @JsonProperty(JSON_PROPERTY_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1351,7 +1187,7 @@ public void setOrigin(String origin) { /** * paymentMethod * - * @param paymentMethod + * @param paymentMethod * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest paymentMethod(DonationPaymentMethod paymentMethod) { @@ -1361,8 +1197,7 @@ public DonationPaymentRequest paymentMethod(DonationPaymentMethod paymentMethod) /** * Get paymentMethod - * - * @return paymentMethod + * @return paymentMethod */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1373,7 +1208,7 @@ public DonationPaymentMethod getPaymentMethod() { /** * paymentMethod * - * @param paymentMethod + * @param paymentMethod */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1382,55 +1217,19 @@ public void setPaymentMethod(DonationPaymentMethod paymentMethod) { } /** - * Defines a recurring payment type. Required when creating a token to store payment details or - * using stored payment details. Allowed values: * `Subscription` – A transaction for a - * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a - * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – - * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. - * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a - * token to store payment details or using stored payment details. Allowed values: * - * `Subscription` – A transaction for a fixed or variable amount, which follows a - * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card - * details are stored to enable one-click or omnichannel journeys, or simply to streamline the - * checkout process. Any subscription not following a fixed schedule is also considered a - * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file - * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have - * variable amounts. For example, automatic top-ups when a cardholder's balance drops - * below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ - public DonationPaymentRequest recurringProcessingModel( - RecurringProcessingModelEnum recurringProcessingModel) { + public DonationPaymentRequest recurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) { this.recurringProcessingModel = recurringProcessingModel; return this; } /** - * Defines a recurring payment type. Required when creating a token to store payment details or - * using stored payment details. Allowed values: * `Subscription` – A transaction for a - * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a - * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – - * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. - * - * @return recurringProcessingModel Defines a recurring payment type. Required when creating a - * token to store payment details or using stored payment details. Allowed values: * - * `Subscription` – A transaction for a fixed or variable amount, which follows a - * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card - * details are stored to enable one-click or omnichannel journeys, or simply to streamline the - * checkout process. Any subscription not following a fixed schedule is also considered a - * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file - * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have - * variable amounts. For example, automatic top-ups when a cardholder's balance drops - * below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * @return recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1439,26 +1238,9 @@ public RecurringProcessingModelEnum getRecurringProcessingModel() { } /** - * Defines a recurring payment type. Required when creating a token to store payment details or - * using stored payment details. Allowed values: * `Subscription` – A transaction for a - * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a - * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – - * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. - * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a - * token to store payment details or using stored payment details. Allowed values: * - * `Subscription` – A transaction for a fixed or variable amount, which follows a - * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card - * details are stored to enable one-click or omnichannel journeys, or simply to streamline the - * checkout process. Any subscription not following a fixed schedule is also considered a - * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file - * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have - * variable amounts. For example, automatic top-ups when a cardholder's balance drops - * below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1469,8 +1251,7 @@ public void setRecurringProcessingModel(RecurringProcessingModelEnum recurringPr /** * Specifies the redirect method (GET or POST) when redirecting back from the issuer. * - * @param redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting - * back from the issuer. + * @param redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting back from the issuer. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest redirectFromIssuerMethod(String redirectFromIssuerMethod) { @@ -1480,9 +1261,7 @@ public DonationPaymentRequest redirectFromIssuerMethod(String redirectFromIssuer /** * Specifies the redirect method (GET or POST) when redirecting back from the issuer. - * - * @return redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting - * back from the issuer. + * @return redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting back from the issuer. */ @JsonProperty(JSON_PROPERTY_REDIRECT_FROM_ISSUER_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1493,8 +1272,7 @@ public String getRedirectFromIssuerMethod() { /** * Specifies the redirect method (GET or POST) when redirecting back from the issuer. * - * @param redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting - * back from the issuer. + * @param redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting back from the issuer. */ @JsonProperty(JSON_PROPERTY_REDIRECT_FROM_ISSUER_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1505,8 +1283,7 @@ public void setRedirectFromIssuerMethod(String redirectFromIssuerMethod) { /** * Specifies the redirect method (GET or POST) when redirecting to the issuer. * - * @param redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to - * the issuer. + * @param redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to the issuer. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest redirectToIssuerMethod(String redirectToIssuerMethod) { @@ -1516,9 +1293,7 @@ public DonationPaymentRequest redirectToIssuerMethod(String redirectToIssuerMeth /** * Specifies the redirect method (GET or POST) when redirecting to the issuer. - * - * @return redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to - * the issuer. + * @return redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to the issuer. */ @JsonProperty(JSON_PROPERTY_REDIRECT_TO_ISSUER_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1529,8 +1304,7 @@ public String getRedirectToIssuerMethod() { /** * Specifies the redirect method (GET or POST) when redirecting to the issuer. * - * @param redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to - * the issuer. + * @param redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to the issuer. */ @JsonProperty(JSON_PROPERTY_REDIRECT_TO_ISSUER_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1539,15 +1313,9 @@ public void setRedirectToIssuerMethod(String redirectToIssuerMethod) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest reference(String reference) { @@ -1556,15 +1324,8 @@ public DonationPaymentRequest reference(String reference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. - * - * @return reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @return reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1573,15 +1334,9 @@ public String getReference() { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1590,36 +1345,9 @@ public void setReference(String reference) { } /** - * The URL to return to in case of a redirection. The format depends on the channel. * For web, - * include the protocol `http://` or `https://`. You can also include your own - * additional query parameters, for example, shopper ID or order reference number. Example: - * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the - * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple - * Developer - * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). - * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your - * app. You can configure it with an [intent - * filter](https://developer.android.com/guide/components/intents-filters). Example: - * `my-app://your.package.name` If the URL to return to includes non-ASCII characters, - * like spaces or special letters, URL encode the value. We strongly recommend that you use a - * maximum of 1024 characters. > The URL must not include personally identifiable information - * (PII), for example name or email address. - * - * @param returnUrl The URL to return to in case of a redirection. The format depends on the - * channel. * For web, include the protocol `http://` or `https://`. You - * can also include your own additional query parameters, for example, shopper ID or order - * reference number. Example: - * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use - * the custom URL for your app. To know more about setting custom URL schemes, refer to the - * [Apple Developer - * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). - * Example: `my-app://` * For Android, use a custom URL handled by an Activity on - * your app. You can configure it with an [intent - * filter](https://developer.android.com/guide/components/intents-filters). Example: - * `my-app://your.package.name` If the URL to return to includes non-ASCII - * characters, like spaces or special letters, URL encode the value. We strongly recommend - * that you use a maximum of 1024 characters. > The URL must not include personally - * identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. + * + * @param returnUrl The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest returnUrl(String returnUrl) { @@ -1628,36 +1356,8 @@ public DonationPaymentRequest returnUrl(String returnUrl) { } /** - * The URL to return to in case of a redirection. The format depends on the channel. * For web, - * include the protocol `http://` or `https://`. You can also include your own - * additional query parameters, for example, shopper ID or order reference number. Example: - * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the - * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple - * Developer - * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). - * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your - * app. You can configure it with an [intent - * filter](https://developer.android.com/guide/components/intents-filters). Example: - * `my-app://your.package.name` If the URL to return to includes non-ASCII characters, - * like spaces or special letters, URL encode the value. We strongly recommend that you use a - * maximum of 1024 characters. > The URL must not include personally identifiable information - * (PII), for example name or email address. - * - * @return returnUrl The URL to return to in case of a redirection. The format depends on the - * channel. * For web, include the protocol `http://` or `https://`. You - * can also include your own additional query parameters, for example, shopper ID or order - * reference number. Example: - * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use - * the custom URL for your app. To know more about setting custom URL schemes, refer to the - * [Apple Developer - * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). - * Example: `my-app://` * For Android, use a custom URL handled by an Activity on - * your app. You can configure it with an [intent - * filter](https://developer.android.com/guide/components/intents-filters). Example: - * `my-app://your.package.name` If the URL to return to includes non-ASCII - * characters, like spaces or special letters, URL encode the value. We strongly recommend - * that you use a maximum of 1024 characters. > The URL must not include personally - * identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. + * @return returnUrl The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. */ @JsonProperty(JSON_PROPERTY_RETURN_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1666,36 +1366,9 @@ public String getReturnUrl() { } /** - * The URL to return to in case of a redirection. The format depends on the channel. * For web, - * include the protocol `http://` or `https://`. You can also include your own - * additional query parameters, for example, shopper ID or order reference number. Example: - * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the - * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple - * Developer - * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). - * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your - * app. You can configure it with an [intent - * filter](https://developer.android.com/guide/components/intents-filters). Example: - * `my-app://your.package.name` If the URL to return to includes non-ASCII characters, - * like spaces or special letters, URL encode the value. We strongly recommend that you use a - * maximum of 1024 characters. > The URL must not include personally identifiable information - * (PII), for example name or email address. - * - * @param returnUrl The URL to return to in case of a redirection. The format depends on the - * channel. * For web, include the protocol `http://` or `https://`. You - * can also include your own additional query parameters, for example, shopper ID or order - * reference number. Example: - * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use - * the custom URL for your app. To know more about setting custom URL schemes, refer to the - * [Apple Developer - * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). - * Example: `my-app://` * For Android, use a custom URL handled by an Activity on - * your app. You can configure it with an [intent - * filter](https://developer.android.com/guide/components/intents-filters). Example: - * `my-app://your.package.name` If the URL to return to includes non-ASCII - * characters, like spaces or special letters, URL encode the value. We strongly recommend - * that you use a maximum of 1024 characters. > The URL must not include personally - * identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. + * + * @param returnUrl The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. */ @JsonProperty(JSON_PROPERTY_RETURN_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1704,12 +1377,9 @@ public void setReturnUrl(String returnUrl) { } /** - * The date and time until when the session remains valid, in [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 + * The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 * - * @param sessionValidity The date and time until when the session remains valid, in [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: - * 2020-07-18T15:42:40.428+01:00 + * @param sessionValidity The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest sessionValidity(String sessionValidity) { @@ -1718,12 +1388,8 @@ public DonationPaymentRequest sessionValidity(String sessionValidity) { } /** - * The date and time until when the session remains valid, in [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 - * - * @return sessionValidity The date and time until when the session remains valid, in [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: - * 2020-07-18T15:42:40.428+01:00 + * The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 + * @return sessionValidity The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 */ @JsonProperty(JSON_PROPERTY_SESSION_VALIDITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1732,12 +1398,9 @@ public String getSessionValidity() { } /** - * The date and time until when the session remains valid, in [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 + * The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 * - * @param sessionValidity The date and time until when the session remains valid, in [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: - * 2020-07-18T15:42:40.428+01:00 + * @param sessionValidity The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 */ @JsonProperty(JSON_PROPERTY_SESSION_VALIDITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1746,13 +1409,9 @@ public void setSessionValidity(String sessionValidity) { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in - * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 - * authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, - * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that - * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest shopperEmail(String shopperEmail) { @@ -1761,13 +1420,8 @@ public DonationPaymentRequest shopperEmail(String shopperEmail) { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in - * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 - * authentication if you did not include the `telephoneNumber`. - * - * @return shopperEmail The shopper's email address. We recommend that you provide this data, - * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that - * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @return shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1776,13 +1430,9 @@ public String getShopperEmail() { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in - * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 - * authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, - * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that - * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1791,22 +1441,9 @@ public void setShopperEmail(String shopperEmail) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks). > - * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and - * mobile integrations, if you did not include the `shopperEmail`. For native mobile - * integrations, the field is required to support cases where authentication is routed to the - * redirect flow. This field is also mandatory for some merchants depending on your business - * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it - * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks). > Required for Visa and JCB transactions that require 3D Secure - * 2 authentication for all web and mobile integrations, if you did not include the - * `shopperEmail`. For native mobile integrations, the field is required to support - * cases where authentication is routed to the redirect flow. This field is also mandatory for - * some merchants depending on your business model. For more information, [contact - * Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest shopperIP(String shopperIP) { @@ -1815,22 +1452,8 @@ public DonationPaymentRequest shopperIP(String shopperIP) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks). > - * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and - * mobile integrations, if you did not include the `shopperEmail`. For native mobile - * integrations, the field is required to support cases where authentication is routed to the - * redirect flow. This field is also mandatory for some merchants depending on your business - * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). - * - * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it - * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks). > Required for Visa and JCB transactions that require 3D Secure - * 2 authentication for all web and mobile integrations, if you did not include the - * `shopperEmail`. For native mobile integrations, the field is required to support - * cases where authentication is routed to the redirect flow. This field is also mandatory for - * some merchants depending on your business model. For more information, [contact - * Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1839,22 +1462,9 @@ public String getShopperIP() { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks). > - * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and - * mobile integrations, if you did not include the `shopperEmail`. For native mobile - * integrations, the field is required to support cases where authentication is routed to the - * redirect flow. This field is also mandatory for some merchants depending on your business - * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it - * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks). > Required for Visa and JCB transactions that require 3D Secure - * 2 authentication for all web and mobile integrations, if you did not include the - * `shopperEmail`. For native mobile integrations, the field is required to support - * cases where authentication is routed to the redirect flow. This field is also mandatory for - * some merchants depending on your business model. For more information, [contact - * Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1863,30 +1473,9 @@ public void setShopperIP(String shopperIP) { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorization rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorization (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. - * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorization rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorization (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorization rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorization (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorization rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorization (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest shopperInteraction(ShopperInteractionEnum shopperInteraction) { @@ -1895,30 +1484,8 @@ public DonationPaymentRequest shopperInteraction(ShopperInteractionEnum shopperI } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorization rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorization (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. - * - * @return shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorization rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorization (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorization rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorization (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * @return shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorization rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorization (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1927,30 +1494,9 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorization rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorization (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. - * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorization rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorization (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorization rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorization (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorization rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorization (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1959,11 +1505,9 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The combination of a language code and a country code to specify the language to be used in the payment. * - * @param shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest shopperLocale(String shopperLocale) { @@ -1972,11 +1516,8 @@ public DonationPaymentRequest shopperLocale(String shopperLocale) { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. - * - * @return shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the payment. + * @return shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1985,11 +1526,9 @@ public String getShopperLocale() { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The combination of a language code and a country code to specify the language to be used in the payment. * - * @param shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2000,7 +1539,7 @@ public void setShopperLocale(String shopperLocale) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest shopperName(Name shopperName) { @@ -2010,8 +1549,7 @@ public DonationPaymentRequest shopperName(Name shopperName) { /** * Get shopperName - * - * @return shopperName + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2022,7 +1560,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2031,14 +1569,9 @@ public void setShopperName(Name shopperName) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example - * user ID or account ID. Minimum length: 3 characters. > Your reference must not include - * personally identifiable information (PII), for example name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify - * this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your - * reference must not include personally identifiable information (PII), for example name or - * email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest shopperReference(String shopperReference) { @@ -2047,14 +1580,8 @@ public DonationPaymentRequest shopperReference(String shopperReference) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example - * user ID or account ID. Minimum length: 3 characters. > Your reference must not include - * personally identifiable information (PII), for example name or email address. - * - * @return shopperReference Required for recurring payments. Your reference to uniquely identify - * this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your - * reference must not include personally identifiable information (PII), for example name or - * email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. + * @return shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2063,14 +1590,9 @@ public String getShopperReference() { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example - * user ID or account ID. Minimum length: 3 characters. > Your reference must not include - * personally identifiable information (PII), for example name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify - * this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your - * reference must not include personally identifiable information (PII), for example name or - * email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2091,7 +1613,6 @@ public DonationPaymentRequest socialSecurityNumber(String socialSecurityNumber) /** * The shopper's social security number. - * * @return socialSecurityNumber The shopper's social security number. */ @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER) @@ -2112,17 +1633,9 @@ public void setSocialSecurityNumber(String socialSecurityNumber) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus - * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest telephoneNumber(String telephoneNumber) { @@ -2131,17 +1644,8 @@ public DonationPaymentRequest telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. - * - * @return telephoneNumber The shopper's telephone number. The phone number must include a - * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @return telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2150,17 +1654,9 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus - * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2171,7 +1667,7 @@ public void setTelephoneNumber(String telephoneNumber) { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest threeDS2RequestData(ThreeDS2RequestFields threeDS2RequestData) { @@ -2181,8 +1677,7 @@ public DonationPaymentRequest threeDS2RequestData(ThreeDS2RequestFields threeDS2 /** * Get threeDS2RequestData - * - * @return threeDS2RequestData + * @return threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2193,7 +1688,7 @@ public ThreeDS2RequestFields getThreeDS2RequestData() { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2202,41 +1697,26 @@ public void setThreeDS2RequestData(ThreeDS2RequestFields threeDS2RequestData) { } /** - * Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. * - * @param threeDSAuthenticationOnly Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. + * @param threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` - * instead. + * + * @deprecated since Adyen Checkout API v69 + * Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. public DonationPaymentRequest threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { this.threeDSAuthenticationOnly = threeDSAuthenticationOnly; return this; } /** - * Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. - * - * @return threeDSAuthenticationOnly Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. - * @deprecated // deprecated since Adyen Checkout API v69: Use - * `authenticationData.authenticationOnly` instead. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * @return threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * @deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getThreeDSAuthenticationOnly() { @@ -2244,27 +1724,23 @@ public Boolean getThreeDSAuthenticationOnly() { } /** - * Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * + * @param threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. * - * @param threeDSAuthenticationOnly Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. - * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` - * instead. + * @deprecated since Adyen Checkout API v69 + * Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { this.threeDSAuthenticationOnly = threeDSAuthenticationOnly; } - /** Return true if this DonationPaymentRequest object is equal to o. */ + /** + * Return true if this DonationPaymentRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -2274,100 +1750,53 @@ public boolean equals(Object o) { return false; } DonationPaymentRequest donationPaymentRequest = (DonationPaymentRequest) o; - return Objects.equals(this.accountInfo, donationPaymentRequest.accountInfo) - && Objects.equals(this.additionalData, donationPaymentRequest.additionalData) - && Objects.equals(this.amount, donationPaymentRequest.amount) - && Objects.equals(this.applicationInfo, donationPaymentRequest.applicationInfo) - && Objects.equals(this.authenticationData, donationPaymentRequest.authenticationData) - && Objects.equals(this.billingAddress, donationPaymentRequest.billingAddress) - && Objects.equals(this.browserInfo, donationPaymentRequest.browserInfo) - && Objects.equals(this.channel, donationPaymentRequest.channel) - && Objects.equals(this.checkoutAttemptId, donationPaymentRequest.checkoutAttemptId) - && Objects.equals(this.conversionId, donationPaymentRequest.conversionId) - && Objects.equals(this.countryCode, donationPaymentRequest.countryCode) - && Objects.equals(this.dateOfBirth, donationPaymentRequest.dateOfBirth) - && Objects.equals(this.deliverAt, donationPaymentRequest.deliverAt) - && Objects.equals(this.deliveryAddress, donationPaymentRequest.deliveryAddress) - && Objects.equals(this.deviceFingerprint, donationPaymentRequest.deviceFingerprint) - && Objects.equals(this.donationAccount, donationPaymentRequest.donationAccount) - && Objects.equals(this.donationCampaignId, donationPaymentRequest.donationCampaignId) - && Objects.equals( - this.donationOriginalPspReference, donationPaymentRequest.donationOriginalPspReference) - && Objects.equals(this.donationToken, donationPaymentRequest.donationToken) - && Objects.equals(this.lineItems, donationPaymentRequest.lineItems) - && Objects.equals(this.merchantAccount, donationPaymentRequest.merchantAccount) - && Objects.equals(this.merchantRiskIndicator, donationPaymentRequest.merchantRiskIndicator) - && Objects.equals(this.metadata, donationPaymentRequest.metadata) - && Objects.equals(this.mpiData, donationPaymentRequest.mpiData) - && Objects.equals(this.origin, donationPaymentRequest.origin) - && Objects.equals(this.paymentMethod, donationPaymentRequest.paymentMethod) - && Objects.equals( - this.recurringProcessingModel, donationPaymentRequest.recurringProcessingModel) - && Objects.equals( - this.redirectFromIssuerMethod, donationPaymentRequest.redirectFromIssuerMethod) - && Objects.equals( - this.redirectToIssuerMethod, donationPaymentRequest.redirectToIssuerMethod) - && Objects.equals(this.reference, donationPaymentRequest.reference) - && Objects.equals(this.returnUrl, donationPaymentRequest.returnUrl) - && Objects.equals(this.sessionValidity, donationPaymentRequest.sessionValidity) - && Objects.equals(this.shopperEmail, donationPaymentRequest.shopperEmail) - && Objects.equals(this.shopperIP, donationPaymentRequest.shopperIP) - && Objects.equals(this.shopperInteraction, donationPaymentRequest.shopperInteraction) - && Objects.equals(this.shopperLocale, donationPaymentRequest.shopperLocale) - && Objects.equals(this.shopperName, donationPaymentRequest.shopperName) - && Objects.equals(this.shopperReference, donationPaymentRequest.shopperReference) - && Objects.equals(this.socialSecurityNumber, donationPaymentRequest.socialSecurityNumber) - && Objects.equals(this.telephoneNumber, donationPaymentRequest.telephoneNumber) - && Objects.equals(this.threeDS2RequestData, donationPaymentRequest.threeDS2RequestData) - && Objects.equals( - this.threeDSAuthenticationOnly, donationPaymentRequest.threeDSAuthenticationOnly); + return Objects.equals(this.accountInfo, donationPaymentRequest.accountInfo) && + Objects.equals(this.additionalData, donationPaymentRequest.additionalData) && + Objects.equals(this.amount, donationPaymentRequest.amount) && + Objects.equals(this.applicationInfo, donationPaymentRequest.applicationInfo) && + Objects.equals(this.authenticationData, donationPaymentRequest.authenticationData) && + Objects.equals(this.billingAddress, donationPaymentRequest.billingAddress) && + Objects.equals(this.browserInfo, donationPaymentRequest.browserInfo) && + Objects.equals(this.channel, donationPaymentRequest.channel) && + Objects.equals(this.checkoutAttemptId, donationPaymentRequest.checkoutAttemptId) && + Objects.equals(this.conversionId, donationPaymentRequest.conversionId) && + Objects.equals(this.countryCode, donationPaymentRequest.countryCode) && + Objects.equals(this.dateOfBirth, donationPaymentRequest.dateOfBirth) && + Objects.equals(this.deliverAt, donationPaymentRequest.deliverAt) && + Objects.equals(this.deliveryAddress, donationPaymentRequest.deliveryAddress) && + Objects.equals(this.deviceFingerprint, donationPaymentRequest.deviceFingerprint) && + Objects.equals(this.donationAccount, donationPaymentRequest.donationAccount) && + Objects.equals(this.donationCampaignId, donationPaymentRequest.donationCampaignId) && + Objects.equals(this.donationOriginalPspReference, donationPaymentRequest.donationOriginalPspReference) && + Objects.equals(this.donationToken, donationPaymentRequest.donationToken) && + Objects.equals(this.lineItems, donationPaymentRequest.lineItems) && + Objects.equals(this.merchantAccount, donationPaymentRequest.merchantAccount) && + Objects.equals(this.merchantRiskIndicator, donationPaymentRequest.merchantRiskIndicator) && + Objects.equals(this.metadata, donationPaymentRequest.metadata) && + Objects.equals(this.mpiData, donationPaymentRequest.mpiData) && + Objects.equals(this.origin, donationPaymentRequest.origin) && + Objects.equals(this.paymentMethod, donationPaymentRequest.paymentMethod) && + Objects.equals(this.recurringProcessingModel, donationPaymentRequest.recurringProcessingModel) && + Objects.equals(this.redirectFromIssuerMethod, donationPaymentRequest.redirectFromIssuerMethod) && + Objects.equals(this.redirectToIssuerMethod, donationPaymentRequest.redirectToIssuerMethod) && + Objects.equals(this.reference, donationPaymentRequest.reference) && + Objects.equals(this.returnUrl, donationPaymentRequest.returnUrl) && + Objects.equals(this.sessionValidity, donationPaymentRequest.sessionValidity) && + Objects.equals(this.shopperEmail, donationPaymentRequest.shopperEmail) && + Objects.equals(this.shopperIP, donationPaymentRequest.shopperIP) && + Objects.equals(this.shopperInteraction, donationPaymentRequest.shopperInteraction) && + Objects.equals(this.shopperLocale, donationPaymentRequest.shopperLocale) && + Objects.equals(this.shopperName, donationPaymentRequest.shopperName) && + Objects.equals(this.shopperReference, donationPaymentRequest.shopperReference) && + Objects.equals(this.socialSecurityNumber, donationPaymentRequest.socialSecurityNumber) && + Objects.equals(this.telephoneNumber, donationPaymentRequest.telephoneNumber) && + Objects.equals(this.threeDS2RequestData, donationPaymentRequest.threeDS2RequestData) && + Objects.equals(this.threeDSAuthenticationOnly, donationPaymentRequest.threeDSAuthenticationOnly); } @Override public int hashCode() { - return Objects.hash( - accountInfo, - additionalData, - amount, - applicationInfo, - authenticationData, - billingAddress, - browserInfo, - channel, - checkoutAttemptId, - conversionId, - countryCode, - dateOfBirth, - deliverAt, - deliveryAddress, - deviceFingerprint, - donationAccount, - donationCampaignId, - donationOriginalPspReference, - donationToken, - lineItems, - merchantAccount, - merchantRiskIndicator, - metadata, - mpiData, - origin, - paymentMethod, - recurringProcessingModel, - redirectFromIssuerMethod, - redirectToIssuerMethod, - reference, - returnUrl, - sessionValidity, - shopperEmail, - shopperIP, - shopperInteraction, - shopperLocale, - shopperName, - shopperReference, - socialSecurityNumber, - telephoneNumber, - threeDS2RequestData, - threeDSAuthenticationOnly); + return Objects.hash(accountInfo, additionalData, amount, applicationInfo, authenticationData, billingAddress, browserInfo, channel, checkoutAttemptId, conversionId, countryCode, dateOfBirth, deliverAt, deliveryAddress, deviceFingerprint, donationAccount, donationCampaignId, donationOriginalPspReference, donationToken, lineItems, merchantAccount, merchantRiskIndicator, metadata, mpiData, origin, paymentMethod, recurringProcessingModel, redirectFromIssuerMethod, redirectToIssuerMethod, reference, returnUrl, sessionValidity, shopperEmail, shopperIP, shopperInteraction, shopperLocale, shopperName, shopperReference, socialSecurityNumber, telephoneNumber, threeDS2RequestData, threeDSAuthenticationOnly); } @Override @@ -2391,28 +1820,18 @@ public String toString() { sb.append(" deviceFingerprint: ").append(toIndentedString(deviceFingerprint)).append("\n"); sb.append(" donationAccount: ").append(toIndentedString(donationAccount)).append("\n"); sb.append(" donationCampaignId: ").append(toIndentedString(donationCampaignId)).append("\n"); - sb.append(" donationOriginalPspReference: ") - .append(toIndentedString(donationOriginalPspReference)) - .append("\n"); + sb.append(" donationOriginalPspReference: ").append(toIndentedString(donationOriginalPspReference)).append("\n"); sb.append(" donationToken: ").append(toIndentedString(donationToken)).append("\n"); sb.append(" lineItems: ").append(toIndentedString(lineItems)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" merchantRiskIndicator: ") - .append(toIndentedString(merchantRiskIndicator)) - .append("\n"); + sb.append(" merchantRiskIndicator: ").append(toIndentedString(merchantRiskIndicator)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" mpiData: ").append(toIndentedString(mpiData)).append("\n"); sb.append(" origin: ").append(toIndentedString(origin)).append("\n"); sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n"); - sb.append(" recurringProcessingModel: ") - .append(toIndentedString(recurringProcessingModel)) - .append("\n"); - sb.append(" redirectFromIssuerMethod: ") - .append(toIndentedString(redirectFromIssuerMethod)) - .append("\n"); - sb.append(" redirectToIssuerMethod: ") - .append(toIndentedString(redirectToIssuerMethod)) - .append("\n"); + sb.append(" recurringProcessingModel: ").append(toIndentedString(recurringProcessingModel)).append("\n"); + sb.append(" redirectFromIssuerMethod: ").append(toIndentedString(redirectFromIssuerMethod)).append("\n"); + sb.append(" redirectToIssuerMethod: ").append(toIndentedString(redirectToIssuerMethod)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" returnUrl: ").append(toIndentedString(returnUrl)).append("\n"); sb.append(" sessionValidity: ").append(toIndentedString(sessionValidity)).append("\n"); @@ -2422,22 +1841,17 @@ public String toString() { sb.append(" shopperLocale: ").append(toIndentedString(shopperLocale)).append("\n"); sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); - sb.append(" socialSecurityNumber: ") - .append(toIndentedString(socialSecurityNumber)) - .append("\n"); + sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); - sb.append(" threeDS2RequestData: ") - .append(toIndentedString(threeDS2RequestData)) - .append("\n"); - sb.append(" threeDSAuthenticationOnly: ") - .append(toIndentedString(threeDSAuthenticationOnly)) - .append("\n"); + sb.append(" threeDS2RequestData: ").append(toIndentedString(threeDS2RequestData)).append("\n"); + sb.append(" threeDSAuthenticationOnly: ").append(toIndentedString(threeDSAuthenticationOnly)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -2446,23 +1860,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DonationPaymentRequest given an JSON string * * @param jsonString JSON string * @return An instance of DonationPaymentRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DonationPaymentRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to DonationPaymentRequest */ public static DonationPaymentRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DonationPaymentRequest.class); } - - /** - * Convert an instance of DonationPaymentRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DonationPaymentRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/DonationPaymentResponse.java b/src/main/java/com/adyen/model/checkout/DonationPaymentResponse.java index 880346c4f..61fa290e5 100644 --- a/src/main/java/com/adyen/model/checkout/DonationPaymentResponse.java +++ b/src/main/java/com/adyen/model/checkout/DonationPaymentResponse.java @@ -2,26 +2,33 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Amount; +import com.adyen.model.checkout.PaymentResponse; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** DonationPaymentResponse */ + +/** + * DonationPaymentResponse + */ @JsonPropertyOrder({ DonationPaymentResponse.JSON_PROPERTY_AMOUNT, DonationPaymentResponse.JSON_PROPERTY_DONATION_ACCOUNT, @@ -31,6 +38,7 @@ DonationPaymentResponse.JSON_PROPERTY_REFERENCE, DonationPaymentResponse.JSON_PROPERTY_STATUS }) + public class DonationPaymentResponse { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -51,10 +59,10 @@ public class DonationPaymentResponse { private String reference; /** - * The status of the donation transaction. Possible values: * **completed** * **pending** * - * **refused** + * The status of the donation transaction. Possible values: * **completed** * **pending** * **refused** */ public enum StatusEnum { + COMPLETED(String.valueOf("completed")), PENDING(String.valueOf("pending")), @@ -66,7 +74,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -87,11 +95,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -99,12 +103,13 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; - public DonationPaymentResponse() {} + public DonationPaymentResponse() { + } /** * amount * - * @param amount + * @param amount * @return the current {@code DonationPaymentResponse} instance, allowing for method chaining */ public DonationPaymentResponse amount(Amount amount) { @@ -114,8 +119,7 @@ public DonationPaymentResponse amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,7 +130,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,13 +139,9 @@ public void setAmount(Amount amount) { } /** - * The Adyen account name of your charity. We will provide you with this account name once your - * chosen charity has been - * [onboarded](https://docs.adyen.com/online-payments/donations#onboarding). + * The Adyen account name of your charity. We will provide you with this account name once your chosen charity has been [onboarded](https://docs.adyen.com/online-payments/donations#onboarding). * - * @param donationAccount The Adyen account name of your charity. We will provide you with this - * account name once your chosen charity has been - * [onboarded](https://docs.adyen.com/online-payments/donations#onboarding). + * @param donationAccount The Adyen account name of your charity. We will provide you with this account name once your chosen charity has been [onboarded](https://docs.adyen.com/online-payments/donations#onboarding). * @return the current {@code DonationPaymentResponse} instance, allowing for method chaining */ public DonationPaymentResponse donationAccount(String donationAccount) { @@ -150,13 +150,8 @@ public DonationPaymentResponse donationAccount(String donationAccount) { } /** - * The Adyen account name of your charity. We will provide you with this account name once your - * chosen charity has been - * [onboarded](https://docs.adyen.com/online-payments/donations#onboarding). - * - * @return donationAccount The Adyen account name of your charity. We will provide you with this - * account name once your chosen charity has been - * [onboarded](https://docs.adyen.com/online-payments/donations#onboarding). + * The Adyen account name of your charity. We will provide you with this account name once your chosen charity has been [onboarded](https://docs.adyen.com/online-payments/donations#onboarding). + * @return donationAccount The Adyen account name of your charity. We will provide you with this account name once your chosen charity has been [onboarded](https://docs.adyen.com/online-payments/donations#onboarding). */ @JsonProperty(JSON_PROPERTY_DONATION_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -165,13 +160,9 @@ public String getDonationAccount() { } /** - * The Adyen account name of your charity. We will provide you with this account name once your - * chosen charity has been - * [onboarded](https://docs.adyen.com/online-payments/donations#onboarding). + * The Adyen account name of your charity. We will provide you with this account name once your chosen charity has been [onboarded](https://docs.adyen.com/online-payments/donations#onboarding). * - * @param donationAccount The Adyen account name of your charity. We will provide you with this - * account name once your chosen charity has been - * [onboarded](https://docs.adyen.com/online-payments/donations#onboarding). + * @param donationAccount The Adyen account name of your charity. We will provide you with this account name once your chosen charity has been [onboarded](https://docs.adyen.com/online-payments/donations#onboarding). */ @JsonProperty(JSON_PROPERTY_DONATION_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,7 +183,6 @@ public DonationPaymentResponse id(String id) { /** * Your unique resource identifier. - * * @return id Your unique resource identifier. */ @JsonProperty(JSON_PROPERTY_ID) @@ -215,8 +205,7 @@ public void setId(String id) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. * @return the current {@code DonationPaymentResponse} instance, allowing for method chaining */ public DonationPaymentResponse merchantAccount(String merchantAccount) { @@ -226,9 +215,7 @@ public DonationPaymentResponse merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * - * @return merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @return merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -239,8 +226,7 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -251,7 +237,7 @@ public void setMerchantAccount(String merchantAccount) { /** * payment * - * @param payment + * @param payment * @return the current {@code DonationPaymentResponse} instance, allowing for method chaining */ public DonationPaymentResponse payment(PaymentResponse payment) { @@ -261,8 +247,7 @@ public DonationPaymentResponse payment(PaymentResponse payment) { /** * Get payment - * - * @return payment + * @return payment */ @JsonProperty(JSON_PROPERTY_PAYMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -273,7 +258,7 @@ public PaymentResponse getPayment() { /** * payment * - * @param payment + * @param payment */ @JsonProperty(JSON_PROPERTY_PAYMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -282,15 +267,9 @@ public void setPayment(PaymentResponse payment) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * @return the current {@code DonationPaymentResponse} instance, allowing for method chaining */ public DonationPaymentResponse reference(String reference) { @@ -299,15 +278,8 @@ public DonationPaymentResponse reference(String reference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. - * - * @return reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @return reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -316,15 +288,9 @@ public String getReference() { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -333,11 +299,9 @@ public void setReference(String reference) { } /** - * The status of the donation transaction. Possible values: * **completed** * **pending** * - * **refused** + * The status of the donation transaction. Possible values: * **completed** * **pending** * **refused** * - * @param status The status of the donation transaction. Possible values: * **completed** * - * **pending** * **refused** + * @param status The status of the donation transaction. Possible values: * **completed** * **pending** * **refused** * @return the current {@code DonationPaymentResponse} instance, allowing for method chaining */ public DonationPaymentResponse status(StatusEnum status) { @@ -346,11 +310,8 @@ public DonationPaymentResponse status(StatusEnum status) { } /** - * The status of the donation transaction. Possible values: * **completed** * **pending** * - * **refused** - * - * @return status The status of the donation transaction. Possible values: * **completed** * - * **pending** * **refused** + * The status of the donation transaction. Possible values: * **completed** * **pending** * **refused** + * @return status The status of the donation transaction. Possible values: * **completed** * **pending** * **refused** */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -359,11 +320,9 @@ public StatusEnum getStatus() { } /** - * The status of the donation transaction. Possible values: * **completed** * **pending** * - * **refused** + * The status of the donation transaction. Possible values: * **completed** * **pending** * **refused** * - * @param status The status of the donation transaction. Possible values: * **completed** * - * **pending** * **refused** + * @param status The status of the donation transaction. Possible values: * **completed** * **pending** * **refused** */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -371,7 +330,9 @@ public void setStatus(StatusEnum status) { this.status = status; } - /** Return true if this DonationPaymentResponse object is equal to o. */ + /** + * Return true if this DonationPaymentResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -381,13 +342,13 @@ public boolean equals(Object o) { return false; } DonationPaymentResponse donationPaymentResponse = (DonationPaymentResponse) o; - return Objects.equals(this.amount, donationPaymentResponse.amount) - && Objects.equals(this.donationAccount, donationPaymentResponse.donationAccount) - && Objects.equals(this.id, donationPaymentResponse.id) - && Objects.equals(this.merchantAccount, donationPaymentResponse.merchantAccount) - && Objects.equals(this.payment, donationPaymentResponse.payment) - && Objects.equals(this.reference, donationPaymentResponse.reference) - && Objects.equals(this.status, donationPaymentResponse.status); + return Objects.equals(this.amount, donationPaymentResponse.amount) && + Objects.equals(this.donationAccount, donationPaymentResponse.donationAccount) && + Objects.equals(this.id, donationPaymentResponse.id) && + Objects.equals(this.merchantAccount, donationPaymentResponse.merchantAccount) && + Objects.equals(this.payment, donationPaymentResponse.payment) && + Objects.equals(this.reference, donationPaymentResponse.reference) && + Objects.equals(this.status, donationPaymentResponse.status); } @Override @@ -411,7 +372,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -420,23 +382,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DonationPaymentResponse given an JSON string * * @param jsonString JSON string * @return An instance of DonationPaymentResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DonationPaymentResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to DonationPaymentResponse */ public static DonationPaymentResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DonationPaymentResponse.class); } - - /** - * Convert an instance of DonationPaymentResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DonationPaymentResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/DragonpayDetails.java b/src/main/java/com/adyen/model/checkout/DragonpayDetails.java index 932c8211a..049460c0d 100644 --- a/src/main/java/com/adyen/model/checkout/DragonpayDetails.java +++ b/src/main/java/com/adyen/model/checkout/DragonpayDetails.java @@ -2,32 +2,38 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** DragonpayDetails */ + +/** + * DragonpayDetails + */ @JsonPropertyOrder({ DragonpayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, DragonpayDetails.JSON_PROPERTY_ISSUER, DragonpayDetails.JSON_PROPERTY_SHOPPER_EMAIL, DragonpayDetails.JSON_PROPERTY_TYPE }) + public class DragonpayDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -38,8 +44,11 @@ public class DragonpayDetails { public static final String JSON_PROPERTY_SHOPPER_EMAIL = "shopperEmail"; private String shopperEmail; - /** **dragonpay** */ + /** + * **dragonpay** + */ public enum TypeEnum { + DRAGONPAY_EBANKING(String.valueOf("dragonpay_ebanking")), DRAGONPAY_OTC_BANKING(String.valueOf("dragonpay_otc_banking")), @@ -53,7 +62,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -74,11 +83,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -86,7 +91,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public DragonpayDetails() {} + public DragonpayDetails() { + } /** * The checkout attempt identifier. @@ -101,7 +107,6 @@ public DragonpayDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -122,11 +127,9 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * The Dragonpay issuer value of the shopper's selected bank. Set this to an **id** of a - * Dragonpay issuer to preselect it. + * The Dragonpay issuer value of the shopper's selected bank. Set this to an **id** of a Dragonpay issuer to preselect it. * - * @param issuer The Dragonpay issuer value of the shopper's selected bank. Set this to an - * **id** of a Dragonpay issuer to preselect it. + * @param issuer The Dragonpay issuer value of the shopper's selected bank. Set this to an **id** of a Dragonpay issuer to preselect it. * @return the current {@code DragonpayDetails} instance, allowing for method chaining */ public DragonpayDetails issuer(String issuer) { @@ -135,11 +138,8 @@ public DragonpayDetails issuer(String issuer) { } /** - * The Dragonpay issuer value of the shopper's selected bank. Set this to an **id** of a - * Dragonpay issuer to preselect it. - * - * @return issuer The Dragonpay issuer value of the shopper's selected bank. Set this to an - * **id** of a Dragonpay issuer to preselect it. + * The Dragonpay issuer value of the shopper's selected bank. Set this to an **id** of a Dragonpay issuer to preselect it. + * @return issuer The Dragonpay issuer value of the shopper's selected bank. Set this to an **id** of a Dragonpay issuer to preselect it. */ @JsonProperty(JSON_PROPERTY_ISSUER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,11 +148,9 @@ public String getIssuer() { } /** - * The Dragonpay issuer value of the shopper's selected bank. Set this to an **id** of a - * Dragonpay issuer to preselect it. + * The Dragonpay issuer value of the shopper's selected bank. Set this to an **id** of a Dragonpay issuer to preselect it. * - * @param issuer The Dragonpay issuer value of the shopper's selected bank. Set this to an - * **id** of a Dragonpay issuer to preselect it. + * @param issuer The Dragonpay issuer value of the shopper's selected bank. Set this to an **id** of a Dragonpay issuer to preselect it. */ @JsonProperty(JSON_PROPERTY_ISSUER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,7 +171,6 @@ public DragonpayDetails shopperEmail(String shopperEmail) { /** * The shopper’s email address. - * * @return shopperEmail The shopper’s email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -206,7 +203,6 @@ public DragonpayDetails type(TypeEnum type) { /** * **dragonpay** - * * @return type **dragonpay** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -226,7 +222,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this DragonpayDetails object is equal to o. */ + /** + * Return true if this DragonpayDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -236,10 +234,10 @@ public boolean equals(Object o) { return false; } DragonpayDetails dragonpayDetails = (DragonpayDetails) o; - return Objects.equals(this.checkoutAttemptId, dragonpayDetails.checkoutAttemptId) - && Objects.equals(this.issuer, dragonpayDetails.issuer) - && Objects.equals(this.shopperEmail, dragonpayDetails.shopperEmail) - && Objects.equals(this.type, dragonpayDetails.type); + return Objects.equals(this.checkoutAttemptId, dragonpayDetails.checkoutAttemptId) && + Objects.equals(this.issuer, dragonpayDetails.issuer) && + Objects.equals(this.shopperEmail, dragonpayDetails.shopperEmail) && + Objects.equals(this.type, dragonpayDetails.type); } @Override @@ -260,7 +258,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -269,7 +268,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DragonpayDetails given an JSON string * * @param jsonString JSON string @@ -279,12 +278,11 @@ private String toIndentedString(Object o) { public static DragonpayDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DragonpayDetails.class); } - - /** - * Convert an instance of DragonpayDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DragonpayDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/EBankingFinlandDetails.java b/src/main/java/com/adyen/model/checkout/EBankingFinlandDetails.java index e4fd77e2d..5d523ac56 100644 --- a/src/main/java/com/adyen/model/checkout/EBankingFinlandDetails.java +++ b/src/main/java/com/adyen/model/checkout/EBankingFinlandDetails.java @@ -2,31 +2,37 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** EBankingFinlandDetails */ + +/** + * EBankingFinlandDetails + */ @JsonPropertyOrder({ EBankingFinlandDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, EBankingFinlandDetails.JSON_PROPERTY_ISSUER, EBankingFinlandDetails.JSON_PROPERTY_TYPE }) + public class EBankingFinlandDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -34,8 +40,11 @@ public class EBankingFinlandDetails { public static final String JSON_PROPERTY_ISSUER = "issuer"; private String issuer; - /** **ebanking_FI** */ + /** + * **ebanking_FI** + */ public enum TypeEnum { + EBANKING_FI(String.valueOf("ebanking_FI")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -43,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -76,7 +81,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public EBankingFinlandDetails() {} + public EBankingFinlandDetails() { + } /** * The checkout attempt identifier. @@ -91,7 +97,6 @@ public EBankingFinlandDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -124,7 +129,6 @@ public EBankingFinlandDetails issuer(String issuer) { /** * The Ebanking Finland issuer value of the shopper's selected bank. - * * @return issuer The Ebanking Finland issuer value of the shopper's selected bank. */ @JsonProperty(JSON_PROPERTY_ISSUER) @@ -157,7 +161,6 @@ public EBankingFinlandDetails type(TypeEnum type) { /** * **ebanking_FI** - * * @return type **ebanking_FI** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -177,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this EBankingFinlandDetails object is equal to o. */ + /** + * Return true if this EBankingFinlandDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -187,9 +192,9 @@ public boolean equals(Object o) { return false; } EBankingFinlandDetails ebankingFinlandDetails = (EBankingFinlandDetails) o; - return Objects.equals(this.checkoutAttemptId, ebankingFinlandDetails.checkoutAttemptId) - && Objects.equals(this.issuer, ebankingFinlandDetails.issuer) - && Objects.equals(this.type, ebankingFinlandDetails.type); + return Objects.equals(this.checkoutAttemptId, ebankingFinlandDetails.checkoutAttemptId) && + Objects.equals(this.issuer, ebankingFinlandDetails.issuer) && + Objects.equals(this.type, ebankingFinlandDetails.type); } @Override @@ -209,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -218,23 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of EBankingFinlandDetails given an JSON string * * @param jsonString JSON string * @return An instance of EBankingFinlandDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * EBankingFinlandDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to EBankingFinlandDetails */ public static EBankingFinlandDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, EBankingFinlandDetails.class); } - - /** - * Convert an instance of EBankingFinlandDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of EBankingFinlandDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/EcontextVoucherDetails.java b/src/main/java/com/adyen/model/checkout/EcontextVoucherDetails.java index d8918958f..a69a35550 100644 --- a/src/main/java/com/adyen/model/checkout/EcontextVoucherDetails.java +++ b/src/main/java/com/adyen/model/checkout/EcontextVoucherDetails.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** EcontextVoucherDetails */ +/** + * EcontextVoucherDetails + */ @JsonPropertyOrder({ EcontextVoucherDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, EcontextVoucherDetails.JSON_PROPERTY_FIRST_NAME, @@ -30,6 +35,7 @@ EcontextVoucherDetails.JSON_PROPERTY_TELEPHONE_NUMBER, EcontextVoucherDetails.JSON_PROPERTY_TYPE }) + public class EcontextVoucherDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -46,8 +52,11 @@ public class EcontextVoucherDetails { public static final String JSON_PROPERTY_TELEPHONE_NUMBER = "telephoneNumber"; private String telephoneNumber; - /** **econtextvoucher** */ + /** + * **econtextvoucher** + */ public enum TypeEnum { + ECONTEXT_SEVEN_ELEVEN(String.valueOf("econtext_seven_eleven")), ECONTEXT_ONLINE(String.valueOf("econtext_online")), @@ -63,7 +72,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -84,11 +93,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -96,7 +101,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public EcontextVoucherDetails() {} + public EcontextVoucherDetails() { + } /** * The checkout attempt identifier. @@ -111,7 +117,6 @@ public EcontextVoucherDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -144,7 +149,6 @@ public EcontextVoucherDetails firstName(String firstName) { /** * The shopper's first name. - * * @return firstName The shopper's first name. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @@ -177,7 +181,6 @@ public EcontextVoucherDetails lastName(String lastName) { /** * The shopper's last name. - * * @return lastName The shopper's last name. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @@ -210,7 +213,6 @@ public EcontextVoucherDetails shopperEmail(String shopperEmail) { /** * The shopper's email. - * * @return shopperEmail The shopper's email. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -231,13 +233,9 @@ public void setShopperEmail(String shopperEmail) { } /** - * The shopper's contact number. It must have an international number format, for example - * **+31 20 779 1846**. Formats like **+31 (0)20 779 1846** or **0031 20 779 1846** are not - * accepted. + * The shopper's contact number. It must have an international number format, for example **+31 20 779 1846**. Formats like **+31 (0)20 779 1846** or **0031 20 779 1846** are not accepted. * - * @param telephoneNumber The shopper's contact number. It must have an international number - * format, for example **+31 20 779 1846**. Formats like **+31 (0)20 779 1846** or **0031 20 - * 779 1846** are not accepted. + * @param telephoneNumber The shopper's contact number. It must have an international number format, for example **+31 20 779 1846**. Formats like **+31 (0)20 779 1846** or **0031 20 779 1846** are not accepted. * @return the current {@code EcontextVoucherDetails} instance, allowing for method chaining */ public EcontextVoucherDetails telephoneNumber(String telephoneNumber) { @@ -246,13 +244,8 @@ public EcontextVoucherDetails telephoneNumber(String telephoneNumber) { } /** - * The shopper's contact number. It must have an international number format, for example - * **+31 20 779 1846**. Formats like **+31 (0)20 779 1846** or **0031 20 779 1846** are not - * accepted. - * - * @return telephoneNumber The shopper's contact number. It must have an international number - * format, for example **+31 20 779 1846**. Formats like **+31 (0)20 779 1846** or **0031 20 - * 779 1846** are not accepted. + * The shopper's contact number. It must have an international number format, for example **+31 20 779 1846**. Formats like **+31 (0)20 779 1846** or **0031 20 779 1846** are not accepted. + * @return telephoneNumber The shopper's contact number. It must have an international number format, for example **+31 20 779 1846**. Formats like **+31 (0)20 779 1846** or **0031 20 779 1846** are not accepted. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -261,13 +254,9 @@ public String getTelephoneNumber() { } /** - * The shopper's contact number. It must have an international number format, for example - * **+31 20 779 1846**. Formats like **+31 (0)20 779 1846** or **0031 20 779 1846** are not - * accepted. + * The shopper's contact number. It must have an international number format, for example **+31 20 779 1846**. Formats like **+31 (0)20 779 1846** or **0031 20 779 1846** are not accepted. * - * @param telephoneNumber The shopper's contact number. It must have an international number - * format, for example **+31 20 779 1846**. Formats like **+31 (0)20 779 1846** or **0031 20 - * 779 1846** are not accepted. + * @param telephoneNumber The shopper's contact number. It must have an international number format, for example **+31 20 779 1846**. Formats like **+31 (0)20 779 1846** or **0031 20 779 1846** are not accepted. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -288,7 +277,6 @@ public EcontextVoucherDetails type(TypeEnum type) { /** * **econtextvoucher** - * * @return type **econtextvoucher** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -308,7 +296,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this EcontextVoucherDetails object is equal to o. */ + /** + * Return true if this EcontextVoucherDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -318,18 +308,17 @@ public boolean equals(Object o) { return false; } EcontextVoucherDetails econtextVoucherDetails = (EcontextVoucherDetails) o; - return Objects.equals(this.checkoutAttemptId, econtextVoucherDetails.checkoutAttemptId) - && Objects.equals(this.firstName, econtextVoucherDetails.firstName) - && Objects.equals(this.lastName, econtextVoucherDetails.lastName) - && Objects.equals(this.shopperEmail, econtextVoucherDetails.shopperEmail) - && Objects.equals(this.telephoneNumber, econtextVoucherDetails.telephoneNumber) - && Objects.equals(this.type, econtextVoucherDetails.type); + return Objects.equals(this.checkoutAttemptId, econtextVoucherDetails.checkoutAttemptId) && + Objects.equals(this.firstName, econtextVoucherDetails.firstName) && + Objects.equals(this.lastName, econtextVoucherDetails.lastName) && + Objects.equals(this.shopperEmail, econtextVoucherDetails.shopperEmail) && + Objects.equals(this.telephoneNumber, econtextVoucherDetails.telephoneNumber) && + Objects.equals(this.type, econtextVoucherDetails.type); } @Override public int hashCode() { - return Objects.hash( - checkoutAttemptId, firstName, lastName, shopperEmail, telephoneNumber, type); + return Objects.hash(checkoutAttemptId, firstName, lastName, shopperEmail, telephoneNumber, type); } @Override @@ -347,7 +336,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -356,23 +346,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of EcontextVoucherDetails given an JSON string * * @param jsonString JSON string * @return An instance of EcontextVoucherDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * EcontextVoucherDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to EcontextVoucherDetails */ public static EcontextVoucherDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, EcontextVoucherDetails.class); } - - /** - * Convert an instance of EcontextVoucherDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of EcontextVoucherDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/EftDetails.java b/src/main/java/com/adyen/model/checkout/EftDetails.java index f841f8a0c..550aca69a 100644 --- a/src/main/java/com/adyen/model/checkout/EftDetails.java +++ b/src/main/java/com/adyen/model/checkout/EftDetails.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** EftDetails */ +/** + * EftDetails + */ @JsonPropertyOrder({ EftDetails.JSON_PROPERTY_BANK_ACCOUNT_NUMBER, EftDetails.JSON_PROPERTY_BANK_CODE, @@ -32,6 +37,7 @@ EftDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, EftDetails.JSON_PROPERTY_TYPE }) + public class EftDetails { public static final String JSON_PROPERTY_BANK_ACCOUNT_NUMBER = "bankAccountNumber"; private String bankAccountNumber; @@ -55,8 +61,11 @@ public class EftDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** **eft** */ + /** + * **eft** + */ public enum TypeEnum { + EFT_DIRECTDEBIT_CA(String.valueOf("eft_directdebit_CA")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -64,7 +73,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -85,11 +94,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -97,7 +102,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public EftDetails() {} + public EftDetails() { + } /** * The bank account number (without separators). @@ -112,7 +118,6 @@ public EftDetails bankAccountNumber(String bankAccountNumber) { /** * The bank account number (without separators). - * * @return bankAccountNumber The bank account number (without separators). */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_NUMBER) @@ -145,7 +150,6 @@ public EftDetails bankCode(String bankCode) { /** * The financial institution code. - * * @return bankCode The financial institution code. */ @JsonProperty(JSON_PROPERTY_BANK_CODE) @@ -178,7 +182,6 @@ public EftDetails bankLocationId(String bankLocationId) { /** * The bank routing number of the account. - * * @return bankLocationId The bank routing number of the account. */ @JsonProperty(JSON_PROPERTY_BANK_LOCATION_ID) @@ -211,7 +214,6 @@ public EftDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -232,25 +234,9 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we - * automatically replace some of them with corresponding Latin characters to meet the FATF - * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter - * Møller is converted to Peter Mller, because banks don't accept 'ø'. After - * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), - * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - - * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details - * don't match the required format, the response returns the error message: 203 'Invalid - * bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. * - * @param ownerName The name of the bank account holder. If you submit a name with non-Latin - * characters, we automatically replace some of them with corresponding Latin characters to - * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted - * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept - * 'ø'. After replacement, the ownerName must have at least three alphanumeric - * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, - * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - - * allowed. > If provided details don't match the required format, the response returns - * the error message: 203 'Invalid bank account holder name'. + * @param ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. * @return the current {@code EftDetails} instance, allowing for method chaining */ public EftDetails ownerName(String ownerName) { @@ -259,25 +245,8 @@ public EftDetails ownerName(String ownerName) { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we - * automatically replace some of them with corresponding Latin characters to meet the FATF - * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter - * Møller is converted to Peter Mller, because banks don't accept 'ø'. After - * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), - * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - - * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details - * don't match the required format, the response returns the error message: 203 'Invalid - * bank account holder name'. - * - * @return ownerName The name of the bank account holder. If you submit a name with non-Latin - * characters, we automatically replace some of them with corresponding Latin characters to - * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted - * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept - * 'ø'. After replacement, the ownerName must have at least three alphanumeric - * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, - * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - - * allowed. > If provided details don't match the required format, the response returns - * the error message: 203 'Invalid bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * @return ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -286,25 +255,9 @@ public String getOwnerName() { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we - * automatically replace some of them with corresponding Latin characters to meet the FATF - * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter - * Møller is converted to Peter Mller, because banks don't accept 'ø'. After - * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), - * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - - * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details - * don't match the required format, the response returns the error message: 203 'Invalid - * bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. * - * @param ownerName The name of the bank account holder. If you submit a name with non-Latin - * characters, we automatically replace some of them with corresponding Latin characters to - * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted - * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept - * 'ø'. After replacement, the ownerName must have at least three alphanumeric - * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, - * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - - * allowed. > If provided details don't match the required format, the response returns - * the error message: 203 'Invalid bank account holder name'. + * @param ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -313,13 +266,13 @@ public void setOwnerName(String ownerName) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code EftDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public EftDetails recurringDetailReference(String recurringDetailReference) { @@ -328,11 +281,8 @@ public EftDetails recurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -343,12 +293,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -358,11 +308,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code EftDetails} instance, allowing for method chaining */ public EftDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -371,11 +319,8 @@ public EftDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -384,11 +329,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -409,7 +352,6 @@ public EftDetails type(TypeEnum type) { /** * **eft** - * * @return type **eft** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -429,7 +371,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this EftDetails object is equal to o. */ + /** + * Return true if this EftDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -439,27 +383,19 @@ public boolean equals(Object o) { return false; } EftDetails eftDetails = (EftDetails) o; - return Objects.equals(this.bankAccountNumber, eftDetails.bankAccountNumber) - && Objects.equals(this.bankCode, eftDetails.bankCode) - && Objects.equals(this.bankLocationId, eftDetails.bankLocationId) - && Objects.equals(this.checkoutAttemptId, eftDetails.checkoutAttemptId) - && Objects.equals(this.ownerName, eftDetails.ownerName) - && Objects.equals(this.recurringDetailReference, eftDetails.recurringDetailReference) - && Objects.equals(this.storedPaymentMethodId, eftDetails.storedPaymentMethodId) - && Objects.equals(this.type, eftDetails.type); + return Objects.equals(this.bankAccountNumber, eftDetails.bankAccountNumber) && + Objects.equals(this.bankCode, eftDetails.bankCode) && + Objects.equals(this.bankLocationId, eftDetails.bankLocationId) && + Objects.equals(this.checkoutAttemptId, eftDetails.checkoutAttemptId) && + Objects.equals(this.ownerName, eftDetails.ownerName) && + Objects.equals(this.recurringDetailReference, eftDetails.recurringDetailReference) && + Objects.equals(this.storedPaymentMethodId, eftDetails.storedPaymentMethodId) && + Objects.equals(this.type, eftDetails.type); } @Override public int hashCode() { - return Objects.hash( - bankAccountNumber, - bankCode, - bankLocationId, - checkoutAttemptId, - ownerName, - recurringDetailReference, - storedPaymentMethodId, - type); + return Objects.hash(bankAccountNumber, bankCode, bankLocationId, checkoutAttemptId, ownerName, recurringDetailReference, storedPaymentMethodId, type); } @Override @@ -471,19 +407,16 @@ public String toString() { sb.append(" bankLocationId: ").append(toIndentedString(bankLocationId)).append("\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" ownerName: ").append(toIndentedString(ownerName)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -492,7 +425,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of EftDetails given an JSON string * * @param jsonString JSON string @@ -502,12 +435,11 @@ private String toIndentedString(Object o) { public static EftDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, EftDetails.class); } - - /** - * Convert an instance of EftDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of EftDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/EncryptedOrderData.java b/src/main/java/com/adyen/model/checkout/EncryptedOrderData.java index 391ea7057..31bee46ce 100644 --- a/src/main/java/com/adyen/model/checkout/EncryptedOrderData.java +++ b/src/main/java/com/adyen/model/checkout/EncryptedOrderData.java @@ -2,26 +2,36 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** EncryptedOrderData */ + +/** + * EncryptedOrderData + */ @JsonPropertyOrder({ EncryptedOrderData.JSON_PROPERTY_ORDER_DATA, EncryptedOrderData.JSON_PROPERTY_PSP_REFERENCE }) + public class EncryptedOrderData { public static final String JSON_PROPERTY_ORDER_DATA = "orderData"; private String orderData; @@ -29,7 +39,8 @@ public class EncryptedOrderData { public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference"; private String pspReference; - public EncryptedOrderData() {} + public EncryptedOrderData() { + } /** * The encrypted order data. @@ -44,7 +55,6 @@ public EncryptedOrderData orderData(String orderData) { /** * The encrypted order data. - * * @return orderData The encrypted order data. */ @JsonProperty(JSON_PROPERTY_ORDER_DATA) @@ -77,7 +87,6 @@ public EncryptedOrderData pspReference(String pspReference) { /** * The `pspReference` that belongs to the order. - * * @return pspReference The `pspReference` that belongs to the order. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -97,7 +106,9 @@ public void setPspReference(String pspReference) { this.pspReference = pspReference; } - /** Return true if this EncryptedOrderData object is equal to o. */ + /** + * Return true if this EncryptedOrderData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -107,8 +118,8 @@ public boolean equals(Object o) { return false; } EncryptedOrderData encryptedOrderData = (EncryptedOrderData) o; - return Objects.equals(this.orderData, encryptedOrderData.orderData) - && Objects.equals(this.pspReference, encryptedOrderData.pspReference); + return Objects.equals(this.orderData, encryptedOrderData.orderData) && + Objects.equals(this.pspReference, encryptedOrderData.pspReference); } @Override @@ -127,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,23 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of EncryptedOrderData given an JSON string * * @param jsonString JSON string * @return An instance of EncryptedOrderData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * EncryptedOrderData + * @throws JsonProcessingException if the JSON string is invalid with respect to EncryptedOrderData */ public static EncryptedOrderData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, EncryptedOrderData.class); } - - /** - * Convert an instance of EncryptedOrderData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of EncryptedOrderData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/EnhancedSchemeData.java b/src/main/java/com/adyen/model/checkout/EnhancedSchemeData.java index fa7ca197c..1edb1513c 100644 --- a/src/main/java/com/adyen/model/checkout/EnhancedSchemeData.java +++ b/src/main/java/com/adyen/model/checkout/EnhancedSchemeData.java @@ -2,33 +2,47 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Airline; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** EnhancedSchemeData */ -@JsonPropertyOrder({EnhancedSchemeData.JSON_PROPERTY_AIRLINE}) + +/** + * EnhancedSchemeData + */ +@JsonPropertyOrder({ + EnhancedSchemeData.JSON_PROPERTY_AIRLINE +}) + public class EnhancedSchemeData { public static final String JSON_PROPERTY_AIRLINE = "airline"; private Airline airline; - public EnhancedSchemeData() {} + public EnhancedSchemeData() { + } /** * airline * - * @param airline + * @param airline * @return the current {@code EnhancedSchemeData} instance, allowing for method chaining */ public EnhancedSchemeData airline(Airline airline) { @@ -38,8 +52,7 @@ public EnhancedSchemeData airline(Airline airline) { /** * Get airline - * - * @return airline + * @return airline */ @JsonProperty(JSON_PROPERTY_AIRLINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -50,7 +63,7 @@ public Airline getAirline() { /** * airline * - * @param airline + * @param airline */ @JsonProperty(JSON_PROPERTY_AIRLINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,7 +71,9 @@ public void setAirline(Airline airline) { this.airline = airline; } - /** Return true if this EnhancedSchemeData object is equal to o. */ + /** + * Return true if this EnhancedSchemeData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,7 +101,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,23 +111,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of EnhancedSchemeData given an JSON string * * @param jsonString JSON string * @return An instance of EnhancedSchemeData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * EnhancedSchemeData + * @throws JsonProcessingException if the JSON string is invalid with respect to EnhancedSchemeData */ public static EnhancedSchemeData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, EnhancedSchemeData.class); } - - /** - * Convert an instance of EnhancedSchemeData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of EnhancedSchemeData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ExternalPlatform.java b/src/main/java/com/adyen/model/checkout/ExternalPlatform.java index 065b8e302..eaed7a6f7 100644 --- a/src/main/java/com/adyen/model/checkout/ExternalPlatform.java +++ b/src/main/java/com/adyen/model/checkout/ExternalPlatform.java @@ -2,27 +2,37 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ExternalPlatform */ + +/** + * ExternalPlatform + */ @JsonPropertyOrder({ ExternalPlatform.JSON_PROPERTY_INTEGRATOR, ExternalPlatform.JSON_PROPERTY_NAME, ExternalPlatform.JSON_PROPERTY_VERSION }) + public class ExternalPlatform { public static final String JSON_PROPERTY_INTEGRATOR = "integrator"; private String integrator; @@ -33,7 +43,8 @@ public class ExternalPlatform { public static final String JSON_PROPERTY_VERSION = "version"; private String version; - public ExternalPlatform() {} + public ExternalPlatform() { + } /** * External platform integrator. @@ -48,7 +59,6 @@ public ExternalPlatform integrator(String integrator) { /** * External platform integrator. - * * @return integrator External platform integrator. */ @JsonProperty(JSON_PROPERTY_INTEGRATOR) @@ -81,7 +91,6 @@ public ExternalPlatform name(String name) { /** * Name of the field. For example, Name of External Platform. - * * @return name Name of the field. For example, Name of External Platform. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -114,7 +123,6 @@ public ExternalPlatform version(String version) { /** * Version of the field. For example, Version of External Platform. - * * @return version Version of the field. For example, Version of External Platform. */ @JsonProperty(JSON_PROPERTY_VERSION) @@ -134,7 +142,9 @@ public void setVersion(String version) { this.version = version; } - /** Return true if this ExternalPlatform object is equal to o. */ + /** + * Return true if this ExternalPlatform object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,9 +154,9 @@ public boolean equals(Object o) { return false; } ExternalPlatform externalPlatform = (ExternalPlatform) o; - return Objects.equals(this.integrator, externalPlatform.integrator) - && Objects.equals(this.name, externalPlatform.name) - && Objects.equals(this.version, externalPlatform.version); + return Objects.equals(this.integrator, externalPlatform.integrator) && + Objects.equals(this.name, externalPlatform.name) && + Objects.equals(this.version, externalPlatform.version); } @Override @@ -166,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ExternalPlatform given an JSON string * * @param jsonString JSON string @@ -185,12 +196,11 @@ private String toIndentedString(Object o) { public static ExternalPlatform fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ExternalPlatform.class); } - - /** - * Convert an instance of ExternalPlatform to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ExternalPlatform to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/FastlaneDetails.java b/src/main/java/com/adyen/model/checkout/FastlaneDetails.java index 909ee2d52..6cb3e1634 100644 --- a/src/main/java/com/adyen/model/checkout/FastlaneDetails.java +++ b/src/main/java/com/adyen/model/checkout/FastlaneDetails.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** FastlaneDetails */ +/** + * FastlaneDetails + */ @JsonPropertyOrder({ FastlaneDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, FastlaneDetails.JSON_PROPERTY_FASTLANE_DATA, @@ -29,6 +34,7 @@ FastlaneDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, FastlaneDetails.JSON_PROPERTY_TYPE }) + public class FastlaneDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -43,8 +49,11 @@ public class FastlaneDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** **fastlane** */ + /** + * **fastlane** + */ public enum TypeEnum { + FASTLANE(String.valueOf("fastlane")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +61,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,11 +82,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -85,7 +90,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public FastlaneDetails() {} + public FastlaneDetails() { + } /** * The checkout attempt identifier. @@ -100,7 +106,6 @@ public FastlaneDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -133,7 +138,6 @@ public FastlaneDetails fastlaneData(String fastlaneData) { /** * The encoded fastlane data blob - * * @return fastlaneData The encoded fastlane data blob */ @JsonProperty(JSON_PROPERTY_FASTLANE_DATA) @@ -154,13 +158,13 @@ public void setFastlaneData(String fastlaneData) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code FastlaneDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public FastlaneDetails recurringDetailReference(String recurringDetailReference) { @@ -169,11 +173,8 @@ public FastlaneDetails recurringDetailReference(String recurringDetailReference) } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -184,12 +185,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -199,11 +200,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code FastlaneDetails} instance, allowing for method chaining */ public FastlaneDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -212,11 +211,8 @@ public FastlaneDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -225,11 +221,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,7 +244,6 @@ public FastlaneDetails type(TypeEnum type) { /** * **fastlane** - * * @return type **fastlane** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -270,7 +263,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this FastlaneDetails object is equal to o. */ + /** + * Return true if this FastlaneDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -280,17 +275,16 @@ public boolean equals(Object o) { return false; } FastlaneDetails fastlaneDetails = (FastlaneDetails) o; - return Objects.equals(this.checkoutAttemptId, fastlaneDetails.checkoutAttemptId) - && Objects.equals(this.fastlaneData, fastlaneDetails.fastlaneData) - && Objects.equals(this.recurringDetailReference, fastlaneDetails.recurringDetailReference) - && Objects.equals(this.storedPaymentMethodId, fastlaneDetails.storedPaymentMethodId) - && Objects.equals(this.type, fastlaneDetails.type); + return Objects.equals(this.checkoutAttemptId, fastlaneDetails.checkoutAttemptId) && + Objects.equals(this.fastlaneData, fastlaneDetails.fastlaneData) && + Objects.equals(this.recurringDetailReference, fastlaneDetails.recurringDetailReference) && + Objects.equals(this.storedPaymentMethodId, fastlaneDetails.storedPaymentMethodId) && + Objects.equals(this.type, fastlaneDetails.type); } @Override public int hashCode() { - return Objects.hash( - checkoutAttemptId, fastlaneData, recurringDetailReference, storedPaymentMethodId, type); + return Objects.hash(checkoutAttemptId, fastlaneData, recurringDetailReference, storedPaymentMethodId, type); } @Override @@ -299,19 +293,16 @@ public String toString() { sb.append("class FastlaneDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" fastlaneData: ").append(toIndentedString(fastlaneData)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -320,7 +311,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of FastlaneDetails given an JSON string * * @param jsonString JSON string @@ -330,12 +321,11 @@ private String toIndentedString(Object o) { public static FastlaneDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, FastlaneDetails.class); } - - /** - * Convert an instance of FastlaneDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of FastlaneDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ForexQuote.java b/src/main/java/com/adyen/model/checkout/ForexQuote.java index 79fb4567a..ac01b8042 100644 --- a/src/main/java/com/adyen/model/checkout/ForexQuote.java +++ b/src/main/java/com/adyen/model/checkout/ForexQuote.java @@ -2,23 +2,33 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.time.OffsetDateTime; -import java.util.*; -/** ForexQuote */ + +/** + * ForexQuote + */ @JsonPropertyOrder({ ForexQuote.JSON_PROPERTY_ACCOUNT, ForexQuote.JSON_PROPERTY_ACCOUNT_TYPE, @@ -33,6 +43,7 @@ ForexQuote.JSON_PROPERTY_TYPE, ForexQuote.JSON_PROPERTY_VALID_TILL }) + public class ForexQuote { public static final String JSON_PROPERTY_ACCOUNT = "account"; private String account; @@ -70,7 +81,8 @@ public class ForexQuote { public static final String JSON_PROPERTY_VALID_TILL = "validTill"; private OffsetDateTime validTill; - public ForexQuote() {} + public ForexQuote() { + } /** * The account name. @@ -85,7 +97,6 @@ public ForexQuote account(String account) { /** * The account name. - * * @return account The account name. */ @JsonProperty(JSON_PROPERTY_ACCOUNT) @@ -118,7 +129,6 @@ public ForexQuote accountType(String accountType) { /** * The account type. - * * @return accountType The account type. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @@ -141,7 +151,7 @@ public void setAccountType(String accountType) { /** * baseAmount * - * @param baseAmount + * @param baseAmount * @return the current {@code ForexQuote} instance, allowing for method chaining */ public ForexQuote baseAmount(Amount baseAmount) { @@ -151,8 +161,7 @@ public ForexQuote baseAmount(Amount baseAmount) { /** * Get baseAmount - * - * @return baseAmount + * @return baseAmount */ @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,7 +172,7 @@ public Amount getBaseAmount() { /** * baseAmount * - * @param baseAmount + * @param baseAmount */ @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -184,7 +193,6 @@ public ForexQuote basePoints(Integer basePoints) { /** * The base points. - * * @return basePoints The base points. */ @JsonProperty(JSON_PROPERTY_BASE_POINTS) @@ -207,7 +215,7 @@ public void setBasePoints(Integer basePoints) { /** * buy * - * @param buy + * @param buy * @return the current {@code ForexQuote} instance, allowing for method chaining */ public ForexQuote buy(Amount buy) { @@ -217,8 +225,7 @@ public ForexQuote buy(Amount buy) { /** * Get buy - * - * @return buy + * @return buy */ @JsonProperty(JSON_PROPERTY_BUY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -229,7 +236,7 @@ public Amount getBuy() { /** * buy * - * @param buy + * @param buy */ @JsonProperty(JSON_PROPERTY_BUY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,7 +247,7 @@ public void setBuy(Amount buy) { /** * interbank * - * @param interbank + * @param interbank * @return the current {@code ForexQuote} instance, allowing for method chaining */ public ForexQuote interbank(Amount interbank) { @@ -250,8 +257,7 @@ public ForexQuote interbank(Amount interbank) { /** * Get interbank - * - * @return interbank + * @return interbank */ @JsonProperty(JSON_PROPERTY_INTERBANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -262,7 +268,7 @@ public Amount getInterbank() { /** * interbank * - * @param interbank + * @param interbank */ @JsonProperty(JSON_PROPERTY_INTERBANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -283,7 +289,6 @@ public ForexQuote reference(String reference) { /** * The reference assigned to the forex quote request. - * * @return reference The reference assigned to the forex quote request. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -306,7 +311,7 @@ public void setReference(String reference) { /** * sell * - * @param sell + * @param sell * @return the current {@code ForexQuote} instance, allowing for method chaining */ public ForexQuote sell(Amount sell) { @@ -316,8 +321,7 @@ public ForexQuote sell(Amount sell) { /** * Get sell - * - * @return sell + * @return sell */ @JsonProperty(JSON_PROPERTY_SELL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -328,7 +332,7 @@ public Amount getSell() { /** * sell * - * @param sell + * @param sell */ @JsonProperty(JSON_PROPERTY_SELL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -349,7 +353,6 @@ public ForexQuote signature(String signature) { /** * The signature to validate the integrity. - * * @return signature The signature to validate the integrity. */ @JsonProperty(JSON_PROPERTY_SIGNATURE) @@ -382,7 +385,6 @@ public ForexQuote source(String source) { /** * The source of the forex quote. - * * @return source The source of the forex quote. */ @JsonProperty(JSON_PROPERTY_SOURCE) @@ -415,7 +417,6 @@ public ForexQuote type(String type) { /** * The type of forex. - * * @return type The type of forex. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -448,7 +449,6 @@ public ForexQuote validTill(OffsetDateTime validTill) { /** * The date until which the forex quote is valid. - * * @return validTill The date until which the forex quote is valid. */ @JsonProperty(JSON_PROPERTY_VALID_TILL) @@ -468,7 +468,9 @@ public void setValidTill(OffsetDateTime validTill) { this.validTill = validTill; } - /** Return true if this ForexQuote object is equal to o. */ + /** + * Return true if this ForexQuote object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -478,35 +480,23 @@ public boolean equals(Object o) { return false; } ForexQuote forexQuote = (ForexQuote) o; - return Objects.equals(this.account, forexQuote.account) - && Objects.equals(this.accountType, forexQuote.accountType) - && Objects.equals(this.baseAmount, forexQuote.baseAmount) - && Objects.equals(this.basePoints, forexQuote.basePoints) - && Objects.equals(this.buy, forexQuote.buy) - && Objects.equals(this.interbank, forexQuote.interbank) - && Objects.equals(this.reference, forexQuote.reference) - && Objects.equals(this.sell, forexQuote.sell) - && Objects.equals(this.signature, forexQuote.signature) - && Objects.equals(this.source, forexQuote.source) - && Objects.equals(this.type, forexQuote.type) - && Objects.equals(this.validTill, forexQuote.validTill); + return Objects.equals(this.account, forexQuote.account) && + Objects.equals(this.accountType, forexQuote.accountType) && + Objects.equals(this.baseAmount, forexQuote.baseAmount) && + Objects.equals(this.basePoints, forexQuote.basePoints) && + Objects.equals(this.buy, forexQuote.buy) && + Objects.equals(this.interbank, forexQuote.interbank) && + Objects.equals(this.reference, forexQuote.reference) && + Objects.equals(this.sell, forexQuote.sell) && + Objects.equals(this.signature, forexQuote.signature) && + Objects.equals(this.source, forexQuote.source) && + Objects.equals(this.type, forexQuote.type) && + Objects.equals(this.validTill, forexQuote.validTill); } @Override public int hashCode() { - return Objects.hash( - account, - accountType, - baseAmount, - basePoints, - buy, - interbank, - reference, - sell, - signature, - source, - type, - validTill); + return Objects.hash(account, accountType, baseAmount, basePoints, buy, interbank, reference, sell, signature, source, type, validTill); } @Override @@ -530,7 +520,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -539,7 +530,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ForexQuote given an JSON string * * @param jsonString JSON string @@ -549,12 +540,11 @@ private String toIndentedString(Object o) { public static ForexQuote fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ForexQuote.class); } - - /** - * Convert an instance of ForexQuote to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ForexQuote to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/FraudCheckResult.java b/src/main/java/com/adyen/model/checkout/FraudCheckResult.java index 03fde128b..b0f5a12da 100644 --- a/src/main/java/com/adyen/model/checkout/FraudCheckResult.java +++ b/src/main/java/com/adyen/model/checkout/FraudCheckResult.java @@ -2,27 +2,37 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** FraudCheckResult */ + +/** + * FraudCheckResult + */ @JsonPropertyOrder({ FraudCheckResult.JSON_PROPERTY_ACCOUNT_SCORE, FraudCheckResult.JSON_PROPERTY_CHECK_ID, FraudCheckResult.JSON_PROPERTY_NAME }) + public class FraudCheckResult { public static final String JSON_PROPERTY_ACCOUNT_SCORE = "accountScore"; private Integer accountScore; @@ -33,7 +43,8 @@ public class FraudCheckResult { public static final String JSON_PROPERTY_NAME = "name"; private String name; - public FraudCheckResult() {} + public FraudCheckResult() { + } /** * The fraud score generated by the risk check. @@ -48,7 +59,6 @@ public FraudCheckResult accountScore(Integer accountScore) { /** * The fraud score generated by the risk check. - * * @return accountScore The fraud score generated by the risk check. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_SCORE) @@ -81,7 +91,6 @@ public FraudCheckResult checkId(Integer checkId) { /** * The ID of the risk check. - * * @return checkId The ID of the risk check. */ @JsonProperty(JSON_PROPERTY_CHECK_ID) @@ -114,7 +123,6 @@ public FraudCheckResult name(String name) { /** * The name of the risk check. - * * @return name The name of the risk check. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -134,7 +142,9 @@ public void setName(String name) { this.name = name; } - /** Return true if this FraudCheckResult object is equal to o. */ + /** + * Return true if this FraudCheckResult object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,9 +154,9 @@ public boolean equals(Object o) { return false; } FraudCheckResult fraudCheckResult = (FraudCheckResult) o; - return Objects.equals(this.accountScore, fraudCheckResult.accountScore) - && Objects.equals(this.checkId, fraudCheckResult.checkId) - && Objects.equals(this.name, fraudCheckResult.name); + return Objects.equals(this.accountScore, fraudCheckResult.accountScore) && + Objects.equals(this.checkId, fraudCheckResult.checkId) && + Objects.equals(this.name, fraudCheckResult.name); } @Override @@ -166,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of FraudCheckResult given an JSON string * * @param jsonString JSON string @@ -185,12 +196,11 @@ private String toIndentedString(Object o) { public static FraudCheckResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, FraudCheckResult.class); } - - /** - * Convert an instance of FraudCheckResult to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of FraudCheckResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/FraudResult.java b/src/main/java/com/adyen/model/checkout/FraudResult.java index 31cdaa0eb..000ca6786 100644 --- a/src/main/java/com/adyen/model/checkout/FraudResult.java +++ b/src/main/java/com/adyen/model/checkout/FraudResult.java @@ -2,25 +2,39 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.FraudCheckResult; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * FraudResult + */ +@JsonPropertyOrder({ + FraudResult.JSON_PROPERTY_ACCOUNT_SCORE, + FraudResult.JSON_PROPERTY_RESULTS +}) -/** FraudResult */ -@JsonPropertyOrder({FraudResult.JSON_PROPERTY_ACCOUNT_SCORE, FraudResult.JSON_PROPERTY_RESULTS}) public class FraudResult { public static final String JSON_PROPERTY_ACCOUNT_SCORE = "accountScore"; private Integer accountScore; @@ -28,7 +42,8 @@ public class FraudResult { public static final String JSON_PROPERTY_RESULTS = "results"; private List results; - public FraudResult() {} + public FraudResult() { + } /** * The total fraud score generated by the risk checks. @@ -43,7 +58,6 @@ public FraudResult accountScore(Integer accountScore) { /** * The total fraud score generated by the risk checks. - * * @return accountScore The total fraud score generated by the risk checks. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_SCORE) @@ -84,7 +98,6 @@ public FraudResult addResultsItem(FraudCheckResult resultsItem) { /** * The result of the individual risk checks. - * * @return results The result of the individual risk checks. */ @JsonProperty(JSON_PROPERTY_RESULTS) @@ -104,7 +117,9 @@ public void setResults(List results) { this.results = results; } - /** Return true if this FraudResult object is equal to o. */ + /** + * Return true if this FraudResult object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -114,8 +129,8 @@ public boolean equals(Object o) { return false; } FraudResult fraudResult = (FraudResult) o; - return Objects.equals(this.accountScore, fraudResult.accountScore) - && Objects.equals(this.results, fraudResult.results); + return Objects.equals(this.accountScore, fraudResult.accountScore) && + Objects.equals(this.results, fraudResult.results); } @Override @@ -134,7 +149,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -143,7 +159,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of FraudResult given an JSON string * * @param jsonString JSON string @@ -153,12 +169,11 @@ private String toIndentedString(Object o) { public static FraudResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, FraudResult.class); } - - /** - * Convert an instance of FraudResult to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of FraudResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/FundOrigin.java b/src/main/java/com/adyen/model/checkout/FundOrigin.java index a1355a9b5..0773b4b22 100644 --- a/src/main/java/com/adyen/model/checkout/FundOrigin.java +++ b/src/main/java/com/adyen/model/checkout/FundOrigin.java @@ -2,22 +2,33 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Address; +import com.adyen.model.checkout.Name; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** FundOrigin */ + +/** + * FundOrigin + */ @JsonPropertyOrder({ FundOrigin.JSON_PROPERTY_BILLING_ADDRESS, FundOrigin.JSON_PROPERTY_SHOPPER_EMAIL, @@ -25,6 +36,7 @@ FundOrigin.JSON_PROPERTY_TELEPHONE_NUMBER, FundOrigin.JSON_PROPERTY_WALLET_IDENTIFIER }) + public class FundOrigin { public static final String JSON_PROPERTY_BILLING_ADDRESS = "billingAddress"; private Address billingAddress; @@ -41,12 +53,13 @@ public class FundOrigin { public static final String JSON_PROPERTY_WALLET_IDENTIFIER = "walletIdentifier"; private String walletIdentifier; - public FundOrigin() {} + public FundOrigin() { + } /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code FundOrigin} instance, allowing for method chaining */ public FundOrigin billingAddress(Address billingAddress) { @@ -56,8 +69,7 @@ public FundOrigin billingAddress(Address billingAddress) { /** * Get billingAddress - * - * @return billingAddress + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,7 +80,7 @@ public Address getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -89,7 +101,6 @@ public FundOrigin shopperEmail(String shopperEmail) { /** * The email address of the person funding the money. - * * @return shopperEmail The email address of the person funding the money. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -112,7 +123,7 @@ public void setShopperEmail(String shopperEmail) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code FundOrigin} instance, allowing for method chaining */ public FundOrigin shopperName(Name shopperName) { @@ -122,8 +133,7 @@ public FundOrigin shopperName(Name shopperName) { /** * Get shopperName - * - * @return shopperName + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -134,7 +144,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -155,7 +165,6 @@ public FundOrigin telephoneNumber(String telephoneNumber) { /** * The phone number of the person funding the money. - * * @return telephoneNumber The phone number of the person funding the money. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @@ -188,7 +197,6 @@ public FundOrigin walletIdentifier(String walletIdentifier) { /** * The unique identifier of the wallet where the funds are coming from. - * * @return walletIdentifier The unique identifier of the wallet where the funds are coming from. */ @JsonProperty(JSON_PROPERTY_WALLET_IDENTIFIER) @@ -208,7 +216,9 @@ public void setWalletIdentifier(String walletIdentifier) { this.walletIdentifier = walletIdentifier; } - /** Return true if this FundOrigin object is equal to o. */ + /** + * Return true if this FundOrigin object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -218,17 +228,16 @@ public boolean equals(Object o) { return false; } FundOrigin fundOrigin = (FundOrigin) o; - return Objects.equals(this.billingAddress, fundOrigin.billingAddress) - && Objects.equals(this.shopperEmail, fundOrigin.shopperEmail) - && Objects.equals(this.shopperName, fundOrigin.shopperName) - && Objects.equals(this.telephoneNumber, fundOrigin.telephoneNumber) - && Objects.equals(this.walletIdentifier, fundOrigin.walletIdentifier); + return Objects.equals(this.billingAddress, fundOrigin.billingAddress) && + Objects.equals(this.shopperEmail, fundOrigin.shopperEmail) && + Objects.equals(this.shopperName, fundOrigin.shopperName) && + Objects.equals(this.telephoneNumber, fundOrigin.telephoneNumber) && + Objects.equals(this.walletIdentifier, fundOrigin.walletIdentifier); } @Override public int hashCode() { - return Objects.hash( - billingAddress, shopperEmail, shopperName, telephoneNumber, walletIdentifier); + return Objects.hash(billingAddress, shopperEmail, shopperName, telephoneNumber, walletIdentifier); } @Override @@ -245,7 +254,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -254,7 +264,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of FundOrigin given an JSON string * * @param jsonString JSON string @@ -264,12 +274,11 @@ private String toIndentedString(Object o) { public static FundOrigin fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, FundOrigin.class); } - - /** - * Convert an instance of FundOrigin to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of FundOrigin to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/FundRecipient.java b/src/main/java/com/adyen/model/checkout/FundRecipient.java index 37e1d3aae..9e0a76762 100644 --- a/src/main/java/com/adyen/model/checkout/FundRecipient.java +++ b/src/main/java/com/adyen/model/checkout/FundRecipient.java @@ -2,26 +2,35 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Address; +import com.adyen.model.checkout.CardDetails; +import com.adyen.model.checkout.Name; +import com.adyen.model.checkout.SubMerchant; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** FundRecipient */ +/** + * FundRecipient + */ @JsonPropertyOrder({ FundRecipient.JSON_PROPERTY_I_B_A_N, FundRecipient.JSON_PROPERTY_BILLING_ADDRESS, @@ -36,6 +45,7 @@ FundRecipient.JSON_PROPERTY_WALLET_OWNER_TAX_ID, FundRecipient.JSON_PROPERTY_WALLET_PURPOSE }) + public class FundRecipient { public static final String JSON_PROPERTY_I_B_A_N = "IBAN"; private String IBAN; @@ -70,8 +80,11 @@ public class FundRecipient { public static final String JSON_PROPERTY_WALLET_OWNER_TAX_ID = "walletOwnerTaxId"; private String walletOwnerTaxId; - /** The purpose of a digital wallet transaction. */ + /** + * The purpose of a digital wallet transaction. + */ public enum WalletPurposeEnum { + IDENTIFIEDBOLETO(String.valueOf("identifiedBoleto")), TRANSFERDIFFERENTWALLET(String.valueOf("transferDifferentWallet")), @@ -87,7 +100,7 @@ public enum WalletPurposeEnum { private String value; WalletPurposeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -108,11 +121,7 @@ public static WalletPurposeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "WalletPurposeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(WalletPurposeEnum.values())); + LOG.warning("WalletPurposeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(WalletPurposeEnum.values())); return null; } } @@ -120,7 +129,8 @@ public static WalletPurposeEnum fromValue(String value) { public static final String JSON_PROPERTY_WALLET_PURPOSE = "walletPurpose"; private WalletPurposeEnum walletPurpose; - public FundRecipient() {} + public FundRecipient() { + } /** * The IBAN of the bank account where the funds are being transferred to. @@ -135,7 +145,6 @@ public FundRecipient IBAN(String IBAN) { /** * The IBAN of the bank account where the funds are being transferred to. - * * @return IBAN The IBAN of the bank account where the funds are being transferred to. */ @JsonProperty(JSON_PROPERTY_I_B_A_N) @@ -158,7 +167,7 @@ public void setIBAN(String IBAN) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code FundRecipient} instance, allowing for method chaining */ public FundRecipient billingAddress(Address billingAddress) { @@ -168,8 +177,7 @@ public FundRecipient billingAddress(Address billingAddress) { /** * Get billingAddress - * - * @return billingAddress + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -180,7 +188,7 @@ public Address getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,7 +199,7 @@ public void setBillingAddress(Address billingAddress) { /** * paymentMethod * - * @param paymentMethod + * @param paymentMethod * @return the current {@code FundRecipient} instance, allowing for method chaining */ public FundRecipient paymentMethod(CardDetails paymentMethod) { @@ -201,8 +209,7 @@ public FundRecipient paymentMethod(CardDetails paymentMethod) { /** * Get paymentMethod - * - * @return paymentMethod + * @return paymentMethod */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -213,7 +220,7 @@ public CardDetails getPaymentMethod() { /** * paymentMethod * - * @param paymentMethod + * @param paymentMethod */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -234,7 +241,6 @@ public FundRecipient shopperEmail(String shopperEmail) { /** * The email address of the shopper. - * * @return shopperEmail The email address of the shopper. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -257,7 +263,7 @@ public void setShopperEmail(String shopperEmail) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code FundRecipient} instance, allowing for method chaining */ public FundRecipient shopperName(Name shopperName) { @@ -267,8 +273,7 @@ public FundRecipient shopperName(Name shopperName) { /** * Get shopperName - * - * @return shopperName + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -279,7 +284,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -288,15 +293,9 @@ public void setShopperName(Name shopperName) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example - * user ID or account ID. The value is case-sensitive and must be at least three characters. > - * Your reference must not include personally identifiable information (PII) such as name or email - * address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify - * this shopper, for example user ID or account ID. The value is case-sensitive and must be at - * least three characters. > Your reference must not include personally identifiable - * information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * @return the current {@code FundRecipient} instance, allowing for method chaining */ public FundRecipient shopperReference(String shopperReference) { @@ -305,15 +304,8 @@ public FundRecipient shopperReference(String shopperReference) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example - * user ID or account ID. The value is case-sensitive and must be at least three characters. > - * Your reference must not include personally identifiable information (PII) such as name or email - * address. - * - * @return shopperReference Required for recurring payments. Your reference to uniquely identify - * this shopper, for example user ID or account ID. The value is case-sensitive and must be at - * least three characters. > Your reference must not include personally identifiable - * information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @return shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -322,15 +314,9 @@ public String getShopperReference() { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example - * user ID or account ID. The value is case-sensitive and must be at least three characters. > - * Your reference must not include personally identifiable information (PII) such as name or email - * address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify - * this shopper, for example user ID or account ID. The value is case-sensitive and must be at - * least three characters. > Your reference must not include personally identifiable - * information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -339,11 +325,9 @@ public void setShopperReference(String shopperReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code FundRecipient} instance, allowing for method chaining */ public FundRecipient storedPaymentMethodId(String storedPaymentMethodId) { @@ -352,11 +336,8 @@ public FundRecipient storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -365,11 +346,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -380,7 +359,7 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { /** * subMerchant * - * @param subMerchant + * @param subMerchant * @return the current {@code FundRecipient} instance, allowing for method chaining */ public FundRecipient subMerchant(SubMerchant subMerchant) { @@ -390,8 +369,7 @@ public FundRecipient subMerchant(SubMerchant subMerchant) { /** * Get subMerchant - * - * @return subMerchant + * @return subMerchant */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -402,7 +380,7 @@ public SubMerchant getSubMerchant() { /** * subMerchant * - * @param subMerchant + * @param subMerchant */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -423,7 +401,6 @@ public FundRecipient telephoneNumber(String telephoneNumber) { /** * The telephone number of the shopper. - * * @return telephoneNumber The telephone number of the shopper. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @@ -444,11 +421,9 @@ public void setTelephoneNumber(String telephoneNumber) { } /** - * The unique identifier for the wallet the funds are being transferred to. You can use the - * shopper reference or any other identifier. + * The unique identifier for the wallet the funds are being transferred to. You can use the shopper reference or any other identifier. * - * @param walletIdentifier The unique identifier for the wallet the funds are being transferred - * to. You can use the shopper reference or any other identifier. + * @param walletIdentifier The unique identifier for the wallet the funds are being transferred to. You can use the shopper reference or any other identifier. * @return the current {@code FundRecipient} instance, allowing for method chaining */ public FundRecipient walletIdentifier(String walletIdentifier) { @@ -457,11 +432,8 @@ public FundRecipient walletIdentifier(String walletIdentifier) { } /** - * The unique identifier for the wallet the funds are being transferred to. You can use the - * shopper reference or any other identifier. - * - * @return walletIdentifier The unique identifier for the wallet the funds are being transferred - * to. You can use the shopper reference or any other identifier. + * The unique identifier for the wallet the funds are being transferred to. You can use the shopper reference or any other identifier. + * @return walletIdentifier The unique identifier for the wallet the funds are being transferred to. You can use the shopper reference or any other identifier. */ @JsonProperty(JSON_PROPERTY_WALLET_IDENTIFIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -470,11 +442,9 @@ public String getWalletIdentifier() { } /** - * The unique identifier for the wallet the funds are being transferred to. You can use the - * shopper reference or any other identifier. + * The unique identifier for the wallet the funds are being transferred to. You can use the shopper reference or any other identifier. * - * @param walletIdentifier The unique identifier for the wallet the funds are being transferred - * to. You can use the shopper reference or any other identifier. + * @param walletIdentifier The unique identifier for the wallet the funds are being transferred to. You can use the shopper reference or any other identifier. */ @JsonProperty(JSON_PROPERTY_WALLET_IDENTIFIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -495,7 +465,6 @@ public FundRecipient walletOwnerTaxId(String walletOwnerTaxId) { /** * The tax identifier of the person receiving the funds. - * * @return walletOwnerTaxId The tax identifier of the person receiving the funds. */ @JsonProperty(JSON_PROPERTY_WALLET_OWNER_TAX_ID) @@ -528,7 +497,6 @@ public FundRecipient walletPurpose(WalletPurposeEnum walletPurpose) { /** * The purpose of a digital wallet transaction. - * * @return walletPurpose The purpose of a digital wallet transaction. */ @JsonProperty(JSON_PROPERTY_WALLET_PURPOSE) @@ -548,7 +516,9 @@ public void setWalletPurpose(WalletPurposeEnum walletPurpose) { this.walletPurpose = walletPurpose; } - /** Return true if this FundRecipient object is equal to o. */ + /** + * Return true if this FundRecipient object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -558,35 +528,23 @@ public boolean equals(Object o) { return false; } FundRecipient fundRecipient = (FundRecipient) o; - return Objects.equals(this.IBAN, fundRecipient.IBAN) - && Objects.equals(this.billingAddress, fundRecipient.billingAddress) - && Objects.equals(this.paymentMethod, fundRecipient.paymentMethod) - && Objects.equals(this.shopperEmail, fundRecipient.shopperEmail) - && Objects.equals(this.shopperName, fundRecipient.shopperName) - && Objects.equals(this.shopperReference, fundRecipient.shopperReference) - && Objects.equals(this.storedPaymentMethodId, fundRecipient.storedPaymentMethodId) - && Objects.equals(this.subMerchant, fundRecipient.subMerchant) - && Objects.equals(this.telephoneNumber, fundRecipient.telephoneNumber) - && Objects.equals(this.walletIdentifier, fundRecipient.walletIdentifier) - && Objects.equals(this.walletOwnerTaxId, fundRecipient.walletOwnerTaxId) - && Objects.equals(this.walletPurpose, fundRecipient.walletPurpose); + return Objects.equals(this.IBAN, fundRecipient.IBAN) && + Objects.equals(this.billingAddress, fundRecipient.billingAddress) && + Objects.equals(this.paymentMethod, fundRecipient.paymentMethod) && + Objects.equals(this.shopperEmail, fundRecipient.shopperEmail) && + Objects.equals(this.shopperName, fundRecipient.shopperName) && + Objects.equals(this.shopperReference, fundRecipient.shopperReference) && + Objects.equals(this.storedPaymentMethodId, fundRecipient.storedPaymentMethodId) && + Objects.equals(this.subMerchant, fundRecipient.subMerchant) && + Objects.equals(this.telephoneNumber, fundRecipient.telephoneNumber) && + Objects.equals(this.walletIdentifier, fundRecipient.walletIdentifier) && + Objects.equals(this.walletOwnerTaxId, fundRecipient.walletOwnerTaxId) && + Objects.equals(this.walletPurpose, fundRecipient.walletPurpose); } @Override public int hashCode() { - return Objects.hash( - IBAN, - billingAddress, - paymentMethod, - shopperEmail, - shopperName, - shopperReference, - storedPaymentMethodId, - subMerchant, - telephoneNumber, - walletIdentifier, - walletOwnerTaxId, - walletPurpose); + return Objects.hash(IBAN, billingAddress, paymentMethod, shopperEmail, shopperName, shopperReference, storedPaymentMethodId, subMerchant, telephoneNumber, walletIdentifier, walletOwnerTaxId, walletPurpose); } @Override @@ -599,9 +557,7 @@ public String toString() { sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" subMerchant: ").append(toIndentedString(subMerchant)).append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); sb.append(" walletIdentifier: ").append(toIndentedString(walletIdentifier)).append("\n"); @@ -612,7 +568,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -621,7 +578,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of FundRecipient given an JSON string * * @param jsonString JSON string @@ -631,12 +588,11 @@ private String toIndentedString(Object o) { public static FundRecipient fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, FundRecipient.class); } - - /** - * Convert an instance of FundRecipient to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of FundRecipient to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/GenericIssuerPaymentMethodDetails.java b/src/main/java/com/adyen/model/checkout/GenericIssuerPaymentMethodDetails.java index 4b036502d..290bc77ba 100644 --- a/src/main/java/com/adyen/model/checkout/GenericIssuerPaymentMethodDetails.java +++ b/src/main/java/com/adyen/model/checkout/GenericIssuerPaymentMethodDetails.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** GenericIssuerPaymentMethodDetails */ +/** + * GenericIssuerPaymentMethodDetails + */ @JsonPropertyOrder({ GenericIssuerPaymentMethodDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, GenericIssuerPaymentMethodDetails.JSON_PROPERTY_ISSUER, @@ -29,6 +34,7 @@ GenericIssuerPaymentMethodDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, GenericIssuerPaymentMethodDetails.JSON_PROPERTY_TYPE }) + public class GenericIssuerPaymentMethodDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -43,8 +49,11 @@ public class GenericIssuerPaymentMethodDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** **genericissuer** */ + /** + * **genericissuer** + */ public enum TypeEnum { + ONLINEBANKING_PL(String.valueOf("onlineBanking_PL")), EPS(String.valueOf("eps")), @@ -58,7 +67,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -79,11 +88,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -91,14 +96,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public GenericIssuerPaymentMethodDetails() {} + public GenericIssuerPaymentMethodDetails() { + } /** * The checkout attempt identifier. * * @param checkoutAttemptId The checkout attempt identifier. - * @return the current {@code GenericIssuerPaymentMethodDetails} instance, allowing for method - * chaining + * @return the current {@code GenericIssuerPaymentMethodDetails} instance, allowing for method chaining */ public GenericIssuerPaymentMethodDetails checkoutAttemptId(String checkoutAttemptId) { this.checkoutAttemptId = checkoutAttemptId; @@ -107,7 +112,6 @@ public GenericIssuerPaymentMethodDetails checkoutAttemptId(String checkoutAttemp /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -131,8 +135,7 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { * The issuer id of the shopper's selected bank. * * @param issuer The issuer id of the shopper's selected bank. - * @return the current {@code GenericIssuerPaymentMethodDetails} instance, allowing for method - * chaining + * @return the current {@code GenericIssuerPaymentMethodDetails} instance, allowing for method chaining */ public GenericIssuerPaymentMethodDetails issuer(String issuer) { this.issuer = issuer; @@ -141,7 +144,6 @@ public GenericIssuerPaymentMethodDetails issuer(String issuer) { /** * The issuer id of the shopper's selected bank. - * * @return issuer The issuer id of the shopper's selected bank. */ @JsonProperty(JSON_PROPERTY_ISSUER) @@ -162,28 +164,23 @@ public void setIssuer(String issuer) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @return the current {@code GenericIssuerPaymentMethodDetails} instance, allowing for method - * chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @return the current {@code GenericIssuerPaymentMethodDetails} instance, allowing for method chaining + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - public GenericIssuerPaymentMethodDetails recurringDetailReference( - String recurringDetailReference) { + public GenericIssuerPaymentMethodDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; return this; } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -194,12 +191,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -209,13 +206,10 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. - * @return the current {@code GenericIssuerPaymentMethodDetails} instance, allowing for method - * chaining + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @return the current {@code GenericIssuerPaymentMethodDetails} instance, allowing for method chaining */ public GenericIssuerPaymentMethodDetails storedPaymentMethodId(String storedPaymentMethodId) { this.storedPaymentMethodId = storedPaymentMethodId; @@ -223,11 +217,8 @@ public GenericIssuerPaymentMethodDetails storedPaymentMethodId(String storedPaym } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -236,11 +227,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,8 +241,7 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { * **genericissuer** * * @param type **genericissuer** - * @return the current {@code GenericIssuerPaymentMethodDetails} instance, allowing for method - * chaining + * @return the current {@code GenericIssuerPaymentMethodDetails} instance, allowing for method chaining */ public GenericIssuerPaymentMethodDetails type(TypeEnum type) { this.type = type; @@ -262,7 +250,6 @@ public GenericIssuerPaymentMethodDetails type(TypeEnum type) { /** * **genericissuer** - * * @return type **genericissuer** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -282,7 +269,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this GenericIssuerPaymentMethodDetails object is equal to o. */ + /** + * Return true if this GenericIssuerPaymentMethodDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -291,23 +280,17 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - GenericIssuerPaymentMethodDetails genericIssuerPaymentMethodDetails = - (GenericIssuerPaymentMethodDetails) o; - return Objects.equals( - this.checkoutAttemptId, genericIssuerPaymentMethodDetails.checkoutAttemptId) - && Objects.equals(this.issuer, genericIssuerPaymentMethodDetails.issuer) - && Objects.equals( - this.recurringDetailReference, - genericIssuerPaymentMethodDetails.recurringDetailReference) - && Objects.equals( - this.storedPaymentMethodId, genericIssuerPaymentMethodDetails.storedPaymentMethodId) - && Objects.equals(this.type, genericIssuerPaymentMethodDetails.type); + GenericIssuerPaymentMethodDetails genericIssuerPaymentMethodDetails = (GenericIssuerPaymentMethodDetails) o; + return Objects.equals(this.checkoutAttemptId, genericIssuerPaymentMethodDetails.checkoutAttemptId) && + Objects.equals(this.issuer, genericIssuerPaymentMethodDetails.issuer) && + Objects.equals(this.recurringDetailReference, genericIssuerPaymentMethodDetails.recurringDetailReference) && + Objects.equals(this.storedPaymentMethodId, genericIssuerPaymentMethodDetails.storedPaymentMethodId) && + Objects.equals(this.type, genericIssuerPaymentMethodDetails.type); } @Override public int hashCode() { - return Objects.hash( - checkoutAttemptId, issuer, recurringDetailReference, storedPaymentMethodId, type); + return Objects.hash(checkoutAttemptId, issuer, recurringDetailReference, storedPaymentMethodId, type); } @Override @@ -316,19 +299,16 @@ public String toString() { sb.append("class GenericIssuerPaymentMethodDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" issuer: ").append(toIndentedString(issuer)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -337,24 +317,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of GenericIssuerPaymentMethodDetails given an JSON string * * @param jsonString JSON string * @return An instance of GenericIssuerPaymentMethodDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * GenericIssuerPaymentMethodDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to GenericIssuerPaymentMethodDetails */ - public static GenericIssuerPaymentMethodDetails fromJson(String jsonString) - throws JsonProcessingException { + public static GenericIssuerPaymentMethodDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GenericIssuerPaymentMethodDetails.class); } - - /** - * Convert an instance of GenericIssuerPaymentMethodDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of GenericIssuerPaymentMethodDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/GooglePayDetails.java b/src/main/java/com/adyen/model/checkout/GooglePayDetails.java index c5092a4a2..0a2166058 100644 --- a/src/main/java/com/adyen/model/checkout/GooglePayDetails.java +++ b/src/main/java/com/adyen/model/checkout/GooglePayDetails.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** GooglePayDetails */ +/** + * GooglePayDetails + */ @JsonPropertyOrder({ GooglePayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, GooglePayDetails.JSON_PROPERTY_FUNDING_SOURCE, @@ -32,15 +37,16 @@ GooglePayDetails.JSON_PROPERTY_THREE_D_S2_SDK_VERSION, GooglePayDetails.JSON_PROPERTY_TYPE }) + public class GooglePayDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ public enum FundingSourceEnum { + CREDIT(String.valueOf("credit")), DEBIT(String.valueOf("debit")); @@ -50,7 +56,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -71,11 +77,7 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FundingSourceEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FundingSourceEnum.values())); + LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -99,8 +101,11 @@ public static FundingSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S2_SDK_VERSION = "threeDS2SdkVersion"; private String threeDS2SdkVersion; - /** **googlepay**, **paywithgoogle** */ + /** + * **googlepay**, **paywithgoogle** + */ public enum TypeEnum { + GOOGLEPAY(String.valueOf("googlepay")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -108,7 +113,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -129,11 +134,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -141,7 +142,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public GooglePayDetails() {} + public GooglePayDetails() { + } /** * The checkout attempt identifier. @@ -156,7 +158,6 @@ public GooglePayDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -177,12 +178,9 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * @return the current {@code GooglePayDetails} instance, allowing for method chaining */ public GooglePayDetails fundingSource(FundingSourceEnum fundingSource) { @@ -191,12 +189,8 @@ public GooglePayDetails fundingSource(FundingSourceEnum fundingSource) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. - * - * @return fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @return fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -205,12 +199,9 @@ public FundingSourceEnum getFundingSource() { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,9 +210,9 @@ public void setFundingSource(FundingSourceEnum fundingSource) { } /** - * The selected payment card network. + * The selected payment card network. * - * @param googlePayCardNetwork The selected payment card network. + * @param googlePayCardNetwork The selected payment card network. * @return the current {@code GooglePayDetails} instance, allowing for method chaining */ public GooglePayDetails googlePayCardNetwork(String googlePayCardNetwork) { @@ -230,9 +221,8 @@ public GooglePayDetails googlePayCardNetwork(String googlePayCardNetwork) { } /** - * The selected payment card network. - * - * @return googlePayCardNetwork The selected payment card network. + * The selected payment card network. + * @return googlePayCardNetwork The selected payment card network. */ @JsonProperty(JSON_PROPERTY_GOOGLE_PAY_CARD_NETWORK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -241,9 +231,9 @@ public String getGooglePayCardNetwork() { } /** - * The selected payment card network. + * The selected payment card network. * - * @param googlePayCardNetwork The selected payment card network. + * @param googlePayCardNetwork The selected payment card network. */ @JsonProperty(JSON_PROPERTY_GOOGLE_PAY_CARD_NETWORK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,13 +242,9 @@ public void setGooglePayCardNetwork(String googlePayCardNetwork) { } /** - * The `token` that you obtained from the [Google Pay - * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) - * `PaymentData` response. + * The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. * - * @param googlePayToken The `token` that you obtained from the [Google Pay - * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) - * `PaymentData` response. + * @param googlePayToken The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. * @return the current {@code GooglePayDetails} instance, allowing for method chaining */ public GooglePayDetails googlePayToken(String googlePayToken) { @@ -267,13 +253,8 @@ public GooglePayDetails googlePayToken(String googlePayToken) { } /** - * The `token` that you obtained from the [Google Pay - * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) - * `PaymentData` response. - * - * @return googlePayToken The `token` that you obtained from the [Google Pay - * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) - * `PaymentData` response. + * The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. + * @return googlePayToken The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. */ @JsonProperty(JSON_PROPERTY_GOOGLE_PAY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -282,13 +263,9 @@ public String getGooglePayToken() { } /** - * The `token` that you obtained from the [Google Pay - * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) - * `PaymentData` response. + * The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. * - * @param googlePayToken The `token` that you obtained from the [Google Pay - * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) - * `PaymentData` response. + * @param googlePayToken The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. */ @JsonProperty(JSON_PROPERTY_GOOGLE_PAY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -297,13 +274,13 @@ public void setGooglePayToken(String googlePayToken) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code GooglePayDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public GooglePayDetails recurringDetailReference(String recurringDetailReference) { @@ -312,11 +289,8 @@ public GooglePayDetails recurringDetailReference(String recurringDetailReference } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -327,12 +301,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -342,11 +316,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code GooglePayDetails} instance, allowing for method chaining */ public GooglePayDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -355,11 +327,8 @@ public GooglePayDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -368,11 +337,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -383,8 +350,7 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. * - * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile - * SDK. + * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. * @return the current {@code GooglePayDetails} instance, allowing for method chaining */ public GooglePayDetails threeDS2SdkVersion(String threeDS2SdkVersion) { @@ -394,9 +360,7 @@ public GooglePayDetails threeDS2SdkVersion(String threeDS2SdkVersion) { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. - * - * @return threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile - * SDK. + * @return threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_SDK_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -407,8 +371,7 @@ public String getThreeDS2SdkVersion() { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. * - * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile - * SDK. + * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_SDK_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -429,7 +392,6 @@ public GooglePayDetails type(TypeEnum type) { /** * **googlepay**, **paywithgoogle** - * * @return type **googlepay**, **paywithgoogle** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -449,7 +411,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this GooglePayDetails object is equal to o. */ + /** + * Return true if this GooglePayDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -459,27 +423,19 @@ public boolean equals(Object o) { return false; } GooglePayDetails googlePayDetails = (GooglePayDetails) o; - return Objects.equals(this.checkoutAttemptId, googlePayDetails.checkoutAttemptId) - && Objects.equals(this.fundingSource, googlePayDetails.fundingSource) - && Objects.equals(this.googlePayCardNetwork, googlePayDetails.googlePayCardNetwork) - && Objects.equals(this.googlePayToken, googlePayDetails.googlePayToken) - && Objects.equals(this.recurringDetailReference, googlePayDetails.recurringDetailReference) - && Objects.equals(this.storedPaymentMethodId, googlePayDetails.storedPaymentMethodId) - && Objects.equals(this.threeDS2SdkVersion, googlePayDetails.threeDS2SdkVersion) - && Objects.equals(this.type, googlePayDetails.type); + return Objects.equals(this.checkoutAttemptId, googlePayDetails.checkoutAttemptId) && + Objects.equals(this.fundingSource, googlePayDetails.fundingSource) && + Objects.equals(this.googlePayCardNetwork, googlePayDetails.googlePayCardNetwork) && + Objects.equals(this.googlePayToken, googlePayDetails.googlePayToken) && + Objects.equals(this.recurringDetailReference, googlePayDetails.recurringDetailReference) && + Objects.equals(this.storedPaymentMethodId, googlePayDetails.storedPaymentMethodId) && + Objects.equals(this.threeDS2SdkVersion, googlePayDetails.threeDS2SdkVersion) && + Objects.equals(this.type, googlePayDetails.type); } @Override public int hashCode() { - return Objects.hash( - checkoutAttemptId, - fundingSource, - googlePayCardNetwork, - googlePayToken, - recurringDetailReference, - storedPaymentMethodId, - threeDS2SdkVersion, - type); + return Objects.hash(checkoutAttemptId, fundingSource, googlePayCardNetwork, googlePayToken, recurringDetailReference, storedPaymentMethodId, threeDS2SdkVersion, type); } @Override @@ -488,16 +444,10 @@ public String toString() { sb.append("class GooglePayDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); - sb.append(" googlePayCardNetwork: ") - .append(toIndentedString(googlePayCardNetwork)) - .append("\n"); + sb.append(" googlePayCardNetwork: ").append(toIndentedString(googlePayCardNetwork)).append("\n"); sb.append(" googlePayToken: ").append(toIndentedString(googlePayToken)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" threeDS2SdkVersion: ").append(toIndentedString(threeDS2SdkVersion)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -505,7 +455,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -514,7 +465,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of GooglePayDetails given an JSON string * * @param jsonString JSON string @@ -524,12 +475,11 @@ private String toIndentedString(Object o) { public static GooglePayDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GooglePayDetails.class); } - - /** - * Convert an instance of GooglePayDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of GooglePayDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/GooglePayDonations.java b/src/main/java/com/adyen/model/checkout/GooglePayDonations.java index 06fc459bb..746ca6ccc 100644 --- a/src/main/java/com/adyen/model/checkout/GooglePayDonations.java +++ b/src/main/java/com/adyen/model/checkout/GooglePayDonations.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** GooglePayDonations */ +/** + * GooglePayDonations + */ @JsonPropertyOrder({ GooglePayDonations.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, GooglePayDonations.JSON_PROPERTY_FUNDING_SOURCE, @@ -32,15 +37,16 @@ GooglePayDonations.JSON_PROPERTY_THREE_D_S2_SDK_VERSION, GooglePayDonations.JSON_PROPERTY_TYPE }) + public class GooglePayDonations { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ public enum FundingSourceEnum { + CREDIT(String.valueOf("credit")), DEBIT(String.valueOf("debit")); @@ -50,7 +56,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -71,11 +77,7 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FundingSourceEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FundingSourceEnum.values())); + LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -99,8 +101,11 @@ public static FundingSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S2_SDK_VERSION = "threeDS2SdkVersion"; private String threeDS2SdkVersion; - /** **googlepay**, **paywithgoogle** */ + /** + * **googlepay**, **paywithgoogle** + */ public enum TypeEnum { + GOOGLEPAY(String.valueOf("googlepay")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -108,7 +113,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -129,11 +134,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -141,7 +142,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public GooglePayDonations() {} + public GooglePayDonations() { + } /** * The checkout attempt identifier. @@ -156,7 +158,6 @@ public GooglePayDonations checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -177,12 +178,9 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * @return the current {@code GooglePayDonations} instance, allowing for method chaining */ public GooglePayDonations fundingSource(FundingSourceEnum fundingSource) { @@ -191,12 +189,8 @@ public GooglePayDonations fundingSource(FundingSourceEnum fundingSource) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. - * - * @return fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @return fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -205,12 +199,9 @@ public FundingSourceEnum getFundingSource() { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,9 +210,9 @@ public void setFundingSource(FundingSourceEnum fundingSource) { } /** - * The selected payment card network. + * The selected payment card network. * - * @param googlePayCardNetwork The selected payment card network. + * @param googlePayCardNetwork The selected payment card network. * @return the current {@code GooglePayDonations} instance, allowing for method chaining */ public GooglePayDonations googlePayCardNetwork(String googlePayCardNetwork) { @@ -230,9 +221,8 @@ public GooglePayDonations googlePayCardNetwork(String googlePayCardNetwork) { } /** - * The selected payment card network. - * - * @return googlePayCardNetwork The selected payment card network. + * The selected payment card network. + * @return googlePayCardNetwork The selected payment card network. */ @JsonProperty(JSON_PROPERTY_GOOGLE_PAY_CARD_NETWORK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -241,9 +231,9 @@ public String getGooglePayCardNetwork() { } /** - * The selected payment card network. + * The selected payment card network. * - * @param googlePayCardNetwork The selected payment card network. + * @param googlePayCardNetwork The selected payment card network. */ @JsonProperty(JSON_PROPERTY_GOOGLE_PAY_CARD_NETWORK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,13 +242,9 @@ public void setGooglePayCardNetwork(String googlePayCardNetwork) { } /** - * The `token` that you obtained from the [Google Pay - * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) - * `PaymentData` response. + * The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. * - * @param googlePayToken The `token` that you obtained from the [Google Pay - * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) - * `PaymentData` response. + * @param googlePayToken The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. * @return the current {@code GooglePayDonations} instance, allowing for method chaining */ public GooglePayDonations googlePayToken(String googlePayToken) { @@ -267,13 +253,8 @@ public GooglePayDonations googlePayToken(String googlePayToken) { } /** - * The `token` that you obtained from the [Google Pay - * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) - * `PaymentData` response. - * - * @return googlePayToken The `token` that you obtained from the [Google Pay - * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) - * `PaymentData` response. + * The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. + * @return googlePayToken The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. */ @JsonProperty(JSON_PROPERTY_GOOGLE_PAY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -282,13 +263,9 @@ public String getGooglePayToken() { } /** - * The `token` that you obtained from the [Google Pay - * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) - * `PaymentData` response. + * The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. * - * @param googlePayToken The `token` that you obtained from the [Google Pay - * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) - * `PaymentData` response. + * @param googlePayToken The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. */ @JsonProperty(JSON_PROPERTY_GOOGLE_PAY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -297,13 +274,13 @@ public void setGooglePayToken(String googlePayToken) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code GooglePayDonations} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public GooglePayDonations recurringDetailReference(String recurringDetailReference) { @@ -312,11 +289,8 @@ public GooglePayDonations recurringDetailReference(String recurringDetailReferen } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -327,12 +301,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -342,11 +316,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code GooglePayDonations} instance, allowing for method chaining */ public GooglePayDonations storedPaymentMethodId(String storedPaymentMethodId) { @@ -355,11 +327,8 @@ public GooglePayDonations storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -368,11 +337,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -383,8 +350,7 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. * - * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile - * SDK. + * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. * @return the current {@code GooglePayDonations} instance, allowing for method chaining */ public GooglePayDonations threeDS2SdkVersion(String threeDS2SdkVersion) { @@ -394,9 +360,7 @@ public GooglePayDonations threeDS2SdkVersion(String threeDS2SdkVersion) { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. - * - * @return threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile - * SDK. + * @return threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_SDK_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -407,8 +371,7 @@ public String getThreeDS2SdkVersion() { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. * - * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile - * SDK. + * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_SDK_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -429,7 +392,6 @@ public GooglePayDonations type(TypeEnum type) { /** * **googlepay**, **paywithgoogle** - * * @return type **googlepay**, **paywithgoogle** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -449,7 +411,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this GooglePayDonations object is equal to o. */ + /** + * Return true if this GooglePayDonations object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -459,28 +423,19 @@ public boolean equals(Object o) { return false; } GooglePayDonations googlePayDonations = (GooglePayDonations) o; - return Objects.equals(this.checkoutAttemptId, googlePayDonations.checkoutAttemptId) - && Objects.equals(this.fundingSource, googlePayDonations.fundingSource) - && Objects.equals(this.googlePayCardNetwork, googlePayDonations.googlePayCardNetwork) - && Objects.equals(this.googlePayToken, googlePayDonations.googlePayToken) - && Objects.equals( - this.recurringDetailReference, googlePayDonations.recurringDetailReference) - && Objects.equals(this.storedPaymentMethodId, googlePayDonations.storedPaymentMethodId) - && Objects.equals(this.threeDS2SdkVersion, googlePayDonations.threeDS2SdkVersion) - && Objects.equals(this.type, googlePayDonations.type); + return Objects.equals(this.checkoutAttemptId, googlePayDonations.checkoutAttemptId) && + Objects.equals(this.fundingSource, googlePayDonations.fundingSource) && + Objects.equals(this.googlePayCardNetwork, googlePayDonations.googlePayCardNetwork) && + Objects.equals(this.googlePayToken, googlePayDonations.googlePayToken) && + Objects.equals(this.recurringDetailReference, googlePayDonations.recurringDetailReference) && + Objects.equals(this.storedPaymentMethodId, googlePayDonations.storedPaymentMethodId) && + Objects.equals(this.threeDS2SdkVersion, googlePayDonations.threeDS2SdkVersion) && + Objects.equals(this.type, googlePayDonations.type); } @Override public int hashCode() { - return Objects.hash( - checkoutAttemptId, - fundingSource, - googlePayCardNetwork, - googlePayToken, - recurringDetailReference, - storedPaymentMethodId, - threeDS2SdkVersion, - type); + return Objects.hash(checkoutAttemptId, fundingSource, googlePayCardNetwork, googlePayToken, recurringDetailReference, storedPaymentMethodId, threeDS2SdkVersion, type); } @Override @@ -489,16 +444,10 @@ public String toString() { sb.append("class GooglePayDonations {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); - sb.append(" googlePayCardNetwork: ") - .append(toIndentedString(googlePayCardNetwork)) - .append("\n"); + sb.append(" googlePayCardNetwork: ").append(toIndentedString(googlePayCardNetwork)).append("\n"); sb.append(" googlePayToken: ").append(toIndentedString(googlePayToken)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" threeDS2SdkVersion: ").append(toIndentedString(threeDS2SdkVersion)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -506,7 +455,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -515,23 +465,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of GooglePayDonations given an JSON string * * @param jsonString JSON string * @return An instance of GooglePayDonations - * @throws JsonProcessingException if the JSON string is invalid with respect to - * GooglePayDonations + * @throws JsonProcessingException if the JSON string is invalid with respect to GooglePayDonations */ public static GooglePayDonations fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GooglePayDonations.class); } - - /** - * Convert an instance of GooglePayDonations to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of GooglePayDonations to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/IdealDetails.java b/src/main/java/com/adyen/model/checkout/IdealDetails.java index 6395e4994..62a985d01 100644 --- a/src/main/java/com/adyen/model/checkout/IdealDetails.java +++ b/src/main/java/com/adyen/model/checkout/IdealDetails.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** IdealDetails */ +/** + * IdealDetails + */ @JsonPropertyOrder({ IdealDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, IdealDetails.JSON_PROPERTY_ISSUER, @@ -29,6 +34,7 @@ IdealDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, IdealDetails.JSON_PROPERTY_TYPE }) + public class IdealDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -43,8 +49,11 @@ public class IdealDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** **ideal** */ + /** + * **ideal** + */ public enum TypeEnum { + IDEAL(String.valueOf("ideal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +61,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,11 +82,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -85,7 +90,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public IdealDetails() {} + public IdealDetails() { + } /** * The checkout attempt identifier. @@ -100,7 +106,6 @@ public IdealDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -121,11 +126,9 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL - * issuer to preselect it. + * The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL issuer to preselect it. * - * @param issuer The iDEAL issuer value of the shopper's selected bank. Set this to an **id** - * of an iDEAL issuer to preselect it. + * @param issuer The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL issuer to preselect it. * @return the current {@code IdealDetails} instance, allowing for method chaining */ public IdealDetails issuer(String issuer) { @@ -134,11 +137,8 @@ public IdealDetails issuer(String issuer) { } /** - * The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL - * issuer to preselect it. - * - * @return issuer The iDEAL issuer value of the shopper's selected bank. Set this to an **id** - * of an iDEAL issuer to preselect it. + * The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL issuer to preselect it. + * @return issuer The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL issuer to preselect it. */ @JsonProperty(JSON_PROPERTY_ISSUER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,11 +147,9 @@ public String getIssuer() { } /** - * The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL - * issuer to preselect it. + * The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL issuer to preselect it. * - * @param issuer The iDEAL issuer value of the shopper's selected bank. Set this to an **id** - * of an iDEAL issuer to preselect it. + * @param issuer The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL issuer to preselect it. */ @JsonProperty(JSON_PROPERTY_ISSUER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,13 +158,13 @@ public void setIssuer(String issuer) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code IdealDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public IdealDetails recurringDetailReference(String recurringDetailReference) { @@ -175,11 +173,8 @@ public IdealDetails recurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -190,12 +185,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -205,11 +200,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code IdealDetails} instance, allowing for method chaining */ public IdealDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -218,11 +211,8 @@ public IdealDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -231,11 +221,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -256,7 +244,6 @@ public IdealDetails type(TypeEnum type) { /** * **ideal** - * * @return type **ideal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -276,7 +263,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this IdealDetails object is equal to o. */ + /** + * Return true if this IdealDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -286,17 +275,16 @@ public boolean equals(Object o) { return false; } IdealDetails idealDetails = (IdealDetails) o; - return Objects.equals(this.checkoutAttemptId, idealDetails.checkoutAttemptId) - && Objects.equals(this.issuer, idealDetails.issuer) - && Objects.equals(this.recurringDetailReference, idealDetails.recurringDetailReference) - && Objects.equals(this.storedPaymentMethodId, idealDetails.storedPaymentMethodId) - && Objects.equals(this.type, idealDetails.type); + return Objects.equals(this.checkoutAttemptId, idealDetails.checkoutAttemptId) && + Objects.equals(this.issuer, idealDetails.issuer) && + Objects.equals(this.recurringDetailReference, idealDetails.recurringDetailReference) && + Objects.equals(this.storedPaymentMethodId, idealDetails.storedPaymentMethodId) && + Objects.equals(this.type, idealDetails.type); } @Override public int hashCode() { - return Objects.hash( - checkoutAttemptId, issuer, recurringDetailReference, storedPaymentMethodId, type); + return Objects.hash(checkoutAttemptId, issuer, recurringDetailReference, storedPaymentMethodId, type); } @Override @@ -305,19 +293,16 @@ public String toString() { sb.append("class IdealDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" issuer: ").append(toIndentedString(issuer)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -326,7 +311,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of IdealDetails given an JSON string * * @param jsonString JSON string @@ -336,12 +321,11 @@ private String toIndentedString(Object o) { public static IdealDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, IdealDetails.class); } - - /** - * Convert an instance of IdealDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of IdealDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/IdealDonations.java b/src/main/java/com/adyen/model/checkout/IdealDonations.java index 069c8661a..bf858dbeb 100644 --- a/src/main/java/com/adyen/model/checkout/IdealDonations.java +++ b/src/main/java/com/adyen/model/checkout/IdealDonations.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** IdealDonations */ +/** + * IdealDonations + */ @JsonPropertyOrder({ IdealDonations.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, IdealDonations.JSON_PROPERTY_ISSUER, @@ -29,6 +34,7 @@ IdealDonations.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, IdealDonations.JSON_PROPERTY_TYPE }) + public class IdealDonations { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -43,8 +49,11 @@ public class IdealDonations { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** **ideal** */ + /** + * **ideal** + */ public enum TypeEnum { + IDEAL(String.valueOf("ideal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +61,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,11 +82,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -85,7 +90,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public IdealDonations() {} + public IdealDonations() { + } /** * The checkout attempt identifier. @@ -100,7 +106,6 @@ public IdealDonations checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -121,11 +126,9 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL - * issuer to preselect it. + * The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL issuer to preselect it. * - * @param issuer The iDEAL issuer value of the shopper's selected bank. Set this to an **id** - * of an iDEAL issuer to preselect it. + * @param issuer The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL issuer to preselect it. * @return the current {@code IdealDonations} instance, allowing for method chaining */ public IdealDonations issuer(String issuer) { @@ -134,11 +137,8 @@ public IdealDonations issuer(String issuer) { } /** - * The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL - * issuer to preselect it. - * - * @return issuer The iDEAL issuer value of the shopper's selected bank. Set this to an **id** - * of an iDEAL issuer to preselect it. + * The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL issuer to preselect it. + * @return issuer The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL issuer to preselect it. */ @JsonProperty(JSON_PROPERTY_ISSUER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,11 +147,9 @@ public String getIssuer() { } /** - * The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL - * issuer to preselect it. + * The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL issuer to preselect it. * - * @param issuer The iDEAL issuer value of the shopper's selected bank. Set this to an **id** - * of an iDEAL issuer to preselect it. + * @param issuer The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL issuer to preselect it. */ @JsonProperty(JSON_PROPERTY_ISSUER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,13 +158,13 @@ public void setIssuer(String issuer) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code IdealDonations} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public IdealDonations recurringDetailReference(String recurringDetailReference) { @@ -175,11 +173,8 @@ public IdealDonations recurringDetailReference(String recurringDetailReference) } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -190,12 +185,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -205,11 +200,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code IdealDonations} instance, allowing for method chaining */ public IdealDonations storedPaymentMethodId(String storedPaymentMethodId) { @@ -218,11 +211,8 @@ public IdealDonations storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -231,11 +221,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -256,7 +244,6 @@ public IdealDonations type(TypeEnum type) { /** * **ideal** - * * @return type **ideal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -276,7 +263,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this IdealDonations object is equal to o. */ + /** + * Return true if this IdealDonations object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -286,17 +275,16 @@ public boolean equals(Object o) { return false; } IdealDonations idealDonations = (IdealDonations) o; - return Objects.equals(this.checkoutAttemptId, idealDonations.checkoutAttemptId) - && Objects.equals(this.issuer, idealDonations.issuer) - && Objects.equals(this.recurringDetailReference, idealDonations.recurringDetailReference) - && Objects.equals(this.storedPaymentMethodId, idealDonations.storedPaymentMethodId) - && Objects.equals(this.type, idealDonations.type); + return Objects.equals(this.checkoutAttemptId, idealDonations.checkoutAttemptId) && + Objects.equals(this.issuer, idealDonations.issuer) && + Objects.equals(this.recurringDetailReference, idealDonations.recurringDetailReference) && + Objects.equals(this.storedPaymentMethodId, idealDonations.storedPaymentMethodId) && + Objects.equals(this.type, idealDonations.type); } @Override public int hashCode() { - return Objects.hash( - checkoutAttemptId, issuer, recurringDetailReference, storedPaymentMethodId, type); + return Objects.hash(checkoutAttemptId, issuer, recurringDetailReference, storedPaymentMethodId, type); } @Override @@ -305,19 +293,16 @@ public String toString() { sb.append("class IdealDonations {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" issuer: ").append(toIndentedString(issuer)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -326,7 +311,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of IdealDonations given an JSON string * * @param jsonString JSON string @@ -336,12 +321,11 @@ private String toIndentedString(Object o) { public static IdealDonations fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, IdealDonations.class); } - - /** - * Convert an instance of IdealDonations to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of IdealDonations to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/InputDetail.java b/src/main/java/com/adyen/model/checkout/InputDetail.java index efb11c939..fd9833682 100644 --- a/src/main/java/com/adyen/model/checkout/InputDetail.java +++ b/src/main/java/com/adyen/model/checkout/InputDetail.java @@ -2,26 +2,37 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Item; +import com.adyen.model.checkout.SubInputDetail; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** InputDetail */ + +/** + * InputDetail + */ @JsonPropertyOrder({ InputDetail.JSON_PROPERTY_CONFIGURATION, InputDetail.JSON_PROPERTY_DETAILS, @@ -33,6 +44,7 @@ InputDetail.JSON_PROPERTY_TYPE, InputDetail.JSON_PROPERTY_VALUE }) + public class InputDetail { public static final String JSON_PROPERTY_CONFIGURATION = "configuration"; private Map configuration; @@ -41,7 +53,7 @@ public class InputDetail { private List details; public static final String JSON_PROPERTY_INPUT_DETAILS = "inputDetails"; - @Deprecated // deprecated + @Deprecated // deprecated private List inputDetails; public static final String JSON_PROPERTY_ITEM_SEARCH_URL = "itemSearchUrl"; @@ -62,7 +74,8 @@ public class InputDetail { public static final String JSON_PROPERTY_VALUE = "value"; private String value; - public InputDetail() {} + public InputDetail() { + } /** * Configuration parameters for the required input. @@ -85,7 +98,6 @@ public InputDetail putConfigurationItem(String key, String configurationItem) { /** * Configuration parameters for the required input. - * * @return configuration Configuration parameters for the required input. */ @JsonProperty(JSON_PROPERTY_CONFIGURATION) @@ -126,7 +138,6 @@ public InputDetail addDetailsItem(SubInputDetail detailsItem) { /** * Input details can also be provided recursively. - * * @return details Input details can also be provided recursively. */ @JsonProperty(JSON_PROPERTY_DETAILS) @@ -151,9 +162,10 @@ public void setDetails(List details) { * * @param inputDetails Input details can also be provided recursively (deprecated). * @return the current {@code InputDetail} instance, allowing for method chaining - * @deprecated + * + * @deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated public InputDetail inputDetails(List inputDetails) { this.inputDetails = inputDetails; return this; @@ -169,11 +181,10 @@ public InputDetail addInputDetailsItem(SubInputDetail inputDetailsItem) { /** * Input details can also be provided recursively (deprecated). - * * @return inputDetails Input details can also be provided recursively (deprecated). - * @deprecated // deprecated + * @deprecated // deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated @JsonProperty(JSON_PROPERTY_INPUT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getInputDetails() { @@ -184,9 +195,10 @@ public List getInputDetails() { * Input details can also be provided recursively (deprecated). * * @param inputDetails Input details can also be provided recursively (deprecated). - * @deprecated + * + * @deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated @JsonProperty(JSON_PROPERTY_INPUT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInputDetails(List inputDetails) { @@ -206,7 +218,6 @@ public InputDetail itemSearchUrl(String itemSearchUrl) { /** * In case of a select, the URL from which to query the items. - * * @return itemSearchUrl In case of a select, the URL from which to query the items. */ @JsonProperty(JSON_PROPERTY_ITEM_SEARCH_URL) @@ -247,7 +258,6 @@ public InputDetail addItemsItem(Item itemsItem) { /** * In case of a select, the items to choose from. - * * @return items In case of a select, the items to choose from. */ @JsonProperty(JSON_PROPERTY_ITEMS) @@ -280,7 +290,6 @@ public InputDetail key(String key) { /** * The value to provide in the result. - * * @return key The value to provide in the result. */ @JsonProperty(JSON_PROPERTY_KEY) @@ -313,7 +322,6 @@ public InputDetail optional(Boolean optional) { /** * True if this input value is optional. - * * @return optional True if this input value is optional. */ @JsonProperty(JSON_PROPERTY_OPTIONAL) @@ -346,7 +354,6 @@ public InputDetail type(String type) { /** * The type of the required input. - * * @return type The type of the required input. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -379,7 +386,6 @@ public InputDetail value(String value) { /** * The value can be pre-filled, if available. - * * @return value The value can be pre-filled, if available. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -399,7 +405,9 @@ public void setValue(String value) { this.value = value; } - /** Return true if this InputDetail object is equal to o. */ + /** + * Return true if this InputDetail object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -409,21 +417,20 @@ public boolean equals(Object o) { return false; } InputDetail inputDetail = (InputDetail) o; - return Objects.equals(this.configuration, inputDetail.configuration) - && Objects.equals(this.details, inputDetail.details) - && Objects.equals(this.inputDetails, inputDetail.inputDetails) - && Objects.equals(this.itemSearchUrl, inputDetail.itemSearchUrl) - && Objects.equals(this.items, inputDetail.items) - && Objects.equals(this.key, inputDetail.key) - && Objects.equals(this.optional, inputDetail.optional) - && Objects.equals(this.type, inputDetail.type) - && Objects.equals(this.value, inputDetail.value); + return Objects.equals(this.configuration, inputDetail.configuration) && + Objects.equals(this.details, inputDetail.details) && + Objects.equals(this.inputDetails, inputDetail.inputDetails) && + Objects.equals(this.itemSearchUrl, inputDetail.itemSearchUrl) && + Objects.equals(this.items, inputDetail.items) && + Objects.equals(this.key, inputDetail.key) && + Objects.equals(this.optional, inputDetail.optional) && + Objects.equals(this.type, inputDetail.type) && + Objects.equals(this.value, inputDetail.value); } @Override public int hashCode() { - return Objects.hash( - configuration, details, inputDetails, itemSearchUrl, items, key, optional, type, value); + return Objects.hash(configuration, details, inputDetails, itemSearchUrl, items, key, optional, type, value); } @Override @@ -444,7 +451,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -453,7 +461,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of InputDetail given an JSON string * * @param jsonString JSON string @@ -463,12 +471,11 @@ private String toIndentedString(Object o) { public static InputDetail fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, InputDetail.class); } - - /** - * Convert an instance of InputDetail to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of InputDetail to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/InstallmentOption.java b/src/main/java/com/adyen/model/checkout/InstallmentOption.java index 93ecc477e..0aba2f75e 100644 --- a/src/main/java/com/adyen/model/checkout/InstallmentOption.java +++ b/src/main/java/com/adyen/model/checkout/InstallmentOption.java @@ -2,40 +2,49 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** InstallmentOption */ + +/** + * InstallmentOption + */ @JsonPropertyOrder({ InstallmentOption.JSON_PROPERTY_MAX_VALUE, InstallmentOption.JSON_PROPERTY_PLANS, InstallmentOption.JSON_PROPERTY_PRESELECTED_VALUE, InstallmentOption.JSON_PROPERTY_VALUES }) + public class InstallmentOption { public static final String JSON_PROPERTY_MAX_VALUE = "maxValue"; private Integer maxValue; - /** Gets or Sets plans */ + /** + * Gets or Sets plans + */ public enum PlansEnum { + BONUS(String.valueOf("bonus")), BUYNOW_PAYLATER(String.valueOf("buynow_paylater")), @@ -61,7 +70,7 @@ public enum PlansEnum { private String value; PlansEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -82,11 +91,7 @@ public static PlansEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PlansEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PlansEnum.values())); + LOG.warning("PlansEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PlansEnum.values())); return null; } } @@ -100,7 +105,8 @@ public static PlansEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUES = "values"; private List values; - public InstallmentOption() {} + public InstallmentOption() { + } /** * The maximum number of installments offered for this payment method. @@ -115,7 +121,6 @@ public InstallmentOption maxValue(Integer maxValue) { /** * The maximum number of installments offered for this payment method. - * * @return maxValue The maximum number of installments offered for this payment method. */ @JsonProperty(JSON_PROPERTY_MAX_VALUE) @@ -136,11 +141,9 @@ public void setMaxValue(Integer maxValue) { } /** - * Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * - * **regular** * **revolving** + * Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving** * - * @param plans Defines the type of installment plan. If not set, defaults to **regular**. - * Possible values: * **regular** * **revolving** + * @param plans Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving** * @return the current {@code InstallmentOption} instance, allowing for method chaining */ public InstallmentOption plans(List plans) { @@ -157,11 +160,8 @@ public InstallmentOption addPlansItem(PlansEnum plansItem) { } /** - * Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * - * **regular** * **revolving** - * - * @return plans Defines the type of installment plan. If not set, defaults to **regular**. - * Possible values: * **regular** * **revolving** + * Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving** + * @return plans Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving** */ @JsonProperty(JSON_PROPERTY_PLANS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -170,11 +170,9 @@ public List getPlans() { } /** - * Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * - * **regular** * **revolving** + * Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving** * - * @param plans Defines the type of installment plan. If not set, defaults to **regular**. - * Possible values: * **regular** * **revolving** + * @param plans Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving** */ @JsonProperty(JSON_PROPERTY_PLANS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,7 +193,6 @@ public InstallmentOption preselectedValue(Integer preselectedValue) { /** * Preselected number of installments offered for this payment method. - * * @return preselectedValue Preselected number of installments offered for this payment method. */ @JsonProperty(JSON_PROPERTY_PRESELECTED_VALUE) @@ -216,11 +213,9 @@ public void setPreselectedValue(Integer preselectedValue) { } /** - * An array of the number of installments that the shopper can choose from. For example, - * **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. + * An array of the number of installments that the shopper can choose from. For example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. * - * @param values An array of the number of installments that the shopper can choose from. For - * example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. + * @param values An array of the number of installments that the shopper can choose from. For example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. * @return the current {@code InstallmentOption} instance, allowing for method chaining */ public InstallmentOption values(List values) { @@ -237,11 +232,8 @@ public InstallmentOption addValuesItem(Integer valuesItem) { } /** - * An array of the number of installments that the shopper can choose from. For example, - * **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. - * - * @return values An array of the number of installments that the shopper can choose from. For - * example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. + * An array of the number of installments that the shopper can choose from. For example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. + * @return values An array of the number of installments that the shopper can choose from. For example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. */ @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,11 +242,9 @@ public List getValues() { } /** - * An array of the number of installments that the shopper can choose from. For example, - * **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. + * An array of the number of installments that the shopper can choose from. For example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. * - * @param values An array of the number of installments that the shopper can choose from. For - * example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. + * @param values An array of the number of installments that the shopper can choose from. For example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. */ @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -262,7 +252,9 @@ public void setValues(List values) { this.values = values; } - /** Return true if this InstallmentOption object is equal to o. */ + /** + * Return true if this InstallmentOption object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -272,10 +264,10 @@ public boolean equals(Object o) { return false; } InstallmentOption installmentOption = (InstallmentOption) o; - return Objects.equals(this.maxValue, installmentOption.maxValue) - && Objects.equals(this.plans, installmentOption.plans) - && Objects.equals(this.preselectedValue, installmentOption.preselectedValue) - && Objects.equals(this.values, installmentOption.values); + return Objects.equals(this.maxValue, installmentOption.maxValue) && + Objects.equals(this.plans, installmentOption.plans) && + Objects.equals(this.preselectedValue, installmentOption.preselectedValue) && + Objects.equals(this.values, installmentOption.values); } @Override @@ -296,7 +288,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -305,7 +298,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of InstallmentOption given an JSON string * * @param jsonString JSON string @@ -315,12 +308,11 @@ private String toIndentedString(Object o) { public static InstallmentOption fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, InstallmentOption.class); } - - /** - * Convert an instance of InstallmentOption to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of InstallmentOption to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Installments.java b/src/main/java/com/adyen/model/checkout/Installments.java index aadb2e868..ca99703b4 100644 --- a/src/main/java/com/adyen/model/checkout/Installments.java +++ b/src/main/java/com/adyen/model/checkout/Installments.java @@ -2,43 +2,46 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** Installments */ +/** + * Installments + */ @JsonPropertyOrder({ Installments.JSON_PROPERTY_EXTRA, Installments.JSON_PROPERTY_PLAN, Installments.JSON_PROPERTY_VALUE }) + public class Installments { public static final String JSON_PROPERTY_EXTRA = "extra"; private Integer extra; /** - * The installment plan, used for [card installments in - * Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). - * and - * [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). - * By default, this is set to **regular**. + * The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. */ public enum PlanEnum { + BONUS(String.valueOf("bonus")), BUYNOW_PAYLATER(String.valueOf("buynow_paylater")), @@ -64,7 +67,7 @@ public enum PlanEnum { private String value; PlanEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -85,11 +88,7 @@ public static PlanEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PlanEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PlanEnum.values())); + LOG.warning("PlanEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PlanEnum.values())); return null; } } @@ -100,16 +99,13 @@ public static PlanEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUE = "value"; private Integer value; - public Installments() {} + public Installments() { + } /** - * Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. - * Used for [card installments in - * Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) + * Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. Used for [card installments in Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) * - * @param extra Defines the bonus percentage, refund percentage or if the transaction is Buy now - * Pay later. Used for [card installments in - * Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) + * @param extra Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. Used for [card installments in Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) * @return the current {@code Installments} instance, allowing for method chaining */ public Installments extra(Integer extra) { @@ -118,13 +114,8 @@ public Installments extra(Integer extra) { } /** - * Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. - * Used for [card installments in - * Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) - * - * @return extra Defines the bonus percentage, refund percentage or if the transaction is Buy now - * Pay later. Used for [card installments in - * Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) + * Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. Used for [card installments in Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) + * @return extra Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. Used for [card installments in Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) */ @JsonProperty(JSON_PROPERTY_EXTRA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -133,13 +124,9 @@ public Integer getExtra() { } /** - * Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. - * Used for [card installments in - * Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) + * Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. Used for [card installments in Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) * - * @param extra Defines the bonus percentage, refund percentage or if the transaction is Buy now - * Pay later. Used for [card installments in - * Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) + * @param extra Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. Used for [card installments in Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) */ @JsonProperty(JSON_PROPERTY_EXTRA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,17 +135,9 @@ public void setExtra(Integer extra) { } /** - * The installment plan, used for [card installments in - * Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). - * and - * [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). - * By default, this is set to **regular**. + * The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. * - * @param plan The installment plan, used for [card installments in - * Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). - * and - * [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). - * By default, this is set to **regular**. + * @param plan The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. * @return the current {@code Installments} instance, allowing for method chaining */ public Installments plan(PlanEnum plan) { @@ -167,17 +146,8 @@ public Installments plan(PlanEnum plan) { } /** - * The installment plan, used for [card installments in - * Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). - * and - * [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). - * By default, this is set to **regular**. - * - * @return plan The installment plan, used for [card installments in - * Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). - * and - * [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). - * By default, this is set to **regular**. + * The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. + * @return plan The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. */ @JsonProperty(JSON_PROPERTY_PLAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,17 +156,9 @@ public PlanEnum getPlan() { } /** - * The installment plan, used for [card installments in - * Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). - * and - * [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). - * By default, this is set to **regular**. + * The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. * - * @param plan The installment plan, used for [card installments in - * Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). - * and - * [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). - * By default, this is set to **regular**. + * @param plan The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. */ @JsonProperty(JSON_PROPERTY_PLAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -205,15 +167,9 @@ public void setPlan(PlanEnum plan) { } /** - * Defines the number of installments. Usually, the maximum allowed number of installments is - * capped. For example, it may not be possible to split a payment in more than 24 installments. - * The acquirer sets this upper limit, so its value may vary. This value can be zero for - * Installments processed in Mexico. + * Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. This value can be zero for Installments processed in Mexico. * - * @param value Defines the number of installments. Usually, the maximum allowed number of - * installments is capped. For example, it may not be possible to split a payment in more than - * 24 installments. The acquirer sets this upper limit, so its value may vary. This value can - * be zero for Installments processed in Mexico. + * @param value Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. This value can be zero for Installments processed in Mexico. * @return the current {@code Installments} instance, allowing for method chaining */ public Installments value(Integer value) { @@ -222,15 +178,8 @@ public Installments value(Integer value) { } /** - * Defines the number of installments. Usually, the maximum allowed number of installments is - * capped. For example, it may not be possible to split a payment in more than 24 installments. - * The acquirer sets this upper limit, so its value may vary. This value can be zero for - * Installments processed in Mexico. - * - * @return value Defines the number of installments. Usually, the maximum allowed number of - * installments is capped. For example, it may not be possible to split a payment in more than - * 24 installments. The acquirer sets this upper limit, so its value may vary. This value can - * be zero for Installments processed in Mexico. + * Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. This value can be zero for Installments processed in Mexico. + * @return value Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. This value can be zero for Installments processed in Mexico. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -239,15 +188,9 @@ public Integer getValue() { } /** - * Defines the number of installments. Usually, the maximum allowed number of installments is - * capped. For example, it may not be possible to split a payment in more than 24 installments. - * The acquirer sets this upper limit, so its value may vary. This value can be zero for - * Installments processed in Mexico. + * Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. This value can be zero for Installments processed in Mexico. * - * @param value Defines the number of installments. Usually, the maximum allowed number of - * installments is capped. For example, it may not be possible to split a payment in more than - * 24 installments. The acquirer sets this upper limit, so its value may vary. This value can - * be zero for Installments processed in Mexico. + * @param value Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. This value can be zero for Installments processed in Mexico. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -255,7 +198,9 @@ public void setValue(Integer value) { this.value = value; } - /** Return true if this Installments object is equal to o. */ + /** + * Return true if this Installments object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -265,9 +210,9 @@ public boolean equals(Object o) { return false; } Installments installments = (Installments) o; - return Objects.equals(this.extra, installments.extra) - && Objects.equals(this.plan, installments.plan) - && Objects.equals(this.value, installments.value); + return Objects.equals(this.extra, installments.extra) && + Objects.equals(this.plan, installments.plan) && + Objects.equals(this.value, installments.value); } @Override @@ -287,7 +232,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -296,7 +242,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Installments given an JSON string * * @param jsonString JSON string @@ -306,12 +252,11 @@ private String toIndentedString(Object o) { public static Installments fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Installments.class); } - - /** - * Convert an instance of Installments to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Installments to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/InvalidField.java b/src/main/java/com/adyen/model/checkout/InvalidField.java index 715211f87..5c8a4160f 100644 --- a/src/main/java/com/adyen/model/checkout/InvalidField.java +++ b/src/main/java/com/adyen/model/checkout/InvalidField.java @@ -2,27 +2,37 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** InvalidField */ + +/** + * InvalidField + */ @JsonPropertyOrder({ InvalidField.JSON_PROPERTY_NAME, InvalidField.JSON_PROPERTY_VALUE, InvalidField.JSON_PROPERTY_MESSAGE }) + public class InvalidField { public static final String JSON_PROPERTY_NAME = "name"; private String name; @@ -33,7 +43,8 @@ public class InvalidField { public static final String JSON_PROPERTY_MESSAGE = "message"; private String message; - public InvalidField() {} + public InvalidField() { + } /** * The field that has an invalid value. @@ -48,7 +59,6 @@ public InvalidField name(String name) { /** * The field that has an invalid value. - * * @return name The field that has an invalid value. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -81,7 +91,6 @@ public InvalidField value(String value) { /** * The invalid value. - * * @return value The invalid value. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -114,7 +123,6 @@ public InvalidField message(String message) { /** * Description of the validation error. - * * @return message Description of the validation error. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -134,7 +142,9 @@ public void setMessage(String message) { this.message = message; } - /** Return true if this InvalidField object is equal to o. */ + /** + * Return true if this InvalidField object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,9 +154,9 @@ public boolean equals(Object o) { return false; } InvalidField invalidField = (InvalidField) o; - return Objects.equals(this.name, invalidField.name) - && Objects.equals(this.value, invalidField.value) - && Objects.equals(this.message, invalidField.message); + return Objects.equals(this.name, invalidField.name) && + Objects.equals(this.value, invalidField.value) && + Objects.equals(this.message, invalidField.message); } @Override @@ -166,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of InvalidField given an JSON string * * @param jsonString JSON string @@ -185,12 +196,11 @@ private String toIndentedString(Object o) { public static InvalidField fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, InvalidField.class); } - - /** - * Convert an instance of InvalidField to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of InvalidField to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Item.java b/src/main/java/com/adyen/model/checkout/Item.java index 49ba2aae0..50db83359 100644 --- a/src/main/java/com/adyen/model/checkout/Item.java +++ b/src/main/java/com/adyen/model/checkout/Item.java @@ -2,23 +2,36 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Item */ -@JsonPropertyOrder({Item.JSON_PROPERTY_ID, Item.JSON_PROPERTY_NAME}) + +/** + * Item + */ +@JsonPropertyOrder({ + Item.JSON_PROPERTY_ID, + Item.JSON_PROPERTY_NAME +}) + public class Item { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -26,7 +39,8 @@ public class Item { public static final String JSON_PROPERTY_NAME = "name"; private String name; - public Item() {} + public Item() { + } /** * The value to provide in the result. @@ -41,7 +55,6 @@ public Item id(String id) { /** * The value to provide in the result. - * * @return id The value to provide in the result. */ @JsonProperty(JSON_PROPERTY_ID) @@ -74,7 +87,6 @@ public Item name(String name) { /** * The display name. - * * @return name The display name. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -94,7 +106,9 @@ public void setName(String name) { this.name = name; } - /** Return true if this Item object is equal to o. */ + /** + * Return true if this Item object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -104,7 +118,8 @@ public boolean equals(Object o) { return false; } Item item = (Item) o; - return Objects.equals(this.id, item.id) && Objects.equals(this.name, item.name); + return Objects.equals(this.id, item.id) && + Objects.equals(this.name, item.name); } @Override @@ -123,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -132,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Item given an JSON string * * @param jsonString JSON string @@ -142,12 +158,11 @@ private String toIndentedString(Object o) { public static Item fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Item.class); } - - /** - * Convert an instance of Item to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Item to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/JSON.java b/src/main/java/com/adyen/model/checkout/JSON.java index 80cec4f24..dc6bc5042 100644 --- a/src/main/java/com/adyen/model/checkout/JSON.java +++ b/src/main/java/com/adyen/model/checkout/JSON.java @@ -1,18 +1,21 @@ package com.adyen.model.checkout; -import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; +import com.adyen.serializer.ByteArrayDeserializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; +import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; +import com.adyen.model.checkout.*; + import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -37,7 +40,6 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. - * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -54,13 +56,11 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { - return mapper; - } + public static ObjectMapper getMapper() { return mapper; } /** - * Returns the target model class that should be used to deserialize the input data. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,7 +73,9 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** Helper class to register the discriminator mappings. */ + /** + * Helper class to register the discriminator mappings. + */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -115,9 +117,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. This - * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -162,14 +164,13 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so - * it's not possible to use the instanceof keyword. + * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, + * so it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf( - Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -193,58 +194,59 @@ public static boolean isInstanceOf( return false; } - /** A map of discriminators for all model classes. */ - private static final Map, ClassDiscriminatorMapping> modelDiscriminators = - new HashMap, ClassDiscriminatorMapping>(); + /** + * A map of discriminators for all model classes. + */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); - /** A map of oneOf/anyOf descendants for each model class. */ + /** + * A map of oneOf/anyOf descendants for each model class. + */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator( - Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = - new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants( - Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants(Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static { + static + { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/checkout/KlarnaDetails.java b/src/main/java/com/adyen/model/checkout/KlarnaDetails.java index 0e9cb4f44..96656584e 100644 --- a/src/main/java/com/adyen/model/checkout/KlarnaDetails.java +++ b/src/main/java/com/adyen/model/checkout/KlarnaDetails.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** KlarnaDetails */ +/** + * KlarnaDetails + */ @JsonPropertyOrder({ KlarnaDetails.JSON_PROPERTY_BILLING_ADDRESS, KlarnaDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, @@ -32,6 +37,7 @@ KlarnaDetails.JSON_PROPERTY_SUBTYPE, KlarnaDetails.JSON_PROPERTY_TYPE }) + public class KlarnaDetails { public static final String JSON_PROPERTY_BILLING_ADDRESS = "billingAddress"; private String billingAddress; @@ -55,8 +61,11 @@ public class KlarnaDetails { public static final String JSON_PROPERTY_SUBTYPE = "subtype"; private String subtype; - /** **klarna** */ + /** + * **klarna** + */ public enum TypeEnum { + KLARNA(String.valueOf("klarna")), KLARNAPAYMENTS(String.valueOf("klarnapayments")), @@ -76,7 +85,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -97,11 +106,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -109,7 +114,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public KlarnaDetails() {} + public KlarnaDetails() { + } /** * The address where to send the invoice. @@ -124,7 +130,6 @@ public KlarnaDetails billingAddress(String billingAddress) { /** * The address where to send the invoice. - * * @return billingAddress The address where to send the invoice. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @@ -157,7 +162,6 @@ public KlarnaDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -190,7 +194,6 @@ public KlarnaDetails deliveryAddress(String deliveryAddress) { /** * The address where the goods should be delivered. - * * @return deliveryAddress The address where the goods should be delivered. */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @@ -223,7 +226,6 @@ public KlarnaDetails personalDetails(String personalDetails) { /** * Shopper name, date of birth, phone number, and email address. - * * @return personalDetails Shopper name, date of birth, phone number, and email address. */ @JsonProperty(JSON_PROPERTY_PERSONAL_DETAILS) @@ -244,13 +246,13 @@ public void setPersonalDetails(String personalDetails) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code KlarnaDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public KlarnaDetails recurringDetailReference(String recurringDetailReference) { @@ -259,11 +261,8 @@ public KlarnaDetails recurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -274,12 +273,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -289,11 +288,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code KlarnaDetails} instance, allowing for method chaining */ public KlarnaDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -302,11 +299,8 @@ public KlarnaDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -315,11 +309,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -340,7 +332,6 @@ public KlarnaDetails subtype(String subtype) { /** * The type of flow to initiate. - * * @return subtype The type of flow to initiate. */ @JsonProperty(JSON_PROPERTY_SUBTYPE) @@ -373,7 +364,6 @@ public KlarnaDetails type(TypeEnum type) { /** * **klarna** - * * @return type **klarna** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -393,7 +383,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this KlarnaDetails object is equal to o. */ + /** + * Return true if this KlarnaDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -403,27 +395,19 @@ public boolean equals(Object o) { return false; } KlarnaDetails klarnaDetails = (KlarnaDetails) o; - return Objects.equals(this.billingAddress, klarnaDetails.billingAddress) - && Objects.equals(this.checkoutAttemptId, klarnaDetails.checkoutAttemptId) - && Objects.equals(this.deliveryAddress, klarnaDetails.deliveryAddress) - && Objects.equals(this.personalDetails, klarnaDetails.personalDetails) - && Objects.equals(this.recurringDetailReference, klarnaDetails.recurringDetailReference) - && Objects.equals(this.storedPaymentMethodId, klarnaDetails.storedPaymentMethodId) - && Objects.equals(this.subtype, klarnaDetails.subtype) - && Objects.equals(this.type, klarnaDetails.type); + return Objects.equals(this.billingAddress, klarnaDetails.billingAddress) && + Objects.equals(this.checkoutAttemptId, klarnaDetails.checkoutAttemptId) && + Objects.equals(this.deliveryAddress, klarnaDetails.deliveryAddress) && + Objects.equals(this.personalDetails, klarnaDetails.personalDetails) && + Objects.equals(this.recurringDetailReference, klarnaDetails.recurringDetailReference) && + Objects.equals(this.storedPaymentMethodId, klarnaDetails.storedPaymentMethodId) && + Objects.equals(this.subtype, klarnaDetails.subtype) && + Objects.equals(this.type, klarnaDetails.type); } @Override public int hashCode() { - return Objects.hash( - billingAddress, - checkoutAttemptId, - deliveryAddress, - personalDetails, - recurringDetailReference, - storedPaymentMethodId, - subtype, - type); + return Objects.hash(billingAddress, checkoutAttemptId, deliveryAddress, personalDetails, recurringDetailReference, storedPaymentMethodId, subtype, type); } @Override @@ -434,12 +418,8 @@ public String toString() { sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" deliveryAddress: ").append(toIndentedString(deliveryAddress)).append("\n"); sb.append(" personalDetails: ").append(toIndentedString(personalDetails)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -447,7 +427,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -456,7 +437,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of KlarnaDetails given an JSON string * * @param jsonString JSON string @@ -466,12 +447,11 @@ private String toIndentedString(Object o) { public static KlarnaDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, KlarnaDetails.class); } - - /** - * Convert an instance of KlarnaDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of KlarnaDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Leg.java b/src/main/java/com/adyen/model/checkout/Leg.java index ded1d82ab..77f8daeb3 100644 --- a/src/main/java/com/adyen/model/checkout/Leg.java +++ b/src/main/java/com/adyen/model/checkout/Leg.java @@ -2,23 +2,32 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.time.OffsetDateTime; -import java.util.*; -/** Leg */ + +/** + * Leg + */ @JsonPropertyOrder({ Leg.JSON_PROPERTY_CARRIER_CODE, Leg.JSON_PROPERTY_CLASS_OF_TRAVEL, @@ -30,6 +39,7 @@ Leg.JSON_PROPERTY_FLIGHT_NUMBER, Leg.JSON_PROPERTY_STOP_OVER_CODE }) + public class Leg { public static final String JSON_PROPERTY_CARRIER_CODE = "carrierCode"; private String carrierCode; @@ -58,18 +68,13 @@ public class Leg { public static final String JSON_PROPERTY_STOP_OVER_CODE = "stopOverCode"; private String stopOverCode; - public Leg() {} + public Leg() { + } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that - * identifies the carrier. This field is required if the airline data includes leg details. * - * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start - * with a space or be all spaces. * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param carrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter - * accounting code (PAX) that identifies the carrier. This field is required if the airline - * data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: - * 2 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param carrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. * Must not be all zeros. * @return the current {@code Leg} instance, allowing for method chaining */ public Leg carrierCode(String carrierCode) { @@ -78,15 +83,8 @@ public Leg carrierCode(String carrierCode) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that - * identifies the carrier. This field is required if the airline data includes leg details. * - * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start - * with a space or be all spaces. * Must not be all zeros. - * - * @return carrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter - * accounting code (PAX) that identifies the carrier. This field is required if the airline - * data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: - * 2 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @return carrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CARRIER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -95,15 +93,9 @@ public String getCarrierCode() { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that - * identifies the carrier. This field is required if the airline data includes leg details. * - * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start - * with a space or be all spaces. * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param carrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter - * accounting code (PAX) that identifies the carrier. This field is required if the airline - * data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: - * 2 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param carrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CARRIER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,14 +104,9 @@ public void setCarrierCode(String carrierCode) { } /** - * A one-letter travel class identifier. The following are common: * F: first class * J: business - * class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * - * maxLength: 1 character * Must not start with a space or be all spaces. * Must not be all zeros. + * A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param classOfTravel A one-letter travel class identifier. The following are common: * F: first - * class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * - * minLength: 1 character * maxLength: 1 character * Must not start with a space or be all - * spaces. * Must not be all zeros. + * @param classOfTravel A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not start with a space or be all spaces. * Must not be all zeros. * @return the current {@code Leg} instance, allowing for method chaining */ public Leg classOfTravel(String classOfTravel) { @@ -128,14 +115,8 @@ public Leg classOfTravel(String classOfTravel) { } /** - * A one-letter travel class identifier. The following are common: * F: first class * J: business - * class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * - * maxLength: 1 character * Must not start with a space or be all spaces. * Must not be all zeros. - * - * @return classOfTravel A one-letter travel class identifier. The following are common: * F: - * first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * - * minLength: 1 character * maxLength: 1 character * Must not start with a space or be all - * spaces. * Must not be all zeros. + * A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not start with a space or be all spaces. * Must not be all zeros. + * @return classOfTravel A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CLASS_OF_TRAVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,14 +125,9 @@ public String getClassOfTravel() { } /** - * A one-letter travel class identifier. The following are common: * F: first class * J: business - * class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * - * maxLength: 1 character * Must not start with a space or be all spaces. * Must not be all zeros. + * A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param classOfTravel A one-letter travel class identifier. The following are common: * F: first - * class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * - * minLength: 1 character * maxLength: 1 character * Must not start with a space or be all - * spaces. * Must not be all zeros. + * @param classOfTravel A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CLASS_OF_TRAVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,11 +136,9 @@ public void setClassOfTravel(String classOfTravel) { } /** - * Date and time of travel in format `yyyy-MM-ddTHH:mm`. * Use local time of departure - * airport. * minLength: 16 characters * maxLength: 16 characters + * Date and time of travel in format `yyyy-MM-ddTHH:mm`. * Use local time of departure airport. * minLength: 16 characters * maxLength: 16 characters * - * @param dateOfTravel Date and time of travel in format `yyyy-MM-ddTHH:mm`. * Use local - * time of departure airport. * minLength: 16 characters * maxLength: 16 characters + * @param dateOfTravel Date and time of travel in format `yyyy-MM-ddTHH:mm`. * Use local time of departure airport. * minLength: 16 characters * maxLength: 16 characters * @return the current {@code Leg} instance, allowing for method chaining */ public Leg dateOfTravel(OffsetDateTime dateOfTravel) { @@ -173,11 +147,8 @@ public Leg dateOfTravel(OffsetDateTime dateOfTravel) { } /** - * Date and time of travel in format `yyyy-MM-ddTHH:mm`. * Use local time of departure - * airport. * minLength: 16 characters * maxLength: 16 characters - * - * @return dateOfTravel Date and time of travel in format `yyyy-MM-ddTHH:mm`. * Use - * local time of departure airport. * minLength: 16 characters * maxLength: 16 characters + * Date and time of travel in format `yyyy-MM-ddTHH:mm`. * Use local time of departure airport. * minLength: 16 characters * maxLength: 16 characters + * @return dateOfTravel Date and time of travel in format `yyyy-MM-ddTHH:mm`. * Use local time of departure airport. * minLength: 16 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_DATE_OF_TRAVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,11 +157,9 @@ public OffsetDateTime getDateOfTravel() { } /** - * Date and time of travel in format `yyyy-MM-ddTHH:mm`. * Use local time of departure - * airport. * minLength: 16 characters * maxLength: 16 characters + * Date and time of travel in format `yyyy-MM-ddTHH:mm`. * Use local time of departure airport. * minLength: 16 characters * maxLength: 16 characters * - * @param dateOfTravel Date and time of travel in format `yyyy-MM-ddTHH:mm`. * Use local - * time of departure airport. * minLength: 16 characters * maxLength: 16 characters + * @param dateOfTravel Date and time of travel in format `yyyy-MM-ddTHH:mm`. * Use local time of departure airport. * minLength: 16 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_DATE_OF_TRAVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -199,16 +168,9 @@ public void setDateOfTravel(OffsetDateTime dateOfTravel) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the - * departure airport. This field is required if the airline data includes leg details. * Encoding: - * ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * - * Must not start with a space or be all spaces. * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param departureAirportCode The [IATA](https://www.iata.org/services/pages/codes.aspx) - * three-letter airport code of the departure airport. This field is required if the airline - * data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 - * characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must - * not be all zeros. + * @param departureAirportCode The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. * @return the current {@code Leg} instance, allowing for method chaining */ public Leg departureAirportCode(String departureAirportCode) { @@ -217,16 +179,8 @@ public Leg departureAirportCode(String departureAirportCode) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the - * departure airport. This field is required if the airline data includes leg details. * Encoding: - * ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * - * Must not start with a space or be all spaces. * Must not be all zeros. - * - * @return departureAirportCode The [IATA](https://www.iata.org/services/pages/codes.aspx) - * three-letter airport code of the departure airport. This field is required if the airline - * data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 - * characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must - * not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @return departureAirportCode The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_DEPARTURE_AIRPORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -235,16 +189,9 @@ public String getDepartureAirportCode() { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the - * departure airport. This field is required if the airline data includes leg details. * Encoding: - * ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * - * Must not start with a space or be all spaces. * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param departureAirportCode The [IATA](https://www.iata.org/services/pages/codes.aspx) - * three-letter airport code of the departure airport. This field is required if the airline - * data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 - * characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must - * not be all zeros. + * @param departureAirportCode The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_DEPARTURE_AIRPORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -253,13 +200,9 @@ public void setDepartureAirportCode(String departureAirportCode) { } /** - * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * - * minLength: 1 * maxLength: 11 * Must not be all zeros. + * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 11 * Must not be all zeros. * - * @param departureTax The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) - * charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * Encoding: Numeric * minLength: 1 * maxLength: 11 * Must not be all zeros. + * @param departureTax The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 11 * Must not be all zeros. * @return the current {@code Leg} instance, allowing for method chaining */ public Leg departureTax(Long departureTax) { @@ -268,13 +211,8 @@ public Leg departureTax(Long departureTax) { } /** - * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * - * minLength: 1 * maxLength: 11 * Must not be all zeros. - * - * @return departureTax The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) - * charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * Encoding: Numeric * minLength: 1 * maxLength: 11 * Must not be all zeros. + * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 11 * Must not be all zeros. + * @return departureTax The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 11 * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_DEPARTURE_TAX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -283,13 +221,9 @@ public Long getDepartureTax() { } /** - * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * - * minLength: 1 * maxLength: 11 * Must not be all zeros. + * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 11 * Must not be all zeros. * - * @param departureTax The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) - * charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * Encoding: Numeric * minLength: 1 * maxLength: 11 * Must not be all zeros. + * @param departureTax The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 11 * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_DEPARTURE_TAX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -298,16 +232,9 @@ public void setDepartureTax(Long departureTax) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the - * destination airport. This field is required if the airline data includes leg details. * - * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 - * characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param destinationAirportCode The [IATA](https://www.iata.org/services/pages/codes.aspx) - * 3-letter airport code of the destination airport. This field is required if the airline - * data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 - * characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must - * not be all zeros. + * @param destinationAirportCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. * @return the current {@code Leg} instance, allowing for method chaining */ public Leg destinationAirportCode(String destinationAirportCode) { @@ -316,16 +243,8 @@ public Leg destinationAirportCode(String destinationAirportCode) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the - * destination airport. This field is required if the airline data includes leg details. * - * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 - * characters * Must not start with a space or be all spaces. * Must not be all zeros. - * - * @return destinationAirportCode The [IATA](https://www.iata.org/services/pages/codes.aspx) - * 3-letter airport code of the destination airport. This field is required if the airline - * data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 - * characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must - * not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @return destinationAirportCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_DESTINATION_AIRPORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -334,16 +253,9 @@ public String getDestinationAirportCode() { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the - * destination airport. This field is required if the airline data includes leg details. * - * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 - * characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param destinationAirportCode The [IATA](https://www.iata.org/services/pages/codes.aspx) - * 3-letter airport code of the destination airport. This field is required if the airline - * data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 - * characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must - * not be all zeros. + * @param destinationAirportCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_DESTINATION_AIRPORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -352,13 +264,9 @@ public void setDestinationAirportCode(String destinationAirportCode) { } /** - * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * - * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all - * spaces. * Must not be all zeros. + * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param fareBasisCode The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), - * alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not start with a - * space or be all spaces. * Must not be all zeros. + * @param fareBasisCode The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all spaces. * Must not be all zeros. * @return the current {@code Leg} instance, allowing for method chaining */ public Leg fareBasisCode(String fareBasisCode) { @@ -367,13 +275,8 @@ public Leg fareBasisCode(String fareBasisCode) { } /** - * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * - * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all - * spaces. * Must not be all zeros. - * - * @return fareBasisCode The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), - * alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not start with a - * space or be all spaces. * Must not be all zeros. + * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @return fareBasisCode The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_FARE_BASIS_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -382,13 +285,9 @@ public String getFareBasisCode() { } /** - * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * - * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all - * spaces. * Must not be all zeros. + * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param fareBasisCode The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), - * alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not start with a - * space or be all spaces. * Must not be all zeros. + * @param fareBasisCode The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_FARE_BASIS_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -397,11 +296,9 @@ public void setFareBasisCode(String fareBasisCode) { } /** - * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not start with - * a space or be all spaces. * Must not be all zeros. + * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param flightNumber The flight identifier. * minLength: 1 character * maxLength: 5 characters * - * Must not start with a space or be all spaces. * Must not be all zeros. + * @param flightNumber The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not start with a space or be all spaces. * Must not be all zeros. * @return the current {@code Leg} instance, allowing for method chaining */ public Leg flightNumber(String flightNumber) { @@ -410,11 +307,8 @@ public Leg flightNumber(String flightNumber) { } /** - * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not start with - * a space or be all spaces. * Must not be all zeros. - * - * @return flightNumber The flight identifier. * minLength: 1 character * maxLength: 5 characters - * * Must not start with a space or be all spaces. * Must not be all zeros. + * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @return flightNumber The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_FLIGHT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -423,11 +317,9 @@ public String getFlightNumber() { } /** - * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not start with - * a space or be all spaces. * Must not be all zeros. + * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param flightNumber The flight identifier. * minLength: 1 character * maxLength: 5 characters * - * Must not start with a space or be all spaces. * Must not be all zeros. + * @param flightNumber The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_FLIGHT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -436,13 +328,9 @@ public void setFlightNumber(String flightNumber) { } /** - * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a - * space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: - * ASCII * minLength: 1 character * maxLength: 1 character + * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * - * @param stopOverCode A one-letter code that indicates whether the passenger is entitled to make - * a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they - * are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character + * @param stopOverCode A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * @return the current {@code Leg} instance, allowing for method chaining */ public Leg stopOverCode(String stopOverCode) { @@ -451,13 +339,8 @@ public Leg stopOverCode(String stopOverCode) { } /** - * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a - * space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: - * ASCII * minLength: 1 character * maxLength: 1 character - * - * @return stopOverCode A one-letter code that indicates whether the passenger is entitled to make - * a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they - * are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character + * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character + * @return stopOverCode A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character */ @JsonProperty(JSON_PROPERTY_STOP_OVER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -466,13 +349,9 @@ public String getStopOverCode() { } /** - * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a - * space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: - * ASCII * minLength: 1 character * maxLength: 1 character + * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * - * @param stopOverCode A one-letter code that indicates whether the passenger is entitled to make - * a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they - * are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character + * @param stopOverCode A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character */ @JsonProperty(JSON_PROPERTY_STOP_OVER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -480,7 +359,9 @@ public void setStopOverCode(String stopOverCode) { this.stopOverCode = stopOverCode; } - /** Return true if this Leg object is equal to o. */ + /** + * Return true if this Leg object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -490,29 +371,20 @@ public boolean equals(Object o) { return false; } Leg leg = (Leg) o; - return Objects.equals(this.carrierCode, leg.carrierCode) - && Objects.equals(this.classOfTravel, leg.classOfTravel) - && Objects.equals(this.dateOfTravel, leg.dateOfTravel) - && Objects.equals(this.departureAirportCode, leg.departureAirportCode) - && Objects.equals(this.departureTax, leg.departureTax) - && Objects.equals(this.destinationAirportCode, leg.destinationAirportCode) - && Objects.equals(this.fareBasisCode, leg.fareBasisCode) - && Objects.equals(this.flightNumber, leg.flightNumber) - && Objects.equals(this.stopOverCode, leg.stopOverCode); + return Objects.equals(this.carrierCode, leg.carrierCode) && + Objects.equals(this.classOfTravel, leg.classOfTravel) && + Objects.equals(this.dateOfTravel, leg.dateOfTravel) && + Objects.equals(this.departureAirportCode, leg.departureAirportCode) && + Objects.equals(this.departureTax, leg.departureTax) && + Objects.equals(this.destinationAirportCode, leg.destinationAirportCode) && + Objects.equals(this.fareBasisCode, leg.fareBasisCode) && + Objects.equals(this.flightNumber, leg.flightNumber) && + Objects.equals(this.stopOverCode, leg.stopOverCode); } @Override public int hashCode() { - return Objects.hash( - carrierCode, - classOfTravel, - dateOfTravel, - departureAirportCode, - departureTax, - destinationAirportCode, - fareBasisCode, - flightNumber, - stopOverCode); + return Objects.hash(carrierCode, classOfTravel, dateOfTravel, departureAirportCode, departureTax, destinationAirportCode, fareBasisCode, flightNumber, stopOverCode); } @Override @@ -522,13 +394,9 @@ public String toString() { sb.append(" carrierCode: ").append(toIndentedString(carrierCode)).append("\n"); sb.append(" classOfTravel: ").append(toIndentedString(classOfTravel)).append("\n"); sb.append(" dateOfTravel: ").append(toIndentedString(dateOfTravel)).append("\n"); - sb.append(" departureAirportCode: ") - .append(toIndentedString(departureAirportCode)) - .append("\n"); + sb.append(" departureAirportCode: ").append(toIndentedString(departureAirportCode)).append("\n"); sb.append(" departureTax: ").append(toIndentedString(departureTax)).append("\n"); - sb.append(" destinationAirportCode: ") - .append(toIndentedString(destinationAirportCode)) - .append("\n"); + sb.append(" destinationAirportCode: ").append(toIndentedString(destinationAirportCode)).append("\n"); sb.append(" fareBasisCode: ").append(toIndentedString(fareBasisCode)).append("\n"); sb.append(" flightNumber: ").append(toIndentedString(flightNumber)).append("\n"); sb.append(" stopOverCode: ").append(toIndentedString(stopOverCode)).append("\n"); @@ -537,7 +405,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -546,7 +415,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Leg given an JSON string * * @param jsonString JSON string @@ -556,12 +425,11 @@ private String toIndentedString(Object o) { public static Leg fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Leg.class); } - - /** - * Convert an instance of Leg to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Leg to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/LineItem.java b/src/main/java/com/adyen/model/checkout/LineItem.java index 69b792684..059d46188 100644 --- a/src/main/java/com/adyen/model/checkout/LineItem.java +++ b/src/main/java/com/adyen/model/checkout/LineItem.java @@ -2,22 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** LineItem */ + +/** + * LineItem + */ @JsonPropertyOrder({ LineItem.JSON_PROPERTY_AMOUNT_EXCLUDING_TAX, LineItem.JSON_PROPERTY_AMOUNT_INCLUDING_TAX, @@ -38,6 +47,7 @@ LineItem.JSON_PROPERTY_TAX_PERCENTAGE, LineItem.JSON_PROPERTY_UPC }) + public class LineItem { public static final String JSON_PROPERTY_AMOUNT_EXCLUDING_TAX = "amountExcludingTax"; private Long amountExcludingTax; @@ -93,7 +103,8 @@ public class LineItem { public static final String JSON_PROPERTY_UPC = "upc"; private String upc; - public LineItem() {} + public LineItem() { + } /** * Item amount excluding the tax, in minor units. @@ -108,7 +119,6 @@ public LineItem amountExcludingTax(Long amountExcludingTax) { /** * Item amount excluding the tax, in minor units. - * * @return amountExcludingTax Item amount excluding the tax, in minor units. */ @JsonProperty(JSON_PROPERTY_AMOUNT_EXCLUDING_TAX) @@ -141,7 +151,6 @@ public LineItem amountIncludingTax(Long amountIncludingTax) { /** * Item amount including the tax, in minor units. - * * @return amountIncludingTax Item amount including the tax, in minor units. */ @JsonProperty(JSON_PROPERTY_AMOUNT_INCLUDING_TAX) @@ -174,7 +183,6 @@ public LineItem brand(String brand) { /** * Brand of the item. - * * @return brand Brand of the item. */ @JsonProperty(JSON_PROPERTY_BRAND) @@ -207,7 +215,6 @@ public LineItem color(String color) { /** * Color of the item. - * * @return color Color of the item. */ @JsonProperty(JSON_PROPERTY_COLOR) @@ -240,7 +247,6 @@ public LineItem description(String description) { /** * Description of the line item. - * * @return description Description of the line item. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -273,7 +279,6 @@ public LineItem id(String id) { /** * ID of the line item. - * * @return id ID of the line item. */ @JsonProperty(JSON_PROPERTY_ID) @@ -306,7 +311,6 @@ public LineItem imageUrl(String imageUrl) { /** * Link to the picture of the purchased item. - * * @return imageUrl Link to the picture of the purchased item. */ @JsonProperty(JSON_PROPERTY_IMAGE_URL) @@ -339,7 +343,6 @@ public LineItem itemCategory(String itemCategory) { /** * Item category, used by the payment methods PayPal and Ratepay. - * * @return itemCategory Item category, used by the payment methods PayPal and Ratepay. */ @JsonProperty(JSON_PROPERTY_ITEM_CATEGORY) @@ -372,7 +375,6 @@ public LineItem manufacturer(String manufacturer) { /** * Manufacturer of the item. - * * @return manufacturer Manufacturer of the item. */ @JsonProperty(JSON_PROPERTY_MANUFACTURER) @@ -405,7 +407,6 @@ public LineItem marketplaceSellerId(String marketplaceSellerId) { /** * Marketplace seller id. - * * @return marketplaceSellerId Marketplace seller id. */ @JsonProperty(JSON_PROPERTY_MARKETPLACE_SELLER_ID) @@ -438,7 +439,6 @@ public LineItem productUrl(String productUrl) { /** * Link to the purchased item. - * * @return productUrl Link to the purchased item. */ @JsonProperty(JSON_PROPERTY_PRODUCT_URL) @@ -471,7 +471,6 @@ public LineItem quantity(Long quantity) { /** * Number of items. - * * @return quantity Number of items. */ @JsonProperty(JSON_PROPERTY_QUANTITY) @@ -494,8 +493,7 @@ public void setQuantity(Long quantity) { /** * Email associated with the given product in the basket (usually in electronic gift cards). * - * @param receiverEmail Email associated with the given product in the basket (usually in - * electronic gift cards). + * @param receiverEmail Email associated with the given product in the basket (usually in electronic gift cards). * @return the current {@code LineItem} instance, allowing for method chaining */ public LineItem receiverEmail(String receiverEmail) { @@ -505,9 +503,7 @@ public LineItem receiverEmail(String receiverEmail) { /** * Email associated with the given product in the basket (usually in electronic gift cards). - * - * @return receiverEmail Email associated with the given product in the basket (usually in - * electronic gift cards). + * @return receiverEmail Email associated with the given product in the basket (usually in electronic gift cards). */ @JsonProperty(JSON_PROPERTY_RECEIVER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -518,8 +514,7 @@ public String getReceiverEmail() { /** * Email associated with the given product in the basket (usually in electronic gift cards). * - * @param receiverEmail Email associated with the given product in the basket (usually in - * electronic gift cards). + * @param receiverEmail Email associated with the given product in the basket (usually in electronic gift cards). */ @JsonProperty(JSON_PROPERTY_RECEIVER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -540,7 +535,6 @@ public LineItem size(String size) { /** * Size of the item. - * * @return size Size of the item. */ @JsonProperty(JSON_PROPERTY_SIZE) @@ -573,7 +567,6 @@ public LineItem sku(String sku) { /** * Stock keeping unit. - * * @return sku Stock keeping unit. */ @JsonProperty(JSON_PROPERTY_SKU) @@ -606,7 +599,6 @@ public LineItem taxAmount(Long taxAmount) { /** * Tax amount, in minor units. - * * @return taxAmount Tax amount, in minor units. */ @JsonProperty(JSON_PROPERTY_TAX_AMOUNT) @@ -639,7 +631,6 @@ public LineItem taxPercentage(Long taxPercentage) { /** * Tax percentage, in minor units. - * * @return taxPercentage Tax percentage, in minor units. */ @JsonProperty(JSON_PROPERTY_TAX_PERCENTAGE) @@ -672,7 +663,6 @@ public LineItem upc(String upc) { /** * Universal Product Code. - * * @return upc Universal Product Code. */ @JsonProperty(JSON_PROPERTY_UPC) @@ -692,7 +682,9 @@ public void setUpc(String upc) { this.upc = upc; } - /** Return true if this LineItem object is equal to o. */ + /** + * Return true if this LineItem object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -702,47 +694,29 @@ public boolean equals(Object o) { return false; } LineItem lineItem = (LineItem) o; - return Objects.equals(this.amountExcludingTax, lineItem.amountExcludingTax) - && Objects.equals(this.amountIncludingTax, lineItem.amountIncludingTax) - && Objects.equals(this.brand, lineItem.brand) - && Objects.equals(this.color, lineItem.color) - && Objects.equals(this.description, lineItem.description) - && Objects.equals(this.id, lineItem.id) - && Objects.equals(this.imageUrl, lineItem.imageUrl) - && Objects.equals(this.itemCategory, lineItem.itemCategory) - && Objects.equals(this.manufacturer, lineItem.manufacturer) - && Objects.equals(this.marketplaceSellerId, lineItem.marketplaceSellerId) - && Objects.equals(this.productUrl, lineItem.productUrl) - && Objects.equals(this.quantity, lineItem.quantity) - && Objects.equals(this.receiverEmail, lineItem.receiverEmail) - && Objects.equals(this.size, lineItem.size) - && Objects.equals(this.sku, lineItem.sku) - && Objects.equals(this.taxAmount, lineItem.taxAmount) - && Objects.equals(this.taxPercentage, lineItem.taxPercentage) - && Objects.equals(this.upc, lineItem.upc); + return Objects.equals(this.amountExcludingTax, lineItem.amountExcludingTax) && + Objects.equals(this.amountIncludingTax, lineItem.amountIncludingTax) && + Objects.equals(this.brand, lineItem.brand) && + Objects.equals(this.color, lineItem.color) && + Objects.equals(this.description, lineItem.description) && + Objects.equals(this.id, lineItem.id) && + Objects.equals(this.imageUrl, lineItem.imageUrl) && + Objects.equals(this.itemCategory, lineItem.itemCategory) && + Objects.equals(this.manufacturer, lineItem.manufacturer) && + Objects.equals(this.marketplaceSellerId, lineItem.marketplaceSellerId) && + Objects.equals(this.productUrl, lineItem.productUrl) && + Objects.equals(this.quantity, lineItem.quantity) && + Objects.equals(this.receiverEmail, lineItem.receiverEmail) && + Objects.equals(this.size, lineItem.size) && + Objects.equals(this.sku, lineItem.sku) && + Objects.equals(this.taxAmount, lineItem.taxAmount) && + Objects.equals(this.taxPercentage, lineItem.taxPercentage) && + Objects.equals(this.upc, lineItem.upc); } @Override public int hashCode() { - return Objects.hash( - amountExcludingTax, - amountIncludingTax, - brand, - color, - description, - id, - imageUrl, - itemCategory, - manufacturer, - marketplaceSellerId, - productUrl, - quantity, - receiverEmail, - size, - sku, - taxAmount, - taxPercentage, - upc); + return Objects.hash(amountExcludingTax, amountIncludingTax, brand, color, description, id, imageUrl, itemCategory, manufacturer, marketplaceSellerId, productUrl, quantity, receiverEmail, size, sku, taxAmount, taxPercentage, upc); } @Override @@ -758,9 +732,7 @@ public String toString() { sb.append(" imageUrl: ").append(toIndentedString(imageUrl)).append("\n"); sb.append(" itemCategory: ").append(toIndentedString(itemCategory)).append("\n"); sb.append(" manufacturer: ").append(toIndentedString(manufacturer)).append("\n"); - sb.append(" marketplaceSellerId: ") - .append(toIndentedString(marketplaceSellerId)) - .append("\n"); + sb.append(" marketplaceSellerId: ").append(toIndentedString(marketplaceSellerId)).append("\n"); sb.append(" productUrl: ").append(toIndentedString(productUrl)).append("\n"); sb.append(" quantity: ").append(toIndentedString(quantity)).append("\n"); sb.append(" receiverEmail: ").append(toIndentedString(receiverEmail)).append("\n"); @@ -774,7 +746,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -783,7 +756,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of LineItem given an JSON string * * @param jsonString JSON string @@ -793,12 +766,11 @@ private String toIndentedString(Object o) { public static LineItem fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, LineItem.class); } - - /** - * Convert an instance of LineItem to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of LineItem to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ListStoredPaymentMethodsResponse.java b/src/main/java/com/adyen/model/checkout/ListStoredPaymentMethodsResponse.java index 1ef85f60a..273f2d648 100644 --- a/src/main/java/com/adyen/model/checkout/ListStoredPaymentMethodsResponse.java +++ b/src/main/java/com/adyen/model/checkout/ListStoredPaymentMethodsResponse.java @@ -2,29 +2,40 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.StoredPaymentMethodResource; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ListStoredPaymentMethodsResponse */ +/** + * ListStoredPaymentMethodsResponse + */ @JsonPropertyOrder({ ListStoredPaymentMethodsResponse.JSON_PROPERTY_MERCHANT_ACCOUNT, ListStoredPaymentMethodsResponse.JSON_PROPERTY_SHOPPER_REFERENCE, ListStoredPaymentMethodsResponse.JSON_PROPERTY_STORED_PAYMENT_METHODS }) + public class ListStoredPaymentMethodsResponse { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; @@ -35,14 +46,14 @@ public class ListStoredPaymentMethodsResponse { public static final String JSON_PROPERTY_STORED_PAYMENT_METHODS = "storedPaymentMethods"; private List storedPaymentMethods; - public ListStoredPaymentMethodsResponse() {} + public ListStoredPaymentMethodsResponse() { + } /** * Your merchant account. * * @param merchantAccount Your merchant account. - * @return the current {@code ListStoredPaymentMethodsResponse} instance, allowing for method - * chaining + * @return the current {@code ListStoredPaymentMethodsResponse} instance, allowing for method chaining */ public ListStoredPaymentMethodsResponse merchantAccount(String merchantAccount) { this.merchantAccount = merchantAccount; @@ -51,7 +62,6 @@ public ListStoredPaymentMethodsResponse merchantAccount(String merchantAccount) /** * Your merchant account. - * * @return merchantAccount Your merchant account. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -72,15 +82,10 @@ public void setMerchantAccount(String merchantAccount) { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum - * length: 3 characters. > Your reference must not include personally identifiable information - * (PII), for example name or email address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. * - * @param shopperReference Your reference to uniquely identify this shopper, for example user ID - * or account ID. Minimum length: 3 characters. > Your reference must not include - * personally identifiable information (PII), for example name or email address. - * @return the current {@code ListStoredPaymentMethodsResponse} instance, allowing for method - * chaining + * @param shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. + * @return the current {@code ListStoredPaymentMethodsResponse} instance, allowing for method chaining */ public ListStoredPaymentMethodsResponse shopperReference(String shopperReference) { this.shopperReference = shopperReference; @@ -88,13 +93,8 @@ public ListStoredPaymentMethodsResponse shopperReference(String shopperReference } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum - * length: 3 characters. > Your reference must not include personally identifiable information - * (PII), for example name or email address. - * - * @return shopperReference Your reference to uniquely identify this shopper, for example user ID - * or account ID. Minimum length: 3 characters. > Your reference must not include - * personally identifiable information (PII), for example name or email address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. + * @return shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -103,13 +103,9 @@ public String getShopperReference() { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum - * length: 3 characters. > Your reference must not include personally identifiable information - * (PII), for example name or email address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. * - * @param shopperReference Your reference to uniquely identify this shopper, for example user ID - * or account ID. Minimum length: 3 characters. > Your reference must not include - * personally identifiable information (PII), for example name or email address. + * @param shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,17 +117,14 @@ public void setShopperReference(String shopperReference) { * List of all stored payment methods. * * @param storedPaymentMethods List of all stored payment methods. - * @return the current {@code ListStoredPaymentMethodsResponse} instance, allowing for method - * chaining + * @return the current {@code ListStoredPaymentMethodsResponse} instance, allowing for method chaining */ - public ListStoredPaymentMethodsResponse storedPaymentMethods( - List storedPaymentMethods) { + public ListStoredPaymentMethodsResponse storedPaymentMethods(List storedPaymentMethods) { this.storedPaymentMethods = storedPaymentMethods; return this; } - public ListStoredPaymentMethodsResponse addStoredPaymentMethodsItem( - StoredPaymentMethodResource storedPaymentMethodsItem) { + public ListStoredPaymentMethodsResponse addStoredPaymentMethodsItem(StoredPaymentMethodResource storedPaymentMethodsItem) { if (this.storedPaymentMethods == null) { this.storedPaymentMethods = new ArrayList<>(); } @@ -141,7 +134,6 @@ public ListStoredPaymentMethodsResponse addStoredPaymentMethodsItem( /** * List of all stored payment methods. - * * @return storedPaymentMethods List of all stored payment methods. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHODS) @@ -161,7 +153,9 @@ public void setStoredPaymentMethods(List storedPaym this.storedPaymentMethods = storedPaymentMethods; } - /** Return true if this ListStoredPaymentMethodsResponse object is equal to o. */ + /** + * Return true if this ListStoredPaymentMethodsResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -170,12 +164,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ListStoredPaymentMethodsResponse listStoredPaymentMethodsResponse = - (ListStoredPaymentMethodsResponse) o; - return Objects.equals(this.merchantAccount, listStoredPaymentMethodsResponse.merchantAccount) - && Objects.equals(this.shopperReference, listStoredPaymentMethodsResponse.shopperReference) - && Objects.equals( - this.storedPaymentMethods, listStoredPaymentMethodsResponse.storedPaymentMethods); + ListStoredPaymentMethodsResponse listStoredPaymentMethodsResponse = (ListStoredPaymentMethodsResponse) o; + return Objects.equals(this.merchantAccount, listStoredPaymentMethodsResponse.merchantAccount) && + Objects.equals(this.shopperReference, listStoredPaymentMethodsResponse.shopperReference) && + Objects.equals(this.storedPaymentMethods, listStoredPaymentMethodsResponse.storedPaymentMethods); } @Override @@ -189,15 +181,14 @@ public String toString() { sb.append("class ListStoredPaymentMethodsResponse {\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); - sb.append(" storedPaymentMethods: ") - .append(toIndentedString(storedPaymentMethods)) - .append("\n"); + sb.append(" storedPaymentMethods: ").append(toIndentedString(storedPaymentMethods)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -206,24 +197,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ListStoredPaymentMethodsResponse given an JSON string * * @param jsonString JSON string * @return An instance of ListStoredPaymentMethodsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ListStoredPaymentMethodsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to ListStoredPaymentMethodsResponse */ - public static ListStoredPaymentMethodsResponse fromJson(String jsonString) - throws JsonProcessingException { + public static ListStoredPaymentMethodsResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ListStoredPaymentMethodsResponse.class); } - - /** - * Convert an instance of ListStoredPaymentMethodsResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ListStoredPaymentMethodsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Mandate.java b/src/main/java/com/adyen/model/checkout/Mandate.java index c632e63e0..f60d7a164 100644 --- a/src/main/java/com/adyen/model/checkout/Mandate.java +++ b/src/main/java/com/adyen/model/checkout/Mandate.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** Mandate */ + +/** + * Mandate + */ @JsonPropertyOrder({ Mandate.JSON_PROPERTY_AMOUNT, Mandate.JSON_PROPERTY_AMOUNT_RULE, @@ -33,16 +38,16 @@ Mandate.JSON_PROPERTY_REMARKS, Mandate.JSON_PROPERTY_STARTS_AT }) + public class Mandate { public static final String JSON_PROPERTY_AMOUNT = "amount"; private String amount; /** - * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount - * can not exceed the `amount`. * **exact**: The transaction amount should be the same - * as the `amount`. + * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`. */ public enum AmountRuleEnum { + MAX(String.valueOf("max")), EXACT(String.valueOf("exact")); @@ -52,7 +57,7 @@ public enum AmountRuleEnum { private String value; AmountRuleEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,11 +78,7 @@ public static AmountRuleEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AmountRuleEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AmountRuleEnum.values())); + LOG.warning("AmountRuleEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AmountRuleEnum.values())); return null; } } @@ -86,11 +87,10 @@ public static AmountRuleEnum fromValue(String value) { private AmountRuleEnum amountRule; /** - * The rule to specify the period, within which the recurring debit can happen, relative to the - * mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and - * on a specific date. * **after**: On and after a specific date. + * The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date. */ public enum BillingAttemptsRuleEnum { + ON(String.valueOf("on")), BEFORE(String.valueOf("before")), @@ -102,7 +102,7 @@ public enum BillingAttemptsRuleEnum { private String value; BillingAttemptsRuleEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -123,11 +123,7 @@ public static BillingAttemptsRuleEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "BillingAttemptsRuleEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(BillingAttemptsRuleEnum.values())); + LOG.warning("BillingAttemptsRuleEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(BillingAttemptsRuleEnum.values())); return null; } } @@ -145,10 +141,10 @@ public static BillingAttemptsRuleEnum fromValue(String value) { private String endsAt; /** - * The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, - * **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. + * The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. */ public enum FrequencyEnum { + ADHOC(String.valueOf("adhoc")), DAILY(String.valueOf("daily")), @@ -170,7 +166,7 @@ public enum FrequencyEnum { private String value; FrequencyEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -191,11 +187,7 @@ public static FrequencyEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FrequencyEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FrequencyEnum.values())); + LOG.warning("FrequencyEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FrequencyEnum.values())); return null; } } @@ -209,7 +201,8 @@ public static FrequencyEnum fromValue(String value) { public static final String JSON_PROPERTY_STARTS_AT = "startsAt"; private String startsAt; - public Mandate() {} + public Mandate() { + } /** * The billing amount (in minor units) of the recurring transactions. @@ -224,7 +217,6 @@ public Mandate amount(String amount) { /** * The billing amount (in minor units) of the recurring transactions. - * * @return amount The billing amount (in minor units) of the recurring transactions. */ @JsonProperty(JSON_PROPERTY_AMOUNT) @@ -245,13 +237,9 @@ public void setAmount(String amount) { } /** - * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount - * can not exceed the `amount`. * **exact**: The transaction amount should be the same - * as the `amount`. + * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`. * - * @param amountRule The limitation rule of the billing amount. Possible values: * **max**: The - * transaction amount can not exceed the `amount`. * **exact**: The transaction - * amount should be the same as the `amount`. + * @param amountRule The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`. * @return the current {@code Mandate} instance, allowing for method chaining */ public Mandate amountRule(AmountRuleEnum amountRule) { @@ -260,13 +248,8 @@ public Mandate amountRule(AmountRuleEnum amountRule) { } /** - * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount - * can not exceed the `amount`. * **exact**: The transaction amount should be the same - * as the `amount`. - * - * @return amountRule The limitation rule of the billing amount. Possible values: * **max**: The - * transaction amount can not exceed the `amount`. * **exact**: The transaction - * amount should be the same as the `amount`. + * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`. + * @return amountRule The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`. */ @JsonProperty(JSON_PROPERTY_AMOUNT_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -275,13 +258,9 @@ public AmountRuleEnum getAmountRule() { } /** - * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount - * can not exceed the `amount`. * **exact**: The transaction amount should be the same - * as the `amount`. + * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`. * - * @param amountRule The limitation rule of the billing amount. Possible values: * **max**: The - * transaction amount can not exceed the `amount`. * **exact**: The transaction - * amount should be the same as the `amount`. + * @param amountRule The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`. */ @JsonProperty(JSON_PROPERTY_AMOUNT_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -290,14 +269,9 @@ public void setAmountRule(AmountRuleEnum amountRule) { } /** - * The rule to specify the period, within which the recurring debit can happen, relative to the - * mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and - * on a specific date. * **after**: On and after a specific date. + * The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date. * - * @param billingAttemptsRule The rule to specify the period, within which the recurring debit can - * happen, relative to the mandate recurring date. Possible values: * **on**: On a specific - * date. * **before**: Before and on a specific date. * **after**: On and after a specific - * date. + * @param billingAttemptsRule The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date. * @return the current {@code Mandate} instance, allowing for method chaining */ public Mandate billingAttemptsRule(BillingAttemptsRuleEnum billingAttemptsRule) { @@ -306,14 +280,8 @@ public Mandate billingAttemptsRule(BillingAttemptsRuleEnum billingAttemptsRule) } /** - * The rule to specify the period, within which the recurring debit can happen, relative to the - * mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and - * on a specific date. * **after**: On and after a specific date. - * - * @return billingAttemptsRule The rule to specify the period, within which the recurring debit - * can happen, relative to the mandate recurring date. Possible values: * **on**: On a - * specific date. * **before**: Before and on a specific date. * **after**: On and after a - * specific date. + * The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date. + * @return billingAttemptsRule The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date. */ @JsonProperty(JSON_PROPERTY_BILLING_ATTEMPTS_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -322,14 +290,9 @@ public BillingAttemptsRuleEnum getBillingAttemptsRule() { } /** - * The rule to specify the period, within which the recurring debit can happen, relative to the - * mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and - * on a specific date. * **after**: On and after a specific date. + * The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date. * - * @param billingAttemptsRule The rule to specify the period, within which the recurring debit can - * happen, relative to the mandate recurring date. Possible values: * **on**: On a specific - * date. * **before**: Before and on a specific date. * **after**: On and after a specific - * date. + * @param billingAttemptsRule The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date. */ @JsonProperty(JSON_PROPERTY_BILLING_ATTEMPTS_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -338,13 +301,9 @@ public void setBillingAttemptsRule(BillingAttemptsRuleEnum billingAttemptsRule) } /** - * The number of the day, on which the recurring debit can happen. Should be within the same - * calendar month as the mandate recurring date. Possible values: 1-31 based on the - * `frequency`. + * The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`. * - * @param billingDay The number of the day, on which the recurring debit can happen. Should be - * within the same calendar month as the mandate recurring date. Possible values: 1-31 based - * on the `frequency`. + * @param billingDay The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`. * @return the current {@code Mandate} instance, allowing for method chaining */ public Mandate billingDay(String billingDay) { @@ -353,13 +312,8 @@ public Mandate billingDay(String billingDay) { } /** - * The number of the day, on which the recurring debit can happen. Should be within the same - * calendar month as the mandate recurring date. Possible values: 1-31 based on the - * `frequency`. - * - * @return billingDay The number of the day, on which the recurring debit can happen. Should be - * within the same calendar month as the mandate recurring date. Possible values: 1-31 based - * on the `frequency`. + * The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`. + * @return billingDay The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`. */ @JsonProperty(JSON_PROPERTY_BILLING_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -368,13 +322,9 @@ public String getBillingDay() { } /** - * The number of the day, on which the recurring debit can happen. Should be within the same - * calendar month as the mandate recurring date. Possible values: 1-31 based on the - * `frequency`. + * The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`. * - * @param billingDay The number of the day, on which the recurring debit can happen. Should be - * within the same calendar month as the mandate recurring date. Possible values: 1-31 based - * on the `frequency`. + * @param billingDay The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`. */ @JsonProperty(JSON_PROPERTY_BILLING_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -395,7 +345,6 @@ public Mandate count(String count) { /** * The number of transactions that can be performed within the given frequency. - * * @return count The number of transactions that can be performed within the given frequency. */ @JsonProperty(JSON_PROPERTY_COUNT) @@ -428,7 +377,6 @@ public Mandate endsAt(String endsAt) { /** * End date of the billing plan, in YYYY-MM-DD format. - * * @return endsAt End date of the billing plan, in YYYY-MM-DD format. */ @JsonProperty(JSON_PROPERTY_ENDS_AT) @@ -449,12 +397,9 @@ public void setEndsAt(String endsAt) { } /** - * The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, - * **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. + * The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. * - * @param frequency The frequency with which a shopper should be charged. Possible values: - * **adhoc**, **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, - * **yearly**. + * @param frequency The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. * @return the current {@code Mandate} instance, allowing for method chaining */ public Mandate frequency(FrequencyEnum frequency) { @@ -463,12 +408,8 @@ public Mandate frequency(FrequencyEnum frequency) { } /** - * The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, - * **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. - * - * @return frequency The frequency with which a shopper should be charged. Possible values: - * **adhoc**, **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, - * **yearly**. + * The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. + * @return frequency The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. */ @JsonProperty(JSON_PROPERTY_FREQUENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -477,12 +418,9 @@ public FrequencyEnum getFrequency() { } /** - * The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, - * **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. + * The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. * - * @param frequency The frequency with which a shopper should be charged. Possible values: - * **adhoc**, **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, - * **yearly**. + * @param frequency The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. */ @JsonProperty(JSON_PROPERTY_FREQUENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -503,7 +441,6 @@ public Mandate remarks(String remarks) { /** * The message shown by UPI to the shopper on the approval screen. - * * @return remarks The message shown by UPI to the shopper on the approval screen. */ @JsonProperty(JSON_PROPERTY_REMARKS) @@ -526,8 +463,7 @@ public void setRemarks(String remarks) { /** * Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. * - * @param startsAt Start date of the billing plan, in YYYY-MM-DD format. By default, the - * transaction date. + * @param startsAt Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. * @return the current {@code Mandate} instance, allowing for method chaining */ public Mandate startsAt(String startsAt) { @@ -537,9 +473,7 @@ public Mandate startsAt(String startsAt) { /** * Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. - * - * @return startsAt Start date of the billing plan, in YYYY-MM-DD format. By default, the - * transaction date. + * @return startsAt Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. */ @JsonProperty(JSON_PROPERTY_STARTS_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -550,8 +484,7 @@ public String getStartsAt() { /** * Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. * - * @param startsAt Start date of the billing plan, in YYYY-MM-DD format. By default, the - * transaction date. + * @param startsAt Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. */ @JsonProperty(JSON_PROPERTY_STARTS_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -559,7 +492,9 @@ public void setStartsAt(String startsAt) { this.startsAt = startsAt; } - /** Return true if this Mandate object is equal to o. */ + /** + * Return true if this Mandate object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -569,29 +504,20 @@ public boolean equals(Object o) { return false; } Mandate mandate = (Mandate) o; - return Objects.equals(this.amount, mandate.amount) - && Objects.equals(this.amountRule, mandate.amountRule) - && Objects.equals(this.billingAttemptsRule, mandate.billingAttemptsRule) - && Objects.equals(this.billingDay, mandate.billingDay) - && Objects.equals(this.count, mandate.count) - && Objects.equals(this.endsAt, mandate.endsAt) - && Objects.equals(this.frequency, mandate.frequency) - && Objects.equals(this.remarks, mandate.remarks) - && Objects.equals(this.startsAt, mandate.startsAt); + return Objects.equals(this.amount, mandate.amount) && + Objects.equals(this.amountRule, mandate.amountRule) && + Objects.equals(this.billingAttemptsRule, mandate.billingAttemptsRule) && + Objects.equals(this.billingDay, mandate.billingDay) && + Objects.equals(this.count, mandate.count) && + Objects.equals(this.endsAt, mandate.endsAt) && + Objects.equals(this.frequency, mandate.frequency) && + Objects.equals(this.remarks, mandate.remarks) && + Objects.equals(this.startsAt, mandate.startsAt); } @Override public int hashCode() { - return Objects.hash( - amount, - amountRule, - billingAttemptsRule, - billingDay, - count, - endsAt, - frequency, - remarks, - startsAt); + return Objects.hash(amount, amountRule, billingAttemptsRule, billingDay, count, endsAt, frequency, remarks, startsAt); } @Override @@ -600,9 +526,7 @@ public String toString() { sb.append("class Mandate {\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" amountRule: ").append(toIndentedString(amountRule)).append("\n"); - sb.append(" billingAttemptsRule: ") - .append(toIndentedString(billingAttemptsRule)) - .append("\n"); + sb.append(" billingAttemptsRule: ").append(toIndentedString(billingAttemptsRule)).append("\n"); sb.append(" billingDay: ").append(toIndentedString(billingDay)).append("\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" endsAt: ").append(toIndentedString(endsAt)).append("\n"); @@ -614,7 +538,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -623,7 +548,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Mandate given an JSON string * * @param jsonString JSON string @@ -633,12 +558,11 @@ private String toIndentedString(Object o) { public static Mandate fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Mandate.class); } - - /** - * Convert an instance of Mandate to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Mandate to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/MasterpassDetails.java b/src/main/java/com/adyen/model/checkout/MasterpassDetails.java index e3c4adcb5..2e9db7ad2 100644 --- a/src/main/java/com/adyen/model/checkout/MasterpassDetails.java +++ b/src/main/java/com/adyen/model/checkout/MasterpassDetails.java @@ -2,41 +2,47 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** MasterpassDetails */ + +/** + * MasterpassDetails + */ @JsonPropertyOrder({ MasterpassDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, MasterpassDetails.JSON_PROPERTY_FUNDING_SOURCE, MasterpassDetails.JSON_PROPERTY_MASTERPASS_TRANSACTION_ID, MasterpassDetails.JSON_PROPERTY_TYPE }) + public class MasterpassDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ public enum FundingSourceEnum { + CREDIT(String.valueOf("credit")), DEBIT(String.valueOf("debit")); @@ -46,7 +52,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -67,11 +73,7 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FundingSourceEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FundingSourceEnum.values())); + LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -82,8 +84,11 @@ public static FundingSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_MASTERPASS_TRANSACTION_ID = "masterpassTransactionId"; private String masterpassTransactionId; - /** **masterpass** */ + /** + * **masterpass** + */ public enum TypeEnum { + MASTERPASS(String.valueOf("masterpass")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -91,7 +96,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -112,11 +117,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -124,7 +125,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public MasterpassDetails() {} + public MasterpassDetails() { + } /** * The checkout attempt identifier. @@ -139,7 +141,6 @@ public MasterpassDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -160,12 +161,9 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * @return the current {@code MasterpassDetails} instance, allowing for method chaining */ public MasterpassDetails fundingSource(FundingSourceEnum fundingSource) { @@ -174,12 +172,8 @@ public MasterpassDetails fundingSource(FundingSourceEnum fundingSource) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. - * - * @return fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @return fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,12 +182,9 @@ public FundingSourceEnum getFundingSource() { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,7 +205,6 @@ public MasterpassDetails masterpassTransactionId(String masterpassTransactionId) /** * The Masterpass transaction ID. - * * @return masterpassTransactionId The Masterpass transaction ID. */ @JsonProperty(JSON_PROPERTY_MASTERPASS_TRANSACTION_ID) @@ -247,7 +237,6 @@ public MasterpassDetails type(TypeEnum type) { /** * **masterpass** - * * @return type **masterpass** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -267,7 +256,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this MasterpassDetails object is equal to o. */ + /** + * Return true if this MasterpassDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -277,10 +268,10 @@ public boolean equals(Object o) { return false; } MasterpassDetails masterpassDetails = (MasterpassDetails) o; - return Objects.equals(this.checkoutAttemptId, masterpassDetails.checkoutAttemptId) - && Objects.equals(this.fundingSource, masterpassDetails.fundingSource) - && Objects.equals(this.masterpassTransactionId, masterpassDetails.masterpassTransactionId) - && Objects.equals(this.type, masterpassDetails.type); + return Objects.equals(this.checkoutAttemptId, masterpassDetails.checkoutAttemptId) && + Objects.equals(this.fundingSource, masterpassDetails.fundingSource) && + Objects.equals(this.masterpassTransactionId, masterpassDetails.masterpassTransactionId) && + Objects.equals(this.type, masterpassDetails.type); } @Override @@ -294,16 +285,15 @@ public String toString() { sb.append("class MasterpassDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); - sb.append(" masterpassTransactionId: ") - .append(toIndentedString(masterpassTransactionId)) - .append("\n"); + sb.append(" masterpassTransactionId: ").append(toIndentedString(masterpassTransactionId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -312,7 +302,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of MasterpassDetails given an JSON string * * @param jsonString JSON string @@ -322,12 +312,11 @@ private String toIndentedString(Object o) { public static MasterpassDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MasterpassDetails.class); } - - /** - * Convert an instance of MasterpassDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of MasterpassDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/MbwayDetails.java b/src/main/java/com/adyen/model/checkout/MbwayDetails.java index f90268351..46bc2f872 100644 --- a/src/main/java/com/adyen/model/checkout/MbwayDetails.java +++ b/src/main/java/com/adyen/model/checkout/MbwayDetails.java @@ -2,32 +2,38 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** MbwayDetails */ +/** + * MbwayDetails + */ @JsonPropertyOrder({ MbwayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, MbwayDetails.JSON_PROPERTY_SHOPPER_EMAIL, MbwayDetails.JSON_PROPERTY_TELEPHONE_NUMBER, MbwayDetails.JSON_PROPERTY_TYPE }) + public class MbwayDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -38,8 +44,11 @@ public class MbwayDetails { public static final String JSON_PROPERTY_TELEPHONE_NUMBER = "telephoneNumber"; private String telephoneNumber; - /** **mbway** */ + /** + * **mbway** + */ public enum TypeEnum { + MBWAY(String.valueOf("mbway")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -47,7 +56,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -68,11 +77,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -80,7 +85,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public MbwayDetails() {} + public MbwayDetails() { + } /** * The checkout attempt identifier. @@ -95,7 +101,6 @@ public MbwayDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -116,7 +121,9 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * @param shopperEmail + * + * + * @param shopperEmail * @return the current {@code MbwayDetails} instance, allowing for method chaining */ public MbwayDetails shopperEmail(String shopperEmail) { @@ -125,7 +132,8 @@ public MbwayDetails shopperEmail(String shopperEmail) { } /** - * @return shopperEmail + * + * @return shopperEmail */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -134,7 +142,9 @@ public String getShopperEmail() { } /** - * @param shopperEmail + * + * + * @param shopperEmail */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,7 +153,9 @@ public void setShopperEmail(String shopperEmail) { } /** - * @param telephoneNumber + * + * + * @param telephoneNumber * @return the current {@code MbwayDetails} instance, allowing for method chaining */ public MbwayDetails telephoneNumber(String telephoneNumber) { @@ -152,7 +164,8 @@ public MbwayDetails telephoneNumber(String telephoneNumber) { } /** - * @return telephoneNumber + * + * @return telephoneNumber */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,7 +174,9 @@ public String getTelephoneNumber() { } /** - * @param telephoneNumber + * + * + * @param telephoneNumber */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,7 +197,6 @@ public MbwayDetails type(TypeEnum type) { /** * **mbway** - * * @return type **mbway** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -202,7 +216,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this MbwayDetails object is equal to o. */ + /** + * Return true if this MbwayDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -212,10 +228,10 @@ public boolean equals(Object o) { return false; } MbwayDetails mbwayDetails = (MbwayDetails) o; - return Objects.equals(this.checkoutAttemptId, mbwayDetails.checkoutAttemptId) - && Objects.equals(this.shopperEmail, mbwayDetails.shopperEmail) - && Objects.equals(this.telephoneNumber, mbwayDetails.telephoneNumber) - && Objects.equals(this.type, mbwayDetails.type); + return Objects.equals(this.checkoutAttemptId, mbwayDetails.checkoutAttemptId) && + Objects.equals(this.shopperEmail, mbwayDetails.shopperEmail) && + Objects.equals(this.telephoneNumber, mbwayDetails.telephoneNumber) && + Objects.equals(this.type, mbwayDetails.type); } @Override @@ -236,7 +252,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -245,7 +262,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of MbwayDetails given an JSON string * * @param jsonString JSON string @@ -255,12 +272,11 @@ private String toIndentedString(Object o) { public static MbwayDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MbwayDetails.class); } - - /** - * Convert an instance of MbwayDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of MbwayDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/MerchantDevice.java b/src/main/java/com/adyen/model/checkout/MerchantDevice.java index 6e6841e2d..92fae76dd 100644 --- a/src/main/java/com/adyen/model/checkout/MerchantDevice.java +++ b/src/main/java/com/adyen/model/checkout/MerchantDevice.java @@ -2,27 +2,37 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** MerchantDevice */ + +/** + * MerchantDevice + */ @JsonPropertyOrder({ MerchantDevice.JSON_PROPERTY_OS, MerchantDevice.JSON_PROPERTY_OS_VERSION, MerchantDevice.JSON_PROPERTY_REFERENCE }) + public class MerchantDevice { public static final String JSON_PROPERTY_OS = "os"; private String os; @@ -33,7 +43,8 @@ public class MerchantDevice { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public MerchantDevice() {} + public MerchantDevice() { + } /** * Operating system running on the merchant device. @@ -48,7 +59,6 @@ public MerchantDevice os(String os) { /** * Operating system running on the merchant device. - * * @return os Operating system running on the merchant device. */ @JsonProperty(JSON_PROPERTY_OS) @@ -81,7 +91,6 @@ public MerchantDevice osVersion(String osVersion) { /** * Version of the operating system on the merchant device. - * * @return osVersion Version of the operating system on the merchant device. */ @JsonProperty(JSON_PROPERTY_OS_VERSION) @@ -114,7 +123,6 @@ public MerchantDevice reference(String reference) { /** * Merchant device reference. - * * @return reference Merchant device reference. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -134,7 +142,9 @@ public void setReference(String reference) { this.reference = reference; } - /** Return true if this MerchantDevice object is equal to o. */ + /** + * Return true if this MerchantDevice object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,9 +154,9 @@ public boolean equals(Object o) { return false; } MerchantDevice merchantDevice = (MerchantDevice) o; - return Objects.equals(this.os, merchantDevice.os) - && Objects.equals(this.osVersion, merchantDevice.osVersion) - && Objects.equals(this.reference, merchantDevice.reference); + return Objects.equals(this.os, merchantDevice.os) && + Objects.equals(this.osVersion, merchantDevice.osVersion) && + Objects.equals(this.reference, merchantDevice.reference); } @Override @@ -166,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of MerchantDevice given an JSON string * * @param jsonString JSON string @@ -185,12 +196,11 @@ private String toIndentedString(Object o) { public static MerchantDevice fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MerchantDevice.class); } - - /** - * Convert an instance of MerchantDevice to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of MerchantDevice to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/MerchantRiskIndicator.java b/src/main/java/com/adyen/model/checkout/MerchantRiskIndicator.java index b6486931a..6cc45fe25 100644 --- a/src/main/java/com/adyen/model/checkout/MerchantRiskIndicator.java +++ b/src/main/java/com/adyen/model/checkout/MerchantRiskIndicator.java @@ -2,27 +2,33 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** MerchantRiskIndicator */ +/** + * MerchantRiskIndicator + */ @JsonPropertyOrder({ MerchantRiskIndicator.JSON_PROPERTY_ADDRESS_MATCH, MerchantRiskIndicator.JSON_PROPERTY_DELIVERY_ADDRESS_INDICATOR, @@ -39,16 +45,16 @@ MerchantRiskIndicator.JSON_PROPERTY_REORDER_ITEMS_IND, MerchantRiskIndicator.JSON_PROPERTY_SHIP_INDICATOR }) + public class MerchantRiskIndicator { public static final String JSON_PROPERTY_ADDRESS_MATCH = "addressMatch"; private Boolean addressMatch; /** - * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * - * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * - * `digitalGoods` * `goodsNotShipped` * `other` + * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` */ public enum DeliveryAddressIndicatorEnum { + SHIPTOBILLINGADDRESS(String.valueOf("shipToBillingAddress")), SHIPTOVERIFIEDADDRESS(String.valueOf("shipToVerifiedAddress")), @@ -63,13 +69,12 @@ public enum DeliveryAddressIndicatorEnum { OTHER(String.valueOf("other")); - private static final Logger LOG = - Logger.getLogger(DeliveryAddressIndicatorEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(DeliveryAddressIndicatorEnum.class.getName()); private String value; DeliveryAddressIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -90,11 +95,7 @@ public static DeliveryAddressIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "DeliveryAddressIndicatorEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(DeliveryAddressIndicatorEnum.values())); + LOG.warning("DeliveryAddressIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(DeliveryAddressIndicatorEnum.values())); return null; } } @@ -110,11 +111,10 @@ public static DeliveryAddressIndicatorEnum fromValue(String value) { private String deliveryEmailAddress; /** - * The estimated delivery time for the shopper to receive the goods. Allowed values: * - * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * - * `twoOrMoreDaysShipping` + * The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` */ public enum DeliveryTimeframeEnum { + ELECTRONICDELIVERY(String.valueOf("electronicDelivery")), SAMEDAYSHIPPING(String.valueOf("sameDayShipping")), @@ -128,7 +128,7 @@ public enum DeliveryTimeframeEnum { private String value; DeliveryTimeframeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -149,11 +149,7 @@ public static DeliveryTimeframeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "DeliveryTimeframeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(DeliveryTimeframeEnum.values())); + LOG.warning("DeliveryTimeframeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(DeliveryTimeframeEnum.values())); return null; } } @@ -188,7 +184,8 @@ public static DeliveryTimeframeEnum fromValue(String value) { public static final String JSON_PROPERTY_SHIP_INDICATOR = "shipIndicator"; private String shipIndicator; - public MerchantRiskIndicator() {} + public MerchantRiskIndicator() { + } /** * Whether the chosen delivery address is identical to the billing address. @@ -203,7 +200,6 @@ public MerchantRiskIndicator addressMatch(Boolean addressMatch) { /** * Whether the chosen delivery address is identical to the billing address. - * * @return addressMatch Whether the chosen delivery address is identical to the billing address. */ @JsonProperty(JSON_PROPERTY_ADDRESS_MATCH) @@ -224,31 +220,19 @@ public void setAddressMatch(Boolean addressMatch) { } /** - * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * - * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * - * `digitalGoods` * `goodsNotShipped` * `other` + * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` * - * @param deliveryAddressIndicator Indicator regarding the delivery address. Allowed values: * - * `shipToBillingAddress` * `shipToVerifiedAddress` * - * `shipToNewAddress` * `shipToStore` * `digitalGoods` * - * `goodsNotShipped` * `other` + * @param deliveryAddressIndicator Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ - public MerchantRiskIndicator deliveryAddressIndicator( - DeliveryAddressIndicatorEnum deliveryAddressIndicator) { + public MerchantRiskIndicator deliveryAddressIndicator(DeliveryAddressIndicatorEnum deliveryAddressIndicator) { this.deliveryAddressIndicator = deliveryAddressIndicator; return this; } /** - * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * - * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * - * `digitalGoods` * `goodsNotShipped` * `other` - * - * @return deliveryAddressIndicator Indicator regarding the delivery address. Allowed values: * - * `shipToBillingAddress` * `shipToVerifiedAddress` * - * `shipToNewAddress` * `shipToStore` * `digitalGoods` * - * `goodsNotShipped` * `other` + * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` + * @return deliveryAddressIndicator Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -257,14 +241,9 @@ public DeliveryAddressIndicatorEnum getDeliveryAddressIndicator() { } /** - * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * - * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * - * `digitalGoods` * `goodsNotShipped` * `other` + * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` * - * @param deliveryAddressIndicator Indicator regarding the delivery address. Allowed values: * - * `shipToBillingAddress` * `shipToVerifiedAddress` * - * `shipToNewAddress` * `shipToStore` * `digitalGoods` * - * `goodsNotShipped` * `other` + * @param deliveryAddressIndicator Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -277,7 +256,9 @@ public void setDeliveryAddressIndicator(DeliveryAddressIndicatorEnum deliveryAdd * * @param deliveryEmail The delivery email address (for digital goods). * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v68 Use `deliveryEmailAddress` instead. + * + * @deprecated since Adyen Checkout API v68 + * Use `deliveryEmailAddress` instead. */ @Deprecated // deprecated since Adyen Checkout API v68: Use `deliveryEmailAddress` instead. public MerchantRiskIndicator deliveryEmail(String deliveryEmail) { @@ -287,7 +268,6 @@ public MerchantRiskIndicator deliveryEmail(String deliveryEmail) { /** * The delivery email address (for digital goods). - * * @return deliveryEmail The delivery email address (for digital goods). * @deprecated // deprecated since Adyen Checkout API v68: Use `deliveryEmailAddress` instead. */ @@ -302,7 +282,9 @@ public String getDeliveryEmail() { * The delivery email address (for digital goods). * * @param deliveryEmail The delivery email address (for digital goods). - * @deprecated since Adyen Checkout API v68 Use `deliveryEmailAddress` instead. + * + * @deprecated since Adyen Checkout API v68 + * Use `deliveryEmailAddress` instead. */ @Deprecated // deprecated since Adyen Checkout API v68: Use `deliveryEmailAddress` instead. @JsonProperty(JSON_PROPERTY_DELIVERY_EMAIL) @@ -312,11 +294,9 @@ public void setDeliveryEmail(String deliveryEmail) { } /** - * For Electronic delivery, the email address to which the merchandise was delivered. Maximum - * length: 254 characters. + * For Electronic delivery, the email address to which the merchandise was delivered. Maximum length: 254 characters. * - * @param deliveryEmailAddress For Electronic delivery, the email address to which the merchandise - * was delivered. Maximum length: 254 characters. + * @param deliveryEmailAddress For Electronic delivery, the email address to which the merchandise was delivered. Maximum length: 254 characters. * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator deliveryEmailAddress(String deliveryEmailAddress) { @@ -325,11 +305,8 @@ public MerchantRiskIndicator deliveryEmailAddress(String deliveryEmailAddress) { } /** - * For Electronic delivery, the email address to which the merchandise was delivered. Maximum - * length: 254 characters. - * - * @return deliveryEmailAddress For Electronic delivery, the email address to which the - * merchandise was delivered. Maximum length: 254 characters. + * For Electronic delivery, the email address to which the merchandise was delivered. Maximum length: 254 characters. + * @return deliveryEmailAddress For Electronic delivery, the email address to which the merchandise was delivered. Maximum length: 254 characters. */ @JsonProperty(JSON_PROPERTY_DELIVERY_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -338,11 +315,9 @@ public String getDeliveryEmailAddress() { } /** - * For Electronic delivery, the email address to which the merchandise was delivered. Maximum - * length: 254 characters. + * For Electronic delivery, the email address to which the merchandise was delivered. Maximum length: 254 characters. * - * @param deliveryEmailAddress For Electronic delivery, the email address to which the merchandise - * was delivered. Maximum length: 254 characters. + * @param deliveryEmailAddress For Electronic delivery, the email address to which the merchandise was delivered. Maximum length: 254 characters. */ @JsonProperty(JSON_PROPERTY_DELIVERY_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -351,13 +326,9 @@ public void setDeliveryEmailAddress(String deliveryEmailAddress) { } /** - * The estimated delivery time for the shopper to receive the goods. Allowed values: * - * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * - * `twoOrMoreDaysShipping` + * The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` * - * @param deliveryTimeframe The estimated delivery time for the shopper to receive the goods. - * Allowed values: * `electronicDelivery` * `sameDayShipping` * - * `overnightShipping` * `twoOrMoreDaysShipping` + * @param deliveryTimeframe The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator deliveryTimeframe(DeliveryTimeframeEnum deliveryTimeframe) { @@ -366,13 +337,8 @@ public MerchantRiskIndicator deliveryTimeframe(DeliveryTimeframeEnum deliveryTim } /** - * The estimated delivery time for the shopper to receive the goods. Allowed values: * - * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * - * `twoOrMoreDaysShipping` - * - * @return deliveryTimeframe The estimated delivery time for the shopper to receive the goods. - * Allowed values: * `electronicDelivery` * `sameDayShipping` * - * `overnightShipping` * `twoOrMoreDaysShipping` + * The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` + * @return deliveryTimeframe The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` */ @JsonProperty(JSON_PROPERTY_DELIVERY_TIMEFRAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -381,13 +347,9 @@ public DeliveryTimeframeEnum getDeliveryTimeframe() { } /** - * The estimated delivery time for the shopper to receive the goods. Allowed values: * - * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * - * `twoOrMoreDaysShipping` + * The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` * - * @param deliveryTimeframe The estimated delivery time for the shopper to receive the goods. - * Allowed values: * `electronicDelivery` * `sameDayShipping` * - * `overnightShipping` * `twoOrMoreDaysShipping` + * @param deliveryTimeframe The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` */ @JsonProperty(JSON_PROPERTY_DELIVERY_TIMEFRAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -398,7 +360,7 @@ public void setDeliveryTimeframe(DeliveryTimeframeEnum deliveryTimeframe) { /** * giftCardAmount * - * @param giftCardAmount + * @param giftCardAmount * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator giftCardAmount(Amount giftCardAmount) { @@ -408,8 +370,7 @@ public MerchantRiskIndicator giftCardAmount(Amount giftCardAmount) { /** * Get giftCardAmount - * - * @return giftCardAmount + * @return giftCardAmount */ @JsonProperty(JSON_PROPERTY_GIFT_CARD_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -420,7 +381,7 @@ public Amount getGiftCardAmount() { /** * giftCardAmount * - * @param giftCardAmount + * @param giftCardAmount */ @JsonProperty(JSON_PROPERTY_GIFT_CARD_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -429,11 +390,9 @@ public void setGiftCardAmount(Amount giftCardAmount) { } /** - * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes - * purchased. + * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. * - * @param giftCardCount For prepaid or gift card purchase, total count of individual prepaid or - * gift cards/codes purchased. + * @param giftCardCount For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator giftCardCount(Integer giftCardCount) { @@ -442,11 +401,8 @@ public MerchantRiskIndicator giftCardCount(Integer giftCardCount) { } /** - * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes - * purchased. - * - * @return giftCardCount For prepaid or gift card purchase, total count of individual prepaid or - * gift cards/codes purchased. + * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. + * @return giftCardCount For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. */ @JsonProperty(JSON_PROPERTY_GIFT_CARD_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -455,11 +411,9 @@ public Integer getGiftCardCount() { } /** - * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes - * purchased. + * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. * - * @param giftCardCount For prepaid or gift card purchase, total count of individual prepaid or - * gift cards/codes purchased. + * @param giftCardCount For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. */ @JsonProperty(JSON_PROPERTY_GIFT_CARD_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -468,14 +422,9 @@ public void setGiftCardCount(Integer giftCardCount) { } /** - * For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) - * three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo - * 3D Secure Protocol and Core Functions Specification. + * For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification. * - * @param giftCardCurr For prepaid or gift card purchase, [ISO - * 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the - * gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core - * Functions Specification. + * @param giftCardCurr For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification. * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator giftCardCurr(String giftCardCurr) { @@ -484,14 +433,8 @@ public MerchantRiskIndicator giftCardCurr(String giftCardCurr) { } /** - * For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) - * three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo - * 3D Secure Protocol and Core Functions Specification. - * - * @return giftCardCurr For prepaid or gift card purchase, [ISO - * 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the - * gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core - * Functions Specification. + * For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification. + * @return giftCardCurr For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification. */ @JsonProperty(JSON_PROPERTY_GIFT_CARD_CURR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -500,14 +443,9 @@ public String getGiftCardCurr() { } /** - * For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) - * three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo - * 3D Secure Protocol and Core Functions Specification. + * For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification. * - * @param giftCardCurr For prepaid or gift card purchase, [ISO - * 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the - * gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core - * Functions Specification. + * @param giftCardCurr For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification. */ @JsonProperty(JSON_PROPERTY_GIFT_CARD_CURR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -518,8 +456,7 @@ public void setGiftCardCurr(String giftCardCurr) { /** * For pre-order purchases, the expected date this product will be available to the shopper. * - * @param preOrderDate For pre-order purchases, the expected date this product will be available - * to the shopper. + * @param preOrderDate For pre-order purchases, the expected date this product will be available to the shopper. * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator preOrderDate(OffsetDateTime preOrderDate) { @@ -529,9 +466,7 @@ public MerchantRiskIndicator preOrderDate(OffsetDateTime preOrderDate) { /** * For pre-order purchases, the expected date this product will be available to the shopper. - * - * @return preOrderDate For pre-order purchases, the expected date this product will be available - * to the shopper. + * @return preOrderDate For pre-order purchases, the expected date this product will be available to the shopper. */ @JsonProperty(JSON_PROPERTY_PRE_ORDER_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -542,8 +477,7 @@ public OffsetDateTime getPreOrderDate() { /** * For pre-order purchases, the expected date this product will be available to the shopper. * - * @param preOrderDate For pre-order purchases, the expected date this product will be available - * to the shopper. + * @param preOrderDate For pre-order purchases, the expected date this product will be available to the shopper. */ @JsonProperty(JSON_PROPERTY_PRE_ORDER_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -564,7 +498,6 @@ public MerchantRiskIndicator preOrderPurchase(Boolean preOrderPurchase) { /** * Indicator for whether this transaction is for pre-ordering a product. - * * @return preOrderPurchase Indicator for whether this transaction is for pre-ordering a product. */ @JsonProperty(JSON_PROPERTY_PRE_ORDER_PURCHASE) @@ -585,11 +518,9 @@ public void setPreOrderPurchase(Boolean preOrderPurchase) { } /** - * Indicates whether Cardholder is placing an order for merchandise with a future availability or - * release date. + * Indicates whether Cardholder is placing an order for merchandise with a future availability or release date. * - * @param preOrderPurchaseInd Indicates whether Cardholder is placing an order for merchandise - * with a future availability or release date. + * @param preOrderPurchaseInd Indicates whether Cardholder is placing an order for merchandise with a future availability or release date. * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator preOrderPurchaseInd(String preOrderPurchaseInd) { @@ -598,11 +529,8 @@ public MerchantRiskIndicator preOrderPurchaseInd(String preOrderPurchaseInd) { } /** - * Indicates whether Cardholder is placing an order for merchandise with a future availability or - * release date. - * - * @return preOrderPurchaseInd Indicates whether Cardholder is placing an order for merchandise - * with a future availability or release date. + * Indicates whether Cardholder is placing an order for merchandise with a future availability or release date. + * @return preOrderPurchaseInd Indicates whether Cardholder is placing an order for merchandise with a future availability or release date. */ @JsonProperty(JSON_PROPERTY_PRE_ORDER_PURCHASE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -611,11 +539,9 @@ public String getPreOrderPurchaseInd() { } /** - * Indicates whether Cardholder is placing an order for merchandise with a future availability or - * release date. + * Indicates whether Cardholder is placing an order for merchandise with a future availability or release date. * - * @param preOrderPurchaseInd Indicates whether Cardholder is placing an order for merchandise - * with a future availability or release date. + * @param preOrderPurchaseInd Indicates whether Cardholder is placing an order for merchandise with a future availability or release date. */ @JsonProperty(JSON_PROPERTY_PRE_ORDER_PURCHASE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -626,8 +552,7 @@ public void setPreOrderPurchaseInd(String preOrderPurchaseInd) { /** * Indicator for whether the shopper has already purchased the same items in the past. * - * @param reorderItems Indicator for whether the shopper has already purchased the same items in - * the past. + * @param reorderItems Indicator for whether the shopper has already purchased the same items in the past. * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator reorderItems(Boolean reorderItems) { @@ -637,9 +562,7 @@ public MerchantRiskIndicator reorderItems(Boolean reorderItems) { /** * Indicator for whether the shopper has already purchased the same items in the past. - * - * @return reorderItems Indicator for whether the shopper has already purchased the same items in - * the past. + * @return reorderItems Indicator for whether the shopper has already purchased the same items in the past. */ @JsonProperty(JSON_PROPERTY_REORDER_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -650,8 +573,7 @@ public Boolean getReorderItems() { /** * Indicator for whether the shopper has already purchased the same items in the past. * - * @param reorderItems Indicator for whether the shopper has already purchased the same items in - * the past. + * @param reorderItems Indicator for whether the shopper has already purchased the same items in the past. */ @JsonProperty(JSON_PROPERTY_REORDER_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -662,8 +584,7 @@ public void setReorderItems(Boolean reorderItems) { /** * Indicates whether the cardholder is reordering previously purchased merchandise. * - * @param reorderItemsInd Indicates whether the cardholder is reordering previously purchased - * merchandise. + * @param reorderItemsInd Indicates whether the cardholder is reordering previously purchased merchandise. * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator reorderItemsInd(String reorderItemsInd) { @@ -673,9 +594,7 @@ public MerchantRiskIndicator reorderItemsInd(String reorderItemsInd) { /** * Indicates whether the cardholder is reordering previously purchased merchandise. - * - * @return reorderItemsInd Indicates whether the cardholder is reordering previously purchased - * merchandise. + * @return reorderItemsInd Indicates whether the cardholder is reordering previously purchased merchandise. */ @JsonProperty(JSON_PROPERTY_REORDER_ITEMS_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -686,8 +605,7 @@ public String getReorderItemsInd() { /** * Indicates whether the cardholder is reordering previously purchased merchandise. * - * @param reorderItemsInd Indicates whether the cardholder is reordering previously purchased - * merchandise. + * @param reorderItemsInd Indicates whether the cardholder is reordering previously purchased merchandise. */ @JsonProperty(JSON_PROPERTY_REORDER_ITEMS_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -708,7 +626,6 @@ public MerchantRiskIndicator shipIndicator(String shipIndicator) { /** * Indicates shipping method chosen for the transaction. - * * @return shipIndicator Indicates shipping method chosen for the transaction. */ @JsonProperty(JSON_PROPERTY_SHIP_INDICATOR) @@ -728,7 +645,9 @@ public void setShipIndicator(String shipIndicator) { this.shipIndicator = shipIndicator; } - /** Return true if this MerchantRiskIndicator object is equal to o. */ + /** + * Return true if this MerchantRiskIndicator object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -738,40 +657,25 @@ public boolean equals(Object o) { return false; } MerchantRiskIndicator merchantRiskIndicator = (MerchantRiskIndicator) o; - return Objects.equals(this.addressMatch, merchantRiskIndicator.addressMatch) - && Objects.equals( - this.deliveryAddressIndicator, merchantRiskIndicator.deliveryAddressIndicator) - && Objects.equals(this.deliveryEmail, merchantRiskIndicator.deliveryEmail) - && Objects.equals(this.deliveryEmailAddress, merchantRiskIndicator.deliveryEmailAddress) - && Objects.equals(this.deliveryTimeframe, merchantRiskIndicator.deliveryTimeframe) - && Objects.equals(this.giftCardAmount, merchantRiskIndicator.giftCardAmount) - && Objects.equals(this.giftCardCount, merchantRiskIndicator.giftCardCount) - && Objects.equals(this.giftCardCurr, merchantRiskIndicator.giftCardCurr) - && Objects.equals(this.preOrderDate, merchantRiskIndicator.preOrderDate) - && Objects.equals(this.preOrderPurchase, merchantRiskIndicator.preOrderPurchase) - && Objects.equals(this.preOrderPurchaseInd, merchantRiskIndicator.preOrderPurchaseInd) - && Objects.equals(this.reorderItems, merchantRiskIndicator.reorderItems) - && Objects.equals(this.reorderItemsInd, merchantRiskIndicator.reorderItemsInd) - && Objects.equals(this.shipIndicator, merchantRiskIndicator.shipIndicator); + return Objects.equals(this.addressMatch, merchantRiskIndicator.addressMatch) && + Objects.equals(this.deliveryAddressIndicator, merchantRiskIndicator.deliveryAddressIndicator) && + Objects.equals(this.deliveryEmail, merchantRiskIndicator.deliveryEmail) && + Objects.equals(this.deliveryEmailAddress, merchantRiskIndicator.deliveryEmailAddress) && + Objects.equals(this.deliveryTimeframe, merchantRiskIndicator.deliveryTimeframe) && + Objects.equals(this.giftCardAmount, merchantRiskIndicator.giftCardAmount) && + Objects.equals(this.giftCardCount, merchantRiskIndicator.giftCardCount) && + Objects.equals(this.giftCardCurr, merchantRiskIndicator.giftCardCurr) && + Objects.equals(this.preOrderDate, merchantRiskIndicator.preOrderDate) && + Objects.equals(this.preOrderPurchase, merchantRiskIndicator.preOrderPurchase) && + Objects.equals(this.preOrderPurchaseInd, merchantRiskIndicator.preOrderPurchaseInd) && + Objects.equals(this.reorderItems, merchantRiskIndicator.reorderItems) && + Objects.equals(this.reorderItemsInd, merchantRiskIndicator.reorderItemsInd) && + Objects.equals(this.shipIndicator, merchantRiskIndicator.shipIndicator); } @Override public int hashCode() { - return Objects.hash( - addressMatch, - deliveryAddressIndicator, - deliveryEmail, - deliveryEmailAddress, - deliveryTimeframe, - giftCardAmount, - giftCardCount, - giftCardCurr, - preOrderDate, - preOrderPurchase, - preOrderPurchaseInd, - reorderItems, - reorderItemsInd, - shipIndicator); + return Objects.hash(addressMatch, deliveryAddressIndicator, deliveryEmail, deliveryEmailAddress, deliveryTimeframe, giftCardAmount, giftCardCount, giftCardCurr, preOrderDate, preOrderPurchase, preOrderPurchaseInd, reorderItems, reorderItemsInd, shipIndicator); } @Override @@ -779,22 +683,16 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MerchantRiskIndicator {\n"); sb.append(" addressMatch: ").append(toIndentedString(addressMatch)).append("\n"); - sb.append(" deliveryAddressIndicator: ") - .append(toIndentedString(deliveryAddressIndicator)) - .append("\n"); + sb.append(" deliveryAddressIndicator: ").append(toIndentedString(deliveryAddressIndicator)).append("\n"); sb.append(" deliveryEmail: ").append(toIndentedString(deliveryEmail)).append("\n"); - sb.append(" deliveryEmailAddress: ") - .append(toIndentedString(deliveryEmailAddress)) - .append("\n"); + sb.append(" deliveryEmailAddress: ").append(toIndentedString(deliveryEmailAddress)).append("\n"); sb.append(" deliveryTimeframe: ").append(toIndentedString(deliveryTimeframe)).append("\n"); sb.append(" giftCardAmount: ").append(toIndentedString(giftCardAmount)).append("\n"); sb.append(" giftCardCount: ").append(toIndentedString(giftCardCount)).append("\n"); sb.append(" giftCardCurr: ").append(toIndentedString(giftCardCurr)).append("\n"); sb.append(" preOrderDate: ").append(toIndentedString(preOrderDate)).append("\n"); sb.append(" preOrderPurchase: ").append(toIndentedString(preOrderPurchase)).append("\n"); - sb.append(" preOrderPurchaseInd: ") - .append(toIndentedString(preOrderPurchaseInd)) - .append("\n"); + sb.append(" preOrderPurchaseInd: ").append(toIndentedString(preOrderPurchaseInd)).append("\n"); sb.append(" reorderItems: ").append(toIndentedString(reorderItems)).append("\n"); sb.append(" reorderItemsInd: ").append(toIndentedString(reorderItemsInd)).append("\n"); sb.append(" shipIndicator: ").append(toIndentedString(shipIndicator)).append("\n"); @@ -803,7 +701,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -812,23 +711,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of MerchantRiskIndicator given an JSON string * * @param jsonString JSON string * @return An instance of MerchantRiskIndicator - * @throws JsonProcessingException if the JSON string is invalid with respect to - * MerchantRiskIndicator + * @throws JsonProcessingException if the JSON string is invalid with respect to MerchantRiskIndicator */ public static MerchantRiskIndicator fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MerchantRiskIndicator.class); } - - /** - * Convert an instance of MerchantRiskIndicator to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of MerchantRiskIndicator to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/MobilePayDetails.java b/src/main/java/com/adyen/model/checkout/MobilePayDetails.java index 86222695f..d08fc16a2 100644 --- a/src/main/java/com/adyen/model/checkout/MobilePayDetails.java +++ b/src/main/java/com/adyen/model/checkout/MobilePayDetails.java @@ -2,36 +2,45 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** MobilePayDetails */ + +/** + * MobilePayDetails + */ @JsonPropertyOrder({ MobilePayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, MobilePayDetails.JSON_PROPERTY_TYPE }) + public class MobilePayDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; - /** **mobilepay** */ + /** + * **mobilepay** + */ public enum TypeEnum { + MOBILEPAY(String.valueOf("mobilepay")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -39,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -72,7 +77,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public MobilePayDetails() {} + public MobilePayDetails() { + } /** * The checkout attempt identifier. @@ -87,7 +93,6 @@ public MobilePayDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -120,7 +125,6 @@ public MobilePayDetails type(TypeEnum type) { /** * **mobilepay** - * * @return type **mobilepay** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -140,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this MobilePayDetails object is equal to o. */ + /** + * Return true if this MobilePayDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -150,8 +156,8 @@ public boolean equals(Object o) { return false; } MobilePayDetails mobilePayDetails = (MobilePayDetails) o; - return Objects.equals(this.checkoutAttemptId, mobilePayDetails.checkoutAttemptId) - && Objects.equals(this.type, mobilePayDetails.type); + return Objects.equals(this.checkoutAttemptId, mobilePayDetails.checkoutAttemptId) && + Objects.equals(this.type, mobilePayDetails.type); } @Override @@ -170,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -179,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of MobilePayDetails given an JSON string * * @param jsonString JSON string @@ -189,12 +196,11 @@ private String toIndentedString(Object o) { public static MobilePayDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MobilePayDetails.class); } - - /** - * Convert an instance of MobilePayDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of MobilePayDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/MolPayDetails.java b/src/main/java/com/adyen/model/checkout/MolPayDetails.java index 46137acd1..dbb3ee044 100644 --- a/src/main/java/com/adyen/model/checkout/MolPayDetails.java +++ b/src/main/java/com/adyen/model/checkout/MolPayDetails.java @@ -2,31 +2,37 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** MolPayDetails */ + +/** + * MolPayDetails + */ @JsonPropertyOrder({ MolPayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, MolPayDetails.JSON_PROPERTY_ISSUER, MolPayDetails.JSON_PROPERTY_TYPE }) + public class MolPayDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -34,8 +40,11 @@ public class MolPayDetails { public static final String JSON_PROPERTY_ISSUER = "issuer"; private String issuer; - /** **molpay** */ + /** + * **molpay** + */ public enum TypeEnum { + MOLPAY_EBANKING_FPX_MY(String.valueOf("molpay_ebanking_fpx_MY")), MOLPAY_EBANKING_TH(String.valueOf("molpay_ebanking_TH")); @@ -45,7 +54,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -66,11 +75,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -78,7 +83,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public MolPayDetails() {} + public MolPayDetails() { + } /** * The checkout attempt identifier. @@ -93,7 +99,6 @@ public MolPayDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -116,8 +121,7 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { /** * The shopper's bank. Specify this with the issuer value that corresponds to this bank. * - * @param issuer The shopper's bank. Specify this with the issuer value that corresponds to - * this bank. + * @param issuer The shopper's bank. Specify this with the issuer value that corresponds to this bank. * @return the current {@code MolPayDetails} instance, allowing for method chaining */ public MolPayDetails issuer(String issuer) { @@ -127,9 +131,7 @@ public MolPayDetails issuer(String issuer) { /** * The shopper's bank. Specify this with the issuer value that corresponds to this bank. - * - * @return issuer The shopper's bank. Specify this with the issuer value that corresponds to - * this bank. + * @return issuer The shopper's bank. Specify this with the issuer value that corresponds to this bank. */ @JsonProperty(JSON_PROPERTY_ISSUER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,8 +142,7 @@ public String getIssuer() { /** * The shopper's bank. Specify this with the issuer value that corresponds to this bank. * - * @param issuer The shopper's bank. Specify this with the issuer value that corresponds to - * this bank. + * @param issuer The shopper's bank. Specify this with the issuer value that corresponds to this bank. */ @JsonProperty(JSON_PROPERTY_ISSUER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -162,7 +163,6 @@ public MolPayDetails type(TypeEnum type) { /** * **molpay** - * * @return type **molpay** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -182,7 +182,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this MolPayDetails object is equal to o. */ + /** + * Return true if this MolPayDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +194,9 @@ public boolean equals(Object o) { return false; } MolPayDetails molPayDetails = (MolPayDetails) o; - return Objects.equals(this.checkoutAttemptId, molPayDetails.checkoutAttemptId) - && Objects.equals(this.issuer, molPayDetails.issuer) - && Objects.equals(this.type, molPayDetails.type); + return Objects.equals(this.checkoutAttemptId, molPayDetails.checkoutAttemptId) && + Objects.equals(this.issuer, molPayDetails.issuer) && + Objects.equals(this.type, molPayDetails.type); } @Override @@ -214,7 +216,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -223,7 +226,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of MolPayDetails given an JSON string * * @param jsonString JSON string @@ -233,12 +236,11 @@ private String toIndentedString(Object o) { public static MolPayDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MolPayDetails.class); } - - /** - * Convert an instance of MolPayDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of MolPayDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Name.java b/src/main/java/com/adyen/model/checkout/Name.java index 4c60fa238..51e869ef2 100644 --- a/src/main/java/com/adyen/model/checkout/Name.java +++ b/src/main/java/com/adyen/model/checkout/Name.java @@ -2,23 +2,36 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Name */ -@JsonPropertyOrder({Name.JSON_PROPERTY_FIRST_NAME, Name.JSON_PROPERTY_LAST_NAME}) + +/** + * Name + */ +@JsonPropertyOrder({ + Name.JSON_PROPERTY_FIRST_NAME, + Name.JSON_PROPERTY_LAST_NAME +}) + public class Name { public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; private String firstName; @@ -26,7 +39,8 @@ public class Name { public static final String JSON_PROPERTY_LAST_NAME = "lastName"; private String lastName; - public Name() {} + public Name() { + } /** * The first name. @@ -41,7 +55,6 @@ public Name firstName(String firstName) { /** * The first name. - * * @return firstName The first name. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @@ -74,7 +87,6 @@ public Name lastName(String lastName) { /** * The last name. - * * @return lastName The last name. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @@ -94,7 +106,9 @@ public void setLastName(String lastName) { this.lastName = lastName; } - /** Return true if this Name object is equal to o. */ + /** + * Return true if this Name object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -104,8 +118,8 @@ public boolean equals(Object o) { return false; } Name name = (Name) o; - return Objects.equals(this.firstName, name.firstName) - && Objects.equals(this.lastName, name.lastName); + return Objects.equals(this.firstName, name.firstName) && + Objects.equals(this.lastName, name.lastName); } @Override @@ -124,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Name given an JSON string * * @param jsonString JSON string @@ -143,12 +158,11 @@ private String toIndentedString(Object o) { public static Name fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Name.class); } - - /** - * Convert an instance of Name to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Name to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/OpenInvoiceDetails.java b/src/main/java/com/adyen/model/checkout/OpenInvoiceDetails.java index 9c33b6e20..690b76942 100644 --- a/src/main/java/com/adyen/model/checkout/OpenInvoiceDetails.java +++ b/src/main/java/com/adyen/model/checkout/OpenInvoiceDetails.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** OpenInvoiceDetails */ + +/** + * OpenInvoiceDetails + */ @JsonPropertyOrder({ OpenInvoiceDetails.JSON_PROPERTY_BILLING_ADDRESS, OpenInvoiceDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, @@ -31,6 +36,7 @@ OpenInvoiceDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, OpenInvoiceDetails.JSON_PROPERTY_TYPE }) + public class OpenInvoiceDetails { public static final String JSON_PROPERTY_BILLING_ADDRESS = "billingAddress"; private String billingAddress; @@ -51,8 +57,11 @@ public class OpenInvoiceDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** **openinvoice** */ + /** + * **openinvoice** + */ public enum TypeEnum { + OPENINVOICE(String.valueOf("openinvoice")), AFTERPAY_DIRECTDEBIT(String.valueOf("afterpay_directdebit")), @@ -64,7 +73,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -85,11 +94,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -97,7 +102,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public OpenInvoiceDetails() {} + public OpenInvoiceDetails() { + } /** * The address where to send the invoice. @@ -112,7 +118,6 @@ public OpenInvoiceDetails billingAddress(String billingAddress) { /** * The address where to send the invoice. - * * @return billingAddress The address where to send the invoice. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @@ -145,7 +150,6 @@ public OpenInvoiceDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -178,7 +182,6 @@ public OpenInvoiceDetails deliveryAddress(String deliveryAddress) { /** * The address where the goods should be delivered. - * * @return deliveryAddress The address where the goods should be delivered. */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @@ -211,7 +214,6 @@ public OpenInvoiceDetails personalDetails(String personalDetails) { /** * Shopper name, date of birth, phone number, and email address. - * * @return personalDetails Shopper name, date of birth, phone number, and email address. */ @JsonProperty(JSON_PROPERTY_PERSONAL_DETAILS) @@ -232,13 +234,13 @@ public void setPersonalDetails(String personalDetails) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code OpenInvoiceDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public OpenInvoiceDetails recurringDetailReference(String recurringDetailReference) { @@ -247,11 +249,8 @@ public OpenInvoiceDetails recurringDetailReference(String recurringDetailReferen } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -262,12 +261,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -277,11 +276,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code OpenInvoiceDetails} instance, allowing for method chaining */ public OpenInvoiceDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -290,11 +287,8 @@ public OpenInvoiceDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -303,11 +297,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -328,7 +320,6 @@ public OpenInvoiceDetails type(TypeEnum type) { /** * **openinvoice** - * * @return type **openinvoice** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -348,7 +339,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this OpenInvoiceDetails object is equal to o. */ + /** + * Return true if this OpenInvoiceDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -358,26 +351,18 @@ public boolean equals(Object o) { return false; } OpenInvoiceDetails openInvoiceDetails = (OpenInvoiceDetails) o; - return Objects.equals(this.billingAddress, openInvoiceDetails.billingAddress) - && Objects.equals(this.checkoutAttemptId, openInvoiceDetails.checkoutAttemptId) - && Objects.equals(this.deliveryAddress, openInvoiceDetails.deliveryAddress) - && Objects.equals(this.personalDetails, openInvoiceDetails.personalDetails) - && Objects.equals( - this.recurringDetailReference, openInvoiceDetails.recurringDetailReference) - && Objects.equals(this.storedPaymentMethodId, openInvoiceDetails.storedPaymentMethodId) - && Objects.equals(this.type, openInvoiceDetails.type); + return Objects.equals(this.billingAddress, openInvoiceDetails.billingAddress) && + Objects.equals(this.checkoutAttemptId, openInvoiceDetails.checkoutAttemptId) && + Objects.equals(this.deliveryAddress, openInvoiceDetails.deliveryAddress) && + Objects.equals(this.personalDetails, openInvoiceDetails.personalDetails) && + Objects.equals(this.recurringDetailReference, openInvoiceDetails.recurringDetailReference) && + Objects.equals(this.storedPaymentMethodId, openInvoiceDetails.storedPaymentMethodId) && + Objects.equals(this.type, openInvoiceDetails.type); } @Override public int hashCode() { - return Objects.hash( - billingAddress, - checkoutAttemptId, - deliveryAddress, - personalDetails, - recurringDetailReference, - storedPaymentMethodId, - type); + return Objects.hash(billingAddress, checkoutAttemptId, deliveryAddress, personalDetails, recurringDetailReference, storedPaymentMethodId, type); } @Override @@ -388,19 +373,16 @@ public String toString() { sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" deliveryAddress: ").append(toIndentedString(deliveryAddress)).append("\n"); sb.append(" personalDetails: ").append(toIndentedString(personalDetails)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -409,23 +391,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of OpenInvoiceDetails given an JSON string * * @param jsonString JSON string * @return An instance of OpenInvoiceDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * OpenInvoiceDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to OpenInvoiceDetails */ public static OpenInvoiceDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, OpenInvoiceDetails.class); } - - /** - * Convert an instance of OpenInvoiceDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of OpenInvoiceDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Passenger.java b/src/main/java/com/adyen/model/checkout/Passenger.java index ebc966312..dd6acc240 100644 --- a/src/main/java/com/adyen/model/checkout/Passenger.java +++ b/src/main/java/com/adyen/model/checkout/Passenger.java @@ -2,23 +2,32 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.LocalDate; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.time.LocalDate; -import java.util.*; -/** Passenger */ + +/** + * Passenger + */ @JsonPropertyOrder({ Passenger.JSON_PROPERTY_DATE_OF_BIRTH, Passenger.JSON_PROPERTY_FIRST_NAME, @@ -26,6 +35,7 @@ Passenger.JSON_PROPERTY_PHONE_NUMBER, Passenger.JSON_PROPERTY_TRAVELLER_TYPE }) + public class Passenger { public static final String JSON_PROPERTY_DATE_OF_BIRTH = "dateOfBirth"; private LocalDate dateOfBirth; @@ -42,14 +52,13 @@ public class Passenger { public static final String JSON_PROPERTY_TRAVELLER_TYPE = "travellerType"; private String travellerType; - public Passenger() {} + public Passenger() { + } /** - * The passenger's date of birth. * Format `yyyy-MM-dd` * minLength: 10 * maxLength: - * 10 + * The passenger's date of birth. * Format `yyyy-MM-dd` * minLength: 10 * maxLength: 10 * - * @param dateOfBirth The passenger's date of birth. * Format `yyyy-MM-dd` * - * minLength: 10 * maxLength: 10 + * @param dateOfBirth The passenger's date of birth. * Format `yyyy-MM-dd` * minLength: 10 * maxLength: 10 * @return the current {@code Passenger} instance, allowing for method chaining */ public Passenger dateOfBirth(LocalDate dateOfBirth) { @@ -58,11 +67,8 @@ public Passenger dateOfBirth(LocalDate dateOfBirth) { } /** - * The passenger's date of birth. * Format `yyyy-MM-dd` * minLength: 10 * maxLength: - * 10 - * - * @return dateOfBirth The passenger's date of birth. * Format `yyyy-MM-dd` * - * minLength: 10 * maxLength: 10 + * The passenger's date of birth. * Format `yyyy-MM-dd` * minLength: 10 * maxLength: 10 + * @return dateOfBirth The passenger's date of birth. * Format `yyyy-MM-dd` * minLength: 10 * maxLength: 10 */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,11 +77,9 @@ public LocalDate getDateOfBirth() { } /** - * The passenger's date of birth. * Format `yyyy-MM-dd` * minLength: 10 * maxLength: - * 10 + * The passenger's date of birth. * Format `yyyy-MM-dd` * minLength: 10 * maxLength: 10 * - * @param dateOfBirth The passenger's date of birth. * Format `yyyy-MM-dd` * - * minLength: 10 * maxLength: 10 + * @param dateOfBirth The passenger's date of birth. * Format `yyyy-MM-dd` * minLength: 10 * maxLength: 10 */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -84,11 +88,9 @@ public void setDateOfBirth(LocalDate dateOfBirth) { } /** - * The passenger's first name. > This field is required if the airline data includes - * passenger details or leg details. * Encoding: ASCII + * The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII * - * @param firstName The passenger's first name. > This field is required if the airline - * data includes passenger details or leg details. * Encoding: ASCII + * @param firstName The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII * @return the current {@code Passenger} instance, allowing for method chaining */ public Passenger firstName(String firstName) { @@ -97,11 +99,8 @@ public Passenger firstName(String firstName) { } /** - * The passenger's first name. > This field is required if the airline data includes - * passenger details or leg details. * Encoding: ASCII - * - * @return firstName The passenger's first name. > This field is required if the airline - * data includes passenger details or leg details. * Encoding: ASCII + * The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * @return firstName The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,11 +109,9 @@ public String getFirstName() { } /** - * The passenger's first name. > This field is required if the airline data includes - * passenger details or leg details. * Encoding: ASCII + * The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII * - * @param firstName The passenger's first name. > This field is required if the airline - * data includes passenger details or leg details. * Encoding: ASCII + * @param firstName The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,11 +120,9 @@ public void setFirstName(String firstName) { } /** - * The passenger's last name. > This field is required if the airline data includes - * passenger details or leg details. * Encoding: ASCII + * The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII * - * @param lastName The passenger's last name. > This field is required if the airline data - * includes passenger details or leg details. * Encoding: ASCII + * @param lastName The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII * @return the current {@code Passenger} instance, allowing for method chaining */ public Passenger lastName(String lastName) { @@ -136,11 +131,8 @@ public Passenger lastName(String lastName) { } /** - * The passenger's last name. > This field is required if the airline data includes - * passenger details or leg details. * Encoding: ASCII - * - * @return lastName The passenger's last name. > This field is required if the airline data - * includes passenger details or leg details. * Encoding: ASCII + * The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * @return lastName The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -149,11 +141,9 @@ public String getLastName() { } /** - * The passenger's last name. > This field is required if the airline data includes - * passenger details or leg details. * Encoding: ASCII + * The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII * - * @param lastName The passenger's last name. > This field is required if the airline data - * includes passenger details or leg details. * Encoding: ASCII + * @param lastName The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -162,13 +152,9 @@ public void setLastName(String lastName) { } /** - * The passenger's phone number, including country code. This is an alphanumeric field that - * can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters - * * maxLength: 30 characters + * The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters * - * @param phoneNumber The passenger's phone number, including country code. This is an - * alphanumeric field that can include the '+' and '-' signs. * Encoding: - * ASCII * minLength: 3 characters * maxLength: 30 characters + * @param phoneNumber The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters * @return the current {@code Passenger} instance, allowing for method chaining */ public Passenger phoneNumber(String phoneNumber) { @@ -177,13 +163,8 @@ public Passenger phoneNumber(String phoneNumber) { } /** - * The passenger's phone number, including country code. This is an alphanumeric field that - * can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters - * * maxLength: 30 characters - * - * @return phoneNumber The passenger's phone number, including country code. This is an - * alphanumeric field that can include the '+' and '-' signs. * Encoding: - * ASCII * minLength: 3 characters * maxLength: 30 characters + * The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters + * @return phoneNumber The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,13 +173,9 @@ public String getPhoneNumber() { } /** - * The passenger's phone number, including country code. This is an alphanumeric field that - * can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters - * * maxLength: 30 characters + * The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters * - * @param phoneNumber The passenger's phone number, including country code. This is an - * alphanumeric field that can include the '+' and '-' signs. * Encoding: - * ASCII * minLength: 3 characters * maxLength: 30 characters + * @param phoneNumber The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -207,11 +184,9 @@ public void setPhoneNumber(String phoneNumber) { } /** - * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 - * characters + * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters * - * @param travellerType The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 - * characters * maxLength: 6 characters + * @param travellerType The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters * @return the current {@code Passenger} instance, allowing for method chaining */ public Passenger travellerType(String travellerType) { @@ -220,11 +195,8 @@ public Passenger travellerType(String travellerType) { } /** - * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 - * characters - * - * @return travellerType The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 - * characters * maxLength: 6 characters + * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters + * @return travellerType The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters */ @JsonProperty(JSON_PROPERTY_TRAVELLER_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -233,11 +205,9 @@ public String getTravellerType() { } /** - * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 - * characters + * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters * - * @param travellerType The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 - * characters * maxLength: 6 characters + * @param travellerType The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters */ @JsonProperty(JSON_PROPERTY_TRAVELLER_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -245,7 +215,9 @@ public void setTravellerType(String travellerType) { this.travellerType = travellerType; } - /** Return true if this Passenger object is equal to o. */ + /** + * Return true if this Passenger object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -255,11 +227,11 @@ public boolean equals(Object o) { return false; } Passenger passenger = (Passenger) o; - return Objects.equals(this.dateOfBirth, passenger.dateOfBirth) - && Objects.equals(this.firstName, passenger.firstName) - && Objects.equals(this.lastName, passenger.lastName) - && Objects.equals(this.phoneNumber, passenger.phoneNumber) - && Objects.equals(this.travellerType, passenger.travellerType); + return Objects.equals(this.dateOfBirth, passenger.dateOfBirth) && + Objects.equals(this.firstName, passenger.firstName) && + Objects.equals(this.lastName, passenger.lastName) && + Objects.equals(this.phoneNumber, passenger.phoneNumber) && + Objects.equals(this.travellerType, passenger.travellerType); } @Override @@ -281,7 +253,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -290,7 +263,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Passenger given an JSON string * * @param jsonString JSON string @@ -300,12 +273,11 @@ private String toIndentedString(Object o) { public static Passenger fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Passenger.class); } - - /** - * Convert an instance of Passenger to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Passenger to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PayByBankAISDirectDebitDetails.java b/src/main/java/com/adyen/model/checkout/PayByBankAISDirectDebitDetails.java index 094dadf9e..5a2c6ba6c 100644 --- a/src/main/java/com/adyen/model/checkout/PayByBankAISDirectDebitDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayByBankAISDirectDebitDetails.java @@ -2,32 +2,38 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PayByBankAISDirectDebitDetails */ +/** + * PayByBankAISDirectDebitDetails + */ @JsonPropertyOrder({ PayByBankAISDirectDebitDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, PayByBankAISDirectDebitDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, PayByBankAISDirectDebitDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, PayByBankAISDirectDebitDetails.JSON_PROPERTY_TYPE }) + public class PayByBankAISDirectDebitDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -39,8 +45,11 @@ public class PayByBankAISDirectDebitDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** **paybybank_AIS_DD** */ + /** + * **paybybank_AIS_DD** + */ public enum TypeEnum { + PAYBYBANK_AIS_DD(String.valueOf("paybybank_AIS_DD")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +57,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,11 +78,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -81,14 +86,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PayByBankAISDirectDebitDetails() {} + public PayByBankAISDirectDebitDetails() { + } /** * The checkout attempt identifier. * * @param checkoutAttemptId The checkout attempt identifier. - * @return the current {@code PayByBankAISDirectDebitDetails} instance, allowing for method - * chaining + * @return the current {@code PayByBankAISDirectDebitDetails} instance, allowing for method chaining */ public PayByBankAISDirectDebitDetails checkoutAttemptId(String checkoutAttemptId) { this.checkoutAttemptId = checkoutAttemptId; @@ -97,7 +102,6 @@ public PayByBankAISDirectDebitDetails checkoutAttemptId(String checkoutAttemptId /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -118,14 +122,13 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @return the current {@code PayByBankAISDirectDebitDetails} instance, allowing for method - * chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @return the current {@code PayByBankAISDirectDebitDetails} instance, allowing for method chaining + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public PayByBankAISDirectDebitDetails recurringDetailReference(String recurringDetailReference) { @@ -134,11 +137,8 @@ public PayByBankAISDirectDebitDetails recurringDetailReference(String recurringD } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -149,12 +149,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -164,13 +164,10 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. - * @return the current {@code PayByBankAISDirectDebitDetails} instance, allowing for method - * chaining + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @return the current {@code PayByBankAISDirectDebitDetails} instance, allowing for method chaining */ public PayByBankAISDirectDebitDetails storedPaymentMethodId(String storedPaymentMethodId) { this.storedPaymentMethodId = storedPaymentMethodId; @@ -178,11 +175,8 @@ public PayByBankAISDirectDebitDetails storedPaymentMethodId(String storedPayment } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,11 +185,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -207,8 +199,7 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { * **paybybank_AIS_DD** * * @param type **paybybank_AIS_DD** - * @return the current {@code PayByBankAISDirectDebitDetails} instance, allowing for method - * chaining + * @return the current {@code PayByBankAISDirectDebitDetails} instance, allowing for method chaining */ public PayByBankAISDirectDebitDetails type(TypeEnum type) { this.type = type; @@ -217,7 +208,6 @@ public PayByBankAISDirectDebitDetails type(TypeEnum type) { /** * **paybybank_AIS_DD** - * * @return type **paybybank_AIS_DD** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -237,7 +227,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this PayByBankAISDirectDebitDetails object is equal to o. */ + /** + * Return true if this PayByBankAISDirectDebitDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -246,14 +238,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PayByBankAISDirectDebitDetails payByBankAISDirectDebitDetails = - (PayByBankAISDirectDebitDetails) o; - return Objects.equals(this.checkoutAttemptId, payByBankAISDirectDebitDetails.checkoutAttemptId) - && Objects.equals( - this.recurringDetailReference, payByBankAISDirectDebitDetails.recurringDetailReference) - && Objects.equals( - this.storedPaymentMethodId, payByBankAISDirectDebitDetails.storedPaymentMethodId) - && Objects.equals(this.type, payByBankAISDirectDebitDetails.type); + PayByBankAISDirectDebitDetails payByBankAISDirectDebitDetails = (PayByBankAISDirectDebitDetails) o; + return Objects.equals(this.checkoutAttemptId, payByBankAISDirectDebitDetails.checkoutAttemptId) && + Objects.equals(this.recurringDetailReference, payByBankAISDirectDebitDetails.recurringDetailReference) && + Objects.equals(this.storedPaymentMethodId, payByBankAISDirectDebitDetails.storedPaymentMethodId) && + Objects.equals(this.type, payByBankAISDirectDebitDetails.type); } @Override @@ -266,19 +255,16 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PayByBankAISDirectDebitDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -287,24 +273,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PayByBankAISDirectDebitDetails given an JSON string * * @param jsonString JSON string * @return An instance of PayByBankAISDirectDebitDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PayByBankAISDirectDebitDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to PayByBankAISDirectDebitDetails */ - public static PayByBankAISDirectDebitDetails fromJson(String jsonString) - throws JsonProcessingException { + public static PayByBankAISDirectDebitDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayByBankAISDirectDebitDetails.class); } - - /** - * Convert an instance of PayByBankAISDirectDebitDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PayByBankAISDirectDebitDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PayByBankDetails.java b/src/main/java/com/adyen/model/checkout/PayByBankDetails.java index 9d0d8ca2e..995bbcdc5 100644 --- a/src/main/java/com/adyen/model/checkout/PayByBankDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayByBankDetails.java @@ -2,31 +2,37 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** PayByBankDetails */ + +/** + * PayByBankDetails + */ @JsonPropertyOrder({ PayByBankDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, PayByBankDetails.JSON_PROPERTY_ISSUER, PayByBankDetails.JSON_PROPERTY_TYPE }) + public class PayByBankDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -34,8 +40,11 @@ public class PayByBankDetails { public static final String JSON_PROPERTY_ISSUER = "issuer"; private String issuer; - /** **paybybank** */ + /** + * **paybybank** + */ public enum TypeEnum { + PAYBYBANK(String.valueOf("paybybank")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -43,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -76,7 +81,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PayByBankDetails() {} + public PayByBankDetails() { + } /** * The checkout attempt identifier. @@ -91,7 +97,6 @@ public PayByBankDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -124,7 +129,6 @@ public PayByBankDetails issuer(String issuer) { /** * The PayByBank issuer value of the shopper's selected bank. - * * @return issuer The PayByBank issuer value of the shopper's selected bank. */ @JsonProperty(JSON_PROPERTY_ISSUER) @@ -157,7 +161,6 @@ public PayByBankDetails type(TypeEnum type) { /** * **paybybank** - * * @return type **paybybank** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -177,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this PayByBankDetails object is equal to o. */ + /** + * Return true if this PayByBankDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -187,9 +192,9 @@ public boolean equals(Object o) { return false; } PayByBankDetails payByBankDetails = (PayByBankDetails) o; - return Objects.equals(this.checkoutAttemptId, payByBankDetails.checkoutAttemptId) - && Objects.equals(this.issuer, payByBankDetails.issuer) - && Objects.equals(this.type, payByBankDetails.type); + return Objects.equals(this.checkoutAttemptId, payByBankDetails.checkoutAttemptId) && + Objects.equals(this.issuer, payByBankDetails.issuer) && + Objects.equals(this.type, payByBankDetails.type); } @Override @@ -209,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -218,7 +224,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PayByBankDetails given an JSON string * * @param jsonString JSON string @@ -228,12 +234,11 @@ private String toIndentedString(Object o) { public static PayByBankDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayByBankDetails.class); } - - /** - * Convert an instance of PayByBankDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PayByBankDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PayPalDetails.java b/src/main/java/com/adyen/model/checkout/PayPalDetails.java index c4fd26fb5..7c6c5ffe3 100644 --- a/src/main/java/com/adyen/model/checkout/PayPalDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayPalDetails.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PayPalDetails */ +/** + * PayPalDetails + */ @JsonPropertyOrder({ PayPalDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, PayPalDetails.JSON_PROPERTY_ORDER_I_D, @@ -33,6 +38,7 @@ PayPalDetails.JSON_PROPERTY_SUBTYPE, PayPalDetails.JSON_PROPERTY_TYPE }) + public class PayPalDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -56,8 +62,11 @@ public class PayPalDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** The type of flow to initiate. */ + /** + * The type of flow to initiate. + */ public enum SubtypeEnum { + EXPRESS(String.valueOf("express")), REDIRECT(String.valueOf("redirect")), @@ -69,7 +78,7 @@ public enum SubtypeEnum { private String value; SubtypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -90,11 +99,7 @@ public static SubtypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "SubtypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(SubtypeEnum.values())); + LOG.warning("SubtypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(SubtypeEnum.values())); return null; } } @@ -102,8 +107,11 @@ public static SubtypeEnum fromValue(String value) { public static final String JSON_PROPERTY_SUBTYPE = "subtype"; private SubtypeEnum subtype; - /** **paypal** */ + /** + * **paypal** + */ public enum TypeEnum { + PAYPAL(String.valueOf("paypal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -111,7 +119,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -132,11 +140,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -144,7 +148,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PayPalDetails() {} + public PayPalDetails() { + } /** * The checkout attempt identifier. @@ -159,7 +164,6 @@ public PayPalDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -192,7 +196,6 @@ public PayPalDetails orderID(String orderID) { /** * The unique ID associated with the order. - * * @return orderID The unique ID associated with the order. */ @JsonProperty(JSON_PROPERTY_ORDER_I_D) @@ -225,7 +228,6 @@ public PayPalDetails payeePreferred(String payeePreferred) { /** * IMMEDIATE_PAYMENT_REQUIRED or UNRESTRICTED - * * @return payeePreferred IMMEDIATE_PAYMENT_REQUIRED or UNRESTRICTED */ @JsonProperty(JSON_PROPERTY_PAYEE_PREFERRED) @@ -258,7 +260,6 @@ public PayPalDetails payerID(String payerID) { /** * The unique ID associated with the payer. - * * @return payerID The unique ID associated with the payer. */ @JsonProperty(JSON_PROPERTY_PAYER_I_D) @@ -291,7 +292,6 @@ public PayPalDetails payerSelected(String payerSelected) { /** * PAYPAL or PAYPAL_CREDIT - * * @return payerSelected PAYPAL or PAYPAL_CREDIT */ @JsonProperty(JSON_PROPERTY_PAYER_SELECTED) @@ -312,13 +312,13 @@ public void setPayerSelected(String payerSelected) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code PayPalDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public PayPalDetails recurringDetailReference(String recurringDetailReference) { @@ -327,11 +327,8 @@ public PayPalDetails recurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -342,12 +339,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -357,11 +354,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code PayPalDetails} instance, allowing for method chaining */ public PayPalDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -370,11 +365,8 @@ public PayPalDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -383,11 +375,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -408,7 +398,6 @@ public PayPalDetails subtype(SubtypeEnum subtype) { /** * The type of flow to initiate. - * * @return subtype The type of flow to initiate. */ @JsonProperty(JSON_PROPERTY_SUBTYPE) @@ -441,7 +430,6 @@ public PayPalDetails type(TypeEnum type) { /** * **paypal** - * * @return type **paypal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -461,7 +449,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this PayPalDetails object is equal to o. */ + /** + * Return true if this PayPalDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -471,29 +461,20 @@ public boolean equals(Object o) { return false; } PayPalDetails payPalDetails = (PayPalDetails) o; - return Objects.equals(this.checkoutAttemptId, payPalDetails.checkoutAttemptId) - && Objects.equals(this.orderID, payPalDetails.orderID) - && Objects.equals(this.payeePreferred, payPalDetails.payeePreferred) - && Objects.equals(this.payerID, payPalDetails.payerID) - && Objects.equals(this.payerSelected, payPalDetails.payerSelected) - && Objects.equals(this.recurringDetailReference, payPalDetails.recurringDetailReference) - && Objects.equals(this.storedPaymentMethodId, payPalDetails.storedPaymentMethodId) - && Objects.equals(this.subtype, payPalDetails.subtype) - && Objects.equals(this.type, payPalDetails.type); + return Objects.equals(this.checkoutAttemptId, payPalDetails.checkoutAttemptId) && + Objects.equals(this.orderID, payPalDetails.orderID) && + Objects.equals(this.payeePreferred, payPalDetails.payeePreferred) && + Objects.equals(this.payerID, payPalDetails.payerID) && + Objects.equals(this.payerSelected, payPalDetails.payerSelected) && + Objects.equals(this.recurringDetailReference, payPalDetails.recurringDetailReference) && + Objects.equals(this.storedPaymentMethodId, payPalDetails.storedPaymentMethodId) && + Objects.equals(this.subtype, payPalDetails.subtype) && + Objects.equals(this.type, payPalDetails.type); } @Override public int hashCode() { - return Objects.hash( - checkoutAttemptId, - orderID, - payeePreferred, - payerID, - payerSelected, - recurringDetailReference, - storedPaymentMethodId, - subtype, - type); + return Objects.hash(checkoutAttemptId, orderID, payeePreferred, payerID, payerSelected, recurringDetailReference, storedPaymentMethodId, subtype, type); } @Override @@ -505,12 +486,8 @@ public String toString() { sb.append(" payeePreferred: ").append(toIndentedString(payeePreferred)).append("\n"); sb.append(" payerID: ").append(toIndentedString(payerID)).append("\n"); sb.append(" payerSelected: ").append(toIndentedString(payerSelected)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -518,7 +495,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -527,7 +505,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PayPalDetails given an JSON string * * @param jsonString JSON string @@ -537,12 +515,11 @@ private String toIndentedString(Object o) { public static PayPalDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayPalDetails.class); } - - /** - * Convert an instance of PayPalDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PayPalDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PayPayDetails.java b/src/main/java/com/adyen/model/checkout/PayPayDetails.java index 67e91b996..b4bfed5ca 100644 --- a/src/main/java/com/adyen/model/checkout/PayPayDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayPayDetails.java @@ -2,32 +2,38 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PayPayDetails */ +/** + * PayPayDetails + */ @JsonPropertyOrder({ PayPayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, PayPayDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, PayPayDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, PayPayDetails.JSON_PROPERTY_TYPE }) + public class PayPayDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -39,8 +45,11 @@ public class PayPayDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** **paypay** */ + /** + * **paypay** + */ public enum TypeEnum { + PAYPAY(String.valueOf("paypay")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +57,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,11 +78,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -81,7 +86,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PayPayDetails() {} + public PayPayDetails() { + } /** * The checkout attempt identifier. @@ -96,7 +102,6 @@ public PayPayDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -117,13 +122,13 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code PayPayDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public PayPayDetails recurringDetailReference(String recurringDetailReference) { @@ -132,11 +137,8 @@ public PayPayDetails recurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -147,12 +149,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -162,11 +164,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code PayPayDetails} instance, allowing for method chaining */ public PayPayDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -175,11 +175,8 @@ public PayPayDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,11 +185,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -213,7 +208,6 @@ public PayPayDetails type(TypeEnum type) { /** * **paypay** - * * @return type **paypay** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -233,7 +227,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this PayPayDetails object is equal to o. */ + /** + * Return true if this PayPayDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -243,10 +239,10 @@ public boolean equals(Object o) { return false; } PayPayDetails payPayDetails = (PayPayDetails) o; - return Objects.equals(this.checkoutAttemptId, payPayDetails.checkoutAttemptId) - && Objects.equals(this.recurringDetailReference, payPayDetails.recurringDetailReference) - && Objects.equals(this.storedPaymentMethodId, payPayDetails.storedPaymentMethodId) - && Objects.equals(this.type, payPayDetails.type); + return Objects.equals(this.checkoutAttemptId, payPayDetails.checkoutAttemptId) && + Objects.equals(this.recurringDetailReference, payPayDetails.recurringDetailReference) && + Objects.equals(this.storedPaymentMethodId, payPayDetails.storedPaymentMethodId) && + Objects.equals(this.type, payPayDetails.type); } @Override @@ -259,19 +255,16 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PayPayDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -280,7 +273,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PayPayDetails given an JSON string * * @param jsonString JSON string @@ -290,12 +283,11 @@ private String toIndentedString(Object o) { public static PayPayDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayPayDetails.class); } - - /** - * Convert an instance of PayPayDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PayPayDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PayToDetails.java b/src/main/java/com/adyen/model/checkout/PayToDetails.java index 9a66cafdb..1f526bf96 100644 --- a/src/main/java/com/adyen/model/checkout/PayToDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayToDetails.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PayToDetails */ +/** + * PayToDetails + */ @JsonPropertyOrder({ PayToDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, PayToDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, @@ -29,6 +34,7 @@ PayToDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, PayToDetails.JSON_PROPERTY_TYPE }) + public class PayToDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -43,8 +49,11 @@ public class PayToDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** **payto** */ + /** + * **payto** + */ public enum TypeEnum { + PAYTO(String.valueOf("payto")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +61,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,11 +82,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -85,7 +90,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PayToDetails() {} + public PayToDetails() { + } /** * The checkout attempt identifier. @@ -100,7 +106,6 @@ public PayToDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -121,13 +126,13 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code PayToDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public PayToDetails recurringDetailReference(String recurringDetailReference) { @@ -136,11 +141,8 @@ public PayToDetails recurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -151,12 +153,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -168,8 +170,7 @@ public void setRecurringDetailReference(String recurringDetailReference) { /** * The shopper's banking details or payId reference, used to complete payment. * - * @param shopperAccountIdentifier The shopper's banking details or payId reference, used to - * complete payment. + * @param shopperAccountIdentifier The shopper's banking details or payId reference, used to complete payment. * @return the current {@code PayToDetails} instance, allowing for method chaining */ public PayToDetails shopperAccountIdentifier(String shopperAccountIdentifier) { @@ -179,9 +180,7 @@ public PayToDetails shopperAccountIdentifier(String shopperAccountIdentifier) { /** * The shopper's banking details or payId reference, used to complete payment. - * - * @return shopperAccountIdentifier The shopper's banking details or payId reference, used to - * complete payment. + * @return shopperAccountIdentifier The shopper's banking details or payId reference, used to complete payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_ACCOUNT_IDENTIFIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,8 +191,7 @@ public String getShopperAccountIdentifier() { /** * The shopper's banking details or payId reference, used to complete payment. * - * @param shopperAccountIdentifier The shopper's banking details or payId reference, used to - * complete payment. + * @param shopperAccountIdentifier The shopper's banking details or payId reference, used to complete payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_ACCOUNT_IDENTIFIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -202,11 +200,9 @@ public void setShopperAccountIdentifier(String shopperAccountIdentifier) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code PayToDetails} instance, allowing for method chaining */ public PayToDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -215,11 +211,8 @@ public PayToDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -228,11 +221,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -253,7 +244,6 @@ public PayToDetails type(TypeEnum type) { /** * **payto** - * * @return type **payto** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -273,7 +263,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this PayToDetails object is equal to o. */ + /** + * Return true if this PayToDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -283,21 +275,16 @@ public boolean equals(Object o) { return false; } PayToDetails payToDetails = (PayToDetails) o; - return Objects.equals(this.checkoutAttemptId, payToDetails.checkoutAttemptId) - && Objects.equals(this.recurringDetailReference, payToDetails.recurringDetailReference) - && Objects.equals(this.shopperAccountIdentifier, payToDetails.shopperAccountIdentifier) - && Objects.equals(this.storedPaymentMethodId, payToDetails.storedPaymentMethodId) - && Objects.equals(this.type, payToDetails.type); + return Objects.equals(this.checkoutAttemptId, payToDetails.checkoutAttemptId) && + Objects.equals(this.recurringDetailReference, payToDetails.recurringDetailReference) && + Objects.equals(this.shopperAccountIdentifier, payToDetails.shopperAccountIdentifier) && + Objects.equals(this.storedPaymentMethodId, payToDetails.storedPaymentMethodId) && + Objects.equals(this.type, payToDetails.type); } @Override public int hashCode() { - return Objects.hash( - checkoutAttemptId, - recurringDetailReference, - shopperAccountIdentifier, - storedPaymentMethodId, - type); + return Objects.hash(checkoutAttemptId, recurringDetailReference, shopperAccountIdentifier, storedPaymentMethodId, type); } @Override @@ -305,22 +292,17 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PayToDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" shopperAccountIdentifier: ") - .append(toIndentedString(shopperAccountIdentifier)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" shopperAccountIdentifier: ").append(toIndentedString(shopperAccountIdentifier)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -329,7 +311,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PayToDetails given an JSON string * * @param jsonString JSON string @@ -339,12 +321,11 @@ private String toIndentedString(Object o) { public static PayToDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayToDetails.class); } - - /** - * Convert an instance of PayToDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PayToDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PayToPaymentMethod.java b/src/main/java/com/adyen/model/checkout/PayToPaymentMethod.java index c062dfc60..631cc0bb1 100644 --- a/src/main/java/com/adyen/model/checkout/PayToPaymentMethod.java +++ b/src/main/java/com/adyen/model/checkout/PayToPaymentMethod.java @@ -2,46 +2,56 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.ShopperIdPaymentMethod; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** PayToPaymentMethod */ -@JsonPropertyOrder({PayToPaymentMethod.JSON_PROPERTY_SHOPPER_REFERENCE}) + +/** + * PayToPaymentMethod + */ +@JsonPropertyOrder({ + PayToPaymentMethod.JSON_PROPERTY_SHOPPER_REFERENCE +}) + @JsonIgnoreProperties( - value = - "type", // ignore manually set type, it will be automatically generated by Jackson during - // serialization - allowSetters = true // allows the type to be set during deserialization - ) -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - visible = true) + value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization + allowSetters = true // allows the type to be set during deserialization +) +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) + public class PayToPaymentMethod extends ShopperIdPaymentMethod { public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference"; private String shopperReference; - public PayToPaymentMethod() {} + public PayToPaymentMethod() { + } /** * shopperReference * - * @param shopperReference + * @param shopperReference * @return the current {@code PayToPaymentMethod} instance, allowing for method chaining */ public PayToPaymentMethod shopperReference(String shopperReference) { @@ -51,8 +61,7 @@ public PayToPaymentMethod shopperReference(String shopperReference) { /** * Get shopperReference - * - * @return shopperReference + * @return shopperReference */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,7 +72,7 @@ public String getShopperReference() { /** * shopperReference * - * @param shopperReference + * @param shopperReference */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,7 +80,9 @@ public void setShopperReference(String shopperReference) { this.shopperReference = shopperReference; } - /** Return true if this PayToPaymentMethod object is equal to o. */ + /** + * Return true if this PayToPaymentMethod object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -81,8 +92,8 @@ public boolean equals(Object o) { return false; } PayToPaymentMethod payToPaymentMethod = (PayToPaymentMethod) o; - return Objects.equals(this.shopperReference, payToPaymentMethod.shopperReference) - && super.equals(o); + return Objects.equals(this.shopperReference, payToPaymentMethod.shopperReference) && + super.equals(o); } @Override @@ -101,7 +112,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -116,24 +128,21 @@ private String toIndentedString(Object o) { mappings.put("PayToPaymentMethod", PayToPaymentMethod.class); JSON.registerDiscriminator(PayToPaymentMethod.class, "type", mappings); } - - /** +/** * Create an instance of PayToPaymentMethod given an JSON string * * @param jsonString JSON string * @return An instance of PayToPaymentMethod - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PayToPaymentMethod + * @throws JsonProcessingException if the JSON string is invalid with respect to PayToPaymentMethod */ public static PayToPaymentMethod fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayToPaymentMethod.class); } - - /** - * Convert an instance of PayToPaymentMethod to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PayToPaymentMethod to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PayUUpiDetails.java b/src/main/java/com/adyen/model/checkout/PayUUpiDetails.java index 5e663628b..f2f0e85eb 100644 --- a/src/main/java/com/adyen/model/checkout/PayUUpiDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayUUpiDetails.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** PayUUpiDetails */ + +/** + * PayUUpiDetails + */ @JsonPropertyOrder({ PayUUpiDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, PayUUpiDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, @@ -30,6 +35,7 @@ PayUUpiDetails.JSON_PROPERTY_TYPE, PayUUpiDetails.JSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS }) + public class PayUUpiDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -38,15 +44,17 @@ public class PayUUpiDetails { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; - public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE = - "shopperNotificationReference"; + public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE = "shopperNotificationReference"; private String shopperNotificationReference; public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** **payu_IN_upi** */ + /** + * **payu_IN_upi** + */ public enum TypeEnum { + PAYU_IN_UPI(String.valueOf("payu_IN_upi")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -54,7 +62,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -75,11 +83,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -90,7 +94,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS = "virtualPaymentAddress"; private String virtualPaymentAddress; - public PayUUpiDetails() {} + public PayUUpiDetails() { + } /** * The checkout attempt identifier. @@ -105,7 +110,6 @@ public PayUUpiDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -126,13 +130,13 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code PayUUpiDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public PayUUpiDetails recurringDetailReference(String recurringDetailReference) { @@ -141,11 +145,8 @@ public PayUUpiDetails recurringDetailReference(String recurringDetailReference) } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -156,12 +157,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -171,11 +172,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * The `shopperNotificationReference` returned in the response when you requested to - * notify the shopper. Used for recurring payment only. + * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. * - * @param shopperNotificationReference The `shopperNotificationReference` returned in - * the response when you requested to notify the shopper. Used for recurring payment only. + * @param shopperNotificationReference The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. * @return the current {@code PayUUpiDetails} instance, allowing for method chaining */ public PayUUpiDetails shopperNotificationReference(String shopperNotificationReference) { @@ -184,11 +183,8 @@ public PayUUpiDetails shopperNotificationReference(String shopperNotificationRef } /** - * The `shopperNotificationReference` returned in the response when you requested to - * notify the shopper. Used for recurring payment only. - * - * @return shopperNotificationReference The `shopperNotificationReference` returned in - * the response when you requested to notify the shopper. Used for recurring payment only. + * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. + * @return shopperNotificationReference The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. */ @JsonProperty(JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -197,11 +193,9 @@ public String getShopperNotificationReference() { } /** - * The `shopperNotificationReference` returned in the response when you requested to - * notify the shopper. Used for recurring payment only. + * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. * - * @param shopperNotificationReference The `shopperNotificationReference` returned in - * the response when you requested to notify the shopper. Used for recurring payment only. + * @param shopperNotificationReference The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. */ @JsonProperty(JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -210,11 +204,9 @@ public void setShopperNotificationReference(String shopperNotificationReference) } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code PayUUpiDetails} instance, allowing for method chaining */ public PayUUpiDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -223,11 +215,8 @@ public PayUUpiDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -236,11 +225,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -261,7 +248,6 @@ public PayUUpiDetails type(TypeEnum type) { /** * **payu_IN_upi** - * * @return type **payu_IN_upi** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -294,7 +280,6 @@ public PayUUpiDetails virtualPaymentAddress(String virtualPaymentAddress) { /** * The virtual payment address for UPI. - * * @return virtualPaymentAddress The virtual payment address for UPI. */ @JsonProperty(JSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS) @@ -314,7 +299,9 @@ public void setVirtualPaymentAddress(String virtualPaymentAddress) { this.virtualPaymentAddress = virtualPaymentAddress; } - /** Return true if this PayUUpiDetails object is equal to o. */ + /** + * Return true if this PayUUpiDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -324,24 +311,17 @@ public boolean equals(Object o) { return false; } PayUUpiDetails payUUpiDetails = (PayUUpiDetails) o; - return Objects.equals(this.checkoutAttemptId, payUUpiDetails.checkoutAttemptId) - && Objects.equals(this.recurringDetailReference, payUUpiDetails.recurringDetailReference) - && Objects.equals( - this.shopperNotificationReference, payUUpiDetails.shopperNotificationReference) - && Objects.equals(this.storedPaymentMethodId, payUUpiDetails.storedPaymentMethodId) - && Objects.equals(this.type, payUUpiDetails.type) - && Objects.equals(this.virtualPaymentAddress, payUUpiDetails.virtualPaymentAddress); + return Objects.equals(this.checkoutAttemptId, payUUpiDetails.checkoutAttemptId) && + Objects.equals(this.recurringDetailReference, payUUpiDetails.recurringDetailReference) && + Objects.equals(this.shopperNotificationReference, payUUpiDetails.shopperNotificationReference) && + Objects.equals(this.storedPaymentMethodId, payUUpiDetails.storedPaymentMethodId) && + Objects.equals(this.type, payUUpiDetails.type) && + Objects.equals(this.virtualPaymentAddress, payUUpiDetails.virtualPaymentAddress); } @Override public int hashCode() { - return Objects.hash( - checkoutAttemptId, - recurringDetailReference, - shopperNotificationReference, - storedPaymentMethodId, - type, - virtualPaymentAddress); + return Objects.hash(checkoutAttemptId, recurringDetailReference, shopperNotificationReference, storedPaymentMethodId, type, virtualPaymentAddress); } @Override @@ -349,25 +329,18 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PayUUpiDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" shopperNotificationReference: ") - .append(toIndentedString(shopperNotificationReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" shopperNotificationReference: ").append(toIndentedString(shopperNotificationReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" virtualPaymentAddress: ") - .append(toIndentedString(virtualPaymentAddress)) - .append("\n"); + sb.append(" virtualPaymentAddress: ").append(toIndentedString(virtualPaymentAddress)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -376,7 +349,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PayUUpiDetails given an JSON string * * @param jsonString JSON string @@ -386,12 +359,11 @@ private String toIndentedString(Object o) { public static PayUUpiDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayUUpiDetails.class); } - - /** - * Convert an instance of PayUUpiDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PayUUpiDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PayWithGoogleDetails.java b/src/main/java/com/adyen/model/checkout/PayWithGoogleDetails.java index f954eeeb0..b503e3235 100644 --- a/src/main/java/com/adyen/model/checkout/PayWithGoogleDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayWithGoogleDetails.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PayWithGoogleDetails */ +/** + * PayWithGoogleDetails + */ @JsonPropertyOrder({ PayWithGoogleDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, PayWithGoogleDetails.JSON_PROPERTY_FUNDING_SOURCE, @@ -31,15 +36,16 @@ PayWithGoogleDetails.JSON_PROPERTY_THREE_D_S2_SDK_VERSION, PayWithGoogleDetails.JSON_PROPERTY_TYPE }) + public class PayWithGoogleDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ public enum FundingSourceEnum { + CREDIT(String.valueOf("credit")), DEBIT(String.valueOf("debit")); @@ -49,7 +55,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -70,11 +76,7 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FundingSourceEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FundingSourceEnum.values())); + LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -95,8 +97,11 @@ public static FundingSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S2_SDK_VERSION = "threeDS2SdkVersion"; private String threeDS2SdkVersion; - /** **paywithgoogle** */ + /** + * **paywithgoogle** + */ public enum TypeEnum { + PAYWITHGOOGLE(String.valueOf("paywithgoogle")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -104,7 +109,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -125,11 +130,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -137,7 +138,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PayWithGoogleDetails() {} + public PayWithGoogleDetails() { + } /** * The checkout attempt identifier. @@ -152,7 +154,6 @@ public PayWithGoogleDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -173,12 +174,9 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * @return the current {@code PayWithGoogleDetails} instance, allowing for method chaining */ public PayWithGoogleDetails fundingSource(FundingSourceEnum fundingSource) { @@ -187,12 +185,8 @@ public PayWithGoogleDetails fundingSource(FundingSourceEnum fundingSource) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. - * - * @return fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @return fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -201,12 +195,9 @@ public FundingSourceEnum getFundingSource() { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -215,13 +206,9 @@ public void setFundingSource(FundingSourceEnum fundingSource) { } /** - * The `token` that you obtained from the [Google Pay - * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) - * `PaymentData` response. + * The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. * - * @param googlePayToken The `token` that you obtained from the [Google Pay - * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) - * `PaymentData` response. + * @param googlePayToken The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. * @return the current {@code PayWithGoogleDetails} instance, allowing for method chaining */ public PayWithGoogleDetails googlePayToken(String googlePayToken) { @@ -230,13 +217,8 @@ public PayWithGoogleDetails googlePayToken(String googlePayToken) { } /** - * The `token` that you obtained from the [Google Pay - * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) - * `PaymentData` response. - * - * @return googlePayToken The `token` that you obtained from the [Google Pay - * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) - * `PaymentData` response. + * The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. + * @return googlePayToken The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. */ @JsonProperty(JSON_PROPERTY_GOOGLE_PAY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -245,13 +227,9 @@ public String getGooglePayToken() { } /** - * The `token` that you obtained from the [Google Pay - * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) - * `PaymentData` response. + * The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. * - * @param googlePayToken The `token` that you obtained from the [Google Pay - * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) - * `PaymentData` response. + * @param googlePayToken The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. */ @JsonProperty(JSON_PROPERTY_GOOGLE_PAY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -260,13 +238,13 @@ public void setGooglePayToken(String googlePayToken) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code PayWithGoogleDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public PayWithGoogleDetails recurringDetailReference(String recurringDetailReference) { @@ -275,11 +253,8 @@ public PayWithGoogleDetails recurringDetailReference(String recurringDetailRefer } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -290,12 +265,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -305,11 +280,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code PayWithGoogleDetails} instance, allowing for method chaining */ public PayWithGoogleDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -318,11 +291,8 @@ public PayWithGoogleDetails storedPaymentMethodId(String storedPaymentMethodId) } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -331,11 +301,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -346,8 +314,7 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. * - * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile - * SDK. + * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. * @return the current {@code PayWithGoogleDetails} instance, allowing for method chaining */ public PayWithGoogleDetails threeDS2SdkVersion(String threeDS2SdkVersion) { @@ -357,9 +324,7 @@ public PayWithGoogleDetails threeDS2SdkVersion(String threeDS2SdkVersion) { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. - * - * @return threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile - * SDK. + * @return threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_SDK_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -370,8 +335,7 @@ public String getThreeDS2SdkVersion() { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. * - * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile - * SDK. + * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_SDK_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -392,7 +356,6 @@ public PayWithGoogleDetails type(TypeEnum type) { /** * **paywithgoogle** - * * @return type **paywithgoogle** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -412,7 +375,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this PayWithGoogleDetails object is equal to o. */ + /** + * Return true if this PayWithGoogleDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -422,26 +387,18 @@ public boolean equals(Object o) { return false; } PayWithGoogleDetails payWithGoogleDetails = (PayWithGoogleDetails) o; - return Objects.equals(this.checkoutAttemptId, payWithGoogleDetails.checkoutAttemptId) - && Objects.equals(this.fundingSource, payWithGoogleDetails.fundingSource) - && Objects.equals(this.googlePayToken, payWithGoogleDetails.googlePayToken) - && Objects.equals( - this.recurringDetailReference, payWithGoogleDetails.recurringDetailReference) - && Objects.equals(this.storedPaymentMethodId, payWithGoogleDetails.storedPaymentMethodId) - && Objects.equals(this.threeDS2SdkVersion, payWithGoogleDetails.threeDS2SdkVersion) - && Objects.equals(this.type, payWithGoogleDetails.type); + return Objects.equals(this.checkoutAttemptId, payWithGoogleDetails.checkoutAttemptId) && + Objects.equals(this.fundingSource, payWithGoogleDetails.fundingSource) && + Objects.equals(this.googlePayToken, payWithGoogleDetails.googlePayToken) && + Objects.equals(this.recurringDetailReference, payWithGoogleDetails.recurringDetailReference) && + Objects.equals(this.storedPaymentMethodId, payWithGoogleDetails.storedPaymentMethodId) && + Objects.equals(this.threeDS2SdkVersion, payWithGoogleDetails.threeDS2SdkVersion) && + Objects.equals(this.type, payWithGoogleDetails.type); } @Override public int hashCode() { - return Objects.hash( - checkoutAttemptId, - fundingSource, - googlePayToken, - recurringDetailReference, - storedPaymentMethodId, - threeDS2SdkVersion, - type); + return Objects.hash(checkoutAttemptId, fundingSource, googlePayToken, recurringDetailReference, storedPaymentMethodId, threeDS2SdkVersion, type); } @Override @@ -451,12 +408,8 @@ public String toString() { sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); sb.append(" googlePayToken: ").append(toIndentedString(googlePayToken)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" threeDS2SdkVersion: ").append(toIndentedString(threeDS2SdkVersion)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -464,7 +417,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -473,23 +427,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PayWithGoogleDetails given an JSON string * * @param jsonString JSON string * @return An instance of PayWithGoogleDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PayWithGoogleDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to PayWithGoogleDetails */ public static PayWithGoogleDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayWithGoogleDetails.class); } - - /** - * Convert an instance of PayWithGoogleDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PayWithGoogleDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PayWithGoogleDonations.java b/src/main/java/com/adyen/model/checkout/PayWithGoogleDonations.java index cc496a05a..22ddb00f2 100644 --- a/src/main/java/com/adyen/model/checkout/PayWithGoogleDonations.java +++ b/src/main/java/com/adyen/model/checkout/PayWithGoogleDonations.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PayWithGoogleDonations */ +/** + * PayWithGoogleDonations + */ @JsonPropertyOrder({ PayWithGoogleDonations.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, PayWithGoogleDonations.JSON_PROPERTY_FUNDING_SOURCE, @@ -31,15 +36,16 @@ PayWithGoogleDonations.JSON_PROPERTY_THREE_D_S2_SDK_VERSION, PayWithGoogleDonations.JSON_PROPERTY_TYPE }) + public class PayWithGoogleDonations { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ public enum FundingSourceEnum { + CREDIT(String.valueOf("credit")), DEBIT(String.valueOf("debit")); @@ -49,7 +55,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -70,11 +76,7 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FundingSourceEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FundingSourceEnum.values())); + LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -95,8 +97,11 @@ public static FundingSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S2_SDK_VERSION = "threeDS2SdkVersion"; private String threeDS2SdkVersion; - /** **paywithgoogle** */ + /** + * **paywithgoogle** + */ public enum TypeEnum { + PAYWITHGOOGLE(String.valueOf("paywithgoogle")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -104,7 +109,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -125,11 +130,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -137,7 +138,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PayWithGoogleDonations() {} + public PayWithGoogleDonations() { + } /** * The checkout attempt identifier. @@ -152,7 +154,6 @@ public PayWithGoogleDonations checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -173,12 +174,9 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * @return the current {@code PayWithGoogleDonations} instance, allowing for method chaining */ public PayWithGoogleDonations fundingSource(FundingSourceEnum fundingSource) { @@ -187,12 +185,8 @@ public PayWithGoogleDonations fundingSource(FundingSourceEnum fundingSource) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. - * - * @return fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @return fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -201,12 +195,9 @@ public FundingSourceEnum getFundingSource() { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -215,13 +206,9 @@ public void setFundingSource(FundingSourceEnum fundingSource) { } /** - * The `token` that you obtained from the [Google Pay - * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) - * `PaymentData` response. + * The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. * - * @param googlePayToken The `token` that you obtained from the [Google Pay - * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) - * `PaymentData` response. + * @param googlePayToken The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. * @return the current {@code PayWithGoogleDonations} instance, allowing for method chaining */ public PayWithGoogleDonations googlePayToken(String googlePayToken) { @@ -230,13 +217,8 @@ public PayWithGoogleDonations googlePayToken(String googlePayToken) { } /** - * The `token` that you obtained from the [Google Pay - * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) - * `PaymentData` response. - * - * @return googlePayToken The `token` that you obtained from the [Google Pay - * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) - * `PaymentData` response. + * The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. + * @return googlePayToken The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. */ @JsonProperty(JSON_PROPERTY_GOOGLE_PAY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -245,13 +227,9 @@ public String getGooglePayToken() { } /** - * The `token` that you obtained from the [Google Pay - * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) - * `PaymentData` response. + * The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. * - * @param googlePayToken The `token` that you obtained from the [Google Pay - * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) - * `PaymentData` response. + * @param googlePayToken The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. */ @JsonProperty(JSON_PROPERTY_GOOGLE_PAY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -260,13 +238,13 @@ public void setGooglePayToken(String googlePayToken) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code PayWithGoogleDonations} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public PayWithGoogleDonations recurringDetailReference(String recurringDetailReference) { @@ -275,11 +253,8 @@ public PayWithGoogleDonations recurringDetailReference(String recurringDetailRef } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -290,12 +265,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -305,11 +280,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code PayWithGoogleDonations} instance, allowing for method chaining */ public PayWithGoogleDonations storedPaymentMethodId(String storedPaymentMethodId) { @@ -318,11 +291,8 @@ public PayWithGoogleDonations storedPaymentMethodId(String storedPaymentMethodId } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -331,11 +301,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -346,8 +314,7 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. * - * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile - * SDK. + * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. * @return the current {@code PayWithGoogleDonations} instance, allowing for method chaining */ public PayWithGoogleDonations threeDS2SdkVersion(String threeDS2SdkVersion) { @@ -357,9 +324,7 @@ public PayWithGoogleDonations threeDS2SdkVersion(String threeDS2SdkVersion) { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. - * - * @return threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile - * SDK. + * @return threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_SDK_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -370,8 +335,7 @@ public String getThreeDS2SdkVersion() { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. * - * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile - * SDK. + * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_SDK_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -392,7 +356,6 @@ public PayWithGoogleDonations type(TypeEnum type) { /** * **paywithgoogle** - * * @return type **paywithgoogle** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -412,7 +375,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this PayWithGoogleDonations object is equal to o. */ + /** + * Return true if this PayWithGoogleDonations object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -422,26 +387,18 @@ public boolean equals(Object o) { return false; } PayWithGoogleDonations payWithGoogleDonations = (PayWithGoogleDonations) o; - return Objects.equals(this.checkoutAttemptId, payWithGoogleDonations.checkoutAttemptId) - && Objects.equals(this.fundingSource, payWithGoogleDonations.fundingSource) - && Objects.equals(this.googlePayToken, payWithGoogleDonations.googlePayToken) - && Objects.equals( - this.recurringDetailReference, payWithGoogleDonations.recurringDetailReference) - && Objects.equals(this.storedPaymentMethodId, payWithGoogleDonations.storedPaymentMethodId) - && Objects.equals(this.threeDS2SdkVersion, payWithGoogleDonations.threeDS2SdkVersion) - && Objects.equals(this.type, payWithGoogleDonations.type); + return Objects.equals(this.checkoutAttemptId, payWithGoogleDonations.checkoutAttemptId) && + Objects.equals(this.fundingSource, payWithGoogleDonations.fundingSource) && + Objects.equals(this.googlePayToken, payWithGoogleDonations.googlePayToken) && + Objects.equals(this.recurringDetailReference, payWithGoogleDonations.recurringDetailReference) && + Objects.equals(this.storedPaymentMethodId, payWithGoogleDonations.storedPaymentMethodId) && + Objects.equals(this.threeDS2SdkVersion, payWithGoogleDonations.threeDS2SdkVersion) && + Objects.equals(this.type, payWithGoogleDonations.type); } @Override public int hashCode() { - return Objects.hash( - checkoutAttemptId, - fundingSource, - googlePayToken, - recurringDetailReference, - storedPaymentMethodId, - threeDS2SdkVersion, - type); + return Objects.hash(checkoutAttemptId, fundingSource, googlePayToken, recurringDetailReference, storedPaymentMethodId, threeDS2SdkVersion, type); } @Override @@ -451,12 +408,8 @@ public String toString() { sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); sb.append(" googlePayToken: ").append(toIndentedString(googlePayToken)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" threeDS2SdkVersion: ").append(toIndentedString(threeDS2SdkVersion)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -464,7 +417,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -473,23 +427,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PayWithGoogleDonations given an JSON string * * @param jsonString JSON string * @return An instance of PayWithGoogleDonations - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PayWithGoogleDonations + * @throws JsonProcessingException if the JSON string is invalid with respect to PayWithGoogleDonations */ public static PayWithGoogleDonations fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayWithGoogleDonations.class); } - - /** - * Convert an instance of PayWithGoogleDonations to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PayWithGoogleDonations to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Payment.java b/src/main/java/com/adyen/model/checkout/Payment.java index a304cdf30..602e0567e 100644 --- a/src/main/java/com/adyen/model/checkout/Payment.java +++ b/src/main/java/com/adyen/model/checkout/Payment.java @@ -2,32 +2,40 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Amount; +import com.adyen.model.checkout.ResponsePaymentMethod; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** Payment */ +/** + * Payment + */ @JsonPropertyOrder({ Payment.JSON_PROPERTY_AMOUNT, Payment.JSON_PROPERTY_PAYMENT_METHOD, Payment.JSON_PROPERTY_PSP_REFERENCE, Payment.JSON_PROPERTY_RESULT_CODE }) + public class Payment { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -39,12 +47,10 @@ public class Payment { private String pspReference; /** - * The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **Authorised** – The payment was successfully authorised. This state serves as an indicator to - * proceed with the delivery of goods and services. This is a final state. + * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. */ public enum ResultCodeEnum { + AUTHORISED(String.valueOf("Authorised")); private static final Logger LOG = Logger.getLogger(ResultCodeEnum.class.getName()); @@ -52,7 +58,7 @@ public enum ResultCodeEnum { private String value; ResultCodeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,11 +79,7 @@ public static ResultCodeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ResultCodeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ResultCodeEnum.values())); + LOG.warning("ResultCodeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResultCodeEnum.values())); return null; } } @@ -85,12 +87,13 @@ public static ResultCodeEnum fromValue(String value) { public static final String JSON_PROPERTY_RESULT_CODE = "resultCode"; private ResultCodeEnum resultCode; - public Payment() {} + public Payment() { + } /** * amount * - * @param amount + * @param amount * @return the current {@code Payment} instance, allowing for method chaining */ public Payment amount(Amount amount) { @@ -100,8 +103,7 @@ public Payment amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,7 +114,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,7 +125,7 @@ public void setAmount(Amount amount) { /** * paymentMethod * - * @param paymentMethod + * @param paymentMethod * @return the current {@code Payment} instance, allowing for method chaining */ public Payment paymentMethod(ResponsePaymentMethod paymentMethod) { @@ -133,8 +135,7 @@ public Payment paymentMethod(ResponsePaymentMethod paymentMethod) { /** * Get paymentMethod - * - * @return paymentMethod + * @return paymentMethod */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,7 +146,7 @@ public ResponsePaymentMethod getPaymentMethod() { /** * paymentMethod * - * @param paymentMethod + * @param paymentMethod */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -154,12 +155,9 @@ public void setPaymentMethod(ResponsePaymentMethod paymentMethod) { } /** - * Adyen's 16-character reference associated with the transaction/request. This value is - * globally unique. Use this reference when you communicate with us about this request. + * Adyen's 16-character reference associated with the transaction/request. This value is globally unique. Use this reference when you communicate with us about this request. * - * @param pspReference Adyen's 16-character reference associated with the transaction/request. - * This value is globally unique. Use this reference when you communicate with us about this - * request. + * @param pspReference Adyen's 16-character reference associated with the transaction/request. This value is globally unique. Use this reference when you communicate with us about this request. * @return the current {@code Payment} instance, allowing for method chaining */ public Payment pspReference(String pspReference) { @@ -168,12 +166,8 @@ public Payment pspReference(String pspReference) { } /** - * Adyen's 16-character reference associated with the transaction/request. This value is - * globally unique. Use this reference when you communicate with us about this request. - * - * @return pspReference Adyen's 16-character reference associated with the - * transaction/request. This value is globally unique. Use this reference when you communicate - * with us about this request. + * Adyen's 16-character reference associated with the transaction/request. This value is globally unique. Use this reference when you communicate with us about this request. + * @return pspReference Adyen's 16-character reference associated with the transaction/request. This value is globally unique. Use this reference when you communicate with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,12 +176,9 @@ public String getPspReference() { } /** - * Adyen's 16-character reference associated with the transaction/request. This value is - * globally unique. Use this reference when you communicate with us about this request. + * Adyen's 16-character reference associated with the transaction/request. This value is globally unique. Use this reference when you communicate with us about this request. * - * @param pspReference Adyen's 16-character reference associated with the transaction/request. - * This value is globally unique. Use this reference when you communicate with us about this - * request. + * @param pspReference Adyen's 16-character reference associated with the transaction/request. This value is globally unique. Use this reference when you communicate with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -196,15 +187,9 @@ public void setPspReference(String pspReference) { } /** - * The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **Authorised** – The payment was successfully authorised. This state serves as an indicator to - * proceed with the delivery of goods and services. This is a final state. + * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * - * @param resultCode The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **Authorised** – The payment was successfully authorised. This state serves as an indicator - * to proceed with the delivery of goods and services. This is a final state. + * @param resultCode The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * @return the current {@code Payment} instance, allowing for method chaining */ public Payment resultCode(ResultCodeEnum resultCode) { @@ -213,15 +198,8 @@ public Payment resultCode(ResultCodeEnum resultCode) { } /** - * The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **Authorised** – The payment was successfully authorised. This state serves as an indicator to - * proceed with the delivery of goods and services. This is a final state. - * - * @return resultCode The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **Authorised** – The payment was successfully authorised. This state serves as an indicator - * to proceed with the delivery of goods and services. This is a final state. + * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. + * @return resultCode The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -230,15 +208,9 @@ public ResultCodeEnum getResultCode() { } /** - * The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **Authorised** – The payment was successfully authorised. This state serves as an indicator to - * proceed with the delivery of goods and services. This is a final state. + * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * - * @param resultCode The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **Authorised** – The payment was successfully authorised. This state serves as an indicator - * to proceed with the delivery of goods and services. This is a final state. + * @param resultCode The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -246,7 +218,9 @@ public void setResultCode(ResultCodeEnum resultCode) { this.resultCode = resultCode; } - /** Return true if this Payment object is equal to o. */ + /** + * Return true if this Payment object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -256,10 +230,10 @@ public boolean equals(Object o) { return false; } Payment payment = (Payment) o; - return Objects.equals(this.amount, payment.amount) - && Objects.equals(this.paymentMethod, payment.paymentMethod) - && Objects.equals(this.pspReference, payment.pspReference) - && Objects.equals(this.resultCode, payment.resultCode); + return Objects.equals(this.amount, payment.amount) && + Objects.equals(this.paymentMethod, payment.paymentMethod) && + Objects.equals(this.pspReference, payment.pspReference) && + Objects.equals(this.resultCode, payment.resultCode); } @Override @@ -280,7 +254,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -289,7 +264,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Payment given an JSON string * * @param jsonString JSON string @@ -299,12 +274,11 @@ private String toIndentedString(Object o) { public static Payment fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Payment.class); } - - /** - * Convert an instance of Payment to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Payment to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentAmountUpdateRequest.java b/src/main/java/com/adyen/model/checkout/PaymentAmountUpdateRequest.java index 008fc7854..595d395cd 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentAmountUpdateRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentAmountUpdateRequest.java @@ -2,28 +2,38 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Amount; +import com.adyen.model.checkout.ApplicationInfo; +import com.adyen.model.checkout.EnhancedSchemeData; +import com.adyen.model.checkout.LineItem; +import com.adyen.model.checkout.Split; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** PaymentAmountUpdateRequest */ + +/** + * PaymentAmountUpdateRequest + */ @JsonPropertyOrder({ PaymentAmountUpdateRequest.JSON_PROPERTY_AMOUNT, PaymentAmountUpdateRequest.JSON_PROPERTY_APPLICATION_INFO, @@ -34,6 +44,7 @@ PaymentAmountUpdateRequest.JSON_PROPERTY_REFERENCE, PaymentAmountUpdateRequest.JSON_PROPERTY_SPLITS }) + public class PaymentAmountUpdateRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -45,10 +56,10 @@ public class PaymentAmountUpdateRequest { private EnhancedSchemeData enhancedSchemeData; /** - * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * - * **installment** + * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** */ public enum IndustryUsageEnum { + DELAYEDCHARGE(String.valueOf("delayedCharge")), INSTALLMENT(String.valueOf("installment")), @@ -60,7 +71,7 @@ public enum IndustryUsageEnum { private String value; IndustryUsageEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -81,11 +92,7 @@ public static IndustryUsageEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "IndustryUsageEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(IndustryUsageEnum.values())); + LOG.warning("IndustryUsageEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(IndustryUsageEnum.values())); return null; } } @@ -105,12 +112,13 @@ public static IndustryUsageEnum fromValue(String value) { public static final String JSON_PROPERTY_SPLITS = "splits"; private List splits; - public PaymentAmountUpdateRequest() {} + public PaymentAmountUpdateRequest() { + } /** * amount * - * @param amount + * @param amount * @return the current {@code PaymentAmountUpdateRequest} instance, allowing for method chaining */ public PaymentAmountUpdateRequest amount(Amount amount) { @@ -120,8 +128,7 @@ public PaymentAmountUpdateRequest amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,7 +139,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,7 +150,7 @@ public void setAmount(Amount amount) { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo * @return the current {@code PaymentAmountUpdateRequest} instance, allowing for method chaining */ public PaymentAmountUpdateRequest applicationInfo(ApplicationInfo applicationInfo) { @@ -153,8 +160,7 @@ public PaymentAmountUpdateRequest applicationInfo(ApplicationInfo applicationInf /** * Get applicationInfo - * - * @return applicationInfo + * @return applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -165,7 +171,7 @@ public ApplicationInfo getApplicationInfo() { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,7 +182,7 @@ public void setApplicationInfo(ApplicationInfo applicationInfo) { /** * enhancedSchemeData * - * @param enhancedSchemeData + * @param enhancedSchemeData * @return the current {@code PaymentAmountUpdateRequest} instance, allowing for method chaining */ public PaymentAmountUpdateRequest enhancedSchemeData(EnhancedSchemeData enhancedSchemeData) { @@ -186,8 +192,7 @@ public PaymentAmountUpdateRequest enhancedSchemeData(EnhancedSchemeData enhanced /** * Get enhancedSchemeData - * - * @return enhancedSchemeData + * @return enhancedSchemeData */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,7 +203,7 @@ public EnhancedSchemeData getEnhancedSchemeData() { /** * enhancedSchemeData * - * @param enhancedSchemeData + * @param enhancedSchemeData */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -207,11 +212,9 @@ public void setEnhancedSchemeData(EnhancedSchemeData enhancedSchemeData) { } /** - * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * - * **installment** + * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** * - * @param industryUsage The reason for the amount update. Possible values: * **delayedCharge** * - * **noShow** * **installment** + * @param industryUsage The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** * @return the current {@code PaymentAmountUpdateRequest} instance, allowing for method chaining */ public PaymentAmountUpdateRequest industryUsage(IndustryUsageEnum industryUsage) { @@ -220,11 +223,8 @@ public PaymentAmountUpdateRequest industryUsage(IndustryUsageEnum industryUsage) } /** - * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * - * **installment** - * - * @return industryUsage The reason for the amount update. Possible values: * **delayedCharge** * - * **noShow** * **installment** + * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** + * @return industryUsage The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** */ @JsonProperty(JSON_PROPERTY_INDUSTRY_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -233,11 +233,9 @@ public IndustryUsageEnum getIndustryUsage() { } /** - * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * - * **installment** + * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** * - * @param industryUsage The reason for the amount update. Possible values: * **delayedCharge** * - * **noShow** * **installment** + * @param industryUsage The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** */ @JsonProperty(JSON_PROPERTY_INDUSTRY_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -246,15 +244,9 @@ public void setIndustryUsage(IndustryUsageEnum industryUsage) { } /** - * Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is - * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. * - * @param lineItems Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field - * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. + * @param lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. * @return the current {@code PaymentAmountUpdateRequest} instance, allowing for method chaining */ public PaymentAmountUpdateRequest lineItems(List lineItems) { @@ -271,15 +263,8 @@ public PaymentAmountUpdateRequest addLineItemsItem(LineItem lineItemsItem) { } /** - * Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is - * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. - * - * @return lineItems Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field - * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * @return lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -288,15 +273,9 @@ public List getLineItems() { } /** - * Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is - * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. * - * @param lineItems Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field - * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. + * @param lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -317,7 +296,6 @@ public PaymentAmountUpdateRequest merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. - * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -350,7 +328,6 @@ public PaymentAmountUpdateRequest reference(String reference) { /** * Your reference for the amount update request. Maximum length: 80 characters. - * * @return reference Your reference for the amount update request. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -371,15 +348,9 @@ public void setReference(String reference) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or - * [platforms](https://docs.adyen.com/platforms/process-payments). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or [platforms](https://docs.adyen.com/platforms/process-payments). * - * @param splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or - * [platforms](https://docs.adyen.com/platforms/process-payments). + * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or [platforms](https://docs.adyen.com/platforms/process-payments). * @return the current {@code PaymentAmountUpdateRequest} instance, allowing for method chaining */ public PaymentAmountUpdateRequest splits(List splits) { @@ -396,15 +367,8 @@ public PaymentAmountUpdateRequest addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or - * [platforms](https://docs.adyen.com/platforms/process-payments). - * - * @return splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or - * [platforms](https://docs.adyen.com/platforms/process-payments). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or [platforms](https://docs.adyen.com/platforms/process-payments). + * @return splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or [platforms](https://docs.adyen.com/platforms/process-payments). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -413,15 +377,9 @@ public List getSplits() { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or - * [platforms](https://docs.adyen.com/platforms/process-payments). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or [platforms](https://docs.adyen.com/platforms/process-payments). * - * @param splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or - * [platforms](https://docs.adyen.com/platforms/process-payments). + * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or [platforms](https://docs.adyen.com/platforms/process-payments). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -429,7 +387,9 @@ public void setSplits(List splits) { this.splits = splits; } - /** Return true if this PaymentAmountUpdateRequest object is equal to o. */ + /** + * Return true if this PaymentAmountUpdateRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -439,27 +399,19 @@ public boolean equals(Object o) { return false; } PaymentAmountUpdateRequest paymentAmountUpdateRequest = (PaymentAmountUpdateRequest) o; - return Objects.equals(this.amount, paymentAmountUpdateRequest.amount) - && Objects.equals(this.applicationInfo, paymentAmountUpdateRequest.applicationInfo) - && Objects.equals(this.enhancedSchemeData, paymentAmountUpdateRequest.enhancedSchemeData) - && Objects.equals(this.industryUsage, paymentAmountUpdateRequest.industryUsage) - && Objects.equals(this.lineItems, paymentAmountUpdateRequest.lineItems) - && Objects.equals(this.merchantAccount, paymentAmountUpdateRequest.merchantAccount) - && Objects.equals(this.reference, paymentAmountUpdateRequest.reference) - && Objects.equals(this.splits, paymentAmountUpdateRequest.splits); + return Objects.equals(this.amount, paymentAmountUpdateRequest.amount) && + Objects.equals(this.applicationInfo, paymentAmountUpdateRequest.applicationInfo) && + Objects.equals(this.enhancedSchemeData, paymentAmountUpdateRequest.enhancedSchemeData) && + Objects.equals(this.industryUsage, paymentAmountUpdateRequest.industryUsage) && + Objects.equals(this.lineItems, paymentAmountUpdateRequest.lineItems) && + Objects.equals(this.merchantAccount, paymentAmountUpdateRequest.merchantAccount) && + Objects.equals(this.reference, paymentAmountUpdateRequest.reference) && + Objects.equals(this.splits, paymentAmountUpdateRequest.splits); } @Override public int hashCode() { - return Objects.hash( - amount, - applicationInfo, - enhancedSchemeData, - industryUsage, - lineItems, - merchantAccount, - reference, - splits); + return Objects.hash(amount, applicationInfo, enhancedSchemeData, industryUsage, lineItems, merchantAccount, reference, splits); } @Override @@ -479,7 +431,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -488,24 +441,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentAmountUpdateRequest given an JSON string * * @param jsonString JSON string * @return An instance of PaymentAmountUpdateRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentAmountUpdateRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentAmountUpdateRequest */ - public static PaymentAmountUpdateRequest fromJson(String jsonString) - throws JsonProcessingException { + public static PaymentAmountUpdateRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentAmountUpdateRequest.class); } - - /** - * Convert an instance of PaymentAmountUpdateRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentAmountUpdateRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentAmountUpdateResponse.java b/src/main/java/com/adyen/model/checkout/PaymentAmountUpdateResponse.java index 74d2ea74d..6444ec759 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentAmountUpdateResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentAmountUpdateResponse.java @@ -2,28 +2,36 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Amount; +import com.adyen.model.checkout.LineItem; +import com.adyen.model.checkout.Split; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PaymentAmountUpdateResponse */ +/** + * PaymentAmountUpdateResponse + */ @JsonPropertyOrder({ PaymentAmountUpdateResponse.JSON_PROPERTY_AMOUNT, PaymentAmountUpdateResponse.JSON_PROPERTY_INDUSTRY_USAGE, @@ -35,15 +43,16 @@ PaymentAmountUpdateResponse.JSON_PROPERTY_SPLITS, PaymentAmountUpdateResponse.JSON_PROPERTY_STATUS }) + public class PaymentAmountUpdateResponse { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; /** - * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * - * **installment** + * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** */ public enum IndustryUsageEnum { + DELAYEDCHARGE(String.valueOf("delayedCharge")), INSTALLMENT(String.valueOf("installment")), @@ -55,7 +64,7 @@ public enum IndustryUsageEnum { private String value; IndustryUsageEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -76,11 +85,7 @@ public static IndustryUsageEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "IndustryUsageEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(IndustryUsageEnum.values())); + LOG.warning("IndustryUsageEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(IndustryUsageEnum.values())); return null; } } @@ -106,8 +111,11 @@ public static IndustryUsageEnum fromValue(String value) { public static final String JSON_PROPERTY_SPLITS = "splits"; private List splits; - /** The status of your request. This will always have the value **received**. */ + /** + * The status of your request. This will always have the value **received**. + */ public enum StatusEnum { + RECEIVED(String.valueOf("received")); private static final Logger LOG = Logger.getLogger(StatusEnum.class.getName()); @@ -115,7 +123,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -136,11 +144,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -148,12 +152,13 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; - public PaymentAmountUpdateResponse() {} + public PaymentAmountUpdateResponse() { + } /** * amount * - * @param amount + * @param amount * @return the current {@code PaymentAmountUpdateResponse} instance, allowing for method chaining */ public PaymentAmountUpdateResponse amount(Amount amount) { @@ -163,8 +168,7 @@ public PaymentAmountUpdateResponse amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -175,7 +179,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -184,11 +188,9 @@ public void setAmount(Amount amount) { } /** - * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * - * **installment** + * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** * - * @param industryUsage The reason for the amount update. Possible values: * **delayedCharge** * - * **noShow** * **installment** + * @param industryUsage The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** * @return the current {@code PaymentAmountUpdateResponse} instance, allowing for method chaining */ public PaymentAmountUpdateResponse industryUsage(IndustryUsageEnum industryUsage) { @@ -197,11 +199,8 @@ public PaymentAmountUpdateResponse industryUsage(IndustryUsageEnum industryUsage } /** - * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * - * **installment** - * - * @return industryUsage The reason for the amount update. Possible values: * **delayedCharge** * - * **noShow** * **installment** + * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** + * @return industryUsage The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** */ @JsonProperty(JSON_PROPERTY_INDUSTRY_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -210,11 +209,9 @@ public IndustryUsageEnum getIndustryUsage() { } /** - * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * - * **installment** + * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** * - * @param industryUsage The reason for the amount update. Possible values: * **delayedCharge** * - * **noShow** * **installment** + * @param industryUsage The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** */ @JsonProperty(JSON_PROPERTY_INDUSTRY_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,15 +220,9 @@ public void setIndustryUsage(IndustryUsageEnum industryUsage) { } /** - * Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is - * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. * - * @param lineItems Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field - * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. + * @param lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. * @return the current {@code PaymentAmountUpdateResponse} instance, allowing for method chaining */ public PaymentAmountUpdateResponse lineItems(List lineItems) { @@ -248,15 +239,8 @@ public PaymentAmountUpdateResponse addLineItemsItem(LineItem lineItemsItem) { } /** - * Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is - * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. - * - * @return lineItems Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field - * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * @return lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -265,15 +249,9 @@ public List getLineItems() { } /** - * Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is - * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. * - * @param lineItems Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field - * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. + * @param lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -294,7 +272,6 @@ public PaymentAmountUpdateResponse merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. - * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -315,13 +292,9 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment to update. + * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to update. * - * @param paymentPspReference The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment to update. + * @param paymentPspReference The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to update. * @return the current {@code PaymentAmountUpdateResponse} instance, allowing for method chaining */ public PaymentAmountUpdateResponse paymentPspReference(String paymentPspReference) { @@ -330,13 +303,8 @@ public PaymentAmountUpdateResponse paymentPspReference(String paymentPspReferenc } /** - * The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment to update. - * - * @return paymentPspReference The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment to update. + * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to update. + * @return paymentPspReference The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to update. */ @JsonProperty(JSON_PROPERTY_PAYMENT_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -345,13 +313,9 @@ public String getPaymentPspReference() { } /** - * The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment to update. + * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to update. * - * @param paymentPspReference The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment to update. + * @param paymentPspReference The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to update. */ @JsonProperty(JSON_PROPERTY_PAYMENT_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -362,8 +326,7 @@ public void setPaymentPspReference(String paymentPspReference) { /** * Adyen's 16-character reference associated with the amount update request. * - * @param pspReference Adyen's 16-character reference associated with the amount update - * request. + * @param pspReference Adyen's 16-character reference associated with the amount update request. * @return the current {@code PaymentAmountUpdateResponse} instance, allowing for method chaining */ public PaymentAmountUpdateResponse pspReference(String pspReference) { @@ -373,9 +336,7 @@ public PaymentAmountUpdateResponse pspReference(String pspReference) { /** * Adyen's 16-character reference associated with the amount update request. - * - * @return pspReference Adyen's 16-character reference associated with the amount update - * request. + * @return pspReference Adyen's 16-character reference associated with the amount update request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -386,8 +347,7 @@ public String getPspReference() { /** * Adyen's 16-character reference associated with the amount update request. * - * @param pspReference Adyen's 16-character reference associated with the amount update - * request. + * @param pspReference Adyen's 16-character reference associated with the amount update request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -408,7 +368,6 @@ public PaymentAmountUpdateResponse reference(String reference) { /** * Your reference for the amount update request. Maximum length: 80 characters. - * * @return reference Your reference for the amount update request. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -429,15 +388,9 @@ public void setReference(String reference) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or - * [platforms](https://docs.adyen.com/platforms/process-payments). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or [platforms](https://docs.adyen.com/platforms/process-payments). * - * @param splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or - * [platforms](https://docs.adyen.com/platforms/process-payments). + * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or [platforms](https://docs.adyen.com/platforms/process-payments). * @return the current {@code PaymentAmountUpdateResponse} instance, allowing for method chaining */ public PaymentAmountUpdateResponse splits(List splits) { @@ -454,15 +407,8 @@ public PaymentAmountUpdateResponse addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or - * [platforms](https://docs.adyen.com/platforms/process-payments). - * - * @return splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or - * [platforms](https://docs.adyen.com/platforms/process-payments). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or [platforms](https://docs.adyen.com/platforms/process-payments). + * @return splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or [platforms](https://docs.adyen.com/platforms/process-payments). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -471,15 +417,9 @@ public List getSplits() { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or - * [platforms](https://docs.adyen.com/platforms/process-payments). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or [platforms](https://docs.adyen.com/platforms/process-payments). * - * @param splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or - * [platforms](https://docs.adyen.com/platforms/process-payments). + * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or [platforms](https://docs.adyen.com/platforms/process-payments). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -500,7 +440,6 @@ public PaymentAmountUpdateResponse status(StatusEnum status) { /** * The status of your request. This will always have the value **received**. - * * @return status The status of your request. This will always have the value **received**. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -520,7 +459,9 @@ public void setStatus(StatusEnum status) { this.status = status; } - /** Return true if this PaymentAmountUpdateResponse object is equal to o. */ + /** + * Return true if this PaymentAmountUpdateResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -530,29 +471,20 @@ public boolean equals(Object o) { return false; } PaymentAmountUpdateResponse paymentAmountUpdateResponse = (PaymentAmountUpdateResponse) o; - return Objects.equals(this.amount, paymentAmountUpdateResponse.amount) - && Objects.equals(this.industryUsage, paymentAmountUpdateResponse.industryUsage) - && Objects.equals(this.lineItems, paymentAmountUpdateResponse.lineItems) - && Objects.equals(this.merchantAccount, paymentAmountUpdateResponse.merchantAccount) - && Objects.equals(this.paymentPspReference, paymentAmountUpdateResponse.paymentPspReference) - && Objects.equals(this.pspReference, paymentAmountUpdateResponse.pspReference) - && Objects.equals(this.reference, paymentAmountUpdateResponse.reference) - && Objects.equals(this.splits, paymentAmountUpdateResponse.splits) - && Objects.equals(this.status, paymentAmountUpdateResponse.status); + return Objects.equals(this.amount, paymentAmountUpdateResponse.amount) && + Objects.equals(this.industryUsage, paymentAmountUpdateResponse.industryUsage) && + Objects.equals(this.lineItems, paymentAmountUpdateResponse.lineItems) && + Objects.equals(this.merchantAccount, paymentAmountUpdateResponse.merchantAccount) && + Objects.equals(this.paymentPspReference, paymentAmountUpdateResponse.paymentPspReference) && + Objects.equals(this.pspReference, paymentAmountUpdateResponse.pspReference) && + Objects.equals(this.reference, paymentAmountUpdateResponse.reference) && + Objects.equals(this.splits, paymentAmountUpdateResponse.splits) && + Objects.equals(this.status, paymentAmountUpdateResponse.status); } @Override public int hashCode() { - return Objects.hash( - amount, - industryUsage, - lineItems, - merchantAccount, - paymentPspReference, - pspReference, - reference, - splits, - status); + return Objects.hash(amount, industryUsage, lineItems, merchantAccount, paymentPspReference, pspReference, reference, splits, status); } @Override @@ -563,9 +495,7 @@ public String toString() { sb.append(" industryUsage: ").append(toIndentedString(industryUsage)).append("\n"); sb.append(" lineItems: ").append(toIndentedString(lineItems)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" paymentPspReference: ") - .append(toIndentedString(paymentPspReference)) - .append("\n"); + sb.append(" paymentPspReference: ").append(toIndentedString(paymentPspReference)).append("\n"); sb.append(" pspReference: ").append(toIndentedString(pspReference)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); @@ -575,7 +505,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -584,24 +515,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentAmountUpdateResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaymentAmountUpdateResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentAmountUpdateResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentAmountUpdateResponse */ - public static PaymentAmountUpdateResponse fromJson(String jsonString) - throws JsonProcessingException { + public static PaymentAmountUpdateResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentAmountUpdateResponse.class); } - - /** - * Convert an instance of PaymentAmountUpdateResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentAmountUpdateResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentCancelRequest.java b/src/main/java/com/adyen/model/checkout/PaymentCancelRequest.java index cbc66d8f2..48a52d6f2 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentCancelRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentCancelRequest.java @@ -2,28 +2,40 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.ApplicationInfo; +import com.adyen.model.checkout.EnhancedSchemeData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** PaymentCancelRequest */ + +/** + * PaymentCancelRequest + */ @JsonPropertyOrder({ PaymentCancelRequest.JSON_PROPERTY_APPLICATION_INFO, PaymentCancelRequest.JSON_PROPERTY_ENHANCED_SCHEME_DATA, PaymentCancelRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, PaymentCancelRequest.JSON_PROPERTY_REFERENCE }) + public class PaymentCancelRequest { public static final String JSON_PROPERTY_APPLICATION_INFO = "applicationInfo"; private ApplicationInfo applicationInfo; @@ -37,12 +49,13 @@ public class PaymentCancelRequest { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public PaymentCancelRequest() {} + public PaymentCancelRequest() { + } /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo * @return the current {@code PaymentCancelRequest} instance, allowing for method chaining */ public PaymentCancelRequest applicationInfo(ApplicationInfo applicationInfo) { @@ -52,8 +65,7 @@ public PaymentCancelRequest applicationInfo(ApplicationInfo applicationInfo) { /** * Get applicationInfo - * - * @return applicationInfo + * @return applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,7 +76,7 @@ public ApplicationInfo getApplicationInfo() { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,7 +87,7 @@ public void setApplicationInfo(ApplicationInfo applicationInfo) { /** * enhancedSchemeData * - * @param enhancedSchemeData + * @param enhancedSchemeData * @return the current {@code PaymentCancelRequest} instance, allowing for method chaining */ public PaymentCancelRequest enhancedSchemeData(EnhancedSchemeData enhancedSchemeData) { @@ -85,8 +97,7 @@ public PaymentCancelRequest enhancedSchemeData(EnhancedSchemeData enhancedScheme /** * Get enhancedSchemeData - * - * @return enhancedSchemeData + * @return enhancedSchemeData */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,7 +108,7 @@ public EnhancedSchemeData getEnhancedSchemeData() { /** * enhancedSchemeData * - * @param enhancedSchemeData + * @param enhancedSchemeData */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,7 +129,6 @@ public PaymentCancelRequest merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. - * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -151,7 +161,6 @@ public PaymentCancelRequest reference(String reference) { /** * Your reference for the cancel request. Maximum length: 80 characters. - * * @return reference Your reference for the cancel request. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -171,7 +180,9 @@ public void setReference(String reference) { this.reference = reference; } - /** Return true if this PaymentCancelRequest object is equal to o. */ + /** + * Return true if this PaymentCancelRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -181,10 +192,10 @@ public boolean equals(Object o) { return false; } PaymentCancelRequest paymentCancelRequest = (PaymentCancelRequest) o; - return Objects.equals(this.applicationInfo, paymentCancelRequest.applicationInfo) - && Objects.equals(this.enhancedSchemeData, paymentCancelRequest.enhancedSchemeData) - && Objects.equals(this.merchantAccount, paymentCancelRequest.merchantAccount) - && Objects.equals(this.reference, paymentCancelRequest.reference); + return Objects.equals(this.applicationInfo, paymentCancelRequest.applicationInfo) && + Objects.equals(this.enhancedSchemeData, paymentCancelRequest.enhancedSchemeData) && + Objects.equals(this.merchantAccount, paymentCancelRequest.merchantAccount) && + Objects.equals(this.reference, paymentCancelRequest.reference); } @Override @@ -205,7 +216,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -214,23 +226,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentCancelRequest given an JSON string * * @param jsonString JSON string * @return An instance of PaymentCancelRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentCancelRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentCancelRequest */ public static PaymentCancelRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentCancelRequest.class); } - - /** - * Convert an instance of PaymentCancelRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentCancelRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentCancelResponse.java b/src/main/java/com/adyen/model/checkout/PaymentCancelResponse.java index 87cf7cf9b..f3b36646a 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentCancelResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentCancelResponse.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** PaymentCancelResponse */ + +/** + * PaymentCancelResponse + */ @JsonPropertyOrder({ PaymentCancelResponse.JSON_PROPERTY_MERCHANT_ACCOUNT, PaymentCancelResponse.JSON_PROPERTY_PAYMENT_PSP_REFERENCE, @@ -29,6 +34,7 @@ PaymentCancelResponse.JSON_PROPERTY_REFERENCE, PaymentCancelResponse.JSON_PROPERTY_STATUS }) + public class PaymentCancelResponse { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; @@ -42,8 +48,11 @@ public class PaymentCancelResponse { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - /** The status of your request. This will always have the value **received**. */ + /** + * The status of your request. This will always have the value **received**. + */ public enum StatusEnum { + RECEIVED(String.valueOf("received")); private static final Logger LOG = Logger.getLogger(StatusEnum.class.getName()); @@ -51,7 +60,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -72,11 +81,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -84,7 +89,8 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; - public PaymentCancelResponse() {} + public PaymentCancelResponse() { + } /** * The merchant account that is used to process the payment. @@ -99,7 +105,6 @@ public PaymentCancelResponse merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. - * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -120,13 +125,9 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment to cancel. + * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to cancel. * - * @param paymentPspReference The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment to cancel. + * @param paymentPspReference The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to cancel. * @return the current {@code PaymentCancelResponse} instance, allowing for method chaining */ public PaymentCancelResponse paymentPspReference(String paymentPspReference) { @@ -135,13 +136,8 @@ public PaymentCancelResponse paymentPspReference(String paymentPspReference) { } /** - * The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment to cancel. - * - * @return paymentPspReference The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment to cancel. + * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to cancel. + * @return paymentPspReference The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to cancel. */ @JsonProperty(JSON_PROPERTY_PAYMENT_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,13 +146,9 @@ public String getPaymentPspReference() { } /** - * The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment to cancel. + * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to cancel. * - * @param paymentPspReference The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment to cancel. + * @param paymentPspReference The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to cancel. */ @JsonProperty(JSON_PROPERTY_PAYMENT_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,7 +169,6 @@ public PaymentCancelResponse pspReference(String pspReference) { /** * Adyen's 16-character reference associated with the cancel request. - * * @return pspReference Adyen's 16-character reference associated with the cancel request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -210,7 +201,6 @@ public PaymentCancelResponse reference(String reference) { /** * Your reference for the cancel request. - * * @return reference Your reference for the cancel request. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -243,7 +233,6 @@ public PaymentCancelResponse status(StatusEnum status) { /** * The status of your request. This will always have the value **received**. - * * @return status The status of your request. This will always have the value **received**. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -263,7 +252,9 @@ public void setStatus(StatusEnum status) { this.status = status; } - /** Return true if this PaymentCancelResponse object is equal to o. */ + /** + * Return true if this PaymentCancelResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -273,11 +264,11 @@ public boolean equals(Object o) { return false; } PaymentCancelResponse paymentCancelResponse = (PaymentCancelResponse) o; - return Objects.equals(this.merchantAccount, paymentCancelResponse.merchantAccount) - && Objects.equals(this.paymentPspReference, paymentCancelResponse.paymentPspReference) - && Objects.equals(this.pspReference, paymentCancelResponse.pspReference) - && Objects.equals(this.reference, paymentCancelResponse.reference) - && Objects.equals(this.status, paymentCancelResponse.status); + return Objects.equals(this.merchantAccount, paymentCancelResponse.merchantAccount) && + Objects.equals(this.paymentPspReference, paymentCancelResponse.paymentPspReference) && + Objects.equals(this.pspReference, paymentCancelResponse.pspReference) && + Objects.equals(this.reference, paymentCancelResponse.reference) && + Objects.equals(this.status, paymentCancelResponse.status); } @Override @@ -290,9 +281,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentCancelResponse {\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" paymentPspReference: ") - .append(toIndentedString(paymentPspReference)) - .append("\n"); + sb.append(" paymentPspReference: ").append(toIndentedString(paymentPspReference)).append("\n"); sb.append(" pspReference: ").append(toIndentedString(pspReference)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); @@ -301,7 +290,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -310,23 +300,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentCancelResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaymentCancelResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentCancelResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentCancelResponse */ public static PaymentCancelResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentCancelResponse.class); } - - /** - * Convert an instance of PaymentCancelResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentCancelResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentCaptureRequest.java b/src/main/java/com/adyen/model/checkout/PaymentCaptureRequest.java index 83a700282..6891c0fdd 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentCaptureRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentCaptureRequest.java @@ -2,24 +2,40 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Amount; +import com.adyen.model.checkout.ApplicationInfo; +import com.adyen.model.checkout.EnhancedSchemeData; +import com.adyen.model.checkout.LineItem; +import com.adyen.model.checkout.PlatformChargebackLogic; +import com.adyen.model.checkout.Split; +import com.adyen.model.checkout.SubMerchantInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PaymentCaptureRequest */ +/** + * PaymentCaptureRequest + */ @JsonPropertyOrder({ PaymentCaptureRequest.JSON_PROPERTY_AMOUNT, PaymentCaptureRequest.JSON_PROPERTY_APPLICATION_INFO, @@ -31,6 +47,7 @@ PaymentCaptureRequest.JSON_PROPERTY_SPLITS, PaymentCaptureRequest.JSON_PROPERTY_SUB_MERCHANTS }) + public class PaymentCaptureRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -59,12 +76,13 @@ public class PaymentCaptureRequest { public static final String JSON_PROPERTY_SUB_MERCHANTS = "subMerchants"; private List subMerchants; - public PaymentCaptureRequest() {} + public PaymentCaptureRequest() { + } /** * amount * - * @param amount + * @param amount * @return the current {@code PaymentCaptureRequest} instance, allowing for method chaining */ public PaymentCaptureRequest amount(Amount amount) { @@ -74,8 +92,7 @@ public PaymentCaptureRequest amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -86,7 +103,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,7 +114,7 @@ public void setAmount(Amount amount) { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo * @return the current {@code PaymentCaptureRequest} instance, allowing for method chaining */ public PaymentCaptureRequest applicationInfo(ApplicationInfo applicationInfo) { @@ -107,8 +124,7 @@ public PaymentCaptureRequest applicationInfo(ApplicationInfo applicationInfo) { /** * Get applicationInfo - * - * @return applicationInfo + * @return applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -119,7 +135,7 @@ public ApplicationInfo getApplicationInfo() { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -130,7 +146,7 @@ public void setApplicationInfo(ApplicationInfo applicationInfo) { /** * enhancedSchemeData * - * @param enhancedSchemeData + * @param enhancedSchemeData * @return the current {@code PaymentCaptureRequest} instance, allowing for method chaining */ public PaymentCaptureRequest enhancedSchemeData(EnhancedSchemeData enhancedSchemeData) { @@ -140,8 +156,7 @@ public PaymentCaptureRequest enhancedSchemeData(EnhancedSchemeData enhancedSchem /** * Get enhancedSchemeData - * - * @return enhancedSchemeData + * @return enhancedSchemeData */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,7 +167,7 @@ public EnhancedSchemeData getEnhancedSchemeData() { /** * enhancedSchemeData * - * @param enhancedSchemeData + * @param enhancedSchemeData */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,15 +176,9 @@ public void setEnhancedSchemeData(EnhancedSchemeData enhancedSchemeData) { } /** - * Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is - * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. * - * @param lineItems Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field - * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. + * @param lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. * @return the current {@code PaymentCaptureRequest} instance, allowing for method chaining */ public PaymentCaptureRequest lineItems(List lineItems) { @@ -186,15 +195,8 @@ public PaymentCaptureRequest addLineItemsItem(LineItem lineItemsItem) { } /** - * Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is - * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. - * - * @return lineItems Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field - * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * @return lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -203,15 +205,9 @@ public List getLineItems() { } /** - * Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is - * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. * - * @param lineItems Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field - * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. + * @param lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,7 +228,6 @@ public PaymentCaptureRequest merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. - * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -255,19 +250,17 @@ public void setMerchantAccount(String merchantAccount) { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic * @return the current {@code PaymentCaptureRequest} instance, allowing for method chaining */ - public PaymentCaptureRequest platformChargebackLogic( - PlatformChargebackLogic platformChargebackLogic) { + public PaymentCaptureRequest platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) { this.platformChargebackLogic = platformChargebackLogic; return this; } /** * Get platformChargebackLogic - * - * @return platformChargebackLogic + * @return platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -278,7 +271,7 @@ public PlatformChargebackLogic getPlatformChargebackLogic() { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -299,7 +292,6 @@ public PaymentCaptureRequest reference(String reference) { /** * Your reference for the capture request. Maximum length: 80 characters. - * * @return reference Your reference for the capture request. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -320,15 +312,9 @@ public void setReference(String reference) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). * - * @param splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). * @return the current {@code PaymentCaptureRequest} instance, allowing for method chaining */ public PaymentCaptureRequest splits(List splits) { @@ -345,15 +331,8 @@ public PaymentCaptureRequest addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). - * - * @return splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * @return splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -362,15 +341,9 @@ public List getSplits() { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). * - * @param splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -399,7 +372,6 @@ public PaymentCaptureRequest addSubMerchantsItem(SubMerchantInfo subMerchantsIte /** * A List of sub-merchants. - * * @return subMerchants A List of sub-merchants. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANTS) @@ -419,7 +391,9 @@ public void setSubMerchants(List subMerchants) { this.subMerchants = subMerchants; } - /** Return true if this PaymentCaptureRequest object is equal to o. */ + /** + * Return true if this PaymentCaptureRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -429,30 +403,20 @@ public boolean equals(Object o) { return false; } PaymentCaptureRequest paymentCaptureRequest = (PaymentCaptureRequest) o; - return Objects.equals(this.amount, paymentCaptureRequest.amount) - && Objects.equals(this.applicationInfo, paymentCaptureRequest.applicationInfo) - && Objects.equals(this.enhancedSchemeData, paymentCaptureRequest.enhancedSchemeData) - && Objects.equals(this.lineItems, paymentCaptureRequest.lineItems) - && Objects.equals(this.merchantAccount, paymentCaptureRequest.merchantAccount) - && Objects.equals( - this.platformChargebackLogic, paymentCaptureRequest.platformChargebackLogic) - && Objects.equals(this.reference, paymentCaptureRequest.reference) - && Objects.equals(this.splits, paymentCaptureRequest.splits) - && Objects.equals(this.subMerchants, paymentCaptureRequest.subMerchants); + return Objects.equals(this.amount, paymentCaptureRequest.amount) && + Objects.equals(this.applicationInfo, paymentCaptureRequest.applicationInfo) && + Objects.equals(this.enhancedSchemeData, paymentCaptureRequest.enhancedSchemeData) && + Objects.equals(this.lineItems, paymentCaptureRequest.lineItems) && + Objects.equals(this.merchantAccount, paymentCaptureRequest.merchantAccount) && + Objects.equals(this.platformChargebackLogic, paymentCaptureRequest.platformChargebackLogic) && + Objects.equals(this.reference, paymentCaptureRequest.reference) && + Objects.equals(this.splits, paymentCaptureRequest.splits) && + Objects.equals(this.subMerchants, paymentCaptureRequest.subMerchants); } @Override public int hashCode() { - return Objects.hash( - amount, - applicationInfo, - enhancedSchemeData, - lineItems, - merchantAccount, - platformChargebackLogic, - reference, - splits, - subMerchants); + return Objects.hash(amount, applicationInfo, enhancedSchemeData, lineItems, merchantAccount, platformChargebackLogic, reference, splits, subMerchants); } @Override @@ -464,9 +428,7 @@ public String toString() { sb.append(" enhancedSchemeData: ").append(toIndentedString(enhancedSchemeData)).append("\n"); sb.append(" lineItems: ").append(toIndentedString(lineItems)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" platformChargebackLogic: ") - .append(toIndentedString(platformChargebackLogic)) - .append("\n"); + sb.append(" platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" subMerchants: ").append(toIndentedString(subMerchants)).append("\n"); @@ -475,7 +437,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -484,23 +447,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentCaptureRequest given an JSON string * * @param jsonString JSON string * @return An instance of PaymentCaptureRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentCaptureRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentCaptureRequest */ public static PaymentCaptureRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentCaptureRequest.class); } - - /** - * Convert an instance of PaymentCaptureRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentCaptureRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentCaptureResponse.java b/src/main/java/com/adyen/model/checkout/PaymentCaptureResponse.java index c3c9b78e0..5ff6e49a2 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentCaptureResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentCaptureResponse.java @@ -2,28 +2,38 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Amount; +import com.adyen.model.checkout.LineItem; +import com.adyen.model.checkout.PlatformChargebackLogic; +import com.adyen.model.checkout.Split; +import com.adyen.model.checkout.SubMerchantInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PaymentCaptureResponse */ +/** + * PaymentCaptureResponse + */ @JsonPropertyOrder({ PaymentCaptureResponse.JSON_PROPERTY_AMOUNT, PaymentCaptureResponse.JSON_PROPERTY_LINE_ITEMS, @@ -36,6 +46,7 @@ PaymentCaptureResponse.JSON_PROPERTY_STATUS, PaymentCaptureResponse.JSON_PROPERTY_SUB_MERCHANTS }) + public class PaymentCaptureResponse { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -61,8 +72,11 @@ public class PaymentCaptureResponse { public static final String JSON_PROPERTY_SPLITS = "splits"; private List splits; - /** The status of your request. This will always have the value **received**. */ + /** + * The status of your request. This will always have the value **received**. + */ public enum StatusEnum { + RECEIVED(String.valueOf("received")); private static final Logger LOG = Logger.getLogger(StatusEnum.class.getName()); @@ -70,7 +84,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -91,11 +105,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -106,12 +116,13 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_SUB_MERCHANTS = "subMerchants"; private List subMerchants; - public PaymentCaptureResponse() {} + public PaymentCaptureResponse() { + } /** * amount * - * @param amount + * @param amount * @return the current {@code PaymentCaptureResponse} instance, allowing for method chaining */ public PaymentCaptureResponse amount(Amount amount) { @@ -121,8 +132,7 @@ public PaymentCaptureResponse amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -133,7 +143,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,15 +152,9 @@ public void setAmount(Amount amount) { } /** - * Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is - * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. * - * @param lineItems Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field - * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. + * @param lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. * @return the current {@code PaymentCaptureResponse} instance, allowing for method chaining */ public PaymentCaptureResponse lineItems(List lineItems) { @@ -167,15 +171,8 @@ public PaymentCaptureResponse addLineItemsItem(LineItem lineItemsItem) { } /** - * Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is - * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. - * - * @return lineItems Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field - * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * @return lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -184,15 +181,9 @@ public List getLineItems() { } /** - * Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is - * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. * - * @param lineItems Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field - * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. + * @param lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -213,7 +204,6 @@ public PaymentCaptureResponse merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. - * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -234,13 +224,9 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment to capture. + * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to capture. * - * @param paymentPspReference The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment to capture. + * @param paymentPspReference The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to capture. * @return the current {@code PaymentCaptureResponse} instance, allowing for method chaining */ public PaymentCaptureResponse paymentPspReference(String paymentPspReference) { @@ -249,13 +235,8 @@ public PaymentCaptureResponse paymentPspReference(String paymentPspReference) { } /** - * The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment to capture. - * - * @return paymentPspReference The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment to capture. + * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to capture. + * @return paymentPspReference The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to capture. */ @JsonProperty(JSON_PROPERTY_PAYMENT_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -264,13 +245,9 @@ public String getPaymentPspReference() { } /** - * The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment to capture. + * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to capture. * - * @param paymentPspReference The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment to capture. + * @param paymentPspReference The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to capture. */ @JsonProperty(JSON_PROPERTY_PAYMENT_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -281,19 +258,17 @@ public void setPaymentPspReference(String paymentPspReference) { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic * @return the current {@code PaymentCaptureResponse} instance, allowing for method chaining */ - public PaymentCaptureResponse platformChargebackLogic( - PlatformChargebackLogic platformChargebackLogic) { + public PaymentCaptureResponse platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) { this.platformChargebackLogic = platformChargebackLogic; return this; } /** * Get platformChargebackLogic - * - * @return platformChargebackLogic + * @return platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -304,7 +279,7 @@ public PlatformChargebackLogic getPlatformChargebackLogic() { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -325,7 +300,6 @@ public PaymentCaptureResponse pspReference(String pspReference) { /** * Adyen's 16-character reference associated with the capture request. - * * @return pspReference Adyen's 16-character reference associated with the capture request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -358,7 +332,6 @@ public PaymentCaptureResponse reference(String reference) { /** * Your reference for the capture request. - * * @return reference Your reference for the capture request. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -379,15 +352,9 @@ public void setReference(String reference) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). * - * @param splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). * @return the current {@code PaymentCaptureResponse} instance, allowing for method chaining */ public PaymentCaptureResponse splits(List splits) { @@ -404,15 +371,8 @@ public PaymentCaptureResponse addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). - * - * @return splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * @return splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -421,15 +381,9 @@ public List getSplits() { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). * - * @param splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -450,7 +404,6 @@ public PaymentCaptureResponse status(StatusEnum status) { /** * The status of your request. This will always have the value **received**. - * * @return status The status of your request. This will always have the value **received**. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -491,7 +444,6 @@ public PaymentCaptureResponse addSubMerchantsItem(SubMerchantInfo subMerchantsIt /** * List of sub-merchants. - * * @return subMerchants List of sub-merchants. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANTS) @@ -511,7 +463,9 @@ public void setSubMerchants(List subMerchants) { this.subMerchants = subMerchants; } - /** Return true if this PaymentCaptureResponse object is equal to o. */ + /** + * Return true if this PaymentCaptureResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -521,32 +475,21 @@ public boolean equals(Object o) { return false; } PaymentCaptureResponse paymentCaptureResponse = (PaymentCaptureResponse) o; - return Objects.equals(this.amount, paymentCaptureResponse.amount) - && Objects.equals(this.lineItems, paymentCaptureResponse.lineItems) - && Objects.equals(this.merchantAccount, paymentCaptureResponse.merchantAccount) - && Objects.equals(this.paymentPspReference, paymentCaptureResponse.paymentPspReference) - && Objects.equals( - this.platformChargebackLogic, paymentCaptureResponse.platformChargebackLogic) - && Objects.equals(this.pspReference, paymentCaptureResponse.pspReference) - && Objects.equals(this.reference, paymentCaptureResponse.reference) - && Objects.equals(this.splits, paymentCaptureResponse.splits) - && Objects.equals(this.status, paymentCaptureResponse.status) - && Objects.equals(this.subMerchants, paymentCaptureResponse.subMerchants); + return Objects.equals(this.amount, paymentCaptureResponse.amount) && + Objects.equals(this.lineItems, paymentCaptureResponse.lineItems) && + Objects.equals(this.merchantAccount, paymentCaptureResponse.merchantAccount) && + Objects.equals(this.paymentPspReference, paymentCaptureResponse.paymentPspReference) && + Objects.equals(this.platformChargebackLogic, paymentCaptureResponse.platformChargebackLogic) && + Objects.equals(this.pspReference, paymentCaptureResponse.pspReference) && + Objects.equals(this.reference, paymentCaptureResponse.reference) && + Objects.equals(this.splits, paymentCaptureResponse.splits) && + Objects.equals(this.status, paymentCaptureResponse.status) && + Objects.equals(this.subMerchants, paymentCaptureResponse.subMerchants); } @Override public int hashCode() { - return Objects.hash( - amount, - lineItems, - merchantAccount, - paymentPspReference, - platformChargebackLogic, - pspReference, - reference, - splits, - status, - subMerchants); + return Objects.hash(amount, lineItems, merchantAccount, paymentPspReference, platformChargebackLogic, pspReference, reference, splits, status, subMerchants); } @Override @@ -556,12 +499,8 @@ public String toString() { sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" lineItems: ").append(toIndentedString(lineItems)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" paymentPspReference: ") - .append(toIndentedString(paymentPspReference)) - .append("\n"); - sb.append(" platformChargebackLogic: ") - .append(toIndentedString(platformChargebackLogic)) - .append("\n"); + sb.append(" paymentPspReference: ").append(toIndentedString(paymentPspReference)).append("\n"); + sb.append(" platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n"); sb.append(" pspReference: ").append(toIndentedString(pspReference)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); @@ -572,7 +511,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -581,23 +521,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentCaptureResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaymentCaptureResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentCaptureResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentCaptureResponse */ public static PaymentCaptureResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentCaptureResponse.class); } - - /** - * Convert an instance of PaymentCaptureResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentCaptureResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentCompletionDetails.java b/src/main/java/com/adyen/model/checkout/PaymentCompletionDetails.java index 678235869..e6898e30a 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentCompletionDetails.java +++ b/src/main/java/com/adyen/model/checkout/PaymentCompletionDetails.java @@ -2,22 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** PaymentCompletionDetails */ + +/** + * PaymentCompletionDetails + */ @JsonPropertyOrder({ PaymentCompletionDetails.JSON_PROPERTY_M_D, PaymentCompletionDetails.JSON_PROPERTY_PA_REQ, @@ -40,6 +49,7 @@ PaymentCompletionDetails.JSON_PROPERTY_THREEDS2_FINGERPRINT, PaymentCompletionDetails.JSON_PROPERTY_VAULT_TOKEN }) + public class PaymentCompletionDetails { public static final String JSON_PROPERTY_M_D = "MD"; private String MD; @@ -101,7 +111,8 @@ public class PaymentCompletionDetails { public static final String JSON_PROPERTY_VAULT_TOKEN = "vaultToken"; private String vaultToken; - public PaymentCompletionDetails() {} + public PaymentCompletionDetails() { + } /** * A payment session identifier returned by the card issuer. @@ -116,7 +127,6 @@ public PaymentCompletionDetails MD(String MD) { /** * A payment session identifier returned by the card issuer. - * * @return MD A payment session identifier returned by the card issuer. */ @JsonProperty(JSON_PROPERTY_M_D) @@ -149,7 +159,6 @@ public PaymentCompletionDetails paReq(String paReq) { /** * (3D) Payment Authentication Request data for the card issuer. - * * @return paReq (3D) Payment Authentication Request data for the card issuer. */ @JsonProperty(JSON_PROPERTY_PA_REQ) @@ -182,7 +191,6 @@ public PaymentCompletionDetails paRes(String paRes) { /** * (3D) Payment Authentication Response data by the card issuer. - * * @return paRes (3D) Payment Authentication Response data by the card issuer. */ @JsonProperty(JSON_PROPERTY_PA_RES) @@ -205,7 +213,7 @@ public void setPaRes(String paRes) { /** * authorizationToken * - * @param authorizationToken + * @param authorizationToken * @return the current {@code PaymentCompletionDetails} instance, allowing for method chaining */ public PaymentCompletionDetails authorizationToken(String authorizationToken) { @@ -215,8 +223,7 @@ public PaymentCompletionDetails authorizationToken(String authorizationToken) { /** * Get authorizationToken - * - * @return authorizationToken + * @return authorizationToken */ @JsonProperty(JSON_PROPERTY_AUTHORIZATION_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -227,7 +234,7 @@ public String getAuthorizationToken() { /** * authorizationToken * - * @param authorizationToken + * @param authorizationToken */ @JsonProperty(JSON_PROPERTY_AUTHORIZATION_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -248,7 +255,6 @@ public PaymentCompletionDetails billingToken(String billingToken) { /** * PayPal-generated token for recurring payments. - * * @return billingToken PayPal-generated token for recurring payments. */ @JsonProperty(JSON_PROPERTY_BILLING_TOKEN) @@ -281,7 +287,6 @@ public PaymentCompletionDetails cupsecureplusSmscode(String cupsecureplusSmscode /** * The SMS verification code collected from the shopper. - * * @return cupsecureplusSmscode The SMS verification code collected from the shopper. */ @JsonProperty(JSON_PROPERTY_CUPSECUREPLUS_SMSCODE) @@ -314,7 +319,6 @@ public PaymentCompletionDetails facilitatorAccessToken(String facilitatorAccessT /** * PayPal-generated third party access token. - * * @return facilitatorAccessToken PayPal-generated third party access token. */ @JsonProperty(JSON_PROPERTY_FACILITATOR_ACCESS_TOKEN) @@ -337,8 +341,7 @@ public void setFacilitatorAccessToken(String facilitatorAccessToken) { /** * A random number sent to the mobile phone number of the shopper to verify the payment. * - * @param oneTimePasscode A random number sent to the mobile phone number of the shopper to verify - * the payment. + * @param oneTimePasscode A random number sent to the mobile phone number of the shopper to verify the payment. * @return the current {@code PaymentCompletionDetails} instance, allowing for method chaining */ public PaymentCompletionDetails oneTimePasscode(String oneTimePasscode) { @@ -348,9 +351,7 @@ public PaymentCompletionDetails oneTimePasscode(String oneTimePasscode) { /** * A random number sent to the mobile phone number of the shopper to verify the payment. - * - * @return oneTimePasscode A random number sent to the mobile phone number of the shopper to - * verify the payment. + * @return oneTimePasscode A random number sent to the mobile phone number of the shopper to verify the payment. */ @JsonProperty(JSON_PROPERTY_ONE_TIME_PASSCODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -361,8 +362,7 @@ public String getOneTimePasscode() { /** * A random number sent to the mobile phone number of the shopper to verify the payment. * - * @param oneTimePasscode A random number sent to the mobile phone number of the shopper to verify - * the payment. + * @param oneTimePasscode A random number sent to the mobile phone number of the shopper to verify the payment. */ @JsonProperty(JSON_PROPERTY_ONE_TIME_PASSCODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -383,7 +383,6 @@ public PaymentCompletionDetails orderID(String orderID) { /** * PayPal-assigned ID for the order. - * * @return orderID PayPal-assigned ID for the order. */ @JsonProperty(JSON_PROPERTY_ORDER_I_D) @@ -416,7 +415,6 @@ public PaymentCompletionDetails payerID(String payerID) { /** * PayPal-assigned ID for the payer (shopper). - * * @return payerID PayPal-assigned ID for the payer (shopper). */ @JsonProperty(JSON_PROPERTY_PAYER_I_D) @@ -449,7 +447,6 @@ public PaymentCompletionDetails payload(String payload) { /** * Payload appended to the `returnURL` as a result of the redirect. - * * @return payload Payload appended to the `returnURL` as a result of the redirect. */ @JsonProperty(JSON_PROPERTY_PAYLOAD) @@ -482,7 +479,6 @@ public PaymentCompletionDetails paymentID(String paymentID) { /** * PayPal-generated ID for the payment. - * * @return paymentID PayPal-generated ID for the payment. */ @JsonProperty(JSON_PROPERTY_PAYMENT_I_D) @@ -503,12 +499,9 @@ public void setPaymentID(String paymentID) { } /** - * Value passed from the WeChat MiniProgram `wx.requestPayment` **complete** callback. - * Possible values: any value starting with `requestPayment:`. + * Value passed from the WeChat MiniProgram `wx.requestPayment` **complete** callback. Possible values: any value starting with `requestPayment:`. * - * @param paymentStatus Value passed from the WeChat MiniProgram `wx.requestPayment` - * **complete** callback. Possible values: any value starting with - * `requestPayment:`. + * @param paymentStatus Value passed from the WeChat MiniProgram `wx.requestPayment` **complete** callback. Possible values: any value starting with `requestPayment:`. * @return the current {@code PaymentCompletionDetails} instance, allowing for method chaining */ public PaymentCompletionDetails paymentStatus(String paymentStatus) { @@ -517,12 +510,8 @@ public PaymentCompletionDetails paymentStatus(String paymentStatus) { } /** - * Value passed from the WeChat MiniProgram `wx.requestPayment` **complete** callback. - * Possible values: any value starting with `requestPayment:`. - * - * @return paymentStatus Value passed from the WeChat MiniProgram `wx.requestPayment` - * **complete** callback. Possible values: any value starting with - * `requestPayment:`. + * Value passed from the WeChat MiniProgram `wx.requestPayment` **complete** callback. Possible values: any value starting with `requestPayment:`. + * @return paymentStatus Value passed from the WeChat MiniProgram `wx.requestPayment` **complete** callback. Possible values: any value starting with `requestPayment:`. */ @JsonProperty(JSON_PROPERTY_PAYMENT_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -531,12 +520,9 @@ public String getPaymentStatus() { } /** - * Value passed from the WeChat MiniProgram `wx.requestPayment` **complete** callback. - * Possible values: any value starting with `requestPayment:`. + * Value passed from the WeChat MiniProgram `wx.requestPayment` **complete** callback. Possible values: any value starting with `requestPayment:`. * - * @param paymentStatus Value passed from the WeChat MiniProgram `wx.requestPayment` - * **complete** callback. Possible values: any value starting with - * `requestPayment:`. + * @param paymentStatus Value passed from the WeChat MiniProgram `wx.requestPayment` **complete** callback. Possible values: any value starting with `requestPayment:`. */ @JsonProperty(JSON_PROPERTY_PAYMENT_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -557,7 +543,6 @@ public PaymentCompletionDetails redirectResult(String redirectResult) { /** * The result of the redirect as appended to the `returnURL`. - * * @return redirectResult The result of the redirect as appended to the `returnURL`. */ @JsonProperty(JSON_PROPERTY_REDIRECT_RESULT) @@ -590,7 +575,6 @@ public PaymentCompletionDetails resultCode(String resultCode) { /** * Value you received from the WeChat Pay SDK. - * * @return resultCode Value you received from the WeChat Pay SDK. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @@ -613,8 +597,7 @@ public void setResultCode(String resultCode) { /** * The query string as appended to the `returnURL` when using direct issuer links . * - * @param returnUrlQueryString The query string as appended to the `returnURL` when - * using direct issuer links . + * @param returnUrlQueryString The query string as appended to the `returnURL` when using direct issuer links . * @return the current {@code PaymentCompletionDetails} instance, allowing for method chaining */ public PaymentCompletionDetails returnUrlQueryString(String returnUrlQueryString) { @@ -624,9 +607,7 @@ public PaymentCompletionDetails returnUrlQueryString(String returnUrlQueryString /** * The query string as appended to the `returnURL` when using direct issuer links . - * - * @return returnUrlQueryString The query string as appended to the `returnURL` when - * using direct issuer links . + * @return returnUrlQueryString The query string as appended to the `returnURL` when using direct issuer links . */ @JsonProperty(JSON_PROPERTY_RETURN_URL_QUERY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -637,8 +618,7 @@ public String getReturnUrlQueryString() { /** * The query string as appended to the `returnURL` when using direct issuer links . * - * @param returnUrlQueryString The query string as appended to the `returnURL` when - * using direct issuer links . + * @param returnUrlQueryString The query string as appended to the `returnURL` when using direct issuer links . */ @JsonProperty(JSON_PROPERTY_RETURN_URL_QUERY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -647,12 +627,9 @@ public void setReturnUrlQueryString(String returnUrlQueryString) { } /** - * Base64-encoded string returned by the Component after the challenge flow. It contains the - * following parameters: `transStatus`, `authorisationToken`. + * Base64-encoded string returned by the Component after the challenge flow. It contains the following parameters: `transStatus`, `authorisationToken`. * - * @param threeDSResult Base64-encoded string returned by the Component after the challenge flow. - * It contains the following parameters: `transStatus`, - * `authorisationToken`. + * @param threeDSResult Base64-encoded string returned by the Component after the challenge flow. It contains the following parameters: `transStatus`, `authorisationToken`. * @return the current {@code PaymentCompletionDetails} instance, allowing for method chaining */ public PaymentCompletionDetails threeDSResult(String threeDSResult) { @@ -661,12 +638,8 @@ public PaymentCompletionDetails threeDSResult(String threeDSResult) { } /** - * Base64-encoded string returned by the Component after the challenge flow. It contains the - * following parameters: `transStatus`, `authorisationToken`. - * - * @return threeDSResult Base64-encoded string returned by the Component after the challenge flow. - * It contains the following parameters: `transStatus`, - * `authorisationToken`. + * Base64-encoded string returned by the Component after the challenge flow. It contains the following parameters: `transStatus`, `authorisationToken`. + * @return threeDSResult Base64-encoded string returned by the Component after the challenge flow. It contains the following parameters: `transStatus`, `authorisationToken`. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -675,12 +648,9 @@ public String getThreeDSResult() { } /** - * Base64-encoded string returned by the Component after the challenge flow. It contains the - * following parameters: `transStatus`, `authorisationToken`. + * Base64-encoded string returned by the Component after the challenge flow. It contains the following parameters: `transStatus`, `authorisationToken`. * - * @param threeDSResult Base64-encoded string returned by the Component after the challenge flow. - * It contains the following parameters: `transStatus`, - * `authorisationToken`. + * @param threeDSResult Base64-encoded string returned by the Component after the challenge flow. It contains the following parameters: `transStatus`, `authorisationToken`. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -689,11 +659,9 @@ public void setThreeDSResult(String threeDSResult) { } /** - * Base64-encoded string returned by the Component after the challenge flow. It contains the - * following parameter: `transStatus`. + * Base64-encoded string returned by the Component after the challenge flow. It contains the following parameter: `transStatus`. * - * @param threeds2ChallengeResult Base64-encoded string returned by the Component after the - * challenge flow. It contains the following parameter: `transStatus`. + * @param threeds2ChallengeResult Base64-encoded string returned by the Component after the challenge flow. It contains the following parameter: `transStatus`. * @return the current {@code PaymentCompletionDetails} instance, allowing for method chaining */ public PaymentCompletionDetails threeds2ChallengeResult(String threeds2ChallengeResult) { @@ -702,11 +670,8 @@ public PaymentCompletionDetails threeds2ChallengeResult(String threeds2Challenge } /** - * Base64-encoded string returned by the Component after the challenge flow. It contains the - * following parameter: `transStatus`. - * - * @return threeds2ChallengeResult Base64-encoded string returned by the Component after the - * challenge flow. It contains the following parameter: `transStatus`. + * Base64-encoded string returned by the Component after the challenge flow. It contains the following parameter: `transStatus`. + * @return threeds2ChallengeResult Base64-encoded string returned by the Component after the challenge flow. It contains the following parameter: `transStatus`. */ @JsonProperty(JSON_PROPERTY_THREEDS2_CHALLENGE_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -715,11 +680,9 @@ public String getThreeds2ChallengeResult() { } /** - * Base64-encoded string returned by the Component after the challenge flow. It contains the - * following parameter: `transStatus`. + * Base64-encoded string returned by the Component after the challenge flow. It contains the following parameter: `transStatus`. * - * @param threeds2ChallengeResult Base64-encoded string returned by the Component after the - * challenge flow. It contains the following parameter: `transStatus`. + * @param threeds2ChallengeResult Base64-encoded string returned by the Component after the challenge flow. It contains the following parameter: `transStatus`. */ @JsonProperty(JSON_PROPERTY_THREEDS2_CHALLENGE_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -728,11 +691,9 @@ public void setThreeds2ChallengeResult(String threeds2ChallengeResult) { } /** - * Base64-encoded string returned by the Component after the challenge flow. It contains the - * following parameter: `threeDSCompInd`. + * Base64-encoded string returned by the Component after the challenge flow. It contains the following parameter: `threeDSCompInd`. * - * @param threeds2Fingerprint Base64-encoded string returned by the Component after the challenge - * flow. It contains the following parameter: `threeDSCompInd`. + * @param threeds2Fingerprint Base64-encoded string returned by the Component after the challenge flow. It contains the following parameter: `threeDSCompInd`. * @return the current {@code PaymentCompletionDetails} instance, allowing for method chaining */ public PaymentCompletionDetails threeds2Fingerprint(String threeds2Fingerprint) { @@ -741,11 +702,8 @@ public PaymentCompletionDetails threeds2Fingerprint(String threeds2Fingerprint) } /** - * Base64-encoded string returned by the Component after the challenge flow. It contains the - * following parameter: `threeDSCompInd`. - * - * @return threeds2Fingerprint Base64-encoded string returned by the Component after the challenge - * flow. It contains the following parameter: `threeDSCompInd`. + * Base64-encoded string returned by the Component after the challenge flow. It contains the following parameter: `threeDSCompInd`. + * @return threeds2Fingerprint Base64-encoded string returned by the Component after the challenge flow. It contains the following parameter: `threeDSCompInd`. */ @JsonProperty(JSON_PROPERTY_THREEDS2_FINGERPRINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -754,11 +712,9 @@ public String getThreeds2Fingerprint() { } /** - * Base64-encoded string returned by the Component after the challenge flow. It contains the - * following parameter: `threeDSCompInd`. + * Base64-encoded string returned by the Component after the challenge flow. It contains the following parameter: `threeDSCompInd`. * - * @param threeds2Fingerprint Base64-encoded string returned by the Component after the challenge - * flow. It contains the following parameter: `threeDSCompInd`. + * @param threeds2Fingerprint Base64-encoded string returned by the Component after the challenge flow. It contains the following parameter: `threeDSCompInd`. */ @JsonProperty(JSON_PROPERTY_THREEDS2_FINGERPRINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -779,7 +735,6 @@ public PaymentCompletionDetails vaultToken(String vaultToken) { /** * PayPalv2-generated token for recurring payments. - * * @return vaultToken PayPalv2-generated token for recurring payments. */ @JsonProperty(JSON_PROPERTY_VAULT_TOKEN) @@ -799,7 +754,9 @@ public void setVaultToken(String vaultToken) { this.vaultToken = vaultToken; } - /** Return true if this PaymentCompletionDetails object is equal to o. */ + /** + * Return true if this PaymentCompletionDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -809,53 +766,31 @@ public boolean equals(Object o) { return false; } PaymentCompletionDetails paymentCompletionDetails = (PaymentCompletionDetails) o; - return Objects.equals(this.MD, paymentCompletionDetails.MD) - && Objects.equals(this.paReq, paymentCompletionDetails.paReq) - && Objects.equals(this.paRes, paymentCompletionDetails.paRes) - && Objects.equals(this.authorizationToken, paymentCompletionDetails.authorizationToken) - && Objects.equals(this.billingToken, paymentCompletionDetails.billingToken) - && Objects.equals(this.cupsecureplusSmscode, paymentCompletionDetails.cupsecureplusSmscode) - && Objects.equals( - this.facilitatorAccessToken, paymentCompletionDetails.facilitatorAccessToken) - && Objects.equals(this.oneTimePasscode, paymentCompletionDetails.oneTimePasscode) - && Objects.equals(this.orderID, paymentCompletionDetails.orderID) - && Objects.equals(this.payerID, paymentCompletionDetails.payerID) - && Objects.equals(this.payload, paymentCompletionDetails.payload) - && Objects.equals(this.paymentID, paymentCompletionDetails.paymentID) - && Objects.equals(this.paymentStatus, paymentCompletionDetails.paymentStatus) - && Objects.equals(this.redirectResult, paymentCompletionDetails.redirectResult) - && Objects.equals(this.resultCode, paymentCompletionDetails.resultCode) - && Objects.equals(this.returnUrlQueryString, paymentCompletionDetails.returnUrlQueryString) - && Objects.equals(this.threeDSResult, paymentCompletionDetails.threeDSResult) - && Objects.equals( - this.threeds2ChallengeResult, paymentCompletionDetails.threeds2ChallengeResult) - && Objects.equals(this.threeds2Fingerprint, paymentCompletionDetails.threeds2Fingerprint) - && Objects.equals(this.vaultToken, paymentCompletionDetails.vaultToken); + return Objects.equals(this.MD, paymentCompletionDetails.MD) && + Objects.equals(this.paReq, paymentCompletionDetails.paReq) && + Objects.equals(this.paRes, paymentCompletionDetails.paRes) && + Objects.equals(this.authorizationToken, paymentCompletionDetails.authorizationToken) && + Objects.equals(this.billingToken, paymentCompletionDetails.billingToken) && + Objects.equals(this.cupsecureplusSmscode, paymentCompletionDetails.cupsecureplusSmscode) && + Objects.equals(this.facilitatorAccessToken, paymentCompletionDetails.facilitatorAccessToken) && + Objects.equals(this.oneTimePasscode, paymentCompletionDetails.oneTimePasscode) && + Objects.equals(this.orderID, paymentCompletionDetails.orderID) && + Objects.equals(this.payerID, paymentCompletionDetails.payerID) && + Objects.equals(this.payload, paymentCompletionDetails.payload) && + Objects.equals(this.paymentID, paymentCompletionDetails.paymentID) && + Objects.equals(this.paymentStatus, paymentCompletionDetails.paymentStatus) && + Objects.equals(this.redirectResult, paymentCompletionDetails.redirectResult) && + Objects.equals(this.resultCode, paymentCompletionDetails.resultCode) && + Objects.equals(this.returnUrlQueryString, paymentCompletionDetails.returnUrlQueryString) && + Objects.equals(this.threeDSResult, paymentCompletionDetails.threeDSResult) && + Objects.equals(this.threeds2ChallengeResult, paymentCompletionDetails.threeds2ChallengeResult) && + Objects.equals(this.threeds2Fingerprint, paymentCompletionDetails.threeds2Fingerprint) && + Objects.equals(this.vaultToken, paymentCompletionDetails.vaultToken); } @Override public int hashCode() { - return Objects.hash( - MD, - paReq, - paRes, - authorizationToken, - billingToken, - cupsecureplusSmscode, - facilitatorAccessToken, - oneTimePasscode, - orderID, - payerID, - payload, - paymentID, - paymentStatus, - redirectResult, - resultCode, - returnUrlQueryString, - threeDSResult, - threeds2ChallengeResult, - threeds2Fingerprint, - vaultToken); + return Objects.hash(MD, paReq, paRes, authorizationToken, billingToken, cupsecureplusSmscode, facilitatorAccessToken, oneTimePasscode, orderID, payerID, payload, paymentID, paymentStatus, redirectResult, resultCode, returnUrlQueryString, threeDSResult, threeds2ChallengeResult, threeds2Fingerprint, vaultToken); } @Override @@ -867,12 +802,8 @@ public String toString() { sb.append(" paRes: ").append(toIndentedString(paRes)).append("\n"); sb.append(" authorizationToken: ").append(toIndentedString(authorizationToken)).append("\n"); sb.append(" billingToken: ").append(toIndentedString(billingToken)).append("\n"); - sb.append(" cupsecureplusSmscode: ") - .append(toIndentedString(cupsecureplusSmscode)) - .append("\n"); - sb.append(" facilitatorAccessToken: ") - .append(toIndentedString(facilitatorAccessToken)) - .append("\n"); + sb.append(" cupsecureplusSmscode: ").append(toIndentedString(cupsecureplusSmscode)).append("\n"); + sb.append(" facilitatorAccessToken: ").append(toIndentedString(facilitatorAccessToken)).append("\n"); sb.append(" oneTimePasscode: ").append(toIndentedString(oneTimePasscode)).append("\n"); sb.append(" orderID: ").append(toIndentedString(orderID)).append("\n"); sb.append(" payerID: ").append(toIndentedString(payerID)).append("\n"); @@ -881,23 +812,18 @@ public String toString() { sb.append(" paymentStatus: ").append(toIndentedString(paymentStatus)).append("\n"); sb.append(" redirectResult: ").append(toIndentedString(redirectResult)).append("\n"); sb.append(" resultCode: ").append(toIndentedString(resultCode)).append("\n"); - sb.append(" returnUrlQueryString: ") - .append(toIndentedString(returnUrlQueryString)) - .append("\n"); + sb.append(" returnUrlQueryString: ").append(toIndentedString(returnUrlQueryString)).append("\n"); sb.append(" threeDSResult: ").append(toIndentedString(threeDSResult)).append("\n"); - sb.append(" threeds2ChallengeResult: ") - .append(toIndentedString(threeds2ChallengeResult)) - .append("\n"); - sb.append(" threeds2Fingerprint: ") - .append(toIndentedString(threeds2Fingerprint)) - .append("\n"); + sb.append(" threeds2ChallengeResult: ").append(toIndentedString(threeds2ChallengeResult)).append("\n"); + sb.append(" threeds2Fingerprint: ").append(toIndentedString(threeds2Fingerprint)).append("\n"); sb.append(" vaultToken: ").append(toIndentedString(vaultToken)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -906,24 +832,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentCompletionDetails given an JSON string * * @param jsonString JSON string * @return An instance of PaymentCompletionDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentCompletionDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentCompletionDetails */ - public static PaymentCompletionDetails fromJson(String jsonString) - throws JsonProcessingException { + public static PaymentCompletionDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentCompletionDetails.class); } - - /** - * Convert an instance of PaymentCompletionDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentCompletionDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentDetails.java b/src/main/java/com/adyen/model/checkout/PaymentDetails.java index cadef3793..12c797714 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentDetails.java +++ b/src/main/java/com/adyen/model/checkout/PaymentDetails.java @@ -2,36 +2,45 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** PaymentDetails */ + +/** + * PaymentDetails + */ @JsonPropertyOrder({ PaymentDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, PaymentDetails.JSON_PROPERTY_TYPE }) + public class PaymentDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; - /** The payment method type. */ + /** + * The payment method type. + */ public enum TypeEnum { + ALIPAY(String.valueOf("alipay")), MULTIBANCO(String.valueOf("multibanco")), @@ -215,7 +224,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -236,11 +245,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -248,7 +253,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PaymentDetails() {} + public PaymentDetails() { + } /** * The checkout attempt identifier. @@ -263,7 +269,6 @@ public PaymentDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -296,7 +301,6 @@ public PaymentDetails type(TypeEnum type) { /** * The payment method type. - * * @return type The payment method type. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -316,7 +320,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this PaymentDetails object is equal to o. */ + /** + * Return true if this PaymentDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -326,8 +332,8 @@ public boolean equals(Object o) { return false; } PaymentDetails paymentDetails = (PaymentDetails) o; - return Objects.equals(this.checkoutAttemptId, paymentDetails.checkoutAttemptId) - && Objects.equals(this.type, paymentDetails.type); + return Objects.equals(this.checkoutAttemptId, paymentDetails.checkoutAttemptId) && + Objects.equals(this.type, paymentDetails.type); } @Override @@ -346,7 +352,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -355,7 +362,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentDetails given an JSON string * * @param jsonString JSON string @@ -365,12 +372,11 @@ private String toIndentedString(Object o) { public static PaymentDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentDetails.class); } - - /** - * Convert an instance of PaymentDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentDetailsRequest.java b/src/main/java/com/adyen/model/checkout/PaymentDetailsRequest.java index bd3f4651b..1c9c3f4ea 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentDetailsRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentDetailsRequest.java @@ -2,28 +2,40 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.DetailsRequestAuthenticationData; +import com.adyen.model.checkout.PaymentCompletionDetails; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** PaymentDetailsRequest */ + +/** + * PaymentDetailsRequest + */ @JsonPropertyOrder({ PaymentDetailsRequest.JSON_PROPERTY_AUTHENTICATION_DATA, PaymentDetailsRequest.JSON_PROPERTY_DETAILS, PaymentDetailsRequest.JSON_PROPERTY_PAYMENT_DATA, PaymentDetailsRequest.JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY }) + public class PaymentDetailsRequest { public static final String JSON_PROPERTY_AUTHENTICATION_DATA = "authenticationData"; private DetailsRequestAuthenticationData authenticationData; @@ -34,30 +46,27 @@ public class PaymentDetailsRequest { public static final String JSON_PROPERTY_PAYMENT_DATA = "paymentData"; private String paymentData; - public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = - "threeDSAuthenticationOnly"; - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = "threeDSAuthenticationOnly"; + @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. private Boolean threeDSAuthenticationOnly; - public PaymentDetailsRequest() {} + public PaymentDetailsRequest() { + } /** * authenticationData * - * @param authenticationData + * @param authenticationData * @return the current {@code PaymentDetailsRequest} instance, allowing for method chaining */ - public PaymentDetailsRequest authenticationData( - DetailsRequestAuthenticationData authenticationData) { + public PaymentDetailsRequest authenticationData(DetailsRequestAuthenticationData authenticationData) { this.authenticationData = authenticationData; return this; } /** * Get authenticationData - * - * @return authenticationData + * @return authenticationData */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,7 +77,7 @@ public DetailsRequestAuthenticationData getAuthenticationData() { /** * authenticationData * - * @param authenticationData + * @param authenticationData */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,7 +88,7 @@ public void setAuthenticationData(DetailsRequestAuthenticationData authenticatio /** * details * - * @param details + * @param details * @return the current {@code PaymentDetailsRequest} instance, allowing for method chaining */ public PaymentDetailsRequest details(PaymentCompletionDetails details) { @@ -89,8 +98,7 @@ public PaymentDetailsRequest details(PaymentCompletionDetails details) { /** * Get details - * - * @return details + * @return details */ @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,7 +109,7 @@ public PaymentCompletionDetails getDetails() { /** * details * - * @param details + * @param details */ @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,20 +118,9 @@ public void setDetails(PaymentCompletionDetails details) { } /** - * Encoded payment data. For [authorizing a payment after using 3D Secure 2 - * Authentication-only](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only/#authorise-the-payment-with-adyen): - * If you received `resultCode`: **AuthenticationNotRequired** in the - * `/payments` response, use the `threeDSPaymentData` from the same response. - * If you received `resultCode`: **AuthenticationFinished** in the `/payments` - * response, use the `action.paymentData` from the same response. + * Encoded payment data. For [authorizing a payment after using 3D Secure 2 Authentication-only](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only/#authorise-the-payment-with-adyen): If you received `resultCode`: **AuthenticationNotRequired** in the `/payments` response, use the `threeDSPaymentData` from the same response. If you received `resultCode`: **AuthenticationFinished** in the `/payments` response, use the `action.paymentData` from the same response. * - * @param paymentData Encoded payment data. For [authorizing a payment after using 3D Secure 2 - * Authentication-only](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only/#authorise-the-payment-with-adyen): - * If you received `resultCode`: **AuthenticationNotRequired** in the - * `/payments` response, use the `threeDSPaymentData` from the same - * response. If you received `resultCode`: **AuthenticationFinished** in the - * `/payments` response, use the `action.paymentData` from the same - * response. + * @param paymentData Encoded payment data. For [authorizing a payment after using 3D Secure 2 Authentication-only](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only/#authorise-the-payment-with-adyen): If you received `resultCode`: **AuthenticationNotRequired** in the `/payments` response, use the `threeDSPaymentData` from the same response. If you received `resultCode`: **AuthenticationFinished** in the `/payments` response, use the `action.paymentData` from the same response. * @return the current {@code PaymentDetailsRequest} instance, allowing for method chaining */ public PaymentDetailsRequest paymentData(String paymentData) { @@ -132,20 +129,8 @@ public PaymentDetailsRequest paymentData(String paymentData) { } /** - * Encoded payment data. For [authorizing a payment after using 3D Secure 2 - * Authentication-only](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only/#authorise-the-payment-with-adyen): - * If you received `resultCode`: **AuthenticationNotRequired** in the - * `/payments` response, use the `threeDSPaymentData` from the same response. - * If you received `resultCode`: **AuthenticationFinished** in the `/payments` - * response, use the `action.paymentData` from the same response. - * - * @return paymentData Encoded payment data. For [authorizing a payment after using 3D Secure 2 - * Authentication-only](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only/#authorise-the-payment-with-adyen): - * If you received `resultCode`: **AuthenticationNotRequired** in the - * `/payments` response, use the `threeDSPaymentData` from the same - * response. If you received `resultCode`: **AuthenticationFinished** in the - * `/payments` response, use the `action.paymentData` from the same - * response. + * Encoded payment data. For [authorizing a payment after using 3D Secure 2 Authentication-only](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only/#authorise-the-payment-with-adyen): If you received `resultCode`: **AuthenticationNotRequired** in the `/payments` response, use the `threeDSPaymentData` from the same response. If you received `resultCode`: **AuthenticationFinished** in the `/payments` response, use the `action.paymentData` from the same response. + * @return paymentData Encoded payment data. For [authorizing a payment after using 3D Secure 2 Authentication-only](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only/#authorise-the-payment-with-adyen): If you received `resultCode`: **AuthenticationNotRequired** in the `/payments` response, use the `threeDSPaymentData` from the same response. If you received `resultCode`: **AuthenticationFinished** in the `/payments` response, use the `action.paymentData` from the same response. */ @JsonProperty(JSON_PROPERTY_PAYMENT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -154,20 +139,9 @@ public String getPaymentData() { } /** - * Encoded payment data. For [authorizing a payment after using 3D Secure 2 - * Authentication-only](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only/#authorise-the-payment-with-adyen): - * If you received `resultCode`: **AuthenticationNotRequired** in the - * `/payments` response, use the `threeDSPaymentData` from the same response. - * If you received `resultCode`: **AuthenticationFinished** in the `/payments` - * response, use the `action.paymentData` from the same response. + * Encoded payment data. For [authorizing a payment after using 3D Secure 2 Authentication-only](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only/#authorise-the-payment-with-adyen): If you received `resultCode`: **AuthenticationNotRequired** in the `/payments` response, use the `threeDSPaymentData` from the same response. If you received `resultCode`: **AuthenticationFinished** in the `/payments` response, use the `action.paymentData` from the same response. * - * @param paymentData Encoded payment data. For [authorizing a payment after using 3D Secure 2 - * Authentication-only](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only/#authorise-the-payment-with-adyen): - * If you received `resultCode`: **AuthenticationNotRequired** in the - * `/payments` response, use the `threeDSPaymentData` from the same - * response. If you received `resultCode`: **AuthenticationFinished** in the - * `/payments` response, use the `action.paymentData` from the same - * response. + * @param paymentData Encoded payment data. For [authorizing a payment after using 3D Secure 2 Authentication-only](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only/#authorise-the-payment-with-adyen): If you received `resultCode`: **AuthenticationNotRequired** in the `/payments` response, use the `threeDSPaymentData` from the same response. If you received `resultCode`: **AuthenticationFinished** in the `/payments` response, use the `action.paymentData` from the same response. */ @JsonProperty(JSON_PROPERTY_PAYMENT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,35 +150,26 @@ public void setPaymentData(String paymentData) { } /** - * Change the `authenticationOnly` indicator originally set in the `/payments` - * request. Only needs to be set if you want to modify the value set previously. + * Change the `authenticationOnly` indicator originally set in the `/payments` request. Only needs to be set if you want to modify the value set previously. * - * @param threeDSAuthenticationOnly Change the `authenticationOnly` indicator originally - * set in the `/payments` request. Only needs to be set if you want to modify the - * value set previously. + * @param threeDSAuthenticationOnly Change the `authenticationOnly` indicator originally set in the `/payments` request. Only needs to be set if you want to modify the value set previously. * @return the current {@code PaymentDetailsRequest} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` - * instead. + * + * @deprecated since Adyen Checkout API v69 + * Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. public PaymentDetailsRequest threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { this.threeDSAuthenticationOnly = threeDSAuthenticationOnly; return this; } /** - * Change the `authenticationOnly` indicator originally set in the `/payments` - * request. Only needs to be set if you want to modify the value set previously. - * - * @return threeDSAuthenticationOnly Change the `authenticationOnly` indicator - * originally set in the `/payments` request. Only needs to be set if you want to - * modify the value set previously. - * @deprecated // deprecated since Adyen Checkout API v69: Use - * `authenticationData.authenticationOnly` instead. + * Change the `authenticationOnly` indicator originally set in the `/payments` request. Only needs to be set if you want to modify the value set previously. + * @return threeDSAuthenticationOnly Change the `authenticationOnly` indicator originally set in the `/payments` request. Only needs to be set if you want to modify the value set previously. + * @deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getThreeDSAuthenticationOnly() { @@ -212,24 +177,23 @@ public Boolean getThreeDSAuthenticationOnly() { } /** - * Change the `authenticationOnly` indicator originally set in the `/payments` - * request. Only needs to be set if you want to modify the value set previously. + * Change the `authenticationOnly` indicator originally set in the `/payments` request. Only needs to be set if you want to modify the value set previously. + * + * @param threeDSAuthenticationOnly Change the `authenticationOnly` indicator originally set in the `/payments` request. Only needs to be set if you want to modify the value set previously. * - * @param threeDSAuthenticationOnly Change the `authenticationOnly` indicator originally - * set in the `/payments` request. Only needs to be set if you want to modify the - * value set previously. - * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` - * instead. + * @deprecated since Adyen Checkout API v69 + * Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { this.threeDSAuthenticationOnly = threeDSAuthenticationOnly; } - /** Return true if this PaymentDetailsRequest object is equal to o. */ + /** + * Return true if this PaymentDetailsRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -239,11 +203,10 @@ public boolean equals(Object o) { return false; } PaymentDetailsRequest paymentDetailsRequest = (PaymentDetailsRequest) o; - return Objects.equals(this.authenticationData, paymentDetailsRequest.authenticationData) - && Objects.equals(this.details, paymentDetailsRequest.details) - && Objects.equals(this.paymentData, paymentDetailsRequest.paymentData) - && Objects.equals( - this.threeDSAuthenticationOnly, paymentDetailsRequest.threeDSAuthenticationOnly); + return Objects.equals(this.authenticationData, paymentDetailsRequest.authenticationData) && + Objects.equals(this.details, paymentDetailsRequest.details) && + Objects.equals(this.paymentData, paymentDetailsRequest.paymentData) && + Objects.equals(this.threeDSAuthenticationOnly, paymentDetailsRequest.threeDSAuthenticationOnly); } @Override @@ -258,15 +221,14 @@ public String toString() { sb.append(" authenticationData: ").append(toIndentedString(authenticationData)).append("\n"); sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append(" paymentData: ").append(toIndentedString(paymentData)).append("\n"); - sb.append(" threeDSAuthenticationOnly: ") - .append(toIndentedString(threeDSAuthenticationOnly)) - .append("\n"); + sb.append(" threeDSAuthenticationOnly: ").append(toIndentedString(threeDSAuthenticationOnly)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -275,23 +237,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentDetailsRequest given an JSON string * * @param jsonString JSON string * @return An instance of PaymentDetailsRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentDetailsRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentDetailsRequest */ public static PaymentDetailsRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentDetailsRequest.class); } - - /** - * Convert an instance of PaymentDetailsRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentDetailsRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentDetailsResponse.java b/src/main/java/com/adyen/model/checkout/PaymentDetailsResponse.java index 9e1bffc57..b916856f8 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentDetailsResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentDetailsResponse.java @@ -2,28 +2,40 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Amount; +import com.adyen.model.checkout.CheckoutOrderResponse; +import com.adyen.model.checkout.FraudResult; +import com.adyen.model.checkout.PaymentDetailsResponseAction; +import com.adyen.model.checkout.ResponsePaymentMethod; +import com.adyen.model.checkout.ThreeDS2ResponseData; +import com.adyen.model.checkout.ThreeDS2Result; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PaymentDetailsResponse */ +/** + * PaymentDetailsResponse + */ @JsonPropertyOrder({ PaymentDetailsResponse.JSON_PROPERTY_ACTION, PaymentDetailsResponse.JSON_PROPERTY_ADDITIONAL_DATA, @@ -42,6 +54,7 @@ PaymentDetailsResponse.JSON_PROPERTY_THREE_D_S2_RESULT, PaymentDetailsResponse.JSON_PROPERTY_THREE_D_S_PAYMENT_DATA }) + public class PaymentDetailsResponse { public static final String JSON_PROPERTY_ACTION = "action"; private PaymentDetailsResponseAction action; @@ -77,35 +90,10 @@ public class PaymentDetailsResponse { private String refusalReasonCode; /** - * The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. - * Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – - * The transaction does not require 3D Secure authentication. Returned for [standalone - * authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * * **Authorised** – The payment was successfully authorised. This state serves as an indicator - * to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – - * Indicates the payment has been cancelled (either by the shopper or the merchant) before - * processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires - * further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 - * transactions. * **Error** – There was an error when the payment was being processed. The reason - * is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – - * The issuer requires the shopper's device fingerprint before the payment can be - * authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment - * has been authorised for a partial amount. This happens for card payments when the merchant - * supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – - * Indicates that it is not possible to obtain the final status of the payment. This can happen if - * the systems providing final status information for the payment are unavailable, or if the - * shopper needs to take further action to complete the payment. * **PresentToShopper** – - * Indicates that the response contains additional information that you need to present to a - * shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment - * has successfully been received by Adyen, and will be processed. This is the initial state for - * all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external - * web page or app to complete the authorisation. * **Refused** – Indicates the payment was - * refused. The reason is given in the `refusalReason` field. This is a final state. + * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. */ public enum ResultCodeEnum { + AUTHENTICATIONFINISHED(String.valueOf("AuthenticationFinished")), AUTHENTICATIONNOTREQUIRED(String.valueOf("AuthenticationNotRequired")), @@ -139,7 +127,7 @@ public enum ResultCodeEnum { private String value; ResultCodeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -160,11 +148,7 @@ public static ResultCodeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ResultCodeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ResultCodeEnum.values())); + LOG.warning("ResultCodeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResultCodeEnum.values())); return null; } } @@ -184,12 +168,13 @@ public static ResultCodeEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_PAYMENT_DATA = "threeDSPaymentData"; private String threeDSPaymentData; - public PaymentDetailsResponse() {} + public PaymentDetailsResponse() { + } /** * action * - * @param action + * @param action * @return the current {@code PaymentDetailsResponse} instance, allowing for method chaining */ public PaymentDetailsResponse action(PaymentDetailsResponseAction action) { @@ -199,8 +184,7 @@ public PaymentDetailsResponse action(PaymentDetailsResponseAction action) { /** * Get action - * - * @return action + * @return action */ @JsonProperty(JSON_PROPERTY_ACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,7 +195,7 @@ public PaymentDetailsResponseAction getAction() { /** * action * - * @param action + * @param action */ @JsonProperty(JSON_PROPERTY_ACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -220,12 +204,9 @@ public void setAction(PaymentDetailsResponseAction action) { } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first: Go to **Customer Area** > **Developers** > - * **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. * @return the current {@code PaymentDetailsResponse} instance, allowing for method chaining */ public PaymentDetailsResponse additionalData(Map additionalData) { @@ -242,12 +223,8 @@ public PaymentDetailsResponse putAdditionalDataItem(String key, String additiona } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first: Go to **Customer Area** > **Developers** > **Additional data**. - * - * @return additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first: Go to **Customer Area** > **Developers** > - * **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * @return additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -256,12 +233,9 @@ public Map getAdditionalData() { } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first: Go to **Customer Area** > **Developers** > - * **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -272,7 +246,7 @@ public void setAdditionalData(Map additionalData) { /** * amount * - * @param amount + * @param amount * @return the current {@code PaymentDetailsResponse} instance, allowing for method chaining */ public PaymentDetailsResponse amount(Amount amount) { @@ -282,8 +256,7 @@ public PaymentDetailsResponse amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -294,7 +267,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -315,7 +288,6 @@ public PaymentDetailsResponse donationToken(String donationToken) { /** * Donation Token containing payment details for Adyen Giving. - * * @return donationToken Donation Token containing payment details for Adyen Giving. */ @JsonProperty(JSON_PROPERTY_DONATION_TOKEN) @@ -338,7 +310,7 @@ public void setDonationToken(String donationToken) { /** * fraudResult * - * @param fraudResult + * @param fraudResult * @return the current {@code PaymentDetailsResponse} instance, allowing for method chaining */ public PaymentDetailsResponse fraudResult(FraudResult fraudResult) { @@ -348,8 +320,7 @@ public PaymentDetailsResponse fraudResult(FraudResult fraudResult) { /** * Get fraudResult - * - * @return fraudResult + * @return fraudResult */ @JsonProperty(JSON_PROPERTY_FRAUD_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -360,7 +331,7 @@ public FraudResult getFraudResult() { /** * fraudResult * - * @param fraudResult + * @param fraudResult */ @JsonProperty(JSON_PROPERTY_FRAUD_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -381,7 +352,6 @@ public PaymentDetailsResponse merchantReference(String merchantReference) { /** * The reference used during the /payments request. - * * @return merchantReference The reference used during the /payments request. */ @JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCE) @@ -404,7 +374,7 @@ public void setMerchantReference(String merchantReference) { /** * order * - * @param order + * @param order * @return the current {@code PaymentDetailsResponse} instance, allowing for method chaining */ public PaymentDetailsResponse order(CheckoutOrderResponse order) { @@ -414,8 +384,7 @@ public PaymentDetailsResponse order(CheckoutOrderResponse order) { /** * Get order - * - * @return order + * @return order */ @JsonProperty(JSON_PROPERTY_ORDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -426,7 +395,7 @@ public CheckoutOrderResponse getOrder() { /** * order * - * @param order + * @param order */ @JsonProperty(JSON_PROPERTY_ORDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -437,7 +406,7 @@ public void setOrder(CheckoutOrderResponse order) { /** * paymentMethod * - * @param paymentMethod + * @param paymentMethod * @return the current {@code PaymentDetailsResponse} instance, allowing for method chaining */ public PaymentDetailsResponse paymentMethod(ResponsePaymentMethod paymentMethod) { @@ -447,8 +416,7 @@ public PaymentDetailsResponse paymentMethod(ResponsePaymentMethod paymentMethod) /** * Get paymentMethod - * - * @return paymentMethod + * @return paymentMethod */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -459,7 +427,7 @@ public ResponsePaymentMethod getPaymentMethod() { /** * paymentMethod * - * @param paymentMethod + * @param paymentMethod */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -468,12 +436,9 @@ public void setPaymentMethod(ResponsePaymentMethod paymentMethod) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value - * is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character string reference associated with the - * transaction/request. This value is globally unique; quote it when communicating with us - * about this request. + * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. * @return the current {@code PaymentDetailsResponse} instance, allowing for method chaining */ public PaymentDetailsResponse pspReference(String pspReference) { @@ -482,12 +447,8 @@ public PaymentDetailsResponse pspReference(String pspReference) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value - * is globally unique; quote it when communicating with us about this request. - * - * @return pspReference Adyen's 16-character string reference associated with the - * transaction/request. This value is globally unique; quote it when communicating with us - * about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @return pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -496,12 +457,9 @@ public String getPspReference() { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value - * is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character string reference associated with the - * transaction/request. This value is globally unique; quote it when communicating with us - * about this request. + * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -510,17 +468,9 @@ public void setPspReference(String pspReference) { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this - * field holds Adyen's mapped reason for the refusal or a description of the error. When a - * transaction fails, the authorisation response includes `resultCode` and - * `refusalReason` values. For more information, see [Refusal - * reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). * - * @param refusalReason If the payment's authorisation is refused or an error occurs during - * authorisation, this field holds Adyen's mapped reason for the refusal or a description - * of the error. When a transaction fails, the authorisation response includes - * `resultCode` and `refusalReason` values. For more information, see - * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @param refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). * @return the current {@code PaymentDetailsResponse} instance, allowing for method chaining */ public PaymentDetailsResponse refusalReason(String refusalReason) { @@ -529,17 +479,8 @@ public PaymentDetailsResponse refusalReason(String refusalReason) { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this - * field holds Adyen's mapped reason for the refusal or a description of the error. When a - * transaction fails, the authorisation response includes `resultCode` and - * `refusalReason` values. For more information, see [Refusal - * reasons](https://docs.adyen.com/development-resources/refusal-reasons). - * - * @return refusalReason If the payment's authorisation is refused or an error occurs during - * authorisation, this field holds Adyen's mapped reason for the refusal or a description - * of the error. When a transaction fails, the authorisation response includes - * `resultCode` and `refusalReason` values. For more information, see - * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @return refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -548,17 +489,9 @@ public String getRefusalReason() { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this - * field holds Adyen's mapped reason for the refusal or a description of the error. When a - * transaction fails, the authorisation response includes `resultCode` and - * `refusalReason` values. For more information, see [Refusal - * reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). * - * @param refusalReason If the payment's authorisation is refused or an error occurs during - * authorisation, this field holds Adyen's mapped reason for the refusal or a description - * of the error. When a transaction fails, the authorisation response includes - * `resultCode` and `refusalReason` values. For more information, see - * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @param refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -567,12 +500,9 @@ public void setRefusalReason(String refusalReason) { } /** - * Code that specifies the refusal reason. For more information, see [Authorisation refusal - * reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * Code that specifies the refusal reason. For more information, see [Authorisation refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). * - * @param refusalReasonCode Code that specifies the refusal reason. For more information, see - * [Authorisation refusal - * reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @param refusalReasonCode Code that specifies the refusal reason. For more information, see [Authorisation refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). * @return the current {@code PaymentDetailsResponse} instance, allowing for method chaining */ public PaymentDetailsResponse refusalReasonCode(String refusalReasonCode) { @@ -581,12 +511,8 @@ public PaymentDetailsResponse refusalReasonCode(String refusalReasonCode) { } /** - * Code that specifies the refusal reason. For more information, see [Authorisation refusal - * reasons](https://docs.adyen.com/development-resources/refusal-reasons). - * - * @return refusalReasonCode Code that specifies the refusal reason. For more information, see - * [Authorisation refusal - * reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * Code that specifies the refusal reason. For more information, see [Authorisation refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @return refusalReasonCode Code that specifies the refusal reason. For more information, see [Authorisation refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -595,12 +521,9 @@ public String getRefusalReasonCode() { } /** - * Code that specifies the refusal reason. For more information, see [Authorisation refusal - * reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * Code that specifies the refusal reason. For more information, see [Authorisation refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). * - * @param refusalReasonCode Code that specifies the refusal reason. For more information, see - * [Authorisation refusal - * reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @param refusalReasonCode Code that specifies the refusal reason. For more information, see [Authorisation refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -609,62 +532,9 @@ public void setRefusalReasonCode(String refusalReasonCode) { } /** - * The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. - * Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – - * The transaction does not require 3D Secure authentication. Returned for [standalone - * authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * * **Authorised** – The payment was successfully authorised. This state serves as an indicator - * to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – - * Indicates the payment has been cancelled (either by the shopper or the merchant) before - * processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires - * further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 - * transactions. * **Error** – There was an error when the payment was being processed. The reason - * is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – - * The issuer requires the shopper's device fingerprint before the payment can be - * authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment - * has been authorised for a partial amount. This happens for card payments when the merchant - * supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – - * Indicates that it is not possible to obtain the final status of the payment. This can happen if - * the systems providing final status information for the payment are unavailable, or if the - * shopper needs to take further action to complete the payment. * **PresentToShopper** – - * Indicates that the response contains additional information that you need to present to a - * shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment - * has successfully been received by Adyen, and will be processed. This is the initial state for - * all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external - * web page or app to complete the authorisation. * **Refused** – Indicates the payment was - * refused. The reason is given in the `refusalReason` field. This is a final state. + * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. * - * @param resultCode The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure - * 2. Returned for 3D Secure 2 authentication-only transactions. * - * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. - * Returned for [standalone authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * * **Authorised** – The payment was successfully authorised. This state serves as an - * indicator to proceed with the delivery of goods and services. This is a final state. * - * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the - * merchant) before processing was completed. This is a final state. * **ChallengeShopper** – - * The issuer requires further shopper interaction before the payment can be authenticated. - * Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment - * was being processed. The reason is given in the `refusalReason` field. This is a - * final state. * **IdentifyShopper** – The issuer requires the shopper's device - * fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. - * * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This - * happens for card payments when the merchant supports Partial Authorisations and the - * cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to - * obtain the final status of the payment. This can happen if the systems providing final - * status information for the payment are unavailable, or if the shopper needs to take further - * action to complete the payment. * **PresentToShopper** – Indicates that the response - * contains additional information that you need to present to a shopper, so that they can use - * it to complete a payment. * **Received** – Indicates the payment has successfully been - * received by Adyen, and will be processed. This is the initial state for all payments. * - * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or - * app to complete the authorisation. * **Refused** – Indicates the payment was refused. The - * reason is given in the `refusalReason` field. This is a final state. + * @param resultCode The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. * @return the current {@code PaymentDetailsResponse} instance, allowing for method chaining */ public PaymentDetailsResponse resultCode(ResultCodeEnum resultCode) { @@ -673,62 +543,8 @@ public PaymentDetailsResponse resultCode(ResultCodeEnum resultCode) { } /** - * The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. - * Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – - * The transaction does not require 3D Secure authentication. Returned for [standalone - * authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * * **Authorised** – The payment was successfully authorised. This state serves as an indicator - * to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – - * Indicates the payment has been cancelled (either by the shopper or the merchant) before - * processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires - * further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 - * transactions. * **Error** – There was an error when the payment was being processed. The reason - * is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – - * The issuer requires the shopper's device fingerprint before the payment can be - * authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment - * has been authorised for a partial amount. This happens for card payments when the merchant - * supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – - * Indicates that it is not possible to obtain the final status of the payment. This can happen if - * the systems providing final status information for the payment are unavailable, or if the - * shopper needs to take further action to complete the payment. * **PresentToShopper** – - * Indicates that the response contains additional information that you need to present to a - * shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment - * has successfully been received by Adyen, and will be processed. This is the initial state for - * all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external - * web page or app to complete the authorisation. * **Refused** – Indicates the payment was - * refused. The reason is given in the `refusalReason` field. This is a final state. - * - * @return resultCode The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure - * 2. Returned for 3D Secure 2 authentication-only transactions. * - * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. - * Returned for [standalone authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * * **Authorised** – The payment was successfully authorised. This state serves as an - * indicator to proceed with the delivery of goods and services. This is a final state. * - * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the - * merchant) before processing was completed. This is a final state. * **ChallengeShopper** – - * The issuer requires further shopper interaction before the payment can be authenticated. - * Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment - * was being processed. The reason is given in the `refusalReason` field. This is a - * final state. * **IdentifyShopper** – The issuer requires the shopper's device - * fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. - * * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This - * happens for card payments when the merchant supports Partial Authorisations and the - * cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to - * obtain the final status of the payment. This can happen if the systems providing final - * status information for the payment are unavailable, or if the shopper needs to take further - * action to complete the payment. * **PresentToShopper** – Indicates that the response - * contains additional information that you need to present to a shopper, so that they can use - * it to complete a payment. * **Received** – Indicates the payment has successfully been - * received by Adyen, and will be processed. This is the initial state for all payments. * - * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or - * app to complete the authorisation. * **Refused** – Indicates the payment was refused. The - * reason is given in the `refusalReason` field. This is a final state. + * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + * @return resultCode The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -737,62 +553,9 @@ public ResultCodeEnum getResultCode() { } /** - * The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. - * Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – - * The transaction does not require 3D Secure authentication. Returned for [standalone - * authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * * **Authorised** – The payment was successfully authorised. This state serves as an indicator - * to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – - * Indicates the payment has been cancelled (either by the shopper or the merchant) before - * processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires - * further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 - * transactions. * **Error** – There was an error when the payment was being processed. The reason - * is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – - * The issuer requires the shopper's device fingerprint before the payment can be - * authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment - * has been authorised for a partial amount. This happens for card payments when the merchant - * supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – - * Indicates that it is not possible to obtain the final status of the payment. This can happen if - * the systems providing final status information for the payment are unavailable, or if the - * shopper needs to take further action to complete the payment. * **PresentToShopper** – - * Indicates that the response contains additional information that you need to present to a - * shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment - * has successfully been received by Adyen, and will be processed. This is the initial state for - * all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external - * web page or app to complete the authorisation. * **Refused** – Indicates the payment was - * refused. The reason is given in the `refusalReason` field. This is a final state. + * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. * - * @param resultCode The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure - * 2. Returned for 3D Secure 2 authentication-only transactions. * - * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. - * Returned for [standalone authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * * **Authorised** – The payment was successfully authorised. This state serves as an - * indicator to proceed with the delivery of goods and services. This is a final state. * - * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the - * merchant) before processing was completed. This is a final state. * **ChallengeShopper** – - * The issuer requires further shopper interaction before the payment can be authenticated. - * Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment - * was being processed. The reason is given in the `refusalReason` field. This is a - * final state. * **IdentifyShopper** – The issuer requires the shopper's device - * fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. - * * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This - * happens for card payments when the merchant supports Partial Authorisations and the - * cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to - * obtain the final status of the payment. This can happen if the systems providing final - * status information for the payment are unavailable, or if the shopper needs to take further - * action to complete the payment. * **PresentToShopper** – Indicates that the response - * contains additional information that you need to present to a shopper, so that they can use - * it to complete a payment. * **Received** – Indicates the payment has successfully been - * received by Adyen, and will be processed. This is the initial state for all payments. * - * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or - * app to complete the authorisation. * **Refused** – Indicates the payment was refused. The - * reason is given in the `refusalReason` field. This is a final state. + * @param resultCode The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -813,7 +576,6 @@ public PaymentDetailsResponse shopperLocale(String shopperLocale) { /** * The shopperLocale. - * * @return shopperLocale The shopperLocale. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @@ -836,7 +598,7 @@ public void setShopperLocale(String shopperLocale) { /** * threeDS2ResponseData * - * @param threeDS2ResponseData + * @param threeDS2ResponseData * @return the current {@code PaymentDetailsResponse} instance, allowing for method chaining */ public PaymentDetailsResponse threeDS2ResponseData(ThreeDS2ResponseData threeDS2ResponseData) { @@ -846,8 +608,7 @@ public PaymentDetailsResponse threeDS2ResponseData(ThreeDS2ResponseData threeDS2 /** * Get threeDS2ResponseData - * - * @return threeDS2ResponseData + * @return threeDS2ResponseData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_RESPONSE_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -858,7 +619,7 @@ public ThreeDS2ResponseData getThreeDS2ResponseData() { /** * threeDS2ResponseData * - * @param threeDS2ResponseData + * @param threeDS2ResponseData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_RESPONSE_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -869,7 +630,7 @@ public void setThreeDS2ResponseData(ThreeDS2ResponseData threeDS2ResponseData) { /** * threeDS2Result * - * @param threeDS2Result + * @param threeDS2Result * @return the current {@code PaymentDetailsResponse} instance, allowing for method chaining */ public PaymentDetailsResponse threeDS2Result(ThreeDS2Result threeDS2Result) { @@ -879,8 +640,7 @@ public PaymentDetailsResponse threeDS2Result(ThreeDS2Result threeDS2Result) { /** * Get threeDS2Result - * - * @return threeDS2Result + * @return threeDS2Result */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -891,7 +651,7 @@ public ThreeDS2Result getThreeDS2Result() { /** * threeDS2Result * - * @param threeDS2Result + * @param threeDS2Result */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -900,11 +660,9 @@ public void setThreeDS2Result(ThreeDS2Result threeDS2Result) { } /** - * When non-empty, contains a value that you must submit to the `/payments/details` - * endpoint as `paymentData`. + * When non-empty, contains a value that you must submit to the `/payments/details` endpoint as `paymentData`. * - * @param threeDSPaymentData When non-empty, contains a value that you must submit to the - * `/payments/details` endpoint as `paymentData`. + * @param threeDSPaymentData When non-empty, contains a value that you must submit to the `/payments/details` endpoint as `paymentData`. * @return the current {@code PaymentDetailsResponse} instance, allowing for method chaining */ public PaymentDetailsResponse threeDSPaymentData(String threeDSPaymentData) { @@ -913,11 +671,8 @@ public PaymentDetailsResponse threeDSPaymentData(String threeDSPaymentData) { } /** - * When non-empty, contains a value that you must submit to the `/payments/details` - * endpoint as `paymentData`. - * - * @return threeDSPaymentData When non-empty, contains a value that you must submit to the - * `/payments/details` endpoint as `paymentData`. + * When non-empty, contains a value that you must submit to the `/payments/details` endpoint as `paymentData`. + * @return threeDSPaymentData When non-empty, contains a value that you must submit to the `/payments/details` endpoint as `paymentData`. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_PAYMENT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -926,11 +681,9 @@ public String getThreeDSPaymentData() { } /** - * When non-empty, contains a value that you must submit to the `/payments/details` - * endpoint as `paymentData`. + * When non-empty, contains a value that you must submit to the `/payments/details` endpoint as `paymentData`. * - * @param threeDSPaymentData When non-empty, contains a value that you must submit to the - * `/payments/details` endpoint as `paymentData`. + * @param threeDSPaymentData When non-empty, contains a value that you must submit to the `/payments/details` endpoint as `paymentData`. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_PAYMENT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -938,7 +691,9 @@ public void setThreeDSPaymentData(String threeDSPaymentData) { this.threeDSPaymentData = threeDSPaymentData; } - /** Return true if this PaymentDetailsResponse object is equal to o. */ + /** + * Return true if this PaymentDetailsResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -948,43 +703,27 @@ public boolean equals(Object o) { return false; } PaymentDetailsResponse paymentDetailsResponse = (PaymentDetailsResponse) o; - return Objects.equals(this.action, paymentDetailsResponse.action) - && Objects.equals(this.additionalData, paymentDetailsResponse.additionalData) - && Objects.equals(this.amount, paymentDetailsResponse.amount) - && Objects.equals(this.donationToken, paymentDetailsResponse.donationToken) - && Objects.equals(this.fraudResult, paymentDetailsResponse.fraudResult) - && Objects.equals(this.merchantReference, paymentDetailsResponse.merchantReference) - && Objects.equals(this.order, paymentDetailsResponse.order) - && Objects.equals(this.paymentMethod, paymentDetailsResponse.paymentMethod) - && Objects.equals(this.pspReference, paymentDetailsResponse.pspReference) - && Objects.equals(this.refusalReason, paymentDetailsResponse.refusalReason) - && Objects.equals(this.refusalReasonCode, paymentDetailsResponse.refusalReasonCode) - && Objects.equals(this.resultCode, paymentDetailsResponse.resultCode) - && Objects.equals(this.shopperLocale, paymentDetailsResponse.shopperLocale) - && Objects.equals(this.threeDS2ResponseData, paymentDetailsResponse.threeDS2ResponseData) - && Objects.equals(this.threeDS2Result, paymentDetailsResponse.threeDS2Result) - && Objects.equals(this.threeDSPaymentData, paymentDetailsResponse.threeDSPaymentData); + return Objects.equals(this.action, paymentDetailsResponse.action) && + Objects.equals(this.additionalData, paymentDetailsResponse.additionalData) && + Objects.equals(this.amount, paymentDetailsResponse.amount) && + Objects.equals(this.donationToken, paymentDetailsResponse.donationToken) && + Objects.equals(this.fraudResult, paymentDetailsResponse.fraudResult) && + Objects.equals(this.merchantReference, paymentDetailsResponse.merchantReference) && + Objects.equals(this.order, paymentDetailsResponse.order) && + Objects.equals(this.paymentMethod, paymentDetailsResponse.paymentMethod) && + Objects.equals(this.pspReference, paymentDetailsResponse.pspReference) && + Objects.equals(this.refusalReason, paymentDetailsResponse.refusalReason) && + Objects.equals(this.refusalReasonCode, paymentDetailsResponse.refusalReasonCode) && + Objects.equals(this.resultCode, paymentDetailsResponse.resultCode) && + Objects.equals(this.shopperLocale, paymentDetailsResponse.shopperLocale) && + Objects.equals(this.threeDS2ResponseData, paymentDetailsResponse.threeDS2ResponseData) && + Objects.equals(this.threeDS2Result, paymentDetailsResponse.threeDS2Result) && + Objects.equals(this.threeDSPaymentData, paymentDetailsResponse.threeDSPaymentData); } @Override public int hashCode() { - return Objects.hash( - action, - additionalData, - amount, - donationToken, - fraudResult, - merchantReference, - order, - paymentMethod, - pspReference, - refusalReason, - refusalReasonCode, - resultCode, - shopperLocale, - threeDS2ResponseData, - threeDS2Result, - threeDSPaymentData); + return Objects.hash(action, additionalData, amount, donationToken, fraudResult, merchantReference, order, paymentMethod, pspReference, refusalReason, refusalReasonCode, resultCode, shopperLocale, threeDS2ResponseData, threeDS2Result, threeDSPaymentData); } @Override @@ -1004,9 +743,7 @@ public String toString() { sb.append(" refusalReasonCode: ").append(toIndentedString(refusalReasonCode)).append("\n"); sb.append(" resultCode: ").append(toIndentedString(resultCode)).append("\n"); sb.append(" shopperLocale: ").append(toIndentedString(shopperLocale)).append("\n"); - sb.append(" threeDS2ResponseData: ") - .append(toIndentedString(threeDS2ResponseData)) - .append("\n"); + sb.append(" threeDS2ResponseData: ").append(toIndentedString(threeDS2ResponseData)).append("\n"); sb.append(" threeDS2Result: ").append(toIndentedString(threeDS2Result)).append("\n"); sb.append(" threeDSPaymentData: ").append(toIndentedString(threeDSPaymentData)).append("\n"); sb.append("}"); @@ -1014,7 +751,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1023,23 +761,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentDetailsResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaymentDetailsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentDetailsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentDetailsResponse */ public static PaymentDetailsResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentDetailsResponse.class); } - - /** - * Convert an instance of PaymentDetailsResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentDetailsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentDetailsResponseAction.java b/src/main/java/com/adyen/model/checkout/PaymentDetailsResponseAction.java index 2ee936ea4..2c17642bb 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentDetailsResponseAction.java +++ b/src/main/java/com/adyen/model/checkout/PaymentDetailsResponseAction.java @@ -2,19 +2,44 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.CheckoutThreeDS2Action; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + +import com.fasterxml.jackson.core.type.TypeReference; + +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.Response; +import java.io.IOException; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; + import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; +import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -24,181 +49,167 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import jakarta.ws.rs.core.GenericType; -import java.io.IOException; -import java.util.*; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashSet; -import java.util.logging.Level; -import java.util.logging.Logger; -@JsonDeserialize( - using = PaymentDetailsResponseAction.PaymentDetailsResponseActionDeserializer.class) + +@JsonDeserialize(using = PaymentDetailsResponseAction.PaymentDetailsResponseActionDeserializer.class) @JsonSerialize(using = PaymentDetailsResponseAction.PaymentDetailsResponseActionSerializer.class) public class PaymentDetailsResponseAction extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(PaymentDetailsResponseAction.class.getName()); + private static final Logger log = Logger.getLogger(PaymentDetailsResponseAction.class.getName()); - public static class PaymentDetailsResponseActionSerializer - extends StdSerializer { - public PaymentDetailsResponseActionSerializer(Class t) { - super(t); + public static class PaymentDetailsResponseActionSerializer extends StdSerializer { + public PaymentDetailsResponseActionSerializer(Class t) { + super(t); + } + + public PaymentDetailsResponseActionSerializer() { + this(null); + } + + @Override + public void serialize(PaymentDetailsResponseAction value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); + } + } + + public static class PaymentDetailsResponseActionDeserializer extends StdDeserializer { + public PaymentDetailsResponseActionDeserializer() { + this(PaymentDetailsResponseAction.class); + } + + public PaymentDetailsResponseActionDeserializer(Class vc) { + super(vc); + } + + @Override + public PaymentDetailsResponseAction deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize CheckoutThreeDS2Action + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(CheckoutThreeDS2Action.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutThreeDS2Action.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CheckoutThreeDS2Action'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CheckoutThreeDS2Action'", e); + } + + if (match == 1) { + PaymentDetailsResponseAction ret = new PaymentDetailsResponseAction(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException(String.format("Failed deserialization for PaymentDetailsResponseAction: %d classes match result, expected 1", match)); + } + + /** + * Handle deserialization of the 'null' value. + */ + @Override + public PaymentDetailsResponseAction getNullValue(DeserializationContext ctxt) throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "PaymentDetailsResponseAction cannot be null"); + } } - public PaymentDetailsResponseActionSerializer() { - this(null); + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public PaymentDetailsResponseAction() { + super("oneOf", Boolean.FALSE); } - @Override - public void serialize( - PaymentDetailsResponseAction value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + public PaymentDetailsResponseAction(CheckoutThreeDS2Action o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } - } - public static class PaymentDetailsResponseActionDeserializer - extends StdDeserializer { - public PaymentDetailsResponseActionDeserializer() { - this(PaymentDetailsResponseAction.class); + static { + schemas.put("CheckoutThreeDS2Action", new GenericType() { + }); + JSON.registerDescendants(PaymentDetailsResponseAction.class, Collections.unmodifiableMap(schemas)); } - public PaymentDetailsResponseActionDeserializer(Class vc) { - super(vc); + @Override + public Map> getSchemas() { + return PaymentDetailsResponseAction.schemas; } + /** + * Set the instance that matches the oneOf child schema, check + * the instance parameter is valid against the oneOf child schemas: + * CheckoutThreeDS2Action + * + * It could be an instance of the 'oneOf' schemas. + * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). + */ @Override - public PaymentDetailsResponseAction deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize CheckoutThreeDS2Action - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(CheckoutThreeDS2Action.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutThreeDS2Action.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CheckoutThreeDS2Action'"); - } + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(CheckoutThreeDS2Action.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CheckoutThreeDS2Action'", e); - } - - if (match == 1) { - PaymentDetailsResponseAction ret = new PaymentDetailsResponseAction(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for PaymentDetailsResponseAction: %d classes match result, expected 1", - match)); + + throw new RuntimeException("Invalid instance type. Must be CheckoutThreeDS2Action"); } - /** Handle deserialization of the 'null' value. */ + /** + * Get the actual instance, which can be the following: + * CheckoutThreeDS2Action + * + * @return The actual instance (CheckoutThreeDS2Action) + */ @Override - public PaymentDetailsResponseAction getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "PaymentDetailsResponseAction cannot be null"); + public Object getActualInstance() { + return super.getActualInstance(); } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public PaymentDetailsResponseAction() { - super("oneOf", Boolean.FALSE); - } - - public PaymentDetailsResponseAction(CheckoutThreeDS2Action o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("CheckoutThreeDS2Action", new GenericType() {}); - JSON.registerDescendants( - PaymentDetailsResponseAction.class, Collections.unmodifiableMap(schemas)); - } - - @Override - public Map> getSchemas() { - return PaymentDetailsResponseAction.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: CheckoutThreeDS2Action - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a - * composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(CheckoutThreeDS2Action.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + + /** + * Get the actual instance of `CheckoutThreeDS2Action`. If the actual instance is not `CheckoutThreeDS2Action`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CheckoutThreeDS2Action` + * @throws ClassCastException if the instance is not `CheckoutThreeDS2Action` + */ + public CheckoutThreeDS2Action getCheckoutThreeDS2Action() throws ClassCastException { + return (CheckoutThreeDS2Action)super.getActualInstance(); + } + + + /** + * Create an instance of PaymentDetailsResponseAction given an JSON string + * + * @param jsonString JSON string + * @return An instance of PaymentDetailsResponseAction + * @throws IOException if the JSON string is invalid with respect to PaymentDetailsResponseAction + */ + public static PaymentDetailsResponseAction fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, PaymentDetailsResponseAction.class); + } + + /** + * Convert an instance of PaymentDetailsResponseAction to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); } - throw new RuntimeException("Invalid instance type. Must be CheckoutThreeDS2Action"); - } - - /** - * Get the actual instance, which can be the following: CheckoutThreeDS2Action - * - * @return The actual instance (CheckoutThreeDS2Action) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `CheckoutThreeDS2Action`. If the actual instance is not - * `CheckoutThreeDS2Action`, the ClassCastException will be thrown. - * - * @return The actual instance of `CheckoutThreeDS2Action` - * @throws ClassCastException if the instance is not `CheckoutThreeDS2Action` - */ - public CheckoutThreeDS2Action getCheckoutThreeDS2Action() throws ClassCastException { - return (CheckoutThreeDS2Action) super.getActualInstance(); - } - - /** - * Create an instance of PaymentDetailsResponseAction given an JSON string - * - * @param jsonString JSON string - * @return An instance of PaymentDetailsResponseAction - * @throws IOException if the JSON string is invalid with respect to PaymentDetailsResponseAction - */ - public static PaymentDetailsResponseAction fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, PaymentDetailsResponseAction.class); - } - - /** - * Convert an instance of PaymentDetailsResponseAction to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); - } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentLinkRequest.java b/src/main/java/com/adyen/model/checkout/PaymentLinkRequest.java index 5d035c14d..f8f191337 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentLinkRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentLinkRequest.java @@ -2,32 +2,49 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Address; +import com.adyen.model.checkout.Amount; +import com.adyen.model.checkout.ApplicationInfo; +import com.adyen.model.checkout.CheckoutSessionThreeDS2RequestData; +import com.adyen.model.checkout.FundOrigin; +import com.adyen.model.checkout.FundRecipient; +import com.adyen.model.checkout.InstallmentOption; +import com.adyen.model.checkout.LineItem; +import com.adyen.model.checkout.Name; +import com.adyen.model.checkout.PlatformChargebackLogic; +import com.adyen.model.checkout.RiskData; +import com.adyen.model.checkout.Split; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.time.OffsetDateTime; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** PaymentLinkRequest */ + +/** + * PaymentLinkRequest + */ @JsonPropertyOrder({ PaymentLinkRequest.JSON_PROPERTY_ALLOWED_PAYMENT_METHODS, PaymentLinkRequest.JSON_PROPERTY_AMOUNT, @@ -72,6 +89,7 @@ PaymentLinkRequest.JSON_PROPERTY_THEME_ID, PaymentLinkRequest.JSON_PROPERTY_THREE_D_S2_REQUEST_DATA }) + public class PaymentLinkRequest { public static final String JSON_PROPERTY_ALLOWED_PAYMENT_METHODS = "allowedPaymentMethods"; private List allowedPaymentMethods; @@ -140,30 +158,22 @@ public class PaymentLinkRequest { private PlatformChargebackLogic platformChargebackLogic; /** - * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to - * **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a - * fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a - * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An - * unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. + * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ public enum RecurringProcessingModelEnum { + CARDONFILE(String.valueOf("CardOnFile")), SUBSCRIPTION(String.valueOf("Subscription")), UNSCHEDULEDCARDONFILE(String.valueOf("UnscheduledCardOnFile")); - private static final Logger LOG = - Logger.getLogger(RecurringProcessingModelEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(RecurringProcessingModelEnum.class.getName()); private String value; RecurringProcessingModelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -184,11 +194,7 @@ public static RecurringProcessingModelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "RecurringProcessingModelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(RecurringProcessingModelEnum.values())); + LOG.warning("RecurringProcessingModelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RecurringProcessingModelEnum.values())); return null; } } @@ -199,8 +205,11 @@ public static RecurringProcessingModelEnum fromValue(String value) { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - /** Gets or Sets requiredShopperFields */ + /** + * Gets or Sets requiredShopperFields + */ public enum RequiredShopperFieldsEnum { + BILLINGADDRESS(String.valueOf("billingAddress")), DELIVERYADDRESS(String.valueOf("deliveryAddress")), @@ -216,7 +225,7 @@ public enum RequiredShopperFieldsEnum { private String value; RequiredShopperFieldsEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -237,11 +246,7 @@ public static RequiredShopperFieldsEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "RequiredShopperFieldsEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(RequiredShopperFieldsEnum.values())); + LOG.warning("RequiredShopperFieldsEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RequiredShopperFieldsEnum.values())); return null; } } @@ -273,8 +278,7 @@ public static RequiredShopperFieldsEnum fromValue(String value) { public static final String JSON_PROPERTY_SHOPPER_STATEMENT = "shopperStatement"; private String shopperStatement; - public static final String JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON = - "showRemovePaymentMethodButton"; + public static final String JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON = "showRemovePaymentMethodButton"; private Boolean showRemovePaymentMethodButton; public static final String JSON_PROPERTY_SOCIAL_SECURITY_NUMBER = "socialSecurityNumber"; @@ -290,15 +294,10 @@ public static RequiredShopperFieldsEnum fromValue(String value) { private String store; /** - * Indicates if the details of the payment method will be stored for the shopper. Possible values: - * * **disabled** – No details will be stored (default). * **askForConsent** – If the - * `shopperReference` is provided, the UI lets the shopper choose if they want their - * payment details to be stored. * **enabled** – If the `shopperReference` is provided, - * the details will be stored without asking the shopper for consent. When set to - * **askForConsent** or **enabled**, you must also include the - * `recurringProcessingModel` parameter. + * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. When set to **askForConsent** or **enabled**, you must also include the `recurringProcessingModel` parameter. */ public enum StorePaymentMethodModeEnum { + ASKFORCONSENT(String.valueOf("askForConsent")), DISABLED(String.valueOf("disabled")), @@ -310,7 +309,7 @@ public enum StorePaymentMethodModeEnum { private String value; StorePaymentMethodModeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -331,11 +330,7 @@ public static StorePaymentMethodModeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StorePaymentMethodModeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StorePaymentMethodModeEnum.values())); + LOG.warning("StorePaymentMethodModeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StorePaymentMethodModeEnum.values())); return null; } } @@ -352,17 +347,13 @@ public static StorePaymentMethodModeEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S2_REQUEST_DATA = "threeDS2RequestData"; private CheckoutSessionThreeDS2RequestData threeDS2RequestData; - public PaymentLinkRequest() {} + public PaymentLinkRequest() { + } /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their - * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer - * to payment methods, use their [payment method - * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest allowedPaymentMethods(List allowedPaymentMethods) { @@ -379,14 +370,8 @@ public PaymentLinkRequest addAllowedPaymentMethodsItem(String allowedPaymentMeth } /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their - * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` - * - * @return allowedPaymentMethods List of payment methods to be presented to the shopper. To refer - * to payment methods, use their [payment method - * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @return allowedPaymentMethods List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -395,14 +380,9 @@ public List getAllowedPaymentMethods() { } /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their - * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer - * to payment methods, use their [payment method - * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -413,7 +393,7 @@ public void setAllowedPaymentMethods(List allowedPaymentMethods) { /** * amount * - * @param amount + * @param amount * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest amount(Amount amount) { @@ -423,8 +403,7 @@ public PaymentLinkRequest amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -435,7 +414,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -446,7 +425,7 @@ public void setAmount(Amount amount) { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest applicationInfo(ApplicationInfo applicationInfo) { @@ -456,8 +435,7 @@ public PaymentLinkRequest applicationInfo(ApplicationInfo applicationInfo) { /** * Get applicationInfo - * - * @return applicationInfo + * @return applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -468,7 +446,7 @@ public ApplicationInfo getApplicationInfo() { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -479,7 +457,7 @@ public void setApplicationInfo(ApplicationInfo applicationInfo) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest billingAddress(Address billingAddress) { @@ -489,8 +467,7 @@ public PaymentLinkRequest billingAddress(Address billingAddress) { /** * Get billingAddress - * - * @return billingAddress + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -501,7 +478,7 @@ public Address getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -510,14 +487,9 @@ public void setBillingAddress(Address billingAddress) { } /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their - * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to - * payment methods, use their [payment method - * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest blockedPaymentMethods(List blockedPaymentMethods) { @@ -534,14 +506,8 @@ public PaymentLinkRequest addBlockedPaymentMethodsItem(String blockedPaymentMeth } /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their - * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` - * - * @return blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer - * to payment methods, use their [payment method - * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @return blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_BLOCKED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -550,14 +516,9 @@ public List getBlockedPaymentMethods() { } /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their - * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to - * payment methods, use their [payment method - * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_BLOCKED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -568,8 +529,7 @@ public void setBlockedPaymentMethods(List blockedPaymentMethods) { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, - * specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest captureDelayHours(Integer captureDelayHours) { @@ -579,9 +539,7 @@ public PaymentLinkRequest captureDelayHours(Integer captureDelayHours) { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. - * - * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, - * specified in hours. + * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -592,8 +550,7 @@ public Integer getCaptureDelayHours() { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, - * specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -614,7 +571,6 @@ public PaymentLinkRequest countryCode(String countryCode) { /** * The shopper's two-letter country code. - * * @return countryCode The shopper's two-letter country code. */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @@ -635,11 +591,9 @@ public void setCountryCode(String countryCode) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): - * YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest dateOfBirth(LocalDate dateOfBirth) { @@ -648,11 +602,8 @@ public PaymentLinkRequest dateOfBirth(LocalDate dateOfBirth) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): - * YYYY-MM-DD - * - * @return dateOfBirth The shopper's date of birth. Format - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @return dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -661,11 +612,9 @@ public LocalDate getDateOfBirth() { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): - * YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -674,13 +623,9 @@ public void setDateOfBirth(LocalDate dateOfBirth) { } /** - * The date and time when the purchased goods should be delivered. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. + * The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. * - * @param deliverAt The date and time when the purchased goods should be delivered. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. + * @param deliverAt The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest deliverAt(OffsetDateTime deliverAt) { @@ -689,13 +634,8 @@ public PaymentLinkRequest deliverAt(OffsetDateTime deliverAt) { } /** - * The date and time when the purchased goods should be delivered. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. - * - * @return deliverAt The date and time when the purchased goods should be delivered. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. + * The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * @return deliverAt The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_DELIVER_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -704,13 +644,9 @@ public OffsetDateTime getDeliverAt() { } /** - * The date and time when the purchased goods should be delivered. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. + * The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. * - * @param deliverAt The date and time when the purchased goods should be delivered. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. + * @param deliverAt The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_DELIVER_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -721,7 +657,7 @@ public void setDeliverAt(OffsetDateTime deliverAt) { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest deliveryAddress(Address deliveryAddress) { @@ -731,8 +667,7 @@ public PaymentLinkRequest deliveryAddress(Address deliveryAddress) { /** * Get deliveryAddress - * - * @return deliveryAddress + * @return deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -743,7 +678,7 @@ public Address getDeliveryAddress() { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -754,8 +689,7 @@ public void setDeliveryAddress(Address deliveryAddress) { /** * A short description visible on the payment page. Maximum length: 280 characters. * - * @param description A short description visible on the payment page. Maximum length: 280 - * characters. + * @param description A short description visible on the payment page. Maximum length: 280 characters. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest description(String description) { @@ -765,9 +699,7 @@ public PaymentLinkRequest description(String description) { /** * A short description visible on the payment page. Maximum length: 280 characters. - * - * @return description A short description visible on the payment page. Maximum length: 280 - * characters. + * @return description A short description visible on the payment page. Maximum length: 280 characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -778,8 +710,7 @@ public String getDescription() { /** * A short description visible on the payment page. Maximum length: 280 characters. * - * @param description A short description visible on the payment page. Maximum length: 280 - * characters. + * @param description A short description visible on the payment page. Maximum length: 280 characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -788,16 +719,9 @@ public void setDescription(String description) { } /** - * The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format - * with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The - * maximum expiry date is 70 days after the payment link is created. If not provided, the payment - * link expires 24 hours after it was created. + * The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created. * - * @param expiresAt The date when the payment link expires. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: - * YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry - * date is 70 days after the payment link is created. If not provided, the payment link - * expires 24 hours after it was created. + * @param expiresAt The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest expiresAt(OffsetDateTime expiresAt) { @@ -806,16 +730,8 @@ public PaymentLinkRequest expiresAt(OffsetDateTime expiresAt) { } /** - * The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format - * with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The - * maximum expiry date is 70 days after the payment link is created. If not provided, the payment - * link expires 24 hours after it was created. - * - * @return expiresAt The date when the payment link expires. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: - * YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry - * date is 70 days after the payment link is created. If not provided, the payment link - * expires 24 hours after it was created. + * The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created. + * @return expiresAt The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -824,16 +740,9 @@ public OffsetDateTime getExpiresAt() { } /** - * The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format - * with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The - * maximum expiry date is 70 days after the payment link is created. If not provided, the payment - * link expires 24 hours after it was created. + * The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created. * - * @param expiresAt The date when the payment link expires. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: - * YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry - * date is 70 days after the payment link is created. If not provided, the payment link - * expires 24 hours after it was created. + * @param expiresAt The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -844,7 +753,7 @@ public void setExpiresAt(OffsetDateTime expiresAt) { /** * fundOrigin * - * @param fundOrigin + * @param fundOrigin * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest fundOrigin(FundOrigin fundOrigin) { @@ -854,8 +763,7 @@ public PaymentLinkRequest fundOrigin(FundOrigin fundOrigin) { /** * Get fundOrigin - * - * @return fundOrigin + * @return fundOrigin */ @JsonProperty(JSON_PROPERTY_FUND_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -866,7 +774,7 @@ public FundOrigin getFundOrigin() { /** * fundOrigin * - * @param fundOrigin + * @param fundOrigin */ @JsonProperty(JSON_PROPERTY_FUND_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -877,7 +785,7 @@ public void setFundOrigin(FundOrigin fundOrigin) { /** * fundRecipient * - * @param fundRecipient + * @param fundRecipient * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest fundRecipient(FundRecipient fundRecipient) { @@ -887,8 +795,7 @@ public PaymentLinkRequest fundRecipient(FundRecipient fundRecipient) { /** * Get fundRecipient - * - * @return fundRecipient + * @return fundRecipient */ @JsonProperty(JSON_PROPERTY_FUND_RECIPIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -899,7 +806,7 @@ public FundRecipient getFundRecipient() { /** * fundRecipient * - * @param fundRecipient + * @param fundRecipient */ @JsonProperty(JSON_PROPERTY_FUND_RECIPIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -908,15 +815,9 @@ public void setFundRecipient(FundRecipient fundRecipient) { } /** - * A set of key-value pairs that specifies the installment options available per payment method. - * The key must be a payment method name in lowercase. For example, **card** to specify - * installment options for all cards, or **visa** or **mc**. The value must be an object - * containing the installment options. + * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. * - * @param installmentOptions A set of key-value pairs that specifies the installment options - * available per payment method. The key must be a payment method name in lowercase. For - * example, **card** to specify installment options for all cards, or **visa** or **mc**. The - * value must be an object containing the installment options. + * @param installmentOptions A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest installmentOptions(Map installmentOptions) { @@ -924,8 +825,7 @@ public PaymentLinkRequest installmentOptions(Map inst return this; } - public PaymentLinkRequest putInstallmentOptionsItem( - String key, InstallmentOption installmentOptionsItem) { + public PaymentLinkRequest putInstallmentOptionsItem(String key, InstallmentOption installmentOptionsItem) { if (this.installmentOptions == null) { this.installmentOptions = new HashMap<>(); } @@ -934,15 +834,8 @@ public PaymentLinkRequest putInstallmentOptionsItem( } /** - * A set of key-value pairs that specifies the installment options available per payment method. - * The key must be a payment method name in lowercase. For example, **card** to specify - * installment options for all cards, or **visa** or **mc**. The value must be an object - * containing the installment options. - * - * @return installmentOptions A set of key-value pairs that specifies the installment options - * available per payment method. The key must be a payment method name in lowercase. For - * example, **card** to specify installment options for all cards, or **visa** or **mc**. The - * value must be an object containing the installment options. + * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. + * @return installmentOptions A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -951,15 +844,9 @@ public Map getInstallmentOptions() { } /** - * A set of key-value pairs that specifies the installment options available per payment method. - * The key must be a payment method name in lowercase. For example, **card** to specify - * installment options for all cards, or **visa** or **mc**. The value must be an object - * containing the installment options. + * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. * - * @param installmentOptions A set of key-value pairs that specifies the installment options - * available per payment method. The key must be a payment method name in lowercase. For - * example, **card** to specify installment options for all cards, or **visa** or **mc**. The - * value must be an object containing the installment options. + * @param installmentOptions A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -968,13 +855,9 @@ public void setInstallmentOptions(Map installmentOpti } /** - * Price and product information about the purchased items, to be included on the invoice sent to - * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, - * Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. * - * @param lineItems Price and product information about the purchased items, to be included on the - * invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, - * Clearpay, Klarna, Ratepay, and Riverty. + * @param lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest lineItems(List lineItems) { @@ -991,13 +874,8 @@ public PaymentLinkRequest addLineItemsItem(LineItem lineItemsItem) { } /** - * Price and product information about the purchased items, to be included on the invoice sent to - * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, - * Ratepay, and Riverty. - * - * @return lineItems Price and product information about the purchased items, to be included on - * the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, - * Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * @return lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1006,13 +884,9 @@ public List getLineItems() { } /** - * Price and product information about the purchased items, to be included on the invoice sent to - * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, - * Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. * - * @param lineItems Price and product information about the purchased items, to be included on the - * invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, - * Clearpay, Klarna, Ratepay, and Riverty. + * @param lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1021,11 +895,9 @@ public void setLineItems(List lineItems) { } /** - * Indicates if the payment must be [captured - * manually](https://docs.adyen.com/online-payments/capture). + * Indicates if the payment must be [captured manually](https://docs.adyen.com/online-payments/capture). * - * @param manualCapture Indicates if the payment must be [captured - * manually](https://docs.adyen.com/online-payments/capture). + * @param manualCapture Indicates if the payment must be [captured manually](https://docs.adyen.com/online-payments/capture). * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest manualCapture(Boolean manualCapture) { @@ -1034,11 +906,8 @@ public PaymentLinkRequest manualCapture(Boolean manualCapture) { } /** - * Indicates if the payment must be [captured - * manually](https://docs.adyen.com/online-payments/capture). - * - * @return manualCapture Indicates if the payment must be [captured - * manually](https://docs.adyen.com/online-payments/capture). + * Indicates if the payment must be [captured manually](https://docs.adyen.com/online-payments/capture). + * @return manualCapture Indicates if the payment must be [captured manually](https://docs.adyen.com/online-payments/capture). */ @JsonProperty(JSON_PROPERTY_MANUAL_CAPTURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1047,11 +916,9 @@ public Boolean getManualCapture() { } /** - * Indicates if the payment must be [captured - * manually](https://docs.adyen.com/online-payments/capture). + * Indicates if the payment must be [captured manually](https://docs.adyen.com/online-payments/capture). * - * @param manualCapture Indicates if the payment must be [captured - * manually](https://docs.adyen.com/online-payments/capture). + * @param manualCapture Indicates if the payment must be [captured manually](https://docs.adyen.com/online-payments/capture). */ @JsonProperty(JSON_PROPERTY_MANUAL_CAPTURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1060,13 +927,9 @@ public void setManualCapture(Boolean manualCapture) { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a - * four-digit number, which relates to a particular market segment. This code reflects the - * predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) - * (MCC) is a four-digit number, which relates to a particular market segment. This code - * reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest mcc(String mcc) { @@ -1075,13 +938,8 @@ public PaymentLinkRequest mcc(String mcc) { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a - * four-digit number, which relates to a particular market segment. This code reflects the - * predominant activity that is conducted by the merchant. - * - * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) - * (MCC) is a four-digit number, which relates to a particular market segment. This code - * reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1090,13 +948,9 @@ public String getMcc() { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a - * four-digit number, which relates to a particular market segment. This code reflects the - * predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) - * (MCC) is a four-digit number, which relates to a particular market segment. This code - * reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1117,7 +971,6 @@ public PaymentLinkRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier for which the payment link is created. - * * @return merchantAccount The merchant account identifier for which the payment link is created. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -1138,12 +991,9 @@ public void setMerchantAccount(String merchantAccount) { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (for - * example, order auth-rate). The reference should be unique per billing cycle. + * This reference allows linking multiple transactions to each other for reporting purposes (for example, order auth-rate). The reference should be unique per billing cycle. * - * @param merchantOrderReference This reference allows linking multiple transactions to each other - * for reporting purposes (for example, order auth-rate). The reference should be unique per - * billing cycle. + * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (for example, order auth-rate). The reference should be unique per billing cycle. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest merchantOrderReference(String merchantOrderReference) { @@ -1152,12 +1002,8 @@ public PaymentLinkRequest merchantOrderReference(String merchantOrderReference) } /** - * This reference allows linking multiple transactions to each other for reporting purposes (for - * example, order auth-rate). The reference should be unique per billing cycle. - * - * @return merchantOrderReference This reference allows linking multiple transactions to each - * other for reporting purposes (for example, order auth-rate). The reference should be unique - * per billing cycle. + * This reference allows linking multiple transactions to each other for reporting purposes (for example, order auth-rate). The reference should be unique per billing cycle. + * @return merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (for example, order auth-rate). The reference should be unique per billing cycle. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1166,12 +1012,9 @@ public String getMerchantOrderReference() { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (for - * example, order auth-rate). The reference should be unique per billing cycle. + * This reference allows linking multiple transactions to each other for reporting purposes (for example, order auth-rate). The reference should be unique per billing cycle. * - * @param merchantOrderReference This reference allows linking multiple transactions to each other - * for reporting purposes (for example, order auth-rate). The reference should be unique per - * billing cycle. + * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (for example, order auth-rate). The reference should be unique per billing cycle. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1180,19 +1023,9 @@ public void setMerchantOrderReference(String merchantOrderReference) { } /** - * Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum - * 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size - * exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" - * occurs: \"Metadata key size exceeds limit\" * A key cannot have the name - * `checkout.linkId`. Any value that you provide with this key is going to be replaced - * by the real payment link ID. + * Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * A key cannot have the name `checkout.linkId`. Any value that you provide with this key is going to be replaced by the real payment link ID. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. - * Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" - * occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. - * Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * - * A key cannot have the name `checkout.linkId`. Any value that you provide with - * this key is going to be replaced by the real payment link ID. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * A key cannot have the name `checkout.linkId`. Any value that you provide with this key is going to be replaced by the real payment link ID. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest metadata(Map metadata) { @@ -1209,19 +1042,8 @@ public PaymentLinkRequest putMetadataItem(String key, String metadataItem) { } /** - * Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum - * 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size - * exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" - * occurs: \"Metadata key size exceeds limit\" * A key cannot have the name - * `checkout.linkId`. Any value that you provide with this key is going to be replaced - * by the real payment link ID. - * - * @return metadata Metadata consists of entries, each of which includes a key and a value. - * Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" - * occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. - * Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * - * A key cannot have the name `checkout.linkId`. Any value that you provide with - * this key is going to be replaced by the real payment link ID. + * Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * A key cannot have the name `checkout.linkId`. Any value that you provide with this key is going to be replaced by the real payment link ID. + * @return metadata Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * A key cannot have the name `checkout.linkId`. Any value that you provide with this key is going to be replaced by the real payment link ID. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1230,19 +1052,9 @@ public Map getMetadata() { } /** - * Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum - * 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size - * exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" - * occurs: \"Metadata key size exceeds limit\" * A key cannot have the name - * `checkout.linkId`. Any value that you provide with this key is going to be replaced - * by the real payment link ID. + * Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * A key cannot have the name `checkout.linkId`. Any value that you provide with this key is going to be replaced by the real payment link ID. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. - * Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" - * occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. - * Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * - * A key cannot have the name `checkout.linkId`. Any value that you provide with - * this key is going to be replaced by the real payment link ID. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * A key cannot have the name `checkout.linkId`. Any value that you provide with this key is going to be replaced by the real payment link ID. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1253,19 +1065,17 @@ public void setMetadata(Map metadata) { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ - public PaymentLinkRequest platformChargebackLogic( - PlatformChargebackLogic platformChargebackLogic) { + public PaymentLinkRequest platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) { this.platformChargebackLogic = platformChargebackLogic; return this; } /** * Get platformChargebackLogic - * - * @return platformChargebackLogic + * @return platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1276,7 +1086,7 @@ public PlatformChargebackLogic getPlatformChargebackLogic() { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1285,53 +1095,19 @@ public void setPlatformChargebackLogic(PlatformChargebackLogic platformChargebac } /** - * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to - * **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a - * fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a - * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An - * unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. - * - * @param recurringProcessingModel Defines a recurring payment type. Required when - * `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible - * values: * **Subscription** – A transaction for a fixed or variable amount, which follows a - * fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are - * stored to enable one-click or omnichannel journeys, or simply to streamline the checkout - * process. Any subscription not following a fixed schedule is also considered a card-on-file - * transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction - * is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For - * example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * + * @param recurringProcessingModel Defines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ - public PaymentLinkRequest recurringProcessingModel( - RecurringProcessingModelEnum recurringProcessingModel) { + public PaymentLinkRequest recurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) { this.recurringProcessingModel = recurringProcessingModel; return this; } /** - * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to - * **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a - * fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a - * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An - * unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. - * - * @return recurringProcessingModel Defines a recurring payment type. Required when - * `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible - * values: * **Subscription** – A transaction for a fixed or variable amount, which follows a - * fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are - * stored to enable one-click or omnichannel journeys, or simply to streamline the checkout - * process. Any subscription not following a fixed schedule is also considered a card-on-file - * transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction - * is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For - * example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * @return recurringProcessingModel Defines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1340,25 +1116,9 @@ public RecurringProcessingModelEnum getRecurringProcessingModel() { } /** - * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to - * **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a - * fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a - * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An - * unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. + * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. * - * @param recurringProcessingModel Defines a recurring payment type. Required when - * `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible - * values: * **Subscription** – A transaction for a fixed or variable amount, which follows a - * fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are - * stored to enable one-click or omnichannel journeys, or simply to streamline the checkout - * process. Any subscription not following a fixed schedule is also considered a card-on-file - * transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction - * is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For - * example, automatic top-ups when a cardholder's balance drops below a certain amount. + * @param recurringProcessingModel Defines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1367,11 +1127,9 @@ public void setRecurringProcessingModel(RecurringProcessingModelEnum recurringPr } /** - * A reference that is used to uniquely identify the payment in future communications about the - * payment status. + * A reference that is used to uniquely identify the payment in future communications about the payment status. * - * @param reference A reference that is used to uniquely identify the payment in future - * communications about the payment status. + * @param reference A reference that is used to uniquely identify the payment in future communications about the payment status. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest reference(String reference) { @@ -1380,11 +1138,8 @@ public PaymentLinkRequest reference(String reference) { } /** - * A reference that is used to uniquely identify the payment in future communications about the - * payment status. - * - * @return reference A reference that is used to uniquely identify the payment in future - * communications about the payment status. + * A reference that is used to uniquely identify the payment in future communications about the payment status. + * @return reference A reference that is used to uniquely identify the payment in future communications about the payment status. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1393,11 +1148,9 @@ public String getReference() { } /** - * A reference that is used to uniquely identify the payment in future communications about the - * payment status. + * A reference that is used to uniquely identify the payment in future communications about the payment status. * - * @param reference A reference that is used to uniquely identify the payment in future - * communications about the payment status. + * @param reference A reference that is used to uniquely identify the payment in future communications about the payment status. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1406,31 +1159,17 @@ public void setReference(String reference) { } /** - * List of fields that the shopper has to provide on the payment page before completing the - * payment. For more information, refer to [Provide shopper - * information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). - * Possible values: * **billingAddress** – The address where to send the invoice. * - * **deliveryAddress** – The address where the purchased goods should be delivered. * - * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full - * name. * **telephoneNumber** – The shopper's phone number. + * List of fields that the shopper has to provide on the payment page before completing the payment. For more information, refer to [Provide shopper information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). Possible values: * **billingAddress** – The address where to send the invoice. * **deliveryAddress** – The address where the purchased goods should be delivered. * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full name. * **telephoneNumber** – The shopper's phone number. * - * @param requiredShopperFields List of fields that the shopper has to provide on the payment page - * before completing the payment. For more information, refer to [Provide shopper - * information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). - * Possible values: * **billingAddress** – The address where to send the invoice. * - * **deliveryAddress** – The address where the purchased goods should be delivered. * - * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's - * full name. * **telephoneNumber** – The shopper's phone number. + * @param requiredShopperFields List of fields that the shopper has to provide on the payment page before completing the payment. For more information, refer to [Provide shopper information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). Possible values: * **billingAddress** – The address where to send the invoice. * **deliveryAddress** – The address where the purchased goods should be delivered. * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full name. * **telephoneNumber** – The shopper's phone number. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ - public PaymentLinkRequest requiredShopperFields( - List requiredShopperFields) { + public PaymentLinkRequest requiredShopperFields(List requiredShopperFields) { this.requiredShopperFields = requiredShopperFields; return this; } - public PaymentLinkRequest addRequiredShopperFieldsItem( - RequiredShopperFieldsEnum requiredShopperFieldsItem) { + public PaymentLinkRequest addRequiredShopperFieldsItem(RequiredShopperFieldsEnum requiredShopperFieldsItem) { if (this.requiredShopperFields == null) { this.requiredShopperFields = new ArrayList<>(); } @@ -1439,21 +1178,8 @@ public PaymentLinkRequest addRequiredShopperFieldsItem( } /** - * List of fields that the shopper has to provide on the payment page before completing the - * payment. For more information, refer to [Provide shopper - * information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). - * Possible values: * **billingAddress** – The address where to send the invoice. * - * **deliveryAddress** – The address where the purchased goods should be delivered. * - * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full - * name. * **telephoneNumber** – The shopper's phone number. - * - * @return requiredShopperFields List of fields that the shopper has to provide on the payment - * page before completing the payment. For more information, refer to [Provide shopper - * information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). - * Possible values: * **billingAddress** – The address where to send the invoice. * - * **deliveryAddress** – The address where the purchased goods should be delivered. * - * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's - * full name. * **telephoneNumber** – The shopper's phone number. + * List of fields that the shopper has to provide on the payment page before completing the payment. For more information, refer to [Provide shopper information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). Possible values: * **billingAddress** – The address where to send the invoice. * **deliveryAddress** – The address where the purchased goods should be delivered. * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full name. * **telephoneNumber** – The shopper's phone number. + * @return requiredShopperFields List of fields that the shopper has to provide on the payment page before completing the payment. For more information, refer to [Provide shopper information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). Possible values: * **billingAddress** – The address where to send the invoice. * **deliveryAddress** – The address where the purchased goods should be delivered. * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full name. * **telephoneNumber** – The shopper's phone number. */ @JsonProperty(JSON_PROPERTY_REQUIRED_SHOPPER_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1462,21 +1188,9 @@ public List getRequiredShopperFields() { } /** - * List of fields that the shopper has to provide on the payment page before completing the - * payment. For more information, refer to [Provide shopper - * information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). - * Possible values: * **billingAddress** – The address where to send the invoice. * - * **deliveryAddress** – The address where the purchased goods should be delivered. * - * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full - * name. * **telephoneNumber** – The shopper's phone number. + * List of fields that the shopper has to provide on the payment page before completing the payment. For more information, refer to [Provide shopper information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). Possible values: * **billingAddress** – The address where to send the invoice. * **deliveryAddress** – The address where the purchased goods should be delivered. * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full name. * **telephoneNumber** – The shopper's phone number. * - * @param requiredShopperFields List of fields that the shopper has to provide on the payment page - * before completing the payment. For more information, refer to [Provide shopper - * information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). - * Possible values: * **billingAddress** – The address where to send the invoice. * - * **deliveryAddress** – The address where the purchased goods should be delivered. * - * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's - * full name. * **telephoneNumber** – The shopper's phone number. + * @param requiredShopperFields List of fields that the shopper has to provide on the payment page before completing the payment. For more information, refer to [Provide shopper information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). Possible values: * **billingAddress** – The address where to send the invoice. * **deliveryAddress** – The address where the purchased goods should be delivered. * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full name. * **telephoneNumber** – The shopper's phone number. */ @JsonProperty(JSON_PROPERTY_REQUIRED_SHOPPER_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1485,13 +1199,9 @@ public void setRequiredShopperFields(List requiredSho } /** - * Website URL used for redirection after payment is completed. If provided, a **Continue** button - * will be shown on the payment page. If shoppers select the button, they are redirected to the - * specified URL. + * Website URL used for redirection after payment is completed. If provided, a **Continue** button will be shown on the payment page. If shoppers select the button, they are redirected to the specified URL. * - * @param returnUrl Website URL used for redirection after payment is completed. If provided, a - * **Continue** button will be shown on the payment page. If shoppers select the button, they - * are redirected to the specified URL. + * @param returnUrl Website URL used for redirection after payment is completed. If provided, a **Continue** button will be shown on the payment page. If shoppers select the button, they are redirected to the specified URL. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest returnUrl(String returnUrl) { @@ -1500,13 +1210,8 @@ public PaymentLinkRequest returnUrl(String returnUrl) { } /** - * Website URL used for redirection after payment is completed. If provided, a **Continue** button - * will be shown on the payment page. If shoppers select the button, they are redirected to the - * specified URL. - * - * @return returnUrl Website URL used for redirection after payment is completed. If provided, a - * **Continue** button will be shown on the payment page. If shoppers select the button, they - * are redirected to the specified URL. + * Website URL used for redirection after payment is completed. If provided, a **Continue** button will be shown on the payment page. If shoppers select the button, they are redirected to the specified URL. + * @return returnUrl Website URL used for redirection after payment is completed. If provided, a **Continue** button will be shown on the payment page. If shoppers select the button, they are redirected to the specified URL. */ @JsonProperty(JSON_PROPERTY_RETURN_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1515,13 +1220,9 @@ public String getReturnUrl() { } /** - * Website URL used for redirection after payment is completed. If provided, a **Continue** button - * will be shown on the payment page. If shoppers select the button, they are redirected to the - * specified URL. + * Website URL used for redirection after payment is completed. If provided, a **Continue** button will be shown on the payment page. If shoppers select the button, they are redirected to the specified URL. * - * @param returnUrl Website URL used for redirection after payment is completed. If provided, a - * **Continue** button will be shown on the payment page. If shoppers select the button, they - * are redirected to the specified URL. + * @param returnUrl Website URL used for redirection after payment is completed. If provided, a **Continue** button will be shown on the payment page. If shoppers select the button, they are redirected to the specified URL. */ @JsonProperty(JSON_PROPERTY_RETURN_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1530,12 +1231,9 @@ public void setReturnUrl(String returnUrl) { } /** - * Indicates whether the payment link can be reused for multiple payments. If not provided, this - * defaults to **false** which means the link can be used for one successful payment only. + * Indicates whether the payment link can be reused for multiple payments. If not provided, this defaults to **false** which means the link can be used for one successful payment only. * - * @param reusable Indicates whether the payment link can be reused for multiple payments. If not - * provided, this defaults to **false** which means the link can be used for one successful - * payment only. + * @param reusable Indicates whether the payment link can be reused for multiple payments. If not provided, this defaults to **false** which means the link can be used for one successful payment only. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest reusable(Boolean reusable) { @@ -1544,12 +1242,8 @@ public PaymentLinkRequest reusable(Boolean reusable) { } /** - * Indicates whether the payment link can be reused for multiple payments. If not provided, this - * defaults to **false** which means the link can be used for one successful payment only. - * - * @return reusable Indicates whether the payment link can be reused for multiple payments. If not - * provided, this defaults to **false** which means the link can be used for one successful - * payment only. + * Indicates whether the payment link can be reused for multiple payments. If not provided, this defaults to **false** which means the link can be used for one successful payment only. + * @return reusable Indicates whether the payment link can be reused for multiple payments. If not provided, this defaults to **false** which means the link can be used for one successful payment only. */ @JsonProperty(JSON_PROPERTY_REUSABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1558,12 +1252,9 @@ public Boolean getReusable() { } /** - * Indicates whether the payment link can be reused for multiple payments. If not provided, this - * defaults to **false** which means the link can be used for one successful payment only. + * Indicates whether the payment link can be reused for multiple payments. If not provided, this defaults to **false** which means the link can be used for one successful payment only. * - * @param reusable Indicates whether the payment link can be reused for multiple payments. If not - * provided, this defaults to **false** which means the link can be used for one successful - * payment only. + * @param reusable Indicates whether the payment link can be reused for multiple payments. If not provided, this defaults to **false** which means the link can be used for one successful payment only. */ @JsonProperty(JSON_PROPERTY_REUSABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1574,7 +1265,7 @@ public void setReusable(Boolean reusable) { /** * riskData * - * @param riskData + * @param riskData * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest riskData(RiskData riskData) { @@ -1584,8 +1275,7 @@ public PaymentLinkRequest riskData(RiskData riskData) { /** * Get riskData - * - * @return riskData + * @return riskData */ @JsonProperty(JSON_PROPERTY_RISK_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1596,7 +1286,7 @@ public RiskData getRiskData() { /** * riskData * - * @param riskData + * @param riskData */ @JsonProperty(JSON_PROPERTY_RISK_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1617,7 +1307,6 @@ public PaymentLinkRequest shopperEmail(String shopperEmail) { /** * The shopper's email address. - * * @return shopperEmail The shopper's email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -1638,15 +1327,9 @@ public void setShopperEmail(String shopperEmail) { } /** - * The language to be used in the payment page, specified by a combination of a language and - * country code. For example, `en-US`. For a list of shopper locales that Pay by Link - * supports, refer to [Language and - * localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). + * The language to be used in the payment page, specified by a combination of a language and country code. For example, `en-US`. For a list of shopper locales that Pay by Link supports, refer to [Language and localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). * - * @param shopperLocale The language to be used in the payment page, specified by a combination of - * a language and country code. For example, `en-US`. For a list of shopper locales - * that Pay by Link supports, refer to [Language and - * localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). + * @param shopperLocale The language to be used in the payment page, specified by a combination of a language and country code. For example, `en-US`. For a list of shopper locales that Pay by Link supports, refer to [Language and localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest shopperLocale(String shopperLocale) { @@ -1655,15 +1338,8 @@ public PaymentLinkRequest shopperLocale(String shopperLocale) { } /** - * The language to be used in the payment page, specified by a combination of a language and - * country code. For example, `en-US`. For a list of shopper locales that Pay by Link - * supports, refer to [Language and - * localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). - * - * @return shopperLocale The language to be used in the payment page, specified by a combination - * of a language and country code. For example, `en-US`. For a list of shopper - * locales that Pay by Link supports, refer to [Language and - * localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). + * The language to be used in the payment page, specified by a combination of a language and country code. For example, `en-US`. For a list of shopper locales that Pay by Link supports, refer to [Language and localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). + * @return shopperLocale The language to be used in the payment page, specified by a combination of a language and country code. For example, `en-US`. For a list of shopper locales that Pay by Link supports, refer to [Language and localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1672,15 +1348,9 @@ public String getShopperLocale() { } /** - * The language to be used in the payment page, specified by a combination of a language and - * country code. For example, `en-US`. For a list of shopper locales that Pay by Link - * supports, refer to [Language and - * localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). + * The language to be used in the payment page, specified by a combination of a language and country code. For example, `en-US`. For a list of shopper locales that Pay by Link supports, refer to [Language and localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). * - * @param shopperLocale The language to be used in the payment page, specified by a combination of - * a language and country code. For example, `en-US`. For a list of shopper locales - * that Pay by Link supports, refer to [Language and - * localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). + * @param shopperLocale The language to be used in the payment page, specified by a combination of a language and country code. For example, `en-US`. For a list of shopper locales that Pay by Link supports, refer to [Language and localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1691,7 +1361,7 @@ public void setShopperLocale(String shopperLocale) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest shopperName(Name shopperName) { @@ -1701,8 +1371,7 @@ public PaymentLinkRequest shopperName(Name shopperName) { /** * Get shopperName - * - * @return shopperName + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1713,7 +1382,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1722,14 +1391,9 @@ public void setShopperName(Name shopperName) { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. The value - * is case-sensitive and must be at least three characters. > Your reference must not include - * personally identifiable information (PII) such as name or email address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * - * @param shopperReference Your reference to uniquely identify this shopper, for example user ID - * or account ID. The value is case-sensitive and must be at least three characters. > Your - * reference must not include personally identifiable information (PII) such as name or email - * address. + * @param shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest shopperReference(String shopperReference) { @@ -1738,14 +1402,8 @@ public PaymentLinkRequest shopperReference(String shopperReference) { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. The value - * is case-sensitive and must be at least three characters. > Your reference must not include - * personally identifiable information (PII) such as name or email address. - * - * @return shopperReference Your reference to uniquely identify this shopper, for example user ID - * or account ID. The value is case-sensitive and must be at least three characters. > Your - * reference must not include personally identifiable information (PII) such as name or email - * address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @return shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1754,14 +1412,9 @@ public String getShopperReference() { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. The value - * is case-sensitive and must be at least three characters. > Your reference must not include - * personally identifiable information (PII) such as name or email address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * - * @param shopperReference Your reference to uniquely identify this shopper, for example user ID - * or account ID. The value is case-sensitive and must be at least three characters. > Your - * reference must not include personally identifiable information (PII) such as name or email - * address. + * @param shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1770,14 +1423,9 @@ public void setShopperReference(String shopperReference) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 - * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, - * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend - * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed - * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * - * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest shopperStatement(String shopperStatement) { @@ -1786,14 +1434,8 @@ public PaymentLinkRequest shopperStatement(String shopperStatement) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 - * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, - * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. - * - * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend - * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed - * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * - * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1802,14 +1444,9 @@ public String getShopperStatement() { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 - * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, - * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend - * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed - * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * - * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1820,8 +1457,7 @@ public void setShopperStatement(String shopperStatement) { /** * Set to **false** to hide the button that lets the shopper remove a stored payment method. * - * @param showRemovePaymentMethodButton Set to **false** to hide the button that lets the shopper - * remove a stored payment method. + * @param showRemovePaymentMethodButton Set to **false** to hide the button that lets the shopper remove a stored payment method. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest showRemovePaymentMethodButton(Boolean showRemovePaymentMethodButton) { @@ -1831,9 +1467,7 @@ public PaymentLinkRequest showRemovePaymentMethodButton(Boolean showRemovePaymen /** * Set to **false** to hide the button that lets the shopper remove a stored payment method. - * - * @return showRemovePaymentMethodButton Set to **false** to hide the button that lets the shopper - * remove a stored payment method. + * @return showRemovePaymentMethodButton Set to **false** to hide the button that lets the shopper remove a stored payment method. */ @JsonProperty(JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1844,8 +1478,7 @@ public Boolean getShowRemovePaymentMethodButton() { /** * Set to **false** to hide the button that lets the shopper remove a stored payment method. * - * @param showRemovePaymentMethodButton Set to **false** to hide the button that lets the shopper - * remove a stored payment method. + * @param showRemovePaymentMethodButton Set to **false** to hide the button that lets the shopper remove a stored payment method. */ @JsonProperty(JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1866,7 +1499,6 @@ public PaymentLinkRequest socialSecurityNumber(String socialSecurityNumber) { /** * The shopper's social security number. - * * @return socialSecurityNumber The shopper's social security number. */ @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER) @@ -1887,11 +1519,9 @@ public void setSocialSecurityNumber(String socialSecurityNumber) { } /** - * Boolean value indicating whether the card payment method should be split into separate debit - * and credit options. + * Boolean value indicating whether the card payment method should be split into separate debit and credit options. * - * @param splitCardFundingSources Boolean value indicating whether the card payment method should - * be split into separate debit and credit options. + * @param splitCardFundingSources Boolean value indicating whether the card payment method should be split into separate debit and credit options. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest splitCardFundingSources(Boolean splitCardFundingSources) { @@ -1900,11 +1530,8 @@ public PaymentLinkRequest splitCardFundingSources(Boolean splitCardFundingSource } /** - * Boolean value indicating whether the card payment method should be split into separate debit - * and credit options. - * - * @return splitCardFundingSources Boolean value indicating whether the card payment method should - * be split into separate debit and credit options. + * Boolean value indicating whether the card payment method should be split into separate debit and credit options. + * @return splitCardFundingSources Boolean value indicating whether the card payment method should be split into separate debit and credit options. */ @JsonProperty(JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1913,11 +1540,9 @@ public Boolean getSplitCardFundingSources() { } /** - * Boolean value indicating whether the card payment method should be split into separate debit - * and credit options. + * Boolean value indicating whether the card payment method should be split into separate debit and credit options. * - * @param splitCardFundingSources Boolean value indicating whether the card payment method should - * be split into separate debit and credit options. + * @param splitCardFundingSources Boolean value indicating whether the card payment method should be split into separate debit and credit options. */ @JsonProperty(JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1926,17 +1551,9 @@ public void setSplitCardFundingSources(Boolean splitCardFundingSources) { } /** - * An array of objects specifying how to split a payment when using [Adyen for - * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), - * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), - * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). * - * @param splits An array of objects specifying how to split a payment when using [Adyen for - * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), - * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), - * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * @param splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest splits(List splits) { @@ -1953,17 +1570,8 @@ public PaymentLinkRequest addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how to split a payment when using [Adyen for - * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), - * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), - * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). - * - * @return splits An array of objects specifying how to split a payment when using [Adyen for - * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), - * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), - * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * @return splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1972,17 +1580,9 @@ public List getSplits() { } /** - * An array of objects specifying how to split a payment when using [Adyen for - * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), - * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), - * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). * - * @param splits An array of objects specifying how to split a payment when using [Adyen for - * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), - * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), - * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * @param splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2003,7 +1603,6 @@ public PaymentLinkRequest store(String store) { /** * The physical store, for which this payment is processed. - * * @return store The physical store, for which this payment is processed. */ @JsonProperty(JSON_PROPERTY_STORE) @@ -2024,45 +1623,19 @@ public void setStore(String store) { } /** - * Indicates if the details of the payment method will be stored for the shopper. Possible values: - * * **disabled** – No details will be stored (default). * **askForConsent** – If the - * `shopperReference` is provided, the UI lets the shopper choose if they want their - * payment details to be stored. * **enabled** – If the `shopperReference` is provided, - * the details will be stored without asking the shopper for consent. When set to - * **askForConsent** or **enabled**, you must also include the - * `recurringProcessingModel` parameter. + * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. When set to **askForConsent** or **enabled**, you must also include the `recurringProcessingModel` parameter. * - * @param storePaymentMethodMode Indicates if the details of the payment method will be stored for - * the shopper. Possible values: * **disabled** – No details will be stored (default). * - * **askForConsent** – If the `shopperReference` is provided, the UI lets the - * shopper choose if they want their payment details to be stored. * **enabled** – If the - * `shopperReference` is provided, the details will be stored without asking the - * shopper for consent. When set to **askForConsent** or **enabled**, you must also include - * the `recurringProcessingModel` parameter. + * @param storePaymentMethodMode Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. When set to **askForConsent** or **enabled**, you must also include the `recurringProcessingModel` parameter. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ - public PaymentLinkRequest storePaymentMethodMode( - StorePaymentMethodModeEnum storePaymentMethodMode) { + public PaymentLinkRequest storePaymentMethodMode(StorePaymentMethodModeEnum storePaymentMethodMode) { this.storePaymentMethodMode = storePaymentMethodMode; return this; } /** - * Indicates if the details of the payment method will be stored for the shopper. Possible values: - * * **disabled** – No details will be stored (default). * **askForConsent** – If the - * `shopperReference` is provided, the UI lets the shopper choose if they want their - * payment details to be stored. * **enabled** – If the `shopperReference` is provided, - * the details will be stored without asking the shopper for consent. When set to - * **askForConsent** or **enabled**, you must also include the - * `recurringProcessingModel` parameter. - * - * @return storePaymentMethodMode Indicates if the details of the payment method will be stored - * for the shopper. Possible values: * **disabled** – No details will be stored (default). * - * **askForConsent** – If the `shopperReference` is provided, the UI lets the - * shopper choose if they want their payment details to be stored. * **enabled** – If the - * `shopperReference` is provided, the details will be stored without asking the - * shopper for consent. When set to **askForConsent** or **enabled**, you must also include - * the `recurringProcessingModel` parameter. + * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. When set to **askForConsent** or **enabled**, you must also include the `recurringProcessingModel` parameter. + * @return storePaymentMethodMode Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. When set to **askForConsent** or **enabled**, you must also include the `recurringProcessingModel` parameter. */ @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2071,21 +1644,9 @@ public StorePaymentMethodModeEnum getStorePaymentMethodMode() { } /** - * Indicates if the details of the payment method will be stored for the shopper. Possible values: - * * **disabled** – No details will be stored (default). * **askForConsent** – If the - * `shopperReference` is provided, the UI lets the shopper choose if they want their - * payment details to be stored. * **enabled** – If the `shopperReference` is provided, - * the details will be stored without asking the shopper for consent. When set to - * **askForConsent** or **enabled**, you must also include the - * `recurringProcessingModel` parameter. + * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. When set to **askForConsent** or **enabled**, you must also include the `recurringProcessingModel` parameter. * - * @param storePaymentMethodMode Indicates if the details of the payment method will be stored for - * the shopper. Possible values: * **disabled** – No details will be stored (default). * - * **askForConsent** – If the `shopperReference` is provided, the UI lets the - * shopper choose if they want their payment details to be stored. * **enabled** – If the - * `shopperReference` is provided, the details will be stored without asking the - * shopper for consent. When set to **askForConsent** or **enabled**, you must also include - * the `recurringProcessingModel` parameter. + * @param storePaymentMethodMode Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. When set to **askForConsent** or **enabled**, you must also include the `recurringProcessingModel` parameter. */ @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2094,17 +1655,9 @@ public void setStorePaymentMethodMode(StorePaymentMethodModeEnum storePaymentMet } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus - * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest telephoneNumber(String telephoneNumber) { @@ -2113,17 +1666,8 @@ public PaymentLinkRequest telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. - * - * @return telephoneNumber The shopper's telephone number. The phone number must include a - * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @return telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2132,17 +1676,9 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus - * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2151,14 +1687,9 @@ public void setTelephoneNumber(String telephoneNumber) { } /** - * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to - * customize the appearance of the payment page. If not specified, the payment page is rendered - * according to the theme set as default in your Customer Area. + * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. * - * @param themeId A - * [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to - * customize the appearance of the payment page. If not specified, the payment page is - * rendered according to the theme set as default in your Customer Area. + * @param themeId A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest themeId(String themeId) { @@ -2167,14 +1698,8 @@ public PaymentLinkRequest themeId(String themeId) { } /** - * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to - * customize the appearance of the payment page. If not specified, the payment page is rendered - * according to the theme set as default in your Customer Area. - * - * @return themeId A - * [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to - * customize the appearance of the payment page. If not specified, the payment page is - * rendered according to the theme set as default in your Customer Area. + * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. + * @return themeId A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. */ @JsonProperty(JSON_PROPERTY_THEME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2183,14 +1708,9 @@ public String getThemeId() { } /** - * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to - * customize the appearance of the payment page. If not specified, the payment page is rendered - * according to the theme set as default in your Customer Area. + * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. * - * @param themeId A - * [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to - * customize the appearance of the payment page. If not specified, the payment page is - * rendered according to the theme set as default in your Customer Area. + * @param themeId A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. */ @JsonProperty(JSON_PROPERTY_THEME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2201,19 +1721,17 @@ public void setThemeId(String themeId) { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ - public PaymentLinkRequest threeDS2RequestData( - CheckoutSessionThreeDS2RequestData threeDS2RequestData) { + public PaymentLinkRequest threeDS2RequestData(CheckoutSessionThreeDS2RequestData threeDS2RequestData) { this.threeDS2RequestData = threeDS2RequestData; return this; } /** * Get threeDS2RequestData - * - * @return threeDS2RequestData + * @return threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2224,7 +1742,7 @@ public CheckoutSessionThreeDS2RequestData getThreeDS2RequestData() { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2232,7 +1750,9 @@ public void setThreeDS2RequestData(CheckoutSessionThreeDS2RequestData threeDS2Re this.threeDS2RequestData = threeDS2RequestData; } - /** Return true if this PaymentLinkRequest object is equal to o. */ + /** + * Return true if this PaymentLinkRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -2242,112 +1762,64 @@ public boolean equals(Object o) { return false; } PaymentLinkRequest paymentLinkRequest = (PaymentLinkRequest) o; - return Objects.equals(this.allowedPaymentMethods, paymentLinkRequest.allowedPaymentMethods) - && Objects.equals(this.amount, paymentLinkRequest.amount) - && Objects.equals(this.applicationInfo, paymentLinkRequest.applicationInfo) - && Objects.equals(this.billingAddress, paymentLinkRequest.billingAddress) - && Objects.equals(this.blockedPaymentMethods, paymentLinkRequest.blockedPaymentMethods) - && Objects.equals(this.captureDelayHours, paymentLinkRequest.captureDelayHours) - && Objects.equals(this.countryCode, paymentLinkRequest.countryCode) - && Objects.equals(this.dateOfBirth, paymentLinkRequest.dateOfBirth) - && Objects.equals(this.deliverAt, paymentLinkRequest.deliverAt) - && Objects.equals(this.deliveryAddress, paymentLinkRequest.deliveryAddress) - && Objects.equals(this.description, paymentLinkRequest.description) - && Objects.equals(this.expiresAt, paymentLinkRequest.expiresAt) - && Objects.equals(this.fundOrigin, paymentLinkRequest.fundOrigin) - && Objects.equals(this.fundRecipient, paymentLinkRequest.fundRecipient) - && Objects.equals(this.installmentOptions, paymentLinkRequest.installmentOptions) - && Objects.equals(this.lineItems, paymentLinkRequest.lineItems) - && Objects.equals(this.manualCapture, paymentLinkRequest.manualCapture) - && Objects.equals(this.mcc, paymentLinkRequest.mcc) - && Objects.equals(this.merchantAccount, paymentLinkRequest.merchantAccount) - && Objects.equals(this.merchantOrderReference, paymentLinkRequest.merchantOrderReference) - && Objects.equals(this.metadata, paymentLinkRequest.metadata) - && Objects.equals(this.platformChargebackLogic, paymentLinkRequest.platformChargebackLogic) - && Objects.equals( - this.recurringProcessingModel, paymentLinkRequest.recurringProcessingModel) - && Objects.equals(this.reference, paymentLinkRequest.reference) - && Objects.equals(this.requiredShopperFields, paymentLinkRequest.requiredShopperFields) - && Objects.equals(this.returnUrl, paymentLinkRequest.returnUrl) - && Objects.equals(this.reusable, paymentLinkRequest.reusable) - && Objects.equals(this.riskData, paymentLinkRequest.riskData) - && Objects.equals(this.shopperEmail, paymentLinkRequest.shopperEmail) - && Objects.equals(this.shopperLocale, paymentLinkRequest.shopperLocale) - && Objects.equals(this.shopperName, paymentLinkRequest.shopperName) - && Objects.equals(this.shopperReference, paymentLinkRequest.shopperReference) - && Objects.equals(this.shopperStatement, paymentLinkRequest.shopperStatement) - && Objects.equals( - this.showRemovePaymentMethodButton, paymentLinkRequest.showRemovePaymentMethodButton) - && Objects.equals(this.socialSecurityNumber, paymentLinkRequest.socialSecurityNumber) - && Objects.equals(this.splitCardFundingSources, paymentLinkRequest.splitCardFundingSources) - && Objects.equals(this.splits, paymentLinkRequest.splits) - && Objects.equals(this.store, paymentLinkRequest.store) - && Objects.equals(this.storePaymentMethodMode, paymentLinkRequest.storePaymentMethodMode) - && Objects.equals(this.telephoneNumber, paymentLinkRequest.telephoneNumber) - && Objects.equals(this.themeId, paymentLinkRequest.themeId) - && Objects.equals(this.threeDS2RequestData, paymentLinkRequest.threeDS2RequestData); + return Objects.equals(this.allowedPaymentMethods, paymentLinkRequest.allowedPaymentMethods) && + Objects.equals(this.amount, paymentLinkRequest.amount) && + Objects.equals(this.applicationInfo, paymentLinkRequest.applicationInfo) && + Objects.equals(this.billingAddress, paymentLinkRequest.billingAddress) && + Objects.equals(this.blockedPaymentMethods, paymentLinkRequest.blockedPaymentMethods) && + Objects.equals(this.captureDelayHours, paymentLinkRequest.captureDelayHours) && + Objects.equals(this.countryCode, paymentLinkRequest.countryCode) && + Objects.equals(this.dateOfBirth, paymentLinkRequest.dateOfBirth) && + Objects.equals(this.deliverAt, paymentLinkRequest.deliverAt) && + Objects.equals(this.deliveryAddress, paymentLinkRequest.deliveryAddress) && + Objects.equals(this.description, paymentLinkRequest.description) && + Objects.equals(this.expiresAt, paymentLinkRequest.expiresAt) && + Objects.equals(this.fundOrigin, paymentLinkRequest.fundOrigin) && + Objects.equals(this.fundRecipient, paymentLinkRequest.fundRecipient) && + Objects.equals(this.installmentOptions, paymentLinkRequest.installmentOptions) && + Objects.equals(this.lineItems, paymentLinkRequest.lineItems) && + Objects.equals(this.manualCapture, paymentLinkRequest.manualCapture) && + Objects.equals(this.mcc, paymentLinkRequest.mcc) && + Objects.equals(this.merchantAccount, paymentLinkRequest.merchantAccount) && + Objects.equals(this.merchantOrderReference, paymentLinkRequest.merchantOrderReference) && + Objects.equals(this.metadata, paymentLinkRequest.metadata) && + Objects.equals(this.platformChargebackLogic, paymentLinkRequest.platformChargebackLogic) && + Objects.equals(this.recurringProcessingModel, paymentLinkRequest.recurringProcessingModel) && + Objects.equals(this.reference, paymentLinkRequest.reference) && + Objects.equals(this.requiredShopperFields, paymentLinkRequest.requiredShopperFields) && + Objects.equals(this.returnUrl, paymentLinkRequest.returnUrl) && + Objects.equals(this.reusable, paymentLinkRequest.reusable) && + Objects.equals(this.riskData, paymentLinkRequest.riskData) && + Objects.equals(this.shopperEmail, paymentLinkRequest.shopperEmail) && + Objects.equals(this.shopperLocale, paymentLinkRequest.shopperLocale) && + Objects.equals(this.shopperName, paymentLinkRequest.shopperName) && + Objects.equals(this.shopperReference, paymentLinkRequest.shopperReference) && + Objects.equals(this.shopperStatement, paymentLinkRequest.shopperStatement) && + Objects.equals(this.showRemovePaymentMethodButton, paymentLinkRequest.showRemovePaymentMethodButton) && + Objects.equals(this.socialSecurityNumber, paymentLinkRequest.socialSecurityNumber) && + Objects.equals(this.splitCardFundingSources, paymentLinkRequest.splitCardFundingSources) && + Objects.equals(this.splits, paymentLinkRequest.splits) && + Objects.equals(this.store, paymentLinkRequest.store) && + Objects.equals(this.storePaymentMethodMode, paymentLinkRequest.storePaymentMethodMode) && + Objects.equals(this.telephoneNumber, paymentLinkRequest.telephoneNumber) && + Objects.equals(this.themeId, paymentLinkRequest.themeId) && + Objects.equals(this.threeDS2RequestData, paymentLinkRequest.threeDS2RequestData); } @Override public int hashCode() { - return Objects.hash( - allowedPaymentMethods, - amount, - applicationInfo, - billingAddress, - blockedPaymentMethods, - captureDelayHours, - countryCode, - dateOfBirth, - deliverAt, - deliveryAddress, - description, - expiresAt, - fundOrigin, - fundRecipient, - installmentOptions, - lineItems, - manualCapture, - mcc, - merchantAccount, - merchantOrderReference, - metadata, - platformChargebackLogic, - recurringProcessingModel, - reference, - requiredShopperFields, - returnUrl, - reusable, - riskData, - shopperEmail, - shopperLocale, - shopperName, - shopperReference, - shopperStatement, - showRemovePaymentMethodButton, - socialSecurityNumber, - splitCardFundingSources, - splits, - store, - storePaymentMethodMode, - telephoneNumber, - themeId, - threeDS2RequestData); + return Objects.hash(allowedPaymentMethods, amount, applicationInfo, billingAddress, blockedPaymentMethods, captureDelayHours, countryCode, dateOfBirth, deliverAt, deliveryAddress, description, expiresAt, fundOrigin, fundRecipient, installmentOptions, lineItems, manualCapture, mcc, merchantAccount, merchantOrderReference, metadata, platformChargebackLogic, recurringProcessingModel, reference, requiredShopperFields, returnUrl, reusable, riskData, shopperEmail, shopperLocale, shopperName, shopperReference, shopperStatement, showRemovePaymentMethodButton, socialSecurityNumber, splitCardFundingSources, splits, store, storePaymentMethodMode, telephoneNumber, themeId, threeDS2RequestData); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentLinkRequest {\n"); - sb.append(" allowedPaymentMethods: ") - .append(toIndentedString(allowedPaymentMethods)) - .append("\n"); + sb.append(" allowedPaymentMethods: ").append(toIndentedString(allowedPaymentMethods)).append("\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" applicationInfo: ").append(toIndentedString(applicationInfo)).append("\n"); sb.append(" billingAddress: ").append(toIndentedString(billingAddress)).append("\n"); - sb.append(" blockedPaymentMethods: ") - .append(toIndentedString(blockedPaymentMethods)) - .append("\n"); + sb.append(" blockedPaymentMethods: ").append(toIndentedString(blockedPaymentMethods)).append("\n"); sb.append(" captureDelayHours: ").append(toIndentedString(captureDelayHours)).append("\n"); sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n"); sb.append(" dateOfBirth: ").append(toIndentedString(dateOfBirth)).append("\n"); @@ -2362,20 +1834,12 @@ public String toString() { sb.append(" manualCapture: ").append(toIndentedString(manualCapture)).append("\n"); sb.append(" mcc: ").append(toIndentedString(mcc)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" merchantOrderReference: ") - .append(toIndentedString(merchantOrderReference)) - .append("\n"); + sb.append(" merchantOrderReference: ").append(toIndentedString(merchantOrderReference)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" platformChargebackLogic: ") - .append(toIndentedString(platformChargebackLogic)) - .append("\n"); - sb.append(" recurringProcessingModel: ") - .append(toIndentedString(recurringProcessingModel)) - .append("\n"); + sb.append(" platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n"); + sb.append(" recurringProcessingModel: ").append(toIndentedString(recurringProcessingModel)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); - sb.append(" requiredShopperFields: ") - .append(toIndentedString(requiredShopperFields)) - .append("\n"); + sb.append(" requiredShopperFields: ").append(toIndentedString(requiredShopperFields)).append("\n"); sb.append(" returnUrl: ").append(toIndentedString(returnUrl)).append("\n"); sb.append(" reusable: ").append(toIndentedString(reusable)).append("\n"); sb.append(" riskData: ").append(toIndentedString(riskData)).append("\n"); @@ -2384,31 +1848,22 @@ public String toString() { sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append(" shopperStatement: ").append(toIndentedString(shopperStatement)).append("\n"); - sb.append(" showRemovePaymentMethodButton: ") - .append(toIndentedString(showRemovePaymentMethodButton)) - .append("\n"); - sb.append(" socialSecurityNumber: ") - .append(toIndentedString(socialSecurityNumber)) - .append("\n"); - sb.append(" splitCardFundingSources: ") - .append(toIndentedString(splitCardFundingSources)) - .append("\n"); + sb.append(" showRemovePaymentMethodButton: ").append(toIndentedString(showRemovePaymentMethodButton)).append("\n"); + sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); + sb.append(" splitCardFundingSources: ").append(toIndentedString(splitCardFundingSources)).append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" store: ").append(toIndentedString(store)).append("\n"); - sb.append(" storePaymentMethodMode: ") - .append(toIndentedString(storePaymentMethodMode)) - .append("\n"); + sb.append(" storePaymentMethodMode: ").append(toIndentedString(storePaymentMethodMode)).append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); sb.append(" themeId: ").append(toIndentedString(themeId)).append("\n"); - sb.append(" threeDS2RequestData: ") - .append(toIndentedString(threeDS2RequestData)) - .append("\n"); + sb.append(" threeDS2RequestData: ").append(toIndentedString(threeDS2RequestData)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -2417,23 +1872,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentLinkRequest given an JSON string * * @param jsonString JSON string * @return An instance of PaymentLinkRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentLinkRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentLinkRequest */ public static PaymentLinkRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentLinkRequest.class); } - - /** - * Convert an instance of PaymentLinkRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentLinkRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentLinkResponse.java b/src/main/java/com/adyen/model/checkout/PaymentLinkResponse.java index c76f9f3bb..fe0554dbe 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentLinkResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentLinkResponse.java @@ -2,32 +2,49 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Address; +import com.adyen.model.checkout.Amount; +import com.adyen.model.checkout.ApplicationInfo; +import com.adyen.model.checkout.CheckoutSessionThreeDS2RequestData; +import com.adyen.model.checkout.FundOrigin; +import com.adyen.model.checkout.FundRecipient; +import com.adyen.model.checkout.InstallmentOption; +import com.adyen.model.checkout.LineItem; +import com.adyen.model.checkout.Name; +import com.adyen.model.checkout.PlatformChargebackLogic; +import com.adyen.model.checkout.RiskData; +import com.adyen.model.checkout.Split; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.time.OffsetDateTime; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PaymentLinkResponse */ +/** + * PaymentLinkResponse + */ @JsonPropertyOrder({ PaymentLinkResponse.JSON_PROPERTY_ALLOWED_PAYMENT_METHODS, PaymentLinkResponse.JSON_PROPERTY_AMOUNT, @@ -76,6 +93,7 @@ PaymentLinkResponse.JSON_PROPERTY_UPDATED_AT, PaymentLinkResponse.JSON_PROPERTY_URL }) + public class PaymentLinkResponse { public static final String JSON_PROPERTY_ALLOWED_PAYMENT_METHODS = "allowedPaymentMethods"; private List allowedPaymentMethods; @@ -147,30 +165,22 @@ public class PaymentLinkResponse { private PlatformChargebackLogic platformChargebackLogic; /** - * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to - * **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a - * fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a - * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An - * unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. + * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ public enum RecurringProcessingModelEnum { + CARDONFILE(String.valueOf("CardOnFile")), SUBSCRIPTION(String.valueOf("Subscription")), UNSCHEDULEDCARDONFILE(String.valueOf("UnscheduledCardOnFile")); - private static final Logger LOG = - Logger.getLogger(RecurringProcessingModelEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(RecurringProcessingModelEnum.class.getName()); private String value; RecurringProcessingModelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -191,11 +201,7 @@ public static RecurringProcessingModelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "RecurringProcessingModelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(RecurringProcessingModelEnum.values())); + LOG.warning("RecurringProcessingModelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RecurringProcessingModelEnum.values())); return null; } } @@ -206,8 +212,11 @@ public static RecurringProcessingModelEnum fromValue(String value) { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - /** Gets or Sets requiredShopperFields */ + /** + * Gets or Sets requiredShopperFields + */ public enum RequiredShopperFieldsEnum { + BILLINGADDRESS(String.valueOf("billingAddress")), DELIVERYADDRESS(String.valueOf("deliveryAddress")), @@ -223,7 +232,7 @@ public enum RequiredShopperFieldsEnum { private String value; RequiredShopperFieldsEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -244,11 +253,7 @@ public static RequiredShopperFieldsEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "RequiredShopperFieldsEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(RequiredShopperFieldsEnum.values())); + LOG.warning("RequiredShopperFieldsEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RequiredShopperFieldsEnum.values())); return null; } } @@ -280,8 +285,7 @@ public static RequiredShopperFieldsEnum fromValue(String value) { public static final String JSON_PROPERTY_SHOPPER_STATEMENT = "shopperStatement"; private String shopperStatement; - public static final String JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON = - "showRemovePaymentMethodButton"; + public static final String JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON = "showRemovePaymentMethodButton"; private Boolean showRemovePaymentMethodButton; public static final String JSON_PROPERTY_SOCIAL_SECURITY_NUMBER = "socialSecurityNumber"; @@ -294,13 +298,10 @@ public static RequiredShopperFieldsEnum fromValue(String value) { private List splits; /** - * Status of the payment link. Possible values: * **active**: The link can be used to make - * payments. * **expired**: The expiry date for the payment link has passed. Shoppers can no - * longer use the link to make payments. * **completed**: The shopper completed the payment. * - * **paymentPending**: The shopper is in the process of making the payment. Applies to payment - * methods with an asynchronous flow. + * Status of the payment link. Possible values: * **active**: The link can be used to make payments. * **expired**: The expiry date for the payment link has passed. Shoppers can no longer use the link to make payments. * **completed**: The shopper completed the payment. * **paymentPending**: The shopper is in the process of making the payment. Applies to payment methods with an asynchronous flow. */ public enum StatusEnum { + ACTIVE(String.valueOf("active")), COMPLETED(String.valueOf("completed")), @@ -316,7 +317,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -337,11 +338,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -353,15 +350,10 @@ public static StatusEnum fromValue(String value) { private String store; /** - * Indicates if the details of the payment method will be stored for the shopper. Possible values: - * * **disabled** – No details will be stored (default). * **askForConsent** – If the - * `shopperReference` is provided, the UI lets the shopper choose if they want their - * payment details to be stored. * **enabled** – If the `shopperReference` is provided, - * the details will be stored without asking the shopper for consent. When set to - * **askForConsent** or **enabled**, you must also include the - * `recurringProcessingModel` parameter. + * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. When set to **askForConsent** or **enabled**, you must also include the `recurringProcessingModel` parameter. */ public enum StorePaymentMethodModeEnum { + ASKFORCONSENT(String.valueOf("askForConsent")), DISABLED(String.valueOf("disabled")), @@ -373,7 +365,7 @@ public enum StorePaymentMethodModeEnum { private String value; StorePaymentMethodModeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -394,11 +386,7 @@ public static StorePaymentMethodModeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StorePaymentMethodModeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StorePaymentMethodModeEnum.values())); + LOG.warning("StorePaymentMethodModeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StorePaymentMethodModeEnum.values())); return null; } } @@ -421,25 +409,23 @@ public static StorePaymentMethodModeEnum fromValue(String value) { public static final String JSON_PROPERTY_URL = "url"; private String url; - public PaymentLinkResponse() {} + public PaymentLinkResponse() { + } @JsonCreator public PaymentLinkResponse( - @JsonProperty(JSON_PROPERTY_ID) String id, @JsonProperty(JSON_PROPERTY_URL) String url) { + @JsonProperty(JSON_PROPERTY_ID) String id, + @JsonProperty(JSON_PROPERTY_URL) String url + ) { this(); this.id = id; this.url = url; } /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their - * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer - * to payment methods, use their [payment method - * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse allowedPaymentMethods(List allowedPaymentMethods) { @@ -456,14 +442,8 @@ public PaymentLinkResponse addAllowedPaymentMethodsItem(String allowedPaymentMet } /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their - * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` - * - * @return allowedPaymentMethods List of payment methods to be presented to the shopper. To refer - * to payment methods, use their [payment method - * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @return allowedPaymentMethods List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -472,14 +452,9 @@ public List getAllowedPaymentMethods() { } /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their - * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer - * to payment methods, use their [payment method - * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -490,7 +465,7 @@ public void setAllowedPaymentMethods(List allowedPaymentMethods) { /** * amount * - * @param amount + * @param amount * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse amount(Amount amount) { @@ -500,8 +475,7 @@ public PaymentLinkResponse amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -512,7 +486,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -523,7 +497,7 @@ public void setAmount(Amount amount) { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse applicationInfo(ApplicationInfo applicationInfo) { @@ -533,8 +507,7 @@ public PaymentLinkResponse applicationInfo(ApplicationInfo applicationInfo) { /** * Get applicationInfo - * - * @return applicationInfo + * @return applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -545,7 +518,7 @@ public ApplicationInfo getApplicationInfo() { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -556,7 +529,7 @@ public void setApplicationInfo(ApplicationInfo applicationInfo) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse billingAddress(Address billingAddress) { @@ -566,8 +539,7 @@ public PaymentLinkResponse billingAddress(Address billingAddress) { /** * Get billingAddress - * - * @return billingAddress + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -578,7 +550,7 @@ public Address getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -587,14 +559,9 @@ public void setBillingAddress(Address billingAddress) { } /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their - * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to - * payment methods, use their [payment method - * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse blockedPaymentMethods(List blockedPaymentMethods) { @@ -611,14 +578,8 @@ public PaymentLinkResponse addBlockedPaymentMethodsItem(String blockedPaymentMet } /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their - * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` - * - * @return blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer - * to payment methods, use their [payment method - * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @return blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_BLOCKED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -627,14 +588,9 @@ public List getBlockedPaymentMethods() { } /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their - * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to - * payment methods, use their [payment method - * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_BLOCKED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -645,8 +601,7 @@ public void setBlockedPaymentMethods(List blockedPaymentMethods) { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, - * specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse captureDelayHours(Integer captureDelayHours) { @@ -656,9 +611,7 @@ public PaymentLinkResponse captureDelayHours(Integer captureDelayHours) { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. - * - * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, - * specified in hours. + * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -669,8 +622,7 @@ public Integer getCaptureDelayHours() { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, - * specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -691,7 +643,6 @@ public PaymentLinkResponse countryCode(String countryCode) { /** * The shopper's two-letter country code. - * * @return countryCode The shopper's two-letter country code. */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @@ -712,11 +663,9 @@ public void setCountryCode(String countryCode) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): - * YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse dateOfBirth(LocalDate dateOfBirth) { @@ -725,11 +674,8 @@ public PaymentLinkResponse dateOfBirth(LocalDate dateOfBirth) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): - * YYYY-MM-DD - * - * @return dateOfBirth The shopper's date of birth. Format - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @return dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -738,11 +684,9 @@ public LocalDate getDateOfBirth() { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): - * YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -751,13 +695,9 @@ public void setDateOfBirth(LocalDate dateOfBirth) { } /** - * The date and time when the purchased goods should be delivered. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. + * The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. * - * @param deliverAt The date and time when the purchased goods should be delivered. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. + * @param deliverAt The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse deliverAt(OffsetDateTime deliverAt) { @@ -766,13 +706,8 @@ public PaymentLinkResponse deliverAt(OffsetDateTime deliverAt) { } /** - * The date and time when the purchased goods should be delivered. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. - * - * @return deliverAt The date and time when the purchased goods should be delivered. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. + * The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * @return deliverAt The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_DELIVER_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -781,13 +716,9 @@ public OffsetDateTime getDeliverAt() { } /** - * The date and time when the purchased goods should be delivered. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. + * The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. * - * @param deliverAt The date and time when the purchased goods should be delivered. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. + * @param deliverAt The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_DELIVER_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -798,7 +729,7 @@ public void setDeliverAt(OffsetDateTime deliverAt) { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse deliveryAddress(Address deliveryAddress) { @@ -808,8 +739,7 @@ public PaymentLinkResponse deliveryAddress(Address deliveryAddress) { /** * Get deliveryAddress - * - * @return deliveryAddress + * @return deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -820,7 +750,7 @@ public Address getDeliveryAddress() { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -831,8 +761,7 @@ public void setDeliveryAddress(Address deliveryAddress) { /** * A short description visible on the payment page. Maximum length: 280 characters. * - * @param description A short description visible on the payment page. Maximum length: 280 - * characters. + * @param description A short description visible on the payment page. Maximum length: 280 characters. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse description(String description) { @@ -842,9 +771,7 @@ public PaymentLinkResponse description(String description) { /** * A short description visible on the payment page. Maximum length: 280 characters. - * - * @return description A short description visible on the payment page. Maximum length: 280 - * characters. + * @return description A short description visible on the payment page. Maximum length: 280 characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -855,8 +782,7 @@ public String getDescription() { /** * A short description visible on the payment page. Maximum length: 280 characters. * - * @param description A short description visible on the payment page. Maximum length: 280 - * characters. + * @param description A short description visible on the payment page. Maximum length: 280 characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -865,16 +791,9 @@ public void setDescription(String description) { } /** - * The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format - * with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The - * maximum expiry date is 70 days after the payment link is created. If not provided, the payment - * link expires 24 hours after it was created. + * The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created. * - * @param expiresAt The date when the payment link expires. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: - * YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry - * date is 70 days after the payment link is created. If not provided, the payment link - * expires 24 hours after it was created. + * @param expiresAt The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse expiresAt(OffsetDateTime expiresAt) { @@ -883,16 +802,8 @@ public PaymentLinkResponse expiresAt(OffsetDateTime expiresAt) { } /** - * The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format - * with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The - * maximum expiry date is 70 days after the payment link is created. If not provided, the payment - * link expires 24 hours after it was created. - * - * @return expiresAt The date when the payment link expires. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: - * YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry - * date is 70 days after the payment link is created. If not provided, the payment link - * expires 24 hours after it was created. + * The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created. + * @return expiresAt The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -901,16 +812,9 @@ public OffsetDateTime getExpiresAt() { } /** - * The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format - * with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The - * maximum expiry date is 70 days after the payment link is created. If not provided, the payment - * link expires 24 hours after it was created. + * The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created. * - * @param expiresAt The date when the payment link expires. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: - * YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry - * date is 70 days after the payment link is created. If not provided, the payment link - * expires 24 hours after it was created. + * @param expiresAt The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -921,7 +825,7 @@ public void setExpiresAt(OffsetDateTime expiresAt) { /** * fundOrigin * - * @param fundOrigin + * @param fundOrigin * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse fundOrigin(FundOrigin fundOrigin) { @@ -931,8 +835,7 @@ public PaymentLinkResponse fundOrigin(FundOrigin fundOrigin) { /** * Get fundOrigin - * - * @return fundOrigin + * @return fundOrigin */ @JsonProperty(JSON_PROPERTY_FUND_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -943,7 +846,7 @@ public FundOrigin getFundOrigin() { /** * fundOrigin * - * @param fundOrigin + * @param fundOrigin */ @JsonProperty(JSON_PROPERTY_FUND_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -954,7 +857,7 @@ public void setFundOrigin(FundOrigin fundOrigin) { /** * fundRecipient * - * @param fundRecipient + * @param fundRecipient * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse fundRecipient(FundRecipient fundRecipient) { @@ -964,8 +867,7 @@ public PaymentLinkResponse fundRecipient(FundRecipient fundRecipient) { /** * Get fundRecipient - * - * @return fundRecipient + * @return fundRecipient */ @JsonProperty(JSON_PROPERTY_FUND_RECIPIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -976,7 +878,7 @@ public FundRecipient getFundRecipient() { /** * fundRecipient * - * @param fundRecipient + * @param fundRecipient */ @JsonProperty(JSON_PROPERTY_FUND_RECIPIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -986,7 +888,6 @@ public void setFundRecipient(FundRecipient fundRecipient) { /** * A unique identifier of the payment link. - * * @return id A unique identifier of the payment link. */ @JsonProperty(JSON_PROPERTY_ID) @@ -995,16 +896,11 @@ public String getId() { return id; } + /** - * A set of key-value pairs that specifies the installment options available per payment method. - * The key must be a payment method name in lowercase. For example, **card** to specify - * installment options for all cards, or **visa** or **mc**. The value must be an object - * containing the installment options. + * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. * - * @param installmentOptions A set of key-value pairs that specifies the installment options - * available per payment method. The key must be a payment method name in lowercase. For - * example, **card** to specify installment options for all cards, or **visa** or **mc**. The - * value must be an object containing the installment options. + * @param installmentOptions A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse installmentOptions(Map installmentOptions) { @@ -1012,8 +908,7 @@ public PaymentLinkResponse installmentOptions(Map ins return this; } - public PaymentLinkResponse putInstallmentOptionsItem( - String key, InstallmentOption installmentOptionsItem) { + public PaymentLinkResponse putInstallmentOptionsItem(String key, InstallmentOption installmentOptionsItem) { if (this.installmentOptions == null) { this.installmentOptions = new HashMap<>(); } @@ -1022,15 +917,8 @@ public PaymentLinkResponse putInstallmentOptionsItem( } /** - * A set of key-value pairs that specifies the installment options available per payment method. - * The key must be a payment method name in lowercase. For example, **card** to specify - * installment options for all cards, or **visa** or **mc**. The value must be an object - * containing the installment options. - * - * @return installmentOptions A set of key-value pairs that specifies the installment options - * available per payment method. The key must be a payment method name in lowercase. For - * example, **card** to specify installment options for all cards, or **visa** or **mc**. The - * value must be an object containing the installment options. + * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. + * @return installmentOptions A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1039,15 +927,9 @@ public Map getInstallmentOptions() { } /** - * A set of key-value pairs that specifies the installment options available per payment method. - * The key must be a payment method name in lowercase. For example, **card** to specify - * installment options for all cards, or **visa** or **mc**. The value must be an object - * containing the installment options. + * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. * - * @param installmentOptions A set of key-value pairs that specifies the installment options - * available per payment method. The key must be a payment method name in lowercase. For - * example, **card** to specify installment options for all cards, or **visa** or **mc**. The - * value must be an object containing the installment options. + * @param installmentOptions A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1056,13 +938,9 @@ public void setInstallmentOptions(Map installmentOpti } /** - * Price and product information about the purchased items, to be included on the invoice sent to - * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, - * Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. * - * @param lineItems Price and product information about the purchased items, to be included on the - * invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, - * Clearpay, Klarna, Ratepay, and Riverty. + * @param lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse lineItems(List lineItems) { @@ -1079,13 +957,8 @@ public PaymentLinkResponse addLineItemsItem(LineItem lineItemsItem) { } /** - * Price and product information about the purchased items, to be included on the invoice sent to - * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, - * Ratepay, and Riverty. - * - * @return lineItems Price and product information about the purchased items, to be included on - * the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, - * Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * @return lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1094,13 +967,9 @@ public List getLineItems() { } /** - * Price and product information about the purchased items, to be included on the invoice sent to - * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, - * Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. * - * @param lineItems Price and product information about the purchased items, to be included on the - * invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, - * Clearpay, Klarna, Ratepay, and Riverty. + * @param lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1109,11 +978,9 @@ public void setLineItems(List lineItems) { } /** - * Indicates if the payment must be [captured - * manually](https://docs.adyen.com/online-payments/capture). + * Indicates if the payment must be [captured manually](https://docs.adyen.com/online-payments/capture). * - * @param manualCapture Indicates if the payment must be [captured - * manually](https://docs.adyen.com/online-payments/capture). + * @param manualCapture Indicates if the payment must be [captured manually](https://docs.adyen.com/online-payments/capture). * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse manualCapture(Boolean manualCapture) { @@ -1122,11 +989,8 @@ public PaymentLinkResponse manualCapture(Boolean manualCapture) { } /** - * Indicates if the payment must be [captured - * manually](https://docs.adyen.com/online-payments/capture). - * - * @return manualCapture Indicates if the payment must be [captured - * manually](https://docs.adyen.com/online-payments/capture). + * Indicates if the payment must be [captured manually](https://docs.adyen.com/online-payments/capture). + * @return manualCapture Indicates if the payment must be [captured manually](https://docs.adyen.com/online-payments/capture). */ @JsonProperty(JSON_PROPERTY_MANUAL_CAPTURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1135,11 +999,9 @@ public Boolean getManualCapture() { } /** - * Indicates if the payment must be [captured - * manually](https://docs.adyen.com/online-payments/capture). + * Indicates if the payment must be [captured manually](https://docs.adyen.com/online-payments/capture). * - * @param manualCapture Indicates if the payment must be [captured - * manually](https://docs.adyen.com/online-payments/capture). + * @param manualCapture Indicates if the payment must be [captured manually](https://docs.adyen.com/online-payments/capture). */ @JsonProperty(JSON_PROPERTY_MANUAL_CAPTURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1148,13 +1010,9 @@ public void setManualCapture(Boolean manualCapture) { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a - * four-digit number, which relates to a particular market segment. This code reflects the - * predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) - * (MCC) is a four-digit number, which relates to a particular market segment. This code - * reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse mcc(String mcc) { @@ -1163,13 +1021,8 @@ public PaymentLinkResponse mcc(String mcc) { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a - * four-digit number, which relates to a particular market segment. This code reflects the - * predominant activity that is conducted by the merchant. - * - * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) - * (MCC) is a four-digit number, which relates to a particular market segment. This code - * reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1178,13 +1031,9 @@ public String getMcc() { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a - * four-digit number, which relates to a particular market segment. This code reflects the - * predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) - * (MCC) is a four-digit number, which relates to a particular market segment. This code - * reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1205,7 +1054,6 @@ public PaymentLinkResponse merchantAccount(String merchantAccount) { /** * The merchant account identifier for which the payment link is created. - * * @return merchantAccount The merchant account identifier for which the payment link is created. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -1226,12 +1074,9 @@ public void setMerchantAccount(String merchantAccount) { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (for - * example, order auth-rate). The reference should be unique per billing cycle. + * This reference allows linking multiple transactions to each other for reporting purposes (for example, order auth-rate). The reference should be unique per billing cycle. * - * @param merchantOrderReference This reference allows linking multiple transactions to each other - * for reporting purposes (for example, order auth-rate). The reference should be unique per - * billing cycle. + * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (for example, order auth-rate). The reference should be unique per billing cycle. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse merchantOrderReference(String merchantOrderReference) { @@ -1240,12 +1085,8 @@ public PaymentLinkResponse merchantOrderReference(String merchantOrderReference) } /** - * This reference allows linking multiple transactions to each other for reporting purposes (for - * example, order auth-rate). The reference should be unique per billing cycle. - * - * @return merchantOrderReference This reference allows linking multiple transactions to each - * other for reporting purposes (for example, order auth-rate). The reference should be unique - * per billing cycle. + * This reference allows linking multiple transactions to each other for reporting purposes (for example, order auth-rate). The reference should be unique per billing cycle. + * @return merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (for example, order auth-rate). The reference should be unique per billing cycle. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1254,12 +1095,9 @@ public String getMerchantOrderReference() { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (for - * example, order auth-rate). The reference should be unique per billing cycle. + * This reference allows linking multiple transactions to each other for reporting purposes (for example, order auth-rate). The reference should be unique per billing cycle. * - * @param merchantOrderReference This reference allows linking multiple transactions to each other - * for reporting purposes (for example, order auth-rate). The reference should be unique per - * billing cycle. + * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (for example, order auth-rate). The reference should be unique per billing cycle. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1268,19 +1106,9 @@ public void setMerchantOrderReference(String merchantOrderReference) { } /** - * Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum - * 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size - * exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" - * occurs: \"Metadata key size exceeds limit\" * A key cannot have the name - * `checkout.linkId`. Any value that you provide with this key is going to be replaced - * by the real payment link ID. + * Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * A key cannot have the name `checkout.linkId`. Any value that you provide with this key is going to be replaced by the real payment link ID. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. - * Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" - * occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. - * Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * - * A key cannot have the name `checkout.linkId`. Any value that you provide with - * this key is going to be replaced by the real payment link ID. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * A key cannot have the name `checkout.linkId`. Any value that you provide with this key is going to be replaced by the real payment link ID. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse metadata(Map metadata) { @@ -1297,19 +1125,8 @@ public PaymentLinkResponse putMetadataItem(String key, String metadataItem) { } /** - * Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum - * 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size - * exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" - * occurs: \"Metadata key size exceeds limit\" * A key cannot have the name - * `checkout.linkId`. Any value that you provide with this key is going to be replaced - * by the real payment link ID. - * - * @return metadata Metadata consists of entries, each of which includes a key and a value. - * Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" - * occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. - * Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * - * A key cannot have the name `checkout.linkId`. Any value that you provide with - * this key is going to be replaced by the real payment link ID. + * Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * A key cannot have the name `checkout.linkId`. Any value that you provide with this key is going to be replaced by the real payment link ID. + * @return metadata Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * A key cannot have the name `checkout.linkId`. Any value that you provide with this key is going to be replaced by the real payment link ID. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1318,19 +1135,9 @@ public Map getMetadata() { } /** - * Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum - * 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size - * exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" - * occurs: \"Metadata key size exceeds limit\" * A key cannot have the name - * `checkout.linkId`. Any value that you provide with this key is going to be replaced - * by the real payment link ID. + * Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * A key cannot have the name `checkout.linkId`. Any value that you provide with this key is going to be replaced by the real payment link ID. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. - * Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" - * occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. - * Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * - * A key cannot have the name `checkout.linkId`. Any value that you provide with - * this key is going to be replaced by the real payment link ID. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * A key cannot have the name `checkout.linkId`. Any value that you provide with this key is going to be replaced by the real payment link ID. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1341,19 +1148,17 @@ public void setMetadata(Map metadata) { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ - public PaymentLinkResponse platformChargebackLogic( - PlatformChargebackLogic platformChargebackLogic) { + public PaymentLinkResponse platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) { this.platformChargebackLogic = platformChargebackLogic; return this; } /** * Get platformChargebackLogic - * - * @return platformChargebackLogic + * @return platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1364,7 +1169,7 @@ public PlatformChargebackLogic getPlatformChargebackLogic() { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1373,53 +1178,19 @@ public void setPlatformChargebackLogic(PlatformChargebackLogic platformChargebac } /** - * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to - * **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a - * fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a - * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An - * unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. - * - * @param recurringProcessingModel Defines a recurring payment type. Required when - * `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible - * values: * **Subscription** – A transaction for a fixed or variable amount, which follows a - * fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are - * stored to enable one-click or omnichannel journeys, or simply to streamline the checkout - * process. Any subscription not following a fixed schedule is also considered a card-on-file - * transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction - * is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For - * example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * + * @param recurringProcessingModel Defines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ - public PaymentLinkResponse recurringProcessingModel( - RecurringProcessingModelEnum recurringProcessingModel) { + public PaymentLinkResponse recurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) { this.recurringProcessingModel = recurringProcessingModel; return this; } /** - * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to - * **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a - * fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a - * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An - * unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. - * - * @return recurringProcessingModel Defines a recurring payment type. Required when - * `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible - * values: * **Subscription** – A transaction for a fixed or variable amount, which follows a - * fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are - * stored to enable one-click or omnichannel journeys, or simply to streamline the checkout - * process. Any subscription not following a fixed schedule is also considered a card-on-file - * transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction - * is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For - * example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * @return recurringProcessingModel Defines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1428,25 +1199,9 @@ public RecurringProcessingModelEnum getRecurringProcessingModel() { } /** - * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to - * **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a - * fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a - * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An - * unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. + * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. * - * @param recurringProcessingModel Defines a recurring payment type. Required when - * `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible - * values: * **Subscription** – A transaction for a fixed or variable amount, which follows a - * fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are - * stored to enable one-click or omnichannel journeys, or simply to streamline the checkout - * process. Any subscription not following a fixed schedule is also considered a card-on-file - * transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction - * is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For - * example, automatic top-ups when a cardholder's balance drops below a certain amount. + * @param recurringProcessingModel Defines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1455,11 +1210,9 @@ public void setRecurringProcessingModel(RecurringProcessingModelEnum recurringPr } /** - * A reference that is used to uniquely identify the payment in future communications about the - * payment status. + * A reference that is used to uniquely identify the payment in future communications about the payment status. * - * @param reference A reference that is used to uniquely identify the payment in future - * communications about the payment status. + * @param reference A reference that is used to uniquely identify the payment in future communications about the payment status. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse reference(String reference) { @@ -1468,11 +1221,8 @@ public PaymentLinkResponse reference(String reference) { } /** - * A reference that is used to uniquely identify the payment in future communications about the - * payment status. - * - * @return reference A reference that is used to uniquely identify the payment in future - * communications about the payment status. + * A reference that is used to uniquely identify the payment in future communications about the payment status. + * @return reference A reference that is used to uniquely identify the payment in future communications about the payment status. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1481,11 +1231,9 @@ public String getReference() { } /** - * A reference that is used to uniquely identify the payment in future communications about the - * payment status. + * A reference that is used to uniquely identify the payment in future communications about the payment status. * - * @param reference A reference that is used to uniquely identify the payment in future - * communications about the payment status. + * @param reference A reference that is used to uniquely identify the payment in future communications about the payment status. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1494,31 +1242,17 @@ public void setReference(String reference) { } /** - * List of fields that the shopper has to provide on the payment page before completing the - * payment. For more information, refer to [Provide shopper - * information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). - * Possible values: * **billingAddress** – The address where to send the invoice. * - * **deliveryAddress** – The address where the purchased goods should be delivered. * - * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full - * name. * **telephoneNumber** – The shopper's phone number. + * List of fields that the shopper has to provide on the payment page before completing the payment. For more information, refer to [Provide shopper information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). Possible values: * **billingAddress** – The address where to send the invoice. * **deliveryAddress** – The address where the purchased goods should be delivered. * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full name. * **telephoneNumber** – The shopper's phone number. * - * @param requiredShopperFields List of fields that the shopper has to provide on the payment page - * before completing the payment. For more information, refer to [Provide shopper - * information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). - * Possible values: * **billingAddress** – The address where to send the invoice. * - * **deliveryAddress** – The address where the purchased goods should be delivered. * - * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's - * full name. * **telephoneNumber** – The shopper's phone number. + * @param requiredShopperFields List of fields that the shopper has to provide on the payment page before completing the payment. For more information, refer to [Provide shopper information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). Possible values: * **billingAddress** – The address where to send the invoice. * **deliveryAddress** – The address where the purchased goods should be delivered. * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full name. * **telephoneNumber** – The shopper's phone number. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ - public PaymentLinkResponse requiredShopperFields( - List requiredShopperFields) { + public PaymentLinkResponse requiredShopperFields(List requiredShopperFields) { this.requiredShopperFields = requiredShopperFields; return this; } - public PaymentLinkResponse addRequiredShopperFieldsItem( - RequiredShopperFieldsEnum requiredShopperFieldsItem) { + public PaymentLinkResponse addRequiredShopperFieldsItem(RequiredShopperFieldsEnum requiredShopperFieldsItem) { if (this.requiredShopperFields == null) { this.requiredShopperFields = new ArrayList<>(); } @@ -1527,21 +1261,8 @@ public PaymentLinkResponse addRequiredShopperFieldsItem( } /** - * List of fields that the shopper has to provide on the payment page before completing the - * payment. For more information, refer to [Provide shopper - * information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). - * Possible values: * **billingAddress** – The address where to send the invoice. * - * **deliveryAddress** – The address where the purchased goods should be delivered. * - * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full - * name. * **telephoneNumber** – The shopper's phone number. - * - * @return requiredShopperFields List of fields that the shopper has to provide on the payment - * page before completing the payment. For more information, refer to [Provide shopper - * information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). - * Possible values: * **billingAddress** – The address where to send the invoice. * - * **deliveryAddress** – The address where the purchased goods should be delivered. * - * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's - * full name. * **telephoneNumber** – The shopper's phone number. + * List of fields that the shopper has to provide on the payment page before completing the payment. For more information, refer to [Provide shopper information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). Possible values: * **billingAddress** – The address where to send the invoice. * **deliveryAddress** – The address where the purchased goods should be delivered. * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full name. * **telephoneNumber** – The shopper's phone number. + * @return requiredShopperFields List of fields that the shopper has to provide on the payment page before completing the payment. For more information, refer to [Provide shopper information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). Possible values: * **billingAddress** – The address where to send the invoice. * **deliveryAddress** – The address where the purchased goods should be delivered. * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full name. * **telephoneNumber** – The shopper's phone number. */ @JsonProperty(JSON_PROPERTY_REQUIRED_SHOPPER_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1550,21 +1271,9 @@ public List getRequiredShopperFields() { } /** - * List of fields that the shopper has to provide on the payment page before completing the - * payment. For more information, refer to [Provide shopper - * information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). - * Possible values: * **billingAddress** – The address where to send the invoice. * - * **deliveryAddress** – The address where the purchased goods should be delivered. * - * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full - * name. * **telephoneNumber** – The shopper's phone number. + * List of fields that the shopper has to provide on the payment page before completing the payment. For more information, refer to [Provide shopper information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). Possible values: * **billingAddress** – The address where to send the invoice. * **deliveryAddress** – The address where the purchased goods should be delivered. * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full name. * **telephoneNumber** – The shopper's phone number. * - * @param requiredShopperFields List of fields that the shopper has to provide on the payment page - * before completing the payment. For more information, refer to [Provide shopper - * information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). - * Possible values: * **billingAddress** – The address where to send the invoice. * - * **deliveryAddress** – The address where the purchased goods should be delivered. * - * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's - * full name. * **telephoneNumber** – The shopper's phone number. + * @param requiredShopperFields List of fields that the shopper has to provide on the payment page before completing the payment. For more information, refer to [Provide shopper information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). Possible values: * **billingAddress** – The address where to send the invoice. * **deliveryAddress** – The address where the purchased goods should be delivered. * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full name. * **telephoneNumber** – The shopper's phone number. */ @JsonProperty(JSON_PROPERTY_REQUIRED_SHOPPER_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1573,13 +1282,9 @@ public void setRequiredShopperFields(List requiredSho } /** - * Website URL used for redirection after payment is completed. If provided, a **Continue** button - * will be shown on the payment page. If shoppers select the button, they are redirected to the - * specified URL. + * Website URL used for redirection after payment is completed. If provided, a **Continue** button will be shown on the payment page. If shoppers select the button, they are redirected to the specified URL. * - * @param returnUrl Website URL used for redirection after payment is completed. If provided, a - * **Continue** button will be shown on the payment page. If shoppers select the button, they - * are redirected to the specified URL. + * @param returnUrl Website URL used for redirection after payment is completed. If provided, a **Continue** button will be shown on the payment page. If shoppers select the button, they are redirected to the specified URL. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse returnUrl(String returnUrl) { @@ -1588,13 +1293,8 @@ public PaymentLinkResponse returnUrl(String returnUrl) { } /** - * Website URL used for redirection after payment is completed. If provided, a **Continue** button - * will be shown on the payment page. If shoppers select the button, they are redirected to the - * specified URL. - * - * @return returnUrl Website URL used for redirection after payment is completed. If provided, a - * **Continue** button will be shown on the payment page. If shoppers select the button, they - * are redirected to the specified URL. + * Website URL used for redirection after payment is completed. If provided, a **Continue** button will be shown on the payment page. If shoppers select the button, they are redirected to the specified URL. + * @return returnUrl Website URL used for redirection after payment is completed. If provided, a **Continue** button will be shown on the payment page. If shoppers select the button, they are redirected to the specified URL. */ @JsonProperty(JSON_PROPERTY_RETURN_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1603,13 +1303,9 @@ public String getReturnUrl() { } /** - * Website URL used for redirection after payment is completed. If provided, a **Continue** button - * will be shown on the payment page. If shoppers select the button, they are redirected to the - * specified URL. + * Website URL used for redirection after payment is completed. If provided, a **Continue** button will be shown on the payment page. If shoppers select the button, they are redirected to the specified URL. * - * @param returnUrl Website URL used for redirection after payment is completed. If provided, a - * **Continue** button will be shown on the payment page. If shoppers select the button, they - * are redirected to the specified URL. + * @param returnUrl Website URL used for redirection after payment is completed. If provided, a **Continue** button will be shown on the payment page. If shoppers select the button, they are redirected to the specified URL. */ @JsonProperty(JSON_PROPERTY_RETURN_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1618,12 +1314,9 @@ public void setReturnUrl(String returnUrl) { } /** - * Indicates whether the payment link can be reused for multiple payments. If not provided, this - * defaults to **false** which means the link can be used for one successful payment only. + * Indicates whether the payment link can be reused for multiple payments. If not provided, this defaults to **false** which means the link can be used for one successful payment only. * - * @param reusable Indicates whether the payment link can be reused for multiple payments. If not - * provided, this defaults to **false** which means the link can be used for one successful - * payment only. + * @param reusable Indicates whether the payment link can be reused for multiple payments. If not provided, this defaults to **false** which means the link can be used for one successful payment only. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse reusable(Boolean reusable) { @@ -1632,12 +1325,8 @@ public PaymentLinkResponse reusable(Boolean reusable) { } /** - * Indicates whether the payment link can be reused for multiple payments. If not provided, this - * defaults to **false** which means the link can be used for one successful payment only. - * - * @return reusable Indicates whether the payment link can be reused for multiple payments. If not - * provided, this defaults to **false** which means the link can be used for one successful - * payment only. + * Indicates whether the payment link can be reused for multiple payments. If not provided, this defaults to **false** which means the link can be used for one successful payment only. + * @return reusable Indicates whether the payment link can be reused for multiple payments. If not provided, this defaults to **false** which means the link can be used for one successful payment only. */ @JsonProperty(JSON_PROPERTY_REUSABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1646,12 +1335,9 @@ public Boolean getReusable() { } /** - * Indicates whether the payment link can be reused for multiple payments. If not provided, this - * defaults to **false** which means the link can be used for one successful payment only. + * Indicates whether the payment link can be reused for multiple payments. If not provided, this defaults to **false** which means the link can be used for one successful payment only. * - * @param reusable Indicates whether the payment link can be reused for multiple payments. If not - * provided, this defaults to **false** which means the link can be used for one successful - * payment only. + * @param reusable Indicates whether the payment link can be reused for multiple payments. If not provided, this defaults to **false** which means the link can be used for one successful payment only. */ @JsonProperty(JSON_PROPERTY_REUSABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1662,7 +1348,7 @@ public void setReusable(Boolean reusable) { /** * riskData * - * @param riskData + * @param riskData * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse riskData(RiskData riskData) { @@ -1672,8 +1358,7 @@ public PaymentLinkResponse riskData(RiskData riskData) { /** * Get riskData - * - * @return riskData + * @return riskData */ @JsonProperty(JSON_PROPERTY_RISK_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1684,7 +1369,7 @@ public RiskData getRiskData() { /** * riskData * - * @param riskData + * @param riskData */ @JsonProperty(JSON_PROPERTY_RISK_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1705,7 +1390,6 @@ public PaymentLinkResponse shopperEmail(String shopperEmail) { /** * The shopper's email address. - * * @return shopperEmail The shopper's email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -1726,15 +1410,9 @@ public void setShopperEmail(String shopperEmail) { } /** - * The language to be used in the payment page, specified by a combination of a language and - * country code. For example, `en-US`. For a list of shopper locales that Pay by Link - * supports, refer to [Language and - * localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). + * The language to be used in the payment page, specified by a combination of a language and country code. For example, `en-US`. For a list of shopper locales that Pay by Link supports, refer to [Language and localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). * - * @param shopperLocale The language to be used in the payment page, specified by a combination of - * a language and country code. For example, `en-US`. For a list of shopper locales - * that Pay by Link supports, refer to [Language and - * localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). + * @param shopperLocale The language to be used in the payment page, specified by a combination of a language and country code. For example, `en-US`. For a list of shopper locales that Pay by Link supports, refer to [Language and localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse shopperLocale(String shopperLocale) { @@ -1743,15 +1421,8 @@ public PaymentLinkResponse shopperLocale(String shopperLocale) { } /** - * The language to be used in the payment page, specified by a combination of a language and - * country code. For example, `en-US`. For a list of shopper locales that Pay by Link - * supports, refer to [Language and - * localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). - * - * @return shopperLocale The language to be used in the payment page, specified by a combination - * of a language and country code. For example, `en-US`. For a list of shopper - * locales that Pay by Link supports, refer to [Language and - * localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). + * The language to be used in the payment page, specified by a combination of a language and country code. For example, `en-US`. For a list of shopper locales that Pay by Link supports, refer to [Language and localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). + * @return shopperLocale The language to be used in the payment page, specified by a combination of a language and country code. For example, `en-US`. For a list of shopper locales that Pay by Link supports, refer to [Language and localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1760,15 +1431,9 @@ public String getShopperLocale() { } /** - * The language to be used in the payment page, specified by a combination of a language and - * country code. For example, `en-US`. For a list of shopper locales that Pay by Link - * supports, refer to [Language and - * localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). + * The language to be used in the payment page, specified by a combination of a language and country code. For example, `en-US`. For a list of shopper locales that Pay by Link supports, refer to [Language and localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). * - * @param shopperLocale The language to be used in the payment page, specified by a combination of - * a language and country code. For example, `en-US`. For a list of shopper locales - * that Pay by Link supports, refer to [Language and - * localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). + * @param shopperLocale The language to be used in the payment page, specified by a combination of a language and country code. For example, `en-US`. For a list of shopper locales that Pay by Link supports, refer to [Language and localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1779,7 +1444,7 @@ public void setShopperLocale(String shopperLocale) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse shopperName(Name shopperName) { @@ -1789,8 +1454,7 @@ public PaymentLinkResponse shopperName(Name shopperName) { /** * Get shopperName - * - * @return shopperName + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1801,7 +1465,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1810,14 +1474,9 @@ public void setShopperName(Name shopperName) { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. The value - * is case-sensitive and must be at least three characters. > Your reference must not include - * personally identifiable information (PII) such as name or email address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * - * @param shopperReference Your reference to uniquely identify this shopper, for example user ID - * or account ID. The value is case-sensitive and must be at least three characters. > Your - * reference must not include personally identifiable information (PII) such as name or email - * address. + * @param shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse shopperReference(String shopperReference) { @@ -1826,14 +1485,8 @@ public PaymentLinkResponse shopperReference(String shopperReference) { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. The value - * is case-sensitive and must be at least three characters. > Your reference must not include - * personally identifiable information (PII) such as name or email address. - * - * @return shopperReference Your reference to uniquely identify this shopper, for example user ID - * or account ID. The value is case-sensitive and must be at least three characters. > Your - * reference must not include personally identifiable information (PII) such as name or email - * address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @return shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1842,14 +1495,9 @@ public String getShopperReference() { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. The value - * is case-sensitive and must be at least three characters. > Your reference must not include - * personally identifiable information (PII) such as name or email address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * - * @param shopperReference Your reference to uniquely identify this shopper, for example user ID - * or account ID. The value is case-sensitive and must be at least three characters. > Your - * reference must not include personally identifiable information (PII) such as name or email - * address. + * @param shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1858,14 +1506,9 @@ public void setShopperReference(String shopperReference) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 - * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, - * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend - * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed - * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * - * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse shopperStatement(String shopperStatement) { @@ -1874,14 +1517,8 @@ public PaymentLinkResponse shopperStatement(String shopperStatement) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 - * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, - * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. - * - * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend - * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed - * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * - * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1890,14 +1527,9 @@ public String getShopperStatement() { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 - * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, - * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend - * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed - * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * - * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1908,8 +1540,7 @@ public void setShopperStatement(String shopperStatement) { /** * Set to **false** to hide the button that lets the shopper remove a stored payment method. * - * @param showRemovePaymentMethodButton Set to **false** to hide the button that lets the shopper - * remove a stored payment method. + * @param showRemovePaymentMethodButton Set to **false** to hide the button that lets the shopper remove a stored payment method. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse showRemovePaymentMethodButton(Boolean showRemovePaymentMethodButton) { @@ -1919,9 +1550,7 @@ public PaymentLinkResponse showRemovePaymentMethodButton(Boolean showRemovePayme /** * Set to **false** to hide the button that lets the shopper remove a stored payment method. - * - * @return showRemovePaymentMethodButton Set to **false** to hide the button that lets the shopper - * remove a stored payment method. + * @return showRemovePaymentMethodButton Set to **false** to hide the button that lets the shopper remove a stored payment method. */ @JsonProperty(JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1932,8 +1561,7 @@ public Boolean getShowRemovePaymentMethodButton() { /** * Set to **false** to hide the button that lets the shopper remove a stored payment method. * - * @param showRemovePaymentMethodButton Set to **false** to hide the button that lets the shopper - * remove a stored payment method. + * @param showRemovePaymentMethodButton Set to **false** to hide the button that lets the shopper remove a stored payment method. */ @JsonProperty(JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1954,7 +1582,6 @@ public PaymentLinkResponse socialSecurityNumber(String socialSecurityNumber) { /** * The shopper's social security number. - * * @return socialSecurityNumber The shopper's social security number. */ @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER) @@ -1975,11 +1602,9 @@ public void setSocialSecurityNumber(String socialSecurityNumber) { } /** - * Boolean value indicating whether the card payment method should be split into separate debit - * and credit options. + * Boolean value indicating whether the card payment method should be split into separate debit and credit options. * - * @param splitCardFundingSources Boolean value indicating whether the card payment method should - * be split into separate debit and credit options. + * @param splitCardFundingSources Boolean value indicating whether the card payment method should be split into separate debit and credit options. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse splitCardFundingSources(Boolean splitCardFundingSources) { @@ -1988,11 +1613,8 @@ public PaymentLinkResponse splitCardFundingSources(Boolean splitCardFundingSourc } /** - * Boolean value indicating whether the card payment method should be split into separate debit - * and credit options. - * - * @return splitCardFundingSources Boolean value indicating whether the card payment method should - * be split into separate debit and credit options. + * Boolean value indicating whether the card payment method should be split into separate debit and credit options. + * @return splitCardFundingSources Boolean value indicating whether the card payment method should be split into separate debit and credit options. */ @JsonProperty(JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2001,11 +1623,9 @@ public Boolean getSplitCardFundingSources() { } /** - * Boolean value indicating whether the card payment method should be split into separate debit - * and credit options. + * Boolean value indicating whether the card payment method should be split into separate debit and credit options. * - * @param splitCardFundingSources Boolean value indicating whether the card payment method should - * be split into separate debit and credit options. + * @param splitCardFundingSources Boolean value indicating whether the card payment method should be split into separate debit and credit options. */ @JsonProperty(JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2014,17 +1634,9 @@ public void setSplitCardFundingSources(Boolean splitCardFundingSources) { } /** - * An array of objects specifying how to split a payment when using [Adyen for - * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), - * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), - * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). * - * @param splits An array of objects specifying how to split a payment when using [Adyen for - * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), - * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), - * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * @param splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse splits(List splits) { @@ -2041,17 +1653,8 @@ public PaymentLinkResponse addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how to split a payment when using [Adyen for - * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), - * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), - * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). - * - * @return splits An array of objects specifying how to split a payment when using [Adyen for - * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), - * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), - * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * @return splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2060,17 +1663,9 @@ public List getSplits() { } /** - * An array of objects specifying how to split a payment when using [Adyen for - * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), - * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), - * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). * - * @param splits An array of objects specifying how to split a payment when using [Adyen for - * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), - * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), - * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * @param splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2079,17 +1674,9 @@ public void setSplits(List splits) { } /** - * Status of the payment link. Possible values: * **active**: The link can be used to make - * payments. * **expired**: The expiry date for the payment link has passed. Shoppers can no - * longer use the link to make payments. * **completed**: The shopper completed the payment. * - * **paymentPending**: The shopper is in the process of making the payment. Applies to payment - * methods with an asynchronous flow. + * Status of the payment link. Possible values: * **active**: The link can be used to make payments. * **expired**: The expiry date for the payment link has passed. Shoppers can no longer use the link to make payments. * **completed**: The shopper completed the payment. * **paymentPending**: The shopper is in the process of making the payment. Applies to payment methods with an asynchronous flow. * - * @param status Status of the payment link. Possible values: * **active**: The link can be used - * to make payments. * **expired**: The expiry date for the payment link has passed. Shoppers - * can no longer use the link to make payments. * **completed**: The shopper completed the - * payment. * **paymentPending**: The shopper is in the process of making the payment. Applies - * to payment methods with an asynchronous flow. + * @param status Status of the payment link. Possible values: * **active**: The link can be used to make payments. * **expired**: The expiry date for the payment link has passed. Shoppers can no longer use the link to make payments. * **completed**: The shopper completed the payment. * **paymentPending**: The shopper is in the process of making the payment. Applies to payment methods with an asynchronous flow. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse status(StatusEnum status) { @@ -2098,17 +1685,8 @@ public PaymentLinkResponse status(StatusEnum status) { } /** - * Status of the payment link. Possible values: * **active**: The link can be used to make - * payments. * **expired**: The expiry date for the payment link has passed. Shoppers can no - * longer use the link to make payments. * **completed**: The shopper completed the payment. * - * **paymentPending**: The shopper is in the process of making the payment. Applies to payment - * methods with an asynchronous flow. - * - * @return status Status of the payment link. Possible values: * **active**: The link can be used - * to make payments. * **expired**: The expiry date for the payment link has passed. Shoppers - * can no longer use the link to make payments. * **completed**: The shopper completed the - * payment. * **paymentPending**: The shopper is in the process of making the payment. Applies - * to payment methods with an asynchronous flow. + * Status of the payment link. Possible values: * **active**: The link can be used to make payments. * **expired**: The expiry date for the payment link has passed. Shoppers can no longer use the link to make payments. * **completed**: The shopper completed the payment. * **paymentPending**: The shopper is in the process of making the payment. Applies to payment methods with an asynchronous flow. + * @return status Status of the payment link. Possible values: * **active**: The link can be used to make payments. * **expired**: The expiry date for the payment link has passed. Shoppers can no longer use the link to make payments. * **completed**: The shopper completed the payment. * **paymentPending**: The shopper is in the process of making the payment. Applies to payment methods with an asynchronous flow. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2117,17 +1695,9 @@ public StatusEnum getStatus() { } /** - * Status of the payment link. Possible values: * **active**: The link can be used to make - * payments. * **expired**: The expiry date for the payment link has passed. Shoppers can no - * longer use the link to make payments. * **completed**: The shopper completed the payment. * - * **paymentPending**: The shopper is in the process of making the payment. Applies to payment - * methods with an asynchronous flow. + * Status of the payment link. Possible values: * **active**: The link can be used to make payments. * **expired**: The expiry date for the payment link has passed. Shoppers can no longer use the link to make payments. * **completed**: The shopper completed the payment. * **paymentPending**: The shopper is in the process of making the payment. Applies to payment methods with an asynchronous flow. * - * @param status Status of the payment link. Possible values: * **active**: The link can be used - * to make payments. * **expired**: The expiry date for the payment link has passed. Shoppers - * can no longer use the link to make payments. * **completed**: The shopper completed the - * payment. * **paymentPending**: The shopper is in the process of making the payment. Applies - * to payment methods with an asynchronous flow. + * @param status Status of the payment link. Possible values: * **active**: The link can be used to make payments. * **expired**: The expiry date for the payment link has passed. Shoppers can no longer use the link to make payments. * **completed**: The shopper completed the payment. * **paymentPending**: The shopper is in the process of making the payment. Applies to payment methods with an asynchronous flow. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2148,7 +1718,6 @@ public PaymentLinkResponse store(String store) { /** * The physical store, for which this payment is processed. - * * @return store The physical store, for which this payment is processed. */ @JsonProperty(JSON_PROPERTY_STORE) @@ -2169,45 +1738,19 @@ public void setStore(String store) { } /** - * Indicates if the details of the payment method will be stored for the shopper. Possible values: - * * **disabled** – No details will be stored (default). * **askForConsent** – If the - * `shopperReference` is provided, the UI lets the shopper choose if they want their - * payment details to be stored. * **enabled** – If the `shopperReference` is provided, - * the details will be stored without asking the shopper for consent. When set to - * **askForConsent** or **enabled**, you must also include the - * `recurringProcessingModel` parameter. + * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. When set to **askForConsent** or **enabled**, you must also include the `recurringProcessingModel` parameter. * - * @param storePaymentMethodMode Indicates if the details of the payment method will be stored for - * the shopper. Possible values: * **disabled** – No details will be stored (default). * - * **askForConsent** – If the `shopperReference` is provided, the UI lets the - * shopper choose if they want their payment details to be stored. * **enabled** – If the - * `shopperReference` is provided, the details will be stored without asking the - * shopper for consent. When set to **askForConsent** or **enabled**, you must also include - * the `recurringProcessingModel` parameter. + * @param storePaymentMethodMode Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. When set to **askForConsent** or **enabled**, you must also include the `recurringProcessingModel` parameter. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ - public PaymentLinkResponse storePaymentMethodMode( - StorePaymentMethodModeEnum storePaymentMethodMode) { + public PaymentLinkResponse storePaymentMethodMode(StorePaymentMethodModeEnum storePaymentMethodMode) { this.storePaymentMethodMode = storePaymentMethodMode; return this; } /** - * Indicates if the details of the payment method will be stored for the shopper. Possible values: - * * **disabled** – No details will be stored (default). * **askForConsent** – If the - * `shopperReference` is provided, the UI lets the shopper choose if they want their - * payment details to be stored. * **enabled** – If the `shopperReference` is provided, - * the details will be stored without asking the shopper for consent. When set to - * **askForConsent** or **enabled**, you must also include the - * `recurringProcessingModel` parameter. - * - * @return storePaymentMethodMode Indicates if the details of the payment method will be stored - * for the shopper. Possible values: * **disabled** – No details will be stored (default). * - * **askForConsent** – If the `shopperReference` is provided, the UI lets the - * shopper choose if they want their payment details to be stored. * **enabled** – If the - * `shopperReference` is provided, the details will be stored without asking the - * shopper for consent. When set to **askForConsent** or **enabled**, you must also include - * the `recurringProcessingModel` parameter. + * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. When set to **askForConsent** or **enabled**, you must also include the `recurringProcessingModel` parameter. + * @return storePaymentMethodMode Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. When set to **askForConsent** or **enabled**, you must also include the `recurringProcessingModel` parameter. */ @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2216,21 +1759,9 @@ public StorePaymentMethodModeEnum getStorePaymentMethodMode() { } /** - * Indicates if the details of the payment method will be stored for the shopper. Possible values: - * * **disabled** – No details will be stored (default). * **askForConsent** – If the - * `shopperReference` is provided, the UI lets the shopper choose if they want their - * payment details to be stored. * **enabled** – If the `shopperReference` is provided, - * the details will be stored without asking the shopper for consent. When set to - * **askForConsent** or **enabled**, you must also include the - * `recurringProcessingModel` parameter. + * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. When set to **askForConsent** or **enabled**, you must also include the `recurringProcessingModel` parameter. * - * @param storePaymentMethodMode Indicates if the details of the payment method will be stored for - * the shopper. Possible values: * **disabled** – No details will be stored (default). * - * **askForConsent** – If the `shopperReference` is provided, the UI lets the - * shopper choose if they want their payment details to be stored. * **enabled** – If the - * `shopperReference` is provided, the details will be stored without asking the - * shopper for consent. When set to **askForConsent** or **enabled**, you must also include - * the `recurringProcessingModel` parameter. + * @param storePaymentMethodMode Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. When set to **askForConsent** or **enabled**, you must also include the `recurringProcessingModel` parameter. */ @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2239,17 +1770,9 @@ public void setStorePaymentMethodMode(StorePaymentMethodModeEnum storePaymentMet } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus - * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse telephoneNumber(String telephoneNumber) { @@ -2258,17 +1781,8 @@ public PaymentLinkResponse telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. - * - * @return telephoneNumber The shopper's telephone number. The phone number must include a - * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @return telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2277,17 +1791,9 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus - * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2296,14 +1802,9 @@ public void setTelephoneNumber(String telephoneNumber) { } /** - * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to - * customize the appearance of the payment page. If not specified, the payment page is rendered - * according to the theme set as default in your Customer Area. + * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. * - * @param themeId A - * [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to - * customize the appearance of the payment page. If not specified, the payment page is - * rendered according to the theme set as default in your Customer Area. + * @param themeId A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse themeId(String themeId) { @@ -2312,14 +1813,8 @@ public PaymentLinkResponse themeId(String themeId) { } /** - * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to - * customize the appearance of the payment page. If not specified, the payment page is rendered - * according to the theme set as default in your Customer Area. - * - * @return themeId A - * [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to - * customize the appearance of the payment page. If not specified, the payment page is - * rendered according to the theme set as default in your Customer Area. + * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. + * @return themeId A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. */ @JsonProperty(JSON_PROPERTY_THEME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2328,14 +1823,9 @@ public String getThemeId() { } /** - * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to - * customize the appearance of the payment page. If not specified, the payment page is rendered - * according to the theme set as default in your Customer Area. + * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. * - * @param themeId A - * [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to - * customize the appearance of the payment page. If not specified, the payment page is - * rendered according to the theme set as default in your Customer Area. + * @param themeId A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. */ @JsonProperty(JSON_PROPERTY_THEME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2346,19 +1836,17 @@ public void setThemeId(String themeId) { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ - public PaymentLinkResponse threeDS2RequestData( - CheckoutSessionThreeDS2RequestData threeDS2RequestData) { + public PaymentLinkResponse threeDS2RequestData(CheckoutSessionThreeDS2RequestData threeDS2RequestData) { this.threeDS2RequestData = threeDS2RequestData; return this; } /** * Get threeDS2RequestData - * - * @return threeDS2RequestData + * @return threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2369,7 +1857,7 @@ public CheckoutSessionThreeDS2RequestData getThreeDS2RequestData() { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2378,13 +1866,9 @@ public void setThreeDS2RequestData(CheckoutSessionThreeDS2RequestData threeDS2Re } /** - * The date when the payment link status was updated. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. + * The date when the payment link status was updated. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. * - * @param updatedAt The date when the payment link status was updated. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. + * @param updatedAt The date when the payment link status was updated. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse updatedAt(OffsetDateTime updatedAt) { @@ -2393,13 +1877,8 @@ public PaymentLinkResponse updatedAt(OffsetDateTime updatedAt) { } /** - * The date when the payment link status was updated. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. - * - * @return updatedAt The date when the payment link status was updated. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. + * The date when the payment link status was updated. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * @return updatedAt The date when the payment link status was updated. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2408,13 +1887,9 @@ public OffsetDateTime getUpdatedAt() { } /** - * The date when the payment link status was updated. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. + * The date when the payment link status was updated. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. * - * @param updatedAt The date when the payment link status was updated. [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, - * **2020-12-18T10:15:30+01:00**. + * @param updatedAt The date when the payment link status was updated. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2424,7 +1899,6 @@ public void setUpdatedAt(OffsetDateTime updatedAt) { /** * The URL at which the shopper can complete the payment. - * * @return url The URL at which the shopper can complete the payment. */ @JsonProperty(JSON_PROPERTY_URL) @@ -2433,7 +1907,10 @@ public String getUrl() { return url; } - /** Return true if this PaymentLinkResponse object is equal to o. */ + + /** + * Return true if this PaymentLinkResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -2443,120 +1920,68 @@ public boolean equals(Object o) { return false; } PaymentLinkResponse paymentLinkResponse = (PaymentLinkResponse) o; - return Objects.equals(this.allowedPaymentMethods, paymentLinkResponse.allowedPaymentMethods) - && Objects.equals(this.amount, paymentLinkResponse.amount) - && Objects.equals(this.applicationInfo, paymentLinkResponse.applicationInfo) - && Objects.equals(this.billingAddress, paymentLinkResponse.billingAddress) - && Objects.equals(this.blockedPaymentMethods, paymentLinkResponse.blockedPaymentMethods) - && Objects.equals(this.captureDelayHours, paymentLinkResponse.captureDelayHours) - && Objects.equals(this.countryCode, paymentLinkResponse.countryCode) - && Objects.equals(this.dateOfBirth, paymentLinkResponse.dateOfBirth) - && Objects.equals(this.deliverAt, paymentLinkResponse.deliverAt) - && Objects.equals(this.deliveryAddress, paymentLinkResponse.deliveryAddress) - && Objects.equals(this.description, paymentLinkResponse.description) - && Objects.equals(this.expiresAt, paymentLinkResponse.expiresAt) - && Objects.equals(this.fundOrigin, paymentLinkResponse.fundOrigin) - && Objects.equals(this.fundRecipient, paymentLinkResponse.fundRecipient) - && Objects.equals(this.id, paymentLinkResponse.id) - && Objects.equals(this.installmentOptions, paymentLinkResponse.installmentOptions) - && Objects.equals(this.lineItems, paymentLinkResponse.lineItems) - && Objects.equals(this.manualCapture, paymentLinkResponse.manualCapture) - && Objects.equals(this.mcc, paymentLinkResponse.mcc) - && Objects.equals(this.merchantAccount, paymentLinkResponse.merchantAccount) - && Objects.equals(this.merchantOrderReference, paymentLinkResponse.merchantOrderReference) - && Objects.equals(this.metadata, paymentLinkResponse.metadata) - && Objects.equals(this.platformChargebackLogic, paymentLinkResponse.platformChargebackLogic) - && Objects.equals( - this.recurringProcessingModel, paymentLinkResponse.recurringProcessingModel) - && Objects.equals(this.reference, paymentLinkResponse.reference) - && Objects.equals(this.requiredShopperFields, paymentLinkResponse.requiredShopperFields) - && Objects.equals(this.returnUrl, paymentLinkResponse.returnUrl) - && Objects.equals(this.reusable, paymentLinkResponse.reusable) - && Objects.equals(this.riskData, paymentLinkResponse.riskData) - && Objects.equals(this.shopperEmail, paymentLinkResponse.shopperEmail) - && Objects.equals(this.shopperLocale, paymentLinkResponse.shopperLocale) - && Objects.equals(this.shopperName, paymentLinkResponse.shopperName) - && Objects.equals(this.shopperReference, paymentLinkResponse.shopperReference) - && Objects.equals(this.shopperStatement, paymentLinkResponse.shopperStatement) - && Objects.equals( - this.showRemovePaymentMethodButton, paymentLinkResponse.showRemovePaymentMethodButton) - && Objects.equals(this.socialSecurityNumber, paymentLinkResponse.socialSecurityNumber) - && Objects.equals(this.splitCardFundingSources, paymentLinkResponse.splitCardFundingSources) - && Objects.equals(this.splits, paymentLinkResponse.splits) - && Objects.equals(this.status, paymentLinkResponse.status) - && Objects.equals(this.store, paymentLinkResponse.store) - && Objects.equals(this.storePaymentMethodMode, paymentLinkResponse.storePaymentMethodMode) - && Objects.equals(this.telephoneNumber, paymentLinkResponse.telephoneNumber) - && Objects.equals(this.themeId, paymentLinkResponse.themeId) - && Objects.equals(this.threeDS2RequestData, paymentLinkResponse.threeDS2RequestData) - && Objects.equals(this.updatedAt, paymentLinkResponse.updatedAt) - && Objects.equals(this.url, paymentLinkResponse.url); + return Objects.equals(this.allowedPaymentMethods, paymentLinkResponse.allowedPaymentMethods) && + Objects.equals(this.amount, paymentLinkResponse.amount) && + Objects.equals(this.applicationInfo, paymentLinkResponse.applicationInfo) && + Objects.equals(this.billingAddress, paymentLinkResponse.billingAddress) && + Objects.equals(this.blockedPaymentMethods, paymentLinkResponse.blockedPaymentMethods) && + Objects.equals(this.captureDelayHours, paymentLinkResponse.captureDelayHours) && + Objects.equals(this.countryCode, paymentLinkResponse.countryCode) && + Objects.equals(this.dateOfBirth, paymentLinkResponse.dateOfBirth) && + Objects.equals(this.deliverAt, paymentLinkResponse.deliverAt) && + Objects.equals(this.deliveryAddress, paymentLinkResponse.deliveryAddress) && + Objects.equals(this.description, paymentLinkResponse.description) && + Objects.equals(this.expiresAt, paymentLinkResponse.expiresAt) && + Objects.equals(this.fundOrigin, paymentLinkResponse.fundOrigin) && + Objects.equals(this.fundRecipient, paymentLinkResponse.fundRecipient) && + Objects.equals(this.id, paymentLinkResponse.id) && + Objects.equals(this.installmentOptions, paymentLinkResponse.installmentOptions) && + Objects.equals(this.lineItems, paymentLinkResponse.lineItems) && + Objects.equals(this.manualCapture, paymentLinkResponse.manualCapture) && + Objects.equals(this.mcc, paymentLinkResponse.mcc) && + Objects.equals(this.merchantAccount, paymentLinkResponse.merchantAccount) && + Objects.equals(this.merchantOrderReference, paymentLinkResponse.merchantOrderReference) && + Objects.equals(this.metadata, paymentLinkResponse.metadata) && + Objects.equals(this.platformChargebackLogic, paymentLinkResponse.platformChargebackLogic) && + Objects.equals(this.recurringProcessingModel, paymentLinkResponse.recurringProcessingModel) && + Objects.equals(this.reference, paymentLinkResponse.reference) && + Objects.equals(this.requiredShopperFields, paymentLinkResponse.requiredShopperFields) && + Objects.equals(this.returnUrl, paymentLinkResponse.returnUrl) && + Objects.equals(this.reusable, paymentLinkResponse.reusable) && + Objects.equals(this.riskData, paymentLinkResponse.riskData) && + Objects.equals(this.shopperEmail, paymentLinkResponse.shopperEmail) && + Objects.equals(this.shopperLocale, paymentLinkResponse.shopperLocale) && + Objects.equals(this.shopperName, paymentLinkResponse.shopperName) && + Objects.equals(this.shopperReference, paymentLinkResponse.shopperReference) && + Objects.equals(this.shopperStatement, paymentLinkResponse.shopperStatement) && + Objects.equals(this.showRemovePaymentMethodButton, paymentLinkResponse.showRemovePaymentMethodButton) && + Objects.equals(this.socialSecurityNumber, paymentLinkResponse.socialSecurityNumber) && + Objects.equals(this.splitCardFundingSources, paymentLinkResponse.splitCardFundingSources) && + Objects.equals(this.splits, paymentLinkResponse.splits) && + Objects.equals(this.status, paymentLinkResponse.status) && + Objects.equals(this.store, paymentLinkResponse.store) && + Objects.equals(this.storePaymentMethodMode, paymentLinkResponse.storePaymentMethodMode) && + Objects.equals(this.telephoneNumber, paymentLinkResponse.telephoneNumber) && + Objects.equals(this.themeId, paymentLinkResponse.themeId) && + Objects.equals(this.threeDS2RequestData, paymentLinkResponse.threeDS2RequestData) && + Objects.equals(this.updatedAt, paymentLinkResponse.updatedAt) && + Objects.equals(this.url, paymentLinkResponse.url); } @Override public int hashCode() { - return Objects.hash( - allowedPaymentMethods, - amount, - applicationInfo, - billingAddress, - blockedPaymentMethods, - captureDelayHours, - countryCode, - dateOfBirth, - deliverAt, - deliveryAddress, - description, - expiresAt, - fundOrigin, - fundRecipient, - id, - installmentOptions, - lineItems, - manualCapture, - mcc, - merchantAccount, - merchantOrderReference, - metadata, - platformChargebackLogic, - recurringProcessingModel, - reference, - requiredShopperFields, - returnUrl, - reusable, - riskData, - shopperEmail, - shopperLocale, - shopperName, - shopperReference, - shopperStatement, - showRemovePaymentMethodButton, - socialSecurityNumber, - splitCardFundingSources, - splits, - status, - store, - storePaymentMethodMode, - telephoneNumber, - themeId, - threeDS2RequestData, - updatedAt, - url); + return Objects.hash(allowedPaymentMethods, amount, applicationInfo, billingAddress, blockedPaymentMethods, captureDelayHours, countryCode, dateOfBirth, deliverAt, deliveryAddress, description, expiresAt, fundOrigin, fundRecipient, id, installmentOptions, lineItems, manualCapture, mcc, merchantAccount, merchantOrderReference, metadata, platformChargebackLogic, recurringProcessingModel, reference, requiredShopperFields, returnUrl, reusable, riskData, shopperEmail, shopperLocale, shopperName, shopperReference, shopperStatement, showRemovePaymentMethodButton, socialSecurityNumber, splitCardFundingSources, splits, status, store, storePaymentMethodMode, telephoneNumber, themeId, threeDS2RequestData, updatedAt, url); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentLinkResponse {\n"); - sb.append(" allowedPaymentMethods: ") - .append(toIndentedString(allowedPaymentMethods)) - .append("\n"); + sb.append(" allowedPaymentMethods: ").append(toIndentedString(allowedPaymentMethods)).append("\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" applicationInfo: ").append(toIndentedString(applicationInfo)).append("\n"); sb.append(" billingAddress: ").append(toIndentedString(billingAddress)).append("\n"); - sb.append(" blockedPaymentMethods: ") - .append(toIndentedString(blockedPaymentMethods)) - .append("\n"); + sb.append(" blockedPaymentMethods: ").append(toIndentedString(blockedPaymentMethods)).append("\n"); sb.append(" captureDelayHours: ").append(toIndentedString(captureDelayHours)).append("\n"); sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n"); sb.append(" dateOfBirth: ").append(toIndentedString(dateOfBirth)).append("\n"); @@ -2572,20 +1997,12 @@ public String toString() { sb.append(" manualCapture: ").append(toIndentedString(manualCapture)).append("\n"); sb.append(" mcc: ").append(toIndentedString(mcc)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" merchantOrderReference: ") - .append(toIndentedString(merchantOrderReference)) - .append("\n"); + sb.append(" merchantOrderReference: ").append(toIndentedString(merchantOrderReference)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" platformChargebackLogic: ") - .append(toIndentedString(platformChargebackLogic)) - .append("\n"); - sb.append(" recurringProcessingModel: ") - .append(toIndentedString(recurringProcessingModel)) - .append("\n"); + sb.append(" platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n"); + sb.append(" recurringProcessingModel: ").append(toIndentedString(recurringProcessingModel)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); - sb.append(" requiredShopperFields: ") - .append(toIndentedString(requiredShopperFields)) - .append("\n"); + sb.append(" requiredShopperFields: ").append(toIndentedString(requiredShopperFields)).append("\n"); sb.append(" returnUrl: ").append(toIndentedString(returnUrl)).append("\n"); sb.append(" reusable: ").append(toIndentedString(reusable)).append("\n"); sb.append(" riskData: ").append(toIndentedString(riskData)).append("\n"); @@ -2594,26 +2011,16 @@ public String toString() { sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append(" shopperStatement: ").append(toIndentedString(shopperStatement)).append("\n"); - sb.append(" showRemovePaymentMethodButton: ") - .append(toIndentedString(showRemovePaymentMethodButton)) - .append("\n"); - sb.append(" socialSecurityNumber: ") - .append(toIndentedString(socialSecurityNumber)) - .append("\n"); - sb.append(" splitCardFundingSources: ") - .append(toIndentedString(splitCardFundingSources)) - .append("\n"); + sb.append(" showRemovePaymentMethodButton: ").append(toIndentedString(showRemovePaymentMethodButton)).append("\n"); + sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); + sb.append(" splitCardFundingSources: ").append(toIndentedString(splitCardFundingSources)).append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" store: ").append(toIndentedString(store)).append("\n"); - sb.append(" storePaymentMethodMode: ") - .append(toIndentedString(storePaymentMethodMode)) - .append("\n"); + sb.append(" storePaymentMethodMode: ").append(toIndentedString(storePaymentMethodMode)).append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); sb.append(" themeId: ").append(toIndentedString(themeId)).append("\n"); - sb.append(" threeDS2RequestData: ") - .append(toIndentedString(threeDS2RequestData)) - .append("\n"); + sb.append(" threeDS2RequestData: ").append(toIndentedString(threeDS2RequestData)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append("}"); @@ -2621,7 +2028,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -2630,23 +2038,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentLinkResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaymentLinkResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentLinkResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentLinkResponse */ public static PaymentLinkResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentLinkResponse.class); } - - /** - * Convert an instance of PaymentLinkResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentLinkResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentMethod.java b/src/main/java/com/adyen/model/checkout/PaymentMethod.java index 9e7852b9e..b129ddfa7 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentMethod.java +++ b/src/main/java/com/adyen/model/checkout/PaymentMethod.java @@ -2,30 +2,39 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.InputDetail; +import com.adyen.model.checkout.PaymentMethodGroup; +import com.adyen.model.checkout.PaymentMethodIssuer; +import com.adyen.model.checkout.PaymentMethodUPIApps; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PaymentMethod */ +/** + * PaymentMethod + */ @JsonPropertyOrder({ PaymentMethod.JSON_PROPERTY_APPS, PaymentMethod.JSON_PROPERTY_BRAND, @@ -39,6 +48,7 @@ PaymentMethod.JSON_PROPERTY_PROMOTED, PaymentMethod.JSON_PROPERTY_TYPE }) + public class PaymentMethod { public static final String JSON_PROPERTY_APPS = "apps"; private List apps; @@ -52,8 +62,11 @@ public class PaymentMethod { public static final String JSON_PROPERTY_CONFIGURATION = "configuration"; private Map configuration; - /** The funding source of the payment method. */ + /** + * The funding source of the payment method. + */ public enum FundingSourceEnum { + CREDIT(String.valueOf("credit")), DEBIT(String.valueOf("debit")); @@ -63,7 +76,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -84,11 +97,7 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FundingSourceEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FundingSourceEnum.values())); + LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -100,7 +109,7 @@ public static FundingSourceEnum fromValue(String value) { private PaymentMethodGroup group; public static final String JSON_PROPERTY_INPUT_DETAILS = "inputDetails"; - @Deprecated // deprecated + @Deprecated // deprecated private List inputDetails; public static final String JSON_PROPERTY_ISSUERS = "issuers"; @@ -115,7 +124,8 @@ public static FundingSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public PaymentMethod() {} + public PaymentMethod() { + } /** * A list of apps for this payment method. @@ -138,7 +148,6 @@ public PaymentMethod addAppsItem(PaymentMethodUPIApps appsItem) { /** * A list of apps for this payment method. - * * @return apps A list of apps for this payment method. */ @JsonProperty(JSON_PROPERTY_APPS) @@ -171,7 +180,6 @@ public PaymentMethod brand(String brand) { /** * Brand for the selected gift card. For example: plastix, hmclub. - * * @return brand Brand for the selected gift card. For example: plastix, hmclub. */ @JsonProperty(JSON_PROPERTY_BRAND) @@ -212,7 +220,6 @@ public PaymentMethod addBrandsItem(String brandsItem) { /** * List of possible brands. For example: visa, mc. - * * @return brands List of possible brands. For example: visa, mc. */ @JsonProperty(JSON_PROPERTY_BRANDS) @@ -253,7 +260,6 @@ public PaymentMethod putConfigurationItem(String key, String configurationItem) /** * The configuration of the payment method. - * * @return configuration The configuration of the payment method. */ @JsonProperty(JSON_PROPERTY_CONFIGURATION) @@ -286,7 +292,6 @@ public PaymentMethod fundingSource(FundingSourceEnum fundingSource) { /** * The funding source of the payment method. - * * @return fundingSource The funding source of the payment method. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @@ -309,7 +314,7 @@ public void setFundingSource(FundingSourceEnum fundingSource) { /** * group * - * @param group + * @param group * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod group(PaymentMethodGroup group) { @@ -319,8 +324,7 @@ public PaymentMethod group(PaymentMethodGroup group) { /** * Get group - * - * @return group + * @return group */ @JsonProperty(JSON_PROPERTY_GROUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -331,7 +335,7 @@ public PaymentMethodGroup getGroup() { /** * group * - * @param group + * @param group */ @JsonProperty(JSON_PROPERTY_GROUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -342,12 +346,12 @@ public void setGroup(PaymentMethodGroup group) { /** * All input details to be provided to complete the payment with this payment method. * - * @param inputDetails All input details to be provided to complete the payment with this payment - * method. + * @param inputDetails All input details to be provided to complete the payment with this payment method. * @return the current {@code PaymentMethod} instance, allowing for method chaining - * @deprecated + * + * @deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated public PaymentMethod inputDetails(List inputDetails) { this.inputDetails = inputDetails; return this; @@ -363,12 +367,10 @@ public PaymentMethod addInputDetailsItem(InputDetail inputDetailsItem) { /** * All input details to be provided to complete the payment with this payment method. - * - * @return inputDetails All input details to be provided to complete the payment with this payment - * method. - * @deprecated // deprecated + * @return inputDetails All input details to be provided to complete the payment with this payment method. + * @deprecated // deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated @JsonProperty(JSON_PROPERTY_INPUT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getInputDetails() { @@ -378,11 +380,11 @@ public List getInputDetails() { /** * All input details to be provided to complete the payment with this payment method. * - * @param inputDetails All input details to be provided to complete the payment with this payment - * method. - * @deprecated + * @param inputDetails All input details to be provided to complete the payment with this payment method. + * + * @deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated @JsonProperty(JSON_PROPERTY_INPUT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInputDetails(List inputDetails) { @@ -410,7 +412,6 @@ public PaymentMethod addIssuersItem(PaymentMethodIssuer issuersItem) { /** * A list of issuers for this payment method. - * * @return issuers A list of issuers for this payment method. */ @JsonProperty(JSON_PROPERTY_ISSUERS) @@ -443,7 +444,6 @@ public PaymentMethod name(String name) { /** * The displayable name of this payment method. - * * @return name The displayable name of this payment method. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -476,7 +476,6 @@ public PaymentMethod promoted(Boolean promoted) { /** * Indicates whether this payment method should be promoted or not. - * * @return promoted Indicates whether this payment method should be promoted or not. */ @JsonProperty(JSON_PROPERTY_PROMOTED) @@ -509,7 +508,6 @@ public PaymentMethod type(String type) { /** * The unique payment method code. - * * @return type The unique payment method code. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -529,7 +527,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this PaymentMethod object is equal to o. */ + /** + * Return true if this PaymentMethod object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -539,33 +539,22 @@ public boolean equals(Object o) { return false; } PaymentMethod paymentMethod = (PaymentMethod) o; - return Objects.equals(this.apps, paymentMethod.apps) - && Objects.equals(this.brand, paymentMethod.brand) - && Objects.equals(this.brands, paymentMethod.brands) - && Objects.equals(this.configuration, paymentMethod.configuration) - && Objects.equals(this.fundingSource, paymentMethod.fundingSource) - && Objects.equals(this.group, paymentMethod.group) - && Objects.equals(this.inputDetails, paymentMethod.inputDetails) - && Objects.equals(this.issuers, paymentMethod.issuers) - && Objects.equals(this.name, paymentMethod.name) - && Objects.equals(this.promoted, paymentMethod.promoted) - && Objects.equals(this.type, paymentMethod.type); + return Objects.equals(this.apps, paymentMethod.apps) && + Objects.equals(this.brand, paymentMethod.brand) && + Objects.equals(this.brands, paymentMethod.brands) && + Objects.equals(this.configuration, paymentMethod.configuration) && + Objects.equals(this.fundingSource, paymentMethod.fundingSource) && + Objects.equals(this.group, paymentMethod.group) && + Objects.equals(this.inputDetails, paymentMethod.inputDetails) && + Objects.equals(this.issuers, paymentMethod.issuers) && + Objects.equals(this.name, paymentMethod.name) && + Objects.equals(this.promoted, paymentMethod.promoted) && + Objects.equals(this.type, paymentMethod.type); } @Override public int hashCode() { - return Objects.hash( - apps, - brand, - brands, - configuration, - fundingSource, - group, - inputDetails, - issuers, - name, - promoted, - type); + return Objects.hash(apps, brand, brands, configuration, fundingSource, group, inputDetails, issuers, name, promoted, type); } @Override @@ -588,7 +577,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -597,7 +587,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentMethod given an JSON string * * @param jsonString JSON string @@ -607,12 +597,11 @@ private String toIndentedString(Object o) { public static PaymentMethod fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentMethod.class); } - - /** - * Convert an instance of PaymentMethod to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentMethod to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentMethodGroup.java b/src/main/java/com/adyen/model/checkout/PaymentMethodGroup.java index 5ea4bfeed..57cc6b553 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentMethodGroup.java +++ b/src/main/java/com/adyen/model/checkout/PaymentMethodGroup.java @@ -2,27 +2,37 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** PaymentMethodGroup */ + +/** + * PaymentMethodGroup + */ @JsonPropertyOrder({ PaymentMethodGroup.JSON_PROPERTY_NAME, PaymentMethodGroup.JSON_PROPERTY_PAYMENT_METHOD_DATA, PaymentMethodGroup.JSON_PROPERTY_TYPE }) + public class PaymentMethodGroup { public static final String JSON_PROPERTY_NAME = "name"; private String name; @@ -33,7 +43,8 @@ public class PaymentMethodGroup { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public PaymentMethodGroup() {} + public PaymentMethodGroup() { + } /** * The name of the group. @@ -48,7 +59,6 @@ public PaymentMethodGroup name(String name) { /** * The name of the group. - * * @return name The name of the group. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -71,8 +81,7 @@ public void setName(String name) { /** * Echo data to be used if the payment method is displayed as part of this group. * - * @param paymentMethodData Echo data to be used if the payment method is displayed as part of - * this group. + * @param paymentMethodData Echo data to be used if the payment method is displayed as part of this group. * @return the current {@code PaymentMethodGroup} instance, allowing for method chaining */ public PaymentMethodGroup paymentMethodData(String paymentMethodData) { @@ -82,9 +91,7 @@ public PaymentMethodGroup paymentMethodData(String paymentMethodData) { /** * Echo data to be used if the payment method is displayed as part of this group. - * - * @return paymentMethodData Echo data to be used if the payment method is displayed as part of - * this group. + * @return paymentMethodData Echo data to be used if the payment method is displayed as part of this group. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -95,8 +102,7 @@ public String getPaymentMethodData() { /** * Echo data to be used if the payment method is displayed as part of this group. * - * @param paymentMethodData Echo data to be used if the payment method is displayed as part of - * this group. + * @param paymentMethodData Echo data to be used if the payment method is displayed as part of this group. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,7 +123,6 @@ public PaymentMethodGroup type(String type) { /** * The unique code of the group. - * * @return type The unique code of the group. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -137,7 +142,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this PaymentMethodGroup object is equal to o. */ + /** + * Return true if this PaymentMethodGroup object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -147,9 +154,9 @@ public boolean equals(Object o) { return false; } PaymentMethodGroup paymentMethodGroup = (PaymentMethodGroup) o; - return Objects.equals(this.name, paymentMethodGroup.name) - && Objects.equals(this.paymentMethodData, paymentMethodGroup.paymentMethodData) - && Objects.equals(this.type, paymentMethodGroup.type); + return Objects.equals(this.name, paymentMethodGroup.name) && + Objects.equals(this.paymentMethodData, paymentMethodGroup.paymentMethodData) && + Objects.equals(this.type, paymentMethodGroup.type); } @Override @@ -169,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -178,23 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentMethodGroup given an JSON string * * @param jsonString JSON string * @return An instance of PaymentMethodGroup - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentMethodGroup + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethodGroup */ public static PaymentMethodGroup fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentMethodGroup.class); } - - /** - * Convert an instance of PaymentMethodGroup to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentMethodGroup to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentMethodIssuer.java b/src/main/java/com/adyen/model/checkout/PaymentMethodIssuer.java index 914d33e43..42ba8a469 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentMethodIssuer.java +++ b/src/main/java/com/adyen/model/checkout/PaymentMethodIssuer.java @@ -2,27 +2,37 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** PaymentMethodIssuer */ + +/** + * PaymentMethodIssuer + */ @JsonPropertyOrder({ PaymentMethodIssuer.JSON_PROPERTY_DISABLED, PaymentMethodIssuer.JSON_PROPERTY_ID, PaymentMethodIssuer.JSON_PROPERTY_NAME }) + public class PaymentMethodIssuer { public static final String JSON_PROPERTY_DISABLED = "disabled"; private Boolean disabled; @@ -33,14 +43,13 @@ public class PaymentMethodIssuer { public static final String JSON_PROPERTY_NAME = "name"; private String name; - public PaymentMethodIssuer() {} + public PaymentMethodIssuer() { + } /** - * A boolean value indicating whether this issuer is unavailable. Can be `true` whenever - * the issuer is offline. + * A boolean value indicating whether this issuer is unavailable. Can be `true` whenever the issuer is offline. * - * @param disabled A boolean value indicating whether this issuer is unavailable. Can be - * `true` whenever the issuer is offline. + * @param disabled A boolean value indicating whether this issuer is unavailable. Can be `true` whenever the issuer is offline. * @return the current {@code PaymentMethodIssuer} instance, allowing for method chaining */ public PaymentMethodIssuer disabled(Boolean disabled) { @@ -49,11 +58,8 @@ public PaymentMethodIssuer disabled(Boolean disabled) { } /** - * A boolean value indicating whether this issuer is unavailable. Can be `true` whenever - * the issuer is offline. - * - * @return disabled A boolean value indicating whether this issuer is unavailable. Can be - * `true` whenever the issuer is offline. + * A boolean value indicating whether this issuer is unavailable. Can be `true` whenever the issuer is offline. + * @return disabled A boolean value indicating whether this issuer is unavailable. Can be `true` whenever the issuer is offline. */ @JsonProperty(JSON_PROPERTY_DISABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -62,11 +68,9 @@ public Boolean getDisabled() { } /** - * A boolean value indicating whether this issuer is unavailable. Can be `true` whenever - * the issuer is offline. + * A boolean value indicating whether this issuer is unavailable. Can be `true` whenever the issuer is offline. * - * @param disabled A boolean value indicating whether this issuer is unavailable. Can be - * `true` whenever the issuer is offline. + * @param disabled A boolean value indicating whether this issuer is unavailable. Can be `true` whenever the issuer is offline. */ @JsonProperty(JSON_PROPERTY_DISABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,7 +91,6 @@ public PaymentMethodIssuer id(String id) { /** * The unique identifier of this issuer, to submit in requests to /payments. - * * @return id The unique identifier of this issuer, to submit in requests to /payments. */ @JsonProperty(JSON_PROPERTY_ID) @@ -120,7 +123,6 @@ public PaymentMethodIssuer name(String name) { /** * A localized name of the issuer. - * * @return name A localized name of the issuer. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -140,7 +142,9 @@ public void setName(String name) { this.name = name; } - /** Return true if this PaymentMethodIssuer object is equal to o. */ + /** + * Return true if this PaymentMethodIssuer object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -150,9 +154,9 @@ public boolean equals(Object o) { return false; } PaymentMethodIssuer paymentMethodIssuer = (PaymentMethodIssuer) o; - return Objects.equals(this.disabled, paymentMethodIssuer.disabled) - && Objects.equals(this.id, paymentMethodIssuer.id) - && Objects.equals(this.name, paymentMethodIssuer.name); + return Objects.equals(this.disabled, paymentMethodIssuer.disabled) && + Objects.equals(this.id, paymentMethodIssuer.id) && + Objects.equals(this.name, paymentMethodIssuer.name); } @Override @@ -172,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -181,23 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentMethodIssuer given an JSON string * * @param jsonString JSON string * @return An instance of PaymentMethodIssuer - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentMethodIssuer + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethodIssuer */ public static PaymentMethodIssuer fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentMethodIssuer.class); } - - /** - * Convert an instance of PaymentMethodIssuer to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentMethodIssuer to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentMethodToStore.java b/src/main/java/com/adyen/model/checkout/PaymentMethodToStore.java index 11a4d4c4a..34bcbfd25 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentMethodToStore.java +++ b/src/main/java/com/adyen/model/checkout/PaymentMethodToStore.java @@ -2,22 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** PaymentMethodToStore */ + +/** + * PaymentMethodToStore + */ @JsonPropertyOrder({ PaymentMethodToStore.JSON_PROPERTY_BRAND, PaymentMethodToStore.JSON_PROPERTY_CVC, @@ -32,6 +41,7 @@ PaymentMethodToStore.JSON_PROPERTY_NUMBER, PaymentMethodToStore.JSON_PROPERTY_TYPE }) + public class PaymentMethodToStore { public static final String JSON_PROPERTY_BRAND = "brand"; private String brand; @@ -69,7 +79,8 @@ public class PaymentMethodToStore { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public PaymentMethodToStore() {} + public PaymentMethodToStore() { + } /** * Secondary brand of the card. For example: **plastix**, **hmclub**. @@ -84,7 +95,6 @@ public PaymentMethodToStore brand(String brand) { /** * Secondary brand of the card. For example: **plastix**, **hmclub**. - * * @return brand Secondary brand of the card. For example: **plastix**, **hmclub**. */ @JsonProperty(JSON_PROPERTY_BRAND) @@ -105,11 +115,9 @@ public void setBrand(String brand) { } /** - * The card verification code. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param cvc The card verification code. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param cvc The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * @return the current {@code PaymentMethodToStore} instance, allowing for method chaining */ public PaymentMethodToStore cvc(String cvc) { @@ -118,11 +126,8 @@ public PaymentMethodToStore cvc(String cvc) { } /** - * The card verification code. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). - * - * @return cvc The card verification code. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @return cvc The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -131,11 +136,9 @@ public String getCvc() { } /** - * The card verification code. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param cvc The card verification code. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param cvc The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,7 +159,6 @@ public PaymentMethodToStore encryptedCard(String encryptedCard) { /** * The encrypted card. - * * @return encryptedCard The encrypted card. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_CARD) @@ -189,7 +191,6 @@ public PaymentMethodToStore encryptedCardNumber(String encryptedCardNumber) { /** * The encrypted card number. - * * @return encryptedCardNumber The encrypted card number. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_CARD_NUMBER) @@ -222,7 +223,6 @@ public PaymentMethodToStore encryptedExpiryMonth(String encryptedExpiryMonth) { /** * The encrypted card expiry month. - * * @return encryptedExpiryMonth The encrypted card expiry month. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_EXPIRY_MONTH) @@ -255,7 +255,6 @@ public PaymentMethodToStore encryptedExpiryYear(String encryptedExpiryYear) { /** * The encrypted card expiry year. - * * @return encryptedExpiryYear The encrypted card expiry year. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_EXPIRY_YEAR) @@ -288,7 +287,6 @@ public PaymentMethodToStore encryptedSecurityCode(String encryptedSecurityCode) /** * The encrypted card verification code. - * * @return encryptedSecurityCode The encrypted card verification code. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_SECURITY_CODE) @@ -309,11 +307,9 @@ public void setEncryptedSecurityCode(String encryptedSecurityCode) { } /** - * The card expiry month. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * @return the current {@code PaymentMethodToStore} instance, allowing for method chaining */ public PaymentMethodToStore expiryMonth(String expiryMonth) { @@ -322,11 +318,8 @@ public PaymentMethodToStore expiryMonth(String expiryMonth) { } /** - * The card expiry month. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). - * - * @return expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @return expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -335,11 +328,9 @@ public String getExpiryMonth() { } /** - * The card expiry month. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -348,11 +339,9 @@ public void setExpiryMonth(String expiryMonth) { } /** - * The card expiry year. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param expiryYear The card expiry year. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param expiryYear The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * @return the current {@code PaymentMethodToStore} instance, allowing for method chaining */ public PaymentMethodToStore expiryYear(String expiryYear) { @@ -361,11 +350,8 @@ public PaymentMethodToStore expiryYear(String expiryYear) { } /** - * The card expiry year. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). - * - * @return expiryYear The card expiry year. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @return expiryYear The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -374,11 +360,9 @@ public String getExpiryYear() { } /** - * The card expiry year. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param expiryYear The card expiry year. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param expiryYear The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -399,7 +383,6 @@ public PaymentMethodToStore holderName(String holderName) { /** * The name of the card holder. - * * @return holderName The name of the card holder. */ @JsonProperty(JSON_PROPERTY_HOLDER_NAME) @@ -420,11 +403,9 @@ public void setHolderName(String holderName) { } /** - * The card number. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param number The card number. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param number The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * @return the current {@code PaymentMethodToStore} instance, allowing for method chaining */ public PaymentMethodToStore number(String number) { @@ -433,11 +414,8 @@ public PaymentMethodToStore number(String number) { } /** - * The card number. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). - * - * @return number The card number. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @return number The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -446,11 +424,9 @@ public String getNumber() { } /** - * The card number. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param number The card number. Only collect raw card data if you are [fully PCI - * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param number The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -471,7 +447,6 @@ public PaymentMethodToStore type(String type) { /** * Set to **scheme**. - * * @return type Set to **scheme**. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -491,7 +466,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this PaymentMethodToStore object is equal to o. */ + /** + * Return true if this PaymentMethodToStore object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -501,35 +478,23 @@ public boolean equals(Object o) { return false; } PaymentMethodToStore paymentMethodToStore = (PaymentMethodToStore) o; - return Objects.equals(this.brand, paymentMethodToStore.brand) - && Objects.equals(this.cvc, paymentMethodToStore.cvc) - && Objects.equals(this.encryptedCard, paymentMethodToStore.encryptedCard) - && Objects.equals(this.encryptedCardNumber, paymentMethodToStore.encryptedCardNumber) - && Objects.equals(this.encryptedExpiryMonth, paymentMethodToStore.encryptedExpiryMonth) - && Objects.equals(this.encryptedExpiryYear, paymentMethodToStore.encryptedExpiryYear) - && Objects.equals(this.encryptedSecurityCode, paymentMethodToStore.encryptedSecurityCode) - && Objects.equals(this.expiryMonth, paymentMethodToStore.expiryMonth) - && Objects.equals(this.expiryYear, paymentMethodToStore.expiryYear) - && Objects.equals(this.holderName, paymentMethodToStore.holderName) - && Objects.equals(this.number, paymentMethodToStore.number) - && Objects.equals(this.type, paymentMethodToStore.type); + return Objects.equals(this.brand, paymentMethodToStore.brand) && + Objects.equals(this.cvc, paymentMethodToStore.cvc) && + Objects.equals(this.encryptedCard, paymentMethodToStore.encryptedCard) && + Objects.equals(this.encryptedCardNumber, paymentMethodToStore.encryptedCardNumber) && + Objects.equals(this.encryptedExpiryMonth, paymentMethodToStore.encryptedExpiryMonth) && + Objects.equals(this.encryptedExpiryYear, paymentMethodToStore.encryptedExpiryYear) && + Objects.equals(this.encryptedSecurityCode, paymentMethodToStore.encryptedSecurityCode) && + Objects.equals(this.expiryMonth, paymentMethodToStore.expiryMonth) && + Objects.equals(this.expiryYear, paymentMethodToStore.expiryYear) && + Objects.equals(this.holderName, paymentMethodToStore.holderName) && + Objects.equals(this.number, paymentMethodToStore.number) && + Objects.equals(this.type, paymentMethodToStore.type); } @Override public int hashCode() { - return Objects.hash( - brand, - cvc, - encryptedCard, - encryptedCardNumber, - encryptedExpiryMonth, - encryptedExpiryYear, - encryptedSecurityCode, - expiryMonth, - expiryYear, - holderName, - number, - type); + return Objects.hash(brand, cvc, encryptedCard, encryptedCardNumber, encryptedExpiryMonth, encryptedExpiryYear, encryptedSecurityCode, expiryMonth, expiryYear, holderName, number, type); } @Override @@ -539,18 +504,10 @@ public String toString() { sb.append(" brand: ").append(toIndentedString(brand)).append("\n"); sb.append(" cvc: ").append(toIndentedString(cvc)).append("\n"); sb.append(" encryptedCard: ").append(toIndentedString(encryptedCard)).append("\n"); - sb.append(" encryptedCardNumber: ") - .append(toIndentedString(encryptedCardNumber)) - .append("\n"); - sb.append(" encryptedExpiryMonth: ") - .append(toIndentedString(encryptedExpiryMonth)) - .append("\n"); - sb.append(" encryptedExpiryYear: ") - .append(toIndentedString(encryptedExpiryYear)) - .append("\n"); - sb.append(" encryptedSecurityCode: ") - .append(toIndentedString(encryptedSecurityCode)) - .append("\n"); + sb.append(" encryptedCardNumber: ").append(toIndentedString(encryptedCardNumber)).append("\n"); + sb.append(" encryptedExpiryMonth: ").append(toIndentedString(encryptedExpiryMonth)).append("\n"); + sb.append(" encryptedExpiryYear: ").append(toIndentedString(encryptedExpiryYear)).append("\n"); + sb.append(" encryptedSecurityCode: ").append(toIndentedString(encryptedSecurityCode)).append("\n"); sb.append(" expiryMonth: ").append(toIndentedString(expiryMonth)).append("\n"); sb.append(" expiryYear: ").append(toIndentedString(expiryYear)).append("\n"); sb.append(" holderName: ").append(toIndentedString(holderName)).append("\n"); @@ -561,7 +518,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -570,23 +528,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentMethodToStore given an JSON string * * @param jsonString JSON string * @return An instance of PaymentMethodToStore - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentMethodToStore + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethodToStore */ public static PaymentMethodToStore fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentMethodToStore.class); } - - /** - * Convert an instance of PaymentMethodToStore to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentMethodToStore to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentMethodUPIApps.java b/src/main/java/com/adyen/model/checkout/PaymentMethodUPIApps.java index 272b6371c..2c8c7811f 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentMethodUPIApps.java +++ b/src/main/java/com/adyen/model/checkout/PaymentMethodUPIApps.java @@ -2,23 +2,36 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** PaymentMethodUPIApps */ -@JsonPropertyOrder({PaymentMethodUPIApps.JSON_PROPERTY_ID, PaymentMethodUPIApps.JSON_PROPERTY_NAME}) + +/** + * PaymentMethodUPIApps + */ +@JsonPropertyOrder({ + PaymentMethodUPIApps.JSON_PROPERTY_ID, + PaymentMethodUPIApps.JSON_PROPERTY_NAME +}) + public class PaymentMethodUPIApps { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -26,7 +39,8 @@ public class PaymentMethodUPIApps { public static final String JSON_PROPERTY_NAME = "name"; private String name; - public PaymentMethodUPIApps() {} + public PaymentMethodUPIApps() { + } /** * The unique identifier of this app, to submit in requests to /payments. @@ -41,7 +55,6 @@ public PaymentMethodUPIApps id(String id) { /** * The unique identifier of this app, to submit in requests to /payments. - * * @return id The unique identifier of this app, to submit in requests to /payments. */ @JsonProperty(JSON_PROPERTY_ID) @@ -74,7 +87,6 @@ public PaymentMethodUPIApps name(String name) { /** * A localized name of the app. - * * @return name A localized name of the app. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -94,7 +106,9 @@ public void setName(String name) { this.name = name; } - /** Return true if this PaymentMethodUPIApps object is equal to o. */ + /** + * Return true if this PaymentMethodUPIApps object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -104,8 +118,8 @@ public boolean equals(Object o) { return false; } PaymentMethodUPIApps paymentMethodUPIApps = (PaymentMethodUPIApps) o; - return Objects.equals(this.id, paymentMethodUPIApps.id) - && Objects.equals(this.name, paymentMethodUPIApps.name); + return Objects.equals(this.id, paymentMethodUPIApps.id) && + Objects.equals(this.name, paymentMethodUPIApps.name); } @Override @@ -124,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,23 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentMethodUPIApps given an JSON string * * @param jsonString JSON string * @return An instance of PaymentMethodUPIApps - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentMethodUPIApps + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethodUPIApps */ public static PaymentMethodUPIApps fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentMethodUPIApps.class); } - - /** - * Convert an instance of PaymentMethodUPIApps to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentMethodUPIApps to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentMethodsRequest.java b/src/main/java/com/adyen/model/checkout/PaymentMethodsRequest.java index ca82b573a..dc4dec8ea 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentMethodsRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentMethodsRequest.java @@ -2,30 +2,38 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Amount; +import com.adyen.model.checkout.BrowserInfo; +import com.adyen.model.checkout.EncryptedOrderData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PaymentMethodsRequest */ +/** + * PaymentMethodsRequest + */ @JsonPropertyOrder({ PaymentMethodsRequest.JSON_PROPERTY_ADDITIONAL_DATA, PaymentMethodsRequest.JSON_PROPERTY_ALLOWED_PAYMENT_METHODS, @@ -46,6 +54,7 @@ PaymentMethodsRequest.JSON_PROPERTY_STORE_FILTRATION_MODE, PaymentMethodsRequest.JSON_PROPERTY_TELEPHONE_NUMBER }) + public class PaymentMethodsRequest { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -63,11 +72,10 @@ public class PaymentMethodsRequest { private BrowserInfo browserInfo; /** - * The platform where a payment transaction takes place. This field can be used for filtering out - * payment methods that are only available on specific platforms. Possible values: * iOS * Android - * * Web + * The platform where a payment transaction takes place. This field can be used for filtering out payment methods that are only available on specific platforms. Possible values: * iOS * Android * Web */ public enum ChannelEnum { + IOS(String.valueOf("iOS")), ANDROID(String.valueOf("Android")), @@ -79,7 +87,7 @@ public enum ChannelEnum { private String value; ChannelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -100,11 +108,7 @@ public static ChannelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ChannelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ChannelEnum.values())); + LOG.warning("ChannelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChannelEnum.values())); return null; } } @@ -143,12 +147,10 @@ public static ChannelEnum fromValue(String value) { private String store; /** - * Specifies how payment methods should be filtered based on the 'store' parameter: - - * 'exclusive': Only payment methods belonging to the specified 'store' are - * returned. - 'inclusive': Payment methods from the 'store' and those not - * associated with any other store are returned. + * Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. */ public enum StoreFiltrationModeEnum { + EXCLUSIVE(String.valueOf("exclusive")), INCLUSIVE(String.valueOf("inclusive")), @@ -160,7 +162,7 @@ public enum StoreFiltrationModeEnum { private String value; StoreFiltrationModeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -181,11 +183,7 @@ public static StoreFiltrationModeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StoreFiltrationModeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StoreFiltrationModeEnum.values())); + LOG.warning("StoreFiltrationModeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StoreFiltrationModeEnum.values())); return null; } } @@ -196,16 +194,13 @@ public static StoreFiltrationModeEnum fromValue(String value) { public static final String JSON_PROPERTY_TELEPHONE_NUMBER = "telephoneNumber"; private String telephoneNumber; - public PaymentMethodsRequest() {} + public PaymentMethodsRequest() { + } /** - * This field contains additional data, which may be required for a particular payment request. - * The `additionalData` object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular payment request. The `additionalData` object consists of entries, each - * of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest additionalData(Map additionalData) { @@ -222,13 +217,8 @@ public PaymentMethodsRequest putAdditionalDataItem(String key, String additional } /** - * This field contains additional data, which may be required for a particular payment request. - * The `additionalData` object consists of entries, each of which includes the key and - * value. - * - * @return additionalData This field contains additional data, which may be required for a - * particular payment request. The `additionalData` object consists of entries, each - * of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * @return additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,13 +227,9 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular payment request. - * The `additionalData` object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular payment request. The `additionalData` object consists of entries, each - * of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,14 +238,9 @@ public void setAdditionalData(Map additionalData) { } /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their - * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer - * to payment methods, use their [payment method - * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest allowedPaymentMethods(List allowedPaymentMethods) { @@ -276,14 +257,8 @@ public PaymentMethodsRequest addAllowedPaymentMethodsItem(String allowedPaymentM } /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their - * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` - * - * @return allowedPaymentMethods List of payment methods to be presented to the shopper. To refer - * to payment methods, use their [payment method - * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @return allowedPaymentMethods List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -292,14 +267,9 @@ public List getAllowedPaymentMethods() { } /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their - * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer - * to payment methods, use their [payment method - * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -310,7 +280,7 @@ public void setAllowedPaymentMethods(List allowedPaymentMethods) { /** * amount * - * @param amount + * @param amount * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest amount(Amount amount) { @@ -320,8 +290,7 @@ public PaymentMethodsRequest amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -332,7 +301,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -341,14 +310,9 @@ public void setAmount(Amount amount) { } /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their - * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to - * payment methods, use their [payment method - * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest blockedPaymentMethods(List blockedPaymentMethods) { @@ -365,14 +329,8 @@ public PaymentMethodsRequest addBlockedPaymentMethodsItem(String blockedPaymentM } /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their - * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` - * - * @return blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer - * to payment methods, use their [payment method - * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @return blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_BLOCKED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -381,14 +339,9 @@ public List getBlockedPaymentMethods() { } /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their - * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to - * payment methods, use their [payment method - * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: - * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_BLOCKED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -399,7 +352,7 @@ public void setBlockedPaymentMethods(List blockedPaymentMethods) { /** * browserInfo * - * @param browserInfo + * @param browserInfo * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest browserInfo(BrowserInfo browserInfo) { @@ -409,8 +362,7 @@ public PaymentMethodsRequest browserInfo(BrowserInfo browserInfo) { /** * Get browserInfo - * - * @return browserInfo + * @return browserInfo */ @JsonProperty(JSON_PROPERTY_BROWSER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -421,7 +373,7 @@ public BrowserInfo getBrowserInfo() { /** * browserInfo * - * @param browserInfo + * @param browserInfo */ @JsonProperty(JSON_PROPERTY_BROWSER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -430,13 +382,9 @@ public void setBrowserInfo(BrowserInfo browserInfo) { } /** - * The platform where a payment transaction takes place. This field can be used for filtering out - * payment methods that are only available on specific platforms. Possible values: * iOS * Android - * * Web + * The platform where a payment transaction takes place. This field can be used for filtering out payment methods that are only available on specific platforms. Possible values: * iOS * Android * Web * - * @param channel The platform where a payment transaction takes place. This field can be used for - * filtering out payment methods that are only available on specific platforms. Possible - * values: * iOS * Android * Web + * @param channel The platform where a payment transaction takes place. This field can be used for filtering out payment methods that are only available on specific platforms. Possible values: * iOS * Android * Web * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest channel(ChannelEnum channel) { @@ -445,13 +393,8 @@ public PaymentMethodsRequest channel(ChannelEnum channel) { } /** - * The platform where a payment transaction takes place. This field can be used for filtering out - * payment methods that are only available on specific platforms. Possible values: * iOS * Android - * * Web - * - * @return channel The platform where a payment transaction takes place. This field can be used - * for filtering out payment methods that are only available on specific platforms. Possible - * values: * iOS * Android * Web + * The platform where a payment transaction takes place. This field can be used for filtering out payment methods that are only available on specific platforms. Possible values: * iOS * Android * Web + * @return channel The platform where a payment transaction takes place. This field can be used for filtering out payment methods that are only available on specific platforms. Possible values: * iOS * Android * Web */ @JsonProperty(JSON_PROPERTY_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -460,13 +403,9 @@ public ChannelEnum getChannel() { } /** - * The platform where a payment transaction takes place. This field can be used for filtering out - * payment methods that are only available on specific platforms. Possible values: * iOS * Android - * * Web + * The platform where a payment transaction takes place. This field can be used for filtering out payment methods that are only available on specific platforms. Possible values: * iOS * Android * Web * - * @param channel The platform where a payment transaction takes place. This field can be used for - * filtering out payment methods that are only available on specific platforms. Possible - * values: * iOS * Android * Web + * @param channel The platform where a payment transaction takes place. This field can be used for filtering out payment methods that are only available on specific platforms. Possible values: * iOS * Android * Web */ @JsonProperty(JSON_PROPERTY_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -487,7 +426,6 @@ public PaymentMethodsRequest countryCode(String countryCode) { /** * The shopper's country code. - * * @return countryCode The shopper's country code. */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @@ -510,8 +448,7 @@ public void setCountryCode(String countryCode) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest merchantAccount(String merchantAccount) { @@ -521,9 +458,7 @@ public PaymentMethodsRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * - * @return merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @return merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -534,8 +469,7 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -546,7 +480,7 @@ public void setMerchantAccount(String merchantAccount) { /** * order * - * @param order + * @param order * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest order(EncryptedOrderData order) { @@ -556,8 +490,7 @@ public PaymentMethodsRequest order(EncryptedOrderData order) { /** * Get order - * - * @return order + * @return order */ @JsonProperty(JSON_PROPERTY_ORDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -568,7 +501,7 @@ public EncryptedOrderData getOrder() { /** * order * - * @param order + * @param order */ @JsonProperty(JSON_PROPERTY_ORDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -577,12 +510,9 @@ public void setOrder(EncryptedOrderData order) { } /** - * A unique ID that can be used to associate `/paymentMethods` and `/payments` - * requests with the same shopper transaction, offering insights into conversion rates. + * A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates. * - * @param shopperConversionId A unique ID that can be used to associate - * `/paymentMethods` and `/payments` requests with the same shopper - * transaction, offering insights into conversion rates. + * @param shopperConversionId A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates. * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest shopperConversionId(String shopperConversionId) { @@ -591,12 +521,8 @@ public PaymentMethodsRequest shopperConversionId(String shopperConversionId) { } /** - * A unique ID that can be used to associate `/paymentMethods` and `/payments` - * requests with the same shopper transaction, offering insights into conversion rates. - * - * @return shopperConversionId A unique ID that can be used to associate - * `/paymentMethods` and `/payments` requests with the same shopper - * transaction, offering insights into conversion rates. + * A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates. + * @return shopperConversionId A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates. */ @JsonProperty(JSON_PROPERTY_SHOPPER_CONVERSION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -605,12 +531,9 @@ public String getShopperConversionId() { } /** - * A unique ID that can be used to associate `/paymentMethods` and `/payments` - * requests with the same shopper transaction, offering insights into conversion rates. + * A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates. * - * @param shopperConversionId A unique ID that can be used to associate - * `/paymentMethods` and `/payments` requests with the same shopper - * transaction, offering insights into conversion rates. + * @param shopperConversionId A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates. */ @JsonProperty(JSON_PROPERTY_SHOPPER_CONVERSION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -619,13 +542,9 @@ public void setShopperConversionId(String shopperConversionId) { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in - * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 - * authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, - * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that - * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest shopperEmail(String shopperEmail) { @@ -634,13 +553,8 @@ public PaymentMethodsRequest shopperEmail(String shopperEmail) { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in - * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 - * authentication if you did not include the `telephoneNumber`. - * - * @return shopperEmail The shopper's email address. We recommend that you provide this data, - * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that - * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @return shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -649,13 +563,9 @@ public String getShopperEmail() { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in - * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 - * authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, - * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that - * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -664,22 +574,9 @@ public void setShopperEmail(String shopperEmail) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks). > - * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and - * mobile integrations, if you did not include the `shopperEmail`. For native mobile - * integrations, the field is required to support cases where authentication is routed to the - * redirect flow. This field is also mandatory for some merchants depending on your business - * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it - * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks). > Required for Visa and JCB transactions that require 3D Secure - * 2 authentication for all web and mobile integrations, if you did not include the - * `shopperEmail`. For native mobile integrations, the field is required to support - * cases where authentication is routed to the redirect flow. This field is also mandatory for - * some merchants depending on your business model. For more information, [contact - * Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest shopperIP(String shopperIP) { @@ -688,22 +585,8 @@ public PaymentMethodsRequest shopperIP(String shopperIP) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks). > - * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and - * mobile integrations, if you did not include the `shopperEmail`. For native mobile - * integrations, the field is required to support cases where authentication is routed to the - * redirect flow. This field is also mandatory for some merchants depending on your business - * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). - * - * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it - * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks). > Required for Visa and JCB transactions that require 3D Secure - * 2 authentication for all web and mobile integrations, if you did not include the - * `shopperEmail`. For native mobile integrations, the field is required to support - * cases where authentication is routed to the redirect flow. This field is also mandatory for - * some merchants depending on your business model. For more information, [contact - * Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -712,22 +595,9 @@ public String getShopperIP() { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks). > - * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and - * mobile integrations, if you did not include the `shopperEmail`. For native mobile - * integrations, the field is required to support cases where authentication is routed to the - * redirect flow. This field is also mandatory for some merchants depending on your business - * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it - * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks). > Required for Visa and JCB transactions that require 3D Secure - * 2 authentication for all web and mobile integrations, if you did not include the - * `shopperEmail`. For native mobile integrations, the field is required to support - * cases where authentication is routed to the redirect flow. This field is also mandatory for - * some merchants depending on your business model. For more information, [contact - * Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -736,11 +606,9 @@ public void setShopperIP(String shopperIP) { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The combination of a language code and a country code to specify the language to be used in the payment. * - * @param shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest shopperLocale(String shopperLocale) { @@ -749,11 +617,8 @@ public PaymentMethodsRequest shopperLocale(String shopperLocale) { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. - * - * @return shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the payment. + * @return shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -762,11 +627,9 @@ public String getShopperLocale() { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The combination of a language code and a country code to specify the language to be used in the payment. * - * @param shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -775,15 +638,9 @@ public void setShopperLocale(String shopperLocale) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example - * user ID or account ID. The value is case-sensitive and must be at least three characters. > - * Your reference must not include personally identifiable information (PII) such as name or email - * address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify - * this shopper, for example user ID or account ID. The value is case-sensitive and must be at - * least three characters. > Your reference must not include personally identifiable - * information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest shopperReference(String shopperReference) { @@ -792,15 +649,8 @@ public PaymentMethodsRequest shopperReference(String shopperReference) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example - * user ID or account ID. The value is case-sensitive and must be at least three characters. > - * Your reference must not include personally identifiable information (PII) such as name or email - * address. - * - * @return shopperReference Required for recurring payments. Your reference to uniquely identify - * this shopper, for example user ID or account ID. The value is case-sensitive and must be at - * least three characters. > Your reference must not include personally identifiable - * information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @return shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -809,15 +659,9 @@ public String getShopperReference() { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example - * user ID or account ID. The value is case-sensitive and must be at least three characters. > - * Your reference must not include personally identifiable information (PII) such as name or email - * address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify - * this shopper, for example user ID or account ID. The value is case-sensitive and must be at - * least three characters. > Your reference must not include personally identifiable - * information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -826,11 +670,9 @@ public void setShopperReference(String shopperReference) { } /** - * Boolean value indicating whether the card payment method should be split into separate debit - * and credit options. + * Boolean value indicating whether the card payment method should be split into separate debit and credit options. * - * @param splitCardFundingSources Boolean value indicating whether the card payment method should - * be split into separate debit and credit options. + * @param splitCardFundingSources Boolean value indicating whether the card payment method should be split into separate debit and credit options. * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest splitCardFundingSources(Boolean splitCardFundingSources) { @@ -839,11 +681,8 @@ public PaymentMethodsRequest splitCardFundingSources(Boolean splitCardFundingSou } /** - * Boolean value indicating whether the card payment method should be split into separate debit - * and credit options. - * - * @return splitCardFundingSources Boolean value indicating whether the card payment method should - * be split into separate debit and credit options. + * Boolean value indicating whether the card payment method should be split into separate debit and credit options. + * @return splitCardFundingSources Boolean value indicating whether the card payment method should be split into separate debit and credit options. */ @JsonProperty(JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -852,11 +691,9 @@ public Boolean getSplitCardFundingSources() { } /** - * Boolean value indicating whether the card payment method should be split into separate debit - * and credit options. + * Boolean value indicating whether the card payment method should be split into separate debit and credit options. * - * @param splitCardFundingSources Boolean value indicating whether the card payment method should - * be split into separate debit and credit options. + * @param splitCardFundingSources Boolean value indicating whether the card payment method should be split into separate debit and credit options. */ @JsonProperty(JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -865,22 +702,9 @@ public void setSplitCardFundingSources(Boolean splitCardFundingSources) { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. * - * @param store Required for Adyen for Platforms integrations if you are a platform model. This is - * your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest store(String store) { @@ -889,22 +713,8 @@ public PaymentMethodsRequest store(String store) { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. - * - * @return store Required for Adyen for Platforms integrations if you are a platform model. This - * is your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * @return store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -913,22 +723,9 @@ public String getStore() { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. * - * @param store Required for Adyen for Platforms integrations if you are a platform model. This is - * your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -937,15 +734,9 @@ public void setStore(String store) { } /** - * Specifies how payment methods should be filtered based on the 'store' parameter: - - * 'exclusive': Only payment methods belonging to the specified 'store' are - * returned. - 'inclusive': Payment methods from the 'store' and those not - * associated with any other store are returned. + * Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. * - * @param storeFiltrationMode Specifies how payment methods should be filtered based on the - * 'store' parameter: - 'exclusive': Only payment methods belonging to the - * specified 'store' are returned. - 'inclusive': Payment methods from the - * 'store' and those not associated with any other store are returned. + * @param storeFiltrationMode Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest storeFiltrationMode(StoreFiltrationModeEnum storeFiltrationMode) { @@ -954,15 +745,8 @@ public PaymentMethodsRequest storeFiltrationMode(StoreFiltrationModeEnum storeFi } /** - * Specifies how payment methods should be filtered based on the 'store' parameter: - - * 'exclusive': Only payment methods belonging to the specified 'store' are - * returned. - 'inclusive': Payment methods from the 'store' and those not - * associated with any other store are returned. - * - * @return storeFiltrationMode Specifies how payment methods should be filtered based on the - * 'store' parameter: - 'exclusive': Only payment methods belonging to the - * specified 'store' are returned. - 'inclusive': Payment methods from the - * 'store' and those not associated with any other store are returned. + * Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. + * @return storeFiltrationMode Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. */ @JsonProperty(JSON_PROPERTY_STORE_FILTRATION_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -971,15 +755,9 @@ public StoreFiltrationModeEnum getStoreFiltrationMode() { } /** - * Specifies how payment methods should be filtered based on the 'store' parameter: - - * 'exclusive': Only payment methods belonging to the specified 'store' are - * returned. - 'inclusive': Payment methods from the 'store' and those not - * associated with any other store are returned. + * Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. * - * @param storeFiltrationMode Specifies how payment methods should be filtered based on the - * 'store' parameter: - 'exclusive': Only payment methods belonging to the - * specified 'store' are returned. - 'inclusive': Payment methods from the - * 'store' and those not associated with any other store are returned. + * @param storeFiltrationMode Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. */ @JsonProperty(JSON_PROPERTY_STORE_FILTRATION_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -988,17 +766,9 @@ public void setStoreFiltrationMode(StoreFiltrationModeEnum storeFiltrationMode) } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus - * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest telephoneNumber(String telephoneNumber) { @@ -1007,17 +777,8 @@ public PaymentMethodsRequest telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. - * - * @return telephoneNumber The shopper's telephone number. The phone number must include a - * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @return telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1026,17 +787,9 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus - * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1044,7 +797,9 @@ public void setTelephoneNumber(String telephoneNumber) { this.telephoneNumber = telephoneNumber; } - /** Return true if this PaymentMethodsRequest object is equal to o. */ + /** + * Return true if this PaymentMethodsRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -1054,48 +809,29 @@ public boolean equals(Object o) { return false; } PaymentMethodsRequest paymentMethodsRequest = (PaymentMethodsRequest) o; - return Objects.equals(this.additionalData, paymentMethodsRequest.additionalData) - && Objects.equals(this.allowedPaymentMethods, paymentMethodsRequest.allowedPaymentMethods) - && Objects.equals(this.amount, paymentMethodsRequest.amount) - && Objects.equals(this.blockedPaymentMethods, paymentMethodsRequest.blockedPaymentMethods) - && Objects.equals(this.browserInfo, paymentMethodsRequest.browserInfo) - && Objects.equals(this.channel, paymentMethodsRequest.channel) - && Objects.equals(this.countryCode, paymentMethodsRequest.countryCode) - && Objects.equals(this.merchantAccount, paymentMethodsRequest.merchantAccount) - && Objects.equals(this.order, paymentMethodsRequest.order) - && Objects.equals(this.shopperConversionId, paymentMethodsRequest.shopperConversionId) - && Objects.equals(this.shopperEmail, paymentMethodsRequest.shopperEmail) - && Objects.equals(this.shopperIP, paymentMethodsRequest.shopperIP) - && Objects.equals(this.shopperLocale, paymentMethodsRequest.shopperLocale) - && Objects.equals(this.shopperReference, paymentMethodsRequest.shopperReference) - && Objects.equals( - this.splitCardFundingSources, paymentMethodsRequest.splitCardFundingSources) - && Objects.equals(this.store, paymentMethodsRequest.store) - && Objects.equals(this.storeFiltrationMode, paymentMethodsRequest.storeFiltrationMode) - && Objects.equals(this.telephoneNumber, paymentMethodsRequest.telephoneNumber); + return Objects.equals(this.additionalData, paymentMethodsRequest.additionalData) && + Objects.equals(this.allowedPaymentMethods, paymentMethodsRequest.allowedPaymentMethods) && + Objects.equals(this.amount, paymentMethodsRequest.amount) && + Objects.equals(this.blockedPaymentMethods, paymentMethodsRequest.blockedPaymentMethods) && + Objects.equals(this.browserInfo, paymentMethodsRequest.browserInfo) && + Objects.equals(this.channel, paymentMethodsRequest.channel) && + Objects.equals(this.countryCode, paymentMethodsRequest.countryCode) && + Objects.equals(this.merchantAccount, paymentMethodsRequest.merchantAccount) && + Objects.equals(this.order, paymentMethodsRequest.order) && + Objects.equals(this.shopperConversionId, paymentMethodsRequest.shopperConversionId) && + Objects.equals(this.shopperEmail, paymentMethodsRequest.shopperEmail) && + Objects.equals(this.shopperIP, paymentMethodsRequest.shopperIP) && + Objects.equals(this.shopperLocale, paymentMethodsRequest.shopperLocale) && + Objects.equals(this.shopperReference, paymentMethodsRequest.shopperReference) && + Objects.equals(this.splitCardFundingSources, paymentMethodsRequest.splitCardFundingSources) && + Objects.equals(this.store, paymentMethodsRequest.store) && + Objects.equals(this.storeFiltrationMode, paymentMethodsRequest.storeFiltrationMode) && + Objects.equals(this.telephoneNumber, paymentMethodsRequest.telephoneNumber); } @Override public int hashCode() { - return Objects.hash( - additionalData, - allowedPaymentMethods, - amount, - blockedPaymentMethods, - browserInfo, - channel, - countryCode, - merchantAccount, - order, - shopperConversionId, - shopperEmail, - shopperIP, - shopperLocale, - shopperReference, - splitCardFundingSources, - store, - storeFiltrationMode, - telephoneNumber); + return Objects.hash(additionalData, allowedPaymentMethods, amount, blockedPaymentMethods, browserInfo, channel, countryCode, merchantAccount, order, shopperConversionId, shopperEmail, shopperIP, shopperLocale, shopperReference, splitCardFundingSources, store, storeFiltrationMode, telephoneNumber); } @Override @@ -1103,39 +839,30 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentMethodsRequest {\n"); sb.append(" additionalData: ").append(toIndentedString(additionalData)).append("\n"); - sb.append(" allowedPaymentMethods: ") - .append(toIndentedString(allowedPaymentMethods)) - .append("\n"); + sb.append(" allowedPaymentMethods: ").append(toIndentedString(allowedPaymentMethods)).append("\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append(" blockedPaymentMethods: ") - .append(toIndentedString(blockedPaymentMethods)) - .append("\n"); + sb.append(" blockedPaymentMethods: ").append(toIndentedString(blockedPaymentMethods)).append("\n"); sb.append(" browserInfo: ").append(toIndentedString(browserInfo)).append("\n"); sb.append(" channel: ").append(toIndentedString(channel)).append("\n"); sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" order: ").append(toIndentedString(order)).append("\n"); - sb.append(" shopperConversionId: ") - .append(toIndentedString(shopperConversionId)) - .append("\n"); + sb.append(" shopperConversionId: ").append(toIndentedString(shopperConversionId)).append("\n"); sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); sb.append(" shopperIP: ").append(toIndentedString(shopperIP)).append("\n"); sb.append(" shopperLocale: ").append(toIndentedString(shopperLocale)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); - sb.append(" splitCardFundingSources: ") - .append(toIndentedString(splitCardFundingSources)) - .append("\n"); + sb.append(" splitCardFundingSources: ").append(toIndentedString(splitCardFundingSources)).append("\n"); sb.append(" store: ").append(toIndentedString(store)).append("\n"); - sb.append(" storeFiltrationMode: ") - .append(toIndentedString(storeFiltrationMode)) - .append("\n"); + sb.append(" storeFiltrationMode: ").append(toIndentedString(storeFiltrationMode)).append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1144,23 +871,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentMethodsRequest given an JSON string * * @param jsonString JSON string * @return An instance of PaymentMethodsRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentMethodsRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethodsRequest */ public static PaymentMethodsRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentMethodsRequest.class); } - - /** - * Convert an instance of PaymentMethodsRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentMethodsRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentMethodsResponse.java b/src/main/java/com/adyen/model/checkout/PaymentMethodsResponse.java index ebb91e484..7968de045 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentMethodsResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentMethodsResponse.java @@ -2,28 +2,40 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.PaymentMethod; +import com.adyen.model.checkout.StoredPaymentMethod; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PaymentMethodsResponse */ +/** + * PaymentMethodsResponse + */ @JsonPropertyOrder({ PaymentMethodsResponse.JSON_PROPERTY_PAYMENT_METHODS, PaymentMethodsResponse.JSON_PROPERTY_STORED_PAYMENT_METHODS }) + public class PaymentMethodsResponse { public static final String JSON_PROPERTY_PAYMENT_METHODS = "paymentMethods"; private List paymentMethods; @@ -31,7 +43,8 @@ public class PaymentMethodsResponse { public static final String JSON_PROPERTY_STORED_PAYMENT_METHODS = "storedPaymentMethods"; private List storedPaymentMethods; - public PaymentMethodsResponse() {} + public PaymentMethodsResponse() { + } /** * Detailed list of payment methods required to generate payment forms. @@ -54,7 +67,6 @@ public PaymentMethodsResponse addPaymentMethodsItem(PaymentMethod paymentMethods /** * Detailed list of payment methods required to generate payment forms. - * * @return paymentMethods Detailed list of payment methods required to generate payment forms. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHODS) @@ -80,14 +92,12 @@ public void setPaymentMethods(List paymentMethods) { * @param storedPaymentMethods List of all stored payment methods. * @return the current {@code PaymentMethodsResponse} instance, allowing for method chaining */ - public PaymentMethodsResponse storedPaymentMethods( - List storedPaymentMethods) { + public PaymentMethodsResponse storedPaymentMethods(List storedPaymentMethods) { this.storedPaymentMethods = storedPaymentMethods; return this; } - public PaymentMethodsResponse addStoredPaymentMethodsItem( - StoredPaymentMethod storedPaymentMethodsItem) { + public PaymentMethodsResponse addStoredPaymentMethodsItem(StoredPaymentMethod storedPaymentMethodsItem) { if (this.storedPaymentMethods == null) { this.storedPaymentMethods = new ArrayList<>(); } @@ -97,7 +107,6 @@ public PaymentMethodsResponse addStoredPaymentMethodsItem( /** * List of all stored payment methods. - * * @return storedPaymentMethods List of all stored payment methods. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHODS) @@ -117,7 +126,9 @@ public void setStoredPaymentMethods(List storedPaymentMetho this.storedPaymentMethods = storedPaymentMethods; } - /** Return true if this PaymentMethodsResponse object is equal to o. */ + /** + * Return true if this PaymentMethodsResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -127,8 +138,8 @@ public boolean equals(Object o) { return false; } PaymentMethodsResponse paymentMethodsResponse = (PaymentMethodsResponse) o; - return Objects.equals(this.paymentMethods, paymentMethodsResponse.paymentMethods) - && Objects.equals(this.storedPaymentMethods, paymentMethodsResponse.storedPaymentMethods); + return Objects.equals(this.paymentMethods, paymentMethodsResponse.paymentMethods) && + Objects.equals(this.storedPaymentMethods, paymentMethodsResponse.storedPaymentMethods); } @Override @@ -141,15 +152,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentMethodsResponse {\n"); sb.append(" paymentMethods: ").append(toIndentedString(paymentMethods)).append("\n"); - sb.append(" storedPaymentMethods: ") - .append(toIndentedString(storedPaymentMethods)) - .append("\n"); + sb.append(" storedPaymentMethods: ").append(toIndentedString(storedPaymentMethods)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -158,23 +168,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentMethodsResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaymentMethodsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentMethodsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethodsResponse */ public static PaymentMethodsResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentMethodsResponse.class); } - - /** - * Convert an instance of PaymentMethodsResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentMethodsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentRefundRequest.java b/src/main/java/com/adyen/model/checkout/PaymentRefundRequest.java index 323509c72..99fa65d85 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentRefundRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentRefundRequest.java @@ -2,28 +2,38 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Amount; +import com.adyen.model.checkout.ApplicationInfo; +import com.adyen.model.checkout.EnhancedSchemeData; +import com.adyen.model.checkout.LineItem; +import com.adyen.model.checkout.Split; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PaymentRefundRequest */ +/** + * PaymentRefundRequest + */ @JsonPropertyOrder({ PaymentRefundRequest.JSON_PROPERTY_AMOUNT, PaymentRefundRequest.JSON_PROPERTY_APPLICATION_INFO, @@ -36,6 +46,7 @@ PaymentRefundRequest.JSON_PROPERTY_SPLITS, PaymentRefundRequest.JSON_PROPERTY_STORE }) + public class PaymentRefundRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -56,10 +67,10 @@ public class PaymentRefundRequest { private String merchantAccount; /** - * The reason for the refund request. Possible values: * **FRAUD** * **CUSTOMER REQUEST** * - * **RETURN** * **DUPLICATE** * **OTHER** + * The reason for the refund request. Possible values: * **FRAUD** * **CUSTOMER REQUEST** * **RETURN** * **DUPLICATE** * **OTHER** */ public enum MerchantRefundReasonEnum { + FRAUD(String.valueOf("FRAUD")), CUSTOMER_REQUEST(String.valueOf("CUSTOMER REQUEST")), @@ -75,7 +86,7 @@ public enum MerchantRefundReasonEnum { private String value; MerchantRefundReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -96,11 +107,7 @@ public static MerchantRefundReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "MerchantRefundReasonEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(MerchantRefundReasonEnum.values())); + LOG.warning("MerchantRefundReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(MerchantRefundReasonEnum.values())); return null; } } @@ -117,12 +124,13 @@ public static MerchantRefundReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_STORE = "store"; private String store; - public PaymentRefundRequest() {} + public PaymentRefundRequest() { + } /** * amount * - * @param amount + * @param amount * @return the current {@code PaymentRefundRequest} instance, allowing for method chaining */ public PaymentRefundRequest amount(Amount amount) { @@ -132,8 +140,7 @@ public PaymentRefundRequest amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,7 +151,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -155,7 +162,7 @@ public void setAmount(Amount amount) { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo * @return the current {@code PaymentRefundRequest} instance, allowing for method chaining */ public PaymentRefundRequest applicationInfo(ApplicationInfo applicationInfo) { @@ -165,8 +172,7 @@ public PaymentRefundRequest applicationInfo(ApplicationInfo applicationInfo) { /** * Get applicationInfo - * - * @return applicationInfo + * @return applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,7 +183,7 @@ public ApplicationInfo getApplicationInfo() { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,13 +192,9 @@ public void setApplicationInfo(ApplicationInfo applicationInfo) { } /** - * This is only available for PayPal refunds. The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the specific capture to refund. + * This is only available for PayPal refunds. The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the specific capture to refund. * - * @param capturePspReference This is only available for PayPal refunds. The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the specific capture to refund. + * @param capturePspReference This is only available for PayPal refunds. The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the specific capture to refund. * @return the current {@code PaymentRefundRequest} instance, allowing for method chaining */ public PaymentRefundRequest capturePspReference(String capturePspReference) { @@ -201,13 +203,8 @@ public PaymentRefundRequest capturePspReference(String capturePspReference) { } /** - * This is only available for PayPal refunds. The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the specific capture to refund. - * - * @return capturePspReference This is only available for PayPal refunds. The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the specific capture to refund. + * This is only available for PayPal refunds. The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the specific capture to refund. + * @return capturePspReference This is only available for PayPal refunds. The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the specific capture to refund. */ @JsonProperty(JSON_PROPERTY_CAPTURE_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -216,13 +213,9 @@ public String getCapturePspReference() { } /** - * This is only available for PayPal refunds. The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the specific capture to refund. + * This is only available for PayPal refunds. The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the specific capture to refund. * - * @param capturePspReference This is only available for PayPal refunds. The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the specific capture to refund. + * @param capturePspReference This is only available for PayPal refunds. The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the specific capture to refund. */ @JsonProperty(JSON_PROPERTY_CAPTURE_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -233,7 +226,7 @@ public void setCapturePspReference(String capturePspReference) { /** * enhancedSchemeData * - * @param enhancedSchemeData + * @param enhancedSchemeData * @return the current {@code PaymentRefundRequest} instance, allowing for method chaining */ public PaymentRefundRequest enhancedSchemeData(EnhancedSchemeData enhancedSchemeData) { @@ -243,8 +236,7 @@ public PaymentRefundRequest enhancedSchemeData(EnhancedSchemeData enhancedScheme /** * Get enhancedSchemeData - * - * @return enhancedSchemeData + * @return enhancedSchemeData */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -255,7 +247,7 @@ public EnhancedSchemeData getEnhancedSchemeData() { /** * enhancedSchemeData * - * @param enhancedSchemeData + * @param enhancedSchemeData */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -264,15 +256,9 @@ public void setEnhancedSchemeData(EnhancedSchemeData enhancedSchemeData) { } /** - * Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is - * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. * - * @param lineItems Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field - * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. + * @param lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. * @return the current {@code PaymentRefundRequest} instance, allowing for method chaining */ public PaymentRefundRequest lineItems(List lineItems) { @@ -289,15 +275,8 @@ public PaymentRefundRequest addLineItemsItem(LineItem lineItemsItem) { } /** - * Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is - * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. - * - * @return lineItems Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field - * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * @return lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -306,15 +285,9 @@ public List getLineItems() { } /** - * Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is - * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. * - * @param lineItems Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field - * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. + * @param lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -335,7 +308,6 @@ public PaymentRefundRequest merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. - * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -356,11 +328,9 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The reason for the refund request. Possible values: * **FRAUD** * **CUSTOMER REQUEST** * - * **RETURN** * **DUPLICATE** * **OTHER** + * The reason for the refund request. Possible values: * **FRAUD** * **CUSTOMER REQUEST** * **RETURN** * **DUPLICATE** * **OTHER** * - * @param merchantRefundReason The reason for the refund request. Possible values: * **FRAUD** * - * **CUSTOMER REQUEST** * **RETURN** * **DUPLICATE** * **OTHER** + * @param merchantRefundReason The reason for the refund request. Possible values: * **FRAUD** * **CUSTOMER REQUEST** * **RETURN** * **DUPLICATE** * **OTHER** * @return the current {@code PaymentRefundRequest} instance, allowing for method chaining */ public PaymentRefundRequest merchantRefundReason(MerchantRefundReasonEnum merchantRefundReason) { @@ -369,11 +339,8 @@ public PaymentRefundRequest merchantRefundReason(MerchantRefundReasonEnum mercha } /** - * The reason for the refund request. Possible values: * **FRAUD** * **CUSTOMER REQUEST** * - * **RETURN** * **DUPLICATE** * **OTHER** - * - * @return merchantRefundReason The reason for the refund request. Possible values: * **FRAUD** * - * **CUSTOMER REQUEST** * **RETURN** * **DUPLICATE** * **OTHER** + * The reason for the refund request. Possible values: * **FRAUD** * **CUSTOMER REQUEST** * **RETURN** * **DUPLICATE** * **OTHER** + * @return merchantRefundReason The reason for the refund request. Possible values: * **FRAUD** * **CUSTOMER REQUEST** * **RETURN** * **DUPLICATE** * **OTHER** */ @JsonProperty(JSON_PROPERTY_MERCHANT_REFUND_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -382,11 +349,9 @@ public MerchantRefundReasonEnum getMerchantRefundReason() { } /** - * The reason for the refund request. Possible values: * **FRAUD** * **CUSTOMER REQUEST** * - * **RETURN** * **DUPLICATE** * **OTHER** + * The reason for the refund request. Possible values: * **FRAUD** * **CUSTOMER REQUEST** * **RETURN** * **DUPLICATE** * **OTHER** * - * @param merchantRefundReason The reason for the refund request. Possible values: * **FRAUD** * - * **CUSTOMER REQUEST** * **RETURN** * **DUPLICATE** * **OTHER** + * @param merchantRefundReason The reason for the refund request. Possible values: * **FRAUD** * **CUSTOMER REQUEST** * **RETURN** * **DUPLICATE** * **OTHER** */ @JsonProperty(JSON_PROPERTY_MERCHANT_REFUND_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -407,7 +372,6 @@ public PaymentRefundRequest reference(String reference) { /** * Your reference for the refund request. Maximum length: 80 characters. - * * @return reference Your reference for the refund request. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -428,15 +392,9 @@ public void setReference(String reference) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). * - * @param splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). * @return the current {@code PaymentRefundRequest} instance, allowing for method chaining */ public PaymentRefundRequest splits(List splits) { @@ -453,15 +411,8 @@ public PaymentRefundRequest addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). - * - * @return splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * @return splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -470,15 +421,9 @@ public List getSplits() { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). * - * @param splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -487,15 +432,9 @@ public void setSplits(List splits) { } /** - * The online store or [physical - * store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) - * that is processing the refund. This must be the same as the store name configured in your - * Customer Area. Otherwise, you get an error and the refund fails. + * The online store or [physical store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) that is processing the refund. This must be the same as the store name configured in your Customer Area. Otherwise, you get an error and the refund fails. * - * @param store The online store or [physical - * store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) - * that is processing the refund. This must be the same as the store name configured in your - * Customer Area. Otherwise, you get an error and the refund fails. + * @param store The online store or [physical store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) that is processing the refund. This must be the same as the store name configured in your Customer Area. Otherwise, you get an error and the refund fails. * @return the current {@code PaymentRefundRequest} instance, allowing for method chaining */ public PaymentRefundRequest store(String store) { @@ -504,15 +443,8 @@ public PaymentRefundRequest store(String store) { } /** - * The online store or [physical - * store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) - * that is processing the refund. This must be the same as the store name configured in your - * Customer Area. Otherwise, you get an error and the refund fails. - * - * @return store The online store or [physical - * store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) - * that is processing the refund. This must be the same as the store name configured in your - * Customer Area. Otherwise, you get an error and the refund fails. + * The online store or [physical store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) that is processing the refund. This must be the same as the store name configured in your Customer Area. Otherwise, you get an error and the refund fails. + * @return store The online store or [physical store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) that is processing the refund. This must be the same as the store name configured in your Customer Area. Otherwise, you get an error and the refund fails. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -521,15 +453,9 @@ public String getStore() { } /** - * The online store or [physical - * store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) - * that is processing the refund. This must be the same as the store name configured in your - * Customer Area. Otherwise, you get an error and the refund fails. + * The online store or [physical store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) that is processing the refund. This must be the same as the store name configured in your Customer Area. Otherwise, you get an error and the refund fails. * - * @param store The online store or [physical - * store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) - * that is processing the refund. This must be the same as the store name configured in your - * Customer Area. Otherwise, you get an error and the refund fails. + * @param store The online store or [physical store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) that is processing the refund. This must be the same as the store name configured in your Customer Area. Otherwise, you get an error and the refund fails. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -537,7 +463,9 @@ public void setStore(String store) { this.store = store; } - /** Return true if this PaymentRefundRequest object is equal to o. */ + /** + * Return true if this PaymentRefundRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -547,31 +475,21 @@ public boolean equals(Object o) { return false; } PaymentRefundRequest paymentRefundRequest = (PaymentRefundRequest) o; - return Objects.equals(this.amount, paymentRefundRequest.amount) - && Objects.equals(this.applicationInfo, paymentRefundRequest.applicationInfo) - && Objects.equals(this.capturePspReference, paymentRefundRequest.capturePspReference) - && Objects.equals(this.enhancedSchemeData, paymentRefundRequest.enhancedSchemeData) - && Objects.equals(this.lineItems, paymentRefundRequest.lineItems) - && Objects.equals(this.merchantAccount, paymentRefundRequest.merchantAccount) - && Objects.equals(this.merchantRefundReason, paymentRefundRequest.merchantRefundReason) - && Objects.equals(this.reference, paymentRefundRequest.reference) - && Objects.equals(this.splits, paymentRefundRequest.splits) - && Objects.equals(this.store, paymentRefundRequest.store); + return Objects.equals(this.amount, paymentRefundRequest.amount) && + Objects.equals(this.applicationInfo, paymentRefundRequest.applicationInfo) && + Objects.equals(this.capturePspReference, paymentRefundRequest.capturePspReference) && + Objects.equals(this.enhancedSchemeData, paymentRefundRequest.enhancedSchemeData) && + Objects.equals(this.lineItems, paymentRefundRequest.lineItems) && + Objects.equals(this.merchantAccount, paymentRefundRequest.merchantAccount) && + Objects.equals(this.merchantRefundReason, paymentRefundRequest.merchantRefundReason) && + Objects.equals(this.reference, paymentRefundRequest.reference) && + Objects.equals(this.splits, paymentRefundRequest.splits) && + Objects.equals(this.store, paymentRefundRequest.store); } @Override public int hashCode() { - return Objects.hash( - amount, - applicationInfo, - capturePspReference, - enhancedSchemeData, - lineItems, - merchantAccount, - merchantRefundReason, - reference, - splits, - store); + return Objects.hash(amount, applicationInfo, capturePspReference, enhancedSchemeData, lineItems, merchantAccount, merchantRefundReason, reference, splits, store); } @Override @@ -580,15 +498,11 @@ public String toString() { sb.append("class PaymentRefundRequest {\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" applicationInfo: ").append(toIndentedString(applicationInfo)).append("\n"); - sb.append(" capturePspReference: ") - .append(toIndentedString(capturePspReference)) - .append("\n"); + sb.append(" capturePspReference: ").append(toIndentedString(capturePspReference)).append("\n"); sb.append(" enhancedSchemeData: ").append(toIndentedString(enhancedSchemeData)).append("\n"); sb.append(" lineItems: ").append(toIndentedString(lineItems)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" merchantRefundReason: ") - .append(toIndentedString(merchantRefundReason)) - .append("\n"); + sb.append(" merchantRefundReason: ").append(toIndentedString(merchantRefundReason)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" store: ").append(toIndentedString(store)).append("\n"); @@ -597,7 +511,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -606,23 +521,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentRefundRequest given an JSON string * * @param jsonString JSON string * @return An instance of PaymentRefundRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentRefundRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentRefundRequest */ public static PaymentRefundRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentRefundRequest.class); } - - /** - * Convert an instance of PaymentRefundRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentRefundRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentRefundResponse.java b/src/main/java/com/adyen/model/checkout/PaymentRefundResponse.java index e67a3d927..0bd60fa81 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentRefundResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentRefundResponse.java @@ -2,28 +2,36 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Amount; +import com.adyen.model.checkout.LineItem; +import com.adyen.model.checkout.Split; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PaymentRefundResponse */ +/** + * PaymentRefundResponse + */ @JsonPropertyOrder({ PaymentRefundResponse.JSON_PROPERTY_AMOUNT, PaymentRefundResponse.JSON_PROPERTY_CAPTURE_PSP_REFERENCE, @@ -37,6 +45,7 @@ PaymentRefundResponse.JSON_PROPERTY_STATUS, PaymentRefundResponse.JSON_PROPERTY_STORE }) + public class PaymentRefundResponse { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -50,8 +59,11 @@ public class PaymentRefundResponse { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; - /** Your reason for the refund request. */ + /** + * Your reason for the refund request. + */ public enum MerchantRefundReasonEnum { + FRAUD(String.valueOf("FRAUD")), CUSTOMER_REQUEST(String.valueOf("CUSTOMER REQUEST")), @@ -67,7 +79,7 @@ public enum MerchantRefundReasonEnum { private String value; MerchantRefundReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -88,11 +100,7 @@ public static MerchantRefundReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "MerchantRefundReasonEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(MerchantRefundReasonEnum.values())); + LOG.warning("MerchantRefundReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(MerchantRefundReasonEnum.values())); return null; } } @@ -112,8 +120,11 @@ public static MerchantRefundReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_SPLITS = "splits"; private List splits; - /** The status of your request. This will always have the value **received**. */ + /** + * The status of your request. This will always have the value **received**. + */ public enum StatusEnum { + RECEIVED(String.valueOf("received")); private static final Logger LOG = Logger.getLogger(StatusEnum.class.getName()); @@ -121,7 +132,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -142,11 +153,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -157,12 +164,13 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STORE = "store"; private String store; - public PaymentRefundResponse() {} + public PaymentRefundResponse() { + } /** * amount * - * @param amount + * @param amount * @return the current {@code PaymentRefundResponse} instance, allowing for method chaining */ public PaymentRefundResponse amount(Amount amount) { @@ -172,8 +180,7 @@ public PaymentRefundResponse amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -184,7 +191,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,13 +200,9 @@ public void setAmount(Amount amount) { } /** - * This is only available for PayPal refunds. The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the specific capture to refund. + * This is only available for PayPal refunds. The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the specific capture to refund. * - * @param capturePspReference This is only available for PayPal refunds. The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the specific capture to refund. + * @param capturePspReference This is only available for PayPal refunds. The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the specific capture to refund. * @return the current {@code PaymentRefundResponse} instance, allowing for method chaining */ public PaymentRefundResponse capturePspReference(String capturePspReference) { @@ -208,13 +211,8 @@ public PaymentRefundResponse capturePspReference(String capturePspReference) { } /** - * This is only available for PayPal refunds. The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the specific capture to refund. - * - * @return capturePspReference This is only available for PayPal refunds. The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the specific capture to refund. + * This is only available for PayPal refunds. The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the specific capture to refund. + * @return capturePspReference This is only available for PayPal refunds. The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the specific capture to refund. */ @JsonProperty(JSON_PROPERTY_CAPTURE_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,13 +221,9 @@ public String getCapturePspReference() { } /** - * This is only available for PayPal refunds. The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the specific capture to refund. + * This is only available for PayPal refunds. The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the specific capture to refund. * - * @param capturePspReference This is only available for PayPal refunds. The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the specific capture to refund. + * @param capturePspReference This is only available for PayPal refunds. The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the specific capture to refund. */ @JsonProperty(JSON_PROPERTY_CAPTURE_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -238,15 +232,9 @@ public void setCapturePspReference(String capturePspReference) { } /** - * Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is - * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. * - * @param lineItems Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field - * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. + * @param lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. * @return the current {@code PaymentRefundResponse} instance, allowing for method chaining */ public PaymentRefundResponse lineItems(List lineItems) { @@ -263,15 +251,8 @@ public PaymentRefundResponse addLineItemsItem(LineItem lineItemsItem) { } /** - * Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is - * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. - * - * @return lineItems Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field - * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * @return lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -280,15 +261,9 @@ public List getLineItems() { } /** - * Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is - * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. * - * @param lineItems Price and product information of the refunded items, required for [partial - * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field - * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, - * Ratepay, Walley, and Zip. + * @param lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -309,7 +284,6 @@ public PaymentRefundResponse merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. - * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -342,7 +316,6 @@ public PaymentRefundResponse merchantRefundReason(MerchantRefundReasonEnum merch /** * Your reason for the refund request. - * * @return merchantRefundReason Your reason for the refund request. */ @JsonProperty(JSON_PROPERTY_MERCHANT_REFUND_REASON) @@ -363,13 +336,9 @@ public void setMerchantRefundReason(MerchantRefundReasonEnum merchantRefundReaso } /** - * The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment to refund. + * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to refund. * - * @param paymentPspReference The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment to refund. + * @param paymentPspReference The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to refund. * @return the current {@code PaymentRefundResponse} instance, allowing for method chaining */ public PaymentRefundResponse paymentPspReference(String paymentPspReference) { @@ -378,13 +347,8 @@ public PaymentRefundResponse paymentPspReference(String paymentPspReference) { } /** - * The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment to refund. - * - * @return paymentPspReference The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment to refund. + * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to refund. + * @return paymentPspReference The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to refund. */ @JsonProperty(JSON_PROPERTY_PAYMENT_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -393,13 +357,9 @@ public String getPaymentPspReference() { } /** - * The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment to refund. + * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to refund. * - * @param paymentPspReference The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment to refund. + * @param paymentPspReference The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to refund. */ @JsonProperty(JSON_PROPERTY_PAYMENT_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -420,7 +380,6 @@ public PaymentRefundResponse pspReference(String pspReference) { /** * Adyen's 16-character reference associated with the refund request. - * * @return pspReference Adyen's 16-character reference associated with the refund request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -453,7 +412,6 @@ public PaymentRefundResponse reference(String reference) { /** * Your reference for the refund request. - * * @return reference Your reference for the refund request. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -474,15 +432,9 @@ public void setReference(String reference) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). * - * @param splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). * @return the current {@code PaymentRefundResponse} instance, allowing for method chaining */ public PaymentRefundResponse splits(List splits) { @@ -499,15 +451,8 @@ public PaymentRefundResponse addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). - * - * @return splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * @return splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -516,15 +461,9 @@ public List getSplits() { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). * - * @param splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to process payments for - * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -545,7 +484,6 @@ public PaymentRefundResponse status(StatusEnum status) { /** * The status of your request. This will always have the value **received**. - * * @return status The status of your request. This will always have the value **received**. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -566,15 +504,9 @@ public void setStatus(StatusEnum status) { } /** - * The online store or [physical - * store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) - * that is processing the refund. This must be the same as the store name configured in your - * Customer Area. Otherwise, you get an error and the refund fails. + * The online store or [physical store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) that is processing the refund. This must be the same as the store name configured in your Customer Area. Otherwise, you get an error and the refund fails. * - * @param store The online store or [physical - * store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) - * that is processing the refund. This must be the same as the store name configured in your - * Customer Area. Otherwise, you get an error and the refund fails. + * @param store The online store or [physical store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) that is processing the refund. This must be the same as the store name configured in your Customer Area. Otherwise, you get an error and the refund fails. * @return the current {@code PaymentRefundResponse} instance, allowing for method chaining */ public PaymentRefundResponse store(String store) { @@ -583,15 +515,8 @@ public PaymentRefundResponse store(String store) { } /** - * The online store or [physical - * store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) - * that is processing the refund. This must be the same as the store name configured in your - * Customer Area. Otherwise, you get an error and the refund fails. - * - * @return store The online store or [physical - * store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) - * that is processing the refund. This must be the same as the store name configured in your - * Customer Area. Otherwise, you get an error and the refund fails. + * The online store or [physical store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) that is processing the refund. This must be the same as the store name configured in your Customer Area. Otherwise, you get an error and the refund fails. + * @return store The online store or [physical store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) that is processing the refund. This must be the same as the store name configured in your Customer Area. Otherwise, you get an error and the refund fails. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -600,15 +525,9 @@ public String getStore() { } /** - * The online store or [physical - * store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) - * that is processing the refund. This must be the same as the store name configured in your - * Customer Area. Otherwise, you get an error and the refund fails. + * The online store or [physical store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) that is processing the refund. This must be the same as the store name configured in your Customer Area. Otherwise, you get an error and the refund fails. * - * @param store The online store or [physical - * store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) - * that is processing the refund. This must be the same as the store name configured in your - * Customer Area. Otherwise, you get an error and the refund fails. + * @param store The online store or [physical store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) that is processing the refund. This must be the same as the store name configured in your Customer Area. Otherwise, you get an error and the refund fails. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -616,7 +535,9 @@ public void setStore(String store) { this.store = store; } - /** Return true if this PaymentRefundResponse object is equal to o. */ + /** + * Return true if this PaymentRefundResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -626,33 +547,22 @@ public boolean equals(Object o) { return false; } PaymentRefundResponse paymentRefundResponse = (PaymentRefundResponse) o; - return Objects.equals(this.amount, paymentRefundResponse.amount) - && Objects.equals(this.capturePspReference, paymentRefundResponse.capturePspReference) - && Objects.equals(this.lineItems, paymentRefundResponse.lineItems) - && Objects.equals(this.merchantAccount, paymentRefundResponse.merchantAccount) - && Objects.equals(this.merchantRefundReason, paymentRefundResponse.merchantRefundReason) - && Objects.equals(this.paymentPspReference, paymentRefundResponse.paymentPspReference) - && Objects.equals(this.pspReference, paymentRefundResponse.pspReference) - && Objects.equals(this.reference, paymentRefundResponse.reference) - && Objects.equals(this.splits, paymentRefundResponse.splits) - && Objects.equals(this.status, paymentRefundResponse.status) - && Objects.equals(this.store, paymentRefundResponse.store); + return Objects.equals(this.amount, paymentRefundResponse.amount) && + Objects.equals(this.capturePspReference, paymentRefundResponse.capturePspReference) && + Objects.equals(this.lineItems, paymentRefundResponse.lineItems) && + Objects.equals(this.merchantAccount, paymentRefundResponse.merchantAccount) && + Objects.equals(this.merchantRefundReason, paymentRefundResponse.merchantRefundReason) && + Objects.equals(this.paymentPspReference, paymentRefundResponse.paymentPspReference) && + Objects.equals(this.pspReference, paymentRefundResponse.pspReference) && + Objects.equals(this.reference, paymentRefundResponse.reference) && + Objects.equals(this.splits, paymentRefundResponse.splits) && + Objects.equals(this.status, paymentRefundResponse.status) && + Objects.equals(this.store, paymentRefundResponse.store); } @Override public int hashCode() { - return Objects.hash( - amount, - capturePspReference, - lineItems, - merchantAccount, - merchantRefundReason, - paymentPspReference, - pspReference, - reference, - splits, - status, - store); + return Objects.hash(amount, capturePspReference, lineItems, merchantAccount, merchantRefundReason, paymentPspReference, pspReference, reference, splits, status, store); } @Override @@ -660,17 +570,11 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentRefundResponse {\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append(" capturePspReference: ") - .append(toIndentedString(capturePspReference)) - .append("\n"); + sb.append(" capturePspReference: ").append(toIndentedString(capturePspReference)).append("\n"); sb.append(" lineItems: ").append(toIndentedString(lineItems)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" merchantRefundReason: ") - .append(toIndentedString(merchantRefundReason)) - .append("\n"); - sb.append(" paymentPspReference: ") - .append(toIndentedString(paymentPspReference)) - .append("\n"); + sb.append(" merchantRefundReason: ").append(toIndentedString(merchantRefundReason)).append("\n"); + sb.append(" paymentPspReference: ").append(toIndentedString(paymentPspReference)).append("\n"); sb.append(" pspReference: ").append(toIndentedString(pspReference)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); @@ -681,7 +585,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -690,23 +595,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentRefundResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaymentRefundResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentRefundResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentRefundResponse */ public static PaymentRefundResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentRefundResponse.class); } - - /** - * Convert an instance of PaymentRefundResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentRefundResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentRequest.java b/src/main/java/com/adyen/model/checkout/PaymentRequest.java index c42440bfd..e9036e46d 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentRequest.java @@ -2,31 +2,63 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.AccountInfo; +import com.adyen.model.checkout.Amount; +import com.adyen.model.checkout.ApplicationInfo; +import com.adyen.model.checkout.AuthenticationData; +import com.adyen.model.checkout.BillingAddress; +import com.adyen.model.checkout.BrowserInfo; +import com.adyen.model.checkout.CheckoutBankAccount; +import com.adyen.model.checkout.CheckoutPaymentMethod; +import com.adyen.model.checkout.Company; +import com.adyen.model.checkout.DeliveryAddress; +import com.adyen.model.checkout.EncryptedOrderData; +import com.adyen.model.checkout.EnhancedSchemeData; +import com.adyen.model.checkout.ForexQuote; +import com.adyen.model.checkout.FundOrigin; +import com.adyen.model.checkout.FundRecipient; +import com.adyen.model.checkout.Installments; +import com.adyen.model.checkout.LineItem; +import com.adyen.model.checkout.Mandate; +import com.adyen.model.checkout.MerchantRiskIndicator; +import com.adyen.model.checkout.Name; +import com.adyen.model.checkout.PlatformChargebackLogic; +import com.adyen.model.checkout.RiskData; +import com.adyen.model.checkout.Split; +import com.adyen.model.checkout.SubMerchantInfo; +import com.adyen.model.checkout.Surcharge; +import com.adyen.model.checkout.ThreeDS2RequestFields; +import com.adyen.model.checkout.ThreeDSecureData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PaymentRequest */ +/** + * PaymentRequest + */ @JsonPropertyOrder({ PaymentRequest.JSON_PROPERTY_ACCOUNT_INFO, PaymentRequest.JSON_PROPERTY_ADDITIONAL_AMOUNT, @@ -101,6 +133,7 @@ PaymentRequest.JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY, PaymentRequest.JSON_PROPERTY_TRUSTED_SHOPPER }) + public class PaymentRequest { public static final String JSON_PROPERTY_ACCOUNT_INFO = "accountInfo"; private AccountInfo accountInfo; @@ -133,12 +166,10 @@ public class PaymentRequest { private Integer captureDelayHours; /** - * The platform where a payment transaction takes place. This field is optional for filtering out - * payment methods that are only available on specific platforms. If this value is not set, then - * we will try to infer it from the `sdkVersion` or `token`. Possible values: - * * iOS * Android * Web + * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web */ public enum ChannelEnum { + IOS(String.valueOf("iOS")), ANDROID(String.valueOf("Android")), @@ -150,7 +181,7 @@ public enum ChannelEnum { private String value; ChannelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -171,11 +202,7 @@ public static ChannelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ChannelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ChannelEnum.values())); + LOG.warning("ChannelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChannelEnum.values())); return null; } } @@ -227,8 +254,11 @@ public static ChannelEnum fromValue(String value) { public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA = "enhancedSchemeData"; private EnhancedSchemeData enhancedSchemeData; - /** The type of the entity the payment is processed for. */ + /** + * The type of the entity the payment is processed for. + */ public enum EntityTypeEnum { + NATURALPERSON(String.valueOf("NaturalPerson")), COMPANYNAME(String.valueOf("CompanyName")); @@ -238,7 +268,7 @@ public enum EntityTypeEnum { private String value; EntityTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -259,11 +289,7 @@ public static EntityTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "EntityTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(EntityTypeEnum.values())); + LOG.warning("EntityTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(EntityTypeEnum.values())); return null; } } @@ -281,10 +307,10 @@ public static EntityTypeEnum fromValue(String value) { private FundRecipient fundRecipient; /** - * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * - * **installment** + * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** */ public enum IndustryUsageEnum { + DELAYEDCHARGE(String.valueOf("delayedCharge")), INSTALLMENT(String.valueOf("installment")), @@ -296,7 +322,7 @@ public enum IndustryUsageEnum { private String value; IndustryUsageEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -317,11 +343,7 @@ public static IndustryUsageEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "IndustryUsageEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(IndustryUsageEnum.values())); + LOG.warning("IndustryUsageEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(IndustryUsageEnum.values())); return null; } } @@ -335,8 +357,7 @@ public static IndustryUsageEnum fromValue(String value) { public static final String JSON_PROPERTY_LINE_ITEMS = "lineItems"; private List lineItems; - public static final String JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT = - "localizedShopperStatement"; + public static final String JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT = "localizedShopperStatement"; private Map localizedShopperStatement; public static final String JSON_PROPERTY_MANDATE = "mandate"; @@ -382,30 +403,22 @@ public static IndustryUsageEnum fromValue(String value) { private String recurringFrequency; /** - * Defines a recurring payment type. Required when creating a token to store payment details or - * using stored payment details. Allowed values: * `Subscription` – A transaction for a - * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a - * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – - * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ public enum RecurringProcessingModelEnum { + CARDONFILE(String.valueOf("CardOnFile")), SUBSCRIPTION(String.valueOf("Subscription")), UNSCHEDULEDCARDONFILE(String.valueOf("UnscheduledCardOnFile")); - private static final Logger LOG = - Logger.getLogger(RecurringProcessingModelEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(RecurringProcessingModelEnum.class.getName()); private String value; RecurringProcessingModelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -426,11 +439,7 @@ public static RecurringProcessingModelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "RecurringProcessingModelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(RecurringProcessingModelEnum.values())); + LOG.warning("RecurringProcessingModelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RecurringProcessingModelEnum.values())); return null; } } @@ -466,19 +475,10 @@ public static RecurringProcessingModelEnum fromValue(String value) { private String shopperIP; /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ public enum ShopperInteractionEnum { + ECOMMERCE(String.valueOf("Ecommerce")), CONTAUTH(String.valueOf("ContAuth")), @@ -492,7 +492,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -513,11 +513,7 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ShopperInteractionEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -561,21 +557,20 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S2_REQUEST_DATA = "threeDS2RequestData"; private ThreeDS2RequestFields threeDS2RequestData; - public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = - "threeDSAuthenticationOnly"; - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = "threeDSAuthenticationOnly"; + @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. private Boolean threeDSAuthenticationOnly; public static final String JSON_PROPERTY_TRUSTED_SHOPPER = "trustedShopper"; private Boolean trustedShopper; - public PaymentRequest() {} + public PaymentRequest() { + } /** * accountInfo * - * @param accountInfo + * @param accountInfo * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest accountInfo(AccountInfo accountInfo) { @@ -585,8 +580,7 @@ public PaymentRequest accountInfo(AccountInfo accountInfo) { /** * Get accountInfo - * - * @return accountInfo + * @return accountInfo */ @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -597,7 +591,7 @@ public AccountInfo getAccountInfo() { /** * accountInfo * - * @param accountInfo + * @param accountInfo */ @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -608,7 +602,7 @@ public void setAccountInfo(AccountInfo accountInfo) { /** * additionalAmount * - * @param additionalAmount + * @param additionalAmount * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest additionalAmount(Amount additionalAmount) { @@ -618,8 +612,7 @@ public PaymentRequest additionalAmount(Amount additionalAmount) { /** * Get additionalAmount - * - * @return additionalAmount + * @return additionalAmount */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -630,7 +623,7 @@ public Amount getAdditionalAmount() { /** * additionalAmount * - * @param additionalAmount + * @param additionalAmount */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -639,13 +632,9 @@ public void setAdditionalAmount(Amount additionalAmount) { } /** - * This field contains additional data, which may be required for a particular payment request. - * The `additionalData` object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular payment request. The `additionalData` object consists of entries, each - * of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest additionalData(Map additionalData) { @@ -662,13 +651,8 @@ public PaymentRequest putAdditionalDataItem(String key, String additionalDataIte } /** - * This field contains additional data, which may be required for a particular payment request. - * The `additionalData` object consists of entries, each of which includes the key and - * value. - * - * @return additionalData This field contains additional data, which may be required for a - * particular payment request. The `additionalData` object consists of entries, each - * of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * @return additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -677,13 +661,9 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular payment request. - * The `additionalData` object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular payment request. The `additionalData` object consists of entries, each - * of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -694,7 +674,7 @@ public void setAdditionalData(Map additionalData) { /** * amount * - * @param amount + * @param amount * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest amount(Amount amount) { @@ -704,8 +684,7 @@ public PaymentRequest amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -716,7 +695,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -727,7 +706,7 @@ public void setAmount(Amount amount) { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest applicationInfo(ApplicationInfo applicationInfo) { @@ -737,8 +716,7 @@ public PaymentRequest applicationInfo(ApplicationInfo applicationInfo) { /** * Get applicationInfo - * - * @return applicationInfo + * @return applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -749,7 +727,7 @@ public ApplicationInfo getApplicationInfo() { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -760,7 +738,7 @@ public void setApplicationInfo(ApplicationInfo applicationInfo) { /** * authenticationData * - * @param authenticationData + * @param authenticationData * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest authenticationData(AuthenticationData authenticationData) { @@ -770,8 +748,7 @@ public PaymentRequest authenticationData(AuthenticationData authenticationData) /** * Get authenticationData - * - * @return authenticationData + * @return authenticationData */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -782,7 +759,7 @@ public AuthenticationData getAuthenticationData() { /** * authenticationData * - * @param authenticationData + * @param authenticationData */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -793,7 +770,7 @@ public void setAuthenticationData(AuthenticationData authenticationData) { /** * bankAccount * - * @param bankAccount + * @param bankAccount * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest bankAccount(CheckoutBankAccount bankAccount) { @@ -803,8 +780,7 @@ public PaymentRequest bankAccount(CheckoutBankAccount bankAccount) { /** * Get bankAccount - * - * @return bankAccount + * @return bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -815,7 +791,7 @@ public CheckoutBankAccount getBankAccount() { /** * bankAccount * - * @param bankAccount + * @param bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -826,7 +802,7 @@ public void setBankAccount(CheckoutBankAccount bankAccount) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest billingAddress(BillingAddress billingAddress) { @@ -836,8 +812,7 @@ public PaymentRequest billingAddress(BillingAddress billingAddress) { /** * Get billingAddress - * - * @return billingAddress + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -848,7 +823,7 @@ public BillingAddress getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -859,7 +834,7 @@ public void setBillingAddress(BillingAddress billingAddress) { /** * browserInfo * - * @param browserInfo + * @param browserInfo * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest browserInfo(BrowserInfo browserInfo) { @@ -869,8 +844,7 @@ public PaymentRequest browserInfo(BrowserInfo browserInfo) { /** * Get browserInfo - * - * @return browserInfo + * @return browserInfo */ @JsonProperty(JSON_PROPERTY_BROWSER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -881,7 +855,7 @@ public BrowserInfo getBrowserInfo() { /** * browserInfo * - * @param browserInfo + * @param browserInfo */ @JsonProperty(JSON_PROPERTY_BROWSER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -892,8 +866,7 @@ public void setBrowserInfo(BrowserInfo browserInfo) { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, - * specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest captureDelayHours(Integer captureDelayHours) { @@ -903,9 +876,7 @@ public PaymentRequest captureDelayHours(Integer captureDelayHours) { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. - * - * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, - * specified in hours. + * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -916,8 +887,7 @@ public Integer getCaptureDelayHours() { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, - * specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -926,15 +896,9 @@ public void setCaptureDelayHours(Integer captureDelayHours) { } /** - * The platform where a payment transaction takes place. This field is optional for filtering out - * payment methods that are only available on specific platforms. If this value is not set, then - * we will try to infer it from the `sdkVersion` or `token`. Possible values: - * * iOS * Android * Web + * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web * - * @param channel The platform where a payment transaction takes place. This field is optional for - * filtering out payment methods that are only available on specific platforms. If this value - * is not set, then we will try to infer it from the `sdkVersion` or - * `token`. Possible values: * iOS * Android * Web + * @param channel The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest channel(ChannelEnum channel) { @@ -943,15 +907,8 @@ public PaymentRequest channel(ChannelEnum channel) { } /** - * The platform where a payment transaction takes place. This field is optional for filtering out - * payment methods that are only available on specific platforms. If this value is not set, then - * we will try to infer it from the `sdkVersion` or `token`. Possible values: - * * iOS * Android * Web - * - * @return channel The platform where a payment transaction takes place. This field is optional - * for filtering out payment methods that are only available on specific platforms. If this - * value is not set, then we will try to infer it from the `sdkVersion` or - * `token`. Possible values: * iOS * Android * Web + * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web + * @return channel The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web */ @JsonProperty(JSON_PROPERTY_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -960,15 +917,9 @@ public ChannelEnum getChannel() { } /** - * The platform where a payment transaction takes place. This field is optional for filtering out - * payment methods that are only available on specific platforms. If this value is not set, then - * we will try to infer it from the `sdkVersion` or `token`. Possible values: - * * iOS * Android * Web + * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web * - * @param channel The platform where a payment transaction takes place. This field is optional for - * filtering out payment methods that are only available on specific platforms. If this value - * is not set, then we will try to infer it from the `sdkVersion` or - * `token`. Possible values: * iOS * Android * Web + * @param channel The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web */ @JsonProperty(JSON_PROPERTY_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -977,11 +928,9 @@ public void setChannel(ChannelEnum channel) { } /** - * Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user - * payment journey. + * Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user payment journey. * - * @param checkoutAttemptId Checkout attempt ID that corresponds to the Id generated by the client - * SDK for tracking user payment journey. + * @param checkoutAttemptId Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user payment journey. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest checkoutAttemptId(String checkoutAttemptId) { @@ -990,11 +939,8 @@ public PaymentRequest checkoutAttemptId(String checkoutAttemptId) { } /** - * Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user - * payment journey. - * - * @return checkoutAttemptId Checkout attempt ID that corresponds to the Id generated by the - * client SDK for tracking user payment journey. + * Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user payment journey. + * @return checkoutAttemptId Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user payment journey. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1003,11 +949,9 @@ public String getCheckoutAttemptId() { } /** - * Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user - * payment journey. + * Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user payment journey. * - * @param checkoutAttemptId Checkout attempt ID that corresponds to the Id generated by the client - * SDK for tracking user payment journey. + * @param checkoutAttemptId Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user payment journey. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1018,7 +962,7 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { /** * company * - * @param company + * @param company * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest company(Company company) { @@ -1028,8 +972,7 @@ public PaymentRequest company(Company company) { /** * Get company - * - * @return company + * @return company */ @JsonProperty(JSON_PROPERTY_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1040,7 +983,7 @@ public Company getCompany() { /** * company * - * @param company + * @param company */ @JsonProperty(JSON_PROPERTY_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1049,13 +992,13 @@ public void setCompany(Company company) { } /** - * Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment - * journey. + * Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey. * - * @param conversionId Conversion ID that corresponds to the Id generated by the client SDK for - * tracking user payment journey. + * @param conversionId Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey. * @return the current {@code PaymentRequest} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v68 Use `checkoutAttemptId` instead + * + * @deprecated since Adyen Checkout API v68 + * Use `checkoutAttemptId` instead */ @Deprecated // deprecated since Adyen Checkout API v68: Use `checkoutAttemptId` instead public PaymentRequest conversionId(String conversionId) { @@ -1064,11 +1007,8 @@ public PaymentRequest conversionId(String conversionId) { } /** - * Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment - * journey. - * - * @return conversionId Conversion ID that corresponds to the Id generated by the client SDK for - * tracking user payment journey. + * Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey. + * @return conversionId Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey. * @deprecated // deprecated since Adyen Checkout API v68: Use `checkoutAttemptId` instead */ @Deprecated // deprecated since Adyen Checkout API v68: Use `checkoutAttemptId` instead @@ -1079,12 +1019,12 @@ public String getConversionId() { } /** - * Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment - * journey. + * Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey. * - * @param conversionId Conversion ID that corresponds to the Id generated by the client SDK for - * tracking user payment journey. - * @deprecated since Adyen Checkout API v68 Use `checkoutAttemptId` instead + * @param conversionId Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey. + * + * @deprecated since Adyen Checkout API v68 + * Use `checkoutAttemptId` instead */ @Deprecated // deprecated since Adyen Checkout API v68: Use `checkoutAttemptId` instead @JsonProperty(JSON_PROPERTY_CONVERSION_ID) @@ -1094,11 +1034,9 @@ public void setConversionId(String conversionId) { } /** - * The shopper country. Format: [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE * - * @param countryCode The shopper country. Format: [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * @param countryCode The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest countryCode(String countryCode) { @@ -1107,11 +1045,8 @@ public PaymentRequest countryCode(String countryCode) { } /** - * The shopper country. Format: [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE - * - * @return countryCode The shopper country. Format: [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * @return countryCode The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1120,11 +1055,9 @@ public String getCountryCode() { } /** - * The shopper country. Format: [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE * - * @param countryCode The shopper country. Format: [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * @param countryCode The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1133,11 +1066,9 @@ public void setCountryCode(String countryCode) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): - * YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest dateOfBirth(OffsetDateTime dateOfBirth) { @@ -1146,11 +1077,8 @@ public PaymentRequest dateOfBirth(OffsetDateTime dateOfBirth) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): - * YYYY-MM-DD - * - * @return dateOfBirth The shopper's date of birth. Format - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @return dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1159,11 +1087,9 @@ public OffsetDateTime getDateOfBirth() { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): - * YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1174,7 +1100,7 @@ public void setDateOfBirth(OffsetDateTime dateOfBirth) { /** * dccQuote * - * @param dccQuote + * @param dccQuote * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest dccQuote(ForexQuote dccQuote) { @@ -1184,8 +1110,7 @@ public PaymentRequest dccQuote(ForexQuote dccQuote) { /** * Get dccQuote - * - * @return dccQuote + * @return dccQuote */ @JsonProperty(JSON_PROPERTY_DCC_QUOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1196,7 +1121,7 @@ public ForexQuote getDccQuote() { /** * dccQuote * - * @param dccQuote + * @param dccQuote */ @JsonProperty(JSON_PROPERTY_DCC_QUOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1205,13 +1130,9 @@ public void setDccQuote(ForexQuote dccQuote) { } /** - * The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 * - * @param deliverAt The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * @param deliverAt The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest deliverAt(OffsetDateTime deliverAt) { @@ -1220,13 +1141,8 @@ public PaymentRequest deliverAt(OffsetDateTime deliverAt) { } /** - * The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 - * - * @return deliverAt The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * @return deliverAt The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 */ @JsonProperty(JSON_PROPERTY_DELIVER_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1235,13 +1151,9 @@ public OffsetDateTime getDeliverAt() { } /** - * The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 * - * @param deliverAt The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * @param deliverAt The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 */ @JsonProperty(JSON_PROPERTY_DELIVER_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1252,7 +1164,7 @@ public void setDeliverAt(OffsetDateTime deliverAt) { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest deliveryAddress(DeliveryAddress deliveryAddress) { @@ -1262,8 +1174,7 @@ public PaymentRequest deliveryAddress(DeliveryAddress deliveryAddress) { /** * Get deliveryAddress - * - * @return deliveryAddress + * @return deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1274,7 +1185,7 @@ public DeliveryAddress getDeliveryAddress() { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1283,15 +1194,13 @@ public void setDeliveryAddress(DeliveryAddress deliveryAddress) { } /** - * The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 * - * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 * @return the current {@code PaymentRequest} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v70 Use `deliverAt` instead. + * + * @deprecated since Adyen Checkout API v70 + * Use `deliverAt` instead. */ @Deprecated // deprecated since Adyen Checkout API v70: Use `deliverAt` instead. public PaymentRequest deliveryDate(OffsetDateTime deliveryDate) { @@ -1300,13 +1209,8 @@ public PaymentRequest deliveryDate(OffsetDateTime deliveryDate) { } /** - * The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 - * - * @return deliveryDate The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * @return deliveryDate The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 * @deprecated // deprecated since Adyen Checkout API v70: Use `deliverAt` instead. */ @Deprecated // deprecated since Adyen Checkout API v70: Use `deliverAt` instead. @@ -1317,14 +1221,12 @@ public OffsetDateTime getDeliveryDate() { } /** - * The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * + * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 * - * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 - * @deprecated since Adyen Checkout API v70 Use `deliverAt` instead. + * @deprecated since Adyen Checkout API v70 + * Use `deliverAt` instead. */ @Deprecated // deprecated since Adyen Checkout API v70: Use `deliverAt` instead. @JsonProperty(JSON_PROPERTY_DELIVERY_DATE) @@ -1334,12 +1236,9 @@ public void setDeliveryDate(OffsetDateTime deliveryDate) { } /** - * A string containing the shopper's device fingerprint. For more information, refer to - * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * - * @param deviceFingerprint A string containing the shopper's device fingerprint. For more - * information, refer to [Device - * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @param deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest deviceFingerprint(String deviceFingerprint) { @@ -1348,12 +1247,8 @@ public PaymentRequest deviceFingerprint(String deviceFingerprint) { } /** - * A string containing the shopper's device fingerprint. For more information, refer to - * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). - * - * @return deviceFingerprint A string containing the shopper's device fingerprint. For more - * information, refer to [Device - * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @return deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1362,12 +1257,9 @@ public String getDeviceFingerprint() { } /** - * A string containing the shopper's device fingerprint. For more information, refer to - * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * - * @param deviceFingerprint A string containing the shopper's device fingerprint. For more - * information, refer to [Device - * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @param deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1376,13 +1268,9 @@ public void setDeviceFingerprint(String deviceFingerprint) { } /** - * When true and `shopperReference` is provided, the shopper will be asked if the - * payment details should be stored for future [one-click - * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). * - * @param enableOneClick When true and `shopperReference` is provided, the shopper will - * be asked if the payment details should be stored for future [one-click - * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * @param enableOneClick When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest enableOneClick(Boolean enableOneClick) { @@ -1391,13 +1279,8 @@ public PaymentRequest enableOneClick(Boolean enableOneClick) { } /** - * When true and `shopperReference` is provided, the shopper will be asked if the - * payment details should be stored for future [one-click - * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). - * - * @return enableOneClick When true and `shopperReference` is provided, the shopper will - * be asked if the payment details should be stored for future [one-click - * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * @return enableOneClick When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). */ @JsonProperty(JSON_PROPERTY_ENABLE_ONE_CLICK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1406,13 +1289,9 @@ public Boolean getEnableOneClick() { } /** - * When true and `shopperReference` is provided, the shopper will be asked if the - * payment details should be stored for future [one-click - * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). * - * @param enableOneClick When true and `shopperReference` is provided, the shopper will - * be asked if the payment details should be stored for future [one-click - * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * @param enableOneClick When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). */ @JsonProperty(JSON_PROPERTY_ENABLE_ONE_CLICK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1421,11 +1300,9 @@ public void setEnableOneClick(Boolean enableOneClick) { } /** - * When true and `shopperReference` is provided, the payment details will be tokenized - * for payouts. + * When true and `shopperReference` is provided, the payment details will be tokenized for payouts. * - * @param enablePayOut When true and `shopperReference` is provided, the payment details - * will be tokenized for payouts. + * @param enablePayOut When true and `shopperReference` is provided, the payment details will be tokenized for payouts. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest enablePayOut(Boolean enablePayOut) { @@ -1434,11 +1311,8 @@ public PaymentRequest enablePayOut(Boolean enablePayOut) { } /** - * When true and `shopperReference` is provided, the payment details will be tokenized - * for payouts. - * - * @return enablePayOut When true and `shopperReference` is provided, the payment - * details will be tokenized for payouts. + * When true and `shopperReference` is provided, the payment details will be tokenized for payouts. + * @return enablePayOut When true and `shopperReference` is provided, the payment details will be tokenized for payouts. */ @JsonProperty(JSON_PROPERTY_ENABLE_PAY_OUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1447,11 +1321,9 @@ public Boolean getEnablePayOut() { } /** - * When true and `shopperReference` is provided, the payment details will be tokenized - * for payouts. + * When true and `shopperReference` is provided, the payment details will be tokenized for payouts. * - * @param enablePayOut When true and `shopperReference` is provided, the payment details - * will be tokenized for payouts. + * @param enablePayOut When true and `shopperReference` is provided, the payment details will be tokenized for payouts. */ @JsonProperty(JSON_PROPERTY_ENABLE_PAY_OUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1460,15 +1332,9 @@ public void setEnablePayOut(Boolean enablePayOut) { } /** - * When true and `shopperReference` is provided, the payment details will be stored for - * [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where - * the shopper is not present, such as subscription or automatic top-up payments. + * When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. * - * @param enableRecurring When true and `shopperReference` is provided, the payment - * details will be stored for [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) - * where the shopper is not present, such as subscription or automatic top-up payments. + * @param enableRecurring When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest enableRecurring(Boolean enableRecurring) { @@ -1477,15 +1343,8 @@ public PaymentRequest enableRecurring(Boolean enableRecurring) { } /** - * When true and `shopperReference` is provided, the payment details will be stored for - * [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where - * the shopper is not present, such as subscription or automatic top-up payments. - * - * @return enableRecurring When true and `shopperReference` is provided, the payment - * details will be stored for [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) - * where the shopper is not present, such as subscription or automatic top-up payments. + * When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. + * @return enableRecurring When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. */ @JsonProperty(JSON_PROPERTY_ENABLE_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1494,15 +1353,9 @@ public Boolean getEnableRecurring() { } /** - * When true and `shopperReference` is provided, the payment details will be stored for - * [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where - * the shopper is not present, such as subscription or automatic top-up payments. + * When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. * - * @param enableRecurring When true and `shopperReference` is provided, the payment - * details will be stored for [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) - * where the shopper is not present, such as subscription or automatic top-up payments. + * @param enableRecurring When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. */ @JsonProperty(JSON_PROPERTY_ENABLE_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1513,7 +1366,7 @@ public void setEnableRecurring(Boolean enableRecurring) { /** * enhancedSchemeData * - * @param enhancedSchemeData + * @param enhancedSchemeData * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest enhancedSchemeData(EnhancedSchemeData enhancedSchemeData) { @@ -1523,8 +1376,7 @@ public PaymentRequest enhancedSchemeData(EnhancedSchemeData enhancedSchemeData) /** * Get enhancedSchemeData - * - * @return enhancedSchemeData + * @return enhancedSchemeData */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1535,7 +1387,7 @@ public EnhancedSchemeData getEnhancedSchemeData() { /** * enhancedSchemeData * - * @param enhancedSchemeData + * @param enhancedSchemeData */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1556,7 +1408,6 @@ public PaymentRequest entityType(EntityTypeEnum entityType) { /** * The type of the entity the payment is processed for. - * * @return entityType The type of the entity the payment is processed for. */ @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) @@ -1577,11 +1428,9 @@ public void setEntityType(EntityTypeEnum entityType) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or - * negative. + * An integer value that is added to the normal fraud score. The value can be either positive or negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be - * either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest fraudOffset(Integer fraudOffset) { @@ -1590,11 +1439,8 @@ public PaymentRequest fraudOffset(Integer fraudOffset) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or - * negative. - * - * @return fraudOffset An integer value that is added to the normal fraud score. The value can be - * either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + * @return fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1603,11 +1449,9 @@ public Integer getFraudOffset() { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or - * negative. + * An integer value that is added to the normal fraud score. The value can be either positive or negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be - * either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1618,7 +1462,7 @@ public void setFraudOffset(Integer fraudOffset) { /** * fundOrigin * - * @param fundOrigin + * @param fundOrigin * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest fundOrigin(FundOrigin fundOrigin) { @@ -1628,8 +1472,7 @@ public PaymentRequest fundOrigin(FundOrigin fundOrigin) { /** * Get fundOrigin - * - * @return fundOrigin + * @return fundOrigin */ @JsonProperty(JSON_PROPERTY_FUND_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1640,7 +1483,7 @@ public FundOrigin getFundOrigin() { /** * fundOrigin * - * @param fundOrigin + * @param fundOrigin */ @JsonProperty(JSON_PROPERTY_FUND_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1651,7 +1494,7 @@ public void setFundOrigin(FundOrigin fundOrigin) { /** * fundRecipient * - * @param fundRecipient + * @param fundRecipient * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest fundRecipient(FundRecipient fundRecipient) { @@ -1661,8 +1504,7 @@ public PaymentRequest fundRecipient(FundRecipient fundRecipient) { /** * Get fundRecipient - * - * @return fundRecipient + * @return fundRecipient */ @JsonProperty(JSON_PROPERTY_FUND_RECIPIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1673,7 +1515,7 @@ public FundRecipient getFundRecipient() { /** * fundRecipient * - * @param fundRecipient + * @param fundRecipient */ @JsonProperty(JSON_PROPERTY_FUND_RECIPIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1682,11 +1524,9 @@ public void setFundRecipient(FundRecipient fundRecipient) { } /** - * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * - * **installment** + * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** * - * @param industryUsage The reason for the amount update. Possible values: * **delayedCharge** * - * **noShow** * **installment** + * @param industryUsage The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest industryUsage(IndustryUsageEnum industryUsage) { @@ -1695,11 +1535,8 @@ public PaymentRequest industryUsage(IndustryUsageEnum industryUsage) { } /** - * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * - * **installment** - * - * @return industryUsage The reason for the amount update. Possible values: * **delayedCharge** * - * **noShow** * **installment** + * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** + * @return industryUsage The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** */ @JsonProperty(JSON_PROPERTY_INDUSTRY_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1708,11 +1545,9 @@ public IndustryUsageEnum getIndustryUsage() { } /** - * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * - * **installment** + * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** * - * @param industryUsage The reason for the amount update. Possible values: * **delayedCharge** * - * **noShow** * **installment** + * @param industryUsage The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** */ @JsonProperty(JSON_PROPERTY_INDUSTRY_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1723,7 +1558,7 @@ public void setIndustryUsage(IndustryUsageEnum industryUsage) { /** * installments * - * @param installments + * @param installments * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest installments(Installments installments) { @@ -1733,8 +1568,7 @@ public PaymentRequest installments(Installments installments) { /** * Get installments - * - * @return installments + * @return installments */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1745,7 +1579,7 @@ public Installments getInstallments() { /** * installments * - * @param installments + * @param installments */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1754,13 +1588,9 @@ public void setInstallments(Installments installments) { } /** - * Price and product information about the purchased items, to be included on the invoice sent to - * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, - * Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. * - * @param lineItems Price and product information about the purchased items, to be included on the - * invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, - * Clearpay, Klarna, Ratepay, and Riverty. + * @param lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest lineItems(List lineItems) { @@ -1777,13 +1607,8 @@ public PaymentRequest addLineItemsItem(LineItem lineItemsItem) { } /** - * Price and product information about the purchased items, to be included on the invoice sent to - * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, - * Ratepay, and Riverty. - * - * @return lineItems Price and product information about the purchased items, to be included on - * the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, - * Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * @return lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1792,13 +1617,9 @@ public List getLineItems() { } /** - * Price and product information about the purchased items, to be included on the invoice sent to - * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, - * Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. * - * @param lineItems Price and product information about the purchased items, to be included on the - * invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, - * Clearpay, Klarna, Ratepay, and Riverty. + * @param lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1807,19 +1628,9 @@ public void setLineItems(List lineItems) { } /** - * The `localizedShopperStatement` field lets you use dynamic values for your shopper - * statement in a local character set. If not supplied, left empty, or for cross-border - * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana character set - * for Visa and Mastercard payments in Japan using Japanese cards. This character set supports: * - * UTF-8 based Katakana, capital letters, numbers and special characters. * Half-width or - * full-width characters. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana character set for Visa and Mastercard payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, capital letters, numbers and special characters. * Half-width or full-width characters. * - * @param localizedShopperStatement The `localizedShopperStatement` field lets you use - * dynamic values for your shopper statement in a local character set. If not supplied, left - * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently - * supports the ja-Kana character set for Visa and Mastercard payments in Japan using Japanese - * cards. This character set supports: * UTF-8 based Katakana, capital letters, numbers and - * special characters. * Half-width or full-width characters. + * @param localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana character set for Visa and Mastercard payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, capital letters, numbers and special characters. * Half-width or full-width characters. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest localizedShopperStatement(Map localizedShopperStatement) { @@ -1827,8 +1638,7 @@ public PaymentRequest localizedShopperStatement(Map localizedSho return this; } - public PaymentRequest putLocalizedShopperStatementItem( - String key, String localizedShopperStatementItem) { + public PaymentRequest putLocalizedShopperStatementItem(String key, String localizedShopperStatementItem) { if (this.localizedShopperStatement == null) { this.localizedShopperStatement = new HashMap<>(); } @@ -1837,19 +1647,8 @@ public PaymentRequest putLocalizedShopperStatementItem( } /** - * The `localizedShopperStatement` field lets you use dynamic values for your shopper - * statement in a local character set. If not supplied, left empty, or for cross-border - * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana character set - * for Visa and Mastercard payments in Japan using Japanese cards. This character set supports: * - * UTF-8 based Katakana, capital letters, numbers and special characters. * Half-width or - * full-width characters. - * - * @return localizedShopperStatement The `localizedShopperStatement` field lets you use - * dynamic values for your shopper statement in a local character set. If not supplied, left - * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently - * supports the ja-Kana character set for Visa and Mastercard payments in Japan using Japanese - * cards. This character set supports: * UTF-8 based Katakana, capital letters, numbers and - * special characters. * Half-width or full-width characters. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana character set for Visa and Mastercard payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, capital letters, numbers and special characters. * Half-width or full-width characters. + * @return localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana character set for Visa and Mastercard payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, capital letters, numbers and special characters. * Half-width or full-width characters. */ @JsonProperty(JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1858,19 +1657,9 @@ public Map getLocalizedShopperStatement() { } /** - * The `localizedShopperStatement` field lets you use dynamic values for your shopper - * statement in a local character set. If not supplied, left empty, or for cross-border - * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana character set - * for Visa and Mastercard payments in Japan using Japanese cards. This character set supports: * - * UTF-8 based Katakana, capital letters, numbers and special characters. * Half-width or - * full-width characters. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana character set for Visa and Mastercard payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, capital letters, numbers and special characters. * Half-width or full-width characters. * - * @param localizedShopperStatement The `localizedShopperStatement` field lets you use - * dynamic values for your shopper statement in a local character set. If not supplied, left - * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently - * supports the ja-Kana character set for Visa and Mastercard payments in Japan using Japanese - * cards. This character set supports: * UTF-8 based Katakana, capital letters, numbers and - * special characters. * Half-width or full-width characters. + * @param localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana character set for Visa and Mastercard payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, capital letters, numbers and special characters. * Half-width or full-width characters. */ @JsonProperty(JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1881,7 +1670,7 @@ public void setLocalizedShopperStatement(Map localizedShopperSta /** * mandate * - * @param mandate + * @param mandate * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest mandate(Mandate mandate) { @@ -1891,8 +1680,7 @@ public PaymentRequest mandate(Mandate mandate) { /** * Get mandate - * - * @return mandate + * @return mandate */ @JsonProperty(JSON_PROPERTY_MANDATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1903,7 +1691,7 @@ public Mandate getMandate() { /** * mandate * - * @param mandate + * @param mandate */ @JsonProperty(JSON_PROPERTY_MANDATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1912,13 +1700,9 @@ public void setMandate(Mandate mandate) { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a - * four-digit number, which relates to a particular market segment. This code reflects the - * predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) - * (MCC) is a four-digit number, which relates to a particular market segment. This code - * reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest mcc(String mcc) { @@ -1927,13 +1711,8 @@ public PaymentRequest mcc(String mcc) { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a - * four-digit number, which relates to a particular market segment. This code reflects the - * predominant activity that is conducted by the merchant. - * - * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) - * (MCC) is a four-digit number, which relates to a particular market segment. This code - * reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1942,13 +1721,9 @@ public String getMcc() { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a - * four-digit number, which relates to a particular market segment. This code reflects the - * predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) - * (MCC) is a four-digit number, which relates to a particular market segment. This code - * reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1959,8 +1734,7 @@ public void setMcc(String mcc) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest merchantAccount(String merchantAccount) { @@ -1970,9 +1744,7 @@ public PaymentRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * - * @return merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @return merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1983,8 +1755,7 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1993,23 +1764,9 @@ public void setMerchantAccount(String merchantAccount) { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. - * order auth-rate). The reference should be unique per billing cycle. The same merchant order - * reference should never be reused after the first authorised attempt. If used, this field should - * be supplied for all incoming authorisations. > We strongly recommend you send the - * `merchantOrderReference` value to benefit from linking payment requests when - * authorisation retries take place. In addition, we recommend you provide - * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. * - * @param merchantOrderReference This reference allows linking multiple transactions to each other - * for reporting purposes (i.e. order auth-rate). The reference should be unique per billing - * cycle. The same merchant order reference should never be reused after the first authorised - * attempt. If used, this field should be supplied for all incoming authorisations. > We - * strongly recommend you send the `merchantOrderReference` value to benefit from - * linking payment requests when authorisation retries take place. In addition, we recommend - * you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest merchantOrderReference(String merchantOrderReference) { @@ -2018,24 +1775,8 @@ public PaymentRequest merchantOrderReference(String merchantOrderReference) { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. - * order auth-rate). The reference should be unique per billing cycle. The same merchant order - * reference should never be reused after the first authorised attempt. If used, this field should - * be supplied for all incoming authorisations. > We strongly recommend you send the - * `merchantOrderReference` value to benefit from linking payment requests when - * authorisation retries take place. In addition, we recommend you provide - * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. - * - * @return merchantOrderReference This reference allows linking multiple transactions to each - * other for reporting purposes (i.e. order auth-rate). The reference should be unique per - * billing cycle. The same merchant order reference should never be reused after the first - * authorised attempt. If used, this field should be supplied for all incoming authorisations. - * > We strongly recommend you send the `merchantOrderReference` value to benefit - * from linking payment requests when authorisation retries take place. In addition, we - * recommend you provide `retry.orderAttemptNumber`, - * `retry.chainAttemptNumber`, and `retry.skipRetry` values in - * `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * @return merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2044,23 +1785,9 @@ public String getMerchantOrderReference() { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. - * order auth-rate). The reference should be unique per billing cycle. The same merchant order - * reference should never be reused after the first authorised attempt. If used, this field should - * be supplied for all incoming authorisations. > We strongly recommend you send the - * `merchantOrderReference` value to benefit from linking payment requests when - * authorisation retries take place. In addition, we recommend you provide - * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. * - * @param merchantOrderReference This reference allows linking multiple transactions to each other - * for reporting purposes (i.e. order auth-rate). The reference should be unique per billing - * cycle. The same merchant order reference should never be reused after the first authorised - * attempt. If used, this field should be supplied for all incoming authorisations. > We - * strongly recommend you send the `merchantOrderReference` value to benefit from - * linking payment requests when authorisation retries take place. In addition, we recommend - * you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2071,7 +1798,7 @@ public void setMerchantOrderReference(String merchantOrderReference) { /** * merchantRiskIndicator * - * @param merchantRiskIndicator + * @param merchantRiskIndicator * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest merchantRiskIndicator(MerchantRiskIndicator merchantRiskIndicator) { @@ -2081,8 +1808,7 @@ public PaymentRequest merchantRiskIndicator(MerchantRiskIndicator merchantRiskIn /** * Get merchantRiskIndicator - * - * @return merchantRiskIndicator + * @return merchantRiskIndicator */ @JsonProperty(JSON_PROPERTY_MERCHANT_RISK_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2093,7 +1819,7 @@ public MerchantRiskIndicator getMerchantRiskIndicator() { /** * merchantRiskIndicator * - * @param merchantRiskIndicator + * @param merchantRiskIndicator */ @JsonProperty(JSON_PROPERTY_MERCHANT_RISK_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2102,15 +1828,9 @@ public void setMerchantRiskIndicator(MerchantRiskIndicator merchantRiskIndicator } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 - * key-value pairs per request. When exceeding, the \"177\" error occurs: - * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 - * characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: - * * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error - * occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * - * Maximum 80 characters per value. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest metadata(Map metadata) { @@ -2127,15 +1847,8 @@ public PaymentRequest putMetadataItem(String key, String metadataItem) { } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 - * key-value pairs per request. When exceeding, the \"177\" error occurs: - * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 - * characters per value. - * - * @return metadata Metadata consists of entries, each of which includes a key and a value. - * Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" - * error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * - * Maximum 80 characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * @return metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2144,15 +1857,9 @@ public Map getMetadata() { } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 - * key-value pairs per request. When exceeding, the \"177\" error occurs: - * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 - * characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: - * * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error - * occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * - * Maximum 80 characters per value. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2163,7 +1870,7 @@ public void setMetadata(Map metadata) { /** * mpiData * - * @param mpiData + * @param mpiData * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest mpiData(ThreeDSecureData mpiData) { @@ -2173,8 +1880,7 @@ public PaymentRequest mpiData(ThreeDSecureData mpiData) { /** * Get mpiData - * - * @return mpiData + * @return mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2185,7 +1891,7 @@ public ThreeDSecureData getMpiData() { /** * mpiData * - * @param mpiData + * @param mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2196,7 +1902,7 @@ public void setMpiData(ThreeDSecureData mpiData) { /** * order * - * @param order + * @param order * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest order(EncryptedOrderData order) { @@ -2206,8 +1912,7 @@ public PaymentRequest order(EncryptedOrderData order) { /** * Get order - * - * @return order + * @return order */ @JsonProperty(JSON_PROPERTY_ORDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2218,7 +1923,7 @@ public EncryptedOrderData getOrder() { /** * order * - * @param order + * @param order */ @JsonProperty(JSON_PROPERTY_ORDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2227,14 +1932,9 @@ public void setOrder(EncryptedOrderData order) { } /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` - * of the first payment. We use this to link the multiple payments to each other. As your own - * reference for linking multiple payments, use the `merchantOrderReference`instead. + * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. * - * @param orderReference When you are doing multiple partial (gift card) payments, this is the - * `pspReference` of the first payment. We use this to link the multiple payments to - * each other. As your own reference for linking multiple payments, use the - * `merchantOrderReference`instead. + * @param orderReference When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest orderReference(String orderReference) { @@ -2243,14 +1943,8 @@ public PaymentRequest orderReference(String orderReference) { } /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` - * of the first payment. We use this to link the multiple payments to each other. As your own - * reference for linking multiple payments, use the `merchantOrderReference`instead. - * - * @return orderReference When you are doing multiple partial (gift card) payments, this is the - * `pspReference` of the first payment. We use this to link the multiple payments to - * each other. As your own reference for linking multiple payments, use the - * `merchantOrderReference`instead. + * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + * @return orderReference When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. */ @JsonProperty(JSON_PROPERTY_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2259,14 +1953,9 @@ public String getOrderReference() { } /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` - * of the first payment. We use this to link the multiple payments to each other. As your own - * reference for linking multiple payments, use the `merchantOrderReference`instead. + * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. * - * @param orderReference When you are doing multiple partial (gift card) payments, this is the - * `pspReference` of the first payment. We use this to link the multiple payments to - * each other. As your own reference for linking multiple payments, use the - * `merchantOrderReference`instead. + * @param orderReference When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. */ @JsonProperty(JSON_PROPERTY_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2275,13 +1964,9 @@ public void setOrderReference(String orderReference) { } /** - * > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this - * to the origin URL of the page where you are rendering the Drop-in/Component. Do not include - * subdirectories and a trailing slash. + * > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this to the origin URL of the page where you are rendering the Drop-in/Component. Do not include subdirectories and a trailing slash. * - * @param origin > Required for browser-based (`channel` **Web**) 3D Secure 2 - * transactions.Set this to the origin URL of the page where you are rendering the - * Drop-in/Component. Do not include subdirectories and a trailing slash. + * @param origin > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this to the origin URL of the page where you are rendering the Drop-in/Component. Do not include subdirectories and a trailing slash. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest origin(String origin) { @@ -2290,13 +1975,8 @@ public PaymentRequest origin(String origin) { } /** - * > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this - * to the origin URL of the page where you are rendering the Drop-in/Component. Do not include - * subdirectories and a trailing slash. - * - * @return origin > Required for browser-based (`channel` **Web**) 3D Secure 2 - * transactions.Set this to the origin URL of the page where you are rendering the - * Drop-in/Component. Do not include subdirectories and a trailing slash. + * > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this to the origin URL of the page where you are rendering the Drop-in/Component. Do not include subdirectories and a trailing slash. + * @return origin > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this to the origin URL of the page where you are rendering the Drop-in/Component. Do not include subdirectories and a trailing slash. */ @JsonProperty(JSON_PROPERTY_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2305,13 +1985,9 @@ public String getOrigin() { } /** - * > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this - * to the origin URL of the page where you are rendering the Drop-in/Component. Do not include - * subdirectories and a trailing slash. + * > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this to the origin URL of the page where you are rendering the Drop-in/Component. Do not include subdirectories and a trailing slash. * - * @param origin > Required for browser-based (`channel` **Web**) 3D Secure 2 - * transactions.Set this to the origin URL of the page where you are rendering the - * Drop-in/Component. Do not include subdirectories and a trailing slash. + * @param origin > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this to the origin URL of the page where you are rendering the Drop-in/Component. Do not include subdirectories and a trailing slash. */ @JsonProperty(JSON_PROPERTY_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2322,7 +1998,7 @@ public void setOrigin(String origin) { /** * paymentMethod * - * @param paymentMethod + * @param paymentMethod * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest paymentMethod(CheckoutPaymentMethod paymentMethod) { @@ -2332,8 +2008,7 @@ public PaymentRequest paymentMethod(CheckoutPaymentMethod paymentMethod) { /** * Get paymentMethod - * - * @return paymentMethod + * @return paymentMethod */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2344,7 +2019,7 @@ public CheckoutPaymentMethod getPaymentMethod() { /** * paymentMethod * - * @param paymentMethod + * @param paymentMethod */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2355,7 +2030,7 @@ public void setPaymentMethod(CheckoutPaymentMethod paymentMethod) { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) { @@ -2365,8 +2040,7 @@ public PaymentRequest platformChargebackLogic(PlatformChargebackLogic platformCh /** * Get platformChargebackLogic - * - * @return platformChargebackLogic + * @return platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2377,7 +2051,7 @@ public PlatformChargebackLogic getPlatformChargebackLogic() { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2388,8 +2062,7 @@ public void setPlatformChargebackLogic(PlatformChargebackLogic platformChargebac /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. * - * @param recurringExpiry Date after which no further authorisations shall be performed. Only for - * 3D Secure 2. + * @param recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest recurringExpiry(String recurringExpiry) { @@ -2399,9 +2072,7 @@ public PaymentRequest recurringExpiry(String recurringExpiry) { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. - * - * @return recurringExpiry Date after which no further authorisations shall be performed. Only for - * 3D Secure 2. + * @return recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2412,8 +2083,7 @@ public String getRecurringExpiry() { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. * - * @param recurringExpiry Date after which no further authorisations shall be performed. Only for - * 3D Secure 2. + * @param recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2434,7 +2104,6 @@ public PaymentRequest recurringFrequency(String recurringFrequency) { /** * Minimum number of days between authorisations. Only for 3D Secure 2. - * * @return recurringFrequency Minimum number of days between authorisations. Only for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY) @@ -2455,55 +2124,19 @@ public void setRecurringFrequency(String recurringFrequency) { } /** - * Defines a recurring payment type. Required when creating a token to store payment details or - * using stored payment details. Allowed values: * `Subscription` – A transaction for a - * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a - * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – - * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a - * token to store payment details or using stored payment details. Allowed values: * - * `Subscription` – A transaction for a fixed or variable amount, which follows a - * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card - * details are stored to enable one-click or omnichannel journeys, or simply to streamline the - * checkout process. Any subscription not following a fixed schedule is also considered a - * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file - * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have - * variable amounts. For example, automatic top-ups when a cardholder's balance drops - * below a certain amount. + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ - public PaymentRequest recurringProcessingModel( - RecurringProcessingModelEnum recurringProcessingModel) { + public PaymentRequest recurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) { this.recurringProcessingModel = recurringProcessingModel; return this; } /** - * Defines a recurring payment type. Required when creating a token to store payment details or - * using stored payment details. Allowed values: * `Subscription` – A transaction for a - * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a - * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – - * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. - * - * @return recurringProcessingModel Defines a recurring payment type. Required when creating a - * token to store payment details or using stored payment details. Allowed values: * - * `Subscription` – A transaction for a fixed or variable amount, which follows a - * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card - * details are stored to enable one-click or omnichannel journeys, or simply to streamline the - * checkout process. Any subscription not following a fixed schedule is also considered a - * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file - * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have - * variable amounts. For example, automatic top-ups when a cardholder's balance drops - * below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * @return recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2512,26 +2145,9 @@ public RecurringProcessingModelEnum getRecurringProcessingModel() { } /** - * Defines a recurring payment type. Required when creating a token to store payment details or - * using stored payment details. Allowed values: * `Subscription` – A transaction for a - * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a - * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – - * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. - * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a - * token to store payment details or using stored payment details. Allowed values: * - * `Subscription` – A transaction for a fixed or variable amount, which follows a - * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card - * details are stored to enable one-click or omnichannel journeys, or simply to streamline the - * checkout process. Any subscription not following a fixed schedule is also considered a - * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file - * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have - * variable amounts. For example, automatic top-ups when a cardholder's balance drops - * below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2542,8 +2158,7 @@ public void setRecurringProcessingModel(RecurringProcessingModelEnum recurringPr /** * Specifies the redirect method (GET or POST) when redirecting back from the issuer. * - * @param redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting - * back from the issuer. + * @param redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting back from the issuer. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest redirectFromIssuerMethod(String redirectFromIssuerMethod) { @@ -2553,9 +2168,7 @@ public PaymentRequest redirectFromIssuerMethod(String redirectFromIssuerMethod) /** * Specifies the redirect method (GET or POST) when redirecting back from the issuer. - * - * @return redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting - * back from the issuer. + * @return redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting back from the issuer. */ @JsonProperty(JSON_PROPERTY_REDIRECT_FROM_ISSUER_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2566,8 +2179,7 @@ public String getRedirectFromIssuerMethod() { /** * Specifies the redirect method (GET or POST) when redirecting back from the issuer. * - * @param redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting - * back from the issuer. + * @param redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting back from the issuer. */ @JsonProperty(JSON_PROPERTY_REDIRECT_FROM_ISSUER_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2578,8 +2190,7 @@ public void setRedirectFromIssuerMethod(String redirectFromIssuerMethod) { /** * Specifies the redirect method (GET or POST) when redirecting to the issuer. * - * @param redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to - * the issuer. + * @param redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to the issuer. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest redirectToIssuerMethod(String redirectToIssuerMethod) { @@ -2589,9 +2200,7 @@ public PaymentRequest redirectToIssuerMethod(String redirectToIssuerMethod) { /** * Specifies the redirect method (GET or POST) when redirecting to the issuer. - * - * @return redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to - * the issuer. + * @return redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to the issuer. */ @JsonProperty(JSON_PROPERTY_REDIRECT_TO_ISSUER_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2602,8 +2211,7 @@ public String getRedirectToIssuerMethod() { /** * Specifies the redirect method (GET or POST) when redirecting to the issuer. * - * @param redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to - * the issuer. + * @param redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to the issuer. */ @JsonProperty(JSON_PROPERTY_REDIRECT_TO_ISSUER_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2612,15 +2220,9 @@ public void setRedirectToIssuerMethod(String redirectToIssuerMethod) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest reference(String reference) { @@ -2629,15 +2231,8 @@ public PaymentRequest reference(String reference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. - * - * @return reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @return reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2646,15 +2241,9 @@ public String getReference() { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2663,36 +2252,9 @@ public void setReference(String reference) { } /** - * The URL to return to in case of a redirection. The format depends on the channel. * For web, - * include the protocol `http://` or `https://`. You can also include your own - * additional query parameters, for example, shopper ID or order reference number. Example: - * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the - * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple - * Developer - * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). - * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your - * app. You can configure it with an [intent - * filter](https://developer.android.com/guide/components/intents-filters). Example: - * `my-app://your.package.name` If the URL to return to includes non-ASCII characters, - * like spaces or special letters, URL encode the value. We strongly recommend that you use a - * maximum of 1024 characters. > The URL must not include personally identifiable information - * (PII), for example name or email address. - * - * @param returnUrl The URL to return to in case of a redirection. The format depends on the - * channel. * For web, include the protocol `http://` or `https://`. You - * can also include your own additional query parameters, for example, shopper ID or order - * reference number. Example: - * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use - * the custom URL for your app. To know more about setting custom URL schemes, refer to the - * [Apple Developer - * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). - * Example: `my-app://` * For Android, use a custom URL handled by an Activity on - * your app. You can configure it with an [intent - * filter](https://developer.android.com/guide/components/intents-filters). Example: - * `my-app://your.package.name` If the URL to return to includes non-ASCII - * characters, like spaces or special letters, URL encode the value. We strongly recommend - * that you use a maximum of 1024 characters. > The URL must not include personally - * identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. + * + * @param returnUrl The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest returnUrl(String returnUrl) { @@ -2701,36 +2263,8 @@ public PaymentRequest returnUrl(String returnUrl) { } /** - * The URL to return to in case of a redirection. The format depends on the channel. * For web, - * include the protocol `http://` or `https://`. You can also include your own - * additional query parameters, for example, shopper ID or order reference number. Example: - * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the - * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple - * Developer - * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). - * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your - * app. You can configure it with an [intent - * filter](https://developer.android.com/guide/components/intents-filters). Example: - * `my-app://your.package.name` If the URL to return to includes non-ASCII characters, - * like spaces or special letters, URL encode the value. We strongly recommend that you use a - * maximum of 1024 characters. > The URL must not include personally identifiable information - * (PII), for example name or email address. - * - * @return returnUrl The URL to return to in case of a redirection. The format depends on the - * channel. * For web, include the protocol `http://` or `https://`. You - * can also include your own additional query parameters, for example, shopper ID or order - * reference number. Example: - * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use - * the custom URL for your app. To know more about setting custom URL schemes, refer to the - * [Apple Developer - * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). - * Example: `my-app://` * For Android, use a custom URL handled by an Activity on - * your app. You can configure it with an [intent - * filter](https://developer.android.com/guide/components/intents-filters). Example: - * `my-app://your.package.name` If the URL to return to includes non-ASCII - * characters, like spaces or special letters, URL encode the value. We strongly recommend - * that you use a maximum of 1024 characters. > The URL must not include personally - * identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. + * @return returnUrl The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. */ @JsonProperty(JSON_PROPERTY_RETURN_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2739,36 +2273,9 @@ public String getReturnUrl() { } /** - * The URL to return to in case of a redirection. The format depends on the channel. * For web, - * include the protocol `http://` or `https://`. You can also include your own - * additional query parameters, for example, shopper ID or order reference number. Example: - * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the - * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple - * Developer - * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). - * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your - * app. You can configure it with an [intent - * filter](https://developer.android.com/guide/components/intents-filters). Example: - * `my-app://your.package.name` If the URL to return to includes non-ASCII characters, - * like spaces or special letters, URL encode the value. We strongly recommend that you use a - * maximum of 1024 characters. > The URL must not include personally identifiable information - * (PII), for example name or email address. - * - * @param returnUrl The URL to return to in case of a redirection. The format depends on the - * channel. * For web, include the protocol `http://` or `https://`. You - * can also include your own additional query parameters, for example, shopper ID or order - * reference number. Example: - * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use - * the custom URL for your app. To know more about setting custom URL schemes, refer to the - * [Apple Developer - * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). - * Example: `my-app://` * For Android, use a custom URL handled by an Activity on - * your app. You can configure it with an [intent - * filter](https://developer.android.com/guide/components/intents-filters). Example: - * `my-app://your.package.name` If the URL to return to includes non-ASCII - * characters, like spaces or special letters, URL encode the value. We strongly recommend - * that you use a maximum of 1024 characters. > The URL must not include personally - * identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. + * + * @param returnUrl The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. */ @JsonProperty(JSON_PROPERTY_RETURN_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2779,7 +2286,7 @@ public void setReturnUrl(String returnUrl) { /** * riskData * - * @param riskData + * @param riskData * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest riskData(RiskData riskData) { @@ -2789,8 +2296,7 @@ public PaymentRequest riskData(RiskData riskData) { /** * Get riskData - * - * @return riskData + * @return riskData */ @JsonProperty(JSON_PROPERTY_RISK_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2801,7 +2307,7 @@ public RiskData getRiskData() { /** * riskData * - * @param riskData + * @param riskData */ @JsonProperty(JSON_PROPERTY_RISK_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2810,12 +2316,9 @@ public void setRiskData(RiskData riskData) { } /** - * The date and time until when the session remains valid, in [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 + * The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 * - * @param sessionValidity The date and time until when the session remains valid, in [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: - * 2020-07-18T15:42:40.428+01:00 + * @param sessionValidity The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest sessionValidity(String sessionValidity) { @@ -2824,12 +2327,8 @@ public PaymentRequest sessionValidity(String sessionValidity) { } /** - * The date and time until when the session remains valid, in [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 - * - * @return sessionValidity The date and time until when the session remains valid, in [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: - * 2020-07-18T15:42:40.428+01:00 + * The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 + * @return sessionValidity The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 */ @JsonProperty(JSON_PROPERTY_SESSION_VALIDITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2838,12 +2337,9 @@ public String getSessionValidity() { } /** - * The date and time until when the session remains valid, in [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 + * The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 * - * @param sessionValidity The date and time until when the session remains valid, in [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: - * 2020-07-18T15:42:40.428+01:00 + * @param sessionValidity The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 */ @JsonProperty(JSON_PROPERTY_SESSION_VALIDITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2852,12 +2348,9 @@ public void setSessionValidity(String sessionValidity) { } /** - * A unique ID that can be used to associate `/paymentMethods` and `/payments` - * requests with the same shopper transaction, offering insights into conversion rates. + * A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates. * - * @param shopperConversionId A unique ID that can be used to associate - * `/paymentMethods` and `/payments` requests with the same shopper - * transaction, offering insights into conversion rates. + * @param shopperConversionId A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest shopperConversionId(String shopperConversionId) { @@ -2866,12 +2359,8 @@ public PaymentRequest shopperConversionId(String shopperConversionId) { } /** - * A unique ID that can be used to associate `/paymentMethods` and `/payments` - * requests with the same shopper transaction, offering insights into conversion rates. - * - * @return shopperConversionId A unique ID that can be used to associate - * `/paymentMethods` and `/payments` requests with the same shopper - * transaction, offering insights into conversion rates. + * A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates. + * @return shopperConversionId A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates. */ @JsonProperty(JSON_PROPERTY_SHOPPER_CONVERSION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2880,12 +2369,9 @@ public String getShopperConversionId() { } /** - * A unique ID that can be used to associate `/paymentMethods` and `/payments` - * requests with the same shopper transaction, offering insights into conversion rates. + * A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates. * - * @param shopperConversionId A unique ID that can be used to associate - * `/paymentMethods` and `/payments` requests with the same shopper - * transaction, offering insights into conversion rates. + * @param shopperConversionId A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates. */ @JsonProperty(JSON_PROPERTY_SHOPPER_CONVERSION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2894,13 +2380,9 @@ public void setShopperConversionId(String shopperConversionId) { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in - * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 - * authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, - * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that - * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest shopperEmail(String shopperEmail) { @@ -2909,13 +2391,8 @@ public PaymentRequest shopperEmail(String shopperEmail) { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in - * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 - * authentication if you did not include the `telephoneNumber`. - * - * @return shopperEmail The shopper's email address. We recommend that you provide this data, - * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that - * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @return shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2924,13 +2401,9 @@ public String getShopperEmail() { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in - * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 - * authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, - * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that - * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2939,22 +2412,9 @@ public void setShopperEmail(String shopperEmail) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks). > - * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and - * mobile integrations, if you did not include the `shopperEmail`. For native mobile - * integrations, the field is required to support cases where authentication is routed to the - * redirect flow. This field is also mandatory for some merchants depending on your business - * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it - * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks). > Required for Visa and JCB transactions that require 3D Secure - * 2 authentication for all web and mobile integrations, if you did not include the - * `shopperEmail`. For native mobile integrations, the field is required to support - * cases where authentication is routed to the redirect flow. This field is also mandatory for - * some merchants depending on your business model. For more information, [contact - * Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest shopperIP(String shopperIP) { @@ -2963,22 +2423,8 @@ public PaymentRequest shopperIP(String shopperIP) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks). > - * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and - * mobile integrations, if you did not include the `shopperEmail`. For native mobile - * integrations, the field is required to support cases where authentication is routed to the - * redirect flow. This field is also mandatory for some merchants depending on your business - * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). - * - * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it - * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks). > Required for Visa and JCB transactions that require 3D Secure - * 2 authentication for all web and mobile integrations, if you did not include the - * `shopperEmail`. For native mobile integrations, the field is required to support - * cases where authentication is routed to the redirect flow. This field is also mandatory for - * some merchants depending on your business model. For more information, [contact - * Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2987,22 +2433,9 @@ public String getShopperIP() { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks). > - * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and - * mobile integrations, if you did not include the `shopperEmail`. For native mobile - * integrations, the field is required to support cases where authentication is routed to the - * redirect flow. This field is also mandatory for some merchants depending on your business - * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it - * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks). > Required for Visa and JCB transactions that require 3D Secure - * 2 authentication for all web and mobile integrations, if you did not include the - * `shopperEmail`. For native mobile integrations, the field is required to support - * cases where authentication is routed to the redirect flow. This field is also mandatory for - * some merchants depending on your business model. For more information, [contact - * Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3011,30 +2444,9 @@ public void setShopperIP(String shopperIP) { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. - * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest shopperInteraction(ShopperInteractionEnum shopperInteraction) { @@ -3043,30 +2455,8 @@ public PaymentRequest shopperInteraction(ShopperInteractionEnum shopperInteracti } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. - * - * @return shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * @return shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3075,30 +2465,9 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. - * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3107,11 +2476,9 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The combination of a language code and a country code to specify the language to be used in the payment. * - * @param shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest shopperLocale(String shopperLocale) { @@ -3120,11 +2487,8 @@ public PaymentRequest shopperLocale(String shopperLocale) { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. - * - * @return shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the payment. + * @return shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3133,11 +2497,9 @@ public String getShopperLocale() { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The combination of a language code and a country code to specify the language to be used in the payment. * - * @param shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3148,7 +2510,7 @@ public void setShopperLocale(String shopperLocale) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest shopperName(Name shopperName) { @@ -3158,8 +2520,7 @@ public PaymentRequest shopperName(Name shopperName) { /** * Get shopperName - * - * @return shopperName + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3170,7 +2531,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3179,14 +2540,9 @@ public void setShopperName(Name shopperName) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example - * user ID or account ID. Minimum length: 3 characters. > Your reference must not include - * personally identifiable information (PII), for example name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify - * this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your - * reference must not include personally identifiable information (PII), for example name or - * email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest shopperReference(String shopperReference) { @@ -3195,14 +2551,8 @@ public PaymentRequest shopperReference(String shopperReference) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example - * user ID or account ID. Minimum length: 3 characters. > Your reference must not include - * personally identifiable information (PII), for example name or email address. - * - * @return shopperReference Required for recurring payments. Your reference to uniquely identify - * this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your - * reference must not include personally identifiable information (PII), for example name or - * email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. + * @return shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3211,14 +2561,9 @@ public String getShopperReference() { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example - * user ID or account ID. Minimum length: 3 characters. > Your reference must not include - * personally identifiable information (PII), for example name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify - * this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your - * reference must not include personally identifiable information (PII), for example name or - * email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3227,14 +2572,9 @@ public void setShopperReference(String shopperReference) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 - * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, - * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend - * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed - * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * - * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest shopperStatement(String shopperStatement) { @@ -3243,14 +2583,8 @@ public PaymentRequest shopperStatement(String shopperStatement) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 - * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, - * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. - * - * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend - * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed - * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * - * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3259,14 +2593,9 @@ public String getShopperStatement() { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 - * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, - * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend - * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed - * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * - * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3287,7 +2616,6 @@ public PaymentRequest socialSecurityNumber(String socialSecurityNumber) { /** * The shopper's social security number. - * * @return socialSecurityNumber The shopper's social security number. */ @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER) @@ -3308,17 +2636,9 @@ public void setSocialSecurityNumber(String socialSecurityNumber) { } /** - * An array of objects specifying how to split a payment when using [Adyen for - * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), - * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), - * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). * - * @param splits An array of objects specifying how to split a payment when using [Adyen for - * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), - * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), - * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * @param splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest splits(List splits) { @@ -3335,17 +2655,8 @@ public PaymentRequest addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how to split a payment when using [Adyen for - * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), - * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), - * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). - * - * @return splits An array of objects specifying how to split a payment when using [Adyen for - * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), - * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), - * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * @return splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3354,17 +2665,9 @@ public List getSplits() { } /** - * An array of objects specifying how to split a payment when using [Adyen for - * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), - * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), - * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). * - * @param splits An array of objects specifying how to split a payment when using [Adyen for - * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), - * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), - * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * @param splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3373,22 +2676,9 @@ public void setSplits(List splits) { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. * - * @param store Required for Adyen for Platforms integrations if you are a platform model. This is - * your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest store(String store) { @@ -3397,22 +2687,8 @@ public PaymentRequest store(String store) { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. - * - * @return store Required for Adyen for Platforms integrations if you are a platform model. This - * is your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * @return store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3421,22 +2697,9 @@ public String getStore() { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. * - * @param store Required for Adyen for Platforms integrations if you are a platform model. This is - * your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3445,13 +2708,9 @@ public void setStore(String store) { } /** - * When true and `shopperReference` is provided, the payment details will be stored for - * future [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). * - * @param storePaymentMethod When true and `shopperReference` is provided, the payment - * details will be stored for future [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * @param storePaymentMethod When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest storePaymentMethod(Boolean storePaymentMethod) { @@ -3460,13 +2719,8 @@ public PaymentRequest storePaymentMethod(Boolean storePaymentMethod) { } /** - * When true and `shopperReference` is provided, the payment details will be stored for - * future [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). - * - * @return storePaymentMethod When true and `shopperReference` is provided, the payment - * details will be stored for future [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * @return storePaymentMethod When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). */ @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3475,13 +2729,9 @@ public Boolean getStorePaymentMethod() { } /** - * When true and `shopperReference` is provided, the payment details will be stored for - * future [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). * - * @param storePaymentMethod When true and `shopperReference` is provided, the payment - * details will be stored for future [recurring - * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * @param storePaymentMethod When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). */ @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3490,11 +2740,9 @@ public void setStorePaymentMethod(Boolean storePaymentMethod) { } /** - * This field contains additional information on the submerchant, who is onboarded to an acquirer - * through a payment facilitator or aggregator + * This field contains additional information on the submerchant, who is onboarded to an acquirer through a payment facilitator or aggregator * - * @param subMerchants This field contains additional information on the submerchant, who is - * onboarded to an acquirer through a payment facilitator or aggregator + * @param subMerchants This field contains additional information on the submerchant, who is onboarded to an acquirer through a payment facilitator or aggregator * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest subMerchants(List subMerchants) { @@ -3511,11 +2759,8 @@ public PaymentRequest addSubMerchantsItem(SubMerchantInfo subMerchantsItem) { } /** - * This field contains additional information on the submerchant, who is onboarded to an acquirer - * through a payment facilitator or aggregator - * - * @return subMerchants This field contains additional information on the submerchant, who is - * onboarded to an acquirer through a payment facilitator or aggregator + * This field contains additional information on the submerchant, who is onboarded to an acquirer through a payment facilitator or aggregator + * @return subMerchants This field contains additional information on the submerchant, who is onboarded to an acquirer through a payment facilitator or aggregator */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3524,11 +2769,9 @@ public List getSubMerchants() { } /** - * This field contains additional information on the submerchant, who is onboarded to an acquirer - * through a payment facilitator or aggregator + * This field contains additional information on the submerchant, who is onboarded to an acquirer through a payment facilitator or aggregator * - * @param subMerchants This field contains additional information on the submerchant, who is - * onboarded to an acquirer through a payment facilitator or aggregator + * @param subMerchants This field contains additional information on the submerchant, who is onboarded to an acquirer through a payment facilitator or aggregator */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3539,7 +2782,7 @@ public void setSubMerchants(List subMerchants) { /** * surcharge * - * @param surcharge + * @param surcharge * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest surcharge(Surcharge surcharge) { @@ -3549,8 +2792,7 @@ public PaymentRequest surcharge(Surcharge surcharge) { /** * Get surcharge - * - * @return surcharge + * @return surcharge */ @JsonProperty(JSON_PROPERTY_SURCHARGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3561,7 +2803,7 @@ public Surcharge getSurcharge() { /** * surcharge * - * @param surcharge + * @param surcharge */ @JsonProperty(JSON_PROPERTY_SURCHARGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3570,17 +2812,9 @@ public void setSurcharge(Surcharge surcharge) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus - * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest telephoneNumber(String telephoneNumber) { @@ -3589,17 +2823,8 @@ public PaymentRequest telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. - * - * @return telephoneNumber The shopper's telephone number. The phone number must include a - * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @return telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3608,17 +2833,9 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus - * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3629,7 +2846,7 @@ public void setTelephoneNumber(String telephoneNumber) { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest threeDS2RequestData(ThreeDS2RequestFields threeDS2RequestData) { @@ -3639,8 +2856,7 @@ public PaymentRequest threeDS2RequestData(ThreeDS2RequestFields threeDS2RequestD /** * Get threeDS2RequestData - * - * @return threeDS2RequestData + * @return threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3651,7 +2867,7 @@ public ThreeDS2RequestFields getThreeDS2RequestData() { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3660,41 +2876,26 @@ public void setThreeDS2RequestData(ThreeDS2RequestFields threeDS2RequestData) { } /** - * Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorisation.Default: **false**. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorisation.Default: **false**. * - * @param threeDSAuthenticationOnly Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorisation.Default: **false**. + * @param threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorisation.Default: **false**. * @return the current {@code PaymentRequest} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` - * instead. + * + * @deprecated since Adyen Checkout API v69 + * Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. public PaymentRequest threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { this.threeDSAuthenticationOnly = threeDSAuthenticationOnly; return this; } /** - * Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorisation.Default: **false**. - * - * @return threeDSAuthenticationOnly Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorisation.Default: **false**. - * @deprecated // deprecated since Adyen Checkout API v69: Use - * `authenticationData.authenticationOnly` instead. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorisation.Default: **false**. + * @return threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorisation.Default: **false**. + * @deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getThreeDSAuthenticationOnly() { @@ -3702,20 +2903,14 @@ public Boolean getThreeDSAuthenticationOnly() { } /** - * Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorisation.Default: **false**. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorisation.Default: **false**. + * + * @param threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorisation.Default: **false**. * - * @param threeDSAuthenticationOnly Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorisation.Default: **false**. - * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` - * instead. + * @deprecated since Adyen Checkout API v69 + * Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { @@ -3735,7 +2930,6 @@ public PaymentRequest trustedShopper(Boolean trustedShopper) { /** * Set to true if the payment should be routed to a trusted MID. - * * @return trustedShopper Set to true if the payment should be routed to a trusted MID. */ @JsonProperty(JSON_PROPERTY_TRUSTED_SHOPPER) @@ -3755,7 +2949,9 @@ public void setTrustedShopper(Boolean trustedShopper) { this.trustedShopper = trustedShopper; } - /** Return true if this PaymentRequest object is equal to o. */ + /** + * Return true if this PaymentRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -3765,155 +2961,83 @@ public boolean equals(Object o) { return false; } PaymentRequest paymentRequest = (PaymentRequest) o; - return Objects.equals(this.accountInfo, paymentRequest.accountInfo) - && Objects.equals(this.additionalAmount, paymentRequest.additionalAmount) - && Objects.equals(this.additionalData, paymentRequest.additionalData) - && Objects.equals(this.amount, paymentRequest.amount) - && Objects.equals(this.applicationInfo, paymentRequest.applicationInfo) - && Objects.equals(this.authenticationData, paymentRequest.authenticationData) - && Objects.equals(this.bankAccount, paymentRequest.bankAccount) - && Objects.equals(this.billingAddress, paymentRequest.billingAddress) - && Objects.equals(this.browserInfo, paymentRequest.browserInfo) - && Objects.equals(this.captureDelayHours, paymentRequest.captureDelayHours) - && Objects.equals(this.channel, paymentRequest.channel) - && Objects.equals(this.checkoutAttemptId, paymentRequest.checkoutAttemptId) - && Objects.equals(this.company, paymentRequest.company) - && Objects.equals(this.conversionId, paymentRequest.conversionId) - && Objects.equals(this.countryCode, paymentRequest.countryCode) - && Objects.equals(this.dateOfBirth, paymentRequest.dateOfBirth) - && Objects.equals(this.dccQuote, paymentRequest.dccQuote) - && Objects.equals(this.deliverAt, paymentRequest.deliverAt) - && Objects.equals(this.deliveryAddress, paymentRequest.deliveryAddress) - && Objects.equals(this.deliveryDate, paymentRequest.deliveryDate) - && Objects.equals(this.deviceFingerprint, paymentRequest.deviceFingerprint) - && Objects.equals(this.enableOneClick, paymentRequest.enableOneClick) - && Objects.equals(this.enablePayOut, paymentRequest.enablePayOut) - && Objects.equals(this.enableRecurring, paymentRequest.enableRecurring) - && Objects.equals(this.enhancedSchemeData, paymentRequest.enhancedSchemeData) - && Objects.equals(this.entityType, paymentRequest.entityType) - && Objects.equals(this.fraudOffset, paymentRequest.fraudOffset) - && Objects.equals(this.fundOrigin, paymentRequest.fundOrigin) - && Objects.equals(this.fundRecipient, paymentRequest.fundRecipient) - && Objects.equals(this.industryUsage, paymentRequest.industryUsage) - && Objects.equals(this.installments, paymentRequest.installments) - && Objects.equals(this.lineItems, paymentRequest.lineItems) - && Objects.equals(this.localizedShopperStatement, paymentRequest.localizedShopperStatement) - && Objects.equals(this.mandate, paymentRequest.mandate) - && Objects.equals(this.mcc, paymentRequest.mcc) - && Objects.equals(this.merchantAccount, paymentRequest.merchantAccount) - && Objects.equals(this.merchantOrderReference, paymentRequest.merchantOrderReference) - && Objects.equals(this.merchantRiskIndicator, paymentRequest.merchantRiskIndicator) - && Objects.equals(this.metadata, paymentRequest.metadata) - && Objects.equals(this.mpiData, paymentRequest.mpiData) - && Objects.equals(this.order, paymentRequest.order) - && Objects.equals(this.orderReference, paymentRequest.orderReference) - && Objects.equals(this.origin, paymentRequest.origin) - && Objects.equals(this.paymentMethod, paymentRequest.paymentMethod) - && Objects.equals(this.platformChargebackLogic, paymentRequest.platformChargebackLogic) - && Objects.equals(this.recurringExpiry, paymentRequest.recurringExpiry) - && Objects.equals(this.recurringFrequency, paymentRequest.recurringFrequency) - && Objects.equals(this.recurringProcessingModel, paymentRequest.recurringProcessingModel) - && Objects.equals(this.redirectFromIssuerMethod, paymentRequest.redirectFromIssuerMethod) - && Objects.equals(this.redirectToIssuerMethod, paymentRequest.redirectToIssuerMethod) - && Objects.equals(this.reference, paymentRequest.reference) - && Objects.equals(this.returnUrl, paymentRequest.returnUrl) - && Objects.equals(this.riskData, paymentRequest.riskData) - && Objects.equals(this.sessionValidity, paymentRequest.sessionValidity) - && Objects.equals(this.shopperConversionId, paymentRequest.shopperConversionId) - && Objects.equals(this.shopperEmail, paymentRequest.shopperEmail) - && Objects.equals(this.shopperIP, paymentRequest.shopperIP) - && Objects.equals(this.shopperInteraction, paymentRequest.shopperInteraction) - && Objects.equals(this.shopperLocale, paymentRequest.shopperLocale) - && Objects.equals(this.shopperName, paymentRequest.shopperName) - && Objects.equals(this.shopperReference, paymentRequest.shopperReference) - && Objects.equals(this.shopperStatement, paymentRequest.shopperStatement) - && Objects.equals(this.socialSecurityNumber, paymentRequest.socialSecurityNumber) - && Objects.equals(this.splits, paymentRequest.splits) - && Objects.equals(this.store, paymentRequest.store) - && Objects.equals(this.storePaymentMethod, paymentRequest.storePaymentMethod) - && Objects.equals(this.subMerchants, paymentRequest.subMerchants) - && Objects.equals(this.surcharge, paymentRequest.surcharge) - && Objects.equals(this.telephoneNumber, paymentRequest.telephoneNumber) - && Objects.equals(this.threeDS2RequestData, paymentRequest.threeDS2RequestData) - && Objects.equals(this.threeDSAuthenticationOnly, paymentRequest.threeDSAuthenticationOnly) - && Objects.equals(this.trustedShopper, paymentRequest.trustedShopper); + return Objects.equals(this.accountInfo, paymentRequest.accountInfo) && + Objects.equals(this.additionalAmount, paymentRequest.additionalAmount) && + Objects.equals(this.additionalData, paymentRequest.additionalData) && + Objects.equals(this.amount, paymentRequest.amount) && + Objects.equals(this.applicationInfo, paymentRequest.applicationInfo) && + Objects.equals(this.authenticationData, paymentRequest.authenticationData) && + Objects.equals(this.bankAccount, paymentRequest.bankAccount) && + Objects.equals(this.billingAddress, paymentRequest.billingAddress) && + Objects.equals(this.browserInfo, paymentRequest.browserInfo) && + Objects.equals(this.captureDelayHours, paymentRequest.captureDelayHours) && + Objects.equals(this.channel, paymentRequest.channel) && + Objects.equals(this.checkoutAttemptId, paymentRequest.checkoutAttemptId) && + Objects.equals(this.company, paymentRequest.company) && + Objects.equals(this.conversionId, paymentRequest.conversionId) && + Objects.equals(this.countryCode, paymentRequest.countryCode) && + Objects.equals(this.dateOfBirth, paymentRequest.dateOfBirth) && + Objects.equals(this.dccQuote, paymentRequest.dccQuote) && + Objects.equals(this.deliverAt, paymentRequest.deliverAt) && + Objects.equals(this.deliveryAddress, paymentRequest.deliveryAddress) && + Objects.equals(this.deliveryDate, paymentRequest.deliveryDate) && + Objects.equals(this.deviceFingerprint, paymentRequest.deviceFingerprint) && + Objects.equals(this.enableOneClick, paymentRequest.enableOneClick) && + Objects.equals(this.enablePayOut, paymentRequest.enablePayOut) && + Objects.equals(this.enableRecurring, paymentRequest.enableRecurring) && + Objects.equals(this.enhancedSchemeData, paymentRequest.enhancedSchemeData) && + Objects.equals(this.entityType, paymentRequest.entityType) && + Objects.equals(this.fraudOffset, paymentRequest.fraudOffset) && + Objects.equals(this.fundOrigin, paymentRequest.fundOrigin) && + Objects.equals(this.fundRecipient, paymentRequest.fundRecipient) && + Objects.equals(this.industryUsage, paymentRequest.industryUsage) && + Objects.equals(this.installments, paymentRequest.installments) && + Objects.equals(this.lineItems, paymentRequest.lineItems) && + Objects.equals(this.localizedShopperStatement, paymentRequest.localizedShopperStatement) && + Objects.equals(this.mandate, paymentRequest.mandate) && + Objects.equals(this.mcc, paymentRequest.mcc) && + Objects.equals(this.merchantAccount, paymentRequest.merchantAccount) && + Objects.equals(this.merchantOrderReference, paymentRequest.merchantOrderReference) && + Objects.equals(this.merchantRiskIndicator, paymentRequest.merchantRiskIndicator) && + Objects.equals(this.metadata, paymentRequest.metadata) && + Objects.equals(this.mpiData, paymentRequest.mpiData) && + Objects.equals(this.order, paymentRequest.order) && + Objects.equals(this.orderReference, paymentRequest.orderReference) && + Objects.equals(this.origin, paymentRequest.origin) && + Objects.equals(this.paymentMethod, paymentRequest.paymentMethod) && + Objects.equals(this.platformChargebackLogic, paymentRequest.platformChargebackLogic) && + Objects.equals(this.recurringExpiry, paymentRequest.recurringExpiry) && + Objects.equals(this.recurringFrequency, paymentRequest.recurringFrequency) && + Objects.equals(this.recurringProcessingModel, paymentRequest.recurringProcessingModel) && + Objects.equals(this.redirectFromIssuerMethod, paymentRequest.redirectFromIssuerMethod) && + Objects.equals(this.redirectToIssuerMethod, paymentRequest.redirectToIssuerMethod) && + Objects.equals(this.reference, paymentRequest.reference) && + Objects.equals(this.returnUrl, paymentRequest.returnUrl) && + Objects.equals(this.riskData, paymentRequest.riskData) && + Objects.equals(this.sessionValidity, paymentRequest.sessionValidity) && + Objects.equals(this.shopperConversionId, paymentRequest.shopperConversionId) && + Objects.equals(this.shopperEmail, paymentRequest.shopperEmail) && + Objects.equals(this.shopperIP, paymentRequest.shopperIP) && + Objects.equals(this.shopperInteraction, paymentRequest.shopperInteraction) && + Objects.equals(this.shopperLocale, paymentRequest.shopperLocale) && + Objects.equals(this.shopperName, paymentRequest.shopperName) && + Objects.equals(this.shopperReference, paymentRequest.shopperReference) && + Objects.equals(this.shopperStatement, paymentRequest.shopperStatement) && + Objects.equals(this.socialSecurityNumber, paymentRequest.socialSecurityNumber) && + Objects.equals(this.splits, paymentRequest.splits) && + Objects.equals(this.store, paymentRequest.store) && + Objects.equals(this.storePaymentMethod, paymentRequest.storePaymentMethod) && + Objects.equals(this.subMerchants, paymentRequest.subMerchants) && + Objects.equals(this.surcharge, paymentRequest.surcharge) && + Objects.equals(this.telephoneNumber, paymentRequest.telephoneNumber) && + Objects.equals(this.threeDS2RequestData, paymentRequest.threeDS2RequestData) && + Objects.equals(this.threeDSAuthenticationOnly, paymentRequest.threeDSAuthenticationOnly) && + Objects.equals(this.trustedShopper, paymentRequest.trustedShopper); } @Override public int hashCode() { - return Objects.hash( - accountInfo, - additionalAmount, - additionalData, - amount, - applicationInfo, - authenticationData, - bankAccount, - billingAddress, - browserInfo, - captureDelayHours, - channel, - checkoutAttemptId, - company, - conversionId, - countryCode, - dateOfBirth, - dccQuote, - deliverAt, - deliveryAddress, - deliveryDate, - deviceFingerprint, - enableOneClick, - enablePayOut, - enableRecurring, - enhancedSchemeData, - entityType, - fraudOffset, - fundOrigin, - fundRecipient, - industryUsage, - installments, - lineItems, - localizedShopperStatement, - mandate, - mcc, - merchantAccount, - merchantOrderReference, - merchantRiskIndicator, - metadata, - mpiData, - order, - orderReference, - origin, - paymentMethod, - platformChargebackLogic, - recurringExpiry, - recurringFrequency, - recurringProcessingModel, - redirectFromIssuerMethod, - redirectToIssuerMethod, - reference, - returnUrl, - riskData, - sessionValidity, - shopperConversionId, - shopperEmail, - shopperIP, - shopperInteraction, - shopperLocale, - shopperName, - shopperReference, - shopperStatement, - socialSecurityNumber, - splits, - store, - storePaymentMethod, - subMerchants, - surcharge, - telephoneNumber, - threeDS2RequestData, - threeDSAuthenticationOnly, - trustedShopper); + return Objects.hash(accountInfo, additionalAmount, additionalData, amount, applicationInfo, authenticationData, bankAccount, billingAddress, browserInfo, captureDelayHours, channel, checkoutAttemptId, company, conversionId, countryCode, dateOfBirth, dccQuote, deliverAt, deliveryAddress, deliveryDate, deviceFingerprint, enableOneClick, enablePayOut, enableRecurring, enhancedSchemeData, entityType, fraudOffset, fundOrigin, fundRecipient, industryUsage, installments, lineItems, localizedShopperStatement, mandate, mcc, merchantAccount, merchantOrderReference, merchantRiskIndicator, metadata, mpiData, order, orderReference, origin, paymentMethod, platformChargebackLogic, recurringExpiry, recurringFrequency, recurringProcessingModel, redirectFromIssuerMethod, redirectToIssuerMethod, reference, returnUrl, riskData, sessionValidity, shopperConversionId, shopperEmail, shopperIP, shopperInteraction, shopperLocale, shopperName, shopperReference, shopperStatement, socialSecurityNumber, splits, store, storePaymentMethod, subMerchants, surcharge, telephoneNumber, threeDS2RequestData, threeDSAuthenticationOnly, trustedShopper); } @Override @@ -3952,45 +3076,29 @@ public String toString() { sb.append(" industryUsage: ").append(toIndentedString(industryUsage)).append("\n"); sb.append(" installments: ").append(toIndentedString(installments)).append("\n"); sb.append(" lineItems: ").append(toIndentedString(lineItems)).append("\n"); - sb.append(" localizedShopperStatement: ") - .append(toIndentedString(localizedShopperStatement)) - .append("\n"); + sb.append(" localizedShopperStatement: ").append(toIndentedString(localizedShopperStatement)).append("\n"); sb.append(" mandate: ").append(toIndentedString(mandate)).append("\n"); sb.append(" mcc: ").append(toIndentedString(mcc)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" merchantOrderReference: ") - .append(toIndentedString(merchantOrderReference)) - .append("\n"); - sb.append(" merchantRiskIndicator: ") - .append(toIndentedString(merchantRiskIndicator)) - .append("\n"); + sb.append(" merchantOrderReference: ").append(toIndentedString(merchantOrderReference)).append("\n"); + sb.append(" merchantRiskIndicator: ").append(toIndentedString(merchantRiskIndicator)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" mpiData: ").append(toIndentedString(mpiData)).append("\n"); sb.append(" order: ").append(toIndentedString(order)).append("\n"); sb.append(" orderReference: ").append(toIndentedString(orderReference)).append("\n"); sb.append(" origin: ").append(toIndentedString(origin)).append("\n"); sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n"); - sb.append(" platformChargebackLogic: ") - .append(toIndentedString(platformChargebackLogic)) - .append("\n"); + sb.append(" platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n"); sb.append(" recurringExpiry: ").append(toIndentedString(recurringExpiry)).append("\n"); sb.append(" recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n"); - sb.append(" recurringProcessingModel: ") - .append(toIndentedString(recurringProcessingModel)) - .append("\n"); - sb.append(" redirectFromIssuerMethod: ") - .append(toIndentedString(redirectFromIssuerMethod)) - .append("\n"); - sb.append(" redirectToIssuerMethod: ") - .append(toIndentedString(redirectToIssuerMethod)) - .append("\n"); + sb.append(" recurringProcessingModel: ").append(toIndentedString(recurringProcessingModel)).append("\n"); + sb.append(" redirectFromIssuerMethod: ").append(toIndentedString(redirectFromIssuerMethod)).append("\n"); + sb.append(" redirectToIssuerMethod: ").append(toIndentedString(redirectToIssuerMethod)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" returnUrl: ").append(toIndentedString(returnUrl)).append("\n"); sb.append(" riskData: ").append(toIndentedString(riskData)).append("\n"); sb.append(" sessionValidity: ").append(toIndentedString(sessionValidity)).append("\n"); - sb.append(" shopperConversionId: ") - .append(toIndentedString(shopperConversionId)) - .append("\n"); + sb.append(" shopperConversionId: ").append(toIndentedString(shopperConversionId)).append("\n"); sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); sb.append(" shopperIP: ").append(toIndentedString(shopperIP)).append("\n"); sb.append(" shopperInteraction: ").append(toIndentedString(shopperInteraction)).append("\n"); @@ -3998,28 +3106,23 @@ public String toString() { sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append(" shopperStatement: ").append(toIndentedString(shopperStatement)).append("\n"); - sb.append(" socialSecurityNumber: ") - .append(toIndentedString(socialSecurityNumber)) - .append("\n"); + sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" store: ").append(toIndentedString(store)).append("\n"); sb.append(" storePaymentMethod: ").append(toIndentedString(storePaymentMethod)).append("\n"); sb.append(" subMerchants: ").append(toIndentedString(subMerchants)).append("\n"); sb.append(" surcharge: ").append(toIndentedString(surcharge)).append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); - sb.append(" threeDS2RequestData: ") - .append(toIndentedString(threeDS2RequestData)) - .append("\n"); - sb.append(" threeDSAuthenticationOnly: ") - .append(toIndentedString(threeDSAuthenticationOnly)) - .append("\n"); + sb.append(" threeDS2RequestData: ").append(toIndentedString(threeDS2RequestData)).append("\n"); + sb.append(" threeDSAuthenticationOnly: ").append(toIndentedString(threeDSAuthenticationOnly)).append("\n"); sb.append(" trustedShopper: ").append(toIndentedString(trustedShopper)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -4028,7 +3131,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentRequest given an JSON string * * @param jsonString JSON string @@ -4038,12 +3141,11 @@ private String toIndentedString(Object o) { public static PaymentRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentRequest.class); } - - /** - * Convert an instance of PaymentRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentResponse.java b/src/main/java/com/adyen/model/checkout/PaymentResponse.java index cfa5bee01..b12ef1414 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentResponse.java @@ -2,28 +2,40 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Amount; +import com.adyen.model.checkout.CheckoutOrderResponse; +import com.adyen.model.checkout.FraudResult; +import com.adyen.model.checkout.PaymentResponseAction; +import com.adyen.model.checkout.ResponsePaymentMethod; +import com.adyen.model.checkout.ThreeDS2ResponseData; +import com.adyen.model.checkout.ThreeDS2Result; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PaymentResponse */ +/** + * PaymentResponse + */ @JsonPropertyOrder({ PaymentResponse.JSON_PROPERTY_ACTION, PaymentResponse.JSON_PROPERTY_ADDITIONAL_DATA, @@ -41,6 +53,7 @@ PaymentResponse.JSON_PROPERTY_THREE_D_S2_RESULT, PaymentResponse.JSON_PROPERTY_THREE_D_S_PAYMENT_DATA }) + public class PaymentResponse { public static final String JSON_PROPERTY_ACTION = "action"; private PaymentResponseAction action; @@ -76,35 +89,10 @@ public class PaymentResponse { private String refusalReasonCode; /** - * The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. - * Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – - * The transaction does not require 3D Secure authentication. Returned for [standalone - * authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * * **Authorised** – The payment was successfully authorised. This state serves as an indicator - * to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – - * Indicates the payment has been cancelled (either by the shopper or the merchant) before - * processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires - * further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 - * transactions. * **Error** – There was an error when the payment was being processed. The reason - * is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – - * The issuer requires the shopper's device fingerprint before the payment can be - * authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment - * has been authorised for a partial amount. This happens for card payments when the merchant - * supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – - * Indicates that it is not possible to obtain the final status of the payment. This can happen if - * the systems providing final status information for the payment are unavailable, or if the - * shopper needs to take further action to complete the payment. * **PresentToShopper** – - * Indicates that the response contains additional information that you need to present to a - * shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment - * has successfully been received by Adyen, and will be processed. This is the initial state for - * all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external - * web page or app to complete the authorisation. * **Refused** – Indicates the payment was - * refused. The reason is given in the `refusalReason` field. This is a final state. + * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. */ public enum ResultCodeEnum { + AUTHENTICATIONFINISHED(String.valueOf("AuthenticationFinished")), AUTHENTICATIONNOTREQUIRED(String.valueOf("AuthenticationNotRequired")), @@ -138,7 +126,7 @@ public enum ResultCodeEnum { private String value; ResultCodeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -159,11 +147,7 @@ public static ResultCodeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ResultCodeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ResultCodeEnum.values())); + LOG.warning("ResultCodeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResultCodeEnum.values())); return null; } } @@ -180,12 +164,13 @@ public static ResultCodeEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_PAYMENT_DATA = "threeDSPaymentData"; private String threeDSPaymentData; - public PaymentResponse() {} + public PaymentResponse() { + } /** * action * - * @param action + * @param action * @return the current {@code PaymentResponse} instance, allowing for method chaining */ public PaymentResponse action(PaymentResponseAction action) { @@ -195,8 +180,7 @@ public PaymentResponse action(PaymentResponseAction action) { /** * Get action - * - * @return action + * @return action */ @JsonProperty(JSON_PROPERTY_ACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -207,7 +191,7 @@ public PaymentResponseAction getAction() { /** * action * - * @param action + * @param action */ @JsonProperty(JSON_PROPERTY_ACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -216,12 +200,9 @@ public void setAction(PaymentResponseAction action) { } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first: Go to **Customer Area** > **Developers** > - * **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. * @return the current {@code PaymentResponse} instance, allowing for method chaining */ public PaymentResponse additionalData(Map additionalData) { @@ -238,12 +219,8 @@ public PaymentResponse putAdditionalDataItem(String key, String additionalDataIt } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first: Go to **Customer Area** > **Developers** > **Additional data**. - * - * @return additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first: Go to **Customer Area** > **Developers** > - * **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * @return additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,12 +229,9 @@ public Map getAdditionalData() { } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first: Go to **Customer Area** > **Developers** > - * **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -268,7 +242,7 @@ public void setAdditionalData(Map additionalData) { /** * amount * - * @param amount + * @param amount * @return the current {@code PaymentResponse} instance, allowing for method chaining */ public PaymentResponse amount(Amount amount) { @@ -278,8 +252,7 @@ public PaymentResponse amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -290,7 +263,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -311,7 +284,6 @@ public PaymentResponse donationToken(String donationToken) { /** * Donation Token containing payment details for Adyen Giving. - * * @return donationToken Donation Token containing payment details for Adyen Giving. */ @JsonProperty(JSON_PROPERTY_DONATION_TOKEN) @@ -334,7 +306,7 @@ public void setDonationToken(String donationToken) { /** * fraudResult * - * @param fraudResult + * @param fraudResult * @return the current {@code PaymentResponse} instance, allowing for method chaining */ public PaymentResponse fraudResult(FraudResult fraudResult) { @@ -344,8 +316,7 @@ public PaymentResponse fraudResult(FraudResult fraudResult) { /** * Get fraudResult - * - * @return fraudResult + * @return fraudResult */ @JsonProperty(JSON_PROPERTY_FRAUD_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -356,7 +327,7 @@ public FraudResult getFraudResult() { /** * fraudResult * - * @param fraudResult + * @param fraudResult */ @JsonProperty(JSON_PROPERTY_FRAUD_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -365,16 +336,9 @@ public void setFraudResult(FraudResult fraudResult) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * - * @param merchantReference The reference to uniquely identify a payment. This reference is used - * in all communication with you about the payment status. We recommend using a unique value - * per payment; however, it is not a requirement. If you need to provide multiple references - * for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 - * characters. + * @param merchantReference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * @return the current {@code PaymentResponse} instance, allowing for method chaining */ public PaymentResponse merchantReference(String merchantReference) { @@ -383,16 +347,8 @@ public PaymentResponse merchantReference(String merchantReference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. - * - * @return merchantReference The reference to uniquely identify a payment. This reference is used - * in all communication with you about the payment status. We recommend using a unique value - * per payment; however, it is not a requirement. If you need to provide multiple references - * for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 - * characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @return merchantReference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -401,16 +357,9 @@ public String getMerchantReference() { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * - * @param merchantReference The reference to uniquely identify a payment. This reference is used - * in all communication with you about the payment status. We recommend using a unique value - * per payment; however, it is not a requirement. If you need to provide multiple references - * for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 - * characters. + * @param merchantReference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -421,7 +370,7 @@ public void setMerchantReference(String merchantReference) { /** * order * - * @param order + * @param order * @return the current {@code PaymentResponse} instance, allowing for method chaining */ public PaymentResponse order(CheckoutOrderResponse order) { @@ -431,8 +380,7 @@ public PaymentResponse order(CheckoutOrderResponse order) { /** * Get order - * - * @return order + * @return order */ @JsonProperty(JSON_PROPERTY_ORDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -443,7 +391,7 @@ public CheckoutOrderResponse getOrder() { /** * order * - * @param order + * @param order */ @JsonProperty(JSON_PROPERTY_ORDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -454,7 +402,7 @@ public void setOrder(CheckoutOrderResponse order) { /** * paymentMethod * - * @param paymentMethod + * @param paymentMethod * @return the current {@code PaymentResponse} instance, allowing for method chaining */ public PaymentResponse paymentMethod(ResponsePaymentMethod paymentMethod) { @@ -464,8 +412,7 @@ public PaymentResponse paymentMethod(ResponsePaymentMethod paymentMethod) { /** * Get paymentMethod - * - * @return paymentMethod + * @return paymentMethod */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -476,7 +423,7 @@ public ResponsePaymentMethod getPaymentMethod() { /** * paymentMethod * - * @param paymentMethod + * @param paymentMethod */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -485,15 +432,9 @@ public void setPaymentMethod(ResponsePaymentMethod paymentMethod) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value - * is globally unique; quote it when communicating with us about this request. > For payment - * methods that require a redirect or additional action, you will get this value in the - * `/payments/details` response. + * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. > For payment methods that require a redirect or additional action, you will get this value in the `/payments/details` response. * - * @param pspReference Adyen's 16-character string reference associated with the - * transaction/request. This value is globally unique; quote it when communicating with us - * about this request. > For payment methods that require a redirect or additional action, - * you will get this value in the `/payments/details` response. + * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. > For payment methods that require a redirect or additional action, you will get this value in the `/payments/details` response. * @return the current {@code PaymentResponse} instance, allowing for method chaining */ public PaymentResponse pspReference(String pspReference) { @@ -502,15 +443,8 @@ public PaymentResponse pspReference(String pspReference) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value - * is globally unique; quote it when communicating with us about this request. > For payment - * methods that require a redirect or additional action, you will get this value in the - * `/payments/details` response. - * - * @return pspReference Adyen's 16-character string reference associated with the - * transaction/request. This value is globally unique; quote it when communicating with us - * about this request. > For payment methods that require a redirect or additional action, - * you will get this value in the `/payments/details` response. + * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. > For payment methods that require a redirect or additional action, you will get this value in the `/payments/details` response. + * @return pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. > For payment methods that require a redirect or additional action, you will get this value in the `/payments/details` response. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -519,15 +453,9 @@ public String getPspReference() { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value - * is globally unique; quote it when communicating with us about this request. > For payment - * methods that require a redirect or additional action, you will get this value in the - * `/payments/details` response. + * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. > For payment methods that require a redirect or additional action, you will get this value in the `/payments/details` response. * - * @param pspReference Adyen's 16-character string reference associated with the - * transaction/request. This value is globally unique; quote it when communicating with us - * about this request. > For payment methods that require a redirect or additional action, - * you will get this value in the `/payments/details` response. + * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. > For payment methods that require a redirect or additional action, you will get this value in the `/payments/details` response. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -536,17 +464,9 @@ public void setPspReference(String pspReference) { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this - * field holds Adyen's mapped reason for the refusal or a description of the error. When a - * transaction fails, the authorisation response includes `resultCode` and - * `refusalReason` values. For more information, see [Refusal - * reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). * - * @param refusalReason If the payment's authorisation is refused or an error occurs during - * authorisation, this field holds Adyen's mapped reason for the refusal or a description - * of the error. When a transaction fails, the authorisation response includes - * `resultCode` and `refusalReason` values. For more information, see - * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @param refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). * @return the current {@code PaymentResponse} instance, allowing for method chaining */ public PaymentResponse refusalReason(String refusalReason) { @@ -555,17 +475,8 @@ public PaymentResponse refusalReason(String refusalReason) { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this - * field holds Adyen's mapped reason for the refusal or a description of the error. When a - * transaction fails, the authorisation response includes `resultCode` and - * `refusalReason` values. For more information, see [Refusal - * reasons](https://docs.adyen.com/development-resources/refusal-reasons). - * - * @return refusalReason If the payment's authorisation is refused or an error occurs during - * authorisation, this field holds Adyen's mapped reason for the refusal or a description - * of the error. When a transaction fails, the authorisation response includes - * `resultCode` and `refusalReason` values. For more information, see - * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @return refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -574,17 +485,9 @@ public String getRefusalReason() { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this - * field holds Adyen's mapped reason for the refusal or a description of the error. When a - * transaction fails, the authorisation response includes `resultCode` and - * `refusalReason` values. For more information, see [Refusal - * reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). * - * @param refusalReason If the payment's authorisation is refused or an error occurs during - * authorisation, this field holds Adyen's mapped reason for the refusal or a description - * of the error. When a transaction fails, the authorisation response includes - * `resultCode` and `refusalReason` values. For more information, see - * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @param refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -593,12 +496,9 @@ public void setRefusalReason(String refusalReason) { } /** - * Code that specifies the refusal reason. For more information, see [Authorisation refusal - * reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * Code that specifies the refusal reason. For more information, see [Authorisation refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). * - * @param refusalReasonCode Code that specifies the refusal reason. For more information, see - * [Authorisation refusal - * reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @param refusalReasonCode Code that specifies the refusal reason. For more information, see [Authorisation refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). * @return the current {@code PaymentResponse} instance, allowing for method chaining */ public PaymentResponse refusalReasonCode(String refusalReasonCode) { @@ -607,12 +507,8 @@ public PaymentResponse refusalReasonCode(String refusalReasonCode) { } /** - * Code that specifies the refusal reason. For more information, see [Authorisation refusal - * reasons](https://docs.adyen.com/development-resources/refusal-reasons). - * - * @return refusalReasonCode Code that specifies the refusal reason. For more information, see - * [Authorisation refusal - * reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * Code that specifies the refusal reason. For more information, see [Authorisation refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @return refusalReasonCode Code that specifies the refusal reason. For more information, see [Authorisation refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -621,12 +517,9 @@ public String getRefusalReasonCode() { } /** - * Code that specifies the refusal reason. For more information, see [Authorisation refusal - * reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * Code that specifies the refusal reason. For more information, see [Authorisation refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). * - * @param refusalReasonCode Code that specifies the refusal reason. For more information, see - * [Authorisation refusal - * reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @param refusalReasonCode Code that specifies the refusal reason. For more information, see [Authorisation refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -635,62 +528,9 @@ public void setRefusalReasonCode(String refusalReasonCode) { } /** - * The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. - * Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – - * The transaction does not require 3D Secure authentication. Returned for [standalone - * authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * * **Authorised** – The payment was successfully authorised. This state serves as an indicator - * to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – - * Indicates the payment has been cancelled (either by the shopper or the merchant) before - * processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires - * further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 - * transactions. * **Error** – There was an error when the payment was being processed. The reason - * is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – - * The issuer requires the shopper's device fingerprint before the payment can be - * authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment - * has been authorised for a partial amount. This happens for card payments when the merchant - * supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – - * Indicates that it is not possible to obtain the final status of the payment. This can happen if - * the systems providing final status information for the payment are unavailable, or if the - * shopper needs to take further action to complete the payment. * **PresentToShopper** – - * Indicates that the response contains additional information that you need to present to a - * shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment - * has successfully been received by Adyen, and will be processed. This is the initial state for - * all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external - * web page or app to complete the authorisation. * **Refused** – Indicates the payment was - * refused. The reason is given in the `refusalReason` field. This is a final state. + * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. * - * @param resultCode The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure - * 2. Returned for 3D Secure 2 authentication-only transactions. * - * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. - * Returned for [standalone authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * * **Authorised** – The payment was successfully authorised. This state serves as an - * indicator to proceed with the delivery of goods and services. This is a final state. * - * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the - * merchant) before processing was completed. This is a final state. * **ChallengeShopper** – - * The issuer requires further shopper interaction before the payment can be authenticated. - * Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment - * was being processed. The reason is given in the `refusalReason` field. This is a - * final state. * **IdentifyShopper** – The issuer requires the shopper's device - * fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. - * * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This - * happens for card payments when the merchant supports Partial Authorisations and the - * cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to - * obtain the final status of the payment. This can happen if the systems providing final - * status information for the payment are unavailable, or if the shopper needs to take further - * action to complete the payment. * **PresentToShopper** – Indicates that the response - * contains additional information that you need to present to a shopper, so that they can use - * it to complete a payment. * **Received** – Indicates the payment has successfully been - * received by Adyen, and will be processed. This is the initial state for all payments. * - * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or - * app to complete the authorisation. * **Refused** – Indicates the payment was refused. The - * reason is given in the `refusalReason` field. This is a final state. + * @param resultCode The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. * @return the current {@code PaymentResponse} instance, allowing for method chaining */ public PaymentResponse resultCode(ResultCodeEnum resultCode) { @@ -699,62 +539,8 @@ public PaymentResponse resultCode(ResultCodeEnum resultCode) { } /** - * The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. - * Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – - * The transaction does not require 3D Secure authentication. Returned for [standalone - * authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * * **Authorised** – The payment was successfully authorised. This state serves as an indicator - * to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – - * Indicates the payment has been cancelled (either by the shopper or the merchant) before - * processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires - * further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 - * transactions. * **Error** – There was an error when the payment was being processed. The reason - * is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – - * The issuer requires the shopper's device fingerprint before the payment can be - * authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment - * has been authorised for a partial amount. This happens for card payments when the merchant - * supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – - * Indicates that it is not possible to obtain the final status of the payment. This can happen if - * the systems providing final status information for the payment are unavailable, or if the - * shopper needs to take further action to complete the payment. * **PresentToShopper** – - * Indicates that the response contains additional information that you need to present to a - * shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment - * has successfully been received by Adyen, and will be processed. This is the initial state for - * all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external - * web page or app to complete the authorisation. * **Refused** – Indicates the payment was - * refused. The reason is given in the `refusalReason` field. This is a final state. - * - * @return resultCode The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure - * 2. Returned for 3D Secure 2 authentication-only transactions. * - * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. - * Returned for [standalone authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * * **Authorised** – The payment was successfully authorised. This state serves as an - * indicator to proceed with the delivery of goods and services. This is a final state. * - * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the - * merchant) before processing was completed. This is a final state. * **ChallengeShopper** – - * The issuer requires further shopper interaction before the payment can be authenticated. - * Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment - * was being processed. The reason is given in the `refusalReason` field. This is a - * final state. * **IdentifyShopper** – The issuer requires the shopper's device - * fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. - * * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This - * happens for card payments when the merchant supports Partial Authorisations and the - * cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to - * obtain the final status of the payment. This can happen if the systems providing final - * status information for the payment are unavailable, or if the shopper needs to take further - * action to complete the payment. * **PresentToShopper** – Indicates that the response - * contains additional information that you need to present to a shopper, so that they can use - * it to complete a payment. * **Received** – Indicates the payment has successfully been - * received by Adyen, and will be processed. This is the initial state for all payments. * - * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or - * app to complete the authorisation. * **Refused** – Indicates the payment was refused. The - * reason is given in the `refusalReason` field. This is a final state. + * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + * @return resultCode The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -763,62 +549,9 @@ public ResultCodeEnum getResultCode() { } /** - * The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. - * Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – - * The transaction does not require 3D Secure authentication. Returned for [standalone - * authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * * **Authorised** – The payment was successfully authorised. This state serves as an indicator - * to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – - * Indicates the payment has been cancelled (either by the shopper or the merchant) before - * processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires - * further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 - * transactions. * **Error** – There was an error when the payment was being processed. The reason - * is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – - * The issuer requires the shopper's device fingerprint before the payment can be - * authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment - * has been authorised for a partial amount. This happens for card payments when the merchant - * supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – - * Indicates that it is not possible to obtain the final status of the payment. This can happen if - * the systems providing final status information for the payment are unavailable, or if the - * shopper needs to take further action to complete the payment. * **PresentToShopper** – - * Indicates that the response contains additional information that you need to present to a - * shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment - * has successfully been received by Adyen, and will be processed. This is the initial state for - * all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external - * web page or app to complete the authorisation. * **Refused** – Indicates the payment was - * refused. The reason is given in the `refusalReason` field. This is a final state. + * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. * - * @param resultCode The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure - * 2. Returned for 3D Secure 2 authentication-only transactions. * - * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. - * Returned for [standalone authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * * **Authorised** – The payment was successfully authorised. This state serves as an - * indicator to proceed with the delivery of goods and services. This is a final state. * - * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the - * merchant) before processing was completed. This is a final state. * **ChallengeShopper** – - * The issuer requires further shopper interaction before the payment can be authenticated. - * Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment - * was being processed. The reason is given in the `refusalReason` field. This is a - * final state. * **IdentifyShopper** – The issuer requires the shopper's device - * fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. - * * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This - * happens for card payments when the merchant supports Partial Authorisations and the - * cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to - * obtain the final status of the payment. This can happen if the systems providing final - * status information for the payment are unavailable, or if the shopper needs to take further - * action to complete the payment. * **PresentToShopper** – Indicates that the response - * contains additional information that you need to present to a shopper, so that they can use - * it to complete a payment. * **Received** – Indicates the payment has successfully been - * received by Adyen, and will be processed. This is the initial state for all payments. * - * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or - * app to complete the authorisation. * **Refused** – Indicates the payment was refused. The - * reason is given in the `refusalReason` field. This is a final state. + * @param resultCode The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -829,7 +562,7 @@ public void setResultCode(ResultCodeEnum resultCode) { /** * threeDS2ResponseData * - * @param threeDS2ResponseData + * @param threeDS2ResponseData * @return the current {@code PaymentResponse} instance, allowing for method chaining */ public PaymentResponse threeDS2ResponseData(ThreeDS2ResponseData threeDS2ResponseData) { @@ -839,8 +572,7 @@ public PaymentResponse threeDS2ResponseData(ThreeDS2ResponseData threeDS2Respons /** * Get threeDS2ResponseData - * - * @return threeDS2ResponseData + * @return threeDS2ResponseData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_RESPONSE_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -851,7 +583,7 @@ public ThreeDS2ResponseData getThreeDS2ResponseData() { /** * threeDS2ResponseData * - * @param threeDS2ResponseData + * @param threeDS2ResponseData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_RESPONSE_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -862,7 +594,7 @@ public void setThreeDS2ResponseData(ThreeDS2ResponseData threeDS2ResponseData) { /** * threeDS2Result * - * @param threeDS2Result + * @param threeDS2Result * @return the current {@code PaymentResponse} instance, allowing for method chaining */ public PaymentResponse threeDS2Result(ThreeDS2Result threeDS2Result) { @@ -872,8 +604,7 @@ public PaymentResponse threeDS2Result(ThreeDS2Result threeDS2Result) { /** * Get threeDS2Result - * - * @return threeDS2Result + * @return threeDS2Result */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -884,7 +615,7 @@ public ThreeDS2Result getThreeDS2Result() { /** * threeDS2Result * - * @param threeDS2Result + * @param threeDS2Result */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -893,11 +624,9 @@ public void setThreeDS2Result(ThreeDS2Result threeDS2Result) { } /** - * When non-empty, contains a value that you must submit to the `/payments/details` - * endpoint as `paymentData`. + * When non-empty, contains a value that you must submit to the `/payments/details` endpoint as `paymentData`. * - * @param threeDSPaymentData When non-empty, contains a value that you must submit to the - * `/payments/details` endpoint as `paymentData`. + * @param threeDSPaymentData When non-empty, contains a value that you must submit to the `/payments/details` endpoint as `paymentData`. * @return the current {@code PaymentResponse} instance, allowing for method chaining */ public PaymentResponse threeDSPaymentData(String threeDSPaymentData) { @@ -906,11 +635,8 @@ public PaymentResponse threeDSPaymentData(String threeDSPaymentData) { } /** - * When non-empty, contains a value that you must submit to the `/payments/details` - * endpoint as `paymentData`. - * - * @return threeDSPaymentData When non-empty, contains a value that you must submit to the - * `/payments/details` endpoint as `paymentData`. + * When non-empty, contains a value that you must submit to the `/payments/details` endpoint as `paymentData`. + * @return threeDSPaymentData When non-empty, contains a value that you must submit to the `/payments/details` endpoint as `paymentData`. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_PAYMENT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -919,11 +645,9 @@ public String getThreeDSPaymentData() { } /** - * When non-empty, contains a value that you must submit to the `/payments/details` - * endpoint as `paymentData`. + * When non-empty, contains a value that you must submit to the `/payments/details` endpoint as `paymentData`. * - * @param threeDSPaymentData When non-empty, contains a value that you must submit to the - * `/payments/details` endpoint as `paymentData`. + * @param threeDSPaymentData When non-empty, contains a value that you must submit to the `/payments/details` endpoint as `paymentData`. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_PAYMENT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -931,7 +655,9 @@ public void setThreeDSPaymentData(String threeDSPaymentData) { this.threeDSPaymentData = threeDSPaymentData; } - /** Return true if this PaymentResponse object is equal to o. */ + /** + * Return true if this PaymentResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -941,41 +667,26 @@ public boolean equals(Object o) { return false; } PaymentResponse paymentResponse = (PaymentResponse) o; - return Objects.equals(this.action, paymentResponse.action) - && Objects.equals(this.additionalData, paymentResponse.additionalData) - && Objects.equals(this.amount, paymentResponse.amount) - && Objects.equals(this.donationToken, paymentResponse.donationToken) - && Objects.equals(this.fraudResult, paymentResponse.fraudResult) - && Objects.equals(this.merchantReference, paymentResponse.merchantReference) - && Objects.equals(this.order, paymentResponse.order) - && Objects.equals(this.paymentMethod, paymentResponse.paymentMethod) - && Objects.equals(this.pspReference, paymentResponse.pspReference) - && Objects.equals(this.refusalReason, paymentResponse.refusalReason) - && Objects.equals(this.refusalReasonCode, paymentResponse.refusalReasonCode) - && Objects.equals(this.resultCode, paymentResponse.resultCode) - && Objects.equals(this.threeDS2ResponseData, paymentResponse.threeDS2ResponseData) - && Objects.equals(this.threeDS2Result, paymentResponse.threeDS2Result) - && Objects.equals(this.threeDSPaymentData, paymentResponse.threeDSPaymentData); + return Objects.equals(this.action, paymentResponse.action) && + Objects.equals(this.additionalData, paymentResponse.additionalData) && + Objects.equals(this.amount, paymentResponse.amount) && + Objects.equals(this.donationToken, paymentResponse.donationToken) && + Objects.equals(this.fraudResult, paymentResponse.fraudResult) && + Objects.equals(this.merchantReference, paymentResponse.merchantReference) && + Objects.equals(this.order, paymentResponse.order) && + Objects.equals(this.paymentMethod, paymentResponse.paymentMethod) && + Objects.equals(this.pspReference, paymentResponse.pspReference) && + Objects.equals(this.refusalReason, paymentResponse.refusalReason) && + Objects.equals(this.refusalReasonCode, paymentResponse.refusalReasonCode) && + Objects.equals(this.resultCode, paymentResponse.resultCode) && + Objects.equals(this.threeDS2ResponseData, paymentResponse.threeDS2ResponseData) && + Objects.equals(this.threeDS2Result, paymentResponse.threeDS2Result) && + Objects.equals(this.threeDSPaymentData, paymentResponse.threeDSPaymentData); } @Override public int hashCode() { - return Objects.hash( - action, - additionalData, - amount, - donationToken, - fraudResult, - merchantReference, - order, - paymentMethod, - pspReference, - refusalReason, - refusalReasonCode, - resultCode, - threeDS2ResponseData, - threeDS2Result, - threeDSPaymentData); + return Objects.hash(action, additionalData, amount, donationToken, fraudResult, merchantReference, order, paymentMethod, pspReference, refusalReason, refusalReasonCode, resultCode, threeDS2ResponseData, threeDS2Result, threeDSPaymentData); } @Override @@ -994,9 +705,7 @@ public String toString() { sb.append(" refusalReason: ").append(toIndentedString(refusalReason)).append("\n"); sb.append(" refusalReasonCode: ").append(toIndentedString(refusalReasonCode)).append("\n"); sb.append(" resultCode: ").append(toIndentedString(resultCode)).append("\n"); - sb.append(" threeDS2ResponseData: ") - .append(toIndentedString(threeDS2ResponseData)) - .append("\n"); + sb.append(" threeDS2ResponseData: ").append(toIndentedString(threeDS2ResponseData)).append("\n"); sb.append(" threeDS2Result: ").append(toIndentedString(threeDS2Result)).append("\n"); sb.append(" threeDSPaymentData: ").append(toIndentedString(threeDSPaymentData)).append("\n"); sb.append("}"); @@ -1004,7 +713,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1013,7 +723,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentResponse given an JSON string * * @param jsonString JSON string @@ -1023,12 +733,11 @@ private String toIndentedString(Object o) { public static PaymentResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentResponse.class); } - - /** - * Convert an instance of PaymentResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentResponseAction.java b/src/main/java/com/adyen/model/checkout/PaymentResponseAction.java index 39cbc9f63..b5597dcd6 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentResponseAction.java +++ b/src/main/java/com/adyen/model/checkout/PaymentResponseAction.java @@ -2,19 +2,55 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Amount; +import com.adyen.model.checkout.CheckoutAwaitAction; +import com.adyen.model.checkout.CheckoutBankTransferAction; +import com.adyen.model.checkout.CheckoutDelegatedAuthenticationAction; +import com.adyen.model.checkout.CheckoutNativeRedirectAction; +import com.adyen.model.checkout.CheckoutQrCodeAction; +import com.adyen.model.checkout.CheckoutRedirectAction; +import com.adyen.model.checkout.CheckoutSDKAction; +import com.adyen.model.checkout.CheckoutThreeDS2Action; +import com.adyen.model.checkout.CheckoutVoucherAction; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + +import com.fasterxml.jackson.core.type.TypeReference; + +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.Response; +import java.io.IOException; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; + import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; +import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -24,582 +60,543 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import jakarta.ws.rs.core.GenericType; -import java.io.IOException; -import java.util.*; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.logging.Level; -import java.util.logging.Logger; + @JsonDeserialize(using = PaymentResponseAction.PaymentResponseActionDeserializer.class) @JsonSerialize(using = PaymentResponseAction.PaymentResponseActionSerializer.class) public class PaymentResponseAction extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(PaymentResponseAction.class.getName()); + private static final Logger log = Logger.getLogger(PaymentResponseAction.class.getName()); + + public static class PaymentResponseActionSerializer extends StdSerializer { + public PaymentResponseActionSerializer(Class t) { + super(t); + } + + public PaymentResponseActionSerializer() { + this(null); + } + + @Override + public void serialize(PaymentResponseAction value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); + } + } + + public static class PaymentResponseActionDeserializer extends StdDeserializer { + public PaymentResponseActionDeserializer() { + this(PaymentResponseAction.class); + } + + public PaymentResponseActionDeserializer(Class vc) { + super(vc); + } + + @Override + public PaymentResponseAction deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize CheckoutAwaitAction + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(CheckoutAwaitAction.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutAwaitAction.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CheckoutAwaitAction'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CheckoutAwaitAction'", e); + } + + // deserialize CheckoutBankTransferAction + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(CheckoutBankTransferAction.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutBankTransferAction.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CheckoutBankTransferAction'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CheckoutBankTransferAction'", e); + } + + // deserialize CheckoutDelegatedAuthenticationAction + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(CheckoutDelegatedAuthenticationAction.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutDelegatedAuthenticationAction.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CheckoutDelegatedAuthenticationAction'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CheckoutDelegatedAuthenticationAction'", e); + } + + // deserialize CheckoutNativeRedirectAction + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(CheckoutNativeRedirectAction.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutNativeRedirectAction.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CheckoutNativeRedirectAction'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CheckoutNativeRedirectAction'", e); + } + + // deserialize CheckoutQrCodeAction + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(CheckoutQrCodeAction.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutQrCodeAction.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CheckoutQrCodeAction'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CheckoutQrCodeAction'", e); + } + + // deserialize CheckoutRedirectAction + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(CheckoutRedirectAction.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutRedirectAction.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CheckoutRedirectAction'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CheckoutRedirectAction'", e); + } + + // deserialize CheckoutSDKAction + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(CheckoutSDKAction.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutSDKAction.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CheckoutSDKAction'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CheckoutSDKAction'", e); + } + + // deserialize CheckoutThreeDS2Action + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(CheckoutThreeDS2Action.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutThreeDS2Action.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CheckoutThreeDS2Action'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CheckoutThreeDS2Action'", e); + } + + // deserialize CheckoutVoucherAction + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(CheckoutVoucherAction.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutVoucherAction.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CheckoutVoucherAction'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CheckoutVoucherAction'", e); + } + + if (match == 1) { + PaymentResponseAction ret = new PaymentResponseAction(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException(String.format("Failed deserialization for PaymentResponseAction: %d classes match result, expected 1", match)); + } + + /** + * Handle deserialization of the 'null' value. + */ + @Override + public PaymentResponseAction getNullValue(DeserializationContext ctxt) throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "PaymentResponseAction cannot be null"); + } + } + + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); - public static class PaymentResponseActionSerializer extends StdSerializer { - public PaymentResponseActionSerializer(Class t) { - super(t); + public PaymentResponseAction() { + super("oneOf", Boolean.FALSE); } - public PaymentResponseActionSerializer() { - this(null); + public PaymentResponseAction(CheckoutAwaitAction o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } - @Override - public void serialize( - PaymentResponseAction value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + public PaymentResponseAction(CheckoutBankTransferAction o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public PaymentResponseAction(CheckoutDelegatedAuthenticationAction o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public PaymentResponseAction(CheckoutNativeRedirectAction o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public PaymentResponseAction(CheckoutQrCodeAction o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public PaymentResponseAction(CheckoutRedirectAction o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public PaymentResponseAction(CheckoutSDKAction o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public PaymentResponseAction(CheckoutThreeDS2Action o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } - } - public static class PaymentResponseActionDeserializer - extends StdDeserializer { - public PaymentResponseActionDeserializer() { - this(PaymentResponseAction.class); + public PaymentResponseAction(CheckoutVoucherAction o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } - public PaymentResponseActionDeserializer(Class vc) { - super(vc); + static { + schemas.put("CheckoutAwaitAction", new GenericType() { + }); + schemas.put("CheckoutBankTransferAction", new GenericType() { + }); + schemas.put("CheckoutDelegatedAuthenticationAction", new GenericType() { + }); + schemas.put("CheckoutNativeRedirectAction", new GenericType() { + }); + schemas.put("CheckoutQrCodeAction", new GenericType() { + }); + schemas.put("CheckoutRedirectAction", new GenericType() { + }); + schemas.put("CheckoutSDKAction", new GenericType() { + }); + schemas.put("CheckoutThreeDS2Action", new GenericType() { + }); + schemas.put("CheckoutVoucherAction", new GenericType() { + }); + JSON.registerDescendants(PaymentResponseAction.class, Collections.unmodifiableMap(schemas)); } @Override - public PaymentResponseAction deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize CheckoutAwaitAction - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(CheckoutAwaitAction.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutAwaitAction.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CheckoutAwaitAction'"); - } + public Map> getSchemas() { + return PaymentResponseAction.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check + * the instance parameter is valid against the oneOf child schemas: + * CheckoutAwaitAction, CheckoutBankTransferAction, CheckoutDelegatedAuthenticationAction, CheckoutNativeRedirectAction, CheckoutQrCodeAction, CheckoutRedirectAction, CheckoutSDKAction, CheckoutThreeDS2Action, CheckoutVoucherAction + * + * It could be an instance of the 'oneOf' schemas. + * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(CheckoutAwaitAction.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CheckoutAwaitAction'", e); - } - - // deserialize CheckoutBankTransferAction - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(CheckoutBankTransferAction.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(CheckoutBankTransferAction.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CheckoutBankTransferAction'"); - } + + if (JSON.isInstanceOf(CheckoutBankTransferAction.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CheckoutBankTransferAction'", e); - } - - // deserialize CheckoutDelegatedAuthenticationAction - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(CheckoutDelegatedAuthenticationAction.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()) - .readValueAs(CheckoutDelegatedAuthenticationAction.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log( - Level.FINER, "Input data matches schema 'CheckoutDelegatedAuthenticationAction'"); - } + + if (JSON.isInstanceOf(CheckoutDelegatedAuthenticationAction.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, - "Input data does not match schema 'CheckoutDelegatedAuthenticationAction'", - e); - } - - // deserialize CheckoutNativeRedirectAction - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(CheckoutNativeRedirectAction.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(CheckoutNativeRedirectAction.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CheckoutNativeRedirectAction'"); - } + + if (JSON.isInstanceOf(CheckoutNativeRedirectAction.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CheckoutNativeRedirectAction'", e); - } - - // deserialize CheckoutQrCodeAction - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(CheckoutQrCodeAction.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutQrCodeAction.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CheckoutQrCodeAction'"); - } + + if (JSON.isInstanceOf(CheckoutQrCodeAction.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CheckoutQrCodeAction'", e); - } - - // deserialize CheckoutRedirectAction - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(CheckoutRedirectAction.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutRedirectAction.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CheckoutRedirectAction'"); - } + + if (JSON.isInstanceOf(CheckoutRedirectAction.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CheckoutRedirectAction'", e); - } - - // deserialize CheckoutSDKAction - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(CheckoutSDKAction.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutSDKAction.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CheckoutSDKAction'"); - } + + if (JSON.isInstanceOf(CheckoutSDKAction.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CheckoutSDKAction'", e); - } - - // deserialize CheckoutThreeDS2Action - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(CheckoutThreeDS2Action.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutThreeDS2Action.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CheckoutThreeDS2Action'"); - } + + if (JSON.isInstanceOf(CheckoutThreeDS2Action.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CheckoutThreeDS2Action'", e); - } - - // deserialize CheckoutVoucherAction - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(CheckoutVoucherAction.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutVoucherAction.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CheckoutVoucherAction'"); - } + + if (JSON.isInstanceOf(CheckoutVoucherAction.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CheckoutVoucherAction'", e); - } - - if (match == 1) { - PaymentResponseAction ret = new PaymentResponseAction(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for PaymentResponseAction: %d classes match result, expected 1", - match)); + + throw new RuntimeException("Invalid instance type. Must be CheckoutAwaitAction, CheckoutBankTransferAction, CheckoutDelegatedAuthenticationAction, CheckoutNativeRedirectAction, CheckoutQrCodeAction, CheckoutRedirectAction, CheckoutSDKAction, CheckoutThreeDS2Action, CheckoutVoucherAction"); } - /** Handle deserialization of the 'null' value. */ + /** + * Get the actual instance, which can be the following: + * CheckoutAwaitAction, CheckoutBankTransferAction, CheckoutDelegatedAuthenticationAction, CheckoutNativeRedirectAction, CheckoutQrCodeAction, CheckoutRedirectAction, CheckoutSDKAction, CheckoutThreeDS2Action, CheckoutVoucherAction + * + * @return The actual instance (CheckoutAwaitAction, CheckoutBankTransferAction, CheckoutDelegatedAuthenticationAction, CheckoutNativeRedirectAction, CheckoutQrCodeAction, CheckoutRedirectAction, CheckoutSDKAction, CheckoutThreeDS2Action, CheckoutVoucherAction) + */ @Override - public PaymentResponseAction getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "PaymentResponseAction cannot be null"); + public Object getActualInstance() { + return super.getActualInstance(); } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public PaymentResponseAction() { - super("oneOf", Boolean.FALSE); - } - - public PaymentResponseAction(CheckoutAwaitAction o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public PaymentResponseAction(CheckoutBankTransferAction o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public PaymentResponseAction(CheckoutDelegatedAuthenticationAction o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public PaymentResponseAction(CheckoutNativeRedirectAction o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public PaymentResponseAction(CheckoutQrCodeAction o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public PaymentResponseAction(CheckoutRedirectAction o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public PaymentResponseAction(CheckoutSDKAction o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public PaymentResponseAction(CheckoutThreeDS2Action o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public PaymentResponseAction(CheckoutVoucherAction o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("CheckoutAwaitAction", new GenericType() {}); - schemas.put("CheckoutBankTransferAction", new GenericType() {}); - schemas.put( - "CheckoutDelegatedAuthenticationAction", - new GenericType() {}); - schemas.put("CheckoutNativeRedirectAction", new GenericType() {}); - schemas.put("CheckoutQrCodeAction", new GenericType() {}); - schemas.put("CheckoutRedirectAction", new GenericType() {}); - schemas.put("CheckoutSDKAction", new GenericType() {}); - schemas.put("CheckoutThreeDS2Action", new GenericType() {}); - schemas.put("CheckoutVoucherAction", new GenericType() {}); - JSON.registerDescendants(PaymentResponseAction.class, Collections.unmodifiableMap(schemas)); - } - - @Override - public Map> getSchemas() { - return PaymentResponseAction.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: CheckoutAwaitAction, CheckoutBankTransferAction, - * CheckoutDelegatedAuthenticationAction, CheckoutNativeRedirectAction, CheckoutQrCodeAction, - * CheckoutRedirectAction, CheckoutSDKAction, CheckoutThreeDS2Action, CheckoutVoucherAction - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a - * composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(CheckoutAwaitAction.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + + /** + * Get the actual instance of `CheckoutAwaitAction`. If the actual instance is not `CheckoutAwaitAction`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CheckoutAwaitAction` + * @throws ClassCastException if the instance is not `CheckoutAwaitAction` + */ + public CheckoutAwaitAction getCheckoutAwaitAction() throws ClassCastException { + return (CheckoutAwaitAction)super.getActualInstance(); } - if (JSON.isInstanceOf(CheckoutBankTransferAction.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `CheckoutBankTransferAction`. If the actual instance is not `CheckoutBankTransferAction`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CheckoutBankTransferAction` + * @throws ClassCastException if the instance is not `CheckoutBankTransferAction` + */ + public CheckoutBankTransferAction getCheckoutBankTransferAction() throws ClassCastException { + return (CheckoutBankTransferAction)super.getActualInstance(); } - if (JSON.isInstanceOf(CheckoutDelegatedAuthenticationAction.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `CheckoutDelegatedAuthenticationAction`. If the actual instance is not `CheckoutDelegatedAuthenticationAction`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CheckoutDelegatedAuthenticationAction` + * @throws ClassCastException if the instance is not `CheckoutDelegatedAuthenticationAction` + */ + public CheckoutDelegatedAuthenticationAction getCheckoutDelegatedAuthenticationAction() throws ClassCastException { + return (CheckoutDelegatedAuthenticationAction)super.getActualInstance(); } - if (JSON.isInstanceOf(CheckoutNativeRedirectAction.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `CheckoutNativeRedirectAction`. If the actual instance is not `CheckoutNativeRedirectAction`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CheckoutNativeRedirectAction` + * @throws ClassCastException if the instance is not `CheckoutNativeRedirectAction` + */ + public CheckoutNativeRedirectAction getCheckoutNativeRedirectAction() throws ClassCastException { + return (CheckoutNativeRedirectAction)super.getActualInstance(); } - if (JSON.isInstanceOf(CheckoutQrCodeAction.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `CheckoutQrCodeAction`. If the actual instance is not `CheckoutQrCodeAction`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CheckoutQrCodeAction` + * @throws ClassCastException if the instance is not `CheckoutQrCodeAction` + */ + public CheckoutQrCodeAction getCheckoutQrCodeAction() throws ClassCastException { + return (CheckoutQrCodeAction)super.getActualInstance(); } - if (JSON.isInstanceOf(CheckoutRedirectAction.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `CheckoutRedirectAction`. If the actual instance is not `CheckoutRedirectAction`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CheckoutRedirectAction` + * @throws ClassCastException if the instance is not `CheckoutRedirectAction` + */ + public CheckoutRedirectAction getCheckoutRedirectAction() throws ClassCastException { + return (CheckoutRedirectAction)super.getActualInstance(); } - if (JSON.isInstanceOf(CheckoutSDKAction.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `CheckoutSDKAction`. If the actual instance is not `CheckoutSDKAction`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CheckoutSDKAction` + * @throws ClassCastException if the instance is not `CheckoutSDKAction` + */ + public CheckoutSDKAction getCheckoutSDKAction() throws ClassCastException { + return (CheckoutSDKAction)super.getActualInstance(); } - if (JSON.isInstanceOf(CheckoutThreeDS2Action.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `CheckoutThreeDS2Action`. If the actual instance is not `CheckoutThreeDS2Action`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CheckoutThreeDS2Action` + * @throws ClassCastException if the instance is not `CheckoutThreeDS2Action` + */ + public CheckoutThreeDS2Action getCheckoutThreeDS2Action() throws ClassCastException { + return (CheckoutThreeDS2Action)super.getActualInstance(); + } + + /** + * Get the actual instance of `CheckoutVoucherAction`. If the actual instance is not `CheckoutVoucherAction`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CheckoutVoucherAction` + * @throws ClassCastException if the instance is not `CheckoutVoucherAction` + */ + public CheckoutVoucherAction getCheckoutVoucherAction() throws ClassCastException { + return (CheckoutVoucherAction)super.getActualInstance(); + } + + + /** + * Create an instance of PaymentResponseAction given an JSON string + * + * @param jsonString JSON string + * @return An instance of PaymentResponseAction + * @throws IOException if the JSON string is invalid with respect to PaymentResponseAction + */ + public static PaymentResponseAction fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, PaymentResponseAction.class); } - if (JSON.isInstanceOf(CheckoutVoucherAction.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Convert an instance of PaymentResponseAction to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); } - throw new RuntimeException( - "Invalid instance type. Must be CheckoutAwaitAction, CheckoutBankTransferAction, CheckoutDelegatedAuthenticationAction, CheckoutNativeRedirectAction, CheckoutQrCodeAction, CheckoutRedirectAction, CheckoutSDKAction, CheckoutThreeDS2Action, CheckoutVoucherAction"); - } - - /** - * Get the actual instance, which can be the following: CheckoutAwaitAction, - * CheckoutBankTransferAction, CheckoutDelegatedAuthenticationAction, - * CheckoutNativeRedirectAction, CheckoutQrCodeAction, CheckoutRedirectAction, CheckoutSDKAction, - * CheckoutThreeDS2Action, CheckoutVoucherAction - * - * @return The actual instance (CheckoutAwaitAction, CheckoutBankTransferAction, - * CheckoutDelegatedAuthenticationAction, CheckoutNativeRedirectAction, CheckoutQrCodeAction, - * CheckoutRedirectAction, CheckoutSDKAction, CheckoutThreeDS2Action, CheckoutVoucherAction) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `CheckoutAwaitAction`. If the actual instance is not - * `CheckoutAwaitAction`, the ClassCastException will be thrown. - * - * @return The actual instance of `CheckoutAwaitAction` - * @throws ClassCastException if the instance is not `CheckoutAwaitAction` - */ - public CheckoutAwaitAction getCheckoutAwaitAction() throws ClassCastException { - return (CheckoutAwaitAction) super.getActualInstance(); - } - - /** - * Get the actual instance of `CheckoutBankTransferAction`. If the actual instance is not - * `CheckoutBankTransferAction`, the ClassCastException will be thrown. - * - * @return The actual instance of `CheckoutBankTransferAction` - * @throws ClassCastException if the instance is not `CheckoutBankTransferAction` - */ - public CheckoutBankTransferAction getCheckoutBankTransferAction() throws ClassCastException { - return (CheckoutBankTransferAction) super.getActualInstance(); - } - - /** - * Get the actual instance of `CheckoutDelegatedAuthenticationAction`. If the actual instance is - * not `CheckoutDelegatedAuthenticationAction`, the ClassCastException will be thrown. - * - * @return The actual instance of `CheckoutDelegatedAuthenticationAction` - * @throws ClassCastException if the instance is not `CheckoutDelegatedAuthenticationAction` - */ - public CheckoutDelegatedAuthenticationAction getCheckoutDelegatedAuthenticationAction() - throws ClassCastException { - return (CheckoutDelegatedAuthenticationAction) super.getActualInstance(); - } - - /** - * Get the actual instance of `CheckoutNativeRedirectAction`. If the actual instance is not - * `CheckoutNativeRedirectAction`, the ClassCastException will be thrown. - * - * @return The actual instance of `CheckoutNativeRedirectAction` - * @throws ClassCastException if the instance is not `CheckoutNativeRedirectAction` - */ - public CheckoutNativeRedirectAction getCheckoutNativeRedirectAction() throws ClassCastException { - return (CheckoutNativeRedirectAction) super.getActualInstance(); - } - - /** - * Get the actual instance of `CheckoutQrCodeAction`. If the actual instance is not - * `CheckoutQrCodeAction`, the ClassCastException will be thrown. - * - * @return The actual instance of `CheckoutQrCodeAction` - * @throws ClassCastException if the instance is not `CheckoutQrCodeAction` - */ - public CheckoutQrCodeAction getCheckoutQrCodeAction() throws ClassCastException { - return (CheckoutQrCodeAction) super.getActualInstance(); - } - - /** - * Get the actual instance of `CheckoutRedirectAction`. If the actual instance is not - * `CheckoutRedirectAction`, the ClassCastException will be thrown. - * - * @return The actual instance of `CheckoutRedirectAction` - * @throws ClassCastException if the instance is not `CheckoutRedirectAction` - */ - public CheckoutRedirectAction getCheckoutRedirectAction() throws ClassCastException { - return (CheckoutRedirectAction) super.getActualInstance(); - } - - /** - * Get the actual instance of `CheckoutSDKAction`. If the actual instance is not - * `CheckoutSDKAction`, the ClassCastException will be thrown. - * - * @return The actual instance of `CheckoutSDKAction` - * @throws ClassCastException if the instance is not `CheckoutSDKAction` - */ - public CheckoutSDKAction getCheckoutSDKAction() throws ClassCastException { - return (CheckoutSDKAction) super.getActualInstance(); - } - - /** - * Get the actual instance of `CheckoutThreeDS2Action`. If the actual instance is not - * `CheckoutThreeDS2Action`, the ClassCastException will be thrown. - * - * @return The actual instance of `CheckoutThreeDS2Action` - * @throws ClassCastException if the instance is not `CheckoutThreeDS2Action` - */ - public CheckoutThreeDS2Action getCheckoutThreeDS2Action() throws ClassCastException { - return (CheckoutThreeDS2Action) super.getActualInstance(); - } - - /** - * Get the actual instance of `CheckoutVoucherAction`. If the actual instance is not - * `CheckoutVoucherAction`, the ClassCastException will be thrown. - * - * @return The actual instance of `CheckoutVoucherAction` - * @throws ClassCastException if the instance is not `CheckoutVoucherAction` - */ - public CheckoutVoucherAction getCheckoutVoucherAction() throws ClassCastException { - return (CheckoutVoucherAction) super.getActualInstance(); - } - - /** - * Create an instance of PaymentResponseAction given an JSON string - * - * @param jsonString JSON string - * @return An instance of PaymentResponseAction - * @throws IOException if the JSON string is invalid with respect to PaymentResponseAction - */ - public static PaymentResponseAction fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, PaymentResponseAction.class); - } - - /** - * Convert an instance of PaymentResponseAction to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); - } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentReversalRequest.java b/src/main/java/com/adyen/model/checkout/PaymentReversalRequest.java index 87c62b92d..4eeed3b10 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentReversalRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentReversalRequest.java @@ -2,28 +2,40 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.ApplicationInfo; +import com.adyen.model.checkout.EnhancedSchemeData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** PaymentReversalRequest */ + +/** + * PaymentReversalRequest + */ @JsonPropertyOrder({ PaymentReversalRequest.JSON_PROPERTY_APPLICATION_INFO, PaymentReversalRequest.JSON_PROPERTY_ENHANCED_SCHEME_DATA, PaymentReversalRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, PaymentReversalRequest.JSON_PROPERTY_REFERENCE }) + public class PaymentReversalRequest { public static final String JSON_PROPERTY_APPLICATION_INFO = "applicationInfo"; private ApplicationInfo applicationInfo; @@ -37,12 +49,13 @@ public class PaymentReversalRequest { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public PaymentReversalRequest() {} + public PaymentReversalRequest() { + } /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo * @return the current {@code PaymentReversalRequest} instance, allowing for method chaining */ public PaymentReversalRequest applicationInfo(ApplicationInfo applicationInfo) { @@ -52,8 +65,7 @@ public PaymentReversalRequest applicationInfo(ApplicationInfo applicationInfo) { /** * Get applicationInfo - * - * @return applicationInfo + * @return applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,7 +76,7 @@ public ApplicationInfo getApplicationInfo() { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,7 +87,7 @@ public void setApplicationInfo(ApplicationInfo applicationInfo) { /** * enhancedSchemeData * - * @param enhancedSchemeData + * @param enhancedSchemeData * @return the current {@code PaymentReversalRequest} instance, allowing for method chaining */ public PaymentReversalRequest enhancedSchemeData(EnhancedSchemeData enhancedSchemeData) { @@ -85,8 +97,7 @@ public PaymentReversalRequest enhancedSchemeData(EnhancedSchemeData enhancedSche /** * Get enhancedSchemeData - * - * @return enhancedSchemeData + * @return enhancedSchemeData */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,7 +108,7 @@ public EnhancedSchemeData getEnhancedSchemeData() { /** * enhancedSchemeData * - * @param enhancedSchemeData + * @param enhancedSchemeData */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,7 +129,6 @@ public PaymentReversalRequest merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. - * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -151,7 +161,6 @@ public PaymentReversalRequest reference(String reference) { /** * Your reference for the reversal request. Maximum length: 80 characters. - * * @return reference Your reference for the reversal request. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -171,7 +180,9 @@ public void setReference(String reference) { this.reference = reference; } - /** Return true if this PaymentReversalRequest object is equal to o. */ + /** + * Return true if this PaymentReversalRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -181,10 +192,10 @@ public boolean equals(Object o) { return false; } PaymentReversalRequest paymentReversalRequest = (PaymentReversalRequest) o; - return Objects.equals(this.applicationInfo, paymentReversalRequest.applicationInfo) - && Objects.equals(this.enhancedSchemeData, paymentReversalRequest.enhancedSchemeData) - && Objects.equals(this.merchantAccount, paymentReversalRequest.merchantAccount) - && Objects.equals(this.reference, paymentReversalRequest.reference); + return Objects.equals(this.applicationInfo, paymentReversalRequest.applicationInfo) && + Objects.equals(this.enhancedSchemeData, paymentReversalRequest.enhancedSchemeData) && + Objects.equals(this.merchantAccount, paymentReversalRequest.merchantAccount) && + Objects.equals(this.reference, paymentReversalRequest.reference); } @Override @@ -205,7 +216,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -214,23 +226,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentReversalRequest given an JSON string * * @param jsonString JSON string * @return An instance of PaymentReversalRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentReversalRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentReversalRequest */ public static PaymentReversalRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentReversalRequest.class); } - - /** - * Convert an instance of PaymentReversalRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentReversalRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentReversalResponse.java b/src/main/java/com/adyen/model/checkout/PaymentReversalResponse.java index 7fd0b3f2f..b443fa507 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentReversalResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentReversalResponse.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** PaymentReversalResponse */ + +/** + * PaymentReversalResponse + */ @JsonPropertyOrder({ PaymentReversalResponse.JSON_PROPERTY_MERCHANT_ACCOUNT, PaymentReversalResponse.JSON_PROPERTY_PAYMENT_PSP_REFERENCE, @@ -29,6 +34,7 @@ PaymentReversalResponse.JSON_PROPERTY_REFERENCE, PaymentReversalResponse.JSON_PROPERTY_STATUS }) + public class PaymentReversalResponse { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; @@ -42,8 +48,11 @@ public class PaymentReversalResponse { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - /** The status of your request. This will always have the value **received**. */ + /** + * The status of your request. This will always have the value **received**. + */ public enum StatusEnum { + RECEIVED(String.valueOf("received")); private static final Logger LOG = Logger.getLogger(StatusEnum.class.getName()); @@ -51,7 +60,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -72,11 +81,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -84,7 +89,8 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; - public PaymentReversalResponse() {} + public PaymentReversalResponse() { + } /** * The merchant account that is used to process the payment. @@ -99,7 +105,6 @@ public PaymentReversalResponse merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. - * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -120,13 +125,9 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment to reverse. + * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to reverse. * - * @param paymentPspReference The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment to reverse. + * @param paymentPspReference The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to reverse. * @return the current {@code PaymentReversalResponse} instance, allowing for method chaining */ public PaymentReversalResponse paymentPspReference(String paymentPspReference) { @@ -135,13 +136,8 @@ public PaymentReversalResponse paymentPspReference(String paymentPspReference) { } /** - * The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment to reverse. - * - * @return paymentPspReference The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment to reverse. + * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to reverse. + * @return paymentPspReference The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to reverse. */ @JsonProperty(JSON_PROPERTY_PAYMENT_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,13 +146,9 @@ public String getPaymentPspReference() { } /** - * The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment to reverse. + * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to reverse. * - * @param paymentPspReference The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment to reverse. + * @param paymentPspReference The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to reverse. */ @JsonProperty(JSON_PROPERTY_PAYMENT_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,7 +169,6 @@ public PaymentReversalResponse pspReference(String pspReference) { /** * Adyen's 16-character reference associated with the reversal request. - * * @return pspReference Adyen's 16-character reference associated with the reversal request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -210,7 +201,6 @@ public PaymentReversalResponse reference(String reference) { /** * Your reference for the reversal request. - * * @return reference Your reference for the reversal request. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -243,7 +233,6 @@ public PaymentReversalResponse status(StatusEnum status) { /** * The status of your request. This will always have the value **received**. - * * @return status The status of your request. This will always have the value **received**. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -263,7 +252,9 @@ public void setStatus(StatusEnum status) { this.status = status; } - /** Return true if this PaymentReversalResponse object is equal to o. */ + /** + * Return true if this PaymentReversalResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -273,11 +264,11 @@ public boolean equals(Object o) { return false; } PaymentReversalResponse paymentReversalResponse = (PaymentReversalResponse) o; - return Objects.equals(this.merchantAccount, paymentReversalResponse.merchantAccount) - && Objects.equals(this.paymentPspReference, paymentReversalResponse.paymentPspReference) - && Objects.equals(this.pspReference, paymentReversalResponse.pspReference) - && Objects.equals(this.reference, paymentReversalResponse.reference) - && Objects.equals(this.status, paymentReversalResponse.status); + return Objects.equals(this.merchantAccount, paymentReversalResponse.merchantAccount) && + Objects.equals(this.paymentPspReference, paymentReversalResponse.paymentPspReference) && + Objects.equals(this.pspReference, paymentReversalResponse.pspReference) && + Objects.equals(this.reference, paymentReversalResponse.reference) && + Objects.equals(this.status, paymentReversalResponse.status); } @Override @@ -290,9 +281,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentReversalResponse {\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" paymentPspReference: ") - .append(toIndentedString(paymentPspReference)) - .append("\n"); + sb.append(" paymentPspReference: ").append(toIndentedString(paymentPspReference)).append("\n"); sb.append(" pspReference: ").append(toIndentedString(pspReference)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); @@ -301,7 +290,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -310,23 +300,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentReversalResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaymentReversalResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentReversalResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentReversalResponse */ public static PaymentReversalResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentReversalResponse.class); } - - /** - * Convert an instance of PaymentReversalResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentReversalResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaypalUpdateOrderRequest.java b/src/main/java/com/adyen/model/checkout/PaypalUpdateOrderRequest.java index c3acb76c5..cb9103edb 100644 --- a/src/main/java/com/adyen/model/checkout/PaypalUpdateOrderRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaypalUpdateOrderRequest.java @@ -2,24 +2,36 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Amount; +import com.adyen.model.checkout.DeliveryMethod; +import com.adyen.model.checkout.TaxTotal; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PaypalUpdateOrderRequest */ +/** + * PaypalUpdateOrderRequest + */ @JsonPropertyOrder({ PaypalUpdateOrderRequest.JSON_PROPERTY_AMOUNT, PaypalUpdateOrderRequest.JSON_PROPERTY_DELIVERY_METHODS, @@ -28,6 +40,7 @@ PaypalUpdateOrderRequest.JSON_PROPERTY_SESSION_ID, PaypalUpdateOrderRequest.JSON_PROPERTY_TAX_TOTAL }) + public class PaypalUpdateOrderRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -47,12 +60,13 @@ public class PaypalUpdateOrderRequest { public static final String JSON_PROPERTY_TAX_TOTAL = "taxTotal"; private TaxTotal taxTotal; - public PaypalUpdateOrderRequest() {} + public PaypalUpdateOrderRequest() { + } /** * amount * - * @param amount + * @param amount * @return the current {@code PaypalUpdateOrderRequest} instance, allowing for method chaining */ public PaypalUpdateOrderRequest amount(Amount amount) { @@ -62,8 +76,7 @@ public PaypalUpdateOrderRequest amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -74,7 +87,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -103,7 +116,6 @@ public PaypalUpdateOrderRequest addDeliveryMethodsItem(DeliveryMethod deliveryMe /** * The list of new delivery methods and the cost of each. - * * @return deliveryMethods The list of new delivery methods and the cost of each. */ @JsonProperty(JSON_PROPERTY_DELIVERY_METHODS) @@ -124,11 +136,9 @@ public void setDeliveryMethods(List deliveryMethods) { } /** - * The `paymentData` from the client side. This value changes every time you make a - * `/paypal/updateOrder` request. + * The `paymentData` from the client side. This value changes every time you make a `/paypal/updateOrder` request. * - * @param paymentData The `paymentData` from the client side. This value changes every - * time you make a `/paypal/updateOrder` request. + * @param paymentData The `paymentData` from the client side. This value changes every time you make a `/paypal/updateOrder` request. * @return the current {@code PaypalUpdateOrderRequest} instance, allowing for method chaining */ public PaypalUpdateOrderRequest paymentData(String paymentData) { @@ -137,11 +147,8 @@ public PaypalUpdateOrderRequest paymentData(String paymentData) { } /** - * The `paymentData` from the client side. This value changes every time you make a - * `/paypal/updateOrder` request. - * - * @return paymentData The `paymentData` from the client side. This value changes every - * time you make a `/paypal/updateOrder` request. + * The `paymentData` from the client side. This value changes every time you make a `/paypal/updateOrder` request. + * @return paymentData The `paymentData` from the client side. This value changes every time you make a `/paypal/updateOrder` request. */ @JsonProperty(JSON_PROPERTY_PAYMENT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,11 +157,9 @@ public String getPaymentData() { } /** - * The `paymentData` from the client side. This value changes every time you make a - * `/paypal/updateOrder` request. + * The `paymentData` from the client side. This value changes every time you make a `/paypal/updateOrder` request. * - * @param paymentData The `paymentData` from the client side. This value changes every - * time you make a `/paypal/updateOrder` request. + * @param paymentData The `paymentData` from the client side. This value changes every time you make a `/paypal/updateOrder` request. */ @JsonProperty(JSON_PROPERTY_PAYMENT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -165,8 +170,7 @@ public void setPaymentData(String paymentData) { /** * The original `pspReference` from the `/payments` response. * - * @param pspReference The original `pspReference` from the `/payments` - * response. + * @param pspReference The original `pspReference` from the `/payments` response. * @return the current {@code PaypalUpdateOrderRequest} instance, allowing for method chaining */ public PaypalUpdateOrderRequest pspReference(String pspReference) { @@ -176,9 +180,7 @@ public PaypalUpdateOrderRequest pspReference(String pspReference) { /** * The original `pspReference` from the `/payments` response. - * - * @return pspReference The original `pspReference` from the `/payments` - * response. + * @return pspReference The original `pspReference` from the `/payments` response. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,8 +191,7 @@ public String getPspReference() { /** * The original `pspReference` from the `/payments` response. * - * @param pspReference The original `pspReference` from the `/payments` - * response. + * @param pspReference The original `pspReference` from the `/payments` response. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,7 +212,6 @@ public PaypalUpdateOrderRequest sessionId(String sessionId) { /** * The original `sessionId` from the `/sessions` response. - * * @return sessionId The original `sessionId` from the `/sessions` response. */ @JsonProperty(JSON_PROPERTY_SESSION_ID) @@ -234,7 +234,7 @@ public void setSessionId(String sessionId) { /** * taxTotal * - * @param taxTotal + * @param taxTotal * @return the current {@code PaypalUpdateOrderRequest} instance, allowing for method chaining */ public PaypalUpdateOrderRequest taxTotal(TaxTotal taxTotal) { @@ -244,8 +244,7 @@ public PaypalUpdateOrderRequest taxTotal(TaxTotal taxTotal) { /** * Get taxTotal - * - * @return taxTotal + * @return taxTotal */ @JsonProperty(JSON_PROPERTY_TAX_TOTAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -256,7 +255,7 @@ public TaxTotal getTaxTotal() { /** * taxTotal * - * @param taxTotal + * @param taxTotal */ @JsonProperty(JSON_PROPERTY_TAX_TOTAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -264,7 +263,9 @@ public void setTaxTotal(TaxTotal taxTotal) { this.taxTotal = taxTotal; } - /** Return true if this PaypalUpdateOrderRequest object is equal to o. */ + /** + * Return true if this PaypalUpdateOrderRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -274,12 +275,12 @@ public boolean equals(Object o) { return false; } PaypalUpdateOrderRequest paypalUpdateOrderRequest = (PaypalUpdateOrderRequest) o; - return Objects.equals(this.amount, paypalUpdateOrderRequest.amount) - && Objects.equals(this.deliveryMethods, paypalUpdateOrderRequest.deliveryMethods) - && Objects.equals(this.paymentData, paypalUpdateOrderRequest.paymentData) - && Objects.equals(this.pspReference, paypalUpdateOrderRequest.pspReference) - && Objects.equals(this.sessionId, paypalUpdateOrderRequest.sessionId) - && Objects.equals(this.taxTotal, paypalUpdateOrderRequest.taxTotal); + return Objects.equals(this.amount, paypalUpdateOrderRequest.amount) && + Objects.equals(this.deliveryMethods, paypalUpdateOrderRequest.deliveryMethods) && + Objects.equals(this.paymentData, paypalUpdateOrderRequest.paymentData) && + Objects.equals(this.pspReference, paypalUpdateOrderRequest.pspReference) && + Objects.equals(this.sessionId, paypalUpdateOrderRequest.sessionId) && + Objects.equals(this.taxTotal, paypalUpdateOrderRequest.taxTotal); } @Override @@ -302,7 +303,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -311,24 +313,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaypalUpdateOrderRequest given an JSON string * * @param jsonString JSON string * @return An instance of PaypalUpdateOrderRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaypalUpdateOrderRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to PaypalUpdateOrderRequest */ - public static PaypalUpdateOrderRequest fromJson(String jsonString) - throws JsonProcessingException { + public static PaypalUpdateOrderRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaypalUpdateOrderRequest.class); } - - /** - * Convert an instance of PaypalUpdateOrderRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaypalUpdateOrderRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaypalUpdateOrderResponse.java b/src/main/java/com/adyen/model/checkout/PaypalUpdateOrderResponse.java index e12df3805..5f3d0ed91 100644 --- a/src/main/java/com/adyen/model/checkout/PaypalUpdateOrderResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaypalUpdateOrderResponse.java @@ -2,39 +2,45 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PaypalUpdateOrderResponse */ +/** + * PaypalUpdateOrderResponse + */ @JsonPropertyOrder({ PaypalUpdateOrderResponse.JSON_PROPERTY_PAYMENT_DATA, PaypalUpdateOrderResponse.JSON_PROPERTY_STATUS }) + public class PaypalUpdateOrderResponse { public static final String JSON_PROPERTY_PAYMENT_DATA = "paymentData"; private String paymentData; /** - * The status of the request. This indicates whether the order was successfully updated with - * PayPal. + * The status of the request. This indicates whether the order was successfully updated with PayPal. */ public enum StatusEnum { + ERROR(String.valueOf("error")), SUCCESS(String.valueOf("success")); @@ -44,7 +50,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -65,11 +71,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -77,7 +79,8 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; - public PaypalUpdateOrderResponse() {} + public PaypalUpdateOrderResponse() { + } /** * The updated paymentData. @@ -92,7 +95,6 @@ public PaypalUpdateOrderResponse paymentData(String paymentData) { /** * The updated paymentData. - * * @return paymentData The updated paymentData. */ @JsonProperty(JSON_PROPERTY_PAYMENT_DATA) @@ -113,11 +115,9 @@ public void setPaymentData(String paymentData) { } /** - * The status of the request. This indicates whether the order was successfully updated with - * PayPal. + * The status of the request. This indicates whether the order was successfully updated with PayPal. * - * @param status The status of the request. This indicates whether the order was successfully - * updated with PayPal. + * @param status The status of the request. This indicates whether the order was successfully updated with PayPal. * @return the current {@code PaypalUpdateOrderResponse} instance, allowing for method chaining */ public PaypalUpdateOrderResponse status(StatusEnum status) { @@ -126,11 +126,8 @@ public PaypalUpdateOrderResponse status(StatusEnum status) { } /** - * The status of the request. This indicates whether the order was successfully updated with - * PayPal. - * - * @return status The status of the request. This indicates whether the order was successfully - * updated with PayPal. + * The status of the request. This indicates whether the order was successfully updated with PayPal. + * @return status The status of the request. This indicates whether the order was successfully updated with PayPal. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,11 +136,9 @@ public StatusEnum getStatus() { } /** - * The status of the request. This indicates whether the order was successfully updated with - * PayPal. + * The status of the request. This indicates whether the order was successfully updated with PayPal. * - * @param status The status of the request. This indicates whether the order was successfully - * updated with PayPal. + * @param status The status of the request. This indicates whether the order was successfully updated with PayPal. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,7 +146,9 @@ public void setStatus(StatusEnum status) { this.status = status; } - /** Return true if this PaypalUpdateOrderResponse object is equal to o. */ + /** + * Return true if this PaypalUpdateOrderResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -161,8 +158,8 @@ public boolean equals(Object o) { return false; } PaypalUpdateOrderResponse paypalUpdateOrderResponse = (PaypalUpdateOrderResponse) o; - return Objects.equals(this.paymentData, paypalUpdateOrderResponse.paymentData) - && Objects.equals(this.status, paypalUpdateOrderResponse.status); + return Objects.equals(this.paymentData, paypalUpdateOrderResponse.paymentData) && + Objects.equals(this.status, paypalUpdateOrderResponse.status); } @Override @@ -181,7 +178,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -190,24 +188,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaypalUpdateOrderResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaypalUpdateOrderResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaypalUpdateOrderResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to PaypalUpdateOrderResponse */ - public static PaypalUpdateOrderResponse fromJson(String jsonString) - throws JsonProcessingException { + public static PaypalUpdateOrderResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaypalUpdateOrderResponse.class); } - - /** - * Convert an instance of PaypalUpdateOrderResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaypalUpdateOrderResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Phone.java b/src/main/java/com/adyen/model/checkout/Phone.java index 2315e4ae3..01cda5b0a 100644 --- a/src/main/java/com/adyen/model/checkout/Phone.java +++ b/src/main/java/com/adyen/model/checkout/Phone.java @@ -2,23 +2,36 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Phone */ -@JsonPropertyOrder({Phone.JSON_PROPERTY_CC, Phone.JSON_PROPERTY_SUBSCRIBER}) + +/** + * Phone + */ +@JsonPropertyOrder({ + Phone.JSON_PROPERTY_CC, + Phone.JSON_PROPERTY_SUBSCRIBER +}) + public class Phone { public static final String JSON_PROPERTY_CC = "cc"; private String cc; @@ -26,7 +39,8 @@ public class Phone { public static final String JSON_PROPERTY_SUBSCRIBER = "subscriber"; private String subscriber; - public Phone() {} + public Phone() { + } /** * Country code. Length: 1–3 digits. @@ -41,7 +55,6 @@ public Phone cc(String cc) { /** * Country code. Length: 1–3 digits. - * * @return cc Country code. Length: 1–3 digits. */ @JsonProperty(JSON_PROPERTY_CC) @@ -62,9 +75,9 @@ public void setCc(String cc) { } /** - * Subscriber number. Length: 4-15 digits. + * Subscriber number. Length: 4-15 digits. * - * @param subscriber Subscriber number. Length: 4-15 digits. + * @param subscriber Subscriber number. Length: 4-15 digits. * @return the current {@code Phone} instance, allowing for method chaining */ public Phone subscriber(String subscriber) { @@ -73,9 +86,8 @@ public Phone subscriber(String subscriber) { } /** - * Subscriber number. Length: 4-15 digits. - * - * @return subscriber Subscriber number. Length: 4-15 digits. + * Subscriber number. Length: 4-15 digits. + * @return subscriber Subscriber number. Length: 4-15 digits. */ @JsonProperty(JSON_PROPERTY_SUBSCRIBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -84,9 +96,9 @@ public String getSubscriber() { } /** - * Subscriber number. Length: 4-15 digits. + * Subscriber number. Length: 4-15 digits. * - * @param subscriber Subscriber number. Length: 4-15 digits. + * @param subscriber Subscriber number. Length: 4-15 digits. */ @JsonProperty(JSON_PROPERTY_SUBSCRIBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,7 +106,9 @@ public void setSubscriber(String subscriber) { this.subscriber = subscriber; } - /** Return true if this Phone object is equal to o. */ + /** + * Return true if this Phone object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -104,7 +118,8 @@ public boolean equals(Object o) { return false; } Phone phone = (Phone) o; - return Objects.equals(this.cc, phone.cc) && Objects.equals(this.subscriber, phone.subscriber); + return Objects.equals(this.cc, phone.cc) && + Objects.equals(this.subscriber, phone.subscriber); } @Override @@ -123,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -132,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Phone given an JSON string * * @param jsonString JSON string @@ -142,12 +158,11 @@ private String toIndentedString(Object o) { public static Phone fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Phone.class); } - - /** - * Convert an instance of Phone to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Phone to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PixDetails.java b/src/main/java/com/adyen/model/checkout/PixDetails.java index af4e13448..dc91199cb 100644 --- a/src/main/java/com/adyen/model/checkout/PixDetails.java +++ b/src/main/java/com/adyen/model/checkout/PixDetails.java @@ -2,26 +2,32 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.PixRecurring; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PixDetails */ +/** + * PixDetails + */ @JsonPropertyOrder({ PixDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, PixDetails.JSON_PROPERTY_PIX_RECURRING, @@ -29,6 +35,7 @@ PixDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, PixDetails.JSON_PROPERTY_TYPE }) + public class PixDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -43,8 +50,11 @@ public class PixDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** The payment method type. */ + /** + * The payment method type. + */ public enum TypeEnum { + PIX(String.valueOf("pix")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +62,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,11 +83,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -85,7 +91,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PixDetails() {} + public PixDetails() { + } /** * The checkout attempt identifier. @@ -100,7 +107,6 @@ public PixDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -123,7 +129,7 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { /** * pixRecurring * - * @param pixRecurring + * @param pixRecurring * @return the current {@code PixDetails} instance, allowing for method chaining */ public PixDetails pixRecurring(PixRecurring pixRecurring) { @@ -133,8 +139,7 @@ public PixDetails pixRecurring(PixRecurring pixRecurring) { /** * Get pixRecurring - * - * @return pixRecurring + * @return pixRecurring */ @JsonProperty(JSON_PROPERTY_PIX_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,7 +150,7 @@ public PixRecurring getPixRecurring() { /** * pixRecurring * - * @param pixRecurring + * @param pixRecurring */ @JsonProperty(JSON_PROPERTY_PIX_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -154,13 +159,13 @@ public void setPixRecurring(PixRecurring pixRecurring) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code PixDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public PixDetails recurringDetailReference(String recurringDetailReference) { @@ -169,11 +174,8 @@ public PixDetails recurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -184,12 +186,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -199,11 +201,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code PixDetails} instance, allowing for method chaining */ public PixDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -212,11 +212,8 @@ public PixDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -225,11 +222,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,7 +245,6 @@ public PixDetails type(TypeEnum type) { /** * The payment method type. - * * @return type The payment method type. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -270,7 +264,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this PixDetails object is equal to o. */ + /** + * Return true if this PixDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -280,17 +276,16 @@ public boolean equals(Object o) { return false; } PixDetails pixDetails = (PixDetails) o; - return Objects.equals(this.checkoutAttemptId, pixDetails.checkoutAttemptId) - && Objects.equals(this.pixRecurring, pixDetails.pixRecurring) - && Objects.equals(this.recurringDetailReference, pixDetails.recurringDetailReference) - && Objects.equals(this.storedPaymentMethodId, pixDetails.storedPaymentMethodId) - && Objects.equals(this.type, pixDetails.type); + return Objects.equals(this.checkoutAttemptId, pixDetails.checkoutAttemptId) && + Objects.equals(this.pixRecurring, pixDetails.pixRecurring) && + Objects.equals(this.recurringDetailReference, pixDetails.recurringDetailReference) && + Objects.equals(this.storedPaymentMethodId, pixDetails.storedPaymentMethodId) && + Objects.equals(this.type, pixDetails.type); } @Override public int hashCode() { - return Objects.hash( - checkoutAttemptId, pixRecurring, recurringDetailReference, storedPaymentMethodId, type); + return Objects.hash(checkoutAttemptId, pixRecurring, recurringDetailReference, storedPaymentMethodId, type); } @Override @@ -299,19 +294,16 @@ public String toString() { sb.append("class PixDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" pixRecurring: ").append(toIndentedString(pixRecurring)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -320,7 +312,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PixDetails given an JSON string * * @param jsonString JSON string @@ -330,12 +322,11 @@ private String toIndentedString(Object o) { public static PixDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PixDetails.class); } - - /** - * Convert an instance of PixDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PixDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PixRecurring.java b/src/main/java/com/adyen/model/checkout/PixRecurring.java index 2c146d69e..4164194cb 100644 --- a/src/main/java/com/adyen/model/checkout/PixRecurring.java +++ b/src/main/java/com/adyen/model/checkout/PixRecurring.java @@ -2,26 +2,32 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PixRecurring */ +/** + * PixRecurring + */ @JsonPropertyOrder({ PixRecurring.JSON_PROPERTY_BILLING_DATE, PixRecurring.JSON_PROPERTY_BUSINESS_DAY_ONLY, @@ -34,6 +40,7 @@ PixRecurring.JSON_PROPERTY_RETRY_POLICY, PixRecurring.JSON_PROPERTY_STARTS_AT }) + public class PixRecurring { public static final String JSON_PROPERTY_BILLING_DATE = "billingDate"; private String billingDate; @@ -44,8 +51,11 @@ public class PixRecurring { public static final String JSON_PROPERTY_ENDS_AT = "endsAt"; private String endsAt; - /** The frequency at which the shopper will be charged. */ + /** + * The frequency at which the shopper will be charged. + */ public enum FrequencyEnum { + WEEKLY(String.valueOf("weekly")), MONTHLY(String.valueOf("monthly")), @@ -61,7 +71,7 @@ public enum FrequencyEnum { private String value; FrequencyEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -82,11 +92,7 @@ public static FrequencyEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FrequencyEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FrequencyEnum.values())); + LOG.warning("FrequencyEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FrequencyEnum.values())); return null; } } @@ -112,13 +118,13 @@ public static FrequencyEnum fromValue(String value) { public static final String JSON_PROPERTY_STARTS_AT = "startsAt"; private String startsAt; - public PixRecurring() {} + public PixRecurring() { + } /** * The date on which the shopper's payment method will be charged, in YYYY-MM-DD format. * - * @param billingDate The date on which the shopper's payment method will be charged, in - * YYYY-MM-DD format. + * @param billingDate The date on which the shopper's payment method will be charged, in YYYY-MM-DD format. * @return the current {@code PixRecurring} instance, allowing for method chaining */ public PixRecurring billingDate(String billingDate) { @@ -128,9 +134,7 @@ public PixRecurring billingDate(String billingDate) { /** * The date on which the shopper's payment method will be charged, in YYYY-MM-DD format. - * - * @return billingDate The date on which the shopper's payment method will be charged, in - * YYYY-MM-DD format. + * @return billingDate The date on which the shopper's payment method will be charged, in YYYY-MM-DD format. */ @JsonProperty(JSON_PROPERTY_BILLING_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -141,8 +145,7 @@ public String getBillingDate() { /** * The date on which the shopper's payment method will be charged, in YYYY-MM-DD format. * - * @param billingDate The date on which the shopper's payment method will be charged, in - * YYYY-MM-DD format. + * @param billingDate The date on which the shopper's payment method will be charged, in YYYY-MM-DD format. */ @JsonProperty(JSON_PROPERTY_BILLING_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,9 +166,7 @@ public PixRecurring businessDayOnly(Boolean businessDayOnly) { /** * Flag used to define whether liquidation can happen only on business days - * - * @return businessDayOnly Flag used to define whether liquidation can happen only on business - * days + * @return businessDayOnly Flag used to define whether liquidation can happen only on business days */ @JsonProperty(JSON_PROPERTY_BUSINESS_DAY_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,13 +186,9 @@ public void setBusinessDayOnly(Boolean businessDayOnly) { } /** - * End date of the billing plan, in YYYY-MM-DD format. The end date must align with the frequency - * and the start date of the billing plan. If left blank, the subscription will continue - * indefinitely unless it is cancelled by the shopper. + * End date of the billing plan, in YYYY-MM-DD format. The end date must align with the frequency and the start date of the billing plan. If left blank, the subscription will continue indefinitely unless it is cancelled by the shopper. * - * @param endsAt End date of the billing plan, in YYYY-MM-DD format. The end date must align with - * the frequency and the start date of the billing plan. If left blank, the subscription will - * continue indefinitely unless it is cancelled by the shopper. + * @param endsAt End date of the billing plan, in YYYY-MM-DD format. The end date must align with the frequency and the start date of the billing plan. If left blank, the subscription will continue indefinitely unless it is cancelled by the shopper. * @return the current {@code PixRecurring} instance, allowing for method chaining */ public PixRecurring endsAt(String endsAt) { @@ -200,13 +197,8 @@ public PixRecurring endsAt(String endsAt) { } /** - * End date of the billing plan, in YYYY-MM-DD format. The end date must align with the frequency - * and the start date of the billing plan. If left blank, the subscription will continue - * indefinitely unless it is cancelled by the shopper. - * - * @return endsAt End date of the billing plan, in YYYY-MM-DD format. The end date must align with - * the frequency and the start date of the billing plan. If left blank, the subscription will - * continue indefinitely unless it is cancelled by the shopper. + * End date of the billing plan, in YYYY-MM-DD format. The end date must align with the frequency and the start date of the billing plan. If left blank, the subscription will continue indefinitely unless it is cancelled by the shopper. + * @return endsAt End date of the billing plan, in YYYY-MM-DD format. The end date must align with the frequency and the start date of the billing plan. If left blank, the subscription will continue indefinitely unless it is cancelled by the shopper. */ @JsonProperty(JSON_PROPERTY_ENDS_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -215,13 +207,9 @@ public String getEndsAt() { } /** - * End date of the billing plan, in YYYY-MM-DD format. The end date must align with the frequency - * and the start date of the billing plan. If left blank, the subscription will continue - * indefinitely unless it is cancelled by the shopper. + * End date of the billing plan, in YYYY-MM-DD format. The end date must align with the frequency and the start date of the billing plan. If left blank, the subscription will continue indefinitely unless it is cancelled by the shopper. * - * @param endsAt End date of the billing plan, in YYYY-MM-DD format. The end date must align with - * the frequency and the start date of the billing plan. If left blank, the subscription will - * continue indefinitely unless it is cancelled by the shopper. + * @param endsAt End date of the billing plan, in YYYY-MM-DD format. The end date must align with the frequency and the start date of the billing plan. If left blank, the subscription will continue indefinitely unless it is cancelled by the shopper. */ @JsonProperty(JSON_PROPERTY_ENDS_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,7 +230,6 @@ public PixRecurring frequency(FrequencyEnum frequency) { /** * The frequency at which the shopper will be charged. - * * @return frequency The frequency at which the shopper will be charged. */ @JsonProperty(JSON_PROPERTY_FREQUENCY) @@ -265,7 +252,7 @@ public void setFrequency(FrequencyEnum frequency) { /** * minAmount * - * @param minAmount + * @param minAmount * @return the current {@code PixRecurring} instance, allowing for method chaining */ public PixRecurring minAmount(Amount minAmount) { @@ -275,8 +262,7 @@ public PixRecurring minAmount(Amount minAmount) { /** * Get minAmount - * - * @return minAmount + * @return minAmount */ @JsonProperty(JSON_PROPERTY_MIN_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -287,7 +273,7 @@ public Amount getMinAmount() { /** * minAmount * - * @param minAmount + * @param minAmount */ @JsonProperty(JSON_PROPERTY_MIN_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -296,11 +282,9 @@ public void setMinAmount(Amount minAmount) { } /** - * The pspReference for the failed recurring payment. Find this in AUTHORISATION webhook you - * received after the billing date. + * The pspReference for the failed recurring payment. Find this in AUTHORISATION webhook you received after the billing date. * - * @param originalPspReference The pspReference for the failed recurring payment. Find this in - * AUTHORISATION webhook you received after the billing date. + * @param originalPspReference The pspReference for the failed recurring payment. Find this in AUTHORISATION webhook you received after the billing date. * @return the current {@code PixRecurring} instance, allowing for method chaining */ public PixRecurring originalPspReference(String originalPspReference) { @@ -309,11 +293,8 @@ public PixRecurring originalPspReference(String originalPspReference) { } /** - * The pspReference for the failed recurring payment. Find this in AUTHORISATION webhook you - * received after the billing date. - * - * @return originalPspReference The pspReference for the failed recurring payment. Find this in - * AUTHORISATION webhook you received after the billing date. + * The pspReference for the failed recurring payment. Find this in AUTHORISATION webhook you received after the billing date. + * @return originalPspReference The pspReference for the failed recurring payment. Find this in AUTHORISATION webhook you received after the billing date. */ @JsonProperty(JSON_PROPERTY_ORIGINAL_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -322,11 +303,9 @@ public String getOriginalPspReference() { } /** - * The pspReference for the failed recurring payment. Find this in AUTHORISATION webhook you - * received after the billing date. + * The pspReference for the failed recurring payment. Find this in AUTHORISATION webhook you received after the billing date. * - * @param originalPspReference The pspReference for the failed recurring payment. Find this in - * AUTHORISATION webhook you received after the billing date. + * @param originalPspReference The pspReference for the failed recurring payment. Find this in AUTHORISATION webhook you received after the billing date. */ @JsonProperty(JSON_PROPERTY_ORIGINAL_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -337,7 +316,7 @@ public void setOriginalPspReference(String originalPspReference) { /** * recurringAmount * - * @param recurringAmount + * @param recurringAmount * @return the current {@code PixRecurring} instance, allowing for method chaining */ public PixRecurring recurringAmount(Amount recurringAmount) { @@ -347,8 +326,7 @@ public PixRecurring recurringAmount(Amount recurringAmount) { /** * Get recurringAmount - * - * @return recurringAmount + * @return recurringAmount */ @JsonProperty(JSON_PROPERTY_RECURRING_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -359,7 +337,7 @@ public Amount getRecurringAmount() { /** * recurringAmount * - * @param recurringAmount + * @param recurringAmount */ @JsonProperty(JSON_PROPERTY_RECURRING_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -368,13 +346,9 @@ public void setRecurringAmount(Amount recurringAmount) { } /** - * The text that that will be shown on the shopper's bank statement for the recurring - * payments. We recommend to add a descriptive text about the subscription to let your shoppers - * recognize your recurring payments. Maximum length: 35 characters. + * The text that that will be shown on the shopper's bank statement for the recurring payments. We recommend to add a descriptive text about the subscription to let your shoppers recognize your recurring payments. Maximum length: 35 characters. * - * @param recurringStatement The text that that will be shown on the shopper's bank statement - * for the recurring payments. We recommend to add a descriptive text about the subscription - * to let your shoppers recognize your recurring payments. Maximum length: 35 characters. + * @param recurringStatement The text that that will be shown on the shopper's bank statement for the recurring payments. We recommend to add a descriptive text about the subscription to let your shoppers recognize your recurring payments. Maximum length: 35 characters. * @return the current {@code PixRecurring} instance, allowing for method chaining */ public PixRecurring recurringStatement(String recurringStatement) { @@ -383,13 +357,8 @@ public PixRecurring recurringStatement(String recurringStatement) { } /** - * The text that that will be shown on the shopper's bank statement for the recurring - * payments. We recommend to add a descriptive text about the subscription to let your shoppers - * recognize your recurring payments. Maximum length: 35 characters. - * - * @return recurringStatement The text that that will be shown on the shopper's bank statement - * for the recurring payments. We recommend to add a descriptive text about the subscription - * to let your shoppers recognize your recurring payments. Maximum length: 35 characters. + * The text that that will be shown on the shopper's bank statement for the recurring payments. We recommend to add a descriptive text about the subscription to let your shoppers recognize your recurring payments. Maximum length: 35 characters. + * @return recurringStatement The text that that will be shown on the shopper's bank statement for the recurring payments. We recommend to add a descriptive text about the subscription to let your shoppers recognize your recurring payments. Maximum length: 35 characters. */ @JsonProperty(JSON_PROPERTY_RECURRING_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -398,13 +367,9 @@ public String getRecurringStatement() { } /** - * The text that that will be shown on the shopper's bank statement for the recurring - * payments. We recommend to add a descriptive text about the subscription to let your shoppers - * recognize your recurring payments. Maximum length: 35 characters. + * The text that that will be shown on the shopper's bank statement for the recurring payments. We recommend to add a descriptive text about the subscription to let your shoppers recognize your recurring payments. Maximum length: 35 characters. * - * @param recurringStatement The text that that will be shown on the shopper's bank statement - * for the recurring payments. We recommend to add a descriptive text about the subscription - * to let your shoppers recognize your recurring payments. Maximum length: 35 characters. + * @param recurringStatement The text that that will be shown on the shopper's bank statement for the recurring payments. We recommend to add a descriptive text about the subscription to let your shoppers recognize your recurring payments. Maximum length: 35 characters. */ @JsonProperty(JSON_PROPERTY_RECURRING_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -415,8 +380,7 @@ public void setRecurringStatement(String recurringStatement) { /** * When set to true, you can retry for failed recurring payments. The default value is true. * - * @param retryPolicy When set to true, you can retry for failed recurring payments. The default - * value is true. + * @param retryPolicy When set to true, you can retry for failed recurring payments. The default value is true. * @return the current {@code PixRecurring} instance, allowing for method chaining */ public PixRecurring retryPolicy(Boolean retryPolicy) { @@ -426,9 +390,7 @@ public PixRecurring retryPolicy(Boolean retryPolicy) { /** * When set to true, you can retry for failed recurring payments. The default value is true. - * - * @return retryPolicy When set to true, you can retry for failed recurring payments. The default - * value is true. + * @return retryPolicy When set to true, you can retry for failed recurring payments. The default value is true. */ @JsonProperty(JSON_PROPERTY_RETRY_POLICY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -439,8 +401,7 @@ public Boolean getRetryPolicy() { /** * When set to true, you can retry for failed recurring payments. The default value is true. * - * @param retryPolicy When set to true, you can retry for failed recurring payments. The default - * value is true. + * @param retryPolicy When set to true, you can retry for failed recurring payments. The default value is true. */ @JsonProperty(JSON_PROPERTY_RETRY_POLICY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -449,11 +410,9 @@ public void setRetryPolicy(Boolean retryPolicy) { } /** - * Start date of the billing plan, in YYYY-MM-DD format. The default value is the transaction - * date. + * Start date of the billing plan, in YYYY-MM-DD format. The default value is the transaction date. * - * @param startsAt Start date of the billing plan, in YYYY-MM-DD format. The default value is the - * transaction date. + * @param startsAt Start date of the billing plan, in YYYY-MM-DD format. The default value is the transaction date. * @return the current {@code PixRecurring} instance, allowing for method chaining */ public PixRecurring startsAt(String startsAt) { @@ -462,11 +421,8 @@ public PixRecurring startsAt(String startsAt) { } /** - * Start date of the billing plan, in YYYY-MM-DD format. The default value is the transaction - * date. - * - * @return startsAt Start date of the billing plan, in YYYY-MM-DD format. The default value is the - * transaction date. + * Start date of the billing plan, in YYYY-MM-DD format. The default value is the transaction date. + * @return startsAt Start date of the billing plan, in YYYY-MM-DD format. The default value is the transaction date. */ @JsonProperty(JSON_PROPERTY_STARTS_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -475,11 +431,9 @@ public String getStartsAt() { } /** - * Start date of the billing plan, in YYYY-MM-DD format. The default value is the transaction - * date. + * Start date of the billing plan, in YYYY-MM-DD format. The default value is the transaction date. * - * @param startsAt Start date of the billing plan, in YYYY-MM-DD format. The default value is the - * transaction date. + * @param startsAt Start date of the billing plan, in YYYY-MM-DD format. The default value is the transaction date. */ @JsonProperty(JSON_PROPERTY_STARTS_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -487,7 +441,9 @@ public void setStartsAt(String startsAt) { this.startsAt = startsAt; } - /** Return true if this PixRecurring object is equal to o. */ + /** + * Return true if this PixRecurring object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -497,31 +453,21 @@ public boolean equals(Object o) { return false; } PixRecurring pixRecurring = (PixRecurring) o; - return Objects.equals(this.billingDate, pixRecurring.billingDate) - && Objects.equals(this.businessDayOnly, pixRecurring.businessDayOnly) - && Objects.equals(this.endsAt, pixRecurring.endsAt) - && Objects.equals(this.frequency, pixRecurring.frequency) - && Objects.equals(this.minAmount, pixRecurring.minAmount) - && Objects.equals(this.originalPspReference, pixRecurring.originalPspReference) - && Objects.equals(this.recurringAmount, pixRecurring.recurringAmount) - && Objects.equals(this.recurringStatement, pixRecurring.recurringStatement) - && Objects.equals(this.retryPolicy, pixRecurring.retryPolicy) - && Objects.equals(this.startsAt, pixRecurring.startsAt); + return Objects.equals(this.billingDate, pixRecurring.billingDate) && + Objects.equals(this.businessDayOnly, pixRecurring.businessDayOnly) && + Objects.equals(this.endsAt, pixRecurring.endsAt) && + Objects.equals(this.frequency, pixRecurring.frequency) && + Objects.equals(this.minAmount, pixRecurring.minAmount) && + Objects.equals(this.originalPspReference, pixRecurring.originalPspReference) && + Objects.equals(this.recurringAmount, pixRecurring.recurringAmount) && + Objects.equals(this.recurringStatement, pixRecurring.recurringStatement) && + Objects.equals(this.retryPolicy, pixRecurring.retryPolicy) && + Objects.equals(this.startsAt, pixRecurring.startsAt); } @Override public int hashCode() { - return Objects.hash( - billingDate, - businessDayOnly, - endsAt, - frequency, - minAmount, - originalPspReference, - recurringAmount, - recurringStatement, - retryPolicy, - startsAt); + return Objects.hash(billingDate, businessDayOnly, endsAt, frequency, minAmount, originalPspReference, recurringAmount, recurringStatement, retryPolicy, startsAt); } @Override @@ -533,9 +479,7 @@ public String toString() { sb.append(" endsAt: ").append(toIndentedString(endsAt)).append("\n"); sb.append(" frequency: ").append(toIndentedString(frequency)).append("\n"); sb.append(" minAmount: ").append(toIndentedString(minAmount)).append("\n"); - sb.append(" originalPspReference: ") - .append(toIndentedString(originalPspReference)) - .append("\n"); + sb.append(" originalPspReference: ").append(toIndentedString(originalPspReference)).append("\n"); sb.append(" recurringAmount: ").append(toIndentedString(recurringAmount)).append("\n"); sb.append(" recurringStatement: ").append(toIndentedString(recurringStatement)).append("\n"); sb.append(" retryPolicy: ").append(toIndentedString(retryPolicy)).append("\n"); @@ -545,7 +489,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -554,7 +499,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PixRecurring given an JSON string * * @param jsonString JSON string @@ -564,12 +509,11 @@ private String toIndentedString(Object o) { public static PixRecurring fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PixRecurring.class); } - - /** - * Convert an instance of PixRecurring to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PixRecurring to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PlatformChargebackLogic.java b/src/main/java/com/adyen/model/checkout/PlatformChargebackLogic.java index e8e0f9214..a42b53bec 100644 --- a/src/main/java/com/adyen/model/checkout/PlatformChargebackLogic.java +++ b/src/main/java/com/adyen/model/checkout/PlatformChargebackLogic.java @@ -2,37 +2,43 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PlatformChargebackLogic */ +/** + * PlatformChargebackLogic + */ @JsonPropertyOrder({ PlatformChargebackLogic.JSON_PROPERTY_BEHAVIOR, PlatformChargebackLogic.JSON_PROPERTY_COST_ALLOCATION_ACCOUNT, PlatformChargebackLogic.JSON_PROPERTY_TARGET_ACCOUNT }) + public class PlatformChargebackLogic { /** - * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. */ public enum BehaviorEnum { + DEDUCTACCORDINGTOSPLITRATIO(String.valueOf("deductAccordingToSplitRatio")), DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), @@ -44,7 +50,7 @@ public enum BehaviorEnum { private String value; BehaviorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -65,11 +71,7 @@ public static BehaviorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "BehaviorEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(BehaviorEnum.values())); + LOG.warning("BehaviorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(BehaviorEnum.values())); return null; } } @@ -83,15 +85,13 @@ public static BehaviorEnum fromValue(String value) { public static final String JSON_PROPERTY_TARGET_ACCOUNT = "targetAccount"; private String targetAccount; - public PlatformChargebackLogic() {} + public PlatformChargebackLogic() { + } /** - * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. * - * @param behavior The method of handling the chargeback. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**, - * **deductAccordingToSplitRatio**. + * @param behavior The method of handling the chargeback. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. * @return the current {@code PlatformChargebackLogic} instance, allowing for method chaining */ public PlatformChargebackLogic behavior(BehaviorEnum behavior) { @@ -100,12 +100,8 @@ public PlatformChargebackLogic behavior(BehaviorEnum behavior) { } /** - * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. - * - * @return behavior The method of handling the chargeback. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**, - * **deductAccordingToSplitRatio**. + * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * @return behavior The method of handling the chargeback. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. */ @JsonProperty(JSON_PROPERTY_BEHAVIOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,12 +110,9 @@ public BehaviorEnum getBehavior() { } /** - * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. * - * @param behavior The method of handling the chargeback. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**, - * **deductAccordingToSplitRatio**. + * @param behavior The method of handling the chargeback. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. */ @JsonProperty(JSON_PROPERTY_BEHAVIOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,12 +121,9 @@ public void setBehavior(BehaviorEnum behavior) { } /** - * The unique identifier of the balance account to which the chargeback fees are booked. By - * default, the chargeback fees are booked to your liable balance account. + * The unique identifier of the balance account to which the chargeback fees are booked. By default, the chargeback fees are booked to your liable balance account. * - * @param costAllocationAccount The unique identifier of the balance account to which the - * chargeback fees are booked. By default, the chargeback fees are booked to your liable - * balance account. + * @param costAllocationAccount The unique identifier of the balance account to which the chargeback fees are booked. By default, the chargeback fees are booked to your liable balance account. * @return the current {@code PlatformChargebackLogic} instance, allowing for method chaining */ public PlatformChargebackLogic costAllocationAccount(String costAllocationAccount) { @@ -142,12 +132,8 @@ public PlatformChargebackLogic costAllocationAccount(String costAllocationAccoun } /** - * The unique identifier of the balance account to which the chargeback fees are booked. By - * default, the chargeback fees are booked to your liable balance account. - * - * @return costAllocationAccount The unique identifier of the balance account to which the - * chargeback fees are booked. By default, the chargeback fees are booked to your liable - * balance account. + * The unique identifier of the balance account to which the chargeback fees are booked. By default, the chargeback fees are booked to your liable balance account. + * @return costAllocationAccount The unique identifier of the balance account to which the chargeback fees are booked. By default, the chargeback fees are booked to your liable balance account. */ @JsonProperty(JSON_PROPERTY_COST_ALLOCATION_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,12 +142,9 @@ public String getCostAllocationAccount() { } /** - * The unique identifier of the balance account to which the chargeback fees are booked. By - * default, the chargeback fees are booked to your liable balance account. + * The unique identifier of the balance account to which the chargeback fees are booked. By default, the chargeback fees are booked to your liable balance account. * - * @param costAllocationAccount The unique identifier of the balance account to which the - * chargeback fees are booked. By default, the chargeback fees are booked to your liable - * balance account. + * @param costAllocationAccount The unique identifier of the balance account to which the chargeback fees are booked. By default, the chargeback fees are booked to your liable balance account. */ @JsonProperty(JSON_PROPERTY_COST_ALLOCATION_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -170,11 +153,9 @@ public void setCostAllocationAccount(String costAllocationAccount) { } /** - * The unique identifier of the balance account against which the disputed amount is booked. - * Required if `behavior` is **deductFromOneBalanceAccount**. + * The unique identifier of the balance account against which the disputed amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. * - * @param targetAccount The unique identifier of the balance account against which the disputed - * amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. + * @param targetAccount The unique identifier of the balance account against which the disputed amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. * @return the current {@code PlatformChargebackLogic} instance, allowing for method chaining */ public PlatformChargebackLogic targetAccount(String targetAccount) { @@ -183,11 +164,8 @@ public PlatformChargebackLogic targetAccount(String targetAccount) { } /** - * The unique identifier of the balance account against which the disputed amount is booked. - * Required if `behavior` is **deductFromOneBalanceAccount**. - * - * @return targetAccount The unique identifier of the balance account against which the disputed - * amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. + * The unique identifier of the balance account against which the disputed amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. + * @return targetAccount The unique identifier of the balance account against which the disputed amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_TARGET_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -196,11 +174,9 @@ public String getTargetAccount() { } /** - * The unique identifier of the balance account against which the disputed amount is booked. - * Required if `behavior` is **deductFromOneBalanceAccount**. + * The unique identifier of the balance account against which the disputed amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. * - * @param targetAccount The unique identifier of the balance account against which the disputed - * amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. + * @param targetAccount The unique identifier of the balance account against which the disputed amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_TARGET_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,7 +184,9 @@ public void setTargetAccount(String targetAccount) { this.targetAccount = targetAccount; } - /** Return true if this PlatformChargebackLogic object is equal to o. */ + /** + * Return true if this PlatformChargebackLogic object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -218,9 +196,9 @@ public boolean equals(Object o) { return false; } PlatformChargebackLogic platformChargebackLogic = (PlatformChargebackLogic) o; - return Objects.equals(this.behavior, platformChargebackLogic.behavior) - && Objects.equals(this.costAllocationAccount, platformChargebackLogic.costAllocationAccount) - && Objects.equals(this.targetAccount, platformChargebackLogic.targetAccount); + return Objects.equals(this.behavior, platformChargebackLogic.behavior) && + Objects.equals(this.costAllocationAccount, platformChargebackLogic.costAllocationAccount) && + Objects.equals(this.targetAccount, platformChargebackLogic.targetAccount); } @Override @@ -233,16 +211,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PlatformChargebackLogic {\n"); sb.append(" behavior: ").append(toIndentedString(behavior)).append("\n"); - sb.append(" costAllocationAccount: ") - .append(toIndentedString(costAllocationAccount)) - .append("\n"); + sb.append(" costAllocationAccount: ").append(toIndentedString(costAllocationAccount)).append("\n"); sb.append(" targetAccount: ").append(toIndentedString(targetAccount)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -251,23 +228,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PlatformChargebackLogic given an JSON string * * @param jsonString JSON string * @return An instance of PlatformChargebackLogic - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PlatformChargebackLogic + * @throws JsonProcessingException if the JSON string is invalid with respect to PlatformChargebackLogic */ public static PlatformChargebackLogic fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PlatformChargebackLogic.class); } - - /** - * Convert an instance of PlatformChargebackLogic to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PlatformChargebackLogic to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PseDetails.java b/src/main/java/com/adyen/model/checkout/PseDetails.java index 943fd4dba..5cbacf7c4 100644 --- a/src/main/java/com/adyen/model/checkout/PseDetails.java +++ b/src/main/java/com/adyen/model/checkout/PseDetails.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PseDetails */ +/** + * PseDetails + */ @JsonPropertyOrder({ PseDetails.JSON_PROPERTY_BANK, PseDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, @@ -30,6 +35,7 @@ PseDetails.JSON_PROPERTY_IDENTIFICATION_TYPE, PseDetails.JSON_PROPERTY_TYPE }) + public class PseDetails { public static final String JSON_PROPERTY_BANK = "bank"; private String bank; @@ -46,8 +52,11 @@ public class PseDetails { public static final String JSON_PROPERTY_IDENTIFICATION_TYPE = "identificationType"; private String identificationType; - /** The payment method type. */ + /** + * The payment method type. + */ public enum TypeEnum { + PSE_PAYULATAM(String.valueOf("pse_payulatam")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -55,7 +64,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -76,11 +85,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -88,7 +93,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PseDetails() {} + public PseDetails() { + } /** * The shopper's bank. @@ -103,7 +109,6 @@ public PseDetails bank(String bank) { /** * The shopper's bank. - * * @return bank The shopper's bank. */ @JsonProperty(JSON_PROPERTY_BANK) @@ -136,7 +141,6 @@ public PseDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -169,7 +173,6 @@ public PseDetails clientType(String clientType) { /** * The client type. - * * @return clientType The client type. */ @JsonProperty(JSON_PROPERTY_CLIENT_TYPE) @@ -202,7 +205,6 @@ public PseDetails identification(String identification) { /** * The identification code. - * * @return identification The identification code. */ @JsonProperty(JSON_PROPERTY_IDENTIFICATION) @@ -235,7 +237,6 @@ public PseDetails identificationType(String identificationType) { /** * The identification type. - * * @return identificationType The identification type. */ @JsonProperty(JSON_PROPERTY_IDENTIFICATION_TYPE) @@ -268,7 +269,6 @@ public PseDetails type(TypeEnum type) { /** * The payment method type. - * * @return type The payment method type. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -288,7 +288,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this PseDetails object is equal to o. */ + /** + * Return true if this PseDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -298,18 +300,17 @@ public boolean equals(Object o) { return false; } PseDetails pseDetails = (PseDetails) o; - return Objects.equals(this.bank, pseDetails.bank) - && Objects.equals(this.checkoutAttemptId, pseDetails.checkoutAttemptId) - && Objects.equals(this.clientType, pseDetails.clientType) - && Objects.equals(this.identification, pseDetails.identification) - && Objects.equals(this.identificationType, pseDetails.identificationType) - && Objects.equals(this.type, pseDetails.type); + return Objects.equals(this.bank, pseDetails.bank) && + Objects.equals(this.checkoutAttemptId, pseDetails.checkoutAttemptId) && + Objects.equals(this.clientType, pseDetails.clientType) && + Objects.equals(this.identification, pseDetails.identification) && + Objects.equals(this.identificationType, pseDetails.identificationType) && + Objects.equals(this.type, pseDetails.type); } @Override public int hashCode() { - return Objects.hash( - bank, checkoutAttemptId, clientType, identification, identificationType, type); + return Objects.hash(bank, checkoutAttemptId, clientType, identification, identificationType, type); } @Override @@ -327,7 +328,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -336,7 +338,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PseDetails given an JSON string * * @param jsonString JSON string @@ -346,12 +348,11 @@ private String toIndentedString(Object o) { public static PseDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PseDetails.class); } - - /** - * Convert an instance of PseDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PseDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/RakutenPayDetails.java b/src/main/java/com/adyen/model/checkout/RakutenPayDetails.java index f6508290d..eca87b134 100644 --- a/src/main/java/com/adyen/model/checkout/RakutenPayDetails.java +++ b/src/main/java/com/adyen/model/checkout/RakutenPayDetails.java @@ -2,32 +2,38 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** RakutenPayDetails */ +/** + * RakutenPayDetails + */ @JsonPropertyOrder({ RakutenPayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, RakutenPayDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, RakutenPayDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, RakutenPayDetails.JSON_PROPERTY_TYPE }) + public class RakutenPayDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -39,8 +45,11 @@ public class RakutenPayDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** **rakutenpay** */ + /** + * **rakutenpay** + */ public enum TypeEnum { + RAKUTENPAY(String.valueOf("rakutenpay")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +57,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,11 +78,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -81,7 +86,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public RakutenPayDetails() {} + public RakutenPayDetails() { + } /** * The checkout attempt identifier. @@ -96,7 +102,6 @@ public RakutenPayDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -117,13 +122,13 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code RakutenPayDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public RakutenPayDetails recurringDetailReference(String recurringDetailReference) { @@ -132,11 +137,8 @@ public RakutenPayDetails recurringDetailReference(String recurringDetailReferenc } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -147,12 +149,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -162,11 +164,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code RakutenPayDetails} instance, allowing for method chaining */ public RakutenPayDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -175,11 +175,8 @@ public RakutenPayDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,11 +185,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -213,7 +208,6 @@ public RakutenPayDetails type(TypeEnum type) { /** * **rakutenpay** - * * @return type **rakutenpay** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -233,7 +227,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this RakutenPayDetails object is equal to o. */ + /** + * Return true if this RakutenPayDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -243,10 +239,10 @@ public boolean equals(Object o) { return false; } RakutenPayDetails rakutenPayDetails = (RakutenPayDetails) o; - return Objects.equals(this.checkoutAttemptId, rakutenPayDetails.checkoutAttemptId) - && Objects.equals(this.recurringDetailReference, rakutenPayDetails.recurringDetailReference) - && Objects.equals(this.storedPaymentMethodId, rakutenPayDetails.storedPaymentMethodId) - && Objects.equals(this.type, rakutenPayDetails.type); + return Objects.equals(this.checkoutAttemptId, rakutenPayDetails.checkoutAttemptId) && + Objects.equals(this.recurringDetailReference, rakutenPayDetails.recurringDetailReference) && + Objects.equals(this.storedPaymentMethodId, rakutenPayDetails.storedPaymentMethodId) && + Objects.equals(this.type, rakutenPayDetails.type); } @Override @@ -259,19 +255,16 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RakutenPayDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -280,7 +273,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RakutenPayDetails given an JSON string * * @param jsonString JSON string @@ -290,12 +283,11 @@ private String toIndentedString(Object o) { public static RakutenPayDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RakutenPayDetails.class); } - - /** - * Convert an instance of RakutenPayDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RakutenPayDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/RatepayDetails.java b/src/main/java/com/adyen/model/checkout/RatepayDetails.java index 2167d676a..dfc9b5a51 100644 --- a/src/main/java/com/adyen/model/checkout/RatepayDetails.java +++ b/src/main/java/com/adyen/model/checkout/RatepayDetails.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** RatepayDetails */ + +/** + * RatepayDetails + */ @JsonPropertyOrder({ RatepayDetails.JSON_PROPERTY_BILLING_ADDRESS, RatepayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, @@ -31,6 +36,7 @@ RatepayDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, RatepayDetails.JSON_PROPERTY_TYPE }) + public class RatepayDetails { public static final String JSON_PROPERTY_BILLING_ADDRESS = "billingAddress"; private String billingAddress; @@ -51,8 +57,11 @@ public class RatepayDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** **ratepay** */ + /** + * **ratepay** + */ public enum TypeEnum { + RATEPAY(String.valueOf("ratepay")), RATEPAY_DIRECTDEBIT(String.valueOf("ratepay_directdebit")); @@ -62,7 +71,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -83,11 +92,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -95,7 +100,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public RatepayDetails() {} + public RatepayDetails() { + } /** * The address where to send the invoice. @@ -110,7 +116,6 @@ public RatepayDetails billingAddress(String billingAddress) { /** * The address where to send the invoice. - * * @return billingAddress The address where to send the invoice. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @@ -143,7 +148,6 @@ public RatepayDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -176,7 +180,6 @@ public RatepayDetails deliveryAddress(String deliveryAddress) { /** * The address where the goods should be delivered. - * * @return deliveryAddress The address where the goods should be delivered. */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @@ -209,7 +212,6 @@ public RatepayDetails personalDetails(String personalDetails) { /** * Shopper name, date of birth, phone number, and email address. - * * @return personalDetails Shopper name, date of birth, phone number, and email address. */ @JsonProperty(JSON_PROPERTY_PERSONAL_DETAILS) @@ -230,13 +232,13 @@ public void setPersonalDetails(String personalDetails) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code RatepayDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public RatepayDetails recurringDetailReference(String recurringDetailReference) { @@ -245,11 +247,8 @@ public RatepayDetails recurringDetailReference(String recurringDetailReference) } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -260,12 +259,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -275,11 +274,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code RatepayDetails} instance, allowing for method chaining */ public RatepayDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -288,11 +285,8 @@ public RatepayDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -301,11 +295,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -326,7 +318,6 @@ public RatepayDetails type(TypeEnum type) { /** * **ratepay** - * * @return type **ratepay** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -346,7 +337,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this RatepayDetails object is equal to o. */ + /** + * Return true if this RatepayDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -356,25 +349,18 @@ public boolean equals(Object o) { return false; } RatepayDetails ratepayDetails = (RatepayDetails) o; - return Objects.equals(this.billingAddress, ratepayDetails.billingAddress) - && Objects.equals(this.checkoutAttemptId, ratepayDetails.checkoutAttemptId) - && Objects.equals(this.deliveryAddress, ratepayDetails.deliveryAddress) - && Objects.equals(this.personalDetails, ratepayDetails.personalDetails) - && Objects.equals(this.recurringDetailReference, ratepayDetails.recurringDetailReference) - && Objects.equals(this.storedPaymentMethodId, ratepayDetails.storedPaymentMethodId) - && Objects.equals(this.type, ratepayDetails.type); + return Objects.equals(this.billingAddress, ratepayDetails.billingAddress) && + Objects.equals(this.checkoutAttemptId, ratepayDetails.checkoutAttemptId) && + Objects.equals(this.deliveryAddress, ratepayDetails.deliveryAddress) && + Objects.equals(this.personalDetails, ratepayDetails.personalDetails) && + Objects.equals(this.recurringDetailReference, ratepayDetails.recurringDetailReference) && + Objects.equals(this.storedPaymentMethodId, ratepayDetails.storedPaymentMethodId) && + Objects.equals(this.type, ratepayDetails.type); } @Override public int hashCode() { - return Objects.hash( - billingAddress, - checkoutAttemptId, - deliveryAddress, - personalDetails, - recurringDetailReference, - storedPaymentMethodId, - type); + return Objects.hash(billingAddress, checkoutAttemptId, deliveryAddress, personalDetails, recurringDetailReference, storedPaymentMethodId, type); } @Override @@ -385,19 +371,16 @@ public String toString() { sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" deliveryAddress: ").append(toIndentedString(deliveryAddress)).append("\n"); sb.append(" personalDetails: ").append(toIndentedString(personalDetails)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -406,7 +389,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RatepayDetails given an JSON string * * @param jsonString JSON string @@ -416,12 +399,11 @@ private String toIndentedString(Object o) { public static RatepayDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RatepayDetails.class); } - - /** - * Convert an instance of RatepayDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RatepayDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Recurring.java b/src/main/java/com/adyen/model/checkout/Recurring.java index 45fc04dab..8696cb8a9 100644 --- a/src/main/java/com/adyen/model/checkout/Recurring.java +++ b/src/main/java/com/adyen/model/checkout/Recurring.java @@ -2,27 +2,32 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** Recurring */ +/** + * Recurring + */ @JsonPropertyOrder({ Recurring.JSON_PROPERTY_CONTRACT, Recurring.JSON_PROPERTY_RECURRING_DETAIL_NAME, @@ -30,20 +35,13 @@ Recurring.JSON_PROPERTY_RECURRING_FREQUENCY, Recurring.JSON_PROPERTY_TOKEN_SERVICE }) + public class Recurring { /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment - * details can be used to initiate a one-click payment, where the shopper enters the [card - * security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a - * payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). */ public enum ContractEnum { + ONECLICK(String.valueOf("ONECLICK")), RECURRING(String.valueOf("RECURRING")), @@ -55,7 +53,7 @@ public enum ContractEnum { private String value; ContractEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -76,11 +74,7 @@ public static ContractEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ContractEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ContractEnum.values())); + LOG.warning("ContractEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ContractEnum.values())); return null; } } @@ -97,8 +91,11 @@ public static ContractEnum fromValue(String value) { public static final String JSON_PROPERTY_RECURRING_FREQUENCY = "recurringFrequency"; private String recurringFrequency; - /** The name of the token service. */ + /** + * The name of the token service. + */ public enum TokenServiceEnum { + VISATOKENSERVICE(String.valueOf("VISATOKENSERVICE")), MCTOKENSERVICE(String.valueOf("MCTOKENSERVICE")), @@ -112,7 +109,7 @@ public enum TokenServiceEnum { private String value; TokenServiceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -133,11 +130,7 @@ public static TokenServiceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TokenServiceEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TokenServiceEnum.values())); + LOG.warning("TokenServiceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TokenServiceEnum.values())); return null; } } @@ -145,30 +138,13 @@ public static TokenServiceEnum fromValue(String value) { public static final String JSON_PROPERTY_TOKEN_SERVICE = "tokenService"; private TokenServiceEnum tokenService; - public Recurring() {} + public Recurring() { + } /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment - * details can be used to initiate a one-click payment, where the shopper enters the [card - * security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a - * payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). * - * @param contract The type of recurring contract to be used. Possible values: * - * `ONECLICK` – Payment details can be used to initiate a one-click payment, where - * the shopper enters the [card security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make - * a payout](https://docs.adyen.com/online-payments/online-payouts). + * @param contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). * @return the current {@code Recurring} instance, allowing for method chaining */ public Recurring contract(ContractEnum contract) { @@ -177,27 +153,8 @@ public Recurring contract(ContractEnum contract) { } /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment - * details can be used to initiate a one-click payment, where the shopper enters the [card - * security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a - * payout](https://docs.adyen.com/online-payments/online-payouts). - * - * @return contract The type of recurring contract to be used. Possible values: * - * `ONECLICK` – Payment details can be used to initiate a one-click payment, where - * the shopper enters the [card security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make - * a payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * @return contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). */ @JsonProperty(JSON_PROPERTY_CONTRACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -206,27 +163,9 @@ public ContractEnum getContract() { } /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment - * details can be used to initiate a one-click payment, where the shopper enters the [card - * security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a - * payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). * - * @param contract The type of recurring contract to be used. Possible values: * - * `ONECLICK` – Payment details can be used to initiate a one-click payment, where - * the shopper enters the [card security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make - * a payout](https://docs.adyen.com/online-payments/online-payouts). + * @param contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). */ @JsonProperty(JSON_PROPERTY_CONTRACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -247,7 +186,6 @@ public Recurring recurringDetailName(String recurringDetailName) { /** * A descriptive name for this detail. - * * @return recurringDetailName A descriptive name for this detail. */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_NAME) @@ -270,8 +208,7 @@ public void setRecurringDetailName(String recurringDetailName) { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. * - * @param recurringExpiry Date after which no further authorisations shall be performed. Only for - * 3D Secure 2. + * @param recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. * @return the current {@code Recurring} instance, allowing for method chaining */ public Recurring recurringExpiry(OffsetDateTime recurringExpiry) { @@ -281,9 +218,7 @@ public Recurring recurringExpiry(OffsetDateTime recurringExpiry) { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. - * - * @return recurringExpiry Date after which no further authorisations shall be performed. Only for - * 3D Secure 2. + * @return recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -294,8 +229,7 @@ public OffsetDateTime getRecurringExpiry() { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. * - * @param recurringExpiry Date after which no further authorisations shall be performed. Only for - * 3D Secure 2. + * @param recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -316,7 +250,6 @@ public Recurring recurringFrequency(String recurringFrequency) { /** * Minimum number of days between authorisations. Only for 3D Secure 2. - * * @return recurringFrequency Minimum number of days between authorisations. Only for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY) @@ -349,7 +282,6 @@ public Recurring tokenService(TokenServiceEnum tokenService) { /** * The name of the token service. - * * @return tokenService The name of the token service. */ @JsonProperty(JSON_PROPERTY_TOKEN_SERVICE) @@ -369,7 +301,9 @@ public void setTokenService(TokenServiceEnum tokenService) { this.tokenService = tokenService; } - /** Return true if this Recurring object is equal to o. */ + /** + * Return true if this Recurring object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -379,17 +313,16 @@ public boolean equals(Object o) { return false; } Recurring recurring = (Recurring) o; - return Objects.equals(this.contract, recurring.contract) - && Objects.equals(this.recurringDetailName, recurring.recurringDetailName) - && Objects.equals(this.recurringExpiry, recurring.recurringExpiry) - && Objects.equals(this.recurringFrequency, recurring.recurringFrequency) - && Objects.equals(this.tokenService, recurring.tokenService); + return Objects.equals(this.contract, recurring.contract) && + Objects.equals(this.recurringDetailName, recurring.recurringDetailName) && + Objects.equals(this.recurringExpiry, recurring.recurringExpiry) && + Objects.equals(this.recurringFrequency, recurring.recurringFrequency) && + Objects.equals(this.tokenService, recurring.tokenService); } @Override public int hashCode() { - return Objects.hash( - contract, recurringDetailName, recurringExpiry, recurringFrequency, tokenService); + return Objects.hash(contract, recurringDetailName, recurringExpiry, recurringFrequency, tokenService); } @Override @@ -397,9 +330,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Recurring {\n"); sb.append(" contract: ").append(toIndentedString(contract)).append("\n"); - sb.append(" recurringDetailName: ") - .append(toIndentedString(recurringDetailName)) - .append("\n"); + sb.append(" recurringDetailName: ").append(toIndentedString(recurringDetailName)).append("\n"); sb.append(" recurringExpiry: ").append(toIndentedString(recurringExpiry)).append("\n"); sb.append(" recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n"); sb.append(" tokenService: ").append(toIndentedString(tokenService)).append("\n"); @@ -408,7 +339,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -417,7 +349,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Recurring given an JSON string * * @param jsonString JSON string @@ -427,12 +359,11 @@ private String toIndentedString(Object o) { public static Recurring fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Recurring.class); } - - /** - * Convert an instance of Recurring to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Recurring to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ResponseAdditionalData3DSecure.java b/src/main/java/com/adyen/model/checkout/ResponseAdditionalData3DSecure.java index 3628a97e7..fe23b49f7 100644 --- a/src/main/java/com/adyen/model/checkout/ResponseAdditionalData3DSecure.java +++ b/src/main/java/com/adyen/model/checkout/ResponseAdditionalData3DSecure.java @@ -2,22 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ResponseAdditionalData3DSecure */ + +/** + * ResponseAdditionalData3DSecure + */ @JsonPropertyOrder({ ResponseAdditionalData3DSecure.JSON_PROPERTY_CARD_HOLDER_INFO, ResponseAdditionalData3DSecure.JSON_PROPERTY_CAVV, @@ -25,6 +34,7 @@ ResponseAdditionalData3DSecure.JSON_PROPERTY_SCA_EXEMPTION_REQUESTED, ResponseAdditionalData3DSecure.JSON_PROPERTY_THREEDS2_CARD_ENROLLED }) + public class ResponseAdditionalData3DSecure { public static final String JSON_PROPERTY_CARD_HOLDER_INFO = "cardHolderInfo"; private String cardHolderInfo; @@ -41,16 +51,14 @@ public class ResponseAdditionalData3DSecure { public static final String JSON_PROPERTY_THREEDS2_CARD_ENROLLED = "threeds2.cardEnrolled"; private Boolean threeds2CardEnrolled; - public ResponseAdditionalData3DSecure() {} + public ResponseAdditionalData3DSecure() { + } /** - * Information provided by the issuer to the cardholder. If this field is present, you need to - * display this information to the cardholder. + * Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. * - * @param cardHolderInfo Information provided by the issuer to the cardholder. If this field is - * present, you need to display this information to the cardholder. - * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method - * chaining + * @param cardHolderInfo Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. + * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method chaining */ public ResponseAdditionalData3DSecure cardHolderInfo(String cardHolderInfo) { this.cardHolderInfo = cardHolderInfo; @@ -58,11 +66,8 @@ public ResponseAdditionalData3DSecure cardHolderInfo(String cardHolderInfo) { } /** - * Information provided by the issuer to the cardholder. If this field is present, you need to - * display this information to the cardholder. - * - * @return cardHolderInfo Information provided by the issuer to the cardholder. If this field is - * present, you need to display this information to the cardholder. + * Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. + * @return cardHolderInfo Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. */ @JsonProperty(JSON_PROPERTY_CARD_HOLDER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,11 +76,9 @@ public String getCardHolderInfo() { } /** - * Information provided by the issuer to the cardholder. If this field is present, you need to - * display this information to the cardholder. + * Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. * - * @param cardHolderInfo Information provided by the issuer to the cardholder. If this field is - * present, you need to display this information to the cardholder. + * @param cardHolderInfo Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. */ @JsonProperty(JSON_PROPERTY_CARD_HOLDER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -84,13 +87,10 @@ public void setCardHolderInfo(String cardHolderInfo) { } /** - * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication - * session, as a Base64-encoded 20-byte array. + * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. * - * @param cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure - * authentication session, as a Base64-encoded 20-byte array. - * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method - * chaining + * @param cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. + * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method chaining */ public ResponseAdditionalData3DSecure cavv(String cavv) { this.cavv = cavv; @@ -98,11 +98,8 @@ public ResponseAdditionalData3DSecure cavv(String cavv) { } /** - * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication - * session, as a Base64-encoded 20-byte array. - * - * @return cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure - * authentication session, as a Base64-encoded 20-byte array. + * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. + * @return cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. */ @JsonProperty(JSON_PROPERTY_CAVV) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,11 +108,9 @@ public String getCavv() { } /** - * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication - * session, as a Base64-encoded 20-byte array. + * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. * - * @param cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure - * authentication session, as a Base64-encoded 20-byte array. + * @param cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. */ @JsonProperty(JSON_PROPERTY_CAVV) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,8 +122,7 @@ public void setCavv(String cavv) { * The CAVV algorithm used. * * @param cavvAlgorithm The CAVV algorithm used. - * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method - * chaining + * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method chaining */ public ResponseAdditionalData3DSecure cavvAlgorithm(String cavvAlgorithm) { this.cavvAlgorithm = cavvAlgorithm; @@ -137,7 +131,6 @@ public ResponseAdditionalData3DSecure cavvAlgorithm(String cavvAlgorithm) { /** * The CAVV algorithm used. - * * @return cavvAlgorithm The CAVV algorithm used. */ @JsonProperty(JSON_PROPERTY_CAVV_ALGORITHM) @@ -158,17 +151,10 @@ public void setCavvAlgorithm(String cavvAlgorithm) { } /** - * Shows the [exemption - * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) - * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * - * **trustedBeneficiary** * **transactionRiskAnalysis** + * Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * - * @param scaExemptionRequested Shows the [exemption - * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) - * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** - * * **trustedBeneficiary** * **transactionRiskAnalysis** - * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method - * chaining + * @param scaExemptionRequested Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method chaining */ public ResponseAdditionalData3DSecure scaExemptionRequested(String scaExemptionRequested) { this.scaExemptionRequested = scaExemptionRequested; @@ -176,15 +162,8 @@ public ResponseAdditionalData3DSecure scaExemptionRequested(String scaExemptionR } /** - * Shows the [exemption - * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) - * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * - * **trustedBeneficiary** * **transactionRiskAnalysis** - * - * @return scaExemptionRequested Shows the [exemption - * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) - * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** - * * **trustedBeneficiary** * **transactionRiskAnalysis** + * Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * @return scaExemptionRequested Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** */ @JsonProperty(JSON_PROPERTY_SCA_EXEMPTION_REQUESTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,15 +172,9 @@ public String getScaExemptionRequested() { } /** - * Shows the [exemption - * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) - * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * - * **trustedBeneficiary** * **transactionRiskAnalysis** + * Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * - * @param scaExemptionRequested Shows the [exemption - * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) - * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** - * * **trustedBeneficiary** * **transactionRiskAnalysis** + * @param scaExemptionRequested Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** */ @JsonProperty(JSON_PROPERTY_SCA_EXEMPTION_REQUESTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -213,8 +186,7 @@ public void setScaExemptionRequested(String scaExemptionRequested) { * Indicates whether a card is enrolled for 3D Secure 2. * * @param threeds2CardEnrolled Indicates whether a card is enrolled for 3D Secure 2. - * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method - * chaining + * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method chaining */ public ResponseAdditionalData3DSecure threeds2CardEnrolled(Boolean threeds2CardEnrolled) { this.threeds2CardEnrolled = threeds2CardEnrolled; @@ -223,7 +195,6 @@ public ResponseAdditionalData3DSecure threeds2CardEnrolled(Boolean threeds2CardE /** * Indicates whether a card is enrolled for 3D Secure 2. - * * @return threeds2CardEnrolled Indicates whether a card is enrolled for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_THREEDS2_CARD_ENROLLED) @@ -243,7 +214,9 @@ public void setThreeds2CardEnrolled(Boolean threeds2CardEnrolled) { this.threeds2CardEnrolled = threeds2CardEnrolled; } - /** Return true if this ResponseAdditionalData3DSecure object is equal to o. */ + /** + * Return true if this ResponseAdditionalData3DSecure object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -252,21 +225,17 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResponseAdditionalData3DSecure responseAdditionalData3DSecure = - (ResponseAdditionalData3DSecure) o; - return Objects.equals(this.cardHolderInfo, responseAdditionalData3DSecure.cardHolderInfo) - && Objects.equals(this.cavv, responseAdditionalData3DSecure.cavv) - && Objects.equals(this.cavvAlgorithm, responseAdditionalData3DSecure.cavvAlgorithm) - && Objects.equals( - this.scaExemptionRequested, responseAdditionalData3DSecure.scaExemptionRequested) - && Objects.equals( - this.threeds2CardEnrolled, responseAdditionalData3DSecure.threeds2CardEnrolled); + ResponseAdditionalData3DSecure responseAdditionalData3DSecure = (ResponseAdditionalData3DSecure) o; + return Objects.equals(this.cardHolderInfo, responseAdditionalData3DSecure.cardHolderInfo) && + Objects.equals(this.cavv, responseAdditionalData3DSecure.cavv) && + Objects.equals(this.cavvAlgorithm, responseAdditionalData3DSecure.cavvAlgorithm) && + Objects.equals(this.scaExemptionRequested, responseAdditionalData3DSecure.scaExemptionRequested) && + Objects.equals(this.threeds2CardEnrolled, responseAdditionalData3DSecure.threeds2CardEnrolled); } @Override public int hashCode() { - return Objects.hash( - cardHolderInfo, cavv, cavvAlgorithm, scaExemptionRequested, threeds2CardEnrolled); + return Objects.hash(cardHolderInfo, cavv, cavvAlgorithm, scaExemptionRequested, threeds2CardEnrolled); } @Override @@ -276,18 +245,15 @@ public String toString() { sb.append(" cardHolderInfo: ").append(toIndentedString(cardHolderInfo)).append("\n"); sb.append(" cavv: ").append(toIndentedString(cavv)).append("\n"); sb.append(" cavvAlgorithm: ").append(toIndentedString(cavvAlgorithm)).append("\n"); - sb.append(" scaExemptionRequested: ") - .append(toIndentedString(scaExemptionRequested)) - .append("\n"); - sb.append(" threeds2CardEnrolled: ") - .append(toIndentedString(threeds2CardEnrolled)) - .append("\n"); + sb.append(" scaExemptionRequested: ").append(toIndentedString(scaExemptionRequested)).append("\n"); + sb.append(" threeds2CardEnrolled: ").append(toIndentedString(threeds2CardEnrolled)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -296,24 +262,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResponseAdditionalData3DSecure given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalData3DSecure - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ResponseAdditionalData3DSecure + * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalData3DSecure */ - public static ResponseAdditionalData3DSecure fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalData3DSecure fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalData3DSecure.class); } - - /** - * Convert an instance of ResponseAdditionalData3DSecure to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResponseAdditionalData3DSecure to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataBillingAddress.java b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataBillingAddress.java index 74a83e4a7..f0ba4fef8 100644 --- a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataBillingAddress.java +++ b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataBillingAddress.java @@ -2,22 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ResponseAdditionalDataBillingAddress */ + +/** + * ResponseAdditionalDataBillingAddress + */ @JsonPropertyOrder({ ResponseAdditionalDataBillingAddress.JSON_PROPERTY_BILLING_ADDRESS_CITY, ResponseAdditionalDataBillingAddress.JSON_PROPERTY_BILLING_ADDRESS_COUNTRY, @@ -26,6 +35,7 @@ ResponseAdditionalDataBillingAddress.JSON_PROPERTY_BILLING_ADDRESS_STATE_OR_PROVINCE, ResponseAdditionalDataBillingAddress.JSON_PROPERTY_BILLING_ADDRESS_STREET }) + public class ResponseAdditionalDataBillingAddress { public static final String JSON_PROPERTY_BILLING_ADDRESS_CITY = "billingAddress.city"; private String billingAddressCity; @@ -33,29 +43,26 @@ public class ResponseAdditionalDataBillingAddress { public static final String JSON_PROPERTY_BILLING_ADDRESS_COUNTRY = "billingAddress.country"; private String billingAddressCountry; - public static final String JSON_PROPERTY_BILLING_ADDRESS_HOUSE_NUMBER_OR_NAME = - "billingAddress.houseNumberOrName"; + public static final String JSON_PROPERTY_BILLING_ADDRESS_HOUSE_NUMBER_OR_NAME = "billingAddress.houseNumberOrName"; private String billingAddressHouseNumberOrName; - public static final String JSON_PROPERTY_BILLING_ADDRESS_POSTAL_CODE = - "billingAddress.postalCode"; + public static final String JSON_PROPERTY_BILLING_ADDRESS_POSTAL_CODE = "billingAddress.postalCode"; private String billingAddressPostalCode; - public static final String JSON_PROPERTY_BILLING_ADDRESS_STATE_OR_PROVINCE = - "billingAddress.stateOrProvince"; + public static final String JSON_PROPERTY_BILLING_ADDRESS_STATE_OR_PROVINCE = "billingAddress.stateOrProvince"; private String billingAddressStateOrProvince; public static final String JSON_PROPERTY_BILLING_ADDRESS_STREET = "billingAddress.street"; private String billingAddressStreet; - public ResponseAdditionalDataBillingAddress() {} + public ResponseAdditionalDataBillingAddress() { + } /** * The billing address city passed in the payment request. * * @param billingAddressCity The billing address city passed in the payment request. - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method - * chaining + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining */ public ResponseAdditionalDataBillingAddress billingAddressCity(String billingAddressCity) { this.billingAddressCity = billingAddressCity; @@ -64,7 +71,6 @@ public ResponseAdditionalDataBillingAddress billingAddressCity(String billingAdd /** * The billing address city passed in the payment request. - * * @return billingAddressCity The billing address city passed in the payment request. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_CITY) @@ -85,12 +91,10 @@ public void setBillingAddressCity(String billingAddressCity) { } /** - * The billing address country passed in the payment request. Example: NL + * The billing address country passed in the payment request. Example: NL * - * @param billingAddressCountry The billing address country passed in the payment request. - * Example: NL - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method - * chaining + * @param billingAddressCountry The billing address country passed in the payment request. Example: NL + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining */ public ResponseAdditionalDataBillingAddress billingAddressCountry(String billingAddressCountry) { this.billingAddressCountry = billingAddressCountry; @@ -98,10 +102,8 @@ public ResponseAdditionalDataBillingAddress billingAddressCountry(String billing } /** - * The billing address country passed in the payment request. Example: NL - * - * @return billingAddressCountry The billing address country passed in the payment request. - * Example: NL + * The billing address country passed in the payment request. Example: NL + * @return billingAddressCountry The billing address country passed in the payment request. Example: NL */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,10 +112,9 @@ public String getBillingAddressCountry() { } /** - * The billing address country passed in the payment request. Example: NL + * The billing address country passed in the payment request. Example: NL * - * @param billingAddressCountry The billing address country passed in the payment request. - * Example: NL + * @param billingAddressCountry The billing address country passed in the payment request. Example: NL */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,22 +125,17 @@ public void setBillingAddressCountry(String billingAddressCountry) { /** * The billing address house number or name passed in the payment request. * - * @param billingAddressHouseNumberOrName The billing address house number or name passed in the - * payment request. - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method - * chaining + * @param billingAddressHouseNumberOrName The billing address house number or name passed in the payment request. + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining */ - public ResponseAdditionalDataBillingAddress billingAddressHouseNumberOrName( - String billingAddressHouseNumberOrName) { + public ResponseAdditionalDataBillingAddress billingAddressHouseNumberOrName(String billingAddressHouseNumberOrName) { this.billingAddressHouseNumberOrName = billingAddressHouseNumberOrName; return this; } /** * The billing address house number or name passed in the payment request. - * - * @return billingAddressHouseNumberOrName The billing address house number or name passed in the - * payment request. + * @return billingAddressHouseNumberOrName The billing address house number or name passed in the payment request. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_HOUSE_NUMBER_OR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,8 +146,7 @@ public String getBillingAddressHouseNumberOrName() { /** * The billing address house number or name passed in the payment request. * - * @param billingAddressHouseNumberOrName The billing address house number or name passed in the - * payment request. + * @param billingAddressHouseNumberOrName The billing address house number or name passed in the payment request. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_HOUSE_NUMBER_OR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,24 +155,19 @@ public void setBillingAddressHouseNumberOrName(String billingAddressHouseNumberO } /** - * The billing address postal code passed in the payment request. Example: 1011 DJ + * The billing address postal code passed in the payment request. Example: 1011 DJ * - * @param billingAddressPostalCode The billing address postal code passed in the payment request. - * Example: 1011 DJ - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method - * chaining + * @param billingAddressPostalCode The billing address postal code passed in the payment request. Example: 1011 DJ + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining */ - public ResponseAdditionalDataBillingAddress billingAddressPostalCode( - String billingAddressPostalCode) { + public ResponseAdditionalDataBillingAddress billingAddressPostalCode(String billingAddressPostalCode) { this.billingAddressPostalCode = billingAddressPostalCode; return this; } /** - * The billing address postal code passed in the payment request. Example: 1011 DJ - * - * @return billingAddressPostalCode The billing address postal code passed in the payment request. - * Example: 1011 DJ + * The billing address postal code passed in the payment request. Example: 1011 DJ + * @return billingAddressPostalCode The billing address postal code passed in the payment request. Example: 1011 DJ */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,10 +176,9 @@ public String getBillingAddressPostalCode() { } /** - * The billing address postal code passed in the payment request. Example: 1011 DJ + * The billing address postal code passed in the payment request. Example: 1011 DJ * - * @param billingAddressPostalCode The billing address postal code passed in the payment request. - * Example: 1011 DJ + * @param billingAddressPostalCode The billing address postal code passed in the payment request. Example: 1011 DJ */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,24 +187,19 @@ public void setBillingAddressPostalCode(String billingAddressPostalCode) { } /** - * The billing address state or province passed in the payment request. Example: NH + * The billing address state or province passed in the payment request. Example: NH * - * @param billingAddressStateOrProvince The billing address state or province passed in the - * payment request. Example: NH - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method - * chaining + * @param billingAddressStateOrProvince The billing address state or province passed in the payment request. Example: NH + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining */ - public ResponseAdditionalDataBillingAddress billingAddressStateOrProvince( - String billingAddressStateOrProvince) { + public ResponseAdditionalDataBillingAddress billingAddressStateOrProvince(String billingAddressStateOrProvince) { this.billingAddressStateOrProvince = billingAddressStateOrProvince; return this; } /** - * The billing address state or province passed in the payment request. Example: NH - * - * @return billingAddressStateOrProvince The billing address state or province passed in the - * payment request. Example: NH + * The billing address state or province passed in the payment request. Example: NH + * @return billingAddressStateOrProvince The billing address state or province passed in the payment request. Example: NH */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,10 +208,9 @@ public String getBillingAddressStateOrProvince() { } /** - * The billing address state or province passed in the payment request. Example: NH + * The billing address state or province passed in the payment request. Example: NH * - * @param billingAddressStateOrProvince The billing address state or province passed in the - * payment request. Example: NH + * @param billingAddressStateOrProvince The billing address state or province passed in the payment request. Example: NH */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -239,8 +222,7 @@ public void setBillingAddressStateOrProvince(String billingAddressStateOrProvinc * The billing address street passed in the payment request. * * @param billingAddressStreet The billing address street passed in the payment request. - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method - * chaining + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining */ public ResponseAdditionalDataBillingAddress billingAddressStreet(String billingAddressStreet) { this.billingAddressStreet = billingAddressStreet; @@ -249,7 +231,6 @@ public ResponseAdditionalDataBillingAddress billingAddressStreet(String billingA /** * The billing address street passed in the payment request. - * * @return billingAddressStreet The billing address street passed in the payment request. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_STREET) @@ -269,7 +250,9 @@ public void setBillingAddressStreet(String billingAddressStreet) { this.billingAddressStreet = billingAddressStreet; } - /** Return true if this ResponseAdditionalDataBillingAddress object is equal to o. */ + /** + * Return true if this ResponseAdditionalDataBillingAddress object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -278,34 +261,18 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResponseAdditionalDataBillingAddress responseAdditionalDataBillingAddress = - (ResponseAdditionalDataBillingAddress) o; - return Objects.equals( - this.billingAddressCity, responseAdditionalDataBillingAddress.billingAddressCity) - && Objects.equals( - this.billingAddressCountry, responseAdditionalDataBillingAddress.billingAddressCountry) - && Objects.equals( - this.billingAddressHouseNumberOrName, - responseAdditionalDataBillingAddress.billingAddressHouseNumberOrName) - && Objects.equals( - this.billingAddressPostalCode, - responseAdditionalDataBillingAddress.billingAddressPostalCode) - && Objects.equals( - this.billingAddressStateOrProvince, - responseAdditionalDataBillingAddress.billingAddressStateOrProvince) - && Objects.equals( - this.billingAddressStreet, responseAdditionalDataBillingAddress.billingAddressStreet); + ResponseAdditionalDataBillingAddress responseAdditionalDataBillingAddress = (ResponseAdditionalDataBillingAddress) o; + return Objects.equals(this.billingAddressCity, responseAdditionalDataBillingAddress.billingAddressCity) && + Objects.equals(this.billingAddressCountry, responseAdditionalDataBillingAddress.billingAddressCountry) && + Objects.equals(this.billingAddressHouseNumberOrName, responseAdditionalDataBillingAddress.billingAddressHouseNumberOrName) && + Objects.equals(this.billingAddressPostalCode, responseAdditionalDataBillingAddress.billingAddressPostalCode) && + Objects.equals(this.billingAddressStateOrProvince, responseAdditionalDataBillingAddress.billingAddressStateOrProvince) && + Objects.equals(this.billingAddressStreet, responseAdditionalDataBillingAddress.billingAddressStreet); } @Override public int hashCode() { - return Objects.hash( - billingAddressCity, - billingAddressCountry, - billingAddressHouseNumberOrName, - billingAddressPostalCode, - billingAddressStateOrProvince, - billingAddressStreet); + return Objects.hash(billingAddressCity, billingAddressCountry, billingAddressHouseNumberOrName, billingAddressPostalCode, billingAddressStateOrProvince, billingAddressStreet); } @Override @@ -313,27 +280,18 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataBillingAddress {\n"); sb.append(" billingAddressCity: ").append(toIndentedString(billingAddressCity)).append("\n"); - sb.append(" billingAddressCountry: ") - .append(toIndentedString(billingAddressCountry)) - .append("\n"); - sb.append(" billingAddressHouseNumberOrName: ") - .append(toIndentedString(billingAddressHouseNumberOrName)) - .append("\n"); - sb.append(" billingAddressPostalCode: ") - .append(toIndentedString(billingAddressPostalCode)) - .append("\n"); - sb.append(" billingAddressStateOrProvince: ") - .append(toIndentedString(billingAddressStateOrProvince)) - .append("\n"); - sb.append(" billingAddressStreet: ") - .append(toIndentedString(billingAddressStreet)) - .append("\n"); + sb.append(" billingAddressCountry: ").append(toIndentedString(billingAddressCountry)).append("\n"); + sb.append(" billingAddressHouseNumberOrName: ").append(toIndentedString(billingAddressHouseNumberOrName)).append("\n"); + sb.append(" billingAddressPostalCode: ").append(toIndentedString(billingAddressPostalCode)).append("\n"); + sb.append(" billingAddressStateOrProvince: ").append(toIndentedString(billingAddressStateOrProvince)).append("\n"); + sb.append(" billingAddressStreet: ").append(toIndentedString(billingAddressStreet)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -342,24 +300,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResponseAdditionalDataBillingAddress given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataBillingAddress - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ResponseAdditionalDataBillingAddress + * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataBillingAddress */ - public static ResponseAdditionalDataBillingAddress fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataBillingAddress fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataBillingAddress.class); } - - /** - * Convert an instance of ResponseAdditionalDataBillingAddress to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResponseAdditionalDataBillingAddress to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataCard.java b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataCard.java index 7621dafc0..a094484a2 100644 --- a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataCard.java +++ b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataCard.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ResponseAdditionalDataCard */ +/** + * ResponseAdditionalDataCard + */ @JsonPropertyOrder({ ResponseAdditionalDataCard.JSON_PROPERTY_CARD_BIN, ResponseAdditionalDataCard.JSON_PROPERTY_CARD_HOLDER_NAME, @@ -33,6 +38,7 @@ ResponseAdditionalDataCard.JSON_PROPERTY_CARD_SUMMARY, ResponseAdditionalDataCard.JSON_PROPERTY_ISSUER_BIN }) + public class ResponseAdditionalDataCard { public static final String JSON_PROPERTY_CARD_BIN = "cardBin"; private String cardBin; @@ -53,15 +59,10 @@ public class ResponseAdditionalDataCard { private String cardPaymentMethod; /** - * The Card Product ID represents the type of card following card scheme product definitions and - * can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - - * Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa - * Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard - * Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * - * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard - * Select Debit + * The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit */ public enum CardProductIdEnum { + A(String.valueOf("A")), B(String.valueOf("B")), @@ -89,7 +90,7 @@ public enum CardProductIdEnum { private String value; CardProductIdEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -110,11 +111,7 @@ public static CardProductIdEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "CardProductIdEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(CardProductIdEnum.values())); + LOG.warning("CardProductIdEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CardProductIdEnum.values())); return null; } } @@ -128,16 +125,13 @@ public static CardProductIdEnum fromValue(String value) { public static final String JSON_PROPERTY_ISSUER_BIN = "issuerBin"; private String issuerBin; - public ResponseAdditionalDataCard() {} + public ResponseAdditionalDataCard() { + } /** - * The first six digits of the card number. This is the [Bank Identification Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with a six-digit BIN. Example: 521234 + * The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 * - * @param cardBin The first six digits of the card number. This is the [Bank Identification Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with a six-digit BIN. Example: 521234 + * @param cardBin The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardBin(String cardBin) { @@ -146,14 +140,8 @@ public ResponseAdditionalDataCard cardBin(String cardBin) { } /** - * The first six digits of the card number. This is the [Bank Identification Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with a six-digit BIN. Example: 521234 - * - * @return cardBin The first six digits of the card number. This is the [Bank Identification - * Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with a six-digit BIN. Example: 521234 + * The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 + * @return cardBin The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 */ @JsonProperty(JSON_PROPERTY_CARD_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -162,13 +150,9 @@ public String getCardBin() { } /** - * The first six digits of the card number. This is the [Bank Identification Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with a six-digit BIN. Example: 521234 + * The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 * - * @param cardBin The first six digits of the card number. This is the [Bank Identification Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with a six-digit BIN. Example: 521234 + * @param cardBin The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 */ @JsonProperty(JSON_PROPERTY_CARD_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,7 +173,6 @@ public ResponseAdditionalDataCard cardHolderName(String cardHolderName) { /** * The cardholder name passed in the payment request. - * * @return cardHolderName The cardholder name passed in the payment request. */ @JsonProperty(JSON_PROPERTY_CARD_HOLDER_NAME) @@ -210,11 +193,9 @@ public void setCardHolderName(String cardHolderName) { } /** - * The bank or the financial institution granting lines of credit through card association branded - * payment cards. This information can be included when available. + * The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. * - * @param cardIssuingBank The bank or the financial institution granting lines of credit through - * card association branded payment cards. This information can be included when available. + * @param cardIssuingBank The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardIssuingBank(String cardIssuingBank) { @@ -223,11 +204,8 @@ public ResponseAdditionalDataCard cardIssuingBank(String cardIssuingBank) { } /** - * The bank or the financial institution granting lines of credit through card association branded - * payment cards. This information can be included when available. - * - * @return cardIssuingBank The bank or the financial institution granting lines of credit through - * card association branded payment cards. This information can be included when available. + * The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. + * @return cardIssuingBank The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_BANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -236,11 +214,9 @@ public String getCardIssuingBank() { } /** - * The bank or the financial institution granting lines of credit through card association branded - * payment cards. This information can be included when available. + * The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. * - * @param cardIssuingBank The bank or the financial institution granting lines of credit through - * card association branded payment cards. This information can be included when available. + * @param cardIssuingBank The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_BANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -249,9 +225,9 @@ public void setCardIssuingBank(String cardIssuingBank) { } /** - * The country where the card was issued. Example: US + * The country where the card was issued. Example: US * - * @param cardIssuingCountry The country where the card was issued. Example: US + * @param cardIssuingCountry The country where the card was issued. Example: US * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardIssuingCountry(String cardIssuingCountry) { @@ -260,9 +236,8 @@ public ResponseAdditionalDataCard cardIssuingCountry(String cardIssuingCountry) } /** - * The country where the card was issued. Example: US - * - * @return cardIssuingCountry The country where the card was issued. Example: US + * The country where the card was issued. Example: US + * @return cardIssuingCountry The country where the card was issued. Example: US */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -271,9 +246,9 @@ public String getCardIssuingCountry() { } /** - * The country where the card was issued. Example: US + * The country where the card was issued. Example: US * - * @param cardIssuingCountry The country where the card was issued. Example: US + * @param cardIssuingCountry The country where the card was issued. Example: US */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -282,12 +257,9 @@ public void setCardIssuingCountry(String cardIssuingCountry) { } /** - * The currency in which the card is issued, if this information is available. Provided as the - * currency code or currency number from the ISO-4217 standard. Example: USD + * The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD * - * @param cardIssuingCurrency The currency in which the card is issued, if this information is - * available. Provided as the currency code or currency number from the ISO-4217 standard. - * Example: USD + * @param cardIssuingCurrency The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardIssuingCurrency(String cardIssuingCurrency) { @@ -296,12 +268,8 @@ public ResponseAdditionalDataCard cardIssuingCurrency(String cardIssuingCurrency } /** - * The currency in which the card is issued, if this information is available. Provided as the - * currency code or currency number from the ISO-4217 standard. Example: USD - * - * @return cardIssuingCurrency The currency in which the card is issued, if this information is - * available. Provided as the currency code or currency number from the ISO-4217 standard. - * Example: USD + * The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD + * @return cardIssuingCurrency The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -310,12 +278,9 @@ public String getCardIssuingCurrency() { } /** - * The currency in which the card is issued, if this information is available. Provided as the - * currency code or currency number from the ISO-4217 standard. Example: USD + * The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD * - * @param cardIssuingCurrency The currency in which the card is issued, if this information is - * available. Provided as the currency code or currency number from the ISO-4217 standard. - * Example: USD + * @param cardIssuingCurrency The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -324,9 +289,9 @@ public void setCardIssuingCurrency(String cardIssuingCurrency) { } /** - * The card payment method used for the transaction. Example: amex + * The card payment method used for the transaction. Example: amex * - * @param cardPaymentMethod The card payment method used for the transaction. Example: amex + * @param cardPaymentMethod The card payment method used for the transaction. Example: amex * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardPaymentMethod(String cardPaymentMethod) { @@ -335,9 +300,8 @@ public ResponseAdditionalDataCard cardPaymentMethod(String cardPaymentMethod) { } /** - * The card payment method used for the transaction. Example: amex - * - * @return cardPaymentMethod The card payment method used for the transaction. Example: amex + * The card payment method used for the transaction. Example: amex + * @return cardPaymentMethod The card payment method used for the transaction. Example: amex */ @JsonProperty(JSON_PROPERTY_CARD_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -346,9 +310,9 @@ public String getCardPaymentMethod() { } /** - * The card payment method used for the transaction. Example: amex + * The card payment method used for the transaction. Example: amex * - * @param cardPaymentMethod The card payment method used for the transaction. Example: amex + * @param cardPaymentMethod The card payment method used for the transaction. Example: amex */ @JsonProperty(JSON_PROPERTY_CARD_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -357,21 +321,9 @@ public void setCardPaymentMethod(String cardPaymentMethod) { } /** - * The Card Product ID represents the type of card following card scheme product definitions and - * can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - - * Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa - * Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard - * Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * - * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard - * Select Debit + * The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit * - * @param cardProductId The Card Product ID represents the type of card following card scheme - * product definitions and can be returned for Adyen Acquiring service level payments. - * Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - * - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values - * Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - - * Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard - * Premium Charge * **MCI** - Mastercard Select Debit + * @param cardProductId The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardProductId(CardProductIdEnum cardProductId) { @@ -380,21 +332,8 @@ public ResponseAdditionalDataCard cardProductId(CardProductIdEnum cardProductId) } /** - * The Card Product ID represents the type of card following card scheme product definitions and - * can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - - * Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa - * Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard - * Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * - * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard - * Select Debit - * - * @return cardProductId The Card Product ID represents the type of card following card scheme - * product definitions and can be returned for Adyen Acquiring service level payments. - * Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - * - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values - * Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - - * Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard - * Premium Charge * **MCI** - Mastercard Select Debit + * The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit + * @return cardProductId The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit */ @JsonProperty(JSON_PROPERTY_CARD_PRODUCT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -403,21 +342,9 @@ public CardProductIdEnum getCardProductId() { } /** - * The Card Product ID represents the type of card following card scheme product definitions and - * can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - - * Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa - * Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard - * Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * - * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard - * Select Debit + * The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit * - * @param cardProductId The Card Product ID represents the type of card following card scheme - * product definitions and can be returned for Adyen Acquiring service level payments. - * Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - * - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values - * Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - - * Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard - * Premium Charge * **MCI** - Mastercard Select Debit + * @param cardProductId The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit */ @JsonProperty(JSON_PROPERTY_CARD_PRODUCT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -426,10 +353,9 @@ public void setCardProductId(CardProductIdEnum cardProductId) { } /** - * The last four digits of a card number. > Returned only in case of a card payment. + * The last four digits of a card number. > Returned only in case of a card payment. * - * @param cardSummary The last four digits of a card number. > Returned only in case of a card - * payment. + * @param cardSummary The last four digits of a card number. > Returned only in case of a card payment. * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardSummary(String cardSummary) { @@ -438,10 +364,8 @@ public ResponseAdditionalDataCard cardSummary(String cardSummary) { } /** - * The last four digits of a card number. > Returned only in case of a card payment. - * - * @return cardSummary The last four digits of a card number. > Returned only in case of a card - * payment. + * The last four digits of a card number. > Returned only in case of a card payment. + * @return cardSummary The last four digits of a card number. > Returned only in case of a card payment. */ @JsonProperty(JSON_PROPERTY_CARD_SUMMARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -450,10 +374,9 @@ public String getCardSummary() { } /** - * The last four digits of a card number. > Returned only in case of a card payment. + * The last four digits of a card number. > Returned only in case of a card payment. * - * @param cardSummary The last four digits of a card number. > Returned only in case of a card - * payment. + * @param cardSummary The last four digits of a card number. > Returned only in case of a card payment. */ @JsonProperty(JSON_PROPERTY_CARD_SUMMARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -462,15 +385,9 @@ public void setCardSummary(String cardSummary) { } /** - * The first eight digits of the card number. Only returned if the card number is 16 digits or - * more. This is the [Bank Identification Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with an eight-digit BIN. Example: 52123423 + * The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 * - * @param issuerBin The first eight digits of the card number. Only returned if the card number is - * 16 digits or more. This is the [Bank Identification Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with an eight-digit BIN. Example: 52123423 + * @param issuerBin The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard issuerBin(String issuerBin) { @@ -479,15 +396,8 @@ public ResponseAdditionalDataCard issuerBin(String issuerBin) { } /** - * The first eight digits of the card number. Only returned if the card number is 16 digits or - * more. This is the [Bank Identification Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with an eight-digit BIN. Example: 52123423 - * - * @return issuerBin The first eight digits of the card number. Only returned if the card number - * is 16 digits or more. This is the [Bank Identification Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with an eight-digit BIN. Example: 52123423 + * The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 + * @return issuerBin The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 */ @JsonProperty(JSON_PROPERTY_ISSUER_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -496,15 +406,9 @@ public String getIssuerBin() { } /** - * The first eight digits of the card number. Only returned if the card number is 16 digits or - * more. This is the [Bank Identification Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with an eight-digit BIN. Example: 52123423 + * The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 * - * @param issuerBin The first eight digits of the card number. Only returned if the card number is - * 16 digits or more. This is the [Bank Identification Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with an eight-digit BIN. Example: 52123423 + * @param issuerBin The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 */ @JsonProperty(JSON_PROPERTY_ISSUER_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -512,7 +416,9 @@ public void setIssuerBin(String issuerBin) { this.issuerBin = issuerBin; } - /** Return true if this ResponseAdditionalDataCard object is equal to o. */ + /** + * Return true if this ResponseAdditionalDataCard object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -522,29 +428,20 @@ public boolean equals(Object o) { return false; } ResponseAdditionalDataCard responseAdditionalDataCard = (ResponseAdditionalDataCard) o; - return Objects.equals(this.cardBin, responseAdditionalDataCard.cardBin) - && Objects.equals(this.cardHolderName, responseAdditionalDataCard.cardHolderName) - && Objects.equals(this.cardIssuingBank, responseAdditionalDataCard.cardIssuingBank) - && Objects.equals(this.cardIssuingCountry, responseAdditionalDataCard.cardIssuingCountry) - && Objects.equals(this.cardIssuingCurrency, responseAdditionalDataCard.cardIssuingCurrency) - && Objects.equals(this.cardPaymentMethod, responseAdditionalDataCard.cardPaymentMethod) - && Objects.equals(this.cardProductId, responseAdditionalDataCard.cardProductId) - && Objects.equals(this.cardSummary, responseAdditionalDataCard.cardSummary) - && Objects.equals(this.issuerBin, responseAdditionalDataCard.issuerBin); + return Objects.equals(this.cardBin, responseAdditionalDataCard.cardBin) && + Objects.equals(this.cardHolderName, responseAdditionalDataCard.cardHolderName) && + Objects.equals(this.cardIssuingBank, responseAdditionalDataCard.cardIssuingBank) && + Objects.equals(this.cardIssuingCountry, responseAdditionalDataCard.cardIssuingCountry) && + Objects.equals(this.cardIssuingCurrency, responseAdditionalDataCard.cardIssuingCurrency) && + Objects.equals(this.cardPaymentMethod, responseAdditionalDataCard.cardPaymentMethod) && + Objects.equals(this.cardProductId, responseAdditionalDataCard.cardProductId) && + Objects.equals(this.cardSummary, responseAdditionalDataCard.cardSummary) && + Objects.equals(this.issuerBin, responseAdditionalDataCard.issuerBin); } @Override public int hashCode() { - return Objects.hash( - cardBin, - cardHolderName, - cardIssuingBank, - cardIssuingCountry, - cardIssuingCurrency, - cardPaymentMethod, - cardProductId, - cardSummary, - issuerBin); + return Objects.hash(cardBin, cardHolderName, cardIssuingBank, cardIssuingCountry, cardIssuingCurrency, cardPaymentMethod, cardProductId, cardSummary, issuerBin); } @Override @@ -555,9 +452,7 @@ public String toString() { sb.append(" cardHolderName: ").append(toIndentedString(cardHolderName)).append("\n"); sb.append(" cardIssuingBank: ").append(toIndentedString(cardIssuingBank)).append("\n"); sb.append(" cardIssuingCountry: ").append(toIndentedString(cardIssuingCountry)).append("\n"); - sb.append(" cardIssuingCurrency: ") - .append(toIndentedString(cardIssuingCurrency)) - .append("\n"); + sb.append(" cardIssuingCurrency: ").append(toIndentedString(cardIssuingCurrency)).append("\n"); sb.append(" cardPaymentMethod: ").append(toIndentedString(cardPaymentMethod)).append("\n"); sb.append(" cardProductId: ").append(toIndentedString(cardProductId)).append("\n"); sb.append(" cardSummary: ").append(toIndentedString(cardSummary)).append("\n"); @@ -567,7 +462,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -576,24 +472,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResponseAdditionalDataCard given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataCard - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ResponseAdditionalDataCard + * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataCard */ - public static ResponseAdditionalDataCard fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataCard fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataCard.class); } - - /** - * Convert an instance of ResponseAdditionalDataCard to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResponseAdditionalDataCard to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataCommon.java b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataCommon.java index e12e257d2..441c2ea0d 100644 --- a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataCommon.java +++ b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataCommon.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ResponseAdditionalDataCommon */ +/** + * ResponseAdditionalDataCommon + */ @JsonPropertyOrder({ ResponseAdditionalDataCommon.JSON_PROPERTY_ACQUIRER_ACCOUNT_CODE, ResponseAdditionalDataCommon.JSON_PROPERTY_ACQUIRER_CODE, @@ -87,6 +92,7 @@ ResponseAdditionalDataCommon.JSON_PROPERTY_VISA_TRANSACTION_ID, ResponseAdditionalDataCommon.JSON_PROPERTY_XID }) + public class ResponseAdditionalDataCommon { public static final String JSON_PROPERTY_ACQUIRER_ACCOUNT_CODE = "acquirerAccountCode"; private String acquirerAccountCode; @@ -148,15 +154,17 @@ public class ResponseAdditionalDataCommon { public static final String JSON_PROPERTY_EXTRA_COSTS_VALUE = "extraCostsValue"; private String extraCostsValue; - public static final String JSON_PROPERTY_FRAUD_CHECK_ITEM_NR_FRAUD_CHECKNAME = - "fraudCheck-[itemNr]-[FraudCheckname]"; + public static final String JSON_PROPERTY_FRAUD_CHECK_ITEM_NR_FRAUD_CHECKNAME = "fraudCheck-[itemNr]-[FraudCheckname]"; private String fraudCheckItemNrFraudCheckname; public static final String JSON_PROPERTY_FRAUD_MANUAL_REVIEW = "fraudManualReview"; private String fraudManualReview; - /** The fraud result properties of the payment. */ + /** + * The fraud result properties of the payment. + */ public enum FraudResultTypeEnum { + GREEN(String.valueOf("GREEN")), FRAUD(String.valueOf("FRAUD")); @@ -166,7 +174,7 @@ public enum FraudResultTypeEnum { private String value; FraudResultTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -187,11 +195,7 @@ public static FraudResultTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FraudResultTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FraudResultTypeEnum.values())); + LOG.warning("FraudResultTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FraudResultTypeEnum.values())); return null; } } @@ -200,12 +204,10 @@ public static FraudResultTypeEnum fromValue(String value) { private FraudResultTypeEnum fraudResultType; /** - * The risk level of the transaction as classified by the [machine - * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) - * fraud risk rule. The risk level indicates the likelihood that a transaction will result in a - * fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh */ public enum FraudRiskLevelEnum { + VERYLOW(String.valueOf("veryLow")), LOW(String.valueOf("low")), @@ -221,7 +223,7 @@ public enum FraudRiskLevelEnum { private String value; FraudRiskLevelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -242,11 +244,7 @@ public static FraudRiskLevelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FraudRiskLevelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FraudRiskLevelEnum.values())); + LOG.warning("FraudRiskLevelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FraudRiskLevelEnum.values())); return null; } } @@ -272,8 +270,7 @@ public static FraudRiskLevelEnum fromValue(String value) { public static final String JSON_PROPERTY_LIABILITY_SHIFT = "liabilityShift"; private String liabilityShift; - public static final String JSON_PROPERTY_MC_BANK_NET_REFERENCE_NUMBER = - "mcBankNetReferenceNumber"; + public static final String JSON_PROPERTY_MC_BANK_NET_REFERENCE_NUMBER = "mcBankNetReferenceNumber"; private String mcBankNetReferenceNumber; public static final String JSON_PROPERTY_MERCHANT_ADVICE_CODE = "merchantAdviceCode"; @@ -300,8 +297,7 @@ public static FraudRiskLevelEnum fromValue(String value) { public static final String JSON_PROPERTY_PAYOUT_ELIGIBLE = "payoutEligible"; private String payoutEligible; - public static final String JSON_PROPERTY_REALTIME_ACCOUNT_UPDATER_STATUS = - "realtimeAccountUpdaterStatus"; + public static final String JSON_PROPERTY_REALTIME_ACCOUNT_UPDATER_STATUS = "realtimeAccountUpdaterStatus"; private String realtimeAccountUpdaterStatus; public static final String JSON_PROPERTY_RECEIPT_FREE_TEXT = "receiptFreeText"; @@ -310,36 +306,34 @@ public static FraudRiskLevelEnum fromValue(String value) { public static final String JSON_PROPERTY_RECURRING_CONTRACT_TYPES = "recurring.contractTypes"; private String recurringContractTypes; - public static final String JSON_PROPERTY_RECURRING_FIRST_PSP_REFERENCE = - "recurring.firstPspReference"; + public static final String JSON_PROPERTY_RECURRING_FIRST_PSP_REFERENCE = "recurring.firstPspReference"; private String recurringFirstPspReference; - public static final String JSON_PROPERTY_RECURRING_RECURRING_DETAIL_REFERENCE = - "recurring.recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v68: Use tokenization.storedPaymentMethodId - // instead. + public static final String JSON_PROPERTY_RECURRING_RECURRING_DETAIL_REFERENCE = "recurring.recurringDetailReference"; + @Deprecated // deprecated since Adyen Checkout API v68: Use tokenization.storedPaymentMethodId instead. private String recurringRecurringDetailReference; - public static final String JSON_PROPERTY_RECURRING_SHOPPER_REFERENCE = - "recurring.shopperReference"; + public static final String JSON_PROPERTY_RECURRING_SHOPPER_REFERENCE = "recurring.shopperReference"; @Deprecated // deprecated since Adyen Checkout API v68: Use tokenization.shopperReference instead. private String recurringShopperReference; - /** The processing model used for the recurring transaction. */ + /** + * The processing model used for the recurring transaction. + */ public enum RecurringProcessingModelEnum { + CARDONFILE(String.valueOf("CardOnFile")), SUBSCRIPTION(String.valueOf("Subscription")), UNSCHEDULEDCARDONFILE(String.valueOf("UnscheduledCardOnFile")); - private static final Logger LOG = - Logger.getLogger(RecurringProcessingModelEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(RecurringProcessingModelEnum.class.getName()); private String value; RecurringProcessingModelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -360,11 +354,7 @@ public static RecurringProcessingModelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "RecurringProcessingModelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(RecurringProcessingModelEnum.values())); + LOG.warning("RecurringProcessingModelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RecurringProcessingModelEnum.values())); return null; } } @@ -396,8 +386,7 @@ public static RecurringProcessingModelEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_AUTHENTICATED = "threeDAuthenticated"; private String threeDAuthenticated; - public static final String JSON_PROPERTY_THREE_D_AUTHENTICATED_RESPONSE = - "threeDAuthenticatedResponse"; + public static final String JSON_PROPERTY_THREE_D_AUTHENTICATED_RESPONSE = "threeDAuthenticatedResponse"; private String threeDAuthenticatedResponse; public static final String JSON_PROPERTY_THREE_D_OFFERED = "threeDOffered"; @@ -409,29 +398,26 @@ public static RecurringProcessingModelEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_VERSION = "threeDSVersion"; private String threeDSVersion; - public static final String JSON_PROPERTY_TOKENIZATION_SHOPPER_REFERENCE = - "tokenization.shopperReference"; + public static final String JSON_PROPERTY_TOKENIZATION_SHOPPER_REFERENCE = "tokenization.shopperReference"; private String tokenizationShopperReference; /** - * The operation performed on the token. Possible values: * **created**: the token has been - * created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details - * have already been stored. + * The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. */ public enum TokenizationStoreOperationTypeEnum { + CREATED(String.valueOf("created")), UPDATED(String.valueOf("updated")), ALREADYEXISTING(String.valueOf("alreadyExisting")); - private static final Logger LOG = - Logger.getLogger(TokenizationStoreOperationTypeEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(TokenizationStoreOperationTypeEnum.class.getName()); private String value; TokenizationStoreOperationTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -452,21 +438,15 @@ public static TokenizationStoreOperationTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TokenizationStoreOperationTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TokenizationStoreOperationTypeEnum.values())); + LOG.warning("TokenizationStoreOperationTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TokenizationStoreOperationTypeEnum.values())); return null; } } - public static final String JSON_PROPERTY_TOKENIZATION_STORE_OPERATION_TYPE = - "tokenization.store.operationType"; + public static final String JSON_PROPERTY_TOKENIZATION_STORE_OPERATION_TYPE = "tokenization.store.operationType"; private TokenizationStoreOperationTypeEnum tokenizationStoreOperationType; - public static final String JSON_PROPERTY_TOKENIZATION_STORED_PAYMENT_METHOD_ID = - "tokenization.storedPaymentMethodId"; + public static final String JSON_PROPERTY_TOKENIZATION_STORED_PAYMENT_METHOD_ID = "tokenization.storedPaymentMethodId"; private String tokenizationStoredPaymentMethodId; public static final String JSON_PROPERTY_VISA_TRANSACTION_ID = "visaTransactionId"; @@ -475,14 +455,13 @@ public static TokenizationStoreOperationTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_XID = "xid"; private String xid; - public ResponseAdditionalDataCommon() {} + public ResponseAdditionalDataCommon() { + } /** - * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant - * for PayPal transactions. + * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. * - * @param acquirerAccountCode The name of the Adyen acquirer account. Example: - * PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. + * @param acquirerAccountCode The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon acquirerAccountCode(String acquirerAccountCode) { @@ -491,11 +470,8 @@ public ResponseAdditionalDataCommon acquirerAccountCode(String acquirerAccountCo } /** - * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant - * for PayPal transactions. - * - * @return acquirerAccountCode The name of the Adyen acquirer account. Example: - * PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. + * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. + * @return acquirerAccountCode The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -504,11 +480,9 @@ public String getAcquirerAccountCode() { } /** - * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant - * for PayPal transactions. + * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. * - * @param acquirerAccountCode The name of the Adyen acquirer account. Example: - * PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. + * @param acquirerAccountCode The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -517,10 +491,9 @@ public void setAcquirerAccountCode(String acquirerAccountCode) { } /** - * The name of the acquirer processing the payment request. Example: TestPmmAcquirer + * The name of the acquirer processing the payment request. Example: TestPmmAcquirer * - * @param acquirerCode The name of the acquirer processing the payment request. Example: - * TestPmmAcquirer + * @param acquirerCode The name of the acquirer processing the payment request. Example: TestPmmAcquirer * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon acquirerCode(String acquirerCode) { @@ -529,10 +502,8 @@ public ResponseAdditionalDataCommon acquirerCode(String acquirerCode) { } /** - * The name of the acquirer processing the payment request. Example: TestPmmAcquirer - * - * @return acquirerCode The name of the acquirer processing the payment request. Example: - * TestPmmAcquirer + * The name of the acquirer processing the payment request. Example: TestPmmAcquirer + * @return acquirerCode The name of the acquirer processing the payment request. Example: TestPmmAcquirer */ @JsonProperty(JSON_PROPERTY_ACQUIRER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -541,10 +512,9 @@ public String getAcquirerCode() { } /** - * The name of the acquirer processing the payment request. Example: TestPmmAcquirer + * The name of the acquirer processing the payment request. Example: TestPmmAcquirer * - * @param acquirerCode The name of the acquirer processing the payment request. Example: - * TestPmmAcquirer + * @param acquirerCode The name of the acquirer processing the payment request. Example: TestPmmAcquirer */ @JsonProperty(JSON_PROPERTY_ACQUIRER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -553,11 +523,9 @@ public void setAcquirerCode(String acquirerCode) { } /** - * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used - * for settlement. Example: 7C9N3FNBKT9 + * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 * - * @param acquirerReference The reference number that can be used for reconciliation in case a - * non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 + * @param acquirerReference The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon acquirerReference(String acquirerReference) { @@ -566,11 +534,8 @@ public ResponseAdditionalDataCommon acquirerReference(String acquirerReference) } /** - * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used - * for settlement. Example: 7C9N3FNBKT9 - * - * @return acquirerReference The reference number that can be used for reconciliation in case a - * non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 + * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 + * @return acquirerReference The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 */ @JsonProperty(JSON_PROPERTY_ACQUIRER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -579,11 +544,9 @@ public String getAcquirerReference() { } /** - * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used - * for settlement. Example: 7C9N3FNBKT9 + * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 * - * @param acquirerReference The reference number that can be used for reconciliation in case a - * non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 + * @param acquirerReference The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 */ @JsonProperty(JSON_PROPERTY_ACQUIRER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -592,9 +555,9 @@ public void setAcquirerReference(String acquirerReference) { } /** - * The Adyen alias of the card. Example: H167852639363479 + * The Adyen alias of the card. Example: H167852639363479 * - * @param alias The Adyen alias of the card. Example: H167852639363479 + * @param alias The Adyen alias of the card. Example: H167852639363479 * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon alias(String alias) { @@ -603,9 +566,8 @@ public ResponseAdditionalDataCommon alias(String alias) { } /** - * The Adyen alias of the card. Example: H167852639363479 - * - * @return alias The Adyen alias of the card. Example: H167852639363479 + * The Adyen alias of the card. Example: H167852639363479 + * @return alias The Adyen alias of the card. Example: H167852639363479 */ @JsonProperty(JSON_PROPERTY_ALIAS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -614,9 +576,9 @@ public String getAlias() { } /** - * The Adyen alias of the card. Example: H167852639363479 + * The Adyen alias of the card. Example: H167852639363479 * - * @param alias The Adyen alias of the card. Example: H167852639363479 + * @param alias The Adyen alias of the card. Example: H167852639363479 */ @JsonProperty(JSON_PROPERTY_ALIAS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -625,9 +587,9 @@ public void setAlias(String alias) { } /** - * The type of the card alias. Example: Default + * The type of the card alias. Example: Default * - * @param aliasType The type of the card alias. Example: Default + * @param aliasType The type of the card alias. Example: Default * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon aliasType(String aliasType) { @@ -636,9 +598,8 @@ public ResponseAdditionalDataCommon aliasType(String aliasType) { } /** - * The type of the card alias. Example: Default - * - * @return aliasType The type of the card alias. Example: Default + * The type of the card alias. Example: Default + * @return aliasType The type of the card alias. Example: Default */ @JsonProperty(JSON_PROPERTY_ALIAS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -647,9 +608,9 @@ public String getAliasType() { } /** - * The type of the card alias. Example: Default + * The type of the card alias. Example: Default * - * @param aliasType The type of the card alias. Example: Default + * @param aliasType The type of the card alias. Example: Default */ @JsonProperty(JSON_PROPERTY_ALIAS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -658,13 +619,9 @@ public void setAliasType(String aliasType) { } /** - * Authorisation code: * When the payment is authorised successfully, this field holds the - * authorisation code for the payment. * When the payment is not authorised, this field is empty. - * Example: 58747 + * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 * - * @param authCode Authorisation code: * When the payment is authorised successfully, this field - * holds the authorisation code for the payment. * When the payment is not authorised, this - * field is empty. Example: 58747 + * @param authCode Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon authCode(String authCode) { @@ -673,13 +630,8 @@ public ResponseAdditionalDataCommon authCode(String authCode) { } /** - * Authorisation code: * When the payment is authorised successfully, this field holds the - * authorisation code for the payment. * When the payment is not authorised, this field is empty. - * Example: 58747 - * - * @return authCode Authorisation code: * When the payment is authorised successfully, this field - * holds the authorisation code for the payment. * When the payment is not authorised, this - * field is empty. Example: 58747 + * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 + * @return authCode Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -688,13 +640,9 @@ public String getAuthCode() { } /** - * Authorisation code: * When the payment is authorised successfully, this field holds the - * authorisation code for the payment. * When the payment is not authorised, this field is empty. - * Example: 58747 + * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 * - * @param authCode Authorisation code: * When the payment is authorised successfully, this field - * holds the authorisation code for the payment. * When the payment is not authorised, this - * field is empty. Example: 58747 + * @param authCode Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -715,7 +663,6 @@ public ResponseAdditionalDataCommon authorisationMid(String authorisationMid) { /** * Merchant ID known by the acquirer. - * * @return authorisationMid Merchant ID known by the acquirer. */ @JsonProperty(JSON_PROPERTY_AUTHORISATION_MID) @@ -736,11 +683,9 @@ public void setAuthorisationMid(String authorisationMid) { } /** - * The currency of the authorised amount, as a three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * - * @param authorisedAmountCurrency The currency of the authorised amount, as a three-character - * [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @param authorisedAmountCurrency The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon authorisedAmountCurrency(String authorisedAmountCurrency) { @@ -749,11 +694,8 @@ public ResponseAdditionalDataCommon authorisedAmountCurrency(String authorisedAm } /** - * The currency of the authorised amount, as a three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). - * - * @return authorisedAmountCurrency The currency of the authorised amount, as a three-character - * [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @return authorisedAmountCurrency The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_AUTHORISED_AMOUNT_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -762,11 +704,9 @@ public String getAuthorisedAmountCurrency() { } /** - * The currency of the authorised amount, as a three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * - * @param authorisedAmountCurrency The currency of the authorised amount, as a three-character - * [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @param authorisedAmountCurrency The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_AUTHORISED_AMOUNT_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -775,12 +715,9 @@ public void setAuthorisedAmountCurrency(String authorisedAmountCurrency) { } /** - * Value of the amount authorised. This amount is represented in minor units according to the - * [following table](https://docs.adyen.com/development-resources/currency-codes). + * Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). * - * @param authorisedAmountValue Value of the amount authorised. This amount is represented in - * minor units according to the [following - * table](https://docs.adyen.com/development-resources/currency-codes). + * @param authorisedAmountValue Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon authorisedAmountValue(String authorisedAmountValue) { @@ -789,12 +726,8 @@ public ResponseAdditionalDataCommon authorisedAmountValue(String authorisedAmoun } /** - * Value of the amount authorised. This amount is represented in minor units according to the - * [following table](https://docs.adyen.com/development-resources/currency-codes). - * - * @return authorisedAmountValue Value of the amount authorised. This amount is represented in - * minor units according to the [following - * table](https://docs.adyen.com/development-resources/currency-codes). + * Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). + * @return authorisedAmountValue Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_AUTHORISED_AMOUNT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -803,12 +736,9 @@ public String getAuthorisedAmountValue() { } /** - * Value of the amount authorised. This amount is represented in minor units according to the - * [following table](https://docs.adyen.com/development-resources/currency-codes). + * Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). * - * @param authorisedAmountValue Value of the amount authorised. This amount is represented in - * minor units according to the [following - * table](https://docs.adyen.com/development-resources/currency-codes). + * @param authorisedAmountValue Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_AUTHORISED_AMOUNT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -817,13 +747,9 @@ public void setAuthorisedAmountValue(String authorisedAmountValue) { } /** - * The AVS result code of the payment, which provides information about the outcome of the AVS - * check. For possible values, see - * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). * - * @param avsResult The AVS result code of the payment, which provides information about the - * outcome of the AVS check. For possible values, see - * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * @param avsResult The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon avsResult(String avsResult) { @@ -832,13 +758,8 @@ public ResponseAdditionalDataCommon avsResult(String avsResult) { } /** - * The AVS result code of the payment, which provides information about the outcome of the AVS - * check. For possible values, see - * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). - * - * @return avsResult The AVS result code of the payment, which provides information about the - * outcome of the AVS check. For possible values, see - * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * @return avsResult The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). */ @JsonProperty(JSON_PROPERTY_AVS_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -847,13 +768,9 @@ public String getAvsResult() { } /** - * The AVS result code of the payment, which provides information about the outcome of the AVS - * check. For possible values, see - * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). * - * @param avsResult The AVS result code of the payment, which provides information about the - * outcome of the AVS check. For possible values, see - * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * @param avsResult The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). */ @JsonProperty(JSON_PROPERTY_AVS_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -862,9 +779,9 @@ public void setAvsResult(String avsResult) { } /** - * Raw AVS result received from the acquirer, where available. Example: D + * Raw AVS result received from the acquirer, where available. Example: D * - * @param avsResultRaw Raw AVS result received from the acquirer, where available. Example: D + * @param avsResultRaw Raw AVS result received from the acquirer, where available. Example: D * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon avsResultRaw(String avsResultRaw) { @@ -873,9 +790,8 @@ public ResponseAdditionalDataCommon avsResultRaw(String avsResultRaw) { } /** - * Raw AVS result received from the acquirer, where available. Example: D - * - * @return avsResultRaw Raw AVS result received from the acquirer, where available. Example: D + * Raw AVS result received from the acquirer, where available. Example: D + * @return avsResultRaw Raw AVS result received from the acquirer, where available. Example: D */ @JsonProperty(JSON_PROPERTY_AVS_RESULT_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -884,9 +800,9 @@ public String getAvsResultRaw() { } /** - * Raw AVS result received from the acquirer, where available. Example: D + * Raw AVS result received from the acquirer, where available. Example: D * - * @param avsResultRaw Raw AVS result received from the acquirer, where available. Example: D + * @param avsResultRaw Raw AVS result received from the acquirer, where available. Example: D */ @JsonProperty(JSON_PROPERTY_AVS_RESULT_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -895,10 +811,9 @@ public void setAvsResultRaw(String avsResultRaw) { } /** - * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. + * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. * - * @param bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit - * transactions. + * @param bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon bic(String bic) { @@ -907,10 +822,8 @@ public ResponseAdditionalDataCommon bic(String bic) { } /** - * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. - * - * @return bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit - * transactions. + * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. + * @return bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. */ @JsonProperty(JSON_PROPERTY_BIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -919,10 +832,9 @@ public String getBic() { } /** - * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. + * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. * - * @param bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit - * transactions. + * @param bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. */ @JsonProperty(JSON_PROPERTY_BIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -943,7 +855,6 @@ public ResponseAdditionalDataCommon coBrandedWith(String coBrandedWith) { /** * Includes the co-branded card information. - * * @return coBrandedWith Includes the co-branded card information. */ @JsonProperty(JSON_PROPERTY_CO_BRANDED_WITH) @@ -976,7 +887,6 @@ public ResponseAdditionalDataCommon cvcResult(String cvcResult) { /** * The result of CVC verification. - * * @return cvcResult The result of CVC verification. */ @JsonProperty(JSON_PROPERTY_CVC_RESULT) @@ -1009,7 +919,6 @@ public ResponseAdditionalDataCommon cvcResultRaw(String cvcResultRaw) { /** * The raw result of CVC verification. - * * @return cvcResultRaw The raw result of CVC verification. */ @JsonProperty(JSON_PROPERTY_CVC_RESULT_RAW) @@ -1030,11 +939,9 @@ public void setCvcResultRaw(String cvcResultRaw) { } /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a - * single transaction. + * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. * - * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the - * DS to identify a single transaction. + * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon dsTransID(String dsTransID) { @@ -1043,11 +950,8 @@ public ResponseAdditionalDataCommon dsTransID(String dsTransID) { } /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a - * single transaction. - * - * @return dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the - * DS to identify a single transaction. + * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. + * @return dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. */ @JsonProperty(JSON_PROPERTY_DS_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1056,11 +960,9 @@ public String getDsTransID() { } /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a - * single transaction. + * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. * - * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the - * DS to identify a single transaction. + * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. */ @JsonProperty(JSON_PROPERTY_DS_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1069,11 +971,9 @@ public void setDsTransID(String dsTransID) { } /** - * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. - * Example: 02 + * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 * - * @param eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment - * session. Example: 02 + * @param eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon eci(String eci) { @@ -1082,11 +982,8 @@ public ResponseAdditionalDataCommon eci(String eci) { } /** - * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. - * Example: 02 - * - * @return eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment - * session. Example: 02 + * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 + * @return eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 */ @JsonProperty(JSON_PROPERTY_ECI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1095,11 +992,9 @@ public String getEci() { } /** - * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. - * Example: 02 + * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 * - * @param eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment - * session. Example: 02 + * @param eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 */ @JsonProperty(JSON_PROPERTY_ECI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1108,10 +1003,9 @@ public void setEci(String eci) { } /** - * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. + * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. * - * @param expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a - * card payment. + * @param expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon expiryDate(String expiryDate) { @@ -1120,10 +1014,8 @@ public ResponseAdditionalDataCommon expiryDate(String expiryDate) { } /** - * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. - * - * @return expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a - * card payment. + * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. + * @return expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. */ @JsonProperty(JSON_PROPERTY_EXPIRY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1132,10 +1024,9 @@ public String getExpiryDate() { } /** - * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. + * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. * - * @param expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a - * card payment. + * @param expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. */ @JsonProperty(JSON_PROPERTY_EXPIRY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1144,11 +1035,9 @@ public void setExpiryDate(String expiryDate) { } /** - * The currency of the extra amount charged due to additional amounts set in the skin used in the - * HPP payment request. Example: EUR + * The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR * - * @param extraCostsCurrency The currency of the extra amount charged due to additional amounts - * set in the skin used in the HPP payment request. Example: EUR + * @param extraCostsCurrency The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon extraCostsCurrency(String extraCostsCurrency) { @@ -1157,11 +1046,8 @@ public ResponseAdditionalDataCommon extraCostsCurrency(String extraCostsCurrency } /** - * The currency of the extra amount charged due to additional amounts set in the skin used in the - * HPP payment request. Example: EUR - * - * @return extraCostsCurrency The currency of the extra amount charged due to additional amounts - * set in the skin used in the HPP payment request. Example: EUR + * The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR + * @return extraCostsCurrency The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR */ @JsonProperty(JSON_PROPERTY_EXTRA_COSTS_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1170,11 +1056,9 @@ public String getExtraCostsCurrency() { } /** - * The currency of the extra amount charged due to additional amounts set in the skin used in the - * HPP payment request. Example: EUR + * The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR * - * @param extraCostsCurrency The currency of the extra amount charged due to additional amounts - * set in the skin used in the HPP payment request. Example: EUR + * @param extraCostsCurrency The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR */ @JsonProperty(JSON_PROPERTY_EXTRA_COSTS_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1183,11 +1067,9 @@ public void setExtraCostsCurrency(String extraCostsCurrency) { } /** - * The value of the extra amount charged due to additional amounts set in the skin used in the HPP - * payment request. The amount is in minor units. + * The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. * - * @param extraCostsValue The value of the extra amount charged due to additional amounts set in - * the skin used in the HPP payment request. The amount is in minor units. + * @param extraCostsValue The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon extraCostsValue(String extraCostsValue) { @@ -1196,11 +1078,8 @@ public ResponseAdditionalDataCommon extraCostsValue(String extraCostsValue) { } /** - * The value of the extra amount charged due to additional amounts set in the skin used in the HPP - * payment request. The amount is in minor units. - * - * @return extraCostsValue The value of the extra amount charged due to additional amounts set in - * the skin used in the HPP payment request. The amount is in minor units. + * The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. + * @return extraCostsValue The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. */ @JsonProperty(JSON_PROPERTY_EXTRA_COSTS_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1209,11 +1088,9 @@ public String getExtraCostsValue() { } /** - * The value of the extra amount charged due to additional amounts set in the skin used in the HPP - * payment request. The amount is in minor units. + * The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. * - * @param extraCostsValue The value of the extra amount charged due to additional amounts set in - * the skin used in the HPP payment request. The amount is in minor units. + * @param extraCostsValue The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. */ @JsonProperty(JSON_PROPERTY_EXTRA_COSTS_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1222,25 +1099,19 @@ public void setExtraCostsValue(String extraCostsValue) { } /** - * The fraud score due to a particular fraud check. The fraud check name is found in the key of - * the key-value pair. + * The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. * - * @param fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The - * fraud check name is found in the key of the key-value pair. + * @param fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon fraudCheckItemNrFraudCheckname( - String fraudCheckItemNrFraudCheckname) { + public ResponseAdditionalDataCommon fraudCheckItemNrFraudCheckname(String fraudCheckItemNrFraudCheckname) { this.fraudCheckItemNrFraudCheckname = fraudCheckItemNrFraudCheckname; return this; } /** - * The fraud score due to a particular fraud check. The fraud check name is found in the key of - * the key-value pair. - * - * @return fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The - * fraud check name is found in the key of the key-value pair. + * The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. + * @return fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. */ @JsonProperty(JSON_PROPERTY_FRAUD_CHECK_ITEM_NR_FRAUD_CHECKNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1249,11 +1120,9 @@ public String getFraudCheckItemNrFraudCheckname() { } /** - * The fraud score due to a particular fraud check. The fraud check name is found in the key of - * the key-value pair. + * The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. * - * @param fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The - * fraud check name is found in the key of the key-value pair. + * @param fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. */ @JsonProperty(JSON_PROPERTY_FRAUD_CHECK_ITEM_NR_FRAUD_CHECKNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1274,7 +1143,6 @@ public ResponseAdditionalDataCommon fraudManualReview(String fraudManualReview) /** * Indicates if the payment is sent to manual review. - * * @return fraudManualReview Indicates if the payment is sent to manual review. */ @JsonProperty(JSON_PROPERTY_FRAUD_MANUAL_REVIEW) @@ -1307,7 +1175,6 @@ public ResponseAdditionalDataCommon fraudResultType(FraudResultTypeEnum fraudRes /** * The fraud result properties of the payment. - * * @return fraudResultType The fraud result properties of the payment. */ @JsonProperty(JSON_PROPERTY_FRAUD_RESULT_TYPE) @@ -1328,16 +1195,9 @@ public void setFraudResultType(FraudResultTypeEnum fraudResultType) { } /** - * The risk level of the transaction as classified by the [machine - * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) - * fraud risk rule. The risk level indicates the likelihood that a transaction will result in a - * fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh * - * @param fraudRiskLevel The risk level of the transaction as classified by the [machine - * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) - * fraud risk rule. The risk level indicates the likelihood that a transaction will result in - * a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * - * veryHigh + * @param fraudRiskLevel The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon fraudRiskLevel(FraudRiskLevelEnum fraudRiskLevel) { @@ -1346,16 +1206,8 @@ public ResponseAdditionalDataCommon fraudRiskLevel(FraudRiskLevelEnum fraudRiskL } /** - * The risk level of the transaction as classified by the [machine - * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) - * fraud risk rule. The risk level indicates the likelihood that a transaction will result in a - * fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh - * - * @return fraudRiskLevel The risk level of the transaction as classified by the [machine - * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) - * fraud risk rule. The risk level indicates the likelihood that a transaction will result in - * a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * - * veryHigh + * The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * @return fraudRiskLevel The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh */ @JsonProperty(JSON_PROPERTY_FRAUD_RISK_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1364,16 +1216,9 @@ public FraudRiskLevelEnum getFraudRiskLevel() { } /** - * The risk level of the transaction as classified by the [machine - * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) - * fraud risk rule. The risk level indicates the likelihood that a transaction will result in a - * fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh * - * @param fraudRiskLevel The risk level of the transaction as classified by the [machine - * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) - * fraud risk rule. The risk level indicates the likelihood that a transaction will result in - * a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * - * veryHigh + * @param fraudRiskLevel The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh */ @JsonProperty(JSON_PROPERTY_FRAUD_RISK_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1382,18 +1227,9 @@ public void setFraudRiskLevel(FraudRiskLevelEnum fraudRiskLevel) { } /** - * Information regarding the funding type of the card. The possible return values are: * CHARGE * - * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > - * This functionality requires additional configuration on Adyen's end. To enable it, contact - * the Support Team. For receiving this field in the notification, enable **Include Funding - * Source** in **Notifications** > **Additional settings**. + * Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. * - * @param fundingSource Information regarding the funding type of the card. The possible return - * values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * - * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional - * configuration on Adyen's end. To enable it, contact the Support Team. For receiving - * this field in the notification, enable **Include Funding Source** in **Notifications** > - * **Additional settings**. + * @param fundingSource Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon fundingSource(String fundingSource) { @@ -1402,18 +1238,8 @@ public ResponseAdditionalDataCommon fundingSource(String fundingSource) { } /** - * Information regarding the funding type of the card. The possible return values are: * CHARGE * - * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > - * This functionality requires additional configuration on Adyen's end. To enable it, contact - * the Support Team. For receiving this field in the notification, enable **Include Funding - * Source** in **Notifications** > **Additional settings**. - * - * @return fundingSource Information regarding the funding type of the card. The possible return - * values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * - * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional - * configuration on Adyen's end. To enable it, contact the Support Team. For receiving - * this field in the notification, enable **Include Funding Source** in **Notifications** > - * **Additional settings**. + * Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. + * @return fundingSource Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1422,18 +1248,9 @@ public String getFundingSource() { } /** - * Information regarding the funding type of the card. The possible return values are: * CHARGE * - * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > - * This functionality requires additional configuration on Adyen's end. To enable it, contact - * the Support Team. For receiving this field in the notification, enable **Include Funding - * Source** in **Notifications** > **Additional settings**. + * Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. * - * @param fundingSource Information regarding the funding type of the card. The possible return - * values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * - * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional - * configuration on Adyen's end. To enable it, contact the Support Team. For receiving - * this field in the notification, enable **Include Funding Source** in **Notifications** > - * **Additional settings**. + * @param fundingSource Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1442,17 +1259,9 @@ public void setFundingSource(String fundingSource) { } /** - * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * - * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or - * issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you - * verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or - * \"D\". + * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". * - * @param fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds - * are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is - * Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) - * > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is - * \"Y\" or \"D\". + * @param fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon fundsAvailability(String fundsAvailability) { @@ -1461,17 +1270,8 @@ public ResponseAdditionalDataCommon fundsAvailability(String fundsAvailability) } /** - * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * - * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or - * issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you - * verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or - * \"D\". - * - * @return fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds - * are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is - * Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) - * > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is - * \"Y\" or \"D\". + * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". + * @return fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". */ @JsonProperty(JSON_PROPERTY_FUNDS_AVAILABILITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1480,17 +1280,9 @@ public String getFundsAvailability() { } /** - * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * - * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or - * issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you - * verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or - * \"D\". + * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". * - * @param fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds - * are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is - * Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) - * > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is - * \"Y\" or \"D\". + * @param fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". */ @JsonProperty(JSON_PROPERTY_FUNDS_AVAILABILITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1499,26 +1291,9 @@ public void setFundsAvailability(String fundsAvailability) { } /** - * Provides the more granular indication of why a transaction was refused. When a transaction - * fails with either \"Refused\", \"Restricted Card\", \"Transaction Not - * Permitted\", \"Not supported\" or \"DeclinedNon Generic\" - * refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into - * the refusal reason. If an inferred refusal reason is available, the - * `inferredRefusalReason`, field is populated and the `refusalReason`, is set - * to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * - * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * - * Card Updated * Low Authrate Bin * Non-reloadable prepaid card - * - * @param inferredRefusalReason Provides the more granular indication of why a transaction was - * refused. When a transaction fails with either \"Refused\", \"Restricted - * Card\", \"Transaction Not Permitted\", \"Not supported\" or - * \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its - * PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is - * available, the `inferredRefusalReason`, field is populated and the - * `refusalReason`, is set to \"Not Supported\". Possible values: * 3D - * Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not - * Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable - * prepaid card + * Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card + * + * @param inferredRefusalReason Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon inferredRefusalReason(String inferredRefusalReason) { @@ -1527,26 +1302,8 @@ public ResponseAdditionalDataCommon inferredRefusalReason(String inferredRefusal } /** - * Provides the more granular indication of why a transaction was refused. When a transaction - * fails with either \"Refused\", \"Restricted Card\", \"Transaction Not - * Permitted\", \"Not supported\" or \"DeclinedNon Generic\" - * refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into - * the refusal reason. If an inferred refusal reason is available, the - * `inferredRefusalReason`, field is populated and the `refusalReason`, is set - * to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * - * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * - * Card Updated * Low Authrate Bin * Non-reloadable prepaid card - * - * @return inferredRefusalReason Provides the more granular indication of why a transaction was - * refused. When a transaction fails with either \"Refused\", \"Restricted - * Card\", \"Transaction Not Permitted\", \"Not supported\" or - * \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its - * PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is - * available, the `inferredRefusalReason`, field is populated and the - * `refusalReason`, is set to \"Not Supported\". Possible values: * 3D - * Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not - * Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable - * prepaid card + * Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card + * @return inferredRefusalReason Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card */ @JsonProperty(JSON_PROPERTY_INFERRED_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1555,26 +1312,9 @@ public String getInferredRefusalReason() { } /** - * Provides the more granular indication of why a transaction was refused. When a transaction - * fails with either \"Refused\", \"Restricted Card\", \"Transaction Not - * Permitted\", \"Not supported\" or \"DeclinedNon Generic\" - * refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into - * the refusal reason. If an inferred refusal reason is available, the - * `inferredRefusalReason`, field is populated and the `refusalReason`, is set - * to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * - * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * - * Card Updated * Low Authrate Bin * Non-reloadable prepaid card - * - * @param inferredRefusalReason Provides the more granular indication of why a transaction was - * refused. When a transaction fails with either \"Refused\", \"Restricted - * Card\", \"Transaction Not Permitted\", \"Not supported\" or - * \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its - * PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is - * available, the `inferredRefusalReason`, field is populated and the - * `refusalReason`, is set to \"Not Supported\". Possible values: * 3D - * Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not - * Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable - * prepaid card + * Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card + * + * @param inferredRefusalReason Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card */ @JsonProperty(JSON_PROPERTY_INFERRED_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1595,7 +1335,6 @@ public ResponseAdditionalDataCommon isCardCommercial(String isCardCommercial) { /** * Indicates if the card is used for business purposes only. - * * @return isCardCommercial Indicates if the card is used for business purposes only. */ @JsonProperty(JSON_PROPERTY_IS_CARD_COMMERCIAL) @@ -1616,10 +1355,9 @@ public void setIsCardCommercial(String isCardCommercial) { } /** - * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP + * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP * - * @param issuerCountry The issuing country of the card based on the BIN list that Adyen - * maintains. Example: JP + * @param issuerCountry The issuing country of the card based on the BIN list that Adyen maintains. Example: JP * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon issuerCountry(String issuerCountry) { @@ -1628,10 +1366,8 @@ public ResponseAdditionalDataCommon issuerCountry(String issuerCountry) { } /** - * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP - * - * @return issuerCountry The issuing country of the card based on the BIN list that Adyen - * maintains. Example: JP + * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP + * @return issuerCountry The issuing country of the card based on the BIN list that Adyen maintains. Example: JP */ @JsonProperty(JSON_PROPERTY_ISSUER_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1640,10 +1376,9 @@ public String getIssuerCountry() { } /** - * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP + * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP * - * @param issuerCountry The issuing country of the card based on the BIN list that Adyen - * maintains. Example: JP + * @param issuerCountry The issuing country of the card based on the BIN list that Adyen maintains. Example: JP */ @JsonProperty(JSON_PROPERTY_ISSUER_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1654,8 +1389,7 @@ public void setIssuerCountry(String issuerCountry) { /** * A Boolean value indicating whether a liability shift was offered for this payment. * - * @param liabilityShift A Boolean value indicating whether a liability shift was offered for this - * payment. + * @param liabilityShift A Boolean value indicating whether a liability shift was offered for this payment. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon liabilityShift(String liabilityShift) { @@ -1665,9 +1399,7 @@ public ResponseAdditionalDataCommon liabilityShift(String liabilityShift) { /** * A Boolean value indicating whether a liability shift was offered for this payment. - * - * @return liabilityShift A Boolean value indicating whether a liability shift was offered for - * this payment. + * @return liabilityShift A Boolean value indicating whether a liability shift was offered for this payment. */ @JsonProperty(JSON_PROPERTY_LIABILITY_SHIFT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1678,8 +1410,7 @@ public String getLiabilityShift() { /** * A Boolean value indicating whether a liability shift was offered for this payment. * - * @param liabilityShift A Boolean value indicating whether a liability shift was offered for this - * payment. + * @param liabilityShift A Boolean value indicating whether a liability shift was offered for this payment. */ @JsonProperty(JSON_PROPERTY_LIABILITY_SHIFT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1688,12 +1419,9 @@ public void setLiabilityShift(String liabilityShift) { } /** - * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine - * characters long. > Contact Support Team to enable this field. + * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. * - * @param mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six - * characters and a maximum of nine characters long. > Contact Support Team to enable this - * field. + * @param mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon mcBankNetReferenceNumber(String mcBankNetReferenceNumber) { @@ -1702,12 +1430,8 @@ public ResponseAdditionalDataCommon mcBankNetReferenceNumber(String mcBankNetRef } /** - * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine - * characters long. > Contact Support Team to enable this field. - * - * @return mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six - * characters and a maximum of nine characters long. > Contact Support Team to enable this - * field. + * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. + * @return mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. */ @JsonProperty(JSON_PROPERTY_MC_BANK_NET_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1716,12 +1440,9 @@ public String getMcBankNetReferenceNumber() { } /** - * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine - * characters long. > Contact Support Team to enable this field. + * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. * - * @param mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six - * characters and a maximum of nine characters long. > Contact Support Team to enable this - * field. + * @param mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. */ @JsonProperty(JSON_PROPERTY_MC_BANK_NET_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1730,15 +1451,9 @@ public void setMcBankNetReferenceNumber(String mcBankNetReferenceNumber) { } /** - * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If - * present, the MAC contains information about why the payment failed, and whether it can be - * retried. For more information see [Mastercard Merchant Advice - * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). * - * @param merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers - * for refused payments. If present, the MAC contains information about why the payment - * failed, and whether it can be retried. For more information see [Mastercard Merchant Advice - * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * @param merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon merchantAdviceCode(String merchantAdviceCode) { @@ -1747,15 +1462,8 @@ public ResponseAdditionalDataCommon merchantAdviceCode(String merchantAdviceCode } /** - * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If - * present, the MAC contains information about why the payment failed, and whether it can be - * retried. For more information see [Mastercard Merchant Advice - * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). - * - * @return merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers - * for refused payments. If present, the MAC contains information about why the payment - * failed, and whether it can be retried. For more information see [Mastercard Merchant Advice - * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * @return merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). */ @JsonProperty(JSON_PROPERTY_MERCHANT_ADVICE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1764,15 +1472,9 @@ public String getMerchantAdviceCode() { } /** - * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If - * present, the MAC contains information about why the payment failed, and whether it can be - * retried. For more information see [Mastercard Merchant Advice - * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). * - * @param merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers - * for refused payments. If present, the MAC contains information about why the payment - * failed, and whether it can be retried. For more information see [Mastercard Merchant Advice - * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * @param merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). */ @JsonProperty(JSON_PROPERTY_MERCHANT_ADVICE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1793,7 +1495,6 @@ public ResponseAdditionalDataCommon merchantReference(String merchantReference) /** * The reference provided for the transaction. - * * @return merchantReference The reference provided for the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCE) @@ -1814,13 +1515,9 @@ public void setMerchantReference(String merchantReference) { } /** - * Returned in the response if you are not tokenizing with Adyen and are using the - * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either - * the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. * - * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are - * using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This - * contains either the Mastercard Trace ID or the Visa Transaction ID. + * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon networkTxReference(String networkTxReference) { @@ -1829,13 +1526,8 @@ public ResponseAdditionalDataCommon networkTxReference(String networkTxReference } /** - * Returned in the response if you are not tokenizing with Adyen and are using the - * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either - * the Mastercard Trace ID or the Visa Transaction ID. - * - * @return networkTxReference Returned in the response if you are not tokenizing with Adyen and - * are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This - * contains either the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * @return networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. */ @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1844,13 +1536,9 @@ public String getNetworkTxReference() { } /** - * Returned in the response if you are not tokenizing with Adyen and are using the - * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either - * the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. * - * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are - * using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This - * contains either the Mastercard Trace ID or the Visa Transaction ID. + * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. */ @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1859,10 +1547,9 @@ public void setNetworkTxReference(String networkTxReference) { } /** - * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. + * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. * - * @param ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit - * transactions. + * @param ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon ownerName(String ownerName) { @@ -1871,10 +1558,8 @@ public ResponseAdditionalDataCommon ownerName(String ownerName) { } /** - * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. - * - * @return ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit - * transactions. + * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. + * @return ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1883,10 +1568,9 @@ public String getOwnerName() { } /** - * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. + * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. * - * @param ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit - * transactions. + * @param ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1895,12 +1579,9 @@ public void setOwnerName(String ownerName) { } /** - * The Payment Account Reference (PAR) value links a network token with the underlying primary - * account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. + * The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. * - * @param paymentAccountReference The Payment Account Reference (PAR) value links a network token - * with the underlying primary account number (PAN). The PAR value consists of 29 uppercase - * alphanumeric characters. + * @param paymentAccountReference The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon paymentAccountReference(String paymentAccountReference) { @@ -1909,12 +1590,8 @@ public ResponseAdditionalDataCommon paymentAccountReference(String paymentAccoun } /** - * The Payment Account Reference (PAR) value links a network token with the underlying primary - * account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. - * - * @return paymentAccountReference The Payment Account Reference (PAR) value links a network token - * with the underlying primary account number (PAN). The PAR value consists of 29 uppercase - * alphanumeric characters. + * The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. + * @return paymentAccountReference The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACCOUNT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1923,12 +1600,9 @@ public String getPaymentAccountReference() { } /** - * The Payment Account Reference (PAR) value links a network token with the underlying primary - * account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. + * The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. * - * @param paymentAccountReference The Payment Account Reference (PAR) value links a network token - * with the underlying primary account number (PAN). The PAR value consists of 29 uppercase - * alphanumeric characters. + * @param paymentAccountReference The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACCOUNT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1949,7 +1623,6 @@ public ResponseAdditionalDataCommon paymentMethod(String paymentMethod) { /** * The payment method used in the transaction. - * * @return paymentMethod The payment method used in the transaction. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @@ -1970,15 +1643,9 @@ public void setPaymentMethod(String paymentMethod) { } /** - * The Adyen sub-variant of the payment method used for the payment request. For more information, - * refer to - * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). - * Example: mcpro + * The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro * - * @param paymentMethodVariant The Adyen sub-variant of the payment method used for the payment - * request. For more information, refer to - * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). - * Example: mcpro + * @param paymentMethodVariant The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon paymentMethodVariant(String paymentMethodVariant) { @@ -1987,15 +1654,8 @@ public ResponseAdditionalDataCommon paymentMethodVariant(String paymentMethodVar } /** - * The Adyen sub-variant of the payment method used for the payment request. For more information, - * refer to - * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). - * Example: mcpro - * - * @return paymentMethodVariant The Adyen sub-variant of the payment method used for the payment - * request. For more information, refer to - * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). - * Example: mcpro + * The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro + * @return paymentMethodVariant The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2004,15 +1664,9 @@ public String getPaymentMethodVariant() { } /** - * The Adyen sub-variant of the payment method used for the payment request. For more information, - * refer to - * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). - * Example: mcpro + * The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro * - * @param paymentMethodVariant The Adyen sub-variant of the payment method used for the payment - * request. For more information, refer to - * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). - * Example: mcpro + * @param paymentMethodVariant The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2021,14 +1675,9 @@ public void setPaymentMethodVariant(String paymentMethodVariant) { } /** - * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * - * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" - * (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) + * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) * - * @param payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * - * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) - * * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" - * (unknown) + * @param payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon payoutEligible(String payoutEligible) { @@ -2037,14 +1686,8 @@ public ResponseAdditionalDataCommon payoutEligible(String payoutEligible) { } /** - * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * - * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" - * (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) - * - * @return payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * - * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) - * * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" - * (unknown) + * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) + * @return payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) */ @JsonProperty(JSON_PROPERTY_PAYOUT_ELIGIBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2053,14 +1696,9 @@ public String getPayoutEligible() { } /** - * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * - * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" - * (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) + * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) * - * @param payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * - * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) - * * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" - * (unknown) + * @param payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) */ @JsonProperty(JSON_PROPERTY_PAYOUT_ELIGIBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2069,27 +1707,19 @@ public void setPayoutEligible(String payoutEligible) { } /** - * The response code from the Real Time Account Updater service. Possible return values are: * - * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder + * The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder * - * @param realtimeAccountUpdaterStatus The response code from the Real Time Account Updater - * service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * - * ContactCardAccountHolder + * @param realtimeAccountUpdaterStatus The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon realtimeAccountUpdaterStatus( - String realtimeAccountUpdaterStatus) { + public ResponseAdditionalDataCommon realtimeAccountUpdaterStatus(String realtimeAccountUpdaterStatus) { this.realtimeAccountUpdaterStatus = realtimeAccountUpdaterStatus; return this; } /** - * The response code from the Real Time Account Updater service. Possible return values are: * - * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder - * - * @return realtimeAccountUpdaterStatus The response code from the Real Time Account Updater - * service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * - * ContactCardAccountHolder + * The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder + * @return realtimeAccountUpdaterStatus The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder */ @JsonProperty(JSON_PROPERTY_REALTIME_ACCOUNT_UPDATER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2098,12 +1728,9 @@ public String getRealtimeAccountUpdaterStatus() { } /** - * The response code from the Real Time Account Updater service. Possible return values are: * - * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder + * The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder * - * @param realtimeAccountUpdaterStatus The response code from the Real Time Account Updater - * service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * - * ContactCardAccountHolder + * @param realtimeAccountUpdaterStatus The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder */ @JsonProperty(JSON_PROPERTY_REALTIME_ACCOUNT_UPDATER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2124,7 +1751,6 @@ public ResponseAdditionalDataCommon receiptFreeText(String receiptFreeText) { /** * Message to be displayed on the terminal. - * * @return receiptFreeText Message to be displayed on the terminal. */ @JsonProperty(JSON_PROPERTY_RECEIPT_FREE_TEXT) @@ -2157,7 +1783,6 @@ public ResponseAdditionalDataCommon recurringContractTypes(String recurringContr /** * The recurring contract types applicable to the transaction. - * * @return recurringContractTypes The recurring contract types applicable to the transaction. */ @JsonProperty(JSON_PROPERTY_RECURRING_CONTRACT_TYPES) @@ -2178,29 +1803,19 @@ public void setRecurringContractTypes(String recurringContractTypes) { } /** - * The `pspReference`, of the first recurring payment that created the recurring detail. - * This functionality requires additional configuration on Adyen's end. To enable it, contact - * the Support Team. + * The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. * - * @param recurringFirstPspReference The `pspReference`, of the first recurring payment - * that created the recurring detail. This functionality requires additional configuration on - * Adyen's end. To enable it, contact the Support Team. + * @param recurringFirstPspReference The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon recurringFirstPspReference( - String recurringFirstPspReference) { + public ResponseAdditionalDataCommon recurringFirstPspReference(String recurringFirstPspReference) { this.recurringFirstPspReference = recurringFirstPspReference; return this; } /** - * The `pspReference`, of the first recurring payment that created the recurring detail. - * This functionality requires additional configuration on Adyen's end. To enable it, contact - * the Support Team. - * - * @return recurringFirstPspReference The `pspReference`, of the first recurring payment - * that created the recurring detail. This functionality requires additional configuration on - * Adyen's end. To enable it, contact the Support Team. + * The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. + * @return recurringFirstPspReference The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. */ @JsonProperty(JSON_PROPERTY_RECURRING_FIRST_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2209,13 +1824,9 @@ public String getRecurringFirstPspReference() { } /** - * The `pspReference`, of the first recurring payment that created the recurring detail. - * This functionality requires additional configuration on Adyen's end. To enable it, contact - * the Support Team. + * The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. * - * @param recurringFirstPspReference The `pspReference`, of the first recurring payment - * that created the recurring detail. This functionality requires additional configuration on - * Adyen's end. To enable it, contact the Support Team. + * @param recurringFirstPspReference The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. */ @JsonProperty(JSON_PROPERTY_RECURRING_FIRST_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2226,29 +1837,24 @@ public void setRecurringFirstPspReference(String recurringFirstPspReference) { /** * The reference that uniquely identifies the recurring transaction. * - * @param recurringRecurringDetailReference The reference that uniquely identifies the recurring - * transaction. + * @param recurringRecurringDetailReference The reference that uniquely identifies the recurring transaction. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v68 Use tokenization.storedPaymentMethodId instead. + * + * @deprecated since Adyen Checkout API v68 + * Use tokenization.storedPaymentMethodId instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use tokenization.storedPaymentMethodId - // instead. - public ResponseAdditionalDataCommon recurringRecurringDetailReference( - String recurringRecurringDetailReference) { + @Deprecated // deprecated since Adyen Checkout API v68: Use tokenization.storedPaymentMethodId instead. + public ResponseAdditionalDataCommon recurringRecurringDetailReference(String recurringRecurringDetailReference) { this.recurringRecurringDetailReference = recurringRecurringDetailReference; return this; } /** * The reference that uniquely identifies the recurring transaction. - * - * @return recurringRecurringDetailReference The reference that uniquely identifies the recurring - * transaction. - * @deprecated // deprecated since Adyen Checkout API v68: Use tokenization.storedPaymentMethodId - * instead. + * @return recurringRecurringDetailReference The reference that uniquely identifies the recurring transaction. + * @deprecated // deprecated since Adyen Checkout API v68: Use tokenization.storedPaymentMethodId instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use tokenization.storedPaymentMethodId - // instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use tokenization.storedPaymentMethodId instead. @JsonProperty(JSON_PROPERTY_RECURRING_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringRecurringDetailReference() { @@ -2258,12 +1864,12 @@ public String getRecurringRecurringDetailReference() { /** * The reference that uniquely identifies the recurring transaction. * - * @param recurringRecurringDetailReference The reference that uniquely identifies the recurring - * transaction. - * @deprecated since Adyen Checkout API v68 Use tokenization.storedPaymentMethodId instead. + * @param recurringRecurringDetailReference The reference that uniquely identifies the recurring transaction. + * + * @deprecated since Adyen Checkout API v68 + * Use tokenization.storedPaymentMethodId instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use tokenization.storedPaymentMethodId - // instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use tokenization.storedPaymentMethodId instead. @JsonProperty(JSON_PROPERTY_RECURRING_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringRecurringDetailReference(String recurringRecurringDetailReference) { @@ -2273,10 +1879,11 @@ public void setRecurringRecurringDetailReference(String recurringRecurringDetail /** * The provided reference of the shopper for a recurring transaction. * - * @param recurringShopperReference The provided reference of the shopper for a recurring - * transaction. + * @param recurringShopperReference The provided reference of the shopper for a recurring transaction. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v68 Use tokenization.shopperReference instead. + * + * @deprecated since Adyen Checkout API v68 + * Use tokenization.shopperReference instead. */ @Deprecated // deprecated since Adyen Checkout API v68: Use tokenization.shopperReference instead. public ResponseAdditionalDataCommon recurringShopperReference(String recurringShopperReference) { @@ -2286,11 +1893,8 @@ public ResponseAdditionalDataCommon recurringShopperReference(String recurringSh /** * The provided reference of the shopper for a recurring transaction. - * - * @return recurringShopperReference The provided reference of the shopper for a recurring - * transaction. - * @deprecated // deprecated since Adyen Checkout API v68: Use tokenization.shopperReference - * instead. + * @return recurringShopperReference The provided reference of the shopper for a recurring transaction. + * @deprecated // deprecated since Adyen Checkout API v68: Use tokenization.shopperReference instead. */ @Deprecated // deprecated since Adyen Checkout API v68: Use tokenization.shopperReference instead. @JsonProperty(JSON_PROPERTY_RECURRING_SHOPPER_REFERENCE) @@ -2302,9 +1906,10 @@ public String getRecurringShopperReference() { /** * The provided reference of the shopper for a recurring transaction. * - * @param recurringShopperReference The provided reference of the shopper for a recurring - * transaction. - * @deprecated since Adyen Checkout API v68 Use tokenization.shopperReference instead. + * @param recurringShopperReference The provided reference of the shopper for a recurring transaction. + * + * @deprecated since Adyen Checkout API v68 + * Use tokenization.shopperReference instead. */ @Deprecated // deprecated since Adyen Checkout API v68: Use tokenization.shopperReference instead. @JsonProperty(JSON_PROPERTY_RECURRING_SHOPPER_REFERENCE) @@ -2319,15 +1924,13 @@ public void setRecurringShopperReference(String recurringShopperReference) { * @param recurringProcessingModel The processing model used for the recurring transaction. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon recurringProcessingModel( - RecurringProcessingModelEnum recurringProcessingModel) { + public ResponseAdditionalDataCommon recurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) { this.recurringProcessingModel = recurringProcessingModel; return this; } /** * The processing model used for the recurring transaction. - * * @return recurringProcessingModel The processing model used for the recurring transaction. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @@ -2348,12 +1951,9 @@ public void setRecurringProcessingModel(RecurringProcessingModelEnum recurringPr } /** - * If the payment is referred, this field is set to true. This field is unavailable if the payment - * is referred and is usually not returned with ecommerce transactions. Example: true + * If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true * - * @param referred If the payment is referred, this field is set to true. This field is - * unavailable if the payment is referred and is usually not returned with ecommerce - * transactions. Example: true + * @param referred If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon referred(String referred) { @@ -2362,12 +1962,8 @@ public ResponseAdditionalDataCommon referred(String referred) { } /** - * If the payment is referred, this field is set to true. This field is unavailable if the payment - * is referred and is usually not returned with ecommerce transactions. Example: true - * - * @return referred If the payment is referred, this field is set to true. This field is - * unavailable if the payment is referred and is usually not returned with ecommerce - * transactions. Example: true + * If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true + * @return referred If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true */ @JsonProperty(JSON_PROPERTY_REFERRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2376,12 +1972,9 @@ public String getReferred() { } /** - * If the payment is referred, this field is set to true. This field is unavailable if the payment - * is referred and is usually not returned with ecommerce transactions. Example: true + * If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true * - * @param referred If the payment is referred, this field is set to true. This field is - * unavailable if the payment is referred and is usually not returned with ecommerce - * transactions. Example: true + * @param referred If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true */ @JsonProperty(JSON_PROPERTY_REFERRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2390,10 +1983,9 @@ public void setReferred(String referred) { } /** - * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED + * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED * - * @param refusalReasonRaw Raw refusal reason received from the acquirer, where available. - * Example: AUTHORISED + * @param refusalReasonRaw Raw refusal reason received from the acquirer, where available. Example: AUTHORISED * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon refusalReasonRaw(String refusalReasonRaw) { @@ -2402,10 +1994,8 @@ public ResponseAdditionalDataCommon refusalReasonRaw(String refusalReasonRaw) { } /** - * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED - * - * @return refusalReasonRaw Raw refusal reason received from the acquirer, where available. - * Example: AUTHORISED + * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED + * @return refusalReasonRaw Raw refusal reason received from the acquirer, where available. Example: AUTHORISED */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2414,10 +2004,9 @@ public String getRefusalReasonRaw() { } /** - * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED + * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED * - * @param refusalReasonRaw Raw refusal reason received from the acquirer, where available. - * Example: AUTHORISED + * @param refusalReasonRaw Raw refusal reason received from the acquirer, where available. Example: AUTHORISED */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2438,7 +2027,6 @@ public ResponseAdditionalDataCommon requestAmount(String requestAmount) { /** * The amount of the payment request. - * * @return requestAmount The amount of the payment request. */ @JsonProperty(JSON_PROPERTY_REQUEST_AMOUNT) @@ -2471,7 +2059,6 @@ public ResponseAdditionalDataCommon requestCurrencyCode(String requestCurrencyCo /** * The currency of the payment request. - * * @return requestCurrencyCode The currency of the payment request. */ @JsonProperty(JSON_PROPERTY_REQUEST_CURRENCY_CODE) @@ -2492,10 +2079,9 @@ public void setRequestCurrencyCode(String requestCurrencyCode) { } /** - * The shopper interaction type of the payment request. Example: Ecommerce + * The shopper interaction type of the payment request. Example: Ecommerce * - * @param shopperInteraction The shopper interaction type of the payment request. Example: - * Ecommerce + * @param shopperInteraction The shopper interaction type of the payment request. Example: Ecommerce * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon shopperInteraction(String shopperInteraction) { @@ -2504,10 +2090,8 @@ public ResponseAdditionalDataCommon shopperInteraction(String shopperInteraction } /** - * The shopper interaction type of the payment request. Example: Ecommerce - * - * @return shopperInteraction The shopper interaction type of the payment request. Example: - * Ecommerce + * The shopper interaction type of the payment request. Example: Ecommerce + * @return shopperInteraction The shopper interaction type of the payment request. Example: Ecommerce */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2516,10 +2100,9 @@ public String getShopperInteraction() { } /** - * The shopper interaction type of the payment request. Example: Ecommerce + * The shopper interaction type of the payment request. Example: Ecommerce * - * @param shopperInteraction The shopper interaction type of the payment request. Example: - * Ecommerce + * @param shopperInteraction The shopper interaction type of the payment request. Example: Ecommerce */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2528,10 +2111,9 @@ public void setShopperInteraction(String shopperInteraction) { } /** - * The shopperReference passed in the payment request. Example: AdyenTestShopperXX + * The shopperReference passed in the payment request. Example: AdyenTestShopperXX * - * @param shopperReference The shopperReference passed in the payment request. Example: - * AdyenTestShopperXX + * @param shopperReference The shopperReference passed in the payment request. Example: AdyenTestShopperXX * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon shopperReference(String shopperReference) { @@ -2540,10 +2122,8 @@ public ResponseAdditionalDataCommon shopperReference(String shopperReference) { } /** - * The shopperReference passed in the payment request. Example: AdyenTestShopperXX - * - * @return shopperReference The shopperReference passed in the payment request. Example: - * AdyenTestShopperXX + * The shopperReference passed in the payment request. Example: AdyenTestShopperXX + * @return shopperReference The shopperReference passed in the payment request. Example: AdyenTestShopperXX */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2552,10 +2132,9 @@ public String getShopperReference() { } /** - * The shopperReference passed in the payment request. Example: AdyenTestShopperXX + * The shopperReference passed in the payment request. Example: AdyenTestShopperXX * - * @param shopperReference The shopperReference passed in the payment request. Example: - * AdyenTestShopperXX + * @param shopperReference The shopperReference passed in the payment request. Example: AdyenTestShopperXX */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2564,9 +2143,9 @@ public void setShopperReference(String shopperReference) { } /** - * The terminal ID used in a point-of-sale payment. Example: 06022622 + * The terminal ID used in a point-of-sale payment. Example: 06022622 * - * @param terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 + * @param terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon terminalId(String terminalId) { @@ -2575,9 +2154,8 @@ public ResponseAdditionalDataCommon terminalId(String terminalId) { } /** - * The terminal ID used in a point-of-sale payment. Example: 06022622 - * - * @return terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 + * The terminal ID used in a point-of-sale payment. Example: 06022622 + * @return terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 */ @JsonProperty(JSON_PROPERTY_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2586,9 +2164,9 @@ public String getTerminalId() { } /** - * The terminal ID used in a point-of-sale payment. Example: 06022622 + * The terminal ID used in a point-of-sale payment. Example: 06022622 * - * @param terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 + * @param terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 */ @JsonProperty(JSON_PROPERTY_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2597,11 +2175,9 @@ public void setTerminalId(String terminalId) { } /** - * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: - * true + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true * - * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed - * on this payment. Example: true + * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon threeDAuthenticated(String threeDAuthenticated) { @@ -2610,11 +2186,8 @@ public ResponseAdditionalDataCommon threeDAuthenticated(String threeDAuthenticat } /** - * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: - * true - * - * @return threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed - * on this payment. Example: true + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + * @return threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2623,11 +2196,9 @@ public String getThreeDAuthenticated() { } /** - * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: - * true + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true * - * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed - * on this payment. Example: true + * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2636,23 +2207,19 @@ public void setThreeDAuthenticated(String threeDAuthenticated) { } /** - * The raw 3DS authentication result from the card issuer. Example: N + * The raw 3DS authentication result from the card issuer. Example: N * - * @param threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. - * Example: N + * @param threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. Example: N * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon threeDAuthenticatedResponse( - String threeDAuthenticatedResponse) { + public ResponseAdditionalDataCommon threeDAuthenticatedResponse(String threeDAuthenticatedResponse) { this.threeDAuthenticatedResponse = threeDAuthenticatedResponse; return this; } /** - * The raw 3DS authentication result from the card issuer. Example: N - * - * @return threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. - * Example: N + * The raw 3DS authentication result from the card issuer. Example: N + * @return threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. Example: N */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2661,10 +2228,9 @@ public String getThreeDAuthenticatedResponse() { } /** - * The raw 3DS authentication result from the card issuer. Example: N + * The raw 3DS authentication result from the card issuer. Example: N * - * @param threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. - * Example: N + * @param threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. Example: N */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2673,10 +2239,9 @@ public void setThreeDAuthenticatedResponse(String threeDAuthenticatedResponse) { } /** - * A Boolean value indicating whether 3DS was offered for this payment. Example: true + * A Boolean value indicating whether 3DS was offered for this payment. Example: true * - * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. - * Example: true + * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. Example: true * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon threeDOffered(String threeDOffered) { @@ -2685,10 +2250,8 @@ public ResponseAdditionalDataCommon threeDOffered(String threeDOffered) { } /** - * A Boolean value indicating whether 3DS was offered for this payment. Example: true - * - * @return threeDOffered A Boolean value indicating whether 3DS was offered for this payment. - * Example: true + * A Boolean value indicating whether 3DS was offered for this payment. Example: true + * @return threeDOffered A Boolean value indicating whether 3DS was offered for this payment. Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2697,10 +2260,9 @@ public String getThreeDOffered() { } /** - * A Boolean value indicating whether 3DS was offered for this payment. Example: true + * A Boolean value indicating whether 3DS was offered for this payment. Example: true * - * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. - * Example: true + * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2709,10 +2271,9 @@ public void setThreeDOffered(String threeDOffered) { } /** - * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y + * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y * - * @param threeDOfferedResponse The raw enrollment result from the 3DS directory services of the - * card schemes. Example: Y + * @param threeDOfferedResponse The raw enrollment result from the 3DS directory services of the card schemes. Example: Y * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon threeDOfferedResponse(String threeDOfferedResponse) { @@ -2721,10 +2282,8 @@ public ResponseAdditionalDataCommon threeDOfferedResponse(String threeDOfferedRe } /** - * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y - * - * @return threeDOfferedResponse The raw enrollment result from the 3DS directory services of the - * card schemes. Example: Y + * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y + * @return threeDOfferedResponse The raw enrollment result from the 3DS directory services of the card schemes. Example: Y */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2733,10 +2292,9 @@ public String getThreeDOfferedResponse() { } /** - * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y + * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y * - * @param threeDOfferedResponse The raw enrollment result from the 3DS directory services of the - * card schemes. Example: Y + * @param threeDOfferedResponse The raw enrollment result from the 3DS directory services of the card schemes. Example: Y */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2757,7 +2315,6 @@ public ResponseAdditionalDataCommon threeDSVersion(String threeDSVersion) { /** * The 3D Secure 2 version. - * * @return threeDSVersion The 3D Secure 2 version. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_VERSION) @@ -2780,21 +2337,17 @@ public void setThreeDSVersion(String threeDSVersion) { /** * The reference for the shopper that you sent when tokenizing the payment details. * - * @param tokenizationShopperReference The reference for the shopper that you sent when tokenizing - * the payment details. + * @param tokenizationShopperReference The reference for the shopper that you sent when tokenizing the payment details. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon tokenizationShopperReference( - String tokenizationShopperReference) { + public ResponseAdditionalDataCommon tokenizationShopperReference(String tokenizationShopperReference) { this.tokenizationShopperReference = tokenizationShopperReference; return this; } /** * The reference for the shopper that you sent when tokenizing the payment details. - * - * @return tokenizationShopperReference The reference for the shopper that you sent when - * tokenizing the payment details. + * @return tokenizationShopperReference The reference for the shopper that you sent when tokenizing the payment details. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2805,8 +2358,7 @@ public String getTokenizationShopperReference() { /** * The reference for the shopper that you sent when tokenizing the payment details. * - * @param tokenizationShopperReference The reference for the shopper that you sent when tokenizing - * the payment details. + * @param tokenizationShopperReference The reference for the shopper that you sent when tokenizing the payment details. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2815,29 +2367,19 @@ public void setTokenizationShopperReference(String tokenizationShopperReference) } /** - * The operation performed on the token. Possible values: * **created**: the token has been - * created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details - * have already been stored. + * The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. * - * @param tokenizationStoreOperationType The operation performed on the token. Possible values: * - * **created**: the token has been created. * **updated**: the existing token has been - * updated. * **alreadyExisting**: the details have already been stored. + * @param tokenizationStoreOperationType The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon tokenizationStoreOperationType( - TokenizationStoreOperationTypeEnum tokenizationStoreOperationType) { + public ResponseAdditionalDataCommon tokenizationStoreOperationType(TokenizationStoreOperationTypeEnum tokenizationStoreOperationType) { this.tokenizationStoreOperationType = tokenizationStoreOperationType; return this; } /** - * The operation performed on the token. Possible values: * **created**: the token has been - * created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details - * have already been stored. - * - * @return tokenizationStoreOperationType The operation performed on the token. Possible values: * - * **created**: the token has been created. * **updated**: the existing token has been - * updated. * **alreadyExisting**: the details have already been stored. + * The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. + * @return tokenizationStoreOperationType The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_STORE_OPERATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2846,39 +2388,30 @@ public TokenizationStoreOperationTypeEnum getTokenizationStoreOperationType() { } /** - * The operation performed on the token. Possible values: * **created**: the token has been - * created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details - * have already been stored. + * The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. * - * @param tokenizationStoreOperationType The operation performed on the token. Possible values: * - * **created**: the token has been created. * **updated**: the existing token has been - * updated. * **alreadyExisting**: the details have already been stored. + * @param tokenizationStoreOperationType The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_STORE_OPERATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTokenizationStoreOperationType( - TokenizationStoreOperationTypeEnum tokenizationStoreOperationType) { + public void setTokenizationStoreOperationType(TokenizationStoreOperationTypeEnum tokenizationStoreOperationType) { this.tokenizationStoreOperationType = tokenizationStoreOperationType; } /** * The reference that uniquely identifies tokenized payment details. * - * @param tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized - * payment details. + * @param tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized payment details. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon tokenizationStoredPaymentMethodId( - String tokenizationStoredPaymentMethodId) { + public ResponseAdditionalDataCommon tokenizationStoredPaymentMethodId(String tokenizationStoredPaymentMethodId) { this.tokenizationStoredPaymentMethodId = tokenizationStoredPaymentMethodId; return this; } /** * The reference that uniquely identifies tokenized payment details. - * - * @return tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized - * payment details. + * @return tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized payment details. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2889,8 +2422,7 @@ public String getTokenizationStoredPaymentMethodId() { /** * The reference that uniquely identifies tokenized payment details. * - * @param tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized - * payment details. + * @param tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized payment details. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2899,11 +2431,9 @@ public void setTokenizationStoredPaymentMethodId(String tokenizationStoredPaymen } /** - * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact - * Support Team to enable this field. + * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. * - * @param visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric - * characters. > Contact Support Team to enable this field. + * @param visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon visaTransactionId(String visaTransactionId) { @@ -2912,11 +2442,8 @@ public ResponseAdditionalDataCommon visaTransactionId(String visaTransactionId) } /** - * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact - * Support Team to enable this field. - * - * @return visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric - * characters. > Contact Support Team to enable this field. + * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. + * @return visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. */ @JsonProperty(JSON_PROPERTY_VISA_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2925,11 +2452,9 @@ public String getVisaTransactionId() { } /** - * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact - * Support Team to enable this field. + * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. * - * @param visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric - * characters. > Contact Support Team to enable this field. + * @param visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. */ @JsonProperty(JSON_PROPERTY_VISA_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2938,13 +2463,9 @@ public void setVisaTransactionId(String visaTransactionId) { } /** - * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded - * and is returned for transactions with directoryResponse 'N' or 'Y'. Example: - * ODgxNDc2MDg2MDExODk5MAAAAAA= + * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= * - * @param xid The 3DS transaction ID of the 3DS session sent in notifications. The value is - * Base64-encoded and is returned for transactions with directoryResponse 'N' or - * 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= + * @param xid The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon xid(String xid) { @@ -2953,13 +2474,8 @@ public ResponseAdditionalDataCommon xid(String xid) { } /** - * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded - * and is returned for transactions with directoryResponse 'N' or 'Y'. Example: - * ODgxNDc2MDg2MDExODk5MAAAAAA= - * - * @return xid The 3DS transaction ID of the 3DS session sent in notifications. The value is - * Base64-encoded and is returned for transactions with directoryResponse 'N' or - * 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= + * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= + * @return xid The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= */ @JsonProperty(JSON_PROPERTY_XID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2968,13 +2484,9 @@ public String getXid() { } /** - * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded - * and is returned for transactions with directoryResponse 'N' or 'Y'. Example: - * ODgxNDc2MDg2MDExODk5MAAAAAA= + * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= * - * @param xid The 3DS transaction ID of the 3DS session sent in notifications. The value is - * Base64-encoded and is returned for transactions with directoryResponse 'N' or - * 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= + * @param xid The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= */ @JsonProperty(JSON_PROPERTY_XID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2982,7 +2494,9 @@ public void setXid(String xid) { this.xid = xid; } - /** Return true if this ResponseAdditionalDataCommon object is equal to o. */ + /** + * Return true if this ResponseAdditionalDataCommon object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -2992,187 +2506,89 @@ public boolean equals(Object o) { return false; } ResponseAdditionalDataCommon responseAdditionalDataCommon = (ResponseAdditionalDataCommon) o; - return Objects.equals( - this.acquirerAccountCode, responseAdditionalDataCommon.acquirerAccountCode) - && Objects.equals(this.acquirerCode, responseAdditionalDataCommon.acquirerCode) - && Objects.equals(this.acquirerReference, responseAdditionalDataCommon.acquirerReference) - && Objects.equals(this.alias, responseAdditionalDataCommon.alias) - && Objects.equals(this.aliasType, responseAdditionalDataCommon.aliasType) - && Objects.equals(this.authCode, responseAdditionalDataCommon.authCode) - && Objects.equals(this.authorisationMid, responseAdditionalDataCommon.authorisationMid) - && Objects.equals( - this.authorisedAmountCurrency, responseAdditionalDataCommon.authorisedAmountCurrency) - && Objects.equals( - this.authorisedAmountValue, responseAdditionalDataCommon.authorisedAmountValue) - && Objects.equals(this.avsResult, responseAdditionalDataCommon.avsResult) - && Objects.equals(this.avsResultRaw, responseAdditionalDataCommon.avsResultRaw) - && Objects.equals(this.bic, responseAdditionalDataCommon.bic) - && Objects.equals(this.coBrandedWith, responseAdditionalDataCommon.coBrandedWith) - && Objects.equals(this.cvcResult, responseAdditionalDataCommon.cvcResult) - && Objects.equals(this.cvcResultRaw, responseAdditionalDataCommon.cvcResultRaw) - && Objects.equals(this.dsTransID, responseAdditionalDataCommon.dsTransID) - && Objects.equals(this.eci, responseAdditionalDataCommon.eci) - && Objects.equals(this.expiryDate, responseAdditionalDataCommon.expiryDate) - && Objects.equals(this.extraCostsCurrency, responseAdditionalDataCommon.extraCostsCurrency) - && Objects.equals(this.extraCostsValue, responseAdditionalDataCommon.extraCostsValue) - && Objects.equals( - this.fraudCheckItemNrFraudCheckname, - responseAdditionalDataCommon.fraudCheckItemNrFraudCheckname) - && Objects.equals(this.fraudManualReview, responseAdditionalDataCommon.fraudManualReview) - && Objects.equals(this.fraudResultType, responseAdditionalDataCommon.fraudResultType) - && Objects.equals(this.fraudRiskLevel, responseAdditionalDataCommon.fraudRiskLevel) - && Objects.equals(this.fundingSource, responseAdditionalDataCommon.fundingSource) - && Objects.equals(this.fundsAvailability, responseAdditionalDataCommon.fundsAvailability) - && Objects.equals( - this.inferredRefusalReason, responseAdditionalDataCommon.inferredRefusalReason) - && Objects.equals(this.isCardCommercial, responseAdditionalDataCommon.isCardCommercial) - && Objects.equals(this.issuerCountry, responseAdditionalDataCommon.issuerCountry) - && Objects.equals(this.liabilityShift, responseAdditionalDataCommon.liabilityShift) - && Objects.equals( - this.mcBankNetReferenceNumber, responseAdditionalDataCommon.mcBankNetReferenceNumber) - && Objects.equals(this.merchantAdviceCode, responseAdditionalDataCommon.merchantAdviceCode) - && Objects.equals(this.merchantReference, responseAdditionalDataCommon.merchantReference) - && Objects.equals(this.networkTxReference, responseAdditionalDataCommon.networkTxReference) - && Objects.equals(this.ownerName, responseAdditionalDataCommon.ownerName) - && Objects.equals( - this.paymentAccountReference, responseAdditionalDataCommon.paymentAccountReference) - && Objects.equals(this.paymentMethod, responseAdditionalDataCommon.paymentMethod) - && Objects.equals( - this.paymentMethodVariant, responseAdditionalDataCommon.paymentMethodVariant) - && Objects.equals(this.payoutEligible, responseAdditionalDataCommon.payoutEligible) - && Objects.equals( - this.realtimeAccountUpdaterStatus, - responseAdditionalDataCommon.realtimeAccountUpdaterStatus) - && Objects.equals(this.receiptFreeText, responseAdditionalDataCommon.receiptFreeText) - && Objects.equals( - this.recurringContractTypes, responseAdditionalDataCommon.recurringContractTypes) - && Objects.equals( - this.recurringFirstPspReference, - responseAdditionalDataCommon.recurringFirstPspReference) - && Objects.equals( - this.recurringRecurringDetailReference, - responseAdditionalDataCommon.recurringRecurringDetailReference) - && Objects.equals( - this.recurringShopperReference, responseAdditionalDataCommon.recurringShopperReference) - && Objects.equals( - this.recurringProcessingModel, responseAdditionalDataCommon.recurringProcessingModel) - && Objects.equals(this.referred, responseAdditionalDataCommon.referred) - && Objects.equals(this.refusalReasonRaw, responseAdditionalDataCommon.refusalReasonRaw) - && Objects.equals(this.requestAmount, responseAdditionalDataCommon.requestAmount) - && Objects.equals( - this.requestCurrencyCode, responseAdditionalDataCommon.requestCurrencyCode) - && Objects.equals(this.shopperInteraction, responseAdditionalDataCommon.shopperInteraction) - && Objects.equals(this.shopperReference, responseAdditionalDataCommon.shopperReference) - && Objects.equals(this.terminalId, responseAdditionalDataCommon.terminalId) - && Objects.equals( - this.threeDAuthenticated, responseAdditionalDataCommon.threeDAuthenticated) - && Objects.equals( - this.threeDAuthenticatedResponse, - responseAdditionalDataCommon.threeDAuthenticatedResponse) - && Objects.equals(this.threeDOffered, responseAdditionalDataCommon.threeDOffered) - && Objects.equals( - this.threeDOfferedResponse, responseAdditionalDataCommon.threeDOfferedResponse) - && Objects.equals(this.threeDSVersion, responseAdditionalDataCommon.threeDSVersion) - && Objects.equals( - this.tokenizationShopperReference, - responseAdditionalDataCommon.tokenizationShopperReference) - && Objects.equals( - this.tokenizationStoreOperationType, - responseAdditionalDataCommon.tokenizationStoreOperationType) - && Objects.equals( - this.tokenizationStoredPaymentMethodId, - responseAdditionalDataCommon.tokenizationStoredPaymentMethodId) - && Objects.equals(this.visaTransactionId, responseAdditionalDataCommon.visaTransactionId) - && Objects.equals(this.xid, responseAdditionalDataCommon.xid); + return Objects.equals(this.acquirerAccountCode, responseAdditionalDataCommon.acquirerAccountCode) && + Objects.equals(this.acquirerCode, responseAdditionalDataCommon.acquirerCode) && + Objects.equals(this.acquirerReference, responseAdditionalDataCommon.acquirerReference) && + Objects.equals(this.alias, responseAdditionalDataCommon.alias) && + Objects.equals(this.aliasType, responseAdditionalDataCommon.aliasType) && + Objects.equals(this.authCode, responseAdditionalDataCommon.authCode) && + Objects.equals(this.authorisationMid, responseAdditionalDataCommon.authorisationMid) && + Objects.equals(this.authorisedAmountCurrency, responseAdditionalDataCommon.authorisedAmountCurrency) && + Objects.equals(this.authorisedAmountValue, responseAdditionalDataCommon.authorisedAmountValue) && + Objects.equals(this.avsResult, responseAdditionalDataCommon.avsResult) && + Objects.equals(this.avsResultRaw, responseAdditionalDataCommon.avsResultRaw) && + Objects.equals(this.bic, responseAdditionalDataCommon.bic) && + Objects.equals(this.coBrandedWith, responseAdditionalDataCommon.coBrandedWith) && + Objects.equals(this.cvcResult, responseAdditionalDataCommon.cvcResult) && + Objects.equals(this.cvcResultRaw, responseAdditionalDataCommon.cvcResultRaw) && + Objects.equals(this.dsTransID, responseAdditionalDataCommon.dsTransID) && + Objects.equals(this.eci, responseAdditionalDataCommon.eci) && + Objects.equals(this.expiryDate, responseAdditionalDataCommon.expiryDate) && + Objects.equals(this.extraCostsCurrency, responseAdditionalDataCommon.extraCostsCurrency) && + Objects.equals(this.extraCostsValue, responseAdditionalDataCommon.extraCostsValue) && + Objects.equals(this.fraudCheckItemNrFraudCheckname, responseAdditionalDataCommon.fraudCheckItemNrFraudCheckname) && + Objects.equals(this.fraudManualReview, responseAdditionalDataCommon.fraudManualReview) && + Objects.equals(this.fraudResultType, responseAdditionalDataCommon.fraudResultType) && + Objects.equals(this.fraudRiskLevel, responseAdditionalDataCommon.fraudRiskLevel) && + Objects.equals(this.fundingSource, responseAdditionalDataCommon.fundingSource) && + Objects.equals(this.fundsAvailability, responseAdditionalDataCommon.fundsAvailability) && + Objects.equals(this.inferredRefusalReason, responseAdditionalDataCommon.inferredRefusalReason) && + Objects.equals(this.isCardCommercial, responseAdditionalDataCommon.isCardCommercial) && + Objects.equals(this.issuerCountry, responseAdditionalDataCommon.issuerCountry) && + Objects.equals(this.liabilityShift, responseAdditionalDataCommon.liabilityShift) && + Objects.equals(this.mcBankNetReferenceNumber, responseAdditionalDataCommon.mcBankNetReferenceNumber) && + Objects.equals(this.merchantAdviceCode, responseAdditionalDataCommon.merchantAdviceCode) && + Objects.equals(this.merchantReference, responseAdditionalDataCommon.merchantReference) && + Objects.equals(this.networkTxReference, responseAdditionalDataCommon.networkTxReference) && + Objects.equals(this.ownerName, responseAdditionalDataCommon.ownerName) && + Objects.equals(this.paymentAccountReference, responseAdditionalDataCommon.paymentAccountReference) && + Objects.equals(this.paymentMethod, responseAdditionalDataCommon.paymentMethod) && + Objects.equals(this.paymentMethodVariant, responseAdditionalDataCommon.paymentMethodVariant) && + Objects.equals(this.payoutEligible, responseAdditionalDataCommon.payoutEligible) && + Objects.equals(this.realtimeAccountUpdaterStatus, responseAdditionalDataCommon.realtimeAccountUpdaterStatus) && + Objects.equals(this.receiptFreeText, responseAdditionalDataCommon.receiptFreeText) && + Objects.equals(this.recurringContractTypes, responseAdditionalDataCommon.recurringContractTypes) && + Objects.equals(this.recurringFirstPspReference, responseAdditionalDataCommon.recurringFirstPspReference) && + Objects.equals(this.recurringRecurringDetailReference, responseAdditionalDataCommon.recurringRecurringDetailReference) && + Objects.equals(this.recurringShopperReference, responseAdditionalDataCommon.recurringShopperReference) && + Objects.equals(this.recurringProcessingModel, responseAdditionalDataCommon.recurringProcessingModel) && + Objects.equals(this.referred, responseAdditionalDataCommon.referred) && + Objects.equals(this.refusalReasonRaw, responseAdditionalDataCommon.refusalReasonRaw) && + Objects.equals(this.requestAmount, responseAdditionalDataCommon.requestAmount) && + Objects.equals(this.requestCurrencyCode, responseAdditionalDataCommon.requestCurrencyCode) && + Objects.equals(this.shopperInteraction, responseAdditionalDataCommon.shopperInteraction) && + Objects.equals(this.shopperReference, responseAdditionalDataCommon.shopperReference) && + Objects.equals(this.terminalId, responseAdditionalDataCommon.terminalId) && + Objects.equals(this.threeDAuthenticated, responseAdditionalDataCommon.threeDAuthenticated) && + Objects.equals(this.threeDAuthenticatedResponse, responseAdditionalDataCommon.threeDAuthenticatedResponse) && + Objects.equals(this.threeDOffered, responseAdditionalDataCommon.threeDOffered) && + Objects.equals(this.threeDOfferedResponse, responseAdditionalDataCommon.threeDOfferedResponse) && + Objects.equals(this.threeDSVersion, responseAdditionalDataCommon.threeDSVersion) && + Objects.equals(this.tokenizationShopperReference, responseAdditionalDataCommon.tokenizationShopperReference) && + Objects.equals(this.tokenizationStoreOperationType, responseAdditionalDataCommon.tokenizationStoreOperationType) && + Objects.equals(this.tokenizationStoredPaymentMethodId, responseAdditionalDataCommon.tokenizationStoredPaymentMethodId) && + Objects.equals(this.visaTransactionId, responseAdditionalDataCommon.visaTransactionId) && + Objects.equals(this.xid, responseAdditionalDataCommon.xid); } @Override public int hashCode() { - return Objects.hash( - acquirerAccountCode, - acquirerCode, - acquirerReference, - alias, - aliasType, - authCode, - authorisationMid, - authorisedAmountCurrency, - authorisedAmountValue, - avsResult, - avsResultRaw, - bic, - coBrandedWith, - cvcResult, - cvcResultRaw, - dsTransID, - eci, - expiryDate, - extraCostsCurrency, - extraCostsValue, - fraudCheckItemNrFraudCheckname, - fraudManualReview, - fraudResultType, - fraudRiskLevel, - fundingSource, - fundsAvailability, - inferredRefusalReason, - isCardCommercial, - issuerCountry, - liabilityShift, - mcBankNetReferenceNumber, - merchantAdviceCode, - merchantReference, - networkTxReference, - ownerName, - paymentAccountReference, - paymentMethod, - paymentMethodVariant, - payoutEligible, - realtimeAccountUpdaterStatus, - receiptFreeText, - recurringContractTypes, - recurringFirstPspReference, - recurringRecurringDetailReference, - recurringShopperReference, - recurringProcessingModel, - referred, - refusalReasonRaw, - requestAmount, - requestCurrencyCode, - shopperInteraction, - shopperReference, - terminalId, - threeDAuthenticated, - threeDAuthenticatedResponse, - threeDOffered, - threeDOfferedResponse, - threeDSVersion, - tokenizationShopperReference, - tokenizationStoreOperationType, - tokenizationStoredPaymentMethodId, - visaTransactionId, - xid); + return Objects.hash(acquirerAccountCode, acquirerCode, acquirerReference, alias, aliasType, authCode, authorisationMid, authorisedAmountCurrency, authorisedAmountValue, avsResult, avsResultRaw, bic, coBrandedWith, cvcResult, cvcResultRaw, dsTransID, eci, expiryDate, extraCostsCurrency, extraCostsValue, fraudCheckItemNrFraudCheckname, fraudManualReview, fraudResultType, fraudRiskLevel, fundingSource, fundsAvailability, inferredRefusalReason, isCardCommercial, issuerCountry, liabilityShift, mcBankNetReferenceNumber, merchantAdviceCode, merchantReference, networkTxReference, ownerName, paymentAccountReference, paymentMethod, paymentMethodVariant, payoutEligible, realtimeAccountUpdaterStatus, receiptFreeText, recurringContractTypes, recurringFirstPspReference, recurringRecurringDetailReference, recurringShopperReference, recurringProcessingModel, referred, refusalReasonRaw, requestAmount, requestCurrencyCode, shopperInteraction, shopperReference, terminalId, threeDAuthenticated, threeDAuthenticatedResponse, threeDOffered, threeDOfferedResponse, threeDSVersion, tokenizationShopperReference, tokenizationStoreOperationType, tokenizationStoredPaymentMethodId, visaTransactionId, xid); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataCommon {\n"); - sb.append(" acquirerAccountCode: ") - .append(toIndentedString(acquirerAccountCode)) - .append("\n"); + sb.append(" acquirerAccountCode: ").append(toIndentedString(acquirerAccountCode)).append("\n"); sb.append(" acquirerCode: ").append(toIndentedString(acquirerCode)).append("\n"); sb.append(" acquirerReference: ").append(toIndentedString(acquirerReference)).append("\n"); sb.append(" alias: ").append(toIndentedString(alias)).append("\n"); sb.append(" aliasType: ").append(toIndentedString(aliasType)).append("\n"); sb.append(" authCode: ").append(toIndentedString(authCode)).append("\n"); sb.append(" authorisationMid: ").append(toIndentedString(authorisationMid)).append("\n"); - sb.append(" authorisedAmountCurrency: ") - .append(toIndentedString(authorisedAmountCurrency)) - .append("\n"); - sb.append(" authorisedAmountValue: ") - .append(toIndentedString(authorisedAmountValue)) - .append("\n"); + sb.append(" authorisedAmountCurrency: ").append(toIndentedString(authorisedAmountCurrency)).append("\n"); + sb.append(" authorisedAmountValue: ").append(toIndentedString(authorisedAmountValue)).append("\n"); sb.append(" avsResult: ").append(toIndentedString(avsResult)).append("\n"); sb.append(" avsResultRaw: ").append(toIndentedString(avsResultRaw)).append("\n"); sb.append(" bic: ").append(toIndentedString(bic)).append("\n"); @@ -3184,83 +2600,47 @@ public String toString() { sb.append(" expiryDate: ").append(toIndentedString(expiryDate)).append("\n"); sb.append(" extraCostsCurrency: ").append(toIndentedString(extraCostsCurrency)).append("\n"); sb.append(" extraCostsValue: ").append(toIndentedString(extraCostsValue)).append("\n"); - sb.append(" fraudCheckItemNrFraudCheckname: ") - .append(toIndentedString(fraudCheckItemNrFraudCheckname)) - .append("\n"); + sb.append(" fraudCheckItemNrFraudCheckname: ").append(toIndentedString(fraudCheckItemNrFraudCheckname)).append("\n"); sb.append(" fraudManualReview: ").append(toIndentedString(fraudManualReview)).append("\n"); sb.append(" fraudResultType: ").append(toIndentedString(fraudResultType)).append("\n"); sb.append(" fraudRiskLevel: ").append(toIndentedString(fraudRiskLevel)).append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); sb.append(" fundsAvailability: ").append(toIndentedString(fundsAvailability)).append("\n"); - sb.append(" inferredRefusalReason: ") - .append(toIndentedString(inferredRefusalReason)) - .append("\n"); + sb.append(" inferredRefusalReason: ").append(toIndentedString(inferredRefusalReason)).append("\n"); sb.append(" isCardCommercial: ").append(toIndentedString(isCardCommercial)).append("\n"); sb.append(" issuerCountry: ").append(toIndentedString(issuerCountry)).append("\n"); sb.append(" liabilityShift: ").append(toIndentedString(liabilityShift)).append("\n"); - sb.append(" mcBankNetReferenceNumber: ") - .append(toIndentedString(mcBankNetReferenceNumber)) - .append("\n"); + sb.append(" mcBankNetReferenceNumber: ").append(toIndentedString(mcBankNetReferenceNumber)).append("\n"); sb.append(" merchantAdviceCode: ").append(toIndentedString(merchantAdviceCode)).append("\n"); sb.append(" merchantReference: ").append(toIndentedString(merchantReference)).append("\n"); sb.append(" networkTxReference: ").append(toIndentedString(networkTxReference)).append("\n"); sb.append(" ownerName: ").append(toIndentedString(ownerName)).append("\n"); - sb.append(" paymentAccountReference: ") - .append(toIndentedString(paymentAccountReference)) - .append("\n"); + sb.append(" paymentAccountReference: ").append(toIndentedString(paymentAccountReference)).append("\n"); sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n"); - sb.append(" paymentMethodVariant: ") - .append(toIndentedString(paymentMethodVariant)) - .append("\n"); + sb.append(" paymentMethodVariant: ").append(toIndentedString(paymentMethodVariant)).append("\n"); sb.append(" payoutEligible: ").append(toIndentedString(payoutEligible)).append("\n"); - sb.append(" realtimeAccountUpdaterStatus: ") - .append(toIndentedString(realtimeAccountUpdaterStatus)) - .append("\n"); + sb.append(" realtimeAccountUpdaterStatus: ").append(toIndentedString(realtimeAccountUpdaterStatus)).append("\n"); sb.append(" receiptFreeText: ").append(toIndentedString(receiptFreeText)).append("\n"); - sb.append(" recurringContractTypes: ") - .append(toIndentedString(recurringContractTypes)) - .append("\n"); - sb.append(" recurringFirstPspReference: ") - .append(toIndentedString(recurringFirstPspReference)) - .append("\n"); - sb.append(" recurringRecurringDetailReference: ") - .append(toIndentedString(recurringRecurringDetailReference)) - .append("\n"); - sb.append(" recurringShopperReference: ") - .append(toIndentedString(recurringShopperReference)) - .append("\n"); - sb.append(" recurringProcessingModel: ") - .append(toIndentedString(recurringProcessingModel)) - .append("\n"); + sb.append(" recurringContractTypes: ").append(toIndentedString(recurringContractTypes)).append("\n"); + sb.append(" recurringFirstPspReference: ").append(toIndentedString(recurringFirstPspReference)).append("\n"); + sb.append(" recurringRecurringDetailReference: ").append(toIndentedString(recurringRecurringDetailReference)).append("\n"); + sb.append(" recurringShopperReference: ").append(toIndentedString(recurringShopperReference)).append("\n"); + sb.append(" recurringProcessingModel: ").append(toIndentedString(recurringProcessingModel)).append("\n"); sb.append(" referred: ").append(toIndentedString(referred)).append("\n"); sb.append(" refusalReasonRaw: ").append(toIndentedString(refusalReasonRaw)).append("\n"); sb.append(" requestAmount: ").append(toIndentedString(requestAmount)).append("\n"); - sb.append(" requestCurrencyCode: ") - .append(toIndentedString(requestCurrencyCode)) - .append("\n"); + sb.append(" requestCurrencyCode: ").append(toIndentedString(requestCurrencyCode)).append("\n"); sb.append(" shopperInteraction: ").append(toIndentedString(shopperInteraction)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append(" terminalId: ").append(toIndentedString(terminalId)).append("\n"); - sb.append(" threeDAuthenticated: ") - .append(toIndentedString(threeDAuthenticated)) - .append("\n"); - sb.append(" threeDAuthenticatedResponse: ") - .append(toIndentedString(threeDAuthenticatedResponse)) - .append("\n"); + sb.append(" threeDAuthenticated: ").append(toIndentedString(threeDAuthenticated)).append("\n"); + sb.append(" threeDAuthenticatedResponse: ").append(toIndentedString(threeDAuthenticatedResponse)).append("\n"); sb.append(" threeDOffered: ").append(toIndentedString(threeDOffered)).append("\n"); - sb.append(" threeDOfferedResponse: ") - .append(toIndentedString(threeDOfferedResponse)) - .append("\n"); + sb.append(" threeDOfferedResponse: ").append(toIndentedString(threeDOfferedResponse)).append("\n"); sb.append(" threeDSVersion: ").append(toIndentedString(threeDSVersion)).append("\n"); - sb.append(" tokenizationShopperReference: ") - .append(toIndentedString(tokenizationShopperReference)) - .append("\n"); - sb.append(" tokenizationStoreOperationType: ") - .append(toIndentedString(tokenizationStoreOperationType)) - .append("\n"); - sb.append(" tokenizationStoredPaymentMethodId: ") - .append(toIndentedString(tokenizationStoredPaymentMethodId)) - .append("\n"); + sb.append(" tokenizationShopperReference: ").append(toIndentedString(tokenizationShopperReference)).append("\n"); + sb.append(" tokenizationStoreOperationType: ").append(toIndentedString(tokenizationStoreOperationType)).append("\n"); + sb.append(" tokenizationStoredPaymentMethodId: ").append(toIndentedString(tokenizationStoredPaymentMethodId)).append("\n"); sb.append(" visaTransactionId: ").append(toIndentedString(visaTransactionId)).append("\n"); sb.append(" xid: ").append(toIndentedString(xid)).append("\n"); sb.append("}"); @@ -3268,7 +2648,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -3277,24 +2658,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResponseAdditionalDataCommon given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataCommon - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ResponseAdditionalDataCommon + * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataCommon */ - public static ResponseAdditionalDataCommon fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataCommon fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataCommon.class); } - - /** - * Convert an instance of ResponseAdditionalDataCommon to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResponseAdditionalDataCommon to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataDomesticError.java b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataDomesticError.java index 7471b0b53..4bc161048 100644 --- a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataDomesticError.java +++ b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataDomesticError.java @@ -2,26 +2,36 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ResponseAdditionalDataDomesticError */ + +/** + * ResponseAdditionalDataDomesticError + */ @JsonPropertyOrder({ ResponseAdditionalDataDomesticError.JSON_PROPERTY_DOMESTIC_REFUSAL_REASON_RAW, ResponseAdditionalDataDomesticError.JSON_PROPERTY_DOMESTIC_SHOPPER_ADVICE }) + public class ResponseAdditionalDataDomesticError { public static final String JSON_PROPERTY_DOMESTIC_REFUSAL_REASON_RAW = "domesticRefusalReasonRaw"; private String domesticRefusalReasonRaw; @@ -29,29 +39,23 @@ public class ResponseAdditionalDataDomesticError { public static final String JSON_PROPERTY_DOMESTIC_SHOPPER_ADVICE = "domesticShopperAdvice"; private String domesticShopperAdvice; - public ResponseAdditionalDataDomesticError() {} + public ResponseAdditionalDataDomesticError() { + } /** - * The reason the transaction was declined, given by the local issuer. Currently available for - * merchants in Japan. + * The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. * - * @param domesticRefusalReasonRaw The reason the transaction was declined, given by the local - * issuer. Currently available for merchants in Japan. - * @return the current {@code ResponseAdditionalDataDomesticError} instance, allowing for method - * chaining + * @param domesticRefusalReasonRaw The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. + * @return the current {@code ResponseAdditionalDataDomesticError} instance, allowing for method chaining */ - public ResponseAdditionalDataDomesticError domesticRefusalReasonRaw( - String domesticRefusalReasonRaw) { + public ResponseAdditionalDataDomesticError domesticRefusalReasonRaw(String domesticRefusalReasonRaw) { this.domesticRefusalReasonRaw = domesticRefusalReasonRaw; return this; } /** - * The reason the transaction was declined, given by the local issuer. Currently available for - * merchants in Japan. - * - * @return domesticRefusalReasonRaw The reason the transaction was declined, given by the local - * issuer. Currently available for merchants in Japan. + * The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. + * @return domesticRefusalReasonRaw The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. */ @JsonProperty(JSON_PROPERTY_DOMESTIC_REFUSAL_REASON_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,11 +64,9 @@ public String getDomesticRefusalReasonRaw() { } /** - * The reason the transaction was declined, given by the local issuer. Currently available for - * merchants in Japan. + * The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. * - * @param domesticRefusalReasonRaw The reason the transaction was declined, given by the local - * issuer. Currently available for merchants in Japan. + * @param domesticRefusalReasonRaw The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. */ @JsonProperty(JSON_PROPERTY_DOMESTIC_REFUSAL_REASON_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -73,13 +75,10 @@ public void setDomesticRefusalReasonRaw(String domesticRefusalReasonRaw) { } /** - * The action the shopper should take, in a local language. Currently available in Japanese, for - * merchants in Japan. + * The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. * - * @param domesticShopperAdvice The action the shopper should take, in a local language. Currently - * available in Japanese, for merchants in Japan. - * @return the current {@code ResponseAdditionalDataDomesticError} instance, allowing for method - * chaining + * @param domesticShopperAdvice The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. + * @return the current {@code ResponseAdditionalDataDomesticError} instance, allowing for method chaining */ public ResponseAdditionalDataDomesticError domesticShopperAdvice(String domesticShopperAdvice) { this.domesticShopperAdvice = domesticShopperAdvice; @@ -87,11 +86,8 @@ public ResponseAdditionalDataDomesticError domesticShopperAdvice(String domestic } /** - * The action the shopper should take, in a local language. Currently available in Japanese, for - * merchants in Japan. - * - * @return domesticShopperAdvice The action the shopper should take, in a local language. - * Currently available in Japanese, for merchants in Japan. + * The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. + * @return domesticShopperAdvice The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. */ @JsonProperty(JSON_PROPERTY_DOMESTIC_SHOPPER_ADVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,11 +96,9 @@ public String getDomesticShopperAdvice() { } /** - * The action the shopper should take, in a local language. Currently available in Japanese, for - * merchants in Japan. + * The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. * - * @param domesticShopperAdvice The action the shopper should take, in a local language. Currently - * available in Japanese, for merchants in Japan. + * @param domesticShopperAdvice The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. */ @JsonProperty(JSON_PROPERTY_DOMESTIC_SHOPPER_ADVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,7 +106,9 @@ public void setDomesticShopperAdvice(String domesticShopperAdvice) { this.domesticShopperAdvice = domesticShopperAdvice; } - /** Return true if this ResponseAdditionalDataDomesticError object is equal to o. */ + /** + * Return true if this ResponseAdditionalDataDomesticError object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -121,13 +117,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResponseAdditionalDataDomesticError responseAdditionalDataDomesticError = - (ResponseAdditionalDataDomesticError) o; - return Objects.equals( - this.domesticRefusalReasonRaw, - responseAdditionalDataDomesticError.domesticRefusalReasonRaw) - && Objects.equals( - this.domesticShopperAdvice, responseAdditionalDataDomesticError.domesticShopperAdvice); + ResponseAdditionalDataDomesticError responseAdditionalDataDomesticError = (ResponseAdditionalDataDomesticError) o; + return Objects.equals(this.domesticRefusalReasonRaw, responseAdditionalDataDomesticError.domesticRefusalReasonRaw) && + Objects.equals(this.domesticShopperAdvice, responseAdditionalDataDomesticError.domesticShopperAdvice); } @Override @@ -139,18 +131,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataDomesticError {\n"); - sb.append(" domesticRefusalReasonRaw: ") - .append(toIndentedString(domesticRefusalReasonRaw)) - .append("\n"); - sb.append(" domesticShopperAdvice: ") - .append(toIndentedString(domesticShopperAdvice)) - .append("\n"); + sb.append(" domesticRefusalReasonRaw: ").append(toIndentedString(domesticRefusalReasonRaw)).append("\n"); + sb.append(" domesticShopperAdvice: ").append(toIndentedString(domesticShopperAdvice)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -159,24 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResponseAdditionalDataDomesticError given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataDomesticError - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ResponseAdditionalDataDomesticError + * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataDomesticError */ - public static ResponseAdditionalDataDomesticError fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataDomesticError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataDomesticError.class); } - - /** - * Convert an instance of ResponseAdditionalDataDomesticError to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResponseAdditionalDataDomesticError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataInstallments.java b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataInstallments.java index 2f4587e4c..d1a22a34d 100644 --- a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataInstallments.java +++ b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataInstallments.java @@ -2,121 +2,100 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ResponseAdditionalDataInstallments */ + +/** + * ResponseAdditionalDataInstallments + */ @JsonPropertyOrder({ ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_INSTALLMENT_TYPE, - ResponseAdditionalDataInstallments - .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE, - ResponseAdditionalDataInstallments - .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT, - ResponseAdditionalDataInstallments - .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE, - ResponseAdditionalDataInstallments - .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE, - ResponseAdditionalDataInstallments - .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS, - ResponseAdditionalDataInstallments - .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS, - ResponseAdditionalDataInstallments - .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS, - ResponseAdditionalDataInstallments - .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT, - ResponseAdditionalDataInstallments - .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE, + ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE, + ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT, + ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE, + ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE, + ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS, + ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS, + ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS, + ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT, + ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE, ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_PAYMENT_OPTIONS, ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENTS_VALUE }) + public class ResponseAdditionalDataInstallments { - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_INSTALLMENT_TYPE = - "installmentPaymentData.installmentType"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_INSTALLMENT_TYPE = "installmentPaymentData.installmentType"; private String installmentPaymentDataInstallmentType; - public static final String - JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE = - "installmentPaymentData.option[itemNr].annualPercentageRate"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE = "installmentPaymentData.option[itemNr].annualPercentageRate"; private String installmentPaymentDataOptionItemNrAnnualPercentageRate; - public static final String - JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT = - "installmentPaymentData.option[itemNr].firstInstallmentAmount"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT = "installmentPaymentData.option[itemNr].firstInstallmentAmount"; private String installmentPaymentDataOptionItemNrFirstInstallmentAmount; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE = - "installmentPaymentData.option[itemNr].installmentFee"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE = "installmentPaymentData.option[itemNr].installmentFee"; private String installmentPaymentDataOptionItemNrInstallmentFee; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE = - "installmentPaymentData.option[itemNr].interestRate"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE = "installmentPaymentData.option[itemNr].interestRate"; private String installmentPaymentDataOptionItemNrInterestRate; - public static final String - JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS = - "installmentPaymentData.option[itemNr].maximumNumberOfInstallments"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS = "installmentPaymentData.option[itemNr].maximumNumberOfInstallments"; private String installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; - public static final String - JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS = - "installmentPaymentData.option[itemNr].minimumNumberOfInstallments"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS = "installmentPaymentData.option[itemNr].minimumNumberOfInstallments"; private String installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; - public static final String - JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS = - "installmentPaymentData.option[itemNr].numberOfInstallments"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS = "installmentPaymentData.option[itemNr].numberOfInstallments"; private String installmentPaymentDataOptionItemNrNumberOfInstallments; - public static final String - JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT = - "installmentPaymentData.option[itemNr].subsequentInstallmentAmount"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT = "installmentPaymentData.option[itemNr].subsequentInstallmentAmount"; private String installmentPaymentDataOptionItemNrSubsequentInstallmentAmount; - public static final String - JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE = - "installmentPaymentData.option[itemNr].totalAmountDue"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE = "installmentPaymentData.option[itemNr].totalAmountDue"; private String installmentPaymentDataOptionItemNrTotalAmountDue; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_PAYMENT_OPTIONS = - "installmentPaymentData.paymentOptions"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_PAYMENT_OPTIONS = "installmentPaymentData.paymentOptions"; private String installmentPaymentDataPaymentOptions; public static final String JSON_PROPERTY_INSTALLMENTS_VALUE = "installments.value"; private String installmentsValue; - public ResponseAdditionalDataInstallments() {} + public ResponseAdditionalDataInstallments() { + } /** * Type of installment. The value of `installmentType` should be **IssuerFinanced**. * - * @param installmentPaymentDataInstallmentType Type of installment. The value of - * `installmentType` should be **IssuerFinanced**. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining + * @param installmentPaymentDataInstallmentType Type of installment. The value of `installmentType` should be **IssuerFinanced**. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataInstallmentType( - String installmentPaymentDataInstallmentType) { + public ResponseAdditionalDataInstallments installmentPaymentDataInstallmentType(String installmentPaymentDataInstallmentType) { this.installmentPaymentDataInstallmentType = installmentPaymentDataInstallmentType; return this; } /** * Type of installment. The value of `installmentType` should be **IssuerFinanced**. - * - * @return installmentPaymentDataInstallmentType Type of installment. The value of - * `installmentType` should be **IssuerFinanced**. + * @return installmentPaymentDataInstallmentType Type of installment. The value of `installmentType` should be **IssuerFinanced**. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_INSTALLMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,13 +106,11 @@ public String getInstallmentPaymentDataInstallmentType() { /** * Type of installment. The value of `installmentType` should be **IssuerFinanced**. * - * @param installmentPaymentDataInstallmentType Type of installment. The value of - * `installmentType` should be **IssuerFinanced**. + * @param installmentPaymentDataInstallmentType Type of installment. The value of `installmentType` should be **IssuerFinanced**. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_INSTALLMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataInstallmentType( - String installmentPaymentDataInstallmentType) { + public void setInstallmentPaymentDataInstallmentType(String installmentPaymentDataInstallmentType) { this.installmentPaymentDataInstallmentType = installmentPaymentDataInstallmentType; } @@ -141,19 +118,15 @@ public void setInstallmentPaymentDataInstallmentType( * Annual interest rate. * * @param installmentPaymentDataOptionItemNrAnnualPercentageRate Annual interest rate. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrAnnualPercentageRate( - String installmentPaymentDataOptionItemNrAnnualPercentageRate) { - this.installmentPaymentDataOptionItemNrAnnualPercentageRate = - installmentPaymentDataOptionItemNrAnnualPercentageRate; + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrAnnualPercentageRate(String installmentPaymentDataOptionItemNrAnnualPercentageRate) { + this.installmentPaymentDataOptionItemNrAnnualPercentageRate = installmentPaymentDataOptionItemNrAnnualPercentageRate; return this; } /** * Annual interest rate. - * * @return installmentPaymentDataOptionItemNrAnnualPercentageRate Annual interest rate. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE) @@ -169,33 +142,24 @@ public String getInstallmentPaymentDataOptionItemNrAnnualPercentageRate() { */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrAnnualPercentageRate( - String installmentPaymentDataOptionItemNrAnnualPercentageRate) { - this.installmentPaymentDataOptionItemNrAnnualPercentageRate = - installmentPaymentDataOptionItemNrAnnualPercentageRate; + public void setInstallmentPaymentDataOptionItemNrAnnualPercentageRate(String installmentPaymentDataOptionItemNrAnnualPercentageRate) { + this.installmentPaymentDataOptionItemNrAnnualPercentageRate = installmentPaymentDataOptionItemNrAnnualPercentageRate; } /** * First Installment Amount in minor units. * - * @param installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in - * minor units. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining - */ - public ResponseAdditionalDataInstallments - installmentPaymentDataOptionItemNrFirstInstallmentAmount( - String installmentPaymentDataOptionItemNrFirstInstallmentAmount) { - this.installmentPaymentDataOptionItemNrFirstInstallmentAmount = - installmentPaymentDataOptionItemNrFirstInstallmentAmount; + * @param installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in minor units. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + */ + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrFirstInstallmentAmount(String installmentPaymentDataOptionItemNrFirstInstallmentAmount) { + this.installmentPaymentDataOptionItemNrFirstInstallmentAmount = installmentPaymentDataOptionItemNrFirstInstallmentAmount; return this; } /** * First Installment Amount in minor units. - * - * @return installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in - * minor units. + * @return installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -206,34 +170,27 @@ public String getInstallmentPaymentDataOptionItemNrFirstInstallmentAmount() { /** * First Installment Amount in minor units. * - * @param installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in - * minor units. + * @param installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrFirstInstallmentAmount( - String installmentPaymentDataOptionItemNrFirstInstallmentAmount) { - this.installmentPaymentDataOptionItemNrFirstInstallmentAmount = - installmentPaymentDataOptionItemNrFirstInstallmentAmount; + public void setInstallmentPaymentDataOptionItemNrFirstInstallmentAmount(String installmentPaymentDataOptionItemNrFirstInstallmentAmount) { + this.installmentPaymentDataOptionItemNrFirstInstallmentAmount = installmentPaymentDataOptionItemNrFirstInstallmentAmount; } /** * Installment fee amount in minor units. * * @param installmentPaymentDataOptionItemNrInstallmentFee Installment fee amount in minor units. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrInstallmentFee( - String installmentPaymentDataOptionItemNrInstallmentFee) { - this.installmentPaymentDataOptionItemNrInstallmentFee = - installmentPaymentDataOptionItemNrInstallmentFee; + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrInstallmentFee(String installmentPaymentDataOptionItemNrInstallmentFee) { + this.installmentPaymentDataOptionItemNrInstallmentFee = installmentPaymentDataOptionItemNrInstallmentFee; return this; } /** * Installment fee amount in minor units. - * * @return installmentPaymentDataOptionItemNrInstallmentFee Installment fee amount in minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE) @@ -249,31 +206,24 @@ public String getInstallmentPaymentDataOptionItemNrInstallmentFee() { */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrInstallmentFee( - String installmentPaymentDataOptionItemNrInstallmentFee) { - this.installmentPaymentDataOptionItemNrInstallmentFee = - installmentPaymentDataOptionItemNrInstallmentFee; + public void setInstallmentPaymentDataOptionItemNrInstallmentFee(String installmentPaymentDataOptionItemNrInstallmentFee) { + this.installmentPaymentDataOptionItemNrInstallmentFee = installmentPaymentDataOptionItemNrInstallmentFee; } /** * Interest rate for the installment period. * * @param installmentPaymentDataOptionItemNrInterestRate Interest rate for the installment period. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrInterestRate( - String installmentPaymentDataOptionItemNrInterestRate) { - this.installmentPaymentDataOptionItemNrInterestRate = - installmentPaymentDataOptionItemNrInterestRate; + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrInterestRate(String installmentPaymentDataOptionItemNrInterestRate) { + this.installmentPaymentDataOptionItemNrInterestRate = installmentPaymentDataOptionItemNrInterestRate; return this; } /** * Interest rate for the installment period. - * - * @return installmentPaymentDataOptionItemNrInterestRate Interest rate for the installment - * period. + * @return installmentPaymentDataOptionItemNrInterestRate Interest rate for the installment period. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -288,36 +238,26 @@ public String getInstallmentPaymentDataOptionItemNrInterestRate() { */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrInterestRate( - String installmentPaymentDataOptionItemNrInterestRate) { - this.installmentPaymentDataOptionItemNrInterestRate = - installmentPaymentDataOptionItemNrInterestRate; + public void setInstallmentPaymentDataOptionItemNrInterestRate(String installmentPaymentDataOptionItemNrInterestRate) { + this.installmentPaymentDataOptionItemNrInterestRate = installmentPaymentDataOptionItemNrInterestRate; } /** * Maximum number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of - * installments possible for this payment. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining - */ - public ResponseAdditionalDataInstallments - installmentPaymentDataOptionItemNrMaximumNumberOfInstallments( - String installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments = - installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; + * @param installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of installments possible for this payment. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + */ + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrMaximumNumberOfInstallments(String installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments = installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; return this; } /** * Maximum number of installments possible for this payment. - * - * @return installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of - * installments possible for this payment. + * @return installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of installments possible for this payment. */ - @JsonProperty( - JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS) + @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getInstallmentPaymentDataOptionItemNrMaximumNumberOfInstallments() { return installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; @@ -326,42 +266,30 @@ public String getInstallmentPaymentDataOptionItemNrMaximumNumberOfInstallments() /** * Maximum number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of - * installments possible for this payment. + * @param installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of installments possible for this payment. */ - @JsonProperty( - JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS) + @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrMaximumNumberOfInstallments( - String installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments = - installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; + public void setInstallmentPaymentDataOptionItemNrMaximumNumberOfInstallments(String installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments = installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; } /** * Minimum number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of - * installments possible for this payment. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining - */ - public ResponseAdditionalDataInstallments - installmentPaymentDataOptionItemNrMinimumNumberOfInstallments( - String installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments = - installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; + * @param installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of installments possible for this payment. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + */ + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrMinimumNumberOfInstallments(String installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments = installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; return this; } /** * Minimum number of installments possible for this payment. - * - * @return installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of - * installments possible for this payment. + * @return installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of installments possible for this payment. */ - @JsonProperty( - JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS) + @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getInstallmentPaymentDataOptionItemNrMinimumNumberOfInstallments() { return installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; @@ -370,38 +298,28 @@ public String getInstallmentPaymentDataOptionItemNrMinimumNumberOfInstallments() /** * Minimum number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of - * installments possible for this payment. + * @param installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of installments possible for this payment. */ - @JsonProperty( - JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS) + @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrMinimumNumberOfInstallments( - String installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments = - installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; + public void setInstallmentPaymentDataOptionItemNrMinimumNumberOfInstallments(String installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments = installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; } /** * Total number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments - * possible for this payment. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining - */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrNumberOfInstallments( - String installmentPaymentDataOptionItemNrNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrNumberOfInstallments = - installmentPaymentDataOptionItemNrNumberOfInstallments; + * @param installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments possible for this payment. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + */ + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrNumberOfInstallments(String installmentPaymentDataOptionItemNrNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrNumberOfInstallments = installmentPaymentDataOptionItemNrNumberOfInstallments; return this; } /** * Total number of installments possible for this payment. - * - * @return installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments - * possible for this payment. + * @return installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments possible for this payment. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -412,38 +330,28 @@ public String getInstallmentPaymentDataOptionItemNrNumberOfInstallments() { /** * Total number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments - * possible for this payment. + * @param installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments possible for this payment. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrNumberOfInstallments( - String installmentPaymentDataOptionItemNrNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrNumberOfInstallments = - installmentPaymentDataOptionItemNrNumberOfInstallments; + public void setInstallmentPaymentDataOptionItemNrNumberOfInstallments(String installmentPaymentDataOptionItemNrNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrNumberOfInstallments = installmentPaymentDataOptionItemNrNumberOfInstallments; } /** * Subsequent Installment Amount in minor units. * - * @param installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment - * Amount in minor units. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining - */ - public ResponseAdditionalDataInstallments - installmentPaymentDataOptionItemNrSubsequentInstallmentAmount( - String installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) { - this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount = - installmentPaymentDataOptionItemNrSubsequentInstallmentAmount; + * @param installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment Amount in minor units. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + */ + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrSubsequentInstallmentAmount(String installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) { + this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount = installmentPaymentDataOptionItemNrSubsequentInstallmentAmount; return this; } /** * Subsequent Installment Amount in minor units. - * - * @return installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment - * Amount in minor units. + * @return installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment Amount in minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -454,34 +362,27 @@ public String getInstallmentPaymentDataOptionItemNrSubsequentInstallmentAmount() /** * Subsequent Installment Amount in minor units. * - * @param installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment - * Amount in minor units. + * @param installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment Amount in minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrSubsequentInstallmentAmount( - String installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) { - this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount = - installmentPaymentDataOptionItemNrSubsequentInstallmentAmount; + public void setInstallmentPaymentDataOptionItemNrSubsequentInstallmentAmount(String installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) { + this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount = installmentPaymentDataOptionItemNrSubsequentInstallmentAmount; } /** * Total amount in minor units. * * @param installmentPaymentDataOptionItemNrTotalAmountDue Total amount in minor units. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrTotalAmountDue( - String installmentPaymentDataOptionItemNrTotalAmountDue) { - this.installmentPaymentDataOptionItemNrTotalAmountDue = - installmentPaymentDataOptionItemNrTotalAmountDue; + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrTotalAmountDue(String installmentPaymentDataOptionItemNrTotalAmountDue) { + this.installmentPaymentDataOptionItemNrTotalAmountDue = installmentPaymentDataOptionItemNrTotalAmountDue; return this; } /** * Total amount in minor units. - * * @return installmentPaymentDataOptionItemNrTotalAmountDue Total amount in minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE) @@ -497,31 +398,24 @@ public String getInstallmentPaymentDataOptionItemNrTotalAmountDue() { */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrTotalAmountDue( - String installmentPaymentDataOptionItemNrTotalAmountDue) { - this.installmentPaymentDataOptionItemNrTotalAmountDue = - installmentPaymentDataOptionItemNrTotalAmountDue; + public void setInstallmentPaymentDataOptionItemNrTotalAmountDue(String installmentPaymentDataOptionItemNrTotalAmountDue) { + this.installmentPaymentDataOptionItemNrTotalAmountDue = installmentPaymentDataOptionItemNrTotalAmountDue; } /** * Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments * - * @param installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * - * PayInFullOnly * PayInFullOrInstallments - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining + * @param installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataPaymentOptions( - String installmentPaymentDataPaymentOptions) { + public ResponseAdditionalDataInstallments installmentPaymentDataPaymentOptions(String installmentPaymentDataPaymentOptions) { this.installmentPaymentDataPaymentOptions = installmentPaymentDataPaymentOptions; return this; } /** * Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments - * - * @return installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * - * PayInFullOnly * PayInFullOrInstallments + * @return installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_PAYMENT_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -532,8 +426,7 @@ public String getInstallmentPaymentDataPaymentOptions() { /** * Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments * - * @param installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * - * PayInFullOnly * PayInFullOrInstallments + * @param installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_PAYMENT_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -542,14 +435,10 @@ public void setInstallmentPaymentDataPaymentOptions(String installmentPaymentDat } /** - * The number of installments that the payment amount should be charged with. Example: 5 > Only - * relevant for card payments in countries that support installments. + * The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. * - * @param installmentsValue The number of installments that the payment amount should be charged - * with. Example: 5 > Only relevant for card payments in countries that support - * installments. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining + * @param installmentsValue The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining */ public ResponseAdditionalDataInstallments installmentsValue(String installmentsValue) { this.installmentsValue = installmentsValue; @@ -557,12 +446,8 @@ public ResponseAdditionalDataInstallments installmentsValue(String installmentsV } /** - * The number of installments that the payment amount should be charged with. Example: 5 > Only - * relevant for card payments in countries that support installments. - * - * @return installmentsValue The number of installments that the payment amount should be charged - * with. Example: 5 > Only relevant for card payments in countries that support - * installments. + * The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. + * @return installmentsValue The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -571,12 +456,9 @@ public String getInstallmentsValue() { } /** - * The number of installments that the payment amount should be charged with. Example: 5 > Only - * relevant for card payments in countries that support installments. + * The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. * - * @param installmentsValue The number of installments that the payment amount should be charged - * with. Example: 5 > Only relevant for card payments in countries that support - * installments. + * @param installmentsValue The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -584,7 +466,9 @@ public void setInstallmentsValue(String installmentsValue) { this.installmentsValue = installmentsValue; } - /** Return true if this ResponseAdditionalDataInstallments object is equal to o. */ + /** + * Return true if this ResponseAdditionalDataInstallments object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -593,112 +477,49 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResponseAdditionalDataInstallments responseAdditionalDataInstallments = - (ResponseAdditionalDataInstallments) o; - return Objects.equals( - this.installmentPaymentDataInstallmentType, - responseAdditionalDataInstallments.installmentPaymentDataInstallmentType) - && Objects.equals( - this.installmentPaymentDataOptionItemNrAnnualPercentageRate, - responseAdditionalDataInstallments - .installmentPaymentDataOptionItemNrAnnualPercentageRate) - && Objects.equals( - this.installmentPaymentDataOptionItemNrFirstInstallmentAmount, - responseAdditionalDataInstallments - .installmentPaymentDataOptionItemNrFirstInstallmentAmount) - && Objects.equals( - this.installmentPaymentDataOptionItemNrInstallmentFee, - responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrInstallmentFee) - && Objects.equals( - this.installmentPaymentDataOptionItemNrInterestRate, - responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrInterestRate) - && Objects.equals( - this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments, - responseAdditionalDataInstallments - .installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) - && Objects.equals( - this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments, - responseAdditionalDataInstallments - .installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) - && Objects.equals( - this.installmentPaymentDataOptionItemNrNumberOfInstallments, - responseAdditionalDataInstallments - .installmentPaymentDataOptionItemNrNumberOfInstallments) - && Objects.equals( - this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount, - responseAdditionalDataInstallments - .installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) - && Objects.equals( - this.installmentPaymentDataOptionItemNrTotalAmountDue, - responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrTotalAmountDue) - && Objects.equals( - this.installmentPaymentDataPaymentOptions, - responseAdditionalDataInstallments.installmentPaymentDataPaymentOptions) - && Objects.equals( - this.installmentsValue, responseAdditionalDataInstallments.installmentsValue); + ResponseAdditionalDataInstallments responseAdditionalDataInstallments = (ResponseAdditionalDataInstallments) o; + return Objects.equals(this.installmentPaymentDataInstallmentType, responseAdditionalDataInstallments.installmentPaymentDataInstallmentType) && + Objects.equals(this.installmentPaymentDataOptionItemNrAnnualPercentageRate, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrAnnualPercentageRate) && + Objects.equals(this.installmentPaymentDataOptionItemNrFirstInstallmentAmount, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrFirstInstallmentAmount) && + Objects.equals(this.installmentPaymentDataOptionItemNrInstallmentFee, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrInstallmentFee) && + Objects.equals(this.installmentPaymentDataOptionItemNrInterestRate, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrInterestRate) && + Objects.equals(this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) && + Objects.equals(this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) && + Objects.equals(this.installmentPaymentDataOptionItemNrNumberOfInstallments, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrNumberOfInstallments) && + Objects.equals(this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) && + Objects.equals(this.installmentPaymentDataOptionItemNrTotalAmountDue, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrTotalAmountDue) && + Objects.equals(this.installmentPaymentDataPaymentOptions, responseAdditionalDataInstallments.installmentPaymentDataPaymentOptions) && + Objects.equals(this.installmentsValue, responseAdditionalDataInstallments.installmentsValue); } @Override public int hashCode() { - return Objects.hash( - installmentPaymentDataInstallmentType, - installmentPaymentDataOptionItemNrAnnualPercentageRate, - installmentPaymentDataOptionItemNrFirstInstallmentAmount, - installmentPaymentDataOptionItemNrInstallmentFee, - installmentPaymentDataOptionItemNrInterestRate, - installmentPaymentDataOptionItemNrMaximumNumberOfInstallments, - installmentPaymentDataOptionItemNrMinimumNumberOfInstallments, - installmentPaymentDataOptionItemNrNumberOfInstallments, - installmentPaymentDataOptionItemNrSubsequentInstallmentAmount, - installmentPaymentDataOptionItemNrTotalAmountDue, - installmentPaymentDataPaymentOptions, - installmentsValue); + return Objects.hash(installmentPaymentDataInstallmentType, installmentPaymentDataOptionItemNrAnnualPercentageRate, installmentPaymentDataOptionItemNrFirstInstallmentAmount, installmentPaymentDataOptionItemNrInstallmentFee, installmentPaymentDataOptionItemNrInterestRate, installmentPaymentDataOptionItemNrMaximumNumberOfInstallments, installmentPaymentDataOptionItemNrMinimumNumberOfInstallments, installmentPaymentDataOptionItemNrNumberOfInstallments, installmentPaymentDataOptionItemNrSubsequentInstallmentAmount, installmentPaymentDataOptionItemNrTotalAmountDue, installmentPaymentDataPaymentOptions, installmentsValue); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataInstallments {\n"); - sb.append(" installmentPaymentDataInstallmentType: ") - .append(toIndentedString(installmentPaymentDataInstallmentType)) - .append("\n"); - sb.append(" installmentPaymentDataOptionItemNrAnnualPercentageRate: ") - .append(toIndentedString(installmentPaymentDataOptionItemNrAnnualPercentageRate)) - .append("\n"); - sb.append(" installmentPaymentDataOptionItemNrFirstInstallmentAmount: ") - .append(toIndentedString(installmentPaymentDataOptionItemNrFirstInstallmentAmount)) - .append("\n"); - sb.append(" installmentPaymentDataOptionItemNrInstallmentFee: ") - .append(toIndentedString(installmentPaymentDataOptionItemNrInstallmentFee)) - .append("\n"); - sb.append(" installmentPaymentDataOptionItemNrInterestRate: ") - .append(toIndentedString(installmentPaymentDataOptionItemNrInterestRate)) - .append("\n"); - sb.append(" installmentPaymentDataOptionItemNrMaximumNumberOfInstallments: ") - .append(toIndentedString(installmentPaymentDataOptionItemNrMaximumNumberOfInstallments)) - .append("\n"); - sb.append(" installmentPaymentDataOptionItemNrMinimumNumberOfInstallments: ") - .append(toIndentedString(installmentPaymentDataOptionItemNrMinimumNumberOfInstallments)) - .append("\n"); - sb.append(" installmentPaymentDataOptionItemNrNumberOfInstallments: ") - .append(toIndentedString(installmentPaymentDataOptionItemNrNumberOfInstallments)) - .append("\n"); - sb.append(" installmentPaymentDataOptionItemNrSubsequentInstallmentAmount: ") - .append(toIndentedString(installmentPaymentDataOptionItemNrSubsequentInstallmentAmount)) - .append("\n"); - sb.append(" installmentPaymentDataOptionItemNrTotalAmountDue: ") - .append(toIndentedString(installmentPaymentDataOptionItemNrTotalAmountDue)) - .append("\n"); - sb.append(" installmentPaymentDataPaymentOptions: ") - .append(toIndentedString(installmentPaymentDataPaymentOptions)) - .append("\n"); + sb.append(" installmentPaymentDataInstallmentType: ").append(toIndentedString(installmentPaymentDataInstallmentType)).append("\n"); + sb.append(" installmentPaymentDataOptionItemNrAnnualPercentageRate: ").append(toIndentedString(installmentPaymentDataOptionItemNrAnnualPercentageRate)).append("\n"); + sb.append(" installmentPaymentDataOptionItemNrFirstInstallmentAmount: ").append(toIndentedString(installmentPaymentDataOptionItemNrFirstInstallmentAmount)).append("\n"); + sb.append(" installmentPaymentDataOptionItemNrInstallmentFee: ").append(toIndentedString(installmentPaymentDataOptionItemNrInstallmentFee)).append("\n"); + sb.append(" installmentPaymentDataOptionItemNrInterestRate: ").append(toIndentedString(installmentPaymentDataOptionItemNrInterestRate)).append("\n"); + sb.append(" installmentPaymentDataOptionItemNrMaximumNumberOfInstallments: ").append(toIndentedString(installmentPaymentDataOptionItemNrMaximumNumberOfInstallments)).append("\n"); + sb.append(" installmentPaymentDataOptionItemNrMinimumNumberOfInstallments: ").append(toIndentedString(installmentPaymentDataOptionItemNrMinimumNumberOfInstallments)).append("\n"); + sb.append(" installmentPaymentDataOptionItemNrNumberOfInstallments: ").append(toIndentedString(installmentPaymentDataOptionItemNrNumberOfInstallments)).append("\n"); + sb.append(" installmentPaymentDataOptionItemNrSubsequentInstallmentAmount: ").append(toIndentedString(installmentPaymentDataOptionItemNrSubsequentInstallmentAmount)).append("\n"); + sb.append(" installmentPaymentDataOptionItemNrTotalAmountDue: ").append(toIndentedString(installmentPaymentDataOptionItemNrTotalAmountDue)).append("\n"); + sb.append(" installmentPaymentDataPaymentOptions: ").append(toIndentedString(installmentPaymentDataPaymentOptions)).append("\n"); sb.append(" installmentsValue: ").append(toIndentedString(installmentsValue)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -707,24 +528,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResponseAdditionalDataInstallments given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataInstallments - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ResponseAdditionalDataInstallments + * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataInstallments */ - public static ResponseAdditionalDataInstallments fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataInstallments fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataInstallments.class); } - - /** - * Convert an instance of ResponseAdditionalDataInstallments to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResponseAdditionalDataInstallments to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataNetworkTokens.java b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataNetworkTokens.java index 61ecf202c..317a14498 100644 --- a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataNetworkTokens.java +++ b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataNetworkTokens.java @@ -2,27 +2,37 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ResponseAdditionalDataNetworkTokens */ + +/** + * ResponseAdditionalDataNetworkTokens + */ @JsonPropertyOrder({ ResponseAdditionalDataNetworkTokens.JSON_PROPERTY_NETWORK_TOKEN_AVAILABLE, ResponseAdditionalDataNetworkTokens.JSON_PROPERTY_NETWORK_TOKEN_BIN, ResponseAdditionalDataNetworkTokens.JSON_PROPERTY_NETWORK_TOKEN_TOKEN_SUMMARY }) + public class ResponseAdditionalDataNetworkTokens { public static final String JSON_PROPERTY_NETWORK_TOKEN_AVAILABLE = "networkToken.available"; private String networkTokenAvailable; @@ -30,19 +40,17 @@ public class ResponseAdditionalDataNetworkTokens { public static final String JSON_PROPERTY_NETWORK_TOKEN_BIN = "networkToken.bin"; private String networkTokenBin; - public static final String JSON_PROPERTY_NETWORK_TOKEN_TOKEN_SUMMARY = - "networkToken.tokenSummary"; + public static final String JSON_PROPERTY_NETWORK_TOKEN_TOKEN_SUMMARY = "networkToken.tokenSummary"; private String networkTokenTokenSummary; - public ResponseAdditionalDataNetworkTokens() {} + public ResponseAdditionalDataNetworkTokens() { + } /** * Indicates whether a network token is available for the specified card. * - * @param networkTokenAvailable Indicates whether a network token is available for the specified - * card. - * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method - * chaining + * @param networkTokenAvailable Indicates whether a network token is available for the specified card. + * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method chaining */ public ResponseAdditionalDataNetworkTokens networkTokenAvailable(String networkTokenAvailable) { this.networkTokenAvailable = networkTokenAvailable; @@ -51,9 +59,7 @@ public ResponseAdditionalDataNetworkTokens networkTokenAvailable(String networkT /** * Indicates whether a network token is available for the specified card. - * - * @return networkTokenAvailable Indicates whether a network token is available for the specified - * card. + * @return networkTokenAvailable Indicates whether a network token is available for the specified card. */ @JsonProperty(JSON_PROPERTY_NETWORK_TOKEN_AVAILABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,8 +70,7 @@ public String getNetworkTokenAvailable() { /** * Indicates whether a network token is available for the specified card. * - * @param networkTokenAvailable Indicates whether a network token is available for the specified - * card. + * @param networkTokenAvailable Indicates whether a network token is available for the specified card. */ @JsonProperty(JSON_PROPERTY_NETWORK_TOKEN_AVAILABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -74,13 +79,10 @@ public void setNetworkTokenAvailable(String networkTokenAvailable) { } /** - * The Bank Identification Number of a tokenized card, which is the first six digits of a card - * number. + * The Bank Identification Number of a tokenized card, which is the first six digits of a card number. * - * @param networkTokenBin The Bank Identification Number of a tokenized card, which is the first - * six digits of a card number. - * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method - * chaining + * @param networkTokenBin The Bank Identification Number of a tokenized card, which is the first six digits of a card number. + * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method chaining */ public ResponseAdditionalDataNetworkTokens networkTokenBin(String networkTokenBin) { this.networkTokenBin = networkTokenBin; @@ -88,11 +90,8 @@ public ResponseAdditionalDataNetworkTokens networkTokenBin(String networkTokenBi } /** - * The Bank Identification Number of a tokenized card, which is the first six digits of a card - * number. - * - * @return networkTokenBin The Bank Identification Number of a tokenized card, which is the first - * six digits of a card number. + * The Bank Identification Number of a tokenized card, which is the first six digits of a card number. + * @return networkTokenBin The Bank Identification Number of a tokenized card, which is the first six digits of a card number. */ @JsonProperty(JSON_PROPERTY_NETWORK_TOKEN_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,11 +100,9 @@ public String getNetworkTokenBin() { } /** - * The Bank Identification Number of a tokenized card, which is the first six digits of a card - * number. + * The Bank Identification Number of a tokenized card, which is the first six digits of a card number. * - * @param networkTokenBin The Bank Identification Number of a tokenized card, which is the first - * six digits of a card number. + * @param networkTokenBin The Bank Identification Number of a tokenized card, which is the first six digits of a card number. */ @JsonProperty(JSON_PROPERTY_NETWORK_TOKEN_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,18 +114,15 @@ public void setNetworkTokenBin(String networkTokenBin) { * The last four digits of a network token. * * @param networkTokenTokenSummary The last four digits of a network token. - * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method - * chaining + * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method chaining */ - public ResponseAdditionalDataNetworkTokens networkTokenTokenSummary( - String networkTokenTokenSummary) { + public ResponseAdditionalDataNetworkTokens networkTokenTokenSummary(String networkTokenTokenSummary) { this.networkTokenTokenSummary = networkTokenTokenSummary; return this; } /** * The last four digits of a network token. - * * @return networkTokenTokenSummary The last four digits of a network token. */ @JsonProperty(JSON_PROPERTY_NETWORK_TOKEN_TOKEN_SUMMARY) @@ -148,7 +142,9 @@ public void setNetworkTokenTokenSummary(String networkTokenTokenSummary) { this.networkTokenTokenSummary = networkTokenTokenSummary; } - /** Return true if this ResponseAdditionalDataNetworkTokens object is equal to o. */ + /** + * Return true if this ResponseAdditionalDataNetworkTokens object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -157,14 +153,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResponseAdditionalDataNetworkTokens responseAdditionalDataNetworkTokens = - (ResponseAdditionalDataNetworkTokens) o; - return Objects.equals( - this.networkTokenAvailable, responseAdditionalDataNetworkTokens.networkTokenAvailable) - && Objects.equals(this.networkTokenBin, responseAdditionalDataNetworkTokens.networkTokenBin) - && Objects.equals( - this.networkTokenTokenSummary, - responseAdditionalDataNetworkTokens.networkTokenTokenSummary); + ResponseAdditionalDataNetworkTokens responseAdditionalDataNetworkTokens = (ResponseAdditionalDataNetworkTokens) o; + return Objects.equals(this.networkTokenAvailable, responseAdditionalDataNetworkTokens.networkTokenAvailable) && + Objects.equals(this.networkTokenBin, responseAdditionalDataNetworkTokens.networkTokenBin) && + Objects.equals(this.networkTokenTokenSummary, responseAdditionalDataNetworkTokens.networkTokenTokenSummary); } @Override @@ -176,19 +168,16 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataNetworkTokens {\n"); - sb.append(" networkTokenAvailable: ") - .append(toIndentedString(networkTokenAvailable)) - .append("\n"); + sb.append(" networkTokenAvailable: ").append(toIndentedString(networkTokenAvailable)).append("\n"); sb.append(" networkTokenBin: ").append(toIndentedString(networkTokenBin)).append("\n"); - sb.append(" networkTokenTokenSummary: ") - .append(toIndentedString(networkTokenTokenSummary)) - .append("\n"); + sb.append(" networkTokenTokenSummary: ").append(toIndentedString(networkTokenTokenSummary)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -197,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResponseAdditionalDataNetworkTokens given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataNetworkTokens - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ResponseAdditionalDataNetworkTokens + * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataNetworkTokens */ - public static ResponseAdditionalDataNetworkTokens fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataNetworkTokens fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataNetworkTokens.class); } - - /** - * Convert an instance of ResponseAdditionalDataNetworkTokens to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResponseAdditionalDataNetworkTokens to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataOpi.java b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataOpi.java index 3729a6abc..7f00c4bac 100644 --- a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataOpi.java +++ b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataOpi.java @@ -2,41 +2,46 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ResponseAdditionalDataOpi */ -@JsonPropertyOrder({ResponseAdditionalDataOpi.JSON_PROPERTY_OPI_TRANS_TOKEN}) + +/** + * ResponseAdditionalDataOpi + */ +@JsonPropertyOrder({ + ResponseAdditionalDataOpi.JSON_PROPERTY_OPI_TRANS_TOKEN +}) + public class ResponseAdditionalDataOpi { public static final String JSON_PROPERTY_OPI_TRANS_TOKEN = "opi.transToken"; private String opiTransToken; - public ResponseAdditionalDataOpi() {} + public ResponseAdditionalDataOpi() { + } /** - * Returned in the response if you included `opi.includeTransToken: true` in an - * ecommerce payment request. This contains an Oracle Payment Interface token that you can store - * in your Oracle Opera database to identify tokenized ecommerce transactions. For more - * information and required settings, see [Oracle - * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). * - * @param opiTransToken Returned in the response if you included `opi.includeTransToken: - * true` in an ecommerce payment request. This contains an Oracle Payment Interface token - * that you can store in your Oracle Opera database to identify tokenized ecommerce - * transactions. For more information and required settings, see [Oracle - * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * @param opiTransToken Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). * @return the current {@code ResponseAdditionalDataOpi} instance, allowing for method chaining */ public ResponseAdditionalDataOpi opiTransToken(String opiTransToken) { @@ -45,17 +50,8 @@ public ResponseAdditionalDataOpi opiTransToken(String opiTransToken) { } /** - * Returned in the response if you included `opi.includeTransToken: true` in an - * ecommerce payment request. This contains an Oracle Payment Interface token that you can store - * in your Oracle Opera database to identify tokenized ecommerce transactions. For more - * information and required settings, see [Oracle - * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). - * - * @return opiTransToken Returned in the response if you included `opi.includeTransToken: - * true` in an ecommerce payment request. This contains an Oracle Payment Interface token - * that you can store in your Oracle Opera database to identify tokenized ecommerce - * transactions. For more information and required settings, see [Oracle - * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * @return opiTransToken Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). */ @JsonProperty(JSON_PROPERTY_OPI_TRANS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,17 +60,9 @@ public String getOpiTransToken() { } /** - * Returned in the response if you included `opi.includeTransToken: true` in an - * ecommerce payment request. This contains an Oracle Payment Interface token that you can store - * in your Oracle Opera database to identify tokenized ecommerce transactions. For more - * information and required settings, see [Oracle - * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). * - * @param opiTransToken Returned in the response if you included `opi.includeTransToken: - * true` in an ecommerce payment request. This contains an Oracle Payment Interface token - * that you can store in your Oracle Opera database to identify tokenized ecommerce - * transactions. For more information and required settings, see [Oracle - * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * @param opiTransToken Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). */ @JsonProperty(JSON_PROPERTY_OPI_TRANS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -82,7 +70,9 @@ public void setOpiTransToken(String opiTransToken) { this.opiTransToken = opiTransToken; } - /** Return true if this ResponseAdditionalDataOpi object is equal to o. */ + /** + * Return true if this ResponseAdditionalDataOpi object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -110,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -119,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResponseAdditionalDataOpi given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataOpi - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ResponseAdditionalDataOpi + * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataOpi */ - public static ResponseAdditionalDataOpi fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataOpi fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataOpi.class); } - - /** - * Convert an instance of ResponseAdditionalDataOpi to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResponseAdditionalDataOpi to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataSepa.java b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataSepa.java index ed01b3547..c2cb8ce3c 100644 --- a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataSepa.java +++ b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataSepa.java @@ -2,57 +2,64 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ResponseAdditionalDataSepa */ + +/** + * ResponseAdditionalDataSepa + */ @JsonPropertyOrder({ ResponseAdditionalDataSepa.JSON_PROPERTY_SEPADIRECTDEBIT_DATE_OF_SIGNATURE, ResponseAdditionalDataSepa.JSON_PROPERTY_SEPADIRECTDEBIT_MANDATE_ID, ResponseAdditionalDataSepa.JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE }) + public class ResponseAdditionalDataSepa { - public static final String JSON_PROPERTY_SEPADIRECTDEBIT_DATE_OF_SIGNATURE = - "sepadirectdebit.dateOfSignature"; + public static final String JSON_PROPERTY_SEPADIRECTDEBIT_DATE_OF_SIGNATURE = "sepadirectdebit.dateOfSignature"; private String sepadirectdebitDateOfSignature; public static final String JSON_PROPERTY_SEPADIRECTDEBIT_MANDATE_ID = "sepadirectdebit.mandateId"; private String sepadirectdebitMandateId; - public static final String JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE = - "sepadirectdebit.sequenceType"; + public static final String JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE = "sepadirectdebit.sequenceType"; private String sepadirectdebitSequenceType; - public ResponseAdditionalDataSepa() {} + public ResponseAdditionalDataSepa() { + } /** - * The transaction signature date. Format: yyyy-MM-dd + * The transaction signature date. Format: yyyy-MM-dd * - * @param sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd + * @param sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd * @return the current {@code ResponseAdditionalDataSepa} instance, allowing for method chaining */ - public ResponseAdditionalDataSepa sepadirectdebitDateOfSignature( - String sepadirectdebitDateOfSignature) { + public ResponseAdditionalDataSepa sepadirectdebitDateOfSignature(String sepadirectdebitDateOfSignature) { this.sepadirectdebitDateOfSignature = sepadirectdebitDateOfSignature; return this; } /** - * The transaction signature date. Format: yyyy-MM-dd - * - * @return sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd + * The transaction signature date. Format: yyyy-MM-dd + * @return sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_DATE_OF_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -61,9 +68,9 @@ public String getSepadirectdebitDateOfSignature() { } /** - * The transaction signature date. Format: yyyy-MM-dd + * The transaction signature date. Format: yyyy-MM-dd * - * @param sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd + * @param sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_DATE_OF_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -74,8 +81,7 @@ public void setSepadirectdebitDateOfSignature(String sepadirectdebitDateOfSignat /** * Its value corresponds to the pspReference value of the transaction. * - * @param sepadirectdebitMandateId Its value corresponds to the pspReference value of the - * transaction. + * @param sepadirectdebitMandateId Its value corresponds to the pspReference value of the transaction. * @return the current {@code ResponseAdditionalDataSepa} instance, allowing for method chaining */ public ResponseAdditionalDataSepa sepadirectdebitMandateId(String sepadirectdebitMandateId) { @@ -85,9 +91,7 @@ public ResponseAdditionalDataSepa sepadirectdebitMandateId(String sepadirectdebi /** * Its value corresponds to the pspReference value of the transaction. - * - * @return sepadirectdebitMandateId Its value corresponds to the pspReference value of the - * transaction. + * @return sepadirectdebitMandateId Its value corresponds to the pspReference value of the transaction. */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_MANDATE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -98,8 +102,7 @@ public String getSepadirectdebitMandateId() { /** * Its value corresponds to the pspReference value of the transaction. * - * @param sepadirectdebitMandateId Its value corresponds to the pspReference value of the - * transaction. + * @param sepadirectdebitMandateId Its value corresponds to the pspReference value of the transaction. */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_MANDATE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,39 +111,19 @@ public void setSepadirectdebitMandateId(String sepadirectdebitMandateId) { } /** - * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to - * initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a - * series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out - * regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final - * collection in a series of direct debit instructions. Example: OOFF + * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF * - * @param sepadirectdebitSequenceType This field can take one of the following values: * OneOff: - * (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: - * (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: - * (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by - * the creditor. * Final: (FNAL) Last/final collection in a series of direct debit - * instructions. Example: OOFF + * @param sepadirectdebitSequenceType This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF * @return the current {@code ResponseAdditionalDataSepa} instance, allowing for method chaining */ - public ResponseAdditionalDataSepa sepadirectdebitSequenceType( - String sepadirectdebitSequenceType) { + public ResponseAdditionalDataSepa sepadirectdebitSequenceType(String sepadirectdebitSequenceType) { this.sepadirectdebitSequenceType = sepadirectdebitSequenceType; return this; } /** - * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to - * initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a - * series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out - * regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final - * collection in a series of direct debit instructions. Example: OOFF - * - * @return sepadirectdebitSequenceType This field can take one of the following values: * OneOff: - * (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: - * (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: - * (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by - * the creditor. * Final: (FNAL) Last/final collection in a series of direct debit - * instructions. Example: OOFF + * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF + * @return sepadirectdebitSequenceType This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -149,18 +132,9 @@ public String getSepadirectdebitSequenceType() { } /** - * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to - * initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a - * series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out - * regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final - * collection in a series of direct debit instructions. Example: OOFF + * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF * - * @param sepadirectdebitSequenceType This field can take one of the following values: * OneOff: - * (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: - * (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: - * (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by - * the creditor. * Final: (FNAL) Last/final collection in a series of direct debit - * instructions. Example: OOFF + * @param sepadirectdebitSequenceType This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,7 +142,9 @@ public void setSepadirectdebitSequenceType(String sepadirectdebitSequenceType) { this.sepadirectdebitSequenceType = sepadirectdebitSequenceType; } - /** Return true if this ResponseAdditionalDataSepa object is equal to o. */ + /** + * Return true if this ResponseAdditionalDataSepa object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -178,41 +154,30 @@ public boolean equals(Object o) { return false; } ResponseAdditionalDataSepa responseAdditionalDataSepa = (ResponseAdditionalDataSepa) o; - return Objects.equals( - this.sepadirectdebitDateOfSignature, - responseAdditionalDataSepa.sepadirectdebitDateOfSignature) - && Objects.equals( - this.sepadirectdebitMandateId, responseAdditionalDataSepa.sepadirectdebitMandateId) - && Objects.equals( - this.sepadirectdebitSequenceType, - responseAdditionalDataSepa.sepadirectdebitSequenceType); + return Objects.equals(this.sepadirectdebitDateOfSignature, responseAdditionalDataSepa.sepadirectdebitDateOfSignature) && + Objects.equals(this.sepadirectdebitMandateId, responseAdditionalDataSepa.sepadirectdebitMandateId) && + Objects.equals(this.sepadirectdebitSequenceType, responseAdditionalDataSepa.sepadirectdebitSequenceType); } @Override public int hashCode() { - return Objects.hash( - sepadirectdebitDateOfSignature, sepadirectdebitMandateId, sepadirectdebitSequenceType); + return Objects.hash(sepadirectdebitDateOfSignature, sepadirectdebitMandateId, sepadirectdebitSequenceType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataSepa {\n"); - sb.append(" sepadirectdebitDateOfSignature: ") - .append(toIndentedString(sepadirectdebitDateOfSignature)) - .append("\n"); - sb.append(" sepadirectdebitMandateId: ") - .append(toIndentedString(sepadirectdebitMandateId)) - .append("\n"); - sb.append(" sepadirectdebitSequenceType: ") - .append(toIndentedString(sepadirectdebitSequenceType)) - .append("\n"); + sb.append(" sepadirectdebitDateOfSignature: ").append(toIndentedString(sepadirectdebitDateOfSignature)).append("\n"); + sb.append(" sepadirectdebitMandateId: ").append(toIndentedString(sepadirectdebitMandateId)).append("\n"); + sb.append(" sepadirectdebitSequenceType: ").append(toIndentedString(sepadirectdebitSequenceType)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -221,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResponseAdditionalDataSepa given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataSepa - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ResponseAdditionalDataSepa + * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataSepa */ - public static ResponseAdditionalDataSepa fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataSepa fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataSepa.class); } - - /** - * Convert an instance of ResponseAdditionalDataSepa to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResponseAdditionalDataSepa to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataSwish.java b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataSwish.java new file mode 100644 index 000000000..7a6c1b2a4 --- /dev/null +++ b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataSwish.java @@ -0,0 +1,131 @@ +/* + * Adyen Checkout API + * + * The version of the OpenAPI document: 71 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.adyen.model.checkout; + +import java.util.*; +import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * ResponseAdditionalDataSwish + */ +@JsonPropertyOrder({ + ResponseAdditionalDataSwish.JSON_PROPERTY_SWISH_PAYER_ALIAS +}) + +public class ResponseAdditionalDataSwish { + public static final String JSON_PROPERTY_SWISH_PAYER_ALIAS = "swish.payerAlias"; + private String swishPayerAlias; + + public ResponseAdditionalDataSwish() { + } + + /** + * A Swish shopper's telephone number. + * + * @param swishPayerAlias A Swish shopper's telephone number. + * @return the current {@code ResponseAdditionalDataSwish} instance, allowing for method chaining + */ + public ResponseAdditionalDataSwish swishPayerAlias(String swishPayerAlias) { + this.swishPayerAlias = swishPayerAlias; + return this; + } + + /** + * A Swish shopper's telephone number. + * @return swishPayerAlias A Swish shopper's telephone number. + */ + @JsonProperty(JSON_PROPERTY_SWISH_PAYER_ALIAS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSwishPayerAlias() { + return swishPayerAlias; + } + + /** + * A Swish shopper's telephone number. + * + * @param swishPayerAlias A Swish shopper's telephone number. + */ + @JsonProperty(JSON_PROPERTY_SWISH_PAYER_ALIAS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSwishPayerAlias(String swishPayerAlias) { + this.swishPayerAlias = swishPayerAlias; + } + + /** + * Return true if this ResponseAdditionalDataSwish object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResponseAdditionalDataSwish responseAdditionalDataSwish = (ResponseAdditionalDataSwish) o; + return Objects.equals(this.swishPayerAlias, responseAdditionalDataSwish.swishPayerAlias); + } + + @Override + public int hashCode() { + return Objects.hash(swishPayerAlias); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResponseAdditionalDataSwish {\n"); + sb.append(" swishPayerAlias: ").append(toIndentedString(swishPayerAlias)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +/** + * Create an instance of ResponseAdditionalDataSwish given an JSON string + * + * @param jsonString JSON string + * @return An instance of ResponseAdditionalDataSwish + * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataSwish + */ + public static ResponseAdditionalDataSwish fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataSwish.class); + } +/** + * Convert an instance of ResponseAdditionalDataSwish to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} diff --git a/src/main/java/com/adyen/model/checkout/ResponsePaymentMethod.java b/src/main/java/com/adyen/model/checkout/ResponsePaymentMethod.java index 0d1d63ca3..04de59969 100644 --- a/src/main/java/com/adyen/model/checkout/ResponsePaymentMethod.java +++ b/src/main/java/com/adyen/model/checkout/ResponsePaymentMethod.java @@ -2,26 +2,36 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ResponsePaymentMethod */ + +/** + * ResponsePaymentMethod + */ @JsonPropertyOrder({ ResponsePaymentMethod.JSON_PROPERTY_BRAND, ResponsePaymentMethod.JSON_PROPERTY_TYPE }) + public class ResponsePaymentMethod { public static final String JSON_PROPERTY_BRAND = "brand"; private String brand; @@ -29,14 +39,13 @@ public class ResponsePaymentMethod { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public ResponsePaymentMethod() {} + public ResponsePaymentMethod() { + } /** - * The card brand that the shopper used to pay. Only returned if `paymentMethod.type` is - * **scheme**. + * The card brand that the shopper used to pay. Only returned if `paymentMethod.type` is **scheme**. * - * @param brand The card brand that the shopper used to pay. Only returned if - * `paymentMethod.type` is **scheme**. + * @param brand The card brand that the shopper used to pay. Only returned if `paymentMethod.type` is **scheme**. * @return the current {@code ResponsePaymentMethod} instance, allowing for method chaining */ public ResponsePaymentMethod brand(String brand) { @@ -45,11 +54,8 @@ public ResponsePaymentMethod brand(String brand) { } /** - * The card brand that the shopper used to pay. Only returned if `paymentMethod.type` is - * **scheme**. - * - * @return brand The card brand that the shopper used to pay. Only returned if - * `paymentMethod.type` is **scheme**. + * The card brand that the shopper used to pay. Only returned if `paymentMethod.type` is **scheme**. + * @return brand The card brand that the shopper used to pay. Only returned if `paymentMethod.type` is **scheme**. */ @JsonProperty(JSON_PROPERTY_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,11 +64,9 @@ public String getBrand() { } /** - * The card brand that the shopper used to pay. Only returned if `paymentMethod.type` is - * **scheme**. + * The card brand that the shopper used to pay. Only returned if `paymentMethod.type` is **scheme**. * - * @param brand The card brand that the shopper used to pay. Only returned if - * `paymentMethod.type` is **scheme**. + * @param brand The card brand that the shopper used to pay. Only returned if `paymentMethod.type` is **scheme**. */ @JsonProperty(JSON_PROPERTY_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,7 +87,6 @@ public ResponsePaymentMethod type(String type) { /** * The `paymentMethod.type` value used in the request. - * * @return type The `paymentMethod.type` value used in the request. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -103,7 +106,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this ResponsePaymentMethod object is equal to o. */ + /** + * Return true if this ResponsePaymentMethod object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -113,8 +118,8 @@ public boolean equals(Object o) { return false; } ResponsePaymentMethod responsePaymentMethod = (ResponsePaymentMethod) o; - return Objects.equals(this.brand, responsePaymentMethod.brand) - && Objects.equals(this.type, responsePaymentMethod.type); + return Objects.equals(this.brand, responsePaymentMethod.brand) && + Objects.equals(this.type, responsePaymentMethod.type); } @Override @@ -133,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -142,23 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResponsePaymentMethod given an JSON string * * @param jsonString JSON string * @return An instance of ResponsePaymentMethod - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ResponsePaymentMethod + * @throws JsonProcessingException if the JSON string is invalid with respect to ResponsePaymentMethod */ public static ResponsePaymentMethod fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponsePaymentMethod.class); } - - /** - * Convert an instance of ResponsePaymentMethod to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResponsePaymentMethod to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Result.java b/src/main/java/com/adyen/model/checkout/Result.java index c8c43fea4..96c070050 100644 --- a/src/main/java/com/adyen/model/checkout/Result.java +++ b/src/main/java/com/adyen/model/checkout/Result.java @@ -2,25 +2,34 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -import java.util.*; -/** Gets or Sets Result */ +/** + * Gets or Sets Result + */ public enum Result { + VALID("VALID"), - + INVALID("INVALID"), - + UNKNOWN("UNKNOWN"); private String value; @@ -49,3 +58,4 @@ public static Result fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } + diff --git a/src/main/java/com/adyen/model/checkout/RiskData.java b/src/main/java/com/adyen/model/checkout/RiskData.java index b9c430932..59d69c013 100644 --- a/src/main/java/com/adyen/model/checkout/RiskData.java +++ b/src/main/java/com/adyen/model/checkout/RiskData.java @@ -2,30 +2,40 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** RiskData */ +/** + * RiskData + */ @JsonPropertyOrder({ RiskData.JSON_PROPERTY_CLIENT_DATA, RiskData.JSON_PROPERTY_CUSTOM_FIELDS, RiskData.JSON_PROPERTY_FRAUD_OFFSET, RiskData.JSON_PROPERTY_PROFILE_REFERENCE }) + public class RiskData { public static final String JSON_PROPERTY_CLIENT_DATA = "clientData"; private String clientData; @@ -39,13 +49,13 @@ public class RiskData { public static final String JSON_PROPERTY_PROFILE_REFERENCE = "profileReference"; private String profileReference; - public RiskData() {} + public RiskData() { + } /** * Contains client-side data, like the device fingerprint, cookies, and specific browser settings. * - * @param clientData Contains client-side data, like the device fingerprint, cookies, and specific - * browser settings. + * @param clientData Contains client-side data, like the device fingerprint, cookies, and specific browser settings. * @return the current {@code RiskData} instance, allowing for method chaining */ public RiskData clientData(String clientData) { @@ -55,9 +65,7 @@ public RiskData clientData(String clientData) { /** * Contains client-side data, like the device fingerprint, cookies, and specific browser settings. - * - * @return clientData Contains client-side data, like the device fingerprint, cookies, and - * specific browser settings. + * @return clientData Contains client-side data, like the device fingerprint, cookies, and specific browser settings. */ @JsonProperty(JSON_PROPERTY_CLIENT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,8 +76,7 @@ public String getClientData() { /** * Contains client-side data, like the device fingerprint, cookies, and specific browser settings. * - * @param clientData Contains client-side data, like the device fingerprint, cookies, and specific - * browser settings. + * @param clientData Contains client-side data, like the device fingerprint, cookies, and specific browser settings. */ @JsonProperty(JSON_PROPERTY_CLIENT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -98,7 +105,6 @@ public RiskData putCustomFieldsItem(String key, String customFieldsItem) { /** * Any custom fields used as part of the input to configured risk rules. - * * @return customFields Any custom fields used as part of the input to configured risk rules. */ @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) @@ -119,11 +125,9 @@ public void setCustomFields(Map customFields) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or - * negative. + * An integer value that is added to the normal fraud score. The value can be either positive or negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be - * either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. * @return the current {@code RiskData} instance, allowing for method chaining */ public RiskData fraudOffset(Integer fraudOffset) { @@ -132,11 +136,8 @@ public RiskData fraudOffset(Integer fraudOffset) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or - * negative. - * - * @return fraudOffset An integer value that is added to the normal fraud score. The value can be - * either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + * @return fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,11 +146,9 @@ public Integer getFraudOffset() { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or - * negative. + * An integer value that is added to the normal fraud score. The value can be either positive or negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be - * either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,11 +157,9 @@ public void setFraudOffset(Integer fraudOffset) { } /** - * The risk profile to assign to this payment. When left empty, the merchant-level account's - * default risk profile will be applied. + * The risk profile to assign to this payment. When left empty, the merchant-level account's default risk profile will be applied. * - * @param profileReference The risk profile to assign to this payment. When left empty, the - * merchant-level account's default risk profile will be applied. + * @param profileReference The risk profile to assign to this payment. When left empty, the merchant-level account's default risk profile will be applied. * @return the current {@code RiskData} instance, allowing for method chaining */ public RiskData profileReference(String profileReference) { @@ -171,11 +168,8 @@ public RiskData profileReference(String profileReference) { } /** - * The risk profile to assign to this payment. When left empty, the merchant-level account's - * default risk profile will be applied. - * - * @return profileReference The risk profile to assign to this payment. When left empty, the - * merchant-level account's default risk profile will be applied. + * The risk profile to assign to this payment. When left empty, the merchant-level account's default risk profile will be applied. + * @return profileReference The risk profile to assign to this payment. When left empty, the merchant-level account's default risk profile will be applied. */ @JsonProperty(JSON_PROPERTY_PROFILE_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -184,11 +178,9 @@ public String getProfileReference() { } /** - * The risk profile to assign to this payment. When left empty, the merchant-level account's - * default risk profile will be applied. + * The risk profile to assign to this payment. When left empty, the merchant-level account's default risk profile will be applied. * - * @param profileReference The risk profile to assign to this payment. When left empty, the - * merchant-level account's default risk profile will be applied. + * @param profileReference The risk profile to assign to this payment. When left empty, the merchant-level account's default risk profile will be applied. */ @JsonProperty(JSON_PROPERTY_PROFILE_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -196,7 +188,9 @@ public void setProfileReference(String profileReference) { this.profileReference = profileReference; } - /** Return true if this RiskData object is equal to o. */ + /** + * Return true if this RiskData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -206,10 +200,10 @@ public boolean equals(Object o) { return false; } RiskData riskData = (RiskData) o; - return Objects.equals(this.clientData, riskData.clientData) - && Objects.equals(this.customFields, riskData.customFields) - && Objects.equals(this.fraudOffset, riskData.fraudOffset) - && Objects.equals(this.profileReference, riskData.profileReference); + return Objects.equals(this.clientData, riskData.clientData) && + Objects.equals(this.customFields, riskData.customFields) && + Objects.equals(this.fraudOffset, riskData.fraudOffset) && + Objects.equals(this.profileReference, riskData.profileReference); } @Override @@ -230,7 +224,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -239,7 +234,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RiskData given an JSON string * * @param jsonString JSON string @@ -249,12 +244,11 @@ private String toIndentedString(Object o) { public static RiskData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RiskData.class); } - - /** - * Convert an instance of RiskData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RiskData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/RivertyDetails.java b/src/main/java/com/adyen/model/checkout/RivertyDetails.java index cc762c86d..bce8413ec 100644 --- a/src/main/java/com/adyen/model/checkout/RivertyDetails.java +++ b/src/main/java/com/adyen/model/checkout/RivertyDetails.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** RivertyDetails */ +/** + * RivertyDetails + */ @JsonPropertyOrder({ RivertyDetails.JSON_PROPERTY_BILLING_ADDRESS, RivertyDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, @@ -34,6 +39,7 @@ RivertyDetails.JSON_PROPERTY_SUBTYPE, RivertyDetails.JSON_PROPERTY_TYPE }) + public class RivertyDetails { public static final String JSON_PROPERTY_BILLING_ADDRESS = "billingAddress"; private String billingAddress; @@ -63,8 +69,11 @@ public class RivertyDetails { public static final String JSON_PROPERTY_SUBTYPE = "subtype"; private String subtype; - /** **riverty** */ + /** + * **riverty** + */ public enum TypeEnum { + RIVERTY(String.valueOf("riverty")), RIVERTY_ACCOUNT(String.valueOf("riverty_account")), @@ -78,7 +87,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -99,11 +108,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -111,7 +116,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public RivertyDetails() {} + public RivertyDetails() { + } /** * The address where to send the invoice. @@ -126,7 +132,6 @@ public RivertyDetails billingAddress(String billingAddress) { /** * The address where to send the invoice. - * * @return billingAddress The address where to send the invoice. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @@ -159,7 +164,6 @@ public RivertyDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -192,7 +196,6 @@ public RivertyDetails deliveryAddress(String deliveryAddress) { /** * The address where the goods should be delivered. - * * @return deliveryAddress The address where the goods should be delivered. */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @@ -213,12 +216,9 @@ public void setDeliveryAddress(String deliveryAddress) { } /** - * A string containing the shopper's device fingerprint. For more information, refer to - * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * - * @param deviceFingerprint A string containing the shopper's device fingerprint. For more - * information, refer to [Device - * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @param deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * @return the current {@code RivertyDetails} instance, allowing for method chaining */ public RivertyDetails deviceFingerprint(String deviceFingerprint) { @@ -227,12 +227,8 @@ public RivertyDetails deviceFingerprint(String deviceFingerprint) { } /** - * A string containing the shopper's device fingerprint. For more information, refer to - * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). - * - * @return deviceFingerprint A string containing the shopper's device fingerprint. For more - * information, refer to [Device - * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @return deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -241,12 +237,9 @@ public String getDeviceFingerprint() { } /** - * A string containing the shopper's device fingerprint. For more information, refer to - * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * - * @param deviceFingerprint A string containing the shopper's device fingerprint. For more - * information, refer to [Device - * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @param deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -255,9 +248,9 @@ public void setDeviceFingerprint(String deviceFingerprint) { } /** - * The iban number of the customer + * The iban number of the customer * - * @param iban The iban number of the customer + * @param iban The iban number of the customer * @return the current {@code RivertyDetails} instance, allowing for method chaining */ public RivertyDetails iban(String iban) { @@ -266,9 +259,8 @@ public RivertyDetails iban(String iban) { } /** - * The iban number of the customer - * - * @return iban The iban number of the customer + * The iban number of the customer + * @return iban The iban number of the customer */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -277,9 +269,9 @@ public String getIban() { } /** - * The iban number of the customer + * The iban number of the customer * - * @param iban The iban number of the customer + * @param iban The iban number of the customer */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -300,7 +292,6 @@ public RivertyDetails personalDetails(String personalDetails) { /** * Shopper name, date of birth, phone number, and email address. - * * @return personalDetails Shopper name, date of birth, phone number, and email address. */ @JsonProperty(JSON_PROPERTY_PERSONAL_DETAILS) @@ -321,13 +312,13 @@ public void setPersonalDetails(String personalDetails) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code RivertyDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public RivertyDetails recurringDetailReference(String recurringDetailReference) { @@ -336,11 +327,8 @@ public RivertyDetails recurringDetailReference(String recurringDetailReference) } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -351,12 +339,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -366,11 +354,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code RivertyDetails} instance, allowing for method chaining */ public RivertyDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -379,11 +365,8 @@ public RivertyDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -392,11 +375,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -417,7 +398,6 @@ public RivertyDetails subtype(String subtype) { /** * The payment method subtype. - * * @return subtype The payment method subtype. */ @JsonProperty(JSON_PROPERTY_SUBTYPE) @@ -450,7 +430,6 @@ public RivertyDetails type(TypeEnum type) { /** * **riverty** - * * @return type **riverty** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -470,7 +449,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this RivertyDetails object is equal to o. */ + /** + * Return true if this RivertyDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -480,31 +461,21 @@ public boolean equals(Object o) { return false; } RivertyDetails rivertyDetails = (RivertyDetails) o; - return Objects.equals(this.billingAddress, rivertyDetails.billingAddress) - && Objects.equals(this.checkoutAttemptId, rivertyDetails.checkoutAttemptId) - && Objects.equals(this.deliveryAddress, rivertyDetails.deliveryAddress) - && Objects.equals(this.deviceFingerprint, rivertyDetails.deviceFingerprint) - && Objects.equals(this.iban, rivertyDetails.iban) - && Objects.equals(this.personalDetails, rivertyDetails.personalDetails) - && Objects.equals(this.recurringDetailReference, rivertyDetails.recurringDetailReference) - && Objects.equals(this.storedPaymentMethodId, rivertyDetails.storedPaymentMethodId) - && Objects.equals(this.subtype, rivertyDetails.subtype) - && Objects.equals(this.type, rivertyDetails.type); + return Objects.equals(this.billingAddress, rivertyDetails.billingAddress) && + Objects.equals(this.checkoutAttemptId, rivertyDetails.checkoutAttemptId) && + Objects.equals(this.deliveryAddress, rivertyDetails.deliveryAddress) && + Objects.equals(this.deviceFingerprint, rivertyDetails.deviceFingerprint) && + Objects.equals(this.iban, rivertyDetails.iban) && + Objects.equals(this.personalDetails, rivertyDetails.personalDetails) && + Objects.equals(this.recurringDetailReference, rivertyDetails.recurringDetailReference) && + Objects.equals(this.storedPaymentMethodId, rivertyDetails.storedPaymentMethodId) && + Objects.equals(this.subtype, rivertyDetails.subtype) && + Objects.equals(this.type, rivertyDetails.type); } @Override public int hashCode() { - return Objects.hash( - billingAddress, - checkoutAttemptId, - deliveryAddress, - deviceFingerprint, - iban, - personalDetails, - recurringDetailReference, - storedPaymentMethodId, - subtype, - type); + return Objects.hash(billingAddress, checkoutAttemptId, deliveryAddress, deviceFingerprint, iban, personalDetails, recurringDetailReference, storedPaymentMethodId, subtype, type); } @Override @@ -517,12 +488,8 @@ public String toString() { sb.append(" deviceFingerprint: ").append(toIndentedString(deviceFingerprint)).append("\n"); sb.append(" iban: ").append(toIndentedString(iban)).append("\n"); sb.append(" personalDetails: ").append(toIndentedString(personalDetails)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -530,7 +497,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -539,7 +507,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RivertyDetails given an JSON string * * @param jsonString JSON string @@ -549,12 +517,11 @@ private String toIndentedString(Object o) { public static RivertyDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RivertyDetails.class); } - - /** - * Convert an instance of RivertyDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RivertyDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/SDKEphemPubKey.java b/src/main/java/com/adyen/model/checkout/SDKEphemPubKey.java index 547873cbf..93530473b 100644 --- a/src/main/java/com/adyen/model/checkout/SDKEphemPubKey.java +++ b/src/main/java/com/adyen/model/checkout/SDKEphemPubKey.java @@ -2,28 +2,38 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** SDKEphemPubKey */ + +/** + * SDKEphemPubKey + */ @JsonPropertyOrder({ SDKEphemPubKey.JSON_PROPERTY_CRV, SDKEphemPubKey.JSON_PROPERTY_KTY, SDKEphemPubKey.JSON_PROPERTY_X, SDKEphemPubKey.JSON_PROPERTY_Y }) + public class SDKEphemPubKey { public static final String JSON_PROPERTY_CRV = "crv"; private String crv; @@ -37,7 +47,8 @@ public class SDKEphemPubKey { public static final String JSON_PROPERTY_Y = "y"; private String y; - public SDKEphemPubKey() {} + public SDKEphemPubKey() { + } /** * The `crv` value as received from the 3D Secure 2 SDK. @@ -52,7 +63,6 @@ public SDKEphemPubKey crv(String crv) { /** * The `crv` value as received from the 3D Secure 2 SDK. - * * @return crv The `crv` value as received from the 3D Secure 2 SDK. */ @JsonProperty(JSON_PROPERTY_CRV) @@ -85,7 +95,6 @@ public SDKEphemPubKey kty(String kty) { /** * The `kty` value as received from the 3D Secure 2 SDK. - * * @return kty The `kty` value as received from the 3D Secure 2 SDK. */ @JsonProperty(JSON_PROPERTY_KTY) @@ -118,7 +127,6 @@ public SDKEphemPubKey x(String x) { /** * The `x` value as received from the 3D Secure 2 SDK. - * * @return x The `x` value as received from the 3D Secure 2 SDK. */ @JsonProperty(JSON_PROPERTY_X) @@ -151,7 +159,6 @@ public SDKEphemPubKey y(String y) { /** * The `y` value as received from the 3D Secure 2 SDK. - * * @return y The `y` value as received from the 3D Secure 2 SDK. */ @JsonProperty(JSON_PROPERTY_Y) @@ -171,7 +178,9 @@ public void setY(String y) { this.y = y; } - /** Return true if this SDKEphemPubKey object is equal to o. */ + /** + * Return true if this SDKEphemPubKey object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -181,10 +190,10 @@ public boolean equals(Object o) { return false; } SDKEphemPubKey sdKEphemPubKey = (SDKEphemPubKey) o; - return Objects.equals(this.crv, sdKEphemPubKey.crv) - && Objects.equals(this.kty, sdKEphemPubKey.kty) - && Objects.equals(this.x, sdKEphemPubKey.x) - && Objects.equals(this.y, sdKEphemPubKey.y); + return Objects.equals(this.crv, sdKEphemPubKey.crv) && + Objects.equals(this.kty, sdKEphemPubKey.kty) && + Objects.equals(this.x, sdKEphemPubKey.x) && + Objects.equals(this.y, sdKEphemPubKey.y); } @Override @@ -205,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -214,7 +224,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SDKEphemPubKey given an JSON string * * @param jsonString JSON string @@ -224,12 +234,11 @@ private String toIndentedString(Object o) { public static SDKEphemPubKey fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SDKEphemPubKey.class); } - - /** - * Convert an instance of SDKEphemPubKey to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SDKEphemPubKey to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/SamsungPayDetails.java b/src/main/java/com/adyen/model/checkout/SamsungPayDetails.java index add3103e6..8b1550b02 100644 --- a/src/main/java/com/adyen/model/checkout/SamsungPayDetails.java +++ b/src/main/java/com/adyen/model/checkout/SamsungPayDetails.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** SamsungPayDetails */ + +/** + * SamsungPayDetails + */ @JsonPropertyOrder({ SamsungPayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, SamsungPayDetails.JSON_PROPERTY_FUNDING_SOURCE, @@ -30,15 +35,16 @@ SamsungPayDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, SamsungPayDetails.JSON_PROPERTY_TYPE }) + public class SamsungPayDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ public enum FundingSourceEnum { + CREDIT(String.valueOf("credit")), DEBIT(String.valueOf("debit")); @@ -48,7 +54,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,11 +75,7 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FundingSourceEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FundingSourceEnum.values())); + LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -91,8 +93,11 @@ public static FundingSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** **samsungpay** */ + /** + * **samsungpay** + */ public enum TypeEnum { + SAMSUNGPAY(String.valueOf("samsungpay")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -100,7 +105,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -121,11 +126,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -133,7 +134,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public SamsungPayDetails() {} + public SamsungPayDetails() { + } /** * The checkout attempt identifier. @@ -148,7 +150,6 @@ public SamsungPayDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -169,12 +170,9 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * @return the current {@code SamsungPayDetails} instance, allowing for method chaining */ public SamsungPayDetails fundingSource(FundingSourceEnum fundingSource) { @@ -183,12 +181,8 @@ public SamsungPayDetails fundingSource(FundingSourceEnum fundingSource) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. - * - * @return fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @return fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -197,12 +191,9 @@ public FundingSourceEnum getFundingSource() { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,13 +202,13 @@ public void setFundingSource(FundingSourceEnum fundingSource) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code SamsungPayDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public SamsungPayDetails recurringDetailReference(String recurringDetailReference) { @@ -226,11 +217,8 @@ public SamsungPayDetails recurringDetailReference(String recurringDetailReferenc } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -241,12 +229,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -268,7 +256,6 @@ public SamsungPayDetails samsungPayToken(String samsungPayToken) { /** * The payload you received from the Samsung Pay SDK response. - * * @return samsungPayToken The payload you received from the Samsung Pay SDK response. */ @JsonProperty(JSON_PROPERTY_SAMSUNG_PAY_TOKEN) @@ -289,11 +276,9 @@ public void setSamsungPayToken(String samsungPayToken) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code SamsungPayDetails} instance, allowing for method chaining */ public SamsungPayDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -302,11 +287,8 @@ public SamsungPayDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -315,11 +297,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -340,7 +320,6 @@ public SamsungPayDetails type(TypeEnum type) { /** * **samsungpay** - * * @return type **samsungpay** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -360,7 +339,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this SamsungPayDetails object is equal to o. */ + /** + * Return true if this SamsungPayDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -370,23 +351,17 @@ public boolean equals(Object o) { return false; } SamsungPayDetails samsungPayDetails = (SamsungPayDetails) o; - return Objects.equals(this.checkoutAttemptId, samsungPayDetails.checkoutAttemptId) - && Objects.equals(this.fundingSource, samsungPayDetails.fundingSource) - && Objects.equals(this.recurringDetailReference, samsungPayDetails.recurringDetailReference) - && Objects.equals(this.samsungPayToken, samsungPayDetails.samsungPayToken) - && Objects.equals(this.storedPaymentMethodId, samsungPayDetails.storedPaymentMethodId) - && Objects.equals(this.type, samsungPayDetails.type); + return Objects.equals(this.checkoutAttemptId, samsungPayDetails.checkoutAttemptId) && + Objects.equals(this.fundingSource, samsungPayDetails.fundingSource) && + Objects.equals(this.recurringDetailReference, samsungPayDetails.recurringDetailReference) && + Objects.equals(this.samsungPayToken, samsungPayDetails.samsungPayToken) && + Objects.equals(this.storedPaymentMethodId, samsungPayDetails.storedPaymentMethodId) && + Objects.equals(this.type, samsungPayDetails.type); } @Override public int hashCode() { - return Objects.hash( - checkoutAttemptId, - fundingSource, - recurringDetailReference, - samsungPayToken, - storedPaymentMethodId, - type); + return Objects.hash(checkoutAttemptId, fundingSource, recurringDetailReference, samsungPayToken, storedPaymentMethodId, type); } @Override @@ -395,20 +370,17 @@ public String toString() { sb.append("class SamsungPayDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); sb.append(" samsungPayToken: ").append(toIndentedString(samsungPayToken)).append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -417,7 +389,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SamsungPayDetails given an JSON string * * @param jsonString JSON string @@ -427,12 +399,11 @@ private String toIndentedString(Object o) { public static SamsungPayDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SamsungPayDetails.class); } - - /** - * Convert an instance of SamsungPayDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SamsungPayDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/SepaDirectDebitDetails.java b/src/main/java/com/adyen/model/checkout/SepaDirectDebitDetails.java index 779ed59f8..6c417bafd 100644 --- a/src/main/java/com/adyen/model/checkout/SepaDirectDebitDetails.java +++ b/src/main/java/com/adyen/model/checkout/SepaDirectDebitDetails.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** SepaDirectDebitDetails */ + +/** + * SepaDirectDebitDetails + */ @JsonPropertyOrder({ SepaDirectDebitDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, SepaDirectDebitDetails.JSON_PROPERTY_IBAN, @@ -31,6 +36,7 @@ SepaDirectDebitDetails.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID, SepaDirectDebitDetails.JSON_PROPERTY_TYPE }) + public class SepaDirectDebitDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -51,8 +57,11 @@ public class SepaDirectDebitDetails { public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_ID = "transferInstrumentId"; private String transferInstrumentId; - /** **sepadirectdebit** */ + /** + * **sepadirectdebit** + */ public enum TypeEnum { + SEPADIRECTDEBIT(String.valueOf("sepadirectdebit")), SEPADIRECTDEBIT_AMAZONPAY(String.valueOf("sepadirectdebit_amazonpay")); @@ -62,7 +71,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -83,11 +92,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -95,7 +100,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public SepaDirectDebitDetails() {} + public SepaDirectDebitDetails() { + } /** * The checkout attempt identifier. @@ -110,7 +116,6 @@ public SepaDirectDebitDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -143,7 +148,6 @@ public SepaDirectDebitDetails iban(String iban) { /** * The International Bank Account Number (IBAN). - * * @return iban The International Bank Account Number (IBAN). */ @JsonProperty(JSON_PROPERTY_IBAN) @@ -176,7 +180,6 @@ public SepaDirectDebitDetails ownerName(String ownerName) { /** * The name of the bank account holder. - * * @return ownerName The name of the bank account holder. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @@ -197,13 +200,13 @@ public void setOwnerName(String ownerName) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code SepaDirectDebitDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public SepaDirectDebitDetails recurringDetailReference(String recurringDetailReference) { @@ -212,11 +215,8 @@ public SepaDirectDebitDetails recurringDetailReference(String recurringDetailRef } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -227,12 +227,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -242,11 +242,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code SepaDirectDebitDetails} instance, allowing for method chaining */ public SepaDirectDebitDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -255,11 +253,8 @@ public SepaDirectDebitDetails storedPaymentMethodId(String storedPaymentMethodId } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -268,11 +263,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -281,11 +274,9 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { } /** - * The unique identifier of your user's verified transfer instrument, which you can use to top - * up their balance accounts. + * The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. * - * @param transferInstrumentId The unique identifier of your user's verified transfer - * instrument, which you can use to top up their balance accounts. + * @param transferInstrumentId The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. * @return the current {@code SepaDirectDebitDetails} instance, allowing for method chaining */ public SepaDirectDebitDetails transferInstrumentId(String transferInstrumentId) { @@ -294,11 +285,8 @@ public SepaDirectDebitDetails transferInstrumentId(String transferInstrumentId) } /** - * The unique identifier of your user's verified transfer instrument, which you can use to top - * up their balance accounts. - * - * @return transferInstrumentId The unique identifier of your user's verified transfer - * instrument, which you can use to top up their balance accounts. + * The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. + * @return transferInstrumentId The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -307,11 +295,9 @@ public String getTransferInstrumentId() { } /** - * The unique identifier of your user's verified transfer instrument, which you can use to top - * up their balance accounts. + * The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. * - * @param transferInstrumentId The unique identifier of your user's verified transfer - * instrument, which you can use to top up their balance accounts. + * @param transferInstrumentId The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -332,7 +318,6 @@ public SepaDirectDebitDetails type(TypeEnum type) { /** * **sepadirectdebit** - * * @return type **sepadirectdebit** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -352,7 +337,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this SepaDirectDebitDetails object is equal to o. */ + /** + * Return true if this SepaDirectDebitDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -362,26 +349,18 @@ public boolean equals(Object o) { return false; } SepaDirectDebitDetails sepaDirectDebitDetails = (SepaDirectDebitDetails) o; - return Objects.equals(this.checkoutAttemptId, sepaDirectDebitDetails.checkoutAttemptId) - && Objects.equals(this.iban, sepaDirectDebitDetails.iban) - && Objects.equals(this.ownerName, sepaDirectDebitDetails.ownerName) - && Objects.equals( - this.recurringDetailReference, sepaDirectDebitDetails.recurringDetailReference) - && Objects.equals(this.storedPaymentMethodId, sepaDirectDebitDetails.storedPaymentMethodId) - && Objects.equals(this.transferInstrumentId, sepaDirectDebitDetails.transferInstrumentId) - && Objects.equals(this.type, sepaDirectDebitDetails.type); + return Objects.equals(this.checkoutAttemptId, sepaDirectDebitDetails.checkoutAttemptId) && + Objects.equals(this.iban, sepaDirectDebitDetails.iban) && + Objects.equals(this.ownerName, sepaDirectDebitDetails.ownerName) && + Objects.equals(this.recurringDetailReference, sepaDirectDebitDetails.recurringDetailReference) && + Objects.equals(this.storedPaymentMethodId, sepaDirectDebitDetails.storedPaymentMethodId) && + Objects.equals(this.transferInstrumentId, sepaDirectDebitDetails.transferInstrumentId) && + Objects.equals(this.type, sepaDirectDebitDetails.type); } @Override public int hashCode() { - return Objects.hash( - checkoutAttemptId, - iban, - ownerName, - recurringDetailReference, - storedPaymentMethodId, - transferInstrumentId, - type); + return Objects.hash(checkoutAttemptId, iban, ownerName, recurringDetailReference, storedPaymentMethodId, transferInstrumentId, type); } @Override @@ -391,22 +370,17 @@ public String toString() { sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" iban: ").append(toIndentedString(iban)).append("\n"); sb.append(" ownerName: ").append(toIndentedString(ownerName)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); - sb.append(" transferInstrumentId: ") - .append(toIndentedString(transferInstrumentId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" transferInstrumentId: ").append(toIndentedString(transferInstrumentId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -415,23 +389,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SepaDirectDebitDetails given an JSON string * * @param jsonString JSON string * @return An instance of SepaDirectDebitDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SepaDirectDebitDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to SepaDirectDebitDetails */ public static SepaDirectDebitDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SepaDirectDebitDetails.class); } - - /** - * Convert an instance of SepaDirectDebitDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SepaDirectDebitDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ServiceError.java b/src/main/java/com/adyen/model/checkout/ServiceError.java index d81699410..10c10bc67 100644 --- a/src/main/java/com/adyen/model/checkout/ServiceError.java +++ b/src/main/java/com/adyen/model/checkout/ServiceError.java @@ -2,24 +2,33 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ServiceError */ +/** + * ServiceError + */ @JsonPropertyOrder({ ServiceError.JSON_PROPERTY_ADDITIONAL_DATA, ServiceError.JSON_PROPERTY_ERROR_CODE, @@ -28,6 +37,7 @@ ServiceError.JSON_PROPERTY_PSP_REFERENCE, ServiceError.JSON_PROPERTY_STATUS }) + public class ServiceError { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -47,15 +57,13 @@ public class ServiceError { public static final String JSON_PROPERTY_STATUS = "status"; private Integer status; - public ServiceError() {} + public ServiceError() { + } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first. Go to **Customer Area** > **Developers** > - * **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. * @return the current {@code ServiceError} instance, allowing for method chaining */ public ServiceError additionalData(Map additionalData) { @@ -72,12 +80,8 @@ public ServiceError putAdditionalDataItem(String key, String additionalDataItem) } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first. Go to **Customer Area** > **Developers** > **Additional data**. - * - * @return additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first. Go to **Customer Area** > **Developers** > - * **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * @return additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -86,12 +90,9 @@ public Map getAdditionalData() { } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first. Go to **Customer Area** > **Developers** > - * **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,7 +113,6 @@ public ServiceError errorCode(String errorCode) { /** * The error code mapped to the error message. - * * @return errorCode The error code mapped to the error message. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -145,7 +145,6 @@ public ServiceError errorType(String errorType) { /** * The category of the error. - * * @return errorType The category of the error. */ @JsonProperty(JSON_PROPERTY_ERROR_TYPE) @@ -178,7 +177,6 @@ public ServiceError message(String message) { /** * A short explanation of the issue. - * * @return message A short explanation of the issue. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -211,7 +209,6 @@ public ServiceError pspReference(String pspReference) { /** * The PSP reference of the payment. - * * @return pspReference The PSP reference of the payment. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -244,7 +241,6 @@ public ServiceError status(Integer status) { /** * The HTTP response status. - * * @return status The HTTP response status. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -264,7 +260,9 @@ public void setStatus(Integer status) { this.status = status; } - /** Return true if this ServiceError object is equal to o. */ + /** + * Return true if this ServiceError object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -274,12 +272,12 @@ public boolean equals(Object o) { return false; } ServiceError serviceError = (ServiceError) o; - return Objects.equals(this.additionalData, serviceError.additionalData) - && Objects.equals(this.errorCode, serviceError.errorCode) - && Objects.equals(this.errorType, serviceError.errorType) - && Objects.equals(this.message, serviceError.message) - && Objects.equals(this.pspReference, serviceError.pspReference) - && Objects.equals(this.status, serviceError.status); + return Objects.equals(this.additionalData, serviceError.additionalData) && + Objects.equals(this.errorCode, serviceError.errorCode) && + Objects.equals(this.errorType, serviceError.errorType) && + Objects.equals(this.message, serviceError.message) && + Objects.equals(this.pspReference, serviceError.pspReference) && + Objects.equals(this.status, serviceError.status); } @Override @@ -302,7 +300,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -311,7 +310,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ServiceError given an JSON string * * @param jsonString JSON string @@ -321,12 +320,11 @@ private String toIndentedString(Object o) { public static ServiceError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } - - /** - * Convert an instance of ServiceError to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ServiceError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/SessionResultResponse.java b/src/main/java/com/adyen/model/checkout/SessionResultResponse.java index d792465e3..08d30f07f 100644 --- a/src/main/java/com/adyen/model/checkout/SessionResultResponse.java +++ b/src/main/java/com/adyen/model/checkout/SessionResultResponse.java @@ -2,30 +2,36 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Payment; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** SessionResultResponse */ + +/** + * SessionResultResponse + */ @JsonPropertyOrder({ SessionResultResponse.JSON_PROPERTY_ADDITIONAL_DATA, SessionResultResponse.JSON_PROPERTY_ID, @@ -33,6 +39,7 @@ SessionResultResponse.JSON_PROPERTY_REFERENCE, SessionResultResponse.JSON_PROPERTY_STATUS }) + public class SessionResultResponse { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -47,18 +54,10 @@ public class SessionResultResponse { private String reference; /** - * The status of the session. The status included in the response doesn't get updated. - * Don't make the request again to check for payment status updates. Possible values: * - * **completed**: the shopper completed the payment, and the payment was authorized. * - * **paymentPending**: the shopper is in the process of making the payment. This applies to - * payment methods with an asynchronous flow, like voucher payments where the shopper completes - * the payment in a physical shop. * **refused**: the session has been refused, because of too - * many refused payment attempts. The shopper can no longer complete the payment with this - * session. * **canceled**: the shopper canceled the payment. * **expired**: the session expired. - * The shopper can no longer complete the payment with this session. By default, the session - * expires one hour after it is created. + * The status of the session. The status included in the response doesn't get updated. Don't make the request again to check for payment status updates. Possible values: * **completed**: the shopper completed the payment, and the payment was authorized. * **paymentPending**: the shopper is in the process of making the payment. This applies to payment methods with an asynchronous flow, like voucher payments where the shopper completes the payment in a physical shop. * **refused**: the session has been refused, because of too many refused payment attempts. The shopper can no longer complete the payment with this session. * **canceled**: the shopper canceled the payment. * **expired**: the session expired. The shopper can no longer complete the payment with this session. By default, the session expires one hour after it is created. */ public enum StatusEnum { + ACTIVE(String.valueOf("active")), CANCELED(String.valueOf("canceled")), @@ -76,7 +75,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -97,11 +96,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -109,16 +104,13 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; - public SessionResultResponse() {} + public SessionResultResponse() { + } /** - * Contains additional information about the payment. Some fields are included only if you enable - * them. To enable these fields in your Customer Area, go to **Developers** > **Additional - * data**. + * Contains additional information about the payment. Some fields are included only if you enable them. To enable these fields in your Customer Area, go to **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some fields are - * included only if you enable them. To enable these fields in your Customer Area, go to - * **Developers** > **Additional data**. + * @param additionalData Contains additional information about the payment. Some fields are included only if you enable them. To enable these fields in your Customer Area, go to **Developers** > **Additional data**. * @return the current {@code SessionResultResponse} instance, allowing for method chaining */ public SessionResultResponse additionalData(Map additionalData) { @@ -135,13 +127,8 @@ public SessionResultResponse putAdditionalDataItem(String key, String additional } /** - * Contains additional information about the payment. Some fields are included only if you enable - * them. To enable these fields in your Customer Area, go to **Developers** > **Additional - * data**. - * - * @return additionalData Contains additional information about the payment. Some fields are - * included only if you enable them. To enable these fields in your Customer Area, go to - * **Developers** > **Additional data**. + * Contains additional information about the payment. Some fields are included only if you enable them. To enable these fields in your Customer Area, go to **Developers** > **Additional data**. + * @return additionalData Contains additional information about the payment. Some fields are included only if you enable them. To enable these fields in your Customer Area, go to **Developers** > **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,13 +137,9 @@ public Map getAdditionalData() { } /** - * Contains additional information about the payment. Some fields are included only if you enable - * them. To enable these fields in your Customer Area, go to **Developers** > **Additional - * data**. + * Contains additional information about the payment. Some fields are included only if you enable them. To enable these fields in your Customer Area, go to **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some fields are - * included only if you enable them. To enable these fields in your Customer Area, go to - * **Developers** > **Additional data**. + * @param additionalData Contains additional information about the payment. Some fields are included only if you enable them. To enable these fields in your Customer Area, go to **Developers** > **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,7 +160,6 @@ public SessionResultResponse id(String id) { /** * A unique identifier of the session. - * * @return id A unique identifier of the session. */ @JsonProperty(JSON_PROPERTY_ID) @@ -218,7 +200,6 @@ public SessionResultResponse addPaymentsItem(Payment paymentsItem) { /** * A list of all authorised payments done for this session. - * * @return payments A list of all authorised payments done for this session. */ @JsonProperty(JSON_PROPERTY_PAYMENTS) @@ -239,12 +220,9 @@ public void setPayments(List payments) { } /** - * The unique reference that you provided in the original `/sessions` request. This - * identifies the payment and is used in all communication with you about the payment status. + * The unique reference that you provided in the original `/sessions` request. This identifies the payment and is used in all communication with you about the payment status. * - * @param reference The unique reference that you provided in the original `/sessions` - * request. This identifies the payment and is used in all communication with you about the - * payment status. + * @param reference The unique reference that you provided in the original `/sessions` request. This identifies the payment and is used in all communication with you about the payment status. * @return the current {@code SessionResultResponse} instance, allowing for method chaining */ public SessionResultResponse reference(String reference) { @@ -253,12 +231,8 @@ public SessionResultResponse reference(String reference) { } /** - * The unique reference that you provided in the original `/sessions` request. This - * identifies the payment and is used in all communication with you about the payment status. - * - * @return reference The unique reference that you provided in the original `/sessions` - * request. This identifies the payment and is used in all communication with you about the - * payment status. + * The unique reference that you provided in the original `/sessions` request. This identifies the payment and is used in all communication with you about the payment status. + * @return reference The unique reference that you provided in the original `/sessions` request. This identifies the payment and is used in all communication with you about the payment status. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -267,12 +241,9 @@ public String getReference() { } /** - * The unique reference that you provided in the original `/sessions` request. This - * identifies the payment and is used in all communication with you about the payment status. + * The unique reference that you provided in the original `/sessions` request. This identifies the payment and is used in all communication with you about the payment status. * - * @param reference The unique reference that you provided in the original `/sessions` - * request. This identifies the payment and is used in all communication with you about the - * payment status. + * @param reference The unique reference that you provided in the original `/sessions` request. This identifies the payment and is used in all communication with you about the payment status. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -281,27 +252,9 @@ public void setReference(String reference) { } /** - * The status of the session. The status included in the response doesn't get updated. - * Don't make the request again to check for payment status updates. Possible values: * - * **completed**: the shopper completed the payment, and the payment was authorized. * - * **paymentPending**: the shopper is in the process of making the payment. This applies to - * payment methods with an asynchronous flow, like voucher payments where the shopper completes - * the payment in a physical shop. * **refused**: the session has been refused, because of too - * many refused payment attempts. The shopper can no longer complete the payment with this - * session. * **canceled**: the shopper canceled the payment. * **expired**: the session expired. - * The shopper can no longer complete the payment with this session. By default, the session - * expires one hour after it is created. + * The status of the session. The status included in the response doesn't get updated. Don't make the request again to check for payment status updates. Possible values: * **completed**: the shopper completed the payment, and the payment was authorized. * **paymentPending**: the shopper is in the process of making the payment. This applies to payment methods with an asynchronous flow, like voucher payments where the shopper completes the payment in a physical shop. * **refused**: the session has been refused, because of too many refused payment attempts. The shopper can no longer complete the payment with this session. * **canceled**: the shopper canceled the payment. * **expired**: the session expired. The shopper can no longer complete the payment with this session. By default, the session expires one hour after it is created. * - * @param status The status of the session. The status included in the response doesn't get - * updated. Don't make the request again to check for payment status updates. Possible - * values: * **completed**: the shopper completed the payment, and the payment was authorized. - * * **paymentPending**: the shopper is in the process of making the payment. This applies to - * payment methods with an asynchronous flow, like voucher payments where the shopper - * completes the payment in a physical shop. * **refused**: the session has been refused, - * because of too many refused payment attempts. The shopper can no longer complete the - * payment with this session. * **canceled**: the shopper canceled the payment. * **expired**: - * the session expired. The shopper can no longer complete the payment with this session. By - * default, the session expires one hour after it is created. + * @param status The status of the session. The status included in the response doesn't get updated. Don't make the request again to check for payment status updates. Possible values: * **completed**: the shopper completed the payment, and the payment was authorized. * **paymentPending**: the shopper is in the process of making the payment. This applies to payment methods with an asynchronous flow, like voucher payments where the shopper completes the payment in a physical shop. * **refused**: the session has been refused, because of too many refused payment attempts. The shopper can no longer complete the payment with this session. * **canceled**: the shopper canceled the payment. * **expired**: the session expired. The shopper can no longer complete the payment with this session. By default, the session expires one hour after it is created. * @return the current {@code SessionResultResponse} instance, allowing for method chaining */ public SessionResultResponse status(StatusEnum status) { @@ -310,27 +263,8 @@ public SessionResultResponse status(StatusEnum status) { } /** - * The status of the session. The status included in the response doesn't get updated. - * Don't make the request again to check for payment status updates. Possible values: * - * **completed**: the shopper completed the payment, and the payment was authorized. * - * **paymentPending**: the shopper is in the process of making the payment. This applies to - * payment methods with an asynchronous flow, like voucher payments where the shopper completes - * the payment in a physical shop. * **refused**: the session has been refused, because of too - * many refused payment attempts. The shopper can no longer complete the payment with this - * session. * **canceled**: the shopper canceled the payment. * **expired**: the session expired. - * The shopper can no longer complete the payment with this session. By default, the session - * expires one hour after it is created. - * - * @return status The status of the session. The status included in the response doesn't get - * updated. Don't make the request again to check for payment status updates. Possible - * values: * **completed**: the shopper completed the payment, and the payment was authorized. - * * **paymentPending**: the shopper is in the process of making the payment. This applies to - * payment methods with an asynchronous flow, like voucher payments where the shopper - * completes the payment in a physical shop. * **refused**: the session has been refused, - * because of too many refused payment attempts. The shopper can no longer complete the - * payment with this session. * **canceled**: the shopper canceled the payment. * **expired**: - * the session expired. The shopper can no longer complete the payment with this session. By - * default, the session expires one hour after it is created. + * The status of the session. The status included in the response doesn't get updated. Don't make the request again to check for payment status updates. Possible values: * **completed**: the shopper completed the payment, and the payment was authorized. * **paymentPending**: the shopper is in the process of making the payment. This applies to payment methods with an asynchronous flow, like voucher payments where the shopper completes the payment in a physical shop. * **refused**: the session has been refused, because of too many refused payment attempts. The shopper can no longer complete the payment with this session. * **canceled**: the shopper canceled the payment. * **expired**: the session expired. The shopper can no longer complete the payment with this session. By default, the session expires one hour after it is created. + * @return status The status of the session. The status included in the response doesn't get updated. Don't make the request again to check for payment status updates. Possible values: * **completed**: the shopper completed the payment, and the payment was authorized. * **paymentPending**: the shopper is in the process of making the payment. This applies to payment methods with an asynchronous flow, like voucher payments where the shopper completes the payment in a physical shop. * **refused**: the session has been refused, because of too many refused payment attempts. The shopper can no longer complete the payment with this session. * **canceled**: the shopper canceled the payment. * **expired**: the session expired. The shopper can no longer complete the payment with this session. By default, the session expires one hour after it is created. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -339,27 +273,9 @@ public StatusEnum getStatus() { } /** - * The status of the session. The status included in the response doesn't get updated. - * Don't make the request again to check for payment status updates. Possible values: * - * **completed**: the shopper completed the payment, and the payment was authorized. * - * **paymentPending**: the shopper is in the process of making the payment. This applies to - * payment methods with an asynchronous flow, like voucher payments where the shopper completes - * the payment in a physical shop. * **refused**: the session has been refused, because of too - * many refused payment attempts. The shopper can no longer complete the payment with this - * session. * **canceled**: the shopper canceled the payment. * **expired**: the session expired. - * The shopper can no longer complete the payment with this session. By default, the session - * expires one hour after it is created. + * The status of the session. The status included in the response doesn't get updated. Don't make the request again to check for payment status updates. Possible values: * **completed**: the shopper completed the payment, and the payment was authorized. * **paymentPending**: the shopper is in the process of making the payment. This applies to payment methods with an asynchronous flow, like voucher payments where the shopper completes the payment in a physical shop. * **refused**: the session has been refused, because of too many refused payment attempts. The shopper can no longer complete the payment with this session. * **canceled**: the shopper canceled the payment. * **expired**: the session expired. The shopper can no longer complete the payment with this session. By default, the session expires one hour after it is created. * - * @param status The status of the session. The status included in the response doesn't get - * updated. Don't make the request again to check for payment status updates. Possible - * values: * **completed**: the shopper completed the payment, and the payment was authorized. - * * **paymentPending**: the shopper is in the process of making the payment. This applies to - * payment methods with an asynchronous flow, like voucher payments where the shopper - * completes the payment in a physical shop. * **refused**: the session has been refused, - * because of too many refused payment attempts. The shopper can no longer complete the - * payment with this session. * **canceled**: the shopper canceled the payment. * **expired**: - * the session expired. The shopper can no longer complete the payment with this session. By - * default, the session expires one hour after it is created. + * @param status The status of the session. The status included in the response doesn't get updated. Don't make the request again to check for payment status updates. Possible values: * **completed**: the shopper completed the payment, and the payment was authorized. * **paymentPending**: the shopper is in the process of making the payment. This applies to payment methods with an asynchronous flow, like voucher payments where the shopper completes the payment in a physical shop. * **refused**: the session has been refused, because of too many refused payment attempts. The shopper can no longer complete the payment with this session. * **canceled**: the shopper canceled the payment. * **expired**: the session expired. The shopper can no longer complete the payment with this session. By default, the session expires one hour after it is created. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -367,7 +283,9 @@ public void setStatus(StatusEnum status) { this.status = status; } - /** Return true if this SessionResultResponse object is equal to o. */ + /** + * Return true if this SessionResultResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -377,11 +295,11 @@ public boolean equals(Object o) { return false; } SessionResultResponse sessionResultResponse = (SessionResultResponse) o; - return Objects.equals(this.additionalData, sessionResultResponse.additionalData) - && Objects.equals(this.id, sessionResultResponse.id) - && Objects.equals(this.payments, sessionResultResponse.payments) - && Objects.equals(this.reference, sessionResultResponse.reference) - && Objects.equals(this.status, sessionResultResponse.status); + return Objects.equals(this.additionalData, sessionResultResponse.additionalData) && + Objects.equals(this.id, sessionResultResponse.id) && + Objects.equals(this.payments, sessionResultResponse.payments) && + Objects.equals(this.reference, sessionResultResponse.reference) && + Objects.equals(this.status, sessionResultResponse.status); } @Override @@ -403,7 +321,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -412,23 +331,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SessionResultResponse given an JSON string * * @param jsonString JSON string * @return An instance of SessionResultResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SessionResultResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to SessionResultResponse */ public static SessionResultResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SessionResultResponse.class); } - - /** - * Convert an instance of SessionResultResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SessionResultResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ShopperIdPaymentMethod.java b/src/main/java/com/adyen/model/checkout/ShopperIdPaymentMethod.java index 65788ae8e..c096ddd3d 100644 --- a/src/main/java/com/adyen/model/checkout/ShopperIdPaymentMethod.java +++ b/src/main/java/com/adyen/model/checkout/ShopperIdPaymentMethod.java @@ -2,51 +2,59 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ShopperIdPaymentMethod */ -@JsonPropertyOrder({ShopperIdPaymentMethod.JSON_PROPERTY_TYPE}) + +/** + * ShopperIdPaymentMethod + */ +@JsonPropertyOrder({ + ShopperIdPaymentMethod.JSON_PROPERTY_TYPE +}) + @JsonIgnoreProperties( - value = - "type", // ignore manually set type, it will be automatically generated by Jackson during - // serialization - allowSetters = true // allows the type to be set during deserialization - ) -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - visible = true) + value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization + allowSetters = true // allows the type to be set during deserialization +) +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) @JsonSubTypes({ @JsonSubTypes.Type(value = PayToPaymentMethod.class, name = "payTo"), @JsonSubTypes.Type(value = UPIPaymentMethod.class, name = "upi_collect"), }) + public class ShopperIdPaymentMethod { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public ShopperIdPaymentMethod() {} + public ShopperIdPaymentMethod() { + } /** * type * - * @param type + * @param type * @return the current {@code ShopperIdPaymentMethod} instance, allowing for method chaining */ public ShopperIdPaymentMethod type(String type) { @@ -56,8 +64,7 @@ public ShopperIdPaymentMethod type(String type) { /** * Get type - * - * @return type + * @return type */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,7 +75,7 @@ public String getType() { /** * type * - * @param type + * @param type */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -76,7 +83,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this ShopperIdPaymentMethod object is equal to o. */ + /** + * Return true if this ShopperIdPaymentMethod object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -104,7 +113,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -121,24 +131,21 @@ private String toIndentedString(Object o) { mappings.put("ShopperIdPaymentMethod", ShopperIdPaymentMethod.class); JSON.registerDiscriminator(ShopperIdPaymentMethod.class, "type", mappings); } - - /** +/** * Create an instance of ShopperIdPaymentMethod given an JSON string * * @param jsonString JSON string * @return An instance of ShopperIdPaymentMethod - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ShopperIdPaymentMethod + * @throws JsonProcessingException if the JSON string is invalid with respect to ShopperIdPaymentMethod */ public static ShopperIdPaymentMethod fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ShopperIdPaymentMethod.class); } - - /** - * Convert an instance of ShopperIdPaymentMethod to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ShopperIdPaymentMethod to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ShopperInteractionDevice.java b/src/main/java/com/adyen/model/checkout/ShopperInteractionDevice.java index 7b77c7b42..fa110056f 100644 --- a/src/main/java/com/adyen/model/checkout/ShopperInteractionDevice.java +++ b/src/main/java/com/adyen/model/checkout/ShopperInteractionDevice.java @@ -2,27 +2,37 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ShopperInteractionDevice */ + +/** + * ShopperInteractionDevice + */ @JsonPropertyOrder({ ShopperInteractionDevice.JSON_PROPERTY_LOCALE, ShopperInteractionDevice.JSON_PROPERTY_OS, ShopperInteractionDevice.JSON_PROPERTY_OS_VERSION }) + public class ShopperInteractionDevice { public static final String JSON_PROPERTY_LOCALE = "locale"; private String locale; @@ -33,7 +43,8 @@ public class ShopperInteractionDevice { public static final String JSON_PROPERTY_OS_VERSION = "osVersion"; private String osVersion; - public ShopperInteractionDevice() {} + public ShopperInteractionDevice() { + } /** * Locale on the shopper interaction device. @@ -48,7 +59,6 @@ public ShopperInteractionDevice locale(String locale) { /** * Locale on the shopper interaction device. - * * @return locale Locale on the shopper interaction device. */ @JsonProperty(JSON_PROPERTY_LOCALE) @@ -81,7 +91,6 @@ public ShopperInteractionDevice os(String os) { /** * Operating system running on the shopper interaction device. - * * @return os Operating system running on the shopper interaction device. */ @JsonProperty(JSON_PROPERTY_OS) @@ -114,7 +123,6 @@ public ShopperInteractionDevice osVersion(String osVersion) { /** * Version of the operating system on the shopper interaction device. - * * @return osVersion Version of the operating system on the shopper interaction device. */ @JsonProperty(JSON_PROPERTY_OS_VERSION) @@ -134,7 +142,9 @@ public void setOsVersion(String osVersion) { this.osVersion = osVersion; } - /** Return true if this ShopperInteractionDevice object is equal to o. */ + /** + * Return true if this ShopperInteractionDevice object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,9 +154,9 @@ public boolean equals(Object o) { return false; } ShopperInteractionDevice shopperInteractionDevice = (ShopperInteractionDevice) o; - return Objects.equals(this.locale, shopperInteractionDevice.locale) - && Objects.equals(this.os, shopperInteractionDevice.os) - && Objects.equals(this.osVersion, shopperInteractionDevice.osVersion); + return Objects.equals(this.locale, shopperInteractionDevice.locale) && + Objects.equals(this.os, shopperInteractionDevice.os) && + Objects.equals(this.osVersion, shopperInteractionDevice.osVersion); } @Override @@ -166,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ShopperInteractionDevice given an JSON string * * @param jsonString JSON string * @return An instance of ShopperInteractionDevice - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ShopperInteractionDevice + * @throws JsonProcessingException if the JSON string is invalid with respect to ShopperInteractionDevice */ - public static ShopperInteractionDevice fromJson(String jsonString) - throws JsonProcessingException { + public static ShopperInteractionDevice fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ShopperInteractionDevice.class); } - - /** - * Convert an instance of ShopperInteractionDevice to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ShopperInteractionDevice to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Split.java b/src/main/java/com/adyen/model/checkout/Split.java index 160bacb49..11f51687f 100644 --- a/src/main/java/com/adyen/model/checkout/Split.java +++ b/src/main/java/com/adyen/model/checkout/Split.java @@ -2,26 +2,32 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.SplitAmount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** Split */ + +/** + * Split + */ @JsonPropertyOrder({ Split.JSON_PROPERTY_ACCOUNT, Split.JSON_PROPERTY_AMOUNT, @@ -29,6 +35,7 @@ Split.JSON_PROPERTY_REFERENCE, Split.JSON_PROPERTY_TYPE }) + public class Split { public static final String JSON_PROPERTY_ACCOUNT = "account"; private String account; @@ -43,32 +50,10 @@ public class Split { private String reference; /** - * The part of the payment you want to book to the specified `account`. Possible values - * for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * - * **BalanceAccount**: books part of the payment (specified in `amount`) to the - * specified `account`. * Transaction fees types that you can book to the specified - * `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme - * fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the - * aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the - * transaction fees due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the - * transaction fees due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: - * the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the - * fees paid to the card scheme for using their network. * **Commission**: your platform's - * commission on the payment (specified in `amount`), booked to your liable balance - * account. * **Remainder**: the amount left over after a currency conversion, booked to the - * specified `account`. * **TopUp**: allows you and your users to top up balance - * accounts using direct debit, card payments, or other payment methods. * **VAT**: the - * value-added tax charged on the payment, booked to your platforms liable balance account. * - * **Commission**: your platform's commission (specified in `amount`) on the - * payment, booked to your liable balance account. * **Default**: in very specific use cases, - * allows you to book the specified `amount` to the specified `account`. For - * more information, contact Adyen support. Possible values for the [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, - * **MarketPlace**, **PaymentFee**, **VAT**. + * The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. */ public enum TypeEnum { + ACQUIRINGFEES(String.valueOf("AcquiringFees")), ADYENCOMMISSION(String.valueOf("AdyenCommission")), @@ -106,7 +91,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -127,11 +112,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -139,26 +120,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public Split() {} + public Split() { + } /** - * The unique identifier of the account to which the split amount is booked. Required if - * `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms): The - * [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) - * of the account to which the split amount is booked. * [Balance - * Platform](https://docs.adyen.com/adyen-for-platforms-model): The - * [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) - * of the account to which the split amount is booked. + * The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/classic-platforms): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked. * - * @param account The unique identifier of the account to which the split amount is booked. - * Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms): The - * [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) - * of the account to which the split amount is booked. * [Balance - * Platform](https://docs.adyen.com/adyen-for-platforms-model): The - * [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) - * of the account to which the split amount is booked. + * @param account The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/classic-platforms): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked. * @return the current {@code Split} instance, allowing for method chaining */ public Split account(String account) { @@ -167,23 +135,8 @@ public Split account(String account) { } /** - * The unique identifier of the account to which the split amount is booked. Required if - * `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms): The - * [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) - * of the account to which the split amount is booked. * [Balance - * Platform](https://docs.adyen.com/adyen-for-platforms-model): The - * [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) - * of the account to which the split amount is booked. - * - * @return account The unique identifier of the account to which the split amount is booked. - * Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms): The - * [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) - * of the account to which the split amount is booked. * [Balance - * Platform](https://docs.adyen.com/adyen-for-platforms-model): The - * [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) - * of the account to which the split amount is booked. + * The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/classic-platforms): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked. + * @return account The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/classic-platforms): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked. */ @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,23 +145,9 @@ public String getAccount() { } /** - * The unique identifier of the account to which the split amount is booked. Required if - * `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms): The - * [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) - * of the account to which the split amount is booked. * [Balance - * Platform](https://docs.adyen.com/adyen-for-platforms-model): The - * [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) - * of the account to which the split amount is booked. + * The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/classic-platforms): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked. * - * @param account The unique identifier of the account to which the split amount is booked. - * Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms): The - * [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) - * of the account to which the split amount is booked. * [Balance - * Platform](https://docs.adyen.com/adyen-for-platforms-model): The - * [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) - * of the account to which the split amount is booked. + * @param account The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/classic-platforms): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked. */ @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,7 +158,7 @@ public void setAccount(String account) { /** * amount * - * @param amount + * @param amount * @return the current {@code Split} instance, allowing for method chaining */ public Split amount(SplitAmount amount) { @@ -229,8 +168,7 @@ public Split amount(SplitAmount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -241,7 +179,7 @@ public SplitAmount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -262,7 +200,6 @@ public Split description(String description) { /** * Your description for the split item. - * * @return description Your description for the split item. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -283,19 +220,9 @@ public void setDescription(String description) { } /** - * Your unique reference for the part of the payment booked to the specified `account`. - * This is required if `type` is **MarketPlace** ([Classic Platforms - * integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance - * Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also - * recommend providing a **unique** reference so you can reconcile the split and the associated - * payment in the transaction overview and in the reports. + * Your unique reference for the part of the payment booked to the specified `account`. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also recommend providing a **unique** reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. * - * @param reference Your unique reference for the part of the payment booked to the specified - * `account`. This is required if `type` is **MarketPlace** ([Classic - * Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** - * ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other - * types, we also recommend providing a **unique** reference so you can reconcile the split - * and the associated payment in the transaction overview and in the reports. + * @param reference Your unique reference for the part of the payment booked to the specified `account`. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also recommend providing a **unique** reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. * @return the current {@code Split} instance, allowing for method chaining */ public Split reference(String reference) { @@ -304,19 +231,8 @@ public Split reference(String reference) { } /** - * Your unique reference for the part of the payment booked to the specified `account`. - * This is required if `type` is **MarketPlace** ([Classic Platforms - * integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance - * Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also - * recommend providing a **unique** reference so you can reconcile the split and the associated - * payment in the transaction overview and in the reports. - * - * @return reference Your unique reference for the part of the payment booked to the specified - * `account`. This is required if `type` is **MarketPlace** ([Classic - * Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** - * ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other - * types, we also recommend providing a **unique** reference so you can reconcile the split - * and the associated payment in the transaction overview and in the reports. + * Your unique reference for the part of the payment booked to the specified `account`. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also recommend providing a **unique** reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. + * @return reference Your unique reference for the part of the payment booked to the specified `account`. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also recommend providing a **unique** reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -325,19 +241,9 @@ public String getReference() { } /** - * Your unique reference for the part of the payment booked to the specified `account`. - * This is required if `type` is **MarketPlace** ([Classic Platforms - * integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance - * Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also - * recommend providing a **unique** reference so you can reconcile the split and the associated - * payment in the transaction overview and in the reports. + * Your unique reference for the part of the payment booked to the specified `account`. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also recommend providing a **unique** reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. * - * @param reference Your unique reference for the part of the payment booked to the specified - * `account`. This is required if `type` is **MarketPlace** ([Classic - * Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** - * ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other - * types, we also recommend providing a **unique** reference so you can reconcile the split - * and the associated payment in the transaction overview and in the reports. + * @param reference Your unique reference for the part of the payment booked to the specified `account`. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also recommend providing a **unique** reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -346,56 +252,9 @@ public void setReference(String reference) { } /** - * The part of the payment you want to book to the specified `account`. Possible values - * for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * - * **BalanceAccount**: books part of the payment (specified in `amount`) to the - * specified `account`. * Transaction fees types that you can book to the specified - * `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme - * fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the - * aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the - * transaction fees due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the - * transaction fees due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: - * the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the - * fees paid to the card scheme for using their network. * **Commission**: your platform's - * commission on the payment (specified in `amount`), booked to your liable balance - * account. * **Remainder**: the amount left over after a currency conversion, booked to the - * specified `account`. * **TopUp**: allows you and your users to top up balance - * accounts using direct debit, card payments, or other payment methods. * **VAT**: the - * value-added tax charged on the payment, booked to your platforms liable balance account. * - * **Commission**: your platform's commission (specified in `amount`) on the - * payment, booked to your liable balance account. * **Default**: in very specific use cases, - * allows you to book the specified `amount` to the specified `account`. For - * more information, contact Adyen support. Possible values for the [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, - * **MarketPlace**, **PaymentFee**, **VAT**. + * The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. * - * @param type The part of the payment you want to book to the specified `account`. - * Possible values for the [Balance - * Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books - * part of the payment (specified in `amount`) to the specified `account`. - * * Transaction fees types that you can book to the specified `account`: * - * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * - * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the - * aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the - * transaction fees due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: - * the transaction fees due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * - * **Interchange**: the fees paid to the issuer for each payment made with the card network. * - * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: - * your platform's commission on the payment (specified in `amount`), booked to - * your liable balance account. * **Remainder**: the amount left over after a currency - * conversion, booked to the specified `account`. * **TopUp**: allows you and your - * users to top up balance accounts using direct debit, card payments, or other payment - * methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms - * liable balance account. * **Commission**: your platform's commission (specified in - * `amount`) on the payment, booked to your liable balance account. * **Default**: - * in very specific use cases, allows you to book the specified `amount` to the - * specified `account`. For more information, contact Adyen support. Possible values - * for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): - * **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. + * @param type The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. * @return the current {@code Split} instance, allowing for method chaining */ public Split type(TypeEnum type) { @@ -404,56 +263,8 @@ public Split type(TypeEnum type) { } /** - * The part of the payment you want to book to the specified `account`. Possible values - * for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * - * **BalanceAccount**: books part of the payment (specified in `amount`) to the - * specified `account`. * Transaction fees types that you can book to the specified - * `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme - * fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the - * aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the - * transaction fees due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the - * transaction fees due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: - * the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the - * fees paid to the card scheme for using their network. * **Commission**: your platform's - * commission on the payment (specified in `amount`), booked to your liable balance - * account. * **Remainder**: the amount left over after a currency conversion, booked to the - * specified `account`. * **TopUp**: allows you and your users to top up balance - * accounts using direct debit, card payments, or other payment methods. * **VAT**: the - * value-added tax charged on the payment, booked to your platforms liable balance account. * - * **Commission**: your platform's commission (specified in `amount`) on the - * payment, booked to your liable balance account. * **Default**: in very specific use cases, - * allows you to book the specified `amount` to the specified `account`. For - * more information, contact Adyen support. Possible values for the [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, - * **MarketPlace**, **PaymentFee**, **VAT**. - * - * @return type The part of the payment you want to book to the specified `account`. - * Possible values for the [Balance - * Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books - * part of the payment (specified in `amount`) to the specified `account`. - * * Transaction fees types that you can book to the specified `account`: * - * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * - * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the - * aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the - * transaction fees due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: - * the transaction fees due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * - * **Interchange**: the fees paid to the issuer for each payment made with the card network. * - * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: - * your platform's commission on the payment (specified in `amount`), booked to - * your liable balance account. * **Remainder**: the amount left over after a currency - * conversion, booked to the specified `account`. * **TopUp**: allows you and your - * users to top up balance accounts using direct debit, card payments, or other payment - * methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms - * liable balance account. * **Commission**: your platform's commission (specified in - * `amount`) on the payment, booked to your liable balance account. * **Default**: - * in very specific use cases, allows you to book the specified `amount` to the - * specified `account`. For more information, contact Adyen support. Possible values - * for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): - * **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. + * The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. + * @return type The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -462,56 +273,9 @@ public TypeEnum getType() { } /** - * The part of the payment you want to book to the specified `account`. Possible values - * for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * - * **BalanceAccount**: books part of the payment (specified in `amount`) to the - * specified `account`. * Transaction fees types that you can book to the specified - * `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme - * fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the - * aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the - * transaction fees due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the - * transaction fees due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: - * the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the - * fees paid to the card scheme for using their network. * **Commission**: your platform's - * commission on the payment (specified in `amount`), booked to your liable balance - * account. * **Remainder**: the amount left over after a currency conversion, booked to the - * specified `account`. * **TopUp**: allows you and your users to top up balance - * accounts using direct debit, card payments, or other payment methods. * **VAT**: the - * value-added tax charged on the payment, booked to your platforms liable balance account. * - * **Commission**: your platform's commission (specified in `amount`) on the - * payment, booked to your liable balance account. * **Default**: in very specific use cases, - * allows you to book the specified `amount` to the specified `account`. For - * more information, contact Adyen support. Possible values for the [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, - * **MarketPlace**, **PaymentFee**, **VAT**. + * The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. * - * @param type The part of the payment you want to book to the specified `account`. - * Possible values for the [Balance - * Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books - * part of the payment (specified in `amount`) to the specified `account`. - * * Transaction fees types that you can book to the specified `account`: * - * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * - * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the - * aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the - * transaction fees due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: - * the transaction fees due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * - * **Interchange**: the fees paid to the issuer for each payment made with the card network. * - * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: - * your platform's commission on the payment (specified in `amount`), booked to - * your liable balance account. * **Remainder**: the amount left over after a currency - * conversion, booked to the specified `account`. * **TopUp**: allows you and your - * users to top up balance accounts using direct debit, card payments, or other payment - * methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms - * liable balance account. * **Commission**: your platform's commission (specified in - * `amount`) on the payment, booked to your liable balance account. * **Default**: - * in very specific use cases, allows you to book the specified `amount` to the - * specified `account`. For more information, contact Adyen support. Possible values - * for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): - * **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. + * @param type The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -519,7 +283,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this Split object is equal to o. */ + /** + * Return true if this Split object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -529,11 +295,11 @@ public boolean equals(Object o) { return false; } Split split = (Split) o; - return Objects.equals(this.account, split.account) - && Objects.equals(this.amount, split.amount) - && Objects.equals(this.description, split.description) - && Objects.equals(this.reference, split.reference) - && Objects.equals(this.type, split.type); + return Objects.equals(this.account, split.account) && + Objects.equals(this.amount, split.amount) && + Objects.equals(this.description, split.description) && + Objects.equals(this.reference, split.reference) && + Objects.equals(this.type, split.type); } @Override @@ -555,7 +321,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -564,7 +331,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Split given an JSON string * * @param jsonString JSON string @@ -574,12 +341,11 @@ private String toIndentedString(Object o) { public static Split fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Split.class); } - - /** - * Convert an instance of Split to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Split to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/SplitAmount.java b/src/main/java/com/adyen/model/checkout/SplitAmount.java index 6720faae2..fcc044b45 100644 --- a/src/main/java/com/adyen/model/checkout/SplitAmount.java +++ b/src/main/java/com/adyen/model/checkout/SplitAmount.java @@ -2,23 +2,36 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** SplitAmount */ -@JsonPropertyOrder({SplitAmount.JSON_PROPERTY_CURRENCY, SplitAmount.JSON_PROPERTY_VALUE}) + +/** + * SplitAmount + */ +@JsonPropertyOrder({ + SplitAmount.JSON_PROPERTY_CURRENCY, + SplitAmount.JSON_PROPERTY_VALUE +}) + public class SplitAmount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -26,16 +39,13 @@ public class SplitAmount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public SplitAmount() {} + public SplitAmount() { + } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the - * original payment currency. + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the original payment currency. * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the - * original payment currency. + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the original payment currency. * @return the current {@code SplitAmount} instance, allowing for method chaining */ public SplitAmount currency(String currency) { @@ -44,13 +54,8 @@ public SplitAmount currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the - * original payment currency. - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the - * original payment currency. + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the original payment currency. + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the original payment currency. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -59,13 +64,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the - * original payment currency. + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the original payment currency. * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the - * original payment currency. + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the original payment currency. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -74,11 +75,9 @@ public void setCurrency(String currency) { } /** - * The value of the split amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * The value of the split amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * @param value The value of the split amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * @param value The value of the split amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code SplitAmount} instance, allowing for method chaining */ public SplitAmount value(Long value) { @@ -87,11 +86,8 @@ public SplitAmount value(Long value) { } /** - * The value of the split amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). - * - * @return value The value of the split amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * The value of the split amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @return value The value of the split amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,11 +96,9 @@ public Long getValue() { } /** - * The value of the split amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * The value of the split amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * @param value The value of the split amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * @param value The value of the split amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,7 +106,9 @@ public void setValue(Long value) { this.value = value; } - /** Return true if this SplitAmount object is equal to o. */ + /** + * Return true if this SplitAmount object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -122,8 +118,8 @@ public boolean equals(Object o) { return false; } SplitAmount splitAmount = (SplitAmount) o; - return Objects.equals(this.currency, splitAmount.currency) - && Objects.equals(this.value, splitAmount.value); + return Objects.equals(this.currency, splitAmount.currency) && + Objects.equals(this.value, splitAmount.value); } @Override @@ -142,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -151,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SplitAmount given an JSON string * * @param jsonString JSON string @@ -161,12 +158,11 @@ private String toIndentedString(Object o) { public static SplitAmount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SplitAmount.class); } - - /** - * Convert an instance of SplitAmount to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SplitAmount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/StandalonePaymentCancelRequest.java b/src/main/java/com/adyen/model/checkout/StandalonePaymentCancelRequest.java index f237aaab1..1bed00015 100644 --- a/src/main/java/com/adyen/model/checkout/StandalonePaymentCancelRequest.java +++ b/src/main/java/com/adyen/model/checkout/StandalonePaymentCancelRequest.java @@ -2,22 +2,33 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.ApplicationInfo; +import com.adyen.model.checkout.EnhancedSchemeData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** StandalonePaymentCancelRequest */ + +/** + * StandalonePaymentCancelRequest + */ @JsonPropertyOrder({ StandalonePaymentCancelRequest.JSON_PROPERTY_APPLICATION_INFO, StandalonePaymentCancelRequest.JSON_PROPERTY_ENHANCED_SCHEME_DATA, @@ -25,6 +36,7 @@ StandalonePaymentCancelRequest.JSON_PROPERTY_PAYMENT_REFERENCE, StandalonePaymentCancelRequest.JSON_PROPERTY_REFERENCE }) + public class StandalonePaymentCancelRequest { public static final String JSON_PROPERTY_APPLICATION_INFO = "applicationInfo"; private ApplicationInfo applicationInfo; @@ -41,14 +53,14 @@ public class StandalonePaymentCancelRequest { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public StandalonePaymentCancelRequest() {} + public StandalonePaymentCancelRequest() { + } /** * applicationInfo * - * @param applicationInfo - * @return the current {@code StandalonePaymentCancelRequest} instance, allowing for method - * chaining + * @param applicationInfo + * @return the current {@code StandalonePaymentCancelRequest} instance, allowing for method chaining */ public StandalonePaymentCancelRequest applicationInfo(ApplicationInfo applicationInfo) { this.applicationInfo = applicationInfo; @@ -57,8 +69,7 @@ public StandalonePaymentCancelRequest applicationInfo(ApplicationInfo applicatio /** * Get applicationInfo - * - * @return applicationInfo + * @return applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -69,7 +80,7 @@ public ApplicationInfo getApplicationInfo() { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,9 +91,8 @@ public void setApplicationInfo(ApplicationInfo applicationInfo) { /** * enhancedSchemeData * - * @param enhancedSchemeData - * @return the current {@code StandalonePaymentCancelRequest} instance, allowing for method - * chaining + * @param enhancedSchemeData + * @return the current {@code StandalonePaymentCancelRequest} instance, allowing for method chaining */ public StandalonePaymentCancelRequest enhancedSchemeData(EnhancedSchemeData enhancedSchemeData) { this.enhancedSchemeData = enhancedSchemeData; @@ -91,8 +101,7 @@ public StandalonePaymentCancelRequest enhancedSchemeData(EnhancedSchemeData enha /** * Get enhancedSchemeData - * - * @return enhancedSchemeData + * @return enhancedSchemeData */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -103,7 +112,7 @@ public EnhancedSchemeData getEnhancedSchemeData() { /** * enhancedSchemeData * - * @param enhancedSchemeData + * @param enhancedSchemeData */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,8 +124,7 @@ public void setEnhancedSchemeData(EnhancedSchemeData enhancedSchemeData) { * The merchant account that is used to process the payment. * * @param merchantAccount The merchant account that is used to process the payment. - * @return the current {@code StandalonePaymentCancelRequest} instance, allowing for method - * chaining + * @return the current {@code StandalonePaymentCancelRequest} instance, allowing for method chaining */ public StandalonePaymentCancelRequest merchantAccount(String merchantAccount) { this.merchantAccount = merchantAccount; @@ -125,7 +133,6 @@ public StandalonePaymentCancelRequest merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. - * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -146,15 +153,10 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The - * [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) - * of the payment that you want to cancel. + * The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment that you want to cancel. * - * @param paymentReference The - * [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) - * of the payment that you want to cancel. - * @return the current {@code StandalonePaymentCancelRequest} instance, allowing for method - * chaining + * @param paymentReference The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment that you want to cancel. + * @return the current {@code StandalonePaymentCancelRequest} instance, allowing for method chaining */ public StandalonePaymentCancelRequest paymentReference(String paymentReference) { this.paymentReference = paymentReference; @@ -162,13 +164,8 @@ public StandalonePaymentCancelRequest paymentReference(String paymentReference) } /** - * The - * [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) - * of the payment that you want to cancel. - * - * @return paymentReference The - * [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) - * of the payment that you want to cancel. + * The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment that you want to cancel. + * @return paymentReference The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment that you want to cancel. */ @JsonProperty(JSON_PROPERTY_PAYMENT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,13 +174,9 @@ public String getPaymentReference() { } /** - * The - * [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) - * of the payment that you want to cancel. + * The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment that you want to cancel. * - * @param paymentReference The - * [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) - * of the payment that you want to cancel. + * @param paymentReference The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment that you want to cancel. */ @JsonProperty(JSON_PROPERTY_PAYMENT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,8 +188,7 @@ public void setPaymentReference(String paymentReference) { * Your reference for the cancel request. Maximum length: 80 characters. * * @param reference Your reference for the cancel request. Maximum length: 80 characters. - * @return the current {@code StandalonePaymentCancelRequest} instance, allowing for method - * chaining + * @return the current {@code StandalonePaymentCancelRequest} instance, allowing for method chaining */ public StandalonePaymentCancelRequest reference(String reference) { this.reference = reference; @@ -205,7 +197,6 @@ public StandalonePaymentCancelRequest reference(String reference) { /** * Your reference for the cancel request. Maximum length: 80 characters. - * * @return reference Your reference for the cancel request. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -225,7 +216,9 @@ public void setReference(String reference) { this.reference = reference; } - /** Return true if this StandalonePaymentCancelRequest object is equal to o. */ + /** + * Return true if this StandalonePaymentCancelRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -234,20 +227,17 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - StandalonePaymentCancelRequest standalonePaymentCancelRequest = - (StandalonePaymentCancelRequest) o; - return Objects.equals(this.applicationInfo, standalonePaymentCancelRequest.applicationInfo) - && Objects.equals( - this.enhancedSchemeData, standalonePaymentCancelRequest.enhancedSchemeData) - && Objects.equals(this.merchantAccount, standalonePaymentCancelRequest.merchantAccount) - && Objects.equals(this.paymentReference, standalonePaymentCancelRequest.paymentReference) - && Objects.equals(this.reference, standalonePaymentCancelRequest.reference); + StandalonePaymentCancelRequest standalonePaymentCancelRequest = (StandalonePaymentCancelRequest) o; + return Objects.equals(this.applicationInfo, standalonePaymentCancelRequest.applicationInfo) && + Objects.equals(this.enhancedSchemeData, standalonePaymentCancelRequest.enhancedSchemeData) && + Objects.equals(this.merchantAccount, standalonePaymentCancelRequest.merchantAccount) && + Objects.equals(this.paymentReference, standalonePaymentCancelRequest.paymentReference) && + Objects.equals(this.reference, standalonePaymentCancelRequest.reference); } @Override public int hashCode() { - return Objects.hash( - applicationInfo, enhancedSchemeData, merchantAccount, paymentReference, reference); + return Objects.hash(applicationInfo, enhancedSchemeData, merchantAccount, paymentReference, reference); } @Override @@ -264,7 +254,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -273,24 +264,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of StandalonePaymentCancelRequest given an JSON string * * @param jsonString JSON string * @return An instance of StandalonePaymentCancelRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StandalonePaymentCancelRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to StandalonePaymentCancelRequest */ - public static StandalonePaymentCancelRequest fromJson(String jsonString) - throws JsonProcessingException { + public static StandalonePaymentCancelRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StandalonePaymentCancelRequest.class); } - - /** - * Convert an instance of StandalonePaymentCancelRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of StandalonePaymentCancelRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/StandalonePaymentCancelResponse.java b/src/main/java/com/adyen/model/checkout/StandalonePaymentCancelResponse.java index bb5a4eaae..65962e9c6 100644 --- a/src/main/java/com/adyen/model/checkout/StandalonePaymentCancelResponse.java +++ b/src/main/java/com/adyen/model/checkout/StandalonePaymentCancelResponse.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** StandalonePaymentCancelResponse */ + +/** + * StandalonePaymentCancelResponse + */ @JsonPropertyOrder({ StandalonePaymentCancelResponse.JSON_PROPERTY_MERCHANT_ACCOUNT, StandalonePaymentCancelResponse.JSON_PROPERTY_PAYMENT_REFERENCE, @@ -29,6 +34,7 @@ StandalonePaymentCancelResponse.JSON_PROPERTY_REFERENCE, StandalonePaymentCancelResponse.JSON_PROPERTY_STATUS }) + public class StandalonePaymentCancelResponse { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; @@ -42,8 +48,11 @@ public class StandalonePaymentCancelResponse { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - /** The status of your request. This will always have the value **received**. */ + /** + * The status of your request. This will always have the value **received**. + */ public enum StatusEnum { + RECEIVED(String.valueOf("received")); private static final Logger LOG = Logger.getLogger(StatusEnum.class.getName()); @@ -51,7 +60,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -72,11 +81,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -84,14 +89,14 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; - public StandalonePaymentCancelResponse() {} + public StandalonePaymentCancelResponse() { + } /** * The merchant account that is used to process the payment. * * @param merchantAccount The merchant account that is used to process the payment. - * @return the current {@code StandalonePaymentCancelResponse} instance, allowing for method - * chaining + * @return the current {@code StandalonePaymentCancelResponse} instance, allowing for method chaining */ public StandalonePaymentCancelResponse merchantAccount(String merchantAccount) { this.merchantAccount = merchantAccount; @@ -100,7 +105,6 @@ public StandalonePaymentCancelResponse merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. - * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -121,15 +125,10 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The - * [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) - * of the payment to cancel. + * The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment to cancel. * - * @param paymentReference The - * [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) - * of the payment to cancel. - * @return the current {@code StandalonePaymentCancelResponse} instance, allowing for method - * chaining + * @param paymentReference The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment to cancel. + * @return the current {@code StandalonePaymentCancelResponse} instance, allowing for method chaining */ public StandalonePaymentCancelResponse paymentReference(String paymentReference) { this.paymentReference = paymentReference; @@ -137,13 +136,8 @@ public StandalonePaymentCancelResponse paymentReference(String paymentReference) } /** - * The - * [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) - * of the payment to cancel. - * - * @return paymentReference The - * [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) - * of the payment to cancel. + * The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment to cancel. + * @return paymentReference The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment to cancel. */ @JsonProperty(JSON_PROPERTY_PAYMENT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,13 +146,9 @@ public String getPaymentReference() { } /** - * The - * [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) - * of the payment to cancel. + * The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment to cancel. * - * @param paymentReference The - * [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) - * of the payment to cancel. + * @param paymentReference The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment to cancel. */ @JsonProperty(JSON_PROPERTY_PAYMENT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -170,8 +160,7 @@ public void setPaymentReference(String paymentReference) { * Adyen's 16-character reference associated with the cancel request. * * @param pspReference Adyen's 16-character reference associated with the cancel request. - * @return the current {@code StandalonePaymentCancelResponse} instance, allowing for method - * chaining + * @return the current {@code StandalonePaymentCancelResponse} instance, allowing for method chaining */ public StandalonePaymentCancelResponse pspReference(String pspReference) { this.pspReference = pspReference; @@ -180,7 +169,6 @@ public StandalonePaymentCancelResponse pspReference(String pspReference) { /** * Adyen's 16-character reference associated with the cancel request. - * * @return pspReference Adyen's 16-character reference associated with the cancel request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -204,8 +192,7 @@ public void setPspReference(String pspReference) { * Your reference for the cancel request. * * @param reference Your reference for the cancel request. - * @return the current {@code StandalonePaymentCancelResponse} instance, allowing for method - * chaining + * @return the current {@code StandalonePaymentCancelResponse} instance, allowing for method chaining */ public StandalonePaymentCancelResponse reference(String reference) { this.reference = reference; @@ -214,7 +201,6 @@ public StandalonePaymentCancelResponse reference(String reference) { /** * Your reference for the cancel request. - * * @return reference Your reference for the cancel request. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -238,8 +224,7 @@ public void setReference(String reference) { * The status of your request. This will always have the value **received**. * * @param status The status of your request. This will always have the value **received**. - * @return the current {@code StandalonePaymentCancelResponse} instance, allowing for method - * chaining + * @return the current {@code StandalonePaymentCancelResponse} instance, allowing for method chaining */ public StandalonePaymentCancelResponse status(StatusEnum status) { this.status = status; @@ -248,7 +233,6 @@ public StandalonePaymentCancelResponse status(StatusEnum status) { /** * The status of your request. This will always have the value **received**. - * * @return status The status of your request. This will always have the value **received**. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -268,7 +252,9 @@ public void setStatus(StatusEnum status) { this.status = status; } - /** Return true if this StandalonePaymentCancelResponse object is equal to o. */ + /** + * Return true if this StandalonePaymentCancelResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -277,13 +263,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - StandalonePaymentCancelResponse standalonePaymentCancelResponse = - (StandalonePaymentCancelResponse) o; - return Objects.equals(this.merchantAccount, standalonePaymentCancelResponse.merchantAccount) - && Objects.equals(this.paymentReference, standalonePaymentCancelResponse.paymentReference) - && Objects.equals(this.pspReference, standalonePaymentCancelResponse.pspReference) - && Objects.equals(this.reference, standalonePaymentCancelResponse.reference) - && Objects.equals(this.status, standalonePaymentCancelResponse.status); + StandalonePaymentCancelResponse standalonePaymentCancelResponse = (StandalonePaymentCancelResponse) o; + return Objects.equals(this.merchantAccount, standalonePaymentCancelResponse.merchantAccount) && + Objects.equals(this.paymentReference, standalonePaymentCancelResponse.paymentReference) && + Objects.equals(this.pspReference, standalonePaymentCancelResponse.pspReference) && + Objects.equals(this.reference, standalonePaymentCancelResponse.reference) && + Objects.equals(this.status, standalonePaymentCancelResponse.status); } @Override @@ -305,7 +290,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -314,24 +300,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of StandalonePaymentCancelResponse given an JSON string * * @param jsonString JSON string * @return An instance of StandalonePaymentCancelResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StandalonePaymentCancelResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to StandalonePaymentCancelResponse */ - public static StandalonePaymentCancelResponse fromJson(String jsonString) - throws JsonProcessingException { + public static StandalonePaymentCancelResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StandalonePaymentCancelResponse.class); } - - /** - * Convert an instance of StandalonePaymentCancelResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of StandalonePaymentCancelResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/StoredPaymentMethod.java b/src/main/java/com/adyen/model/checkout/StoredPaymentMethod.java index 7f1a34426..dce5c0339 100644 --- a/src/main/java/com/adyen/model/checkout/StoredPaymentMethod.java +++ b/src/main/java/com/adyen/model/checkout/StoredPaymentMethod.java @@ -2,24 +2,33 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** StoredPaymentMethod */ +/** + * StoredPaymentMethod + */ @JsonPropertyOrder({ StoredPaymentMethod.JSON_PROPERTY_BANK_ACCOUNT_NUMBER, StoredPaymentMethod.JSON_PROPERTY_BANK_LOCATION_ID, @@ -39,6 +48,7 @@ StoredPaymentMethod.JSON_PROPERTY_SUPPORTED_SHOPPER_INTERACTIONS, StoredPaymentMethod.JSON_PROPERTY_TYPE }) + public class StoredPaymentMethod { public static final String JSON_PROPERTY_BANK_ACCOUNT_NUMBER = "bankAccountNumber"; private String bankAccountNumber; @@ -82,18 +92,17 @@ public class StoredPaymentMethod { public static final String JSON_PROPERTY_SHOPPER_EMAIL = "shopperEmail"; private String shopperEmail; - public static final String JSON_PROPERTY_SUPPORTED_RECURRING_PROCESSING_MODELS = - "supportedRecurringProcessingModels"; + public static final String JSON_PROPERTY_SUPPORTED_RECURRING_PROCESSING_MODELS = "supportedRecurringProcessingModels"; private List supportedRecurringProcessingModels; - public static final String JSON_PROPERTY_SUPPORTED_SHOPPER_INTERACTIONS = - "supportedShopperInteractions"; + public static final String JSON_PROPERTY_SUPPORTED_SHOPPER_INTERACTIONS = "supportedShopperInteractions"; private List supportedShopperInteractions; public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public StoredPaymentMethod() {} + public StoredPaymentMethod() { + } /** * The bank account number (without separators). @@ -108,7 +117,6 @@ public StoredPaymentMethod bankAccountNumber(String bankAccountNumber) { /** * The bank account number (without separators). - * * @return bankAccountNumber The bank account number (without separators). */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_NUMBER) @@ -131,8 +139,7 @@ public void setBankAccountNumber(String bankAccountNumber) { /** * The location id of the bank. The field value is `nil` in most cases. * - * @param bankLocationId The location id of the bank. The field value is `nil` in most - * cases. + * @param bankLocationId The location id of the bank. The field value is `nil` in most cases. * @return the current {@code StoredPaymentMethod} instance, allowing for method chaining */ public StoredPaymentMethod bankLocationId(String bankLocationId) { @@ -142,9 +149,7 @@ public StoredPaymentMethod bankLocationId(String bankLocationId) { /** * The location id of the bank. The field value is `nil` in most cases. - * - * @return bankLocationId The location id of the bank. The field value is `nil` in most - * cases. + * @return bankLocationId The location id of the bank. The field value is `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_BANK_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -155,8 +160,7 @@ public String getBankLocationId() { /** * The location id of the bank. The field value is `nil` in most cases. * - * @param bankLocationId The location id of the bank. The field value is `nil` in most - * cases. + * @param bankLocationId The location id of the bank. The field value is `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_BANK_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,7 +181,6 @@ public StoredPaymentMethod brand(String brand) { /** * The brand of the card. - * * @return brand The brand of the card. */ @JsonProperty(JSON_PROPERTY_BRAND) @@ -210,7 +213,6 @@ public StoredPaymentMethod expiryMonth(String expiryMonth) { /** * The two-digit month when the card expires - * * @return expiryMonth The two-digit month when the card expires */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @@ -233,8 +235,7 @@ public void setExpiryMonth(String expiryMonth) { /** * The last two digits of the year the card expires. For example, **22** for the year 2022. * - * @param expiryYear The last two digits of the year the card expires. For example, **22** for the - * year 2022. + * @param expiryYear The last two digits of the year the card expires. For example, **22** for the year 2022. * @return the current {@code StoredPaymentMethod} instance, allowing for method chaining */ public StoredPaymentMethod expiryYear(String expiryYear) { @@ -244,9 +245,7 @@ public StoredPaymentMethod expiryYear(String expiryYear) { /** * The last two digits of the year the card expires. For example, **22** for the year 2022. - * - * @return expiryYear The last two digits of the year the card expires. For example, **22** for - * the year 2022. + * @return expiryYear The last two digits of the year the card expires. For example, **22** for the year 2022. */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -257,8 +256,7 @@ public String getExpiryYear() { /** * The last two digits of the year the card expires. For example, **22** for the year 2022. * - * @param expiryYear The last two digits of the year the card expires. For example, **22** for the - * year 2022. + * @param expiryYear The last two digits of the year the card expires. For example, **22** for the year 2022. */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -279,7 +277,6 @@ public StoredPaymentMethod holderName(String holderName) { /** * The unique payment method code. - * * @return holderName The unique payment method code. */ @JsonProperty(JSON_PROPERTY_HOLDER_NAME) @@ -312,7 +309,6 @@ public StoredPaymentMethod iban(String iban) { /** * The IBAN of the bank account. - * * @return iban The IBAN of the bank account. */ @JsonProperty(JSON_PROPERTY_IBAN) @@ -345,7 +341,6 @@ public StoredPaymentMethod id(String id) { /** * A unique identifier of this stored payment method. - * * @return id A unique identifier of this stored payment method. */ @JsonProperty(JSON_PROPERTY_ID) @@ -378,7 +373,6 @@ public StoredPaymentMethod label(String label) { /** * The shopper’s issuer account label - * * @return label The shopper’s issuer account label */ @JsonProperty(JSON_PROPERTY_LABEL) @@ -411,7 +405,6 @@ public StoredPaymentMethod lastFour(String lastFour) { /** * The last four digits of the PAN. - * * @return lastFour The last four digits of the PAN. */ @JsonProperty(JSON_PROPERTY_LAST_FOUR) @@ -444,7 +437,6 @@ public StoredPaymentMethod name(String name) { /** * The display name of the stored payment method. - * * @return name The display name of the stored payment method. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -465,13 +457,9 @@ public void setName(String name) { } /** - * Returned in the response if you are not tokenizing with Adyen and are using the - * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either - * the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. * - * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are - * using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This - * contains either the Mastercard Trace ID or the Visa Transaction ID. + * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. * @return the current {@code StoredPaymentMethod} instance, allowing for method chaining */ public StoredPaymentMethod networkTxReference(String networkTxReference) { @@ -480,13 +468,8 @@ public StoredPaymentMethod networkTxReference(String networkTxReference) { } /** - * Returned in the response if you are not tokenizing with Adyen and are using the - * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either - * the Mastercard Trace ID or the Visa Transaction ID. - * - * @return networkTxReference Returned in the response if you are not tokenizing with Adyen and - * are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This - * contains either the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * @return networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. */ @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -495,13 +478,9 @@ public String getNetworkTxReference() { } /** - * Returned in the response if you are not tokenizing with Adyen and are using the - * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either - * the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. * - * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are - * using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This - * contains either the Mastercard Trace ID or the Visa Transaction ID. + * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. */ @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -522,7 +501,6 @@ public StoredPaymentMethod ownerName(String ownerName) { /** * The name of the bank account holder. - * * @return ownerName The name of the bank account holder. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @@ -555,7 +533,6 @@ public StoredPaymentMethod shopperEmail(String shopperEmail) { /** * The shopper’s email address. - * * @return shopperEmail The shopper’s email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -578,18 +555,15 @@ public void setShopperEmail(String shopperEmail) { /** * The supported recurring processing models for this stored payment method. * - * @param supportedRecurringProcessingModels The supported recurring processing models for this - * stored payment method. + * @param supportedRecurringProcessingModels The supported recurring processing models for this stored payment method. * @return the current {@code StoredPaymentMethod} instance, allowing for method chaining */ - public StoredPaymentMethod supportedRecurringProcessingModels( - List supportedRecurringProcessingModels) { + public StoredPaymentMethod supportedRecurringProcessingModels(List supportedRecurringProcessingModels) { this.supportedRecurringProcessingModels = supportedRecurringProcessingModels; return this; } - public StoredPaymentMethod addSupportedRecurringProcessingModelsItem( - String supportedRecurringProcessingModelsItem) { + public StoredPaymentMethod addSupportedRecurringProcessingModelsItem(String supportedRecurringProcessingModelsItem) { if (this.supportedRecurringProcessingModels == null) { this.supportedRecurringProcessingModels = new ArrayList<>(); } @@ -599,9 +573,7 @@ public StoredPaymentMethod addSupportedRecurringProcessingModelsItem( /** * The supported recurring processing models for this stored payment method. - * - * @return supportedRecurringProcessingModels The supported recurring processing models for this - * stored payment method. + * @return supportedRecurringProcessingModels The supported recurring processing models for this stored payment method. */ @JsonProperty(JSON_PROPERTY_SUPPORTED_RECURRING_PROCESSING_MODELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -612,31 +584,26 @@ public List getSupportedRecurringProcessingModels() { /** * The supported recurring processing models for this stored payment method. * - * @param supportedRecurringProcessingModels The supported recurring processing models for this - * stored payment method. + * @param supportedRecurringProcessingModels The supported recurring processing models for this stored payment method. */ @JsonProperty(JSON_PROPERTY_SUPPORTED_RECURRING_PROCESSING_MODELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSupportedRecurringProcessingModels( - List supportedRecurringProcessingModels) { + public void setSupportedRecurringProcessingModels(List supportedRecurringProcessingModels) { this.supportedRecurringProcessingModels = supportedRecurringProcessingModels; } /** * The supported shopper interactions for this stored payment method. * - * @param supportedShopperInteractions The supported shopper interactions for this stored payment - * method. + * @param supportedShopperInteractions The supported shopper interactions for this stored payment method. * @return the current {@code StoredPaymentMethod} instance, allowing for method chaining */ - public StoredPaymentMethod supportedShopperInteractions( - List supportedShopperInteractions) { + public StoredPaymentMethod supportedShopperInteractions(List supportedShopperInteractions) { this.supportedShopperInteractions = supportedShopperInteractions; return this; } - public StoredPaymentMethod addSupportedShopperInteractionsItem( - String supportedShopperInteractionsItem) { + public StoredPaymentMethod addSupportedShopperInteractionsItem(String supportedShopperInteractionsItem) { if (this.supportedShopperInteractions == null) { this.supportedShopperInteractions = new ArrayList<>(); } @@ -646,9 +613,7 @@ public StoredPaymentMethod addSupportedShopperInteractionsItem( /** * The supported shopper interactions for this stored payment method. - * - * @return supportedShopperInteractions The supported shopper interactions for this stored payment - * method. + * @return supportedShopperInteractions The supported shopper interactions for this stored payment method. */ @JsonProperty(JSON_PROPERTY_SUPPORTED_SHOPPER_INTERACTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -659,8 +624,7 @@ public List getSupportedShopperInteractions() { /** * The supported shopper interactions for this stored payment method. * - * @param supportedShopperInteractions The supported shopper interactions for this stored payment - * method. + * @param supportedShopperInteractions The supported shopper interactions for this stored payment method. */ @JsonProperty(JSON_PROPERTY_SUPPORTED_SHOPPER_INTERACTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -681,7 +645,6 @@ public StoredPaymentMethod type(String type) { /** * The type of payment method. - * * @return type The type of payment method. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -701,7 +664,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this StoredPaymentMethod object is equal to o. */ + /** + * Return true if this StoredPaymentMethod object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -711,48 +676,28 @@ public boolean equals(Object o) { return false; } StoredPaymentMethod storedPaymentMethod = (StoredPaymentMethod) o; - return Objects.equals(this.bankAccountNumber, storedPaymentMethod.bankAccountNumber) - && Objects.equals(this.bankLocationId, storedPaymentMethod.bankLocationId) - && Objects.equals(this.brand, storedPaymentMethod.brand) - && Objects.equals(this.expiryMonth, storedPaymentMethod.expiryMonth) - && Objects.equals(this.expiryYear, storedPaymentMethod.expiryYear) - && Objects.equals(this.holderName, storedPaymentMethod.holderName) - && Objects.equals(this.iban, storedPaymentMethod.iban) - && Objects.equals(this.id, storedPaymentMethod.id) - && Objects.equals(this.label, storedPaymentMethod.label) - && Objects.equals(this.lastFour, storedPaymentMethod.lastFour) - && Objects.equals(this.name, storedPaymentMethod.name) - && Objects.equals(this.networkTxReference, storedPaymentMethod.networkTxReference) - && Objects.equals(this.ownerName, storedPaymentMethod.ownerName) - && Objects.equals(this.shopperEmail, storedPaymentMethod.shopperEmail) - && Objects.equals( - this.supportedRecurringProcessingModels, - storedPaymentMethod.supportedRecurringProcessingModels) - && Objects.equals( - this.supportedShopperInteractions, storedPaymentMethod.supportedShopperInteractions) - && Objects.equals(this.type, storedPaymentMethod.type); + return Objects.equals(this.bankAccountNumber, storedPaymentMethod.bankAccountNumber) && + Objects.equals(this.bankLocationId, storedPaymentMethod.bankLocationId) && + Objects.equals(this.brand, storedPaymentMethod.brand) && + Objects.equals(this.expiryMonth, storedPaymentMethod.expiryMonth) && + Objects.equals(this.expiryYear, storedPaymentMethod.expiryYear) && + Objects.equals(this.holderName, storedPaymentMethod.holderName) && + Objects.equals(this.iban, storedPaymentMethod.iban) && + Objects.equals(this.id, storedPaymentMethod.id) && + Objects.equals(this.label, storedPaymentMethod.label) && + Objects.equals(this.lastFour, storedPaymentMethod.lastFour) && + Objects.equals(this.name, storedPaymentMethod.name) && + Objects.equals(this.networkTxReference, storedPaymentMethod.networkTxReference) && + Objects.equals(this.ownerName, storedPaymentMethod.ownerName) && + Objects.equals(this.shopperEmail, storedPaymentMethod.shopperEmail) && + Objects.equals(this.supportedRecurringProcessingModels, storedPaymentMethod.supportedRecurringProcessingModels) && + Objects.equals(this.supportedShopperInteractions, storedPaymentMethod.supportedShopperInteractions) && + Objects.equals(this.type, storedPaymentMethod.type); } @Override public int hashCode() { - return Objects.hash( - bankAccountNumber, - bankLocationId, - brand, - expiryMonth, - expiryYear, - holderName, - iban, - id, - label, - lastFour, - name, - networkTxReference, - ownerName, - shopperEmail, - supportedRecurringProcessingModels, - supportedShopperInteractions, - type); + return Objects.hash(bankAccountNumber, bankLocationId, brand, expiryMonth, expiryYear, holderName, iban, id, label, lastFour, name, networkTxReference, ownerName, shopperEmail, supportedRecurringProcessingModels, supportedShopperInteractions, type); } @Override @@ -773,19 +718,16 @@ public String toString() { sb.append(" networkTxReference: ").append(toIndentedString(networkTxReference)).append("\n"); sb.append(" ownerName: ").append(toIndentedString(ownerName)).append("\n"); sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); - sb.append(" supportedRecurringProcessingModels: ") - .append(toIndentedString(supportedRecurringProcessingModels)) - .append("\n"); - sb.append(" supportedShopperInteractions: ") - .append(toIndentedString(supportedShopperInteractions)) - .append("\n"); + sb.append(" supportedRecurringProcessingModels: ").append(toIndentedString(supportedRecurringProcessingModels)).append("\n"); + sb.append(" supportedShopperInteractions: ").append(toIndentedString(supportedShopperInteractions)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -794,23 +736,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of StoredPaymentMethod given an JSON string * * @param jsonString JSON string * @return An instance of StoredPaymentMethod - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoredPaymentMethod + * @throws JsonProcessingException if the JSON string is invalid with respect to StoredPaymentMethod */ public static StoredPaymentMethod fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoredPaymentMethod.class); } - - /** - * Convert an instance of StoredPaymentMethod to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of StoredPaymentMethod to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/StoredPaymentMethodDetails.java b/src/main/java/com/adyen/model/checkout/StoredPaymentMethodDetails.java index 7f2989b58..632397e0f 100644 --- a/src/main/java/com/adyen/model/checkout/StoredPaymentMethodDetails.java +++ b/src/main/java/com/adyen/model/checkout/StoredPaymentMethodDetails.java @@ -2,32 +2,38 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** StoredPaymentMethodDetails */ +/** + * StoredPaymentMethodDetails + */ @JsonPropertyOrder({ StoredPaymentMethodDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, StoredPaymentMethodDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, StoredPaymentMethodDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, StoredPaymentMethodDetails.JSON_PROPERTY_TYPE }) + public class StoredPaymentMethodDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -39,8 +45,11 @@ public class StoredPaymentMethodDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** The payment method type. */ + /** + * The payment method type. + */ public enum TypeEnum { + BCMC_MOBILE(String.valueOf("bcmc_mobile")), BCMC_MOBILE_QR(String.valueOf("bcmc_mobile_QR")), @@ -82,7 +91,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -103,11 +112,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -115,7 +120,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public StoredPaymentMethodDetails() {} + public StoredPaymentMethodDetails() { + } /** * The checkout attempt identifier. @@ -130,7 +136,6 @@ public StoredPaymentMethodDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -151,13 +156,13 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code StoredPaymentMethodDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public StoredPaymentMethodDetails recurringDetailReference(String recurringDetailReference) { @@ -166,11 +171,8 @@ public StoredPaymentMethodDetails recurringDetailReference(String recurringDetai } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -181,12 +183,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -196,11 +198,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code StoredPaymentMethodDetails} instance, allowing for method chaining */ public StoredPaymentMethodDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -209,11 +209,8 @@ public StoredPaymentMethodDetails storedPaymentMethodId(String storedPaymentMeth } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -222,11 +219,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -247,7 +242,6 @@ public StoredPaymentMethodDetails type(TypeEnum type) { /** * The payment method type. - * * @return type The payment method type. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -267,7 +261,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this StoredPaymentMethodDetails object is equal to o. */ + /** + * Return true if this StoredPaymentMethodDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -277,12 +273,10 @@ public boolean equals(Object o) { return false; } StoredPaymentMethodDetails storedPaymentMethodDetails = (StoredPaymentMethodDetails) o; - return Objects.equals(this.checkoutAttemptId, storedPaymentMethodDetails.checkoutAttemptId) - && Objects.equals( - this.recurringDetailReference, storedPaymentMethodDetails.recurringDetailReference) - && Objects.equals( - this.storedPaymentMethodId, storedPaymentMethodDetails.storedPaymentMethodId) - && Objects.equals(this.type, storedPaymentMethodDetails.type); + return Objects.equals(this.checkoutAttemptId, storedPaymentMethodDetails.checkoutAttemptId) && + Objects.equals(this.recurringDetailReference, storedPaymentMethodDetails.recurringDetailReference) && + Objects.equals(this.storedPaymentMethodId, storedPaymentMethodDetails.storedPaymentMethodId) && + Objects.equals(this.type, storedPaymentMethodDetails.type); } @Override @@ -295,19 +289,16 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class StoredPaymentMethodDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -316,24 +307,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of StoredPaymentMethodDetails given an JSON string * * @param jsonString JSON string * @return An instance of StoredPaymentMethodDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoredPaymentMethodDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to StoredPaymentMethodDetails */ - public static StoredPaymentMethodDetails fromJson(String jsonString) - throws JsonProcessingException { + public static StoredPaymentMethodDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoredPaymentMethodDetails.class); } - - /** - * Convert an instance of StoredPaymentMethodDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of StoredPaymentMethodDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/StoredPaymentMethodRequest.java b/src/main/java/com/adyen/model/checkout/StoredPaymentMethodRequest.java index 44816338d..a534907ef 100644 --- a/src/main/java/com/adyen/model/checkout/StoredPaymentMethodRequest.java +++ b/src/main/java/com/adyen/model/checkout/StoredPaymentMethodRequest.java @@ -2,26 +2,32 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.PaymentMethodToStore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** StoredPaymentMethodRequest */ + +/** + * StoredPaymentMethodRequest + */ @JsonPropertyOrder({ StoredPaymentMethodRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, StoredPaymentMethodRequest.JSON_PROPERTY_PAYMENT_METHOD, @@ -30,6 +36,7 @@ StoredPaymentMethodRequest.JSON_PROPERTY_SHOPPER_I_P, StoredPaymentMethodRequest.JSON_PROPERTY_SHOPPER_REFERENCE }) + public class StoredPaymentMethodRequest { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; @@ -38,30 +45,22 @@ public class StoredPaymentMethodRequest { private PaymentMethodToStore paymentMethod; /** - * Defines a recurring payment type. Required when creating a token to store payment details. - * Allowed values: * `Subscription` – A transaction for a fixed or variable amount, - * which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) - * transaction, card details are stored to enable one-click or omnichannel journeys, or simply to - * streamline the checkout process. Any subscription not following a fixed schedule is also - * considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled - * card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or - * have variable amounts. For example, automatic top-ups when a cardholder's balance drops - * below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ public enum RecurringProcessingModelEnum { + CARDONFILE(String.valueOf("CardOnFile")), SUBSCRIPTION(String.valueOf("Subscription")), UNSCHEDULEDCARDONFILE(String.valueOf("UnscheduledCardOnFile")); - private static final Logger LOG = - Logger.getLogger(RecurringProcessingModelEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(RecurringProcessingModelEnum.class.getName()); private String value; RecurringProcessingModelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -82,11 +81,7 @@ public static RecurringProcessingModelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "RecurringProcessingModelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(RecurringProcessingModelEnum.values())); + LOG.warning("RecurringProcessingModelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RecurringProcessingModelEnum.values())); return null; } } @@ -103,13 +98,13 @@ public static RecurringProcessingModelEnum fromValue(String value) { public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference"; private String shopperReference; - public StoredPaymentMethodRequest() {} + public StoredPaymentMethodRequest() { + } /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. * @return the current {@code StoredPaymentMethodRequest} instance, allowing for method chaining */ public StoredPaymentMethodRequest merchantAccount(String merchantAccount) { @@ -119,9 +114,7 @@ public StoredPaymentMethodRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * - * @return merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @return merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,8 +125,7 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,7 +136,7 @@ public void setMerchantAccount(String merchantAccount) { /** * paymentMethod * - * @param paymentMethod + * @param paymentMethod * @return the current {@code StoredPaymentMethodRequest} instance, allowing for method chaining */ public StoredPaymentMethodRequest paymentMethod(PaymentMethodToStore paymentMethod) { @@ -154,8 +146,7 @@ public StoredPaymentMethodRequest paymentMethod(PaymentMethodToStore paymentMeth /** * Get paymentMethod - * - * @return paymentMethod + * @return paymentMethod */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -166,7 +157,7 @@ public PaymentMethodToStore getPaymentMethod() { /** * paymentMethod * - * @param paymentMethod + * @param paymentMethod */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -175,53 +166,19 @@ public void setPaymentMethod(PaymentMethodToStore paymentMethod) { } /** - * Defines a recurring payment type. Required when creating a token to store payment details. - * Allowed values: * `Subscription` – A transaction for a fixed or variable amount, - * which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) - * transaction, card details are stored to enable one-click or omnichannel journeys, or simply to - * streamline the checkout process. Any subscription not following a fixed schedule is also - * considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled - * card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or - * have variable amounts. For example, automatic top-ups when a cardholder's balance drops - * below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a - * token to store payment details. Allowed values: * `Subscription` – A transaction - * for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – - * With a card-on-file (CoF) transaction, card details are stored to enable one-click or - * omnichannel journeys, or simply to streamline the checkout process. Any subscription not - * following a fixed schedule is also considered a card-on-file transaction. * - * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a - * transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, - * automatic top-ups when a cardholder's balance drops below a certain amount. + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. * @return the current {@code StoredPaymentMethodRequest} instance, allowing for method chaining */ - public StoredPaymentMethodRequest recurringProcessingModel( - RecurringProcessingModelEnum recurringProcessingModel) { + public StoredPaymentMethodRequest recurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) { this.recurringProcessingModel = recurringProcessingModel; return this; } /** - * Defines a recurring payment type. Required when creating a token to store payment details. - * Allowed values: * `Subscription` – A transaction for a fixed or variable amount, - * which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) - * transaction, card details are stored to enable one-click or omnichannel journeys, or simply to - * streamline the checkout process. Any subscription not following a fixed schedule is also - * considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled - * card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or - * have variable amounts. For example, automatic top-ups when a cardholder's balance drops - * below a certain amount. - * - * @return recurringProcessingModel Defines a recurring payment type. Required when creating a - * token to store payment details. Allowed values: * `Subscription` – A transaction - * for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – - * With a card-on-file (CoF) transaction, card details are stored to enable one-click or - * omnichannel journeys, or simply to streamline the checkout process. Any subscription not - * following a fixed schedule is also considered a card-on-file transaction. * - * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a - * transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, - * automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * @return recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -230,25 +187,9 @@ public RecurringProcessingModelEnum getRecurringProcessingModel() { } /** - * Defines a recurring payment type. Required when creating a token to store payment details. - * Allowed values: * `Subscription` – A transaction for a fixed or variable amount, - * which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) - * transaction, card details are stored to enable one-click or omnichannel journeys, or simply to - * streamline the checkout process. Any subscription not following a fixed schedule is also - * considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled - * card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or - * have variable amounts. For example, automatic top-ups when a cardholder's balance drops - * below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a - * token to store payment details. Allowed values: * `Subscription` – A transaction - * for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – - * With a card-on-file (CoF) transaction, card details are stored to enable one-click or - * omnichannel journeys, or simply to streamline the checkout process. Any subscription not - * following a fixed schedule is also considered a card-on-file transaction. * - * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a - * transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, - * automatic top-ups when a cardholder's balance drops below a certain amount. + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -257,11 +198,9 @@ public void setRecurringProcessingModel(RecurringProcessingModelEnum recurringPr } /** - * The shopper's email address. We recommend that you provide this data, as it is used in - * velocity fraud checks. + * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, - * as it is used in velocity fraud checks. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. * @return the current {@code StoredPaymentMethodRequest} instance, allowing for method chaining */ public StoredPaymentMethodRequest shopperEmail(String shopperEmail) { @@ -270,11 +209,8 @@ public StoredPaymentMethodRequest shopperEmail(String shopperEmail) { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in - * velocity fraud checks. - * - * @return shopperEmail The shopper's email address. We recommend that you provide this data, - * as it is used in velocity fraud checks. + * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. + * @return shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -283,11 +219,9 @@ public String getShopperEmail() { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in - * velocity fraud checks. + * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, - * as it is used in velocity fraud checks. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -308,7 +242,6 @@ public StoredPaymentMethodRequest shopperIP(String shopperIP) { /** * The IP address of a shopper. - * * @return shopperIP The IP address of a shopper. */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @@ -331,8 +264,7 @@ public void setShopperIP(String shopperIP) { /** * A unique identifier for the shopper (for example, user ID or account ID). * - * @param shopperReference A unique identifier for the shopper (for example, user ID or account - * ID). + * @param shopperReference A unique identifier for the shopper (for example, user ID or account ID). * @return the current {@code StoredPaymentMethodRequest} instance, allowing for method chaining */ public StoredPaymentMethodRequest shopperReference(String shopperReference) { @@ -342,9 +274,7 @@ public StoredPaymentMethodRequest shopperReference(String shopperReference) { /** * A unique identifier for the shopper (for example, user ID or account ID). - * - * @return shopperReference A unique identifier for the shopper (for example, user ID or account - * ID). + * @return shopperReference A unique identifier for the shopper (for example, user ID or account ID). */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -355,8 +285,7 @@ public String getShopperReference() { /** * A unique identifier for the shopper (for example, user ID or account ID). * - * @param shopperReference A unique identifier for the shopper (for example, user ID or account - * ID). + * @param shopperReference A unique identifier for the shopper (for example, user ID or account ID). */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -364,7 +293,9 @@ public void setShopperReference(String shopperReference) { this.shopperReference = shopperReference; } - /** Return true if this StoredPaymentMethodRequest object is equal to o. */ + /** + * Return true if this StoredPaymentMethodRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -374,24 +305,17 @@ public boolean equals(Object o) { return false; } StoredPaymentMethodRequest storedPaymentMethodRequest = (StoredPaymentMethodRequest) o; - return Objects.equals(this.merchantAccount, storedPaymentMethodRequest.merchantAccount) - && Objects.equals(this.paymentMethod, storedPaymentMethodRequest.paymentMethod) - && Objects.equals( - this.recurringProcessingModel, storedPaymentMethodRequest.recurringProcessingModel) - && Objects.equals(this.shopperEmail, storedPaymentMethodRequest.shopperEmail) - && Objects.equals(this.shopperIP, storedPaymentMethodRequest.shopperIP) - && Objects.equals(this.shopperReference, storedPaymentMethodRequest.shopperReference); + return Objects.equals(this.merchantAccount, storedPaymentMethodRequest.merchantAccount) && + Objects.equals(this.paymentMethod, storedPaymentMethodRequest.paymentMethod) && + Objects.equals(this.recurringProcessingModel, storedPaymentMethodRequest.recurringProcessingModel) && + Objects.equals(this.shopperEmail, storedPaymentMethodRequest.shopperEmail) && + Objects.equals(this.shopperIP, storedPaymentMethodRequest.shopperIP) && + Objects.equals(this.shopperReference, storedPaymentMethodRequest.shopperReference); } @Override public int hashCode() { - return Objects.hash( - merchantAccount, - paymentMethod, - recurringProcessingModel, - shopperEmail, - shopperIP, - shopperReference); + return Objects.hash(merchantAccount, paymentMethod, recurringProcessingModel, shopperEmail, shopperIP, shopperReference); } @Override @@ -400,9 +324,7 @@ public String toString() { sb.append("class StoredPaymentMethodRequest {\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n"); - sb.append(" recurringProcessingModel: ") - .append(toIndentedString(recurringProcessingModel)) - .append("\n"); + sb.append(" recurringProcessingModel: ").append(toIndentedString(recurringProcessingModel)).append("\n"); sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); sb.append(" shopperIP: ").append(toIndentedString(shopperIP)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); @@ -411,7 +333,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -420,24 +343,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of StoredPaymentMethodRequest given an JSON string * * @param jsonString JSON string * @return An instance of StoredPaymentMethodRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoredPaymentMethodRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to StoredPaymentMethodRequest */ - public static StoredPaymentMethodRequest fromJson(String jsonString) - throws JsonProcessingException { + public static StoredPaymentMethodRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoredPaymentMethodRequest.class); } - - /** - * Convert an instance of StoredPaymentMethodRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of StoredPaymentMethodRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/StoredPaymentMethodResource.java b/src/main/java/com/adyen/model/checkout/StoredPaymentMethodResource.java index c0e4d9c3f..0947ce9a2 100644 --- a/src/main/java/com/adyen/model/checkout/StoredPaymentMethodResource.java +++ b/src/main/java/com/adyen/model/checkout/StoredPaymentMethodResource.java @@ -2,24 +2,33 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** StoredPaymentMethodResource */ + +/** + * StoredPaymentMethodResource + */ @JsonPropertyOrder({ StoredPaymentMethodResource.JSON_PROPERTY_BRAND, StoredPaymentMethodResource.JSON_PROPERTY_EXPIRY_MONTH, @@ -39,6 +48,7 @@ StoredPaymentMethodResource.JSON_PROPERTY_SUPPORTED_RECURRING_PROCESSING_MODELS, StoredPaymentMethodResource.JSON_PROPERTY_TYPE }) + public class StoredPaymentMethodResource { public static final String JSON_PROPERTY_BRAND = "brand"; private String brand; @@ -85,14 +95,14 @@ public class StoredPaymentMethodResource { public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference"; private String shopperReference; - public static final String JSON_PROPERTY_SUPPORTED_RECURRING_PROCESSING_MODELS = - "supportedRecurringProcessingModels"; + public static final String JSON_PROPERTY_SUPPORTED_RECURRING_PROCESSING_MODELS = "supportedRecurringProcessingModels"; private List supportedRecurringProcessingModels; public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public StoredPaymentMethodResource() {} + public StoredPaymentMethodResource() { + } /** * The brand of the card. @@ -107,7 +117,6 @@ public StoredPaymentMethodResource brand(String brand) { /** * The brand of the card. - * * @return brand The brand of the card. */ @JsonProperty(JSON_PROPERTY_BRAND) @@ -140,7 +149,6 @@ public StoredPaymentMethodResource expiryMonth(String expiryMonth) { /** * The month the card expires. - * * @return expiryMonth The month the card expires. */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @@ -163,8 +171,7 @@ public void setExpiryMonth(String expiryMonth) { /** * The last two digits of the year the card expires. For example, **22** for the year 2022. * - * @param expiryYear The last two digits of the year the card expires. For example, **22** for the - * year 2022. + * @param expiryYear The last two digits of the year the card expires. For example, **22** for the year 2022. * @return the current {@code StoredPaymentMethodResource} instance, allowing for method chaining */ public StoredPaymentMethodResource expiryYear(String expiryYear) { @@ -174,9 +181,7 @@ public StoredPaymentMethodResource expiryYear(String expiryYear) { /** * The last two digits of the year the card expires. For example, **22** for the year 2022. - * - * @return expiryYear The last two digits of the year the card expires. For example, **22** for - * the year 2022. + * @return expiryYear The last two digits of the year the card expires. For example, **22** for the year 2022. */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,8 +192,7 @@ public String getExpiryYear() { /** * The last two digits of the year the card expires. For example, **22** for the year 2022. * - * @param expiryYear The last two digits of the year the card expires. For example, **22** for the - * year 2022. + * @param expiryYear The last two digits of the year the card expires. For example, **22** for the year 2022. */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -199,8 +203,7 @@ public void setExpiryYear(String expiryYear) { /** * The response code returned by an external system (for example after a provisioning operation). * - * @param externalResponseCode The response code returned by an external system (for example after - * a provisioning operation). + * @param externalResponseCode The response code returned by an external system (for example after a provisioning operation). * @return the current {@code StoredPaymentMethodResource} instance, allowing for method chaining */ public StoredPaymentMethodResource externalResponseCode(String externalResponseCode) { @@ -210,9 +213,7 @@ public StoredPaymentMethodResource externalResponseCode(String externalResponseC /** * The response code returned by an external system (for example after a provisioning operation). - * - * @return externalResponseCode The response code returned by an external system (for example - * after a provisioning operation). + * @return externalResponseCode The response code returned by an external system (for example after a provisioning operation). */ @JsonProperty(JSON_PROPERTY_EXTERNAL_RESPONSE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,8 +224,7 @@ public String getExternalResponseCode() { /** * The response code returned by an external system (for example after a provisioning operation). * - * @param externalResponseCode The response code returned by an external system (for example after - * a provisioning operation). + * @param externalResponseCode The response code returned by an external system (for example after a provisioning operation). */ @JsonProperty(JSON_PROPERTY_EXTERNAL_RESPONSE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -233,11 +233,9 @@ public void setExternalResponseCode(String externalResponseCode) { } /** - * The token reference of a linked token in an external system (for example a network token - * reference). + * The token reference of a linked token in an external system (for example a network token reference). * - * @param externalTokenReference The token reference of a linked token in an external system (for - * example a network token reference). + * @param externalTokenReference The token reference of a linked token in an external system (for example a network token reference). * @return the current {@code StoredPaymentMethodResource} instance, allowing for method chaining */ public StoredPaymentMethodResource externalTokenReference(String externalTokenReference) { @@ -246,11 +244,8 @@ public StoredPaymentMethodResource externalTokenReference(String externalTokenRe } /** - * The token reference of a linked token in an external system (for example a network token - * reference). - * - * @return externalTokenReference The token reference of a linked token in an external system (for - * example a network token reference). + * The token reference of a linked token in an external system (for example a network token reference). + * @return externalTokenReference The token reference of a linked token in an external system (for example a network token reference). */ @JsonProperty(JSON_PROPERTY_EXTERNAL_TOKEN_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -259,11 +254,9 @@ public String getExternalTokenReference() { } /** - * The token reference of a linked token in an external system (for example a network token - * reference). + * The token reference of a linked token in an external system (for example a network token reference). * - * @param externalTokenReference The token reference of a linked token in an external system (for - * example a network token reference). + * @param externalTokenReference The token reference of a linked token in an external system (for example a network token reference). */ @JsonProperty(JSON_PROPERTY_EXTERNAL_TOKEN_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,7 +277,6 @@ public StoredPaymentMethodResource holderName(String holderName) { /** * The unique payment method code. - * * @return holderName The unique payment method code. */ @JsonProperty(JSON_PROPERTY_HOLDER_NAME) @@ -317,7 +309,6 @@ public StoredPaymentMethodResource iban(String iban) { /** * The IBAN of the bank account. - * * @return iban The IBAN of the bank account. */ @JsonProperty(JSON_PROPERTY_IBAN) @@ -350,7 +341,6 @@ public StoredPaymentMethodResource id(String id) { /** * A unique identifier of this stored payment method. - * * @return id A unique identifier of this stored payment method. */ @JsonProperty(JSON_PROPERTY_ID) @@ -383,7 +373,6 @@ public StoredPaymentMethodResource issuerName(String issuerName) { /** * The name of the issuer of token or card. - * * @return issuerName The name of the issuer of token or card. */ @JsonProperty(JSON_PROPERTY_ISSUER_NAME) @@ -416,7 +405,6 @@ public StoredPaymentMethodResource lastFour(String lastFour) { /** * The last four digits of the PAN. - * * @return lastFour The last four digits of the PAN. */ @JsonProperty(JSON_PROPERTY_LAST_FOUR) @@ -449,7 +437,6 @@ public StoredPaymentMethodResource name(String name) { /** * The display name of the stored payment method. - * * @return name The display name of the stored payment method. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -470,13 +457,9 @@ public void setName(String name) { } /** - * Returned in the response if you are not tokenizing with Adyen and are using the - * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either - * the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. * - * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are - * using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This - * contains either the Mastercard Trace ID or the Visa Transaction ID. + * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. * @return the current {@code StoredPaymentMethodResource} instance, allowing for method chaining */ public StoredPaymentMethodResource networkTxReference(String networkTxReference) { @@ -485,13 +468,8 @@ public StoredPaymentMethodResource networkTxReference(String networkTxReference) } /** - * Returned in the response if you are not tokenizing with Adyen and are using the - * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either - * the Mastercard Trace ID or the Visa Transaction ID. - * - * @return networkTxReference Returned in the response if you are not tokenizing with Adyen and - * are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This - * contains either the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * @return networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. */ @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -500,13 +478,9 @@ public String getNetworkTxReference() { } /** - * Returned in the response if you are not tokenizing with Adyen and are using the - * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either - * the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. * - * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are - * using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This - * contains either the Mastercard Trace ID or the Visa Transaction ID. + * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. */ @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -527,7 +501,6 @@ public StoredPaymentMethodResource ownerName(String ownerName) { /** * The name of the bank account holder. - * * @return ownerName The name of the bank account holder. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @@ -560,7 +533,6 @@ public StoredPaymentMethodResource shopperEmail(String shopperEmail) { /** * The shopper’s email address. - * * @return shopperEmail The shopper’s email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -581,14 +553,9 @@ public void setShopperEmail(String shopperEmail) { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. The value - * is case-sensitive and must be at least three characters. > Your reference must not include - * personally identifiable information (PII) such as name or email address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * - * @param shopperReference Your reference to uniquely identify this shopper, for example user ID - * or account ID. The value is case-sensitive and must be at least three characters. > Your - * reference must not include personally identifiable information (PII) such as name or email - * address. + * @param shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * @return the current {@code StoredPaymentMethodResource} instance, allowing for method chaining */ public StoredPaymentMethodResource shopperReference(String shopperReference) { @@ -597,14 +564,8 @@ public StoredPaymentMethodResource shopperReference(String shopperReference) { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. The value - * is case-sensitive and must be at least three characters. > Your reference must not include - * personally identifiable information (PII) such as name or email address. - * - * @return shopperReference Your reference to uniquely identify this shopper, for example user ID - * or account ID. The value is case-sensitive and must be at least three characters. > Your - * reference must not include personally identifiable information (PII) such as name or email - * address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @return shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -613,14 +574,9 @@ public String getShopperReference() { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. The value - * is case-sensitive and must be at least three characters. > Your reference must not include - * personally identifiable information (PII) such as name or email address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * - * @param shopperReference Your reference to uniquely identify this shopper, for example user ID - * or account ID. The value is case-sensitive and must be at least three characters. > Your - * reference must not include personally identifiable information (PII) such as name or email - * address. + * @param shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -629,34 +585,17 @@ public void setShopperReference(String shopperReference) { } /** - * Defines a recurring payment type. Allowed values: * `Subscription` – A transaction - * for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With - * a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – - * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. - * - * @param supportedRecurringProcessingModels Defines a recurring payment type. Allowed values: * - * `Subscription` – A transaction for a fixed or variable amount, which follows a - * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card - * details are stored to enable one-click or omnichannel journeys, or simply to streamline the - * checkout process. Any subscription not following a fixed schedule is also considered a - * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file - * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have - * variable amounts. For example, automatic top-ups when a cardholder's balance drops - * below a certain amount. + * Defines a recurring payment type. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * + * @param supportedRecurringProcessingModels Defines a recurring payment type. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. * @return the current {@code StoredPaymentMethodResource} instance, allowing for method chaining */ - public StoredPaymentMethodResource supportedRecurringProcessingModels( - List supportedRecurringProcessingModels) { + public StoredPaymentMethodResource supportedRecurringProcessingModels(List supportedRecurringProcessingModels) { this.supportedRecurringProcessingModels = supportedRecurringProcessingModels; return this; } - public StoredPaymentMethodResource addSupportedRecurringProcessingModelsItem( - String supportedRecurringProcessingModelsItem) { + public StoredPaymentMethodResource addSupportedRecurringProcessingModelsItem(String supportedRecurringProcessingModelsItem) { if (this.supportedRecurringProcessingModels == null) { this.supportedRecurringProcessingModels = new ArrayList<>(); } @@ -665,24 +604,8 @@ public StoredPaymentMethodResource addSupportedRecurringProcessingModelsItem( } /** - * Defines a recurring payment type. Allowed values: * `Subscription` – A transaction - * for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With - * a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – - * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. - * - * @return supportedRecurringProcessingModels Defines a recurring payment type. Allowed values: * - * `Subscription` – A transaction for a fixed or variable amount, which follows a - * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card - * details are stored to enable one-click or omnichannel journeys, or simply to streamline the - * checkout process. Any subscription not following a fixed schedule is also considered a - * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file - * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have - * variable amounts. For example, automatic top-ups when a cardholder's balance drops - * below a certain amount. + * Defines a recurring payment type. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * @return supportedRecurringProcessingModels Defines a recurring payment type. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_SUPPORTED_RECURRING_PROCESSING_MODELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -691,29 +614,13 @@ public List getSupportedRecurringProcessingModels() { } /** - * Defines a recurring payment type. Allowed values: * `Subscription` – A transaction - * for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With - * a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – - * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. + * Defines a recurring payment type. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. * - * @param supportedRecurringProcessingModels Defines a recurring payment type. Allowed values: * - * `Subscription` – A transaction for a fixed or variable amount, which follows a - * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card - * details are stored to enable one-click or omnichannel journeys, or simply to streamline the - * checkout process. Any subscription not following a fixed schedule is also considered a - * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file - * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have - * variable amounts. For example, automatic top-ups when a cardholder's balance drops - * below a certain amount. + * @param supportedRecurringProcessingModels Defines a recurring payment type. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_SUPPORTED_RECURRING_PROCESSING_MODELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSupportedRecurringProcessingModels( - List supportedRecurringProcessingModels) { + public void setSupportedRecurringProcessingModels(List supportedRecurringProcessingModels) { this.supportedRecurringProcessingModels = supportedRecurringProcessingModels; } @@ -730,7 +637,6 @@ public StoredPaymentMethodResource type(String type) { /** * The type of payment method. - * * @return type The type of payment method. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -750,7 +656,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this StoredPaymentMethodResource object is equal to o. */ + /** + * Return true if this StoredPaymentMethodResource object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -760,49 +668,28 @@ public boolean equals(Object o) { return false; } StoredPaymentMethodResource storedPaymentMethodResource = (StoredPaymentMethodResource) o; - return Objects.equals(this.brand, storedPaymentMethodResource.brand) - && Objects.equals(this.expiryMonth, storedPaymentMethodResource.expiryMonth) - && Objects.equals(this.expiryYear, storedPaymentMethodResource.expiryYear) - && Objects.equals( - this.externalResponseCode, storedPaymentMethodResource.externalResponseCode) - && Objects.equals( - this.externalTokenReference, storedPaymentMethodResource.externalTokenReference) - && Objects.equals(this.holderName, storedPaymentMethodResource.holderName) - && Objects.equals(this.iban, storedPaymentMethodResource.iban) - && Objects.equals(this.id, storedPaymentMethodResource.id) - && Objects.equals(this.issuerName, storedPaymentMethodResource.issuerName) - && Objects.equals(this.lastFour, storedPaymentMethodResource.lastFour) - && Objects.equals(this.name, storedPaymentMethodResource.name) - && Objects.equals(this.networkTxReference, storedPaymentMethodResource.networkTxReference) - && Objects.equals(this.ownerName, storedPaymentMethodResource.ownerName) - && Objects.equals(this.shopperEmail, storedPaymentMethodResource.shopperEmail) - && Objects.equals(this.shopperReference, storedPaymentMethodResource.shopperReference) - && Objects.equals( - this.supportedRecurringProcessingModels, - storedPaymentMethodResource.supportedRecurringProcessingModels) - && Objects.equals(this.type, storedPaymentMethodResource.type); + return Objects.equals(this.brand, storedPaymentMethodResource.brand) && + Objects.equals(this.expiryMonth, storedPaymentMethodResource.expiryMonth) && + Objects.equals(this.expiryYear, storedPaymentMethodResource.expiryYear) && + Objects.equals(this.externalResponseCode, storedPaymentMethodResource.externalResponseCode) && + Objects.equals(this.externalTokenReference, storedPaymentMethodResource.externalTokenReference) && + Objects.equals(this.holderName, storedPaymentMethodResource.holderName) && + Objects.equals(this.iban, storedPaymentMethodResource.iban) && + Objects.equals(this.id, storedPaymentMethodResource.id) && + Objects.equals(this.issuerName, storedPaymentMethodResource.issuerName) && + Objects.equals(this.lastFour, storedPaymentMethodResource.lastFour) && + Objects.equals(this.name, storedPaymentMethodResource.name) && + Objects.equals(this.networkTxReference, storedPaymentMethodResource.networkTxReference) && + Objects.equals(this.ownerName, storedPaymentMethodResource.ownerName) && + Objects.equals(this.shopperEmail, storedPaymentMethodResource.shopperEmail) && + Objects.equals(this.shopperReference, storedPaymentMethodResource.shopperReference) && + Objects.equals(this.supportedRecurringProcessingModels, storedPaymentMethodResource.supportedRecurringProcessingModels) && + Objects.equals(this.type, storedPaymentMethodResource.type); } @Override public int hashCode() { - return Objects.hash( - brand, - expiryMonth, - expiryYear, - externalResponseCode, - externalTokenReference, - holderName, - iban, - id, - issuerName, - lastFour, - name, - networkTxReference, - ownerName, - shopperEmail, - shopperReference, - supportedRecurringProcessingModels, - type); + return Objects.hash(brand, expiryMonth, expiryYear, externalResponseCode, externalTokenReference, holderName, iban, id, issuerName, lastFour, name, networkTxReference, ownerName, shopperEmail, shopperReference, supportedRecurringProcessingModels, type); } @Override @@ -812,12 +699,8 @@ public String toString() { sb.append(" brand: ").append(toIndentedString(brand)).append("\n"); sb.append(" expiryMonth: ").append(toIndentedString(expiryMonth)).append("\n"); sb.append(" expiryYear: ").append(toIndentedString(expiryYear)).append("\n"); - sb.append(" externalResponseCode: ") - .append(toIndentedString(externalResponseCode)) - .append("\n"); - sb.append(" externalTokenReference: ") - .append(toIndentedString(externalTokenReference)) - .append("\n"); + sb.append(" externalResponseCode: ").append(toIndentedString(externalResponseCode)).append("\n"); + sb.append(" externalTokenReference: ").append(toIndentedString(externalTokenReference)).append("\n"); sb.append(" holderName: ").append(toIndentedString(holderName)).append("\n"); sb.append(" iban: ").append(toIndentedString(iban)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); @@ -828,16 +711,15 @@ public String toString() { sb.append(" ownerName: ").append(toIndentedString(ownerName)).append("\n"); sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); - sb.append(" supportedRecurringProcessingModels: ") - .append(toIndentedString(supportedRecurringProcessingModels)) - .append("\n"); + sb.append(" supportedRecurringProcessingModels: ").append(toIndentedString(supportedRecurringProcessingModels)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -846,24 +728,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of StoredPaymentMethodResource given an JSON string * * @param jsonString JSON string * @return An instance of StoredPaymentMethodResource - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoredPaymentMethodResource + * @throws JsonProcessingException if the JSON string is invalid with respect to StoredPaymentMethodResource */ - public static StoredPaymentMethodResource fromJson(String jsonString) - throws JsonProcessingException { + public static StoredPaymentMethodResource fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoredPaymentMethodResource.class); } - - /** - * Convert an instance of StoredPaymentMethodResource to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of StoredPaymentMethodResource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/SubInputDetail.java b/src/main/java/com/adyen/model/checkout/SubInputDetail.java index eb296ac31..624a39fdb 100644 --- a/src/main/java/com/adyen/model/checkout/SubInputDetail.java +++ b/src/main/java/com/adyen/model/checkout/SubInputDetail.java @@ -2,26 +2,36 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Item; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** SubInputDetail */ +/** + * SubInputDetail + */ @JsonPropertyOrder({ SubInputDetail.JSON_PROPERTY_CONFIGURATION, SubInputDetail.JSON_PROPERTY_ITEMS, @@ -30,6 +40,7 @@ SubInputDetail.JSON_PROPERTY_TYPE, SubInputDetail.JSON_PROPERTY_VALUE }) + public class SubInputDetail { public static final String JSON_PROPERTY_CONFIGURATION = "configuration"; private Map configuration; @@ -49,7 +60,8 @@ public class SubInputDetail { public static final String JSON_PROPERTY_VALUE = "value"; private String value; - public SubInputDetail() {} + public SubInputDetail() { + } /** * Configuration parameters for the required input. @@ -72,7 +84,6 @@ public SubInputDetail putConfigurationItem(String key, String configurationItem) /** * Configuration parameters for the required input. - * * @return configuration Configuration parameters for the required input. */ @JsonProperty(JSON_PROPERTY_CONFIGURATION) @@ -113,7 +124,6 @@ public SubInputDetail addItemsItem(Item itemsItem) { /** * In case of a select, the items to choose from. - * * @return items In case of a select, the items to choose from. */ @JsonProperty(JSON_PROPERTY_ITEMS) @@ -146,7 +156,6 @@ public SubInputDetail key(String key) { /** * The value to provide in the result. - * * @return key The value to provide in the result. */ @JsonProperty(JSON_PROPERTY_KEY) @@ -179,7 +188,6 @@ public SubInputDetail optional(Boolean optional) { /** * True if this input is optional to provide. - * * @return optional True if this input is optional to provide. */ @JsonProperty(JSON_PROPERTY_OPTIONAL) @@ -212,7 +220,6 @@ public SubInputDetail type(String type) { /** * The type of the required input. - * * @return type The type of the required input. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -245,7 +252,6 @@ public SubInputDetail value(String value) { /** * The value can be pre-filled, if available. - * * @return value The value can be pre-filled, if available. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -265,7 +271,9 @@ public void setValue(String value) { this.value = value; } - /** Return true if this SubInputDetail object is equal to o. */ + /** + * Return true if this SubInputDetail object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -275,12 +283,12 @@ public boolean equals(Object o) { return false; } SubInputDetail subInputDetail = (SubInputDetail) o; - return Objects.equals(this.configuration, subInputDetail.configuration) - && Objects.equals(this.items, subInputDetail.items) - && Objects.equals(this.key, subInputDetail.key) - && Objects.equals(this.optional, subInputDetail.optional) - && Objects.equals(this.type, subInputDetail.type) - && Objects.equals(this.value, subInputDetail.value); + return Objects.equals(this.configuration, subInputDetail.configuration) && + Objects.equals(this.items, subInputDetail.items) && + Objects.equals(this.key, subInputDetail.key) && + Objects.equals(this.optional, subInputDetail.optional) && + Objects.equals(this.type, subInputDetail.type) && + Objects.equals(this.value, subInputDetail.value); } @Override @@ -303,7 +311,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -312,7 +321,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SubInputDetail given an JSON string * * @param jsonString JSON string @@ -322,12 +331,11 @@ private String toIndentedString(Object o) { public static SubInputDetail fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SubInputDetail.class); } - - /** - * Convert an instance of SubInputDetail to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SubInputDetail to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/SubMerchant.java b/src/main/java/com/adyen/model/checkout/SubMerchant.java index be16e3e08..c264f2cde 100644 --- a/src/main/java/com/adyen/model/checkout/SubMerchant.java +++ b/src/main/java/com/adyen/model/checkout/SubMerchant.java @@ -2,22 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** SubMerchant */ + +/** + * SubMerchant + */ @JsonPropertyOrder({ SubMerchant.JSON_PROPERTY_CITY, SubMerchant.JSON_PROPERTY_COUNTRY, @@ -25,6 +34,7 @@ SubMerchant.JSON_PROPERTY_NAME, SubMerchant.JSON_PROPERTY_TAX_ID }) + public class SubMerchant { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -41,14 +51,13 @@ public class SubMerchant { public static final String JSON_PROPERTY_TAX_ID = "taxId"; private String taxId; - public SubMerchant() {} + public SubMerchant() { + } /** - * The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 - * characters + * The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters * - * @param city The city of the sub-merchant's address. * Format: Alphanumeric * Maximum - * length: 13 characters + * @param city The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters * @return the current {@code SubMerchant} instance, allowing for method chaining */ public SubMerchant city(String city) { @@ -57,11 +66,8 @@ public SubMerchant city(String city) { } /** - * The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 - * characters - * - * @return city The city of the sub-merchant's address. * Format: Alphanumeric * Maximum - * length: 13 characters + * The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters + * @return city The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters */ @JsonProperty(JSON_PROPERTY_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,11 +76,9 @@ public String getCity() { } /** - * The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 - * characters + * The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters * - * @param city The city of the sub-merchant's address. * Format: Alphanumeric * Maximum - * length: 13 characters + * @param city The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters */ @JsonProperty(JSON_PROPERTY_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,13 +87,9 @@ public void setCity(String city) { } /** - * The three-letter country code of the sub-merchant's address. For example, **BRA** for - * Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * - * Fixed length: 3 characters + * The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters * - * @param country The three-letter country code of the sub-merchant's address. For example, - * **BRA** for Brazil. * Format: [ISO 3166-1 - * alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * @param country The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters * @return the current {@code SubMerchant} instance, allowing for method chaining */ public SubMerchant country(String country) { @@ -98,13 +98,8 @@ public SubMerchant country(String country) { } /** - * The three-letter country code of the sub-merchant's address. For example, **BRA** for - * Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * - * Fixed length: 3 characters - * - * @return country The three-letter country code of the sub-merchant's address. For example, - * **BRA** for Brazil. * Format: [ISO 3166-1 - * alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * @return country The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,13 +108,9 @@ public String getCountry() { } /** - * The three-letter country code of the sub-merchant's address. For example, **BRA** for - * Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * - * Fixed length: 3 characters + * The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters * - * @param country The three-letter country code of the sub-merchant's address. For example, - * **BRA** for Brazil. * Format: [ISO 3166-1 - * alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * @param country The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,11 +119,9 @@ public void setCountry(String country) { } /** - * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: - * 4 digits + * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits * - * @param mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * - * Fixed length: 4 digits + * @param mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits * @return the current {@code SubMerchant} instance, allowing for method chaining */ public SubMerchant mcc(String mcc) { @@ -141,11 +130,8 @@ public SubMerchant mcc(String mcc) { } /** - * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: - * 4 digits - * - * @return mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * - * Fixed length: 4 digits + * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * @return mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -154,11 +140,9 @@ public String getMcc() { } /** - * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: - * 4 digits + * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits * - * @param mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * - * Fixed length: 4 digits + * @param mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,13 +151,9 @@ public void setMcc(String mcc) { } /** - * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the - * shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum - * length: 22 characters + * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters * - * @param name The name of the sub-merchant. Based on scheme specifications, this value will - * overwrite the shopper statement that will appear in the card statement. * Format: - * Alphanumeric * Maximum length: 22 characters + * @param name The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters * @return the current {@code SubMerchant} instance, allowing for method chaining */ public SubMerchant name(String name) { @@ -182,13 +162,8 @@ public SubMerchant name(String name) { } /** - * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the - * shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum - * length: 22 characters - * - * @return name The name of the sub-merchant. Based on scheme specifications, this value will - * overwrite the shopper statement that will appear in the card statement. * Format: - * Alphanumeric * Maximum length: 22 characters + * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters + * @return name The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -197,13 +172,9 @@ public String getName() { } /** - * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the - * shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum - * length: 22 characters + * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters * - * @param name The name of the sub-merchant. Based on scheme specifications, this value will - * overwrite the shopper statement that will appear in the card statement. * Format: - * Alphanumeric * Maximum length: 22 characters + * @param name The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -212,11 +183,9 @@ public void setName(String name) { } /** - * The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 - * digits for the CNPJ + * The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ * - * @param taxId The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for - * the CPF or 14 digits for the CNPJ + * @param taxId The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ * @return the current {@code SubMerchant} instance, allowing for method chaining */ public SubMerchant taxId(String taxId) { @@ -225,11 +194,8 @@ public SubMerchant taxId(String taxId) { } /** - * The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 - * digits for the CNPJ - * - * @return taxId The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for - * the CPF or 14 digits for the CNPJ + * The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * @return taxId The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ */ @JsonProperty(JSON_PROPERTY_TAX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -238,11 +204,9 @@ public String getTaxId() { } /** - * The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 - * digits for the CNPJ + * The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ * - * @param taxId The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for - * the CPF or 14 digits for the CNPJ + * @param taxId The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ */ @JsonProperty(JSON_PROPERTY_TAX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,7 +214,9 @@ public void setTaxId(String taxId) { this.taxId = taxId; } - /** Return true if this SubMerchant object is equal to o. */ + /** + * Return true if this SubMerchant object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -260,11 +226,11 @@ public boolean equals(Object o) { return false; } SubMerchant subMerchant = (SubMerchant) o; - return Objects.equals(this.city, subMerchant.city) - && Objects.equals(this.country, subMerchant.country) - && Objects.equals(this.mcc, subMerchant.mcc) - && Objects.equals(this.name, subMerchant.name) - && Objects.equals(this.taxId, subMerchant.taxId); + return Objects.equals(this.city, subMerchant.city) && + Objects.equals(this.country, subMerchant.country) && + Objects.equals(this.mcc, subMerchant.mcc) && + Objects.equals(this.name, subMerchant.name) && + Objects.equals(this.taxId, subMerchant.taxId); } @Override @@ -286,7 +252,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -295,7 +262,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SubMerchant given an JSON string * * @param jsonString JSON string @@ -305,12 +272,11 @@ private String toIndentedString(Object o) { public static SubMerchant fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SubMerchant.class); } - - /** - * Convert an instance of SubMerchant to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SubMerchant to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/SubMerchantInfo.java b/src/main/java/com/adyen/model/checkout/SubMerchantInfo.java index 9cdb9eb25..d4b028f6b 100644 --- a/src/main/java/com/adyen/model/checkout/SubMerchantInfo.java +++ b/src/main/java/com/adyen/model/checkout/SubMerchantInfo.java @@ -2,22 +2,33 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Amount; +import com.adyen.model.checkout.BillingAddress; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** SubMerchantInfo */ + +/** + * SubMerchantInfo + */ @JsonPropertyOrder({ SubMerchantInfo.JSON_PROPERTY_ADDRESS, SubMerchantInfo.JSON_PROPERTY_AMOUNT, @@ -30,6 +41,7 @@ SubMerchantInfo.JSON_PROPERTY_TAX_ID, SubMerchantInfo.JSON_PROPERTY_URL }) + public class SubMerchantInfo { public static final String JSON_PROPERTY_ADDRESS = "address"; private BillingAddress address; @@ -61,12 +73,13 @@ public class SubMerchantInfo { public static final String JSON_PROPERTY_URL = "url"; private String url; - public SubMerchantInfo() {} + public SubMerchantInfo() { + } /** * address * - * @param address + * @param address * @return the current {@code SubMerchantInfo} instance, allowing for method chaining */ public SubMerchantInfo address(BillingAddress address) { @@ -76,8 +89,7 @@ public SubMerchantInfo address(BillingAddress address) { /** * Get address - * - * @return address + * @return address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -88,7 +100,7 @@ public BillingAddress getAddress() { /** * address * - * @param address + * @param address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,7 +111,7 @@ public void setAddress(BillingAddress address) { /** * amount * - * @param amount + * @param amount * @return the current {@code SubMerchantInfo} instance, allowing for method chaining */ public SubMerchantInfo amount(Amount amount) { @@ -109,8 +121,7 @@ public SubMerchantInfo amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,7 +132,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -130,11 +141,9 @@ public void setAmount(Amount amount) { } /** - * Required for transactions performed by registered payment facilitators. The email associated - * with the sub-merchant's account. + * Required for transactions performed by registered payment facilitators. The email associated with the sub-merchant's account. * - * @param email Required for transactions performed by registered payment facilitators. The email - * associated with the sub-merchant's account. + * @param email Required for transactions performed by registered payment facilitators. The email associated with the sub-merchant's account. * @return the current {@code SubMerchantInfo} instance, allowing for method chaining */ public SubMerchantInfo email(String email) { @@ -143,11 +152,8 @@ public SubMerchantInfo email(String email) { } /** - * Required for transactions performed by registered payment facilitators. The email associated - * with the sub-merchant's account. - * - * @return email Required for transactions performed by registered payment facilitators. The email - * associated with the sub-merchant's account. + * Required for transactions performed by registered payment facilitators. The email associated with the sub-merchant's account. + * @return email Required for transactions performed by registered payment facilitators. The email associated with the sub-merchant's account. */ @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,11 +162,9 @@ public String getEmail() { } /** - * Required for transactions performed by registered payment facilitators. The email associated - * with the sub-merchant's account. + * Required for transactions performed by registered payment facilitators. The email associated with the sub-merchant's account. * - * @param email Required for transactions performed by registered payment facilitators. The email - * associated with the sub-merchant's account. + * @param email Required for transactions performed by registered payment facilitators. The email associated with the sub-merchant's account. */ @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,13 +173,9 @@ public void setEmail(String email) { } /** - * Required for transactions performed by registered payment facilitators. A unique identifier - * that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: - * Alphanumeric * Maximum length: 15 characters + * Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters * - * @param id Required for transactions performed by registered payment facilitators. A unique - * identifier that you create for the sub-merchant, used by schemes to identify the - * sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * @param id Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters * @return the current {@code SubMerchantInfo} instance, allowing for method chaining */ public SubMerchantInfo id(String id) { @@ -184,13 +184,8 @@ public SubMerchantInfo id(String id) { } /** - * Required for transactions performed by registered payment facilitators. A unique identifier - * that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: - * Alphanumeric * Maximum length: 15 characters - * - * @return id Required for transactions performed by registered payment facilitators. A unique - * identifier that you create for the sub-merchant, used by schemes to identify the - * sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * @return id Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -199,13 +194,9 @@ public String getId() { } /** - * Required for transactions performed by registered payment facilitators. A unique identifier - * that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: - * Alphanumeric * Maximum length: 15 characters + * Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters * - * @param id Required for transactions performed by registered payment facilitators. A unique - * identifier that you create for the sub-merchant, used by schemes to identify the - * sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * @param id Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,12 +205,9 @@ public void setId(String id) { } /** - * Required for transactions performed by registered payment facilitators. The sub-merchant's - * 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits * - * @param mcc Required for transactions performed by registered payment facilitators. The - * sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: - * 4 digits + * @param mcc Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits * @return the current {@code SubMerchantInfo} instance, allowing for method chaining */ public SubMerchantInfo mcc(String mcc) { @@ -228,12 +216,8 @@ public SubMerchantInfo mcc(String mcc) { } /** - * Required for transactions performed by registered payment facilitators. The sub-merchant's - * 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits - * - * @return mcc Required for transactions performed by registered payment facilitators. The - * sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: - * 4 digits + * Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * @return mcc Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,12 +226,9 @@ public String getMcc() { } /** - * Required for transactions performed by registered payment facilitators. The sub-merchant's - * 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits * - * @param mcc Required for transactions performed by registered payment facilitators. The - * sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: - * 4 digits + * @param mcc Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -256,16 +237,9 @@ public void setMcc(String mcc) { } /** - * Required for transactions performed by registered payment facilitators. The name of the - * sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement - * that will appear in the card statement. Exception: for acquirers in Brazil, this value does not - * overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters + * Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters * - * @param name Required for transactions performed by registered payment facilitators. The name of - * the sub-merchant. Based on scheme specifications, this value will overwrite the shopper - * statement that will appear in the card statement. Exception: for acquirers in Brazil, this - * value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 - * characters + * @param name Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters * @return the current {@code SubMerchantInfo} instance, allowing for method chaining */ public SubMerchantInfo name(String name) { @@ -274,16 +248,8 @@ public SubMerchantInfo name(String name) { } /** - * Required for transactions performed by registered payment facilitators. The name of the - * sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement - * that will appear in the card statement. Exception: for acquirers in Brazil, this value does not - * overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters - * - * @return name Required for transactions performed by registered payment facilitators. The name - * of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper - * statement that will appear in the card statement. Exception: for acquirers in Brazil, this - * value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 - * characters + * Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters + * @return name Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -292,16 +258,9 @@ public String getName() { } /** - * Required for transactions performed by registered payment facilitators. The name of the - * sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement - * that will appear in the card statement. Exception: for acquirers in Brazil, this value does not - * overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters + * Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters * - * @param name Required for transactions performed by registered payment facilitators. The name of - * the sub-merchant. Based on scheme specifications, this value will overwrite the shopper - * statement that will appear in the card statement. Exception: for acquirers in Brazil, this - * value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 - * characters + * @param name Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -310,11 +269,9 @@ public void setName(String name) { } /** - * Required for transactions performed by registered payment facilitators. The phone number - * associated with the sub-merchant's account. + * Required for transactions performed by registered payment facilitators. The phone number associated with the sub-merchant's account. * - * @param phoneNumber Required for transactions performed by registered payment facilitators. The - * phone number associated with the sub-merchant's account. + * @param phoneNumber Required for transactions performed by registered payment facilitators. The phone number associated with the sub-merchant's account. * @return the current {@code SubMerchantInfo} instance, allowing for method chaining */ public SubMerchantInfo phoneNumber(String phoneNumber) { @@ -323,11 +280,8 @@ public SubMerchantInfo phoneNumber(String phoneNumber) { } /** - * Required for transactions performed by registered payment facilitators. The phone number - * associated with the sub-merchant's account. - * - * @return phoneNumber Required for transactions performed by registered payment facilitators. The - * phone number associated with the sub-merchant's account. + * Required for transactions performed by registered payment facilitators. The phone number associated with the sub-merchant's account. + * @return phoneNumber Required for transactions performed by registered payment facilitators. The phone number associated with the sub-merchant's account. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -336,11 +290,9 @@ public String getPhoneNumber() { } /** - * Required for transactions performed by registered payment facilitators. The phone number - * associated with the sub-merchant's account. + * Required for transactions performed by registered payment facilitators. The phone number associated with the sub-merchant's account. * - * @param phoneNumber Required for transactions performed by registered payment facilitators. The - * phone number associated with the sub-merchant's account. + * @param phoneNumber Required for transactions performed by registered payment facilitators. The phone number associated with the sub-merchant's account. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -351,7 +303,7 @@ public void setPhoneNumber(String phoneNumber) { /** * registeredSince * - * @param registeredSince + * @param registeredSince * @return the current {@code SubMerchantInfo} instance, allowing for method chaining */ public SubMerchantInfo registeredSince(String registeredSince) { @@ -361,8 +313,7 @@ public SubMerchantInfo registeredSince(String registeredSince) { /** * Get registeredSince - * - * @return registeredSince + * @return registeredSince */ @JsonProperty(JSON_PROPERTY_REGISTERED_SINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -373,7 +324,7 @@ public String getRegisteredSince() { /** * registeredSince * - * @param registeredSince + * @param registeredSince */ @JsonProperty(JSON_PROPERTY_REGISTERED_SINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -382,12 +333,9 @@ public void setRegisteredSince(String registeredSince) { } /** - * Required for transactions performed by registered payment facilitators. The tax ID of the - * sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ * - * @param taxId Required for transactions performed by registered payment facilitators. The tax ID - * of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits - * for the CNPJ + * @param taxId Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ * @return the current {@code SubMerchantInfo} instance, allowing for method chaining */ public SubMerchantInfo taxId(String taxId) { @@ -396,12 +344,8 @@ public SubMerchantInfo taxId(String taxId) { } /** - * Required for transactions performed by registered payment facilitators. The tax ID of the - * sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ - * - * @return taxId Required for transactions performed by registered payment facilitators. The tax - * ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 - * digits for the CNPJ + * Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * @return taxId Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ */ @JsonProperty(JSON_PROPERTY_TAX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -410,12 +354,9 @@ public String getTaxId() { } /** - * Required for transactions performed by registered payment facilitators. The tax ID of the - * sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ * - * @param taxId Required for transactions performed by registered payment facilitators. The tax ID - * of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits - * for the CNPJ + * @param taxId Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ */ @JsonProperty(JSON_PROPERTY_TAX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -424,11 +365,9 @@ public void setTaxId(String taxId) { } /** - * Required for transactions performed by registered payment facilitators. The sub-merchant's - * URL on the platform, i.e. the sub-merchant's shop. + * Required for transactions performed by registered payment facilitators. The sub-merchant's URL on the platform, i.e. the sub-merchant's shop. * - * @param url Required for transactions performed by registered payment facilitators. The - * sub-merchant's URL on the platform, i.e. the sub-merchant's shop. + * @param url Required for transactions performed by registered payment facilitators. The sub-merchant's URL on the platform, i.e. the sub-merchant's shop. * @return the current {@code SubMerchantInfo} instance, allowing for method chaining */ public SubMerchantInfo url(String url) { @@ -437,11 +376,8 @@ public SubMerchantInfo url(String url) { } /** - * Required for transactions performed by registered payment facilitators. The sub-merchant's - * URL on the platform, i.e. the sub-merchant's shop. - * - * @return url Required for transactions performed by registered payment facilitators. The - * sub-merchant's URL on the platform, i.e. the sub-merchant's shop. + * Required for transactions performed by registered payment facilitators. The sub-merchant's URL on the platform, i.e. the sub-merchant's shop. + * @return url Required for transactions performed by registered payment facilitators. The sub-merchant's URL on the platform, i.e. the sub-merchant's shop. */ @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -450,11 +386,9 @@ public String getUrl() { } /** - * Required for transactions performed by registered payment facilitators. The sub-merchant's - * URL on the platform, i.e. the sub-merchant's shop. + * Required for transactions performed by registered payment facilitators. The sub-merchant's URL on the platform, i.e. the sub-merchant's shop. * - * @param url Required for transactions performed by registered payment facilitators. The - * sub-merchant's URL on the platform, i.e. the sub-merchant's shop. + * @param url Required for transactions performed by registered payment facilitators. The sub-merchant's URL on the platform, i.e. the sub-merchant's shop. */ @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -462,7 +396,9 @@ public void setUrl(String url) { this.url = url; } - /** Return true if this SubMerchantInfo object is equal to o. */ + /** + * Return true if this SubMerchantInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -472,22 +408,21 @@ public boolean equals(Object o) { return false; } SubMerchantInfo subMerchantInfo = (SubMerchantInfo) o; - return Objects.equals(this.address, subMerchantInfo.address) - && Objects.equals(this.amount, subMerchantInfo.amount) - && Objects.equals(this.email, subMerchantInfo.email) - && Objects.equals(this.id, subMerchantInfo.id) - && Objects.equals(this.mcc, subMerchantInfo.mcc) - && Objects.equals(this.name, subMerchantInfo.name) - && Objects.equals(this.phoneNumber, subMerchantInfo.phoneNumber) - && Objects.equals(this.registeredSince, subMerchantInfo.registeredSince) - && Objects.equals(this.taxId, subMerchantInfo.taxId) - && Objects.equals(this.url, subMerchantInfo.url); + return Objects.equals(this.address, subMerchantInfo.address) && + Objects.equals(this.amount, subMerchantInfo.amount) && + Objects.equals(this.email, subMerchantInfo.email) && + Objects.equals(this.id, subMerchantInfo.id) && + Objects.equals(this.mcc, subMerchantInfo.mcc) && + Objects.equals(this.name, subMerchantInfo.name) && + Objects.equals(this.phoneNumber, subMerchantInfo.phoneNumber) && + Objects.equals(this.registeredSince, subMerchantInfo.registeredSince) && + Objects.equals(this.taxId, subMerchantInfo.taxId) && + Objects.equals(this.url, subMerchantInfo.url); } @Override public int hashCode() { - return Objects.hash( - address, amount, email, id, mcc, name, phoneNumber, registeredSince, taxId, url); + return Objects.hash(address, amount, email, id, mcc, name, phoneNumber, registeredSince, taxId, url); } @Override @@ -509,7 +444,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -518,7 +454,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SubMerchantInfo given an JSON string * * @param jsonString JSON string @@ -528,12 +464,11 @@ private String toIndentedString(Object o) { public static SubMerchantInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SubMerchantInfo.class); } - - /** - * Convert an instance of SubMerchantInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SubMerchantInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Surcharge.java b/src/main/java/com/adyen/model/checkout/Surcharge.java index 0ae6704cf..862c04dc3 100644 --- a/src/main/java/com/adyen/model/checkout/Surcharge.java +++ b/src/main/java/com/adyen/model/checkout/Surcharge.java @@ -2,44 +2,46 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Surcharge */ -@JsonPropertyOrder({Surcharge.JSON_PROPERTY_VALUE}) + +/** + * Surcharge + */ +@JsonPropertyOrder({ + Surcharge.JSON_PROPERTY_VALUE +}) + public class Surcharge { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Surcharge() {} + public Surcharge() { + } /** - * The [surcharge](https://docs.adyen.com/online-payments/surcharge/) amount to apply to the - * transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). - * When you apply surcharge, include the surcharge in the `amount.value` field. Review - * our [Surcharge compliance - * guide](https://docs.adyen.com/development-resources/surcharge-compliance/) to learn about how - * to comply with regulatory requirements when applying surcharge. + * The [surcharge](https://docs.adyen.com/online-payments/surcharge/) amount to apply to the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). When you apply surcharge, include the surcharge in the `amount.value` field. Review our [Surcharge compliance guide](https://docs.adyen.com/development-resources/surcharge-compliance/) to learn about how to comply with regulatory requirements when applying surcharge. * - * @param value The [surcharge](https://docs.adyen.com/online-payments/surcharge/) amount to apply - * to the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). When you apply - * surcharge, include the surcharge in the `amount.value` field. Review our - * [Surcharge compliance - * guide](https://docs.adyen.com/development-resources/surcharge-compliance/) to learn about - * how to comply with regulatory requirements when applying surcharge. + * @param value The [surcharge](https://docs.adyen.com/online-payments/surcharge/) amount to apply to the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). When you apply surcharge, include the surcharge in the `amount.value` field. Review our [Surcharge compliance guide](https://docs.adyen.com/development-resources/surcharge-compliance/) to learn about how to comply with regulatory requirements when applying surcharge. * @return the current {@code Surcharge} instance, allowing for method chaining */ public Surcharge value(Long value) { @@ -48,20 +50,8 @@ public Surcharge value(Long value) { } /** - * The [surcharge](https://docs.adyen.com/online-payments/surcharge/) amount to apply to the - * transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). - * When you apply surcharge, include the surcharge in the `amount.value` field. Review - * our [Surcharge compliance - * guide](https://docs.adyen.com/development-resources/surcharge-compliance/) to learn about how - * to comply with regulatory requirements when applying surcharge. - * - * @return value The [surcharge](https://docs.adyen.com/online-payments/surcharge/) amount to - * apply to the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). When you apply - * surcharge, include the surcharge in the `amount.value` field. Review our - * [Surcharge compliance - * guide](https://docs.adyen.com/development-resources/surcharge-compliance/) to learn about - * how to comply with regulatory requirements when applying surcharge. + * The [surcharge](https://docs.adyen.com/online-payments/surcharge/) amount to apply to the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). When you apply surcharge, include the surcharge in the `amount.value` field. Review our [Surcharge compliance guide](https://docs.adyen.com/development-resources/surcharge-compliance/) to learn about how to comply with regulatory requirements when applying surcharge. + * @return value The [surcharge](https://docs.adyen.com/online-payments/surcharge/) amount to apply to the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). When you apply surcharge, include the surcharge in the `amount.value` field. Review our [Surcharge compliance guide](https://docs.adyen.com/development-resources/surcharge-compliance/) to learn about how to comply with regulatory requirements when applying surcharge. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,20 +60,9 @@ public Long getValue() { } /** - * The [surcharge](https://docs.adyen.com/online-payments/surcharge/) amount to apply to the - * transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). - * When you apply surcharge, include the surcharge in the `amount.value` field. Review - * our [Surcharge compliance - * guide](https://docs.adyen.com/development-resources/surcharge-compliance/) to learn about how - * to comply with regulatory requirements when applying surcharge. + * The [surcharge](https://docs.adyen.com/online-payments/surcharge/) amount to apply to the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). When you apply surcharge, include the surcharge in the `amount.value` field. Review our [Surcharge compliance guide](https://docs.adyen.com/development-resources/surcharge-compliance/) to learn about how to comply with regulatory requirements when applying surcharge. * - * @param value The [surcharge](https://docs.adyen.com/online-payments/surcharge/) amount to apply - * to the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). When you apply - * surcharge, include the surcharge in the `amount.value` field. Review our - * [Surcharge compliance - * guide](https://docs.adyen.com/development-resources/surcharge-compliance/) to learn about - * how to comply with regulatory requirements when applying surcharge. + * @param value The [surcharge](https://docs.adyen.com/online-payments/surcharge/) amount to apply to the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). When you apply surcharge, include the surcharge in the `amount.value` field. Review our [Surcharge compliance guide](https://docs.adyen.com/development-resources/surcharge-compliance/) to learn about how to comply with regulatory requirements when applying surcharge. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -91,7 +70,9 @@ public void setValue(Long value) { this.value = value; } - /** Return true if this Surcharge object is equal to o. */ + /** + * Return true if this Surcharge object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -119,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -128,7 +110,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Surcharge given an JSON string * * @param jsonString JSON string @@ -138,12 +120,11 @@ private String toIndentedString(Object o) { public static Surcharge fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Surcharge.class); } - - /** - * Convert an instance of Surcharge to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Surcharge to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/TaxTotal.java b/src/main/java/com/adyen/model/checkout/TaxTotal.java index a97781446..de8a5c36d 100644 --- a/src/main/java/com/adyen/model/checkout/TaxTotal.java +++ b/src/main/java/com/adyen/model/checkout/TaxTotal.java @@ -2,33 +2,47 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TaxTotal */ -@JsonPropertyOrder({TaxTotal.JSON_PROPERTY_AMOUNT}) + +/** + * TaxTotal + */ +@JsonPropertyOrder({ + TaxTotal.JSON_PROPERTY_AMOUNT +}) + public class TaxTotal { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; - public TaxTotal() {} + public TaxTotal() { + } /** * amount * - * @param amount + * @param amount * @return the current {@code TaxTotal} instance, allowing for method chaining */ public TaxTotal amount(Amount amount) { @@ -38,8 +52,7 @@ public TaxTotal amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -50,7 +63,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,7 +71,9 @@ public void setAmount(Amount amount) { this.amount = amount; } - /** Return true if this TaxTotal object is equal to o. */ + /** + * Return true if this TaxTotal object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,7 +101,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,7 +111,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TaxTotal given an JSON string * * @param jsonString JSON string @@ -105,12 +121,11 @@ private String toIndentedString(Object o) { public static TaxTotal fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TaxTotal.class); } - - /** - * Convert an instance of TaxTotal to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TaxTotal to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ThreeDS2RequestData.java b/src/main/java/com/adyen/model/checkout/ThreeDS2RequestData.java index 7eee2029a..9604c2e7f 100644 --- a/src/main/java/com/adyen/model/checkout/ThreeDS2RequestData.java +++ b/src/main/java/com/adyen/model/checkout/ThreeDS2RequestData.java @@ -2,26 +2,37 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.AcctInfo; +import com.adyen.model.checkout.DeviceRenderOptions; +import com.adyen.model.checkout.Phone; +import com.adyen.model.checkout.SDKEphemPubKey; +import com.adyen.model.checkout.ThreeDSRequestorAuthenticationInfo; +import com.adyen.model.checkout.ThreeDSRequestorPriorAuthenticationInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ThreeDS2RequestData */ +/** + * ThreeDS2RequestData + */ @JsonPropertyOrder({ ThreeDS2RequestData.JSON_PROPERTY_ACCT_INFO, ThreeDS2RequestData.JSON_PROPERTY_ACCT_TYPE, @@ -63,15 +74,16 @@ ThreeDS2RequestData.JSON_PROPERTY_WHITE_LIST_STATUS, ThreeDS2RequestData.JSON_PROPERTY_WORK_PHONE }) + public class ThreeDS2RequestData { public static final String JSON_PROPERTY_ACCT_INFO = "acctInfo"; private AcctInfo acctInfo; /** - * Indicates the type of account. For example, for a multi-account card product. Length: 2 - * characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + * Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit */ public enum AcctTypeEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -83,7 +95,7 @@ public enum AcctTypeEnum { private String value; AcctTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -104,11 +116,7 @@ public static AcctTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AcctTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AcctTypeEnum.values())); + LOG.warning("AcctTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AcctTypeEnum.values())); return null; } } @@ -123,11 +131,10 @@ public static AcctTypeEnum fromValue(String value) { private String acquirerMerchantID; /** - * Indicates whether the cardholder shipping address and cardholder billing address are the same. - * Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address - * does not match billing address. + * Indicates whether the cardholder shipping address and cardholder billing address are the same. Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address does not match billing address. */ public enum AddrMatchEnum { + Y(String.valueOf("Y")), N(String.valueOf("N")); @@ -137,7 +144,7 @@ public enum AddrMatchEnum { private String value; AddrMatchEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -158,11 +165,7 @@ public static AddrMatchEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AddrMatchEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AddrMatchEnum.values())); + LOG.warning("AddrMatchEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AddrMatchEnum.values())); return null; } } @@ -175,11 +178,10 @@ public static AddrMatchEnum fromValue(String value) { private Boolean authenticationOnly; /** - * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: - * * `noPreference` * `requestNoChallenge` * `requestChallenge` * - * `requestChallengeAsMandate` + * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` */ public enum ChallengeIndicatorEnum { + NOPREFERENCE(String.valueOf("noPreference")), REQUESTNOCHALLENGE(String.valueOf("requestNoChallenge")), @@ -193,7 +195,7 @@ public enum ChallengeIndicatorEnum { private String value; ChallengeIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -214,18 +216,13 @@ public static ChallengeIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ChallengeIndicatorEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ChallengeIndicatorEnum.values())); + LOG.warning("ChallengeIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChallengeIndicatorEnum.values())); return null; } } public static final String JSON_PROPERTY_CHALLENGE_INDICATOR = "challengeIndicator"; - @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` - // instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` instead. private ChallengeIndicatorEnum challengeIndicator; public static final String JSON_PROPERTY_DEVICE_CHANNEL = "deviceChannel"; @@ -255,8 +252,7 @@ public static ChallengeIndicatorEnum fromValue(String value) { public static final String JSON_PROPERTY_PAY_TOKEN_IND = "payTokenInd"; private Boolean payTokenInd; - public static final String JSON_PROPERTY_PAYMENT_AUTHENTICATION_USE_CASE = - "paymentAuthenticationUseCase"; + public static final String JSON_PROPERTY_PAYMENT_AUTHENTICATION_USE_CASE = "paymentAuthenticationUseCase"; private String paymentAuthenticationUseCase; public static final String JSON_PROPERTY_PURCHASE_INSTAL_DATA = "purchaseInstalData"; @@ -292,21 +288,17 @@ public static ChallengeIndicatorEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_COMP_IND = "threeDSCompInd"; private String threeDSCompInd; - public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_IND = - "threeDSRequestorAuthenticationInd"; + public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_IND = "threeDSRequestorAuthenticationInd"; private String threeDSRequestorAuthenticationInd; - public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_INFO = - "threeDSRequestorAuthenticationInfo"; + public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_INFO = "threeDSRequestorAuthenticationInfo"; private ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo; /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No - * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor - * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional - * risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only */ public enum ThreeDSRequestorChallengeIndEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -319,13 +311,12 @@ public enum ThreeDSRequestorChallengeIndEnum { _06(String.valueOf("06")); - private static final Logger LOG = - Logger.getLogger(ThreeDSRequestorChallengeIndEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(ThreeDSRequestorChallengeIndEnum.class.getName()); private String value; ThreeDSRequestorChallengeIndEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -346,17 +337,12 @@ public static ThreeDSRequestorChallengeIndEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ThreeDSRequestorChallengeIndEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ThreeDSRequestorChallengeIndEnum.values())); + LOG.warning("ThreeDSRequestorChallengeIndEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ThreeDSRequestorChallengeIndEnum.values())); return null; } } - public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND = - "threeDSRequestorChallengeInd"; + public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND = "threeDSRequestorChallengeInd"; private ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd; public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_I_D = "threeDSRequestorID"; @@ -365,19 +351,17 @@ public static ThreeDSRequestorChallengeIndEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_NAME = "threeDSRequestorName"; private String threeDSRequestorName; - public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_PRIOR_AUTHENTICATION_INFO = - "threeDSRequestorPriorAuthenticationInfo"; + public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_PRIOR_AUTHENTICATION_INFO = "threeDSRequestorPriorAuthenticationInfo"; private ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo; public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_U_R_L = "threeDSRequestorURL"; private String threeDSRequestorURL; /** - * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * - * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** - * — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load */ public enum TransTypeEnum { + _01(String.valueOf("01")), _03(String.valueOf("03")), @@ -393,7 +377,7 @@ public enum TransTypeEnum { private String value; TransTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -414,11 +398,7 @@ public static TransTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TransTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TransTypeEnum.values())); + LOG.warning("TransTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TransTypeEnum.values())); return null; } } @@ -426,8 +406,11 @@ public static TransTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANS_TYPE = "transType"; private TransTypeEnum transType; - /** Identify the type of the transaction being authenticated. */ + /** + * Identify the type of the transaction being authenticated. + */ public enum TransactionTypeEnum { + GOODSORSERVICEPURCHASE(String.valueOf("goodsOrServicePurchase")), CHECKACCEPTANCE(String.valueOf("checkAcceptance")), @@ -443,7 +426,7 @@ public enum TransactionTypeEnum { private String value; TransactionTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -464,11 +447,7 @@ public static TransactionTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TransactionTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TransactionTypeEnum.values())); + LOG.warning("TransactionTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TransactionTypeEnum.values())); return null; } } @@ -482,12 +461,13 @@ public static TransactionTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_WORK_PHONE = "workPhone"; private Phone workPhone; - public ThreeDS2RequestData() {} + public ThreeDS2RequestData() { + } /** * acctInfo * - * @param acctInfo + * @param acctInfo * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData acctInfo(AcctInfo acctInfo) { @@ -497,8 +477,7 @@ public ThreeDS2RequestData acctInfo(AcctInfo acctInfo) { /** * Get acctInfo - * - * @return acctInfo + * @return acctInfo */ @JsonProperty(JSON_PROPERTY_ACCT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -509,7 +488,7 @@ public AcctInfo getAcctInfo() { /** * acctInfo * - * @param acctInfo + * @param acctInfo */ @JsonProperty(JSON_PROPERTY_ACCT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -518,12 +497,9 @@ public void setAcctInfo(AcctInfo acctInfo) { } /** - * Indicates the type of account. For example, for a multi-account card product. Length: 2 - * characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + * Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit * - * @param acctType Indicates the type of account. For example, for a multi-account card product. - * Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** - * — Debit + * @param acctType Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData acctType(AcctTypeEnum acctType) { @@ -532,12 +508,8 @@ public ThreeDS2RequestData acctType(AcctTypeEnum acctType) { } /** - * Indicates the type of account. For example, for a multi-account card product. Length: 2 - * characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit - * - * @return acctType Indicates the type of account. For example, for a multi-account card product. - * Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** - * — Debit + * Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + * @return acctType Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit */ @JsonProperty(JSON_PROPERTY_ACCT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -546,12 +518,9 @@ public AcctTypeEnum getAcctType() { } /** - * Indicates the type of account. For example, for a multi-account card product. Length: 2 - * characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + * Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit * - * @param acctType Indicates the type of account. For example, for a multi-account card product. - * Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** - * — Debit + * @param acctType Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit */ @JsonProperty(JSON_PROPERTY_ACCT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -560,15 +529,9 @@ public void setAcctType(AcctTypeEnum acctType) { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will - * use in the authorisation. Use 123456 on the Test platform. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. * - * @param acquirerBIN Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you - * will use in the authorisation. Use 123456 on the Test platform. + * @param acquirerBIN Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData acquirerBIN(String acquirerBIN) { @@ -577,15 +540,8 @@ public ThreeDS2RequestData acquirerBIN(String acquirerBIN) { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will - * use in the authorisation. Use 123456 on the Test platform. - * - * @return acquirerBIN Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you - * will use in the authorisation. Use 123456 on the Test platform. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * @return acquirerBIN Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_B_I_N) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -594,15 +550,9 @@ public String getAcquirerBIN() { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will - * use in the authorisation. Use 123456 on the Test platform. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. * - * @param acquirerBIN Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you - * will use in the authorisation. Use 123456 on the Test platform. + * @param acquirerBIN Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_B_I_N) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -611,16 +561,9 @@ public void setAcquirerBIN(String acquirerBIN) { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string - * should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. * - * @param acquirerMerchantID Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string - * should match the value that you will use in the authorisation. Use 123456 on the Test - * platform. + * @param acquirerMerchantID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData acquirerMerchantID(String acquirerMerchantID) { @@ -629,16 +572,8 @@ public ThreeDS2RequestData acquirerMerchantID(String acquirerMerchantID) { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string - * should match the value that you will use in the authorisation. Use 123456 on the Test platform. - * - * @return acquirerMerchantID Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string - * should match the value that you will use in the authorisation. Use 123456 on the Test - * platform. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * @return acquirerMerchantID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_MERCHANT_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -647,16 +582,9 @@ public String getAcquirerMerchantID() { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string - * should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. * - * @param acquirerMerchantID Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string - * should match the value that you will use in the authorisation. Use 123456 on the Test - * platform. + * @param acquirerMerchantID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_MERCHANT_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -665,13 +593,9 @@ public void setAcquirerMerchantID(String acquirerMerchantID) { } /** - * Indicates whether the cardholder shipping address and cardholder billing address are the same. - * Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address - * does not match billing address. + * Indicates whether the cardholder shipping address and cardholder billing address are the same. Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address does not match billing address. * - * @param addrMatch Indicates whether the cardholder shipping address and cardholder billing - * address are the same. Allowed values: * **Y** — Shipping address matches billing address. * - * **N** — Shipping address does not match billing address. + * @param addrMatch Indicates whether the cardholder shipping address and cardholder billing address are the same. Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address does not match billing address. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData addrMatch(AddrMatchEnum addrMatch) { @@ -680,13 +604,8 @@ public ThreeDS2RequestData addrMatch(AddrMatchEnum addrMatch) { } /** - * Indicates whether the cardholder shipping address and cardholder billing address are the same. - * Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address - * does not match billing address. - * - * @return addrMatch Indicates whether the cardholder shipping address and cardholder billing - * address are the same. Allowed values: * **Y** — Shipping address matches billing address. * - * **N** — Shipping address does not match billing address. + * Indicates whether the cardholder shipping address and cardholder billing address are the same. Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address does not match billing address. + * @return addrMatch Indicates whether the cardholder shipping address and cardholder billing address are the same. Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address does not match billing address. */ @JsonProperty(JSON_PROPERTY_ADDR_MATCH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -695,13 +614,9 @@ public AddrMatchEnum getAddrMatch() { } /** - * Indicates whether the cardholder shipping address and cardholder billing address are the same. - * Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address - * does not match billing address. + * Indicates whether the cardholder shipping address and cardholder billing address are the same. Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address does not match billing address. * - * @param addrMatch Indicates whether the cardholder shipping address and cardholder billing - * address are the same. Allowed values: * **Y** — Shipping address matches billing address. * - * **N** — Shipping address does not match billing address. + * @param addrMatch Indicates whether the cardholder shipping address and cardholder billing address are the same. Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address does not match billing address. */ @JsonProperty(JSON_PROPERTY_ADDR_MATCH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -710,15 +625,13 @@ public void setAddrMatch(AddrMatchEnum addrMatch) { } /** - * If set to true, you will only perform the [3D Secure 2 - * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), - * and not the payment authorisation. + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. * - * @param authenticationOnly If set to true, you will only perform the [3D Secure 2 - * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), - * and not the payment authorisation. + * @param authenticationOnly If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v50 Use `threeDSAuthenticationOnly` instead. + * + * @deprecated since Adyen Checkout API v50 + * Use `threeDSAuthenticationOnly` instead. */ @Deprecated // deprecated since Adyen Checkout API v50: Use `threeDSAuthenticationOnly` instead. public ThreeDS2RequestData authenticationOnly(Boolean authenticationOnly) { @@ -727,15 +640,9 @@ public ThreeDS2RequestData authenticationOnly(Boolean authenticationOnly) { } /** - * If set to true, you will only perform the [3D Secure 2 - * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), - * and not the payment authorisation. - * - * @return authenticationOnly If set to true, you will only perform the [3D Secure 2 - * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), - * and not the payment authorisation. - * @deprecated // deprecated since Adyen Checkout API v50: Use `threeDSAuthenticationOnly` - * instead. + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. + * @return authenticationOnly If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. + * @deprecated // deprecated since Adyen Checkout API v50: Use `threeDSAuthenticationOnly` instead. */ @Deprecated // deprecated since Adyen Checkout API v50: Use `threeDSAuthenticationOnly` instead. @JsonProperty(JSON_PROPERTY_AUTHENTICATION_ONLY) @@ -745,14 +652,12 @@ public Boolean getAuthenticationOnly() { } /** - * If set to true, you will only perform the [3D Secure 2 - * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), - * and not the payment authorisation. + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. * - * @param authenticationOnly If set to true, you will only perform the [3D Secure 2 - * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), - * and not the payment authorisation. - * @deprecated since Adyen Checkout API v50 Use `threeDSAuthenticationOnly` instead. + * @param authenticationOnly If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. + * + * @deprecated since Adyen Checkout API v50 + * Use `threeDSAuthenticationOnly` instead. */ @Deprecated // deprecated since Adyen Checkout API v50: Use `threeDSAuthenticationOnly` instead. @JsonProperty(JSON_PROPERTY_AUTHENTICATION_ONLY) @@ -762,36 +667,26 @@ public void setAuthenticationOnly(Boolean authenticationOnly) { } /** - * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: - * * `noPreference` * `requestNoChallenge` * `requestChallenge` * - * `requestChallengeAsMandate` + * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` * - * @param challengeIndicator Possibility to specify a preference for receiving a challenge from - * the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * - * `requestChallenge` * `requestChallengeAsMandate` + * @param challengeIndicator Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v68 Use `threeDSRequestorChallengeInd` instead. + * + * @deprecated since Adyen Checkout API v68 + * Use `threeDSRequestorChallengeInd` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` - // instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` instead. public ThreeDS2RequestData challengeIndicator(ChallengeIndicatorEnum challengeIndicator) { this.challengeIndicator = challengeIndicator; return this; } /** - * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: - * * `noPreference` * `requestNoChallenge` * `requestChallenge` * - * `requestChallengeAsMandate` - * - * @return challengeIndicator Possibility to specify a preference for receiving a challenge from - * the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * - * `requestChallenge` * `requestChallengeAsMandate` - * @deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` - * instead. + * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` + * @return challengeIndicator Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` + * @deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` - // instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` instead. @JsonProperty(JSON_PROPERTY_CHALLENGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ChallengeIndicatorEnum getChallengeIndicator() { @@ -799,17 +694,14 @@ public ChallengeIndicatorEnum getChallengeIndicator() { } /** - * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: - * * `noPreference` * `requestNoChallenge` * `requestChallenge` * - * `requestChallengeAsMandate` + * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` + * + * @param challengeIndicator Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` * - * @param challengeIndicator Possibility to specify a preference for receiving a challenge from - * the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * - * `requestChallenge` * `requestChallengeAsMandate` - * @deprecated since Adyen Checkout API v68 Use `threeDSRequestorChallengeInd` instead. + * @deprecated since Adyen Checkout API v68 + * Use `threeDSRequestorChallengeInd` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` - // instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` instead. @JsonProperty(JSON_PROPERTY_CHALLENGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setChallengeIndicator(ChallengeIndicatorEnum challengeIndicator) { @@ -819,8 +711,7 @@ public void setChallengeIndicator(ChallengeIndicatorEnum challengeIndicator) { /** * The environment of the shopper. Allowed values: * `app` * `browser` * - * @param deviceChannel The environment of the shopper. Allowed values: * `app` * - * `browser` + * @param deviceChannel The environment of the shopper. Allowed values: * `app` * `browser` * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData deviceChannel(String deviceChannel) { @@ -830,9 +721,7 @@ public ThreeDS2RequestData deviceChannel(String deviceChannel) { /** * The environment of the shopper. Allowed values: * `app` * `browser` - * - * @return deviceChannel The environment of the shopper. Allowed values: * `app` * - * `browser` + * @return deviceChannel The environment of the shopper. Allowed values: * `app` * `browser` */ @JsonProperty(JSON_PROPERTY_DEVICE_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -843,8 +732,7 @@ public String getDeviceChannel() { /** * The environment of the shopper. Allowed values: * `app` * `browser` * - * @param deviceChannel The environment of the shopper. Allowed values: * `app` * - * `browser` + * @param deviceChannel The environment of the shopper. Allowed values: * `app` * `browser` */ @JsonProperty(JSON_PROPERTY_DEVICE_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -855,7 +743,7 @@ public void setDeviceChannel(String deviceChannel) { /** * deviceRenderOptions * - * @param deviceRenderOptions + * @param deviceRenderOptions * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData deviceRenderOptions(DeviceRenderOptions deviceRenderOptions) { @@ -865,8 +753,7 @@ public ThreeDS2RequestData deviceRenderOptions(DeviceRenderOptions deviceRenderO /** * Get deviceRenderOptions - * - * @return deviceRenderOptions + * @return deviceRenderOptions */ @JsonProperty(JSON_PROPERTY_DEVICE_RENDER_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -877,7 +764,7 @@ public DeviceRenderOptions getDeviceRenderOptions() { /** * deviceRenderOptions * - * @param deviceRenderOptions + * @param deviceRenderOptions */ @JsonProperty(JSON_PROPERTY_DEVICE_RENDER_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -888,7 +775,7 @@ public void setDeviceRenderOptions(DeviceRenderOptions deviceRenderOptions) { /** * homePhone * - * @param homePhone + * @param homePhone * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData homePhone(Phone homePhone) { @@ -898,8 +785,7 @@ public ThreeDS2RequestData homePhone(Phone homePhone) { /** * Get homePhone - * - * @return homePhone + * @return homePhone */ @JsonProperty(JSON_PROPERTY_HOME_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -910,7 +796,7 @@ public Phone getHomePhone() { /** * homePhone * - * @param homePhone + * @param homePhone */ @JsonProperty(JSON_PROPERTY_HOME_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -919,17 +805,9 @@ public void setHomePhone(Phone homePhone) { } /** - * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, - * mostly [authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The `mcc` is a four-digit code with which the previously given - * `acquirerMerchantID` is registered at the scheme. + * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. * - * @param mcc Required for merchants that have been enrolled for 3D Secure 2 by another party than - * Adyen, mostly [authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The `mcc` is a four-digit code with which the previously given - * `acquirerMerchantID` is registered at the scheme. + * @param mcc Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData mcc(String mcc) { @@ -938,17 +816,8 @@ public ThreeDS2RequestData mcc(String mcc) { } /** - * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, - * mostly [authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The `mcc` is a four-digit code with which the previously given - * `acquirerMerchantID` is registered at the scheme. - * - * @return mcc Required for merchants that have been enrolled for 3D Secure 2 by another party - * than Adyen, mostly [authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The `mcc` is a four-digit code with which the previously given - * `acquirerMerchantID` is registered at the scheme. + * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. + * @return mcc Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -957,17 +826,9 @@ public String getMcc() { } /** - * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, - * mostly [authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The `mcc` is a four-digit code with which the previously given - * `acquirerMerchantID` is registered at the scheme. + * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. * - * @param mcc Required for merchants that have been enrolled for 3D Secure 2 by another party than - * Adyen, mostly [authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The `mcc` is a four-digit code with which the previously given - * `acquirerMerchantID` is registered at the scheme. + * @param mcc Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -976,23 +837,9 @@ public void setMcc(String mcc) { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchant name that the issuer presents to the shopper if they get a challenge. We recommend - * to use the same value that you will use in the authorization. Maximum length is 40 characters. - * > Optional for a [full 3D Secure 2 - * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use - * this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name - * already configured on your account. - * - * @param merchantName Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchant name that the issuer presents to the shopper if they get a challenge. We - * recommend to use the same value that you will use in the authorization. Maximum length is - * 40 characters. > Optional for a [full 3D Secure 2 - * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). - * Use this field if you are enrolled for 3D Secure 2 with us and want to override the - * merchant name already configured on your account. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. + * + * @param merchantName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData merchantName(String merchantName) { @@ -1001,23 +848,8 @@ public ThreeDS2RequestData merchantName(String merchantName) { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchant name that the issuer presents to the shopper if they get a challenge. We recommend - * to use the same value that you will use in the authorization. Maximum length is 40 characters. - * > Optional for a [full 3D Secure 2 - * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use - * this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name - * already configured on your account. - * - * @return merchantName Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchant name that the issuer presents to the shopper if they get a challenge. We - * recommend to use the same value that you will use in the authorization. Maximum length is - * 40 characters. > Optional for a [full 3D Secure 2 - * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). - * Use this field if you are enrolled for 3D Secure 2 with us and want to override the - * merchant name already configured on your account. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. + * @return merchantName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. */ @JsonProperty(JSON_PROPERTY_MERCHANT_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1026,23 +858,9 @@ public String getMerchantName() { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchant name that the issuer presents to the shopper if they get a challenge. We recommend - * to use the same value that you will use in the authorization. Maximum length is 40 characters. - * > Optional for a [full 3D Secure 2 - * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use - * this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name - * already configured on your account. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. * - * @param merchantName Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchant name that the issuer presents to the shopper if they get a challenge. We - * recommend to use the same value that you will use in the authorization. Maximum length is - * 40 characters. > Optional for a [full 3D Secure 2 - * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). - * Use this field if you are enrolled for 3D Secure 2 with us and want to override the - * merchant name already configured on your account. + * @param merchantName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. */ @JsonProperty(JSON_PROPERTY_MERCHANT_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1053,8 +871,7 @@ public void setMerchantName(String merchantName) { /** * The `messageVersion` value indicating the 3D Secure 2 protocol version. * - * @param messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol - * version. + * @param messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol version. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData messageVersion(String messageVersion) { @@ -1064,9 +881,7 @@ public ThreeDS2RequestData messageVersion(String messageVersion) { /** * The `messageVersion` value indicating the 3D Secure 2 protocol version. - * - * @return messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol - * version. + * @return messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol version. */ @JsonProperty(JSON_PROPERTY_MESSAGE_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1077,8 +892,7 @@ public String getMessageVersion() { /** * The `messageVersion` value indicating the 3D Secure 2 protocol version. * - * @param messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol - * version. + * @param messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol version. */ @JsonProperty(JSON_PROPERTY_MESSAGE_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1089,7 +903,7 @@ public void setMessageVersion(String messageVersion) { /** * mobilePhone * - * @param mobilePhone + * @param mobilePhone * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData mobilePhone(Phone mobilePhone) { @@ -1099,8 +913,7 @@ public ThreeDS2RequestData mobilePhone(Phone mobilePhone) { /** * Get mobilePhone - * - * @return mobilePhone + * @return mobilePhone */ @JsonProperty(JSON_PROPERTY_MOBILE_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1111,7 +924,7 @@ public Phone getMobilePhone() { /** * mobilePhone * - * @param mobilePhone + * @param mobilePhone */ @JsonProperty(JSON_PROPERTY_MOBILE_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1120,13 +933,9 @@ public void setMobilePhone(Phone mobilePhone) { } /** - * URL to where the issuer should send the `CRes`. Required if you are not using - * components for `channel` **Web** or if you are using classic integration - * `deviceChannel` **browser**. + * URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. * - * @param notificationURL URL to where the issuer should send the `CRes`. Required if - * you are not using components for `channel` **Web** or if you are using classic - * integration `deviceChannel` **browser**. + * @param notificationURL URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData notificationURL(String notificationURL) { @@ -1135,13 +944,8 @@ public ThreeDS2RequestData notificationURL(String notificationURL) { } /** - * URL to where the issuer should send the `CRes`. Required if you are not using - * components for `channel` **Web** or if you are using classic integration - * `deviceChannel` **browser**. - * - * @return notificationURL URL to where the issuer should send the `CRes`. Required if - * you are not using components for `channel` **Web** or if you are using classic - * integration `deviceChannel` **browser**. + * URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. + * @return notificationURL URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1150,13 +954,9 @@ public String getNotificationURL() { } /** - * URL to where the issuer should send the `CRes`. Required if you are not using - * components for `channel` **Web** or if you are using classic integration - * `deviceChannel` **browser**. + * URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. * - * @param notificationURL URL to where the issuer should send the `CRes`. Required if - * you are not using components for `channel` **Web** or if you are using classic - * integration `deviceChannel` **browser**. + * @param notificationURL URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1165,11 +965,9 @@ public void setNotificationURL(String notificationURL) { } /** - * Value **true** indicates that the transaction was de-tokenised prior to being received by the - * ACS. + * Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. * - * @param payTokenInd Value **true** indicates that the transaction was de-tokenised prior to - * being received by the ACS. + * @param payTokenInd Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData payTokenInd(Boolean payTokenInd) { @@ -1178,11 +976,8 @@ public ThreeDS2RequestData payTokenInd(Boolean payTokenInd) { } /** - * Value **true** indicates that the transaction was de-tokenised prior to being received by the - * ACS. - * - * @return payTokenInd Value **true** indicates that the transaction was de-tokenised prior to - * being received by the ACS. + * Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. + * @return payTokenInd Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. */ @JsonProperty(JSON_PROPERTY_PAY_TOKEN_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1191,11 +986,9 @@ public Boolean getPayTokenInd() { } /** - * Value **true** indicates that the transaction was de-tokenised prior to being received by the - * ACS. + * Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. * - * @param payTokenInd Value **true** indicates that the transaction was de-tokenised prior to - * being received by the ACS. + * @param payTokenInd Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. */ @JsonProperty(JSON_PROPERTY_PAY_TOKEN_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1206,8 +999,7 @@ public void setPayTokenInd(Boolean payTokenInd) { /** * Indicates the type of payment for which an authentication is requested (message extension) * - * @param paymentAuthenticationUseCase Indicates the type of payment for which an authentication - * is requested (message extension) + * @param paymentAuthenticationUseCase Indicates the type of payment for which an authentication is requested (message extension) * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData paymentAuthenticationUseCase(String paymentAuthenticationUseCase) { @@ -1217,9 +1009,7 @@ public ThreeDS2RequestData paymentAuthenticationUseCase(String paymentAuthentica /** * Indicates the type of payment for which an authentication is requested (message extension) - * - * @return paymentAuthenticationUseCase Indicates the type of payment for which an authentication - * is requested (message extension) + * @return paymentAuthenticationUseCase Indicates the type of payment for which an authentication is requested (message extension) */ @JsonProperty(JSON_PROPERTY_PAYMENT_AUTHENTICATION_USE_CASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1230,8 +1020,7 @@ public String getPaymentAuthenticationUseCase() { /** * Indicates the type of payment for which an authentication is requested (message extension) * - * @param paymentAuthenticationUseCase Indicates the type of payment for which an authentication - * is requested (message extension) + * @param paymentAuthenticationUseCase Indicates the type of payment for which an authentication is requested (message extension) */ @JsonProperty(JSON_PROPERTY_PAYMENT_AUTHENTICATION_USE_CASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1240,11 +1029,9 @@ public void setPaymentAuthenticationUseCase(String paymentAuthenticationUseCase) } /** - * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 - * characters. + * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. * - * @param purchaseInstalData Indicates the maximum number of authorisations permitted for - * instalment payments. Length: 1–3 characters. + * @param purchaseInstalData Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData purchaseInstalData(String purchaseInstalData) { @@ -1253,11 +1040,8 @@ public ThreeDS2RequestData purchaseInstalData(String purchaseInstalData) { } /** - * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 - * characters. - * - * @return purchaseInstalData Indicates the maximum number of authorisations permitted for - * instalment payments. Length: 1–3 characters. + * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. + * @return purchaseInstalData Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. */ @JsonProperty(JSON_PROPERTY_PURCHASE_INSTAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1266,11 +1050,9 @@ public String getPurchaseInstalData() { } /** - * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 - * characters. + * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. * - * @param purchaseInstalData Indicates the maximum number of authorisations permitted for - * instalment payments. Length: 1–3 characters. + * @param purchaseInstalData Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. */ @JsonProperty(JSON_PROPERTY_PURCHASE_INSTAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1281,8 +1063,7 @@ public void setPurchaseInstalData(String purchaseInstalData) { /** * Date after which no further authorisations shall be performed. Format: YYYYMMDD * - * @param recurringExpiry Date after which no further authorisations shall be performed. Format: - * YYYYMMDD + * @param recurringExpiry Date after which no further authorisations shall be performed. Format: YYYYMMDD * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData recurringExpiry(String recurringExpiry) { @@ -1292,9 +1073,7 @@ public ThreeDS2RequestData recurringExpiry(String recurringExpiry) { /** * Date after which no further authorisations shall be performed. Format: YYYYMMDD - * - * @return recurringExpiry Date after which no further authorisations shall be performed. Format: - * YYYYMMDD + * @return recurringExpiry Date after which no further authorisations shall be performed. Format: YYYYMMDD */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1305,8 +1084,7 @@ public String getRecurringExpiry() { /** * Date after which no further authorisations shall be performed. Format: YYYYMMDD * - * @param recurringExpiry Date after which no further authorisations shall be performed. Format: - * YYYYMMDD + * @param recurringExpiry Date after which no further authorisations shall be performed. Format: YYYYMMDD */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1317,8 +1095,7 @@ public void setRecurringExpiry(String recurringExpiry) { /** * Indicates the minimum number of days between authorisations. Maximum length: 4 characters. * - * @param recurringFrequency Indicates the minimum number of days between authorisations. Maximum - * length: 4 characters. + * @param recurringFrequency Indicates the minimum number of days between authorisations. Maximum length: 4 characters. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData recurringFrequency(String recurringFrequency) { @@ -1328,9 +1105,7 @@ public ThreeDS2RequestData recurringFrequency(String recurringFrequency) { /** * Indicates the minimum number of days between authorisations. Maximum length: 4 characters. - * - * @return recurringFrequency Indicates the minimum number of days between authorisations. Maximum - * length: 4 characters. + * @return recurringFrequency Indicates the minimum number of days between authorisations. Maximum length: 4 characters. */ @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1341,8 +1116,7 @@ public String getRecurringFrequency() { /** * Indicates the minimum number of days between authorisations. Maximum length: 4 characters. * - * @param recurringFrequency Indicates the minimum number of days between authorisations. Maximum - * length: 4 characters. + * @param recurringFrequency Indicates the minimum number of days between authorisations. Maximum length: 4 characters. */ @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1351,11 +1125,9 @@ public void setRecurringFrequency(String recurringFrequency) { } /** - * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for - * `deviceChannel` set to **app**. + * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. * - * @param sdkAppID The `sdkAppID` value as received from the 3D Secure 2 SDK. Required - * for `deviceChannel` set to **app**. + * @param sdkAppID The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData sdkAppID(String sdkAppID) { @@ -1364,11 +1136,8 @@ public ThreeDS2RequestData sdkAppID(String sdkAppID) { } /** - * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for - * `deviceChannel` set to **app**. - * - * @return sdkAppID The `sdkAppID` value as received from the 3D Secure 2 SDK. Required - * for `deviceChannel` set to **app**. + * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + * @return sdkAppID The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_APP_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1377,11 +1146,9 @@ public String getSdkAppID() { } /** - * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for - * `deviceChannel` set to **app**. + * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. * - * @param sdkAppID The `sdkAppID` value as received from the 3D Secure 2 SDK. Required - * for `deviceChannel` set to **app**. + * @param sdkAppID The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_APP_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1390,11 +1157,9 @@ public void setSdkAppID(String sdkAppID) { } /** - * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for - * `deviceChannel` set to **app**. + * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. * - * @param sdkEncData The `sdkEncData` value as received from the 3D Secure 2 SDK. - * Required for `deviceChannel` set to **app**. + * @param sdkEncData The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData sdkEncData(String sdkEncData) { @@ -1403,11 +1168,8 @@ public ThreeDS2RequestData sdkEncData(String sdkEncData) { } /** - * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for - * `deviceChannel` set to **app**. - * - * @return sdkEncData The `sdkEncData` value as received from the 3D Secure 2 SDK. - * Required for `deviceChannel` set to **app**. + * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + * @return sdkEncData The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_ENC_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1416,11 +1178,9 @@ public String getSdkEncData() { } /** - * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for - * `deviceChannel` set to **app**. + * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. * - * @param sdkEncData The `sdkEncData` value as received from the 3D Secure 2 SDK. - * Required for `deviceChannel` set to **app**. + * @param sdkEncData The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_ENC_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1431,7 +1191,7 @@ public void setSdkEncData(String sdkEncData) { /** * sdkEphemPubKey * - * @param sdkEphemPubKey + * @param sdkEphemPubKey * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData sdkEphemPubKey(SDKEphemPubKey sdkEphemPubKey) { @@ -1441,8 +1201,7 @@ public ThreeDS2RequestData sdkEphemPubKey(SDKEphemPubKey sdkEphemPubKey) { /** * Get sdkEphemPubKey - * - * @return sdkEphemPubKey + * @return sdkEphemPubKey */ @JsonProperty(JSON_PROPERTY_SDK_EPHEM_PUB_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1453,7 +1212,7 @@ public SDKEphemPubKey getSdkEphemPubKey() { /** * sdkEphemPubKey * - * @param sdkEphemPubKey + * @param sdkEphemPubKey */ @JsonProperty(JSON_PROPERTY_SDK_EPHEM_PUB_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1462,12 +1221,9 @@ public void setSdkEphemPubKey(SDKEphemPubKey sdkEphemPubKey) { } /** - * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and - * only for `deviceChannel` set to **app**. Defaults to **60** minutes. + * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. * - * @param sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication - * process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** - * minutes. + * @param sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData sdkMaxTimeout(Integer sdkMaxTimeout) { @@ -1476,12 +1232,8 @@ public ThreeDS2RequestData sdkMaxTimeout(Integer sdkMaxTimeout) { } /** - * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and - * only for `deviceChannel` set to **app**. Defaults to **60** minutes. - * - * @return sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication - * process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** - * minutes. + * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. + * @return sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. */ @JsonProperty(JSON_PROPERTY_SDK_MAX_TIMEOUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1490,12 +1242,9 @@ public Integer getSdkMaxTimeout() { } /** - * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and - * only for `deviceChannel` set to **app**. Defaults to **60** minutes. + * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. * - * @param sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication - * process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** - * minutes. + * @param sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. */ @JsonProperty(JSON_PROPERTY_SDK_MAX_TIMEOUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1504,11 +1253,9 @@ public void setSdkMaxTimeout(Integer sdkMaxTimeout) { } /** - * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for - * `deviceChannel` set to **app**. + * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. * - * @param sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D - * Secure 2 SDK. Only for `deviceChannel` set to **app**. + * @param sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData sdkReferenceNumber(String sdkReferenceNumber) { @@ -1517,11 +1264,8 @@ public ThreeDS2RequestData sdkReferenceNumber(String sdkReferenceNumber) { } /** - * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for - * `deviceChannel` set to **app**. - * - * @return sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D - * Secure 2 SDK. Only for `deviceChannel` set to **app**. + * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + * @return sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1530,11 +1274,9 @@ public String getSdkReferenceNumber() { } /** - * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for - * `deviceChannel` set to **app**. + * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. * - * @param sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D - * Secure 2 SDK. Only for `deviceChannel` set to **app**. + * @param sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1543,11 +1285,9 @@ public void setSdkReferenceNumber(String sdkReferenceNumber) { } /** - * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for - * `deviceChannel` set to **app**. + * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. * - * @param sdkTransID The `sdkTransID` value as received from the 3D Secure 2 SDK. Only - * for `deviceChannel` set to **app**. + * @param sdkTransID The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData sdkTransID(String sdkTransID) { @@ -1556,11 +1296,8 @@ public ThreeDS2RequestData sdkTransID(String sdkTransID) { } /** - * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for - * `deviceChannel` set to **app**. - * - * @return sdkTransID The `sdkTransID` value as received from the 3D Secure 2 SDK. Only - * for `deviceChannel` set to **app**. + * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + * @return sdkTransID The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1569,11 +1306,9 @@ public String getSdkTransID() { } /** - * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for - * `deviceChannel` set to **app**. + * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. * - * @param sdkTransID The `sdkTransID` value as received from the 3D Secure 2 SDK. Only - * for `deviceChannel` set to **app**. + * @param sdkTransID The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1582,10 +1317,9 @@ public void setSdkTransID(String sdkTransID) { } /** - * Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. + * Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. * - * @param sdkVersion Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set - * to **app**. + * @param sdkVersion Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData sdkVersion(String sdkVersion) { @@ -1594,10 +1328,8 @@ public ThreeDS2RequestData sdkVersion(String sdkVersion) { } /** - * Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. - * - * @return sdkVersion Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` - * set to **app**. + * Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. + * @return sdkVersion Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1606,10 +1338,9 @@ public String getSdkVersion() { } /** - * Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. + * Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. * - * @param sdkVersion Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set - * to **app**. + * @param sdkVersion Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1630,7 +1361,6 @@ public ThreeDS2RequestData threeDSCompInd(String threeDSCompInd) { /** * Completion indicator for the device fingerprinting. - * * @return threeDSCompInd Completion indicator for the device fingerprinting. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_COMP_IND) @@ -1656,15 +1386,13 @@ public void setThreeDSCompInd(String threeDSCompInd) { * @param threeDSRequestorAuthenticationInd Indicates the type of Authentication request. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ - public ThreeDS2RequestData threeDSRequestorAuthenticationInd( - String threeDSRequestorAuthenticationInd) { + public ThreeDS2RequestData threeDSRequestorAuthenticationInd(String threeDSRequestorAuthenticationInd) { this.threeDSRequestorAuthenticationInd = threeDSRequestorAuthenticationInd; return this; } /** * Indicates the type of Authentication request. - * * @return threeDSRequestorAuthenticationInd Indicates the type of Authentication request. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_IND) @@ -1687,19 +1415,17 @@ public void setThreeDSRequestorAuthenticationInd(String threeDSRequestorAuthenti /** * threeDSRequestorAuthenticationInfo * - * @param threeDSRequestorAuthenticationInfo + * @param threeDSRequestorAuthenticationInfo * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ - public ThreeDS2RequestData threeDSRequestorAuthenticationInfo( - ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo) { + public ThreeDS2RequestData threeDSRequestorAuthenticationInfo(ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo) { this.threeDSRequestorAuthenticationInfo = threeDSRequestorAuthenticationInfo; return this; } /** * Get threeDSRequestorAuthenticationInfo - * - * @return threeDSRequestorAuthenticationInfo + * @return threeDSRequestorAuthenticationInfo */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1710,45 +1436,28 @@ public ThreeDSRequestorAuthenticationInfo getThreeDSRequestorAuthenticationInfo( /** * threeDSRequestorAuthenticationInfo * - * @param threeDSRequestorAuthenticationInfo + * @param threeDSRequestorAuthenticationInfo */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setThreeDSRequestorAuthenticationInfo( - ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo) { + public void setThreeDSRequestorAuthenticationInfo(ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo) { this.threeDSRequestorAuthenticationInfo = threeDSRequestorAuthenticationInfo; } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No - * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor - * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional - * risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only * - * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this - * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * - * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested - * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * - * **06** — Data Only + * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ - public ThreeDS2RequestData threeDSRequestorChallengeInd( - ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { + public ThreeDS2RequestData threeDSRequestorChallengeInd(ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { this.threeDSRequestorChallengeInd = threeDSRequestorChallengeInd; return this; } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No - * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor - * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional - * risk analysis is already performed) * **06** — Data Only - * - * @return threeDSRequestorChallengeInd Indicates whether a challenge is requested for this - * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * - * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested - * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * - * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * @return threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1757,34 +1466,20 @@ public ThreeDSRequestorChallengeIndEnum getThreeDSRequestorChallengeInd() { } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No - * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor - * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional - * risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only * - * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this - * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * - * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested - * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * - * **06** — Data Only + * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setThreeDSRequestorChallengeInd( - ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { + public void setThreeDSRequestorChallengeInd(ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { this.threeDSRequestorChallengeInd = threeDSRequestorChallengeInd; } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol - * for 3D Secure 2. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. * - * @param threeDSRequestorID Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you - * enrol for 3D Secure 2. + * @param threeDSRequestorID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData threeDSRequestorID(String threeDSRequestorID) { @@ -1793,15 +1488,8 @@ public ThreeDS2RequestData threeDSRequestorID(String threeDSRequestorID) { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol - * for 3D Secure 2. - * - * @return threeDSRequestorID Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you - * enrol for 3D Secure 2. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. + * @return threeDSRequestorID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1810,15 +1498,9 @@ public String getThreeDSRequestorID() { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol - * for 3D Secure 2. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. * - * @param threeDSRequestorID Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you - * enrol for 3D Secure 2. + * @param threeDSRequestorID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1827,15 +1509,9 @@ public void setThreeDSRequestorID(String threeDSRequestorID) { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for - * 3D Secure 2. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. * - * @param threeDSRequestorName Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol - * for 3D Secure 2. + * @param threeDSRequestorName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData threeDSRequestorName(String threeDSRequestorName) { @@ -1844,15 +1520,8 @@ public ThreeDS2RequestData threeDSRequestorName(String threeDSRequestorName) { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for - * 3D Secure 2. - * - * @return threeDSRequestorName Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol - * for 3D Secure 2. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. + * @return threeDSRequestorName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1861,15 +1530,9 @@ public String getThreeDSRequestorName() { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for - * 3D Secure 2. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. * - * @param threeDSRequestorName Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol - * for 3D Secure 2. + * @param threeDSRequestorName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1880,19 +1543,17 @@ public void setThreeDSRequestorName(String threeDSRequestorName) { /** * threeDSRequestorPriorAuthenticationInfo * - * @param threeDSRequestorPriorAuthenticationInfo + * @param threeDSRequestorPriorAuthenticationInfo * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ - public ThreeDS2RequestData threeDSRequestorPriorAuthenticationInfo( - ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo) { + public ThreeDS2RequestData threeDSRequestorPriorAuthenticationInfo(ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo) { this.threeDSRequestorPriorAuthenticationInfo = threeDSRequestorPriorAuthenticationInfo; return this; } /** * Get threeDSRequestorPriorAuthenticationInfo - * - * @return threeDSRequestorPriorAuthenticationInfo + * @return threeDSRequestorPriorAuthenticationInfo */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_PRIOR_AUTHENTICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1903,21 +1564,18 @@ public ThreeDSRequestorPriorAuthenticationInfo getThreeDSRequestorPriorAuthentic /** * threeDSRequestorPriorAuthenticationInfo * - * @param threeDSRequestorPriorAuthenticationInfo + * @param threeDSRequestorPriorAuthenticationInfo */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_PRIOR_AUTHENTICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setThreeDSRequestorPriorAuthenticationInfo( - ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo) { + public void setThreeDSRequestorPriorAuthenticationInfo(ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo) { this.threeDSRequestorPriorAuthenticationInfo = threeDSRequestorPriorAuthenticationInfo; } /** - * URL of the (customer service) website that will be shown to the shopper in case of technical - * errors during the 3D Secure 2 process. + * URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. * - * @param threeDSRequestorURL URL of the (customer service) website that will be shown to the - * shopper in case of technical errors during the 3D Secure 2 process. + * @param threeDSRequestorURL URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData threeDSRequestorURL(String threeDSRequestorURL) { @@ -1926,11 +1584,8 @@ public ThreeDS2RequestData threeDSRequestorURL(String threeDSRequestorURL) { } /** - * URL of the (customer service) website that will be shown to the shopper in case of technical - * errors during the 3D Secure 2 process. - * - * @return threeDSRequestorURL URL of the (customer service) website that will be shown to the - * shopper in case of technical errors during the 3D Secure 2 process. + * URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. + * @return threeDSRequestorURL URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1939,11 +1594,9 @@ public String getThreeDSRequestorURL() { } /** - * URL of the (customer service) website that will be shown to the shopper in case of technical - * errors during the 3D Secure 2 process. + * URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. * - * @param threeDSRequestorURL URL of the (customer service) website that will be shown to the - * shopper in case of technical errors during the 3D Secure 2 process. + * @param threeDSRequestorURL URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1952,13 +1605,9 @@ public void setThreeDSRequestorURL(String threeDSRequestorURL) { } /** - * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * - * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** - * — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load * - * @param transType Identifies the type of transaction being authenticated. Length: 2 characters. - * Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — - * Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * @param transType Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData transType(TransTypeEnum transType) { @@ -1967,13 +1616,8 @@ public ThreeDS2RequestData transType(TransTypeEnum transType) { } /** - * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * - * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** - * — Quasi-Cash Transaction * **28** — Prepaid Activation and Load - * - * @return transType Identifies the type of transaction being authenticated. Length: 2 characters. - * Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — - * Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * @return transType Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load */ @JsonProperty(JSON_PROPERTY_TRANS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1982,13 +1626,9 @@ public TransTypeEnum getTransType() { } /** - * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * - * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** - * — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load * - * @param transType Identifies the type of transaction being authenticated. Length: 2 characters. - * Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — - * Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * @param transType Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load */ @JsonProperty(JSON_PROPERTY_TRANS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2009,7 +1649,6 @@ public ThreeDS2RequestData transactionType(TransactionTypeEnum transactionType) /** * Identify the type of the transaction being authenticated. - * * @return transactionType Identify the type of the transaction being authenticated. */ @JsonProperty(JSON_PROPERTY_TRANSACTION_TYPE) @@ -2030,11 +1669,9 @@ public void setTransactionType(TransactionTypeEnum transactionType) { } /** - * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only - * applicable for 3D Secure 2 protocol version 2.2.0. + * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. * - * @param whiteListStatus The `whiteListStatus` value returned from a previous 3D Secure - * 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. + * @param whiteListStatus The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData whiteListStatus(String whiteListStatus) { @@ -2043,11 +1680,8 @@ public ThreeDS2RequestData whiteListStatus(String whiteListStatus) { } /** - * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only - * applicable for 3D Secure 2 protocol version 2.2.0. - * - * @return whiteListStatus The `whiteListStatus` value returned from a previous 3D - * Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. + * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. + * @return whiteListStatus The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. */ @JsonProperty(JSON_PROPERTY_WHITE_LIST_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2056,11 +1690,9 @@ public String getWhiteListStatus() { } /** - * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only - * applicable for 3D Secure 2 protocol version 2.2.0. + * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. * - * @param whiteListStatus The `whiteListStatus` value returned from a previous 3D Secure - * 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. + * @param whiteListStatus The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. */ @JsonProperty(JSON_PROPERTY_WHITE_LIST_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2071,7 +1703,7 @@ public void setWhiteListStatus(String whiteListStatus) { /** * workPhone * - * @param workPhone + * @param workPhone * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData workPhone(Phone workPhone) { @@ -2081,8 +1713,7 @@ public ThreeDS2RequestData workPhone(Phone workPhone) { /** * Get workPhone - * - * @return workPhone + * @return workPhone */ @JsonProperty(JSON_PROPERTY_WORK_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2093,7 +1724,7 @@ public Phone getWorkPhone() { /** * workPhone * - * @param workPhone + * @param workPhone */ @JsonProperty(JSON_PROPERTY_WORK_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2101,7 +1732,9 @@ public void setWorkPhone(Phone workPhone) { this.workPhone = workPhone; } - /** Return true if this ThreeDS2RequestData object is equal to o. */ + /** + * Return true if this ThreeDS2RequestData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -2111,97 +1744,50 @@ public boolean equals(Object o) { return false; } ThreeDS2RequestData threeDS2RequestData = (ThreeDS2RequestData) o; - return Objects.equals(this.acctInfo, threeDS2RequestData.acctInfo) - && Objects.equals(this.acctType, threeDS2RequestData.acctType) - && Objects.equals(this.acquirerBIN, threeDS2RequestData.acquirerBIN) - && Objects.equals(this.acquirerMerchantID, threeDS2RequestData.acquirerMerchantID) - && Objects.equals(this.addrMatch, threeDS2RequestData.addrMatch) - && Objects.equals(this.authenticationOnly, threeDS2RequestData.authenticationOnly) - && Objects.equals(this.challengeIndicator, threeDS2RequestData.challengeIndicator) - && Objects.equals(this.deviceChannel, threeDS2RequestData.deviceChannel) - && Objects.equals(this.deviceRenderOptions, threeDS2RequestData.deviceRenderOptions) - && Objects.equals(this.homePhone, threeDS2RequestData.homePhone) - && Objects.equals(this.mcc, threeDS2RequestData.mcc) - && Objects.equals(this.merchantName, threeDS2RequestData.merchantName) - && Objects.equals(this.messageVersion, threeDS2RequestData.messageVersion) - && Objects.equals(this.mobilePhone, threeDS2RequestData.mobilePhone) - && Objects.equals(this.notificationURL, threeDS2RequestData.notificationURL) - && Objects.equals(this.payTokenInd, threeDS2RequestData.payTokenInd) - && Objects.equals( - this.paymentAuthenticationUseCase, threeDS2RequestData.paymentAuthenticationUseCase) - && Objects.equals(this.purchaseInstalData, threeDS2RequestData.purchaseInstalData) - && Objects.equals(this.recurringExpiry, threeDS2RequestData.recurringExpiry) - && Objects.equals(this.recurringFrequency, threeDS2RequestData.recurringFrequency) - && Objects.equals(this.sdkAppID, threeDS2RequestData.sdkAppID) - && Objects.equals(this.sdkEncData, threeDS2RequestData.sdkEncData) - && Objects.equals(this.sdkEphemPubKey, threeDS2RequestData.sdkEphemPubKey) - && Objects.equals(this.sdkMaxTimeout, threeDS2RequestData.sdkMaxTimeout) - && Objects.equals(this.sdkReferenceNumber, threeDS2RequestData.sdkReferenceNumber) - && Objects.equals(this.sdkTransID, threeDS2RequestData.sdkTransID) - && Objects.equals(this.sdkVersion, threeDS2RequestData.sdkVersion) - && Objects.equals(this.threeDSCompInd, threeDS2RequestData.threeDSCompInd) - && Objects.equals( - this.threeDSRequestorAuthenticationInd, - threeDS2RequestData.threeDSRequestorAuthenticationInd) - && Objects.equals( - this.threeDSRequestorAuthenticationInfo, - threeDS2RequestData.threeDSRequestorAuthenticationInfo) - && Objects.equals( - this.threeDSRequestorChallengeInd, threeDS2RequestData.threeDSRequestorChallengeInd) - && Objects.equals(this.threeDSRequestorID, threeDS2RequestData.threeDSRequestorID) - && Objects.equals(this.threeDSRequestorName, threeDS2RequestData.threeDSRequestorName) - && Objects.equals( - this.threeDSRequestorPriorAuthenticationInfo, - threeDS2RequestData.threeDSRequestorPriorAuthenticationInfo) - && Objects.equals(this.threeDSRequestorURL, threeDS2RequestData.threeDSRequestorURL) - && Objects.equals(this.transType, threeDS2RequestData.transType) - && Objects.equals(this.transactionType, threeDS2RequestData.transactionType) - && Objects.equals(this.whiteListStatus, threeDS2RequestData.whiteListStatus) - && Objects.equals(this.workPhone, threeDS2RequestData.workPhone); + return Objects.equals(this.acctInfo, threeDS2RequestData.acctInfo) && + Objects.equals(this.acctType, threeDS2RequestData.acctType) && + Objects.equals(this.acquirerBIN, threeDS2RequestData.acquirerBIN) && + Objects.equals(this.acquirerMerchantID, threeDS2RequestData.acquirerMerchantID) && + Objects.equals(this.addrMatch, threeDS2RequestData.addrMatch) && + Objects.equals(this.authenticationOnly, threeDS2RequestData.authenticationOnly) && + Objects.equals(this.challengeIndicator, threeDS2RequestData.challengeIndicator) && + Objects.equals(this.deviceChannel, threeDS2RequestData.deviceChannel) && + Objects.equals(this.deviceRenderOptions, threeDS2RequestData.deviceRenderOptions) && + Objects.equals(this.homePhone, threeDS2RequestData.homePhone) && + Objects.equals(this.mcc, threeDS2RequestData.mcc) && + Objects.equals(this.merchantName, threeDS2RequestData.merchantName) && + Objects.equals(this.messageVersion, threeDS2RequestData.messageVersion) && + Objects.equals(this.mobilePhone, threeDS2RequestData.mobilePhone) && + Objects.equals(this.notificationURL, threeDS2RequestData.notificationURL) && + Objects.equals(this.payTokenInd, threeDS2RequestData.payTokenInd) && + Objects.equals(this.paymentAuthenticationUseCase, threeDS2RequestData.paymentAuthenticationUseCase) && + Objects.equals(this.purchaseInstalData, threeDS2RequestData.purchaseInstalData) && + Objects.equals(this.recurringExpiry, threeDS2RequestData.recurringExpiry) && + Objects.equals(this.recurringFrequency, threeDS2RequestData.recurringFrequency) && + Objects.equals(this.sdkAppID, threeDS2RequestData.sdkAppID) && + Objects.equals(this.sdkEncData, threeDS2RequestData.sdkEncData) && + Objects.equals(this.sdkEphemPubKey, threeDS2RequestData.sdkEphemPubKey) && + Objects.equals(this.sdkMaxTimeout, threeDS2RequestData.sdkMaxTimeout) && + Objects.equals(this.sdkReferenceNumber, threeDS2RequestData.sdkReferenceNumber) && + Objects.equals(this.sdkTransID, threeDS2RequestData.sdkTransID) && + Objects.equals(this.sdkVersion, threeDS2RequestData.sdkVersion) && + Objects.equals(this.threeDSCompInd, threeDS2RequestData.threeDSCompInd) && + Objects.equals(this.threeDSRequestorAuthenticationInd, threeDS2RequestData.threeDSRequestorAuthenticationInd) && + Objects.equals(this.threeDSRequestorAuthenticationInfo, threeDS2RequestData.threeDSRequestorAuthenticationInfo) && + Objects.equals(this.threeDSRequestorChallengeInd, threeDS2RequestData.threeDSRequestorChallengeInd) && + Objects.equals(this.threeDSRequestorID, threeDS2RequestData.threeDSRequestorID) && + Objects.equals(this.threeDSRequestorName, threeDS2RequestData.threeDSRequestorName) && + Objects.equals(this.threeDSRequestorPriorAuthenticationInfo, threeDS2RequestData.threeDSRequestorPriorAuthenticationInfo) && + Objects.equals(this.threeDSRequestorURL, threeDS2RequestData.threeDSRequestorURL) && + Objects.equals(this.transType, threeDS2RequestData.transType) && + Objects.equals(this.transactionType, threeDS2RequestData.transactionType) && + Objects.equals(this.whiteListStatus, threeDS2RequestData.whiteListStatus) && + Objects.equals(this.workPhone, threeDS2RequestData.workPhone); } @Override public int hashCode() { - return Objects.hash( - acctInfo, - acctType, - acquirerBIN, - acquirerMerchantID, - addrMatch, - authenticationOnly, - challengeIndicator, - deviceChannel, - deviceRenderOptions, - homePhone, - mcc, - merchantName, - messageVersion, - mobilePhone, - notificationURL, - payTokenInd, - paymentAuthenticationUseCase, - purchaseInstalData, - recurringExpiry, - recurringFrequency, - sdkAppID, - sdkEncData, - sdkEphemPubKey, - sdkMaxTimeout, - sdkReferenceNumber, - sdkTransID, - sdkVersion, - threeDSCompInd, - threeDSRequestorAuthenticationInd, - threeDSRequestorAuthenticationInfo, - threeDSRequestorChallengeInd, - threeDSRequestorID, - threeDSRequestorName, - threeDSRequestorPriorAuthenticationInfo, - threeDSRequestorURL, - transType, - transactionType, - whiteListStatus, - workPhone); + return Objects.hash(acctInfo, acctType, acquirerBIN, acquirerMerchantID, addrMatch, authenticationOnly, challengeIndicator, deviceChannel, deviceRenderOptions, homePhone, mcc, merchantName, messageVersion, mobilePhone, notificationURL, payTokenInd, paymentAuthenticationUseCase, purchaseInstalData, recurringExpiry, recurringFrequency, sdkAppID, sdkEncData, sdkEphemPubKey, sdkMaxTimeout, sdkReferenceNumber, sdkTransID, sdkVersion, threeDSCompInd, threeDSRequestorAuthenticationInd, threeDSRequestorAuthenticationInfo, threeDSRequestorChallengeInd, threeDSRequestorID, threeDSRequestorName, threeDSRequestorPriorAuthenticationInfo, threeDSRequestorURL, transType, transactionType, whiteListStatus, workPhone); } @Override @@ -2216,9 +1802,7 @@ public String toString() { sb.append(" authenticationOnly: ").append(toIndentedString(authenticationOnly)).append("\n"); sb.append(" challengeIndicator: ").append(toIndentedString(challengeIndicator)).append("\n"); sb.append(" deviceChannel: ").append(toIndentedString(deviceChannel)).append("\n"); - sb.append(" deviceRenderOptions: ") - .append(toIndentedString(deviceRenderOptions)) - .append("\n"); + sb.append(" deviceRenderOptions: ").append(toIndentedString(deviceRenderOptions)).append("\n"); sb.append(" homePhone: ").append(toIndentedString(homePhone)).append("\n"); sb.append(" mcc: ").append(toIndentedString(mcc)).append("\n"); sb.append(" merchantName: ").append(toIndentedString(merchantName)).append("\n"); @@ -2226,9 +1810,7 @@ public String toString() { sb.append(" mobilePhone: ").append(toIndentedString(mobilePhone)).append("\n"); sb.append(" notificationURL: ").append(toIndentedString(notificationURL)).append("\n"); sb.append(" payTokenInd: ").append(toIndentedString(payTokenInd)).append("\n"); - sb.append(" paymentAuthenticationUseCase: ") - .append(toIndentedString(paymentAuthenticationUseCase)) - .append("\n"); + sb.append(" paymentAuthenticationUseCase: ").append(toIndentedString(paymentAuthenticationUseCase)).append("\n"); sb.append(" purchaseInstalData: ").append(toIndentedString(purchaseInstalData)).append("\n"); sb.append(" recurringExpiry: ").append(toIndentedString(recurringExpiry)).append("\n"); sb.append(" recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n"); @@ -2240,25 +1822,13 @@ public String toString() { sb.append(" sdkTransID: ").append(toIndentedString(sdkTransID)).append("\n"); sb.append(" sdkVersion: ").append(toIndentedString(sdkVersion)).append("\n"); sb.append(" threeDSCompInd: ").append(toIndentedString(threeDSCompInd)).append("\n"); - sb.append(" threeDSRequestorAuthenticationInd: ") - .append(toIndentedString(threeDSRequestorAuthenticationInd)) - .append("\n"); - sb.append(" threeDSRequestorAuthenticationInfo: ") - .append(toIndentedString(threeDSRequestorAuthenticationInfo)) - .append("\n"); - sb.append(" threeDSRequestorChallengeInd: ") - .append(toIndentedString(threeDSRequestorChallengeInd)) - .append("\n"); + sb.append(" threeDSRequestorAuthenticationInd: ").append(toIndentedString(threeDSRequestorAuthenticationInd)).append("\n"); + sb.append(" threeDSRequestorAuthenticationInfo: ").append(toIndentedString(threeDSRequestorAuthenticationInfo)).append("\n"); + sb.append(" threeDSRequestorChallengeInd: ").append(toIndentedString(threeDSRequestorChallengeInd)).append("\n"); sb.append(" threeDSRequestorID: ").append(toIndentedString(threeDSRequestorID)).append("\n"); - sb.append(" threeDSRequestorName: ") - .append(toIndentedString(threeDSRequestorName)) - .append("\n"); - sb.append(" threeDSRequestorPriorAuthenticationInfo: ") - .append(toIndentedString(threeDSRequestorPriorAuthenticationInfo)) - .append("\n"); - sb.append(" threeDSRequestorURL: ") - .append(toIndentedString(threeDSRequestorURL)) - .append("\n"); + sb.append(" threeDSRequestorName: ").append(toIndentedString(threeDSRequestorName)).append("\n"); + sb.append(" threeDSRequestorPriorAuthenticationInfo: ").append(toIndentedString(threeDSRequestorPriorAuthenticationInfo)).append("\n"); + sb.append(" threeDSRequestorURL: ").append(toIndentedString(threeDSRequestorURL)).append("\n"); sb.append(" transType: ").append(toIndentedString(transType)).append("\n"); sb.append(" transactionType: ").append(toIndentedString(transactionType)).append("\n"); sb.append(" whiteListStatus: ").append(toIndentedString(whiteListStatus)).append("\n"); @@ -2268,7 +1838,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -2277,23 +1848,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ThreeDS2RequestData given an JSON string * * @param jsonString JSON string * @return An instance of ThreeDS2RequestData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ThreeDS2RequestData + * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDS2RequestData */ public static ThreeDS2RequestData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDS2RequestData.class); } - - /** - * Convert an instance of ThreeDS2RequestData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ThreeDS2RequestData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ThreeDS2RequestFields.java b/src/main/java/com/adyen/model/checkout/ThreeDS2RequestFields.java index a8895bd16..8ce838d97 100644 --- a/src/main/java/com/adyen/model/checkout/ThreeDS2RequestFields.java +++ b/src/main/java/com/adyen/model/checkout/ThreeDS2RequestFields.java @@ -2,26 +2,37 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.AcctInfo; +import com.adyen.model.checkout.DeviceRenderOptions; +import com.adyen.model.checkout.Phone; +import com.adyen.model.checkout.SDKEphemPubKey; +import com.adyen.model.checkout.ThreeDSRequestorAuthenticationInfo; +import com.adyen.model.checkout.ThreeDSRequestorPriorAuthenticationInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ThreeDS2RequestFields */ +/** + * ThreeDS2RequestFields + */ @JsonPropertyOrder({ ThreeDS2RequestFields.JSON_PROPERTY_ACCT_INFO, ThreeDS2RequestFields.JSON_PROPERTY_ACCT_TYPE, @@ -60,15 +71,16 @@ ThreeDS2RequestFields.JSON_PROPERTY_WHITE_LIST_STATUS, ThreeDS2RequestFields.JSON_PROPERTY_WORK_PHONE }) + public class ThreeDS2RequestFields { public static final String JSON_PROPERTY_ACCT_INFO = "acctInfo"; private AcctInfo acctInfo; /** - * Indicates the type of account. For example, for a multi-account card product. Length: 2 - * characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + * Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit */ public enum AcctTypeEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -80,7 +92,7 @@ public enum AcctTypeEnum { private String value; AcctTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -101,11 +113,7 @@ public static AcctTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AcctTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AcctTypeEnum.values())); + LOG.warning("AcctTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AcctTypeEnum.values())); return null; } } @@ -120,11 +128,10 @@ public static AcctTypeEnum fromValue(String value) { private String acquirerMerchantID; /** - * Indicates whether the cardholder shipping Address and cardholder billing address are the same. - * Allowed values: * **Y** — Shipping Address matches Billing Address. * **N** — Shipping Address - * does not match Billing Address. + * Indicates whether the cardholder shipping Address and cardholder billing address are the same. Allowed values: * **Y** — Shipping Address matches Billing Address. * **N** — Shipping Address does not match Billing Address. */ public enum AddrMatchEnum { + Y(String.valueOf("Y")), N(String.valueOf("N")); @@ -134,7 +141,7 @@ public enum AddrMatchEnum { private String value; AddrMatchEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -155,11 +162,7 @@ public static AddrMatchEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AddrMatchEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AddrMatchEnum.values())); + LOG.warning("AddrMatchEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AddrMatchEnum.values())); return null; } } @@ -172,11 +175,10 @@ public static AddrMatchEnum fromValue(String value) { private Boolean authenticationOnly; /** - * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: - * * `noPreference` * `requestNoChallenge` * `requestChallenge` * - * `requestChallengeAsMandate` + * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` */ public enum ChallengeIndicatorEnum { + NOPREFERENCE(String.valueOf("noPreference")), REQUESTNOCHALLENGE(String.valueOf("requestNoChallenge")), @@ -190,7 +192,7 @@ public enum ChallengeIndicatorEnum { private String value; ChallengeIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -211,18 +213,13 @@ public static ChallengeIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ChallengeIndicatorEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ChallengeIndicatorEnum.values())); + LOG.warning("ChallengeIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChallengeIndicatorEnum.values())); return null; } } public static final String JSON_PROPERTY_CHALLENGE_INDICATOR = "challengeIndicator"; - @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` - // instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` instead. private ChallengeIndicatorEnum challengeIndicator; public static final String JSON_PROPERTY_DEVICE_RENDER_OPTIONS = "deviceRenderOptions"; @@ -249,8 +246,7 @@ public static ChallengeIndicatorEnum fromValue(String value) { public static final String JSON_PROPERTY_PAY_TOKEN_IND = "payTokenInd"; private Boolean payTokenInd; - public static final String JSON_PROPERTY_PAYMENT_AUTHENTICATION_USE_CASE = - "paymentAuthenticationUseCase"; + public static final String JSON_PROPERTY_PAYMENT_AUTHENTICATION_USE_CASE = "paymentAuthenticationUseCase"; private String paymentAuthenticationUseCase; public static final String JSON_PROPERTY_PURCHASE_INSTAL_DATA = "purchaseInstalData"; @@ -280,21 +276,17 @@ public static ChallengeIndicatorEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_COMP_IND = "threeDSCompInd"; private String threeDSCompInd; - public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_IND = - "threeDSRequestorAuthenticationInd"; + public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_IND = "threeDSRequestorAuthenticationInd"; private String threeDSRequestorAuthenticationInd; - public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_INFO = - "threeDSRequestorAuthenticationInfo"; + public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_INFO = "threeDSRequestorAuthenticationInfo"; private ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo; /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No - * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor - * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional - * risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only */ public enum ThreeDSRequestorChallengeIndEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -307,13 +299,12 @@ public enum ThreeDSRequestorChallengeIndEnum { _06(String.valueOf("06")); - private static final Logger LOG = - Logger.getLogger(ThreeDSRequestorChallengeIndEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(ThreeDSRequestorChallengeIndEnum.class.getName()); private String value; ThreeDSRequestorChallengeIndEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -334,17 +325,12 @@ public static ThreeDSRequestorChallengeIndEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ThreeDSRequestorChallengeIndEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ThreeDSRequestorChallengeIndEnum.values())); + LOG.warning("ThreeDSRequestorChallengeIndEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ThreeDSRequestorChallengeIndEnum.values())); return null; } } - public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND = - "threeDSRequestorChallengeInd"; + public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND = "threeDSRequestorChallengeInd"; private ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd; public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_I_D = "threeDSRequestorID"; @@ -353,19 +339,17 @@ public static ThreeDSRequestorChallengeIndEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_NAME = "threeDSRequestorName"; private String threeDSRequestorName; - public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_PRIOR_AUTHENTICATION_INFO = - "threeDSRequestorPriorAuthenticationInfo"; + public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_PRIOR_AUTHENTICATION_INFO = "threeDSRequestorPriorAuthenticationInfo"; private ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo; public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_U_R_L = "threeDSRequestorURL"; private String threeDSRequestorURL; /** - * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * - * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** - * — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load */ public enum TransTypeEnum { + _01(String.valueOf("01")), _03(String.valueOf("03")), @@ -381,7 +365,7 @@ public enum TransTypeEnum { private String value; TransTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -402,11 +386,7 @@ public static TransTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TransTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TransTypeEnum.values())); + LOG.warning("TransTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TransTypeEnum.values())); return null; } } @@ -414,8 +394,11 @@ public static TransTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANS_TYPE = "transType"; private TransTypeEnum transType; - /** Identify the type of the transaction being authenticated. */ + /** + * Identify the type of the transaction being authenticated. + */ public enum TransactionTypeEnum { + GOODSORSERVICEPURCHASE(String.valueOf("goodsOrServicePurchase")), CHECKACCEPTANCE(String.valueOf("checkAcceptance")), @@ -431,7 +414,7 @@ public enum TransactionTypeEnum { private String value; TransactionTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -452,11 +435,7 @@ public static TransactionTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TransactionTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TransactionTypeEnum.values())); + LOG.warning("TransactionTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TransactionTypeEnum.values())); return null; } } @@ -470,12 +449,13 @@ public static TransactionTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_WORK_PHONE = "workPhone"; private Phone workPhone; - public ThreeDS2RequestFields() {} + public ThreeDS2RequestFields() { + } /** * acctInfo * - * @param acctInfo + * @param acctInfo * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields acctInfo(AcctInfo acctInfo) { @@ -485,8 +465,7 @@ public ThreeDS2RequestFields acctInfo(AcctInfo acctInfo) { /** * Get acctInfo - * - * @return acctInfo + * @return acctInfo */ @JsonProperty(JSON_PROPERTY_ACCT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -497,7 +476,7 @@ public AcctInfo getAcctInfo() { /** * acctInfo * - * @param acctInfo + * @param acctInfo */ @JsonProperty(JSON_PROPERTY_ACCT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -506,12 +485,9 @@ public void setAcctInfo(AcctInfo acctInfo) { } /** - * Indicates the type of account. For example, for a multi-account card product. Length: 2 - * characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + * Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit * - * @param acctType Indicates the type of account. For example, for a multi-account card product. - * Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** - * — Debit + * @param acctType Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields acctType(AcctTypeEnum acctType) { @@ -520,12 +496,8 @@ public ThreeDS2RequestFields acctType(AcctTypeEnum acctType) { } /** - * Indicates the type of account. For example, for a multi-account card product. Length: 2 - * characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit - * - * @return acctType Indicates the type of account. For example, for a multi-account card product. - * Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** - * — Debit + * Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + * @return acctType Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit */ @JsonProperty(JSON_PROPERTY_ACCT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -534,12 +506,9 @@ public AcctTypeEnum getAcctType() { } /** - * Indicates the type of account. For example, for a multi-account card product. Length: 2 - * characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + * Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit * - * @param acctType Indicates the type of account. For example, for a multi-account card product. - * Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** - * — Debit + * @param acctType Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit */ @JsonProperty(JSON_PROPERTY_ACCT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -548,15 +517,9 @@ public void setAcctType(AcctTypeEnum acctType) { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will - * use in the authorisation. Use 123456 on the Test platform. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. * - * @param acquirerBIN Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you - * will use in the authorisation. Use 123456 on the Test platform. + * @param acquirerBIN Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields acquirerBIN(String acquirerBIN) { @@ -565,15 +528,8 @@ public ThreeDS2RequestFields acquirerBIN(String acquirerBIN) { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will - * use in the authorisation. Use 123456 on the Test platform. - * - * @return acquirerBIN Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you - * will use in the authorisation. Use 123456 on the Test platform. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * @return acquirerBIN Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_B_I_N) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -582,15 +538,9 @@ public String getAcquirerBIN() { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will - * use in the authorisation. Use 123456 on the Test platform. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. * - * @param acquirerBIN Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you - * will use in the authorisation. Use 123456 on the Test platform. + * @param acquirerBIN Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_B_I_N) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -599,16 +549,9 @@ public void setAcquirerBIN(String acquirerBIN) { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string - * should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. * - * @param acquirerMerchantID Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string - * should match the value that you will use in the authorisation. Use 123456 on the Test - * platform. + * @param acquirerMerchantID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields acquirerMerchantID(String acquirerMerchantID) { @@ -617,16 +560,8 @@ public ThreeDS2RequestFields acquirerMerchantID(String acquirerMerchantID) { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string - * should match the value that you will use in the authorisation. Use 123456 on the Test platform. - * - * @return acquirerMerchantID Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string - * should match the value that you will use in the authorisation. Use 123456 on the Test - * platform. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * @return acquirerMerchantID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_MERCHANT_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -635,16 +570,9 @@ public String getAcquirerMerchantID() { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string - * should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. * - * @param acquirerMerchantID Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string - * should match the value that you will use in the authorisation. Use 123456 on the Test - * platform. + * @param acquirerMerchantID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_MERCHANT_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -653,13 +581,9 @@ public void setAcquirerMerchantID(String acquirerMerchantID) { } /** - * Indicates whether the cardholder shipping Address and cardholder billing address are the same. - * Allowed values: * **Y** — Shipping Address matches Billing Address. * **N** — Shipping Address - * does not match Billing Address. + * Indicates whether the cardholder shipping Address and cardholder billing address are the same. Allowed values: * **Y** — Shipping Address matches Billing Address. * **N** — Shipping Address does not match Billing Address. * - * @param addrMatch Indicates whether the cardholder shipping Address and cardholder billing - * address are the same. Allowed values: * **Y** — Shipping Address matches Billing Address. * - * **N** — Shipping Address does not match Billing Address. + * @param addrMatch Indicates whether the cardholder shipping Address and cardholder billing address are the same. Allowed values: * **Y** — Shipping Address matches Billing Address. * **N** — Shipping Address does not match Billing Address. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields addrMatch(AddrMatchEnum addrMatch) { @@ -668,13 +592,8 @@ public ThreeDS2RequestFields addrMatch(AddrMatchEnum addrMatch) { } /** - * Indicates whether the cardholder shipping Address and cardholder billing address are the same. - * Allowed values: * **Y** — Shipping Address matches Billing Address. * **N** — Shipping Address - * does not match Billing Address. - * - * @return addrMatch Indicates whether the cardholder shipping Address and cardholder billing - * address are the same. Allowed values: * **Y** — Shipping Address matches Billing Address. * - * **N** — Shipping Address does not match Billing Address. + * Indicates whether the cardholder shipping Address and cardholder billing address are the same. Allowed values: * **Y** — Shipping Address matches Billing Address. * **N** — Shipping Address does not match Billing Address. + * @return addrMatch Indicates whether the cardholder shipping Address and cardholder billing address are the same. Allowed values: * **Y** — Shipping Address matches Billing Address. * **N** — Shipping Address does not match Billing Address. */ @JsonProperty(JSON_PROPERTY_ADDR_MATCH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -683,13 +602,9 @@ public AddrMatchEnum getAddrMatch() { } /** - * Indicates whether the cardholder shipping Address and cardholder billing address are the same. - * Allowed values: * **Y** — Shipping Address matches Billing Address. * **N** — Shipping Address - * does not match Billing Address. + * Indicates whether the cardholder shipping Address and cardholder billing address are the same. Allowed values: * **Y** — Shipping Address matches Billing Address. * **N** — Shipping Address does not match Billing Address. * - * @param addrMatch Indicates whether the cardholder shipping Address and cardholder billing - * address are the same. Allowed values: * **Y** — Shipping Address matches Billing Address. * - * **N** — Shipping Address does not match Billing Address. + * @param addrMatch Indicates whether the cardholder shipping Address and cardholder billing address are the same. Allowed values: * **Y** — Shipping Address matches Billing Address. * **N** — Shipping Address does not match Billing Address. */ @JsonProperty(JSON_PROPERTY_ADDR_MATCH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -698,15 +613,13 @@ public void setAddrMatch(AddrMatchEnum addrMatch) { } /** - * If set to true, you will only perform the [3D Secure 2 - * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), - * and not the payment authorisation. + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. * - * @param authenticationOnly If set to true, you will only perform the [3D Secure 2 - * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), - * and not the payment authorisation. + * @param authenticationOnly If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v50 Use `threeDSAuthenticationOnly` instead. + * + * @deprecated since Adyen Checkout API v50 + * Use `threeDSAuthenticationOnly` instead. */ @Deprecated // deprecated since Adyen Checkout API v50: Use `threeDSAuthenticationOnly` instead. public ThreeDS2RequestFields authenticationOnly(Boolean authenticationOnly) { @@ -715,15 +628,9 @@ public ThreeDS2RequestFields authenticationOnly(Boolean authenticationOnly) { } /** - * If set to true, you will only perform the [3D Secure 2 - * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), - * and not the payment authorisation. - * - * @return authenticationOnly If set to true, you will only perform the [3D Secure 2 - * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), - * and not the payment authorisation. - * @deprecated // deprecated since Adyen Checkout API v50: Use `threeDSAuthenticationOnly` - * instead. + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. + * @return authenticationOnly If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. + * @deprecated // deprecated since Adyen Checkout API v50: Use `threeDSAuthenticationOnly` instead. */ @Deprecated // deprecated since Adyen Checkout API v50: Use `threeDSAuthenticationOnly` instead. @JsonProperty(JSON_PROPERTY_AUTHENTICATION_ONLY) @@ -733,14 +640,12 @@ public Boolean getAuthenticationOnly() { } /** - * If set to true, you will only perform the [3D Secure 2 - * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), - * and not the payment authorisation. + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. + * + * @param authenticationOnly If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. * - * @param authenticationOnly If set to true, you will only perform the [3D Secure 2 - * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), - * and not the payment authorisation. - * @deprecated since Adyen Checkout API v50 Use `threeDSAuthenticationOnly` instead. + * @deprecated since Adyen Checkout API v50 + * Use `threeDSAuthenticationOnly` instead. */ @Deprecated // deprecated since Adyen Checkout API v50: Use `threeDSAuthenticationOnly` instead. @JsonProperty(JSON_PROPERTY_AUTHENTICATION_ONLY) @@ -750,36 +655,26 @@ public void setAuthenticationOnly(Boolean authenticationOnly) { } /** - * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: - * * `noPreference` * `requestNoChallenge` * `requestChallenge` * - * `requestChallengeAsMandate` + * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` * - * @param challengeIndicator Possibility to specify a preference for receiving a challenge from - * the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * - * `requestChallenge` * `requestChallengeAsMandate` + * @param challengeIndicator Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v68 Use `threeDSRequestorChallengeInd` instead. + * + * @deprecated since Adyen Checkout API v68 + * Use `threeDSRequestorChallengeInd` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` - // instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` instead. public ThreeDS2RequestFields challengeIndicator(ChallengeIndicatorEnum challengeIndicator) { this.challengeIndicator = challengeIndicator; return this; } /** - * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: - * * `noPreference` * `requestNoChallenge` * `requestChallenge` * - * `requestChallengeAsMandate` - * - * @return challengeIndicator Possibility to specify a preference for receiving a challenge from - * the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * - * `requestChallenge` * `requestChallengeAsMandate` - * @deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` - * instead. + * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` + * @return challengeIndicator Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` + * @deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` - // instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` instead. @JsonProperty(JSON_PROPERTY_CHALLENGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ChallengeIndicatorEnum getChallengeIndicator() { @@ -787,17 +682,14 @@ public ChallengeIndicatorEnum getChallengeIndicator() { } /** - * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: - * * `noPreference` * `requestNoChallenge` * `requestChallenge` * - * `requestChallengeAsMandate` + * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` * - * @param challengeIndicator Possibility to specify a preference for receiving a challenge from - * the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * - * `requestChallenge` * `requestChallengeAsMandate` - * @deprecated since Adyen Checkout API v68 Use `threeDSRequestorChallengeInd` instead. + * @param challengeIndicator Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` + * + * @deprecated since Adyen Checkout API v68 + * Use `threeDSRequestorChallengeInd` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` - // instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` instead. @JsonProperty(JSON_PROPERTY_CHALLENGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setChallengeIndicator(ChallengeIndicatorEnum challengeIndicator) { @@ -807,7 +699,7 @@ public void setChallengeIndicator(ChallengeIndicatorEnum challengeIndicator) { /** * deviceRenderOptions * - * @param deviceRenderOptions + * @param deviceRenderOptions * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields deviceRenderOptions(DeviceRenderOptions deviceRenderOptions) { @@ -817,8 +709,7 @@ public ThreeDS2RequestFields deviceRenderOptions(DeviceRenderOptions deviceRende /** * Get deviceRenderOptions - * - * @return deviceRenderOptions + * @return deviceRenderOptions */ @JsonProperty(JSON_PROPERTY_DEVICE_RENDER_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -829,7 +720,7 @@ public DeviceRenderOptions getDeviceRenderOptions() { /** * deviceRenderOptions * - * @param deviceRenderOptions + * @param deviceRenderOptions */ @JsonProperty(JSON_PROPERTY_DEVICE_RENDER_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -840,7 +731,7 @@ public void setDeviceRenderOptions(DeviceRenderOptions deviceRenderOptions) { /** * homePhone * - * @param homePhone + * @param homePhone * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields homePhone(Phone homePhone) { @@ -850,8 +741,7 @@ public ThreeDS2RequestFields homePhone(Phone homePhone) { /** * Get homePhone - * - * @return homePhone + * @return homePhone */ @JsonProperty(JSON_PROPERTY_HOME_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -862,7 +752,7 @@ public Phone getHomePhone() { /** * homePhone * - * @param homePhone + * @param homePhone */ @JsonProperty(JSON_PROPERTY_HOME_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -871,17 +761,9 @@ public void setHomePhone(Phone homePhone) { } /** - * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, - * mostly [authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The `mcc` is a four-digit code with which the previously given - * `acquirerMerchantID` is registered at the scheme. + * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. * - * @param mcc Required for merchants that have been enrolled for 3D Secure 2 by another party than - * Adyen, mostly [authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The `mcc` is a four-digit code with which the previously given - * `acquirerMerchantID` is registered at the scheme. + * @param mcc Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields mcc(String mcc) { @@ -890,17 +772,8 @@ public ThreeDS2RequestFields mcc(String mcc) { } /** - * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, - * mostly [authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The `mcc` is a four-digit code with which the previously given - * `acquirerMerchantID` is registered at the scheme. - * - * @return mcc Required for merchants that have been enrolled for 3D Secure 2 by another party - * than Adyen, mostly [authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The `mcc` is a four-digit code with which the previously given - * `acquirerMerchantID` is registered at the scheme. + * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. + * @return mcc Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -909,17 +782,9 @@ public String getMcc() { } /** - * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, - * mostly [authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The `mcc` is a four-digit code with which the previously given - * `acquirerMerchantID` is registered at the scheme. + * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. * - * @param mcc Required for merchants that have been enrolled for 3D Secure 2 by another party than - * Adyen, mostly [authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The `mcc` is a four-digit code with which the previously given - * `acquirerMerchantID` is registered at the scheme. + * @param mcc Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -928,23 +793,9 @@ public void setMcc(String mcc) { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchant name that the issuer presents to the shopper if they get a challenge. We recommend - * to use the same value that you will use in the authorization. Maximum length is 40 characters. - * > Optional for a [full 3D Secure 2 - * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use - * this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name - * already configured on your account. - * - * @param merchantName Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchant name that the issuer presents to the shopper if they get a challenge. We - * recommend to use the same value that you will use in the authorization. Maximum length is - * 40 characters. > Optional for a [full 3D Secure 2 - * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). - * Use this field if you are enrolled for 3D Secure 2 with us and want to override the - * merchant name already configured on your account. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. + * + * @param merchantName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields merchantName(String merchantName) { @@ -953,23 +804,8 @@ public ThreeDS2RequestFields merchantName(String merchantName) { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchant name that the issuer presents to the shopper if they get a challenge. We recommend - * to use the same value that you will use in the authorization. Maximum length is 40 characters. - * > Optional for a [full 3D Secure 2 - * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use - * this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name - * already configured on your account. - * - * @return merchantName Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchant name that the issuer presents to the shopper if they get a challenge. We - * recommend to use the same value that you will use in the authorization. Maximum length is - * 40 characters. > Optional for a [full 3D Secure 2 - * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). - * Use this field if you are enrolled for 3D Secure 2 with us and want to override the - * merchant name already configured on your account. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. + * @return merchantName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. */ @JsonProperty(JSON_PROPERTY_MERCHANT_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -978,23 +814,9 @@ public String getMerchantName() { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchant name that the issuer presents to the shopper if they get a challenge. We recommend - * to use the same value that you will use in the authorization. Maximum length is 40 characters. - * > Optional for a [full 3D Secure 2 - * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use - * this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name - * already configured on your account. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. * - * @param merchantName Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchant name that the issuer presents to the shopper if they get a challenge. We - * recommend to use the same value that you will use in the authorization. Maximum length is - * 40 characters. > Optional for a [full 3D Secure 2 - * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). - * Use this field if you are enrolled for 3D Secure 2 with us and want to override the - * merchant name already configured on your account. + * @param merchantName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. */ @JsonProperty(JSON_PROPERTY_MERCHANT_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1005,8 +827,7 @@ public void setMerchantName(String merchantName) { /** * The `messageVersion` value indicating the 3D Secure 2 protocol version. * - * @param messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol - * version. + * @param messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol version. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields messageVersion(String messageVersion) { @@ -1016,9 +837,7 @@ public ThreeDS2RequestFields messageVersion(String messageVersion) { /** * The `messageVersion` value indicating the 3D Secure 2 protocol version. - * - * @return messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol - * version. + * @return messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol version. */ @JsonProperty(JSON_PROPERTY_MESSAGE_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1029,8 +848,7 @@ public String getMessageVersion() { /** * The `messageVersion` value indicating the 3D Secure 2 protocol version. * - * @param messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol - * version. + * @param messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol version. */ @JsonProperty(JSON_PROPERTY_MESSAGE_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1041,7 +859,7 @@ public void setMessageVersion(String messageVersion) { /** * mobilePhone * - * @param mobilePhone + * @param mobilePhone * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields mobilePhone(Phone mobilePhone) { @@ -1051,8 +869,7 @@ public ThreeDS2RequestFields mobilePhone(Phone mobilePhone) { /** * Get mobilePhone - * - * @return mobilePhone + * @return mobilePhone */ @JsonProperty(JSON_PROPERTY_MOBILE_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1063,7 +880,7 @@ public Phone getMobilePhone() { /** * mobilePhone * - * @param mobilePhone + * @param mobilePhone */ @JsonProperty(JSON_PROPERTY_MOBILE_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1072,13 +889,9 @@ public void setMobilePhone(Phone mobilePhone) { } /** - * URL to where the issuer should send the `CRes`. Required if you are not using - * components for `channel` **Web** or if you are using classic integration - * `deviceChannel` **browser**. + * URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. * - * @param notificationURL URL to where the issuer should send the `CRes`. Required if - * you are not using components for `channel` **Web** or if you are using classic - * integration `deviceChannel` **browser**. + * @param notificationURL URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields notificationURL(String notificationURL) { @@ -1087,13 +900,8 @@ public ThreeDS2RequestFields notificationURL(String notificationURL) { } /** - * URL to where the issuer should send the `CRes`. Required if you are not using - * components for `channel` **Web** or if you are using classic integration - * `deviceChannel` **browser**. - * - * @return notificationURL URL to where the issuer should send the `CRes`. Required if - * you are not using components for `channel` **Web** or if you are using classic - * integration `deviceChannel` **browser**. + * URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. + * @return notificationURL URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1102,13 +910,9 @@ public String getNotificationURL() { } /** - * URL to where the issuer should send the `CRes`. Required if you are not using - * components for `channel` **Web** or if you are using classic integration - * `deviceChannel` **browser**. + * URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. * - * @param notificationURL URL to where the issuer should send the `CRes`. Required if - * you are not using components for `channel` **Web** or if you are using classic - * integration `deviceChannel` **browser**. + * @param notificationURL URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1117,11 +921,9 @@ public void setNotificationURL(String notificationURL) { } /** - * Value **true** indicates that the transaction was de-tokenised prior to being received by the - * ACS. + * Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. * - * @param payTokenInd Value **true** indicates that the transaction was de-tokenised prior to - * being received by the ACS. + * @param payTokenInd Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields payTokenInd(Boolean payTokenInd) { @@ -1130,11 +932,8 @@ public ThreeDS2RequestFields payTokenInd(Boolean payTokenInd) { } /** - * Value **true** indicates that the transaction was de-tokenised prior to being received by the - * ACS. - * - * @return payTokenInd Value **true** indicates that the transaction was de-tokenised prior to - * being received by the ACS. + * Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. + * @return payTokenInd Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. */ @JsonProperty(JSON_PROPERTY_PAY_TOKEN_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1143,11 +942,9 @@ public Boolean getPayTokenInd() { } /** - * Value **true** indicates that the transaction was de-tokenised prior to being received by the - * ACS. + * Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. * - * @param payTokenInd Value **true** indicates that the transaction was de-tokenised prior to - * being received by the ACS. + * @param payTokenInd Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. */ @JsonProperty(JSON_PROPERTY_PAY_TOKEN_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1158,8 +955,7 @@ public void setPayTokenInd(Boolean payTokenInd) { /** * Indicates the type of payment for which an authentication is requested (message extension) * - * @param paymentAuthenticationUseCase Indicates the type of payment for which an authentication - * is requested (message extension) + * @param paymentAuthenticationUseCase Indicates the type of payment for which an authentication is requested (message extension) * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields paymentAuthenticationUseCase(String paymentAuthenticationUseCase) { @@ -1169,9 +965,7 @@ public ThreeDS2RequestFields paymentAuthenticationUseCase(String paymentAuthenti /** * Indicates the type of payment for which an authentication is requested (message extension) - * - * @return paymentAuthenticationUseCase Indicates the type of payment for which an authentication - * is requested (message extension) + * @return paymentAuthenticationUseCase Indicates the type of payment for which an authentication is requested (message extension) */ @JsonProperty(JSON_PROPERTY_PAYMENT_AUTHENTICATION_USE_CASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1182,8 +976,7 @@ public String getPaymentAuthenticationUseCase() { /** * Indicates the type of payment for which an authentication is requested (message extension) * - * @param paymentAuthenticationUseCase Indicates the type of payment for which an authentication - * is requested (message extension) + * @param paymentAuthenticationUseCase Indicates the type of payment for which an authentication is requested (message extension) */ @JsonProperty(JSON_PROPERTY_PAYMENT_AUTHENTICATION_USE_CASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1192,11 +985,9 @@ public void setPaymentAuthenticationUseCase(String paymentAuthenticationUseCase) } /** - * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 - * characters. + * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. * - * @param purchaseInstalData Indicates the maximum number of authorisations permitted for - * instalment payments. Length: 1–3 characters. + * @param purchaseInstalData Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields purchaseInstalData(String purchaseInstalData) { @@ -1205,11 +996,8 @@ public ThreeDS2RequestFields purchaseInstalData(String purchaseInstalData) { } /** - * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 - * characters. - * - * @return purchaseInstalData Indicates the maximum number of authorisations permitted for - * instalment payments. Length: 1–3 characters. + * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. + * @return purchaseInstalData Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. */ @JsonProperty(JSON_PROPERTY_PURCHASE_INSTAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1218,11 +1006,9 @@ public String getPurchaseInstalData() { } /** - * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 - * characters. + * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. * - * @param purchaseInstalData Indicates the maximum number of authorisations permitted for - * instalment payments. Length: 1–3 characters. + * @param purchaseInstalData Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. */ @JsonProperty(JSON_PROPERTY_PURCHASE_INSTAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1233,8 +1019,7 @@ public void setPurchaseInstalData(String purchaseInstalData) { /** * Date after which no further authorisations shall be performed. Format: YYYYMMDD * - * @param recurringExpiry Date after which no further authorisations shall be performed. Format: - * YYYYMMDD + * @param recurringExpiry Date after which no further authorisations shall be performed. Format: YYYYMMDD * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields recurringExpiry(String recurringExpiry) { @@ -1244,9 +1029,7 @@ public ThreeDS2RequestFields recurringExpiry(String recurringExpiry) { /** * Date after which no further authorisations shall be performed. Format: YYYYMMDD - * - * @return recurringExpiry Date after which no further authorisations shall be performed. Format: - * YYYYMMDD + * @return recurringExpiry Date after which no further authorisations shall be performed. Format: YYYYMMDD */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1257,8 +1040,7 @@ public String getRecurringExpiry() { /** * Date after which no further authorisations shall be performed. Format: YYYYMMDD * - * @param recurringExpiry Date after which no further authorisations shall be performed. Format: - * YYYYMMDD + * @param recurringExpiry Date after which no further authorisations shall be performed. Format: YYYYMMDD */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1269,8 +1051,7 @@ public void setRecurringExpiry(String recurringExpiry) { /** * Indicates the minimum number of days between authorisations. Maximum length: 4 characters. * - * @param recurringFrequency Indicates the minimum number of days between authorisations. Maximum - * length: 4 characters. + * @param recurringFrequency Indicates the minimum number of days between authorisations. Maximum length: 4 characters. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields recurringFrequency(String recurringFrequency) { @@ -1280,9 +1061,7 @@ public ThreeDS2RequestFields recurringFrequency(String recurringFrequency) { /** * Indicates the minimum number of days between authorisations. Maximum length: 4 characters. - * - * @return recurringFrequency Indicates the minimum number of days between authorisations. Maximum - * length: 4 characters. + * @return recurringFrequency Indicates the minimum number of days between authorisations. Maximum length: 4 characters. */ @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1293,8 +1072,7 @@ public String getRecurringFrequency() { /** * Indicates the minimum number of days between authorisations. Maximum length: 4 characters. * - * @param recurringFrequency Indicates the minimum number of days between authorisations. Maximum - * length: 4 characters. + * @param recurringFrequency Indicates the minimum number of days between authorisations. Maximum length: 4 characters. */ @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1315,7 +1093,6 @@ public ThreeDS2RequestFields sdkAppID(String sdkAppID) { /** * The `sdkAppID` value as received from the 3D Secure 2 SDK. - * * @return sdkAppID The `sdkAppID` value as received from the 3D Secure 2 SDK. */ @JsonProperty(JSON_PROPERTY_SDK_APP_I_D) @@ -1338,7 +1115,7 @@ public void setSdkAppID(String sdkAppID) { /** * sdkEphemPubKey * - * @param sdkEphemPubKey + * @param sdkEphemPubKey * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields sdkEphemPubKey(SDKEphemPubKey sdkEphemPubKey) { @@ -1348,8 +1125,7 @@ public ThreeDS2RequestFields sdkEphemPubKey(SDKEphemPubKey sdkEphemPubKey) { /** * Get sdkEphemPubKey - * - * @return sdkEphemPubKey + * @return sdkEphemPubKey */ @JsonProperty(JSON_PROPERTY_SDK_EPHEM_PUB_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1360,7 +1136,7 @@ public SDKEphemPubKey getSdkEphemPubKey() { /** * sdkEphemPubKey * - * @param sdkEphemPubKey + * @param sdkEphemPubKey */ @JsonProperty(JSON_PROPERTY_SDK_EPHEM_PUB_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1369,12 +1145,9 @@ public void setSdkEphemPubKey(SDKEphemPubKey sdkEphemPubKey) { } /** - * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and - * only for `deviceChannel` set to **app**. Defaults to **60** minutes. + * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. * - * @param sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication - * process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** - * minutes. + * @param sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields sdkMaxTimeout(Integer sdkMaxTimeout) { @@ -1383,12 +1156,8 @@ public ThreeDS2RequestFields sdkMaxTimeout(Integer sdkMaxTimeout) { } /** - * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and - * only for `deviceChannel` set to **app**. Defaults to **60** minutes. - * - * @return sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication - * process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** - * minutes. + * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. + * @return sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. */ @JsonProperty(JSON_PROPERTY_SDK_MAX_TIMEOUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1397,12 +1166,9 @@ public Integer getSdkMaxTimeout() { } /** - * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and - * only for `deviceChannel` set to **app**. Defaults to **60** minutes. + * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. * - * @param sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication - * process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** - * minutes. + * @param sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. */ @JsonProperty(JSON_PROPERTY_SDK_MAX_TIMEOUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1413,8 +1179,7 @@ public void setSdkMaxTimeout(Integer sdkMaxTimeout) { /** * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. * - * @param sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D - * Secure 2 SDK. + * @param sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields sdkReferenceNumber(String sdkReferenceNumber) { @@ -1424,9 +1189,7 @@ public ThreeDS2RequestFields sdkReferenceNumber(String sdkReferenceNumber) { /** * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. - * - * @return sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D - * Secure 2 SDK. + * @return sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. */ @JsonProperty(JSON_PROPERTY_SDK_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1437,8 +1200,7 @@ public String getSdkReferenceNumber() { /** * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. * - * @param sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D - * Secure 2 SDK. + * @param sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. */ @JsonProperty(JSON_PROPERTY_SDK_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1459,7 +1221,6 @@ public ThreeDS2RequestFields sdkTransID(String sdkTransID) { /** * The `sdkTransID` value as received from the 3D Secure 2 SDK. - * * @return sdkTransID The `sdkTransID` value as received from the 3D Secure 2 SDK. */ @JsonProperty(JSON_PROPERTY_SDK_TRANS_I_D) @@ -1492,7 +1253,6 @@ public ThreeDS2RequestFields threeDSCompInd(String threeDSCompInd) { /** * Completion indicator for the device fingerprinting. - * * @return threeDSCompInd Completion indicator for the device fingerprinting. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_COMP_IND) @@ -1518,15 +1278,13 @@ public void setThreeDSCompInd(String threeDSCompInd) { * @param threeDSRequestorAuthenticationInd Indicates the type of Authentication request. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ - public ThreeDS2RequestFields threeDSRequestorAuthenticationInd( - String threeDSRequestorAuthenticationInd) { + public ThreeDS2RequestFields threeDSRequestorAuthenticationInd(String threeDSRequestorAuthenticationInd) { this.threeDSRequestorAuthenticationInd = threeDSRequestorAuthenticationInd; return this; } /** * Indicates the type of Authentication request. - * * @return threeDSRequestorAuthenticationInd Indicates the type of Authentication request. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_IND) @@ -1549,19 +1307,17 @@ public void setThreeDSRequestorAuthenticationInd(String threeDSRequestorAuthenti /** * threeDSRequestorAuthenticationInfo * - * @param threeDSRequestorAuthenticationInfo + * @param threeDSRequestorAuthenticationInfo * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ - public ThreeDS2RequestFields threeDSRequestorAuthenticationInfo( - ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo) { + public ThreeDS2RequestFields threeDSRequestorAuthenticationInfo(ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo) { this.threeDSRequestorAuthenticationInfo = threeDSRequestorAuthenticationInfo; return this; } /** * Get threeDSRequestorAuthenticationInfo - * - * @return threeDSRequestorAuthenticationInfo + * @return threeDSRequestorAuthenticationInfo */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1572,45 +1328,28 @@ public ThreeDSRequestorAuthenticationInfo getThreeDSRequestorAuthenticationInfo( /** * threeDSRequestorAuthenticationInfo * - * @param threeDSRequestorAuthenticationInfo + * @param threeDSRequestorAuthenticationInfo */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setThreeDSRequestorAuthenticationInfo( - ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo) { + public void setThreeDSRequestorAuthenticationInfo(ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo) { this.threeDSRequestorAuthenticationInfo = threeDSRequestorAuthenticationInfo; } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No - * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor - * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional - * risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only * - * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this - * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * - * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested - * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * - * **06** — Data Only + * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ - public ThreeDS2RequestFields threeDSRequestorChallengeInd( - ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { + public ThreeDS2RequestFields threeDSRequestorChallengeInd(ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { this.threeDSRequestorChallengeInd = threeDSRequestorChallengeInd; return this; } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No - * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor - * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional - * risk analysis is already performed) * **06** — Data Only - * - * @return threeDSRequestorChallengeInd Indicates whether a challenge is requested for this - * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * - * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested - * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * - * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * @return threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1619,34 +1358,20 @@ public ThreeDSRequestorChallengeIndEnum getThreeDSRequestorChallengeInd() { } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No - * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor - * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional - * risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only * - * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this - * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * - * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested - * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * - * **06** — Data Only + * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setThreeDSRequestorChallengeInd( - ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { + public void setThreeDSRequestorChallengeInd(ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { this.threeDSRequestorChallengeInd = threeDSRequestorChallengeInd; } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol - * for 3D Secure 2. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. * - * @param threeDSRequestorID Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you - * enrol for 3D Secure 2. + * @param threeDSRequestorID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields threeDSRequestorID(String threeDSRequestorID) { @@ -1655,15 +1380,8 @@ public ThreeDS2RequestFields threeDSRequestorID(String threeDSRequestorID) { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol - * for 3D Secure 2. - * - * @return threeDSRequestorID Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you - * enrol for 3D Secure 2. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. + * @return threeDSRequestorID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1672,15 +1390,9 @@ public String getThreeDSRequestorID() { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol - * for 3D Secure 2. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. * - * @param threeDSRequestorID Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you - * enrol for 3D Secure 2. + * @param threeDSRequestorID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1689,15 +1401,9 @@ public void setThreeDSRequestorID(String threeDSRequestorID) { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for - * 3D Secure 2. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. * - * @param threeDSRequestorName Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol - * for 3D Secure 2. + * @param threeDSRequestorName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields threeDSRequestorName(String threeDSRequestorName) { @@ -1706,15 +1412,8 @@ public ThreeDS2RequestFields threeDSRequestorName(String threeDSRequestorName) { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for - * 3D Secure 2. - * - * @return threeDSRequestorName Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol - * for 3D Secure 2. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. + * @return threeDSRequestorName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1723,15 +1422,9 @@ public String getThreeDSRequestorName() { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for - * 3D Secure 2. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. * - * @param threeDSRequestorName Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol - * for 3D Secure 2. + * @param threeDSRequestorName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1742,19 +1435,17 @@ public void setThreeDSRequestorName(String threeDSRequestorName) { /** * threeDSRequestorPriorAuthenticationInfo * - * @param threeDSRequestorPriorAuthenticationInfo + * @param threeDSRequestorPriorAuthenticationInfo * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ - public ThreeDS2RequestFields threeDSRequestorPriorAuthenticationInfo( - ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo) { + public ThreeDS2RequestFields threeDSRequestorPriorAuthenticationInfo(ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo) { this.threeDSRequestorPriorAuthenticationInfo = threeDSRequestorPriorAuthenticationInfo; return this; } /** * Get threeDSRequestorPriorAuthenticationInfo - * - * @return threeDSRequestorPriorAuthenticationInfo + * @return threeDSRequestorPriorAuthenticationInfo */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_PRIOR_AUTHENTICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1765,21 +1456,18 @@ public ThreeDSRequestorPriorAuthenticationInfo getThreeDSRequestorPriorAuthentic /** * threeDSRequestorPriorAuthenticationInfo * - * @param threeDSRequestorPriorAuthenticationInfo + * @param threeDSRequestorPriorAuthenticationInfo */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_PRIOR_AUTHENTICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setThreeDSRequestorPriorAuthenticationInfo( - ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo) { + public void setThreeDSRequestorPriorAuthenticationInfo(ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo) { this.threeDSRequestorPriorAuthenticationInfo = threeDSRequestorPriorAuthenticationInfo; } /** - * URL of the (customer service) website that will be shown to the shopper in case of technical - * errors during the 3D Secure 2 process. + * URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. * - * @param threeDSRequestorURL URL of the (customer service) website that will be shown to the - * shopper in case of technical errors during the 3D Secure 2 process. + * @param threeDSRequestorURL URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields threeDSRequestorURL(String threeDSRequestorURL) { @@ -1788,11 +1476,8 @@ public ThreeDS2RequestFields threeDSRequestorURL(String threeDSRequestorURL) { } /** - * URL of the (customer service) website that will be shown to the shopper in case of technical - * errors during the 3D Secure 2 process. - * - * @return threeDSRequestorURL URL of the (customer service) website that will be shown to the - * shopper in case of technical errors during the 3D Secure 2 process. + * URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. + * @return threeDSRequestorURL URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1801,11 +1486,9 @@ public String getThreeDSRequestorURL() { } /** - * URL of the (customer service) website that will be shown to the shopper in case of technical - * errors during the 3D Secure 2 process. + * URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. * - * @param threeDSRequestorURL URL of the (customer service) website that will be shown to the - * shopper in case of technical errors during the 3D Secure 2 process. + * @param threeDSRequestorURL URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1814,13 +1497,9 @@ public void setThreeDSRequestorURL(String threeDSRequestorURL) { } /** - * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * - * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** - * — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load * - * @param transType Identifies the type of transaction being authenticated. Length: 2 characters. - * Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — - * Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * @param transType Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields transType(TransTypeEnum transType) { @@ -1829,13 +1508,8 @@ public ThreeDS2RequestFields transType(TransTypeEnum transType) { } /** - * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * - * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** - * — Quasi-Cash Transaction * **28** — Prepaid Activation and Load - * - * @return transType Identifies the type of transaction being authenticated. Length: 2 characters. - * Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — - * Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * @return transType Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load */ @JsonProperty(JSON_PROPERTY_TRANS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1844,13 +1518,9 @@ public TransTypeEnum getTransType() { } /** - * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * - * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** - * — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load * - * @param transType Identifies the type of transaction being authenticated. Length: 2 characters. - * Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — - * Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * @param transType Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load */ @JsonProperty(JSON_PROPERTY_TRANS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1871,7 +1541,6 @@ public ThreeDS2RequestFields transactionType(TransactionTypeEnum transactionType /** * Identify the type of the transaction being authenticated. - * * @return transactionType Identify the type of the transaction being authenticated. */ @JsonProperty(JSON_PROPERTY_TRANSACTION_TYPE) @@ -1892,11 +1561,9 @@ public void setTransactionType(TransactionTypeEnum transactionType) { } /** - * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only - * applicable for 3D Secure 2 protocol version 2.2.0. + * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. * - * @param whiteListStatus The `whiteListStatus` value returned from a previous 3D Secure - * 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. + * @param whiteListStatus The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields whiteListStatus(String whiteListStatus) { @@ -1905,11 +1572,8 @@ public ThreeDS2RequestFields whiteListStatus(String whiteListStatus) { } /** - * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only - * applicable for 3D Secure 2 protocol version 2.2.0. - * - * @return whiteListStatus The `whiteListStatus` value returned from a previous 3D - * Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. + * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. + * @return whiteListStatus The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. */ @JsonProperty(JSON_PROPERTY_WHITE_LIST_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1918,11 +1582,9 @@ public String getWhiteListStatus() { } /** - * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only - * applicable for 3D Secure 2 protocol version 2.2.0. + * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. * - * @param whiteListStatus The `whiteListStatus` value returned from a previous 3D Secure - * 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. + * @param whiteListStatus The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. */ @JsonProperty(JSON_PROPERTY_WHITE_LIST_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1933,7 +1595,7 @@ public void setWhiteListStatus(String whiteListStatus) { /** * workPhone * - * @param workPhone + * @param workPhone * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields workPhone(Phone workPhone) { @@ -1943,8 +1605,7 @@ public ThreeDS2RequestFields workPhone(Phone workPhone) { /** * Get workPhone - * - * @return workPhone + * @return workPhone */ @JsonProperty(JSON_PROPERTY_WORK_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1955,7 +1616,7 @@ public Phone getWorkPhone() { /** * workPhone * - * @param workPhone + * @param workPhone */ @JsonProperty(JSON_PROPERTY_WORK_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1963,7 +1624,9 @@ public void setWorkPhone(Phone workPhone) { this.workPhone = workPhone; } - /** Return true if this ThreeDS2RequestFields object is equal to o. */ + /** + * Return true if this ThreeDS2RequestFields object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -1973,91 +1636,47 @@ public boolean equals(Object o) { return false; } ThreeDS2RequestFields threeDS2RequestFields = (ThreeDS2RequestFields) o; - return Objects.equals(this.acctInfo, threeDS2RequestFields.acctInfo) - && Objects.equals(this.acctType, threeDS2RequestFields.acctType) - && Objects.equals(this.acquirerBIN, threeDS2RequestFields.acquirerBIN) - && Objects.equals(this.acquirerMerchantID, threeDS2RequestFields.acquirerMerchantID) - && Objects.equals(this.addrMatch, threeDS2RequestFields.addrMatch) - && Objects.equals(this.authenticationOnly, threeDS2RequestFields.authenticationOnly) - && Objects.equals(this.challengeIndicator, threeDS2RequestFields.challengeIndicator) - && Objects.equals(this.deviceRenderOptions, threeDS2RequestFields.deviceRenderOptions) - && Objects.equals(this.homePhone, threeDS2RequestFields.homePhone) - && Objects.equals(this.mcc, threeDS2RequestFields.mcc) - && Objects.equals(this.merchantName, threeDS2RequestFields.merchantName) - && Objects.equals(this.messageVersion, threeDS2RequestFields.messageVersion) - && Objects.equals(this.mobilePhone, threeDS2RequestFields.mobilePhone) - && Objects.equals(this.notificationURL, threeDS2RequestFields.notificationURL) - && Objects.equals(this.payTokenInd, threeDS2RequestFields.payTokenInd) - && Objects.equals( - this.paymentAuthenticationUseCase, threeDS2RequestFields.paymentAuthenticationUseCase) - && Objects.equals(this.purchaseInstalData, threeDS2RequestFields.purchaseInstalData) - && Objects.equals(this.recurringExpiry, threeDS2RequestFields.recurringExpiry) - && Objects.equals(this.recurringFrequency, threeDS2RequestFields.recurringFrequency) - && Objects.equals(this.sdkAppID, threeDS2RequestFields.sdkAppID) - && Objects.equals(this.sdkEphemPubKey, threeDS2RequestFields.sdkEphemPubKey) - && Objects.equals(this.sdkMaxTimeout, threeDS2RequestFields.sdkMaxTimeout) - && Objects.equals(this.sdkReferenceNumber, threeDS2RequestFields.sdkReferenceNumber) - && Objects.equals(this.sdkTransID, threeDS2RequestFields.sdkTransID) - && Objects.equals(this.threeDSCompInd, threeDS2RequestFields.threeDSCompInd) - && Objects.equals( - this.threeDSRequestorAuthenticationInd, - threeDS2RequestFields.threeDSRequestorAuthenticationInd) - && Objects.equals( - this.threeDSRequestorAuthenticationInfo, - threeDS2RequestFields.threeDSRequestorAuthenticationInfo) - && Objects.equals( - this.threeDSRequestorChallengeInd, threeDS2RequestFields.threeDSRequestorChallengeInd) - && Objects.equals(this.threeDSRequestorID, threeDS2RequestFields.threeDSRequestorID) - && Objects.equals(this.threeDSRequestorName, threeDS2RequestFields.threeDSRequestorName) - && Objects.equals( - this.threeDSRequestorPriorAuthenticationInfo, - threeDS2RequestFields.threeDSRequestorPriorAuthenticationInfo) - && Objects.equals(this.threeDSRequestorURL, threeDS2RequestFields.threeDSRequestorURL) - && Objects.equals(this.transType, threeDS2RequestFields.transType) - && Objects.equals(this.transactionType, threeDS2RequestFields.transactionType) - && Objects.equals(this.whiteListStatus, threeDS2RequestFields.whiteListStatus) - && Objects.equals(this.workPhone, threeDS2RequestFields.workPhone); + return Objects.equals(this.acctInfo, threeDS2RequestFields.acctInfo) && + Objects.equals(this.acctType, threeDS2RequestFields.acctType) && + Objects.equals(this.acquirerBIN, threeDS2RequestFields.acquirerBIN) && + Objects.equals(this.acquirerMerchantID, threeDS2RequestFields.acquirerMerchantID) && + Objects.equals(this.addrMatch, threeDS2RequestFields.addrMatch) && + Objects.equals(this.authenticationOnly, threeDS2RequestFields.authenticationOnly) && + Objects.equals(this.challengeIndicator, threeDS2RequestFields.challengeIndicator) && + Objects.equals(this.deviceRenderOptions, threeDS2RequestFields.deviceRenderOptions) && + Objects.equals(this.homePhone, threeDS2RequestFields.homePhone) && + Objects.equals(this.mcc, threeDS2RequestFields.mcc) && + Objects.equals(this.merchantName, threeDS2RequestFields.merchantName) && + Objects.equals(this.messageVersion, threeDS2RequestFields.messageVersion) && + Objects.equals(this.mobilePhone, threeDS2RequestFields.mobilePhone) && + Objects.equals(this.notificationURL, threeDS2RequestFields.notificationURL) && + Objects.equals(this.payTokenInd, threeDS2RequestFields.payTokenInd) && + Objects.equals(this.paymentAuthenticationUseCase, threeDS2RequestFields.paymentAuthenticationUseCase) && + Objects.equals(this.purchaseInstalData, threeDS2RequestFields.purchaseInstalData) && + Objects.equals(this.recurringExpiry, threeDS2RequestFields.recurringExpiry) && + Objects.equals(this.recurringFrequency, threeDS2RequestFields.recurringFrequency) && + Objects.equals(this.sdkAppID, threeDS2RequestFields.sdkAppID) && + Objects.equals(this.sdkEphemPubKey, threeDS2RequestFields.sdkEphemPubKey) && + Objects.equals(this.sdkMaxTimeout, threeDS2RequestFields.sdkMaxTimeout) && + Objects.equals(this.sdkReferenceNumber, threeDS2RequestFields.sdkReferenceNumber) && + Objects.equals(this.sdkTransID, threeDS2RequestFields.sdkTransID) && + Objects.equals(this.threeDSCompInd, threeDS2RequestFields.threeDSCompInd) && + Objects.equals(this.threeDSRequestorAuthenticationInd, threeDS2RequestFields.threeDSRequestorAuthenticationInd) && + Objects.equals(this.threeDSRequestorAuthenticationInfo, threeDS2RequestFields.threeDSRequestorAuthenticationInfo) && + Objects.equals(this.threeDSRequestorChallengeInd, threeDS2RequestFields.threeDSRequestorChallengeInd) && + Objects.equals(this.threeDSRequestorID, threeDS2RequestFields.threeDSRequestorID) && + Objects.equals(this.threeDSRequestorName, threeDS2RequestFields.threeDSRequestorName) && + Objects.equals(this.threeDSRequestorPriorAuthenticationInfo, threeDS2RequestFields.threeDSRequestorPriorAuthenticationInfo) && + Objects.equals(this.threeDSRequestorURL, threeDS2RequestFields.threeDSRequestorURL) && + Objects.equals(this.transType, threeDS2RequestFields.transType) && + Objects.equals(this.transactionType, threeDS2RequestFields.transactionType) && + Objects.equals(this.whiteListStatus, threeDS2RequestFields.whiteListStatus) && + Objects.equals(this.workPhone, threeDS2RequestFields.workPhone); } @Override public int hashCode() { - return Objects.hash( - acctInfo, - acctType, - acquirerBIN, - acquirerMerchantID, - addrMatch, - authenticationOnly, - challengeIndicator, - deviceRenderOptions, - homePhone, - mcc, - merchantName, - messageVersion, - mobilePhone, - notificationURL, - payTokenInd, - paymentAuthenticationUseCase, - purchaseInstalData, - recurringExpiry, - recurringFrequency, - sdkAppID, - sdkEphemPubKey, - sdkMaxTimeout, - sdkReferenceNumber, - sdkTransID, - threeDSCompInd, - threeDSRequestorAuthenticationInd, - threeDSRequestorAuthenticationInfo, - threeDSRequestorChallengeInd, - threeDSRequestorID, - threeDSRequestorName, - threeDSRequestorPriorAuthenticationInfo, - threeDSRequestorURL, - transType, - transactionType, - whiteListStatus, - workPhone); + return Objects.hash(acctInfo, acctType, acquirerBIN, acquirerMerchantID, addrMatch, authenticationOnly, challengeIndicator, deviceRenderOptions, homePhone, mcc, merchantName, messageVersion, mobilePhone, notificationURL, payTokenInd, paymentAuthenticationUseCase, purchaseInstalData, recurringExpiry, recurringFrequency, sdkAppID, sdkEphemPubKey, sdkMaxTimeout, sdkReferenceNumber, sdkTransID, threeDSCompInd, threeDSRequestorAuthenticationInd, threeDSRequestorAuthenticationInfo, threeDSRequestorChallengeInd, threeDSRequestorID, threeDSRequestorName, threeDSRequestorPriorAuthenticationInfo, threeDSRequestorURL, transType, transactionType, whiteListStatus, workPhone); } @Override @@ -2071,9 +1690,7 @@ public String toString() { sb.append(" addrMatch: ").append(toIndentedString(addrMatch)).append("\n"); sb.append(" authenticationOnly: ").append(toIndentedString(authenticationOnly)).append("\n"); sb.append(" challengeIndicator: ").append(toIndentedString(challengeIndicator)).append("\n"); - sb.append(" deviceRenderOptions: ") - .append(toIndentedString(deviceRenderOptions)) - .append("\n"); + sb.append(" deviceRenderOptions: ").append(toIndentedString(deviceRenderOptions)).append("\n"); sb.append(" homePhone: ").append(toIndentedString(homePhone)).append("\n"); sb.append(" mcc: ").append(toIndentedString(mcc)).append("\n"); sb.append(" merchantName: ").append(toIndentedString(merchantName)).append("\n"); @@ -2081,9 +1698,7 @@ public String toString() { sb.append(" mobilePhone: ").append(toIndentedString(mobilePhone)).append("\n"); sb.append(" notificationURL: ").append(toIndentedString(notificationURL)).append("\n"); sb.append(" payTokenInd: ").append(toIndentedString(payTokenInd)).append("\n"); - sb.append(" paymentAuthenticationUseCase: ") - .append(toIndentedString(paymentAuthenticationUseCase)) - .append("\n"); + sb.append(" paymentAuthenticationUseCase: ").append(toIndentedString(paymentAuthenticationUseCase)).append("\n"); sb.append(" purchaseInstalData: ").append(toIndentedString(purchaseInstalData)).append("\n"); sb.append(" recurringExpiry: ").append(toIndentedString(recurringExpiry)).append("\n"); sb.append(" recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n"); @@ -2093,25 +1708,13 @@ public String toString() { sb.append(" sdkReferenceNumber: ").append(toIndentedString(sdkReferenceNumber)).append("\n"); sb.append(" sdkTransID: ").append(toIndentedString(sdkTransID)).append("\n"); sb.append(" threeDSCompInd: ").append(toIndentedString(threeDSCompInd)).append("\n"); - sb.append(" threeDSRequestorAuthenticationInd: ") - .append(toIndentedString(threeDSRequestorAuthenticationInd)) - .append("\n"); - sb.append(" threeDSRequestorAuthenticationInfo: ") - .append(toIndentedString(threeDSRequestorAuthenticationInfo)) - .append("\n"); - sb.append(" threeDSRequestorChallengeInd: ") - .append(toIndentedString(threeDSRequestorChallengeInd)) - .append("\n"); + sb.append(" threeDSRequestorAuthenticationInd: ").append(toIndentedString(threeDSRequestorAuthenticationInd)).append("\n"); + sb.append(" threeDSRequestorAuthenticationInfo: ").append(toIndentedString(threeDSRequestorAuthenticationInfo)).append("\n"); + sb.append(" threeDSRequestorChallengeInd: ").append(toIndentedString(threeDSRequestorChallengeInd)).append("\n"); sb.append(" threeDSRequestorID: ").append(toIndentedString(threeDSRequestorID)).append("\n"); - sb.append(" threeDSRequestorName: ") - .append(toIndentedString(threeDSRequestorName)) - .append("\n"); - sb.append(" threeDSRequestorPriorAuthenticationInfo: ") - .append(toIndentedString(threeDSRequestorPriorAuthenticationInfo)) - .append("\n"); - sb.append(" threeDSRequestorURL: ") - .append(toIndentedString(threeDSRequestorURL)) - .append("\n"); + sb.append(" threeDSRequestorName: ").append(toIndentedString(threeDSRequestorName)).append("\n"); + sb.append(" threeDSRequestorPriorAuthenticationInfo: ").append(toIndentedString(threeDSRequestorPriorAuthenticationInfo)).append("\n"); + sb.append(" threeDSRequestorURL: ").append(toIndentedString(threeDSRequestorURL)).append("\n"); sb.append(" transType: ").append(toIndentedString(transType)).append("\n"); sb.append(" transactionType: ").append(toIndentedString(transactionType)).append("\n"); sb.append(" whiteListStatus: ").append(toIndentedString(whiteListStatus)).append("\n"); @@ -2121,7 +1724,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -2130,23 +1734,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ThreeDS2RequestFields given an JSON string * * @param jsonString JSON string * @return An instance of ThreeDS2RequestFields - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ThreeDS2RequestFields + * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDS2RequestFields */ public static ThreeDS2RequestFields fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDS2RequestFields.class); } - - /** - * Convert an instance of ThreeDS2RequestFields to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ThreeDS2RequestFields to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ThreeDS2ResponseData.java b/src/main/java/com/adyen/model/checkout/ThreeDS2ResponseData.java index 0820a8dc0..d8e9b100b 100644 --- a/src/main/java/com/adyen/model/checkout/ThreeDS2ResponseData.java +++ b/src/main/java/com/adyen/model/checkout/ThreeDS2ResponseData.java @@ -2,22 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ThreeDS2ResponseData */ + +/** + * ThreeDS2ResponseData + */ @JsonPropertyOrder({ ThreeDS2ResponseData.JSON_PROPERTY_ACS_CHALLENGE_MANDATED, ThreeDS2ResponseData.JSON_PROPERTY_ACS_OPERATOR_I_D, @@ -39,6 +48,7 @@ ThreeDS2ResponseData.JSON_PROPERTY_TRANS_STATUS, ThreeDS2ResponseData.JSON_PROPERTY_TRANS_STATUS_REASON }) + public class ThreeDS2ResponseData { public static final String JSON_PROPERTY_ACS_CHALLENGE_MANDATED = "acsChallengeMandated"; private String acsChallengeMandated; @@ -97,12 +107,13 @@ public class ThreeDS2ResponseData { public static final String JSON_PROPERTY_TRANS_STATUS_REASON = "transStatusReason"; private String transStatusReason; - public ThreeDS2ResponseData() {} + public ThreeDS2ResponseData() { + } /** * acsChallengeMandated * - * @param acsChallengeMandated + * @param acsChallengeMandated * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData acsChallengeMandated(String acsChallengeMandated) { @@ -112,8 +123,7 @@ public ThreeDS2ResponseData acsChallengeMandated(String acsChallengeMandated) { /** * Get acsChallengeMandated - * - * @return acsChallengeMandated + * @return acsChallengeMandated */ @JsonProperty(JSON_PROPERTY_ACS_CHALLENGE_MANDATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,7 +134,7 @@ public String getAcsChallengeMandated() { /** * acsChallengeMandated * - * @param acsChallengeMandated + * @param acsChallengeMandated */ @JsonProperty(JSON_PROPERTY_ACS_CHALLENGE_MANDATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,7 +145,7 @@ public void setAcsChallengeMandated(String acsChallengeMandated) { /** * acsOperatorID * - * @param acsOperatorID + * @param acsOperatorID * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData acsOperatorID(String acsOperatorID) { @@ -145,8 +155,7 @@ public ThreeDS2ResponseData acsOperatorID(String acsOperatorID) { /** * Get acsOperatorID - * - * @return acsOperatorID + * @return acsOperatorID */ @JsonProperty(JSON_PROPERTY_ACS_OPERATOR_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -157,7 +166,7 @@ public String getAcsOperatorID() { /** * acsOperatorID * - * @param acsOperatorID + * @param acsOperatorID */ @JsonProperty(JSON_PROPERTY_ACS_OPERATOR_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,7 +177,7 @@ public void setAcsOperatorID(String acsOperatorID) { /** * acsReferenceNumber * - * @param acsReferenceNumber + * @param acsReferenceNumber * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData acsReferenceNumber(String acsReferenceNumber) { @@ -178,8 +187,7 @@ public ThreeDS2ResponseData acsReferenceNumber(String acsReferenceNumber) { /** * Get acsReferenceNumber - * - * @return acsReferenceNumber + * @return acsReferenceNumber */ @JsonProperty(JSON_PROPERTY_ACS_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,7 +198,7 @@ public String getAcsReferenceNumber() { /** * acsReferenceNumber * - * @param acsReferenceNumber + * @param acsReferenceNumber */ @JsonProperty(JSON_PROPERTY_ACS_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -201,7 +209,7 @@ public void setAcsReferenceNumber(String acsReferenceNumber) { /** * acsSignedContent * - * @param acsSignedContent + * @param acsSignedContent * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData acsSignedContent(String acsSignedContent) { @@ -211,8 +219,7 @@ public ThreeDS2ResponseData acsSignedContent(String acsSignedContent) { /** * Get acsSignedContent - * - * @return acsSignedContent + * @return acsSignedContent */ @JsonProperty(JSON_PROPERTY_ACS_SIGNED_CONTENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,7 +230,7 @@ public String getAcsSignedContent() { /** * acsSignedContent * - * @param acsSignedContent + * @param acsSignedContent */ @JsonProperty(JSON_PROPERTY_ACS_SIGNED_CONTENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -234,7 +241,7 @@ public void setAcsSignedContent(String acsSignedContent) { /** * acsTransID * - * @param acsTransID + * @param acsTransID * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData acsTransID(String acsTransID) { @@ -244,8 +251,7 @@ public ThreeDS2ResponseData acsTransID(String acsTransID) { /** * Get acsTransID - * - * @return acsTransID + * @return acsTransID */ @JsonProperty(JSON_PROPERTY_ACS_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -256,7 +262,7 @@ public String getAcsTransID() { /** * acsTransID * - * @param acsTransID + * @param acsTransID */ @JsonProperty(JSON_PROPERTY_ACS_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -267,7 +273,7 @@ public void setAcsTransID(String acsTransID) { /** * acsURL * - * @param acsURL + * @param acsURL * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData acsURL(String acsURL) { @@ -277,8 +283,7 @@ public ThreeDS2ResponseData acsURL(String acsURL) { /** * Get acsURL - * - * @return acsURL + * @return acsURL */ @JsonProperty(JSON_PROPERTY_ACS_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -289,7 +294,7 @@ public String getAcsURL() { /** * acsURL * - * @param acsURL + * @param acsURL */ @JsonProperty(JSON_PROPERTY_ACS_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -300,7 +305,7 @@ public void setAcsURL(String acsURL) { /** * authenticationType * - * @param authenticationType + * @param authenticationType * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData authenticationType(String authenticationType) { @@ -310,8 +315,7 @@ public ThreeDS2ResponseData authenticationType(String authenticationType) { /** * Get authenticationType - * - * @return authenticationType + * @return authenticationType */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -322,7 +326,7 @@ public String getAuthenticationType() { /** * authenticationType * - * @param authenticationType + * @param authenticationType */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -333,7 +337,7 @@ public void setAuthenticationType(String authenticationType) { /** * cardHolderInfo * - * @param cardHolderInfo + * @param cardHolderInfo * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData cardHolderInfo(String cardHolderInfo) { @@ -343,8 +347,7 @@ public ThreeDS2ResponseData cardHolderInfo(String cardHolderInfo) { /** * Get cardHolderInfo - * - * @return cardHolderInfo + * @return cardHolderInfo */ @JsonProperty(JSON_PROPERTY_CARD_HOLDER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -355,7 +358,7 @@ public String getCardHolderInfo() { /** * cardHolderInfo * - * @param cardHolderInfo + * @param cardHolderInfo */ @JsonProperty(JSON_PROPERTY_CARD_HOLDER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -366,7 +369,7 @@ public void setCardHolderInfo(String cardHolderInfo) { /** * cavvAlgorithm * - * @param cavvAlgorithm + * @param cavvAlgorithm * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData cavvAlgorithm(String cavvAlgorithm) { @@ -376,8 +379,7 @@ public ThreeDS2ResponseData cavvAlgorithm(String cavvAlgorithm) { /** * Get cavvAlgorithm - * - * @return cavvAlgorithm + * @return cavvAlgorithm */ @JsonProperty(JSON_PROPERTY_CAVV_ALGORITHM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -388,7 +390,7 @@ public String getCavvAlgorithm() { /** * cavvAlgorithm * - * @param cavvAlgorithm + * @param cavvAlgorithm */ @JsonProperty(JSON_PROPERTY_CAVV_ALGORITHM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -399,7 +401,7 @@ public void setCavvAlgorithm(String cavvAlgorithm) { /** * challengeIndicator * - * @param challengeIndicator + * @param challengeIndicator * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData challengeIndicator(String challengeIndicator) { @@ -409,8 +411,7 @@ public ThreeDS2ResponseData challengeIndicator(String challengeIndicator) { /** * Get challengeIndicator - * - * @return challengeIndicator + * @return challengeIndicator */ @JsonProperty(JSON_PROPERTY_CHALLENGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -421,7 +422,7 @@ public String getChallengeIndicator() { /** * challengeIndicator * - * @param challengeIndicator + * @param challengeIndicator */ @JsonProperty(JSON_PROPERTY_CHALLENGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -432,7 +433,7 @@ public void setChallengeIndicator(String challengeIndicator) { /** * dsReferenceNumber * - * @param dsReferenceNumber + * @param dsReferenceNumber * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData dsReferenceNumber(String dsReferenceNumber) { @@ -442,8 +443,7 @@ public ThreeDS2ResponseData dsReferenceNumber(String dsReferenceNumber) { /** * Get dsReferenceNumber - * - * @return dsReferenceNumber + * @return dsReferenceNumber */ @JsonProperty(JSON_PROPERTY_DS_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -454,7 +454,7 @@ public String getDsReferenceNumber() { /** * dsReferenceNumber * - * @param dsReferenceNumber + * @param dsReferenceNumber */ @JsonProperty(JSON_PROPERTY_DS_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -465,7 +465,7 @@ public void setDsReferenceNumber(String dsReferenceNumber) { /** * dsTransID * - * @param dsTransID + * @param dsTransID * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData dsTransID(String dsTransID) { @@ -475,8 +475,7 @@ public ThreeDS2ResponseData dsTransID(String dsTransID) { /** * Get dsTransID - * - * @return dsTransID + * @return dsTransID */ @JsonProperty(JSON_PROPERTY_DS_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -487,7 +486,7 @@ public String getDsTransID() { /** * dsTransID * - * @param dsTransID + * @param dsTransID */ @JsonProperty(JSON_PROPERTY_DS_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -498,7 +497,7 @@ public void setDsTransID(String dsTransID) { /** * exemptionIndicator * - * @param exemptionIndicator + * @param exemptionIndicator * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData exemptionIndicator(String exemptionIndicator) { @@ -508,8 +507,7 @@ public ThreeDS2ResponseData exemptionIndicator(String exemptionIndicator) { /** * Get exemptionIndicator - * - * @return exemptionIndicator + * @return exemptionIndicator */ @JsonProperty(JSON_PROPERTY_EXEMPTION_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -520,7 +518,7 @@ public String getExemptionIndicator() { /** * exemptionIndicator * - * @param exemptionIndicator + * @param exemptionIndicator */ @JsonProperty(JSON_PROPERTY_EXEMPTION_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -531,7 +529,7 @@ public void setExemptionIndicator(String exemptionIndicator) { /** * messageVersion * - * @param messageVersion + * @param messageVersion * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData messageVersion(String messageVersion) { @@ -541,8 +539,7 @@ public ThreeDS2ResponseData messageVersion(String messageVersion) { /** * Get messageVersion - * - * @return messageVersion + * @return messageVersion */ @JsonProperty(JSON_PROPERTY_MESSAGE_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -553,7 +550,7 @@ public String getMessageVersion() { /** * messageVersion * - * @param messageVersion + * @param messageVersion */ @JsonProperty(JSON_PROPERTY_MESSAGE_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -564,7 +561,7 @@ public void setMessageVersion(String messageVersion) { /** * riskScore * - * @param riskScore + * @param riskScore * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData riskScore(String riskScore) { @@ -574,8 +571,7 @@ public ThreeDS2ResponseData riskScore(String riskScore) { /** * Get riskScore - * - * @return riskScore + * @return riskScore */ @JsonProperty(JSON_PROPERTY_RISK_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -586,7 +582,7 @@ public String getRiskScore() { /** * riskScore * - * @param riskScore + * @param riskScore */ @JsonProperty(JSON_PROPERTY_RISK_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -597,7 +593,7 @@ public void setRiskScore(String riskScore) { /** * sdkEphemPubKey * - * @param sdkEphemPubKey + * @param sdkEphemPubKey * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData sdkEphemPubKey(String sdkEphemPubKey) { @@ -607,8 +603,7 @@ public ThreeDS2ResponseData sdkEphemPubKey(String sdkEphemPubKey) { /** * Get sdkEphemPubKey - * - * @return sdkEphemPubKey + * @return sdkEphemPubKey */ @JsonProperty(JSON_PROPERTY_SDK_EPHEM_PUB_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -619,7 +614,7 @@ public String getSdkEphemPubKey() { /** * sdkEphemPubKey * - * @param sdkEphemPubKey + * @param sdkEphemPubKey */ @JsonProperty(JSON_PROPERTY_SDK_EPHEM_PUB_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -630,7 +625,7 @@ public void setSdkEphemPubKey(String sdkEphemPubKey) { /** * threeDSServerTransID * - * @param threeDSServerTransID + * @param threeDSServerTransID * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData threeDSServerTransID(String threeDSServerTransID) { @@ -640,8 +635,7 @@ public ThreeDS2ResponseData threeDSServerTransID(String threeDSServerTransID) { /** * Get threeDSServerTransID - * - * @return threeDSServerTransID + * @return threeDSServerTransID */ @JsonProperty(JSON_PROPERTY_THREE_D_S_SERVER_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -652,7 +646,7 @@ public String getThreeDSServerTransID() { /** * threeDSServerTransID * - * @param threeDSServerTransID + * @param threeDSServerTransID */ @JsonProperty(JSON_PROPERTY_THREE_D_S_SERVER_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -663,7 +657,7 @@ public void setThreeDSServerTransID(String threeDSServerTransID) { /** * transStatus * - * @param transStatus + * @param transStatus * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData transStatus(String transStatus) { @@ -673,8 +667,7 @@ public ThreeDS2ResponseData transStatus(String transStatus) { /** * Get transStatus - * - * @return transStatus + * @return transStatus */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -685,7 +678,7 @@ public String getTransStatus() { /** * transStatus * - * @param transStatus + * @param transStatus */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -696,7 +689,7 @@ public void setTransStatus(String transStatus) { /** * transStatusReason * - * @param transStatusReason + * @param transStatusReason * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData transStatusReason(String transStatusReason) { @@ -706,8 +699,7 @@ public ThreeDS2ResponseData transStatusReason(String transStatusReason) { /** * Get transStatusReason - * - * @return transStatusReason + * @return transStatusReason */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -718,7 +710,7 @@ public String getTransStatusReason() { /** * transStatusReason * - * @param transStatusReason + * @param transStatusReason */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -726,7 +718,9 @@ public void setTransStatusReason(String transStatusReason) { this.transStatusReason = transStatusReason; } - /** Return true if this ThreeDS2ResponseData object is equal to o. */ + /** + * Return true if this ThreeDS2ResponseData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -736,58 +730,37 @@ public boolean equals(Object o) { return false; } ThreeDS2ResponseData threeDS2ResponseData = (ThreeDS2ResponseData) o; - return Objects.equals(this.acsChallengeMandated, threeDS2ResponseData.acsChallengeMandated) - && Objects.equals(this.acsOperatorID, threeDS2ResponseData.acsOperatorID) - && Objects.equals(this.acsReferenceNumber, threeDS2ResponseData.acsReferenceNumber) - && Objects.equals(this.acsSignedContent, threeDS2ResponseData.acsSignedContent) - && Objects.equals(this.acsTransID, threeDS2ResponseData.acsTransID) - && Objects.equals(this.acsURL, threeDS2ResponseData.acsURL) - && Objects.equals(this.authenticationType, threeDS2ResponseData.authenticationType) - && Objects.equals(this.cardHolderInfo, threeDS2ResponseData.cardHolderInfo) - && Objects.equals(this.cavvAlgorithm, threeDS2ResponseData.cavvAlgorithm) - && Objects.equals(this.challengeIndicator, threeDS2ResponseData.challengeIndicator) - && Objects.equals(this.dsReferenceNumber, threeDS2ResponseData.dsReferenceNumber) - && Objects.equals(this.dsTransID, threeDS2ResponseData.dsTransID) - && Objects.equals(this.exemptionIndicator, threeDS2ResponseData.exemptionIndicator) - && Objects.equals(this.messageVersion, threeDS2ResponseData.messageVersion) - && Objects.equals(this.riskScore, threeDS2ResponseData.riskScore) - && Objects.equals(this.sdkEphemPubKey, threeDS2ResponseData.sdkEphemPubKey) - && Objects.equals(this.threeDSServerTransID, threeDS2ResponseData.threeDSServerTransID) - && Objects.equals(this.transStatus, threeDS2ResponseData.transStatus) - && Objects.equals(this.transStatusReason, threeDS2ResponseData.transStatusReason); + return Objects.equals(this.acsChallengeMandated, threeDS2ResponseData.acsChallengeMandated) && + Objects.equals(this.acsOperatorID, threeDS2ResponseData.acsOperatorID) && + Objects.equals(this.acsReferenceNumber, threeDS2ResponseData.acsReferenceNumber) && + Objects.equals(this.acsSignedContent, threeDS2ResponseData.acsSignedContent) && + Objects.equals(this.acsTransID, threeDS2ResponseData.acsTransID) && + Objects.equals(this.acsURL, threeDS2ResponseData.acsURL) && + Objects.equals(this.authenticationType, threeDS2ResponseData.authenticationType) && + Objects.equals(this.cardHolderInfo, threeDS2ResponseData.cardHolderInfo) && + Objects.equals(this.cavvAlgorithm, threeDS2ResponseData.cavvAlgorithm) && + Objects.equals(this.challengeIndicator, threeDS2ResponseData.challengeIndicator) && + Objects.equals(this.dsReferenceNumber, threeDS2ResponseData.dsReferenceNumber) && + Objects.equals(this.dsTransID, threeDS2ResponseData.dsTransID) && + Objects.equals(this.exemptionIndicator, threeDS2ResponseData.exemptionIndicator) && + Objects.equals(this.messageVersion, threeDS2ResponseData.messageVersion) && + Objects.equals(this.riskScore, threeDS2ResponseData.riskScore) && + Objects.equals(this.sdkEphemPubKey, threeDS2ResponseData.sdkEphemPubKey) && + Objects.equals(this.threeDSServerTransID, threeDS2ResponseData.threeDSServerTransID) && + Objects.equals(this.transStatus, threeDS2ResponseData.transStatus) && + Objects.equals(this.transStatusReason, threeDS2ResponseData.transStatusReason); } @Override public int hashCode() { - return Objects.hash( - acsChallengeMandated, - acsOperatorID, - acsReferenceNumber, - acsSignedContent, - acsTransID, - acsURL, - authenticationType, - cardHolderInfo, - cavvAlgorithm, - challengeIndicator, - dsReferenceNumber, - dsTransID, - exemptionIndicator, - messageVersion, - riskScore, - sdkEphemPubKey, - threeDSServerTransID, - transStatus, - transStatusReason); + return Objects.hash(acsChallengeMandated, acsOperatorID, acsReferenceNumber, acsSignedContent, acsTransID, acsURL, authenticationType, cardHolderInfo, cavvAlgorithm, challengeIndicator, dsReferenceNumber, dsTransID, exemptionIndicator, messageVersion, riskScore, sdkEphemPubKey, threeDSServerTransID, transStatus, transStatusReason); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ThreeDS2ResponseData {\n"); - sb.append(" acsChallengeMandated: ") - .append(toIndentedString(acsChallengeMandated)) - .append("\n"); + sb.append(" acsChallengeMandated: ").append(toIndentedString(acsChallengeMandated)).append("\n"); sb.append(" acsOperatorID: ").append(toIndentedString(acsOperatorID)).append("\n"); sb.append(" acsReferenceNumber: ").append(toIndentedString(acsReferenceNumber)).append("\n"); sb.append(" acsSignedContent: ").append(toIndentedString(acsSignedContent)).append("\n"); @@ -803,9 +776,7 @@ public String toString() { sb.append(" messageVersion: ").append(toIndentedString(messageVersion)).append("\n"); sb.append(" riskScore: ").append(toIndentedString(riskScore)).append("\n"); sb.append(" sdkEphemPubKey: ").append(toIndentedString(sdkEphemPubKey)).append("\n"); - sb.append(" threeDSServerTransID: ") - .append(toIndentedString(threeDSServerTransID)) - .append("\n"); + sb.append(" threeDSServerTransID: ").append(toIndentedString(threeDSServerTransID)).append("\n"); sb.append(" transStatus: ").append(toIndentedString(transStatus)).append("\n"); sb.append(" transStatusReason: ").append(toIndentedString(transStatusReason)).append("\n"); sb.append("}"); @@ -813,7 +784,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -822,23 +794,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ThreeDS2ResponseData given an JSON string * * @param jsonString JSON string * @return An instance of ThreeDS2ResponseData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ThreeDS2ResponseData + * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDS2ResponseData */ public static ThreeDS2ResponseData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDS2ResponseData.class); } - - /** - * Convert an instance of ThreeDS2ResponseData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ThreeDS2ResponseData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ThreeDS2Result.java b/src/main/java/com/adyen/model/checkout/ThreeDS2Result.java index ad1b3164b..3fbd42b5f 100644 --- a/src/main/java/com/adyen/model/checkout/ThreeDS2Result.java +++ b/src/main/java/com/adyen/model/checkout/ThreeDS2Result.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ThreeDS2Result */ +/** + * ThreeDS2Result + */ @JsonPropertyOrder({ ThreeDS2Result.JSON_PROPERTY_AUTHENTICATION_VALUE, ThreeDS2Result.JSON_PROPERTY_CAVV_ALGORITHM, @@ -38,6 +43,7 @@ ThreeDS2Result.JSON_PROPERTY_TRANS_STATUS_REASON, ThreeDS2Result.JSON_PROPERTY_WHITE_LIST_STATUS }) + public class ThreeDS2Result { public static final String JSON_PROPERTY_AUTHENTICATION_VALUE = "authenticationValue"; private String authenticationValue; @@ -46,11 +52,10 @@ public class ThreeDS2Result { private String cavvAlgorithm; /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the - * authentication has been cancelled. For possible values, refer to [3D Secure API - * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). */ public enum ChallengeCancelEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -70,7 +75,7 @@ public enum ChallengeCancelEnum { private String value; ChallengeCancelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -91,11 +96,7 @@ public static ChallengeCancelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ChallengeCancelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ChallengeCancelEnum.values())); + LOG.warning("ChallengeCancelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChallengeCancelEnum.values())); return null; } } @@ -110,11 +111,10 @@ public static ChallengeCancelEnum fromValue(String value) { private String eci; /** - * Indicates the exemption type that was applied by the issuer to the authentication, if exemption - * applied. Allowed values: * `lowValue` * `secureCorporate` * - * `trustedBeneficiary` * `transactionRiskAnalysis` + * Indicates the exemption type that was applied by the issuer to the authentication, if exemption applied. Allowed values: * `lowValue` * `secureCorporate` * `trustedBeneficiary` * `transactionRiskAnalysis` */ public enum ExemptionIndicatorEnum { + LOWVALUE(String.valueOf("lowValue")), SECURECORPORATE(String.valueOf("secureCorporate")), @@ -128,7 +128,7 @@ public enum ExemptionIndicatorEnum { private String value; ExemptionIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -149,11 +149,7 @@ public static ExemptionIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ExemptionIndicatorEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ExemptionIndicatorEnum.values())); + LOG.warning("ExemptionIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ExemptionIndicatorEnum.values())); return null; } } @@ -168,12 +164,10 @@ public static ExemptionIndicatorEnum fromValue(String value) { private String riskScore; /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No - * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor - * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional - * risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only */ public enum ThreeDSRequestorChallengeIndEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -186,13 +180,12 @@ public enum ThreeDSRequestorChallengeIndEnum { _06(String.valueOf("06")); - private static final Logger LOG = - Logger.getLogger(ThreeDSRequestorChallengeIndEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(ThreeDSRequestorChallengeIndEnum.class.getName()); private String value; ThreeDSRequestorChallengeIndEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -213,17 +206,12 @@ public static ThreeDSRequestorChallengeIndEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ThreeDSRequestorChallengeIndEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ThreeDSRequestorChallengeIndEnum.values())); + LOG.warning("ThreeDSRequestorChallengeIndEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ThreeDSRequestorChallengeIndEnum.values())); return null; } } - public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND = - "threeDSRequestorChallengeInd"; + public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND = "threeDSRequestorChallengeInd"; private ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd; public static final String JSON_PROPERTY_THREE_D_S_SERVER_TRANS_I_D = "threeDSServerTransID"; @@ -241,13 +229,13 @@ public static ThreeDSRequestorChallengeIndEnum fromValue(String value) { public static final String JSON_PROPERTY_WHITE_LIST_STATUS = "whiteListStatus"; private String whiteListStatus; - public ThreeDS2Result() {} + public ThreeDS2Result() { + } /** * The `authenticationValue` value as defined in the 3D Secure 2 specification. * - * @param authenticationValue The `authenticationValue` value as defined in the 3D - * Secure 2 specification. + * @param authenticationValue The `authenticationValue` value as defined in the 3D Secure 2 specification. * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result authenticationValue(String authenticationValue) { @@ -257,9 +245,7 @@ public ThreeDS2Result authenticationValue(String authenticationValue) { /** * The `authenticationValue` value as defined in the 3D Secure 2 specification. - * - * @return authenticationValue The `authenticationValue` value as defined in the 3D - * Secure 2 specification. + * @return authenticationValue The `authenticationValue` value as defined in the 3D Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -270,8 +256,7 @@ public String getAuthenticationValue() { /** * The `authenticationValue` value as defined in the 3D Secure 2 specification. * - * @param authenticationValue The `authenticationValue` value as defined in the 3D - * Secure 2 specification. + * @param authenticationValue The `authenticationValue` value as defined in the 3D Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -280,11 +265,9 @@ public void setAuthenticationValue(String authenticationValue) { } /** - * The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires - * integrations. + * The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires integrations. * - * @param cavvAlgorithm The algorithm used by the ACS to calculate the authentication value, only - * for Cartes Bancaires integrations. + * @param cavvAlgorithm The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires integrations. * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result cavvAlgorithm(String cavvAlgorithm) { @@ -293,11 +276,8 @@ public ThreeDS2Result cavvAlgorithm(String cavvAlgorithm) { } /** - * The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires - * integrations. - * - * @return cavvAlgorithm The algorithm used by the ACS to calculate the authentication value, only - * for Cartes Bancaires integrations. + * The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires integrations. + * @return cavvAlgorithm The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires integrations. */ @JsonProperty(JSON_PROPERTY_CAVV_ALGORITHM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -306,11 +286,9 @@ public String getCavvAlgorithm() { } /** - * The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires - * integrations. + * The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires integrations. * - * @param cavvAlgorithm The algorithm used by the ACS to calculate the authentication value, only - * for Cartes Bancaires integrations. + * @param cavvAlgorithm The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires integrations. */ @JsonProperty(JSON_PROPERTY_CAVV_ALGORITHM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -319,14 +297,9 @@ public void setCavvAlgorithm(String cavvAlgorithm) { } /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the - * authentication has been cancelled. For possible values, refer to [3D Secure API - * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). * - * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory - * Server (DS) that the authentication has been cancelled. For possible values, refer to [3D - * Secure API - * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result challengeCancel(ChallengeCancelEnum challengeCancel) { @@ -335,14 +308,8 @@ public ThreeDS2Result challengeCancel(ChallengeCancelEnum challengeCancel) { } /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the - * authentication has been cancelled. For possible values, refer to [3D Secure API - * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). - * - * @return challengeCancel Indicator informing the Access Control Server (ACS) and the Directory - * Server (DS) that the authentication has been cancelled. For possible values, refer to [3D - * Secure API - * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * @return challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). */ @JsonProperty(JSON_PROPERTY_CHALLENGE_CANCEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -351,14 +318,9 @@ public ChallengeCancelEnum getChallengeCancel() { } /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the - * authentication has been cancelled. For possible values, refer to [3D Secure API - * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). * - * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory - * Server (DS) that the authentication has been cancelled. For possible values, refer to [3D - * Secure API - * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). */ @JsonProperty(JSON_PROPERTY_CHALLENGE_CANCEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -379,7 +341,6 @@ public ThreeDS2Result dsTransID(String dsTransID) { /** * The `dsTransID` value as defined in the 3D Secure 2 specification. - * * @return dsTransID The `dsTransID` value as defined in the 3D Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_DS_TRANS_I_D) @@ -412,7 +373,6 @@ public ThreeDS2Result eci(String eci) { /** * The `eci` value as defined in the 3D Secure 2 specification. - * * @return eci The `eci` value as defined in the 3D Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_ECI) @@ -433,14 +393,9 @@ public void setEci(String eci) { } /** - * Indicates the exemption type that was applied by the issuer to the authentication, if exemption - * applied. Allowed values: * `lowValue` * `secureCorporate` * - * `trustedBeneficiary` * `transactionRiskAnalysis` + * Indicates the exemption type that was applied by the issuer to the authentication, if exemption applied. Allowed values: * `lowValue` * `secureCorporate` * `trustedBeneficiary` * `transactionRiskAnalysis` * - * @param exemptionIndicator Indicates the exemption type that was applied by the issuer to the - * authentication, if exemption applied. Allowed values: * `lowValue` * - * `secureCorporate` * `trustedBeneficiary` * - * `transactionRiskAnalysis` + * @param exemptionIndicator Indicates the exemption type that was applied by the issuer to the authentication, if exemption applied. Allowed values: * `lowValue` * `secureCorporate` * `trustedBeneficiary` * `transactionRiskAnalysis` * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result exemptionIndicator(ExemptionIndicatorEnum exemptionIndicator) { @@ -449,14 +404,8 @@ public ThreeDS2Result exemptionIndicator(ExemptionIndicatorEnum exemptionIndicat } /** - * Indicates the exemption type that was applied by the issuer to the authentication, if exemption - * applied. Allowed values: * `lowValue` * `secureCorporate` * - * `trustedBeneficiary` * `transactionRiskAnalysis` - * - * @return exemptionIndicator Indicates the exemption type that was applied by the issuer to the - * authentication, if exemption applied. Allowed values: * `lowValue` * - * `secureCorporate` * `trustedBeneficiary` * - * `transactionRiskAnalysis` + * Indicates the exemption type that was applied by the issuer to the authentication, if exemption applied. Allowed values: * `lowValue` * `secureCorporate` * `trustedBeneficiary` * `transactionRiskAnalysis` + * @return exemptionIndicator Indicates the exemption type that was applied by the issuer to the authentication, if exemption applied. Allowed values: * `lowValue` * `secureCorporate` * `trustedBeneficiary` * `transactionRiskAnalysis` */ @JsonProperty(JSON_PROPERTY_EXEMPTION_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -465,14 +414,9 @@ public ExemptionIndicatorEnum getExemptionIndicator() { } /** - * Indicates the exemption type that was applied by the issuer to the authentication, if exemption - * applied. Allowed values: * `lowValue` * `secureCorporate` * - * `trustedBeneficiary` * `transactionRiskAnalysis` + * Indicates the exemption type that was applied by the issuer to the authentication, if exemption applied. Allowed values: * `lowValue` * `secureCorporate` * `trustedBeneficiary` * `transactionRiskAnalysis` * - * @param exemptionIndicator Indicates the exemption type that was applied by the issuer to the - * authentication, if exemption applied. Allowed values: * `lowValue` * - * `secureCorporate` * `trustedBeneficiary` * - * `transactionRiskAnalysis` + * @param exemptionIndicator Indicates the exemption type that was applied by the issuer to the authentication, if exemption applied. Allowed values: * `lowValue` * `secureCorporate` * `trustedBeneficiary` * `transactionRiskAnalysis` */ @JsonProperty(JSON_PROPERTY_EXEMPTION_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -483,8 +427,7 @@ public void setExemptionIndicator(ExemptionIndicatorEnum exemptionIndicator) { /** * The `messageVersion` value as defined in the 3D Secure 2 specification. * - * @param messageVersion The `messageVersion` value as defined in the 3D Secure 2 - * specification. + * @param messageVersion The `messageVersion` value as defined in the 3D Secure 2 specification. * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result messageVersion(String messageVersion) { @@ -494,9 +437,7 @@ public ThreeDS2Result messageVersion(String messageVersion) { /** * The `messageVersion` value as defined in the 3D Secure 2 specification. - * - * @return messageVersion The `messageVersion` value as defined in the 3D Secure 2 - * specification. + * @return messageVersion The `messageVersion` value as defined in the 3D Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_MESSAGE_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -507,8 +448,7 @@ public String getMessageVersion() { /** * The `messageVersion` value as defined in the 3D Secure 2 specification. * - * @param messageVersion The `messageVersion` value as defined in the 3D Secure 2 - * specification. + * @param messageVersion The `messageVersion` value as defined in the 3D Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_MESSAGE_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -529,7 +469,6 @@ public ThreeDS2Result riskScore(String riskScore) { /** * Risk score calculated by Cartes Bancaires Directory Server (DS). - * * @return riskScore Risk score calculated by Cartes Bancaires Directory Server (DS). */ @JsonProperty(JSON_PROPERTY_RISK_SCORE) @@ -550,35 +489,19 @@ public void setRiskScore(String riskScore) { } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No - * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor - * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional - * risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only * - * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this - * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * - * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested - * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * - * **06** — Data Only + * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ - public ThreeDS2Result threeDSRequestorChallengeInd( - ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { + public ThreeDS2Result threeDSRequestorChallengeInd(ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { this.threeDSRequestorChallengeInd = threeDSRequestorChallengeInd; return this; } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No - * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor - * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional - * risk analysis is already performed) * **06** — Data Only - * - * @return threeDSRequestorChallengeInd Indicates whether a challenge is requested for this - * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * - * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested - * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * - * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * @return threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -587,29 +510,20 @@ public ThreeDSRequestorChallengeIndEnum getThreeDSRequestorChallengeInd() { } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No - * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor - * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional - * risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only * - * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this - * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * - * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested - * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * - * **06** — Data Only + * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setThreeDSRequestorChallengeInd( - ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { + public void setThreeDSRequestorChallengeInd(ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { this.threeDSRequestorChallengeInd = threeDSRequestorChallengeInd; } /** * The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. * - * @param threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D - * Secure 2 specification. + * @param threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result threeDSServerTransID(String threeDSServerTransID) { @@ -619,9 +533,7 @@ public ThreeDS2Result threeDSServerTransID(String threeDSServerTransID) { /** * The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. - * - * @return threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D - * Secure 2 specification. + * @return threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_SERVER_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -632,8 +544,7 @@ public String getThreeDSServerTransID() { /** * The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. * - * @param threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D - * Secure 2 specification. + * @param threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_SERVER_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -654,7 +565,6 @@ public ThreeDS2Result timestamp(String timestamp) { /** * The `timestamp` value of the 3D Secure 2 authentication. - * * @return timestamp The `timestamp` value of the 3D Secure 2 authentication. */ @JsonProperty(JSON_PROPERTY_TIMESTAMP) @@ -677,8 +587,7 @@ public void setTimestamp(String timestamp) { /** * The `transStatus` value as defined in the 3D Secure 2 specification. * - * @param transStatus The `transStatus` value as defined in the 3D Secure 2 - * specification. + * @param transStatus The `transStatus` value as defined in the 3D Secure 2 specification. * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result transStatus(String transStatus) { @@ -688,9 +597,7 @@ public ThreeDS2Result transStatus(String transStatus) { /** * The `transStatus` value as defined in the 3D Secure 2 specification. - * - * @return transStatus The `transStatus` value as defined in the 3D Secure 2 - * specification. + * @return transStatus The `transStatus` value as defined in the 3D Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -701,8 +608,7 @@ public String getTransStatus() { /** * The `transStatus` value as defined in the 3D Secure 2 specification. * - * @param transStatus The `transStatus` value as defined in the 3D Secure 2 - * specification. + * @param transStatus The `transStatus` value as defined in the 3D Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -711,13 +617,9 @@ public void setTransStatus(String transStatus) { } /** - * Provides information on why the `transStatus` field has the specified value. For - * possible values, refer to [our - * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). * - * @param transStatusReason Provides information on why the `transStatus` field has the - * specified value. For possible values, refer to [our - * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * @param transStatusReason Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result transStatusReason(String transStatusReason) { @@ -726,13 +628,8 @@ public ThreeDS2Result transStatusReason(String transStatusReason) { } /** - * Provides information on why the `transStatus` field has the specified value. For - * possible values, refer to [our - * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). - * - * @return transStatusReason Provides information on why the `transStatus` field has the - * specified value. For possible values, refer to [our - * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * @return transStatusReason Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -741,13 +638,9 @@ public String getTransStatusReason() { } /** - * Provides information on why the `transStatus` field has the specified value. For - * possible values, refer to [our - * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). * - * @param transStatusReason Provides information on why the `transStatus` field has the - * specified value. For possible values, refer to [our - * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * @param transStatusReason Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -758,8 +651,7 @@ public void setTransStatusReason(String transStatusReason) { /** * The `whiteListStatus` value as defined in the 3D Secure 2 specification. * - * @param whiteListStatus The `whiteListStatus` value as defined in the 3D Secure 2 - * specification. + * @param whiteListStatus The `whiteListStatus` value as defined in the 3D Secure 2 specification. * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result whiteListStatus(String whiteListStatus) { @@ -769,9 +661,7 @@ public ThreeDS2Result whiteListStatus(String whiteListStatus) { /** * The `whiteListStatus` value as defined in the 3D Secure 2 specification. - * - * @return whiteListStatus The `whiteListStatus` value as defined in the 3D Secure 2 - * specification. + * @return whiteListStatus The `whiteListStatus` value as defined in the 3D Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_WHITE_LIST_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -782,8 +672,7 @@ public String getWhiteListStatus() { /** * The `whiteListStatus` value as defined in the 3D Secure 2 specification. * - * @param whiteListStatus The `whiteListStatus` value as defined in the 3D Secure 2 - * specification. + * @param whiteListStatus The `whiteListStatus` value as defined in the 3D Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_WHITE_LIST_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -791,7 +680,9 @@ public void setWhiteListStatus(String whiteListStatus) { this.whiteListStatus = whiteListStatus; } - /** Return true if this ThreeDS2Result object is equal to o. */ + /** + * Return true if this ThreeDS2Result object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -801,49 +692,32 @@ public boolean equals(Object o) { return false; } ThreeDS2Result threeDS2Result = (ThreeDS2Result) o; - return Objects.equals(this.authenticationValue, threeDS2Result.authenticationValue) - && Objects.equals(this.cavvAlgorithm, threeDS2Result.cavvAlgorithm) - && Objects.equals(this.challengeCancel, threeDS2Result.challengeCancel) - && Objects.equals(this.dsTransID, threeDS2Result.dsTransID) - && Objects.equals(this.eci, threeDS2Result.eci) - && Objects.equals(this.exemptionIndicator, threeDS2Result.exemptionIndicator) - && Objects.equals(this.messageVersion, threeDS2Result.messageVersion) - && Objects.equals(this.riskScore, threeDS2Result.riskScore) - && Objects.equals( - this.threeDSRequestorChallengeInd, threeDS2Result.threeDSRequestorChallengeInd) - && Objects.equals(this.threeDSServerTransID, threeDS2Result.threeDSServerTransID) - && Objects.equals(this.timestamp, threeDS2Result.timestamp) - && Objects.equals(this.transStatus, threeDS2Result.transStatus) - && Objects.equals(this.transStatusReason, threeDS2Result.transStatusReason) - && Objects.equals(this.whiteListStatus, threeDS2Result.whiteListStatus); + return Objects.equals(this.authenticationValue, threeDS2Result.authenticationValue) && + Objects.equals(this.cavvAlgorithm, threeDS2Result.cavvAlgorithm) && + Objects.equals(this.challengeCancel, threeDS2Result.challengeCancel) && + Objects.equals(this.dsTransID, threeDS2Result.dsTransID) && + Objects.equals(this.eci, threeDS2Result.eci) && + Objects.equals(this.exemptionIndicator, threeDS2Result.exemptionIndicator) && + Objects.equals(this.messageVersion, threeDS2Result.messageVersion) && + Objects.equals(this.riskScore, threeDS2Result.riskScore) && + Objects.equals(this.threeDSRequestorChallengeInd, threeDS2Result.threeDSRequestorChallengeInd) && + Objects.equals(this.threeDSServerTransID, threeDS2Result.threeDSServerTransID) && + Objects.equals(this.timestamp, threeDS2Result.timestamp) && + Objects.equals(this.transStatus, threeDS2Result.transStatus) && + Objects.equals(this.transStatusReason, threeDS2Result.transStatusReason) && + Objects.equals(this.whiteListStatus, threeDS2Result.whiteListStatus); } @Override public int hashCode() { - return Objects.hash( - authenticationValue, - cavvAlgorithm, - challengeCancel, - dsTransID, - eci, - exemptionIndicator, - messageVersion, - riskScore, - threeDSRequestorChallengeInd, - threeDSServerTransID, - timestamp, - transStatus, - transStatusReason, - whiteListStatus); + return Objects.hash(authenticationValue, cavvAlgorithm, challengeCancel, dsTransID, eci, exemptionIndicator, messageVersion, riskScore, threeDSRequestorChallengeInd, threeDSServerTransID, timestamp, transStatus, transStatusReason, whiteListStatus); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ThreeDS2Result {\n"); - sb.append(" authenticationValue: ") - .append(toIndentedString(authenticationValue)) - .append("\n"); + sb.append(" authenticationValue: ").append(toIndentedString(authenticationValue)).append("\n"); sb.append(" cavvAlgorithm: ").append(toIndentedString(cavvAlgorithm)).append("\n"); sb.append(" challengeCancel: ").append(toIndentedString(challengeCancel)).append("\n"); sb.append(" dsTransID: ").append(toIndentedString(dsTransID)).append("\n"); @@ -851,12 +725,8 @@ public String toString() { sb.append(" exemptionIndicator: ").append(toIndentedString(exemptionIndicator)).append("\n"); sb.append(" messageVersion: ").append(toIndentedString(messageVersion)).append("\n"); sb.append(" riskScore: ").append(toIndentedString(riskScore)).append("\n"); - sb.append(" threeDSRequestorChallengeInd: ") - .append(toIndentedString(threeDSRequestorChallengeInd)) - .append("\n"); - sb.append(" threeDSServerTransID: ") - .append(toIndentedString(threeDSServerTransID)) - .append("\n"); + sb.append(" threeDSRequestorChallengeInd: ").append(toIndentedString(threeDSRequestorChallengeInd)).append("\n"); + sb.append(" threeDSServerTransID: ").append(toIndentedString(threeDSServerTransID)).append("\n"); sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); sb.append(" transStatus: ").append(toIndentedString(transStatus)).append("\n"); sb.append(" transStatusReason: ").append(toIndentedString(transStatusReason)).append("\n"); @@ -866,7 +736,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -875,7 +746,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ThreeDS2Result given an JSON string * * @param jsonString JSON string @@ -885,12 +756,11 @@ private String toIndentedString(Object o) { public static ThreeDS2Result fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDS2Result.class); } - - /** - * Convert an instance of ThreeDS2Result to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ThreeDS2Result to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ThreeDSRequestData.java b/src/main/java/com/adyen/model/checkout/ThreeDSRequestData.java index a6be4a5a3..9409ce597 100644 --- a/src/main/java/com/adyen/model/checkout/ThreeDSRequestData.java +++ b/src/main/java/com/adyen/model/checkout/ThreeDSRequestData.java @@ -2,39 +2,44 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ThreeDSRequestData */ +/** + * ThreeDSRequestData + */ @JsonPropertyOrder({ ThreeDSRequestData.JSON_PROPERTY_CHALLENGE_WINDOW_SIZE, ThreeDSRequestData.JSON_PROPERTY_DATA_ONLY, ThreeDSRequestData.JSON_PROPERTY_NATIVE_THREE_D_S, ThreeDSRequestData.JSON_PROPERTY_THREE_D_S_VERSION }) + public class ThreeDSRequestData { /** - * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * - * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size - * of 600x400 * **05** - Fullscreen + * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen */ public enum ChallengeWindowSizeEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -50,7 +55,7 @@ public enum ChallengeWindowSizeEnum { private String value; ChallengeWindowSizeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -71,11 +76,7 @@ public static ChallengeWindowSizeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ChallengeWindowSizeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ChallengeWindowSizeEnum.values())); + LOG.warning("ChallengeWindowSizeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChallengeWindowSizeEnum.values())); return null; } } @@ -84,11 +85,10 @@ public static ChallengeWindowSizeEnum fromValue(String value) { private ChallengeWindowSizeEnum challengeWindowSize; /** - * Required to trigger the [data-only - * flow](https://docs.adyen.com/online-payments/3d-secure/data-only/). When set to **true**, - * forces the 3D Secure 2 data-only flow for all transactions where it is possible. + * Required to trigger the [data-only flow](https://docs.adyen.com/online-payments/3d-secure/data-only/). When set to **true**, forces the 3D Secure 2 data-only flow for all transactions where it is possible. */ public enum DataOnlyEnum { + FALSE(String.valueOf("false")), TRUE(String.valueOf("true")); @@ -98,7 +98,7 @@ public enum DataOnlyEnum { private String value; DataOnlyEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -119,11 +119,7 @@ public static DataOnlyEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "DataOnlyEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(DataOnlyEnum.values())); + LOG.warning("DataOnlyEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(DataOnlyEnum.values())); return null; } } @@ -132,14 +128,10 @@ public static DataOnlyEnum fromValue(String value) { private DataOnlyEnum dataOnly; /** - * Indicates if [native 3D Secure - * authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be - * triggered when available. Adyen can still select to fallback to the redirect flow to optimize - * authorization rates and improve the shopper's experience. Possible values: * **preferred**: - * Use native 3D Secure authentication when available. * **disabled**: Use the redirect 3D Secure - * authentication flow. + * Indicates if [native 3D Secure authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be triggered when available. Adyen can still select to fallback to the redirect flow to optimize authorization rates and improve the shopper's experience. Possible values: * **preferred**: Use native 3D Secure authentication when available. * **disabled**: Use the redirect 3D Secure authentication flow. */ public enum NativeThreeDSEnum { + PREFERRED(String.valueOf("preferred")), DISABLED(String.valueOf("disabled")); @@ -149,7 +141,7 @@ public enum NativeThreeDSEnum { private String value; NativeThreeDSEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -170,11 +162,7 @@ public static NativeThreeDSEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "NativeThreeDSEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(NativeThreeDSEnum.values())); + LOG.warning("NativeThreeDSEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(NativeThreeDSEnum.values())); return null; } } @@ -182,8 +170,11 @@ public static NativeThreeDSEnum fromValue(String value) { public static final String JSON_PROPERTY_NATIVE_THREE_D_S = "nativeThreeDS"; private NativeThreeDSEnum nativeThreeDS; - /** The version of 3D Secure to use. Possible values: * **2.1.0** * **2.2.0** */ + /** + * The version of 3D Secure to use. Possible values: * **2.1.0** * **2.2.0** + */ public enum ThreeDSVersionEnum { + _2_1_0(String.valueOf("2.1.0")), _2_2_0(String.valueOf("2.2.0")); @@ -193,7 +184,7 @@ public enum ThreeDSVersionEnum { private String value; ThreeDSVersionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -214,11 +205,7 @@ public static ThreeDSVersionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ThreeDSVersionEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ThreeDSVersionEnum.values())); + LOG.warning("ThreeDSVersionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ThreeDSVersionEnum.values())); return null; } } @@ -226,16 +213,13 @@ public static ThreeDSVersionEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_VERSION = "threeDSVersion"; private ThreeDSVersionEnum threeDSVersion; - public ThreeDSRequestData() {} + public ThreeDSRequestData() { + } /** - * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * - * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size - * of 600x400 * **05** - Fullscreen + * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen * - * @param challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the - * cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - * - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + * @param challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen * @return the current {@code ThreeDSRequestData} instance, allowing for method chaining */ public ThreeDSRequestData challengeWindowSize(ChallengeWindowSizeEnum challengeWindowSize) { @@ -244,13 +228,8 @@ public ThreeDSRequestData challengeWindowSize(ChallengeWindowSizeEnum challengeW } /** - * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * - * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size - * of 600x400 * **05** - Fullscreen - * - * @return challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the - * cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - * - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + * @return challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen */ @JsonProperty(JSON_PROPERTY_CHALLENGE_WINDOW_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -259,13 +238,9 @@ public ChallengeWindowSizeEnum getChallengeWindowSize() { } /** - * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * - * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size - * of 600x400 * **05** - Fullscreen + * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen * - * @param challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the - * cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - * - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + * @param challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen */ @JsonProperty(JSON_PROPERTY_CHALLENGE_WINDOW_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -274,13 +249,9 @@ public void setChallengeWindowSize(ChallengeWindowSizeEnum challengeWindowSize) } /** - * Required to trigger the [data-only - * flow](https://docs.adyen.com/online-payments/3d-secure/data-only/). When set to **true**, - * forces the 3D Secure 2 data-only flow for all transactions where it is possible. + * Required to trigger the [data-only flow](https://docs.adyen.com/online-payments/3d-secure/data-only/). When set to **true**, forces the 3D Secure 2 data-only flow for all transactions where it is possible. * - * @param dataOnly Required to trigger the [data-only - * flow](https://docs.adyen.com/online-payments/3d-secure/data-only/). When set to **true**, - * forces the 3D Secure 2 data-only flow for all transactions where it is possible. + * @param dataOnly Required to trigger the [data-only flow](https://docs.adyen.com/online-payments/3d-secure/data-only/). When set to **true**, forces the 3D Secure 2 data-only flow for all transactions where it is possible. * @return the current {@code ThreeDSRequestData} instance, allowing for method chaining */ public ThreeDSRequestData dataOnly(DataOnlyEnum dataOnly) { @@ -289,13 +260,8 @@ public ThreeDSRequestData dataOnly(DataOnlyEnum dataOnly) { } /** - * Required to trigger the [data-only - * flow](https://docs.adyen.com/online-payments/3d-secure/data-only/). When set to **true**, - * forces the 3D Secure 2 data-only flow for all transactions where it is possible. - * - * @return dataOnly Required to trigger the [data-only - * flow](https://docs.adyen.com/online-payments/3d-secure/data-only/). When set to **true**, - * forces the 3D Secure 2 data-only flow for all transactions where it is possible. + * Required to trigger the [data-only flow](https://docs.adyen.com/online-payments/3d-secure/data-only/). When set to **true**, forces the 3D Secure 2 data-only flow for all transactions where it is possible. + * @return dataOnly Required to trigger the [data-only flow](https://docs.adyen.com/online-payments/3d-secure/data-only/). When set to **true**, forces the 3D Secure 2 data-only flow for all transactions where it is possible. */ @JsonProperty(JSON_PROPERTY_DATA_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -304,13 +270,9 @@ public DataOnlyEnum getDataOnly() { } /** - * Required to trigger the [data-only - * flow](https://docs.adyen.com/online-payments/3d-secure/data-only/). When set to **true**, - * forces the 3D Secure 2 data-only flow for all transactions where it is possible. + * Required to trigger the [data-only flow](https://docs.adyen.com/online-payments/3d-secure/data-only/). When set to **true**, forces the 3D Secure 2 data-only flow for all transactions where it is possible. * - * @param dataOnly Required to trigger the [data-only - * flow](https://docs.adyen.com/online-payments/3d-secure/data-only/). When set to **true**, - * forces the 3D Secure 2 data-only flow for all transactions where it is possible. + * @param dataOnly Required to trigger the [data-only flow](https://docs.adyen.com/online-payments/3d-secure/data-only/). When set to **true**, forces the 3D Secure 2 data-only flow for all transactions where it is possible. */ @JsonProperty(JSON_PROPERTY_DATA_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -319,19 +281,9 @@ public void setDataOnly(DataOnlyEnum dataOnly) { } /** - * Indicates if [native 3D Secure - * authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be - * triggered when available. Adyen can still select to fallback to the redirect flow to optimize - * authorization rates and improve the shopper's experience. Possible values: * **preferred**: - * Use native 3D Secure authentication when available. * **disabled**: Use the redirect 3D Secure - * authentication flow. + * Indicates if [native 3D Secure authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be triggered when available. Adyen can still select to fallback to the redirect flow to optimize authorization rates and improve the shopper's experience. Possible values: * **preferred**: Use native 3D Secure authentication when available. * **disabled**: Use the redirect 3D Secure authentication flow. * - * @param nativeThreeDS Indicates if [native 3D Secure - * authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be - * triggered when available. Adyen can still select to fallback to the redirect flow to - * optimize authorization rates and improve the shopper's experience. Possible values: * - * **preferred**: Use native 3D Secure authentication when available. * **disabled**: Use the - * redirect 3D Secure authentication flow. + * @param nativeThreeDS Indicates if [native 3D Secure authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be triggered when available. Adyen can still select to fallback to the redirect flow to optimize authorization rates and improve the shopper's experience. Possible values: * **preferred**: Use native 3D Secure authentication when available. * **disabled**: Use the redirect 3D Secure authentication flow. * @return the current {@code ThreeDSRequestData} instance, allowing for method chaining */ public ThreeDSRequestData nativeThreeDS(NativeThreeDSEnum nativeThreeDS) { @@ -340,19 +292,8 @@ public ThreeDSRequestData nativeThreeDS(NativeThreeDSEnum nativeThreeDS) { } /** - * Indicates if [native 3D Secure - * authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be - * triggered when available. Adyen can still select to fallback to the redirect flow to optimize - * authorization rates and improve the shopper's experience. Possible values: * **preferred**: - * Use native 3D Secure authentication when available. * **disabled**: Use the redirect 3D Secure - * authentication flow. - * - * @return nativeThreeDS Indicates if [native 3D Secure - * authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be - * triggered when available. Adyen can still select to fallback to the redirect flow to - * optimize authorization rates and improve the shopper's experience. Possible values: * - * **preferred**: Use native 3D Secure authentication when available. * **disabled**: Use the - * redirect 3D Secure authentication flow. + * Indicates if [native 3D Secure authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be triggered when available. Adyen can still select to fallback to the redirect flow to optimize authorization rates and improve the shopper's experience. Possible values: * **preferred**: Use native 3D Secure authentication when available. * **disabled**: Use the redirect 3D Secure authentication flow. + * @return nativeThreeDS Indicates if [native 3D Secure authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be triggered when available. Adyen can still select to fallback to the redirect flow to optimize authorization rates and improve the shopper's experience. Possible values: * **preferred**: Use native 3D Secure authentication when available. * **disabled**: Use the redirect 3D Secure authentication flow. */ @JsonProperty(JSON_PROPERTY_NATIVE_THREE_D_S) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -361,19 +302,9 @@ public NativeThreeDSEnum getNativeThreeDS() { } /** - * Indicates if [native 3D Secure - * authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be - * triggered when available. Adyen can still select to fallback to the redirect flow to optimize - * authorization rates and improve the shopper's experience. Possible values: * **preferred**: - * Use native 3D Secure authentication when available. * **disabled**: Use the redirect 3D Secure - * authentication flow. + * Indicates if [native 3D Secure authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be triggered when available. Adyen can still select to fallback to the redirect flow to optimize authorization rates and improve the shopper's experience. Possible values: * **preferred**: Use native 3D Secure authentication when available. * **disabled**: Use the redirect 3D Secure authentication flow. * - * @param nativeThreeDS Indicates if [native 3D Secure - * authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be - * triggered when available. Adyen can still select to fallback to the redirect flow to - * optimize authorization rates and improve the shopper's experience. Possible values: * - * **preferred**: Use native 3D Secure authentication when available. * **disabled**: Use the - * redirect 3D Secure authentication flow. + * @param nativeThreeDS Indicates if [native 3D Secure authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be triggered when available. Adyen can still select to fallback to the redirect flow to optimize authorization rates and improve the shopper's experience. Possible values: * **preferred**: Use native 3D Secure authentication when available. * **disabled**: Use the redirect 3D Secure authentication flow. */ @JsonProperty(JSON_PROPERTY_NATIVE_THREE_D_S) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -382,9 +313,9 @@ public void setNativeThreeDS(NativeThreeDSEnum nativeThreeDS) { } /** - * The version of 3D Secure to use. Possible values: * **2.1.0** * **2.2.0** + * The version of 3D Secure to use. Possible values: * **2.1.0** * **2.2.0** * - * @param threeDSVersion The version of 3D Secure to use. Possible values: * **2.1.0** * **2.2.0** + * @param threeDSVersion The version of 3D Secure to use. Possible values: * **2.1.0** * **2.2.0** * @return the current {@code ThreeDSRequestData} instance, allowing for method chaining */ public ThreeDSRequestData threeDSVersion(ThreeDSVersionEnum threeDSVersion) { @@ -393,10 +324,8 @@ public ThreeDSRequestData threeDSVersion(ThreeDSVersionEnum threeDSVersion) { } /** - * The version of 3D Secure to use. Possible values: * **2.1.0** * **2.2.0** - * - * @return threeDSVersion The version of 3D Secure to use. Possible values: * **2.1.0** * - * **2.2.0** + * The version of 3D Secure to use. Possible values: * **2.1.0** * **2.2.0** + * @return threeDSVersion The version of 3D Secure to use. Possible values: * **2.1.0** * **2.2.0** */ @JsonProperty(JSON_PROPERTY_THREE_D_S_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -405,9 +334,9 @@ public ThreeDSVersionEnum getThreeDSVersion() { } /** - * The version of 3D Secure to use. Possible values: * **2.1.0** * **2.2.0** + * The version of 3D Secure to use. Possible values: * **2.1.0** * **2.2.0** * - * @param threeDSVersion The version of 3D Secure to use. Possible values: * **2.1.0** * **2.2.0** + * @param threeDSVersion The version of 3D Secure to use. Possible values: * **2.1.0** * **2.2.0** */ @JsonProperty(JSON_PROPERTY_THREE_D_S_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -415,7 +344,9 @@ public void setThreeDSVersion(ThreeDSVersionEnum threeDSVersion) { this.threeDSVersion = threeDSVersion; } - /** Return true if this ThreeDSRequestData object is equal to o. */ + /** + * Return true if this ThreeDSRequestData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -425,10 +356,10 @@ public boolean equals(Object o) { return false; } ThreeDSRequestData threeDSRequestData = (ThreeDSRequestData) o; - return Objects.equals(this.challengeWindowSize, threeDSRequestData.challengeWindowSize) - && Objects.equals(this.dataOnly, threeDSRequestData.dataOnly) - && Objects.equals(this.nativeThreeDS, threeDSRequestData.nativeThreeDS) - && Objects.equals(this.threeDSVersion, threeDSRequestData.threeDSVersion); + return Objects.equals(this.challengeWindowSize, threeDSRequestData.challengeWindowSize) && + Objects.equals(this.dataOnly, threeDSRequestData.dataOnly) && + Objects.equals(this.nativeThreeDS, threeDSRequestData.nativeThreeDS) && + Objects.equals(this.threeDSVersion, threeDSRequestData.threeDSVersion); } @Override @@ -440,9 +371,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ThreeDSRequestData {\n"); - sb.append(" challengeWindowSize: ") - .append(toIndentedString(challengeWindowSize)) - .append("\n"); + sb.append(" challengeWindowSize: ").append(toIndentedString(challengeWindowSize)).append("\n"); sb.append(" dataOnly: ").append(toIndentedString(dataOnly)).append("\n"); sb.append(" nativeThreeDS: ").append(toIndentedString(nativeThreeDS)).append("\n"); sb.append(" threeDSVersion: ").append(toIndentedString(threeDSVersion)).append("\n"); @@ -451,7 +380,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -460,23 +390,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ThreeDSRequestData given an JSON string * * @param jsonString JSON string * @return An instance of ThreeDSRequestData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ThreeDSRequestData + * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDSRequestData */ public static ThreeDSRequestData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDSRequestData.class); } - - /** - * Convert an instance of ThreeDSRequestData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ThreeDSRequestData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ThreeDSRequestorAuthenticationInfo.java b/src/main/java/com/adyen/model/checkout/ThreeDSRequestorAuthenticationInfo.java index 308310740..8d38dffc5 100644 --- a/src/main/java/com/adyen/model/checkout/ThreeDSRequestorAuthenticationInfo.java +++ b/src/main/java/com/adyen/model/checkout/ThreeDSRequestorAuthenticationInfo.java @@ -2,46 +2,46 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ThreeDSRequestorAuthenticationInfo */ +/** + * ThreeDSRequestorAuthenticationInfo + */ @JsonPropertyOrder({ ThreeDSRequestorAuthenticationInfo.JSON_PROPERTY_THREE_D_S_REQ_AUTH_DATA, ThreeDSRequestorAuthenticationInfo.JSON_PROPERTY_THREE_D_S_REQ_AUTH_METHOD, ThreeDSRequestorAuthenticationInfo.JSON_PROPERTY_THREE_D_S_REQ_AUTH_TIMESTAMP }) + public class ThreeDSRequestorAuthenticationInfo { public static final String JSON_PROPERTY_THREE_D_S_REQ_AUTH_DATA = "threeDSReqAuthData"; private String threeDSReqAuthData; /** - * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** - * — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * - * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own - * credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using - * federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using - * issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system - * using third-party authentication. * **06** — Login to the cardholder account at the 3DS - * Requestor system using FIDO Authenticator. + * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system using third-party authentication. * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator. */ public enum ThreeDSReqAuthMethodEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -59,7 +59,7 @@ public enum ThreeDSReqAuthMethodEnum { private String value; ThreeDSReqAuthMethodEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -80,11 +80,7 @@ public static ThreeDSReqAuthMethodEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ThreeDSReqAuthMethodEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ThreeDSReqAuthMethodEnum.values())); + LOG.warning("ThreeDSReqAuthMethodEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ThreeDSReqAuthMethodEnum.values())); return null; } } @@ -95,15 +91,14 @@ public static ThreeDSReqAuthMethodEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_REQ_AUTH_TIMESTAMP = "threeDSReqAuthTimestamp"; private String threeDSReqAuthTimestamp; - public ThreeDSRequestorAuthenticationInfo() {} + public ThreeDSRequestorAuthenticationInfo() { + } /** * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. * - * @param threeDSReqAuthData Data that documents and supports a specific authentication process. - * Maximum length: 2048 bytes. - * @return the current {@code ThreeDSRequestorAuthenticationInfo} instance, allowing for method - * chaining + * @param threeDSReqAuthData Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. + * @return the current {@code ThreeDSRequestorAuthenticationInfo} instance, allowing for method chaining */ public ThreeDSRequestorAuthenticationInfo threeDSReqAuthData(String threeDSReqAuthData) { this.threeDSReqAuthData = threeDSReqAuthData; @@ -112,9 +107,7 @@ public ThreeDSRequestorAuthenticationInfo threeDSReqAuthData(String threeDSReqAu /** * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. - * - * @return threeDSReqAuthData Data that documents and supports a specific authentication process. - * Maximum length: 2048 bytes. + * @return threeDSReqAuthData Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_AUTH_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,8 +118,7 @@ public String getThreeDSReqAuthData() { /** * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. * - * @param threeDSReqAuthData Data that documents and supports a specific authentication process. - * Maximum length: 2048 bytes. + * @param threeDSReqAuthData Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_AUTH_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,52 +127,19 @@ public void setThreeDSReqAuthData(String threeDSReqAuthData) { } /** - * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** - * — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * - * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own - * credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using - * federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using - * issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system - * using third-party authentication. * **06** — Login to the cardholder account at the 3DS - * Requestor system using FIDO Authenticator. + * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system using third-party authentication. * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator. * - * @param threeDSReqAuthMethod Mechanism used by the Cardholder to authenticate to the 3DS - * Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for - * example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at - * the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the - * cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the - * cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login - * to the cardholder account at the 3DS Requestor system using third-party authentication. * - * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO - * Authenticator. - * @return the current {@code ThreeDSRequestorAuthenticationInfo} instance, allowing for method - * chaining + * @param threeDSReqAuthMethod Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system using third-party authentication. * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator. + * @return the current {@code ThreeDSRequestorAuthenticationInfo} instance, allowing for method chaining */ - public ThreeDSRequestorAuthenticationInfo threeDSReqAuthMethod( - ThreeDSReqAuthMethodEnum threeDSReqAuthMethod) { + public ThreeDSRequestorAuthenticationInfo threeDSReqAuthMethod(ThreeDSReqAuthMethodEnum threeDSReqAuthMethod) { this.threeDSReqAuthMethod = threeDSReqAuthMethod; return this; } /** - * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** - * — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * - * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own - * credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using - * federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using - * issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system - * using third-party authentication. * **06** — Login to the cardholder account at the 3DS - * Requestor system using FIDO Authenticator. - * - * @return threeDSReqAuthMethod Mechanism used by the Cardholder to authenticate to the 3DS - * Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for - * example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at - * the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the - * cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the - * cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login - * to the cardholder account at the 3DS Requestor system using third-party authentication. * - * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO - * Authenticator. + * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system using third-party authentication. * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator. + * @return threeDSReqAuthMethod Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system using third-party authentication. * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_AUTH_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,24 +148,9 @@ public ThreeDSReqAuthMethodEnum getThreeDSReqAuthMethod() { } /** - * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** - * — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * - * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own - * credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using - * federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using - * issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system - * using third-party authentication. * **06** — Login to the cardholder account at the 3DS - * Requestor system using FIDO Authenticator. + * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system using third-party authentication. * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator. * - * @param threeDSReqAuthMethod Mechanism used by the Cardholder to authenticate to the 3DS - * Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for - * example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at - * the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the - * cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the - * cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login - * to the cardholder account at the 3DS Requestor system using third-party authentication. * - * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO - * Authenticator. + * @param threeDSReqAuthMethod Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system using third-party authentication. * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_AUTH_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -217,22 +161,17 @@ public void setThreeDSReqAuthMethod(ThreeDSReqAuthMethodEnum threeDSReqAuthMetho /** * Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM * - * @param threeDSReqAuthTimestamp Date and time in UTC of the cardholder authentication. Format: - * YYYYMMDDHHMM - * @return the current {@code ThreeDSRequestorAuthenticationInfo} instance, allowing for method - * chaining + * @param threeDSReqAuthTimestamp Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM + * @return the current {@code ThreeDSRequestorAuthenticationInfo} instance, allowing for method chaining */ - public ThreeDSRequestorAuthenticationInfo threeDSReqAuthTimestamp( - String threeDSReqAuthTimestamp) { + public ThreeDSRequestorAuthenticationInfo threeDSReqAuthTimestamp(String threeDSReqAuthTimestamp) { this.threeDSReqAuthTimestamp = threeDSReqAuthTimestamp; return this; } /** * Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM - * - * @return threeDSReqAuthTimestamp Date and time in UTC of the cardholder authentication. Format: - * YYYYMMDDHHMM + * @return threeDSReqAuthTimestamp Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_AUTH_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -243,8 +182,7 @@ public String getThreeDSReqAuthTimestamp() { /** * Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM * - * @param threeDSReqAuthTimestamp Date and time in UTC of the cardholder authentication. Format: - * YYYYMMDDHHMM + * @param threeDSReqAuthTimestamp Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_AUTH_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,7 +190,9 @@ public void setThreeDSReqAuthTimestamp(String threeDSReqAuthTimestamp) { this.threeDSReqAuthTimestamp = threeDSReqAuthTimestamp; } - /** Return true if this ThreeDSRequestorAuthenticationInfo object is equal to o. */ + /** + * Return true if this ThreeDSRequestorAuthenticationInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -261,15 +201,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo = - (ThreeDSRequestorAuthenticationInfo) o; - return Objects.equals( - this.threeDSReqAuthData, threeDSRequestorAuthenticationInfo.threeDSReqAuthData) - && Objects.equals( - this.threeDSReqAuthMethod, threeDSRequestorAuthenticationInfo.threeDSReqAuthMethod) - && Objects.equals( - this.threeDSReqAuthTimestamp, - threeDSRequestorAuthenticationInfo.threeDSReqAuthTimestamp); + ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo = (ThreeDSRequestorAuthenticationInfo) o; + return Objects.equals(this.threeDSReqAuthData, threeDSRequestorAuthenticationInfo.threeDSReqAuthData) && + Objects.equals(this.threeDSReqAuthMethod, threeDSRequestorAuthenticationInfo.threeDSReqAuthMethod) && + Objects.equals(this.threeDSReqAuthTimestamp, threeDSRequestorAuthenticationInfo.threeDSReqAuthTimestamp); } @Override @@ -282,18 +217,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ThreeDSRequestorAuthenticationInfo {\n"); sb.append(" threeDSReqAuthData: ").append(toIndentedString(threeDSReqAuthData)).append("\n"); - sb.append(" threeDSReqAuthMethod: ") - .append(toIndentedString(threeDSReqAuthMethod)) - .append("\n"); - sb.append(" threeDSReqAuthTimestamp: ") - .append(toIndentedString(threeDSReqAuthTimestamp)) - .append("\n"); + sb.append(" threeDSReqAuthMethod: ").append(toIndentedString(threeDSReqAuthMethod)).append("\n"); + sb.append(" threeDSReqAuthTimestamp: ").append(toIndentedString(threeDSReqAuthTimestamp)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -302,24 +234,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ThreeDSRequestorAuthenticationInfo given an JSON string * * @param jsonString JSON string * @return An instance of ThreeDSRequestorAuthenticationInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ThreeDSRequestorAuthenticationInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDSRequestorAuthenticationInfo */ - public static ThreeDSRequestorAuthenticationInfo fromJson(String jsonString) - throws JsonProcessingException { + public static ThreeDSRequestorAuthenticationInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDSRequestorAuthenticationInfo.class); } - - /** - * Convert an instance of ThreeDSRequestorAuthenticationInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ThreeDSRequestorAuthenticationInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ThreeDSRequestorPriorAuthenticationInfo.java b/src/main/java/com/adyen/model/checkout/ThreeDSRequestorPriorAuthenticationInfo.java index 024ad833a..ddbc281a0 100644 --- a/src/main/java/com/adyen/model/checkout/ThreeDSRequestorPriorAuthenticationInfo.java +++ b/src/main/java/com/adyen/model/checkout/ThreeDSRequestorPriorAuthenticationInfo.java @@ -2,43 +2,47 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ThreeDSRequestorPriorAuthenticationInfo */ +/** + * ThreeDSRequestorPriorAuthenticationInfo + */ @JsonPropertyOrder({ ThreeDSRequestorPriorAuthenticationInfo.JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_DATA, ThreeDSRequestorPriorAuthenticationInfo.JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_METHOD, ThreeDSRequestorPriorAuthenticationInfo.JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_TIMESTAMP, ThreeDSRequestorPriorAuthenticationInfo.JSON_PROPERTY_THREE_D_S_REQ_PRIOR_REF }) + public class ThreeDSRequestorPriorAuthenticationInfo { - public static final String JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_DATA = - "threeDSReqPriorAuthData"; + public static final String JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_DATA = "threeDSReqPriorAuthData"; private String threeDSReqPriorAuthData; /** - * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed - * values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge - * occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. + * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. */ public enum ThreeDSReqPriorAuthMethodEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -47,13 +51,12 @@ public enum ThreeDSReqPriorAuthMethodEnum { _04(String.valueOf("04")); - private static final Logger LOG = - Logger.getLogger(ThreeDSReqPriorAuthMethodEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(ThreeDSReqPriorAuthMethodEnum.class.getName()); private String value; ThreeDSReqPriorAuthMethodEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -74,47 +77,37 @@ public static ThreeDSReqPriorAuthMethodEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ThreeDSReqPriorAuthMethodEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ThreeDSReqPriorAuthMethodEnum.values())); + LOG.warning("ThreeDSReqPriorAuthMethodEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ThreeDSReqPriorAuthMethodEnum.values())); return null; } } - public static final String JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_METHOD = - "threeDSReqPriorAuthMethod"; + public static final String JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_METHOD = "threeDSReqPriorAuthMethod"; private ThreeDSReqPriorAuthMethodEnum threeDSReqPriorAuthMethod; - public static final String JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_TIMESTAMP = - "threeDSReqPriorAuthTimestamp"; + public static final String JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_TIMESTAMP = "threeDSReqPriorAuthTimestamp"; private String threeDSReqPriorAuthTimestamp; public static final String JSON_PROPERTY_THREE_D_S_REQ_PRIOR_REF = "threeDSReqPriorRef"; private String threeDSReqPriorRef; - public ThreeDSRequestorPriorAuthenticationInfo() {} + public ThreeDSRequestorPriorAuthenticationInfo() { + } /** * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. * - * @param threeDSReqPriorAuthData Data that documents and supports a specific authentication - * process. Maximum length: 2048 bytes. - * @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for - * method chaining + * @param threeDSReqPriorAuthData Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. + * @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for method chaining */ - public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorAuthData( - String threeDSReqPriorAuthData) { + public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorAuthData(String threeDSReqPriorAuthData) { this.threeDSReqPriorAuthData = threeDSReqPriorAuthData; return this; } /** * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. - * - * @return threeDSReqPriorAuthData Data that documents and supports a specific authentication - * process. Maximum length: 2048 bytes. + * @return threeDSReqPriorAuthData Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,8 +118,7 @@ public String getThreeDSReqPriorAuthData() { /** * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. * - * @param threeDSReqPriorAuthData Data that documents and supports a specific authentication - * process. Maximum length: 2048 bytes. + * @param threeDSReqPriorAuthData Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,32 +127,19 @@ public void setThreeDSReqPriorAuthData(String threeDSReqPriorAuthData) { } /** - * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed - * values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge - * occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. + * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. * - * @param threeDSReqPriorAuthMethod Mechanism used by the Cardholder to previously authenticate to - * the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. - * * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other - * issuer methods. - * @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for - * method chaining + * @param threeDSReqPriorAuthMethod Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. + * @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for method chaining */ - public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorAuthMethod( - ThreeDSReqPriorAuthMethodEnum threeDSReqPriorAuthMethod) { + public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorAuthMethod(ThreeDSReqPriorAuthMethodEnum threeDSReqPriorAuthMethod) { this.threeDSReqPriorAuthMethod = threeDSReqPriorAuthMethod; return this; } /** - * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed - * values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge - * occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. - * - * @return threeDSReqPriorAuthMethod Mechanism used by the Cardholder to previously authenticate - * to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by - * ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — - * Other issuer methods. + * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. + * @return threeDSReqPriorAuthMethod Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,41 +148,30 @@ public ThreeDSReqPriorAuthMethodEnum getThreeDSReqPriorAuthMethod() { } /** - * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed - * values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge - * occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. + * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. * - * @param threeDSReqPriorAuthMethod Mechanism used by the Cardholder to previously authenticate to - * the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. - * * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other - * issuer methods. + * @param threeDSReqPriorAuthMethod Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setThreeDSReqPriorAuthMethod( - ThreeDSReqPriorAuthMethodEnum threeDSReqPriorAuthMethod) { + public void setThreeDSReqPriorAuthMethod(ThreeDSReqPriorAuthMethodEnum threeDSReqPriorAuthMethod) { this.threeDSReqPriorAuthMethod = threeDSReqPriorAuthMethod; } /** * Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM * - * @param threeDSReqPriorAuthTimestamp Date and time in UTC of the prior cardholder - * authentication. Format: YYYYMMDDHHMM - * @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for - * method chaining + * @param threeDSReqPriorAuthTimestamp Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM + * @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for method chaining */ - public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorAuthTimestamp( - String threeDSReqPriorAuthTimestamp) { + public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorAuthTimestamp(String threeDSReqPriorAuthTimestamp) { this.threeDSReqPriorAuthTimestamp = threeDSReqPriorAuthTimestamp; return this; } /** * Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM - * - * @return threeDSReqPriorAuthTimestamp Date and time in UTC of the prior cardholder - * authentication. Format: YYYYMMDDHHMM + * @return threeDSReqPriorAuthTimestamp Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,8 +182,7 @@ public String getThreeDSReqPriorAuthTimestamp() { /** * Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM * - * @param threeDSReqPriorAuthTimestamp Date and time in UTC of the prior cardholder - * authentication. Format: YYYYMMDDHHMM + * @param threeDSReqPriorAuthTimestamp Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,17 +191,10 @@ public void setThreeDSReqPriorAuthTimestamp(String threeDSReqPriorAuthTimestamp) } /** - * This data element provides additional information to the ACS to determine the best approach for - * handing a request. This data element contains an ACS Transaction ID for a prior authenticated - * transaction. For example, the first recurring transaction that was authenticated with the - * cardholder. Length: 30 characters. + * This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters. * - * @param threeDSReqPriorRef This data element provides additional information to the ACS to - * determine the best approach for handing a request. This data element contains an ACS - * Transaction ID for a prior authenticated transaction. For example, the first recurring - * transaction that was authenticated with the cardholder. Length: 30 characters. - * @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for - * method chaining + * @param threeDSReqPriorRef This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters. + * @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for method chaining */ public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorRef(String threeDSReqPriorRef) { this.threeDSReqPriorRef = threeDSReqPriorRef; @@ -242,15 +202,8 @@ public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorRef(String threeDS } /** - * This data element provides additional information to the ACS to determine the best approach for - * handing a request. This data element contains an ACS Transaction ID for a prior authenticated - * transaction. For example, the first recurring transaction that was authenticated with the - * cardholder. Length: 30 characters. - * - * @return threeDSReqPriorRef This data element provides additional information to the ACS to - * determine the best approach for handing a request. This data element contains an ACS - * Transaction ID for a prior authenticated transaction. For example, the first recurring - * transaction that was authenticated with the cardholder. Length: 30 characters. + * This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters. + * @return threeDSReqPriorRef This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -259,15 +212,9 @@ public String getThreeDSReqPriorRef() { } /** - * This data element provides additional information to the ACS to determine the best approach for - * handing a request. This data element contains an ACS Transaction ID for a prior authenticated - * transaction. For example, the first recurring transaction that was authenticated with the - * cardholder. Length: 30 characters. + * This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters. * - * @param threeDSReqPriorRef This data element provides additional information to the ACS to - * determine the best approach for handing a request. This data element contains an ACS - * Transaction ID for a prior authenticated transaction. For example, the first recurring - * transaction that was authenticated with the cardholder. Length: 30 characters. + * @param threeDSReqPriorRef This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -275,7 +222,9 @@ public void setThreeDSReqPriorRef(String threeDSReqPriorRef) { this.threeDSReqPriorRef = threeDSReqPriorRef; } - /** Return true if this ThreeDSRequestorPriorAuthenticationInfo object is equal to o. */ + /** + * Return true if this ThreeDSRequestorPriorAuthenticationInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -284,50 +233,33 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo = - (ThreeDSRequestorPriorAuthenticationInfo) o; - return Objects.equals( - this.threeDSReqPriorAuthData, - threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorAuthData) - && Objects.equals( - this.threeDSReqPriorAuthMethod, - threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorAuthMethod) - && Objects.equals( - this.threeDSReqPriorAuthTimestamp, - threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorAuthTimestamp) - && Objects.equals( - this.threeDSReqPriorRef, threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorRef); + ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo = (ThreeDSRequestorPriorAuthenticationInfo) o; + return Objects.equals(this.threeDSReqPriorAuthData, threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorAuthData) && + Objects.equals(this.threeDSReqPriorAuthMethod, threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorAuthMethod) && + Objects.equals(this.threeDSReqPriorAuthTimestamp, threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorAuthTimestamp) && + Objects.equals(this.threeDSReqPriorRef, threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorRef); } @Override public int hashCode() { - return Objects.hash( - threeDSReqPriorAuthData, - threeDSReqPriorAuthMethod, - threeDSReqPriorAuthTimestamp, - threeDSReqPriorRef); + return Objects.hash(threeDSReqPriorAuthData, threeDSReqPriorAuthMethod, threeDSReqPriorAuthTimestamp, threeDSReqPriorRef); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ThreeDSRequestorPriorAuthenticationInfo {\n"); - sb.append(" threeDSReqPriorAuthData: ") - .append(toIndentedString(threeDSReqPriorAuthData)) - .append("\n"); - sb.append(" threeDSReqPriorAuthMethod: ") - .append(toIndentedString(threeDSReqPriorAuthMethod)) - .append("\n"); - sb.append(" threeDSReqPriorAuthTimestamp: ") - .append(toIndentedString(threeDSReqPriorAuthTimestamp)) - .append("\n"); + sb.append(" threeDSReqPriorAuthData: ").append(toIndentedString(threeDSReqPriorAuthData)).append("\n"); + sb.append(" threeDSReqPriorAuthMethod: ").append(toIndentedString(threeDSReqPriorAuthMethod)).append("\n"); + sb.append(" threeDSReqPriorAuthTimestamp: ").append(toIndentedString(threeDSReqPriorAuthTimestamp)).append("\n"); sb.append(" threeDSReqPriorRef: ").append(toIndentedString(threeDSReqPriorRef)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -336,24 +268,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ThreeDSRequestorPriorAuthenticationInfo given an JSON string * * @param jsonString JSON string * @return An instance of ThreeDSRequestorPriorAuthenticationInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ThreeDSRequestorPriorAuthenticationInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDSRequestorPriorAuthenticationInfo */ - public static ThreeDSRequestorPriorAuthenticationInfo fromJson(String jsonString) - throws JsonProcessingException { + public static ThreeDSRequestorPriorAuthenticationInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDSRequestorPriorAuthenticationInfo.class); } - - /** - * Convert an instance of ThreeDSRequestorPriorAuthenticationInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ThreeDSRequestorPriorAuthenticationInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ThreeDSecureData.java b/src/main/java/com/adyen/model/checkout/ThreeDSecureData.java index a3a49acb1..5c3acc8e2 100644 --- a/src/main/java/com/adyen/model/checkout/ThreeDSecureData.java +++ b/src/main/java/com/adyen/model/checkout/ThreeDSecureData.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ThreeDSecureData */ +/** + * ThreeDSecureData + */ @JsonPropertyOrder({ ThreeDSecureData.JSON_PROPERTY_AUTHENTICATION_RESPONSE, ThreeDSecureData.JSON_PROPERTY_CAVV, @@ -36,12 +41,13 @@ ThreeDSecureData.JSON_PROPERTY_TRANS_STATUS_REASON, ThreeDSecureData.JSON_PROPERTY_XID }) + public class ThreeDSecureData { /** - * In 3D Secure 2, this is the `transStatus` from the challenge result. If the - * transaction was frictionless, omit this parameter. + * In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. */ public enum AuthenticationResponseEnum { + Y(String.valueOf("Y")), N(String.valueOf("N")), @@ -55,7 +61,7 @@ public enum AuthenticationResponseEnum { private String value; AuthenticationResponseEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -76,11 +82,7 @@ public static AuthenticationResponseEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AuthenticationResponseEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AuthenticationResponseEnum.values())); + LOG.warning("AuthenticationResponseEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AuthenticationResponseEnum.values())); return null; } } @@ -95,11 +97,10 @@ public static AuthenticationResponseEnum fromValue(String value) { private String cavvAlgorithm; /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the - * authentication has been cancelled. For possible values, refer to [3D Secure API - * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). */ public enum ChallengeCancelEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -119,7 +120,7 @@ public enum ChallengeCancelEnum { private String value; ChallengeCancelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -140,11 +141,7 @@ public static ChallengeCancelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ChallengeCancelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ChallengeCancelEnum.values())); + LOG.warning("ChallengeCancelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChallengeCancelEnum.values())); return null; } } @@ -152,8 +149,11 @@ public static ChallengeCancelEnum fromValue(String value) { public static final String JSON_PROPERTY_CHALLENGE_CANCEL = "challengeCancel"; private ChallengeCancelEnum challengeCancel; - /** In 3D Secure 2, this is the `transStatus` from the `ARes`. */ + /** + * In 3D Secure 2, this is the `transStatus` from the `ARes`. + */ public enum DirectoryResponseEnum { + A(String.valueOf("A")), C(String.valueOf("C")), @@ -175,7 +175,7 @@ public enum DirectoryResponseEnum { private String value; DirectoryResponseEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -196,11 +196,7 @@ public static DirectoryResponseEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "DirectoryResponseEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(DirectoryResponseEnum.values())); + LOG.warning("DirectoryResponseEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(DirectoryResponseEnum.values())); return null; } } @@ -220,8 +216,7 @@ public static DirectoryResponseEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_VERSION = "threeDSVersion"; private String threeDSVersion; - public static final String JSON_PROPERTY_TOKEN_AUTHENTICATION_VERIFICATION_VALUE = - "tokenAuthenticationVerificationValue"; + public static final String JSON_PROPERTY_TOKEN_AUTHENTICATION_VERIFICATION_VALUE = "tokenAuthenticationVerificationValue"; private byte[] tokenAuthenticationVerificationValue; public static final String JSON_PROPERTY_TRANS_STATUS_REASON = "transStatusReason"; @@ -230,28 +225,23 @@ public static DirectoryResponseEnum fromValue(String value) { public static final String JSON_PROPERTY_XID = "xid"; private byte[] xid; - public ThreeDSecureData() {} + public ThreeDSecureData() { + } /** - * In 3D Secure 2, this is the `transStatus` from the challenge result. If the - * transaction was frictionless, omit this parameter. + * In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. * - * @param authenticationResponse In 3D Secure 2, this is the `transStatus` from the - * challenge result. If the transaction was frictionless, omit this parameter. + * @param authenticationResponse In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. * @return the current {@code ThreeDSecureData} instance, allowing for method chaining */ - public ThreeDSecureData authenticationResponse( - AuthenticationResponseEnum authenticationResponse) { + public ThreeDSecureData authenticationResponse(AuthenticationResponseEnum authenticationResponse) { this.authenticationResponse = authenticationResponse; return this; } /** - * In 3D Secure 2, this is the `transStatus` from the challenge result. If the - * transaction was frictionless, omit this parameter. - * - * @return authenticationResponse In 3D Secure 2, this is the `transStatus` from the - * challenge result. If the transaction was frictionless, omit this parameter. + * In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. + * @return authenticationResponse In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -260,11 +250,9 @@ public AuthenticationResponseEnum getAuthenticationResponse() { } /** - * In 3D Secure 2, this is the `transStatus` from the challenge result. If the - * transaction was frictionless, omit this parameter. + * In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. * - * @param authenticationResponse In 3D Secure 2, this is the `transStatus` from the - * challenge result. If the transaction was frictionless, omit this parameter. + * @param authenticationResponse In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -285,7 +273,6 @@ public ThreeDSecureData cavv(byte[] cavv) { /** * The cardholder authentication value (base64 encoded, 20 bytes in a decoded form). - * * @return cavv The cardholder authentication value (base64 encoded, 20 bytes in a decoded form). */ @JsonProperty(JSON_PROPERTY_CAVV) @@ -318,7 +305,6 @@ public ThreeDSecureData cavvAlgorithm(String cavvAlgorithm) { /** * The CAVV algorithm used. Include this only for 3D Secure 1. - * * @return cavvAlgorithm The CAVV algorithm used. Include this only for 3D Secure 1. */ @JsonProperty(JSON_PROPERTY_CAVV_ALGORITHM) @@ -339,14 +325,9 @@ public void setCavvAlgorithm(String cavvAlgorithm) { } /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the - * authentication has been cancelled. For possible values, refer to [3D Secure API - * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). * - * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory - * Server (DS) that the authentication has been cancelled. For possible values, refer to [3D - * Secure API - * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). * @return the current {@code ThreeDSecureData} instance, allowing for method chaining */ public ThreeDSecureData challengeCancel(ChallengeCancelEnum challengeCancel) { @@ -355,14 +336,8 @@ public ThreeDSecureData challengeCancel(ChallengeCancelEnum challengeCancel) { } /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the - * authentication has been cancelled. For possible values, refer to [3D Secure API - * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). - * - * @return challengeCancel Indicator informing the Access Control Server (ACS) and the Directory - * Server (DS) that the authentication has been cancelled. For possible values, refer to [3D - * Secure API - * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * @return challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). */ @JsonProperty(JSON_PROPERTY_CHALLENGE_CANCEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -371,14 +346,9 @@ public ChallengeCancelEnum getChallengeCancel() { } /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the - * authentication has been cancelled. For possible values, refer to [3D Secure API - * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). * - * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory - * Server (DS) that the authentication has been cancelled. For possible values, refer to [3D - * Secure API - * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). */ @JsonProperty(JSON_PROPERTY_CHALLENGE_CANCEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -387,10 +357,9 @@ public void setChallengeCancel(ChallengeCancelEnum challengeCancel) { } /** - * In 3D Secure 2, this is the `transStatus` from the `ARes`. + * In 3D Secure 2, this is the `transStatus` from the `ARes`. * - * @param directoryResponse In 3D Secure 2, this is the `transStatus` from the - * `ARes`. + * @param directoryResponse In 3D Secure 2, this is the `transStatus` from the `ARes`. * @return the current {@code ThreeDSecureData} instance, allowing for method chaining */ public ThreeDSecureData directoryResponse(DirectoryResponseEnum directoryResponse) { @@ -399,10 +368,8 @@ public ThreeDSecureData directoryResponse(DirectoryResponseEnum directoryRespons } /** - * In 3D Secure 2, this is the `transStatus` from the `ARes`. - * - * @return directoryResponse In 3D Secure 2, this is the `transStatus` from the - * `ARes`. + * In 3D Secure 2, this is the `transStatus` from the `ARes`. + * @return directoryResponse In 3D Secure 2, this is the `transStatus` from the `ARes`. */ @JsonProperty(JSON_PROPERTY_DIRECTORY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -411,10 +378,9 @@ public DirectoryResponseEnum getDirectoryResponse() { } /** - * In 3D Secure 2, this is the `transStatus` from the `ARes`. + * In 3D Secure 2, this is the `transStatus` from the `ARes`. * - * @param directoryResponse In 3D Secure 2, this is the `transStatus` from the - * `ARes`. + * @param directoryResponse In 3D Secure 2, this is the `transStatus` from the `ARes`. */ @JsonProperty(JSON_PROPERTY_DIRECTORY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -423,11 +389,9 @@ public void setDirectoryResponse(DirectoryResponseEnum directoryResponse) { } /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server - * (DS) to identify a single transaction. + * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. * - * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the - * Directory Server (DS) to identify a single transaction. + * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. * @return the current {@code ThreeDSecureData} instance, allowing for method chaining */ public ThreeDSecureData dsTransID(String dsTransID) { @@ -436,11 +400,8 @@ public ThreeDSecureData dsTransID(String dsTransID) { } /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server - * (DS) to identify a single transaction. - * - * @return dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the - * Directory Server (DS) to identify a single transaction. + * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. + * @return dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. */ @JsonProperty(JSON_PROPERTY_DS_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -449,11 +410,9 @@ public String getDsTransID() { } /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server - * (DS) to identify a single transaction. + * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. * - * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the - * Directory Server (DS) to identify a single transaction. + * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. */ @JsonProperty(JSON_PROPERTY_DS_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -474,7 +433,6 @@ public ThreeDSecureData eci(String eci) { /** * The electronic commerce indicator. - * * @return eci The electronic commerce indicator. */ @JsonProperty(JSON_PROPERTY_ECI) @@ -497,8 +455,7 @@ public void setEci(String eci) { /** * Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations. * - * @param riskScore Risk score calculated by Directory Server (DS). Required for Cartes Bancaires - * integrations. + * @param riskScore Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations. * @return the current {@code ThreeDSecureData} instance, allowing for method chaining */ public ThreeDSecureData riskScore(String riskScore) { @@ -508,9 +465,7 @@ public ThreeDSecureData riskScore(String riskScore) { /** * Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations. - * - * @return riskScore Risk score calculated by Directory Server (DS). Required for Cartes Bancaires - * integrations. + * @return riskScore Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations. */ @JsonProperty(JSON_PROPERTY_RISK_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -521,8 +476,7 @@ public String getRiskScore() { /** * Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations. * - * @param riskScore Risk score calculated by Directory Server (DS). Required for Cartes Bancaires - * integrations. + * @param riskScore Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations. */ @JsonProperty(JSON_PROPERTY_RISK_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -543,7 +497,6 @@ public ThreeDSecureData threeDSVersion(String threeDSVersion) { /** * The version of the 3D Secure protocol. - * * @return threeDSVersion The version of the 3D Secure protocol. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_VERSION) @@ -566,21 +519,17 @@ public void setThreeDSVersion(String threeDSVersion) { /** * Network token authentication verification value (TAVV). The network token cryptogram. * - * @param tokenAuthenticationVerificationValue Network token authentication verification value - * (TAVV). The network token cryptogram. + * @param tokenAuthenticationVerificationValue Network token authentication verification value (TAVV). The network token cryptogram. * @return the current {@code ThreeDSecureData} instance, allowing for method chaining */ - public ThreeDSecureData tokenAuthenticationVerificationValue( - byte[] tokenAuthenticationVerificationValue) { + public ThreeDSecureData tokenAuthenticationVerificationValue(byte[] tokenAuthenticationVerificationValue) { this.tokenAuthenticationVerificationValue = tokenAuthenticationVerificationValue; return this; } /** * Network token authentication verification value (TAVV). The network token cryptogram. - * - * @return tokenAuthenticationVerificationValue Network token authentication verification value - * (TAVV). The network token cryptogram. + * @return tokenAuthenticationVerificationValue Network token authentication verification value (TAVV). The network token cryptogram. */ @JsonProperty(JSON_PROPERTY_TOKEN_AUTHENTICATION_VERIFICATION_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -591,8 +540,7 @@ public byte[] getTokenAuthenticationVerificationValue() { /** * Network token authentication verification value (TAVV). The network token cryptogram. * - * @param tokenAuthenticationVerificationValue Network token authentication verification value - * (TAVV). The network token cryptogram. + * @param tokenAuthenticationVerificationValue Network token authentication verification value (TAVV). The network token cryptogram. */ @JsonProperty(JSON_PROPERTY_TOKEN_AUTHENTICATION_VERIFICATION_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -601,13 +549,9 @@ public void setTokenAuthenticationVerificationValue(byte[] tokenAuthenticationVe } /** - * Provides information on why the `transStatus` field has the specified value. For - * possible values, refer to [our - * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). * - * @param transStatusReason Provides information on why the `transStatus` field has the - * specified value. For possible values, refer to [our - * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * @param transStatusReason Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). * @return the current {@code ThreeDSecureData} instance, allowing for method chaining */ public ThreeDSecureData transStatusReason(String transStatusReason) { @@ -616,13 +560,8 @@ public ThreeDSecureData transStatusReason(String transStatusReason) { } /** - * Provides information on why the `transStatus` field has the specified value. For - * possible values, refer to [our - * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). - * - * @return transStatusReason Provides information on why the `transStatus` field has the - * specified value. For possible values, refer to [our - * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * @return transStatusReason Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -631,13 +570,9 @@ public String getTransStatusReason() { } /** - * Provides information on why the `transStatus` field has the specified value. For - * possible values, refer to [our - * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). * - * @param transStatusReason Provides information on why the `transStatus` field has the - * specified value. For possible values, refer to [our - * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * @param transStatusReason Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -646,11 +581,9 @@ public void setTransStatusReason(String transStatusReason) { } /** - * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded - * form). + * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). * - * @param xid Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a - * decoded form). + * @param xid Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). * @return the current {@code ThreeDSecureData} instance, allowing for method chaining */ public ThreeDSecureData xid(byte[] xid) { @@ -659,11 +592,8 @@ public ThreeDSecureData xid(byte[] xid) { } /** - * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded - * form). - * - * @return xid Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in - * a decoded form). + * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). + * @return xid Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). */ @JsonProperty(JSON_PROPERTY_XID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -672,11 +602,9 @@ public byte[] getXid() { } /** - * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded - * form). + * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). * - * @param xid Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a - * decoded form). + * @param xid Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). */ @JsonProperty(JSON_PROPERTY_XID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -684,7 +612,9 @@ public void setXid(byte[] xid) { this.xid = xid; } - /** Return true if this ThreeDSecureData object is equal to o. */ + /** + * Return true if this ThreeDSecureData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -694,46 +624,30 @@ public boolean equals(Object o) { return false; } ThreeDSecureData threeDSecureData = (ThreeDSecureData) o; - return Objects.equals(this.authenticationResponse, threeDSecureData.authenticationResponse) - && Arrays.equals(this.cavv, threeDSecureData.cavv) - && Objects.equals(this.cavvAlgorithm, threeDSecureData.cavvAlgorithm) - && Objects.equals(this.challengeCancel, threeDSecureData.challengeCancel) - && Objects.equals(this.directoryResponse, threeDSecureData.directoryResponse) - && Objects.equals(this.dsTransID, threeDSecureData.dsTransID) - && Objects.equals(this.eci, threeDSecureData.eci) - && Objects.equals(this.riskScore, threeDSecureData.riskScore) - && Objects.equals(this.threeDSVersion, threeDSecureData.threeDSVersion) - && Arrays.equals( - this.tokenAuthenticationVerificationValue, - threeDSecureData.tokenAuthenticationVerificationValue) - && Objects.equals(this.transStatusReason, threeDSecureData.transStatusReason) - && Arrays.equals(this.xid, threeDSecureData.xid); + return Objects.equals(this.authenticationResponse, threeDSecureData.authenticationResponse) && + Arrays.equals(this.cavv, threeDSecureData.cavv) && + Objects.equals(this.cavvAlgorithm, threeDSecureData.cavvAlgorithm) && + Objects.equals(this.challengeCancel, threeDSecureData.challengeCancel) && + Objects.equals(this.directoryResponse, threeDSecureData.directoryResponse) && + Objects.equals(this.dsTransID, threeDSecureData.dsTransID) && + Objects.equals(this.eci, threeDSecureData.eci) && + Objects.equals(this.riskScore, threeDSecureData.riskScore) && + Objects.equals(this.threeDSVersion, threeDSecureData.threeDSVersion) && + Arrays.equals(this.tokenAuthenticationVerificationValue, threeDSecureData.tokenAuthenticationVerificationValue) && + Objects.equals(this.transStatusReason, threeDSecureData.transStatusReason) && + Arrays.equals(this.xid, threeDSecureData.xid); } @Override public int hashCode() { - return Objects.hash( - authenticationResponse, - Arrays.hashCode(cavv), - cavvAlgorithm, - challengeCancel, - directoryResponse, - dsTransID, - eci, - riskScore, - threeDSVersion, - Arrays.hashCode(tokenAuthenticationVerificationValue), - transStatusReason, - Arrays.hashCode(xid)); + return Objects.hash(authenticationResponse, Arrays.hashCode(cavv), cavvAlgorithm, challengeCancel, directoryResponse, dsTransID, eci, riskScore, threeDSVersion, Arrays.hashCode(tokenAuthenticationVerificationValue), transStatusReason, Arrays.hashCode(xid)); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ThreeDSecureData {\n"); - sb.append(" authenticationResponse: ") - .append(toIndentedString(authenticationResponse)) - .append("\n"); + sb.append(" authenticationResponse: ").append(toIndentedString(authenticationResponse)).append("\n"); sb.append(" cavv: ").append(toIndentedString(cavv)).append("\n"); sb.append(" cavvAlgorithm: ").append(toIndentedString(cavvAlgorithm)).append("\n"); sb.append(" challengeCancel: ").append(toIndentedString(challengeCancel)).append("\n"); @@ -742,9 +656,7 @@ public String toString() { sb.append(" eci: ").append(toIndentedString(eci)).append("\n"); sb.append(" riskScore: ").append(toIndentedString(riskScore)).append("\n"); sb.append(" threeDSVersion: ").append(toIndentedString(threeDSVersion)).append("\n"); - sb.append(" tokenAuthenticationVerificationValue: ") - .append(toIndentedString(tokenAuthenticationVerificationValue)) - .append("\n"); + sb.append(" tokenAuthenticationVerificationValue: ").append(toIndentedString(tokenAuthenticationVerificationValue)).append("\n"); sb.append(" transStatusReason: ").append(toIndentedString(transStatusReason)).append("\n"); sb.append(" xid: ").append(toIndentedString(xid)).append("\n"); sb.append("}"); @@ -752,7 +664,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -761,7 +674,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ThreeDSecureData given an JSON string * * @param jsonString JSON string @@ -771,12 +684,11 @@ private String toIndentedString(Object o) { public static ThreeDSecureData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDSecureData.class); } - - /** - * Convert an instance of ThreeDSecureData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ThreeDSecureData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Ticket.java b/src/main/java/com/adyen/model/checkout/Ticket.java index bf48628c4..38d185137 100644 --- a/src/main/java/com/adyen/model/checkout/Ticket.java +++ b/src/main/java/com/adyen/model/checkout/Ticket.java @@ -2,28 +2,38 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.LocalDate; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.time.LocalDate; -import java.util.*; -/** Ticket */ + +/** + * Ticket + */ @JsonPropertyOrder({ Ticket.JSON_PROPERTY_ISSUE_ADDRESS, Ticket.JSON_PROPERTY_ISSUE_DATE, Ticket.JSON_PROPERTY_NUMBER }) + public class Ticket { public static final String JSON_PROPERTY_ISSUE_ADDRESS = "issueAddress"; private String issueAddress; @@ -34,14 +44,13 @@ public class Ticket { public static final String JSON_PROPERTY_NUMBER = "number"; private String number; - public Ticket() {} + public Ticket() { + } /** - * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: - * 16 characters + * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters * - * @param issueAddress The address of the organization that issued the ticket. * minLength: 0 - * characters * maxLength: 16 characters + * @param issueAddress The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters * @return the current {@code Ticket} instance, allowing for method chaining */ public Ticket issueAddress(String issueAddress) { @@ -50,11 +59,8 @@ public Ticket issueAddress(String issueAddress) { } /** - * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: - * 16 characters - * - * @return issueAddress The address of the organization that issued the ticket. * minLength: 0 - * characters * maxLength: 16 characters + * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters + * @return issueAddress The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_ISSUE_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,11 +69,9 @@ public String getIssueAddress() { } /** - * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: - * 16 characters + * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters * - * @param issueAddress The address of the organization that issued the ticket. * minLength: 0 - * characters * maxLength: 16 characters + * @param issueAddress The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_ISSUE_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -76,12 +80,9 @@ public void setIssueAddress(String issueAddress) { } /** - * The date that the ticket was issued to the passenger. * minLength: 10 characters * maxLength: - * 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd + * The date that the ticket was issued to the passenger. * minLength: 10 characters * maxLength: 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd * - * @param issueDate The date that the ticket was issued to the passenger. * minLength: 10 - * characters * maxLength: 10 characters * Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd + * @param issueDate The date that the ticket was issued to the passenger. * minLength: 10 characters * maxLength: 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd * @return the current {@code Ticket} instance, allowing for method chaining */ public Ticket issueDate(LocalDate issueDate) { @@ -90,12 +91,8 @@ public Ticket issueDate(LocalDate issueDate) { } /** - * The date that the ticket was issued to the passenger. * minLength: 10 characters * maxLength: - * 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd - * - * @return issueDate The date that the ticket was issued to the passenger. * minLength: 10 - * characters * maxLength: 10 characters * Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd + * The date that the ticket was issued to the passenger. * minLength: 10 characters * maxLength: 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd + * @return issueDate The date that the ticket was issued to the passenger. * minLength: 10 characters * maxLength: 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd */ @JsonProperty(JSON_PROPERTY_ISSUE_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,12 +101,9 @@ public LocalDate getIssueDate() { } /** - * The date that the ticket was issued to the passenger. * minLength: 10 characters * maxLength: - * 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd + * The date that the ticket was issued to the passenger. * minLength: 10 characters * maxLength: 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd * - * @param issueDate The date that the ticket was issued to the passenger. * minLength: 10 - * characters * maxLength: 10 characters * Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd + * @param issueDate The date that the ticket was issued to the passenger. * minLength: 10 characters * maxLength: 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd */ @JsonProperty(JSON_PROPERTY_ISSUE_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,11 +112,9 @@ public void setIssueDate(LocalDate issueDate) { } /** - * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must - * not start with a space or be all spaces. * Must not be all zeros. + * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param number The ticket's unique identifier. * minLength: 1 character * maxLength: 15 - * characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param number The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all spaces. * Must not be all zeros. * @return the current {@code Ticket} instance, allowing for method chaining */ public Ticket number(String number) { @@ -131,11 +123,8 @@ public Ticket number(String number) { } /** - * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must - * not start with a space or be all spaces. * Must not be all zeros. - * - * @return number The ticket's unique identifier. * minLength: 1 character * maxLength: 15 - * characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @return number The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,11 +133,9 @@ public String getNumber() { } /** - * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must - * not start with a space or be all spaces. * Must not be all zeros. + * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param number The ticket's unique identifier. * minLength: 1 character * maxLength: 15 - * characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param number The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,7 +143,9 @@ public void setNumber(String number) { this.number = number; } - /** Return true if this Ticket object is equal to o. */ + /** + * Return true if this Ticket object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -166,9 +155,9 @@ public boolean equals(Object o) { return false; } Ticket ticket = (Ticket) o; - return Objects.equals(this.issueAddress, ticket.issueAddress) - && Objects.equals(this.issueDate, ticket.issueDate) - && Objects.equals(this.number, ticket.number); + return Objects.equals(this.issueAddress, ticket.issueAddress) && + Objects.equals(this.issueDate, ticket.issueDate) && + Objects.equals(this.number, ticket.number); } @Override @@ -188,7 +177,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -197,7 +187,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Ticket given an JSON string * * @param jsonString JSON string @@ -207,12 +197,11 @@ private String toIndentedString(Object o) { public static Ticket fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Ticket.class); } - - /** - * Convert an instance of Ticket to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Ticket to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/TravelAgency.java b/src/main/java/com/adyen/model/checkout/TravelAgency.java index c8f2cd418..7923a668f 100644 --- a/src/main/java/com/adyen/model/checkout/TravelAgency.java +++ b/src/main/java/com/adyen/model/checkout/TravelAgency.java @@ -2,23 +2,36 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TravelAgency */ -@JsonPropertyOrder({TravelAgency.JSON_PROPERTY_CODE, TravelAgency.JSON_PROPERTY_NAME}) + +/** + * TravelAgency + */ +@JsonPropertyOrder({ + TravelAgency.JSON_PROPERTY_CODE, + TravelAgency.JSON_PROPERTY_NAME +}) + public class TravelAgency { public static final String JSON_PROPERTY_CODE = "code"; private String code; @@ -26,16 +39,13 @@ public class TravelAgency { public static final String JSON_PROPERTY_NAME = "name"; private String name; - public TravelAgency() {} + public TravelAgency() { + } /** - * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * - * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not start with a - * space or be all spaces. * Must not be all zeros. + * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param code The unique identifier from IATA or ARC for the travel agency that issues the - * ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not - * start with a space or be all spaces. * Must not be all zeros. + * @param code The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not start with a space or be all spaces. * Must not be all zeros. * @return the current {@code TravelAgency} instance, allowing for method chaining */ public TravelAgency code(String code) { @@ -44,13 +54,8 @@ public TravelAgency code(String code) { } /** - * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * - * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not start with a - * space or be all spaces. * Must not be all zeros. - * - * @return code The unique identifier from IATA or ARC for the travel agency that issues the - * ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not - * start with a space or be all spaces. * Must not be all zeros. + * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @return code The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -59,13 +64,9 @@ public String getCode() { } /** - * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * - * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not start with a - * space or be all spaces. * Must not be all zeros. + * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param code The unique identifier from IATA or ARC for the travel agency that issues the - * ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not - * start with a space or be all spaces. * Must not be all zeros. + * @param code The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -74,12 +75,9 @@ public void setCode(String code) { } /** - * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 - * characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param name The name of the travel agency. * Encoding: ASCII * minLength: 1 character * - * maxLength: 25 characters * Must not start with a space or be all spaces. * Must not be all - * zeros. + * @param name The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. * @return the current {@code TravelAgency} instance, allowing for method chaining */ public TravelAgency name(String name) { @@ -88,12 +86,8 @@ public TravelAgency name(String name) { } /** - * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 - * characters * Must not start with a space or be all spaces. * Must not be all zeros. - * - * @return name The name of the travel agency. * Encoding: ASCII * minLength: 1 character * - * maxLength: 25 characters * Must not start with a space or be all spaces. * Must not be all - * zeros. + * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @return name The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,12 +96,9 @@ public String getName() { } /** - * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 - * characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param name The name of the travel agency. * Encoding: ASCII * minLength: 1 character * - * maxLength: 25 characters * Must not start with a space or be all spaces. * Must not be all - * zeros. + * @param name The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,7 +106,9 @@ public void setName(String name) { this.name = name; } - /** Return true if this TravelAgency object is equal to o. */ + /** + * Return true if this TravelAgency object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -125,8 +118,8 @@ public boolean equals(Object o) { return false; } TravelAgency travelAgency = (TravelAgency) o; - return Objects.equals(this.code, travelAgency.code) - && Objects.equals(this.name, travelAgency.name); + return Objects.equals(this.code, travelAgency.code) && + Objects.equals(this.name, travelAgency.name); } @Override @@ -145,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -154,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TravelAgency given an JSON string * * @param jsonString JSON string @@ -164,12 +158,11 @@ private String toIndentedString(Object o) { public static TravelAgency fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TravelAgency.class); } - - /** - * Convert an instance of TravelAgency to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TravelAgency to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/TwintDetails.java b/src/main/java/com/adyen/model/checkout/TwintDetails.java index 03ecbd7eb..8e7f14dc6 100644 --- a/src/main/java/com/adyen/model/checkout/TwintDetails.java +++ b/src/main/java/com/adyen/model/checkout/TwintDetails.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** TwintDetails */ +/** + * TwintDetails + */ @JsonPropertyOrder({ TwintDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, TwintDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, @@ -29,6 +34,7 @@ TwintDetails.JSON_PROPERTY_SUBTYPE, TwintDetails.JSON_PROPERTY_TYPE }) + public class TwintDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -43,8 +49,11 @@ public class TwintDetails { public static final String JSON_PROPERTY_SUBTYPE = "subtype"; private String subtype; - /** The payment method type. */ + /** + * The payment method type. + */ public enum TypeEnum { + TWINT(String.valueOf("twint")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +61,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,11 +82,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -85,7 +90,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public TwintDetails() {} + public TwintDetails() { + } /** * The checkout attempt identifier. @@ -100,7 +106,6 @@ public TwintDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -121,13 +126,13 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code TwintDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public TwintDetails recurringDetailReference(String recurringDetailReference) { @@ -136,11 +141,8 @@ public TwintDetails recurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -151,12 +153,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -166,11 +168,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code TwintDetails} instance, allowing for method chaining */ public TwintDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -179,11 +179,8 @@ public TwintDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,11 +189,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -217,7 +212,6 @@ public TwintDetails subtype(String subtype) { /** * The type of flow to initiate. - * * @return subtype The type of flow to initiate. */ @JsonProperty(JSON_PROPERTY_SUBTYPE) @@ -250,7 +244,6 @@ public TwintDetails type(TypeEnum type) { /** * The payment method type. - * * @return type The payment method type. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -270,7 +263,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this TwintDetails object is equal to o. */ + /** + * Return true if this TwintDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -280,17 +275,16 @@ public boolean equals(Object o) { return false; } TwintDetails twintDetails = (TwintDetails) o; - return Objects.equals(this.checkoutAttemptId, twintDetails.checkoutAttemptId) - && Objects.equals(this.recurringDetailReference, twintDetails.recurringDetailReference) - && Objects.equals(this.storedPaymentMethodId, twintDetails.storedPaymentMethodId) - && Objects.equals(this.subtype, twintDetails.subtype) - && Objects.equals(this.type, twintDetails.type); + return Objects.equals(this.checkoutAttemptId, twintDetails.checkoutAttemptId) && + Objects.equals(this.recurringDetailReference, twintDetails.recurringDetailReference) && + Objects.equals(this.storedPaymentMethodId, twintDetails.storedPaymentMethodId) && + Objects.equals(this.subtype, twintDetails.subtype) && + Objects.equals(this.type, twintDetails.type); } @Override public int hashCode() { - return Objects.hash( - checkoutAttemptId, recurringDetailReference, storedPaymentMethodId, subtype, type); + return Objects.hash(checkoutAttemptId, recurringDetailReference, storedPaymentMethodId, subtype, type); } @Override @@ -298,12 +292,8 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TwintDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -311,7 +301,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -320,7 +311,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TwintDetails given an JSON string * * @param jsonString JSON string @@ -330,12 +321,11 @@ private String toIndentedString(Object o) { public static TwintDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TwintDetails.class); } - - /** - * Convert an instance of TwintDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TwintDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/UPIPaymentMethod.java b/src/main/java/com/adyen/model/checkout/UPIPaymentMethod.java index fbb9998c4..e63b4597f 100644 --- a/src/main/java/com/adyen/model/checkout/UPIPaymentMethod.java +++ b/src/main/java/com/adyen/model/checkout/UPIPaymentMethod.java @@ -2,46 +2,56 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.ShopperIdPaymentMethod; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** UPIPaymentMethod */ -@JsonPropertyOrder({UPIPaymentMethod.JSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS}) + +/** + * UPIPaymentMethod + */ +@JsonPropertyOrder({ + UPIPaymentMethod.JSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS +}) + @JsonIgnoreProperties( - value = - "type", // ignore manually set type, it will be automatically generated by Jackson during - // serialization - allowSetters = true // allows the type to be set during deserialization - ) -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - visible = true) + value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization + allowSetters = true // allows the type to be set during deserialization +) +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) + public class UPIPaymentMethod extends ShopperIdPaymentMethod { public static final String JSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS = "virtualPaymentAddress"; private String virtualPaymentAddress; - public UPIPaymentMethod() {} + public UPIPaymentMethod() { + } /** * virtualPaymentAddress * - * @param virtualPaymentAddress + * @param virtualPaymentAddress * @return the current {@code UPIPaymentMethod} instance, allowing for method chaining */ public UPIPaymentMethod virtualPaymentAddress(String virtualPaymentAddress) { @@ -51,8 +61,7 @@ public UPIPaymentMethod virtualPaymentAddress(String virtualPaymentAddress) { /** * Get virtualPaymentAddress - * - * @return virtualPaymentAddress + * @return virtualPaymentAddress */ @JsonProperty(JSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,7 +72,7 @@ public String getVirtualPaymentAddress() { /** * virtualPaymentAddress * - * @param virtualPaymentAddress + * @param virtualPaymentAddress */ @JsonProperty(JSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,7 +80,9 @@ public void setVirtualPaymentAddress(String virtualPaymentAddress) { this.virtualPaymentAddress = virtualPaymentAddress; } - /** Return true if this UPIPaymentMethod object is equal to o. */ + /** + * Return true if this UPIPaymentMethod object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -81,8 +92,8 @@ public boolean equals(Object o) { return false; } UPIPaymentMethod upIPaymentMethod = (UPIPaymentMethod) o; - return Objects.equals(this.virtualPaymentAddress, upIPaymentMethod.virtualPaymentAddress) - && super.equals(o); + return Objects.equals(this.virtualPaymentAddress, upIPaymentMethod.virtualPaymentAddress) && + super.equals(o); } @Override @@ -95,15 +106,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UPIPaymentMethod {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" virtualPaymentAddress: ") - .append(toIndentedString(virtualPaymentAddress)) - .append("\n"); + sb.append(" virtualPaymentAddress: ").append(toIndentedString(virtualPaymentAddress)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -118,8 +128,7 @@ private String toIndentedString(Object o) { mappings.put("UPIPaymentMethod", UPIPaymentMethod.class); JSON.registerDiscriminator(UPIPaymentMethod.class, "type", mappings); } - - /** +/** * Create an instance of UPIPaymentMethod given an JSON string * * @param jsonString JSON string @@ -129,12 +138,11 @@ private String toIndentedString(Object o) { public static UPIPaymentMethod fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UPIPaymentMethod.class); } - - /** - * Convert an instance of UPIPaymentMethod to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of UPIPaymentMethod to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/UpdatePaymentLinkRequest.java b/src/main/java/com/adyen/model/checkout/UpdatePaymentLinkRequest.java index 8c2a9b740..f5ebaaacc 100644 --- a/src/main/java/com/adyen/model/checkout/UpdatePaymentLinkRequest.java +++ b/src/main/java/com/adyen/model/checkout/UpdatePaymentLinkRequest.java @@ -2,30 +2,41 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * UpdatePaymentLinkRequest + */ +@JsonPropertyOrder({ + UpdatePaymentLinkRequest.JSON_PROPERTY_STATUS +}) -/** UpdatePaymentLinkRequest */ -@JsonPropertyOrder({UpdatePaymentLinkRequest.JSON_PROPERTY_STATUS}) public class UpdatePaymentLinkRequest { - /** Status of the payment link. Possible values: * **expired** */ + /** + * Status of the payment link. Possible values: * **expired** + */ public enum StatusEnum { + EXPIRED(String.valueOf("expired")); private static final Logger LOG = Logger.getLogger(StatusEnum.class.getName()); @@ -33,7 +44,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -54,11 +65,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -66,7 +73,8 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; - public UpdatePaymentLinkRequest() {} + public UpdatePaymentLinkRequest() { + } /** * Status of the payment link. Possible values: * **expired** @@ -81,7 +89,6 @@ public UpdatePaymentLinkRequest status(StatusEnum status) { /** * Status of the payment link. Possible values: * **expired** - * * @return status Status of the payment link. Possible values: * **expired** */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -101,7 +108,9 @@ public void setStatus(StatusEnum status) { this.status = status; } - /** Return true if this UpdatePaymentLinkRequest object is equal to o. */ + /** + * Return true if this UpdatePaymentLinkRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -129,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -138,24 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of UpdatePaymentLinkRequest given an JSON string * * @param jsonString JSON string * @return An instance of UpdatePaymentLinkRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UpdatePaymentLinkRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to UpdatePaymentLinkRequest */ - public static UpdatePaymentLinkRequest fromJson(String jsonString) - throws JsonProcessingException { + public static UpdatePaymentLinkRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdatePaymentLinkRequest.class); } - - /** - * Convert an instance of UpdatePaymentLinkRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of UpdatePaymentLinkRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/UpiCollectDetails.java b/src/main/java/com/adyen/model/checkout/UpiCollectDetails.java index bb75b9500..fc1046acb 100644 --- a/src/main/java/com/adyen/model/checkout/UpiCollectDetails.java +++ b/src/main/java/com/adyen/model/checkout/UpiCollectDetails.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** UpiCollectDetails */ + +/** + * UpiCollectDetails + */ @JsonPropertyOrder({ UpiCollectDetails.JSON_PROPERTY_BILLING_SEQUENCE_NUMBER, UpiCollectDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, @@ -31,6 +36,7 @@ UpiCollectDetails.JSON_PROPERTY_TYPE, UpiCollectDetails.JSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS }) + public class UpiCollectDetails { public static final String JSON_PROPERTY_BILLING_SEQUENCE_NUMBER = "billingSequenceNumber"; private String billingSequenceNumber; @@ -42,15 +48,17 @@ public class UpiCollectDetails { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; - public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE = - "shopperNotificationReference"; + public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE = "shopperNotificationReference"; private String shopperNotificationReference; public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** **upi_collect** */ + /** + * **upi_collect** + */ public enum TypeEnum { + UPI_COLLECT(String.valueOf("upi_collect")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -58,7 +66,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -79,11 +87,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -94,15 +98,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS = "virtualPaymentAddress"; private String virtualPaymentAddress; - public UpiCollectDetails() {} + public UpiCollectDetails() { + } /** - * The sequence number for the debit. For example, send **2** if this is the second debit for the - * subscription. The sequence number is included in the notification sent to the shopper. + * The sequence number for the debit. For example, send **2** if this is the second debit for the subscription. The sequence number is included in the notification sent to the shopper. * - * @param billingSequenceNumber The sequence number for the debit. For example, send **2** if this - * is the second debit for the subscription. The sequence number is included in the - * notification sent to the shopper. + * @param billingSequenceNumber The sequence number for the debit. For example, send **2** if this is the second debit for the subscription. The sequence number is included in the notification sent to the shopper. * @return the current {@code UpiCollectDetails} instance, allowing for method chaining */ public UpiCollectDetails billingSequenceNumber(String billingSequenceNumber) { @@ -111,12 +113,8 @@ public UpiCollectDetails billingSequenceNumber(String billingSequenceNumber) { } /** - * The sequence number for the debit. For example, send **2** if this is the second debit for the - * subscription. The sequence number is included in the notification sent to the shopper. - * - * @return billingSequenceNumber The sequence number for the debit. For example, send **2** if - * this is the second debit for the subscription. The sequence number is included in the - * notification sent to the shopper. + * The sequence number for the debit. For example, send **2** if this is the second debit for the subscription. The sequence number is included in the notification sent to the shopper. + * @return billingSequenceNumber The sequence number for the debit. For example, send **2** if this is the second debit for the subscription. The sequence number is included in the notification sent to the shopper. */ @JsonProperty(JSON_PROPERTY_BILLING_SEQUENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,12 +123,9 @@ public String getBillingSequenceNumber() { } /** - * The sequence number for the debit. For example, send **2** if this is the second debit for the - * subscription. The sequence number is included in the notification sent to the shopper. + * The sequence number for the debit. For example, send **2** if this is the second debit for the subscription. The sequence number is included in the notification sent to the shopper. * - * @param billingSequenceNumber The sequence number for the debit. For example, send **2** if this - * is the second debit for the subscription. The sequence number is included in the - * notification sent to the shopper. + * @param billingSequenceNumber The sequence number for the debit. For example, send **2** if this is the second debit for the subscription. The sequence number is included in the notification sent to the shopper. */ @JsonProperty(JSON_PROPERTY_BILLING_SEQUENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,7 +146,6 @@ public UpiCollectDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -172,13 +166,13 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code UpiCollectDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public UpiCollectDetails recurringDetailReference(String recurringDetailReference) { @@ -187,11 +181,8 @@ public UpiCollectDetails recurringDetailReference(String recurringDetailReferenc } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -202,12 +193,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -217,11 +208,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * The `shopperNotificationReference` returned in the response when you requested to - * notify the shopper. Used for recurring payment only. + * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. * - * @param shopperNotificationReference The `shopperNotificationReference` returned in - * the response when you requested to notify the shopper. Used for recurring payment only. + * @param shopperNotificationReference The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. * @return the current {@code UpiCollectDetails} instance, allowing for method chaining */ public UpiCollectDetails shopperNotificationReference(String shopperNotificationReference) { @@ -230,11 +219,8 @@ public UpiCollectDetails shopperNotificationReference(String shopperNotification } /** - * The `shopperNotificationReference` returned in the response when you requested to - * notify the shopper. Used for recurring payment only. - * - * @return shopperNotificationReference The `shopperNotificationReference` returned in - * the response when you requested to notify the shopper. Used for recurring payment only. + * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. + * @return shopperNotificationReference The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. */ @JsonProperty(JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -243,11 +229,9 @@ public String getShopperNotificationReference() { } /** - * The `shopperNotificationReference` returned in the response when you requested to - * notify the shopper. Used for recurring payment only. + * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. * - * @param shopperNotificationReference The `shopperNotificationReference` returned in - * the response when you requested to notify the shopper. Used for recurring payment only. + * @param shopperNotificationReference The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. */ @JsonProperty(JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -256,11 +240,9 @@ public void setShopperNotificationReference(String shopperNotificationReference) } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code UpiCollectDetails} instance, allowing for method chaining */ public UpiCollectDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -269,11 +251,8 @@ public UpiCollectDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -282,11 +261,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -307,7 +284,6 @@ public UpiCollectDetails type(TypeEnum type) { /** * **upi_collect** - * * @return type **upi_collect** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -340,7 +316,6 @@ public UpiCollectDetails virtualPaymentAddress(String virtualPaymentAddress) { /** * The virtual payment address for UPI. - * * @return virtualPaymentAddress The virtual payment address for UPI. */ @JsonProperty(JSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS) @@ -360,7 +335,9 @@ public void setVirtualPaymentAddress(String virtualPaymentAddress) { this.virtualPaymentAddress = virtualPaymentAddress; } - /** Return true if this UpiCollectDetails object is equal to o. */ + /** + * Return true if this UpiCollectDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -370,55 +347,38 @@ public boolean equals(Object o) { return false; } UpiCollectDetails upiCollectDetails = (UpiCollectDetails) o; - return Objects.equals(this.billingSequenceNumber, upiCollectDetails.billingSequenceNumber) - && Objects.equals(this.checkoutAttemptId, upiCollectDetails.checkoutAttemptId) - && Objects.equals(this.recurringDetailReference, upiCollectDetails.recurringDetailReference) - && Objects.equals( - this.shopperNotificationReference, upiCollectDetails.shopperNotificationReference) - && Objects.equals(this.storedPaymentMethodId, upiCollectDetails.storedPaymentMethodId) - && Objects.equals(this.type, upiCollectDetails.type) - && Objects.equals(this.virtualPaymentAddress, upiCollectDetails.virtualPaymentAddress); + return Objects.equals(this.billingSequenceNumber, upiCollectDetails.billingSequenceNumber) && + Objects.equals(this.checkoutAttemptId, upiCollectDetails.checkoutAttemptId) && + Objects.equals(this.recurringDetailReference, upiCollectDetails.recurringDetailReference) && + Objects.equals(this.shopperNotificationReference, upiCollectDetails.shopperNotificationReference) && + Objects.equals(this.storedPaymentMethodId, upiCollectDetails.storedPaymentMethodId) && + Objects.equals(this.type, upiCollectDetails.type) && + Objects.equals(this.virtualPaymentAddress, upiCollectDetails.virtualPaymentAddress); } @Override public int hashCode() { - return Objects.hash( - billingSequenceNumber, - checkoutAttemptId, - recurringDetailReference, - shopperNotificationReference, - storedPaymentMethodId, - type, - virtualPaymentAddress); + return Objects.hash(billingSequenceNumber, checkoutAttemptId, recurringDetailReference, shopperNotificationReference, storedPaymentMethodId, type, virtualPaymentAddress); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpiCollectDetails {\n"); - sb.append(" billingSequenceNumber: ") - .append(toIndentedString(billingSequenceNumber)) - .append("\n"); + sb.append(" billingSequenceNumber: ").append(toIndentedString(billingSequenceNumber)).append("\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" shopperNotificationReference: ") - .append(toIndentedString(shopperNotificationReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" shopperNotificationReference: ").append(toIndentedString(shopperNotificationReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" virtualPaymentAddress: ") - .append(toIndentedString(virtualPaymentAddress)) - .append("\n"); + sb.append(" virtualPaymentAddress: ").append(toIndentedString(virtualPaymentAddress)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -427,7 +387,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of UpiCollectDetails given an JSON string * * @param jsonString JSON string @@ -437,12 +397,11 @@ private String toIndentedString(Object o) { public static UpiCollectDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpiCollectDetails.class); } - - /** - * Convert an instance of UpiCollectDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of UpiCollectDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/UpiIntentDetails.java b/src/main/java/com/adyen/model/checkout/UpiIntentDetails.java index b462082d3..681610d83 100644 --- a/src/main/java/com/adyen/model/checkout/UpiIntentDetails.java +++ b/src/main/java/com/adyen/model/checkout/UpiIntentDetails.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** UpiIntentDetails */ + +/** + * UpiIntentDetails + */ @JsonPropertyOrder({ UpiIntentDetails.JSON_PROPERTY_APP_ID, UpiIntentDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, @@ -30,6 +35,7 @@ UpiIntentDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, UpiIntentDetails.JSON_PROPERTY_TYPE }) + public class UpiIntentDetails { public static final String JSON_PROPERTY_APP_ID = "appId"; private String appId; @@ -41,15 +47,17 @@ public class UpiIntentDetails { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; - public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE = - "shopperNotificationReference"; + public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE = "shopperNotificationReference"; private String shopperNotificationReference; public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** **upi_intent** */ + /** + * **upi_intent** + */ public enum TypeEnum { + UPI_INTENT(String.valueOf("upi_intent")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -57,7 +65,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -78,11 +86,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -90,7 +94,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public UpiIntentDetails() {} + public UpiIntentDetails() { + } /** * TPAP (Third Party Application) Id that is being used to make the UPI payment @@ -105,7 +110,6 @@ public UpiIntentDetails appId(String appId) { /** * TPAP (Third Party Application) Id that is being used to make the UPI payment - * * @return appId TPAP (Third Party Application) Id that is being used to make the UPI payment */ @JsonProperty(JSON_PROPERTY_APP_ID) @@ -138,7 +142,6 @@ public UpiIntentDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -159,13 +162,13 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code UpiIntentDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public UpiIntentDetails recurringDetailReference(String recurringDetailReference) { @@ -174,11 +177,8 @@ public UpiIntentDetails recurringDetailReference(String recurringDetailReference } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -189,12 +189,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -204,11 +204,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * The `shopperNotificationReference` returned in the response when you requested to - * notify the shopper. Used for recurring payment only. + * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. * - * @param shopperNotificationReference The `shopperNotificationReference` returned in - * the response when you requested to notify the shopper. Used for recurring payment only. + * @param shopperNotificationReference The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. * @return the current {@code UpiIntentDetails} instance, allowing for method chaining */ public UpiIntentDetails shopperNotificationReference(String shopperNotificationReference) { @@ -217,11 +215,8 @@ public UpiIntentDetails shopperNotificationReference(String shopperNotificationR } /** - * The `shopperNotificationReference` returned in the response when you requested to - * notify the shopper. Used for recurring payment only. - * - * @return shopperNotificationReference The `shopperNotificationReference` returned in - * the response when you requested to notify the shopper. Used for recurring payment only. + * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. + * @return shopperNotificationReference The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. */ @JsonProperty(JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -230,11 +225,9 @@ public String getShopperNotificationReference() { } /** - * The `shopperNotificationReference` returned in the response when you requested to - * notify the shopper. Used for recurring payment only. + * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. * - * @param shopperNotificationReference The `shopperNotificationReference` returned in - * the response when you requested to notify the shopper. Used for recurring payment only. + * @param shopperNotificationReference The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. */ @JsonProperty(JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -243,11 +236,9 @@ public void setShopperNotificationReference(String shopperNotificationReference) } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code UpiIntentDetails} instance, allowing for method chaining */ public UpiIntentDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -256,11 +247,8 @@ public UpiIntentDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -269,11 +257,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -294,7 +280,6 @@ public UpiIntentDetails type(TypeEnum type) { /** * **upi_intent** - * * @return type **upi_intent** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -314,7 +299,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this UpiIntentDetails object is equal to o. */ + /** + * Return true if this UpiIntentDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -324,24 +311,17 @@ public boolean equals(Object o) { return false; } UpiIntentDetails upiIntentDetails = (UpiIntentDetails) o; - return Objects.equals(this.appId, upiIntentDetails.appId) - && Objects.equals(this.checkoutAttemptId, upiIntentDetails.checkoutAttemptId) - && Objects.equals(this.recurringDetailReference, upiIntentDetails.recurringDetailReference) - && Objects.equals( - this.shopperNotificationReference, upiIntentDetails.shopperNotificationReference) - && Objects.equals(this.storedPaymentMethodId, upiIntentDetails.storedPaymentMethodId) - && Objects.equals(this.type, upiIntentDetails.type); + return Objects.equals(this.appId, upiIntentDetails.appId) && + Objects.equals(this.checkoutAttemptId, upiIntentDetails.checkoutAttemptId) && + Objects.equals(this.recurringDetailReference, upiIntentDetails.recurringDetailReference) && + Objects.equals(this.shopperNotificationReference, upiIntentDetails.shopperNotificationReference) && + Objects.equals(this.storedPaymentMethodId, upiIntentDetails.storedPaymentMethodId) && + Objects.equals(this.type, upiIntentDetails.type); } @Override public int hashCode() { - return Objects.hash( - appId, - checkoutAttemptId, - recurringDetailReference, - shopperNotificationReference, - storedPaymentMethodId, - type); + return Objects.hash(appId, checkoutAttemptId, recurringDetailReference, shopperNotificationReference, storedPaymentMethodId, type); } @Override @@ -350,22 +330,17 @@ public String toString() { sb.append("class UpiIntentDetails {\n"); sb.append(" appId: ").append(toIndentedString(appId)).append("\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" shopperNotificationReference: ") - .append(toIndentedString(shopperNotificationReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" shopperNotificationReference: ").append(toIndentedString(shopperNotificationReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -374,7 +349,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of UpiIntentDetails given an JSON string * * @param jsonString JSON string @@ -384,12 +359,11 @@ private String toIndentedString(Object o) { public static UpiIntentDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpiIntentDetails.class); } - - /** - * Convert an instance of UpiIntentDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of UpiIntentDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/UtilityRequest.java b/src/main/java/com/adyen/model/checkout/UtilityRequest.java index cff9c4bd7..033a5f748 100644 --- a/src/main/java/com/adyen/model/checkout/UtilityRequest.java +++ b/src/main/java/com/adyen/model/checkout/UtilityRequest.java @@ -2,30 +2,43 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * UtilityRequest + */ +@JsonPropertyOrder({ + UtilityRequest.JSON_PROPERTY_ORIGIN_DOMAINS +}) -/** UtilityRequest */ -@JsonPropertyOrder({UtilityRequest.JSON_PROPERTY_ORIGIN_DOMAINS}) public class UtilityRequest { public static final String JSON_PROPERTY_ORIGIN_DOMAINS = "originDomains"; private List originDomains; - public UtilityRequest() {} + public UtilityRequest() { + } /** * The list of origin domains, for which origin keys are requested. @@ -48,7 +61,6 @@ public UtilityRequest addOriginDomainsItem(String originDomainsItem) { /** * The list of origin domains, for which origin keys are requested. - * * @return originDomains The list of origin domains, for which origin keys are requested. */ @JsonProperty(JSON_PROPERTY_ORIGIN_DOMAINS) @@ -68,7 +80,9 @@ public void setOriginDomains(List originDomains) { this.originDomains = originDomains; } - /** Return true if this UtilityRequest object is equal to o. */ + /** + * Return true if this UtilityRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -96,7 +110,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -105,7 +120,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of UtilityRequest given an JSON string * * @param jsonString JSON string @@ -115,12 +130,11 @@ private String toIndentedString(Object o) { public static UtilityRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UtilityRequest.class); } - - /** - * Convert an instance of UtilityRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of UtilityRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/UtilityResponse.java b/src/main/java/com/adyen/model/checkout/UtilityResponse.java index fcf98951d..c30305ae4 100644 --- a/src/main/java/com/adyen/model/checkout/UtilityResponse.java +++ b/src/main/java/com/adyen/model/checkout/UtilityResponse.java @@ -2,37 +2,48 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * UtilityResponse + */ +@JsonPropertyOrder({ + UtilityResponse.JSON_PROPERTY_ORIGIN_KEYS +}) -/** UtilityResponse */ -@JsonPropertyOrder({UtilityResponse.JSON_PROPERTY_ORIGIN_KEYS}) public class UtilityResponse { public static final String JSON_PROPERTY_ORIGIN_KEYS = "originKeys"; private Map originKeys; - public UtilityResponse() {} + public UtilityResponse() { + } /** - * The list of origin keys for all requested domains. For each list item, the key is the domain - * and the value is the origin key. + * The list of origin keys for all requested domains. For each list item, the key is the domain and the value is the origin key. * - * @param originKeys The list of origin keys for all requested domains. For each list item, the - * key is the domain and the value is the origin key. + * @param originKeys The list of origin keys for all requested domains. For each list item, the key is the domain and the value is the origin key. * @return the current {@code UtilityResponse} instance, allowing for method chaining */ public UtilityResponse originKeys(Map originKeys) { @@ -49,11 +60,8 @@ public UtilityResponse putOriginKeysItem(String key, String originKeysItem) { } /** - * The list of origin keys for all requested domains. For each list item, the key is the domain - * and the value is the origin key. - * - * @return originKeys The list of origin keys for all requested domains. For each list item, the - * key is the domain and the value is the origin key. + * The list of origin keys for all requested domains. For each list item, the key is the domain and the value is the origin key. + * @return originKeys The list of origin keys for all requested domains. For each list item, the key is the domain and the value is the origin key. */ @JsonProperty(JSON_PROPERTY_ORIGIN_KEYS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -62,11 +70,9 @@ public Map getOriginKeys() { } /** - * The list of origin keys for all requested domains. For each list item, the key is the domain - * and the value is the origin key. + * The list of origin keys for all requested domains. For each list item, the key is the domain and the value is the origin key. * - * @param originKeys The list of origin keys for all requested domains. For each list item, the - * key is the domain and the value is the origin key. + * @param originKeys The list of origin keys for all requested domains. For each list item, the key is the domain and the value is the origin key. */ @JsonProperty(JSON_PROPERTY_ORIGIN_KEYS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -74,7 +80,9 @@ public void setOriginKeys(Map originKeys) { this.originKeys = originKeys; } - /** Return true if this UtilityResponse object is equal to o. */ + /** + * Return true if this UtilityResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -102,7 +110,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -111,7 +120,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of UtilityResponse given an JSON string * * @param jsonString JSON string @@ -121,12 +130,11 @@ private String toIndentedString(Object o) { public static UtilityResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UtilityResponse.class); } - - /** - * Convert an instance of UtilityResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of UtilityResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ValidateShopperIdRequest.java b/src/main/java/com/adyen/model/checkout/ValidateShopperIdRequest.java index 61bd95a9c..62599b864 100644 --- a/src/main/java/com/adyen/model/checkout/ValidateShopperIdRequest.java +++ b/src/main/java/com/adyen/model/checkout/ValidateShopperIdRequest.java @@ -2,22 +2,32 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.ShopperIdPaymentMethod; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ValidateShopperIdRequest */ + +/** + * ValidateShopperIdRequest + */ @JsonPropertyOrder({ ValidateShopperIdRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, ValidateShopperIdRequest.JSON_PROPERTY_PAYMENT_METHOD, @@ -25,6 +35,7 @@ ValidateShopperIdRequest.JSON_PROPERTY_SHOPPER_I_P, ValidateShopperIdRequest.JSON_PROPERTY_SHOPPER_REFERENCE }) + public class ValidateShopperIdRequest { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; @@ -41,13 +52,13 @@ public class ValidateShopperIdRequest { public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference"; private String shopperReference; - public ValidateShopperIdRequest() {} + public ValidateShopperIdRequest() { + } /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. * @return the current {@code ValidateShopperIdRequest} instance, allowing for method chaining */ public ValidateShopperIdRequest merchantAccount(String merchantAccount) { @@ -57,9 +68,7 @@ public ValidateShopperIdRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * - * @return merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @return merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,8 +79,7 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -82,7 +90,7 @@ public void setMerchantAccount(String merchantAccount) { /** * paymentMethod * - * @param paymentMethod + * @param paymentMethod * @return the current {@code ValidateShopperIdRequest} instance, allowing for method chaining */ public ValidateShopperIdRequest paymentMethod(ShopperIdPaymentMethod paymentMethod) { @@ -92,8 +100,7 @@ public ValidateShopperIdRequest paymentMethod(ShopperIdPaymentMethod paymentMeth /** * Get paymentMethod - * - * @return paymentMethod + * @return paymentMethod */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,7 +111,7 @@ public ShopperIdPaymentMethod getPaymentMethod() { /** * paymentMethod * - * @param paymentMethod + * @param paymentMethod */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,7 +122,7 @@ public void setPaymentMethod(ShopperIdPaymentMethod paymentMethod) { /** * shopperEmail * - * @param shopperEmail + * @param shopperEmail * @return the current {@code ValidateShopperIdRequest} instance, allowing for method chaining */ public ValidateShopperIdRequest shopperEmail(String shopperEmail) { @@ -125,8 +132,7 @@ public ValidateShopperIdRequest shopperEmail(String shopperEmail) { /** * Get shopperEmail - * - * @return shopperEmail + * @return shopperEmail */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,7 +143,7 @@ public String getShopperEmail() { /** * shopperEmail * - * @param shopperEmail + * @param shopperEmail */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,7 +154,7 @@ public void setShopperEmail(String shopperEmail) { /** * shopperIP * - * @param shopperIP + * @param shopperIP * @return the current {@code ValidateShopperIdRequest} instance, allowing for method chaining */ public ValidateShopperIdRequest shopperIP(String shopperIP) { @@ -158,8 +164,7 @@ public ValidateShopperIdRequest shopperIP(String shopperIP) { /** * Get shopperIP - * - * @return shopperIP + * @return shopperIP */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -170,7 +175,7 @@ public String getShopperIP() { /** * shopperIP * - * @param shopperIP + * @param shopperIP */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,7 +186,7 @@ public void setShopperIP(String shopperIP) { /** * shopperReference * - * @param shopperReference + * @param shopperReference * @return the current {@code ValidateShopperIdRequest} instance, allowing for method chaining */ public ValidateShopperIdRequest shopperReference(String shopperReference) { @@ -191,8 +196,7 @@ public ValidateShopperIdRequest shopperReference(String shopperReference) { /** * Get shopperReference - * - * @return shopperReference + * @return shopperReference */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -203,7 +207,7 @@ public String getShopperReference() { /** * shopperReference * - * @param shopperReference + * @param shopperReference */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,7 +215,9 @@ public void setShopperReference(String shopperReference) { this.shopperReference = shopperReference; } - /** Return true if this ValidateShopperIdRequest object is equal to o. */ + /** + * Return true if this ValidateShopperIdRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -221,11 +227,11 @@ public boolean equals(Object o) { return false; } ValidateShopperIdRequest validateShopperIdRequest = (ValidateShopperIdRequest) o; - return Objects.equals(this.merchantAccount, validateShopperIdRequest.merchantAccount) - && Objects.equals(this.paymentMethod, validateShopperIdRequest.paymentMethod) - && Objects.equals(this.shopperEmail, validateShopperIdRequest.shopperEmail) - && Objects.equals(this.shopperIP, validateShopperIdRequest.shopperIP) - && Objects.equals(this.shopperReference, validateShopperIdRequest.shopperReference); + return Objects.equals(this.merchantAccount, validateShopperIdRequest.merchantAccount) && + Objects.equals(this.paymentMethod, validateShopperIdRequest.paymentMethod) && + Objects.equals(this.shopperEmail, validateShopperIdRequest.shopperEmail) && + Objects.equals(this.shopperIP, validateShopperIdRequest.shopperIP) && + Objects.equals(this.shopperReference, validateShopperIdRequest.shopperReference); } @Override @@ -247,7 +253,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -256,24 +263,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ValidateShopperIdRequest given an JSON string * * @param jsonString JSON string * @return An instance of ValidateShopperIdRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ValidateShopperIdRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to ValidateShopperIdRequest */ - public static ValidateShopperIdRequest fromJson(String jsonString) - throws JsonProcessingException { + public static ValidateShopperIdRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ValidateShopperIdRequest.class); } - - /** - * Convert an instance of ValidateShopperIdRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ValidateShopperIdRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ValidateShopperIdResponse.java b/src/main/java/com/adyen/model/checkout/ValidateShopperIdResponse.java index bffc1fa4f..ae731934e 100644 --- a/src/main/java/com/adyen/model/checkout/ValidateShopperIdResponse.java +++ b/src/main/java/com/adyen/model/checkout/ValidateShopperIdResponse.java @@ -2,26 +2,37 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.checkout.Result; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ValidateShopperIdResponse */ + +/** + * ValidateShopperIdResponse + */ @JsonPropertyOrder({ ValidateShopperIdResponse.JSON_PROPERTY_REASON, ValidateShopperIdResponse.JSON_PROPERTY_RESULT }) + public class ValidateShopperIdResponse { public static final String JSON_PROPERTY_REASON = "reason"; private String reason; @@ -29,12 +40,13 @@ public class ValidateShopperIdResponse { public static final String JSON_PROPERTY_RESULT = "result"; private Result result; - public ValidateShopperIdResponse() {} + public ValidateShopperIdResponse() { + } /** - * reason + * Reason for the result. * - * @param reason + * @param reason Reason for the result. * @return the current {@code ValidateShopperIdResponse} instance, allowing for method chaining */ public ValidateShopperIdResponse reason(String reason) { @@ -43,9 +55,8 @@ public ValidateShopperIdResponse reason(String reason) { } /** - * Get reason - * - * @return reason + * Reason for the result. + * @return reason Reason for the result. */ @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -54,9 +65,9 @@ public String getReason() { } /** - * reason + * Reason for the result. * - * @param reason + * @param reason Reason for the result. */ @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -67,7 +78,7 @@ public void setReason(String reason) { /** * result * - * @param result + * @param result * @return the current {@code ValidateShopperIdResponse} instance, allowing for method chaining */ public ValidateShopperIdResponse result(Result result) { @@ -77,8 +88,7 @@ public ValidateShopperIdResponse result(Result result) { /** * Get result - * - * @return result + * @return result */ @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -89,7 +99,7 @@ public Result getResult() { /** * result * - * @param result + * @param result */ @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,7 +107,9 @@ public void setResult(Result result) { this.result = result; } - /** Return true if this ValidateShopperIdResponse object is equal to o. */ + /** + * Return true if this ValidateShopperIdResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -107,8 +119,8 @@ public boolean equals(Object o) { return false; } ValidateShopperIdResponse validateShopperIdResponse = (ValidateShopperIdResponse) o; - return Objects.equals(this.reason, validateShopperIdResponse.reason) - && Objects.equals(this.result, validateShopperIdResponse.result); + return Objects.equals(this.reason, validateShopperIdResponse.reason) && + Objects.equals(this.result, validateShopperIdResponse.result); } @Override @@ -127,7 +139,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,24 +149,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ValidateShopperIdResponse given an JSON string * * @param jsonString JSON string * @return An instance of ValidateShopperIdResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ValidateShopperIdResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to ValidateShopperIdResponse */ - public static ValidateShopperIdResponse fromJson(String jsonString) - throws JsonProcessingException { + public static ValidateShopperIdResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ValidateShopperIdResponse.class); } - - /** - * Convert an instance of ValidateShopperIdResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ValidateShopperIdResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/VippsDetails.java b/src/main/java/com/adyen/model/checkout/VippsDetails.java index 40f1654e4..6130970f9 100644 --- a/src/main/java/com/adyen/model/checkout/VippsDetails.java +++ b/src/main/java/com/adyen/model/checkout/VippsDetails.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** VippsDetails */ + +/** + * VippsDetails + */ @JsonPropertyOrder({ VippsDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, VippsDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, @@ -29,6 +34,7 @@ VippsDetails.JSON_PROPERTY_TELEPHONE_NUMBER, VippsDetails.JSON_PROPERTY_TYPE }) + public class VippsDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -43,8 +49,11 @@ public class VippsDetails { public static final String JSON_PROPERTY_TELEPHONE_NUMBER = "telephoneNumber"; private String telephoneNumber; - /** **vipps** */ + /** + * **vipps** + */ public enum TypeEnum { + VIPPS(String.valueOf("vipps")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +61,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,11 +82,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -85,7 +90,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public VippsDetails() {} + public VippsDetails() { + } /** * The checkout attempt identifier. @@ -100,7 +106,6 @@ public VippsDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -121,13 +126,13 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code VippsDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public VippsDetails recurringDetailReference(String recurringDetailReference) { @@ -136,11 +141,8 @@ public VippsDetails recurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -151,12 +153,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -166,11 +168,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code VippsDetails} instance, allowing for method chaining */ public VippsDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -179,11 +179,8 @@ public VippsDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,11 +189,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -205,7 +200,9 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { } /** - * @param telephoneNumber + * + * + * @param telephoneNumber * @return the current {@code VippsDetails} instance, allowing for method chaining */ public VippsDetails telephoneNumber(String telephoneNumber) { @@ -214,7 +211,8 @@ public VippsDetails telephoneNumber(String telephoneNumber) { } /** - * @return telephoneNumber + * + * @return telephoneNumber */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,7 +221,9 @@ public String getTelephoneNumber() { } /** - * @param telephoneNumber + * + * + * @param telephoneNumber */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,7 +244,6 @@ public VippsDetails type(TypeEnum type) { /** * **vipps** - * * @return type **vipps** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -264,7 +263,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this VippsDetails object is equal to o. */ + /** + * Return true if this VippsDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -274,17 +275,16 @@ public boolean equals(Object o) { return false; } VippsDetails vippsDetails = (VippsDetails) o; - return Objects.equals(this.checkoutAttemptId, vippsDetails.checkoutAttemptId) - && Objects.equals(this.recurringDetailReference, vippsDetails.recurringDetailReference) - && Objects.equals(this.storedPaymentMethodId, vippsDetails.storedPaymentMethodId) - && Objects.equals(this.telephoneNumber, vippsDetails.telephoneNumber) - && Objects.equals(this.type, vippsDetails.type); + return Objects.equals(this.checkoutAttemptId, vippsDetails.checkoutAttemptId) && + Objects.equals(this.recurringDetailReference, vippsDetails.recurringDetailReference) && + Objects.equals(this.storedPaymentMethodId, vippsDetails.storedPaymentMethodId) && + Objects.equals(this.telephoneNumber, vippsDetails.telephoneNumber) && + Objects.equals(this.type, vippsDetails.type); } @Override public int hashCode() { - return Objects.hash( - checkoutAttemptId, recurringDetailReference, storedPaymentMethodId, telephoneNumber, type); + return Objects.hash(checkoutAttemptId, recurringDetailReference, storedPaymentMethodId, telephoneNumber, type); } @Override @@ -292,12 +292,8 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class VippsDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -305,7 +301,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -314,7 +311,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of VippsDetails given an JSON string * * @param jsonString JSON string @@ -324,12 +321,11 @@ private String toIndentedString(Object o) { public static VippsDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, VippsDetails.class); } - - /** - * Convert an instance of VippsDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of VippsDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/VisaCheckoutDetails.java b/src/main/java/com/adyen/model/checkout/VisaCheckoutDetails.java index e9bf15507..993cb5af0 100644 --- a/src/main/java/com/adyen/model/checkout/VisaCheckoutDetails.java +++ b/src/main/java/com/adyen/model/checkout/VisaCheckoutDetails.java @@ -2,41 +2,47 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** VisaCheckoutDetails */ + +/** + * VisaCheckoutDetails + */ @JsonPropertyOrder({ VisaCheckoutDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, VisaCheckoutDetails.JSON_PROPERTY_FUNDING_SOURCE, VisaCheckoutDetails.JSON_PROPERTY_TYPE, VisaCheckoutDetails.JSON_PROPERTY_VISA_CHECKOUT_CALL_ID }) + public class VisaCheckoutDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ public enum FundingSourceEnum { + CREDIT(String.valueOf("credit")), DEBIT(String.valueOf("debit")); @@ -46,7 +52,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -67,11 +73,7 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FundingSourceEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FundingSourceEnum.values())); + LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -79,8 +81,11 @@ public static FundingSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_FUNDING_SOURCE = "fundingSource"; private FundingSourceEnum fundingSource; - /** **visacheckout** */ + /** + * **visacheckout** + */ public enum TypeEnum { + VISACHECKOUT(String.valueOf("visacheckout")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -88,7 +93,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -109,11 +114,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -124,7 +125,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VISA_CHECKOUT_CALL_ID = "visaCheckoutCallId"; private String visaCheckoutCallId; - public VisaCheckoutDetails() {} + public VisaCheckoutDetails() { + } /** * The checkout attempt identifier. @@ -139,7 +141,6 @@ public VisaCheckoutDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -160,12 +161,9 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * @return the current {@code VisaCheckoutDetails} instance, allowing for method chaining */ public VisaCheckoutDetails fundingSource(FundingSourceEnum fundingSource) { @@ -174,12 +172,8 @@ public VisaCheckoutDetails fundingSource(FundingSourceEnum fundingSource) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. - * - * @return fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @return fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,12 +182,9 @@ public FundingSourceEnum getFundingSource() { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,7 +205,6 @@ public VisaCheckoutDetails type(TypeEnum type) { /** * **visacheckout** - * * @return type **visacheckout** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -235,12 +225,9 @@ public void setType(TypeEnum type) { } /** - * The Visa Click to Pay Call ID value. When your shopper selects a payment and/or a shipping - * address from Visa Click to Pay, you will receive a Visa Click to Pay Call ID. + * The Visa Click to Pay Call ID value. When your shopper selects a payment and/or a shipping address from Visa Click to Pay, you will receive a Visa Click to Pay Call ID. * - * @param visaCheckoutCallId The Visa Click to Pay Call ID value. When your shopper selects a - * payment and/or a shipping address from Visa Click to Pay, you will receive a Visa Click to - * Pay Call ID. + * @param visaCheckoutCallId The Visa Click to Pay Call ID value. When your shopper selects a payment and/or a shipping address from Visa Click to Pay, you will receive a Visa Click to Pay Call ID. * @return the current {@code VisaCheckoutDetails} instance, allowing for method chaining */ public VisaCheckoutDetails visaCheckoutCallId(String visaCheckoutCallId) { @@ -249,12 +236,8 @@ public VisaCheckoutDetails visaCheckoutCallId(String visaCheckoutCallId) { } /** - * The Visa Click to Pay Call ID value. When your shopper selects a payment and/or a shipping - * address from Visa Click to Pay, you will receive a Visa Click to Pay Call ID. - * - * @return visaCheckoutCallId The Visa Click to Pay Call ID value. When your shopper selects a - * payment and/or a shipping address from Visa Click to Pay, you will receive a Visa Click to - * Pay Call ID. + * The Visa Click to Pay Call ID value. When your shopper selects a payment and/or a shipping address from Visa Click to Pay, you will receive a Visa Click to Pay Call ID. + * @return visaCheckoutCallId The Visa Click to Pay Call ID value. When your shopper selects a payment and/or a shipping address from Visa Click to Pay, you will receive a Visa Click to Pay Call ID. */ @JsonProperty(JSON_PROPERTY_VISA_CHECKOUT_CALL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -263,12 +246,9 @@ public String getVisaCheckoutCallId() { } /** - * The Visa Click to Pay Call ID value. When your shopper selects a payment and/or a shipping - * address from Visa Click to Pay, you will receive a Visa Click to Pay Call ID. + * The Visa Click to Pay Call ID value. When your shopper selects a payment and/or a shipping address from Visa Click to Pay, you will receive a Visa Click to Pay Call ID. * - * @param visaCheckoutCallId The Visa Click to Pay Call ID value. When your shopper selects a - * payment and/or a shipping address from Visa Click to Pay, you will receive a Visa Click to - * Pay Call ID. + * @param visaCheckoutCallId The Visa Click to Pay Call ID value. When your shopper selects a payment and/or a shipping address from Visa Click to Pay, you will receive a Visa Click to Pay Call ID. */ @JsonProperty(JSON_PROPERTY_VISA_CHECKOUT_CALL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -276,7 +256,9 @@ public void setVisaCheckoutCallId(String visaCheckoutCallId) { this.visaCheckoutCallId = visaCheckoutCallId; } - /** Return true if this VisaCheckoutDetails object is equal to o. */ + /** + * Return true if this VisaCheckoutDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -286,10 +268,10 @@ public boolean equals(Object o) { return false; } VisaCheckoutDetails visaCheckoutDetails = (VisaCheckoutDetails) o; - return Objects.equals(this.checkoutAttemptId, visaCheckoutDetails.checkoutAttemptId) - && Objects.equals(this.fundingSource, visaCheckoutDetails.fundingSource) - && Objects.equals(this.type, visaCheckoutDetails.type) - && Objects.equals(this.visaCheckoutCallId, visaCheckoutDetails.visaCheckoutCallId); + return Objects.equals(this.checkoutAttemptId, visaCheckoutDetails.checkoutAttemptId) && + Objects.equals(this.fundingSource, visaCheckoutDetails.fundingSource) && + Objects.equals(this.type, visaCheckoutDetails.type) && + Objects.equals(this.visaCheckoutCallId, visaCheckoutDetails.visaCheckoutCallId); } @Override @@ -310,7 +292,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -319,23 +302,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of VisaCheckoutDetails given an JSON string * * @param jsonString JSON string * @return An instance of VisaCheckoutDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * VisaCheckoutDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to VisaCheckoutDetails */ public static VisaCheckoutDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, VisaCheckoutDetails.class); } - - /** - * Convert an instance of VisaCheckoutDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of VisaCheckoutDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/WeChatPayDetails.java b/src/main/java/com/adyen/model/checkout/WeChatPayDetails.java index 74cabefcb..f2a6a5307 100644 --- a/src/main/java/com/adyen/model/checkout/WeChatPayDetails.java +++ b/src/main/java/com/adyen/model/checkout/WeChatPayDetails.java @@ -2,36 +2,45 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** WeChatPayDetails */ + +/** + * WeChatPayDetails + */ @JsonPropertyOrder({ WeChatPayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, WeChatPayDetails.JSON_PROPERTY_TYPE }) + public class WeChatPayDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; - /** **wechatpay** */ + /** + * **wechatpay** + */ public enum TypeEnum { + WECHATPAY(String.valueOf("wechatpay")), WECHATPAY_POS(String.valueOf("wechatpay_pos")); @@ -41,7 +50,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -62,11 +71,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -74,7 +79,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public WeChatPayDetails() {} + public WeChatPayDetails() { + } /** * The checkout attempt identifier. @@ -89,7 +95,6 @@ public WeChatPayDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -122,7 +127,6 @@ public WeChatPayDetails type(TypeEnum type) { /** * **wechatpay** - * * @return type **wechatpay** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -142,7 +146,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this WeChatPayDetails object is equal to o. */ + /** + * Return true if this WeChatPayDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -152,8 +158,8 @@ public boolean equals(Object o) { return false; } WeChatPayDetails weChatPayDetails = (WeChatPayDetails) o; - return Objects.equals(this.checkoutAttemptId, weChatPayDetails.checkoutAttemptId) - && Objects.equals(this.type, weChatPayDetails.type); + return Objects.equals(this.checkoutAttemptId, weChatPayDetails.checkoutAttemptId) && + Objects.equals(this.type, weChatPayDetails.type); } @Override @@ -172,7 +178,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -181,7 +188,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of WeChatPayDetails given an JSON string * * @param jsonString JSON string @@ -191,12 +198,11 @@ private String toIndentedString(Object o) { public static WeChatPayDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, WeChatPayDetails.class); } - - /** - * Convert an instance of WeChatPayDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of WeChatPayDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/WeChatPayMiniProgramDetails.java b/src/main/java/com/adyen/model/checkout/WeChatPayMiniProgramDetails.java index 9cb5ea8e1..42249514e 100644 --- a/src/main/java/com/adyen/model/checkout/WeChatPayMiniProgramDetails.java +++ b/src/main/java/com/adyen/model/checkout/WeChatPayMiniProgramDetails.java @@ -2,32 +2,38 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** WeChatPayMiniProgramDetails */ + +/** + * WeChatPayMiniProgramDetails + */ @JsonPropertyOrder({ WeChatPayMiniProgramDetails.JSON_PROPERTY_APP_ID, WeChatPayMiniProgramDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, WeChatPayMiniProgramDetails.JSON_PROPERTY_OPENID, WeChatPayMiniProgramDetails.JSON_PROPERTY_TYPE }) + public class WeChatPayMiniProgramDetails { public static final String JSON_PROPERTY_APP_ID = "appId"; private String appId; @@ -38,8 +44,11 @@ public class WeChatPayMiniProgramDetails { public static final String JSON_PROPERTY_OPENID = "openid"; private String openid; - /** **wechatpayMiniProgram** */ + /** + * **wechatpayMiniProgram** + */ public enum TypeEnum { + WECHATPAYMINIPROGRAM(String.valueOf("wechatpayMiniProgram")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -47,7 +56,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -68,11 +77,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -80,12 +85,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public WeChatPayMiniProgramDetails() {} + public WeChatPayMiniProgramDetails() { + } /** * appId * - * @param appId + * @param appId * @return the current {@code WeChatPayMiniProgramDetails} instance, allowing for method chaining */ public WeChatPayMiniProgramDetails appId(String appId) { @@ -95,8 +101,7 @@ public WeChatPayMiniProgramDetails appId(String appId) { /** * Get appId - * - * @return appId + * @return appId */ @JsonProperty(JSON_PROPERTY_APP_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,7 +112,7 @@ public String getAppId() { /** * appId * - * @param appId + * @param appId */ @JsonProperty(JSON_PROPERTY_APP_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,7 +133,6 @@ public WeChatPayMiniProgramDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -151,7 +155,7 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { /** * openid * - * @param openid + * @param openid * @return the current {@code WeChatPayMiniProgramDetails} instance, allowing for method chaining */ public WeChatPayMiniProgramDetails openid(String openid) { @@ -161,8 +165,7 @@ public WeChatPayMiniProgramDetails openid(String openid) { /** * Get openid - * - * @return openid + * @return openid */ @JsonProperty(JSON_PROPERTY_OPENID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,7 +176,7 @@ public String getOpenid() { /** * openid * - * @param openid + * @param openid */ @JsonProperty(JSON_PROPERTY_OPENID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,7 +197,6 @@ public WeChatPayMiniProgramDetails type(TypeEnum type) { /** * **wechatpayMiniProgram** - * * @return type **wechatpayMiniProgram** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -214,7 +216,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this WeChatPayMiniProgramDetails object is equal to o. */ + /** + * Return true if this WeChatPayMiniProgramDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -224,10 +228,10 @@ public boolean equals(Object o) { return false; } WeChatPayMiniProgramDetails weChatPayMiniProgramDetails = (WeChatPayMiniProgramDetails) o; - return Objects.equals(this.appId, weChatPayMiniProgramDetails.appId) - && Objects.equals(this.checkoutAttemptId, weChatPayMiniProgramDetails.checkoutAttemptId) - && Objects.equals(this.openid, weChatPayMiniProgramDetails.openid) - && Objects.equals(this.type, weChatPayMiniProgramDetails.type); + return Objects.equals(this.appId, weChatPayMiniProgramDetails.appId) && + Objects.equals(this.checkoutAttemptId, weChatPayMiniProgramDetails.checkoutAttemptId) && + Objects.equals(this.openid, weChatPayMiniProgramDetails.openid) && + Objects.equals(this.type, weChatPayMiniProgramDetails.type); } @Override @@ -248,7 +252,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -257,24 +262,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of WeChatPayMiniProgramDetails given an JSON string * * @param jsonString JSON string * @return An instance of WeChatPayMiniProgramDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * WeChatPayMiniProgramDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to WeChatPayMiniProgramDetails */ - public static WeChatPayMiniProgramDetails fromJson(String jsonString) - throws JsonProcessingException { + public static WeChatPayMiniProgramDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, WeChatPayMiniProgramDetails.class); } - - /** - * Convert an instance of WeChatPayMiniProgramDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of WeChatPayMiniProgramDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ZipDetails.java b/src/main/java/com/adyen/model/checkout/ZipDetails.java index 368c13648..39ce78bd7 100644 --- a/src/main/java/com/adyen/model/checkout/ZipDetails.java +++ b/src/main/java/com/adyen/model/checkout/ZipDetails.java @@ -2,26 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.checkout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ZipDetails */ +/** + * ZipDetails + */ @JsonPropertyOrder({ ZipDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, ZipDetails.JSON_PROPERTY_CLICK_AND_COLLECT, @@ -29,6 +34,7 @@ ZipDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, ZipDetails.JSON_PROPERTY_TYPE }) + public class ZipDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -43,8 +49,11 @@ public class ZipDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** **zip** */ + /** + * **zip** + */ public enum TypeEnum { + ZIP(String.valueOf("zip")), ZIP_POS(String.valueOf("zip_pos")); @@ -54,7 +63,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -75,11 +84,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -87,7 +92,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public ZipDetails() {} + public ZipDetails() { + } /** * The checkout attempt identifier. @@ -102,7 +108,6 @@ public ZipDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. - * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -123,11 +128,9 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * Set this to **true** if the shopper would like to pick up and collect their order, instead of - * having the goods delivered to them. + * Set this to **true** if the shopper would like to pick up and collect their order, instead of having the goods delivered to them. * - * @param clickAndCollect Set this to **true** if the shopper would like to pick up and collect - * their order, instead of having the goods delivered to them. + * @param clickAndCollect Set this to **true** if the shopper would like to pick up and collect their order, instead of having the goods delivered to them. * @return the current {@code ZipDetails} instance, allowing for method chaining */ public ZipDetails clickAndCollect(String clickAndCollect) { @@ -136,11 +139,8 @@ public ZipDetails clickAndCollect(String clickAndCollect) { } /** - * Set this to **true** if the shopper would like to pick up and collect their order, instead of - * having the goods delivered to them. - * - * @return clickAndCollect Set this to **true** if the shopper would like to pick up and collect - * their order, instead of having the goods delivered to them. + * Set this to **true** if the shopper would like to pick up and collect their order, instead of having the goods delivered to them. + * @return clickAndCollect Set this to **true** if the shopper would like to pick up and collect their order, instead of having the goods delivered to them. */ @JsonProperty(JSON_PROPERTY_CLICK_AND_COLLECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -149,11 +149,9 @@ public String getClickAndCollect() { } /** - * Set this to **true** if the shopper would like to pick up and collect their order, instead of - * having the goods delivered to them. + * Set this to **true** if the shopper would like to pick up and collect their order, instead of having the goods delivered to them. * - * @param clickAndCollect Set this to **true** if the shopper would like to pick up and collect - * their order, instead of having the goods delivered to them. + * @param clickAndCollect Set this to **true** if the shopper would like to pick up and collect their order, instead of having the goods delivered to them. */ @JsonProperty(JSON_PROPERTY_CLICK_AND_COLLECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -162,13 +160,13 @@ public void setClickAndCollect(String clickAndCollect) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code ZipDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public ZipDetails recurringDetailReference(String recurringDetailReference) { @@ -177,11 +175,8 @@ public ZipDetails recurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -192,12 +187,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -207,11 +202,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code ZipDetails} instance, allowing for method chaining */ public ZipDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -220,11 +213,8 @@ public ZipDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -233,11 +223,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -258,7 +246,6 @@ public ZipDetails type(TypeEnum type) { /** * **zip** - * * @return type **zip** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -278,7 +265,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this ZipDetails object is equal to o. */ + /** + * Return true if this ZipDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -288,17 +277,16 @@ public boolean equals(Object o) { return false; } ZipDetails zipDetails = (ZipDetails) o; - return Objects.equals(this.checkoutAttemptId, zipDetails.checkoutAttemptId) - && Objects.equals(this.clickAndCollect, zipDetails.clickAndCollect) - && Objects.equals(this.recurringDetailReference, zipDetails.recurringDetailReference) - && Objects.equals(this.storedPaymentMethodId, zipDetails.storedPaymentMethodId) - && Objects.equals(this.type, zipDetails.type); + return Objects.equals(this.checkoutAttemptId, zipDetails.checkoutAttemptId) && + Objects.equals(this.clickAndCollect, zipDetails.clickAndCollect) && + Objects.equals(this.recurringDetailReference, zipDetails.recurringDetailReference) && + Objects.equals(this.storedPaymentMethodId, zipDetails.storedPaymentMethodId) && + Objects.equals(this.type, zipDetails.type); } @Override public int hashCode() { - return Objects.hash( - checkoutAttemptId, clickAndCollect, recurringDetailReference, storedPaymentMethodId, type); + return Objects.hash(checkoutAttemptId, clickAndCollect, recurringDetailReference, storedPaymentMethodId, type); } @Override @@ -307,19 +295,16 @@ public String toString() { sb.append("class ZipDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" clickAndCollect: ").append(toIndentedString(clickAndCollect)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -328,7 +313,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ZipDetails given an JSON string * * @param jsonString JSON string @@ -338,12 +323,11 @@ private String toIndentedString(Object o) { public static ZipDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ZipDetails.class); } - - /** - * Convert an instance of ZipDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ZipDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/configurationwebhooks/AbstractOpenApiSchema.java index 3cfc72ea4..28470cad6 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/AbstractOpenApiSchema.java @@ -2,141 +2,145 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; -import com.fasterxml.jackson.annotation.JsonValue; -import jakarta.ws.rs.core.GenericType; -import java.util.Map; import java.util.Objects; +import java.util.Map; +import jakarta.ws.rs.core.GenericType; -/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec + */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() { - return instance; - } - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) { - this.instance = instance; - } - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf - * schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); - } else { - return object.getActualInstance(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() {return instance;} + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) {this.instance = instance;} + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); + } else { + return object.getActualInstance(); + } + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) && + Objects.equals(this.isNullable, a.isNullable) && + Objects.equals(this.schemaType, a.schemaType); } - return o.toString().replace("\n", "\n "); - } - public boolean equals(Object o) { - if (this == o) { - return true; + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); } - if (o == null || getClass() != o.getClass()) { - return false; + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) - && Objects.equals(this.isNullable, a.isNullable) - && Objects.equals(this.schemaType, a.schemaType); - } - - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); - } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); - } -} + + + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/configurationwebhooks/AccountHolder.java b/src/main/java/com/adyen/model/configurationwebhooks/AccountHolder.java index 7b41ee8d7..e2a42e844 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/AccountHolder.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/AccountHolder.java @@ -2,30 +2,38 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.configurationwebhooks.AccountHolderCapability; +import com.adyen.model.configurationwebhooks.ContactDetails; +import com.adyen.model.configurationwebhooks.VerificationDeadline; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** AccountHolder */ +/** + * AccountHolder + */ @JsonPropertyOrder({ AccountHolder.JSON_PROPERTY_BALANCE_PLATFORM, AccountHolder.JSON_PROPERTY_CAPABILITIES, @@ -41,6 +49,7 @@ AccountHolder.JSON_PROPERTY_TIME_ZONE, AccountHolder.JSON_PROPERTY_VERIFICATION_DEADLINES }) + public class AccountHolder { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; @@ -49,7 +58,7 @@ public class AccountHolder { private Map capabilities; public static final String JSON_PROPERTY_CONTACT_DETAILS = "contactDetails"; - @Deprecated // deprecated + @Deprecated // deprecated private ContactDetails contactDetails; public static final String JSON_PROPERTY_DESCRIPTION = "description"; @@ -64,8 +73,7 @@ public class AccountHolder { public static final String JSON_PROPERTY_METADATA = "metadata"; private Map metadata; - public static final String JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE = - "migratedAccountHolderCode"; + public static final String JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE = "migratedAccountHolderCode"; private String migratedAccountHolderCode; public static final String JSON_PROPERTY_PRIMARY_BALANCE_ACCOUNT = "primaryBalanceAccount"; @@ -75,14 +83,10 @@ public class AccountHolder { private String reference; /** - * The status of the account holder. Possible values: * **active**: The account holder is active - * and allowed to use its capabilities. This is the initial status for account holders and balance - * accounts. You can change this status to **suspended** or **closed**. * **suspended**: The - * account holder is temporarily disabled and payouts are blocked. You can change this status to - * **active** or **closed**. * **closed**: The account holder and all of its capabilities are - * permanently disabled. This is a final status and cannot be changed. + * The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. */ public enum StatusEnum { + ACTIVE(String.valueOf("active")), CLOSED(String.valueOf("closed")), @@ -94,7 +98,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -115,11 +119,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -133,18 +133,13 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_VERIFICATION_DEADLINES = "verificationDeadlines"; private List verificationDeadlines; - public AccountHolder() {} + public AccountHolder() { + } /** - * The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the account holder belongs. Required in the request if your API credentials can be - * used for multiple balance platforms. + * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. * - * @param balancePlatform The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the account holder belongs. Required in the request if your API credentials can be - * used for multiple balance platforms. + * @param balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. * @return the current {@code AccountHolder} instance, allowing for method chaining */ public AccountHolder balancePlatform(String balancePlatform) { @@ -153,15 +148,8 @@ public AccountHolder balancePlatform(String balancePlatform) { } /** - * The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the account holder belongs. Required in the request if your API credentials can be - * used for multiple balance platforms. - * - * @return balancePlatform The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the account holder belongs. Required in the request if your API credentials can be - * used for multiple balance platforms. + * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. + * @return balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -170,15 +158,9 @@ public String getBalancePlatform() { } /** - * The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the account holder belongs. Required in the request if your API credentials can be - * used for multiple balance platforms. + * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. * - * @param balancePlatform The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) - * to which the account holder belongs. Required in the request if your API credentials can be - * used for multiple balance platforms. + * @param balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,14 +169,9 @@ public void setBalancePlatform(String balancePlatform) { } /** - * Contains key-value pairs that specify the actions that an account holder can do in your - * platform. The key is a capability required for your integration. For example, **issueCard** for - * Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that an account holder - * can do in your platform. The key is a capability required for your integration. For - * example, **issueCard** for Issuing. The value is an object containing the settings for the - * capability. + * @param capabilities Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. * @return the current {@code AccountHolder} instance, allowing for method chaining */ public AccountHolder capabilities(Map capabilities) { @@ -211,14 +188,8 @@ public AccountHolder putCapabilitiesItem(String key, AccountHolderCapability cap } /** - * Contains key-value pairs that specify the actions that an account holder can do in your - * platform. The key is a capability required for your integration. For example, **issueCard** for - * Issuing. The value is an object containing the settings for the capability. - * - * @return capabilities Contains key-value pairs that specify the actions that an account holder - * can do in your platform. The key is a capability required for your integration. For - * example, **issueCard** for Issuing. The value is an object containing the settings for the - * capability. + * Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * @return capabilities Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -227,14 +198,9 @@ public Map getCapabilities() { } /** - * Contains key-value pairs that specify the actions that an account holder can do in your - * platform. The key is a capability required for your integration. For example, **issueCard** for - * Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that an account holder - * can do in your platform. The key is a capability required for your integration. For - * example, **issueCard** for Issuing. The value is an object containing the settings for the - * capability. + * @param capabilities Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -245,11 +211,12 @@ public void setCapabilities(Map capabilities) { /** * contactDetails * - * @param contactDetails + * @param contactDetails * @return the current {@code AccountHolder} instance, allowing for method chaining - * @deprecated + * + * @deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated public AccountHolder contactDetails(ContactDetails contactDetails) { this.contactDetails = contactDetails; return this; @@ -257,11 +224,10 @@ public AccountHolder contactDetails(ContactDetails contactDetails) { /** * Get contactDetails - * - * @return contactDetails - * @deprecated // deprecated + * @return contactDetails + * @deprecated // deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated @JsonProperty(JSON_PROPERTY_CONTACT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ContactDetails getContactDetails() { @@ -271,10 +237,11 @@ public ContactDetails getContactDetails() { /** * contactDetails * - * @param contactDetails - * @deprecated + * @param contactDetails + * + * @deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated @JsonProperty(JSON_PROPERTY_CONTACT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setContactDetails(ContactDetails contactDetails) { @@ -294,7 +261,6 @@ public AccountHolder description(String description) { /** * Your description for the account holder. - * * @return description Your description for the account holder. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -327,7 +293,6 @@ public AccountHolder id(String id) { /** * The unique identifier of the account holder. - * * @return id The unique identifier of the account holder. */ @JsonProperty(JSON_PROPERTY_ID) @@ -348,15 +313,9 @@ public void setId(String id) { } /** - * The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) - * associated with the account holder. Adyen performs a verification process against the legal - * entity of the account holder. + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. * - * @param legalEntityId The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) - * associated with the account holder. Adyen performs a verification process against the legal - * entity of the account holder. + * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. * @return the current {@code AccountHolder} instance, allowing for method chaining */ public AccountHolder legalEntityId(String legalEntityId) { @@ -365,15 +324,8 @@ public AccountHolder legalEntityId(String legalEntityId) { } /** - * The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) - * associated with the account holder. Adyen performs a verification process against the legal - * entity of the account holder. - * - * @return legalEntityId The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) - * associated with the account holder. Adyen performs a verification process against the legal - * entity of the account holder. + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. + * @return legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -382,15 +334,9 @@ public String getLegalEntityId() { } /** - * The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) - * associated with the account holder. Adyen performs a verification process against the legal - * entity of the account holder. + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. * - * @param legalEntityId The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) - * associated with the account holder. Adyen performs a verification process against the legal - * entity of the account holder. + * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -399,14 +345,9 @@ public void setLegalEntityId(String legalEntityId) { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be - * used for storing miscellaneous data as desired. > Note that during an update of metadata, - * the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific - * names and may be used for storing miscellaneous data as desired. > Note that during an - * update of metadata, the omission of existing key-value pairs will result in the deletion of - * those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. * @return the current {@code AccountHolder} instance, allowing for method chaining */ public AccountHolder metadata(Map metadata) { @@ -423,14 +364,8 @@ public AccountHolder putMetadataItem(String key, String metadataItem) { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be - * used for storing miscellaneous data as desired. > Note that during an update of metadata, - * the omission of existing key-value pairs will result in the deletion of those key-value pairs. - * - * @return metadata A set of key and value pairs for general use. The keys do not have specific - * names and may be used for storing miscellaneous data as desired. > Note that during an - * update of metadata, the omission of existing key-value pairs will result in the deletion of - * those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * @return metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -439,14 +374,9 @@ public Map getMetadata() { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be - * used for storing miscellaneous data as desired. > Note that during an update of metadata, - * the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific - * names and may be used for storing miscellaneous data as desired. > Note that during an - * update of metadata, the omission of existing key-value pairs will result in the deletion of - * those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -457,8 +387,7 @@ public void setMetadata(Map metadata) { /** * The unique identifier of the migrated account holder in the classic integration. * - * @param migratedAccountHolderCode The unique identifier of the migrated account holder in the - * classic integration. + * @param migratedAccountHolderCode The unique identifier of the migrated account holder in the classic integration. * @return the current {@code AccountHolder} instance, allowing for method chaining */ public AccountHolder migratedAccountHolderCode(String migratedAccountHolderCode) { @@ -468,9 +397,7 @@ public AccountHolder migratedAccountHolderCode(String migratedAccountHolderCode) /** * The unique identifier of the migrated account holder in the classic integration. - * - * @return migratedAccountHolderCode The unique identifier of the migrated account holder in the - * classic integration. + * @return migratedAccountHolderCode The unique identifier of the migrated account holder in the classic integration. */ @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -481,8 +408,7 @@ public String getMigratedAccountHolderCode() { /** * The unique identifier of the migrated account holder in the classic integration. * - * @param migratedAccountHolderCode The unique identifier of the migrated account holder in the - * classic integration. + * @param migratedAccountHolderCode The unique identifier of the migrated account holder in the classic integration. */ @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -491,13 +417,9 @@ public void setMigratedAccountHolderCode(String migratedAccountHolderCode) { } /** - * The ID of the account holder's primary balance account. By default, this is set to the - * first balance account that you create for the account holder. To assign a different balance - * account, send a PATCH request. + * The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. * - * @param primaryBalanceAccount The ID of the account holder's primary balance account. By - * default, this is set to the first balance account that you create for the account holder. - * To assign a different balance account, send a PATCH request. + * @param primaryBalanceAccount The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. * @return the current {@code AccountHolder} instance, allowing for method chaining */ public AccountHolder primaryBalanceAccount(String primaryBalanceAccount) { @@ -506,13 +428,8 @@ public AccountHolder primaryBalanceAccount(String primaryBalanceAccount) { } /** - * The ID of the account holder's primary balance account. By default, this is set to the - * first balance account that you create for the account holder. To assign a different balance - * account, send a PATCH request. - * - * @return primaryBalanceAccount The ID of the account holder's primary balance account. By - * default, this is set to the first balance account that you create for the account holder. - * To assign a different balance account, send a PATCH request. + * The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. + * @return primaryBalanceAccount The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. */ @JsonProperty(JSON_PROPERTY_PRIMARY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -521,13 +438,9 @@ public String getPrimaryBalanceAccount() { } /** - * The ID of the account holder's primary balance account. By default, this is set to the - * first balance account that you create for the account holder. To assign a different balance - * account, send a PATCH request. + * The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. * - * @param primaryBalanceAccount The ID of the account holder's primary balance account. By - * default, this is set to the first balance account that you create for the account holder. - * To assign a different balance account, send a PATCH request. + * @param primaryBalanceAccount The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. */ @JsonProperty(JSON_PROPERTY_PRIMARY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -548,7 +461,6 @@ public AccountHolder reference(String reference) { /** * Your reference for the account holder. - * * @return reference Your reference for the account holder. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -569,20 +481,9 @@ public void setReference(String reference) { } /** - * The status of the account holder. Possible values: * **active**: The account holder is active - * and allowed to use its capabilities. This is the initial status for account holders and balance - * accounts. You can change this status to **suspended** or **closed**. * **suspended**: The - * account holder is temporarily disabled and payouts are blocked. You can change this status to - * **active** or **closed**. * **closed**: The account holder and all of its capabilities are - * permanently disabled. This is a final status and cannot be changed. + * The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. * - * @param status The status of the account holder. Possible values: * **active**: The account - * holder is active and allowed to use its capabilities. This is the initial status for - * account holders and balance accounts. You can change this status to **suspended** or - * **closed**. * **suspended**: The account holder is temporarily disabled and payouts are - * blocked. You can change this status to **active** or **closed**. * **closed**: The account - * holder and all of its capabilities are permanently disabled. This is a final status and - * cannot be changed. + * @param status The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. * @return the current {@code AccountHolder} instance, allowing for method chaining */ public AccountHolder status(StatusEnum status) { @@ -591,20 +492,8 @@ public AccountHolder status(StatusEnum status) { } /** - * The status of the account holder. Possible values: * **active**: The account holder is active - * and allowed to use its capabilities. This is the initial status for account holders and balance - * accounts. You can change this status to **suspended** or **closed**. * **suspended**: The - * account holder is temporarily disabled and payouts are blocked. You can change this status to - * **active** or **closed**. * **closed**: The account holder and all of its capabilities are - * permanently disabled. This is a final status and cannot be changed. - * - * @return status The status of the account holder. Possible values: * **active**: The account - * holder is active and allowed to use its capabilities. This is the initial status for - * account holders and balance accounts. You can change this status to **suspended** or - * **closed**. * **suspended**: The account holder is temporarily disabled and payouts are - * blocked. You can change this status to **active** or **closed**. * **closed**: The account - * holder and all of its capabilities are permanently disabled. This is a final status and - * cannot be changed. + * The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. + * @return status The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -613,20 +502,9 @@ public StatusEnum getStatus() { } /** - * The status of the account holder. Possible values: * **active**: The account holder is active - * and allowed to use its capabilities. This is the initial status for account holders and balance - * accounts. You can change this status to **suspended** or **closed**. * **suspended**: The - * account holder is temporarily disabled and payouts are blocked. You can change this status to - * **active** or **closed**. * **closed**: The account holder and all of its capabilities are - * permanently disabled. This is a final status and cannot be changed. + * The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. * - * @param status The status of the account holder. Possible values: * **active**: The account - * holder is active and allowed to use its capabilities. This is the initial status for - * account holders and balance accounts. You can change this status to **suspended** or - * **closed**. * **suspended**: The account holder is temporarily disabled and payouts are - * blocked. You can change this status to **active** or **closed**. * **closed**: The account - * holder and all of its capabilities are permanently disabled. This is a final status and - * cannot be changed. + * @param status The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -635,14 +513,9 @@ public void setStatus(StatusEnum status) { } /** - * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time - * zone of the balance platform if no time zone is set. For possible values, see the [list of time - * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. - * Defaults to the time zone of the balance platform if no time zone is set. For possible - * values, see the [list of time zone - * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * @return the current {@code AccountHolder} instance, allowing for method chaining */ public AccountHolder timeZone(String timeZone) { @@ -651,14 +524,8 @@ public AccountHolder timeZone(String timeZone) { } /** - * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time - * zone of the balance platform if no time zone is set. For possible values, see the [list of time - * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). - * - * @return timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. - * Defaults to the time zone of the balance platform if no time zone is set. For possible - * values, see the [list of time zone - * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @return timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -667,14 +534,9 @@ public String getTimeZone() { } /** - * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time - * zone of the balance platform if no time zone is set. For possible values, see the [list of time - * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. - * Defaults to the time zone of the balance platform if no time zone is set. For possible - * values, see the [list of time zone - * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -683,11 +545,9 @@ public void setTimeZone(String timeZone) { } /** - * List of verification deadlines and the capabilities that will be disallowed if verification - * errors are not resolved. + * List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. * - * @param verificationDeadlines List of verification deadlines and the capabilities that will be - * disallowed if verification errors are not resolved. + * @param verificationDeadlines List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. * @return the current {@code AccountHolder} instance, allowing for method chaining */ public AccountHolder verificationDeadlines(List verificationDeadlines) { @@ -695,8 +555,7 @@ public AccountHolder verificationDeadlines(List verificati return this; } - public AccountHolder addVerificationDeadlinesItem( - VerificationDeadline verificationDeadlinesItem) { + public AccountHolder addVerificationDeadlinesItem(VerificationDeadline verificationDeadlinesItem) { if (this.verificationDeadlines == null) { this.verificationDeadlines = new ArrayList<>(); } @@ -705,11 +564,8 @@ public AccountHolder addVerificationDeadlinesItem( } /** - * List of verification deadlines and the capabilities that will be disallowed if verification - * errors are not resolved. - * - * @return verificationDeadlines List of verification deadlines and the capabilities that will be - * disallowed if verification errors are not resolved. + * List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. + * @return verificationDeadlines List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_DEADLINES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -718,11 +574,9 @@ public List getVerificationDeadlines() { } /** - * List of verification deadlines and the capabilities that will be disallowed if verification - * errors are not resolved. + * List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. * - * @param verificationDeadlines List of verification deadlines and the capabilities that will be - * disallowed if verification errors are not resolved. + * @param verificationDeadlines List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_DEADLINES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -730,7 +584,9 @@ public void setVerificationDeadlines(List verificationDead this.verificationDeadlines = verificationDeadlines; } - /** Return true if this AccountHolder object is equal to o. */ + /** + * Return true if this AccountHolder object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -740,37 +596,24 @@ public boolean equals(Object o) { return false; } AccountHolder accountHolder = (AccountHolder) o; - return Objects.equals(this.balancePlatform, accountHolder.balancePlatform) - && Objects.equals(this.capabilities, accountHolder.capabilities) - && Objects.equals(this.contactDetails, accountHolder.contactDetails) - && Objects.equals(this.description, accountHolder.description) - && Objects.equals(this.id, accountHolder.id) - && Objects.equals(this.legalEntityId, accountHolder.legalEntityId) - && Objects.equals(this.metadata, accountHolder.metadata) - && Objects.equals(this.migratedAccountHolderCode, accountHolder.migratedAccountHolderCode) - && Objects.equals(this.primaryBalanceAccount, accountHolder.primaryBalanceAccount) - && Objects.equals(this.reference, accountHolder.reference) - && Objects.equals(this.status, accountHolder.status) - && Objects.equals(this.timeZone, accountHolder.timeZone) - && Objects.equals(this.verificationDeadlines, accountHolder.verificationDeadlines); + return Objects.equals(this.balancePlatform, accountHolder.balancePlatform) && + Objects.equals(this.capabilities, accountHolder.capabilities) && + Objects.equals(this.contactDetails, accountHolder.contactDetails) && + Objects.equals(this.description, accountHolder.description) && + Objects.equals(this.id, accountHolder.id) && + Objects.equals(this.legalEntityId, accountHolder.legalEntityId) && + Objects.equals(this.metadata, accountHolder.metadata) && + Objects.equals(this.migratedAccountHolderCode, accountHolder.migratedAccountHolderCode) && + Objects.equals(this.primaryBalanceAccount, accountHolder.primaryBalanceAccount) && + Objects.equals(this.reference, accountHolder.reference) && + Objects.equals(this.status, accountHolder.status) && + Objects.equals(this.timeZone, accountHolder.timeZone) && + Objects.equals(this.verificationDeadlines, accountHolder.verificationDeadlines); } @Override public int hashCode() { - return Objects.hash( - balancePlatform, - capabilities, - contactDetails, - description, - id, - legalEntityId, - metadata, - migratedAccountHolderCode, - primaryBalanceAccount, - reference, - status, - timeZone, - verificationDeadlines); + return Objects.hash(balancePlatform, capabilities, contactDetails, description, id, legalEntityId, metadata, migratedAccountHolderCode, primaryBalanceAccount, reference, status, timeZone, verificationDeadlines); } @Override @@ -784,24 +627,19 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" legalEntityId: ").append(toIndentedString(legalEntityId)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" migratedAccountHolderCode: ") - .append(toIndentedString(migratedAccountHolderCode)) - .append("\n"); - sb.append(" primaryBalanceAccount: ") - .append(toIndentedString(primaryBalanceAccount)) - .append("\n"); + sb.append(" migratedAccountHolderCode: ").append(toIndentedString(migratedAccountHolderCode)).append("\n"); + sb.append(" primaryBalanceAccount: ").append(toIndentedString(primaryBalanceAccount)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); - sb.append(" verificationDeadlines: ") - .append(toIndentedString(verificationDeadlines)) - .append("\n"); + sb.append(" verificationDeadlines: ").append(toIndentedString(verificationDeadlines)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -810,7 +648,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AccountHolder given an JSON string * * @param jsonString JSON string @@ -820,12 +658,11 @@ private String toIndentedString(Object o) { public static AccountHolder fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountHolder.class); } - - /** - * Convert an instance of AccountHolder to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AccountHolder to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderCapability.java b/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderCapability.java index f4919a926..8a1fe200d 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderCapability.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderCapability.java @@ -2,28 +2,36 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.configurationwebhooks.AccountSupportingEntityCapability; +import com.adyen.model.configurationwebhooks.CapabilityProblem; +import com.adyen.model.configurationwebhooks.CapabilitySettings; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** AccountHolderCapability */ + +/** + * AccountHolderCapability + */ @JsonPropertyOrder({ AccountHolderCapability.JSON_PROPERTY_ALLOWED, AccountHolderCapability.JSON_PROPERTY_ALLOWED_LEVEL, @@ -36,15 +44,16 @@ AccountHolderCapability.JSON_PROPERTY_TRANSFER_INSTRUMENTS, AccountHolderCapability.JSON_PROPERTY_VERIFICATION_STATUS }) + public class AccountHolderCapability { public static final String JSON_PROPERTY_ALLOWED = "allowed"; private Boolean allowed; /** - * The capability level that is allowed for the account holder. Possible values: - * **notApplicable**, **low**, **medium**, **high**. + * The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. */ public enum AllowedLevelEnum { + HIGH(String.valueOf("high")), LOW(String.valueOf("low")), @@ -58,7 +67,7 @@ public enum AllowedLevelEnum { private String value; AllowedLevelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -79,11 +88,7 @@ public static AllowedLevelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AllowedLevelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AllowedLevelEnum.values())); + LOG.warning("AllowedLevelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AllowedLevelEnum.values())); return null; } } @@ -104,12 +109,10 @@ public static AllowedLevelEnum fromValue(String value) { private Boolean requested; /** - * The requested level of the capability. Some capabilities, such as those used in [card - * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different - * levels. Levels increase the capability, but also require additional checks and increased - * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. */ public enum RequestedLevelEnum { + HIGH(String.valueOf("high")), LOW(String.valueOf("low")), @@ -123,7 +126,7 @@ public enum RequestedLevelEnum { private String value; RequestedLevelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -144,11 +147,7 @@ public static RequestedLevelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "RequestedLevelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(RequestedLevelEnum.values())); + LOG.warning("RequestedLevelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RequestedLevelEnum.values())); return null; } } @@ -163,13 +162,10 @@ public static RequestedLevelEnum fromValue(String value) { private List transferInstruments; /** - * The status of the verification checks for the capability. Possible values: * **pending**: Adyen - * is running the verification. * **invalid**: The verification failed. Check if the - * `errors` array contains more information. * **valid**: The verification has been - * successfully completed. * **rejected**: Adyen has verified the information, but found reasons - * to not allow the capability. + * The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. */ public enum VerificationStatusEnum { + INVALID(String.valueOf("invalid")), PENDING(String.valueOf("pending")), @@ -183,7 +179,7 @@ public enum VerificationStatusEnum { private String value; VerificationStatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -204,11 +200,7 @@ public static VerificationStatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "VerificationStatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(VerificationStatusEnum.values())); + LOG.warning("VerificationStatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(VerificationStatusEnum.values())); return null; } } @@ -216,14 +208,13 @@ public static VerificationStatusEnum fromValue(String value) { public static final String JSON_PROPERTY_VERIFICATION_STATUS = "verificationStatus"; private VerificationStatusEnum verificationStatus; - public AccountHolderCapability() {} + public AccountHolderCapability() { + } /** - * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is - * successful and the account holder is permitted to use the capability. + * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. * - * @param allowed Indicates whether the capability is allowed. Adyen sets this to **true** if the - * verification is successful and the account holder is permitted to use the capability. + * @param allowed Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. * @return the current {@code AccountHolderCapability} instance, allowing for method chaining */ public AccountHolderCapability allowed(Boolean allowed) { @@ -232,11 +223,8 @@ public AccountHolderCapability allowed(Boolean allowed) { } /** - * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is - * successful and the account holder is permitted to use the capability. - * - * @return allowed Indicates whether the capability is allowed. Adyen sets this to **true** if the - * verification is successful and the account holder is permitted to use the capability. + * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. + * @return allowed Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. */ @JsonProperty(JSON_PROPERTY_ALLOWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -245,11 +233,9 @@ public Boolean getAllowed() { } /** - * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is - * successful and the account holder is permitted to use the capability. + * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. * - * @param allowed Indicates whether the capability is allowed. Adyen sets this to **true** if the - * verification is successful and the account holder is permitted to use the capability. + * @param allowed Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. */ @JsonProperty(JSON_PROPERTY_ALLOWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -258,11 +244,9 @@ public void setAllowed(Boolean allowed) { } /** - * The capability level that is allowed for the account holder. Possible values: - * **notApplicable**, **low**, **medium**, **high**. + * The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. * - * @param allowedLevel The capability level that is allowed for the account holder. Possible - * values: **notApplicable**, **low**, **medium**, **high**. + * @param allowedLevel The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. * @return the current {@code AccountHolderCapability} instance, allowing for method chaining */ public AccountHolderCapability allowedLevel(AllowedLevelEnum allowedLevel) { @@ -271,11 +255,8 @@ public AccountHolderCapability allowedLevel(AllowedLevelEnum allowedLevel) { } /** - * The capability level that is allowed for the account holder. Possible values: - * **notApplicable**, **low**, **medium**, **high**. - * - * @return allowedLevel The capability level that is allowed for the account holder. Possible - * values: **notApplicable**, **low**, **medium**, **high**. + * The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. + * @return allowedLevel The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. */ @JsonProperty(JSON_PROPERTY_ALLOWED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,11 +265,9 @@ public AllowedLevelEnum getAllowedLevel() { } /** - * The capability level that is allowed for the account holder. Possible values: - * **notApplicable**, **low**, **medium**, **high**. + * The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. * - * @param allowedLevel The capability level that is allowed for the account holder. Possible - * values: **notApplicable**, **low**, **medium**, **high**. + * @param allowedLevel The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. */ @JsonProperty(JSON_PROPERTY_ALLOWED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -299,7 +278,7 @@ public void setAllowedLevel(AllowedLevelEnum allowedLevel) { /** * allowedSettings * - * @param allowedSettings + * @param allowedSettings * @return the current {@code AccountHolderCapability} instance, allowing for method chaining */ public AccountHolderCapability allowedSettings(CapabilitySettings allowedSettings) { @@ -309,8 +288,7 @@ public AccountHolderCapability allowedSettings(CapabilitySettings allowedSetting /** * Get allowedSettings - * - * @return allowedSettings + * @return allowedSettings */ @JsonProperty(JSON_PROPERTY_ALLOWED_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -321,7 +299,7 @@ public CapabilitySettings getAllowedSettings() { /** * allowedSettings * - * @param allowedSettings + * @param allowedSettings */ @JsonProperty(JSON_PROPERTY_ALLOWED_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -330,11 +308,9 @@ public void setAllowedSettings(CapabilitySettings allowedSettings) { } /** - * Indicates whether the capability is enabled. If **false**, the capability is temporarily - * disabled for the account holder. + * Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. * - * @param enabled Indicates whether the capability is enabled. If **false**, the capability is - * temporarily disabled for the account holder. + * @param enabled Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. * @return the current {@code AccountHolderCapability} instance, allowing for method chaining */ public AccountHolderCapability enabled(Boolean enabled) { @@ -343,11 +319,8 @@ public AccountHolderCapability enabled(Boolean enabled) { } /** - * Indicates whether the capability is enabled. If **false**, the capability is temporarily - * disabled for the account holder. - * - * @return enabled Indicates whether the capability is enabled. If **false**, the capability is - * temporarily disabled for the account holder. + * Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. + * @return enabled Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -356,11 +329,9 @@ public Boolean getEnabled() { } /** - * Indicates whether the capability is enabled. If **false**, the capability is temporarily - * disabled for the account holder. + * Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. * - * @param enabled Indicates whether the capability is enabled. If **false**, the capability is - * temporarily disabled for the account holder. + * @param enabled Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -389,9 +360,7 @@ public AccountHolderCapability addProblemsItem(CapabilityProblem problemsItem) { /** * Contains verification errors and the actions that you can take to resolve them. - * - * @return problems Contains verification errors and the actions that you can take to resolve - * them. + * @return problems Contains verification errors and the actions that you can take to resolve them. */ @JsonProperty(JSON_PROPERTY_PROBLEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -411,11 +380,9 @@ public void setProblems(List problems) { } /** - * Indicates whether the capability is requested. To check whether the account holder is permitted - * to use the capability, refer to the `allowed` field. + * Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. * - * @param requested Indicates whether the capability is requested. To check whether the account - * holder is permitted to use the capability, refer to the `allowed` field. + * @param requested Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. * @return the current {@code AccountHolderCapability} instance, allowing for method chaining */ public AccountHolderCapability requested(Boolean requested) { @@ -424,11 +391,8 @@ public AccountHolderCapability requested(Boolean requested) { } /** - * Indicates whether the capability is requested. To check whether the account holder is permitted - * to use the capability, refer to the `allowed` field. - * - * @return requested Indicates whether the capability is requested. To check whether the account - * holder is permitted to use the capability, refer to the `allowed` field. + * Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. + * @return requested Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. */ @JsonProperty(JSON_PROPERTY_REQUESTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -437,11 +401,9 @@ public Boolean getRequested() { } /** - * Indicates whether the capability is requested. To check whether the account holder is permitted - * to use the capability, refer to the `allowed` field. + * Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. * - * @param requested Indicates whether the capability is requested. To check whether the account - * holder is permitted to use the capability, refer to the `allowed` field. + * @param requested Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. */ @JsonProperty(JSON_PROPERTY_REQUESTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -450,16 +412,9 @@ public void setRequested(Boolean requested) { } /** - * The requested level of the capability. Some capabilities, such as those used in [card - * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different - * levels. Levels increase the capability, but also require additional checks and increased - * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. * - * @param requestedLevel The requested level of the capability. Some capabilities, such as those - * used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), - * have different levels. Levels increase the capability, but also require additional checks - * and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, - * **high**. + * @param requestedLevel The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. * @return the current {@code AccountHolderCapability} instance, allowing for method chaining */ public AccountHolderCapability requestedLevel(RequestedLevelEnum requestedLevel) { @@ -468,16 +423,8 @@ public AccountHolderCapability requestedLevel(RequestedLevelEnum requestedLevel) } /** - * The requested level of the capability. Some capabilities, such as those used in [card - * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different - * levels. Levels increase the capability, but also require additional checks and increased - * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. - * - * @return requestedLevel The requested level of the capability. Some capabilities, such as those - * used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), - * have different levels. Levels increase the capability, but also require additional checks - * and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, - * **high**. + * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * @return requestedLevel The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. */ @JsonProperty(JSON_PROPERTY_REQUESTED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -486,16 +433,9 @@ public RequestedLevelEnum getRequestedLevel() { } /** - * The requested level of the capability. Some capabilities, such as those used in [card - * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different - * levels. Levels increase the capability, but also require additional checks and increased - * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. * - * @param requestedLevel The requested level of the capability. Some capabilities, such as those - * used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), - * have different levels. Levels increase the capability, but also require additional checks - * and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, - * **high**. + * @param requestedLevel The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. */ @JsonProperty(JSON_PROPERTY_REQUESTED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -506,7 +446,7 @@ public void setRequestedLevel(RequestedLevelEnum requestedLevel) { /** * requestedSettings * - * @param requestedSettings + * @param requestedSettings * @return the current {@code AccountHolderCapability} instance, allowing for method chaining */ public AccountHolderCapability requestedSettings(CapabilitySettings requestedSettings) { @@ -516,8 +456,7 @@ public AccountHolderCapability requestedSettings(CapabilitySettings requestedSet /** * Get requestedSettings - * - * @return requestedSettings + * @return requestedSettings */ @JsonProperty(JSON_PROPERTY_REQUESTED_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -528,7 +467,7 @@ public CapabilitySettings getRequestedSettings() { /** * requestedSettings * - * @param requestedSettings + * @param requestedSettings */ @JsonProperty(JSON_PROPERTY_REQUESTED_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -537,20 +476,17 @@ public void setRequestedSettings(CapabilitySettings requestedSettings) { } /** - * Contains the status of the transfer instruments associated with this capability. + * Contains the status of the transfer instruments associated with this capability. * - * @param transferInstruments Contains the status of the transfer instruments associated with this - * capability. + * @param transferInstruments Contains the status of the transfer instruments associated with this capability. * @return the current {@code AccountHolderCapability} instance, allowing for method chaining */ - public AccountHolderCapability transferInstruments( - List transferInstruments) { + public AccountHolderCapability transferInstruments(List transferInstruments) { this.transferInstruments = transferInstruments; return this; } - public AccountHolderCapability addTransferInstrumentsItem( - AccountSupportingEntityCapability transferInstrumentsItem) { + public AccountHolderCapability addTransferInstrumentsItem(AccountSupportingEntityCapability transferInstrumentsItem) { if (this.transferInstruments == null) { this.transferInstruments = new ArrayList<>(); } @@ -559,10 +495,8 @@ public AccountHolderCapability addTransferInstrumentsItem( } /** - * Contains the status of the transfer instruments associated with this capability. - * - * @return transferInstruments Contains the status of the transfer instruments associated with - * this capability. + * Contains the status of the transfer instruments associated with this capability. + * @return transferInstruments Contains the status of the transfer instruments associated with this capability. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -571,10 +505,9 @@ public List getTransferInstruments() { } /** - * Contains the status of the transfer instruments associated with this capability. + * Contains the status of the transfer instruments associated with this capability. * - * @param transferInstruments Contains the status of the transfer instruments associated with this - * capability. + * @param transferInstruments Contains the status of the transfer instruments associated with this capability. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -583,17 +516,9 @@ public void setTransferInstruments(List trans } /** - * The status of the verification checks for the capability. Possible values: * **pending**: Adyen - * is running the verification. * **invalid**: The verification failed. Check if the - * `errors` array contains more information. * **valid**: The verification has been - * successfully completed. * **rejected**: Adyen has verified the information, but found reasons - * to not allow the capability. + * The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. * - * @param verificationStatus The status of the verification checks for the capability. Possible - * values: * **pending**: Adyen is running the verification. * **invalid**: The verification - * failed. Check if the `errors` array contains more information. * **valid**: The - * verification has been successfully completed. * **rejected**: Adyen has verified the - * information, but found reasons to not allow the capability. + * @param verificationStatus The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. * @return the current {@code AccountHolderCapability} instance, allowing for method chaining */ public AccountHolderCapability verificationStatus(VerificationStatusEnum verificationStatus) { @@ -602,17 +527,8 @@ public AccountHolderCapability verificationStatus(VerificationStatusEnum verific } /** - * The status of the verification checks for the capability. Possible values: * **pending**: Adyen - * is running the verification. * **invalid**: The verification failed. Check if the - * `errors` array contains more information. * **valid**: The verification has been - * successfully completed. * **rejected**: Adyen has verified the information, but found reasons - * to not allow the capability. - * - * @return verificationStatus The status of the verification checks for the capability. Possible - * values: * **pending**: Adyen is running the verification. * **invalid**: The verification - * failed. Check if the `errors` array contains more information. * **valid**: The - * verification has been successfully completed. * **rejected**: Adyen has verified the - * information, but found reasons to not allow the capability. + * The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. + * @return verificationStatus The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -621,17 +537,9 @@ public VerificationStatusEnum getVerificationStatus() { } /** - * The status of the verification checks for the capability. Possible values: * **pending**: Adyen - * is running the verification. * **invalid**: The verification failed. Check if the - * `errors` array contains more information. * **valid**: The verification has been - * successfully completed. * **rejected**: Adyen has verified the information, but found reasons - * to not allow the capability. + * The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. * - * @param verificationStatus The status of the verification checks for the capability. Possible - * values: * **pending**: Adyen is running the verification. * **invalid**: The verification - * failed. Check if the `errors` array contains more information. * **valid**: The - * verification has been successfully completed. * **rejected**: Adyen has verified the - * information, but found reasons to not allow the capability. + * @param verificationStatus The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -639,7 +547,9 @@ public void setVerificationStatus(VerificationStatusEnum verificationStatus) { this.verificationStatus = verificationStatus; } - /** Return true if this AccountHolderCapability object is equal to o. */ + /** + * Return true if this AccountHolderCapability object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -649,31 +559,21 @@ public boolean equals(Object o) { return false; } AccountHolderCapability accountHolderCapability = (AccountHolderCapability) o; - return Objects.equals(this.allowed, accountHolderCapability.allowed) - && Objects.equals(this.allowedLevel, accountHolderCapability.allowedLevel) - && Objects.equals(this.allowedSettings, accountHolderCapability.allowedSettings) - && Objects.equals(this.enabled, accountHolderCapability.enabled) - && Objects.equals(this.problems, accountHolderCapability.problems) - && Objects.equals(this.requested, accountHolderCapability.requested) - && Objects.equals(this.requestedLevel, accountHolderCapability.requestedLevel) - && Objects.equals(this.requestedSettings, accountHolderCapability.requestedSettings) - && Objects.equals(this.transferInstruments, accountHolderCapability.transferInstruments) - && Objects.equals(this.verificationStatus, accountHolderCapability.verificationStatus); + return Objects.equals(this.allowed, accountHolderCapability.allowed) && + Objects.equals(this.allowedLevel, accountHolderCapability.allowedLevel) && + Objects.equals(this.allowedSettings, accountHolderCapability.allowedSettings) && + Objects.equals(this.enabled, accountHolderCapability.enabled) && + Objects.equals(this.problems, accountHolderCapability.problems) && + Objects.equals(this.requested, accountHolderCapability.requested) && + Objects.equals(this.requestedLevel, accountHolderCapability.requestedLevel) && + Objects.equals(this.requestedSettings, accountHolderCapability.requestedSettings) && + Objects.equals(this.transferInstruments, accountHolderCapability.transferInstruments) && + Objects.equals(this.verificationStatus, accountHolderCapability.verificationStatus); } @Override public int hashCode() { - return Objects.hash( - allowed, - allowedLevel, - allowedSettings, - enabled, - problems, - requested, - requestedLevel, - requestedSettings, - transferInstruments, - verificationStatus); + return Objects.hash(allowed, allowedLevel, allowedSettings, enabled, problems, requested, requestedLevel, requestedSettings, transferInstruments, verificationStatus); } @Override @@ -688,16 +588,15 @@ public String toString() { sb.append(" requested: ").append(toIndentedString(requested)).append("\n"); sb.append(" requestedLevel: ").append(toIndentedString(requestedLevel)).append("\n"); sb.append(" requestedSettings: ").append(toIndentedString(requestedSettings)).append("\n"); - sb.append(" transferInstruments: ") - .append(toIndentedString(transferInstruments)) - .append("\n"); + sb.append(" transferInstruments: ").append(toIndentedString(transferInstruments)).append("\n"); sb.append(" verificationStatus: ").append(toIndentedString(verificationStatus)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -706,23 +605,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AccountHolderCapability given an JSON string * * @param jsonString JSON string * @return An instance of AccountHolderCapability - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AccountHolderCapability + * @throws JsonProcessingException if the JSON string is invalid with respect to AccountHolderCapability */ public static AccountHolderCapability fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountHolderCapability.class); } - - /** - * Convert an instance of AccountHolderCapability to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AccountHolderCapability to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderNotificationData.java b/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderNotificationData.java index d85544171..7a02c8ff8 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderNotificationData.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderNotificationData.java @@ -2,26 +2,37 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.configurationwebhooks.AccountHolder; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AccountHolderNotificationData */ + +/** + * AccountHolderNotificationData + */ @JsonPropertyOrder({ AccountHolderNotificationData.JSON_PROPERTY_ACCOUNT_HOLDER, AccountHolderNotificationData.JSON_PROPERTY_BALANCE_PLATFORM }) + public class AccountHolderNotificationData { public static final String JSON_PROPERTY_ACCOUNT_HOLDER = "accountHolder"; private AccountHolder accountHolder; @@ -29,14 +40,14 @@ public class AccountHolderNotificationData { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; - public AccountHolderNotificationData() {} + public AccountHolderNotificationData() { + } /** * accountHolder * - * @param accountHolder - * @return the current {@code AccountHolderNotificationData} instance, allowing for method - * chaining + * @param accountHolder + * @return the current {@code AccountHolderNotificationData} instance, allowing for method chaining */ public AccountHolderNotificationData accountHolder(AccountHolder accountHolder) { this.accountHolder = accountHolder; @@ -45,8 +56,7 @@ public AccountHolderNotificationData accountHolder(AccountHolder accountHolder) /** * Get accountHolder - * - * @return accountHolder + * @return accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -57,7 +67,7 @@ public AccountHolder getAccountHolder() { /** * accountHolder * - * @param accountHolder + * @param accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -69,8 +79,7 @@ public void setAccountHolder(AccountHolder accountHolder) { * The unique identifier of the balance platform. * * @param balancePlatform The unique identifier of the balance platform. - * @return the current {@code AccountHolderNotificationData} instance, allowing for method - * chaining + * @return the current {@code AccountHolderNotificationData} instance, allowing for method chaining */ public AccountHolderNotificationData balancePlatform(String balancePlatform) { this.balancePlatform = balancePlatform; @@ -79,7 +88,6 @@ public AccountHolderNotificationData balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. - * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -99,7 +107,9 @@ public void setBalancePlatform(String balancePlatform) { this.balancePlatform = balancePlatform; } - /** Return true if this AccountHolderNotificationData object is equal to o. */ + /** + * Return true if this AccountHolderNotificationData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -109,8 +119,8 @@ public boolean equals(Object o) { return false; } AccountHolderNotificationData accountHolderNotificationData = (AccountHolderNotificationData) o; - return Objects.equals(this.accountHolder, accountHolderNotificationData.accountHolder) - && Objects.equals(this.balancePlatform, accountHolderNotificationData.balancePlatform); + return Objects.equals(this.accountHolder, accountHolderNotificationData.accountHolder) && + Objects.equals(this.balancePlatform, accountHolderNotificationData.balancePlatform); } @Override @@ -129,7 +139,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -138,24 +149,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AccountHolderNotificationData given an JSON string * * @param jsonString JSON string * @return An instance of AccountHolderNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AccountHolderNotificationData + * @throws JsonProcessingException if the JSON string is invalid with respect to AccountHolderNotificationData */ - public static AccountHolderNotificationData fromJson(String jsonString) - throws JsonProcessingException { + public static AccountHolderNotificationData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountHolderNotificationData.class); } - - /** - * Convert an instance of AccountHolderNotificationData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AccountHolderNotificationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderNotificationRequest.java b/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderNotificationRequest.java index 437fb8cb1..242476b56 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderNotificationRequest.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderNotificationRequest.java @@ -2,33 +2,40 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.configurationwebhooks.AccountHolderNotificationData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** AccountHolderNotificationRequest */ + +/** + * AccountHolderNotificationRequest + */ @JsonPropertyOrder({ AccountHolderNotificationRequest.JSON_PROPERTY_DATA, AccountHolderNotificationRequest.JSON_PROPERTY_ENVIRONMENT, AccountHolderNotificationRequest.JSON_PROPERTY_TIMESTAMP, AccountHolderNotificationRequest.JSON_PROPERTY_TYPE }) + public class AccountHolderNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private AccountHolderNotificationData data; @@ -39,8 +46,11 @@ public class AccountHolderNotificationRequest { public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; private OffsetDateTime timestamp; - /** Type of webhook. */ + /** + * Type of webhook. + */ public enum TypeEnum { + BALANCEPLATFORM_ACCOUNTHOLDER_UPDATED(String.valueOf("balancePlatform.accountHolder.updated")), BALANCEPLATFORM_ACCOUNTHOLDER_CREATED(String.valueOf("balancePlatform.accountHolder.created")); @@ -50,7 +60,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -71,11 +81,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -83,14 +89,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AccountHolderNotificationRequest() {} + public AccountHolderNotificationRequest() { + } /** * data * - * @param data - * @return the current {@code AccountHolderNotificationRequest} instance, allowing for method - * chaining + * @param data + * @return the current {@code AccountHolderNotificationRequest} instance, allowing for method chaining */ public AccountHolderNotificationRequest data(AccountHolderNotificationData data) { this.data = data; @@ -99,8 +105,7 @@ public AccountHolderNotificationRequest data(AccountHolderNotificationData data) /** * Get data - * - * @return data + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,7 +116,7 @@ public AccountHolderNotificationData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -120,12 +125,10 @@ public void setData(AccountHolderNotificationData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. - * @return the current {@code AccountHolderNotificationRequest} instance, allowing for method - * chaining + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @return the current {@code AccountHolderNotificationRequest} instance, allowing for method chaining */ public AccountHolderNotificationRequest environment(String environment) { this.environment = environment; @@ -133,10 +136,8 @@ public AccountHolderNotificationRequest environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * - * @return environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,10 +146,9 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,8 +160,7 @@ public void setEnvironment(String environment) { * When the event was queued. * * @param timestamp When the event was queued. - * @return the current {@code AccountHolderNotificationRequest} instance, allowing for method - * chaining + * @return the current {@code AccountHolderNotificationRequest} instance, allowing for method chaining */ public AccountHolderNotificationRequest timestamp(OffsetDateTime timestamp) { this.timestamp = timestamp; @@ -170,7 +169,6 @@ public AccountHolderNotificationRequest timestamp(OffsetDateTime timestamp) { /** * When the event was queued. - * * @return timestamp When the event was queued. */ @JsonProperty(JSON_PROPERTY_TIMESTAMP) @@ -194,8 +192,7 @@ public void setTimestamp(OffsetDateTime timestamp) { * Type of webhook. * * @param type Type of webhook. - * @return the current {@code AccountHolderNotificationRequest} instance, allowing for method - * chaining + * @return the current {@code AccountHolderNotificationRequest} instance, allowing for method chaining */ public AccountHolderNotificationRequest type(TypeEnum type) { this.type = type; @@ -204,7 +201,6 @@ public AccountHolderNotificationRequest type(TypeEnum type) { /** * Type of webhook. - * * @return type Type of webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -224,7 +220,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this AccountHolderNotificationRequest object is equal to o. */ + /** + * Return true if this AccountHolderNotificationRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -233,12 +231,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AccountHolderNotificationRequest accountHolderNotificationRequest = - (AccountHolderNotificationRequest) o; - return Objects.equals(this.data, accountHolderNotificationRequest.data) - && Objects.equals(this.environment, accountHolderNotificationRequest.environment) - && Objects.equals(this.timestamp, accountHolderNotificationRequest.timestamp) - && Objects.equals(this.type, accountHolderNotificationRequest.type); + AccountHolderNotificationRequest accountHolderNotificationRequest = (AccountHolderNotificationRequest) o; + return Objects.equals(this.data, accountHolderNotificationRequest.data) && + Objects.equals(this.environment, accountHolderNotificationRequest.environment) && + Objects.equals(this.timestamp, accountHolderNotificationRequest.timestamp) && + Objects.equals(this.type, accountHolderNotificationRequest.type); } @Override @@ -259,7 +256,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -268,24 +266,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AccountHolderNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of AccountHolderNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AccountHolderNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to AccountHolderNotificationRequest */ - public static AccountHolderNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static AccountHolderNotificationRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountHolderNotificationRequest.class); } - - /** - * Convert an instance of AccountHolderNotificationRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AccountHolderNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/AccountSupportingEntityCapability.java b/src/main/java/com/adyen/model/configurationwebhooks/AccountSupportingEntityCapability.java index a433c3279..a64483c72 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/AccountSupportingEntityCapability.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/AccountSupportingEntityCapability.java @@ -2,26 +2,31 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** AccountSupportingEntityCapability */ +/** + * AccountSupportingEntityCapability + */ @JsonPropertyOrder({ AccountSupportingEntityCapability.JSON_PROPERTY_ALLOWED, AccountSupportingEntityCapability.JSON_PROPERTY_ALLOWED_LEVEL, @@ -31,15 +36,16 @@ AccountSupportingEntityCapability.JSON_PROPERTY_REQUESTED_LEVEL, AccountSupportingEntityCapability.JSON_PROPERTY_VERIFICATION_STATUS }) + public class AccountSupportingEntityCapability { public static final String JSON_PROPERTY_ALLOWED = "allowed"; private Boolean allowed; /** - * The capability level that is allowed for the account holder. Possible values: - * **notApplicable**, **low**, **medium**, **high**. + * The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. */ public enum AllowedLevelEnum { + HIGH(String.valueOf("high")), LOW(String.valueOf("low")), @@ -53,7 +59,7 @@ public enum AllowedLevelEnum { private String value; AllowedLevelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -74,11 +80,7 @@ public static AllowedLevelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AllowedLevelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AllowedLevelEnum.values())); + LOG.warning("AllowedLevelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AllowedLevelEnum.values())); return null; } } @@ -96,12 +98,10 @@ public static AllowedLevelEnum fromValue(String value) { private Boolean requested; /** - * The requested level of the capability. Some capabilities, such as those used in [card - * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different - * levels. Levels increase the capability, but also require additional checks and increased - * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. */ public enum RequestedLevelEnum { + HIGH(String.valueOf("high")), LOW(String.valueOf("low")), @@ -115,7 +115,7 @@ public enum RequestedLevelEnum { private String value; RequestedLevelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -136,11 +136,7 @@ public static RequestedLevelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "RequestedLevelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(RequestedLevelEnum.values())); + LOG.warning("RequestedLevelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RequestedLevelEnum.values())); return null; } } @@ -149,13 +145,10 @@ public static RequestedLevelEnum fromValue(String value) { private RequestedLevelEnum requestedLevel; /** - * The status of the verification checks for the supporting entity capability. Possible values: * - * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check - * if the `errors` array contains more information. * **valid**: The verification has - * been successfully completed. * **rejected**: Adyen has verified the information, but found - * reasons to not allow the capability. + * The status of the verification checks for the supporting entity capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. */ public enum VerificationStatusEnum { + INVALID(String.valueOf("invalid")), PENDING(String.valueOf("pending")), @@ -169,7 +162,7 @@ public enum VerificationStatusEnum { private String value; VerificationStatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -190,11 +183,7 @@ public static VerificationStatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "VerificationStatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(VerificationStatusEnum.values())); + LOG.warning("VerificationStatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(VerificationStatusEnum.values())); return null; } } @@ -202,17 +191,14 @@ public static VerificationStatusEnum fromValue(String value) { public static final String JSON_PROPERTY_VERIFICATION_STATUS = "verificationStatus"; private VerificationStatusEnum verificationStatus; - public AccountSupportingEntityCapability() {} + public AccountSupportingEntityCapability() { + } /** - * Indicates whether the supporting entity capability is allowed. Adyen sets this to **true** if - * the verification is successful and the account holder is permitted to use the capability. + * Indicates whether the supporting entity capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. * - * @param allowed Indicates whether the supporting entity capability is allowed. Adyen sets this - * to **true** if the verification is successful and the account holder is permitted to use - * the capability. - * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method - * chaining + * @param allowed Indicates whether the supporting entity capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. + * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method chaining */ public AccountSupportingEntityCapability allowed(Boolean allowed) { this.allowed = allowed; @@ -220,12 +206,8 @@ public AccountSupportingEntityCapability allowed(Boolean allowed) { } /** - * Indicates whether the supporting entity capability is allowed. Adyen sets this to **true** if - * the verification is successful and the account holder is permitted to use the capability. - * - * @return allowed Indicates whether the supporting entity capability is allowed. Adyen sets this - * to **true** if the verification is successful and the account holder is permitted to use - * the capability. + * Indicates whether the supporting entity capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. + * @return allowed Indicates whether the supporting entity capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. */ @JsonProperty(JSON_PROPERTY_ALLOWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -234,12 +216,9 @@ public Boolean getAllowed() { } /** - * Indicates whether the supporting entity capability is allowed. Adyen sets this to **true** if - * the verification is successful and the account holder is permitted to use the capability. + * Indicates whether the supporting entity capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. * - * @param allowed Indicates whether the supporting entity capability is allowed. Adyen sets this - * to **true** if the verification is successful and the account holder is permitted to use - * the capability. + * @param allowed Indicates whether the supporting entity capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. */ @JsonProperty(JSON_PROPERTY_ALLOWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -248,13 +227,10 @@ public void setAllowed(Boolean allowed) { } /** - * The capability level that is allowed for the account holder. Possible values: - * **notApplicable**, **low**, **medium**, **high**. + * The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. * - * @param allowedLevel The capability level that is allowed for the account holder. Possible - * values: **notApplicable**, **low**, **medium**, **high**. - * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method - * chaining + * @param allowedLevel The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. + * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method chaining */ public AccountSupportingEntityCapability allowedLevel(AllowedLevelEnum allowedLevel) { this.allowedLevel = allowedLevel; @@ -262,11 +238,8 @@ public AccountSupportingEntityCapability allowedLevel(AllowedLevelEnum allowedLe } /** - * The capability level that is allowed for the account holder. Possible values: - * **notApplicable**, **low**, **medium**, **high**. - * - * @return allowedLevel The capability level that is allowed for the account holder. Possible - * values: **notApplicable**, **low**, **medium**, **high**. + * The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. + * @return allowedLevel The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. */ @JsonProperty(JSON_PROPERTY_ALLOWED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -275,11 +248,9 @@ public AllowedLevelEnum getAllowedLevel() { } /** - * The capability level that is allowed for the account holder. Possible values: - * **notApplicable**, **low**, **medium**, **high**. + * The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. * - * @param allowedLevel The capability level that is allowed for the account holder. Possible - * values: **notApplicable**, **low**, **medium**, **high**. + * @param allowedLevel The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. */ @JsonProperty(JSON_PROPERTY_ALLOWED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -288,13 +259,10 @@ public void setAllowedLevel(AllowedLevelEnum allowedLevel) { } /** - * Indicates whether the capability is enabled. If **false**, the capability is temporarily - * disabled for the account holder. + * Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. * - * @param enabled Indicates whether the capability is enabled. If **false**, the capability is - * temporarily disabled for the account holder. - * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method - * chaining + * @param enabled Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. + * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method chaining */ public AccountSupportingEntityCapability enabled(Boolean enabled) { this.enabled = enabled; @@ -302,11 +270,8 @@ public AccountSupportingEntityCapability enabled(Boolean enabled) { } /** - * Indicates whether the capability is enabled. If **false**, the capability is temporarily - * disabled for the account holder. - * - * @return enabled Indicates whether the capability is enabled. If **false**, the capability is - * temporarily disabled for the account holder. + * Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. + * @return enabled Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -315,11 +280,9 @@ public Boolean getEnabled() { } /** - * Indicates whether the capability is enabled. If **false**, the capability is temporarily - * disabled for the account holder. + * Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. * - * @param enabled Indicates whether the capability is enabled. If **false**, the capability is - * temporarily disabled for the account holder. + * @param enabled Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -331,8 +294,7 @@ public void setEnabled(Boolean enabled) { * The ID of the supporting entity. * * @param id The ID of the supporting entity. - * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method - * chaining + * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method chaining */ public AccountSupportingEntityCapability id(String id) { this.id = id; @@ -341,7 +303,6 @@ public AccountSupportingEntityCapability id(String id) { /** * The ID of the supporting entity. - * * @return id The ID of the supporting entity. */ @JsonProperty(JSON_PROPERTY_ID) @@ -362,13 +323,10 @@ public void setId(String id) { } /** - * Indicates whether the capability is requested. To check whether the account holder is permitted - * to use the capability, refer to the `allowed` field. + * Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. * - * @param requested Indicates whether the capability is requested. To check whether the account - * holder is permitted to use the capability, refer to the `allowed` field. - * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method - * chaining + * @param requested Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. + * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method chaining */ public AccountSupportingEntityCapability requested(Boolean requested) { this.requested = requested; @@ -376,11 +334,8 @@ public AccountSupportingEntityCapability requested(Boolean requested) { } /** - * Indicates whether the capability is requested. To check whether the account holder is permitted - * to use the capability, refer to the `allowed` field. - * - * @return requested Indicates whether the capability is requested. To check whether the account - * holder is permitted to use the capability, refer to the `allowed` field. + * Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. + * @return requested Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. */ @JsonProperty(JSON_PROPERTY_REQUESTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -389,11 +344,9 @@ public Boolean getRequested() { } /** - * Indicates whether the capability is requested. To check whether the account holder is permitted - * to use the capability, refer to the `allowed` field. + * Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. * - * @param requested Indicates whether the capability is requested. To check whether the account - * holder is permitted to use the capability, refer to the `allowed` field. + * @param requested Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. */ @JsonProperty(JSON_PROPERTY_REQUESTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -402,18 +355,10 @@ public void setRequested(Boolean requested) { } /** - * The requested level of the capability. Some capabilities, such as those used in [card - * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different - * levels. Levels increase the capability, but also require additional checks and increased - * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. * - * @param requestedLevel The requested level of the capability. Some capabilities, such as those - * used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), - * have different levels. Levels increase the capability, but also require additional checks - * and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, - * **high**. - * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method - * chaining + * @param requestedLevel The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method chaining */ public AccountSupportingEntityCapability requestedLevel(RequestedLevelEnum requestedLevel) { this.requestedLevel = requestedLevel; @@ -421,16 +366,8 @@ public AccountSupportingEntityCapability requestedLevel(RequestedLevelEnum reque } /** - * The requested level of the capability. Some capabilities, such as those used in [card - * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different - * levels. Levels increase the capability, but also require additional checks and increased - * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. - * - * @return requestedLevel The requested level of the capability. Some capabilities, such as those - * used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), - * have different levels. Levels increase the capability, but also require additional checks - * and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, - * **high**. + * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * @return requestedLevel The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. */ @JsonProperty(JSON_PROPERTY_REQUESTED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -439,16 +376,9 @@ public RequestedLevelEnum getRequestedLevel() { } /** - * The requested level of the capability. Some capabilities, such as those used in [card - * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different - * levels. Levels increase the capability, but also require additional checks and increased - * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. * - * @param requestedLevel The requested level of the capability. Some capabilities, such as those - * used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), - * have different levels. Levels increase the capability, but also require additional checks - * and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, - * **high**. + * @param requestedLevel The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. */ @JsonProperty(JSON_PROPERTY_REQUESTED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -457,38 +387,19 @@ public void setRequestedLevel(RequestedLevelEnum requestedLevel) { } /** - * The status of the verification checks for the supporting entity capability. Possible values: * - * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check - * if the `errors` array contains more information. * **valid**: The verification has - * been successfully completed. * **rejected**: Adyen has verified the information, but found - * reasons to not allow the capability. + * The status of the verification checks for the supporting entity capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. * - * @param verificationStatus The status of the verification checks for the supporting entity - * capability. Possible values: * **pending**: Adyen is running the verification. * - * **invalid**: The verification failed. Check if the `errors` array contains more - * information. * **valid**: The verification has been successfully completed. * **rejected**: - * Adyen has verified the information, but found reasons to not allow the capability. - * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method - * chaining + * @param verificationStatus The status of the verification checks for the supporting entity capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. + * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method chaining */ - public AccountSupportingEntityCapability verificationStatus( - VerificationStatusEnum verificationStatus) { + public AccountSupportingEntityCapability verificationStatus(VerificationStatusEnum verificationStatus) { this.verificationStatus = verificationStatus; return this; } /** - * The status of the verification checks for the supporting entity capability. Possible values: * - * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check - * if the `errors` array contains more information. * **valid**: The verification has - * been successfully completed. * **rejected**: Adyen has verified the information, but found - * reasons to not allow the capability. - * - * @return verificationStatus The status of the verification checks for the supporting entity - * capability. Possible values: * **pending**: Adyen is running the verification. * - * **invalid**: The verification failed. Check if the `errors` array contains more - * information. * **valid**: The verification has been successfully completed. * **rejected**: - * Adyen has verified the information, but found reasons to not allow the capability. + * The status of the verification checks for the supporting entity capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. + * @return verificationStatus The status of the verification checks for the supporting entity capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -497,17 +408,9 @@ public VerificationStatusEnum getVerificationStatus() { } /** - * The status of the verification checks for the supporting entity capability. Possible values: * - * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check - * if the `errors` array contains more information. * **valid**: The verification has - * been successfully completed. * **rejected**: Adyen has verified the information, but found - * reasons to not allow the capability. + * The status of the verification checks for the supporting entity capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. * - * @param verificationStatus The status of the verification checks for the supporting entity - * capability. Possible values: * **pending**: Adyen is running the verification. * - * **invalid**: The verification failed. Check if the `errors` array contains more - * information. * **valid**: The verification has been successfully completed. * **rejected**: - * Adyen has verified the information, but found reasons to not allow the capability. + * @param verificationStatus The status of the verification checks for the supporting entity capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -515,7 +418,9 @@ public void setVerificationStatus(VerificationStatusEnum verificationStatus) { this.verificationStatus = verificationStatus; } - /** Return true if this AccountSupportingEntityCapability object is equal to o. */ + /** + * Return true if this AccountSupportingEntityCapability object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -524,22 +429,19 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AccountSupportingEntityCapability accountSupportingEntityCapability = - (AccountSupportingEntityCapability) o; - return Objects.equals(this.allowed, accountSupportingEntityCapability.allowed) - && Objects.equals(this.allowedLevel, accountSupportingEntityCapability.allowedLevel) - && Objects.equals(this.enabled, accountSupportingEntityCapability.enabled) - && Objects.equals(this.id, accountSupportingEntityCapability.id) - && Objects.equals(this.requested, accountSupportingEntityCapability.requested) - && Objects.equals(this.requestedLevel, accountSupportingEntityCapability.requestedLevel) - && Objects.equals( - this.verificationStatus, accountSupportingEntityCapability.verificationStatus); + AccountSupportingEntityCapability accountSupportingEntityCapability = (AccountSupportingEntityCapability) o; + return Objects.equals(this.allowed, accountSupportingEntityCapability.allowed) && + Objects.equals(this.allowedLevel, accountSupportingEntityCapability.allowedLevel) && + Objects.equals(this.enabled, accountSupportingEntityCapability.enabled) && + Objects.equals(this.id, accountSupportingEntityCapability.id) && + Objects.equals(this.requested, accountSupportingEntityCapability.requested) && + Objects.equals(this.requestedLevel, accountSupportingEntityCapability.requestedLevel) && + Objects.equals(this.verificationStatus, accountSupportingEntityCapability.verificationStatus); } @Override public int hashCode() { - return Objects.hash( - allowed, allowedLevel, enabled, id, requested, requestedLevel, verificationStatus); + return Objects.hash(allowed, allowedLevel, enabled, id, requested, requestedLevel, verificationStatus); } @Override @@ -558,7 +460,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -567,24 +470,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AccountSupportingEntityCapability given an JSON string * * @param jsonString JSON string * @return An instance of AccountSupportingEntityCapability - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AccountSupportingEntityCapability + * @throws JsonProcessingException if the JSON string is invalid with respect to AccountSupportingEntityCapability */ - public static AccountSupportingEntityCapability fromJson(String jsonString) - throws JsonProcessingException { + public static AccountSupportingEntityCapability fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountSupportingEntityCapability.class); } - - /** - * Convert an instance of AccountSupportingEntityCapability to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AccountSupportingEntityCapability to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Address.java b/src/main/java/com/adyen/model/configurationwebhooks/Address.java index 5acb96d00..776671a28 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Address.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Address.java @@ -2,22 +2,31 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Address */ + +/** + * Address + */ @JsonPropertyOrder({ Address.JSON_PROPERTY_CITY, Address.JSON_PROPERTY_COUNTRY, @@ -26,6 +35,7 @@ Address.JSON_PROPERTY_STATE_OR_PROVINCE, Address.JSON_PROPERTY_STREET }) + public class Address { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -45,7 +55,8 @@ public class Address { public static final String JSON_PROPERTY_STREET = "street"; private String street; - public Address() {} + public Address() { + } /** * The name of the city. Maximum length: 3000 characters. @@ -60,7 +71,6 @@ public Address city(String city) { /** * The name of the city. Maximum length: 3000 characters. - * * @return city The name of the city. Maximum length: 3000 characters. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -81,13 +91,9 @@ public void setCity(String city) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't - * know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If - * you don't know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. * @return the current {@code Address} instance, allowing for method chaining */ public Address country(String country) { @@ -96,13 +102,8 @@ public Address country(String country) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't - * know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. - * - * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If - * you don't know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,13 +112,9 @@ public String getCountry() { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't - * know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If - * you don't know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,7 +135,6 @@ public Address houseNumberOrName(String houseNumberOrName) { /** * The number or name of the house. Maximum length: 3000 characters. - * * @return houseNumberOrName The number or name of the house. Maximum length: 3000 characters. */ @JsonProperty(JSON_PROPERTY_HOUSE_NUMBER_OR_NAME) @@ -159,11 +155,9 @@ public void setHouseNumberOrName(String houseNumberOrName) { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an - * address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. * - * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten - * characters for an address in all other countries. + * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. * @return the current {@code Address} instance, allowing for method chaining */ public Address postalCode(String postalCode) { @@ -172,11 +166,8 @@ public Address postalCode(String postalCode) { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an - * address in all other countries. - * - * @return postalCode A maximum of five digits for an address in the US, or a maximum of ten - * characters for an address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * @return postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,11 +176,9 @@ public String getPostalCode() { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an - * address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. * - * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten - * characters for an address in all other countries. + * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,11 +187,9 @@ public void setPostalCode(String postalCode) { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** - * in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. * @return the current {@code Address} instance, allowing for method chaining */ public Address stateOrProvince(String stateOrProvince) { @@ -211,11 +198,8 @@ public Address stateOrProvince(String stateOrProvince) { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. - * - * @return stateOrProvince The two-character ISO 3166-2 state or province code. For example, - * **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * @return stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,11 +208,9 @@ public String getStateOrProvince() { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** - * in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,12 +219,9 @@ public void setStateOrProvince(String stateOrProvince) { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be - * included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. * - * @param street The name of the street. Maximum length: 3000 characters. > The house number - * should not be included in this field; it should be separately provided via - * `houseNumberOrName`. + * @param street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. * @return the current {@code Address} instance, allowing for method chaining */ public Address street(String street) { @@ -251,12 +230,8 @@ public Address street(String street) { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be - * included in this field; it should be separately provided via `houseNumberOrName`. - * - * @return street The name of the street. Maximum length: 3000 characters. > The house number - * should not be included in this field; it should be separately provided via - * `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * @return street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -265,12 +240,9 @@ public String getStreet() { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be - * included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. * - * @param street The name of the street. Maximum length: 3000 characters. > The house number - * should not be included in this field; it should be separately provided via - * `houseNumberOrName`. + * @param street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -278,7 +250,9 @@ public void setStreet(String street) { this.street = street; } - /** Return true if this Address object is equal to o. */ + /** + * Return true if this Address object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -288,12 +262,12 @@ public boolean equals(Object o) { return false; } Address address = (Address) o; - return Objects.equals(this.city, address.city) - && Objects.equals(this.country, address.country) - && Objects.equals(this.houseNumberOrName, address.houseNumberOrName) - && Objects.equals(this.postalCode, address.postalCode) - && Objects.equals(this.stateOrProvince, address.stateOrProvince) - && Objects.equals(this.street, address.street); + return Objects.equals(this.city, address.city) && + Objects.equals(this.country, address.country) && + Objects.equals(this.houseNumberOrName, address.houseNumberOrName) && + Objects.equals(this.postalCode, address.postalCode) && + Objects.equals(this.stateOrProvince, address.stateOrProvince) && + Objects.equals(this.street, address.street); } @Override @@ -316,7 +290,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -325,7 +300,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Address given an JSON string * * @param jsonString JSON string @@ -335,12 +310,11 @@ private String toIndentedString(Object o) { public static Address fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Address.class); } - - /** - * Convert an instance of Address to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Address to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Amount.java b/src/main/java/com/adyen/model/configurationwebhooks/Amount.java index 706cfa8f0..3d6abaedf 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Amount.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Amount.java @@ -2,23 +2,36 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Amount */ -@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) + +/** + * Amount + */ +@JsonPropertyOrder({ + Amount.JSON_PROPERTY_CURRENCY, + Amount.JSON_PROPERTY_VALUE +}) + public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -26,14 +39,13 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() {} + public Amount() { + } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount currency(String currency) { @@ -42,11 +54,8 @@ public Amount currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -55,11 +64,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,11 +75,9 @@ public void setCurrency(String currency) { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount value(Long value) { @@ -81,11 +86,8 @@ public Amount value(Long value) { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). - * - * @return value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @return value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,11 +96,9 @@ public Long getValue() { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,7 +106,9 @@ public void setValue(Long value) { this.value = value; } - /** Return true if this Amount object is equal to o. */ + /** + * Return true if this Amount object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -116,8 +118,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) - && Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) && + Objects.equals(this.value, amount.value); } @Override @@ -136,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -155,12 +158,11 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } - - /** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Authentication.java b/src/main/java/com/adyen/model/configurationwebhooks/Authentication.java index 940164259..879082631 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Authentication.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Authentication.java @@ -2,27 +2,38 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.configurationwebhooks.Phone; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Authentication */ + +/** + * Authentication + */ @JsonPropertyOrder({ Authentication.JSON_PROPERTY_EMAIL, Authentication.JSON_PROPERTY_PASSWORD, Authentication.JSON_PROPERTY_PHONE }) + public class Authentication { public static final String JSON_PROPERTY_EMAIL = "email"; private String email; @@ -33,7 +44,8 @@ public class Authentication { public static final String JSON_PROPERTY_PHONE = "phone"; private Phone phone; - public Authentication() {} + public Authentication() { + } /** * The email address where the one-time password (OTP) is sent. @@ -48,7 +60,6 @@ public Authentication email(String email) { /** * The email address where the one-time password (OTP) is sent. - * * @return email The email address where the one-time password (OTP) is sent. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -69,15 +80,9 @@ public void setEmail(String email) { } /** - * The password used for 3D Secure password-based authentication. The value must be between 1 to - * 30 characters and must only contain the following supported characters. * Characters between - * **a-z**, **A-Z**, and **0-9** * Special characters: - * **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** + * The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters. * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** * - * @param password The password used for 3D Secure password-based authentication. The value must - * be between 1 to 30 characters and must only contain the following supported characters. * - * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: - * **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** + * @param password The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters. * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** * @return the current {@code Authentication} instance, allowing for method chaining */ public Authentication password(String password) { @@ -86,15 +91,8 @@ public Authentication password(String password) { } /** - * The password used for 3D Secure password-based authentication. The value must be between 1 to - * 30 characters and must only contain the following supported characters. * Characters between - * **a-z**, **A-Z**, and **0-9** * Special characters: - * **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** - * - * @return password The password used for 3D Secure password-based authentication. The value must - * be between 1 to 30 characters and must only contain the following supported characters. * - * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: - * **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** + * The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters. * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** + * @return password The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters. * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** */ @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -103,15 +101,9 @@ public String getPassword() { } /** - * The password used for 3D Secure password-based authentication. The value must be between 1 to - * 30 characters and must only contain the following supported characters. * Characters between - * **a-z**, **A-Z**, and **0-9** * Special characters: - * **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** + * The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters. * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** * - * @param password The password used for 3D Secure password-based authentication. The value must - * be between 1 to 30 characters and must only contain the following supported characters. * - * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: - * **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** + * @param password The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters. * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** */ @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -122,7 +114,7 @@ public void setPassword(String password) { /** * phone * - * @param phone + * @param phone * @return the current {@code Authentication} instance, allowing for method chaining */ public Authentication phone(Phone phone) { @@ -132,8 +124,7 @@ public Authentication phone(Phone phone) { /** * Get phone - * - * @return phone + * @return phone */ @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,7 +135,7 @@ public Phone getPhone() { /** * phone * - * @param phone + * @param phone */ @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,7 +143,9 @@ public void setPhone(Phone phone) { this.phone = phone; } - /** Return true if this Authentication object is equal to o. */ + /** + * Return true if this Authentication object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -162,9 +155,9 @@ public boolean equals(Object o) { return false; } Authentication authentication = (Authentication) o; - return Objects.equals(this.email, authentication.email) - && Objects.equals(this.password, authentication.password) - && Objects.equals(this.phone, authentication.phone); + return Objects.equals(this.email, authentication.email) && + Objects.equals(this.password, authentication.password) && + Objects.equals(this.phone, authentication.phone); } @Override @@ -184,7 +177,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -193,7 +187,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Authentication given an JSON string * * @param jsonString JSON string @@ -203,12 +197,11 @@ private String toIndentedString(Object o) { public static Authentication fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Authentication.class); } - - /** - * Convert an instance of Authentication to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Authentication to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Balance.java b/src/main/java/com/adyen/model/configurationwebhooks/Balance.java index 6f9b28e06..55d204116 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Balance.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Balance.java @@ -2,22 +2,31 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Balance */ + +/** + * Balance + */ @JsonPropertyOrder({ Balance.JSON_PROPERTY_AVAILABLE, Balance.JSON_PROPERTY_BALANCE, @@ -25,6 +34,7 @@ Balance.JSON_PROPERTY_PENDING, Balance.JSON_PROPERTY_RESERVED }) + public class Balance { public static final String JSON_PROPERTY_AVAILABLE = "available"; private Long available; @@ -41,7 +51,8 @@ public class Balance { public static final String JSON_PROPERTY_RESERVED = "reserved"; private Long reserved; - public Balance() {} + public Balance() { + } /** * The balance available for use. @@ -56,7 +67,6 @@ public Balance available(Long available) { /** * The balance available for use. - * * @return available The balance available for use. */ @JsonProperty(JSON_PROPERTY_AVAILABLE) @@ -89,7 +99,6 @@ public Balance balance(Long balance) { /** * The sum of the transactions that have already been settled. - * * @return balance The sum of the transactions that have already been settled. */ @JsonProperty(JSON_PROPERTY_BALANCE) @@ -110,11 +119,9 @@ public void setBalance(Long balance) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. * @return the current {@code Balance} instance, allowing for method chaining */ public Balance currency(String currency) { @@ -123,11 +130,8 @@ public Balance currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,11 +140,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,7 +163,6 @@ public Balance pending(Long pending) { /** * The sum of the transactions that will be settled in the future. - * * @return pending The sum of the transactions that will be settled in the future. */ @JsonProperty(JSON_PROPERTY_PENDING) @@ -194,7 +195,6 @@ public Balance reserved(Long reserved) { /** * The balance currently held in reserve. - * * @return reserved The balance currently held in reserve. */ @JsonProperty(JSON_PROPERTY_RESERVED) @@ -214,7 +214,9 @@ public void setReserved(Long reserved) { this.reserved = reserved; } - /** Return true if this Balance object is equal to o. */ + /** + * Return true if this Balance object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -224,11 +226,11 @@ public boolean equals(Object o) { return false; } Balance balance = (Balance) o; - return Objects.equals(this.available, balance.available) - && Objects.equals(this.balance, balance.balance) - && Objects.equals(this.currency, balance.currency) - && Objects.equals(this.pending, balance.pending) - && Objects.equals(this.reserved, balance.reserved); + return Objects.equals(this.available, balance.available) && + Objects.equals(this.balance, balance.balance) && + Objects.equals(this.currency, balance.currency) && + Objects.equals(this.pending, balance.pending) && + Objects.equals(this.reserved, balance.reserved); } @Override @@ -250,7 +252,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -259,7 +262,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Balance given an JSON string * * @param jsonString JSON string @@ -269,12 +272,11 @@ private String toIndentedString(Object o) { public static Balance fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Balance.class); } - - /** - * Convert an instance of Balance to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Balance to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccount.java b/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccount.java index fe5eb468f..34482fa71 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccount.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccount.java @@ -2,30 +2,37 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.configurationwebhooks.Balance; +import com.adyen.model.configurationwebhooks.PlatformPaymentConfiguration; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** BalanceAccount */ +/** + * BalanceAccount + */ @JsonPropertyOrder({ BalanceAccount.JSON_PROPERTY_ACCOUNT_HOLDER_ID, BalanceAccount.JSON_PROPERTY_BALANCES, @@ -39,6 +46,7 @@ BalanceAccount.JSON_PROPERTY_STATUS, BalanceAccount.JSON_PROPERTY_TIME_ZONE }) + public class BalanceAccount { public static final String JSON_PROPERTY_ACCOUNT_HOLDER_ID = "accountHolderId"; private String accountHolderId; @@ -61,15 +69,17 @@ public class BalanceAccount { public static final String JSON_PROPERTY_MIGRATED_ACCOUNT_CODE = "migratedAccountCode"; private String migratedAccountCode; - public static final String JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION = - "platformPaymentConfiguration"; + public static final String JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION = "platformPaymentConfiguration"; private PlatformPaymentConfiguration platformPaymentConfiguration; public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - /** The status of the balance account, set to **active** by default. */ + /** + * The status of the balance account, set to **active** by default. + */ public enum StatusEnum { + ACTIVE(String.valueOf("active")), CLOSED(String.valueOf("closed")), @@ -83,7 +93,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -104,11 +114,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -119,16 +125,13 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_TIME_ZONE = "timeZone"; private String timeZone; - public BalanceAccount() {} + public BalanceAccount() { + } /** - * The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) - * associated with the balance account. + * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. * - * @param accountHolderId The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) - * associated with the balance account. + * @param accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. * @return the current {@code BalanceAccount} instance, allowing for method chaining */ public BalanceAccount accountHolderId(String accountHolderId) { @@ -137,13 +140,8 @@ public BalanceAccount accountHolderId(String accountHolderId) { } /** - * The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) - * associated with the balance account. - * - * @return accountHolderId The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) - * associated with the balance account. + * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. + * @return accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,13 +150,9 @@ public String getAccountHolderId() { } /** - * The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) - * associated with the balance account. + * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. * - * @param accountHolderId The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) - * associated with the balance account. + * @param accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,7 +181,6 @@ public BalanceAccount addBalancesItem(Balance balancesItem) { /** * List of balances with the amount and currency. - * * @return balances List of balances with the amount and currency. */ @JsonProperty(JSON_PROPERTY_BALANCES) @@ -208,17 +201,9 @@ public void setBalances(List balances) { } /** - * The default three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This - * is the currency displayed on the Balance Account overview page in your Customer Area. The - * default value is **EUR**. > After a balance account is created, you cannot change its - * default currency. + * The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. * - * @param defaultCurrencyCode The default three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. - * This is the currency displayed on the Balance Account overview page in your Customer Area. - * The default value is **EUR**. > After a balance account is created, you cannot change - * its default currency. + * @param defaultCurrencyCode The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. * @return the current {@code BalanceAccount} instance, allowing for method chaining */ public BalanceAccount defaultCurrencyCode(String defaultCurrencyCode) { @@ -227,17 +212,8 @@ public BalanceAccount defaultCurrencyCode(String defaultCurrencyCode) { } /** - * The default three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This - * is the currency displayed on the Balance Account overview page in your Customer Area. The - * default value is **EUR**. > After a balance account is created, you cannot change its - * default currency. - * - * @return defaultCurrencyCode The default three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. - * This is the currency displayed on the Balance Account overview page in your Customer Area. - * The default value is **EUR**. > After a balance account is created, you cannot change - * its default currency. + * The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. + * @return defaultCurrencyCode The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. */ @JsonProperty(JSON_PROPERTY_DEFAULT_CURRENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -246,17 +222,9 @@ public String getDefaultCurrencyCode() { } /** - * The default three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This - * is the currency displayed on the Balance Account overview page in your Customer Area. The - * default value is **EUR**. > After a balance account is created, you cannot change its - * default currency. + * The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. * - * @param defaultCurrencyCode The default three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. - * This is the currency displayed on the Balance Account overview page in your Customer Area. - * The default value is **EUR**. > After a balance account is created, you cannot change - * its default currency. + * @param defaultCurrencyCode The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. */ @JsonProperty(JSON_PROPERTY_DEFAULT_CURRENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -265,12 +233,9 @@ public void setDefaultCurrencyCode(String defaultCurrencyCode) { } /** - * A human-readable description of the balance account, maximum 300 characters. You can use this - * parameter to distinguish between multiple balance accounts under an account holder. + * A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. * - * @param description A human-readable description of the balance account, maximum 300 characters. - * You can use this parameter to distinguish between multiple balance accounts under an - * account holder. + * @param description A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. * @return the current {@code BalanceAccount} instance, allowing for method chaining */ public BalanceAccount description(String description) { @@ -279,12 +244,8 @@ public BalanceAccount description(String description) { } /** - * A human-readable description of the balance account, maximum 300 characters. You can use this - * parameter to distinguish between multiple balance accounts under an account holder. - * - * @return description A human-readable description of the balance account, maximum 300 - * characters. You can use this parameter to distinguish between multiple balance accounts - * under an account holder. + * A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. + * @return description A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -293,12 +254,9 @@ public String getDescription() { } /** - * A human-readable description of the balance account, maximum 300 characters. You can use this - * parameter to distinguish between multiple balance accounts under an account holder. + * A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. * - * @param description A human-readable description of the balance account, maximum 300 characters. - * You can use this parameter to distinguish between multiple balance accounts under an - * account holder. + * @param description A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -319,7 +277,6 @@ public BalanceAccount id(String id) { /** * The unique identifier of the balance account. - * * @return id The unique identifier of the balance account. */ @JsonProperty(JSON_PROPERTY_ID) @@ -340,14 +297,9 @@ public void setId(String id) { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be - * used for storing miscellaneous data as desired. > Note that during an update of metadata, - * the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific - * names and may be used for storing miscellaneous data as desired. > Note that during an - * update of metadata, the omission of existing key-value pairs will result in the deletion of - * those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. * @return the current {@code BalanceAccount} instance, allowing for method chaining */ public BalanceAccount metadata(Map metadata) { @@ -364,14 +316,8 @@ public BalanceAccount putMetadataItem(String key, String metadataItem) { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be - * used for storing miscellaneous data as desired. > Note that during an update of metadata, - * the omission of existing key-value pairs will result in the deletion of those key-value pairs. - * - * @return metadata A set of key and value pairs for general use. The keys do not have specific - * names and may be used for storing miscellaneous data as desired. > Note that during an - * update of metadata, the omission of existing key-value pairs will result in the deletion of - * those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * @return metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -380,14 +326,9 @@ public Map getMetadata() { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be - * used for storing miscellaneous data as desired. > Note that during an update of metadata, - * the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific - * names and may be used for storing miscellaneous data as desired. > Note that during an - * update of metadata, the omission of existing key-value pairs will result in the deletion of - * those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -398,8 +339,7 @@ public void setMetadata(Map metadata) { /** * The unique identifier of the account of the migrated account holder in the classic integration. * - * @param migratedAccountCode The unique identifier of the account of the migrated account holder - * in the classic integration. + * @param migratedAccountCode The unique identifier of the account of the migrated account holder in the classic integration. * @return the current {@code BalanceAccount} instance, allowing for method chaining */ public BalanceAccount migratedAccountCode(String migratedAccountCode) { @@ -409,9 +349,7 @@ public BalanceAccount migratedAccountCode(String migratedAccountCode) { /** * The unique identifier of the account of the migrated account holder in the classic integration. - * - * @return migratedAccountCode The unique identifier of the account of the migrated account holder - * in the classic integration. + * @return migratedAccountCode The unique identifier of the account of the migrated account holder in the classic integration. */ @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -422,8 +360,7 @@ public String getMigratedAccountCode() { /** * The unique identifier of the account of the migrated account holder in the classic integration. * - * @param migratedAccountCode The unique identifier of the account of the migrated account holder - * in the classic integration. + * @param migratedAccountCode The unique identifier of the account of the migrated account holder in the classic integration. */ @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -434,19 +371,17 @@ public void setMigratedAccountCode(String migratedAccountCode) { /** * platformPaymentConfiguration * - * @param platformPaymentConfiguration + * @param platformPaymentConfiguration * @return the current {@code BalanceAccount} instance, allowing for method chaining */ - public BalanceAccount platformPaymentConfiguration( - PlatformPaymentConfiguration platformPaymentConfiguration) { + public BalanceAccount platformPaymentConfiguration(PlatformPaymentConfiguration platformPaymentConfiguration) { this.platformPaymentConfiguration = platformPaymentConfiguration; return this; } /** * Get platformPaymentConfiguration - * - * @return platformPaymentConfiguration + * @return platformPaymentConfiguration */ @JsonProperty(JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -457,12 +392,11 @@ public PlatformPaymentConfiguration getPlatformPaymentConfiguration() { /** * platformPaymentConfiguration * - * @param platformPaymentConfiguration + * @param platformPaymentConfiguration */ @JsonProperty(JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPlatformPaymentConfiguration( - PlatformPaymentConfiguration platformPaymentConfiguration) { + public void setPlatformPaymentConfiguration(PlatformPaymentConfiguration platformPaymentConfiguration) { this.platformPaymentConfiguration = platformPaymentConfiguration; } @@ -479,7 +413,6 @@ public BalanceAccount reference(String reference) { /** * Your reference for the balance account, maximum 150 characters. - * * @return reference Your reference for the balance account, maximum 150 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -500,9 +433,9 @@ public void setReference(String reference) { } /** - * The status of the balance account, set to **active** by default. + * The status of the balance account, set to **active** by default. * - * @param status The status of the balance account, set to **active** by default. + * @param status The status of the balance account, set to **active** by default. * @return the current {@code BalanceAccount} instance, allowing for method chaining */ public BalanceAccount status(StatusEnum status) { @@ -511,9 +444,8 @@ public BalanceAccount status(StatusEnum status) { } /** - * The status of the balance account, set to **active** by default. - * - * @return status The status of the balance account, set to **active** by default. + * The status of the balance account, set to **active** by default. + * @return status The status of the balance account, set to **active** by default. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -522,9 +454,9 @@ public StatusEnum getStatus() { } /** - * The status of the balance account, set to **active** by default. + * The status of the balance account, set to **active** by default. * - * @param status The status of the balance account, set to **active** by default. + * @param status The status of the balance account, set to **active** by default. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -533,14 +465,9 @@ public void setStatus(StatusEnum status) { } /** - * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time - * zone of the account holder if no time zone is set. For possible values, see the [list of time - * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. - * Defaults to the time zone of the account holder if no time zone is set. For possible - * values, see the [list of time zone - * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * @return the current {@code BalanceAccount} instance, allowing for method chaining */ public BalanceAccount timeZone(String timeZone) { @@ -549,14 +476,8 @@ public BalanceAccount timeZone(String timeZone) { } /** - * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time - * zone of the account holder if no time zone is set. For possible values, see the [list of time - * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). - * - * @return timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. - * Defaults to the time zone of the account holder if no time zone is set. For possible - * values, see the [list of time zone - * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @return timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -565,14 +486,9 @@ public String getTimeZone() { } /** - * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time - * zone of the account holder if no time zone is set. For possible values, see the [list of time - * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. - * Defaults to the time zone of the account holder if no time zone is set. For possible - * values, see the [list of time zone - * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -580,7 +496,9 @@ public void setTimeZone(String timeZone) { this.timeZone = timeZone; } - /** Return true if this BalanceAccount object is equal to o. */ + /** + * Return true if this BalanceAccount object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -590,34 +508,22 @@ public boolean equals(Object o) { return false; } BalanceAccount balanceAccount = (BalanceAccount) o; - return Objects.equals(this.accountHolderId, balanceAccount.accountHolderId) - && Objects.equals(this.balances, balanceAccount.balances) - && Objects.equals(this.defaultCurrencyCode, balanceAccount.defaultCurrencyCode) - && Objects.equals(this.description, balanceAccount.description) - && Objects.equals(this.id, balanceAccount.id) - && Objects.equals(this.metadata, balanceAccount.metadata) - && Objects.equals(this.migratedAccountCode, balanceAccount.migratedAccountCode) - && Objects.equals( - this.platformPaymentConfiguration, balanceAccount.platformPaymentConfiguration) - && Objects.equals(this.reference, balanceAccount.reference) - && Objects.equals(this.status, balanceAccount.status) - && Objects.equals(this.timeZone, balanceAccount.timeZone); + return Objects.equals(this.accountHolderId, balanceAccount.accountHolderId) && + Objects.equals(this.balances, balanceAccount.balances) && + Objects.equals(this.defaultCurrencyCode, balanceAccount.defaultCurrencyCode) && + Objects.equals(this.description, balanceAccount.description) && + Objects.equals(this.id, balanceAccount.id) && + Objects.equals(this.metadata, balanceAccount.metadata) && + Objects.equals(this.migratedAccountCode, balanceAccount.migratedAccountCode) && + Objects.equals(this.platformPaymentConfiguration, balanceAccount.platformPaymentConfiguration) && + Objects.equals(this.reference, balanceAccount.reference) && + Objects.equals(this.status, balanceAccount.status) && + Objects.equals(this.timeZone, balanceAccount.timeZone); } @Override public int hashCode() { - return Objects.hash( - accountHolderId, - balances, - defaultCurrencyCode, - description, - id, - metadata, - migratedAccountCode, - platformPaymentConfiguration, - reference, - status, - timeZone); + return Objects.hash(accountHolderId, balances, defaultCurrencyCode, description, id, metadata, migratedAccountCode, platformPaymentConfiguration, reference, status, timeZone); } @Override @@ -626,18 +532,12 @@ public String toString() { sb.append("class BalanceAccount {\n"); sb.append(" accountHolderId: ").append(toIndentedString(accountHolderId)).append("\n"); sb.append(" balances: ").append(toIndentedString(balances)).append("\n"); - sb.append(" defaultCurrencyCode: ") - .append(toIndentedString(defaultCurrencyCode)) - .append("\n"); + sb.append(" defaultCurrencyCode: ").append(toIndentedString(defaultCurrencyCode)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" migratedAccountCode: ") - .append(toIndentedString(migratedAccountCode)) - .append("\n"); - sb.append(" platformPaymentConfiguration: ") - .append(toIndentedString(platformPaymentConfiguration)) - .append("\n"); + sb.append(" migratedAccountCode: ").append(toIndentedString(migratedAccountCode)).append("\n"); + sb.append(" platformPaymentConfiguration: ").append(toIndentedString(platformPaymentConfiguration)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); @@ -646,7 +546,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -655,7 +556,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BalanceAccount given an JSON string * * @param jsonString JSON string @@ -665,12 +566,11 @@ private String toIndentedString(Object o) { public static BalanceAccount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceAccount.class); } - - /** - * Convert an instance of BalanceAccount to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BalanceAccount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccountNotificationData.java b/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccountNotificationData.java index 98f88d5a1..14dd71a69 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccountNotificationData.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccountNotificationData.java @@ -2,26 +2,37 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.configurationwebhooks.BalanceAccount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** BalanceAccountNotificationData */ + +/** + * BalanceAccountNotificationData + */ @JsonPropertyOrder({ BalanceAccountNotificationData.JSON_PROPERTY_BALANCE_ACCOUNT, BalanceAccountNotificationData.JSON_PROPERTY_BALANCE_PLATFORM }) + public class BalanceAccountNotificationData { public static final String JSON_PROPERTY_BALANCE_ACCOUNT = "balanceAccount"; private BalanceAccount balanceAccount; @@ -29,14 +40,14 @@ public class BalanceAccountNotificationData { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; - public BalanceAccountNotificationData() {} + public BalanceAccountNotificationData() { + } /** * balanceAccount * - * @param balanceAccount - * @return the current {@code BalanceAccountNotificationData} instance, allowing for method - * chaining + * @param balanceAccount + * @return the current {@code BalanceAccountNotificationData} instance, allowing for method chaining */ public BalanceAccountNotificationData balanceAccount(BalanceAccount balanceAccount) { this.balanceAccount = balanceAccount; @@ -45,8 +56,7 @@ public BalanceAccountNotificationData balanceAccount(BalanceAccount balanceAccou /** * Get balanceAccount - * - * @return balanceAccount + * @return balanceAccount */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -57,7 +67,7 @@ public BalanceAccount getBalanceAccount() { /** * balanceAccount * - * @param balanceAccount + * @param balanceAccount */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -69,8 +79,7 @@ public void setBalanceAccount(BalanceAccount balanceAccount) { * The unique identifier of the balance platform. * * @param balancePlatform The unique identifier of the balance platform. - * @return the current {@code BalanceAccountNotificationData} instance, allowing for method - * chaining + * @return the current {@code BalanceAccountNotificationData} instance, allowing for method chaining */ public BalanceAccountNotificationData balancePlatform(String balancePlatform) { this.balancePlatform = balancePlatform; @@ -79,7 +88,6 @@ public BalanceAccountNotificationData balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. - * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -99,7 +107,9 @@ public void setBalancePlatform(String balancePlatform) { this.balancePlatform = balancePlatform; } - /** Return true if this BalanceAccountNotificationData object is equal to o. */ + /** + * Return true if this BalanceAccountNotificationData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -108,10 +118,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - BalanceAccountNotificationData balanceAccountNotificationData = - (BalanceAccountNotificationData) o; - return Objects.equals(this.balanceAccount, balanceAccountNotificationData.balanceAccount) - && Objects.equals(this.balancePlatform, balanceAccountNotificationData.balancePlatform); + BalanceAccountNotificationData balanceAccountNotificationData = (BalanceAccountNotificationData) o; + return Objects.equals(this.balanceAccount, balanceAccountNotificationData.balanceAccount) && + Objects.equals(this.balancePlatform, balanceAccountNotificationData.balancePlatform); } @Override @@ -130,7 +139,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -139,24 +149,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BalanceAccountNotificationData given an JSON string * * @param jsonString JSON string * @return An instance of BalanceAccountNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BalanceAccountNotificationData + * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceAccountNotificationData */ - public static BalanceAccountNotificationData fromJson(String jsonString) - throws JsonProcessingException { + public static BalanceAccountNotificationData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceAccountNotificationData.class); } - - /** - * Convert an instance of BalanceAccountNotificationData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BalanceAccountNotificationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccountNotificationRequest.java b/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccountNotificationRequest.java index 36906dadb..13f6021e5 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccountNotificationRequest.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccountNotificationRequest.java @@ -2,33 +2,40 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.configurationwebhooks.BalanceAccountNotificationData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** BalanceAccountNotificationRequest */ + +/** + * BalanceAccountNotificationRequest + */ @JsonPropertyOrder({ BalanceAccountNotificationRequest.JSON_PROPERTY_DATA, BalanceAccountNotificationRequest.JSON_PROPERTY_ENVIRONMENT, BalanceAccountNotificationRequest.JSON_PROPERTY_TIMESTAMP, BalanceAccountNotificationRequest.JSON_PROPERTY_TYPE }) + public class BalanceAccountNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private BalanceAccountNotificationData data; @@ -39,20 +46,21 @@ public class BalanceAccountNotificationRequest { public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; private OffsetDateTime timestamp; - /** Type of webhook. */ + /** + * Type of webhook. + */ public enum TypeEnum { - BALANCEPLATFORM_BALANCEACCOUNT_UPDATED( - String.valueOf("balancePlatform.balanceAccount.updated")), - BALANCEPLATFORM_BALANCEACCOUNT_CREATED( - String.valueOf("balancePlatform.balanceAccount.created")); + BALANCEPLATFORM_BALANCEACCOUNT_UPDATED(String.valueOf("balancePlatform.balanceAccount.updated")), + + BALANCEPLATFORM_BALANCEACCOUNT_CREATED(String.valueOf("balancePlatform.balanceAccount.created")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,11 +81,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -85,14 +89,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public BalanceAccountNotificationRequest() {} + public BalanceAccountNotificationRequest() { + } /** * data * - * @param data - * @return the current {@code BalanceAccountNotificationRequest} instance, allowing for method - * chaining + * @param data + * @return the current {@code BalanceAccountNotificationRequest} instance, allowing for method chaining */ public BalanceAccountNotificationRequest data(BalanceAccountNotificationData data) { this.data = data; @@ -101,8 +105,7 @@ public BalanceAccountNotificationRequest data(BalanceAccountNotificationData dat /** * Get data - * - * @return data + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,7 +116,7 @@ public BalanceAccountNotificationData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -122,12 +125,10 @@ public void setData(BalanceAccountNotificationData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. - * @return the current {@code BalanceAccountNotificationRequest} instance, allowing for method - * chaining + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @return the current {@code BalanceAccountNotificationRequest} instance, allowing for method chaining */ public BalanceAccountNotificationRequest environment(String environment) { this.environment = environment; @@ -135,10 +136,8 @@ public BalanceAccountNotificationRequest environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * - * @return environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,10 +146,9 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -162,8 +160,7 @@ public void setEnvironment(String environment) { * When the event was queued. * * @param timestamp When the event was queued. - * @return the current {@code BalanceAccountNotificationRequest} instance, allowing for method - * chaining + * @return the current {@code BalanceAccountNotificationRequest} instance, allowing for method chaining */ public BalanceAccountNotificationRequest timestamp(OffsetDateTime timestamp) { this.timestamp = timestamp; @@ -172,7 +169,6 @@ public BalanceAccountNotificationRequest timestamp(OffsetDateTime timestamp) { /** * When the event was queued. - * * @return timestamp When the event was queued. */ @JsonProperty(JSON_PROPERTY_TIMESTAMP) @@ -196,8 +192,7 @@ public void setTimestamp(OffsetDateTime timestamp) { * Type of webhook. * * @param type Type of webhook. - * @return the current {@code BalanceAccountNotificationRequest} instance, allowing for method - * chaining + * @return the current {@code BalanceAccountNotificationRequest} instance, allowing for method chaining */ public BalanceAccountNotificationRequest type(TypeEnum type) { this.type = type; @@ -206,7 +201,6 @@ public BalanceAccountNotificationRequest type(TypeEnum type) { /** * Type of webhook. - * * @return type Type of webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -226,7 +220,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this BalanceAccountNotificationRequest object is equal to o. */ + /** + * Return true if this BalanceAccountNotificationRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -235,12 +231,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - BalanceAccountNotificationRequest balanceAccountNotificationRequest = - (BalanceAccountNotificationRequest) o; - return Objects.equals(this.data, balanceAccountNotificationRequest.data) - && Objects.equals(this.environment, balanceAccountNotificationRequest.environment) - && Objects.equals(this.timestamp, balanceAccountNotificationRequest.timestamp) - && Objects.equals(this.type, balanceAccountNotificationRequest.type); + BalanceAccountNotificationRequest balanceAccountNotificationRequest = (BalanceAccountNotificationRequest) o; + return Objects.equals(this.data, balanceAccountNotificationRequest.data) && + Objects.equals(this.environment, balanceAccountNotificationRequest.environment) && + Objects.equals(this.timestamp, balanceAccountNotificationRequest.timestamp) && + Objects.equals(this.type, balanceAccountNotificationRequest.type); } @Override @@ -261,7 +256,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -270,24 +266,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BalanceAccountNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of BalanceAccountNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BalanceAccountNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceAccountNotificationRequest */ - public static BalanceAccountNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static BalanceAccountNotificationRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceAccountNotificationRequest.class); } - - /** - * Convert an instance of BalanceAccountNotificationRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BalanceAccountNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/BalancePlatformNotificationResponse.java b/src/main/java/com/adyen/model/configurationwebhooks/BalancePlatformNotificationResponse.java index c004a6522..d6dd9f08b 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/BalancePlatformNotificationResponse.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/BalancePlatformNotificationResponse.java @@ -2,37 +2,47 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** BalancePlatformNotificationResponse */ -@JsonPropertyOrder({BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) + +/** + * BalancePlatformNotificationResponse + */ +@JsonPropertyOrder({ + BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE +}) + public class BalancePlatformNotificationResponse { public static final String JSON_PROPERTY_NOTIFICATION_RESPONSE = "notificationResponse"; private String notificationResponse; - public BalancePlatformNotificationResponse() {} + public BalancePlatformNotificationResponse() { + } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method - * chaining + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method chaining */ public BalancePlatformNotificationResponse notificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; @@ -40,11 +50,8 @@ public BalancePlatformNotificationResponse notificationResponse(String notificat } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * - * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -53,11 +60,9 @@ public String getNotificationResponse() { } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -65,7 +70,9 @@ public void setNotificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; } - /** Return true if this BalancePlatformNotificationResponse object is equal to o. */ + /** + * Return true if this BalancePlatformNotificationResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -74,10 +81,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - BalancePlatformNotificationResponse balancePlatformNotificationResponse = - (BalancePlatformNotificationResponse) o; - return Objects.equals( - this.notificationResponse, balancePlatformNotificationResponse.notificationResponse); + BalancePlatformNotificationResponse balancePlatformNotificationResponse = (BalancePlatformNotificationResponse) o; + return Objects.equals(this.notificationResponse, balancePlatformNotificationResponse.notificationResponse); } @Override @@ -89,15 +94,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BalancePlatformNotificationResponse {\n"); - sb.append(" notificationResponse: ") - .append(toIndentedString(notificationResponse)) - .append("\n"); + sb.append(" notificationResponse: ").append(toIndentedString(notificationResponse)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -106,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BalancePlatformNotificationResponse given an JSON string * * @param jsonString JSON string * @return An instance of BalancePlatformNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BalancePlatformNotificationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to BalancePlatformNotificationResponse */ - public static BalancePlatformNotificationResponse fromJson(String jsonString) - throws JsonProcessingException { + public static BalancePlatformNotificationResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalancePlatformNotificationResponse.class); } - - /** - * Convert an instance of BalancePlatformNotificationResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BalancePlatformNotificationResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/BankAccountDetails.java b/src/main/java/com/adyen/model/configurationwebhooks/BankAccountDetails.java index a23641709..6b62e00cc 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/BankAccountDetails.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/BankAccountDetails.java @@ -2,22 +2,31 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** BankAccountDetails */ + +/** + * BankAccountDetails + */ @JsonPropertyOrder({ BankAccountDetails.JSON_PROPERTY_ACCOUNT_NUMBER, BankAccountDetails.JSON_PROPERTY_ACCOUNT_TYPE, @@ -28,6 +37,7 @@ BankAccountDetails.JSON_PROPERTY_SORT_CODE, BankAccountDetails.JSON_PROPERTY_TYPE }) + public class BankAccountDetails { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -53,7 +63,8 @@ public class BankAccountDetails { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public BankAccountDetails() {} + public BankAccountDetails() { + } /** * The bank account number, without separators or whitespace. @@ -68,7 +79,6 @@ public BankAccountDetails accountNumber(String accountNumber) { /** * The bank account number, without separators or whitespace. - * * @return accountNumber The bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -89,10 +99,9 @@ public void setAccountNumber(String accountNumber) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. - * Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * @return the current {@code BankAccountDetails} instance, allowing for method chaining */ public BankAccountDetails accountType(String accountType) { @@ -101,10 +110,8 @@ public BankAccountDetails accountType(String accountType) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. - * - * @return accountType The bank account type. Possible values: **checking** or **savings**. - * Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * @return accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,10 +120,9 @@ public String getAccountType() { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. - * Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,7 +143,6 @@ public BankAccountDetails branchNumber(String branchNumber) { /** * The bank account branch number, without separators or whitespace - * * @return branchNumber The bank account branch number, without separators or whitespace */ @JsonProperty(JSON_PROPERTY_BRANCH_NUMBER) @@ -158,19 +163,9 @@ public void setBranchNumber(String branchNumber) { } /** - * Business accounts with a `formFactor` value of **physical** are business accounts - * issued under the central bank of that country. The default value is **physical** for NL, US, - * and UK business accounts. Adyen creates a local IBAN for business accounts when the - * `formFactor` value is set to **virtual**. The local IBANs that are supported are for - * DE and FR, which reference a physical NL account, with funds being routed through the central - * bank of NL. + * Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. * - * @param formFactor Business accounts with a `formFactor` value of **physical** are - * business accounts issued under the central bank of that country. The default value is - * **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business - * accounts when the `formFactor` value is set to **virtual**. The local IBANs that - * are supported are for DE and FR, which reference a physical NL account, with funds being - * routed through the central bank of NL. + * @param formFactor Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. * @return the current {@code BankAccountDetails} instance, allowing for method chaining */ public BankAccountDetails formFactor(String formFactor) { @@ -179,19 +174,8 @@ public BankAccountDetails formFactor(String formFactor) { } /** - * Business accounts with a `formFactor` value of **physical** are business accounts - * issued under the central bank of that country. The default value is **physical** for NL, US, - * and UK business accounts. Adyen creates a local IBAN for business accounts when the - * `formFactor` value is set to **virtual**. The local IBANs that are supported are for - * DE and FR, which reference a physical NL account, with funds being routed through the central - * bank of NL. - * - * @return formFactor Business accounts with a `formFactor` value of **physical** are - * business accounts issued under the central bank of that country. The default value is - * **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business - * accounts when the `formFactor` value is set to **virtual**. The local IBANs that - * are supported are for DE and FR, which reference a physical NL account, with funds being - * routed through the central bank of NL. + * Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. + * @return formFactor Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. */ @JsonProperty(JSON_PROPERTY_FORM_FACTOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,19 +184,9 @@ public String getFormFactor() { } /** - * Business accounts with a `formFactor` value of **physical** are business accounts - * issued under the central bank of that country. The default value is **physical** for NL, US, - * and UK business accounts. Adyen creates a local IBAN for business accounts when the - * `formFactor` value is set to **virtual**. The local IBANs that are supported are for - * DE and FR, which reference a physical NL account, with funds being routed through the central - * bank of NL. + * Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. * - * @param formFactor Business accounts with a `formFactor` value of **physical** are - * business accounts issued under the central bank of that country. The default value is - * **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business - * accounts when the `formFactor` value is set to **virtual**. The local IBANs that - * are supported are for DE and FR, which reference a physical NL account, with funds being - * routed through the central bank of NL. + * @param formFactor Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. */ @JsonProperty(JSON_PROPERTY_FORM_FACTOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,11 +195,9 @@ public void setFormFactor(String formFactor) { } /** - * The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. * - * @param iban The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @param iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. * @return the current {@code BankAccountDetails} instance, allowing for method chaining */ public BankAccountDetails iban(String iban) { @@ -234,11 +206,8 @@ public BankAccountDetails iban(String iban) { } /** - * The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. - * - * @return iban The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @return iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -247,11 +216,9 @@ public String getIban() { } /** - * The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. * - * @param iban The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @param iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -260,12 +227,9 @@ public void setIban(String iban) { } /** - * The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without - * separators or whitespace. + * The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. * - * @param routingNumber The [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * whitespace. + * @param routingNumber The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. * @return the current {@code BankAccountDetails} instance, allowing for method chaining */ public BankAccountDetails routingNumber(String routingNumber) { @@ -274,12 +238,8 @@ public BankAccountDetails routingNumber(String routingNumber) { } /** - * The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without - * separators or whitespace. - * - * @return routingNumber The [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * whitespace. + * The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * @return routingNumber The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -288,12 +248,9 @@ public String getRoutingNumber() { } /** - * The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without - * separators or whitespace. + * The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. * - * @param routingNumber The [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * whitespace. + * @param routingNumber The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -304,8 +261,7 @@ public void setRoutingNumber(String routingNumber) { /** * The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. * - * @param sortCode The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or - * whitespace. + * @param sortCode The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. * @return the current {@code BankAccountDetails} instance, allowing for method chaining */ public BankAccountDetails sortCode(String sortCode) { @@ -315,9 +271,7 @@ public BankAccountDetails sortCode(String sortCode) { /** * The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. - * - * @return sortCode The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators - * or whitespace. + * @return sortCode The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_SORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -328,8 +282,7 @@ public String getSortCode() { /** * The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. * - * @param sortCode The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or - * whitespace. + * @param sortCode The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_SORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -350,7 +303,6 @@ public BankAccountDetails type(String type) { /** * **iban** or **usLocal** or **ukLocal** - * * @return type **iban** or **usLocal** or **ukLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -370,7 +322,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this BankAccountDetails object is equal to o. */ + /** + * Return true if this BankAccountDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -380,20 +334,19 @@ public boolean equals(Object o) { return false; } BankAccountDetails bankAccountDetails = (BankAccountDetails) o; - return Objects.equals(this.accountNumber, bankAccountDetails.accountNumber) - && Objects.equals(this.accountType, bankAccountDetails.accountType) - && Objects.equals(this.branchNumber, bankAccountDetails.branchNumber) - && Objects.equals(this.formFactor, bankAccountDetails.formFactor) - && Objects.equals(this.iban, bankAccountDetails.iban) - && Objects.equals(this.routingNumber, bankAccountDetails.routingNumber) - && Objects.equals(this.sortCode, bankAccountDetails.sortCode) - && Objects.equals(this.type, bankAccountDetails.type); + return Objects.equals(this.accountNumber, bankAccountDetails.accountNumber) && + Objects.equals(this.accountType, bankAccountDetails.accountType) && + Objects.equals(this.branchNumber, bankAccountDetails.branchNumber) && + Objects.equals(this.formFactor, bankAccountDetails.formFactor) && + Objects.equals(this.iban, bankAccountDetails.iban) && + Objects.equals(this.routingNumber, bankAccountDetails.routingNumber) && + Objects.equals(this.sortCode, bankAccountDetails.sortCode) && + Objects.equals(this.type, bankAccountDetails.type); } @Override public int hashCode() { - return Objects.hash( - accountNumber, accountType, branchNumber, formFactor, iban, routingNumber, sortCode, type); + return Objects.hash(accountNumber, accountType, branchNumber, formFactor, iban, routingNumber, sortCode, type); } @Override @@ -413,7 +366,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -422,23 +376,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BankAccountDetails given an JSON string * * @param jsonString JSON string * @return An instance of BankAccountDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BankAccountDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to BankAccountDetails */ public static BankAccountDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankAccountDetails.class); } - - /** - * Convert an instance of BankAccountDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BankAccountDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/BankScoreSignalTriggeredData.java b/src/main/java/com/adyen/model/configurationwebhooks/BankScoreSignalTriggeredData.java index 51cabd168..edd6dc576 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/BankScoreSignalTriggeredData.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/BankScoreSignalTriggeredData.java @@ -2,25 +2,35 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.configurationwebhooks.ResourceReference; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; -import java.util.*; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** BankScoreSignalTriggeredData */ +/** + * BankScoreSignalTriggeredData + */ @JsonPropertyOrder({ BankScoreSignalTriggeredData.JSON_PROPERTY_ACCOUNT_HOLDER, BankScoreSignalTriggeredData.JSON_PROPERTY_ACCOUNT_HOLDER_STATUS, @@ -32,6 +42,7 @@ BankScoreSignalTriggeredData.JSON_PROPERTY_SCORE_SIGNALS_TRIGGERED, BankScoreSignalTriggeredData.JSON_PROPERTY_SIGNAL_SOURCE_TYPES }) + public class BankScoreSignalTriggeredData { public static final String JSON_PROPERTY_ACCOUNT_HOLDER = "accountHolder"; private ResourceReference accountHolder; @@ -60,12 +71,13 @@ public class BankScoreSignalTriggeredData { public static final String JSON_PROPERTY_SIGNAL_SOURCE_TYPES = "signalSourceTypes"; private List signalSourceTypes; - public BankScoreSignalTriggeredData() {} + public BankScoreSignalTriggeredData() { + } /** * accountHolder * - * @param accountHolder + * @param accountHolder * @return the current {@code BankScoreSignalTriggeredData} instance, allowing for method chaining */ public BankScoreSignalTriggeredData accountHolder(ResourceReference accountHolder) { @@ -75,8 +87,7 @@ public BankScoreSignalTriggeredData accountHolder(ResourceReference accountHolde /** * Get accountHolder - * - * @return accountHolder + * @return accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,7 +98,7 @@ public ResourceReference getAccountHolder() { /** * accountHolder * - * @param accountHolder + * @param accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,7 +119,6 @@ public BankScoreSignalTriggeredData accountHolderStatus(String accountHolderStat /** * The status of the account holder. - * * @return accountHolderStatus The status of the account holder. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_STATUS) @@ -131,8 +141,7 @@ public void setAccountHolderStatus(String accountHolderStatus) { /** * The automated action(s) taken as a result of the score signals that were triggered. * - * @param automatedActions The automated action(s) taken as a result of the score signals that - * were triggered. + * @param automatedActions The automated action(s) taken as a result of the score signals that were triggered. * @return the current {@code BankScoreSignalTriggeredData} instance, allowing for method chaining */ public BankScoreSignalTriggeredData automatedActions(List automatedActions) { @@ -150,9 +159,7 @@ public BankScoreSignalTriggeredData addAutomatedActionsItem(String automatedActi /** * The automated action(s) taken as a result of the score signals that were triggered. - * - * @return automatedActions The automated action(s) taken as a result of the score signals that - * were triggered. + * @return automatedActions The automated action(s) taken as a result of the score signals that were triggered. */ @JsonProperty(JSON_PROPERTY_AUTOMATED_ACTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,8 +170,7 @@ public List getAutomatedActions() { /** * The automated action(s) taken as a result of the score signals that were triggered. * - * @param automatedActions The automated action(s) taken as a result of the score signals that - * were triggered. + * @param automatedActions The automated action(s) taken as a result of the score signals that were triggered. */ @JsonProperty(JSON_PROPERTY_AUTOMATED_ACTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,7 +191,6 @@ public BankScoreSignalTriggeredData balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. - * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -206,11 +211,9 @@ public void setBalancePlatform(String balancePlatform) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code BankScoreSignalTriggeredData} instance, allowing for method chaining */ public BankScoreSignalTriggeredData creationDate(OffsetDateTime creationDate) { @@ -219,11 +222,8 @@ public BankScoreSignalTriggeredData creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. - * - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,11 +232,9 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -257,7 +255,6 @@ public BankScoreSignalTriggeredData id(String id) { /** * The ID of the resource. - * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -290,7 +287,6 @@ public BankScoreSignalTriggeredData riskScore(Integer riskScore) { /** * The score of the identity resulting from the signal(s) that were triggered. - * * @return riskScore The score of the identity resulting from the signal(s) that were triggered. */ @JsonProperty(JSON_PROPERTY_RISK_SCORE) @@ -321,8 +317,7 @@ public BankScoreSignalTriggeredData scoreSignalsTriggered(List scoreSign return this; } - public BankScoreSignalTriggeredData addScoreSignalsTriggeredItem( - String scoreSignalsTriggeredItem) { + public BankScoreSignalTriggeredData addScoreSignalsTriggeredItem(String scoreSignalsTriggeredItem) { if (this.scoreSignalsTriggered == null) { this.scoreSignalsTriggered = new ArrayList<>(); } @@ -332,7 +327,6 @@ public BankScoreSignalTriggeredData addScoreSignalsTriggeredItem( /** * The name(s) of the score signals that were triggered. - * * @return scoreSignalsTriggered The name(s) of the score signals that were triggered. */ @JsonProperty(JSON_PROPERTY_SCORE_SIGNALS_TRIGGERED) @@ -373,7 +367,6 @@ public BankScoreSignalTriggeredData addSignalSourceTypesItem(String signalSource /** * The type(s) of the score signals that were triggered. - * * @return signalSourceTypes The type(s) of the score signals that were triggered. */ @JsonProperty(JSON_PROPERTY_SIGNAL_SOURCE_TYPES) @@ -393,7 +386,9 @@ public void setSignalSourceTypes(List signalSourceTypes) { this.signalSourceTypes = signalSourceTypes; } - /** Return true if this BankScoreSignalTriggeredData object is equal to o. */ + /** + * Return true if this BankScoreSignalTriggeredData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -403,31 +398,20 @@ public boolean equals(Object o) { return false; } BankScoreSignalTriggeredData bankScoreSignalTriggeredData = (BankScoreSignalTriggeredData) o; - return Objects.equals(this.accountHolder, bankScoreSignalTriggeredData.accountHolder) - && Objects.equals( - this.accountHolderStatus, bankScoreSignalTriggeredData.accountHolderStatus) - && Objects.equals(this.automatedActions, bankScoreSignalTriggeredData.automatedActions) - && Objects.equals(this.balancePlatform, bankScoreSignalTriggeredData.balancePlatform) - && Objects.equals(this.creationDate, bankScoreSignalTriggeredData.creationDate) - && Objects.equals(this.id, bankScoreSignalTriggeredData.id) - && Objects.equals(this.riskScore, bankScoreSignalTriggeredData.riskScore) - && Objects.equals( - this.scoreSignalsTriggered, bankScoreSignalTriggeredData.scoreSignalsTriggered) - && Objects.equals(this.signalSourceTypes, bankScoreSignalTriggeredData.signalSourceTypes); + return Objects.equals(this.accountHolder, bankScoreSignalTriggeredData.accountHolder) && + Objects.equals(this.accountHolderStatus, bankScoreSignalTriggeredData.accountHolderStatus) && + Objects.equals(this.automatedActions, bankScoreSignalTriggeredData.automatedActions) && + Objects.equals(this.balancePlatform, bankScoreSignalTriggeredData.balancePlatform) && + Objects.equals(this.creationDate, bankScoreSignalTriggeredData.creationDate) && + Objects.equals(this.id, bankScoreSignalTriggeredData.id) && + Objects.equals(this.riskScore, bankScoreSignalTriggeredData.riskScore) && + Objects.equals(this.scoreSignalsTriggered, bankScoreSignalTriggeredData.scoreSignalsTriggered) && + Objects.equals(this.signalSourceTypes, bankScoreSignalTriggeredData.signalSourceTypes); } @Override public int hashCode() { - return Objects.hash( - accountHolder, - accountHolderStatus, - automatedActions, - balancePlatform, - creationDate, - id, - riskScore, - scoreSignalsTriggered, - signalSourceTypes); + return Objects.hash(accountHolder, accountHolderStatus, automatedActions, balancePlatform, creationDate, id, riskScore, scoreSignalsTriggered, signalSourceTypes); } @Override @@ -435,24 +419,21 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BankScoreSignalTriggeredData {\n"); sb.append(" accountHolder: ").append(toIndentedString(accountHolder)).append("\n"); - sb.append(" accountHolderStatus: ") - .append(toIndentedString(accountHolderStatus)) - .append("\n"); + sb.append(" accountHolderStatus: ").append(toIndentedString(accountHolderStatus)).append("\n"); sb.append(" automatedActions: ").append(toIndentedString(automatedActions)).append("\n"); sb.append(" balancePlatform: ").append(toIndentedString(balancePlatform)).append("\n"); sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" riskScore: ").append(toIndentedString(riskScore)).append("\n"); - sb.append(" scoreSignalsTriggered: ") - .append(toIndentedString(scoreSignalsTriggered)) - .append("\n"); + sb.append(" scoreSignalsTriggered: ").append(toIndentedString(scoreSignalsTriggered)).append("\n"); sb.append(" signalSourceTypes: ").append(toIndentedString(signalSourceTypes)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -461,24 +442,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BankScoreSignalTriggeredData given an JSON string * * @param jsonString JSON string * @return An instance of BankScoreSignalTriggeredData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BankScoreSignalTriggeredData + * @throws JsonProcessingException if the JSON string is invalid with respect to BankScoreSignalTriggeredData */ - public static BankScoreSignalTriggeredData fromJson(String jsonString) - throws JsonProcessingException { + public static BankScoreSignalTriggeredData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankScoreSignalTriggeredData.class); } - - /** - * Convert an instance of BankScoreSignalTriggeredData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BankScoreSignalTriggeredData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/BulkAddress.java b/src/main/java/com/adyen/model/configurationwebhooks/BulkAddress.java index 915c510ce..dfb1871b4 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/BulkAddress.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/BulkAddress.java @@ -2,22 +2,31 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** BulkAddress */ + +/** + * BulkAddress + */ @JsonPropertyOrder({ BulkAddress.JSON_PROPERTY_CITY, BulkAddress.JSON_PROPERTY_COMPANY, @@ -29,6 +38,7 @@ BulkAddress.JSON_PROPERTY_STATE_OR_PROVINCE, BulkAddress.JSON_PROPERTY_STREET }) + public class BulkAddress { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -57,7 +67,8 @@ public class BulkAddress { public static final String JSON_PROPERTY_STREET = "street"; private String street; - public BulkAddress() {} + public BulkAddress() { + } /** * The name of the city. @@ -72,7 +83,6 @@ public BulkAddress city(String city) { /** * The name of the city. - * * @return city The name of the city. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -105,7 +115,6 @@ public BulkAddress company(String company) { /** * The name of the company. - * * @return company The name of the company. */ @JsonProperty(JSON_PROPERTY_COMPANY) @@ -138,7 +147,6 @@ public BulkAddress country(String country) { /** * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. - * * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @@ -171,7 +179,6 @@ public BulkAddress email(String email) { /** * The email address. - * * @return email The email address. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -204,7 +211,6 @@ public BulkAddress houseNumberOrName(String houseNumberOrName) { /** * The house number or name. - * * @return houseNumberOrName The house number or name. */ @JsonProperty(JSON_PROPERTY_HOUSE_NUMBER_OR_NAME) @@ -237,7 +243,6 @@ public BulkAddress mobile(String mobile) { /** * The full telephone number. - * * @return mobile The full telephone number. */ @JsonProperty(JSON_PROPERTY_MOBILE) @@ -258,11 +263,9 @@ public void setMobile(String mobile) { } /** - * The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all - * other countries. + * The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries. * - * @param postalCode The postal code. Maximum length: * 5 digits for addresses in the US. * 10 - * characters for all other countries. + * @param postalCode The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries. * @return the current {@code BulkAddress} instance, allowing for method chaining */ public BulkAddress postalCode(String postalCode) { @@ -271,11 +274,8 @@ public BulkAddress postalCode(String postalCode) { } /** - * The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all - * other countries. - * - * @return postalCode The postal code. Maximum length: * 5 digits for addresses in the US. * 10 - * characters for all other countries. + * The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries. + * @return postalCode The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,11 +284,9 @@ public String getPostalCode() { } /** - * The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all - * other countries. + * The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries. * - * @param postalCode The postal code. Maximum length: * 5 digits for addresses in the US. * 10 - * characters for all other countries. + * @param postalCode The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -297,11 +295,9 @@ public void setPostalCode(String postalCode) { } /** - * The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in - * the US. + * The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in the US. * - * @param stateOrProvince The two-letter ISO 3166-2 state or province code. Maximum length: 2 - * characters for addresses in the US. + * @param stateOrProvince The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in the US. * @return the current {@code BulkAddress} instance, allowing for method chaining */ public BulkAddress stateOrProvince(String stateOrProvince) { @@ -310,11 +306,8 @@ public BulkAddress stateOrProvince(String stateOrProvince) { } /** - * The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in - * the US. - * - * @return stateOrProvince The two-letter ISO 3166-2 state or province code. Maximum length: 2 - * characters for addresses in the US. + * The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in the US. + * @return stateOrProvince The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in the US. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -323,11 +316,9 @@ public String getStateOrProvince() { } /** - * The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in - * the US. + * The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in the US. * - * @param stateOrProvince The two-letter ISO 3166-2 state or province code. Maximum length: 2 - * characters for addresses in the US. + * @param stateOrProvince The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in the US. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -348,7 +339,6 @@ public BulkAddress street(String street) { /** * The streetname of the house. - * * @return street The streetname of the house. */ @JsonProperty(JSON_PROPERTY_STREET) @@ -368,7 +358,9 @@ public void setStreet(String street) { this.street = street; } - /** Return true if this BulkAddress object is equal to o. */ + /** + * Return true if this BulkAddress object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -378,29 +370,20 @@ public boolean equals(Object o) { return false; } BulkAddress bulkAddress = (BulkAddress) o; - return Objects.equals(this.city, bulkAddress.city) - && Objects.equals(this.company, bulkAddress.company) - && Objects.equals(this.country, bulkAddress.country) - && Objects.equals(this.email, bulkAddress.email) - && Objects.equals(this.houseNumberOrName, bulkAddress.houseNumberOrName) - && Objects.equals(this.mobile, bulkAddress.mobile) - && Objects.equals(this.postalCode, bulkAddress.postalCode) - && Objects.equals(this.stateOrProvince, bulkAddress.stateOrProvince) - && Objects.equals(this.street, bulkAddress.street); + return Objects.equals(this.city, bulkAddress.city) && + Objects.equals(this.company, bulkAddress.company) && + Objects.equals(this.country, bulkAddress.country) && + Objects.equals(this.email, bulkAddress.email) && + Objects.equals(this.houseNumberOrName, bulkAddress.houseNumberOrName) && + Objects.equals(this.mobile, bulkAddress.mobile) && + Objects.equals(this.postalCode, bulkAddress.postalCode) && + Objects.equals(this.stateOrProvince, bulkAddress.stateOrProvince) && + Objects.equals(this.street, bulkAddress.street); } @Override public int hashCode() { - return Objects.hash( - city, - company, - country, - email, - houseNumberOrName, - mobile, - postalCode, - stateOrProvince, - street); + return Objects.hash(city, company, country, email, houseNumberOrName, mobile, postalCode, stateOrProvince, street); } @Override @@ -421,7 +404,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -430,7 +414,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BulkAddress given an JSON string * * @param jsonString JSON string @@ -440,12 +424,11 @@ private String toIndentedString(Object o) { public static BulkAddress fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BulkAddress.class); } - - /** - * Convert an instance of BulkAddress to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BulkAddress to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblem.java b/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblem.java index 405a147aa..3327ec072 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblem.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblem.java @@ -2,28 +2,40 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.configurationwebhooks.CapabilityProblemEntity; +import com.adyen.model.configurationwebhooks.VerificationError; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CapabilityProblem */ +/** + * CapabilityProblem + */ @JsonPropertyOrder({ CapabilityProblem.JSON_PROPERTY_ENTITY, CapabilityProblem.JSON_PROPERTY_VERIFICATION_ERRORS }) + public class CapabilityProblem { public static final String JSON_PROPERTY_ENTITY = "entity"; private CapabilityProblemEntity entity; @@ -31,12 +43,13 @@ public class CapabilityProblem { public static final String JSON_PROPERTY_VERIFICATION_ERRORS = "verificationErrors"; private List verificationErrors; - public CapabilityProblem() {} + public CapabilityProblem() { + } /** * entity * - * @param entity + * @param entity * @return the current {@code CapabilityProblem} instance, allowing for method chaining */ public CapabilityProblem entity(CapabilityProblemEntity entity) { @@ -46,8 +59,7 @@ public CapabilityProblem entity(CapabilityProblemEntity entity) { /** * Get entity - * - * @return entity + * @return entity */ @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,7 +70,7 @@ public CapabilityProblemEntity getEntity() { /** * entity * - * @param entity + * @param entity */ @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,7 +99,6 @@ public CapabilityProblem addVerificationErrorsItem(VerificationError verificatio /** * Contains information about the verification error. - * * @return verificationErrors Contains information about the verification error. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_ERRORS) @@ -107,7 +118,9 @@ public void setVerificationErrors(List verificationErrors) { this.verificationErrors = verificationErrors; } - /** Return true if this CapabilityProblem object is equal to o. */ + /** + * Return true if this CapabilityProblem object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -117,8 +130,8 @@ public boolean equals(Object o) { return false; } CapabilityProblem capabilityProblem = (CapabilityProblem) o; - return Objects.equals(this.entity, capabilityProblem.entity) - && Objects.equals(this.verificationErrors, capabilityProblem.verificationErrors); + return Objects.equals(this.entity, capabilityProblem.entity) && + Objects.equals(this.verificationErrors, capabilityProblem.verificationErrors); } @Override @@ -137,7 +150,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -146,7 +160,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CapabilityProblem given an JSON string * * @param jsonString JSON string @@ -156,12 +170,11 @@ private String toIndentedString(Object o) { public static CapabilityProblem fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapabilityProblem.class); } - - /** - * Convert an instance of CapabilityProblem to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CapabilityProblem to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblemEntity.java b/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblemEntity.java index 9e69b916a..12db946c8 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblemEntity.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblemEntity.java @@ -2,34 +2,41 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.configurationwebhooks.CapabilityProblemEntityRecursive; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** CapabilityProblemEntity */ + +/** + * CapabilityProblemEntity + */ @JsonPropertyOrder({ CapabilityProblemEntity.JSON_PROPERTY_DOCUMENTS, CapabilityProblemEntity.JSON_PROPERTY_ID, CapabilityProblemEntity.JSON_PROPERTY_OWNER, CapabilityProblemEntity.JSON_PROPERTY_TYPE }) + public class CapabilityProblemEntity { public static final String JSON_PROPERTY_DOCUMENTS = "documents"; private List documents; @@ -40,8 +47,11 @@ public class CapabilityProblemEntity { public static final String JSON_PROPERTY_OWNER = "owner"; private CapabilityProblemEntityRecursive owner; - /** Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. */ + /** + * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + */ public enum TypeEnum { + BANKACCOUNT(String.valueOf("BankAccount")), DOCUMENT(String.valueOf("Document")), @@ -53,7 +63,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -74,11 +84,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -86,14 +92,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CapabilityProblemEntity() {} + public CapabilityProblemEntity() { + } /** - * List of document IDs to which the verification errors related to the capabilities correspond - * to. + * List of document IDs to which the verification errors related to the capabilities correspond to. * - * @param documents List of document IDs to which the verification errors related to the - * capabilities correspond to. + * @param documents List of document IDs to which the verification errors related to the capabilities correspond to. * @return the current {@code CapabilityProblemEntity} instance, allowing for method chaining */ public CapabilityProblemEntity documents(List documents) { @@ -110,11 +115,8 @@ public CapabilityProblemEntity addDocumentsItem(String documentsItem) { } /** - * List of document IDs to which the verification errors related to the capabilities correspond - * to. - * - * @return documents List of document IDs to which the verification errors related to the - * capabilities correspond to. + * List of document IDs to which the verification errors related to the capabilities correspond to. + * @return documents List of document IDs to which the verification errors related to the capabilities correspond to. */ @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,11 +125,9 @@ public List getDocuments() { } /** - * List of document IDs to which the verification errors related to the capabilities correspond - * to. + * List of document IDs to which the verification errors related to the capabilities correspond to. * - * @param documents List of document IDs to which the verification errors related to the - * capabilities correspond to. + * @param documents List of document IDs to which the verification errors related to the capabilities correspond to. */ @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,7 +148,6 @@ public CapabilityProblemEntity id(String id) { /** * The ID of the entity. - * * @return id The ID of the entity. */ @JsonProperty(JSON_PROPERTY_ID) @@ -171,7 +170,7 @@ public void setId(String id) { /** * owner * - * @param owner + * @param owner * @return the current {@code CapabilityProblemEntity} instance, allowing for method chaining */ public CapabilityProblemEntity owner(CapabilityProblemEntityRecursive owner) { @@ -181,8 +180,7 @@ public CapabilityProblemEntity owner(CapabilityProblemEntityRecursive owner) { /** * Get owner - * - * @return owner + * @return owner */ @JsonProperty(JSON_PROPERTY_OWNER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,7 +191,7 @@ public CapabilityProblemEntityRecursive getOwner() { /** * owner * - * @param owner + * @param owner */ @JsonProperty(JSON_PROPERTY_OWNER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -202,9 +200,9 @@ public void setOwner(CapabilityProblemEntityRecursive owner) { } /** - * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. * - * @param type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * @param type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. * @return the current {@code CapabilityProblemEntity} instance, allowing for method chaining */ public CapabilityProblemEntity type(TypeEnum type) { @@ -213,9 +211,8 @@ public CapabilityProblemEntity type(TypeEnum type) { } /** - * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. - * - * @return type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * @return type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,9 +221,9 @@ public TypeEnum getType() { } /** - * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. * - * @param type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * @param type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -234,7 +231,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this CapabilityProblemEntity object is equal to o. */ + /** + * Return true if this CapabilityProblemEntity object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -244,10 +243,10 @@ public boolean equals(Object o) { return false; } CapabilityProblemEntity capabilityProblemEntity = (CapabilityProblemEntity) o; - return Objects.equals(this.documents, capabilityProblemEntity.documents) - && Objects.equals(this.id, capabilityProblemEntity.id) - && Objects.equals(this.owner, capabilityProblemEntity.owner) - && Objects.equals(this.type, capabilityProblemEntity.type); + return Objects.equals(this.documents, capabilityProblemEntity.documents) && + Objects.equals(this.id, capabilityProblemEntity.id) && + Objects.equals(this.owner, capabilityProblemEntity.owner) && + Objects.equals(this.type, capabilityProblemEntity.type); } @Override @@ -268,7 +267,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -277,23 +277,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CapabilityProblemEntity given an JSON string * * @param jsonString JSON string * @return An instance of CapabilityProblemEntity - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CapabilityProblemEntity + * @throws JsonProcessingException if the JSON string is invalid with respect to CapabilityProblemEntity */ public static CapabilityProblemEntity fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapabilityProblemEntity.class); } - - /** - * Convert an instance of CapabilityProblemEntity to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CapabilityProblemEntity to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblemEntityRecursive.java b/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblemEntityRecursive.java index f553e8278..708860895 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblemEntityRecursive.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblemEntityRecursive.java @@ -2,35 +2,40 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** CapabilityProblemEntityRecursive */ + +/** + * CapabilityProblemEntityRecursive + */ @JsonPropertyOrder({ CapabilityProblemEntityRecursive.JSON_PROPERTY_DOCUMENTS, CapabilityProblemEntityRecursive.JSON_PROPERTY_ID, CapabilityProblemEntityRecursive.JSON_PROPERTY_TYPE }) @JsonTypeName("CapabilityProblemEntity-recursive") + public class CapabilityProblemEntityRecursive { public static final String JSON_PROPERTY_DOCUMENTS = "documents"; private List documents; @@ -38,8 +43,11 @@ public class CapabilityProblemEntityRecursive { public static final String JSON_PROPERTY_ID = "id"; private String id; - /** Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. */ + /** + * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + */ public enum TypeEnum { + BANKACCOUNT(String.valueOf("BankAccount")), DOCUMENT(String.valueOf("Document")), @@ -51,7 +59,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -72,11 +80,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -84,16 +88,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CapabilityProblemEntityRecursive() {} + public CapabilityProblemEntityRecursive() { + } /** - * List of document IDs to which the verification errors related to the capabilities correspond - * to. + * List of document IDs to which the verification errors related to the capabilities correspond to. * - * @param documents List of document IDs to which the verification errors related to the - * capabilities correspond to. - * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method - * chaining + * @param documents List of document IDs to which the verification errors related to the capabilities correspond to. + * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method chaining */ public CapabilityProblemEntityRecursive documents(List documents) { this.documents = documents; @@ -109,11 +111,8 @@ public CapabilityProblemEntityRecursive addDocumentsItem(String documentsItem) { } /** - * List of document IDs to which the verification errors related to the capabilities correspond - * to. - * - * @return documents List of document IDs to which the verification errors related to the - * capabilities correspond to. + * List of document IDs to which the verification errors related to the capabilities correspond to. + * @return documents List of document IDs to which the verification errors related to the capabilities correspond to. */ @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -122,11 +121,9 @@ public List getDocuments() { } /** - * List of document IDs to which the verification errors related to the capabilities correspond - * to. + * List of document IDs to which the verification errors related to the capabilities correspond to. * - * @param documents List of document IDs to which the verification errors related to the - * capabilities correspond to. + * @param documents List of document IDs to which the verification errors related to the capabilities correspond to. */ @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,8 +135,7 @@ public void setDocuments(List documents) { * The ID of the entity. * * @param id The ID of the entity. - * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method - * chaining + * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method chaining */ public CapabilityProblemEntityRecursive id(String id) { this.id = id; @@ -148,7 +144,6 @@ public CapabilityProblemEntityRecursive id(String id) { /** * The ID of the entity. - * * @return id The ID of the entity. */ @JsonProperty(JSON_PROPERTY_ID) @@ -169,11 +164,10 @@ public void setId(String id) { } /** - * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. * - * @param type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. - * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method - * chaining + * @param type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method chaining */ public CapabilityProblemEntityRecursive type(TypeEnum type) { this.type = type; @@ -181,9 +175,8 @@ public CapabilityProblemEntityRecursive type(TypeEnum type) { } /** - * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. - * - * @return type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * @return type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,9 +185,9 @@ public TypeEnum getType() { } /** - * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. * - * @param type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * @param type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -202,7 +195,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this CapabilityProblemEntity-recursive object is equal to o. */ + /** + * Return true if this CapabilityProblemEntity-recursive object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -211,11 +206,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CapabilityProblemEntityRecursive capabilityProblemEntityRecursive = - (CapabilityProblemEntityRecursive) o; - return Objects.equals(this.documents, capabilityProblemEntityRecursive.documents) - && Objects.equals(this.id, capabilityProblemEntityRecursive.id) - && Objects.equals(this.type, capabilityProblemEntityRecursive.type); + CapabilityProblemEntityRecursive capabilityProblemEntityRecursive = (CapabilityProblemEntityRecursive) o; + return Objects.equals(this.documents, capabilityProblemEntityRecursive.documents) && + Objects.equals(this.id, capabilityProblemEntityRecursive.id) && + Objects.equals(this.type, capabilityProblemEntityRecursive.type); } @Override @@ -235,7 +229,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -244,24 +239,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CapabilityProblemEntityRecursive given an JSON string * * @param jsonString JSON string * @return An instance of CapabilityProblemEntityRecursive - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CapabilityProblemEntityRecursive + * @throws JsonProcessingException if the JSON string is invalid with respect to CapabilityProblemEntityRecursive */ - public static CapabilityProblemEntityRecursive fromJson(String jsonString) - throws JsonProcessingException { + public static CapabilityProblemEntityRecursive fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapabilityProblemEntityRecursive.class); } - - /** - * Convert an instance of CapabilityProblemEntityRecursive to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CapabilityProblemEntityRecursive to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/CapabilitySettings.java b/src/main/java/com/adyen/model/configurationwebhooks/CapabilitySettings.java index 816edc10c..8fa2b7b62 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/CapabilitySettings.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/CapabilitySettings.java @@ -2,30 +2,36 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.configurationwebhooks.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CapabilitySettings */ +/** + * CapabilitySettings + */ @JsonPropertyOrder({ CapabilitySettings.JSON_PROPERTY_AMOUNT_PER_INDUSTRY, CapabilitySettings.JSON_PROPERTY_AUTHORIZED_CARD_USERS, @@ -33,6 +39,7 @@ CapabilitySettings.JSON_PROPERTY_INTERVAL, CapabilitySettings.JSON_PROPERTY_MAX_AMOUNT }) + public class CapabilitySettings { public static final String JSON_PROPERTY_AMOUNT_PER_INDUSTRY = "amountPerIndustry"; private Map amountPerIndustry; @@ -40,8 +47,11 @@ public class CapabilitySettings { public static final String JSON_PROPERTY_AUTHORIZED_CARD_USERS = "authorizedCardUsers"; private Boolean authorizedCardUsers; - /** Gets or Sets fundingSource */ + /** + * Gets or Sets fundingSource + */ public enum FundingSourceEnum { + CREDIT(String.valueOf("credit")), DEBIT(String.valueOf("debit")), @@ -53,7 +63,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -74,11 +84,7 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FundingSourceEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FundingSourceEnum.values())); + LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -86,8 +92,11 @@ public static FundingSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_FUNDING_SOURCE = "fundingSource"; private List fundingSource; - /** */ + /** + * + */ public enum IntervalEnum { + DAILY(String.valueOf("daily")), MONTHLY(String.valueOf("monthly")), @@ -99,7 +108,7 @@ public enum IntervalEnum { private String value; IntervalEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -120,11 +129,7 @@ public static IntervalEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "IntervalEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(IntervalEnum.values())); + LOG.warning("IntervalEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(IntervalEnum.values())); return null; } } @@ -135,10 +140,13 @@ public static IntervalEnum fromValue(String value) { public static final String JSON_PROPERTY_MAX_AMOUNT = "maxAmount"; private Amount maxAmount; - public CapabilitySettings() {} + public CapabilitySettings() { + } /** - * @param amountPerIndustry + * + * + * @param amountPerIndustry * @return the current {@code CapabilitySettings} instance, allowing for method chaining */ public CapabilitySettings amountPerIndustry(Map amountPerIndustry) { @@ -155,7 +163,8 @@ public CapabilitySettings putAmountPerIndustryItem(String key, Amount amountPerI } /** - * @return amountPerIndustry + * + * @return amountPerIndustry */ @JsonProperty(JSON_PROPERTY_AMOUNT_PER_INDUSTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -164,7 +173,9 @@ public Map getAmountPerIndustry() { } /** - * @param amountPerIndustry + * + * + * @param amountPerIndustry */ @JsonProperty(JSON_PROPERTY_AMOUNT_PER_INDUSTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,7 +184,9 @@ public void setAmountPerIndustry(Map amountPerIndustry) { } /** - * @param authorizedCardUsers + * + * + * @param authorizedCardUsers * @return the current {@code CapabilitySettings} instance, allowing for method chaining */ public CapabilitySettings authorizedCardUsers(Boolean authorizedCardUsers) { @@ -182,7 +195,8 @@ public CapabilitySettings authorizedCardUsers(Boolean authorizedCardUsers) { } /** - * @return authorizedCardUsers + * + * @return authorizedCardUsers */ @JsonProperty(JSON_PROPERTY_AUTHORIZED_CARD_USERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,7 +205,9 @@ public Boolean getAuthorizedCardUsers() { } /** - * @param authorizedCardUsers + * + * + * @param authorizedCardUsers */ @JsonProperty(JSON_PROPERTY_AUTHORIZED_CARD_USERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,7 +216,9 @@ public void setAuthorizedCardUsers(Boolean authorizedCardUsers) { } /** - * @param fundingSource + * + * + * @param fundingSource * @return the current {@code CapabilitySettings} instance, allowing for method chaining */ public CapabilitySettings fundingSource(List fundingSource) { @@ -217,7 +235,8 @@ public CapabilitySettings addFundingSourceItem(FundingSourceEnum fundingSourceIt } /** - * @return fundingSource + * + * @return fundingSource */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -226,7 +245,9 @@ public List getFundingSource() { } /** - * @param fundingSource + * + * + * @param fundingSource */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -235,7 +256,9 @@ public void setFundingSource(List fundingSource) { } /** - * @param interval + * + * + * @param interval * @return the current {@code CapabilitySettings} instance, allowing for method chaining */ public CapabilitySettings interval(IntervalEnum interval) { @@ -244,7 +267,8 @@ public CapabilitySettings interval(IntervalEnum interval) { } /** - * @return interval + * + * @return interval */ @JsonProperty(JSON_PROPERTY_INTERVAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -253,7 +277,9 @@ public IntervalEnum getInterval() { } /** - * @param interval + * + * + * @param interval */ @JsonProperty(JSON_PROPERTY_INTERVAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -264,7 +290,7 @@ public void setInterval(IntervalEnum interval) { /** * maxAmount * - * @param maxAmount + * @param maxAmount * @return the current {@code CapabilitySettings} instance, allowing for method chaining */ public CapabilitySettings maxAmount(Amount maxAmount) { @@ -274,8 +300,7 @@ public CapabilitySettings maxAmount(Amount maxAmount) { /** * Get maxAmount - * - * @return maxAmount + * @return maxAmount */ @JsonProperty(JSON_PROPERTY_MAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -286,7 +311,7 @@ public Amount getMaxAmount() { /** * maxAmount * - * @param maxAmount + * @param maxAmount */ @JsonProperty(JSON_PROPERTY_MAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -294,7 +319,9 @@ public void setMaxAmount(Amount maxAmount) { this.maxAmount = maxAmount; } - /** Return true if this CapabilitySettings object is equal to o. */ + /** + * Return true if this CapabilitySettings object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -304,11 +331,11 @@ public boolean equals(Object o) { return false; } CapabilitySettings capabilitySettings = (CapabilitySettings) o; - return Objects.equals(this.amountPerIndustry, capabilitySettings.amountPerIndustry) - && Objects.equals(this.authorizedCardUsers, capabilitySettings.authorizedCardUsers) - && Objects.equals(this.fundingSource, capabilitySettings.fundingSource) - && Objects.equals(this.interval, capabilitySettings.interval) - && Objects.equals(this.maxAmount, capabilitySettings.maxAmount); + return Objects.equals(this.amountPerIndustry, capabilitySettings.amountPerIndustry) && + Objects.equals(this.authorizedCardUsers, capabilitySettings.authorizedCardUsers) && + Objects.equals(this.fundingSource, capabilitySettings.fundingSource) && + Objects.equals(this.interval, capabilitySettings.interval) && + Objects.equals(this.maxAmount, capabilitySettings.maxAmount); } @Override @@ -321,9 +348,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CapabilitySettings {\n"); sb.append(" amountPerIndustry: ").append(toIndentedString(amountPerIndustry)).append("\n"); - sb.append(" authorizedCardUsers: ") - .append(toIndentedString(authorizedCardUsers)) - .append("\n"); + sb.append(" authorizedCardUsers: ").append(toIndentedString(authorizedCardUsers)).append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); sb.append(" interval: ").append(toIndentedString(interval)).append("\n"); sb.append(" maxAmount: ").append(toIndentedString(maxAmount)).append("\n"); @@ -332,7 +357,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -341,23 +367,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CapabilitySettings given an JSON string * * @param jsonString JSON string * @return An instance of CapabilitySettings - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CapabilitySettings + * @throws JsonProcessingException if the JSON string is invalid with respect to CapabilitySettings */ public static CapabilitySettings fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapabilitySettings.class); } - - /** - * Convert an instance of CapabilitySettings to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CapabilitySettings to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Card.java b/src/main/java/com/adyen/model/configurationwebhooks/Card.java index e2086496b..9110d2a24 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Card.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Card.java @@ -2,26 +2,35 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.configurationwebhooks.Authentication; +import com.adyen.model.configurationwebhooks.CardConfiguration; +import com.adyen.model.configurationwebhooks.DeliveryContact; +import com.adyen.model.configurationwebhooks.Expiry; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** Card */ +/** + * Card + */ @JsonPropertyOrder({ Card.JSON_PROPERTY_AUTHENTICATION, Card.JSON_PROPERTY_BIN, @@ -38,6 +47,7 @@ Card.JSON_PROPERTY_THREE_D_SECURE, Card.JSON_PROPERTY_USAGE }) + public class Card { public static final String JSON_PROPERTY_AUTHENTICATION = "authentication"; private Authentication authentication; @@ -66,8 +76,11 @@ public class Card { public static final String JSON_PROPERTY_EXPIRATION = "expiration"; private Expiry expiration; - /** The form factor of the card. Possible values: **virtual**, **physical**. */ + /** + * The form factor of the card. Possible values: **virtual**, **physical**. + */ public enum FormFactorEnum { + PHYSICAL(String.valueOf("physical")), UNKNOWN(String.valueOf("unknown")), @@ -79,7 +92,7 @@ public enum FormFactorEnum { private String value; FormFactorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -100,11 +113,7 @@ public static FormFactorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FormFactorEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FormFactorEnum.values())); + LOG.warning("FormFactorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FormFactorEnum.values())); return null; } } @@ -124,12 +133,13 @@ public static FormFactorEnum fromValue(String value) { public static final String JSON_PROPERTY_USAGE = "usage"; private String usage; - public Card() {} + public Card() { + } /** * authentication * - * @param authentication + * @param authentication * @return the current {@code Card} instance, allowing for method chaining */ public Card authentication(Authentication authentication) { @@ -139,8 +149,7 @@ public Card authentication(Authentication authentication) { /** * Get authentication - * - * @return authentication + * @return authentication */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,7 +160,7 @@ public Authentication getAuthentication() { /** * authentication * - * @param authentication + * @param authentication */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,7 +181,6 @@ public Card bin(String bin) { /** * The bank identification number (BIN) of the card number. - * * @return bin The bank identification number (BIN) of the card number. */ @JsonProperty(JSON_PROPERTY_BIN) @@ -205,7 +213,6 @@ public Card brand(String brand) { /** * The brand of the physical or the virtual card. Possible values: **visa**, **mc**. - * * @return brand The brand of the physical or the virtual card. Possible values: **visa**, **mc**. */ @JsonProperty(JSON_PROPERTY_BRAND) @@ -226,13 +233,9 @@ public void setBrand(String brand) { } /** - * The brand variant of the physical or the virtual card. For example, **visadebit** or - * **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your - * integration. + * The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. * - * @param brandVariant The brand variant of the physical or the virtual card. For example, - * **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values - * relevant for your integration. + * @param brandVariant The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. * @return the current {@code Card} instance, allowing for method chaining */ public Card brandVariant(String brandVariant) { @@ -241,13 +244,8 @@ public Card brandVariant(String brandVariant) { } /** - * The brand variant of the physical or the virtual card. For example, **visadebit** or - * **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your - * integration. - * - * @return brandVariant The brand variant of the physical or the virtual card. For example, - * **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values - * relevant for your integration. + * The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. + * @return brandVariant The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. */ @JsonProperty(JSON_PROPERTY_BRAND_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -256,13 +254,9 @@ public String getBrandVariant() { } /** - * The brand variant of the physical or the virtual card. For example, **visadebit** or - * **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your - * integration. + * The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. * - * @param brandVariant The brand variant of the physical or the virtual card. For example, - * **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values - * relevant for your integration. + * @param brandVariant The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. */ @JsonProperty(JSON_PROPERTY_BRAND_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -271,9 +265,9 @@ public void setBrandVariant(String brandVariant) { } /** - * The name of the cardholder. Maximum length: 26 characters. + * The name of the cardholder. Maximum length: 26 characters. * - * @param cardholderName The name of the cardholder. Maximum length: 26 characters. + * @param cardholderName The name of the cardholder. Maximum length: 26 characters. * @return the current {@code Card} instance, allowing for method chaining */ public Card cardholderName(String cardholderName) { @@ -282,9 +276,8 @@ public Card cardholderName(String cardholderName) { } /** - * The name of the cardholder. Maximum length: 26 characters. - * - * @return cardholderName The name of the cardholder. Maximum length: 26 characters. + * The name of the cardholder. Maximum length: 26 characters. + * @return cardholderName The name of the cardholder. Maximum length: 26 characters. */ @JsonProperty(JSON_PROPERTY_CARDHOLDER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -293,9 +286,9 @@ public String getCardholderName() { } /** - * The name of the cardholder. Maximum length: 26 characters. + * The name of the cardholder. Maximum length: 26 characters. * - * @param cardholderName The name of the cardholder. Maximum length: 26 characters. + * @param cardholderName The name of the cardholder. Maximum length: 26 characters. */ @JsonProperty(JSON_PROPERTY_CARDHOLDER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -306,7 +299,7 @@ public void setCardholderName(String cardholderName) { /** * configuration * - * @param configuration + * @param configuration * @return the current {@code Card} instance, allowing for method chaining */ public Card configuration(CardConfiguration configuration) { @@ -316,8 +309,7 @@ public Card configuration(CardConfiguration configuration) { /** * Get configuration - * - * @return configuration + * @return configuration */ @JsonProperty(JSON_PROPERTY_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -328,7 +320,7 @@ public CardConfiguration getConfiguration() { /** * configuration * - * @param configuration + * @param configuration */ @JsonProperty(JSON_PROPERTY_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -337,11 +329,9 @@ public void setConfiguration(CardConfiguration configuration) { } /** - * The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the - * `POST` response for single-use virtual cards. + * The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards. * - * @param cvc The CVC2 value of the card. > The CVC2 is not sent by default. This is only - * returned in the `POST` response for single-use virtual cards. + * @param cvc The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards. * @return the current {@code Card} instance, allowing for method chaining */ public Card cvc(String cvc) { @@ -350,11 +340,8 @@ public Card cvc(String cvc) { } /** - * The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the - * `POST` response for single-use virtual cards. - * - * @return cvc The CVC2 value of the card. > The CVC2 is not sent by default. This is only - * returned in the `POST` response for single-use virtual cards. + * The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards. + * @return cvc The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards. */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -363,11 +350,9 @@ public String getCvc() { } /** - * The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the - * `POST` response for single-use virtual cards. + * The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards. * - * @param cvc The CVC2 value of the card. > The CVC2 is not sent by default. This is only - * returned in the `POST` response for single-use virtual cards. + * @param cvc The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards. */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -378,7 +363,7 @@ public void setCvc(String cvc) { /** * deliveryContact * - * @param deliveryContact + * @param deliveryContact * @return the current {@code Card} instance, allowing for method chaining */ public Card deliveryContact(DeliveryContact deliveryContact) { @@ -388,8 +373,7 @@ public Card deliveryContact(DeliveryContact deliveryContact) { /** * Get deliveryContact - * - * @return deliveryContact + * @return deliveryContact */ @JsonProperty(JSON_PROPERTY_DELIVERY_CONTACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -400,7 +384,7 @@ public DeliveryContact getDeliveryContact() { /** * deliveryContact * - * @param deliveryContact + * @param deliveryContact */ @JsonProperty(JSON_PROPERTY_DELIVERY_CONTACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -411,7 +395,7 @@ public void setDeliveryContact(DeliveryContact deliveryContact) { /** * expiration * - * @param expiration + * @param expiration * @return the current {@code Card} instance, allowing for method chaining */ public Card expiration(Expiry expiration) { @@ -421,8 +405,7 @@ public Card expiration(Expiry expiration) { /** * Get expiration - * - * @return expiration + * @return expiration */ @JsonProperty(JSON_PROPERTY_EXPIRATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -433,7 +416,7 @@ public Expiry getExpiration() { /** * expiration * - * @param expiration + * @param expiration */ @JsonProperty(JSON_PROPERTY_EXPIRATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -454,7 +437,6 @@ public Card formFactor(FormFactorEnum formFactor) { /** * The form factor of the card. Possible values: **virtual**, **physical**. - * * @return formFactor The form factor of the card. Possible values: **virtual**, **physical**. */ @JsonProperty(JSON_PROPERTY_FORM_FACTOR) @@ -487,7 +469,6 @@ public Card lastFour(String lastFour) { /** * Last last four digits of the card number. - * * @return lastFour Last last four digits of the card number. */ @JsonProperty(JSON_PROPERTY_LAST_FOUR) @@ -508,11 +489,9 @@ public void setLastFour(String lastFour) { } /** - * The primary account number (PAN) of the card. > The PAN is masked by default and returned - * only for single-use virtual cards. + * The primary account number (PAN) of the card. > The PAN is masked by default and returned only for single-use virtual cards. * - * @param number The primary account number (PAN) of the card. > The PAN is masked by default - * and returned only for single-use virtual cards. + * @param number The primary account number (PAN) of the card. > The PAN is masked by default and returned only for single-use virtual cards. * @return the current {@code Card} instance, allowing for method chaining */ public Card number(String number) { @@ -521,11 +500,8 @@ public Card number(String number) { } /** - * The primary account number (PAN) of the card. > The PAN is masked by default and returned - * only for single-use virtual cards. - * - * @return number The primary account number (PAN) of the card. > The PAN is masked by default - * and returned only for single-use virtual cards. + * The primary account number (PAN) of the card. > The PAN is masked by default and returned only for single-use virtual cards. + * @return number The primary account number (PAN) of the card. > The PAN is masked by default and returned only for single-use virtual cards. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -534,11 +510,9 @@ public String getNumber() { } /** - * The primary account number (PAN) of the card. > The PAN is masked by default and returned - * only for single-use virtual cards. + * The primary account number (PAN) of the card. > The PAN is masked by default and returned only for single-use virtual cards. * - * @param number The primary account number (PAN) of the card. > The PAN is masked by default - * and returned only for single-use virtual cards. + * @param number The primary account number (PAN) of the card. > The PAN is masked by default and returned only for single-use virtual cards. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -547,13 +521,9 @@ public void setNumber(String number) { } /** - * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, - * **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your - * integration. + * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. * - * @param threeDSecure The 3DS configuration of the physical or the virtual card. Possible values: - * **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the - * values relevant for your integration. + * @param threeDSecure The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. * @return the current {@code Card} instance, allowing for method chaining */ public Card threeDSecure(String threeDSecure) { @@ -562,13 +532,8 @@ public Card threeDSecure(String threeDSecure) { } /** - * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, - * **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your - * integration. - * - * @return threeDSecure The 3DS configuration of the physical or the virtual card. Possible - * values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to - * get the values relevant for your integration. + * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. + * @return threeDSecure The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. */ @JsonProperty(JSON_PROPERTY_THREE_D_SECURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -577,13 +542,9 @@ public String getThreeDSecure() { } /** - * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, - * **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your - * integration. + * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. * - * @param threeDSecure The 3DS configuration of the physical or the virtual card. Possible values: - * **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the - * values relevant for your integration. + * @param threeDSecure The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. */ @JsonProperty(JSON_PROPERTY_THREE_D_SECURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -592,12 +553,9 @@ public void setThreeDSecure(String threeDSecure) { } /** - * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. - * > Reach out to your Adyen contact to determine the value relevant for your integration. + * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. * - * @param usage Specifies how many times the card can be used. Possible values: **singleUse**, - * **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your - * integration. + * @param usage Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. * @return the current {@code Card} instance, allowing for method chaining */ public Card usage(String usage) { @@ -606,12 +564,8 @@ public Card usage(String usage) { } /** - * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. - * > Reach out to your Adyen contact to determine the value relevant for your integration. - * - * @return usage Specifies how many times the card can be used. Possible values: **singleUse**, - * **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your - * integration. + * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. + * @return usage Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. */ @JsonProperty(JSON_PROPERTY_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -620,12 +574,9 @@ public String getUsage() { } /** - * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. - * > Reach out to your Adyen contact to determine the value relevant for your integration. + * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. * - * @param usage Specifies how many times the card can be used. Possible values: **singleUse**, - * **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your - * integration. + * @param usage Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. */ @JsonProperty(JSON_PROPERTY_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -633,7 +584,9 @@ public void setUsage(String usage) { this.usage = usage; } - /** Return true if this Card object is equal to o. */ + /** + * Return true if this Card object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -643,39 +596,25 @@ public boolean equals(Object o) { return false; } Card card = (Card) o; - return Objects.equals(this.authentication, card.authentication) - && Objects.equals(this.bin, card.bin) - && Objects.equals(this.brand, card.brand) - && Objects.equals(this.brandVariant, card.brandVariant) - && Objects.equals(this.cardholderName, card.cardholderName) - && Objects.equals(this.configuration, card.configuration) - && Objects.equals(this.cvc, card.cvc) - && Objects.equals(this.deliveryContact, card.deliveryContact) - && Objects.equals(this.expiration, card.expiration) - && Objects.equals(this.formFactor, card.formFactor) - && Objects.equals(this.lastFour, card.lastFour) - && Objects.equals(this.number, card.number) - && Objects.equals(this.threeDSecure, card.threeDSecure) - && Objects.equals(this.usage, card.usage); + return Objects.equals(this.authentication, card.authentication) && + Objects.equals(this.bin, card.bin) && + Objects.equals(this.brand, card.brand) && + Objects.equals(this.brandVariant, card.brandVariant) && + Objects.equals(this.cardholderName, card.cardholderName) && + Objects.equals(this.configuration, card.configuration) && + Objects.equals(this.cvc, card.cvc) && + Objects.equals(this.deliveryContact, card.deliveryContact) && + Objects.equals(this.expiration, card.expiration) && + Objects.equals(this.formFactor, card.formFactor) && + Objects.equals(this.lastFour, card.lastFour) && + Objects.equals(this.number, card.number) && + Objects.equals(this.threeDSecure, card.threeDSecure) && + Objects.equals(this.usage, card.usage); } @Override public int hashCode() { - return Objects.hash( - authentication, - bin, - brand, - brandVariant, - cardholderName, - configuration, - cvc, - deliveryContact, - expiration, - formFactor, - lastFour, - number, - threeDSecure, - usage); + return Objects.hash(authentication, bin, brand, brandVariant, cardholderName, configuration, cvc, deliveryContact, expiration, formFactor, lastFour, number, threeDSecure, usage); } @Override @@ -701,7 +640,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -710,7 +650,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Card given an JSON string * * @param jsonString JSON string @@ -720,12 +660,11 @@ private String toIndentedString(Object o) { public static Card fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Card.class); } - - /** - * Convert an instance of Card to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Card to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/CardConfiguration.java b/src/main/java/com/adyen/model/configurationwebhooks/CardConfiguration.java index dd2eeaa80..f4b6f56d4 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/CardConfiguration.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/CardConfiguration.java @@ -2,22 +2,32 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.configurationwebhooks.BulkAddress; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** CardConfiguration */ + +/** + * CardConfiguration + */ @JsonPropertyOrder({ CardConfiguration.JSON_PROPERTY_ACTIVATION, CardConfiguration.JSON_PROPERTY_ACTIVATION_URL, @@ -34,6 +44,7 @@ CardConfiguration.JSON_PROPERTY_PIN_MAILER, CardConfiguration.JSON_PROPERTY_SHIPMENT_METHOD }) + public class CardConfiguration { public static final String JSON_PROPERTY_ACTIVATION = "activation"; private String activation; @@ -77,15 +88,13 @@ public class CardConfiguration { public static final String JSON_PROPERTY_SHIPMENT_METHOD = "shipmentMethod"; private String shipmentMethod; - public CardConfiguration() {} + public CardConfiguration() { + } /** - * Overrides the activation label design ID defined in the `configurationProfileId`. The - * activation label is attached to the card and contains the activation instructions. + * Overrides the activation label design ID defined in the `configurationProfileId`. The activation label is attached to the card and contains the activation instructions. * - * @param activation Overrides the activation label design ID defined in the - * `configurationProfileId`. The activation label is attached to the card and - * contains the activation instructions. + * @param activation Overrides the activation label design ID defined in the `configurationProfileId`. The activation label is attached to the card and contains the activation instructions. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration activation(String activation) { @@ -94,12 +103,8 @@ public CardConfiguration activation(String activation) { } /** - * Overrides the activation label design ID defined in the `configurationProfileId`. The - * activation label is attached to the card and contains the activation instructions. - * - * @return activation Overrides the activation label design ID defined in the - * `configurationProfileId`. The activation label is attached to the card and - * contains the activation instructions. + * Overrides the activation label design ID defined in the `configurationProfileId`. The activation label is attached to the card and contains the activation instructions. + * @return activation Overrides the activation label design ID defined in the `configurationProfileId`. The activation label is attached to the card and contains the activation instructions. */ @JsonProperty(JSON_PROPERTY_ACTIVATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,12 +113,9 @@ public String getActivation() { } /** - * Overrides the activation label design ID defined in the `configurationProfileId`. The - * activation label is attached to the card and contains the activation instructions. + * Overrides the activation label design ID defined in the `configurationProfileId`. The activation label is attached to the card and contains the activation instructions. * - * @param activation Overrides the activation label design ID defined in the - * `configurationProfileId`. The activation label is attached to the card and - * contains the activation instructions. + * @param activation Overrides the activation label design ID defined in the `configurationProfileId`. The activation label is attached to the card and contains the activation instructions. */ @JsonProperty(JSON_PROPERTY_ACTIVATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -122,15 +124,9 @@ public void setActivation(String activation) { } /** - * Your app's URL, if you want to activate cards through your app. For example, - * **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the - * carrier. Before you use this field, reach out to your Adyen contact to set up the QR code - * process. Maximum length: 255 characters. + * Your app's URL, if you want to activate cards through your app. For example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR code process. Maximum length: 255 characters. * - * @param activationUrl Your app's URL, if you want to activate cards through your app. For - * example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included - * in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR - * code process. Maximum length: 255 characters. + * @param activationUrl Your app's URL, if you want to activate cards through your app. For example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR code process. Maximum length: 255 characters. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration activationUrl(String activationUrl) { @@ -139,15 +135,8 @@ public CardConfiguration activationUrl(String activationUrl) { } /** - * Your app's URL, if you want to activate cards through your app. For example, - * **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the - * carrier. Before you use this field, reach out to your Adyen contact to set up the QR code - * process. Maximum length: 255 characters. - * - * @return activationUrl Your app's URL, if you want to activate cards through your app. For - * example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included - * in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR - * code process. Maximum length: 255 characters. + * Your app's URL, if you want to activate cards through your app. For example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR code process. Maximum length: 255 characters. + * @return activationUrl Your app's URL, if you want to activate cards through your app. For example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR code process. Maximum length: 255 characters. */ @JsonProperty(JSON_PROPERTY_ACTIVATION_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,15 +145,9 @@ public String getActivationUrl() { } /** - * Your app's URL, if you want to activate cards through your app. For example, - * **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the - * carrier. Before you use this field, reach out to your Adyen contact to set up the QR code - * process. Maximum length: 255 characters. + * Your app's URL, if you want to activate cards through your app. For example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR code process. Maximum length: 255 characters. * - * @param activationUrl Your app's URL, if you want to activate cards through your app. For - * example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included - * in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR - * code process. Maximum length: 255 characters. + * @param activationUrl Your app's URL, if you want to activate cards through your app. For example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR code process. Maximum length: 255 characters. */ @JsonProperty(JSON_PROPERTY_ACTIVATION_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -175,7 +158,7 @@ public void setActivationUrl(String activationUrl) { /** * bulkAddress * - * @param bulkAddress + * @param bulkAddress * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration bulkAddress(BulkAddress bulkAddress) { @@ -185,8 +168,7 @@ public CardConfiguration bulkAddress(BulkAddress bulkAddress) { /** * Get bulkAddress - * - * @return bulkAddress + * @return bulkAddress */ @JsonProperty(JSON_PROPERTY_BULK_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -197,7 +179,7 @@ public BulkAddress getBulkAddress() { /** * bulkAddress * - * @param bulkAddress + * @param bulkAddress */ @JsonProperty(JSON_PROPERTY_BULK_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,8 +190,7 @@ public void setBulkAddress(BulkAddress bulkAddress) { /** * The ID of the card image. This is the image that will be printed on the full front of the card. * - * @param cardImageId The ID of the card image. This is the image that will be printed on the full - * front of the card. + * @param cardImageId The ID of the card image. This is the image that will be printed on the full front of the card. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration cardImageId(String cardImageId) { @@ -219,9 +200,7 @@ public CardConfiguration cardImageId(String cardImageId) { /** * The ID of the card image. This is the image that will be printed on the full front of the card. - * - * @return cardImageId The ID of the card image. This is the image that will be printed on the - * full front of the card. + * @return cardImageId The ID of the card image. This is the image that will be printed on the full front of the card. */ @JsonProperty(JSON_PROPERTY_CARD_IMAGE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,8 +211,7 @@ public String getCardImageId() { /** * The ID of the card image. This is the image that will be printed on the full front of the card. * - * @param cardImageId The ID of the card image. This is the image that will be printed on the full - * front of the card. + * @param cardImageId The ID of the card image. This is the image that will be printed on the full front of the card. */ @JsonProperty(JSON_PROPERTY_CARD_IMAGE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,12 +220,9 @@ public void setCardImageId(String cardImageId) { } /** - * Overrides the carrier design ID defined in the `configurationProfileId`. The carrier - * is the letter or packaging to which the card is attached. + * Overrides the carrier design ID defined in the `configurationProfileId`. The carrier is the letter or packaging to which the card is attached. * - * @param carrier Overrides the carrier design ID defined in the - * `configurationProfileId`. The carrier is the letter or packaging to which the - * card is attached. + * @param carrier Overrides the carrier design ID defined in the `configurationProfileId`. The carrier is the letter or packaging to which the card is attached. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration carrier(String carrier) { @@ -256,12 +231,8 @@ public CardConfiguration carrier(String carrier) { } /** - * Overrides the carrier design ID defined in the `configurationProfileId`. The carrier - * is the letter or packaging to which the card is attached. - * - * @return carrier Overrides the carrier design ID defined in the - * `configurationProfileId`. The carrier is the letter or packaging to which the - * card is attached. + * Overrides the carrier design ID defined in the `configurationProfileId`. The carrier is the letter or packaging to which the card is attached. + * @return carrier Overrides the carrier design ID defined in the `configurationProfileId`. The carrier is the letter or packaging to which the card is attached. */ @JsonProperty(JSON_PROPERTY_CARRIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -270,12 +241,9 @@ public String getCarrier() { } /** - * Overrides the carrier design ID defined in the `configurationProfileId`. The carrier - * is the letter or packaging to which the card is attached. + * Overrides the carrier design ID defined in the `configurationProfileId`. The carrier is the letter or packaging to which the card is attached. * - * @param carrier Overrides the carrier design ID defined in the - * `configurationProfileId`. The carrier is the letter or packaging to which the - * card is attached. + * @param carrier Overrides the carrier design ID defined in the `configurationProfileId`. The carrier is the letter or packaging to which the card is attached. */ @JsonProperty(JSON_PROPERTY_CARRIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,11 +252,9 @@ public void setCarrier(String carrier) { } /** - * The ID of the carrier image. This is the image that will printed on the letter to which the - * card is attached. + * The ID of the carrier image. This is the image that will printed on the letter to which the card is attached. * - * @param carrierImageId The ID of the carrier image. This is the image that will printed on the - * letter to which the card is attached. + * @param carrierImageId The ID of the carrier image. This is the image that will printed on the letter to which the card is attached. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration carrierImageId(String carrierImageId) { @@ -297,11 +263,8 @@ public CardConfiguration carrierImageId(String carrierImageId) { } /** - * The ID of the carrier image. This is the image that will printed on the letter to which the - * card is attached. - * - * @return carrierImageId The ID of the carrier image. This is the image that will printed on the - * letter to which the card is attached. + * The ID of the carrier image. This is the image that will printed on the letter to which the card is attached. + * @return carrierImageId The ID of the carrier image. This is the image that will printed on the letter to which the card is attached. */ @JsonProperty(JSON_PROPERTY_CARRIER_IMAGE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -310,11 +273,9 @@ public String getCarrierImageId() { } /** - * The ID of the carrier image. This is the image that will printed on the letter to which the - * card is attached. + * The ID of the carrier image. This is the image that will printed on the letter to which the card is attached. * - * @param carrierImageId The ID of the carrier image. This is the image that will printed on the - * letter to which the card is attached. + * @param carrierImageId The ID of the carrier image. This is the image that will printed on the letter to which the card is attached. */ @JsonProperty(JSON_PROPERTY_CARRIER_IMAGE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -323,18 +284,9 @@ public void setCarrierImageId(String carrierImageId) { } /** - * The ID of the card configuration profile that contains the settings of the card. For example, - * the envelope and PIN mailer designs or the logistics company handling the shipment. All the - * settings in the profile are applied to the card, unless you provide other fields to override - * them. For example, send the `shipmentMethod` to override the logistics company - * defined in the card configuration profile. + * The ID of the card configuration profile that contains the settings of the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. All the settings in the profile are applied to the card, unless you provide other fields to override them. For example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile. * - * @param configurationProfileId The ID of the card configuration profile that contains the - * settings of the card. For example, the envelope and PIN mailer designs or the logistics - * company handling the shipment. All the settings in the profile are applied to the card, - * unless you provide other fields to override them. For example, send the - * `shipmentMethod` to override the logistics company defined in the card - * configuration profile. + * @param configurationProfileId The ID of the card configuration profile that contains the settings of the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. All the settings in the profile are applied to the card, unless you provide other fields to override them. For example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration configurationProfileId(String configurationProfileId) { @@ -343,18 +295,8 @@ public CardConfiguration configurationProfileId(String configurationProfileId) { } /** - * The ID of the card configuration profile that contains the settings of the card. For example, - * the envelope and PIN mailer designs or the logistics company handling the shipment. All the - * settings in the profile are applied to the card, unless you provide other fields to override - * them. For example, send the `shipmentMethod` to override the logistics company - * defined in the card configuration profile. - * - * @return configurationProfileId The ID of the card configuration profile that contains the - * settings of the card. For example, the envelope and PIN mailer designs or the logistics - * company handling the shipment. All the settings in the profile are applied to the card, - * unless you provide other fields to override them. For example, send the - * `shipmentMethod` to override the logistics company defined in the card - * configuration profile. + * The ID of the card configuration profile that contains the settings of the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. All the settings in the profile are applied to the card, unless you provide other fields to override them. For example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile. + * @return configurationProfileId The ID of the card configuration profile that contains the settings of the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. All the settings in the profile are applied to the card, unless you provide other fields to override them. For example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile. */ @JsonProperty(JSON_PROPERTY_CONFIGURATION_PROFILE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -363,18 +305,9 @@ public String getConfigurationProfileId() { } /** - * The ID of the card configuration profile that contains the settings of the card. For example, - * the envelope and PIN mailer designs or the logistics company handling the shipment. All the - * settings in the profile are applied to the card, unless you provide other fields to override - * them. For example, send the `shipmentMethod` to override the logistics company - * defined in the card configuration profile. + * The ID of the card configuration profile that contains the settings of the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. All the settings in the profile are applied to the card, unless you provide other fields to override them. For example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile. * - * @param configurationProfileId The ID of the card configuration profile that contains the - * settings of the card. For example, the envelope and PIN mailer designs or the logistics - * company handling the shipment. All the settings in the profile are applied to the card, - * unless you provide other fields to override them. For example, send the - * `shipmentMethod` to override the logistics company defined in the card - * configuration profile. + * @param configurationProfileId The ID of the card configuration profile that contains the settings of the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. All the settings in the profile are applied to the card, unless you provide other fields to override them. For example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile. */ @JsonProperty(JSON_PROPERTY_CONFIGURATION_PROFILE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -383,11 +316,9 @@ public void setConfigurationProfileId(String configurationProfileId) { } /** - * The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. - * For example, **EUR**. + * The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. * - * @param currency The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency - * code of the card. For example, **EUR**. + * @param currency The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration currency(String currency) { @@ -396,11 +327,8 @@ public CardConfiguration currency(String currency) { } /** - * The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. - * For example, **EUR**. - * - * @return currency The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency - * code of the card. For example, **EUR**. + * The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. + * @return currency The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -409,11 +337,9 @@ public String getCurrency() { } /** - * The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. - * For example, **EUR**. + * The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. * - * @param currency The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency - * code of the card. For example, **EUR**. + * @param currency The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -422,10 +348,9 @@ public void setCurrency(String currency) { } /** - * Overrides the envelope design ID defined in the `configurationProfileId`. + * Overrides the envelope design ID defined in the `configurationProfileId`. * - * @param envelope Overrides the envelope design ID defined in the - * `configurationProfileId`. + * @param envelope Overrides the envelope design ID defined in the `configurationProfileId`. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration envelope(String envelope) { @@ -434,10 +359,8 @@ public CardConfiguration envelope(String envelope) { } /** - * Overrides the envelope design ID defined in the `configurationProfileId`. - * - * @return envelope Overrides the envelope design ID defined in the - * `configurationProfileId`. + * Overrides the envelope design ID defined in the `configurationProfileId`. + * @return envelope Overrides the envelope design ID defined in the `configurationProfileId`. */ @JsonProperty(JSON_PROPERTY_ENVELOPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -446,10 +369,9 @@ public String getEnvelope() { } /** - * Overrides the envelope design ID defined in the `configurationProfileId`. + * Overrides the envelope design ID defined in the `configurationProfileId`. * - * @param envelope Overrides the envelope design ID defined in the - * `configurationProfileId`. + * @param envelope Overrides the envelope design ID defined in the `configurationProfileId`. */ @JsonProperty(JSON_PROPERTY_ENVELOPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -458,12 +380,9 @@ public void setEnvelope(String envelope) { } /** - * Overrides the insert design ID defined in the `configurationProfileId`. An insert is - * any additional material, such as marketing materials, that are shipped together with the card. + * Overrides the insert design ID defined in the `configurationProfileId`. An insert is any additional material, such as marketing materials, that are shipped together with the card. * - * @param insert Overrides the insert design ID defined in the `configurationProfileId`. - * An insert is any additional material, such as marketing materials, that are shipped - * together with the card. + * @param insert Overrides the insert design ID defined in the `configurationProfileId`. An insert is any additional material, such as marketing materials, that are shipped together with the card. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration insert(String insert) { @@ -472,12 +391,8 @@ public CardConfiguration insert(String insert) { } /** - * Overrides the insert design ID defined in the `configurationProfileId`. An insert is - * any additional material, such as marketing materials, that are shipped together with the card. - * - * @return insert Overrides the insert design ID defined in the - * `configurationProfileId`. An insert is any additional material, such as marketing - * materials, that are shipped together with the card. + * Overrides the insert design ID defined in the `configurationProfileId`. An insert is any additional material, such as marketing materials, that are shipped together with the card. + * @return insert Overrides the insert design ID defined in the `configurationProfileId`. An insert is any additional material, such as marketing materials, that are shipped together with the card. */ @JsonProperty(JSON_PROPERTY_INSERT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -486,12 +401,9 @@ public String getInsert() { } /** - * Overrides the insert design ID defined in the `configurationProfileId`. An insert is - * any additional material, such as marketing materials, that are shipped together with the card. + * Overrides the insert design ID defined in the `configurationProfileId`. An insert is any additional material, such as marketing materials, that are shipped together with the card. * - * @param insert Overrides the insert design ID defined in the `configurationProfileId`. - * An insert is any additional material, such as marketing materials, that are shipped - * together with the card. + * @param insert Overrides the insert design ID defined in the `configurationProfileId`. An insert is any additional material, such as marketing materials, that are shipped together with the card. */ @JsonProperty(JSON_PROPERTY_INSERT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -500,12 +412,9 @@ public void setInsert(String insert) { } /** - * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code - * of the card. For example, **en**. + * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the card. For example, **en**. * - * @param language The two-letter - * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the - * card. For example, **en**. + * @param language The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the card. For example, **en**. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration language(String language) { @@ -514,12 +423,8 @@ public CardConfiguration language(String language) { } /** - * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code - * of the card. For example, **en**. - * - * @return language The two-letter - * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the - * card. For example, **en**. + * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the card. For example, **en**. + * @return language The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the card. For example, **en**. */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -528,12 +433,9 @@ public String getLanguage() { } /** - * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code - * of the card. For example, **en**. + * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the card. For example, **en**. * - * @param language The two-letter - * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the - * card. For example, **en**. + * @param language The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the card. For example, **en**. */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -542,11 +444,9 @@ public void setLanguage(String language) { } /** - * The ID of the logo image. This is the image that will be printed on the partial front of the - * card, such as a logo on the upper right corner. + * The ID of the logo image. This is the image that will be printed on the partial front of the card, such as a logo on the upper right corner. * - * @param logoImageId The ID of the logo image. This is the image that will be printed on the - * partial front of the card, such as a logo on the upper right corner. + * @param logoImageId The ID of the logo image. This is the image that will be printed on the partial front of the card, such as a logo on the upper right corner. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration logoImageId(String logoImageId) { @@ -555,11 +455,8 @@ public CardConfiguration logoImageId(String logoImageId) { } /** - * The ID of the logo image. This is the image that will be printed on the partial front of the - * card, such as a logo on the upper right corner. - * - * @return logoImageId The ID of the logo image. This is the image that will be printed on the - * partial front of the card, such as a logo on the upper right corner. + * The ID of the logo image. This is the image that will be printed on the partial front of the card, such as a logo on the upper right corner. + * @return logoImageId The ID of the logo image. This is the image that will be printed on the partial front of the card, such as a logo on the upper right corner. */ @JsonProperty(JSON_PROPERTY_LOGO_IMAGE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -568,11 +465,9 @@ public String getLogoImageId() { } /** - * The ID of the logo image. This is the image that will be printed on the partial front of the - * card, such as a logo on the upper right corner. + * The ID of the logo image. This is the image that will be printed on the partial front of the card, such as a logo on the upper right corner. * - * @param logoImageId The ID of the logo image. This is the image that will be printed on the - * partial front of the card, such as a logo on the upper right corner. + * @param logoImageId The ID of the logo image. This is the image that will be printed on the partial front of the card, such as a logo on the upper right corner. */ @JsonProperty(JSON_PROPERTY_LOGO_IMAGE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -581,12 +476,9 @@ public void setLogoImageId(String logoImageId) { } /** - * Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN - * mailer is the letter on which the PIN is printed. + * Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN mailer is the letter on which the PIN is printed. * - * @param pinMailer Overrides the PIN mailer design ID defined in the - * `configurationProfileId`. The PIN mailer is the letter on which the PIN is - * printed. + * @param pinMailer Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN mailer is the letter on which the PIN is printed. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration pinMailer(String pinMailer) { @@ -595,12 +487,8 @@ public CardConfiguration pinMailer(String pinMailer) { } /** - * Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN - * mailer is the letter on which the PIN is printed. - * - * @return pinMailer Overrides the PIN mailer design ID defined in the - * `configurationProfileId`. The PIN mailer is the letter on which the PIN is - * printed. + * Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN mailer is the letter on which the PIN is printed. + * @return pinMailer Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN mailer is the letter on which the PIN is printed. */ @JsonProperty(JSON_PROPERTY_PIN_MAILER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -609,12 +497,9 @@ public String getPinMailer() { } /** - * Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN - * mailer is the letter on which the PIN is printed. + * Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN mailer is the letter on which the PIN is printed. * - * @param pinMailer Overrides the PIN mailer design ID defined in the - * `configurationProfileId`. The PIN mailer is the letter on which the PIN is - * printed. + * @param pinMailer Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN mailer is the letter on which the PIN is printed. */ @JsonProperty(JSON_PROPERTY_PIN_MAILER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -625,8 +510,7 @@ public void setPinMailer(String pinMailer) { /** * Overrides the logistics company defined in the `configurationProfileId`. * - * @param shipmentMethod Overrides the logistics company defined in the - * `configurationProfileId`. + * @param shipmentMethod Overrides the logistics company defined in the `configurationProfileId`. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration shipmentMethod(String shipmentMethod) { @@ -636,9 +520,7 @@ public CardConfiguration shipmentMethod(String shipmentMethod) { /** * Overrides the logistics company defined in the `configurationProfileId`. - * - * @return shipmentMethod Overrides the logistics company defined in the - * `configurationProfileId`. + * @return shipmentMethod Overrides the logistics company defined in the `configurationProfileId`. */ @JsonProperty(JSON_PROPERTY_SHIPMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -649,8 +531,7 @@ public String getShipmentMethod() { /** * Overrides the logistics company defined in the `configurationProfileId`. * - * @param shipmentMethod Overrides the logistics company defined in the - * `configurationProfileId`. + * @param shipmentMethod Overrides the logistics company defined in the `configurationProfileId`. */ @JsonProperty(JSON_PROPERTY_SHIPMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -658,7 +539,9 @@ public void setShipmentMethod(String shipmentMethod) { this.shipmentMethod = shipmentMethod; } - /** Return true if this CardConfiguration object is equal to o. */ + /** + * Return true if this CardConfiguration object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -668,39 +551,25 @@ public boolean equals(Object o) { return false; } CardConfiguration cardConfiguration = (CardConfiguration) o; - return Objects.equals(this.activation, cardConfiguration.activation) - && Objects.equals(this.activationUrl, cardConfiguration.activationUrl) - && Objects.equals(this.bulkAddress, cardConfiguration.bulkAddress) - && Objects.equals(this.cardImageId, cardConfiguration.cardImageId) - && Objects.equals(this.carrier, cardConfiguration.carrier) - && Objects.equals(this.carrierImageId, cardConfiguration.carrierImageId) - && Objects.equals(this.configurationProfileId, cardConfiguration.configurationProfileId) - && Objects.equals(this.currency, cardConfiguration.currency) - && Objects.equals(this.envelope, cardConfiguration.envelope) - && Objects.equals(this.insert, cardConfiguration.insert) - && Objects.equals(this.language, cardConfiguration.language) - && Objects.equals(this.logoImageId, cardConfiguration.logoImageId) - && Objects.equals(this.pinMailer, cardConfiguration.pinMailer) - && Objects.equals(this.shipmentMethod, cardConfiguration.shipmentMethod); + return Objects.equals(this.activation, cardConfiguration.activation) && + Objects.equals(this.activationUrl, cardConfiguration.activationUrl) && + Objects.equals(this.bulkAddress, cardConfiguration.bulkAddress) && + Objects.equals(this.cardImageId, cardConfiguration.cardImageId) && + Objects.equals(this.carrier, cardConfiguration.carrier) && + Objects.equals(this.carrierImageId, cardConfiguration.carrierImageId) && + Objects.equals(this.configurationProfileId, cardConfiguration.configurationProfileId) && + Objects.equals(this.currency, cardConfiguration.currency) && + Objects.equals(this.envelope, cardConfiguration.envelope) && + Objects.equals(this.insert, cardConfiguration.insert) && + Objects.equals(this.language, cardConfiguration.language) && + Objects.equals(this.logoImageId, cardConfiguration.logoImageId) && + Objects.equals(this.pinMailer, cardConfiguration.pinMailer) && + Objects.equals(this.shipmentMethod, cardConfiguration.shipmentMethod); } @Override public int hashCode() { - return Objects.hash( - activation, - activationUrl, - bulkAddress, - cardImageId, - carrier, - carrierImageId, - configurationProfileId, - currency, - envelope, - insert, - language, - logoImageId, - pinMailer, - shipmentMethod); + return Objects.hash(activation, activationUrl, bulkAddress, cardImageId, carrier, carrierImageId, configurationProfileId, currency, envelope, insert, language, logoImageId, pinMailer, shipmentMethod); } @Override @@ -713,9 +582,7 @@ public String toString() { sb.append(" cardImageId: ").append(toIndentedString(cardImageId)).append("\n"); sb.append(" carrier: ").append(toIndentedString(carrier)).append("\n"); sb.append(" carrierImageId: ").append(toIndentedString(carrierImageId)).append("\n"); - sb.append(" configurationProfileId: ") - .append(toIndentedString(configurationProfileId)) - .append("\n"); + sb.append(" configurationProfileId: ").append(toIndentedString(configurationProfileId)).append("\n"); sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); sb.append(" envelope: ").append(toIndentedString(envelope)).append("\n"); sb.append(" insert: ").append(toIndentedString(insert)).append("\n"); @@ -728,7 +595,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -737,7 +605,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CardConfiguration given an JSON string * * @param jsonString JSON string @@ -747,12 +615,11 @@ private String toIndentedString(Object o) { public static CardConfiguration fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardConfiguration.class); } - - /** - * Convert an instance of CardConfiguration to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CardConfiguration to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/CardOrderItem.java b/src/main/java/com/adyen/model/configurationwebhooks/CardOrderItem.java index 6b607b4d7..f21bcf821 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/CardOrderItem.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/CardOrderItem.java @@ -2,23 +2,33 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.configurationwebhooks.CardOrderItemDeliveryStatus; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.time.OffsetDateTime; -import java.util.*; -/** CardOrderItem */ + +/** + * CardOrderItem + */ @JsonPropertyOrder({ CardOrderItem.JSON_PROPERTY_BALANCE_PLATFORM, CardOrderItem.JSON_PROPERTY_CARD, @@ -29,6 +39,7 @@ CardOrderItem.JSON_PROPERTY_PIN, CardOrderItem.JSON_PROPERTY_SHIPPING_METHOD }) + public class CardOrderItem { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; @@ -54,7 +65,8 @@ public class CardOrderItem { public static final String JSON_PROPERTY_SHIPPING_METHOD = "shippingMethod"; private String shippingMethod; - public CardOrderItem() {} + public CardOrderItem() { + } /** * The unique identifier of the balance platform. @@ -69,7 +81,6 @@ public CardOrderItem balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. - * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -92,7 +103,7 @@ public void setBalancePlatform(String balancePlatform) { /** * card * - * @param card + * @param card * @return the current {@code CardOrderItem} instance, allowing for method chaining */ public CardOrderItem card(CardOrderItemDeliveryStatus card) { @@ -102,8 +113,7 @@ public CardOrderItem card(CardOrderItemDeliveryStatus card) { /** * Get card - * - * @return card + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,7 +124,7 @@ public CardOrderItemDeliveryStatus getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,7 +145,6 @@ public CardOrderItem cardOrderItemId(String cardOrderItemId) { /** * The unique identifier of the card order item. - * * @return cardOrderItemId The unique identifier of the card order item. */ @JsonProperty(JSON_PROPERTY_CARD_ORDER_ITEM_ID) @@ -156,11 +165,9 @@ public void setCardOrderItemId(String cardOrderItemId) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code CardOrderItem} instance, allowing for method chaining */ public CardOrderItem creationDate(OffsetDateTime creationDate) { @@ -169,11 +176,8 @@ public CardOrderItem creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. - * - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,11 +186,9 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -207,7 +209,6 @@ public CardOrderItem id(String id) { /** * The ID of the resource. - * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -230,8 +231,7 @@ public void setId(String id) { /** * The unique identifier of the payment instrument related to the card order item. * - * @param paymentInstrumentId The unique identifier of the payment instrument related to the card - * order item. + * @param paymentInstrumentId The unique identifier of the payment instrument related to the card order item. * @return the current {@code CardOrderItem} instance, allowing for method chaining */ public CardOrderItem paymentInstrumentId(String paymentInstrumentId) { @@ -241,9 +241,7 @@ public CardOrderItem paymentInstrumentId(String paymentInstrumentId) { /** * The unique identifier of the payment instrument related to the card order item. - * - * @return paymentInstrumentId The unique identifier of the payment instrument related to the card - * order item. + * @return paymentInstrumentId The unique identifier of the payment instrument related to the card order item. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -254,8 +252,7 @@ public String getPaymentInstrumentId() { /** * The unique identifier of the payment instrument related to the card order item. * - * @param paymentInstrumentId The unique identifier of the payment instrument related to the card - * order item. + * @param paymentInstrumentId The unique identifier of the payment instrument related to the card order item. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -266,7 +263,7 @@ public void setPaymentInstrumentId(String paymentInstrumentId) { /** * pin * - * @param pin + * @param pin * @return the current {@code CardOrderItem} instance, allowing for method chaining */ public CardOrderItem pin(CardOrderItemDeliveryStatus pin) { @@ -276,8 +273,7 @@ public CardOrderItem pin(CardOrderItemDeliveryStatus pin) { /** * Get pin - * - * @return pin + * @return pin */ @JsonProperty(JSON_PROPERTY_PIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -288,7 +284,7 @@ public CardOrderItemDeliveryStatus getPin() { /** * pin * - * @param pin + * @param pin */ @JsonProperty(JSON_PROPERTY_PIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -309,7 +305,6 @@ public CardOrderItem shippingMethod(String shippingMethod) { /** * The shipping method used to deliver the card or the PIN. - * * @return shippingMethod The shipping method used to deliver the card or the PIN. */ @JsonProperty(JSON_PROPERTY_SHIPPING_METHOD) @@ -329,7 +324,9 @@ public void setShippingMethod(String shippingMethod) { this.shippingMethod = shippingMethod; } - /** Return true if this CardOrderItem object is equal to o. */ + /** + * Return true if this CardOrderItem object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -339,27 +336,19 @@ public boolean equals(Object o) { return false; } CardOrderItem cardOrderItem = (CardOrderItem) o; - return Objects.equals(this.balancePlatform, cardOrderItem.balancePlatform) - && Objects.equals(this.card, cardOrderItem.card) - && Objects.equals(this.cardOrderItemId, cardOrderItem.cardOrderItemId) - && Objects.equals(this.creationDate, cardOrderItem.creationDate) - && Objects.equals(this.id, cardOrderItem.id) - && Objects.equals(this.paymentInstrumentId, cardOrderItem.paymentInstrumentId) - && Objects.equals(this.pin, cardOrderItem.pin) - && Objects.equals(this.shippingMethod, cardOrderItem.shippingMethod); + return Objects.equals(this.balancePlatform, cardOrderItem.balancePlatform) && + Objects.equals(this.card, cardOrderItem.card) && + Objects.equals(this.cardOrderItemId, cardOrderItem.cardOrderItemId) && + Objects.equals(this.creationDate, cardOrderItem.creationDate) && + Objects.equals(this.id, cardOrderItem.id) && + Objects.equals(this.paymentInstrumentId, cardOrderItem.paymentInstrumentId) && + Objects.equals(this.pin, cardOrderItem.pin) && + Objects.equals(this.shippingMethod, cardOrderItem.shippingMethod); } @Override public int hashCode() { - return Objects.hash( - balancePlatform, - card, - cardOrderItemId, - creationDate, - id, - paymentInstrumentId, - pin, - shippingMethod); + return Objects.hash(balancePlatform, card, cardOrderItemId, creationDate, id, paymentInstrumentId, pin, shippingMethod); } @Override @@ -371,9 +360,7 @@ public String toString() { sb.append(" cardOrderItemId: ").append(toIndentedString(cardOrderItemId)).append("\n"); sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" paymentInstrumentId: ") - .append(toIndentedString(paymentInstrumentId)) - .append("\n"); + sb.append(" paymentInstrumentId: ").append(toIndentedString(paymentInstrumentId)).append("\n"); sb.append(" pin: ").append(toIndentedString(pin)).append("\n"); sb.append(" shippingMethod: ").append(toIndentedString(shippingMethod)).append("\n"); sb.append("}"); @@ -381,7 +368,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -390,7 +378,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CardOrderItem given an JSON string * * @param jsonString JSON string @@ -400,12 +388,11 @@ private String toIndentedString(Object o) { public static CardOrderItem fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardOrderItem.class); } - - /** - * Convert an instance of CardOrderItem to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CardOrderItem to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/CardOrderItemDeliveryStatus.java b/src/main/java/com/adyen/model/configurationwebhooks/CardOrderItemDeliveryStatus.java index 23c35058f..a2baee7a1 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/CardOrderItemDeliveryStatus.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/CardOrderItemDeliveryStatus.java @@ -2,37 +2,46 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** CardOrderItemDeliveryStatus */ + +/** + * CardOrderItemDeliveryStatus + */ @JsonPropertyOrder({ CardOrderItemDeliveryStatus.JSON_PROPERTY_ERROR_MESSAGE, CardOrderItemDeliveryStatus.JSON_PROPERTY_STATUS, CardOrderItemDeliveryStatus.JSON_PROPERTY_TRACKING_NUMBER }) + public class CardOrderItemDeliveryStatus { public static final String JSON_PROPERTY_ERROR_MESSAGE = "errorMessage"; private String errorMessage; - /** The status of the PIN delivery. */ + /** + * The status of the PIN delivery. + */ public enum StatusEnum { + CREATED(String.valueOf("created")), DELIVERED(String.valueOf("delivered")), @@ -54,7 +63,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -75,11 +84,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -90,7 +95,8 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_TRACKING_NUMBER = "trackingNumber"; private String trackingNumber; - public CardOrderItemDeliveryStatus() {} + public CardOrderItemDeliveryStatus() { + } /** * An error message. @@ -105,7 +111,6 @@ public CardOrderItemDeliveryStatus errorMessage(String errorMessage) { /** * An error message. - * * @return errorMessage An error message. */ @JsonProperty(JSON_PROPERTY_ERROR_MESSAGE) @@ -138,7 +143,6 @@ public CardOrderItemDeliveryStatus status(StatusEnum status) { /** * The status of the PIN delivery. - * * @return status The status of the PIN delivery. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -171,7 +175,6 @@ public CardOrderItemDeliveryStatus trackingNumber(String trackingNumber) { /** * The tracking number of the PIN delivery. - * * @return trackingNumber The tracking number of the PIN delivery. */ @JsonProperty(JSON_PROPERTY_TRACKING_NUMBER) @@ -191,7 +194,9 @@ public void setTrackingNumber(String trackingNumber) { this.trackingNumber = trackingNumber; } - /** Return true if this CardOrderItemDeliveryStatus object is equal to o. */ + /** + * Return true if this CardOrderItemDeliveryStatus object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -201,9 +206,9 @@ public boolean equals(Object o) { return false; } CardOrderItemDeliveryStatus cardOrderItemDeliveryStatus = (CardOrderItemDeliveryStatus) o; - return Objects.equals(this.errorMessage, cardOrderItemDeliveryStatus.errorMessage) - && Objects.equals(this.status, cardOrderItemDeliveryStatus.status) - && Objects.equals(this.trackingNumber, cardOrderItemDeliveryStatus.trackingNumber); + return Objects.equals(this.errorMessage, cardOrderItemDeliveryStatus.errorMessage) && + Objects.equals(this.status, cardOrderItemDeliveryStatus.status) && + Objects.equals(this.trackingNumber, cardOrderItemDeliveryStatus.trackingNumber); } @Override @@ -223,7 +228,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -232,24 +238,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CardOrderItemDeliveryStatus given an JSON string * * @param jsonString JSON string * @return An instance of CardOrderItemDeliveryStatus - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CardOrderItemDeliveryStatus + * @throws JsonProcessingException if the JSON string is invalid with respect to CardOrderItemDeliveryStatus */ - public static CardOrderItemDeliveryStatus fromJson(String jsonString) - throws JsonProcessingException { + public static CardOrderItemDeliveryStatus fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardOrderItemDeliveryStatus.class); } - - /** - * Convert an instance of CardOrderItemDeliveryStatus to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CardOrderItemDeliveryStatus to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/CardOrderNotificationRequest.java b/src/main/java/com/adyen/model/configurationwebhooks/CardOrderNotificationRequest.java index 28b6962e0..dce590fe6 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/CardOrderNotificationRequest.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/CardOrderNotificationRequest.java @@ -2,33 +2,40 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.configurationwebhooks.CardOrderItem; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** CardOrderNotificationRequest */ + +/** + * CardOrderNotificationRequest + */ @JsonPropertyOrder({ CardOrderNotificationRequest.JSON_PROPERTY_DATA, CardOrderNotificationRequest.JSON_PROPERTY_ENVIRONMENT, CardOrderNotificationRequest.JSON_PROPERTY_TIMESTAMP, CardOrderNotificationRequest.JSON_PROPERTY_TYPE }) + public class CardOrderNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private CardOrderItem data; @@ -39,8 +46,11 @@ public class CardOrderNotificationRequest { public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; private OffsetDateTime timestamp; - /** Type of webhook. */ + /** + * Type of webhook. + */ public enum TypeEnum { + BALANCEPLATFORM_CARDORDER_CREATED(String.valueOf("balancePlatform.cardorder.created")), BALANCEPLATFORM_CARDORDER_UPDATED(String.valueOf("balancePlatform.cardorder.updated")); @@ -50,7 +60,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -71,11 +81,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -83,12 +89,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CardOrderNotificationRequest() {} + public CardOrderNotificationRequest() { + } /** * data * - * @param data + * @param data * @return the current {@code CardOrderNotificationRequest} instance, allowing for method chaining */ public CardOrderNotificationRequest data(CardOrderItem data) { @@ -98,8 +105,7 @@ public CardOrderNotificationRequest data(CardOrderItem data) { /** * Get data - * - * @return data + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,7 +116,7 @@ public CardOrderItem getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -119,10 +125,9 @@ public void setData(CardOrderItem data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. * @return the current {@code CardOrderNotificationRequest} instance, allowing for method chaining */ public CardOrderNotificationRequest environment(String environment) { @@ -131,10 +136,8 @@ public CardOrderNotificationRequest environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * - * @return environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,10 +146,9 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,7 +169,6 @@ public CardOrderNotificationRequest timestamp(OffsetDateTime timestamp) { /** * When the event was queued. - * * @return timestamp When the event was queued. */ @JsonProperty(JSON_PROPERTY_TIMESTAMP) @@ -200,7 +201,6 @@ public CardOrderNotificationRequest type(TypeEnum type) { /** * Type of webhook. - * * @return type Type of webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -220,7 +220,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this CardOrderNotificationRequest object is equal to o. */ + /** + * Return true if this CardOrderNotificationRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -230,10 +232,10 @@ public boolean equals(Object o) { return false; } CardOrderNotificationRequest cardOrderNotificationRequest = (CardOrderNotificationRequest) o; - return Objects.equals(this.data, cardOrderNotificationRequest.data) - && Objects.equals(this.environment, cardOrderNotificationRequest.environment) - && Objects.equals(this.timestamp, cardOrderNotificationRequest.timestamp) - && Objects.equals(this.type, cardOrderNotificationRequest.type); + return Objects.equals(this.data, cardOrderNotificationRequest.data) && + Objects.equals(this.environment, cardOrderNotificationRequest.environment) && + Objects.equals(this.timestamp, cardOrderNotificationRequest.timestamp) && + Objects.equals(this.type, cardOrderNotificationRequest.type); } @Override @@ -254,7 +256,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -263,24 +266,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CardOrderNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of CardOrderNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CardOrderNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to CardOrderNotificationRequest */ - public static CardOrderNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static CardOrderNotificationRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardOrderNotificationRequest.class); } - - /** - * Convert an instance of CardOrderNotificationRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CardOrderNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/ConfigurationWebhooksHandler.java b/src/main/java/com/adyen/model/configurationwebhooks/ConfigurationWebhooksHandler.java index 6cd42a068..8b34e06e3 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/ConfigurationWebhooksHandler.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/ConfigurationWebhooksHandler.java @@ -2,7 +2,7 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,199 +16,195 @@ /** * Handler for processing ConfigurationWebhooks. - * - *

This class provides functionality to deserialize the payload of ConfigurationWebhooks events. + *

+ * This class provides functionality to deserialize the payload of ConfigurationWebhooks events. */ public class ConfigurationWebhooksHandler { - private static final Logger LOG = Logger.getLogger(ConfigurationWebhooksHandler.class.getName()); - - private final String payload; - - /** - * Constructs a new handler for the given webhook payload - * - * @param payload the raw JSON payload from the webhook - */ - public ConfigurationWebhooksHandler(String payload) { - this.payload = payload; - } - - /** - * Attempts to deserialize the webhook payload into a AccountHolderNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getAccountHolderNotificationRequest() { - - var optionalAccountHolderNotificationRequest = - getOptionalField(AccountHolderNotificationRequest.class); - - if (optionalAccountHolderNotificationRequest.isPresent()) { - // verify event type - for (var value : AccountHolderNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalAccountHolderNotificationRequest.get().getType())) { - // found matching event type - return optionalAccountHolderNotificationRequest; - } - } - } + private static final Logger LOG = Logger.getLogger(ConfigurationWebhooksHandler.class.getName()); - return Optional.empty(); - } - - /** - * Attempts to deserialize the webhook payload into a BalanceAccountNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getBalanceAccountNotificationRequest() { - - var optionalBalanceAccountNotificationRequest = - getOptionalField(BalanceAccountNotificationRequest.class); - - if (optionalBalanceAccountNotificationRequest.isPresent()) { - // verify event type - for (var value : BalanceAccountNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalBalanceAccountNotificationRequest.get().getType())) { - // found matching event type - return optionalBalanceAccountNotificationRequest; - } - } - } + private final String payload; - return Optional.empty(); - } + /** + * Constructs a new handler for the given webhook payload + * + * @param payload the raw JSON payload from the webhook + */ + public ConfigurationWebhooksHandler(String payload) { + this.payload = payload; + } - /** - * Attempts to deserialize the webhook payload into a CardOrderNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getCardOrderNotificationRequest() { + /** + * Attempts to deserialize the webhook payload into a AccountHolderNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getAccountHolderNotificationRequest() { + + var optionalAccountHolderNotificationRequest = getOptionalField(AccountHolderNotificationRequest.class); + + if(optionalAccountHolderNotificationRequest.isPresent()) { + // verify event type + for (var value : AccountHolderNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalAccountHolderNotificationRequest.get().getType())) { + // found matching event type + return optionalAccountHolderNotificationRequest; + } + } + } - var optionalCardOrderNotificationRequest = getOptionalField(CardOrderNotificationRequest.class); + return Optional.empty(); + } - if (optionalCardOrderNotificationRequest.isPresent()) { - // verify event type - for (var value : CardOrderNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalCardOrderNotificationRequest.get().getType())) { - // found matching event type - return optionalCardOrderNotificationRequest; + /** + * Attempts to deserialize the webhook payload into a BalanceAccountNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getBalanceAccountNotificationRequest() { + + var optionalBalanceAccountNotificationRequest = getOptionalField(BalanceAccountNotificationRequest.class); + + if(optionalBalanceAccountNotificationRequest.isPresent()) { + // verify event type + for (var value : BalanceAccountNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalBalanceAccountNotificationRequest.get().getType())) { + // found matching event type + return optionalBalanceAccountNotificationRequest; + } + } } - } + + return Optional.empty(); } - return Optional.empty(); - } - - /** - * Attempts to deserialize the webhook payload into a NetworkTokenNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getNetworkTokenNotificationRequest() { - - var optionalNetworkTokenNotificationRequest = - getOptionalField(NetworkTokenNotificationRequest.class); - - if (optionalNetworkTokenNotificationRequest.isPresent()) { - // verify event type - for (var value : NetworkTokenNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalNetworkTokenNotificationRequest.get().getType())) { - // found matching event type - return optionalNetworkTokenNotificationRequest; + /** + * Attempts to deserialize the webhook payload into a CardOrderNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getCardOrderNotificationRequest() { + + var optionalCardOrderNotificationRequest = getOptionalField(CardOrderNotificationRequest.class); + + if(optionalCardOrderNotificationRequest.isPresent()) { + // verify event type + for (var value : CardOrderNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalCardOrderNotificationRequest.get().getType())) { + // found matching event type + return optionalCardOrderNotificationRequest; + } + } } - } - } - return Optional.empty(); - } + return Optional.empty(); + } - /** - * Attempts to deserialize the webhook payload into a PaymentNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getPaymentNotificationRequest() { + /** + * Attempts to deserialize the webhook payload into a NetworkTokenNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getNetworkTokenNotificationRequest() { + + var optionalNetworkTokenNotificationRequest = getOptionalField(NetworkTokenNotificationRequest.class); + + if(optionalNetworkTokenNotificationRequest.isPresent()) { + // verify event type + for (var value : NetworkTokenNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalNetworkTokenNotificationRequest.get().getType())) { + // found matching event type + return optionalNetworkTokenNotificationRequest; + } + } + } - var optionalPaymentNotificationRequest = getOptionalField(PaymentNotificationRequest.class); + return Optional.empty(); + } - if (optionalPaymentNotificationRequest.isPresent()) { - // verify event type - for (var value : PaymentNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalPaymentNotificationRequest.get().getType())) { - // found matching event type - return optionalPaymentNotificationRequest; + /** + * Attempts to deserialize the webhook payload into a PaymentNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getPaymentNotificationRequest() { + + var optionalPaymentNotificationRequest = getOptionalField(PaymentNotificationRequest.class); + + if(optionalPaymentNotificationRequest.isPresent()) { + // verify event type + for (var value : PaymentNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalPaymentNotificationRequest.get().getType())) { + // found matching event type + return optionalPaymentNotificationRequest; + } + } } - } - } - return Optional.empty(); - } + return Optional.empty(); + } - /** - * Attempts to deserialize the webhook payload into a ScoreNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getScoreNotificationRequest() { + /** + * Attempts to deserialize the webhook payload into a ScoreNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getScoreNotificationRequest() { + + var optionalScoreNotificationRequest = getOptionalField(ScoreNotificationRequest.class); + + if(optionalScoreNotificationRequest.isPresent()) { + // verify event type + for (var value : ScoreNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalScoreNotificationRequest.get().getType())) { + // found matching event type + return optionalScoreNotificationRequest; + } + } + } - var optionalScoreNotificationRequest = getOptionalField(ScoreNotificationRequest.class); + return Optional.empty(); + } - if (optionalScoreNotificationRequest.isPresent()) { - // verify event type - for (var value : ScoreNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalScoreNotificationRequest.get().getType())) { - // found matching event type - return optionalScoreNotificationRequest; + /** + * Attempts to deserialize the webhook payload into a SweepConfigurationNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getSweepConfigurationNotificationRequest() { + + var optionalSweepConfigurationNotificationRequest = getOptionalField(SweepConfigurationNotificationRequest.class); + + if(optionalSweepConfigurationNotificationRequest.isPresent()) { + // verify event type + for (var value : SweepConfigurationNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalSweepConfigurationNotificationRequest.get().getType())) { + // found matching event type + return optionalSweepConfigurationNotificationRequest; + } + } } - } + + return Optional.empty(); } - return Optional.empty(); - } - - /** - * Attempts to deserialize the webhook payload into a SweepConfigurationNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional - getSweepConfigurationNotificationRequest() { - - var optionalSweepConfigurationNotificationRequest = - getOptionalField(SweepConfigurationNotificationRequest.class); - - if (optionalSweepConfigurationNotificationRequest.isPresent()) { - // verify event type - for (var value : SweepConfigurationNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalSweepConfigurationNotificationRequest.get().getType())) { - // found matching event type - return optionalSweepConfigurationNotificationRequest; + /** + * Deserializes the payload into the specified class type. + * + * @param clazz the class to deserialize into + * @param the type of the class + * @return an Optional containing the deserialized object, or empty if an error occurs + */ + private Optional getOptionalField(Class clazz) { + try { + T val = JSON.getMapper().readValue(payload, clazz); + return Optional.ofNullable(val); + } catch (Exception e) { + // an error has occurred during deserialization (object not found, deserialization error) + LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); + LOG.warning("Deserialization error: " + e.getMessage()); + return Optional.empty(); } - } } - return Optional.empty(); - } - - /** - * Deserializes the payload into the specified class type. - * - * @param clazz the class to deserialize into - * @param the type of the class - * @return an Optional containing the deserialized object, or empty if an error occurs - */ - private Optional getOptionalField(Class clazz) { - try { - T val = JSON.getMapper().readValue(payload, clazz); - return Optional.ofNullable(val); - } catch (Exception e) { - // an error has occurred during deserialization (object not found, deserialization error) - LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); - LOG.warning("Deserialization error: " + e.getMessage()); - return Optional.empty(); - } - } -} +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/configurationwebhooks/ContactDetails.java b/src/main/java/com/adyen/model/configurationwebhooks/ContactDetails.java index c938ba416..f7715e59c 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/ContactDetails.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/ContactDetails.java @@ -2,25 +2,33 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.configurationwebhooks.Address; +import com.adyen.model.configurationwebhooks.Phone; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; + /** * ContactDetails - * - * @deprecated + * @deprecated */ @Deprecated @JsonPropertyOrder({ @@ -29,6 +37,7 @@ ContactDetails.JSON_PROPERTY_PHONE, ContactDetails.JSON_PROPERTY_WEB_ADDRESS }) + public class ContactDetails { public static final String JSON_PROPERTY_ADDRESS = "address"; private Address address; @@ -42,12 +51,13 @@ public class ContactDetails { public static final String JSON_PROPERTY_WEB_ADDRESS = "webAddress"; private String webAddress; - public ContactDetails() {} + public ContactDetails() { + } /** * address * - * @param address + * @param address * @return the current {@code ContactDetails} instance, allowing for method chaining */ public ContactDetails address(Address address) { @@ -57,8 +67,7 @@ public ContactDetails address(Address address) { /** * Get address - * - * @return address + * @return address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -69,7 +78,7 @@ public Address getAddress() { /** * address * - * @param address + * @param address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -90,7 +99,6 @@ public ContactDetails email(String email) { /** * The email address of the account holder. - * * @return email The email address of the account holder. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -113,7 +121,7 @@ public void setEmail(String email) { /** * phone * - * @param phone + * @param phone * @return the current {@code ContactDetails} instance, allowing for method chaining */ public ContactDetails phone(Phone phone) { @@ -123,8 +131,7 @@ public ContactDetails phone(Phone phone) { /** * Get phone - * - * @return phone + * @return phone */ @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,7 +142,7 @@ public Phone getPhone() { /** * phone * - * @param phone + * @param phone */ @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,7 +163,6 @@ public ContactDetails webAddress(String webAddress) { /** * The URL of the account holder's website. - * * @return webAddress The URL of the account holder's website. */ @JsonProperty(JSON_PROPERTY_WEB_ADDRESS) @@ -176,7 +182,9 @@ public void setWebAddress(String webAddress) { this.webAddress = webAddress; } - /** Return true if this ContactDetails object is equal to o. */ + /** + * Return true if this ContactDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -186,10 +194,10 @@ public boolean equals(Object o) { return false; } ContactDetails contactDetails = (ContactDetails) o; - return Objects.equals(this.address, contactDetails.address) - && Objects.equals(this.email, contactDetails.email) - && Objects.equals(this.phone, contactDetails.phone) - && Objects.equals(this.webAddress, contactDetails.webAddress); + return Objects.equals(this.address, contactDetails.address) && + Objects.equals(this.email, contactDetails.email) && + Objects.equals(this.phone, contactDetails.phone) && + Objects.equals(this.webAddress, contactDetails.webAddress); } @Override @@ -210,7 +218,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -219,7 +228,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ContactDetails given an JSON string * * @param jsonString JSON string @@ -229,12 +238,11 @@ private String toIndentedString(Object o) { public static ContactDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ContactDetails.class); } - - /** - * Convert an instance of ContactDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ContactDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/DeliveryAddress.java b/src/main/java/com/adyen/model/configurationwebhooks/DeliveryAddress.java index 7a23d99ef..c6e10e655 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/DeliveryAddress.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/DeliveryAddress.java @@ -2,22 +2,31 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** DeliveryAddress */ + +/** + * DeliveryAddress + */ @JsonPropertyOrder({ DeliveryAddress.JSON_PROPERTY_CITY, DeliveryAddress.JSON_PROPERTY_COUNTRY, @@ -27,6 +36,7 @@ DeliveryAddress.JSON_PROPERTY_POSTAL_CODE, DeliveryAddress.JSON_PROPERTY_STATE_OR_PROVINCE }) + public class DeliveryAddress { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -49,7 +59,8 @@ public class DeliveryAddress { public static final String JSON_PROPERTY_STATE_OR_PROVINCE = "stateOrProvince"; private String stateOrProvince; - public DeliveryAddress() {} + public DeliveryAddress() { + } /** * The name of the city. @@ -64,7 +75,6 @@ public DeliveryAddress city(String city) { /** * The name of the city. - * * @return city The name of the city. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -85,13 +95,9 @@ public void setCity(String city) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't - * know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If - * you don't know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress country(String country) { @@ -100,13 +106,8 @@ public DeliveryAddress country(String country) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't - * know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. - * - * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If - * you don't know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,13 +116,9 @@ public String getCountry() { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't - * know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If - * you don't know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -130,11 +127,9 @@ public void setCountry(String country) { } /** - * The name of the street. Do not include the number of the building. For example, if the address - * is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. + * The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. * - * @param line1 The name of the street. Do not include the number of the building. For example, if - * the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. + * @param line1 The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress line1(String line1) { @@ -143,11 +138,8 @@ public DeliveryAddress line1(String line1) { } /** - * The name of the street. Do not include the number of the building. For example, if the address - * is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. - * - * @return line1 The name of the street. Do not include the number of the building. For example, - * if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. + * The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. + * @return line1 The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. */ @JsonProperty(JSON_PROPERTY_LINE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,11 +148,9 @@ public String getLine1() { } /** - * The name of the street. Do not include the number of the building. For example, if the address - * is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. + * The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. * - * @param line1 The name of the street. Do not include the number of the building. For example, if - * the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. + * @param line1 The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. */ @JsonProperty(JSON_PROPERTY_LINE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,11 +159,9 @@ public void setLine1(String line1) { } /** - * The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide - * **6-50**. + * The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**. * - * @param line2 The number of the building. For example, if the address is Simon Carmiggeltstraat - * 6-50, provide **6-50**. + * @param line2 The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**. * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress line2(String line2) { @@ -182,11 +170,8 @@ public DeliveryAddress line2(String line2) { } /** - * The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide - * **6-50**. - * - * @return line2 The number of the building. For example, if the address is Simon Carmiggeltstraat - * 6-50, provide **6-50**. + * The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**. + * @return line2 The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**. */ @JsonProperty(JSON_PROPERTY_LINE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,11 +180,9 @@ public String getLine2() { } /** - * The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide - * **6-50**. + * The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**. * - * @param line2 The number of the building. For example, if the address is Simon Carmiggeltstraat - * 6-50, provide **6-50**. + * @param line2 The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**. */ @JsonProperty(JSON_PROPERTY_LINE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -220,7 +203,6 @@ public DeliveryAddress line3(String line3) { /** * Additional information about the delivery address. - * * @return line3 Additional information about the delivery address. */ @JsonProperty(JSON_PROPERTY_LINE3) @@ -241,11 +223,9 @@ public void setLine3(String line3) { } /** - * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an - * address in all other countries. + * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. * - * @param postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 - * characters for an address in all other countries. + * @param postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress postalCode(String postalCode) { @@ -254,11 +234,8 @@ public DeliveryAddress postalCode(String postalCode) { } /** - * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an - * address in all other countries. - * - * @return postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 - * characters for an address in all other countries. + * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. + * @return postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -267,11 +244,9 @@ public String getPostalCode() { } /** - * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an - * address in all other countries. + * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. * - * @param postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 - * characters for an address in all other countries. + * @param postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -280,12 +255,9 @@ public void setPostalCode(String postalCode) { } /** - * The state or province code, maximum 3 characters. For example, **CA** for California in the US - * or **ON** for Ontario in Canada. > Required for the US and Canada. + * The state or province code, maximum 3 characters. For example, **CA** for California in the US or **ON** for Ontario in Canada. > Required for the US and Canada. * - * @param stateOrProvince The state or province code, maximum 3 characters. For example, **CA** - * for California in the US or **ON** for Ontario in Canada. > Required for the US and - * Canada. + * @param stateOrProvince The state or province code, maximum 3 characters. For example, **CA** for California in the US or **ON** for Ontario in Canada. > Required for the US and Canada. * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress stateOrProvince(String stateOrProvince) { @@ -294,12 +266,8 @@ public DeliveryAddress stateOrProvince(String stateOrProvince) { } /** - * The state or province code, maximum 3 characters. For example, **CA** for California in the US - * or **ON** for Ontario in Canada. > Required for the US and Canada. - * - * @return stateOrProvince The state or province code, maximum 3 characters. For example, **CA** - * for California in the US or **ON** for Ontario in Canada. > Required for the US and - * Canada. + * The state or province code, maximum 3 characters. For example, **CA** for California in the US or **ON** for Ontario in Canada. > Required for the US and Canada. + * @return stateOrProvince The state or province code, maximum 3 characters. For example, **CA** for California in the US or **ON** for Ontario in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -308,12 +276,9 @@ public String getStateOrProvince() { } /** - * The state or province code, maximum 3 characters. For example, **CA** for California in the US - * or **ON** for Ontario in Canada. > Required for the US and Canada. + * The state or province code, maximum 3 characters. For example, **CA** for California in the US or **ON** for Ontario in Canada. > Required for the US and Canada. * - * @param stateOrProvince The state or province code, maximum 3 characters. For example, **CA** - * for California in the US or **ON** for Ontario in Canada. > Required for the US and - * Canada. + * @param stateOrProvince The state or province code, maximum 3 characters. For example, **CA** for California in the US or **ON** for Ontario in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -321,7 +286,9 @@ public void setStateOrProvince(String stateOrProvince) { this.stateOrProvince = stateOrProvince; } - /** Return true if this DeliveryAddress object is equal to o. */ + /** + * Return true if this DeliveryAddress object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -331,13 +298,13 @@ public boolean equals(Object o) { return false; } DeliveryAddress deliveryAddress = (DeliveryAddress) o; - return Objects.equals(this.city, deliveryAddress.city) - && Objects.equals(this.country, deliveryAddress.country) - && Objects.equals(this.line1, deliveryAddress.line1) - && Objects.equals(this.line2, deliveryAddress.line2) - && Objects.equals(this.line3, deliveryAddress.line3) - && Objects.equals(this.postalCode, deliveryAddress.postalCode) - && Objects.equals(this.stateOrProvince, deliveryAddress.stateOrProvince); + return Objects.equals(this.city, deliveryAddress.city) && + Objects.equals(this.country, deliveryAddress.country) && + Objects.equals(this.line1, deliveryAddress.line1) && + Objects.equals(this.line2, deliveryAddress.line2) && + Objects.equals(this.line3, deliveryAddress.line3) && + Objects.equals(this.postalCode, deliveryAddress.postalCode) && + Objects.equals(this.stateOrProvince, deliveryAddress.stateOrProvince); } @Override @@ -361,7 +328,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -370,7 +338,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DeliveryAddress given an JSON string * * @param jsonString JSON string @@ -380,12 +348,11 @@ private String toIndentedString(Object o) { public static DeliveryAddress fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DeliveryAddress.class); } - - /** - * Convert an instance of DeliveryAddress to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DeliveryAddress to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/DeliveryContact.java b/src/main/java/com/adyen/model/configurationwebhooks/DeliveryContact.java index 4e9478cbc..a0304d9b3 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/DeliveryContact.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/DeliveryContact.java @@ -2,22 +2,34 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.configurationwebhooks.DeliveryAddress; +import com.adyen.model.configurationwebhooks.Name; +import com.adyen.model.configurationwebhooks.PhoneNumber; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** DeliveryContact */ + +/** + * DeliveryContact + */ @JsonPropertyOrder({ DeliveryContact.JSON_PROPERTY_ADDRESS, DeliveryContact.JSON_PROPERTY_COMPANY, @@ -27,6 +39,7 @@ DeliveryContact.JSON_PROPERTY_PHONE_NUMBER, DeliveryContact.JSON_PROPERTY_WEB_ADDRESS }) + public class DeliveryContact { public static final String JSON_PROPERTY_ADDRESS = "address"; private DeliveryAddress address; @@ -49,12 +62,13 @@ public class DeliveryContact { public static final String JSON_PROPERTY_WEB_ADDRESS = "webAddress"; private String webAddress; - public DeliveryContact() {} + public DeliveryContact() { + } /** * address * - * @param address + * @param address * @return the current {@code DeliveryContact} instance, allowing for method chaining */ public DeliveryContact address(DeliveryAddress address) { @@ -64,8 +78,7 @@ public DeliveryContact address(DeliveryAddress address) { /** * Get address - * - * @return address + * @return address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -76,7 +89,7 @@ public DeliveryAddress getAddress() { /** * address * - * @param address + * @param address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,7 +110,6 @@ public DeliveryContact company(String company) { /** * The company name of the contact. - * * @return company The company name of the contact. */ @JsonProperty(JSON_PROPERTY_COMPANY) @@ -130,7 +142,6 @@ public DeliveryContact email(String email) { /** * The email address of the contact. - * * @return email The email address of the contact. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -151,13 +162,9 @@ public void setEmail(String email) { } /** - * The full phone number of the contact provided as a single string. It will be handled as a - * landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", - * \"(0031) 611223344\" + * The full phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\" * - * @param fullPhoneNumber The full phone number of the contact provided as a single string. It - * will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", - * \"+316/1122-3344\", \"(0031) 611223344\" + * @param fullPhoneNumber The full phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\" * @return the current {@code DeliveryContact} instance, allowing for method chaining */ public DeliveryContact fullPhoneNumber(String fullPhoneNumber) { @@ -166,13 +173,8 @@ public DeliveryContact fullPhoneNumber(String fullPhoneNumber) { } /** - * The full phone number of the contact provided as a single string. It will be handled as a - * landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", - * \"(0031) 611223344\" - * - * @return fullPhoneNumber The full phone number of the contact provided as a single string. It - * will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", - * \"+316/1122-3344\", \"(0031) 611223344\" + * The full phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\" + * @return fullPhoneNumber The full phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\" */ @JsonProperty(JSON_PROPERTY_FULL_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,13 +183,9 @@ public String getFullPhoneNumber() { } /** - * The full phone number of the contact provided as a single string. It will be handled as a - * landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", - * \"(0031) 611223344\" + * The full phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\" * - * @param fullPhoneNumber The full phone number of the contact provided as a single string. It - * will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", - * \"+316/1122-3344\", \"(0031) 611223344\" + * @param fullPhoneNumber The full phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\" */ @JsonProperty(JSON_PROPERTY_FULL_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,7 +196,7 @@ public void setFullPhoneNumber(String fullPhoneNumber) { /** * name * - * @param name + * @param name * @return the current {@code DeliveryContact} instance, allowing for method chaining */ public DeliveryContact name(Name name) { @@ -208,8 +206,7 @@ public DeliveryContact name(Name name) { /** * Get name - * - * @return name + * @return name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -220,7 +217,7 @@ public Name getName() { /** * name * - * @param name + * @param name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -231,7 +228,7 @@ public void setName(Name name) { /** * phoneNumber * - * @param phoneNumber + * @param phoneNumber * @return the current {@code DeliveryContact} instance, allowing for method chaining */ public DeliveryContact phoneNumber(PhoneNumber phoneNumber) { @@ -241,8 +238,7 @@ public DeliveryContact phoneNumber(PhoneNumber phoneNumber) { /** * Get phoneNumber - * - * @return phoneNumber + * @return phoneNumber */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -253,7 +249,7 @@ public PhoneNumber getPhoneNumber() { /** * phoneNumber * - * @param phoneNumber + * @param phoneNumber */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -274,7 +270,6 @@ public DeliveryContact webAddress(String webAddress) { /** * The URL of the contact's website. - * * @return webAddress The URL of the contact's website. */ @JsonProperty(JSON_PROPERTY_WEB_ADDRESS) @@ -294,7 +289,9 @@ public void setWebAddress(String webAddress) { this.webAddress = webAddress; } - /** Return true if this DeliveryContact object is equal to o. */ + /** + * Return true if this DeliveryContact object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -304,13 +301,13 @@ public boolean equals(Object o) { return false; } DeliveryContact deliveryContact = (DeliveryContact) o; - return Objects.equals(this.address, deliveryContact.address) - && Objects.equals(this.company, deliveryContact.company) - && Objects.equals(this.email, deliveryContact.email) - && Objects.equals(this.fullPhoneNumber, deliveryContact.fullPhoneNumber) - && Objects.equals(this.name, deliveryContact.name) - && Objects.equals(this.phoneNumber, deliveryContact.phoneNumber) - && Objects.equals(this.webAddress, deliveryContact.webAddress); + return Objects.equals(this.address, deliveryContact.address) && + Objects.equals(this.company, deliveryContact.company) && + Objects.equals(this.email, deliveryContact.email) && + Objects.equals(this.fullPhoneNumber, deliveryContact.fullPhoneNumber) && + Objects.equals(this.name, deliveryContact.name) && + Objects.equals(this.phoneNumber, deliveryContact.phoneNumber) && + Objects.equals(this.webAddress, deliveryContact.webAddress); } @Override @@ -334,7 +331,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -343,7 +341,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DeliveryContact given an JSON string * * @param jsonString JSON string @@ -353,12 +351,11 @@ private String toIndentedString(Object o) { public static DeliveryContact fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DeliveryContact.class); } - - /** - * Convert an instance of DeliveryContact to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DeliveryContact to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Device.java b/src/main/java/com/adyen/model/configurationwebhooks/Device.java index a156b2279..aeebc238e 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Device.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Device.java @@ -2,23 +2,36 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Device */ -@JsonPropertyOrder({Device.JSON_PROPERTY_FORM_FACTOR, Device.JSON_PROPERTY_OS_NAME}) + +/** + * Device + */ +@JsonPropertyOrder({ + Device.JSON_PROPERTY_FORM_FACTOR, + Device.JSON_PROPERTY_OS_NAME +}) + public class Device { public static final String JSON_PROPERTY_FORM_FACTOR = "formFactor"; private String formFactor; @@ -26,14 +39,13 @@ public class Device { public static final String JSON_PROPERTY_OS_NAME = "osName"; private String osName; - public Device() {} + public Device() { + } /** - * The type of the device used for provisioning the network token. For example, **phone**, - * **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc + * The type of the device used for provisioning the network token. For example, **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc * - * @param formFactor The type of the device used for provisioning the network token. For example, - * **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc + * @param formFactor The type of the device used for provisioning the network token. For example, **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc * @return the current {@code Device} instance, allowing for method chaining */ public Device formFactor(String formFactor) { @@ -42,11 +54,8 @@ public Device formFactor(String formFactor) { } /** - * The type of the device used for provisioning the network token. For example, **phone**, - * **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc - * - * @return formFactor The type of the device used for provisioning the network token. For example, - * **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc + * The type of the device used for provisioning the network token. For example, **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc + * @return formFactor The type of the device used for provisioning the network token. For example, **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc */ @JsonProperty(JSON_PROPERTY_FORM_FACTOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -55,11 +64,9 @@ public String getFormFactor() { } /** - * The type of the device used for provisioning the network token. For example, **phone**, - * **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc + * The type of the device used for provisioning the network token. For example, **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc * - * @param formFactor The type of the device used for provisioning the network token. For example, - * **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc + * @param formFactor The type of the device used for provisioning the network token. For example, **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc */ @JsonProperty(JSON_PROPERTY_FORM_FACTOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,7 +87,6 @@ public Device osName(String osName) { /** * The operating system of the device used for provisioning the network token. - * * @return osName The operating system of the device used for provisioning the network token. */ @JsonProperty(JSON_PROPERTY_OS_NAME) @@ -100,7 +106,9 @@ public void setOsName(String osName) { this.osName = osName; } - /** Return true if this Device object is equal to o. */ + /** + * Return true if this Device object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -110,8 +118,8 @@ public boolean equals(Object o) { return false; } Device device = (Device) o; - return Objects.equals(this.formFactor, device.formFactor) - && Objects.equals(this.osName, device.osName); + return Objects.equals(this.formFactor, device.formFactor) && + Objects.equals(this.osName, device.osName); } @Override @@ -130,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -139,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Device given an JSON string * * @param jsonString JSON string @@ -149,12 +158,11 @@ private String toIndentedString(Object o) { public static Device fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Device.class); } - - /** - * Convert an instance of Device to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Device to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Expiry.java b/src/main/java/com/adyen/model/configurationwebhooks/Expiry.java index eeaac49df..c40ba1658 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Expiry.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Expiry.java @@ -2,23 +2,36 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Expiry */ -@JsonPropertyOrder({Expiry.JSON_PROPERTY_MONTH, Expiry.JSON_PROPERTY_YEAR}) + +/** + * Expiry + */ +@JsonPropertyOrder({ + Expiry.JSON_PROPERTY_MONTH, + Expiry.JSON_PROPERTY_YEAR +}) + public class Expiry { public static final String JSON_PROPERTY_MONTH = "month"; private String month; @@ -26,7 +39,8 @@ public class Expiry { public static final String JSON_PROPERTY_YEAR = "year"; private String year; - public Expiry() {} + public Expiry() { + } /** * The month in which the card will expire. @@ -41,7 +55,6 @@ public Expiry month(String month) { /** * The month in which the card will expire. - * * @return month The month in which the card will expire. */ @JsonProperty(JSON_PROPERTY_MONTH) @@ -74,7 +87,6 @@ public Expiry year(String year) { /** * The year in which the card will expire. - * * @return year The year in which the card will expire. */ @JsonProperty(JSON_PROPERTY_YEAR) @@ -94,7 +106,9 @@ public void setYear(String year) { this.year = year; } - /** Return true if this Expiry object is equal to o. */ + /** + * Return true if this Expiry object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -104,7 +118,8 @@ public boolean equals(Object o) { return false; } Expiry expiry = (Expiry) o; - return Objects.equals(this.month, expiry.month) && Objects.equals(this.year, expiry.year); + return Objects.equals(this.month, expiry.month) && + Objects.equals(this.year, expiry.year); } @Override @@ -123,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -132,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Expiry given an JSON string * * @param jsonString JSON string @@ -142,12 +158,11 @@ private String toIndentedString(Object o) { public static Expiry fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Expiry.class); } - - /** - * Convert an instance of Expiry to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Expiry to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/IbanAccountIdentification.java b/src/main/java/com/adyen/model/configurationwebhooks/IbanAccountIdentification.java index fa9be03e0..6a6642b60 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/IbanAccountIdentification.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/IbanAccountIdentification.java @@ -2,36 +2,45 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** IbanAccountIdentification */ + +/** + * IbanAccountIdentification + */ @JsonPropertyOrder({ IbanAccountIdentification.JSON_PROPERTY_IBAN, IbanAccountIdentification.JSON_PROPERTY_TYPE }) + public class IbanAccountIdentification { public static final String JSON_PROPERTY_IBAN = "iban"; private String iban; - /** **iban** */ + /** + * **iban** + */ public enum TypeEnum { + IBAN(String.valueOf("iban")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -39,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -72,14 +77,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public IbanAccountIdentification() {} + public IbanAccountIdentification() { + } /** - * The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. * - * @param iban The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @param iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. * @return the current {@code IbanAccountIdentification} instance, allowing for method chaining */ public IbanAccountIdentification iban(String iban) { @@ -88,11 +92,8 @@ public IbanAccountIdentification iban(String iban) { } /** - * The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. - * - * @return iban The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @return iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,11 +102,9 @@ public String getIban() { } /** - * The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. * - * @param iban The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @param iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,7 +125,6 @@ public IbanAccountIdentification type(TypeEnum type) { /** * **iban** - * * @return type **iban** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -146,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this IbanAccountIdentification object is equal to o. */ + /** + * Return true if this IbanAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +156,8 @@ public boolean equals(Object o) { return false; } IbanAccountIdentification ibanAccountIdentification = (IbanAccountIdentification) o; - return Objects.equals(this.iban, ibanAccountIdentification.iban) - && Objects.equals(this.type, ibanAccountIdentification.type); + return Objects.equals(this.iban, ibanAccountIdentification.iban) && + Objects.equals(this.type, ibanAccountIdentification.type); } @Override @@ -176,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -185,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of IbanAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of IbanAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * IbanAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to IbanAccountIdentification */ - public static IbanAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static IbanAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, IbanAccountIdentification.class); } - - /** - * Convert an instance of IbanAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of IbanAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/JSON.java b/src/main/java/com/adyen/model/configurationwebhooks/JSON.java index a7359241d..1016896cc 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/JSON.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/JSON.java @@ -1,18 +1,21 @@ package com.adyen.model.configurationwebhooks; -import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; +import com.adyen.serializer.ByteArrayDeserializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; +import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; +import com.adyen.model.configurationwebhooks.*; + import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -37,7 +40,6 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. - * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -54,13 +56,11 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { - return mapper; - } + public static ObjectMapper getMapper() { return mapper; } /** - * Returns the target model class that should be used to deserialize the input data. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,7 +73,9 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** Helper class to register the discriminator mappings. */ + /** + * Helper class to register the discriminator mappings. + */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -115,9 +117,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. This - * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -162,14 +164,13 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so - * it's not possible to use the instanceof keyword. + * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, + * so it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf( - Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -193,58 +194,59 @@ public static boolean isInstanceOf( return false; } - /** A map of discriminators for all model classes. */ - private static final Map, ClassDiscriminatorMapping> modelDiscriminators = - new HashMap, ClassDiscriminatorMapping>(); + /** + * A map of discriminators for all model classes. + */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); - /** A map of oneOf/anyOf descendants for each model class. */ + /** + * A map of oneOf/anyOf descendants for each model class. + */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator( - Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = - new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants( - Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants(Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static { + static + { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Name.java b/src/main/java/com/adyen/model/configurationwebhooks/Name.java index ce1fdf421..eb9fb2150 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Name.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Name.java @@ -2,23 +2,36 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Name */ -@JsonPropertyOrder({Name.JSON_PROPERTY_FIRST_NAME, Name.JSON_PROPERTY_LAST_NAME}) + +/** + * Name + */ +@JsonPropertyOrder({ + Name.JSON_PROPERTY_FIRST_NAME, + Name.JSON_PROPERTY_LAST_NAME +}) + public class Name { public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; private String firstName; @@ -26,7 +39,8 @@ public class Name { public static final String JSON_PROPERTY_LAST_NAME = "lastName"; private String lastName; - public Name() {} + public Name() { + } /** * The first name. @@ -41,7 +55,6 @@ public Name firstName(String firstName) { /** * The first name. - * * @return firstName The first name. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @@ -74,7 +87,6 @@ public Name lastName(String lastName) { /** * The last name. - * * @return lastName The last name. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @@ -94,7 +106,9 @@ public void setLastName(String lastName) { this.lastName = lastName; } - /** Return true if this Name object is equal to o. */ + /** + * Return true if this Name object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -104,8 +118,8 @@ public boolean equals(Object o) { return false; } Name name = (Name) o; - return Objects.equals(this.firstName, name.firstName) - && Objects.equals(this.lastName, name.lastName); + return Objects.equals(this.firstName, name.firstName) && + Objects.equals(this.lastName, name.lastName); } @Override @@ -124,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Name given an JSON string * * @param jsonString JSON string @@ -143,12 +158,11 @@ private String toIndentedString(Object o) { public static Name fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Name.class); } - - /** - * Convert an instance of Name to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Name to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenNotificationDataV2.java b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenNotificationDataV2.java index be67d535d..0d057684a 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenNotificationDataV2.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenNotificationDataV2.java @@ -2,24 +2,38 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.configurationwebhooks.NetworkTokenRequestor; +import com.adyen.model.configurationwebhooks.NetworkTokenTransactionRulesResult; +import com.adyen.model.configurationwebhooks.TokenAuthentication; +import com.adyen.model.configurationwebhooks.ValidationFacts; +import com.adyen.model.configurationwebhooks.Wallet; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** NetworkTokenNotificationDataV2 */ + +/** + * NetworkTokenNotificationDataV2 + */ @JsonPropertyOrder({ NetworkTokenNotificationDataV2.JSON_PROPERTY_AUTHENTICATION, NetworkTokenNotificationDataV2.JSON_PROPERTY_AUTHENTICATION_APPLIED, @@ -35,6 +49,7 @@ NetworkTokenNotificationDataV2.JSON_PROPERTY_VALIDATION_FACTS, NetworkTokenNotificationDataV2.JSON_PROPERTY_WALLET }) + public class NetworkTokenNotificationDataV2 { public static final String JSON_PROPERTY_AUTHENTICATION = "authentication"; private TokenAuthentication authentication; @@ -75,14 +90,14 @@ public class NetworkTokenNotificationDataV2 { public static final String JSON_PROPERTY_WALLET = "wallet"; private Wallet wallet; - public NetworkTokenNotificationDataV2() {} + public NetworkTokenNotificationDataV2() { + } /** * authentication * - * @param authentication - * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method - * chaining + * @param authentication + * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method chaining */ public NetworkTokenNotificationDataV2 authentication(TokenAuthentication authentication) { this.authentication = authentication; @@ -91,8 +106,7 @@ public NetworkTokenNotificationDataV2 authentication(TokenAuthentication authent /** * Get authentication - * - * @return authentication + * @return authentication */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -103,7 +117,7 @@ public TokenAuthentication getAuthentication() { /** * authentication * - * @param authentication + * @param authentication */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,10 +128,8 @@ public void setAuthentication(TokenAuthentication authentication) { /** * Specifies whether the authentication process was triggered during token provisioning. * - * @param authenticationApplied Specifies whether the authentication process was triggered during - * token provisioning. - * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method - * chaining + * @param authenticationApplied Specifies whether the authentication process was triggered during token provisioning. + * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method chaining */ public NetworkTokenNotificationDataV2 authenticationApplied(Boolean authenticationApplied) { this.authenticationApplied = authenticationApplied; @@ -126,9 +138,7 @@ public NetworkTokenNotificationDataV2 authenticationApplied(Boolean authenticati /** * Specifies whether the authentication process was triggered during token provisioning. - * - * @return authenticationApplied Specifies whether the authentication process was triggered during - * token provisioning. + * @return authenticationApplied Specifies whether the authentication process was triggered during token provisioning. */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_APPLIED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,8 +149,7 @@ public Boolean getAuthenticationApplied() { /** * Specifies whether the authentication process was triggered during token provisioning. * - * @param authenticationApplied Specifies whether the authentication process was triggered during - * token provisioning. + * @param authenticationApplied Specifies whether the authentication process was triggered during token provisioning. */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_APPLIED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,8 +161,7 @@ public void setAuthenticationApplied(Boolean authenticationApplied) { * The unique identifier of the balance platform. * * @param balancePlatform The unique identifier of the balance platform. - * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method - * chaining + * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method chaining */ public NetworkTokenNotificationDataV2 balancePlatform(String balancePlatform) { this.balancePlatform = balancePlatform; @@ -162,7 +170,6 @@ public NetworkTokenNotificationDataV2 balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. - * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -183,13 +190,10 @@ public void setBalancePlatform(String balancePlatform) { } /** - * The decision about the network token provisioning. Possible values: **approved**, **declined**, - * **requiresAuthentication**. + * The decision about the network token provisioning. Possible values: **approved**, **declined**, **requiresAuthentication**. * - * @param decision The decision about the network token provisioning. Possible values: - * **approved**, **declined**, **requiresAuthentication**. - * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method - * chaining + * @param decision The decision about the network token provisioning. Possible values: **approved**, **declined**, **requiresAuthentication**. + * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method chaining */ public NetworkTokenNotificationDataV2 decision(String decision) { this.decision = decision; @@ -197,11 +201,8 @@ public NetworkTokenNotificationDataV2 decision(String decision) { } /** - * The decision about the network token provisioning. Possible values: **approved**, **declined**, - * **requiresAuthentication**. - * - * @return decision The decision about the network token provisioning. Possible values: - * **approved**, **declined**, **requiresAuthentication**. + * The decision about the network token provisioning. Possible values: **approved**, **declined**, **requiresAuthentication**. + * @return decision The decision about the network token provisioning. Possible values: **approved**, **declined**, **requiresAuthentication**. */ @JsonProperty(JSON_PROPERTY_DECISION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -210,11 +211,9 @@ public String getDecision() { } /** - * The decision about the network token provisioning. Possible values: **approved**, **declined**, - * **requiresAuthentication**. + * The decision about the network token provisioning. Possible values: **approved**, **declined**, **requiresAuthentication**. * - * @param decision The decision about the network token provisioning. Possible values: - * **approved**, **declined**, **requiresAuthentication**. + * @param decision The decision about the network token provisioning. Possible values: **approved**, **declined**, **requiresAuthentication**. */ @JsonProperty(JSON_PROPERTY_DECISION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -226,8 +225,7 @@ public void setDecision(String decision) { * The unique identifier of the network token. * * @param id The unique identifier of the network token. - * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method - * chaining + * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method chaining */ public NetworkTokenNotificationDataV2 id(String id) { this.id = id; @@ -236,7 +234,6 @@ public NetworkTokenNotificationDataV2 id(String id) { /** * The unique identifier of the network token. - * * @return id The unique identifier of the network token. */ @JsonProperty(JSON_PROPERTY_ID) @@ -259,10 +256,8 @@ public void setId(String id) { /** * The unique identifier of the payment instrument to which the network token is associated. * - * @param paymentInstrumentId The unique identifier of the payment instrument to which the network - * token is associated. - * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method - * chaining + * @param paymentInstrumentId The unique identifier of the payment instrument to which the network token is associated. + * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method chaining */ public NetworkTokenNotificationDataV2 paymentInstrumentId(String paymentInstrumentId) { this.paymentInstrumentId = paymentInstrumentId; @@ -271,9 +266,7 @@ public NetworkTokenNotificationDataV2 paymentInstrumentId(String paymentInstrume /** * The unique identifier of the payment instrument to which the network token is associated. - * - * @return paymentInstrumentId The unique identifier of the payment instrument to which the - * network token is associated. + * @return paymentInstrumentId The unique identifier of the payment instrument to which the network token is associated. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,8 +277,7 @@ public String getPaymentInstrumentId() { /** * The unique identifier of the payment instrument to which the network token is associated. * - * @param paymentInstrumentId The unique identifier of the payment instrument to which the network - * token is associated. + * @param paymentInstrumentId The unique identifier of the payment instrument to which the network token is associated. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -297,8 +289,7 @@ public void setPaymentInstrumentId(String paymentInstrumentId) { * The status of the network token. * * @param status The status of the network token. - * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method - * chaining + * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method chaining */ public NetworkTokenNotificationDataV2 status(String status) { this.status = status; @@ -307,7 +298,6 @@ public NetworkTokenNotificationDataV2 status(String status) { /** * The status of the network token. - * * @return status The status of the network token. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -328,13 +318,10 @@ public void setStatus(String status) { } /** - * The last four digits of the network token. Use this value to help your user to identify their - * network token. + * The last four digits of the network token. Use this value to help your user to identify their network token. * - * @param tokenLastFour The last four digits of the network token. Use this value to help your - * user to identify their network token. - * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method - * chaining + * @param tokenLastFour The last four digits of the network token. Use this value to help your user to identify their network token. + * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method chaining */ public NetworkTokenNotificationDataV2 tokenLastFour(String tokenLastFour) { this.tokenLastFour = tokenLastFour; @@ -342,11 +329,8 @@ public NetworkTokenNotificationDataV2 tokenLastFour(String tokenLastFour) { } /** - * The last four digits of the network token. Use this value to help your user to identify their - * network token. - * - * @return tokenLastFour The last four digits of the network token. Use this value to help your - * user to identify their network token. + * The last four digits of the network token. Use this value to help your user to identify their network token. + * @return tokenLastFour The last four digits of the network token. Use this value to help your user to identify their network token. */ @JsonProperty(JSON_PROPERTY_TOKEN_LAST_FOUR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -355,11 +339,9 @@ public String getTokenLastFour() { } /** - * The last four digits of the network token. Use this value to help your user to identify their - * network token. + * The last four digits of the network token. Use this value to help your user to identify their network token. * - * @param tokenLastFour The last four digits of the network token. Use this value to help your - * user to identify their network token. + * @param tokenLastFour The last four digits of the network token. Use this value to help your user to identify their network token. */ @JsonProperty(JSON_PROPERTY_TOKEN_LAST_FOUR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -370,9 +352,8 @@ public void setTokenLastFour(String tokenLastFour) { /** * tokenRequestor * - * @param tokenRequestor - * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method - * chaining + * @param tokenRequestor + * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method chaining */ public NetworkTokenNotificationDataV2 tokenRequestor(NetworkTokenRequestor tokenRequestor) { this.tokenRequestor = tokenRequestor; @@ -381,8 +362,7 @@ public NetworkTokenNotificationDataV2 tokenRequestor(NetworkTokenRequestor token /** * Get tokenRequestor - * - * @return tokenRequestor + * @return tokenRequestor */ @JsonProperty(JSON_PROPERTY_TOKEN_REQUESTOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -393,7 +373,7 @@ public NetworkTokenRequestor getTokenRequestor() { /** * tokenRequestor * - * @param tokenRequestor + * @param tokenRequestor */ @JsonProperty(JSON_PROPERTY_TOKEN_REQUESTOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -404,20 +384,17 @@ public void setTokenRequestor(NetworkTokenRequestor tokenRequestor) { /** * transactionRulesResult * - * @param transactionRulesResult - * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method - * chaining + * @param transactionRulesResult + * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method chaining */ - public NetworkTokenNotificationDataV2 transactionRulesResult( - NetworkTokenTransactionRulesResult transactionRulesResult) { + public NetworkTokenNotificationDataV2 transactionRulesResult(NetworkTokenTransactionRulesResult transactionRulesResult) { this.transactionRulesResult = transactionRulesResult; return this; } /** * Get transactionRulesResult - * - * @return transactionRulesResult + * @return transactionRulesResult */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULES_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -428,7 +405,7 @@ public NetworkTokenTransactionRulesResult getTransactionRulesResult() { /** * transactionRulesResult * - * @param transactionRulesResult + * @param transactionRulesResult */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULES_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -437,11 +414,10 @@ public void setTransactionRulesResult(NetworkTokenTransactionRulesResult transac } /** - * The type of network token. Possible values: **wallet**, **cof**. + * The type of network token. Possible values: **wallet**, **cof**. * - * @param type The type of network token. Possible values: **wallet**, **cof**. - * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method - * chaining + * @param type The type of network token. Possible values: **wallet**, **cof**. + * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method chaining */ public NetworkTokenNotificationDataV2 type(String type) { this.type = type; @@ -449,9 +425,8 @@ public NetworkTokenNotificationDataV2 type(String type) { } /** - * The type of network token. Possible values: **wallet**, **cof**. - * - * @return type The type of network token. Possible values: **wallet**, **cof**. + * The type of network token. Possible values: **wallet**, **cof**. + * @return type The type of network token. Possible values: **wallet**, **cof**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -460,9 +435,9 @@ public String getType() { } /** - * The type of network token. Possible values: **wallet**, **cof**. + * The type of network token. Possible values: **wallet**, **cof**. * - * @param type The type of network token. Possible values: **wallet**, **cof**. + * @param type The type of network token. Possible values: **wallet**, **cof**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -473,18 +448,15 @@ public void setType(String type) { /** * The rules used to validate the request for provisioning the network token. * - * @param validationFacts The rules used to validate the request for provisioning the network - * token. - * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method - * chaining + * @param validationFacts The rules used to validate the request for provisioning the network token. + * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method chaining */ public NetworkTokenNotificationDataV2 validationFacts(List validationFacts) { this.validationFacts = validationFacts; return this; } - public NetworkTokenNotificationDataV2 addValidationFactsItem( - ValidationFacts validationFactsItem) { + public NetworkTokenNotificationDataV2 addValidationFactsItem(ValidationFacts validationFactsItem) { if (this.validationFacts == null) { this.validationFacts = new ArrayList<>(); } @@ -494,9 +466,7 @@ public NetworkTokenNotificationDataV2 addValidationFactsItem( /** * The rules used to validate the request for provisioning the network token. - * - * @return validationFacts The rules used to validate the request for provisioning the network - * token. + * @return validationFacts The rules used to validate the request for provisioning the network token. */ @JsonProperty(JSON_PROPERTY_VALIDATION_FACTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -507,8 +477,7 @@ public List getValidationFacts() { /** * The rules used to validate the request for provisioning the network token. * - * @param validationFacts The rules used to validate the request for provisioning the network - * token. + * @param validationFacts The rules used to validate the request for provisioning the network token. */ @JsonProperty(JSON_PROPERTY_VALIDATION_FACTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -519,9 +488,8 @@ public void setValidationFacts(List validationFacts) { /** * wallet * - * @param wallet - * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method - * chaining + * @param wallet + * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method chaining */ public NetworkTokenNotificationDataV2 wallet(Wallet wallet) { this.wallet = wallet; @@ -530,8 +498,7 @@ public NetworkTokenNotificationDataV2 wallet(Wallet wallet) { /** * Get wallet - * - * @return wallet + * @return wallet */ @JsonProperty(JSON_PROPERTY_WALLET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -542,7 +509,7 @@ public Wallet getWallet() { /** * wallet * - * @param wallet + * @param wallet */ @JsonProperty(JSON_PROPERTY_WALLET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -550,7 +517,9 @@ public void setWallet(Wallet wallet) { this.wallet = wallet; } - /** Return true if this NetworkTokenNotificationDataV2 object is equal to o. */ + /** + * Return true if this NetworkTokenNotificationDataV2 object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -559,42 +528,25 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - NetworkTokenNotificationDataV2 networkTokenNotificationDataV2 = - (NetworkTokenNotificationDataV2) o; - return Objects.equals(this.authentication, networkTokenNotificationDataV2.authentication) - && Objects.equals( - this.authenticationApplied, networkTokenNotificationDataV2.authenticationApplied) - && Objects.equals(this.balancePlatform, networkTokenNotificationDataV2.balancePlatform) - && Objects.equals(this.decision, networkTokenNotificationDataV2.decision) - && Objects.equals(this.id, networkTokenNotificationDataV2.id) - && Objects.equals( - this.paymentInstrumentId, networkTokenNotificationDataV2.paymentInstrumentId) - && Objects.equals(this.status, networkTokenNotificationDataV2.status) - && Objects.equals(this.tokenLastFour, networkTokenNotificationDataV2.tokenLastFour) - && Objects.equals(this.tokenRequestor, networkTokenNotificationDataV2.tokenRequestor) - && Objects.equals( - this.transactionRulesResult, networkTokenNotificationDataV2.transactionRulesResult) - && Objects.equals(this.type, networkTokenNotificationDataV2.type) - && Objects.equals(this.validationFacts, networkTokenNotificationDataV2.validationFacts) - && Objects.equals(this.wallet, networkTokenNotificationDataV2.wallet); + NetworkTokenNotificationDataV2 networkTokenNotificationDataV2 = (NetworkTokenNotificationDataV2) o; + return Objects.equals(this.authentication, networkTokenNotificationDataV2.authentication) && + Objects.equals(this.authenticationApplied, networkTokenNotificationDataV2.authenticationApplied) && + Objects.equals(this.balancePlatform, networkTokenNotificationDataV2.balancePlatform) && + Objects.equals(this.decision, networkTokenNotificationDataV2.decision) && + Objects.equals(this.id, networkTokenNotificationDataV2.id) && + Objects.equals(this.paymentInstrumentId, networkTokenNotificationDataV2.paymentInstrumentId) && + Objects.equals(this.status, networkTokenNotificationDataV2.status) && + Objects.equals(this.tokenLastFour, networkTokenNotificationDataV2.tokenLastFour) && + Objects.equals(this.tokenRequestor, networkTokenNotificationDataV2.tokenRequestor) && + Objects.equals(this.transactionRulesResult, networkTokenNotificationDataV2.transactionRulesResult) && + Objects.equals(this.type, networkTokenNotificationDataV2.type) && + Objects.equals(this.validationFacts, networkTokenNotificationDataV2.validationFacts) && + Objects.equals(this.wallet, networkTokenNotificationDataV2.wallet); } @Override public int hashCode() { - return Objects.hash( - authentication, - authenticationApplied, - balancePlatform, - decision, - id, - paymentInstrumentId, - status, - tokenLastFour, - tokenRequestor, - transactionRulesResult, - type, - validationFacts, - wallet); + return Objects.hash(authentication, authenticationApplied, balancePlatform, decision, id, paymentInstrumentId, status, tokenLastFour, tokenRequestor, transactionRulesResult, type, validationFacts, wallet); } @Override @@ -602,21 +554,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NetworkTokenNotificationDataV2 {\n"); sb.append(" authentication: ").append(toIndentedString(authentication)).append("\n"); - sb.append(" authenticationApplied: ") - .append(toIndentedString(authenticationApplied)) - .append("\n"); + sb.append(" authenticationApplied: ").append(toIndentedString(authenticationApplied)).append("\n"); sb.append(" balancePlatform: ").append(toIndentedString(balancePlatform)).append("\n"); sb.append(" decision: ").append(toIndentedString(decision)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" paymentInstrumentId: ") - .append(toIndentedString(paymentInstrumentId)) - .append("\n"); + sb.append(" paymentInstrumentId: ").append(toIndentedString(paymentInstrumentId)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" tokenLastFour: ").append(toIndentedString(tokenLastFour)).append("\n"); sb.append(" tokenRequestor: ").append(toIndentedString(tokenRequestor)).append("\n"); - sb.append(" transactionRulesResult: ") - .append(toIndentedString(transactionRulesResult)) - .append("\n"); + sb.append(" transactionRulesResult: ").append(toIndentedString(transactionRulesResult)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" validationFacts: ").append(toIndentedString(validationFacts)).append("\n"); sb.append(" wallet: ").append(toIndentedString(wallet)).append("\n"); @@ -625,7 +571,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -634,24 +581,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of NetworkTokenNotificationDataV2 given an JSON string * * @param jsonString JSON string * @return An instance of NetworkTokenNotificationDataV2 - * @throws JsonProcessingException if the JSON string is invalid with respect to - * NetworkTokenNotificationDataV2 + * @throws JsonProcessingException if the JSON string is invalid with respect to NetworkTokenNotificationDataV2 */ - public static NetworkTokenNotificationDataV2 fromJson(String jsonString) - throws JsonProcessingException { + public static NetworkTokenNotificationDataV2 fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NetworkTokenNotificationDataV2.class); } - - /** - * Convert an instance of NetworkTokenNotificationDataV2 to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of NetworkTokenNotificationDataV2 to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenNotificationRequest.java b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenNotificationRequest.java index e17f650ab..0607cf246 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenNotificationRequest.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenNotificationRequest.java @@ -2,33 +2,40 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.configurationwebhooks.NetworkTokenNotificationDataV2; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** NetworkTokenNotificationRequest */ + +/** + * NetworkTokenNotificationRequest + */ @JsonPropertyOrder({ NetworkTokenNotificationRequest.JSON_PROPERTY_DATA, NetworkTokenNotificationRequest.JSON_PROPERTY_ENVIRONMENT, NetworkTokenNotificationRequest.JSON_PROPERTY_TIMESTAMP, NetworkTokenNotificationRequest.JSON_PROPERTY_TYPE }) + public class NetworkTokenNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private NetworkTokenNotificationDataV2 data; @@ -39,8 +46,11 @@ public class NetworkTokenNotificationRequest { public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; private OffsetDateTime timestamp; - /** The type of webhook. */ + /** + * The type of webhook. + */ public enum TypeEnum { + BALANCEPLATFORM_NETWORKTOKEN_CREATED(String.valueOf("balancePlatform.networkToken.created")), BALANCEPLATFORM_NETWORKTOKEN_UPDATED(String.valueOf("balancePlatform.networkToken.updated")); @@ -50,7 +60,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -71,11 +81,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -83,14 +89,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public NetworkTokenNotificationRequest() {} + public NetworkTokenNotificationRequest() { + } /** * data * - * @param data - * @return the current {@code NetworkTokenNotificationRequest} instance, allowing for method - * chaining + * @param data + * @return the current {@code NetworkTokenNotificationRequest} instance, allowing for method chaining */ public NetworkTokenNotificationRequest data(NetworkTokenNotificationDataV2 data) { this.data = data; @@ -99,8 +105,7 @@ public NetworkTokenNotificationRequest data(NetworkTokenNotificationDataV2 data) /** * Get data - * - * @return data + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,7 +116,7 @@ public NetworkTokenNotificationDataV2 getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -120,12 +125,10 @@ public void setData(NetworkTokenNotificationDataV2 data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. - * @return the current {@code NetworkTokenNotificationRequest} instance, allowing for method - * chaining + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @return the current {@code NetworkTokenNotificationRequest} instance, allowing for method chaining */ public NetworkTokenNotificationRequest environment(String environment) { this.environment = environment; @@ -133,10 +136,8 @@ public NetworkTokenNotificationRequest environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * - * @return environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,10 +146,9 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,8 +160,7 @@ public void setEnvironment(String environment) { * When the event was queued. * * @param timestamp When the event was queued. - * @return the current {@code NetworkTokenNotificationRequest} instance, allowing for method - * chaining + * @return the current {@code NetworkTokenNotificationRequest} instance, allowing for method chaining */ public NetworkTokenNotificationRequest timestamp(OffsetDateTime timestamp) { this.timestamp = timestamp; @@ -170,7 +169,6 @@ public NetworkTokenNotificationRequest timestamp(OffsetDateTime timestamp) { /** * When the event was queued. - * * @return timestamp When the event was queued. */ @JsonProperty(JSON_PROPERTY_TIMESTAMP) @@ -194,8 +192,7 @@ public void setTimestamp(OffsetDateTime timestamp) { * The type of webhook. * * @param type The type of webhook. - * @return the current {@code NetworkTokenNotificationRequest} instance, allowing for method - * chaining + * @return the current {@code NetworkTokenNotificationRequest} instance, allowing for method chaining */ public NetworkTokenNotificationRequest type(TypeEnum type) { this.type = type; @@ -204,7 +201,6 @@ public NetworkTokenNotificationRequest type(TypeEnum type) { /** * The type of webhook. - * * @return type The type of webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -224,7 +220,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this NetworkTokenNotificationRequest object is equal to o. */ + /** + * Return true if this NetworkTokenNotificationRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -233,12 +231,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - NetworkTokenNotificationRequest networkTokenNotificationRequest = - (NetworkTokenNotificationRequest) o; - return Objects.equals(this.data, networkTokenNotificationRequest.data) - && Objects.equals(this.environment, networkTokenNotificationRequest.environment) - && Objects.equals(this.timestamp, networkTokenNotificationRequest.timestamp) - && Objects.equals(this.type, networkTokenNotificationRequest.type); + NetworkTokenNotificationRequest networkTokenNotificationRequest = (NetworkTokenNotificationRequest) o; + return Objects.equals(this.data, networkTokenNotificationRequest.data) && + Objects.equals(this.environment, networkTokenNotificationRequest.environment) && + Objects.equals(this.timestamp, networkTokenNotificationRequest.timestamp) && + Objects.equals(this.type, networkTokenNotificationRequest.type); } @Override @@ -259,7 +256,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -268,24 +266,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of NetworkTokenNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of NetworkTokenNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * NetworkTokenNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to NetworkTokenNotificationRequest */ - public static NetworkTokenNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static NetworkTokenNotificationRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NetworkTokenNotificationRequest.class); } - - /** - * Convert an instance of NetworkTokenNotificationRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of NetworkTokenNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRequestor.java b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRequestor.java index 60aa90363..73a0da7c9 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRequestor.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRequestor.java @@ -2,26 +2,36 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** NetworkTokenRequestor */ + +/** + * NetworkTokenRequestor + */ @JsonPropertyOrder({ NetworkTokenRequestor.JSON_PROPERTY_ID, NetworkTokenRequestor.JSON_PROPERTY_NAME }) + public class NetworkTokenRequestor { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -29,7 +39,8 @@ public class NetworkTokenRequestor { public static final String JSON_PROPERTY_NAME = "name"; private String name; - public NetworkTokenRequestor() {} + public NetworkTokenRequestor() { + } /** * The unique identifier of the network token requestor. @@ -44,7 +55,6 @@ public NetworkTokenRequestor id(String id) { /** * The unique identifier of the network token requestor. - * * @return id The unique identifier of the network token requestor. */ @JsonProperty(JSON_PROPERTY_ID) @@ -77,7 +87,6 @@ public NetworkTokenRequestor name(String name) { /** * The name of the network token requestor. - * * @return name The name of the network token requestor. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -97,7 +106,9 @@ public void setName(String name) { this.name = name; } - /** Return true if this NetworkTokenRequestor object is equal to o. */ + /** + * Return true if this NetworkTokenRequestor object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -107,8 +118,8 @@ public boolean equals(Object o) { return false; } NetworkTokenRequestor networkTokenRequestor = (NetworkTokenRequestor) o; - return Objects.equals(this.id, networkTokenRequestor.id) - && Objects.equals(this.name, networkTokenRequestor.name); + return Objects.equals(this.id, networkTokenRequestor.id) && + Objects.equals(this.name, networkTokenRequestor.name); } @Override @@ -127,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,23 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of NetworkTokenRequestor given an JSON string * * @param jsonString JSON string * @return An instance of NetworkTokenRequestor - * @throws JsonProcessingException if the JSON string is invalid with respect to - * NetworkTokenRequestor + * @throws JsonProcessingException if the JSON string is invalid with respect to NetworkTokenRequestor */ public static NetworkTokenRequestor fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NetworkTokenRequestor.class); } - - /** - * Convert an instance of NetworkTokenRequestor to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of NetworkTokenRequestor to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRiskRuleData.java b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRiskRuleData.java index 6cb95aa83..99f8bc42b 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRiskRuleData.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRiskRuleData.java @@ -2,22 +2,31 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** NetworkTokenRiskRuleData */ + +/** + * NetworkTokenRiskRuleData + */ @JsonPropertyOrder({ NetworkTokenRiskRuleData.JSON_PROPERTY_DESCRIPTION, NetworkTokenRiskRuleData.JSON_PROPERTY_ID, @@ -25,6 +34,7 @@ NetworkTokenRiskRuleData.JSON_PROPERTY_REFERENCE, NetworkTokenRiskRuleData.JSON_PROPERTY_SCORE }) + public class NetworkTokenRiskRuleData { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -41,7 +51,8 @@ public class NetworkTokenRiskRuleData { public static final String JSON_PROPERTY_SCORE = "score"; private Integer score; - public NetworkTokenRiskRuleData() {} + public NetworkTokenRiskRuleData() { + } /** * The description of the transaction rule. @@ -56,7 +67,6 @@ public NetworkTokenRiskRuleData description(String description) { /** * The description of the transaction rule. - * * @return description The description of the transaction rule. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -89,7 +99,6 @@ public NetworkTokenRiskRuleData id(String id) { /** * The unique identifier of the transaction rule. - * * @return id The unique identifier of the transaction rule. */ @JsonProperty(JSON_PROPERTY_ID) @@ -122,7 +131,6 @@ public NetworkTokenRiskRuleData outcomeType(String outcomeType) { /** * The outcome type of the transaction rule. - * * @return outcomeType The outcome type of the transaction rule. */ @JsonProperty(JSON_PROPERTY_OUTCOME_TYPE) @@ -155,7 +163,6 @@ public NetworkTokenRiskRuleData reference(String reference) { /** * The reference for the transaction rule. - * * @return reference The reference for the transaction rule. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -188,7 +195,6 @@ public NetworkTokenRiskRuleData score(Integer score) { /** * The transaction score determined by the rule. - * * @return score The transaction score determined by the rule. */ @JsonProperty(JSON_PROPERTY_SCORE) @@ -208,7 +214,9 @@ public void setScore(Integer score) { this.score = score; } - /** Return true if this NetworkTokenRiskRuleData object is equal to o. */ + /** + * Return true if this NetworkTokenRiskRuleData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -218,11 +226,11 @@ public boolean equals(Object o) { return false; } NetworkTokenRiskRuleData networkTokenRiskRuleData = (NetworkTokenRiskRuleData) o; - return Objects.equals(this.description, networkTokenRiskRuleData.description) - && Objects.equals(this.id, networkTokenRiskRuleData.id) - && Objects.equals(this.outcomeType, networkTokenRiskRuleData.outcomeType) - && Objects.equals(this.reference, networkTokenRiskRuleData.reference) - && Objects.equals(this.score, networkTokenRiskRuleData.score); + return Objects.equals(this.description, networkTokenRiskRuleData.description) && + Objects.equals(this.id, networkTokenRiskRuleData.id) && + Objects.equals(this.outcomeType, networkTokenRiskRuleData.outcomeType) && + Objects.equals(this.reference, networkTokenRiskRuleData.reference) && + Objects.equals(this.score, networkTokenRiskRuleData.score); } @Override @@ -244,7 +252,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -253,24 +262,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of NetworkTokenRiskRuleData given an JSON string * * @param jsonString JSON string * @return An instance of NetworkTokenRiskRuleData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * NetworkTokenRiskRuleData + * @throws JsonProcessingException if the JSON string is invalid with respect to NetworkTokenRiskRuleData */ - public static NetworkTokenRiskRuleData fromJson(String jsonString) - throws JsonProcessingException { + public static NetworkTokenRiskRuleData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NetworkTokenRiskRuleData.class); } - - /** - * Convert an instance of NetworkTokenRiskRuleData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of NetworkTokenRiskRuleData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRiskRuleSource.java b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRiskRuleSource.java index 4a5f85e4f..17862845a 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRiskRuleSource.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRiskRuleSource.java @@ -2,26 +2,36 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** NetworkTokenRiskRuleSource */ + +/** + * NetworkTokenRiskRuleSource + */ @JsonPropertyOrder({ NetworkTokenRiskRuleSource.JSON_PROPERTY_ID, NetworkTokenRiskRuleSource.JSON_PROPERTY_TYPE }) + public class NetworkTokenRiskRuleSource { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -29,7 +39,8 @@ public class NetworkTokenRiskRuleSource { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public NetworkTokenRiskRuleSource() {} + public NetworkTokenRiskRuleSource() { + } /** * The unique identifier of the resource to which the transaction rule applies. @@ -44,7 +55,6 @@ public NetworkTokenRiskRuleSource id(String id) { /** * The unique identifier of the resource to which the transaction rule applies. - * * @return id The unique identifier of the resource to which the transaction rule applies. */ @JsonProperty(JSON_PROPERTY_ID) @@ -65,15 +75,9 @@ public void setId(String id) { } /** - * Indicates the type of resource for which the transaction rule is defined. Possible values: * - * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * - * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule - * imposed by Adyen. + * Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. * - * @param type Indicates the type of resource for which the transaction rule is defined. Possible - * values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * - * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide - * rule imposed by Adyen. + * @param type Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. * @return the current {@code NetworkTokenRiskRuleSource} instance, allowing for method chaining */ public NetworkTokenRiskRuleSource type(String type) { @@ -82,15 +86,8 @@ public NetworkTokenRiskRuleSource type(String type) { } /** - * Indicates the type of resource for which the transaction rule is defined. Possible values: * - * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * - * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule - * imposed by Adyen. - * - * @return type Indicates the type of resource for which the transaction rule is defined. Possible - * values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * - * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide - * rule imposed by Adyen. + * Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. + * @return type Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,15 +96,9 @@ public String getType() { } /** - * Indicates the type of resource for which the transaction rule is defined. Possible values: * - * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * - * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule - * imposed by Adyen. + * Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. * - * @param type Indicates the type of resource for which the transaction rule is defined. Possible - * values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * - * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide - * rule imposed by Adyen. + * @param type Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,7 +106,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this NetworkTokenRiskRuleSource object is equal to o. */ + /** + * Return true if this NetworkTokenRiskRuleSource object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -125,8 +118,8 @@ public boolean equals(Object o) { return false; } NetworkTokenRiskRuleSource networkTokenRiskRuleSource = (NetworkTokenRiskRuleSource) o; - return Objects.equals(this.id, networkTokenRiskRuleSource.id) - && Objects.equals(this.type, networkTokenRiskRuleSource.type); + return Objects.equals(this.id, networkTokenRiskRuleSource.id) && + Objects.equals(this.type, networkTokenRiskRuleSource.type); } @Override @@ -145,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -154,24 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of NetworkTokenRiskRuleSource given an JSON string * * @param jsonString JSON string * @return An instance of NetworkTokenRiskRuleSource - * @throws JsonProcessingException if the JSON string is invalid with respect to - * NetworkTokenRiskRuleSource + * @throws JsonProcessingException if the JSON string is invalid with respect to NetworkTokenRiskRuleSource */ - public static NetworkTokenRiskRuleSource fromJson(String jsonString) - throws JsonProcessingException { + public static NetworkTokenRiskRuleSource fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NetworkTokenRiskRuleSource.class); } - - /** - * Convert an instance of NetworkTokenRiskRuleSource to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of NetworkTokenRiskRuleSource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenTransactionRulesResult.java b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenTransactionRulesResult.java index 3a6444eeb..01efd0e83 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenTransactionRulesResult.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenTransactionRulesResult.java @@ -2,30 +2,41 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.configurationwebhooks.NetworkTokenTriggeredRiskRule; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** NetworkTokenTransactionRulesResult */ +/** + * NetworkTokenTransactionRulesResult + */ @JsonPropertyOrder({ NetworkTokenTransactionRulesResult.JSON_PROPERTY_ADVICE, NetworkTokenTransactionRulesResult.JSON_PROPERTY_ALL_HARD_BLOCK_RULES_PASSED, NetworkTokenTransactionRulesResult.JSON_PROPERTY_SCORE, NetworkTokenTransactionRulesResult.JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES }) + public class NetworkTokenTransactionRulesResult { public static final String JSON_PROPERTY_ADVICE = "advice"; private String advice; @@ -36,18 +47,17 @@ public class NetworkTokenTransactionRulesResult { public static final String JSON_PROPERTY_SCORE = "score"; private Integer score; - public static final String JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES = - "triggeredTransactionRules"; + public static final String JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES = "triggeredTransactionRules"; private List triggeredTransactionRules; - public NetworkTokenTransactionRulesResult() {} + public NetworkTokenTransactionRulesResult() { + } /** * The advice given by the Risk analysis. * * @param advice The advice given by the Risk analysis. - * @return the current {@code NetworkTokenTransactionRulesResult} instance, allowing for method - * chaining + * @return the current {@code NetworkTokenTransactionRulesResult} instance, allowing for method chaining */ public NetworkTokenTransactionRulesResult advice(String advice) { this.advice = advice; @@ -56,7 +66,6 @@ public NetworkTokenTransactionRulesResult advice(String advice) { /** * The advice given by the Risk analysis. - * * @return advice The advice given by the Risk analysis. */ @JsonProperty(JSON_PROPERTY_ADVICE) @@ -79,22 +88,17 @@ public void setAdvice(String advice) { /** * Indicates whether the transaction passed all rules with `outcomeType` **hardBlock**. * - * @param allHardBlockRulesPassed Indicates whether the transaction passed all rules with - * `outcomeType` **hardBlock**. - * @return the current {@code NetworkTokenTransactionRulesResult} instance, allowing for method - * chaining + * @param allHardBlockRulesPassed Indicates whether the transaction passed all rules with `outcomeType` **hardBlock**. + * @return the current {@code NetworkTokenTransactionRulesResult} instance, allowing for method chaining */ - public NetworkTokenTransactionRulesResult allHardBlockRulesPassed( - Boolean allHardBlockRulesPassed) { + public NetworkTokenTransactionRulesResult allHardBlockRulesPassed(Boolean allHardBlockRulesPassed) { this.allHardBlockRulesPassed = allHardBlockRulesPassed; return this; } /** * Indicates whether the transaction passed all rules with `outcomeType` **hardBlock**. - * - * @return allHardBlockRulesPassed Indicates whether the transaction passed all rules with - * `outcomeType` **hardBlock**. + * @return allHardBlockRulesPassed Indicates whether the transaction passed all rules with `outcomeType` **hardBlock**. */ @JsonProperty(JSON_PROPERTY_ALL_HARD_BLOCK_RULES_PASSED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,8 +109,7 @@ public Boolean getAllHardBlockRulesPassed() { /** * Indicates whether the transaction passed all rules with `outcomeType` **hardBlock**. * - * @param allHardBlockRulesPassed Indicates whether the transaction passed all rules with - * `outcomeType` **hardBlock**. + * @param allHardBlockRulesPassed Indicates whether the transaction passed all rules with `outcomeType` **hardBlock**. */ @JsonProperty(JSON_PROPERTY_ALL_HARD_BLOCK_RULES_PASSED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,8 +121,7 @@ public void setAllHardBlockRulesPassed(Boolean allHardBlockRulesPassed) { * The score of the Risk analysis. * * @param score The score of the Risk analysis. - * @return the current {@code NetworkTokenTransactionRulesResult} instance, allowing for method - * chaining + * @return the current {@code NetworkTokenTransactionRulesResult} instance, allowing for method chaining */ public NetworkTokenTransactionRulesResult score(Integer score) { this.score = score; @@ -128,7 +130,6 @@ public NetworkTokenTransactionRulesResult score(Integer score) { /** * The score of the Risk analysis. - * * @return score The score of the Risk analysis. */ @JsonProperty(JSON_PROPERTY_SCORE) @@ -151,19 +152,15 @@ public void setScore(Integer score) { /** * Contains a list of all triggered transaction rules and the corresponding data. * - * @param triggeredTransactionRules Contains a list of all triggered transaction rules and the - * corresponding data. - * @return the current {@code NetworkTokenTransactionRulesResult} instance, allowing for method - * chaining + * @param triggeredTransactionRules Contains a list of all triggered transaction rules and the corresponding data. + * @return the current {@code NetworkTokenTransactionRulesResult} instance, allowing for method chaining */ - public NetworkTokenTransactionRulesResult triggeredTransactionRules( - List triggeredTransactionRules) { + public NetworkTokenTransactionRulesResult triggeredTransactionRules(List triggeredTransactionRules) { this.triggeredTransactionRules = triggeredTransactionRules; return this; } - public NetworkTokenTransactionRulesResult addTriggeredTransactionRulesItem( - NetworkTokenTriggeredRiskRule triggeredTransactionRulesItem) { + public NetworkTokenTransactionRulesResult addTriggeredTransactionRulesItem(NetworkTokenTriggeredRiskRule triggeredTransactionRulesItem) { if (this.triggeredTransactionRules == null) { this.triggeredTransactionRules = new ArrayList<>(); } @@ -173,9 +170,7 @@ public NetworkTokenTransactionRulesResult addTriggeredTransactionRulesItem( /** * Contains a list of all triggered transaction rules and the corresponding data. - * - * @return triggeredTransactionRules Contains a list of all triggered transaction rules and the - * corresponding data. + * @return triggeredTransactionRules Contains a list of all triggered transaction rules and the corresponding data. */ @JsonProperty(JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,17 +181,17 @@ public List getTriggeredTransactionRules() { /** * Contains a list of all triggered transaction rules and the corresponding data. * - * @param triggeredTransactionRules Contains a list of all triggered transaction rules and the - * corresponding data. + * @param triggeredTransactionRules Contains a list of all triggered transaction rules and the corresponding data. */ @JsonProperty(JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTriggeredTransactionRules( - List triggeredTransactionRules) { + public void setTriggeredTransactionRules(List triggeredTransactionRules) { this.triggeredTransactionRules = triggeredTransactionRules; } - /** Return true if this NetworkTokenTransactionRulesResult object is equal to o. */ + /** + * Return true if this NetworkTokenTransactionRulesResult object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -205,16 +200,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - NetworkTokenTransactionRulesResult networkTokenTransactionRulesResult = - (NetworkTokenTransactionRulesResult) o; - return Objects.equals(this.advice, networkTokenTransactionRulesResult.advice) - && Objects.equals( - this.allHardBlockRulesPassed, - networkTokenTransactionRulesResult.allHardBlockRulesPassed) - && Objects.equals(this.score, networkTokenTransactionRulesResult.score) - && Objects.equals( - this.triggeredTransactionRules, - networkTokenTransactionRulesResult.triggeredTransactionRules); + NetworkTokenTransactionRulesResult networkTokenTransactionRulesResult = (NetworkTokenTransactionRulesResult) o; + return Objects.equals(this.advice, networkTokenTransactionRulesResult.advice) && + Objects.equals(this.allHardBlockRulesPassed, networkTokenTransactionRulesResult.allHardBlockRulesPassed) && + Objects.equals(this.score, networkTokenTransactionRulesResult.score) && + Objects.equals(this.triggeredTransactionRules, networkTokenTransactionRulesResult.triggeredTransactionRules); } @Override @@ -227,19 +217,16 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NetworkTokenTransactionRulesResult {\n"); sb.append(" advice: ").append(toIndentedString(advice)).append("\n"); - sb.append(" allHardBlockRulesPassed: ") - .append(toIndentedString(allHardBlockRulesPassed)) - .append("\n"); + sb.append(" allHardBlockRulesPassed: ").append(toIndentedString(allHardBlockRulesPassed)).append("\n"); sb.append(" score: ").append(toIndentedString(score)).append("\n"); - sb.append(" triggeredTransactionRules: ") - .append(toIndentedString(triggeredTransactionRules)) - .append("\n"); + sb.append(" triggeredTransactionRules: ").append(toIndentedString(triggeredTransactionRules)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -248,24 +235,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of NetworkTokenTransactionRulesResult given an JSON string * * @param jsonString JSON string * @return An instance of NetworkTokenTransactionRulesResult - * @throws JsonProcessingException if the JSON string is invalid with respect to - * NetworkTokenTransactionRulesResult + * @throws JsonProcessingException if the JSON string is invalid with respect to NetworkTokenTransactionRulesResult */ - public static NetworkTokenTransactionRulesResult fromJson(String jsonString) - throws JsonProcessingException { + public static NetworkTokenTransactionRulesResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NetworkTokenTransactionRulesResult.class); } - - /** - * Convert an instance of NetworkTokenTransactionRulesResult to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of NetworkTokenTransactionRulesResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenTriggeredRiskRule.java b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenTriggeredRiskRule.java index b9e7c9203..66b42808b 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenTriggeredRiskRule.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenTriggeredRiskRule.java @@ -2,27 +2,39 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.configurationwebhooks.NetworkTokenRiskRuleData; +import com.adyen.model.configurationwebhooks.NetworkTokenRiskRuleSource; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** NetworkTokenTriggeredRiskRule */ + +/** + * NetworkTokenTriggeredRiskRule + */ @JsonPropertyOrder({ NetworkTokenTriggeredRiskRule.JSON_PROPERTY_REASON, NetworkTokenTriggeredRiskRule.JSON_PROPERTY_TRANSACTION_RULE, NetworkTokenTriggeredRiskRule.JSON_PROPERTY_TRANSACTION_RULE_SOURCE }) + public class NetworkTokenTriggeredRiskRule { public static final String JSON_PROPERTY_REASON = "reason"; private String reason; @@ -33,14 +45,14 @@ public class NetworkTokenTriggeredRiskRule { public static final String JSON_PROPERTY_TRANSACTION_RULE_SOURCE = "transactionRuleSource"; private NetworkTokenRiskRuleSource transactionRuleSource; - public NetworkTokenTriggeredRiskRule() {} + public NetworkTokenTriggeredRiskRule() { + } /** * Explains why the transaction rule failed. * * @param reason Explains why the transaction rule failed. - * @return the current {@code NetworkTokenTriggeredRiskRule} instance, allowing for method - * chaining + * @return the current {@code NetworkTokenTriggeredRiskRule} instance, allowing for method chaining */ public NetworkTokenTriggeredRiskRule reason(String reason) { this.reason = reason; @@ -49,7 +61,6 @@ public NetworkTokenTriggeredRiskRule reason(String reason) { /** * Explains why the transaction rule failed. - * * @return reason Explains why the transaction rule failed. */ @JsonProperty(JSON_PROPERTY_REASON) @@ -72,9 +83,8 @@ public void setReason(String reason) { /** * transactionRule * - * @param transactionRule - * @return the current {@code NetworkTokenTriggeredRiskRule} instance, allowing for method - * chaining + * @param transactionRule + * @return the current {@code NetworkTokenTriggeredRiskRule} instance, allowing for method chaining */ public NetworkTokenTriggeredRiskRule transactionRule(NetworkTokenRiskRuleData transactionRule) { this.transactionRule = transactionRule; @@ -83,8 +93,7 @@ public NetworkTokenTriggeredRiskRule transactionRule(NetworkTokenRiskRuleData tr /** * Get transactionRule - * - * @return transactionRule + * @return transactionRule */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -95,7 +104,7 @@ public NetworkTokenRiskRuleData getTransactionRule() { /** * transactionRule * - * @param transactionRule + * @param transactionRule */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,20 +115,17 @@ public void setTransactionRule(NetworkTokenRiskRuleData transactionRule) { /** * transactionRuleSource * - * @param transactionRuleSource - * @return the current {@code NetworkTokenTriggeredRiskRule} instance, allowing for method - * chaining + * @param transactionRuleSource + * @return the current {@code NetworkTokenTriggeredRiskRule} instance, allowing for method chaining */ - public NetworkTokenTriggeredRiskRule transactionRuleSource( - NetworkTokenRiskRuleSource transactionRuleSource) { + public NetworkTokenTriggeredRiskRule transactionRuleSource(NetworkTokenRiskRuleSource transactionRuleSource) { this.transactionRuleSource = transactionRuleSource; return this; } /** * Get transactionRuleSource - * - * @return transactionRuleSource + * @return transactionRuleSource */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULE_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -130,7 +136,7 @@ public NetworkTokenRiskRuleSource getTransactionRuleSource() { /** * transactionRuleSource * - * @param transactionRuleSource + * @param transactionRuleSource */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULE_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,7 +144,9 @@ public void setTransactionRuleSource(NetworkTokenRiskRuleSource transactionRuleS this.transactionRuleSource = transactionRuleSource; } - /** Return true if this NetworkTokenTriggeredRiskRule object is equal to o. */ + /** + * Return true if this NetworkTokenTriggeredRiskRule object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -148,10 +156,9 @@ public boolean equals(Object o) { return false; } NetworkTokenTriggeredRiskRule networkTokenTriggeredRiskRule = (NetworkTokenTriggeredRiskRule) o; - return Objects.equals(this.reason, networkTokenTriggeredRiskRule.reason) - && Objects.equals(this.transactionRule, networkTokenTriggeredRiskRule.transactionRule) - && Objects.equals( - this.transactionRuleSource, networkTokenTriggeredRiskRule.transactionRuleSource); + return Objects.equals(this.reason, networkTokenTriggeredRiskRule.reason) && + Objects.equals(this.transactionRule, networkTokenTriggeredRiskRule.transactionRule) && + Objects.equals(this.transactionRuleSource, networkTokenTriggeredRiskRule.transactionRuleSource); } @Override @@ -165,15 +172,14 @@ public String toString() { sb.append("class NetworkTokenTriggeredRiskRule {\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" transactionRule: ").append(toIndentedString(transactionRule)).append("\n"); - sb.append(" transactionRuleSource: ") - .append(toIndentedString(transactionRuleSource)) - .append("\n"); + sb.append(" transactionRuleSource: ").append(toIndentedString(transactionRuleSource)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,24 +188,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of NetworkTokenTriggeredRiskRule given an JSON string * * @param jsonString JSON string * @return An instance of NetworkTokenTriggeredRiskRule - * @throws JsonProcessingException if the JSON string is invalid with respect to - * NetworkTokenTriggeredRiskRule + * @throws JsonProcessingException if the JSON string is invalid with respect to NetworkTokenTriggeredRiskRule */ - public static NetworkTokenTriggeredRiskRule fromJson(String jsonString) - throws JsonProcessingException { + public static NetworkTokenTriggeredRiskRule fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NetworkTokenTriggeredRiskRule.class); } - - /** - * Convert an instance of NetworkTokenTriggeredRiskRule to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of NetworkTokenTriggeredRiskRule to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrument.java b/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrument.java index fb4aad75d..20b8611f0 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrument.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrument.java @@ -2,28 +2,36 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.configurationwebhooks.BankAccountDetails; +import com.adyen.model.configurationwebhooks.Card; +import com.adyen.model.configurationwebhooks.PaymentInstrumentAdditionalBankAccountIdentificationsInner; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** PaymentInstrument */ + +/** + * PaymentInstrument + */ @JsonPropertyOrder({ PaymentInstrument.JSON_PROPERTY_ADDITIONAL_BANK_ACCOUNT_IDENTIFICATIONS, PaymentInstrument.JSON_PROPERTY_BALANCE_ACCOUNT_ID, @@ -41,12 +49,11 @@ PaymentInstrument.JSON_PROPERTY_STATUS_REASON, PaymentInstrument.JSON_PROPERTY_TYPE }) + public class PaymentInstrument { - public static final String JSON_PROPERTY_ADDITIONAL_BANK_ACCOUNT_IDENTIFICATIONS = - "additionalBankAccountIdentifications"; + public static final String JSON_PROPERTY_ADDITIONAL_BANK_ACCOUNT_IDENTIFICATIONS = "additionalBankAccountIdentifications"; @Deprecated // deprecated since Configuration webhooks v2: Please use `bankAccount` object instead - private List - additionalBankAccountIdentifications; + private List additionalBankAccountIdentifications; public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; @@ -79,16 +86,10 @@ public class PaymentInstrument { private String replacementOfId; /** - * The status of the payment instrument. If a status is not specified when creating a payment - * instrument, it is set to **active** by default. However, there can be exceptions for cards - * based on the `card.formFactor` and the `issuingCountryCode`. For example, - * when issuing physical cards in the US, the default status is **inactive**. Possible values: * - * **active**: The payment instrument is active and can be used to make payments. * **inactive**: - * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The - * payment instrument is suspended, either because it was stolen or lost. * **closed**: The - * payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. */ public enum StatusEnum { + ACTIVE(String.valueOf("active")), CLOSED(String.valueOf("closed")), @@ -102,7 +103,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -123,11 +124,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -139,12 +136,10 @@ public static StatusEnum fromValue(String value) { private String statusComment; /** - * The reason for the status of the payment instrument. Possible values: **accountClosure**, - * **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, - * **transactionRule**, **other**. If the reason is **other**, you must also send the - * `statusComment` parameter describing the status change. + * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. */ public enum StatusReasonEnum { + ACCOUNTCLOSURE(String.valueOf("accountClosure")), DAMAGED(String.valueOf("damaged")), @@ -168,7 +163,7 @@ public enum StatusReasonEnum { private String value; StatusReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -189,11 +184,7 @@ public static StatusReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusReasonEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusReasonEnum.values())); + LOG.warning("StatusReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusReasonEnum.values())); return null; } } @@ -201,8 +192,11 @@ public static StatusReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS_REASON = "statusReason"; private StatusReasonEnum statusReason; - /** The type of payment instrument. Possible values: **card**, **bankAccount**. */ + /** + * The type of payment instrument. Possible values: **card**, **bankAccount**. + */ public enum TypeEnum { + BANKACCOUNT(String.valueOf("bankAccount")), CARD(String.valueOf("card")); @@ -212,7 +206,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -233,11 +227,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -245,29 +235,25 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PaymentInstrument() {} + public PaymentInstrument() { + } /** - * Contains optional, additional business account details. Returned when you create a payment - * instrument with `type` **bankAccount**. + * Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. * - * @param additionalBankAccountIdentifications Contains optional, additional business account - * details. Returned when you create a payment instrument with `type` - * **bankAccount**. + * @param additionalBankAccountIdentifications Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. * @return the current {@code PaymentInstrument} instance, allowing for method chaining - * @deprecated since Configuration webhooks v2 Please use `bankAccount` object instead + * + * @deprecated since Configuration webhooks v2 + * Please use `bankAccount` object instead */ @Deprecated // deprecated since Configuration webhooks v2: Please use `bankAccount` object instead - public PaymentInstrument additionalBankAccountIdentifications( - List - additionalBankAccountIdentifications) { + public PaymentInstrument additionalBankAccountIdentifications(List additionalBankAccountIdentifications) { this.additionalBankAccountIdentifications = additionalBankAccountIdentifications; return this; } - public PaymentInstrument addAdditionalBankAccountIdentificationsItem( - PaymentInstrumentAdditionalBankAccountIdentificationsInner - additionalBankAccountIdentificationsItem) { + public PaymentInstrument addAdditionalBankAccountIdentificationsItem(PaymentInstrumentAdditionalBankAccountIdentificationsInner additionalBankAccountIdentificationsItem) { if (this.additionalBankAccountIdentifications == null) { this.additionalBankAccountIdentifications = new ArrayList<>(); } @@ -276,49 +262,36 @@ public PaymentInstrument addAdditionalBankAccountIdentificationsItem( } /** - * Contains optional, additional business account details. Returned when you create a payment - * instrument with `type` **bankAccount**. - * - * @return additionalBankAccountIdentifications Contains optional, additional business account - * details. Returned when you create a payment instrument with `type` - * **bankAccount**. - * @deprecated // deprecated since Configuration webhooks v2: Please use `bankAccount` object - * instead + * Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. + * @return additionalBankAccountIdentifications Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. + * @deprecated // deprecated since Configuration webhooks v2: Please use `bankAccount` object instead */ @Deprecated // deprecated since Configuration webhooks v2: Please use `bankAccount` object instead @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_ACCOUNT_IDENTIFICATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List - getAdditionalBankAccountIdentifications() { + public List getAdditionalBankAccountIdentifications() { return additionalBankAccountIdentifications; } /** - * Contains optional, additional business account details. Returned when you create a payment - * instrument with `type` **bankAccount**. + * Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. * - * @param additionalBankAccountIdentifications Contains optional, additional business account - * details. Returned when you create a payment instrument with `type` - * **bankAccount**. - * @deprecated since Configuration webhooks v2 Please use `bankAccount` object instead + * @param additionalBankAccountIdentifications Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. + * + * @deprecated since Configuration webhooks v2 + * Please use `bankAccount` object instead */ @Deprecated // deprecated since Configuration webhooks v2: Please use `bankAccount` object instead @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_ACCOUNT_IDENTIFICATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAdditionalBankAccountIdentifications( - List - additionalBankAccountIdentifications) { + public void setAdditionalBankAccountIdentifications(List additionalBankAccountIdentifications) { this.additionalBankAccountIdentifications = additionalBankAccountIdentifications; } /** - * The unique identifier of the [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) - * associated with the payment instrument. + * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. * - * @param balanceAccountId The unique identifier of the [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) - * associated with the payment instrument. + * @param balanceAccountId The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument balanceAccountId(String balanceAccountId) { @@ -327,13 +300,8 @@ public PaymentInstrument balanceAccountId(String balanceAccountId) { } /** - * The unique identifier of the [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) - * associated with the payment instrument. - * - * @return balanceAccountId The unique identifier of the [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) - * associated with the payment instrument. + * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. + * @return balanceAccountId The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -342,13 +310,9 @@ public String getBalanceAccountId() { } /** - * The unique identifier of the [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) - * associated with the payment instrument. + * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. * - * @param balanceAccountId The unique identifier of the [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) - * associated with the payment instrument. + * @param balanceAccountId The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -359,7 +323,7 @@ public void setBalanceAccountId(String balanceAccountId) { /** * bankAccount * - * @param bankAccount + * @param bankAccount * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument bankAccount(BankAccountDetails bankAccount) { @@ -369,8 +333,7 @@ public PaymentInstrument bankAccount(BankAccountDetails bankAccount) { /** * Get bankAccount - * - * @return bankAccount + * @return bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -381,7 +344,7 @@ public BankAccountDetails getBankAccount() { /** * bankAccount * - * @param bankAccount + * @param bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -392,7 +355,7 @@ public void setBankAccount(BankAccountDetails bankAccount) { /** * card * - * @param card + * @param card * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument card(Card card) { @@ -402,8 +365,7 @@ public PaymentInstrument card(Card card) { /** * Get card - * - * @return card + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -414,7 +376,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -435,7 +397,6 @@ public PaymentInstrument description(String description) { /** * Your description for the payment instrument, maximum 300 characters. - * * @return description Your description for the payment instrument, maximum 300 characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -468,7 +429,6 @@ public PaymentInstrument id(String id) { /** * The unique identifier of the payment instrument. - * * @return id The unique identifier of the payment instrument. */ @JsonProperty(JSON_PROPERTY_ID) @@ -489,12 +449,9 @@ public void setId(String id) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code where the payment instrument is issued. For example, **NL** or **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. * - * @param issuingCountryCode The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment - * instrument is issued. For example, **NL** or **US**. + * @param issuingCountryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument issuingCountryCode(String issuingCountryCode) { @@ -503,12 +460,8 @@ public PaymentInstrument issuingCountryCode(String issuingCountryCode) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code where the payment instrument is issued. For example, **NL** or **US**. - * - * @return issuingCountryCode The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment - * instrument is issued. For example, **NL** or **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. + * @return issuingCountryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. */ @JsonProperty(JSON_PROPERTY_ISSUING_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -517,12 +470,9 @@ public String getIssuingCountryCode() { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code where the payment instrument is issued. For example, **NL** or **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. * - * @param issuingCountryCode The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment - * instrument is issued. For example, **NL** or **US**. + * @param issuingCountryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. */ @JsonProperty(JSON_PROPERTY_ISSUING_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -531,13 +481,9 @@ public void setIssuingCountryCode(String issuingCountryCode) { } /** - * The unique identifier of the [payment instrument - * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) - * to which the payment instrument belongs. + * The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. * - * @param paymentInstrumentGroupId The unique identifier of the [payment instrument - * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) - * to which the payment instrument belongs. + * @param paymentInstrumentGroupId The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument paymentInstrumentGroupId(String paymentInstrumentGroupId) { @@ -546,13 +492,8 @@ public PaymentInstrument paymentInstrumentGroupId(String paymentInstrumentGroupI } /** - * The unique identifier of the [payment instrument - * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) - * to which the payment instrument belongs. - * - * @return paymentInstrumentGroupId The unique identifier of the [payment instrument - * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) - * to which the payment instrument belongs. + * The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. + * @return paymentInstrumentGroupId The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_GROUP_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -561,13 +502,9 @@ public String getPaymentInstrumentGroupId() { } /** - * The unique identifier of the [payment instrument - * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) - * to which the payment instrument belongs. + * The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. * - * @param paymentInstrumentGroupId The unique identifier of the [payment instrument - * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) - * to which the payment instrument belongs. + * @param paymentInstrumentGroupId The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_GROUP_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -588,7 +525,6 @@ public PaymentInstrument reference(String reference) { /** * Your reference for the payment instrument, maximum 150 characters. - * * @return reference Your reference for the payment instrument, maximum 150 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -611,8 +547,7 @@ public void setReference(String reference) { /** * The unique identifier of the payment instrument that replaced this payment instrument. * - * @param replacedById The unique identifier of the payment instrument that replaced this payment - * instrument. + * @param replacedById The unique identifier of the payment instrument that replaced this payment instrument. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument replacedById(String replacedById) { @@ -622,9 +557,7 @@ public PaymentInstrument replacedById(String replacedById) { /** * The unique identifier of the payment instrument that replaced this payment instrument. - * - * @return replacedById The unique identifier of the payment instrument that replaced this payment - * instrument. + * @return replacedById The unique identifier of the payment instrument that replaced this payment instrument. */ @JsonProperty(JSON_PROPERTY_REPLACED_BY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -635,8 +568,7 @@ public String getReplacedById() { /** * The unique identifier of the payment instrument that replaced this payment instrument. * - * @param replacedById The unique identifier of the payment instrument that replaced this payment - * instrument. + * @param replacedById The unique identifier of the payment instrument that replaced this payment instrument. */ @JsonProperty(JSON_PROPERTY_REPLACED_BY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -647,8 +579,7 @@ public void setReplacedById(String replacedById) { /** * The unique identifier of the payment instrument that is replaced by this payment instrument. * - * @param replacementOfId The unique identifier of the payment instrument that is replaced by this - * payment instrument. + * @param replacementOfId The unique identifier of the payment instrument that is replaced by this payment instrument. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument replacementOfId(String replacementOfId) { @@ -658,9 +589,7 @@ public PaymentInstrument replacementOfId(String replacementOfId) { /** * The unique identifier of the payment instrument that is replaced by this payment instrument. - * - * @return replacementOfId The unique identifier of the payment instrument that is replaced by - * this payment instrument. + * @return replacementOfId The unique identifier of the payment instrument that is replaced by this payment instrument. */ @JsonProperty(JSON_PROPERTY_REPLACEMENT_OF_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -671,8 +600,7 @@ public String getReplacementOfId() { /** * The unique identifier of the payment instrument that is replaced by this payment instrument. * - * @param replacementOfId The unique identifier of the payment instrument that is replaced by this - * payment instrument. + * @param replacementOfId The unique identifier of the payment instrument that is replaced by this payment instrument. */ @JsonProperty(JSON_PROPERTY_REPLACEMENT_OF_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -681,24 +609,9 @@ public void setReplacementOfId(String replacementOfId) { } /** - * The status of the payment instrument. If a status is not specified when creating a payment - * instrument, it is set to **active** by default. However, there can be exceptions for cards - * based on the `card.formFactor` and the `issuingCountryCode`. For example, - * when issuing physical cards in the US, the default status is **inactive**. Possible values: * - * **active**: The payment instrument is active and can be used to make payments. * **inactive**: - * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The - * payment instrument is suspended, either because it was stolen or lost. * **closed**: The - * payment instrument is permanently closed. This action cannot be undone. - * - * @param status The status of the payment instrument. If a status is not specified when creating - * a payment instrument, it is set to **active** by default. However, there can be exceptions - * for cards based on the `card.formFactor` and the `issuingCountryCode`. - * For example, when issuing physical cards in the US, the default status is **inactive**. - * Possible values: * **active**: The payment instrument is active and can be used to make - * payments. * **inactive**: The payment instrument is inactive and cannot be used to make - * payments. * **suspended**: The payment instrument is suspended, either because it was - * stolen or lost. * **closed**: The payment instrument is permanently closed. This action - * cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * + * @param status The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument status(StatusEnum status) { @@ -707,24 +620,8 @@ public PaymentInstrument status(StatusEnum status) { } /** - * The status of the payment instrument. If a status is not specified when creating a payment - * instrument, it is set to **active** by default. However, there can be exceptions for cards - * based on the `card.formFactor` and the `issuingCountryCode`. For example, - * when issuing physical cards in the US, the default status is **inactive**. Possible values: * - * **active**: The payment instrument is active and can be used to make payments. * **inactive**: - * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The - * payment instrument is suspended, either because it was stolen or lost. * **closed**: The - * payment instrument is permanently closed. This action cannot be undone. - * - * @return status The status of the payment instrument. If a status is not specified when creating - * a payment instrument, it is set to **active** by default. However, there can be exceptions - * for cards based on the `card.formFactor` and the `issuingCountryCode`. - * For example, when issuing physical cards in the US, the default status is **inactive**. - * Possible values: * **active**: The payment instrument is active and can be used to make - * payments. * **inactive**: The payment instrument is inactive and cannot be used to make - * payments. * **suspended**: The payment instrument is suspended, either because it was - * stolen or lost. * **closed**: The payment instrument is permanently closed. This action - * cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * @return status The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -733,24 +630,9 @@ public StatusEnum getStatus() { } /** - * The status of the payment instrument. If a status is not specified when creating a payment - * instrument, it is set to **active** by default. However, there can be exceptions for cards - * based on the `card.formFactor` and the `issuingCountryCode`. For example, - * when issuing physical cards in the US, the default status is **inactive**. Possible values: * - * **active**: The payment instrument is active and can be used to make payments. * **inactive**: - * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The - * payment instrument is suspended, either because it was stolen or lost. * **closed**: The - * payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. * - * @param status The status of the payment instrument. If a status is not specified when creating - * a payment instrument, it is set to **active** by default. However, there can be exceptions - * for cards based on the `card.formFactor` and the `issuingCountryCode`. - * For example, when issuing physical cards in the US, the default status is **inactive**. - * Possible values: * **active**: The payment instrument is active and can be used to make - * payments. * **inactive**: The payment instrument is inactive and cannot be used to make - * payments. * **suspended**: The payment instrument is suspended, either because it was - * stolen or lost. * **closed**: The payment instrument is permanently closed. This action - * cannot be undone. + * @param status The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -759,11 +641,9 @@ public void setStatus(StatusEnum status) { } /** - * The status comment provides additional information for the statusReason of the payment - * instrument. + * The status comment provides additional information for the statusReason of the payment instrument. * - * @param statusComment The status comment provides additional information for the statusReason of - * the payment instrument. + * @param statusComment The status comment provides additional information for the statusReason of the payment instrument. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument statusComment(String statusComment) { @@ -772,11 +652,8 @@ public PaymentInstrument statusComment(String statusComment) { } /** - * The status comment provides additional information for the statusReason of the payment - * instrument. - * - * @return statusComment The status comment provides additional information for the statusReason - * of the payment instrument. + * The status comment provides additional information for the statusReason of the payment instrument. + * @return statusComment The status comment provides additional information for the statusReason of the payment instrument. */ @JsonProperty(JSON_PROPERTY_STATUS_COMMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -785,11 +662,9 @@ public String getStatusComment() { } /** - * The status comment provides additional information for the statusReason of the payment - * instrument. + * The status comment provides additional information for the statusReason of the payment instrument. * - * @param statusComment The status comment provides additional information for the statusReason of - * the payment instrument. + * @param statusComment The status comment provides additional information for the statusReason of the payment instrument. */ @JsonProperty(JSON_PROPERTY_STATUS_COMMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -798,15 +673,9 @@ public void setStatusComment(String statusComment) { } /** - * The reason for the status of the payment instrument. Possible values: **accountClosure**, - * **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, - * **transactionRule**, **other**. If the reason is **other**, you must also send the - * `statusComment` parameter describing the status change. + * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. * - * @param statusReason The reason for the status of the payment instrument. Possible values: - * **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, - * **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must - * also send the `statusComment` parameter describing the status change. + * @param statusReason The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument statusReason(StatusReasonEnum statusReason) { @@ -815,15 +684,8 @@ public PaymentInstrument statusReason(StatusReasonEnum statusReason) { } /** - * The reason for the status of the payment instrument. Possible values: **accountClosure**, - * **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, - * **transactionRule**, **other**. If the reason is **other**, you must also send the - * `statusComment` parameter describing the status change. - * - * @return statusReason The reason for the status of the payment instrument. Possible values: - * **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, - * **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must - * also send the `statusComment` parameter describing the status change. + * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * @return statusReason The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. */ @JsonProperty(JSON_PROPERTY_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -832,15 +694,9 @@ public StatusReasonEnum getStatusReason() { } /** - * The reason for the status of the payment instrument. Possible values: **accountClosure**, - * **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, - * **transactionRule**, **other**. If the reason is **other**, you must also send the - * `statusComment` parameter describing the status change. + * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. * - * @param statusReason The reason for the status of the payment instrument. Possible values: - * **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, - * **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must - * also send the `statusComment` parameter describing the status change. + * @param statusReason The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. */ @JsonProperty(JSON_PROPERTY_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -849,9 +705,9 @@ public void setStatusReason(StatusReasonEnum statusReason) { } /** - * The type of payment instrument. Possible values: **card**, **bankAccount**. + * The type of payment instrument. Possible values: **card**, **bankAccount**. * - * @param type The type of payment instrument. Possible values: **card**, **bankAccount**. + * @param type The type of payment instrument. Possible values: **card**, **bankAccount**. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument type(TypeEnum type) { @@ -860,9 +716,8 @@ public PaymentInstrument type(TypeEnum type) { } /** - * The type of payment instrument. Possible values: **card**, **bankAccount**. - * - * @return type The type of payment instrument. Possible values: **card**, **bankAccount**. + * The type of payment instrument. Possible values: **card**, **bankAccount**. + * @return type The type of payment instrument. Possible values: **card**, **bankAccount**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -871,9 +726,9 @@ public TypeEnum getType() { } /** - * The type of payment instrument. Possible values: **card**, **bankAccount**. + * The type of payment instrument. Possible values: **card**, **bankAccount**. * - * @param type The type of payment instrument. Possible values: **card**, **bankAccount**. + * @param type The type of payment instrument. Possible values: **card**, **bankAccount**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -881,7 +736,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this PaymentInstrument object is equal to o. */ + /** + * Return true if this PaymentInstrument object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -891,61 +748,40 @@ public boolean equals(Object o) { return false; } PaymentInstrument paymentInstrument = (PaymentInstrument) o; - return Objects.equals( - this.additionalBankAccountIdentifications, - paymentInstrument.additionalBankAccountIdentifications) - && Objects.equals(this.balanceAccountId, paymentInstrument.balanceAccountId) - && Objects.equals(this.bankAccount, paymentInstrument.bankAccount) - && Objects.equals(this.card, paymentInstrument.card) - && Objects.equals(this.description, paymentInstrument.description) - && Objects.equals(this.id, paymentInstrument.id) - && Objects.equals(this.issuingCountryCode, paymentInstrument.issuingCountryCode) - && Objects.equals(this.paymentInstrumentGroupId, paymentInstrument.paymentInstrumentGroupId) - && Objects.equals(this.reference, paymentInstrument.reference) - && Objects.equals(this.replacedById, paymentInstrument.replacedById) - && Objects.equals(this.replacementOfId, paymentInstrument.replacementOfId) - && Objects.equals(this.status, paymentInstrument.status) - && Objects.equals(this.statusComment, paymentInstrument.statusComment) - && Objects.equals(this.statusReason, paymentInstrument.statusReason) - && Objects.equals(this.type, paymentInstrument.type); + return Objects.equals(this.additionalBankAccountIdentifications, paymentInstrument.additionalBankAccountIdentifications) && + Objects.equals(this.balanceAccountId, paymentInstrument.balanceAccountId) && + Objects.equals(this.bankAccount, paymentInstrument.bankAccount) && + Objects.equals(this.card, paymentInstrument.card) && + Objects.equals(this.description, paymentInstrument.description) && + Objects.equals(this.id, paymentInstrument.id) && + Objects.equals(this.issuingCountryCode, paymentInstrument.issuingCountryCode) && + Objects.equals(this.paymentInstrumentGroupId, paymentInstrument.paymentInstrumentGroupId) && + Objects.equals(this.reference, paymentInstrument.reference) && + Objects.equals(this.replacedById, paymentInstrument.replacedById) && + Objects.equals(this.replacementOfId, paymentInstrument.replacementOfId) && + Objects.equals(this.status, paymentInstrument.status) && + Objects.equals(this.statusComment, paymentInstrument.statusComment) && + Objects.equals(this.statusReason, paymentInstrument.statusReason) && + Objects.equals(this.type, paymentInstrument.type); } @Override public int hashCode() { - return Objects.hash( - additionalBankAccountIdentifications, - balanceAccountId, - bankAccount, - card, - description, - id, - issuingCountryCode, - paymentInstrumentGroupId, - reference, - replacedById, - replacementOfId, - status, - statusComment, - statusReason, - type); + return Objects.hash(additionalBankAccountIdentifications, balanceAccountId, bankAccount, card, description, id, issuingCountryCode, paymentInstrumentGroupId, reference, replacedById, replacementOfId, status, statusComment, statusReason, type); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentInstrument {\n"); - sb.append(" additionalBankAccountIdentifications: ") - .append(toIndentedString(additionalBankAccountIdentifications)) - .append("\n"); + sb.append(" additionalBankAccountIdentifications: ").append(toIndentedString(additionalBankAccountIdentifications)).append("\n"); sb.append(" balanceAccountId: ").append(toIndentedString(balanceAccountId)).append("\n"); sb.append(" bankAccount: ").append(toIndentedString(bankAccount)).append("\n"); sb.append(" card: ").append(toIndentedString(card)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" issuingCountryCode: ").append(toIndentedString(issuingCountryCode)).append("\n"); - sb.append(" paymentInstrumentGroupId: ") - .append(toIndentedString(paymentInstrumentGroupId)) - .append("\n"); + sb.append(" paymentInstrumentGroupId: ").append(toIndentedString(paymentInstrumentGroupId)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" replacedById: ").append(toIndentedString(replacedById)).append("\n"); sb.append(" replacementOfId: ").append(toIndentedString(replacementOfId)).append("\n"); @@ -958,7 +794,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -967,7 +804,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentInstrument given an JSON string * * @param jsonString JSON string @@ -977,12 +814,11 @@ private String toIndentedString(Object o) { public static PaymentInstrument fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentInstrument.class); } - - /** - * Convert an instance of PaymentInstrument to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentInstrument to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java b/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java index c157a56b3..1670c2aa4 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java @@ -2,19 +2,44 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.configurationwebhooks.IbanAccountIdentification; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + +import com.fasterxml.jackson.core.type.TypeReference; + +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.Response; +import java.io.IOException; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; + import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; +import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -24,200 +49,167 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import jakarta.ws.rs.core.GenericType; -import java.io.IOException; -import java.util.*; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashSet; -import java.util.logging.Level; -import java.util.logging.Logger; -@JsonDeserialize( - using = - PaymentInstrumentAdditionalBankAccountIdentificationsInner - .PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer.class) -@JsonSerialize( - using = - PaymentInstrumentAdditionalBankAccountIdentificationsInner - .PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer.class) -public class PaymentInstrumentAdditionalBankAccountIdentificationsInner - extends AbstractOpenApiSchema { - private static final Logger log = - Logger.getLogger(PaymentInstrumentAdditionalBankAccountIdentificationsInner.class.getName()); - - public static class PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer - extends StdSerializer { - public PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer( - Class t) { - super(t); + +@JsonDeserialize(using = PaymentInstrumentAdditionalBankAccountIdentificationsInner.PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer.class) +@JsonSerialize(using = PaymentInstrumentAdditionalBankAccountIdentificationsInner.PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer.class) +public class PaymentInstrumentAdditionalBankAccountIdentificationsInner extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(PaymentInstrumentAdditionalBankAccountIdentificationsInner.class.getName()); + + public static class PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer extends StdSerializer { + public PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer(Class t) { + super(t); + } + + public PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer() { + this(null); + } + + @Override + public void serialize(PaymentInstrumentAdditionalBankAccountIdentificationsInner value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); + } + } + + public static class PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer extends StdDeserializer { + public PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer() { + this(PaymentInstrumentAdditionalBankAccountIdentificationsInner.class); + } + + public PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer(Class vc) { + super(vc); + } + + @Override + public PaymentInstrumentAdditionalBankAccountIdentificationsInner deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize IbanAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(IbanAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'IbanAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'IbanAccountIdentification'", e); + } + + if (match == 1) { + PaymentInstrumentAdditionalBankAccountIdentificationsInner ret = new PaymentInstrumentAdditionalBankAccountIdentificationsInner(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException(String.format("Failed deserialization for PaymentInstrumentAdditionalBankAccountIdentificationsInner: %d classes match result, expected 1", match)); + } + + /** + * Handle deserialization of the 'null' value. + */ + @Override + public PaymentInstrumentAdditionalBankAccountIdentificationsInner getNullValue(DeserializationContext ctxt) throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "PaymentInstrumentAdditionalBankAccountIdentificationsInner cannot be null"); + } } - public PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer() { - this(null); + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public PaymentInstrumentAdditionalBankAccountIdentificationsInner() { + super("oneOf", Boolean.FALSE); } - @Override - public void serialize( - PaymentInstrumentAdditionalBankAccountIdentificationsInner value, - JsonGenerator jgen, - SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + public PaymentInstrumentAdditionalBankAccountIdentificationsInner(IbanAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } - } - public static class PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer - extends StdDeserializer { - public PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer() { - this(PaymentInstrumentAdditionalBankAccountIdentificationsInner.class); + static { + schemas.put("IbanAccountIdentification", new GenericType() { + }); + JSON.registerDescendants(PaymentInstrumentAdditionalBankAccountIdentificationsInner.class, Collections.unmodifiableMap(schemas)); } - public PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer(Class vc) { - super(vc); + @Override + public Map> getSchemas() { + return PaymentInstrumentAdditionalBankAccountIdentificationsInner.schemas; } + /** + * Set the instance that matches the oneOf child schema, check + * the instance parameter is valid against the oneOf child schemas: + * IbanAccountIdentification + * + * It could be an instance of the 'oneOf' schemas. + * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). + */ @Override - public PaymentInstrumentAdditionalBankAccountIdentificationsInner deserialize( - JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize IbanAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(IbanAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'IbanAccountIdentification'"); - } + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(IbanAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'IbanAccountIdentification'", e); - } - - if (match == 1) { - PaymentInstrumentAdditionalBankAccountIdentificationsInner ret = - new PaymentInstrumentAdditionalBankAccountIdentificationsInner(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for PaymentInstrumentAdditionalBankAccountIdentificationsInner: %d classes match result, expected 1", - match)); + + throw new RuntimeException("Invalid instance type. Must be IbanAccountIdentification"); } - /** Handle deserialization of the 'null' value. */ + /** + * Get the actual instance, which can be the following: + * IbanAccountIdentification + * + * @return The actual instance (IbanAccountIdentification) + */ @Override - public PaymentInstrumentAdditionalBankAccountIdentificationsInner getNullValue( - DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), - "PaymentInstrumentAdditionalBankAccountIdentificationsInner cannot be null"); + public Object getActualInstance() { + return super.getActualInstance(); } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public PaymentInstrumentAdditionalBankAccountIdentificationsInner() { - super("oneOf", Boolean.FALSE); - } - - public PaymentInstrumentAdditionalBankAccountIdentificationsInner(IbanAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("IbanAccountIdentification", new GenericType() {}); - JSON.registerDescendants( - PaymentInstrumentAdditionalBankAccountIdentificationsInner.class, - Collections.unmodifiableMap(schemas)); - } - - @Override - public Map> getSchemas() { - return PaymentInstrumentAdditionalBankAccountIdentificationsInner.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: IbanAccountIdentification - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a - * composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(IbanAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + + /** + * Get the actual instance of `IbanAccountIdentification`. If the actual instance is not `IbanAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `IbanAccountIdentification` + * @throws ClassCastException if the instance is not `IbanAccountIdentification` + */ + public IbanAccountIdentification getIbanAccountIdentification() throws ClassCastException { + return (IbanAccountIdentification)super.getActualInstance(); + } + + + /** + * Create an instance of PaymentInstrumentAdditionalBankAccountIdentificationsInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of PaymentInstrumentAdditionalBankAccountIdentificationsInner + * @throws IOException if the JSON string is invalid with respect to PaymentInstrumentAdditionalBankAccountIdentificationsInner + */ + public static PaymentInstrumentAdditionalBankAccountIdentificationsInner fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, PaymentInstrumentAdditionalBankAccountIdentificationsInner.class); + } + + /** + * Convert an instance of PaymentInstrumentAdditionalBankAccountIdentificationsInner to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); } - throw new RuntimeException("Invalid instance type. Must be IbanAccountIdentification"); - } - - /** - * Get the actual instance, which can be the following: IbanAccountIdentification - * - * @return The actual instance (IbanAccountIdentification) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `IbanAccountIdentification`. If the actual instance is not - * `IbanAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `IbanAccountIdentification` - * @throws ClassCastException if the instance is not `IbanAccountIdentification` - */ - public IbanAccountIdentification getIbanAccountIdentification() throws ClassCastException { - return (IbanAccountIdentification) super.getActualInstance(); - } - - /** - * Create an instance of PaymentInstrumentAdditionalBankAccountIdentificationsInner given an JSON - * string - * - * @param jsonString JSON string - * @return An instance of PaymentInstrumentAdditionalBankAccountIdentificationsInner - * @throws IOException if the JSON string is invalid with respect to - * PaymentInstrumentAdditionalBankAccountIdentificationsInner - */ - public static PaymentInstrumentAdditionalBankAccountIdentificationsInner fromJson( - String jsonString) throws IOException { - return JSON.getMapper() - .readValue(jsonString, PaymentInstrumentAdditionalBankAccountIdentificationsInner.class); - } - - /** - * Convert an instance of PaymentInstrumentAdditionalBankAccountIdentificationsInner to an JSON - * string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); - } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrumentNotificationData.java b/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrumentNotificationData.java index 3d37771ab..fa8637e26 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrumentNotificationData.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrumentNotificationData.java @@ -2,26 +2,37 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.configurationwebhooks.PaymentInstrument; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** PaymentInstrumentNotificationData */ + +/** + * PaymentInstrumentNotificationData + */ @JsonPropertyOrder({ PaymentInstrumentNotificationData.JSON_PROPERTY_BALANCE_PLATFORM, PaymentInstrumentNotificationData.JSON_PROPERTY_PAYMENT_INSTRUMENT }) + public class PaymentInstrumentNotificationData { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; @@ -29,14 +40,14 @@ public class PaymentInstrumentNotificationData { public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT = "paymentInstrument"; private PaymentInstrument paymentInstrument; - public PaymentInstrumentNotificationData() {} + public PaymentInstrumentNotificationData() { + } /** * The unique identifier of the balance platform. * * @param balancePlatform The unique identifier of the balance platform. - * @return the current {@code PaymentInstrumentNotificationData} instance, allowing for method - * chaining + * @return the current {@code PaymentInstrumentNotificationData} instance, allowing for method chaining */ public PaymentInstrumentNotificationData balancePlatform(String balancePlatform) { this.balancePlatform = balancePlatform; @@ -45,7 +56,6 @@ public PaymentInstrumentNotificationData balancePlatform(String balancePlatform) /** * The unique identifier of the balance platform. - * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -68,9 +78,8 @@ public void setBalancePlatform(String balancePlatform) { /** * paymentInstrument * - * @param paymentInstrument - * @return the current {@code PaymentInstrumentNotificationData} instance, allowing for method - * chaining + * @param paymentInstrument + * @return the current {@code PaymentInstrumentNotificationData} instance, allowing for method chaining */ public PaymentInstrumentNotificationData paymentInstrument(PaymentInstrument paymentInstrument) { this.paymentInstrument = paymentInstrument; @@ -79,8 +88,7 @@ public PaymentInstrumentNotificationData paymentInstrument(PaymentInstrument pay /** * Get paymentInstrument - * - * @return paymentInstrument + * @return paymentInstrument */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -91,7 +99,7 @@ public PaymentInstrument getPaymentInstrument() { /** * paymentInstrument * - * @param paymentInstrument + * @param paymentInstrument */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,7 +107,9 @@ public void setPaymentInstrument(PaymentInstrument paymentInstrument) { this.paymentInstrument = paymentInstrument; } - /** Return true if this PaymentInstrumentNotificationData object is equal to o. */ + /** + * Return true if this PaymentInstrumentNotificationData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -108,11 +118,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaymentInstrumentNotificationData paymentInstrumentNotificationData = - (PaymentInstrumentNotificationData) o; - return Objects.equals(this.balancePlatform, paymentInstrumentNotificationData.balancePlatform) - && Objects.equals( - this.paymentInstrument, paymentInstrumentNotificationData.paymentInstrument); + PaymentInstrumentNotificationData paymentInstrumentNotificationData = (PaymentInstrumentNotificationData) o; + return Objects.equals(this.balancePlatform, paymentInstrumentNotificationData.balancePlatform) && + Objects.equals(this.paymentInstrument, paymentInstrumentNotificationData.paymentInstrument); } @Override @@ -131,7 +139,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -140,24 +149,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentInstrumentNotificationData given an JSON string * * @param jsonString JSON string * @return An instance of PaymentInstrumentNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentInstrumentNotificationData + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentInstrumentNotificationData */ - public static PaymentInstrumentNotificationData fromJson(String jsonString) - throws JsonProcessingException { + public static PaymentInstrumentNotificationData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentInstrumentNotificationData.class); } - - /** - * Convert an instance of PaymentInstrumentNotificationData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentInstrumentNotificationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/PaymentNotificationRequest.java b/src/main/java/com/adyen/model/configurationwebhooks/PaymentNotificationRequest.java index 09d8479b5..0aa623b73 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/PaymentNotificationRequest.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/PaymentNotificationRequest.java @@ -2,33 +2,40 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.configurationwebhooks.PaymentInstrumentNotificationData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** PaymentNotificationRequest */ + +/** + * PaymentNotificationRequest + */ @JsonPropertyOrder({ PaymentNotificationRequest.JSON_PROPERTY_DATA, PaymentNotificationRequest.JSON_PROPERTY_ENVIRONMENT, PaymentNotificationRequest.JSON_PROPERTY_TIMESTAMP, PaymentNotificationRequest.JSON_PROPERTY_TYPE }) + public class PaymentNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private PaymentInstrumentNotificationData data; @@ -39,20 +46,21 @@ public class PaymentNotificationRequest { public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; private OffsetDateTime timestamp; - /** Type of webhook. */ + /** + * Type of webhook. + */ public enum TypeEnum { - BALANCEPLATFORM_PAYMENTINSTRUMENT_CREATED( - String.valueOf("balancePlatform.paymentInstrument.created")), - BALANCEPLATFORM_PAYMENTINSTRUMENT_UPDATED( - String.valueOf("balancePlatform.paymentInstrument.updated")); + BALANCEPLATFORM_PAYMENTINSTRUMENT_CREATED(String.valueOf("balancePlatform.paymentInstrument.created")), + + BALANCEPLATFORM_PAYMENTINSTRUMENT_UPDATED(String.valueOf("balancePlatform.paymentInstrument.updated")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,11 +81,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -85,12 +89,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PaymentNotificationRequest() {} + public PaymentNotificationRequest() { + } /** * data * - * @param data + * @param data * @return the current {@code PaymentNotificationRequest} instance, allowing for method chaining */ public PaymentNotificationRequest data(PaymentInstrumentNotificationData data) { @@ -100,8 +105,7 @@ public PaymentNotificationRequest data(PaymentInstrumentNotificationData data) { /** * Get data - * - * @return data + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,7 +116,7 @@ public PaymentInstrumentNotificationData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,10 +125,9 @@ public void setData(PaymentInstrumentNotificationData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. * @return the current {@code PaymentNotificationRequest} instance, allowing for method chaining */ public PaymentNotificationRequest environment(String environment) { @@ -133,10 +136,8 @@ public PaymentNotificationRequest environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * - * @return environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,10 +146,9 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,7 +169,6 @@ public PaymentNotificationRequest timestamp(OffsetDateTime timestamp) { /** * When the event was queued. - * * @return timestamp When the event was queued. */ @JsonProperty(JSON_PROPERTY_TIMESTAMP) @@ -202,7 +201,6 @@ public PaymentNotificationRequest type(TypeEnum type) { /** * Type of webhook. - * * @return type Type of webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -222,7 +220,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this PaymentNotificationRequest object is equal to o. */ + /** + * Return true if this PaymentNotificationRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -232,10 +232,10 @@ public boolean equals(Object o) { return false; } PaymentNotificationRequest paymentNotificationRequest = (PaymentNotificationRequest) o; - return Objects.equals(this.data, paymentNotificationRequest.data) - && Objects.equals(this.environment, paymentNotificationRequest.environment) - && Objects.equals(this.timestamp, paymentNotificationRequest.timestamp) - && Objects.equals(this.type, paymentNotificationRequest.type); + return Objects.equals(this.data, paymentNotificationRequest.data) && + Objects.equals(this.environment, paymentNotificationRequest.environment) && + Objects.equals(this.timestamp, paymentNotificationRequest.timestamp) && + Objects.equals(this.type, paymentNotificationRequest.type); } @Override @@ -256,7 +256,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -265,24 +266,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of PaymentNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentNotificationRequest */ - public static PaymentNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static PaymentNotificationRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentNotificationRequest.class); } - - /** - * Convert an instance of PaymentNotificationRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Phone.java b/src/main/java/com/adyen/model/configurationwebhooks/Phone.java index 08460eb12..6f5235765 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Phone.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Phone.java @@ -2,33 +2,45 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * Phone + */ +@JsonPropertyOrder({ + Phone.JSON_PROPERTY_NUMBER, + Phone.JSON_PROPERTY_TYPE +}) -/** Phone */ -@JsonPropertyOrder({Phone.JSON_PROPERTY_NUMBER, Phone.JSON_PROPERTY_TYPE}) public class Phone { public static final String JSON_PROPERTY_NUMBER = "number"; private String number; - /** Type of phone number. Possible values: **Landline**, **Mobile**. */ + /** + * Type of phone number. Possible values: **Landline**, **Mobile**. + */ public enum TypeEnum { + LANDLINE(String.valueOf("landline")), MOBILE(String.valueOf("mobile")); @@ -38,7 +50,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -59,11 +71,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -71,15 +79,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public Phone() {} + public Phone() { + } /** - * The full phone number provided as a single string. For example, **\"0031 6 11 22 33 - * 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. + * The full phone number provided as a single string. For example, **\"0031 6 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. * - * @param number The full phone number provided as a single string. For example, **\"0031 6 - * 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) - * 611223344\"**. + * @param number The full phone number provided as a single string. For example, **\"0031 6 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. * @return the current {@code Phone} instance, allowing for method chaining */ public Phone number(String number) { @@ -88,12 +94,8 @@ public Phone number(String number) { } /** - * The full phone number provided as a single string. For example, **\"0031 6 11 22 33 - * 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. - * - * @return number The full phone number provided as a single string. For example, **\"0031 6 - * 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) - * 611223344\"**. + * The full phone number provided as a single string. For example, **\"0031 6 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. + * @return number The full phone number provided as a single string. For example, **\"0031 6 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,12 +104,9 @@ public String getNumber() { } /** - * The full phone number provided as a single string. For example, **\"0031 6 11 22 33 - * 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. + * The full phone number provided as a single string. For example, **\"0031 6 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. * - * @param number The full phone number provided as a single string. For example, **\"0031 6 - * 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) - * 611223344\"**. + * @param number The full phone number provided as a single string. For example, **\"0031 6 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,9 +115,9 @@ public void setNumber(String number) { } /** - * Type of phone number. Possible values: **Landline**, **Mobile**. + * Type of phone number. Possible values: **Landline**, **Mobile**. * - * @param type Type of phone number. Possible values: **Landline**, **Mobile**. + * @param type Type of phone number. Possible values: **Landline**, **Mobile**. * @return the current {@code Phone} instance, allowing for method chaining */ public Phone type(TypeEnum type) { @@ -127,9 +126,8 @@ public Phone type(TypeEnum type) { } /** - * Type of phone number. Possible values: **Landline**, **Mobile**. - * - * @return type Type of phone number. Possible values: **Landline**, **Mobile**. + * Type of phone number. Possible values: **Landline**, **Mobile**. + * @return type Type of phone number. Possible values: **Landline**, **Mobile**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,9 +136,9 @@ public TypeEnum getType() { } /** - * Type of phone number. Possible values: **Landline**, **Mobile**. + * Type of phone number. Possible values: **Landline**, **Mobile**. * - * @param type Type of phone number. Possible values: **Landline**, **Mobile**. + * @param type Type of phone number. Possible values: **Landline**, **Mobile**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,7 +146,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this Phone object is equal to o. */ + /** + * Return true if this Phone object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -158,7 +158,8 @@ public boolean equals(Object o) { return false; } Phone phone = (Phone) o; - return Objects.equals(this.number, phone.number) && Objects.equals(this.type, phone.type); + return Objects.equals(this.number, phone.number) && + Objects.equals(this.type, phone.type); } @Override @@ -177,7 +178,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +188,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Phone given an JSON string * * @param jsonString JSON string @@ -196,12 +198,11 @@ private String toIndentedString(Object o) { public static Phone fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Phone.class); } - - /** - * Convert an instance of Phone to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Phone to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/PhoneNumber.java b/src/main/java/com/adyen/model/configurationwebhooks/PhoneNumber.java index d746ec95a..bcd2f0372 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/PhoneNumber.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/PhoneNumber.java @@ -2,31 +2,37 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** PhoneNumber */ + +/** + * PhoneNumber + */ @JsonPropertyOrder({ PhoneNumber.JSON_PROPERTY_PHONE_COUNTRY_CODE, PhoneNumber.JSON_PROPERTY_PHONE_NUMBER, PhoneNumber.JSON_PROPERTY_PHONE_TYPE }) + public class PhoneNumber { public static final String JSON_PROPERTY_PHONE_COUNTRY_CODE = "phoneCountryCode"; private String phoneCountryCode; @@ -34,8 +40,11 @@ public class PhoneNumber { public static final String JSON_PROPERTY_PHONE_NUMBER = "phoneNumber"; private String phoneNumber; - /** The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. */ + /** + * The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. + */ public enum PhoneTypeEnum { + FAX(String.valueOf("Fax")), LANDLINE(String.valueOf("Landline")), @@ -49,7 +58,7 @@ public enum PhoneTypeEnum { private String value; PhoneTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -70,11 +79,7 @@ public static PhoneTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PhoneTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PhoneTypeEnum.values())); + LOG.warning("PhoneTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PhoneTypeEnum.values())); return null; } } @@ -82,14 +87,13 @@ public static PhoneTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_PHONE_TYPE = "phoneType"; private PhoneTypeEnum phoneType; - public PhoneNumber() {} + public PhoneNumber() { + } /** - * The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or - * **NL**. + * The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or **NL**. * - * @param phoneCountryCode The two-character ISO-3166-1 alpha-2 country code of the phone number. - * For example, **US** or **NL**. + * @param phoneCountryCode The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or **NL**. * @return the current {@code PhoneNumber} instance, allowing for method chaining */ public PhoneNumber phoneCountryCode(String phoneCountryCode) { @@ -98,11 +102,8 @@ public PhoneNumber phoneCountryCode(String phoneCountryCode) { } /** - * The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or - * **NL**. - * - * @return phoneCountryCode The two-character ISO-3166-1 alpha-2 country code of the phone number. - * For example, **US** or **NL**. + * The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or **NL**. + * @return phoneCountryCode The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or **NL**. */ @JsonProperty(JSON_PROPERTY_PHONE_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,11 +112,9 @@ public String getPhoneCountryCode() { } /** - * The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or - * **NL**. + * The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or **NL**. * - * @param phoneCountryCode The two-character ISO-3166-1 alpha-2 country code of the phone number. - * For example, **US** or **NL**. + * @param phoneCountryCode The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or **NL**. */ @JsonProperty(JSON_PROPERTY_PHONE_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,8 +125,7 @@ public void setPhoneCountryCode(String phoneCountryCode) { /** * The phone number. The inclusion of the phone number country code is not necessary. * - * @param phoneNumber The phone number. The inclusion of the phone number country code is not - * necessary. + * @param phoneNumber The phone number. The inclusion of the phone number country code is not necessary. * @return the current {@code PhoneNumber} instance, allowing for method chaining */ public PhoneNumber phoneNumber(String phoneNumber) { @@ -137,9 +135,7 @@ public PhoneNumber phoneNumber(String phoneNumber) { /** * The phone number. The inclusion of the phone number country code is not necessary. - * - * @return phoneNumber The phone number. The inclusion of the phone number country code is not - * necessary. + * @return phoneNumber The phone number. The inclusion of the phone number country code is not necessary. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,8 +146,7 @@ public String getPhoneNumber() { /** * The phone number. The inclusion of the phone number country code is not necessary. * - * @param phoneNumber The phone number. The inclusion of the phone number country code is not - * necessary. + * @param phoneNumber The phone number. The inclusion of the phone number country code is not necessary. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -162,8 +157,7 @@ public void setPhoneNumber(String phoneNumber) { /** * The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. * - * @param phoneType The type of the phone number. Possible values: **Landline**, **Mobile**, - * **SIP**, **Fax**. + * @param phoneType The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. * @return the current {@code PhoneNumber} instance, allowing for method chaining */ public PhoneNumber phoneType(PhoneTypeEnum phoneType) { @@ -173,9 +167,7 @@ public PhoneNumber phoneType(PhoneTypeEnum phoneType) { /** * The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. - * - * @return phoneType The type of the phone number. Possible values: **Landline**, **Mobile**, - * **SIP**, **Fax**. + * @return phoneType The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. */ @JsonProperty(JSON_PROPERTY_PHONE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,8 +178,7 @@ public PhoneTypeEnum getPhoneType() { /** * The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. * - * @param phoneType The type of the phone number. Possible values: **Landline**, **Mobile**, - * **SIP**, **Fax**. + * @param phoneType The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. */ @JsonProperty(JSON_PROPERTY_PHONE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,7 +186,9 @@ public void setPhoneType(PhoneTypeEnum phoneType) { this.phoneType = phoneType; } - /** Return true if this PhoneNumber object is equal to o. */ + /** + * Return true if this PhoneNumber object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -205,9 +198,9 @@ public boolean equals(Object o) { return false; } PhoneNumber phoneNumber = (PhoneNumber) o; - return Objects.equals(this.phoneCountryCode, phoneNumber.phoneCountryCode) - && Objects.equals(this.phoneNumber, phoneNumber.phoneNumber) - && Objects.equals(this.phoneType, phoneNumber.phoneType); + return Objects.equals(this.phoneCountryCode, phoneNumber.phoneCountryCode) && + Objects.equals(this.phoneNumber, phoneNumber.phoneNumber) && + Objects.equals(this.phoneType, phoneNumber.phoneType); } @Override @@ -227,7 +220,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -236,7 +230,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PhoneNumber given an JSON string * * @param jsonString JSON string @@ -246,12 +240,11 @@ private String toIndentedString(Object o) { public static PhoneNumber fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PhoneNumber.class); } - - /** - * Convert an instance of PhoneNumber to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PhoneNumber to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/PlatformPaymentConfiguration.java b/src/main/java/com/adyen/model/configurationwebhooks/PlatformPaymentConfiguration.java index 376a23994..282726f85 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/PlatformPaymentConfiguration.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/PlatformPaymentConfiguration.java @@ -2,26 +2,36 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** PlatformPaymentConfiguration */ + +/** + * PlatformPaymentConfiguration + */ @JsonPropertyOrder({ PlatformPaymentConfiguration.JSON_PROPERTY_SALES_DAY_CLOSING_TIME, PlatformPaymentConfiguration.JSON_PROPERTY_SETTLEMENT_DELAY_DAYS }) + public class PlatformPaymentConfiguration { public static final String JSON_PROPERTY_SALES_DAY_CLOSING_TIME = "salesDayClosingTime"; private String salesDayClosingTime; @@ -29,16 +39,13 @@ public class PlatformPaymentConfiguration { public static final String JSON_PROPERTY_SETTLEMENT_DELAY_DAYS = "settlementDelayDays"; private Integer settlementDelayDays; - public PlatformPaymentConfiguration() {} + public PlatformPaymentConfiguration() { + } /** - * Specifies at what time a sales day ends for this account. Possible values: Time in - * **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. - * Default value: **\"00:00\"**. + * Specifies at what time a sales day ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**. * - * @param salesDayClosingTime Specifies at what time a sales day ends for this account. Possible - * values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** - * must be **00**. Default value: **\"00:00\"**. + * @param salesDayClosingTime Specifies at what time a sales day ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**. * @return the current {@code PlatformPaymentConfiguration} instance, allowing for method chaining */ public PlatformPaymentConfiguration salesDayClosingTime(String salesDayClosingTime) { @@ -47,13 +54,8 @@ public PlatformPaymentConfiguration salesDayClosingTime(String salesDayClosingTi } /** - * Specifies at what time a sales day ends for this account. Possible values: Time in - * **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. - * Default value: **\"00:00\"**. - * - * @return salesDayClosingTime Specifies at what time a sales day ends for this account. Possible - * values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** - * must be **00**. Default value: **\"00:00\"**. + * Specifies at what time a sales day ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**. + * @return salesDayClosingTime Specifies at what time a sales day ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**. */ @JsonProperty(JSON_PROPERTY_SALES_DAY_CLOSING_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -62,13 +64,9 @@ public String getSalesDayClosingTime() { } /** - * Specifies at what time a sales day ends for this account. Possible values: Time in - * **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. - * Default value: **\"00:00\"**. + * Specifies at what time a sales day ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**. * - * @param salesDayClosingTime Specifies at what time a sales day ends for this account. Possible - * values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** - * must be **00**. Default value: **\"00:00\"**. + * @param salesDayClosingTime Specifies at what time a sales day ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**. */ @JsonProperty(JSON_PROPERTY_SALES_DAY_CLOSING_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -77,12 +75,9 @@ public void setSalesDayClosingTime(String salesDayClosingTime) { } /** - * Specifies after how many business days the funds in a settlement batch are made available in - * this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. + * Specifies after how many business days the funds in a settlement batch are made available in this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. * - * @param settlementDelayDays Specifies after how many business days the funds in a settlement - * batch are made available in this balance account. Possible values: **1** to **20**, or - * **null**. Default value: **null**. + * @param settlementDelayDays Specifies after how many business days the funds in a settlement batch are made available in this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. * @return the current {@code PlatformPaymentConfiguration} instance, allowing for method chaining */ public PlatformPaymentConfiguration settlementDelayDays(Integer settlementDelayDays) { @@ -91,12 +86,8 @@ public PlatformPaymentConfiguration settlementDelayDays(Integer settlementDelayD } /** - * Specifies after how many business days the funds in a settlement batch are made available in - * this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. - * - * @return settlementDelayDays Specifies after how many business days the funds in a settlement - * batch are made available in this balance account. Possible values: **1** to **20**, or - * **null**. Default value: **null**. + * Specifies after how many business days the funds in a settlement batch are made available in this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. + * @return settlementDelayDays Specifies after how many business days the funds in a settlement batch are made available in this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. */ @JsonProperty(JSON_PROPERTY_SETTLEMENT_DELAY_DAYS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,12 +96,9 @@ public Integer getSettlementDelayDays() { } /** - * Specifies after how many business days the funds in a settlement batch are made available in - * this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. + * Specifies after how many business days the funds in a settlement batch are made available in this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. * - * @param settlementDelayDays Specifies after how many business days the funds in a settlement - * batch are made available in this balance account. Possible values: **1** to **20**, or - * **null**. Default value: **null**. + * @param settlementDelayDays Specifies after how many business days the funds in a settlement batch are made available in this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. */ @JsonProperty(JSON_PROPERTY_SETTLEMENT_DELAY_DAYS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,7 +106,9 @@ public void setSettlementDelayDays(Integer settlementDelayDays) { this.settlementDelayDays = settlementDelayDays; } - /** Return true if this PlatformPaymentConfiguration object is equal to o. */ + /** + * Return true if this PlatformPaymentConfiguration object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -128,10 +118,8 @@ public boolean equals(Object o) { return false; } PlatformPaymentConfiguration platformPaymentConfiguration = (PlatformPaymentConfiguration) o; - return Objects.equals( - this.salesDayClosingTime, platformPaymentConfiguration.salesDayClosingTime) - && Objects.equals( - this.settlementDelayDays, platformPaymentConfiguration.settlementDelayDays); + return Objects.equals(this.salesDayClosingTime, platformPaymentConfiguration.salesDayClosingTime) && + Objects.equals(this.settlementDelayDays, platformPaymentConfiguration.settlementDelayDays); } @Override @@ -143,18 +131,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PlatformPaymentConfiguration {\n"); - sb.append(" salesDayClosingTime: ") - .append(toIndentedString(salesDayClosingTime)) - .append("\n"); - sb.append(" settlementDelayDays: ") - .append(toIndentedString(settlementDelayDays)) - .append("\n"); + sb.append(" salesDayClosingTime: ").append(toIndentedString(salesDayClosingTime)).append("\n"); + sb.append(" settlementDelayDays: ").append(toIndentedString(settlementDelayDays)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -163,24 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PlatformPaymentConfiguration given an JSON string * * @param jsonString JSON string * @return An instance of PlatformPaymentConfiguration - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PlatformPaymentConfiguration + * @throws JsonProcessingException if the JSON string is invalid with respect to PlatformPaymentConfiguration */ - public static PlatformPaymentConfiguration fromJson(String jsonString) - throws JsonProcessingException { + public static PlatformPaymentConfiguration fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PlatformPaymentConfiguration.class); } - - /** - * Convert an instance of PlatformPaymentConfiguration to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PlatformPaymentConfiguration to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/RemediatingAction.java b/src/main/java/com/adyen/model/configurationwebhooks/RemediatingAction.java index 92f4cef85..dca5d8b4a 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/RemediatingAction.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/RemediatingAction.java @@ -2,23 +2,36 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** RemediatingAction */ -@JsonPropertyOrder({RemediatingAction.JSON_PROPERTY_CODE, RemediatingAction.JSON_PROPERTY_MESSAGE}) + +/** + * RemediatingAction + */ +@JsonPropertyOrder({ + RemediatingAction.JSON_PROPERTY_CODE, + RemediatingAction.JSON_PROPERTY_MESSAGE +}) + public class RemediatingAction { public static final String JSON_PROPERTY_CODE = "code"; private String code; @@ -26,7 +39,8 @@ public class RemediatingAction { public static final String JSON_PROPERTY_MESSAGE = "message"; private String message; - public RemediatingAction() {} + public RemediatingAction() { + } /** * The remediating action code. @@ -41,7 +55,6 @@ public RemediatingAction code(String code) { /** * The remediating action code. - * * @return code The remediating action code. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -74,7 +87,6 @@ public RemediatingAction message(String message) { /** * A description of how you can resolve the verification error. - * * @return message A description of how you can resolve the verification error. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -94,7 +106,9 @@ public void setMessage(String message) { this.message = message; } - /** Return true if this RemediatingAction object is equal to o. */ + /** + * Return true if this RemediatingAction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -104,8 +118,8 @@ public boolean equals(Object o) { return false; } RemediatingAction remediatingAction = (RemediatingAction) o; - return Objects.equals(this.code, remediatingAction.code) - && Objects.equals(this.message, remediatingAction.message); + return Objects.equals(this.code, remediatingAction.code) && + Objects.equals(this.message, remediatingAction.message); } @Override @@ -124,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RemediatingAction given an JSON string * * @param jsonString JSON string @@ -143,12 +158,11 @@ private String toIndentedString(Object o) { public static RemediatingAction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RemediatingAction.class); } - - /** - * Convert an instance of RemediatingAction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RemediatingAction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Resource.java b/src/main/java/com/adyen/model/configurationwebhooks/Resource.java index 90f36aea5..e42ad6719 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Resource.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Resource.java @@ -2,28 +2,38 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.time.OffsetDateTime; -import java.util.*; -/** Resource */ + +/** + * Resource + */ @JsonPropertyOrder({ Resource.JSON_PROPERTY_BALANCE_PLATFORM, Resource.JSON_PROPERTY_CREATION_DATE, Resource.JSON_PROPERTY_ID }) + public class Resource { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; @@ -34,7 +44,8 @@ public class Resource { public static final String JSON_PROPERTY_ID = "id"; private String id; - public Resource() {} + public Resource() { + } /** * The unique identifier of the balance platform. @@ -49,7 +60,6 @@ public Resource balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. - * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -70,11 +80,9 @@ public void setBalancePlatform(String balancePlatform) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code Resource} instance, allowing for method chaining */ public Resource creationDate(OffsetDateTime creationDate) { @@ -83,11 +91,8 @@ public Resource creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. - * - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,11 +101,9 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,7 +124,6 @@ public Resource id(String id) { /** * The ID of the resource. - * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -141,7 +143,9 @@ public void setId(String id) { this.id = id; } - /** Return true if this Resource object is equal to o. */ + /** + * Return true if this Resource object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -151,9 +155,9 @@ public boolean equals(Object o) { return false; } Resource resource = (Resource) o; - return Objects.equals(this.balancePlatform, resource.balancePlatform) - && Objects.equals(this.creationDate, resource.creationDate) - && Objects.equals(this.id, resource.id); + return Objects.equals(this.balancePlatform, resource.balancePlatform) && + Objects.equals(this.creationDate, resource.creationDate) && + Objects.equals(this.id, resource.id); } @Override @@ -173,7 +177,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,7 +187,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Resource given an JSON string * * @param jsonString JSON string @@ -192,12 +197,11 @@ private String toIndentedString(Object o) { public static Resource fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Resource.class); } - - /** - * Convert an instance of Resource to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Resource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/ResourceReference.java b/src/main/java/com/adyen/model/configurationwebhooks/ResourceReference.java index a015a573b..9f9588782 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/ResourceReference.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/ResourceReference.java @@ -2,27 +2,37 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ResourceReference */ + +/** + * ResourceReference + */ @JsonPropertyOrder({ ResourceReference.JSON_PROPERTY_DESCRIPTION, ResourceReference.JSON_PROPERTY_ID, ResourceReference.JSON_PROPERTY_REFERENCE }) + public class ResourceReference { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -33,7 +43,8 @@ public class ResourceReference { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public ResourceReference() {} + public ResourceReference() { + } /** * The description of the resource. @@ -48,7 +59,6 @@ public ResourceReference description(String description) { /** * The description of the resource. - * * @return description The description of the resource. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -81,7 +91,6 @@ public ResourceReference id(String id) { /** * The unique identifier of the resource. - * * @return id The unique identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -114,7 +123,6 @@ public ResourceReference reference(String reference) { /** * The reference for the resource. - * * @return reference The reference for the resource. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -134,7 +142,9 @@ public void setReference(String reference) { this.reference = reference; } - /** Return true if this ResourceReference object is equal to o. */ + /** + * Return true if this ResourceReference object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,9 +154,9 @@ public boolean equals(Object o) { return false; } ResourceReference resourceReference = (ResourceReference) o; - return Objects.equals(this.description, resourceReference.description) - && Objects.equals(this.id, resourceReference.id) - && Objects.equals(this.reference, resourceReference.reference); + return Objects.equals(this.description, resourceReference.description) && + Objects.equals(this.id, resourceReference.id) && + Objects.equals(this.reference, resourceReference.reference); } @Override @@ -166,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResourceReference given an JSON string * * @param jsonString JSON string @@ -185,12 +196,11 @@ private String toIndentedString(Object o) { public static ResourceReference fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResourceReference.class); } - - /** - * Convert an instance of ResourceReference to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResourceReference to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/ScoreNotificationRequest.java b/src/main/java/com/adyen/model/configurationwebhooks/ScoreNotificationRequest.java index e25fb7b3e..aa506ffb0 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/ScoreNotificationRequest.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/ScoreNotificationRequest.java @@ -2,33 +2,40 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.configurationwebhooks.BankScoreSignalTriggeredData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** ScoreNotificationRequest */ + +/** + * ScoreNotificationRequest + */ @JsonPropertyOrder({ ScoreNotificationRequest.JSON_PROPERTY_DATA, ScoreNotificationRequest.JSON_PROPERTY_ENVIRONMENT, ScoreNotificationRequest.JSON_PROPERTY_TIMESTAMP, ScoreNotificationRequest.JSON_PROPERTY_TYPE }) + public class ScoreNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private BankScoreSignalTriggeredData data; @@ -39,8 +46,11 @@ public class ScoreNotificationRequest { public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; private OffsetDateTime timestamp; - /** Type of webhook. */ + /** + * Type of webhook. + */ public enum TypeEnum { + BALANCEPLATFORM_SCORE_TRIGGERED(String.valueOf("balancePlatform.score.triggered")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +58,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,11 +79,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -81,12 +87,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public ScoreNotificationRequest() {} + public ScoreNotificationRequest() { + } /** * data * - * @param data + * @param data * @return the current {@code ScoreNotificationRequest} instance, allowing for method chaining */ public ScoreNotificationRequest data(BankScoreSignalTriggeredData data) { @@ -96,8 +103,7 @@ public ScoreNotificationRequest data(BankScoreSignalTriggeredData data) { /** * Get data - * - * @return data + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,7 +114,7 @@ public BankScoreSignalTriggeredData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,10 +123,9 @@ public void setData(BankScoreSignalTriggeredData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. * @return the current {@code ScoreNotificationRequest} instance, allowing for method chaining */ public ScoreNotificationRequest environment(String environment) { @@ -129,10 +134,8 @@ public ScoreNotificationRequest environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * - * @return environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -141,10 +144,9 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -165,7 +167,6 @@ public ScoreNotificationRequest timestamp(OffsetDateTime timestamp) { /** * When the event was queued. - * * @return timestamp When the event was queued. */ @JsonProperty(JSON_PROPERTY_TIMESTAMP) @@ -198,7 +199,6 @@ public ScoreNotificationRequest type(TypeEnum type) { /** * Type of webhook. - * * @return type Type of webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -218,7 +218,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this ScoreNotificationRequest object is equal to o. */ + /** + * Return true if this ScoreNotificationRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -228,10 +230,10 @@ public boolean equals(Object o) { return false; } ScoreNotificationRequest scoreNotificationRequest = (ScoreNotificationRequest) o; - return Objects.equals(this.data, scoreNotificationRequest.data) - && Objects.equals(this.environment, scoreNotificationRequest.environment) - && Objects.equals(this.timestamp, scoreNotificationRequest.timestamp) - && Objects.equals(this.type, scoreNotificationRequest.type); + return Objects.equals(this.data, scoreNotificationRequest.data) && + Objects.equals(this.environment, scoreNotificationRequest.environment) && + Objects.equals(this.timestamp, scoreNotificationRequest.timestamp) && + Objects.equals(this.type, scoreNotificationRequest.type); } @Override @@ -252,7 +254,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -261,24 +264,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ScoreNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of ScoreNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ScoreNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to ScoreNotificationRequest */ - public static ScoreNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static ScoreNotificationRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ScoreNotificationRequest.class); } - - /** - * Convert an instance of ScoreNotificationRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ScoreNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationNotificationData.java b/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationNotificationData.java index 55bcb7120..c0858d035 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationNotificationData.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationNotificationData.java @@ -2,27 +2,38 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.configurationwebhooks.SweepConfigurationV2; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** SweepConfigurationNotificationData */ + +/** + * SweepConfigurationNotificationData + */ @JsonPropertyOrder({ SweepConfigurationNotificationData.JSON_PROPERTY_ACCOUNT_ID, SweepConfigurationNotificationData.JSON_PROPERTY_BALANCE_PLATFORM, SweepConfigurationNotificationData.JSON_PROPERTY_SWEEP }) + public class SweepConfigurationNotificationData { public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId"; private String accountId; @@ -33,15 +44,14 @@ public class SweepConfigurationNotificationData { public static final String JSON_PROPERTY_SWEEP = "sweep"; private SweepConfigurationV2 sweep; - public SweepConfigurationNotificationData() {} + public SweepConfigurationNotificationData() { + } /** * The unique identifier of the balance account for which the sweep was configured. * - * @param accountId The unique identifier of the balance account for which the sweep was - * configured. - * @return the current {@code SweepConfigurationNotificationData} instance, allowing for method - * chaining + * @param accountId The unique identifier of the balance account for which the sweep was configured. + * @return the current {@code SweepConfigurationNotificationData} instance, allowing for method chaining */ public SweepConfigurationNotificationData accountId(String accountId) { this.accountId = accountId; @@ -50,9 +60,7 @@ public SweepConfigurationNotificationData accountId(String accountId) { /** * The unique identifier of the balance account for which the sweep was configured. - * - * @return accountId The unique identifier of the balance account for which the sweep was - * configured. + * @return accountId The unique identifier of the balance account for which the sweep was configured. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,8 +71,7 @@ public String getAccountId() { /** * The unique identifier of the balance account for which the sweep was configured. * - * @param accountId The unique identifier of the balance account for which the sweep was - * configured. + * @param accountId The unique identifier of the balance account for which the sweep was configured. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -76,8 +83,7 @@ public void setAccountId(String accountId) { * The unique identifier of the balance platform. * * @param balancePlatform The unique identifier of the balance platform. - * @return the current {@code SweepConfigurationNotificationData} instance, allowing for method - * chaining + * @return the current {@code SweepConfigurationNotificationData} instance, allowing for method chaining */ public SweepConfigurationNotificationData balancePlatform(String balancePlatform) { this.balancePlatform = balancePlatform; @@ -86,7 +92,6 @@ public SweepConfigurationNotificationData balancePlatform(String balancePlatform /** * The unique identifier of the balance platform. - * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -109,9 +114,8 @@ public void setBalancePlatform(String balancePlatform) { /** * sweep * - * @param sweep - * @return the current {@code SweepConfigurationNotificationData} instance, allowing for method - * chaining + * @param sweep + * @return the current {@code SweepConfigurationNotificationData} instance, allowing for method chaining */ public SweepConfigurationNotificationData sweep(SweepConfigurationV2 sweep) { this.sweep = sweep; @@ -120,8 +124,7 @@ public SweepConfigurationNotificationData sweep(SweepConfigurationV2 sweep) { /** * Get sweep - * - * @return sweep + * @return sweep */ @JsonProperty(JSON_PROPERTY_SWEEP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,7 +135,7 @@ public SweepConfigurationV2 getSweep() { /** * sweep * - * @param sweep + * @param sweep */ @JsonProperty(JSON_PROPERTY_SWEEP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,7 +143,9 @@ public void setSweep(SweepConfigurationV2 sweep) { this.sweep = sweep; } - /** Return true if this SweepConfigurationNotificationData object is equal to o. */ + /** + * Return true if this SweepConfigurationNotificationData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -149,11 +154,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SweepConfigurationNotificationData sweepConfigurationNotificationData = - (SweepConfigurationNotificationData) o; - return Objects.equals(this.accountId, sweepConfigurationNotificationData.accountId) - && Objects.equals(this.balancePlatform, sweepConfigurationNotificationData.balancePlatform) - && Objects.equals(this.sweep, sweepConfigurationNotificationData.sweep); + SweepConfigurationNotificationData sweepConfigurationNotificationData = (SweepConfigurationNotificationData) o; + return Objects.equals(this.accountId, sweepConfigurationNotificationData.accountId) && + Objects.equals(this.balancePlatform, sweepConfigurationNotificationData.balancePlatform) && + Objects.equals(this.sweep, sweepConfigurationNotificationData.sweep); } @Override @@ -173,7 +177,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,24 +187,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SweepConfigurationNotificationData given an JSON string * * @param jsonString JSON string * @return An instance of SweepConfigurationNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SweepConfigurationNotificationData + * @throws JsonProcessingException if the JSON string is invalid with respect to SweepConfigurationNotificationData */ - public static SweepConfigurationNotificationData fromJson(String jsonString) - throws JsonProcessingException { + public static SweepConfigurationNotificationData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SweepConfigurationNotificationData.class); } - - /** - * Convert an instance of SweepConfigurationNotificationData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SweepConfigurationNotificationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationNotificationRequest.java b/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationNotificationRequest.java index fe3140ab2..cd13eb6f1 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationNotificationRequest.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationNotificationRequest.java @@ -2,33 +2,40 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.configurationwebhooks.SweepConfigurationNotificationData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** SweepConfigurationNotificationRequest */ + +/** + * SweepConfigurationNotificationRequest + */ @JsonPropertyOrder({ SweepConfigurationNotificationRequest.JSON_PROPERTY_DATA, SweepConfigurationNotificationRequest.JSON_PROPERTY_ENVIRONMENT, SweepConfigurationNotificationRequest.JSON_PROPERTY_TIMESTAMP, SweepConfigurationNotificationRequest.JSON_PROPERTY_TYPE }) + public class SweepConfigurationNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private SweepConfigurationNotificationData data; @@ -39,23 +46,23 @@ public class SweepConfigurationNotificationRequest { public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; private OffsetDateTime timestamp; - /** Type of webhook. */ + /** + * Type of webhook. + */ public enum TypeEnum { - BALANCEPLATFORM_BALANCEACCOUNTSWEEP_CREATED( - String.valueOf("balancePlatform.balanceAccountSweep.created")), - BALANCEPLATFORM_BALANCEACCOUNTSWEEP_UPDATED( - String.valueOf("balancePlatform.balanceAccountSweep.updated")), + BALANCEPLATFORM_BALANCEACCOUNTSWEEP_CREATED(String.valueOf("balancePlatform.balanceAccountSweep.created")), - BALANCEPLATFORM_BALANCEACCOUNTSWEEP_DELETED( - String.valueOf("balancePlatform.balanceAccountSweep.deleted")); + BALANCEPLATFORM_BALANCEACCOUNTSWEEP_UPDATED(String.valueOf("balancePlatform.balanceAccountSweep.updated")), + + BALANCEPLATFORM_BALANCEACCOUNTSWEEP_DELETED(String.valueOf("balancePlatform.balanceAccountSweep.deleted")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -76,11 +83,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -88,14 +91,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public SweepConfigurationNotificationRequest() {} + public SweepConfigurationNotificationRequest() { + } /** * data * - * @param data - * @return the current {@code SweepConfigurationNotificationRequest} instance, allowing for method - * chaining + * @param data + * @return the current {@code SweepConfigurationNotificationRequest} instance, allowing for method chaining */ public SweepConfigurationNotificationRequest data(SweepConfigurationNotificationData data) { this.data = data; @@ -104,8 +107,7 @@ public SweepConfigurationNotificationRequest data(SweepConfigurationNotification /** * Get data - * - * @return data + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,7 +118,7 @@ public SweepConfigurationNotificationData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,12 +127,10 @@ public void setData(SweepConfigurationNotificationData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. - * @return the current {@code SweepConfigurationNotificationRequest} instance, allowing for method - * chaining + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @return the current {@code SweepConfigurationNotificationRequest} instance, allowing for method chaining */ public SweepConfigurationNotificationRequest environment(String environment) { this.environment = environment; @@ -138,10 +138,8 @@ public SweepConfigurationNotificationRequest environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * - * @return environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,10 +148,9 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -165,8 +162,7 @@ public void setEnvironment(String environment) { * When the event was queued. * * @param timestamp When the event was queued. - * @return the current {@code SweepConfigurationNotificationRequest} instance, allowing for method - * chaining + * @return the current {@code SweepConfigurationNotificationRequest} instance, allowing for method chaining */ public SweepConfigurationNotificationRequest timestamp(OffsetDateTime timestamp) { this.timestamp = timestamp; @@ -175,7 +171,6 @@ public SweepConfigurationNotificationRequest timestamp(OffsetDateTime timestamp) /** * When the event was queued. - * * @return timestamp When the event was queued. */ @JsonProperty(JSON_PROPERTY_TIMESTAMP) @@ -199,8 +194,7 @@ public void setTimestamp(OffsetDateTime timestamp) { * Type of webhook. * * @param type Type of webhook. - * @return the current {@code SweepConfigurationNotificationRequest} instance, allowing for method - * chaining + * @return the current {@code SweepConfigurationNotificationRequest} instance, allowing for method chaining */ public SweepConfigurationNotificationRequest type(TypeEnum type) { this.type = type; @@ -209,7 +203,6 @@ public SweepConfigurationNotificationRequest type(TypeEnum type) { /** * Type of webhook. - * * @return type Type of webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -229,7 +222,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this SweepConfigurationNotificationRequest object is equal to o. */ + /** + * Return true if this SweepConfigurationNotificationRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -238,12 +233,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SweepConfigurationNotificationRequest sweepConfigurationNotificationRequest = - (SweepConfigurationNotificationRequest) o; - return Objects.equals(this.data, sweepConfigurationNotificationRequest.data) - && Objects.equals(this.environment, sweepConfigurationNotificationRequest.environment) - && Objects.equals(this.timestamp, sweepConfigurationNotificationRequest.timestamp) - && Objects.equals(this.type, sweepConfigurationNotificationRequest.type); + SweepConfigurationNotificationRequest sweepConfigurationNotificationRequest = (SweepConfigurationNotificationRequest) o; + return Objects.equals(this.data, sweepConfigurationNotificationRequest.data) && + Objects.equals(this.environment, sweepConfigurationNotificationRequest.environment) && + Objects.equals(this.timestamp, sweepConfigurationNotificationRequest.timestamp) && + Objects.equals(this.type, sweepConfigurationNotificationRequest.type); } @Override @@ -264,7 +258,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -273,24 +268,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SweepConfigurationNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of SweepConfigurationNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SweepConfigurationNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to SweepConfigurationNotificationRequest */ - public static SweepConfigurationNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static SweepConfigurationNotificationRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SweepConfigurationNotificationRequest.class); } - - /** - * Convert an instance of SweepConfigurationNotificationRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SweepConfigurationNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationV2.java b/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationV2.java index 228e1fac8..6aa743c0f 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationV2.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationV2.java @@ -2,28 +2,36 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.configurationwebhooks.Amount; +import com.adyen.model.configurationwebhooks.SweepCounterparty; +import com.adyen.model.configurationwebhooks.SweepSchedule; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** SweepConfigurationV2 */ +/** + * SweepConfigurationV2 + */ @JsonPropertyOrder({ SweepConfigurationV2.JSON_PROPERTY_CATEGORY, SweepConfigurationV2.JSON_PROPERTY_COUNTERPARTY, @@ -42,16 +50,13 @@ SweepConfigurationV2.JSON_PROPERTY_TRIGGER_AMOUNT, SweepConfigurationV2.JSON_PROPERTY_TYPE }) + public class SweepConfigurationV2 { /** - * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a - * [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - * - **internal**: Transfer to another [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. Required when setting `priorities`. + * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. */ public enum CategoryEnum { + BANK(String.valueOf("bank")), INTERNAL(String.valueOf("internal")), @@ -63,7 +68,7 @@ public enum CategoryEnum { private String value; CategoryEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -84,11 +89,7 @@ public static CategoryEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "CategoryEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(CategoryEnum.values())); + LOG.warning("CategoryEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CategoryEnum.values())); return null; } } @@ -108,8 +109,11 @@ public static CategoryEnum fromValue(String value) { public static final String JSON_PROPERTY_ID = "id"; private String id; - /** Gets or Sets priorities */ + /** + * Gets or Sets priorities + */ public enum PrioritiesEnum { + CROSSBORDER(String.valueOf("crossBorder")), FAST(String.valueOf("fast")), @@ -127,7 +131,7 @@ public enum PrioritiesEnum { private String value; PrioritiesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -148,11 +152,7 @@ public static PrioritiesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PrioritiesEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PrioritiesEnum.values())); + LOG.warning("PrioritiesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PrioritiesEnum.values())); return null; } } @@ -160,8 +160,11 @@ public static PrioritiesEnum fromValue(String value) { public static final String JSON_PROPERTY_PRIORITIES = "priorities"; private List priorities; - /** The reason for disabling the sweep. */ + /** + * The reason for disabling the sweep. + */ public enum ReasonEnum { + ACCOUNTHIERARCHYNOTACTIVE(String.valueOf("accountHierarchyNotActive")), AMOUNTLIMITEXCEEDED(String.valueOf("amountLimitExceeded")), @@ -170,8 +173,7 @@ public enum ReasonEnum { APPROVED(String.valueOf("approved")), - BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE( - String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), + BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE(String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), COUNTERPARTYACCOUNTBLOCKED(String.valueOf("counterpartyAccountBlocked")), @@ -218,7 +220,7 @@ public enum ReasonEnum { private String value; ReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -239,11 +241,7 @@ public static ReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ReasonEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ReasonEnum.values())); + LOG.warning("ReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ReasonEnum.values())); return null; } } @@ -264,11 +262,10 @@ public static ReasonEnum fromValue(String value) { private SweepSchedule schedule; /** - * The status of the sweep. If not provided, by default, this is set to **active**. Possible - * values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on - * the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. */ public enum StatusEnum { + ACTIVE(String.valueOf("active")), INACTIVE(String.valueOf("inactive")); @@ -278,7 +275,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -299,11 +296,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -321,12 +314,10 @@ public static StatusEnum fromValue(String value) { private Amount triggerAmount; /** - * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not - * provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to - * a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source - * merchant account, transfer instrument, or balance account. + * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. */ public enum TypeEnum { + PULL(String.valueOf("pull")), PUSH(String.valueOf("push")); @@ -336,7 +327,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -357,11 +348,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -369,22 +356,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public SweepConfigurationV2() {} + public SweepConfigurationV2() { + } /** - * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a - * [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - * - **internal**: Transfer to another [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. Required when setting `priorities`. + * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. * - * @param category The type of transfer that results from the sweep. Possible values: - **bank**: - * Sweep to a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - * - **internal**: Transfer to another [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. Required when setting `priorities`. + * @param category The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 category(CategoryEnum category) { @@ -393,19 +371,8 @@ public SweepConfigurationV2 category(CategoryEnum category) { } /** - * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a - * [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - * - **internal**: Transfer to another [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. Required when setting `priorities`. - * - * @return category The type of transfer that results from the sweep. Possible values: - **bank**: - * Sweep to a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - * - **internal**: Transfer to another [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. Required when setting `priorities`. + * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. + * @return category The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -414,19 +381,9 @@ public CategoryEnum getCategory() { } /** - * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a - * [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - * - **internal**: Transfer to another [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. Required when setting `priorities`. + * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. * - * @param category The type of transfer that results from the sweep. Possible values: - **bank**: - * Sweep to a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - * - **internal**: Transfer to another [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. Required when setting `priorities`. + * @param category The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -437,7 +394,7 @@ public void setCategory(CategoryEnum category) { /** * counterparty * - * @param counterparty + * @param counterparty * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 counterparty(SweepCounterparty counterparty) { @@ -447,8 +404,7 @@ public SweepConfigurationV2 counterparty(SweepCounterparty counterparty) { /** * Get counterparty - * - * @return counterparty + * @return counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -459,7 +415,7 @@ public SweepCounterparty getCounterparty() { /** * counterparty * - * @param counterparty + * @param counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -468,15 +424,9 @@ public void setCounterparty(SweepCounterparty counterparty) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, - * **EUR**. The sweep currency must match any of the [balances - * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For - * example, **EUR**. The sweep currency must match any of the [balances - * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 currency(String currency) { @@ -485,15 +435,8 @@ public SweepConfigurationV2 currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, - * **EUR**. The sweep currency must match any of the [balances - * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For - * example, **EUR**. The sweep currency must match any of the [balances - * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -502,15 +445,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, - * **EUR**. The sweep currency must match any of the [balances - * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For - * example, **EUR**. The sweep currency must match any of the [balances - * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -519,13 +456,9 @@ public void setCurrency(String currency) { } /** - * The message that will be used in the sweep transfer's description body with a maximum - * length of 140 characters. If the message is longer after replacing placeholders, the message - * will be cut off at 140 characters. + * The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. * - * @param description The message that will be used in the sweep transfer's description body - * with a maximum length of 140 characters. If the message is longer after replacing - * placeholders, the message will be cut off at 140 characters. + * @param description The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 description(String description) { @@ -534,13 +467,8 @@ public SweepConfigurationV2 description(String description) { } /** - * The message that will be used in the sweep transfer's description body with a maximum - * length of 140 characters. If the message is longer after replacing placeholders, the message - * will be cut off at 140 characters. - * - * @return description The message that will be used in the sweep transfer's description body - * with a maximum length of 140 characters. If the message is longer after replacing - * placeholders, the message will be cut off at 140 characters. + * The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. + * @return description The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -549,13 +477,9 @@ public String getDescription() { } /** - * The message that will be used in the sweep transfer's description body with a maximum - * length of 140 characters. If the message is longer after replacing placeholders, the message - * will be cut off at 140 characters. + * The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. * - * @param description The message that will be used in the sweep transfer's description body - * with a maximum length of 140 characters. If the message is longer after replacing - * placeholders, the message will be cut off at 140 characters. + * @param description The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -576,7 +500,6 @@ public SweepConfigurationV2 id(String id) { /** * The unique identifier of the sweep. - * * @return id The unique identifier of the sweep. */ @JsonProperty(JSON_PROPERTY_ID) @@ -597,50 +520,9 @@ public void setId(String id) { } /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent - * and the fees that you have to pay. You can provide multiple priorities, ordered by your - * preference. Adyen will try to pay out using the priorities in the given order. If the first - * priority is not currently supported or enabled for your platform, the system will try the next - * one, and so on. The request will be accepted as long as **at least one** of the provided - * priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if - * you provide `[\"wire\",\"regular\"]`, and `wire` is not - * supported but `regular` is, the request will still be accepted and processed. - * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to - * transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. - * * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the - * United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). Set `category` to **bank**. For more details, see optional priorities - * setup for - * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) - * or - * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). * - * @param priorities The list of priorities for the bank transfer. This sets the speed at which - * the transfer is sent and the fees that you have to pay. You can provide multiple - * priorities, ordered by your preference. Adyen will try to pay out using the priorities in - * the given order. If the first priority is not currently supported or enabled for your - * platform, the system will try the next one, and so on. The request will be accepted as long - * as **at least one** of the provided priorities is valid (i.e., supported by Adyen and - * activated for your platform). For example, if you provide - * `[\"wire\",\"regular\"]`, and `wire` is not - * supported but `regular` is, the request will still be accepted and processed. - * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster - * way to transfer funds, but the fees are higher. Recommended for high-priority, low-value - * transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. - * Recommended for high-priority, high-value transactions. * **instant**: for instant funds - * transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). Set `category` to **bank**. For more details, see optional - * priorities setup for - * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) - * or - * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * @param priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 priorities(List priorities) { @@ -657,50 +539,8 @@ public SweepConfigurationV2 addPrioritiesItem(PrioritiesEnum prioritiesItem) { } /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent - * and the fees that you have to pay. You can provide multiple priorities, ordered by your - * preference. Adyen will try to pay out using the priorities in the given order. If the first - * priority is not currently supported or enabled for your platform, the system will try the next - * one, and so on. The request will be accepted as long as **at least one** of the provided - * priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if - * you provide `[\"wire\",\"regular\"]`, and `wire` is not - * supported but `regular` is, the request will still be accepted and processed. - * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to - * transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. - * * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the - * United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). Set `category` to **bank**. For more details, see optional priorities - * setup for - * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) - * or - * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). - * - * @return priorities The list of priorities for the bank transfer. This sets the speed at which - * the transfer is sent and the fees that you have to pay. You can provide multiple - * priorities, ordered by your preference. Adyen will try to pay out using the priorities in - * the given order. If the first priority is not currently supported or enabled for your - * platform, the system will try the next one, and so on. The request will be accepted as long - * as **at least one** of the provided priorities is valid (i.e., supported by Adyen and - * activated for your platform). For example, if you provide - * `[\"wire\",\"regular\"]`, and `wire` is not - * supported but `regular` is, the request will still be accepted and processed. - * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster - * way to transfer funds, but the fees are higher. Recommended for high-priority, low-value - * transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. - * Recommended for high-priority, high-value transactions. * **instant**: for instant funds - * transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). Set `category` to **bank**. For more details, see optional - * priorities setup for - * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) - * or - * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * @return priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). */ @JsonProperty(JSON_PROPERTY_PRIORITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -709,50 +549,9 @@ public List getPriorities() { } /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent - * and the fees that you have to pay. You can provide multiple priorities, ordered by your - * preference. Adyen will try to pay out using the priorities in the given order. If the first - * priority is not currently supported or enabled for your platform, the system will try the next - * one, and so on. The request will be accepted as long as **at least one** of the provided - * priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if - * you provide `[\"wire\",\"regular\"]`, and `wire` is not - * supported but `regular` is, the request will still be accepted and processed. - * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to - * transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. - * * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the - * United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). Set `category` to **bank**. For more details, see optional priorities - * setup for - * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) - * or - * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). * - * @param priorities The list of priorities for the bank transfer. This sets the speed at which - * the transfer is sent and the fees that you have to pay. You can provide multiple - * priorities, ordered by your preference. Adyen will try to pay out using the priorities in - * the given order. If the first priority is not currently supported or enabled for your - * platform, the system will try the next one, and so on. The request will be accepted as long - * as **at least one** of the provided priorities is valid (i.e., supported by Adyen and - * activated for your platform). For example, if you provide - * `[\"wire\",\"regular\"]`, and `wire` is not - * supported but `regular` is, the request will still be accepted and processed. - * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster - * way to transfer funds, but the fees are higher. Recommended for high-priority, low-value - * transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. - * Recommended for high-priority, high-value transactions. * **instant**: for instant funds - * transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). Set `category` to **bank**. For more details, see optional - * priorities setup for - * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) - * or - * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * @param priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). */ @JsonProperty(JSON_PROPERTY_PRIORITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -773,7 +572,6 @@ public SweepConfigurationV2 reason(ReasonEnum reason) { /** * The reason for disabling the sweep. - * * @return reason The reason for disabling the sweep. */ @JsonProperty(JSON_PROPERTY_REASON) @@ -806,7 +604,6 @@ public SweepConfigurationV2 reasonDetail(String reasonDetail) { /** * The human readable reason for disabling the sweep. - * * @return reasonDetail The human readable reason for disabling the sweep. */ @JsonProperty(JSON_PROPERTY_REASON_DETAIL) @@ -839,7 +636,6 @@ public SweepConfigurationV2 reference(String reference) { /** * Your reference for the sweep configuration. - * * @return reference Your reference for the sweep configuration. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -860,11 +656,9 @@ public void setReference(String reference) { } /** - * The reference sent to or received from the counterparty. Only alphanumeric characters are - * allowed. + * The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. * - * @param referenceForBeneficiary The reference sent to or received from the counterparty. Only - * alphanumeric characters are allowed. + * @param referenceForBeneficiary The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 referenceForBeneficiary(String referenceForBeneficiary) { @@ -873,11 +667,8 @@ public SweepConfigurationV2 referenceForBeneficiary(String referenceForBeneficia } /** - * The reference sent to or received from the counterparty. Only alphanumeric characters are - * allowed. - * - * @return referenceForBeneficiary The reference sent to or received from the counterparty. Only - * alphanumeric characters are allowed. + * The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. + * @return referenceForBeneficiary The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -886,11 +677,9 @@ public String getReferenceForBeneficiary() { } /** - * The reference sent to or received from the counterparty. Only alphanumeric characters are - * allowed. + * The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. * - * @param referenceForBeneficiary The reference sent to or received from the counterparty. Only - * alphanumeric characters are allowed. + * @param referenceForBeneficiary The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -901,7 +690,7 @@ public void setReferenceForBeneficiary(String referenceForBeneficiary) { /** * schedule * - * @param schedule + * @param schedule * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 schedule(SweepSchedule schedule) { @@ -911,8 +700,7 @@ public SweepConfigurationV2 schedule(SweepSchedule schedule) { /** * Get schedule - * - * @return schedule + * @return schedule */ @JsonProperty(JSON_PROPERTY_SCHEDULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -923,7 +711,7 @@ public SweepSchedule getSchedule() { /** * schedule * - * @param schedule + * @param schedule */ @JsonProperty(JSON_PROPERTY_SCHEDULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -932,14 +720,9 @@ public void setSchedule(SweepSchedule schedule) { } /** - * The status of the sweep. If not provided, by default, this is set to **active**. Possible - * values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on - * the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. * - * @param status The status of the sweep. If not provided, by default, this is set to **active**. - * Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed - * out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be - * triggered. + * @param status The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 status(StatusEnum status) { @@ -948,14 +731,8 @@ public SweepConfigurationV2 status(StatusEnum status) { } /** - * The status of the sweep. If not provided, by default, this is set to **active**. Possible - * values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on - * the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. - * - * @return status The status of the sweep. If not provided, by default, this is set to **active**. - * Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed - * out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be - * triggered. + * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * @return status The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -964,14 +741,9 @@ public StatusEnum getStatus() { } /** - * The status of the sweep. If not provided, by default, this is set to **active**. Possible - * values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on - * the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. * - * @param status The status of the sweep. If not provided, by default, this is set to **active**. - * Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed - * out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be - * triggered. + * @param status The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -982,7 +754,7 @@ public void setStatus(StatusEnum status) { /** * sweepAmount * - * @param sweepAmount + * @param sweepAmount * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 sweepAmount(Amount sweepAmount) { @@ -992,8 +764,7 @@ public SweepConfigurationV2 sweepAmount(Amount sweepAmount) { /** * Get sweepAmount - * - * @return sweepAmount + * @return sweepAmount */ @JsonProperty(JSON_PROPERTY_SWEEP_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1004,7 +775,7 @@ public Amount getSweepAmount() { /** * sweepAmount * - * @param sweepAmount + * @param sweepAmount */ @JsonProperty(JSON_PROPERTY_SWEEP_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1015,7 +786,7 @@ public void setSweepAmount(Amount sweepAmount) { /** * targetAmount * - * @param targetAmount + * @param targetAmount * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 targetAmount(Amount targetAmount) { @@ -1025,8 +796,7 @@ public SweepConfigurationV2 targetAmount(Amount targetAmount) { /** * Get targetAmount - * - * @return targetAmount + * @return targetAmount */ @JsonProperty(JSON_PROPERTY_TARGET_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1037,7 +807,7 @@ public Amount getTargetAmount() { /** * targetAmount * - * @param targetAmount + * @param targetAmount */ @JsonProperty(JSON_PROPERTY_TARGET_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1048,7 +818,7 @@ public void setTargetAmount(Amount targetAmount) { /** * triggerAmount * - * @param triggerAmount + * @param triggerAmount * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 triggerAmount(Amount triggerAmount) { @@ -1058,8 +828,7 @@ public SweepConfigurationV2 triggerAmount(Amount triggerAmount) { /** * Get triggerAmount - * - * @return triggerAmount + * @return triggerAmount */ @JsonProperty(JSON_PROPERTY_TRIGGER_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1070,7 +839,7 @@ public Amount getTriggerAmount() { /** * triggerAmount * - * @param triggerAmount + * @param triggerAmount */ @JsonProperty(JSON_PROPERTY_TRIGGER_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1079,15 +848,9 @@ public void setTriggerAmount(Amount triggerAmount) { } /** - * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not - * provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to - * a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source - * merchant account, transfer instrument, or balance account. + * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. * - * @param type The direction of sweep, whether pushing out or pulling in funds to the balance - * account. If not provided, by default, this is set to **push**. Possible values: * **push**: - * _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull - * in funds_ from a source merchant account, transfer instrument, or balance account. + * @param type The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 type(TypeEnum type) { @@ -1096,15 +859,8 @@ public SweepConfigurationV2 type(TypeEnum type) { } /** - * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not - * provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to - * a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source - * merchant account, transfer instrument, or balance account. - * - * @return type The direction of sweep, whether pushing out or pulling in funds to the balance - * account. If not provided, by default, this is set to **push**. Possible values: * **push**: - * _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull - * in funds_ from a source merchant account, transfer instrument, or balance account. + * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. + * @return type The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1113,15 +869,9 @@ public TypeEnum getType() { } /** - * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not - * provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to - * a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source - * merchant account, transfer instrument, or balance account. + * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. * - * @param type The direction of sweep, whether pushing out or pulling in funds to the balance - * account. If not provided, by default, this is set to **push**. Possible values: * **push**: - * _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull - * in funds_ from a source merchant account, transfer instrument, or balance account. + * @param type The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1129,7 +879,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this SweepConfigurationV2 object is equal to o. */ + /** + * Return true if this SweepConfigurationV2 object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -1139,44 +891,27 @@ public boolean equals(Object o) { return false; } SweepConfigurationV2 sweepConfigurationV2 = (SweepConfigurationV2) o; - return Objects.equals(this.category, sweepConfigurationV2.category) - && Objects.equals(this.counterparty, sweepConfigurationV2.counterparty) - && Objects.equals(this.currency, sweepConfigurationV2.currency) - && Objects.equals(this.description, sweepConfigurationV2.description) - && Objects.equals(this.id, sweepConfigurationV2.id) - && Objects.equals(this.priorities, sweepConfigurationV2.priorities) - && Objects.equals(this.reason, sweepConfigurationV2.reason) - && Objects.equals(this.reasonDetail, sweepConfigurationV2.reasonDetail) - && Objects.equals(this.reference, sweepConfigurationV2.reference) - && Objects.equals( - this.referenceForBeneficiary, sweepConfigurationV2.referenceForBeneficiary) - && Objects.equals(this.schedule, sweepConfigurationV2.schedule) - && Objects.equals(this.status, sweepConfigurationV2.status) - && Objects.equals(this.sweepAmount, sweepConfigurationV2.sweepAmount) - && Objects.equals(this.targetAmount, sweepConfigurationV2.targetAmount) - && Objects.equals(this.triggerAmount, sweepConfigurationV2.triggerAmount) - && Objects.equals(this.type, sweepConfigurationV2.type); + return Objects.equals(this.category, sweepConfigurationV2.category) && + Objects.equals(this.counterparty, sweepConfigurationV2.counterparty) && + Objects.equals(this.currency, sweepConfigurationV2.currency) && + Objects.equals(this.description, sweepConfigurationV2.description) && + Objects.equals(this.id, sweepConfigurationV2.id) && + Objects.equals(this.priorities, sweepConfigurationV2.priorities) && + Objects.equals(this.reason, sweepConfigurationV2.reason) && + Objects.equals(this.reasonDetail, sweepConfigurationV2.reasonDetail) && + Objects.equals(this.reference, sweepConfigurationV2.reference) && + Objects.equals(this.referenceForBeneficiary, sweepConfigurationV2.referenceForBeneficiary) && + Objects.equals(this.schedule, sweepConfigurationV2.schedule) && + Objects.equals(this.status, sweepConfigurationV2.status) && + Objects.equals(this.sweepAmount, sweepConfigurationV2.sweepAmount) && + Objects.equals(this.targetAmount, sweepConfigurationV2.targetAmount) && + Objects.equals(this.triggerAmount, sweepConfigurationV2.triggerAmount) && + Objects.equals(this.type, sweepConfigurationV2.type); } @Override public int hashCode() { - return Objects.hash( - category, - counterparty, - currency, - description, - id, - priorities, - reason, - reasonDetail, - reference, - referenceForBeneficiary, - schedule, - status, - sweepAmount, - targetAmount, - triggerAmount, - type); + return Objects.hash(category, counterparty, currency, description, id, priorities, reason, reasonDetail, reference, referenceForBeneficiary, schedule, status, sweepAmount, targetAmount, triggerAmount, type); } @Override @@ -1192,9 +927,7 @@ public String toString() { sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" reasonDetail: ").append(toIndentedString(reasonDetail)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); - sb.append(" referenceForBeneficiary: ") - .append(toIndentedString(referenceForBeneficiary)) - .append("\n"); + sb.append(" referenceForBeneficiary: ").append(toIndentedString(referenceForBeneficiary)).append("\n"); sb.append(" schedule: ").append(toIndentedString(schedule)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" sweepAmount: ").append(toIndentedString(sweepAmount)).append("\n"); @@ -1206,7 +939,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1215,23 +949,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SweepConfigurationV2 given an JSON string * * @param jsonString JSON string * @return An instance of SweepConfigurationV2 - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SweepConfigurationV2 + * @throws JsonProcessingException if the JSON string is invalid with respect to SweepConfigurationV2 */ public static SweepConfigurationV2 fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SweepConfigurationV2.class); } - - /** - * Convert an instance of SweepConfigurationV2 to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SweepConfigurationV2 to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/SweepCounterparty.java b/src/main/java/com/adyen/model/configurationwebhooks/SweepCounterparty.java index 3334d36cb..86c1ffcd0 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/SweepCounterparty.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/SweepCounterparty.java @@ -2,27 +2,37 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** SweepCounterparty */ + +/** + * SweepCounterparty + */ @JsonPropertyOrder({ SweepCounterparty.JSON_PROPERTY_BALANCE_ACCOUNT_ID, SweepCounterparty.JSON_PROPERTY_MERCHANT_ACCOUNT, SweepCounterparty.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID }) + public class SweepCounterparty { public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; @@ -33,18 +43,13 @@ public class SweepCounterparty { public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_ID = "transferInstrumentId"; private String transferInstrumentId; - public SweepCounterparty() {} + public SweepCounterparty() { + } /** - * The unique identifier of the destination or source [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). - * > If you are updating the counterparty from a transfer instrument to a balance account, set - * `transferInstrumentId` to **null**. + * The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). > If you are updating the counterparty from a transfer instrument to a balance account, set `transferInstrumentId` to **null**. * - * @param balanceAccountId The unique identifier of the destination or source [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). - * > If you are updating the counterparty from a transfer instrument to a balance account, - * set `transferInstrumentId` to **null**. + * @param balanceAccountId The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). > If you are updating the counterparty from a transfer instrument to a balance account, set `transferInstrumentId` to **null**. * @return the current {@code SweepCounterparty} instance, allowing for method chaining */ public SweepCounterparty balanceAccountId(String balanceAccountId) { @@ -53,15 +58,8 @@ public SweepCounterparty balanceAccountId(String balanceAccountId) { } /** - * The unique identifier of the destination or source [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). - * > If you are updating the counterparty from a transfer instrument to a balance account, set - * `transferInstrumentId` to **null**. - * - * @return balanceAccountId The unique identifier of the destination or source [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). - * > If you are updating the counterparty from a transfer instrument to a balance account, - * set `transferInstrumentId` to **null**. + * The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). > If you are updating the counterparty from a transfer instrument to a balance account, set `transferInstrumentId` to **null**. + * @return balanceAccountId The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). > If you are updating the counterparty from a transfer instrument to a balance account, set `transferInstrumentId` to **null**. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,15 +68,9 @@ public String getBalanceAccountId() { } /** - * The unique identifier of the destination or source [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). - * > If you are updating the counterparty from a transfer instrument to a balance account, set - * `transferInstrumentId` to **null**. + * The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). > If you are updating the counterparty from a transfer instrument to a balance account, set `transferInstrumentId` to **null**. * - * @param balanceAccountId The unique identifier of the destination or source [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). - * > If you are updating the counterparty from a transfer instrument to a balance account, - * set `transferInstrumentId` to **null**. + * @param balanceAccountId The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). > If you are updating the counterparty from a transfer instrument to a balance account, set `transferInstrumentId` to **null**. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,12 +79,9 @@ public void setBalanceAccountId(String balanceAccountId) { } /** - * The merchant account that will be the source of funds. You can only use this parameter with - * sweeps of `type` **pull** and if you are processing payments with Adyen. + * The merchant account that will be the source of funds. You can only use this parameter with sweeps of `type` **pull** and if you are processing payments with Adyen. * - * @param merchantAccount The merchant account that will be the source of funds. You can only use - * this parameter with sweeps of `type` **pull** and if you are processing payments - * with Adyen. + * @param merchantAccount The merchant account that will be the source of funds. You can only use this parameter with sweeps of `type` **pull** and if you are processing payments with Adyen. * @return the current {@code SweepCounterparty} instance, allowing for method chaining */ public SweepCounterparty merchantAccount(String merchantAccount) { @@ -101,12 +90,8 @@ public SweepCounterparty merchantAccount(String merchantAccount) { } /** - * The merchant account that will be the source of funds. You can only use this parameter with - * sweeps of `type` **pull** and if you are processing payments with Adyen. - * - * @return merchantAccount The merchant account that will be the source of funds. You can only use - * this parameter with sweeps of `type` **pull** and if you are processing payments - * with Adyen. + * The merchant account that will be the source of funds. You can only use this parameter with sweeps of `type` **pull** and if you are processing payments with Adyen. + * @return merchantAccount The merchant account that will be the source of funds. You can only use this parameter with sweeps of `type` **pull** and if you are processing payments with Adyen. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,12 +100,9 @@ public String getMerchantAccount() { } /** - * The merchant account that will be the source of funds. You can only use this parameter with - * sweeps of `type` **pull** and if you are processing payments with Adyen. + * The merchant account that will be the source of funds. You can only use this parameter with sweeps of `type` **pull** and if you are processing payments with Adyen. * - * @param merchantAccount The merchant account that will be the source of funds. You can only use - * this parameter with sweeps of `type` **pull** and if you are processing payments - * with Adyen. + * @param merchantAccount The merchant account that will be the source of funds. You can only use this parameter with sweeps of `type` **pull** and if you are processing payments with Adyen. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,28 +111,9 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The unique identifier of the destination or source [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) - * depending on the sweep `type` . To set up automated top-up sweeps to balance accounts - * in your - * [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or - * [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this - * parameter in combination with a `merchantAccount` and a sweep `type` of - * **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. - * Contact Adyen Support to enable this feature.> If you are updating the counterparty from a - * balance account to a transfer instrument, set `balanceAccountId` to **null**. + * The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type` . To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.> If you are updating the counterparty from a balance account to a transfer instrument, set `balanceAccountId` to **null**. * - * @param transferInstrumentId The unique identifier of the destination or source [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) - * depending on the sweep `type` . To set up automated top-up sweeps to balance - * accounts in your - * [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) - * or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), - * use this parameter in combination with a `merchantAccount` and a sweep - * `type` of **pull**. Top-up sweeps start a direct debit request from the source - * transfer instrument. Contact Adyen Support to enable this feature.> If you are updating - * the counterparty from a balance account to a transfer instrument, set - * `balanceAccountId` to **null**. + * @param transferInstrumentId The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type` . To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.> If you are updating the counterparty from a balance account to a transfer instrument, set `balanceAccountId` to **null**. * @return the current {@code SweepCounterparty} instance, allowing for method chaining */ public SweepCounterparty transferInstrumentId(String transferInstrumentId) { @@ -159,28 +122,8 @@ public SweepCounterparty transferInstrumentId(String transferInstrumentId) { } /** - * The unique identifier of the destination or source [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) - * depending on the sweep `type` . To set up automated top-up sweeps to balance accounts - * in your - * [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or - * [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this - * parameter in combination with a `merchantAccount` and a sweep `type` of - * **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. - * Contact Adyen Support to enable this feature.> If you are updating the counterparty from a - * balance account to a transfer instrument, set `balanceAccountId` to **null**. - * - * @return transferInstrumentId The unique identifier of the destination or source [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) - * depending on the sweep `type` . To set up automated top-up sweeps to balance - * accounts in your - * [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) - * or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), - * use this parameter in combination with a `merchantAccount` and a sweep - * `type` of **pull**. Top-up sweeps start a direct debit request from the source - * transfer instrument. Contact Adyen Support to enable this feature.> If you are updating - * the counterparty from a balance account to a transfer instrument, set - * `balanceAccountId` to **null**. + * The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type` . To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.> If you are updating the counterparty from a balance account to a transfer instrument, set `balanceAccountId` to **null**. + * @return transferInstrumentId The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type` . To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.> If you are updating the counterparty from a balance account to a transfer instrument, set `balanceAccountId` to **null**. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,28 +132,9 @@ public String getTransferInstrumentId() { } /** - * The unique identifier of the destination or source [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) - * depending on the sweep `type` . To set up automated top-up sweeps to balance accounts - * in your - * [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or - * [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this - * parameter in combination with a `merchantAccount` and a sweep `type` of - * **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. - * Contact Adyen Support to enable this feature.> If you are updating the counterparty from a - * balance account to a transfer instrument, set `balanceAccountId` to **null**. + * The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type` . To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.> If you are updating the counterparty from a balance account to a transfer instrument, set `balanceAccountId` to **null**. * - * @param transferInstrumentId The unique identifier of the destination or source [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) - * depending on the sweep `type` . To set up automated top-up sweeps to balance - * accounts in your - * [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) - * or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), - * use this parameter in combination with a `merchantAccount` and a sweep - * `type` of **pull**. Top-up sweeps start a direct debit request from the source - * transfer instrument. Contact Adyen Support to enable this feature.> If you are updating - * the counterparty from a balance account to a transfer instrument, set - * `balanceAccountId` to **null**. + * @param transferInstrumentId The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type` . To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.> If you are updating the counterparty from a balance account to a transfer instrument, set `balanceAccountId` to **null**. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -218,7 +142,9 @@ public void setTransferInstrumentId(String transferInstrumentId) { this.transferInstrumentId = transferInstrumentId; } - /** Return true if this SweepCounterparty object is equal to o. */ + /** + * Return true if this SweepCounterparty object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -228,9 +154,9 @@ public boolean equals(Object o) { return false; } SweepCounterparty sweepCounterparty = (SweepCounterparty) o; - return Objects.equals(this.balanceAccountId, sweepCounterparty.balanceAccountId) - && Objects.equals(this.merchantAccount, sweepCounterparty.merchantAccount) - && Objects.equals(this.transferInstrumentId, sweepCounterparty.transferInstrumentId); + return Objects.equals(this.balanceAccountId, sweepCounterparty.balanceAccountId) && + Objects.equals(this.merchantAccount, sweepCounterparty.merchantAccount) && + Objects.equals(this.transferInstrumentId, sweepCounterparty.transferInstrumentId); } @Override @@ -244,15 +170,14 @@ public String toString() { sb.append("class SweepCounterparty {\n"); sb.append(" balanceAccountId: ").append(toIndentedString(balanceAccountId)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" transferInstrumentId: ") - .append(toIndentedString(transferInstrumentId)) - .append("\n"); + sb.append(" transferInstrumentId: ").append(toIndentedString(transferInstrumentId)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -261,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SweepCounterparty given an JSON string * * @param jsonString JSON string @@ -271,12 +196,11 @@ private String toIndentedString(Object o) { public static SweepCounterparty fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SweepCounterparty.class); } - - /** - * Convert an instance of SweepCounterparty to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SweepCounterparty to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/SweepSchedule.java b/src/main/java/com/adyen/model/configurationwebhooks/SweepSchedule.java index 34cb25fa4..926377094 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/SweepSchedule.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/SweepSchedule.java @@ -2,39 +2,45 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * SweepSchedule + */ +@JsonPropertyOrder({ + SweepSchedule.JSON_PROPERTY_CRON_EXPRESSION, + SweepSchedule.JSON_PROPERTY_TYPE +}) -/** SweepSchedule */ -@JsonPropertyOrder({SweepSchedule.JSON_PROPERTY_CRON_EXPRESSION, SweepSchedule.JSON_PROPERTY_TYPE}) public class SweepSchedule { public static final String JSON_PROPERTY_CRON_EXPRESSION = "cronExpression"; private String cronExpression; /** - * The schedule type. Possible values: * **cron**: push out funds based on a - * `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: - * push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the - * month at 07:00 AM CET. * **balance**: execute the sweep instantly if the - * `triggerAmount` is reached. + * The schedule type. Possible values: * **cron**: push out funds based on a `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the `triggerAmount` is reached. */ public enum TypeEnum { + DAILY(String.valueOf("daily")), WEEKLY(String.valueOf("weekly")), @@ -50,7 +56,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -71,11 +77,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -83,27 +85,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public SweepSchedule() {} + public SweepSchedule() { + } /** - * A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the - * sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * - * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated - * by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the - * month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are - * Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, - * **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. - * Required when `type` is **cron**. + * A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. Required when `type` is **cron**. * - * @param cronExpression A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) - * that is used to set the sweep schedule. The schedule uses the time zone of the balance - * account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The - * expression must have five values separated by a single space in the following order: * - * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or - * **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following - * non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See - * [crontab guru](https://crontab.guru/) for more examples. Required when `type` is - * **cron**. + * @param cronExpression A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. Required when `type` is **cron**. * @return the current {@code SweepSchedule} instance, allowing for method chaining */ public SweepSchedule cronExpression(String cronExpression) { @@ -112,24 +100,8 @@ public SweepSchedule cronExpression(String cronExpression) { } /** - * A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the - * sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * - * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated - * by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the - * month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are - * Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, - * **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. - * Required when `type` is **cron**. - * - * @return cronExpression A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) - * that is used to set the sweep schedule. The schedule uses the time zone of the balance - * account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The - * expression must have five values separated by a single space in the following order: * - * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or - * **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following - * non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See - * [crontab guru](https://crontab.guru/) for more examples. Required when `type` is - * **cron**. + * A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. Required when `type` is **cron**. + * @return cronExpression A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. Required when `type` is **cron**. */ @JsonProperty(JSON_PROPERTY_CRON_EXPRESSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,24 +110,9 @@ public String getCronExpression() { } /** - * A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the - * sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * - * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated - * by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the - * month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are - * Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, - * **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. - * Required when `type` is **cron**. + * A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. Required when `type` is **cron**. * - * @param cronExpression A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) - * that is used to set the sweep schedule. The schedule uses the time zone of the balance - * account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The - * expression must have five values separated by a single space in the following order: * - * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or - * **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following - * non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See - * [crontab guru](https://crontab.guru/) for more examples. Required when `type` is - * **cron**. + * @param cronExpression A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. Required when `type` is **cron**. */ @JsonProperty(JSON_PROPERTY_CRON_EXPRESSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -164,17 +121,9 @@ public void setCronExpression(String cronExpression) { } /** - * The schedule type. Possible values: * **cron**: push out funds based on a - * `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: - * push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the - * month at 07:00 AM CET. * **balance**: execute the sweep instantly if the - * `triggerAmount` is reached. + * The schedule type. Possible values: * **cron**: push out funds based on a `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the `triggerAmount` is reached. * - * @param type The schedule type. Possible values: * **cron**: push out funds based on a - * `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * - * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds - * every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the - * `triggerAmount` is reached. + * @param type The schedule type. Possible values: * **cron**: push out funds based on a `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the `triggerAmount` is reached. * @return the current {@code SweepSchedule} instance, allowing for method chaining */ public SweepSchedule type(TypeEnum type) { @@ -183,17 +132,8 @@ public SweepSchedule type(TypeEnum type) { } /** - * The schedule type. Possible values: * **cron**: push out funds based on a - * `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: - * push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the - * month at 07:00 AM CET. * **balance**: execute the sweep instantly if the - * `triggerAmount` is reached. - * - * @return type The schedule type. Possible values: * **cron**: push out funds based on a - * `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * - * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds - * every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the - * `triggerAmount` is reached. + * The schedule type. Possible values: * **cron**: push out funds based on a `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the `triggerAmount` is reached. + * @return type The schedule type. Possible values: * **cron**: push out funds based on a `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the `triggerAmount` is reached. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -202,17 +142,9 @@ public TypeEnum getType() { } /** - * The schedule type. Possible values: * **cron**: push out funds based on a - * `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: - * push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the - * month at 07:00 AM CET. * **balance**: execute the sweep instantly if the - * `triggerAmount` is reached. + * The schedule type. Possible values: * **cron**: push out funds based on a `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the `triggerAmount` is reached. * - * @param type The schedule type. Possible values: * **cron**: push out funds based on a - * `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * - * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds - * every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the - * `triggerAmount` is reached. + * @param type The schedule type. Possible values: * **cron**: push out funds based on a `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the `triggerAmount` is reached. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -220,7 +152,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this SweepSchedule object is equal to o. */ + /** + * Return true if this SweepSchedule object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -230,8 +164,8 @@ public boolean equals(Object o) { return false; } SweepSchedule sweepSchedule = (SweepSchedule) o; - return Objects.equals(this.cronExpression, sweepSchedule.cronExpression) - && Objects.equals(this.type, sweepSchedule.type); + return Objects.equals(this.cronExpression, sweepSchedule.cronExpression) && + Objects.equals(this.type, sweepSchedule.type); } @Override @@ -250,7 +184,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -259,7 +194,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SweepSchedule given an JSON string * * @param jsonString JSON string @@ -269,12 +204,11 @@ private String toIndentedString(Object o) { public static SweepSchedule fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SweepSchedule.class); } - - /** - * Convert an instance of SweepSchedule to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SweepSchedule to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/TokenAuthentication.java b/src/main/java/com/adyen/model/configurationwebhooks/TokenAuthentication.java index e5ec7a521..9f9e5716c 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/TokenAuthentication.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/TokenAuthentication.java @@ -2,26 +2,36 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TokenAuthentication */ + +/** + * TokenAuthentication + */ @JsonPropertyOrder({ TokenAuthentication.JSON_PROPERTY_METHOD, TokenAuthentication.JSON_PROPERTY_RESULT }) + public class TokenAuthentication { public static final String JSON_PROPERTY_METHOD = "method"; private String method; @@ -29,14 +39,13 @@ public class TokenAuthentication { public static final String JSON_PROPERTY_RESULT = "result"; private String result; - public TokenAuthentication() {} + public TokenAuthentication() { + } /** - * The method used to complete the authentication process. Possible values: **sms_OTP**, - * **email_OTP**. + * The method used to complete the authentication process. Possible values: **sms_OTP**, **email_OTP**. * - * @param method The method used to complete the authentication process. Possible values: - * **sms_OTP**, **email_OTP**. + * @param method The method used to complete the authentication process. Possible values: **sms_OTP**, **email_OTP**. * @return the current {@code TokenAuthentication} instance, allowing for method chaining */ public TokenAuthentication method(String method) { @@ -45,11 +54,8 @@ public TokenAuthentication method(String method) { } /** - * The method used to complete the authentication process. Possible values: **sms_OTP**, - * **email_OTP**. - * - * @return method The method used to complete the authentication process. Possible values: - * **sms_OTP**, **email_OTP**. + * The method used to complete the authentication process. Possible values: **sms_OTP**, **email_OTP**. + * @return method The method used to complete the authentication process. Possible values: **sms_OTP**, **email_OTP**. */ @JsonProperty(JSON_PROPERTY_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,11 +64,9 @@ public String getMethod() { } /** - * The method used to complete the authentication process. Possible values: **sms_OTP**, - * **email_OTP**. + * The method used to complete the authentication process. Possible values: **sms_OTP**, **email_OTP**. * - * @param method The method used to complete the authentication process. Possible values: - * **sms_OTP**, **email_OTP**. + * @param method The method used to complete the authentication process. Possible values: **sms_OTP**, **email_OTP**. */ @JsonProperty(JSON_PROPERTY_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,7 +87,6 @@ public TokenAuthentication result(String result) { /** * The result of the authentication process. - * * @return result The result of the authentication process. */ @JsonProperty(JSON_PROPERTY_RESULT) @@ -103,7 +106,9 @@ public void setResult(String result) { this.result = result; } - /** Return true if this TokenAuthentication object is equal to o. */ + /** + * Return true if this TokenAuthentication object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -113,8 +118,8 @@ public boolean equals(Object o) { return false; } TokenAuthentication tokenAuthentication = (TokenAuthentication) o; - return Objects.equals(this.method, tokenAuthentication.method) - && Objects.equals(this.result, tokenAuthentication.result); + return Objects.equals(this.method, tokenAuthentication.method) && + Objects.equals(this.result, tokenAuthentication.result); } @Override @@ -133,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -142,23 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TokenAuthentication given an JSON string * * @param jsonString JSON string * @return An instance of TokenAuthentication - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TokenAuthentication + * @throws JsonProcessingException if the JSON string is invalid with respect to TokenAuthentication */ public static TokenAuthentication fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TokenAuthentication.class); } - - /** - * Convert an instance of TokenAuthentication to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TokenAuthentication to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/ValidationFacts.java b/src/main/java/com/adyen/model/configurationwebhooks/ValidationFacts.java index 6d65ae64c..b7270916a 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/ValidationFacts.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/ValidationFacts.java @@ -2,42 +2,48 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ValidationFacts */ +/** + * ValidationFacts + */ @JsonPropertyOrder({ ValidationFacts.JSON_PROPERTY_REASONS, ValidationFacts.JSON_PROPERTY_RESULT, ValidationFacts.JSON_PROPERTY_TYPE }) + public class ValidationFacts { public static final String JSON_PROPERTY_REASONS = "reasons"; private List reasons; /** - * The evaluation result of the validation facts. Possible values: **valid**, **invalid**, - * **notValidated**, **notApplicable**. + * The evaluation result of the validation facts. Possible values: **valid**, **invalid**, **notValidated**, **notApplicable**. */ public enum ResultEnum { + INVALID(String.valueOf("invalid")), NOTAPPLICABLE(String.valueOf("notApplicable")), @@ -51,7 +57,7 @@ public enum ResultEnum { private String value; ResultEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -72,11 +78,7 @@ public static ResultEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ResultEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ResultEnum.values())); + LOG.warning("ResultEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResultEnum.values())); return null; } } @@ -87,16 +89,13 @@ public static ResultEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public ValidationFacts() {} + public ValidationFacts() { + } /** - * The reason for the `result` of the validations. This field is only sent for - * `validationFacts.type` **walletValidation**, when `validationFacts.result` - * is **invalid**. + * The reason for the `result` of the validations. This field is only sent for `validationFacts.type` **walletValidation**, when `validationFacts.result` is **invalid**. * - * @param reasons The reason for the `result` of the validations. This field is only - * sent for `validationFacts.type` **walletValidation**, when - * `validationFacts.result` is **invalid**. + * @param reasons The reason for the `result` of the validations. This field is only sent for `validationFacts.type` **walletValidation**, when `validationFacts.result` is **invalid**. * @return the current {@code ValidationFacts} instance, allowing for method chaining */ public ValidationFacts reasons(List reasons) { @@ -113,13 +112,8 @@ public ValidationFacts addReasonsItem(String reasonsItem) { } /** - * The reason for the `result` of the validations. This field is only sent for - * `validationFacts.type` **walletValidation**, when `validationFacts.result` - * is **invalid**. - * - * @return reasons The reason for the `result` of the validations. This field is only - * sent for `validationFacts.type` **walletValidation**, when - * `validationFacts.result` is **invalid**. + * The reason for the `result` of the validations. This field is only sent for `validationFacts.type` **walletValidation**, when `validationFacts.result` is **invalid**. + * @return reasons The reason for the `result` of the validations. This field is only sent for `validationFacts.type` **walletValidation**, when `validationFacts.result` is **invalid**. */ @JsonProperty(JSON_PROPERTY_REASONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,13 +122,9 @@ public List getReasons() { } /** - * The reason for the `result` of the validations. This field is only sent for - * `validationFacts.type` **walletValidation**, when `validationFacts.result` - * is **invalid**. + * The reason for the `result` of the validations. This field is only sent for `validationFacts.type` **walletValidation**, when `validationFacts.result` is **invalid**. * - * @param reasons The reason for the `result` of the validations. This field is only - * sent for `validationFacts.type` **walletValidation**, when - * `validationFacts.result` is **invalid**. + * @param reasons The reason for the `result` of the validations. This field is only sent for `validationFacts.type` **walletValidation**, when `validationFacts.result` is **invalid**. */ @JsonProperty(JSON_PROPERTY_REASONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,11 +133,9 @@ public void setReasons(List reasons) { } /** - * The evaluation result of the validation facts. Possible values: **valid**, **invalid**, - * **notValidated**, **notApplicable**. + * The evaluation result of the validation facts. Possible values: **valid**, **invalid**, **notValidated**, **notApplicable**. * - * @param result The evaluation result of the validation facts. Possible values: **valid**, - * **invalid**, **notValidated**, **notApplicable**. + * @param result The evaluation result of the validation facts. Possible values: **valid**, **invalid**, **notValidated**, **notApplicable**. * @return the current {@code ValidationFacts} instance, allowing for method chaining */ public ValidationFacts result(ResultEnum result) { @@ -156,11 +144,8 @@ public ValidationFacts result(ResultEnum result) { } /** - * The evaluation result of the validation facts. Possible values: **valid**, **invalid**, - * **notValidated**, **notApplicable**. - * - * @return result The evaluation result of the validation facts. Possible values: **valid**, - * **invalid**, **notValidated**, **notApplicable**. + * The evaluation result of the validation facts. Possible values: **valid**, **invalid**, **notValidated**, **notApplicable**. + * @return result The evaluation result of the validation facts. Possible values: **valid**, **invalid**, **notValidated**, **notApplicable**. */ @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,11 +154,9 @@ public ResultEnum getResult() { } /** - * The evaluation result of the validation facts. Possible values: **valid**, **invalid**, - * **notValidated**, **notApplicable**. + * The evaluation result of the validation facts. Possible values: **valid**, **invalid**, **notValidated**, **notApplicable**. * - * @param result The evaluation result of the validation facts. Possible values: **valid**, - * **invalid**, **notValidated**, **notApplicable**. + * @param result The evaluation result of the validation facts. Possible values: **valid**, **invalid**, **notValidated**, **notApplicable**. */ @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,7 +177,6 @@ public ValidationFacts type(String type) { /** * The type of the validation fact. - * * @return type The type of the validation fact. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -214,7 +196,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this ValidationFacts object is equal to o. */ + /** + * Return true if this ValidationFacts object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -224,9 +208,9 @@ public boolean equals(Object o) { return false; } ValidationFacts validationFacts = (ValidationFacts) o; - return Objects.equals(this.reasons, validationFacts.reasons) - && Objects.equals(this.result, validationFacts.result) - && Objects.equals(this.type, validationFacts.type); + return Objects.equals(this.reasons, validationFacts.reasons) && + Objects.equals(this.result, validationFacts.result) && + Objects.equals(this.type, validationFacts.type); } @Override @@ -246,7 +230,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -255,7 +240,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ValidationFacts given an JSON string * * @param jsonString JSON string @@ -265,12 +250,11 @@ private String toIndentedString(Object o) { public static ValidationFacts fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ValidationFacts.class); } - - /** - * Convert an instance of ValidationFacts to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ValidationFacts to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/VerificationDeadline.java b/src/main/java/com/adyen/model/configurationwebhooks/VerificationDeadline.java index 1c116b82e..fa197d7fd 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/VerificationDeadline.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/VerificationDeadline.java @@ -2,58 +2,61 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** VerificationDeadline */ + +/** + * VerificationDeadline + */ @JsonPropertyOrder({ VerificationDeadline.JSON_PROPERTY_CAPABILITIES, VerificationDeadline.JSON_PROPERTY_ENTITY_IDS, VerificationDeadline.JSON_PROPERTY_EXPIRES_AT }) + public class VerificationDeadline { - /** Gets or Sets capabilities */ + /** + * Gets or Sets capabilities + */ public enum CapabilitiesEnum { + ACCEPTEXTERNALFUNDING(String.valueOf("acceptExternalFunding")), ACCEPTPSPFUNDING(String.valueOf("acceptPspFunding")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES( - String.valueOf("acceptTransactionInRestrictedCountries")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES(String.valueOf("acceptTransactionInRestrictedCountries")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER( - String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES( - String.valueOf("acceptTransactionInRestrictedIndustries")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES(String.valueOf("acceptTransactionInRestrictedIndustries")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL( - String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER( - String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), ACQUIRING(String.valueOf("acquiring")), @@ -65,11 +68,9 @@ public enum CapabilitiesEnum { ATMWITHDRAWALINRESTRICTEDCOUNTRIES(String.valueOf("atmWithdrawalInRestrictedCountries")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER( - String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), AUTHORISEDPAYMENTINSTRUMENTUSER(String.valueOf("authorisedPaymentInstrumentUser")), @@ -125,15 +126,13 @@ public enum CapabilitiesEnum { USECARDINRESTRICTEDCOUNTRIES(String.valueOf("useCardInRestrictedCountries")), - USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("useCardInRestrictedCountriesCommercial")), + USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedCountriesCommercial")), USECARDINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("useCardInRestrictedCountriesConsumer")), USECARDINRESTRICTEDINDUSTRIES(String.valueOf("useCardInRestrictedIndustries")), - USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL( - String.valueOf("useCardInRestrictedIndustriesCommercial")), + USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedIndustriesCommercial")), USECARDINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("useCardInRestrictedIndustriesConsumer")), @@ -149,18 +148,16 @@ public enum CapabilitiesEnum { WITHDRAWFROMATMINRESTRICTEDCOUNTRIES(String.valueOf("withdrawFromAtmInRestrictedCountries")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER( - String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); private static final Logger LOG = Logger.getLogger(CapabilitiesEnum.class.getName()); private String value; CapabilitiesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -181,11 +178,7 @@ public static CapabilitiesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "CapabilitiesEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(CapabilitiesEnum.values())); + LOG.warning("CapabilitiesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CapabilitiesEnum.values())); return null; } } @@ -199,7 +192,8 @@ public static CapabilitiesEnum fromValue(String value) { public static final String JSON_PROPERTY_EXPIRES_AT = "expiresAt"; private OffsetDateTime expiresAt; - public VerificationDeadline() {} + public VerificationDeadline() { + } /** * The names of the capabilities to be disallowed. @@ -222,7 +216,6 @@ public VerificationDeadline addCapabilitiesItem(CapabilitiesEnum capabilitiesIte /** * The names of the capabilities to be disallowed. - * * @return capabilities The names of the capabilities to be disallowed. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @@ -263,7 +256,6 @@ public VerificationDeadline addEntityIdsItem(String entityIdsItem) { /** * The unique identifiers of the bank account(s) that the deadline applies to - * * @return entityIds The unique identifiers of the bank account(s) that the deadline applies to */ @JsonProperty(JSON_PROPERTY_ENTITY_IDS) @@ -296,7 +288,6 @@ public VerificationDeadline expiresAt(OffsetDateTime expiresAt) { /** * The date that verification is due by before capabilities are disallowed. - * * @return expiresAt The date that verification is due by before capabilities are disallowed. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @@ -316,7 +307,9 @@ public void setExpiresAt(OffsetDateTime expiresAt) { this.expiresAt = expiresAt; } - /** Return true if this VerificationDeadline object is equal to o. */ + /** + * Return true if this VerificationDeadline object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -326,9 +319,9 @@ public boolean equals(Object o) { return false; } VerificationDeadline verificationDeadline = (VerificationDeadline) o; - return Objects.equals(this.capabilities, verificationDeadline.capabilities) - && Objects.equals(this.entityIds, verificationDeadline.entityIds) - && Objects.equals(this.expiresAt, verificationDeadline.expiresAt); + return Objects.equals(this.capabilities, verificationDeadline.capabilities) && + Objects.equals(this.entityIds, verificationDeadline.entityIds) && + Objects.equals(this.expiresAt, verificationDeadline.expiresAt); } @Override @@ -348,7 +341,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -357,23 +351,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of VerificationDeadline given an JSON string * * @param jsonString JSON string * @return An instance of VerificationDeadline - * @throws JsonProcessingException if the JSON string is invalid with respect to - * VerificationDeadline + * @throws JsonProcessingException if the JSON string is invalid with respect to VerificationDeadline */ public static VerificationDeadline fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, VerificationDeadline.class); } - - /** - * Convert an instance of VerificationDeadline to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of VerificationDeadline to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/VerificationError.java b/src/main/java/com/adyen/model/configurationwebhooks/VerificationError.java index d216b880d..4f2666c51 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/VerificationError.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/VerificationError.java @@ -2,28 +2,35 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.configurationwebhooks.RemediatingAction; +import com.adyen.model.configurationwebhooks.VerificationErrorRecursive; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** VerificationError */ +/** + * VerificationError + */ @JsonPropertyOrder({ VerificationError.JSON_PROPERTY_CAPABILITIES, VerificationError.JSON_PROPERTY_CODE, @@ -32,30 +39,28 @@ VerificationError.JSON_PROPERTY_SUB_ERRORS, VerificationError.JSON_PROPERTY_TYPE }) + public class VerificationError { - /** Gets or Sets capabilities */ + /** + * Gets or Sets capabilities + */ public enum CapabilitiesEnum { + ACCEPTEXTERNALFUNDING(String.valueOf("acceptExternalFunding")), ACCEPTPSPFUNDING(String.valueOf("acceptPspFunding")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES( - String.valueOf("acceptTransactionInRestrictedCountries")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES(String.valueOf("acceptTransactionInRestrictedCountries")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER( - String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES( - String.valueOf("acceptTransactionInRestrictedIndustries")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES(String.valueOf("acceptTransactionInRestrictedIndustries")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL( - String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER( - String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), ACQUIRING(String.valueOf("acquiring")), @@ -67,11 +72,9 @@ public enum CapabilitiesEnum { ATMWITHDRAWALINRESTRICTEDCOUNTRIES(String.valueOf("atmWithdrawalInRestrictedCountries")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER( - String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), AUTHORISEDPAYMENTINSTRUMENTUSER(String.valueOf("authorisedPaymentInstrumentUser")), @@ -127,15 +130,13 @@ public enum CapabilitiesEnum { USECARDINRESTRICTEDCOUNTRIES(String.valueOf("useCardInRestrictedCountries")), - USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("useCardInRestrictedCountriesCommercial")), + USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedCountriesCommercial")), USECARDINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("useCardInRestrictedCountriesConsumer")), USECARDINRESTRICTEDINDUSTRIES(String.valueOf("useCardInRestrictedIndustries")), - USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL( - String.valueOf("useCardInRestrictedIndustriesCommercial")), + USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedIndustriesCommercial")), USECARDINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("useCardInRestrictedIndustriesConsumer")), @@ -151,18 +152,16 @@ public enum CapabilitiesEnum { WITHDRAWFROMATMINRESTRICTEDCOUNTRIES(String.valueOf("withdrawFromAtmInRestrictedCountries")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER( - String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); private static final Logger LOG = Logger.getLogger(CapabilitiesEnum.class.getName()); private String value; CapabilitiesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -183,11 +182,7 @@ public static CapabilitiesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "CapabilitiesEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(CapabilitiesEnum.values())); + LOG.warning("CapabilitiesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CapabilitiesEnum.values())); return null; } } @@ -208,9 +203,10 @@ public static CapabilitiesEnum fromValue(String value) { private List subErrors; /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** */ public enum TypeEnum { + DATAMISSING(String.valueOf("dataMissing")), INVALIDINPUT(String.valueOf("invalidInput")), @@ -222,7 +218,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -243,11 +239,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -255,7 +247,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public VerificationError() {} + public VerificationError() { + } /** * Contains the capabilities that the verification error applies to. @@ -278,7 +271,6 @@ public VerificationError addCapabilitiesItem(CapabilitiesEnum capabilitiesItem) /** * Contains the capabilities that the verification error applies to. - * * @return capabilities Contains the capabilities that the verification error applies to. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @@ -311,7 +303,6 @@ public VerificationError code(String code) { /** * The verification error code. - * * @return code The verification error code. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -344,7 +335,6 @@ public VerificationError message(String message) { /** * A description of the error. - * * @return message A description of the error. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -367,8 +357,7 @@ public void setMessage(String message) { /** * Contains the actions that you can take to resolve the verification error. * - * @param remediatingActions Contains the actions that you can take to resolve the verification - * error. + * @param remediatingActions Contains the actions that you can take to resolve the verification error. * @return the current {@code VerificationError} instance, allowing for method chaining */ public VerificationError remediatingActions(List remediatingActions) { @@ -386,9 +375,7 @@ public VerificationError addRemediatingActionsItem(RemediatingAction remediating /** * Contains the actions that you can take to resolve the verification error. - * - * @return remediatingActions Contains the actions that you can take to resolve the verification - * error. + * @return remediatingActions Contains the actions that you can take to resolve the verification error. */ @JsonProperty(JSON_PROPERTY_REMEDIATING_ACTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -399,8 +386,7 @@ public List getRemediatingActions() { /** * Contains the actions that you can take to resolve the verification error. * - * @param remediatingActions Contains the actions that you can take to resolve the verification - * error. + * @param remediatingActions Contains the actions that you can take to resolve the verification error. */ @JsonProperty(JSON_PROPERTY_REMEDIATING_ACTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -429,7 +415,6 @@ public VerificationError addSubErrorsItem(VerificationErrorRecursive subErrorsIt /** * Contains more granular information about the verification error. - * * @return subErrors Contains more granular information about the verification error. */ @JsonProperty(JSON_PROPERTY_SUB_ERRORS) @@ -450,10 +435,9 @@ public void setSubErrors(List subErrors) { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * - * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * - * **pendingStatus** + * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * @return the current {@code VerificationError} instance, allowing for method chaining */ public VerificationError type(TypeEnum type) { @@ -462,10 +446,8 @@ public VerificationError type(TypeEnum type) { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** - * - * @return type The type of error. Possible values: * **invalidInput** * **dataMissing** * - * **pendingStatus** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * @return type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -474,10 +456,9 @@ public TypeEnum getType() { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * - * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * - * **pendingStatus** + * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -485,7 +466,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this VerificationError object is equal to o. */ + /** + * Return true if this VerificationError object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -495,12 +478,12 @@ public boolean equals(Object o) { return false; } VerificationError verificationError = (VerificationError) o; - return Objects.equals(this.capabilities, verificationError.capabilities) - && Objects.equals(this.code, verificationError.code) - && Objects.equals(this.message, verificationError.message) - && Objects.equals(this.remediatingActions, verificationError.remediatingActions) - && Objects.equals(this.subErrors, verificationError.subErrors) - && Objects.equals(this.type, verificationError.type); + return Objects.equals(this.capabilities, verificationError.capabilities) && + Objects.equals(this.code, verificationError.code) && + Objects.equals(this.message, verificationError.message) && + Objects.equals(this.remediatingActions, verificationError.remediatingActions) && + Objects.equals(this.subErrors, verificationError.subErrors) && + Objects.equals(this.type, verificationError.type); } @Override @@ -523,7 +506,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -532,7 +516,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of VerificationError given an JSON string * * @param jsonString JSON string @@ -542,12 +526,11 @@ private String toIndentedString(Object o) { public static VerificationError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, VerificationError.class); } - - /** - * Convert an instance of VerificationError to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of VerificationError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/VerificationErrorRecursive.java b/src/main/java/com/adyen/model/configurationwebhooks/VerificationErrorRecursive.java index 8dc0fe6e7..5c5089e59 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/VerificationErrorRecursive.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/VerificationErrorRecursive.java @@ -2,29 +2,34 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.configurationwebhooks.RemediatingAction; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** VerificationErrorRecursive */ + +/** + * VerificationErrorRecursive + */ @JsonPropertyOrder({ VerificationErrorRecursive.JSON_PROPERTY_CAPABILITIES, VerificationErrorRecursive.JSON_PROPERTY_CODE, @@ -33,30 +38,28 @@ VerificationErrorRecursive.JSON_PROPERTY_REMEDIATING_ACTIONS }) @JsonTypeName("VerificationError-recursive") + public class VerificationErrorRecursive { - /** Gets or Sets capabilities */ + /** + * Gets or Sets capabilities + */ public enum CapabilitiesEnum { + ACCEPTEXTERNALFUNDING(String.valueOf("acceptExternalFunding")), ACCEPTPSPFUNDING(String.valueOf("acceptPspFunding")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES( - String.valueOf("acceptTransactionInRestrictedCountries")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES(String.valueOf("acceptTransactionInRestrictedCountries")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER( - String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES( - String.valueOf("acceptTransactionInRestrictedIndustries")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES(String.valueOf("acceptTransactionInRestrictedIndustries")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL( - String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER( - String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), ACQUIRING(String.valueOf("acquiring")), @@ -68,11 +71,9 @@ public enum CapabilitiesEnum { ATMWITHDRAWALINRESTRICTEDCOUNTRIES(String.valueOf("atmWithdrawalInRestrictedCountries")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER( - String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), AUTHORISEDPAYMENTINSTRUMENTUSER(String.valueOf("authorisedPaymentInstrumentUser")), @@ -128,15 +129,13 @@ public enum CapabilitiesEnum { USECARDINRESTRICTEDCOUNTRIES(String.valueOf("useCardInRestrictedCountries")), - USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("useCardInRestrictedCountriesCommercial")), + USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedCountriesCommercial")), USECARDINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("useCardInRestrictedCountriesConsumer")), USECARDINRESTRICTEDINDUSTRIES(String.valueOf("useCardInRestrictedIndustries")), - USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL( - String.valueOf("useCardInRestrictedIndustriesCommercial")), + USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedIndustriesCommercial")), USECARDINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("useCardInRestrictedIndustriesConsumer")), @@ -152,18 +151,16 @@ public enum CapabilitiesEnum { WITHDRAWFROMATMINRESTRICTEDCOUNTRIES(String.valueOf("withdrawFromAtmInRestrictedCountries")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER( - String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); private static final Logger LOG = Logger.getLogger(CapabilitiesEnum.class.getName()); private String value; CapabilitiesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -184,11 +181,7 @@ public static CapabilitiesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "CapabilitiesEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(CapabilitiesEnum.values())); + LOG.warning("CapabilitiesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CapabilitiesEnum.values())); return null; } } @@ -203,9 +196,10 @@ public static CapabilitiesEnum fromValue(String value) { private String message; /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** */ public enum TypeEnum { + DATAMISSING(String.valueOf("dataMissing")), INVALIDINPUT(String.valueOf("invalidInput")), @@ -217,7 +211,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -238,11 +232,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -253,7 +243,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_REMEDIATING_ACTIONS = "remediatingActions"; private List remediatingActions; - public VerificationErrorRecursive() {} + public VerificationErrorRecursive() { + } /** * Contains the capabilities that the verification error applies to. @@ -276,7 +267,6 @@ public VerificationErrorRecursive addCapabilitiesItem(CapabilitiesEnum capabilit /** * Contains the capabilities that the verification error applies to. - * * @return capabilities Contains the capabilities that the verification error applies to. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @@ -309,7 +299,6 @@ public VerificationErrorRecursive code(String code) { /** * The verification error code. - * * @return code The verification error code. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -342,7 +331,6 @@ public VerificationErrorRecursive message(String message) { /** * A description of the error. - * * @return message A description of the error. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -363,10 +351,9 @@ public void setMessage(String message) { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * - * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * - * **pendingStatus** + * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * @return the current {@code VerificationErrorRecursive} instance, allowing for method chaining */ public VerificationErrorRecursive type(TypeEnum type) { @@ -375,10 +362,8 @@ public VerificationErrorRecursive type(TypeEnum type) { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** - * - * @return type The type of error. Possible values: * **invalidInput** * **dataMissing** * - * **pendingStatus** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * @return type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -387,10 +372,9 @@ public TypeEnum getType() { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * - * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * - * **pendingStatus** + * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -401,8 +385,7 @@ public void setType(TypeEnum type) { /** * Contains the actions that you can take to resolve the verification error. * - * @param remediatingActions Contains the actions that you can take to resolve the verification - * error. + * @param remediatingActions Contains the actions that you can take to resolve the verification error. * @return the current {@code VerificationErrorRecursive} instance, allowing for method chaining */ public VerificationErrorRecursive remediatingActions(List remediatingActions) { @@ -410,8 +393,7 @@ public VerificationErrorRecursive remediatingActions(List rem return this; } - public VerificationErrorRecursive addRemediatingActionsItem( - RemediatingAction remediatingActionsItem) { + public VerificationErrorRecursive addRemediatingActionsItem(RemediatingAction remediatingActionsItem) { if (this.remediatingActions == null) { this.remediatingActions = new ArrayList<>(); } @@ -421,9 +403,7 @@ public VerificationErrorRecursive addRemediatingActionsItem( /** * Contains the actions that you can take to resolve the verification error. - * - * @return remediatingActions Contains the actions that you can take to resolve the verification - * error. + * @return remediatingActions Contains the actions that you can take to resolve the verification error. */ @JsonProperty(JSON_PROPERTY_REMEDIATING_ACTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -434,8 +414,7 @@ public List getRemediatingActions() { /** * Contains the actions that you can take to resolve the verification error. * - * @param remediatingActions Contains the actions that you can take to resolve the verification - * error. + * @param remediatingActions Contains the actions that you can take to resolve the verification error. */ @JsonProperty(JSON_PROPERTY_REMEDIATING_ACTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -443,7 +422,9 @@ public void setRemediatingActions(List remediatingActions) { this.remediatingActions = remediatingActions; } - /** Return true if this VerificationError-recursive object is equal to o. */ + /** + * Return true if this VerificationError-recursive object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -453,11 +434,11 @@ public boolean equals(Object o) { return false; } VerificationErrorRecursive verificationErrorRecursive = (VerificationErrorRecursive) o; - return Objects.equals(this.capabilities, verificationErrorRecursive.capabilities) - && Objects.equals(this.code, verificationErrorRecursive.code) - && Objects.equals(this.message, verificationErrorRecursive.message) - && Objects.equals(this.type, verificationErrorRecursive.type) - && Objects.equals(this.remediatingActions, verificationErrorRecursive.remediatingActions); + return Objects.equals(this.capabilities, verificationErrorRecursive.capabilities) && + Objects.equals(this.code, verificationErrorRecursive.code) && + Objects.equals(this.message, verificationErrorRecursive.message) && + Objects.equals(this.type, verificationErrorRecursive.type) && + Objects.equals(this.remediatingActions, verificationErrorRecursive.remediatingActions); } @Override @@ -479,7 +460,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -488,24 +470,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of VerificationErrorRecursive given an JSON string * * @param jsonString JSON string * @return An instance of VerificationErrorRecursive - * @throws JsonProcessingException if the JSON string is invalid with respect to - * VerificationErrorRecursive + * @throws JsonProcessingException if the JSON string is invalid with respect to VerificationErrorRecursive */ - public static VerificationErrorRecursive fromJson(String jsonString) - throws JsonProcessingException { + public static VerificationErrorRecursive fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, VerificationErrorRecursive.class); } - - /** - * Convert an instance of VerificationErrorRecursive to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of VerificationErrorRecursive to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Wallet.java b/src/main/java/com/adyen/model/configurationwebhooks/Wallet.java index 28097d897..f72d766e3 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Wallet.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Wallet.java @@ -2,28 +2,34 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.configurationwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.configurationwebhooks.Device; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** Wallet */ +/** + * Wallet + */ @JsonPropertyOrder({ Wallet.JSON_PROPERTY_ACCOUNT_SCORE, Wallet.JSON_PROPERTY_DEVICE, @@ -32,6 +38,7 @@ Wallet.JSON_PROPERTY_RECOMMENDATION_REASONS, Wallet.JSON_PROPERTY_TYPE }) + public class Wallet { public static final String JSON_PROPERTY_ACCOUNT_SCORE = "accountScore"; private String accountScore; @@ -45,8 +52,11 @@ public class Wallet { public static final String JSON_PROPERTY_PROVISIONING_METHOD = "provisioningMethod"; private String provisioningMethod; - /** Gets or Sets recommendationReasons */ + /** + * Gets or Sets recommendationReasons + */ public enum RecommendationReasonsEnum { + ACCOUNTCARDTOONEW(String.valueOf("accountCardTooNew")), ACCOUNTHIGHRISK(String.valueOf("accountHighRisk")), @@ -57,31 +67,21 @@ public enum RecommendationReasonsEnum { ACCOUNTTOONEWSINCELAUNCH(String.valueOf("accountTooNewSinceLaunch")), - CARDHOLDERPANASSOCIATEDTOACCOUNTWITHINTHRESHOLDDAYS( - String.valueOf("cardholderPanAssociatedToAccountWithinThresholdDays")), + CARDHOLDERPANASSOCIATEDTOACCOUNTWITHINTHRESHOLDDAYS(String.valueOf("cardholderPanAssociatedToAccountWithinThresholdDays")), - CHANGESMADETOACCOUNTDATAWITHINTHRESHOLDDAYS( - String.valueOf("changesMadeToAccountDataWithinThresholdDays")), + CHANGESMADETOACCOUNTDATAWITHINTHRESHOLDDAYS(String.valueOf("changesMadeToAccountDataWithinThresholdDays")), - DEVICEPROVISIONINGLOCATIONOUTSIDEOFCARDHOLDERSWALLETACCOUNTHOMECOUNTRY( - String.valueOf("deviceProvisioningLocationOutsideOfCardholdersWalletAccountHomeCountry")), + DEVICEPROVISIONINGLOCATIONOUTSIDEOFCARDHOLDERSWALLETACCOUNTHOMECOUNTRY(String.valueOf("deviceProvisioningLocationOutsideOfCardholdersWalletAccountHomeCountry")), DEVICERECENTLYLOST(String.valueOf("deviceRecentlyLost")), - ENCRYPTEDPAYMENTINSTRUMENTDATAISBEINGPUSHEDBYTHEISSUERTOTHESAMEDEVICETHATISSUERAPPLICATIONAUTHENTICATEDBUTWITHSUCCESSFULUPFRONTAUTHENTICATION( - String.valueOf( - "encryptedPaymentInstrumentDataIsBeingPushedByTheIssuerToTheSameDeviceThatIssuerApplicationAuthenticatedButWithSuccessfulUpfrontAuthentication")), + ENCRYPTEDPAYMENTINSTRUMENTDATAISBEINGPUSHEDBYTHEISSUERTOTHESAMEDEVICETHATISSUERAPPLICATIONAUTHENTICATEDBUTWITHSUCCESSFULUPFRONTAUTHENTICATION(String.valueOf("encryptedPaymentInstrumentDataIsBeingPushedByTheIssuerToTheSameDeviceThatIssuerApplicationAuthenticatedButWithSuccessfulUpfrontAuthentication")), - ENCRYPTEDPAYMENTINSTRUMENTDATAISBEINGPUSHEDBYTHEISSUERTOTHESAMEDEVICETHATISSUERAPPLICATIONAUTHENTICATEDBUTWITHOUTANYUPFRONTAUTHENTICATION( - String.valueOf( - "encryptedPaymentInstrumentDataIsBeingPushedByTheIssuerToTheSameDeviceThatIssuerApplicationAuthenticatedButWithoutAnyUpfrontAuthentication")), + ENCRYPTEDPAYMENTINSTRUMENTDATAISBEINGPUSHEDBYTHEISSUERTOTHESAMEDEVICETHATISSUERAPPLICATIONAUTHENTICATEDBUTWITHOUTANYUPFRONTAUTHENTICATION(String.valueOf("encryptedPaymentInstrumentDataIsBeingPushedByTheIssuerToTheSameDeviceThatIssuerApplicationAuthenticatedButWithoutAnyUpfrontAuthentication")), - ENCRYPTEDPAYMENTINSTRUMENTDATAISPUSHEDTOADIFFERENTDEVICETHANTHEONETHATISSUERAPPLICATIONAUTHENTICATED( - String.valueOf( - "encryptedPaymentInstrumentDataIsPushedToADifferentDeviceThanTheOneThatIssuerApplicationAuthenticated")), + ENCRYPTEDPAYMENTINSTRUMENTDATAISPUSHEDTOADIFFERENTDEVICETHANTHEONETHATISSUERAPPLICATIONAUTHENTICATED(String.valueOf("encryptedPaymentInstrumentDataIsPushedToADifferentDeviceThanTheOneThatIssuerApplicationAuthenticated")), - ENCRYPTEDPAYMENTINSTRUMENTDATAISPUSHEDTOADIFFERENTUSERTHANTHECARDHOLDER( - String.valueOf("encryptedPaymentInstrumentDataIsPushedToADifferentUserThanTheCardHolder")), + ENCRYPTEDPAYMENTINSTRUMENTDATAISPUSHEDTOADIFFERENTUSERTHANTHECARDHOLDER(String.valueOf("encryptedPaymentInstrumentDataIsPushedToADifferentUserThanTheCardHolder")), HASSUSPENDEDTOKENS(String.valueOf("hasSuspendedTokens")), @@ -89,8 +89,7 @@ public enum RecommendationReasonsEnum { ISSUERDEFERREDIDVDECISION(String.valueOf("issuerDeferredIDVDecision")), - ISSUERENCRYPTEDPAYMENTINSTRUMENTDATAEXPIRED( - String.valueOf("issuerEncryptedPaymentInstrumentDataExpired")), + ISSUERENCRYPTEDPAYMENTINSTRUMENTDATAEXPIRED(String.valueOf("issuerEncryptedPaymentInstrumentDataExpired")), LOWACCOUNTSCORE(String.valueOf("lowAccountScore")), @@ -98,38 +97,27 @@ public enum RecommendationReasonsEnum { LOWPHONENUMBERSCORE(String.valueOf("lowPhoneNumberScore")), - NUMBEROFACTIVETOKENSGREATERTHANTHRESHOLD( - String.valueOf("numberOfActiveTokensGreaterThanThreshold")), + NUMBEROFACTIVETOKENSGREATERTHANTHRESHOLD(String.valueOf("numberOfActiveTokensGreaterThanThreshold")), - NUMBEROFACTIVETOKENSONALLDEVICESISGREATERTHANTHRESHOLD( - String.valueOf("numberOfActiveTokensOnAllDevicesIsGreaterThanThreshold")), + NUMBEROFACTIVETOKENSONALLDEVICESISGREATERTHANTHRESHOLD(String.valueOf("numberOfActiveTokensOnAllDevicesIsGreaterThanThreshold")), - NUMBEROFDAYSSINCEDEVICEWASLASTREPORTEDLOSTISLESSTHANTHRESHOLDDAYS( - String.valueOf("numberOfDaysSinceDeviceWasLastReportedLostIsLessThanThresholdDays")), + NUMBEROFDAYSSINCEDEVICEWASLASTREPORTEDLOSTISLESSTHANTHRESHOLDDAYS(String.valueOf("numberOfDaysSinceDeviceWasLastReportedLostIsLessThanThresholdDays")), - NUMBEROFDEVICESWITHSAMEUSERIDWITHTOKENISGREATERTHANTHRESHOLD( - String.valueOf("numberOfDevicesWithSameUseridWithTokenIsGreaterThanThreshold")), + NUMBEROFDEVICESWITHSAMEUSERIDWITHTOKENISGREATERTHANTHRESHOLD(String.valueOf("numberOfDevicesWithSameUseridWithTokenIsGreaterThanThreshold")), - NUMBEROFTRANSACTIONSINLAST12MONTHSLESSTHANTHRESHOLDNUMBER( - String.valueOf("numberOfTransactionsInLast12MonthsLessThanThresholdNumber")), + NUMBEROFTRANSACTIONSINLAST12MONTHSLESSTHANTHRESHOLDNUMBER(String.valueOf("numberOfTransactionsInLast12MonthsLessThanThresholdNumber")), OUTSIDEHOMETERRITORY(String.valueOf("outSideHomeTerritory")), - SUSPENDEDCARDSINTHEWALLETACCOUNTISGREATERTHANTHRESHOLD( - String.valueOf("suspendedCardsInTheWALLETAccountIsGreaterThanThreshold")), + SUSPENDEDCARDSINTHEWALLETACCOUNTISGREATERTHANTHRESHOLD(String.valueOf("suspendedCardsInTheWALLETAccountIsGreaterThanThreshold")), SUSPICIOUSACTIVITY(String.valueOf("suspiciousActivity")), - THENUMBEROFPROVISIONINGATTEMPTSACROSSALLCARDSONTHISDEVICEINTHELAST24HOURSEXCEEDSTHETHRESHOLD( - String.valueOf( - "theNumberOfProvisioningAttemptsAcrossAllCardsOnThisDeviceInTheLast24HoursExceedsTheThreshold")), + THENUMBEROFPROVISIONINGATTEMPTSACROSSALLCARDSONTHISDEVICEINTHELAST24HOURSEXCEEDSTHETHRESHOLD(String.valueOf("theNumberOfProvisioningAttemptsAcrossAllCardsOnThisDeviceInTheLast24HoursExceedsTheThreshold")), - THEWALLETACCOUNTINTOWHICHTHECARDISBEINGPROVISIONEDCONTAINDISTINCTNAMESGREATERTHANTHRESHOLD( - String.valueOf( - "theWALLETAccountIntoWhichTheCardIsBeingProvisionedContainDistinctNamesGreaterThanThreshold")), + THEWALLETACCOUNTINTOWHICHTHECARDISBEINGPROVISIONEDCONTAINDISTINCTNAMESGREATERTHANTHRESHOLD(String.valueOf("theWALLETAccountIntoWhichTheCardIsBeingProvisionedContainDistinctNamesGreaterThanThreshold")), - THISACCOUNTHASNOTHADACTIVITYWITHINTHRESHOLDPERIOD( - String.valueOf("thisAccountHasNotHadActivityWithinThresholdPeriod")), + THISACCOUNTHASNOTHADACTIVITYWITHINTHRESHOLDPERIOD(String.valueOf("thisAccountHasNotHadActivityWithinThresholdPeriod")), TOOMANYDIFFERENTCARDHOLDERS(String.valueOf("tooManyDifferentCardholders")), @@ -141,28 +129,22 @@ public enum RecommendationReasonsEnum { UNKNOWN(String.valueOf("unknown")), - USERACCOUNTWASCREATEDWITHINTHRESHOLDDAYS( - String.valueOf("userAccountWasCreatedWithinThresholdDays")), + USERACCOUNTWASCREATEDWITHINTHRESHOLDDAYS(String.valueOf("userAccountWasCreatedWithinThresholdDays")), - USERDEVICERECEIVINGENCRYPTEDPAYMENTINSTRUMENTDATAISDIFFERENTTHANTHEONETHATISPROVISIONINGTHETOKEN( - String.valueOf( - "userDeviceReceivingEncryptedPaymentInstrumentDataIsDifferentThanTheOneThatIsProvisioningTheToken")), + USERDEVICERECEIVINGENCRYPTEDPAYMENTINSTRUMENTDATAISDIFFERENTTHANTHEONETHATISPROVISIONINGTHETOKEN(String.valueOf("userDeviceReceivingEncryptedPaymentInstrumentDataIsDifferentThanTheOneThatIsProvisioningTheToken")), - USERSACCOUNTONDEVICELESSTHANTHRESHOLDDAYS( - String.valueOf("usersAccountOnDeviceLessThanThresholdDays")), + USERSACCOUNTONDEVICELESSTHANTHRESHOLDDAYS(String.valueOf("usersAccountOnDeviceLessThanThresholdDays")), - WALLETACCOUNTCREATEDWITHINTHRESHOLDDAYS( - String.valueOf("walletAccountCreatedWithinThresholdDays")), + WALLETACCOUNTCREATEDWITHINTHRESHOLDDAYS(String.valueOf("walletAccountCreatedWithinThresholdDays")), - WALLETACCOUNTHOLDERNAMEONFILEDOESNOTMATCHCARDHOLDERENTEREDNAME( - String.valueOf("walletAccountHolderNameOnFileDoesNotMatchCardholderEnteredName")); + WALLETACCOUNTHOLDERNAMEONFILEDOESNOTMATCHCARDHOLDERENTEREDNAME(String.valueOf("walletAccountHolderNameOnFileDoesNotMatchCardholderEnteredName")); private static final Logger LOG = Logger.getLogger(RecommendationReasonsEnum.class.getName()); private String value; RecommendationReasonsEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -183,11 +165,7 @@ public static RecommendationReasonsEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "RecommendationReasonsEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(RecommendationReasonsEnum.values())); + LOG.warning("RecommendationReasonsEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RecommendationReasonsEnum.values())); return null; } } @@ -196,20 +174,16 @@ public static RecommendationReasonsEnum fromValue(String value) { private List recommendationReasons; public static final String JSON_PROPERTY_TYPE = "type"; - @Deprecated // deprecated since Configuration webhooks v2: Use name of the `tokenRequestor` - // instead. + @Deprecated // deprecated since Configuration webhooks v2: Use name of the `tokenRequestor` instead. private String type; - public Wallet() {} + public Wallet() { + } /** - * The confidence score of the wallet account, calculated by the wallet provider. A high score - * means that account is considered trustworthy. A low score means that the account is considered - * suspicious. Possible values: **1** to **5**. + * The confidence score of the wallet account, calculated by the wallet provider. A high score means that account is considered trustworthy. A low score means that the account is considered suspicious. Possible values: **1** to **5**. * - * @param accountScore The confidence score of the wallet account, calculated by the wallet - * provider. A high score means that account is considered trustworthy. A low score means that - * the account is considered suspicious. Possible values: **1** to **5**. + * @param accountScore The confidence score of the wallet account, calculated by the wallet provider. A high score means that account is considered trustworthy. A low score means that the account is considered suspicious. Possible values: **1** to **5**. * @return the current {@code Wallet} instance, allowing for method chaining */ public Wallet accountScore(String accountScore) { @@ -218,13 +192,8 @@ public Wallet accountScore(String accountScore) { } /** - * The confidence score of the wallet account, calculated by the wallet provider. A high score - * means that account is considered trustworthy. A low score means that the account is considered - * suspicious. Possible values: **1** to **5**. - * - * @return accountScore The confidence score of the wallet account, calculated by the wallet - * provider. A high score means that account is considered trustworthy. A low score means that - * the account is considered suspicious. Possible values: **1** to **5**. + * The confidence score of the wallet account, calculated by the wallet provider. A high score means that account is considered trustworthy. A low score means that the account is considered suspicious. Possible values: **1** to **5**. + * @return accountScore The confidence score of the wallet account, calculated by the wallet provider. A high score means that account is considered trustworthy. A low score means that the account is considered suspicious. Possible values: **1** to **5**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -233,13 +202,9 @@ public String getAccountScore() { } /** - * The confidence score of the wallet account, calculated by the wallet provider. A high score - * means that account is considered trustworthy. A low score means that the account is considered - * suspicious. Possible values: **1** to **5**. + * The confidence score of the wallet account, calculated by the wallet provider. A high score means that account is considered trustworthy. A low score means that the account is considered suspicious. Possible values: **1** to **5**. * - * @param accountScore The confidence score of the wallet account, calculated by the wallet - * provider. A high score means that account is considered trustworthy. A low score means that - * the account is considered suspicious. Possible values: **1** to **5**. + * @param accountScore The confidence score of the wallet account, calculated by the wallet provider. A high score means that account is considered trustworthy. A low score means that the account is considered suspicious. Possible values: **1** to **5**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,7 +215,7 @@ public void setAccountScore(String accountScore) { /** * device * - * @param device + * @param device * @return the current {@code Wallet} instance, allowing for method chaining */ public Wallet device(Device device) { @@ -260,8 +225,7 @@ public Wallet device(Device device) { /** * Get device - * - * @return device + * @return device */ @JsonProperty(JSON_PROPERTY_DEVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -272,7 +236,7 @@ public Device getDevice() { /** * device * - * @param device + * @param device */ @JsonProperty(JSON_PROPERTY_DEVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -281,13 +245,9 @@ public void setDevice(Device device) { } /** - * The confidence score of the device, calculated by the wallet provider. A high score means that - * device is considered trustworthy. A low score means that the device is considered suspicious. - * Possible values: **1** to **5**. + * The confidence score of the device, calculated by the wallet provider. A high score means that device is considered trustworthy. A low score means that the device is considered suspicious. Possible values: **1** to **5**. * - * @param deviceScore The confidence score of the device, calculated by the wallet provider. A - * high score means that device is considered trustworthy. A low score means that the device - * is considered suspicious. Possible values: **1** to **5**. + * @param deviceScore The confidence score of the device, calculated by the wallet provider. A high score means that device is considered trustworthy. A low score means that the device is considered suspicious. Possible values: **1** to **5**. * @return the current {@code Wallet} instance, allowing for method chaining */ public Wallet deviceScore(String deviceScore) { @@ -296,13 +256,8 @@ public Wallet deviceScore(String deviceScore) { } /** - * The confidence score of the device, calculated by the wallet provider. A high score means that - * device is considered trustworthy. A low score means that the device is considered suspicious. - * Possible values: **1** to **5**. - * - * @return deviceScore The confidence score of the device, calculated by the wallet provider. A - * high score means that device is considered trustworthy. A low score means that the device - * is considered suspicious. Possible values: **1** to **5**. + * The confidence score of the device, calculated by the wallet provider. A high score means that device is considered trustworthy. A low score means that the device is considered suspicious. Possible values: **1** to **5**. + * @return deviceScore The confidence score of the device, calculated by the wallet provider. A high score means that device is considered trustworthy. A low score means that the device is considered suspicious. Possible values: **1** to **5**. */ @JsonProperty(JSON_PROPERTY_DEVICE_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -311,13 +266,9 @@ public String getDeviceScore() { } /** - * The confidence score of the device, calculated by the wallet provider. A high score means that - * device is considered trustworthy. A low score means that the device is considered suspicious. - * Possible values: **1** to **5**. + * The confidence score of the device, calculated by the wallet provider. A high score means that device is considered trustworthy. A low score means that the device is considered suspicious. Possible values: **1** to **5**. * - * @param deviceScore The confidence score of the device, calculated by the wallet provider. A - * high score means that device is considered trustworthy. A low score means that the device - * is considered suspicious. Possible values: **1** to **5**. + * @param deviceScore The confidence score of the device, calculated by the wallet provider. A high score means that device is considered trustworthy. A low score means that the device is considered suspicious. Possible values: **1** to **5**. */ @JsonProperty(JSON_PROPERTY_DEVICE_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -326,11 +277,9 @@ public void setDeviceScore(String deviceScore) { } /** - * The method used for provisioning the network token. Possible values: **push**, **manual**, - * **cof**, **unknown**. + * The method used for provisioning the network token. Possible values: **push**, **manual**, **cof**, **unknown**. * - * @param provisioningMethod The method used for provisioning the network token. Possible values: - * **push**, **manual**, **cof**, **unknown**. + * @param provisioningMethod The method used for provisioning the network token. Possible values: **push**, **manual**, **cof**, **unknown**. * @return the current {@code Wallet} instance, allowing for method chaining */ public Wallet provisioningMethod(String provisioningMethod) { @@ -339,11 +288,8 @@ public Wallet provisioningMethod(String provisioningMethod) { } /** - * The method used for provisioning the network token. Possible values: **push**, **manual**, - * **cof**, **unknown**. - * - * @return provisioningMethod The method used for provisioning the network token. Possible values: - * **push**, **manual**, **cof**, **unknown**. + * The method used for provisioning the network token. Possible values: **push**, **manual**, **cof**, **unknown**. + * @return provisioningMethod The method used for provisioning the network token. Possible values: **push**, **manual**, **cof**, **unknown**. */ @JsonProperty(JSON_PROPERTY_PROVISIONING_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -352,11 +298,9 @@ public String getProvisioningMethod() { } /** - * The method used for provisioning the network token. Possible values: **push**, **manual**, - * **cof**, **unknown**. + * The method used for provisioning the network token. Possible values: **push**, **manual**, **cof**, **unknown**. * - * @param provisioningMethod The method used for provisioning the network token. Possible values: - * **push**, **manual**, **cof**, **unknown**. + * @param provisioningMethod The method used for provisioning the network token. Possible values: **push**, **manual**, **cof**, **unknown**. */ @JsonProperty(JSON_PROPERTY_PROVISIONING_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -365,14 +309,9 @@ public void setProvisioningMethod(String provisioningMethod) { } /** - * A list of risk indicators triggered at the time of provisioning the network token. Some example - * values of risk indicators are: * **accountTooNewSinceLaunch** * **tooManyRecentAttempts** * - * **lowDeviceScore** * **lowAccountScore** + * A list of risk indicators triggered at the time of provisioning the network token. Some example values of risk indicators are: * **accountTooNewSinceLaunch** * **tooManyRecentAttempts** * **lowDeviceScore** * **lowAccountScore** * - * @param recommendationReasons A list of risk indicators triggered at the time of provisioning - * the network token. Some example values of risk indicators are: * - * **accountTooNewSinceLaunch** * **tooManyRecentAttempts** * **lowDeviceScore** * - * **lowAccountScore** + * @param recommendationReasons A list of risk indicators triggered at the time of provisioning the network token. Some example values of risk indicators are: * **accountTooNewSinceLaunch** * **tooManyRecentAttempts** * **lowDeviceScore** * **lowAccountScore** * @return the current {@code Wallet} instance, allowing for method chaining */ public Wallet recommendationReasons(List recommendationReasons) { @@ -389,14 +328,8 @@ public Wallet addRecommendationReasonsItem(RecommendationReasonsEnum recommendat } /** - * A list of risk indicators triggered at the time of provisioning the network token. Some example - * values of risk indicators are: * **accountTooNewSinceLaunch** * **tooManyRecentAttempts** * - * **lowDeviceScore** * **lowAccountScore** - * - * @return recommendationReasons A list of risk indicators triggered at the time of provisioning - * the network token. Some example values of risk indicators are: * - * **accountTooNewSinceLaunch** * **tooManyRecentAttempts** * **lowDeviceScore** * - * **lowAccountScore** + * A list of risk indicators triggered at the time of provisioning the network token. Some example values of risk indicators are: * **accountTooNewSinceLaunch** * **tooManyRecentAttempts** * **lowDeviceScore** * **lowAccountScore** + * @return recommendationReasons A list of risk indicators triggered at the time of provisioning the network token. Some example values of risk indicators are: * **accountTooNewSinceLaunch** * **tooManyRecentAttempts** * **lowDeviceScore** * **lowAccountScore** */ @JsonProperty(JSON_PROPERTY_RECOMMENDATION_REASONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -405,14 +338,9 @@ public List getRecommendationReasons() { } /** - * A list of risk indicators triggered at the time of provisioning the network token. Some example - * values of risk indicators are: * **accountTooNewSinceLaunch** * **tooManyRecentAttempts** * - * **lowDeviceScore** * **lowAccountScore** + * A list of risk indicators triggered at the time of provisioning the network token. Some example values of risk indicators are: * **accountTooNewSinceLaunch** * **tooManyRecentAttempts** * **lowDeviceScore** * **lowAccountScore** * - * @param recommendationReasons A list of risk indicators triggered at the time of provisioning - * the network token. Some example values of risk indicators are: * - * **accountTooNewSinceLaunch** * **tooManyRecentAttempts** * **lowDeviceScore** * - * **lowAccountScore** + * @param recommendationReasons A list of risk indicators triggered at the time of provisioning the network token. Some example values of risk indicators are: * **accountTooNewSinceLaunch** * **tooManyRecentAttempts** * **lowDeviceScore** * **lowAccountScore** */ @JsonProperty(JSON_PROPERTY_RECOMMENDATION_REASONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -421,32 +349,26 @@ public void setRecommendationReasons(List recommendat } /** - * The type of wallet that the network token is associated with. Possible values: **applePay**, - * **googlePay**, **garminPay**. + * The type of wallet that the network token is associated with. Possible values: **applePay**, **googlePay**, **garminPay**. * - * @param type The type of wallet that the network token is associated with. Possible values: - * **applePay**, **googlePay**, **garminPay**. + * @param type The type of wallet that the network token is associated with. Possible values: **applePay**, **googlePay**, **garminPay**. * @return the current {@code Wallet} instance, allowing for method chaining - * @deprecated since Configuration webhooks v2 Use name of the `tokenRequestor` instead. + * + * @deprecated since Configuration webhooks v2 + * Use name of the `tokenRequestor` instead. */ - @Deprecated // deprecated since Configuration webhooks v2: Use name of the `tokenRequestor` - // instead. + @Deprecated // deprecated since Configuration webhooks v2: Use name of the `tokenRequestor` instead. public Wallet type(String type) { this.type = type; return this; } /** - * The type of wallet that the network token is associated with. Possible values: **applePay**, - * **googlePay**, **garminPay**. - * - * @return type The type of wallet that the network token is associated with. Possible values: - * **applePay**, **googlePay**, **garminPay**. - * @deprecated // deprecated since Configuration webhooks v2: Use name of the `tokenRequestor` - * instead. + * The type of wallet that the network token is associated with. Possible values: **applePay**, **googlePay**, **garminPay**. + * @return type The type of wallet that the network token is associated with. Possible values: **applePay**, **googlePay**, **garminPay**. + * @deprecated // deprecated since Configuration webhooks v2: Use name of the `tokenRequestor` instead. */ - @Deprecated // deprecated since Configuration webhooks v2: Use name of the `tokenRequestor` - // instead. + @Deprecated // deprecated since Configuration webhooks v2: Use name of the `tokenRequestor` instead. @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -454,22 +376,23 @@ public String getType() { } /** - * The type of wallet that the network token is associated with. Possible values: **applePay**, - * **googlePay**, **garminPay**. + * The type of wallet that the network token is associated with. Possible values: **applePay**, **googlePay**, **garminPay**. * - * @param type The type of wallet that the network token is associated with. Possible values: - * **applePay**, **googlePay**, **garminPay**. - * @deprecated since Configuration webhooks v2 Use name of the `tokenRequestor` instead. + * @param type The type of wallet that the network token is associated with. Possible values: **applePay**, **googlePay**, **garminPay**. + * + * @deprecated since Configuration webhooks v2 + * Use name of the `tokenRequestor` instead. */ - @Deprecated // deprecated since Configuration webhooks v2: Use name of the `tokenRequestor` - // instead. + @Deprecated // deprecated since Configuration webhooks v2: Use name of the `tokenRequestor` instead. @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(String type) { this.type = type; } - /** Return true if this Wallet object is equal to o. */ + /** + * Return true if this Wallet object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -479,18 +402,17 @@ public boolean equals(Object o) { return false; } Wallet wallet = (Wallet) o; - return Objects.equals(this.accountScore, wallet.accountScore) - && Objects.equals(this.device, wallet.device) - && Objects.equals(this.deviceScore, wallet.deviceScore) - && Objects.equals(this.provisioningMethod, wallet.provisioningMethod) - && Objects.equals(this.recommendationReasons, wallet.recommendationReasons) - && Objects.equals(this.type, wallet.type); + return Objects.equals(this.accountScore, wallet.accountScore) && + Objects.equals(this.device, wallet.device) && + Objects.equals(this.deviceScore, wallet.deviceScore) && + Objects.equals(this.provisioningMethod, wallet.provisioningMethod) && + Objects.equals(this.recommendationReasons, wallet.recommendationReasons) && + Objects.equals(this.type, wallet.type); } @Override public int hashCode() { - return Objects.hash( - accountScore, device, deviceScore, provisioningMethod, recommendationReasons, type); + return Objects.hash(accountScore, device, deviceScore, provisioningMethod, recommendationReasons, type); } @Override @@ -501,16 +423,15 @@ public String toString() { sb.append(" device: ").append(toIndentedString(device)).append("\n"); sb.append(" deviceScore: ").append(toIndentedString(deviceScore)).append("\n"); sb.append(" provisioningMethod: ").append(toIndentedString(provisioningMethod)).append("\n"); - sb.append(" recommendationReasons: ") - .append(toIndentedString(recommendationReasons)) - .append("\n"); + sb.append(" recommendationReasons: ").append(toIndentedString(recommendationReasons)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -519,7 +440,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Wallet given an JSON string * * @param jsonString JSON string @@ -529,12 +450,11 @@ private String toIndentedString(Object o) { public static Wallet fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Wallet.class); } - - /** - * Convert an instance of Wallet to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Wallet to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/dataprotection/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/dataprotection/AbstractOpenApiSchema.java index 70bbc98a6..e72e21224 100644 --- a/src/main/java/com/adyen/model/dataprotection/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/dataprotection/AbstractOpenApiSchema.java @@ -2,141 +2,145 @@ * Adyen Data Protection API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.dataprotection; -import com.fasterxml.jackson.annotation.JsonValue; -import jakarta.ws.rs.core.GenericType; -import java.util.Map; import java.util.Objects; +import java.util.Map; +import jakarta.ws.rs.core.GenericType; -/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec + */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() { - return instance; - } - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) { - this.instance = instance; - } - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf - * schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); - } else { - return object.getActualInstance(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() {return instance;} + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) {this.instance = instance;} + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); + } else { + return object.getActualInstance(); + } + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) && + Objects.equals(this.isNullable, a.isNullable) && + Objects.equals(this.schemaType, a.schemaType); } - return o.toString().replace("\n", "\n "); - } - public boolean equals(Object o) { - if (this == o) { - return true; + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); } - if (o == null || getClass() != o.getClass()) { - return false; + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) - && Objects.equals(this.isNullable, a.isNullable) - && Objects.equals(this.schemaType, a.schemaType); - } - - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); - } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); - } -} + + + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/dataprotection/JSON.java b/src/main/java/com/adyen/model/dataprotection/JSON.java index 225bdcf07..cf64ba6e6 100644 --- a/src/main/java/com/adyen/model/dataprotection/JSON.java +++ b/src/main/java/com/adyen/model/dataprotection/JSON.java @@ -1,18 +1,21 @@ package com.adyen.model.dataprotection; -import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; +import com.adyen.serializer.ByteArrayDeserializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; +import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; +import com.adyen.model.dataprotection.*; + import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -37,7 +40,6 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. - * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -54,13 +56,11 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { - return mapper; - } + public static ObjectMapper getMapper() { return mapper; } /** - * Returns the target model class that should be used to deserialize the input data. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,7 +73,9 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** Helper class to register the discriminator mappings. */ + /** + * Helper class to register the discriminator mappings. + */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -115,9 +117,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. This - * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -162,14 +164,13 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so - * it's not possible to use the instanceof keyword. + * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, + * so it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf( - Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -193,58 +194,59 @@ public static boolean isInstanceOf( return false; } - /** A map of discriminators for all model classes. */ - private static final Map, ClassDiscriminatorMapping> modelDiscriminators = - new HashMap, ClassDiscriminatorMapping>(); + /** + * A map of discriminators for all model classes. + */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); - /** A map of oneOf/anyOf descendants for each model class. */ + /** + * A map of oneOf/anyOf descendants for each model class. + */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator( - Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = - new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants( - Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants(Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static { + static + { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/dataprotection/ServiceError.java b/src/main/java/com/adyen/model/dataprotection/ServiceError.java index 180eb0078..9ce73529f 100644 --- a/src/main/java/com/adyen/model/dataprotection/ServiceError.java +++ b/src/main/java/com/adyen/model/dataprotection/ServiceError.java @@ -2,22 +2,31 @@ * Adyen Data Protection API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.dataprotection; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ServiceError */ + +/** + * ServiceError + */ @JsonPropertyOrder({ ServiceError.JSON_PROPERTY_ERROR_CODE, ServiceError.JSON_PROPERTY_ERROR_TYPE, @@ -25,6 +34,7 @@ ServiceError.JSON_PROPERTY_PSP_REFERENCE, ServiceError.JSON_PROPERTY_STATUS }) + public class ServiceError { public static final String JSON_PROPERTY_ERROR_CODE = "errorCode"; private String errorCode; @@ -41,7 +51,8 @@ public class ServiceError { public static final String JSON_PROPERTY_STATUS = "status"; private Integer status; - public ServiceError() {} + public ServiceError() { + } /** * The error code mapped to the error message. @@ -56,7 +67,6 @@ public ServiceError errorCode(String errorCode) { /** * The error code mapped to the error message. - * * @return errorCode The error code mapped to the error message. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -89,7 +99,6 @@ public ServiceError errorType(String errorType) { /** * The category of the error. - * * @return errorType The category of the error. */ @JsonProperty(JSON_PROPERTY_ERROR_TYPE) @@ -122,7 +131,6 @@ public ServiceError message(String message) { /** * A short explanation of the issue. - * * @return message A short explanation of the issue. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -155,7 +163,6 @@ public ServiceError pspReference(String pspReference) { /** * The PSP reference of the payment. - * * @return pspReference The PSP reference of the payment. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -188,7 +195,6 @@ public ServiceError status(Integer status) { /** * The HTTP response status. - * * @return status The HTTP response status. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -208,7 +214,9 @@ public void setStatus(Integer status) { this.status = status; } - /** Return true if this ServiceError object is equal to o. */ + /** + * Return true if this ServiceError object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -218,11 +226,11 @@ public boolean equals(Object o) { return false; } ServiceError serviceError = (ServiceError) o; - return Objects.equals(this.errorCode, serviceError.errorCode) - && Objects.equals(this.errorType, serviceError.errorType) - && Objects.equals(this.message, serviceError.message) - && Objects.equals(this.pspReference, serviceError.pspReference) - && Objects.equals(this.status, serviceError.status); + return Objects.equals(this.errorCode, serviceError.errorCode) && + Objects.equals(this.errorType, serviceError.errorType) && + Objects.equals(this.message, serviceError.message) && + Objects.equals(this.pspReference, serviceError.pspReference) && + Objects.equals(this.status, serviceError.status); } @Override @@ -244,7 +252,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -253,7 +262,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ServiceError given an JSON string * * @param jsonString JSON string @@ -263,12 +272,11 @@ private String toIndentedString(Object o) { public static ServiceError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } - - /** - * Convert an instance of ServiceError to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ServiceError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/dataprotection/SubjectErasureByPspReferenceRequest.java b/src/main/java/com/adyen/model/dataprotection/SubjectErasureByPspReferenceRequest.java index 4604a2398..e35f58c84 100644 --- a/src/main/java/com/adyen/model/dataprotection/SubjectErasureByPspReferenceRequest.java +++ b/src/main/java/com/adyen/model/dataprotection/SubjectErasureByPspReferenceRequest.java @@ -2,27 +2,37 @@ * Adyen Data Protection API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.dataprotection; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** SubjectErasureByPspReferenceRequest */ + +/** + * SubjectErasureByPspReferenceRequest + */ @JsonPropertyOrder({ SubjectErasureByPspReferenceRequest.JSON_PROPERTY_FORCE_ERASURE, SubjectErasureByPspReferenceRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, SubjectErasureByPspReferenceRequest.JSON_PROPERTY_PSP_REFERENCE }) + public class SubjectErasureByPspReferenceRequest { public static final String JSON_PROPERTY_FORCE_ERASURE = "forceErasure"; private Boolean forceErasure; @@ -33,18 +43,14 @@ public class SubjectErasureByPspReferenceRequest { public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference"; private String pspReference; - public SubjectErasureByPspReferenceRequest() {} + public SubjectErasureByPspReferenceRequest() { + } /** - * Set this to **true** if you want to delete shopper-related data, even if the shopper has an - * existing recurring transaction. This only deletes the shopper-related data for the specific - * payment, but does not cancel the existing recurring transaction. + * Set this to **true** if you want to delete shopper-related data, even if the shopper has an existing recurring transaction. This only deletes the shopper-related data for the specific payment, but does not cancel the existing recurring transaction. * - * @param forceErasure Set this to **true** if you want to delete shopper-related data, even if - * the shopper has an existing recurring transaction. This only deletes the shopper-related - * data for the specific payment, but does not cancel the existing recurring transaction. - * @return the current {@code SubjectErasureByPspReferenceRequest} instance, allowing for method - * chaining + * @param forceErasure Set this to **true** if you want to delete shopper-related data, even if the shopper has an existing recurring transaction. This only deletes the shopper-related data for the specific payment, but does not cancel the existing recurring transaction. + * @return the current {@code SubjectErasureByPspReferenceRequest} instance, allowing for method chaining */ public SubjectErasureByPspReferenceRequest forceErasure(Boolean forceErasure) { this.forceErasure = forceErasure; @@ -52,13 +58,8 @@ public SubjectErasureByPspReferenceRequest forceErasure(Boolean forceErasure) { } /** - * Set this to **true** if you want to delete shopper-related data, even if the shopper has an - * existing recurring transaction. This only deletes the shopper-related data for the specific - * payment, but does not cancel the existing recurring transaction. - * - * @return forceErasure Set this to **true** if you want to delete shopper-related data, even if - * the shopper has an existing recurring transaction. This only deletes the shopper-related - * data for the specific payment, but does not cancel the existing recurring transaction. + * Set this to **true** if you want to delete shopper-related data, even if the shopper has an existing recurring transaction. This only deletes the shopper-related data for the specific payment, but does not cancel the existing recurring transaction. + * @return forceErasure Set this to **true** if you want to delete shopper-related data, even if the shopper has an existing recurring transaction. This only deletes the shopper-related data for the specific payment, but does not cancel the existing recurring transaction. */ @JsonProperty(JSON_PROPERTY_FORCE_ERASURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -67,13 +68,9 @@ public Boolean getForceErasure() { } /** - * Set this to **true** if you want to delete shopper-related data, even if the shopper has an - * existing recurring transaction. This only deletes the shopper-related data for the specific - * payment, but does not cancel the existing recurring transaction. + * Set this to **true** if you want to delete shopper-related data, even if the shopper has an existing recurring transaction. This only deletes the shopper-related data for the specific payment, but does not cancel the existing recurring transaction. * - * @param forceErasure Set this to **true** if you want to delete shopper-related data, even if - * the shopper has an existing recurring transaction. This only deletes the shopper-related - * data for the specific payment, but does not cancel the existing recurring transaction. + * @param forceErasure Set this to **true** if you want to delete shopper-related data, even if the shopper has an existing recurring transaction. This only deletes the shopper-related data for the specific payment, but does not cancel the existing recurring transaction. */ @JsonProperty(JSON_PROPERTY_FORCE_ERASURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -85,8 +82,7 @@ public void setForceErasure(Boolean forceErasure) { * Your merchant account * * @param merchantAccount Your merchant account - * @return the current {@code SubjectErasureByPspReferenceRequest} instance, allowing for method - * chaining + * @return the current {@code SubjectErasureByPspReferenceRequest} instance, allowing for method chaining */ public SubjectErasureByPspReferenceRequest merchantAccount(String merchantAccount) { this.merchantAccount = merchantAccount; @@ -95,7 +91,6 @@ public SubjectErasureByPspReferenceRequest merchantAccount(String merchantAccoun /** * Your merchant account - * * @return merchantAccount Your merchant account */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -118,10 +113,8 @@ public void setMerchantAccount(String merchantAccount) { /** * The PSP reference of the payment. We will delete all shopper-related data for this payment. * - * @param pspReference The PSP reference of the payment. We will delete all shopper-related data - * for this payment. - * @return the current {@code SubjectErasureByPspReferenceRequest} instance, allowing for method - * chaining + * @param pspReference The PSP reference of the payment. We will delete all shopper-related data for this payment. + * @return the current {@code SubjectErasureByPspReferenceRequest} instance, allowing for method chaining */ public SubjectErasureByPspReferenceRequest pspReference(String pspReference) { this.pspReference = pspReference; @@ -130,9 +123,7 @@ public SubjectErasureByPspReferenceRequest pspReference(String pspReference) { /** * The PSP reference of the payment. We will delete all shopper-related data for this payment. - * - * @return pspReference The PSP reference of the payment. We will delete all shopper-related data - * for this payment. + * @return pspReference The PSP reference of the payment. We will delete all shopper-related data for this payment. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,8 +134,7 @@ public String getPspReference() { /** * The PSP reference of the payment. We will delete all shopper-related data for this payment. * - * @param pspReference The PSP reference of the payment. We will delete all shopper-related data - * for this payment. + * @param pspReference The PSP reference of the payment. We will delete all shopper-related data for this payment. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,7 +142,9 @@ public void setPspReference(String pspReference) { this.pspReference = pspReference; } - /** Return true if this SubjectErasureByPspReferenceRequest object is equal to o. */ + /** + * Return true if this SubjectErasureByPspReferenceRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -161,11 +153,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SubjectErasureByPspReferenceRequest subjectErasureByPspReferenceRequest = - (SubjectErasureByPspReferenceRequest) o; - return Objects.equals(this.forceErasure, subjectErasureByPspReferenceRequest.forceErasure) - && Objects.equals(this.merchantAccount, subjectErasureByPspReferenceRequest.merchantAccount) - && Objects.equals(this.pspReference, subjectErasureByPspReferenceRequest.pspReference); + SubjectErasureByPspReferenceRequest subjectErasureByPspReferenceRequest = (SubjectErasureByPspReferenceRequest) o; + return Objects.equals(this.forceErasure, subjectErasureByPspReferenceRequest.forceErasure) && + Objects.equals(this.merchantAccount, subjectErasureByPspReferenceRequest.merchantAccount) && + Objects.equals(this.pspReference, subjectErasureByPspReferenceRequest.pspReference); } @Override @@ -185,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -194,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SubjectErasureByPspReferenceRequest given an JSON string * * @param jsonString JSON string * @return An instance of SubjectErasureByPspReferenceRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SubjectErasureByPspReferenceRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to SubjectErasureByPspReferenceRequest */ - public static SubjectErasureByPspReferenceRequest fromJson(String jsonString) - throws JsonProcessingException { + public static SubjectErasureByPspReferenceRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SubjectErasureByPspReferenceRequest.class); } - - /** - * Convert an instance of SubjectErasureByPspReferenceRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SubjectErasureByPspReferenceRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/dataprotection/SubjectErasureResponse.java b/src/main/java/com/adyen/model/dataprotection/SubjectErasureResponse.java index 08c2891e1..959d6cd0b 100644 --- a/src/main/java/com/adyen/model/dataprotection/SubjectErasureResponse.java +++ b/src/main/java/com/adyen/model/dataprotection/SubjectErasureResponse.java @@ -2,30 +2,41 @@ * Adyen Data Protection API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.dataprotection; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * SubjectErasureResponse + */ +@JsonPropertyOrder({ + SubjectErasureResponse.JSON_PROPERTY_RESULT +}) -/** SubjectErasureResponse */ -@JsonPropertyOrder({SubjectErasureResponse.JSON_PROPERTY_RESULT}) public class SubjectErasureResponse { - /** The result of this operation. */ + /** + * The result of this operation. + */ public enum ResultEnum { + ACTIVE_RECURRING_TOKEN_EXISTS(String.valueOf("ACTIVE_RECURRING_TOKEN_EXISTS")), ALREADY_PROCESSED(String.valueOf("ALREADY_PROCESSED")), @@ -39,7 +50,7 @@ public enum ResultEnum { private String value; ResultEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +71,7 @@ public static ResultEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ResultEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ResultEnum.values())); + LOG.warning("ResultEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResultEnum.values())); return null; } } @@ -72,7 +79,8 @@ public static ResultEnum fromValue(String value) { public static final String JSON_PROPERTY_RESULT = "result"; private ResultEnum result; - public SubjectErasureResponse() {} + public SubjectErasureResponse() { + } /** * The result of this operation. @@ -87,7 +95,6 @@ public SubjectErasureResponse result(ResultEnum result) { /** * The result of this operation. - * * @return result The result of this operation. */ @JsonProperty(JSON_PROPERTY_RESULT) @@ -107,7 +114,9 @@ public void setResult(ResultEnum result) { this.result = result; } - /** Return true if this SubjectErasureResponse object is equal to o. */ + /** + * Return true if this SubjectErasureResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -135,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,23 +154,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SubjectErasureResponse given an JSON string * * @param jsonString JSON string * @return An instance of SubjectErasureResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SubjectErasureResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to SubjectErasureResponse */ public static SubjectErasureResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SubjectErasureResponse.class); } - - /** - * Convert an instance of SubjectErasureResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SubjectErasureResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputes/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/disputes/AbstractOpenApiSchema.java index 0b0e75813..0c9a49ffb 100644 --- a/src/main/java/com/adyen/model/disputes/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/disputes/AbstractOpenApiSchema.java @@ -2,141 +2,145 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.disputes; -import com.fasterxml.jackson.annotation.JsonValue; -import jakarta.ws.rs.core.GenericType; -import java.util.Map; import java.util.Objects; +import java.util.Map; +import jakarta.ws.rs.core.GenericType; -/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec + */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() { - return instance; - } - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) { - this.instance = instance; - } - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf - * schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); - } else { - return object.getActualInstance(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() {return instance;} + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) {this.instance = instance;} + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); + } else { + return object.getActualInstance(); + } + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) && + Objects.equals(this.isNullable, a.isNullable) && + Objects.equals(this.schemaType, a.schemaType); } - return o.toString().replace("\n", "\n "); - } - public boolean equals(Object o) { - if (this == o) { - return true; + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); } - if (o == null || getClass() != o.getClass()) { - return false; + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) - && Objects.equals(this.isNullable, a.isNullable) - && Objects.equals(this.schemaType, a.schemaType); - } - - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); - } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); - } -} + + + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/disputes/AcceptDisputeRequest.java b/src/main/java/com/adyen/model/disputes/AcceptDisputeRequest.java index 33fdc103c..58aced05e 100644 --- a/src/main/java/com/adyen/model/disputes/AcceptDisputeRequest.java +++ b/src/main/java/com/adyen/model/disputes/AcceptDisputeRequest.java @@ -2,26 +2,36 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.disputes; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AcceptDisputeRequest */ + +/** + * AcceptDisputeRequest + */ @JsonPropertyOrder({ AcceptDisputeRequest.JSON_PROPERTY_DISPUTE_PSP_REFERENCE, AcceptDisputeRequest.JSON_PROPERTY_MERCHANT_ACCOUNT_CODE }) + public class AcceptDisputeRequest { public static final String JSON_PROPERTY_DISPUTE_PSP_REFERENCE = "disputePspReference"; private String disputePspReference; @@ -29,7 +39,8 @@ public class AcceptDisputeRequest { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT_CODE = "merchantAccountCode"; private String merchantAccountCode; - public AcceptDisputeRequest() {} + public AcceptDisputeRequest() { + } /** * The PSP reference assigned to the dispute. @@ -44,7 +55,6 @@ public AcceptDisputeRequest disputePspReference(String disputePspReference) { /** * The PSP reference assigned to the dispute. - * * @return disputePspReference The PSP reference assigned to the dispute. */ @JsonProperty(JSON_PROPERTY_DISPUTE_PSP_REFERENCE) @@ -67,8 +77,7 @@ public void setDisputePspReference(String disputePspReference) { /** * The merchant account identifier, for which you want to process the dispute transaction. * - * @param merchantAccountCode The merchant account identifier, for which you want to process the - * dispute transaction. + * @param merchantAccountCode The merchant account identifier, for which you want to process the dispute transaction. * @return the current {@code AcceptDisputeRequest} instance, allowing for method chaining */ public AcceptDisputeRequest merchantAccountCode(String merchantAccountCode) { @@ -78,9 +87,7 @@ public AcceptDisputeRequest merchantAccountCode(String merchantAccountCode) { /** * The merchant account identifier, for which you want to process the dispute transaction. - * - * @return merchantAccountCode The merchant account identifier, for which you want to process the - * dispute transaction. + * @return merchantAccountCode The merchant account identifier, for which you want to process the dispute transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -91,8 +98,7 @@ public String getMerchantAccountCode() { /** * The merchant account identifier, for which you want to process the dispute transaction. * - * @param merchantAccountCode The merchant account identifier, for which you want to process the - * dispute transaction. + * @param merchantAccountCode The merchant account identifier, for which you want to process the dispute transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,7 +106,9 @@ public void setMerchantAccountCode(String merchantAccountCode) { this.merchantAccountCode = merchantAccountCode; } - /** Return true if this AcceptDisputeRequest object is equal to o. */ + /** + * Return true if this AcceptDisputeRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -110,8 +118,8 @@ public boolean equals(Object o) { return false; } AcceptDisputeRequest acceptDisputeRequest = (AcceptDisputeRequest) o; - return Objects.equals(this.disputePspReference, acceptDisputeRequest.disputePspReference) - && Objects.equals(this.merchantAccountCode, acceptDisputeRequest.merchantAccountCode); + return Objects.equals(this.disputePspReference, acceptDisputeRequest.disputePspReference) && + Objects.equals(this.merchantAccountCode, acceptDisputeRequest.merchantAccountCode); } @Override @@ -123,18 +131,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AcceptDisputeRequest {\n"); - sb.append(" disputePspReference: ") - .append(toIndentedString(disputePspReference)) - .append("\n"); - sb.append(" merchantAccountCode: ") - .append(toIndentedString(merchantAccountCode)) - .append("\n"); + sb.append(" disputePspReference: ").append(toIndentedString(disputePspReference)).append("\n"); + sb.append(" merchantAccountCode: ").append(toIndentedString(merchantAccountCode)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -143,23 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AcceptDisputeRequest given an JSON string * * @param jsonString JSON string * @return An instance of AcceptDisputeRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AcceptDisputeRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to AcceptDisputeRequest */ public static AcceptDisputeRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AcceptDisputeRequest.class); } - - /** - * Convert an instance of AcceptDisputeRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AcceptDisputeRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputes/AcceptDisputeResponse.java b/src/main/java/com/adyen/model/disputes/AcceptDisputeResponse.java index 57ac7ad90..a9c8d493e 100644 --- a/src/main/java/com/adyen/model/disputes/AcceptDisputeResponse.java +++ b/src/main/java/com/adyen/model/disputes/AcceptDisputeResponse.java @@ -2,33 +2,47 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.disputes; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.disputes.DisputeServiceResult; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AcceptDisputeResponse */ -@JsonPropertyOrder({AcceptDisputeResponse.JSON_PROPERTY_DISPUTE_SERVICE_RESULT}) + +/** + * AcceptDisputeResponse + */ +@JsonPropertyOrder({ + AcceptDisputeResponse.JSON_PROPERTY_DISPUTE_SERVICE_RESULT +}) + public class AcceptDisputeResponse { public static final String JSON_PROPERTY_DISPUTE_SERVICE_RESULT = "disputeServiceResult"; private DisputeServiceResult disputeServiceResult; - public AcceptDisputeResponse() {} + public AcceptDisputeResponse() { + } /** * disputeServiceResult * - * @param disputeServiceResult + * @param disputeServiceResult * @return the current {@code AcceptDisputeResponse} instance, allowing for method chaining */ public AcceptDisputeResponse disputeServiceResult(DisputeServiceResult disputeServiceResult) { @@ -38,8 +52,7 @@ public AcceptDisputeResponse disputeServiceResult(DisputeServiceResult disputeSe /** * Get disputeServiceResult - * - * @return disputeServiceResult + * @return disputeServiceResult */ @JsonProperty(JSON_PROPERTY_DISPUTE_SERVICE_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -50,7 +63,7 @@ public DisputeServiceResult getDisputeServiceResult() { /** * disputeServiceResult * - * @param disputeServiceResult + * @param disputeServiceResult */ @JsonProperty(JSON_PROPERTY_DISPUTE_SERVICE_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,7 +71,9 @@ public void setDisputeServiceResult(DisputeServiceResult disputeServiceResult) { this.disputeServiceResult = disputeServiceResult; } - /** Return true if this AcceptDisputeResponse object is equal to o. */ + /** + * Return true if this AcceptDisputeResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -80,15 +95,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AcceptDisputeResponse {\n"); - sb.append(" disputeServiceResult: ") - .append(toIndentedString(disputeServiceResult)) - .append("\n"); + sb.append(" disputeServiceResult: ").append(toIndentedString(disputeServiceResult)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -97,23 +111,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AcceptDisputeResponse given an JSON string * * @param jsonString JSON string * @return An instance of AcceptDisputeResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AcceptDisputeResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to AcceptDisputeResponse */ public static AcceptDisputeResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AcceptDisputeResponse.class); } - - /** - * Convert an instance of AcceptDisputeResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AcceptDisputeResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputes/DefendDisputeRequest.java b/src/main/java/com/adyen/model/disputes/DefendDisputeRequest.java index d9469e27d..692c445ef 100644 --- a/src/main/java/com/adyen/model/disputes/DefendDisputeRequest.java +++ b/src/main/java/com/adyen/model/disputes/DefendDisputeRequest.java @@ -2,27 +2,37 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.disputes; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** DefendDisputeRequest */ + +/** + * DefendDisputeRequest + */ @JsonPropertyOrder({ DefendDisputeRequest.JSON_PROPERTY_DEFENSE_REASON_CODE, DefendDisputeRequest.JSON_PROPERTY_DISPUTE_PSP_REFERENCE, DefendDisputeRequest.JSON_PROPERTY_MERCHANT_ACCOUNT_CODE }) + public class DefendDisputeRequest { public static final String JSON_PROPERTY_DEFENSE_REASON_CODE = "defenseReasonCode"; private String defenseReasonCode; @@ -33,7 +43,8 @@ public class DefendDisputeRequest { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT_CODE = "merchantAccountCode"; private String merchantAccountCode; - public DefendDisputeRequest() {} + public DefendDisputeRequest() { + } /** * The defense reason code that was selected to defend this dispute. @@ -48,7 +59,6 @@ public DefendDisputeRequest defenseReasonCode(String defenseReasonCode) { /** * The defense reason code that was selected to defend this dispute. - * * @return defenseReasonCode The defense reason code that was selected to defend this dispute. */ @JsonProperty(JSON_PROPERTY_DEFENSE_REASON_CODE) @@ -81,7 +91,6 @@ public DefendDisputeRequest disputePspReference(String disputePspReference) { /** * The PSP reference assigned to the dispute. - * * @return disputePspReference The PSP reference assigned to the dispute. */ @JsonProperty(JSON_PROPERTY_DISPUTE_PSP_REFERENCE) @@ -104,8 +113,7 @@ public void setDisputePspReference(String disputePspReference) { /** * The merchant account identifier, for which you want to process the dispute transaction. * - * @param merchantAccountCode The merchant account identifier, for which you want to process the - * dispute transaction. + * @param merchantAccountCode The merchant account identifier, for which you want to process the dispute transaction. * @return the current {@code DefendDisputeRequest} instance, allowing for method chaining */ public DefendDisputeRequest merchantAccountCode(String merchantAccountCode) { @@ -115,9 +123,7 @@ public DefendDisputeRequest merchantAccountCode(String merchantAccountCode) { /** * The merchant account identifier, for which you want to process the dispute transaction. - * - * @return merchantAccountCode The merchant account identifier, for which you want to process the - * dispute transaction. + * @return merchantAccountCode The merchant account identifier, for which you want to process the dispute transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,8 +134,7 @@ public String getMerchantAccountCode() { /** * The merchant account identifier, for which you want to process the dispute transaction. * - * @param merchantAccountCode The merchant account identifier, for which you want to process the - * dispute transaction. + * @param merchantAccountCode The merchant account identifier, for which you want to process the dispute transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,7 +142,9 @@ public void setMerchantAccountCode(String merchantAccountCode) { this.merchantAccountCode = merchantAccountCode; } - /** Return true if this DefendDisputeRequest object is equal to o. */ + /** + * Return true if this DefendDisputeRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -147,9 +154,9 @@ public boolean equals(Object o) { return false; } DefendDisputeRequest defendDisputeRequest = (DefendDisputeRequest) o; - return Objects.equals(this.defenseReasonCode, defendDisputeRequest.defenseReasonCode) - && Objects.equals(this.disputePspReference, defendDisputeRequest.disputePspReference) - && Objects.equals(this.merchantAccountCode, defendDisputeRequest.merchantAccountCode); + return Objects.equals(this.defenseReasonCode, defendDisputeRequest.defenseReasonCode) && + Objects.equals(this.disputePspReference, defendDisputeRequest.disputePspReference) && + Objects.equals(this.merchantAccountCode, defendDisputeRequest.merchantAccountCode); } @Override @@ -162,18 +169,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DefendDisputeRequest {\n"); sb.append(" defenseReasonCode: ").append(toIndentedString(defenseReasonCode)).append("\n"); - sb.append(" disputePspReference: ") - .append(toIndentedString(disputePspReference)) - .append("\n"); - sb.append(" merchantAccountCode: ") - .append(toIndentedString(merchantAccountCode)) - .append("\n"); + sb.append(" disputePspReference: ").append(toIndentedString(disputePspReference)).append("\n"); + sb.append(" merchantAccountCode: ").append(toIndentedString(merchantAccountCode)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,23 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DefendDisputeRequest given an JSON string * * @param jsonString JSON string * @return An instance of DefendDisputeRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DefendDisputeRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to DefendDisputeRequest */ public static DefendDisputeRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DefendDisputeRequest.class); } - - /** - * Convert an instance of DefendDisputeRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DefendDisputeRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputes/DefendDisputeResponse.java b/src/main/java/com/adyen/model/disputes/DefendDisputeResponse.java index e9105ad79..07ad213e8 100644 --- a/src/main/java/com/adyen/model/disputes/DefendDisputeResponse.java +++ b/src/main/java/com/adyen/model/disputes/DefendDisputeResponse.java @@ -2,33 +2,47 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.disputes; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.disputes.DisputeServiceResult; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** DefendDisputeResponse */ -@JsonPropertyOrder({DefendDisputeResponse.JSON_PROPERTY_DISPUTE_SERVICE_RESULT}) + +/** + * DefendDisputeResponse + */ +@JsonPropertyOrder({ + DefendDisputeResponse.JSON_PROPERTY_DISPUTE_SERVICE_RESULT +}) + public class DefendDisputeResponse { public static final String JSON_PROPERTY_DISPUTE_SERVICE_RESULT = "disputeServiceResult"; private DisputeServiceResult disputeServiceResult; - public DefendDisputeResponse() {} + public DefendDisputeResponse() { + } /** * disputeServiceResult * - * @param disputeServiceResult + * @param disputeServiceResult * @return the current {@code DefendDisputeResponse} instance, allowing for method chaining */ public DefendDisputeResponse disputeServiceResult(DisputeServiceResult disputeServiceResult) { @@ -38,8 +52,7 @@ public DefendDisputeResponse disputeServiceResult(DisputeServiceResult disputeSe /** * Get disputeServiceResult - * - * @return disputeServiceResult + * @return disputeServiceResult */ @JsonProperty(JSON_PROPERTY_DISPUTE_SERVICE_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -50,7 +63,7 @@ public DisputeServiceResult getDisputeServiceResult() { /** * disputeServiceResult * - * @param disputeServiceResult + * @param disputeServiceResult */ @JsonProperty(JSON_PROPERTY_DISPUTE_SERVICE_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,7 +71,9 @@ public void setDisputeServiceResult(DisputeServiceResult disputeServiceResult) { this.disputeServiceResult = disputeServiceResult; } - /** Return true if this DefendDisputeResponse object is equal to o. */ + /** + * Return true if this DefendDisputeResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -80,15 +95,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DefendDisputeResponse {\n"); - sb.append(" disputeServiceResult: ") - .append(toIndentedString(disputeServiceResult)) - .append("\n"); + sb.append(" disputeServiceResult: ").append(toIndentedString(disputeServiceResult)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -97,23 +111,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DefendDisputeResponse given an JSON string * * @param jsonString JSON string * @return An instance of DefendDisputeResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DefendDisputeResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to DefendDisputeResponse */ public static DefendDisputeResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DefendDisputeResponse.class); } - - /** - * Convert an instance of DefendDisputeResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DefendDisputeResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputes/DefenseDocument.java b/src/main/java/com/adyen/model/disputes/DefenseDocument.java index b0e433107..bec233f80 100644 --- a/src/main/java/com/adyen/model/disputes/DefenseDocument.java +++ b/src/main/java/com/adyen/model/disputes/DefenseDocument.java @@ -2,28 +2,37 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.disputes; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -import java.util.Arrays; -/** DefenseDocument */ + +/** + * DefenseDocument + */ @JsonPropertyOrder({ DefenseDocument.JSON_PROPERTY_CONTENT, DefenseDocument.JSON_PROPERTY_CONTENT_TYPE, DefenseDocument.JSON_PROPERTY_DEFENSE_DOCUMENT_TYPE_CODE }) + public class DefenseDocument { public static final String JSON_PROPERTY_CONTENT = "content"; private byte[] content; @@ -34,7 +43,8 @@ public class DefenseDocument { public static final String JSON_PROPERTY_DEFENSE_DOCUMENT_TYPE_CODE = "defenseDocumentTypeCode"; private String defenseDocumentTypeCode; - public DefenseDocument() {} + public DefenseDocument() { + } /** * The content of the defense document. @@ -49,7 +59,6 @@ public DefenseDocument content(byte[] content) { /** * The content of the defense document. - * * @return content The content of the defense document. */ @JsonProperty(JSON_PROPERTY_CONTENT) @@ -82,7 +91,6 @@ public DefenseDocument contentType(String contentType) { /** * The content type of the defense document. - * * @return contentType The content type of the defense document. */ @JsonProperty(JSON_PROPERTY_CONTENT_TYPE) @@ -115,7 +123,6 @@ public DefenseDocument defenseDocumentTypeCode(String defenseDocumentTypeCode) { /** * The document type code of the defense document. - * * @return defenseDocumentTypeCode The document type code of the defense document. */ @JsonProperty(JSON_PROPERTY_DEFENSE_DOCUMENT_TYPE_CODE) @@ -135,7 +142,9 @@ public void setDefenseDocumentTypeCode(String defenseDocumentTypeCode) { this.defenseDocumentTypeCode = defenseDocumentTypeCode; } - /** Return true if this DefenseDocument object is equal to o. */ + /** + * Return true if this DefenseDocument object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -145,9 +154,9 @@ public boolean equals(Object o) { return false; } DefenseDocument defenseDocument = (DefenseDocument) o; - return Arrays.equals(this.content, defenseDocument.content) - && Objects.equals(this.contentType, defenseDocument.contentType) - && Objects.equals(this.defenseDocumentTypeCode, defenseDocument.defenseDocumentTypeCode); + return Arrays.equals(this.content, defenseDocument.content) && + Objects.equals(this.contentType, defenseDocument.contentType) && + Objects.equals(this.defenseDocumentTypeCode, defenseDocument.defenseDocumentTypeCode); } @Override @@ -161,15 +170,14 @@ public String toString() { sb.append("class DefenseDocument {\n"); sb.append(" content: ").append(toIndentedString(content)).append("\n"); sb.append(" contentType: ").append(toIndentedString(contentType)).append("\n"); - sb.append(" defenseDocumentTypeCode: ") - .append(toIndentedString(defenseDocumentTypeCode)) - .append("\n"); + sb.append(" defenseDocumentTypeCode: ").append(toIndentedString(defenseDocumentTypeCode)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -178,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DefenseDocument given an JSON string * * @param jsonString JSON string @@ -188,12 +196,11 @@ private String toIndentedString(Object o) { public static DefenseDocument fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DefenseDocument.class); } - - /** - * Convert an instance of DefenseDocument to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DefenseDocument to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputes/DefenseDocumentType.java b/src/main/java/com/adyen/model/disputes/DefenseDocumentType.java index fdee69c07..2db6b2ab0 100644 --- a/src/main/java/com/adyen/model/disputes/DefenseDocumentType.java +++ b/src/main/java/com/adyen/model/disputes/DefenseDocumentType.java @@ -2,27 +2,37 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.disputes; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** DefenseDocumentType */ + +/** + * DefenseDocumentType + */ @JsonPropertyOrder({ DefenseDocumentType.JSON_PROPERTY_AVAILABLE, DefenseDocumentType.JSON_PROPERTY_DEFENSE_DOCUMENT_TYPE_CODE, DefenseDocumentType.JSON_PROPERTY_REQUIREMENT_LEVEL }) + public class DefenseDocumentType { public static final String JSON_PROPERTY_AVAILABLE = "available"; private Boolean available; @@ -33,14 +43,13 @@ public class DefenseDocumentType { public static final String JSON_PROPERTY_REQUIREMENT_LEVEL = "requirementLevel"; private String requirementLevel; - public DefenseDocumentType() {} + public DefenseDocumentType() { + } /** - * When **true**, you've successfully uploaded this type of defense document. When **false**, - * you haven't uploaded this defense document type. + * When **true**, you've successfully uploaded this type of defense document. When **false**, you haven't uploaded this defense document type. * - * @param available When **true**, you've successfully uploaded this type of defense document. - * When **false**, you haven't uploaded this defense document type. + * @param available When **true**, you've successfully uploaded this type of defense document. When **false**, you haven't uploaded this defense document type. * @return the current {@code DefenseDocumentType} instance, allowing for method chaining */ public DefenseDocumentType available(Boolean available) { @@ -49,11 +58,8 @@ public DefenseDocumentType available(Boolean available) { } /** - * When **true**, you've successfully uploaded this type of defense document. When **false**, - * you haven't uploaded this defense document type. - * - * @return available When **true**, you've successfully uploaded this type of defense - * document. When **false**, you haven't uploaded this defense document type. + * When **true**, you've successfully uploaded this type of defense document. When **false**, you haven't uploaded this defense document type. + * @return available When **true**, you've successfully uploaded this type of defense document. When **false**, you haven't uploaded this defense document type. */ @JsonProperty(JSON_PROPERTY_AVAILABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -62,11 +68,9 @@ public Boolean getAvailable() { } /** - * When **true**, you've successfully uploaded this type of defense document. When **false**, - * you haven't uploaded this defense document type. + * When **true**, you've successfully uploaded this type of defense document. When **false**, you haven't uploaded this defense document type. * - * @param available When **true**, you've successfully uploaded this type of defense document. - * When **false**, you haven't uploaded this defense document type. + * @param available When **true**, you've successfully uploaded this type of defense document. When **false**, you haven't uploaded this defense document type. */ @JsonProperty(JSON_PROPERTY_AVAILABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,7 +91,6 @@ public DefenseDocumentType defenseDocumentTypeCode(String defenseDocumentTypeCod /** * The document type code of the defense document. - * * @return defenseDocumentTypeCode The document type code of the defense document. */ @JsonProperty(JSON_PROPERTY_DEFENSE_DOCUMENT_TYPE_CODE) @@ -108,19 +111,9 @@ public void setDefenseDocumentTypeCode(String defenseDocumentTypeCode) { } /** - * Indicates to what extent the defense document is required in the defense process. Possible - * values: * **Required**: You must supply the document. * **OneOrMore**: You must supply at least - * one of the documents with this label. * **Optional**: You can choose to supply the document. * - * **AlternativeRequired**: You must supply a generic defense document. To enable this - * functionality, contact our Support Team. When enabled, you can supply a generic defense - * document for all schemes. + * Indicates to what extent the defense document is required in the defense process. Possible values: * **Required**: You must supply the document. * **OneOrMore**: You must supply at least one of the documents with this label. * **Optional**: You can choose to supply the document. * **AlternativeRequired**: You must supply a generic defense document. To enable this functionality, contact our Support Team. When enabled, you can supply a generic defense document for all schemes. * - * @param requirementLevel Indicates to what extent the defense document is required in the - * defense process. Possible values: * **Required**: You must supply the document. * - * **OneOrMore**: You must supply at least one of the documents with this label. * - * **Optional**: You can choose to supply the document. * **AlternativeRequired**: You must - * supply a generic defense document. To enable this functionality, contact our Support Team. - * When enabled, you can supply a generic defense document for all schemes. + * @param requirementLevel Indicates to what extent the defense document is required in the defense process. Possible values: * **Required**: You must supply the document. * **OneOrMore**: You must supply at least one of the documents with this label. * **Optional**: You can choose to supply the document. * **AlternativeRequired**: You must supply a generic defense document. To enable this functionality, contact our Support Team. When enabled, you can supply a generic defense document for all schemes. * @return the current {@code DefenseDocumentType} instance, allowing for method chaining */ public DefenseDocumentType requirementLevel(String requirementLevel) { @@ -129,19 +122,8 @@ public DefenseDocumentType requirementLevel(String requirementLevel) { } /** - * Indicates to what extent the defense document is required in the defense process. Possible - * values: * **Required**: You must supply the document. * **OneOrMore**: You must supply at least - * one of the documents with this label. * **Optional**: You can choose to supply the document. * - * **AlternativeRequired**: You must supply a generic defense document. To enable this - * functionality, contact our Support Team. When enabled, you can supply a generic defense - * document for all schemes. - * - * @return requirementLevel Indicates to what extent the defense document is required in the - * defense process. Possible values: * **Required**: You must supply the document. * - * **OneOrMore**: You must supply at least one of the documents with this label. * - * **Optional**: You can choose to supply the document. * **AlternativeRequired**: You must - * supply a generic defense document. To enable this functionality, contact our Support Team. - * When enabled, you can supply a generic defense document for all schemes. + * Indicates to what extent the defense document is required in the defense process. Possible values: * **Required**: You must supply the document. * **OneOrMore**: You must supply at least one of the documents with this label. * **Optional**: You can choose to supply the document. * **AlternativeRequired**: You must supply a generic defense document. To enable this functionality, contact our Support Team. When enabled, you can supply a generic defense document for all schemes. + * @return requirementLevel Indicates to what extent the defense document is required in the defense process. Possible values: * **Required**: You must supply the document. * **OneOrMore**: You must supply at least one of the documents with this label. * **Optional**: You can choose to supply the document. * **AlternativeRequired**: You must supply a generic defense document. To enable this functionality, contact our Support Team. When enabled, you can supply a generic defense document for all schemes. */ @JsonProperty(JSON_PROPERTY_REQUIREMENT_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,19 +132,9 @@ public String getRequirementLevel() { } /** - * Indicates to what extent the defense document is required in the defense process. Possible - * values: * **Required**: You must supply the document. * **OneOrMore**: You must supply at least - * one of the documents with this label. * **Optional**: You can choose to supply the document. * - * **AlternativeRequired**: You must supply a generic defense document. To enable this - * functionality, contact our Support Team. When enabled, you can supply a generic defense - * document for all schemes. + * Indicates to what extent the defense document is required in the defense process. Possible values: * **Required**: You must supply the document. * **OneOrMore**: You must supply at least one of the documents with this label. * **Optional**: You can choose to supply the document. * **AlternativeRequired**: You must supply a generic defense document. To enable this functionality, contact our Support Team. When enabled, you can supply a generic defense document for all schemes. * - * @param requirementLevel Indicates to what extent the defense document is required in the - * defense process. Possible values: * **Required**: You must supply the document. * - * **OneOrMore**: You must supply at least one of the documents with this label. * - * **Optional**: You can choose to supply the document. * **AlternativeRequired**: You must - * supply a generic defense document. To enable this functionality, contact our Support Team. - * When enabled, you can supply a generic defense document for all schemes. + * @param requirementLevel Indicates to what extent the defense document is required in the defense process. Possible values: * **Required**: You must supply the document. * **OneOrMore**: You must supply at least one of the documents with this label. * **Optional**: You can choose to supply the document. * **AlternativeRequired**: You must supply a generic defense document. To enable this functionality, contact our Support Team. When enabled, you can supply a generic defense document for all schemes. */ @JsonProperty(JSON_PROPERTY_REQUIREMENT_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -170,7 +142,9 @@ public void setRequirementLevel(String requirementLevel) { this.requirementLevel = requirementLevel; } - /** Return true if this DefenseDocumentType object is equal to o. */ + /** + * Return true if this DefenseDocumentType object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -180,9 +154,9 @@ public boolean equals(Object o) { return false; } DefenseDocumentType defenseDocumentType = (DefenseDocumentType) o; - return Objects.equals(this.available, defenseDocumentType.available) - && Objects.equals(this.defenseDocumentTypeCode, defenseDocumentType.defenseDocumentTypeCode) - && Objects.equals(this.requirementLevel, defenseDocumentType.requirementLevel); + return Objects.equals(this.available, defenseDocumentType.available) && + Objects.equals(this.defenseDocumentTypeCode, defenseDocumentType.defenseDocumentTypeCode) && + Objects.equals(this.requirementLevel, defenseDocumentType.requirementLevel); } @Override @@ -195,16 +169,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DefenseDocumentType {\n"); sb.append(" available: ").append(toIndentedString(available)).append("\n"); - sb.append(" defenseDocumentTypeCode: ") - .append(toIndentedString(defenseDocumentTypeCode)) - .append("\n"); + sb.append(" defenseDocumentTypeCode: ").append(toIndentedString(defenseDocumentTypeCode)).append("\n"); sb.append(" requirementLevel: ").append(toIndentedString(requirementLevel)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -213,23 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DefenseDocumentType given an JSON string * * @param jsonString JSON string * @return An instance of DefenseDocumentType - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DefenseDocumentType + * @throws JsonProcessingException if the JSON string is invalid with respect to DefenseDocumentType */ public static DefenseDocumentType fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DefenseDocumentType.class); } - - /** - * Convert an instance of DefenseDocumentType to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DefenseDocumentType to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputes/DefenseReason.java b/src/main/java/com/adyen/model/disputes/DefenseReason.java index 326bd6d1c..d652bf257 100644 --- a/src/main/java/com/adyen/model/disputes/DefenseReason.java +++ b/src/main/java/com/adyen/model/disputes/DefenseReason.java @@ -2,29 +2,40 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.disputes; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.disputes.DefenseDocumentType; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** DefenseReason */ +/** + * DefenseReason + */ @JsonPropertyOrder({ DefenseReason.JSON_PROPERTY_DEFENSE_DOCUMENT_TYPES, DefenseReason.JSON_PROPERTY_DEFENSE_REASON_CODE, DefenseReason.JSON_PROPERTY_SATISFIED }) + public class DefenseReason { public static final String JSON_PROPERTY_DEFENSE_DOCUMENT_TYPES = "defenseDocumentTypes"; private List defenseDocumentTypes; @@ -35,15 +46,13 @@ public class DefenseReason { public static final String JSON_PROPERTY_SATISFIED = "satisfied"; private Boolean satisfied; - public DefenseReason() {} + public DefenseReason() { + } /** - * Array of defense document types for a specific defense reason. Indicates the document types - * that you can submit to the schemes to defend this dispute, and whether they are required. + * Array of defense document types for a specific defense reason. Indicates the document types that you can submit to the schemes to defend this dispute, and whether they are required. * - * @param defenseDocumentTypes Array of defense document types for a specific defense reason. - * Indicates the document types that you can submit to the schemes to defend this dispute, and - * whether they are required. + * @param defenseDocumentTypes Array of defense document types for a specific defense reason. Indicates the document types that you can submit to the schemes to defend this dispute, and whether they are required. * @return the current {@code DefenseReason} instance, allowing for method chaining */ public DefenseReason defenseDocumentTypes(List defenseDocumentTypes) { @@ -60,12 +69,8 @@ public DefenseReason addDefenseDocumentTypesItem(DefenseDocumentType defenseDocu } /** - * Array of defense document types for a specific defense reason. Indicates the document types - * that you can submit to the schemes to defend this dispute, and whether they are required. - * - * @return defenseDocumentTypes Array of defense document types for a specific defense reason. - * Indicates the document types that you can submit to the schemes to defend this dispute, and - * whether they are required. + * Array of defense document types for a specific defense reason. Indicates the document types that you can submit to the schemes to defend this dispute, and whether they are required. + * @return defenseDocumentTypes Array of defense document types for a specific defense reason. Indicates the document types that you can submit to the schemes to defend this dispute, and whether they are required. */ @JsonProperty(JSON_PROPERTY_DEFENSE_DOCUMENT_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -74,12 +79,9 @@ public List getDefenseDocumentTypes() { } /** - * Array of defense document types for a specific defense reason. Indicates the document types - * that you can submit to the schemes to defend this dispute, and whether they are required. + * Array of defense document types for a specific defense reason. Indicates the document types that you can submit to the schemes to defend this dispute, and whether they are required. * - * @param defenseDocumentTypes Array of defense document types for a specific defense reason. - * Indicates the document types that you can submit to the schemes to defend this dispute, and - * whether they are required. + * @param defenseDocumentTypes Array of defense document types for a specific defense reason. Indicates the document types that you can submit to the schemes to defend this dispute, and whether they are required. */ @JsonProperty(JSON_PROPERTY_DEFENSE_DOCUMENT_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,7 +102,6 @@ public DefenseReason defenseReasonCode(String defenseReasonCode) { /** * The defense reason code that was selected to defend this dispute. - * * @return defenseReasonCode The defense reason code that was selected to defend this dispute. */ @JsonProperty(JSON_PROPERTY_DEFENSE_REASON_CODE) @@ -133,7 +134,6 @@ public DefenseReason satisfied(Boolean satisfied) { /** * Indicates if sufficient defense material has been supplied. - * * @return satisfied Indicates if sufficient defense material has been supplied. */ @JsonProperty(JSON_PROPERTY_SATISFIED) @@ -153,7 +153,9 @@ public void setSatisfied(Boolean satisfied) { this.satisfied = satisfied; } - /** Return true if this DefenseReason object is equal to o. */ + /** + * Return true if this DefenseReason object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -163,9 +165,9 @@ public boolean equals(Object o) { return false; } DefenseReason defenseReason = (DefenseReason) o; - return Objects.equals(this.defenseDocumentTypes, defenseReason.defenseDocumentTypes) - && Objects.equals(this.defenseReasonCode, defenseReason.defenseReasonCode) - && Objects.equals(this.satisfied, defenseReason.satisfied); + return Objects.equals(this.defenseDocumentTypes, defenseReason.defenseDocumentTypes) && + Objects.equals(this.defenseReasonCode, defenseReason.defenseReasonCode) && + Objects.equals(this.satisfied, defenseReason.satisfied); } @Override @@ -177,9 +179,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DefenseReason {\n"); - sb.append(" defenseDocumentTypes: ") - .append(toIndentedString(defenseDocumentTypes)) - .append("\n"); + sb.append(" defenseDocumentTypes: ").append(toIndentedString(defenseDocumentTypes)).append("\n"); sb.append(" defenseReasonCode: ").append(toIndentedString(defenseReasonCode)).append("\n"); sb.append(" satisfied: ").append(toIndentedString(satisfied)).append("\n"); sb.append("}"); @@ -187,7 +187,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -196,7 +197,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DefenseReason given an JSON string * * @param jsonString JSON string @@ -206,12 +207,11 @@ private String toIndentedString(Object o) { public static DefenseReason fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DefenseReason.class); } - - /** - * Convert an instance of DefenseReason to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DefenseReason to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputes/DefenseReasonsRequest.java b/src/main/java/com/adyen/model/disputes/DefenseReasonsRequest.java index 44632e0b6..3e05503af 100644 --- a/src/main/java/com/adyen/model/disputes/DefenseReasonsRequest.java +++ b/src/main/java/com/adyen/model/disputes/DefenseReasonsRequest.java @@ -2,26 +2,36 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.disputes; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** DefenseReasonsRequest */ + +/** + * DefenseReasonsRequest + */ @JsonPropertyOrder({ DefenseReasonsRequest.JSON_PROPERTY_DISPUTE_PSP_REFERENCE, DefenseReasonsRequest.JSON_PROPERTY_MERCHANT_ACCOUNT_CODE }) + public class DefenseReasonsRequest { public static final String JSON_PROPERTY_DISPUTE_PSP_REFERENCE = "disputePspReference"; private String disputePspReference; @@ -29,7 +39,8 @@ public class DefenseReasonsRequest { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT_CODE = "merchantAccountCode"; private String merchantAccountCode; - public DefenseReasonsRequest() {} + public DefenseReasonsRequest() { + } /** * The PSP reference assigned to the dispute. @@ -44,7 +55,6 @@ public DefenseReasonsRequest disputePspReference(String disputePspReference) { /** * The PSP reference assigned to the dispute. - * * @return disputePspReference The PSP reference assigned to the dispute. */ @JsonProperty(JSON_PROPERTY_DISPUTE_PSP_REFERENCE) @@ -67,8 +77,7 @@ public void setDisputePspReference(String disputePspReference) { /** * The merchant account identifier, for which you want to process the dispute transaction. * - * @param merchantAccountCode The merchant account identifier, for which you want to process the - * dispute transaction. + * @param merchantAccountCode The merchant account identifier, for which you want to process the dispute transaction. * @return the current {@code DefenseReasonsRequest} instance, allowing for method chaining */ public DefenseReasonsRequest merchantAccountCode(String merchantAccountCode) { @@ -78,9 +87,7 @@ public DefenseReasonsRequest merchantAccountCode(String merchantAccountCode) { /** * The merchant account identifier, for which you want to process the dispute transaction. - * - * @return merchantAccountCode The merchant account identifier, for which you want to process the - * dispute transaction. + * @return merchantAccountCode The merchant account identifier, for which you want to process the dispute transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -91,8 +98,7 @@ public String getMerchantAccountCode() { /** * The merchant account identifier, for which you want to process the dispute transaction. * - * @param merchantAccountCode The merchant account identifier, for which you want to process the - * dispute transaction. + * @param merchantAccountCode The merchant account identifier, for which you want to process the dispute transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,7 +106,9 @@ public void setMerchantAccountCode(String merchantAccountCode) { this.merchantAccountCode = merchantAccountCode; } - /** Return true if this DefenseReasonsRequest object is equal to o. */ + /** + * Return true if this DefenseReasonsRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -110,8 +118,8 @@ public boolean equals(Object o) { return false; } DefenseReasonsRequest defenseReasonsRequest = (DefenseReasonsRequest) o; - return Objects.equals(this.disputePspReference, defenseReasonsRequest.disputePspReference) - && Objects.equals(this.merchantAccountCode, defenseReasonsRequest.merchantAccountCode); + return Objects.equals(this.disputePspReference, defenseReasonsRequest.disputePspReference) && + Objects.equals(this.merchantAccountCode, defenseReasonsRequest.merchantAccountCode); } @Override @@ -123,18 +131,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DefenseReasonsRequest {\n"); - sb.append(" disputePspReference: ") - .append(toIndentedString(disputePspReference)) - .append("\n"); - sb.append(" merchantAccountCode: ") - .append(toIndentedString(merchantAccountCode)) - .append("\n"); + sb.append(" disputePspReference: ").append(toIndentedString(disputePspReference)).append("\n"); + sb.append(" merchantAccountCode: ").append(toIndentedString(merchantAccountCode)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -143,23 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DefenseReasonsRequest given an JSON string * * @param jsonString JSON string * @return An instance of DefenseReasonsRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DefenseReasonsRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to DefenseReasonsRequest */ public static DefenseReasonsRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DefenseReasonsRequest.class); } - - /** - * Convert an instance of DefenseReasonsRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DefenseReasonsRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputes/DefenseReasonsResponse.java b/src/main/java/com/adyen/model/disputes/DefenseReasonsResponse.java index 101b2c02c..f1266a020 100644 --- a/src/main/java/com/adyen/model/disputes/DefenseReasonsResponse.java +++ b/src/main/java/com/adyen/model/disputes/DefenseReasonsResponse.java @@ -2,28 +2,40 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.disputes; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.disputes.DefenseReason; +import com.adyen.model.disputes.DisputeServiceResult; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** DefenseReasonsResponse */ +/** + * DefenseReasonsResponse + */ @JsonPropertyOrder({ DefenseReasonsResponse.JSON_PROPERTY_DEFENSE_REASONS, DefenseReasonsResponse.JSON_PROPERTY_DISPUTE_SERVICE_RESULT }) + public class DefenseReasonsResponse { public static final String JSON_PROPERTY_DEFENSE_REASONS = "defenseReasons"; private List defenseReasons; @@ -31,7 +43,8 @@ public class DefenseReasonsResponse { public static final String JSON_PROPERTY_DISPUTE_SERVICE_RESULT = "disputeServiceResult"; private DisputeServiceResult disputeServiceResult; - public DefenseReasonsResponse() {} + public DefenseReasonsResponse() { + } /** * The defense reasons that can be used to defend the dispute. @@ -54,7 +67,6 @@ public DefenseReasonsResponse addDefenseReasonsItem(DefenseReason defenseReasons /** * The defense reasons that can be used to defend the dispute. - * * @return defenseReasons The defense reasons that can be used to defend the dispute. */ @JsonProperty(JSON_PROPERTY_DEFENSE_REASONS) @@ -77,7 +89,7 @@ public void setDefenseReasons(List defenseReasons) { /** * disputeServiceResult * - * @param disputeServiceResult + * @param disputeServiceResult * @return the current {@code DefenseReasonsResponse} instance, allowing for method chaining */ public DefenseReasonsResponse disputeServiceResult(DisputeServiceResult disputeServiceResult) { @@ -87,8 +99,7 @@ public DefenseReasonsResponse disputeServiceResult(DisputeServiceResult disputeS /** * Get disputeServiceResult - * - * @return disputeServiceResult + * @return disputeServiceResult */ @JsonProperty(JSON_PROPERTY_DISPUTE_SERVICE_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,7 +110,7 @@ public DisputeServiceResult getDisputeServiceResult() { /** * disputeServiceResult * - * @param disputeServiceResult + * @param disputeServiceResult */ @JsonProperty(JSON_PROPERTY_DISPUTE_SERVICE_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,7 +118,9 @@ public void setDisputeServiceResult(DisputeServiceResult disputeServiceResult) { this.disputeServiceResult = disputeServiceResult; } - /** Return true if this DefenseReasonsResponse object is equal to o. */ + /** + * Return true if this DefenseReasonsResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -117,8 +130,8 @@ public boolean equals(Object o) { return false; } DefenseReasonsResponse defenseReasonsResponse = (DefenseReasonsResponse) o; - return Objects.equals(this.defenseReasons, defenseReasonsResponse.defenseReasons) - && Objects.equals(this.disputeServiceResult, defenseReasonsResponse.disputeServiceResult); + return Objects.equals(this.defenseReasons, defenseReasonsResponse.defenseReasons) && + Objects.equals(this.disputeServiceResult, defenseReasonsResponse.disputeServiceResult); } @Override @@ -131,15 +144,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DefenseReasonsResponse {\n"); sb.append(" defenseReasons: ").append(toIndentedString(defenseReasons)).append("\n"); - sb.append(" disputeServiceResult: ") - .append(toIndentedString(disputeServiceResult)) - .append("\n"); + sb.append(" disputeServiceResult: ").append(toIndentedString(disputeServiceResult)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,23 +160,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DefenseReasonsResponse given an JSON string * * @param jsonString JSON string * @return An instance of DefenseReasonsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DefenseReasonsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to DefenseReasonsResponse */ public static DefenseReasonsResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DefenseReasonsResponse.class); } - - /** - * Convert an instance of DefenseReasonsResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DefenseReasonsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputes/DeleteDefenseDocumentRequest.java b/src/main/java/com/adyen/model/disputes/DeleteDefenseDocumentRequest.java index ff04185ed..9b57ea7fd 100644 --- a/src/main/java/com/adyen/model/disputes/DeleteDefenseDocumentRequest.java +++ b/src/main/java/com/adyen/model/disputes/DeleteDefenseDocumentRequest.java @@ -2,27 +2,37 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.disputes; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** DeleteDefenseDocumentRequest */ + +/** + * DeleteDefenseDocumentRequest + */ @JsonPropertyOrder({ DeleteDefenseDocumentRequest.JSON_PROPERTY_DEFENSE_DOCUMENT_TYPE, DeleteDefenseDocumentRequest.JSON_PROPERTY_DISPUTE_PSP_REFERENCE, DeleteDefenseDocumentRequest.JSON_PROPERTY_MERCHANT_ACCOUNT_CODE }) + public class DeleteDefenseDocumentRequest { public static final String JSON_PROPERTY_DEFENSE_DOCUMENT_TYPE = "defenseDocumentType"; private String defenseDocumentType; @@ -33,7 +43,8 @@ public class DeleteDefenseDocumentRequest { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT_CODE = "merchantAccountCode"; private String merchantAccountCode; - public DeleteDefenseDocumentRequest() {} + public DeleteDefenseDocumentRequest() { + } /** * The document type code of the defense document. @@ -48,7 +59,6 @@ public DeleteDefenseDocumentRequest defenseDocumentType(String defenseDocumentTy /** * The document type code of the defense document. - * * @return defenseDocumentType The document type code of the defense document. */ @JsonProperty(JSON_PROPERTY_DEFENSE_DOCUMENT_TYPE) @@ -81,7 +91,6 @@ public DeleteDefenseDocumentRequest disputePspReference(String disputePspReferen /** * The PSP reference assigned to the dispute. - * * @return disputePspReference The PSP reference assigned to the dispute. */ @JsonProperty(JSON_PROPERTY_DISPUTE_PSP_REFERENCE) @@ -104,8 +113,7 @@ public void setDisputePspReference(String disputePspReference) { /** * The merchant account identifier, for which you want to process the dispute transaction. * - * @param merchantAccountCode The merchant account identifier, for which you want to process the - * dispute transaction. + * @param merchantAccountCode The merchant account identifier, for which you want to process the dispute transaction. * @return the current {@code DeleteDefenseDocumentRequest} instance, allowing for method chaining */ public DeleteDefenseDocumentRequest merchantAccountCode(String merchantAccountCode) { @@ -115,9 +123,7 @@ public DeleteDefenseDocumentRequest merchantAccountCode(String merchantAccountCo /** * The merchant account identifier, for which you want to process the dispute transaction. - * - * @return merchantAccountCode The merchant account identifier, for which you want to process the - * dispute transaction. + * @return merchantAccountCode The merchant account identifier, for which you want to process the dispute transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,8 +134,7 @@ public String getMerchantAccountCode() { /** * The merchant account identifier, for which you want to process the dispute transaction. * - * @param merchantAccountCode The merchant account identifier, for which you want to process the - * dispute transaction. + * @param merchantAccountCode The merchant account identifier, for which you want to process the dispute transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,7 +142,9 @@ public void setMerchantAccountCode(String merchantAccountCode) { this.merchantAccountCode = merchantAccountCode; } - /** Return true if this DeleteDefenseDocumentRequest object is equal to o. */ + /** + * Return true if this DeleteDefenseDocumentRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -147,12 +154,9 @@ public boolean equals(Object o) { return false; } DeleteDefenseDocumentRequest deleteDefenseDocumentRequest = (DeleteDefenseDocumentRequest) o; - return Objects.equals( - this.defenseDocumentType, deleteDefenseDocumentRequest.defenseDocumentType) - && Objects.equals( - this.disputePspReference, deleteDefenseDocumentRequest.disputePspReference) - && Objects.equals( - this.merchantAccountCode, deleteDefenseDocumentRequest.merchantAccountCode); + return Objects.equals(this.defenseDocumentType, deleteDefenseDocumentRequest.defenseDocumentType) && + Objects.equals(this.disputePspReference, deleteDefenseDocumentRequest.disputePspReference) && + Objects.equals(this.merchantAccountCode, deleteDefenseDocumentRequest.merchantAccountCode); } @Override @@ -164,21 +168,16 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeleteDefenseDocumentRequest {\n"); - sb.append(" defenseDocumentType: ") - .append(toIndentedString(defenseDocumentType)) - .append("\n"); - sb.append(" disputePspReference: ") - .append(toIndentedString(disputePspReference)) - .append("\n"); - sb.append(" merchantAccountCode: ") - .append(toIndentedString(merchantAccountCode)) - .append("\n"); + sb.append(" defenseDocumentType: ").append(toIndentedString(defenseDocumentType)).append("\n"); + sb.append(" disputePspReference: ").append(toIndentedString(disputePspReference)).append("\n"); + sb.append(" merchantAccountCode: ").append(toIndentedString(merchantAccountCode)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -187,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DeleteDefenseDocumentRequest given an JSON string * * @param jsonString JSON string * @return An instance of DeleteDefenseDocumentRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DeleteDefenseDocumentRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to DeleteDefenseDocumentRequest */ - public static DeleteDefenseDocumentRequest fromJson(String jsonString) - throws JsonProcessingException { + public static DeleteDefenseDocumentRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DeleteDefenseDocumentRequest.class); } - - /** - * Convert an instance of DeleteDefenseDocumentRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DeleteDefenseDocumentRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputes/DeleteDefenseDocumentResponse.java b/src/main/java/com/adyen/model/disputes/DeleteDefenseDocumentResponse.java index 65526c3a0..e8714ad75 100644 --- a/src/main/java/com/adyen/model/disputes/DeleteDefenseDocumentResponse.java +++ b/src/main/java/com/adyen/model/disputes/DeleteDefenseDocumentResponse.java @@ -2,46 +2,57 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.disputes; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.disputes.DisputeServiceResult; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** DeleteDefenseDocumentResponse */ -@JsonPropertyOrder({DeleteDefenseDocumentResponse.JSON_PROPERTY_DISPUTE_SERVICE_RESULT}) + +/** + * DeleteDefenseDocumentResponse + */ +@JsonPropertyOrder({ + DeleteDefenseDocumentResponse.JSON_PROPERTY_DISPUTE_SERVICE_RESULT +}) + public class DeleteDefenseDocumentResponse { public static final String JSON_PROPERTY_DISPUTE_SERVICE_RESULT = "disputeServiceResult"; private DisputeServiceResult disputeServiceResult; - public DeleteDefenseDocumentResponse() {} + public DeleteDefenseDocumentResponse() { + } /** * disputeServiceResult * - * @param disputeServiceResult - * @return the current {@code DeleteDefenseDocumentResponse} instance, allowing for method - * chaining + * @param disputeServiceResult + * @return the current {@code DeleteDefenseDocumentResponse} instance, allowing for method chaining */ - public DeleteDefenseDocumentResponse disputeServiceResult( - DisputeServiceResult disputeServiceResult) { + public DeleteDefenseDocumentResponse disputeServiceResult(DisputeServiceResult disputeServiceResult) { this.disputeServiceResult = disputeServiceResult; return this; } /** * Get disputeServiceResult - * - * @return disputeServiceResult + * @return disputeServiceResult */ @JsonProperty(JSON_PROPERTY_DISPUTE_SERVICE_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -52,7 +63,7 @@ public DisputeServiceResult getDisputeServiceResult() { /** * disputeServiceResult * - * @param disputeServiceResult + * @param disputeServiceResult */ @JsonProperty(JSON_PROPERTY_DISPUTE_SERVICE_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,7 +71,9 @@ public void setDisputeServiceResult(DisputeServiceResult disputeServiceResult) { this.disputeServiceResult = disputeServiceResult; } - /** Return true if this DeleteDefenseDocumentResponse object is equal to o. */ + /** + * Return true if this DeleteDefenseDocumentResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -70,8 +83,7 @@ public boolean equals(Object o) { return false; } DeleteDefenseDocumentResponse deleteDefenseDocumentResponse = (DeleteDefenseDocumentResponse) o; - return Objects.equals( - this.disputeServiceResult, deleteDefenseDocumentResponse.disputeServiceResult); + return Objects.equals(this.disputeServiceResult, deleteDefenseDocumentResponse.disputeServiceResult); } @Override @@ -83,15 +95,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeleteDefenseDocumentResponse {\n"); - sb.append(" disputeServiceResult: ") - .append(toIndentedString(disputeServiceResult)) - .append("\n"); + sb.append(" disputeServiceResult: ").append(toIndentedString(disputeServiceResult)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -100,24 +111,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DeleteDefenseDocumentResponse given an JSON string * * @param jsonString JSON string * @return An instance of DeleteDefenseDocumentResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DeleteDefenseDocumentResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to DeleteDefenseDocumentResponse */ - public static DeleteDefenseDocumentResponse fromJson(String jsonString) - throws JsonProcessingException { + public static DeleteDefenseDocumentResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DeleteDefenseDocumentResponse.class); } - - /** - * Convert an instance of DeleteDefenseDocumentResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DeleteDefenseDocumentResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputes/DisputeServiceResult.java b/src/main/java/com/adyen/model/disputes/DisputeServiceResult.java index b975f1173..7c1fe08ef 100644 --- a/src/main/java/com/adyen/model/disputes/DisputeServiceResult.java +++ b/src/main/java/com/adyen/model/disputes/DisputeServiceResult.java @@ -2,26 +2,36 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.disputes; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** DisputeServiceResult */ + +/** + * DisputeServiceResult + */ @JsonPropertyOrder({ DisputeServiceResult.JSON_PROPERTY_ERROR_MESSAGE, DisputeServiceResult.JSON_PROPERTY_SUCCESS }) + public class DisputeServiceResult { public static final String JSON_PROPERTY_ERROR_MESSAGE = "errorMessage"; private String errorMessage; @@ -29,7 +39,8 @@ public class DisputeServiceResult { public static final String JSON_PROPERTY_SUCCESS = "success"; private Boolean success; - public DisputeServiceResult() {} + public DisputeServiceResult() { + } /** * The general error message. @@ -44,7 +55,6 @@ public DisputeServiceResult errorMessage(String errorMessage) { /** * The general error message. - * * @return errorMessage The general error message. */ @JsonProperty(JSON_PROPERTY_ERROR_MESSAGE) @@ -77,7 +87,6 @@ public DisputeServiceResult success(Boolean success) { /** * Indicates whether the request succeeded. - * * @return success Indicates whether the request succeeded. */ @JsonProperty(JSON_PROPERTY_SUCCESS) @@ -97,7 +106,9 @@ public void setSuccess(Boolean success) { this.success = success; } - /** Return true if this DisputeServiceResult object is equal to o. */ + /** + * Return true if this DisputeServiceResult object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -107,8 +118,8 @@ public boolean equals(Object o) { return false; } DisputeServiceResult disputeServiceResult = (DisputeServiceResult) o; - return Objects.equals(this.errorMessage, disputeServiceResult.errorMessage) - && Objects.equals(this.success, disputeServiceResult.success); + return Objects.equals(this.errorMessage, disputeServiceResult.errorMessage) && + Objects.equals(this.success, disputeServiceResult.success); } @Override @@ -127,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,23 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DisputeServiceResult given an JSON string * * @param jsonString JSON string * @return An instance of DisputeServiceResult - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DisputeServiceResult + * @throws JsonProcessingException if the JSON string is invalid with respect to DisputeServiceResult */ public static DisputeServiceResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DisputeServiceResult.class); } - - /** - * Convert an instance of DisputeServiceResult to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DisputeServiceResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputes/JSON.java b/src/main/java/com/adyen/model/disputes/JSON.java index 7b749e401..4c0929ca5 100644 --- a/src/main/java/com/adyen/model/disputes/JSON.java +++ b/src/main/java/com/adyen/model/disputes/JSON.java @@ -1,18 +1,21 @@ package com.adyen.model.disputes; -import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; +import com.adyen.serializer.ByteArrayDeserializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; +import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; +import com.adyen.model.disputes.*; + import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -37,7 +40,6 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. - * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -54,13 +56,11 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { - return mapper; - } + public static ObjectMapper getMapper() { return mapper; } /** - * Returns the target model class that should be used to deserialize the input data. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,7 +73,9 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** Helper class to register the discriminator mappings. */ + /** + * Helper class to register the discriminator mappings. + */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -115,9 +117,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. This - * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -162,14 +164,13 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so - * it's not possible to use the instanceof keyword. + * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, + * so it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf( - Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -193,58 +194,59 @@ public static boolean isInstanceOf( return false; } - /** A map of discriminators for all model classes. */ - private static final Map, ClassDiscriminatorMapping> modelDiscriminators = - new HashMap, ClassDiscriminatorMapping>(); + /** + * A map of discriminators for all model classes. + */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); - /** A map of oneOf/anyOf descendants for each model class. */ + /** + * A map of oneOf/anyOf descendants for each model class. + */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator( - Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = - new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants( - Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants(Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static { + static + { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/disputes/ServiceError.java b/src/main/java/com/adyen/model/disputes/ServiceError.java index d8f51bd6d..d297dbfcd 100644 --- a/src/main/java/com/adyen/model/disputes/ServiceError.java +++ b/src/main/java/com/adyen/model/disputes/ServiceError.java @@ -2,22 +2,31 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.disputes; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ServiceError */ + +/** + * ServiceError + */ @JsonPropertyOrder({ ServiceError.JSON_PROPERTY_ERROR_CODE, ServiceError.JSON_PROPERTY_ERROR_TYPE, @@ -25,6 +34,7 @@ ServiceError.JSON_PROPERTY_PSP_REFERENCE, ServiceError.JSON_PROPERTY_STATUS }) + public class ServiceError { public static final String JSON_PROPERTY_ERROR_CODE = "errorCode"; private String errorCode; @@ -41,7 +51,8 @@ public class ServiceError { public static final String JSON_PROPERTY_STATUS = "status"; private Integer status; - public ServiceError() {} + public ServiceError() { + } /** * The error code mapped to the error message. @@ -56,7 +67,6 @@ public ServiceError errorCode(String errorCode) { /** * The error code mapped to the error message. - * * @return errorCode The error code mapped to the error message. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -89,7 +99,6 @@ public ServiceError errorType(String errorType) { /** * The category of the error. - * * @return errorType The category of the error. */ @JsonProperty(JSON_PROPERTY_ERROR_TYPE) @@ -122,7 +131,6 @@ public ServiceError message(String message) { /** * A short explanation of the issue. - * * @return message A short explanation of the issue. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -155,7 +163,6 @@ public ServiceError pspReference(String pspReference) { /** * The PSP reference of the payment. - * * @return pspReference The PSP reference of the payment. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -188,7 +195,6 @@ public ServiceError status(Integer status) { /** * The HTTP response status. - * * @return status The HTTP response status. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -208,7 +214,9 @@ public void setStatus(Integer status) { this.status = status; } - /** Return true if this ServiceError object is equal to o. */ + /** + * Return true if this ServiceError object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -218,11 +226,11 @@ public boolean equals(Object o) { return false; } ServiceError serviceError = (ServiceError) o; - return Objects.equals(this.errorCode, serviceError.errorCode) - && Objects.equals(this.errorType, serviceError.errorType) - && Objects.equals(this.message, serviceError.message) - && Objects.equals(this.pspReference, serviceError.pspReference) - && Objects.equals(this.status, serviceError.status); + return Objects.equals(this.errorCode, serviceError.errorCode) && + Objects.equals(this.errorType, serviceError.errorType) && + Objects.equals(this.message, serviceError.message) && + Objects.equals(this.pspReference, serviceError.pspReference) && + Objects.equals(this.status, serviceError.status); } @Override @@ -244,7 +252,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -253,7 +262,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ServiceError given an JSON string * * @param jsonString JSON string @@ -263,12 +272,11 @@ private String toIndentedString(Object o) { public static ServiceError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } - - /** - * Convert an instance of ServiceError to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ServiceError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputes/SupplyDefenseDocumentRequest.java b/src/main/java/com/adyen/model/disputes/SupplyDefenseDocumentRequest.java index 26602008d..b5701ffc3 100644 --- a/src/main/java/com/adyen/model/disputes/SupplyDefenseDocumentRequest.java +++ b/src/main/java/com/adyen/model/disputes/SupplyDefenseDocumentRequest.java @@ -2,29 +2,40 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.disputes; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.disputes.DefenseDocument; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** SupplyDefenseDocumentRequest */ +/** + * SupplyDefenseDocumentRequest + */ @JsonPropertyOrder({ SupplyDefenseDocumentRequest.JSON_PROPERTY_DEFENSE_DOCUMENTS, SupplyDefenseDocumentRequest.JSON_PROPERTY_DISPUTE_PSP_REFERENCE, SupplyDefenseDocumentRequest.JSON_PROPERTY_MERCHANT_ACCOUNT_CODE }) + public class SupplyDefenseDocumentRequest { public static final String JSON_PROPERTY_DEFENSE_DOCUMENTS = "defenseDocuments"; private List defenseDocuments; @@ -35,7 +46,8 @@ public class SupplyDefenseDocumentRequest { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT_CODE = "merchantAccountCode"; private String merchantAccountCode; - public SupplyDefenseDocumentRequest() {} + public SupplyDefenseDocumentRequest() { + } /** * An array containing a list of the defense documents. @@ -48,8 +60,7 @@ public SupplyDefenseDocumentRequest defenseDocuments(List defen return this; } - public SupplyDefenseDocumentRequest addDefenseDocumentsItem( - DefenseDocument defenseDocumentsItem) { + public SupplyDefenseDocumentRequest addDefenseDocumentsItem(DefenseDocument defenseDocumentsItem) { if (this.defenseDocuments == null) { this.defenseDocuments = new ArrayList<>(); } @@ -59,7 +70,6 @@ public SupplyDefenseDocumentRequest addDefenseDocumentsItem( /** * An array containing a list of the defense documents. - * * @return defenseDocuments An array containing a list of the defense documents. */ @JsonProperty(JSON_PROPERTY_DEFENSE_DOCUMENTS) @@ -92,7 +102,6 @@ public SupplyDefenseDocumentRequest disputePspReference(String disputePspReferen /** * The PSP reference assigned to the dispute. - * * @return disputePspReference The PSP reference assigned to the dispute. */ @JsonProperty(JSON_PROPERTY_DISPUTE_PSP_REFERENCE) @@ -115,8 +124,7 @@ public void setDisputePspReference(String disputePspReference) { /** * The merchant account identifier, for which you want to process the dispute transaction. * - * @param merchantAccountCode The merchant account identifier, for which you want to process the - * dispute transaction. + * @param merchantAccountCode The merchant account identifier, for which you want to process the dispute transaction. * @return the current {@code SupplyDefenseDocumentRequest} instance, allowing for method chaining */ public SupplyDefenseDocumentRequest merchantAccountCode(String merchantAccountCode) { @@ -126,9 +134,7 @@ public SupplyDefenseDocumentRequest merchantAccountCode(String merchantAccountCo /** * The merchant account identifier, for which you want to process the dispute transaction. - * - * @return merchantAccountCode The merchant account identifier, for which you want to process the - * dispute transaction. + * @return merchantAccountCode The merchant account identifier, for which you want to process the dispute transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,8 +145,7 @@ public String getMerchantAccountCode() { /** * The merchant account identifier, for which you want to process the dispute transaction. * - * @param merchantAccountCode The merchant account identifier, for which you want to process the - * dispute transaction. + * @param merchantAccountCode The merchant account identifier, for which you want to process the dispute transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,7 +153,9 @@ public void setMerchantAccountCode(String merchantAccountCode) { this.merchantAccountCode = merchantAccountCode; } - /** Return true if this SupplyDefenseDocumentRequest object is equal to o. */ + /** + * Return true if this SupplyDefenseDocumentRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -158,11 +165,9 @@ public boolean equals(Object o) { return false; } SupplyDefenseDocumentRequest supplyDefenseDocumentRequest = (SupplyDefenseDocumentRequest) o; - return Objects.equals(this.defenseDocuments, supplyDefenseDocumentRequest.defenseDocuments) - && Objects.equals( - this.disputePspReference, supplyDefenseDocumentRequest.disputePspReference) - && Objects.equals( - this.merchantAccountCode, supplyDefenseDocumentRequest.merchantAccountCode); + return Objects.equals(this.defenseDocuments, supplyDefenseDocumentRequest.defenseDocuments) && + Objects.equals(this.disputePspReference, supplyDefenseDocumentRequest.disputePspReference) && + Objects.equals(this.merchantAccountCode, supplyDefenseDocumentRequest.merchantAccountCode); } @Override @@ -175,18 +180,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SupplyDefenseDocumentRequest {\n"); sb.append(" defenseDocuments: ").append(toIndentedString(defenseDocuments)).append("\n"); - sb.append(" disputePspReference: ") - .append(toIndentedString(disputePspReference)) - .append("\n"); - sb.append(" merchantAccountCode: ") - .append(toIndentedString(merchantAccountCode)) - .append("\n"); + sb.append(" disputePspReference: ").append(toIndentedString(disputePspReference)).append("\n"); + sb.append(" merchantAccountCode: ").append(toIndentedString(merchantAccountCode)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -195,24 +197,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SupplyDefenseDocumentRequest given an JSON string * * @param jsonString JSON string * @return An instance of SupplyDefenseDocumentRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SupplyDefenseDocumentRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to SupplyDefenseDocumentRequest */ - public static SupplyDefenseDocumentRequest fromJson(String jsonString) - throws JsonProcessingException { + public static SupplyDefenseDocumentRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SupplyDefenseDocumentRequest.class); } - - /** - * Convert an instance of SupplyDefenseDocumentRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SupplyDefenseDocumentRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputes/SupplyDefenseDocumentResponse.java b/src/main/java/com/adyen/model/disputes/SupplyDefenseDocumentResponse.java index 5290497df..a0e0ba9a2 100644 --- a/src/main/java/com/adyen/model/disputes/SupplyDefenseDocumentResponse.java +++ b/src/main/java/com/adyen/model/disputes/SupplyDefenseDocumentResponse.java @@ -2,46 +2,57 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.disputes; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.disputes.DisputeServiceResult; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** SupplyDefenseDocumentResponse */ -@JsonPropertyOrder({SupplyDefenseDocumentResponse.JSON_PROPERTY_DISPUTE_SERVICE_RESULT}) + +/** + * SupplyDefenseDocumentResponse + */ +@JsonPropertyOrder({ + SupplyDefenseDocumentResponse.JSON_PROPERTY_DISPUTE_SERVICE_RESULT +}) + public class SupplyDefenseDocumentResponse { public static final String JSON_PROPERTY_DISPUTE_SERVICE_RESULT = "disputeServiceResult"; private DisputeServiceResult disputeServiceResult; - public SupplyDefenseDocumentResponse() {} + public SupplyDefenseDocumentResponse() { + } /** * disputeServiceResult * - * @param disputeServiceResult - * @return the current {@code SupplyDefenseDocumentResponse} instance, allowing for method - * chaining + * @param disputeServiceResult + * @return the current {@code SupplyDefenseDocumentResponse} instance, allowing for method chaining */ - public SupplyDefenseDocumentResponse disputeServiceResult( - DisputeServiceResult disputeServiceResult) { + public SupplyDefenseDocumentResponse disputeServiceResult(DisputeServiceResult disputeServiceResult) { this.disputeServiceResult = disputeServiceResult; return this; } /** * Get disputeServiceResult - * - * @return disputeServiceResult + * @return disputeServiceResult */ @JsonProperty(JSON_PROPERTY_DISPUTE_SERVICE_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -52,7 +63,7 @@ public DisputeServiceResult getDisputeServiceResult() { /** * disputeServiceResult * - * @param disputeServiceResult + * @param disputeServiceResult */ @JsonProperty(JSON_PROPERTY_DISPUTE_SERVICE_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,7 +71,9 @@ public void setDisputeServiceResult(DisputeServiceResult disputeServiceResult) { this.disputeServiceResult = disputeServiceResult; } - /** Return true if this SupplyDefenseDocumentResponse object is equal to o. */ + /** + * Return true if this SupplyDefenseDocumentResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -70,8 +83,7 @@ public boolean equals(Object o) { return false; } SupplyDefenseDocumentResponse supplyDefenseDocumentResponse = (SupplyDefenseDocumentResponse) o; - return Objects.equals( - this.disputeServiceResult, supplyDefenseDocumentResponse.disputeServiceResult); + return Objects.equals(this.disputeServiceResult, supplyDefenseDocumentResponse.disputeServiceResult); } @Override @@ -83,15 +95,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SupplyDefenseDocumentResponse {\n"); - sb.append(" disputeServiceResult: ") - .append(toIndentedString(disputeServiceResult)) - .append("\n"); + sb.append(" disputeServiceResult: ").append(toIndentedString(disputeServiceResult)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -100,24 +111,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SupplyDefenseDocumentResponse given an JSON string * * @param jsonString JSON string * @return An instance of SupplyDefenseDocumentResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SupplyDefenseDocumentResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to SupplyDefenseDocumentResponse */ - public static SupplyDefenseDocumentResponse fromJson(String jsonString) - throws JsonProcessingException { + public static SupplyDefenseDocumentResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SupplyDefenseDocumentResponse.class); } - - /** - * Convert an instance of SupplyDefenseDocumentResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SupplyDefenseDocumentResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputewebhooks/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/disputewebhooks/AbstractOpenApiSchema.java index 5187ef4af..7cffce63e 100644 --- a/src/main/java/com/adyen/model/disputewebhooks/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/disputewebhooks/AbstractOpenApiSchema.java @@ -2,141 +2,145 @@ * Dispute webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.disputewebhooks; -import com.fasterxml.jackson.annotation.JsonValue; -import jakarta.ws.rs.core.GenericType; -import java.util.Map; import java.util.Objects; +import java.util.Map; +import jakarta.ws.rs.core.GenericType; -/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec + */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() { - return instance; - } - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) { - this.instance = instance; - } - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf - * schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); - } else { - return object.getActualInstance(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() {return instance;} + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) {this.instance = instance;} + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); + } else { + return object.getActualInstance(); + } + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) && + Objects.equals(this.isNullable, a.isNullable) && + Objects.equals(this.schemaType, a.schemaType); } - return o.toString().replace("\n", "\n "); - } - public boolean equals(Object o) { - if (this == o) { - return true; + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); } - if (o == null || getClass() != o.getClass()) { - return false; + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) - && Objects.equals(this.isNullable, a.isNullable) - && Objects.equals(this.schemaType, a.schemaType); - } - - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); - } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); - } -} + + + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/disputewebhooks/Amount.java b/src/main/java/com/adyen/model/disputewebhooks/Amount.java index a9259cf49..797fdfeae 100644 --- a/src/main/java/com/adyen/model/disputewebhooks/Amount.java +++ b/src/main/java/com/adyen/model/disputewebhooks/Amount.java @@ -2,23 +2,36 @@ * Dispute webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.disputewebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Amount */ -@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) + +/** + * Amount + */ +@JsonPropertyOrder({ + Amount.JSON_PROPERTY_CURRENCY, + Amount.JSON_PROPERTY_VALUE +}) + public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -26,14 +39,13 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() {} + public Amount() { + } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount currency(String currency) { @@ -42,11 +54,8 @@ public Amount currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -55,11 +64,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,11 +75,9 @@ public void setCurrency(String currency) { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount value(Long value) { @@ -81,11 +86,8 @@ public Amount value(Long value) { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). - * - * @return value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @return value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,11 +96,9 @@ public Long getValue() { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,7 +106,9 @@ public void setValue(Long value) { this.value = value; } - /** Return true if this Amount object is equal to o. */ + /** + * Return true if this Amount object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -116,8 +118,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) - && Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) && + Objects.equals(this.value, amount.value); } @Override @@ -136,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -155,12 +158,11 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } - - /** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputewebhooks/BalancePlatformNotificationResponse.java b/src/main/java/com/adyen/model/disputewebhooks/BalancePlatformNotificationResponse.java index 4423e0810..277b25d8b 100644 --- a/src/main/java/com/adyen/model/disputewebhooks/BalancePlatformNotificationResponse.java +++ b/src/main/java/com/adyen/model/disputewebhooks/BalancePlatformNotificationResponse.java @@ -2,37 +2,47 @@ * Dispute webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.disputewebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** BalancePlatformNotificationResponse */ -@JsonPropertyOrder({BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) + +/** + * BalancePlatformNotificationResponse + */ +@JsonPropertyOrder({ + BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE +}) + public class BalancePlatformNotificationResponse { public static final String JSON_PROPERTY_NOTIFICATION_RESPONSE = "notificationResponse"; private String notificationResponse; - public BalancePlatformNotificationResponse() {} + public BalancePlatformNotificationResponse() { + } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). - * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method - * chaining + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method chaining */ public BalancePlatformNotificationResponse notificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; @@ -40,11 +50,8 @@ public BalancePlatformNotificationResponse notificationResponse(String notificat } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). - * - * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -53,11 +60,9 @@ public String getNotificationResponse() { } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -65,7 +70,9 @@ public void setNotificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; } - /** Return true if this BalancePlatformNotificationResponse object is equal to o. */ + /** + * Return true if this BalancePlatformNotificationResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -74,10 +81,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - BalancePlatformNotificationResponse balancePlatformNotificationResponse = - (BalancePlatformNotificationResponse) o; - return Objects.equals( - this.notificationResponse, balancePlatformNotificationResponse.notificationResponse); + BalancePlatformNotificationResponse balancePlatformNotificationResponse = (BalancePlatformNotificationResponse) o; + return Objects.equals(this.notificationResponse, balancePlatformNotificationResponse.notificationResponse); } @Override @@ -89,15 +94,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BalancePlatformNotificationResponse {\n"); - sb.append(" notificationResponse: ") - .append(toIndentedString(notificationResponse)) - .append("\n"); + sb.append(" notificationResponse: ").append(toIndentedString(notificationResponse)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -106,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BalancePlatformNotificationResponse given an JSON string * * @param jsonString JSON string * @return An instance of BalancePlatformNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BalancePlatformNotificationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to BalancePlatformNotificationResponse */ - public static BalancePlatformNotificationResponse fromJson(String jsonString) - throws JsonProcessingException { + public static BalancePlatformNotificationResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalancePlatformNotificationResponse.class); } - - /** - * Convert an instance of BalancePlatformNotificationResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BalancePlatformNotificationResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputewebhooks/DisputeEventNotification.java b/src/main/java/com/adyen/model/disputewebhooks/DisputeEventNotification.java index 3ddb164b0..074e956ea 100644 --- a/src/main/java/com/adyen/model/disputewebhooks/DisputeEventNotification.java +++ b/src/main/java/com/adyen/model/disputewebhooks/DisputeEventNotification.java @@ -2,27 +2,33 @@ * Dispute webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.disputewebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.disputewebhooks.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** DisputeEventNotification */ +/** + * DisputeEventNotification + */ @JsonPropertyOrder({ DisputeEventNotification.JSON_PROPERTY_ARN, DisputeEventNotification.JSON_PROPERTY_BALANCE_PLATFORM, @@ -35,6 +41,7 @@ DisputeEventNotification.JSON_PROPERTY_TRANSACTION_ID, DisputeEventNotification.JSON_PROPERTY_TYPE }) + public class DisputeEventNotification { public static final String JSON_PROPERTY_ARN = "arn"; private String arn; @@ -63,8 +70,11 @@ public class DisputeEventNotification { public static final String JSON_PROPERTY_TRANSACTION_ID = "transactionId"; private String transactionId; - /** The type of dispute raised for the transaction. */ + /** + * The type of dispute raised for the transaction. + */ public enum TypeEnum { + FRAUD(String.valueOf("fraud")), NOTDELIVERED(String.valueOf("notDelivered")), @@ -76,7 +86,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -97,11 +107,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -109,14 +115,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public DisputeEventNotification() {} + public DisputeEventNotification() { + } /** - * The unique Acquirer Reference Number (arn) generated by the card scheme for each capture. You - * can use the arn to trace the transaction through its lifecycle. + * The unique Acquirer Reference Number (arn) generated by the card scheme for each capture. You can use the arn to trace the transaction through its lifecycle. * - * @param arn The unique Acquirer Reference Number (arn) generated by the card scheme for each - * capture. You can use the arn to trace the transaction through its lifecycle. + * @param arn The unique Acquirer Reference Number (arn) generated by the card scheme for each capture. You can use the arn to trace the transaction through its lifecycle. * @return the current {@code DisputeEventNotification} instance, allowing for method chaining */ public DisputeEventNotification arn(String arn) { @@ -125,11 +130,8 @@ public DisputeEventNotification arn(String arn) { } /** - * The unique Acquirer Reference Number (arn) generated by the card scheme for each capture. You - * can use the arn to trace the transaction through its lifecycle. - * - * @return arn The unique Acquirer Reference Number (arn) generated by the card scheme for each - * capture. You can use the arn to trace the transaction through its lifecycle. + * The unique Acquirer Reference Number (arn) generated by the card scheme for each capture. You can use the arn to trace the transaction through its lifecycle. + * @return arn The unique Acquirer Reference Number (arn) generated by the card scheme for each capture. You can use the arn to trace the transaction through its lifecycle. */ @JsonProperty(JSON_PROPERTY_ARN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,11 +140,9 @@ public String getArn() { } /** - * The unique Acquirer Reference Number (arn) generated by the card scheme for each capture. You - * can use the arn to trace the transaction through its lifecycle. + * The unique Acquirer Reference Number (arn) generated by the card scheme for each capture. You can use the arn to trace the transaction through its lifecycle. * - * @param arn The unique Acquirer Reference Number (arn) generated by the card scheme for each - * capture. You can use the arn to trace the transaction through its lifecycle. + * @param arn The unique Acquirer Reference Number (arn) generated by the card scheme for each capture. You can use the arn to trace the transaction through its lifecycle. */ @JsonProperty(JSON_PROPERTY_ARN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,7 +163,6 @@ public DisputeEventNotification balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. - * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -184,11 +183,9 @@ public void setBalancePlatform(String balancePlatform) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. * @return the current {@code DisputeEventNotification} instance, allowing for method chaining */ public DisputeEventNotification creationDate(OffsetDateTime creationDate) { @@ -197,11 +194,8 @@ public DisputeEventNotification creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. - * - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -210,11 +204,9 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -235,7 +227,6 @@ public DisputeEventNotification description(String description) { /** * Contains information about the dispute. - * * @return description Contains information about the dispute. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -258,7 +249,7 @@ public void setDescription(String description) { /** * disputedAmount * - * @param disputedAmount + * @param disputedAmount * @return the current {@code DisputeEventNotification} instance, allowing for method chaining */ public DisputeEventNotification disputedAmount(Amount disputedAmount) { @@ -268,8 +259,7 @@ public DisputeEventNotification disputedAmount(Amount disputedAmount) { /** * Get disputedAmount - * - * @return disputedAmount + * @return disputedAmount */ @JsonProperty(JSON_PROPERTY_DISPUTED_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -280,7 +270,7 @@ public Amount getDisputedAmount() { /** * disputedAmount * - * @param disputedAmount + * @param disputedAmount */ @JsonProperty(JSON_PROPERTY_DISPUTED_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -301,7 +291,6 @@ public DisputeEventNotification id(String id) { /** * The ID of the resource. - * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -334,7 +323,6 @@ public DisputeEventNotification status(String status) { /** * The current status of the dispute. - * * @return status The current status of the dispute. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -367,7 +355,6 @@ public DisputeEventNotification statusDetail(String statusDetail) { /** * Additional information about the status of the dispute, when available. - * * @return statusDetail Additional information about the status of the dispute, when available. */ @JsonProperty(JSON_PROPERTY_STATUS_DETAIL) @@ -390,8 +377,7 @@ public void setStatusDetail(String statusDetail) { /** * The unique reference of the transaction for which the dispute is requested. * - * @param transactionId The unique reference of the transaction for which the dispute is - * requested. + * @param transactionId The unique reference of the transaction for which the dispute is requested. * @return the current {@code DisputeEventNotification} instance, allowing for method chaining */ public DisputeEventNotification transactionId(String transactionId) { @@ -401,9 +387,7 @@ public DisputeEventNotification transactionId(String transactionId) { /** * The unique reference of the transaction for which the dispute is requested. - * - * @return transactionId The unique reference of the transaction for which the dispute is - * requested. + * @return transactionId The unique reference of the transaction for which the dispute is requested. */ @JsonProperty(JSON_PROPERTY_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -414,8 +398,7 @@ public String getTransactionId() { /** * The unique reference of the transaction for which the dispute is requested. * - * @param transactionId The unique reference of the transaction for which the dispute is - * requested. + * @param transactionId The unique reference of the transaction for which the dispute is requested. */ @JsonProperty(JSON_PROPERTY_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -436,7 +419,6 @@ public DisputeEventNotification type(TypeEnum type) { /** * The type of dispute raised for the transaction. - * * @return type The type of dispute raised for the transaction. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -456,7 +438,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this DisputeEventNotification object is equal to o. */ + /** + * Return true if this DisputeEventNotification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -466,31 +450,21 @@ public boolean equals(Object o) { return false; } DisputeEventNotification disputeEventNotification = (DisputeEventNotification) o; - return Objects.equals(this.arn, disputeEventNotification.arn) - && Objects.equals(this.balancePlatform, disputeEventNotification.balancePlatform) - && Objects.equals(this.creationDate, disputeEventNotification.creationDate) - && Objects.equals(this.description, disputeEventNotification.description) - && Objects.equals(this.disputedAmount, disputeEventNotification.disputedAmount) - && Objects.equals(this.id, disputeEventNotification.id) - && Objects.equals(this.status, disputeEventNotification.status) - && Objects.equals(this.statusDetail, disputeEventNotification.statusDetail) - && Objects.equals(this.transactionId, disputeEventNotification.transactionId) - && Objects.equals(this.type, disputeEventNotification.type); + return Objects.equals(this.arn, disputeEventNotification.arn) && + Objects.equals(this.balancePlatform, disputeEventNotification.balancePlatform) && + Objects.equals(this.creationDate, disputeEventNotification.creationDate) && + Objects.equals(this.description, disputeEventNotification.description) && + Objects.equals(this.disputedAmount, disputeEventNotification.disputedAmount) && + Objects.equals(this.id, disputeEventNotification.id) && + Objects.equals(this.status, disputeEventNotification.status) && + Objects.equals(this.statusDetail, disputeEventNotification.statusDetail) && + Objects.equals(this.transactionId, disputeEventNotification.transactionId) && + Objects.equals(this.type, disputeEventNotification.type); } @Override public int hashCode() { - return Objects.hash( - arn, - balancePlatform, - creationDate, - description, - disputedAmount, - id, - status, - statusDetail, - transactionId, - type); + return Objects.hash(arn, balancePlatform, creationDate, description, disputedAmount, id, status, statusDetail, transactionId, type); } @Override @@ -512,7 +486,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -521,24 +496,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DisputeEventNotification given an JSON string * * @param jsonString JSON string * @return An instance of DisputeEventNotification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DisputeEventNotification + * @throws JsonProcessingException if the JSON string is invalid with respect to DisputeEventNotification */ - public static DisputeEventNotification fromJson(String jsonString) - throws JsonProcessingException { + public static DisputeEventNotification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DisputeEventNotification.class); } - - /** - * Convert an instance of DisputeEventNotification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DisputeEventNotification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputewebhooks/DisputeNotificationRequest.java b/src/main/java/com/adyen/model/disputewebhooks/DisputeNotificationRequest.java index f3ce75be5..c77b51b92 100644 --- a/src/main/java/com/adyen/model/disputewebhooks/DisputeNotificationRequest.java +++ b/src/main/java/com/adyen/model/disputewebhooks/DisputeNotificationRequest.java @@ -2,36 +2,46 @@ * Dispute webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.disputewebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.disputewebhooks.DisputeEventNotification; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** DisputeNotificationRequest */ + +/** + * DisputeNotificationRequest + */ @JsonPropertyOrder({ DisputeNotificationRequest.JSON_PROPERTY_DATA, DisputeNotificationRequest.JSON_PROPERTY_TYPE }) + public class DisputeNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private DisputeEventNotification data; - /** Type of webhook. */ + /** + * Type of webhook. + */ public enum TypeEnum { + BALANCEPLATFORM_DISPUTE_CREATED(String.valueOf("balancePlatform.dispute.created")), BALANCEPLATFORM_DISPUTE_UPDATED(String.valueOf("balancePlatform.dispute.updated")); @@ -41,7 +51,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -62,11 +72,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -74,12 +80,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public DisputeNotificationRequest() {} + public DisputeNotificationRequest() { + } /** * data * - * @param data + * @param data * @return the current {@code DisputeNotificationRequest} instance, allowing for method chaining */ public DisputeNotificationRequest data(DisputeEventNotification data) { @@ -89,8 +96,7 @@ public DisputeNotificationRequest data(DisputeEventNotification data) { /** * Get data - * - * @return data + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,7 +107,7 @@ public DisputeEventNotification getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -122,7 +128,6 @@ public DisputeNotificationRequest type(TypeEnum type) { /** * Type of webhook. - * * @return type Type of webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -142,7 +147,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this DisputeNotificationRequest object is equal to o. */ + /** + * Return true if this DisputeNotificationRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -152,8 +159,8 @@ public boolean equals(Object o) { return false; } DisputeNotificationRequest disputeNotificationRequest = (DisputeNotificationRequest) o; - return Objects.equals(this.data, disputeNotificationRequest.data) - && Objects.equals(this.type, disputeNotificationRequest.type); + return Objects.equals(this.data, disputeNotificationRequest.data) && + Objects.equals(this.type, disputeNotificationRequest.type); } @Override @@ -172,7 +179,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -181,24 +189,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DisputeNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of DisputeNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DisputeNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to DisputeNotificationRequest */ - public static DisputeNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static DisputeNotificationRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DisputeNotificationRequest.class); } - - /** - * Convert an instance of DisputeNotificationRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DisputeNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputewebhooks/DisputeWebhooksHandler.java b/src/main/java/com/adyen/model/disputewebhooks/DisputeWebhooksHandler.java index d78ff5a4c..4d0bc083d 100644 --- a/src/main/java/com/adyen/model/disputewebhooks/DisputeWebhooksHandler.java +++ b/src/main/java/com/adyen/model/disputewebhooks/DisputeWebhooksHandler.java @@ -2,7 +2,7 @@ * Dispute webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,62 +16,63 @@ /** * Handler for processing DisputeWebhooks. - * - *

This class provides functionality to deserialize the payload of DisputeWebhooks events. + *

+ * This class provides functionality to deserialize the payload of DisputeWebhooks events. */ public class DisputeWebhooksHandler { - private static final Logger LOG = Logger.getLogger(DisputeWebhooksHandler.class.getName()); + private static final Logger LOG = Logger.getLogger(DisputeWebhooksHandler.class.getName()); - private final String payload; + private final String payload; - /** - * Constructs a new handler for the given webhook payload - * - * @param payload the raw JSON payload from the webhook - */ - public DisputeWebhooksHandler(String payload) { - this.payload = payload; - } + /** + * Constructs a new handler for the given webhook payload + * + * @param payload the raw JSON payload from the webhook + */ + public DisputeWebhooksHandler(String payload) { + this.payload = payload; + } - /** - * Attempts to deserialize the webhook payload into a DisputeNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getDisputeNotificationRequest() { + /** + * Attempts to deserialize the webhook payload into a DisputeNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getDisputeNotificationRequest() { - var optionalDisputeNotificationRequest = getOptionalField(DisputeNotificationRequest.class); + var optionalDisputeNotificationRequest = getOptionalField(DisputeNotificationRequest.class); - if (optionalDisputeNotificationRequest.isPresent()) { - // verify event type - for (var value : DisputeNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalDisputeNotificationRequest.get().getType())) { - // found matching event type - return optionalDisputeNotificationRequest; + if(optionalDisputeNotificationRequest.isPresent()) { + // verify event type + for (var value : DisputeNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalDisputeNotificationRequest.get().getType())) { + // found matching event type + return optionalDisputeNotificationRequest; + } + } } - } - } - return Optional.empty(); - } + return Optional.empty(); + } - /** - * Deserializes the payload into the specified class type. - * - * @param clazz the class to deserialize into - * @param the type of the class - * @return an Optional containing the deserialized object, or empty if an error occurs - */ - private Optional getOptionalField(Class clazz) { - try { - T val = JSON.getMapper().readValue(payload, clazz); - return Optional.ofNullable(val); - } catch (Exception e) { - // an error has occurred during deserialization (object not found, deserialization error) - LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); - LOG.warning("Deserialization error: " + e.getMessage()); - return Optional.empty(); + /** + * Deserializes the payload into the specified class type. + * + * @param clazz the class to deserialize into + * @param the type of the class + * @return an Optional containing the deserialized object, or empty if an error occurs + */ + private Optional getOptionalField(Class clazz) { + try { + T val = JSON.getMapper().readValue(payload, clazz); + return Optional.ofNullable(val); + } catch (Exception e) { + // an error has occurred during deserialization (object not found, deserialization error) + LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); + LOG.warning("Deserialization error: " + e.getMessage()); + return Optional.empty(); + } } - } -} + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/disputewebhooks/JSON.java b/src/main/java/com/adyen/model/disputewebhooks/JSON.java index b144e9daa..f7038dfa3 100644 --- a/src/main/java/com/adyen/model/disputewebhooks/JSON.java +++ b/src/main/java/com/adyen/model/disputewebhooks/JSON.java @@ -1,18 +1,21 @@ package com.adyen.model.disputewebhooks; -import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; +import com.adyen.serializer.ByteArrayDeserializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; +import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; +import com.adyen.model.disputewebhooks.*; + import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -37,7 +40,6 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. - * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -54,13 +56,11 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { - return mapper; - } + public static ObjectMapper getMapper() { return mapper; } /** - * Returns the target model class that should be used to deserialize the input data. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,7 +73,9 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** Helper class to register the discriminator mappings. */ + /** + * Helper class to register the discriminator mappings. + */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -115,9 +117,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. This - * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -162,14 +164,13 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so - * it's not possible to use the instanceof keyword. + * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, + * so it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf( - Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -193,58 +194,59 @@ public static boolean isInstanceOf( return false; } - /** A map of discriminators for all model classes. */ - private static final Map, ClassDiscriminatorMapping> modelDiscriminators = - new HashMap, ClassDiscriminatorMapping>(); + /** + * A map of discriminators for all model classes. + */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); - /** A map of oneOf/anyOf descendants for each model class. */ + /** + * A map of oneOf/anyOf descendants for each model class. + */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator( - Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = - new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants( - Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants(Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static { + static + { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/AULocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/AULocalAccountIdentification.java index 524e4c508..372cb1c41 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/AULocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/AULocalAccountIdentification.java @@ -2,31 +2,37 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** AULocalAccountIdentification */ + +/** + * AULocalAccountIdentification + */ @JsonPropertyOrder({ AULocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, AULocalAccountIdentification.JSON_PROPERTY_BSB_CODE, AULocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class AULocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -34,8 +40,11 @@ public class AULocalAccountIdentification { public static final String JSON_PROPERTY_BSB_CODE = "bsbCode"; private String bsbCode; - /** **auLocal** */ + /** + * **auLocal** + */ public enum TypeEnum { + AULOCAL(String.valueOf("auLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -43,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -76,7 +81,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AULocalAccountIdentification() {} + public AULocalAccountIdentification() { + } /** * The bank account number, without separators or whitespace. @@ -91,7 +97,6 @@ public AULocalAccountIdentification accountNumber(String accountNumber) { /** * The bank account number, without separators or whitespace. - * * @return accountNumber The bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -112,11 +117,9 @@ public void setAccountNumber(String accountNumber) { } /** - * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), - * without separators or whitespace. + * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. * - * @param bsbCode The 6-digit [Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * @param bsbCode The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. * @return the current {@code AULocalAccountIdentification} instance, allowing for method chaining */ public AULocalAccountIdentification bsbCode(String bsbCode) { @@ -125,11 +128,8 @@ public AULocalAccountIdentification bsbCode(String bsbCode) { } /** - * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), - * without separators or whitespace. - * - * @return bsbCode The 6-digit [Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * @return bsbCode The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_BSB_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,11 +138,9 @@ public String getBsbCode() { } /** - * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), - * without separators or whitespace. + * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. * - * @param bsbCode The 6-digit [Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * @param bsbCode The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_BSB_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,7 +161,6 @@ public AULocalAccountIdentification type(TypeEnum type) { /** * **auLocal** - * * @return type **auLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -183,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this AULocalAccountIdentification object is equal to o. */ + /** + * Return true if this AULocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -193,9 +192,9 @@ public boolean equals(Object o) { return false; } AULocalAccountIdentification auLocalAccountIdentification = (AULocalAccountIdentification) o; - return Objects.equals(this.accountNumber, auLocalAccountIdentification.accountNumber) - && Objects.equals(this.bsbCode, auLocalAccountIdentification.bsbCode) - && Objects.equals(this.type, auLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, auLocalAccountIdentification.accountNumber) && + Objects.equals(this.bsbCode, auLocalAccountIdentification.bsbCode) && + Objects.equals(this.type, auLocalAccountIdentification.type); } @Override @@ -215,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,24 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AULocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of AULocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AULocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to AULocalAccountIdentification */ - public static AULocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static AULocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AULocalAccountIdentification.class); } - - /** - * Convert an instance of AULocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AULocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/legalentitymanagement/AbstractOpenApiSchema.java index a0cf16462..a00797c8d 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/AbstractOpenApiSchema.java @@ -2,141 +2,145 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonValue; -import jakarta.ws.rs.core.GenericType; -import java.util.Map; import java.util.Objects; +import java.util.Map; +import jakarta.ws.rs.core.GenericType; -/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec + */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() { - return instance; - } - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) { - this.instance = instance; - } - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf - * schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); - } else { - return object.getActualInstance(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() {return instance;} + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) {this.instance = instance;} + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); + } else { + return object.getActualInstance(); + } + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) && + Objects.equals(this.isNullable, a.isNullable) && + Objects.equals(this.schemaType, a.schemaType); } - return o.toString().replace("\n", "\n "); - } - public boolean equals(Object o) { - if (this == o) { - return true; + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); } - if (o == null || getClass() != o.getClass()) { - return false; + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) - && Objects.equals(this.isNullable, a.isNullable) - && Objects.equals(this.schemaType, a.schemaType); - } - - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); - } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); - } -} + + + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/legalentitymanagement/AcceptTermsOfServiceRequest.java b/src/main/java/com/adyen/model/legalentitymanagement/AcceptTermsOfServiceRequest.java index 8d9a85466..9ad55920e 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/AcceptTermsOfServiceRequest.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/AcceptTermsOfServiceRequest.java @@ -2,26 +2,36 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AcceptTermsOfServiceRequest */ + +/** + * AcceptTermsOfServiceRequest + */ @JsonPropertyOrder({ AcceptTermsOfServiceRequest.JSON_PROPERTY_ACCEPTED_BY, AcceptTermsOfServiceRequest.JSON_PROPERTY_IP_ADDRESS }) + public class AcceptTermsOfServiceRequest { public static final String JSON_PROPERTY_ACCEPTED_BY = "acceptedBy"; private String acceptedBy; @@ -29,19 +39,13 @@ public class AcceptTermsOfServiceRequest { public static final String JSON_PROPERTY_IP_ADDRESS = "ipAddress"; private String ipAddress; - public AcceptTermsOfServiceRequest() {} + public AcceptTermsOfServiceRequest() { + } /** - * The legal entity ID of the user accepting the Terms of Service. For organizations, this must be - * the individual legal entity ID of an authorized signatory for the organization. For sole - * proprietorships, this must be the individual legal entity ID of the owner. For individuals, - * this must be the individual legal entity id of either the individual, parent, or guardian. + * The legal entity ID of the user accepting the Terms of Service. For organizations, this must be the individual legal entity ID of an authorized signatory for the organization. For sole proprietorships, this must be the individual legal entity ID of the owner. For individuals, this must be the individual legal entity id of either the individual, parent, or guardian. * - * @param acceptedBy The legal entity ID of the user accepting the Terms of Service. For - * organizations, this must be the individual legal entity ID of an authorized signatory for - * the organization. For sole proprietorships, this must be the individual legal entity ID of - * the owner. For individuals, this must be the individual legal entity id of either the - * individual, parent, or guardian. + * @param acceptedBy The legal entity ID of the user accepting the Terms of Service. For organizations, this must be the individual legal entity ID of an authorized signatory for the organization. For sole proprietorships, this must be the individual legal entity ID of the owner. For individuals, this must be the individual legal entity id of either the individual, parent, or guardian. * @return the current {@code AcceptTermsOfServiceRequest} instance, allowing for method chaining */ public AcceptTermsOfServiceRequest acceptedBy(String acceptedBy) { @@ -50,16 +54,8 @@ public AcceptTermsOfServiceRequest acceptedBy(String acceptedBy) { } /** - * The legal entity ID of the user accepting the Terms of Service. For organizations, this must be - * the individual legal entity ID of an authorized signatory for the organization. For sole - * proprietorships, this must be the individual legal entity ID of the owner. For individuals, - * this must be the individual legal entity id of either the individual, parent, or guardian. - * - * @return acceptedBy The legal entity ID of the user accepting the Terms of Service. For - * organizations, this must be the individual legal entity ID of an authorized signatory for - * the organization. For sole proprietorships, this must be the individual legal entity ID of - * the owner. For individuals, this must be the individual legal entity id of either the - * individual, parent, or guardian. + * The legal entity ID of the user accepting the Terms of Service. For organizations, this must be the individual legal entity ID of an authorized signatory for the organization. For sole proprietorships, this must be the individual legal entity ID of the owner. For individuals, this must be the individual legal entity id of either the individual, parent, or guardian. + * @return acceptedBy The legal entity ID of the user accepting the Terms of Service. For organizations, this must be the individual legal entity ID of an authorized signatory for the organization. For sole proprietorships, this must be the individual legal entity ID of the owner. For individuals, this must be the individual legal entity id of either the individual, parent, or guardian. */ @JsonProperty(JSON_PROPERTY_ACCEPTED_BY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,16 +64,9 @@ public String getAcceptedBy() { } /** - * The legal entity ID of the user accepting the Terms of Service. For organizations, this must be - * the individual legal entity ID of an authorized signatory for the organization. For sole - * proprietorships, this must be the individual legal entity ID of the owner. For individuals, - * this must be the individual legal entity id of either the individual, parent, or guardian. + * The legal entity ID of the user accepting the Terms of Service. For organizations, this must be the individual legal entity ID of an authorized signatory for the organization. For sole proprietorships, this must be the individual legal entity ID of the owner. For individuals, this must be the individual legal entity id of either the individual, parent, or guardian. * - * @param acceptedBy The legal entity ID of the user accepting the Terms of Service. For - * organizations, this must be the individual legal entity ID of an authorized signatory for - * the organization. For sole proprietorships, this must be the individual legal entity ID of - * the owner. For individuals, this must be the individual legal entity id of either the - * individual, parent, or guardian. + * @param acceptedBy The legal entity ID of the user accepting the Terms of Service. For organizations, this must be the individual legal entity ID of an authorized signatory for the organization. For sole proprietorships, this must be the individual legal entity ID of the owner. For individuals, this must be the individual legal entity id of either the individual, parent, or guardian. */ @JsonProperty(JSON_PROPERTY_ACCEPTED_BY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -98,7 +87,6 @@ public AcceptTermsOfServiceRequest ipAddress(String ipAddress) { /** * The IP address of the user accepting the Terms of Service. - * * @return ipAddress The IP address of the user accepting the Terms of Service. */ @JsonProperty(JSON_PROPERTY_IP_ADDRESS) @@ -118,7 +106,9 @@ public void setIpAddress(String ipAddress) { this.ipAddress = ipAddress; } - /** Return true if this AcceptTermsOfServiceRequest object is equal to o. */ + /** + * Return true if this AcceptTermsOfServiceRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -128,8 +118,8 @@ public boolean equals(Object o) { return false; } AcceptTermsOfServiceRequest acceptTermsOfServiceRequest = (AcceptTermsOfServiceRequest) o; - return Objects.equals(this.acceptedBy, acceptTermsOfServiceRequest.acceptedBy) - && Objects.equals(this.ipAddress, acceptTermsOfServiceRequest.ipAddress); + return Objects.equals(this.acceptedBy, acceptTermsOfServiceRequest.acceptedBy) && + Objects.equals(this.ipAddress, acceptTermsOfServiceRequest.ipAddress); } @Override @@ -148,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -157,24 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AcceptTermsOfServiceRequest given an JSON string * * @param jsonString JSON string * @return An instance of AcceptTermsOfServiceRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AcceptTermsOfServiceRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to AcceptTermsOfServiceRequest */ - public static AcceptTermsOfServiceRequest fromJson(String jsonString) - throws JsonProcessingException { + public static AcceptTermsOfServiceRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AcceptTermsOfServiceRequest.class); } - - /** - * Convert an instance of AcceptTermsOfServiceRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AcceptTermsOfServiceRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/AcceptTermsOfServiceResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/AcceptTermsOfServiceResponse.java index 005f1e000..499651960 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/AcceptTermsOfServiceResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/AcceptTermsOfServiceResponse.java @@ -2,26 +2,31 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** AcceptTermsOfServiceResponse */ + +/** + * AcceptTermsOfServiceResponse + */ @JsonPropertyOrder({ AcceptTermsOfServiceResponse.JSON_PROPERTY_ACCEPTED_BY, AcceptTermsOfServiceResponse.JSON_PROPERTY_ID, @@ -30,6 +35,7 @@ AcceptTermsOfServiceResponse.JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_ID, AcceptTermsOfServiceResponse.JSON_PROPERTY_TYPE }) + public class AcceptTermsOfServiceResponse { public static final String JSON_PROPERTY_ACCEPTED_BY = "acceptedBy"; private String acceptedBy; @@ -43,16 +49,14 @@ public class AcceptTermsOfServiceResponse { public static final String JSON_PROPERTY_LANGUAGE = "language"; private String language; - public static final String JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_ID = - "termsOfServiceDocumentId"; + public static final String JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_ID = "termsOfServiceDocumentId"; private String termsOfServiceDocumentId; /** - * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** - * * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * - * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** */ public enum TypeEnum { + ADYENACCOUNT(String.valueOf("adyenAccount")), ADYENCAPITAL(String.valueOf("adyenCapital")), @@ -78,7 +82,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -99,11 +103,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -111,7 +111,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AcceptTermsOfServiceResponse() {} + public AcceptTermsOfServiceResponse() { + } /** * The unique identifier of the user that accepted the Terms of Service. @@ -126,7 +127,6 @@ public AcceptTermsOfServiceResponse acceptedBy(String acceptedBy) { /** * The unique identifier of the user that accepted the Terms of Service. - * * @return acceptedBy The unique identifier of the user that accepted the Terms of Service. */ @JsonProperty(JSON_PROPERTY_ACCEPTED_BY) @@ -159,7 +159,6 @@ public AcceptTermsOfServiceResponse id(String id) { /** * The unique identifier of the Terms of Service acceptance. - * * @return id The unique identifier of the Terms of Service acceptance. */ @JsonProperty(JSON_PROPERTY_ID) @@ -192,7 +191,6 @@ public AcceptTermsOfServiceResponse ipAddress(String ipAddress) { /** * The IP address of the user that accepted the Terms of Service. - * * @return ipAddress The IP address of the user that accepted the Terms of Service. */ @JsonProperty(JSON_PROPERTY_IP_ADDRESS) @@ -213,17 +211,9 @@ public void setIpAddress(String ipAddress) { } /** - * The language used for the Terms of Service document, specified by the two-letter [ISO - * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: - * **en** for English or **fr** for French. Note that French is only available for some - * integration types in certain countries/regions. Reach out to your Adyen contact for more - * information. + * The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English or **fr** for French. Note that French is only available for some integration types in certain countries/regions. Reach out to your Adyen contact for more information. * - * @param language The language used for the Terms of Service document, specified by the - * two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language - * code. Possible value: **en** for English or **fr** for French. Note that French is only - * available for some integration types in certain countries/regions. Reach out to your Adyen - * contact for more information. + * @param language The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English or **fr** for French. Note that French is only available for some integration types in certain countries/regions. Reach out to your Adyen contact for more information. * @return the current {@code AcceptTermsOfServiceResponse} instance, allowing for method chaining */ public AcceptTermsOfServiceResponse language(String language) { @@ -232,17 +222,8 @@ public AcceptTermsOfServiceResponse language(String language) { } /** - * The language used for the Terms of Service document, specified by the two-letter [ISO - * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: - * **en** for English or **fr** for French. Note that French is only available for some - * integration types in certain countries/regions. Reach out to your Adyen contact for more - * information. - * - * @return language The language used for the Terms of Service document, specified by the - * two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language - * code. Possible value: **en** for English or **fr** for French. Note that French is only - * available for some integration types in certain countries/regions. Reach out to your Adyen - * contact for more information. + * The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English or **fr** for French. Note that French is only available for some integration types in certain countries/regions. Reach out to your Adyen contact for more information. + * @return language The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English or **fr** for French. Note that French is only available for some integration types in certain countries/regions. Reach out to your Adyen contact for more information. */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -251,17 +232,9 @@ public String getLanguage() { } /** - * The language used for the Terms of Service document, specified by the two-letter [ISO - * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: - * **en** for English or **fr** for French. Note that French is only available for some - * integration types in certain countries/regions. Reach out to your Adyen contact for more - * information. + * The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English or **fr** for French. Note that French is only available for some integration types in certain countries/regions. Reach out to your Adyen contact for more information. * - * @param language The language used for the Terms of Service document, specified by the - * two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language - * code. Possible value: **en** for English or **fr** for French. Note that French is only - * available for some integration types in certain countries/regions. Reach out to your Adyen - * contact for more information. + * @param language The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English or **fr** for French. Note that French is only available for some integration types in certain countries/regions. Reach out to your Adyen contact for more information. */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -282,7 +255,6 @@ public AcceptTermsOfServiceResponse termsOfServiceDocumentId(String termsOfServi /** * The unique identifier of the Terms of Service document. - * * @return termsOfServiceDocumentId The unique identifier of the Terms of Service document. */ @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_ID) @@ -303,13 +275,9 @@ public void setTermsOfServiceDocumentId(String termsOfServiceDocumentId) { } /** - * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** - * * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * - * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** * - * @param type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * - * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * - * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * @param type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** * @return the current {@code AcceptTermsOfServiceResponse} instance, allowing for method chaining */ public AcceptTermsOfServiceResponse type(TypeEnum type) { @@ -318,13 +286,8 @@ public AcceptTermsOfServiceResponse type(TypeEnum type) { } /** - * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** - * * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * - * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** - * - * @return type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * - * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * - * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * @return type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -333,13 +296,9 @@ public TypeEnum getType() { } /** - * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** - * * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * - * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** * - * @param type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * - * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * - * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * @param type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -347,7 +306,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this AcceptTermsOfServiceResponse object is equal to o. */ + /** + * Return true if this AcceptTermsOfServiceResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -357,13 +318,12 @@ public boolean equals(Object o) { return false; } AcceptTermsOfServiceResponse acceptTermsOfServiceResponse = (AcceptTermsOfServiceResponse) o; - return Objects.equals(this.acceptedBy, acceptTermsOfServiceResponse.acceptedBy) - && Objects.equals(this.id, acceptTermsOfServiceResponse.id) - && Objects.equals(this.ipAddress, acceptTermsOfServiceResponse.ipAddress) - && Objects.equals(this.language, acceptTermsOfServiceResponse.language) - && Objects.equals( - this.termsOfServiceDocumentId, acceptTermsOfServiceResponse.termsOfServiceDocumentId) - && Objects.equals(this.type, acceptTermsOfServiceResponse.type); + return Objects.equals(this.acceptedBy, acceptTermsOfServiceResponse.acceptedBy) && + Objects.equals(this.id, acceptTermsOfServiceResponse.id) && + Objects.equals(this.ipAddress, acceptTermsOfServiceResponse.ipAddress) && + Objects.equals(this.language, acceptTermsOfServiceResponse.language) && + Objects.equals(this.termsOfServiceDocumentId, acceptTermsOfServiceResponse.termsOfServiceDocumentId) && + Objects.equals(this.type, acceptTermsOfServiceResponse.type); } @Override @@ -379,16 +339,15 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" ipAddress: ").append(toIndentedString(ipAddress)).append("\n"); sb.append(" language: ").append(toIndentedString(language)).append("\n"); - sb.append(" termsOfServiceDocumentId: ") - .append(toIndentedString(termsOfServiceDocumentId)) - .append("\n"); + sb.append(" termsOfServiceDocumentId: ").append(toIndentedString(termsOfServiceDocumentId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -397,24 +356,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AcceptTermsOfServiceResponse given an JSON string * * @param jsonString JSON string * @return An instance of AcceptTermsOfServiceResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AcceptTermsOfServiceResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to AcceptTermsOfServiceResponse */ - public static AcceptTermsOfServiceResponse fromJson(String jsonString) - throws JsonProcessingException { + public static AcceptTermsOfServiceResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AcceptTermsOfServiceResponse.class); } - - /** - * Convert an instance of AcceptTermsOfServiceResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AcceptTermsOfServiceResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/AdditionalBankIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/AdditionalBankIdentification.java index 122b3895d..43907795c 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/AdditionalBankIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/AdditionalBankIdentification.java @@ -2,47 +2,45 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** AdditionalBankIdentification */ +/** + * AdditionalBankIdentification + */ @JsonPropertyOrder({ AdditionalBankIdentification.JSON_PROPERTY_CODE, AdditionalBankIdentification.JSON_PROPERTY_TYPE }) + public class AdditionalBankIdentification { public static final String JSON_PROPERTY_CODE = "code"; private String code; /** - * The type of additional bank identification, depending on the country. Possible values: * - * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * - * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. + * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. */ public enum TypeEnum { + AUBSBCODE(String.valueOf("auBsbCode")), CAROUTINGNUMBER(String.valueOf("caRoutingNumber")), @@ -56,7 +54,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -77,11 +75,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -89,7 +83,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AdditionalBankIdentification() {} + public AdditionalBankIdentification() { + } /** * The value of the additional bank identification. @@ -104,7 +99,6 @@ public AdditionalBankIdentification code(String code) { /** * The value of the additional bank identification. - * * @return code The value of the additional bank identification. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -125,27 +119,9 @@ public void setCode(String code) { } /** - * The type of additional bank identification, depending on the country. Possible values: * - * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * - * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. + * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. * - * @param type The type of additional bank identification, depending on the country. Possible - * values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * - * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. + * @param type The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. * @return the current {@code AdditionalBankIdentification} instance, allowing for method chaining */ public AdditionalBankIdentification type(TypeEnum type) { @@ -154,27 +130,8 @@ public AdditionalBankIdentification type(TypeEnum type) { } /** - * The type of additional bank identification, depending on the country. Possible values: * - * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * - * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. - * - * @return type The type of additional bank identification, depending on the country. Possible - * values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * - * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. + * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * @return type The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,27 +140,9 @@ public TypeEnum getType() { } /** - * The type of additional bank identification, depending on the country. Possible values: * - * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * - * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. + * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. * - * @param type The type of additional bank identification, depending on the country. Possible - * values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * - * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. + * @param type The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,7 +150,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this AdditionalBankIdentification object is equal to o. */ + /** + * Return true if this AdditionalBankIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -221,8 +162,8 @@ public boolean equals(Object o) { return false; } AdditionalBankIdentification additionalBankIdentification = (AdditionalBankIdentification) o; - return Objects.equals(this.code, additionalBankIdentification.code) - && Objects.equals(this.type, additionalBankIdentification.type); + return Objects.equals(this.code, additionalBankIdentification.code) && + Objects.equals(this.type, additionalBankIdentification.type); } @Override @@ -241,7 +182,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -250,24 +192,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalBankIdentification given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalBankIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalBankIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalBankIdentification */ - public static AdditionalBankIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static AdditionalBankIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalBankIdentification.class); } - - /** - * Convert an instance of AdditionalBankIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalBankIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/Address.java b/src/main/java/com/adyen/model/legalentitymanagement/Address.java index bf74541dd..1051ac5e2 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/Address.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/Address.java @@ -2,22 +2,31 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Address */ + +/** + * Address + */ @JsonPropertyOrder({ Address.JSON_PROPERTY_CITY, Address.JSON_PROPERTY_COUNTRY, @@ -26,6 +35,7 @@ Address.JSON_PROPERTY_STREET, Address.JSON_PROPERTY_STREET2 }) + public class Address { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -45,14 +55,13 @@ public class Address { public static final String JSON_PROPERTY_STREET2 = "street2"; private String street2; - public Address() {} + public Address() { + } /** - * The name of the city. Required if `stateOrProvince` is provided. If you specify the - * city, you must also send `postalCode` and `street`. + * The name of the city. Required if `stateOrProvince` is provided. If you specify the city, you must also send `postalCode` and `street`. * - * @param city The name of the city. Required if `stateOrProvince` is provided. If you - * specify the city, you must also send `postalCode` and `street`. + * @param city The name of the city. Required if `stateOrProvince` is provided. If you specify the city, you must also send `postalCode` and `street`. * @return the current {@code Address} instance, allowing for method chaining */ public Address city(String city) { @@ -61,11 +70,8 @@ public Address city(String city) { } /** - * The name of the city. Required if `stateOrProvince` is provided. If you specify the - * city, you must also send `postalCode` and `street`. - * - * @return city The name of the city. Required if `stateOrProvince` is provided. If you - * specify the city, you must also send `postalCode` and `street`. + * The name of the city. Required if `stateOrProvince` is provided. If you specify the city, you must also send `postalCode` and `street`. + * @return city The name of the city. Required if `stateOrProvince` is provided. If you specify the city, you must also send `postalCode` and `street`. */ @JsonProperty(JSON_PROPERTY_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -74,11 +80,9 @@ public String getCity() { } /** - * The name of the city. Required if `stateOrProvince` is provided. If you specify the - * city, you must also send `postalCode` and `street`. + * The name of the city. Required if `stateOrProvince` is provided. If you specify the city, you must also send `postalCode` and `street`. * - * @param city The name of the city. Required if `stateOrProvince` is provided. If you - * specify the city, you must also send `postalCode` and `street`. + * @param city The name of the city. Required if `stateOrProvince` is provided. If you specify the city, you must also send `postalCode` and `street`. */ @JsonProperty(JSON_PROPERTY_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,11 +91,9 @@ public void setCity(String city) { } /** - * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country - * code. + * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. * - * @param country The two-letter [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. + * @param country The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. * @return the current {@code Address} instance, allowing for method chaining */ public Address country(String country) { @@ -100,11 +102,8 @@ public Address country(String country) { } /** - * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country - * code. - * - * @return country The two-letter [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. + * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. + * @return country The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,11 +112,9 @@ public String getCountry() { } /** - * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country - * code. + * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. * - * @param country The two-letter [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. + * @param country The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,13 +123,9 @@ public void setCountry(String country) { } /** - * The postal code. Required if `stateOrProvince` and/or `city` is provided. - * When using alphanumeric postal codes, all letters must be uppercase. For example, 1234 AB or - * SW1A 1AA. + * The postal code. Required if `stateOrProvince` and/or `city` is provided. When using alphanumeric postal codes, all letters must be uppercase. For example, 1234 AB or SW1A 1AA. * - * @param postalCode The postal code. Required if `stateOrProvince` and/or - * `city` is provided. When using alphanumeric postal codes, all letters must be - * uppercase. For example, 1234 AB or SW1A 1AA. + * @param postalCode The postal code. Required if `stateOrProvince` and/or `city` is provided. When using alphanumeric postal codes, all letters must be uppercase. For example, 1234 AB or SW1A 1AA. * @return the current {@code Address} instance, allowing for method chaining */ public Address postalCode(String postalCode) { @@ -141,13 +134,8 @@ public Address postalCode(String postalCode) { } /** - * The postal code. Required if `stateOrProvince` and/or `city` is provided. - * When using alphanumeric postal codes, all letters must be uppercase. For example, 1234 AB or - * SW1A 1AA. - * - * @return postalCode The postal code. Required if `stateOrProvince` and/or - * `city` is provided. When using alphanumeric postal codes, all letters must be - * uppercase. For example, 1234 AB or SW1A 1AA. + * The postal code. Required if `stateOrProvince` and/or `city` is provided. When using alphanumeric postal codes, all letters must be uppercase. For example, 1234 AB or SW1A 1AA. + * @return postalCode The postal code. Required if `stateOrProvince` and/or `city` is provided. When using alphanumeric postal codes, all letters must be uppercase. For example, 1234 AB or SW1A 1AA. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,13 +144,9 @@ public String getPostalCode() { } /** - * The postal code. Required if `stateOrProvince` and/or `city` is provided. - * When using alphanumeric postal codes, all letters must be uppercase. For example, 1234 AB or - * SW1A 1AA. + * The postal code. Required if `stateOrProvince` and/or `city` is provided. When using alphanumeric postal codes, all letters must be uppercase. For example, 1234 AB or SW1A 1AA. * - * @param postalCode The postal code. Required if `stateOrProvince` and/or - * `city` is provided. When using alphanumeric postal codes, all letters must be - * uppercase. For example, 1234 AB or SW1A 1AA. + * @param postalCode The postal code. Required if `stateOrProvince` and/or `city` is provided. When using alphanumeric postal codes, all letters must be uppercase. For example, 1234 AB or SW1A 1AA. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -171,13 +155,9 @@ public void setPostalCode(String postalCode) { } /** - * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. Required for - * Australia and New Zealand. If you specify the state or province, you must also send - * `city`, `postalCode`, and `street`. + * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. Required for Australia and New Zealand. If you specify the state or province, you must also send `city`, `postalCode`, and `street`. * - * @param stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in - * the US. Required for Australia and New Zealand. If you specify the state or province, you - * must also send `city`, `postalCode`, and `street`. + * @param stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. Required for Australia and New Zealand. If you specify the state or province, you must also send `city`, `postalCode`, and `street`. * @return the current {@code Address} instance, allowing for method chaining */ public Address stateOrProvince(String stateOrProvince) { @@ -186,13 +166,8 @@ public Address stateOrProvince(String stateOrProvince) { } /** - * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. Required for - * Australia and New Zealand. If you specify the state or province, you must also send - * `city`, `postalCode`, and `street`. - * - * @return stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** - * in the US. Required for Australia and New Zealand. If you specify the state or province, - * you must also send `city`, `postalCode`, and `street`. + * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. Required for Australia and New Zealand. If you specify the state or province, you must also send `city`, `postalCode`, and `street`. + * @return stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. Required for Australia and New Zealand. If you specify the state or province, you must also send `city`, `postalCode`, and `street`. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -201,13 +176,9 @@ public String getStateOrProvince() { } /** - * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. Required for - * Australia and New Zealand. If you specify the state or province, you must also send - * `city`, `postalCode`, and `street`. + * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. Required for Australia and New Zealand. If you specify the state or province, you must also send `city`, `postalCode`, and `street`. * - * @param stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in - * the US. Required for Australia and New Zealand. If you specify the state or province, you - * must also send `city`, `postalCode`, and `street`. + * @param stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. Required for Australia and New Zealand. If you specify the state or province, you must also send `city`, `postalCode`, and `street`. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -216,11 +187,9 @@ public void setStateOrProvince(String stateOrProvince) { } /** - * The name of the street, and the house or building number. Required if - * `stateOrProvince` and/or `city` is provided. + * The name of the street, and the house or building number. Required if `stateOrProvince` and/or `city` is provided. * - * @param street The name of the street, and the house or building number. Required if - * `stateOrProvince` and/or `city` is provided. + * @param street The name of the street, and the house or building number. Required if `stateOrProvince` and/or `city` is provided. * @return the current {@code Address} instance, allowing for method chaining */ public Address street(String street) { @@ -229,11 +198,8 @@ public Address street(String street) { } /** - * The name of the street, and the house or building number. Required if - * `stateOrProvince` and/or `city` is provided. - * - * @return street The name of the street, and the house or building number. Required if - * `stateOrProvince` and/or `city` is provided. + * The name of the street, and the house or building number. Required if `stateOrProvince` and/or `city` is provided. + * @return street The name of the street, and the house or building number. Required if `stateOrProvince` and/or `city` is provided. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,11 +208,9 @@ public String getStreet() { } /** - * The name of the street, and the house or building number. Required if - * `stateOrProvince` and/or `city` is provided. + * The name of the street, and the house or building number. Required if `stateOrProvince` and/or `city` is provided. * - * @param street The name of the street, and the house or building number. Required if - * `stateOrProvince` and/or `city` is provided. + * @param street The name of the street, and the house or building number. Required if `stateOrProvince` and/or `city` is provided. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -267,7 +231,6 @@ public Address street2(String street2) { /** * The apartment, unit, or suite number. - * * @return street2 The apartment, unit, or suite number. */ @JsonProperty(JSON_PROPERTY_STREET2) @@ -287,7 +250,9 @@ public void setStreet2(String street2) { this.street2 = street2; } - /** Return true if this Address object is equal to o. */ + /** + * Return true if this Address object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -297,12 +262,12 @@ public boolean equals(Object o) { return false; } Address address = (Address) o; - return Objects.equals(this.city, address.city) - && Objects.equals(this.country, address.country) - && Objects.equals(this.postalCode, address.postalCode) - && Objects.equals(this.stateOrProvince, address.stateOrProvince) - && Objects.equals(this.street, address.street) - && Objects.equals(this.street2, address.street2); + return Objects.equals(this.city, address.city) && + Objects.equals(this.country, address.country) && + Objects.equals(this.postalCode, address.postalCode) && + Objects.equals(this.stateOrProvince, address.stateOrProvince) && + Objects.equals(this.street, address.street) && + Objects.equals(this.street2, address.street2); } @Override @@ -325,7 +290,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -334,7 +300,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Address given an JSON string * * @param jsonString JSON string @@ -344,12 +310,11 @@ private String toIndentedString(Object o) { public static Address fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Address.class); } - - /** - * Convert an instance of Address to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Address to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/Amount.java b/src/main/java/com/adyen/model/legalentitymanagement/Amount.java index 04c852298..95c94efbc 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/Amount.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/Amount.java @@ -2,23 +2,36 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Amount */ -@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) + +/** + * Amount + */ +@JsonPropertyOrder({ + Amount.JSON_PROPERTY_CURRENCY, + Amount.JSON_PROPERTY_VALUE +}) + public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -26,7 +39,8 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() {} + public Amount() { + } /** * The type of currency. Must be EUR (or EUR equivalent) @@ -41,7 +55,6 @@ public Amount currency(String currency) { /** * The type of currency. Must be EUR (or EUR equivalent) - * * @return currency The type of currency. Must be EUR (or EUR equivalent) */ @JsonProperty(JSON_PROPERTY_CURRENCY) @@ -74,7 +87,6 @@ public Amount value(Long value) { /** * Total value of amount. Must be >= 0 - * * @return value Total value of amount. Must be >= 0 */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -94,7 +106,9 @@ public void setValue(Long value) { this.value = value; } - /** Return true if this Amount object is equal to o. */ + /** + * Return true if this Amount object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -104,8 +118,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) - && Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) && + Objects.equals(this.value, amount.value); } @Override @@ -124,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -143,12 +158,11 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } - - /** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/Attachment.java b/src/main/java/com/adyen/model/legalentitymanagement/Attachment.java index b35c4e6b7..5f9a06b1e 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/Attachment.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/Attachment.java @@ -2,23 +2,31 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -import java.util.Arrays; -/** Attachment */ + +/** + * Attachment + */ @JsonPropertyOrder({ Attachment.JSON_PROPERTY_CONTENT, Attachment.JSON_PROPERTY_CONTENT_TYPE, @@ -26,6 +34,7 @@ Attachment.JSON_PROPERTY_PAGE_NAME, Attachment.JSON_PROPERTY_PAGE_TYPE }) + public class Attachment { public static final String JSON_PROPERTY_CONTENT = "content"; private byte[] content; @@ -44,7 +53,8 @@ public class Attachment { public static final String JSON_PROPERTY_PAGE_TYPE = "pageType"; private String pageType; - public Attachment() {} + public Attachment() { + } /** * The document in Base64-encoded string format. @@ -59,7 +69,6 @@ public Attachment content(byte[] content) { /** * The document in Base64-encoded string format. - * * @return content The document in Base64-encoded string format. */ @JsonProperty(JSON_PROPERTY_CONTENT) @@ -80,12 +89,11 @@ public void setContent(byte[] content) { } /** - * The file format. Possible values: **application/pdf**, **image/jpg**, **image/jpeg**, - * **image/png**. + * The file format. Possible values: **application/pdf**, **image/jpg**, **image/jpeg**, **image/png**. * - * @param contentType The file format. Possible values: **application/pdf**, **image/jpg**, - * **image/jpeg**, **image/png**. + * @param contentType The file format. Possible values: **application/pdf**, **image/jpg**, **image/jpeg**, **image/png**. * @return the current {@code Attachment} instance, allowing for method chaining + * * @deprecated since Legal Entity Management API v1 */ @Deprecated // deprecated since Legal Entity Management API v1 @@ -95,11 +103,8 @@ public Attachment contentType(String contentType) { } /** - * The file format. Possible values: **application/pdf**, **image/jpg**, **image/jpeg**, - * **image/png**. - * - * @return contentType The file format. Possible values: **application/pdf**, **image/jpg**, - * **image/jpeg**, **image/png**. + * The file format. Possible values: **application/pdf**, **image/jpg**, **image/jpeg**, **image/png**. + * @return contentType The file format. Possible values: **application/pdf**, **image/jpg**, **image/jpeg**, **image/png**. * @deprecated // deprecated since Legal Entity Management API v1 */ @Deprecated // deprecated since Legal Entity Management API v1 @@ -110,11 +115,10 @@ public String getContentType() { } /** - * The file format. Possible values: **application/pdf**, **image/jpg**, **image/jpeg**, - * **image/png**. + * The file format. Possible values: **application/pdf**, **image/jpg**, **image/jpeg**, **image/png**. + * + * @param contentType The file format. Possible values: **application/pdf**, **image/jpg**, **image/jpeg**, **image/png**. * - * @param contentType The file format. Possible values: **application/pdf**, **image/jpg**, - * **image/jpeg**, **image/png**. * @deprecated since Legal Entity Management API v1 */ @Deprecated // deprecated since Legal Entity Management API v1 @@ -129,6 +133,7 @@ public void setContentType(String contentType) { * * @param filename The name of the file including the file extension. * @return the current {@code Attachment} instance, allowing for method chaining + * * @deprecated since Legal Entity Management API v1 */ @Deprecated // deprecated since Legal Entity Management API v1 @@ -139,7 +144,6 @@ public Attachment filename(String filename) { /** * The name of the file including the file extension. - * * @return filename The name of the file including the file extension. * @deprecated // deprecated since Legal Entity Management API v1 */ @@ -154,6 +158,7 @@ public String getFilename() { * The name of the file including the file extension. * * @param filename The name of the file including the file extension. + * * @deprecated since Legal Entity Management API v1 */ @Deprecated // deprecated since Legal Entity Management API v1 @@ -176,7 +181,6 @@ public Attachment pageName(String pageName) { /** * The name of the file including the file extension. - * * @return pageName The name of the file including the file extension. */ @JsonProperty(JSON_PROPERTY_PAGE_NAME) @@ -197,14 +201,9 @@ public void setPageName(String pageName) { } /** - * Specifies which side of the ID card is uploaded. * If the `type` is - * **driversLicense** or **identityCard**, you must set this to **front** or **back**. * For any - * other types, when this is omitted, we infer the page number based on the order of attachments. + * Specifies which side of the ID card is uploaded. * If the `type` is **driversLicense** or **identityCard**, you must set this to **front** or **back**. * For any other types, when this is omitted, we infer the page number based on the order of attachments. * - * @param pageType Specifies which side of the ID card is uploaded. * If the `type` is - * **driversLicense** or **identityCard**, you must set this to **front** or **back**. * For - * any other types, when this is omitted, we infer the page number based on the order of - * attachments. + * @param pageType Specifies which side of the ID card is uploaded. * If the `type` is **driversLicense** or **identityCard**, you must set this to **front** or **back**. * For any other types, when this is omitted, we infer the page number based on the order of attachments. * @return the current {@code Attachment} instance, allowing for method chaining */ public Attachment pageType(String pageType) { @@ -213,14 +212,8 @@ public Attachment pageType(String pageType) { } /** - * Specifies which side of the ID card is uploaded. * If the `type` is - * **driversLicense** or **identityCard**, you must set this to **front** or **back**. * For any - * other types, when this is omitted, we infer the page number based on the order of attachments. - * - * @return pageType Specifies which side of the ID card is uploaded. * If the `type` is - * **driversLicense** or **identityCard**, you must set this to **front** or **back**. * For - * any other types, when this is omitted, we infer the page number based on the order of - * attachments. + * Specifies which side of the ID card is uploaded. * If the `type` is **driversLicense** or **identityCard**, you must set this to **front** or **back**. * For any other types, when this is omitted, we infer the page number based on the order of attachments. + * @return pageType Specifies which side of the ID card is uploaded. * If the `type` is **driversLicense** or **identityCard**, you must set this to **front** or **back**. * For any other types, when this is omitted, we infer the page number based on the order of attachments. */ @JsonProperty(JSON_PROPERTY_PAGE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -229,14 +222,9 @@ public String getPageType() { } /** - * Specifies which side of the ID card is uploaded. * If the `type` is - * **driversLicense** or **identityCard**, you must set this to **front** or **back**. * For any - * other types, when this is omitted, we infer the page number based on the order of attachments. + * Specifies which side of the ID card is uploaded. * If the `type` is **driversLicense** or **identityCard**, you must set this to **front** or **back**. * For any other types, when this is omitted, we infer the page number based on the order of attachments. * - * @param pageType Specifies which side of the ID card is uploaded. * If the `type` is - * **driversLicense** or **identityCard**, you must set this to **front** or **back**. * For - * any other types, when this is omitted, we infer the page number based on the order of - * attachments. + * @param pageType Specifies which side of the ID card is uploaded. * If the `type` is **driversLicense** or **identityCard**, you must set this to **front** or **back**. * For any other types, when this is omitted, we infer the page number based on the order of attachments. */ @JsonProperty(JSON_PROPERTY_PAGE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,7 +232,9 @@ public void setPageType(String pageType) { this.pageType = pageType; } - /** Return true if this Attachment object is equal to o. */ + /** + * Return true if this Attachment object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -254,11 +244,11 @@ public boolean equals(Object o) { return false; } Attachment attachment = (Attachment) o; - return Arrays.equals(this.content, attachment.content) - && Objects.equals(this.contentType, attachment.contentType) - && Objects.equals(this.filename, attachment.filename) - && Objects.equals(this.pageName, attachment.pageName) - && Objects.equals(this.pageType, attachment.pageType); + return Arrays.equals(this.content, attachment.content) && + Objects.equals(this.contentType, attachment.contentType) && + Objects.equals(this.filename, attachment.filename) && + Objects.equals(this.pageName, attachment.pageName) && + Objects.equals(this.pageType, attachment.pageType); } @Override @@ -280,7 +270,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -289,7 +280,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Attachment given an JSON string * * @param jsonString JSON string @@ -299,12 +290,11 @@ private String toIndentedString(Object o) { public static Attachment fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Attachment.class); } - - /** - * Convert an instance of Attachment to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Attachment to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/BankAccountInfo.java b/src/main/java/com/adyen/model/legalentitymanagement/BankAccountInfo.java index 04d5aea09..4a26df23a 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/BankAccountInfo.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/BankAccountInfo.java @@ -2,23 +2,32 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.legalentitymanagement.BankAccountInfoAccountIdentification; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** BankAccountInfo */ + +/** + * BankAccountInfo + */ @JsonPropertyOrder({ BankAccountInfo.JSON_PROPERTY_ACCOUNT_IDENTIFICATION, BankAccountInfo.JSON_PROPERTY_ACCOUNT_TYPE, @@ -26,6 +35,7 @@ BankAccountInfo.JSON_PROPERTY_COUNTRY_CODE, BankAccountInfo.JSON_PROPERTY_TRUSTED_SOURCE }) + public class BankAccountInfo { public static final String JSON_PROPERTY_ACCOUNT_IDENTIFICATION = "accountIdentification"; private BankAccountInfoAccountIdentification accountIdentification; @@ -43,10 +53,13 @@ public class BankAccountInfo { public static final String JSON_PROPERTY_TRUSTED_SOURCE = "trustedSource"; private Boolean trustedSource; - public BankAccountInfo() {} + public BankAccountInfo() { + } @JsonCreator - public BankAccountInfo(@JsonProperty(JSON_PROPERTY_TRUSTED_SOURCE) Boolean trustedSource) { + public BankAccountInfo( + @JsonProperty(JSON_PROPERTY_TRUSTED_SOURCE) Boolean trustedSource + ) { this(); this.trustedSource = trustedSource; } @@ -54,19 +67,17 @@ public BankAccountInfo(@JsonProperty(JSON_PROPERTY_TRUSTED_SOURCE) Boolean trust /** * accountIdentification * - * @param accountIdentification + * @param accountIdentification * @return the current {@code BankAccountInfo} instance, allowing for method chaining */ - public BankAccountInfo accountIdentification( - BankAccountInfoAccountIdentification accountIdentification) { + public BankAccountInfo accountIdentification(BankAccountInfoAccountIdentification accountIdentification) { this.accountIdentification = accountIdentification; return this; } /** * Get accountIdentification - * - * @return accountIdentification + * @return accountIdentification */ @JsonProperty(JSON_PROPERTY_ACCOUNT_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -77,7 +88,7 @@ public BankAccountInfoAccountIdentification getAccountIdentification() { /** * accountIdentification * - * @param accountIdentification + * @param accountIdentification */ @JsonProperty(JSON_PROPERTY_ACCOUNT_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -90,6 +101,7 @@ public void setAccountIdentification(BankAccountInfoAccountIdentification accoun * * @param accountType The type of bank account. * @return the current {@code BankAccountInfo} instance, allowing for method chaining + * * @deprecated since Legal Entity Management API v2 */ @Deprecated // deprecated since Legal Entity Management API v2 @@ -100,7 +112,6 @@ public BankAccountInfo accountType(String accountType) { /** * The type of bank account. - * * @return accountType The type of bank account. * @deprecated // deprecated since Legal Entity Management API v2 */ @@ -115,6 +126,7 @@ public String getAccountType() { * The type of bank account. * * @param accountType The type of bank account. + * * @deprecated since Legal Entity Management API v2 */ @Deprecated // deprecated since Legal Entity Management API v2 @@ -137,7 +149,6 @@ public BankAccountInfo bankName(String bankName) { /** * The name of the banking institution where the bank account is held. - * * @return bankName The name of the banking institution where the bank account is held. */ @JsonProperty(JSON_PROPERTY_BANK_NAME) @@ -158,12 +169,9 @@ public void setBankName(String bankName) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code where the bank account is registered. For example, **NL**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the bank account is registered. For example, **NL**. * - * @param countryCode The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the bank - * account is registered. For example, **NL**. + * @param countryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the bank account is registered. For example, **NL**. * @return the current {@code BankAccountInfo} instance, allowing for method chaining */ public BankAccountInfo countryCode(String countryCode) { @@ -172,12 +180,8 @@ public BankAccountInfo countryCode(String countryCode) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code where the bank account is registered. For example, **NL**. - * - * @return countryCode The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the bank - * account is registered. For example, **NL**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the bank account is registered. For example, **NL**. + * @return countryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the bank account is registered. For example, **NL**. */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,12 +190,9 @@ public String getCountryCode() { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code where the bank account is registered. For example, **NL**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the bank account is registered. For example, **NL**. * - * @param countryCode The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the bank - * account is registered. For example, **NL**. + * @param countryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the bank account is registered. For example, **NL**. */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,11 +201,8 @@ public void setCountryCode(String countryCode) { } /** - * Identifies if the bank account was created through [instant bank - * verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding). - * - * @return trustedSource Identifies if the bank account was created through [instant bank - * verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding). + * Identifies if the bank account was created through [instant bank verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding). + * @return trustedSource Identifies if the bank account was created through [instant bank verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding). */ @JsonProperty(JSON_PROPERTY_TRUSTED_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -212,7 +210,10 @@ public Boolean getTrustedSource() { return trustedSource; } - /** Return true if this BankAccountInfo object is equal to o. */ + + /** + * Return true if this BankAccountInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -222,11 +223,11 @@ public boolean equals(Object o) { return false; } BankAccountInfo bankAccountInfo = (BankAccountInfo) o; - return Objects.equals(this.accountIdentification, bankAccountInfo.accountIdentification) - && Objects.equals(this.accountType, bankAccountInfo.accountType) - && Objects.equals(this.bankName, bankAccountInfo.bankName) - && Objects.equals(this.countryCode, bankAccountInfo.countryCode) - && Objects.equals(this.trustedSource, bankAccountInfo.trustedSource); + return Objects.equals(this.accountIdentification, bankAccountInfo.accountIdentification) && + Objects.equals(this.accountType, bankAccountInfo.accountType) && + Objects.equals(this.bankName, bankAccountInfo.bankName) && + Objects.equals(this.countryCode, bankAccountInfo.countryCode) && + Objects.equals(this.trustedSource, bankAccountInfo.trustedSource); } @Override @@ -238,9 +239,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BankAccountInfo {\n"); - sb.append(" accountIdentification: ") - .append(toIndentedString(accountIdentification)) - .append("\n"); + sb.append(" accountIdentification: ").append(toIndentedString(accountIdentification)).append("\n"); sb.append(" accountType: ").append(toIndentedString(accountType)).append("\n"); sb.append(" bankName: ").append(toIndentedString(bankName)).append("\n"); sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n"); @@ -250,7 +249,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -259,7 +259,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BankAccountInfo given an JSON string * * @param jsonString JSON string @@ -269,12 +269,11 @@ private String toIndentedString(Object o) { public static BankAccountInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankAccountInfo.class); } - - /** - * Convert an instance of BankAccountInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BankAccountInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/BankAccountInfoAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/BankAccountInfoAccountIdentification.java index bc122bd32..54d1174ff 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/BankAccountInfoAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/BankAccountInfoAccountIdentification.java @@ -2,19 +2,59 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.legalentitymanagement.AULocalAccountIdentification; +import com.adyen.model.legalentitymanagement.AdditionalBankIdentification; +import com.adyen.model.legalentitymanagement.CALocalAccountIdentification; +import com.adyen.model.legalentitymanagement.CZLocalAccountIdentification; +import com.adyen.model.legalentitymanagement.DKLocalAccountIdentification; +import com.adyen.model.legalentitymanagement.HKLocalAccountIdentification; +import com.adyen.model.legalentitymanagement.HULocalAccountIdentification; +import com.adyen.model.legalentitymanagement.IbanAccountIdentification; +import com.adyen.model.legalentitymanagement.NOLocalAccountIdentification; +import com.adyen.model.legalentitymanagement.NZLocalAccountIdentification; +import com.adyen.model.legalentitymanagement.NumberAndBicAccountIdentification; +import com.adyen.model.legalentitymanagement.PLLocalAccountIdentification; +import com.adyen.model.legalentitymanagement.SELocalAccountIdentification; +import com.adyen.model.legalentitymanagement.SGLocalAccountIdentification; +import com.adyen.model.legalentitymanagement.UKLocalAccountIdentification; +import com.adyen.model.legalentitymanagement.USLocalAccountIdentification; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + +import com.fasterxml.jackson.core.type.TypeReference; + +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.Response; +import java.io.IOException; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; + import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; +import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -24,895 +64,825 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import jakarta.ws.rs.core.GenericType; -import java.io.IOException; -import java.util.*; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashSet; -import java.util.logging.Level; -import java.util.logging.Logger; -@JsonDeserialize( - using = - BankAccountInfoAccountIdentification.BankAccountInfoAccountIdentificationDeserializer.class) -@JsonSerialize( - using = - BankAccountInfoAccountIdentification.BankAccountInfoAccountIdentificationSerializer.class) + +@JsonDeserialize(using = BankAccountInfoAccountIdentification.BankAccountInfoAccountIdentificationDeserializer.class) +@JsonSerialize(using = BankAccountInfoAccountIdentification.BankAccountInfoAccountIdentificationSerializer.class) public class BankAccountInfoAccountIdentification extends AbstractOpenApiSchema { - private static final Logger log = - Logger.getLogger(BankAccountInfoAccountIdentification.class.getName()); + private static final Logger log = Logger.getLogger(BankAccountInfoAccountIdentification.class.getName()); + + public static class BankAccountInfoAccountIdentificationSerializer extends StdSerializer { + public BankAccountInfoAccountIdentificationSerializer(Class t) { + super(t); + } + + public BankAccountInfoAccountIdentificationSerializer() { + this(null); + } + + @Override + public void serialize(BankAccountInfoAccountIdentification value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); + } + } - public static class BankAccountInfoAccountIdentificationSerializer - extends StdSerializer { - public BankAccountInfoAccountIdentificationSerializer( - Class t) { - super(t); + public static class BankAccountInfoAccountIdentificationDeserializer extends StdDeserializer { + public BankAccountInfoAccountIdentificationDeserializer() { + this(BankAccountInfoAccountIdentification.class); + } + + public BankAccountInfoAccountIdentificationDeserializer(Class vc) { + super(vc); + } + + @Override + public BankAccountInfoAccountIdentification deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize AULocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(AULocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(AULocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'AULocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'AULocalAccountIdentification'", e); + } + + // deserialize CALocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(CALocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CALocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CALocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CALocalAccountIdentification'", e); + } + + // deserialize CZLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(CZLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CZLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CZLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CZLocalAccountIdentification'", e); + } + + // deserialize DKLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(DKLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(DKLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'DKLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'DKLocalAccountIdentification'", e); + } + + // deserialize HKLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(HKLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(HKLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'HKLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'HKLocalAccountIdentification'", e); + } + + // deserialize HULocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(HULocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(HULocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'HULocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'HULocalAccountIdentification'", e); + } + + // deserialize IbanAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(IbanAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'IbanAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'IbanAccountIdentification'", e); + } + + // deserialize NOLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(NOLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(NOLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'NOLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'NOLocalAccountIdentification'", e); + } + + // deserialize NZLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(NZLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(NZLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'NZLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'NZLocalAccountIdentification'", e); + } + + // deserialize NumberAndBicAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(NumberAndBicAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(NumberAndBicAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'NumberAndBicAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'NumberAndBicAccountIdentification'", e); + } + + // deserialize PLLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(PLLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PLLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PLLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PLLocalAccountIdentification'", e); + } + + // deserialize SELocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(SELocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(SELocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'SELocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'SELocalAccountIdentification'", e); + } + + // deserialize SGLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(SGLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(SGLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'SGLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'SGLocalAccountIdentification'", e); + } + + // deserialize UKLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(UKLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(UKLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'UKLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'UKLocalAccountIdentification'", e); + } + + // deserialize USLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(USLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(USLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'USLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'USLocalAccountIdentification'", e); + } + + if (match == 1) { + BankAccountInfoAccountIdentification ret = new BankAccountInfoAccountIdentification(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException(String.format("Failed deserialization for BankAccountInfoAccountIdentification: %d classes match result, expected 1", match)); + } + + /** + * Handle deserialization of the 'null' value. + */ + @Override + public BankAccountInfoAccountIdentification getNullValue(DeserializationContext ctxt) throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "BankAccountInfoAccountIdentification cannot be null"); + } + } + + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public BankAccountInfoAccountIdentification() { + super("oneOf", Boolean.FALSE); } - public BankAccountInfoAccountIdentificationSerializer() { - this(null); + public BankAccountInfoAccountIdentification(AULocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } - @Override - public void serialize( - BankAccountInfoAccountIdentification value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + public BankAccountInfoAccountIdentification(CALocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountInfoAccountIdentification(CZLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountInfoAccountIdentification(DKLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountInfoAccountIdentification(HKLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountInfoAccountIdentification(HULocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountInfoAccountIdentification(IbanAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountInfoAccountIdentification(NOLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountInfoAccountIdentification(NZLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountInfoAccountIdentification(NumberAndBicAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountInfoAccountIdentification(PLLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountInfoAccountIdentification(SELocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } - } - public static class BankAccountInfoAccountIdentificationDeserializer - extends StdDeserializer { - public BankAccountInfoAccountIdentificationDeserializer() { - this(BankAccountInfoAccountIdentification.class); + public BankAccountInfoAccountIdentification(SGLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } - public BankAccountInfoAccountIdentificationDeserializer(Class vc) { - super(vc); + public BankAccountInfoAccountIdentification(UKLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountInfoAccountIdentification(USLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("AULocalAccountIdentification", new GenericType() { + }); + schemas.put("CALocalAccountIdentification", new GenericType() { + }); + schemas.put("CZLocalAccountIdentification", new GenericType() { + }); + schemas.put("DKLocalAccountIdentification", new GenericType() { + }); + schemas.put("HKLocalAccountIdentification", new GenericType() { + }); + schemas.put("HULocalAccountIdentification", new GenericType() { + }); + schemas.put("IbanAccountIdentification", new GenericType() { + }); + schemas.put("NOLocalAccountIdentification", new GenericType() { + }); + schemas.put("NZLocalAccountIdentification", new GenericType() { + }); + schemas.put("NumberAndBicAccountIdentification", new GenericType() { + }); + schemas.put("PLLocalAccountIdentification", new GenericType() { + }); + schemas.put("SELocalAccountIdentification", new GenericType() { + }); + schemas.put("SGLocalAccountIdentification", new GenericType() { + }); + schemas.put("UKLocalAccountIdentification", new GenericType() { + }); + schemas.put("USLocalAccountIdentification", new GenericType() { + }); + JSON.registerDescendants(BankAccountInfoAccountIdentification.class, Collections.unmodifiableMap(schemas)); } @Override - public BankAccountInfoAccountIdentification deserialize( - JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize AULocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(AULocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(AULocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AULocalAccountIdentification'"); - } + public Map> getSchemas() { + return BankAccountInfoAccountIdentification.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check + * the instance parameter is valid against the oneOf child schemas: + * AULocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification + * + * It could be an instance of the 'oneOf' schemas. + * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(AULocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AULocalAccountIdentification'", e); - } - - // deserialize CALocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(CALocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(CALocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CALocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(CALocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CALocalAccountIdentification'", e); - } - - // deserialize CZLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(CZLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(CZLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CZLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(CZLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CZLocalAccountIdentification'", e); - } - - // deserialize DKLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(DKLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(DKLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'DKLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(DKLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'DKLocalAccountIdentification'", e); - } - - // deserialize HKLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(HKLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(HKLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'HKLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(HKLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'HKLocalAccountIdentification'", e); - } - - // deserialize HULocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(HULocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(HULocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'HULocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(HULocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'HULocalAccountIdentification'", e); - } - - // deserialize IbanAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(IbanAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'IbanAccountIdentification'"); - } + + if (JSON.isInstanceOf(IbanAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'IbanAccountIdentification'", e); - } - - // deserialize NOLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(NOLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(NOLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'NOLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(NOLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'NOLocalAccountIdentification'", e); - } - - // deserialize NZLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(NZLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(NZLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'NZLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(NZLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'NZLocalAccountIdentification'", e); - } - - // deserialize NumberAndBicAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(NumberAndBicAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(NumberAndBicAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'NumberAndBicAccountIdentification'"); - } + + if (JSON.isInstanceOf(NumberAndBicAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, "Input data does not match schema 'NumberAndBicAccountIdentification'", e); - } - - // deserialize PLLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(PLLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(PLLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PLLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(PLLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PLLocalAccountIdentification'", e); - } - - // deserialize SELocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(SELocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(SELocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SELocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(SELocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'SELocalAccountIdentification'", e); - } - - // deserialize SGLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(SGLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(SGLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SGLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(SGLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'SGLocalAccountIdentification'", e); - } - - // deserialize UKLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(UKLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(UKLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'UKLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(UKLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'UKLocalAccountIdentification'", e); - } - - // deserialize USLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(USLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(USLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'USLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(USLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'USLocalAccountIdentification'", e); - } - - if (match == 1) { - BankAccountInfoAccountIdentification ret = new BankAccountInfoAccountIdentification(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for BankAccountInfoAccountIdentification: %d classes match result, expected 1", - match)); - } - - /** Handle deserialization of the 'null' value. */ + + throw new RuntimeException("Invalid instance type. Must be AULocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification"); + } + + /** + * Get the actual instance, which can be the following: + * AULocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification + * + * @return The actual instance (AULocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification) + */ @Override - public BankAccountInfoAccountIdentification getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "BankAccountInfoAccountIdentification cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public BankAccountInfoAccountIdentification() { - super("oneOf", Boolean.FALSE); - } - - public BankAccountInfoAccountIdentification(AULocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountInfoAccountIdentification(CALocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountInfoAccountIdentification(CZLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountInfoAccountIdentification(DKLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountInfoAccountIdentification(HKLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountInfoAccountIdentification(HULocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountInfoAccountIdentification(IbanAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountInfoAccountIdentification(NOLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountInfoAccountIdentification(NZLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountInfoAccountIdentification(NumberAndBicAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountInfoAccountIdentification(PLLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountInfoAccountIdentification(SELocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountInfoAccountIdentification(SGLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountInfoAccountIdentification(UKLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountInfoAccountIdentification(USLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("AULocalAccountIdentification", new GenericType() {}); - schemas.put("CALocalAccountIdentification", new GenericType() {}); - schemas.put("CZLocalAccountIdentification", new GenericType() {}); - schemas.put("DKLocalAccountIdentification", new GenericType() {}); - schemas.put("HKLocalAccountIdentification", new GenericType() {}); - schemas.put("HULocalAccountIdentification", new GenericType() {}); - schemas.put("IbanAccountIdentification", new GenericType() {}); - schemas.put("NOLocalAccountIdentification", new GenericType() {}); - schemas.put("NZLocalAccountIdentification", new GenericType() {}); - schemas.put( - "NumberAndBicAccountIdentification", - new GenericType() {}); - schemas.put("PLLocalAccountIdentification", new GenericType() {}); - schemas.put("SELocalAccountIdentification", new GenericType() {}); - schemas.put("SGLocalAccountIdentification", new GenericType() {}); - schemas.put("UKLocalAccountIdentification", new GenericType() {}); - schemas.put("USLocalAccountIdentification", new GenericType() {}); - JSON.registerDescendants( - BankAccountInfoAccountIdentification.class, Collections.unmodifiableMap(schemas)); - } - - @Override - public Map> getSchemas() { - return BankAccountInfoAccountIdentification.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: AULocalAccountIdentification, CALocalAccountIdentification, - * CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, - * HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, - * NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, - * SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, - * USLocalAccountIdentification - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a - * composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(AULocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(CALocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(CZLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(DKLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(HKLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(HULocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(IbanAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(NOLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(NZLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(NumberAndBicAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(PLLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(SELocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(SGLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(UKLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(USLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException( - "Invalid instance type. Must be AULocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification"); - } - - /** - * Get the actual instance, which can be the following: AULocalAccountIdentification, - * CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, - * HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, - * NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, - * PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, - * UKLocalAccountIdentification, USLocalAccountIdentification - * - * @return The actual instance (AULocalAccountIdentification, CALocalAccountIdentification, - * CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, - * HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, - * NZLocalAccountIdentification, NumberAndBicAccountIdentification, - * PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, - * UKLocalAccountIdentification, USLocalAccountIdentification) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `AULocalAccountIdentification`. If the actual instance is not - * `AULocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `AULocalAccountIdentification` - * @throws ClassCastException if the instance is not `AULocalAccountIdentification` - */ - public AULocalAccountIdentification getAULocalAccountIdentification() throws ClassCastException { - return (AULocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `CALocalAccountIdentification`. If the actual instance is not - * `CALocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `CALocalAccountIdentification` - * @throws ClassCastException if the instance is not `CALocalAccountIdentification` - */ - public CALocalAccountIdentification getCALocalAccountIdentification() throws ClassCastException { - return (CALocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `CZLocalAccountIdentification`. If the actual instance is not - * `CZLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `CZLocalAccountIdentification` - * @throws ClassCastException if the instance is not `CZLocalAccountIdentification` - */ - public CZLocalAccountIdentification getCZLocalAccountIdentification() throws ClassCastException { - return (CZLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `DKLocalAccountIdentification`. If the actual instance is not - * `DKLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `DKLocalAccountIdentification` - * @throws ClassCastException if the instance is not `DKLocalAccountIdentification` - */ - public DKLocalAccountIdentification getDKLocalAccountIdentification() throws ClassCastException { - return (DKLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `HKLocalAccountIdentification`. If the actual instance is not - * `HKLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `HKLocalAccountIdentification` - * @throws ClassCastException if the instance is not `HKLocalAccountIdentification` - */ - public HKLocalAccountIdentification getHKLocalAccountIdentification() throws ClassCastException { - return (HKLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `HULocalAccountIdentification`. If the actual instance is not - * `HULocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `HULocalAccountIdentification` - * @throws ClassCastException if the instance is not `HULocalAccountIdentification` - */ - public HULocalAccountIdentification getHULocalAccountIdentification() throws ClassCastException { - return (HULocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `IbanAccountIdentification`. If the actual instance is not - * `IbanAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `IbanAccountIdentification` - * @throws ClassCastException if the instance is not `IbanAccountIdentification` - */ - public IbanAccountIdentification getIbanAccountIdentification() throws ClassCastException { - return (IbanAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `NOLocalAccountIdentification`. If the actual instance is not - * `NOLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `NOLocalAccountIdentification` - * @throws ClassCastException if the instance is not `NOLocalAccountIdentification` - */ - public NOLocalAccountIdentification getNOLocalAccountIdentification() throws ClassCastException { - return (NOLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `NZLocalAccountIdentification`. If the actual instance is not - * `NZLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `NZLocalAccountIdentification` - * @throws ClassCastException if the instance is not `NZLocalAccountIdentification` - */ - public NZLocalAccountIdentification getNZLocalAccountIdentification() throws ClassCastException { - return (NZLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `NumberAndBicAccountIdentification`. If the actual instance is not - * `NumberAndBicAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `NumberAndBicAccountIdentification` - * @throws ClassCastException if the instance is not `NumberAndBicAccountIdentification` - */ - public NumberAndBicAccountIdentification getNumberAndBicAccountIdentification() - throws ClassCastException { - return (NumberAndBicAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `PLLocalAccountIdentification`. If the actual instance is not - * `PLLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `PLLocalAccountIdentification` - * @throws ClassCastException if the instance is not `PLLocalAccountIdentification` - */ - public PLLocalAccountIdentification getPLLocalAccountIdentification() throws ClassCastException { - return (PLLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `SELocalAccountIdentification`. If the actual instance is not - * `SELocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `SELocalAccountIdentification` - * @throws ClassCastException if the instance is not `SELocalAccountIdentification` - */ - public SELocalAccountIdentification getSELocalAccountIdentification() throws ClassCastException { - return (SELocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `SGLocalAccountIdentification`. If the actual instance is not - * `SGLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `SGLocalAccountIdentification` - * @throws ClassCastException if the instance is not `SGLocalAccountIdentification` - */ - public SGLocalAccountIdentification getSGLocalAccountIdentification() throws ClassCastException { - return (SGLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `UKLocalAccountIdentification`. If the actual instance is not - * `UKLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `UKLocalAccountIdentification` - * @throws ClassCastException if the instance is not `UKLocalAccountIdentification` - */ - public UKLocalAccountIdentification getUKLocalAccountIdentification() throws ClassCastException { - return (UKLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `USLocalAccountIdentification`. If the actual instance is not - * `USLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `USLocalAccountIdentification` - * @throws ClassCastException if the instance is not `USLocalAccountIdentification` - */ - public USLocalAccountIdentification getUSLocalAccountIdentification() throws ClassCastException { - return (USLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Create an instance of BankAccountInfoAccountIdentification given an JSON string - * - * @param jsonString JSON string - * @return An instance of BankAccountInfoAccountIdentification - * @throws IOException if the JSON string is invalid with respect to - * BankAccountInfoAccountIdentification - */ - public static BankAccountInfoAccountIdentification fromJson(String jsonString) - throws IOException { - return JSON.getMapper().readValue(jsonString, BankAccountInfoAccountIdentification.class); - } - - /** - * Convert an instance of BankAccountInfoAccountIdentification to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); - } + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `AULocalAccountIdentification`. If the actual instance is not `AULocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `AULocalAccountIdentification` + * @throws ClassCastException if the instance is not `AULocalAccountIdentification` + */ + public AULocalAccountIdentification getAULocalAccountIdentification() throws ClassCastException { + return (AULocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `CALocalAccountIdentification`. If the actual instance is not `CALocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CALocalAccountIdentification` + * @throws ClassCastException if the instance is not `CALocalAccountIdentification` + */ + public CALocalAccountIdentification getCALocalAccountIdentification() throws ClassCastException { + return (CALocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `CZLocalAccountIdentification`. If the actual instance is not `CZLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CZLocalAccountIdentification` + * @throws ClassCastException if the instance is not `CZLocalAccountIdentification` + */ + public CZLocalAccountIdentification getCZLocalAccountIdentification() throws ClassCastException { + return (CZLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `DKLocalAccountIdentification`. If the actual instance is not `DKLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `DKLocalAccountIdentification` + * @throws ClassCastException if the instance is not `DKLocalAccountIdentification` + */ + public DKLocalAccountIdentification getDKLocalAccountIdentification() throws ClassCastException { + return (DKLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `HKLocalAccountIdentification`. If the actual instance is not `HKLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `HKLocalAccountIdentification` + * @throws ClassCastException if the instance is not `HKLocalAccountIdentification` + */ + public HKLocalAccountIdentification getHKLocalAccountIdentification() throws ClassCastException { + return (HKLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `HULocalAccountIdentification`. If the actual instance is not `HULocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `HULocalAccountIdentification` + * @throws ClassCastException if the instance is not `HULocalAccountIdentification` + */ + public HULocalAccountIdentification getHULocalAccountIdentification() throws ClassCastException { + return (HULocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `IbanAccountIdentification`. If the actual instance is not `IbanAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `IbanAccountIdentification` + * @throws ClassCastException if the instance is not `IbanAccountIdentification` + */ + public IbanAccountIdentification getIbanAccountIdentification() throws ClassCastException { + return (IbanAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `NOLocalAccountIdentification`. If the actual instance is not `NOLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `NOLocalAccountIdentification` + * @throws ClassCastException if the instance is not `NOLocalAccountIdentification` + */ + public NOLocalAccountIdentification getNOLocalAccountIdentification() throws ClassCastException { + return (NOLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `NZLocalAccountIdentification`. If the actual instance is not `NZLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `NZLocalAccountIdentification` + * @throws ClassCastException if the instance is not `NZLocalAccountIdentification` + */ + public NZLocalAccountIdentification getNZLocalAccountIdentification() throws ClassCastException { + return (NZLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `NumberAndBicAccountIdentification`. If the actual instance is not `NumberAndBicAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `NumberAndBicAccountIdentification` + * @throws ClassCastException if the instance is not `NumberAndBicAccountIdentification` + */ + public NumberAndBicAccountIdentification getNumberAndBicAccountIdentification() throws ClassCastException { + return (NumberAndBicAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `PLLocalAccountIdentification`. If the actual instance is not `PLLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `PLLocalAccountIdentification` + * @throws ClassCastException if the instance is not `PLLocalAccountIdentification` + */ + public PLLocalAccountIdentification getPLLocalAccountIdentification() throws ClassCastException { + return (PLLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `SELocalAccountIdentification`. If the actual instance is not `SELocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `SELocalAccountIdentification` + * @throws ClassCastException if the instance is not `SELocalAccountIdentification` + */ + public SELocalAccountIdentification getSELocalAccountIdentification() throws ClassCastException { + return (SELocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `SGLocalAccountIdentification`. If the actual instance is not `SGLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `SGLocalAccountIdentification` + * @throws ClassCastException if the instance is not `SGLocalAccountIdentification` + */ + public SGLocalAccountIdentification getSGLocalAccountIdentification() throws ClassCastException { + return (SGLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `UKLocalAccountIdentification`. If the actual instance is not `UKLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `UKLocalAccountIdentification` + * @throws ClassCastException if the instance is not `UKLocalAccountIdentification` + */ + public UKLocalAccountIdentification getUKLocalAccountIdentification() throws ClassCastException { + return (UKLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `USLocalAccountIdentification`. If the actual instance is not `USLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `USLocalAccountIdentification` + * @throws ClassCastException if the instance is not `USLocalAccountIdentification` + */ + public USLocalAccountIdentification getUSLocalAccountIdentification() throws ClassCastException { + return (USLocalAccountIdentification)super.getActualInstance(); + } + + + /** + * Create an instance of BankAccountInfoAccountIdentification given an JSON string + * + * @param jsonString JSON string + * @return An instance of BankAccountInfoAccountIdentification + * @throws IOException if the JSON string is invalid with respect to BankAccountInfoAccountIdentification + */ + public static BankAccountInfoAccountIdentification fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, BankAccountInfoAccountIdentification.class); + } + + /** + * Convert an instance of BankAccountInfoAccountIdentification to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } + } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/BirthData.java b/src/main/java/com/adyen/model/legalentitymanagement/BirthData.java index d1c8a1725..3dd3ab99f 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/BirthData.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/BirthData.java @@ -2,28 +2,41 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** BirthData */ -@JsonPropertyOrder({BirthData.JSON_PROPERTY_DATE_OF_BIRTH}) + +/** + * BirthData + */ +@JsonPropertyOrder({ + BirthData.JSON_PROPERTY_DATE_OF_BIRTH +}) + public class BirthData { public static final String JSON_PROPERTY_DATE_OF_BIRTH = "dateOfBirth"; private String dateOfBirth; - public BirthData() {} + public BirthData() { + } /** * The individual's date of birth, in YYYY-MM-DD format. @@ -38,7 +51,6 @@ public BirthData dateOfBirth(String dateOfBirth) { /** * The individual's date of birth, in YYYY-MM-DD format. - * * @return dateOfBirth The individual's date of birth, in YYYY-MM-DD format. */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @@ -58,7 +70,9 @@ public void setDateOfBirth(String dateOfBirth) { this.dateOfBirth = dateOfBirth; } - /** Return true if this BirthData object is equal to o. */ + /** + * Return true if this BirthData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,7 +110,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BirthData given an JSON string * * @param jsonString JSON string @@ -105,12 +120,11 @@ private String toIndentedString(Object o) { public static BirthData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BirthData.class); } - - /** - * Convert an instance of BirthData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BirthData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/BusinessLine.java b/src/main/java/com/adyen/model/legalentitymanagement/BusinessLine.java index bb3ffec01..8a7ed6a69 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/BusinessLine.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/BusinessLine.java @@ -2,28 +2,37 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.legalentitymanagement.CapabilityProblem; +import com.adyen.model.legalentitymanagement.SourceOfFunds; +import com.adyen.model.legalentitymanagement.WebData; +import com.adyen.model.legalentitymanagement.WebDataExemption; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** BusinessLine */ +/** + * BusinessLine + */ @JsonPropertyOrder({ BusinessLine.JSON_PROPERTY_CAPABILITY, BusinessLine.JSON_PROPERTY_ID, @@ -36,12 +45,13 @@ BusinessLine.JSON_PROPERTY_WEB_DATA, BusinessLine.JSON_PROPERTY_WEB_DATA_EXEMPTION }) + public class BusinessLine { /** - * The capability for which you are creating the business line. Possible values: - * **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** + * The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** */ public enum CapabilityEnum { + RECEIVEPAYMENTS(String.valueOf("receivePayments")), RECEIVEFROMPLATFORMPAYMENTS(String.valueOf("receiveFromPlatformPayments")), @@ -53,7 +63,7 @@ public enum CapabilityEnum { private String value; CapabilityEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -74,11 +84,7 @@ public static CapabilityEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "CapabilityEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(CapabilityEnum.values())); + LOG.warning("CapabilityEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CapabilityEnum.values())); return null; } } @@ -103,10 +109,10 @@ public static CapabilityEnum fromValue(String value) { private List salesChannels; /** - * The service for which you are creating the business line. Possible values: * - * **paymentProcessing** * **banking** + * The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** */ public enum ServiceEnum { + PAYMENTPROCESSING(String.valueOf("paymentProcessing")), BANKING(String.valueOf("banking")); @@ -116,7 +122,7 @@ public enum ServiceEnum { private String value; ServiceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -137,11 +143,7 @@ public static ServiceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ServiceEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ServiceEnum.values())); + LOG.warning("ServiceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ServiceEnum.values())); return null; } } @@ -158,22 +160,25 @@ public static ServiceEnum fromValue(String value) { public static final String JSON_PROPERTY_WEB_DATA_EXEMPTION = "webDataExemption"; private WebDataExemption webDataExemption; - public BusinessLine() {} + public BusinessLine() { + } @JsonCreator - public BusinessLine(@JsonProperty(JSON_PROPERTY_ID) String id) { + public BusinessLine( + @JsonProperty(JSON_PROPERTY_ID) String id + ) { this(); this.id = id; } /** - * The capability for which you are creating the business line. Possible values: - * **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** + * The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** * - * @param capability The capability for which you are creating the business line. Possible values: - * **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** + * @param capability The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** * @return the current {@code BusinessLine} instance, allowing for method chaining - * @deprecated since Legal Entity Management API v3 Use `service` instead. + * + * @deprecated since Legal Entity Management API v3 + * Use `service` instead. */ @Deprecated // deprecated since Legal Entity Management API v3: Use `service` instead. public BusinessLine capability(CapabilityEnum capability) { @@ -182,11 +187,8 @@ public BusinessLine capability(CapabilityEnum capability) { } /** - * The capability for which you are creating the business line. Possible values: - * **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** - * - * @return capability The capability for which you are creating the business line. Possible - * values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** + * The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** + * @return capability The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** * @deprecated // deprecated since Legal Entity Management API v3: Use `service` instead. */ @Deprecated // deprecated since Legal Entity Management API v3: Use `service` instead. @@ -197,12 +199,12 @@ public CapabilityEnum getCapability() { } /** - * The capability for which you are creating the business line. Possible values: - * **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** + * The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** + * + * @param capability The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** * - * @param capability The capability for which you are creating the business line. Possible values: - * **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** - * @deprecated since Legal Entity Management API v3 Use `service` instead. + * @deprecated since Legal Entity Management API v3 + * Use `service` instead. */ @Deprecated // deprecated since Legal Entity Management API v3: Use `service` instead. @JsonProperty(JSON_PROPERTY_CAPABILITY) @@ -213,7 +215,6 @@ public void setCapability(CapabilityEnum capability) { /** * The unique identifier of the business line. - * * @return id The unique identifier of the business line. */ @JsonProperty(JSON_PROPERTY_ID) @@ -222,18 +223,11 @@ public String getId() { return id; } + /** - * A code that represents the industry of the legal entity for - * [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) - * or - * [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). - * For example, **4431A** for computer software stores. + * A code that represents the industry of the legal entity for [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) or [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). For example, **4431A** for computer software stores. * - * @param industryCode A code that represents the industry of the legal entity for - * [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) - * or - * [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). - * For example, **4431A** for computer software stores. + * @param industryCode A code that represents the industry of the legal entity for [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) or [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). For example, **4431A** for computer software stores. * @return the current {@code BusinessLine} instance, allowing for method chaining */ public BusinessLine industryCode(String industryCode) { @@ -242,17 +236,8 @@ public BusinessLine industryCode(String industryCode) { } /** - * A code that represents the industry of the legal entity for - * [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) - * or - * [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). - * For example, **4431A** for computer software stores. - * - * @return industryCode A code that represents the industry of the legal entity for - * [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) - * or - * [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). - * For example, **4431A** for computer software stores. + * A code that represents the industry of the legal entity for [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) or [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). For example, **4431A** for computer software stores. + * @return industryCode A code that represents the industry of the legal entity for [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) or [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). For example, **4431A** for computer software stores. */ @JsonProperty(JSON_PROPERTY_INDUSTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -261,17 +246,9 @@ public String getIndustryCode() { } /** - * A code that represents the industry of the legal entity for - * [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) - * or - * [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). - * For example, **4431A** for computer software stores. + * A code that represents the industry of the legal entity for [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) or [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). For example, **4431A** for computer software stores. * - * @param industryCode A code that represents the industry of the legal entity for - * [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) - * or - * [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). - * For example, **4431A** for computer software stores. + * @param industryCode A code that represents the industry of the legal entity for [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) or [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). For example, **4431A** for computer software stores. */ @JsonProperty(JSON_PROPERTY_INDUSTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -280,13 +257,9 @@ public void setIndustryCode(String industryCode) { } /** - * Unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) - * that owns the business line. + * Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line. * - * @param legalEntityId Unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) - * that owns the business line. + * @param legalEntityId Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line. * @return the current {@code BusinessLine} instance, allowing for method chaining */ public BusinessLine legalEntityId(String legalEntityId) { @@ -295,13 +268,8 @@ public BusinessLine legalEntityId(String legalEntityId) { } /** - * Unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) - * that owns the business line. - * - * @return legalEntityId Unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) - * that owns the business line. + * Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line. + * @return legalEntityId Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -310,13 +278,9 @@ public String getLegalEntityId() { } /** - * Unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) - * that owns the business line. + * Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line. * - * @param legalEntityId Unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) - * that owns the business line. + * @param legalEntityId Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -345,7 +309,6 @@ public BusinessLine addProblemsItem(CapabilityProblem problemsItem) { /** * The verification errors related to capabilities for this supporting entity. - * * @return problems The verification errors related to capabilities for this supporting entity. */ @JsonProperty(JSON_PROPERTY_PROBLEMS) @@ -366,13 +329,9 @@ public void setProblems(List problems) { } /** - * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, - * **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the - * `service` **paymentProcessing**. + * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. * - * @param salesChannels A list of channels where goods or services are sold. Possible values: - * **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in - * combination with the `service` **paymentProcessing**. + * @param salesChannels A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. * @return the current {@code BusinessLine} instance, allowing for method chaining */ public BusinessLine salesChannels(List salesChannels) { @@ -389,13 +348,8 @@ public BusinessLine addSalesChannelsItem(String salesChannelsItem) { } /** - * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, - * **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the - * `service` **paymentProcessing**. - * - * @return salesChannels A list of channels where goods or services are sold. Possible values: - * **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in - * combination with the `service` **paymentProcessing**. + * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. + * @return salesChannels A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. */ @JsonProperty(JSON_PROPERTY_SALES_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -404,13 +358,9 @@ public List getSalesChannels() { } /** - * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, - * **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the - * `service` **paymentProcessing**. + * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. * - * @param salesChannels A list of channels where goods or services are sold. Possible values: - * **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in - * combination with the `service` **paymentProcessing**. + * @param salesChannels A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. */ @JsonProperty(JSON_PROPERTY_SALES_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -419,11 +369,9 @@ public void setSalesChannels(List salesChannels) { } /** - * The service for which you are creating the business line. Possible values: * - * **paymentProcessing** * **banking** + * The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** * - * @param service The service for which you are creating the business line. Possible values: * - * **paymentProcessing** * **banking** + * @param service The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** * @return the current {@code BusinessLine} instance, allowing for method chaining */ public BusinessLine service(ServiceEnum service) { @@ -432,11 +380,8 @@ public BusinessLine service(ServiceEnum service) { } /** - * The service for which you are creating the business line. Possible values: * - * **paymentProcessing** * **banking** - * - * @return service The service for which you are creating the business line. Possible values: * - * **paymentProcessing** * **banking** + * The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** + * @return service The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** */ @JsonProperty(JSON_PROPERTY_SERVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -445,11 +390,9 @@ public ServiceEnum getService() { } /** - * The service for which you are creating the business line. Possible values: * - * **paymentProcessing** * **banking** + * The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** * - * @param service The service for which you are creating the business line. Possible values: * - * **paymentProcessing** * **banking** + * @param service The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** */ @JsonProperty(JSON_PROPERTY_SERVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -460,7 +403,7 @@ public void setService(ServiceEnum service) { /** * sourceOfFunds * - * @param sourceOfFunds + * @param sourceOfFunds * @return the current {@code BusinessLine} instance, allowing for method chaining */ public BusinessLine sourceOfFunds(SourceOfFunds sourceOfFunds) { @@ -470,8 +413,7 @@ public BusinessLine sourceOfFunds(SourceOfFunds sourceOfFunds) { /** * Get sourceOfFunds - * - * @return sourceOfFunds + * @return sourceOfFunds */ @JsonProperty(JSON_PROPERTY_SOURCE_OF_FUNDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -482,7 +424,7 @@ public SourceOfFunds getSourceOfFunds() { /** * sourceOfFunds * - * @param sourceOfFunds + * @param sourceOfFunds */ @JsonProperty(JSON_PROPERTY_SOURCE_OF_FUNDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -491,13 +433,9 @@ public void setSourceOfFunds(SourceOfFunds sourceOfFunds) { } /** - * List of website URLs where your user's goods or services are sold. When this is required - * for a service but your user does not have an online presence, provide the reason in the - * `webDataExemption` object. + * List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. * - * @param webData List of website URLs where your user's goods or services are sold. When this - * is required for a service but your user does not have an online presence, provide the - * reason in the `webDataExemption` object. + * @param webData List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. * @return the current {@code BusinessLine} instance, allowing for method chaining */ public BusinessLine webData(List webData) { @@ -514,13 +452,8 @@ public BusinessLine addWebDataItem(WebData webDataItem) { } /** - * List of website URLs where your user's goods or services are sold. When this is required - * for a service but your user does not have an online presence, provide the reason in the - * `webDataExemption` object. - * - * @return webData List of website URLs where your user's goods or services are sold. When - * this is required for a service but your user does not have an online presence, provide the - * reason in the `webDataExemption` object. + * List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. + * @return webData List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. */ @JsonProperty(JSON_PROPERTY_WEB_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -529,13 +462,9 @@ public List getWebData() { } /** - * List of website URLs where your user's goods or services are sold. When this is required - * for a service but your user does not have an online presence, provide the reason in the - * `webDataExemption` object. + * List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. * - * @param webData List of website URLs where your user's goods or services are sold. When this - * is required for a service but your user does not have an online presence, provide the - * reason in the `webDataExemption` object. + * @param webData List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. */ @JsonProperty(JSON_PROPERTY_WEB_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -546,7 +475,7 @@ public void setWebData(List webData) { /** * webDataExemption * - * @param webDataExemption + * @param webDataExemption * @return the current {@code BusinessLine} instance, allowing for method chaining */ public BusinessLine webDataExemption(WebDataExemption webDataExemption) { @@ -556,8 +485,7 @@ public BusinessLine webDataExemption(WebDataExemption webDataExemption) { /** * Get webDataExemption - * - * @return webDataExemption + * @return webDataExemption */ @JsonProperty(JSON_PROPERTY_WEB_DATA_EXEMPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -568,7 +496,7 @@ public WebDataExemption getWebDataExemption() { /** * webDataExemption * - * @param webDataExemption + * @param webDataExemption */ @JsonProperty(JSON_PROPERTY_WEB_DATA_EXEMPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -576,7 +504,9 @@ public void setWebDataExemption(WebDataExemption webDataExemption) { this.webDataExemption = webDataExemption; } - /** Return true if this BusinessLine object is equal to o. */ + /** + * Return true if this BusinessLine object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -586,31 +516,21 @@ public boolean equals(Object o) { return false; } BusinessLine businessLine = (BusinessLine) o; - return Objects.equals(this.capability, businessLine.capability) - && Objects.equals(this.id, businessLine.id) - && Objects.equals(this.industryCode, businessLine.industryCode) - && Objects.equals(this.legalEntityId, businessLine.legalEntityId) - && Objects.equals(this.problems, businessLine.problems) - && Objects.equals(this.salesChannels, businessLine.salesChannels) - && Objects.equals(this.service, businessLine.service) - && Objects.equals(this.sourceOfFunds, businessLine.sourceOfFunds) - && Objects.equals(this.webData, businessLine.webData) - && Objects.equals(this.webDataExemption, businessLine.webDataExemption); + return Objects.equals(this.capability, businessLine.capability) && + Objects.equals(this.id, businessLine.id) && + Objects.equals(this.industryCode, businessLine.industryCode) && + Objects.equals(this.legalEntityId, businessLine.legalEntityId) && + Objects.equals(this.problems, businessLine.problems) && + Objects.equals(this.salesChannels, businessLine.salesChannels) && + Objects.equals(this.service, businessLine.service) && + Objects.equals(this.sourceOfFunds, businessLine.sourceOfFunds) && + Objects.equals(this.webData, businessLine.webData) && + Objects.equals(this.webDataExemption, businessLine.webDataExemption); } @Override public int hashCode() { - return Objects.hash( - capability, - id, - industryCode, - legalEntityId, - problems, - salesChannels, - service, - sourceOfFunds, - webData, - webDataExemption); + return Objects.hash(capability, id, industryCode, legalEntityId, problems, salesChannels, service, sourceOfFunds, webData, webDataExemption); } @Override @@ -632,7 +552,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -641,7 +562,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BusinessLine given an JSON string * * @param jsonString JSON string @@ -651,12 +572,11 @@ private String toIndentedString(Object o) { public static BusinessLine fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BusinessLine.class); } - - /** - * Convert an instance of BusinessLine to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BusinessLine to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/BusinessLineInfo.java b/src/main/java/com/adyen/model/legalentitymanagement/BusinessLineInfo.java index 019d198cc..4c11cd038 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/BusinessLineInfo.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/BusinessLineInfo.java @@ -2,28 +2,36 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.legalentitymanagement.SourceOfFunds; +import com.adyen.model.legalentitymanagement.WebData; +import com.adyen.model.legalentitymanagement.WebDataExemption; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** BusinessLineInfo */ + +/** + * BusinessLineInfo + */ @JsonPropertyOrder({ BusinessLineInfo.JSON_PROPERTY_CAPABILITY, BusinessLineInfo.JSON_PROPERTY_INDUSTRY_CODE, @@ -34,12 +42,13 @@ BusinessLineInfo.JSON_PROPERTY_WEB_DATA, BusinessLineInfo.JSON_PROPERTY_WEB_DATA_EXEMPTION }) + public class BusinessLineInfo { /** - * The capability for which you are creating the business line. Possible values: - * **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** + * The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** */ public enum CapabilityEnum { + RECEIVEPAYMENTS(String.valueOf("receivePayments")), RECEIVEFROMPLATFORMPAYMENTS(String.valueOf("receiveFromPlatformPayments")), @@ -51,7 +60,7 @@ public enum CapabilityEnum { private String value; CapabilityEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -72,11 +81,7 @@ public static CapabilityEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "CapabilityEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(CapabilityEnum.values())); + LOG.warning("CapabilityEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CapabilityEnum.values())); return null; } } @@ -95,10 +100,10 @@ public static CapabilityEnum fromValue(String value) { private List salesChannels; /** - * The service for which you are creating the business line. Possible values: * - * **paymentProcessing** * **banking** + * The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** */ public enum ServiceEnum { + PAYMENTPROCESSING(String.valueOf("paymentProcessing")), BANKING(String.valueOf("banking")); @@ -108,7 +113,7 @@ public enum ServiceEnum { private String value; ServiceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -129,11 +134,7 @@ public static ServiceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ServiceEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ServiceEnum.values())); + LOG.warning("ServiceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ServiceEnum.values())); return null; } } @@ -150,16 +151,17 @@ public static ServiceEnum fromValue(String value) { public static final String JSON_PROPERTY_WEB_DATA_EXEMPTION = "webDataExemption"; private WebDataExemption webDataExemption; - public BusinessLineInfo() {} + public BusinessLineInfo() { + } /** - * The capability for which you are creating the business line. Possible values: - * **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** + * The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** * - * @param capability The capability for which you are creating the business line. Possible values: - * **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** + * @param capability The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** * @return the current {@code BusinessLineInfo} instance, allowing for method chaining - * @deprecated since Legal Entity Management API v3 Use `service` instead. + * + * @deprecated since Legal Entity Management API v3 + * Use `service` instead. */ @Deprecated // deprecated since Legal Entity Management API v3: Use `service` instead. public BusinessLineInfo capability(CapabilityEnum capability) { @@ -168,11 +170,8 @@ public BusinessLineInfo capability(CapabilityEnum capability) { } /** - * The capability for which you are creating the business line. Possible values: - * **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** - * - * @return capability The capability for which you are creating the business line. Possible - * values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** + * The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** + * @return capability The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** * @deprecated // deprecated since Legal Entity Management API v3: Use `service` instead. */ @Deprecated // deprecated since Legal Entity Management API v3: Use `service` instead. @@ -183,12 +182,12 @@ public CapabilityEnum getCapability() { } /** - * The capability for which you are creating the business line. Possible values: - * **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** + * The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** + * + * @param capability The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** * - * @param capability The capability for which you are creating the business line. Possible values: - * **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** - * @deprecated since Legal Entity Management API v3 Use `service` instead. + * @deprecated since Legal Entity Management API v3 + * Use `service` instead. */ @Deprecated // deprecated since Legal Entity Management API v3: Use `service` instead. @JsonProperty(JSON_PROPERTY_CAPABILITY) @@ -198,17 +197,9 @@ public void setCapability(CapabilityEnum capability) { } /** - * A code that represents the industry of the legal entity for - * [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) - * or - * [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). - * For example, **4431A** for computer software stores. + * A code that represents the industry of the legal entity for [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) or [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). For example, **4431A** for computer software stores. * - * @param industryCode A code that represents the industry of the legal entity for - * [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) - * or - * [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). - * For example, **4431A** for computer software stores. + * @param industryCode A code that represents the industry of the legal entity for [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) or [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). For example, **4431A** for computer software stores. * @return the current {@code BusinessLineInfo} instance, allowing for method chaining */ public BusinessLineInfo industryCode(String industryCode) { @@ -217,17 +208,8 @@ public BusinessLineInfo industryCode(String industryCode) { } /** - * A code that represents the industry of the legal entity for - * [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) - * or - * [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). - * For example, **4431A** for computer software stores. - * - * @return industryCode A code that represents the industry of the legal entity for - * [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) - * or - * [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). - * For example, **4431A** for computer software stores. + * A code that represents the industry of the legal entity for [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) or [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). For example, **4431A** for computer software stores. + * @return industryCode A code that represents the industry of the legal entity for [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) or [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). For example, **4431A** for computer software stores. */ @JsonProperty(JSON_PROPERTY_INDUSTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -236,17 +218,9 @@ public String getIndustryCode() { } /** - * A code that represents the industry of the legal entity for - * [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) - * or - * [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). - * For example, **4431A** for computer software stores. + * A code that represents the industry of the legal entity for [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) or [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). For example, **4431A** for computer software stores. * - * @param industryCode A code that represents the industry of the legal entity for - * [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) - * or - * [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). - * For example, **4431A** for computer software stores. + * @param industryCode A code that represents the industry of the legal entity for [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) or [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). For example, **4431A** for computer software stores. */ @JsonProperty(JSON_PROPERTY_INDUSTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -255,13 +229,9 @@ public void setIndustryCode(String industryCode) { } /** - * Unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) - * that owns the business line. + * Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line. * - * @param legalEntityId Unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) - * that owns the business line. + * @param legalEntityId Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line. * @return the current {@code BusinessLineInfo} instance, allowing for method chaining */ public BusinessLineInfo legalEntityId(String legalEntityId) { @@ -270,13 +240,8 @@ public BusinessLineInfo legalEntityId(String legalEntityId) { } /** - * Unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) - * that owns the business line. - * - * @return legalEntityId Unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) - * that owns the business line. + * Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line. + * @return legalEntityId Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -285,13 +250,9 @@ public String getLegalEntityId() { } /** - * Unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) - * that owns the business line. + * Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line. * - * @param legalEntityId Unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) - * that owns the business line. + * @param legalEntityId Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -300,13 +261,9 @@ public void setLegalEntityId(String legalEntityId) { } /** - * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, - * **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the - * `service` **paymentProcessing**. + * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. * - * @param salesChannels A list of channels where goods or services are sold. Possible values: - * **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in - * combination with the `service` **paymentProcessing**. + * @param salesChannels A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. * @return the current {@code BusinessLineInfo} instance, allowing for method chaining */ public BusinessLineInfo salesChannels(List salesChannels) { @@ -323,13 +280,8 @@ public BusinessLineInfo addSalesChannelsItem(String salesChannelsItem) { } /** - * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, - * **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the - * `service` **paymentProcessing**. - * - * @return salesChannels A list of channels where goods or services are sold. Possible values: - * **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in - * combination with the `service` **paymentProcessing**. + * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. + * @return salesChannels A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. */ @JsonProperty(JSON_PROPERTY_SALES_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -338,13 +290,9 @@ public List getSalesChannels() { } /** - * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, - * **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the - * `service` **paymentProcessing**. + * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. * - * @param salesChannels A list of channels where goods or services are sold. Possible values: - * **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in - * combination with the `service` **paymentProcessing**. + * @param salesChannels A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. */ @JsonProperty(JSON_PROPERTY_SALES_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -353,11 +301,9 @@ public void setSalesChannels(List salesChannels) { } /** - * The service for which you are creating the business line. Possible values: * - * **paymentProcessing** * **banking** + * The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** * - * @param service The service for which you are creating the business line. Possible values: * - * **paymentProcessing** * **banking** + * @param service The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** * @return the current {@code BusinessLineInfo} instance, allowing for method chaining */ public BusinessLineInfo service(ServiceEnum service) { @@ -366,11 +312,8 @@ public BusinessLineInfo service(ServiceEnum service) { } /** - * The service for which you are creating the business line. Possible values: * - * **paymentProcessing** * **banking** - * - * @return service The service for which you are creating the business line. Possible values: * - * **paymentProcessing** * **banking** + * The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** + * @return service The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** */ @JsonProperty(JSON_PROPERTY_SERVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -379,11 +322,9 @@ public ServiceEnum getService() { } /** - * The service for which you are creating the business line. Possible values: * - * **paymentProcessing** * **banking** + * The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** * - * @param service The service for which you are creating the business line. Possible values: * - * **paymentProcessing** * **banking** + * @param service The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** */ @JsonProperty(JSON_PROPERTY_SERVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -394,7 +335,7 @@ public void setService(ServiceEnum service) { /** * sourceOfFunds * - * @param sourceOfFunds + * @param sourceOfFunds * @return the current {@code BusinessLineInfo} instance, allowing for method chaining */ public BusinessLineInfo sourceOfFunds(SourceOfFunds sourceOfFunds) { @@ -404,8 +345,7 @@ public BusinessLineInfo sourceOfFunds(SourceOfFunds sourceOfFunds) { /** * Get sourceOfFunds - * - * @return sourceOfFunds + * @return sourceOfFunds */ @JsonProperty(JSON_PROPERTY_SOURCE_OF_FUNDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -416,7 +356,7 @@ public SourceOfFunds getSourceOfFunds() { /** * sourceOfFunds * - * @param sourceOfFunds + * @param sourceOfFunds */ @JsonProperty(JSON_PROPERTY_SOURCE_OF_FUNDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -425,13 +365,9 @@ public void setSourceOfFunds(SourceOfFunds sourceOfFunds) { } /** - * List of website URLs where your user's goods or services are sold. When this is required - * for a service but your user does not have an online presence, provide the reason in the - * `webDataExemption` object. + * List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. * - * @param webData List of website URLs where your user's goods or services are sold. When this - * is required for a service but your user does not have an online presence, provide the - * reason in the `webDataExemption` object. + * @param webData List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. * @return the current {@code BusinessLineInfo} instance, allowing for method chaining */ public BusinessLineInfo webData(List webData) { @@ -448,13 +384,8 @@ public BusinessLineInfo addWebDataItem(WebData webDataItem) { } /** - * List of website URLs where your user's goods or services are sold. When this is required - * for a service but your user does not have an online presence, provide the reason in the - * `webDataExemption` object. - * - * @return webData List of website URLs where your user's goods or services are sold. When - * this is required for a service but your user does not have an online presence, provide the - * reason in the `webDataExemption` object. + * List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. + * @return webData List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. */ @JsonProperty(JSON_PROPERTY_WEB_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -463,13 +394,9 @@ public List getWebData() { } /** - * List of website URLs where your user's goods or services are sold. When this is required - * for a service but your user does not have an online presence, provide the reason in the - * `webDataExemption` object. + * List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. * - * @param webData List of website URLs where your user's goods or services are sold. When this - * is required for a service but your user does not have an online presence, provide the - * reason in the `webDataExemption` object. + * @param webData List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. */ @JsonProperty(JSON_PROPERTY_WEB_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -480,7 +407,7 @@ public void setWebData(List webData) { /** * webDataExemption * - * @param webDataExemption + * @param webDataExemption * @return the current {@code BusinessLineInfo} instance, allowing for method chaining */ public BusinessLineInfo webDataExemption(WebDataExemption webDataExemption) { @@ -490,8 +417,7 @@ public BusinessLineInfo webDataExemption(WebDataExemption webDataExemption) { /** * Get webDataExemption - * - * @return webDataExemption + * @return webDataExemption */ @JsonProperty(JSON_PROPERTY_WEB_DATA_EXEMPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -502,7 +428,7 @@ public WebDataExemption getWebDataExemption() { /** * webDataExemption * - * @param webDataExemption + * @param webDataExemption */ @JsonProperty(JSON_PROPERTY_WEB_DATA_EXEMPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -510,7 +436,9 @@ public void setWebDataExemption(WebDataExemption webDataExemption) { this.webDataExemption = webDataExemption; } - /** Return true if this BusinessLineInfo object is equal to o. */ + /** + * Return true if this BusinessLineInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -520,27 +448,19 @@ public boolean equals(Object o) { return false; } BusinessLineInfo businessLineInfo = (BusinessLineInfo) o; - return Objects.equals(this.capability, businessLineInfo.capability) - && Objects.equals(this.industryCode, businessLineInfo.industryCode) - && Objects.equals(this.legalEntityId, businessLineInfo.legalEntityId) - && Objects.equals(this.salesChannels, businessLineInfo.salesChannels) - && Objects.equals(this.service, businessLineInfo.service) - && Objects.equals(this.sourceOfFunds, businessLineInfo.sourceOfFunds) - && Objects.equals(this.webData, businessLineInfo.webData) - && Objects.equals(this.webDataExemption, businessLineInfo.webDataExemption); + return Objects.equals(this.capability, businessLineInfo.capability) && + Objects.equals(this.industryCode, businessLineInfo.industryCode) && + Objects.equals(this.legalEntityId, businessLineInfo.legalEntityId) && + Objects.equals(this.salesChannels, businessLineInfo.salesChannels) && + Objects.equals(this.service, businessLineInfo.service) && + Objects.equals(this.sourceOfFunds, businessLineInfo.sourceOfFunds) && + Objects.equals(this.webData, businessLineInfo.webData) && + Objects.equals(this.webDataExemption, businessLineInfo.webDataExemption); } @Override public int hashCode() { - return Objects.hash( - capability, - industryCode, - legalEntityId, - salesChannels, - service, - sourceOfFunds, - webData, - webDataExemption); + return Objects.hash(capability, industryCode, legalEntityId, salesChannels, service, sourceOfFunds, webData, webDataExemption); } @Override @@ -560,7 +480,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -569,7 +490,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BusinessLineInfo given an JSON string * * @param jsonString JSON string @@ -579,12 +500,11 @@ private String toIndentedString(Object o) { public static BusinessLineInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BusinessLineInfo.class); } - - /** - * Convert an instance of BusinessLineInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BusinessLineInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/BusinessLineInfoUpdate.java b/src/main/java/com/adyen/model/legalentitymanagement/BusinessLineInfoUpdate.java index 90f19b691..0d6db4a4f 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/BusinessLineInfoUpdate.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/BusinessLineInfoUpdate.java @@ -2,24 +2,36 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.legalentitymanagement.SourceOfFunds; +import com.adyen.model.legalentitymanagement.WebData; +import com.adyen.model.legalentitymanagement.WebDataExemption; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** BusinessLineInfoUpdate */ +/** + * BusinessLineInfoUpdate + */ @JsonPropertyOrder({ BusinessLineInfoUpdate.JSON_PROPERTY_INDUSTRY_CODE, BusinessLineInfoUpdate.JSON_PROPERTY_SALES_CHANNELS, @@ -27,6 +39,7 @@ BusinessLineInfoUpdate.JSON_PROPERTY_WEB_DATA, BusinessLineInfoUpdate.JSON_PROPERTY_WEB_DATA_EXEMPTION }) + public class BusinessLineInfoUpdate { public static final String JSON_PROPERTY_INDUSTRY_CODE = "industryCode"; private String industryCode; @@ -43,14 +56,13 @@ public class BusinessLineInfoUpdate { public static final String JSON_PROPERTY_WEB_DATA_EXEMPTION = "webDataExemption"; private WebDataExemption webDataExemption; - public BusinessLineInfoUpdate() {} + public BusinessLineInfoUpdate() { + } /** - * A code that represents the industry of your legal entity. For example, **4431A** for computer - * software stores. + * A code that represents the industry of your legal entity. For example, **4431A** for computer software stores. * - * @param industryCode A code that represents the industry of your legal entity. For example, - * **4431A** for computer software stores. + * @param industryCode A code that represents the industry of your legal entity. For example, **4431A** for computer software stores. * @return the current {@code BusinessLineInfoUpdate} instance, allowing for method chaining */ public BusinessLineInfoUpdate industryCode(String industryCode) { @@ -59,11 +71,8 @@ public BusinessLineInfoUpdate industryCode(String industryCode) { } /** - * A code that represents the industry of your legal entity. For example, **4431A** for computer - * software stores. - * - * @return industryCode A code that represents the industry of your legal entity. For example, - * **4431A** for computer software stores. + * A code that represents the industry of your legal entity. For example, **4431A** for computer software stores. + * @return industryCode A code that represents the industry of your legal entity. For example, **4431A** for computer software stores. */ @JsonProperty(JSON_PROPERTY_INDUSTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -72,11 +81,9 @@ public String getIndustryCode() { } /** - * A code that represents the industry of your legal entity. For example, **4431A** for computer - * software stores. + * A code that represents the industry of your legal entity. For example, **4431A** for computer software stores. * - * @param industryCode A code that represents the industry of your legal entity. For example, - * **4431A** for computer software stores. + * @param industryCode A code that represents the industry of your legal entity. For example, **4431A** for computer software stores. */ @JsonProperty(JSON_PROPERTY_INDUSTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -85,13 +92,9 @@ public void setIndustryCode(String industryCode) { } /** - * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, - * **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the - * `service` **paymentProcessing**. + * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. * - * @param salesChannels A list of channels where goods or services are sold. Possible values: - * **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in - * combination with the `service` **paymentProcessing**. + * @param salesChannels A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. * @return the current {@code BusinessLineInfoUpdate} instance, allowing for method chaining */ public BusinessLineInfoUpdate salesChannels(List salesChannels) { @@ -108,13 +111,8 @@ public BusinessLineInfoUpdate addSalesChannelsItem(String salesChannelsItem) { } /** - * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, - * **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the - * `service` **paymentProcessing**. - * - * @return salesChannels A list of channels where goods or services are sold. Possible values: - * **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in - * combination with the `service` **paymentProcessing**. + * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. + * @return salesChannels A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. */ @JsonProperty(JSON_PROPERTY_SALES_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,13 +121,9 @@ public List getSalesChannels() { } /** - * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, - * **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the - * `service` **paymentProcessing**. + * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. * - * @param salesChannels A list of channels where goods or services are sold. Possible values: - * **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in - * combination with the `service` **paymentProcessing**. + * @param salesChannels A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. */ @JsonProperty(JSON_PROPERTY_SALES_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,7 +134,7 @@ public void setSalesChannels(List salesChannels) { /** * sourceOfFunds * - * @param sourceOfFunds + * @param sourceOfFunds * @return the current {@code BusinessLineInfoUpdate} instance, allowing for method chaining */ public BusinessLineInfoUpdate sourceOfFunds(SourceOfFunds sourceOfFunds) { @@ -150,8 +144,7 @@ public BusinessLineInfoUpdate sourceOfFunds(SourceOfFunds sourceOfFunds) { /** * Get sourceOfFunds - * - * @return sourceOfFunds + * @return sourceOfFunds */ @JsonProperty(JSON_PROPERTY_SOURCE_OF_FUNDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -162,7 +155,7 @@ public SourceOfFunds getSourceOfFunds() { /** * sourceOfFunds * - * @param sourceOfFunds + * @param sourceOfFunds */ @JsonProperty(JSON_PROPERTY_SOURCE_OF_FUNDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -171,13 +164,9 @@ public void setSourceOfFunds(SourceOfFunds sourceOfFunds) { } /** - * List of website URLs where your user's goods or services are sold. When this is required - * for a service but your user does not have an online presence, provide the reason in the - * `webDataExemption` object. + * List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. * - * @param webData List of website URLs where your user's goods or services are sold. When this - * is required for a service but your user does not have an online presence, provide the - * reason in the `webDataExemption` object. + * @param webData List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. * @return the current {@code BusinessLineInfoUpdate} instance, allowing for method chaining */ public BusinessLineInfoUpdate webData(List webData) { @@ -194,13 +183,8 @@ public BusinessLineInfoUpdate addWebDataItem(WebData webDataItem) { } /** - * List of website URLs where your user's goods or services are sold. When this is required - * for a service but your user does not have an online presence, provide the reason in the - * `webDataExemption` object. - * - * @return webData List of website URLs where your user's goods or services are sold. When - * this is required for a service but your user does not have an online presence, provide the - * reason in the `webDataExemption` object. + * List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. + * @return webData List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. */ @JsonProperty(JSON_PROPERTY_WEB_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -209,13 +193,9 @@ public List getWebData() { } /** - * List of website URLs where your user's goods or services are sold. When this is required - * for a service but your user does not have an online presence, provide the reason in the - * `webDataExemption` object. + * List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. * - * @param webData List of website URLs where your user's goods or services are sold. When this - * is required for a service but your user does not have an online presence, provide the - * reason in the `webDataExemption` object. + * @param webData List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. */ @JsonProperty(JSON_PROPERTY_WEB_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -226,7 +206,7 @@ public void setWebData(List webData) { /** * webDataExemption * - * @param webDataExemption + * @param webDataExemption * @return the current {@code BusinessLineInfoUpdate} instance, allowing for method chaining */ public BusinessLineInfoUpdate webDataExemption(WebDataExemption webDataExemption) { @@ -236,8 +216,7 @@ public BusinessLineInfoUpdate webDataExemption(WebDataExemption webDataExemption /** * Get webDataExemption - * - * @return webDataExemption + * @return webDataExemption */ @JsonProperty(JSON_PROPERTY_WEB_DATA_EXEMPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -248,7 +227,7 @@ public WebDataExemption getWebDataExemption() { /** * webDataExemption * - * @param webDataExemption + * @param webDataExemption */ @JsonProperty(JSON_PROPERTY_WEB_DATA_EXEMPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -256,7 +235,9 @@ public void setWebDataExemption(WebDataExemption webDataExemption) { this.webDataExemption = webDataExemption; } - /** Return true if this BusinessLineInfoUpdate object is equal to o. */ + /** + * Return true if this BusinessLineInfoUpdate object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -266,11 +247,11 @@ public boolean equals(Object o) { return false; } BusinessLineInfoUpdate businessLineInfoUpdate = (BusinessLineInfoUpdate) o; - return Objects.equals(this.industryCode, businessLineInfoUpdate.industryCode) - && Objects.equals(this.salesChannels, businessLineInfoUpdate.salesChannels) - && Objects.equals(this.sourceOfFunds, businessLineInfoUpdate.sourceOfFunds) - && Objects.equals(this.webData, businessLineInfoUpdate.webData) - && Objects.equals(this.webDataExemption, businessLineInfoUpdate.webDataExemption); + return Objects.equals(this.industryCode, businessLineInfoUpdate.industryCode) && + Objects.equals(this.salesChannels, businessLineInfoUpdate.salesChannels) && + Objects.equals(this.sourceOfFunds, businessLineInfoUpdate.sourceOfFunds) && + Objects.equals(this.webData, businessLineInfoUpdate.webData) && + Objects.equals(this.webDataExemption, businessLineInfoUpdate.webDataExemption); } @Override @@ -292,7 +273,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -301,23 +283,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BusinessLineInfoUpdate given an JSON string * * @param jsonString JSON string * @return An instance of BusinessLineInfoUpdate - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BusinessLineInfoUpdate + * @throws JsonProcessingException if the JSON string is invalid with respect to BusinessLineInfoUpdate */ public static BusinessLineInfoUpdate fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BusinessLineInfoUpdate.class); } - - /** - * Convert an instance of BusinessLineInfoUpdate to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BusinessLineInfoUpdate to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/BusinessLines.java b/src/main/java/com/adyen/model/legalentitymanagement/BusinessLines.java index 77abea064..7d1d0d399 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/BusinessLines.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/BusinessLines.java @@ -2,30 +2,44 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.legalentitymanagement.BusinessLine; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * BusinessLines + */ +@JsonPropertyOrder({ + BusinessLines.JSON_PROPERTY_BUSINESS_LINES +}) -/** BusinessLines */ -@JsonPropertyOrder({BusinessLines.JSON_PROPERTY_BUSINESS_LINES}) public class BusinessLines { public static final String JSON_PROPERTY_BUSINESS_LINES = "businessLines"; private List businessLines; - public BusinessLines() {} + public BusinessLines() { + } /** * List of business lines. @@ -48,7 +62,6 @@ public BusinessLines addBusinessLinesItem(BusinessLine businessLinesItem) { /** * List of business lines. - * * @return businessLines List of business lines. */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINES) @@ -68,7 +81,9 @@ public void setBusinessLines(List businessLines) { this.businessLines = businessLines; } - /** Return true if this BusinessLines object is equal to o. */ + /** + * Return true if this BusinessLines object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -96,7 +111,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -105,7 +121,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BusinessLines given an JSON string * * @param jsonString JSON string @@ -115,12 +131,11 @@ private String toIndentedString(Object o) { public static BusinessLines fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BusinessLines.class); } - - /** - * Convert an instance of BusinessLines to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BusinessLines to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/CALocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/CALocalAccountIdentification.java index dac3a1497..1c3996e95 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/CALocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/CALocalAccountIdentification.java @@ -2,26 +2,31 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CALocalAccountIdentification */ +/** + * CALocalAccountIdentification + */ @JsonPropertyOrder({ CALocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, CALocalAccountIdentification.JSON_PROPERTY_ACCOUNT_TYPE, @@ -29,14 +34,16 @@ CALocalAccountIdentification.JSON_PROPERTY_TRANSIT_NUMBER, CALocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class CALocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ public enum AccountTypeEnum { + CHECKING(String.valueOf("checking")), SAVINGS(String.valueOf("savings")); @@ -46,7 +53,7 @@ public enum AccountTypeEnum { private String value; AccountTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -67,11 +74,7 @@ public static AccountTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AccountTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AccountTypeEnum.values())); + LOG.warning("AccountTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AccountTypeEnum.values())); return null; } } @@ -85,8 +88,11 @@ public static AccountTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANSIT_NUMBER = "transitNumber"; private String transitNumber; - /** **caLocal** */ + /** + * **caLocal** + */ public enum TypeEnum { + CALOCAL(String.valueOf("caLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -94,7 +100,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -115,11 +121,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -127,7 +129,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CALocalAccountIdentification() {} + public CALocalAccountIdentification() { + } /** * The 5- to 12-digit bank account number, without separators or whitespace. @@ -142,7 +145,6 @@ public CALocalAccountIdentification accountNumber(String accountNumber) { /** * The 5- to 12-digit bank account number, without separators or whitespace. - * * @return accountNumber The 5- to 12-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -163,10 +165,9 @@ public void setAccountNumber(String accountNumber) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. - * Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * @return the current {@code CALocalAccountIdentification} instance, allowing for method chaining */ public CALocalAccountIdentification accountType(AccountTypeEnum accountType) { @@ -175,10 +176,8 @@ public CALocalAccountIdentification accountType(AccountTypeEnum accountType) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. - * - * @return accountType The bank account type. Possible values: **checking** or **savings**. - * Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * @return accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,10 +186,9 @@ public AccountTypeEnum getAccountType() { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. - * Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,7 +209,6 @@ public CALocalAccountIdentification institutionNumber(String institutionNumber) /** * The 3-digit institution number, without separators or whitespace. - * * @return institutionNumber The 3-digit institution number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_INSTITUTION_NUMBER) @@ -244,7 +241,6 @@ public CALocalAccountIdentification transitNumber(String transitNumber) { /** * The 5-digit transit number, without separators or whitespace. - * * @return transitNumber The 5-digit transit number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_TRANSIT_NUMBER) @@ -277,7 +273,6 @@ public CALocalAccountIdentification type(TypeEnum type) { /** * **caLocal** - * * @return type **caLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -297,7 +292,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this CALocalAccountIdentification object is equal to o. */ + /** + * Return true if this CALocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -307,11 +304,11 @@ public boolean equals(Object o) { return false; } CALocalAccountIdentification caLocalAccountIdentification = (CALocalAccountIdentification) o; - return Objects.equals(this.accountNumber, caLocalAccountIdentification.accountNumber) - && Objects.equals(this.accountType, caLocalAccountIdentification.accountType) - && Objects.equals(this.institutionNumber, caLocalAccountIdentification.institutionNumber) - && Objects.equals(this.transitNumber, caLocalAccountIdentification.transitNumber) - && Objects.equals(this.type, caLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, caLocalAccountIdentification.accountNumber) && + Objects.equals(this.accountType, caLocalAccountIdentification.accountType) && + Objects.equals(this.institutionNumber, caLocalAccountIdentification.institutionNumber) && + Objects.equals(this.transitNumber, caLocalAccountIdentification.transitNumber) && + Objects.equals(this.type, caLocalAccountIdentification.type); } @Override @@ -333,7 +330,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -342,24 +340,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CALocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of CALocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CALocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to CALocalAccountIdentification */ - public static CALocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static CALocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CALocalAccountIdentification.class); } - - /** - * Convert an instance of CALocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CALocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/CZLocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/CZLocalAccountIdentification.java index d8859760c..70dac89da 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/CZLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/CZLocalAccountIdentification.java @@ -2,31 +2,37 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** CZLocalAccountIdentification */ + +/** + * CZLocalAccountIdentification + */ @JsonPropertyOrder({ CZLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, CZLocalAccountIdentification.JSON_PROPERTY_BANK_CODE, CZLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class CZLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -34,8 +40,11 @@ public class CZLocalAccountIdentification { public static final String JSON_PROPERTY_BANK_CODE = "bankCode"; private String bankCode; - /** **czLocal** */ + /** + * **czLocal** + */ public enum TypeEnum { + CZLOCAL(String.valueOf("czLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -43,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -76,20 +81,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CZLocalAccountIdentification() {} + public CZLocalAccountIdentification() { + } /** - * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional - * prefix (předčíslí). - The required second part (základní část) which must be at least two - * non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - - * **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, - * normalized) + * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) * - * @param accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following - * format: - The optional prefix (předčíslí). - The required second part (základní část) which - * must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** - * (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** - * (without prefix, normalized) + * @param accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) * @return the current {@code CZLocalAccountIdentification} instance, allowing for method chaining */ public CZLocalAccountIdentification accountNumber(String accountNumber) { @@ -98,17 +96,8 @@ public CZLocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional - * prefix (předčíslí). - The required second part (základní část) which must be at least two - * non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - - * **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, - * normalized) - * - * @return accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following - * format: - The optional prefix (předčíslí). - The required second part (základní část) which - * must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** - * (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** - * (without prefix, normalized) + * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) + * @return accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,17 +106,9 @@ public String getAccountNumber() { } /** - * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional - * prefix (předčíslí). - The required second part (základní část) which must be at least two - * non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - - * **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, - * normalized) + * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) * - * @param accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following - * format: - The optional prefix (předčíslí). - The required second part (základní část) which - * must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** - * (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** - * (without prefix, normalized) + * @param accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,7 +129,6 @@ public CZLocalAccountIdentification bankCode(String bankCode) { /** * The 4-digit bank code (Kód banky), without separators or whitespace. - * * @return bankCode The 4-digit bank code (Kód banky), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_BANK_CODE) @@ -181,7 +161,6 @@ public CZLocalAccountIdentification type(TypeEnum type) { /** * **czLocal** - * * @return type **czLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -201,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this CZLocalAccountIdentification object is equal to o. */ + /** + * Return true if this CZLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -211,9 +192,9 @@ public boolean equals(Object o) { return false; } CZLocalAccountIdentification czLocalAccountIdentification = (CZLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, czLocalAccountIdentification.accountNumber) - && Objects.equals(this.bankCode, czLocalAccountIdentification.bankCode) - && Objects.equals(this.type, czLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, czLocalAccountIdentification.accountNumber) && + Objects.equals(this.bankCode, czLocalAccountIdentification.bankCode) && + Objects.equals(this.type, czLocalAccountIdentification.type); } @Override @@ -233,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -242,24 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CZLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of CZLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CZLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to CZLocalAccountIdentification */ - public static CZLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static CZLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CZLocalAccountIdentification.class); } - - /** - * Convert an instance of CZLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CZLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/CalculatePciStatusRequest.java b/src/main/java/com/adyen/model/legalentitymanagement/CalculatePciStatusRequest.java index 7fa37cf0d..e989c7651 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/CalculatePciStatusRequest.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/CalculatePciStatusRequest.java @@ -2,32 +2,43 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * CalculatePciStatusRequest + */ +@JsonPropertyOrder({ + CalculatePciStatusRequest.JSON_PROPERTY_ADDITIONAL_SALES_CHANNELS +}) -/** CalculatePciStatusRequest */ -@JsonPropertyOrder({CalculatePciStatusRequest.JSON_PROPERTY_ADDITIONAL_SALES_CHANNELS}) public class CalculatePciStatusRequest { - /** Gets or Sets additionalSalesChannels */ + /** + * Gets or Sets additionalSalesChannels + */ public enum AdditionalSalesChannelsEnum { + ECOMMERCE(String.valueOf("eCommerce")), ECOMMOTO(String.valueOf("ecomMoto")), @@ -41,7 +52,7 @@ public enum AdditionalSalesChannelsEnum { private String value; AdditionalSalesChannelsEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -62,11 +73,7 @@ public static AdditionalSalesChannelsEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AdditionalSalesChannelsEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AdditionalSalesChannelsEnum.values())); + LOG.warning("AdditionalSalesChannelsEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AdditionalSalesChannelsEnum.values())); return null; } } @@ -74,30 +81,21 @@ public static AdditionalSalesChannelsEnum fromValue(String value) { public static final String JSON_PROPERTY_ADDITIONAL_SALES_CHANNELS = "additionalSalesChannels"; private List additionalSalesChannels; - public CalculatePciStatusRequest() {} + public CalculatePciStatusRequest() { + } /** - * An array of additional sales channels to generate PCI questionnaires. Include the relevant - * sales channels if you need your user to sign PCI questionnaires. Not required if you [create - * stores](https://docs.adyen.com/platforms) and [add payment - * methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the - * questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** + * An array of additional sales channels to generate PCI questionnaires. Include the relevant sales channels if you need your user to sign PCI questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** * - * @param additionalSalesChannels An array of additional sales channels to generate PCI - * questionnaires. Include the relevant sales channels if you need your user to sign PCI - * questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and - * [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate - * the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** + * @param additionalSalesChannels An array of additional sales channels to generate PCI questionnaires. Include the relevant sales channels if you need your user to sign PCI questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** * @return the current {@code CalculatePciStatusRequest} instance, allowing for method chaining */ - public CalculatePciStatusRequest additionalSalesChannels( - List additionalSalesChannels) { + public CalculatePciStatusRequest additionalSalesChannels(List additionalSalesChannels) { this.additionalSalesChannels = additionalSalesChannels; return this; } - public CalculatePciStatusRequest addAdditionalSalesChannelsItem( - AdditionalSalesChannelsEnum additionalSalesChannelsItem) { + public CalculatePciStatusRequest addAdditionalSalesChannelsItem(AdditionalSalesChannelsEnum additionalSalesChannelsItem) { if (this.additionalSalesChannels == null) { this.additionalSalesChannels = new ArrayList<>(); } @@ -106,17 +104,8 @@ public CalculatePciStatusRequest addAdditionalSalesChannelsItem( } /** - * An array of additional sales channels to generate PCI questionnaires. Include the relevant - * sales channels if you need your user to sign PCI questionnaires. Not required if you [create - * stores](https://docs.adyen.com/platforms) and [add payment - * methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the - * questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** - * - * @return additionalSalesChannels An array of additional sales channels to generate PCI - * questionnaires. Include the relevant sales channels if you need your user to sign PCI - * questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and - * [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate - * the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** + * An array of additional sales channels to generate PCI questionnaires. Include the relevant sales channels if you need your user to sign PCI questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** + * @return additionalSalesChannels An array of additional sales channels to generate PCI questionnaires. Include the relevant sales channels if you need your user to sign PCI questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_SALES_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,26 +114,19 @@ public List getAdditionalSalesChannels() { } /** - * An array of additional sales channels to generate PCI questionnaires. Include the relevant - * sales channels if you need your user to sign PCI questionnaires. Not required if you [create - * stores](https://docs.adyen.com/platforms) and [add payment - * methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the - * questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** + * An array of additional sales channels to generate PCI questionnaires. Include the relevant sales channels if you need your user to sign PCI questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** * - * @param additionalSalesChannels An array of additional sales channels to generate PCI - * questionnaires. Include the relevant sales channels if you need your user to sign PCI - * questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and - * [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate - * the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** + * @param additionalSalesChannels An array of additional sales channels to generate PCI questionnaires. Include the relevant sales channels if you need your user to sign PCI questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_SALES_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAdditionalSalesChannels( - List additionalSalesChannels) { + public void setAdditionalSalesChannels(List additionalSalesChannels) { this.additionalSalesChannels = additionalSalesChannels; } - /** Return true if this CalculatePciStatusRequest object is equal to o. */ + /** + * Return true if this CalculatePciStatusRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,8 +136,7 @@ public boolean equals(Object o) { return false; } CalculatePciStatusRequest calculatePciStatusRequest = (CalculatePciStatusRequest) o; - return Objects.equals( - this.additionalSalesChannels, calculatePciStatusRequest.additionalSalesChannels); + return Objects.equals(this.additionalSalesChannels, calculatePciStatusRequest.additionalSalesChannels); } @Override @@ -167,15 +148,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CalculatePciStatusRequest {\n"); - sb.append(" additionalSalesChannels: ") - .append(toIndentedString(additionalSalesChannels)) - .append("\n"); + sb.append(" additionalSalesChannels: ").append(toIndentedString(additionalSalesChannels)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -184,24 +164,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CalculatePciStatusRequest given an JSON string * * @param jsonString JSON string * @return An instance of CalculatePciStatusRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CalculatePciStatusRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to CalculatePciStatusRequest */ - public static CalculatePciStatusRequest fromJson(String jsonString) - throws JsonProcessingException { + public static CalculatePciStatusRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CalculatePciStatusRequest.class); } - - /** - * Convert an instance of CalculatePciStatusRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CalculatePciStatusRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/CalculatePciStatusResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/CalculatePciStatusResponse.java index 7d9b2a2cd..22b467b4f 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/CalculatePciStatusResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/CalculatePciStatusResponse.java @@ -2,35 +2,46 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** CalculatePciStatusResponse */ -@JsonPropertyOrder({CalculatePciStatusResponse.JSON_PROPERTY_SIGNING_REQUIRED}) + +/** + * CalculatePciStatusResponse + */ +@JsonPropertyOrder({ + CalculatePciStatusResponse.JSON_PROPERTY_SIGNING_REQUIRED +}) + public class CalculatePciStatusResponse { public static final String JSON_PROPERTY_SIGNING_REQUIRED = "signingRequired"; private Boolean signingRequired; - public CalculatePciStatusResponse() {} + public CalculatePciStatusResponse() { + } /** - * Indicates if the user is required to sign PCI questionnaires. If **false**, they do not need to - * sign any questionnaires. + * Indicates if the user is required to sign PCI questionnaires. If **false**, they do not need to sign any questionnaires. * - * @param signingRequired Indicates if the user is required to sign PCI questionnaires. If - * **false**, they do not need to sign any questionnaires. + * @param signingRequired Indicates if the user is required to sign PCI questionnaires. If **false**, they do not need to sign any questionnaires. * @return the current {@code CalculatePciStatusResponse} instance, allowing for method chaining */ public CalculatePciStatusResponse signingRequired(Boolean signingRequired) { @@ -39,11 +50,8 @@ public CalculatePciStatusResponse signingRequired(Boolean signingRequired) { } /** - * Indicates if the user is required to sign PCI questionnaires. If **false**, they do not need to - * sign any questionnaires. - * - * @return signingRequired Indicates if the user is required to sign PCI questionnaires. If - * **false**, they do not need to sign any questionnaires. + * Indicates if the user is required to sign PCI questionnaires. If **false**, they do not need to sign any questionnaires. + * @return signingRequired Indicates if the user is required to sign PCI questionnaires. If **false**, they do not need to sign any questionnaires. */ @JsonProperty(JSON_PROPERTY_SIGNING_REQUIRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -52,11 +60,9 @@ public Boolean getSigningRequired() { } /** - * Indicates if the user is required to sign PCI questionnaires. If **false**, they do not need to - * sign any questionnaires. + * Indicates if the user is required to sign PCI questionnaires. If **false**, they do not need to sign any questionnaires. * - * @param signingRequired Indicates if the user is required to sign PCI questionnaires. If - * **false**, they do not need to sign any questionnaires. + * @param signingRequired Indicates if the user is required to sign PCI questionnaires. If **false**, they do not need to sign any questionnaires. */ @JsonProperty(JSON_PROPERTY_SIGNING_REQUIRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,7 +70,9 @@ public void setSigningRequired(Boolean signingRequired) { this.signingRequired = signingRequired; } - /** Return true if this CalculatePciStatusResponse object is equal to o. */ + /** + * Return true if this CalculatePciStatusResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -92,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -101,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CalculatePciStatusResponse given an JSON string * * @param jsonString JSON string * @return An instance of CalculatePciStatusResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CalculatePciStatusResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to CalculatePciStatusResponse */ - public static CalculatePciStatusResponse fromJson(String jsonString) - throws JsonProcessingException { + public static CalculatePciStatusResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CalculatePciStatusResponse.class); } - - /** - * Convert an instance of CalculatePciStatusResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CalculatePciStatusResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/CalculateTermsOfServiceStatusResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/CalculateTermsOfServiceStatusResponse.java index 2cfeac7d2..573165728 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/CalculateTermsOfServiceStatusResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/CalculateTermsOfServiceStatusResponse.java @@ -2,32 +2,43 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * CalculateTermsOfServiceStatusResponse + */ +@JsonPropertyOrder({ + CalculateTermsOfServiceStatusResponse.JSON_PROPERTY_TERMS_OF_SERVICE_TYPES +}) -/** CalculateTermsOfServiceStatusResponse */ -@JsonPropertyOrder({CalculateTermsOfServiceStatusResponse.JSON_PROPERTY_TERMS_OF_SERVICE_TYPES}) public class CalculateTermsOfServiceStatusResponse { - /** Gets or Sets termsOfServiceTypes */ + /** + * Gets or Sets termsOfServiceTypes + */ public enum TermsOfServiceTypesEnum { + ADYENACCOUNT(String.valueOf("adyenAccount")), ADYENCAPITAL(String.valueOf("adyenCapital")), @@ -53,7 +64,7 @@ public enum TermsOfServiceTypesEnum { private String value; TermsOfServiceTypesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -74,11 +85,7 @@ public static TermsOfServiceTypesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TermsOfServiceTypesEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TermsOfServiceTypesEnum.values())); + LOG.warning("TermsOfServiceTypesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TermsOfServiceTypesEnum.values())); return null; } } @@ -86,25 +93,21 @@ public static TermsOfServiceTypesEnum fromValue(String value) { public static final String JSON_PROPERTY_TERMS_OF_SERVICE_TYPES = "termsOfServiceTypes"; private List termsOfServiceTypes; - public CalculateTermsOfServiceStatusResponse() {} + public CalculateTermsOfServiceStatusResponse() { + } /** - * The type of Terms of Service that the legal entity needs to accept. If empty, no Terms of - * Service needs to be accepted. + * The type of Terms of Service that the legal entity needs to accept. If empty, no Terms of Service needs to be accepted. * - * @param termsOfServiceTypes The type of Terms of Service that the legal entity needs to accept. - * If empty, no Terms of Service needs to be accepted. - * @return the current {@code CalculateTermsOfServiceStatusResponse} instance, allowing for method - * chaining + * @param termsOfServiceTypes The type of Terms of Service that the legal entity needs to accept. If empty, no Terms of Service needs to be accepted. + * @return the current {@code CalculateTermsOfServiceStatusResponse} instance, allowing for method chaining */ - public CalculateTermsOfServiceStatusResponse termsOfServiceTypes( - List termsOfServiceTypes) { + public CalculateTermsOfServiceStatusResponse termsOfServiceTypes(List termsOfServiceTypes) { this.termsOfServiceTypes = termsOfServiceTypes; return this; } - public CalculateTermsOfServiceStatusResponse addTermsOfServiceTypesItem( - TermsOfServiceTypesEnum termsOfServiceTypesItem) { + public CalculateTermsOfServiceStatusResponse addTermsOfServiceTypesItem(TermsOfServiceTypesEnum termsOfServiceTypesItem) { if (this.termsOfServiceTypes == null) { this.termsOfServiceTypes = new ArrayList<>(); } @@ -113,11 +116,8 @@ public CalculateTermsOfServiceStatusResponse addTermsOfServiceTypesItem( } /** - * The type of Terms of Service that the legal entity needs to accept. If empty, no Terms of - * Service needs to be accepted. - * - * @return termsOfServiceTypes The type of Terms of Service that the legal entity needs to accept. - * If empty, no Terms of Service needs to be accepted. + * The type of Terms of Service that the legal entity needs to accept. If empty, no Terms of Service needs to be accepted. + * @return termsOfServiceTypes The type of Terms of Service that the legal entity needs to accept. If empty, no Terms of Service needs to be accepted. */ @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,11 +126,9 @@ public List getTermsOfServiceTypes() { } /** - * The type of Terms of Service that the legal entity needs to accept. If empty, no Terms of - * Service needs to be accepted. + * The type of Terms of Service that the legal entity needs to accept. If empty, no Terms of Service needs to be accepted. * - * @param termsOfServiceTypes The type of Terms of Service that the legal entity needs to accept. - * If empty, no Terms of Service needs to be accepted. + * @param termsOfServiceTypes The type of Terms of Service that the legal entity needs to accept. If empty, no Terms of Service needs to be accepted. */ @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,7 +136,9 @@ public void setTermsOfServiceTypes(List termsOfServiceT this.termsOfServiceTypes = termsOfServiceTypes; } - /** Return true if this CalculateTermsOfServiceStatusResponse object is equal to o. */ + /** + * Return true if this CalculateTermsOfServiceStatusResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -147,10 +147,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CalculateTermsOfServiceStatusResponse calculateTermsOfServiceStatusResponse = - (CalculateTermsOfServiceStatusResponse) o; - return Objects.equals( - this.termsOfServiceTypes, calculateTermsOfServiceStatusResponse.termsOfServiceTypes); + CalculateTermsOfServiceStatusResponse calculateTermsOfServiceStatusResponse = (CalculateTermsOfServiceStatusResponse) o; + return Objects.equals(this.termsOfServiceTypes, calculateTermsOfServiceStatusResponse.termsOfServiceTypes); } @Override @@ -162,15 +160,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CalculateTermsOfServiceStatusResponse {\n"); - sb.append(" termsOfServiceTypes: ") - .append(toIndentedString(termsOfServiceTypes)) - .append("\n"); + sb.append(" termsOfServiceTypes: ").append(toIndentedString(termsOfServiceTypes)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -179,24 +176,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CalculateTermsOfServiceStatusResponse given an JSON string * * @param jsonString JSON string * @return An instance of CalculateTermsOfServiceStatusResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CalculateTermsOfServiceStatusResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to CalculateTermsOfServiceStatusResponse */ - public static CalculateTermsOfServiceStatusResponse fromJson(String jsonString) - throws JsonProcessingException { + public static CalculateTermsOfServiceStatusResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CalculateTermsOfServiceStatusResponse.class); } - - /** - * Convert an instance of CalculateTermsOfServiceStatusResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CalculateTermsOfServiceStatusResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblem.java b/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblem.java index e3a58302a..789f3be4c 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblem.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblem.java @@ -2,28 +2,40 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.legalentitymanagement.CapabilityProblemEntity; +import com.adyen.model.legalentitymanagement.VerificationError; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CapabilityProblem */ +/** + * CapabilityProblem + */ @JsonPropertyOrder({ CapabilityProblem.JSON_PROPERTY_ENTITY, CapabilityProblem.JSON_PROPERTY_VERIFICATION_ERRORS }) + public class CapabilityProblem { public static final String JSON_PROPERTY_ENTITY = "entity"; private CapabilityProblemEntity entity; @@ -31,12 +43,13 @@ public class CapabilityProblem { public static final String JSON_PROPERTY_VERIFICATION_ERRORS = "verificationErrors"; private List verificationErrors; - public CapabilityProblem() {} + public CapabilityProblem() { + } /** * entity * - * @param entity + * @param entity * @return the current {@code CapabilityProblem} instance, allowing for method chaining */ public CapabilityProblem entity(CapabilityProblemEntity entity) { @@ -46,8 +59,7 @@ public CapabilityProblem entity(CapabilityProblemEntity entity) { /** * Get entity - * - * @return entity + * @return entity */ @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,7 +70,7 @@ public CapabilityProblemEntity getEntity() { /** * entity * - * @param entity + * @param entity */ @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -69,7 +81,7 @@ public void setEntity(CapabilityProblemEntity entity) { /** * verificationErrors * - * @param verificationErrors + * @param verificationErrors * @return the current {@code CapabilityProblem} instance, allowing for method chaining */ public CapabilityProblem verificationErrors(List verificationErrors) { @@ -87,8 +99,7 @@ public CapabilityProblem addVerificationErrorsItem(VerificationError verificatio /** * Get verificationErrors - * - * @return verificationErrors + * @return verificationErrors */ @JsonProperty(JSON_PROPERTY_VERIFICATION_ERRORS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,7 +110,7 @@ public List getVerificationErrors() { /** * verificationErrors * - * @param verificationErrors + * @param verificationErrors */ @JsonProperty(JSON_PROPERTY_VERIFICATION_ERRORS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,7 +118,9 @@ public void setVerificationErrors(List verificationErrors) { this.verificationErrors = verificationErrors; } - /** Return true if this CapabilityProblem object is equal to o. */ + /** + * Return true if this CapabilityProblem object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -117,8 +130,8 @@ public boolean equals(Object o) { return false; } CapabilityProblem capabilityProblem = (CapabilityProblem) o; - return Objects.equals(this.entity, capabilityProblem.entity) - && Objects.equals(this.verificationErrors, capabilityProblem.verificationErrors); + return Objects.equals(this.entity, capabilityProblem.entity) && + Objects.equals(this.verificationErrors, capabilityProblem.verificationErrors); } @Override @@ -137,7 +150,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -146,7 +160,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CapabilityProblem given an JSON string * * @param jsonString JSON string @@ -156,12 +170,11 @@ private String toIndentedString(Object o) { public static CapabilityProblem fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapabilityProblem.class); } - - /** - * Convert an instance of CapabilityProblem to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CapabilityProblem to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblemEntity.java b/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblemEntity.java index e80d56a9b..b45ab15d0 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblemEntity.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblemEntity.java @@ -2,34 +2,41 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.legalentitymanagement.CapabilityProblemEntityRecursive; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** CapabilityProblemEntity */ + +/** + * CapabilityProblemEntity + */ @JsonPropertyOrder({ CapabilityProblemEntity.JSON_PROPERTY_DOCUMENTS, CapabilityProblemEntity.JSON_PROPERTY_ID, CapabilityProblemEntity.JSON_PROPERTY_OWNER, CapabilityProblemEntity.JSON_PROPERTY_TYPE }) + public class CapabilityProblemEntity { public static final String JSON_PROPERTY_DOCUMENTS = "documents"; private List documents; @@ -40,8 +47,11 @@ public class CapabilityProblemEntity { public static final String JSON_PROPERTY_OWNER = "owner"; private CapabilityProblemEntityRecursive owner; - /** Gets or Sets type */ + /** + * Gets or Sets type + */ public enum TypeEnum { + BANKACCOUNT(String.valueOf("BankAccount")), DOCUMENT(String.valueOf("Document")), @@ -55,7 +65,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -76,11 +86,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -88,13 +94,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CapabilityProblemEntity() {} + public CapabilityProblemEntity() { + } /** * List of document IDs corresponding to the verification errors from capabilities. * - * @param documents List of document IDs corresponding to the verification errors from - * capabilities. + * @param documents List of document IDs corresponding to the verification errors from capabilities. * @return the current {@code CapabilityProblemEntity} instance, allowing for method chaining */ public CapabilityProblemEntity documents(List documents) { @@ -112,9 +118,7 @@ public CapabilityProblemEntity addDocumentsItem(String documentsItem) { /** * List of document IDs corresponding to the verification errors from capabilities. - * - * @return documents List of document IDs corresponding to the verification errors from - * capabilities. + * @return documents List of document IDs corresponding to the verification errors from capabilities. */ @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,8 +129,7 @@ public List getDocuments() { /** * List of document IDs corresponding to the verification errors from capabilities. * - * @param documents List of document IDs corresponding to the verification errors from - * capabilities. + * @param documents List of document IDs corresponding to the verification errors from capabilities. */ @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,7 +140,7 @@ public void setDocuments(List documents) { /** * id * - * @param id + * @param id * @return the current {@code CapabilityProblemEntity} instance, allowing for method chaining */ public CapabilityProblemEntity id(String id) { @@ -147,8 +150,7 @@ public CapabilityProblemEntity id(String id) { /** * Get id - * - * @return id + * @return id */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,7 +161,7 @@ public String getId() { /** * id * - * @param id + * @param id */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -170,7 +172,7 @@ public void setId(String id) { /** * owner * - * @param owner + * @param owner * @return the current {@code CapabilityProblemEntity} instance, allowing for method chaining */ public CapabilityProblemEntity owner(CapabilityProblemEntityRecursive owner) { @@ -180,8 +182,7 @@ public CapabilityProblemEntity owner(CapabilityProblemEntityRecursive owner) { /** * Get owner - * - * @return owner + * @return owner */ @JsonProperty(JSON_PROPERTY_OWNER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,7 +193,7 @@ public CapabilityProblemEntityRecursive getOwner() { /** * owner * - * @param owner + * @param owner */ @JsonProperty(JSON_PROPERTY_OWNER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -203,7 +204,7 @@ public void setOwner(CapabilityProblemEntityRecursive owner) { /** * type * - * @param type + * @param type * @return the current {@code CapabilityProblemEntity} instance, allowing for method chaining */ public CapabilityProblemEntity type(TypeEnum type) { @@ -213,8 +214,7 @@ public CapabilityProblemEntity type(TypeEnum type) { /** * Get type - * - * @return type + * @return type */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -225,7 +225,7 @@ public TypeEnum getType() { /** * type * - * @param type + * @param type */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -233,7 +233,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this CapabilityProblemEntity object is equal to o. */ + /** + * Return true if this CapabilityProblemEntity object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -243,10 +245,10 @@ public boolean equals(Object o) { return false; } CapabilityProblemEntity capabilityProblemEntity = (CapabilityProblemEntity) o; - return Objects.equals(this.documents, capabilityProblemEntity.documents) - && Objects.equals(this.id, capabilityProblemEntity.id) - && Objects.equals(this.owner, capabilityProblemEntity.owner) - && Objects.equals(this.type, capabilityProblemEntity.type); + return Objects.equals(this.documents, capabilityProblemEntity.documents) && + Objects.equals(this.id, capabilityProblemEntity.id) && + Objects.equals(this.owner, capabilityProblemEntity.owner) && + Objects.equals(this.type, capabilityProblemEntity.type); } @Override @@ -267,7 +269,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -276,23 +279,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CapabilityProblemEntity given an JSON string * * @param jsonString JSON string * @return An instance of CapabilityProblemEntity - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CapabilityProblemEntity + * @throws JsonProcessingException if the JSON string is invalid with respect to CapabilityProblemEntity */ public static CapabilityProblemEntity fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapabilityProblemEntity.class); } - - /** - * Convert an instance of CapabilityProblemEntity to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CapabilityProblemEntity to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblemEntityRecursive.java b/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblemEntityRecursive.java index 356d6625d..4e4f13ee1 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblemEntityRecursive.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblemEntityRecursive.java @@ -2,35 +2,40 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** CapabilityProblemEntityRecursive */ + +/** + * CapabilityProblemEntityRecursive + */ @JsonPropertyOrder({ CapabilityProblemEntityRecursive.JSON_PROPERTY_DOCUMENTS, CapabilityProblemEntityRecursive.JSON_PROPERTY_ID, CapabilityProblemEntityRecursive.JSON_PROPERTY_TYPE }) @JsonTypeName("CapabilityProblemEntity-recursive") + public class CapabilityProblemEntityRecursive { public static final String JSON_PROPERTY_DOCUMENTS = "documents"; private List documents; @@ -38,8 +43,11 @@ public class CapabilityProblemEntityRecursive { public static final String JSON_PROPERTY_ID = "id"; private String id; - /** Gets or Sets type */ + /** + * Gets or Sets type + */ public enum TypeEnum { + BANKACCOUNT(String.valueOf("BankAccount")), DOCUMENT(String.valueOf("Document")), @@ -53,7 +61,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -74,11 +82,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -86,15 +90,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CapabilityProblemEntityRecursive() {} + public CapabilityProblemEntityRecursive() { + } /** * List of document IDs corresponding to the verification errors from capabilities. * - * @param documents List of document IDs corresponding to the verification errors from - * capabilities. - * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method - * chaining + * @param documents List of document IDs corresponding to the verification errors from capabilities. + * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method chaining */ public CapabilityProblemEntityRecursive documents(List documents) { this.documents = documents; @@ -111,9 +114,7 @@ public CapabilityProblemEntityRecursive addDocumentsItem(String documentsItem) { /** * List of document IDs corresponding to the verification errors from capabilities. - * - * @return documents List of document IDs corresponding to the verification errors from - * capabilities. + * @return documents List of document IDs corresponding to the verification errors from capabilities. */ @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,8 +125,7 @@ public List getDocuments() { /** * List of document IDs corresponding to the verification errors from capabilities. * - * @param documents List of document IDs corresponding to the verification errors from - * capabilities. + * @param documents List of document IDs corresponding to the verification errors from capabilities. */ @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,9 +136,8 @@ public void setDocuments(List documents) { /** * id * - * @param id - * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method - * chaining + * @param id + * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method chaining */ public CapabilityProblemEntityRecursive id(String id) { this.id = id; @@ -147,8 +146,7 @@ public CapabilityProblemEntityRecursive id(String id) { /** * Get id - * - * @return id + * @return id */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,7 +157,7 @@ public String getId() { /** * id * - * @param id + * @param id */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -170,9 +168,8 @@ public void setId(String id) { /** * type * - * @param type - * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method - * chaining + * @param type + * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method chaining */ public CapabilityProblemEntityRecursive type(TypeEnum type) { this.type = type; @@ -181,8 +178,7 @@ public CapabilityProblemEntityRecursive type(TypeEnum type) { /** * Get type - * - * @return type + * @return type */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,7 +189,7 @@ public TypeEnum getType() { /** * type * - * @param type + * @param type */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -201,7 +197,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this CapabilityProblemEntity-recursive object is equal to o. */ + /** + * Return true if this CapabilityProblemEntity-recursive object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -210,11 +208,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CapabilityProblemEntityRecursive capabilityProblemEntityRecursive = - (CapabilityProblemEntityRecursive) o; - return Objects.equals(this.documents, capabilityProblemEntityRecursive.documents) - && Objects.equals(this.id, capabilityProblemEntityRecursive.id) - && Objects.equals(this.type, capabilityProblemEntityRecursive.type); + CapabilityProblemEntityRecursive capabilityProblemEntityRecursive = (CapabilityProblemEntityRecursive) o; + return Objects.equals(this.documents, capabilityProblemEntityRecursive.documents) && + Objects.equals(this.id, capabilityProblemEntityRecursive.id) && + Objects.equals(this.type, capabilityProblemEntityRecursive.type); } @Override @@ -234,7 +231,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -243,24 +241,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CapabilityProblemEntityRecursive given an JSON string * * @param jsonString JSON string * @return An instance of CapabilityProblemEntityRecursive - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CapabilityProblemEntityRecursive + * @throws JsonProcessingException if the JSON string is invalid with respect to CapabilityProblemEntityRecursive */ - public static CapabilityProblemEntityRecursive fromJson(String jsonString) - throws JsonProcessingException { + public static CapabilityProblemEntityRecursive fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapabilityProblemEntityRecursive.class); } - - /** - * Convert an instance of CapabilityProblemEntityRecursive to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CapabilityProblemEntityRecursive to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/CapabilitySettings.java b/src/main/java/com/adyen/model/legalentitymanagement/CapabilitySettings.java index 0229f9ef6..1455e7b24 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/CapabilitySettings.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/CapabilitySettings.java @@ -2,30 +2,36 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.legalentitymanagement.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** CapabilitySettings */ + +/** + * CapabilitySettings + */ @JsonPropertyOrder({ CapabilitySettings.JSON_PROPERTY_AMOUNT_PER_INDUSTRY, CapabilitySettings.JSON_PROPERTY_AUTHORIZED_CARD_USERS, @@ -33,6 +39,7 @@ CapabilitySettings.JSON_PROPERTY_INTERVAL, CapabilitySettings.JSON_PROPERTY_MAX_AMOUNT }) + public class CapabilitySettings { public static final String JSON_PROPERTY_AMOUNT_PER_INDUSTRY = "amountPerIndustry"; private Map amountPerIndustry; @@ -40,8 +47,11 @@ public class CapabilitySettings { public static final String JSON_PROPERTY_AUTHORIZED_CARD_USERS = "authorizedCardUsers"; private Boolean authorizedCardUsers; - /** Gets or Sets fundingSource */ + /** + * Gets or Sets fundingSource + */ public enum FundingSourceEnum { + CREDIT(String.valueOf("credit")), DEBIT(String.valueOf("debit")), @@ -53,7 +63,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -74,11 +84,7 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FundingSourceEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FundingSourceEnum.values())); + LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -86,8 +92,11 @@ public static FundingSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_FUNDING_SOURCE = "fundingSource"; private List fundingSource; - /** The period when the rule conditions apply. */ + /** + * The period when the rule conditions apply. + */ public enum IntervalEnum { + DAILY(String.valueOf("daily")), MONTHLY(String.valueOf("monthly")), @@ -99,7 +108,7 @@ public enum IntervalEnum { private String value; IntervalEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -120,11 +129,7 @@ public static IntervalEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "IntervalEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(IntervalEnum.values())); + LOG.warning("IntervalEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(IntervalEnum.values())); return null; } } @@ -135,7 +140,8 @@ public static IntervalEnum fromValue(String value) { public static final String JSON_PROPERTY_MAX_AMOUNT = "maxAmount"; private Amount maxAmount; - public CapabilitySettings() {} + public CapabilitySettings() { + } /** * The maximum amount a card holder can spend per industry. @@ -158,7 +164,6 @@ public CapabilitySettings putAmountPerIndustryItem(String key, Amount amountPerI /** * The maximum amount a card holder can spend per industry. - * * @return amountPerIndustry The maximum amount a card holder can spend per industry. */ @JsonProperty(JSON_PROPERTY_AMOUNT_PER_INDUSTRY) @@ -191,7 +196,6 @@ public CapabilitySettings authorizedCardUsers(Boolean authorizedCardUsers) { /** * The number of card holders who can use the card. - * * @return authorizedCardUsers The number of card holders who can use the card. */ @JsonProperty(JSON_PROPERTY_AUTHORIZED_CARD_USERS) @@ -232,7 +236,6 @@ public CapabilitySettings addFundingSourceItem(FundingSourceEnum fundingSourceIt /** * The funding source of the card, for example **debit**. - * * @return fundingSource The funding source of the card, for example **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @@ -265,7 +268,6 @@ public CapabilitySettings interval(IntervalEnum interval) { /** * The period when the rule conditions apply. - * * @return interval The period when the rule conditions apply. */ @JsonProperty(JSON_PROPERTY_INTERVAL) @@ -288,7 +290,7 @@ public void setInterval(IntervalEnum interval) { /** * maxAmount * - * @param maxAmount + * @param maxAmount * @return the current {@code CapabilitySettings} instance, allowing for method chaining */ public CapabilitySettings maxAmount(Amount maxAmount) { @@ -298,8 +300,7 @@ public CapabilitySettings maxAmount(Amount maxAmount) { /** * Get maxAmount - * - * @return maxAmount + * @return maxAmount */ @JsonProperty(JSON_PROPERTY_MAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -310,7 +311,7 @@ public Amount getMaxAmount() { /** * maxAmount * - * @param maxAmount + * @param maxAmount */ @JsonProperty(JSON_PROPERTY_MAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -318,7 +319,9 @@ public void setMaxAmount(Amount maxAmount) { this.maxAmount = maxAmount; } - /** Return true if this CapabilitySettings object is equal to o. */ + /** + * Return true if this CapabilitySettings object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -328,11 +331,11 @@ public boolean equals(Object o) { return false; } CapabilitySettings capabilitySettings = (CapabilitySettings) o; - return Objects.equals(this.amountPerIndustry, capabilitySettings.amountPerIndustry) - && Objects.equals(this.authorizedCardUsers, capabilitySettings.authorizedCardUsers) - && Objects.equals(this.fundingSource, capabilitySettings.fundingSource) - && Objects.equals(this.interval, capabilitySettings.interval) - && Objects.equals(this.maxAmount, capabilitySettings.maxAmount); + return Objects.equals(this.amountPerIndustry, capabilitySettings.amountPerIndustry) && + Objects.equals(this.authorizedCardUsers, capabilitySettings.authorizedCardUsers) && + Objects.equals(this.fundingSource, capabilitySettings.fundingSource) && + Objects.equals(this.interval, capabilitySettings.interval) && + Objects.equals(this.maxAmount, capabilitySettings.maxAmount); } @Override @@ -345,9 +348,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CapabilitySettings {\n"); sb.append(" amountPerIndustry: ").append(toIndentedString(amountPerIndustry)).append("\n"); - sb.append(" authorizedCardUsers: ") - .append(toIndentedString(authorizedCardUsers)) - .append("\n"); + sb.append(" authorizedCardUsers: ").append(toIndentedString(authorizedCardUsers)).append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); sb.append(" interval: ").append(toIndentedString(interval)).append("\n"); sb.append(" maxAmount: ").append(toIndentedString(maxAmount)).append("\n"); @@ -356,7 +357,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -365,23 +367,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CapabilitySettings given an JSON string * * @param jsonString JSON string * @return An instance of CapabilitySettings - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CapabilitySettings + * @throws JsonProcessingException if the JSON string is invalid with respect to CapabilitySettings */ public static CapabilitySettings fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapabilitySettings.class); } - - /** - * Convert an instance of CapabilitySettings to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CapabilitySettings to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/CheckTaxElectronicDeliveryConsentResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/CheckTaxElectronicDeliveryConsentResponse.java index 04ed2559c..934f18267 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/CheckTaxElectronicDeliveryConsentResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/CheckTaxElectronicDeliveryConsentResponse.java @@ -2,35 +2,47 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** CheckTaxElectronicDeliveryConsentResponse */ -@JsonPropertyOrder({CheckTaxElectronicDeliveryConsentResponse.JSON_PROPERTY_US1099K}) + +/** + * CheckTaxElectronicDeliveryConsentResponse + */ +@JsonPropertyOrder({ + CheckTaxElectronicDeliveryConsentResponse.JSON_PROPERTY_US1099K +}) + public class CheckTaxElectronicDeliveryConsentResponse { public static final String JSON_PROPERTY_US1099K = "US1099k"; private Boolean us1099k; - public CheckTaxElectronicDeliveryConsentResponse() {} + public CheckTaxElectronicDeliveryConsentResponse() { + } /** * Consent to electronically deliver tax form US1099-K. * * @param us1099k Consent to electronically deliver tax form US1099-K. - * @return the current {@code CheckTaxElectronicDeliveryConsentResponse} instance, allowing for - * method chaining + * @return the current {@code CheckTaxElectronicDeliveryConsentResponse} instance, allowing for method chaining */ public CheckTaxElectronicDeliveryConsentResponse us1099k(Boolean us1099k) { this.us1099k = us1099k; @@ -39,7 +51,6 @@ public CheckTaxElectronicDeliveryConsentResponse us1099k(Boolean us1099k) { /** * Consent to electronically deliver tax form US1099-K. - * * @return us1099k Consent to electronically deliver tax form US1099-K. */ @JsonProperty(JSON_PROPERTY_US1099K) @@ -59,7 +70,9 @@ public void setUs1099k(Boolean us1099k) { this.us1099k = us1099k; } - /** Return true if this CheckTaxElectronicDeliveryConsentResponse object is equal to o. */ + /** + * Return true if this CheckTaxElectronicDeliveryConsentResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -68,8 +81,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CheckTaxElectronicDeliveryConsentResponse checkTaxElectronicDeliveryConsentResponse = - (CheckTaxElectronicDeliveryConsentResponse) o; + CheckTaxElectronicDeliveryConsentResponse checkTaxElectronicDeliveryConsentResponse = (CheckTaxElectronicDeliveryConsentResponse) o; return Objects.equals(this.us1099k, checkTaxElectronicDeliveryConsentResponse.us1099k); } @@ -88,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -97,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CheckTaxElectronicDeliveryConsentResponse given an JSON string * * @param jsonString JSON string * @return An instance of CheckTaxElectronicDeliveryConsentResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CheckTaxElectronicDeliveryConsentResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to CheckTaxElectronicDeliveryConsentResponse */ - public static CheckTaxElectronicDeliveryConsentResponse fromJson(String jsonString) - throws JsonProcessingException { + public static CheckTaxElectronicDeliveryConsentResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CheckTaxElectronicDeliveryConsentResponse.class); } - - /** - * Convert an instance of CheckTaxElectronicDeliveryConsentResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CheckTaxElectronicDeliveryConsentResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/DKLocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/DKLocalAccountIdentification.java index 23d1a22fd..cac2d2cfc 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/DKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/DKLocalAccountIdentification.java @@ -2,31 +2,37 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** DKLocalAccountIdentification */ + +/** + * DKLocalAccountIdentification + */ @JsonPropertyOrder({ DKLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, DKLocalAccountIdentification.JSON_PROPERTY_BANK_CODE, DKLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class DKLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -34,8 +40,11 @@ public class DKLocalAccountIdentification { public static final String JSON_PROPERTY_BANK_CODE = "bankCode"; private String bankCode; - /** **dkLocal** */ + /** + * **dkLocal** + */ public enum TypeEnum { + DKLOCAL(String.valueOf("dkLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -43,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -76,13 +81,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public DKLocalAccountIdentification() {} + public DKLocalAccountIdentification() { + } /** * The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). * - * @param accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or - * whitespace). + * @param accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). * @return the current {@code DKLocalAccountIdentification} instance, allowing for method chaining */ public DKLocalAccountIdentification accountNumber(String accountNumber) { @@ -92,9 +97,7 @@ public DKLocalAccountIdentification accountNumber(String accountNumber) { /** * The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). - * - * @return accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or - * whitespace). + * @return accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,8 +108,7 @@ public String getAccountNumber() { /** * The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). * - * @param accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or - * whitespace). + * @param accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,9 +129,7 @@ public DKLocalAccountIdentification bankCode(String bankCode) { /** * The 4-digit bank code (Registreringsnummer) (without separators or whitespace). - * - * @return bankCode The 4-digit bank code (Registreringsnummer) (without separators or - * whitespace). + * @return bankCode The 4-digit bank code (Registreringsnummer) (without separators or whitespace). */ @JsonProperty(JSON_PROPERTY_BANK_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,7 +161,6 @@ public DKLocalAccountIdentification type(TypeEnum type) { /** * **dkLocal** - * * @return type **dkLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -181,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this DKLocalAccountIdentification object is equal to o. */ + /** + * Return true if this DKLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -191,9 +192,9 @@ public boolean equals(Object o) { return false; } DKLocalAccountIdentification dkLocalAccountIdentification = (DKLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, dkLocalAccountIdentification.accountNumber) - && Objects.equals(this.bankCode, dkLocalAccountIdentification.bankCode) - && Objects.equals(this.type, dkLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, dkLocalAccountIdentification.accountNumber) && + Objects.equals(this.bankCode, dkLocalAccountIdentification.bankCode) && + Objects.equals(this.type, dkLocalAccountIdentification.type); } @Override @@ -213,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -222,24 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DKLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of DKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DKLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to DKLocalAccountIdentification */ - public static DKLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static DKLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DKLocalAccountIdentification.class); } - - /** - * Convert an instance of DKLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DKLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/DataReviewConfirmationResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/DataReviewConfirmationResponse.java index ac435905a..7af2ec394 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/DataReviewConfirmationResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/DataReviewConfirmationResponse.java @@ -2,35 +2,47 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** DataReviewConfirmationResponse */ -@JsonPropertyOrder({DataReviewConfirmationResponse.JSON_PROPERTY_DATA_REVIEWED_AT}) + +/** + * DataReviewConfirmationResponse + */ +@JsonPropertyOrder({ + DataReviewConfirmationResponse.JSON_PROPERTY_DATA_REVIEWED_AT +}) + public class DataReviewConfirmationResponse { public static final String JSON_PROPERTY_DATA_REVIEWED_AT = "dataReviewedAt"; private String dataReviewedAt; - public DataReviewConfirmationResponse() {} + public DataReviewConfirmationResponse() { + } /** * Date when data review was confirmed. * * @param dataReviewedAt Date when data review was confirmed. - * @return the current {@code DataReviewConfirmationResponse} instance, allowing for method - * chaining + * @return the current {@code DataReviewConfirmationResponse} instance, allowing for method chaining */ public DataReviewConfirmationResponse dataReviewedAt(String dataReviewedAt) { this.dataReviewedAt = dataReviewedAt; @@ -39,7 +51,6 @@ public DataReviewConfirmationResponse dataReviewedAt(String dataReviewedAt) { /** * Date when data review was confirmed. - * * @return dataReviewedAt Date when data review was confirmed. */ @JsonProperty(JSON_PROPERTY_DATA_REVIEWED_AT) @@ -59,7 +70,9 @@ public void setDataReviewedAt(String dataReviewedAt) { this.dataReviewedAt = dataReviewedAt; } - /** Return true if this DataReviewConfirmationResponse object is equal to o. */ + /** + * Return true if this DataReviewConfirmationResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -68,8 +81,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - DataReviewConfirmationResponse dataReviewConfirmationResponse = - (DataReviewConfirmationResponse) o; + DataReviewConfirmationResponse dataReviewConfirmationResponse = (DataReviewConfirmationResponse) o; return Objects.equals(this.dataReviewedAt, dataReviewConfirmationResponse.dataReviewedAt); } @@ -88,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -97,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DataReviewConfirmationResponse given an JSON string * * @param jsonString JSON string * @return An instance of DataReviewConfirmationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DataReviewConfirmationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to DataReviewConfirmationResponse */ - public static DataReviewConfirmationResponse fromJson(String jsonString) - throws JsonProcessingException { + public static DataReviewConfirmationResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DataReviewConfirmationResponse.class); } - - /** - * Convert an instance of DataReviewConfirmationResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DataReviewConfirmationResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/Document.java b/src/main/java/com/adyen/model/legalentitymanagement/Document.java index 1f44345bf..1e926ab16 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/Document.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/Document.java @@ -2,29 +2,36 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.legalentitymanagement.Attachment; +import com.adyen.model.legalentitymanagement.OwnerEntity; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** Document */ + +/** + * Document + */ @JsonPropertyOrder({ Document.JSON_PROPERTY_ATTACHMENT, Document.JSON_PROPERTY_ATTACHMENTS, @@ -40,6 +47,7 @@ Document.JSON_PROPERTY_OWNER, Document.JSON_PROPERTY_TYPE }) + public class Document { public static final String JSON_PROPERTY_ATTACHMENT = "attachment"; private Attachment attachment; @@ -81,21 +89,10 @@ public class Document { private OwnerEntity owner; /** - * Type of document, used when providing an ID number or uploading a document. The possible values - * depend on the legal entity type. * For **organization**, the `type` values can be - * **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, - * **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or - * **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be - * **identityCard**, **driversLicense**, **passport**, **liveSelfie**, - * **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, - * **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For - * **soleProprietorship**, the `type` values can be **constitutionalDocument**, - * **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is - * **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value is - * **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value is **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). */ public enum TypeEnum { + BANKSTATEMENT(String.valueOf("bankStatement")), DRIVERSLICENSE(String.valueOf("driversLicense")), @@ -139,7 +136,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -160,11 +157,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -172,13 +165,15 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public Document() {} + public Document() { + } @JsonCreator public Document( - @JsonProperty(JSON_PROPERTY_CREATION_DATE) OffsetDateTime creationDate, - @JsonProperty(JSON_PROPERTY_ID) String id, - @JsonProperty(JSON_PROPERTY_MODIFICATION_DATE) OffsetDateTime modificationDate) { + @JsonProperty(JSON_PROPERTY_CREATION_DATE) OffsetDateTime creationDate, + @JsonProperty(JSON_PROPERTY_ID) String id, + @JsonProperty(JSON_PROPERTY_MODIFICATION_DATE) OffsetDateTime modificationDate + ) { this(); this.creationDate = creationDate; this.id = id; @@ -188,7 +183,7 @@ public Document( /** * attachment * - * @param attachment + * @param attachment * @return the current {@code Document} instance, allowing for method chaining */ public Document attachment(Attachment attachment) { @@ -198,8 +193,7 @@ public Document attachment(Attachment attachment) { /** * Get attachment - * - * @return attachment + * @return attachment */ @JsonProperty(JSON_PROPERTY_ATTACHMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -210,7 +204,7 @@ public Attachment getAttachment() { /** * attachment * - * @param attachment + * @param attachment */ @JsonProperty(JSON_PROPERTY_ATTACHMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,11 +213,9 @@ public void setAttachment(Attachment attachment) { } /** - * Array that contains the document. The array supports multiple attachments for uploading - * different sides or pages of a document. + * Array that contains the document. The array supports multiple attachments for uploading different sides or pages of a document. * - * @param attachments Array that contains the document. The array supports multiple attachments - * for uploading different sides or pages of a document. + * @param attachments Array that contains the document. The array supports multiple attachments for uploading different sides or pages of a document. * @return the current {@code Document} instance, allowing for method chaining */ public Document attachments(List attachments) { @@ -240,11 +232,8 @@ public Document addAttachmentsItem(Attachment attachmentsItem) { } /** - * Array that contains the document. The array supports multiple attachments for uploading - * different sides or pages of a document. - * - * @return attachments Array that contains the document. The array supports multiple attachments - * for uploading different sides or pages of a document. + * Array that contains the document. The array supports multiple attachments for uploading different sides or pages of a document. + * @return attachments Array that contains the document. The array supports multiple attachments for uploading different sides or pages of a document. */ @JsonProperty(JSON_PROPERTY_ATTACHMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -253,11 +242,9 @@ public List getAttachments() { } /** - * Array that contains the document. The array supports multiple attachments for uploading - * different sides or pages of a document. + * Array that contains the document. The array supports multiple attachments for uploading different sides or pages of a document. * - * @param attachments Array that contains the document. The array supports multiple attachments - * for uploading different sides or pages of a document. + * @param attachments Array that contains the document. The array supports multiple attachments for uploading different sides or pages of a document. */ @JsonProperty(JSON_PROPERTY_ATTACHMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -267,7 +254,6 @@ public void setAttachments(List attachments) { /** * The creation date of the document. - * * @return creationDate The creation date of the document. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @@ -276,6 +262,7 @@ public OffsetDateTime getCreationDate() { return creationDate; } + /** * Your description for the document. * @@ -289,7 +276,6 @@ public Document description(String description) { /** * Your description for the document. - * * @return description Your description for the document. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -314,6 +300,7 @@ public void setDescription(String description) { * * @param expiryDate The expiry date of the document, in YYYY-MM-DD format. * @return the current {@code Document} instance, allowing for method chaining + * * @deprecated since Legal Entity Management API v1 */ @Deprecated // deprecated since Legal Entity Management API v1 @@ -324,7 +311,6 @@ public Document expiryDate(String expiryDate) { /** * The expiry date of the document, in YYYY-MM-DD format. - * * @return expiryDate The expiry date of the document, in YYYY-MM-DD format. * @deprecated // deprecated since Legal Entity Management API v1 */ @@ -339,6 +325,7 @@ public String getExpiryDate() { * The expiry date of the document, in YYYY-MM-DD format. * * @param expiryDate The expiry date of the document, in YYYY-MM-DD format. + * * @deprecated since Legal Entity Management API v1 */ @Deprecated // deprecated since Legal Entity Management API v1 @@ -361,7 +348,6 @@ public Document fileName(String fileName) { /** * The filename of the document. - * * @return fileName The filename of the document. */ @JsonProperty(JSON_PROPERTY_FILE_NAME) @@ -383,7 +369,6 @@ public void setFileName(String fileName) { /** * The unique identifier of the document. - * * @return id The unique identifier of the document. */ @JsonProperty(JSON_PROPERTY_ID) @@ -392,14 +377,13 @@ public String getId() { return id; } + /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code where the document was issued. For example, **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**. * - * @param issuerCountry The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document - * was issued. For example, **US**. + * @param issuerCountry The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**. * @return the current {@code Document} instance, allowing for method chaining + * * @deprecated since Legal Entity Management API v1 */ @Deprecated // deprecated since Legal Entity Management API v1 @@ -409,12 +393,8 @@ public Document issuerCountry(String issuerCountry) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code where the document was issued. For example, **US**. - * - * @return issuerCountry The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document - * was issued. For example, **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**. + * @return issuerCountry The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**. * @deprecated // deprecated since Legal Entity Management API v1 */ @Deprecated // deprecated since Legal Entity Management API v1 @@ -425,12 +405,10 @@ public String getIssuerCountry() { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code where the document was issued. For example, **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**. + * + * @param issuerCountry The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**. * - * @param issuerCountry The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document - * was issued. For example, **US**. * @deprecated since Legal Entity Management API v1 */ @Deprecated // deprecated since Legal Entity Management API v1 @@ -445,6 +423,7 @@ public void setIssuerCountry(String issuerCountry) { * * @param issuerState The state or province where the document was issued (AU only). * @return the current {@code Document} instance, allowing for method chaining + * * @deprecated since Legal Entity Management API v1 */ @Deprecated // deprecated since Legal Entity Management API v1 @@ -455,7 +434,6 @@ public Document issuerState(String issuerState) { /** * The state or province where the document was issued (AU only). - * * @return issuerState The state or province where the document was issued (AU only). * @deprecated // deprecated since Legal Entity Management API v1 */ @@ -470,6 +448,7 @@ public String getIssuerState() { * The state or province where the document was issued (AU only). * * @param issuerState The state or province where the document was issued (AU only). + * * @deprecated since Legal Entity Management API v1 */ @Deprecated // deprecated since Legal Entity Management API v1 @@ -481,7 +460,6 @@ public void setIssuerState(String issuerState) { /** * The modification date of the document. - * * @return modificationDate The modification date of the document. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_DATE) @@ -490,6 +468,7 @@ public OffsetDateTime getModificationDate() { return modificationDate; } + /** * The number in the document. * @@ -503,7 +482,6 @@ public Document number(String number) { /** * The number in the document. - * * @return number The number in the document. */ @JsonProperty(JSON_PROPERTY_NUMBER) @@ -526,7 +504,7 @@ public void setNumber(String number) { /** * owner * - * @param owner + * @param owner * @return the current {@code Document} instance, allowing for method chaining */ public Document owner(OwnerEntity owner) { @@ -536,8 +514,7 @@ public Document owner(OwnerEntity owner) { /** * Get owner - * - * @return owner + * @return owner */ @JsonProperty(JSON_PROPERTY_OWNER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -548,7 +525,7 @@ public OwnerEntity getOwner() { /** * owner * - * @param owner + * @param owner */ @JsonProperty(JSON_PROPERTY_OWNER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -557,33 +534,9 @@ public void setOwner(OwnerEntity owner) { } /** - * Type of document, used when providing an ID number or uploading a document. The possible values - * depend on the legal entity type. * For **organization**, the `type` values can be - * **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, - * **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or - * **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be - * **identityCard**, **driversLicense**, **passport**, **liveSelfie**, - * **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, - * **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For - * **soleProprietorship**, the `type` values can be **constitutionalDocument**, - * **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is - * **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value is - * **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value is **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). * - * @param type Type of document, used when providing an ID number or uploading a document. The - * possible values depend on the legal entity type. * For **organization**, the - * `type` values can be **proofOfAddress**, **registrationDocument**, - * **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, - * **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the - * `type` values can be **identityCard**, **driversLicense**, **passport**, - * **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, - * **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * - * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, - * **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is - * **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value - * is **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * @param type Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value is **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). * @return the current {@code Document} instance, allowing for method chaining */ public Document type(TypeEnum type) { @@ -592,33 +545,8 @@ public Document type(TypeEnum type) { } /** - * Type of document, used when providing an ID number or uploading a document. The possible values - * depend on the legal entity type. * For **organization**, the `type` values can be - * **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, - * **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or - * **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be - * **identityCard**, **driversLicense**, **passport**, **liveSelfie**, - * **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, - * **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For - * **soleProprietorship**, the `type` values can be **constitutionalDocument**, - * **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is - * **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value is - * **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - * - * @return type Type of document, used when providing an ID number or uploading a document. The - * possible values depend on the legal entity type. * For **organization**, the - * `type` values can be **proofOfAddress**, **registrationDocument**, - * **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, - * **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the - * `type` values can be **identityCard**, **driversLicense**, **passport**, - * **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, - * **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * - * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, - * **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is - * **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value - * is **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value is **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * @return type Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value is **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -627,33 +555,9 @@ public TypeEnum getType() { } /** - * Type of document, used when providing an ID number or uploading a document. The possible values - * depend on the legal entity type. * For **organization**, the `type` values can be - * **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, - * **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or - * **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be - * **identityCard**, **driversLicense**, **passport**, **liveSelfie**, - * **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, - * **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For - * **soleProprietorship**, the `type` values can be **constitutionalDocument**, - * **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is - * **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value is - * **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value is **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). * - * @param type Type of document, used when providing an ID number or uploading a document. The - * possible values depend on the legal entity type. * For **organization**, the - * `type` values can be **proofOfAddress**, **registrationDocument**, - * **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, - * **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the - * `type` values can be **identityCard**, **driversLicense**, **passport**, - * **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, - * **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * - * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, - * **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is - * **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value - * is **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * @param type Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value is **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -661,7 +565,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this Document object is equal to o. */ + /** + * Return true if this Document object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -671,37 +577,24 @@ public boolean equals(Object o) { return false; } Document document = (Document) o; - return Objects.equals(this.attachment, document.attachment) - && Objects.equals(this.attachments, document.attachments) - && Objects.equals(this.creationDate, document.creationDate) - && Objects.equals(this.description, document.description) - && Objects.equals(this.expiryDate, document.expiryDate) - && Objects.equals(this.fileName, document.fileName) - && Objects.equals(this.id, document.id) - && Objects.equals(this.issuerCountry, document.issuerCountry) - && Objects.equals(this.issuerState, document.issuerState) - && Objects.equals(this.modificationDate, document.modificationDate) - && Objects.equals(this.number, document.number) - && Objects.equals(this.owner, document.owner) - && Objects.equals(this.type, document.type); + return Objects.equals(this.attachment, document.attachment) && + Objects.equals(this.attachments, document.attachments) && + Objects.equals(this.creationDate, document.creationDate) && + Objects.equals(this.description, document.description) && + Objects.equals(this.expiryDate, document.expiryDate) && + Objects.equals(this.fileName, document.fileName) && + Objects.equals(this.id, document.id) && + Objects.equals(this.issuerCountry, document.issuerCountry) && + Objects.equals(this.issuerState, document.issuerState) && + Objects.equals(this.modificationDate, document.modificationDate) && + Objects.equals(this.number, document.number) && + Objects.equals(this.owner, document.owner) && + Objects.equals(this.type, document.type); } @Override public int hashCode() { - return Objects.hash( - attachment, - attachments, - creationDate, - description, - expiryDate, - fileName, - id, - issuerCountry, - issuerState, - modificationDate, - number, - owner, - type); + return Objects.hash(attachment, attachments, creationDate, description, expiryDate, fileName, id, issuerCountry, issuerState, modificationDate, number, owner, type); } @Override @@ -726,7 +619,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -735,7 +629,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Document given an JSON string * * @param jsonString JSON string @@ -745,12 +639,11 @@ private String toIndentedString(Object o) { public static Document fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Document.class); } - - /** - * Convert an instance of Document to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Document to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/DocumentPage.java b/src/main/java/com/adyen/model/legalentitymanagement/DocumentPage.java index 3bbb85673..9af191953 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/DocumentPage.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/DocumentPage.java @@ -2,31 +2,37 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** DocumentPage */ + +/** + * DocumentPage + */ @JsonPropertyOrder({ DocumentPage.JSON_PROPERTY_PAGE_NAME, DocumentPage.JSON_PROPERTY_PAGE_NUMBER, DocumentPage.JSON_PROPERTY_TYPE }) + public class DocumentPage { public static final String JSON_PROPERTY_PAGE_NAME = "pageName"; private String pageName; @@ -34,8 +40,11 @@ public class DocumentPage { public static final String JSON_PROPERTY_PAGE_NUMBER = "pageNumber"; private Integer pageNumber; - /** Gets or Sets type */ + /** + * Gets or Sets type + */ public enum TypeEnum { + BACK(String.valueOf("BACK")), FRONT(String.valueOf("FRONT")), @@ -47,7 +56,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -68,11 +77,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -80,12 +85,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public DocumentPage() {} + public DocumentPage() { + } /** * pageName * - * @param pageName + * @param pageName * @return the current {@code DocumentPage} instance, allowing for method chaining */ public DocumentPage pageName(String pageName) { @@ -95,8 +101,7 @@ public DocumentPage pageName(String pageName) { /** * Get pageName - * - * @return pageName + * @return pageName */ @JsonProperty(JSON_PROPERTY_PAGE_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,7 +112,7 @@ public String getPageName() { /** * pageName * - * @param pageName + * @param pageName */ @JsonProperty(JSON_PROPERTY_PAGE_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,7 +123,7 @@ public void setPageName(String pageName) { /** * pageNumber * - * @param pageNumber + * @param pageNumber * @return the current {@code DocumentPage} instance, allowing for method chaining */ public DocumentPage pageNumber(Integer pageNumber) { @@ -128,8 +133,7 @@ public DocumentPage pageNumber(Integer pageNumber) { /** * Get pageNumber - * - * @return pageNumber + * @return pageNumber */ @JsonProperty(JSON_PROPERTY_PAGE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,7 +144,7 @@ public Integer getPageNumber() { /** * pageNumber * - * @param pageNumber + * @param pageNumber */ @JsonProperty(JSON_PROPERTY_PAGE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,7 +155,7 @@ public void setPageNumber(Integer pageNumber) { /** * type * - * @param type + * @param type * @return the current {@code DocumentPage} instance, allowing for method chaining */ public DocumentPage type(TypeEnum type) { @@ -161,8 +165,7 @@ public DocumentPage type(TypeEnum type) { /** * Get type - * - * @return type + * @return type */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,7 +176,7 @@ public TypeEnum getType() { /** * type * - * @param type + * @param type */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,7 +184,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this DocumentPage object is equal to o. */ + /** + * Return true if this DocumentPage object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -191,9 +196,9 @@ public boolean equals(Object o) { return false; } DocumentPage documentPage = (DocumentPage) o; - return Objects.equals(this.pageName, documentPage.pageName) - && Objects.equals(this.pageNumber, documentPage.pageNumber) - && Objects.equals(this.type, documentPage.type); + return Objects.equals(this.pageName, documentPage.pageName) && + Objects.equals(this.pageNumber, documentPage.pageNumber) && + Objects.equals(this.type, documentPage.type); } @Override @@ -213,7 +218,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -222,7 +228,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DocumentPage given an JSON string * * @param jsonString JSON string @@ -232,12 +238,11 @@ private String toIndentedString(Object o) { public static DocumentPage fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DocumentPage.class); } - - /** - * Convert an instance of DocumentPage to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DocumentPage to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/DocumentReference.java b/src/main/java/com/adyen/model/legalentitymanagement/DocumentReference.java index 1f8721c29..9ffd0349b 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/DocumentReference.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/DocumentReference.java @@ -2,25 +2,35 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.legalentitymanagement.DocumentPage; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; -import java.util.*; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** DocumentReference */ +/** + * DocumentReference + */ @JsonPropertyOrder({ DocumentReference.JSON_PROPERTY_ACTIVE, DocumentReference.JSON_PROPERTY_DESCRIPTION, @@ -30,6 +40,7 @@ DocumentReference.JSON_PROPERTY_PAGES, DocumentReference.JSON_PROPERTY_TYPE }) + public class DocumentReference { public static final String JSON_PROPERTY_ACTIVE = "active"; private Boolean active; @@ -52,7 +63,8 @@ public class DocumentReference { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public DocumentReference() {} + public DocumentReference() { + } /** * Identifies whether the document is active and used for checks. @@ -67,7 +79,6 @@ public DocumentReference active(Boolean active) { /** * Identifies whether the document is active and used for checks. - * * @return active Identifies whether the document is active and used for checks. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @@ -100,7 +111,6 @@ public DocumentReference description(String description) { /** * Your description for the document. - * * @return description Your description for the document. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -133,7 +143,6 @@ public DocumentReference fileName(String fileName) { /** * Document name. - * * @return fileName Document name. */ @JsonProperty(JSON_PROPERTY_FILE_NAME) @@ -166,7 +175,6 @@ public DocumentReference id(String id) { /** * The unique identifier of the resource. - * * @return id The unique identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -199,7 +207,6 @@ public DocumentReference modificationDate(OffsetDateTime modificationDate) { /** * The modification date of the document. - * * @return modificationDate The modification date of the document. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_DATE) @@ -240,7 +247,6 @@ public DocumentReference addPagesItem(DocumentPage pagesItem) { /** * List of document pages - * * @return pages List of document pages */ @JsonProperty(JSON_PROPERTY_PAGES) @@ -273,7 +279,6 @@ public DocumentReference type(String type) { /** * Type of document, used when providing an ID number or uploading a document. - * * @return type Type of document, used when providing an ID number or uploading a document. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -293,7 +298,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this DocumentReference object is equal to o. */ + /** + * Return true if this DocumentReference object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -303,13 +310,13 @@ public boolean equals(Object o) { return false; } DocumentReference documentReference = (DocumentReference) o; - return Objects.equals(this.active, documentReference.active) - && Objects.equals(this.description, documentReference.description) - && Objects.equals(this.fileName, documentReference.fileName) - && Objects.equals(this.id, documentReference.id) - && Objects.equals(this.modificationDate, documentReference.modificationDate) - && Objects.equals(this.pages, documentReference.pages) - && Objects.equals(this.type, documentReference.type); + return Objects.equals(this.active, documentReference.active) && + Objects.equals(this.description, documentReference.description) && + Objects.equals(this.fileName, documentReference.fileName) && + Objects.equals(this.id, documentReference.id) && + Objects.equals(this.modificationDate, documentReference.modificationDate) && + Objects.equals(this.pages, documentReference.pages) && + Objects.equals(this.type, documentReference.type); } @Override @@ -333,7 +340,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -342,7 +350,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DocumentReference given an JSON string * * @param jsonString JSON string @@ -352,12 +360,11 @@ private String toIndentedString(Object o) { public static DocumentReference fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DocumentReference.class); } - - /** - * Convert an instance of DocumentReference to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DocumentReference to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/EntityReference.java b/src/main/java/com/adyen/model/legalentitymanagement/EntityReference.java index 4c35780d0..47a95f84c 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/EntityReference.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/EntityReference.java @@ -2,28 +2,41 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** EntityReference */ -@JsonPropertyOrder({EntityReference.JSON_PROPERTY_ID}) + +/** + * EntityReference + */ +@JsonPropertyOrder({ + EntityReference.JSON_PROPERTY_ID +}) + public class EntityReference { public static final String JSON_PROPERTY_ID = "id"; private String id; - public EntityReference() {} + public EntityReference() { + } /** * The unique identifier of the resource. @@ -38,7 +51,6 @@ public EntityReference id(String id) { /** * The unique identifier of the resource. - * * @return id The unique identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -58,7 +70,9 @@ public void setId(String id) { this.id = id; } - /** Return true if this EntityReference object is equal to o. */ + /** + * Return true if this EntityReference object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,7 +110,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of EntityReference given an JSON string * * @param jsonString JSON string @@ -105,12 +120,11 @@ private String toIndentedString(Object o) { public static EntityReference fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, EntityReference.class); } - - /** - * Convert an instance of EntityReference to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of EntityReference to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/FinancialReport.java b/src/main/java/com/adyen/model/legalentitymanagement/FinancialReport.java index c11ca5ed7..dd73f10b5 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/FinancialReport.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/FinancialReport.java @@ -2,22 +2,31 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** FinancialReport */ + +/** + * FinancialReport + */ @JsonPropertyOrder({ FinancialReport.JSON_PROPERTY_ANNUAL_TURNOVER, FinancialReport.JSON_PROPERTY_BALANCE_SHEET_TOTAL, @@ -26,6 +35,7 @@ FinancialReport.JSON_PROPERTY_EMPLOYEE_COUNT, FinancialReport.JSON_PROPERTY_NET_ASSETS }) + public class FinancialReport { public static final String JSON_PROPERTY_ANNUAL_TURNOVER = "annualTurnover"; private String annualTurnover; @@ -45,7 +55,8 @@ public class FinancialReport { public static final String JSON_PROPERTY_NET_ASSETS = "netAssets"; private String netAssets; - public FinancialReport() {} + public FinancialReport() { + } /** * The annual turnover of the business. @@ -60,7 +71,6 @@ public FinancialReport annualTurnover(String annualTurnover) { /** * The annual turnover of the business. - * * @return annualTurnover The annual turnover of the business. */ @JsonProperty(JSON_PROPERTY_ANNUAL_TURNOVER) @@ -93,7 +103,6 @@ public FinancialReport balanceSheetTotal(String balanceSheetTotal) { /** * The balance sheet total of the business. - * * @return balanceSheetTotal The balance sheet total of the business. */ @JsonProperty(JSON_PROPERTY_BALANCE_SHEET_TOTAL) @@ -116,8 +125,7 @@ public void setBalanceSheetTotal(String balanceSheetTotal) { /** * The currency used for the annual turnover, balance sheet total, and net assets. * - * @param currencyOfFinancialData The currency used for the annual turnover, balance sheet total, - * and net assets. + * @param currencyOfFinancialData The currency used for the annual turnover, balance sheet total, and net assets. * @return the current {@code FinancialReport} instance, allowing for method chaining */ public FinancialReport currencyOfFinancialData(String currencyOfFinancialData) { @@ -127,9 +135,7 @@ public FinancialReport currencyOfFinancialData(String currencyOfFinancialData) { /** * The currency used for the annual turnover, balance sheet total, and net assets. - * - * @return currencyOfFinancialData The currency used for the annual turnover, balance sheet total, - * and net assets. + * @return currencyOfFinancialData The currency used for the annual turnover, balance sheet total, and net assets. */ @JsonProperty(JSON_PROPERTY_CURRENCY_OF_FINANCIAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,8 +146,7 @@ public String getCurrencyOfFinancialData() { /** * The currency used for the annual turnover, balance sheet total, and net assets. * - * @param currencyOfFinancialData The currency used for the annual turnover, balance sheet total, - * and net assets. + * @param currencyOfFinancialData The currency used for the annual turnover, balance sheet total, and net assets. */ @JsonProperty(JSON_PROPERTY_CURRENCY_OF_FINANCIAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -162,7 +167,6 @@ public FinancialReport dateOfFinancialData(String dateOfFinancialData) { /** * The date the financial data were provided, in YYYY-MM-DD format. - * * @return dateOfFinancialData The date the financial data were provided, in YYYY-MM-DD format. */ @JsonProperty(JSON_PROPERTY_DATE_OF_FINANCIAL_DATA) @@ -195,7 +199,6 @@ public FinancialReport employeeCount(String employeeCount) { /** * The number of employees of the business. - * * @return employeeCount The number of employees of the business. */ @JsonProperty(JSON_PROPERTY_EMPLOYEE_COUNT) @@ -228,7 +231,6 @@ public FinancialReport netAssets(String netAssets) { /** * The net assets of the business. - * * @return netAssets The net assets of the business. */ @JsonProperty(JSON_PROPERTY_NET_ASSETS) @@ -248,7 +250,9 @@ public void setNetAssets(String netAssets) { this.netAssets = netAssets; } - /** Return true if this FinancialReport object is equal to o. */ + /** + * Return true if this FinancialReport object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -258,23 +262,17 @@ public boolean equals(Object o) { return false; } FinancialReport financialReport = (FinancialReport) o; - return Objects.equals(this.annualTurnover, financialReport.annualTurnover) - && Objects.equals(this.balanceSheetTotal, financialReport.balanceSheetTotal) - && Objects.equals(this.currencyOfFinancialData, financialReport.currencyOfFinancialData) - && Objects.equals(this.dateOfFinancialData, financialReport.dateOfFinancialData) - && Objects.equals(this.employeeCount, financialReport.employeeCount) - && Objects.equals(this.netAssets, financialReport.netAssets); + return Objects.equals(this.annualTurnover, financialReport.annualTurnover) && + Objects.equals(this.balanceSheetTotal, financialReport.balanceSheetTotal) && + Objects.equals(this.currencyOfFinancialData, financialReport.currencyOfFinancialData) && + Objects.equals(this.dateOfFinancialData, financialReport.dateOfFinancialData) && + Objects.equals(this.employeeCount, financialReport.employeeCount) && + Objects.equals(this.netAssets, financialReport.netAssets); } @Override public int hashCode() { - return Objects.hash( - annualTurnover, - balanceSheetTotal, - currencyOfFinancialData, - dateOfFinancialData, - employeeCount, - netAssets); + return Objects.hash(annualTurnover, balanceSheetTotal, currencyOfFinancialData, dateOfFinancialData, employeeCount, netAssets); } @Override @@ -283,12 +281,8 @@ public String toString() { sb.append("class FinancialReport {\n"); sb.append(" annualTurnover: ").append(toIndentedString(annualTurnover)).append("\n"); sb.append(" balanceSheetTotal: ").append(toIndentedString(balanceSheetTotal)).append("\n"); - sb.append(" currencyOfFinancialData: ") - .append(toIndentedString(currencyOfFinancialData)) - .append("\n"); - sb.append(" dateOfFinancialData: ") - .append(toIndentedString(dateOfFinancialData)) - .append("\n"); + sb.append(" currencyOfFinancialData: ").append(toIndentedString(currencyOfFinancialData)).append("\n"); + sb.append(" dateOfFinancialData: ").append(toIndentedString(dateOfFinancialData)).append("\n"); sb.append(" employeeCount: ").append(toIndentedString(employeeCount)).append("\n"); sb.append(" netAssets: ").append(toIndentedString(netAssets)).append("\n"); sb.append("}"); @@ -296,7 +290,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -305,7 +300,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of FinancialReport given an JSON string * * @param jsonString JSON string @@ -315,12 +310,11 @@ private String toIndentedString(Object o) { public static FinancialReport fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, FinancialReport.class); } - - /** - * Convert an instance of FinancialReport to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of FinancialReport to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/GeneratePciDescriptionRequest.java b/src/main/java/com/adyen/model/legalentitymanagement/GeneratePciDescriptionRequest.java index 48b8a536d..681b507e8 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/GeneratePciDescriptionRequest.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/GeneratePciDescriptionRequest.java @@ -2,35 +2,44 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** GeneratePciDescriptionRequest */ +/** + * GeneratePciDescriptionRequest + */ @JsonPropertyOrder({ GeneratePciDescriptionRequest.JSON_PROPERTY_ADDITIONAL_SALES_CHANNELS, GeneratePciDescriptionRequest.JSON_PROPERTY_LANGUAGE }) + public class GeneratePciDescriptionRequest { - /** Gets or Sets additionalSalesChannels */ + /** + * Gets or Sets additionalSalesChannels + */ public enum AdditionalSalesChannelsEnum { + ECOMMERCE(String.valueOf("eCommerce")), ECOMMOTO(String.valueOf("ecomMoto")), @@ -44,7 +53,7 @@ public enum AdditionalSalesChannelsEnum { private String value; AdditionalSalesChannelsEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -65,11 +74,7 @@ public static AdditionalSalesChannelsEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AdditionalSalesChannelsEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AdditionalSalesChannelsEnum.values())); + LOG.warning("AdditionalSalesChannelsEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AdditionalSalesChannelsEnum.values())); return null; } } @@ -80,31 +85,21 @@ public static AdditionalSalesChannelsEnum fromValue(String value) { public static final String JSON_PROPERTY_LANGUAGE = "language"; private String language; - public GeneratePciDescriptionRequest() {} + public GeneratePciDescriptionRequest() { + } /** - * An array of additional sales channels to generate PCI questionnaires. Include the relevant - * sales channels if you need your user to sign PCI questionnaires. Not required if you [create - * stores](https://docs.adyen.com/platforms) and [add payment - * methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the - * questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** + * An array of additional sales channels to generate PCI questionnaires. Include the relevant sales channels if you need your user to sign PCI questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** * - * @param additionalSalesChannels An array of additional sales channels to generate PCI - * questionnaires. Include the relevant sales channels if you need your user to sign PCI - * questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and - * [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate - * the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** - * @return the current {@code GeneratePciDescriptionRequest} instance, allowing for method - * chaining + * @param additionalSalesChannels An array of additional sales channels to generate PCI questionnaires. Include the relevant sales channels if you need your user to sign PCI questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** + * @return the current {@code GeneratePciDescriptionRequest} instance, allowing for method chaining */ - public GeneratePciDescriptionRequest additionalSalesChannels( - List additionalSalesChannels) { + public GeneratePciDescriptionRequest additionalSalesChannels(List additionalSalesChannels) { this.additionalSalesChannels = additionalSalesChannels; return this; } - public GeneratePciDescriptionRequest addAdditionalSalesChannelsItem( - AdditionalSalesChannelsEnum additionalSalesChannelsItem) { + public GeneratePciDescriptionRequest addAdditionalSalesChannelsItem(AdditionalSalesChannelsEnum additionalSalesChannelsItem) { if (this.additionalSalesChannels == null) { this.additionalSalesChannels = new ArrayList<>(); } @@ -113,17 +108,8 @@ public GeneratePciDescriptionRequest addAdditionalSalesChannelsItem( } /** - * An array of additional sales channels to generate PCI questionnaires. Include the relevant - * sales channels if you need your user to sign PCI questionnaires. Not required if you [create - * stores](https://docs.adyen.com/platforms) and [add payment - * methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the - * questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** - * - * @return additionalSalesChannels An array of additional sales channels to generate PCI - * questionnaires. Include the relevant sales channels if you need your user to sign PCI - * questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and - * [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate - * the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** + * An array of additional sales channels to generate PCI questionnaires. Include the relevant sales channels if you need your user to sign PCI questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** + * @return additionalSalesChannels An array of additional sales channels to generate PCI questionnaires. Include the relevant sales channels if you need your user to sign PCI questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_SALES_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,33 +118,21 @@ public List getAdditionalSalesChannels() { } /** - * An array of additional sales channels to generate PCI questionnaires. Include the relevant - * sales channels if you need your user to sign PCI questionnaires. Not required if you [create - * stores](https://docs.adyen.com/platforms) and [add payment - * methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the - * questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** + * An array of additional sales channels to generate PCI questionnaires. Include the relevant sales channels if you need your user to sign PCI questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** * - * @param additionalSalesChannels An array of additional sales channels to generate PCI - * questionnaires. Include the relevant sales channels if you need your user to sign PCI - * questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and - * [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate - * the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** + * @param additionalSalesChannels An array of additional sales channels to generate PCI questionnaires. Include the relevant sales channels if you need your user to sign PCI questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_SALES_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAdditionalSalesChannels( - List additionalSalesChannels) { + public void setAdditionalSalesChannels(List additionalSalesChannels) { this.additionalSalesChannels = additionalSalesChannels; } /** - * Sets the language of the PCI questionnaire. Its value is a two-character [ISO - * 639-1](https://en.wikipedia.org/wiki/ISO_639-1) language code, for example, **en**. + * Sets the language of the PCI questionnaire. Its value is a two-character [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) language code, for example, **en**. * - * @param language Sets the language of the PCI questionnaire. Its value is a two-character [ISO - * 639-1](https://en.wikipedia.org/wiki/ISO_639-1) language code, for example, **en**. - * @return the current {@code GeneratePciDescriptionRequest} instance, allowing for method - * chaining + * @param language Sets the language of the PCI questionnaire. Its value is a two-character [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) language code, for example, **en**. + * @return the current {@code GeneratePciDescriptionRequest} instance, allowing for method chaining */ public GeneratePciDescriptionRequest language(String language) { this.language = language; @@ -166,11 +140,8 @@ public GeneratePciDescriptionRequest language(String language) { } /** - * Sets the language of the PCI questionnaire. Its value is a two-character [ISO - * 639-1](https://en.wikipedia.org/wiki/ISO_639-1) language code, for example, **en**. - * - * @return language Sets the language of the PCI questionnaire. Its value is a two-character [ISO - * 639-1](https://en.wikipedia.org/wiki/ISO_639-1) language code, for example, **en**. + * Sets the language of the PCI questionnaire. Its value is a two-character [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) language code, for example, **en**. + * @return language Sets the language of the PCI questionnaire. Its value is a two-character [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) language code, for example, **en**. */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,11 +150,9 @@ public String getLanguage() { } /** - * Sets the language of the PCI questionnaire. Its value is a two-character [ISO - * 639-1](https://en.wikipedia.org/wiki/ISO_639-1) language code, for example, **en**. + * Sets the language of the PCI questionnaire. Its value is a two-character [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) language code, for example, **en**. * - * @param language Sets the language of the PCI questionnaire. Its value is a two-character [ISO - * 639-1](https://en.wikipedia.org/wiki/ISO_639-1) language code, for example, **en**. + * @param language Sets the language of the PCI questionnaire. Its value is a two-character [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) language code, for example, **en**. */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,7 +160,9 @@ public void setLanguage(String language) { this.language = language; } - /** Return true if this GeneratePciDescriptionRequest object is equal to o. */ + /** + * Return true if this GeneratePciDescriptionRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -201,9 +172,8 @@ public boolean equals(Object o) { return false; } GeneratePciDescriptionRequest generatePciDescriptionRequest = (GeneratePciDescriptionRequest) o; - return Objects.equals( - this.additionalSalesChannels, generatePciDescriptionRequest.additionalSalesChannels) - && Objects.equals(this.language, generatePciDescriptionRequest.language); + return Objects.equals(this.additionalSalesChannels, generatePciDescriptionRequest.additionalSalesChannels) && + Objects.equals(this.language, generatePciDescriptionRequest.language); } @Override @@ -215,16 +185,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GeneratePciDescriptionRequest {\n"); - sb.append(" additionalSalesChannels: ") - .append(toIndentedString(additionalSalesChannels)) - .append("\n"); + sb.append(" additionalSalesChannels: ").append(toIndentedString(additionalSalesChannels)).append("\n"); sb.append(" language: ").append(toIndentedString(language)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -233,24 +202,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of GeneratePciDescriptionRequest given an JSON string * * @param jsonString JSON string * @return An instance of GeneratePciDescriptionRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * GeneratePciDescriptionRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to GeneratePciDescriptionRequest */ - public static GeneratePciDescriptionRequest fromJson(String jsonString) - throws JsonProcessingException { + public static GeneratePciDescriptionRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GeneratePciDescriptionRequest.class); } - - /** - * Convert an instance of GeneratePciDescriptionRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of GeneratePciDescriptionRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/GeneratePciDescriptionResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/GeneratePciDescriptionResponse.java index 55e0136e8..d39bf84d4 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/GeneratePciDescriptionResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/GeneratePciDescriptionResponse.java @@ -2,30 +2,39 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** GeneratePciDescriptionResponse */ +/** + * GeneratePciDescriptionResponse + */ @JsonPropertyOrder({ GeneratePciDescriptionResponse.JSON_PROPERTY_CONTENT, GeneratePciDescriptionResponse.JSON_PROPERTY_LANGUAGE, GeneratePciDescriptionResponse.JSON_PROPERTY_PCI_TEMPLATE_REFERENCES }) + public class GeneratePciDescriptionResponse { public static final String JSON_PROPERTY_CONTENT = "content"; private byte[] content; @@ -36,14 +45,14 @@ public class GeneratePciDescriptionResponse { public static final String JSON_PROPERTY_PCI_TEMPLATE_REFERENCES = "pciTemplateReferences"; private List pciTemplateReferences; - public GeneratePciDescriptionResponse() {} + public GeneratePciDescriptionResponse() { + } /** * The generated questionnaires in a base64 encoded format. * * @param content The generated questionnaires in a base64 encoded format. - * @return the current {@code GeneratePciDescriptionResponse} instance, allowing for method - * chaining + * @return the current {@code GeneratePciDescriptionResponse} instance, allowing for method chaining */ public GeneratePciDescriptionResponse content(byte[] content) { this.content = content; @@ -52,7 +61,6 @@ public GeneratePciDescriptionResponse content(byte[] content) { /** * The generated questionnaires in a base64 encoded format. - * * @return content The generated questionnaires in a base64 encoded format. */ @JsonProperty(JSON_PROPERTY_CONTENT) @@ -73,14 +81,10 @@ public void setContent(byte[] content) { } /** - * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code - * for the questionnaire. For example, **en**. + * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code for the questionnaire. For example, **en**. * - * @param language The two-letter - * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code for the - * questionnaire. For example, **en**. - * @return the current {@code GeneratePciDescriptionResponse} instance, allowing for method - * chaining + * @param language The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code for the questionnaire. For example, **en**. + * @return the current {@code GeneratePciDescriptionResponse} instance, allowing for method chaining */ public GeneratePciDescriptionResponse language(String language) { this.language = language; @@ -88,12 +92,8 @@ public GeneratePciDescriptionResponse language(String language) { } /** - * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code - * for the questionnaire. For example, **en**. - * - * @return language The two-letter - * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code for the - * questionnaire. For example, **en**. + * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code for the questionnaire. For example, **en**. + * @return language The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code for the questionnaire. For example, **en**. */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,12 +102,9 @@ public String getLanguage() { } /** - * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code - * for the questionnaire. For example, **en**. + * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code for the questionnaire. For example, **en**. * - * @param language The two-letter - * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code for the - * questionnaire. For example, **en**. + * @param language The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code for the questionnaire. For example, **en**. */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,21 +113,17 @@ public void setLanguage(String language) { } /** - * The array of Adyen-generated unique identifiers for the questionnaires. If empty, the user is - * not required to sign questionnaires. + * The array of Adyen-generated unique identifiers for the questionnaires. If empty, the user is not required to sign questionnaires. * - * @param pciTemplateReferences The array of Adyen-generated unique identifiers for the - * questionnaires. If empty, the user is not required to sign questionnaires. - * @return the current {@code GeneratePciDescriptionResponse} instance, allowing for method - * chaining + * @param pciTemplateReferences The array of Adyen-generated unique identifiers for the questionnaires. If empty, the user is not required to sign questionnaires. + * @return the current {@code GeneratePciDescriptionResponse} instance, allowing for method chaining */ public GeneratePciDescriptionResponse pciTemplateReferences(List pciTemplateReferences) { this.pciTemplateReferences = pciTemplateReferences; return this; } - public GeneratePciDescriptionResponse addPciTemplateReferencesItem( - String pciTemplateReferencesItem) { + public GeneratePciDescriptionResponse addPciTemplateReferencesItem(String pciTemplateReferencesItem) { if (this.pciTemplateReferences == null) { this.pciTemplateReferences = new ArrayList<>(); } @@ -139,11 +132,8 @@ public GeneratePciDescriptionResponse addPciTemplateReferencesItem( } /** - * The array of Adyen-generated unique identifiers for the questionnaires. If empty, the user is - * not required to sign questionnaires. - * - * @return pciTemplateReferences The array of Adyen-generated unique identifiers for the - * questionnaires. If empty, the user is not required to sign questionnaires. + * The array of Adyen-generated unique identifiers for the questionnaires. If empty, the user is not required to sign questionnaires. + * @return pciTemplateReferences The array of Adyen-generated unique identifiers for the questionnaires. If empty, the user is not required to sign questionnaires. */ @JsonProperty(JSON_PROPERTY_PCI_TEMPLATE_REFERENCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,11 +142,9 @@ public List getPciTemplateReferences() { } /** - * The array of Adyen-generated unique identifiers for the questionnaires. If empty, the user is - * not required to sign questionnaires. + * The array of Adyen-generated unique identifiers for the questionnaires. If empty, the user is not required to sign questionnaires. * - * @param pciTemplateReferences The array of Adyen-generated unique identifiers for the - * questionnaires. If empty, the user is not required to sign questionnaires. + * @param pciTemplateReferences The array of Adyen-generated unique identifiers for the questionnaires. If empty, the user is not required to sign questionnaires. */ @JsonProperty(JSON_PROPERTY_PCI_TEMPLATE_REFERENCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -164,7 +152,9 @@ public void setPciTemplateReferences(List pciTemplateReferences) { this.pciTemplateReferences = pciTemplateReferences; } - /** Return true if this GeneratePciDescriptionResponse object is equal to o. */ + /** + * Return true if this GeneratePciDescriptionResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -173,12 +163,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - GeneratePciDescriptionResponse generatePciDescriptionResponse = - (GeneratePciDescriptionResponse) o; - return Arrays.equals(this.content, generatePciDescriptionResponse.content) - && Objects.equals(this.language, generatePciDescriptionResponse.language) - && Objects.equals( - this.pciTemplateReferences, generatePciDescriptionResponse.pciTemplateReferences); + GeneratePciDescriptionResponse generatePciDescriptionResponse = (GeneratePciDescriptionResponse) o; + return Arrays.equals(this.content, generatePciDescriptionResponse.content) && + Objects.equals(this.language, generatePciDescriptionResponse.language) && + Objects.equals(this.pciTemplateReferences, generatePciDescriptionResponse.pciTemplateReferences); } @Override @@ -192,15 +180,14 @@ public String toString() { sb.append("class GeneratePciDescriptionResponse {\n"); sb.append(" content: ").append(toIndentedString(content)).append("\n"); sb.append(" language: ").append(toIndentedString(language)).append("\n"); - sb.append(" pciTemplateReferences: ") - .append(toIndentedString(pciTemplateReferences)) - .append("\n"); + sb.append(" pciTemplateReferences: ").append(toIndentedString(pciTemplateReferences)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -209,24 +196,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of GeneratePciDescriptionResponse given an JSON string * * @param jsonString JSON string * @return An instance of GeneratePciDescriptionResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * GeneratePciDescriptionResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to GeneratePciDescriptionResponse */ - public static GeneratePciDescriptionResponse fromJson(String jsonString) - throws JsonProcessingException { + public static GeneratePciDescriptionResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GeneratePciDescriptionResponse.class); } - - /** - * Convert an instance of GeneratePciDescriptionResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of GeneratePciDescriptionResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/GetAcceptedTermsOfServiceDocumentResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/GetAcceptedTermsOfServiceDocumentResponse.java index 1aff8b866..1229dc6cc 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/GetAcceptedTermsOfServiceDocumentResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/GetAcceptedTermsOfServiceDocumentResponse.java @@ -2,32 +2,38 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** GetAcceptedTermsOfServiceDocumentResponse */ + +/** + * GetAcceptedTermsOfServiceDocumentResponse + */ @JsonPropertyOrder({ GetAcceptedTermsOfServiceDocumentResponse.JSON_PROPERTY_DOCUMENT, GetAcceptedTermsOfServiceDocumentResponse.JSON_PROPERTY_ID, GetAcceptedTermsOfServiceDocumentResponse.JSON_PROPERTY_TERMS_OF_SERVICE_ACCEPTANCE_REFERENCE, GetAcceptedTermsOfServiceDocumentResponse.JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT }) + public class GetAcceptedTermsOfServiceDocumentResponse { public static final String JSON_PROPERTY_DOCUMENT = "document"; private byte[] document; @@ -35,25 +41,26 @@ public class GetAcceptedTermsOfServiceDocumentResponse { public static final String JSON_PROPERTY_ID = "id"; private String id; - public static final String JSON_PROPERTY_TERMS_OF_SERVICE_ACCEPTANCE_REFERENCE = - "termsOfServiceAcceptanceReference"; + public static final String JSON_PROPERTY_TERMS_OF_SERVICE_ACCEPTANCE_REFERENCE = "termsOfServiceAcceptanceReference"; private String termsOfServiceAcceptanceReference; - /** The format of the Terms of Service document. */ + /** + * The format of the Terms of Service document. + */ public enum TermsOfServiceDocumentFormatEnum { + JSON(String.valueOf("JSON")), PDF(String.valueOf("PDF")), TXT(String.valueOf("TXT")); - private static final Logger LOG = - Logger.getLogger(TermsOfServiceDocumentFormatEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(TermsOfServiceDocumentFormatEnum.class.getName()); private String value; TermsOfServiceDocumentFormatEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -74,29 +81,22 @@ public static TermsOfServiceDocumentFormatEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TermsOfServiceDocumentFormatEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TermsOfServiceDocumentFormatEnum.values())); + LOG.warning("TermsOfServiceDocumentFormatEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TermsOfServiceDocumentFormatEnum.values())); return null; } } - public static final String JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT = - "termsOfServiceDocumentFormat"; + public static final String JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT = "termsOfServiceDocumentFormat"; private TermsOfServiceDocumentFormatEnum termsOfServiceDocumentFormat; - public GetAcceptedTermsOfServiceDocumentResponse() {} + public GetAcceptedTermsOfServiceDocumentResponse() { + } /** - * The accepted Terms of Service document in the requested format represented as a Base64-encoded - * bytes array. + * The accepted Terms of Service document in the requested format represented as a Base64-encoded bytes array. * - * @param document The accepted Terms of Service document in the requested format represented as a - * Base64-encoded bytes array. - * @return the current {@code GetAcceptedTermsOfServiceDocumentResponse} instance, allowing for - * method chaining + * @param document The accepted Terms of Service document in the requested format represented as a Base64-encoded bytes array. + * @return the current {@code GetAcceptedTermsOfServiceDocumentResponse} instance, allowing for method chaining */ public GetAcceptedTermsOfServiceDocumentResponse document(byte[] document) { this.document = document; @@ -104,11 +104,8 @@ public GetAcceptedTermsOfServiceDocumentResponse document(byte[] document) { } /** - * The accepted Terms of Service document in the requested format represented as a Base64-encoded - * bytes array. - * - * @return document The accepted Terms of Service document in the requested format represented as - * a Base64-encoded bytes array. + * The accepted Terms of Service document in the requested format represented as a Base64-encoded bytes array. + * @return document The accepted Terms of Service document in the requested format represented as a Base64-encoded bytes array. */ @JsonProperty(JSON_PROPERTY_DOCUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,11 +114,9 @@ public byte[] getDocument() { } /** - * The accepted Terms of Service document in the requested format represented as a Base64-encoded - * bytes array. + * The accepted Terms of Service document in the requested format represented as a Base64-encoded bytes array. * - * @param document The accepted Terms of Service document in the requested format represented as a - * Base64-encoded bytes array. + * @param document The accepted Terms of Service document in the requested format represented as a Base64-encoded bytes array. */ @JsonProperty(JSON_PROPERTY_DOCUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -133,8 +128,7 @@ public void setDocument(byte[] document) { * The unique identifier of the legal entity. * * @param id The unique identifier of the legal entity. - * @return the current {@code GetAcceptedTermsOfServiceDocumentResponse} instance, allowing for - * method chaining + * @return the current {@code GetAcceptedTermsOfServiceDocumentResponse} instance, allowing for method chaining */ public GetAcceptedTermsOfServiceDocumentResponse id(String id) { this.id = id; @@ -143,7 +137,6 @@ public GetAcceptedTermsOfServiceDocumentResponse id(String id) { /** * The unique identifier of the legal entity. - * * @return id The unique identifier of the legal entity. */ @JsonProperty(JSON_PROPERTY_ID) @@ -166,22 +159,17 @@ public void setId(String id) { /** * An Adyen-generated reference for the accepted Terms of Service. * - * @param termsOfServiceAcceptanceReference An Adyen-generated reference for the accepted Terms of - * Service. - * @return the current {@code GetAcceptedTermsOfServiceDocumentResponse} instance, allowing for - * method chaining + * @param termsOfServiceAcceptanceReference An Adyen-generated reference for the accepted Terms of Service. + * @return the current {@code GetAcceptedTermsOfServiceDocumentResponse} instance, allowing for method chaining */ - public GetAcceptedTermsOfServiceDocumentResponse termsOfServiceAcceptanceReference( - String termsOfServiceAcceptanceReference) { + public GetAcceptedTermsOfServiceDocumentResponse termsOfServiceAcceptanceReference(String termsOfServiceAcceptanceReference) { this.termsOfServiceAcceptanceReference = termsOfServiceAcceptanceReference; return this; } /** * An Adyen-generated reference for the accepted Terms of Service. - * - * @return termsOfServiceAcceptanceReference An Adyen-generated reference for the accepted Terms - * of Service. + * @return termsOfServiceAcceptanceReference An Adyen-generated reference for the accepted Terms of Service. */ @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_ACCEPTANCE_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,8 +180,7 @@ public String getTermsOfServiceAcceptanceReference() { /** * An Adyen-generated reference for the accepted Terms of Service. * - * @param termsOfServiceAcceptanceReference An Adyen-generated reference for the accepted Terms of - * Service. + * @param termsOfServiceAcceptanceReference An Adyen-generated reference for the accepted Terms of Service. */ @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_ACCEPTANCE_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -205,18 +192,15 @@ public void setTermsOfServiceAcceptanceReference(String termsOfServiceAcceptance * The format of the Terms of Service document. * * @param termsOfServiceDocumentFormat The format of the Terms of Service document. - * @return the current {@code GetAcceptedTermsOfServiceDocumentResponse} instance, allowing for - * method chaining + * @return the current {@code GetAcceptedTermsOfServiceDocumentResponse} instance, allowing for method chaining */ - public GetAcceptedTermsOfServiceDocumentResponse termsOfServiceDocumentFormat( - TermsOfServiceDocumentFormatEnum termsOfServiceDocumentFormat) { + public GetAcceptedTermsOfServiceDocumentResponse termsOfServiceDocumentFormat(TermsOfServiceDocumentFormatEnum termsOfServiceDocumentFormat) { this.termsOfServiceDocumentFormat = termsOfServiceDocumentFormat; return this; } /** * The format of the Terms of Service document. - * * @return termsOfServiceDocumentFormat The format of the Terms of Service document. */ @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT) @@ -232,12 +216,13 @@ public TermsOfServiceDocumentFormatEnum getTermsOfServiceDocumentFormat() { */ @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTermsOfServiceDocumentFormat( - TermsOfServiceDocumentFormatEnum termsOfServiceDocumentFormat) { + public void setTermsOfServiceDocumentFormat(TermsOfServiceDocumentFormatEnum termsOfServiceDocumentFormat) { this.termsOfServiceDocumentFormat = termsOfServiceDocumentFormat; } - /** Return true if this GetAcceptedTermsOfServiceDocumentResponse object is equal to o. */ + /** + * Return true if this GetAcceptedTermsOfServiceDocumentResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -246,25 +231,16 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - GetAcceptedTermsOfServiceDocumentResponse getAcceptedTermsOfServiceDocumentResponse = - (GetAcceptedTermsOfServiceDocumentResponse) o; - return Arrays.equals(this.document, getAcceptedTermsOfServiceDocumentResponse.document) - && Objects.equals(this.id, getAcceptedTermsOfServiceDocumentResponse.id) - && Objects.equals( - this.termsOfServiceAcceptanceReference, - getAcceptedTermsOfServiceDocumentResponse.termsOfServiceAcceptanceReference) - && Objects.equals( - this.termsOfServiceDocumentFormat, - getAcceptedTermsOfServiceDocumentResponse.termsOfServiceDocumentFormat); + GetAcceptedTermsOfServiceDocumentResponse getAcceptedTermsOfServiceDocumentResponse = (GetAcceptedTermsOfServiceDocumentResponse) o; + return Arrays.equals(this.document, getAcceptedTermsOfServiceDocumentResponse.document) && + Objects.equals(this.id, getAcceptedTermsOfServiceDocumentResponse.id) && + Objects.equals(this.termsOfServiceAcceptanceReference, getAcceptedTermsOfServiceDocumentResponse.termsOfServiceAcceptanceReference) && + Objects.equals(this.termsOfServiceDocumentFormat, getAcceptedTermsOfServiceDocumentResponse.termsOfServiceDocumentFormat); } @Override public int hashCode() { - return Objects.hash( - Arrays.hashCode(document), - id, - termsOfServiceAcceptanceReference, - termsOfServiceDocumentFormat); + return Objects.hash(Arrays.hashCode(document), id, termsOfServiceAcceptanceReference, termsOfServiceDocumentFormat); } @Override @@ -273,18 +249,15 @@ public String toString() { sb.append("class GetAcceptedTermsOfServiceDocumentResponse {\n"); sb.append(" document: ").append(toIndentedString(document)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" termsOfServiceAcceptanceReference: ") - .append(toIndentedString(termsOfServiceAcceptanceReference)) - .append("\n"); - sb.append(" termsOfServiceDocumentFormat: ") - .append(toIndentedString(termsOfServiceDocumentFormat)) - .append("\n"); + sb.append(" termsOfServiceAcceptanceReference: ").append(toIndentedString(termsOfServiceAcceptanceReference)).append("\n"); + sb.append(" termsOfServiceDocumentFormat: ").append(toIndentedString(termsOfServiceDocumentFormat)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -293,24 +266,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of GetAcceptedTermsOfServiceDocumentResponse given an JSON string * * @param jsonString JSON string * @return An instance of GetAcceptedTermsOfServiceDocumentResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * GetAcceptedTermsOfServiceDocumentResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to GetAcceptedTermsOfServiceDocumentResponse */ - public static GetAcceptedTermsOfServiceDocumentResponse fromJson(String jsonString) - throws JsonProcessingException { + public static GetAcceptedTermsOfServiceDocumentResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GetAcceptedTermsOfServiceDocumentResponse.class); } - - /** - * Convert an instance of GetAcceptedTermsOfServiceDocumentResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of GetAcceptedTermsOfServiceDocumentResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/GetPciQuestionnaireInfosResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/GetPciQuestionnaireInfosResponse.java index efb843f3f..19052f605 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/GetPciQuestionnaireInfosResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/GetPciQuestionnaireInfosResponse.java @@ -2,37 +2,50 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.legalentitymanagement.PciDocumentInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * GetPciQuestionnaireInfosResponse + */ +@JsonPropertyOrder({ + GetPciQuestionnaireInfosResponse.JSON_PROPERTY_DATA +}) -/** GetPciQuestionnaireInfosResponse */ -@JsonPropertyOrder({GetPciQuestionnaireInfosResponse.JSON_PROPERTY_DATA}) public class GetPciQuestionnaireInfosResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; - public GetPciQuestionnaireInfosResponse() {} + public GetPciQuestionnaireInfosResponse() { + } /** * Information about the signed PCI questionnaires. * * @param data Information about the signed PCI questionnaires. - * @return the current {@code GetPciQuestionnaireInfosResponse} instance, allowing for method - * chaining + * @return the current {@code GetPciQuestionnaireInfosResponse} instance, allowing for method chaining */ public GetPciQuestionnaireInfosResponse data(List data) { this.data = data; @@ -49,7 +62,6 @@ public GetPciQuestionnaireInfosResponse addDataItem(PciDocumentInfo dataItem) { /** * Information about the signed PCI questionnaires. - * * @return data Information about the signed PCI questionnaires. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -69,7 +81,9 @@ public void setData(List data) { this.data = data; } - /** Return true if this GetPciQuestionnaireInfosResponse object is equal to o. */ + /** + * Return true if this GetPciQuestionnaireInfosResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -78,8 +92,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - GetPciQuestionnaireInfosResponse getPciQuestionnaireInfosResponse = - (GetPciQuestionnaireInfosResponse) o; + GetPciQuestionnaireInfosResponse getPciQuestionnaireInfosResponse = (GetPciQuestionnaireInfosResponse) o; return Objects.equals(this.data, getPciQuestionnaireInfosResponse.data); } @@ -98,7 +111,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -107,24 +121,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of GetPciQuestionnaireInfosResponse given an JSON string * * @param jsonString JSON string * @return An instance of GetPciQuestionnaireInfosResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * GetPciQuestionnaireInfosResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to GetPciQuestionnaireInfosResponse */ - public static GetPciQuestionnaireInfosResponse fromJson(String jsonString) - throws JsonProcessingException { + public static GetPciQuestionnaireInfosResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GetPciQuestionnaireInfosResponse.class); } - - /** - * Convert an instance of GetPciQuestionnaireInfosResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of GetPciQuestionnaireInfosResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/GetPciQuestionnaireResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/GetPciQuestionnaireResponse.java index 61f9275fe..23071af47 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/GetPciQuestionnaireResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/GetPciQuestionnaireResponse.java @@ -2,30 +2,39 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** GetPciQuestionnaireResponse */ +/** + * GetPciQuestionnaireResponse + */ @JsonPropertyOrder({ GetPciQuestionnaireResponse.JSON_PROPERTY_CONTENT, GetPciQuestionnaireResponse.JSON_PROPERTY_CREATED_AT, GetPciQuestionnaireResponse.JSON_PROPERTY_ID, GetPciQuestionnaireResponse.JSON_PROPERTY_VALID_UNTIL }) + public class GetPciQuestionnaireResponse { public static final String JSON_PROPERTY_CONTENT = "content"; private byte[] content; @@ -39,7 +48,8 @@ public class GetPciQuestionnaireResponse { public static final String JSON_PROPERTY_VALID_UNTIL = "validUntil"; private OffsetDateTime validUntil; - public GetPciQuestionnaireResponse() {} + public GetPciQuestionnaireResponse() { + } /** * The generated questionnaire in a base64 encoded format. @@ -54,7 +64,6 @@ public GetPciQuestionnaireResponse content(byte[] content) { /** * The generated questionnaire in a base64 encoded format. - * * @return content The generated questionnaire in a base64 encoded format. */ @JsonProperty(JSON_PROPERTY_CONTENT) @@ -75,11 +84,9 @@ public void setContent(byte[] content) { } /** - * The date the questionnaire was created, in ISO 8601 extended format. For example, - * 2022-12-18T10:15:30+01:00 + * The date the questionnaire was created, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 * - * @param createdAt The date the questionnaire was created, in ISO 8601 extended format. For - * example, 2022-12-18T10:15:30+01:00 + * @param createdAt The date the questionnaire was created, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 * @return the current {@code GetPciQuestionnaireResponse} instance, allowing for method chaining */ public GetPciQuestionnaireResponse createdAt(OffsetDateTime createdAt) { @@ -88,11 +95,8 @@ public GetPciQuestionnaireResponse createdAt(OffsetDateTime createdAt) { } /** - * The date the questionnaire was created, in ISO 8601 extended format. For example, - * 2022-12-18T10:15:30+01:00 - * - * @return createdAt The date the questionnaire was created, in ISO 8601 extended format. For - * example, 2022-12-18T10:15:30+01:00 + * The date the questionnaire was created, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 + * @return createdAt The date the questionnaire was created, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,11 +105,9 @@ public OffsetDateTime getCreatedAt() { } /** - * The date the questionnaire was created, in ISO 8601 extended format. For example, - * 2022-12-18T10:15:30+01:00 + * The date the questionnaire was created, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 * - * @param createdAt The date the questionnaire was created, in ISO 8601 extended format. For - * example, 2022-12-18T10:15:30+01:00 + * @param createdAt The date the questionnaire was created, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,7 +128,6 @@ public GetPciQuestionnaireResponse id(String id) { /** * The unique identifier of the signed questionnaire. - * * @return id The unique identifier of the signed questionnaire. */ @JsonProperty(JSON_PROPERTY_ID) @@ -147,11 +148,9 @@ public void setId(String id) { } /** - * The expiration date of the questionnaire, in ISO 8601 extended format. For example, - * 2022-12-18T10:15:30+01:00 + * The expiration date of the questionnaire, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 * - * @param validUntil The expiration date of the questionnaire, in ISO 8601 extended format. For - * example, 2022-12-18T10:15:30+01:00 + * @param validUntil The expiration date of the questionnaire, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 * @return the current {@code GetPciQuestionnaireResponse} instance, allowing for method chaining */ public GetPciQuestionnaireResponse validUntil(OffsetDateTime validUntil) { @@ -160,11 +159,8 @@ public GetPciQuestionnaireResponse validUntil(OffsetDateTime validUntil) { } /** - * The expiration date of the questionnaire, in ISO 8601 extended format. For example, - * 2022-12-18T10:15:30+01:00 - * - * @return validUntil The expiration date of the questionnaire, in ISO 8601 extended format. For - * example, 2022-12-18T10:15:30+01:00 + * The expiration date of the questionnaire, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 + * @return validUntil The expiration date of the questionnaire, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 */ @JsonProperty(JSON_PROPERTY_VALID_UNTIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,11 +169,9 @@ public OffsetDateTime getValidUntil() { } /** - * The expiration date of the questionnaire, in ISO 8601 extended format. For example, - * 2022-12-18T10:15:30+01:00 + * The expiration date of the questionnaire, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 * - * @param validUntil The expiration date of the questionnaire, in ISO 8601 extended format. For - * example, 2022-12-18T10:15:30+01:00 + * @param validUntil The expiration date of the questionnaire, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 */ @JsonProperty(JSON_PROPERTY_VALID_UNTIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,7 +179,9 @@ public void setValidUntil(OffsetDateTime validUntil) { this.validUntil = validUntil; } - /** Return true if this GetPciQuestionnaireResponse object is equal to o. */ + /** + * Return true if this GetPciQuestionnaireResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -195,10 +191,10 @@ public boolean equals(Object o) { return false; } GetPciQuestionnaireResponse getPciQuestionnaireResponse = (GetPciQuestionnaireResponse) o; - return Arrays.equals(this.content, getPciQuestionnaireResponse.content) - && Objects.equals(this.createdAt, getPciQuestionnaireResponse.createdAt) - && Objects.equals(this.id, getPciQuestionnaireResponse.id) - && Objects.equals(this.validUntil, getPciQuestionnaireResponse.validUntil); + return Arrays.equals(this.content, getPciQuestionnaireResponse.content) && + Objects.equals(this.createdAt, getPciQuestionnaireResponse.createdAt) && + Objects.equals(this.id, getPciQuestionnaireResponse.id) && + Objects.equals(this.validUntil, getPciQuestionnaireResponse.validUntil); } @Override @@ -219,7 +215,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -228,24 +225,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of GetPciQuestionnaireResponse given an JSON string * * @param jsonString JSON string * @return An instance of GetPciQuestionnaireResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * GetPciQuestionnaireResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to GetPciQuestionnaireResponse */ - public static GetPciQuestionnaireResponse fromJson(String jsonString) - throws JsonProcessingException { + public static GetPciQuestionnaireResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GetPciQuestionnaireResponse.class); } - - /** - * Convert an instance of GetPciQuestionnaireResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of GetPciQuestionnaireResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceAcceptanceInfosResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceAcceptanceInfosResponse.java index 20029f20a..5755d6bba 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceAcceptanceInfosResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceAcceptanceInfosResponse.java @@ -2,45 +2,57 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.legalentitymanagement.TermsOfServiceAcceptanceInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * GetTermsOfServiceAcceptanceInfosResponse + */ +@JsonPropertyOrder({ + GetTermsOfServiceAcceptanceInfosResponse.JSON_PROPERTY_DATA +}) -/** GetTermsOfServiceAcceptanceInfosResponse */ -@JsonPropertyOrder({GetTermsOfServiceAcceptanceInfosResponse.JSON_PROPERTY_DATA}) public class GetTermsOfServiceAcceptanceInfosResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; - public GetTermsOfServiceAcceptanceInfosResponse() {} + public GetTermsOfServiceAcceptanceInfosResponse() { + } /** * The Terms of Service acceptance information. * * @param data The Terms of Service acceptance information. - * @return the current {@code GetTermsOfServiceAcceptanceInfosResponse} instance, allowing for - * method chaining + * @return the current {@code GetTermsOfServiceAcceptanceInfosResponse} instance, allowing for method chaining */ public GetTermsOfServiceAcceptanceInfosResponse data(List data) { this.data = data; return this; } - public GetTermsOfServiceAcceptanceInfosResponse addDataItem( - TermsOfServiceAcceptanceInfo dataItem) { + public GetTermsOfServiceAcceptanceInfosResponse addDataItem(TermsOfServiceAcceptanceInfo dataItem) { if (this.data == null) { this.data = new ArrayList<>(); } @@ -50,7 +62,6 @@ public GetTermsOfServiceAcceptanceInfosResponse addDataItem( /** * The Terms of Service acceptance information. - * * @return data The Terms of Service acceptance information. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -70,7 +81,9 @@ public void setData(List data) { this.data = data; } - /** Return true if this GetTermsOfServiceAcceptanceInfosResponse object is equal to o. */ + /** + * Return true if this GetTermsOfServiceAcceptanceInfosResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -79,8 +92,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - GetTermsOfServiceAcceptanceInfosResponse getTermsOfServiceAcceptanceInfosResponse = - (GetTermsOfServiceAcceptanceInfosResponse) o; + GetTermsOfServiceAcceptanceInfosResponse getTermsOfServiceAcceptanceInfosResponse = (GetTermsOfServiceAcceptanceInfosResponse) o; return Objects.equals(this.data, getTermsOfServiceAcceptanceInfosResponse.data); } @@ -99,7 +111,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -108,24 +121,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of GetTermsOfServiceAcceptanceInfosResponse given an JSON string * * @param jsonString JSON string * @return An instance of GetTermsOfServiceAcceptanceInfosResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * GetTermsOfServiceAcceptanceInfosResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to GetTermsOfServiceAcceptanceInfosResponse */ - public static GetTermsOfServiceAcceptanceInfosResponse fromJson(String jsonString) - throws JsonProcessingException { + public static GetTermsOfServiceAcceptanceInfosResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GetTermsOfServiceAcceptanceInfosResponse.class); } - - /** - * Convert an instance of GetTermsOfServiceAcceptanceInfosResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of GetTermsOfServiceAcceptanceInfosResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceDocumentRequest.java b/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceDocumentRequest.java index b09c37bbd..51a1a71fa 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceDocumentRequest.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceDocumentRequest.java @@ -2,45 +2,49 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** GetTermsOfServiceDocumentRequest */ +/** + * GetTermsOfServiceDocumentRequest + */ @JsonPropertyOrder({ GetTermsOfServiceDocumentRequest.JSON_PROPERTY_LANGUAGE, GetTermsOfServiceDocumentRequest.JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT, GetTermsOfServiceDocumentRequest.JSON_PROPERTY_TYPE }) + public class GetTermsOfServiceDocumentRequest { public static final String JSON_PROPERTY_LANGUAGE = "language"; private String language; - public static final String JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT = - "termsOfServiceDocumentFormat"; + public static final String JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT = "termsOfServiceDocumentFormat"; private String termsOfServiceDocumentFormat; /** - * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** - * * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * - * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** */ public enum TypeEnum { + ADYENACCOUNT(String.valueOf("adyenAccount")), ADYENCAPITAL(String.valueOf("adyenCapital")), @@ -66,7 +70,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -87,11 +91,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -99,18 +99,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public GetTermsOfServiceDocumentRequest() {} + public GetTermsOfServiceDocumentRequest() { + } /** - * The language to be used for the Terms of Service document, specified by the two-letter [ISO - * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: - * **en** for English. + * The language to be used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English. * - * @param language The language to be used for the Terms of Service document, specified by the - * two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language - * code. Possible value: **en** for English. - * @return the current {@code GetTermsOfServiceDocumentRequest} instance, allowing for method - * chaining + * @param language The language to be used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English. + * @return the current {@code GetTermsOfServiceDocumentRequest} instance, allowing for method chaining */ public GetTermsOfServiceDocumentRequest language(String language) { this.language = language; @@ -118,13 +114,8 @@ public GetTermsOfServiceDocumentRequest language(String language) { } /** - * The language to be used for the Terms of Service document, specified by the two-letter [ISO - * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: - * **en** for English. - * - * @return language The language to be used for the Terms of Service document, specified by the - * two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language - * code. Possible value: **en** for English. + * The language to be used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English. + * @return language The language to be used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English. */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -133,13 +124,9 @@ public String getLanguage() { } /** - * The language to be used for the Terms of Service document, specified by the two-letter [ISO - * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: - * **en** for English. + * The language to be used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English. * - * @param language The language to be used for the Terms of Service document, specified by the - * two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language - * code. Possible value: **en** for English. + * @param language The language to be used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English. */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,26 +135,19 @@ public void setLanguage(String language) { } /** - * The requested format for the Terms of Service document. Default value: JSON. Possible values: - * **JSON**, **PDF**, or **TXT**. + * The requested format for the Terms of Service document. Default value: JSON. Possible values: **JSON**, **PDF**, or **TXT**. * - * @param termsOfServiceDocumentFormat The requested format for the Terms of Service document. - * Default value: JSON. Possible values: **JSON**, **PDF**, or **TXT**. - * @return the current {@code GetTermsOfServiceDocumentRequest} instance, allowing for method - * chaining + * @param termsOfServiceDocumentFormat The requested format for the Terms of Service document. Default value: JSON. Possible values: **JSON**, **PDF**, or **TXT**. + * @return the current {@code GetTermsOfServiceDocumentRequest} instance, allowing for method chaining */ - public GetTermsOfServiceDocumentRequest termsOfServiceDocumentFormat( - String termsOfServiceDocumentFormat) { + public GetTermsOfServiceDocumentRequest termsOfServiceDocumentFormat(String termsOfServiceDocumentFormat) { this.termsOfServiceDocumentFormat = termsOfServiceDocumentFormat; return this; } /** - * The requested format for the Terms of Service document. Default value: JSON. Possible values: - * **JSON**, **PDF**, or **TXT**. - * - * @return termsOfServiceDocumentFormat The requested format for the Terms of Service document. - * Default value: JSON. Possible values: **JSON**, **PDF**, or **TXT**. + * The requested format for the Terms of Service document. Default value: JSON. Possible values: **JSON**, **PDF**, or **TXT**. + * @return termsOfServiceDocumentFormat The requested format for the Terms of Service document. Default value: JSON. Possible values: **JSON**, **PDF**, or **TXT**. */ @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,11 +156,9 @@ public String getTermsOfServiceDocumentFormat() { } /** - * The requested format for the Terms of Service document. Default value: JSON. Possible values: - * **JSON**, **PDF**, or **TXT**. + * The requested format for the Terms of Service document. Default value: JSON. Possible values: **JSON**, **PDF**, or **TXT**. * - * @param termsOfServiceDocumentFormat The requested format for the Terms of Service document. - * Default value: JSON. Possible values: **JSON**, **PDF**, or **TXT**. + * @param termsOfServiceDocumentFormat The requested format for the Terms of Service document. Default value: JSON. Possible values: **JSON**, **PDF**, or **TXT**. */ @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,15 +167,10 @@ public void setTermsOfServiceDocumentFormat(String termsOfServiceDocumentFormat) } /** - * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** - * * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * - * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** * - * @param type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * - * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * - * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** - * @return the current {@code GetTermsOfServiceDocumentRequest} instance, allowing for method - * chaining + * @param type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * @return the current {@code GetTermsOfServiceDocumentRequest} instance, allowing for method chaining */ public GetTermsOfServiceDocumentRequest type(TypeEnum type) { this.type = type; @@ -205,13 +178,8 @@ public GetTermsOfServiceDocumentRequest type(TypeEnum type) { } /** - * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** - * * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * - * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** - * - * @return type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * - * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * - * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * @return type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -220,13 +188,9 @@ public TypeEnum getType() { } /** - * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** - * * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * - * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** * - * @param type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * - * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * - * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * @param type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -234,7 +198,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this GetTermsOfServiceDocumentRequest object is equal to o. */ + /** + * Return true if this GetTermsOfServiceDocumentRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -243,13 +209,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - GetTermsOfServiceDocumentRequest getTermsOfServiceDocumentRequest = - (GetTermsOfServiceDocumentRequest) o; - return Objects.equals(this.language, getTermsOfServiceDocumentRequest.language) - && Objects.equals( - this.termsOfServiceDocumentFormat, - getTermsOfServiceDocumentRequest.termsOfServiceDocumentFormat) - && Objects.equals(this.type, getTermsOfServiceDocumentRequest.type); + GetTermsOfServiceDocumentRequest getTermsOfServiceDocumentRequest = (GetTermsOfServiceDocumentRequest) o; + return Objects.equals(this.language, getTermsOfServiceDocumentRequest.language) && + Objects.equals(this.termsOfServiceDocumentFormat, getTermsOfServiceDocumentRequest.termsOfServiceDocumentFormat) && + Objects.equals(this.type, getTermsOfServiceDocumentRequest.type); } @Override @@ -262,16 +225,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetTermsOfServiceDocumentRequest {\n"); sb.append(" language: ").append(toIndentedString(language)).append("\n"); - sb.append(" termsOfServiceDocumentFormat: ") - .append(toIndentedString(termsOfServiceDocumentFormat)) - .append("\n"); + sb.append(" termsOfServiceDocumentFormat: ").append(toIndentedString(termsOfServiceDocumentFormat)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -280,24 +242,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of GetTermsOfServiceDocumentRequest given an JSON string * * @param jsonString JSON string * @return An instance of GetTermsOfServiceDocumentRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * GetTermsOfServiceDocumentRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to GetTermsOfServiceDocumentRequest */ - public static GetTermsOfServiceDocumentRequest fromJson(String jsonString) - throws JsonProcessingException { + public static GetTermsOfServiceDocumentRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GetTermsOfServiceDocumentRequest.class); } - - /** - * Convert an instance of GetTermsOfServiceDocumentRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of GetTermsOfServiceDocumentRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceDocumentResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceDocumentResponse.java index e9f335ec4..fe76042b8 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceDocumentResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceDocumentResponse.java @@ -2,26 +2,31 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** GetTermsOfServiceDocumentResponse */ + +/** + * GetTermsOfServiceDocumentResponse + */ @JsonPropertyOrder({ GetTermsOfServiceDocumentResponse.JSON_PROPERTY_DOCUMENT, GetTermsOfServiceDocumentResponse.JSON_PROPERTY_ID, @@ -30,6 +35,7 @@ GetTermsOfServiceDocumentResponse.JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_ID, GetTermsOfServiceDocumentResponse.JSON_PROPERTY_TYPE }) + public class GetTermsOfServiceDocumentResponse { public static final String JSON_PROPERTY_DOCUMENT = "document"; private byte[] document; @@ -40,20 +46,17 @@ public class GetTermsOfServiceDocumentResponse { public static final String JSON_PROPERTY_LANGUAGE = "language"; private String language; - public static final String JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT = - "termsOfServiceDocumentFormat"; + public static final String JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT = "termsOfServiceDocumentFormat"; private String termsOfServiceDocumentFormat; - public static final String JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_ID = - "termsOfServiceDocumentId"; + public static final String JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_ID = "termsOfServiceDocumentId"; private String termsOfServiceDocumentId; /** - * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** - * * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * - * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** */ public enum TypeEnum { + ADYENACCOUNT(String.valueOf("adyenAccount")), ADYENCAPITAL(String.valueOf("adyenCapital")), @@ -79,7 +82,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -100,11 +103,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -112,14 +111,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public GetTermsOfServiceDocumentResponse() {} + public GetTermsOfServiceDocumentResponse() { + } /** * The Terms of Service document in Base64-encoded format. * * @param document The Terms of Service document in Base64-encoded format. - * @return the current {@code GetTermsOfServiceDocumentResponse} instance, allowing for method - * chaining + * @return the current {@code GetTermsOfServiceDocumentResponse} instance, allowing for method chaining */ public GetTermsOfServiceDocumentResponse document(byte[] document) { this.document = document; @@ -128,7 +127,6 @@ public GetTermsOfServiceDocumentResponse document(byte[] document) { /** * The Terms of Service document in Base64-encoded format. - * * @return document The Terms of Service document in Base64-encoded format. */ @JsonProperty(JSON_PROPERTY_DOCUMENT) @@ -152,8 +150,7 @@ public void setDocument(byte[] document) { * The unique identifier of the legal entity. * * @param id The unique identifier of the legal entity. - * @return the current {@code GetTermsOfServiceDocumentResponse} instance, allowing for method - * chaining + * @return the current {@code GetTermsOfServiceDocumentResponse} instance, allowing for method chaining */ public GetTermsOfServiceDocumentResponse id(String id) { this.id = id; @@ -162,7 +159,6 @@ public GetTermsOfServiceDocumentResponse id(String id) { /** * The unique identifier of the legal entity. - * * @return id The unique identifier of the legal entity. */ @JsonProperty(JSON_PROPERTY_ID) @@ -183,19 +179,10 @@ public void setId(String id) { } /** - * The language used for the Terms of Service document, specified by the two-letter [ISO - * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: - * **en** for English or **fr** for French. Note that French is only available for some - * integration types in certain countries/regions. Reach out to your Adyen contact for more - * information. + * The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English or **fr** for French. Note that French is only available for some integration types in certain countries/regions. Reach out to your Adyen contact for more information. * - * @param language The language used for the Terms of Service document, specified by the - * two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language - * code. Possible value: **en** for English or **fr** for French. Note that French is only - * available for some integration types in certain countries/regions. Reach out to your Adyen - * contact for more information. - * @return the current {@code GetTermsOfServiceDocumentResponse} instance, allowing for method - * chaining + * @param language The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English or **fr** for French. Note that French is only available for some integration types in certain countries/regions. Reach out to your Adyen contact for more information. + * @return the current {@code GetTermsOfServiceDocumentResponse} instance, allowing for method chaining */ public GetTermsOfServiceDocumentResponse language(String language) { this.language = language; @@ -203,17 +190,8 @@ public GetTermsOfServiceDocumentResponse language(String language) { } /** - * The language used for the Terms of Service document, specified by the two-letter [ISO - * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: - * **en** for English or **fr** for French. Note that French is only available for some - * integration types in certain countries/regions. Reach out to your Adyen contact for more - * information. - * - * @return language The language used for the Terms of Service document, specified by the - * two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language - * code. Possible value: **en** for English or **fr** for French. Note that French is only - * available for some integration types in certain countries/regions. Reach out to your Adyen - * contact for more information. + * The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English or **fr** for French. Note that French is only available for some integration types in certain countries/regions. Reach out to your Adyen contact for more information. + * @return language The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English or **fr** for French. Note that French is only available for some integration types in certain countries/regions. Reach out to your Adyen contact for more information. */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -222,17 +200,9 @@ public String getLanguage() { } /** - * The language used for the Terms of Service document, specified by the two-letter [ISO - * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: - * **en** for English or **fr** for French. Note that French is only available for some - * integration types in certain countries/regions. Reach out to your Adyen contact for more - * information. + * The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English or **fr** for French. Note that French is only available for some integration types in certain countries/regions. Reach out to your Adyen contact for more information. * - * @param language The language used for the Terms of Service document, specified by the - * two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language - * code. Possible value: **en** for English or **fr** for French. Note that French is only - * available for some integration types in certain countries/regions. Reach out to your Adyen - * contact for more information. + * @param language The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English or **fr** for French. Note that French is only available for some integration types in certain countries/regions. Reach out to your Adyen contact for more information. */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,18 +214,15 @@ public void setLanguage(String language) { * The format of the Terms of Service document. * * @param termsOfServiceDocumentFormat The format of the Terms of Service document. - * @return the current {@code GetTermsOfServiceDocumentResponse} instance, allowing for method - * chaining + * @return the current {@code GetTermsOfServiceDocumentResponse} instance, allowing for method chaining */ - public GetTermsOfServiceDocumentResponse termsOfServiceDocumentFormat( - String termsOfServiceDocumentFormat) { + public GetTermsOfServiceDocumentResponse termsOfServiceDocumentFormat(String termsOfServiceDocumentFormat) { this.termsOfServiceDocumentFormat = termsOfServiceDocumentFormat; return this; } /** * The format of the Terms of Service document. - * * @return termsOfServiceDocumentFormat The format of the Terms of Service document. */ @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT) @@ -279,18 +246,15 @@ public void setTermsOfServiceDocumentFormat(String termsOfServiceDocumentFormat) * The unique identifier of the Terms of Service document. * * @param termsOfServiceDocumentId The unique identifier of the Terms of Service document. - * @return the current {@code GetTermsOfServiceDocumentResponse} instance, allowing for method - * chaining + * @return the current {@code GetTermsOfServiceDocumentResponse} instance, allowing for method chaining */ - public GetTermsOfServiceDocumentResponse termsOfServiceDocumentId( - String termsOfServiceDocumentId) { + public GetTermsOfServiceDocumentResponse termsOfServiceDocumentId(String termsOfServiceDocumentId) { this.termsOfServiceDocumentId = termsOfServiceDocumentId; return this; } /** * The unique identifier of the Terms of Service document. - * * @return termsOfServiceDocumentId The unique identifier of the Terms of Service document. */ @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_ID) @@ -311,15 +275,10 @@ public void setTermsOfServiceDocumentId(String termsOfServiceDocumentId) { } /** - * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** - * * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * - * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** * - * @param type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * - * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * - * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** - * @return the current {@code GetTermsOfServiceDocumentResponse} instance, allowing for method - * chaining + * @param type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * @return the current {@code GetTermsOfServiceDocumentResponse} instance, allowing for method chaining */ public GetTermsOfServiceDocumentResponse type(TypeEnum type) { this.type = type; @@ -327,13 +286,8 @@ public GetTermsOfServiceDocumentResponse type(TypeEnum type) { } /** - * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** - * * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * - * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** - * - * @return type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * - * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * - * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * @return type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -342,13 +296,9 @@ public TypeEnum getType() { } /** - * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** - * * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * - * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** * - * @param type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * - * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * - * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * @param type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -356,7 +306,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this GetTermsOfServiceDocumentResponse object is equal to o. */ + /** + * Return true if this GetTermsOfServiceDocumentResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -365,29 +317,18 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - GetTermsOfServiceDocumentResponse getTermsOfServiceDocumentResponse = - (GetTermsOfServiceDocumentResponse) o; - return Arrays.equals(this.document, getTermsOfServiceDocumentResponse.document) - && Objects.equals(this.id, getTermsOfServiceDocumentResponse.id) - && Objects.equals(this.language, getTermsOfServiceDocumentResponse.language) - && Objects.equals( - this.termsOfServiceDocumentFormat, - getTermsOfServiceDocumentResponse.termsOfServiceDocumentFormat) - && Objects.equals( - this.termsOfServiceDocumentId, - getTermsOfServiceDocumentResponse.termsOfServiceDocumentId) - && Objects.equals(this.type, getTermsOfServiceDocumentResponse.type); + GetTermsOfServiceDocumentResponse getTermsOfServiceDocumentResponse = (GetTermsOfServiceDocumentResponse) o; + return Arrays.equals(this.document, getTermsOfServiceDocumentResponse.document) && + Objects.equals(this.id, getTermsOfServiceDocumentResponse.id) && + Objects.equals(this.language, getTermsOfServiceDocumentResponse.language) && + Objects.equals(this.termsOfServiceDocumentFormat, getTermsOfServiceDocumentResponse.termsOfServiceDocumentFormat) && + Objects.equals(this.termsOfServiceDocumentId, getTermsOfServiceDocumentResponse.termsOfServiceDocumentId) && + Objects.equals(this.type, getTermsOfServiceDocumentResponse.type); } @Override public int hashCode() { - return Objects.hash( - Arrays.hashCode(document), - id, - language, - termsOfServiceDocumentFormat, - termsOfServiceDocumentId, - type); + return Objects.hash(Arrays.hashCode(document), id, language, termsOfServiceDocumentFormat, termsOfServiceDocumentId, type); } @Override @@ -397,19 +338,16 @@ public String toString() { sb.append(" document: ").append(toIndentedString(document)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" language: ").append(toIndentedString(language)).append("\n"); - sb.append(" termsOfServiceDocumentFormat: ") - .append(toIndentedString(termsOfServiceDocumentFormat)) - .append("\n"); - sb.append(" termsOfServiceDocumentId: ") - .append(toIndentedString(termsOfServiceDocumentId)) - .append("\n"); + sb.append(" termsOfServiceDocumentFormat: ").append(toIndentedString(termsOfServiceDocumentFormat)).append("\n"); + sb.append(" termsOfServiceDocumentId: ").append(toIndentedString(termsOfServiceDocumentId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -418,24 +356,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of GetTermsOfServiceDocumentResponse given an JSON string * * @param jsonString JSON string * @return An instance of GetTermsOfServiceDocumentResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * GetTermsOfServiceDocumentResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to GetTermsOfServiceDocumentResponse */ - public static GetTermsOfServiceDocumentResponse fromJson(String jsonString) - throws JsonProcessingException { + public static GetTermsOfServiceDocumentResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GetTermsOfServiceDocumentResponse.class); } - - /** - * Convert an instance of GetTermsOfServiceDocumentResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of GetTermsOfServiceDocumentResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/HKLocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/HKLocalAccountIdentification.java index 9cf49d19a..4180ac3c6 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/HKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/HKLocalAccountIdentification.java @@ -2,31 +2,37 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** HKLocalAccountIdentification */ + +/** + * HKLocalAccountIdentification + */ @JsonPropertyOrder({ HKLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, HKLocalAccountIdentification.JSON_PROPERTY_CLEARING_CODE, HKLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class HKLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -34,8 +40,11 @@ public class HKLocalAccountIdentification { public static final String JSON_PROPERTY_CLEARING_CODE = "clearingCode"; private String clearingCode; - /** **hkLocal** */ + /** + * **hkLocal** + */ public enum TypeEnum { + HKLOCAL(String.valueOf("hkLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -43,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -76,14 +81,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public HKLocalAccountIdentification() {} + public HKLocalAccountIdentification() { + } /** - * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. - * Starts with the 3-digit branch code. + * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. * - * @param accountNumber The 9- to 15-character bank account number (alphanumeric), without - * separators or whitespace. Starts with the 3-digit branch code. + * @param accountNumber The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. * @return the current {@code HKLocalAccountIdentification} instance, allowing for method chaining */ public HKLocalAccountIdentification accountNumber(String accountNumber) { @@ -92,11 +96,8 @@ public HKLocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. - * Starts with the 3-digit branch code. - * - * @return accountNumber The 9- to 15-character bank account number (alphanumeric), without - * separators or whitespace. Starts with the 3-digit branch code. + * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. + * @return accountNumber The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,11 +106,9 @@ public String getAccountNumber() { } /** - * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. - * Starts with the 3-digit branch code. + * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. * - * @param accountNumber The 9- to 15-character bank account number (alphanumeric), without - * separators or whitespace. Starts with the 3-digit branch code. + * @param accountNumber The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -130,7 +129,6 @@ public HKLocalAccountIdentification clearingCode(String clearingCode) { /** * The 3-digit clearing code, without separators or whitespace. - * * @return clearingCode The 3-digit clearing code, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_CLEARING_CODE) @@ -163,7 +161,6 @@ public HKLocalAccountIdentification type(TypeEnum type) { /** * **hkLocal** - * * @return type **hkLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -183,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this HKLocalAccountIdentification object is equal to o. */ + /** + * Return true if this HKLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -193,9 +192,9 @@ public boolean equals(Object o) { return false; } HKLocalAccountIdentification hkLocalAccountIdentification = (HKLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, hkLocalAccountIdentification.accountNumber) - && Objects.equals(this.clearingCode, hkLocalAccountIdentification.clearingCode) - && Objects.equals(this.type, hkLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, hkLocalAccountIdentification.accountNumber) && + Objects.equals(this.clearingCode, hkLocalAccountIdentification.clearingCode) && + Objects.equals(this.type, hkLocalAccountIdentification.type); } @Override @@ -215,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,24 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of HKLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of HKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * HKLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to HKLocalAccountIdentification */ - public static HKLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static HKLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, HKLocalAccountIdentification.class); } - - /** - * Convert an instance of HKLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of HKLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/HULocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/HULocalAccountIdentification.java index 6ec6a1e75..43478d7fa 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/HULocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/HULocalAccountIdentification.java @@ -2,36 +2,45 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** HULocalAccountIdentification */ + +/** + * HULocalAccountIdentification + */ @JsonPropertyOrder({ HULocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, HULocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class HULocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - /** **huLocal** */ + /** + * **huLocal** + */ public enum TypeEnum { + HULOCAL(String.valueOf("huLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -39,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -72,7 +77,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public HULocalAccountIdentification() {} + public HULocalAccountIdentification() { + } /** * The 24-digit bank account number, without separators or whitespace. @@ -87,7 +93,6 @@ public HULocalAccountIdentification accountNumber(String accountNumber) { /** * The 24-digit bank account number, without separators or whitespace. - * * @return accountNumber The 24-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -120,7 +125,6 @@ public HULocalAccountIdentification type(TypeEnum type) { /** * **huLocal** - * * @return type **huLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -140,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this HULocalAccountIdentification object is equal to o. */ + /** + * Return true if this HULocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -150,8 +156,8 @@ public boolean equals(Object o) { return false; } HULocalAccountIdentification huLocalAccountIdentification = (HULocalAccountIdentification) o; - return Objects.equals(this.accountNumber, huLocalAccountIdentification.accountNumber) - && Objects.equals(this.type, huLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, huLocalAccountIdentification.accountNumber) && + Objects.equals(this.type, huLocalAccountIdentification.type); } @Override @@ -170,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -179,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of HULocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of HULocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * HULocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to HULocalAccountIdentification */ - public static HULocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static HULocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, HULocalAccountIdentification.class); } - - /** - * Convert an instance of HULocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of HULocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/IbanAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/IbanAccountIdentification.java index d87703bf2..712455282 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/IbanAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/IbanAccountIdentification.java @@ -2,36 +2,45 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** IbanAccountIdentification */ + +/** + * IbanAccountIdentification + */ @JsonPropertyOrder({ IbanAccountIdentification.JSON_PROPERTY_IBAN, IbanAccountIdentification.JSON_PROPERTY_TYPE }) + public class IbanAccountIdentification { public static final String JSON_PROPERTY_IBAN = "iban"; private String iban; - /** **iban** */ + /** + * **iban** + */ public enum TypeEnum { + IBAN(String.valueOf("iban")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -39,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -72,14 +77,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public IbanAccountIdentification() {} + public IbanAccountIdentification() { + } /** - * The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. * - * @param iban The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @param iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. * @return the current {@code IbanAccountIdentification} instance, allowing for method chaining */ public IbanAccountIdentification iban(String iban) { @@ -88,11 +92,8 @@ public IbanAccountIdentification iban(String iban) { } /** - * The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. - * - * @return iban The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @return iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,11 +102,9 @@ public String getIban() { } /** - * The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. * - * @param iban The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @param iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,7 +125,6 @@ public IbanAccountIdentification type(TypeEnum type) { /** * **iban** - * * @return type **iban** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -146,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this IbanAccountIdentification object is equal to o. */ + /** + * Return true if this IbanAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +156,8 @@ public boolean equals(Object o) { return false; } IbanAccountIdentification ibanAccountIdentification = (IbanAccountIdentification) o; - return Objects.equals(this.iban, ibanAccountIdentification.iban) - && Objects.equals(this.type, ibanAccountIdentification.type); + return Objects.equals(this.iban, ibanAccountIdentification.iban) && + Objects.equals(this.type, ibanAccountIdentification.type); } @Override @@ -176,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -185,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of IbanAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of IbanAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * IbanAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to IbanAccountIdentification */ - public static IbanAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static IbanAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, IbanAccountIdentification.class); } - - /** - * Convert an instance of IbanAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of IbanAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/IdentificationData.java b/src/main/java/com/adyen/model/legalentitymanagement/IdentificationData.java index 03ef78daf..8b253e9db 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/IdentificationData.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/IdentificationData.java @@ -2,26 +2,31 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** IdentificationData */ +/** + * IdentificationData + */ @JsonPropertyOrder({ IdentificationData.JSON_PROPERTY_CARD_NUMBER, IdentificationData.JSON_PROPERTY_EXPIRY_DATE, @@ -31,6 +36,7 @@ IdentificationData.JSON_PROPERTY_NUMBER, IdentificationData.JSON_PROPERTY_TYPE }) + public class IdentificationData { public static final String JSON_PROPERTY_CARD_NUMBER = "cardNumber"; private String cardNumber; @@ -52,14 +58,10 @@ public class IdentificationData { private String number; /** - * Type of identity data. For individuals, the following types are supported. See our [onboarding - * guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) - * for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: - * **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, - * **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other - * supported countries: **nationalIdNumber** + * Type of identity data. For individuals, the following types are supported. See our [onboarding guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber** */ public enum TypeEnum { + NATIONALIDNUMBER(String.valueOf("nationalIdNumber")), PASSPORT(String.valueOf("passport")), @@ -73,7 +75,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -94,11 +96,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -106,7 +104,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public IdentificationData() {} + public IdentificationData() { + } /** * The card number of the document that was issued (AU only). @@ -121,7 +120,6 @@ public IdentificationData cardNumber(String cardNumber) { /** * The card number of the document that was issued (AU only). - * * @return cardNumber The card number of the document that was issued (AU only). */ @JsonProperty(JSON_PROPERTY_CARD_NUMBER) @@ -154,7 +152,6 @@ public IdentificationData expiryDate(String expiryDate) { /** * The expiry date of the document, in YYYY-MM-DD format. - * * @return expiryDate The expiry date of the document, in YYYY-MM-DD format. */ @JsonProperty(JSON_PROPERTY_EXPIRY_DATE) @@ -175,13 +172,11 @@ public void setExpiryDate(String expiryDate) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code where the document was issued. For example, **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**. * - * @param issuerCountry The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document - * was issued. For example, **US**. + * @param issuerCountry The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**. * @return the current {@code IdentificationData} instance, allowing for method chaining + * * @deprecated since Legal Entity Management API v1 */ @Deprecated // deprecated since Legal Entity Management API v1 @@ -191,12 +186,8 @@ public IdentificationData issuerCountry(String issuerCountry) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code where the document was issued. For example, **US**. - * - * @return issuerCountry The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document - * was issued. For example, **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**. + * @return issuerCountry The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**. * @deprecated // deprecated since Legal Entity Management API v1 */ @Deprecated // deprecated since Legal Entity Management API v1 @@ -207,12 +198,10 @@ public String getIssuerCountry() { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code where the document was issued. For example, **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**. + * + * @param issuerCountry The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**. * - * @param issuerCountry The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document - * was issued. For example, **US**. * @deprecated since Legal Entity Management API v1 */ @Deprecated // deprecated since Legal Entity Management API v1 @@ -235,7 +224,6 @@ public IdentificationData issuerState(String issuerState) { /** * The state or province where the document was issued (AU only). - * * @return issuerState The state or province where the document was issued (AU only). */ @JsonProperty(JSON_PROPERTY_ISSUER_STATE) @@ -256,12 +244,9 @@ public void setIssuerState(String issuerState) { } /** - * Applies only to individuals in the US. Set to **true** if the individual does not have an SSN. - * To verify their identity, Adyen will require them to upload an ID document. + * Applies only to individuals in the US. Set to **true** if the individual does not have an SSN. To verify their identity, Adyen will require them to upload an ID document. * - * @param nationalIdExempt Applies only to individuals in the US. Set to **true** if the - * individual does not have an SSN. To verify their identity, Adyen will require them to - * upload an ID document. + * @param nationalIdExempt Applies only to individuals in the US. Set to **true** if the individual does not have an SSN. To verify their identity, Adyen will require them to upload an ID document. * @return the current {@code IdentificationData} instance, allowing for method chaining */ public IdentificationData nationalIdExempt(Boolean nationalIdExempt) { @@ -270,12 +255,8 @@ public IdentificationData nationalIdExempt(Boolean nationalIdExempt) { } /** - * Applies only to individuals in the US. Set to **true** if the individual does not have an SSN. - * To verify their identity, Adyen will require them to upload an ID document. - * - * @return nationalIdExempt Applies only to individuals in the US. Set to **true** if the - * individual does not have an SSN. To verify their identity, Adyen will require them to - * upload an ID document. + * Applies only to individuals in the US. Set to **true** if the individual does not have an SSN. To verify their identity, Adyen will require them to upload an ID document. + * @return nationalIdExempt Applies only to individuals in the US. Set to **true** if the individual does not have an SSN. To verify their identity, Adyen will require them to upload an ID document. */ @JsonProperty(JSON_PROPERTY_NATIONAL_ID_EXEMPT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,12 +265,9 @@ public Boolean getNationalIdExempt() { } /** - * Applies only to individuals in the US. Set to **true** if the individual does not have an SSN. - * To verify their identity, Adyen will require them to upload an ID document. + * Applies only to individuals in the US. Set to **true** if the individual does not have an SSN. To verify their identity, Adyen will require them to upload an ID document. * - * @param nationalIdExempt Applies only to individuals in the US. Set to **true** if the - * individual does not have an SSN. To verify their identity, Adyen will require them to - * upload an ID document. + * @param nationalIdExempt Applies only to individuals in the US. Set to **true** if the individual does not have an SSN. To verify their identity, Adyen will require them to upload an ID document. */ @JsonProperty(JSON_PROPERTY_NATIONAL_ID_EXEMPT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -310,7 +288,6 @@ public IdentificationData number(String number) { /** * The number in the document. - * * @return number The number in the document. */ @JsonProperty(JSON_PROPERTY_NUMBER) @@ -331,20 +308,9 @@ public void setNumber(String number) { } /** - * Type of identity data. For individuals, the following types are supported. See our [onboarding - * guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) - * for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: - * **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, - * **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other - * supported countries: **nationalIdNumber** + * Type of identity data. For individuals, the following types are supported. See our [onboarding guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber** * - * @param type Type of identity data. For individuals, the following types are supported. See our - * [onboarding - * guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) - * for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: - * **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, - * **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All - * other supported countries: **nationalIdNumber** + * @param type Type of identity data. For individuals, the following types are supported. See our [onboarding guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber** * @return the current {@code IdentificationData} instance, allowing for method chaining */ public IdentificationData type(TypeEnum type) { @@ -353,20 +319,8 @@ public IdentificationData type(TypeEnum type) { } /** - * Type of identity data. For individuals, the following types are supported. See our [onboarding - * guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) - * for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: - * **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, - * **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other - * supported countries: **nationalIdNumber** - * - * @return type Type of identity data. For individuals, the following types are supported. See our - * [onboarding - * guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) - * for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: - * **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, - * **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All - * other supported countries: **nationalIdNumber** + * Type of identity data. For individuals, the following types are supported. See our [onboarding guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber** + * @return type Type of identity data. For individuals, the following types are supported. See our [onboarding guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -375,20 +329,9 @@ public TypeEnum getType() { } /** - * Type of identity data. For individuals, the following types are supported. See our [onboarding - * guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) - * for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: - * **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, - * **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other - * supported countries: **nationalIdNumber** + * Type of identity data. For individuals, the following types are supported. See our [onboarding guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber** * - * @param type Type of identity data. For individuals, the following types are supported. See our - * [onboarding - * guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) - * for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: - * **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, - * **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All - * other supported countries: **nationalIdNumber** + * @param type Type of identity data. For individuals, the following types are supported. See our [onboarding guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -396,7 +339,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this IdentificationData object is equal to o. */ + /** + * Return true if this IdentificationData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -406,19 +351,18 @@ public boolean equals(Object o) { return false; } IdentificationData identificationData = (IdentificationData) o; - return Objects.equals(this.cardNumber, identificationData.cardNumber) - && Objects.equals(this.expiryDate, identificationData.expiryDate) - && Objects.equals(this.issuerCountry, identificationData.issuerCountry) - && Objects.equals(this.issuerState, identificationData.issuerState) - && Objects.equals(this.nationalIdExempt, identificationData.nationalIdExempt) - && Objects.equals(this.number, identificationData.number) - && Objects.equals(this.type, identificationData.type); + return Objects.equals(this.cardNumber, identificationData.cardNumber) && + Objects.equals(this.expiryDate, identificationData.expiryDate) && + Objects.equals(this.issuerCountry, identificationData.issuerCountry) && + Objects.equals(this.issuerState, identificationData.issuerState) && + Objects.equals(this.nationalIdExempt, identificationData.nationalIdExempt) && + Objects.equals(this.number, identificationData.number) && + Objects.equals(this.type, identificationData.type); } @Override public int hashCode() { - return Objects.hash( - cardNumber, expiryDate, issuerCountry, issuerState, nationalIdExempt, number, type); + return Objects.hash(cardNumber, expiryDate, issuerCountry, issuerState, nationalIdExempt, number, type); } @Override @@ -437,7 +381,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -446,23 +391,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of IdentificationData given an JSON string * * @param jsonString JSON string * @return An instance of IdentificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * IdentificationData + * @throws JsonProcessingException if the JSON string is invalid with respect to IdentificationData */ public static IdentificationData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, IdentificationData.class); } - - /** - * Convert an instance of IdentificationData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of IdentificationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/Individual.java b/src/main/java/com/adyen/model/legalentitymanagement/Individual.java index c87d41a5a..85a768225 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/Individual.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/Individual.java @@ -2,24 +2,40 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.legalentitymanagement.Address; +import com.adyen.model.legalentitymanagement.BirthData; +import com.adyen.model.legalentitymanagement.IdentificationData; +import com.adyen.model.legalentitymanagement.Name; +import com.adyen.model.legalentitymanagement.PhoneNumber; +import com.adyen.model.legalentitymanagement.TaxInformation; +import com.adyen.model.legalentitymanagement.WebData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** Individual */ +/** + * Individual + */ @JsonPropertyOrder({ Individual.JSON_PROPERTY_BIRTH_DATA, Individual.JSON_PROPERTY_EMAIL, @@ -31,6 +47,7 @@ Individual.JSON_PROPERTY_TAX_INFORMATION, Individual.JSON_PROPERTY_WEB_DATA }) + public class Individual { public static final String JSON_PROPERTY_BIRTH_DATA = "birthData"; private BirthData birthData; @@ -59,12 +76,13 @@ public class Individual { public static final String JSON_PROPERTY_WEB_DATA = "webData"; private WebData webData; - public Individual() {} + public Individual() { + } /** * birthData * - * @param birthData + * @param birthData * @return the current {@code Individual} instance, allowing for method chaining */ public Individual birthData(BirthData birthData) { @@ -74,8 +92,7 @@ public Individual birthData(BirthData birthData) { /** * Get birthData - * - * @return birthData + * @return birthData */ @JsonProperty(JSON_PROPERTY_BIRTH_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -86,7 +103,7 @@ public BirthData getBirthData() { /** * birthData * - * @param birthData + * @param birthData */ @JsonProperty(JSON_PROPERTY_BIRTH_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,7 +124,6 @@ public Individual email(String email) { /** * The email address of the legal entity. - * * @return email The email address of the legal entity. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -130,7 +146,7 @@ public void setEmail(String email) { /** * identificationData * - * @param identificationData + * @param identificationData * @return the current {@code Individual} instance, allowing for method chaining */ public Individual identificationData(IdentificationData identificationData) { @@ -140,8 +156,7 @@ public Individual identificationData(IdentificationData identificationData) { /** * Get identificationData - * - * @return identificationData + * @return identificationData */ @JsonProperty(JSON_PROPERTY_IDENTIFICATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,7 +167,7 @@ public IdentificationData getIdentificationData() { /** * identificationData * - * @param identificationData + * @param identificationData */ @JsonProperty(JSON_PROPERTY_IDENTIFICATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,7 +178,7 @@ public void setIdentificationData(IdentificationData identificationData) { /** * name * - * @param name + * @param name * @return the current {@code Individual} instance, allowing for method chaining */ public Individual name(Name name) { @@ -173,8 +188,7 @@ public Individual name(Name name) { /** * Get name - * - * @return name + * @return name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,7 +199,7 @@ public Name getName() { /** * name * - * @param name + * @param name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -206,7 +220,6 @@ public Individual nationality(String nationality) { /** * The individual's nationality. - * * @return nationality The individual's nationality. */ @JsonProperty(JSON_PROPERTY_NATIONALITY) @@ -229,7 +242,7 @@ public void setNationality(String nationality) { /** * phone * - * @param phone + * @param phone * @return the current {@code Individual} instance, allowing for method chaining */ public Individual phone(PhoneNumber phone) { @@ -239,8 +252,7 @@ public Individual phone(PhoneNumber phone) { /** * Get phone - * - * @return phone + * @return phone */ @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -251,7 +263,7 @@ public PhoneNumber getPhone() { /** * phone * - * @param phone + * @param phone */ @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -262,7 +274,7 @@ public void setPhone(PhoneNumber phone) { /** * residentialAddress * - * @param residentialAddress + * @param residentialAddress * @return the current {@code Individual} instance, allowing for method chaining */ public Individual residentialAddress(Address residentialAddress) { @@ -272,8 +284,7 @@ public Individual residentialAddress(Address residentialAddress) { /** * Get residentialAddress - * - * @return residentialAddress + * @return residentialAddress */ @JsonProperty(JSON_PROPERTY_RESIDENTIAL_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,7 +295,7 @@ public Address getResidentialAddress() { /** * residentialAddress * - * @param residentialAddress + * @param residentialAddress */ @JsonProperty(JSON_PROPERTY_RESIDENTIAL_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -313,7 +324,6 @@ public Individual addTaxInformationItem(TaxInformation taxInformationItem) { /** * The tax information of the individual. - * * @return taxInformation The tax information of the individual. */ @JsonProperty(JSON_PROPERTY_TAX_INFORMATION) @@ -336,7 +346,7 @@ public void setTaxInformation(List taxInformation) { /** * webData * - * @param webData + * @param webData * @return the current {@code Individual} instance, allowing for method chaining */ public Individual webData(WebData webData) { @@ -346,8 +356,7 @@ public Individual webData(WebData webData) { /** * Get webData - * - * @return webData + * @return webData */ @JsonProperty(JSON_PROPERTY_WEB_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -358,7 +367,7 @@ public WebData getWebData() { /** * webData * - * @param webData + * @param webData */ @JsonProperty(JSON_PROPERTY_WEB_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -366,7 +375,9 @@ public void setWebData(WebData webData) { this.webData = webData; } - /** Return true if this Individual object is equal to o. */ + /** + * Return true if this Individual object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -376,29 +387,20 @@ public boolean equals(Object o) { return false; } Individual individual = (Individual) o; - return Objects.equals(this.birthData, individual.birthData) - && Objects.equals(this.email, individual.email) - && Objects.equals(this.identificationData, individual.identificationData) - && Objects.equals(this.name, individual.name) - && Objects.equals(this.nationality, individual.nationality) - && Objects.equals(this.phone, individual.phone) - && Objects.equals(this.residentialAddress, individual.residentialAddress) - && Objects.equals(this.taxInformation, individual.taxInformation) - && Objects.equals(this.webData, individual.webData); + return Objects.equals(this.birthData, individual.birthData) && + Objects.equals(this.email, individual.email) && + Objects.equals(this.identificationData, individual.identificationData) && + Objects.equals(this.name, individual.name) && + Objects.equals(this.nationality, individual.nationality) && + Objects.equals(this.phone, individual.phone) && + Objects.equals(this.residentialAddress, individual.residentialAddress) && + Objects.equals(this.taxInformation, individual.taxInformation) && + Objects.equals(this.webData, individual.webData); } @Override public int hashCode() { - return Objects.hash( - birthData, - email, - identificationData, - name, - nationality, - phone, - residentialAddress, - taxInformation, - webData); + return Objects.hash(birthData, email, identificationData, name, nationality, phone, residentialAddress, taxInformation, webData); } @Override @@ -419,7 +421,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -428,7 +431,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Individual given an JSON string * * @param jsonString JSON string @@ -438,12 +441,11 @@ private String toIndentedString(Object o) { public static Individual fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Individual.class); } - - /** - * Convert an instance of Individual to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Individual to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/JSON.java b/src/main/java/com/adyen/model/legalentitymanagement/JSON.java index 8d3432cd1..aca0e272c 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/JSON.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/JSON.java @@ -1,18 +1,21 @@ package com.adyen.model.legalentitymanagement; -import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; +import com.adyen.serializer.ByteArrayDeserializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; +import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; +import com.adyen.model.legalentitymanagement.*; + import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -37,7 +40,6 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. - * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -54,13 +56,11 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { - return mapper; - } + public static ObjectMapper getMapper() { return mapper; } /** - * Returns the target model class that should be used to deserialize the input data. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,7 +73,9 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** Helper class to register the discriminator mappings. */ + /** + * Helper class to register the discriminator mappings. + */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -115,9 +117,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. This - * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -162,14 +164,13 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so - * it's not possible to use the instanceof keyword. + * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, + * so it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf( - Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -193,58 +194,59 @@ public static boolean isInstanceOf( return false; } - /** A map of discriminators for all model classes. */ - private static final Map, ClassDiscriminatorMapping> modelDiscriminators = - new HashMap, ClassDiscriminatorMapping>(); + /** + * A map of discriminators for all model classes. + */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); - /** A map of oneOf/anyOf descendants for each model class. */ + /** + * A map of oneOf/anyOf descendants for each model class. + */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator( - Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = - new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants( - Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants(Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static { + static + { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/LegalEntity.java b/src/main/java/com/adyen/model/legalentitymanagement/LegalEntity.java index 664e8c779..25013f1f8 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/LegalEntity.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/LegalEntity.java @@ -2,30 +2,47 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.legalentitymanagement.CapabilityProblem; +import com.adyen.model.legalentitymanagement.DocumentReference; +import com.adyen.model.legalentitymanagement.EntityReference; +import com.adyen.model.legalentitymanagement.Individual; +import com.adyen.model.legalentitymanagement.LegalEntityAssociation; +import com.adyen.model.legalentitymanagement.LegalEntityCapability; +import com.adyen.model.legalentitymanagement.Organization; +import com.adyen.model.legalentitymanagement.SoleProprietorship; +import com.adyen.model.legalentitymanagement.TransferInstrumentReference; +import com.adyen.model.legalentitymanagement.Trust; +import com.adyen.model.legalentitymanagement.UnincorporatedPartnership; +import com.adyen.model.legalentitymanagement.VerificationDeadline; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** LegalEntity */ + +/** + * LegalEntity + */ @JsonPropertyOrder({ LegalEntity.JSON_PROPERTY_CAPABILITIES, LegalEntity.JSON_PROPERTY_DOCUMENT_DETAILS, @@ -44,6 +61,7 @@ LegalEntity.JSON_PROPERTY_VERIFICATION_DEADLINES, LegalEntity.JSON_PROPERTY_VERIFICATION_PLAN }) + public class LegalEntity { public static final String JSON_PROPERTY_CAPABILITIES = "capabilities"; private Map capabilities; @@ -52,8 +70,7 @@ public class LegalEntity { private List documentDetails; public static final String JSON_PROPERTY_DOCUMENTS = "documents"; - @Deprecated // deprecated since Legal Entity Management API v1: Use the `documentDetails` array - // instead. + @Deprecated // deprecated since Legal Entity Management API v1: Use the `documentDetails` array instead. private List documents; public static final String JSON_PROPERTY_ENTITY_ASSOCIATIONS = "entityAssociations"; @@ -84,10 +101,10 @@ public class LegalEntity { private Trust trust; /** - * The type of legal entity. Possible values: **individual**, **organization**, - * **soleProprietorship**, or **trust**. + * The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. */ public enum TypeEnum { + INDIVIDUAL(String.valueOf("individual")), ORGANIZATION(String.valueOf("organization")), @@ -103,7 +120,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -124,11 +141,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -145,15 +158,15 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VERIFICATION_PLAN = "verificationPlan"; private String verificationPlan; - public LegalEntity() {} + public LegalEntity() { + } @JsonCreator public LegalEntity( - @JsonProperty(JSON_PROPERTY_ID) String id, - @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENTS) - List transferInstruments, - @JsonProperty(JSON_PROPERTY_VERIFICATION_DEADLINES) - List verificationDeadlines) { + @JsonProperty(JSON_PROPERTY_ID) String id, + @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENTS) List transferInstruments, + @JsonProperty(JSON_PROPERTY_VERIFICATION_DEADLINES) List verificationDeadlines + ) { this(); this.id = id; this.transferInstruments = transferInstruments; @@ -161,14 +174,9 @@ public LegalEntity( } /** - * Contains key-value pairs that specify the actions that the legal entity can do in your - * platform.The key is a capability required for your integration. For example, **issueCard** for - * Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that the legal entity can - * do in your platform.The key is a capability required for your integration. For example, - * **issueCard** for Issuing. The value is an object containing the settings for the - * capability. + * @param capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. * @return the current {@code LegalEntity} instance, allowing for method chaining */ public LegalEntity capabilities(Map capabilities) { @@ -185,14 +193,8 @@ public LegalEntity putCapabilitiesItem(String key, LegalEntityCapability capabil } /** - * Contains key-value pairs that specify the actions that the legal entity can do in your - * platform.The key is a capability required for your integration. For example, **issueCard** for - * Issuing. The value is an object containing the settings for the capability. - * - * @return capabilities Contains key-value pairs that specify the actions that the legal entity - * can do in your platform.The key is a capability required for your integration. For example, - * **issueCard** for Issuing. The value is an object containing the settings for the - * capability. + * Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * @return capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -201,14 +203,9 @@ public Map getCapabilities() { } /** - * Contains key-value pairs that specify the actions that the legal entity can do in your - * platform.The key is a capability required for your integration. For example, **issueCard** for - * Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that the legal entity can - * do in your platform.The key is a capability required for your integration. For example, - * **issueCard** for Issuing. The value is an object containing the settings for the - * capability. + * @param capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,7 +234,6 @@ public LegalEntity addDocumentDetailsItem(DocumentReference documentDetailsItem) /** * List of documents uploaded for the legal entity. - * * @return documentDetails List of documents uploaded for the legal entity. */ @JsonProperty(JSON_PROPERTY_DOCUMENT_DETAILS) @@ -262,11 +258,11 @@ public void setDocumentDetails(List documentDetails) { * * @param documents List of documents uploaded for the legal entity. * @return the current {@code LegalEntity} instance, allowing for method chaining - * @deprecated since Legal Entity Management API v1 Use the `documentDetails` array - * instead. + * + * @deprecated since Legal Entity Management API v1 + * Use the `documentDetails` array instead. */ - @Deprecated // deprecated since Legal Entity Management API v1: Use the `documentDetails` array - // instead. + @Deprecated // deprecated since Legal Entity Management API v1: Use the `documentDetails` array instead. public LegalEntity documents(List documents) { this.documents = documents; return this; @@ -282,13 +278,10 @@ public LegalEntity addDocumentsItem(EntityReference documentsItem) { /** * List of documents uploaded for the legal entity. - * * @return documents List of documents uploaded for the legal entity. - * @deprecated // deprecated since Legal Entity Management API v1: Use the `documentDetails` array - * instead. + * @deprecated // deprecated since Legal Entity Management API v1: Use the `documentDetails` array instead. */ - @Deprecated // deprecated since Legal Entity Management API v1: Use the `documentDetails` array - // instead. + @Deprecated // deprecated since Legal Entity Management API v1: Use the `documentDetails` array instead. @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getDocuments() { @@ -299,11 +292,11 @@ public List getDocuments() { * List of documents uploaded for the legal entity. * * @param documents List of documents uploaded for the legal entity. - * @deprecated since Legal Entity Management API v1 Use the `documentDetails` array - * instead. + * + * @deprecated since Legal Entity Management API v1 + * Use the `documentDetails` array instead. */ - @Deprecated // deprecated since Legal Entity Management API v1: Use the `documentDetails` array - // instead. + @Deprecated // deprecated since Legal Entity Management API v1: Use the `documentDetails` array instead. @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDocuments(List documents) { @@ -311,13 +304,9 @@ public void setDocuments(List documents) { } /** - * List of legal entities associated with the current legal entity. For example, ultimate - * beneficial owners associated with an organization through ownership or control, or as - * signatories. + * List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. * - * @param entityAssociations List of legal entities associated with the current legal entity. For - * example, ultimate beneficial owners associated with an organization through ownership or - * control, or as signatories. + * @param entityAssociations List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. * @return the current {@code LegalEntity} instance, allowing for method chaining */ public LegalEntity entityAssociations(List entityAssociations) { @@ -334,13 +323,8 @@ public LegalEntity addEntityAssociationsItem(LegalEntityAssociation entityAssoci } /** - * List of legal entities associated with the current legal entity. For example, ultimate - * beneficial owners associated with an organization through ownership or control, or as - * signatories. - * - * @return entityAssociations List of legal entities associated with the current legal entity. For - * example, ultimate beneficial owners associated with an organization through ownership or - * control, or as signatories. + * List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. + * @return entityAssociations List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. */ @JsonProperty(JSON_PROPERTY_ENTITY_ASSOCIATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -349,13 +333,9 @@ public List getEntityAssociations() { } /** - * List of legal entities associated with the current legal entity. For example, ultimate - * beneficial owners associated with an organization through ownership or control, or as - * signatories. + * List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. * - * @param entityAssociations List of legal entities associated with the current legal entity. For - * example, ultimate beneficial owners associated with an organization through ownership or - * control, or as signatories. + * @param entityAssociations List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. */ @JsonProperty(JSON_PROPERTY_ENTITY_ASSOCIATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -365,7 +345,6 @@ public void setEntityAssociations(List entityAssociation /** * The unique identifier of the legal entity. - * * @return id The unique identifier of the legal entity. */ @JsonProperty(JSON_PROPERTY_ID) @@ -374,10 +353,11 @@ public String getId() { return id; } + /** * individual * - * @param individual + * @param individual * @return the current {@code LegalEntity} instance, allowing for method chaining */ public LegalEntity individual(Individual individual) { @@ -387,8 +367,7 @@ public LegalEntity individual(Individual individual) { /** * Get individual - * - * @return individual + * @return individual */ @JsonProperty(JSON_PROPERTY_INDIVIDUAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -399,7 +378,7 @@ public Individual getIndividual() { /** * individual * - * @param individual + * @param individual */ @JsonProperty(JSON_PROPERTY_INDIVIDUAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -410,7 +389,7 @@ public void setIndividual(Individual individual) { /** * organization * - * @param organization + * @param organization * @return the current {@code LegalEntity} instance, allowing for method chaining */ public LegalEntity organization(Organization organization) { @@ -420,8 +399,7 @@ public LegalEntity organization(Organization organization) { /** * Get organization - * - * @return organization + * @return organization */ @JsonProperty(JSON_PROPERTY_ORGANIZATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -432,7 +410,7 @@ public Organization getOrganization() { /** * organization * - * @param organization + * @param organization */ @JsonProperty(JSON_PROPERTY_ORGANIZATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -461,7 +439,6 @@ public LegalEntity addProblemsItem(CapabilityProblem problemsItem) { /** * List of verification errors related to capabilities for the legal entity. - * * @return problems List of verification errors related to capabilities for the legal entity. */ @JsonProperty(JSON_PROPERTY_PROBLEMS) @@ -494,7 +471,6 @@ public LegalEntity reference(String reference) { /** * Your reference for the legal entity, maximum 150 characters. - * * @return reference Your reference for the legal entity, maximum 150 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -517,7 +493,7 @@ public void setReference(String reference) { /** * soleProprietorship * - * @param soleProprietorship + * @param soleProprietorship * @return the current {@code LegalEntity} instance, allowing for method chaining */ public LegalEntity soleProprietorship(SoleProprietorship soleProprietorship) { @@ -527,8 +503,7 @@ public LegalEntity soleProprietorship(SoleProprietorship soleProprietorship) { /** * Get soleProprietorship - * - * @return soleProprietorship + * @return soleProprietorship */ @JsonProperty(JSON_PROPERTY_SOLE_PROPRIETORSHIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -539,7 +514,7 @@ public SoleProprietorship getSoleProprietorship() { /** * soleProprietorship * - * @param soleProprietorship + * @param soleProprietorship */ @JsonProperty(JSON_PROPERTY_SOLE_PROPRIETORSHIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -549,7 +524,6 @@ public void setSoleProprietorship(SoleProprietorship soleProprietorship) { /** * List of transfer instruments that the legal entity owns. - * * @return transferInstruments List of transfer instruments that the legal entity owns. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENTS) @@ -558,10 +532,11 @@ public List getTransferInstruments() { return transferInstruments; } + /** * trust * - * @param trust + * @param trust * @return the current {@code LegalEntity} instance, allowing for method chaining */ public LegalEntity trust(Trust trust) { @@ -571,8 +546,7 @@ public LegalEntity trust(Trust trust) { /** * Get trust - * - * @return trust + * @return trust */ @JsonProperty(JSON_PROPERTY_TRUST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -583,7 +557,7 @@ public Trust getTrust() { /** * trust * - * @param trust + * @param trust */ @JsonProperty(JSON_PROPERTY_TRUST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -592,11 +566,9 @@ public void setTrust(Trust trust) { } /** - * The type of legal entity. Possible values: **individual**, **organization**, - * **soleProprietorship**, or **trust**. + * The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. * - * @param type The type of legal entity. Possible values: **individual**, **organization**, - * **soleProprietorship**, or **trust**. + * @param type The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. * @return the current {@code LegalEntity} instance, allowing for method chaining */ public LegalEntity type(TypeEnum type) { @@ -605,11 +577,8 @@ public LegalEntity type(TypeEnum type) { } /** - * The type of legal entity. Possible values: **individual**, **organization**, - * **soleProprietorship**, or **trust**. - * - * @return type The type of legal entity. Possible values: **individual**, **organization**, - * **soleProprietorship**, or **trust**. + * The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. + * @return type The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -618,11 +587,9 @@ public TypeEnum getType() { } /** - * The type of legal entity. Possible values: **individual**, **organization**, - * **soleProprietorship**, or **trust**. + * The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. * - * @param type The type of legal entity. Possible values: **individual**, **organization**, - * **soleProprietorship**, or **trust**. + * @param type The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -633,19 +600,17 @@ public void setType(TypeEnum type) { /** * unincorporatedPartnership * - * @param unincorporatedPartnership + * @param unincorporatedPartnership * @return the current {@code LegalEntity} instance, allowing for method chaining */ - public LegalEntity unincorporatedPartnership( - UnincorporatedPartnership unincorporatedPartnership) { + public LegalEntity unincorporatedPartnership(UnincorporatedPartnership unincorporatedPartnership) { this.unincorporatedPartnership = unincorporatedPartnership; return this; } /** * Get unincorporatedPartnership - * - * @return unincorporatedPartnership + * @return unincorporatedPartnership */ @JsonProperty(JSON_PROPERTY_UNINCORPORATED_PARTNERSHIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -656,7 +621,7 @@ public UnincorporatedPartnership getUnincorporatedPartnership() { /** * unincorporatedPartnership * - * @param unincorporatedPartnership + * @param unincorporatedPartnership */ @JsonProperty(JSON_PROPERTY_UNINCORPORATED_PARTNERSHIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -665,11 +630,8 @@ public void setUnincorporatedPartnership(UnincorporatedPartnership unincorporate } /** - * List of verification deadlines and the capabilities that will be disallowed if verification - * errors are not resolved. - * - * @return verificationDeadlines List of verification deadlines and the capabilities that will be - * disallowed if verification errors are not resolved. + * List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. + * @return verificationDeadlines List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_DEADLINES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -677,14 +639,11 @@ public List getVerificationDeadlines() { return verificationDeadlines; } + /** - * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** - * for upfront verification for - * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). * - * @param verificationPlan A key-value pair that specifies the verification process for a legal - * entity. Set to **upfront** for upfront verification for - * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * @param verificationPlan A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). * @return the current {@code LegalEntity} instance, allowing for method chaining */ public LegalEntity verificationPlan(String verificationPlan) { @@ -693,13 +652,8 @@ public LegalEntity verificationPlan(String verificationPlan) { } /** - * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** - * for upfront verification for - * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). - * - * @return verificationPlan A key-value pair that specifies the verification process for a legal - * entity. Set to **upfront** for upfront verification for - * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * @return verificationPlan A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). */ @JsonProperty(JSON_PROPERTY_VERIFICATION_PLAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -708,13 +662,9 @@ public String getVerificationPlan() { } /** - * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** - * for upfront verification for - * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). * - * @param verificationPlan A key-value pair that specifies the verification process for a legal - * entity. Set to **upfront** for upfront verification for - * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * @param verificationPlan A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). */ @JsonProperty(JSON_PROPERTY_VERIFICATION_PLAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -722,7 +672,9 @@ public void setVerificationPlan(String verificationPlan) { this.verificationPlan = verificationPlan; } - /** Return true if this LegalEntity object is equal to o. */ + /** + * Return true if this LegalEntity object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -732,43 +684,27 @@ public boolean equals(Object o) { return false; } LegalEntity legalEntity = (LegalEntity) o; - return Objects.equals(this.capabilities, legalEntity.capabilities) - && Objects.equals(this.documentDetails, legalEntity.documentDetails) - && Objects.equals(this.documents, legalEntity.documents) - && Objects.equals(this.entityAssociations, legalEntity.entityAssociations) - && Objects.equals(this.id, legalEntity.id) - && Objects.equals(this.individual, legalEntity.individual) - && Objects.equals(this.organization, legalEntity.organization) - && Objects.equals(this.problems, legalEntity.problems) - && Objects.equals(this.reference, legalEntity.reference) - && Objects.equals(this.soleProprietorship, legalEntity.soleProprietorship) - && Objects.equals(this.transferInstruments, legalEntity.transferInstruments) - && Objects.equals(this.trust, legalEntity.trust) - && Objects.equals(this.type, legalEntity.type) - && Objects.equals(this.unincorporatedPartnership, legalEntity.unincorporatedPartnership) - && Objects.equals(this.verificationDeadlines, legalEntity.verificationDeadlines) - && Objects.equals(this.verificationPlan, legalEntity.verificationPlan); + return Objects.equals(this.capabilities, legalEntity.capabilities) && + Objects.equals(this.documentDetails, legalEntity.documentDetails) && + Objects.equals(this.documents, legalEntity.documents) && + Objects.equals(this.entityAssociations, legalEntity.entityAssociations) && + Objects.equals(this.id, legalEntity.id) && + Objects.equals(this.individual, legalEntity.individual) && + Objects.equals(this.organization, legalEntity.organization) && + Objects.equals(this.problems, legalEntity.problems) && + Objects.equals(this.reference, legalEntity.reference) && + Objects.equals(this.soleProprietorship, legalEntity.soleProprietorship) && + Objects.equals(this.transferInstruments, legalEntity.transferInstruments) && + Objects.equals(this.trust, legalEntity.trust) && + Objects.equals(this.type, legalEntity.type) && + Objects.equals(this.unincorporatedPartnership, legalEntity.unincorporatedPartnership) && + Objects.equals(this.verificationDeadlines, legalEntity.verificationDeadlines) && + Objects.equals(this.verificationPlan, legalEntity.verificationPlan); } @Override public int hashCode() { - return Objects.hash( - capabilities, - documentDetails, - documents, - entityAssociations, - id, - individual, - organization, - problems, - reference, - soleProprietorship, - transferInstruments, - trust, - type, - unincorporatedPartnership, - verificationDeadlines, - verificationPlan); + return Objects.hash(capabilities, documentDetails, documents, entityAssociations, id, individual, organization, problems, reference, soleProprietorship, transferInstruments, trust, type, unincorporatedPartnership, verificationDeadlines, verificationPlan); } @Override @@ -785,24 +721,19 @@ public String toString() { sb.append(" problems: ").append(toIndentedString(problems)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" soleProprietorship: ").append(toIndentedString(soleProprietorship)).append("\n"); - sb.append(" transferInstruments: ") - .append(toIndentedString(transferInstruments)) - .append("\n"); + sb.append(" transferInstruments: ").append(toIndentedString(transferInstruments)).append("\n"); sb.append(" trust: ").append(toIndentedString(trust)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" unincorporatedPartnership: ") - .append(toIndentedString(unincorporatedPartnership)) - .append("\n"); - sb.append(" verificationDeadlines: ") - .append(toIndentedString(verificationDeadlines)) - .append("\n"); + sb.append(" unincorporatedPartnership: ").append(toIndentedString(unincorporatedPartnership)).append("\n"); + sb.append(" verificationDeadlines: ").append(toIndentedString(verificationDeadlines)).append("\n"); sb.append(" verificationPlan: ").append(toIndentedString(verificationPlan)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -811,7 +742,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of LegalEntity given an JSON string * * @param jsonString JSON string @@ -821,12 +752,11 @@ private String toIndentedString(Object o) { public static LegalEntity fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, LegalEntity.class); } - - /** - * Convert an instance of LegalEntity to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of LegalEntity to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityAssociation.java b/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityAssociation.java index db7981053..fb1a5bc65 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityAssociation.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityAssociation.java @@ -2,28 +2,33 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** LegalEntityAssociation */ + +/** + * LegalEntityAssociation + */ @JsonPropertyOrder({ LegalEntityAssociation.JSON_PROPERTY_ASSOCIATOR_ID, LegalEntityAssociation.JSON_PROPERTY_ENTITY_TYPE, @@ -35,6 +40,7 @@ LegalEntityAssociation.JSON_PROPERTY_SETTLOR_EXEMPTION_REASON, LegalEntityAssociation.JSON_PROPERTY_TYPE }) + public class LegalEntityAssociation { public static final String JSON_PROPERTY_ASSOCIATOR_ID = "associatorId"; private String associatorId; @@ -61,17 +67,10 @@ public class LegalEntityAssociation { private List settlorExemptionReason; /** - * Defines the relationship of the legal entity to the current legal entity. Possible value for - * individuals: **legalRepresentative**. Possible values for organizations: **director**, - * **signatory**, **trustOwnership**, **uboThroughOwnership**, **uboThroughControl**, or - * **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. - * Possible value for trusts: **trust**. Possible values for trust members: - * **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, - * **uboThroughControl**, or **uboThroughOwnership**. Possible value for unincorporated - * partnership: **unincorporatedPartnership**. Possible values for unincorporated partnership - * members: **secondaryPartner**, **uboThroughControl**, **uboThroughOwnership** + * Defines the relationship of the legal entity to the current legal entity. Possible value for individuals: **legalRepresentative**. Possible values for organizations: **director**, **signatory**, **trustOwnership**, **uboThroughOwnership**, **uboThroughControl**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust**. Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**. Possible value for unincorporated partnership: **unincorporatedPartnership**. Possible values for unincorporated partnership members: **secondaryPartner**, **uboThroughControl**, **uboThroughOwnership** */ public enum TypeEnum { + DEFINEDBENEFICIARY(String.valueOf("definedBeneficiary")), DIRECTOR(String.valueOf("director")), @@ -113,7 +112,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -134,11 +133,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -146,13 +141,15 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public LegalEntityAssociation() {} + public LegalEntityAssociation() { + } @JsonCreator public LegalEntityAssociation( - @JsonProperty(JSON_PROPERTY_ASSOCIATOR_ID) String associatorId, - @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) String entityType, - @JsonProperty(JSON_PROPERTY_NAME) String name) { + @JsonProperty(JSON_PROPERTY_ASSOCIATOR_ID) String associatorId, + @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) String entityType, + @JsonProperty(JSON_PROPERTY_NAME) String name + ) { this(); this.associatorId = associatorId; this.entityType = entityType; @@ -160,13 +157,8 @@ public LegalEntityAssociation( } /** - * The unique identifier of another legal entity with which the `legalEntityId` is - * associated. When the `legalEntityId` is associated to legal entities other than the - * current one, the response returns all the associations. - * - * @return associatorId The unique identifier of another legal entity with which the - * `legalEntityId` is associated. When the `legalEntityId` is associated - * to legal entities other than the current one, the response returns all the associations. + * The unique identifier of another legal entity with which the `legalEntityId` is associated. When the `legalEntityId` is associated to legal entities other than the current one, the response returns all the associations. + * @return associatorId The unique identifier of another legal entity with which the `legalEntityId` is associated. When the `legalEntityId` is associated to legal entities other than the current one, the response returns all the associations. */ @JsonProperty(JSON_PROPERTY_ASSOCIATOR_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -174,12 +166,10 @@ public String getAssociatorId() { return associatorId; } + /** - * The legal entity type of associated legal entity. For example, **organization**, - * **soleProprietorship** or **individual**. - * - * @return entityType The legal entity type of associated legal entity. For example, - * **organization**, **soleProprietorship** or **individual**. + * The legal entity type of associated legal entity. For example, **organization**, **soleProprietorship** or **individual**. + * @return entityType The legal entity type of associated legal entity. For example, **organization**, **soleProprietorship** or **individual**. */ @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,12 +177,11 @@ public String getEntityType() { return entityType; } + /** - * The individual's job title if the `type` is **uboThroughControl** or - * **signatory**. + * The individual's job title if the `type` is **uboThroughControl** or **signatory**. * - * @param jobTitle The individual's job title if the `type` is **uboThroughControl** - * or **signatory**. + * @param jobTitle The individual's job title if the `type` is **uboThroughControl** or **signatory**. * @return the current {@code LegalEntityAssociation} instance, allowing for method chaining */ public LegalEntityAssociation jobTitle(String jobTitle) { @@ -201,11 +190,8 @@ public LegalEntityAssociation jobTitle(String jobTitle) { } /** - * The individual's job title if the `type` is **uboThroughControl** or - * **signatory**. - * - * @return jobTitle The individual's job title if the `type` is - * **uboThroughControl** or **signatory**. + * The individual's job title if the `type` is **uboThroughControl** or **signatory**. + * @return jobTitle The individual's job title if the `type` is **uboThroughControl** or **signatory**. */ @JsonProperty(JSON_PROPERTY_JOB_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,11 +200,9 @@ public String getJobTitle() { } /** - * The individual's job title if the `type` is **uboThroughControl** or - * **signatory**. + * The individual's job title if the `type` is **uboThroughControl** or **signatory**. * - * @param jobTitle The individual's job title if the `type` is **uboThroughControl** - * or **signatory**. + * @param jobTitle The individual's job title if the `type` is **uboThroughControl** or **signatory**. */ @JsonProperty(JSON_PROPERTY_JOB_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -227,11 +211,9 @@ public void setJobTitle(String jobTitle) { } /** - * The unique identifier of the associated [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * The unique identifier of the associated [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). * - * @param legalEntityId The unique identifier of the associated [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * @param legalEntityId The unique identifier of the associated [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). * @return the current {@code LegalEntityAssociation} instance, allowing for method chaining */ public LegalEntityAssociation legalEntityId(String legalEntityId) { @@ -240,11 +222,8 @@ public LegalEntityAssociation legalEntityId(String legalEntityId) { } /** - * The unique identifier of the associated [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). - * - * @return legalEntityId The unique identifier of the associated [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * The unique identifier of the associated [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * @return legalEntityId The unique identifier of the associated [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -253,11 +232,9 @@ public String getLegalEntityId() { } /** - * The unique identifier of the associated [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * The unique identifier of the associated [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). * - * @param legalEntityId The unique identifier of the associated [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * @param legalEntityId The unique identifier of the associated [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -266,15 +243,8 @@ public void setLegalEntityId(String legalEntityId) { } /** - * The name of the associated [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). - * - For **individual**, `name.firstName` and `name.lastName`. - For - * **organization**, `legalName`. - For **soleProprietorship**, `name`. - * - * @return name The name of the associated [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). - * - For **individual**, `name.firstName` and `name.lastName`. - For - * **organization**, `legalName`. - For **soleProprietorship**, `name`. + * The name of the associated [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). - For **individual**, `name.firstName` and `name.lastName`. - For **organization**, `legalName`. - For **soleProprietorship**, `name`. + * @return name The name of the associated [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). - For **individual**, `name.firstName` and `name.lastName`. - For **organization**, `legalName`. - For **soleProprietorship**, `name`. */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -282,14 +252,11 @@ public String getName() { return name; } + /** - * Default value: **false** Set to **true** if the entity association `type` - * **director**, **secondaryPartner** or **shareholder** is also a nominee. Only applicable to New - * Zealand. + * Default value: **false** Set to **true** if the entity association `type` **director**, **secondaryPartner** or **shareholder** is also a nominee. Only applicable to New Zealand. * - * @param nominee Default value: **false** Set to **true** if the entity association - * `type` **director**, **secondaryPartner** or **shareholder** is also a nominee. - * Only applicable to New Zealand. + * @param nominee Default value: **false** Set to **true** if the entity association `type` **director**, **secondaryPartner** or **shareholder** is also a nominee. Only applicable to New Zealand. * @return the current {@code LegalEntityAssociation} instance, allowing for method chaining */ public LegalEntityAssociation nominee(Boolean nominee) { @@ -298,13 +265,8 @@ public LegalEntityAssociation nominee(Boolean nominee) { } /** - * Default value: **false** Set to **true** if the entity association `type` - * **director**, **secondaryPartner** or **shareholder** is also a nominee. Only applicable to New - * Zealand. - * - * @return nominee Default value: **false** Set to **true** if the entity association - * `type` **director**, **secondaryPartner** or **shareholder** is also a nominee. - * Only applicable to New Zealand. + * Default value: **false** Set to **true** if the entity association `type` **director**, **secondaryPartner** or **shareholder** is also a nominee. Only applicable to New Zealand. + * @return nominee Default value: **false** Set to **true** if the entity association `type` **director**, **secondaryPartner** or **shareholder** is also a nominee. Only applicable to New Zealand. */ @JsonProperty(JSON_PROPERTY_NOMINEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -313,13 +275,9 @@ public Boolean getNominee() { } /** - * Default value: **false** Set to **true** if the entity association `type` - * **director**, **secondaryPartner** or **shareholder** is also a nominee. Only applicable to New - * Zealand. + * Default value: **false** Set to **true** if the entity association `type` **director**, **secondaryPartner** or **shareholder** is also a nominee. Only applicable to New Zealand. * - * @param nominee Default value: **false** Set to **true** if the entity association - * `type` **director**, **secondaryPartner** or **shareholder** is also a nominee. - * Only applicable to New Zealand. + * @param nominee Default value: **false** Set to **true** if the entity association `type` **director**, **secondaryPartner** or **shareholder** is also a nominee. Only applicable to New Zealand. */ @JsonProperty(JSON_PROPERTY_NOMINEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -328,11 +286,9 @@ public void setNominee(Boolean nominee) { } /** - * The individual's relationship to a legal representative if the `type` is - * **legalRepresentative**. Possible values: **parent**, **guardian**. + * The individual's relationship to a legal representative if the `type` is **legalRepresentative**. Possible values: **parent**, **guardian**. * - * @param relationship The individual's relationship to a legal representative if the - * `type` is **legalRepresentative**. Possible values: **parent**, **guardian**. + * @param relationship The individual's relationship to a legal representative if the `type` is **legalRepresentative**. Possible values: **parent**, **guardian**. * @return the current {@code LegalEntityAssociation} instance, allowing for method chaining */ public LegalEntityAssociation relationship(String relationship) { @@ -341,11 +297,8 @@ public LegalEntityAssociation relationship(String relationship) { } /** - * The individual's relationship to a legal representative if the `type` is - * **legalRepresentative**. Possible values: **parent**, **guardian**. - * - * @return relationship The individual's relationship to a legal representative if the - * `type` is **legalRepresentative**. Possible values: **parent**, **guardian**. + * The individual's relationship to a legal representative if the `type` is **legalRepresentative**. Possible values: **parent**, **guardian**. + * @return relationship The individual's relationship to a legal representative if the `type` is **legalRepresentative**. Possible values: **parent**, **guardian**. */ @JsonProperty(JSON_PROPERTY_RELATIONSHIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -354,11 +307,9 @@ public String getRelationship() { } /** - * The individual's relationship to a legal representative if the `type` is - * **legalRepresentative**. Possible values: **parent**, **guardian**. + * The individual's relationship to a legal representative if the `type` is **legalRepresentative**. Possible values: **parent**, **guardian**. * - * @param relationship The individual's relationship to a legal representative if the - * `type` is **legalRepresentative**. Possible values: **parent**, **guardian**. + * @param relationship The individual's relationship to a legal representative if the `type` is **legalRepresentative**. Possible values: **parent**, **guardian**. */ @JsonProperty(JSON_PROPERTY_RELATIONSHIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -367,13 +318,9 @@ public void setRelationship(String relationship) { } /** - * Defines the KYC exemption reason for a settlor associated with a trust. Only applicable to - * trusts in Australia. For example, **professionalServiceProvider**, **deceased**, or - * **contributionBelowThreshold**. + * Defines the KYC exemption reason for a settlor associated with a trust. Only applicable to trusts in Australia. For example, **professionalServiceProvider**, **deceased**, or **contributionBelowThreshold**. * - * @param settlorExemptionReason Defines the KYC exemption reason for a settlor associated with a - * trust. Only applicable to trusts in Australia. For example, - * **professionalServiceProvider**, **deceased**, or **contributionBelowThreshold**. + * @param settlorExemptionReason Defines the KYC exemption reason for a settlor associated with a trust. Only applicable to trusts in Australia. For example, **professionalServiceProvider**, **deceased**, or **contributionBelowThreshold**. * @return the current {@code LegalEntityAssociation} instance, allowing for method chaining */ public LegalEntityAssociation settlorExemptionReason(List settlorExemptionReason) { @@ -390,13 +337,8 @@ public LegalEntityAssociation addSettlorExemptionReasonItem(String settlorExempt } /** - * Defines the KYC exemption reason for a settlor associated with a trust. Only applicable to - * trusts in Australia. For example, **professionalServiceProvider**, **deceased**, or - * **contributionBelowThreshold**. - * - * @return settlorExemptionReason Defines the KYC exemption reason for a settlor associated with a - * trust. Only applicable to trusts in Australia. For example, - * **professionalServiceProvider**, **deceased**, or **contributionBelowThreshold**. + * Defines the KYC exemption reason for a settlor associated with a trust. Only applicable to trusts in Australia. For example, **professionalServiceProvider**, **deceased**, or **contributionBelowThreshold**. + * @return settlorExemptionReason Defines the KYC exemption reason for a settlor associated with a trust. Only applicable to trusts in Australia. For example, **professionalServiceProvider**, **deceased**, or **contributionBelowThreshold**. */ @JsonProperty(JSON_PROPERTY_SETTLOR_EXEMPTION_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -405,13 +347,9 @@ public List getSettlorExemptionReason() { } /** - * Defines the KYC exemption reason for a settlor associated with a trust. Only applicable to - * trusts in Australia. For example, **professionalServiceProvider**, **deceased**, or - * **contributionBelowThreshold**. + * Defines the KYC exemption reason for a settlor associated with a trust. Only applicable to trusts in Australia. For example, **professionalServiceProvider**, **deceased**, or **contributionBelowThreshold**. * - * @param settlorExemptionReason Defines the KYC exemption reason for a settlor associated with a - * trust. Only applicable to trusts in Australia. For example, - * **professionalServiceProvider**, **deceased**, or **contributionBelowThreshold**. + * @param settlorExemptionReason Defines the KYC exemption reason for a settlor associated with a trust. Only applicable to trusts in Australia. For example, **professionalServiceProvider**, **deceased**, or **contributionBelowThreshold**. */ @JsonProperty(JSON_PROPERTY_SETTLOR_EXEMPTION_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -420,26 +358,9 @@ public void setSettlorExemptionReason(List settlorExemptionReason) { } /** - * Defines the relationship of the legal entity to the current legal entity. Possible value for - * individuals: **legalRepresentative**. Possible values for organizations: **director**, - * **signatory**, **trustOwnership**, **uboThroughOwnership**, **uboThroughControl**, or - * **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. - * Possible value for trusts: **trust**. Possible values for trust members: - * **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, - * **uboThroughControl**, or **uboThroughOwnership**. Possible value for unincorporated - * partnership: **unincorporatedPartnership**. Possible values for unincorporated partnership - * members: **secondaryPartner**, **uboThroughControl**, **uboThroughOwnership** + * Defines the relationship of the legal entity to the current legal entity. Possible value for individuals: **legalRepresentative**. Possible values for organizations: **director**, **signatory**, **trustOwnership**, **uboThroughOwnership**, **uboThroughControl**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust**. Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**. Possible value for unincorporated partnership: **unincorporatedPartnership**. Possible values for unincorporated partnership members: **secondaryPartner**, **uboThroughControl**, **uboThroughOwnership** * - * @param type Defines the relationship of the legal entity to the current legal entity. Possible - * value for individuals: **legalRepresentative**. Possible values for organizations: - * **director**, **signatory**, **trustOwnership**, **uboThroughOwnership**, - * **uboThroughControl**, or **ultimateParentCompany**. Possible values for sole - * proprietorships: **soleProprietorship**. Possible value for trusts: **trust**. Possible - * values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, - * **settlor**, **uboThroughControl**, or **uboThroughOwnership**. Possible value for - * unincorporated partnership: **unincorporatedPartnership**. Possible values for - * unincorporated partnership members: **secondaryPartner**, **uboThroughControl**, - * **uboThroughOwnership** + * @param type Defines the relationship of the legal entity to the current legal entity. Possible value for individuals: **legalRepresentative**. Possible values for organizations: **director**, **signatory**, **trustOwnership**, **uboThroughOwnership**, **uboThroughControl**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust**. Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**. Possible value for unincorporated partnership: **unincorporatedPartnership**. Possible values for unincorporated partnership members: **secondaryPartner**, **uboThroughControl**, **uboThroughOwnership** * @return the current {@code LegalEntityAssociation} instance, allowing for method chaining */ public LegalEntityAssociation type(TypeEnum type) { @@ -448,26 +369,8 @@ public LegalEntityAssociation type(TypeEnum type) { } /** - * Defines the relationship of the legal entity to the current legal entity. Possible value for - * individuals: **legalRepresentative**. Possible values for organizations: **director**, - * **signatory**, **trustOwnership**, **uboThroughOwnership**, **uboThroughControl**, or - * **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. - * Possible value for trusts: **trust**. Possible values for trust members: - * **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, - * **uboThroughControl**, or **uboThroughOwnership**. Possible value for unincorporated - * partnership: **unincorporatedPartnership**. Possible values for unincorporated partnership - * members: **secondaryPartner**, **uboThroughControl**, **uboThroughOwnership** - * - * @return type Defines the relationship of the legal entity to the current legal entity. Possible - * value for individuals: **legalRepresentative**. Possible values for organizations: - * **director**, **signatory**, **trustOwnership**, **uboThroughOwnership**, - * **uboThroughControl**, or **ultimateParentCompany**. Possible values for sole - * proprietorships: **soleProprietorship**. Possible value for trusts: **trust**. Possible - * values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, - * **settlor**, **uboThroughControl**, or **uboThroughOwnership**. Possible value for - * unincorporated partnership: **unincorporatedPartnership**. Possible values for - * unincorporated partnership members: **secondaryPartner**, **uboThroughControl**, - * **uboThroughOwnership** + * Defines the relationship of the legal entity to the current legal entity. Possible value for individuals: **legalRepresentative**. Possible values for organizations: **director**, **signatory**, **trustOwnership**, **uboThroughOwnership**, **uboThroughControl**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust**. Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**. Possible value for unincorporated partnership: **unincorporatedPartnership**. Possible values for unincorporated partnership members: **secondaryPartner**, **uboThroughControl**, **uboThroughOwnership** + * @return type Defines the relationship of the legal entity to the current legal entity. Possible value for individuals: **legalRepresentative**. Possible values for organizations: **director**, **signatory**, **trustOwnership**, **uboThroughOwnership**, **uboThroughControl**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust**. Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**. Possible value for unincorporated partnership: **unincorporatedPartnership**. Possible values for unincorporated partnership members: **secondaryPartner**, **uboThroughControl**, **uboThroughOwnership** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -476,26 +379,9 @@ public TypeEnum getType() { } /** - * Defines the relationship of the legal entity to the current legal entity. Possible value for - * individuals: **legalRepresentative**. Possible values for organizations: **director**, - * **signatory**, **trustOwnership**, **uboThroughOwnership**, **uboThroughControl**, or - * **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. - * Possible value for trusts: **trust**. Possible values for trust members: - * **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, - * **uboThroughControl**, or **uboThroughOwnership**. Possible value for unincorporated - * partnership: **unincorporatedPartnership**. Possible values for unincorporated partnership - * members: **secondaryPartner**, **uboThroughControl**, **uboThroughOwnership** + * Defines the relationship of the legal entity to the current legal entity. Possible value for individuals: **legalRepresentative**. Possible values for organizations: **director**, **signatory**, **trustOwnership**, **uboThroughOwnership**, **uboThroughControl**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust**. Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**. Possible value for unincorporated partnership: **unincorporatedPartnership**. Possible values for unincorporated partnership members: **secondaryPartner**, **uboThroughControl**, **uboThroughOwnership** * - * @param type Defines the relationship of the legal entity to the current legal entity. Possible - * value for individuals: **legalRepresentative**. Possible values for organizations: - * **director**, **signatory**, **trustOwnership**, **uboThroughOwnership**, - * **uboThroughControl**, or **ultimateParentCompany**. Possible values for sole - * proprietorships: **soleProprietorship**. Possible value for trusts: **trust**. Possible - * values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, - * **settlor**, **uboThroughControl**, or **uboThroughOwnership**. Possible value for - * unincorporated partnership: **unincorporatedPartnership**. Possible values for - * unincorporated partnership members: **secondaryPartner**, **uboThroughControl**, - * **uboThroughOwnership** + * @param type Defines the relationship of the legal entity to the current legal entity. Possible value for individuals: **legalRepresentative**. Possible values for organizations: **director**, **signatory**, **trustOwnership**, **uboThroughOwnership**, **uboThroughControl**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust**. Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**. Possible value for unincorporated partnership: **unincorporatedPartnership**. Possible values for unincorporated partnership members: **secondaryPartner**, **uboThroughControl**, **uboThroughOwnership** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -503,7 +389,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this LegalEntityAssociation object is equal to o. */ + /** + * Return true if this LegalEntityAssociation object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -513,30 +401,20 @@ public boolean equals(Object o) { return false; } LegalEntityAssociation legalEntityAssociation = (LegalEntityAssociation) o; - return Objects.equals(this.associatorId, legalEntityAssociation.associatorId) - && Objects.equals(this.entityType, legalEntityAssociation.entityType) - && Objects.equals(this.jobTitle, legalEntityAssociation.jobTitle) - && Objects.equals(this.legalEntityId, legalEntityAssociation.legalEntityId) - && Objects.equals(this.name, legalEntityAssociation.name) - && Objects.equals(this.nominee, legalEntityAssociation.nominee) - && Objects.equals(this.relationship, legalEntityAssociation.relationship) - && Objects.equals( - this.settlorExemptionReason, legalEntityAssociation.settlorExemptionReason) - && Objects.equals(this.type, legalEntityAssociation.type); + return Objects.equals(this.associatorId, legalEntityAssociation.associatorId) && + Objects.equals(this.entityType, legalEntityAssociation.entityType) && + Objects.equals(this.jobTitle, legalEntityAssociation.jobTitle) && + Objects.equals(this.legalEntityId, legalEntityAssociation.legalEntityId) && + Objects.equals(this.name, legalEntityAssociation.name) && + Objects.equals(this.nominee, legalEntityAssociation.nominee) && + Objects.equals(this.relationship, legalEntityAssociation.relationship) && + Objects.equals(this.settlorExemptionReason, legalEntityAssociation.settlorExemptionReason) && + Objects.equals(this.type, legalEntityAssociation.type); } @Override public int hashCode() { - return Objects.hash( - associatorId, - entityType, - jobTitle, - legalEntityId, - name, - nominee, - relationship, - settlorExemptionReason, - type); + return Objects.hash(associatorId, entityType, jobTitle, legalEntityId, name, nominee, relationship, settlorExemptionReason, type); } @Override @@ -550,16 +428,15 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" nominee: ").append(toIndentedString(nominee)).append("\n"); sb.append(" relationship: ").append(toIndentedString(relationship)).append("\n"); - sb.append(" settlorExemptionReason: ") - .append(toIndentedString(settlorExemptionReason)) - .append("\n"); + sb.append(" settlorExemptionReason: ").append(toIndentedString(settlorExemptionReason)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -568,23 +445,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of LegalEntityAssociation given an JSON string * * @param jsonString JSON string * @return An instance of LegalEntityAssociation - * @throws JsonProcessingException if the JSON string is invalid with respect to - * LegalEntityAssociation + * @throws JsonProcessingException if the JSON string is invalid with respect to LegalEntityAssociation */ public static LegalEntityAssociation fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, LegalEntityAssociation.class); } - - /** - * Convert an instance of LegalEntityAssociation to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of LegalEntityAssociation to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityCapability.java b/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityCapability.java index 6df061ffb..c7f01a009 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityCapability.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityCapability.java @@ -2,27 +2,35 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.legalentitymanagement.CapabilitySettings; +import com.adyen.model.legalentitymanagement.SupportingEntityCapability; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** LegalEntityCapability */ +/** + * LegalEntityCapability + */ @JsonPropertyOrder({ LegalEntityCapability.JSON_PROPERTY_ALLOWED, LegalEntityCapability.JSON_PROPERTY_ALLOWED_LEVEL, @@ -33,15 +41,16 @@ LegalEntityCapability.JSON_PROPERTY_TRANSFER_INSTRUMENTS, LegalEntityCapability.JSON_PROPERTY_VERIFICATION_STATUS }) + public class LegalEntityCapability { public static final String JSON_PROPERTY_ALLOWED = "allowed"; private Boolean allowed; /** - * The capability level that is allowed for the legal entity. Possible values: **notApplicable**, - * **low**, **medium**, **high**. + * The capability level that is allowed for the legal entity. Possible values: **notApplicable**, **low**, **medium**, **high**. */ public enum AllowedLevelEnum { + HIGH(String.valueOf("high")), LOW(String.valueOf("low")), @@ -55,7 +64,7 @@ public enum AllowedLevelEnum { private String value; AllowedLevelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -76,11 +85,7 @@ public static AllowedLevelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AllowedLevelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AllowedLevelEnum.values())); + LOG.warning("AllowedLevelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AllowedLevelEnum.values())); return null; } } @@ -95,12 +100,10 @@ public static AllowedLevelEnum fromValue(String value) { private Boolean requested; /** - * The requested level of the capability. Some capabilities, such as those used in [card - * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different - * levels. Levels increase the capability, but also require additional checks and increased - * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. */ public enum RequestedLevelEnum { + HIGH(String.valueOf("high")), LOW(String.valueOf("low")), @@ -114,7 +117,7 @@ public enum RequestedLevelEnum { private String value; RequestedLevelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -135,11 +138,7 @@ public static RequestedLevelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "RequestedLevelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(RequestedLevelEnum.values())); + LOG.warning("RequestedLevelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RequestedLevelEnum.values())); return null; } } @@ -156,17 +155,18 @@ public static RequestedLevelEnum fromValue(String value) { public static final String JSON_PROPERTY_VERIFICATION_STATUS = "verificationStatus"; private String verificationStatus; - public LegalEntityCapability() {} + public LegalEntityCapability() { + } @JsonCreator public LegalEntityCapability( - @JsonProperty(JSON_PROPERTY_ALLOWED) Boolean allowed, - @JsonProperty(JSON_PROPERTY_ALLOWED_LEVEL) AllowedLevelEnum allowedLevel, - @JsonProperty(JSON_PROPERTY_REQUESTED) Boolean requested, - @JsonProperty(JSON_PROPERTY_REQUESTED_LEVEL) RequestedLevelEnum requestedLevel, - @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENTS) - List transferInstruments, - @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) String verificationStatus) { + @JsonProperty(JSON_PROPERTY_ALLOWED) Boolean allowed, + @JsonProperty(JSON_PROPERTY_ALLOWED_LEVEL) AllowedLevelEnum allowedLevel, + @JsonProperty(JSON_PROPERTY_REQUESTED) Boolean requested, + @JsonProperty(JSON_PROPERTY_REQUESTED_LEVEL) RequestedLevelEnum requestedLevel, + @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENTS) List transferInstruments, + @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) String verificationStatus + ) { this(); this.allowed = allowed; this.allowedLevel = allowedLevel; @@ -177,11 +177,8 @@ public LegalEntityCapability( } /** - * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is - * successful. - * - * @return allowed Indicates whether the capability is allowed. Adyen sets this to **true** if the - * verification is successful. + * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful. + * @return allowed Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful. */ @JsonProperty(JSON_PROPERTY_ALLOWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,12 +186,10 @@ public Boolean getAllowed() { return allowed; } + /** - * The capability level that is allowed for the legal entity. Possible values: **notApplicable**, - * **low**, **medium**, **high**. - * - * @return allowedLevel The capability level that is allowed for the legal entity. Possible - * values: **notApplicable**, **low**, **medium**, **high**. + * The capability level that is allowed for the legal entity. Possible values: **notApplicable**, **low**, **medium**, **high**. + * @return allowedLevel The capability level that is allowed for the legal entity. Possible values: **notApplicable**, **low**, **medium**, **high**. */ @JsonProperty(JSON_PROPERTY_ALLOWED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -202,10 +197,11 @@ public AllowedLevelEnum getAllowedLevel() { return allowedLevel; } + /** * allowedSettings * - * @param allowedSettings + * @param allowedSettings * @return the current {@code LegalEntityCapability} instance, allowing for method chaining */ public LegalEntityCapability allowedSettings(CapabilitySettings allowedSettings) { @@ -215,8 +211,7 @@ public LegalEntityCapability allowedSettings(CapabilitySettings allowedSettings) /** * Get allowedSettings - * - * @return allowedSettings + * @return allowedSettings */ @JsonProperty(JSON_PROPERTY_ALLOWED_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -227,7 +222,7 @@ public CapabilitySettings getAllowedSettings() { /** * allowedSettings * - * @param allowedSettings + * @param allowedSettings */ @JsonProperty(JSON_PROPERTY_ALLOWED_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -236,11 +231,8 @@ public void setAllowedSettings(CapabilitySettings allowedSettings) { } /** - * Indicates whether the capability is requested. To check whether the legal entity is permitted - * to use the capability, refer to the `allowed` field. - * - * @return requested Indicates whether the capability is requested. To check whether the legal - * entity is permitted to use the capability, refer to the `allowed` field. + * Indicates whether the capability is requested. To check whether the legal entity is permitted to use the capability, refer to the `allowed` field. + * @return requested Indicates whether the capability is requested. To check whether the legal entity is permitted to use the capability, refer to the `allowed` field. */ @JsonProperty(JSON_PROPERTY_REQUESTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -248,17 +240,10 @@ public Boolean getRequested() { return requested; } + /** - * The requested level of the capability. Some capabilities, such as those used in [card - * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different - * levels. Levels increase the capability, but also require additional checks and increased - * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. - * - * @return requestedLevel The requested level of the capability. Some capabilities, such as those - * used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), - * have different levels. Levels increase the capability, but also require additional checks - * and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, - * **high**. + * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * @return requestedLevel The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. */ @JsonProperty(JSON_PROPERTY_REQUESTED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -266,10 +251,11 @@ public RequestedLevelEnum getRequestedLevel() { return requestedLevel; } + /** * requestedSettings * - * @param requestedSettings + * @param requestedSettings * @return the current {@code LegalEntityCapability} instance, allowing for method chaining */ public LegalEntityCapability requestedSettings(CapabilitySettings requestedSettings) { @@ -279,8 +265,7 @@ public LegalEntityCapability requestedSettings(CapabilitySettings requestedSetti /** * Get requestedSettings - * - * @return requestedSettings + * @return requestedSettings */ @JsonProperty(JSON_PROPERTY_REQUESTED_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -291,7 +276,7 @@ public CapabilitySettings getRequestedSettings() { /** * requestedSettings * - * @param requestedSettings + * @param requestedSettings */ @JsonProperty(JSON_PROPERTY_REQUESTED_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -301,9 +286,7 @@ public void setRequestedSettings(CapabilitySettings requestedSettings) { /** * The capability status of transfer instruments associated with the legal entity. - * - * @return transferInstruments The capability status of transfer instruments associated with the - * legal entity. + * @return transferInstruments The capability status of transfer instruments associated with the legal entity. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -311,18 +294,10 @@ public List getTransferInstruments() { return transferInstruments; } + /** - * The status of the verification checks for the capability. Possible values: * **pending**: Adyen - * is running the verification. * **invalid**: The verification failed. Check if the - * `errors` array contains more information. * **valid**: The verification has been - * successfully completed. * **rejected**: Adyen has verified the information, but found reasons - * to not allow the capability. - * - * @return verificationStatus The status of the verification checks for the capability. Possible - * values: * **pending**: Adyen is running the verification. * **invalid**: The verification - * failed. Check if the `errors` array contains more information. * **valid**: The - * verification has been successfully completed. * **rejected**: Adyen has verified the - * information, but found reasons to not allow the capability. + * The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. + * @return verificationStatus The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -330,7 +305,10 @@ public String getVerificationStatus() { return verificationStatus; } - /** Return true if this LegalEntityCapability object is equal to o. */ + + /** + * Return true if this LegalEntityCapability object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -340,27 +318,19 @@ public boolean equals(Object o) { return false; } LegalEntityCapability legalEntityCapability = (LegalEntityCapability) o; - return Objects.equals(this.allowed, legalEntityCapability.allowed) - && Objects.equals(this.allowedLevel, legalEntityCapability.allowedLevel) - && Objects.equals(this.allowedSettings, legalEntityCapability.allowedSettings) - && Objects.equals(this.requested, legalEntityCapability.requested) - && Objects.equals(this.requestedLevel, legalEntityCapability.requestedLevel) - && Objects.equals(this.requestedSettings, legalEntityCapability.requestedSettings) - && Objects.equals(this.transferInstruments, legalEntityCapability.transferInstruments) - && Objects.equals(this.verificationStatus, legalEntityCapability.verificationStatus); + return Objects.equals(this.allowed, legalEntityCapability.allowed) && + Objects.equals(this.allowedLevel, legalEntityCapability.allowedLevel) && + Objects.equals(this.allowedSettings, legalEntityCapability.allowedSettings) && + Objects.equals(this.requested, legalEntityCapability.requested) && + Objects.equals(this.requestedLevel, legalEntityCapability.requestedLevel) && + Objects.equals(this.requestedSettings, legalEntityCapability.requestedSettings) && + Objects.equals(this.transferInstruments, legalEntityCapability.transferInstruments) && + Objects.equals(this.verificationStatus, legalEntityCapability.verificationStatus); } @Override public int hashCode() { - return Objects.hash( - allowed, - allowedLevel, - allowedSettings, - requested, - requestedLevel, - requestedSettings, - transferInstruments, - verificationStatus); + return Objects.hash(allowed, allowedLevel, allowedSettings, requested, requestedLevel, requestedSettings, transferInstruments, verificationStatus); } @Override @@ -373,16 +343,15 @@ public String toString() { sb.append(" requested: ").append(toIndentedString(requested)).append("\n"); sb.append(" requestedLevel: ").append(toIndentedString(requestedLevel)).append("\n"); sb.append(" requestedSettings: ").append(toIndentedString(requestedSettings)).append("\n"); - sb.append(" transferInstruments: ") - .append(toIndentedString(transferInstruments)) - .append("\n"); + sb.append(" transferInstruments: ").append(toIndentedString(transferInstruments)).append("\n"); sb.append(" verificationStatus: ").append(toIndentedString(verificationStatus)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -391,23 +360,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of LegalEntityCapability given an JSON string * * @param jsonString JSON string * @return An instance of LegalEntityCapability - * @throws JsonProcessingException if the JSON string is invalid with respect to - * LegalEntityCapability + * @throws JsonProcessingException if the JSON string is invalid with respect to LegalEntityCapability */ public static LegalEntityCapability fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, LegalEntityCapability.class); } - - /** - * Convert an instance of LegalEntityCapability to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of LegalEntityCapability to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityInfo.java b/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityInfo.java index c58e8e5c9..db3a817cd 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityInfo.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityInfo.java @@ -2,30 +2,42 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.legalentitymanagement.Individual; +import com.adyen.model.legalentitymanagement.LegalEntityAssociation; +import com.adyen.model.legalentitymanagement.LegalEntityCapability; +import com.adyen.model.legalentitymanagement.Organization; +import com.adyen.model.legalentitymanagement.SoleProprietorship; +import com.adyen.model.legalentitymanagement.Trust; +import com.adyen.model.legalentitymanagement.UnincorporatedPartnership; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** LegalEntityInfo */ +/** + * LegalEntityInfo + */ @JsonPropertyOrder({ LegalEntityInfo.JSON_PROPERTY_CAPABILITIES, LegalEntityInfo.JSON_PROPERTY_ENTITY_ASSOCIATIONS, @@ -38,6 +50,7 @@ LegalEntityInfo.JSON_PROPERTY_UNINCORPORATED_PARTNERSHIP, LegalEntityInfo.JSON_PROPERTY_VERIFICATION_PLAN }) + public class LegalEntityInfo { public static final String JSON_PROPERTY_CAPABILITIES = "capabilities"; private Map capabilities; @@ -61,10 +74,10 @@ public class LegalEntityInfo { private Trust trust; /** - * The type of legal entity. Possible values: **individual**, **organization**, - * **soleProprietorship**, or **trust**. + * The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. */ public enum TypeEnum { + INDIVIDUAL(String.valueOf("individual")), ORGANIZATION(String.valueOf("organization")), @@ -80,7 +93,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -101,11 +114,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -119,17 +128,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VERIFICATION_PLAN = "verificationPlan"; private String verificationPlan; - public LegalEntityInfo() {} + public LegalEntityInfo() { + } /** - * Contains key-value pairs that specify the actions that the legal entity can do in your - * platform.The key is a capability required for your integration. For example, **issueCard** for - * Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that the legal entity can - * do in your platform.The key is a capability required for your integration. For example, - * **issueCard** for Issuing. The value is an object containing the settings for the - * capability. + * @param capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. * @return the current {@code LegalEntityInfo} instance, allowing for method chaining */ public LegalEntityInfo capabilities(Map capabilities) { @@ -146,14 +151,8 @@ public LegalEntityInfo putCapabilitiesItem(String key, LegalEntityCapability cap } /** - * Contains key-value pairs that specify the actions that the legal entity can do in your - * platform.The key is a capability required for your integration. For example, **issueCard** for - * Issuing. The value is an object containing the settings for the capability. - * - * @return capabilities Contains key-value pairs that specify the actions that the legal entity - * can do in your platform.The key is a capability required for your integration. For example, - * **issueCard** for Issuing. The value is an object containing the settings for the - * capability. + * Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * @return capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -162,14 +161,9 @@ public Map getCapabilities() { } /** - * Contains key-value pairs that specify the actions that the legal entity can do in your - * platform.The key is a capability required for your integration. For example, **issueCard** for - * Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that the legal entity can - * do in your platform.The key is a capability required for your integration. For example, - * **issueCard** for Issuing. The value is an object containing the settings for the - * capability. + * @param capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,13 +172,9 @@ public void setCapabilities(Map capabilities) { } /** - * List of legal entities associated with the current legal entity. For example, ultimate - * beneficial owners associated with an organization through ownership or control, or as - * signatories. + * List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. * - * @param entityAssociations List of legal entities associated with the current legal entity. For - * example, ultimate beneficial owners associated with an organization through ownership or - * control, or as signatories. + * @param entityAssociations List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. * @return the current {@code LegalEntityInfo} instance, allowing for method chaining */ public LegalEntityInfo entityAssociations(List entityAssociations) { @@ -201,13 +191,8 @@ public LegalEntityInfo addEntityAssociationsItem(LegalEntityAssociation entityAs } /** - * List of legal entities associated with the current legal entity. For example, ultimate - * beneficial owners associated with an organization through ownership or control, or as - * signatories. - * - * @return entityAssociations List of legal entities associated with the current legal entity. For - * example, ultimate beneficial owners associated with an organization through ownership or - * control, or as signatories. + * List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. + * @return entityAssociations List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. */ @JsonProperty(JSON_PROPERTY_ENTITY_ASSOCIATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -216,13 +201,9 @@ public List getEntityAssociations() { } /** - * List of legal entities associated with the current legal entity. For example, ultimate - * beneficial owners associated with an organization through ownership or control, or as - * signatories. + * List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. * - * @param entityAssociations List of legal entities associated with the current legal entity. For - * example, ultimate beneficial owners associated with an organization through ownership or - * control, or as signatories. + * @param entityAssociations List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. */ @JsonProperty(JSON_PROPERTY_ENTITY_ASSOCIATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -233,7 +214,7 @@ public void setEntityAssociations(List entityAssociation /** * individual * - * @param individual + * @param individual * @return the current {@code LegalEntityInfo} instance, allowing for method chaining */ public LegalEntityInfo individual(Individual individual) { @@ -243,8 +224,7 @@ public LegalEntityInfo individual(Individual individual) { /** * Get individual - * - * @return individual + * @return individual */ @JsonProperty(JSON_PROPERTY_INDIVIDUAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -255,7 +235,7 @@ public Individual getIndividual() { /** * individual * - * @param individual + * @param individual */ @JsonProperty(JSON_PROPERTY_INDIVIDUAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -266,7 +246,7 @@ public void setIndividual(Individual individual) { /** * organization * - * @param organization + * @param organization * @return the current {@code LegalEntityInfo} instance, allowing for method chaining */ public LegalEntityInfo organization(Organization organization) { @@ -276,8 +256,7 @@ public LegalEntityInfo organization(Organization organization) { /** * Get organization - * - * @return organization + * @return organization */ @JsonProperty(JSON_PROPERTY_ORGANIZATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -288,7 +267,7 @@ public Organization getOrganization() { /** * organization * - * @param organization + * @param organization */ @JsonProperty(JSON_PROPERTY_ORGANIZATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -309,7 +288,6 @@ public LegalEntityInfo reference(String reference) { /** * Your reference for the legal entity, maximum 150 characters. - * * @return reference Your reference for the legal entity, maximum 150 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -332,7 +310,7 @@ public void setReference(String reference) { /** * soleProprietorship * - * @param soleProprietorship + * @param soleProprietorship * @return the current {@code LegalEntityInfo} instance, allowing for method chaining */ public LegalEntityInfo soleProprietorship(SoleProprietorship soleProprietorship) { @@ -342,8 +320,7 @@ public LegalEntityInfo soleProprietorship(SoleProprietorship soleProprietorship) /** * Get soleProprietorship - * - * @return soleProprietorship + * @return soleProprietorship */ @JsonProperty(JSON_PROPERTY_SOLE_PROPRIETORSHIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -354,7 +331,7 @@ public SoleProprietorship getSoleProprietorship() { /** * soleProprietorship * - * @param soleProprietorship + * @param soleProprietorship */ @JsonProperty(JSON_PROPERTY_SOLE_PROPRIETORSHIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -365,7 +342,7 @@ public void setSoleProprietorship(SoleProprietorship soleProprietorship) { /** * trust * - * @param trust + * @param trust * @return the current {@code LegalEntityInfo} instance, allowing for method chaining */ public LegalEntityInfo trust(Trust trust) { @@ -375,8 +352,7 @@ public LegalEntityInfo trust(Trust trust) { /** * Get trust - * - * @return trust + * @return trust */ @JsonProperty(JSON_PROPERTY_TRUST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -387,7 +363,7 @@ public Trust getTrust() { /** * trust * - * @param trust + * @param trust */ @JsonProperty(JSON_PROPERTY_TRUST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -396,11 +372,9 @@ public void setTrust(Trust trust) { } /** - * The type of legal entity. Possible values: **individual**, **organization**, - * **soleProprietorship**, or **trust**. + * The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. * - * @param type The type of legal entity. Possible values: **individual**, **organization**, - * **soleProprietorship**, or **trust**. + * @param type The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. * @return the current {@code LegalEntityInfo} instance, allowing for method chaining */ public LegalEntityInfo type(TypeEnum type) { @@ -409,11 +383,8 @@ public LegalEntityInfo type(TypeEnum type) { } /** - * The type of legal entity. Possible values: **individual**, **organization**, - * **soleProprietorship**, or **trust**. - * - * @return type The type of legal entity. Possible values: **individual**, **organization**, - * **soleProprietorship**, or **trust**. + * The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. + * @return type The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -422,11 +393,9 @@ public TypeEnum getType() { } /** - * The type of legal entity. Possible values: **individual**, **organization**, - * **soleProprietorship**, or **trust**. + * The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. * - * @param type The type of legal entity. Possible values: **individual**, **organization**, - * **soleProprietorship**, or **trust**. + * @param type The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -437,19 +406,17 @@ public void setType(TypeEnum type) { /** * unincorporatedPartnership * - * @param unincorporatedPartnership + * @param unincorporatedPartnership * @return the current {@code LegalEntityInfo} instance, allowing for method chaining */ - public LegalEntityInfo unincorporatedPartnership( - UnincorporatedPartnership unincorporatedPartnership) { + public LegalEntityInfo unincorporatedPartnership(UnincorporatedPartnership unincorporatedPartnership) { this.unincorporatedPartnership = unincorporatedPartnership; return this; } /** * Get unincorporatedPartnership - * - * @return unincorporatedPartnership + * @return unincorporatedPartnership */ @JsonProperty(JSON_PROPERTY_UNINCORPORATED_PARTNERSHIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -460,7 +427,7 @@ public UnincorporatedPartnership getUnincorporatedPartnership() { /** * unincorporatedPartnership * - * @param unincorporatedPartnership + * @param unincorporatedPartnership */ @JsonProperty(JSON_PROPERTY_UNINCORPORATED_PARTNERSHIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -469,13 +436,9 @@ public void setUnincorporatedPartnership(UnincorporatedPartnership unincorporate } /** - * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** - * for upfront verification for - * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). * - * @param verificationPlan A key-value pair that specifies the verification process for a legal - * entity. Set to **upfront** for upfront verification for - * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * @param verificationPlan A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). * @return the current {@code LegalEntityInfo} instance, allowing for method chaining */ public LegalEntityInfo verificationPlan(String verificationPlan) { @@ -484,13 +447,8 @@ public LegalEntityInfo verificationPlan(String verificationPlan) { } /** - * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** - * for upfront verification for - * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). - * - * @return verificationPlan A key-value pair that specifies the verification process for a legal - * entity. Set to **upfront** for upfront verification for - * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * @return verificationPlan A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). */ @JsonProperty(JSON_PROPERTY_VERIFICATION_PLAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -499,13 +457,9 @@ public String getVerificationPlan() { } /** - * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** - * for upfront verification for - * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). * - * @param verificationPlan A key-value pair that specifies the verification process for a legal - * entity. Set to **upfront** for upfront verification for - * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * @param verificationPlan A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). */ @JsonProperty(JSON_PROPERTY_VERIFICATION_PLAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -513,7 +467,9 @@ public void setVerificationPlan(String verificationPlan) { this.verificationPlan = verificationPlan; } - /** Return true if this LegalEntityInfo object is equal to o. */ + /** + * Return true if this LegalEntityInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -523,31 +479,21 @@ public boolean equals(Object o) { return false; } LegalEntityInfo legalEntityInfo = (LegalEntityInfo) o; - return Objects.equals(this.capabilities, legalEntityInfo.capabilities) - && Objects.equals(this.entityAssociations, legalEntityInfo.entityAssociations) - && Objects.equals(this.individual, legalEntityInfo.individual) - && Objects.equals(this.organization, legalEntityInfo.organization) - && Objects.equals(this.reference, legalEntityInfo.reference) - && Objects.equals(this.soleProprietorship, legalEntityInfo.soleProprietorship) - && Objects.equals(this.trust, legalEntityInfo.trust) - && Objects.equals(this.type, legalEntityInfo.type) - && Objects.equals(this.unincorporatedPartnership, legalEntityInfo.unincorporatedPartnership) - && Objects.equals(this.verificationPlan, legalEntityInfo.verificationPlan); + return Objects.equals(this.capabilities, legalEntityInfo.capabilities) && + Objects.equals(this.entityAssociations, legalEntityInfo.entityAssociations) && + Objects.equals(this.individual, legalEntityInfo.individual) && + Objects.equals(this.organization, legalEntityInfo.organization) && + Objects.equals(this.reference, legalEntityInfo.reference) && + Objects.equals(this.soleProprietorship, legalEntityInfo.soleProprietorship) && + Objects.equals(this.trust, legalEntityInfo.trust) && + Objects.equals(this.type, legalEntityInfo.type) && + Objects.equals(this.unincorporatedPartnership, legalEntityInfo.unincorporatedPartnership) && + Objects.equals(this.verificationPlan, legalEntityInfo.verificationPlan); } @Override public int hashCode() { - return Objects.hash( - capabilities, - entityAssociations, - individual, - organization, - reference, - soleProprietorship, - trust, - type, - unincorporatedPartnership, - verificationPlan); + return Objects.hash(capabilities, entityAssociations, individual, organization, reference, soleProprietorship, trust, type, unincorporatedPartnership, verificationPlan); } @Override @@ -562,16 +508,15 @@ public String toString() { sb.append(" soleProprietorship: ").append(toIndentedString(soleProprietorship)).append("\n"); sb.append(" trust: ").append(toIndentedString(trust)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" unincorporatedPartnership: ") - .append(toIndentedString(unincorporatedPartnership)) - .append("\n"); + sb.append(" unincorporatedPartnership: ").append(toIndentedString(unincorporatedPartnership)).append("\n"); sb.append(" verificationPlan: ").append(toIndentedString(verificationPlan)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -580,7 +525,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of LegalEntityInfo given an JSON string * * @param jsonString JSON string @@ -590,12 +535,11 @@ private String toIndentedString(Object o) { public static LegalEntityInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, LegalEntityInfo.class); } - - /** - * Convert an instance of LegalEntityInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of LegalEntityInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityInfoRequiredType.java b/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityInfoRequiredType.java index d0c58eb98..e8f210cfc 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityInfoRequiredType.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityInfoRequiredType.java @@ -2,30 +2,42 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.legalentitymanagement.Individual; +import com.adyen.model.legalentitymanagement.LegalEntityAssociation; +import com.adyen.model.legalentitymanagement.LegalEntityCapability; +import com.adyen.model.legalentitymanagement.Organization; +import com.adyen.model.legalentitymanagement.SoleProprietorship; +import com.adyen.model.legalentitymanagement.Trust; +import com.adyen.model.legalentitymanagement.UnincorporatedPartnership; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** LegalEntityInfoRequiredType */ +/** + * LegalEntityInfoRequiredType + */ @JsonPropertyOrder({ LegalEntityInfoRequiredType.JSON_PROPERTY_CAPABILITIES, LegalEntityInfoRequiredType.JSON_PROPERTY_ENTITY_ASSOCIATIONS, @@ -38,6 +50,7 @@ LegalEntityInfoRequiredType.JSON_PROPERTY_UNINCORPORATED_PARTNERSHIP, LegalEntityInfoRequiredType.JSON_PROPERTY_VERIFICATION_PLAN }) + public class LegalEntityInfoRequiredType { public static final String JSON_PROPERTY_CAPABILITIES = "capabilities"; private Map capabilities; @@ -61,10 +74,10 @@ public class LegalEntityInfoRequiredType { private Trust trust; /** - * The type of legal entity. Possible values: **individual**, **organization**, - * **soleProprietorship**, or **trust**. + * The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. */ public enum TypeEnum { + INDIVIDUAL(String.valueOf("individual")), ORGANIZATION(String.valueOf("organization")), @@ -80,7 +93,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -101,11 +114,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -119,17 +128,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VERIFICATION_PLAN = "verificationPlan"; private String verificationPlan; - public LegalEntityInfoRequiredType() {} + public LegalEntityInfoRequiredType() { + } /** - * Contains key-value pairs that specify the actions that the legal entity can do in your - * platform.The key is a capability required for your integration. For example, **issueCard** for - * Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that the legal entity can - * do in your platform.The key is a capability required for your integration. For example, - * **issueCard** for Issuing. The value is an object containing the settings for the - * capability. + * @param capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. * @return the current {@code LegalEntityInfoRequiredType} instance, allowing for method chaining */ public LegalEntityInfoRequiredType capabilities(Map capabilities) { @@ -137,8 +142,7 @@ public LegalEntityInfoRequiredType capabilities(Map(); } @@ -147,14 +151,8 @@ public LegalEntityInfoRequiredType putCapabilitiesItem( } /** - * Contains key-value pairs that specify the actions that the legal entity can do in your - * platform.The key is a capability required for your integration. For example, **issueCard** for - * Issuing. The value is an object containing the settings for the capability. - * - * @return capabilities Contains key-value pairs that specify the actions that the legal entity - * can do in your platform.The key is a capability required for your integration. For example, - * **issueCard** for Issuing. The value is an object containing the settings for the - * capability. + * Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * @return capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,14 +161,9 @@ public Map getCapabilities() { } /** - * Contains key-value pairs that specify the actions that the legal entity can do in your - * platform.The key is a capability required for your integration. For example, **issueCard** for - * Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that the legal entity can - * do in your platform.The key is a capability required for your integration. For example, - * **issueCard** for Issuing. The value is an object containing the settings for the - * capability. + * @param capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,23 +172,17 @@ public void setCapabilities(Map capabilities) { } /** - * List of legal entities associated with the current legal entity. For example, ultimate - * beneficial owners associated with an organization through ownership or control, or as - * signatories. + * List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. * - * @param entityAssociations List of legal entities associated with the current legal entity. For - * example, ultimate beneficial owners associated with an organization through ownership or - * control, or as signatories. + * @param entityAssociations List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. * @return the current {@code LegalEntityInfoRequiredType} instance, allowing for method chaining */ - public LegalEntityInfoRequiredType entityAssociations( - List entityAssociations) { + public LegalEntityInfoRequiredType entityAssociations(List entityAssociations) { this.entityAssociations = entityAssociations; return this; } - public LegalEntityInfoRequiredType addEntityAssociationsItem( - LegalEntityAssociation entityAssociationsItem) { + public LegalEntityInfoRequiredType addEntityAssociationsItem(LegalEntityAssociation entityAssociationsItem) { if (this.entityAssociations == null) { this.entityAssociations = new ArrayList<>(); } @@ -204,13 +191,8 @@ public LegalEntityInfoRequiredType addEntityAssociationsItem( } /** - * List of legal entities associated with the current legal entity. For example, ultimate - * beneficial owners associated with an organization through ownership or control, or as - * signatories. - * - * @return entityAssociations List of legal entities associated with the current legal entity. For - * example, ultimate beneficial owners associated with an organization through ownership or - * control, or as signatories. + * List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. + * @return entityAssociations List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. */ @JsonProperty(JSON_PROPERTY_ENTITY_ASSOCIATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,13 +201,9 @@ public List getEntityAssociations() { } /** - * List of legal entities associated with the current legal entity. For example, ultimate - * beneficial owners associated with an organization through ownership or control, or as - * signatories. + * List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. * - * @param entityAssociations List of legal entities associated with the current legal entity. For - * example, ultimate beneficial owners associated with an organization through ownership or - * control, or as signatories. + * @param entityAssociations List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. */ @JsonProperty(JSON_PROPERTY_ENTITY_ASSOCIATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -236,7 +214,7 @@ public void setEntityAssociations(List entityAssociation /** * individual * - * @param individual + * @param individual * @return the current {@code LegalEntityInfoRequiredType} instance, allowing for method chaining */ public LegalEntityInfoRequiredType individual(Individual individual) { @@ -246,8 +224,7 @@ public LegalEntityInfoRequiredType individual(Individual individual) { /** * Get individual - * - * @return individual + * @return individual */ @JsonProperty(JSON_PROPERTY_INDIVIDUAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -258,7 +235,7 @@ public Individual getIndividual() { /** * individual * - * @param individual + * @param individual */ @JsonProperty(JSON_PROPERTY_INDIVIDUAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -269,7 +246,7 @@ public void setIndividual(Individual individual) { /** * organization * - * @param organization + * @param organization * @return the current {@code LegalEntityInfoRequiredType} instance, allowing for method chaining */ public LegalEntityInfoRequiredType organization(Organization organization) { @@ -279,8 +256,7 @@ public LegalEntityInfoRequiredType organization(Organization organization) { /** * Get organization - * - * @return organization + * @return organization */ @JsonProperty(JSON_PROPERTY_ORGANIZATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -291,7 +267,7 @@ public Organization getOrganization() { /** * organization * - * @param organization + * @param organization */ @JsonProperty(JSON_PROPERTY_ORGANIZATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -312,7 +288,6 @@ public LegalEntityInfoRequiredType reference(String reference) { /** * Your reference for the legal entity, maximum 150 characters. - * * @return reference Your reference for the legal entity, maximum 150 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -335,7 +310,7 @@ public void setReference(String reference) { /** * soleProprietorship * - * @param soleProprietorship + * @param soleProprietorship * @return the current {@code LegalEntityInfoRequiredType} instance, allowing for method chaining */ public LegalEntityInfoRequiredType soleProprietorship(SoleProprietorship soleProprietorship) { @@ -345,8 +320,7 @@ public LegalEntityInfoRequiredType soleProprietorship(SoleProprietorship solePro /** * Get soleProprietorship - * - * @return soleProprietorship + * @return soleProprietorship */ @JsonProperty(JSON_PROPERTY_SOLE_PROPRIETORSHIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -357,7 +331,7 @@ public SoleProprietorship getSoleProprietorship() { /** * soleProprietorship * - * @param soleProprietorship + * @param soleProprietorship */ @JsonProperty(JSON_PROPERTY_SOLE_PROPRIETORSHIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -368,7 +342,7 @@ public void setSoleProprietorship(SoleProprietorship soleProprietorship) { /** * trust * - * @param trust + * @param trust * @return the current {@code LegalEntityInfoRequiredType} instance, allowing for method chaining */ public LegalEntityInfoRequiredType trust(Trust trust) { @@ -378,8 +352,7 @@ public LegalEntityInfoRequiredType trust(Trust trust) { /** * Get trust - * - * @return trust + * @return trust */ @JsonProperty(JSON_PROPERTY_TRUST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -390,7 +363,7 @@ public Trust getTrust() { /** * trust * - * @param trust + * @param trust */ @JsonProperty(JSON_PROPERTY_TRUST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -399,11 +372,9 @@ public void setTrust(Trust trust) { } /** - * The type of legal entity. Possible values: **individual**, **organization**, - * **soleProprietorship**, or **trust**. + * The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. * - * @param type The type of legal entity. Possible values: **individual**, **organization**, - * **soleProprietorship**, or **trust**. + * @param type The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. * @return the current {@code LegalEntityInfoRequiredType} instance, allowing for method chaining */ public LegalEntityInfoRequiredType type(TypeEnum type) { @@ -412,11 +383,8 @@ public LegalEntityInfoRequiredType type(TypeEnum type) { } /** - * The type of legal entity. Possible values: **individual**, **organization**, - * **soleProprietorship**, or **trust**. - * - * @return type The type of legal entity. Possible values: **individual**, **organization**, - * **soleProprietorship**, or **trust**. + * The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. + * @return type The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -425,11 +393,9 @@ public TypeEnum getType() { } /** - * The type of legal entity. Possible values: **individual**, **organization**, - * **soleProprietorship**, or **trust**. + * The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. * - * @param type The type of legal entity. Possible values: **individual**, **organization**, - * **soleProprietorship**, or **trust**. + * @param type The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -440,19 +406,17 @@ public void setType(TypeEnum type) { /** * unincorporatedPartnership * - * @param unincorporatedPartnership + * @param unincorporatedPartnership * @return the current {@code LegalEntityInfoRequiredType} instance, allowing for method chaining */ - public LegalEntityInfoRequiredType unincorporatedPartnership( - UnincorporatedPartnership unincorporatedPartnership) { + public LegalEntityInfoRequiredType unincorporatedPartnership(UnincorporatedPartnership unincorporatedPartnership) { this.unincorporatedPartnership = unincorporatedPartnership; return this; } /** * Get unincorporatedPartnership - * - * @return unincorporatedPartnership + * @return unincorporatedPartnership */ @JsonProperty(JSON_PROPERTY_UNINCORPORATED_PARTNERSHIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -463,7 +427,7 @@ public UnincorporatedPartnership getUnincorporatedPartnership() { /** * unincorporatedPartnership * - * @param unincorporatedPartnership + * @param unincorporatedPartnership */ @JsonProperty(JSON_PROPERTY_UNINCORPORATED_PARTNERSHIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -472,13 +436,9 @@ public void setUnincorporatedPartnership(UnincorporatedPartnership unincorporate } /** - * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** - * for upfront verification for - * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). * - * @param verificationPlan A key-value pair that specifies the verification process for a legal - * entity. Set to **upfront** for upfront verification for - * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * @param verificationPlan A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). * @return the current {@code LegalEntityInfoRequiredType} instance, allowing for method chaining */ public LegalEntityInfoRequiredType verificationPlan(String verificationPlan) { @@ -487,13 +447,8 @@ public LegalEntityInfoRequiredType verificationPlan(String verificationPlan) { } /** - * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** - * for upfront verification for - * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). - * - * @return verificationPlan A key-value pair that specifies the verification process for a legal - * entity. Set to **upfront** for upfront verification for - * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * @return verificationPlan A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). */ @JsonProperty(JSON_PROPERTY_VERIFICATION_PLAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -502,13 +457,9 @@ public String getVerificationPlan() { } /** - * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** - * for upfront verification for - * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). * - * @param verificationPlan A key-value pair that specifies the verification process for a legal - * entity. Set to **upfront** for upfront verification for - * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * @param verificationPlan A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). */ @JsonProperty(JSON_PROPERTY_VERIFICATION_PLAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -516,7 +467,9 @@ public void setVerificationPlan(String verificationPlan) { this.verificationPlan = verificationPlan; } - /** Return true if this LegalEntityInfoRequiredType object is equal to o. */ + /** + * Return true if this LegalEntityInfoRequiredType object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -526,32 +479,21 @@ public boolean equals(Object o) { return false; } LegalEntityInfoRequiredType legalEntityInfoRequiredType = (LegalEntityInfoRequiredType) o; - return Objects.equals(this.capabilities, legalEntityInfoRequiredType.capabilities) - && Objects.equals(this.entityAssociations, legalEntityInfoRequiredType.entityAssociations) - && Objects.equals(this.individual, legalEntityInfoRequiredType.individual) - && Objects.equals(this.organization, legalEntityInfoRequiredType.organization) - && Objects.equals(this.reference, legalEntityInfoRequiredType.reference) - && Objects.equals(this.soleProprietorship, legalEntityInfoRequiredType.soleProprietorship) - && Objects.equals(this.trust, legalEntityInfoRequiredType.trust) - && Objects.equals(this.type, legalEntityInfoRequiredType.type) - && Objects.equals( - this.unincorporatedPartnership, legalEntityInfoRequiredType.unincorporatedPartnership) - && Objects.equals(this.verificationPlan, legalEntityInfoRequiredType.verificationPlan); + return Objects.equals(this.capabilities, legalEntityInfoRequiredType.capabilities) && + Objects.equals(this.entityAssociations, legalEntityInfoRequiredType.entityAssociations) && + Objects.equals(this.individual, legalEntityInfoRequiredType.individual) && + Objects.equals(this.organization, legalEntityInfoRequiredType.organization) && + Objects.equals(this.reference, legalEntityInfoRequiredType.reference) && + Objects.equals(this.soleProprietorship, legalEntityInfoRequiredType.soleProprietorship) && + Objects.equals(this.trust, legalEntityInfoRequiredType.trust) && + Objects.equals(this.type, legalEntityInfoRequiredType.type) && + Objects.equals(this.unincorporatedPartnership, legalEntityInfoRequiredType.unincorporatedPartnership) && + Objects.equals(this.verificationPlan, legalEntityInfoRequiredType.verificationPlan); } @Override public int hashCode() { - return Objects.hash( - capabilities, - entityAssociations, - individual, - organization, - reference, - soleProprietorship, - trust, - type, - unincorporatedPartnership, - verificationPlan); + return Objects.hash(capabilities, entityAssociations, individual, organization, reference, soleProprietorship, trust, type, unincorporatedPartnership, verificationPlan); } @Override @@ -566,16 +508,15 @@ public String toString() { sb.append(" soleProprietorship: ").append(toIndentedString(soleProprietorship)).append("\n"); sb.append(" trust: ").append(toIndentedString(trust)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" unincorporatedPartnership: ") - .append(toIndentedString(unincorporatedPartnership)) - .append("\n"); + sb.append(" unincorporatedPartnership: ").append(toIndentedString(unincorporatedPartnership)).append("\n"); sb.append(" verificationPlan: ").append(toIndentedString(verificationPlan)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -584,24 +525,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of LegalEntityInfoRequiredType given an JSON string * * @param jsonString JSON string * @return An instance of LegalEntityInfoRequiredType - * @throws JsonProcessingException if the JSON string is invalid with respect to - * LegalEntityInfoRequiredType + * @throws JsonProcessingException if the JSON string is invalid with respect to LegalEntityInfoRequiredType */ - public static LegalEntityInfoRequiredType fromJson(String jsonString) - throws JsonProcessingException { + public static LegalEntityInfoRequiredType fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, LegalEntityInfoRequiredType.class); } - - /** - * Convert an instance of LegalEntityInfoRequiredType to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of LegalEntityInfoRequiredType to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/NOLocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/NOLocalAccountIdentification.java index 2e8c865c8..a6f040b24 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/NOLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/NOLocalAccountIdentification.java @@ -2,36 +2,45 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** NOLocalAccountIdentification */ + +/** + * NOLocalAccountIdentification + */ @JsonPropertyOrder({ NOLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, NOLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class NOLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - /** **noLocal** */ + /** + * **noLocal** + */ public enum TypeEnum { + NOLOCAL(String.valueOf("noLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -39,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -72,7 +77,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public NOLocalAccountIdentification() {} + public NOLocalAccountIdentification() { + } /** * The 11-digit bank account number, without separators or whitespace. @@ -87,7 +93,6 @@ public NOLocalAccountIdentification accountNumber(String accountNumber) { /** * The 11-digit bank account number, without separators or whitespace. - * * @return accountNumber The 11-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -120,7 +125,6 @@ public NOLocalAccountIdentification type(TypeEnum type) { /** * **noLocal** - * * @return type **noLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -140,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this NOLocalAccountIdentification object is equal to o. */ + /** + * Return true if this NOLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -150,8 +156,8 @@ public boolean equals(Object o) { return false; } NOLocalAccountIdentification noLocalAccountIdentification = (NOLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, noLocalAccountIdentification.accountNumber) - && Objects.equals(this.type, noLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, noLocalAccountIdentification.accountNumber) && + Objects.equals(this.type, noLocalAccountIdentification.type); } @Override @@ -170,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -179,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of NOLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of NOLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * NOLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to NOLocalAccountIdentification */ - public static NOLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static NOLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NOLocalAccountIdentification.class); } - - /** - * Convert an instance of NOLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of NOLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/NZLocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/NZLocalAccountIdentification.java index 7e8c6ea1c..fde7163eb 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/NZLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/NZLocalAccountIdentification.java @@ -2,36 +2,45 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** NZLocalAccountIdentification */ + +/** + * NZLocalAccountIdentification + */ @JsonPropertyOrder({ NZLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, NZLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class NZLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - /** **nzLocal** */ + /** + * **nzLocal** + */ public enum TypeEnum { + NZLOCAL(String.valueOf("nzLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -39,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -72,16 +77,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public NZLocalAccountIdentification() {} + public NZLocalAccountIdentification() { + } /** - * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits - * are the branch number, the next 7 digits are the account number, and the final 2-3 digits are - * the suffix. + * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. * - * @param accountNumber The 15-16 digit bank account number. The first 2 digits are the bank - * number, the next 4 digits are the branch number, the next 7 digits are the account number, - * and the final 2-3 digits are the suffix. + * @param accountNumber The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. * @return the current {@code NZLocalAccountIdentification} instance, allowing for method chaining */ public NZLocalAccountIdentification accountNumber(String accountNumber) { @@ -90,13 +92,8 @@ public NZLocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits - * are the branch number, the next 7 digits are the account number, and the final 2-3 digits are - * the suffix. - * - * @return accountNumber The 15-16 digit bank account number. The first 2 digits are the bank - * number, the next 4 digits are the branch number, the next 7 digits are the account number, - * and the final 2-3 digits are the suffix. + * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. + * @return accountNumber The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,13 +102,9 @@ public String getAccountNumber() { } /** - * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits - * are the branch number, the next 7 digits are the account number, and the final 2-3 digits are - * the suffix. + * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. * - * @param accountNumber The 15-16 digit bank account number. The first 2 digits are the bank - * number, the next 4 digits are the branch number, the next 7 digits are the account number, - * and the final 2-3 digits are the suffix. + * @param accountNumber The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,7 +125,6 @@ public NZLocalAccountIdentification type(TypeEnum type) { /** * **nzLocal** - * * @return type **nzLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -152,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this NZLocalAccountIdentification object is equal to o. */ + /** + * Return true if this NZLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -162,8 +156,8 @@ public boolean equals(Object o) { return false; } NZLocalAccountIdentification nzLocalAccountIdentification = (NZLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, nzLocalAccountIdentification.accountNumber) - && Objects.equals(this.type, nzLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, nzLocalAccountIdentification.accountNumber) && + Objects.equals(this.type, nzLocalAccountIdentification.type); } @Override @@ -182,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -191,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of NZLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of NZLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * NZLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to NZLocalAccountIdentification */ - public static NZLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static NZLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NZLocalAccountIdentification.class); } - - /** - * Convert an instance of NZLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of NZLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/Name.java b/src/main/java/com/adyen/model/legalentitymanagement/Name.java index e2a0f9175..46af315a7 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/Name.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/Name.java @@ -2,27 +2,37 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Name */ + +/** + * Name + */ @JsonPropertyOrder({ Name.JSON_PROPERTY_FIRST_NAME, Name.JSON_PROPERTY_INFIX, Name.JSON_PROPERTY_LAST_NAME }) + public class Name { public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; private String firstName; @@ -33,7 +43,8 @@ public class Name { public static final String JSON_PROPERTY_LAST_NAME = "lastName"; private String lastName; - public Name() {} + public Name() { + } /** * The individual's first name. Must not be blank. @@ -48,7 +59,6 @@ public Name firstName(String firstName) { /** * The individual's first name. Must not be blank. - * * @return firstName The individual's first name. Must not be blank. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @@ -81,7 +91,6 @@ public Name infix(String infix) { /** * The infix in the individual's name, if any. - * * @return infix The infix in the individual's name, if any. */ @JsonProperty(JSON_PROPERTY_INFIX) @@ -114,7 +123,6 @@ public Name lastName(String lastName) { /** * The individual's last name. Must not be blank. - * * @return lastName The individual's last name. Must not be blank. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @@ -134,7 +142,9 @@ public void setLastName(String lastName) { this.lastName = lastName; } - /** Return true if this Name object is equal to o. */ + /** + * Return true if this Name object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,9 +154,9 @@ public boolean equals(Object o) { return false; } Name name = (Name) o; - return Objects.equals(this.firstName, name.firstName) - && Objects.equals(this.infix, name.infix) - && Objects.equals(this.lastName, name.lastName); + return Objects.equals(this.firstName, name.firstName) && + Objects.equals(this.infix, name.infix) && + Objects.equals(this.lastName, name.lastName); } @Override @@ -166,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Name given an JSON string * * @param jsonString JSON string @@ -185,12 +196,11 @@ private String toIndentedString(Object o) { public static Name fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Name.class); } - - /** - * Convert an instance of Name to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Name to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/NumberAndBicAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/NumberAndBicAccountIdentification.java index 76ce81b25..ec3903d27 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/NumberAndBicAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/NumberAndBicAccountIdentification.java @@ -2,45 +2,54 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.legalentitymanagement.AdditionalBankIdentification; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** NumberAndBicAccountIdentification */ + +/** + * NumberAndBicAccountIdentification + */ @JsonPropertyOrder({ NumberAndBicAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, NumberAndBicAccountIdentification.JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION, NumberAndBicAccountIdentification.JSON_PROPERTY_BIC, NumberAndBicAccountIdentification.JSON_PROPERTY_TYPE }) + public class NumberAndBicAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - public static final String JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION = - "additionalBankIdentification"; + public static final String JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION = "additionalBankIdentification"; private AdditionalBankIdentification additionalBankIdentification; public static final String JSON_PROPERTY_BIC = "bic"; private String bic; - /** **numberAndBic** */ + /** + * **numberAndBic** + */ public enum TypeEnum { + NUMBERANDBIC(String.valueOf("numberAndBic")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +57,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,11 +78,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -81,16 +86,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public NumberAndBicAccountIdentification() {} + public NumberAndBicAccountIdentification() { + } /** - * The bank account number, without separators or whitespace. The length and format depends on the - * bank or country. + * The bank account number, without separators or whitespace. The length and format depends on the bank or country. * - * @param accountNumber The bank account number, without separators or whitespace. The length and - * format depends on the bank or country. - * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method - * chaining + * @param accountNumber The bank account number, without separators or whitespace. The length and format depends on the bank or country. + * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method chaining */ public NumberAndBicAccountIdentification accountNumber(String accountNumber) { this.accountNumber = accountNumber; @@ -98,11 +101,8 @@ public NumberAndBicAccountIdentification accountNumber(String accountNumber) { } /** - * The bank account number, without separators or whitespace. The length and format depends on the - * bank or country. - * - * @return accountNumber The bank account number, without separators or whitespace. The length and - * format depends on the bank or country. + * The bank account number, without separators or whitespace. The length and format depends on the bank or country. + * @return accountNumber The bank account number, without separators or whitespace. The length and format depends on the bank or country. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,11 +111,9 @@ public String getAccountNumber() { } /** - * The bank account number, without separators or whitespace. The length and format depends on the - * bank or country. + * The bank account number, without separators or whitespace. The length and format depends on the bank or country. * - * @param accountNumber The bank account number, without separators or whitespace. The length and - * format depends on the bank or country. + * @param accountNumber The bank account number, without separators or whitespace. The length and format depends on the bank or country. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,20 +124,17 @@ public void setAccountNumber(String accountNumber) { /** * additionalBankIdentification * - * @param additionalBankIdentification - * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method - * chaining + * @param additionalBankIdentification + * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method chaining */ - public NumberAndBicAccountIdentification additionalBankIdentification( - AdditionalBankIdentification additionalBankIdentification) { + public NumberAndBicAccountIdentification additionalBankIdentification(AdditionalBankIdentification additionalBankIdentification) { this.additionalBankIdentification = additionalBankIdentification; return this; } /** * Get additionalBankIdentification - * - * @return additionalBankIdentification + * @return additionalBankIdentification */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,12 +145,11 @@ public AdditionalBankIdentification getAdditionalBankIdentification() { /** * additionalBankIdentification * - * @param additionalBankIdentification + * @param additionalBankIdentification */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAdditionalBankIdentification( - AdditionalBankIdentification additionalBankIdentification) { + public void setAdditionalBankIdentification(AdditionalBankIdentification additionalBankIdentification) { this.additionalBankIdentification = additionalBankIdentification; } @@ -163,8 +157,7 @@ public void setAdditionalBankIdentification( * The bank's 8- or 11-character BIC or SWIFT code. * * @param bic The bank's 8- or 11-character BIC or SWIFT code. - * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method - * chaining + * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method chaining */ public NumberAndBicAccountIdentification bic(String bic) { this.bic = bic; @@ -173,7 +166,6 @@ public NumberAndBicAccountIdentification bic(String bic) { /** * The bank's 8- or 11-character BIC or SWIFT code. - * * @return bic The bank's 8- or 11-character BIC or SWIFT code. */ @JsonProperty(JSON_PROPERTY_BIC) @@ -197,8 +189,7 @@ public void setBic(String bic) { * **numberAndBic** * * @param type **numberAndBic** - * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method - * chaining + * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method chaining */ public NumberAndBicAccountIdentification type(TypeEnum type) { this.type = type; @@ -207,7 +198,6 @@ public NumberAndBicAccountIdentification type(TypeEnum type) { /** * **numberAndBic** - * * @return type **numberAndBic** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -227,7 +217,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this NumberAndBicAccountIdentification object is equal to o. */ + /** + * Return true if this NumberAndBicAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -236,14 +228,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - NumberAndBicAccountIdentification numberAndBicAccountIdentification = - (NumberAndBicAccountIdentification) o; - return Objects.equals(this.accountNumber, numberAndBicAccountIdentification.accountNumber) - && Objects.equals( - this.additionalBankIdentification, - numberAndBicAccountIdentification.additionalBankIdentification) - && Objects.equals(this.bic, numberAndBicAccountIdentification.bic) - && Objects.equals(this.type, numberAndBicAccountIdentification.type); + NumberAndBicAccountIdentification numberAndBicAccountIdentification = (NumberAndBicAccountIdentification) o; + return Objects.equals(this.accountNumber, numberAndBicAccountIdentification.accountNumber) && + Objects.equals(this.additionalBankIdentification, numberAndBicAccountIdentification.additionalBankIdentification) && + Objects.equals(this.bic, numberAndBicAccountIdentification.bic) && + Objects.equals(this.type, numberAndBicAccountIdentification.type); } @Override @@ -256,9 +245,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NumberAndBicAccountIdentification {\n"); sb.append(" accountNumber: ").append(toIndentedString(accountNumber)).append("\n"); - sb.append(" additionalBankIdentification: ") - .append(toIndentedString(additionalBankIdentification)) - .append("\n"); + sb.append(" additionalBankIdentification: ").append(toIndentedString(additionalBankIdentification)).append("\n"); sb.append(" bic: ").append(toIndentedString(bic)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -266,7 +253,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -275,24 +263,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of NumberAndBicAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of NumberAndBicAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * NumberAndBicAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to NumberAndBicAccountIdentification */ - public static NumberAndBicAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static NumberAndBicAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NumberAndBicAccountIdentification.class); } - - /** - * Convert an instance of NumberAndBicAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of NumberAndBicAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLink.java b/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLink.java index f76f4bb76..86e0a3f64 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLink.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLink.java @@ -2,36 +2,46 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** OnboardingLink */ -@JsonPropertyOrder({OnboardingLink.JSON_PROPERTY_URL}) + +/** + * OnboardingLink + */ +@JsonPropertyOrder({ + OnboardingLink.JSON_PROPERTY_URL +}) + public class OnboardingLink { public static final String JSON_PROPERTY_URL = "url"; private String url; - public OnboardingLink() {} + public OnboardingLink() { + } /** - * The URL of the hosted onboarding page where you need to redirect your user. This URL expires - * after 4 minutes and can only be used once. If the link expires, you need to create a new link. + * The URL of the hosted onboarding page where you need to redirect your user. This URL: - Expires after 4 minutes. - Can only be used once. - Can only be clicked once by the user. If the link expires, you need to create a new link. * - * @param url The URL of the hosted onboarding page where you need to redirect your user. This URL - * expires after 4 minutes and can only be used once. If the link expires, you need to create - * a new link. + * @param url The URL of the hosted onboarding page where you need to redirect your user. This URL: - Expires after 4 minutes. - Can only be used once. - Can only be clicked once by the user. If the link expires, you need to create a new link. * @return the current {@code OnboardingLink} instance, allowing for method chaining */ public OnboardingLink url(String url) { @@ -40,12 +50,8 @@ public OnboardingLink url(String url) { } /** - * The URL of the hosted onboarding page where you need to redirect your user. This URL expires - * after 4 minutes and can only be used once. If the link expires, you need to create a new link. - * - * @return url The URL of the hosted onboarding page where you need to redirect your user. This - * URL expires after 4 minutes and can only be used once. If the link expires, you need to - * create a new link. + * The URL of the hosted onboarding page where you need to redirect your user. This URL: - Expires after 4 minutes. - Can only be used once. - Can only be clicked once by the user. If the link expires, you need to create a new link. + * @return url The URL of the hosted onboarding page where you need to redirect your user. This URL: - Expires after 4 minutes. - Can only be used once. - Can only be clicked once by the user. If the link expires, you need to create a new link. */ @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -54,12 +60,9 @@ public String getUrl() { } /** - * The URL of the hosted onboarding page where you need to redirect your user. This URL expires - * after 4 minutes and can only be used once. If the link expires, you need to create a new link. + * The URL of the hosted onboarding page where you need to redirect your user. This URL: - Expires after 4 minutes. - Can only be used once. - Can only be clicked once by the user. If the link expires, you need to create a new link. * - * @param url The URL of the hosted onboarding page where you need to redirect your user. This URL - * expires after 4 minutes and can only be used once. If the link expires, you need to create - * a new link. + * @param url The URL of the hosted onboarding page where you need to redirect your user. This URL: - Expires after 4 minutes. - Can only be used once. - Can only be clicked once by the user. If the link expires, you need to create a new link. */ @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -67,7 +70,9 @@ public void setUrl(String url) { this.url = url; } - /** Return true if this OnboardingLink object is equal to o. */ + /** + * Return true if this OnboardingLink object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -95,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -104,7 +110,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of OnboardingLink given an JSON string * * @param jsonString JSON string @@ -114,12 +120,11 @@ private String toIndentedString(Object o) { public static OnboardingLink fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, OnboardingLink.class); } - - /** - * Convert an instance of OnboardingLink to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of OnboardingLink to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLinkInfo.java b/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLinkInfo.java index d20610c0e..461853567 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLinkInfo.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLinkInfo.java @@ -2,28 +2,39 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.legalentitymanagement.OnboardingLinkSettings; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** OnboardingLinkInfo */ + +/** + * OnboardingLinkInfo + */ @JsonPropertyOrder({ OnboardingLinkInfo.JSON_PROPERTY_LOCALE, OnboardingLinkInfo.JSON_PROPERTY_REDIRECT_URL, OnboardingLinkInfo.JSON_PROPERTY_SETTINGS, OnboardingLinkInfo.JSON_PROPERTY_THEME_ID }) + public class OnboardingLinkInfo { public static final String JSON_PROPERTY_LOCALE = "locale"; private String locale; @@ -37,27 +48,13 @@ public class OnboardingLinkInfo { public static final String JSON_PROPERTY_THEME_ID = "themeId"; private String themeId; - public OnboardingLinkInfo() {} + public OnboardingLinkInfo() { + } /** - * The language that will be used for the page, specified by a combination of two letter [ISO - * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language and [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. See possible - * valuesfor - * [marketplaces](https://docs.adyen.com/marketplaces/onboard-users/hosted#supported-languages) or - * [platforms](https://docs.adyen.com/platforms/onboard-users/hosted#supported-languages). If not - * specified in the request or if the language is not supported, the page uses the browser - * language. If the browser language is not supported, the page uses **en-US** by default. + * The language that will be used for the page, specified by a combination of two letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language and [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. See possible valuesfor [marketplaces](https://docs.adyen.com/marketplaces/onboard-users/hosted#supported-languages) or [platforms](https://docs.adyen.com/platforms/onboard-users/hosted#supported-languages). If not specified in the request or if the language is not supported, the page uses the browser language. If the browser language is not supported, the page uses **en-US** by default. * - * @param locale The language that will be used for the page, specified by a combination of two - * letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language and [ISO - * 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. See - * possible valuesfor - * [marketplaces](https://docs.adyen.com/marketplaces/onboard-users/hosted#supported-languages) - * or [platforms](https://docs.adyen.com/platforms/onboard-users/hosted#supported-languages). - * If not specified in the request or if the language is not supported, the page uses the - * browser language. If the browser language is not supported, the page uses **en-US** by - * default. + * @param locale The language that will be used for the page, specified by a combination of two letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language and [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. See possible valuesfor [marketplaces](https://docs.adyen.com/marketplaces/onboard-users/hosted#supported-languages) or [platforms](https://docs.adyen.com/platforms/onboard-users/hosted#supported-languages). If not specified in the request or if the language is not supported, the page uses the browser language. If the browser language is not supported, the page uses **en-US** by default. * @return the current {@code OnboardingLinkInfo} instance, allowing for method chaining */ public OnboardingLinkInfo locale(String locale) { @@ -66,24 +63,8 @@ public OnboardingLinkInfo locale(String locale) { } /** - * The language that will be used for the page, specified by a combination of two letter [ISO - * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language and [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. See possible - * valuesfor - * [marketplaces](https://docs.adyen.com/marketplaces/onboard-users/hosted#supported-languages) or - * [platforms](https://docs.adyen.com/platforms/onboard-users/hosted#supported-languages). If not - * specified in the request or if the language is not supported, the page uses the browser - * language. If the browser language is not supported, the page uses **en-US** by default. - * - * @return locale The language that will be used for the page, specified by a combination of two - * letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language and [ISO - * 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. See - * possible valuesfor - * [marketplaces](https://docs.adyen.com/marketplaces/onboard-users/hosted#supported-languages) - * or [platforms](https://docs.adyen.com/platforms/onboard-users/hosted#supported-languages). - * If not specified in the request or if the language is not supported, the page uses the - * browser language. If the browser language is not supported, the page uses **en-US** by - * default. + * The language that will be used for the page, specified by a combination of two letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language and [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. See possible valuesfor [marketplaces](https://docs.adyen.com/marketplaces/onboard-users/hosted#supported-languages) or [platforms](https://docs.adyen.com/platforms/onboard-users/hosted#supported-languages). If not specified in the request or if the language is not supported, the page uses the browser language. If the browser language is not supported, the page uses **en-US** by default. + * @return locale The language that will be used for the page, specified by a combination of two letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language and [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. See possible valuesfor [marketplaces](https://docs.adyen.com/marketplaces/onboard-users/hosted#supported-languages) or [platforms](https://docs.adyen.com/platforms/onboard-users/hosted#supported-languages). If not specified in the request or if the language is not supported, the page uses the browser language. If the browser language is not supported, the page uses **en-US** by default. */ @JsonProperty(JSON_PROPERTY_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -92,24 +73,9 @@ public String getLocale() { } /** - * The language that will be used for the page, specified by a combination of two letter [ISO - * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language and [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. See possible - * valuesfor - * [marketplaces](https://docs.adyen.com/marketplaces/onboard-users/hosted#supported-languages) or - * [platforms](https://docs.adyen.com/platforms/onboard-users/hosted#supported-languages). If not - * specified in the request or if the language is not supported, the page uses the browser - * language. If the browser language is not supported, the page uses **en-US** by default. + * The language that will be used for the page, specified by a combination of two letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language and [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. See possible valuesfor [marketplaces](https://docs.adyen.com/marketplaces/onboard-users/hosted#supported-languages) or [platforms](https://docs.adyen.com/platforms/onboard-users/hosted#supported-languages). If not specified in the request or if the language is not supported, the page uses the browser language. If the browser language is not supported, the page uses **en-US** by default. * - * @param locale The language that will be used for the page, specified by a combination of two - * letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language and [ISO - * 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. See - * possible valuesfor - * [marketplaces](https://docs.adyen.com/marketplaces/onboard-users/hosted#supported-languages) - * or [platforms](https://docs.adyen.com/platforms/onboard-users/hosted#supported-languages). - * If not specified in the request or if the language is not supported, the page uses the - * browser language. If the browser language is not supported, the page uses **en-US** by - * default. + * @param locale The language that will be used for the page, specified by a combination of two letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language and [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. See possible valuesfor [marketplaces](https://docs.adyen.com/marketplaces/onboard-users/hosted#supported-languages) or [platforms](https://docs.adyen.com/platforms/onboard-users/hosted#supported-languages). If not specified in the request or if the language is not supported, the page uses the browser language. If the browser language is not supported, the page uses **en-US** by default. */ @JsonProperty(JSON_PROPERTY_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -130,7 +96,6 @@ public OnboardingLinkInfo redirectUrl(String redirectUrl) { /** * The URL where the user is redirected after they complete hosted onboarding. - * * @return redirectUrl The URL where the user is redirected after they complete hosted onboarding. */ @JsonProperty(JSON_PROPERTY_REDIRECT_URL) @@ -153,7 +118,7 @@ public void setRedirectUrl(String redirectUrl) { /** * settings * - * @param settings + * @param settings * @return the current {@code OnboardingLinkInfo} instance, allowing for method chaining */ public OnboardingLinkInfo settings(OnboardingLinkSettings settings) { @@ -163,8 +128,7 @@ public OnboardingLinkInfo settings(OnboardingLinkSettings settings) { /** * Get settings - * - * @return settings + * @return settings */ @JsonProperty(JSON_PROPERTY_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -175,7 +139,7 @@ public OnboardingLinkSettings getSettings() { /** * settings * - * @param settings + * @param settings */ @JsonProperty(JSON_PROPERTY_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -196,7 +160,6 @@ public OnboardingLinkInfo themeId(String themeId) { /** * The unique identifier of the hosted onboarding theme. - * * @return themeId The unique identifier of the hosted onboarding theme. */ @JsonProperty(JSON_PROPERTY_THEME_ID) @@ -216,7 +179,9 @@ public void setThemeId(String themeId) { this.themeId = themeId; } - /** Return true if this OnboardingLinkInfo object is equal to o. */ + /** + * Return true if this OnboardingLinkInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -226,10 +191,10 @@ public boolean equals(Object o) { return false; } OnboardingLinkInfo onboardingLinkInfo = (OnboardingLinkInfo) o; - return Objects.equals(this.locale, onboardingLinkInfo.locale) - && Objects.equals(this.redirectUrl, onboardingLinkInfo.redirectUrl) - && Objects.equals(this.settings, onboardingLinkInfo.settings) - && Objects.equals(this.themeId, onboardingLinkInfo.themeId); + return Objects.equals(this.locale, onboardingLinkInfo.locale) && + Objects.equals(this.redirectUrl, onboardingLinkInfo.redirectUrl) && + Objects.equals(this.settings, onboardingLinkInfo.settings) && + Objects.equals(this.themeId, onboardingLinkInfo.themeId); } @Override @@ -250,7 +215,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -259,23 +225,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of OnboardingLinkInfo given an JSON string * * @param jsonString JSON string * @return An instance of OnboardingLinkInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * OnboardingLinkInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to OnboardingLinkInfo */ public static OnboardingLinkInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, OnboardingLinkInfo.class); } - - /** - * Convert an instance of OnboardingLinkInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of OnboardingLinkInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLinkSettings.java b/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLinkSettings.java index c84792882..2069f9f1d 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLinkSettings.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLinkSettings.java @@ -2,24 +2,33 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** OnboardingLinkSettings */ +/** + * OnboardingLinkSettings + */ @JsonPropertyOrder({ OnboardingLinkSettings.JSON_PROPERTY_ACCEPTED_COUNTRIES, OnboardingLinkSettings.JSON_PROPERTY_ALLOW_BANK_ACCOUNT_FORMAT_SELECTION, @@ -39,19 +48,18 @@ OnboardingLinkSettings.JSON_PROPERTY_REQUIRE_PCI_SIGN_POS_MOTO, OnboardingLinkSettings.JSON_PROPERTY_TRANSFER_INSTRUMENT_LIMIT }) + public class OnboardingLinkSettings { public static final String JSON_PROPERTY_ACCEPTED_COUNTRIES = "acceptedCountries"; private List acceptedCountries; - public static final String JSON_PROPERTY_ALLOW_BANK_ACCOUNT_FORMAT_SELECTION = - "allowBankAccountFormatSelection"; + public static final String JSON_PROPERTY_ALLOW_BANK_ACCOUNT_FORMAT_SELECTION = "allowBankAccountFormatSelection"; private Boolean allowBankAccountFormatSelection; public static final String JSON_PROPERTY_ALLOW_DEBUG_UI = "allowDebugUi"; private Boolean allowDebugUi; - public static final String JSON_PROPERTY_ALLOW_INTRA_REGION_CROSS_BORDER_PAYOUT = - "allowIntraRegionCrossBorderPayout"; + public static final String JSON_PROPERTY_ALLOW_INTRA_REGION_CROSS_BORDER_PAYOUT = "allowIntraRegionCrossBorderPayout"; private Boolean allowIntraRegionCrossBorderPayout; public static final String JSON_PROPERTY_CHANGE_LEGAL_ENTITY_TYPE = "changeLegalEntityType"; @@ -63,20 +71,16 @@ public class OnboardingLinkSettings { public static final String JSON_PROPERTY_ENFORCE_LEGAL_AGE = "enforceLegalAge"; private Boolean enforceLegalAge; - public static final String JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_INDIVIDUAL = - "hideOnboardingIntroductionIndividual"; + public static final String JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_INDIVIDUAL = "hideOnboardingIntroductionIndividual"; private Boolean hideOnboardingIntroductionIndividual; - public static final String JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_ORGANIZATION = - "hideOnboardingIntroductionOrganization"; + public static final String JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_ORGANIZATION = "hideOnboardingIntroductionOrganization"; private Boolean hideOnboardingIntroductionOrganization; - public static final String JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_SOLE_PROPRIETOR = - "hideOnboardingIntroductionSoleProprietor"; + public static final String JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_SOLE_PROPRIETOR = "hideOnboardingIntroductionSoleProprietor"; private Boolean hideOnboardingIntroductionSoleProprietor; - public static final String JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_TRUST = - "hideOnboardingIntroductionTrust"; + public static final String JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_TRUST = "hideOnboardingIntroductionTrust"; private Boolean hideOnboardingIntroductionTrust; public static final String JSON_PROPERTY_INSTANT_BANK_VERIFICATION = "instantBankVerification"; @@ -97,20 +101,13 @@ public class OnboardingLinkSettings { public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_LIMIT = "transferInstrumentLimit"; private Integer transferInstrumentLimit; - public OnboardingLinkSettings() {} + public OnboardingLinkSettings() { + } /** - * The list of countries the user can choose from in hosted onboarding when - * `editPrefilledCountry` is allowed. The value must be in the two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code format. The array is - * empty by default, allowing all [countries and regions supported by hosted - * onboarding](https://docs.adyen.com/platforms/onboard-users/#hosted-onboarding). + * The list of countries the user can choose from in hosted onboarding when `editPrefilledCountry` is allowed. The value must be in the two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code format. The array is empty by default, allowing all [countries and regions supported by hosted onboarding](https://docs.adyen.com/platforms/onboard-users/#hosted-onboarding). * - * @param acceptedCountries The list of countries the user can choose from in hosted onboarding - * when `editPrefilledCountry` is allowed. The value must be in the two-character - * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code format. - * The array is empty by default, allowing all [countries and regions supported by hosted - * onboarding](https://docs.adyen.com/platforms/onboard-users/#hosted-onboarding). + * @param acceptedCountries The list of countries the user can choose from in hosted onboarding when `editPrefilledCountry` is allowed. The value must be in the two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code format. The array is empty by default, allowing all [countries and regions supported by hosted onboarding](https://docs.adyen.com/platforms/onboard-users/#hosted-onboarding). * @return the current {@code OnboardingLinkSettings} instance, allowing for method chaining */ public OnboardingLinkSettings acceptedCountries(List acceptedCountries) { @@ -127,17 +124,8 @@ public OnboardingLinkSettings addAcceptedCountriesItem(String acceptedCountriesI } /** - * The list of countries the user can choose from in hosted onboarding when - * `editPrefilledCountry` is allowed. The value must be in the two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code format. The array is - * empty by default, allowing all [countries and regions supported by hosted - * onboarding](https://docs.adyen.com/platforms/onboard-users/#hosted-onboarding). - * - * @return acceptedCountries The list of countries the user can choose from in hosted onboarding - * when `editPrefilledCountry` is allowed. The value must be in the two-character - * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code format. - * The array is empty by default, allowing all [countries and regions supported by hosted - * onboarding](https://docs.adyen.com/platforms/onboard-users/#hosted-onboarding). + * The list of countries the user can choose from in hosted onboarding when `editPrefilledCountry` is allowed. The value must be in the two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code format. The array is empty by default, allowing all [countries and regions supported by hosted onboarding](https://docs.adyen.com/platforms/onboard-users/#hosted-onboarding). + * @return acceptedCountries The list of countries the user can choose from in hosted onboarding when `editPrefilledCountry` is allowed. The value must be in the two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code format. The array is empty by default, allowing all [countries and regions supported by hosted onboarding](https://docs.adyen.com/platforms/onboard-users/#hosted-onboarding). */ @JsonProperty(JSON_PROPERTY_ACCEPTED_COUNTRIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,17 +134,9 @@ public List getAcceptedCountries() { } /** - * The list of countries the user can choose from in hosted onboarding when - * `editPrefilledCountry` is allowed. The value must be in the two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code format. The array is - * empty by default, allowing all [countries and regions supported by hosted - * onboarding](https://docs.adyen.com/platforms/onboard-users/#hosted-onboarding). + * The list of countries the user can choose from in hosted onboarding when `editPrefilledCountry` is allowed. The value must be in the two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code format. The array is empty by default, allowing all [countries and regions supported by hosted onboarding](https://docs.adyen.com/platforms/onboard-users/#hosted-onboarding). * - * @param acceptedCountries The list of countries the user can choose from in hosted onboarding - * when `editPrefilledCountry` is allowed. The value must be in the two-character - * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code format. - * The array is empty by default, allowing all [countries and regions supported by hosted - * onboarding](https://docs.adyen.com/platforms/onboard-users/#hosted-onboarding). + * @param acceptedCountries The list of countries the user can choose from in hosted onboarding when `editPrefilledCountry` is allowed. The value must be in the two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code format. The array is empty by default, allowing all [countries and regions supported by hosted onboarding](https://docs.adyen.com/platforms/onboard-users/#hosted-onboarding). */ @JsonProperty(JSON_PROPERTY_ACCEPTED_COUNTRIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -165,25 +145,19 @@ public void setAcceptedCountries(List acceptedCountries) { } /** - * Default value: **false** Indicates if the user can select the format for their payout account - * (if applicable). + * Default value: **false** Indicates if the user can select the format for their payout account (if applicable). * - * @param allowBankAccountFormatSelection Default value: **false** Indicates if the user can - * select the format for their payout account (if applicable). + * @param allowBankAccountFormatSelection Default value: **false** Indicates if the user can select the format for their payout account (if applicable). * @return the current {@code OnboardingLinkSettings} instance, allowing for method chaining */ - public OnboardingLinkSettings allowBankAccountFormatSelection( - Boolean allowBankAccountFormatSelection) { + public OnboardingLinkSettings allowBankAccountFormatSelection(Boolean allowBankAccountFormatSelection) { this.allowBankAccountFormatSelection = allowBankAccountFormatSelection; return this; } /** - * Default value: **false** Indicates if the user can select the format for their payout account - * (if applicable). - * - * @return allowBankAccountFormatSelection Default value: **false** Indicates if the user can - * select the format for their payout account (if applicable). + * Default value: **false** Indicates if the user can select the format for their payout account (if applicable). + * @return allowBankAccountFormatSelection Default value: **false** Indicates if the user can select the format for their payout account (if applicable). */ @JsonProperty(JSON_PROPERTY_ALLOW_BANK_ACCOUNT_FORMAT_SELECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,11 +166,9 @@ public Boolean getAllowBankAccountFormatSelection() { } /** - * Default value: **false** Indicates if the user can select the format for their payout account - * (if applicable). + * Default value: **false** Indicates if the user can select the format for their payout account (if applicable). * - * @param allowBankAccountFormatSelection Default value: **false** Indicates if the user can - * select the format for their payout account (if applicable). + * @param allowBankAccountFormatSelection Default value: **false** Indicates if the user can select the format for their payout account (if applicable). */ @JsonProperty(JSON_PROPERTY_ALLOW_BANK_ACCOUNT_FORMAT_SELECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -205,13 +177,9 @@ public void setAllowBankAccountFormatSelection(Boolean allowBankAccountFormatSel } /** - * Default value: **true** Indicates whether the debug user interface (UI) is enabled. The debug - * UI provides information for your support staff to diagnose and resolve user issues during - * onboarding. It can be accessed using a keyboard shortcut. + * Default value: **true** Indicates whether the debug user interface (UI) is enabled. The debug UI provides information for your support staff to diagnose and resolve user issues during onboarding. It can be accessed using a keyboard shortcut. * - * @param allowDebugUi Default value: **true** Indicates whether the debug user interface (UI) is - * enabled. The debug UI provides information for your support staff to diagnose and resolve - * user issues during onboarding. It can be accessed using a keyboard shortcut. + * @param allowDebugUi Default value: **true** Indicates whether the debug user interface (UI) is enabled. The debug UI provides information for your support staff to diagnose and resolve user issues during onboarding. It can be accessed using a keyboard shortcut. * @return the current {@code OnboardingLinkSettings} instance, allowing for method chaining */ public OnboardingLinkSettings allowDebugUi(Boolean allowDebugUi) { @@ -220,13 +188,8 @@ public OnboardingLinkSettings allowDebugUi(Boolean allowDebugUi) { } /** - * Default value: **true** Indicates whether the debug user interface (UI) is enabled. The debug - * UI provides information for your support staff to diagnose and resolve user issues during - * onboarding. It can be accessed using a keyboard shortcut. - * - * @return allowDebugUi Default value: **true** Indicates whether the debug user interface (UI) is - * enabled. The debug UI provides information for your support staff to diagnose and resolve - * user issues during onboarding. It can be accessed using a keyboard shortcut. + * Default value: **true** Indicates whether the debug user interface (UI) is enabled. The debug UI provides information for your support staff to diagnose and resolve user issues during onboarding. It can be accessed using a keyboard shortcut. + * @return allowDebugUi Default value: **true** Indicates whether the debug user interface (UI) is enabled. The debug UI provides information for your support staff to diagnose and resolve user issues during onboarding. It can be accessed using a keyboard shortcut. */ @JsonProperty(JSON_PROPERTY_ALLOW_DEBUG_UI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -235,13 +198,9 @@ public Boolean getAllowDebugUi() { } /** - * Default value: **true** Indicates whether the debug user interface (UI) is enabled. The debug - * UI provides information for your support staff to diagnose and resolve user issues during - * onboarding. It can be accessed using a keyboard shortcut. + * Default value: **true** Indicates whether the debug user interface (UI) is enabled. The debug UI provides information for your support staff to diagnose and resolve user issues during onboarding. It can be accessed using a keyboard shortcut. * - * @param allowDebugUi Default value: **true** Indicates whether the debug user interface (UI) is - * enabled. The debug UI provides information for your support staff to diagnose and resolve - * user issues during onboarding. It can be accessed using a keyboard shortcut. + * @param allowDebugUi Default value: **true** Indicates whether the debug user interface (UI) is enabled. The debug UI provides information for your support staff to diagnose and resolve user issues during onboarding. It can be accessed using a keyboard shortcut. */ @JsonProperty(JSON_PROPERTY_ALLOW_DEBUG_UI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,27 +209,19 @@ public void setAllowDebugUi(Boolean allowDebugUi) { } /** - * Default value: **false** Indicates if the user can select a payout account in a different - * EU/EEA location (including Switzerland and the UK) than the location of their legal entity. + * Default value: **false** Indicates if the user can select a payout account in a different EU/EEA location (including Switzerland and the UK) than the location of their legal entity. * - * @param allowIntraRegionCrossBorderPayout Default value: **false** Indicates if the user can - * select a payout account in a different EU/EEA location (including Switzerland and the UK) - * than the location of their legal entity. + * @param allowIntraRegionCrossBorderPayout Default value: **false** Indicates if the user can select a payout account in a different EU/EEA location (including Switzerland and the UK) than the location of their legal entity. * @return the current {@code OnboardingLinkSettings} instance, allowing for method chaining */ - public OnboardingLinkSettings allowIntraRegionCrossBorderPayout( - Boolean allowIntraRegionCrossBorderPayout) { + public OnboardingLinkSettings allowIntraRegionCrossBorderPayout(Boolean allowIntraRegionCrossBorderPayout) { this.allowIntraRegionCrossBorderPayout = allowIntraRegionCrossBorderPayout; return this; } /** - * Default value: **false** Indicates if the user can select a payout account in a different - * EU/EEA location (including Switzerland and the UK) than the location of their legal entity. - * - * @return allowIntraRegionCrossBorderPayout Default value: **false** Indicates if the user can - * select a payout account in a different EU/EEA location (including Switzerland and the UK) - * than the location of their legal entity. + * Default value: **false** Indicates if the user can select a payout account in a different EU/EEA location (including Switzerland and the UK) than the location of their legal entity. + * @return allowIntraRegionCrossBorderPayout Default value: **false** Indicates if the user can select a payout account in a different EU/EEA location (including Switzerland and the UK) than the location of their legal entity. */ @JsonProperty(JSON_PROPERTY_ALLOW_INTRA_REGION_CROSS_BORDER_PAYOUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -279,12 +230,9 @@ public Boolean getAllowIntraRegionCrossBorderPayout() { } /** - * Default value: **false** Indicates if the user can select a payout account in a different - * EU/EEA location (including Switzerland and the UK) than the location of their legal entity. + * Default value: **false** Indicates if the user can select a payout account in a different EU/EEA location (including Switzerland and the UK) than the location of their legal entity. * - * @param allowIntraRegionCrossBorderPayout Default value: **false** Indicates if the user can - * select a payout account in a different EU/EEA location (including Switzerland and the UK) - * than the location of their legal entity. + * @param allowIntraRegionCrossBorderPayout Default value: **false** Indicates if the user can select a payout account in a different EU/EEA location (including Switzerland and the UK) than the location of their legal entity. */ @JsonProperty(JSON_PROPERTY_ALLOW_INTRA_REGION_CROSS_BORDER_PAYOUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -293,10 +241,9 @@ public void setAllowIntraRegionCrossBorderPayout(Boolean allowIntraRegionCrossBo } /** - * Default value: **true** Indicates if the user can change their legal entity type. + * Default value: **true** Indicates if the user can change their legal entity type. * - * @param changeLegalEntityType Default value: **true** Indicates if the user can change their - * legal entity type. + * @param changeLegalEntityType Default value: **true** Indicates if the user can change their legal entity type. * @return the current {@code OnboardingLinkSettings} instance, allowing for method chaining */ public OnboardingLinkSettings changeLegalEntityType(Boolean changeLegalEntityType) { @@ -305,10 +252,8 @@ public OnboardingLinkSettings changeLegalEntityType(Boolean changeLegalEntityTyp } /** - * Default value: **true** Indicates if the user can change their legal entity type. - * - * @return changeLegalEntityType Default value: **true** Indicates if the user can change their - * legal entity type. + * Default value: **true** Indicates if the user can change their legal entity type. + * @return changeLegalEntityType Default value: **true** Indicates if the user can change their legal entity type. */ @JsonProperty(JSON_PROPERTY_CHANGE_LEGAL_ENTITY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -317,10 +262,9 @@ public Boolean getChangeLegalEntityType() { } /** - * Default value: **true** Indicates if the user can change their legal entity type. + * Default value: **true** Indicates if the user can change their legal entity type. * - * @param changeLegalEntityType Default value: **true** Indicates if the user can change their - * legal entity type. + * @param changeLegalEntityType Default value: **true** Indicates if the user can change their legal entity type. */ @JsonProperty(JSON_PROPERTY_CHANGE_LEGAL_ENTITY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -329,12 +273,9 @@ public void setChangeLegalEntityType(Boolean changeLegalEntityType) { } /** - * Default value: **true** Indicates if the user can change the country of their legal - * entity's address, for example the registered address of an organization. + * Default value: **true** Indicates if the user can change the country of their legal entity's address, for example the registered address of an organization. * - * @param editPrefilledCountry Default value: **true** Indicates if the user can change the - * country of their legal entity's address, for example the registered address of an - * organization. + * @param editPrefilledCountry Default value: **true** Indicates if the user can change the country of their legal entity's address, for example the registered address of an organization. * @return the current {@code OnboardingLinkSettings} instance, allowing for method chaining */ public OnboardingLinkSettings editPrefilledCountry(Boolean editPrefilledCountry) { @@ -343,12 +284,8 @@ public OnboardingLinkSettings editPrefilledCountry(Boolean editPrefilledCountry) } /** - * Default value: **true** Indicates if the user can change the country of their legal - * entity's address, for example the registered address of an organization. - * - * @return editPrefilledCountry Default value: **true** Indicates if the user can change the - * country of their legal entity's address, for example the registered address of an - * organization. + * Default value: **true** Indicates if the user can change the country of their legal entity's address, for example the registered address of an organization. + * @return editPrefilledCountry Default value: **true** Indicates if the user can change the country of their legal entity's address, for example the registered address of an organization. */ @JsonProperty(JSON_PROPERTY_EDIT_PREFILLED_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -357,12 +294,9 @@ public Boolean getEditPrefilledCountry() { } /** - * Default value: **true** Indicates if the user can change the country of their legal - * entity's address, for example the registered address of an organization. + * Default value: **true** Indicates if the user can change the country of their legal entity's address, for example the registered address of an organization. * - * @param editPrefilledCountry Default value: **true** Indicates if the user can change the - * country of their legal entity's address, for example the registered address of an - * organization. + * @param editPrefilledCountry Default value: **true** Indicates if the user can change the country of their legal entity's address, for example the registered address of an organization. */ @JsonProperty(JSON_PROPERTY_EDIT_PREFILLED_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -371,10 +305,9 @@ public void setEditPrefilledCountry(Boolean editPrefilledCountry) { } /** - * Default value: **false** Indicates if only users above the age of 18 can be onboarded. + * Default value: **false** Indicates if only users above the age of 18 can be onboarded. * - * @param enforceLegalAge Default value: **false** Indicates if only users above the age of 18 can - * be onboarded. + * @param enforceLegalAge Default value: **false** Indicates if only users above the age of 18 can be onboarded. * @return the current {@code OnboardingLinkSettings} instance, allowing for method chaining */ public OnboardingLinkSettings enforceLegalAge(Boolean enforceLegalAge) { @@ -383,10 +316,8 @@ public OnboardingLinkSettings enforceLegalAge(Boolean enforceLegalAge) { } /** - * Default value: **false** Indicates if only users above the age of 18 can be onboarded. - * - * @return enforceLegalAge Default value: **false** Indicates if only users above the age of 18 - * can be onboarded. + * Default value: **false** Indicates if only users above the age of 18 can be onboarded. + * @return enforceLegalAge Default value: **false** Indicates if only users above the age of 18 can be onboarded. */ @JsonProperty(JSON_PROPERTY_ENFORCE_LEGAL_AGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -395,10 +326,9 @@ public Boolean getEnforceLegalAge() { } /** - * Default value: **false** Indicates if only users above the age of 18 can be onboarded. + * Default value: **false** Indicates if only users above the age of 18 can be onboarded. * - * @param enforceLegalAge Default value: **false** Indicates if only users above the age of 18 can - * be onboarded. + * @param enforceLegalAge Default value: **false** Indicates if only users above the age of 18 can be onboarded. */ @JsonProperty(JSON_PROPERTY_ENFORCE_LEGAL_AGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -407,31 +337,19 @@ public void setEnforceLegalAge(Boolean enforceLegalAge) { } /** - * Default value: **true** Indicates whether the introduction screen is hidden for the user of the - * individual legal entity type. The introduction screen provides brief instructions for the - * subsequent steps in the hosted onboarding process. + * Default value: **true** Indicates whether the introduction screen is hidden for the user of the individual legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. * - * @param hideOnboardingIntroductionIndividual Default value: **true** Indicates whether the - * introduction screen is hidden for the user of the individual legal entity type. The - * introduction screen provides brief instructions for the subsequent steps in the hosted - * onboarding process. + * @param hideOnboardingIntroductionIndividual Default value: **true** Indicates whether the introduction screen is hidden for the user of the individual legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. * @return the current {@code OnboardingLinkSettings} instance, allowing for method chaining */ - public OnboardingLinkSettings hideOnboardingIntroductionIndividual( - Boolean hideOnboardingIntroductionIndividual) { + public OnboardingLinkSettings hideOnboardingIntroductionIndividual(Boolean hideOnboardingIntroductionIndividual) { this.hideOnboardingIntroductionIndividual = hideOnboardingIntroductionIndividual; return this; } /** - * Default value: **true** Indicates whether the introduction screen is hidden for the user of the - * individual legal entity type. The introduction screen provides brief instructions for the - * subsequent steps in the hosted onboarding process. - * - * @return hideOnboardingIntroductionIndividual Default value: **true** Indicates whether the - * introduction screen is hidden for the user of the individual legal entity type. The - * introduction screen provides brief instructions for the subsequent steps in the hosted - * onboarding process. + * Default value: **true** Indicates whether the introduction screen is hidden for the user of the individual legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. + * @return hideOnboardingIntroductionIndividual Default value: **true** Indicates whether the introduction screen is hidden for the user of the individual legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. */ @JsonProperty(JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_INDIVIDUAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -440,48 +358,30 @@ public Boolean getHideOnboardingIntroductionIndividual() { } /** - * Default value: **true** Indicates whether the introduction screen is hidden for the user of the - * individual legal entity type. The introduction screen provides brief instructions for the - * subsequent steps in the hosted onboarding process. + * Default value: **true** Indicates whether the introduction screen is hidden for the user of the individual legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. * - * @param hideOnboardingIntroductionIndividual Default value: **true** Indicates whether the - * introduction screen is hidden for the user of the individual legal entity type. The - * introduction screen provides brief instructions for the subsequent steps in the hosted - * onboarding process. + * @param hideOnboardingIntroductionIndividual Default value: **true** Indicates whether the introduction screen is hidden for the user of the individual legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. */ @JsonProperty(JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_INDIVIDUAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHideOnboardingIntroductionIndividual( - Boolean hideOnboardingIntroductionIndividual) { + public void setHideOnboardingIntroductionIndividual(Boolean hideOnboardingIntroductionIndividual) { this.hideOnboardingIntroductionIndividual = hideOnboardingIntroductionIndividual; } /** - * Default value: **true** Indicates whether the introduction screen is hidden for the user of the - * organization legal entity type. The introduction screen provides brief instructions for the - * subsequent steps in the hosted onboarding process. + * Default value: **true** Indicates whether the introduction screen is hidden for the user of the organization legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. * - * @param hideOnboardingIntroductionOrganization Default value: **true** Indicates whether the - * introduction screen is hidden for the user of the organization legal entity type. The - * introduction screen provides brief instructions for the subsequent steps in the hosted - * onboarding process. + * @param hideOnboardingIntroductionOrganization Default value: **true** Indicates whether the introduction screen is hidden for the user of the organization legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. * @return the current {@code OnboardingLinkSettings} instance, allowing for method chaining */ - public OnboardingLinkSettings hideOnboardingIntroductionOrganization( - Boolean hideOnboardingIntroductionOrganization) { + public OnboardingLinkSettings hideOnboardingIntroductionOrganization(Boolean hideOnboardingIntroductionOrganization) { this.hideOnboardingIntroductionOrganization = hideOnboardingIntroductionOrganization; return this; } /** - * Default value: **true** Indicates whether the introduction screen is hidden for the user of the - * organization legal entity type. The introduction screen provides brief instructions for the - * subsequent steps in the hosted onboarding process. - * - * @return hideOnboardingIntroductionOrganization Default value: **true** Indicates whether the - * introduction screen is hidden for the user of the organization legal entity type. The - * introduction screen provides brief instructions for the subsequent steps in the hosted - * onboarding process. + * Default value: **true** Indicates whether the introduction screen is hidden for the user of the organization legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. + * @return hideOnboardingIntroductionOrganization Default value: **true** Indicates whether the introduction screen is hidden for the user of the organization legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. */ @JsonProperty(JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_ORGANIZATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -490,48 +390,30 @@ public Boolean getHideOnboardingIntroductionOrganization() { } /** - * Default value: **true** Indicates whether the introduction screen is hidden for the user of the - * organization legal entity type. The introduction screen provides brief instructions for the - * subsequent steps in the hosted onboarding process. + * Default value: **true** Indicates whether the introduction screen is hidden for the user of the organization legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. * - * @param hideOnboardingIntroductionOrganization Default value: **true** Indicates whether the - * introduction screen is hidden for the user of the organization legal entity type. The - * introduction screen provides brief instructions for the subsequent steps in the hosted - * onboarding process. + * @param hideOnboardingIntroductionOrganization Default value: **true** Indicates whether the introduction screen is hidden for the user of the organization legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. */ @JsonProperty(JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_ORGANIZATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHideOnboardingIntroductionOrganization( - Boolean hideOnboardingIntroductionOrganization) { + public void setHideOnboardingIntroductionOrganization(Boolean hideOnboardingIntroductionOrganization) { this.hideOnboardingIntroductionOrganization = hideOnboardingIntroductionOrganization; } /** - * Default value: **true** Indicates whether the introduction screen is hidden for the user of the - * sole proprietorship legal entity type. The introduction screen provides brief instructions for - * the subsequent steps in the hosted onboarding process. + * Default value: **true** Indicates whether the introduction screen is hidden for the user of the sole proprietorship legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. * - * @param hideOnboardingIntroductionSoleProprietor Default value: **true** Indicates whether the - * introduction screen is hidden for the user of the sole proprietorship legal entity type. - * The introduction screen provides brief instructions for the subsequent steps in the hosted - * onboarding process. + * @param hideOnboardingIntroductionSoleProprietor Default value: **true** Indicates whether the introduction screen is hidden for the user of the sole proprietorship legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. * @return the current {@code OnboardingLinkSettings} instance, allowing for method chaining */ - public OnboardingLinkSettings hideOnboardingIntroductionSoleProprietor( - Boolean hideOnboardingIntroductionSoleProprietor) { + public OnboardingLinkSettings hideOnboardingIntroductionSoleProprietor(Boolean hideOnboardingIntroductionSoleProprietor) { this.hideOnboardingIntroductionSoleProprietor = hideOnboardingIntroductionSoleProprietor; return this; } /** - * Default value: **true** Indicates whether the introduction screen is hidden for the user of the - * sole proprietorship legal entity type. The introduction screen provides brief instructions for - * the subsequent steps in the hosted onboarding process. - * - * @return hideOnboardingIntroductionSoleProprietor Default value: **true** Indicates whether the - * introduction screen is hidden for the user of the sole proprietorship legal entity type. - * The introduction screen provides brief instructions for the subsequent steps in the hosted - * onboarding process. + * Default value: **true** Indicates whether the introduction screen is hidden for the user of the sole proprietorship legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. + * @return hideOnboardingIntroductionSoleProprietor Default value: **true** Indicates whether the introduction screen is hidden for the user of the sole proprietorship legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. */ @JsonProperty(JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_SOLE_PROPRIETOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -540,48 +422,30 @@ public Boolean getHideOnboardingIntroductionSoleProprietor() { } /** - * Default value: **true** Indicates whether the introduction screen is hidden for the user of the - * sole proprietorship legal entity type. The introduction screen provides brief instructions for - * the subsequent steps in the hosted onboarding process. + * Default value: **true** Indicates whether the introduction screen is hidden for the user of the sole proprietorship legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. * - * @param hideOnboardingIntroductionSoleProprietor Default value: **true** Indicates whether the - * introduction screen is hidden for the user of the sole proprietorship legal entity type. - * The introduction screen provides brief instructions for the subsequent steps in the hosted - * onboarding process. + * @param hideOnboardingIntroductionSoleProprietor Default value: **true** Indicates whether the introduction screen is hidden for the user of the sole proprietorship legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. */ @JsonProperty(JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_SOLE_PROPRIETOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHideOnboardingIntroductionSoleProprietor( - Boolean hideOnboardingIntroductionSoleProprietor) { + public void setHideOnboardingIntroductionSoleProprietor(Boolean hideOnboardingIntroductionSoleProprietor) { this.hideOnboardingIntroductionSoleProprietor = hideOnboardingIntroductionSoleProprietor; } /** - * Default value: **true** Indicates whether the introduction screen is hidden for the user of the - * trust legal entity type. The introduction screen provides brief instructions for the subsequent - * steps in the hosted onboarding process. + * Default value: **true** Indicates whether the introduction screen is hidden for the user of the trust legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. * - * @param hideOnboardingIntroductionTrust Default value: **true** Indicates whether the - * introduction screen is hidden for the user of the trust legal entity type. The introduction - * screen provides brief instructions for the subsequent steps in the hosted onboarding - * process. + * @param hideOnboardingIntroductionTrust Default value: **true** Indicates whether the introduction screen is hidden for the user of the trust legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. * @return the current {@code OnboardingLinkSettings} instance, allowing for method chaining */ - public OnboardingLinkSettings hideOnboardingIntroductionTrust( - Boolean hideOnboardingIntroductionTrust) { + public OnboardingLinkSettings hideOnboardingIntroductionTrust(Boolean hideOnboardingIntroductionTrust) { this.hideOnboardingIntroductionTrust = hideOnboardingIntroductionTrust; return this; } /** - * Default value: **true** Indicates whether the introduction screen is hidden for the user of the - * trust legal entity type. The introduction screen provides brief instructions for the subsequent - * steps in the hosted onboarding process. - * - * @return hideOnboardingIntroductionTrust Default value: **true** Indicates whether the - * introduction screen is hidden for the user of the trust legal entity type. The introduction - * screen provides brief instructions for the subsequent steps in the hosted onboarding - * process. + * Default value: **true** Indicates whether the introduction screen is hidden for the user of the trust legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. + * @return hideOnboardingIntroductionTrust Default value: **true** Indicates whether the introduction screen is hidden for the user of the trust legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. */ @JsonProperty(JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_TRUST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -590,14 +454,9 @@ public Boolean getHideOnboardingIntroductionTrust() { } /** - * Default value: **true** Indicates whether the introduction screen is hidden for the user of the - * trust legal entity type. The introduction screen provides brief instructions for the subsequent - * steps in the hosted onboarding process. + * Default value: **true** Indicates whether the introduction screen is hidden for the user of the trust legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. * - * @param hideOnboardingIntroductionTrust Default value: **true** Indicates whether the - * introduction screen is hidden for the user of the trust legal entity type. The introduction - * screen provides brief instructions for the subsequent steps in the hosted onboarding - * process. + * @param hideOnboardingIntroductionTrust Default value: **true** Indicates whether the introduction screen is hidden for the user of the trust legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. */ @JsonProperty(JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_TRUST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -606,11 +465,9 @@ public void setHideOnboardingIntroductionTrust(Boolean hideOnboardingIntroductio } /** - * Default value: **true** Indicates if the user can initiate the verification process through - * open banking providers, like Plaid or Tink. + * Default value: **true** Indicates if the user can initiate the verification process through open banking providers, like Plaid or Tink. * - * @param instantBankVerification Default value: **true** Indicates if the user can initiate the - * verification process through open banking providers, like Plaid or Tink. + * @param instantBankVerification Default value: **true** Indicates if the user can initiate the verification process through open banking providers, like Plaid or Tink. * @return the current {@code OnboardingLinkSettings} instance, allowing for method chaining */ public OnboardingLinkSettings instantBankVerification(Boolean instantBankVerification) { @@ -619,11 +476,8 @@ public OnboardingLinkSettings instantBankVerification(Boolean instantBankVerific } /** - * Default value: **true** Indicates if the user can initiate the verification process through - * open banking providers, like Plaid or Tink. - * - * @return instantBankVerification Default value: **true** Indicates if the user can initiate the - * verification process through open banking providers, like Plaid or Tink. + * Default value: **true** Indicates if the user can initiate the verification process through open banking providers, like Plaid or Tink. + * @return instantBankVerification Default value: **true** Indicates if the user can initiate the verification process through open banking providers, like Plaid or Tink. */ @JsonProperty(JSON_PROPERTY_INSTANT_BANK_VERIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -632,11 +486,9 @@ public Boolean getInstantBankVerification() { } /** - * Default value: **true** Indicates if the user can initiate the verification process through - * open banking providers, like Plaid or Tink. + * Default value: **true** Indicates if the user can initiate the verification process through open banking providers, like Plaid or Tink. * - * @param instantBankVerification Default value: **true** Indicates if the user can initiate the - * verification process through open banking providers, like Plaid or Tink. + * @param instantBankVerification Default value: **true** Indicates if the user can initiate the verification process through open banking providers, like Plaid or Tink. */ @JsonProperty(JSON_PROPERTY_INSTANT_BANK_VERIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -645,11 +497,9 @@ public void setInstantBankVerification(Boolean instantBankVerification) { } /** - * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the - * **ecomMoto** sales channel type. + * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **ecomMoto** sales channel type. * - * @param requirePciSignEcomMoto Default value: **false** Indicates if the user is required to - * sign a PCI questionnaires for the **ecomMoto** sales channel type. + * @param requirePciSignEcomMoto Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **ecomMoto** sales channel type. * @return the current {@code OnboardingLinkSettings} instance, allowing for method chaining */ public OnboardingLinkSettings requirePciSignEcomMoto(Boolean requirePciSignEcomMoto) { @@ -658,11 +508,8 @@ public OnboardingLinkSettings requirePciSignEcomMoto(Boolean requirePciSignEcomM } /** - * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the - * **ecomMoto** sales channel type. - * - * @return requirePciSignEcomMoto Default value: **false** Indicates if the user is required to - * sign a PCI questionnaires for the **ecomMoto** sales channel type. + * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **ecomMoto** sales channel type. + * @return requirePciSignEcomMoto Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **ecomMoto** sales channel type. */ @JsonProperty(JSON_PROPERTY_REQUIRE_PCI_SIGN_ECOM_MOTO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -671,11 +518,9 @@ public Boolean getRequirePciSignEcomMoto() { } /** - * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the - * **ecomMoto** sales channel type. + * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **ecomMoto** sales channel type. * - * @param requirePciSignEcomMoto Default value: **false** Indicates if the user is required to - * sign a PCI questionnaires for the **ecomMoto** sales channel type. + * @param requirePciSignEcomMoto Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **ecomMoto** sales channel type. */ @JsonProperty(JSON_PROPERTY_REQUIRE_PCI_SIGN_ECOM_MOTO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -684,11 +529,9 @@ public void setRequirePciSignEcomMoto(Boolean requirePciSignEcomMoto) { } /** - * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the - * **eCommerce** sales channel type. + * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **eCommerce** sales channel type. * - * @param requirePciSignEcommerce Default value: **false** Indicates if the user is required to - * sign a PCI questionnaires for the **eCommerce** sales channel type. + * @param requirePciSignEcommerce Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **eCommerce** sales channel type. * @return the current {@code OnboardingLinkSettings} instance, allowing for method chaining */ public OnboardingLinkSettings requirePciSignEcommerce(Boolean requirePciSignEcommerce) { @@ -697,11 +540,8 @@ public OnboardingLinkSettings requirePciSignEcommerce(Boolean requirePciSignEcom } /** - * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the - * **eCommerce** sales channel type. - * - * @return requirePciSignEcommerce Default value: **false** Indicates if the user is required to - * sign a PCI questionnaires for the **eCommerce** sales channel type. + * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **eCommerce** sales channel type. + * @return requirePciSignEcommerce Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **eCommerce** sales channel type. */ @JsonProperty(JSON_PROPERTY_REQUIRE_PCI_SIGN_ECOMMERCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -710,11 +550,9 @@ public Boolean getRequirePciSignEcommerce() { } /** - * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the - * **eCommerce** sales channel type. + * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **eCommerce** sales channel type. * - * @param requirePciSignEcommerce Default value: **false** Indicates if the user is required to - * sign a PCI questionnaires for the **eCommerce** sales channel type. + * @param requirePciSignEcommerce Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **eCommerce** sales channel type. */ @JsonProperty(JSON_PROPERTY_REQUIRE_PCI_SIGN_ECOMMERCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -723,11 +561,9 @@ public void setRequirePciSignEcommerce(Boolean requirePciSignEcommerce) { } /** - * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the - * **pos** sales channel type. + * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **pos** sales channel type. * - * @param requirePciSignPos Default value: **false** Indicates if the user is required to sign a - * PCI questionnaires for the **pos** sales channel type. + * @param requirePciSignPos Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **pos** sales channel type. * @return the current {@code OnboardingLinkSettings} instance, allowing for method chaining */ public OnboardingLinkSettings requirePciSignPos(Boolean requirePciSignPos) { @@ -736,11 +572,8 @@ public OnboardingLinkSettings requirePciSignPos(Boolean requirePciSignPos) { } /** - * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the - * **pos** sales channel type. - * - * @return requirePciSignPos Default value: **false** Indicates if the user is required to sign a - * PCI questionnaires for the **pos** sales channel type. + * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **pos** sales channel type. + * @return requirePciSignPos Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **pos** sales channel type. */ @JsonProperty(JSON_PROPERTY_REQUIRE_PCI_SIGN_POS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -749,11 +582,9 @@ public Boolean getRequirePciSignPos() { } /** - * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the - * **pos** sales channel type. + * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **pos** sales channel type. * - * @param requirePciSignPos Default value: **false** Indicates if the user is required to sign a - * PCI questionnaires for the **pos** sales channel type. + * @param requirePciSignPos Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **pos** sales channel type. */ @JsonProperty(JSON_PROPERTY_REQUIRE_PCI_SIGN_POS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -762,11 +593,9 @@ public void setRequirePciSignPos(Boolean requirePciSignPos) { } /** - * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the - * **posMoto** sales channel type. + * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **posMoto** sales channel type. * - * @param requirePciSignPosMoto Default value: **false** Indicates if the user is required to sign - * a PCI questionnaires for the **posMoto** sales channel type. + * @param requirePciSignPosMoto Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **posMoto** sales channel type. * @return the current {@code OnboardingLinkSettings} instance, allowing for method chaining */ public OnboardingLinkSettings requirePciSignPosMoto(Boolean requirePciSignPosMoto) { @@ -775,11 +604,8 @@ public OnboardingLinkSettings requirePciSignPosMoto(Boolean requirePciSignPosMot } /** - * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the - * **posMoto** sales channel type. - * - * @return requirePciSignPosMoto Default value: **false** Indicates if the user is required to - * sign a PCI questionnaires for the **posMoto** sales channel type. + * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **posMoto** sales channel type. + * @return requirePciSignPosMoto Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **posMoto** sales channel type. */ @JsonProperty(JSON_PROPERTY_REQUIRE_PCI_SIGN_POS_MOTO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -788,11 +614,9 @@ public Boolean getRequirePciSignPosMoto() { } /** - * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the - * **posMoto** sales channel type. + * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **posMoto** sales channel type. * - * @param requirePciSignPosMoto Default value: **false** Indicates if the user is required to sign - * a PCI questionnaires for the **posMoto** sales channel type. + * @param requirePciSignPosMoto Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **posMoto** sales channel type. */ @JsonProperty(JSON_PROPERTY_REQUIRE_PCI_SIGN_POS_MOTO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -813,7 +637,6 @@ public OnboardingLinkSettings transferInstrumentLimit(Integer transferInstrument /** * The maximum number of transfer instruments the user can create. - * * @return transferInstrumentLimit The maximum number of transfer instruments the user can create. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_LIMIT) @@ -833,7 +656,9 @@ public void setTransferInstrumentLimit(Integer transferInstrumentLimit) { this.transferInstrumentLimit = transferInstrumentLimit; } - /** Return true if this OnboardingLinkSettings object is equal to o. */ + /** + * Return true if this OnboardingLinkSettings object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -843,61 +668,28 @@ public boolean equals(Object o) { return false; } OnboardingLinkSettings onboardingLinkSettings = (OnboardingLinkSettings) o; - return Objects.equals(this.acceptedCountries, onboardingLinkSettings.acceptedCountries) - && Objects.equals( - this.allowBankAccountFormatSelection, - onboardingLinkSettings.allowBankAccountFormatSelection) - && Objects.equals(this.allowDebugUi, onboardingLinkSettings.allowDebugUi) - && Objects.equals( - this.allowIntraRegionCrossBorderPayout, - onboardingLinkSettings.allowIntraRegionCrossBorderPayout) - && Objects.equals(this.changeLegalEntityType, onboardingLinkSettings.changeLegalEntityType) - && Objects.equals(this.editPrefilledCountry, onboardingLinkSettings.editPrefilledCountry) - && Objects.equals(this.enforceLegalAge, onboardingLinkSettings.enforceLegalAge) - && Objects.equals( - this.hideOnboardingIntroductionIndividual, - onboardingLinkSettings.hideOnboardingIntroductionIndividual) - && Objects.equals( - this.hideOnboardingIntroductionOrganization, - onboardingLinkSettings.hideOnboardingIntroductionOrganization) - && Objects.equals( - this.hideOnboardingIntroductionSoleProprietor, - onboardingLinkSettings.hideOnboardingIntroductionSoleProprietor) - && Objects.equals( - this.hideOnboardingIntroductionTrust, - onboardingLinkSettings.hideOnboardingIntroductionTrust) - && Objects.equals( - this.instantBankVerification, onboardingLinkSettings.instantBankVerification) - && Objects.equals( - this.requirePciSignEcomMoto, onboardingLinkSettings.requirePciSignEcomMoto) - && Objects.equals( - this.requirePciSignEcommerce, onboardingLinkSettings.requirePciSignEcommerce) - && Objects.equals(this.requirePciSignPos, onboardingLinkSettings.requirePciSignPos) - && Objects.equals(this.requirePciSignPosMoto, onboardingLinkSettings.requirePciSignPosMoto) - && Objects.equals( - this.transferInstrumentLimit, onboardingLinkSettings.transferInstrumentLimit); + return Objects.equals(this.acceptedCountries, onboardingLinkSettings.acceptedCountries) && + Objects.equals(this.allowBankAccountFormatSelection, onboardingLinkSettings.allowBankAccountFormatSelection) && + Objects.equals(this.allowDebugUi, onboardingLinkSettings.allowDebugUi) && + Objects.equals(this.allowIntraRegionCrossBorderPayout, onboardingLinkSettings.allowIntraRegionCrossBorderPayout) && + Objects.equals(this.changeLegalEntityType, onboardingLinkSettings.changeLegalEntityType) && + Objects.equals(this.editPrefilledCountry, onboardingLinkSettings.editPrefilledCountry) && + Objects.equals(this.enforceLegalAge, onboardingLinkSettings.enforceLegalAge) && + Objects.equals(this.hideOnboardingIntroductionIndividual, onboardingLinkSettings.hideOnboardingIntroductionIndividual) && + Objects.equals(this.hideOnboardingIntroductionOrganization, onboardingLinkSettings.hideOnboardingIntroductionOrganization) && + Objects.equals(this.hideOnboardingIntroductionSoleProprietor, onboardingLinkSettings.hideOnboardingIntroductionSoleProprietor) && + Objects.equals(this.hideOnboardingIntroductionTrust, onboardingLinkSettings.hideOnboardingIntroductionTrust) && + Objects.equals(this.instantBankVerification, onboardingLinkSettings.instantBankVerification) && + Objects.equals(this.requirePciSignEcomMoto, onboardingLinkSettings.requirePciSignEcomMoto) && + Objects.equals(this.requirePciSignEcommerce, onboardingLinkSettings.requirePciSignEcommerce) && + Objects.equals(this.requirePciSignPos, onboardingLinkSettings.requirePciSignPos) && + Objects.equals(this.requirePciSignPosMoto, onboardingLinkSettings.requirePciSignPosMoto) && + Objects.equals(this.transferInstrumentLimit, onboardingLinkSettings.transferInstrumentLimit); } @Override public int hashCode() { - return Objects.hash( - acceptedCountries, - allowBankAccountFormatSelection, - allowDebugUi, - allowIntraRegionCrossBorderPayout, - changeLegalEntityType, - editPrefilledCountry, - enforceLegalAge, - hideOnboardingIntroductionIndividual, - hideOnboardingIntroductionOrganization, - hideOnboardingIntroductionSoleProprietor, - hideOnboardingIntroductionTrust, - instantBankVerification, - requirePciSignEcomMoto, - requirePciSignEcommerce, - requirePciSignPos, - requirePciSignPosMoto, - transferInstrumentLimit); + return Objects.hash(acceptedCountries, allowBankAccountFormatSelection, allowDebugUi, allowIntraRegionCrossBorderPayout, changeLegalEntityType, editPrefilledCountry, enforceLegalAge, hideOnboardingIntroductionIndividual, hideOnboardingIntroductionOrganization, hideOnboardingIntroductionSoleProprietor, hideOnboardingIntroductionTrust, instantBankVerification, requirePciSignEcomMoto, requirePciSignEcommerce, requirePciSignPos, requirePciSignPosMoto, transferInstrumentLimit); } @Override @@ -905,54 +697,29 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OnboardingLinkSettings {\n"); sb.append(" acceptedCountries: ").append(toIndentedString(acceptedCountries)).append("\n"); - sb.append(" allowBankAccountFormatSelection: ") - .append(toIndentedString(allowBankAccountFormatSelection)) - .append("\n"); + sb.append(" allowBankAccountFormatSelection: ").append(toIndentedString(allowBankAccountFormatSelection)).append("\n"); sb.append(" allowDebugUi: ").append(toIndentedString(allowDebugUi)).append("\n"); - sb.append(" allowIntraRegionCrossBorderPayout: ") - .append(toIndentedString(allowIntraRegionCrossBorderPayout)) - .append("\n"); - sb.append(" changeLegalEntityType: ") - .append(toIndentedString(changeLegalEntityType)) - .append("\n"); - sb.append(" editPrefilledCountry: ") - .append(toIndentedString(editPrefilledCountry)) - .append("\n"); + sb.append(" allowIntraRegionCrossBorderPayout: ").append(toIndentedString(allowIntraRegionCrossBorderPayout)).append("\n"); + sb.append(" changeLegalEntityType: ").append(toIndentedString(changeLegalEntityType)).append("\n"); + sb.append(" editPrefilledCountry: ").append(toIndentedString(editPrefilledCountry)).append("\n"); sb.append(" enforceLegalAge: ").append(toIndentedString(enforceLegalAge)).append("\n"); - sb.append(" hideOnboardingIntroductionIndividual: ") - .append(toIndentedString(hideOnboardingIntroductionIndividual)) - .append("\n"); - sb.append(" hideOnboardingIntroductionOrganization: ") - .append(toIndentedString(hideOnboardingIntroductionOrganization)) - .append("\n"); - sb.append(" hideOnboardingIntroductionSoleProprietor: ") - .append(toIndentedString(hideOnboardingIntroductionSoleProprietor)) - .append("\n"); - sb.append(" hideOnboardingIntroductionTrust: ") - .append(toIndentedString(hideOnboardingIntroductionTrust)) - .append("\n"); - sb.append(" instantBankVerification: ") - .append(toIndentedString(instantBankVerification)) - .append("\n"); - sb.append(" requirePciSignEcomMoto: ") - .append(toIndentedString(requirePciSignEcomMoto)) - .append("\n"); - sb.append(" requirePciSignEcommerce: ") - .append(toIndentedString(requirePciSignEcommerce)) - .append("\n"); + sb.append(" hideOnboardingIntroductionIndividual: ").append(toIndentedString(hideOnboardingIntroductionIndividual)).append("\n"); + sb.append(" hideOnboardingIntroductionOrganization: ").append(toIndentedString(hideOnboardingIntroductionOrganization)).append("\n"); + sb.append(" hideOnboardingIntroductionSoleProprietor: ").append(toIndentedString(hideOnboardingIntroductionSoleProprietor)).append("\n"); + sb.append(" hideOnboardingIntroductionTrust: ").append(toIndentedString(hideOnboardingIntroductionTrust)).append("\n"); + sb.append(" instantBankVerification: ").append(toIndentedString(instantBankVerification)).append("\n"); + sb.append(" requirePciSignEcomMoto: ").append(toIndentedString(requirePciSignEcomMoto)).append("\n"); + sb.append(" requirePciSignEcommerce: ").append(toIndentedString(requirePciSignEcommerce)).append("\n"); sb.append(" requirePciSignPos: ").append(toIndentedString(requirePciSignPos)).append("\n"); - sb.append(" requirePciSignPosMoto: ") - .append(toIndentedString(requirePciSignPosMoto)) - .append("\n"); - sb.append(" transferInstrumentLimit: ") - .append(toIndentedString(transferInstrumentLimit)) - .append("\n"); + sb.append(" requirePciSignPosMoto: ").append(toIndentedString(requirePciSignPosMoto)).append("\n"); + sb.append(" transferInstrumentLimit: ").append(toIndentedString(transferInstrumentLimit)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -961,23 +728,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of OnboardingLinkSettings given an JSON string * * @param jsonString JSON string * @return An instance of OnboardingLinkSettings - * @throws JsonProcessingException if the JSON string is invalid with respect to - * OnboardingLinkSettings + * @throws JsonProcessingException if the JSON string is invalid with respect to OnboardingLinkSettings */ public static OnboardingLinkSettings fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, OnboardingLinkSettings.class); } - - /** - * Convert an instance of OnboardingLinkSettings to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of OnboardingLinkSettings to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/OnboardingTheme.java b/src/main/java/com/adyen/model/legalentitymanagement/OnboardingTheme.java index b8ac887ed..5864a6f58 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/OnboardingTheme.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/OnboardingTheme.java @@ -2,25 +2,34 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; -import java.util.*; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** OnboardingTheme */ +/** + * OnboardingTheme + */ @JsonPropertyOrder({ OnboardingTheme.JSON_PROPERTY_CREATED_AT, OnboardingTheme.JSON_PROPERTY_DESCRIPTION, @@ -28,6 +37,7 @@ OnboardingTheme.JSON_PROPERTY_PROPERTIES, OnboardingTheme.JSON_PROPERTY_UPDATED_AT }) + public class OnboardingTheme { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -44,7 +54,8 @@ public class OnboardingTheme { public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt"; private OffsetDateTime updatedAt; - public OnboardingTheme() {} + public OnboardingTheme() { + } /** * The creation date of the theme. @@ -59,7 +70,6 @@ public OnboardingTheme createdAt(OffsetDateTime createdAt) { /** * The creation date of the theme. - * * @return createdAt The creation date of the theme. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @@ -92,7 +102,6 @@ public OnboardingTheme description(String description) { /** * The description of the theme. - * * @return description The description of the theme. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -125,7 +134,6 @@ public OnboardingTheme id(String id) { /** * The unique identifier of the theme. - * * @return id The unique identifier of the theme. */ @JsonProperty(JSON_PROPERTY_ID) @@ -166,7 +174,6 @@ public OnboardingTheme putPropertiesItem(String key, String propertiesItem) { /** * The properties of the theme. - * * @return properties The properties of the theme. */ @JsonProperty(JSON_PROPERTY_PROPERTIES) @@ -199,7 +206,6 @@ public OnboardingTheme updatedAt(OffsetDateTime updatedAt) { /** * The date when the theme was last updated. - * * @return updatedAt The date when the theme was last updated. */ @JsonProperty(JSON_PROPERTY_UPDATED_AT) @@ -219,7 +225,9 @@ public void setUpdatedAt(OffsetDateTime updatedAt) { this.updatedAt = updatedAt; } - /** Return true if this OnboardingTheme object is equal to o. */ + /** + * Return true if this OnboardingTheme object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -229,11 +237,11 @@ public boolean equals(Object o) { return false; } OnboardingTheme onboardingTheme = (OnboardingTheme) o; - return Objects.equals(this.createdAt, onboardingTheme.createdAt) - && Objects.equals(this.description, onboardingTheme.description) - && Objects.equals(this.id, onboardingTheme.id) - && Objects.equals(this.properties, onboardingTheme.properties) - && Objects.equals(this.updatedAt, onboardingTheme.updatedAt); + return Objects.equals(this.createdAt, onboardingTheme.createdAt) && + Objects.equals(this.description, onboardingTheme.description) && + Objects.equals(this.id, onboardingTheme.id) && + Objects.equals(this.properties, onboardingTheme.properties) && + Objects.equals(this.updatedAt, onboardingTheme.updatedAt); } @Override @@ -255,7 +263,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -264,7 +273,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of OnboardingTheme given an JSON string * * @param jsonString JSON string @@ -274,12 +283,11 @@ private String toIndentedString(Object o) { public static OnboardingTheme fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, OnboardingTheme.class); } - - /** - * Convert an instance of OnboardingTheme to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of OnboardingTheme to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/OnboardingThemes.java b/src/main/java/com/adyen/model/legalentitymanagement/OnboardingThemes.java index 19920f98f..dcdbb2318 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/OnboardingThemes.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/OnboardingThemes.java @@ -2,29 +2,40 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.legalentitymanagement.OnboardingTheme; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** OnboardingThemes */ +/** + * OnboardingThemes + */ @JsonPropertyOrder({ OnboardingThemes.JSON_PROPERTY_NEXT, OnboardingThemes.JSON_PROPERTY_PREVIOUS, OnboardingThemes.JSON_PROPERTY_THEMES }) + public class OnboardingThemes { public static final String JSON_PROPERTY_NEXT = "next"; private String next; @@ -35,7 +46,8 @@ public class OnboardingThemes { public static final String JSON_PROPERTY_THEMES = "themes"; private List themes; - public OnboardingThemes() {} + public OnboardingThemes() { + } /** * The next page. Only present if there is a next page. @@ -50,7 +62,6 @@ public OnboardingThemes next(String next) { /** * The next page. Only present if there is a next page. - * * @return next The next page. Only present if there is a next page. */ @JsonProperty(JSON_PROPERTY_NEXT) @@ -83,7 +94,6 @@ public OnboardingThemes previous(String previous) { /** * The previous page. Only present if there is a previous page. - * * @return previous The previous page. Only present if there is a previous page. */ @JsonProperty(JSON_PROPERTY_PREVIOUS) @@ -124,7 +134,6 @@ public OnboardingThemes addThemesItem(OnboardingTheme themesItem) { /** * List of onboarding themes. - * * @return themes List of onboarding themes. */ @JsonProperty(JSON_PROPERTY_THEMES) @@ -144,7 +153,9 @@ public void setThemes(List themes) { this.themes = themes; } - /** Return true if this OnboardingThemes object is equal to o. */ + /** + * Return true if this OnboardingThemes object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +165,9 @@ public boolean equals(Object o) { return false; } OnboardingThemes onboardingThemes = (OnboardingThemes) o; - return Objects.equals(this.next, onboardingThemes.next) - && Objects.equals(this.previous, onboardingThemes.previous) - && Objects.equals(this.themes, onboardingThemes.themes); + return Objects.equals(this.next, onboardingThemes.next) && + Objects.equals(this.previous, onboardingThemes.previous) && + Objects.equals(this.themes, onboardingThemes.themes); } @Override @@ -176,7 +187,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -185,7 +197,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of OnboardingThemes given an JSON string * * @param jsonString JSON string @@ -195,12 +207,11 @@ private String toIndentedString(Object o) { public static OnboardingThemes fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, OnboardingThemes.class); } - - /** - * Convert an instance of OnboardingThemes to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of OnboardingThemes to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/Organization.java b/src/main/java/com/adyen/model/legalentitymanagement/Organization.java index df777866d..abb82393f 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/Organization.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/Organization.java @@ -2,28 +2,40 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.legalentitymanagement.Address; +import com.adyen.model.legalentitymanagement.FinancialReport; +import com.adyen.model.legalentitymanagement.PhoneNumber; +import com.adyen.model.legalentitymanagement.StockData; +import com.adyen.model.legalentitymanagement.TaxInformation; +import com.adyen.model.legalentitymanagement.TaxReportingClassification; +import com.adyen.model.legalentitymanagement.WebData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** Organization */ +/** + * Organization + */ @JsonPropertyOrder({ Organization.JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW, Organization.JSON_PROPERTY_DATE_OF_INCORPORATION, @@ -44,6 +56,7 @@ Organization.JSON_PROPERTY_VAT_NUMBER, Organization.JSON_PROPERTY_WEB_DATA }) + public class Organization { public static final String JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW = "countryOfGoverningLaw"; private String countryOfGoverningLaw; @@ -84,16 +97,14 @@ public class Organization { public static final String JSON_PROPERTY_TAX_INFORMATION = "taxInformation"; private List taxInformation; - public static final String JSON_PROPERTY_TAX_REPORTING_CLASSIFICATION = - "taxReportingClassification"; + public static final String JSON_PROPERTY_TAX_REPORTING_CLASSIFICATION = "taxReportingClassification"; private TaxReportingClassification taxReportingClassification; /** - * Type of organization. Possible values: **associationIncorporated**, - * **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, - * **partnershipIncorporated**, **privateCompany**. + * Type of organization. Possible values: **associationIncorporated**, **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, **partnershipIncorporated**, **privateCompany**. */ public enum TypeEnum { + ASSOCIATIONINCORPORATED(String.valueOf("associationIncorporated")), GOVERNMENTALORGANIZATION(String.valueOf("governmentalOrganization")), @@ -111,7 +122,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -132,11 +143,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -145,10 +152,10 @@ public static TypeEnum fromValue(String value) { private TypeEnum type; /** - * The reason the organization has not provided a VAT number. Possible values: - * **industryExemption**, **belowTaxThreshold**. + * The reason the organization has not provided a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. */ public enum VatAbsenceReasonEnum { + INDUSTRYEXEMPTION(String.valueOf("industryExemption")), BELOWTAXTHRESHOLD(String.valueOf("belowTaxThreshold")); @@ -158,7 +165,7 @@ public enum VatAbsenceReasonEnum { private String value; VatAbsenceReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -179,11 +186,7 @@ public static VatAbsenceReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "VatAbsenceReasonEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(VatAbsenceReasonEnum.values())); + LOG.warning("VatAbsenceReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(VatAbsenceReasonEnum.values())); return null; } } @@ -197,15 +200,13 @@ public static VatAbsenceReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_WEB_DATA = "webData"; private WebData webData; - public Organization() {} + public Organization() { + } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code of the governing country. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. * - * @param countryOfGoverningLaw The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing - * country. + * @param countryOfGoverningLaw The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. * @return the current {@code Organization} instance, allowing for method chaining */ public Organization countryOfGoverningLaw(String countryOfGoverningLaw) { @@ -214,12 +215,8 @@ public Organization countryOfGoverningLaw(String countryOfGoverningLaw) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code of the governing country. - * - * @return countryOfGoverningLaw The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing - * country. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. + * @return countryOfGoverningLaw The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. */ @JsonProperty(JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -228,12 +225,9 @@ public String getCountryOfGoverningLaw() { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code of the governing country. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. * - * @param countryOfGoverningLaw The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing - * country. + * @param countryOfGoverningLaw The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. */ @JsonProperty(JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,8 +238,7 @@ public void setCountryOfGoverningLaw(String countryOfGoverningLaw) { /** * The date when the organization was incorporated in YYYY-MM-DD format. * - * @param dateOfIncorporation The date when the organization was incorporated in YYYY-MM-DD - * format. + * @param dateOfIncorporation The date when the organization was incorporated in YYYY-MM-DD format. * @return the current {@code Organization} instance, allowing for method chaining */ public Organization dateOfIncorporation(String dateOfIncorporation) { @@ -255,9 +248,7 @@ public Organization dateOfIncorporation(String dateOfIncorporation) { /** * The date when the organization was incorporated in YYYY-MM-DD format. - * - * @return dateOfIncorporation The date when the organization was incorporated in YYYY-MM-DD - * format. + * @return dateOfIncorporation The date when the organization was incorporated in YYYY-MM-DD format. */ @JsonProperty(JSON_PROPERTY_DATE_OF_INCORPORATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -268,8 +259,7 @@ public String getDateOfIncorporation() { /** * The date when the organization was incorporated in YYYY-MM-DD format. * - * @param dateOfIncorporation The date when the organization was incorporated in YYYY-MM-DD - * format. + * @param dateOfIncorporation The date when the organization was incorporated in YYYY-MM-DD format. */ @JsonProperty(JSON_PROPERTY_DATE_OF_INCORPORATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -290,7 +280,6 @@ public Organization description(String description) { /** * Your description for the organization. - * * @return description Your description for the organization. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -313,8 +302,7 @@ public void setDescription(String description) { /** * The organization's trading name, if different from the registered legal name. * - * @param doingBusinessAs The organization's trading name, if different from the registered - * legal name. + * @param doingBusinessAs The organization's trading name, if different from the registered legal name. * @return the current {@code Organization} instance, allowing for method chaining */ public Organization doingBusinessAs(String doingBusinessAs) { @@ -324,9 +312,7 @@ public Organization doingBusinessAs(String doingBusinessAs) { /** * The organization's trading name, if different from the registered legal name. - * - * @return doingBusinessAs The organization's trading name, if different from the registered - * legal name. + * @return doingBusinessAs The organization's trading name, if different from the registered legal name. */ @JsonProperty(JSON_PROPERTY_DOING_BUSINESS_AS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -337,8 +323,7 @@ public String getDoingBusinessAs() { /** * The organization's trading name, if different from the registered legal name. * - * @param doingBusinessAs The organization's trading name, if different from the registered - * legal name. + * @param doingBusinessAs The organization's trading name, if different from the registered legal name. */ @JsonProperty(JSON_PROPERTY_DOING_BUSINESS_AS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -359,7 +344,6 @@ public Organization email(String email) { /** * The email address of the legal entity. - * * @return email The email address of the legal entity. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -400,7 +384,6 @@ public Organization addFinancialReportsItem(FinancialReport financialReportsItem /** * The financial report information of the organization. - * * @return financialReports The financial report information of the organization. */ @JsonProperty(JSON_PROPERTY_FINANCIAL_REPORTS) @@ -433,7 +416,6 @@ public Organization legalName(String legalName) { /** * The organization's legal name. - * * @return legalName The organization's legal name. */ @JsonProperty(JSON_PROPERTY_LEGAL_NAME) @@ -456,7 +438,7 @@ public void setLegalName(String legalName) { /** * phone * - * @param phone + * @param phone * @return the current {@code Organization} instance, allowing for method chaining */ public Organization phone(PhoneNumber phone) { @@ -466,8 +448,7 @@ public Organization phone(PhoneNumber phone) { /** * Get phone - * - * @return phone + * @return phone */ @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -478,7 +459,7 @@ public PhoneNumber getPhone() { /** * phone * - * @param phone + * @param phone */ @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -489,7 +470,7 @@ public void setPhone(PhoneNumber phone) { /** * principalPlaceOfBusiness * - * @param principalPlaceOfBusiness + * @param principalPlaceOfBusiness * @return the current {@code Organization} instance, allowing for method chaining */ public Organization principalPlaceOfBusiness(Address principalPlaceOfBusiness) { @@ -499,8 +480,7 @@ public Organization principalPlaceOfBusiness(Address principalPlaceOfBusiness) { /** * Get principalPlaceOfBusiness - * - * @return principalPlaceOfBusiness + * @return principalPlaceOfBusiness */ @JsonProperty(JSON_PROPERTY_PRINCIPAL_PLACE_OF_BUSINESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -511,7 +491,7 @@ public Address getPrincipalPlaceOfBusiness() { /** * principalPlaceOfBusiness * - * @param principalPlaceOfBusiness + * @param principalPlaceOfBusiness */ @JsonProperty(JSON_PROPERTY_PRINCIPAL_PLACE_OF_BUSINESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -522,7 +502,7 @@ public void setPrincipalPlaceOfBusiness(Address principalPlaceOfBusiness) { /** * registeredAddress * - * @param registeredAddress + * @param registeredAddress * @return the current {@code Organization} instance, allowing for method chaining */ public Organization registeredAddress(Address registeredAddress) { @@ -532,8 +512,7 @@ public Organization registeredAddress(Address registeredAddress) { /** * Get registeredAddress - * - * @return registeredAddress + * @return registeredAddress */ @JsonProperty(JSON_PROPERTY_REGISTERED_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -544,7 +523,7 @@ public Address getRegisteredAddress() { /** * registeredAddress * - * @param registeredAddress + * @param registeredAddress */ @JsonProperty(JSON_PROPERTY_REGISTERED_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -565,7 +544,6 @@ public Organization registrationNumber(String registrationNumber) { /** * The organization's registration number. - * * @return registrationNumber The organization's registration number. */ @JsonProperty(JSON_PROPERTY_REGISTRATION_NUMBER) @@ -588,7 +566,7 @@ public void setRegistrationNumber(String registrationNumber) { /** * stockData * - * @param stockData + * @param stockData * @return the current {@code Organization} instance, allowing for method chaining */ public Organization stockData(StockData stockData) { @@ -598,8 +576,7 @@ public Organization stockData(StockData stockData) { /** * Get stockData - * - * @return stockData + * @return stockData */ @JsonProperty(JSON_PROPERTY_STOCK_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -610,7 +587,7 @@ public StockData getStockData() { /** * stockData * - * @param stockData + * @param stockData */ @JsonProperty(JSON_PROPERTY_STOCK_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -639,7 +616,6 @@ public Organization addTaxInformationItem(TaxInformation taxInformationItem) { /** * The tax information of the organization. - * * @return taxInformation The tax information of the organization. */ @JsonProperty(JSON_PROPERTY_TAX_INFORMATION) @@ -662,19 +638,17 @@ public void setTaxInformation(List taxInformation) { /** * taxReportingClassification * - * @param taxReportingClassification + * @param taxReportingClassification * @return the current {@code Organization} instance, allowing for method chaining */ - public Organization taxReportingClassification( - TaxReportingClassification taxReportingClassification) { + public Organization taxReportingClassification(TaxReportingClassification taxReportingClassification) { this.taxReportingClassification = taxReportingClassification; return this; } /** * Get taxReportingClassification - * - * @return taxReportingClassification + * @return taxReportingClassification */ @JsonProperty(JSON_PROPERTY_TAX_REPORTING_CLASSIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -685,7 +659,7 @@ public TaxReportingClassification getTaxReportingClassification() { /** * taxReportingClassification * - * @param taxReportingClassification + * @param taxReportingClassification */ @JsonProperty(JSON_PROPERTY_TAX_REPORTING_CLASSIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -694,13 +668,9 @@ public void setTaxReportingClassification(TaxReportingClassification taxReportin } /** - * Type of organization. Possible values: **associationIncorporated**, - * **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, - * **partnershipIncorporated**, **privateCompany**. + * Type of organization. Possible values: **associationIncorporated**, **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, **partnershipIncorporated**, **privateCompany**. * - * @param type Type of organization. Possible values: **associationIncorporated**, - * **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, - * **partnershipIncorporated**, **privateCompany**. + * @param type Type of organization. Possible values: **associationIncorporated**, **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, **partnershipIncorporated**, **privateCompany**. * @return the current {@code Organization} instance, allowing for method chaining */ public Organization type(TypeEnum type) { @@ -709,13 +679,8 @@ public Organization type(TypeEnum type) { } /** - * Type of organization. Possible values: **associationIncorporated**, - * **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, - * **partnershipIncorporated**, **privateCompany**. - * - * @return type Type of organization. Possible values: **associationIncorporated**, - * **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, - * **partnershipIncorporated**, **privateCompany**. + * Type of organization. Possible values: **associationIncorporated**, **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, **partnershipIncorporated**, **privateCompany**. + * @return type Type of organization. Possible values: **associationIncorporated**, **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, **partnershipIncorporated**, **privateCompany**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -724,13 +689,9 @@ public TypeEnum getType() { } /** - * Type of organization. Possible values: **associationIncorporated**, - * **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, - * **partnershipIncorporated**, **privateCompany**. + * Type of organization. Possible values: **associationIncorporated**, **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, **partnershipIncorporated**, **privateCompany**. * - * @param type Type of organization. Possible values: **associationIncorporated**, - * **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, - * **partnershipIncorporated**, **privateCompany**. + * @param type Type of organization. Possible values: **associationIncorporated**, **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, **partnershipIncorporated**, **privateCompany**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -739,11 +700,9 @@ public void setType(TypeEnum type) { } /** - * The reason the organization has not provided a VAT number. Possible values: - * **industryExemption**, **belowTaxThreshold**. + * The reason the organization has not provided a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. * - * @param vatAbsenceReason The reason the organization has not provided a VAT number. Possible - * values: **industryExemption**, **belowTaxThreshold**. + * @param vatAbsenceReason The reason the organization has not provided a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. * @return the current {@code Organization} instance, allowing for method chaining */ public Organization vatAbsenceReason(VatAbsenceReasonEnum vatAbsenceReason) { @@ -752,11 +711,8 @@ public Organization vatAbsenceReason(VatAbsenceReasonEnum vatAbsenceReason) { } /** - * The reason the organization has not provided a VAT number. Possible values: - * **industryExemption**, **belowTaxThreshold**. - * - * @return vatAbsenceReason The reason the organization has not provided a VAT number. Possible - * values: **industryExemption**, **belowTaxThreshold**. + * The reason the organization has not provided a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + * @return vatAbsenceReason The reason the organization has not provided a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. */ @JsonProperty(JSON_PROPERTY_VAT_ABSENCE_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -765,11 +721,9 @@ public VatAbsenceReasonEnum getVatAbsenceReason() { } /** - * The reason the organization has not provided a VAT number. Possible values: - * **industryExemption**, **belowTaxThreshold**. + * The reason the organization has not provided a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. * - * @param vatAbsenceReason The reason the organization has not provided a VAT number. Possible - * values: **industryExemption**, **belowTaxThreshold**. + * @param vatAbsenceReason The reason the organization has not provided a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. */ @JsonProperty(JSON_PROPERTY_VAT_ABSENCE_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -790,7 +744,6 @@ public Organization vatNumber(String vatNumber) { /** * The organization's VAT number. - * * @return vatNumber The organization's VAT number. */ @JsonProperty(JSON_PROPERTY_VAT_NUMBER) @@ -813,7 +766,7 @@ public void setVatNumber(String vatNumber) { /** * webData * - * @param webData + * @param webData * @return the current {@code Organization} instance, allowing for method chaining */ public Organization webData(WebData webData) { @@ -823,8 +776,7 @@ public Organization webData(WebData webData) { /** * Get webData - * - * @return webData + * @return webData */ @JsonProperty(JSON_PROPERTY_WEB_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -835,7 +787,7 @@ public WebData getWebData() { /** * webData * - * @param webData + * @param webData */ @JsonProperty(JSON_PROPERTY_WEB_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -843,7 +795,9 @@ public void setWebData(WebData webData) { this.webData = webData; } - /** Return true if this Organization object is equal to o. */ + /** + * Return true if this Organization object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -853,75 +807,49 @@ public boolean equals(Object o) { return false; } Organization organization = (Organization) o; - return Objects.equals(this.countryOfGoverningLaw, organization.countryOfGoverningLaw) - && Objects.equals(this.dateOfIncorporation, organization.dateOfIncorporation) - && Objects.equals(this.description, organization.description) - && Objects.equals(this.doingBusinessAs, organization.doingBusinessAs) - && Objects.equals(this.email, organization.email) - && Objects.equals(this.financialReports, organization.financialReports) - && Objects.equals(this.legalName, organization.legalName) - && Objects.equals(this.phone, organization.phone) - && Objects.equals(this.principalPlaceOfBusiness, organization.principalPlaceOfBusiness) - && Objects.equals(this.registeredAddress, organization.registeredAddress) - && Objects.equals(this.registrationNumber, organization.registrationNumber) - && Objects.equals(this.stockData, organization.stockData) - && Objects.equals(this.taxInformation, organization.taxInformation) - && Objects.equals(this.taxReportingClassification, organization.taxReportingClassification) - && Objects.equals(this.type, organization.type) - && Objects.equals(this.vatAbsenceReason, organization.vatAbsenceReason) - && Objects.equals(this.vatNumber, organization.vatNumber) - && Objects.equals(this.webData, organization.webData); + return Objects.equals(this.countryOfGoverningLaw, organization.countryOfGoverningLaw) && + Objects.equals(this.dateOfIncorporation, organization.dateOfIncorporation) && + Objects.equals(this.description, organization.description) && + Objects.equals(this.doingBusinessAs, organization.doingBusinessAs) && + Objects.equals(this.email, organization.email) && + Objects.equals(this.financialReports, organization.financialReports) && + Objects.equals(this.legalName, organization.legalName) && + Objects.equals(this.phone, organization.phone) && + Objects.equals(this.principalPlaceOfBusiness, organization.principalPlaceOfBusiness) && + Objects.equals(this.registeredAddress, organization.registeredAddress) && + Objects.equals(this.registrationNumber, organization.registrationNumber) && + Objects.equals(this.stockData, organization.stockData) && + Objects.equals(this.taxInformation, organization.taxInformation) && + Objects.equals(this.taxReportingClassification, organization.taxReportingClassification) && + Objects.equals(this.type, organization.type) && + Objects.equals(this.vatAbsenceReason, organization.vatAbsenceReason) && + Objects.equals(this.vatNumber, organization.vatNumber) && + Objects.equals(this.webData, organization.webData); } @Override public int hashCode() { - return Objects.hash( - countryOfGoverningLaw, - dateOfIncorporation, - description, - doingBusinessAs, - email, - financialReports, - legalName, - phone, - principalPlaceOfBusiness, - registeredAddress, - registrationNumber, - stockData, - taxInformation, - taxReportingClassification, - type, - vatAbsenceReason, - vatNumber, - webData); + return Objects.hash(countryOfGoverningLaw, dateOfIncorporation, description, doingBusinessAs, email, financialReports, legalName, phone, principalPlaceOfBusiness, registeredAddress, registrationNumber, stockData, taxInformation, taxReportingClassification, type, vatAbsenceReason, vatNumber, webData); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Organization {\n"); - sb.append(" countryOfGoverningLaw: ") - .append(toIndentedString(countryOfGoverningLaw)) - .append("\n"); - sb.append(" dateOfIncorporation: ") - .append(toIndentedString(dateOfIncorporation)) - .append("\n"); + sb.append(" countryOfGoverningLaw: ").append(toIndentedString(countryOfGoverningLaw)).append("\n"); + sb.append(" dateOfIncorporation: ").append(toIndentedString(dateOfIncorporation)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" doingBusinessAs: ").append(toIndentedString(doingBusinessAs)).append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" financialReports: ").append(toIndentedString(financialReports)).append("\n"); sb.append(" legalName: ").append(toIndentedString(legalName)).append("\n"); sb.append(" phone: ").append(toIndentedString(phone)).append("\n"); - sb.append(" principalPlaceOfBusiness: ") - .append(toIndentedString(principalPlaceOfBusiness)) - .append("\n"); + sb.append(" principalPlaceOfBusiness: ").append(toIndentedString(principalPlaceOfBusiness)).append("\n"); sb.append(" registeredAddress: ").append(toIndentedString(registeredAddress)).append("\n"); sb.append(" registrationNumber: ").append(toIndentedString(registrationNumber)).append("\n"); sb.append(" stockData: ").append(toIndentedString(stockData)).append("\n"); sb.append(" taxInformation: ").append(toIndentedString(taxInformation)).append("\n"); - sb.append(" taxReportingClassification: ") - .append(toIndentedString(taxReportingClassification)) - .append("\n"); + sb.append(" taxReportingClassification: ").append(toIndentedString(taxReportingClassification)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" vatAbsenceReason: ").append(toIndentedString(vatAbsenceReason)).append("\n"); sb.append(" vatNumber: ").append(toIndentedString(vatNumber)).append("\n"); @@ -931,7 +859,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -940,7 +869,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Organization given an JSON string * * @param jsonString JSON string @@ -950,12 +879,11 @@ private String toIndentedString(Object o) { public static Organization fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Organization.class); } - - /** - * Convert an instance of Organization to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Organization to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/OwnerEntity.java b/src/main/java/com/adyen/model/legalentitymanagement/OwnerEntity.java index e69d72bac..fc6676988 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/OwnerEntity.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/OwnerEntity.java @@ -2,23 +2,36 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** OwnerEntity */ -@JsonPropertyOrder({OwnerEntity.JSON_PROPERTY_ID, OwnerEntity.JSON_PROPERTY_TYPE}) + +/** + * OwnerEntity + */ +@JsonPropertyOrder({ + OwnerEntity.JSON_PROPERTY_ID, + OwnerEntity.JSON_PROPERTY_TYPE +}) + public class OwnerEntity { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -26,20 +39,13 @@ public class OwnerEntity { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public OwnerEntity() {} + public OwnerEntity() { + } /** - * Unique identifier of the resource that owns the document. For `type` **legalEntity**, - * this value is the unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). - * For `type` **bankAccount**, this value is the unique identifier of the [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * Unique identifier of the resource that owns the document. For `type` **legalEntity**, this value is the unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). For `type` **bankAccount**, this value is the unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). * - * @param id Unique identifier of the resource that owns the document. For `type` - * **legalEntity**, this value is the unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). - * For `type` **bankAccount**, this value is the unique identifier of the [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * @param id Unique identifier of the resource that owns the document. For `type` **legalEntity**, this value is the unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). For `type` **bankAccount**, this value is the unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). * @return the current {@code OwnerEntity} instance, allowing for method chaining */ public OwnerEntity id(String id) { @@ -48,17 +54,8 @@ public OwnerEntity id(String id) { } /** - * Unique identifier of the resource that owns the document. For `type` **legalEntity**, - * this value is the unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). - * For `type` **bankAccount**, this value is the unique identifier of the [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). - * - * @return id Unique identifier of the resource that owns the document. For `type` - * **legalEntity**, this value is the unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). - * For `type` **bankAccount**, this value is the unique identifier of the [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * Unique identifier of the resource that owns the document. For `type` **legalEntity**, this value is the unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). For `type` **bankAccount**, this value is the unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * @return id Unique identifier of the resource that owns the document. For `type` **legalEntity**, this value is the unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). For `type` **bankAccount**, this value is the unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -67,17 +64,9 @@ public String getId() { } /** - * Unique identifier of the resource that owns the document. For `type` **legalEntity**, - * this value is the unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). - * For `type` **bankAccount**, this value is the unique identifier of the [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * Unique identifier of the resource that owns the document. For `type` **legalEntity**, this value is the unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). For `type` **bankAccount**, this value is the unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). * - * @param id Unique identifier of the resource that owns the document. For `type` - * **legalEntity**, this value is the unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). - * For `type` **bankAccount**, this value is the unique identifier of the [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * @param id Unique identifier of the resource that owns the document. For `type` **legalEntity**, this value is the unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). For `type` **bankAccount**, this value is the unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -86,10 +75,9 @@ public void setId(String id) { } /** - * Type of resource that owns the document. Possible values: **legalEntity**, **bankAccount**. + * Type of resource that owns the document. Possible values: **legalEntity**, **bankAccount**. * - * @param type Type of resource that owns the document. Possible values: **legalEntity**, - * **bankAccount**. + * @param type Type of resource that owns the document. Possible values: **legalEntity**, **bankAccount**. * @return the current {@code OwnerEntity} instance, allowing for method chaining */ public OwnerEntity type(String type) { @@ -98,10 +86,8 @@ public OwnerEntity type(String type) { } /** - * Type of resource that owns the document. Possible values: **legalEntity**, **bankAccount**. - * - * @return type Type of resource that owns the document. Possible values: **legalEntity**, - * **bankAccount**. + * Type of resource that owns the document. Possible values: **legalEntity**, **bankAccount**. + * @return type Type of resource that owns the document. Possible values: **legalEntity**, **bankAccount**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,10 +96,9 @@ public String getType() { } /** - * Type of resource that owns the document. Possible values: **legalEntity**, **bankAccount**. + * Type of resource that owns the document. Possible values: **legalEntity**, **bankAccount**. * - * @param type Type of resource that owns the document. Possible values: **legalEntity**, - * **bankAccount**. + * @param type Type of resource that owns the document. Possible values: **legalEntity**, **bankAccount**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,7 +106,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this OwnerEntity object is equal to o. */ + /** + * Return true if this OwnerEntity object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -131,7 +118,8 @@ public boolean equals(Object o) { return false; } OwnerEntity ownerEntity = (OwnerEntity) o; - return Objects.equals(this.id, ownerEntity.id) && Objects.equals(this.type, ownerEntity.type); + return Objects.equals(this.id, ownerEntity.id) && + Objects.equals(this.type, ownerEntity.type); } @Override @@ -150,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -159,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of OwnerEntity given an JSON string * * @param jsonString JSON string @@ -169,12 +158,11 @@ private String toIndentedString(Object o) { public static OwnerEntity fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, OwnerEntity.class); } - - /** - * Convert an instance of OwnerEntity to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of OwnerEntity to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/PLLocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/PLLocalAccountIdentification.java index 036d0ad13..efe5d59f4 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/PLLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/PLLocalAccountIdentification.java @@ -2,36 +2,45 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** PLLocalAccountIdentification */ + +/** + * PLLocalAccountIdentification + */ @JsonPropertyOrder({ PLLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, PLLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class PLLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - /** **plLocal** */ + /** + * **plLocal** + */ public enum TypeEnum { + PLLOCAL(String.valueOf("plLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -39,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -72,16 +77,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PLLocalAccountIdentification() {} + public PLLocalAccountIdentification() { + } /** - * The 26-digit bank account number ([Numer - * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or - * whitespace. + * The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. * - * @param accountNumber The 26-digit bank account number ([Numer - * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or - * whitespace. + * @param accountNumber The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. * @return the current {@code PLLocalAccountIdentification} instance, allowing for method chaining */ public PLLocalAccountIdentification accountNumber(String accountNumber) { @@ -90,13 +92,8 @@ public PLLocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 26-digit bank account number ([Numer - * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or - * whitespace. - * - * @return accountNumber The 26-digit bank account number ([Numer - * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or - * whitespace. + * The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. + * @return accountNumber The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,13 +102,9 @@ public String getAccountNumber() { } /** - * The 26-digit bank account number ([Numer - * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or - * whitespace. + * The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. * - * @param accountNumber The 26-digit bank account number ([Numer - * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or - * whitespace. + * @param accountNumber The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,7 +125,6 @@ public PLLocalAccountIdentification type(TypeEnum type) { /** * **plLocal** - * * @return type **plLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -152,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this PLLocalAccountIdentification object is equal to o. */ + /** + * Return true if this PLLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -162,8 +156,8 @@ public boolean equals(Object o) { return false; } PLLocalAccountIdentification plLocalAccountIdentification = (PLLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, plLocalAccountIdentification.accountNumber) - && Objects.equals(this.type, plLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, plLocalAccountIdentification.accountNumber) && + Objects.equals(this.type, plLocalAccountIdentification.type); } @Override @@ -182,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -191,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PLLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of PLLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PLLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to PLLocalAccountIdentification */ - public static PLLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static PLLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PLLocalAccountIdentification.class); } - - /** - * Convert an instance of PLLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PLLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/PciDocumentInfo.java b/src/main/java/com/adyen/model/legalentitymanagement/PciDocumentInfo.java index 0ca4baa81..b798ff4d9 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/PciDocumentInfo.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/PciDocumentInfo.java @@ -2,28 +2,38 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.time.OffsetDateTime; -import java.util.*; -/** PciDocumentInfo */ + +/** + * PciDocumentInfo + */ @JsonPropertyOrder({ PciDocumentInfo.JSON_PROPERTY_CREATED_AT, PciDocumentInfo.JSON_PROPERTY_ID, PciDocumentInfo.JSON_PROPERTY_VALID_UNTIL }) + public class PciDocumentInfo { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -34,14 +44,13 @@ public class PciDocumentInfo { public static final String JSON_PROPERTY_VALID_UNTIL = "validUntil"; private OffsetDateTime validUntil; - public PciDocumentInfo() {} + public PciDocumentInfo() { + } /** - * The date the questionnaire was created, in ISO 8601 extended format. For example, - * 2022-12-18T10:15:30+01:00 + * The date the questionnaire was created, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 * - * @param createdAt The date the questionnaire was created, in ISO 8601 extended format. For - * example, 2022-12-18T10:15:30+01:00 + * @param createdAt The date the questionnaire was created, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 * @return the current {@code PciDocumentInfo} instance, allowing for method chaining */ public PciDocumentInfo createdAt(OffsetDateTime createdAt) { @@ -50,11 +59,8 @@ public PciDocumentInfo createdAt(OffsetDateTime createdAt) { } /** - * The date the questionnaire was created, in ISO 8601 extended format. For example, - * 2022-12-18T10:15:30+01:00 - * - * @return createdAt The date the questionnaire was created, in ISO 8601 extended format. For - * example, 2022-12-18T10:15:30+01:00 + * The date the questionnaire was created, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 + * @return createdAt The date the questionnaire was created, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,11 +69,9 @@ public OffsetDateTime getCreatedAt() { } /** - * The date the questionnaire was created, in ISO 8601 extended format. For example, - * 2022-12-18T10:15:30+01:00 + * The date the questionnaire was created, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 * - * @param createdAt The date the questionnaire was created, in ISO 8601 extended format. For - * example, 2022-12-18T10:15:30+01:00 + * @param createdAt The date the questionnaire was created, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -88,7 +92,6 @@ public PciDocumentInfo id(String id) { /** * The unique identifier of the signed questionnaire. - * * @return id The unique identifier of the signed questionnaire. */ @JsonProperty(JSON_PROPERTY_ID) @@ -109,11 +112,9 @@ public void setId(String id) { } /** - * The expiration date of the questionnaire, in ISO 8601 extended format. For example, - * 2022-12-18T10:15:30+01:00 + * The expiration date of the questionnaire, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 * - * @param validUntil The expiration date of the questionnaire, in ISO 8601 extended format. For - * example, 2022-12-18T10:15:30+01:00 + * @param validUntil The expiration date of the questionnaire, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 * @return the current {@code PciDocumentInfo} instance, allowing for method chaining */ public PciDocumentInfo validUntil(OffsetDateTime validUntil) { @@ -122,11 +123,8 @@ public PciDocumentInfo validUntil(OffsetDateTime validUntil) { } /** - * The expiration date of the questionnaire, in ISO 8601 extended format. For example, - * 2022-12-18T10:15:30+01:00 - * - * @return validUntil The expiration date of the questionnaire, in ISO 8601 extended format. For - * example, 2022-12-18T10:15:30+01:00 + * The expiration date of the questionnaire, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 + * @return validUntil The expiration date of the questionnaire, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 */ @JsonProperty(JSON_PROPERTY_VALID_UNTIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,11 +133,9 @@ public OffsetDateTime getValidUntil() { } /** - * The expiration date of the questionnaire, in ISO 8601 extended format. For example, - * 2022-12-18T10:15:30+01:00 + * The expiration date of the questionnaire, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 * - * @param validUntil The expiration date of the questionnaire, in ISO 8601 extended format. For - * example, 2022-12-18T10:15:30+01:00 + * @param validUntil The expiration date of the questionnaire, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 */ @JsonProperty(JSON_PROPERTY_VALID_UNTIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,7 +143,9 @@ public void setValidUntil(OffsetDateTime validUntil) { this.validUntil = validUntil; } - /** Return true if this PciDocumentInfo object is equal to o. */ + /** + * Return true if this PciDocumentInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -157,9 +155,9 @@ public boolean equals(Object o) { return false; } PciDocumentInfo pciDocumentInfo = (PciDocumentInfo) o; - return Objects.equals(this.createdAt, pciDocumentInfo.createdAt) - && Objects.equals(this.id, pciDocumentInfo.id) - && Objects.equals(this.validUntil, pciDocumentInfo.validUntil); + return Objects.equals(this.createdAt, pciDocumentInfo.createdAt) && + Objects.equals(this.id, pciDocumentInfo.id) && + Objects.equals(this.validUntil, pciDocumentInfo.validUntil); } @Override @@ -179,7 +177,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -188,7 +187,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PciDocumentInfo given an JSON string * * @param jsonString JSON string @@ -198,12 +197,11 @@ private String toIndentedString(Object o) { public static PciDocumentInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PciDocumentInfo.class); } - - /** - * Convert an instance of PciDocumentInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PciDocumentInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/PciSigningRequest.java b/src/main/java/com/adyen/model/legalentitymanagement/PciSigningRequest.java index 770c47a04..75fb86fba 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/PciSigningRequest.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/PciSigningRequest.java @@ -2,28 +2,38 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PciSigningRequest */ +/** + * PciSigningRequest + */ @JsonPropertyOrder({ PciSigningRequest.JSON_PROPERTY_PCI_TEMPLATE_REFERENCES, PciSigningRequest.JSON_PROPERTY_SIGNED_BY }) + public class PciSigningRequest { public static final String JSON_PROPERTY_PCI_TEMPLATE_REFERENCES = "pciTemplateReferences"; private List pciTemplateReferences; @@ -31,13 +41,13 @@ public class PciSigningRequest { public static final String JSON_PROPERTY_SIGNED_BY = "signedBy"; private String signedBy; - public PciSigningRequest() {} + public PciSigningRequest() { + } /** * The array of Adyen-generated unique identifiers for the questionnaires. * - * @param pciTemplateReferences The array of Adyen-generated unique identifiers for the - * questionnaires. + * @param pciTemplateReferences The array of Adyen-generated unique identifiers for the questionnaires. * @return the current {@code PciSigningRequest} instance, allowing for method chaining */ public PciSigningRequest pciTemplateReferences(List pciTemplateReferences) { @@ -55,9 +65,7 @@ public PciSigningRequest addPciTemplateReferencesItem(String pciTemplateReferenc /** * The array of Adyen-generated unique identifiers for the questionnaires. - * - * @return pciTemplateReferences The array of Adyen-generated unique identifiers for the - * questionnaires. + * @return pciTemplateReferences The array of Adyen-generated unique identifiers for the questionnaires. */ @JsonProperty(JSON_PROPERTY_PCI_TEMPLATE_REFERENCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,8 +76,7 @@ public List getPciTemplateReferences() { /** * The array of Adyen-generated unique identifiers for the questionnaires. * - * @param pciTemplateReferences The array of Adyen-generated unique identifiers for the - * questionnaires. + * @param pciTemplateReferences The array of Adyen-generated unique identifiers for the questionnaires. */ @JsonProperty(JSON_PROPERTY_PCI_TEMPLATE_REFERENCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -78,13 +85,9 @@ public void setPciTemplateReferences(List pciTemplateReferences) { } /** - * The [legal entity - * ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) - * of the individual who signs the PCI questionnaire. + * The [legal entity ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) of the individual who signs the PCI questionnaire. * - * @param signedBy The [legal entity - * ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) - * of the individual who signs the PCI questionnaire. + * @param signedBy The [legal entity ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) of the individual who signs the PCI questionnaire. * @return the current {@code PciSigningRequest} instance, allowing for method chaining */ public PciSigningRequest signedBy(String signedBy) { @@ -93,13 +96,8 @@ public PciSigningRequest signedBy(String signedBy) { } /** - * The [legal entity - * ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) - * of the individual who signs the PCI questionnaire. - * - * @return signedBy The [legal entity - * ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) - * of the individual who signs the PCI questionnaire. + * The [legal entity ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) of the individual who signs the PCI questionnaire. + * @return signedBy The [legal entity ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) of the individual who signs the PCI questionnaire. */ @JsonProperty(JSON_PROPERTY_SIGNED_BY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,13 +106,9 @@ public String getSignedBy() { } /** - * The [legal entity - * ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) - * of the individual who signs the PCI questionnaire. + * The [legal entity ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) of the individual who signs the PCI questionnaire. * - * @param signedBy The [legal entity - * ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) - * of the individual who signs the PCI questionnaire. + * @param signedBy The [legal entity ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) of the individual who signs the PCI questionnaire. */ @JsonProperty(JSON_PROPERTY_SIGNED_BY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -122,7 +116,9 @@ public void setSignedBy(String signedBy) { this.signedBy = signedBy; } - /** Return true if this PciSigningRequest object is equal to o. */ + /** + * Return true if this PciSigningRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -132,8 +128,8 @@ public boolean equals(Object o) { return false; } PciSigningRequest pciSigningRequest = (PciSigningRequest) o; - return Objects.equals(this.pciTemplateReferences, pciSigningRequest.pciTemplateReferences) - && Objects.equals(this.signedBy, pciSigningRequest.signedBy); + return Objects.equals(this.pciTemplateReferences, pciSigningRequest.pciTemplateReferences) && + Objects.equals(this.signedBy, pciSigningRequest.signedBy); } @Override @@ -145,16 +141,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PciSigningRequest {\n"); - sb.append(" pciTemplateReferences: ") - .append(toIndentedString(pciTemplateReferences)) - .append("\n"); + sb.append(" pciTemplateReferences: ").append(toIndentedString(pciTemplateReferences)).append("\n"); sb.append(" signedBy: ").append(toIndentedString(signedBy)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -163,7 +158,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PciSigningRequest given an JSON string * * @param jsonString JSON string @@ -173,12 +168,11 @@ private String toIndentedString(Object o) { public static PciSigningRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PciSigningRequest.class); } - - /** - * Convert an instance of PciSigningRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PciSigningRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/PciSigningResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/PciSigningResponse.java index dfdc01879..069a9e4d0 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/PciSigningResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/PciSigningResponse.java @@ -2,28 +2,38 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PciSigningResponse */ +/** + * PciSigningResponse + */ @JsonPropertyOrder({ PciSigningResponse.JSON_PROPERTY_PCI_QUESTIONNAIRE_IDS, PciSigningResponse.JSON_PROPERTY_SIGNED_BY }) + public class PciSigningResponse { public static final String JSON_PROPERTY_PCI_QUESTIONNAIRE_IDS = "pciQuestionnaireIds"; private List pciQuestionnaireIds; @@ -31,7 +41,8 @@ public class PciSigningResponse { public static final String JSON_PROPERTY_SIGNED_BY = "signedBy"; private String signedBy; - public PciSigningResponse() {} + public PciSigningResponse() { + } /** * The unique identifiers of the signed PCI documents. @@ -54,7 +65,6 @@ public PciSigningResponse addPciQuestionnaireIdsItem(String pciQuestionnaireIdsI /** * The unique identifiers of the signed PCI documents. - * * @return pciQuestionnaireIds The unique identifiers of the signed PCI documents. */ @JsonProperty(JSON_PROPERTY_PCI_QUESTIONNAIRE_IDS) @@ -75,13 +85,9 @@ public void setPciQuestionnaireIds(List pciQuestionnaireIds) { } /** - * The [legal entity - * ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) - * of the individual who signed the PCI questionnaire. + * The [legal entity ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) of the individual who signed the PCI questionnaire. * - * @param signedBy The [legal entity - * ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) - * of the individual who signed the PCI questionnaire. + * @param signedBy The [legal entity ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) of the individual who signed the PCI questionnaire. * @return the current {@code PciSigningResponse} instance, allowing for method chaining */ public PciSigningResponse signedBy(String signedBy) { @@ -90,13 +96,8 @@ public PciSigningResponse signedBy(String signedBy) { } /** - * The [legal entity - * ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) - * of the individual who signed the PCI questionnaire. - * - * @return signedBy The [legal entity - * ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) - * of the individual who signed the PCI questionnaire. + * The [legal entity ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) of the individual who signed the PCI questionnaire. + * @return signedBy The [legal entity ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) of the individual who signed the PCI questionnaire. */ @JsonProperty(JSON_PROPERTY_SIGNED_BY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,13 +106,9 @@ public String getSignedBy() { } /** - * The [legal entity - * ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) - * of the individual who signed the PCI questionnaire. + * The [legal entity ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) of the individual who signed the PCI questionnaire. * - * @param signedBy The [legal entity - * ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) - * of the individual who signed the PCI questionnaire. + * @param signedBy The [legal entity ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) of the individual who signed the PCI questionnaire. */ @JsonProperty(JSON_PROPERTY_SIGNED_BY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -119,7 +116,9 @@ public void setSignedBy(String signedBy) { this.signedBy = signedBy; } - /** Return true if this PciSigningResponse object is equal to o. */ + /** + * Return true if this PciSigningResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -129,8 +128,8 @@ public boolean equals(Object o) { return false; } PciSigningResponse pciSigningResponse = (PciSigningResponse) o; - return Objects.equals(this.pciQuestionnaireIds, pciSigningResponse.pciQuestionnaireIds) - && Objects.equals(this.signedBy, pciSigningResponse.signedBy); + return Objects.equals(this.pciQuestionnaireIds, pciSigningResponse.pciQuestionnaireIds) && + Objects.equals(this.signedBy, pciSigningResponse.signedBy); } @Override @@ -142,16 +141,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PciSigningResponse {\n"); - sb.append(" pciQuestionnaireIds: ") - .append(toIndentedString(pciQuestionnaireIds)) - .append("\n"); + sb.append(" pciQuestionnaireIds: ").append(toIndentedString(pciQuestionnaireIds)).append("\n"); sb.append(" signedBy: ").append(toIndentedString(signedBy)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -160,23 +158,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PciSigningResponse given an JSON string * * @param jsonString JSON string * @return An instance of PciSigningResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PciSigningResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to PciSigningResponse */ public static PciSigningResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PciSigningResponse.class); } - - /** - * Convert an instance of PciSigningResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PciSigningResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/PhoneNumber.java b/src/main/java/com/adyen/model/legalentitymanagement/PhoneNumber.java index ea075054a..4e11f975a 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/PhoneNumber.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/PhoneNumber.java @@ -2,28 +2,37 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** PhoneNumber */ + +/** + * PhoneNumber + */ @JsonPropertyOrder({ PhoneNumber.JSON_PROPERTY_NUMBER, PhoneNumber.JSON_PROPERTY_PHONE_COUNTRY_CODE, PhoneNumber.JSON_PROPERTY_TYPE }) + public class PhoneNumber { public static final String JSON_PROPERTY_NUMBER = "number"; private String number; @@ -34,10 +43,13 @@ public class PhoneNumber { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public PhoneNumber() {} + public PhoneNumber() { + } @JsonCreator - public PhoneNumber(@JsonProperty(JSON_PROPERTY_PHONE_COUNTRY_CODE) String phoneCountryCode) { + public PhoneNumber( + @JsonProperty(JSON_PROPERTY_PHONE_COUNTRY_CODE) String phoneCountryCode + ) { this(); this.phoneCountryCode = phoneCountryCode; } @@ -55,7 +67,6 @@ public PhoneNumber number(String number) { /** * The full phone number, including the country code. For example, **+3112345678**. - * * @return number The full phone number, including the country code. For example, **+3112345678**. */ @JsonProperty(JSON_PROPERTY_NUMBER) @@ -76,15 +87,8 @@ public void setNumber(String number) { } /** - * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country - * code prefix of the phone number. For example, **US** or **NL**. The value of the - * `phoneCountryCode` is determined by the country code digit(s) of - * `phone.number` - * - * @return phoneCountryCode The two-letter [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code prefix of the phone - * number. For example, **US** or **NL**. The value of the `phoneCountryCode` is - * determined by the country code digit(s) of `phone.number` + * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code prefix of the phone number. For example, **US** or **NL**. The value of the `phoneCountryCode` is determined by the country code digit(s) of `phone.number` + * @return phoneCountryCode The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code prefix of the phone number. For example, **US** or **NL**. The value of the `phoneCountryCode` is determined by the country code digit(s) of `phone.number` */ @JsonProperty(JSON_PROPERTY_PHONE_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -92,11 +96,11 @@ public String getPhoneCountryCode() { return phoneCountryCode; } + /** - * The type of phone number. Possible values: **mobile**, **landline**, **sip**, **fax.** + * The type of phone number. Possible values: **mobile**, **landline**, **sip**, **fax.** * - * @param type The type of phone number. Possible values: **mobile**, **landline**, **sip**, - * **fax.** + * @param type The type of phone number. Possible values: **mobile**, **landline**, **sip**, **fax.** * @return the current {@code PhoneNumber} instance, allowing for method chaining */ public PhoneNumber type(String type) { @@ -105,10 +109,8 @@ public PhoneNumber type(String type) { } /** - * The type of phone number. Possible values: **mobile**, **landline**, **sip**, **fax.** - * - * @return type The type of phone number. Possible values: **mobile**, **landline**, **sip**, - * **fax.** + * The type of phone number. Possible values: **mobile**, **landline**, **sip**, **fax.** + * @return type The type of phone number. Possible values: **mobile**, **landline**, **sip**, **fax.** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,10 +119,9 @@ public String getType() { } /** - * The type of phone number. Possible values: **mobile**, **landline**, **sip**, **fax.** + * The type of phone number. Possible values: **mobile**, **landline**, **sip**, **fax.** * - * @param type The type of phone number. Possible values: **mobile**, **landline**, **sip**, - * **fax.** + * @param type The type of phone number. Possible values: **mobile**, **landline**, **sip**, **fax.** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,7 +129,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this PhoneNumber object is equal to o. */ + /** + * Return true if this PhoneNumber object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -138,9 +141,9 @@ public boolean equals(Object o) { return false; } PhoneNumber phoneNumber = (PhoneNumber) o; - return Objects.equals(this.number, phoneNumber.number) - && Objects.equals(this.phoneCountryCode, phoneNumber.phoneCountryCode) - && Objects.equals(this.type, phoneNumber.type); + return Objects.equals(this.number, phoneNumber.number) && + Objects.equals(this.phoneCountryCode, phoneNumber.phoneCountryCode) && + Objects.equals(this.type, phoneNumber.type); } @Override @@ -160,7 +163,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -169,7 +173,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PhoneNumber given an JSON string * * @param jsonString JSON string @@ -179,12 +183,11 @@ private String toIndentedString(Object o) { public static PhoneNumber fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PhoneNumber.class); } - - /** - * Convert an instance of PhoneNumber to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PhoneNumber to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/RemediatingAction.java b/src/main/java/com/adyen/model/legalentitymanagement/RemediatingAction.java index 709dae2ba..eb8b3a809 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/RemediatingAction.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/RemediatingAction.java @@ -2,23 +2,36 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** RemediatingAction */ -@JsonPropertyOrder({RemediatingAction.JSON_PROPERTY_CODE, RemediatingAction.JSON_PROPERTY_MESSAGE}) + +/** + * RemediatingAction + */ +@JsonPropertyOrder({ + RemediatingAction.JSON_PROPERTY_CODE, + RemediatingAction.JSON_PROPERTY_MESSAGE +}) + public class RemediatingAction { public static final String JSON_PROPERTY_CODE = "code"; private String code; @@ -26,12 +39,13 @@ public class RemediatingAction { public static final String JSON_PROPERTY_MESSAGE = "message"; private String message; - public RemediatingAction() {} + public RemediatingAction() { + } /** * code * - * @param code + * @param code * @return the current {@code RemediatingAction} instance, allowing for method chaining */ public RemediatingAction code(String code) { @@ -41,8 +55,7 @@ public RemediatingAction code(String code) { /** * Get code - * - * @return code + * @return code */ @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -53,7 +66,7 @@ public String getCode() { /** * code * - * @param code + * @param code */ @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,7 +77,7 @@ public void setCode(String code) { /** * message * - * @param message + * @param message * @return the current {@code RemediatingAction} instance, allowing for method chaining */ public RemediatingAction message(String message) { @@ -74,8 +87,7 @@ public RemediatingAction message(String message) { /** * Get message - * - * @return message + * @return message */ @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -86,7 +98,7 @@ public String getMessage() { /** * message * - * @param message + * @param message */ @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,7 +106,9 @@ public void setMessage(String message) { this.message = message; } - /** Return true if this RemediatingAction object is equal to o. */ + /** + * Return true if this RemediatingAction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -104,8 +118,8 @@ public boolean equals(Object o) { return false; } RemediatingAction remediatingAction = (RemediatingAction) o; - return Objects.equals(this.code, remediatingAction.code) - && Objects.equals(this.message, remediatingAction.message); + return Objects.equals(this.code, remediatingAction.code) && + Objects.equals(this.message, remediatingAction.message); } @Override @@ -124,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RemediatingAction given an JSON string * * @param jsonString JSON string @@ -143,12 +158,11 @@ private String toIndentedString(Object o) { public static RemediatingAction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RemediatingAction.class); } - - /** - * Convert an instance of RemediatingAction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RemediatingAction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/SELocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/SELocalAccountIdentification.java index 0315f0c46..4bcf2b2e3 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/SELocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/SELocalAccountIdentification.java @@ -2,31 +2,37 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** SELocalAccountIdentification */ + +/** + * SELocalAccountIdentification + */ @JsonPropertyOrder({ SELocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, SELocalAccountIdentification.JSON_PROPERTY_CLEARING_NUMBER, SELocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class SELocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -34,8 +40,11 @@ public class SELocalAccountIdentification { public static final String JSON_PROPERTY_CLEARING_NUMBER = "clearingNumber"; private String clearingNumber; - /** **seLocal** */ + /** + * **seLocal** + */ public enum TypeEnum { + SELOCAL(String.valueOf("seLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -43,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -76,16 +81,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public SELocalAccountIdentification() {} + public SELocalAccountIdentification() { + } /** - * The 7- to 10-digit bank account number - * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, - * separators, or whitespace. + * The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. * - * @param accountNumber The 7- to 10-digit bank account number - * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, - * separators, or whitespace. + * @param accountNumber The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. * @return the current {@code SELocalAccountIdentification} instance, allowing for method chaining */ public SELocalAccountIdentification accountNumber(String accountNumber) { @@ -94,13 +96,8 @@ public SELocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 7- to 10-digit bank account number - * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, - * separators, or whitespace. - * - * @return accountNumber The 7- to 10-digit bank account number - * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, - * separators, or whitespace. + * The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. + * @return accountNumber The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -109,13 +106,9 @@ public String getAccountNumber() { } /** - * The 7- to 10-digit bank account number - * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, - * separators, or whitespace. + * The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. * - * @param accountNumber The 7- to 10-digit bank account number - * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, - * separators, or whitespace. + * @param accountNumber The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,13 +117,9 @@ public void setAccountNumber(String accountNumber) { } /** - * The 4- to 5-digit clearing number - * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or - * whitespace. + * The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. * - * @param clearingNumber The 4- to 5-digit clearing number - * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or - * whitespace. + * @param clearingNumber The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. * @return the current {@code SELocalAccountIdentification} instance, allowing for method chaining */ public SELocalAccountIdentification clearingNumber(String clearingNumber) { @@ -139,13 +128,8 @@ public SELocalAccountIdentification clearingNumber(String clearingNumber) { } /** - * The 4- to 5-digit clearing number - * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or - * whitespace. - * - * @return clearingNumber The 4- to 5-digit clearing number - * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or - * whitespace. + * The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. + * @return clearingNumber The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_CLEARING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -154,13 +138,9 @@ public String getClearingNumber() { } /** - * The 4- to 5-digit clearing number - * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or - * whitespace. + * The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. * - * @param clearingNumber The 4- to 5-digit clearing number - * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or - * whitespace. + * @param clearingNumber The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_CLEARING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,7 +161,6 @@ public SELocalAccountIdentification type(TypeEnum type) { /** * **seLocal** - * * @return type **seLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -201,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this SELocalAccountIdentification object is equal to o. */ + /** + * Return true if this SELocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -211,9 +192,9 @@ public boolean equals(Object o) { return false; } SELocalAccountIdentification seLocalAccountIdentification = (SELocalAccountIdentification) o; - return Objects.equals(this.accountNumber, seLocalAccountIdentification.accountNumber) - && Objects.equals(this.clearingNumber, seLocalAccountIdentification.clearingNumber) - && Objects.equals(this.type, seLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, seLocalAccountIdentification.accountNumber) && + Objects.equals(this.clearingNumber, seLocalAccountIdentification.clearingNumber) && + Objects.equals(this.type, seLocalAccountIdentification.type); } @Override @@ -233,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -242,24 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SELocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of SELocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SELocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to SELocalAccountIdentification */ - public static SELocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static SELocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SELocalAccountIdentification.class); } - - /** - * Convert an instance of SELocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SELocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/SGLocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/SGLocalAccountIdentification.java index 10e34d286..941d7c03c 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/SGLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/SGLocalAccountIdentification.java @@ -2,31 +2,37 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** SGLocalAccountIdentification */ + +/** + * SGLocalAccountIdentification + */ @JsonPropertyOrder({ SGLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, SGLocalAccountIdentification.JSON_PROPERTY_BIC, SGLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class SGLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -34,8 +40,11 @@ public class SGLocalAccountIdentification { public static final String JSON_PROPERTY_BIC = "bic"; private String bic; - /** **sgLocal** */ + /** + * **sgLocal** + */ public enum TypeEnum { + SGLOCAL(String.valueOf("sgLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -43,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -76,7 +81,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public SGLocalAccountIdentification() {} + public SGLocalAccountIdentification() { + } /** * The 4- to 19-digit bank account number, without separators or whitespace. @@ -91,7 +97,6 @@ public SGLocalAccountIdentification accountNumber(String accountNumber) { /** * The 4- to 19-digit bank account number, without separators or whitespace. - * * @return accountNumber The 4- to 19-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -124,7 +129,6 @@ public SGLocalAccountIdentification bic(String bic) { /** * The bank's 8- or 11-character BIC or SWIFT code. - * * @return bic The bank's 8- or 11-character BIC or SWIFT code. */ @JsonProperty(JSON_PROPERTY_BIC) @@ -157,7 +161,6 @@ public SGLocalAccountIdentification type(TypeEnum type) { /** * **sgLocal** - * * @return type **sgLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -177,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this SGLocalAccountIdentification object is equal to o. */ + /** + * Return true if this SGLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -187,9 +192,9 @@ public boolean equals(Object o) { return false; } SGLocalAccountIdentification sgLocalAccountIdentification = (SGLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, sgLocalAccountIdentification.accountNumber) - && Objects.equals(this.bic, sgLocalAccountIdentification.bic) - && Objects.equals(this.type, sgLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, sgLocalAccountIdentification.accountNumber) && + Objects.equals(this.bic, sgLocalAccountIdentification.bic) && + Objects.equals(this.type, sgLocalAccountIdentification.type); } @Override @@ -209,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -218,24 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SGLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of SGLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SGLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to SGLocalAccountIdentification */ - public static SGLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static SGLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SGLocalAccountIdentification.class); } - - /** - * Convert an instance of SGLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SGLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/ServiceError.java b/src/main/java/com/adyen/model/legalentitymanagement/ServiceError.java index eb287c934..3eb6d1454 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/ServiceError.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/ServiceError.java @@ -2,22 +2,31 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ServiceError */ + +/** + * ServiceError + */ @JsonPropertyOrder({ ServiceError.JSON_PROPERTY_ERROR_CODE, ServiceError.JSON_PROPERTY_ERROR_TYPE, @@ -25,6 +34,7 @@ ServiceError.JSON_PROPERTY_PSP_REFERENCE, ServiceError.JSON_PROPERTY_STATUS }) + public class ServiceError { public static final String JSON_PROPERTY_ERROR_CODE = "errorCode"; private String errorCode; @@ -41,7 +51,8 @@ public class ServiceError { public static final String JSON_PROPERTY_STATUS = "status"; private Integer status; - public ServiceError() {} + public ServiceError() { + } /** * The error code mapped to the error message. @@ -56,7 +67,6 @@ public ServiceError errorCode(String errorCode) { /** * The error code mapped to the error message. - * * @return errorCode The error code mapped to the error message. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -89,7 +99,6 @@ public ServiceError errorType(String errorType) { /** * The category of the error. - * * @return errorType The category of the error. */ @JsonProperty(JSON_PROPERTY_ERROR_TYPE) @@ -122,7 +131,6 @@ public ServiceError message(String message) { /** * A short explanation of the issue. - * * @return message A short explanation of the issue. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -155,7 +163,6 @@ public ServiceError pspReference(String pspReference) { /** * The PSP reference of the payment. - * * @return pspReference The PSP reference of the payment. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -188,7 +195,6 @@ public ServiceError status(Integer status) { /** * The HTTP response status. - * * @return status The HTTP response status. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -208,7 +214,9 @@ public void setStatus(Integer status) { this.status = status; } - /** Return true if this ServiceError object is equal to o. */ + /** + * Return true if this ServiceError object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -218,11 +226,11 @@ public boolean equals(Object o) { return false; } ServiceError serviceError = (ServiceError) o; - return Objects.equals(this.errorCode, serviceError.errorCode) - && Objects.equals(this.errorType, serviceError.errorType) - && Objects.equals(this.message, serviceError.message) - && Objects.equals(this.pspReference, serviceError.pspReference) - && Objects.equals(this.status, serviceError.status); + return Objects.equals(this.errorCode, serviceError.errorCode) && + Objects.equals(this.errorType, serviceError.errorType) && + Objects.equals(this.message, serviceError.message) && + Objects.equals(this.pspReference, serviceError.pspReference) && + Objects.equals(this.status, serviceError.status); } @Override @@ -244,7 +252,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -253,7 +262,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ServiceError given an JSON string * * @param jsonString JSON string @@ -263,12 +272,11 @@ private String toIndentedString(Object o) { public static ServiceError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } - - /** - * Convert an instance of ServiceError to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ServiceError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/SetTaxElectronicDeliveryConsentRequest.java b/src/main/java/com/adyen/model/legalentitymanagement/SetTaxElectronicDeliveryConsentRequest.java index e1c9896c5..7ffb02010 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/SetTaxElectronicDeliveryConsentRequest.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/SetTaxElectronicDeliveryConsentRequest.java @@ -2,35 +2,47 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** SetTaxElectronicDeliveryConsentRequest */ -@JsonPropertyOrder({SetTaxElectronicDeliveryConsentRequest.JSON_PROPERTY_US1099K}) + +/** + * SetTaxElectronicDeliveryConsentRequest + */ +@JsonPropertyOrder({ + SetTaxElectronicDeliveryConsentRequest.JSON_PROPERTY_US1099K +}) + public class SetTaxElectronicDeliveryConsentRequest { public static final String JSON_PROPERTY_US1099K = "US1099k"; private Boolean us1099k; - public SetTaxElectronicDeliveryConsentRequest() {} + public SetTaxElectronicDeliveryConsentRequest() { + } /** * Consent to electronically deliver tax form US1099-K. * * @param us1099k Consent to electronically deliver tax form US1099-K. - * @return the current {@code SetTaxElectronicDeliveryConsentRequest} instance, allowing for - * method chaining + * @return the current {@code SetTaxElectronicDeliveryConsentRequest} instance, allowing for method chaining */ public SetTaxElectronicDeliveryConsentRequest us1099k(Boolean us1099k) { this.us1099k = us1099k; @@ -39,7 +51,6 @@ public SetTaxElectronicDeliveryConsentRequest us1099k(Boolean us1099k) { /** * Consent to electronically deliver tax form US1099-K. - * * @return us1099k Consent to electronically deliver tax form US1099-K. */ @JsonProperty(JSON_PROPERTY_US1099K) @@ -59,7 +70,9 @@ public void setUs1099k(Boolean us1099k) { this.us1099k = us1099k; } - /** Return true if this SetTaxElectronicDeliveryConsentRequest object is equal to o. */ + /** + * Return true if this SetTaxElectronicDeliveryConsentRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -68,8 +81,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SetTaxElectronicDeliveryConsentRequest setTaxElectronicDeliveryConsentRequest = - (SetTaxElectronicDeliveryConsentRequest) o; + SetTaxElectronicDeliveryConsentRequest setTaxElectronicDeliveryConsentRequest = (SetTaxElectronicDeliveryConsentRequest) o; return Objects.equals(this.us1099k, setTaxElectronicDeliveryConsentRequest.us1099k); } @@ -88,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -97,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SetTaxElectronicDeliveryConsentRequest given an JSON string * * @param jsonString JSON string * @return An instance of SetTaxElectronicDeliveryConsentRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SetTaxElectronicDeliveryConsentRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to SetTaxElectronicDeliveryConsentRequest */ - public static SetTaxElectronicDeliveryConsentRequest fromJson(String jsonString) - throws JsonProcessingException { + public static SetTaxElectronicDeliveryConsentRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SetTaxElectronicDeliveryConsentRequest.class); } - - /** - * Convert an instance of SetTaxElectronicDeliveryConsentRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SetTaxElectronicDeliveryConsentRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/SoleProprietorship.java b/src/main/java/com/adyen/model/legalentitymanagement/SoleProprietorship.java index cc02ed9eb..df0bf7980 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/SoleProprietorship.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/SoleProprietorship.java @@ -2,28 +2,36 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.legalentitymanagement.Address; +import com.adyen.model.legalentitymanagement.FinancialReport; +import com.adyen.model.legalentitymanagement.TaxInformation; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** SoleProprietorship */ + +/** + * SoleProprietorship + */ @JsonPropertyOrder({ SoleProprietorship.JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW, SoleProprietorship.JSON_PROPERTY_DATE_OF_INCORPORATION, @@ -38,6 +46,7 @@ SoleProprietorship.JSON_PROPERTY_VAT_ABSENCE_REASON, SoleProprietorship.JSON_PROPERTY_VAT_NUMBER }) + public class SoleProprietorship { public static final String JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW = "countryOfGoverningLaw"; private String countryOfGoverningLaw; @@ -70,10 +79,10 @@ public class SoleProprietorship { private List taxInformation; /** - * The reason for not providing a VAT number. Possible values: **industryExemption**, - * **belowTaxThreshold**. + * The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. */ public enum VatAbsenceReasonEnum { + INDUSTRYEXEMPTION(String.valueOf("industryExemption")), BELOWTAXTHRESHOLD(String.valueOf("belowTaxThreshold")); @@ -83,7 +92,7 @@ public enum VatAbsenceReasonEnum { private String value; VatAbsenceReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -104,11 +113,7 @@ public static VatAbsenceReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "VatAbsenceReasonEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(VatAbsenceReasonEnum.values())); + LOG.warning("VatAbsenceReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(VatAbsenceReasonEnum.values())); return null; } } @@ -119,15 +124,13 @@ public static VatAbsenceReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_VAT_NUMBER = "vatNumber"; private String vatNumber; - public SoleProprietorship() {} + public SoleProprietorship() { + } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code of the governing country. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. * - * @param countryOfGoverningLaw The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing - * country. + * @param countryOfGoverningLaw The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. * @return the current {@code SoleProprietorship} instance, allowing for method chaining */ public SoleProprietorship countryOfGoverningLaw(String countryOfGoverningLaw) { @@ -136,12 +139,8 @@ public SoleProprietorship countryOfGoverningLaw(String countryOfGoverningLaw) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code of the governing country. - * - * @return countryOfGoverningLaw The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing - * country. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. + * @return countryOfGoverningLaw The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. */ @JsonProperty(JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,12 +149,9 @@ public String getCountryOfGoverningLaw() { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code of the governing country. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. * - * @param countryOfGoverningLaw The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing - * country. + * @param countryOfGoverningLaw The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. */ @JsonProperty(JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -166,8 +162,7 @@ public void setCountryOfGoverningLaw(String countryOfGoverningLaw) { /** * The date when the legal arrangement was incorporated in YYYY-MM-DD format. * - * @param dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD - * format. + * @param dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD format. * @return the current {@code SoleProprietorship} instance, allowing for method chaining */ public SoleProprietorship dateOfIncorporation(String dateOfIncorporation) { @@ -177,9 +172,7 @@ public SoleProprietorship dateOfIncorporation(String dateOfIncorporation) { /** * The date when the legal arrangement was incorporated in YYYY-MM-DD format. - * - * @return dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD - * format. + * @return dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD format. */ @JsonProperty(JSON_PROPERTY_DATE_OF_INCORPORATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,8 +183,7 @@ public String getDateOfIncorporation() { /** * The date when the legal arrangement was incorporated in YYYY-MM-DD format. * - * @param dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD - * format. + * @param dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD format. */ @JsonProperty(JSON_PROPERTY_DATE_OF_INCORPORATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -212,7 +204,6 @@ public SoleProprietorship doingBusinessAs(String doingBusinessAs) { /** * The registered name, if different from the `name`. - * * @return doingBusinessAs The registered name, if different from the `name`. */ @JsonProperty(JSON_PROPERTY_DOING_BUSINESS_AS) @@ -253,7 +244,6 @@ public SoleProprietorship addFinancialReportsItem(FinancialReport financialRepor /** * The information from the financial report of the sole proprietorship. - * * @return financialReports The information from the financial report of the sole proprietorship. */ @JsonProperty(JSON_PROPERTY_FINANCIAL_REPORTS) @@ -286,7 +276,6 @@ public SoleProprietorship name(String name) { /** * The legal name. - * * @return name The legal name. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -309,7 +298,7 @@ public void setName(String name) { /** * principalPlaceOfBusiness * - * @param principalPlaceOfBusiness + * @param principalPlaceOfBusiness * @return the current {@code SoleProprietorship} instance, allowing for method chaining */ public SoleProprietorship principalPlaceOfBusiness(Address principalPlaceOfBusiness) { @@ -319,8 +308,7 @@ public SoleProprietorship principalPlaceOfBusiness(Address principalPlaceOfBusin /** * Get principalPlaceOfBusiness - * - * @return principalPlaceOfBusiness + * @return principalPlaceOfBusiness */ @JsonProperty(JSON_PROPERTY_PRINCIPAL_PLACE_OF_BUSINESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -331,7 +319,7 @@ public Address getPrincipalPlaceOfBusiness() { /** * principalPlaceOfBusiness * - * @param principalPlaceOfBusiness + * @param principalPlaceOfBusiness */ @JsonProperty(JSON_PROPERTY_PRINCIPAL_PLACE_OF_BUSINESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -342,7 +330,7 @@ public void setPrincipalPlaceOfBusiness(Address principalPlaceOfBusiness) { /** * registeredAddress * - * @param registeredAddress + * @param registeredAddress * @return the current {@code SoleProprietorship} instance, allowing for method chaining */ public SoleProprietorship registeredAddress(Address registeredAddress) { @@ -352,8 +340,7 @@ public SoleProprietorship registeredAddress(Address registeredAddress) { /** * Get registeredAddress - * - * @return registeredAddress + * @return registeredAddress */ @JsonProperty(JSON_PROPERTY_REGISTERED_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -364,7 +351,7 @@ public Address getRegisteredAddress() { /** * registeredAddress * - * @param registeredAddress + * @param registeredAddress */ @JsonProperty(JSON_PROPERTY_REGISTERED_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -385,7 +372,6 @@ public SoleProprietorship registrationNumber(String registrationNumber) { /** * The registration number. - * * @return registrationNumber The registration number. */ @JsonProperty(JSON_PROPERTY_REGISTRATION_NUMBER) @@ -418,7 +404,6 @@ public SoleProprietorship taxAbsent(Boolean taxAbsent) { /** * The tax information is absent. - * * @return taxAbsent The tax information is absent. */ @JsonProperty(JSON_PROPERTY_TAX_ABSENT) @@ -459,7 +444,6 @@ public SoleProprietorship addTaxInformationItem(TaxInformation taxInformationIte /** * The tax information of the entity. - * * @return taxInformation The tax information of the entity. */ @JsonProperty(JSON_PROPERTY_TAX_INFORMATION) @@ -480,11 +464,9 @@ public void setTaxInformation(List taxInformation) { } /** - * The reason for not providing a VAT number. Possible values: **industryExemption**, - * **belowTaxThreshold**. + * The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. * - * @param vatAbsenceReason The reason for not providing a VAT number. Possible values: - * **industryExemption**, **belowTaxThreshold**. + * @param vatAbsenceReason The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. * @return the current {@code SoleProprietorship} instance, allowing for method chaining */ public SoleProprietorship vatAbsenceReason(VatAbsenceReasonEnum vatAbsenceReason) { @@ -493,11 +475,8 @@ public SoleProprietorship vatAbsenceReason(VatAbsenceReasonEnum vatAbsenceReason } /** - * The reason for not providing a VAT number. Possible values: **industryExemption**, - * **belowTaxThreshold**. - * - * @return vatAbsenceReason The reason for not providing a VAT number. Possible values: - * **industryExemption**, **belowTaxThreshold**. + * The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + * @return vatAbsenceReason The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. */ @JsonProperty(JSON_PROPERTY_VAT_ABSENCE_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -506,11 +485,9 @@ public VatAbsenceReasonEnum getVatAbsenceReason() { } /** - * The reason for not providing a VAT number. Possible values: **industryExemption**, - * **belowTaxThreshold**. + * The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. * - * @param vatAbsenceReason The reason for not providing a VAT number. Possible values: - * **industryExemption**, **belowTaxThreshold**. + * @param vatAbsenceReason The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. */ @JsonProperty(JSON_PROPERTY_VAT_ABSENCE_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -531,7 +508,6 @@ public SoleProprietorship vatNumber(String vatNumber) { /** * The VAT number. - * * @return vatNumber The VAT number. */ @JsonProperty(JSON_PROPERTY_VAT_NUMBER) @@ -551,7 +527,9 @@ public void setVatNumber(String vatNumber) { this.vatNumber = vatNumber; } - /** Return true if this SoleProprietorship object is equal to o. */ + /** + * Return true if this SoleProprietorship object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -561,54 +539,35 @@ public boolean equals(Object o) { return false; } SoleProprietorship soleProprietorship = (SoleProprietorship) o; - return Objects.equals(this.countryOfGoverningLaw, soleProprietorship.countryOfGoverningLaw) - && Objects.equals(this.dateOfIncorporation, soleProprietorship.dateOfIncorporation) - && Objects.equals(this.doingBusinessAs, soleProprietorship.doingBusinessAs) - && Objects.equals(this.financialReports, soleProprietorship.financialReports) - && Objects.equals(this.name, soleProprietorship.name) - && Objects.equals( - this.principalPlaceOfBusiness, soleProprietorship.principalPlaceOfBusiness) - && Objects.equals(this.registeredAddress, soleProprietorship.registeredAddress) - && Objects.equals(this.registrationNumber, soleProprietorship.registrationNumber) - && Objects.equals(this.taxAbsent, soleProprietorship.taxAbsent) - && Objects.equals(this.taxInformation, soleProprietorship.taxInformation) - && Objects.equals(this.vatAbsenceReason, soleProprietorship.vatAbsenceReason) - && Objects.equals(this.vatNumber, soleProprietorship.vatNumber); + return Objects.equals(this.countryOfGoverningLaw, soleProprietorship.countryOfGoverningLaw) && + Objects.equals(this.dateOfIncorporation, soleProprietorship.dateOfIncorporation) && + Objects.equals(this.doingBusinessAs, soleProprietorship.doingBusinessAs) && + Objects.equals(this.financialReports, soleProprietorship.financialReports) && + Objects.equals(this.name, soleProprietorship.name) && + Objects.equals(this.principalPlaceOfBusiness, soleProprietorship.principalPlaceOfBusiness) && + Objects.equals(this.registeredAddress, soleProprietorship.registeredAddress) && + Objects.equals(this.registrationNumber, soleProprietorship.registrationNumber) && + Objects.equals(this.taxAbsent, soleProprietorship.taxAbsent) && + Objects.equals(this.taxInformation, soleProprietorship.taxInformation) && + Objects.equals(this.vatAbsenceReason, soleProprietorship.vatAbsenceReason) && + Objects.equals(this.vatNumber, soleProprietorship.vatNumber); } @Override public int hashCode() { - return Objects.hash( - countryOfGoverningLaw, - dateOfIncorporation, - doingBusinessAs, - financialReports, - name, - principalPlaceOfBusiness, - registeredAddress, - registrationNumber, - taxAbsent, - taxInformation, - vatAbsenceReason, - vatNumber); + return Objects.hash(countryOfGoverningLaw, dateOfIncorporation, doingBusinessAs, financialReports, name, principalPlaceOfBusiness, registeredAddress, registrationNumber, taxAbsent, taxInformation, vatAbsenceReason, vatNumber); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SoleProprietorship {\n"); - sb.append(" countryOfGoverningLaw: ") - .append(toIndentedString(countryOfGoverningLaw)) - .append("\n"); - sb.append(" dateOfIncorporation: ") - .append(toIndentedString(dateOfIncorporation)) - .append("\n"); + sb.append(" countryOfGoverningLaw: ").append(toIndentedString(countryOfGoverningLaw)).append("\n"); + sb.append(" dateOfIncorporation: ").append(toIndentedString(dateOfIncorporation)).append("\n"); sb.append(" doingBusinessAs: ").append(toIndentedString(doingBusinessAs)).append("\n"); sb.append(" financialReports: ").append(toIndentedString(financialReports)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" principalPlaceOfBusiness: ") - .append(toIndentedString(principalPlaceOfBusiness)) - .append("\n"); + sb.append(" principalPlaceOfBusiness: ").append(toIndentedString(principalPlaceOfBusiness)).append("\n"); sb.append(" registeredAddress: ").append(toIndentedString(registeredAddress)).append("\n"); sb.append(" registrationNumber: ").append(toIndentedString(registrationNumber)).append("\n"); sb.append(" taxAbsent: ").append(toIndentedString(taxAbsent)).append("\n"); @@ -620,7 +579,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -629,23 +589,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SoleProprietorship given an JSON string * * @param jsonString JSON string * @return An instance of SoleProprietorship - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SoleProprietorship + * @throws JsonProcessingException if the JSON string is invalid with respect to SoleProprietorship */ public static SoleProprietorship fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SoleProprietorship.class); } - - /** - * Convert an instance of SoleProprietorship to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SoleProprietorship to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/SourceOfFunds.java b/src/main/java/com/adyen/model/legalentitymanagement/SourceOfFunds.java index a9df859e5..6fceeebc6 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/SourceOfFunds.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/SourceOfFunds.java @@ -2,32 +2,38 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** SourceOfFunds */ +/** + * SourceOfFunds + */ @JsonPropertyOrder({ SourceOfFunds.JSON_PROPERTY_ACQUIRING_BUSINESS_LINE_ID, SourceOfFunds.JSON_PROPERTY_ADYEN_PROCESSED_FUNDS, SourceOfFunds.JSON_PROPERTY_DESCRIPTION, SourceOfFunds.JSON_PROPERTY_TYPE }) + public class SourceOfFunds { public static final String JSON_PROPERTY_ACQUIRING_BUSINESS_LINE_ID = "acquiringBusinessLineId"; @Deprecated // deprecated since Legal Entity Management API v3: This field will be removed in v4. @@ -39,8 +45,11 @@ public class SourceOfFunds { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; - /** The type of the source of funds. Possible value: **business**. */ + /** + * The type of the source of funds. Possible value: **business**. + */ public enum TypeEnum { + BUSINESS(String.valueOf("business")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +57,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,11 +78,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -81,17 +86,17 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public SourceOfFunds() {} + public SourceOfFunds() { + } /** - * The unique identifier of the business line that is the source of funds.This must be a business - * line for a **receivePayments** or **receiveFromPlatformPayments** capability. + * The unique identifier of the business line that is the source of funds.This must be a business line for a **receivePayments** or **receiveFromPlatformPayments** capability. * - * @param acquiringBusinessLineId The unique identifier of the business line that is the source of - * funds.This must be a business line for a **receivePayments** or - * **receiveFromPlatformPayments** capability. + * @param acquiringBusinessLineId The unique identifier of the business line that is the source of funds.This must be a business line for a **receivePayments** or **receiveFromPlatformPayments** capability. * @return the current {@code SourceOfFunds} instance, allowing for method chaining - * @deprecated since Legal Entity Management API v3 This field will be removed in v4. + * + * @deprecated since Legal Entity Management API v3 + * This field will be removed in v4. */ @Deprecated // deprecated since Legal Entity Management API v3: This field will be removed in v4. public SourceOfFunds acquiringBusinessLineId(String acquiringBusinessLineId) { @@ -100,14 +105,9 @@ public SourceOfFunds acquiringBusinessLineId(String acquiringBusinessLineId) { } /** - * The unique identifier of the business line that is the source of funds.This must be a business - * line for a **receivePayments** or **receiveFromPlatformPayments** capability. - * - * @return acquiringBusinessLineId The unique identifier of the business line that is the source - * of funds.This must be a business line for a **receivePayments** or - * **receiveFromPlatformPayments** capability. - * @deprecated // deprecated since Legal Entity Management API v3: This field will be removed in - * v4. + * The unique identifier of the business line that is the source of funds.This must be a business line for a **receivePayments** or **receiveFromPlatformPayments** capability. + * @return acquiringBusinessLineId The unique identifier of the business line that is the source of funds.This must be a business line for a **receivePayments** or **receiveFromPlatformPayments** capability. + * @deprecated // deprecated since Legal Entity Management API v3: This field will be removed in v4. */ @Deprecated // deprecated since Legal Entity Management API v3: This field will be removed in v4. @JsonProperty(JSON_PROPERTY_ACQUIRING_BUSINESS_LINE_ID) @@ -117,13 +117,12 @@ public String getAcquiringBusinessLineId() { } /** - * The unique identifier of the business line that is the source of funds.This must be a business - * line for a **receivePayments** or **receiveFromPlatformPayments** capability. + * The unique identifier of the business line that is the source of funds.This must be a business line for a **receivePayments** or **receiveFromPlatformPayments** capability. + * + * @param acquiringBusinessLineId The unique identifier of the business line that is the source of funds.This must be a business line for a **receivePayments** or **receiveFromPlatformPayments** capability. * - * @param acquiringBusinessLineId The unique identifier of the business line that is the source of - * funds.This must be a business line for a **receivePayments** or - * **receiveFromPlatformPayments** capability. - * @deprecated since Legal Entity Management API v3 This field will be removed in v4. + * @deprecated since Legal Entity Management API v3 + * This field will be removed in v4. */ @Deprecated // deprecated since Legal Entity Management API v3: This field will be removed in v4. @JsonProperty(JSON_PROPERTY_ACQUIRING_BUSINESS_LINE_ID) @@ -133,11 +132,9 @@ public void setAcquiringBusinessLineId(String acquiringBusinessLineId) { } /** - * Indicates whether the funds are coming from transactions processed by Adyen. If **false**, a - * `description` is required. + * Indicates whether the funds are coming from transactions processed by Adyen. If **false**, a `description` is required. * - * @param adyenProcessedFunds Indicates whether the funds are coming from transactions processed - * by Adyen. If **false**, a `description` is required. + * @param adyenProcessedFunds Indicates whether the funds are coming from transactions processed by Adyen. If **false**, a `description` is required. * @return the current {@code SourceOfFunds} instance, allowing for method chaining */ public SourceOfFunds adyenProcessedFunds(Boolean adyenProcessedFunds) { @@ -146,11 +143,8 @@ public SourceOfFunds adyenProcessedFunds(Boolean adyenProcessedFunds) { } /** - * Indicates whether the funds are coming from transactions processed by Adyen. If **false**, a - * `description` is required. - * - * @return adyenProcessedFunds Indicates whether the funds are coming from transactions processed - * by Adyen. If **false**, a `description` is required. + * Indicates whether the funds are coming from transactions processed by Adyen. If **false**, a `description` is required. + * @return adyenProcessedFunds Indicates whether the funds are coming from transactions processed by Adyen. If **false**, a `description` is required. */ @JsonProperty(JSON_PROPERTY_ADYEN_PROCESSED_FUNDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,11 +153,9 @@ public Boolean getAdyenProcessedFunds() { } /** - * Indicates whether the funds are coming from transactions processed by Adyen. If **false**, a - * `description` is required. + * Indicates whether the funds are coming from transactions processed by Adyen. If **false**, a `description` is required. * - * @param adyenProcessedFunds Indicates whether the funds are coming from transactions processed - * by Adyen. If **false**, a `description` is required. + * @param adyenProcessedFunds Indicates whether the funds are coming from transactions processed by Adyen. If **false**, a `description` is required. */ @JsonProperty(JSON_PROPERTY_ADYEN_PROCESSED_FUNDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,13 +164,9 @@ public void setAdyenProcessedFunds(Boolean adyenProcessedFunds) { } /** - * Text describing the source of funds. For example, for `type` **business**, provide a - * description of where the business transactions come from, such as payments through bank - * transfer. Required when `adyenProcessedFunds` is **false**. + * Text describing the source of funds. For example, for `type` **business**, provide a description of where the business transactions come from, such as payments through bank transfer. Required when `adyenProcessedFunds` is **false**. * - * @param description Text describing the source of funds. For example, for `type` - * **business**, provide a description of where the business transactions come from, such as - * payments through bank transfer. Required when `adyenProcessedFunds` is **false**. + * @param description Text describing the source of funds. For example, for `type` **business**, provide a description of where the business transactions come from, such as payments through bank transfer. Required when `adyenProcessedFunds` is **false**. * @return the current {@code SourceOfFunds} instance, allowing for method chaining */ public SourceOfFunds description(String description) { @@ -187,13 +175,8 @@ public SourceOfFunds description(String description) { } /** - * Text describing the source of funds. For example, for `type` **business**, provide a - * description of where the business transactions come from, such as payments through bank - * transfer. Required when `adyenProcessedFunds` is **false**. - * - * @return description Text describing the source of funds. For example, for `type` - * **business**, provide a description of where the business transactions come from, such as - * payments through bank transfer. Required when `adyenProcessedFunds` is **false**. + * Text describing the source of funds. For example, for `type` **business**, provide a description of where the business transactions come from, such as payments through bank transfer. Required when `adyenProcessedFunds` is **false**. + * @return description Text describing the source of funds. For example, for `type` **business**, provide a description of where the business transactions come from, such as payments through bank transfer. Required when `adyenProcessedFunds` is **false**. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -202,13 +185,9 @@ public String getDescription() { } /** - * Text describing the source of funds. For example, for `type` **business**, provide a - * description of where the business transactions come from, such as payments through bank - * transfer. Required when `adyenProcessedFunds` is **false**. + * Text describing the source of funds. For example, for `type` **business**, provide a description of where the business transactions come from, such as payments through bank transfer. Required when `adyenProcessedFunds` is **false**. * - * @param description Text describing the source of funds. For example, for `type` - * **business**, provide a description of where the business transactions come from, such as - * payments through bank transfer. Required when `adyenProcessedFunds` is **false**. + * @param description Text describing the source of funds. For example, for `type` **business**, provide a description of where the business transactions come from, such as payments through bank transfer. Required when `adyenProcessedFunds` is **false**. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -229,7 +208,6 @@ public SourceOfFunds type(TypeEnum type) { /** * The type of the source of funds. Possible value: **business**. - * * @return type The type of the source of funds. Possible value: **business**. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -249,7 +227,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this SourceOfFunds object is equal to o. */ + /** + * Return true if this SourceOfFunds object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -259,10 +239,10 @@ public boolean equals(Object o) { return false; } SourceOfFunds sourceOfFunds = (SourceOfFunds) o; - return Objects.equals(this.acquiringBusinessLineId, sourceOfFunds.acquiringBusinessLineId) - && Objects.equals(this.adyenProcessedFunds, sourceOfFunds.adyenProcessedFunds) - && Objects.equals(this.description, sourceOfFunds.description) - && Objects.equals(this.type, sourceOfFunds.type); + return Objects.equals(this.acquiringBusinessLineId, sourceOfFunds.acquiringBusinessLineId) && + Objects.equals(this.adyenProcessedFunds, sourceOfFunds.adyenProcessedFunds) && + Objects.equals(this.description, sourceOfFunds.description) && + Objects.equals(this.type, sourceOfFunds.type); } @Override @@ -274,12 +254,8 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SourceOfFunds {\n"); - sb.append(" acquiringBusinessLineId: ") - .append(toIndentedString(acquiringBusinessLineId)) - .append("\n"); - sb.append(" adyenProcessedFunds: ") - .append(toIndentedString(adyenProcessedFunds)) - .append("\n"); + sb.append(" acquiringBusinessLineId: ").append(toIndentedString(acquiringBusinessLineId)).append("\n"); + sb.append(" adyenProcessedFunds: ").append(toIndentedString(adyenProcessedFunds)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -287,7 +263,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -296,7 +273,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SourceOfFunds given an JSON string * * @param jsonString JSON string @@ -306,12 +283,11 @@ private String toIndentedString(Object o) { public static SourceOfFunds fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SourceOfFunds.class); } - - /** - * Convert an instance of SourceOfFunds to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SourceOfFunds to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/StockData.java b/src/main/java/com/adyen/model/legalentitymanagement/StockData.java index 8dc2aaf30..70ac38837 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/StockData.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/StockData.java @@ -2,27 +2,37 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** StockData */ + +/** + * StockData + */ @JsonPropertyOrder({ StockData.JSON_PROPERTY_MARKET_IDENTIFIER, StockData.JSON_PROPERTY_STOCK_NUMBER, StockData.JSON_PROPERTY_TICKER_SYMBOL }) + public class StockData { public static final String JSON_PROPERTY_MARKET_IDENTIFIER = "marketIdentifier"; private String marketIdentifier; @@ -33,15 +43,13 @@ public class StockData { public static final String JSON_PROPERTY_TICKER_SYMBOL = "tickerSymbol"; private String tickerSymbol; - public StockData() {} + public StockData() { + } /** - * The four-digit [Market Identifier Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) - * of the stock market where the organization's stocks are traded. + * The four-digit [Market Identifier Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) of the stock market where the organization's stocks are traded. * - * @param marketIdentifier The four-digit [Market Identifier - * Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) of the stock market where the - * organization's stocks are traded. + * @param marketIdentifier The four-digit [Market Identifier Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) of the stock market where the organization's stocks are traded. * @return the current {@code StockData} instance, allowing for method chaining */ public StockData marketIdentifier(String marketIdentifier) { @@ -50,12 +58,8 @@ public StockData marketIdentifier(String marketIdentifier) { } /** - * The four-digit [Market Identifier Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) - * of the stock market where the organization's stocks are traded. - * - * @return marketIdentifier The four-digit [Market Identifier - * Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) of the stock market where the - * organization's stocks are traded. + * The four-digit [Market Identifier Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) of the stock market where the organization's stocks are traded. + * @return marketIdentifier The four-digit [Market Identifier Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) of the stock market where the organization's stocks are traded. */ @JsonProperty(JSON_PROPERTY_MARKET_IDENTIFIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,12 +68,9 @@ public String getMarketIdentifier() { } /** - * The four-digit [Market Identifier Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) - * of the stock market where the organization's stocks are traded. + * The four-digit [Market Identifier Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) of the stock market where the organization's stocks are traded. * - * @param marketIdentifier The four-digit [Market Identifier - * Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) of the stock market where the - * organization's stocks are traded. + * @param marketIdentifier The four-digit [Market Identifier Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) of the stock market where the organization's stocks are traded. */ @JsonProperty(JSON_PROPERTY_MARKET_IDENTIFIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -78,11 +79,9 @@ public void setMarketIdentifier(String marketIdentifier) { } /** - * The 12-digit International Securities Identification Number (ISIN) of the company, without - * dashes (-). + * The 12-digit International Securities Identification Number (ISIN) of the company, without dashes (-). * - * @param stockNumber The 12-digit International Securities Identification Number (ISIN) of the - * company, without dashes (-). + * @param stockNumber The 12-digit International Securities Identification Number (ISIN) of the company, without dashes (-). * @return the current {@code StockData} instance, allowing for method chaining */ public StockData stockNumber(String stockNumber) { @@ -91,11 +90,8 @@ public StockData stockNumber(String stockNumber) { } /** - * The 12-digit International Securities Identification Number (ISIN) of the company, without - * dashes (-). - * - * @return stockNumber The 12-digit International Securities Identification Number (ISIN) of the - * company, without dashes (-). + * The 12-digit International Securities Identification Number (ISIN) of the company, without dashes (-). + * @return stockNumber The 12-digit International Securities Identification Number (ISIN) of the company, without dashes (-). */ @JsonProperty(JSON_PROPERTY_STOCK_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,11 +100,9 @@ public String getStockNumber() { } /** - * The 12-digit International Securities Identification Number (ISIN) of the company, without - * dashes (-). + * The 12-digit International Securities Identification Number (ISIN) of the company, without dashes (-). * - * @param stockNumber The 12-digit International Securities Identification Number (ISIN) of the - * company, without dashes (-). + * @param stockNumber The 12-digit International Securities Identification Number (ISIN) of the company, without dashes (-). */ @JsonProperty(JSON_PROPERTY_STOCK_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,7 +123,6 @@ public StockData tickerSymbol(String tickerSymbol) { /** * The stock ticker symbol. - * * @return tickerSymbol The stock ticker symbol. */ @JsonProperty(JSON_PROPERTY_TICKER_SYMBOL) @@ -149,7 +142,9 @@ public void setTickerSymbol(String tickerSymbol) { this.tickerSymbol = tickerSymbol; } - /** Return true if this StockData object is equal to o. */ + /** + * Return true if this StockData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -159,9 +154,9 @@ public boolean equals(Object o) { return false; } StockData stockData = (StockData) o; - return Objects.equals(this.marketIdentifier, stockData.marketIdentifier) - && Objects.equals(this.stockNumber, stockData.stockNumber) - && Objects.equals(this.tickerSymbol, stockData.tickerSymbol); + return Objects.equals(this.marketIdentifier, stockData.marketIdentifier) && + Objects.equals(this.stockNumber, stockData.stockNumber) && + Objects.equals(this.tickerSymbol, stockData.tickerSymbol); } @Override @@ -181,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -190,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of StockData given an JSON string * * @param jsonString JSON string @@ -200,12 +196,11 @@ private String toIndentedString(Object o) { public static StockData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StockData.class); } - - /** - * Convert an instance of StockData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of StockData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/SupportingEntityCapability.java b/src/main/java/com/adyen/model/legalentitymanagement/SupportingEntityCapability.java index a3d1e87ab..ce5e99bae 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/SupportingEntityCapability.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/SupportingEntityCapability.java @@ -2,29 +2,38 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** SupportingEntityCapability */ + +/** + * SupportingEntityCapability + */ @JsonPropertyOrder({ SupportingEntityCapability.JSON_PROPERTY_ALLOWED, SupportingEntityCapability.JSON_PROPERTY_ID, SupportingEntityCapability.JSON_PROPERTY_REQUESTED, SupportingEntityCapability.JSON_PROPERTY_VERIFICATION_STATUS }) + public class SupportingEntityCapability { public static final String JSON_PROPERTY_ALLOWED = "allowed"; private Boolean allowed; @@ -38,14 +47,16 @@ public class SupportingEntityCapability { public static final String JSON_PROPERTY_VERIFICATION_STATUS = "verificationStatus"; private String verificationStatus; - public SupportingEntityCapability() {} + public SupportingEntityCapability() { + } @JsonCreator public SupportingEntityCapability( - @JsonProperty(JSON_PROPERTY_ALLOWED) Boolean allowed, - @JsonProperty(JSON_PROPERTY_ID) String id, - @JsonProperty(JSON_PROPERTY_REQUESTED) Boolean requested, - @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) String verificationStatus) { + @JsonProperty(JSON_PROPERTY_ALLOWED) Boolean allowed, + @JsonProperty(JSON_PROPERTY_ID) String id, + @JsonProperty(JSON_PROPERTY_REQUESTED) Boolean requested, + @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) String verificationStatus + ) { this(); this.allowed = allowed; this.id = id; @@ -54,16 +65,8 @@ public SupportingEntityCapability( } /** - * Indicates whether the capability is allowed for the supporting entity. If a capability is - * allowed for a supporting entity but not for the parent legal entity, this means the legal - * entity has other supporting entities that failed verification. **You can use the allowed - * supporting entity** regardless of the verification status of other supporting entities. - * - * @return allowed Indicates whether the capability is allowed for the supporting entity. If a - * capability is allowed for a supporting entity but not for the parent legal entity, this - * means the legal entity has other supporting entities that failed verification. **You can - * use the allowed supporting entity** regardless of the verification status of other - * supporting entities. + * Indicates whether the capability is allowed for the supporting entity. If a capability is allowed for a supporting entity but not for the parent legal entity, this means the legal entity has other supporting entities that failed verification. **You can use the allowed supporting entity** regardless of the verification status of other supporting entities. + * @return allowed Indicates whether the capability is allowed for the supporting entity. If a capability is allowed for a supporting entity but not for the parent legal entity, this means the legal entity has other supporting entities that failed verification. **You can use the allowed supporting entity** regardless of the verification status of other supporting entities. */ @JsonProperty(JSON_PROPERTY_ALLOWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,10 +74,10 @@ public Boolean getAllowed() { return allowed; } + /** - * Supporting entity reference - * - * @return id Supporting entity reference + * Supporting entity reference + * @return id Supporting entity reference */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -82,10 +85,10 @@ public String getId() { return id; } + /** - * Indicates whether the supporting entity capability is requested. - * - * @return requested Indicates whether the supporting entity capability is requested. + * Indicates whether the supporting entity capability is requested. + * @return requested Indicates whether the supporting entity capability is requested. */ @JsonProperty(JSON_PROPERTY_REQUESTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -93,18 +96,10 @@ public Boolean getRequested() { return requested; } + /** - * The status of the verification checks for the capability of the supporting entity. Possible - * values: * **pending**: Adyen is running the verification. * **invalid**: The verification - * failed. Check if the `errors` array contains more information. * **valid**: The - * verification has been successfully completed. * **rejected**: Adyen has verified the - * information, but found reasons to not allow the capability. - * - * @return verificationStatus The status of the verification checks for the capability of the - * supporting entity. Possible values: * **pending**: Adyen is running the verification. * - * **invalid**: The verification failed. Check if the `errors` array contains more - * information. * **valid**: The verification has been successfully completed. * **rejected**: - * Adyen has verified the information, but found reasons to not allow the capability. + * The status of the verification checks for the capability of the supporting entity. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. + * @return verificationStatus The status of the verification checks for the capability of the supporting entity. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,7 +107,10 @@ public String getVerificationStatus() { return verificationStatus; } - /** Return true if this SupportingEntityCapability object is equal to o. */ + + /** + * Return true if this SupportingEntityCapability object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -122,10 +120,10 @@ public boolean equals(Object o) { return false; } SupportingEntityCapability supportingEntityCapability = (SupportingEntityCapability) o; - return Objects.equals(this.allowed, supportingEntityCapability.allowed) - && Objects.equals(this.id, supportingEntityCapability.id) - && Objects.equals(this.requested, supportingEntityCapability.requested) - && Objects.equals(this.verificationStatus, supportingEntityCapability.verificationStatus); + return Objects.equals(this.allowed, supportingEntityCapability.allowed) && + Objects.equals(this.id, supportingEntityCapability.id) && + Objects.equals(this.requested, supportingEntityCapability.requested) && + Objects.equals(this.verificationStatus, supportingEntityCapability.verificationStatus); } @Override @@ -146,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -155,24 +154,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SupportingEntityCapability given an JSON string * * @param jsonString JSON string * @return An instance of SupportingEntityCapability - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SupportingEntityCapability + * @throws JsonProcessingException if the JSON string is invalid with respect to SupportingEntityCapability */ - public static SupportingEntityCapability fromJson(String jsonString) - throws JsonProcessingException { + public static SupportingEntityCapability fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SupportingEntityCapability.class); } - - /** - * Convert an instance of SupportingEntityCapability to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SupportingEntityCapability to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/TaxInformation.java b/src/main/java/com/adyen/model/legalentitymanagement/TaxInformation.java index af0838080..e11fff52c 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/TaxInformation.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/TaxInformation.java @@ -2,27 +2,37 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TaxInformation */ + +/** + * TaxInformation + */ @JsonPropertyOrder({ TaxInformation.JSON_PROPERTY_COUNTRY, TaxInformation.JSON_PROPERTY_NUMBER, TaxInformation.JSON_PROPERTY_TYPE }) + public class TaxInformation { public static final String JSON_PROPERTY_COUNTRY = "country"; private String country; @@ -33,14 +43,13 @@ public class TaxInformation { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public TaxInformation() {} + public TaxInformation() { + } /** - * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country - * code. + * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. * - * @param country The two-letter [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. + * @param country The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. * @return the current {@code TaxInformation} instance, allowing for method chaining */ public TaxInformation country(String country) { @@ -49,11 +58,8 @@ public TaxInformation country(String country) { } /** - * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country - * code. - * - * @return country The two-letter [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. + * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. + * @return country The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -62,11 +68,9 @@ public String getCountry() { } /** - * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country - * code. + * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. * - * @param country The two-letter [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. + * @param country The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,7 +91,6 @@ public TaxInformation number(String number) { /** * The tax ID number (TIN) of the organization or individual. - * * @return number The tax ID number (TIN) of the organization or individual. */ @JsonProperty(JSON_PROPERTY_NUMBER) @@ -108,13 +111,9 @@ public void setNumber(String number) { } /** - * The TIN type depending on the country where it was issued. Only provide if the country has - * multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, - * or **ITIN** for the US. + * The TIN type depending on the country where it was issued. Only provide if the country has multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, or **ITIN** for the US. * - * @param type The TIN type depending on the country where it was issued. Only provide if the - * country has multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide - * **SSN**, **EIN**, or **ITIN** for the US. + * @param type The TIN type depending on the country where it was issued. Only provide if the country has multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, or **ITIN** for the US. * @return the current {@code TaxInformation} instance, allowing for method chaining */ public TaxInformation type(String type) { @@ -123,13 +122,8 @@ public TaxInformation type(String type) { } /** - * The TIN type depending on the country where it was issued. Only provide if the country has - * multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, - * or **ITIN** for the US. - * - * @return type The TIN type depending on the country where it was issued. Only provide if the - * country has multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide - * **SSN**, **EIN**, or **ITIN** for the US. + * The TIN type depending on the country where it was issued. Only provide if the country has multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, or **ITIN** for the US. + * @return type The TIN type depending on the country where it was issued. Only provide if the country has multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, or **ITIN** for the US. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,13 +132,9 @@ public String getType() { } /** - * The TIN type depending on the country where it was issued. Only provide if the country has - * multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, - * or **ITIN** for the US. + * The TIN type depending on the country where it was issued. Only provide if the country has multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, or **ITIN** for the US. * - * @param type The TIN type depending on the country where it was issued. Only provide if the - * country has multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide - * **SSN**, **EIN**, or **ITIN** for the US. + * @param type The TIN type depending on the country where it was issued. Only provide if the country has multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, or **ITIN** for the US. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,7 +142,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this TaxInformation object is equal to o. */ + /** + * Return true if this TaxInformation object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -162,9 +154,9 @@ public boolean equals(Object o) { return false; } TaxInformation taxInformation = (TaxInformation) o; - return Objects.equals(this.country, taxInformation.country) - && Objects.equals(this.number, taxInformation.number) - && Objects.equals(this.type, taxInformation.type); + return Objects.equals(this.country, taxInformation.country) && + Objects.equals(this.number, taxInformation.number) && + Objects.equals(this.type, taxInformation.type); } @Override @@ -184,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -193,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TaxInformation given an JSON string * * @param jsonString JSON string @@ -203,12 +196,11 @@ private String toIndentedString(Object o) { public static TaxInformation fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TaxInformation.class); } - - /** - * Convert an instance of TaxInformation to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TaxInformation to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/TaxReportingClassification.java b/src/main/java/com/adyen/model/legalentitymanagement/TaxReportingClassification.java index b26a39dee..4c489d3f1 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/TaxReportingClassification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/TaxReportingClassification.java @@ -2,39 +2,44 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** TaxReportingClassification */ + +/** + * TaxReportingClassification + */ @JsonPropertyOrder({ TaxReportingClassification.JSON_PROPERTY_BUSINESS_TYPE, TaxReportingClassification.JSON_PROPERTY_FINANCIAL_INSTITUTION_NUMBER, TaxReportingClassification.JSON_PROPERTY_MAIN_SOURCE_OF_INCOME, TaxReportingClassification.JSON_PROPERTY_TYPE }) + public class TaxReportingClassification { /** - * The organization's business type. Possible values: **other**, **listedPublicCompany**, - * **subsidiaryOfListedPublicCompany**, **governmentalOrganization**, - * **internationalOrganization**, **financialInstitution**. + * The organization's business type. Possible values: **other**, **listedPublicCompany**, **subsidiaryOfListedPublicCompany**, **governmentalOrganization**, **internationalOrganization**, **financialInstitution**. */ public enum BusinessTypeEnum { + OTHER(String.valueOf("other")), LISTEDPUBLICCOMPANY(String.valueOf("listedPublicCompany")), @@ -52,7 +57,7 @@ public enum BusinessTypeEnum { private String value; BusinessTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,11 +78,7 @@ public static BusinessTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "BusinessTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(BusinessTypeEnum.values())); + LOG.warning("BusinessTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(BusinessTypeEnum.values())); return null; } } @@ -85,16 +86,14 @@ public static BusinessTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_BUSINESS_TYPE = "businessType"; private BusinessTypeEnum businessType; - public static final String JSON_PROPERTY_FINANCIAL_INSTITUTION_NUMBER = - "financialInstitutionNumber"; + public static final String JSON_PROPERTY_FINANCIAL_INSTITUTION_NUMBER = "financialInstitutionNumber"; private String financialInstitutionNumber; /** - * The organization's main source of income. Only required if `businessType` is - * **other**. Possible values: **businessOperation**, **realEstateSales**, - * **investmentInterestOrRoyalty**, **propertyRental**, **other**. + * The organization's main source of income. Only required if `businessType` is **other**. Possible values: **businessOperation**, **realEstateSales**, **investmentInterestOrRoyalty**, **propertyRental**, **other**. */ public enum MainSourceOfIncomeEnum { + BUSINESSOPERATION(String.valueOf("businessOperation")), REALESTATESALES(String.valueOf("realEstateSales")), @@ -110,7 +109,7 @@ public enum MainSourceOfIncomeEnum { private String value; MainSourceOfIncomeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -131,11 +130,7 @@ public static MainSourceOfIncomeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "MainSourceOfIncomeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(MainSourceOfIncomeEnum.values())); + LOG.warning("MainSourceOfIncomeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(MainSourceOfIncomeEnum.values())); return null; } } @@ -144,10 +139,10 @@ public static MainSourceOfIncomeEnum fromValue(String value) { private MainSourceOfIncomeEnum mainSourceOfIncome; /** - * The tax reporting classification type. Possible values: **nonFinancialNonReportable**, - * **financialNonReportable**, **nonFinancialActive**, **nonFinancialPassive**. + * The tax reporting classification type. Possible values: **nonFinancialNonReportable**, **financialNonReportable**, **nonFinancialActive**, **nonFinancialPassive**. */ public enum TypeEnum { + NONFINANCIALNONREPORTABLE(String.valueOf("nonFinancialNonReportable")), FINANCIALNONREPORTABLE(String.valueOf("financialNonReportable")), @@ -161,7 +156,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -182,11 +177,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -194,16 +185,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public TaxReportingClassification() {} + public TaxReportingClassification() { + } /** - * The organization's business type. Possible values: **other**, **listedPublicCompany**, - * **subsidiaryOfListedPublicCompany**, **governmentalOrganization**, - * **internationalOrganization**, **financialInstitution**. + * The organization's business type. Possible values: **other**, **listedPublicCompany**, **subsidiaryOfListedPublicCompany**, **governmentalOrganization**, **internationalOrganization**, **financialInstitution**. * - * @param businessType The organization's business type. Possible values: **other**, - * **listedPublicCompany**, **subsidiaryOfListedPublicCompany**, **governmentalOrganization**, - * **internationalOrganization**, **financialInstitution**. + * @param businessType The organization's business type. Possible values: **other**, **listedPublicCompany**, **subsidiaryOfListedPublicCompany**, **governmentalOrganization**, **internationalOrganization**, **financialInstitution**. * @return the current {@code TaxReportingClassification} instance, allowing for method chaining */ public TaxReportingClassification businessType(BusinessTypeEnum businessType) { @@ -212,13 +200,8 @@ public TaxReportingClassification businessType(BusinessTypeEnum businessType) { } /** - * The organization's business type. Possible values: **other**, **listedPublicCompany**, - * **subsidiaryOfListedPublicCompany**, **governmentalOrganization**, - * **internationalOrganization**, **financialInstitution**. - * - * @return businessType The organization's business type. Possible values: **other**, - * **listedPublicCompany**, **subsidiaryOfListedPublicCompany**, **governmentalOrganization**, - * **internationalOrganization**, **financialInstitution**. + * The organization's business type. Possible values: **other**, **listedPublicCompany**, **subsidiaryOfListedPublicCompany**, **governmentalOrganization**, **internationalOrganization**, **financialInstitution**. + * @return businessType The organization's business type. Possible values: **other**, **listedPublicCompany**, **subsidiaryOfListedPublicCompany**, **governmentalOrganization**, **internationalOrganization**, **financialInstitution**. */ @JsonProperty(JSON_PROPERTY_BUSINESS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -227,13 +210,9 @@ public BusinessTypeEnum getBusinessType() { } /** - * The organization's business type. Possible values: **other**, **listedPublicCompany**, - * **subsidiaryOfListedPublicCompany**, **governmentalOrganization**, - * **internationalOrganization**, **financialInstitution**. + * The organization's business type. Possible values: **other**, **listedPublicCompany**, **subsidiaryOfListedPublicCompany**, **governmentalOrganization**, **internationalOrganization**, **financialInstitution**. * - * @param businessType The organization's business type. Possible values: **other**, - * **listedPublicCompany**, **subsidiaryOfListedPublicCompany**, **governmentalOrganization**, - * **internationalOrganization**, **financialInstitution**. + * @param businessType The organization's business type. Possible values: **other**, **listedPublicCompany**, **subsidiaryOfListedPublicCompany**, **governmentalOrganization**, **internationalOrganization**, **financialInstitution**. */ @JsonProperty(JSON_PROPERTY_BUSINESS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,13 +221,9 @@ public void setBusinessType(BusinessTypeEnum businessType) { } /** - * The Global Intermediary Identification Number (GIIN) required for FATCA. Only required if the - * organization is a US financial institution and the `businessType` is - * **financialInstitution**. + * The Global Intermediary Identification Number (GIIN) required for FATCA. Only required if the organization is a US financial institution and the `businessType` is **financialInstitution**. * - * @param financialInstitutionNumber The Global Intermediary Identification Number (GIIN) required - * for FATCA. Only required if the organization is a US financial institution and the - * `businessType` is **financialInstitution**. + * @param financialInstitutionNumber The Global Intermediary Identification Number (GIIN) required for FATCA. Only required if the organization is a US financial institution and the `businessType` is **financialInstitution**. * @return the current {@code TaxReportingClassification} instance, allowing for method chaining */ public TaxReportingClassification financialInstitutionNumber(String financialInstitutionNumber) { @@ -257,13 +232,8 @@ public TaxReportingClassification financialInstitutionNumber(String financialIns } /** - * The Global Intermediary Identification Number (GIIN) required for FATCA. Only required if the - * organization is a US financial institution and the `businessType` is - * **financialInstitution**. - * - * @return financialInstitutionNumber The Global Intermediary Identification Number (GIIN) - * required for FATCA. Only required if the organization is a US financial institution and the - * `businessType` is **financialInstitution**. + * The Global Intermediary Identification Number (GIIN) required for FATCA. Only required if the organization is a US financial institution and the `businessType` is **financialInstitution**. + * @return financialInstitutionNumber The Global Intermediary Identification Number (GIIN) required for FATCA. Only required if the organization is a US financial institution and the `businessType` is **financialInstitution**. */ @JsonProperty(JSON_PROPERTY_FINANCIAL_INSTITUTION_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -272,13 +242,9 @@ public String getFinancialInstitutionNumber() { } /** - * The Global Intermediary Identification Number (GIIN) required for FATCA. Only required if the - * organization is a US financial institution and the `businessType` is - * **financialInstitution**. + * The Global Intermediary Identification Number (GIIN) required for FATCA. Only required if the organization is a US financial institution and the `businessType` is **financialInstitution**. * - * @param financialInstitutionNumber The Global Intermediary Identification Number (GIIN) required - * for FATCA. Only required if the organization is a US financial institution and the - * `businessType` is **financialInstitution**. + * @param financialInstitutionNumber The Global Intermediary Identification Number (GIIN) required for FATCA. Only required if the organization is a US financial institution and the `businessType` is **financialInstitution**. */ @JsonProperty(JSON_PROPERTY_FINANCIAL_INSTITUTION_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -287,13 +253,9 @@ public void setFinancialInstitutionNumber(String financialInstitutionNumber) { } /** - * The organization's main source of income. Only required if `businessType` is - * **other**. Possible values: **businessOperation**, **realEstateSales**, - * **investmentInterestOrRoyalty**, **propertyRental**, **other**. + * The organization's main source of income. Only required if `businessType` is **other**. Possible values: **businessOperation**, **realEstateSales**, **investmentInterestOrRoyalty**, **propertyRental**, **other**. * - * @param mainSourceOfIncome The organization's main source of income. Only required if - * `businessType` is **other**. Possible values: **businessOperation**, - * **realEstateSales**, **investmentInterestOrRoyalty**, **propertyRental**, **other**. + * @param mainSourceOfIncome The organization's main source of income. Only required if `businessType` is **other**. Possible values: **businessOperation**, **realEstateSales**, **investmentInterestOrRoyalty**, **propertyRental**, **other**. * @return the current {@code TaxReportingClassification} instance, allowing for method chaining */ public TaxReportingClassification mainSourceOfIncome(MainSourceOfIncomeEnum mainSourceOfIncome) { @@ -302,13 +264,8 @@ public TaxReportingClassification mainSourceOfIncome(MainSourceOfIncomeEnum main } /** - * The organization's main source of income. Only required if `businessType` is - * **other**. Possible values: **businessOperation**, **realEstateSales**, - * **investmentInterestOrRoyalty**, **propertyRental**, **other**. - * - * @return mainSourceOfIncome The organization's main source of income. Only required if - * `businessType` is **other**. Possible values: **businessOperation**, - * **realEstateSales**, **investmentInterestOrRoyalty**, **propertyRental**, **other**. + * The organization's main source of income. Only required if `businessType` is **other**. Possible values: **businessOperation**, **realEstateSales**, **investmentInterestOrRoyalty**, **propertyRental**, **other**. + * @return mainSourceOfIncome The organization's main source of income. Only required if `businessType` is **other**. Possible values: **businessOperation**, **realEstateSales**, **investmentInterestOrRoyalty**, **propertyRental**, **other**. */ @JsonProperty(JSON_PROPERTY_MAIN_SOURCE_OF_INCOME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -317,13 +274,9 @@ public MainSourceOfIncomeEnum getMainSourceOfIncome() { } /** - * The organization's main source of income. Only required if `businessType` is - * **other**. Possible values: **businessOperation**, **realEstateSales**, - * **investmentInterestOrRoyalty**, **propertyRental**, **other**. + * The organization's main source of income. Only required if `businessType` is **other**. Possible values: **businessOperation**, **realEstateSales**, **investmentInterestOrRoyalty**, **propertyRental**, **other**. * - * @param mainSourceOfIncome The organization's main source of income. Only required if - * `businessType` is **other**. Possible values: **businessOperation**, - * **realEstateSales**, **investmentInterestOrRoyalty**, **propertyRental**, **other**. + * @param mainSourceOfIncome The organization's main source of income. Only required if `businessType` is **other**. Possible values: **businessOperation**, **realEstateSales**, **investmentInterestOrRoyalty**, **propertyRental**, **other**. */ @JsonProperty(JSON_PROPERTY_MAIN_SOURCE_OF_INCOME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -332,12 +285,9 @@ public void setMainSourceOfIncome(MainSourceOfIncomeEnum mainSourceOfIncome) { } /** - * The tax reporting classification type. Possible values: **nonFinancialNonReportable**, - * **financialNonReportable**, **nonFinancialActive**, **nonFinancialPassive**. + * The tax reporting classification type. Possible values: **nonFinancialNonReportable**, **financialNonReportable**, **nonFinancialActive**, **nonFinancialPassive**. * - * @param type The tax reporting classification type. Possible values: - * **nonFinancialNonReportable**, **financialNonReportable**, **nonFinancialActive**, - * **nonFinancialPassive**. + * @param type The tax reporting classification type. Possible values: **nonFinancialNonReportable**, **financialNonReportable**, **nonFinancialActive**, **nonFinancialPassive**. * @return the current {@code TaxReportingClassification} instance, allowing for method chaining */ public TaxReportingClassification type(TypeEnum type) { @@ -346,12 +296,8 @@ public TaxReportingClassification type(TypeEnum type) { } /** - * The tax reporting classification type. Possible values: **nonFinancialNonReportable**, - * **financialNonReportable**, **nonFinancialActive**, **nonFinancialPassive**. - * - * @return type The tax reporting classification type. Possible values: - * **nonFinancialNonReportable**, **financialNonReportable**, **nonFinancialActive**, - * **nonFinancialPassive**. + * The tax reporting classification type. Possible values: **nonFinancialNonReportable**, **financialNonReportable**, **nonFinancialActive**, **nonFinancialPassive**. + * @return type The tax reporting classification type. Possible values: **nonFinancialNonReportable**, **financialNonReportable**, **nonFinancialActive**, **nonFinancialPassive**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -360,12 +306,9 @@ public TypeEnum getType() { } /** - * The tax reporting classification type. Possible values: **nonFinancialNonReportable**, - * **financialNonReportable**, **nonFinancialActive**, **nonFinancialPassive**. + * The tax reporting classification type. Possible values: **nonFinancialNonReportable**, **financialNonReportable**, **nonFinancialActive**, **nonFinancialPassive**. * - * @param type The tax reporting classification type. Possible values: - * **nonFinancialNonReportable**, **financialNonReportable**, **nonFinancialActive**, - * **nonFinancialPassive**. + * @param type The tax reporting classification type. Possible values: **nonFinancialNonReportable**, **financialNonReportable**, **nonFinancialActive**, **nonFinancialPassive**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -373,7 +316,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this TaxReportingClassification object is equal to o. */ + /** + * Return true if this TaxReportingClassification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -383,11 +328,10 @@ public boolean equals(Object o) { return false; } TaxReportingClassification taxReportingClassification = (TaxReportingClassification) o; - return Objects.equals(this.businessType, taxReportingClassification.businessType) - && Objects.equals( - this.financialInstitutionNumber, taxReportingClassification.financialInstitutionNumber) - && Objects.equals(this.mainSourceOfIncome, taxReportingClassification.mainSourceOfIncome) - && Objects.equals(this.type, taxReportingClassification.type); + return Objects.equals(this.businessType, taxReportingClassification.businessType) && + Objects.equals(this.financialInstitutionNumber, taxReportingClassification.financialInstitutionNumber) && + Objects.equals(this.mainSourceOfIncome, taxReportingClassification.mainSourceOfIncome) && + Objects.equals(this.type, taxReportingClassification.type); } @Override @@ -400,9 +344,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TaxReportingClassification {\n"); sb.append(" businessType: ").append(toIndentedString(businessType)).append("\n"); - sb.append(" financialInstitutionNumber: ") - .append(toIndentedString(financialInstitutionNumber)) - .append("\n"); + sb.append(" financialInstitutionNumber: ").append(toIndentedString(financialInstitutionNumber)).append("\n"); sb.append(" mainSourceOfIncome: ").append(toIndentedString(mainSourceOfIncome)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -410,7 +352,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -419,24 +362,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TaxReportingClassification given an JSON string * * @param jsonString JSON string * @return An instance of TaxReportingClassification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TaxReportingClassification + * @throws JsonProcessingException if the JSON string is invalid with respect to TaxReportingClassification */ - public static TaxReportingClassification fromJson(String jsonString) - throws JsonProcessingException { + public static TaxReportingClassification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TaxReportingClassification.class); } - - /** - * Convert an instance of TaxReportingClassification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TaxReportingClassification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/TermsOfServiceAcceptanceInfo.java b/src/main/java/com/adyen/model/legalentitymanagement/TermsOfServiceAcceptanceInfo.java index efa7ab76e..949a832fa 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/TermsOfServiceAcceptanceInfo.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/TermsOfServiceAcceptanceInfo.java @@ -2,27 +2,32 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** TermsOfServiceAcceptanceInfo */ + +/** + * TermsOfServiceAcceptanceInfo + */ @JsonPropertyOrder({ TermsOfServiceAcceptanceInfo.JSON_PROPERTY_ACCEPTED_BY, TermsOfServiceAcceptanceInfo.JSON_PROPERTY_ACCEPTED_FOR, @@ -31,6 +36,7 @@ TermsOfServiceAcceptanceInfo.JSON_PROPERTY_TYPE, TermsOfServiceAcceptanceInfo.JSON_PROPERTY_VALID_TO }) + public class TermsOfServiceAcceptanceInfo { public static final String JSON_PROPERTY_ACCEPTED_BY = "acceptedBy"; private String acceptedBy; @@ -45,11 +51,10 @@ public class TermsOfServiceAcceptanceInfo { private String id; /** - * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** - * * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * - * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** */ public enum TypeEnum { + ADYENACCOUNT(String.valueOf("adyenAccount")), ADYENCAPITAL(String.valueOf("adyenCapital")), @@ -75,7 +80,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -96,11 +101,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -111,7 +112,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VALID_TO = "validTo"; private OffsetDateTime validTo; - public TermsOfServiceAcceptanceInfo() {} + public TermsOfServiceAcceptanceInfo() { + } /** * The unique identifier of the user that accepted the Terms of Service. @@ -126,7 +128,6 @@ public TermsOfServiceAcceptanceInfo acceptedBy(String acceptedBy) { /** * The unique identifier of the user that accepted the Terms of Service. - * * @return acceptedBy The unique identifier of the user that accepted the Terms of Service. */ @JsonProperty(JSON_PROPERTY_ACCEPTED_BY) @@ -149,8 +150,7 @@ public void setAcceptedBy(String acceptedBy) { /** * The unique identifier of the legal entity for which the Terms of Service are accepted. * - * @param acceptedFor The unique identifier of the legal entity for which the Terms of Service are - * accepted. + * @param acceptedFor The unique identifier of the legal entity for which the Terms of Service are accepted. * @return the current {@code TermsOfServiceAcceptanceInfo} instance, allowing for method chaining */ public TermsOfServiceAcceptanceInfo acceptedFor(String acceptedFor) { @@ -160,9 +160,7 @@ public TermsOfServiceAcceptanceInfo acceptedFor(String acceptedFor) { /** * The unique identifier of the legal entity for which the Terms of Service are accepted. - * - * @return acceptedFor The unique identifier of the legal entity for which the Terms of Service - * are accepted. + * @return acceptedFor The unique identifier of the legal entity for which the Terms of Service are accepted. */ @JsonProperty(JSON_PROPERTY_ACCEPTED_FOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,8 +171,7 @@ public String getAcceptedFor() { /** * The unique identifier of the legal entity for which the Terms of Service are accepted. * - * @param acceptedFor The unique identifier of the legal entity for which the Terms of Service are - * accepted. + * @param acceptedFor The unique identifier of the legal entity for which the Terms of Service are accepted. */ @JsonProperty(JSON_PROPERTY_ACCEPTED_FOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,11 +180,9 @@ public void setAcceptedFor(String acceptedFor) { } /** - * The date when the Terms of Service were accepted, in ISO 8601 extended format. For example, - * 2022-12-18T10:15:30+01:00. + * The date when the Terms of Service were accepted, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00. * - * @param createdAt The date when the Terms of Service were accepted, in ISO 8601 extended format. - * For example, 2022-12-18T10:15:30+01:00. + * @param createdAt The date when the Terms of Service were accepted, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00. * @return the current {@code TermsOfServiceAcceptanceInfo} instance, allowing for method chaining */ public TermsOfServiceAcceptanceInfo createdAt(OffsetDateTime createdAt) { @@ -196,11 +191,8 @@ public TermsOfServiceAcceptanceInfo createdAt(OffsetDateTime createdAt) { } /** - * The date when the Terms of Service were accepted, in ISO 8601 extended format. For example, - * 2022-12-18T10:15:30+01:00. - * - * @return createdAt The date when the Terms of Service were accepted, in ISO 8601 extended - * format. For example, 2022-12-18T10:15:30+01:00. + * The date when the Terms of Service were accepted, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00. + * @return createdAt The date when the Terms of Service were accepted, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -209,11 +201,9 @@ public OffsetDateTime getCreatedAt() { } /** - * The date when the Terms of Service were accepted, in ISO 8601 extended format. For example, - * 2022-12-18T10:15:30+01:00. + * The date when the Terms of Service were accepted, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00. * - * @param createdAt The date when the Terms of Service were accepted, in ISO 8601 extended format. - * For example, 2022-12-18T10:15:30+01:00. + * @param createdAt The date when the Terms of Service were accepted, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -234,7 +224,6 @@ public TermsOfServiceAcceptanceInfo id(String id) { /** * An Adyen-generated reference for the accepted Terms of Service. - * * @return id An Adyen-generated reference for the accepted Terms of Service. */ @JsonProperty(JSON_PROPERTY_ID) @@ -255,13 +244,9 @@ public void setId(String id) { } /** - * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** - * * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * - * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** * - * @param type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * - * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * - * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * @param type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** * @return the current {@code TermsOfServiceAcceptanceInfo} instance, allowing for method chaining */ public TermsOfServiceAcceptanceInfo type(TypeEnum type) { @@ -270,13 +255,8 @@ public TermsOfServiceAcceptanceInfo type(TypeEnum type) { } /** - * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** - * * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * - * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** - * - * @return type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * - * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * - * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * @return type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -285,13 +265,9 @@ public TypeEnum getType() { } /** - * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** - * * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * - * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** * - * @param type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * - * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * - * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * @param type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -300,11 +276,9 @@ public void setType(TypeEnum type) { } /** - * The expiration date for the Terms of Service acceptance, in ISO 8601 extended format. For - * example, 2022-12-18T00:00:00+01:00. + * The expiration date for the Terms of Service acceptance, in ISO 8601 extended format. For example, 2022-12-18T00:00:00+01:00. * - * @param validTo The expiration date for the Terms of Service acceptance, in ISO 8601 extended - * format. For example, 2022-12-18T00:00:00+01:00. + * @param validTo The expiration date for the Terms of Service acceptance, in ISO 8601 extended format. For example, 2022-12-18T00:00:00+01:00. * @return the current {@code TermsOfServiceAcceptanceInfo} instance, allowing for method chaining */ public TermsOfServiceAcceptanceInfo validTo(OffsetDateTime validTo) { @@ -313,11 +287,8 @@ public TermsOfServiceAcceptanceInfo validTo(OffsetDateTime validTo) { } /** - * The expiration date for the Terms of Service acceptance, in ISO 8601 extended format. For - * example, 2022-12-18T00:00:00+01:00. - * - * @return validTo The expiration date for the Terms of Service acceptance, in ISO 8601 extended - * format. For example, 2022-12-18T00:00:00+01:00. + * The expiration date for the Terms of Service acceptance, in ISO 8601 extended format. For example, 2022-12-18T00:00:00+01:00. + * @return validTo The expiration date for the Terms of Service acceptance, in ISO 8601 extended format. For example, 2022-12-18T00:00:00+01:00. */ @JsonProperty(JSON_PROPERTY_VALID_TO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -326,11 +297,9 @@ public OffsetDateTime getValidTo() { } /** - * The expiration date for the Terms of Service acceptance, in ISO 8601 extended format. For - * example, 2022-12-18T00:00:00+01:00. + * The expiration date for the Terms of Service acceptance, in ISO 8601 extended format. For example, 2022-12-18T00:00:00+01:00. * - * @param validTo The expiration date for the Terms of Service acceptance, in ISO 8601 extended - * format. For example, 2022-12-18T00:00:00+01:00. + * @param validTo The expiration date for the Terms of Service acceptance, in ISO 8601 extended format. For example, 2022-12-18T00:00:00+01:00. */ @JsonProperty(JSON_PROPERTY_VALID_TO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -338,7 +307,9 @@ public void setValidTo(OffsetDateTime validTo) { this.validTo = validTo; } - /** Return true if this TermsOfServiceAcceptanceInfo object is equal to o. */ + /** + * Return true if this TermsOfServiceAcceptanceInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -348,12 +319,12 @@ public boolean equals(Object o) { return false; } TermsOfServiceAcceptanceInfo termsOfServiceAcceptanceInfo = (TermsOfServiceAcceptanceInfo) o; - return Objects.equals(this.acceptedBy, termsOfServiceAcceptanceInfo.acceptedBy) - && Objects.equals(this.acceptedFor, termsOfServiceAcceptanceInfo.acceptedFor) - && Objects.equals(this.createdAt, termsOfServiceAcceptanceInfo.createdAt) - && Objects.equals(this.id, termsOfServiceAcceptanceInfo.id) - && Objects.equals(this.type, termsOfServiceAcceptanceInfo.type) - && Objects.equals(this.validTo, termsOfServiceAcceptanceInfo.validTo); + return Objects.equals(this.acceptedBy, termsOfServiceAcceptanceInfo.acceptedBy) && + Objects.equals(this.acceptedFor, termsOfServiceAcceptanceInfo.acceptedFor) && + Objects.equals(this.createdAt, termsOfServiceAcceptanceInfo.createdAt) && + Objects.equals(this.id, termsOfServiceAcceptanceInfo.id) && + Objects.equals(this.type, termsOfServiceAcceptanceInfo.type) && + Objects.equals(this.validTo, termsOfServiceAcceptanceInfo.validTo); } @Override @@ -376,7 +347,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -385,24 +357,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TermsOfServiceAcceptanceInfo given an JSON string * * @param jsonString JSON string * @return An instance of TermsOfServiceAcceptanceInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TermsOfServiceAcceptanceInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to TermsOfServiceAcceptanceInfo */ - public static TermsOfServiceAcceptanceInfo fromJson(String jsonString) - throws JsonProcessingException { + public static TermsOfServiceAcceptanceInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TermsOfServiceAcceptanceInfo.class); } - - /** - * Convert an instance of TermsOfServiceAcceptanceInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TermsOfServiceAcceptanceInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrument.java b/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrument.java index f6def62aa..2202d8185 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrument.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrument.java @@ -2,30 +2,39 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.legalentitymanagement.BankAccountInfo; +import com.adyen.model.legalentitymanagement.CapabilityProblem; +import com.adyen.model.legalentitymanagement.DocumentReference; +import com.adyen.model.legalentitymanagement.SupportingEntityCapability; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** TransferInstrument */ +/** + * TransferInstrument + */ @JsonPropertyOrder({ TransferInstrument.JSON_PROPERTY_BANK_ACCOUNT, TransferInstrument.JSON_PROPERTY_CAPABILITIES, @@ -35,6 +44,7 @@ TransferInstrument.JSON_PROPERTY_PROBLEMS, TransferInstrument.JSON_PROPERTY_TYPE }) + public class TransferInstrument { public static final String JSON_PROPERTY_BANK_ACCOUNT = "bankAccount"; private BankAccountInfo bankAccount; @@ -54,8 +64,11 @@ public class TransferInstrument { public static final String JSON_PROPERTY_PROBLEMS = "problems"; private List problems; - /** The type of transfer instrument. Possible value: **bankAccount**. */ + /** + * The type of transfer instrument. Possible value: **bankAccount**. + */ public enum TypeEnum { + BANKACCOUNT(String.valueOf("bankAccount")), RECURRINGDETAIL(String.valueOf("recurringDetail")); @@ -65,7 +78,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -86,11 +99,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -98,10 +107,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public TransferInstrument() {} + public TransferInstrument() { + } @JsonCreator - public TransferInstrument(@JsonProperty(JSON_PROPERTY_ID) String id) { + public TransferInstrument( + @JsonProperty(JSON_PROPERTY_ID) String id + ) { this(); this.id = id; } @@ -109,7 +121,7 @@ public TransferInstrument(@JsonProperty(JSON_PROPERTY_ID) String id) { /** * bankAccount * - * @param bankAccount + * @param bankAccount * @return the current {@code TransferInstrument} instance, allowing for method chaining */ public TransferInstrument bankAccount(BankAccountInfo bankAccount) { @@ -119,8 +131,7 @@ public TransferInstrument bankAccount(BankAccountInfo bankAccount) { /** * Get bankAccount - * - * @return bankAccount + * @return bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -131,7 +142,7 @@ public BankAccountInfo getBankAccount() { /** * bankAccount * - * @param bankAccount + * @param bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,8 +161,7 @@ public TransferInstrument capabilities(Map c return this; } - public TransferInstrument putCapabilitiesItem( - String key, SupportingEntityCapability capabilitiesItem) { + public TransferInstrument putCapabilitiesItem(String key, SupportingEntityCapability capabilitiesItem) { if (this.capabilities == null) { this.capabilities = new HashMap<>(); } @@ -161,7 +171,6 @@ public TransferInstrument putCapabilitiesItem( /** * List of capabilities for this transfer instrument. - * * @return capabilities List of capabilities for this transfer instrument. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @@ -202,7 +211,6 @@ public TransferInstrument addDocumentDetailsItem(DocumentReference documentDetai /** * List of documents uploaded for the transfer instrument. - * * @return documentDetails List of documents uploaded for the transfer instrument. */ @JsonProperty(JSON_PROPERTY_DOCUMENT_DETAILS) @@ -224,7 +232,6 @@ public void setDocumentDetails(List documentDetails) { /** * The unique identifier of the transfer instrument. - * * @return id The unique identifier of the transfer instrument. */ @JsonProperty(JSON_PROPERTY_ID) @@ -233,14 +240,11 @@ public String getId() { return id; } + /** - * The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) - * that owns the transfer instrument. + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) that owns the transfer instrument. * - * @param legalEntityId The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) - * that owns the transfer instrument. + * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) that owns the transfer instrument. * @return the current {@code TransferInstrument} instance, allowing for method chaining */ public TransferInstrument legalEntityId(String legalEntityId) { @@ -249,13 +253,8 @@ public TransferInstrument legalEntityId(String legalEntityId) { } /** - * The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) - * that owns the transfer instrument. - * - * @return legalEntityId The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) - * that owns the transfer instrument. + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) that owns the transfer instrument. + * @return legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) that owns the transfer instrument. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -264,13 +263,9 @@ public String getLegalEntityId() { } /** - * The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) - * that owns the transfer instrument. + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) that owns the transfer instrument. * - * @param legalEntityId The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) - * that owns the transfer instrument. + * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) that owns the transfer instrument. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -299,7 +294,6 @@ public TransferInstrument addProblemsItem(CapabilityProblem problemsItem) { /** * The verification errors related to capabilities for this transfer instrument. - * * @return problems The verification errors related to capabilities for this transfer instrument. */ @JsonProperty(JSON_PROPERTY_PROBLEMS) @@ -320,9 +314,9 @@ public void setProblems(List problems) { } /** - * The type of transfer instrument. Possible value: **bankAccount**. + * The type of transfer instrument. Possible value: **bankAccount**. * - * @param type The type of transfer instrument. Possible value: **bankAccount**. + * @param type The type of transfer instrument. Possible value: **bankAccount**. * @return the current {@code TransferInstrument} instance, allowing for method chaining */ public TransferInstrument type(TypeEnum type) { @@ -331,9 +325,8 @@ public TransferInstrument type(TypeEnum type) { } /** - * The type of transfer instrument. Possible value: **bankAccount**. - * - * @return type The type of transfer instrument. Possible value: **bankAccount**. + * The type of transfer instrument. Possible value: **bankAccount**. + * @return type The type of transfer instrument. Possible value: **bankAccount**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -342,9 +335,9 @@ public TypeEnum getType() { } /** - * The type of transfer instrument. Possible value: **bankAccount**. + * The type of transfer instrument. Possible value: **bankAccount**. * - * @param type The type of transfer instrument. Possible value: **bankAccount**. + * @param type The type of transfer instrument. Possible value: **bankAccount**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -352,7 +345,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this TransferInstrument object is equal to o. */ + /** + * Return true if this TransferInstrument object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -362,19 +357,18 @@ public boolean equals(Object o) { return false; } TransferInstrument transferInstrument = (TransferInstrument) o; - return Objects.equals(this.bankAccount, transferInstrument.bankAccount) - && Objects.equals(this.capabilities, transferInstrument.capabilities) - && Objects.equals(this.documentDetails, transferInstrument.documentDetails) - && Objects.equals(this.id, transferInstrument.id) - && Objects.equals(this.legalEntityId, transferInstrument.legalEntityId) - && Objects.equals(this.problems, transferInstrument.problems) - && Objects.equals(this.type, transferInstrument.type); + return Objects.equals(this.bankAccount, transferInstrument.bankAccount) && + Objects.equals(this.capabilities, transferInstrument.capabilities) && + Objects.equals(this.documentDetails, transferInstrument.documentDetails) && + Objects.equals(this.id, transferInstrument.id) && + Objects.equals(this.legalEntityId, transferInstrument.legalEntityId) && + Objects.equals(this.problems, transferInstrument.problems) && + Objects.equals(this.type, transferInstrument.type); } @Override public int hashCode() { - return Objects.hash( - bankAccount, capabilities, documentDetails, id, legalEntityId, problems, type); + return Objects.hash(bankAccount, capabilities, documentDetails, id, legalEntityId, problems, type); } @Override @@ -393,7 +387,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -402,23 +397,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransferInstrument given an JSON string * * @param jsonString JSON string * @return An instance of TransferInstrument - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransferInstrument + * @throws JsonProcessingException if the JSON string is invalid with respect to TransferInstrument */ public static TransferInstrument fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferInstrument.class); } - - /** - * Convert an instance of TransferInstrument to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransferInstrument to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrumentInfo.java b/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrumentInfo.java index 9462f5064..732bd9100 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrumentInfo.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrumentInfo.java @@ -2,31 +2,38 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.legalentitymanagement.BankAccountInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** TransferInstrumentInfo */ + +/** + * TransferInstrumentInfo + */ @JsonPropertyOrder({ TransferInstrumentInfo.JSON_PROPERTY_BANK_ACCOUNT, TransferInstrumentInfo.JSON_PROPERTY_LEGAL_ENTITY_ID, TransferInstrumentInfo.JSON_PROPERTY_TYPE }) + public class TransferInstrumentInfo { public static final String JSON_PROPERTY_BANK_ACCOUNT = "bankAccount"; private BankAccountInfo bankAccount; @@ -34,8 +41,11 @@ public class TransferInstrumentInfo { public static final String JSON_PROPERTY_LEGAL_ENTITY_ID = "legalEntityId"; private String legalEntityId; - /** The type of transfer instrument. Possible value: **bankAccount**. */ + /** + * The type of transfer instrument. Possible value: **bankAccount**. + */ public enum TypeEnum { + BANKACCOUNT(String.valueOf("bankAccount")), RECURRINGDETAIL(String.valueOf("recurringDetail")); @@ -45,7 +55,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -66,11 +76,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -78,12 +84,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public TransferInstrumentInfo() {} + public TransferInstrumentInfo() { + } /** * bankAccount * - * @param bankAccount + * @param bankAccount * @return the current {@code TransferInstrumentInfo} instance, allowing for method chaining */ public TransferInstrumentInfo bankAccount(BankAccountInfo bankAccount) { @@ -93,8 +100,7 @@ public TransferInstrumentInfo bankAccount(BankAccountInfo bankAccount) { /** * Get bankAccount - * - * @return bankAccount + * @return bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,7 +111,7 @@ public BankAccountInfo getBankAccount() { /** * bankAccount * - * @param bankAccount + * @param bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,13 +120,9 @@ public void setBankAccount(BankAccountInfo bankAccount) { } /** - * The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) - * that owns the transfer instrument. + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) that owns the transfer instrument. * - * @param legalEntityId The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) - * that owns the transfer instrument. + * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) that owns the transfer instrument. * @return the current {@code TransferInstrumentInfo} instance, allowing for method chaining */ public TransferInstrumentInfo legalEntityId(String legalEntityId) { @@ -129,13 +131,8 @@ public TransferInstrumentInfo legalEntityId(String legalEntityId) { } /** - * The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) - * that owns the transfer instrument. - * - * @return legalEntityId The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) - * that owns the transfer instrument. + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) that owns the transfer instrument. + * @return legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) that owns the transfer instrument. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,13 +141,9 @@ public String getLegalEntityId() { } /** - * The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) - * that owns the transfer instrument. + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) that owns the transfer instrument. * - * @param legalEntityId The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) - * that owns the transfer instrument. + * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) that owns the transfer instrument. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,9 +152,9 @@ public void setLegalEntityId(String legalEntityId) { } /** - * The type of transfer instrument. Possible value: **bankAccount**. + * The type of transfer instrument. Possible value: **bankAccount**. * - * @param type The type of transfer instrument. Possible value: **bankAccount**. + * @param type The type of transfer instrument. Possible value: **bankAccount**. * @return the current {@code TransferInstrumentInfo} instance, allowing for method chaining */ public TransferInstrumentInfo type(TypeEnum type) { @@ -170,9 +163,8 @@ public TransferInstrumentInfo type(TypeEnum type) { } /** - * The type of transfer instrument. Possible value: **bankAccount**. - * - * @return type The type of transfer instrument. Possible value: **bankAccount**. + * The type of transfer instrument. Possible value: **bankAccount**. + * @return type The type of transfer instrument. Possible value: **bankAccount**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,9 +173,9 @@ public TypeEnum getType() { } /** - * The type of transfer instrument. Possible value: **bankAccount**. + * The type of transfer instrument. Possible value: **bankAccount**. * - * @param type The type of transfer instrument. Possible value: **bankAccount**. + * @param type The type of transfer instrument. Possible value: **bankAccount**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,7 +183,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this TransferInstrumentInfo object is equal to o. */ + /** + * Return true if this TransferInstrumentInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -201,9 +195,9 @@ public boolean equals(Object o) { return false; } TransferInstrumentInfo transferInstrumentInfo = (TransferInstrumentInfo) o; - return Objects.equals(this.bankAccount, transferInstrumentInfo.bankAccount) - && Objects.equals(this.legalEntityId, transferInstrumentInfo.legalEntityId) - && Objects.equals(this.type, transferInstrumentInfo.type); + return Objects.equals(this.bankAccount, transferInstrumentInfo.bankAccount) && + Objects.equals(this.legalEntityId, transferInstrumentInfo.legalEntityId) && + Objects.equals(this.type, transferInstrumentInfo.type); } @Override @@ -223,7 +217,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -232,23 +227,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransferInstrumentInfo given an JSON string * * @param jsonString JSON string * @return An instance of TransferInstrumentInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransferInstrumentInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to TransferInstrumentInfo */ public static TransferInstrumentInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferInstrumentInfo.class); } - - /** - * Convert an instance of TransferInstrumentInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransferInstrumentInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrumentReference.java b/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrumentReference.java index 38e64c543..1abc2e55b 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrumentReference.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrumentReference.java @@ -2,29 +2,38 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TransferInstrumentReference */ + +/** + * TransferInstrumentReference + */ @JsonPropertyOrder({ TransferInstrumentReference.JSON_PROPERTY_ACCOUNT_IDENTIFIER, TransferInstrumentReference.JSON_PROPERTY_ID, TransferInstrumentReference.JSON_PROPERTY_REAL_LAST_FOUR, TransferInstrumentReference.JSON_PROPERTY_TRUSTED_SOURCE }) + public class TransferInstrumentReference { public static final String JSON_PROPERTY_ACCOUNT_IDENTIFIER = "accountIdentifier"; private String accountIdentifier; @@ -38,11 +47,13 @@ public class TransferInstrumentReference { public static final String JSON_PROPERTY_TRUSTED_SOURCE = "trustedSource"; private Boolean trustedSource; - public TransferInstrumentReference() {} + public TransferInstrumentReference() { + } @JsonCreator public TransferInstrumentReference( - @JsonProperty(JSON_PROPERTY_TRUSTED_SOURCE) Boolean trustedSource) { + @JsonProperty(JSON_PROPERTY_TRUSTED_SOURCE) Boolean trustedSource + ) { this(); this.trustedSource = trustedSource; } @@ -60,7 +71,6 @@ public TransferInstrumentReference accountIdentifier(String accountIdentifier) { /** * The masked IBAN or bank account number. - * * @return accountIdentifier The masked IBAN or bank account number. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_IDENTIFIER) @@ -93,7 +103,6 @@ public TransferInstrumentReference id(String id) { /** * The unique identifier of the resource. - * * @return id The unique identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -114,17 +123,9 @@ public void setId(String id) { } /** - * Four last digits of the bank account number. If the transfer instrument is created using - * [instant bank account - * verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding), - * and it is a virtual bank account, these digits may be different from the last four digits of - * the masked account number. + * Four last digits of the bank account number. If the transfer instrument is created using [instant bank account verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding), and it is a virtual bank account, these digits may be different from the last four digits of the masked account number. * - * @param realLastFour Four last digits of the bank account number. If the transfer instrument is - * created using [instant bank account - * verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding), - * and it is a virtual bank account, these digits may be different from the last four digits - * of the masked account number. + * @param realLastFour Four last digits of the bank account number. If the transfer instrument is created using [instant bank account verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding), and it is a virtual bank account, these digits may be different from the last four digits of the masked account number. * @return the current {@code TransferInstrumentReference} instance, allowing for method chaining */ public TransferInstrumentReference realLastFour(String realLastFour) { @@ -133,17 +134,8 @@ public TransferInstrumentReference realLastFour(String realLastFour) { } /** - * Four last digits of the bank account number. If the transfer instrument is created using - * [instant bank account - * verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding), - * and it is a virtual bank account, these digits may be different from the last four digits of - * the masked account number. - * - * @return realLastFour Four last digits of the bank account number. If the transfer instrument is - * created using [instant bank account - * verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding), - * and it is a virtual bank account, these digits may be different from the last four digits - * of the masked account number. + * Four last digits of the bank account number. If the transfer instrument is created using [instant bank account verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding), and it is a virtual bank account, these digits may be different from the last four digits of the masked account number. + * @return realLastFour Four last digits of the bank account number. If the transfer instrument is created using [instant bank account verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding), and it is a virtual bank account, these digits may be different from the last four digits of the masked account number. */ @JsonProperty(JSON_PROPERTY_REAL_LAST_FOUR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,17 +144,9 @@ public String getRealLastFour() { } /** - * Four last digits of the bank account number. If the transfer instrument is created using - * [instant bank account - * verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding), - * and it is a virtual bank account, these digits may be different from the last four digits of - * the masked account number. + * Four last digits of the bank account number. If the transfer instrument is created using [instant bank account verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding), and it is a virtual bank account, these digits may be different from the last four digits of the masked account number. * - * @param realLastFour Four last digits of the bank account number. If the transfer instrument is - * created using [instant bank account - * verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding), - * and it is a virtual bank account, these digits may be different from the last four digits - * of the masked account number. + * @param realLastFour Four last digits of the bank account number. If the transfer instrument is created using [instant bank account verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding), and it is a virtual bank account, these digits may be different from the last four digits of the masked account number. */ @JsonProperty(JSON_PROPERTY_REAL_LAST_FOUR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -171,11 +155,8 @@ public void setRealLastFour(String realLastFour) { } /** - * Identifies if the bank account was created through [instant bank - * verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding). - * - * @return trustedSource Identifies if the bank account was created through [instant bank - * verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding). + * Identifies if the bank account was created through [instant bank verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding). + * @return trustedSource Identifies if the bank account was created through [instant bank verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding). */ @JsonProperty(JSON_PROPERTY_TRUSTED_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,7 +164,10 @@ public Boolean getTrustedSource() { return trustedSource; } - /** Return true if this TransferInstrumentReference object is equal to o. */ + + /** + * Return true if this TransferInstrumentReference object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -193,10 +177,10 @@ public boolean equals(Object o) { return false; } TransferInstrumentReference transferInstrumentReference = (TransferInstrumentReference) o; - return Objects.equals(this.accountIdentifier, transferInstrumentReference.accountIdentifier) - && Objects.equals(this.id, transferInstrumentReference.id) - && Objects.equals(this.realLastFour, transferInstrumentReference.realLastFour) - && Objects.equals(this.trustedSource, transferInstrumentReference.trustedSource); + return Objects.equals(this.accountIdentifier, transferInstrumentReference.accountIdentifier) && + Objects.equals(this.id, transferInstrumentReference.id) && + Objects.equals(this.realLastFour, transferInstrumentReference.realLastFour) && + Objects.equals(this.trustedSource, transferInstrumentReference.trustedSource); } @Override @@ -217,7 +201,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -226,24 +211,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransferInstrumentReference given an JSON string * * @param jsonString JSON string * @return An instance of TransferInstrumentReference - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransferInstrumentReference + * @throws JsonProcessingException if the JSON string is invalid with respect to TransferInstrumentReference */ - public static TransferInstrumentReference fromJson(String jsonString) - throws JsonProcessingException { + public static TransferInstrumentReference fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferInstrumentReference.class); } - - /** - * Convert an instance of TransferInstrumentReference to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransferInstrumentReference to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/Trust.java b/src/main/java/com/adyen/model/legalentitymanagement/Trust.java index 32dd259f6..c577fd640 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/Trust.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/Trust.java @@ -2,28 +2,36 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.legalentitymanagement.Address; +import com.adyen.model.legalentitymanagement.TaxInformation; +import com.adyen.model.legalentitymanagement.UndefinedBeneficiary; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** Trust */ +/** + * Trust + */ @JsonPropertyOrder({ Trust.JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW, Trust.JSON_PROPERTY_DATE_OF_INCORPORATION, @@ -39,6 +47,7 @@ Trust.JSON_PROPERTY_VAT_ABSENCE_REASON, Trust.JSON_PROPERTY_VAT_NUMBER }) + public class Trust { public static final String JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW = "countryOfGoverningLaw"; private String countryOfGoverningLaw; @@ -68,12 +77,10 @@ public class Trust { private List taxInformation; /** - * Type of trust. See possible values for trusts in - * [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) - * and [New - * Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand). + * Type of trust. See possible values for trusts in [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) and [New Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand). */ public enum TypeEnum { + BUSINESSTRUST(String.valueOf("businessTrust")), CASHMANAGEMENTTRUST(String.valueOf("cashManagementTrust")), @@ -117,7 +124,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -138,11 +145,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -154,10 +157,10 @@ public static TypeEnum fromValue(String value) { private List undefinedBeneficiaryInfo; /** - * The reason for not providing a VAT number. Possible values: **industryExemption**, - * **belowTaxThreshold**. + * The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. */ public enum VatAbsenceReasonEnum { + INDUSTRYEXEMPTION(String.valueOf("industryExemption")), BELOWTAXTHRESHOLD(String.valueOf("belowTaxThreshold")); @@ -167,7 +170,7 @@ public enum VatAbsenceReasonEnum { private String value; VatAbsenceReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -188,11 +191,7 @@ public static VatAbsenceReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "VatAbsenceReasonEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(VatAbsenceReasonEnum.values())); + LOG.warning("VatAbsenceReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(VatAbsenceReasonEnum.values())); return null; } } @@ -203,15 +202,13 @@ public static VatAbsenceReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_VAT_NUMBER = "vatNumber"; private String vatNumber; - public Trust() {} + public Trust() { + } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code of the governing country. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. * - * @param countryOfGoverningLaw The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing - * country. + * @param countryOfGoverningLaw The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. * @return the current {@code Trust} instance, allowing for method chaining */ public Trust countryOfGoverningLaw(String countryOfGoverningLaw) { @@ -220,12 +217,8 @@ public Trust countryOfGoverningLaw(String countryOfGoverningLaw) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code of the governing country. - * - * @return countryOfGoverningLaw The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing - * country. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. + * @return countryOfGoverningLaw The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. */ @JsonProperty(JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -234,12 +227,9 @@ public String getCountryOfGoverningLaw() { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code of the governing country. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. * - * @param countryOfGoverningLaw The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing - * country. + * @param countryOfGoverningLaw The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. */ @JsonProperty(JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,8 +240,7 @@ public void setCountryOfGoverningLaw(String countryOfGoverningLaw) { /** * The date when the legal arrangement was incorporated in YYYY-MM-DD format. * - * @param dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD - * format. + * @param dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD format. * @return the current {@code Trust} instance, allowing for method chaining */ public Trust dateOfIncorporation(String dateOfIncorporation) { @@ -261,9 +250,7 @@ public Trust dateOfIncorporation(String dateOfIncorporation) { /** * The date when the legal arrangement was incorporated in YYYY-MM-DD format. - * - * @return dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD - * format. + * @return dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD format. */ @JsonProperty(JSON_PROPERTY_DATE_OF_INCORPORATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -274,8 +261,7 @@ public String getDateOfIncorporation() { /** * The date when the legal arrangement was incorporated in YYYY-MM-DD format. * - * @param dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD - * format. + * @param dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD format. */ @JsonProperty(JSON_PROPERTY_DATE_OF_INCORPORATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -286,8 +272,7 @@ public void setDateOfIncorporation(String dateOfIncorporation) { /** * A short description about the trust. Only applicable for charitable trusts in New Zealand. * - * @param description A short description about the trust. Only applicable for charitable trusts - * in New Zealand. + * @param description A short description about the trust. Only applicable for charitable trusts in New Zealand. * @return the current {@code Trust} instance, allowing for method chaining */ public Trust description(String description) { @@ -297,9 +282,7 @@ public Trust description(String description) { /** * A short description about the trust. Only applicable for charitable trusts in New Zealand. - * - * @return description A short description about the trust. Only applicable for charitable trusts - * in New Zealand. + * @return description A short description about the trust. Only applicable for charitable trusts in New Zealand. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -310,8 +293,7 @@ public String getDescription() { /** * A short description about the trust. Only applicable for charitable trusts in New Zealand. * - * @param description A short description about the trust. Only applicable for charitable trusts - * in New Zealand. + * @param description A short description about the trust. Only applicable for charitable trusts in New Zealand. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -332,7 +314,6 @@ public Trust doingBusinessAs(String doingBusinessAs) { /** * The registered name, if different from the `name`. - * * @return doingBusinessAs The registered name, if different from the `name`. */ @JsonProperty(JSON_PROPERTY_DOING_BUSINESS_AS) @@ -365,7 +346,6 @@ public Trust name(String name) { /** * The legal name. - * * @return name The legal name. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -388,7 +368,7 @@ public void setName(String name) { /** * principalPlaceOfBusiness * - * @param principalPlaceOfBusiness + * @param principalPlaceOfBusiness * @return the current {@code Trust} instance, allowing for method chaining */ public Trust principalPlaceOfBusiness(Address principalPlaceOfBusiness) { @@ -398,8 +378,7 @@ public Trust principalPlaceOfBusiness(Address principalPlaceOfBusiness) { /** * Get principalPlaceOfBusiness - * - * @return principalPlaceOfBusiness + * @return principalPlaceOfBusiness */ @JsonProperty(JSON_PROPERTY_PRINCIPAL_PLACE_OF_BUSINESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -410,7 +389,7 @@ public Address getPrincipalPlaceOfBusiness() { /** * principalPlaceOfBusiness * - * @param principalPlaceOfBusiness + * @param principalPlaceOfBusiness */ @JsonProperty(JSON_PROPERTY_PRINCIPAL_PLACE_OF_BUSINESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -421,7 +400,7 @@ public void setPrincipalPlaceOfBusiness(Address principalPlaceOfBusiness) { /** * registeredAddress * - * @param registeredAddress + * @param registeredAddress * @return the current {@code Trust} instance, allowing for method chaining */ public Trust registeredAddress(Address registeredAddress) { @@ -431,8 +410,7 @@ public Trust registeredAddress(Address registeredAddress) { /** * Get registeredAddress - * - * @return registeredAddress + * @return registeredAddress */ @JsonProperty(JSON_PROPERTY_REGISTERED_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -443,7 +421,7 @@ public Address getRegisteredAddress() { /** * registeredAddress * - * @param registeredAddress + * @param registeredAddress */ @JsonProperty(JSON_PROPERTY_REGISTERED_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -464,7 +442,6 @@ public Trust registrationNumber(String registrationNumber) { /** * The registration number. - * * @return registrationNumber The registration number. */ @JsonProperty(JSON_PROPERTY_REGISTRATION_NUMBER) @@ -505,7 +482,6 @@ public Trust addTaxInformationItem(TaxInformation taxInformationItem) { /** * The tax information of the entity. - * * @return taxInformation The tax information of the entity. */ @JsonProperty(JSON_PROPERTY_TAX_INFORMATION) @@ -526,15 +502,9 @@ public void setTaxInformation(List taxInformation) { } /** - * Type of trust. See possible values for trusts in - * [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) - * and [New - * Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand). + * Type of trust. See possible values for trusts in [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) and [New Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand). * - * @param type Type of trust. See possible values for trusts in - * [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) - * and [New - * Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand). + * @param type Type of trust. See possible values for trusts in [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) and [New Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand). * @return the current {@code Trust} instance, allowing for method chaining */ public Trust type(TypeEnum type) { @@ -543,15 +513,8 @@ public Trust type(TypeEnum type) { } /** - * Type of trust. See possible values for trusts in - * [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) - * and [New - * Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand). - * - * @return type Type of trust. See possible values for trusts in - * [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) - * and [New - * Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand). + * Type of trust. See possible values for trusts in [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) and [New Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand). + * @return type Type of trust. See possible values for trusts in [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) and [New Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand). */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -560,15 +523,9 @@ public TypeEnum getType() { } /** - * Type of trust. See possible values for trusts in - * [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) - * and [New - * Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand). + * Type of trust. See possible values for trusts in [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) and [New Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand). * - * @param type Type of trust. See possible values for trusts in - * [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) - * and [New - * Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand). + * @param type Type of trust. See possible values for trusts in [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) and [New Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand). */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -597,7 +554,6 @@ public Trust addUndefinedBeneficiaryInfoItem(UndefinedBeneficiary undefinedBenef /** * The undefined beneficiary information of the entity. - * * @return undefinedBeneficiaryInfo The undefined beneficiary information of the entity. */ @JsonProperty(JSON_PROPERTY_UNDEFINED_BENEFICIARY_INFO) @@ -618,11 +574,9 @@ public void setUndefinedBeneficiaryInfo(List undefinedBene } /** - * The reason for not providing a VAT number. Possible values: **industryExemption**, - * **belowTaxThreshold**. + * The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. * - * @param vatAbsenceReason The reason for not providing a VAT number. Possible values: - * **industryExemption**, **belowTaxThreshold**. + * @param vatAbsenceReason The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. * @return the current {@code Trust} instance, allowing for method chaining */ public Trust vatAbsenceReason(VatAbsenceReasonEnum vatAbsenceReason) { @@ -631,11 +585,8 @@ public Trust vatAbsenceReason(VatAbsenceReasonEnum vatAbsenceReason) { } /** - * The reason for not providing a VAT number. Possible values: **industryExemption**, - * **belowTaxThreshold**. - * - * @return vatAbsenceReason The reason for not providing a VAT number. Possible values: - * **industryExemption**, **belowTaxThreshold**. + * The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + * @return vatAbsenceReason The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. */ @JsonProperty(JSON_PROPERTY_VAT_ABSENCE_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -644,11 +595,9 @@ public VatAbsenceReasonEnum getVatAbsenceReason() { } /** - * The reason for not providing a VAT number. Possible values: **industryExemption**, - * **belowTaxThreshold**. + * The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. * - * @param vatAbsenceReason The reason for not providing a VAT number. Possible values: - * **industryExemption**, **belowTaxThreshold**. + * @param vatAbsenceReason The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. */ @JsonProperty(JSON_PROPERTY_VAT_ABSENCE_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -669,7 +618,6 @@ public Trust vatNumber(String vatNumber) { /** * The VAT number. - * * @return vatNumber The VAT number. */ @JsonProperty(JSON_PROPERTY_VAT_NUMBER) @@ -689,7 +637,9 @@ public void setVatNumber(String vatNumber) { this.vatNumber = vatNumber; } - /** Return true if this Trust object is equal to o. */ + /** + * Return true if this Trust object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -699,62 +649,41 @@ public boolean equals(Object o) { return false; } Trust trust = (Trust) o; - return Objects.equals(this.countryOfGoverningLaw, trust.countryOfGoverningLaw) - && Objects.equals(this.dateOfIncorporation, trust.dateOfIncorporation) - && Objects.equals(this.description, trust.description) - && Objects.equals(this.doingBusinessAs, trust.doingBusinessAs) - && Objects.equals(this.name, trust.name) - && Objects.equals(this.principalPlaceOfBusiness, trust.principalPlaceOfBusiness) - && Objects.equals(this.registeredAddress, trust.registeredAddress) - && Objects.equals(this.registrationNumber, trust.registrationNumber) - && Objects.equals(this.taxInformation, trust.taxInformation) - && Objects.equals(this.type, trust.type) - && Objects.equals(this.undefinedBeneficiaryInfo, trust.undefinedBeneficiaryInfo) - && Objects.equals(this.vatAbsenceReason, trust.vatAbsenceReason) - && Objects.equals(this.vatNumber, trust.vatNumber); + return Objects.equals(this.countryOfGoverningLaw, trust.countryOfGoverningLaw) && + Objects.equals(this.dateOfIncorporation, trust.dateOfIncorporation) && + Objects.equals(this.description, trust.description) && + Objects.equals(this.doingBusinessAs, trust.doingBusinessAs) && + Objects.equals(this.name, trust.name) && + Objects.equals(this.principalPlaceOfBusiness, trust.principalPlaceOfBusiness) && + Objects.equals(this.registeredAddress, trust.registeredAddress) && + Objects.equals(this.registrationNumber, trust.registrationNumber) && + Objects.equals(this.taxInformation, trust.taxInformation) && + Objects.equals(this.type, trust.type) && + Objects.equals(this.undefinedBeneficiaryInfo, trust.undefinedBeneficiaryInfo) && + Objects.equals(this.vatAbsenceReason, trust.vatAbsenceReason) && + Objects.equals(this.vatNumber, trust.vatNumber); } @Override public int hashCode() { - return Objects.hash( - countryOfGoverningLaw, - dateOfIncorporation, - description, - doingBusinessAs, - name, - principalPlaceOfBusiness, - registeredAddress, - registrationNumber, - taxInformation, - type, - undefinedBeneficiaryInfo, - vatAbsenceReason, - vatNumber); + return Objects.hash(countryOfGoverningLaw, dateOfIncorporation, description, doingBusinessAs, name, principalPlaceOfBusiness, registeredAddress, registrationNumber, taxInformation, type, undefinedBeneficiaryInfo, vatAbsenceReason, vatNumber); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Trust {\n"); - sb.append(" countryOfGoverningLaw: ") - .append(toIndentedString(countryOfGoverningLaw)) - .append("\n"); - sb.append(" dateOfIncorporation: ") - .append(toIndentedString(dateOfIncorporation)) - .append("\n"); + sb.append(" countryOfGoverningLaw: ").append(toIndentedString(countryOfGoverningLaw)).append("\n"); + sb.append(" dateOfIncorporation: ").append(toIndentedString(dateOfIncorporation)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" doingBusinessAs: ").append(toIndentedString(doingBusinessAs)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" principalPlaceOfBusiness: ") - .append(toIndentedString(principalPlaceOfBusiness)) - .append("\n"); + sb.append(" principalPlaceOfBusiness: ").append(toIndentedString(principalPlaceOfBusiness)).append("\n"); sb.append(" registeredAddress: ").append(toIndentedString(registeredAddress)).append("\n"); sb.append(" registrationNumber: ").append(toIndentedString(registrationNumber)).append("\n"); sb.append(" taxInformation: ").append(toIndentedString(taxInformation)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" undefinedBeneficiaryInfo: ") - .append(toIndentedString(undefinedBeneficiaryInfo)) - .append("\n"); + sb.append(" undefinedBeneficiaryInfo: ").append(toIndentedString(undefinedBeneficiaryInfo)).append("\n"); sb.append(" vatAbsenceReason: ").append(toIndentedString(vatAbsenceReason)).append("\n"); sb.append(" vatNumber: ").append(toIndentedString(vatNumber)).append("\n"); sb.append("}"); @@ -762,7 +691,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -771,7 +701,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Trust given an JSON string * * @param jsonString JSON string @@ -781,12 +711,11 @@ private String toIndentedString(Object o) { public static Trust fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Trust.class); } - - /** - * Convert an instance of Trust to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Trust to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/UKLocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/UKLocalAccountIdentification.java index e0da46fa0..80015a950 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/UKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/UKLocalAccountIdentification.java @@ -2,31 +2,37 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** UKLocalAccountIdentification */ + +/** + * UKLocalAccountIdentification + */ @JsonPropertyOrder({ UKLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, UKLocalAccountIdentification.JSON_PROPERTY_SORT_CODE, UKLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class UKLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -34,8 +40,11 @@ public class UKLocalAccountIdentification { public static final String JSON_PROPERTY_SORT_CODE = "sortCode"; private String sortCode; - /** **ukLocal** */ + /** + * **ukLocal** + */ public enum TypeEnum { + UKLOCAL(String.valueOf("ukLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -43,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -76,7 +81,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public UKLocalAccountIdentification() {} + public UKLocalAccountIdentification() { + } /** * The 8-digit bank account number, without separators or whitespace. @@ -91,7 +97,6 @@ public UKLocalAccountIdentification accountNumber(String accountNumber) { /** * The 8-digit bank account number, without separators or whitespace. - * * @return accountNumber The 8-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -112,11 +117,9 @@ public void setAccountNumber(String accountNumber) { } /** - * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or - * whitespace. + * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. * - * @param sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without - * separators or whitespace. + * @param sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. * @return the current {@code UKLocalAccountIdentification} instance, allowing for method chaining */ public UKLocalAccountIdentification sortCode(String sortCode) { @@ -125,11 +128,8 @@ public UKLocalAccountIdentification sortCode(String sortCode) { } /** - * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or - * whitespace. - * - * @return sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without - * separators or whitespace. + * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. + * @return sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_SORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,11 +138,9 @@ public String getSortCode() { } /** - * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or - * whitespace. + * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. * - * @param sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without - * separators or whitespace. + * @param sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_SORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,7 +161,6 @@ public UKLocalAccountIdentification type(TypeEnum type) { /** * **ukLocal** - * * @return type **ukLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -183,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this UKLocalAccountIdentification object is equal to o. */ + /** + * Return true if this UKLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -193,9 +192,9 @@ public boolean equals(Object o) { return false; } UKLocalAccountIdentification ukLocalAccountIdentification = (UKLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, ukLocalAccountIdentification.accountNumber) - && Objects.equals(this.sortCode, ukLocalAccountIdentification.sortCode) - && Objects.equals(this.type, ukLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, ukLocalAccountIdentification.accountNumber) && + Objects.equals(this.sortCode, ukLocalAccountIdentification.sortCode) && + Objects.equals(this.type, ukLocalAccountIdentification.type); } @Override @@ -215,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,24 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of UKLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of UKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UKLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to UKLocalAccountIdentification */ - public static UKLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static UKLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UKLocalAccountIdentification.class); } - - /** - * Convert an instance of UKLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of UKLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/USLocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/USLocalAccountIdentification.java index 5fb130f5a..28a57113a 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/USLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/USLocalAccountIdentification.java @@ -2,40 +2,47 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** USLocalAccountIdentification */ + +/** + * USLocalAccountIdentification + */ @JsonPropertyOrder({ USLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, USLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_TYPE, USLocalAccountIdentification.JSON_PROPERTY_ROUTING_NUMBER, USLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class USLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ public enum AccountTypeEnum { + CHECKING(String.valueOf("checking")), SAVINGS(String.valueOf("savings")); @@ -45,7 +52,7 @@ public enum AccountTypeEnum { private String value; AccountTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -66,11 +73,7 @@ public static AccountTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AccountTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AccountTypeEnum.values())); + LOG.warning("AccountTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AccountTypeEnum.values())); return null; } } @@ -81,8 +84,11 @@ public static AccountTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_ROUTING_NUMBER = "routingNumber"; private String routingNumber; - /** **usLocal** */ + /** + * **usLocal** + */ public enum TypeEnum { + USLOCAL(String.valueOf("usLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -90,7 +96,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -111,11 +117,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -123,7 +125,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public USLocalAccountIdentification() {} + public USLocalAccountIdentification() { + } /** * The bank account number, without separators or whitespace. @@ -138,7 +141,6 @@ public USLocalAccountIdentification accountNumber(String accountNumber) { /** * The bank account number, without separators or whitespace. - * * @return accountNumber The bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -159,10 +161,9 @@ public void setAccountNumber(String accountNumber) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. - * Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * @return the current {@code USLocalAccountIdentification} instance, allowing for method chaining */ public USLocalAccountIdentification accountType(AccountTypeEnum accountType) { @@ -171,10 +172,8 @@ public USLocalAccountIdentification accountType(AccountTypeEnum accountType) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. - * - * @return accountType The bank account type. Possible values: **checking** or **savings**. - * Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * @return accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,10 +182,9 @@ public AccountTypeEnum getAccountType() { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. - * Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,12 +193,9 @@ public void setAccountType(AccountTypeEnum accountType) { } /** - * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without - * separators or whitespace. + * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. * - * @param routingNumber The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * whitespace. + * @param routingNumber The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. * @return the current {@code USLocalAccountIdentification} instance, allowing for method chaining */ public USLocalAccountIdentification routingNumber(String routingNumber) { @@ -209,12 +204,8 @@ public USLocalAccountIdentification routingNumber(String routingNumber) { } /** - * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without - * separators or whitespace. - * - * @return routingNumber The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * whitespace. + * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * @return routingNumber The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,12 +214,9 @@ public String getRoutingNumber() { } /** - * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without - * separators or whitespace. + * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. * - * @param routingNumber The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * whitespace. + * @param routingNumber The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -249,7 +237,6 @@ public USLocalAccountIdentification type(TypeEnum type) { /** * **usLocal** - * * @return type **usLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -269,7 +256,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this USLocalAccountIdentification object is equal to o. */ + /** + * Return true if this USLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -279,10 +268,10 @@ public boolean equals(Object o) { return false; } USLocalAccountIdentification usLocalAccountIdentification = (USLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, usLocalAccountIdentification.accountNumber) - && Objects.equals(this.accountType, usLocalAccountIdentification.accountType) - && Objects.equals(this.routingNumber, usLocalAccountIdentification.routingNumber) - && Objects.equals(this.type, usLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, usLocalAccountIdentification.accountNumber) && + Objects.equals(this.accountType, usLocalAccountIdentification.accountType) && + Objects.equals(this.routingNumber, usLocalAccountIdentification.routingNumber) && + Objects.equals(this.type, usLocalAccountIdentification.type); } @Override @@ -303,7 +292,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -312,24 +302,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of USLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of USLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * USLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to USLocalAccountIdentification */ - public static USLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static USLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, USLocalAccountIdentification.class); } - - /** - * Convert an instance of USLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of USLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/UndefinedBeneficiary.java b/src/main/java/com/adyen/model/legalentitymanagement/UndefinedBeneficiary.java index e72f5fed2..bf2640183 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/UndefinedBeneficiary.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/UndefinedBeneficiary.java @@ -2,27 +2,36 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** UndefinedBeneficiary */ + +/** + * UndefinedBeneficiary + */ @JsonPropertyOrder({ UndefinedBeneficiary.JSON_PROPERTY_DESCRIPTION, UndefinedBeneficiary.JSON_PROPERTY_REFERENCE }) + public class UndefinedBeneficiary { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -30,10 +39,13 @@ public class UndefinedBeneficiary { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public UndefinedBeneficiary() {} + public UndefinedBeneficiary() { + } @JsonCreator - public UndefinedBeneficiary(@JsonProperty(JSON_PROPERTY_REFERENCE) String reference) { + public UndefinedBeneficiary( + @JsonProperty(JSON_PROPERTY_REFERENCE) String reference + ) { this(); this.reference = reference; } @@ -51,7 +63,6 @@ public UndefinedBeneficiary description(String description) { /** * The details of the undefined beneficiary. - * * @return description The details of the undefined beneficiary. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -73,7 +84,6 @@ public void setDescription(String description) { /** * The reference of the undefined beneficiary. - * * @return reference The reference of the undefined beneficiary. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -82,7 +92,10 @@ public String getReference() { return reference; } - /** Return true if this UndefinedBeneficiary object is equal to o. */ + + /** + * Return true if this UndefinedBeneficiary object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -92,8 +105,8 @@ public boolean equals(Object o) { return false; } UndefinedBeneficiary undefinedBeneficiary = (UndefinedBeneficiary) o; - return Objects.equals(this.description, undefinedBeneficiary.description) - && Objects.equals(this.reference, undefinedBeneficiary.reference); + return Objects.equals(this.description, undefinedBeneficiary.description) && + Objects.equals(this.reference, undefinedBeneficiary.reference); } @Override @@ -112,7 +125,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -121,23 +135,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of UndefinedBeneficiary given an JSON string * * @param jsonString JSON string * @return An instance of UndefinedBeneficiary - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UndefinedBeneficiary + * @throws JsonProcessingException if the JSON string is invalid with respect to UndefinedBeneficiary */ public static UndefinedBeneficiary fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UndefinedBeneficiary.class); } - - /** - * Convert an instance of UndefinedBeneficiary to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of UndefinedBeneficiary to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/UnincorporatedPartnership.java b/src/main/java/com/adyen/model/legalentitymanagement/UnincorporatedPartnership.java index 6526408db..b62f28e81 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/UnincorporatedPartnership.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/UnincorporatedPartnership.java @@ -2,28 +2,35 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.legalentitymanagement.Address; +import com.adyen.model.legalentitymanagement.TaxInformation; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** UnincorporatedPartnership */ +/** + * UnincorporatedPartnership + */ @JsonPropertyOrder({ UnincorporatedPartnership.JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW, UnincorporatedPartnership.JSON_PROPERTY_DATE_OF_INCORPORATION, @@ -38,6 +45,7 @@ UnincorporatedPartnership.JSON_PROPERTY_VAT_ABSENCE_REASON, UnincorporatedPartnership.JSON_PROPERTY_VAT_NUMBER }) + public class UnincorporatedPartnership { public static final String JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW = "countryOfGoverningLaw"; private String countryOfGoverningLaw; @@ -67,15 +75,10 @@ public class UnincorporatedPartnership { private List taxInformation; /** - * Type of Partnership. Possible values: * **limitedPartnership** * **generalPartnership** * - * **familyPartnership** * **commercialPartnership** * **publicPartnership** * - * **otherPartnership** * **gbr** * **gmbh** * **kgaa** * **cv** * **vof** * **maatschap** * - * **privateFundLimitedPartnership** * **businessTrustEntity** * **businessPartnership** * - * **limitedLiabilityPartnership** * **eg** * **cooperative** * **vos** * **comunidadDeBienes** * - * **herenciaYacente** * **comunidadDePropietarios** * **sep** * **sca** * **bt** * **kkt** * - * **scs** * **snc** + * Type of Partnership. Possible values: * **limitedPartnership** * **generalPartnership** * **familyPartnership** * **commercialPartnership** * **publicPartnership** * **otherPartnership** * **gbr** * **gmbh** * **kgaa** * **cv** * **vof** * **maatschap** * **privateFundLimitedPartnership** * **businessTrustEntity** * **businessPartnership** * **limitedLiabilityPartnership** * **eg** * **cooperative** * **vos** * **comunidadDeBienes** * **herenciaYacente** * **comunidadDePropietarios** * **sep** * **sca** * **bt** * **kkt** * **scs** * **snc** */ public enum TypeEnum { + LIMITEDPARTNERSHIP(String.valueOf("limitedPartnership")), GENERALPARTNERSHIP(String.valueOf("generalPartnership")), @@ -137,7 +140,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -158,11 +161,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -171,10 +170,10 @@ public static TypeEnum fromValue(String value) { private TypeEnum type; /** - * The reason for not providing a VAT number. Possible values: **industryExemption**, - * **belowTaxThreshold**. + * The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. */ public enum VatAbsenceReasonEnum { + INDUSTRYEXEMPTION(String.valueOf("industryExemption")), BELOWTAXTHRESHOLD(String.valueOf("belowTaxThreshold")); @@ -184,7 +183,7 @@ public enum VatAbsenceReasonEnum { private String value; VatAbsenceReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -205,11 +204,7 @@ public static VatAbsenceReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "VatAbsenceReasonEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(VatAbsenceReasonEnum.values())); + LOG.warning("VatAbsenceReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(VatAbsenceReasonEnum.values())); return null; } } @@ -220,21 +215,21 @@ public static VatAbsenceReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_VAT_NUMBER = "vatNumber"; private String vatNumber; - public UnincorporatedPartnership() {} + public UnincorporatedPartnership() { + } @JsonCreator - public UnincorporatedPartnership(@JsonProperty(JSON_PROPERTY_TYPE) TypeEnum type) { + public UnincorporatedPartnership( + @JsonProperty(JSON_PROPERTY_TYPE) TypeEnum type + ) { this(); this.type = type; } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code of the governing country. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. * - * @param countryOfGoverningLaw The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing - * country. + * @param countryOfGoverningLaw The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. * @return the current {@code UnincorporatedPartnership} instance, allowing for method chaining */ public UnincorporatedPartnership countryOfGoverningLaw(String countryOfGoverningLaw) { @@ -243,12 +238,8 @@ public UnincorporatedPartnership countryOfGoverningLaw(String countryOfGoverning } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code of the governing country. - * - * @return countryOfGoverningLaw The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing - * country. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. + * @return countryOfGoverningLaw The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. */ @JsonProperty(JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -257,12 +248,9 @@ public String getCountryOfGoverningLaw() { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * country code of the governing country. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. * - * @param countryOfGoverningLaw The two-character [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing - * country. + * @param countryOfGoverningLaw The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. */ @JsonProperty(JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -273,8 +261,7 @@ public void setCountryOfGoverningLaw(String countryOfGoverningLaw) { /** * The date when the legal arrangement was incorporated in YYYY-MM-DD format. * - * @param dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD - * format. + * @param dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD format. * @return the current {@code UnincorporatedPartnership} instance, allowing for method chaining */ public UnincorporatedPartnership dateOfIncorporation(String dateOfIncorporation) { @@ -284,9 +271,7 @@ public UnincorporatedPartnership dateOfIncorporation(String dateOfIncorporation) /** * The date when the legal arrangement was incorporated in YYYY-MM-DD format. - * - * @return dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD - * format. + * @return dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD format. */ @JsonProperty(JSON_PROPERTY_DATE_OF_INCORPORATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -297,8 +282,7 @@ public String getDateOfIncorporation() { /** * The date when the legal arrangement was incorporated in YYYY-MM-DD format. * - * @param dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD - * format. + * @param dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD format. */ @JsonProperty(JSON_PROPERTY_DATE_OF_INCORPORATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -319,7 +303,6 @@ public UnincorporatedPartnership description(String description) { /** * Short description about the Legal Arrangement. - * * @return description Short description about the Legal Arrangement. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -352,7 +335,6 @@ public UnincorporatedPartnership doingBusinessAs(String doingBusinessAs) { /** * The registered name, if different from the `name`. - * * @return doingBusinessAs The registered name, if different from the `name`. */ @JsonProperty(JSON_PROPERTY_DOING_BUSINESS_AS) @@ -385,7 +367,6 @@ public UnincorporatedPartnership name(String name) { /** * The legal name. - * * @return name The legal name. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -408,7 +389,7 @@ public void setName(String name) { /** * principalPlaceOfBusiness * - * @param principalPlaceOfBusiness + * @param principalPlaceOfBusiness * @return the current {@code UnincorporatedPartnership} instance, allowing for method chaining */ public UnincorporatedPartnership principalPlaceOfBusiness(Address principalPlaceOfBusiness) { @@ -418,8 +399,7 @@ public UnincorporatedPartnership principalPlaceOfBusiness(Address principalPlace /** * Get principalPlaceOfBusiness - * - * @return principalPlaceOfBusiness + * @return principalPlaceOfBusiness */ @JsonProperty(JSON_PROPERTY_PRINCIPAL_PLACE_OF_BUSINESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -430,7 +410,7 @@ public Address getPrincipalPlaceOfBusiness() { /** * principalPlaceOfBusiness * - * @param principalPlaceOfBusiness + * @param principalPlaceOfBusiness */ @JsonProperty(JSON_PROPERTY_PRINCIPAL_PLACE_OF_BUSINESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -441,7 +421,7 @@ public void setPrincipalPlaceOfBusiness(Address principalPlaceOfBusiness) { /** * registeredAddress * - * @param registeredAddress + * @param registeredAddress * @return the current {@code UnincorporatedPartnership} instance, allowing for method chaining */ public UnincorporatedPartnership registeredAddress(Address registeredAddress) { @@ -451,8 +431,7 @@ public UnincorporatedPartnership registeredAddress(Address registeredAddress) { /** * Get registeredAddress - * - * @return registeredAddress + * @return registeredAddress */ @JsonProperty(JSON_PROPERTY_REGISTERED_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -463,7 +442,7 @@ public Address getRegisteredAddress() { /** * registeredAddress * - * @param registeredAddress + * @param registeredAddress */ @JsonProperty(JSON_PROPERTY_REGISTERED_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -484,7 +463,6 @@ public UnincorporatedPartnership registrationNumber(String registrationNumber) { /** * The registration number. - * * @return registrationNumber The registration number. */ @JsonProperty(JSON_PROPERTY_REGISTRATION_NUMBER) @@ -525,7 +503,6 @@ public UnincorporatedPartnership addTaxInformationItem(TaxInformation taxInforma /** * The tax information of the entity. - * * @return taxInformation The tax information of the entity. */ @JsonProperty(JSON_PROPERTY_TAX_INFORMATION) @@ -546,21 +523,8 @@ public void setTaxInformation(List taxInformation) { } /** - * Type of Partnership. Possible values: * **limitedPartnership** * **generalPartnership** * - * **familyPartnership** * **commercialPartnership** * **publicPartnership** * - * **otherPartnership** * **gbr** * **gmbh** * **kgaa** * **cv** * **vof** * **maatschap** * - * **privateFundLimitedPartnership** * **businessTrustEntity** * **businessPartnership** * - * **limitedLiabilityPartnership** * **eg** * **cooperative** * **vos** * **comunidadDeBienes** * - * **herenciaYacente** * **comunidadDePropietarios** * **sep** * **sca** * **bt** * **kkt** * - * **scs** * **snc** - * - * @return type Type of Partnership. Possible values: * **limitedPartnership** * - * **generalPartnership** * **familyPartnership** * **commercialPartnership** * - * **publicPartnership** * **otherPartnership** * **gbr** * **gmbh** * **kgaa** * **cv** * - * **vof** * **maatschap** * **privateFundLimitedPartnership** * **businessTrustEntity** * - * **businessPartnership** * **limitedLiabilityPartnership** * **eg** * **cooperative** * - * **vos** * **comunidadDeBienes** * **herenciaYacente** * **comunidadDePropietarios** * - * **sep** * **sca** * **bt** * **kkt** * **scs** * **snc** + * Type of Partnership. Possible values: * **limitedPartnership** * **generalPartnership** * **familyPartnership** * **commercialPartnership** * **publicPartnership** * **otherPartnership** * **gbr** * **gmbh** * **kgaa** * **cv** * **vof** * **maatschap** * **privateFundLimitedPartnership** * **businessTrustEntity** * **businessPartnership** * **limitedLiabilityPartnership** * **eg** * **cooperative** * **vos** * **comunidadDeBienes** * **herenciaYacente** * **comunidadDePropietarios** * **sep** * **sca** * **bt** * **kkt** * **scs** * **snc** + * @return type Type of Partnership. Possible values: * **limitedPartnership** * **generalPartnership** * **familyPartnership** * **commercialPartnership** * **publicPartnership** * **otherPartnership** * **gbr** * **gmbh** * **kgaa** * **cv** * **vof** * **maatschap** * **privateFundLimitedPartnership** * **businessTrustEntity** * **businessPartnership** * **limitedLiabilityPartnership** * **eg** * **cooperative** * **vos** * **comunidadDeBienes** * **herenciaYacente** * **comunidadDePropietarios** * **sep** * **sca** * **bt** * **kkt** * **scs** * **snc** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -568,12 +532,11 @@ public TypeEnum getType() { return type; } + /** - * The reason for not providing a VAT number. Possible values: **industryExemption**, - * **belowTaxThreshold**. + * The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. * - * @param vatAbsenceReason The reason for not providing a VAT number. Possible values: - * **industryExemption**, **belowTaxThreshold**. + * @param vatAbsenceReason The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. * @return the current {@code UnincorporatedPartnership} instance, allowing for method chaining */ public UnincorporatedPartnership vatAbsenceReason(VatAbsenceReasonEnum vatAbsenceReason) { @@ -582,11 +545,8 @@ public UnincorporatedPartnership vatAbsenceReason(VatAbsenceReasonEnum vatAbsenc } /** - * The reason for not providing a VAT number. Possible values: **industryExemption**, - * **belowTaxThreshold**. - * - * @return vatAbsenceReason The reason for not providing a VAT number. Possible values: - * **industryExemption**, **belowTaxThreshold**. + * The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + * @return vatAbsenceReason The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. */ @JsonProperty(JSON_PROPERTY_VAT_ABSENCE_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -595,11 +555,9 @@ public VatAbsenceReasonEnum getVatAbsenceReason() { } /** - * The reason for not providing a VAT number. Possible values: **industryExemption**, - * **belowTaxThreshold**. + * The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. * - * @param vatAbsenceReason The reason for not providing a VAT number. Possible values: - * **industryExemption**, **belowTaxThreshold**. + * @param vatAbsenceReason The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. */ @JsonProperty(JSON_PROPERTY_VAT_ABSENCE_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -620,7 +578,6 @@ public UnincorporatedPartnership vatNumber(String vatNumber) { /** * The VAT number. - * * @return vatNumber The VAT number. */ @JsonProperty(JSON_PROPERTY_VAT_NUMBER) @@ -640,7 +597,9 @@ public void setVatNumber(String vatNumber) { this.vatNumber = vatNumber; } - /** Return true if this UnincorporatedPartnership object is equal to o. */ + /** + * Return true if this UnincorporatedPartnership object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -650,55 +609,35 @@ public boolean equals(Object o) { return false; } UnincorporatedPartnership unincorporatedPartnership = (UnincorporatedPartnership) o; - return Objects.equals( - this.countryOfGoverningLaw, unincorporatedPartnership.countryOfGoverningLaw) - && Objects.equals(this.dateOfIncorporation, unincorporatedPartnership.dateOfIncorporation) - && Objects.equals(this.description, unincorporatedPartnership.description) - && Objects.equals(this.doingBusinessAs, unincorporatedPartnership.doingBusinessAs) - && Objects.equals(this.name, unincorporatedPartnership.name) - && Objects.equals( - this.principalPlaceOfBusiness, unincorporatedPartnership.principalPlaceOfBusiness) - && Objects.equals(this.registeredAddress, unincorporatedPartnership.registeredAddress) - && Objects.equals(this.registrationNumber, unincorporatedPartnership.registrationNumber) - && Objects.equals(this.taxInformation, unincorporatedPartnership.taxInformation) - && Objects.equals(this.type, unincorporatedPartnership.type) - && Objects.equals(this.vatAbsenceReason, unincorporatedPartnership.vatAbsenceReason) - && Objects.equals(this.vatNumber, unincorporatedPartnership.vatNumber); + return Objects.equals(this.countryOfGoverningLaw, unincorporatedPartnership.countryOfGoverningLaw) && + Objects.equals(this.dateOfIncorporation, unincorporatedPartnership.dateOfIncorporation) && + Objects.equals(this.description, unincorporatedPartnership.description) && + Objects.equals(this.doingBusinessAs, unincorporatedPartnership.doingBusinessAs) && + Objects.equals(this.name, unincorporatedPartnership.name) && + Objects.equals(this.principalPlaceOfBusiness, unincorporatedPartnership.principalPlaceOfBusiness) && + Objects.equals(this.registeredAddress, unincorporatedPartnership.registeredAddress) && + Objects.equals(this.registrationNumber, unincorporatedPartnership.registrationNumber) && + Objects.equals(this.taxInformation, unincorporatedPartnership.taxInformation) && + Objects.equals(this.type, unincorporatedPartnership.type) && + Objects.equals(this.vatAbsenceReason, unincorporatedPartnership.vatAbsenceReason) && + Objects.equals(this.vatNumber, unincorporatedPartnership.vatNumber); } @Override public int hashCode() { - return Objects.hash( - countryOfGoverningLaw, - dateOfIncorporation, - description, - doingBusinessAs, - name, - principalPlaceOfBusiness, - registeredAddress, - registrationNumber, - taxInformation, - type, - vatAbsenceReason, - vatNumber); + return Objects.hash(countryOfGoverningLaw, dateOfIncorporation, description, doingBusinessAs, name, principalPlaceOfBusiness, registeredAddress, registrationNumber, taxInformation, type, vatAbsenceReason, vatNumber); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UnincorporatedPartnership {\n"); - sb.append(" countryOfGoverningLaw: ") - .append(toIndentedString(countryOfGoverningLaw)) - .append("\n"); - sb.append(" dateOfIncorporation: ") - .append(toIndentedString(dateOfIncorporation)) - .append("\n"); + sb.append(" countryOfGoverningLaw: ").append(toIndentedString(countryOfGoverningLaw)).append("\n"); + sb.append(" dateOfIncorporation: ").append(toIndentedString(dateOfIncorporation)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" doingBusinessAs: ").append(toIndentedString(doingBusinessAs)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" principalPlaceOfBusiness: ") - .append(toIndentedString(principalPlaceOfBusiness)) - .append("\n"); + sb.append(" principalPlaceOfBusiness: ").append(toIndentedString(principalPlaceOfBusiness)).append("\n"); sb.append(" registeredAddress: ").append(toIndentedString(registeredAddress)).append("\n"); sb.append(" registrationNumber: ").append(toIndentedString(registrationNumber)).append("\n"); sb.append(" taxInformation: ").append(toIndentedString(taxInformation)).append("\n"); @@ -710,7 +649,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -719,24 +659,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of UnincorporatedPartnership given an JSON string * * @param jsonString JSON string * @return An instance of UnincorporatedPartnership - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UnincorporatedPartnership + * @throws JsonProcessingException if the JSON string is invalid with respect to UnincorporatedPartnership */ - public static UnincorporatedPartnership fromJson(String jsonString) - throws JsonProcessingException { + public static UnincorporatedPartnership fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UnincorporatedPartnership.class); } - - /** - * Convert an instance of UnincorporatedPartnership to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of UnincorporatedPartnership to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/VerificationDeadline.java b/src/main/java/com/adyen/model/legalentitymanagement/VerificationDeadline.java index 3e9b342fd..440bd4e8f 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/VerificationDeadline.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/VerificationDeadline.java @@ -2,57 +2,61 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; +import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** VerificationDeadline */ + +/** + * VerificationDeadline + */ @JsonPropertyOrder({ VerificationDeadline.JSON_PROPERTY_CAPABILITIES, VerificationDeadline.JSON_PROPERTY_ENTITY_IDS, VerificationDeadline.JSON_PROPERTY_EXPIRES_AT }) + public class VerificationDeadline { - /** Gets or Sets capabilities */ + /** + * Gets or Sets capabilities + */ public enum CapabilitiesEnum { + ACCEPTEXTERNALFUNDING(String.valueOf("acceptExternalFunding")), ACCEPTPSPFUNDING(String.valueOf("acceptPspFunding")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES( - String.valueOf("acceptTransactionInRestrictedCountries")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES(String.valueOf("acceptTransactionInRestrictedCountries")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER( - String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES( - String.valueOf("acceptTransactionInRestrictedIndustries")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES(String.valueOf("acceptTransactionInRestrictedIndustries")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL( - String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER( - String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), ACQUIRING(String.valueOf("acquiring")), @@ -64,11 +68,9 @@ public enum CapabilitiesEnum { ATMWITHDRAWALINRESTRICTEDCOUNTRIES(String.valueOf("atmWithdrawalInRestrictedCountries")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER( - String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), AUTHORISEDPAYMENTINSTRUMENTUSER(String.valueOf("authorisedPaymentInstrumentUser")), @@ -124,15 +126,13 @@ public enum CapabilitiesEnum { USECARDINRESTRICTEDCOUNTRIES(String.valueOf("useCardInRestrictedCountries")), - USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("useCardInRestrictedCountriesCommercial")), + USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedCountriesCommercial")), USECARDINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("useCardInRestrictedCountriesConsumer")), USECARDINRESTRICTEDINDUSTRIES(String.valueOf("useCardInRestrictedIndustries")), - USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL( - String.valueOf("useCardInRestrictedIndustriesCommercial")), + USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedIndustriesCommercial")), USECARDINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("useCardInRestrictedIndustriesConsumer")), @@ -148,18 +148,16 @@ public enum CapabilitiesEnum { WITHDRAWFROMATMINRESTRICTEDCOUNTRIES(String.valueOf("withdrawFromAtmInRestrictedCountries")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER( - String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); private static final Logger LOG = Logger.getLogger(CapabilitiesEnum.class.getName()); private String value; CapabilitiesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -180,11 +178,7 @@ public static CapabilitiesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "CapabilitiesEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(CapabilitiesEnum.values())); + LOG.warning("CapabilitiesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CapabilitiesEnum.values())); return null; } } @@ -198,13 +192,15 @@ public static CapabilitiesEnum fromValue(String value) { public static final String JSON_PROPERTY_EXPIRES_AT = "expiresAt"; private OffsetDateTime expiresAt; - public VerificationDeadline() {} + public VerificationDeadline() { + } @JsonCreator public VerificationDeadline( - @JsonProperty(JSON_PROPERTY_CAPABILITIES) List capabilities, - @JsonProperty(JSON_PROPERTY_ENTITY_IDS) List entityIds, - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) OffsetDateTime expiresAt) { + @JsonProperty(JSON_PROPERTY_CAPABILITIES) List capabilities, + @JsonProperty(JSON_PROPERTY_ENTITY_IDS) List entityIds, + @JsonProperty(JSON_PROPERTY_EXPIRES_AT) OffsetDateTime expiresAt + ) { this(); this.capabilities = capabilities; this.entityIds = entityIds; @@ -212,11 +208,8 @@ public VerificationDeadline( } /** - * The list of capabilities that will be disallowed if information is not reviewed by the time of - * the deadline - * - * @return capabilities The list of capabilities that will be disallowed if information is not - * reviewed by the time of the deadline + * The list of capabilities that will be disallowed if information is not reviewed by the time of the deadline + * @return capabilities The list of capabilities that will be disallowed if information is not reviewed by the time of the deadline */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,11 +217,10 @@ public List getCapabilities() { return capabilities; } + /** * The unique identifiers of the legal entity or supporting entities that the deadline applies to - * - * @return entityIds The unique identifiers of the legal entity or supporting entities that the - * deadline applies to + * @return entityIds The unique identifiers of the legal entity or supporting entities that the deadline applies to */ @JsonProperty(JSON_PROPERTY_ENTITY_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -236,9 +228,9 @@ public List getEntityIds() { return entityIds; } + /** * The date that verification is due by before capabilities are disallowed. - * * @return expiresAt The date that verification is due by before capabilities are disallowed. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @@ -247,7 +239,10 @@ public OffsetDateTime getExpiresAt() { return expiresAt; } - /** Return true if this VerificationDeadline object is equal to o. */ + + /** + * Return true if this VerificationDeadline object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -257,9 +252,9 @@ public boolean equals(Object o) { return false; } VerificationDeadline verificationDeadline = (VerificationDeadline) o; - return Objects.equals(this.capabilities, verificationDeadline.capabilities) - && Objects.equals(this.entityIds, verificationDeadline.entityIds) - && Objects.equals(this.expiresAt, verificationDeadline.expiresAt); + return Objects.equals(this.capabilities, verificationDeadline.capabilities) && + Objects.equals(this.entityIds, verificationDeadline.entityIds) && + Objects.equals(this.expiresAt, verificationDeadline.expiresAt); } @Override @@ -279,7 +274,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -288,23 +284,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of VerificationDeadline given an JSON string * * @param jsonString JSON string * @return An instance of VerificationDeadline - * @throws JsonProcessingException if the JSON string is invalid with respect to - * VerificationDeadline + * @throws JsonProcessingException if the JSON string is invalid with respect to VerificationDeadline */ public static VerificationDeadline fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, VerificationDeadline.class); } - - /** - * Convert an instance of VerificationDeadline to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of VerificationDeadline to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/VerificationError.java b/src/main/java/com/adyen/model/legalentitymanagement/VerificationError.java index 222814811..23f4d300b 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/VerificationError.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/VerificationError.java @@ -2,28 +2,35 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.legalentitymanagement.RemediatingAction; +import com.adyen.model.legalentitymanagement.VerificationErrorRecursive; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** VerificationError */ +/** + * VerificationError + */ @JsonPropertyOrder({ VerificationError.JSON_PROPERTY_CAPABILITIES, VerificationError.JSON_PROPERTY_CODE, @@ -32,30 +39,28 @@ VerificationError.JSON_PROPERTY_SUB_ERRORS, VerificationError.JSON_PROPERTY_TYPE }) + public class VerificationError { - /** Gets or Sets capabilities */ + /** + * Gets or Sets capabilities + */ public enum CapabilitiesEnum { + ACCEPTEXTERNALFUNDING(String.valueOf("acceptExternalFunding")), ACCEPTPSPFUNDING(String.valueOf("acceptPspFunding")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES( - String.valueOf("acceptTransactionInRestrictedCountries")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES(String.valueOf("acceptTransactionInRestrictedCountries")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER( - String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES( - String.valueOf("acceptTransactionInRestrictedIndustries")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES(String.valueOf("acceptTransactionInRestrictedIndustries")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL( - String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER( - String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), ACQUIRING(String.valueOf("acquiring")), @@ -67,11 +72,9 @@ public enum CapabilitiesEnum { ATMWITHDRAWALINRESTRICTEDCOUNTRIES(String.valueOf("atmWithdrawalInRestrictedCountries")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER( - String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), AUTHORISEDPAYMENTINSTRUMENTUSER(String.valueOf("authorisedPaymentInstrumentUser")), @@ -127,15 +130,13 @@ public enum CapabilitiesEnum { USECARDINRESTRICTEDCOUNTRIES(String.valueOf("useCardInRestrictedCountries")), - USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("useCardInRestrictedCountriesCommercial")), + USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedCountriesCommercial")), USECARDINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("useCardInRestrictedCountriesConsumer")), USECARDINRESTRICTEDINDUSTRIES(String.valueOf("useCardInRestrictedIndustries")), - USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL( - String.valueOf("useCardInRestrictedIndustriesCommercial")), + USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedIndustriesCommercial")), USECARDINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("useCardInRestrictedIndustriesConsumer")), @@ -151,18 +152,16 @@ public enum CapabilitiesEnum { WITHDRAWFROMATMINRESTRICTEDCOUNTRIES(String.valueOf("withdrawFromAtmInRestrictedCountries")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER( - String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); private static final Logger LOG = Logger.getLogger(CapabilitiesEnum.class.getName()); private String value; CapabilitiesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -183,11 +182,7 @@ public static CapabilitiesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "CapabilitiesEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(CapabilitiesEnum.values())); + LOG.warning("CapabilitiesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CapabilitiesEnum.values())); return null; } } @@ -208,10 +203,10 @@ public static CapabilitiesEnum fromValue(String value) { private List subErrors; /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * - * **rejected** * **dataReview** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** */ public enum TypeEnum { + DATAMISSING(String.valueOf("dataMissing")), DATAREVIEW(String.valueOf("dataReview")), @@ -227,7 +222,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -248,11 +243,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -260,17 +251,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public VerificationError() {} + public VerificationError() { + } /** - * Contains key-value pairs that specify the actions that the legal entity can do in your - * platform. The key is a capability required for your integration. For example, **issueCard** for - * Issuing.The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that the legal entity can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that the legal entity can - * do in your platform. The key is a capability required for your integration. For example, - * **issueCard** for Issuing.The value is an object containing the settings for the - * capability. + * @param capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability. * @return the current {@code VerificationError} instance, allowing for method chaining */ public VerificationError capabilities(List capabilities) { @@ -287,14 +274,8 @@ public VerificationError addCapabilitiesItem(CapabilitiesEnum capabilitiesItem) } /** - * Contains key-value pairs that specify the actions that the legal entity can do in your - * platform. The key is a capability required for your integration. For example, **issueCard** for - * Issuing.The value is an object containing the settings for the capability. - * - * @return capabilities Contains key-value pairs that specify the actions that the legal entity - * can do in your platform. The key is a capability required for your integration. For - * example, **issueCard** for Issuing.The value is an object containing the settings for the - * capability. + * Contains key-value pairs that specify the actions that the legal entity can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability. + * @return capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -303,14 +284,9 @@ public List getCapabilities() { } /** - * Contains key-value pairs that specify the actions that the legal entity can do in your - * platform. The key is a capability required for your integration. For example, **issueCard** for - * Issuing.The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that the legal entity can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that the legal entity can - * do in your platform. The key is a capability required for your integration. For example, - * **issueCard** for Issuing.The value is an object containing the settings for the - * capability. + * @param capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -331,7 +307,6 @@ public VerificationError code(String code) { /** * The general error code. - * * @return code The general error code. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -364,7 +339,6 @@ public VerificationError message(String message) { /** * The general error message. - * * @return message The general error message. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -405,7 +379,6 @@ public VerificationError addRemediatingActionsItem(RemediatingAction remediating /** * An object containing possible solutions to fix a verification error. - * * @return remediatingActions An object containing possible solutions to fix a verification error. */ @JsonProperty(JSON_PROPERTY_REMEDIATING_ACTIONS) @@ -428,8 +401,7 @@ public void setRemediatingActions(List remediatingActions) { /** * An array containing more granular information about the cause of the verification error. * - * @param subErrors An array containing more granular information about the cause of the - * verification error. + * @param subErrors An array containing more granular information about the cause of the verification error. * @return the current {@code VerificationError} instance, allowing for method chaining */ public VerificationError subErrors(List subErrors) { @@ -447,9 +419,7 @@ public VerificationError addSubErrorsItem(VerificationErrorRecursive subErrorsIt /** * An array containing more granular information about the cause of the verification error. - * - * @return subErrors An array containing more granular information about the cause of the - * verification error. + * @return subErrors An array containing more granular information about the cause of the verification error. */ @JsonProperty(JSON_PROPERTY_SUB_ERRORS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -460,8 +430,7 @@ public List getSubErrors() { /** * An array containing more granular information about the cause of the verification error. * - * @param subErrors An array containing more granular information about the cause of the - * verification error. + * @param subErrors An array containing more granular information about the cause of the verification error. */ @JsonProperty(JSON_PROPERTY_SUB_ERRORS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -470,11 +439,9 @@ public void setSubErrors(List subErrors) { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * - * **rejected** * **dataReview** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** * - * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * - * **pendingStatus** * **rejected** * **dataReview** + * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** * @return the current {@code VerificationError} instance, allowing for method chaining */ public VerificationError type(TypeEnum type) { @@ -483,11 +450,8 @@ public VerificationError type(TypeEnum type) { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * - * **rejected** * **dataReview** - * - * @return type The type of error. Possible values: * **invalidInput** * **dataMissing** * - * **pendingStatus** * **rejected** * **dataReview** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** + * @return type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -496,11 +460,9 @@ public TypeEnum getType() { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * - * **rejected** * **dataReview** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** * - * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * - * **pendingStatus** * **rejected** * **dataReview** + * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -508,7 +470,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this VerificationError object is equal to o. */ + /** + * Return true if this VerificationError object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -518,12 +482,12 @@ public boolean equals(Object o) { return false; } VerificationError verificationError = (VerificationError) o; - return Objects.equals(this.capabilities, verificationError.capabilities) - && Objects.equals(this.code, verificationError.code) - && Objects.equals(this.message, verificationError.message) - && Objects.equals(this.remediatingActions, verificationError.remediatingActions) - && Objects.equals(this.subErrors, verificationError.subErrors) - && Objects.equals(this.type, verificationError.type); + return Objects.equals(this.capabilities, verificationError.capabilities) && + Objects.equals(this.code, verificationError.code) && + Objects.equals(this.message, verificationError.message) && + Objects.equals(this.remediatingActions, verificationError.remediatingActions) && + Objects.equals(this.subErrors, verificationError.subErrors) && + Objects.equals(this.type, verificationError.type); } @Override @@ -546,7 +510,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -555,7 +520,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of VerificationError given an JSON string * * @param jsonString JSON string @@ -565,12 +530,11 @@ private String toIndentedString(Object o) { public static VerificationError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, VerificationError.class); } - - /** - * Convert an instance of VerificationError to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of VerificationError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/VerificationErrorRecursive.java b/src/main/java/com/adyen/model/legalentitymanagement/VerificationErrorRecursive.java index d651ca8f2..44057230e 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/VerificationErrorRecursive.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/VerificationErrorRecursive.java @@ -2,29 +2,34 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.legalentitymanagement.RemediatingAction; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** VerificationErrorRecursive */ + +/** + * VerificationErrorRecursive + */ @JsonPropertyOrder({ VerificationErrorRecursive.JSON_PROPERTY_CAPABILITIES, VerificationErrorRecursive.JSON_PROPERTY_CODE, @@ -33,30 +38,28 @@ VerificationErrorRecursive.JSON_PROPERTY_REMEDIATING_ACTIONS }) @JsonTypeName("VerificationError-recursive") + public class VerificationErrorRecursive { - /** Gets or Sets capabilities */ + /** + * Gets or Sets capabilities + */ public enum CapabilitiesEnum { + ACCEPTEXTERNALFUNDING(String.valueOf("acceptExternalFunding")), ACCEPTPSPFUNDING(String.valueOf("acceptPspFunding")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES( - String.valueOf("acceptTransactionInRestrictedCountries")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES(String.valueOf("acceptTransactionInRestrictedCountries")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER( - String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES( - String.valueOf("acceptTransactionInRestrictedIndustries")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES(String.valueOf("acceptTransactionInRestrictedIndustries")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL( - String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER( - String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), ACQUIRING(String.valueOf("acquiring")), @@ -68,11 +71,9 @@ public enum CapabilitiesEnum { ATMWITHDRAWALINRESTRICTEDCOUNTRIES(String.valueOf("atmWithdrawalInRestrictedCountries")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER( - String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), AUTHORISEDPAYMENTINSTRUMENTUSER(String.valueOf("authorisedPaymentInstrumentUser")), @@ -128,15 +129,13 @@ public enum CapabilitiesEnum { USECARDINRESTRICTEDCOUNTRIES(String.valueOf("useCardInRestrictedCountries")), - USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("useCardInRestrictedCountriesCommercial")), + USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedCountriesCommercial")), USECARDINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("useCardInRestrictedCountriesConsumer")), USECARDINRESTRICTEDINDUSTRIES(String.valueOf("useCardInRestrictedIndustries")), - USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL( - String.valueOf("useCardInRestrictedIndustriesCommercial")), + USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedIndustriesCommercial")), USECARDINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("useCardInRestrictedIndustriesConsumer")), @@ -152,18 +151,16 @@ public enum CapabilitiesEnum { WITHDRAWFROMATMINRESTRICTEDCOUNTRIES(String.valueOf("withdrawFromAtmInRestrictedCountries")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL( - String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER( - String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); private static final Logger LOG = Logger.getLogger(CapabilitiesEnum.class.getName()); private String value; CapabilitiesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -184,11 +181,7 @@ public static CapabilitiesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "CapabilitiesEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(CapabilitiesEnum.values())); + LOG.warning("CapabilitiesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CapabilitiesEnum.values())); return null; } } @@ -203,10 +196,10 @@ public static CapabilitiesEnum fromValue(String value) { private String message; /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * - * **rejected** * **dataReview** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** */ public enum TypeEnum { + DATAMISSING(String.valueOf("dataMissing")), DATAREVIEW(String.valueOf("dataReview")), @@ -222,7 +215,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -243,11 +236,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -258,17 +247,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_REMEDIATING_ACTIONS = "remediatingActions"; private List remediatingActions; - public VerificationErrorRecursive() {} + public VerificationErrorRecursive() { + } /** - * Contains key-value pairs that specify the actions that the legal entity can do in your - * platform. The key is a capability required for your integration. For example, **issueCard** for - * Issuing.The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that the legal entity can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that the legal entity can - * do in your platform. The key is a capability required for your integration. For example, - * **issueCard** for Issuing.The value is an object containing the settings for the - * capability. + * @param capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability. * @return the current {@code VerificationErrorRecursive} instance, allowing for method chaining */ public VerificationErrorRecursive capabilities(List capabilities) { @@ -285,14 +270,8 @@ public VerificationErrorRecursive addCapabilitiesItem(CapabilitiesEnum capabilit } /** - * Contains key-value pairs that specify the actions that the legal entity can do in your - * platform. The key is a capability required for your integration. For example, **issueCard** for - * Issuing.The value is an object containing the settings for the capability. - * - * @return capabilities Contains key-value pairs that specify the actions that the legal entity - * can do in your platform. The key is a capability required for your integration. For - * example, **issueCard** for Issuing.The value is an object containing the settings for the - * capability. + * Contains key-value pairs that specify the actions that the legal entity can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability. + * @return capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -301,14 +280,9 @@ public List getCapabilities() { } /** - * Contains key-value pairs that specify the actions that the legal entity can do in your - * platform. The key is a capability required for your integration. For example, **issueCard** for - * Issuing.The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that the legal entity can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that the legal entity can - * do in your platform. The key is a capability required for your integration. For example, - * **issueCard** for Issuing.The value is an object containing the settings for the - * capability. + * @param capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -329,7 +303,6 @@ public VerificationErrorRecursive code(String code) { /** * The general error code. - * * @return code The general error code. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -362,7 +335,6 @@ public VerificationErrorRecursive message(String message) { /** * The general error message. - * * @return message The general error message. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -383,11 +355,9 @@ public void setMessage(String message) { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * - * **rejected** * **dataReview** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** * - * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * - * **pendingStatus** * **rejected** * **dataReview** + * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** * @return the current {@code VerificationErrorRecursive} instance, allowing for method chaining */ public VerificationErrorRecursive type(TypeEnum type) { @@ -396,11 +366,8 @@ public VerificationErrorRecursive type(TypeEnum type) { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * - * **rejected** * **dataReview** - * - * @return type The type of error. Possible values: * **invalidInput** * **dataMissing** * - * **pendingStatus** * **rejected** * **dataReview** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** + * @return type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -409,11 +376,9 @@ public TypeEnum getType() { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * - * **rejected** * **dataReview** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** * - * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * - * **pendingStatus** * **rejected** * **dataReview** + * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -432,8 +397,7 @@ public VerificationErrorRecursive remediatingActions(List rem return this; } - public VerificationErrorRecursive addRemediatingActionsItem( - RemediatingAction remediatingActionsItem) { + public VerificationErrorRecursive addRemediatingActionsItem(RemediatingAction remediatingActionsItem) { if (this.remediatingActions == null) { this.remediatingActions = new ArrayList<>(); } @@ -443,7 +407,6 @@ public VerificationErrorRecursive addRemediatingActionsItem( /** * An object containing possible solutions to fix a verification error. - * * @return remediatingActions An object containing possible solutions to fix a verification error. */ @JsonProperty(JSON_PROPERTY_REMEDIATING_ACTIONS) @@ -463,7 +426,9 @@ public void setRemediatingActions(List remediatingActions) { this.remediatingActions = remediatingActions; } - /** Return true if this VerificationError-recursive object is equal to o. */ + /** + * Return true if this VerificationError-recursive object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -473,11 +438,11 @@ public boolean equals(Object o) { return false; } VerificationErrorRecursive verificationErrorRecursive = (VerificationErrorRecursive) o; - return Objects.equals(this.capabilities, verificationErrorRecursive.capabilities) - && Objects.equals(this.code, verificationErrorRecursive.code) - && Objects.equals(this.message, verificationErrorRecursive.message) - && Objects.equals(this.type, verificationErrorRecursive.type) - && Objects.equals(this.remediatingActions, verificationErrorRecursive.remediatingActions); + return Objects.equals(this.capabilities, verificationErrorRecursive.capabilities) && + Objects.equals(this.code, verificationErrorRecursive.code) && + Objects.equals(this.message, verificationErrorRecursive.message) && + Objects.equals(this.type, verificationErrorRecursive.type) && + Objects.equals(this.remediatingActions, verificationErrorRecursive.remediatingActions); } @Override @@ -499,7 +464,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -508,24 +474,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of VerificationErrorRecursive given an JSON string * * @param jsonString JSON string * @return An instance of VerificationErrorRecursive - * @throws JsonProcessingException if the JSON string is invalid with respect to - * VerificationErrorRecursive + * @throws JsonProcessingException if the JSON string is invalid with respect to VerificationErrorRecursive */ - public static VerificationErrorRecursive fromJson(String jsonString) - throws JsonProcessingException { + public static VerificationErrorRecursive fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, VerificationErrorRecursive.class); } - - /** - * Convert an instance of VerificationErrorRecursive to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of VerificationErrorRecursive to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/VerificationErrors.java b/src/main/java/com/adyen/model/legalentitymanagement/VerificationErrors.java index 6e88832c7..e02f4952a 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/VerificationErrors.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/VerificationErrors.java @@ -2,30 +2,44 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.legalentitymanagement.CapabilityProblem; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * VerificationErrors + */ +@JsonPropertyOrder({ + VerificationErrors.JSON_PROPERTY_PROBLEMS +}) -/** VerificationErrors */ -@JsonPropertyOrder({VerificationErrors.JSON_PROPERTY_PROBLEMS}) public class VerificationErrors { public static final String JSON_PROPERTY_PROBLEMS = "problems"; private List problems; - public VerificationErrors() {} + public VerificationErrors() { + } /** * List of the verification errors. @@ -48,7 +62,6 @@ public VerificationErrors addProblemsItem(CapabilityProblem problemsItem) { /** * List of the verification errors. - * * @return problems List of the verification errors. */ @JsonProperty(JSON_PROPERTY_PROBLEMS) @@ -68,7 +81,9 @@ public void setProblems(List problems) { this.problems = problems; } - /** Return true if this VerificationErrors object is equal to o. */ + /** + * Return true if this VerificationErrors object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -96,7 +111,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -105,23 +121,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of VerificationErrors given an JSON string * * @param jsonString JSON string * @return An instance of VerificationErrors - * @throws JsonProcessingException if the JSON string is invalid with respect to - * VerificationErrors + * @throws JsonProcessingException if the JSON string is invalid with respect to VerificationErrors */ public static VerificationErrors fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, VerificationErrors.class); } - - /** - * Convert an instance of VerificationErrors to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of VerificationErrors to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/WebData.java b/src/main/java/com/adyen/model/legalentitymanagement/WebData.java index b5d556615..63c94d932 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/WebData.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/WebData.java @@ -2,24 +2,36 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** WebData */ -@JsonPropertyOrder({WebData.JSON_PROPERTY_WEB_ADDRESS, WebData.JSON_PROPERTY_WEB_ADDRESS_ID}) + +/** + * WebData + */ +@JsonPropertyOrder({ + WebData.JSON_PROPERTY_WEB_ADDRESS, + WebData.JSON_PROPERTY_WEB_ADDRESS_ID +}) + public class WebData { public static final String JSON_PROPERTY_WEB_ADDRESS = "webAddress"; private String webAddress; @@ -27,10 +39,13 @@ public class WebData { public static final String JSON_PROPERTY_WEB_ADDRESS_ID = "webAddressId"; private String webAddressId; - public WebData() {} + public WebData() { + } @JsonCreator - public WebData(@JsonProperty(JSON_PROPERTY_WEB_ADDRESS_ID) String webAddressId) { + public WebData( + @JsonProperty(JSON_PROPERTY_WEB_ADDRESS_ID) String webAddressId + ) { this(); this.webAddressId = webAddressId; } @@ -48,7 +63,6 @@ public WebData webAddress(String webAddress) { /** * The URL of the website or the app store URL. - * * @return webAddress The URL of the website or the app store URL. */ @JsonProperty(JSON_PROPERTY_WEB_ADDRESS) @@ -70,7 +84,6 @@ public void setWebAddress(String webAddress) { /** * The unique identifier of the web address. - * * @return webAddressId The unique identifier of the web address. */ @JsonProperty(JSON_PROPERTY_WEB_ADDRESS_ID) @@ -79,7 +92,10 @@ public String getWebAddressId() { return webAddressId; } - /** Return true if this WebData object is equal to o. */ + + /** + * Return true if this WebData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -89,8 +105,8 @@ public boolean equals(Object o) { return false; } WebData webData = (WebData) o; - return Objects.equals(this.webAddress, webData.webAddress) - && Objects.equals(this.webAddressId, webData.webAddressId); + return Objects.equals(this.webAddress, webData.webAddress) && + Objects.equals(this.webAddressId, webData.webAddressId); } @Override @@ -109,7 +125,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -118,7 +135,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of WebData given an JSON string * * @param jsonString JSON string @@ -128,12 +145,11 @@ private String toIndentedString(Object o) { public static WebData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, WebData.class); } - - /** - * Convert an instance of WebData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of WebData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/WebDataExemption.java b/src/main/java/com/adyen/model/legalentitymanagement/WebDataExemption.java index 1b7e17b88..61382338d 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/WebDataExemption.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/WebDataExemption.java @@ -2,30 +2,41 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * WebDataExemption + */ +@JsonPropertyOrder({ + WebDataExemption.JSON_PROPERTY_REASON +}) -/** WebDataExemption */ -@JsonPropertyOrder({WebDataExemption.JSON_PROPERTY_REASON}) public class WebDataExemption { - /** The reason why the web data was not provided. Possible value: **noOnlinePresence**. */ + /** + * The reason why the web data was not provided. Possible value: **noOnlinePresence**. + */ public enum ReasonEnum { + NOONLINEPRESENCE(String.valueOf("noOnlinePresence")), NOTCOLLECTEDDURINGONBOARDING(String.valueOf("notCollectedDuringOnboarding")); @@ -35,7 +46,7 @@ public enum ReasonEnum { private String value; ReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -56,11 +67,7 @@ public static ReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ReasonEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ReasonEnum.values())); + LOG.warning("ReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ReasonEnum.values())); return null; } } @@ -68,13 +75,13 @@ public static ReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_REASON = "reason"; private ReasonEnum reason; - public WebDataExemption() {} + public WebDataExemption() { + } /** * The reason why the web data was not provided. Possible value: **noOnlinePresence**. * - * @param reason The reason why the web data was not provided. Possible value: - * **noOnlinePresence**. + * @param reason The reason why the web data was not provided. Possible value: **noOnlinePresence**. * @return the current {@code WebDataExemption} instance, allowing for method chaining */ public WebDataExemption reason(ReasonEnum reason) { @@ -84,9 +91,7 @@ public WebDataExemption reason(ReasonEnum reason) { /** * The reason why the web data was not provided. Possible value: **noOnlinePresence**. - * - * @return reason The reason why the web data was not provided. Possible value: - * **noOnlinePresence**. + * @return reason The reason why the web data was not provided. Possible value: **noOnlinePresence**. */ @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,8 +102,7 @@ public ReasonEnum getReason() { /** * The reason why the web data was not provided. Possible value: **noOnlinePresence**. * - * @param reason The reason why the web data was not provided. Possible value: - * **noOnlinePresence**. + * @param reason The reason why the web data was not provided. Possible value: **noOnlinePresence**. */ @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,7 +110,9 @@ public void setReason(ReasonEnum reason) { this.reason = reason; } - /** Return true if this WebDataExemption object is equal to o. */ + /** + * Return true if this WebDataExemption object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -134,7 +140,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -143,7 +150,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of WebDataExemption given an JSON string * * @param jsonString JSON string @@ -153,12 +160,11 @@ private String toIndentedString(Object o) { public static WebDataExemption fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, WebDataExemption.class); } - - /** - * Convert an instance of WebDataExemption to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of WebDataExemption to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/management/AbstractOpenApiSchema.java index dec7eddcb..0517f07e2 100644 --- a/src/main/java/com/adyen/model/management/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/management/AbstractOpenApiSchema.java @@ -2,141 +2,145 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonValue; -import jakarta.ws.rs.core.GenericType; -import java.util.Map; import java.util.Objects; +import java.util.Map; +import jakarta.ws.rs.core.GenericType; -/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec + */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() { - return instance; - } - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) { - this.instance = instance; - } - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf - * schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); - } else { - return object.getActualInstance(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() {return instance;} + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) {this.instance = instance;} + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); + } else { + return object.getActualInstance(); + } + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) && + Objects.equals(this.isNullable, a.isNullable) && + Objects.equals(this.schemaType, a.schemaType); } - return o.toString().replace("\n", "\n "); - } - public boolean equals(Object o) { - if (this == o) { - return true; + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); } - if (o == null || getClass() != o.getClass()) { - return false; + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) - && Objects.equals(this.isNullable, a.isNullable) - && Objects.equals(this.schemaType, a.schemaType); - } - - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); - } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); - } -} + + + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/management/AccelInfo.java b/src/main/java/com/adyen/model/management/AccelInfo.java index 54579153a..1b2df5f85 100644 --- a/src/main/java/com/adyen/model/management/AccelInfo.java +++ b/src/main/java/com/adyen/model/management/AccelInfo.java @@ -2,40 +2,43 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.TransactionDescriptionInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** AccelInfo */ +/** + * AccelInfo + */ @JsonPropertyOrder({ AccelInfo.JSON_PROPERTY_PROCESSING_TYPE, AccelInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION }) + public class AccelInfo { /** - * The type of transactions processed over this payment method. Allowed values: - **pos** for - * in-person payments. - **billpay** for subscription payments, both the initial payment and the - * later recurring payments. These transactions have `recurringProcessingModel` - * **Subscription**. - **ecom** for all other card not present transactions. This includes - * non-recurring transactions and transactions with `recurringProcessingModel` - * **CardOnFile** or **UnscheduledCardOnFile**. + * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. */ public enum ProcessingTypeEnum { + BILLPAY(String.valueOf("billpay")), ECOM(String.valueOf("ecom")), @@ -47,7 +50,7 @@ public enum ProcessingTypeEnum { private String value; ProcessingTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -68,11 +71,7 @@ public static ProcessingTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ProcessingTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ProcessingTypeEnum.values())); + LOG.warning("ProcessingTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ProcessingTypeEnum.values())); return null; } } @@ -83,22 +82,13 @@ public static ProcessingTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANSACTION_DESCRIPTION = "transactionDescription"; private TransactionDescriptionInfo transactionDescription; - public AccelInfo() {} + public AccelInfo() { + } /** - * The type of transactions processed over this payment method. Allowed values: - **pos** for - * in-person payments. - **billpay** for subscription payments, both the initial payment and the - * later recurring payments. These transactions have `recurringProcessingModel` - * **Subscription**. - **ecom** for all other card not present transactions. This includes - * non-recurring transactions and transactions with `recurringProcessingModel` - * **CardOnFile** or **UnscheduledCardOnFile**. + * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. * - * @param processingType The type of transactions processed over this payment method. Allowed - * values: - **pos** for in-person payments. - **billpay** for subscription payments, both the - * initial payment and the later recurring payments. These transactions have - * `recurringProcessingModel` **Subscription**. - **ecom** for all other card not - * present transactions. This includes non-recurring transactions and transactions with - * `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * @param processingType The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. * @return the current {@code AccelInfo} instance, allowing for method chaining */ public AccelInfo processingType(ProcessingTypeEnum processingType) { @@ -107,19 +97,8 @@ public AccelInfo processingType(ProcessingTypeEnum processingType) { } /** - * The type of transactions processed over this payment method. Allowed values: - **pos** for - * in-person payments. - **billpay** for subscription payments, both the initial payment and the - * later recurring payments. These transactions have `recurringProcessingModel` - * **Subscription**. - **ecom** for all other card not present transactions. This includes - * non-recurring transactions and transactions with `recurringProcessingModel` - * **CardOnFile** or **UnscheduledCardOnFile**. - * - * @return processingType The type of transactions processed over this payment method. Allowed - * values: - **pos** for in-person payments. - **billpay** for subscription payments, both the - * initial payment and the later recurring payments. These transactions have - * `recurringProcessingModel` **Subscription**. - **ecom** for all other card not - * present transactions. This includes non-recurring transactions and transactions with - * `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * @return processingType The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. */ @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,19 +107,9 @@ public ProcessingTypeEnum getProcessingType() { } /** - * The type of transactions processed over this payment method. Allowed values: - **pos** for - * in-person payments. - **billpay** for subscription payments, both the initial payment and the - * later recurring payments. These transactions have `recurringProcessingModel` - * **Subscription**. - **ecom** for all other card not present transactions. This includes - * non-recurring transactions and transactions with `recurringProcessingModel` - * **CardOnFile** or **UnscheduledCardOnFile**. + * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. * - * @param processingType The type of transactions processed over this payment method. Allowed - * values: - **pos** for in-person payments. - **billpay** for subscription payments, both the - * initial payment and the later recurring payments. These transactions have - * `recurringProcessingModel` **Subscription**. - **ecom** for all other card not - * present transactions. This includes non-recurring transactions and transactions with - * `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * @param processingType The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. */ @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,7 +120,7 @@ public void setProcessingType(ProcessingTypeEnum processingType) { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription * @return the current {@code AccelInfo} instance, allowing for method chaining */ public AccelInfo transactionDescription(TransactionDescriptionInfo transactionDescription) { @@ -161,8 +130,7 @@ public AccelInfo transactionDescription(TransactionDescriptionInfo transactionDe /** * Get transactionDescription - * - * @return transactionDescription + * @return transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,7 +141,7 @@ public TransactionDescriptionInfo getTransactionDescription() { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,7 +149,9 @@ public void setTransactionDescription(TransactionDescriptionInfo transactionDesc this.transactionDescription = transactionDescription; } - /** Return true if this AccelInfo object is equal to o. */ + /** + * Return true if this AccelInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -191,8 +161,8 @@ public boolean equals(Object o) { return false; } AccelInfo accelInfo = (AccelInfo) o; - return Objects.equals(this.processingType, accelInfo.processingType) - && Objects.equals(this.transactionDescription, accelInfo.transactionDescription); + return Objects.equals(this.processingType, accelInfo.processingType) && + Objects.equals(this.transactionDescription, accelInfo.transactionDescription); } @Override @@ -205,15 +175,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AccelInfo {\n"); sb.append(" processingType: ").append(toIndentedString(processingType)).append("\n"); - sb.append(" transactionDescription: ") - .append(toIndentedString(transactionDescription)) - .append("\n"); + sb.append(" transactionDescription: ").append(toIndentedString(transactionDescription)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -222,7 +191,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AccelInfo given an JSON string * * @param jsonString JSON string @@ -232,12 +201,11 @@ private String toIndentedString(Object o) { public static AccelInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccelInfo.class); } - - /** - * Convert an instance of AccelInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AccelInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/AdditionalCommission.java b/src/main/java/com/adyen/model/management/AdditionalCommission.java index aea996a40..1ce0ef6a1 100644 --- a/src/main/java/com/adyen/model/management/AdditionalCommission.java +++ b/src/main/java/com/adyen/model/management/AdditionalCommission.java @@ -2,27 +2,37 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AdditionalCommission */ + +/** + * AdditionalCommission + */ @JsonPropertyOrder({ AdditionalCommission.JSON_PROPERTY_BALANCE_ACCOUNT_ID, AdditionalCommission.JSON_PROPERTY_FIXED_AMOUNT, AdditionalCommission.JSON_PROPERTY_VARIABLE_PERCENTAGE }) + public class AdditionalCommission { public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; @@ -33,13 +43,13 @@ public class AdditionalCommission { public static final String JSON_PROPERTY_VARIABLE_PERCENTAGE = "variablePercentage"; private Long variablePercentage; - public AdditionalCommission() {} + public AdditionalCommission() { + } /** * Unique identifier of the balance account to which the additional commission is booked. * - * @param balanceAccountId Unique identifier of the balance account to which the additional - * commission is booked. + * @param balanceAccountId Unique identifier of the balance account to which the additional commission is booked. * @return the current {@code AdditionalCommission} instance, allowing for method chaining */ public AdditionalCommission balanceAccountId(String balanceAccountId) { @@ -49,9 +59,7 @@ public AdditionalCommission balanceAccountId(String balanceAccountId) { /** * Unique identifier of the balance account to which the additional commission is booked. - * - * @return balanceAccountId Unique identifier of the balance account to which the additional - * commission is booked. + * @return balanceAccountId Unique identifier of the balance account to which the additional commission is booked. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -62,8 +70,7 @@ public String getBalanceAccountId() { /** * Unique identifier of the balance account to which the additional commission is booked. * - * @param balanceAccountId Unique identifier of the balance account to which the additional - * commission is booked. + * @param balanceAccountId Unique identifier of the balance account to which the additional commission is booked. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -84,7 +91,6 @@ public AdditionalCommission fixedAmount(Long fixedAmount) { /** * A fixed commission fee, in minor units. - * * @return fixedAmount A fixed commission fee, in minor units. */ @JsonProperty(JSON_PROPERTY_FIXED_AMOUNT) @@ -117,7 +123,6 @@ public AdditionalCommission variablePercentage(Long variablePercentage) { /** * A variable commission fee, in basis points. - * * @return variablePercentage A variable commission fee, in basis points. */ @JsonProperty(JSON_PROPERTY_VARIABLE_PERCENTAGE) @@ -137,7 +142,9 @@ public void setVariablePercentage(Long variablePercentage) { this.variablePercentage = variablePercentage; } - /** Return true if this AdditionalCommission object is equal to o. */ + /** + * Return true if this AdditionalCommission object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -147,9 +154,9 @@ public boolean equals(Object o) { return false; } AdditionalCommission additionalCommission = (AdditionalCommission) o; - return Objects.equals(this.balanceAccountId, additionalCommission.balanceAccountId) - && Objects.equals(this.fixedAmount, additionalCommission.fixedAmount) - && Objects.equals(this.variablePercentage, additionalCommission.variablePercentage); + return Objects.equals(this.balanceAccountId, additionalCommission.balanceAccountId) && + Objects.equals(this.fixedAmount, additionalCommission.fixedAmount) && + Objects.equals(this.variablePercentage, additionalCommission.variablePercentage); } @Override @@ -169,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -178,23 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalCommission given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalCommission - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalCommission + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalCommission */ public static AdditionalCommission fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalCommission.class); } - - /** - * Convert an instance of AdditionalCommission to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalCommission to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/AdditionalSettings.java b/src/main/java/com/adyen/model/management/AdditionalSettings.java index 5c6397fdf..a5c7ab687 100644 --- a/src/main/java/com/adyen/model/management/AdditionalSettings.java +++ b/src/main/java/com/adyen/model/management/AdditionalSettings.java @@ -2,30 +2,40 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** AdditionalSettings */ +/** + * AdditionalSettings + */ @JsonPropertyOrder({ AdditionalSettings.JSON_PROPERTY_INCLUDE_EVENT_CODES, AdditionalSettings.JSON_PROPERTY_PROPERTIES }) + public class AdditionalSettings { public static final String JSON_PROPERTY_INCLUDE_EVENT_CODES = "includeEventCodes"; private List includeEventCodes; @@ -33,13 +43,13 @@ public class AdditionalSettings { public static final String JSON_PROPERTY_PROPERTIES = "properties"; private Map properties; - public AdditionalSettings() {} + public AdditionalSettings() { + } /** - * Object containing list of event codes for which the notification will be sent. + * Object containing list of event codes for which the notification will be sent. * - * @param includeEventCodes Object containing list of event codes for which the notification will - * be sent. + * @param includeEventCodes Object containing list of event codes for which the notification will be sent. * @return the current {@code AdditionalSettings} instance, allowing for method chaining */ public AdditionalSettings includeEventCodes(List includeEventCodes) { @@ -56,10 +66,8 @@ public AdditionalSettings addIncludeEventCodesItem(String includeEventCodesItem) } /** - * Object containing list of event codes for which the notification will be sent. - * - * @return includeEventCodes Object containing list of event codes for which the notification will - * be sent. + * Object containing list of event codes for which the notification will be sent. + * @return includeEventCodes Object containing list of event codes for which the notification will be sent. */ @JsonProperty(JSON_PROPERTY_INCLUDE_EVENT_CODES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,10 +76,9 @@ public List getIncludeEventCodes() { } /** - * Object containing list of event codes for which the notification will be sent. + * Object containing list of event codes for which the notification will be sent. * - * @param includeEventCodes Object containing list of event codes for which the notification will - * be sent. + * @param includeEventCodes Object containing list of event codes for which the notification will be sent. */ @JsonProperty(JSON_PROPERTY_INCLUDE_EVENT_CODES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,18 +87,9 @@ public void setIncludeEventCodes(List includeEventCodes) { } /** - * Object containing boolean key-value pairs. The key can be any [standard webhook additional - * setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the - * value indicates if the setting is enabled. For example, `captureDelayHours`: **true** - * means the standard notifications you get will contain the number of hours remaining until the - * payment will be captured. + * Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `captureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured. * - * @param properties Object containing boolean key-value pairs. The key can be any [standard - * webhook additional - * setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and - * the value indicates if the setting is enabled. For example, `captureDelayHours`: - * **true** means the standard notifications you get will contain the number of hours - * remaining until the payment will be captured. + * @param properties Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `captureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured. * @return the current {@code AdditionalSettings} instance, allowing for method chaining */ public AdditionalSettings properties(Map properties) { @@ -108,18 +106,8 @@ public AdditionalSettings putPropertiesItem(String key, Boolean propertiesItem) } /** - * Object containing boolean key-value pairs. The key can be any [standard webhook additional - * setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the - * value indicates if the setting is enabled. For example, `captureDelayHours`: **true** - * means the standard notifications you get will contain the number of hours remaining until the - * payment will be captured. - * - * @return properties Object containing boolean key-value pairs. The key can be any [standard - * webhook additional - * setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and - * the value indicates if the setting is enabled. For example, `captureDelayHours`: - * **true** means the standard notifications you get will contain the number of hours - * remaining until the payment will be captured. + * Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `captureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured. + * @return properties Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `captureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured. */ @JsonProperty(JSON_PROPERTY_PROPERTIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,18 +116,9 @@ public Map getProperties() { } /** - * Object containing boolean key-value pairs. The key can be any [standard webhook additional - * setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the - * value indicates if the setting is enabled. For example, `captureDelayHours`: **true** - * means the standard notifications you get will contain the number of hours remaining until the - * payment will be captured. + * Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `captureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured. * - * @param properties Object containing boolean key-value pairs. The key can be any [standard - * webhook additional - * setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and - * the value indicates if the setting is enabled. For example, `captureDelayHours`: - * **true** means the standard notifications you get will contain the number of hours - * remaining until the payment will be captured. + * @param properties Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `captureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured. */ @JsonProperty(JSON_PROPERTY_PROPERTIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,7 +126,9 @@ public void setProperties(Map properties) { this.properties = properties; } - /** Return true if this AdditionalSettings object is equal to o. */ + /** + * Return true if this AdditionalSettings object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -157,8 +138,8 @@ public boolean equals(Object o) { return false; } AdditionalSettings additionalSettings = (AdditionalSettings) o; - return Objects.equals(this.includeEventCodes, additionalSettings.includeEventCodes) - && Objects.equals(this.properties, additionalSettings.properties); + return Objects.equals(this.includeEventCodes, additionalSettings.includeEventCodes) && + Objects.equals(this.properties, additionalSettings.properties); } @Override @@ -177,7 +158,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,23 +168,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalSettings given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalSettings - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalSettings + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalSettings */ public static AdditionalSettings fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalSettings.class); } - - /** - * Convert an instance of AdditionalSettings to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalSettings to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/AdditionalSettingsResponse.java b/src/main/java/com/adyen/model/management/AdditionalSettingsResponse.java index 27aab59e8..f62d6c2a8 100644 --- a/src/main/java/com/adyen/model/management/AdditionalSettingsResponse.java +++ b/src/main/java/com/adyen/model/management/AdditionalSettingsResponse.java @@ -2,31 +2,41 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** AdditionalSettingsResponse */ +/** + * AdditionalSettingsResponse + */ @JsonPropertyOrder({ AdditionalSettingsResponse.JSON_PROPERTY_EXCLUDE_EVENT_CODES, AdditionalSettingsResponse.JSON_PROPERTY_INCLUDE_EVENT_CODES, AdditionalSettingsResponse.JSON_PROPERTY_PROPERTIES }) + public class AdditionalSettingsResponse { public static final String JSON_PROPERTY_EXCLUDE_EVENT_CODES = "excludeEventCodes"; private List excludeEventCodes; @@ -37,13 +47,13 @@ public class AdditionalSettingsResponse { public static final String JSON_PROPERTY_PROPERTIES = "properties"; private Map properties; - public AdditionalSettingsResponse() {} + public AdditionalSettingsResponse() { + } /** - * Object containing list of event codes for which the notification will not be sent. + * Object containing list of event codes for which the notification will not be sent. * - * @param excludeEventCodes Object containing list of event codes for which the notification will - * not be sent. + * @param excludeEventCodes Object containing list of event codes for which the notification will not be sent. * @return the current {@code AdditionalSettingsResponse} instance, allowing for method chaining */ public AdditionalSettingsResponse excludeEventCodes(List excludeEventCodes) { @@ -60,10 +70,8 @@ public AdditionalSettingsResponse addExcludeEventCodesItem(String excludeEventCo } /** - * Object containing list of event codes for which the notification will not be sent. - * - * @return excludeEventCodes Object containing list of event codes for which the notification will - * not be sent. + * Object containing list of event codes for which the notification will not be sent. + * @return excludeEventCodes Object containing list of event codes for which the notification will not be sent. */ @JsonProperty(JSON_PROPERTY_EXCLUDE_EVENT_CODES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -72,10 +80,9 @@ public List getExcludeEventCodes() { } /** - * Object containing list of event codes for which the notification will not be sent. + * Object containing list of event codes for which the notification will not be sent. * - * @param excludeEventCodes Object containing list of event codes for which the notification will - * not be sent. + * @param excludeEventCodes Object containing list of event codes for which the notification will not be sent. */ @JsonProperty(JSON_PROPERTY_EXCLUDE_EVENT_CODES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -84,10 +91,9 @@ public void setExcludeEventCodes(List excludeEventCodes) { } /** - * Object containing list of event codes for which the notification will be sent. + * Object containing list of event codes for which the notification will be sent. * - * @param includeEventCodes Object containing list of event codes for which the notification will - * be sent. + * @param includeEventCodes Object containing list of event codes for which the notification will be sent. * @return the current {@code AdditionalSettingsResponse} instance, allowing for method chaining */ public AdditionalSettingsResponse includeEventCodes(List includeEventCodes) { @@ -104,10 +110,8 @@ public AdditionalSettingsResponse addIncludeEventCodesItem(String includeEventCo } /** - * Object containing list of event codes for which the notification will be sent. - * - * @return includeEventCodes Object containing list of event codes for which the notification will - * be sent. + * Object containing list of event codes for which the notification will be sent. + * @return includeEventCodes Object containing list of event codes for which the notification will be sent. */ @JsonProperty(JSON_PROPERTY_INCLUDE_EVENT_CODES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,10 +120,9 @@ public List getIncludeEventCodes() { } /** - * Object containing list of event codes for which the notification will be sent. + * Object containing list of event codes for which the notification will be sent. * - * @param includeEventCodes Object containing list of event codes for which the notification will - * be sent. + * @param includeEventCodes Object containing list of event codes for which the notification will be sent. */ @JsonProperty(JSON_PROPERTY_INCLUDE_EVENT_CODES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,18 +131,9 @@ public void setIncludeEventCodes(List includeEventCodes) { } /** - * Object containing boolean key-value pairs. The key can be any [standard webhook additional - * setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the - * value indicates if the setting is enabled. For example, `captureDelayHours`: **true** - * means the standard notifications you get will contain the number of hours remaining until the - * payment will be captured. + * Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `captureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured. * - * @param properties Object containing boolean key-value pairs. The key can be any [standard - * webhook additional - * setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and - * the value indicates if the setting is enabled. For example, `captureDelayHours`: - * **true** means the standard notifications you get will contain the number of hours - * remaining until the payment will be captured. + * @param properties Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `captureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured. * @return the current {@code AdditionalSettingsResponse} instance, allowing for method chaining */ public AdditionalSettingsResponse properties(Map properties) { @@ -156,18 +150,8 @@ public AdditionalSettingsResponse putPropertiesItem(String key, Boolean properti } /** - * Object containing boolean key-value pairs. The key can be any [standard webhook additional - * setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the - * value indicates if the setting is enabled. For example, `captureDelayHours`: **true** - * means the standard notifications you get will contain the number of hours remaining until the - * payment will be captured. - * - * @return properties Object containing boolean key-value pairs. The key can be any [standard - * webhook additional - * setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and - * the value indicates if the setting is enabled. For example, `captureDelayHours`: - * **true** means the standard notifications you get will contain the number of hours - * remaining until the payment will be captured. + * Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `captureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured. + * @return properties Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `captureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured. */ @JsonProperty(JSON_PROPERTY_PROPERTIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,18 +160,9 @@ public Map getProperties() { } /** - * Object containing boolean key-value pairs. The key can be any [standard webhook additional - * setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the - * value indicates if the setting is enabled. For example, `captureDelayHours`: **true** - * means the standard notifications you get will contain the number of hours remaining until the - * payment will be captured. + * Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `captureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured. * - * @param properties Object containing boolean key-value pairs. The key can be any [standard - * webhook additional - * setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and - * the value indicates if the setting is enabled. For example, `captureDelayHours`: - * **true** means the standard notifications you get will contain the number of hours - * remaining until the payment will be captured. + * @param properties Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `captureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured. */ @JsonProperty(JSON_PROPERTY_PROPERTIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,7 +170,9 @@ public void setProperties(Map properties) { this.properties = properties; } - /** Return true if this AdditionalSettingsResponse object is equal to o. */ + /** + * Return true if this AdditionalSettingsResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -205,9 +182,9 @@ public boolean equals(Object o) { return false; } AdditionalSettingsResponse additionalSettingsResponse = (AdditionalSettingsResponse) o; - return Objects.equals(this.excludeEventCodes, additionalSettingsResponse.excludeEventCodes) - && Objects.equals(this.includeEventCodes, additionalSettingsResponse.includeEventCodes) - && Objects.equals(this.properties, additionalSettingsResponse.properties); + return Objects.equals(this.excludeEventCodes, additionalSettingsResponse.excludeEventCodes) && + Objects.equals(this.includeEventCodes, additionalSettingsResponse.includeEventCodes) && + Objects.equals(this.properties, additionalSettingsResponse.properties); } @Override @@ -227,7 +204,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -236,24 +214,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalSettingsResponse given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalSettingsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalSettingsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalSettingsResponse */ - public static AdditionalSettingsResponse fromJson(String jsonString) - throws JsonProcessingException { + public static AdditionalSettingsResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalSettingsResponse.class); } - - /** - * Convert an instance of AdditionalSettingsResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalSettingsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Address.java b/src/main/java/com/adyen/model/management/Address.java index bd851098a..1597c4aa4 100644 --- a/src/main/java/com/adyen/model/management/Address.java +++ b/src/main/java/com/adyen/model/management/Address.java @@ -2,22 +2,31 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Address */ + +/** + * Address + */ @JsonPropertyOrder({ Address.JSON_PROPERTY_CITY, Address.JSON_PROPERTY_COMPANY_NAME, @@ -27,6 +36,7 @@ Address.JSON_PROPERTY_STREET_ADDRESS, Address.JSON_PROPERTY_STREET_ADDRESS2 }) + public class Address { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -49,7 +59,8 @@ public class Address { public static final String JSON_PROPERTY_STREET_ADDRESS2 = "streetAddress2"; private String streetAddress2; - public Address() {} + public Address() { + } /** * The name of the city. @@ -64,7 +75,6 @@ public Address city(String city) { /** * The name of the city. - * * @return city The name of the city. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -97,7 +107,6 @@ public Address companyName(String companyName) { /** * The name of the company. - * * @return companyName The name of the company. */ @JsonProperty(JSON_PROPERTY_COMPANY_NAME) @@ -118,11 +127,9 @@ public void setCompanyName(String companyName) { } /** - * The two-letter country code, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. + * The two-letter country code, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * - * @param country The two-letter country code, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. + * @param country The two-letter country code, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * @return the current {@code Address} instance, allowing for method chaining */ public Address country(String country) { @@ -131,11 +138,8 @@ public Address country(String country) { } /** - * The two-letter country code, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. - * - * @return country The two-letter country code, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. + * The two-letter country code, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. + * @return country The two-letter country code, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,11 +148,9 @@ public String getCountry() { } /** - * The two-letter country code, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. + * The two-letter country code, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * - * @param country The two-letter country code, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. + * @param country The two-letter country code, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,7 +171,6 @@ public Address postalCode(String postalCode) { /** * The postal code. - * * @return postalCode The postal code. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @@ -190,14 +191,9 @@ public void setPostalCode(String postalCode) { } /** - * The state or province as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For - * example, **ON** for Ontario, Canada. Applicable for the following countries: - Australia - - * Brazil - Canada - India - Mexico - New Zealand - United States + * The state or province as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Applicable for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States * - * @param stateOrProvince The state or province as defined in [ISO - * 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. - * Applicable for the following countries: - Australia - Brazil - Canada - India - Mexico - - * New Zealand - United States + * @param stateOrProvince The state or province as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Applicable for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States * @return the current {@code Address} instance, allowing for method chaining */ public Address stateOrProvince(String stateOrProvince) { @@ -206,14 +202,8 @@ public Address stateOrProvince(String stateOrProvince) { } /** - * The state or province as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For - * example, **ON** for Ontario, Canada. Applicable for the following countries: - Australia - - * Brazil - Canada - India - Mexico - New Zealand - United States - * - * @return stateOrProvince The state or province as defined in [ISO - * 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. - * Applicable for the following countries: - Australia - Brazil - Canada - India - Mexico - - * New Zealand - United States + * The state or province as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Applicable for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States + * @return stateOrProvince The state or province as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Applicable for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -222,14 +212,9 @@ public String getStateOrProvince() { } /** - * The state or province as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For - * example, **ON** for Ontario, Canada. Applicable for the following countries: - Australia - - * Brazil - Canada - India - Mexico - New Zealand - United States + * The state or province as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Applicable for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States * - * @param stateOrProvince The state or province as defined in [ISO - * 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. - * Applicable for the following countries: - Australia - Brazil - Canada - India - Mexico - - * New Zealand - United States + * @param stateOrProvince The state or province as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Applicable for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,7 +235,6 @@ public Address streetAddress(String streetAddress) { /** * The name of the street, and the house or building number. - * * @return streetAddress The name of the street, and the house or building number. */ @JsonProperty(JSON_PROPERTY_STREET_ADDRESS) @@ -283,7 +267,6 @@ public Address streetAddress2(String streetAddress2) { /** * Additional address details, if any. - * * @return streetAddress2 Additional address details, if any. */ @JsonProperty(JSON_PROPERTY_STREET_ADDRESS2) @@ -303,7 +286,9 @@ public void setStreetAddress2(String streetAddress2) { this.streetAddress2 = streetAddress2; } - /** Return true if this Address object is equal to o. */ + /** + * Return true if this Address object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -313,19 +298,18 @@ public boolean equals(Object o) { return false; } Address address = (Address) o; - return Objects.equals(this.city, address.city) - && Objects.equals(this.companyName, address.companyName) - && Objects.equals(this.country, address.country) - && Objects.equals(this.postalCode, address.postalCode) - && Objects.equals(this.stateOrProvince, address.stateOrProvince) - && Objects.equals(this.streetAddress, address.streetAddress) - && Objects.equals(this.streetAddress2, address.streetAddress2); + return Objects.equals(this.city, address.city) && + Objects.equals(this.companyName, address.companyName) && + Objects.equals(this.country, address.country) && + Objects.equals(this.postalCode, address.postalCode) && + Objects.equals(this.stateOrProvince, address.stateOrProvince) && + Objects.equals(this.streetAddress, address.streetAddress) && + Objects.equals(this.streetAddress2, address.streetAddress2); } @Override public int hashCode() { - return Objects.hash( - city, companyName, country, postalCode, stateOrProvince, streetAddress, streetAddress2); + return Objects.hash(city, companyName, country, postalCode, stateOrProvince, streetAddress, streetAddress2); } @Override @@ -344,7 +328,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -353,7 +338,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Address given an JSON string * * @param jsonString JSON string @@ -363,12 +348,11 @@ private String toIndentedString(Object o) { public static Address fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Address.class); } - - /** - * Convert an instance of Address to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Address to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/AffirmInfo.java b/src/main/java/com/adyen/model/management/AffirmInfo.java index cd316e382..5169a422a 100644 --- a/src/main/java/com/adyen/model/management/AffirmInfo.java +++ b/src/main/java/com/adyen/model/management/AffirmInfo.java @@ -2,28 +2,41 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AffirmInfo */ -@JsonPropertyOrder({AffirmInfo.JSON_PROPERTY_SUPPORT_EMAIL}) + +/** + * AffirmInfo + */ +@JsonPropertyOrder({ + AffirmInfo.JSON_PROPERTY_SUPPORT_EMAIL +}) + public class AffirmInfo { public static final String JSON_PROPERTY_SUPPORT_EMAIL = "supportEmail"; private String supportEmail; - public AffirmInfo() {} + public AffirmInfo() { + } /** * Merchant support email @@ -38,7 +51,6 @@ public AffirmInfo supportEmail(String supportEmail) { /** * Merchant support email - * * @return supportEmail Merchant support email */ @JsonProperty(JSON_PROPERTY_SUPPORT_EMAIL) @@ -58,7 +70,9 @@ public void setSupportEmail(String supportEmail) { this.supportEmail = supportEmail; } - /** Return true if this AffirmInfo object is equal to o. */ + /** + * Return true if this AffirmInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,7 +110,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AffirmInfo given an JSON string * * @param jsonString JSON string @@ -105,12 +120,11 @@ private String toIndentedString(Object o) { public static AffirmInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AffirmInfo.class); } - - /** - * Convert an instance of AffirmInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AffirmInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/AfterpayTouchInfo.java b/src/main/java/com/adyen/model/management/AfterpayTouchInfo.java index 9e35f4215..cc19c2fbb 100644 --- a/src/main/java/com/adyen/model/management/AfterpayTouchInfo.java +++ b/src/main/java/com/adyen/model/management/AfterpayTouchInfo.java @@ -2,26 +2,36 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AfterpayTouchInfo */ + +/** + * AfterpayTouchInfo + */ @JsonPropertyOrder({ AfterpayTouchInfo.JSON_PROPERTY_SUPPORT_EMAIL, AfterpayTouchInfo.JSON_PROPERTY_SUPPORT_URL }) + public class AfterpayTouchInfo { public static final String JSON_PROPERTY_SUPPORT_EMAIL = "supportEmail"; private String supportEmail; @@ -29,7 +39,8 @@ public class AfterpayTouchInfo { public static final String JSON_PROPERTY_SUPPORT_URL = "supportUrl"; private String supportUrl; - public AfterpayTouchInfo() {} + public AfterpayTouchInfo() { + } /** * Support Email @@ -44,7 +55,6 @@ public AfterpayTouchInfo supportEmail(String supportEmail) { /** * Support Email - * * @return supportEmail Support Email */ @JsonProperty(JSON_PROPERTY_SUPPORT_EMAIL) @@ -77,7 +87,6 @@ public AfterpayTouchInfo supportUrl(String supportUrl) { /** * Support Url - * * @return supportUrl Support Url */ @JsonProperty(JSON_PROPERTY_SUPPORT_URL) @@ -97,7 +106,9 @@ public void setSupportUrl(String supportUrl) { this.supportUrl = supportUrl; } - /** Return true if this AfterpayTouchInfo object is equal to o. */ + /** + * Return true if this AfterpayTouchInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -107,8 +118,8 @@ public boolean equals(Object o) { return false; } AfterpayTouchInfo afterpayTouchInfo = (AfterpayTouchInfo) o; - return Objects.equals(this.supportEmail, afterpayTouchInfo.supportEmail) - && Objects.equals(this.supportUrl, afterpayTouchInfo.supportUrl); + return Objects.equals(this.supportEmail, afterpayTouchInfo.supportEmail) && + Objects.equals(this.supportUrl, afterpayTouchInfo.supportUrl); } @Override @@ -127,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AfterpayTouchInfo given an JSON string * * @param jsonString JSON string @@ -146,12 +158,11 @@ private String toIndentedString(Object o) { public static AfterpayTouchInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AfterpayTouchInfo.class); } - - /** - * Convert an instance of AfterpayTouchInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AfterpayTouchInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/AlipayPlusInfo.java b/src/main/java/com/adyen/model/management/AlipayPlusInfo.java index 1923a39a6..e0d450378 100644 --- a/src/main/java/com/adyen/model/management/AlipayPlusInfo.java +++ b/src/main/java/com/adyen/model/management/AlipayPlusInfo.java @@ -2,28 +2,41 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AlipayPlusInfo */ -@JsonPropertyOrder({AlipayPlusInfo.JSON_PROPERTY_SETTLEMENT_CURRENCY_CODE}) + +/** + * AlipayPlusInfo + */ +@JsonPropertyOrder({ + AlipayPlusInfo.JSON_PROPERTY_SETTLEMENT_CURRENCY_CODE +}) + public class AlipayPlusInfo { public static final String JSON_PROPERTY_SETTLEMENT_CURRENCY_CODE = "settlementCurrencyCode"; private String settlementCurrencyCode; - public AlipayPlusInfo() {} + public AlipayPlusInfo() { + } /** * The currency used for settlement. Defaults to USD. @@ -38,7 +51,6 @@ public AlipayPlusInfo settlementCurrencyCode(String settlementCurrencyCode) { /** * The currency used for settlement. Defaults to USD. - * * @return settlementCurrencyCode The currency used for settlement. Defaults to USD. */ @JsonProperty(JSON_PROPERTY_SETTLEMENT_CURRENCY_CODE) @@ -58,7 +70,9 @@ public void setSettlementCurrencyCode(String settlementCurrencyCode) { this.settlementCurrencyCode = settlementCurrencyCode; } - /** Return true if this AlipayPlusInfo object is equal to o. */ + /** + * Return true if this AlipayPlusInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -80,15 +94,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AlipayPlusInfo {\n"); - sb.append(" settlementCurrencyCode: ") - .append(toIndentedString(settlementCurrencyCode)) - .append("\n"); + sb.append(" settlementCurrencyCode: ").append(toIndentedString(settlementCurrencyCode)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -97,7 +110,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AlipayPlusInfo given an JSON string * * @param jsonString JSON string @@ -107,12 +120,11 @@ private String toIndentedString(Object o) { public static AlipayPlusInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AlipayPlusInfo.class); } - - /** - * Convert an instance of AlipayPlusInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AlipayPlusInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/AllowedOrigin.java b/src/main/java/com/adyen/model/management/AllowedOrigin.java index 10b23b032..436877bab 100644 --- a/src/main/java/com/adyen/model/management/AllowedOrigin.java +++ b/src/main/java/com/adyen/model/management/AllowedOrigin.java @@ -2,27 +2,38 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.Links; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AllowedOrigin */ + +/** + * AllowedOrigin + */ @JsonPropertyOrder({ AllowedOrigin.JSON_PROPERTY_LINKS, AllowedOrigin.JSON_PROPERTY_DOMAIN, AllowedOrigin.JSON_PROPERTY_ID }) + public class AllowedOrigin { public static final String JSON_PROPERTY_LINKS = "_links"; private Links links; @@ -33,12 +44,13 @@ public class AllowedOrigin { public static final String JSON_PROPERTY_ID = "id"; private String id; - public AllowedOrigin() {} + public AllowedOrigin() { + } /** * links * - * @param links + * @param links * @return the current {@code AllowedOrigin} instance, allowing for method chaining */ public AllowedOrigin links(Links links) { @@ -48,8 +60,7 @@ public AllowedOrigin links(Links links) { /** * Get links - * - * @return links + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,7 +71,7 @@ public Links getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -81,7 +92,6 @@ public AllowedOrigin domain(String domain) { /** * Domain of the allowed origin. - * * @return domain Domain of the allowed origin. */ @JsonProperty(JSON_PROPERTY_DOMAIN) @@ -114,7 +124,6 @@ public AllowedOrigin id(String id) { /** * Unique identifier of the allowed origin. - * * @return id Unique identifier of the allowed origin. */ @JsonProperty(JSON_PROPERTY_ID) @@ -134,7 +143,9 @@ public void setId(String id) { this.id = id; } - /** Return true if this AllowedOrigin object is equal to o. */ + /** + * Return true if this AllowedOrigin object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,9 +155,9 @@ public boolean equals(Object o) { return false; } AllowedOrigin allowedOrigin = (AllowedOrigin) o; - return Objects.equals(this.links, allowedOrigin.links) - && Objects.equals(this.domain, allowedOrigin.domain) - && Objects.equals(this.id, allowedOrigin.id); + return Objects.equals(this.links, allowedOrigin.links) && + Objects.equals(this.domain, allowedOrigin.domain) && + Objects.equals(this.id, allowedOrigin.id); } @Override @@ -166,7 +177,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,7 +187,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AllowedOrigin given an JSON string * * @param jsonString JSON string @@ -185,12 +197,11 @@ private String toIndentedString(Object o) { public static AllowedOrigin fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AllowedOrigin.class); } - - /** - * Convert an instance of AllowedOrigin to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AllowedOrigin to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/AllowedOriginsResponse.java b/src/main/java/com/adyen/model/management/AllowedOriginsResponse.java index 8554427ea..5d49b2c52 100644 --- a/src/main/java/com/adyen/model/management/AllowedOriginsResponse.java +++ b/src/main/java/com/adyen/model/management/AllowedOriginsResponse.java @@ -2,30 +2,44 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.AllowedOrigin; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * AllowedOriginsResponse + */ +@JsonPropertyOrder({ + AllowedOriginsResponse.JSON_PROPERTY_DATA +}) -/** AllowedOriginsResponse */ -@JsonPropertyOrder({AllowedOriginsResponse.JSON_PROPERTY_DATA}) public class AllowedOriginsResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; - public AllowedOriginsResponse() {} + public AllowedOriginsResponse() { + } /** * List of allowed origins. @@ -48,7 +62,6 @@ public AllowedOriginsResponse addDataItem(AllowedOrigin dataItem) { /** * List of allowed origins. - * * @return data List of allowed origins. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -68,7 +81,9 @@ public void setData(List data) { this.data = data; } - /** Return true if this AllowedOriginsResponse object is equal to o. */ + /** + * Return true if this AllowedOriginsResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -96,7 +111,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -105,23 +121,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AllowedOriginsResponse given an JSON string * * @param jsonString JSON string * @return An instance of AllowedOriginsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AllowedOriginsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to AllowedOriginsResponse */ public static AllowedOriginsResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AllowedOriginsResponse.class); } - - /** - * Convert an instance of AllowedOriginsResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AllowedOriginsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/AmexInfo.java b/src/main/java/com/adyen/model/management/AmexInfo.java index 75fdef543..6eabdc88c 100644 --- a/src/main/java/com/adyen/model/management/AmexInfo.java +++ b/src/main/java/com/adyen/model/management/AmexInfo.java @@ -2,31 +2,37 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** AmexInfo */ +/** + * AmexInfo + */ @JsonPropertyOrder({ AmexInfo.JSON_PROPERTY_MID_NUMBER, AmexInfo.JSON_PROPERTY_REUSE_MID_NUMBER, AmexInfo.JSON_PROPERTY_SERVICE_LEVEL }) + public class AmexInfo { public static final String JSON_PROPERTY_MID_NUMBER = "midNumber"; private String midNumber; @@ -35,13 +41,10 @@ public class AmexInfo { private Boolean reuseMidNumber; /** - * Specifies the service level (settlement type) of this payment method. Possible values: * - * **noContract**: Adyen holds the contract with American Express. * **gatewayContract**: American - * Express receives the settlement and handles disputes, then pays out to you or your sub-merchant - * directly. * **paymentDesignatorContract**: Adyen receives the settlement, and handles disputes - * and payouts. + * Specifies the service level (settlement type) of this payment method. Possible values: * **noContract**: Adyen holds the contract with American Express. * **gatewayContract**: American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Adyen receives the settlement, and handles disputes and payouts. */ public enum ServiceLevelEnum { + NOCONTRACT(String.valueOf("noContract")), GATEWAYCONTRACT(String.valueOf("gatewayContract")), @@ -53,7 +56,7 @@ public enum ServiceLevelEnum { private String value; ServiceLevelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -74,11 +77,7 @@ public static ServiceLevelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ServiceLevelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ServiceLevelEnum.values())); + LOG.warning("ServiceLevelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ServiceLevelEnum.values())); return null; } } @@ -86,15 +85,13 @@ public static ServiceLevelEnum fromValue(String value) { public static final String JSON_PROPERTY_SERVICE_LEVEL = "serviceLevel"; private ServiceLevelEnum serviceLevel; - public AmexInfo() {} + public AmexInfo() { + } /** - * Merchant ID (MID) number. Format: 10 numeric characters. You must provide this field when you - * request `gatewayContract` or `paymentDesignatorContract` service levels. + * Merchant ID (MID) number. Format: 10 numeric characters. You must provide this field when you request `gatewayContract` or `paymentDesignatorContract` service levels. * - * @param midNumber Merchant ID (MID) number. Format: 10 numeric characters. You must provide this - * field when you request `gatewayContract` or `paymentDesignatorContract` - * service levels. + * @param midNumber Merchant ID (MID) number. Format: 10 numeric characters. You must provide this field when you request `gatewayContract` or `paymentDesignatorContract` service levels. * @return the current {@code AmexInfo} instance, allowing for method chaining */ public AmexInfo midNumber(String midNumber) { @@ -103,12 +100,8 @@ public AmexInfo midNumber(String midNumber) { } /** - * Merchant ID (MID) number. Format: 10 numeric characters. You must provide this field when you - * request `gatewayContract` or `paymentDesignatorContract` service levels. - * - * @return midNumber Merchant ID (MID) number. Format: 10 numeric characters. You must provide - * this field when you request `gatewayContract` or - * `paymentDesignatorContract` service levels. + * Merchant ID (MID) number. Format: 10 numeric characters. You must provide this field when you request `gatewayContract` or `paymentDesignatorContract` service levels. + * @return midNumber Merchant ID (MID) number. Format: 10 numeric characters. You must provide this field when you request `gatewayContract` or `paymentDesignatorContract` service levels. */ @JsonProperty(JSON_PROPERTY_MID_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,12 +110,9 @@ public String getMidNumber() { } /** - * Merchant ID (MID) number. Format: 10 numeric characters. You must provide this field when you - * request `gatewayContract` or `paymentDesignatorContract` service levels. + * Merchant ID (MID) number. Format: 10 numeric characters. You must provide this field when you request `gatewayContract` or `paymentDesignatorContract` service levels. * - * @param midNumber Merchant ID (MID) number. Format: 10 numeric characters. You must provide this - * field when you request `gatewayContract` or `paymentDesignatorContract` - * service levels. + * @param midNumber Merchant ID (MID) number. Format: 10 numeric characters. You must provide this field when you request `gatewayContract` or `paymentDesignatorContract` service levels. */ @JsonProperty(JSON_PROPERTY_MID_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -131,13 +121,9 @@ public void setMidNumber(String midNumber) { } /** - * Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method. - * This is only applicable for `gatewayContract` and - * `paymentDesignatorContract` service levels. The default value is **false**. + * Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method. This is only applicable for `gatewayContract` and `paymentDesignatorContract` service levels. The default value is **false**. * - * @param reuseMidNumber Indicates whether the Amex Merchant ID is reused from a previously setup - * Amex payment method. This is only applicable for `gatewayContract` and - * `paymentDesignatorContract` service levels. The default value is **false**. + * @param reuseMidNumber Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method. This is only applicable for `gatewayContract` and `paymentDesignatorContract` service levels. The default value is **false**. * @return the current {@code AmexInfo} instance, allowing for method chaining */ public AmexInfo reuseMidNumber(Boolean reuseMidNumber) { @@ -146,13 +132,8 @@ public AmexInfo reuseMidNumber(Boolean reuseMidNumber) { } /** - * Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method. - * This is only applicable for `gatewayContract` and - * `paymentDesignatorContract` service levels. The default value is **false**. - * - * @return reuseMidNumber Indicates whether the Amex Merchant ID is reused from a previously setup - * Amex payment method. This is only applicable for `gatewayContract` and - * `paymentDesignatorContract` service levels. The default value is **false**. + * Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method. This is only applicable for `gatewayContract` and `paymentDesignatorContract` service levels. The default value is **false**. + * @return reuseMidNumber Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method. This is only applicable for `gatewayContract` and `paymentDesignatorContract` service levels. The default value is **false**. */ @JsonProperty(JSON_PROPERTY_REUSE_MID_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,13 +142,9 @@ public Boolean getReuseMidNumber() { } /** - * Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method. - * This is only applicable for `gatewayContract` and - * `paymentDesignatorContract` service levels. The default value is **false**. + * Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method. This is only applicable for `gatewayContract` and `paymentDesignatorContract` service levels. The default value is **false**. * - * @param reuseMidNumber Indicates whether the Amex Merchant ID is reused from a previously setup - * Amex payment method. This is only applicable for `gatewayContract` and - * `paymentDesignatorContract` service levels. The default value is **false**. + * @param reuseMidNumber Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method. This is only applicable for `gatewayContract` and `paymentDesignatorContract` service levels. The default value is **false**. */ @JsonProperty(JSON_PROPERTY_REUSE_MID_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,17 +153,9 @@ public void setReuseMidNumber(Boolean reuseMidNumber) { } /** - * Specifies the service level (settlement type) of this payment method. Possible values: * - * **noContract**: Adyen holds the contract with American Express. * **gatewayContract**: American - * Express receives the settlement and handles disputes, then pays out to you or your sub-merchant - * directly. * **paymentDesignatorContract**: Adyen receives the settlement, and handles disputes - * and payouts. + * Specifies the service level (settlement type) of this payment method. Possible values: * **noContract**: Adyen holds the contract with American Express. * **gatewayContract**: American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Adyen receives the settlement, and handles disputes and payouts. * - * @param serviceLevel Specifies the service level (settlement type) of this payment method. - * Possible values: * **noContract**: Adyen holds the contract with American Express. * - * **gatewayContract**: American Express receives the settlement and handles disputes, then - * pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Adyen - * receives the settlement, and handles disputes and payouts. + * @param serviceLevel Specifies the service level (settlement type) of this payment method. Possible values: * **noContract**: Adyen holds the contract with American Express. * **gatewayContract**: American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Adyen receives the settlement, and handles disputes and payouts. * @return the current {@code AmexInfo} instance, allowing for method chaining */ public AmexInfo serviceLevel(ServiceLevelEnum serviceLevel) { @@ -195,17 +164,8 @@ public AmexInfo serviceLevel(ServiceLevelEnum serviceLevel) { } /** - * Specifies the service level (settlement type) of this payment method. Possible values: * - * **noContract**: Adyen holds the contract with American Express. * **gatewayContract**: American - * Express receives the settlement and handles disputes, then pays out to you or your sub-merchant - * directly. * **paymentDesignatorContract**: Adyen receives the settlement, and handles disputes - * and payouts. - * - * @return serviceLevel Specifies the service level (settlement type) of this payment method. - * Possible values: * **noContract**: Adyen holds the contract with American Express. * - * **gatewayContract**: American Express receives the settlement and handles disputes, then - * pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Adyen - * receives the settlement, and handles disputes and payouts. + * Specifies the service level (settlement type) of this payment method. Possible values: * **noContract**: Adyen holds the contract with American Express. * **gatewayContract**: American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Adyen receives the settlement, and handles disputes and payouts. + * @return serviceLevel Specifies the service level (settlement type) of this payment method. Possible values: * **noContract**: Adyen holds the contract with American Express. * **gatewayContract**: American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Adyen receives the settlement, and handles disputes and payouts. */ @JsonProperty(JSON_PROPERTY_SERVICE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,17 +174,9 @@ public ServiceLevelEnum getServiceLevel() { } /** - * Specifies the service level (settlement type) of this payment method. Possible values: * - * **noContract**: Adyen holds the contract with American Express. * **gatewayContract**: American - * Express receives the settlement and handles disputes, then pays out to you or your sub-merchant - * directly. * **paymentDesignatorContract**: Adyen receives the settlement, and handles disputes - * and payouts. + * Specifies the service level (settlement type) of this payment method. Possible values: * **noContract**: Adyen holds the contract with American Express. * **gatewayContract**: American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Adyen receives the settlement, and handles disputes and payouts. * - * @param serviceLevel Specifies the service level (settlement type) of this payment method. - * Possible values: * **noContract**: Adyen holds the contract with American Express. * - * **gatewayContract**: American Express receives the settlement and handles disputes, then - * pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Adyen - * receives the settlement, and handles disputes and payouts. + * @param serviceLevel Specifies the service level (settlement type) of this payment method. Possible values: * **noContract**: Adyen holds the contract with American Express. * **gatewayContract**: American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Adyen receives the settlement, and handles disputes and payouts. */ @JsonProperty(JSON_PROPERTY_SERVICE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,7 +184,9 @@ public void setServiceLevel(ServiceLevelEnum serviceLevel) { this.serviceLevel = serviceLevel; } - /** Return true if this AmexInfo object is equal to o. */ + /** + * Return true if this AmexInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -242,9 +196,9 @@ public boolean equals(Object o) { return false; } AmexInfo amexInfo = (AmexInfo) o; - return Objects.equals(this.midNumber, amexInfo.midNumber) - && Objects.equals(this.reuseMidNumber, amexInfo.reuseMidNumber) - && Objects.equals(this.serviceLevel, amexInfo.serviceLevel); + return Objects.equals(this.midNumber, amexInfo.midNumber) && + Objects.equals(this.reuseMidNumber, amexInfo.reuseMidNumber) && + Objects.equals(this.serviceLevel, amexInfo.serviceLevel); } @Override @@ -264,7 +218,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -273,7 +228,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AmexInfo given an JSON string * * @param jsonString JSON string @@ -283,12 +238,11 @@ private String toIndentedString(Object o) { public static AmexInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AmexInfo.class); } - - /** - * Convert an instance of AmexInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AmexInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Amount.java b/src/main/java/com/adyen/model/management/Amount.java index 949e47a06..eba90d106 100644 --- a/src/main/java/com/adyen/model/management/Amount.java +++ b/src/main/java/com/adyen/model/management/Amount.java @@ -2,23 +2,36 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Amount */ -@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) + +/** + * Amount + */ +@JsonPropertyOrder({ + Amount.JSON_PROPERTY_CURRENCY, + Amount.JSON_PROPERTY_VALUE +}) + public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -26,14 +39,13 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() {} + public Amount() { + } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount currency(String currency) { @@ -42,11 +54,8 @@ public Amount currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -55,11 +64,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,11 +75,9 @@ public void setCurrency(String currency) { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount value(Long value) { @@ -81,11 +86,8 @@ public Amount value(Long value) { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). - * - * @return value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @return value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,11 +96,9 @@ public Long getValue() { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,7 +106,9 @@ public void setValue(Long value) { this.value = value; } - /** Return true if this Amount object is equal to o. */ + /** + * Return true if this Amount object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -116,8 +118,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) - && Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) && + Objects.equals(this.value, amount.value); } @Override @@ -136,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -155,12 +158,11 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } - - /** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/AndroidApp.java b/src/main/java/com/adyen/model/management/AndroidApp.java index 63a7015dc..6c815eea0 100644 --- a/src/main/java/com/adyen/model/management/AndroidApp.java +++ b/src/main/java/com/adyen/model/management/AndroidApp.java @@ -2,28 +2,34 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.AndroidAppError; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** AndroidApp */ + +/** + * AndroidApp + */ @JsonPropertyOrder({ AndroidApp.JSON_PROPERTY_DESCRIPTION, AndroidApp.JSON_PROPERTY_ERROR_CODE, @@ -35,6 +41,7 @@ AndroidApp.JSON_PROPERTY_VERSION_CODE, AndroidApp.JSON_PROPERTY_VERSION_NAME }) + public class AndroidApp { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -56,15 +63,10 @@ public class AndroidApp { private String packageName; /** - * The status of the app. Possible values: * `processing`: the app is being signed and - * converted to a format that the terminal can handle. * `error`: something went wrong. - * Check that the app matches the - * [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * - * `invalid`: there is something wrong with the APK file of the app. * - * `ready`: the app has been signed and converted. * `archived`: the app is no - * longer available. + * The status of the app. Possible values: * `processing`: the app is being signed and converted to a format that the terminal can handle. * `error`: something went wrong. Check that the app matches the [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * `invalid`: there is something wrong with the APK file of the app. * `ready`: the app has been signed and converted. * `archived`: the app is no longer available. */ public enum StatusEnum { + ARCHIVED(String.valueOf("archived")), ERROR(String.valueOf("error")), @@ -80,7 +82,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -101,11 +103,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -119,14 +117,13 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_VERSION_NAME = "versionName"; private String versionName; - public AndroidApp() {} + public AndroidApp() { + } /** - * The description that was provided when uploading the app. The description is not shown on the - * terminal. + * The description that was provided when uploading the app. The description is not shown on the terminal. * - * @param description The description that was provided when uploading the app. The description is - * not shown on the terminal. + * @param description The description that was provided when uploading the app. The description is not shown on the terminal. * @return the current {@code AndroidApp} instance, allowing for method chaining */ public AndroidApp description(String description) { @@ -135,11 +132,8 @@ public AndroidApp description(String description) { } /** - * The description that was provided when uploading the app. The description is not shown on the - * terminal. - * - * @return description The description that was provided when uploading the app. The description - * is not shown on the terminal. + * The description that was provided when uploading the app. The description is not shown on the terminal. + * @return description The description that was provided when uploading the app. The description is not shown on the terminal. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,11 +142,9 @@ public String getDescription() { } /** - * The description that was provided when uploading the app. The description is not shown on the - * terminal. + * The description that was provided when uploading the app. The description is not shown on the terminal. * - * @param description The description that was provided when uploading the app. The description is - * not shown on the terminal. + * @param description The description that was provided when uploading the app. The description is not shown on the terminal. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,13 +153,13 @@ public void setDescription(String description) { } /** - * The error code of the Android app with the `status` of either **error** or - * **invalid**. + * The error code of the Android app with the `status` of either **error** or **invalid**. * - * @param errorCode The error code of the Android app with the `status` of either - * **error** or **invalid**. + * @param errorCode The error code of the Android app with the `status` of either **error** or **invalid**. * @return the current {@code AndroidApp} instance, allowing for method chaining - * @deprecated since Management API v3 Use `errors` instead. + * + * @deprecated since Management API v3 + * Use `errors` instead. */ @Deprecated // deprecated since Management API v3: Use `errors` instead. public AndroidApp errorCode(String errorCode) { @@ -176,11 +168,8 @@ public AndroidApp errorCode(String errorCode) { } /** - * The error code of the Android app with the `status` of either **error** or - * **invalid**. - * - * @return errorCode The error code of the Android app with the `status` of either - * **error** or **invalid**. + * The error code of the Android app with the `status` of either **error** or **invalid**. + * @return errorCode The error code of the Android app with the `status` of either **error** or **invalid**. * @deprecated // deprecated since Management API v3: Use `errors` instead. */ @Deprecated // deprecated since Management API v3: Use `errors` instead. @@ -191,12 +180,12 @@ public String getErrorCode() { } /** - * The error code of the Android app with the `status` of either **error** or - * **invalid**. + * The error code of the Android app with the `status` of either **error** or **invalid**. + * + * @param errorCode The error code of the Android app with the `status` of either **error** or **invalid**. * - * @param errorCode The error code of the Android app with the `status` of either - * **error** or **invalid**. - * @deprecated since Management API v3 Use `errors` instead. + * @deprecated since Management API v3 + * Use `errors` instead. */ @Deprecated // deprecated since Management API v3: Use `errors` instead. @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -226,7 +215,6 @@ public AndroidApp addErrorsItem(AndroidAppError errorsItem) { /** * The list of errors of the Android app. - * * @return errors The list of errors of the Android app. */ @JsonProperty(JSON_PROPERTY_ERRORS) @@ -259,7 +247,6 @@ public AndroidApp id(String id) { /** * The unique identifier of the app. - * * @return id The unique identifier of the app. */ @JsonProperty(JSON_PROPERTY_ID) @@ -292,7 +279,6 @@ public AndroidApp label(String label) { /** * The app name that is shown on the terminal. - * * @return label The app name that is shown on the terminal. */ @JsonProperty(JSON_PROPERTY_LABEL) @@ -325,7 +311,6 @@ public AndroidApp packageName(String packageName) { /** * The package name that uniquely identifies the Android app. - * * @return packageName The package name that uniquely identifies the Android app. */ @JsonProperty(JSON_PROPERTY_PACKAGE_NAME) @@ -346,21 +331,9 @@ public void setPackageName(String packageName) { } /** - * The status of the app. Possible values: * `processing`: the app is being signed and - * converted to a format that the terminal can handle. * `error`: something went wrong. - * Check that the app matches the - * [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * - * `invalid`: there is something wrong with the APK file of the app. * - * `ready`: the app has been signed and converted. * `archived`: the app is no - * longer available. + * The status of the app. Possible values: * `processing`: the app is being signed and converted to a format that the terminal can handle. * `error`: something went wrong. Check that the app matches the [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * `invalid`: there is something wrong with the APK file of the app. * `ready`: the app has been signed and converted. * `archived`: the app is no longer available. * - * @param status The status of the app. Possible values: * `processing`: the app is - * being signed and converted to a format that the terminal can handle. * `error`: - * something went wrong. Check that the app matches the - * [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * - * `invalid`: there is something wrong with the APK file of the app. * - * `ready`: the app has been signed and converted. * `archived`: the app - * is no longer available. + * @param status The status of the app. Possible values: * `processing`: the app is being signed and converted to a format that the terminal can handle. * `error`: something went wrong. Check that the app matches the [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * `invalid`: there is something wrong with the APK file of the app. * `ready`: the app has been signed and converted. * `archived`: the app is no longer available. * @return the current {@code AndroidApp} instance, allowing for method chaining */ public AndroidApp status(StatusEnum status) { @@ -369,21 +342,8 @@ public AndroidApp status(StatusEnum status) { } /** - * The status of the app. Possible values: * `processing`: the app is being signed and - * converted to a format that the terminal can handle. * `error`: something went wrong. - * Check that the app matches the - * [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * - * `invalid`: there is something wrong with the APK file of the app. * - * `ready`: the app has been signed and converted. * `archived`: the app is no - * longer available. - * - * @return status The status of the app. Possible values: * `processing`: the app is - * being signed and converted to a format that the terminal can handle. * `error`: - * something went wrong. Check that the app matches the - * [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * - * `invalid`: there is something wrong with the APK file of the app. * - * `ready`: the app has been signed and converted. * `archived`: the app - * is no longer available. + * The status of the app. Possible values: * `processing`: the app is being signed and converted to a format that the terminal can handle. * `error`: something went wrong. Check that the app matches the [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * `invalid`: there is something wrong with the APK file of the app. * `ready`: the app has been signed and converted. * `archived`: the app is no longer available. + * @return status The status of the app. Possible values: * `processing`: the app is being signed and converted to a format that the terminal can handle. * `error`: something went wrong. Check that the app matches the [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * `invalid`: there is something wrong with the APK file of the app. * `ready`: the app has been signed and converted. * `archived`: the app is no longer available. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -392,21 +352,9 @@ public StatusEnum getStatus() { } /** - * The status of the app. Possible values: * `processing`: the app is being signed and - * converted to a format that the terminal can handle. * `error`: something went wrong. - * Check that the app matches the - * [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * - * `invalid`: there is something wrong with the APK file of the app. * - * `ready`: the app has been signed and converted. * `archived`: the app is no - * longer available. + * The status of the app. Possible values: * `processing`: the app is being signed and converted to a format that the terminal can handle. * `error`: something went wrong. Check that the app matches the [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * `invalid`: there is something wrong with the APK file of the app. * `ready`: the app has been signed and converted. * `archived`: the app is no longer available. * - * @param status The status of the app. Possible values: * `processing`: the app is - * being signed and converted to a format that the terminal can handle. * `error`: - * something went wrong. Check that the app matches the - * [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * - * `invalid`: there is something wrong with the APK file of the app. * - * `ready`: the app has been signed and converted. * `archived`: the app - * is no longer available. + * @param status The status of the app. Possible values: * `processing`: the app is being signed and converted to a format that the terminal can handle. * `error`: something went wrong. Check that the app matches the [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * `invalid`: there is something wrong with the APK file of the app. * `ready`: the app has been signed and converted. * `archived`: the app is no longer available. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -427,7 +375,6 @@ public AndroidApp versionCode(Integer versionCode) { /** * The version number of the app. - * * @return versionCode The version number of the app. */ @JsonProperty(JSON_PROPERTY_VERSION_CODE) @@ -460,7 +407,6 @@ public AndroidApp versionName(String versionName) { /** * The app version number that is shown on the terminal. - * * @return versionName The app version number that is shown on the terminal. */ @JsonProperty(JSON_PROPERTY_VERSION_NAME) @@ -480,7 +426,9 @@ public void setVersionName(String versionName) { this.versionName = versionName; } - /** Return true if this AndroidApp object is equal to o. */ + /** + * Return true if this AndroidApp object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -490,21 +438,20 @@ public boolean equals(Object o) { return false; } AndroidApp androidApp = (AndroidApp) o; - return Objects.equals(this.description, androidApp.description) - && Objects.equals(this.errorCode, androidApp.errorCode) - && Objects.equals(this.errors, androidApp.errors) - && Objects.equals(this.id, androidApp.id) - && Objects.equals(this.label, androidApp.label) - && Objects.equals(this.packageName, androidApp.packageName) - && Objects.equals(this.status, androidApp.status) - && Objects.equals(this.versionCode, androidApp.versionCode) - && Objects.equals(this.versionName, androidApp.versionName); + return Objects.equals(this.description, androidApp.description) && + Objects.equals(this.errorCode, androidApp.errorCode) && + Objects.equals(this.errors, androidApp.errors) && + Objects.equals(this.id, androidApp.id) && + Objects.equals(this.label, androidApp.label) && + Objects.equals(this.packageName, androidApp.packageName) && + Objects.equals(this.status, androidApp.status) && + Objects.equals(this.versionCode, androidApp.versionCode) && + Objects.equals(this.versionName, androidApp.versionName); } @Override public int hashCode() { - return Objects.hash( - description, errorCode, errors, id, label, packageName, status, versionCode, versionName); + return Objects.hash(description, errorCode, errors, id, label, packageName, status, versionCode, versionName); } @Override @@ -525,7 +472,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -534,7 +482,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AndroidApp given an JSON string * * @param jsonString JSON string @@ -544,12 +492,11 @@ private String toIndentedString(Object o) { public static AndroidApp fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AndroidApp.class); } - - /** - * Convert an instance of AndroidApp to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AndroidApp to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/AndroidAppError.java b/src/main/java/com/adyen/model/management/AndroidAppError.java index 0717ae8eb..4427b1df5 100644 --- a/src/main/java/com/adyen/model/management/AndroidAppError.java +++ b/src/main/java/com/adyen/model/management/AndroidAppError.java @@ -2,28 +2,38 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** AndroidAppError */ +/** + * AndroidAppError + */ @JsonPropertyOrder({ AndroidAppError.JSON_PROPERTY_ERROR_CODE, AndroidAppError.JSON_PROPERTY_TERMINAL_MODELS }) + public class AndroidAppError { public static final String JSON_PROPERTY_ERROR_CODE = "errorCode"; private String errorCode; @@ -31,14 +41,13 @@ public class AndroidAppError { public static final String JSON_PROPERTY_TERMINAL_MODELS = "terminalModels"; private List terminalModels; - public AndroidAppError() {} + public AndroidAppError() { + } /** - * The error code of the Android app with the `status` of either **error** or - * **invalid**. + * The error code of the Android app with the `status` of either **error** or **invalid**. * - * @param errorCode The error code of the Android app with the `status` of either - * **error** or **invalid**. + * @param errorCode The error code of the Android app with the `status` of either **error** or **invalid**. * @return the current {@code AndroidAppError} instance, allowing for method chaining */ public AndroidAppError errorCode(String errorCode) { @@ -47,11 +56,8 @@ public AndroidAppError errorCode(String errorCode) { } /** - * The error code of the Android app with the `status` of either **error** or - * **invalid**. - * - * @return errorCode The error code of the Android app with the `status` of either - * **error** or **invalid**. + * The error code of the Android app with the `status` of either **error** or **invalid**. + * @return errorCode The error code of the Android app with the `status` of either **error** or **invalid**. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,11 +66,9 @@ public String getErrorCode() { } /** - * The error code of the Android app with the `status` of either **error** or - * **invalid**. + * The error code of the Android app with the `status` of either **error** or **invalid**. * - * @param errorCode The error code of the Android app with the `status` of either - * **error** or **invalid**. + * @param errorCode The error code of the Android app with the `status` of either **error** or **invalid**. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,8 +79,7 @@ public void setErrorCode(String errorCode) { /** * The list of payment terminal models to which the returned `errorCode` applies. * - * @param terminalModels The list of payment terminal models to which the returned - * `errorCode` applies. + * @param terminalModels The list of payment terminal models to which the returned `errorCode` applies. * @return the current {@code AndroidAppError} instance, allowing for method chaining */ public AndroidAppError terminalModels(List terminalModels) { @@ -94,9 +97,7 @@ public AndroidAppError addTerminalModelsItem(String terminalModelsItem) { /** * The list of payment terminal models to which the returned `errorCode` applies. - * - * @return terminalModels The list of payment terminal models to which the returned - * `errorCode` applies. + * @return terminalModels The list of payment terminal models to which the returned `errorCode` applies. */ @JsonProperty(JSON_PROPERTY_TERMINAL_MODELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,8 +108,7 @@ public List getTerminalModels() { /** * The list of payment terminal models to which the returned `errorCode` applies. * - * @param terminalModels The list of payment terminal models to which the returned - * `errorCode` applies. + * @param terminalModels The list of payment terminal models to which the returned `errorCode` applies. */ @JsonProperty(JSON_PROPERTY_TERMINAL_MODELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,7 +116,9 @@ public void setTerminalModels(List terminalModels) { this.terminalModels = terminalModels; } - /** Return true if this AndroidAppError object is equal to o. */ + /** + * Return true if this AndroidAppError object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -126,8 +128,8 @@ public boolean equals(Object o) { return false; } AndroidAppError androidAppError = (AndroidAppError) o; - return Objects.equals(this.errorCode, androidAppError.errorCode) - && Objects.equals(this.terminalModels, androidAppError.terminalModels); + return Objects.equals(this.errorCode, androidAppError.errorCode) && + Objects.equals(this.terminalModels, androidAppError.terminalModels); } @Override @@ -146,7 +148,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -155,7 +158,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AndroidAppError given an JSON string * * @param jsonString JSON string @@ -165,12 +168,11 @@ private String toIndentedString(Object o) { public static AndroidAppError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AndroidAppError.class); } - - /** - * Convert an instance of AndroidAppError to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AndroidAppError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/AndroidAppsResponse.java b/src/main/java/com/adyen/model/management/AndroidAppsResponse.java index 877a2f114..9a934a10b 100644 --- a/src/main/java/com/adyen/model/management/AndroidAppsResponse.java +++ b/src/main/java/com/adyen/model/management/AndroidAppsResponse.java @@ -2,30 +2,44 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.AndroidApp; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * AndroidAppsResponse + */ +@JsonPropertyOrder({ + AndroidAppsResponse.JSON_PROPERTY_DATA +}) -/** AndroidAppsResponse */ -@JsonPropertyOrder({AndroidAppsResponse.JSON_PROPERTY_DATA}) public class AndroidAppsResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; - public AndroidAppsResponse() {} + public AndroidAppsResponse() { + } /** * Apps uploaded for Android payment terminals. @@ -48,7 +62,6 @@ public AndroidAppsResponse addDataItem(AndroidApp dataItem) { /** * Apps uploaded for Android payment terminals. - * * @return data Apps uploaded for Android payment terminals. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -68,7 +81,9 @@ public void setData(List data) { this.data = data; } - /** Return true if this AndroidAppsResponse object is equal to o. */ + /** + * Return true if this AndroidAppsResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -96,7 +111,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -105,23 +121,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AndroidAppsResponse given an JSON string * * @param jsonString JSON string * @return An instance of AndroidAppsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AndroidAppsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to AndroidAppsResponse */ public static AndroidAppsResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AndroidAppsResponse.class); } - - /** - * Convert an instance of AndroidAppsResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AndroidAppsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/AndroidCertificate.java b/src/main/java/com/adyen/model/management/AndroidCertificate.java index 50dfab66c..ee5cb517b 100644 --- a/src/main/java/com/adyen/model/management/AndroidCertificate.java +++ b/src/main/java/com/adyen/model/management/AndroidCertificate.java @@ -2,23 +2,32 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.time.OffsetDateTime; -import java.util.*; -/** AndroidCertificate */ + +/** + * AndroidCertificate + */ @JsonPropertyOrder({ AndroidCertificate.JSON_PROPERTY_DESCRIPTION, AndroidCertificate.JSON_PROPERTY_EXTENSION, @@ -28,6 +37,7 @@ AndroidCertificate.JSON_PROPERTY_NOT_BEFORE, AndroidCertificate.JSON_PROPERTY_STATUS }) + public class AndroidCertificate { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -50,7 +60,8 @@ public class AndroidCertificate { public static final String JSON_PROPERTY_STATUS = "status"; private String status; - public AndroidCertificate() {} + public AndroidCertificate() { + } /** * The description that was provided when uploading the certificate. @@ -65,7 +76,6 @@ public AndroidCertificate description(String description) { /** * The description that was provided when uploading the certificate. - * * @return description The description that was provided when uploading the certificate. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -86,11 +96,9 @@ public void setDescription(String description) { } /** - * The file format of the certificate, as indicated by the file extension. For example, **.cert** - * or **.pem**. + * The file format of the certificate, as indicated by the file extension. For example, **.cert** or **.pem**. * - * @param extension The file format of the certificate, as indicated by the file extension. For - * example, **.cert** or **.pem**. + * @param extension The file format of the certificate, as indicated by the file extension. For example, **.cert** or **.pem**. * @return the current {@code AndroidCertificate} instance, allowing for method chaining */ public AndroidCertificate extension(String extension) { @@ -99,11 +107,8 @@ public AndroidCertificate extension(String extension) { } /** - * The file format of the certificate, as indicated by the file extension. For example, **.cert** - * or **.pem**. - * - * @return extension The file format of the certificate, as indicated by the file extension. For - * example, **.cert** or **.pem**. + * The file format of the certificate, as indicated by the file extension. For example, **.cert** or **.pem**. + * @return extension The file format of the certificate, as indicated by the file extension. For example, **.cert** or **.pem**. */ @JsonProperty(JSON_PROPERTY_EXTENSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,11 +117,9 @@ public String getExtension() { } /** - * The file format of the certificate, as indicated by the file extension. For example, **.cert** - * or **.pem**. + * The file format of the certificate, as indicated by the file extension. For example, **.cert** or **.pem**. * - * @param extension The file format of the certificate, as indicated by the file extension. For - * example, **.cert** or **.pem**. + * @param extension The file format of the certificate, as indicated by the file extension. For example, **.cert** or **.pem**. */ @JsonProperty(JSON_PROPERTY_EXTENSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,7 +140,6 @@ public AndroidCertificate id(String id) { /** * The unique identifier of the certificate. - * * @return id The unique identifier of the certificate. */ @JsonProperty(JSON_PROPERTY_ID) @@ -170,7 +172,6 @@ public AndroidCertificate name(String name) { /** * The file name of the certificate. For example, **mycert**. - * * @return name The file name of the certificate. For example, **mycert**. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -203,7 +204,6 @@ public AndroidCertificate notAfter(OffsetDateTime notAfter) { /** * The date when the certificate stops to be valid. - * * @return notAfter The date when the certificate stops to be valid. */ @JsonProperty(JSON_PROPERTY_NOT_AFTER) @@ -236,7 +236,6 @@ public AndroidCertificate notBefore(OffsetDateTime notBefore) { /** * The date when the certificate starts to be valid. - * * @return notBefore The date when the certificate starts to be valid. */ @JsonProperty(JSON_PROPERTY_NOT_BEFORE) @@ -269,7 +268,6 @@ public AndroidCertificate status(String status) { /** * The status of the certificate. - * * @return status The status of the certificate. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -289,7 +287,9 @@ public void setStatus(String status) { this.status = status; } - /** Return true if this AndroidCertificate object is equal to o. */ + /** + * Return true if this AndroidCertificate object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -299,13 +299,13 @@ public boolean equals(Object o) { return false; } AndroidCertificate androidCertificate = (AndroidCertificate) o; - return Objects.equals(this.description, androidCertificate.description) - && Objects.equals(this.extension, androidCertificate.extension) - && Objects.equals(this.id, androidCertificate.id) - && Objects.equals(this.name, androidCertificate.name) - && Objects.equals(this.notAfter, androidCertificate.notAfter) - && Objects.equals(this.notBefore, androidCertificate.notBefore) - && Objects.equals(this.status, androidCertificate.status); + return Objects.equals(this.description, androidCertificate.description) && + Objects.equals(this.extension, androidCertificate.extension) && + Objects.equals(this.id, androidCertificate.id) && + Objects.equals(this.name, androidCertificate.name) && + Objects.equals(this.notAfter, androidCertificate.notAfter) && + Objects.equals(this.notBefore, androidCertificate.notBefore) && + Objects.equals(this.status, androidCertificate.status); } @Override @@ -329,7 +329,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -338,23 +339,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AndroidCertificate given an JSON string * * @param jsonString JSON string * @return An instance of AndroidCertificate - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AndroidCertificate + * @throws JsonProcessingException if the JSON string is invalid with respect to AndroidCertificate */ public static AndroidCertificate fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AndroidCertificate.class); } - - /** - * Convert an instance of AndroidCertificate to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AndroidCertificate to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/AndroidCertificatesResponse.java b/src/main/java/com/adyen/model/management/AndroidCertificatesResponse.java index bf8bdf6ea..04fac9fee 100644 --- a/src/main/java/com/adyen/model/management/AndroidCertificatesResponse.java +++ b/src/main/java/com/adyen/model/management/AndroidCertificatesResponse.java @@ -2,30 +2,44 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.AndroidCertificate; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * AndroidCertificatesResponse + */ +@JsonPropertyOrder({ + AndroidCertificatesResponse.JSON_PROPERTY_DATA +}) -/** AndroidCertificatesResponse */ -@JsonPropertyOrder({AndroidCertificatesResponse.JSON_PROPERTY_DATA}) public class AndroidCertificatesResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; - public AndroidCertificatesResponse() {} + public AndroidCertificatesResponse() { + } /** * Uploaded Android certificates for Android payment terminals. @@ -48,7 +62,6 @@ public AndroidCertificatesResponse addDataItem(AndroidCertificate dataItem) { /** * Uploaded Android certificates for Android payment terminals. - * * @return data Uploaded Android certificates for Android payment terminals. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -68,7 +81,9 @@ public void setData(List data) { this.data = data; } - /** Return true if this AndroidCertificatesResponse object is equal to o. */ + /** + * Return true if this AndroidCertificatesResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -96,7 +111,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -105,24 +121,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AndroidCertificatesResponse given an JSON string * * @param jsonString JSON string * @return An instance of AndroidCertificatesResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AndroidCertificatesResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to AndroidCertificatesResponse */ - public static AndroidCertificatesResponse fromJson(String jsonString) - throws JsonProcessingException { + public static AndroidCertificatesResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AndroidCertificatesResponse.class); } - - /** - * Convert an instance of AndroidCertificatesResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AndroidCertificatesResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ApiCredential.java b/src/main/java/com/adyen/model/management/ApiCredential.java index efb12f8cb..ad147690f 100644 --- a/src/main/java/com/adyen/model/management/ApiCredential.java +++ b/src/main/java/com/adyen/model/management/ApiCredential.java @@ -2,24 +2,35 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.AllowedOrigin; +import com.adyen.model.management.ApiCredentialLinks; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ApiCredential */ +/** + * ApiCredential + */ @JsonPropertyOrder({ ApiCredential.JSON_PROPERTY_LINKS, ApiCredential.JSON_PROPERTY_ACTIVE, @@ -31,6 +42,7 @@ ApiCredential.JSON_PROPERTY_ROLES, ApiCredential.JSON_PROPERTY_USERNAME }) + public class ApiCredential { public static final String JSON_PROPERTY_LINKS = "_links"; private ApiCredentialLinks links; @@ -59,12 +71,13 @@ public class ApiCredential { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public ApiCredential() {} + public ApiCredential() { + } /** * links * - * @param links + * @param links * @return the current {@code ApiCredential} instance, allowing for method chaining */ public ApiCredential links(ApiCredentialLinks links) { @@ -74,8 +87,7 @@ public ApiCredential links(ApiCredentialLinks links) { /** * Get links - * - * @return links + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -86,7 +98,7 @@ public ApiCredentialLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -95,11 +107,9 @@ public void setLinks(ApiCredentialLinks links) { } /** - * Indicates if the API credential is enabled. Must be set to **true** to use the credential in - * your integration. + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. * - * @param active Indicates if the API credential is enabled. Must be set to **true** to use the - * credential in your integration. + * @param active Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. * @return the current {@code ApiCredential} instance, allowing for method chaining */ public ApiCredential active(Boolean active) { @@ -108,11 +118,8 @@ public ApiCredential active(Boolean active) { } /** - * Indicates if the API credential is enabled. Must be set to **true** to use the credential in - * your integration. - * - * @return active Indicates if the API credential is enabled. Must be set to **true** to use the - * credential in your integration. + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + * @return active Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,11 +128,9 @@ public Boolean getActive() { } /** - * Indicates if the API credential is enabled. Must be set to **true** to use the credential in - * your integration. + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. * - * @param active Indicates if the API credential is enabled. Must be set to **true** to use the - * credential in your integration. + * @param active Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -134,13 +139,9 @@ public void setActive(Boolean active) { } /** - * List of IP addresses from which your client can make requests. If the list is empty, we allow - * requests from any IP. If the list is not empty and we get a request from an IP which is not on - * the list, you get a security error. + * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. * - * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the - * list is empty, we allow requests from any IP. If the list is not empty and we get a request - * from an IP which is not on the list, you get a security error. + * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. * @return the current {@code ApiCredential} instance, allowing for method chaining */ public ApiCredential allowedIpAddresses(List allowedIpAddresses) { @@ -157,13 +158,8 @@ public ApiCredential addAllowedIpAddressesItem(String allowedIpAddressesItem) { } /** - * List of IP addresses from which your client can make requests. If the list is empty, we allow - * requests from any IP. If the list is not empty and we get a request from an IP which is not on - * the list, you get a security error. - * - * @return allowedIpAddresses List of IP addresses from which your client can make requests. If - * the list is empty, we allow requests from any IP. If the list is not empty and we get a - * request from an IP which is not on the list, you get a security error. + * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + * @return allowedIpAddresses List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. */ @JsonProperty(JSON_PROPERTY_ALLOWED_IP_ADDRESSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,13 +168,9 @@ public List getAllowedIpAddresses() { } /** - * List of IP addresses from which your client can make requests. If the list is empty, we allow - * requests from any IP. If the list is not empty and we get a request from an IP which is not on - * the list, you get a security error. + * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. * - * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the - * list is empty, we allow requests from any IP. If the list is not empty and we get a request - * from an IP which is not on the list, you get a security error. + * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. */ @JsonProperty(JSON_PROPERTY_ALLOWED_IP_ADDRESSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,13 +179,9 @@ public void setAllowedIpAddresses(List allowedIpAddresses) { } /** - * List containing the [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * linked to the API credential. + * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. * - * @param allowedOrigins List containing the [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * linked to the API credential. + * @param allowedOrigins List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. * @return the current {@code ApiCredential} instance, allowing for method chaining */ public ApiCredential allowedOrigins(List allowedOrigins) { @@ -210,13 +198,8 @@ public ApiCredential addAllowedOriginsItem(AllowedOrigin allowedOriginsItem) { } /** - * List containing the [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * linked to the API credential. - * - * @return allowedOrigins List containing the [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * linked to the API credential. + * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + * @return allowedOrigins List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -225,13 +208,9 @@ public List getAllowedOrigins() { } /** - * List containing the [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * linked to the API credential. + * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. * - * @param allowedOrigins List containing the [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * linked to the API credential. + * @param allowedOrigins List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,13 +219,9 @@ public void setAllowedOrigins(List allowedOrigins) { } /** - * Public key used for [client-side - * authentication](https://docs.adyen.com/development-resources/client-side-authentication). The - * client key is required for Drop-in and Components integrations. + * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. * - * @param clientKey Public key used for [client-side - * authentication](https://docs.adyen.com/development-resources/client-side-authentication). - * The client key is required for Drop-in and Components integrations. + * @param clientKey Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. * @return the current {@code ApiCredential} instance, allowing for method chaining */ public ApiCredential clientKey(String clientKey) { @@ -255,13 +230,8 @@ public ApiCredential clientKey(String clientKey) { } /** - * Public key used for [client-side - * authentication](https://docs.adyen.com/development-resources/client-side-authentication). The - * client key is required for Drop-in and Components integrations. - * - * @return clientKey Public key used for [client-side - * authentication](https://docs.adyen.com/development-resources/client-side-authentication). - * The client key is required for Drop-in and Components integrations. + * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + * @return clientKey Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. */ @JsonProperty(JSON_PROPERTY_CLIENT_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -270,13 +240,9 @@ public String getClientKey() { } /** - * Public key used for [client-side - * authentication](https://docs.adyen.com/development-resources/client-side-authentication). The - * client key is required for Drop-in and Components integrations. + * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. * - * @param clientKey Public key used for [client-side - * authentication](https://docs.adyen.com/development-resources/client-side-authentication). - * The client key is required for Drop-in and Components integrations. + * @param clientKey Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. */ @JsonProperty(JSON_PROPERTY_CLIENT_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -297,7 +263,6 @@ public ApiCredential description(String description) { /** * Description of the API credential. - * * @return description Description of the API credential. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -330,7 +295,6 @@ public ApiCredential id(String id) { /** * Unique identifier of the API credential. - * * @return id Unique identifier of the API credential. */ @JsonProperty(JSON_PROPERTY_ID) @@ -351,12 +315,9 @@ public void setId(String id) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the - * API credential. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. * - * @param roles List of - * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API - * credential. + * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. * @return the current {@code ApiCredential} instance, allowing for method chaining */ public ApiCredential roles(List roles) { @@ -373,12 +334,8 @@ public ApiCredential addRolesItem(String rolesItem) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the - * API credential. - * - * @return roles List of - * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API - * credential. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + * @return roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -387,12 +344,9 @@ public List getRoles() { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the - * API credential. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. * - * @param roles List of - * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API - * credential. + * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -401,12 +355,9 @@ public void setRoles(List roles) { } /** - * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), - * for example **ws@Company.TestCompany**. + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. * - * @param username The name of the [API - * credential](https://docs.adyen.com/development-resources/api-credentials), for example - * **ws@Company.TestCompany**. + * @param username The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. * @return the current {@code ApiCredential} instance, allowing for method chaining */ public ApiCredential username(String username) { @@ -415,12 +366,8 @@ public ApiCredential username(String username) { } /** - * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), - * for example **ws@Company.TestCompany**. - * - * @return username The name of the [API - * credential](https://docs.adyen.com/development-resources/api-credentials), for example - * **ws@Company.TestCompany**. + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + * @return username The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. */ @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -429,12 +376,9 @@ public String getUsername() { } /** - * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), - * for example **ws@Company.TestCompany**. + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. * - * @param username The name of the [API - * credential](https://docs.adyen.com/development-resources/api-credentials), for example - * **ws@Company.TestCompany**. + * @param username The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. */ @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -442,7 +386,9 @@ public void setUsername(String username) { this.username = username; } - /** Return true if this ApiCredential object is equal to o. */ + /** + * Return true if this ApiCredential object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -452,29 +398,20 @@ public boolean equals(Object o) { return false; } ApiCredential apiCredential = (ApiCredential) o; - return Objects.equals(this.links, apiCredential.links) - && Objects.equals(this.active, apiCredential.active) - && Objects.equals(this.allowedIpAddresses, apiCredential.allowedIpAddresses) - && Objects.equals(this.allowedOrigins, apiCredential.allowedOrigins) - && Objects.equals(this.clientKey, apiCredential.clientKey) - && Objects.equals(this.description, apiCredential.description) - && Objects.equals(this.id, apiCredential.id) - && Objects.equals(this.roles, apiCredential.roles) - && Objects.equals(this.username, apiCredential.username); + return Objects.equals(this.links, apiCredential.links) && + Objects.equals(this.active, apiCredential.active) && + Objects.equals(this.allowedIpAddresses, apiCredential.allowedIpAddresses) && + Objects.equals(this.allowedOrigins, apiCredential.allowedOrigins) && + Objects.equals(this.clientKey, apiCredential.clientKey) && + Objects.equals(this.description, apiCredential.description) && + Objects.equals(this.id, apiCredential.id) && + Objects.equals(this.roles, apiCredential.roles) && + Objects.equals(this.username, apiCredential.username); } @Override public int hashCode() { - return Objects.hash( - links, - active, - allowedIpAddresses, - allowedOrigins, - clientKey, - description, - id, - roles, - username); + return Objects.hash(links, active, allowedIpAddresses, allowedOrigins, clientKey, description, id, roles, username); } @Override @@ -495,7 +432,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -504,7 +442,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ApiCredential given an JSON string * * @param jsonString JSON string @@ -514,12 +452,11 @@ private String toIndentedString(Object o) { public static ApiCredential fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ApiCredential.class); } - - /** - * Convert an instance of ApiCredential to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ApiCredential to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ApiCredentialLinks.java b/src/main/java/com/adyen/model/management/ApiCredentialLinks.java index 1d41e1e26..f371e3c8c 100644 --- a/src/main/java/com/adyen/model/management/ApiCredentialLinks.java +++ b/src/main/java/com/adyen/model/management/ApiCredentialLinks.java @@ -2,22 +2,32 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.LinksElement; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ApiCredentialLinks */ + +/** + * ApiCredentialLinks + */ @JsonPropertyOrder({ ApiCredentialLinks.JSON_PROPERTY_ALLOWED_ORIGINS, ApiCredentialLinks.JSON_PROPERTY_COMPANY, @@ -26,6 +36,7 @@ ApiCredentialLinks.JSON_PROPERTY_MERCHANT, ApiCredentialLinks.JSON_PROPERTY_SELF }) + public class ApiCredentialLinks { public static final String JSON_PROPERTY_ALLOWED_ORIGINS = "allowedOrigins"; private LinksElement allowedOrigins; @@ -45,12 +56,13 @@ public class ApiCredentialLinks { public static final String JSON_PROPERTY_SELF = "self"; private LinksElement self; - public ApiCredentialLinks() {} + public ApiCredentialLinks() { + } /** * allowedOrigins * - * @param allowedOrigins + * @param allowedOrigins * @return the current {@code ApiCredentialLinks} instance, allowing for method chaining */ public ApiCredentialLinks allowedOrigins(LinksElement allowedOrigins) { @@ -60,8 +72,7 @@ public ApiCredentialLinks allowedOrigins(LinksElement allowedOrigins) { /** * Get allowedOrigins - * - * @return allowedOrigins + * @return allowedOrigins */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -72,7 +83,7 @@ public LinksElement getAllowedOrigins() { /** * allowedOrigins * - * @param allowedOrigins + * @param allowedOrigins */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,7 +94,7 @@ public void setAllowedOrigins(LinksElement allowedOrigins) { /** * company * - * @param company + * @param company * @return the current {@code ApiCredentialLinks} instance, allowing for method chaining */ public ApiCredentialLinks company(LinksElement company) { @@ -93,8 +104,7 @@ public ApiCredentialLinks company(LinksElement company) { /** * Get company - * - * @return company + * @return company */ @JsonProperty(JSON_PROPERTY_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,7 +115,7 @@ public LinksElement getCompany() { /** * company * - * @param company + * @param company */ @JsonProperty(JSON_PROPERTY_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,7 +126,7 @@ public void setCompany(LinksElement company) { /** * generateApiKey * - * @param generateApiKey + * @param generateApiKey * @return the current {@code ApiCredentialLinks} instance, allowing for method chaining */ public ApiCredentialLinks generateApiKey(LinksElement generateApiKey) { @@ -126,8 +136,7 @@ public ApiCredentialLinks generateApiKey(LinksElement generateApiKey) { /** * Get generateApiKey - * - * @return generateApiKey + * @return generateApiKey */ @JsonProperty(JSON_PROPERTY_GENERATE_API_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,7 +147,7 @@ public LinksElement getGenerateApiKey() { /** * generateApiKey * - * @param generateApiKey + * @param generateApiKey */ @JsonProperty(JSON_PROPERTY_GENERATE_API_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -149,7 +158,7 @@ public void setGenerateApiKey(LinksElement generateApiKey) { /** * generateClientKey * - * @param generateClientKey + * @param generateClientKey * @return the current {@code ApiCredentialLinks} instance, allowing for method chaining */ public ApiCredentialLinks generateClientKey(LinksElement generateClientKey) { @@ -159,8 +168,7 @@ public ApiCredentialLinks generateClientKey(LinksElement generateClientKey) { /** * Get generateClientKey - * - * @return generateClientKey + * @return generateClientKey */ @JsonProperty(JSON_PROPERTY_GENERATE_CLIENT_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -171,7 +179,7 @@ public LinksElement getGenerateClientKey() { /** * generateClientKey * - * @param generateClientKey + * @param generateClientKey */ @JsonProperty(JSON_PROPERTY_GENERATE_CLIENT_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,7 +190,7 @@ public void setGenerateClientKey(LinksElement generateClientKey) { /** * merchant * - * @param merchant + * @param merchant * @return the current {@code ApiCredentialLinks} instance, allowing for method chaining */ public ApiCredentialLinks merchant(LinksElement merchant) { @@ -192,8 +200,7 @@ public ApiCredentialLinks merchant(LinksElement merchant) { /** * Get merchant - * - * @return merchant + * @return merchant */ @JsonProperty(JSON_PROPERTY_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,7 +211,7 @@ public LinksElement getMerchant() { /** * merchant * - * @param merchant + * @param merchant */ @JsonProperty(JSON_PROPERTY_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -215,7 +222,7 @@ public void setMerchant(LinksElement merchant) { /** * self * - * @param self + * @param self * @return the current {@code ApiCredentialLinks} instance, allowing for method chaining */ public ApiCredentialLinks self(LinksElement self) { @@ -225,8 +232,7 @@ public ApiCredentialLinks self(LinksElement self) { /** * Get self - * - * @return self + * @return self */ @JsonProperty(JSON_PROPERTY_SELF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,7 +243,7 @@ public LinksElement getSelf() { /** * self * - * @param self + * @param self */ @JsonProperty(JSON_PROPERTY_SELF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -245,7 +251,9 @@ public void setSelf(LinksElement self) { this.self = self; } - /** Return true if this ApiCredentialLinks object is equal to o. */ + /** + * Return true if this ApiCredentialLinks object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -255,12 +263,12 @@ public boolean equals(Object o) { return false; } ApiCredentialLinks apiCredentialLinks = (ApiCredentialLinks) o; - return Objects.equals(this.allowedOrigins, apiCredentialLinks.allowedOrigins) - && Objects.equals(this.company, apiCredentialLinks.company) - && Objects.equals(this.generateApiKey, apiCredentialLinks.generateApiKey) - && Objects.equals(this.generateClientKey, apiCredentialLinks.generateClientKey) - && Objects.equals(this.merchant, apiCredentialLinks.merchant) - && Objects.equals(this.self, apiCredentialLinks.self); + return Objects.equals(this.allowedOrigins, apiCredentialLinks.allowedOrigins) && + Objects.equals(this.company, apiCredentialLinks.company) && + Objects.equals(this.generateApiKey, apiCredentialLinks.generateApiKey) && + Objects.equals(this.generateClientKey, apiCredentialLinks.generateClientKey) && + Objects.equals(this.merchant, apiCredentialLinks.merchant) && + Objects.equals(this.self, apiCredentialLinks.self); } @Override @@ -283,7 +291,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -292,23 +301,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ApiCredentialLinks given an JSON string * * @param jsonString JSON string * @return An instance of ApiCredentialLinks - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ApiCredentialLinks + * @throws JsonProcessingException if the JSON string is invalid with respect to ApiCredentialLinks */ public static ApiCredentialLinks fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ApiCredentialLinks.class); } - - /** - * Convert an instance of ApiCredentialLinks to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ApiCredentialLinks to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ApplePayInfo.java b/src/main/java/com/adyen/model/management/ApplePayInfo.java index 72ce35805..bfccbed99 100644 --- a/src/main/java/com/adyen/model/management/ApplePayInfo.java +++ b/src/main/java/com/adyen/model/management/ApplePayInfo.java @@ -2,39 +2,48 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * ApplePayInfo + */ +@JsonPropertyOrder({ + ApplePayInfo.JSON_PROPERTY_DOMAINS +}) -/** ApplePayInfo */ -@JsonPropertyOrder({ApplePayInfo.JSON_PROPERTY_DOMAINS}) public class ApplePayInfo { public static final String JSON_PROPERTY_DOMAINS = "domains"; private List domains; - public ApplePayInfo() {} + public ApplePayInfo() { + } /** - * The list of merchant domains. Maximum: 99 domains per request. For more information, see [Apple - * Pay - * documentation](https://docs.adyen.com/payment-methods/apple-pay/web-drop-in?tab=adyen-certificate-live_1#going-live). + * The list of merchant domains. Maximum: 99 domains per request. For more information, see [Apple Pay documentation](https://docs.adyen.com/payment-methods/apple-pay/web-drop-in?tab=adyen-certificate-live_1#going-live). * - * @param domains The list of merchant domains. Maximum: 99 domains per request. For more - * information, see [Apple Pay - * documentation](https://docs.adyen.com/payment-methods/apple-pay/web-drop-in?tab=adyen-certificate-live_1#going-live). + * @param domains The list of merchant domains. Maximum: 99 domains per request. For more information, see [Apple Pay documentation](https://docs.adyen.com/payment-methods/apple-pay/web-drop-in?tab=adyen-certificate-live_1#going-live). * @return the current {@code ApplePayInfo} instance, allowing for method chaining */ public ApplePayInfo domains(List domains) { @@ -51,13 +60,8 @@ public ApplePayInfo addDomainsItem(String domainsItem) { } /** - * The list of merchant domains. Maximum: 99 domains per request. For more information, see [Apple - * Pay - * documentation](https://docs.adyen.com/payment-methods/apple-pay/web-drop-in?tab=adyen-certificate-live_1#going-live). - * - * @return domains The list of merchant domains. Maximum: 99 domains per request. For more - * information, see [Apple Pay - * documentation](https://docs.adyen.com/payment-methods/apple-pay/web-drop-in?tab=adyen-certificate-live_1#going-live). + * The list of merchant domains. Maximum: 99 domains per request. For more information, see [Apple Pay documentation](https://docs.adyen.com/payment-methods/apple-pay/web-drop-in?tab=adyen-certificate-live_1#going-live). + * @return domains The list of merchant domains. Maximum: 99 domains per request. For more information, see [Apple Pay documentation](https://docs.adyen.com/payment-methods/apple-pay/web-drop-in?tab=adyen-certificate-live_1#going-live). */ @JsonProperty(JSON_PROPERTY_DOMAINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -66,13 +70,9 @@ public List getDomains() { } /** - * The list of merchant domains. Maximum: 99 domains per request. For more information, see [Apple - * Pay - * documentation](https://docs.adyen.com/payment-methods/apple-pay/web-drop-in?tab=adyen-certificate-live_1#going-live). + * The list of merchant domains. Maximum: 99 domains per request. For more information, see [Apple Pay documentation](https://docs.adyen.com/payment-methods/apple-pay/web-drop-in?tab=adyen-certificate-live_1#going-live). * - * @param domains The list of merchant domains. Maximum: 99 domains per request. For more - * information, see [Apple Pay - * documentation](https://docs.adyen.com/payment-methods/apple-pay/web-drop-in?tab=adyen-certificate-live_1#going-live). + * @param domains The list of merchant domains. Maximum: 99 domains per request. For more information, see [Apple Pay documentation](https://docs.adyen.com/payment-methods/apple-pay/web-drop-in?tab=adyen-certificate-live_1#going-live). */ @JsonProperty(JSON_PROPERTY_DOMAINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,7 +80,9 @@ public void setDomains(List domains) { this.domains = domains; } - /** Return true if this ApplePayInfo object is equal to o. */ + /** + * Return true if this ApplePayInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -108,7 +110,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -117,7 +120,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ApplePayInfo given an JSON string * * @param jsonString JSON string @@ -127,12 +130,11 @@ private String toIndentedString(Object o) { public static ApplePayInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ApplePayInfo.class); } - - /** - * Convert an instance of ApplePayInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ApplePayInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/BcmcInfo.java b/src/main/java/com/adyen/model/management/BcmcInfo.java index 69b5ed78e..93d2f8253 100644 --- a/src/main/java/com/adyen/model/management/BcmcInfo.java +++ b/src/main/java/com/adyen/model/management/BcmcInfo.java @@ -2,35 +2,46 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** BcmcInfo */ -@JsonPropertyOrder({BcmcInfo.JSON_PROPERTY_ENABLE_BCMC_MOBILE}) + +/** + * BcmcInfo + */ +@JsonPropertyOrder({ + BcmcInfo.JSON_PROPERTY_ENABLE_BCMC_MOBILE +}) + public class BcmcInfo { public static final String JSON_PROPERTY_ENABLE_BCMC_MOBILE = "enableBcmcMobile"; private Boolean enableBcmcMobile; - public BcmcInfo() {} + public BcmcInfo() { + } /** - * Indicates if [Bancontact - * mobile](https://docs.adyen.com/payment-methods/bancontact/bancontact-mobile) is enabled. + * Indicates if [Bancontact mobile](https://docs.adyen.com/payment-methods/bancontact/bancontact-mobile) is enabled. * - * @param enableBcmcMobile Indicates if [Bancontact - * mobile](https://docs.adyen.com/payment-methods/bancontact/bancontact-mobile) is enabled. + * @param enableBcmcMobile Indicates if [Bancontact mobile](https://docs.adyen.com/payment-methods/bancontact/bancontact-mobile) is enabled. * @return the current {@code BcmcInfo} instance, allowing for method chaining */ public BcmcInfo enableBcmcMobile(Boolean enableBcmcMobile) { @@ -39,11 +50,8 @@ public BcmcInfo enableBcmcMobile(Boolean enableBcmcMobile) { } /** - * Indicates if [Bancontact - * mobile](https://docs.adyen.com/payment-methods/bancontact/bancontact-mobile) is enabled. - * - * @return enableBcmcMobile Indicates if [Bancontact - * mobile](https://docs.adyen.com/payment-methods/bancontact/bancontact-mobile) is enabled. + * Indicates if [Bancontact mobile](https://docs.adyen.com/payment-methods/bancontact/bancontact-mobile) is enabled. + * @return enableBcmcMobile Indicates if [Bancontact mobile](https://docs.adyen.com/payment-methods/bancontact/bancontact-mobile) is enabled. */ @JsonProperty(JSON_PROPERTY_ENABLE_BCMC_MOBILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -52,11 +60,9 @@ public Boolean getEnableBcmcMobile() { } /** - * Indicates if [Bancontact - * mobile](https://docs.adyen.com/payment-methods/bancontact/bancontact-mobile) is enabled. + * Indicates if [Bancontact mobile](https://docs.adyen.com/payment-methods/bancontact/bancontact-mobile) is enabled. * - * @param enableBcmcMobile Indicates if [Bancontact - * mobile](https://docs.adyen.com/payment-methods/bancontact/bancontact-mobile) is enabled. + * @param enableBcmcMobile Indicates if [Bancontact mobile](https://docs.adyen.com/payment-methods/bancontact/bancontact-mobile) is enabled. */ @JsonProperty(JSON_PROPERTY_ENABLE_BCMC_MOBILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,7 +70,9 @@ public void setEnableBcmcMobile(Boolean enableBcmcMobile) { this.enableBcmcMobile = enableBcmcMobile; } - /** Return true if this BcmcInfo object is equal to o. */ + /** + * Return true if this BcmcInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -92,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -101,7 +110,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BcmcInfo given an JSON string * * @param jsonString JSON string @@ -111,12 +120,11 @@ private String toIndentedString(Object o) { public static BcmcInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BcmcInfo.class); } - - /** - * Convert an instance of BcmcInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BcmcInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/BillingEntitiesResponse.java b/src/main/java/com/adyen/model/management/BillingEntitiesResponse.java index 688cdd3f3..68fa780a4 100644 --- a/src/main/java/com/adyen/model/management/BillingEntitiesResponse.java +++ b/src/main/java/com/adyen/model/management/BillingEntitiesResponse.java @@ -2,30 +2,44 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.BillingEntity; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * BillingEntitiesResponse + */ +@JsonPropertyOrder({ + BillingEntitiesResponse.JSON_PROPERTY_DATA +}) -/** BillingEntitiesResponse */ -@JsonPropertyOrder({BillingEntitiesResponse.JSON_PROPERTY_DATA}) public class BillingEntitiesResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; - public BillingEntitiesResponse() {} + public BillingEntitiesResponse() { + } /** * List of legal entities that can be used for the billing of orders. @@ -48,7 +62,6 @@ public BillingEntitiesResponse addDataItem(BillingEntity dataItem) { /** * List of legal entities that can be used for the billing of orders. - * * @return data List of legal entities that can be used for the billing of orders. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -68,7 +81,9 @@ public void setData(List data) { this.data = data; } - /** Return true if this BillingEntitiesResponse object is equal to o. */ + /** + * Return true if this BillingEntitiesResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -96,7 +111,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -105,23 +121,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BillingEntitiesResponse given an JSON string * * @param jsonString JSON string * @return An instance of BillingEntitiesResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BillingEntitiesResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to BillingEntitiesResponse */ public static BillingEntitiesResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BillingEntitiesResponse.class); } - - /** - * Convert an instance of BillingEntitiesResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BillingEntitiesResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/BillingEntity.java b/src/main/java/com/adyen/model/management/BillingEntity.java index 93f2c7a40..3100a8911 100644 --- a/src/main/java/com/adyen/model/management/BillingEntity.java +++ b/src/main/java/com/adyen/model/management/BillingEntity.java @@ -2,22 +2,32 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.Address; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** BillingEntity */ + +/** + * BillingEntity + */ @JsonPropertyOrder({ BillingEntity.JSON_PROPERTY_ADDRESS, BillingEntity.JSON_PROPERTY_EMAIL, @@ -25,6 +35,7 @@ BillingEntity.JSON_PROPERTY_NAME, BillingEntity.JSON_PROPERTY_TAX_ID }) + public class BillingEntity { public static final String JSON_PROPERTY_ADDRESS = "address"; private Address address; @@ -41,12 +52,13 @@ public class BillingEntity { public static final String JSON_PROPERTY_TAX_ID = "taxId"; private String taxId; - public BillingEntity() {} + public BillingEntity() { + } /** * address * - * @param address + * @param address * @return the current {@code BillingEntity} instance, allowing for method chaining */ public BillingEntity address(Address address) { @@ -56,8 +68,7 @@ public BillingEntity address(Address address) { /** * Get address - * - * @return address + * @return address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,7 +79,7 @@ public Address getAddress() { /** * address * - * @param address + * @param address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -89,7 +100,6 @@ public BillingEntity email(String email) { /** * The email address of the billing entity. - * * @return email The email address of the billing entity. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -110,11 +120,9 @@ public void setEmail(String email) { } /** - * The unique identifier of the billing entity, for use as `billingEntityId` when - * creating an order. + * The unique identifier of the billing entity, for use as `billingEntityId` when creating an order. * - * @param id The unique identifier of the billing entity, for use as `billingEntityId` - * when creating an order. + * @param id The unique identifier of the billing entity, for use as `billingEntityId` when creating an order. * @return the current {@code BillingEntity} instance, allowing for method chaining */ public BillingEntity id(String id) { @@ -123,11 +131,8 @@ public BillingEntity id(String id) { } /** - * The unique identifier of the billing entity, for use as `billingEntityId` when - * creating an order. - * - * @return id The unique identifier of the billing entity, for use as `billingEntityId` - * when creating an order. + * The unique identifier of the billing entity, for use as `billingEntityId` when creating an order. + * @return id The unique identifier of the billing entity, for use as `billingEntityId` when creating an order. */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,11 +141,9 @@ public String getId() { } /** - * The unique identifier of the billing entity, for use as `billingEntityId` when - * creating an order. + * The unique identifier of the billing entity, for use as `billingEntityId` when creating an order. * - * @param id The unique identifier of the billing entity, for use as `billingEntityId` - * when creating an order. + * @param id The unique identifier of the billing entity, for use as `billingEntityId` when creating an order. */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,7 +164,6 @@ public BillingEntity name(String name) { /** * The unique name of the billing entity. - * * @return name The unique name of the billing entity. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -194,7 +196,6 @@ public BillingEntity taxId(String taxId) { /** * The tax number of the billing entity. - * * @return taxId The tax number of the billing entity. */ @JsonProperty(JSON_PROPERTY_TAX_ID) @@ -214,7 +215,9 @@ public void setTaxId(String taxId) { this.taxId = taxId; } - /** Return true if this BillingEntity object is equal to o. */ + /** + * Return true if this BillingEntity object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -224,11 +227,11 @@ public boolean equals(Object o) { return false; } BillingEntity billingEntity = (BillingEntity) o; - return Objects.equals(this.address, billingEntity.address) - && Objects.equals(this.email, billingEntity.email) - && Objects.equals(this.id, billingEntity.id) - && Objects.equals(this.name, billingEntity.name) - && Objects.equals(this.taxId, billingEntity.taxId); + return Objects.equals(this.address, billingEntity.address) && + Objects.equals(this.email, billingEntity.email) && + Objects.equals(this.id, billingEntity.id) && + Objects.equals(this.name, billingEntity.name) && + Objects.equals(this.taxId, billingEntity.taxId); } @Override @@ -250,7 +253,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -259,7 +263,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BillingEntity given an JSON string * * @param jsonString JSON string @@ -269,12 +273,11 @@ private String toIndentedString(Object o) { public static BillingEntity fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BillingEntity.class); } - - /** - * Convert an instance of BillingEntity to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BillingEntity to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CardholderReceipt.java b/src/main/java/com/adyen/model/management/CardholderReceipt.java index a4faacf84..4e7e3d2e3 100644 --- a/src/main/java/com/adyen/model/management/CardholderReceipt.java +++ b/src/main/java/com/adyen/model/management/CardholderReceipt.java @@ -2,37 +2,46 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** CardholderReceipt */ -@JsonPropertyOrder({CardholderReceipt.JSON_PROPERTY_HEADER_FOR_AUTHORIZED_RECEIPT}) + +/** + * CardholderReceipt + */ +@JsonPropertyOrder({ + CardholderReceipt.JSON_PROPERTY_HEADER_FOR_AUTHORIZED_RECEIPT +}) + public class CardholderReceipt { - public static final String JSON_PROPERTY_HEADER_FOR_AUTHORIZED_RECEIPT = - "headerForAuthorizedReceipt"; + public static final String JSON_PROPERTY_HEADER_FOR_AUTHORIZED_RECEIPT = "headerForAuthorizedReceipt"; private String headerForAuthorizedReceipt; - public CardholderReceipt() {} + public CardholderReceipt() { + } /** - * A custom header to show on the shopper receipt for an authorised transaction. Allows one or two - * comma-separated header lines, and blank lines. For example, `header,header,filler` + * A custom header to show on the shopper receipt for an authorised transaction. Allows one or two comma-separated header lines, and blank lines. For example, `header,header,filler` * - * @param headerForAuthorizedReceipt A custom header to show on the shopper receipt for an - * authorised transaction. Allows one or two comma-separated header lines, and blank lines. - * For example, `header,header,filler` + * @param headerForAuthorizedReceipt A custom header to show on the shopper receipt for an authorised transaction. Allows one or two comma-separated header lines, and blank lines. For example, `header,header,filler` * @return the current {@code CardholderReceipt} instance, allowing for method chaining */ public CardholderReceipt headerForAuthorizedReceipt(String headerForAuthorizedReceipt) { @@ -41,12 +50,8 @@ public CardholderReceipt headerForAuthorizedReceipt(String headerForAuthorizedRe } /** - * A custom header to show on the shopper receipt for an authorised transaction. Allows one or two - * comma-separated header lines, and blank lines. For example, `header,header,filler` - * - * @return headerForAuthorizedReceipt A custom header to show on the shopper receipt for an - * authorised transaction. Allows one or two comma-separated header lines, and blank lines. - * For example, `header,header,filler` + * A custom header to show on the shopper receipt for an authorised transaction. Allows one or two comma-separated header lines, and blank lines. For example, `header,header,filler` + * @return headerForAuthorizedReceipt A custom header to show on the shopper receipt for an authorised transaction. Allows one or two comma-separated header lines, and blank lines. For example, `header,header,filler` */ @JsonProperty(JSON_PROPERTY_HEADER_FOR_AUTHORIZED_RECEIPT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -55,12 +60,9 @@ public String getHeaderForAuthorizedReceipt() { } /** - * A custom header to show on the shopper receipt for an authorised transaction. Allows one or two - * comma-separated header lines, and blank lines. For example, `header,header,filler` + * A custom header to show on the shopper receipt for an authorised transaction. Allows one or two comma-separated header lines, and blank lines. For example, `header,header,filler` * - * @param headerForAuthorizedReceipt A custom header to show on the shopper receipt for an - * authorised transaction. Allows one or two comma-separated header lines, and blank lines. - * For example, `header,header,filler` + * @param headerForAuthorizedReceipt A custom header to show on the shopper receipt for an authorised transaction. Allows one or two comma-separated header lines, and blank lines. For example, `header,header,filler` */ @JsonProperty(JSON_PROPERTY_HEADER_FOR_AUTHORIZED_RECEIPT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,7 +70,9 @@ public void setHeaderForAuthorizedReceipt(String headerForAuthorizedReceipt) { this.headerForAuthorizedReceipt = headerForAuthorizedReceipt; } - /** Return true if this CardholderReceipt object is equal to o. */ + /** + * Return true if this CardholderReceipt object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -78,8 +82,7 @@ public boolean equals(Object o) { return false; } CardholderReceipt cardholderReceipt = (CardholderReceipt) o; - return Objects.equals( - this.headerForAuthorizedReceipt, cardholderReceipt.headerForAuthorizedReceipt); + return Objects.equals(this.headerForAuthorizedReceipt, cardholderReceipt.headerForAuthorizedReceipt); } @Override @@ -91,15 +94,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CardholderReceipt {\n"); - sb.append(" headerForAuthorizedReceipt: ") - .append(toIndentedString(headerForAuthorizedReceipt)) - .append("\n"); + sb.append(" headerForAuthorizedReceipt: ").append(toIndentedString(headerForAuthorizedReceipt)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -108,7 +110,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CardholderReceipt given an JSON string * * @param jsonString JSON string @@ -118,12 +120,11 @@ private String toIndentedString(Object o) { public static CardholderReceipt fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardholderReceipt.class); } - - /** - * Convert an instance of CardholderReceipt to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CardholderReceipt to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CartesBancairesInfo.java b/src/main/java/com/adyen/model/management/CartesBancairesInfo.java index a0506cb87..1ddfdbf8f 100644 --- a/src/main/java/com/adyen/model/management/CartesBancairesInfo.java +++ b/src/main/java/com/adyen/model/management/CartesBancairesInfo.java @@ -2,26 +2,37 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.TransactionDescriptionInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** CartesBancairesInfo */ + +/** + * CartesBancairesInfo + */ @JsonPropertyOrder({ CartesBancairesInfo.JSON_PROPERTY_SIRET, CartesBancairesInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION }) + public class CartesBancairesInfo { public static final String JSON_PROPERTY_SIRET = "siret"; private String siret; @@ -29,7 +40,8 @@ public class CartesBancairesInfo { public static final String JSON_PROPERTY_TRANSACTION_DESCRIPTION = "transactionDescription"; private TransactionDescriptionInfo transactionDescription; - public CartesBancairesInfo() {} + public CartesBancairesInfo() { + } /** * Cartes Bancaires SIRET. Format: 14 digits. @@ -44,7 +56,6 @@ public CartesBancairesInfo siret(String siret) { /** * Cartes Bancaires SIRET. Format: 14 digits. - * * @return siret Cartes Bancaires SIRET. Format: 14 digits. */ @JsonProperty(JSON_PROPERTY_SIRET) @@ -67,19 +78,17 @@ public void setSiret(String siret) { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription * @return the current {@code CartesBancairesInfo} instance, allowing for method chaining */ - public CartesBancairesInfo transactionDescription( - TransactionDescriptionInfo transactionDescription) { + public CartesBancairesInfo transactionDescription(TransactionDescriptionInfo transactionDescription) { this.transactionDescription = transactionDescription; return this; } /** * Get transactionDescription - * - * @return transactionDescription + * @return transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -90,7 +99,7 @@ public TransactionDescriptionInfo getTransactionDescription() { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -98,7 +107,9 @@ public void setTransactionDescription(TransactionDescriptionInfo transactionDesc this.transactionDescription = transactionDescription; } - /** Return true if this CartesBancairesInfo object is equal to o. */ + /** + * Return true if this CartesBancairesInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -108,8 +119,8 @@ public boolean equals(Object o) { return false; } CartesBancairesInfo cartesBancairesInfo = (CartesBancairesInfo) o; - return Objects.equals(this.siret, cartesBancairesInfo.siret) - && Objects.equals(this.transactionDescription, cartesBancairesInfo.transactionDescription); + return Objects.equals(this.siret, cartesBancairesInfo.siret) && + Objects.equals(this.transactionDescription, cartesBancairesInfo.transactionDescription); } @Override @@ -122,15 +133,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CartesBancairesInfo {\n"); sb.append(" siret: ").append(toIndentedString(siret)).append("\n"); - sb.append(" transactionDescription: ") - .append(toIndentedString(transactionDescription)) - .append("\n"); + sb.append(" transactionDescription: ").append(toIndentedString(transactionDescription)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -139,23 +149,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CartesBancairesInfo given an JSON string * * @param jsonString JSON string * @return An instance of CartesBancairesInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CartesBancairesInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to CartesBancairesInfo */ public static CartesBancairesInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CartesBancairesInfo.class); } - - /** - * Convert an instance of CartesBancairesInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CartesBancairesInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ClearpayInfo.java b/src/main/java/com/adyen/model/management/ClearpayInfo.java index faabca50c..dc0b0e9d4 100644 --- a/src/main/java/com/adyen/model/management/ClearpayInfo.java +++ b/src/main/java/com/adyen/model/management/ClearpayInfo.java @@ -2,28 +2,41 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ClearpayInfo */ -@JsonPropertyOrder({ClearpayInfo.JSON_PROPERTY_SUPPORT_URL}) + +/** + * ClearpayInfo + */ +@JsonPropertyOrder({ + ClearpayInfo.JSON_PROPERTY_SUPPORT_URL +}) + public class ClearpayInfo { public static final String JSON_PROPERTY_SUPPORT_URL = "supportUrl"; private String supportUrl; - public ClearpayInfo() {} + public ClearpayInfo() { + } /** * Support Url @@ -38,7 +51,6 @@ public ClearpayInfo supportUrl(String supportUrl) { /** * Support Url - * * @return supportUrl Support Url */ @JsonProperty(JSON_PROPERTY_SUPPORT_URL) @@ -58,7 +70,9 @@ public void setSupportUrl(String supportUrl) { this.supportUrl = supportUrl; } - /** Return true if this ClearpayInfo object is equal to o. */ + /** + * Return true if this ClearpayInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,7 +110,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ClearpayInfo given an JSON string * * @param jsonString JSON string @@ -105,12 +120,11 @@ private String toIndentedString(Object o) { public static ClearpayInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ClearpayInfo.class); } - - /** - * Convert an instance of ClearpayInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ClearpayInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Commission.java b/src/main/java/com/adyen/model/management/Commission.java index e19533f03..66b94a9b9 100644 --- a/src/main/java/com/adyen/model/management/Commission.java +++ b/src/main/java/com/adyen/model/management/Commission.java @@ -2,26 +2,36 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Commission */ + +/** + * Commission + */ @JsonPropertyOrder({ Commission.JSON_PROPERTY_FIXED_AMOUNT, Commission.JSON_PROPERTY_VARIABLE_PERCENTAGE }) + public class Commission { public static final String JSON_PROPERTY_FIXED_AMOUNT = "fixedAmount"; private Long fixedAmount; @@ -29,7 +39,8 @@ public class Commission { public static final String JSON_PROPERTY_VARIABLE_PERCENTAGE = "variablePercentage"; private Long variablePercentage; - public Commission() {} + public Commission() { + } /** * A fixed commission fee, in minor units. @@ -44,7 +55,6 @@ public Commission fixedAmount(Long fixedAmount) { /** * A fixed commission fee, in minor units. - * * @return fixedAmount A fixed commission fee, in minor units. */ @JsonProperty(JSON_PROPERTY_FIXED_AMOUNT) @@ -77,7 +87,6 @@ public Commission variablePercentage(Long variablePercentage) { /** * A variable commission fee, in basis points. - * * @return variablePercentage A variable commission fee, in basis points. */ @JsonProperty(JSON_PROPERTY_VARIABLE_PERCENTAGE) @@ -97,7 +106,9 @@ public void setVariablePercentage(Long variablePercentage) { this.variablePercentage = variablePercentage; } - /** Return true if this Commission object is equal to o. */ + /** + * Return true if this Commission object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -107,8 +118,8 @@ public boolean equals(Object o) { return false; } Commission commission = (Commission) o; - return Objects.equals(this.fixedAmount, commission.fixedAmount) - && Objects.equals(this.variablePercentage, commission.variablePercentage); + return Objects.equals(this.fixedAmount, commission.fixedAmount) && + Objects.equals(this.variablePercentage, commission.variablePercentage); } @Override @@ -127,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Commission given an JSON string * * @param jsonString JSON string @@ -146,12 +158,11 @@ private String toIndentedString(Object o) { public static Commission fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Commission.class); } - - /** - * Convert an instance of Commission to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Commission to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Company.java b/src/main/java/com/adyen/model/management/Company.java index 04397848a..8b0b1f1cd 100644 --- a/src/main/java/com/adyen/model/management/Company.java +++ b/src/main/java/com/adyen/model/management/Company.java @@ -2,24 +2,35 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.CompanyLinks; +import com.adyen.model.management.DataCenter; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** Company */ +/** + * Company + */ @JsonPropertyOrder({ Company.JSON_PROPERTY_LINKS, Company.JSON_PROPERTY_DATA_CENTERS, @@ -29,6 +40,7 @@ Company.JSON_PROPERTY_REFERENCE, Company.JSON_PROPERTY_STATUS }) + public class Company { public static final String JSON_PROPERTY_LINKS = "_links"; private CompanyLinks links; @@ -51,12 +63,13 @@ public class Company { public static final String JSON_PROPERTY_STATUS = "status"; private String status; - public Company() {} + public Company() { + } /** * links * - * @param links + * @param links * @return the current {@code Company} instance, allowing for method chaining */ public Company links(CompanyLinks links) { @@ -66,8 +79,7 @@ public Company links(CompanyLinks links) { /** * Get links - * - * @return links + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -78,7 +90,7 @@ public CompanyLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,13 +99,9 @@ public void setLinks(CompanyLinks links) { } /** - * List of available data centers. Adyen has several data centers around the world.In the URL that - * you use for making API requests, we recommend you use the live URL prefix from the data center - * closest to your shoppers. + * List of available data centers. Adyen has several data centers around the world.In the URL that you use for making API requests, we recommend you use the live URL prefix from the data center closest to your shoppers. * - * @param dataCenters List of available data centers. Adyen has several data centers around the - * world.In the URL that you use for making API requests, we recommend you use the live URL - * prefix from the data center closest to your shoppers. + * @param dataCenters List of available data centers. Adyen has several data centers around the world.In the URL that you use for making API requests, we recommend you use the live URL prefix from the data center closest to your shoppers. * @return the current {@code Company} instance, allowing for method chaining */ public Company dataCenters(List dataCenters) { @@ -110,13 +118,8 @@ public Company addDataCentersItem(DataCenter dataCentersItem) { } /** - * List of available data centers. Adyen has several data centers around the world.In the URL that - * you use for making API requests, we recommend you use the live URL prefix from the data center - * closest to your shoppers. - * - * @return dataCenters List of available data centers. Adyen has several data centers around the - * world.In the URL that you use for making API requests, we recommend you use the live URL - * prefix from the data center closest to your shoppers. + * List of available data centers. Adyen has several data centers around the world.In the URL that you use for making API requests, we recommend you use the live URL prefix from the data center closest to your shoppers. + * @return dataCenters List of available data centers. Adyen has several data centers around the world.In the URL that you use for making API requests, we recommend you use the live URL prefix from the data center closest to your shoppers. */ @JsonProperty(JSON_PROPERTY_DATA_CENTERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,13 +128,9 @@ public List getDataCenters() { } /** - * List of available data centers. Adyen has several data centers around the world.In the URL that - * you use for making API requests, we recommend you use the live URL prefix from the data center - * closest to your shoppers. + * List of available data centers. Adyen has several data centers around the world.In the URL that you use for making API requests, we recommend you use the live URL prefix from the data center closest to your shoppers. * - * @param dataCenters List of available data centers. Adyen has several data centers around the - * world.In the URL that you use for making API requests, we recommend you use the live URL - * prefix from the data center closest to your shoppers. + * @param dataCenters List of available data centers. Adyen has several data centers around the world.In the URL that you use for making API requests, we recommend you use the live URL prefix from the data center closest to your shoppers. */ @JsonProperty(JSON_PROPERTY_DATA_CENTERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,7 +151,6 @@ public Company description(String description) { /** * Your description for the company account, maximum 300 characters - * * @return description Your description for the company account, maximum 300 characters */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -185,7 +183,6 @@ public Company id(String id) { /** * The unique identifier of the company account. - * * @return id The unique identifier of the company account. */ @JsonProperty(JSON_PROPERTY_ID) @@ -218,7 +215,6 @@ public Company name(String name) { /** * The legal or trading name of the company. - * * @return name The legal or trading name of the company. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -251,7 +247,6 @@ public Company reference(String reference) { /** * Your reference to the account - * * @return reference Your reference to the account */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -272,17 +267,9 @@ public void setReference(String reference) { } /** - * The status of the company account. Possible values: * **Active**: Users can log in. Processing - * and payout capabilities depend on the status of the merchant account. * **Inactive**: Users can - * log in. Payment processing and payouts are disabled. * **Closed**: The company account is - * closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are - * disabled. + * The status of the company account. Possible values: * **Active**: Users can log in. Processing and payout capabilities depend on the status of the merchant account. * **Inactive**: Users can log in. Payment processing and payouts are disabled. * **Closed**: The company account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. * - * @param status The status of the company account. Possible values: * **Active**: Users can log - * in. Processing and payout capabilities depend on the status of the merchant account. * - * **Inactive**: Users can log in. Payment processing and payouts are disabled. * **Closed**: - * The company account is closed and this cannot be reversed. Users cannot log in. Payment - * processing and payouts are disabled. + * @param status The status of the company account. Possible values: * **Active**: Users can log in. Processing and payout capabilities depend on the status of the merchant account. * **Inactive**: Users can log in. Payment processing and payouts are disabled. * **Closed**: The company account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. * @return the current {@code Company} instance, allowing for method chaining */ public Company status(String status) { @@ -291,17 +278,8 @@ public Company status(String status) { } /** - * The status of the company account. Possible values: * **Active**: Users can log in. Processing - * and payout capabilities depend on the status of the merchant account. * **Inactive**: Users can - * log in. Payment processing and payouts are disabled. * **Closed**: The company account is - * closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are - * disabled. - * - * @return status The status of the company account. Possible values: * **Active**: Users can log - * in. Processing and payout capabilities depend on the status of the merchant account. * - * **Inactive**: Users can log in. Payment processing and payouts are disabled. * **Closed**: - * The company account is closed and this cannot be reversed. Users cannot log in. Payment - * processing and payouts are disabled. + * The status of the company account. Possible values: * **Active**: Users can log in. Processing and payout capabilities depend on the status of the merchant account. * **Inactive**: Users can log in. Payment processing and payouts are disabled. * **Closed**: The company account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. + * @return status The status of the company account. Possible values: * **Active**: Users can log in. Processing and payout capabilities depend on the status of the merchant account. * **Inactive**: Users can log in. Payment processing and payouts are disabled. * **Closed**: The company account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -310,17 +288,9 @@ public String getStatus() { } /** - * The status of the company account. Possible values: * **Active**: Users can log in. Processing - * and payout capabilities depend on the status of the merchant account. * **Inactive**: Users can - * log in. Payment processing and payouts are disabled. * **Closed**: The company account is - * closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are - * disabled. + * The status of the company account. Possible values: * **Active**: Users can log in. Processing and payout capabilities depend on the status of the merchant account. * **Inactive**: Users can log in. Payment processing and payouts are disabled. * **Closed**: The company account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. * - * @param status The status of the company account. Possible values: * **Active**: Users can log - * in. Processing and payout capabilities depend on the status of the merchant account. * - * **Inactive**: Users can log in. Payment processing and payouts are disabled. * **Closed**: - * The company account is closed and this cannot be reversed. Users cannot log in. Payment - * processing and payouts are disabled. + * @param status The status of the company account. Possible values: * **Active**: Users can log in. Processing and payout capabilities depend on the status of the merchant account. * **Inactive**: Users can log in. Payment processing and payouts are disabled. * **Closed**: The company account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -328,7 +298,9 @@ public void setStatus(String status) { this.status = status; } - /** Return true if this Company object is equal to o. */ + /** + * Return true if this Company object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -338,13 +310,13 @@ public boolean equals(Object o) { return false; } Company company = (Company) o; - return Objects.equals(this.links, company.links) - && Objects.equals(this.dataCenters, company.dataCenters) - && Objects.equals(this.description, company.description) - && Objects.equals(this.id, company.id) - && Objects.equals(this.name, company.name) - && Objects.equals(this.reference, company.reference) - && Objects.equals(this.status, company.status); + return Objects.equals(this.links, company.links) && + Objects.equals(this.dataCenters, company.dataCenters) && + Objects.equals(this.description, company.description) && + Objects.equals(this.id, company.id) && + Objects.equals(this.name, company.name) && + Objects.equals(this.reference, company.reference) && + Objects.equals(this.status, company.status); } @Override @@ -368,7 +340,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -377,7 +350,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Company given an JSON string * * @param jsonString JSON string @@ -387,12 +360,11 @@ private String toIndentedString(Object o) { public static Company fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Company.class); } - - /** - * Convert an instance of Company to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Company to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CompanyApiCredential.java b/src/main/java/com/adyen/model/management/CompanyApiCredential.java index 8482c2b3e..bc7fe8c34 100644 --- a/src/main/java/com/adyen/model/management/CompanyApiCredential.java +++ b/src/main/java/com/adyen/model/management/CompanyApiCredential.java @@ -2,24 +2,35 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.AllowedOrigin; +import com.adyen.model.management.ApiCredentialLinks; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** CompanyApiCredential */ + +/** + * CompanyApiCredential + */ @JsonPropertyOrder({ CompanyApiCredential.JSON_PROPERTY_LINKS, CompanyApiCredential.JSON_PROPERTY_ACTIVE, @@ -32,6 +43,7 @@ CompanyApiCredential.JSON_PROPERTY_ROLES, CompanyApiCredential.JSON_PROPERTY_USERNAME }) + public class CompanyApiCredential { public static final String JSON_PROPERTY_LINKS = "_links"; private ApiCredentialLinks links; @@ -45,8 +57,7 @@ public class CompanyApiCredential { public static final String JSON_PROPERTY_ALLOWED_ORIGINS = "allowedOrigins"; private List allowedOrigins; - public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS = - "associatedMerchantAccounts"; + public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS = "associatedMerchantAccounts"; private List associatedMerchantAccounts; public static final String JSON_PROPERTY_CLIENT_KEY = "clientKey"; @@ -64,12 +75,13 @@ public class CompanyApiCredential { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public CompanyApiCredential() {} + public CompanyApiCredential() { + } /** * links * - * @param links + * @param links * @return the current {@code CompanyApiCredential} instance, allowing for method chaining */ public CompanyApiCredential links(ApiCredentialLinks links) { @@ -79,8 +91,7 @@ public CompanyApiCredential links(ApiCredentialLinks links) { /** * Get links - * - * @return links + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -91,7 +102,7 @@ public ApiCredentialLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,11 +111,9 @@ public void setLinks(ApiCredentialLinks links) { } /** - * Indicates if the API credential is enabled. Must be set to **true** to use the credential in - * your integration. + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. * - * @param active Indicates if the API credential is enabled. Must be set to **true** to use the - * credential in your integration. + * @param active Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. * @return the current {@code CompanyApiCredential} instance, allowing for method chaining */ public CompanyApiCredential active(Boolean active) { @@ -113,11 +122,8 @@ public CompanyApiCredential active(Boolean active) { } /** - * Indicates if the API credential is enabled. Must be set to **true** to use the credential in - * your integration. - * - * @return active Indicates if the API credential is enabled. Must be set to **true** to use the - * credential in your integration. + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + * @return active Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,11 +132,9 @@ public Boolean getActive() { } /** - * Indicates if the API credential is enabled. Must be set to **true** to use the credential in - * your integration. + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. * - * @param active Indicates if the API credential is enabled. Must be set to **true** to use the - * credential in your integration. + * @param active Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,13 +143,9 @@ public void setActive(Boolean active) { } /** - * List of IP addresses from which your client can make requests. If the list is empty, we allow - * requests from any IP. If the list is not empty and we get a request from an IP which is not on - * the list, you get a security error. + * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. * - * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the - * list is empty, we allow requests from any IP. If the list is not empty and we get a request - * from an IP which is not on the list, you get a security error. + * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. * @return the current {@code CompanyApiCredential} instance, allowing for method chaining */ public CompanyApiCredential allowedIpAddresses(List allowedIpAddresses) { @@ -162,13 +162,8 @@ public CompanyApiCredential addAllowedIpAddressesItem(String allowedIpAddressesI } /** - * List of IP addresses from which your client can make requests. If the list is empty, we allow - * requests from any IP. If the list is not empty and we get a request from an IP which is not on - * the list, you get a security error. - * - * @return allowedIpAddresses List of IP addresses from which your client can make requests. If - * the list is empty, we allow requests from any IP. If the list is not empty and we get a - * request from an IP which is not on the list, you get a security error. + * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + * @return allowedIpAddresses List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. */ @JsonProperty(JSON_PROPERTY_ALLOWED_IP_ADDRESSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,13 +172,9 @@ public List getAllowedIpAddresses() { } /** - * List of IP addresses from which your client can make requests. If the list is empty, we allow - * requests from any IP. If the list is not empty and we get a request from an IP which is not on - * the list, you get a security error. + * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. * - * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the - * list is empty, we allow requests from any IP. If the list is not empty and we get a request - * from an IP which is not on the list, you get a security error. + * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. */ @JsonProperty(JSON_PROPERTY_ALLOWED_IP_ADDRESSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,13 +183,9 @@ public void setAllowedIpAddresses(List allowedIpAddresses) { } /** - * List containing the [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * linked to the API credential. + * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. * - * @param allowedOrigins List containing the [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * linked to the API credential. + * @param allowedOrigins List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. * @return the current {@code CompanyApiCredential} instance, allowing for method chaining */ public CompanyApiCredential allowedOrigins(List allowedOrigins) { @@ -215,13 +202,8 @@ public CompanyApiCredential addAllowedOriginsItem(AllowedOrigin allowedOriginsIt } /** - * List containing the [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * linked to the API credential. - * - * @return allowedOrigins List containing the [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * linked to the API credential. + * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + * @return allowedOrigins List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -230,13 +212,9 @@ public List getAllowedOrigins() { } /** - * List containing the [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * linked to the API credential. + * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. * - * @param allowedOrigins List containing the [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * linked to the API credential. + * @param allowedOrigins List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -245,13 +223,9 @@ public void setAllowedOrigins(List allowedOrigins) { } /** - * List of merchant accounts that the API credential has explicit access to. If the credential has - * access to a company, this implies access to all merchant accounts and no merchants for that - * company will be included. + * List of merchant accounts that the API credential has explicit access to. If the credential has access to a company, this implies access to all merchant accounts and no merchants for that company will be included. * - * @param associatedMerchantAccounts List of merchant accounts that the API credential has - * explicit access to. If the credential has access to a company, this implies access to all - * merchant accounts and no merchants for that company will be included. + * @param associatedMerchantAccounts List of merchant accounts that the API credential has explicit access to. If the credential has access to a company, this implies access to all merchant accounts and no merchants for that company will be included. * @return the current {@code CompanyApiCredential} instance, allowing for method chaining */ public CompanyApiCredential associatedMerchantAccounts(List associatedMerchantAccounts) { @@ -259,8 +233,7 @@ public CompanyApiCredential associatedMerchantAccounts(List associatedMe return this; } - public CompanyApiCredential addAssociatedMerchantAccountsItem( - String associatedMerchantAccountsItem) { + public CompanyApiCredential addAssociatedMerchantAccountsItem(String associatedMerchantAccountsItem) { if (this.associatedMerchantAccounts == null) { this.associatedMerchantAccounts = new ArrayList<>(); } @@ -269,13 +242,8 @@ public CompanyApiCredential addAssociatedMerchantAccountsItem( } /** - * List of merchant accounts that the API credential has explicit access to. If the credential has - * access to a company, this implies access to all merchant accounts and no merchants for that - * company will be included. - * - * @return associatedMerchantAccounts List of merchant accounts that the API credential has - * explicit access to. If the credential has access to a company, this implies access to all - * merchant accounts and no merchants for that company will be included. + * List of merchant accounts that the API credential has explicit access to. If the credential has access to a company, this implies access to all merchant accounts and no merchants for that company will be included. + * @return associatedMerchantAccounts List of merchant accounts that the API credential has explicit access to. If the credential has access to a company, this implies access to all merchant accounts and no merchants for that company will be included. */ @JsonProperty(JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,13 +252,9 @@ public List getAssociatedMerchantAccounts() { } /** - * List of merchant accounts that the API credential has explicit access to. If the credential has - * access to a company, this implies access to all merchant accounts and no merchants for that - * company will be included. + * List of merchant accounts that the API credential has explicit access to. If the credential has access to a company, this implies access to all merchant accounts and no merchants for that company will be included. * - * @param associatedMerchantAccounts List of merchant accounts that the API credential has - * explicit access to. If the credential has access to a company, this implies access to all - * merchant accounts and no merchants for that company will be included. + * @param associatedMerchantAccounts List of merchant accounts that the API credential has explicit access to. If the credential has access to a company, this implies access to all merchant accounts and no merchants for that company will be included. */ @JsonProperty(JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -299,13 +263,9 @@ public void setAssociatedMerchantAccounts(List associatedMerchantAccount } /** - * Public key used for [client-side - * authentication](https://docs.adyen.com/development-resources/client-side-authentication). The - * client key is required for Drop-in and Components integrations. + * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. * - * @param clientKey Public key used for [client-side - * authentication](https://docs.adyen.com/development-resources/client-side-authentication). - * The client key is required for Drop-in and Components integrations. + * @param clientKey Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. * @return the current {@code CompanyApiCredential} instance, allowing for method chaining */ public CompanyApiCredential clientKey(String clientKey) { @@ -314,13 +274,8 @@ public CompanyApiCredential clientKey(String clientKey) { } /** - * Public key used for [client-side - * authentication](https://docs.adyen.com/development-resources/client-side-authentication). The - * client key is required for Drop-in and Components integrations. - * - * @return clientKey Public key used for [client-side - * authentication](https://docs.adyen.com/development-resources/client-side-authentication). - * The client key is required for Drop-in and Components integrations. + * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + * @return clientKey Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. */ @JsonProperty(JSON_PROPERTY_CLIENT_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -329,13 +284,9 @@ public String getClientKey() { } /** - * Public key used for [client-side - * authentication](https://docs.adyen.com/development-resources/client-side-authentication). The - * client key is required for Drop-in and Components integrations. + * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. * - * @param clientKey Public key used for [client-side - * authentication](https://docs.adyen.com/development-resources/client-side-authentication). - * The client key is required for Drop-in and Components integrations. + * @param clientKey Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. */ @JsonProperty(JSON_PROPERTY_CLIENT_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -356,7 +307,6 @@ public CompanyApiCredential description(String description) { /** * Description of the API credential. - * * @return description Description of the API credential. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -389,7 +339,6 @@ public CompanyApiCredential id(String id) { /** * Unique identifier of the API credential. - * * @return id Unique identifier of the API credential. */ @JsonProperty(JSON_PROPERTY_ID) @@ -410,12 +359,9 @@ public void setId(String id) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the - * API credential. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. * - * @param roles List of - * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API - * credential. + * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. * @return the current {@code CompanyApiCredential} instance, allowing for method chaining */ public CompanyApiCredential roles(List roles) { @@ -432,12 +378,8 @@ public CompanyApiCredential addRolesItem(String rolesItem) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the - * API credential. - * - * @return roles List of - * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API - * credential. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + * @return roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -446,12 +388,9 @@ public List getRoles() { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the - * API credential. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. * - * @param roles List of - * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API - * credential. + * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -460,12 +399,9 @@ public void setRoles(List roles) { } /** - * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), - * for example **ws@Company.TestCompany**. + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. * - * @param username The name of the [API - * credential](https://docs.adyen.com/development-resources/api-credentials), for example - * **ws@Company.TestCompany**. + * @param username The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. * @return the current {@code CompanyApiCredential} instance, allowing for method chaining */ public CompanyApiCredential username(String username) { @@ -474,12 +410,8 @@ public CompanyApiCredential username(String username) { } /** - * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), - * for example **ws@Company.TestCompany**. - * - * @return username The name of the [API - * credential](https://docs.adyen.com/development-resources/api-credentials), for example - * **ws@Company.TestCompany**. + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + * @return username The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. */ @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -488,12 +420,9 @@ public String getUsername() { } /** - * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), - * for example **ws@Company.TestCompany**. + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. * - * @param username The name of the [API - * credential](https://docs.adyen.com/development-resources/api-credentials), for example - * **ws@Company.TestCompany**. + * @param username The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. */ @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -501,7 +430,9 @@ public void setUsername(String username) { this.username = username; } - /** Return true if this CompanyApiCredential object is equal to o. */ + /** + * Return true if this CompanyApiCredential object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -511,32 +442,21 @@ public boolean equals(Object o) { return false; } CompanyApiCredential companyApiCredential = (CompanyApiCredential) o; - return Objects.equals(this.links, companyApiCredential.links) - && Objects.equals(this.active, companyApiCredential.active) - && Objects.equals(this.allowedIpAddresses, companyApiCredential.allowedIpAddresses) - && Objects.equals(this.allowedOrigins, companyApiCredential.allowedOrigins) - && Objects.equals( - this.associatedMerchantAccounts, companyApiCredential.associatedMerchantAccounts) - && Objects.equals(this.clientKey, companyApiCredential.clientKey) - && Objects.equals(this.description, companyApiCredential.description) - && Objects.equals(this.id, companyApiCredential.id) - && Objects.equals(this.roles, companyApiCredential.roles) - && Objects.equals(this.username, companyApiCredential.username); + return Objects.equals(this.links, companyApiCredential.links) && + Objects.equals(this.active, companyApiCredential.active) && + Objects.equals(this.allowedIpAddresses, companyApiCredential.allowedIpAddresses) && + Objects.equals(this.allowedOrigins, companyApiCredential.allowedOrigins) && + Objects.equals(this.associatedMerchantAccounts, companyApiCredential.associatedMerchantAccounts) && + Objects.equals(this.clientKey, companyApiCredential.clientKey) && + Objects.equals(this.description, companyApiCredential.description) && + Objects.equals(this.id, companyApiCredential.id) && + Objects.equals(this.roles, companyApiCredential.roles) && + Objects.equals(this.username, companyApiCredential.username); } @Override public int hashCode() { - return Objects.hash( - links, - active, - allowedIpAddresses, - allowedOrigins, - associatedMerchantAccounts, - clientKey, - description, - id, - roles, - username); + return Objects.hash(links, active, allowedIpAddresses, allowedOrigins, associatedMerchantAccounts, clientKey, description, id, roles, username); } @Override @@ -547,9 +467,7 @@ public String toString() { sb.append(" active: ").append(toIndentedString(active)).append("\n"); sb.append(" allowedIpAddresses: ").append(toIndentedString(allowedIpAddresses)).append("\n"); sb.append(" allowedOrigins: ").append(toIndentedString(allowedOrigins)).append("\n"); - sb.append(" associatedMerchantAccounts: ") - .append(toIndentedString(associatedMerchantAccounts)) - .append("\n"); + sb.append(" associatedMerchantAccounts: ").append(toIndentedString(associatedMerchantAccounts)).append("\n"); sb.append(" clientKey: ").append(toIndentedString(clientKey)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); @@ -560,7 +478,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -569,23 +488,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CompanyApiCredential given an JSON string * * @param jsonString JSON string * @return An instance of CompanyApiCredential - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CompanyApiCredential + * @throws JsonProcessingException if the JSON string is invalid with respect to CompanyApiCredential */ public static CompanyApiCredential fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CompanyApiCredential.class); } - - /** - * Convert an instance of CompanyApiCredential to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CompanyApiCredential to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CompanyLinks.java b/src/main/java/com/adyen/model/management/CompanyLinks.java index 0bd1a6468..fd37ef10a 100644 --- a/src/main/java/com/adyen/model/management/CompanyLinks.java +++ b/src/main/java/com/adyen/model/management/CompanyLinks.java @@ -2,28 +2,39 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.LinksElement; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** CompanyLinks */ + +/** + * CompanyLinks + */ @JsonPropertyOrder({ CompanyLinks.JSON_PROPERTY_API_CREDENTIALS, CompanyLinks.JSON_PROPERTY_SELF, CompanyLinks.JSON_PROPERTY_USERS, CompanyLinks.JSON_PROPERTY_WEBHOOKS }) + public class CompanyLinks { public static final String JSON_PROPERTY_API_CREDENTIALS = "apiCredentials"; private LinksElement apiCredentials; @@ -37,12 +48,13 @@ public class CompanyLinks { public static final String JSON_PROPERTY_WEBHOOKS = "webhooks"; private LinksElement webhooks; - public CompanyLinks() {} + public CompanyLinks() { + } /** * apiCredentials * - * @param apiCredentials + * @param apiCredentials * @return the current {@code CompanyLinks} instance, allowing for method chaining */ public CompanyLinks apiCredentials(LinksElement apiCredentials) { @@ -52,8 +64,7 @@ public CompanyLinks apiCredentials(LinksElement apiCredentials) { /** * Get apiCredentials - * - * @return apiCredentials + * @return apiCredentials */ @JsonProperty(JSON_PROPERTY_API_CREDENTIALS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,7 +75,7 @@ public LinksElement getApiCredentials() { /** * apiCredentials * - * @param apiCredentials + * @param apiCredentials */ @JsonProperty(JSON_PROPERTY_API_CREDENTIALS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,7 +86,7 @@ public void setApiCredentials(LinksElement apiCredentials) { /** * self * - * @param self + * @param self * @return the current {@code CompanyLinks} instance, allowing for method chaining */ public CompanyLinks self(LinksElement self) { @@ -85,8 +96,7 @@ public CompanyLinks self(LinksElement self) { /** * Get self - * - * @return self + * @return self */ @JsonProperty(JSON_PROPERTY_SELF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,7 +107,7 @@ public LinksElement getSelf() { /** * self * - * @param self + * @param self */ @JsonProperty(JSON_PROPERTY_SELF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,7 +118,7 @@ public void setSelf(LinksElement self) { /** * users * - * @param users + * @param users * @return the current {@code CompanyLinks} instance, allowing for method chaining */ public CompanyLinks users(LinksElement users) { @@ -118,8 +128,7 @@ public CompanyLinks users(LinksElement users) { /** * Get users - * - * @return users + * @return users */ @JsonProperty(JSON_PROPERTY_USERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -130,7 +139,7 @@ public LinksElement getUsers() { /** * users * - * @param users + * @param users */ @JsonProperty(JSON_PROPERTY_USERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -141,7 +150,7 @@ public void setUsers(LinksElement users) { /** * webhooks * - * @param webhooks + * @param webhooks * @return the current {@code CompanyLinks} instance, allowing for method chaining */ public CompanyLinks webhooks(LinksElement webhooks) { @@ -151,8 +160,7 @@ public CompanyLinks webhooks(LinksElement webhooks) { /** * Get webhooks - * - * @return webhooks + * @return webhooks */ @JsonProperty(JSON_PROPERTY_WEBHOOKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,7 +171,7 @@ public LinksElement getWebhooks() { /** * webhooks * - * @param webhooks + * @param webhooks */ @JsonProperty(JSON_PROPERTY_WEBHOOKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -171,7 +179,9 @@ public void setWebhooks(LinksElement webhooks) { this.webhooks = webhooks; } - /** Return true if this CompanyLinks object is equal to o. */ + /** + * Return true if this CompanyLinks object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -181,10 +191,10 @@ public boolean equals(Object o) { return false; } CompanyLinks companyLinks = (CompanyLinks) o; - return Objects.equals(this.apiCredentials, companyLinks.apiCredentials) - && Objects.equals(this.self, companyLinks.self) - && Objects.equals(this.users, companyLinks.users) - && Objects.equals(this.webhooks, companyLinks.webhooks); + return Objects.equals(this.apiCredentials, companyLinks.apiCredentials) && + Objects.equals(this.self, companyLinks.self) && + Objects.equals(this.users, companyLinks.users) && + Objects.equals(this.webhooks, companyLinks.webhooks); } @Override @@ -205,7 +215,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -214,7 +225,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CompanyLinks given an JSON string * * @param jsonString JSON string @@ -224,12 +235,11 @@ private String toIndentedString(Object o) { public static CompanyLinks fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CompanyLinks.class); } - - /** - * Convert an instance of CompanyLinks to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CompanyLinks to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CompanyUser.java b/src/main/java/com/adyen/model/management/CompanyUser.java index 75297787c..0c8e00ee6 100644 --- a/src/main/java/com/adyen/model/management/CompanyUser.java +++ b/src/main/java/com/adyen/model/management/CompanyUser.java @@ -2,24 +2,35 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.Links; +import com.adyen.model.management.Name; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** CompanyUser */ + +/** + * CompanyUser + */ @JsonPropertyOrder({ CompanyUser.JSON_PROPERTY_LINKS, CompanyUser.JSON_PROPERTY_ACCOUNT_GROUPS, @@ -33,6 +44,7 @@ CompanyUser.JSON_PROPERTY_TIME_ZONE_CODE, CompanyUser.JSON_PROPERTY_USERNAME }) + public class CompanyUser { public static final String JSON_PROPERTY_LINKS = "_links"; private Links links; @@ -46,8 +58,7 @@ public class CompanyUser { public static final String JSON_PROPERTY_APPS = "apps"; private List apps; - public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS = - "associatedMerchantAccounts"; + public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS = "associatedMerchantAccounts"; private List associatedMerchantAccounts; public static final String JSON_PROPERTY_EMAIL = "email"; @@ -68,12 +79,13 @@ public class CompanyUser { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public CompanyUser() {} + public CompanyUser() { + } /** * links * - * @param links + * @param links * @return the current {@code CompanyUser} instance, allowing for method chaining */ public CompanyUser links(Links links) { @@ -83,8 +95,7 @@ public CompanyUser links(Links links) { /** * Get links - * - * @return links + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -95,7 +106,7 @@ public Links getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,12 +115,9 @@ public void setLinks(Links links) { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) - * associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. * - * @param accountGroups The list of [account - * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with - * this user. + * @param accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. * @return the current {@code CompanyUser} instance, allowing for method chaining */ public CompanyUser accountGroups(List accountGroups) { @@ -126,12 +134,8 @@ public CompanyUser addAccountGroupsItem(String accountGroupsItem) { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) - * associated with this user. - * - * @return accountGroups The list of [account - * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with - * this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * @return accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,12 +144,9 @@ public List getAccountGroups() { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) - * associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. * - * @param accountGroups The list of [account - * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with - * this user. + * @param accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -166,7 +167,6 @@ public CompanyUser active(Boolean active) { /** * Indicates whether this user is active. - * * @return active Indicates whether this user is active. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @@ -207,7 +207,6 @@ public CompanyUser addAppsItem(String appsItem) { /** * Set of apps available to this user - * * @return apps Set of apps available to this user */ @JsonProperty(JSON_PROPERTY_APPS) @@ -228,13 +227,9 @@ public void setApps(List apps) { } /** - * The list of [merchant - * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with - * this user. + * The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. * - * @param associatedMerchantAccounts The list of [merchant - * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated - * with this user. + * @param associatedMerchantAccounts The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. * @return the current {@code CompanyUser} instance, allowing for method chaining */ public CompanyUser associatedMerchantAccounts(List associatedMerchantAccounts) { @@ -251,13 +246,8 @@ public CompanyUser addAssociatedMerchantAccountsItem(String associatedMerchantAc } /** - * The list of [merchant - * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with - * this user. - * - * @return associatedMerchantAccounts The list of [merchant - * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated - * with this user. + * The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. + * @return associatedMerchantAccounts The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. */ @JsonProperty(JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -266,13 +256,9 @@ public List getAssociatedMerchantAccounts() { } /** - * The list of [merchant - * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with - * this user. + * The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. * - * @param associatedMerchantAccounts The list of [merchant - * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated - * with this user. + * @param associatedMerchantAccounts The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. */ @JsonProperty(JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -293,7 +279,6 @@ public CompanyUser email(String email) { /** * The email address of the user. - * * @return email The email address of the user. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -326,7 +311,6 @@ public CompanyUser id(String id) { /** * The unique identifier of the user. - * * @return id The unique identifier of the user. */ @JsonProperty(JSON_PROPERTY_ID) @@ -349,7 +333,7 @@ public void setId(String id) { /** * name * - * @param name + * @param name * @return the current {@code CompanyUser} instance, allowing for method chaining */ public CompanyUser name(Name name) { @@ -359,8 +343,7 @@ public CompanyUser name(Name name) { /** * Get name - * - * @return name + * @return name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -371,7 +354,7 @@ public Name getName() { /** * name * - * @param name + * @param name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -400,7 +383,6 @@ public CompanyUser addRolesItem(String rolesItem) { /** * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. - * * @return roles The list of [roles](https://docs.adyen.com/account/user-roles) for this user. */ @JsonProperty(JSON_PROPERTY_ROLES) @@ -421,12 +403,9 @@ public void setRoles(List roles) { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the - * time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. * - * @param timeZoneCode The [tz database - * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the - * user. For example, **Europe/Amsterdam**. + * @param timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. * @return the current {@code CompanyUser} instance, allowing for method chaining */ public CompanyUser timeZoneCode(String timeZoneCode) { @@ -435,12 +414,8 @@ public CompanyUser timeZoneCode(String timeZoneCode) { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the - * time zone of the user. For example, **Europe/Amsterdam**. - * - * @return timeZoneCode The [tz database - * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the - * user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * @return timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -449,12 +424,9 @@ public String getTimeZoneCode() { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the - * time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. * - * @param timeZoneCode The [tz database - * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the - * user. For example, **Europe/Amsterdam**. + * @param timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -475,7 +447,6 @@ public CompanyUser username(String username) { /** * The username for this user. - * * @return username The username for this user. */ @JsonProperty(JSON_PROPERTY_USERNAME) @@ -495,7 +466,9 @@ public void setUsername(String username) { this.username = username; } - /** Return true if this CompanyUser object is equal to o. */ + /** + * Return true if this CompanyUser object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -505,33 +478,22 @@ public boolean equals(Object o) { return false; } CompanyUser companyUser = (CompanyUser) o; - return Objects.equals(this.links, companyUser.links) - && Objects.equals(this.accountGroups, companyUser.accountGroups) - && Objects.equals(this.active, companyUser.active) - && Objects.equals(this.apps, companyUser.apps) - && Objects.equals(this.associatedMerchantAccounts, companyUser.associatedMerchantAccounts) - && Objects.equals(this.email, companyUser.email) - && Objects.equals(this.id, companyUser.id) - && Objects.equals(this.name, companyUser.name) - && Objects.equals(this.roles, companyUser.roles) - && Objects.equals(this.timeZoneCode, companyUser.timeZoneCode) - && Objects.equals(this.username, companyUser.username); + return Objects.equals(this.links, companyUser.links) && + Objects.equals(this.accountGroups, companyUser.accountGroups) && + Objects.equals(this.active, companyUser.active) && + Objects.equals(this.apps, companyUser.apps) && + Objects.equals(this.associatedMerchantAccounts, companyUser.associatedMerchantAccounts) && + Objects.equals(this.email, companyUser.email) && + Objects.equals(this.id, companyUser.id) && + Objects.equals(this.name, companyUser.name) && + Objects.equals(this.roles, companyUser.roles) && + Objects.equals(this.timeZoneCode, companyUser.timeZoneCode) && + Objects.equals(this.username, companyUser.username); } @Override public int hashCode() { - return Objects.hash( - links, - accountGroups, - active, - apps, - associatedMerchantAccounts, - email, - id, - name, - roles, - timeZoneCode, - username); + return Objects.hash(links, accountGroups, active, apps, associatedMerchantAccounts, email, id, name, roles, timeZoneCode, username); } @Override @@ -542,9 +504,7 @@ public String toString() { sb.append(" accountGroups: ").append(toIndentedString(accountGroups)).append("\n"); sb.append(" active: ").append(toIndentedString(active)).append("\n"); sb.append(" apps: ").append(toIndentedString(apps)).append("\n"); - sb.append(" associatedMerchantAccounts: ") - .append(toIndentedString(associatedMerchantAccounts)) - .append("\n"); + sb.append(" associatedMerchantAccounts: ").append(toIndentedString(associatedMerchantAccounts)).append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); @@ -556,7 +516,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -565,7 +526,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CompanyUser given an JSON string * * @param jsonString JSON string @@ -575,12 +536,11 @@ private String toIndentedString(Object o) { public static CompanyUser fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CompanyUser.class); } - - /** - * Convert an instance of CompanyUser to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CompanyUser to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Connectivity.java b/src/main/java/com/adyen/model/management/Connectivity.java index cc71800e0..90e060fb6 100644 --- a/src/main/java/com/adyen/model/management/Connectivity.java +++ b/src/main/java/com/adyen/model/management/Connectivity.java @@ -2,39 +2,43 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.EventUrl; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** Connectivity */ +/** + * Connectivity + */ @JsonPropertyOrder({ Connectivity.JSON_PROPERTY_SIMCARD_STATUS, Connectivity.JSON_PROPERTY_TERMINAL_I_P_ADDRESS_U_R_L }) + public class Connectivity { /** - * Indicates the status of the SIM card in the payment terminal. Can be updated and received only - * at terminal level, and only for models that support cellular connectivity. Possible values: * - * **ACTIVATED**: the SIM card is activated. Cellular connectivity may still need to be enabled on - * the terminal itself, in the **Network** settings. * **INVENTORY**: the SIM card is not - * activated. The terminal can't use cellular connectivity. + * Indicates the status of the SIM card in the payment terminal. Can be updated and received only at terminal level, and only for models that support cellular connectivity. Possible values: * **ACTIVATED**: the SIM card is activated. Cellular connectivity may still need to be enabled on the terminal itself, in the **Network** settings. * **INVENTORY**: the SIM card is not activated. The terminal can't use cellular connectivity. */ public enum SimcardStatusEnum { + ACTIVATED(String.valueOf("ACTIVATED")), INVENTORY(String.valueOf("INVENTORY")); @@ -44,7 +48,7 @@ public enum SimcardStatusEnum { private String value; SimcardStatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -65,11 +69,7 @@ public static SimcardStatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "SimcardStatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(SimcardStatusEnum.values())); + LOG.warning("SimcardStatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(SimcardStatusEnum.values())); return null; } } @@ -80,21 +80,13 @@ public static SimcardStatusEnum fromValue(String value) { public static final String JSON_PROPERTY_TERMINAL_I_P_ADDRESS_U_R_L = "terminalIPAddressURL"; private EventUrl terminalIPAddressURL; - public Connectivity() {} + public Connectivity() { + } /** - * Indicates the status of the SIM card in the payment terminal. Can be updated and received only - * at terminal level, and only for models that support cellular connectivity. Possible values: * - * **ACTIVATED**: the SIM card is activated. Cellular connectivity may still need to be enabled on - * the terminal itself, in the **Network** settings. * **INVENTORY**: the SIM card is not - * activated. The terminal can't use cellular connectivity. + * Indicates the status of the SIM card in the payment terminal. Can be updated and received only at terminal level, and only for models that support cellular connectivity. Possible values: * **ACTIVATED**: the SIM card is activated. Cellular connectivity may still need to be enabled on the terminal itself, in the **Network** settings. * **INVENTORY**: the SIM card is not activated. The terminal can't use cellular connectivity. * - * @param simcardStatus Indicates the status of the SIM card in the payment terminal. Can be - * updated and received only at terminal level, and only for models that support cellular - * connectivity. Possible values: * **ACTIVATED**: the SIM card is activated. Cellular - * connectivity may still need to be enabled on the terminal itself, in the **Network** - * settings. * **INVENTORY**: the SIM card is not activated. The terminal can't use - * cellular connectivity. + * @param simcardStatus Indicates the status of the SIM card in the payment terminal. Can be updated and received only at terminal level, and only for models that support cellular connectivity. Possible values: * **ACTIVATED**: the SIM card is activated. Cellular connectivity may still need to be enabled on the terminal itself, in the **Network** settings. * **INVENTORY**: the SIM card is not activated. The terminal can't use cellular connectivity. * @return the current {@code Connectivity} instance, allowing for method chaining */ public Connectivity simcardStatus(SimcardStatusEnum simcardStatus) { @@ -103,18 +95,8 @@ public Connectivity simcardStatus(SimcardStatusEnum simcardStatus) { } /** - * Indicates the status of the SIM card in the payment terminal. Can be updated and received only - * at terminal level, and only for models that support cellular connectivity. Possible values: * - * **ACTIVATED**: the SIM card is activated. Cellular connectivity may still need to be enabled on - * the terminal itself, in the **Network** settings. * **INVENTORY**: the SIM card is not - * activated. The terminal can't use cellular connectivity. - * - * @return simcardStatus Indicates the status of the SIM card in the payment terminal. Can be - * updated and received only at terminal level, and only for models that support cellular - * connectivity. Possible values: * **ACTIVATED**: the SIM card is activated. Cellular - * connectivity may still need to be enabled on the terminal itself, in the **Network** - * settings. * **INVENTORY**: the SIM card is not activated. The terminal can't use - * cellular connectivity. + * Indicates the status of the SIM card in the payment terminal. Can be updated and received only at terminal level, and only for models that support cellular connectivity. Possible values: * **ACTIVATED**: the SIM card is activated. Cellular connectivity may still need to be enabled on the terminal itself, in the **Network** settings. * **INVENTORY**: the SIM card is not activated. The terminal can't use cellular connectivity. + * @return simcardStatus Indicates the status of the SIM card in the payment terminal. Can be updated and received only at terminal level, and only for models that support cellular connectivity. Possible values: * **ACTIVATED**: the SIM card is activated. Cellular connectivity may still need to be enabled on the terminal itself, in the **Network** settings. * **INVENTORY**: the SIM card is not activated. The terminal can't use cellular connectivity. */ @JsonProperty(JSON_PROPERTY_SIMCARD_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,18 +105,9 @@ public SimcardStatusEnum getSimcardStatus() { } /** - * Indicates the status of the SIM card in the payment terminal. Can be updated and received only - * at terminal level, and only for models that support cellular connectivity. Possible values: * - * **ACTIVATED**: the SIM card is activated. Cellular connectivity may still need to be enabled on - * the terminal itself, in the **Network** settings. * **INVENTORY**: the SIM card is not - * activated. The terminal can't use cellular connectivity. + * Indicates the status of the SIM card in the payment terminal. Can be updated and received only at terminal level, and only for models that support cellular connectivity. Possible values: * **ACTIVATED**: the SIM card is activated. Cellular connectivity may still need to be enabled on the terminal itself, in the **Network** settings. * **INVENTORY**: the SIM card is not activated. The terminal can't use cellular connectivity. * - * @param simcardStatus Indicates the status of the SIM card in the payment terminal. Can be - * updated and received only at terminal level, and only for models that support cellular - * connectivity. Possible values: * **ACTIVATED**: the SIM card is activated. Cellular - * connectivity may still need to be enabled on the terminal itself, in the **Network** - * settings. * **INVENTORY**: the SIM card is not activated. The terminal can't use - * cellular connectivity. + * @param simcardStatus Indicates the status of the SIM card in the payment terminal. Can be updated and received only at terminal level, and only for models that support cellular connectivity. Possible values: * **ACTIVATED**: the SIM card is activated. Cellular connectivity may still need to be enabled on the terminal itself, in the **Network** settings. * **INVENTORY**: the SIM card is not activated. The terminal can't use cellular connectivity. */ @JsonProperty(JSON_PROPERTY_SIMCARD_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,7 +118,7 @@ public void setSimcardStatus(SimcardStatusEnum simcardStatus) { /** * terminalIPAddressURL * - * @param terminalIPAddressURL + * @param terminalIPAddressURL * @return the current {@code Connectivity} instance, allowing for method chaining */ public Connectivity terminalIPAddressURL(EventUrl terminalIPAddressURL) { @@ -155,8 +128,7 @@ public Connectivity terminalIPAddressURL(EventUrl terminalIPAddressURL) { /** * Get terminalIPAddressURL - * - * @return terminalIPAddressURL + * @return terminalIPAddressURL */ @JsonProperty(JSON_PROPERTY_TERMINAL_I_P_ADDRESS_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,7 +139,7 @@ public EventUrl getTerminalIPAddressURL() { /** * terminalIPAddressURL * - * @param terminalIPAddressURL + * @param terminalIPAddressURL */ @JsonProperty(JSON_PROPERTY_TERMINAL_I_P_ADDRESS_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -175,7 +147,9 @@ public void setTerminalIPAddressURL(EventUrl terminalIPAddressURL) { this.terminalIPAddressURL = terminalIPAddressURL; } - /** Return true if this Connectivity object is equal to o. */ + /** + * Return true if this Connectivity object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -185,8 +159,8 @@ public boolean equals(Object o) { return false; } Connectivity connectivity = (Connectivity) o; - return Objects.equals(this.simcardStatus, connectivity.simcardStatus) - && Objects.equals(this.terminalIPAddressURL, connectivity.terminalIPAddressURL); + return Objects.equals(this.simcardStatus, connectivity.simcardStatus) && + Objects.equals(this.terminalIPAddressURL, connectivity.terminalIPAddressURL); } @Override @@ -199,15 +173,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Connectivity {\n"); sb.append(" simcardStatus: ").append(toIndentedString(simcardStatus)).append("\n"); - sb.append(" terminalIPAddressURL: ") - .append(toIndentedString(terminalIPAddressURL)) - .append("\n"); + sb.append(" terminalIPAddressURL: ").append(toIndentedString(terminalIPAddressURL)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -216,7 +189,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Connectivity given an JSON string * * @param jsonString JSON string @@ -226,12 +199,11 @@ private String toIndentedString(Object o) { public static Connectivity fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Connectivity.class); } - - /** - * Convert an instance of Connectivity to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Connectivity to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Contact.java b/src/main/java/com/adyen/model/management/Contact.java index 31c3d3c44..11380af9d 100644 --- a/src/main/java/com/adyen/model/management/Contact.java +++ b/src/main/java/com/adyen/model/management/Contact.java @@ -2,22 +2,31 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Contact */ + +/** + * Contact + */ @JsonPropertyOrder({ Contact.JSON_PROPERTY_EMAIL, Contact.JSON_PROPERTY_FIRST_NAME, @@ -25,6 +34,7 @@ Contact.JSON_PROPERTY_LAST_NAME, Contact.JSON_PROPERTY_PHONE_NUMBER }) + public class Contact { public static final String JSON_PROPERTY_EMAIL = "email"; private String email; @@ -41,7 +51,8 @@ public class Contact { public static final String JSON_PROPERTY_PHONE_NUMBER = "phoneNumber"; private String phoneNumber; - public Contact() {} + public Contact() { + } /** * The individual's email address. @@ -56,7 +67,6 @@ public Contact email(String email) { /** * The individual's email address. - * * @return email The individual's email address. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -89,7 +99,6 @@ public Contact firstName(String firstName) { /** * The individual's first name. - * * @return firstName The individual's first name. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @@ -122,7 +131,6 @@ public Contact infix(String infix) { /** * The infix in the individual's name, if any. - * * @return infix The infix in the individual's name, if any. */ @JsonProperty(JSON_PROPERTY_INFIX) @@ -155,7 +163,6 @@ public Contact lastName(String lastName) { /** * The individual's last name. - * * @return lastName The individual's last name. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @@ -176,11 +183,9 @@ public void setLastName(String lastName) { } /** - * The individual's phone number, specified as 10-14 digits with an optional `+` - * prefix. + * The individual's phone number, specified as 10-14 digits with an optional `+` prefix. * - * @param phoneNumber The individual's phone number, specified as 10-14 digits with an - * optional `+` prefix. + * @param phoneNumber The individual's phone number, specified as 10-14 digits with an optional `+` prefix. * @return the current {@code Contact} instance, allowing for method chaining */ public Contact phoneNumber(String phoneNumber) { @@ -189,11 +194,8 @@ public Contact phoneNumber(String phoneNumber) { } /** - * The individual's phone number, specified as 10-14 digits with an optional `+` - * prefix. - * - * @return phoneNumber The individual's phone number, specified as 10-14 digits with an - * optional `+` prefix. + * The individual's phone number, specified as 10-14 digits with an optional `+` prefix. + * @return phoneNumber The individual's phone number, specified as 10-14 digits with an optional `+` prefix. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -202,11 +204,9 @@ public String getPhoneNumber() { } /** - * The individual's phone number, specified as 10-14 digits with an optional `+` - * prefix. + * The individual's phone number, specified as 10-14 digits with an optional `+` prefix. * - * @param phoneNumber The individual's phone number, specified as 10-14 digits with an - * optional `+` prefix. + * @param phoneNumber The individual's phone number, specified as 10-14 digits with an optional `+` prefix. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,7 +214,9 @@ public void setPhoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; } - /** Return true if this Contact object is equal to o. */ + /** + * Return true if this Contact object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -224,11 +226,11 @@ public boolean equals(Object o) { return false; } Contact contact = (Contact) o; - return Objects.equals(this.email, contact.email) - && Objects.equals(this.firstName, contact.firstName) - && Objects.equals(this.infix, contact.infix) - && Objects.equals(this.lastName, contact.lastName) - && Objects.equals(this.phoneNumber, contact.phoneNumber); + return Objects.equals(this.email, contact.email) && + Objects.equals(this.firstName, contact.firstName) && + Objects.equals(this.infix, contact.infix) && + Objects.equals(this.lastName, contact.lastName) && + Objects.equals(this.phoneNumber, contact.phoneNumber); } @Override @@ -250,7 +252,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -259,7 +262,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Contact given an JSON string * * @param jsonString JSON string @@ -269,12 +272,11 @@ private String toIndentedString(Object o) { public static Contact fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Contact.class); } - - /** - * Convert an instance of Contact to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Contact to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CreateAllowedOriginRequest.java b/src/main/java/com/adyen/model/management/CreateAllowedOriginRequest.java index 68063d5da..e1d8b3ecf 100644 --- a/src/main/java/com/adyen/model/management/CreateAllowedOriginRequest.java +++ b/src/main/java/com/adyen/model/management/CreateAllowedOriginRequest.java @@ -2,27 +2,38 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.Links; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** CreateAllowedOriginRequest */ + +/** + * CreateAllowedOriginRequest + */ @JsonPropertyOrder({ CreateAllowedOriginRequest.JSON_PROPERTY_LINKS, CreateAllowedOriginRequest.JSON_PROPERTY_DOMAIN, CreateAllowedOriginRequest.JSON_PROPERTY_ID }) + public class CreateAllowedOriginRequest { public static final String JSON_PROPERTY_LINKS = "_links"; private Links links; @@ -33,12 +44,13 @@ public class CreateAllowedOriginRequest { public static final String JSON_PROPERTY_ID = "id"; private String id; - public CreateAllowedOriginRequest() {} + public CreateAllowedOriginRequest() { + } /** * links * - * @param links + * @param links * @return the current {@code CreateAllowedOriginRequest} instance, allowing for method chaining */ public CreateAllowedOriginRequest links(Links links) { @@ -48,8 +60,7 @@ public CreateAllowedOriginRequest links(Links links) { /** * Get links - * - * @return links + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,7 +71,7 @@ public Links getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -81,7 +92,6 @@ public CreateAllowedOriginRequest domain(String domain) { /** * Domain of the allowed origin. - * * @return domain Domain of the allowed origin. */ @JsonProperty(JSON_PROPERTY_DOMAIN) @@ -114,7 +124,6 @@ public CreateAllowedOriginRequest id(String id) { /** * Unique identifier of the allowed origin. - * * @return id Unique identifier of the allowed origin. */ @JsonProperty(JSON_PROPERTY_ID) @@ -134,7 +143,9 @@ public void setId(String id) { this.id = id; } - /** Return true if this CreateAllowedOriginRequest object is equal to o. */ + /** + * Return true if this CreateAllowedOriginRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,9 +155,9 @@ public boolean equals(Object o) { return false; } CreateAllowedOriginRequest createAllowedOriginRequest = (CreateAllowedOriginRequest) o; - return Objects.equals(this.links, createAllowedOriginRequest.links) - && Objects.equals(this.domain, createAllowedOriginRequest.domain) - && Objects.equals(this.id, createAllowedOriginRequest.id); + return Objects.equals(this.links, createAllowedOriginRequest.links) && + Objects.equals(this.domain, createAllowedOriginRequest.domain) && + Objects.equals(this.id, createAllowedOriginRequest.id); } @Override @@ -166,7 +177,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,24 +187,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CreateAllowedOriginRequest given an JSON string * * @param jsonString JSON string * @return An instance of CreateAllowedOriginRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreateAllowedOriginRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to CreateAllowedOriginRequest */ - public static CreateAllowedOriginRequest fromJson(String jsonString) - throws JsonProcessingException { + public static CreateAllowedOriginRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateAllowedOriginRequest.class); } - - /** - * Convert an instance of CreateAllowedOriginRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CreateAllowedOriginRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CreateApiCredentialResponse.java b/src/main/java/com/adyen/model/management/CreateApiCredentialResponse.java index 4983dbbcb..dfb2f5802 100644 --- a/src/main/java/com/adyen/model/management/CreateApiCredentialResponse.java +++ b/src/main/java/com/adyen/model/management/CreateApiCredentialResponse.java @@ -2,24 +2,35 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.AllowedOrigin; +import com.adyen.model.management.ApiCredentialLinks; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** CreateApiCredentialResponse */ + +/** + * CreateApiCredentialResponse + */ @JsonPropertyOrder({ CreateApiCredentialResponse.JSON_PROPERTY_LINKS, CreateApiCredentialResponse.JSON_PROPERTY_ACTIVE, @@ -33,6 +44,7 @@ CreateApiCredentialResponse.JSON_PROPERTY_ROLES, CreateApiCredentialResponse.JSON_PROPERTY_USERNAME }) + public class CreateApiCredentialResponse { public static final String JSON_PROPERTY_LINKS = "_links"; private ApiCredentialLinks links; @@ -67,12 +79,13 @@ public class CreateApiCredentialResponse { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public CreateApiCredentialResponse() {} + public CreateApiCredentialResponse() { + } /** * links * - * @param links + * @param links * @return the current {@code CreateApiCredentialResponse} instance, allowing for method chaining */ public CreateApiCredentialResponse links(ApiCredentialLinks links) { @@ -82,8 +95,7 @@ public CreateApiCredentialResponse links(ApiCredentialLinks links) { /** * Get links - * - * @return links + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,7 +106,7 @@ public ApiCredentialLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -103,11 +115,9 @@ public void setLinks(ApiCredentialLinks links) { } /** - * Indicates if the API credential is enabled. Must be set to **true** to use the credential in - * your integration. + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. * - * @param active Indicates if the API credential is enabled. Must be set to **true** to use the - * credential in your integration. + * @param active Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. * @return the current {@code CreateApiCredentialResponse} instance, allowing for method chaining */ public CreateApiCredentialResponse active(Boolean active) { @@ -116,11 +126,8 @@ public CreateApiCredentialResponse active(Boolean active) { } /** - * Indicates if the API credential is enabled. Must be set to **true** to use the credential in - * your integration. - * - * @return active Indicates if the API credential is enabled. Must be set to **true** to use the - * credential in your integration. + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + * @return active Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,11 +136,9 @@ public Boolean getActive() { } /** - * Indicates if the API credential is enabled. Must be set to **true** to use the credential in - * your integration. + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. * - * @param active Indicates if the API credential is enabled. Must be set to **true** to use the - * credential in your integration. + * @param active Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,13 +147,9 @@ public void setActive(Boolean active) { } /** - * List of IP addresses from which your client can make requests. If the list is empty, we allow - * requests from any IP. If the list is not empty and we get a request from an IP which is not on - * the list, you get a security error. + * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. * - * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the - * list is empty, we allow requests from any IP. If the list is not empty and we get a request - * from an IP which is not on the list, you get a security error. + * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. * @return the current {@code CreateApiCredentialResponse} instance, allowing for method chaining */ public CreateApiCredentialResponse allowedIpAddresses(List allowedIpAddresses) { @@ -165,13 +166,8 @@ public CreateApiCredentialResponse addAllowedIpAddressesItem(String allowedIpAdd } /** - * List of IP addresses from which your client can make requests. If the list is empty, we allow - * requests from any IP. If the list is not empty and we get a request from an IP which is not on - * the list, you get a security error. - * - * @return allowedIpAddresses List of IP addresses from which your client can make requests. If - * the list is empty, we allow requests from any IP. If the list is not empty and we get a - * request from an IP which is not on the list, you get a security error. + * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + * @return allowedIpAddresses List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. */ @JsonProperty(JSON_PROPERTY_ALLOWED_IP_ADDRESSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -180,13 +176,9 @@ public List getAllowedIpAddresses() { } /** - * List of IP addresses from which your client can make requests. If the list is empty, we allow - * requests from any IP. If the list is not empty and we get a request from an IP which is not on - * the list, you get a security error. + * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. * - * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the - * list is empty, we allow requests from any IP. If the list is not empty and we get a request - * from an IP which is not on the list, you get a security error. + * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. */ @JsonProperty(JSON_PROPERTY_ALLOWED_IP_ADDRESSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,13 +187,9 @@ public void setAllowedIpAddresses(List allowedIpAddresses) { } /** - * List containing the [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * linked to the API credential. + * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. * - * @param allowedOrigins List containing the [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * linked to the API credential. + * @param allowedOrigins List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. * @return the current {@code CreateApiCredentialResponse} instance, allowing for method chaining */ public CreateApiCredentialResponse allowedOrigins(List allowedOrigins) { @@ -218,13 +206,8 @@ public CreateApiCredentialResponse addAllowedOriginsItem(AllowedOrigin allowedOr } /** - * List containing the [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * linked to the API credential. - * - * @return allowedOrigins List containing the [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * linked to the API credential. + * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + * @return allowedOrigins List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -233,13 +216,9 @@ public List getAllowedOrigins() { } /** - * List containing the [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * linked to the API credential. + * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. * - * @param allowedOrigins List containing the [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * linked to the API credential. + * @param allowedOrigins List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -260,7 +239,6 @@ public CreateApiCredentialResponse apiKey(String apiKey) { /** * The API key for the API credential that was created. - * * @return apiKey The API key for the API credential that was created. */ @JsonProperty(JSON_PROPERTY_API_KEY) @@ -281,13 +259,9 @@ public void setApiKey(String apiKey) { } /** - * Public key used for [client-side - * authentication](https://docs.adyen.com/development-resources/client-side-authentication). The - * client key is required for Drop-in and Components integrations. + * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. * - * @param clientKey Public key used for [client-side - * authentication](https://docs.adyen.com/development-resources/client-side-authentication). - * The client key is required for Drop-in and Components integrations. + * @param clientKey Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. * @return the current {@code CreateApiCredentialResponse} instance, allowing for method chaining */ public CreateApiCredentialResponse clientKey(String clientKey) { @@ -296,13 +270,8 @@ public CreateApiCredentialResponse clientKey(String clientKey) { } /** - * Public key used for [client-side - * authentication](https://docs.adyen.com/development-resources/client-side-authentication). The - * client key is required for Drop-in and Components integrations. - * - * @return clientKey Public key used for [client-side - * authentication](https://docs.adyen.com/development-resources/client-side-authentication). - * The client key is required for Drop-in and Components integrations. + * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + * @return clientKey Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. */ @JsonProperty(JSON_PROPERTY_CLIENT_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -311,13 +280,9 @@ public String getClientKey() { } /** - * Public key used for [client-side - * authentication](https://docs.adyen.com/development-resources/client-side-authentication). The - * client key is required for Drop-in and Components integrations. + * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. * - * @param clientKey Public key used for [client-side - * authentication](https://docs.adyen.com/development-resources/client-side-authentication). - * The client key is required for Drop-in and Components integrations. + * @param clientKey Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. */ @JsonProperty(JSON_PROPERTY_CLIENT_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -338,7 +303,6 @@ public CreateApiCredentialResponse description(String description) { /** * Description of the API credential. - * * @return description Description of the API credential. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -371,7 +335,6 @@ public CreateApiCredentialResponse id(String id) { /** * Unique identifier of the API credential. - * * @return id Unique identifier of the API credential. */ @JsonProperty(JSON_PROPERTY_ID) @@ -404,7 +367,6 @@ public CreateApiCredentialResponse password(String password) { /** * The password for the API credential that was created. - * * @return password The password for the API credential that was created. */ @JsonProperty(JSON_PROPERTY_PASSWORD) @@ -425,12 +387,9 @@ public void setPassword(String password) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the - * API credential. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. * - * @param roles List of - * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API - * credential. + * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. * @return the current {@code CreateApiCredentialResponse} instance, allowing for method chaining */ public CreateApiCredentialResponse roles(List roles) { @@ -447,12 +406,8 @@ public CreateApiCredentialResponse addRolesItem(String rolesItem) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the - * API credential. - * - * @return roles List of - * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API - * credential. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + * @return roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -461,12 +416,9 @@ public List getRoles() { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the - * API credential. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. * - * @param roles List of - * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API - * credential. + * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -475,12 +427,9 @@ public void setRoles(List roles) { } /** - * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), - * for example **ws@Company.TestCompany**. + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. * - * @param username The name of the [API - * credential](https://docs.adyen.com/development-resources/api-credentials), for example - * **ws@Company.TestCompany**. + * @param username The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. * @return the current {@code CreateApiCredentialResponse} instance, allowing for method chaining */ public CreateApiCredentialResponse username(String username) { @@ -489,12 +438,8 @@ public CreateApiCredentialResponse username(String username) { } /** - * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), - * for example **ws@Company.TestCompany**. - * - * @return username The name of the [API - * credential](https://docs.adyen.com/development-resources/api-credentials), for example - * **ws@Company.TestCompany**. + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + * @return username The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. */ @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -503,12 +448,9 @@ public String getUsername() { } /** - * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), - * for example **ws@Company.TestCompany**. + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. * - * @param username The name of the [API - * credential](https://docs.adyen.com/development-resources/api-credentials), for example - * **ws@Company.TestCompany**. + * @param username The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. */ @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -516,7 +458,9 @@ public void setUsername(String username) { this.username = username; } - /** Return true if this CreateApiCredentialResponse object is equal to o. */ + /** + * Return true if this CreateApiCredentialResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -526,33 +470,22 @@ public boolean equals(Object o) { return false; } CreateApiCredentialResponse createApiCredentialResponse = (CreateApiCredentialResponse) o; - return Objects.equals(this.links, createApiCredentialResponse.links) - && Objects.equals(this.active, createApiCredentialResponse.active) - && Objects.equals(this.allowedIpAddresses, createApiCredentialResponse.allowedIpAddresses) - && Objects.equals(this.allowedOrigins, createApiCredentialResponse.allowedOrigins) - && Objects.equals(this.apiKey, createApiCredentialResponse.apiKey) - && Objects.equals(this.clientKey, createApiCredentialResponse.clientKey) - && Objects.equals(this.description, createApiCredentialResponse.description) - && Objects.equals(this.id, createApiCredentialResponse.id) - && Objects.equals(this.password, createApiCredentialResponse.password) - && Objects.equals(this.roles, createApiCredentialResponse.roles) - && Objects.equals(this.username, createApiCredentialResponse.username); + return Objects.equals(this.links, createApiCredentialResponse.links) && + Objects.equals(this.active, createApiCredentialResponse.active) && + Objects.equals(this.allowedIpAddresses, createApiCredentialResponse.allowedIpAddresses) && + Objects.equals(this.allowedOrigins, createApiCredentialResponse.allowedOrigins) && + Objects.equals(this.apiKey, createApiCredentialResponse.apiKey) && + Objects.equals(this.clientKey, createApiCredentialResponse.clientKey) && + Objects.equals(this.description, createApiCredentialResponse.description) && + Objects.equals(this.id, createApiCredentialResponse.id) && + Objects.equals(this.password, createApiCredentialResponse.password) && + Objects.equals(this.roles, createApiCredentialResponse.roles) && + Objects.equals(this.username, createApiCredentialResponse.username); } @Override public int hashCode() { - return Objects.hash( - links, - active, - allowedIpAddresses, - allowedOrigins, - apiKey, - clientKey, - description, - id, - password, - roles, - username); + return Objects.hash(links, active, allowedIpAddresses, allowedOrigins, apiKey, clientKey, description, id, password, roles, username); } @Override @@ -575,7 +508,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -584,24 +518,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CreateApiCredentialResponse given an JSON string * * @param jsonString JSON string * @return An instance of CreateApiCredentialResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreateApiCredentialResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to CreateApiCredentialResponse */ - public static CreateApiCredentialResponse fromJson(String jsonString) - throws JsonProcessingException { + public static CreateApiCredentialResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateApiCredentialResponse.class); } - - /** - * Convert an instance of CreateApiCredentialResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CreateApiCredentialResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CreateCompanyApiCredentialRequest.java b/src/main/java/com/adyen/model/management/CreateCompanyApiCredentialRequest.java index 7e5c031c3..ccd4628a5 100644 --- a/src/main/java/com/adyen/model/management/CreateCompanyApiCredentialRequest.java +++ b/src/main/java/com/adyen/model/management/CreateCompanyApiCredentialRequest.java @@ -2,36 +2,45 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CreateCompanyApiCredentialRequest */ +/** + * CreateCompanyApiCredentialRequest + */ @JsonPropertyOrder({ CreateCompanyApiCredentialRequest.JSON_PROPERTY_ALLOWED_ORIGINS, CreateCompanyApiCredentialRequest.JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS, CreateCompanyApiCredentialRequest.JSON_PROPERTY_DESCRIPTION, CreateCompanyApiCredentialRequest.JSON_PROPERTY_ROLES }) + public class CreateCompanyApiCredentialRequest { public static final String JSON_PROPERTY_ALLOWED_ORIGINS = "allowedOrigins"; private List allowedOrigins; - public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS = - "associatedMerchantAccounts"; + public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS = "associatedMerchantAccounts"; private List associatedMerchantAccounts; public static final String JSON_PROPERTY_DESCRIPTION = "description"; @@ -40,18 +49,14 @@ public class CreateCompanyApiCredentialRequest { public static final String JSON_PROPERTY_ROLES = "roles"; private List roles; - public CreateCompanyApiCredentialRequest() {} + public CreateCompanyApiCredentialRequest() { + } /** - * List of [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * for the new API credential. + * List of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential. * - * @param allowedOrigins List of [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * for the new API credential. - * @return the current {@code CreateCompanyApiCredentialRequest} instance, allowing for method - * chaining + * @param allowedOrigins List of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential. + * @return the current {@code CreateCompanyApiCredentialRequest} instance, allowing for method chaining */ public CreateCompanyApiCredentialRequest allowedOrigins(List allowedOrigins) { this.allowedOrigins = allowedOrigins; @@ -67,13 +72,8 @@ public CreateCompanyApiCredentialRequest addAllowedOriginsItem(String allowedOri } /** - * List of [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * for the new API credential. - * - * @return allowedOrigins List of [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * for the new API credential. + * List of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential. + * @return allowedOrigins List of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -82,13 +82,9 @@ public List getAllowedOrigins() { } /** - * List of [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * for the new API credential. + * List of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential. * - * @param allowedOrigins List of [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * for the new API credential. + * @param allowedOrigins List of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,19 +95,15 @@ public void setAllowedOrigins(List allowedOrigins) { /** * List of merchant accounts that the API credential has access to. * - * @param associatedMerchantAccounts List of merchant accounts that the API credential has access - * to. - * @return the current {@code CreateCompanyApiCredentialRequest} instance, allowing for method - * chaining + * @param associatedMerchantAccounts List of merchant accounts that the API credential has access to. + * @return the current {@code CreateCompanyApiCredentialRequest} instance, allowing for method chaining */ - public CreateCompanyApiCredentialRequest associatedMerchantAccounts( - List associatedMerchantAccounts) { + public CreateCompanyApiCredentialRequest associatedMerchantAccounts(List associatedMerchantAccounts) { this.associatedMerchantAccounts = associatedMerchantAccounts; return this; } - public CreateCompanyApiCredentialRequest addAssociatedMerchantAccountsItem( - String associatedMerchantAccountsItem) { + public CreateCompanyApiCredentialRequest addAssociatedMerchantAccountsItem(String associatedMerchantAccountsItem) { if (this.associatedMerchantAccounts == null) { this.associatedMerchantAccounts = new ArrayList<>(); } @@ -121,9 +113,7 @@ public CreateCompanyApiCredentialRequest addAssociatedMerchantAccountsItem( /** * List of merchant accounts that the API credential has access to. - * - * @return associatedMerchantAccounts List of merchant accounts that the API credential has access - * to. + * @return associatedMerchantAccounts List of merchant accounts that the API credential has access to. */ @JsonProperty(JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -134,8 +124,7 @@ public List getAssociatedMerchantAccounts() { /** * List of merchant accounts that the API credential has access to. * - * @param associatedMerchantAccounts List of merchant accounts that the API credential has access - * to. + * @param associatedMerchantAccounts List of merchant accounts that the API credential has access to. */ @JsonProperty(JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,8 +136,7 @@ public void setAssociatedMerchantAccounts(List associatedMerchantAccount * Description of the API credential. * * @param description Description of the API credential. - * @return the current {@code CreateCompanyApiCredentialRequest} instance, allowing for method - * chaining + * @return the current {@code CreateCompanyApiCredentialRequest} instance, allowing for method chaining */ public CreateCompanyApiCredentialRequest description(String description) { this.description = description; @@ -157,7 +145,6 @@ public CreateCompanyApiCredentialRequest description(String description) { /** * Description of the API credential. - * * @return description Description of the API credential. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -178,16 +165,10 @@ public void setDescription(String description) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the - * API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned - * to other API credentials. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. * - * @param roles List of - * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API - * credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned - * to other API credentials. - * @return the current {@code CreateCompanyApiCredentialRequest} instance, allowing for method - * chaining + * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. + * @return the current {@code CreateCompanyApiCredentialRequest} instance, allowing for method chaining */ public CreateCompanyApiCredentialRequest roles(List roles) { this.roles = roles; @@ -203,14 +184,8 @@ public CreateCompanyApiCredentialRequest addRolesItem(String rolesItem) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the - * API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned - * to other API credentials. - * - * @return roles List of - * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API - * credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned - * to other API credentials. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. + * @return roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,14 +194,9 @@ public List getRoles() { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the - * API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned - * to other API credentials. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. * - * @param roles List of - * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API - * credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned - * to other API credentials. + * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -234,7 +204,9 @@ public void setRoles(List roles) { this.roles = roles; } - /** Return true if this CreateCompanyApiCredentialRequest object is equal to o. */ + /** + * Return true if this CreateCompanyApiCredentialRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -243,14 +215,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CreateCompanyApiCredentialRequest createCompanyApiCredentialRequest = - (CreateCompanyApiCredentialRequest) o; - return Objects.equals(this.allowedOrigins, createCompanyApiCredentialRequest.allowedOrigins) - && Objects.equals( - this.associatedMerchantAccounts, - createCompanyApiCredentialRequest.associatedMerchantAccounts) - && Objects.equals(this.description, createCompanyApiCredentialRequest.description) - && Objects.equals(this.roles, createCompanyApiCredentialRequest.roles); + CreateCompanyApiCredentialRequest createCompanyApiCredentialRequest = (CreateCompanyApiCredentialRequest) o; + return Objects.equals(this.allowedOrigins, createCompanyApiCredentialRequest.allowedOrigins) && + Objects.equals(this.associatedMerchantAccounts, createCompanyApiCredentialRequest.associatedMerchantAccounts) && + Objects.equals(this.description, createCompanyApiCredentialRequest.description) && + Objects.equals(this.roles, createCompanyApiCredentialRequest.roles); } @Override @@ -263,9 +232,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateCompanyApiCredentialRequest {\n"); sb.append(" allowedOrigins: ").append(toIndentedString(allowedOrigins)).append("\n"); - sb.append(" associatedMerchantAccounts: ") - .append(toIndentedString(associatedMerchantAccounts)) - .append("\n"); + sb.append(" associatedMerchantAccounts: ").append(toIndentedString(associatedMerchantAccounts)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" roles: ").append(toIndentedString(roles)).append("\n"); sb.append("}"); @@ -273,7 +240,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -282,24 +250,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CreateCompanyApiCredentialRequest given an JSON string * * @param jsonString JSON string * @return An instance of CreateCompanyApiCredentialRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreateCompanyApiCredentialRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to CreateCompanyApiCredentialRequest */ - public static CreateCompanyApiCredentialRequest fromJson(String jsonString) - throws JsonProcessingException { + public static CreateCompanyApiCredentialRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateCompanyApiCredentialRequest.class); } - - /** - * Convert an instance of CreateCompanyApiCredentialRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CreateCompanyApiCredentialRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CreateCompanyApiCredentialResponse.java b/src/main/java/com/adyen/model/management/CreateCompanyApiCredentialResponse.java index b726a313b..1d760e977 100644 --- a/src/main/java/com/adyen/model/management/CreateCompanyApiCredentialResponse.java +++ b/src/main/java/com/adyen/model/management/CreateCompanyApiCredentialResponse.java @@ -2,24 +2,35 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.AllowedOrigin; +import com.adyen.model.management.ApiCredentialLinks; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** CreateCompanyApiCredentialResponse */ + +/** + * CreateCompanyApiCredentialResponse + */ @JsonPropertyOrder({ CreateCompanyApiCredentialResponse.JSON_PROPERTY_LINKS, CreateCompanyApiCredentialResponse.JSON_PROPERTY_ACTIVE, @@ -34,6 +45,7 @@ CreateCompanyApiCredentialResponse.JSON_PROPERTY_ROLES, CreateCompanyApiCredentialResponse.JSON_PROPERTY_USERNAME }) + public class CreateCompanyApiCredentialResponse { public static final String JSON_PROPERTY_LINKS = "_links"; private ApiCredentialLinks links; @@ -50,8 +62,7 @@ public class CreateCompanyApiCredentialResponse { public static final String JSON_PROPERTY_API_KEY = "apiKey"; private String apiKey; - public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS = - "associatedMerchantAccounts"; + public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS = "associatedMerchantAccounts"; private List associatedMerchantAccounts; public static final String JSON_PROPERTY_CLIENT_KEY = "clientKey"; @@ -72,14 +83,14 @@ public class CreateCompanyApiCredentialResponse { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public CreateCompanyApiCredentialResponse() {} + public CreateCompanyApiCredentialResponse() { + } /** * links * - * @param links - * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method - * chaining + * @param links + * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method chaining */ public CreateCompanyApiCredentialResponse links(ApiCredentialLinks links) { this.links = links; @@ -88,8 +99,7 @@ public CreateCompanyApiCredentialResponse links(ApiCredentialLinks links) { /** * Get links - * - * @return links + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,7 +110,7 @@ public ApiCredentialLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -109,13 +119,10 @@ public void setLinks(ApiCredentialLinks links) { } /** - * Indicates if the API credential is enabled. Must be set to **true** to use the credential in - * your integration. + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. * - * @param active Indicates if the API credential is enabled. Must be set to **true** to use the - * credential in your integration. - * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method - * chaining + * @param active Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method chaining */ public CreateCompanyApiCredentialResponse active(Boolean active) { this.active = active; @@ -123,11 +130,8 @@ public CreateCompanyApiCredentialResponse active(Boolean active) { } /** - * Indicates if the API credential is enabled. Must be set to **true** to use the credential in - * your integration. - * - * @return active Indicates if the API credential is enabled. Must be set to **true** to use the - * credential in your integration. + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + * @return active Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,11 +140,9 @@ public Boolean getActive() { } /** - * Indicates if the API credential is enabled. Must be set to **true** to use the credential in - * your integration. + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. * - * @param active Indicates if the API credential is enabled. Must be set to **true** to use the - * credential in your integration. + * @param active Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -149,23 +151,17 @@ public void setActive(Boolean active) { } /** - * List of IP addresses from which your client can make requests. If the list is empty, we allow - * requests from any IP. If the list is not empty and we get a request from an IP which is not on - * the list, you get a security error. + * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. * - * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the - * list is empty, we allow requests from any IP. If the list is not empty and we get a request - * from an IP which is not on the list, you get a security error. - * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method - * chaining + * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method chaining */ public CreateCompanyApiCredentialResponse allowedIpAddresses(List allowedIpAddresses) { this.allowedIpAddresses = allowedIpAddresses; return this; } - public CreateCompanyApiCredentialResponse addAllowedIpAddressesItem( - String allowedIpAddressesItem) { + public CreateCompanyApiCredentialResponse addAllowedIpAddressesItem(String allowedIpAddressesItem) { if (this.allowedIpAddresses == null) { this.allowedIpAddresses = new ArrayList<>(); } @@ -174,13 +170,8 @@ public CreateCompanyApiCredentialResponse addAllowedIpAddressesItem( } /** - * List of IP addresses from which your client can make requests. If the list is empty, we allow - * requests from any IP. If the list is not empty and we get a request from an IP which is not on - * the list, you get a security error. - * - * @return allowedIpAddresses List of IP addresses from which your client can make requests. If - * the list is empty, we allow requests from any IP. If the list is not empty and we get a - * request from an IP which is not on the list, you get a security error. + * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + * @return allowedIpAddresses List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. */ @JsonProperty(JSON_PROPERTY_ALLOWED_IP_ADDRESSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,13 +180,9 @@ public List getAllowedIpAddresses() { } /** - * List of IP addresses from which your client can make requests. If the list is empty, we allow - * requests from any IP. If the list is not empty and we get a request from an IP which is not on - * the list, you get a security error. + * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. * - * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the - * list is empty, we allow requests from any IP. If the list is not empty and we get a request - * from an IP which is not on the list, you get a security error. + * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. */ @JsonProperty(JSON_PROPERTY_ALLOWED_IP_ADDRESSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,23 +191,17 @@ public void setAllowedIpAddresses(List allowedIpAddresses) { } /** - * List containing the [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * linked to the API credential. + * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. * - * @param allowedOrigins List containing the [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * linked to the API credential. - * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method - * chaining + * @param allowedOrigins List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method chaining */ public CreateCompanyApiCredentialResponse allowedOrigins(List allowedOrigins) { this.allowedOrigins = allowedOrigins; return this; } - public CreateCompanyApiCredentialResponse addAllowedOriginsItem( - AllowedOrigin allowedOriginsItem) { + public CreateCompanyApiCredentialResponse addAllowedOriginsItem(AllowedOrigin allowedOriginsItem) { if (this.allowedOrigins == null) { this.allowedOrigins = new ArrayList<>(); } @@ -229,13 +210,8 @@ public CreateCompanyApiCredentialResponse addAllowedOriginsItem( } /** - * List containing the [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * linked to the API credential. - * - * @return allowedOrigins List containing the [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * linked to the API credential. + * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + * @return allowedOrigins List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,13 +220,9 @@ public List getAllowedOrigins() { } /** - * List containing the [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * linked to the API credential. + * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. * - * @param allowedOrigins List containing the [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * linked to the API credential. + * @param allowedOrigins List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -262,8 +234,7 @@ public void setAllowedOrigins(List allowedOrigins) { * The API key for the API credential that was created. * * @param apiKey The API key for the API credential that was created. - * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method - * chaining + * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method chaining */ public CreateCompanyApiCredentialResponse apiKey(String apiKey) { this.apiKey = apiKey; @@ -272,7 +243,6 @@ public CreateCompanyApiCredentialResponse apiKey(String apiKey) { /** * The API key for the API credential that was created. - * * @return apiKey The API key for the API credential that was created. */ @JsonProperty(JSON_PROPERTY_API_KEY) @@ -295,19 +265,15 @@ public void setApiKey(String apiKey) { /** * List of merchant accounts that the API credential has access to. * - * @param associatedMerchantAccounts List of merchant accounts that the API credential has access - * to. - * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method - * chaining + * @param associatedMerchantAccounts List of merchant accounts that the API credential has access to. + * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method chaining */ - public CreateCompanyApiCredentialResponse associatedMerchantAccounts( - List associatedMerchantAccounts) { + public CreateCompanyApiCredentialResponse associatedMerchantAccounts(List associatedMerchantAccounts) { this.associatedMerchantAccounts = associatedMerchantAccounts; return this; } - public CreateCompanyApiCredentialResponse addAssociatedMerchantAccountsItem( - String associatedMerchantAccountsItem) { + public CreateCompanyApiCredentialResponse addAssociatedMerchantAccountsItem(String associatedMerchantAccountsItem) { if (this.associatedMerchantAccounts == null) { this.associatedMerchantAccounts = new ArrayList<>(); } @@ -317,9 +283,7 @@ public CreateCompanyApiCredentialResponse addAssociatedMerchantAccountsItem( /** * List of merchant accounts that the API credential has access to. - * - * @return associatedMerchantAccounts List of merchant accounts that the API credential has access - * to. + * @return associatedMerchantAccounts List of merchant accounts that the API credential has access to. */ @JsonProperty(JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -330,8 +294,7 @@ public List getAssociatedMerchantAccounts() { /** * List of merchant accounts that the API credential has access to. * - * @param associatedMerchantAccounts List of merchant accounts that the API credential has access - * to. + * @param associatedMerchantAccounts List of merchant accounts that the API credential has access to. */ @JsonProperty(JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -340,15 +303,10 @@ public void setAssociatedMerchantAccounts(List associatedMerchantAccount } /** - * Public key used for [client-side - * authentication](https://docs.adyen.com/development-resources/client-side-authentication). The - * client key is required for Drop-in and Components integrations. + * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. * - * @param clientKey Public key used for [client-side - * authentication](https://docs.adyen.com/development-resources/client-side-authentication). - * The client key is required for Drop-in and Components integrations. - * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method - * chaining + * @param clientKey Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method chaining */ public CreateCompanyApiCredentialResponse clientKey(String clientKey) { this.clientKey = clientKey; @@ -356,13 +314,8 @@ public CreateCompanyApiCredentialResponse clientKey(String clientKey) { } /** - * Public key used for [client-side - * authentication](https://docs.adyen.com/development-resources/client-side-authentication). The - * client key is required for Drop-in and Components integrations. - * - * @return clientKey Public key used for [client-side - * authentication](https://docs.adyen.com/development-resources/client-side-authentication). - * The client key is required for Drop-in and Components integrations. + * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + * @return clientKey Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. */ @JsonProperty(JSON_PROPERTY_CLIENT_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -371,13 +324,9 @@ public String getClientKey() { } /** - * Public key used for [client-side - * authentication](https://docs.adyen.com/development-resources/client-side-authentication). The - * client key is required for Drop-in and Components integrations. + * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. * - * @param clientKey Public key used for [client-side - * authentication](https://docs.adyen.com/development-resources/client-side-authentication). - * The client key is required for Drop-in and Components integrations. + * @param clientKey Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. */ @JsonProperty(JSON_PROPERTY_CLIENT_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -389,8 +338,7 @@ public void setClientKey(String clientKey) { * Description of the API credential. * * @param description Description of the API credential. - * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method - * chaining + * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method chaining */ public CreateCompanyApiCredentialResponse description(String description) { this.description = description; @@ -399,7 +347,6 @@ public CreateCompanyApiCredentialResponse description(String description) { /** * Description of the API credential. - * * @return description Description of the API credential. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -423,8 +370,7 @@ public void setDescription(String description) { * Unique identifier of the API credential. * * @param id Unique identifier of the API credential. - * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method - * chaining + * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method chaining */ public CreateCompanyApiCredentialResponse id(String id) { this.id = id; @@ -433,7 +379,6 @@ public CreateCompanyApiCredentialResponse id(String id) { /** * Unique identifier of the API credential. - * * @return id Unique identifier of the API credential. */ @JsonProperty(JSON_PROPERTY_ID) @@ -457,8 +402,7 @@ public void setId(String id) { * The password for the API credential that was created. * * @param password The password for the API credential that was created. - * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method - * chaining + * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method chaining */ public CreateCompanyApiCredentialResponse password(String password) { this.password = password; @@ -467,7 +411,6 @@ public CreateCompanyApiCredentialResponse password(String password) { /** * The password for the API credential that was created. - * * @return password The password for the API credential that was created. */ @JsonProperty(JSON_PROPERTY_PASSWORD) @@ -488,14 +431,10 @@ public void setPassword(String password) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the - * API credential. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. * - * @param roles List of - * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API - * credential. - * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method - * chaining + * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method chaining */ public CreateCompanyApiCredentialResponse roles(List roles) { this.roles = roles; @@ -511,12 +450,8 @@ public CreateCompanyApiCredentialResponse addRolesItem(String rolesItem) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the - * API credential. - * - * @return roles List of - * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API - * credential. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + * @return roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -525,12 +460,9 @@ public List getRoles() { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the - * API credential. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. * - * @param roles List of - * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API - * credential. + * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -539,14 +471,10 @@ public void setRoles(List roles) { } /** - * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), - * for example **ws@Company.TestCompany**. + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. * - * @param username The name of the [API - * credential](https://docs.adyen.com/development-resources/api-credentials), for example - * **ws@Company.TestCompany**. - * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method - * chaining + * @param username The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method chaining */ public CreateCompanyApiCredentialResponse username(String username) { this.username = username; @@ -554,12 +482,8 @@ public CreateCompanyApiCredentialResponse username(String username) { } /** - * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), - * for example **ws@Company.TestCompany**. - * - * @return username The name of the [API - * credential](https://docs.adyen.com/development-resources/api-credentials), for example - * **ws@Company.TestCompany**. + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + * @return username The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. */ @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -568,12 +492,9 @@ public String getUsername() { } /** - * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), - * for example **ws@Company.TestCompany**. + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. * - * @param username The name of the [API - * credential](https://docs.adyen.com/development-resources/api-credentials), for example - * **ws@Company.TestCompany**. + * @param username The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. */ @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -581,7 +502,9 @@ public void setUsername(String username) { this.username = username; } - /** Return true if this CreateCompanyApiCredentialResponse object is equal to o. */ + /** + * Return true if this CreateCompanyApiCredentialResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -590,40 +513,24 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CreateCompanyApiCredentialResponse createCompanyApiCredentialResponse = - (CreateCompanyApiCredentialResponse) o; - return Objects.equals(this.links, createCompanyApiCredentialResponse.links) - && Objects.equals(this.active, createCompanyApiCredentialResponse.active) - && Objects.equals( - this.allowedIpAddresses, createCompanyApiCredentialResponse.allowedIpAddresses) - && Objects.equals(this.allowedOrigins, createCompanyApiCredentialResponse.allowedOrigins) - && Objects.equals(this.apiKey, createCompanyApiCredentialResponse.apiKey) - && Objects.equals( - this.associatedMerchantAccounts, - createCompanyApiCredentialResponse.associatedMerchantAccounts) - && Objects.equals(this.clientKey, createCompanyApiCredentialResponse.clientKey) - && Objects.equals(this.description, createCompanyApiCredentialResponse.description) - && Objects.equals(this.id, createCompanyApiCredentialResponse.id) - && Objects.equals(this.password, createCompanyApiCredentialResponse.password) - && Objects.equals(this.roles, createCompanyApiCredentialResponse.roles) - && Objects.equals(this.username, createCompanyApiCredentialResponse.username); + CreateCompanyApiCredentialResponse createCompanyApiCredentialResponse = (CreateCompanyApiCredentialResponse) o; + return Objects.equals(this.links, createCompanyApiCredentialResponse.links) && + Objects.equals(this.active, createCompanyApiCredentialResponse.active) && + Objects.equals(this.allowedIpAddresses, createCompanyApiCredentialResponse.allowedIpAddresses) && + Objects.equals(this.allowedOrigins, createCompanyApiCredentialResponse.allowedOrigins) && + Objects.equals(this.apiKey, createCompanyApiCredentialResponse.apiKey) && + Objects.equals(this.associatedMerchantAccounts, createCompanyApiCredentialResponse.associatedMerchantAccounts) && + Objects.equals(this.clientKey, createCompanyApiCredentialResponse.clientKey) && + Objects.equals(this.description, createCompanyApiCredentialResponse.description) && + Objects.equals(this.id, createCompanyApiCredentialResponse.id) && + Objects.equals(this.password, createCompanyApiCredentialResponse.password) && + Objects.equals(this.roles, createCompanyApiCredentialResponse.roles) && + Objects.equals(this.username, createCompanyApiCredentialResponse.username); } @Override public int hashCode() { - return Objects.hash( - links, - active, - allowedIpAddresses, - allowedOrigins, - apiKey, - associatedMerchantAccounts, - clientKey, - description, - id, - password, - roles, - username); + return Objects.hash(links, active, allowedIpAddresses, allowedOrigins, apiKey, associatedMerchantAccounts, clientKey, description, id, password, roles, username); } @Override @@ -635,9 +542,7 @@ public String toString() { sb.append(" allowedIpAddresses: ").append(toIndentedString(allowedIpAddresses)).append("\n"); sb.append(" allowedOrigins: ").append(toIndentedString(allowedOrigins)).append("\n"); sb.append(" apiKey: ").append(toIndentedString(apiKey)).append("\n"); - sb.append(" associatedMerchantAccounts: ") - .append(toIndentedString(associatedMerchantAccounts)) - .append("\n"); + sb.append(" associatedMerchantAccounts: ").append(toIndentedString(associatedMerchantAccounts)).append("\n"); sb.append(" clientKey: ").append(toIndentedString(clientKey)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); @@ -649,7 +554,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -658,24 +564,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CreateCompanyApiCredentialResponse given an JSON string * * @param jsonString JSON string * @return An instance of CreateCompanyApiCredentialResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreateCompanyApiCredentialResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to CreateCompanyApiCredentialResponse */ - public static CreateCompanyApiCredentialResponse fromJson(String jsonString) - throws JsonProcessingException { + public static CreateCompanyApiCredentialResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateCompanyApiCredentialResponse.class); } - - /** - * Convert an instance of CreateCompanyApiCredentialResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CreateCompanyApiCredentialResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CreateCompanyUserRequest.java b/src/main/java/com/adyen/model/management/CreateCompanyUserRequest.java index 2cf512441..5236d6241 100644 --- a/src/main/java/com/adyen/model/management/CreateCompanyUserRequest.java +++ b/src/main/java/com/adyen/model/management/CreateCompanyUserRequest.java @@ -2,24 +2,34 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.Name; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CreateCompanyUserRequest */ +/** + * CreateCompanyUserRequest + */ @JsonPropertyOrder({ CreateCompanyUserRequest.JSON_PROPERTY_ACCOUNT_GROUPS, CreateCompanyUserRequest.JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS, @@ -30,12 +40,12 @@ CreateCompanyUserRequest.JSON_PROPERTY_TIME_ZONE_CODE, CreateCompanyUserRequest.JSON_PROPERTY_USERNAME }) + public class CreateCompanyUserRequest { public static final String JSON_PROPERTY_ACCOUNT_GROUPS = "accountGroups"; private List accountGroups; - public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS = - "associatedMerchantAccounts"; + public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS = "associatedMerchantAccounts"; private List associatedMerchantAccounts; public static final String JSON_PROPERTY_EMAIL = "email"; @@ -56,15 +66,13 @@ public class CreateCompanyUserRequest { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public CreateCompanyUserRequest() {} + public CreateCompanyUserRequest() { + } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) - * associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. * - * @param accountGroups The list of [account - * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with - * this user. + * @param accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. * @return the current {@code CreateCompanyUserRequest} instance, allowing for method chaining */ public CreateCompanyUserRequest accountGroups(List accountGroups) { @@ -81,12 +89,8 @@ public CreateCompanyUserRequest addAccountGroupsItem(String accountGroupsItem) { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) - * associated with this user. - * - * @return accountGroups The list of [account - * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with - * this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * @return accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -95,12 +99,9 @@ public List getAccountGroups() { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) - * associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. * - * @param accountGroups The list of [account - * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with - * this user. + * @param accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -109,23 +110,17 @@ public void setAccountGroups(List accountGroups) { } /** - * The list of [merchant - * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with - * this user. + * The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. * - * @param associatedMerchantAccounts The list of [merchant - * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated - * with this user. + * @param associatedMerchantAccounts The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. * @return the current {@code CreateCompanyUserRequest} instance, allowing for method chaining */ - public CreateCompanyUserRequest associatedMerchantAccounts( - List associatedMerchantAccounts) { + public CreateCompanyUserRequest associatedMerchantAccounts(List associatedMerchantAccounts) { this.associatedMerchantAccounts = associatedMerchantAccounts; return this; } - public CreateCompanyUserRequest addAssociatedMerchantAccountsItem( - String associatedMerchantAccountsItem) { + public CreateCompanyUserRequest addAssociatedMerchantAccountsItem(String associatedMerchantAccountsItem) { if (this.associatedMerchantAccounts == null) { this.associatedMerchantAccounts = new ArrayList<>(); } @@ -134,13 +129,8 @@ public CreateCompanyUserRequest addAssociatedMerchantAccountsItem( } /** - * The list of [merchant - * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with - * this user. - * - * @return associatedMerchantAccounts The list of [merchant - * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated - * with this user. + * The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. + * @return associatedMerchantAccounts The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. */ @JsonProperty(JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -149,13 +139,9 @@ public List getAssociatedMerchantAccounts() { } /** - * The list of [merchant - * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with - * this user. + * The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. * - * @param associatedMerchantAccounts The list of [merchant - * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated - * with this user. + * @param associatedMerchantAccounts The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. */ @JsonProperty(JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,7 +162,6 @@ public CreateCompanyUserRequest email(String email) { /** * The email address of the user. - * * @return email The email address of the user. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -197,13 +182,9 @@ public void setEmail(String email) { } /** - * The requested login method for the user. To use SSO, you must already have SSO configured with - * Adyen before creating the user. Possible values: **Username & account**, **Email**, or - * **SSO** + * The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** * - * @param loginMethod The requested login method for the user. To use SSO, you must already have - * SSO configured with Adyen before creating the user. Possible values: **Username & - * account**, **Email**, or **SSO** + * @param loginMethod The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** * @return the current {@code CreateCompanyUserRequest} instance, allowing for method chaining */ public CreateCompanyUserRequest loginMethod(String loginMethod) { @@ -212,13 +193,8 @@ public CreateCompanyUserRequest loginMethod(String loginMethod) { } /** - * The requested login method for the user. To use SSO, you must already have SSO configured with - * Adyen before creating the user. Possible values: **Username & account**, **Email**, or - * **SSO** - * - * @return loginMethod The requested login method for the user. To use SSO, you must already have - * SSO configured with Adyen before creating the user. Possible values: **Username & - * account**, **Email**, or **SSO** + * The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** + * @return loginMethod The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** */ @JsonProperty(JSON_PROPERTY_LOGIN_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -227,13 +203,9 @@ public String getLoginMethod() { } /** - * The requested login method for the user. To use SSO, you must already have SSO configured with - * Adyen before creating the user. Possible values: **Username & account**, **Email**, or - * **SSO** + * The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** * - * @param loginMethod The requested login method for the user. To use SSO, you must already have - * SSO configured with Adyen before creating the user. Possible values: **Username & - * account**, **Email**, or **SSO** + * @param loginMethod The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** */ @JsonProperty(JSON_PROPERTY_LOGIN_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,7 +216,7 @@ public void setLoginMethod(String loginMethod) { /** * name * - * @param name + * @param name * @return the current {@code CreateCompanyUserRequest} instance, allowing for method chaining */ public CreateCompanyUserRequest name(Name name) { @@ -254,8 +226,7 @@ public CreateCompanyUserRequest name(Name name) { /** * Get name - * - * @return name + * @return name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -266,7 +237,7 @@ public Name getName() { /** * name * - * @param name + * @param name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -295,7 +266,6 @@ public CreateCompanyUserRequest addRolesItem(String rolesItem) { /** * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. - * * @return roles The list of [roles](https://docs.adyen.com/account/user-roles) for this user. */ @JsonProperty(JSON_PROPERTY_ROLES) @@ -316,12 +286,9 @@ public void setRoles(List roles) { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the - * time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. * - * @param timeZoneCode The [tz database - * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the - * user. For example, **Europe/Amsterdam**. + * @param timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. * @return the current {@code CreateCompanyUserRequest} instance, allowing for method chaining */ public CreateCompanyUserRequest timeZoneCode(String timeZoneCode) { @@ -330,12 +297,8 @@ public CreateCompanyUserRequest timeZoneCode(String timeZoneCode) { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the - * time zone of the user. For example, **Europe/Amsterdam**. - * - * @return timeZoneCode The [tz database - * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the - * user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * @return timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -344,12 +307,9 @@ public String getTimeZoneCode() { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the - * time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. * - * @param timeZoneCode The [tz database - * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the - * user. For example, **Europe/Amsterdam**. + * @param timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -358,11 +318,9 @@ public void setTimeZoneCode(String timeZoneCode) { } /** - * The user's email address that will be their username. Must be the same as the one in the - * `email` field. + * The user's email address that will be their username. Must be the same as the one in the `email` field. * - * @param username The user's email address that will be their username. Must be the same as - * the one in the `email` field. + * @param username The user's email address that will be their username. Must be the same as the one in the `email` field. * @return the current {@code CreateCompanyUserRequest} instance, allowing for method chaining */ public CreateCompanyUserRequest username(String username) { @@ -371,11 +329,8 @@ public CreateCompanyUserRequest username(String username) { } /** - * The user's email address that will be their username. Must be the same as the one in the - * `email` field. - * - * @return username The user's email address that will be their username. Must be the same as - * the one in the `email` field. + * The user's email address that will be their username. Must be the same as the one in the `email` field. + * @return username The user's email address that will be their username. Must be the same as the one in the `email` field. */ @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -384,11 +339,9 @@ public String getUsername() { } /** - * The user's email address that will be their username. Must be the same as the one in the - * `email` field. + * The user's email address that will be their username. Must be the same as the one in the `email` field. * - * @param username The user's email address that will be their username. Must be the same as - * the one in the `email` field. + * @param username The user's email address that will be their username. Must be the same as the one in the `email` field. */ @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -396,7 +349,9 @@ public void setUsername(String username) { this.username = username; } - /** Return true if this CreateCompanyUserRequest object is equal to o. */ + /** + * Return true if this CreateCompanyUserRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -406,28 +361,19 @@ public boolean equals(Object o) { return false; } CreateCompanyUserRequest createCompanyUserRequest = (CreateCompanyUserRequest) o; - return Objects.equals(this.accountGroups, createCompanyUserRequest.accountGroups) - && Objects.equals( - this.associatedMerchantAccounts, createCompanyUserRequest.associatedMerchantAccounts) - && Objects.equals(this.email, createCompanyUserRequest.email) - && Objects.equals(this.loginMethod, createCompanyUserRequest.loginMethod) - && Objects.equals(this.name, createCompanyUserRequest.name) - && Objects.equals(this.roles, createCompanyUserRequest.roles) - && Objects.equals(this.timeZoneCode, createCompanyUserRequest.timeZoneCode) - && Objects.equals(this.username, createCompanyUserRequest.username); + return Objects.equals(this.accountGroups, createCompanyUserRequest.accountGroups) && + Objects.equals(this.associatedMerchantAccounts, createCompanyUserRequest.associatedMerchantAccounts) && + Objects.equals(this.email, createCompanyUserRequest.email) && + Objects.equals(this.loginMethod, createCompanyUserRequest.loginMethod) && + Objects.equals(this.name, createCompanyUserRequest.name) && + Objects.equals(this.roles, createCompanyUserRequest.roles) && + Objects.equals(this.timeZoneCode, createCompanyUserRequest.timeZoneCode) && + Objects.equals(this.username, createCompanyUserRequest.username); } @Override public int hashCode() { - return Objects.hash( - accountGroups, - associatedMerchantAccounts, - email, - loginMethod, - name, - roles, - timeZoneCode, - username); + return Objects.hash(accountGroups, associatedMerchantAccounts, email, loginMethod, name, roles, timeZoneCode, username); } @Override @@ -435,9 +381,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateCompanyUserRequest {\n"); sb.append(" accountGroups: ").append(toIndentedString(accountGroups)).append("\n"); - sb.append(" associatedMerchantAccounts: ") - .append(toIndentedString(associatedMerchantAccounts)) - .append("\n"); + sb.append(" associatedMerchantAccounts: ").append(toIndentedString(associatedMerchantAccounts)).append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" loginMethod: ").append(toIndentedString(loginMethod)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); @@ -449,7 +393,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -458,24 +403,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CreateCompanyUserRequest given an JSON string * * @param jsonString JSON string * @return An instance of CreateCompanyUserRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreateCompanyUserRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to CreateCompanyUserRequest */ - public static CreateCompanyUserRequest fromJson(String jsonString) - throws JsonProcessingException { + public static CreateCompanyUserRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateCompanyUserRequest.class); } - - /** - * Convert an instance of CreateCompanyUserRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CreateCompanyUserRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CreateCompanyUserResponse.java b/src/main/java/com/adyen/model/management/CreateCompanyUserResponse.java index d00f39902..0256f0dcf 100644 --- a/src/main/java/com/adyen/model/management/CreateCompanyUserResponse.java +++ b/src/main/java/com/adyen/model/management/CreateCompanyUserResponse.java @@ -2,24 +2,35 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.Links; +import com.adyen.model.management.Name; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** CreateCompanyUserResponse */ + +/** + * CreateCompanyUserResponse + */ @JsonPropertyOrder({ CreateCompanyUserResponse.JSON_PROPERTY_LINKS, CreateCompanyUserResponse.JSON_PROPERTY_ACCOUNT_GROUPS, @@ -33,6 +44,7 @@ CreateCompanyUserResponse.JSON_PROPERTY_TIME_ZONE_CODE, CreateCompanyUserResponse.JSON_PROPERTY_USERNAME }) + public class CreateCompanyUserResponse { public static final String JSON_PROPERTY_LINKS = "_links"; private Links links; @@ -46,8 +58,7 @@ public class CreateCompanyUserResponse { public static final String JSON_PROPERTY_APPS = "apps"; private List apps; - public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS = - "associatedMerchantAccounts"; + public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS = "associatedMerchantAccounts"; private List associatedMerchantAccounts; public static final String JSON_PROPERTY_EMAIL = "email"; @@ -68,12 +79,13 @@ public class CreateCompanyUserResponse { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public CreateCompanyUserResponse() {} + public CreateCompanyUserResponse() { + } /** * links * - * @param links + * @param links * @return the current {@code CreateCompanyUserResponse} instance, allowing for method chaining */ public CreateCompanyUserResponse links(Links links) { @@ -83,8 +95,7 @@ public CreateCompanyUserResponse links(Links links) { /** * Get links - * - * @return links + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -95,7 +106,7 @@ public Links getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,12 +115,9 @@ public void setLinks(Links links) { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) - * associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. * - * @param accountGroups The list of [account - * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with - * this user. + * @param accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. * @return the current {@code CreateCompanyUserResponse} instance, allowing for method chaining */ public CreateCompanyUserResponse accountGroups(List accountGroups) { @@ -126,12 +134,8 @@ public CreateCompanyUserResponse addAccountGroupsItem(String accountGroupsItem) } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) - * associated with this user. - * - * @return accountGroups The list of [account - * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with - * this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * @return accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,12 +144,9 @@ public List getAccountGroups() { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) - * associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. * - * @param accountGroups The list of [account - * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with - * this user. + * @param accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -166,7 +167,6 @@ public CreateCompanyUserResponse active(Boolean active) { /** * Indicates whether this user is active. - * * @return active Indicates whether this user is active. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @@ -207,7 +207,6 @@ public CreateCompanyUserResponse addAppsItem(String appsItem) { /** * Set of apps available to this user - * * @return apps Set of apps available to this user */ @JsonProperty(JSON_PROPERTY_APPS) @@ -228,23 +227,17 @@ public void setApps(List apps) { } /** - * The list of [merchant - * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with - * this user. + * The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. * - * @param associatedMerchantAccounts The list of [merchant - * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated - * with this user. + * @param associatedMerchantAccounts The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. * @return the current {@code CreateCompanyUserResponse} instance, allowing for method chaining */ - public CreateCompanyUserResponse associatedMerchantAccounts( - List associatedMerchantAccounts) { + public CreateCompanyUserResponse associatedMerchantAccounts(List associatedMerchantAccounts) { this.associatedMerchantAccounts = associatedMerchantAccounts; return this; } - public CreateCompanyUserResponse addAssociatedMerchantAccountsItem( - String associatedMerchantAccountsItem) { + public CreateCompanyUserResponse addAssociatedMerchantAccountsItem(String associatedMerchantAccountsItem) { if (this.associatedMerchantAccounts == null) { this.associatedMerchantAccounts = new ArrayList<>(); } @@ -253,13 +246,8 @@ public CreateCompanyUserResponse addAssociatedMerchantAccountsItem( } /** - * The list of [merchant - * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with - * this user. - * - * @return associatedMerchantAccounts The list of [merchant - * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated - * with this user. + * The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. + * @return associatedMerchantAccounts The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. */ @JsonProperty(JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -268,13 +256,9 @@ public List getAssociatedMerchantAccounts() { } /** - * The list of [merchant - * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with - * this user. + * The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. * - * @param associatedMerchantAccounts The list of [merchant - * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated - * with this user. + * @param associatedMerchantAccounts The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. */ @JsonProperty(JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -295,7 +279,6 @@ public CreateCompanyUserResponse email(String email) { /** * The email address of the user. - * * @return email The email address of the user. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -328,7 +311,6 @@ public CreateCompanyUserResponse id(String id) { /** * The unique identifier of the user. - * * @return id The unique identifier of the user. */ @JsonProperty(JSON_PROPERTY_ID) @@ -351,7 +333,7 @@ public void setId(String id) { /** * name * - * @param name + * @param name * @return the current {@code CreateCompanyUserResponse} instance, allowing for method chaining */ public CreateCompanyUserResponse name(Name name) { @@ -361,8 +343,7 @@ public CreateCompanyUserResponse name(Name name) { /** * Get name - * - * @return name + * @return name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -373,7 +354,7 @@ public Name getName() { /** * name * - * @param name + * @param name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -402,7 +383,6 @@ public CreateCompanyUserResponse addRolesItem(String rolesItem) { /** * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. - * * @return roles The list of [roles](https://docs.adyen.com/account/user-roles) for this user. */ @JsonProperty(JSON_PROPERTY_ROLES) @@ -423,12 +403,9 @@ public void setRoles(List roles) { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the - * time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. * - * @param timeZoneCode The [tz database - * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the - * user. For example, **Europe/Amsterdam**. + * @param timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. * @return the current {@code CreateCompanyUserResponse} instance, allowing for method chaining */ public CreateCompanyUserResponse timeZoneCode(String timeZoneCode) { @@ -437,12 +414,8 @@ public CreateCompanyUserResponse timeZoneCode(String timeZoneCode) { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the - * time zone of the user. For example, **Europe/Amsterdam**. - * - * @return timeZoneCode The [tz database - * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the - * user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * @return timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -451,12 +424,9 @@ public String getTimeZoneCode() { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the - * time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. * - * @param timeZoneCode The [tz database - * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the - * user. For example, **Europe/Amsterdam**. + * @param timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -477,7 +447,6 @@ public CreateCompanyUserResponse username(String username) { /** * The username for this user. - * * @return username The username for this user. */ @JsonProperty(JSON_PROPERTY_USERNAME) @@ -497,7 +466,9 @@ public void setUsername(String username) { this.username = username; } - /** Return true if this CreateCompanyUserResponse object is equal to o. */ + /** + * Return true if this CreateCompanyUserResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -507,34 +478,22 @@ public boolean equals(Object o) { return false; } CreateCompanyUserResponse createCompanyUserResponse = (CreateCompanyUserResponse) o; - return Objects.equals(this.links, createCompanyUserResponse.links) - && Objects.equals(this.accountGroups, createCompanyUserResponse.accountGroups) - && Objects.equals(this.active, createCompanyUserResponse.active) - && Objects.equals(this.apps, createCompanyUserResponse.apps) - && Objects.equals( - this.associatedMerchantAccounts, createCompanyUserResponse.associatedMerchantAccounts) - && Objects.equals(this.email, createCompanyUserResponse.email) - && Objects.equals(this.id, createCompanyUserResponse.id) - && Objects.equals(this.name, createCompanyUserResponse.name) - && Objects.equals(this.roles, createCompanyUserResponse.roles) - && Objects.equals(this.timeZoneCode, createCompanyUserResponse.timeZoneCode) - && Objects.equals(this.username, createCompanyUserResponse.username); + return Objects.equals(this.links, createCompanyUserResponse.links) && + Objects.equals(this.accountGroups, createCompanyUserResponse.accountGroups) && + Objects.equals(this.active, createCompanyUserResponse.active) && + Objects.equals(this.apps, createCompanyUserResponse.apps) && + Objects.equals(this.associatedMerchantAccounts, createCompanyUserResponse.associatedMerchantAccounts) && + Objects.equals(this.email, createCompanyUserResponse.email) && + Objects.equals(this.id, createCompanyUserResponse.id) && + Objects.equals(this.name, createCompanyUserResponse.name) && + Objects.equals(this.roles, createCompanyUserResponse.roles) && + Objects.equals(this.timeZoneCode, createCompanyUserResponse.timeZoneCode) && + Objects.equals(this.username, createCompanyUserResponse.username); } @Override public int hashCode() { - return Objects.hash( - links, - accountGroups, - active, - apps, - associatedMerchantAccounts, - email, - id, - name, - roles, - timeZoneCode, - username); + return Objects.hash(links, accountGroups, active, apps, associatedMerchantAccounts, email, id, name, roles, timeZoneCode, username); } @Override @@ -545,9 +504,7 @@ public String toString() { sb.append(" accountGroups: ").append(toIndentedString(accountGroups)).append("\n"); sb.append(" active: ").append(toIndentedString(active)).append("\n"); sb.append(" apps: ").append(toIndentedString(apps)).append("\n"); - sb.append(" associatedMerchantAccounts: ") - .append(toIndentedString(associatedMerchantAccounts)) - .append("\n"); + sb.append(" associatedMerchantAccounts: ").append(toIndentedString(associatedMerchantAccounts)).append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); @@ -559,7 +516,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -568,24 +526,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CreateCompanyUserResponse given an JSON string * * @param jsonString JSON string * @return An instance of CreateCompanyUserResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreateCompanyUserResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to CreateCompanyUserResponse */ - public static CreateCompanyUserResponse fromJson(String jsonString) - throws JsonProcessingException { + public static CreateCompanyUserResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateCompanyUserResponse.class); } - - /** - * Convert an instance of CreateCompanyUserResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CreateCompanyUserResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CreateCompanyWebhookRequest.java b/src/main/java/com/adyen/model/management/CreateCompanyWebhookRequest.java index 2a46821cd..b99578e78 100644 --- a/src/main/java/com/adyen/model/management/CreateCompanyWebhookRequest.java +++ b/src/main/java/com/adyen/model/management/CreateCompanyWebhookRequest.java @@ -2,28 +2,34 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.AdditionalSettings; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CreateCompanyWebhookRequest */ +/** + * CreateCompanyWebhookRequest + */ @JsonPropertyOrder({ CreateCompanyWebhookRequest.JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE, CreateCompanyWebhookRequest.JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE, @@ -42,17 +48,15 @@ CreateCompanyWebhookRequest.JSON_PROPERTY_URL, CreateCompanyWebhookRequest.JSON_PROPERTY_USERNAME }) + public class CreateCompanyWebhookRequest { - public static final String JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE = - "acceptsExpiredCertificate"; + public static final String JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE = "acceptsExpiredCertificate"; private Boolean acceptsExpiredCertificate; - public static final String JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE = - "acceptsSelfSignedCertificate"; + public static final String JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE = "acceptsSelfSignedCertificate"; private Boolean acceptsSelfSignedCertificate; - public static final String JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE = - "acceptsUntrustedRootCertificate"; + public static final String JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE = "acceptsUntrustedRootCertificate"; private Boolean acceptsUntrustedRootCertificate; public static final String JSON_PROPERTY_ACTIVE = "active"; @@ -62,9 +66,10 @@ public class CreateCompanyWebhookRequest { private AdditionalSettings additionalSettings; /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** */ public enum CommunicationFormatEnum { + HTTP(String.valueOf("http")), JSON(String.valueOf("json")), @@ -76,7 +81,7 @@ public enum CommunicationFormatEnum { private String value; CommunicationFormatEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -97,11 +102,7 @@ public static CommunicationFormatEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "CommunicationFormatEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(CommunicationFormatEnum.values())); + LOG.warning("CommunicationFormatEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CommunicationFormatEnum.values())); return null; } } @@ -113,11 +114,10 @@ public static CommunicationFormatEnum fromValue(String value) { private String description; /** - * SSL version to access the public webhook URL specified in the `url` field. Possible - * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not - * specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. */ public enum EncryptionProtocolEnum { + HTTP(String.valueOf("HTTP")), TLSV1_2(String.valueOf("TLSv1.2")), @@ -129,7 +129,7 @@ public enum EncryptionProtocolEnum { private String value; EncryptionProtocolEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -150,11 +150,7 @@ public static EncryptionProtocolEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "EncryptionProtocolEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(EncryptionProtocolEnum.values())); + LOG.warning("EncryptionProtocolEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(EncryptionProtocolEnum.values())); return null; } } @@ -163,27 +159,22 @@ public static EncryptionProtocolEnum fromValue(String value) { private EncryptionProtocolEnum encryptionProtocol; /** - * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * - * **allAccounts** : Includes all merchant accounts, and does not require specifying - * `filterMerchantAccounts`. * **includeAccounts** : The webhook is configured for the - * merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts** : The - * webhook is not configured for the merchant accounts listed in - * `filterMerchantAccounts`. + * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **allAccounts** : Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. * **includeAccounts** : The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts** : The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. */ public enum FilterMerchantAccountTypeEnum { + ALLACCOUNTS(String.valueOf("allAccounts")), EXCLUDEACCOUNTS(String.valueOf("excludeAccounts")), INCLUDEACCOUNTS(String.valueOf("includeAccounts")); - private static final Logger LOG = - Logger.getLogger(FilterMerchantAccountTypeEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(FilterMerchantAccountTypeEnum.class.getName()); private String value; FilterMerchantAccountTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -204,27 +195,22 @@ public static FilterMerchantAccountTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FilterMerchantAccountTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FilterMerchantAccountTypeEnum.values())); + LOG.warning("FilterMerchantAccountTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FilterMerchantAccountTypeEnum.values())); return null; } } - public static final String JSON_PROPERTY_FILTER_MERCHANT_ACCOUNT_TYPE = - "filterMerchantAccountType"; + public static final String JSON_PROPERTY_FILTER_MERCHANT_ACCOUNT_TYPE = "filterMerchantAccountType"; private FilterMerchantAccountTypeEnum filterMerchantAccountType; public static final String JSON_PROPERTY_FILTER_MERCHANT_ACCOUNTS = "filterMerchantAccounts"; private List filterMerchantAccounts; /** - * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** - * Default Value: **public**. + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. */ public enum NetworkTypeEnum { + LOCAL(String.valueOf("local")), PUBLIC(String.valueOf("public")); @@ -234,7 +220,7 @@ public enum NetworkTypeEnum { private String value; NetworkTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -255,11 +241,7 @@ public static NetworkTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "NetworkTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(NetworkTypeEnum.values())); + LOG.warning("NetworkTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(NetworkTypeEnum.values())); return null; } } @@ -282,13 +264,13 @@ public static NetworkTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public CreateCompanyWebhookRequest() {} + public CreateCompanyWebhookRequest() { + } /** * Indicates if expired SSL certificates are accepted. Default value: **false**. * - * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default - * value: **false**. + * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default value: **false**. * @return the current {@code CreateCompanyWebhookRequest} instance, allowing for method chaining */ public CreateCompanyWebhookRequest acceptsExpiredCertificate(Boolean acceptsExpiredCertificate) { @@ -298,9 +280,7 @@ public CreateCompanyWebhookRequest acceptsExpiredCertificate(Boolean acceptsExpi /** * Indicates if expired SSL certificates are accepted. Default value: **false**. - * - * @return acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default - * value: **false**. + * @return acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -311,8 +291,7 @@ public Boolean getAcceptsExpiredCertificate() { /** * Indicates if expired SSL certificates are accepted. Default value: **false**. * - * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default - * value: **false**. + * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -323,21 +302,17 @@ public void setAcceptsExpiredCertificate(Boolean acceptsExpiredCertificate) { /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. * - * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. - * Default value: **false**. + * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. Default value: **false**. * @return the current {@code CreateCompanyWebhookRequest} instance, allowing for method chaining */ - public CreateCompanyWebhookRequest acceptsSelfSignedCertificate( - Boolean acceptsSelfSignedCertificate) { + public CreateCompanyWebhookRequest acceptsSelfSignedCertificate(Boolean acceptsSelfSignedCertificate) { this.acceptsSelfSignedCertificate = acceptsSelfSignedCertificate; return this; } /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. - * - * @return acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. - * Default value: **false**. + * @return acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -348,8 +323,7 @@ public Boolean getAcceptsSelfSignedCertificate() { /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. * - * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. - * Default value: **false**. + * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -360,21 +334,17 @@ public void setAcceptsSelfSignedCertificate(Boolean acceptsSelfSignedCertificate /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. * - * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. - * Default value: **false**. + * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. Default value: **false**. * @return the current {@code CreateCompanyWebhookRequest} instance, allowing for method chaining */ - public CreateCompanyWebhookRequest acceptsUntrustedRootCertificate( - Boolean acceptsUntrustedRootCertificate) { + public CreateCompanyWebhookRequest acceptsUntrustedRootCertificate(Boolean acceptsUntrustedRootCertificate) { this.acceptsUntrustedRootCertificate = acceptsUntrustedRootCertificate; return this; } /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. - * - * @return acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. - * Default value: **false**. + * @return acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -385,8 +355,7 @@ public Boolean getAcceptsUntrustedRootCertificate() { /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. * - * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. - * Default value: **false**. + * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -395,11 +364,9 @@ public void setAcceptsUntrustedRootCertificate(Boolean acceptsUntrustedRootCerti } /** - * Indicates if the webhook configuration is active. The field must be **true** for us to send - * webhooks about events related an account. + * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. * - * @param active Indicates if the webhook configuration is active. The field must be **true** for - * us to send webhooks about events related an account. + * @param active Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. * @return the current {@code CreateCompanyWebhookRequest} instance, allowing for method chaining */ public CreateCompanyWebhookRequest active(Boolean active) { @@ -408,11 +375,8 @@ public CreateCompanyWebhookRequest active(Boolean active) { } /** - * Indicates if the webhook configuration is active. The field must be **true** for us to send - * webhooks about events related an account. - * - * @return active Indicates if the webhook configuration is active. The field must be **true** for - * us to send webhooks about events related an account. + * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. + * @return active Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -421,11 +385,9 @@ public Boolean getActive() { } /** - * Indicates if the webhook configuration is active. The field must be **true** for us to send - * webhooks about events related an account. + * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. * - * @param active Indicates if the webhook configuration is active. The field must be **true** for - * us to send webhooks about events related an account. + * @param active Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -436,7 +398,7 @@ public void setActive(Boolean active) { /** * additionalSettings * - * @param additionalSettings + * @param additionalSettings * @return the current {@code CreateCompanyWebhookRequest} instance, allowing for method chaining */ public CreateCompanyWebhookRequest additionalSettings(AdditionalSettings additionalSettings) { @@ -446,8 +408,7 @@ public CreateCompanyWebhookRequest additionalSettings(AdditionalSettings additio /** * Get additionalSettings - * - * @return additionalSettings + * @return additionalSettings */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -458,7 +419,7 @@ public AdditionalSettings getAdditionalSettings() { /** * additionalSettings * - * @param additionalSettings + * @param additionalSettings */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -467,23 +428,19 @@ public void setAdditionalSettings(AdditionalSettings additionalSettings) { } /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** * - * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * - * **soap** * **http** * **json** + * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** * @return the current {@code CreateCompanyWebhookRequest} instance, allowing for method chaining */ - public CreateCompanyWebhookRequest communicationFormat( - CommunicationFormatEnum communicationFormat) { + public CreateCompanyWebhookRequest communicationFormat(CommunicationFormatEnum communicationFormat) { this.communicationFormat = communicationFormat; return this; } /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** - * - * @return communicationFormat Format or protocol for receiving webhooks. Possible values: * - * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * @return communicationFormat Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** */ @JsonProperty(JSON_PROPERTY_COMMUNICATION_FORMAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -492,10 +449,9 @@ public CommunicationFormatEnum getCommunicationFormat() { } /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** * - * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * - * **soap** * **http** * **json** + * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** */ @JsonProperty(JSON_PROPERTY_COMMUNICATION_FORMAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -516,7 +472,6 @@ public CreateCompanyWebhookRequest description(String description) { /** * Your description for this webhook configuration. - * * @return description Your description for this webhook configuration. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -537,14 +492,9 @@ public void setDescription(String description) { } /** - * SSL version to access the public webhook URL specified in the `url` field. Possible - * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not - * specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. * - * @param encryptionProtocol SSL version to access the public webhook URL specified in the - * `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only - * allowed on Test environment. If not specified, the webhook will use `sslVersion`: - * **TLSv1.2**. + * @param encryptionProtocol SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. * @return the current {@code CreateCompanyWebhookRequest} instance, allowing for method chaining */ public CreateCompanyWebhookRequest encryptionProtocol(EncryptionProtocolEnum encryptionProtocol) { @@ -553,14 +503,8 @@ public CreateCompanyWebhookRequest encryptionProtocol(EncryptionProtocolEnum enc } /** - * SSL version to access the public webhook URL specified in the `url` field. Possible - * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not - * specified, the webhook will use `sslVersion`: **TLSv1.2**. - * - * @return encryptionProtocol SSL version to access the public webhook URL specified in the - * `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only - * allowed on Test environment. If not specified, the webhook will use `sslVersion`: - * **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * @return encryptionProtocol SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. */ @JsonProperty(JSON_PROPERTY_ENCRYPTION_PROTOCOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -569,14 +513,9 @@ public EncryptionProtocolEnum getEncryptionProtocol() { } /** - * SSL version to access the public webhook URL specified in the `url` field. Possible - * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not - * specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. * - * @param encryptionProtocol SSL version to access the public webhook URL specified in the - * `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only - * allowed on Test environment. If not specified, the webhook will use `sslVersion`: - * **TLSv1.2**. + * @param encryptionProtocol SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. */ @JsonProperty(JSON_PROPERTY_ENCRYPTION_PROTOCOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -585,41 +524,19 @@ public void setEncryptionProtocol(EncryptionProtocolEnum encryptionProtocol) { } /** - * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * - * **allAccounts** : Includes all merchant accounts, and does not require specifying - * `filterMerchantAccounts`. * **includeAccounts** : The webhook is configured for the - * merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts** : The - * webhook is not configured for the merchant accounts listed in - * `filterMerchantAccounts`. + * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **allAccounts** : Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. * **includeAccounts** : The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts** : The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. * - * @param filterMerchantAccountType Shows how merchant accounts are filtered when configuring the - * webhook. Possible values: * **allAccounts** : Includes all merchant accounts, and does not - * require specifying `filterMerchantAccounts`. * **includeAccounts** : The webhook - * is configured for the merchant accounts listed in `filterMerchantAccounts`. * - * **excludeAccounts** : The webhook is not configured for the merchant accounts listed in - * `filterMerchantAccounts`. + * @param filterMerchantAccountType Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **allAccounts** : Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. * **includeAccounts** : The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts** : The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. * @return the current {@code CreateCompanyWebhookRequest} instance, allowing for method chaining */ - public CreateCompanyWebhookRequest filterMerchantAccountType( - FilterMerchantAccountTypeEnum filterMerchantAccountType) { + public CreateCompanyWebhookRequest filterMerchantAccountType(FilterMerchantAccountTypeEnum filterMerchantAccountType) { this.filterMerchantAccountType = filterMerchantAccountType; return this; } /** - * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * - * **allAccounts** : Includes all merchant accounts, and does not require specifying - * `filterMerchantAccounts`. * **includeAccounts** : The webhook is configured for the - * merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts** : The - * webhook is not configured for the merchant accounts listed in - * `filterMerchantAccounts`. - * - * @return filterMerchantAccountType Shows how merchant accounts are filtered when configuring the - * webhook. Possible values: * **allAccounts** : Includes all merchant accounts, and does not - * require specifying `filterMerchantAccounts`. * **includeAccounts** : The webhook - * is configured for the merchant accounts listed in `filterMerchantAccounts`. * - * **excludeAccounts** : The webhook is not configured for the merchant accounts listed in - * `filterMerchantAccounts`. + * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **allAccounts** : Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. * **includeAccounts** : The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts** : The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. + * @return filterMerchantAccountType Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **allAccounts** : Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. * **includeAccounts** : The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts** : The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. */ @JsonProperty(JSON_PROPERTY_FILTER_MERCHANT_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -628,38 +545,20 @@ public FilterMerchantAccountTypeEnum getFilterMerchantAccountType() { } /** - * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * - * **allAccounts** : Includes all merchant accounts, and does not require specifying - * `filterMerchantAccounts`. * **includeAccounts** : The webhook is configured for the - * merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts** : The - * webhook is not configured for the merchant accounts listed in - * `filterMerchantAccounts`. + * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **allAccounts** : Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. * **includeAccounts** : The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts** : The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. * - * @param filterMerchantAccountType Shows how merchant accounts are filtered when configuring the - * webhook. Possible values: * **allAccounts** : Includes all merchant accounts, and does not - * require specifying `filterMerchantAccounts`. * **includeAccounts** : The webhook - * is configured for the merchant accounts listed in `filterMerchantAccounts`. * - * **excludeAccounts** : The webhook is not configured for the merchant accounts listed in - * `filterMerchantAccounts`. + * @param filterMerchantAccountType Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **allAccounts** : Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. * **includeAccounts** : The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts** : The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. */ @JsonProperty(JSON_PROPERTY_FILTER_MERCHANT_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFilterMerchantAccountType( - FilterMerchantAccountTypeEnum filterMerchantAccountType) { + public void setFilterMerchantAccountType(FilterMerchantAccountTypeEnum filterMerchantAccountType) { this.filterMerchantAccountType = filterMerchantAccountType; } /** - * A list of merchant account names that are included or excluded from receiving the webhook. - * Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. - * Required if `filterMerchantAccountType` is either: * **includeAccounts** * - * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. + * A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. * - * @param filterMerchantAccounts A list of merchant account names that are included or excluded - * from receiving the webhook. Inclusion or exclusion is based on the value defined for - * `filterMerchantAccountType`. Required if `filterMerchantAccountType` is - * either: * **includeAccounts** * **excludeAccounts** Not needed for - * `filterMerchantAccountType`: **allAccounts**. + * @param filterMerchantAccounts A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. * @return the current {@code CreateCompanyWebhookRequest} instance, allowing for method chaining */ public CreateCompanyWebhookRequest filterMerchantAccounts(List filterMerchantAccounts) { @@ -667,8 +566,7 @@ public CreateCompanyWebhookRequest filterMerchantAccounts(List filterMer return this; } - public CreateCompanyWebhookRequest addFilterMerchantAccountsItem( - String filterMerchantAccountsItem) { + public CreateCompanyWebhookRequest addFilterMerchantAccountsItem(String filterMerchantAccountsItem) { if (this.filterMerchantAccounts == null) { this.filterMerchantAccounts = new ArrayList<>(); } @@ -677,16 +575,8 @@ public CreateCompanyWebhookRequest addFilterMerchantAccountsItem( } /** - * A list of merchant account names that are included or excluded from receiving the webhook. - * Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. - * Required if `filterMerchantAccountType` is either: * **includeAccounts** * - * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. - * - * @return filterMerchantAccounts A list of merchant account names that are included or excluded - * from receiving the webhook. Inclusion or exclusion is based on the value defined for - * `filterMerchantAccountType`. Required if `filterMerchantAccountType` is - * either: * **includeAccounts** * **excludeAccounts** Not needed for - * `filterMerchantAccountType`: **allAccounts**. + * A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. + * @return filterMerchantAccounts A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. */ @JsonProperty(JSON_PROPERTY_FILTER_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -695,16 +585,9 @@ public List getFilterMerchantAccounts() { } /** - * A list of merchant account names that are included or excluded from receiving the webhook. - * Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. - * Required if `filterMerchantAccountType` is either: * **includeAccounts** * - * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. + * A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. * - * @param filterMerchantAccounts A list of merchant account names that are included or excluded - * from receiving the webhook. Inclusion or exclusion is based on the value defined for - * `filterMerchantAccountType`. Required if `filterMerchantAccountType` is - * either: * **includeAccounts** * **excludeAccounts** Not needed for - * `filterMerchantAccountType`: **allAccounts**. + * @param filterMerchantAccounts A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. */ @JsonProperty(JSON_PROPERTY_FILTER_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -713,11 +596,9 @@ public void setFilterMerchantAccounts(List filterMerchantAccounts) { } /** - * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** - * Default Value: **public**. + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. * - * @param networkType Network type for Terminal API notification webhooks. Possible values: * - * **public** * **local** Default Value: **public**. + * @param networkType Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. * @return the current {@code CreateCompanyWebhookRequest} instance, allowing for method chaining */ public CreateCompanyWebhookRequest networkType(NetworkTypeEnum networkType) { @@ -726,11 +607,8 @@ public CreateCompanyWebhookRequest networkType(NetworkTypeEnum networkType) { } /** - * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** - * Default Value: **public**. - * - * @return networkType Network type for Terminal API notification webhooks. Possible values: * - * **public** * **local** Default Value: **public**. + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. + * @return networkType Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. */ @JsonProperty(JSON_PROPERTY_NETWORK_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -739,11 +617,9 @@ public NetworkTypeEnum getNetworkType() { } /** - * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** - * Default Value: **public**. + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. * - * @param networkType Network type for Terminal API notification webhooks. Possible values: * - * **public** * **local** Default Value: **public**. + * @param networkType Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. */ @JsonProperty(JSON_PROPERTY_NETWORK_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -764,7 +640,6 @@ public CreateCompanyWebhookRequest password(String password) { /** * Password to access the webhook URL. - * * @return password Password to access the webhook URL. */ @JsonProperty(JSON_PROPERTY_PASSWORD) @@ -785,11 +660,9 @@ public void setPassword(String password) { } /** - * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only - * applies if `communicationFormat`: **soap**. + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. * - * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. - * Default value: **false**. Only applies if `communicationFormat`: **soap**. + * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. * @return the current {@code CreateCompanyWebhookRequest} instance, allowing for method chaining */ public CreateCompanyWebhookRequest populateSoapActionHeader(Boolean populateSoapActionHeader) { @@ -798,11 +671,8 @@ public CreateCompanyWebhookRequest populateSoapActionHeader(Boolean populateSoap } /** - * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only - * applies if `communicationFormat`: **soap**. - * - * @return populateSoapActionHeader Indicates if the SOAP action header needs to be populated. - * Default value: **false**. Only applies if `communicationFormat`: **soap**. + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + * @return populateSoapActionHeader Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. */ @JsonProperty(JSON_PROPERTY_POPULATE_SOAP_ACTION_HEADER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -811,11 +681,9 @@ public Boolean getPopulateSoapActionHeader() { } /** - * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only - * applies if `communicationFormat`: **soap**. + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. * - * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. - * Default value: **false**. Only applies if `communicationFormat`: **soap**. + * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. */ @JsonProperty(JSON_PROPERTY_POPULATE_SOAP_ACTION_HEADER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -824,28 +692,9 @@ public void setPopulateSoapActionHeader(Boolean populateSoapActionHeader) { } /** - * The type of webhook that is being created. Possible values are: - **standard** - - * **account-settings-notification** - **banktransfer-notification** - - * **boletobancario-notification** - **directdebit-notification** - - * **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - - * **pending-notification** - **ideal-notification** - **ideal-pending-notification** - - * **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** - * Find out more about [standard - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and - * [other types of - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). * - * @param type The type of webhook that is being created. Possible values are: - **standard** - - * **account-settings-notification** - **banktransfer-notification** - - * **boletobancario-notification** - **directdebit-notification** - - * **ach-notification-of-change-notification** - - * **direct-debit-notice-of-change-notification** - **pending-notification** - - * **ideal-notification** - **ideal-pending-notification** - **report-notification** - - * **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about - * [standard - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) - * and [other types of - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * @param type The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). * @return the current {@code CreateCompanyWebhookRequest} instance, allowing for method chaining */ public CreateCompanyWebhookRequest type(String type) { @@ -854,28 +703,8 @@ public CreateCompanyWebhookRequest type(String type) { } /** - * The type of webhook that is being created. Possible values are: - **standard** - - * **account-settings-notification** - **banktransfer-notification** - - * **boletobancario-notification** - **directdebit-notification** - - * **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - - * **pending-notification** - **ideal-notification** - **ideal-pending-notification** - - * **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** - * Find out more about [standard - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and - * [other types of - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). - * - * @return type The type of webhook that is being created. Possible values are: - **standard** - - * **account-settings-notification** - **banktransfer-notification** - - * **boletobancario-notification** - **directdebit-notification** - - * **ach-notification-of-change-notification** - - * **direct-debit-notice-of-change-notification** - **pending-notification** - - * **ideal-notification** - **ideal-pending-notification** - **report-notification** - - * **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about - * [standard - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) - * and [other types of - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * @return type The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -884,28 +713,9 @@ public String getType() { } /** - * The type of webhook that is being created. Possible values are: - **standard** - - * **account-settings-notification** - **banktransfer-notification** - - * **boletobancario-notification** - **directdebit-notification** - - * **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - - * **pending-notification** - **ideal-notification** - **ideal-pending-notification** - - * **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** - * Find out more about [standard - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and - * [other types of - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). * - * @param type The type of webhook that is being created. Possible values are: - **standard** - - * **account-settings-notification** - **banktransfer-notification** - - * **boletobancario-notification** - **directdebit-notification** - - * **ach-notification-of-change-notification** - - * **direct-debit-notice-of-change-notification** - **pending-notification** - - * **ideal-notification** - **ideal-pending-notification** - **report-notification** - - * **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about - * [standard - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) - * and [other types of - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * @param type The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -914,11 +724,9 @@ public void setType(String type) { } /** - * Public URL where webhooks will be sent, for example - * **https://www.domain.com/webhook-endpoint**. + * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. * - * @param url Public URL where webhooks will be sent, for example - * **https://www.domain.com/webhook-endpoint**. + * @param url Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. * @return the current {@code CreateCompanyWebhookRequest} instance, allowing for method chaining */ public CreateCompanyWebhookRequest url(String url) { @@ -927,11 +735,8 @@ public CreateCompanyWebhookRequest url(String url) { } /** - * Public URL where webhooks will be sent, for example - * **https://www.domain.com/webhook-endpoint**. - * - * @return url Public URL where webhooks will be sent, for example - * **https://www.domain.com/webhook-endpoint**. + * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + * @return url Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. */ @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -940,11 +745,9 @@ public String getUrl() { } /** - * Public URL where webhooks will be sent, for example - * **https://www.domain.com/webhook-endpoint**. + * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. * - * @param url Public URL where webhooks will be sent, for example - * **https://www.domain.com/webhook-endpoint**. + * @param url Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. */ @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -965,7 +768,6 @@ public CreateCompanyWebhookRequest username(String username) { /** * Username to access the webhook URL. - * * @return username Username to access the webhook URL. */ @JsonProperty(JSON_PROPERTY_USERNAME) @@ -985,7 +787,9 @@ public void setUsername(String username) { this.username = username; } - /** Return true if this CreateCompanyWebhookRequest object is equal to o. */ + /** + * Return true if this CreateCompanyWebhookRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -995,84 +799,46 @@ public boolean equals(Object o) { return false; } CreateCompanyWebhookRequest createCompanyWebhookRequest = (CreateCompanyWebhookRequest) o; - return Objects.equals( - this.acceptsExpiredCertificate, createCompanyWebhookRequest.acceptsExpiredCertificate) - && Objects.equals( - this.acceptsSelfSignedCertificate, - createCompanyWebhookRequest.acceptsSelfSignedCertificate) - && Objects.equals( - this.acceptsUntrustedRootCertificate, - createCompanyWebhookRequest.acceptsUntrustedRootCertificate) - && Objects.equals(this.active, createCompanyWebhookRequest.active) - && Objects.equals(this.additionalSettings, createCompanyWebhookRequest.additionalSettings) - && Objects.equals(this.communicationFormat, createCompanyWebhookRequest.communicationFormat) - && Objects.equals(this.description, createCompanyWebhookRequest.description) - && Objects.equals(this.encryptionProtocol, createCompanyWebhookRequest.encryptionProtocol) - && Objects.equals( - this.filterMerchantAccountType, createCompanyWebhookRequest.filterMerchantAccountType) - && Objects.equals( - this.filterMerchantAccounts, createCompanyWebhookRequest.filterMerchantAccounts) - && Objects.equals(this.networkType, createCompanyWebhookRequest.networkType) - && Objects.equals(this.password, createCompanyWebhookRequest.password) - && Objects.equals( - this.populateSoapActionHeader, createCompanyWebhookRequest.populateSoapActionHeader) - && Objects.equals(this.type, createCompanyWebhookRequest.type) - && Objects.equals(this.url, createCompanyWebhookRequest.url) - && Objects.equals(this.username, createCompanyWebhookRequest.username); + return Objects.equals(this.acceptsExpiredCertificate, createCompanyWebhookRequest.acceptsExpiredCertificate) && + Objects.equals(this.acceptsSelfSignedCertificate, createCompanyWebhookRequest.acceptsSelfSignedCertificate) && + Objects.equals(this.acceptsUntrustedRootCertificate, createCompanyWebhookRequest.acceptsUntrustedRootCertificate) && + Objects.equals(this.active, createCompanyWebhookRequest.active) && + Objects.equals(this.additionalSettings, createCompanyWebhookRequest.additionalSettings) && + Objects.equals(this.communicationFormat, createCompanyWebhookRequest.communicationFormat) && + Objects.equals(this.description, createCompanyWebhookRequest.description) && + Objects.equals(this.encryptionProtocol, createCompanyWebhookRequest.encryptionProtocol) && + Objects.equals(this.filterMerchantAccountType, createCompanyWebhookRequest.filterMerchantAccountType) && + Objects.equals(this.filterMerchantAccounts, createCompanyWebhookRequest.filterMerchantAccounts) && + Objects.equals(this.networkType, createCompanyWebhookRequest.networkType) && + Objects.equals(this.password, createCompanyWebhookRequest.password) && + Objects.equals(this.populateSoapActionHeader, createCompanyWebhookRequest.populateSoapActionHeader) && + Objects.equals(this.type, createCompanyWebhookRequest.type) && + Objects.equals(this.url, createCompanyWebhookRequest.url) && + Objects.equals(this.username, createCompanyWebhookRequest.username); } @Override public int hashCode() { - return Objects.hash( - acceptsExpiredCertificate, - acceptsSelfSignedCertificate, - acceptsUntrustedRootCertificate, - active, - additionalSettings, - communicationFormat, - description, - encryptionProtocol, - filterMerchantAccountType, - filterMerchantAccounts, - networkType, - password, - populateSoapActionHeader, - type, - url, - username); + return Objects.hash(acceptsExpiredCertificate, acceptsSelfSignedCertificate, acceptsUntrustedRootCertificate, active, additionalSettings, communicationFormat, description, encryptionProtocol, filterMerchantAccountType, filterMerchantAccounts, networkType, password, populateSoapActionHeader, type, url, username); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateCompanyWebhookRequest {\n"); - sb.append(" acceptsExpiredCertificate: ") - .append(toIndentedString(acceptsExpiredCertificate)) - .append("\n"); - sb.append(" acceptsSelfSignedCertificate: ") - .append(toIndentedString(acceptsSelfSignedCertificate)) - .append("\n"); - sb.append(" acceptsUntrustedRootCertificate: ") - .append(toIndentedString(acceptsUntrustedRootCertificate)) - .append("\n"); + sb.append(" acceptsExpiredCertificate: ").append(toIndentedString(acceptsExpiredCertificate)).append("\n"); + sb.append(" acceptsSelfSignedCertificate: ").append(toIndentedString(acceptsSelfSignedCertificate)).append("\n"); + sb.append(" acceptsUntrustedRootCertificate: ").append(toIndentedString(acceptsUntrustedRootCertificate)).append("\n"); sb.append(" active: ").append(toIndentedString(active)).append("\n"); sb.append(" additionalSettings: ").append(toIndentedString(additionalSettings)).append("\n"); - sb.append(" communicationFormat: ") - .append(toIndentedString(communicationFormat)) - .append("\n"); + sb.append(" communicationFormat: ").append(toIndentedString(communicationFormat)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" encryptionProtocol: ").append(toIndentedString(encryptionProtocol)).append("\n"); - sb.append(" filterMerchantAccountType: ") - .append(toIndentedString(filterMerchantAccountType)) - .append("\n"); - sb.append(" filterMerchantAccounts: ") - .append(toIndentedString(filterMerchantAccounts)) - .append("\n"); + sb.append(" filterMerchantAccountType: ").append(toIndentedString(filterMerchantAccountType)).append("\n"); + sb.append(" filterMerchantAccounts: ").append(toIndentedString(filterMerchantAccounts)).append("\n"); sb.append(" networkType: ").append(toIndentedString(networkType)).append("\n"); sb.append(" password: ").append(toIndentedString(password)).append("\n"); - sb.append(" populateSoapActionHeader: ") - .append(toIndentedString(populateSoapActionHeader)) - .append("\n"); + sb.append(" populateSoapActionHeader: ").append(toIndentedString(populateSoapActionHeader)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" username: ").append(toIndentedString(username)).append("\n"); @@ -1081,7 +847,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1090,24 +857,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CreateCompanyWebhookRequest given an JSON string * * @param jsonString JSON string * @return An instance of CreateCompanyWebhookRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreateCompanyWebhookRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to CreateCompanyWebhookRequest */ - public static CreateCompanyWebhookRequest fromJson(String jsonString) - throws JsonProcessingException { + public static CreateCompanyWebhookRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateCompanyWebhookRequest.class); } - - /** - * Convert an instance of CreateCompanyWebhookRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CreateCompanyWebhookRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CreateMerchantApiCredentialRequest.java b/src/main/java/com/adyen/model/management/CreateMerchantApiCredentialRequest.java index 2f313925b..4525ca690 100644 --- a/src/main/java/com/adyen/model/management/CreateMerchantApiCredentialRequest.java +++ b/src/main/java/com/adyen/model/management/CreateMerchantApiCredentialRequest.java @@ -2,29 +2,39 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CreateMerchantApiCredentialRequest */ +/** + * CreateMerchantApiCredentialRequest + */ @JsonPropertyOrder({ CreateMerchantApiCredentialRequest.JSON_PROPERTY_ALLOWED_ORIGINS, CreateMerchantApiCredentialRequest.JSON_PROPERTY_DESCRIPTION, CreateMerchantApiCredentialRequest.JSON_PROPERTY_ROLES }) + public class CreateMerchantApiCredentialRequest { public static final String JSON_PROPERTY_ALLOWED_ORIGINS = "allowedOrigins"; private List allowedOrigins; @@ -35,18 +45,14 @@ public class CreateMerchantApiCredentialRequest { public static final String JSON_PROPERTY_ROLES = "roles"; private List roles; - public CreateMerchantApiCredentialRequest() {} + public CreateMerchantApiCredentialRequest() { + } /** - * The list of [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * for the new API credential. + * The list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential. * - * @param allowedOrigins The list of [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * for the new API credential. - * @return the current {@code CreateMerchantApiCredentialRequest} instance, allowing for method - * chaining + * @param allowedOrigins The list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential. + * @return the current {@code CreateMerchantApiCredentialRequest} instance, allowing for method chaining */ public CreateMerchantApiCredentialRequest allowedOrigins(List allowedOrigins) { this.allowedOrigins = allowedOrigins; @@ -62,13 +68,8 @@ public CreateMerchantApiCredentialRequest addAllowedOriginsItem(String allowedOr } /** - * The list of [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * for the new API credential. - * - * @return allowedOrigins The list of [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * for the new API credential. + * The list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential. + * @return allowedOrigins The list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -77,13 +78,9 @@ public List getAllowedOrigins() { } /** - * The list of [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * for the new API credential. + * The list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential. * - * @param allowedOrigins The list of [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * for the new API credential. + * @param allowedOrigins The list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -95,8 +92,7 @@ public void setAllowedOrigins(List allowedOrigins) { * Description of the API credential. * * @param description Description of the API credential. - * @return the current {@code CreateMerchantApiCredentialRequest} instance, allowing for method - * chaining + * @return the current {@code CreateMerchantApiCredentialRequest} instance, allowing for method chaining */ public CreateMerchantApiCredentialRequest description(String description) { this.description = description; @@ -105,7 +101,6 @@ public CreateMerchantApiCredentialRequest description(String description) { /** * Description of the API credential. - * * @return description Description of the API credential. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -126,16 +121,10 @@ public void setDescription(String description) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the - * API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned - * to other API credentials. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. * - * @param roles List of - * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API - * credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned - * to other API credentials. - * @return the current {@code CreateMerchantApiCredentialRequest} instance, allowing for method - * chaining + * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. + * @return the current {@code CreateMerchantApiCredentialRequest} instance, allowing for method chaining */ public CreateMerchantApiCredentialRequest roles(List roles) { this.roles = roles; @@ -151,14 +140,8 @@ public CreateMerchantApiCredentialRequest addRolesItem(String rolesItem) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the - * API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned - * to other API credentials. - * - * @return roles List of - * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API - * credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned - * to other API credentials. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. + * @return roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,14 +150,9 @@ public List getRoles() { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the - * API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned - * to other API credentials. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. * - * @param roles List of - * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API - * credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned - * to other API credentials. + * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,7 +160,9 @@ public void setRoles(List roles) { this.roles = roles; } - /** Return true if this CreateMerchantApiCredentialRequest object is equal to o. */ + /** + * Return true if this CreateMerchantApiCredentialRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -191,11 +171,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CreateMerchantApiCredentialRequest createMerchantApiCredentialRequest = - (CreateMerchantApiCredentialRequest) o; - return Objects.equals(this.allowedOrigins, createMerchantApiCredentialRequest.allowedOrigins) - && Objects.equals(this.description, createMerchantApiCredentialRequest.description) - && Objects.equals(this.roles, createMerchantApiCredentialRequest.roles); + CreateMerchantApiCredentialRequest createMerchantApiCredentialRequest = (CreateMerchantApiCredentialRequest) o; + return Objects.equals(this.allowedOrigins, createMerchantApiCredentialRequest.allowedOrigins) && + Objects.equals(this.description, createMerchantApiCredentialRequest.description) && + Objects.equals(this.roles, createMerchantApiCredentialRequest.roles); } @Override @@ -215,7 +194,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,24 +204,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CreateMerchantApiCredentialRequest given an JSON string * * @param jsonString JSON string * @return An instance of CreateMerchantApiCredentialRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreateMerchantApiCredentialRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to CreateMerchantApiCredentialRequest */ - public static CreateMerchantApiCredentialRequest fromJson(String jsonString) - throws JsonProcessingException { + public static CreateMerchantApiCredentialRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateMerchantApiCredentialRequest.class); } - - /** - * Convert an instance of CreateMerchantApiCredentialRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CreateMerchantApiCredentialRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CreateMerchantRequest.java b/src/main/java/com/adyen/model/management/CreateMerchantRequest.java index 624ca2f9f..d59b52d79 100644 --- a/src/main/java/com/adyen/model/management/CreateMerchantRequest.java +++ b/src/main/java/com/adyen/model/management/CreateMerchantRequest.java @@ -2,24 +2,33 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CreateMerchantRequest */ +/** + * CreateMerchantRequest + */ @JsonPropertyOrder({ CreateMerchantRequest.JSON_PROPERTY_BUSINESS_LINE_ID, CreateMerchantRequest.JSON_PROPERTY_COMPANY_ID, @@ -29,6 +38,7 @@ CreateMerchantRequest.JSON_PROPERTY_REFERENCE, CreateMerchantRequest.JSON_PROPERTY_SALES_CHANNELS }) + public class CreateMerchantRequest { public static final String JSON_PROPERTY_BUSINESS_LINE_ID = "businessLineId"; private String businessLineId; @@ -51,16 +61,13 @@ public class CreateMerchantRequest { public static final String JSON_PROPERTY_SALES_CHANNELS = "salesChannels"; private List salesChannels; - public CreateMerchantRequest() {} + public CreateMerchantRequest() { + } /** - * The unique identifier of the [business - * line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). Required - * for an Adyen for Platforms Manage integration. + * The unique identifier of the [business line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). Required for an Adyen for Platforms Manage integration. * - * @param businessLineId The unique identifier of the [business - * line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). - * Required for an Adyen for Platforms Manage integration. + * @param businessLineId The unique identifier of the [business line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). Required for an Adyen for Platforms Manage integration. * @return the current {@code CreateMerchantRequest} instance, allowing for method chaining */ public CreateMerchantRequest businessLineId(String businessLineId) { @@ -69,13 +76,8 @@ public CreateMerchantRequest businessLineId(String businessLineId) { } /** - * The unique identifier of the [business - * line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). Required - * for an Adyen for Platforms Manage integration. - * - * @return businessLineId The unique identifier of the [business - * line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). - * Required for an Adyen for Platforms Manage integration. + * The unique identifier of the [business line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). Required for an Adyen for Platforms Manage integration. + * @return businessLineId The unique identifier of the [business line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). Required for an Adyen for Platforms Manage integration. */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -84,13 +86,9 @@ public String getBusinessLineId() { } /** - * The unique identifier of the [business - * line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). Required - * for an Adyen for Platforms Manage integration. + * The unique identifier of the [business line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). Required for an Adyen for Platforms Manage integration. * - * @param businessLineId The unique identifier of the [business - * line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). - * Required for an Adyen for Platforms Manage integration. + * @param businessLineId The unique identifier of the [business line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). Required for an Adyen for Platforms Manage integration. */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,7 +109,6 @@ public CreateMerchantRequest companyId(String companyId) { /** * The unique identifier of the company account. - * * @return companyId The unique identifier of the company account. */ @JsonProperty(JSON_PROPERTY_COMPANY_ID) @@ -144,7 +141,6 @@ public CreateMerchantRequest description(String description) { /** * Your description for the merchant account, maximum 300 characters. - * * @return description Your description for the merchant account, maximum 300 characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -165,13 +161,9 @@ public void setDescription(String description) { } /** - * The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). Required - * for an Adyen for Platforms Manage integration. + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). Required for an Adyen for Platforms Manage integration. * - * @param legalEntityId The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). - * Required for an Adyen for Platforms Manage integration. + * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). Required for an Adyen for Platforms Manage integration. * @return the current {@code CreateMerchantRequest} instance, allowing for method chaining */ public CreateMerchantRequest legalEntityId(String legalEntityId) { @@ -180,13 +172,8 @@ public CreateMerchantRequest legalEntityId(String legalEntityId) { } /** - * The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). Required - * for an Adyen for Platforms Manage integration. - * - * @return legalEntityId The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). - * Required for an Adyen for Platforms Manage integration. + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). Required for an Adyen for Platforms Manage integration. + * @return legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). Required for an Adyen for Platforms Manage integration. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,13 +182,9 @@ public String getLegalEntityId() { } /** - * The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). Required - * for an Adyen for Platforms Manage integration. + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). Required for an Adyen for Platforms Manage integration. * - * @param legalEntityId The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). - * Required for an Adyen for Platforms Manage integration. + * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). Required for an Adyen for Platforms Manage integration. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -210,11 +193,9 @@ public void setLegalEntityId(String legalEntityId) { } /** - * Sets the pricing plan for the merchant account. Required for an Adyen for Platforms Manage - * integration. Your Adyen contact will provide the values that you can use. + * Sets the pricing plan for the merchant account. Required for an Adyen for Platforms Manage integration. Your Adyen contact will provide the values that you can use. * - * @param pricingPlan Sets the pricing plan for the merchant account. Required for an Adyen for - * Platforms Manage integration. Your Adyen contact will provide the values that you can use. + * @param pricingPlan Sets the pricing plan for the merchant account. Required for an Adyen for Platforms Manage integration. Your Adyen contact will provide the values that you can use. * @return the current {@code CreateMerchantRequest} instance, allowing for method chaining */ public CreateMerchantRequest pricingPlan(String pricingPlan) { @@ -223,11 +204,8 @@ public CreateMerchantRequest pricingPlan(String pricingPlan) { } /** - * Sets the pricing plan for the merchant account. Required for an Adyen for Platforms Manage - * integration. Your Adyen contact will provide the values that you can use. - * - * @return pricingPlan Sets the pricing plan for the merchant account. Required for an Adyen for - * Platforms Manage integration. Your Adyen contact will provide the values that you can use. + * Sets the pricing plan for the merchant account. Required for an Adyen for Platforms Manage integration. Your Adyen contact will provide the values that you can use. + * @return pricingPlan Sets the pricing plan for the merchant account. Required for an Adyen for Platforms Manage integration. Your Adyen contact will provide the values that you can use. */ @JsonProperty(JSON_PROPERTY_PRICING_PLAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -236,11 +214,9 @@ public String getPricingPlan() { } /** - * Sets the pricing plan for the merchant account. Required for an Adyen for Platforms Manage - * integration. Your Adyen contact will provide the values that you can use. + * Sets the pricing plan for the merchant account. Required for an Adyen for Platforms Manage integration. Your Adyen contact will provide the values that you can use. * - * @param pricingPlan Sets the pricing plan for the merchant account. Required for an Adyen for - * Platforms Manage integration. Your Adyen contact will provide the values that you can use. + * @param pricingPlan Sets the pricing plan for the merchant account. Required for an Adyen for Platforms Manage integration. Your Adyen contact will provide the values that you can use. */ @JsonProperty(JSON_PROPERTY_PRICING_PLAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -249,17 +225,9 @@ public void setPricingPlan(String pricingPlan) { } /** - * Your reference for the merchant account. To make this reference the unique identifier of the - * merchant account, your Adyen contact can set up a template on your company account. The - * template can have 6 to 255 characters with upper- and lower-case letters, underscores, and - * numbers. When your company account has a template, then the `reference` is required - * and must be unique within the company account. + * Your reference for the merchant account. To make this reference the unique identifier of the merchant account, your Adyen contact can set up a template on your company account. The template can have 6 to 255 characters with upper- and lower-case letters, underscores, and numbers. When your company account has a template, then the `reference` is required and must be unique within the company account. * - * @param reference Your reference for the merchant account. To make this reference the unique - * identifier of the merchant account, your Adyen contact can set up a template on your - * company account. The template can have 6 to 255 characters with upper- and lower-case - * letters, underscores, and numbers. When your company account has a template, then the - * `reference` is required and must be unique within the company account. + * @param reference Your reference for the merchant account. To make this reference the unique identifier of the merchant account, your Adyen contact can set up a template on your company account. The template can have 6 to 255 characters with upper- and lower-case letters, underscores, and numbers. When your company account has a template, then the `reference` is required and must be unique within the company account. * @return the current {@code CreateMerchantRequest} instance, allowing for method chaining */ public CreateMerchantRequest reference(String reference) { @@ -268,17 +236,8 @@ public CreateMerchantRequest reference(String reference) { } /** - * Your reference for the merchant account. To make this reference the unique identifier of the - * merchant account, your Adyen contact can set up a template on your company account. The - * template can have 6 to 255 characters with upper- and lower-case letters, underscores, and - * numbers. When your company account has a template, then the `reference` is required - * and must be unique within the company account. - * - * @return reference Your reference for the merchant account. To make this reference the unique - * identifier of the merchant account, your Adyen contact can set up a template on your - * company account. The template can have 6 to 255 characters with upper- and lower-case - * letters, underscores, and numbers. When your company account has a template, then the - * `reference` is required and must be unique within the company account. + * Your reference for the merchant account. To make this reference the unique identifier of the merchant account, your Adyen contact can set up a template on your company account. The template can have 6 to 255 characters with upper- and lower-case letters, underscores, and numbers. When your company account has a template, then the `reference` is required and must be unique within the company account. + * @return reference Your reference for the merchant account. To make this reference the unique identifier of the merchant account, your Adyen contact can set up a template on your company account. The template can have 6 to 255 characters with upper- and lower-case letters, underscores, and numbers. When your company account has a template, then the `reference` is required and must be unique within the company account. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -287,17 +246,9 @@ public String getReference() { } /** - * Your reference for the merchant account. To make this reference the unique identifier of the - * merchant account, your Adyen contact can set up a template on your company account. The - * template can have 6 to 255 characters with upper- and lower-case letters, underscores, and - * numbers. When your company account has a template, then the `reference` is required - * and must be unique within the company account. + * Your reference for the merchant account. To make this reference the unique identifier of the merchant account, your Adyen contact can set up a template on your company account. The template can have 6 to 255 characters with upper- and lower-case letters, underscores, and numbers. When your company account has a template, then the `reference` is required and must be unique within the company account. * - * @param reference Your reference for the merchant account. To make this reference the unique - * identifier of the merchant account, your Adyen contact can set up a template on your - * company account. The template can have 6 to 255 characters with upper- and lower-case - * letters, underscores, and numbers. When your company account has a template, then the - * `reference` is required and must be unique within the company account. + * @param reference Your reference for the merchant account. To make this reference the unique identifier of the merchant account, your Adyen contact can set up a template on your company account. The template can have 6 to 255 characters with upper- and lower-case letters, underscores, and numbers. When your company account has a template, then the `reference` is required and must be unique within the company account. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -326,7 +277,6 @@ public CreateMerchantRequest addSalesChannelsItem(String salesChannelsItem) { /** * List of sales channels that the merchant will process payments with - * * @return salesChannels List of sales channels that the merchant will process payments with */ @JsonProperty(JSON_PROPERTY_SALES_CHANNELS) @@ -346,7 +296,9 @@ public void setSalesChannels(List salesChannels) { this.salesChannels = salesChannels; } - /** Return true if this CreateMerchantRequest object is equal to o. */ + /** + * Return true if this CreateMerchantRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -356,25 +308,18 @@ public boolean equals(Object o) { return false; } CreateMerchantRequest createMerchantRequest = (CreateMerchantRequest) o; - return Objects.equals(this.businessLineId, createMerchantRequest.businessLineId) - && Objects.equals(this.companyId, createMerchantRequest.companyId) - && Objects.equals(this.description, createMerchantRequest.description) - && Objects.equals(this.legalEntityId, createMerchantRequest.legalEntityId) - && Objects.equals(this.pricingPlan, createMerchantRequest.pricingPlan) - && Objects.equals(this.reference, createMerchantRequest.reference) - && Objects.equals(this.salesChannels, createMerchantRequest.salesChannels); + return Objects.equals(this.businessLineId, createMerchantRequest.businessLineId) && + Objects.equals(this.companyId, createMerchantRequest.companyId) && + Objects.equals(this.description, createMerchantRequest.description) && + Objects.equals(this.legalEntityId, createMerchantRequest.legalEntityId) && + Objects.equals(this.pricingPlan, createMerchantRequest.pricingPlan) && + Objects.equals(this.reference, createMerchantRequest.reference) && + Objects.equals(this.salesChannels, createMerchantRequest.salesChannels); } @Override public int hashCode() { - return Objects.hash( - businessLineId, - companyId, - description, - legalEntityId, - pricingPlan, - reference, - salesChannels); + return Objects.hash(businessLineId, companyId, description, legalEntityId, pricingPlan, reference, salesChannels); } @Override @@ -393,7 +338,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -402,23 +348,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CreateMerchantRequest given an JSON string * * @param jsonString JSON string * @return An instance of CreateMerchantRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreateMerchantRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to CreateMerchantRequest */ public static CreateMerchantRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateMerchantRequest.class); } - - /** - * Convert an instance of CreateMerchantRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CreateMerchantRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CreateMerchantResponse.java b/src/main/java/com/adyen/model/management/CreateMerchantResponse.java index 99288a57b..c8286d399 100644 --- a/src/main/java/com/adyen/model/management/CreateMerchantResponse.java +++ b/src/main/java/com/adyen/model/management/CreateMerchantResponse.java @@ -2,22 +2,31 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** CreateMerchantResponse */ + +/** + * CreateMerchantResponse + */ @JsonPropertyOrder({ CreateMerchantResponse.JSON_PROPERTY_BUSINESS_LINE_ID, CreateMerchantResponse.JSON_PROPERTY_COMPANY_ID, @@ -27,6 +36,7 @@ CreateMerchantResponse.JSON_PROPERTY_PRICING_PLAN, CreateMerchantResponse.JSON_PROPERTY_REFERENCE }) + public class CreateMerchantResponse { public static final String JSON_PROPERTY_BUSINESS_LINE_ID = "businessLineId"; private String businessLineId; @@ -49,14 +59,13 @@ public class CreateMerchantResponse { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public CreateMerchantResponse() {} + public CreateMerchantResponse() { + } /** - * The unique identifier of the [business - * line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). + * The unique identifier of the [business line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). * - * @param businessLineId The unique identifier of the [business - * line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). + * @param businessLineId The unique identifier of the [business line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). * @return the current {@code CreateMerchantResponse} instance, allowing for method chaining */ public CreateMerchantResponse businessLineId(String businessLineId) { @@ -65,11 +74,8 @@ public CreateMerchantResponse businessLineId(String businessLineId) { } /** - * The unique identifier of the [business - * line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). - * - * @return businessLineId The unique identifier of the [business - * line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). + * The unique identifier of the [business line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). + * @return businessLineId The unique identifier of the [business line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -78,11 +84,9 @@ public String getBusinessLineId() { } /** - * The unique identifier of the [business - * line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). + * The unique identifier of the [business line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). * - * @param businessLineId The unique identifier of the [business - * line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). + * @param businessLineId The unique identifier of the [business line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -103,7 +107,6 @@ public CreateMerchantResponse companyId(String companyId) { /** * The unique identifier of the company account. - * * @return companyId The unique identifier of the company account. */ @JsonProperty(JSON_PROPERTY_COMPANY_ID) @@ -136,7 +139,6 @@ public CreateMerchantResponse description(String description) { /** * Your description for the merchant account, maximum 300 characters. - * * @return description Your description for the merchant account, maximum 300 characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -157,14 +159,9 @@ public void setDescription(String description) { } /** - * The unique identifier of the merchant account. If Adyen set up a template for the - * `reference`, then the `id` will have the same value as the - * `reference` that you sent in the request. Otherwise, the value is generated by Adyen. + * The unique identifier of the merchant account. If Adyen set up a template for the `reference`, then the `id` will have the same value as the `reference` that you sent in the request. Otherwise, the value is generated by Adyen. * - * @param id The unique identifier of the merchant account. If Adyen set up a template for the - * `reference`, then the `id` will have the same value as the - * `reference` that you sent in the request. Otherwise, the value is generated by - * Adyen. + * @param id The unique identifier of the merchant account. If Adyen set up a template for the `reference`, then the `id` will have the same value as the `reference` that you sent in the request. Otherwise, the value is generated by Adyen. * @return the current {@code CreateMerchantResponse} instance, allowing for method chaining */ public CreateMerchantResponse id(String id) { @@ -173,14 +170,8 @@ public CreateMerchantResponse id(String id) { } /** - * The unique identifier of the merchant account. If Adyen set up a template for the - * `reference`, then the `id` will have the same value as the - * `reference` that you sent in the request. Otherwise, the value is generated by Adyen. - * - * @return id The unique identifier of the merchant account. If Adyen set up a template for the - * `reference`, then the `id` will have the same value as the - * `reference` that you sent in the request. Otherwise, the value is generated by - * Adyen. + * The unique identifier of the merchant account. If Adyen set up a template for the `reference`, then the `id` will have the same value as the `reference` that you sent in the request. Otherwise, the value is generated by Adyen. + * @return id The unique identifier of the merchant account. If Adyen set up a template for the `reference`, then the `id` will have the same value as the `reference` that you sent in the request. Otherwise, the value is generated by Adyen. */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,14 +180,9 @@ public String getId() { } /** - * The unique identifier of the merchant account. If Adyen set up a template for the - * `reference`, then the `id` will have the same value as the - * `reference` that you sent in the request. Otherwise, the value is generated by Adyen. + * The unique identifier of the merchant account. If Adyen set up a template for the `reference`, then the `id` will have the same value as the `reference` that you sent in the request. Otherwise, the value is generated by Adyen. * - * @param id The unique identifier of the merchant account. If Adyen set up a template for the - * `reference`, then the `id` will have the same value as the - * `reference` that you sent in the request. Otherwise, the value is generated by - * Adyen. + * @param id The unique identifier of the merchant account. If Adyen set up a template for the `reference`, then the `id` will have the same value as the `reference` that you sent in the request. Otherwise, the value is generated by Adyen. */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -205,11 +191,9 @@ public void setId(String id) { } /** - * The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). * - * @param legalEntityId The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). + * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). * @return the current {@code CreateMerchantResponse} instance, allowing for method chaining */ public CreateMerchantResponse legalEntityId(String legalEntityId) { @@ -218,11 +202,8 @@ public CreateMerchantResponse legalEntityId(String legalEntityId) { } /** - * The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). - * - * @return legalEntityId The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). + * @return legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -231,11 +212,9 @@ public String getLegalEntityId() { } /** - * The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). * - * @param legalEntityId The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). + * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,11 +223,9 @@ public void setLegalEntityId(String legalEntityId) { } /** - * Partner pricing plan for the merchant, applicable for merchants under AfP managed company - * accounts. + * Partner pricing plan for the merchant, applicable for merchants under AfP managed company accounts. * - * @param pricingPlan Partner pricing plan for the merchant, applicable for merchants under AfP - * managed company accounts. + * @param pricingPlan Partner pricing plan for the merchant, applicable for merchants under AfP managed company accounts. * @return the current {@code CreateMerchantResponse} instance, allowing for method chaining */ public CreateMerchantResponse pricingPlan(String pricingPlan) { @@ -257,11 +234,8 @@ public CreateMerchantResponse pricingPlan(String pricingPlan) { } /** - * Partner pricing plan for the merchant, applicable for merchants under AfP managed company - * accounts. - * - * @return pricingPlan Partner pricing plan for the merchant, applicable for merchants under AfP - * managed company accounts. + * Partner pricing plan for the merchant, applicable for merchants under AfP managed company accounts. + * @return pricingPlan Partner pricing plan for the merchant, applicable for merchants under AfP managed company accounts. */ @JsonProperty(JSON_PROPERTY_PRICING_PLAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -270,11 +244,9 @@ public String getPricingPlan() { } /** - * Partner pricing plan for the merchant, applicable for merchants under AfP managed company - * accounts. + * Partner pricing plan for the merchant, applicable for merchants under AfP managed company accounts. * - * @param pricingPlan Partner pricing plan for the merchant, applicable for merchants under AfP - * managed company accounts. + * @param pricingPlan Partner pricing plan for the merchant, applicable for merchants under AfP managed company accounts. */ @JsonProperty(JSON_PROPERTY_PRICING_PLAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -295,7 +267,6 @@ public CreateMerchantResponse reference(String reference) { /** * Your reference for the merchant account. - * * @return reference Your reference for the merchant account. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -315,7 +286,9 @@ public void setReference(String reference) { this.reference = reference; } - /** Return true if this CreateMerchantResponse object is equal to o. */ + /** + * Return true if this CreateMerchantResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -325,19 +298,18 @@ public boolean equals(Object o) { return false; } CreateMerchantResponse createMerchantResponse = (CreateMerchantResponse) o; - return Objects.equals(this.businessLineId, createMerchantResponse.businessLineId) - && Objects.equals(this.companyId, createMerchantResponse.companyId) - && Objects.equals(this.description, createMerchantResponse.description) - && Objects.equals(this.id, createMerchantResponse.id) - && Objects.equals(this.legalEntityId, createMerchantResponse.legalEntityId) - && Objects.equals(this.pricingPlan, createMerchantResponse.pricingPlan) - && Objects.equals(this.reference, createMerchantResponse.reference); + return Objects.equals(this.businessLineId, createMerchantResponse.businessLineId) && + Objects.equals(this.companyId, createMerchantResponse.companyId) && + Objects.equals(this.description, createMerchantResponse.description) && + Objects.equals(this.id, createMerchantResponse.id) && + Objects.equals(this.legalEntityId, createMerchantResponse.legalEntityId) && + Objects.equals(this.pricingPlan, createMerchantResponse.pricingPlan) && + Objects.equals(this.reference, createMerchantResponse.reference); } @Override public int hashCode() { - return Objects.hash( - businessLineId, companyId, description, id, legalEntityId, pricingPlan, reference); + return Objects.hash(businessLineId, companyId, description, id, legalEntityId, pricingPlan, reference); } @Override @@ -356,7 +328,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -365,23 +338,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CreateMerchantResponse given an JSON string * * @param jsonString JSON string * @return An instance of CreateMerchantResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreateMerchantResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to CreateMerchantResponse */ public static CreateMerchantResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateMerchantResponse.class); } - - /** - * Convert an instance of CreateMerchantResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CreateMerchantResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CreateMerchantUserRequest.java b/src/main/java/com/adyen/model/management/CreateMerchantUserRequest.java index 660bc0a8a..fe926ad87 100644 --- a/src/main/java/com/adyen/model/management/CreateMerchantUserRequest.java +++ b/src/main/java/com/adyen/model/management/CreateMerchantUserRequest.java @@ -2,24 +2,34 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.Name; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CreateMerchantUserRequest */ +/** + * CreateMerchantUserRequest + */ @JsonPropertyOrder({ CreateMerchantUserRequest.JSON_PROPERTY_ACCOUNT_GROUPS, CreateMerchantUserRequest.JSON_PROPERTY_EMAIL, @@ -29,6 +39,7 @@ CreateMerchantUserRequest.JSON_PROPERTY_TIME_ZONE_CODE, CreateMerchantUserRequest.JSON_PROPERTY_USERNAME }) + public class CreateMerchantUserRequest { public static final String JSON_PROPERTY_ACCOUNT_GROUPS = "accountGroups"; private List accountGroups; @@ -51,15 +62,13 @@ public class CreateMerchantUserRequest { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public CreateMerchantUserRequest() {} + public CreateMerchantUserRequest() { + } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) - * associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. * - * @param accountGroups The list of [account - * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with - * this user. + * @param accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. * @return the current {@code CreateMerchantUserRequest} instance, allowing for method chaining */ public CreateMerchantUserRequest accountGroups(List accountGroups) { @@ -76,12 +85,8 @@ public CreateMerchantUserRequest addAccountGroupsItem(String accountGroupsItem) } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) - * associated with this user. - * - * @return accountGroups The list of [account - * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with - * this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * @return accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -90,12 +95,9 @@ public List getAccountGroups() { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) - * associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. * - * @param accountGroups The list of [account - * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with - * this user. + * @param accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,7 +118,6 @@ public CreateMerchantUserRequest email(String email) { /** * The email address of the user. - * * @return email The email address of the user. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -137,13 +138,9 @@ public void setEmail(String email) { } /** - * The requested login method for the user. To use SSO, you must already have SSO configured with - * Adyen before creating the user. Possible values: **Username & account**, **Email**, or - * **SSO** + * The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** * - * @param loginMethod The requested login method for the user. To use SSO, you must already have - * SSO configured with Adyen before creating the user. Possible values: **Username & - * account**, **Email**, or **SSO** + * @param loginMethod The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** * @return the current {@code CreateMerchantUserRequest} instance, allowing for method chaining */ public CreateMerchantUserRequest loginMethod(String loginMethod) { @@ -152,13 +149,8 @@ public CreateMerchantUserRequest loginMethod(String loginMethod) { } /** - * The requested login method for the user. To use SSO, you must already have SSO configured with - * Adyen before creating the user. Possible values: **Username & account**, **Email**, or - * **SSO** - * - * @return loginMethod The requested login method for the user. To use SSO, you must already have - * SSO configured with Adyen before creating the user. Possible values: **Username & - * account**, **Email**, or **SSO** + * The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** + * @return loginMethod The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** */ @JsonProperty(JSON_PROPERTY_LOGIN_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,13 +159,9 @@ public String getLoginMethod() { } /** - * The requested login method for the user. To use SSO, you must already have SSO configured with - * Adyen before creating the user. Possible values: **Username & account**, **Email**, or - * **SSO** + * The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** * - * @param loginMethod The requested login method for the user. To use SSO, you must already have - * SSO configured with Adyen before creating the user. Possible values: **Username & - * account**, **Email**, or **SSO** + * @param loginMethod The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** */ @JsonProperty(JSON_PROPERTY_LOGIN_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -184,7 +172,7 @@ public void setLoginMethod(String loginMethod) { /** * name * - * @param name + * @param name * @return the current {@code CreateMerchantUserRequest} instance, allowing for method chaining */ public CreateMerchantUserRequest name(Name name) { @@ -194,8 +182,7 @@ public CreateMerchantUserRequest name(Name name) { /** * Get name - * - * @return name + * @return name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -206,7 +193,7 @@ public Name getName() { /** * name * - * @param name + * @param name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -235,7 +222,6 @@ public CreateMerchantUserRequest addRolesItem(String rolesItem) { /** * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. - * * @return roles The list of [roles](https://docs.adyen.com/account/user-roles) for this user. */ @JsonProperty(JSON_PROPERTY_ROLES) @@ -256,12 +242,9 @@ public void setRoles(List roles) { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the - * time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. * - * @param timeZoneCode The [tz database - * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the - * user. For example, **Europe/Amsterdam**. + * @param timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. * @return the current {@code CreateMerchantUserRequest} instance, allowing for method chaining */ public CreateMerchantUserRequest timeZoneCode(String timeZoneCode) { @@ -270,12 +253,8 @@ public CreateMerchantUserRequest timeZoneCode(String timeZoneCode) { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the - * time zone of the user. For example, **Europe/Amsterdam**. - * - * @return timeZoneCode The [tz database - * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the - * user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * @return timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,12 +263,9 @@ public String getTimeZoneCode() { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the - * time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. * - * @param timeZoneCode The [tz database - * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the - * user. For example, **Europe/Amsterdam**. + * @param timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -298,11 +274,9 @@ public void setTimeZoneCode(String timeZoneCode) { } /** - * The user's email address that will be their username. Must be the same as the one in the - * `email` field. + * The user's email address that will be their username. Must be the same as the one in the `email` field. * - * @param username The user's email address that will be their username. Must be the same as - * the one in the `email` field. + * @param username The user's email address that will be their username. Must be the same as the one in the `email` field. * @return the current {@code CreateMerchantUserRequest} instance, allowing for method chaining */ public CreateMerchantUserRequest username(String username) { @@ -311,11 +285,8 @@ public CreateMerchantUserRequest username(String username) { } /** - * The user's email address that will be their username. Must be the same as the one in the - * `email` field. - * - * @return username The user's email address that will be their username. Must be the same as - * the one in the `email` field. + * The user's email address that will be their username. Must be the same as the one in the `email` field. + * @return username The user's email address that will be their username. Must be the same as the one in the `email` field. */ @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -324,11 +295,9 @@ public String getUsername() { } /** - * The user's email address that will be their username. Must be the same as the one in the - * `email` field. + * The user's email address that will be their username. Must be the same as the one in the `email` field. * - * @param username The user's email address that will be their username. Must be the same as - * the one in the `email` field. + * @param username The user's email address that will be their username. Must be the same as the one in the `email` field. */ @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -336,7 +305,9 @@ public void setUsername(String username) { this.username = username; } - /** Return true if this CreateMerchantUserRequest object is equal to o. */ + /** + * Return true if this CreateMerchantUserRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -346,13 +317,13 @@ public boolean equals(Object o) { return false; } CreateMerchantUserRequest createMerchantUserRequest = (CreateMerchantUserRequest) o; - return Objects.equals(this.accountGroups, createMerchantUserRequest.accountGroups) - && Objects.equals(this.email, createMerchantUserRequest.email) - && Objects.equals(this.loginMethod, createMerchantUserRequest.loginMethod) - && Objects.equals(this.name, createMerchantUserRequest.name) - && Objects.equals(this.roles, createMerchantUserRequest.roles) - && Objects.equals(this.timeZoneCode, createMerchantUserRequest.timeZoneCode) - && Objects.equals(this.username, createMerchantUserRequest.username); + return Objects.equals(this.accountGroups, createMerchantUserRequest.accountGroups) && + Objects.equals(this.email, createMerchantUserRequest.email) && + Objects.equals(this.loginMethod, createMerchantUserRequest.loginMethod) && + Objects.equals(this.name, createMerchantUserRequest.name) && + Objects.equals(this.roles, createMerchantUserRequest.roles) && + Objects.equals(this.timeZoneCode, createMerchantUserRequest.timeZoneCode) && + Objects.equals(this.username, createMerchantUserRequest.username); } @Override @@ -376,7 +347,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -385,24 +357,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CreateMerchantUserRequest given an JSON string * * @param jsonString JSON string * @return An instance of CreateMerchantUserRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreateMerchantUserRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to CreateMerchantUserRequest */ - public static CreateMerchantUserRequest fromJson(String jsonString) - throws JsonProcessingException { + public static CreateMerchantUserRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateMerchantUserRequest.class); } - - /** - * Convert an instance of CreateMerchantUserRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CreateMerchantUserRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CreateMerchantWebhookRequest.java b/src/main/java/com/adyen/model/management/CreateMerchantWebhookRequest.java index 1e78bf263..1b74deed4 100644 --- a/src/main/java/com/adyen/model/management/CreateMerchantWebhookRequest.java +++ b/src/main/java/com/adyen/model/management/CreateMerchantWebhookRequest.java @@ -2,26 +2,32 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.AdditionalSettings; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CreateMerchantWebhookRequest */ +/** + * CreateMerchantWebhookRequest + */ @JsonPropertyOrder({ CreateMerchantWebhookRequest.JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE, CreateMerchantWebhookRequest.JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE, @@ -38,17 +44,15 @@ CreateMerchantWebhookRequest.JSON_PROPERTY_URL, CreateMerchantWebhookRequest.JSON_PROPERTY_USERNAME }) + public class CreateMerchantWebhookRequest { - public static final String JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE = - "acceptsExpiredCertificate"; + public static final String JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE = "acceptsExpiredCertificate"; private Boolean acceptsExpiredCertificate; - public static final String JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE = - "acceptsSelfSignedCertificate"; + public static final String JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE = "acceptsSelfSignedCertificate"; private Boolean acceptsSelfSignedCertificate; - public static final String JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE = - "acceptsUntrustedRootCertificate"; + public static final String JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE = "acceptsUntrustedRootCertificate"; private Boolean acceptsUntrustedRootCertificate; public static final String JSON_PROPERTY_ACTIVE = "active"; @@ -58,9 +62,10 @@ public class CreateMerchantWebhookRequest { private AdditionalSettings additionalSettings; /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** */ public enum CommunicationFormatEnum { + HTTP(String.valueOf("http")), JSON(String.valueOf("json")), @@ -72,7 +77,7 @@ public enum CommunicationFormatEnum { private String value; CommunicationFormatEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -93,11 +98,7 @@ public static CommunicationFormatEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "CommunicationFormatEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(CommunicationFormatEnum.values())); + LOG.warning("CommunicationFormatEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CommunicationFormatEnum.values())); return null; } } @@ -109,11 +110,10 @@ public static CommunicationFormatEnum fromValue(String value) { private String description; /** - * SSL version to access the public webhook URL specified in the `url` field. Possible - * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not - * specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. */ public enum EncryptionProtocolEnum { + HTTP(String.valueOf("HTTP")), TLSV1_2(String.valueOf("TLSv1.2")), @@ -125,7 +125,7 @@ public enum EncryptionProtocolEnum { private String value; EncryptionProtocolEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -146,11 +146,7 @@ public static EncryptionProtocolEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "EncryptionProtocolEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(EncryptionProtocolEnum.values())); + LOG.warning("EncryptionProtocolEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(EncryptionProtocolEnum.values())); return null; } } @@ -159,10 +155,10 @@ public static EncryptionProtocolEnum fromValue(String value) { private EncryptionProtocolEnum encryptionProtocol; /** - * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** - * Default Value: **public**. + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. */ public enum NetworkTypeEnum { + LOCAL(String.valueOf("local")), PUBLIC(String.valueOf("public")); @@ -172,7 +168,7 @@ public enum NetworkTypeEnum { private String value; NetworkTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -193,11 +189,7 @@ public static NetworkTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "NetworkTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(NetworkTypeEnum.values())); + LOG.warning("NetworkTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(NetworkTypeEnum.values())); return null; } } @@ -220,13 +212,13 @@ public static NetworkTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public CreateMerchantWebhookRequest() {} + public CreateMerchantWebhookRequest() { + } /** * Indicates if expired SSL certificates are accepted. Default value: **false**. * - * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default - * value: **false**. + * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default value: **false**. * @return the current {@code CreateMerchantWebhookRequest} instance, allowing for method chaining */ public CreateMerchantWebhookRequest acceptsExpiredCertificate(Boolean acceptsExpiredCertificate) { @@ -236,9 +228,7 @@ public CreateMerchantWebhookRequest acceptsExpiredCertificate(Boolean acceptsExp /** * Indicates if expired SSL certificates are accepted. Default value: **false**. - * - * @return acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default - * value: **false**. + * @return acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -249,8 +239,7 @@ public Boolean getAcceptsExpiredCertificate() { /** * Indicates if expired SSL certificates are accepted. Default value: **false**. * - * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default - * value: **false**. + * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -261,21 +250,17 @@ public void setAcceptsExpiredCertificate(Boolean acceptsExpiredCertificate) { /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. * - * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. - * Default value: **false**. + * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. Default value: **false**. * @return the current {@code CreateMerchantWebhookRequest} instance, allowing for method chaining */ - public CreateMerchantWebhookRequest acceptsSelfSignedCertificate( - Boolean acceptsSelfSignedCertificate) { + public CreateMerchantWebhookRequest acceptsSelfSignedCertificate(Boolean acceptsSelfSignedCertificate) { this.acceptsSelfSignedCertificate = acceptsSelfSignedCertificate; return this; } /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. - * - * @return acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. - * Default value: **false**. + * @return acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -286,8 +271,7 @@ public Boolean getAcceptsSelfSignedCertificate() { /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. * - * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. - * Default value: **false**. + * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -298,21 +282,17 @@ public void setAcceptsSelfSignedCertificate(Boolean acceptsSelfSignedCertificate /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. * - * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. - * Default value: **false**. + * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. Default value: **false**. * @return the current {@code CreateMerchantWebhookRequest} instance, allowing for method chaining */ - public CreateMerchantWebhookRequest acceptsUntrustedRootCertificate( - Boolean acceptsUntrustedRootCertificate) { + public CreateMerchantWebhookRequest acceptsUntrustedRootCertificate(Boolean acceptsUntrustedRootCertificate) { this.acceptsUntrustedRootCertificate = acceptsUntrustedRootCertificate; return this; } /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. - * - * @return acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. - * Default value: **false**. + * @return acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -323,8 +303,7 @@ public Boolean getAcceptsUntrustedRootCertificate() { /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. * - * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. - * Default value: **false**. + * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -333,11 +312,9 @@ public void setAcceptsUntrustedRootCertificate(Boolean acceptsUntrustedRootCerti } /** - * Indicates if the webhook configuration is active. The field must be **true** for us to send - * webhooks about events related an account. + * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. * - * @param active Indicates if the webhook configuration is active. The field must be **true** for - * us to send webhooks about events related an account. + * @param active Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. * @return the current {@code CreateMerchantWebhookRequest} instance, allowing for method chaining */ public CreateMerchantWebhookRequest active(Boolean active) { @@ -346,11 +323,8 @@ public CreateMerchantWebhookRequest active(Boolean active) { } /** - * Indicates if the webhook configuration is active. The field must be **true** for us to send - * webhooks about events related an account. - * - * @return active Indicates if the webhook configuration is active. The field must be **true** for - * us to send webhooks about events related an account. + * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. + * @return active Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -359,11 +333,9 @@ public Boolean getActive() { } /** - * Indicates if the webhook configuration is active. The field must be **true** for us to send - * webhooks about events related an account. + * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. * - * @param active Indicates if the webhook configuration is active. The field must be **true** for - * us to send webhooks about events related an account. + * @param active Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -374,7 +346,7 @@ public void setActive(Boolean active) { /** * additionalSettings * - * @param additionalSettings + * @param additionalSettings * @return the current {@code CreateMerchantWebhookRequest} instance, allowing for method chaining */ public CreateMerchantWebhookRequest additionalSettings(AdditionalSettings additionalSettings) { @@ -384,8 +356,7 @@ public CreateMerchantWebhookRequest additionalSettings(AdditionalSettings additi /** * Get additionalSettings - * - * @return additionalSettings + * @return additionalSettings */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -396,7 +367,7 @@ public AdditionalSettings getAdditionalSettings() { /** * additionalSettings * - * @param additionalSettings + * @param additionalSettings */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -405,23 +376,19 @@ public void setAdditionalSettings(AdditionalSettings additionalSettings) { } /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** * - * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * - * **soap** * **http** * **json** + * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** * @return the current {@code CreateMerchantWebhookRequest} instance, allowing for method chaining */ - public CreateMerchantWebhookRequest communicationFormat( - CommunicationFormatEnum communicationFormat) { + public CreateMerchantWebhookRequest communicationFormat(CommunicationFormatEnum communicationFormat) { this.communicationFormat = communicationFormat; return this; } /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** - * - * @return communicationFormat Format or protocol for receiving webhooks. Possible values: * - * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * @return communicationFormat Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** */ @JsonProperty(JSON_PROPERTY_COMMUNICATION_FORMAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -430,10 +397,9 @@ public CommunicationFormatEnum getCommunicationFormat() { } /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** * - * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * - * **soap** * **http** * **json** + * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** */ @JsonProperty(JSON_PROPERTY_COMMUNICATION_FORMAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -454,7 +420,6 @@ public CreateMerchantWebhookRequest description(String description) { /** * Your description for this webhook configuration. - * * @return description Your description for this webhook configuration. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -475,31 +440,19 @@ public void setDescription(String description) { } /** - * SSL version to access the public webhook URL specified in the `url` field. Possible - * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not - * specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. * - * @param encryptionProtocol SSL version to access the public webhook URL specified in the - * `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only - * allowed on Test environment. If not specified, the webhook will use `sslVersion`: - * **TLSv1.2**. + * @param encryptionProtocol SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. * @return the current {@code CreateMerchantWebhookRequest} instance, allowing for method chaining */ - public CreateMerchantWebhookRequest encryptionProtocol( - EncryptionProtocolEnum encryptionProtocol) { + public CreateMerchantWebhookRequest encryptionProtocol(EncryptionProtocolEnum encryptionProtocol) { this.encryptionProtocol = encryptionProtocol; return this; } /** - * SSL version to access the public webhook URL specified in the `url` field. Possible - * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not - * specified, the webhook will use `sslVersion`: **TLSv1.2**. - * - * @return encryptionProtocol SSL version to access the public webhook URL specified in the - * `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only - * allowed on Test environment. If not specified, the webhook will use `sslVersion`: - * **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * @return encryptionProtocol SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. */ @JsonProperty(JSON_PROPERTY_ENCRYPTION_PROTOCOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -508,14 +461,9 @@ public EncryptionProtocolEnum getEncryptionProtocol() { } /** - * SSL version to access the public webhook URL specified in the `url` field. Possible - * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not - * specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. * - * @param encryptionProtocol SSL version to access the public webhook URL specified in the - * `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only - * allowed on Test environment. If not specified, the webhook will use `sslVersion`: - * **TLSv1.2**. + * @param encryptionProtocol SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. */ @JsonProperty(JSON_PROPERTY_ENCRYPTION_PROTOCOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -524,11 +472,9 @@ public void setEncryptionProtocol(EncryptionProtocolEnum encryptionProtocol) { } /** - * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** - * Default Value: **public**. + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. * - * @param networkType Network type for Terminal API notification webhooks. Possible values: * - * **public** * **local** Default Value: **public**. + * @param networkType Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. * @return the current {@code CreateMerchantWebhookRequest} instance, allowing for method chaining */ public CreateMerchantWebhookRequest networkType(NetworkTypeEnum networkType) { @@ -537,11 +483,8 @@ public CreateMerchantWebhookRequest networkType(NetworkTypeEnum networkType) { } /** - * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** - * Default Value: **public**. - * - * @return networkType Network type for Terminal API notification webhooks. Possible values: * - * **public** * **local** Default Value: **public**. + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. + * @return networkType Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. */ @JsonProperty(JSON_PROPERTY_NETWORK_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -550,11 +493,9 @@ public NetworkTypeEnum getNetworkType() { } /** - * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** - * Default Value: **public**. + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. * - * @param networkType Network type for Terminal API notification webhooks. Possible values: * - * **public** * **local** Default Value: **public**. + * @param networkType Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. */ @JsonProperty(JSON_PROPERTY_NETWORK_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -575,7 +516,6 @@ public CreateMerchantWebhookRequest password(String password) { /** * Password to access the webhook URL. - * * @return password Password to access the webhook URL. */ @JsonProperty(JSON_PROPERTY_PASSWORD) @@ -596,11 +536,9 @@ public void setPassword(String password) { } /** - * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only - * applies if `communicationFormat`: **soap**. + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. * - * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. - * Default value: **false**. Only applies if `communicationFormat`: **soap**. + * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. * @return the current {@code CreateMerchantWebhookRequest} instance, allowing for method chaining */ public CreateMerchantWebhookRequest populateSoapActionHeader(Boolean populateSoapActionHeader) { @@ -609,11 +547,8 @@ public CreateMerchantWebhookRequest populateSoapActionHeader(Boolean populateSoa } /** - * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only - * applies if `communicationFormat`: **soap**. - * - * @return populateSoapActionHeader Indicates if the SOAP action header needs to be populated. - * Default value: **false**. Only applies if `communicationFormat`: **soap**. + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + * @return populateSoapActionHeader Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. */ @JsonProperty(JSON_PROPERTY_POPULATE_SOAP_ACTION_HEADER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -622,11 +557,9 @@ public Boolean getPopulateSoapActionHeader() { } /** - * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only - * applies if `communicationFormat`: **soap**. + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. * - * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. - * Default value: **false**. Only applies if `communicationFormat`: **soap**. + * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. */ @JsonProperty(JSON_PROPERTY_POPULATE_SOAP_ACTION_HEADER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -635,28 +568,9 @@ public void setPopulateSoapActionHeader(Boolean populateSoapActionHeader) { } /** - * The type of webhook that is being created. Possible values are: - **standard** - - * **account-settings-notification** - **banktransfer-notification** - - * **boletobancario-notification** - **directdebit-notification** - - * **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - - * **pending-notification** - **ideal-notification** - **ideal-pending-notification** - - * **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** - * Find out more about [standard - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and - * [other types of - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). * - * @param type The type of webhook that is being created. Possible values are: - **standard** - - * **account-settings-notification** - **banktransfer-notification** - - * **boletobancario-notification** - **directdebit-notification** - - * **ach-notification-of-change-notification** - - * **direct-debit-notice-of-change-notification** - **pending-notification** - - * **ideal-notification** - **ideal-pending-notification** - **report-notification** - - * **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about - * [standard - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) - * and [other types of - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * @param type The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). * @return the current {@code CreateMerchantWebhookRequest} instance, allowing for method chaining */ public CreateMerchantWebhookRequest type(String type) { @@ -665,28 +579,8 @@ public CreateMerchantWebhookRequest type(String type) { } /** - * The type of webhook that is being created. Possible values are: - **standard** - - * **account-settings-notification** - **banktransfer-notification** - - * **boletobancario-notification** - **directdebit-notification** - - * **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - - * **pending-notification** - **ideal-notification** - **ideal-pending-notification** - - * **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** - * Find out more about [standard - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and - * [other types of - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). - * - * @return type The type of webhook that is being created. Possible values are: - **standard** - - * **account-settings-notification** - **banktransfer-notification** - - * **boletobancario-notification** - **directdebit-notification** - - * **ach-notification-of-change-notification** - - * **direct-debit-notice-of-change-notification** - **pending-notification** - - * **ideal-notification** - **ideal-pending-notification** - **report-notification** - - * **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about - * [standard - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) - * and [other types of - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * @return type The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -695,28 +589,9 @@ public String getType() { } /** - * The type of webhook that is being created. Possible values are: - **standard** - - * **account-settings-notification** - **banktransfer-notification** - - * **boletobancario-notification** - **directdebit-notification** - - * **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - - * **pending-notification** - **ideal-notification** - **ideal-pending-notification** - - * **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** - * Find out more about [standard - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and - * [other types of - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). * - * @param type The type of webhook that is being created. Possible values are: - **standard** - - * **account-settings-notification** - **banktransfer-notification** - - * **boletobancario-notification** - **directdebit-notification** - - * **ach-notification-of-change-notification** - - * **direct-debit-notice-of-change-notification** - **pending-notification** - - * **ideal-notification** - **ideal-pending-notification** - **report-notification** - - * **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about - * [standard - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) - * and [other types of - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * @param type The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -725,11 +600,9 @@ public void setType(String type) { } /** - * Public URL where webhooks will be sent, for example - * **https://www.domain.com/webhook-endpoint**. + * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. * - * @param url Public URL where webhooks will be sent, for example - * **https://www.domain.com/webhook-endpoint**. + * @param url Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. * @return the current {@code CreateMerchantWebhookRequest} instance, allowing for method chaining */ public CreateMerchantWebhookRequest url(String url) { @@ -738,11 +611,8 @@ public CreateMerchantWebhookRequest url(String url) { } /** - * Public URL where webhooks will be sent, for example - * **https://www.domain.com/webhook-endpoint**. - * - * @return url Public URL where webhooks will be sent, for example - * **https://www.domain.com/webhook-endpoint**. + * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + * @return url Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. */ @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -751,11 +621,9 @@ public String getUrl() { } /** - * Public URL where webhooks will be sent, for example - * **https://www.domain.com/webhook-endpoint**. + * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. * - * @param url Public URL where webhooks will be sent, for example - * **https://www.domain.com/webhook-endpoint**. + * @param url Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. */ @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -776,7 +644,6 @@ public CreateMerchantWebhookRequest username(String username) { /** * Username to access the webhook URL. - * * @return username Username to access the webhook URL. */ @JsonProperty(JSON_PROPERTY_USERNAME) @@ -796,7 +663,9 @@ public void setUsername(String username) { this.username = username; } - /** Return true if this CreateMerchantWebhookRequest object is equal to o. */ + /** + * Return true if this CreateMerchantWebhookRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -806,73 +675,42 @@ public boolean equals(Object o) { return false; } CreateMerchantWebhookRequest createMerchantWebhookRequest = (CreateMerchantWebhookRequest) o; - return Objects.equals( - this.acceptsExpiredCertificate, createMerchantWebhookRequest.acceptsExpiredCertificate) - && Objects.equals( - this.acceptsSelfSignedCertificate, - createMerchantWebhookRequest.acceptsSelfSignedCertificate) - && Objects.equals( - this.acceptsUntrustedRootCertificate, - createMerchantWebhookRequest.acceptsUntrustedRootCertificate) - && Objects.equals(this.active, createMerchantWebhookRequest.active) - && Objects.equals(this.additionalSettings, createMerchantWebhookRequest.additionalSettings) - && Objects.equals( - this.communicationFormat, createMerchantWebhookRequest.communicationFormat) - && Objects.equals(this.description, createMerchantWebhookRequest.description) - && Objects.equals(this.encryptionProtocol, createMerchantWebhookRequest.encryptionProtocol) - && Objects.equals(this.networkType, createMerchantWebhookRequest.networkType) - && Objects.equals(this.password, createMerchantWebhookRequest.password) - && Objects.equals( - this.populateSoapActionHeader, createMerchantWebhookRequest.populateSoapActionHeader) - && Objects.equals(this.type, createMerchantWebhookRequest.type) - && Objects.equals(this.url, createMerchantWebhookRequest.url) - && Objects.equals(this.username, createMerchantWebhookRequest.username); + return Objects.equals(this.acceptsExpiredCertificate, createMerchantWebhookRequest.acceptsExpiredCertificate) && + Objects.equals(this.acceptsSelfSignedCertificate, createMerchantWebhookRequest.acceptsSelfSignedCertificate) && + Objects.equals(this.acceptsUntrustedRootCertificate, createMerchantWebhookRequest.acceptsUntrustedRootCertificate) && + Objects.equals(this.active, createMerchantWebhookRequest.active) && + Objects.equals(this.additionalSettings, createMerchantWebhookRequest.additionalSettings) && + Objects.equals(this.communicationFormat, createMerchantWebhookRequest.communicationFormat) && + Objects.equals(this.description, createMerchantWebhookRequest.description) && + Objects.equals(this.encryptionProtocol, createMerchantWebhookRequest.encryptionProtocol) && + Objects.equals(this.networkType, createMerchantWebhookRequest.networkType) && + Objects.equals(this.password, createMerchantWebhookRequest.password) && + Objects.equals(this.populateSoapActionHeader, createMerchantWebhookRequest.populateSoapActionHeader) && + Objects.equals(this.type, createMerchantWebhookRequest.type) && + Objects.equals(this.url, createMerchantWebhookRequest.url) && + Objects.equals(this.username, createMerchantWebhookRequest.username); } @Override public int hashCode() { - return Objects.hash( - acceptsExpiredCertificate, - acceptsSelfSignedCertificate, - acceptsUntrustedRootCertificate, - active, - additionalSettings, - communicationFormat, - description, - encryptionProtocol, - networkType, - password, - populateSoapActionHeader, - type, - url, - username); + return Objects.hash(acceptsExpiredCertificate, acceptsSelfSignedCertificate, acceptsUntrustedRootCertificate, active, additionalSettings, communicationFormat, description, encryptionProtocol, networkType, password, populateSoapActionHeader, type, url, username); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateMerchantWebhookRequest {\n"); - sb.append(" acceptsExpiredCertificate: ") - .append(toIndentedString(acceptsExpiredCertificate)) - .append("\n"); - sb.append(" acceptsSelfSignedCertificate: ") - .append(toIndentedString(acceptsSelfSignedCertificate)) - .append("\n"); - sb.append(" acceptsUntrustedRootCertificate: ") - .append(toIndentedString(acceptsUntrustedRootCertificate)) - .append("\n"); + sb.append(" acceptsExpiredCertificate: ").append(toIndentedString(acceptsExpiredCertificate)).append("\n"); + sb.append(" acceptsSelfSignedCertificate: ").append(toIndentedString(acceptsSelfSignedCertificate)).append("\n"); + sb.append(" acceptsUntrustedRootCertificate: ").append(toIndentedString(acceptsUntrustedRootCertificate)).append("\n"); sb.append(" active: ").append(toIndentedString(active)).append("\n"); sb.append(" additionalSettings: ").append(toIndentedString(additionalSettings)).append("\n"); - sb.append(" communicationFormat: ") - .append(toIndentedString(communicationFormat)) - .append("\n"); + sb.append(" communicationFormat: ").append(toIndentedString(communicationFormat)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" encryptionProtocol: ").append(toIndentedString(encryptionProtocol)).append("\n"); sb.append(" networkType: ").append(toIndentedString(networkType)).append("\n"); sb.append(" password: ").append(toIndentedString(password)).append("\n"); - sb.append(" populateSoapActionHeader: ") - .append(toIndentedString(populateSoapActionHeader)) - .append("\n"); + sb.append(" populateSoapActionHeader: ").append(toIndentedString(populateSoapActionHeader)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" username: ").append(toIndentedString(username)).append("\n"); @@ -881,7 +719,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -890,24 +729,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CreateMerchantWebhookRequest given an JSON string * * @param jsonString JSON string * @return An instance of CreateMerchantWebhookRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreateMerchantWebhookRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to CreateMerchantWebhookRequest */ - public static CreateMerchantWebhookRequest fromJson(String jsonString) - throws JsonProcessingException { + public static CreateMerchantWebhookRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateMerchantWebhookRequest.class); } - - /** - * Convert an instance of CreateMerchantWebhookRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CreateMerchantWebhookRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CreateUserResponse.java b/src/main/java/com/adyen/model/management/CreateUserResponse.java index 95060b260..05e331cc6 100644 --- a/src/main/java/com/adyen/model/management/CreateUserResponse.java +++ b/src/main/java/com/adyen/model/management/CreateUserResponse.java @@ -2,24 +2,35 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.Links; +import com.adyen.model.management.Name; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** CreateUserResponse */ + +/** + * CreateUserResponse + */ @JsonPropertyOrder({ CreateUserResponse.JSON_PROPERTY_LINKS, CreateUserResponse.JSON_PROPERTY_ACCOUNT_GROUPS, @@ -32,6 +43,7 @@ CreateUserResponse.JSON_PROPERTY_TIME_ZONE_CODE, CreateUserResponse.JSON_PROPERTY_USERNAME }) + public class CreateUserResponse { public static final String JSON_PROPERTY_LINKS = "_links"; private Links links; @@ -63,12 +75,13 @@ public class CreateUserResponse { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public CreateUserResponse() {} + public CreateUserResponse() { + } /** * links * - * @param links + * @param links * @return the current {@code CreateUserResponse} instance, allowing for method chaining */ public CreateUserResponse links(Links links) { @@ -78,8 +91,7 @@ public CreateUserResponse links(Links links) { /** * Get links - * - * @return links + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -90,7 +102,7 @@ public Links getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,12 +111,9 @@ public void setLinks(Links links) { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) - * associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. * - * @param accountGroups The list of [account - * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with - * this user. + * @param accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. * @return the current {@code CreateUserResponse} instance, allowing for method chaining */ public CreateUserResponse accountGroups(List accountGroups) { @@ -121,12 +130,8 @@ public CreateUserResponse addAccountGroupsItem(String accountGroupsItem) { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) - * associated with this user. - * - * @return accountGroups The list of [account - * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with - * this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * @return accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,12 +140,9 @@ public List getAccountGroups() { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) - * associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. * - * @param accountGroups The list of [account - * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with - * this user. + * @param accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,7 +163,6 @@ public CreateUserResponse active(Boolean active) { /** * Indicates whether this user is active. - * * @return active Indicates whether this user is active. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @@ -202,7 +203,6 @@ public CreateUserResponse addAppsItem(String appsItem) { /** * Set of apps available to this user - * * @return apps Set of apps available to this user */ @JsonProperty(JSON_PROPERTY_APPS) @@ -235,7 +235,6 @@ public CreateUserResponse email(String email) { /** * The email address of the user. - * * @return email The email address of the user. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -268,7 +267,6 @@ public CreateUserResponse id(String id) { /** * The unique identifier of the user. - * * @return id The unique identifier of the user. */ @JsonProperty(JSON_PROPERTY_ID) @@ -291,7 +289,7 @@ public void setId(String id) { /** * name * - * @param name + * @param name * @return the current {@code CreateUserResponse} instance, allowing for method chaining */ public CreateUserResponse name(Name name) { @@ -301,8 +299,7 @@ public CreateUserResponse name(Name name) { /** * Get name - * - * @return name + * @return name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -313,7 +310,7 @@ public Name getName() { /** * name * - * @param name + * @param name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -342,7 +339,6 @@ public CreateUserResponse addRolesItem(String rolesItem) { /** * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. - * * @return roles The list of [roles](https://docs.adyen.com/account/user-roles) for this user. */ @JsonProperty(JSON_PROPERTY_ROLES) @@ -363,12 +359,9 @@ public void setRoles(List roles) { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the - * time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. * - * @param timeZoneCode The [tz database - * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the - * user. For example, **Europe/Amsterdam**. + * @param timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. * @return the current {@code CreateUserResponse} instance, allowing for method chaining */ public CreateUserResponse timeZoneCode(String timeZoneCode) { @@ -377,12 +370,8 @@ public CreateUserResponse timeZoneCode(String timeZoneCode) { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the - * time zone of the user. For example, **Europe/Amsterdam**. - * - * @return timeZoneCode The [tz database - * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the - * user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * @return timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -391,12 +380,9 @@ public String getTimeZoneCode() { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the - * time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. * - * @param timeZoneCode The [tz database - * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the - * user. For example, **Europe/Amsterdam**. + * @param timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -417,7 +403,6 @@ public CreateUserResponse username(String username) { /** * The username for this user. - * * @return username The username for this user. */ @JsonProperty(JSON_PROPERTY_USERNAME) @@ -437,7 +422,9 @@ public void setUsername(String username) { this.username = username; } - /** Return true if this CreateUserResponse object is equal to o. */ + /** + * Return true if this CreateUserResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -447,22 +434,21 @@ public boolean equals(Object o) { return false; } CreateUserResponse createUserResponse = (CreateUserResponse) o; - return Objects.equals(this.links, createUserResponse.links) - && Objects.equals(this.accountGroups, createUserResponse.accountGroups) - && Objects.equals(this.active, createUserResponse.active) - && Objects.equals(this.apps, createUserResponse.apps) - && Objects.equals(this.email, createUserResponse.email) - && Objects.equals(this.id, createUserResponse.id) - && Objects.equals(this.name, createUserResponse.name) - && Objects.equals(this.roles, createUserResponse.roles) - && Objects.equals(this.timeZoneCode, createUserResponse.timeZoneCode) - && Objects.equals(this.username, createUserResponse.username); + return Objects.equals(this.links, createUserResponse.links) && + Objects.equals(this.accountGroups, createUserResponse.accountGroups) && + Objects.equals(this.active, createUserResponse.active) && + Objects.equals(this.apps, createUserResponse.apps) && + Objects.equals(this.email, createUserResponse.email) && + Objects.equals(this.id, createUserResponse.id) && + Objects.equals(this.name, createUserResponse.name) && + Objects.equals(this.roles, createUserResponse.roles) && + Objects.equals(this.timeZoneCode, createUserResponse.timeZoneCode) && + Objects.equals(this.username, createUserResponse.username); } @Override public int hashCode() { - return Objects.hash( - links, accountGroups, active, apps, email, id, name, roles, timeZoneCode, username); + return Objects.hash(links, accountGroups, active, apps, email, id, name, roles, timeZoneCode, username); } @Override @@ -484,7 +470,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -493,23 +480,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CreateUserResponse given an JSON string * * @param jsonString JSON string * @return An instance of CreateUserResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreateUserResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to CreateUserResponse */ public static CreateUserResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateUserResponse.class); } - - /** - * Convert an instance of CreateUserResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CreateUserResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Currency.java b/src/main/java/com/adyen/model/management/Currency.java index 803201ed1..b0c8b581d 100644 --- a/src/main/java/com/adyen/model/management/Currency.java +++ b/src/main/java/com/adyen/model/management/Currency.java @@ -2,28 +2,38 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Currency */ + +/** + * Currency + */ @JsonPropertyOrder({ Currency.JSON_PROPERTY_AMOUNT, Currency.JSON_PROPERTY_CURRENCY_CODE, Currency.JSON_PROPERTY_MAX_AMOUNT, Currency.JSON_PROPERTY_PERCENTAGE }) + public class Currency { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Integer amount; @@ -37,14 +47,13 @@ public class Currency { public static final String JSON_PROPERTY_PERCENTAGE = "percentage"; private Double percentage; - public Currency() {} + public Currency() { + } /** - * Surcharge amount per transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * Surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * @param amount Surcharge amount per transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * @param amount Surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code Currency} instance, allowing for method chaining */ public Currency amount(Integer amount) { @@ -53,11 +62,8 @@ public Currency amount(Integer amount) { } /** - * Surcharge amount per transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). - * - * @return amount Surcharge amount per transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * Surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @return amount Surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -66,11 +72,9 @@ public Integer getAmount() { } /** - * Surcharge amount per transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * Surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * @param amount Surcharge amount per transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * @param amount Surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,11 +83,9 @@ public void setAmount(Integer amount) { } /** - * Three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). For example, **AUD**. + * Three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, **AUD**. * - * @param currencyCode Three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). For example, **AUD**. + * @param currencyCode Three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, **AUD**. * @return the current {@code Currency} instance, allowing for method chaining */ public Currency currencyCode(String currencyCode) { @@ -92,11 +94,8 @@ public Currency currencyCode(String currencyCode) { } /** - * Three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). For example, **AUD**. - * - * @return currencyCode Three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). For example, **AUD**. + * Three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, **AUD**. + * @return currencyCode Three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, **AUD**. */ @JsonProperty(JSON_PROPERTY_CURRENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,11 +104,9 @@ public String getCurrencyCode() { } /** - * Three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). For example, **AUD**. + * Three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, **AUD**. * - * @param currencyCode Three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). For example, **AUD**. + * @param currencyCode Three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, **AUD**. */ @JsonProperty(JSON_PROPERTY_CURRENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,11 +115,9 @@ public void setCurrencyCode(String currencyCode) { } /** - * The maximum surcharge amount per transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * The maximum surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * @param maxAmount The maximum surcharge amount per transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * @param maxAmount The maximum surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code Currency} instance, allowing for method chaining */ public Currency maxAmount(Integer maxAmount) { @@ -131,11 +126,8 @@ public Currency maxAmount(Integer maxAmount) { } /** - * The maximum surcharge amount per transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). - * - * @return maxAmount The maximum surcharge amount per transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * The maximum surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @return maxAmount The maximum surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_MAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,11 +136,9 @@ public Integer getMaxAmount() { } /** - * The maximum surcharge amount per transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * The maximum surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * @param maxAmount The maximum surcharge amount per transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * @param maxAmount The maximum surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_MAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -157,11 +147,9 @@ public void setMaxAmount(Integer maxAmount) { } /** - * Surcharge percentage per transaction. The maximum number of decimal places is two. For example, - * **1%** or **2.27%**. + * Surcharge percentage per transaction. The maximum number of decimal places is two. For example, **1%** or **2.27%**. * - * @param percentage Surcharge percentage per transaction. The maximum number of decimal places is - * two. For example, **1%** or **2.27%**. + * @param percentage Surcharge percentage per transaction. The maximum number of decimal places is two. For example, **1%** or **2.27%**. * @return the current {@code Currency} instance, allowing for method chaining */ public Currency percentage(Double percentage) { @@ -170,11 +158,8 @@ public Currency percentage(Double percentage) { } /** - * Surcharge percentage per transaction. The maximum number of decimal places is two. For example, - * **1%** or **2.27%**. - * - * @return percentage Surcharge percentage per transaction. The maximum number of decimal places - * is two. For example, **1%** or **2.27%**. + * Surcharge percentage per transaction. The maximum number of decimal places is two. For example, **1%** or **2.27%**. + * @return percentage Surcharge percentage per transaction. The maximum number of decimal places is two. For example, **1%** or **2.27%**. */ @JsonProperty(JSON_PROPERTY_PERCENTAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,11 +168,9 @@ public Double getPercentage() { } /** - * Surcharge percentage per transaction. The maximum number of decimal places is two. For example, - * **1%** or **2.27%**. + * Surcharge percentage per transaction. The maximum number of decimal places is two. For example, **1%** or **2.27%**. * - * @param percentage Surcharge percentage per transaction. The maximum number of decimal places is - * two. For example, **1%** or **2.27%**. + * @param percentage Surcharge percentage per transaction. The maximum number of decimal places is two. For example, **1%** or **2.27%**. */ @JsonProperty(JSON_PROPERTY_PERCENTAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,7 +178,9 @@ public void setPercentage(Double percentage) { this.percentage = percentage; } - /** Return true if this Currency object is equal to o. */ + /** + * Return true if this Currency object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -205,10 +190,10 @@ public boolean equals(Object o) { return false; } Currency currency = (Currency) o; - return Objects.equals(this.amount, currency.amount) - && Objects.equals(this.currencyCode, currency.currencyCode) - && Objects.equals(this.maxAmount, currency.maxAmount) - && Objects.equals(this.percentage, currency.percentage); + return Objects.equals(this.amount, currency.amount) && + Objects.equals(this.currencyCode, currency.currencyCode) && + Objects.equals(this.maxAmount, currency.maxAmount) && + Objects.equals(this.percentage, currency.percentage); } @Override @@ -229,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -238,7 +224,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Currency given an JSON string * * @param jsonString JSON string @@ -248,12 +234,11 @@ private String toIndentedString(Object o) { public static Currency fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Currency.class); } - - /** - * Convert an instance of Currency to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Currency to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CustomNotification.java b/src/main/java/com/adyen/model/management/CustomNotification.java index 706f3a800..58a2bcfc9 100644 --- a/src/main/java/com/adyen/model/management/CustomNotification.java +++ b/src/main/java/com/adyen/model/management/CustomNotification.java @@ -2,23 +2,33 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.time.OffsetDateTime; -import java.util.*; -/** CustomNotification */ + +/** + * CustomNotification + */ @JsonPropertyOrder({ CustomNotification.JSON_PROPERTY_AMOUNT, CustomNotification.JSON_PROPERTY_EVENT_CODE, @@ -28,6 +38,7 @@ CustomNotification.JSON_PROPERTY_REASON, CustomNotification.JSON_PROPERTY_SUCCESS }) + public class CustomNotification { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -50,12 +61,13 @@ public class CustomNotification { public static final String JSON_PROPERTY_SUCCESS = "success"; private Boolean success; - public CustomNotification() {} + public CustomNotification() { + } /** * amount * - * @param amount + * @param amount * @return the current {@code CustomNotification} instance, allowing for method chaining */ public CustomNotification amount(Amount amount) { @@ -65,8 +77,7 @@ public CustomNotification amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -77,7 +88,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -86,17 +97,9 @@ public void setAmount(Amount amount) { } /** - * The event that caused the notification to be sent.Currently supported values: * - * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **REPORT_AVAILABLE** * - * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * - * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * - * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** + * The event that caused the notification to be sent.Currently supported values: * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **REPORT_AVAILABLE** * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * - * @param eventCode The event that caused the notification to be sent.Currently supported values: - * * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **REPORT_AVAILABLE** * - * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * - * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * - * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** + * @param eventCode The event that caused the notification to be sent.Currently supported values: * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **REPORT_AVAILABLE** * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * @return the current {@code CustomNotification} instance, allowing for method chaining */ public CustomNotification eventCode(String eventCode) { @@ -105,17 +108,8 @@ public CustomNotification eventCode(String eventCode) { } /** - * The event that caused the notification to be sent.Currently supported values: * - * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **REPORT_AVAILABLE** * - * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * - * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * - * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** - * - * @return eventCode The event that caused the notification to be sent.Currently supported values: - * * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **REPORT_AVAILABLE** * - * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * - * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * - * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** + * The event that caused the notification to be sent.Currently supported values: * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **REPORT_AVAILABLE** * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** + * @return eventCode The event that caused the notification to be sent.Currently supported values: * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **REPORT_AVAILABLE** * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** */ @JsonProperty(JSON_PROPERTY_EVENT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,17 +118,9 @@ public String getEventCode() { } /** - * The event that caused the notification to be sent.Currently supported values: * - * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **REPORT_AVAILABLE** * - * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * - * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * - * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** + * The event that caused the notification to be sent.Currently supported values: * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **REPORT_AVAILABLE** * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * - * @param eventCode The event that caused the notification to be sent.Currently supported values: - * * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **REPORT_AVAILABLE** * - * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * - * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * - * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** + * @param eventCode The event that caused the notification to be sent.Currently supported values: * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **REPORT_AVAILABLE** * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** */ @JsonProperty(JSON_PROPERTY_EVENT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,11 +129,9 @@ public void setEventCode(String eventCode) { } /** - * The time of the event. Format: [ISO 8601](http://www.w3.org/TR/NOTE-datetime), - * YYYY-MM-DDThh:mm:ssTZD. + * The time of the event. Format: [ISO 8601](http://www.w3.org/TR/NOTE-datetime), YYYY-MM-DDThh:mm:ssTZD. * - * @param eventDate The time of the event. Format: [ISO 8601](http://www.w3.org/TR/NOTE-datetime), - * YYYY-MM-DDThh:mm:ssTZD. + * @param eventDate The time of the event. Format: [ISO 8601](http://www.w3.org/TR/NOTE-datetime), YYYY-MM-DDThh:mm:ssTZD. * @return the current {@code CustomNotification} instance, allowing for method chaining */ public CustomNotification eventDate(OffsetDateTime eventDate) { @@ -156,11 +140,8 @@ public CustomNotification eventDate(OffsetDateTime eventDate) { } /** - * The time of the event. Format: [ISO 8601](http://www.w3.org/TR/NOTE-datetime), - * YYYY-MM-DDThh:mm:ssTZD. - * - * @return eventDate The time of the event. Format: [ISO - * 8601](http://www.w3.org/TR/NOTE-datetime), YYYY-MM-DDThh:mm:ssTZD. + * The time of the event. Format: [ISO 8601](http://www.w3.org/TR/NOTE-datetime), YYYY-MM-DDThh:mm:ssTZD. + * @return eventDate The time of the event. Format: [ISO 8601](http://www.w3.org/TR/NOTE-datetime), YYYY-MM-DDThh:mm:ssTZD. */ @JsonProperty(JSON_PROPERTY_EVENT_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,11 +150,9 @@ public OffsetDateTime getEventDate() { } /** - * The time of the event. Format: [ISO 8601](http://www.w3.org/TR/NOTE-datetime), - * YYYY-MM-DDThh:mm:ssTZD. + * The time of the event. Format: [ISO 8601](http://www.w3.org/TR/NOTE-datetime), YYYY-MM-DDThh:mm:ssTZD. * - * @param eventDate The time of the event. Format: [ISO 8601](http://www.w3.org/TR/NOTE-datetime), - * YYYY-MM-DDThh:mm:ssTZD. + * @param eventDate The time of the event. Format: [ISO 8601](http://www.w3.org/TR/NOTE-datetime), YYYY-MM-DDThh:mm:ssTZD. */ @JsonProperty(JSON_PROPERTY_EVENT_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,7 +173,6 @@ public CustomNotification merchantReference(String merchantReference) { /** * Your reference for the custom test notification. - * * @return merchantReference Your reference for the custom test notification. */ @JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCE) @@ -215,14 +193,9 @@ public void setMerchantReference(String merchantReference) { } /** - * The payment method for the payment that the notification is about. Possible values: * **amex** - * * **visa** * **mc** * **maestro** * **bcmc** * **paypal** * **sms** * **bankTransfer_NL** * - * **bankTransfer_DE** * **bankTransfer_BE** * **ideal** * **elv** * **sepadirectdebit** + * The payment method for the payment that the notification is about. Possible values: * **amex** * **visa** * **mc** * **maestro** * **bcmc** * **paypal** * **sms** * **bankTransfer_NL** * **bankTransfer_DE** * **bankTransfer_BE** * **ideal** * **elv** * **sepadirectdebit** * - * @param paymentMethod The payment method for the payment that the notification is about. - * Possible values: * **amex** * **visa** * **mc** * **maestro** * **bcmc** * **paypal** * - * **sms** * **bankTransfer_NL** * **bankTransfer_DE** * **bankTransfer_BE** * **ideal** * - * **elv** * **sepadirectdebit** + * @param paymentMethod The payment method for the payment that the notification is about. Possible values: * **amex** * **visa** * **mc** * **maestro** * **bcmc** * **paypal** * **sms** * **bankTransfer_NL** * **bankTransfer_DE** * **bankTransfer_BE** * **ideal** * **elv** * **sepadirectdebit** * @return the current {@code CustomNotification} instance, allowing for method chaining */ public CustomNotification paymentMethod(String paymentMethod) { @@ -231,14 +204,8 @@ public CustomNotification paymentMethod(String paymentMethod) { } /** - * The payment method for the payment that the notification is about. Possible values: * **amex** - * * **visa** * **mc** * **maestro** * **bcmc** * **paypal** * **sms** * **bankTransfer_NL** * - * **bankTransfer_DE** * **bankTransfer_BE** * **ideal** * **elv** * **sepadirectdebit** - * - * @return paymentMethod The payment method for the payment that the notification is about. - * Possible values: * **amex** * **visa** * **mc** * **maestro** * **bcmc** * **paypal** * - * **sms** * **bankTransfer_NL** * **bankTransfer_DE** * **bankTransfer_BE** * **ideal** * - * **elv** * **sepadirectdebit** + * The payment method for the payment that the notification is about. Possible values: * **amex** * **visa** * **mc** * **maestro** * **bcmc** * **paypal** * **sms** * **bankTransfer_NL** * **bankTransfer_DE** * **bankTransfer_BE** * **ideal** * **elv** * **sepadirectdebit** + * @return paymentMethod The payment method for the payment that the notification is about. Possible values: * **amex** * **visa** * **mc** * **maestro** * **bcmc** * **paypal** * **sms** * **bankTransfer_NL** * **bankTransfer_DE** * **bankTransfer_BE** * **ideal** * **elv** * **sepadirectdebit** */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -247,14 +214,9 @@ public String getPaymentMethod() { } /** - * The payment method for the payment that the notification is about. Possible values: * **amex** - * * **visa** * **mc** * **maestro** * **bcmc** * **paypal** * **sms** * **bankTransfer_NL** * - * **bankTransfer_DE** * **bankTransfer_BE** * **ideal** * **elv** * **sepadirectdebit** + * The payment method for the payment that the notification is about. Possible values: * **amex** * **visa** * **mc** * **maestro** * **bcmc** * **paypal** * **sms** * **bankTransfer_NL** * **bankTransfer_DE** * **bankTransfer_BE** * **ideal** * **elv** * **sepadirectdebit** * - * @param paymentMethod The payment method for the payment that the notification is about. - * Possible values: * **amex** * **visa** * **mc** * **maestro** * **bcmc** * **paypal** * - * **sms** * **bankTransfer_NL** * **bankTransfer_DE** * **bankTransfer_BE** * **ideal** * - * **elv** * **sepadirectdebit** + * @param paymentMethod The payment method for the payment that the notification is about. Possible values: * **amex** * **visa** * **mc** * **maestro** * **bcmc** * **paypal** * **sms** * **bankTransfer_NL** * **bankTransfer_DE** * **bankTransfer_BE** * **ideal** * **elv** * **sepadirectdebit** */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -275,7 +237,6 @@ public CustomNotification reason(String reason) { /** * A description of what caused the notification. - * * @return reason A description of what caused the notification. */ @JsonProperty(JSON_PROPERTY_REASON) @@ -296,10 +257,9 @@ public void setReason(String reason) { } /** - * The outcome of the event which the notification is about. Set to either **true** or **false**. + * The outcome of the event which the notification is about. Set to either **true** or **false**. * - * @param success The outcome of the event which the notification is about. Set to either **true** - * or **false**. + * @param success The outcome of the event which the notification is about. Set to either **true** or **false**. * @return the current {@code CustomNotification} instance, allowing for method chaining */ public CustomNotification success(Boolean success) { @@ -308,10 +268,8 @@ public CustomNotification success(Boolean success) { } /** - * The outcome of the event which the notification is about. Set to either **true** or **false**. - * - * @return success The outcome of the event which the notification is about. Set to either - * **true** or **false**. + * The outcome of the event which the notification is about. Set to either **true** or **false**. + * @return success The outcome of the event which the notification is about. Set to either **true** or **false**. */ @JsonProperty(JSON_PROPERTY_SUCCESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -320,10 +278,9 @@ public Boolean getSuccess() { } /** - * The outcome of the event which the notification is about. Set to either **true** or **false**. + * The outcome of the event which the notification is about. Set to either **true** or **false**. * - * @param success The outcome of the event which the notification is about. Set to either **true** - * or **false**. + * @param success The outcome of the event which the notification is about. Set to either **true** or **false**. */ @JsonProperty(JSON_PROPERTY_SUCCESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -331,7 +288,9 @@ public void setSuccess(Boolean success) { this.success = success; } - /** Return true if this CustomNotification object is equal to o. */ + /** + * Return true if this CustomNotification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -341,19 +300,18 @@ public boolean equals(Object o) { return false; } CustomNotification customNotification = (CustomNotification) o; - return Objects.equals(this.amount, customNotification.amount) - && Objects.equals(this.eventCode, customNotification.eventCode) - && Objects.equals(this.eventDate, customNotification.eventDate) - && Objects.equals(this.merchantReference, customNotification.merchantReference) - && Objects.equals(this.paymentMethod, customNotification.paymentMethod) - && Objects.equals(this.reason, customNotification.reason) - && Objects.equals(this.success, customNotification.success); + return Objects.equals(this.amount, customNotification.amount) && + Objects.equals(this.eventCode, customNotification.eventCode) && + Objects.equals(this.eventDate, customNotification.eventDate) && + Objects.equals(this.merchantReference, customNotification.merchantReference) && + Objects.equals(this.paymentMethod, customNotification.paymentMethod) && + Objects.equals(this.reason, customNotification.reason) && + Objects.equals(this.success, customNotification.success); } @Override public int hashCode() { - return Objects.hash( - amount, eventCode, eventDate, merchantReference, paymentMethod, reason, success); + return Objects.hash(amount, eventCode, eventDate, merchantReference, paymentMethod, reason, success); } @Override @@ -372,7 +330,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -381,23 +340,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CustomNotification given an JSON string * * @param jsonString JSON string * @return An instance of CustomNotification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CustomNotification + * @throws JsonProcessingException if the JSON string is invalid with respect to CustomNotification */ public static CustomNotification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CustomNotification.class); } - - /** - * Convert an instance of CustomNotification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CustomNotification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/DataCenter.java b/src/main/java/com/adyen/model/management/DataCenter.java index 49d454d91..d8e466e0c 100644 --- a/src/main/java/com/adyen/model/management/DataCenter.java +++ b/src/main/java/com/adyen/model/management/DataCenter.java @@ -2,23 +2,36 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** DataCenter */ -@JsonPropertyOrder({DataCenter.JSON_PROPERTY_LIVE_PREFIX, DataCenter.JSON_PROPERTY_NAME}) + +/** + * DataCenter + */ +@JsonPropertyOrder({ + DataCenter.JSON_PROPERTY_LIVE_PREFIX, + DataCenter.JSON_PROPERTY_NAME +}) + public class DataCenter { public static final String JSON_PROPERTY_LIVE_PREFIX = "livePrefix"; private String livePrefix; @@ -26,18 +39,13 @@ public class DataCenter { public static final String JSON_PROPERTY_NAME = "name"; private String name; - public DataCenter() {} + public DataCenter() { + } /** - * The unique [live URL - * prefix](https://docs.adyen.com/development-resources/live-endpoints#live-url-prefix) for your - * live endpoint. Each data center has its own live URL prefix. This field is empty for requests - * made in the test environment. + * The unique [live URL prefix](https://docs.adyen.com/development-resources/live-endpoints#live-url-prefix) for your live endpoint. Each data center has its own live URL prefix. This field is empty for requests made in the test environment. * - * @param livePrefix The unique [live URL - * prefix](https://docs.adyen.com/development-resources/live-endpoints#live-url-prefix) for - * your live endpoint. Each data center has its own live URL prefix. This field is empty for - * requests made in the test environment. + * @param livePrefix The unique [live URL prefix](https://docs.adyen.com/development-resources/live-endpoints#live-url-prefix) for your live endpoint. Each data center has its own live URL prefix. This field is empty for requests made in the test environment. * @return the current {@code DataCenter} instance, allowing for method chaining */ public DataCenter livePrefix(String livePrefix) { @@ -46,15 +54,8 @@ public DataCenter livePrefix(String livePrefix) { } /** - * The unique [live URL - * prefix](https://docs.adyen.com/development-resources/live-endpoints#live-url-prefix) for your - * live endpoint. Each data center has its own live URL prefix. This field is empty for requests - * made in the test environment. - * - * @return livePrefix The unique [live URL - * prefix](https://docs.adyen.com/development-resources/live-endpoints#live-url-prefix) for - * your live endpoint. Each data center has its own live URL prefix. This field is empty for - * requests made in the test environment. + * The unique [live URL prefix](https://docs.adyen.com/development-resources/live-endpoints#live-url-prefix) for your live endpoint. Each data center has its own live URL prefix. This field is empty for requests made in the test environment. + * @return livePrefix The unique [live URL prefix](https://docs.adyen.com/development-resources/live-endpoints#live-url-prefix) for your live endpoint. Each data center has its own live URL prefix. This field is empty for requests made in the test environment. */ @JsonProperty(JSON_PROPERTY_LIVE_PREFIX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,15 +64,9 @@ public String getLivePrefix() { } /** - * The unique [live URL - * prefix](https://docs.adyen.com/development-resources/live-endpoints#live-url-prefix) for your - * live endpoint. Each data center has its own live URL prefix. This field is empty for requests - * made in the test environment. + * The unique [live URL prefix](https://docs.adyen.com/development-resources/live-endpoints#live-url-prefix) for your live endpoint. Each data center has its own live URL prefix. This field is empty for requests made in the test environment. * - * @param livePrefix The unique [live URL - * prefix](https://docs.adyen.com/development-resources/live-endpoints#live-url-prefix) for - * your live endpoint. Each data center has its own live URL prefix. This field is empty for - * requests made in the test environment. + * @param livePrefix The unique [live URL prefix](https://docs.adyen.com/development-resources/live-endpoints#live-url-prefix) for your live endpoint. Each data center has its own live URL prefix. This field is empty for requests made in the test environment. */ @JsonProperty(JSON_PROPERTY_LIVE_PREFIX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,13 +75,9 @@ public void setLivePrefix(String livePrefix) { } /** - * The name assigned to a data center, for example **EU** for the European data center. Possible - * values are: * **default**: the European data center. This value is always returned in the test - * environment. * **AU** * **EU** * **US** + * The name assigned to a data center, for example **EU** for the European data center. Possible values are: * **default**: the European data center. This value is always returned in the test environment. * **AU** * **EU** * **US** * - * @param name The name assigned to a data center, for example **EU** for the European data - * center. Possible values are: * **default**: the European data center. This value is always - * returned in the test environment. * **AU** * **EU** * **US** + * @param name The name assigned to a data center, for example **EU** for the European data center. Possible values are: * **default**: the European data center. This value is always returned in the test environment. * **AU** * **EU** * **US** * @return the current {@code DataCenter} instance, allowing for method chaining */ public DataCenter name(String name) { @@ -95,13 +86,8 @@ public DataCenter name(String name) { } /** - * The name assigned to a data center, for example **EU** for the European data center. Possible - * values are: * **default**: the European data center. This value is always returned in the test - * environment. * **AU** * **EU** * **US** - * - * @return name The name assigned to a data center, for example **EU** for the European data - * center. Possible values are: * **default**: the European data center. This value is always - * returned in the test environment. * **AU** * **EU** * **US** + * The name assigned to a data center, for example **EU** for the European data center. Possible values are: * **default**: the European data center. This value is always returned in the test environment. * **AU** * **EU** * **US** + * @return name The name assigned to a data center, for example **EU** for the European data center. Possible values are: * **default**: the European data center. This value is always returned in the test environment. * **AU** * **EU** * **US** */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,13 +96,9 @@ public String getName() { } /** - * The name assigned to a data center, for example **EU** for the European data center. Possible - * values are: * **default**: the European data center. This value is always returned in the test - * environment. * **AU** * **EU** * **US** + * The name assigned to a data center, for example **EU** for the European data center. Possible values are: * **default**: the European data center. This value is always returned in the test environment. * **AU** * **EU** * **US** * - * @param name The name assigned to a data center, for example **EU** for the European data - * center. Possible values are: * **default**: the European data center. This value is always - * returned in the test environment. * **AU** * **EU** * **US** + * @param name The name assigned to a data center, for example **EU** for the European data center. Possible values are: * **default**: the European data center. This value is always returned in the test environment. * **AU** * **EU** * **US** */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,7 +106,9 @@ public void setName(String name) { this.name = name; } - /** Return true if this DataCenter object is equal to o. */ + /** + * Return true if this DataCenter object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -134,8 +118,8 @@ public boolean equals(Object o) { return false; } DataCenter dataCenter = (DataCenter) o; - return Objects.equals(this.livePrefix, dataCenter.livePrefix) - && Objects.equals(this.name, dataCenter.name); + return Objects.equals(this.livePrefix, dataCenter.livePrefix) && + Objects.equals(this.name, dataCenter.name); } @Override @@ -154,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -163,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DataCenter given an JSON string * * @param jsonString JSON string @@ -173,12 +158,11 @@ private String toIndentedString(Object o) { public static DataCenter fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DataCenter.class); } - - /** - * Convert an instance of DataCenter to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DataCenter to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/DinersInfo.java b/src/main/java/com/adyen/model/management/DinersInfo.java index 880ba0682..402aea149 100644 --- a/src/main/java/com/adyen/model/management/DinersInfo.java +++ b/src/main/java/com/adyen/model/management/DinersInfo.java @@ -2,32 +2,39 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.TransactionDescriptionInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** DinersInfo */ +/** + * DinersInfo + */ @JsonPropertyOrder({ DinersInfo.JSON_PROPERTY_MID_NUMBER, DinersInfo.JSON_PROPERTY_REUSE_MID_NUMBER, DinersInfo.JSON_PROPERTY_SERVICE_LEVEL, DinersInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION }) + public class DinersInfo { public static final String JSON_PROPERTY_MID_NUMBER = "midNumber"; private String midNumber; @@ -36,12 +43,10 @@ public class DinersInfo { private Boolean reuseMidNumber; /** - * Specifies the service level (settlement type) of this payment method. Required for merchants - * operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * - * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or - * your sub-merchant directly. + * Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. */ public enum ServiceLevelEnum { + NOCONTRACT(String.valueOf("noContract")), GATEWAYCONTRACT(String.valueOf("gatewayContract")); @@ -51,7 +56,7 @@ public enum ServiceLevelEnum { private String value; ServiceLevelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -72,11 +77,7 @@ public static ServiceLevelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ServiceLevelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ServiceLevelEnum.values())); + LOG.warning("ServiceLevelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ServiceLevelEnum.values())); return null; } } @@ -87,14 +88,13 @@ public static ServiceLevelEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANSACTION_DESCRIPTION = "transactionDescription"; private TransactionDescriptionInfo transactionDescription; - public DinersInfo() {} + public DinersInfo() { + } /** - * MID (Merchant ID) number. Required for merchants operating in Japan. Format: 14 numeric - * characters. + * MID (Merchant ID) number. Required for merchants operating in Japan. Format: 14 numeric characters. * - * @param midNumber MID (Merchant ID) number. Required for merchants operating in Japan. Format: - * 14 numeric characters. + * @param midNumber MID (Merchant ID) number. Required for merchants operating in Japan. Format: 14 numeric characters. * @return the current {@code DinersInfo} instance, allowing for method chaining */ public DinersInfo midNumber(String midNumber) { @@ -103,11 +103,8 @@ public DinersInfo midNumber(String midNumber) { } /** - * MID (Merchant ID) number. Required for merchants operating in Japan. Format: 14 numeric - * characters. - * - * @return midNumber MID (Merchant ID) number. Required for merchants operating in Japan. Format: - * 14 numeric characters. + * MID (Merchant ID) number. Required for merchants operating in Japan. Format: 14 numeric characters. + * @return midNumber MID (Merchant ID) number. Required for merchants operating in Japan. Format: 14 numeric characters. */ @JsonProperty(JSON_PROPERTY_MID_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,11 +113,9 @@ public String getMidNumber() { } /** - * MID (Merchant ID) number. Required for merchants operating in Japan. Format: 14 numeric - * characters. + * MID (Merchant ID) number. Required for merchants operating in Japan. Format: 14 numeric characters. * - * @param midNumber MID (Merchant ID) number. Required for merchants operating in Japan. Format: - * 14 numeric characters. + * @param midNumber MID (Merchant ID) number. Required for merchants operating in Japan. Format: 14 numeric characters. */ @JsonProperty(JSON_PROPERTY_MID_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,13 +124,9 @@ public void setMidNumber(String midNumber) { } /** - * Indicates whether the JCB Merchant ID is reused from a previously configured JCB payment - * method. The default value is **false**. For merchants operating in Japan, this field is - * required and must be set to **true**. + * Indicates whether the JCB Merchant ID is reused from a previously configured JCB payment method. The default value is **false**. For merchants operating in Japan, this field is required and must be set to **true**. * - * @param reuseMidNumber Indicates whether the JCB Merchant ID is reused from a previously - * configured JCB payment method. The default value is **false**. For merchants operating in - * Japan, this field is required and must be set to **true**. + * @param reuseMidNumber Indicates whether the JCB Merchant ID is reused from a previously configured JCB payment method. The default value is **false**. For merchants operating in Japan, this field is required and must be set to **true**. * @return the current {@code DinersInfo} instance, allowing for method chaining */ public DinersInfo reuseMidNumber(Boolean reuseMidNumber) { @@ -144,13 +135,8 @@ public DinersInfo reuseMidNumber(Boolean reuseMidNumber) { } /** - * Indicates whether the JCB Merchant ID is reused from a previously configured JCB payment - * method. The default value is **false**. For merchants operating in Japan, this field is - * required and must be set to **true**. - * - * @return reuseMidNumber Indicates whether the JCB Merchant ID is reused from a previously - * configured JCB payment method. The default value is **false**. For merchants operating in - * Japan, this field is required and must be set to **true**. + * Indicates whether the JCB Merchant ID is reused from a previously configured JCB payment method. The default value is **false**. For merchants operating in Japan, this field is required and must be set to **true**. + * @return reuseMidNumber Indicates whether the JCB Merchant ID is reused from a previously configured JCB payment method. The default value is **false**. For merchants operating in Japan, this field is required and must be set to **true**. */ @JsonProperty(JSON_PROPERTY_REUSE_MID_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,13 +145,9 @@ public Boolean getReuseMidNumber() { } /** - * Indicates whether the JCB Merchant ID is reused from a previously configured JCB payment - * method. The default value is **false**. For merchants operating in Japan, this field is - * required and must be set to **true**. + * Indicates whether the JCB Merchant ID is reused from a previously configured JCB payment method. The default value is **false**. For merchants operating in Japan, this field is required and must be set to **true**. * - * @param reuseMidNumber Indicates whether the JCB Merchant ID is reused from a previously - * configured JCB payment method. The default value is **false**. For merchants operating in - * Japan, this field is required and must be set to **true**. + * @param reuseMidNumber Indicates whether the JCB Merchant ID is reused from a previously configured JCB payment method. The default value is **false**. For merchants operating in Japan, this field is required and must be set to **true**. */ @JsonProperty(JSON_PROPERTY_REUSE_MID_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -174,15 +156,9 @@ public void setReuseMidNumber(Boolean reuseMidNumber) { } /** - * Specifies the service level (settlement type) of this payment method. Required for merchants - * operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * - * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or - * your sub-merchant directly. + * Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * - * @param serviceLevel Specifies the service level (settlement type) of this payment method. - * Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds - * the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles - * disputes, then pays out to you or your sub-merchant directly. + * @param serviceLevel Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * @return the current {@code DinersInfo} instance, allowing for method chaining */ public DinersInfo serviceLevel(ServiceLevelEnum serviceLevel) { @@ -191,15 +167,8 @@ public DinersInfo serviceLevel(ServiceLevelEnum serviceLevel) { } /** - * Specifies the service level (settlement type) of this payment method. Required for merchants - * operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * - * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or - * your sub-merchant directly. - * - * @return serviceLevel Specifies the service level (settlement type) of this payment method. - * Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds - * the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles - * disputes, then pays out to you or your sub-merchant directly. + * Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. + * @return serviceLevel Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. */ @JsonProperty(JSON_PROPERTY_SERVICE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,15 +177,9 @@ public ServiceLevelEnum getServiceLevel() { } /** - * Specifies the service level (settlement type) of this payment method. Required for merchants - * operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * - * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or - * your sub-merchant directly. + * Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * - * @param serviceLevel Specifies the service level (settlement type) of this payment method. - * Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds - * the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles - * disputes, then pays out to you or your sub-merchant directly. + * @param serviceLevel Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. */ @JsonProperty(JSON_PROPERTY_SERVICE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -227,7 +190,7 @@ public void setServiceLevel(ServiceLevelEnum serviceLevel) { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription * @return the current {@code DinersInfo} instance, allowing for method chaining */ public DinersInfo transactionDescription(TransactionDescriptionInfo transactionDescription) { @@ -237,8 +200,7 @@ public DinersInfo transactionDescription(TransactionDescriptionInfo transactionD /** * Get transactionDescription - * - * @return transactionDescription + * @return transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -249,7 +211,7 @@ public TransactionDescriptionInfo getTransactionDescription() { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -257,7 +219,9 @@ public void setTransactionDescription(TransactionDescriptionInfo transactionDesc this.transactionDescription = transactionDescription; } - /** Return true if this DinersInfo object is equal to o. */ + /** + * Return true if this DinersInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -267,10 +231,10 @@ public boolean equals(Object o) { return false; } DinersInfo dinersInfo = (DinersInfo) o; - return Objects.equals(this.midNumber, dinersInfo.midNumber) - && Objects.equals(this.reuseMidNumber, dinersInfo.reuseMidNumber) - && Objects.equals(this.serviceLevel, dinersInfo.serviceLevel) - && Objects.equals(this.transactionDescription, dinersInfo.transactionDescription); + return Objects.equals(this.midNumber, dinersInfo.midNumber) && + Objects.equals(this.reuseMidNumber, dinersInfo.reuseMidNumber) && + Objects.equals(this.serviceLevel, dinersInfo.serviceLevel) && + Objects.equals(this.transactionDescription, dinersInfo.transactionDescription); } @Override @@ -285,15 +249,14 @@ public String toString() { sb.append(" midNumber: ").append(toIndentedString(midNumber)).append("\n"); sb.append(" reuseMidNumber: ").append(toIndentedString(reuseMidNumber)).append("\n"); sb.append(" serviceLevel: ").append(toIndentedString(serviceLevel)).append("\n"); - sb.append(" transactionDescription: ") - .append(toIndentedString(transactionDescription)) - .append("\n"); + sb.append(" transactionDescription: ").append(toIndentedString(transactionDescription)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -302,7 +265,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DinersInfo given an JSON string * * @param jsonString JSON string @@ -312,12 +275,11 @@ private String toIndentedString(Object o) { public static DinersInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DinersInfo.class); } - - /** - * Convert an instance of DinersInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DinersInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/EventUrl.java b/src/main/java/com/adyen/model/management/EventUrl.java index a029193e9..1f0d68103 100644 --- a/src/main/java/com/adyen/model/management/EventUrl.java +++ b/src/main/java/com/adyen/model/management/EventUrl.java @@ -2,28 +2,39 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.Url; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** EventUrl */ +/** + * EventUrl + */ @JsonPropertyOrder({ EventUrl.JSON_PROPERTY_EVENT_LOCAL_URLS, EventUrl.JSON_PROPERTY_EVENT_PUBLIC_URLS }) + public class EventUrl { public static final String JSON_PROPERTY_EVENT_LOCAL_URLS = "eventLocalUrls"; private List eventLocalUrls; @@ -31,13 +42,13 @@ public class EventUrl { public static final String JSON_PROPERTY_EVENT_PUBLIC_URLS = "eventPublicUrls"; private List eventPublicUrls; - public EventUrl() {} + public EventUrl() { + } /** * One or more local URLs to send event notifications to when using Terminal API. * - * @param eventLocalUrls One or more local URLs to send event notifications to when using Terminal - * API. + * @param eventLocalUrls One or more local URLs to send event notifications to when using Terminal API. * @return the current {@code EventUrl} instance, allowing for method chaining */ public EventUrl eventLocalUrls(List eventLocalUrls) { @@ -55,9 +66,7 @@ public EventUrl addEventLocalUrlsItem(Url eventLocalUrlsItem) { /** * One or more local URLs to send event notifications to when using Terminal API. - * - * @return eventLocalUrls One or more local URLs to send event notifications to when using - * Terminal API. + * @return eventLocalUrls One or more local URLs to send event notifications to when using Terminal API. */ @JsonProperty(JSON_PROPERTY_EVENT_LOCAL_URLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,8 +77,7 @@ public List getEventLocalUrls() { /** * One or more local URLs to send event notifications to when using Terminal API. * - * @param eventLocalUrls One or more local URLs to send event notifications to when using Terminal - * API. + * @param eventLocalUrls One or more local URLs to send event notifications to when using Terminal API. */ @JsonProperty(JSON_PROPERTY_EVENT_LOCAL_URLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,8 +88,7 @@ public void setEventLocalUrls(List eventLocalUrls) { /** * One or more public URLs to send event notifications to when using Terminal API. * - * @param eventPublicUrls One or more public URLs to send event notifications to when using - * Terminal API. + * @param eventPublicUrls One or more public URLs to send event notifications to when using Terminal API. * @return the current {@code EventUrl} instance, allowing for method chaining */ public EventUrl eventPublicUrls(List eventPublicUrls) { @@ -99,9 +106,7 @@ public EventUrl addEventPublicUrlsItem(Url eventPublicUrlsItem) { /** * One or more public URLs to send event notifications to when using Terminal API. - * - * @return eventPublicUrls One or more public URLs to send event notifications to when using - * Terminal API. + * @return eventPublicUrls One or more public URLs to send event notifications to when using Terminal API. */ @JsonProperty(JSON_PROPERTY_EVENT_PUBLIC_URLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,8 +117,7 @@ public List getEventPublicUrls() { /** * One or more public URLs to send event notifications to when using Terminal API. * - * @param eventPublicUrls One or more public URLs to send event notifications to when using - * Terminal API. + * @param eventPublicUrls One or more public URLs to send event notifications to when using Terminal API. */ @JsonProperty(JSON_PROPERTY_EVENT_PUBLIC_URLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,7 +125,9 @@ public void setEventPublicUrls(List eventPublicUrls) { this.eventPublicUrls = eventPublicUrls; } - /** Return true if this EventUrl object is equal to o. */ + /** + * Return true if this EventUrl object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -131,8 +137,8 @@ public boolean equals(Object o) { return false; } EventUrl eventUrl = (EventUrl) o; - return Objects.equals(this.eventLocalUrls, eventUrl.eventLocalUrls) - && Objects.equals(this.eventPublicUrls, eventUrl.eventPublicUrls); + return Objects.equals(this.eventLocalUrls, eventUrl.eventLocalUrls) && + Objects.equals(this.eventPublicUrls, eventUrl.eventPublicUrls); } @Override @@ -151,7 +157,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -160,7 +167,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of EventUrl given an JSON string * * @param jsonString JSON string @@ -170,12 +177,11 @@ private String toIndentedString(Object o) { public static EventUrl fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, EventUrl.class); } - - /** - * Convert an instance of EventUrl to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of EventUrl to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ExternalTerminalAction.java b/src/main/java/com/adyen/model/management/ExternalTerminalAction.java index 615dab977..3462510a1 100644 --- a/src/main/java/com/adyen/model/management/ExternalTerminalAction.java +++ b/src/main/java/com/adyen/model/management/ExternalTerminalAction.java @@ -2,23 +2,32 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.time.OffsetDateTime; -import java.util.*; -/** ExternalTerminalAction */ + +/** + * ExternalTerminalAction + */ @JsonPropertyOrder({ ExternalTerminalAction.JSON_PROPERTY_ACTION_TYPE, ExternalTerminalAction.JSON_PROPERTY_CONFIG, @@ -29,6 +38,7 @@ ExternalTerminalAction.JSON_PROPERTY_STATUS, ExternalTerminalAction.JSON_PROPERTY_TERMINAL_ID }) + public class ExternalTerminalAction { public static final String JSON_PROPERTY_ACTION_TYPE = "actionType"; private String actionType; @@ -54,14 +64,13 @@ public class ExternalTerminalAction { public static final String JSON_PROPERTY_TERMINAL_ID = "terminalId"; private String terminalId; - public ExternalTerminalAction() {} + public ExternalTerminalAction() { + } /** - * The type of terminal action: **InstallAndroidApp**, **UninstallAndroidApp**, - * **InstallAndroidCertificate**, or **UninstallAndroidCertificate**. + * The type of terminal action: **InstallAndroidApp**, **UninstallAndroidApp**, **InstallAndroidCertificate**, or **UninstallAndroidCertificate**. * - * @param actionType The type of terminal action: **InstallAndroidApp**, **UninstallAndroidApp**, - * **InstallAndroidCertificate**, or **UninstallAndroidCertificate**. + * @param actionType The type of terminal action: **InstallAndroidApp**, **UninstallAndroidApp**, **InstallAndroidCertificate**, or **UninstallAndroidCertificate**. * @return the current {@code ExternalTerminalAction} instance, allowing for method chaining */ public ExternalTerminalAction actionType(String actionType) { @@ -70,11 +79,8 @@ public ExternalTerminalAction actionType(String actionType) { } /** - * The type of terminal action: **InstallAndroidApp**, **UninstallAndroidApp**, - * **InstallAndroidCertificate**, or **UninstallAndroidCertificate**. - * - * @return actionType The type of terminal action: **InstallAndroidApp**, **UninstallAndroidApp**, - * **InstallAndroidCertificate**, or **UninstallAndroidCertificate**. + * The type of terminal action: **InstallAndroidApp**, **UninstallAndroidApp**, **InstallAndroidCertificate**, or **UninstallAndroidCertificate**. + * @return actionType The type of terminal action: **InstallAndroidApp**, **UninstallAndroidApp**, **InstallAndroidCertificate**, or **UninstallAndroidCertificate**. */ @JsonProperty(JSON_PROPERTY_ACTION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,11 +89,9 @@ public String getActionType() { } /** - * The type of terminal action: **InstallAndroidApp**, **UninstallAndroidApp**, - * **InstallAndroidCertificate**, or **UninstallAndroidCertificate**. + * The type of terminal action: **InstallAndroidApp**, **UninstallAndroidApp**, **InstallAndroidCertificate**, or **UninstallAndroidCertificate**. * - * @param actionType The type of terminal action: **InstallAndroidApp**, **UninstallAndroidApp**, - * **InstallAndroidCertificate**, or **UninstallAndroidCertificate**. + * @param actionType The type of terminal action: **InstallAndroidApp**, **UninstallAndroidApp**, **InstallAndroidCertificate**, or **UninstallAndroidCertificate**. */ @JsonProperty(JSON_PROPERTY_ACTION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,7 +112,6 @@ public ExternalTerminalAction config(String config) { /** * Technical information about the terminal action. - * * @return config Technical information about the terminal action. */ @JsonProperty(JSON_PROPERTY_CONFIG) @@ -141,7 +144,6 @@ public ExternalTerminalAction confirmedAt(OffsetDateTime confirmedAt) { /** * The date and time when the action was carried out. - * * @return confirmedAt The date and time when the action was carried out. */ @JsonProperty(JSON_PROPERTY_CONFIRMED_AT) @@ -174,7 +176,6 @@ public ExternalTerminalAction id(String id) { /** * The unique ID of the terminal action. - * * @return id The unique ID of the terminal action. */ @JsonProperty(JSON_PROPERTY_ID) @@ -207,7 +208,6 @@ public ExternalTerminalAction result(String result) { /** * The result message for the action. - * * @return result The result message for the action. */ @JsonProperty(JSON_PROPERTY_RESULT) @@ -240,7 +240,6 @@ public ExternalTerminalAction scheduledAt(OffsetDateTime scheduledAt) { /** * The date and time when the action was scheduled to happen. - * * @return scheduledAt The date and time when the action was scheduled to happen. */ @JsonProperty(JSON_PROPERTY_SCHEDULED_AT) @@ -261,11 +260,9 @@ public void setScheduledAt(OffsetDateTime scheduledAt) { } /** - * The status of the terminal action: **pending**, **successful**, **failed**, **cancelled**, or - * **tryLater**. + * The status of the terminal action: **pending**, **successful**, **failed**, **cancelled**, or **tryLater**. * - * @param status The status of the terminal action: **pending**, **successful**, **failed**, - * **cancelled**, or **tryLater**. + * @param status The status of the terminal action: **pending**, **successful**, **failed**, **cancelled**, or **tryLater**. * @return the current {@code ExternalTerminalAction} instance, allowing for method chaining */ public ExternalTerminalAction status(String status) { @@ -274,11 +271,8 @@ public ExternalTerminalAction status(String status) { } /** - * The status of the terminal action: **pending**, **successful**, **failed**, **cancelled**, or - * **tryLater**. - * - * @return status The status of the terminal action: **pending**, **successful**, **failed**, - * **cancelled**, or **tryLater**. + * The status of the terminal action: **pending**, **successful**, **failed**, **cancelled**, or **tryLater**. + * @return status The status of the terminal action: **pending**, **successful**, **failed**, **cancelled**, or **tryLater**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -287,11 +281,9 @@ public String getStatus() { } /** - * The status of the terminal action: **pending**, **successful**, **failed**, **cancelled**, or - * **tryLater**. + * The status of the terminal action: **pending**, **successful**, **failed**, **cancelled**, or **tryLater**. * - * @param status The status of the terminal action: **pending**, **successful**, **failed**, - * **cancelled**, or **tryLater**. + * @param status The status of the terminal action: **pending**, **successful**, **failed**, **cancelled**, or **tryLater**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -312,7 +304,6 @@ public ExternalTerminalAction terminalId(String terminalId) { /** * The unique ID of the terminal that the action applies to. - * * @return terminalId The unique ID of the terminal that the action applies to. */ @JsonProperty(JSON_PROPERTY_TERMINAL_ID) @@ -332,7 +323,9 @@ public void setTerminalId(String terminalId) { this.terminalId = terminalId; } - /** Return true if this ExternalTerminalAction object is equal to o. */ + /** + * Return true if this ExternalTerminalAction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -342,20 +335,19 @@ public boolean equals(Object o) { return false; } ExternalTerminalAction externalTerminalAction = (ExternalTerminalAction) o; - return Objects.equals(this.actionType, externalTerminalAction.actionType) - && Objects.equals(this.config, externalTerminalAction.config) - && Objects.equals(this.confirmedAt, externalTerminalAction.confirmedAt) - && Objects.equals(this.id, externalTerminalAction.id) - && Objects.equals(this.result, externalTerminalAction.result) - && Objects.equals(this.scheduledAt, externalTerminalAction.scheduledAt) - && Objects.equals(this.status, externalTerminalAction.status) - && Objects.equals(this.terminalId, externalTerminalAction.terminalId); + return Objects.equals(this.actionType, externalTerminalAction.actionType) && + Objects.equals(this.config, externalTerminalAction.config) && + Objects.equals(this.confirmedAt, externalTerminalAction.confirmedAt) && + Objects.equals(this.id, externalTerminalAction.id) && + Objects.equals(this.result, externalTerminalAction.result) && + Objects.equals(this.scheduledAt, externalTerminalAction.scheduledAt) && + Objects.equals(this.status, externalTerminalAction.status) && + Objects.equals(this.terminalId, externalTerminalAction.terminalId); } @Override public int hashCode() { - return Objects.hash( - actionType, config, confirmedAt, id, result, scheduledAt, status, terminalId); + return Objects.hash(actionType, config, confirmedAt, id, result, scheduledAt, status, terminalId); } @Override @@ -375,7 +367,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -384,23 +377,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ExternalTerminalAction given an JSON string * * @param jsonString JSON string * @return An instance of ExternalTerminalAction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ExternalTerminalAction + * @throws JsonProcessingException if the JSON string is invalid with respect to ExternalTerminalAction */ public static ExternalTerminalAction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ExternalTerminalAction.class); } - - /** - * Convert an instance of ExternalTerminalAction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ExternalTerminalAction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/GenerateApiKeyResponse.java b/src/main/java/com/adyen/model/management/GenerateApiKeyResponse.java index 905832071..c967df2e8 100644 --- a/src/main/java/com/adyen/model/management/GenerateApiKeyResponse.java +++ b/src/main/java/com/adyen/model/management/GenerateApiKeyResponse.java @@ -2,28 +2,41 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** GenerateApiKeyResponse */ -@JsonPropertyOrder({GenerateApiKeyResponse.JSON_PROPERTY_API_KEY}) + +/** + * GenerateApiKeyResponse + */ +@JsonPropertyOrder({ + GenerateApiKeyResponse.JSON_PROPERTY_API_KEY +}) + public class GenerateApiKeyResponse { public static final String JSON_PROPERTY_API_KEY = "apiKey"; private String apiKey; - public GenerateApiKeyResponse() {} + public GenerateApiKeyResponse() { + } /** * The generated API key. @@ -38,7 +51,6 @@ public GenerateApiKeyResponse apiKey(String apiKey) { /** * The generated API key. - * * @return apiKey The generated API key. */ @JsonProperty(JSON_PROPERTY_API_KEY) @@ -58,7 +70,9 @@ public void setApiKey(String apiKey) { this.apiKey = apiKey; } - /** Return true if this GenerateApiKeyResponse object is equal to o. */ + /** + * Return true if this GenerateApiKeyResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,23 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of GenerateApiKeyResponse given an JSON string * * @param jsonString JSON string * @return An instance of GenerateApiKeyResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * GenerateApiKeyResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to GenerateApiKeyResponse */ public static GenerateApiKeyResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GenerateApiKeyResponse.class); } - - /** - * Convert an instance of GenerateApiKeyResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of GenerateApiKeyResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/GenerateClientKeyResponse.java b/src/main/java/com/adyen/model/management/GenerateClientKeyResponse.java index 90d774d75..26ccf4db7 100644 --- a/src/main/java/com/adyen/model/management/GenerateClientKeyResponse.java +++ b/src/main/java/com/adyen/model/management/GenerateClientKeyResponse.java @@ -2,28 +2,41 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** GenerateClientKeyResponse */ -@JsonPropertyOrder({GenerateClientKeyResponse.JSON_PROPERTY_CLIENT_KEY}) + +/** + * GenerateClientKeyResponse + */ +@JsonPropertyOrder({ + GenerateClientKeyResponse.JSON_PROPERTY_CLIENT_KEY +}) + public class GenerateClientKeyResponse { public static final String JSON_PROPERTY_CLIENT_KEY = "clientKey"; private String clientKey; - public GenerateClientKeyResponse() {} + public GenerateClientKeyResponse() { + } /** * Generated client key @@ -38,7 +51,6 @@ public GenerateClientKeyResponse clientKey(String clientKey) { /** * Generated client key - * * @return clientKey Generated client key */ @JsonProperty(JSON_PROPERTY_CLIENT_KEY) @@ -58,7 +70,9 @@ public void setClientKey(String clientKey) { this.clientKey = clientKey; } - /** Return true if this GenerateClientKeyResponse object is equal to o. */ + /** + * Return true if this GenerateClientKeyResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of GenerateClientKeyResponse given an JSON string * * @param jsonString JSON string * @return An instance of GenerateClientKeyResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * GenerateClientKeyResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to GenerateClientKeyResponse */ - public static GenerateClientKeyResponse fromJson(String jsonString) - throws JsonProcessingException { + public static GenerateClientKeyResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GenerateClientKeyResponse.class); } - - /** - * Convert an instance of GenerateClientKeyResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of GenerateClientKeyResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/GenerateHmacKeyResponse.java b/src/main/java/com/adyen/model/management/GenerateHmacKeyResponse.java index 4fe3a2eec..58d80697c 100644 --- a/src/main/java/com/adyen/model/management/GenerateHmacKeyResponse.java +++ b/src/main/java/com/adyen/model/management/GenerateHmacKeyResponse.java @@ -2,28 +2,41 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** GenerateHmacKeyResponse */ -@JsonPropertyOrder({GenerateHmacKeyResponse.JSON_PROPERTY_HMAC_KEY}) + +/** + * GenerateHmacKeyResponse + */ +@JsonPropertyOrder({ + GenerateHmacKeyResponse.JSON_PROPERTY_HMAC_KEY +}) + public class GenerateHmacKeyResponse { public static final String JSON_PROPERTY_HMAC_KEY = "hmacKey"; private String hmacKey; - public GenerateHmacKeyResponse() {} + public GenerateHmacKeyResponse() { + } /** * The HMAC key generated for this webhook. @@ -38,7 +51,6 @@ public GenerateHmacKeyResponse hmacKey(String hmacKey) { /** * The HMAC key generated for this webhook. - * * @return hmacKey The HMAC key generated for this webhook. */ @JsonProperty(JSON_PROPERTY_HMAC_KEY) @@ -58,7 +70,9 @@ public void setHmacKey(String hmacKey) { this.hmacKey = hmacKey; } - /** Return true if this GenerateHmacKeyResponse object is equal to o. */ + /** + * Return true if this GenerateHmacKeyResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,23 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of GenerateHmacKeyResponse given an JSON string * * @param jsonString JSON string * @return An instance of GenerateHmacKeyResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * GenerateHmacKeyResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to GenerateHmacKeyResponse */ public static GenerateHmacKeyResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GenerateHmacKeyResponse.class); } - - /** - * Convert an instance of GenerateHmacKeyResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of GenerateHmacKeyResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/GenericPmWithTdiInfo.java b/src/main/java/com/adyen/model/management/GenericPmWithTdiInfo.java index 81850fe8b..d3f4fbb2b 100644 --- a/src/main/java/com/adyen/model/management/GenericPmWithTdiInfo.java +++ b/src/main/java/com/adyen/model/management/GenericPmWithTdiInfo.java @@ -2,45 +2,57 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.TransactionDescriptionInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** GenericPmWithTdiInfo */ -@JsonPropertyOrder({GenericPmWithTdiInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION}) + +/** + * GenericPmWithTdiInfo + */ +@JsonPropertyOrder({ + GenericPmWithTdiInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION +}) + public class GenericPmWithTdiInfo { public static final String JSON_PROPERTY_TRANSACTION_DESCRIPTION = "transactionDescription"; private TransactionDescriptionInfo transactionDescription; - public GenericPmWithTdiInfo() {} + public GenericPmWithTdiInfo() { + } /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription * @return the current {@code GenericPmWithTdiInfo} instance, allowing for method chaining */ - public GenericPmWithTdiInfo transactionDescription( - TransactionDescriptionInfo transactionDescription) { + public GenericPmWithTdiInfo transactionDescription(TransactionDescriptionInfo transactionDescription) { this.transactionDescription = transactionDescription; return this; } /** * Get transactionDescription - * - * @return transactionDescription + * @return transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -51,7 +63,7 @@ public TransactionDescriptionInfo getTransactionDescription() { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -59,7 +71,9 @@ public void setTransactionDescription(TransactionDescriptionInfo transactionDesc this.transactionDescription = transactionDescription; } - /** Return true if this GenericPmWithTdiInfo object is equal to o. */ + /** + * Return true if this GenericPmWithTdiInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -81,15 +95,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GenericPmWithTdiInfo {\n"); - sb.append(" transactionDescription: ") - .append(toIndentedString(transactionDescription)) - .append("\n"); + sb.append(" transactionDescription: ").append(toIndentedString(transactionDescription)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -98,23 +111,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of GenericPmWithTdiInfo given an JSON string * * @param jsonString JSON string * @return An instance of GenericPmWithTdiInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * GenericPmWithTdiInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to GenericPmWithTdiInfo */ public static GenericPmWithTdiInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GenericPmWithTdiInfo.class); } - - /** - * Convert an instance of GenericPmWithTdiInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of GenericPmWithTdiInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/GooglePayInfo.java b/src/main/java/com/adyen/model/management/GooglePayInfo.java index 4d2a92daa..d8d5b26e3 100644 --- a/src/main/java/com/adyen/model/management/GooglePayInfo.java +++ b/src/main/java/com/adyen/model/management/GooglePayInfo.java @@ -2,26 +2,36 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** GooglePayInfo */ + +/** + * GooglePayInfo + */ @JsonPropertyOrder({ GooglePayInfo.JSON_PROPERTY_MERCHANT_ID, GooglePayInfo.JSON_PROPERTY_REUSE_MERCHANT_ID }) + public class GooglePayInfo { public static final String JSON_PROPERTY_MERCHANT_ID = "merchantId"; private String merchantId; @@ -29,15 +39,13 @@ public class GooglePayInfo { public static final String JSON_PROPERTY_REUSE_MERCHANT_ID = "reuseMerchantId"; private Boolean reuseMerchantId; - public GooglePayInfo() {} + public GooglePayInfo() { + } /** - * Google Pay [Merchant ID](https://support.google.com/paymentscenter/answer/7163092?hl=en). - * Character length and limitations: 16 alphanumeric characters or 20 numeric characters. + * Google Pay [Merchant ID](https://support.google.com/paymentscenter/answer/7163092?hl=en). Character length and limitations: 16 alphanumeric characters or 20 numeric characters. * - * @param merchantId Google Pay [Merchant - * ID](https://support.google.com/paymentscenter/answer/7163092?hl=en). Character length - * and limitations: 16 alphanumeric characters or 20 numeric characters. + * @param merchantId Google Pay [Merchant ID](https://support.google.com/paymentscenter/answer/7163092?hl=en). Character length and limitations: 16 alphanumeric characters or 20 numeric characters. * @return the current {@code GooglePayInfo} instance, allowing for method chaining */ public GooglePayInfo merchantId(String merchantId) { @@ -46,12 +54,8 @@ public GooglePayInfo merchantId(String merchantId) { } /** - * Google Pay [Merchant ID](https://support.google.com/paymentscenter/answer/7163092?hl=en). - * Character length and limitations: 16 alphanumeric characters or 20 numeric characters. - * - * @return merchantId Google Pay [Merchant - * ID](https://support.google.com/paymentscenter/answer/7163092?hl=en). Character length - * and limitations: 16 alphanumeric characters or 20 numeric characters. + * Google Pay [Merchant ID](https://support.google.com/paymentscenter/answer/7163092?hl=en). Character length and limitations: 16 alphanumeric characters or 20 numeric characters. + * @return merchantId Google Pay [Merchant ID](https://support.google.com/paymentscenter/answer/7163092?hl=en). Character length and limitations: 16 alphanumeric characters or 20 numeric characters. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,12 +64,9 @@ public String getMerchantId() { } /** - * Google Pay [Merchant ID](https://support.google.com/paymentscenter/answer/7163092?hl=en). - * Character length and limitations: 16 alphanumeric characters or 20 numeric characters. + * Google Pay [Merchant ID](https://support.google.com/paymentscenter/answer/7163092?hl=en). Character length and limitations: 16 alphanumeric characters or 20 numeric characters. * - * @param merchantId Google Pay [Merchant - * ID](https://support.google.com/paymentscenter/answer/7163092?hl=en). Character length - * and limitations: 16 alphanumeric characters or 20 numeric characters. + * @param merchantId Google Pay [Merchant ID](https://support.google.com/paymentscenter/answer/7163092?hl=en). Character length and limitations: 16 alphanumeric characters or 20 numeric characters. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -74,11 +75,9 @@ public void setMerchantId(String merchantId) { } /** - * Indicates whether the Google Pay Merchant ID is used for several merchant accounts. Default - * value: **false**. + * Indicates whether the Google Pay Merchant ID is used for several merchant accounts. Default value: **false**. * - * @param reuseMerchantId Indicates whether the Google Pay Merchant ID is used for several - * merchant accounts. Default value: **false**. + * @param reuseMerchantId Indicates whether the Google Pay Merchant ID is used for several merchant accounts. Default value: **false**. * @return the current {@code GooglePayInfo} instance, allowing for method chaining */ public GooglePayInfo reuseMerchantId(Boolean reuseMerchantId) { @@ -87,11 +86,8 @@ public GooglePayInfo reuseMerchantId(Boolean reuseMerchantId) { } /** - * Indicates whether the Google Pay Merchant ID is used for several merchant accounts. Default - * value: **false**. - * - * @return reuseMerchantId Indicates whether the Google Pay Merchant ID is used for several - * merchant accounts. Default value: **false**. + * Indicates whether the Google Pay Merchant ID is used for several merchant accounts. Default value: **false**. + * @return reuseMerchantId Indicates whether the Google Pay Merchant ID is used for several merchant accounts. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_REUSE_MERCHANT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,11 +96,9 @@ public Boolean getReuseMerchantId() { } /** - * Indicates whether the Google Pay Merchant ID is used for several merchant accounts. Default - * value: **false**. + * Indicates whether the Google Pay Merchant ID is used for several merchant accounts. Default value: **false**. * - * @param reuseMerchantId Indicates whether the Google Pay Merchant ID is used for several - * merchant accounts. Default value: **false**. + * @param reuseMerchantId Indicates whether the Google Pay Merchant ID is used for several merchant accounts. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_REUSE_MERCHANT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,7 +106,9 @@ public void setReuseMerchantId(Boolean reuseMerchantId) { this.reuseMerchantId = reuseMerchantId; } - /** Return true if this GooglePayInfo object is equal to o. */ + /** + * Return true if this GooglePayInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -122,8 +118,8 @@ public boolean equals(Object o) { return false; } GooglePayInfo googlePayInfo = (GooglePayInfo) o; - return Objects.equals(this.merchantId, googlePayInfo.merchantId) - && Objects.equals(this.reuseMerchantId, googlePayInfo.reuseMerchantId); + return Objects.equals(this.merchantId, googlePayInfo.merchantId) && + Objects.equals(this.reuseMerchantId, googlePayInfo.reuseMerchantId); } @Override @@ -142,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -151,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of GooglePayInfo given an JSON string * * @param jsonString JSON string @@ -161,12 +158,11 @@ private String toIndentedString(Object o) { public static GooglePayInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GooglePayInfo.class); } - - /** - * Convert an instance of GooglePayInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of GooglePayInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Gratuity.java b/src/main/java/com/adyen/model/management/Gratuity.java index 8b6f1daa4..0d9238e02 100644 --- a/src/main/java/com/adyen/model/management/Gratuity.java +++ b/src/main/java/com/adyen/model/management/Gratuity.java @@ -2,30 +2,40 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** Gratuity */ +/** + * Gratuity + */ @JsonPropertyOrder({ Gratuity.JSON_PROPERTY_ALLOW_CUSTOM_AMOUNT, Gratuity.JSON_PROPERTY_CURRENCY, Gratuity.JSON_PROPERTY_PREDEFINED_TIP_ENTRIES, Gratuity.JSON_PROPERTY_USE_PREDEFINED_TIP_ENTRIES }) + public class Gratuity { public static final String JSON_PROPERTY_ALLOW_CUSTOM_AMOUNT = "allowCustomAmount"; private Boolean allowCustomAmount; @@ -39,16 +49,13 @@ public class Gratuity { public static final String JSON_PROPERTY_USE_PREDEFINED_TIP_ENTRIES = "usePredefinedTipEntries"; private Boolean usePredefinedTipEntries; - public Gratuity() {} + public Gratuity() { + } /** - * Indicates whether one of the predefined tipping options is to let the shopper enter a custom - * tip. If **true**, only three of the other options defined in `predefinedTipEntries` - * are shown. + * Indicates whether one of the predefined tipping options is to let the shopper enter a custom tip. If **true**, only three of the other options defined in `predefinedTipEntries` are shown. * - * @param allowCustomAmount Indicates whether one of the predefined tipping options is to let the - * shopper enter a custom tip. If **true**, only three of the other options defined in - * `predefinedTipEntries` are shown. + * @param allowCustomAmount Indicates whether one of the predefined tipping options is to let the shopper enter a custom tip. If **true**, only three of the other options defined in `predefinedTipEntries` are shown. * @return the current {@code Gratuity} instance, allowing for method chaining */ public Gratuity allowCustomAmount(Boolean allowCustomAmount) { @@ -57,13 +64,8 @@ public Gratuity allowCustomAmount(Boolean allowCustomAmount) { } /** - * Indicates whether one of the predefined tipping options is to let the shopper enter a custom - * tip. If **true**, only three of the other options defined in `predefinedTipEntries` - * are shown. - * - * @return allowCustomAmount Indicates whether one of the predefined tipping options is to let the - * shopper enter a custom tip. If **true**, only three of the other options defined in - * `predefinedTipEntries` are shown. + * Indicates whether one of the predefined tipping options is to let the shopper enter a custom tip. If **true**, only three of the other options defined in `predefinedTipEntries` are shown. + * @return allowCustomAmount Indicates whether one of the predefined tipping options is to let the shopper enter a custom tip. If **true**, only three of the other options defined in `predefinedTipEntries` are shown. */ @JsonProperty(JSON_PROPERTY_ALLOW_CUSTOM_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -72,13 +74,9 @@ public Boolean getAllowCustomAmount() { } /** - * Indicates whether one of the predefined tipping options is to let the shopper enter a custom - * tip. If **true**, only three of the other options defined in `predefinedTipEntries` - * are shown. + * Indicates whether one of the predefined tipping options is to let the shopper enter a custom tip. If **true**, only three of the other options defined in `predefinedTipEntries` are shown. * - * @param allowCustomAmount Indicates whether one of the predefined tipping options is to let the - * shopper enter a custom tip. If **true**, only three of the other options defined in - * `predefinedTipEntries` are shown. + * @param allowCustomAmount Indicates whether one of the predefined tipping options is to let the shopper enter a custom tip. If **true**, only three of the other options defined in `predefinedTipEntries` are shown. */ @JsonProperty(JSON_PROPERTY_ALLOW_CUSTOM_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,7 +97,6 @@ public Gratuity currency(String currency) { /** * The currency that the tipping settings apply to. - * * @return currency The currency that the tipping settings apply to. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @@ -120,18 +117,9 @@ public void setCurrency(String currency) { } /** - * Tipping options the shopper can choose from if `usePredefinedTipEntries` is **true**. - * The maximum number of predefined options is four, or three plus the option to enter a custom - * tip. The options can be a mix of: - A percentage of the transaction amount. Example: **5%** - A - * tip amount in [minor units](https://docs.adyen.com/development-resources/currency-codes). - * Example: **500** for a EUR 5 tip. + * Tipping options the shopper can choose from if `usePredefinedTipEntries` is **true**. The maximum number of predefined options is four, or three plus the option to enter a custom tip. The options can be a mix of: - A percentage of the transaction amount. Example: **5%** - A tip amount in [minor units](https://docs.adyen.com/development-resources/currency-codes). Example: **500** for a EUR 5 tip. * - * @param predefinedTipEntries Tipping options the shopper can choose from if - * `usePredefinedTipEntries` is **true**. The maximum number of predefined options - * is four, or three plus the option to enter a custom tip. The options can be a mix of: - A - * percentage of the transaction amount. Example: **5%** - A tip amount in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). Example: **500** for a - * EUR 5 tip. + * @param predefinedTipEntries Tipping options the shopper can choose from if `usePredefinedTipEntries` is **true**. The maximum number of predefined options is four, or three plus the option to enter a custom tip. The options can be a mix of: - A percentage of the transaction amount. Example: **5%** - A tip amount in [minor units](https://docs.adyen.com/development-resources/currency-codes). Example: **500** for a EUR 5 tip. * @return the current {@code Gratuity} instance, allowing for method chaining */ public Gratuity predefinedTipEntries(List predefinedTipEntries) { @@ -148,18 +136,8 @@ public Gratuity addPredefinedTipEntriesItem(String predefinedTipEntriesItem) { } /** - * Tipping options the shopper can choose from if `usePredefinedTipEntries` is **true**. - * The maximum number of predefined options is four, or three plus the option to enter a custom - * tip. The options can be a mix of: - A percentage of the transaction amount. Example: **5%** - A - * tip amount in [minor units](https://docs.adyen.com/development-resources/currency-codes). - * Example: **500** for a EUR 5 tip. - * - * @return predefinedTipEntries Tipping options the shopper can choose from if - * `usePredefinedTipEntries` is **true**. The maximum number of predefined options - * is four, or three plus the option to enter a custom tip. The options can be a mix of: - A - * percentage of the transaction amount. Example: **5%** - A tip amount in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). Example: **500** for a - * EUR 5 tip. + * Tipping options the shopper can choose from if `usePredefinedTipEntries` is **true**. The maximum number of predefined options is four, or three plus the option to enter a custom tip. The options can be a mix of: - A percentage of the transaction amount. Example: **5%** - A tip amount in [minor units](https://docs.adyen.com/development-resources/currency-codes). Example: **500** for a EUR 5 tip. + * @return predefinedTipEntries Tipping options the shopper can choose from if `usePredefinedTipEntries` is **true**. The maximum number of predefined options is four, or three plus the option to enter a custom tip. The options can be a mix of: - A percentage of the transaction amount. Example: **5%** - A tip amount in [minor units](https://docs.adyen.com/development-resources/currency-codes). Example: **500** for a EUR 5 tip. */ @JsonProperty(JSON_PROPERTY_PREDEFINED_TIP_ENTRIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,18 +146,9 @@ public List getPredefinedTipEntries() { } /** - * Tipping options the shopper can choose from if `usePredefinedTipEntries` is **true**. - * The maximum number of predefined options is four, or three plus the option to enter a custom - * tip. The options can be a mix of: - A percentage of the transaction amount. Example: **5%** - A - * tip amount in [minor units](https://docs.adyen.com/development-resources/currency-codes). - * Example: **500** for a EUR 5 tip. + * Tipping options the shopper can choose from if `usePredefinedTipEntries` is **true**. The maximum number of predefined options is four, or three plus the option to enter a custom tip. The options can be a mix of: - A percentage of the transaction amount. Example: **5%** - A tip amount in [minor units](https://docs.adyen.com/development-resources/currency-codes). Example: **500** for a EUR 5 tip. * - * @param predefinedTipEntries Tipping options the shopper can choose from if - * `usePredefinedTipEntries` is **true**. The maximum number of predefined options - * is four, or three plus the option to enter a custom tip. The options can be a mix of: - A - * percentage of the transaction amount. Example: **5%** - A tip amount in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). Example: **500** for a - * EUR 5 tip. + * @param predefinedTipEntries Tipping options the shopper can choose from if `usePredefinedTipEntries` is **true**. The maximum number of predefined options is four, or three plus the option to enter a custom tip. The options can be a mix of: - A percentage of the transaction amount. Example: **5%** - A tip amount in [minor units](https://docs.adyen.com/development-resources/currency-codes). Example: **500** for a EUR 5 tip. */ @JsonProperty(JSON_PROPERTY_PREDEFINED_TIP_ENTRIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,11 +157,9 @@ public void setPredefinedTipEntries(List predefinedTipEntries) { } /** - * Indicates whether the terminal shows a prompt to enter a tip (**false**), or predefined tipping - * options to choose from (**true**). + * Indicates whether the terminal shows a prompt to enter a tip (**false**), or predefined tipping options to choose from (**true**). * - * @param usePredefinedTipEntries Indicates whether the terminal shows a prompt to enter a tip - * (**false**), or predefined tipping options to choose from (**true**). + * @param usePredefinedTipEntries Indicates whether the terminal shows a prompt to enter a tip (**false**), or predefined tipping options to choose from (**true**). * @return the current {@code Gratuity} instance, allowing for method chaining */ public Gratuity usePredefinedTipEntries(Boolean usePredefinedTipEntries) { @@ -201,11 +168,8 @@ public Gratuity usePredefinedTipEntries(Boolean usePredefinedTipEntries) { } /** - * Indicates whether the terminal shows a prompt to enter a tip (**false**), or predefined tipping - * options to choose from (**true**). - * - * @return usePredefinedTipEntries Indicates whether the terminal shows a prompt to enter a tip - * (**false**), or predefined tipping options to choose from (**true**). + * Indicates whether the terminal shows a prompt to enter a tip (**false**), or predefined tipping options to choose from (**true**). + * @return usePredefinedTipEntries Indicates whether the terminal shows a prompt to enter a tip (**false**), or predefined tipping options to choose from (**true**). */ @JsonProperty(JSON_PROPERTY_USE_PREDEFINED_TIP_ENTRIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,11 +178,9 @@ public Boolean getUsePredefinedTipEntries() { } /** - * Indicates whether the terminal shows a prompt to enter a tip (**false**), or predefined tipping - * options to choose from (**true**). + * Indicates whether the terminal shows a prompt to enter a tip (**false**), or predefined tipping options to choose from (**true**). * - * @param usePredefinedTipEntries Indicates whether the terminal shows a prompt to enter a tip - * (**false**), or predefined tipping options to choose from (**true**). + * @param usePredefinedTipEntries Indicates whether the terminal shows a prompt to enter a tip (**false**), or predefined tipping options to choose from (**true**). */ @JsonProperty(JSON_PROPERTY_USE_PREDEFINED_TIP_ENTRIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -226,7 +188,9 @@ public void setUsePredefinedTipEntries(Boolean usePredefinedTipEntries) { this.usePredefinedTipEntries = usePredefinedTipEntries; } - /** Return true if this Gratuity object is equal to o. */ + /** + * Return true if this Gratuity object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -236,10 +200,10 @@ public boolean equals(Object o) { return false; } Gratuity gratuity = (Gratuity) o; - return Objects.equals(this.allowCustomAmount, gratuity.allowCustomAmount) - && Objects.equals(this.currency, gratuity.currency) - && Objects.equals(this.predefinedTipEntries, gratuity.predefinedTipEntries) - && Objects.equals(this.usePredefinedTipEntries, gratuity.usePredefinedTipEntries); + return Objects.equals(this.allowCustomAmount, gratuity.allowCustomAmount) && + Objects.equals(this.currency, gratuity.currency) && + Objects.equals(this.predefinedTipEntries, gratuity.predefinedTipEntries) && + Objects.equals(this.usePredefinedTipEntries, gratuity.usePredefinedTipEntries); } @Override @@ -253,18 +217,15 @@ public String toString() { sb.append("class Gratuity {\n"); sb.append(" allowCustomAmount: ").append(toIndentedString(allowCustomAmount)).append("\n"); sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); - sb.append(" predefinedTipEntries: ") - .append(toIndentedString(predefinedTipEntries)) - .append("\n"); - sb.append(" usePredefinedTipEntries: ") - .append(toIndentedString(usePredefinedTipEntries)) - .append("\n"); + sb.append(" predefinedTipEntries: ").append(toIndentedString(predefinedTipEntries)).append("\n"); + sb.append(" usePredefinedTipEntries: ").append(toIndentedString(usePredefinedTipEntries)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -273,7 +234,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Gratuity given an JSON string * * @param jsonString JSON string @@ -283,12 +244,11 @@ private String toIndentedString(Object o) { public static Gratuity fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Gratuity.class); } - - /** - * Convert an instance of Gratuity to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Gratuity to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Hardware.java b/src/main/java/com/adyen/model/management/Hardware.java index 34f2b2f48..95c3f20c5 100644 --- a/src/main/java/com/adyen/model/management/Hardware.java +++ b/src/main/java/com/adyen/model/management/Hardware.java @@ -2,27 +2,37 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Hardware */ + +/** + * Hardware + */ @JsonPropertyOrder({ Hardware.JSON_PROPERTY_DISPLAY_MAXIMUM_BACK_LIGHT, Hardware.JSON_PROPERTY_RESET_TOTALS_HOUR, Hardware.JSON_PROPERTY_RESTART_HOUR }) + public class Hardware { public static final String JSON_PROPERTY_DISPLAY_MAXIMUM_BACK_LIGHT = "displayMaximumBackLight"; private Integer displayMaximumBackLight; @@ -33,13 +43,13 @@ public class Hardware { public static final String JSON_PROPERTY_RESTART_HOUR = "restartHour"; private Integer restartHour; - public Hardware() {} + public Hardware() { + } /** * The brightness of the display when the terminal is being used, expressed as a percentage. * - * @param displayMaximumBackLight The brightness of the display when the terminal is being used, - * expressed as a percentage. + * @param displayMaximumBackLight The brightness of the display when the terminal is being used, expressed as a percentage. * @return the current {@code Hardware} instance, allowing for method chaining */ public Hardware displayMaximumBackLight(Integer displayMaximumBackLight) { @@ -49,9 +59,7 @@ public Hardware displayMaximumBackLight(Integer displayMaximumBackLight) { /** * The brightness of the display when the terminal is being used, expressed as a percentage. - * - * @return displayMaximumBackLight The brightness of the display when the terminal is being used, - * expressed as a percentage. + * @return displayMaximumBackLight The brightness of the display when the terminal is being used, expressed as a percentage. */ @JsonProperty(JSON_PROPERTY_DISPLAY_MAXIMUM_BACK_LIGHT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -62,8 +70,7 @@ public Integer getDisplayMaximumBackLight() { /** * The brightness of the display when the terminal is being used, expressed as a percentage. * - * @param displayMaximumBackLight The brightness of the display when the terminal is being used, - * expressed as a percentage. + * @param displayMaximumBackLight The brightness of the display when the terminal is being used, expressed as a percentage. */ @JsonProperty(JSON_PROPERTY_DISPLAY_MAXIMUM_BACK_LIGHT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -72,12 +79,9 @@ public void setDisplayMaximumBackLight(Integer displayMaximumBackLight) { } /** - * The hour of the day when the terminal is set to reset the Totals report. By default, the reset - * hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, maximum value: 23. + * The hour of the day when the terminal is set to reset the Totals report. By default, the reset hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, maximum value: 23. * - * @param resetTotalsHour The hour of the day when the terminal is set to reset the Totals report. - * By default, the reset hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, - * maximum value: 23. + * @param resetTotalsHour The hour of the day when the terminal is set to reset the Totals report. By default, the reset hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, maximum value: 23. * @return the current {@code Hardware} instance, allowing for method chaining */ public Hardware resetTotalsHour(Integer resetTotalsHour) { @@ -86,12 +90,8 @@ public Hardware resetTotalsHour(Integer resetTotalsHour) { } /** - * The hour of the day when the terminal is set to reset the Totals report. By default, the reset - * hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, maximum value: 23. - * - * @return resetTotalsHour The hour of the day when the terminal is set to reset the Totals - * report. By default, the reset hour is at 6:00 AM in the timezone of the terminal. Minimum - * value: 0, maximum value: 23. + * The hour of the day when the terminal is set to reset the Totals report. By default, the reset hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, maximum value: 23. + * @return resetTotalsHour The hour of the day when the terminal is set to reset the Totals report. By default, the reset hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, maximum value: 23. */ @JsonProperty(JSON_PROPERTY_RESET_TOTALS_HOUR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,12 +100,9 @@ public Integer getResetTotalsHour() { } /** - * The hour of the day when the terminal is set to reset the Totals report. By default, the reset - * hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, maximum value: 23. + * The hour of the day when the terminal is set to reset the Totals report. By default, the reset hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, maximum value: 23. * - * @param resetTotalsHour The hour of the day when the terminal is set to reset the Totals report. - * By default, the reset hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, - * maximum value: 23. + * @param resetTotalsHour The hour of the day when the terminal is set to reset the Totals report. By default, the reset hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, maximum value: 23. */ @JsonProperty(JSON_PROPERTY_RESET_TOTALS_HOUR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,13 +111,9 @@ public void setResetTotalsHour(Integer resetTotalsHour) { } /** - * The hour of the day when the terminal is set to reboot to apply the configuration and software - * updates. By default, the restart hour is at 6:00 AM in the timezone of the terminal. Minimum - * value: 0, maximum value: 23. + * The hour of the day when the terminal is set to reboot to apply the configuration and software updates. By default, the restart hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, maximum value: 23. * - * @param restartHour The hour of the day when the terminal is set to reboot to apply the - * configuration and software updates. By default, the restart hour is at 6:00 AM in the - * timezone of the terminal. Minimum value: 0, maximum value: 23. + * @param restartHour The hour of the day when the terminal is set to reboot to apply the configuration and software updates. By default, the restart hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, maximum value: 23. * @return the current {@code Hardware} instance, allowing for method chaining */ public Hardware restartHour(Integer restartHour) { @@ -129,13 +122,8 @@ public Hardware restartHour(Integer restartHour) { } /** - * The hour of the day when the terminal is set to reboot to apply the configuration and software - * updates. By default, the restart hour is at 6:00 AM in the timezone of the terminal. Minimum - * value: 0, maximum value: 23. - * - * @return restartHour The hour of the day when the terminal is set to reboot to apply the - * configuration and software updates. By default, the restart hour is at 6:00 AM in the - * timezone of the terminal. Minimum value: 0, maximum value: 23. + * The hour of the day when the terminal is set to reboot to apply the configuration and software updates. By default, the restart hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, maximum value: 23. + * @return restartHour The hour of the day when the terminal is set to reboot to apply the configuration and software updates. By default, the restart hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, maximum value: 23. */ @JsonProperty(JSON_PROPERTY_RESTART_HOUR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,13 +132,9 @@ public Integer getRestartHour() { } /** - * The hour of the day when the terminal is set to reboot to apply the configuration and software - * updates. By default, the restart hour is at 6:00 AM in the timezone of the terminal. Minimum - * value: 0, maximum value: 23. + * The hour of the day when the terminal is set to reboot to apply the configuration and software updates. By default, the restart hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, maximum value: 23. * - * @param restartHour The hour of the day when the terminal is set to reboot to apply the - * configuration and software updates. By default, the restart hour is at 6:00 AM in the - * timezone of the terminal. Minimum value: 0, maximum value: 23. + * @param restartHour The hour of the day when the terminal is set to reboot to apply the configuration and software updates. By default, the restart hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, maximum value: 23. */ @JsonProperty(JSON_PROPERTY_RESTART_HOUR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,7 +142,9 @@ public void setRestartHour(Integer restartHour) { this.restartHour = restartHour; } - /** Return true if this Hardware object is equal to o. */ + /** + * Return true if this Hardware object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -168,9 +154,9 @@ public boolean equals(Object o) { return false; } Hardware hardware = (Hardware) o; - return Objects.equals(this.displayMaximumBackLight, hardware.displayMaximumBackLight) - && Objects.equals(this.resetTotalsHour, hardware.resetTotalsHour) - && Objects.equals(this.restartHour, hardware.restartHour); + return Objects.equals(this.displayMaximumBackLight, hardware.displayMaximumBackLight) && + Objects.equals(this.resetTotalsHour, hardware.resetTotalsHour) && + Objects.equals(this.restartHour, hardware.restartHour); } @Override @@ -182,9 +168,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Hardware {\n"); - sb.append(" displayMaximumBackLight: ") - .append(toIndentedString(displayMaximumBackLight)) - .append("\n"); + sb.append(" displayMaximumBackLight: ").append(toIndentedString(displayMaximumBackLight)).append("\n"); sb.append(" resetTotalsHour: ").append(toIndentedString(resetTotalsHour)).append("\n"); sb.append(" restartHour: ").append(toIndentedString(restartHour)).append("\n"); sb.append("}"); @@ -192,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -201,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Hardware given an JSON string * * @param jsonString JSON string @@ -211,12 +196,11 @@ private String toIndentedString(Object o) { public static Hardware fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Hardware.class); } - - /** - * Convert an instance of Hardware to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Hardware to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/IdName.java b/src/main/java/com/adyen/model/management/IdName.java index 1dcd38a4d..08bd6ed07 100644 --- a/src/main/java/com/adyen/model/management/IdName.java +++ b/src/main/java/com/adyen/model/management/IdName.java @@ -2,23 +2,36 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** IdName */ -@JsonPropertyOrder({IdName.JSON_PROPERTY_ID, IdName.JSON_PROPERTY_NAME}) + +/** + * IdName + */ +@JsonPropertyOrder({ + IdName.JSON_PROPERTY_ID, + IdName.JSON_PROPERTY_NAME +}) + public class IdName { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -26,7 +39,8 @@ public class IdName { public static final String JSON_PROPERTY_NAME = "name"; private String name; - public IdName() {} + public IdName() { + } /** * The identifier of the terminal model. @@ -41,7 +55,6 @@ public IdName id(String id) { /** * The identifier of the terminal model. - * * @return id The identifier of the terminal model. */ @JsonProperty(JSON_PROPERTY_ID) @@ -74,7 +87,6 @@ public IdName name(String name) { /** * The name of the terminal model. - * * @return name The name of the terminal model. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -94,7 +106,9 @@ public void setName(String name) { this.name = name; } - /** Return true if this IdName object is equal to o. */ + /** + * Return true if this IdName object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -104,7 +118,8 @@ public boolean equals(Object o) { return false; } IdName idName = (IdName) o; - return Objects.equals(this.id, idName.id) && Objects.equals(this.name, idName.name); + return Objects.equals(this.id, idName.id) && + Objects.equals(this.name, idName.name); } @Override @@ -123,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -132,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of IdName given an JSON string * * @param jsonString JSON string @@ -142,12 +158,11 @@ private String toIndentedString(Object o) { public static IdName fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, IdName.class); } - - /** - * Convert an instance of IdName to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of IdName to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/InstallAndroidAppDetails.java b/src/main/java/com/adyen/model/management/InstallAndroidAppDetails.java index f8329e57a..40ed88ad2 100644 --- a/src/main/java/com/adyen/model/management/InstallAndroidAppDetails.java +++ b/src/main/java/com/adyen/model/management/InstallAndroidAppDetails.java @@ -2,36 +2,45 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** InstallAndroidAppDetails */ + +/** + * InstallAndroidAppDetails + */ @JsonPropertyOrder({ InstallAndroidAppDetails.JSON_PROPERTY_APP_ID, InstallAndroidAppDetails.JSON_PROPERTY_TYPE }) + public class InstallAndroidAppDetails { public static final String JSON_PROPERTY_APP_ID = "appId"; private String appId; - /** Type of terminal action: Install an Android app. */ + /** + * Type of terminal action: Install an Android app. + */ public enum TypeEnum { + INSTALLANDROIDAPP(String.valueOf("InstallAndroidApp")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -39,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -72,7 +77,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public InstallAndroidAppDetails() {} + public InstallAndroidAppDetails() { + } /** * The unique identifier of the app to be installed. @@ -87,7 +93,6 @@ public InstallAndroidAppDetails appId(String appId) { /** * The unique identifier of the app to be installed. - * * @return appId The unique identifier of the app to be installed. */ @JsonProperty(JSON_PROPERTY_APP_ID) @@ -120,7 +125,6 @@ public InstallAndroidAppDetails type(TypeEnum type) { /** * Type of terminal action: Install an Android app. - * * @return type Type of terminal action: Install an Android app. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -140,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this InstallAndroidAppDetails object is equal to o. */ + /** + * Return true if this InstallAndroidAppDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -150,8 +156,8 @@ public boolean equals(Object o) { return false; } InstallAndroidAppDetails installAndroidAppDetails = (InstallAndroidAppDetails) o; - return Objects.equals(this.appId, installAndroidAppDetails.appId) - && Objects.equals(this.type, installAndroidAppDetails.type); + return Objects.equals(this.appId, installAndroidAppDetails.appId) && + Objects.equals(this.type, installAndroidAppDetails.type); } @Override @@ -170,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -179,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of InstallAndroidAppDetails given an JSON string * * @param jsonString JSON string * @return An instance of InstallAndroidAppDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * InstallAndroidAppDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to InstallAndroidAppDetails */ - public static InstallAndroidAppDetails fromJson(String jsonString) - throws JsonProcessingException { + public static InstallAndroidAppDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, InstallAndroidAppDetails.class); } - - /** - * Convert an instance of InstallAndroidAppDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of InstallAndroidAppDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/InstallAndroidCertificateDetails.java b/src/main/java/com/adyen/model/management/InstallAndroidCertificateDetails.java index 9ac2d7086..a5b2a1c0a 100644 --- a/src/main/java/com/adyen/model/management/InstallAndroidCertificateDetails.java +++ b/src/main/java/com/adyen/model/management/InstallAndroidCertificateDetails.java @@ -2,36 +2,45 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** InstallAndroidCertificateDetails */ + +/** + * InstallAndroidCertificateDetails + */ @JsonPropertyOrder({ InstallAndroidCertificateDetails.JSON_PROPERTY_CERTIFICATE_ID, InstallAndroidCertificateDetails.JSON_PROPERTY_TYPE }) + public class InstallAndroidCertificateDetails { public static final String JSON_PROPERTY_CERTIFICATE_ID = "certificateId"; private String certificateId; - /** Type of terminal action: Install an Android certificate. */ + /** + * Type of terminal action: Install an Android certificate. + */ public enum TypeEnum { + INSTALLANDROIDCERTIFICATE(String.valueOf("InstallAndroidCertificate")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -39,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -72,14 +77,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public InstallAndroidCertificateDetails() {} + public InstallAndroidCertificateDetails() { + } /** * The unique identifier of the certificate to be installed. * * @param certificateId The unique identifier of the certificate to be installed. - * @return the current {@code InstallAndroidCertificateDetails} instance, allowing for method - * chaining + * @return the current {@code InstallAndroidCertificateDetails} instance, allowing for method chaining */ public InstallAndroidCertificateDetails certificateId(String certificateId) { this.certificateId = certificateId; @@ -88,7 +93,6 @@ public InstallAndroidCertificateDetails certificateId(String certificateId) { /** * The unique identifier of the certificate to be installed. - * * @return certificateId The unique identifier of the certificate to be installed. */ @JsonProperty(JSON_PROPERTY_CERTIFICATE_ID) @@ -112,8 +116,7 @@ public void setCertificateId(String certificateId) { * Type of terminal action: Install an Android certificate. * * @param type Type of terminal action: Install an Android certificate. - * @return the current {@code InstallAndroidCertificateDetails} instance, allowing for method - * chaining + * @return the current {@code InstallAndroidCertificateDetails} instance, allowing for method chaining */ public InstallAndroidCertificateDetails type(TypeEnum type) { this.type = type; @@ -122,7 +125,6 @@ public InstallAndroidCertificateDetails type(TypeEnum type) { /** * Type of terminal action: Install an Android certificate. - * * @return type Type of terminal action: Install an Android certificate. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -142,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this InstallAndroidCertificateDetails object is equal to o. */ + /** + * Return true if this InstallAndroidCertificateDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -151,10 +155,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InstallAndroidCertificateDetails installAndroidCertificateDetails = - (InstallAndroidCertificateDetails) o; - return Objects.equals(this.certificateId, installAndroidCertificateDetails.certificateId) - && Objects.equals(this.type, installAndroidCertificateDetails.type); + InstallAndroidCertificateDetails installAndroidCertificateDetails = (InstallAndroidCertificateDetails) o; + return Objects.equals(this.certificateId, installAndroidCertificateDetails.certificateId) && + Objects.equals(this.type, installAndroidCertificateDetails.type); } @Override @@ -173,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of InstallAndroidCertificateDetails given an JSON string * * @param jsonString JSON string * @return An instance of InstallAndroidCertificateDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * InstallAndroidCertificateDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to InstallAndroidCertificateDetails */ - public static InstallAndroidCertificateDetails fromJson(String jsonString) - throws JsonProcessingException { + public static InstallAndroidCertificateDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, InstallAndroidCertificateDetails.class); } - - /** - * Convert an instance of InstallAndroidCertificateDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of InstallAndroidCertificateDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/InvalidField.java b/src/main/java/com/adyen/model/management/InvalidField.java index fdaa21552..11421e274 100644 --- a/src/main/java/com/adyen/model/management/InvalidField.java +++ b/src/main/java/com/adyen/model/management/InvalidField.java @@ -2,27 +2,37 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** InvalidField */ + +/** + * InvalidField + */ @JsonPropertyOrder({ InvalidField.JSON_PROPERTY_MESSAGE, InvalidField.JSON_PROPERTY_NAME, InvalidField.JSON_PROPERTY_VALUE }) + public class InvalidField { public static final String JSON_PROPERTY_MESSAGE = "message"; private String message; @@ -33,7 +43,8 @@ public class InvalidField { public static final String JSON_PROPERTY_VALUE = "value"; private String value; - public InvalidField() {} + public InvalidField() { + } /** * Description of the validation error. @@ -48,7 +59,6 @@ public InvalidField message(String message) { /** * Description of the validation error. - * * @return message Description of the validation error. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -81,7 +91,6 @@ public InvalidField name(String name) { /** * The field that has an invalid value. - * * @return name The field that has an invalid value. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -114,7 +123,6 @@ public InvalidField value(String value) { /** * The invalid value. - * * @return value The invalid value. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -134,7 +142,9 @@ public void setValue(String value) { this.value = value; } - /** Return true if this InvalidField object is equal to o. */ + /** + * Return true if this InvalidField object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,9 +154,9 @@ public boolean equals(Object o) { return false; } InvalidField invalidField = (InvalidField) o; - return Objects.equals(this.message, invalidField.message) - && Objects.equals(this.name, invalidField.name) - && Objects.equals(this.value, invalidField.value); + return Objects.equals(this.message, invalidField.message) && + Objects.equals(this.name, invalidField.name) && + Objects.equals(this.value, invalidField.value); } @Override @@ -166,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of InvalidField given an JSON string * * @param jsonString JSON string @@ -185,12 +196,11 @@ private String toIndentedString(Object o) { public static InvalidField fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, InvalidField.class); } - - /** - * Convert an instance of InvalidField to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of InvalidField to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/JCBInfo.java b/src/main/java/com/adyen/model/management/JCBInfo.java index 3b00c0e63..b5bb3b5d4 100644 --- a/src/main/java/com/adyen/model/management/JCBInfo.java +++ b/src/main/java/com/adyen/model/management/JCBInfo.java @@ -2,32 +2,39 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.TransactionDescriptionInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** JCBInfo */ +/** + * JCBInfo + */ @JsonPropertyOrder({ JCBInfo.JSON_PROPERTY_MID_NUMBER, JCBInfo.JSON_PROPERTY_REUSE_MID_NUMBER, JCBInfo.JSON_PROPERTY_SERVICE_LEVEL, JCBInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION }) + public class JCBInfo { public static final String JSON_PROPERTY_MID_NUMBER = "midNumber"; private String midNumber; @@ -36,15 +43,10 @@ public class JCBInfo { private Boolean reuseMidNumber; /** - * Specifies the service level (settlement type) of this payment method. Required for merchants - * operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB for - * merchants operating in Japan or American Express for merchants operating in Canada, Australia - * and New Zealand. * **gatewayContract**: JCB or American Express receives the settlement and - * handles disputes, then pays out to you or your sub-merchant directly. * - * **paymentDesignatorContract**: Available only for merchants operating in Canada, Australia and - * New Zealand. Adyen receives the settlement, and handles disputes and payouts. + * Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB for merchants operating in Japan or American Express for merchants operating in Canada, Australia and New Zealand. * **gatewayContract**: JCB or American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Available only for merchants operating in Canada, Australia and New Zealand. Adyen receives the settlement, and handles disputes and payouts. */ public enum ServiceLevelEnum { + NOCONTRACT(String.valueOf("noContract")), GATEWAYCONTRACT(String.valueOf("gatewayContract")), @@ -56,7 +58,7 @@ public enum ServiceLevelEnum { private String value; ServiceLevelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -77,11 +79,7 @@ public static ServiceLevelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ServiceLevelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ServiceLevelEnum.values())); + LOG.warning("ServiceLevelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ServiceLevelEnum.values())); return null; } } @@ -92,19 +90,13 @@ public static ServiceLevelEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANSACTION_DESCRIPTION = "transactionDescription"; private TransactionDescriptionInfo transactionDescription; - public JCBInfo() {} + public JCBInfo() { + } /** - * MID (Merchant ID) number. Required for merchants operating in Japan or merchants operating in - * Canada, Australia and New Zealand when requesting `gatewayContract` or - * `paymentDesignatorContract` service levels.Format: 14 numeric characters for Japan, - * 10 numeric characters for Canada, Australia and New Zealand. + * MID (Merchant ID) number. Required for merchants operating in Japan or merchants operating in Canada, Australia and New Zealand when requesting `gatewayContract` or `paymentDesignatorContract` service levels.Format: 14 numeric characters for Japan, 10 numeric characters for Canada, Australia and New Zealand. * - * @param midNumber MID (Merchant ID) number. Required for merchants operating in Japan or - * merchants operating in Canada, Australia and New Zealand when requesting - * `gatewayContract` or `paymentDesignatorContract` service levels.Format: - * 14 numeric characters for Japan, 10 numeric characters for Canada, Australia and New - * Zealand. + * @param midNumber MID (Merchant ID) number. Required for merchants operating in Japan or merchants operating in Canada, Australia and New Zealand when requesting `gatewayContract` or `paymentDesignatorContract` service levels.Format: 14 numeric characters for Japan, 10 numeric characters for Canada, Australia and New Zealand. * @return the current {@code JCBInfo} instance, allowing for method chaining */ public JCBInfo midNumber(String midNumber) { @@ -113,16 +105,8 @@ public JCBInfo midNumber(String midNumber) { } /** - * MID (Merchant ID) number. Required for merchants operating in Japan or merchants operating in - * Canada, Australia and New Zealand when requesting `gatewayContract` or - * `paymentDesignatorContract` service levels.Format: 14 numeric characters for Japan, - * 10 numeric characters for Canada, Australia and New Zealand. - * - * @return midNumber MID (Merchant ID) number. Required for merchants operating in Japan or - * merchants operating in Canada, Australia and New Zealand when requesting - * `gatewayContract` or `paymentDesignatorContract` service levels.Format: - * 14 numeric characters for Japan, 10 numeric characters for Canada, Australia and New - * Zealand. + * MID (Merchant ID) number. Required for merchants operating in Japan or merchants operating in Canada, Australia and New Zealand when requesting `gatewayContract` or `paymentDesignatorContract` service levels.Format: 14 numeric characters for Japan, 10 numeric characters for Canada, Australia and New Zealand. + * @return midNumber MID (Merchant ID) number. Required for merchants operating in Japan or merchants operating in Canada, Australia and New Zealand when requesting `gatewayContract` or `paymentDesignatorContract` service levels.Format: 14 numeric characters for Japan, 10 numeric characters for Canada, Australia and New Zealand. */ @JsonProperty(JSON_PROPERTY_MID_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -131,16 +115,9 @@ public String getMidNumber() { } /** - * MID (Merchant ID) number. Required for merchants operating in Japan or merchants operating in - * Canada, Australia and New Zealand when requesting `gatewayContract` or - * `paymentDesignatorContract` service levels.Format: 14 numeric characters for Japan, - * 10 numeric characters for Canada, Australia and New Zealand. + * MID (Merchant ID) number. Required for merchants operating in Japan or merchants operating in Canada, Australia and New Zealand when requesting `gatewayContract` or `paymentDesignatorContract` service levels.Format: 14 numeric characters for Japan, 10 numeric characters for Canada, Australia and New Zealand. * - * @param midNumber MID (Merchant ID) number. Required for merchants operating in Japan or - * merchants operating in Canada, Australia and New Zealand when requesting - * `gatewayContract` or `paymentDesignatorContract` service levels.Format: - * 14 numeric characters for Japan, 10 numeric characters for Canada, Australia and New - * Zealand. + * @param midNumber MID (Merchant ID) number. Required for merchants operating in Japan or merchants operating in Canada, Australia and New Zealand when requesting `gatewayContract` or `paymentDesignatorContract` service levels.Format: 14 numeric characters for Japan, 10 numeric characters for Canada, Australia and New Zealand. */ @JsonProperty(JSON_PROPERTY_MID_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -149,13 +126,9 @@ public void setMidNumber(String midNumber) { } /** - * Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method. The - * default value is **false**.For merchants operating in Japan, this field is required and must be - * set to **true**. + * Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method. The default value is **false**.For merchants operating in Japan, this field is required and must be set to **true**. * - * @param reuseMidNumber Indicates whether the JCB Merchant ID is reused from a previously setup - * JCB payment method. The default value is **false**.For merchants operating in Japan, this - * field is required and must be set to **true**. + * @param reuseMidNumber Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method. The default value is **false**.For merchants operating in Japan, this field is required and must be set to **true**. * @return the current {@code JCBInfo} instance, allowing for method chaining */ public JCBInfo reuseMidNumber(Boolean reuseMidNumber) { @@ -164,13 +137,8 @@ public JCBInfo reuseMidNumber(Boolean reuseMidNumber) { } /** - * Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method. The - * default value is **false**.For merchants operating in Japan, this field is required and must be - * set to **true**. - * - * @return reuseMidNumber Indicates whether the JCB Merchant ID is reused from a previously setup - * JCB payment method. The default value is **false**.For merchants operating in Japan, this - * field is required and must be set to **true**. + * Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method. The default value is **false**.For merchants operating in Japan, this field is required and must be set to **true**. + * @return reuseMidNumber Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method. The default value is **false**.For merchants operating in Japan, this field is required and must be set to **true**. */ @JsonProperty(JSON_PROPERTY_REUSE_MID_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,13 +147,9 @@ public Boolean getReuseMidNumber() { } /** - * Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method. The - * default value is **false**.For merchants operating in Japan, this field is required and must be - * set to **true**. + * Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method. The default value is **false**.For merchants operating in Japan, this field is required and must be set to **true**. * - * @param reuseMidNumber Indicates whether the JCB Merchant ID is reused from a previously setup - * JCB payment method. The default value is **false**.For merchants operating in Japan, this - * field is required and must be set to **true**. + * @param reuseMidNumber Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method. The default value is **false**.For merchants operating in Japan, this field is required and must be set to **true**. */ @JsonProperty(JSON_PROPERTY_REUSE_MID_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,22 +158,9 @@ public void setReuseMidNumber(Boolean reuseMidNumber) { } /** - * Specifies the service level (settlement type) of this payment method. Required for merchants - * operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB for - * merchants operating in Japan or American Express for merchants operating in Canada, Australia - * and New Zealand. * **gatewayContract**: JCB or American Express receives the settlement and - * handles disputes, then pays out to you or your sub-merchant directly. * - * **paymentDesignatorContract**: Available only for merchants operating in Canada, Australia and - * New Zealand. Adyen receives the settlement, and handles disputes and payouts. + * Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB for merchants operating in Japan or American Express for merchants operating in Canada, Australia and New Zealand. * **gatewayContract**: JCB or American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Available only for merchants operating in Canada, Australia and New Zealand. Adyen receives the settlement, and handles disputes and payouts. * - * @param serviceLevel Specifies the service level (settlement type) of this payment method. - * Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds - * the contract with JCB for merchants operating in Japan or American Express for merchants - * operating in Canada, Australia and New Zealand. * **gatewayContract**: JCB or American - * Express receives the settlement and handles disputes, then pays out to you or your - * sub-merchant directly. * **paymentDesignatorContract**: Available only for merchants - * operating in Canada, Australia and New Zealand. Adyen receives the settlement, and handles - * disputes and payouts. + * @param serviceLevel Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB for merchants operating in Japan or American Express for merchants operating in Canada, Australia and New Zealand. * **gatewayContract**: JCB or American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Available only for merchants operating in Canada, Australia and New Zealand. Adyen receives the settlement, and handles disputes and payouts. * @return the current {@code JCBInfo} instance, allowing for method chaining */ public JCBInfo serviceLevel(ServiceLevelEnum serviceLevel) { @@ -218,22 +169,8 @@ public JCBInfo serviceLevel(ServiceLevelEnum serviceLevel) { } /** - * Specifies the service level (settlement type) of this payment method. Required for merchants - * operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB for - * merchants operating in Japan or American Express for merchants operating in Canada, Australia - * and New Zealand. * **gatewayContract**: JCB or American Express receives the settlement and - * handles disputes, then pays out to you or your sub-merchant directly. * - * **paymentDesignatorContract**: Available only for merchants operating in Canada, Australia and - * New Zealand. Adyen receives the settlement, and handles disputes and payouts. - * - * @return serviceLevel Specifies the service level (settlement type) of this payment method. - * Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds - * the contract with JCB for merchants operating in Japan or American Express for merchants - * operating in Canada, Australia and New Zealand. * **gatewayContract**: JCB or American - * Express receives the settlement and handles disputes, then pays out to you or your - * sub-merchant directly. * **paymentDesignatorContract**: Available only for merchants - * operating in Canada, Australia and New Zealand. Adyen receives the settlement, and handles - * disputes and payouts. + * Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB for merchants operating in Japan or American Express for merchants operating in Canada, Australia and New Zealand. * **gatewayContract**: JCB or American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Available only for merchants operating in Canada, Australia and New Zealand. Adyen receives the settlement, and handles disputes and payouts. + * @return serviceLevel Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB for merchants operating in Japan or American Express for merchants operating in Canada, Australia and New Zealand. * **gatewayContract**: JCB or American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Available only for merchants operating in Canada, Australia and New Zealand. Adyen receives the settlement, and handles disputes and payouts. */ @JsonProperty(JSON_PROPERTY_SERVICE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,22 +179,9 @@ public ServiceLevelEnum getServiceLevel() { } /** - * Specifies the service level (settlement type) of this payment method. Required for merchants - * operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB for - * merchants operating in Japan or American Express for merchants operating in Canada, Australia - * and New Zealand. * **gatewayContract**: JCB or American Express receives the settlement and - * handles disputes, then pays out to you or your sub-merchant directly. * - * **paymentDesignatorContract**: Available only for merchants operating in Canada, Australia and - * New Zealand. Adyen receives the settlement, and handles disputes and payouts. + * Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB for merchants operating in Japan or American Express for merchants operating in Canada, Australia and New Zealand. * **gatewayContract**: JCB or American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Available only for merchants operating in Canada, Australia and New Zealand. Adyen receives the settlement, and handles disputes and payouts. * - * @param serviceLevel Specifies the service level (settlement type) of this payment method. - * Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds - * the contract with JCB for merchants operating in Japan or American Express for merchants - * operating in Canada, Australia and New Zealand. * **gatewayContract**: JCB or American - * Express receives the settlement and handles disputes, then pays out to you or your - * sub-merchant directly. * **paymentDesignatorContract**: Available only for merchants - * operating in Canada, Australia and New Zealand. Adyen receives the settlement, and handles - * disputes and payouts. + * @param serviceLevel Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB for merchants operating in Japan or American Express for merchants operating in Canada, Australia and New Zealand. * **gatewayContract**: JCB or American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Available only for merchants operating in Canada, Australia and New Zealand. Adyen receives the settlement, and handles disputes and payouts. */ @JsonProperty(JSON_PROPERTY_SERVICE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -268,7 +192,7 @@ public void setServiceLevel(ServiceLevelEnum serviceLevel) { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription * @return the current {@code JCBInfo} instance, allowing for method chaining */ public JCBInfo transactionDescription(TransactionDescriptionInfo transactionDescription) { @@ -278,8 +202,7 @@ public JCBInfo transactionDescription(TransactionDescriptionInfo transactionDesc /** * Get transactionDescription - * - * @return transactionDescription + * @return transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -290,7 +213,7 @@ public TransactionDescriptionInfo getTransactionDescription() { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -298,7 +221,9 @@ public void setTransactionDescription(TransactionDescriptionInfo transactionDesc this.transactionDescription = transactionDescription; } - /** Return true if this JCBInfo object is equal to o. */ + /** + * Return true if this JCBInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -308,10 +233,10 @@ public boolean equals(Object o) { return false; } JCBInfo jcBInfo = (JCBInfo) o; - return Objects.equals(this.midNumber, jcBInfo.midNumber) - && Objects.equals(this.reuseMidNumber, jcBInfo.reuseMidNumber) - && Objects.equals(this.serviceLevel, jcBInfo.serviceLevel) - && Objects.equals(this.transactionDescription, jcBInfo.transactionDescription); + return Objects.equals(this.midNumber, jcBInfo.midNumber) && + Objects.equals(this.reuseMidNumber, jcBInfo.reuseMidNumber) && + Objects.equals(this.serviceLevel, jcBInfo.serviceLevel) && + Objects.equals(this.transactionDescription, jcBInfo.transactionDescription); } @Override @@ -326,15 +251,14 @@ public String toString() { sb.append(" midNumber: ").append(toIndentedString(midNumber)).append("\n"); sb.append(" reuseMidNumber: ").append(toIndentedString(reuseMidNumber)).append("\n"); sb.append(" serviceLevel: ").append(toIndentedString(serviceLevel)).append("\n"); - sb.append(" transactionDescription: ") - .append(toIndentedString(transactionDescription)) - .append("\n"); + sb.append(" transactionDescription: ").append(toIndentedString(transactionDescription)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -343,7 +267,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of JCBInfo given an JSON string * * @param jsonString JSON string @@ -353,12 +277,11 @@ private String toIndentedString(Object o) { public static JCBInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, JCBInfo.class); } - - /** - * Convert an instance of JCBInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of JCBInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/JSON.java b/src/main/java/com/adyen/model/management/JSON.java index e7636df03..d2eea1607 100644 --- a/src/main/java/com/adyen/model/management/JSON.java +++ b/src/main/java/com/adyen/model/management/JSON.java @@ -1,18 +1,21 @@ package com.adyen.model.management; -import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; +import com.adyen.serializer.ByteArrayDeserializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; +import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; +import com.adyen.model.management.*; + import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -37,7 +40,6 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. - * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -54,13 +56,11 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { - return mapper; - } + public static ObjectMapper getMapper() { return mapper; } /** - * Returns the target model class that should be used to deserialize the input data. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,7 +73,9 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** Helper class to register the discriminator mappings. */ + /** + * Helper class to register the discriminator mappings. + */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -115,9 +117,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. This - * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -162,14 +164,13 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so - * it's not possible to use the instanceof keyword. + * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, + * so it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf( - Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -193,58 +194,59 @@ public static boolean isInstanceOf( return false; } - /** A map of discriminators for all model classes. */ - private static final Map, ClassDiscriminatorMapping> modelDiscriminators = - new HashMap, ClassDiscriminatorMapping>(); + /** + * A map of discriminators for all model classes. + */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); - /** A map of oneOf/anyOf descendants for each model class. */ + /** + * A map of oneOf/anyOf descendants for each model class. + */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator( - Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = - new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants( - Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants(Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static { + static + { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/management/Key.java b/src/main/java/com/adyen/model/management/Key.java index 1c23741fd..c1e3405b9 100644 --- a/src/main/java/com/adyen/model/management/Key.java +++ b/src/main/java/com/adyen/model/management/Key.java @@ -2,27 +2,37 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Key */ + +/** + * Key + */ @JsonPropertyOrder({ Key.JSON_PROPERTY_IDENTIFIER, Key.JSON_PROPERTY_PASSPHRASE, Key.JSON_PROPERTY_VERSION }) + public class Key { public static final String JSON_PROPERTY_IDENTIFIER = "identifier"; private String identifier; @@ -33,7 +43,8 @@ public class Key { public static final String JSON_PROPERTY_VERSION = "version"; private Integer version; - public Key() {} + public Key() { + } /** * The unique identifier of the shared key. @@ -48,7 +59,6 @@ public Key identifier(String identifier) { /** * The unique identifier of the shared key. - * * @return identifier The unique identifier of the shared key. */ @JsonProperty(JSON_PROPERTY_IDENTIFIER) @@ -69,23 +79,9 @@ public void setIdentifier(String identifier) { } /** - * The secure passphrase to protect the shared key. Must consist of: * At least 12 characters. * - * At least 1 uppercase letter: `[A-Z]`. * At least 1 lowercase letter: - * `[a-z]`. * At least 1 digit: `[0-9]`. * At least 1 special character. - * Limited to the following: `~`, `@`, `$`, `%`, - * `^`, `&`, `*`, `(`, `)`, `_`, - * `+`, `=`, `}`, `{`, `]`, `[`, - * `;`, `:`, `?`, `.`, `,`, `>`, - * `<`. + * The secure passphrase to protect the shared key. Must consist of: * At least 12 characters. * At least 1 uppercase letter: `[A-Z]`. * At least 1 lowercase letter: `[a-z]`. * At least 1 digit: `[0-9]`. * At least 1 special character. Limited to the following: `~`, `@`, `$`, `%`, `^`, `&`, `*`, `(`, `)`, `_`, `+`, `=`, `}`, `{`, `]`, `[`, `;`, `:`, `?`, `.`, `,`, `>`, `<`. * - * @param passphrase The secure passphrase to protect the shared key. Must consist of: * At least - * 12 characters. * At least 1 uppercase letter: `[A-Z]`. * At least 1 lowercase - * letter: `[a-z]`. * At least 1 digit: `[0-9]`. * At least 1 special - * character. Limited to the following: `~`, `@`, `$`, - * `%`, `^`, `&`, `*`, `(`, - * `)`, `_`, `+`, `=`, `}`, - * `{`, `]`, `[`, `;`, `:`, `?`, - * `.`, `,`, `>`, `<`. + * @param passphrase The secure passphrase to protect the shared key. Must consist of: * At least 12 characters. * At least 1 uppercase letter: `[A-Z]`. * At least 1 lowercase letter: `[a-z]`. * At least 1 digit: `[0-9]`. * At least 1 special character. Limited to the following: `~`, `@`, `$`, `%`, `^`, `&`, `*`, `(`, `)`, `_`, `+`, `=`, `}`, `{`, `]`, `[`, `;`, `:`, `?`, `.`, `,`, `>`, `<`. * @return the current {@code Key} instance, allowing for method chaining */ public Key passphrase(String passphrase) { @@ -94,23 +90,8 @@ public Key passphrase(String passphrase) { } /** - * The secure passphrase to protect the shared key. Must consist of: * At least 12 characters. * - * At least 1 uppercase letter: `[A-Z]`. * At least 1 lowercase letter: - * `[a-z]`. * At least 1 digit: `[0-9]`. * At least 1 special character. - * Limited to the following: `~`, `@`, `$`, `%`, - * `^`, `&`, `*`, `(`, `)`, `_`, - * `+`, `=`, `}`, `{`, `]`, `[`, - * `;`, `:`, `?`, `.`, `,`, `>`, - * `<`. - * - * @return passphrase The secure passphrase to protect the shared key. Must consist of: * At least - * 12 characters. * At least 1 uppercase letter: `[A-Z]`. * At least 1 lowercase - * letter: `[a-z]`. * At least 1 digit: `[0-9]`. * At least 1 special - * character. Limited to the following: `~`, `@`, `$`, - * `%`, `^`, `&`, `*`, `(`, - * `)`, `_`, `+`, `=`, `}`, - * `{`, `]`, `[`, `;`, `:`, `?`, - * `.`, `,`, `>`, `<`. + * The secure passphrase to protect the shared key. Must consist of: * At least 12 characters. * At least 1 uppercase letter: `[A-Z]`. * At least 1 lowercase letter: `[a-z]`. * At least 1 digit: `[0-9]`. * At least 1 special character. Limited to the following: `~`, `@`, `$`, `%`, `^`, `&`, `*`, `(`, `)`, `_`, `+`, `=`, `}`, `{`, `]`, `[`, `;`, `:`, `?`, `.`, `,`, `>`, `<`. + * @return passphrase The secure passphrase to protect the shared key. Must consist of: * At least 12 characters. * At least 1 uppercase letter: `[A-Z]`. * At least 1 lowercase letter: `[a-z]`. * At least 1 digit: `[0-9]`. * At least 1 special character. Limited to the following: `~`, `@`, `$`, `%`, `^`, `&`, `*`, `(`, `)`, `_`, `+`, `=`, `}`, `{`, `]`, `[`, `;`, `:`, `?`, `.`, `,`, `>`, `<`. */ @JsonProperty(JSON_PROPERTY_PASSPHRASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -119,23 +100,9 @@ public String getPassphrase() { } /** - * The secure passphrase to protect the shared key. Must consist of: * At least 12 characters. * - * At least 1 uppercase letter: `[A-Z]`. * At least 1 lowercase letter: - * `[a-z]`. * At least 1 digit: `[0-9]`. * At least 1 special character. - * Limited to the following: `~`, `@`, `$`, `%`, - * `^`, `&`, `*`, `(`, `)`, `_`, - * `+`, `=`, `}`, `{`, `]`, `[`, - * `;`, `:`, `?`, `.`, `,`, `>`, - * `<`. + * The secure passphrase to protect the shared key. Must consist of: * At least 12 characters. * At least 1 uppercase letter: `[A-Z]`. * At least 1 lowercase letter: `[a-z]`. * At least 1 digit: `[0-9]`. * At least 1 special character. Limited to the following: `~`, `@`, `$`, `%`, `^`, `&`, `*`, `(`, `)`, `_`, `+`, `=`, `}`, `{`, `]`, `[`, `;`, `:`, `?`, `.`, `,`, `>`, `<`. * - * @param passphrase The secure passphrase to protect the shared key. Must consist of: * At least - * 12 characters. * At least 1 uppercase letter: `[A-Z]`. * At least 1 lowercase - * letter: `[a-z]`. * At least 1 digit: `[0-9]`. * At least 1 special - * character. Limited to the following: `~`, `@`, `$`, - * `%`, `^`, `&`, `*`, `(`, - * `)`, `_`, `+`, `=`, `}`, - * `{`, `]`, `[`, `;`, `:`, `?`, - * `.`, `,`, `>`, `<`. + * @param passphrase The secure passphrase to protect the shared key. Must consist of: * At least 12 characters. * At least 1 uppercase letter: `[A-Z]`. * At least 1 lowercase letter: `[a-z]`. * At least 1 digit: `[0-9]`. * At least 1 special character. Limited to the following: `~`, `@`, `$`, `%`, `^`, `&`, `*`, `(`, `)`, `_`, `+`, `=`, `}`, `{`, `]`, `[`, `;`, `:`, `?`, `.`, `,`, `>`, `<`. */ @JsonProperty(JSON_PROPERTY_PASSPHRASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,7 +123,6 @@ public Key version(Integer version) { /** * The version number of the shared key. - * * @return version The version number of the shared key. */ @JsonProperty(JSON_PROPERTY_VERSION) @@ -176,7 +142,9 @@ public void setVersion(Integer version) { this.version = version; } - /** Return true if this Key object is equal to o. */ + /** + * Return true if this Key object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -186,9 +154,9 @@ public boolean equals(Object o) { return false; } Key key = (Key) o; - return Objects.equals(this.identifier, key.identifier) - && Objects.equals(this.passphrase, key.passphrase) - && Objects.equals(this.version, key.version); + return Objects.equals(this.identifier, key.identifier) && + Objects.equals(this.passphrase, key.passphrase) && + Objects.equals(this.version, key.version); } @Override @@ -208,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -217,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Key given an JSON string * * @param jsonString JSON string @@ -227,12 +196,11 @@ private String toIndentedString(Object o) { public static Key fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Key.class); } - - /** - * Convert an instance of Key to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Key to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/KlarnaInfo.java b/src/main/java/com/adyen/model/management/KlarnaInfo.java index edf6c51e5..8559766cd 100644 --- a/src/main/java/com/adyen/model/management/KlarnaInfo.java +++ b/src/main/java/com/adyen/model/management/KlarnaInfo.java @@ -2,32 +2,38 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** KlarnaInfo */ + +/** + * KlarnaInfo + */ @JsonPropertyOrder({ KlarnaInfo.JSON_PROPERTY_AUTO_CAPTURE, KlarnaInfo.JSON_PROPERTY_DISPUTE_EMAIL, KlarnaInfo.JSON_PROPERTY_REGION, KlarnaInfo.JSON_PROPERTY_SUPPORT_EMAIL }) + public class KlarnaInfo { public static final String JSON_PROPERTY_AUTO_CAPTURE = "autoCapture"; private Boolean autoCapture; @@ -35,8 +41,11 @@ public class KlarnaInfo { public static final String JSON_PROPERTY_DISPUTE_EMAIL = "disputeEmail"; private String disputeEmail; - /** The region of operation. For example, **NA**, **EU**, **CH**, **AU**. */ + /** + * The region of operation. For example, **NA**, **EU**, **CH**, **AU**. + */ public enum RegionEnum { + NA(String.valueOf("NA")), EU(String.valueOf("EU")), @@ -50,7 +59,7 @@ public enum RegionEnum { private String value; RegionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -71,11 +80,7 @@ public static RegionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "RegionEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(RegionEnum.values())); + LOG.warning("RegionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RegionEnum.values())); return null; } } @@ -86,16 +91,13 @@ public static RegionEnum fromValue(String value) { public static final String JSON_PROPERTY_SUPPORT_EMAIL = "supportEmail"; private String supportEmail; - public KlarnaInfo() {} + public KlarnaInfo() { + } /** - * Indicates the status of [Automatic - * capture](https://docs.adyen.com/online-payments/capture#automatic-capture). Default value: - * **false**. + * Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture). Default value: **false**. * - * @param autoCapture Indicates the status of [Automatic - * capture](https://docs.adyen.com/online-payments/capture#automatic-capture). Default value: - * **false**. + * @param autoCapture Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture). Default value: **false**. * @return the current {@code KlarnaInfo} instance, allowing for method chaining */ public KlarnaInfo autoCapture(Boolean autoCapture) { @@ -104,13 +106,8 @@ public KlarnaInfo autoCapture(Boolean autoCapture) { } /** - * Indicates the status of [Automatic - * capture](https://docs.adyen.com/online-payments/capture#automatic-capture). Default value: - * **false**. - * - * @return autoCapture Indicates the status of [Automatic - * capture](https://docs.adyen.com/online-payments/capture#automatic-capture). Default value: - * **false**. + * Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture). Default value: **false**. + * @return autoCapture Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture). Default value: **false**. */ @JsonProperty(JSON_PROPERTY_AUTO_CAPTURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -119,13 +116,9 @@ public Boolean getAutoCapture() { } /** - * Indicates the status of [Automatic - * capture](https://docs.adyen.com/online-payments/capture#automatic-capture). Default value: - * **false**. + * Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture). Default value: **false**. * - * @param autoCapture Indicates the status of [Automatic - * capture](https://docs.adyen.com/online-payments/capture#automatic-capture). Default value: - * **false**. + * @param autoCapture Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture). Default value: **false**. */ @JsonProperty(JSON_PROPERTY_AUTO_CAPTURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,7 +139,6 @@ public KlarnaInfo disputeEmail(String disputeEmail) { /** * The email address for disputes. - * * @return disputeEmail The email address for disputes. */ @JsonProperty(JSON_PROPERTY_DISPUTE_EMAIL) @@ -179,7 +171,6 @@ public KlarnaInfo region(RegionEnum region) { /** * The region of operation. For example, **NA**, **EU**, **CH**, **AU**. - * * @return region The region of operation. For example, **NA**, **EU**, **CH**, **AU**. */ @JsonProperty(JSON_PROPERTY_REGION) @@ -212,7 +203,6 @@ public KlarnaInfo supportEmail(String supportEmail) { /** * The email address of merchant support. - * * @return supportEmail The email address of merchant support. */ @JsonProperty(JSON_PROPERTY_SUPPORT_EMAIL) @@ -232,7 +222,9 @@ public void setSupportEmail(String supportEmail) { this.supportEmail = supportEmail; } - /** Return true if this KlarnaInfo object is equal to o. */ + /** + * Return true if this KlarnaInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -242,10 +234,10 @@ public boolean equals(Object o) { return false; } KlarnaInfo klarnaInfo = (KlarnaInfo) o; - return Objects.equals(this.autoCapture, klarnaInfo.autoCapture) - && Objects.equals(this.disputeEmail, klarnaInfo.disputeEmail) - && Objects.equals(this.region, klarnaInfo.region) - && Objects.equals(this.supportEmail, klarnaInfo.supportEmail); + return Objects.equals(this.autoCapture, klarnaInfo.autoCapture) && + Objects.equals(this.disputeEmail, klarnaInfo.disputeEmail) && + Objects.equals(this.region, klarnaInfo.region) && + Objects.equals(this.supportEmail, klarnaInfo.supportEmail); } @Override @@ -266,7 +258,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -275,7 +268,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of KlarnaInfo given an JSON string * * @param jsonString JSON string @@ -285,12 +278,11 @@ private String toIndentedString(Object o) { public static KlarnaInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, KlarnaInfo.class); } - - /** - * Convert an instance of KlarnaInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of KlarnaInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Links.java b/src/main/java/com/adyen/model/management/Links.java index 731c2c4a2..62e2bf7ef 100644 --- a/src/main/java/com/adyen/model/management/Links.java +++ b/src/main/java/com/adyen/model/management/Links.java @@ -2,33 +2,47 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.LinksElement; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Links */ -@JsonPropertyOrder({Links.JSON_PROPERTY_SELF}) + +/** + * Links + */ +@JsonPropertyOrder({ + Links.JSON_PROPERTY_SELF +}) + public class Links { public static final String JSON_PROPERTY_SELF = "self"; private LinksElement self; - public Links() {} + public Links() { + } /** * self * - * @param self + * @param self * @return the current {@code Links} instance, allowing for method chaining */ public Links self(LinksElement self) { @@ -38,8 +52,7 @@ public Links self(LinksElement self) { /** * Get self - * - * @return self + * @return self */ @JsonProperty(JSON_PROPERTY_SELF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -50,7 +63,7 @@ public LinksElement getSelf() { /** * self * - * @param self + * @param self */ @JsonProperty(JSON_PROPERTY_SELF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,7 +71,9 @@ public void setSelf(LinksElement self) { this.self = self; } - /** Return true if this Links object is equal to o. */ + /** + * Return true if this Links object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,7 +101,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,7 +111,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Links given an JSON string * * @param jsonString JSON string @@ -105,12 +121,11 @@ private String toIndentedString(Object o) { public static Links fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Links.class); } - - /** - * Convert an instance of Links to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Links to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/LinksElement.java b/src/main/java/com/adyen/model/management/LinksElement.java index c8635f861..9315dd2f4 100644 --- a/src/main/java/com/adyen/model/management/LinksElement.java +++ b/src/main/java/com/adyen/model/management/LinksElement.java @@ -2,33 +2,46 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** LinksElement */ -@JsonPropertyOrder({LinksElement.JSON_PROPERTY_HREF}) + +/** + * LinksElement + */ +@JsonPropertyOrder({ + LinksElement.JSON_PROPERTY_HREF +}) + public class LinksElement { public static final String JSON_PROPERTY_HREF = "href"; private String href; - public LinksElement() {} + public LinksElement() { + } /** * href * - * @param href + * @param href * @return the current {@code LinksElement} instance, allowing for method chaining */ public LinksElement href(String href) { @@ -38,8 +51,7 @@ public LinksElement href(String href) { /** * Get href - * - * @return href + * @return href */ @JsonProperty(JSON_PROPERTY_HREF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -50,7 +62,7 @@ public String getHref() { /** * href * - * @param href + * @param href */ @JsonProperty(JSON_PROPERTY_HREF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,7 +70,9 @@ public void setHref(String href) { this.href = href; } - /** Return true if this LinksElement object is equal to o. */ + /** + * Return true if this LinksElement object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,7 +110,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of LinksElement given an JSON string * * @param jsonString JSON string @@ -105,12 +120,11 @@ private String toIndentedString(Object o) { public static LinksElement fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, LinksElement.class); } - - /** - * Convert an instance of LinksElement to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of LinksElement to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ListCompanyApiCredentialsResponse.java b/src/main/java/com/adyen/model/management/ListCompanyApiCredentialsResponse.java index 4553fc5a3..dfe34ab4c 100644 --- a/src/main/java/com/adyen/model/management/ListCompanyApiCredentialsResponse.java +++ b/src/main/java/com/adyen/model/management/ListCompanyApiCredentialsResponse.java @@ -2,30 +2,42 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.CompanyApiCredential; +import com.adyen.model.management.PaginationLinks; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ListCompanyApiCredentialsResponse */ +/** + * ListCompanyApiCredentialsResponse + */ @JsonPropertyOrder({ ListCompanyApiCredentialsResponse.JSON_PROPERTY_LINKS, ListCompanyApiCredentialsResponse.JSON_PROPERTY_DATA, ListCompanyApiCredentialsResponse.JSON_PROPERTY_ITEMS_TOTAL, ListCompanyApiCredentialsResponse.JSON_PROPERTY_PAGES_TOTAL }) + public class ListCompanyApiCredentialsResponse { public static final String JSON_PROPERTY_LINKS = "_links"; private PaginationLinks links; @@ -39,14 +51,14 @@ public class ListCompanyApiCredentialsResponse { public static final String JSON_PROPERTY_PAGES_TOTAL = "pagesTotal"; private Integer pagesTotal; - public ListCompanyApiCredentialsResponse() {} + public ListCompanyApiCredentialsResponse() { + } /** * links * - * @param links - * @return the current {@code ListCompanyApiCredentialsResponse} instance, allowing for method - * chaining + * @param links + * @return the current {@code ListCompanyApiCredentialsResponse} instance, allowing for method chaining */ public ListCompanyApiCredentialsResponse links(PaginationLinks links) { this.links = links; @@ -55,8 +67,7 @@ public ListCompanyApiCredentialsResponse links(PaginationLinks links) { /** * Get links - * - * @return links + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -67,7 +78,7 @@ public PaginationLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,8 +90,7 @@ public void setLinks(PaginationLinks links) { * The list of API credentials. * * @param data The list of API credentials. - * @return the current {@code ListCompanyApiCredentialsResponse} instance, allowing for method - * chaining + * @return the current {@code ListCompanyApiCredentialsResponse} instance, allowing for method chaining */ public ListCompanyApiCredentialsResponse data(List data) { this.data = data; @@ -97,7 +107,6 @@ public ListCompanyApiCredentialsResponse addDataItem(CompanyApiCredential dataIt /** * The list of API credentials. - * * @return data The list of API credentials. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -121,8 +130,7 @@ public void setData(List data) { * Total number of items. * * @param itemsTotal Total number of items. - * @return the current {@code ListCompanyApiCredentialsResponse} instance, allowing for method - * chaining + * @return the current {@code ListCompanyApiCredentialsResponse} instance, allowing for method chaining */ public ListCompanyApiCredentialsResponse itemsTotal(Integer itemsTotal) { this.itemsTotal = itemsTotal; @@ -131,7 +139,6 @@ public ListCompanyApiCredentialsResponse itemsTotal(Integer itemsTotal) { /** * Total number of items. - * * @return itemsTotal Total number of items. */ @JsonProperty(JSON_PROPERTY_ITEMS_TOTAL) @@ -155,8 +162,7 @@ public void setItemsTotal(Integer itemsTotal) { * Total number of pages. * * @param pagesTotal Total number of pages. - * @return the current {@code ListCompanyApiCredentialsResponse} instance, allowing for method - * chaining + * @return the current {@code ListCompanyApiCredentialsResponse} instance, allowing for method chaining */ public ListCompanyApiCredentialsResponse pagesTotal(Integer pagesTotal) { this.pagesTotal = pagesTotal; @@ -165,7 +171,6 @@ public ListCompanyApiCredentialsResponse pagesTotal(Integer pagesTotal) { /** * Total number of pages. - * * @return pagesTotal Total number of pages. */ @JsonProperty(JSON_PROPERTY_PAGES_TOTAL) @@ -185,7 +190,9 @@ public void setPagesTotal(Integer pagesTotal) { this.pagesTotal = pagesTotal; } - /** Return true if this ListCompanyApiCredentialsResponse object is equal to o. */ + /** + * Return true if this ListCompanyApiCredentialsResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -194,12 +201,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ListCompanyApiCredentialsResponse listCompanyApiCredentialsResponse = - (ListCompanyApiCredentialsResponse) o; - return Objects.equals(this.links, listCompanyApiCredentialsResponse.links) - && Objects.equals(this.data, listCompanyApiCredentialsResponse.data) - && Objects.equals(this.itemsTotal, listCompanyApiCredentialsResponse.itemsTotal) - && Objects.equals(this.pagesTotal, listCompanyApiCredentialsResponse.pagesTotal); + ListCompanyApiCredentialsResponse listCompanyApiCredentialsResponse = (ListCompanyApiCredentialsResponse) o; + return Objects.equals(this.links, listCompanyApiCredentialsResponse.links) && + Objects.equals(this.data, listCompanyApiCredentialsResponse.data) && + Objects.equals(this.itemsTotal, listCompanyApiCredentialsResponse.itemsTotal) && + Objects.equals(this.pagesTotal, listCompanyApiCredentialsResponse.pagesTotal); } @Override @@ -220,7 +226,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -229,24 +236,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ListCompanyApiCredentialsResponse given an JSON string * * @param jsonString JSON string * @return An instance of ListCompanyApiCredentialsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ListCompanyApiCredentialsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to ListCompanyApiCredentialsResponse */ - public static ListCompanyApiCredentialsResponse fromJson(String jsonString) - throws JsonProcessingException { + public static ListCompanyApiCredentialsResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ListCompanyApiCredentialsResponse.class); } - - /** - * Convert an instance of ListCompanyApiCredentialsResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ListCompanyApiCredentialsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ListCompanyResponse.java b/src/main/java/com/adyen/model/management/ListCompanyResponse.java index 31433449a..5627e23b4 100644 --- a/src/main/java/com/adyen/model/management/ListCompanyResponse.java +++ b/src/main/java/com/adyen/model/management/ListCompanyResponse.java @@ -2,30 +2,42 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.Company; +import com.adyen.model.management.PaginationLinks; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ListCompanyResponse */ +/** + * ListCompanyResponse + */ @JsonPropertyOrder({ ListCompanyResponse.JSON_PROPERTY_LINKS, ListCompanyResponse.JSON_PROPERTY_DATA, ListCompanyResponse.JSON_PROPERTY_ITEMS_TOTAL, ListCompanyResponse.JSON_PROPERTY_PAGES_TOTAL }) + public class ListCompanyResponse { public static final String JSON_PROPERTY_LINKS = "_links"; private PaginationLinks links; @@ -39,12 +51,13 @@ public class ListCompanyResponse { public static final String JSON_PROPERTY_PAGES_TOTAL = "pagesTotal"; private Integer pagesTotal; - public ListCompanyResponse() {} + public ListCompanyResponse() { + } /** * links * - * @param links + * @param links * @return the current {@code ListCompanyResponse} instance, allowing for method chaining */ public ListCompanyResponse links(PaginationLinks links) { @@ -54,8 +67,7 @@ public ListCompanyResponse links(PaginationLinks links) { /** * Get links - * - * @return links + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -66,7 +78,7 @@ public PaginationLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -95,7 +107,6 @@ public ListCompanyResponse addDataItem(Company dataItem) { /** * The list of companies. - * * @return data The list of companies. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -128,7 +139,6 @@ public ListCompanyResponse itemsTotal(Integer itemsTotal) { /** * Total number of items. - * * @return itemsTotal Total number of items. */ @JsonProperty(JSON_PROPERTY_ITEMS_TOTAL) @@ -161,7 +171,6 @@ public ListCompanyResponse pagesTotal(Integer pagesTotal) { /** * Total number of pages. - * * @return pagesTotal Total number of pages. */ @JsonProperty(JSON_PROPERTY_PAGES_TOTAL) @@ -181,7 +190,9 @@ public void setPagesTotal(Integer pagesTotal) { this.pagesTotal = pagesTotal; } - /** Return true if this ListCompanyResponse object is equal to o. */ + /** + * Return true if this ListCompanyResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -191,10 +202,10 @@ public boolean equals(Object o) { return false; } ListCompanyResponse listCompanyResponse = (ListCompanyResponse) o; - return Objects.equals(this.links, listCompanyResponse.links) - && Objects.equals(this.data, listCompanyResponse.data) - && Objects.equals(this.itemsTotal, listCompanyResponse.itemsTotal) - && Objects.equals(this.pagesTotal, listCompanyResponse.pagesTotal); + return Objects.equals(this.links, listCompanyResponse.links) && + Objects.equals(this.data, listCompanyResponse.data) && + Objects.equals(this.itemsTotal, listCompanyResponse.itemsTotal) && + Objects.equals(this.pagesTotal, listCompanyResponse.pagesTotal); } @Override @@ -215,7 +226,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,23 +236,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ListCompanyResponse given an JSON string * * @param jsonString JSON string * @return An instance of ListCompanyResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ListCompanyResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to ListCompanyResponse */ public static ListCompanyResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ListCompanyResponse.class); } - - /** - * Convert an instance of ListCompanyResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ListCompanyResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ListCompanyUsersResponse.java b/src/main/java/com/adyen/model/management/ListCompanyUsersResponse.java index cdf2f1f38..88bc15b62 100644 --- a/src/main/java/com/adyen/model/management/ListCompanyUsersResponse.java +++ b/src/main/java/com/adyen/model/management/ListCompanyUsersResponse.java @@ -2,30 +2,42 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.CompanyUser; +import com.adyen.model.management.PaginationLinks; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ListCompanyUsersResponse */ +/** + * ListCompanyUsersResponse + */ @JsonPropertyOrder({ ListCompanyUsersResponse.JSON_PROPERTY_LINKS, ListCompanyUsersResponse.JSON_PROPERTY_DATA, ListCompanyUsersResponse.JSON_PROPERTY_ITEMS_TOTAL, ListCompanyUsersResponse.JSON_PROPERTY_PAGES_TOTAL }) + public class ListCompanyUsersResponse { public static final String JSON_PROPERTY_LINKS = "_links"; private PaginationLinks links; @@ -39,12 +51,13 @@ public class ListCompanyUsersResponse { public static final String JSON_PROPERTY_PAGES_TOTAL = "pagesTotal"; private Integer pagesTotal; - public ListCompanyUsersResponse() {} + public ListCompanyUsersResponse() { + } /** * links * - * @param links + * @param links * @return the current {@code ListCompanyUsersResponse} instance, allowing for method chaining */ public ListCompanyUsersResponse links(PaginationLinks links) { @@ -54,8 +67,7 @@ public ListCompanyUsersResponse links(PaginationLinks links) { /** * Get links - * - * @return links + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -66,7 +78,7 @@ public PaginationLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -95,7 +107,6 @@ public ListCompanyUsersResponse addDataItem(CompanyUser dataItem) { /** * The list of users. - * * @return data The list of users. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -128,7 +139,6 @@ public ListCompanyUsersResponse itemsTotal(Integer itemsTotal) { /** * Total number of items. - * * @return itemsTotal Total number of items. */ @JsonProperty(JSON_PROPERTY_ITEMS_TOTAL) @@ -161,7 +171,6 @@ public ListCompanyUsersResponse pagesTotal(Integer pagesTotal) { /** * Total number of pages. - * * @return pagesTotal Total number of pages. */ @JsonProperty(JSON_PROPERTY_PAGES_TOTAL) @@ -181,7 +190,9 @@ public void setPagesTotal(Integer pagesTotal) { this.pagesTotal = pagesTotal; } - /** Return true if this ListCompanyUsersResponse object is equal to o. */ + /** + * Return true if this ListCompanyUsersResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -191,10 +202,10 @@ public boolean equals(Object o) { return false; } ListCompanyUsersResponse listCompanyUsersResponse = (ListCompanyUsersResponse) o; - return Objects.equals(this.links, listCompanyUsersResponse.links) - && Objects.equals(this.data, listCompanyUsersResponse.data) - && Objects.equals(this.itemsTotal, listCompanyUsersResponse.itemsTotal) - && Objects.equals(this.pagesTotal, listCompanyUsersResponse.pagesTotal); + return Objects.equals(this.links, listCompanyUsersResponse.links) && + Objects.equals(this.data, listCompanyUsersResponse.data) && + Objects.equals(this.itemsTotal, listCompanyUsersResponse.itemsTotal) && + Objects.equals(this.pagesTotal, listCompanyUsersResponse.pagesTotal); } @Override @@ -215,7 +226,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,24 +236,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ListCompanyUsersResponse given an JSON string * * @param jsonString JSON string * @return An instance of ListCompanyUsersResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ListCompanyUsersResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to ListCompanyUsersResponse */ - public static ListCompanyUsersResponse fromJson(String jsonString) - throws JsonProcessingException { + public static ListCompanyUsersResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ListCompanyUsersResponse.class); } - - /** - * Convert an instance of ListCompanyUsersResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ListCompanyUsersResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ListExternalTerminalActionsResponse.java b/src/main/java/com/adyen/model/management/ListExternalTerminalActionsResponse.java index 13399982d..85bbb4237 100644 --- a/src/main/java/com/adyen/model/management/ListExternalTerminalActionsResponse.java +++ b/src/main/java/com/adyen/model/management/ListExternalTerminalActionsResponse.java @@ -2,37 +2,50 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.ExternalTerminalAction; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * ListExternalTerminalActionsResponse + */ +@JsonPropertyOrder({ + ListExternalTerminalActionsResponse.JSON_PROPERTY_DATA +}) -/** ListExternalTerminalActionsResponse */ -@JsonPropertyOrder({ListExternalTerminalActionsResponse.JSON_PROPERTY_DATA}) public class ListExternalTerminalActionsResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; - public ListExternalTerminalActionsResponse() {} + public ListExternalTerminalActionsResponse() { + } /** * The list of terminal actions. * * @param data The list of terminal actions. - * @return the current {@code ListExternalTerminalActionsResponse} instance, allowing for method - * chaining + * @return the current {@code ListExternalTerminalActionsResponse} instance, allowing for method chaining */ public ListExternalTerminalActionsResponse data(List data) { this.data = data; @@ -49,7 +62,6 @@ public ListExternalTerminalActionsResponse addDataItem(ExternalTerminalAction da /** * The list of terminal actions. - * * @return data The list of terminal actions. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -69,7 +81,9 @@ public void setData(List data) { this.data = data; } - /** Return true if this ListExternalTerminalActionsResponse object is equal to o. */ + /** + * Return true if this ListExternalTerminalActionsResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -78,8 +92,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ListExternalTerminalActionsResponse listExternalTerminalActionsResponse = - (ListExternalTerminalActionsResponse) o; + ListExternalTerminalActionsResponse listExternalTerminalActionsResponse = (ListExternalTerminalActionsResponse) o; return Objects.equals(this.data, listExternalTerminalActionsResponse.data); } @@ -98,7 +111,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -107,24 +121,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ListExternalTerminalActionsResponse given an JSON string * * @param jsonString JSON string * @return An instance of ListExternalTerminalActionsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ListExternalTerminalActionsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to ListExternalTerminalActionsResponse */ - public static ListExternalTerminalActionsResponse fromJson(String jsonString) - throws JsonProcessingException { + public static ListExternalTerminalActionsResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ListExternalTerminalActionsResponse.class); } - - /** - * Convert an instance of ListExternalTerminalActionsResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ListExternalTerminalActionsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ListMerchantApiCredentialsResponse.java b/src/main/java/com/adyen/model/management/ListMerchantApiCredentialsResponse.java index 2b9ffcf28..bf4fc99b9 100644 --- a/src/main/java/com/adyen/model/management/ListMerchantApiCredentialsResponse.java +++ b/src/main/java/com/adyen/model/management/ListMerchantApiCredentialsResponse.java @@ -2,30 +2,42 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.ApiCredential; +import com.adyen.model.management.PaginationLinks; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ListMerchantApiCredentialsResponse */ +/** + * ListMerchantApiCredentialsResponse + */ @JsonPropertyOrder({ ListMerchantApiCredentialsResponse.JSON_PROPERTY_LINKS, ListMerchantApiCredentialsResponse.JSON_PROPERTY_DATA, ListMerchantApiCredentialsResponse.JSON_PROPERTY_ITEMS_TOTAL, ListMerchantApiCredentialsResponse.JSON_PROPERTY_PAGES_TOTAL }) + public class ListMerchantApiCredentialsResponse { public static final String JSON_PROPERTY_LINKS = "_links"; private PaginationLinks links; @@ -39,14 +51,14 @@ public class ListMerchantApiCredentialsResponse { public static final String JSON_PROPERTY_PAGES_TOTAL = "pagesTotal"; private Integer pagesTotal; - public ListMerchantApiCredentialsResponse() {} + public ListMerchantApiCredentialsResponse() { + } /** * links * - * @param links - * @return the current {@code ListMerchantApiCredentialsResponse} instance, allowing for method - * chaining + * @param links + * @return the current {@code ListMerchantApiCredentialsResponse} instance, allowing for method chaining */ public ListMerchantApiCredentialsResponse links(PaginationLinks links) { this.links = links; @@ -55,8 +67,7 @@ public ListMerchantApiCredentialsResponse links(PaginationLinks links) { /** * Get links - * - * @return links + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -67,7 +78,7 @@ public PaginationLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,8 +90,7 @@ public void setLinks(PaginationLinks links) { * The list of API credentials. * * @param data The list of API credentials. - * @return the current {@code ListMerchantApiCredentialsResponse} instance, allowing for method - * chaining + * @return the current {@code ListMerchantApiCredentialsResponse} instance, allowing for method chaining */ public ListMerchantApiCredentialsResponse data(List data) { this.data = data; @@ -97,7 +107,6 @@ public ListMerchantApiCredentialsResponse addDataItem(ApiCredential dataItem) { /** * The list of API credentials. - * * @return data The list of API credentials. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -121,8 +130,7 @@ public void setData(List data) { * Total number of items. * * @param itemsTotal Total number of items. - * @return the current {@code ListMerchantApiCredentialsResponse} instance, allowing for method - * chaining + * @return the current {@code ListMerchantApiCredentialsResponse} instance, allowing for method chaining */ public ListMerchantApiCredentialsResponse itemsTotal(Integer itemsTotal) { this.itemsTotal = itemsTotal; @@ -131,7 +139,6 @@ public ListMerchantApiCredentialsResponse itemsTotal(Integer itemsTotal) { /** * Total number of items. - * * @return itemsTotal Total number of items. */ @JsonProperty(JSON_PROPERTY_ITEMS_TOTAL) @@ -155,8 +162,7 @@ public void setItemsTotal(Integer itemsTotal) { * Total number of pages. * * @param pagesTotal Total number of pages. - * @return the current {@code ListMerchantApiCredentialsResponse} instance, allowing for method - * chaining + * @return the current {@code ListMerchantApiCredentialsResponse} instance, allowing for method chaining */ public ListMerchantApiCredentialsResponse pagesTotal(Integer pagesTotal) { this.pagesTotal = pagesTotal; @@ -165,7 +171,6 @@ public ListMerchantApiCredentialsResponse pagesTotal(Integer pagesTotal) { /** * Total number of pages. - * * @return pagesTotal Total number of pages. */ @JsonProperty(JSON_PROPERTY_PAGES_TOTAL) @@ -185,7 +190,9 @@ public void setPagesTotal(Integer pagesTotal) { this.pagesTotal = pagesTotal; } - /** Return true if this ListMerchantApiCredentialsResponse object is equal to o. */ + /** + * Return true if this ListMerchantApiCredentialsResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -194,12 +201,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ListMerchantApiCredentialsResponse listMerchantApiCredentialsResponse = - (ListMerchantApiCredentialsResponse) o; - return Objects.equals(this.links, listMerchantApiCredentialsResponse.links) - && Objects.equals(this.data, listMerchantApiCredentialsResponse.data) - && Objects.equals(this.itemsTotal, listMerchantApiCredentialsResponse.itemsTotal) - && Objects.equals(this.pagesTotal, listMerchantApiCredentialsResponse.pagesTotal); + ListMerchantApiCredentialsResponse listMerchantApiCredentialsResponse = (ListMerchantApiCredentialsResponse) o; + return Objects.equals(this.links, listMerchantApiCredentialsResponse.links) && + Objects.equals(this.data, listMerchantApiCredentialsResponse.data) && + Objects.equals(this.itemsTotal, listMerchantApiCredentialsResponse.itemsTotal) && + Objects.equals(this.pagesTotal, listMerchantApiCredentialsResponse.pagesTotal); } @Override @@ -220,7 +226,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -229,24 +236,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ListMerchantApiCredentialsResponse given an JSON string * * @param jsonString JSON string * @return An instance of ListMerchantApiCredentialsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ListMerchantApiCredentialsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to ListMerchantApiCredentialsResponse */ - public static ListMerchantApiCredentialsResponse fromJson(String jsonString) - throws JsonProcessingException { + public static ListMerchantApiCredentialsResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ListMerchantApiCredentialsResponse.class); } - - /** - * Convert an instance of ListMerchantApiCredentialsResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ListMerchantApiCredentialsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ListMerchantResponse.java b/src/main/java/com/adyen/model/management/ListMerchantResponse.java index 743f1cd1a..6f9b4e5b4 100644 --- a/src/main/java/com/adyen/model/management/ListMerchantResponse.java +++ b/src/main/java/com/adyen/model/management/ListMerchantResponse.java @@ -2,30 +2,42 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.Merchant; +import com.adyen.model.management.PaginationLinks; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ListMerchantResponse */ +/** + * ListMerchantResponse + */ @JsonPropertyOrder({ ListMerchantResponse.JSON_PROPERTY_LINKS, ListMerchantResponse.JSON_PROPERTY_DATA, ListMerchantResponse.JSON_PROPERTY_ITEMS_TOTAL, ListMerchantResponse.JSON_PROPERTY_PAGES_TOTAL }) + public class ListMerchantResponse { public static final String JSON_PROPERTY_LINKS = "_links"; private PaginationLinks links; @@ -39,12 +51,13 @@ public class ListMerchantResponse { public static final String JSON_PROPERTY_PAGES_TOTAL = "pagesTotal"; private Integer pagesTotal; - public ListMerchantResponse() {} + public ListMerchantResponse() { + } /** * links * - * @param links + * @param links * @return the current {@code ListMerchantResponse} instance, allowing for method chaining */ public ListMerchantResponse links(PaginationLinks links) { @@ -54,8 +67,7 @@ public ListMerchantResponse links(PaginationLinks links) { /** * Get links - * - * @return links + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -66,7 +78,7 @@ public PaginationLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -95,7 +107,6 @@ public ListMerchantResponse addDataItem(Merchant dataItem) { /** * The list of merchant accounts. - * * @return data The list of merchant accounts. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -128,7 +139,6 @@ public ListMerchantResponse itemsTotal(Integer itemsTotal) { /** * Total number of items. - * * @return itemsTotal Total number of items. */ @JsonProperty(JSON_PROPERTY_ITEMS_TOTAL) @@ -161,7 +171,6 @@ public ListMerchantResponse pagesTotal(Integer pagesTotal) { /** * Total number of pages. - * * @return pagesTotal Total number of pages. */ @JsonProperty(JSON_PROPERTY_PAGES_TOTAL) @@ -181,7 +190,9 @@ public void setPagesTotal(Integer pagesTotal) { this.pagesTotal = pagesTotal; } - /** Return true if this ListMerchantResponse object is equal to o. */ + /** + * Return true if this ListMerchantResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -191,10 +202,10 @@ public boolean equals(Object o) { return false; } ListMerchantResponse listMerchantResponse = (ListMerchantResponse) o; - return Objects.equals(this.links, listMerchantResponse.links) - && Objects.equals(this.data, listMerchantResponse.data) - && Objects.equals(this.itemsTotal, listMerchantResponse.itemsTotal) - && Objects.equals(this.pagesTotal, listMerchantResponse.pagesTotal); + return Objects.equals(this.links, listMerchantResponse.links) && + Objects.equals(this.data, listMerchantResponse.data) && + Objects.equals(this.itemsTotal, listMerchantResponse.itemsTotal) && + Objects.equals(this.pagesTotal, listMerchantResponse.pagesTotal); } @Override @@ -215,7 +226,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,23 +236,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ListMerchantResponse given an JSON string * * @param jsonString JSON string * @return An instance of ListMerchantResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ListMerchantResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to ListMerchantResponse */ public static ListMerchantResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ListMerchantResponse.class); } - - /** - * Convert an instance of ListMerchantResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ListMerchantResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ListMerchantUsersResponse.java b/src/main/java/com/adyen/model/management/ListMerchantUsersResponse.java index 342f9dacb..3d25b5807 100644 --- a/src/main/java/com/adyen/model/management/ListMerchantUsersResponse.java +++ b/src/main/java/com/adyen/model/management/ListMerchantUsersResponse.java @@ -2,30 +2,42 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.PaginationLinks; +import com.adyen.model.management.User; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ListMerchantUsersResponse */ +/** + * ListMerchantUsersResponse + */ @JsonPropertyOrder({ ListMerchantUsersResponse.JSON_PROPERTY_LINKS, ListMerchantUsersResponse.JSON_PROPERTY_DATA, ListMerchantUsersResponse.JSON_PROPERTY_ITEMS_TOTAL, ListMerchantUsersResponse.JSON_PROPERTY_PAGES_TOTAL }) + public class ListMerchantUsersResponse { public static final String JSON_PROPERTY_LINKS = "_links"; private PaginationLinks links; @@ -39,12 +51,13 @@ public class ListMerchantUsersResponse { public static final String JSON_PROPERTY_PAGES_TOTAL = "pagesTotal"; private Integer pagesTotal; - public ListMerchantUsersResponse() {} + public ListMerchantUsersResponse() { + } /** * links * - * @param links + * @param links * @return the current {@code ListMerchantUsersResponse} instance, allowing for method chaining */ public ListMerchantUsersResponse links(PaginationLinks links) { @@ -54,8 +67,7 @@ public ListMerchantUsersResponse links(PaginationLinks links) { /** * Get links - * - * @return links + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -66,7 +78,7 @@ public PaginationLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -95,7 +107,6 @@ public ListMerchantUsersResponse addDataItem(User dataItem) { /** * The list of users. - * * @return data The list of users. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -128,7 +139,6 @@ public ListMerchantUsersResponse itemsTotal(Integer itemsTotal) { /** * Total number of items. - * * @return itemsTotal Total number of items. */ @JsonProperty(JSON_PROPERTY_ITEMS_TOTAL) @@ -161,7 +171,6 @@ public ListMerchantUsersResponse pagesTotal(Integer pagesTotal) { /** * Total number of pages. - * * @return pagesTotal Total number of pages. */ @JsonProperty(JSON_PROPERTY_PAGES_TOTAL) @@ -181,7 +190,9 @@ public void setPagesTotal(Integer pagesTotal) { this.pagesTotal = pagesTotal; } - /** Return true if this ListMerchantUsersResponse object is equal to o. */ + /** + * Return true if this ListMerchantUsersResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -191,10 +202,10 @@ public boolean equals(Object o) { return false; } ListMerchantUsersResponse listMerchantUsersResponse = (ListMerchantUsersResponse) o; - return Objects.equals(this.links, listMerchantUsersResponse.links) - && Objects.equals(this.data, listMerchantUsersResponse.data) - && Objects.equals(this.itemsTotal, listMerchantUsersResponse.itemsTotal) - && Objects.equals(this.pagesTotal, listMerchantUsersResponse.pagesTotal); + return Objects.equals(this.links, listMerchantUsersResponse.links) && + Objects.equals(this.data, listMerchantUsersResponse.data) && + Objects.equals(this.itemsTotal, listMerchantUsersResponse.itemsTotal) && + Objects.equals(this.pagesTotal, listMerchantUsersResponse.pagesTotal); } @Override @@ -215,7 +226,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,24 +236,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ListMerchantUsersResponse given an JSON string * * @param jsonString JSON string * @return An instance of ListMerchantUsersResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ListMerchantUsersResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to ListMerchantUsersResponse */ - public static ListMerchantUsersResponse fromJson(String jsonString) - throws JsonProcessingException { + public static ListMerchantUsersResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ListMerchantUsersResponse.class); } - - /** - * Convert an instance of ListMerchantUsersResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ListMerchantUsersResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ListStoresResponse.java b/src/main/java/com/adyen/model/management/ListStoresResponse.java index 828cc53d8..7ca0c7614 100644 --- a/src/main/java/com/adyen/model/management/ListStoresResponse.java +++ b/src/main/java/com/adyen/model/management/ListStoresResponse.java @@ -2,30 +2,42 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.PaginationLinks; +import com.adyen.model.management.Store; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ListStoresResponse */ +/** + * ListStoresResponse + */ @JsonPropertyOrder({ ListStoresResponse.JSON_PROPERTY_LINKS, ListStoresResponse.JSON_PROPERTY_DATA, ListStoresResponse.JSON_PROPERTY_ITEMS_TOTAL, ListStoresResponse.JSON_PROPERTY_PAGES_TOTAL }) + public class ListStoresResponse { public static final String JSON_PROPERTY_LINKS = "_links"; private PaginationLinks links; @@ -39,12 +51,13 @@ public class ListStoresResponse { public static final String JSON_PROPERTY_PAGES_TOTAL = "pagesTotal"; private Integer pagesTotal; - public ListStoresResponse() {} + public ListStoresResponse() { + } /** * links * - * @param links + * @param links * @return the current {@code ListStoresResponse} instance, allowing for method chaining */ public ListStoresResponse links(PaginationLinks links) { @@ -54,8 +67,7 @@ public ListStoresResponse links(PaginationLinks links) { /** * Get links - * - * @return links + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -66,7 +78,7 @@ public PaginationLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -95,7 +107,6 @@ public ListStoresResponse addDataItem(Store dataItem) { /** * List of stores - * * @return data List of stores */ @JsonProperty(JSON_PROPERTY_DATA) @@ -128,7 +139,6 @@ public ListStoresResponse itemsTotal(Integer itemsTotal) { /** * Total number of items. - * * @return itemsTotal Total number of items. */ @JsonProperty(JSON_PROPERTY_ITEMS_TOTAL) @@ -161,7 +171,6 @@ public ListStoresResponse pagesTotal(Integer pagesTotal) { /** * Total number of pages. - * * @return pagesTotal Total number of pages. */ @JsonProperty(JSON_PROPERTY_PAGES_TOTAL) @@ -181,7 +190,9 @@ public void setPagesTotal(Integer pagesTotal) { this.pagesTotal = pagesTotal; } - /** Return true if this ListStoresResponse object is equal to o. */ + /** + * Return true if this ListStoresResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -191,10 +202,10 @@ public boolean equals(Object o) { return false; } ListStoresResponse listStoresResponse = (ListStoresResponse) o; - return Objects.equals(this.links, listStoresResponse.links) - && Objects.equals(this.data, listStoresResponse.data) - && Objects.equals(this.itemsTotal, listStoresResponse.itemsTotal) - && Objects.equals(this.pagesTotal, listStoresResponse.pagesTotal); + return Objects.equals(this.links, listStoresResponse.links) && + Objects.equals(this.data, listStoresResponse.data) && + Objects.equals(this.itemsTotal, listStoresResponse.itemsTotal) && + Objects.equals(this.pagesTotal, listStoresResponse.pagesTotal); } @Override @@ -215,7 +226,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,23 +236,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ListStoresResponse given an JSON string * * @param jsonString JSON string * @return An instance of ListStoresResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ListStoresResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to ListStoresResponse */ public static ListStoresResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ListStoresResponse.class); } - - /** - * Convert an instance of ListStoresResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ListStoresResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ListTerminalsResponse.java b/src/main/java/com/adyen/model/management/ListTerminalsResponse.java index 00742e8f7..792531946 100644 --- a/src/main/java/com/adyen/model/management/ListTerminalsResponse.java +++ b/src/main/java/com/adyen/model/management/ListTerminalsResponse.java @@ -2,30 +2,42 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.PaginationLinks; +import com.adyen.model.management.Terminal; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ListTerminalsResponse */ +/** + * ListTerminalsResponse + */ @JsonPropertyOrder({ ListTerminalsResponse.JSON_PROPERTY_LINKS, ListTerminalsResponse.JSON_PROPERTY_DATA, ListTerminalsResponse.JSON_PROPERTY_ITEMS_TOTAL, ListTerminalsResponse.JSON_PROPERTY_PAGES_TOTAL }) + public class ListTerminalsResponse { public static final String JSON_PROPERTY_LINKS = "_links"; private PaginationLinks links; @@ -39,12 +51,13 @@ public class ListTerminalsResponse { public static final String JSON_PROPERTY_PAGES_TOTAL = "pagesTotal"; private Integer pagesTotal; - public ListTerminalsResponse() {} + public ListTerminalsResponse() { + } /** * links * - * @param links + * @param links * @return the current {@code ListTerminalsResponse} instance, allowing for method chaining */ public ListTerminalsResponse links(PaginationLinks links) { @@ -54,8 +67,7 @@ public ListTerminalsResponse links(PaginationLinks links) { /** * Get links - * - * @return links + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -66,7 +78,7 @@ public PaginationLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -95,7 +107,6 @@ public ListTerminalsResponse addDataItem(Terminal dataItem) { /** * The list of terminals and their details. - * * @return data The list of terminals and their details. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -128,7 +139,6 @@ public ListTerminalsResponse itemsTotal(Integer itemsTotal) { /** * Total number of items. - * * @return itemsTotal Total number of items. */ @JsonProperty(JSON_PROPERTY_ITEMS_TOTAL) @@ -161,7 +171,6 @@ public ListTerminalsResponse pagesTotal(Integer pagesTotal) { /** * Total number of pages. - * * @return pagesTotal Total number of pages. */ @JsonProperty(JSON_PROPERTY_PAGES_TOTAL) @@ -181,7 +190,9 @@ public void setPagesTotal(Integer pagesTotal) { this.pagesTotal = pagesTotal; } - /** Return true if this ListTerminalsResponse object is equal to o. */ + /** + * Return true if this ListTerminalsResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -191,10 +202,10 @@ public boolean equals(Object o) { return false; } ListTerminalsResponse listTerminalsResponse = (ListTerminalsResponse) o; - return Objects.equals(this.links, listTerminalsResponse.links) - && Objects.equals(this.data, listTerminalsResponse.data) - && Objects.equals(this.itemsTotal, listTerminalsResponse.itemsTotal) - && Objects.equals(this.pagesTotal, listTerminalsResponse.pagesTotal); + return Objects.equals(this.links, listTerminalsResponse.links) && + Objects.equals(this.data, listTerminalsResponse.data) && + Objects.equals(this.itemsTotal, listTerminalsResponse.itemsTotal) && + Objects.equals(this.pagesTotal, listTerminalsResponse.pagesTotal); } @Override @@ -215,7 +226,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,23 +236,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ListTerminalsResponse given an JSON string * * @param jsonString JSON string * @return An instance of ListTerminalsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ListTerminalsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to ListTerminalsResponse */ public static ListTerminalsResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ListTerminalsResponse.class); } - - /** - * Convert an instance of ListTerminalsResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ListTerminalsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ListWebhooksResponse.java b/src/main/java/com/adyen/model/management/ListWebhooksResponse.java index e6ced68b2..bac1b587c 100644 --- a/src/main/java/com/adyen/model/management/ListWebhooksResponse.java +++ b/src/main/java/com/adyen/model/management/ListWebhooksResponse.java @@ -2,24 +2,35 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.PaginationLinks; +import com.adyen.model.management.Webhook; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ListWebhooksResponse */ +/** + * ListWebhooksResponse + */ @JsonPropertyOrder({ ListWebhooksResponse.JSON_PROPERTY_LINKS, ListWebhooksResponse.JSON_PROPERTY_ACCOUNT_REFERENCE, @@ -27,6 +38,7 @@ ListWebhooksResponse.JSON_PROPERTY_ITEMS_TOTAL, ListWebhooksResponse.JSON_PROPERTY_PAGES_TOTAL }) + public class ListWebhooksResponse { public static final String JSON_PROPERTY_LINKS = "_links"; private PaginationLinks links; @@ -43,12 +55,13 @@ public class ListWebhooksResponse { public static final String JSON_PROPERTY_PAGES_TOTAL = "pagesTotal"; private Integer pagesTotal; - public ListWebhooksResponse() {} + public ListWebhooksResponse() { + } /** * links * - * @param links + * @param links * @return the current {@code ListWebhooksResponse} instance, allowing for method chaining */ public ListWebhooksResponse links(PaginationLinks links) { @@ -58,8 +71,7 @@ public ListWebhooksResponse links(PaginationLinks links) { /** * Get links - * - * @return links + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,7 +82,7 @@ public PaginationLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -91,7 +103,6 @@ public ListWebhooksResponse accountReference(String accountReference) { /** * Reference to the account. - * * @return accountReference Reference to the account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_REFERENCE) @@ -132,7 +143,6 @@ public ListWebhooksResponse addDataItem(Webhook dataItem) { /** * The list of webhooks configured for this account. - * * @return data The list of webhooks configured for this account. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -165,7 +175,6 @@ public ListWebhooksResponse itemsTotal(Integer itemsTotal) { /** * Total number of items. - * * @return itemsTotal Total number of items. */ @JsonProperty(JSON_PROPERTY_ITEMS_TOTAL) @@ -198,7 +207,6 @@ public ListWebhooksResponse pagesTotal(Integer pagesTotal) { /** * Total number of pages. - * * @return pagesTotal Total number of pages. */ @JsonProperty(JSON_PROPERTY_PAGES_TOTAL) @@ -218,7 +226,9 @@ public void setPagesTotal(Integer pagesTotal) { this.pagesTotal = pagesTotal; } - /** Return true if this ListWebhooksResponse object is equal to o. */ + /** + * Return true if this ListWebhooksResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -228,11 +238,11 @@ public boolean equals(Object o) { return false; } ListWebhooksResponse listWebhooksResponse = (ListWebhooksResponse) o; - return Objects.equals(this.links, listWebhooksResponse.links) - && Objects.equals(this.accountReference, listWebhooksResponse.accountReference) - && Objects.equals(this.data, listWebhooksResponse.data) - && Objects.equals(this.itemsTotal, listWebhooksResponse.itemsTotal) - && Objects.equals(this.pagesTotal, listWebhooksResponse.pagesTotal); + return Objects.equals(this.links, listWebhooksResponse.links) && + Objects.equals(this.accountReference, listWebhooksResponse.accountReference) && + Objects.equals(this.data, listWebhooksResponse.data) && + Objects.equals(this.itemsTotal, listWebhooksResponse.itemsTotal) && + Objects.equals(this.pagesTotal, listWebhooksResponse.pagesTotal); } @Override @@ -254,7 +264,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -263,23 +274,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ListWebhooksResponse given an JSON string * * @param jsonString JSON string * @return An instance of ListWebhooksResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ListWebhooksResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to ListWebhooksResponse */ public static ListWebhooksResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ListWebhooksResponse.class); } - - /** - * Convert an instance of ListWebhooksResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ListWebhooksResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Localization.java b/src/main/java/com/adyen/model/management/Localization.java index b84d6ba66..dc88a51ac 100644 --- a/src/main/java/com/adyen/model/management/Localization.java +++ b/src/main/java/com/adyen/model/management/Localization.java @@ -2,27 +2,37 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Localization */ + +/** + * Localization + */ @JsonPropertyOrder({ Localization.JSON_PROPERTY_LANGUAGE, Localization.JSON_PROPERTY_SECONDARY_LANGUAGE, Localization.JSON_PROPERTY_TIMEZONE }) + public class Localization { public static final String JSON_PROPERTY_LANGUAGE = "language"; private String language; @@ -33,7 +43,8 @@ public class Localization { public static final String JSON_PROPERTY_TIMEZONE = "timezone"; private String timezone; - public Localization() {} + public Localization() { + } /** * Language of the terminal. @@ -48,7 +59,6 @@ public Localization language(String language) { /** * Language of the terminal. - * * @return language Language of the terminal. */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @@ -81,7 +91,6 @@ public Localization secondaryLanguage(String secondaryLanguage) { /** * Secondary language of the terminal. - * * @return secondaryLanguage Secondary language of the terminal. */ @JsonProperty(JSON_PROPERTY_SECONDARY_LANGUAGE) @@ -114,7 +123,6 @@ public Localization timezone(String timezone) { /** * The time zone of the terminal. - * * @return timezone The time zone of the terminal. */ @JsonProperty(JSON_PROPERTY_TIMEZONE) @@ -134,7 +142,9 @@ public void setTimezone(String timezone) { this.timezone = timezone; } - /** Return true if this Localization object is equal to o. */ + /** + * Return true if this Localization object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,9 +154,9 @@ public boolean equals(Object o) { return false; } Localization localization = (Localization) o; - return Objects.equals(this.language, localization.language) - && Objects.equals(this.secondaryLanguage, localization.secondaryLanguage) - && Objects.equals(this.timezone, localization.timezone); + return Objects.equals(this.language, localization.language) && + Objects.equals(this.secondaryLanguage, localization.secondaryLanguage) && + Objects.equals(this.timezone, localization.timezone); } @Override @@ -166,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Localization given an JSON string * * @param jsonString JSON string @@ -185,12 +196,11 @@ private String toIndentedString(Object o) { public static Localization fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Localization.class); } - - /** - * Convert an instance of Localization to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Localization to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Logo.java b/src/main/java/com/adyen/model/management/Logo.java index a11a105c0..2f04227b0 100644 --- a/src/main/java/com/adyen/model/management/Logo.java +++ b/src/main/java/com/adyen/model/management/Logo.java @@ -2,34 +2,46 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Logo */ -@JsonPropertyOrder({Logo.JSON_PROPERTY_DATA}) + +/** + * Logo + */ +@JsonPropertyOrder({ + Logo.JSON_PROPERTY_DATA +}) + public class Logo { public static final String JSON_PROPERTY_DATA = "data"; private String data; - public Logo() {} + public Logo() { + } /** * The image file, converted to a Base64-encoded string, of the logo to be shown on the terminal. * - * @param data The image file, converted to a Base64-encoded string, of the logo to be shown on - * the terminal. + * @param data The image file, converted to a Base64-encoded string, of the logo to be shown on the terminal. * @return the current {@code Logo} instance, allowing for method chaining */ public Logo data(String data) { @@ -39,9 +51,7 @@ public Logo data(String data) { /** * The image file, converted to a Base64-encoded string, of the logo to be shown on the terminal. - * - * @return data The image file, converted to a Base64-encoded string, of the logo to be shown on - * the terminal. + * @return data The image file, converted to a Base64-encoded string, of the logo to be shown on the terminal. */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -52,8 +62,7 @@ public String getData() { /** * The image file, converted to a Base64-encoded string, of the logo to be shown on the terminal. * - * @param data The image file, converted to a Base64-encoded string, of the logo to be shown on - * the terminal. + * @param data The image file, converted to a Base64-encoded string, of the logo to be shown on the terminal. */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -61,7 +70,9 @@ public void setData(String data) { this.data = data; } - /** Return true if this Logo object is equal to o. */ + /** + * Return true if this Logo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -89,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -98,7 +110,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Logo given an JSON string * * @param jsonString JSON string @@ -108,12 +120,11 @@ private String toIndentedString(Object o) { public static Logo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Logo.class); } - - /** - * Convert an instance of Logo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Logo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/MeApiCredential.java b/src/main/java/com/adyen/model/management/MeApiCredential.java index d3dbbbd42..c7c4599f8 100644 --- a/src/main/java/com/adyen/model/management/MeApiCredential.java +++ b/src/main/java/com/adyen/model/management/MeApiCredential.java @@ -2,24 +2,35 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.AllowedOrigin; +import com.adyen.model.management.ApiCredentialLinks; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** MeApiCredential */ + +/** + * MeApiCredential + */ @JsonPropertyOrder({ MeApiCredential.JSON_PROPERTY_LINKS, MeApiCredential.JSON_PROPERTY_ACTIVE, @@ -32,6 +43,7 @@ MeApiCredential.JSON_PROPERTY_ROLES, MeApiCredential.JSON_PROPERTY_USERNAME }) + public class MeApiCredential { public static final String JSON_PROPERTY_LINKS = "_links"; private ApiCredentialLinks links; @@ -63,12 +75,13 @@ public class MeApiCredential { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public MeApiCredential() {} + public MeApiCredential() { + } /** * links * - * @param links + * @param links * @return the current {@code MeApiCredential} instance, allowing for method chaining */ public MeApiCredential links(ApiCredentialLinks links) { @@ -78,8 +91,7 @@ public MeApiCredential links(ApiCredentialLinks links) { /** * Get links - * - * @return links + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -90,7 +102,7 @@ public ApiCredentialLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,11 +111,9 @@ public void setLinks(ApiCredentialLinks links) { } /** - * Indicates if the API credential is enabled. Must be set to **true** to use the credential in - * your integration. + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. * - * @param active Indicates if the API credential is enabled. Must be set to **true** to use the - * credential in your integration. + * @param active Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. * @return the current {@code MeApiCredential} instance, allowing for method chaining */ public MeApiCredential active(Boolean active) { @@ -112,11 +122,8 @@ public MeApiCredential active(Boolean active) { } /** - * Indicates if the API credential is enabled. Must be set to **true** to use the credential in - * your integration. - * - * @return active Indicates if the API credential is enabled. Must be set to **true** to use the - * credential in your integration. + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + * @return active Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,11 +132,9 @@ public Boolean getActive() { } /** - * Indicates if the API credential is enabled. Must be set to **true** to use the credential in - * your integration. + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. * - * @param active Indicates if the API credential is enabled. Must be set to **true** to use the - * credential in your integration. + * @param active Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,13 +143,9 @@ public void setActive(Boolean active) { } /** - * List of IP addresses from which your client can make requests. If the list is empty, we allow - * requests from any IP. If the list is not empty and we get a request from an IP which is not on - * the list, you get a security error. + * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. * - * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the - * list is empty, we allow requests from any IP. If the list is not empty and we get a request - * from an IP which is not on the list, you get a security error. + * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. * @return the current {@code MeApiCredential} instance, allowing for method chaining */ public MeApiCredential allowedIpAddresses(List allowedIpAddresses) { @@ -161,13 +162,8 @@ public MeApiCredential addAllowedIpAddressesItem(String allowedIpAddressesItem) } /** - * List of IP addresses from which your client can make requests. If the list is empty, we allow - * requests from any IP. If the list is not empty and we get a request from an IP which is not on - * the list, you get a security error. - * - * @return allowedIpAddresses List of IP addresses from which your client can make requests. If - * the list is empty, we allow requests from any IP. If the list is not empty and we get a - * request from an IP which is not on the list, you get a security error. + * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + * @return allowedIpAddresses List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. */ @JsonProperty(JSON_PROPERTY_ALLOWED_IP_ADDRESSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,13 +172,9 @@ public List getAllowedIpAddresses() { } /** - * List of IP addresses from which your client can make requests. If the list is empty, we allow - * requests from any IP. If the list is not empty and we get a request from an IP which is not on - * the list, you get a security error. + * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. * - * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the - * list is empty, we allow requests from any IP. If the list is not empty and we get a request - * from an IP which is not on the list, you get a security error. + * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. */ @JsonProperty(JSON_PROPERTY_ALLOWED_IP_ADDRESSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,13 +183,9 @@ public void setAllowedIpAddresses(List allowedIpAddresses) { } /** - * List containing the [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * linked to the API credential. + * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. * - * @param allowedOrigins List containing the [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * linked to the API credential. + * @param allowedOrigins List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. * @return the current {@code MeApiCredential} instance, allowing for method chaining */ public MeApiCredential allowedOrigins(List allowedOrigins) { @@ -214,13 +202,8 @@ public MeApiCredential addAllowedOriginsItem(AllowedOrigin allowedOriginsItem) { } /** - * List containing the [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * linked to the API credential. - * - * @return allowedOrigins List containing the [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * linked to the API credential. + * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + * @return allowedOrigins List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -229,13 +212,9 @@ public List getAllowedOrigins() { } /** - * List containing the [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * linked to the API credential. + * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. * - * @param allowedOrigins List containing the [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * linked to the API credential. + * @param allowedOrigins List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,13 +223,9 @@ public void setAllowedOrigins(List allowedOrigins) { } /** - * Public key used for [client-side - * authentication](https://docs.adyen.com/development-resources/client-side-authentication). The - * client key is required for Drop-in and Components integrations. + * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. * - * @param clientKey Public key used for [client-side - * authentication](https://docs.adyen.com/development-resources/client-side-authentication). - * The client key is required for Drop-in and Components integrations. + * @param clientKey Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. * @return the current {@code MeApiCredential} instance, allowing for method chaining */ public MeApiCredential clientKey(String clientKey) { @@ -259,13 +234,8 @@ public MeApiCredential clientKey(String clientKey) { } /** - * Public key used for [client-side - * authentication](https://docs.adyen.com/development-resources/client-side-authentication). The - * client key is required for Drop-in and Components integrations. - * - * @return clientKey Public key used for [client-side - * authentication](https://docs.adyen.com/development-resources/client-side-authentication). - * The client key is required for Drop-in and Components integrations. + * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + * @return clientKey Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. */ @JsonProperty(JSON_PROPERTY_CLIENT_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -274,13 +244,9 @@ public String getClientKey() { } /** - * Public key used for [client-side - * authentication](https://docs.adyen.com/development-resources/client-side-authentication). The - * client key is required for Drop-in and Components integrations. + * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. * - * @param clientKey Public key used for [client-side - * authentication](https://docs.adyen.com/development-resources/client-side-authentication). - * The client key is required for Drop-in and Components integrations. + * @param clientKey Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. */ @JsonProperty(JSON_PROPERTY_CLIENT_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -301,7 +267,6 @@ public MeApiCredential companyName(String companyName) { /** * Name of the company linked to the API credential. - * * @return companyName Name of the company linked to the API credential. */ @JsonProperty(JSON_PROPERTY_COMPANY_NAME) @@ -334,7 +299,6 @@ public MeApiCredential description(String description) { /** * Description of the API credential. - * * @return description Description of the API credential. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -367,7 +331,6 @@ public MeApiCredential id(String id) { /** * Unique identifier of the API credential. - * * @return id Unique identifier of the API credential. */ @JsonProperty(JSON_PROPERTY_ID) @@ -388,12 +351,9 @@ public void setId(String id) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the - * API credential. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. * - * @param roles List of - * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API - * credential. + * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. * @return the current {@code MeApiCredential} instance, allowing for method chaining */ public MeApiCredential roles(List roles) { @@ -410,12 +370,8 @@ public MeApiCredential addRolesItem(String rolesItem) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the - * API credential. - * - * @return roles List of - * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API - * credential. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + * @return roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -424,12 +380,9 @@ public List getRoles() { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the - * API credential. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. * - * @param roles List of - * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API - * credential. + * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -438,12 +391,9 @@ public void setRoles(List roles) { } /** - * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), - * for example **ws@Company.TestCompany**. + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. * - * @param username The name of the [API - * credential](https://docs.adyen.com/development-resources/api-credentials), for example - * **ws@Company.TestCompany**. + * @param username The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. * @return the current {@code MeApiCredential} instance, allowing for method chaining */ public MeApiCredential username(String username) { @@ -452,12 +402,8 @@ public MeApiCredential username(String username) { } /** - * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), - * for example **ws@Company.TestCompany**. - * - * @return username The name of the [API - * credential](https://docs.adyen.com/development-resources/api-credentials), for example - * **ws@Company.TestCompany**. + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + * @return username The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. */ @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -466,12 +412,9 @@ public String getUsername() { } /** - * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), - * for example **ws@Company.TestCompany**. + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. * - * @param username The name of the [API - * credential](https://docs.adyen.com/development-resources/api-credentials), for example - * **ws@Company.TestCompany**. + * @param username The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. */ @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -479,7 +422,9 @@ public void setUsername(String username) { this.username = username; } - /** Return true if this MeApiCredential object is equal to o. */ + /** + * Return true if this MeApiCredential object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -489,31 +434,21 @@ public boolean equals(Object o) { return false; } MeApiCredential meApiCredential = (MeApiCredential) o; - return Objects.equals(this.links, meApiCredential.links) - && Objects.equals(this.active, meApiCredential.active) - && Objects.equals(this.allowedIpAddresses, meApiCredential.allowedIpAddresses) - && Objects.equals(this.allowedOrigins, meApiCredential.allowedOrigins) - && Objects.equals(this.clientKey, meApiCredential.clientKey) - && Objects.equals(this.companyName, meApiCredential.companyName) - && Objects.equals(this.description, meApiCredential.description) - && Objects.equals(this.id, meApiCredential.id) - && Objects.equals(this.roles, meApiCredential.roles) - && Objects.equals(this.username, meApiCredential.username); + return Objects.equals(this.links, meApiCredential.links) && + Objects.equals(this.active, meApiCredential.active) && + Objects.equals(this.allowedIpAddresses, meApiCredential.allowedIpAddresses) && + Objects.equals(this.allowedOrigins, meApiCredential.allowedOrigins) && + Objects.equals(this.clientKey, meApiCredential.clientKey) && + Objects.equals(this.companyName, meApiCredential.companyName) && + Objects.equals(this.description, meApiCredential.description) && + Objects.equals(this.id, meApiCredential.id) && + Objects.equals(this.roles, meApiCredential.roles) && + Objects.equals(this.username, meApiCredential.username); } @Override public int hashCode() { - return Objects.hash( - links, - active, - allowedIpAddresses, - allowedOrigins, - clientKey, - companyName, - description, - id, - roles, - username); + return Objects.hash(links, active, allowedIpAddresses, allowedOrigins, clientKey, companyName, description, id, roles, username); } @Override @@ -535,7 +470,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -544,7 +480,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of MeApiCredential given an JSON string * * @param jsonString JSON string @@ -554,12 +490,11 @@ private String toIndentedString(Object o) { public static MeApiCredential fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MeApiCredential.class); } - - /** - * Convert an instance of MeApiCredential to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of MeApiCredential to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/MealVoucherFRInfo.java b/src/main/java/com/adyen/model/management/MealVoucherFRInfo.java index 68ea513e2..382786efa 100644 --- a/src/main/java/com/adyen/model/management/MealVoucherFRInfo.java +++ b/src/main/java/com/adyen/model/management/MealVoucherFRInfo.java @@ -2,29 +2,39 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** MealVoucherFRInfo */ +/** + * MealVoucherFRInfo + */ @JsonPropertyOrder({ MealVoucherFRInfo.JSON_PROPERTY_CONECS_ID, MealVoucherFRInfo.JSON_PROPERTY_SIRET, MealVoucherFRInfo.JSON_PROPERTY_SUB_TYPES }) + public class MealVoucherFRInfo { public static final String JSON_PROPERTY_CONECS_ID = "conecsId"; private String conecsId; @@ -35,7 +45,8 @@ public class MealVoucherFRInfo { public static final String JSON_PROPERTY_SUB_TYPES = "subTypes"; private List subTypes; - public MealVoucherFRInfo() {} + public MealVoucherFRInfo() { + } /** * Meal Voucher conecsId. Format: digits only @@ -50,7 +61,6 @@ public MealVoucherFRInfo conecsId(String conecsId) { /** * Meal Voucher conecsId. Format: digits only - * * @return conecsId Meal Voucher conecsId. Format: digits only */ @JsonProperty(JSON_PROPERTY_CONECS_ID) @@ -83,7 +93,6 @@ public MealVoucherFRInfo siret(String siret) { /** * Meal Voucher siret. Format: 14 digits. - * * @return siret Meal Voucher siret. Format: 14 digits. */ @JsonProperty(JSON_PROPERTY_SIRET) @@ -104,12 +113,9 @@ public void setSiret(String siret) { } /** - * The list of additional payment methods. Allowed values: **mealVoucher_FR_edenred**, - * **mealVoucher_FR_groupeup**, **mealVoucher_FR_natixis**, **mealVoucher_FR_sodexo**. + * The list of additional payment methods. Allowed values: **mealVoucher_FR_edenred**, **mealVoucher_FR_groupeup**, **mealVoucher_FR_natixis**, **mealVoucher_FR_sodexo**. * - * @param subTypes The list of additional payment methods. Allowed values: - * **mealVoucher_FR_edenred**, **mealVoucher_FR_groupeup**, **mealVoucher_FR_natixis**, - * **mealVoucher_FR_sodexo**. + * @param subTypes The list of additional payment methods. Allowed values: **mealVoucher_FR_edenred**, **mealVoucher_FR_groupeup**, **mealVoucher_FR_natixis**, **mealVoucher_FR_sodexo**. * @return the current {@code MealVoucherFRInfo} instance, allowing for method chaining */ public MealVoucherFRInfo subTypes(List subTypes) { @@ -126,12 +132,8 @@ public MealVoucherFRInfo addSubTypesItem(String subTypesItem) { } /** - * The list of additional payment methods. Allowed values: **mealVoucher_FR_edenred**, - * **mealVoucher_FR_groupeup**, **mealVoucher_FR_natixis**, **mealVoucher_FR_sodexo**. - * - * @return subTypes The list of additional payment methods. Allowed values: - * **mealVoucher_FR_edenred**, **mealVoucher_FR_groupeup**, **mealVoucher_FR_natixis**, - * **mealVoucher_FR_sodexo**. + * The list of additional payment methods. Allowed values: **mealVoucher_FR_edenred**, **mealVoucher_FR_groupeup**, **mealVoucher_FR_natixis**, **mealVoucher_FR_sodexo**. + * @return subTypes The list of additional payment methods. Allowed values: **mealVoucher_FR_edenred**, **mealVoucher_FR_groupeup**, **mealVoucher_FR_natixis**, **mealVoucher_FR_sodexo**. */ @JsonProperty(JSON_PROPERTY_SUB_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,12 +142,9 @@ public List getSubTypes() { } /** - * The list of additional payment methods. Allowed values: **mealVoucher_FR_edenred**, - * **mealVoucher_FR_groupeup**, **mealVoucher_FR_natixis**, **mealVoucher_FR_sodexo**. + * The list of additional payment methods. Allowed values: **mealVoucher_FR_edenred**, **mealVoucher_FR_groupeup**, **mealVoucher_FR_natixis**, **mealVoucher_FR_sodexo**. * - * @param subTypes The list of additional payment methods. Allowed values: - * **mealVoucher_FR_edenred**, **mealVoucher_FR_groupeup**, **mealVoucher_FR_natixis**, - * **mealVoucher_FR_sodexo**. + * @param subTypes The list of additional payment methods. Allowed values: **mealVoucher_FR_edenred**, **mealVoucher_FR_groupeup**, **mealVoucher_FR_natixis**, **mealVoucher_FR_sodexo**. */ @JsonProperty(JSON_PROPERTY_SUB_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -153,7 +152,9 @@ public void setSubTypes(List subTypes) { this.subTypes = subTypes; } - /** Return true if this MealVoucherFRInfo object is equal to o. */ + /** + * Return true if this MealVoucherFRInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -163,9 +164,9 @@ public boolean equals(Object o) { return false; } MealVoucherFRInfo mealVoucherFRInfo = (MealVoucherFRInfo) o; - return Objects.equals(this.conecsId, mealVoucherFRInfo.conecsId) - && Objects.equals(this.siret, mealVoucherFRInfo.siret) - && Objects.equals(this.subTypes, mealVoucherFRInfo.subTypes); + return Objects.equals(this.conecsId, mealVoucherFRInfo.conecsId) && + Objects.equals(this.siret, mealVoucherFRInfo.siret) && + Objects.equals(this.subTypes, mealVoucherFRInfo.subTypes); } @Override @@ -185,7 +186,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -194,7 +196,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of MealVoucherFRInfo given an JSON string * * @param jsonString JSON string @@ -204,12 +206,11 @@ private String toIndentedString(Object o) { public static MealVoucherFRInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MealVoucherFRInfo.class); } - - /** - * Convert an instance of MealVoucherFRInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of MealVoucherFRInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Merchant.java b/src/main/java/com/adyen/model/management/Merchant.java index 9550cdae3..94637bd12 100644 --- a/src/main/java/com/adyen/model/management/Merchant.java +++ b/src/main/java/com/adyen/model/management/Merchant.java @@ -2,24 +2,35 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.DataCenter; +import com.adyen.model.management.MerchantLinks; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** Merchant */ +/** + * Merchant + */ @JsonPropertyOrder({ Merchant.JSON_PROPERTY_LINKS, Merchant.JSON_PROPERTY_CAPTURE_DELAY, @@ -36,6 +47,7 @@ Merchant.JSON_PROPERTY_SHOP_WEB_ADDRESS, Merchant.JSON_PROPERTY_STATUS }) + public class Merchant { public static final String JSON_PROPERTY_LINKS = "_links"; private MerchantLinks links; @@ -49,8 +61,7 @@ public class Merchant { public static final String JSON_PROPERTY_DATA_CENTERS = "dataCenters"; private List dataCenters; - public static final String JSON_PROPERTY_DEFAULT_SHOPPER_INTERACTION = - "defaultShopperInteraction"; + public static final String JSON_PROPERTY_DEFAULT_SHOPPER_INTERACTION = "defaultShopperInteraction"; private String defaultShopperInteraction; public static final String JSON_PROPERTY_DESCRIPTION = "description"; @@ -68,8 +79,7 @@ public class Merchant { public static final String JSON_PROPERTY_PRICING_PLAN = "pricingPlan"; private String pricingPlan; - public static final String JSON_PROPERTY_PRIMARY_SETTLEMENT_CURRENCY = - "primarySettlementCurrency"; + public static final String JSON_PROPERTY_PRIMARY_SETTLEMENT_CURRENCY = "primarySettlementCurrency"; private String primarySettlementCurrency; public static final String JSON_PROPERTY_REFERENCE = "reference"; @@ -81,12 +91,13 @@ public class Merchant { public static final String JSON_PROPERTY_STATUS = "status"; private String status; - public Merchant() {} + public Merchant() { + } /** * links * - * @param links + * @param links * @return the current {@code Merchant} instance, allowing for method chaining */ public Merchant links(MerchantLinks links) { @@ -96,8 +107,7 @@ public Merchant links(MerchantLinks links) { /** * Get links - * - * @return links + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,7 +118,7 @@ public MerchantLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,14 +127,9 @@ public void setLinks(MerchantLinks links) { } /** - * The [capture delay](https://docs.adyen.com/online-payments/capture#capture-delay) set for the - * merchant account. Possible values: * **Immediate** * **Manual** * Number of days from **1** to - * **29** + * The [capture delay](https://docs.adyen.com/online-payments/capture#capture-delay) set for the merchant account. Possible values: * **Immediate** * **Manual** * Number of days from **1** to **29** * - * @param captureDelay The [capture - * delay](https://docs.adyen.com/online-payments/capture#capture-delay) set for the merchant - * account. Possible values: * **Immediate** * **Manual** * Number of days from **1** to - * **29** + * @param captureDelay The [capture delay](https://docs.adyen.com/online-payments/capture#capture-delay) set for the merchant account. Possible values: * **Immediate** * **Manual** * Number of days from **1** to **29** * @return the current {@code Merchant} instance, allowing for method chaining */ public Merchant captureDelay(String captureDelay) { @@ -133,14 +138,8 @@ public Merchant captureDelay(String captureDelay) { } /** - * The [capture delay](https://docs.adyen.com/online-payments/capture#capture-delay) set for the - * merchant account. Possible values: * **Immediate** * **Manual** * Number of days from **1** to - * **29** - * - * @return captureDelay The [capture - * delay](https://docs.adyen.com/online-payments/capture#capture-delay) set for the merchant - * account. Possible values: * **Immediate** * **Manual** * Number of days from **1** to - * **29** + * The [capture delay](https://docs.adyen.com/online-payments/capture#capture-delay) set for the merchant account. Possible values: * **Immediate** * **Manual** * Number of days from **1** to **29** + * @return captureDelay The [capture delay](https://docs.adyen.com/online-payments/capture#capture-delay) set for the merchant account. Possible values: * **Immediate** * **Manual** * Number of days from **1** to **29** */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -149,14 +148,9 @@ public String getCaptureDelay() { } /** - * The [capture delay](https://docs.adyen.com/online-payments/capture#capture-delay) set for the - * merchant account. Possible values: * **Immediate** * **Manual** * Number of days from **1** to - * **29** + * The [capture delay](https://docs.adyen.com/online-payments/capture#capture-delay) set for the merchant account. Possible values: * **Immediate** * **Manual** * Number of days from **1** to **29** * - * @param captureDelay The [capture - * delay](https://docs.adyen.com/online-payments/capture#capture-delay) set for the merchant - * account. Possible values: * **Immediate** * **Manual** * Number of days from **1** to - * **29** + * @param captureDelay The [capture delay](https://docs.adyen.com/online-payments/capture#capture-delay) set for the merchant account. Possible values: * **Immediate** * **Manual** * Number of days from **1** to **29** */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,7 +171,6 @@ public Merchant companyId(String companyId) { /** * The unique identifier of the company account this merchant belongs to - * * @return companyId The unique identifier of the company account this merchant belongs to */ @JsonProperty(JSON_PROPERTY_COMPANY_ID) @@ -198,13 +191,9 @@ public void setCompanyId(String companyId) { } /** - * List of available data centers. Adyen has several data centers around the world.In the URL that - * you use for making API requests, we recommend you use the live URL prefix from the data center - * closest to your shoppers. + * List of available data centers. Adyen has several data centers around the world.In the URL that you use for making API requests, we recommend you use the live URL prefix from the data center closest to your shoppers. * - * @param dataCenters List of available data centers. Adyen has several data centers around the - * world.In the URL that you use for making API requests, we recommend you use the live URL - * prefix from the data center closest to your shoppers. + * @param dataCenters List of available data centers. Adyen has several data centers around the world.In the URL that you use for making API requests, we recommend you use the live URL prefix from the data center closest to your shoppers. * @return the current {@code Merchant} instance, allowing for method chaining */ public Merchant dataCenters(List dataCenters) { @@ -221,13 +210,8 @@ public Merchant addDataCentersItem(DataCenter dataCentersItem) { } /** - * List of available data centers. Adyen has several data centers around the world.In the URL that - * you use for making API requests, we recommend you use the live URL prefix from the data center - * closest to your shoppers. - * - * @return dataCenters List of available data centers. Adyen has several data centers around the - * world.In the URL that you use for making API requests, we recommend you use the live URL - * prefix from the data center closest to your shoppers. + * List of available data centers. Adyen has several data centers around the world.In the URL that you use for making API requests, we recommend you use the live URL prefix from the data center closest to your shoppers. + * @return dataCenters List of available data centers. Adyen has several data centers around the world.In the URL that you use for making API requests, we recommend you use the live URL prefix from the data center closest to your shoppers. */ @JsonProperty(JSON_PROPERTY_DATA_CENTERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -236,13 +220,9 @@ public List getDataCenters() { } /** - * List of available data centers. Adyen has several data centers around the world.In the URL that - * you use for making API requests, we recommend you use the live URL prefix from the data center - * closest to your shoppers. + * List of available data centers. Adyen has several data centers around the world.In the URL that you use for making API requests, we recommend you use the live URL prefix from the data center closest to your shoppers. * - * @param dataCenters List of available data centers. Adyen has several data centers around the - * world.In the URL that you use for making API requests, we recommend you use the live URL - * prefix from the data center closest to your shoppers. + * @param dataCenters List of available data centers. Adyen has several data centers around the world.In the URL that you use for making API requests, we recommend you use the live URL prefix from the data center closest to your shoppers. */ @JsonProperty(JSON_PROPERTY_DATA_CENTERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -251,13 +231,9 @@ public void setDataCenters(List dataCenters) { } /** - * The default - * [`shopperInteraction`](https://docs.adyen.com/api-explorer/#/CheckoutService/v68/post/payments__reqParam_shopperInteraction) - * value used when processing payments through this merchant account. + * The default [`shopperInteraction`](https://docs.adyen.com/api-explorer/#/CheckoutService/v68/post/payments__reqParam_shopperInteraction) value used when processing payments through this merchant account. * - * @param defaultShopperInteraction The default - * [`shopperInteraction`](https://docs.adyen.com/api-explorer/#/CheckoutService/v68/post/payments__reqParam_shopperInteraction) - * value used when processing payments through this merchant account. + * @param defaultShopperInteraction The default [`shopperInteraction`](https://docs.adyen.com/api-explorer/#/CheckoutService/v68/post/payments__reqParam_shopperInteraction) value used when processing payments through this merchant account. * @return the current {@code Merchant} instance, allowing for method chaining */ public Merchant defaultShopperInteraction(String defaultShopperInteraction) { @@ -266,13 +242,8 @@ public Merchant defaultShopperInteraction(String defaultShopperInteraction) { } /** - * The default - * [`shopperInteraction`](https://docs.adyen.com/api-explorer/#/CheckoutService/v68/post/payments__reqParam_shopperInteraction) - * value used when processing payments through this merchant account. - * - * @return defaultShopperInteraction The default - * [`shopperInteraction`](https://docs.adyen.com/api-explorer/#/CheckoutService/v68/post/payments__reqParam_shopperInteraction) - * value used when processing payments through this merchant account. + * The default [`shopperInteraction`](https://docs.adyen.com/api-explorer/#/CheckoutService/v68/post/payments__reqParam_shopperInteraction) value used when processing payments through this merchant account. + * @return defaultShopperInteraction The default [`shopperInteraction`](https://docs.adyen.com/api-explorer/#/CheckoutService/v68/post/payments__reqParam_shopperInteraction) value used when processing payments through this merchant account. */ @JsonProperty(JSON_PROPERTY_DEFAULT_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -281,13 +252,9 @@ public String getDefaultShopperInteraction() { } /** - * The default - * [`shopperInteraction`](https://docs.adyen.com/api-explorer/#/CheckoutService/v68/post/payments__reqParam_shopperInteraction) - * value used when processing payments through this merchant account. + * The default [`shopperInteraction`](https://docs.adyen.com/api-explorer/#/CheckoutService/v68/post/payments__reqParam_shopperInteraction) value used when processing payments through this merchant account. * - * @param defaultShopperInteraction The default - * [`shopperInteraction`](https://docs.adyen.com/api-explorer/#/CheckoutService/v68/post/payments__reqParam_shopperInteraction) - * value used when processing payments through this merchant account. + * @param defaultShopperInteraction The default [`shopperInteraction`](https://docs.adyen.com/api-explorer/#/CheckoutService/v68/post/payments__reqParam_shopperInteraction) value used when processing payments through this merchant account. */ @JsonProperty(JSON_PROPERTY_DEFAULT_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -308,7 +275,6 @@ public Merchant description(String description) { /** * Your description for the merchant account, maximum 300 characters - * * @return description Your description for the merchant account, maximum 300 characters */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -341,7 +307,6 @@ public Merchant id(String id) { /** * The unique identifier of the merchant account. - * * @return id The unique identifier of the merchant account. */ @JsonProperty(JSON_PROPERTY_ID) @@ -374,7 +339,6 @@ public Merchant merchantCity(String merchantCity) { /** * The city where the legal entity of this merchant account is registered. - * * @return merchantCity The city where the legal entity of this merchant account is registered. */ @JsonProperty(JSON_PROPERTY_MERCHANT_CITY) @@ -407,7 +371,6 @@ public Merchant name(String name) { /** * The name of the legal entity associated with the merchant account. - * * @return name The name of the legal entity associated with the merchant account. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -428,11 +391,9 @@ public void setName(String name) { } /** - * Only applies to merchant accounts managed by Adyen's partners. The name of the pricing plan - * assigned to the merchant account. + * Only applies to merchant accounts managed by Adyen's partners. The name of the pricing plan assigned to the merchant account. * - * @param pricingPlan Only applies to merchant accounts managed by Adyen's partners. The name - * of the pricing plan assigned to the merchant account. + * @param pricingPlan Only applies to merchant accounts managed by Adyen's partners. The name of the pricing plan assigned to the merchant account. * @return the current {@code Merchant} instance, allowing for method chaining */ public Merchant pricingPlan(String pricingPlan) { @@ -441,11 +402,8 @@ public Merchant pricingPlan(String pricingPlan) { } /** - * Only applies to merchant accounts managed by Adyen's partners. The name of the pricing plan - * assigned to the merchant account. - * - * @return pricingPlan Only applies to merchant accounts managed by Adyen's partners. The name - * of the pricing plan assigned to the merchant account. + * Only applies to merchant accounts managed by Adyen's partners. The name of the pricing plan assigned to the merchant account. + * @return pricingPlan Only applies to merchant accounts managed by Adyen's partners. The name of the pricing plan assigned to the merchant account. */ @JsonProperty(JSON_PROPERTY_PRICING_PLAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -454,11 +412,9 @@ public String getPricingPlan() { } /** - * Only applies to merchant accounts managed by Adyen's partners. The name of the pricing plan - * assigned to the merchant account. + * Only applies to merchant accounts managed by Adyen's partners. The name of the pricing plan assigned to the merchant account. * - * @param pricingPlan Only applies to merchant accounts managed by Adyen's partners. The name - * of the pricing plan assigned to the merchant account. + * @param pricingPlan Only applies to merchant accounts managed by Adyen's partners. The name of the pricing plan assigned to the merchant account. */ @JsonProperty(JSON_PROPERTY_PRICING_PLAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -467,14 +423,9 @@ public void setPricingPlan(String pricingPlan) { } /** - * The currency of the country where the legal entity of this merchant account is registered. - * Format: [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For - * example, a legal entity based in the United States has USD as the primary settlement currency. + * The currency of the country where the legal entity of this merchant account is registered. Format: [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, a legal entity based in the United States has USD as the primary settlement currency. * - * @param primarySettlementCurrency The currency of the country where the legal entity of this - * merchant account is registered. Format: [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). For example, a legal - * entity based in the United States has USD as the primary settlement currency. + * @param primarySettlementCurrency The currency of the country where the legal entity of this merchant account is registered. Format: [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, a legal entity based in the United States has USD as the primary settlement currency. * @return the current {@code Merchant} instance, allowing for method chaining */ public Merchant primarySettlementCurrency(String primarySettlementCurrency) { @@ -483,14 +434,8 @@ public Merchant primarySettlementCurrency(String primarySettlementCurrency) { } /** - * The currency of the country where the legal entity of this merchant account is registered. - * Format: [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For - * example, a legal entity based in the United States has USD as the primary settlement currency. - * - * @return primarySettlementCurrency The currency of the country where the legal entity of this - * merchant account is registered. Format: [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). For example, a legal - * entity based in the United States has USD as the primary settlement currency. + * The currency of the country where the legal entity of this merchant account is registered. Format: [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, a legal entity based in the United States has USD as the primary settlement currency. + * @return primarySettlementCurrency The currency of the country where the legal entity of this merchant account is registered. Format: [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, a legal entity based in the United States has USD as the primary settlement currency. */ @JsonProperty(JSON_PROPERTY_PRIMARY_SETTLEMENT_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -499,14 +444,9 @@ public String getPrimarySettlementCurrency() { } /** - * The currency of the country where the legal entity of this merchant account is registered. - * Format: [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For - * example, a legal entity based in the United States has USD as the primary settlement currency. + * The currency of the country where the legal entity of this merchant account is registered. Format: [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, a legal entity based in the United States has USD as the primary settlement currency. * - * @param primarySettlementCurrency The currency of the country where the legal entity of this - * merchant account is registered. Format: [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). For example, a legal - * entity based in the United States has USD as the primary settlement currency. + * @param primarySettlementCurrency The currency of the country where the legal entity of this merchant account is registered. Format: [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, a legal entity based in the United States has USD as the primary settlement currency. */ @JsonProperty(JSON_PROPERTY_PRIMARY_SETTLEMENT_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -527,7 +467,6 @@ public Merchant reference(String reference) { /** * Reference of the merchant account. - * * @return reference Reference of the merchant account. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -560,7 +499,6 @@ public Merchant shopWebAddress(String shopWebAddress) { /** * The URL for the ecommerce website used with this merchant account. - * * @return shopWebAddress The URL for the ecommerce website used with this merchant account. */ @JsonProperty(JSON_PROPERTY_SHOP_WEB_ADDRESS) @@ -581,26 +519,9 @@ public void setShopWebAddress(String shopWebAddress) { } /** - * The status of the merchant account. Possible values: * **PreActive**: The merchant account has - * been created. Users cannot access the merchant account in the Customer Area. The account cannot - * process payments. * **Active**: Users can access the merchant account in the Customer Area. If - * the company account is also **Active**, then payment processing and payouts are enabled. * - * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. You - * cannot process new payments but you can still modify payments, for example issue refunds. You - * can still receive payouts. * **Inactive**: Users can access the merchant account in the - * Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed - * and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. + * The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. You cannot process new payments but you can still modify payments, for example issue refunds. You can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. * - * @param status The status of the merchant account. Possible values: * **PreActive**: The - * merchant account has been created. Users cannot access the merchant account in the Customer - * Area. The account cannot process payments. * **Active**: Users can access the merchant - * account in the Customer Area. If the company account is also **Active**, then payment - * processing and payouts are enabled. * **InactiveWithModifications**: Users can access the - * merchant account in the Customer Area. You cannot process new payments but you can still - * modify payments, for example issue refunds. You can still receive payouts. * **Inactive**: - * Users can access the merchant account in the Customer Area. Payment processing and payouts - * are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot - * log in. Payment processing and payouts are disabled. + * @param status The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. You cannot process new payments but you can still modify payments, for example issue refunds. You can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. * @return the current {@code Merchant} instance, allowing for method chaining */ public Merchant status(String status) { @@ -609,26 +530,8 @@ public Merchant status(String status) { } /** - * The status of the merchant account. Possible values: * **PreActive**: The merchant account has - * been created. Users cannot access the merchant account in the Customer Area. The account cannot - * process payments. * **Active**: Users can access the merchant account in the Customer Area. If - * the company account is also **Active**, then payment processing and payouts are enabled. * - * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. You - * cannot process new payments but you can still modify payments, for example issue refunds. You - * can still receive payouts. * **Inactive**: Users can access the merchant account in the - * Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed - * and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. - * - * @return status The status of the merchant account. Possible values: * **PreActive**: The - * merchant account has been created. Users cannot access the merchant account in the Customer - * Area. The account cannot process payments. * **Active**: Users can access the merchant - * account in the Customer Area. If the company account is also **Active**, then payment - * processing and payouts are enabled. * **InactiveWithModifications**: Users can access the - * merchant account in the Customer Area. You cannot process new payments but you can still - * modify payments, for example issue refunds. You can still receive payouts. * **Inactive**: - * Users can access the merchant account in the Customer Area. Payment processing and payouts - * are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot - * log in. Payment processing and payouts are disabled. + * The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. You cannot process new payments but you can still modify payments, for example issue refunds. You can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. + * @return status The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. You cannot process new payments but you can still modify payments, for example issue refunds. You can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -637,26 +540,9 @@ public String getStatus() { } /** - * The status of the merchant account. Possible values: * **PreActive**: The merchant account has - * been created. Users cannot access the merchant account in the Customer Area. The account cannot - * process payments. * **Active**: Users can access the merchant account in the Customer Area. If - * the company account is also **Active**, then payment processing and payouts are enabled. * - * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. You - * cannot process new payments but you can still modify payments, for example issue refunds. You - * can still receive payouts. * **Inactive**: Users can access the merchant account in the - * Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed - * and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. + * The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. You cannot process new payments but you can still modify payments, for example issue refunds. You can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. * - * @param status The status of the merchant account. Possible values: * **PreActive**: The - * merchant account has been created. Users cannot access the merchant account in the Customer - * Area. The account cannot process payments. * **Active**: Users can access the merchant - * account in the Customer Area. If the company account is also **Active**, then payment - * processing and payouts are enabled. * **InactiveWithModifications**: Users can access the - * merchant account in the Customer Area. You cannot process new payments but you can still - * modify payments, for example issue refunds. You can still receive payouts. * **Inactive**: - * Users can access the merchant account in the Customer Area. Payment processing and payouts - * are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot - * log in. Payment processing and payouts are disabled. + * @param status The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. You cannot process new payments but you can still modify payments, for example issue refunds. You can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -664,7 +550,9 @@ public void setStatus(String status) { this.status = status; } - /** Return true if this Merchant object is equal to o. */ + /** + * Return true if this Merchant object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -674,39 +562,25 @@ public boolean equals(Object o) { return false; } Merchant merchant = (Merchant) o; - return Objects.equals(this.links, merchant.links) - && Objects.equals(this.captureDelay, merchant.captureDelay) - && Objects.equals(this.companyId, merchant.companyId) - && Objects.equals(this.dataCenters, merchant.dataCenters) - && Objects.equals(this.defaultShopperInteraction, merchant.defaultShopperInteraction) - && Objects.equals(this.description, merchant.description) - && Objects.equals(this.id, merchant.id) - && Objects.equals(this.merchantCity, merchant.merchantCity) - && Objects.equals(this.name, merchant.name) - && Objects.equals(this.pricingPlan, merchant.pricingPlan) - && Objects.equals(this.primarySettlementCurrency, merchant.primarySettlementCurrency) - && Objects.equals(this.reference, merchant.reference) - && Objects.equals(this.shopWebAddress, merchant.shopWebAddress) - && Objects.equals(this.status, merchant.status); + return Objects.equals(this.links, merchant.links) && + Objects.equals(this.captureDelay, merchant.captureDelay) && + Objects.equals(this.companyId, merchant.companyId) && + Objects.equals(this.dataCenters, merchant.dataCenters) && + Objects.equals(this.defaultShopperInteraction, merchant.defaultShopperInteraction) && + Objects.equals(this.description, merchant.description) && + Objects.equals(this.id, merchant.id) && + Objects.equals(this.merchantCity, merchant.merchantCity) && + Objects.equals(this.name, merchant.name) && + Objects.equals(this.pricingPlan, merchant.pricingPlan) && + Objects.equals(this.primarySettlementCurrency, merchant.primarySettlementCurrency) && + Objects.equals(this.reference, merchant.reference) && + Objects.equals(this.shopWebAddress, merchant.shopWebAddress) && + Objects.equals(this.status, merchant.status); } @Override public int hashCode() { - return Objects.hash( - links, - captureDelay, - companyId, - dataCenters, - defaultShopperInteraction, - description, - id, - merchantCity, - name, - pricingPlan, - primarySettlementCurrency, - reference, - shopWebAddress, - status); + return Objects.hash(links, captureDelay, companyId, dataCenters, defaultShopperInteraction, description, id, merchantCity, name, pricingPlan, primarySettlementCurrency, reference, shopWebAddress, status); } @Override @@ -717,17 +591,13 @@ public String toString() { sb.append(" captureDelay: ").append(toIndentedString(captureDelay)).append("\n"); sb.append(" companyId: ").append(toIndentedString(companyId)).append("\n"); sb.append(" dataCenters: ").append(toIndentedString(dataCenters)).append("\n"); - sb.append(" defaultShopperInteraction: ") - .append(toIndentedString(defaultShopperInteraction)) - .append("\n"); + sb.append(" defaultShopperInteraction: ").append(toIndentedString(defaultShopperInteraction)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" merchantCity: ").append(toIndentedString(merchantCity)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" pricingPlan: ").append(toIndentedString(pricingPlan)).append("\n"); - sb.append(" primarySettlementCurrency: ") - .append(toIndentedString(primarySettlementCurrency)) - .append("\n"); + sb.append(" primarySettlementCurrency: ").append(toIndentedString(primarySettlementCurrency)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" shopWebAddress: ").append(toIndentedString(shopWebAddress)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); @@ -736,7 +606,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -745,7 +616,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Merchant given an JSON string * * @param jsonString JSON string @@ -755,12 +626,11 @@ private String toIndentedString(Object o) { public static Merchant fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Merchant.class); } - - /** - * Convert an instance of Merchant to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Merchant to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/MerchantLinks.java b/src/main/java/com/adyen/model/management/MerchantLinks.java index 9d551d61e..ac39c5eaf 100644 --- a/src/main/java/com/adyen/model/management/MerchantLinks.java +++ b/src/main/java/com/adyen/model/management/MerchantLinks.java @@ -2,28 +2,39 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.LinksElement; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** MerchantLinks */ + +/** + * MerchantLinks + */ @JsonPropertyOrder({ MerchantLinks.JSON_PROPERTY_API_CREDENTIALS, MerchantLinks.JSON_PROPERTY_SELF, MerchantLinks.JSON_PROPERTY_USERS, MerchantLinks.JSON_PROPERTY_WEBHOOKS }) + public class MerchantLinks { public static final String JSON_PROPERTY_API_CREDENTIALS = "apiCredentials"; private LinksElement apiCredentials; @@ -37,12 +48,13 @@ public class MerchantLinks { public static final String JSON_PROPERTY_WEBHOOKS = "webhooks"; private LinksElement webhooks; - public MerchantLinks() {} + public MerchantLinks() { + } /** * apiCredentials * - * @param apiCredentials + * @param apiCredentials * @return the current {@code MerchantLinks} instance, allowing for method chaining */ public MerchantLinks apiCredentials(LinksElement apiCredentials) { @@ -52,8 +64,7 @@ public MerchantLinks apiCredentials(LinksElement apiCredentials) { /** * Get apiCredentials - * - * @return apiCredentials + * @return apiCredentials */ @JsonProperty(JSON_PROPERTY_API_CREDENTIALS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,7 +75,7 @@ public LinksElement getApiCredentials() { /** * apiCredentials * - * @param apiCredentials + * @param apiCredentials */ @JsonProperty(JSON_PROPERTY_API_CREDENTIALS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,7 +86,7 @@ public void setApiCredentials(LinksElement apiCredentials) { /** * self * - * @param self + * @param self * @return the current {@code MerchantLinks} instance, allowing for method chaining */ public MerchantLinks self(LinksElement self) { @@ -85,8 +96,7 @@ public MerchantLinks self(LinksElement self) { /** * Get self - * - * @return self + * @return self */ @JsonProperty(JSON_PROPERTY_SELF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,7 +107,7 @@ public LinksElement getSelf() { /** * self * - * @param self + * @param self */ @JsonProperty(JSON_PROPERTY_SELF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,7 +118,7 @@ public void setSelf(LinksElement self) { /** * users * - * @param users + * @param users * @return the current {@code MerchantLinks} instance, allowing for method chaining */ public MerchantLinks users(LinksElement users) { @@ -118,8 +128,7 @@ public MerchantLinks users(LinksElement users) { /** * Get users - * - * @return users + * @return users */ @JsonProperty(JSON_PROPERTY_USERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -130,7 +139,7 @@ public LinksElement getUsers() { /** * users * - * @param users + * @param users */ @JsonProperty(JSON_PROPERTY_USERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -141,7 +150,7 @@ public void setUsers(LinksElement users) { /** * webhooks * - * @param webhooks + * @param webhooks * @return the current {@code MerchantLinks} instance, allowing for method chaining */ public MerchantLinks webhooks(LinksElement webhooks) { @@ -151,8 +160,7 @@ public MerchantLinks webhooks(LinksElement webhooks) { /** * Get webhooks - * - * @return webhooks + * @return webhooks */ @JsonProperty(JSON_PROPERTY_WEBHOOKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,7 +171,7 @@ public LinksElement getWebhooks() { /** * webhooks * - * @param webhooks + * @param webhooks */ @JsonProperty(JSON_PROPERTY_WEBHOOKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -171,7 +179,9 @@ public void setWebhooks(LinksElement webhooks) { this.webhooks = webhooks; } - /** Return true if this MerchantLinks object is equal to o. */ + /** + * Return true if this MerchantLinks object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -181,10 +191,10 @@ public boolean equals(Object o) { return false; } MerchantLinks merchantLinks = (MerchantLinks) o; - return Objects.equals(this.apiCredentials, merchantLinks.apiCredentials) - && Objects.equals(this.self, merchantLinks.self) - && Objects.equals(this.users, merchantLinks.users) - && Objects.equals(this.webhooks, merchantLinks.webhooks); + return Objects.equals(this.apiCredentials, merchantLinks.apiCredentials) && + Objects.equals(this.self, merchantLinks.self) && + Objects.equals(this.users, merchantLinks.users) && + Objects.equals(this.webhooks, merchantLinks.webhooks); } @Override @@ -205,7 +215,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -214,7 +225,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of MerchantLinks given an JSON string * * @param jsonString JSON string @@ -224,12 +235,11 @@ private String toIndentedString(Object o) { public static MerchantLinks fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MerchantLinks.class); } - - /** - * Convert an instance of MerchantLinks to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of MerchantLinks to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/MinorUnitsMonetaryValue.java b/src/main/java/com/adyen/model/management/MinorUnitsMonetaryValue.java index b45fab988..3b6abb299 100644 --- a/src/main/java/com/adyen/model/management/MinorUnitsMonetaryValue.java +++ b/src/main/java/com/adyen/model/management/MinorUnitsMonetaryValue.java @@ -2,26 +2,36 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** MinorUnitsMonetaryValue */ + +/** + * MinorUnitsMonetaryValue + */ @JsonPropertyOrder({ MinorUnitsMonetaryValue.JSON_PROPERTY_AMOUNT, MinorUnitsMonetaryValue.JSON_PROPERTY_CURRENCY_CODE }) + public class MinorUnitsMonetaryValue { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Integer amount; @@ -29,14 +39,13 @@ public class MinorUnitsMonetaryValue { public static final String JSON_PROPERTY_CURRENCY_CODE = "currencyCode"; private String currencyCode; - public MinorUnitsMonetaryValue() {} + public MinorUnitsMonetaryValue() { + } /** - * The transaction amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * The transaction amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * @param amount The transaction amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * @param amount The transaction amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code MinorUnitsMonetaryValue} instance, allowing for method chaining */ public MinorUnitsMonetaryValue amount(Integer amount) { @@ -45,11 +54,8 @@ public MinorUnitsMonetaryValue amount(Integer amount) { } /** - * The transaction amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). - * - * @return amount The transaction amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * The transaction amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @return amount The transaction amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,11 +64,9 @@ public Integer getAmount() { } /** - * The transaction amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * The transaction amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * @param amount The transaction amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * @param amount The transaction amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,11 +75,9 @@ public void setAmount(Integer amount) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currencyCode The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * @param currencyCode The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code MinorUnitsMonetaryValue} instance, allowing for method chaining */ public MinorUnitsMonetaryValue currencyCode(String currencyCode) { @@ -84,11 +86,8 @@ public MinorUnitsMonetaryValue currencyCode(String currencyCode) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). - * - * @return currencyCode The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @return currencyCode The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,11 +96,9 @@ public String getCurrencyCode() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currencyCode The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * @param currencyCode The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -109,7 +106,9 @@ public void setCurrencyCode(String currencyCode) { this.currencyCode = currencyCode; } - /** Return true if this MinorUnitsMonetaryValue object is equal to o. */ + /** + * Return true if this MinorUnitsMonetaryValue object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -119,8 +118,8 @@ public boolean equals(Object o) { return false; } MinorUnitsMonetaryValue minorUnitsMonetaryValue = (MinorUnitsMonetaryValue) o; - return Objects.equals(this.amount, minorUnitsMonetaryValue.amount) - && Objects.equals(this.currencyCode, minorUnitsMonetaryValue.currencyCode); + return Objects.equals(this.amount, minorUnitsMonetaryValue.amount) && + Objects.equals(this.currencyCode, minorUnitsMonetaryValue.currencyCode); } @Override @@ -139,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,23 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of MinorUnitsMonetaryValue given an JSON string * * @param jsonString JSON string * @return An instance of MinorUnitsMonetaryValue - * @throws JsonProcessingException if the JSON string is invalid with respect to - * MinorUnitsMonetaryValue + * @throws JsonProcessingException if the JSON string is invalid with respect to MinorUnitsMonetaryValue */ public static MinorUnitsMonetaryValue fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MinorUnitsMonetaryValue.class); } - - /** - * Convert an instance of MinorUnitsMonetaryValue to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of MinorUnitsMonetaryValue to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ModelConfiguration.java b/src/main/java/com/adyen/model/management/ModelConfiguration.java index e41bba672..70dd74563 100644 --- a/src/main/java/com/adyen/model/management/ModelConfiguration.java +++ b/src/main/java/com/adyen/model/management/ModelConfiguration.java @@ -2,25 +2,34 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.Currency; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ModelConfiguration */ +/** + * ModelConfiguration + */ @JsonPropertyOrder({ ModelConfiguration.JSON_PROPERTY_BRAND, ModelConfiguration.JSON_PROPERTY_COMMERCIAL, @@ -29,6 +38,7 @@ ModelConfiguration.JSON_PROPERTY_SOURCES }) @JsonTypeName("Configuration") + public class ModelConfiguration { public static final String JSON_PROPERTY_BRAND = "brand"; private String brand; @@ -45,14 +55,13 @@ public class ModelConfiguration { public static final String JSON_PROPERTY_SOURCES = "sources"; private List sources; - public ModelConfiguration() {} + public ModelConfiguration() { + } /** - * Payment method, like **eftpos_australia** or **mc**. See the [possible - * values](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * Payment method, like **eftpos_australia** or **mc**. See the [possible values](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). * - * @param brand Payment method, like **eftpos_australia** or **mc**. See the [possible - * values](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * @param brand Payment method, like **eftpos_australia** or **mc**. See the [possible values](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). * @return the current {@code ModelConfiguration} instance, allowing for method chaining */ public ModelConfiguration brand(String brand) { @@ -61,11 +70,8 @@ public ModelConfiguration brand(String brand) { } /** - * Payment method, like **eftpos_australia** or **mc**. See the [possible - * values](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). - * - * @return brand Payment method, like **eftpos_australia** or **mc**. See the [possible - * values](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * Payment method, like **eftpos_australia** or **mc**. See the [possible values](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * @return brand Payment method, like **eftpos_australia** or **mc**. See the [possible values](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). */ @JsonProperty(JSON_PROPERTY_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -74,11 +80,9 @@ public String getBrand() { } /** - * Payment method, like **eftpos_australia** or **mc**. See the [possible - * values](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * Payment method, like **eftpos_australia** or **mc**. See the [possible values](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). * - * @param brand Payment method, like **eftpos_australia** or **mc**. See the [possible - * values](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * @param brand Payment method, like **eftpos_australia** or **mc**. See the [possible values](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). */ @JsonProperty(JSON_PROPERTY_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,7 +103,6 @@ public ModelConfiguration commercial(Boolean commercial) { /** * Set to **true** to apply surcharges only to commercial/business cards. - * * @return commercial Set to **true** to apply surcharges only to commercial/business cards. */ @JsonProperty(JSON_PROPERTY_COMMERCIAL) @@ -120,11 +123,9 @@ public void setCommercial(Boolean commercial) { } /** - * The country/region of the card issuer. If used, the surcharge settings only apply to the card - * issued in that country/region. + * The country/region of the card issuer. If used, the surcharge settings only apply to the card issued in that country/region. * - * @param country The country/region of the card issuer. If used, the surcharge settings only - * apply to the card issued in that country/region. + * @param country The country/region of the card issuer. If used, the surcharge settings only apply to the card issued in that country/region. * @return the current {@code ModelConfiguration} instance, allowing for method chaining */ public ModelConfiguration country(List country) { @@ -141,11 +142,8 @@ public ModelConfiguration addCountryItem(String countryItem) { } /** - * The country/region of the card issuer. If used, the surcharge settings only apply to the card - * issued in that country/region. - * - * @return country The country/region of the card issuer. If used, the surcharge settings only - * apply to the card issued in that country/region. + * The country/region of the card issuer. If used, the surcharge settings only apply to the card issued in that country/region. + * @return country The country/region of the card issuer. If used, the surcharge settings only apply to the card issued in that country/region. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -154,11 +152,9 @@ public List getCountry() { } /** - * The country/region of the card issuer. If used, the surcharge settings only apply to the card - * issued in that country/region. + * The country/region of the card issuer. If used, the surcharge settings only apply to the card issued in that country/region. * - * @param country The country/region of the card issuer. If used, the surcharge settings only - * apply to the card issued in that country/region. + * @param country The country/region of the card issuer. If used, the surcharge settings only apply to the card issued in that country/region. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,7 +183,6 @@ public ModelConfiguration addCurrenciesItem(Currency currenciesItem) { /** * Currency and percentage or amount of the surcharge. - * * @return currencies Currency and percentage or amount of the surcharge. */ @JsonProperty(JSON_PROPERTY_CURRENCIES) @@ -228,7 +223,6 @@ public ModelConfiguration addSourcesItem(String sourcesItem) { /** * Funding source. Possible values: * **Credit** * **Debit** - * * @return sources Funding source. Possible values: * **Credit** * **Debit** */ @JsonProperty(JSON_PROPERTY_SOURCES) @@ -248,7 +242,9 @@ public void setSources(List sources) { this.sources = sources; } - /** Return true if this Configuration object is equal to o. */ + /** + * Return true if this Configuration object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -258,11 +254,11 @@ public boolean equals(Object o) { return false; } ModelConfiguration configuration = (ModelConfiguration) o; - return Objects.equals(this.brand, configuration.brand) - && Objects.equals(this.commercial, configuration.commercial) - && Objects.equals(this.country, configuration.country) - && Objects.equals(this.currencies, configuration.currencies) - && Objects.equals(this.sources, configuration.sources); + return Objects.equals(this.brand, configuration.brand) && + Objects.equals(this.commercial, configuration.commercial) && + Objects.equals(this.country, configuration.country) && + Objects.equals(this.currencies, configuration.currencies) && + Objects.equals(this.sources, configuration.sources); } @Override @@ -284,7 +280,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -293,23 +290,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ModelConfiguration given an JSON string * * @param jsonString JSON string * @return An instance of ModelConfiguration - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ModelConfiguration + * @throws JsonProcessingException if the JSON string is invalid with respect to ModelConfiguration */ public static ModelConfiguration fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ModelConfiguration.class); } - - /** - * Convert an instance of ModelConfiguration to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ModelConfiguration to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ModelFile.java b/src/main/java/com/adyen/model/management/ModelFile.java index c3b456cf6..cc1359fa6 100644 --- a/src/main/java/com/adyen/model/management/ModelFile.java +++ b/src/main/java/com/adyen/model/management/ModelFile.java @@ -2,25 +2,37 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ModelFile */ -@JsonPropertyOrder({ModelFile.JSON_PROPERTY_DATA, ModelFile.JSON_PROPERTY_NAME}) + +/** + * ModelFile + */ +@JsonPropertyOrder({ + ModelFile.JSON_PROPERTY_DATA, + ModelFile.JSON_PROPERTY_NAME +}) @JsonTypeName("File") + public class ModelFile { public static final String JSON_PROPERTY_DATA = "data"; private String data; @@ -28,7 +40,8 @@ public class ModelFile { public static final String JSON_PROPERTY_NAME = "name"; private String name; - public ModelFile() {} + public ModelFile() { + } /** * The certificate content converted to a Base64-encoded string. @@ -43,7 +56,6 @@ public ModelFile data(String data) { /** * The certificate content converted to a Base64-encoded string. - * * @return data The certificate content converted to a Base64-encoded string. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -76,7 +88,6 @@ public ModelFile name(String name) { /** * The name of the certificate. Must be unique across Wi-Fi profiles. - * * @return name The name of the certificate. Must be unique across Wi-Fi profiles. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -96,7 +107,9 @@ public void setName(String name) { this.name = name; } - /** Return true if this File object is equal to o. */ + /** + * Return true if this File object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -106,7 +119,8 @@ public boolean equals(Object o) { return false; } ModelFile _file = (ModelFile) o; - return Objects.equals(this.data, _file.data) && Objects.equals(this.name, _file.name); + return Objects.equals(this.data, _file.data) && + Objects.equals(this.name, _file.name); } @Override @@ -125,7 +139,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -134,7 +149,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ModelFile given an JSON string * * @param jsonString JSON string @@ -144,12 +159,11 @@ private String toIndentedString(Object o) { public static ModelFile fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ModelFile.class); } - - /** - * Convert an instance of ModelFile to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ModelFile to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Name.java b/src/main/java/com/adyen/model/management/Name.java index bc24079c8..4476f34cf 100644 --- a/src/main/java/com/adyen/model/management/Name.java +++ b/src/main/java/com/adyen/model/management/Name.java @@ -2,23 +2,36 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Name */ -@JsonPropertyOrder({Name.JSON_PROPERTY_FIRST_NAME, Name.JSON_PROPERTY_LAST_NAME}) + +/** + * Name + */ +@JsonPropertyOrder({ + Name.JSON_PROPERTY_FIRST_NAME, + Name.JSON_PROPERTY_LAST_NAME +}) + public class Name { public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; private String firstName; @@ -26,7 +39,8 @@ public class Name { public static final String JSON_PROPERTY_LAST_NAME = "lastName"; private String lastName; - public Name() {} + public Name() { + } /** * The first name. @@ -41,7 +55,6 @@ public Name firstName(String firstName) { /** * The first name. - * * @return firstName The first name. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @@ -74,7 +87,6 @@ public Name lastName(String lastName) { /** * The last name. - * * @return lastName The last name. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @@ -94,7 +106,9 @@ public void setLastName(String lastName) { this.lastName = lastName; } - /** Return true if this Name object is equal to o. */ + /** + * Return true if this Name object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -104,8 +118,8 @@ public boolean equals(Object o) { return false; } Name name = (Name) o; - return Objects.equals(this.firstName, name.firstName) - && Objects.equals(this.lastName, name.lastName); + return Objects.equals(this.firstName, name.firstName) && + Objects.equals(this.lastName, name.lastName); } @Override @@ -124,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Name given an JSON string * * @param jsonString JSON string @@ -143,12 +158,11 @@ private String toIndentedString(Object o) { public static Name fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Name.class); } - - /** - * Convert an instance of Name to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Name to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Name2.java b/src/main/java/com/adyen/model/management/Name2.java index 8c671e1ed..95cb755c8 100644 --- a/src/main/java/com/adyen/model/management/Name2.java +++ b/src/main/java/com/adyen/model/management/Name2.java @@ -2,23 +2,36 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Name2 */ -@JsonPropertyOrder({Name2.JSON_PROPERTY_FIRST_NAME, Name2.JSON_PROPERTY_LAST_NAME}) + +/** + * Name2 + */ +@JsonPropertyOrder({ + Name2.JSON_PROPERTY_FIRST_NAME, + Name2.JSON_PROPERTY_LAST_NAME +}) + public class Name2 { public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; private String firstName; @@ -26,7 +39,8 @@ public class Name2 { public static final String JSON_PROPERTY_LAST_NAME = "lastName"; private String lastName; - public Name2() {} + public Name2() { + } /** * The first name. @@ -41,7 +55,6 @@ public Name2 firstName(String firstName) { /** * The first name. - * * @return firstName The first name. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @@ -74,7 +87,6 @@ public Name2 lastName(String lastName) { /** * The last name. - * * @return lastName The last name. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @@ -94,7 +106,9 @@ public void setLastName(String lastName) { this.lastName = lastName; } - /** Return true if this Name2 object is equal to o. */ + /** + * Return true if this Name2 object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -104,8 +118,8 @@ public boolean equals(Object o) { return false; } Name2 name2 = (Name2) o; - return Objects.equals(this.firstName, name2.firstName) - && Objects.equals(this.lastName, name2.lastName); + return Objects.equals(this.firstName, name2.firstName) && + Objects.equals(this.lastName, name2.lastName); } @Override @@ -124,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Name2 given an JSON string * * @param jsonString JSON string @@ -143,12 +158,11 @@ private String toIndentedString(Object o) { public static Name2 fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Name2.class); } - - /** - * Convert an instance of Name2 to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Name2 to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Nexo.java b/src/main/java/com/adyen/model/management/Nexo.java index b6aaa0414..093a2924d 100644 --- a/src/main/java/com/adyen/model/management/Nexo.java +++ b/src/main/java/com/adyen/model/management/Nexo.java @@ -2,24 +2,37 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.EventUrl; +import com.adyen.model.management.Key; +import com.adyen.model.management.Notification; +import com.adyen.model.management.NotificationUrl; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** Nexo */ +/** + * Nexo + */ @JsonPropertyOrder({ Nexo.JSON_PROPERTY_DISPLAY_URLS, Nexo.JSON_PROPERTY_ENCRYPTION_KEY, @@ -27,6 +40,7 @@ Nexo.JSON_PROPERTY_NEXO_EVENT_URLS, Nexo.JSON_PROPERTY_NOTIFICATION }) + public class Nexo { public static final String JSON_PROPERTY_DISPLAY_URLS = "displayUrls"; private NotificationUrl displayUrls; @@ -44,12 +58,13 @@ public class Nexo { public static final String JSON_PROPERTY_NOTIFICATION = "notification"; private Notification notification; - public Nexo() {} + public Nexo() { + } /** * displayUrls * - * @param displayUrls + * @param displayUrls * @return the current {@code Nexo} instance, allowing for method chaining */ public Nexo displayUrls(NotificationUrl displayUrls) { @@ -59,8 +74,7 @@ public Nexo displayUrls(NotificationUrl displayUrls) { /** * Get displayUrls - * - * @return displayUrls + * @return displayUrls */ @JsonProperty(JSON_PROPERTY_DISPLAY_URLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,7 +85,7 @@ public NotificationUrl getDisplayUrls() { /** * displayUrls * - * @param displayUrls + * @param displayUrls */ @JsonProperty(JSON_PROPERTY_DISPLAY_URLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -82,7 +96,7 @@ public void setDisplayUrls(NotificationUrl displayUrls) { /** * encryptionKey * - * @param encryptionKey + * @param encryptionKey * @return the current {@code Nexo} instance, allowing for method chaining */ public Nexo encryptionKey(Key encryptionKey) { @@ -92,8 +106,7 @@ public Nexo encryptionKey(Key encryptionKey) { /** * Get encryptionKey - * - * @return encryptionKey + * @return encryptionKey */ @JsonProperty(JSON_PROPERTY_ENCRYPTION_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,7 +117,7 @@ public Key getEncryptionKey() { /** * encryptionKey * - * @param encryptionKey + * @param encryptionKey */ @JsonProperty(JSON_PROPERTY_ENCRYPTION_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,7 +128,7 @@ public void setEncryptionKey(Key encryptionKey) { /** * eventUrls * - * @param eventUrls + * @param eventUrls * @return the current {@code Nexo} instance, allowing for method chaining */ public Nexo eventUrls(EventUrl eventUrls) { @@ -125,8 +138,7 @@ public Nexo eventUrls(EventUrl eventUrls) { /** * Get eventUrls - * - * @return eventUrls + * @return eventUrls */ @JsonProperty(JSON_PROPERTY_EVENT_URLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,7 +149,7 @@ public EventUrl getEventUrls() { /** * eventUrls * - * @param eventUrls + * @param eventUrls */ @JsonProperty(JSON_PROPERTY_EVENT_URLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,7 +162,9 @@ public void setEventUrls(EventUrl eventUrls) { * * @param nexoEventUrls One or more URLs to send event messages to when using Terminal API. * @return the current {@code Nexo} instance, allowing for method chaining - * @deprecated since Management API v1 Use `eventUrls` instead. + * + * @deprecated since Management API v1 + * Use `eventUrls` instead. */ @Deprecated // deprecated since Management API v1: Use `eventUrls` instead. public Nexo nexoEventUrls(List nexoEventUrls) { @@ -168,7 +182,6 @@ public Nexo addNexoEventUrlsItem(String nexoEventUrlsItem) { /** * One or more URLs to send event messages to when using Terminal API. - * * @return nexoEventUrls One or more URLs to send event messages to when using Terminal API. * @deprecated // deprecated since Management API v1: Use `eventUrls` instead. */ @@ -183,7 +196,9 @@ public List getNexoEventUrls() { * One or more URLs to send event messages to when using Terminal API. * * @param nexoEventUrls One or more URLs to send event messages to when using Terminal API. - * @deprecated since Management API v1 Use `eventUrls` instead. + * + * @deprecated since Management API v1 + * Use `eventUrls` instead. */ @Deprecated // deprecated since Management API v1: Use `eventUrls` instead. @JsonProperty(JSON_PROPERTY_NEXO_EVENT_URLS) @@ -195,7 +210,7 @@ public void setNexoEventUrls(List nexoEventUrls) { /** * notification * - * @param notification + * @param notification * @return the current {@code Nexo} instance, allowing for method chaining */ public Nexo notification(Notification notification) { @@ -205,8 +220,7 @@ public Nexo notification(Notification notification) { /** * Get notification - * - * @return notification + * @return notification */ @JsonProperty(JSON_PROPERTY_NOTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -217,7 +231,7 @@ public Notification getNotification() { /** * notification * - * @param notification + * @param notification */ @JsonProperty(JSON_PROPERTY_NOTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -225,7 +239,9 @@ public void setNotification(Notification notification) { this.notification = notification; } - /** Return true if this Nexo object is equal to o. */ + /** + * Return true if this Nexo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -235,11 +251,11 @@ public boolean equals(Object o) { return false; } Nexo nexo = (Nexo) o; - return Objects.equals(this.displayUrls, nexo.displayUrls) - && Objects.equals(this.encryptionKey, nexo.encryptionKey) - && Objects.equals(this.eventUrls, nexo.eventUrls) - && Objects.equals(this.nexoEventUrls, nexo.nexoEventUrls) - && Objects.equals(this.notification, nexo.notification); + return Objects.equals(this.displayUrls, nexo.displayUrls) && + Objects.equals(this.encryptionKey, nexo.encryptionKey) && + Objects.equals(this.eventUrls, nexo.eventUrls) && + Objects.equals(this.nexoEventUrls, nexo.nexoEventUrls) && + Objects.equals(this.notification, nexo.notification); } @Override @@ -261,7 +277,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -270,7 +287,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Nexo given an JSON string * * @param jsonString JSON string @@ -280,12 +297,11 @@ private String toIndentedString(Object o) { public static Nexo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Nexo.class); } - - /** - * Convert an instance of Nexo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Nexo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Notification.java b/src/main/java/com/adyen/model/management/Notification.java index b00824e95..8df6fba28 100644 --- a/src/main/java/com/adyen/model/management/Notification.java +++ b/src/main/java/com/adyen/model/management/Notification.java @@ -2,26 +2,31 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** Notification */ + +/** + * Notification + */ @JsonPropertyOrder({ Notification.JSON_PROPERTY_CATEGORY, Notification.JSON_PROPERTY_DETAILS, @@ -29,9 +34,13 @@ Notification.JSON_PROPERTY_SHOW_BUTTON, Notification.JSON_PROPERTY_TITLE }) + public class Notification { - /** The type of event notification sent when you select the notification button. */ + /** + * The type of event notification sent when you select the notification button. + */ public enum CategoryEnum { + SALEWAKEUP(String.valueOf("SaleWakeUp")), KEYPRESSED(String.valueOf("KeyPressed")), @@ -43,7 +52,7 @@ public enum CategoryEnum { private String value; CategoryEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +73,7 @@ public static CategoryEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "CategoryEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(CategoryEnum.values())); + LOG.warning("CategoryEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CategoryEnum.values())); return null; } } @@ -88,7 +93,8 @@ public static CategoryEnum fromValue(String value) { public static final String JSON_PROPERTY_TITLE = "title"; private String title; - public Notification() {} + public Notification() { + } /** * The type of event notification sent when you select the notification button. @@ -103,7 +109,6 @@ public Notification category(CategoryEnum category) { /** * The type of event notification sent when you select the notification button. - * * @return category The type of event notification sent when you select the notification button. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @@ -124,11 +129,9 @@ public void setCategory(CategoryEnum category) { } /** - * The text shown in the prompt which opens when you select the notification button. For example, - * the description of the input box for pay-at-table. + * The text shown in the prompt which opens when you select the notification button. For example, the description of the input box for pay-at-table. * - * @param details The text shown in the prompt which opens when you select the notification - * button. For example, the description of the input box for pay-at-table. + * @param details The text shown in the prompt which opens when you select the notification button. For example, the description of the input box for pay-at-table. * @return the current {@code Notification} instance, allowing for method chaining */ public Notification details(String details) { @@ -137,11 +140,8 @@ public Notification details(String details) { } /** - * The text shown in the prompt which opens when you select the notification button. For example, - * the description of the input box for pay-at-table. - * - * @return details The text shown in the prompt which opens when you select the notification - * button. For example, the description of the input box for pay-at-table. + * The text shown in the prompt which opens when you select the notification button. For example, the description of the input box for pay-at-table. + * @return details The text shown in the prompt which opens when you select the notification button. For example, the description of the input box for pay-at-table. */ @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,11 +150,9 @@ public String getDetails() { } /** - * The text shown in the prompt which opens when you select the notification button. For example, - * the description of the input box for pay-at-table. + * The text shown in the prompt which opens when you select the notification button. For example, the description of the input box for pay-at-table. * - * @param details The text shown in the prompt which opens when you select the notification - * button. For example, the description of the input box for pay-at-table. + * @param details The text shown in the prompt which opens when you select the notification button. For example, the description of the input box for pay-at-table. */ @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,11 +161,9 @@ public void setDetails(String details) { } /** - * Enables sending event notifications either by pressing the Confirm key on terminals with a - * keypad or by tapping the event notification button on the terminal screen. + * Enables sending event notifications either by pressing the Confirm key on terminals with a keypad or by tapping the event notification button on the terminal screen. * - * @param enabled Enables sending event notifications either by pressing the Confirm key on - * terminals with a keypad or by tapping the event notification button on the terminal screen. + * @param enabled Enables sending event notifications either by pressing the Confirm key on terminals with a keypad or by tapping the event notification button on the terminal screen. * @return the current {@code Notification} instance, allowing for method chaining */ public Notification enabled(Boolean enabled) { @@ -176,11 +172,8 @@ public Notification enabled(Boolean enabled) { } /** - * Enables sending event notifications either by pressing the Confirm key on terminals with a - * keypad or by tapping the event notification button on the terminal screen. - * - * @return enabled Enables sending event notifications either by pressing the Confirm key on - * terminals with a keypad or by tapping the event notification button on the terminal screen. + * Enables sending event notifications either by pressing the Confirm key on terminals with a keypad or by tapping the event notification button on the terminal screen. + * @return enabled Enables sending event notifications either by pressing the Confirm key on terminals with a keypad or by tapping the event notification button on the terminal screen. */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,11 +182,9 @@ public Boolean getEnabled() { } /** - * Enables sending event notifications either by pressing the Confirm key on terminals with a - * keypad or by tapping the event notification button on the terminal screen. + * Enables sending event notifications either by pressing the Confirm key on terminals with a keypad or by tapping the event notification button on the terminal screen. * - * @param enabled Enables sending event notifications either by pressing the Confirm key on - * terminals with a keypad or by tapping the event notification button on the terminal screen. + * @param enabled Enables sending event notifications either by pressing the Confirm key on terminals with a keypad or by tapping the event notification button on the terminal screen. */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -202,11 +193,9 @@ public void setEnabled(Boolean enabled) { } /** - * Shows or hides the event notification button on the screen of terminal models that have a - * keypad. + * Shows or hides the event notification button on the screen of terminal models that have a keypad. * - * @param showButton Shows or hides the event notification button on the screen of terminal models - * that have a keypad. + * @param showButton Shows or hides the event notification button on the screen of terminal models that have a keypad. * @return the current {@code Notification} instance, allowing for method chaining */ public Notification showButton(Boolean showButton) { @@ -215,11 +204,8 @@ public Notification showButton(Boolean showButton) { } /** - * Shows or hides the event notification button on the screen of terminal models that have a - * keypad. - * - * @return showButton Shows or hides the event notification button on the screen of terminal - * models that have a keypad. + * Shows or hides the event notification button on the screen of terminal models that have a keypad. + * @return showButton Shows or hides the event notification button on the screen of terminal models that have a keypad. */ @JsonProperty(JSON_PROPERTY_SHOW_BUTTON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -228,11 +214,9 @@ public Boolean getShowButton() { } /** - * Shows or hides the event notification button on the screen of terminal models that have a - * keypad. + * Shows or hides the event notification button on the screen of terminal models that have a keypad. * - * @param showButton Shows or hides the event notification button on the screen of terminal models - * that have a keypad. + * @param showButton Shows or hides the event notification button on the screen of terminal models that have a keypad. */ @JsonProperty(JSON_PROPERTY_SHOW_BUTTON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -253,7 +237,6 @@ public Notification title(String title) { /** * The name of the notification button on the terminal screen. - * * @return title The name of the notification button on the terminal screen. */ @JsonProperty(JSON_PROPERTY_TITLE) @@ -273,7 +256,9 @@ public void setTitle(String title) { this.title = title; } - /** Return true if this Notification object is equal to o. */ + /** + * Return true if this Notification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -283,11 +268,11 @@ public boolean equals(Object o) { return false; } Notification notification = (Notification) o; - return Objects.equals(this.category, notification.category) - && Objects.equals(this.details, notification.details) - && Objects.equals(this.enabled, notification.enabled) - && Objects.equals(this.showButton, notification.showButton) - && Objects.equals(this.title, notification.title); + return Objects.equals(this.category, notification.category) && + Objects.equals(this.details, notification.details) && + Objects.equals(this.enabled, notification.enabled) && + Objects.equals(this.showButton, notification.showButton) && + Objects.equals(this.title, notification.title); } @Override @@ -309,7 +294,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -318,7 +304,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Notification given an JSON string * * @param jsonString JSON string @@ -328,12 +314,11 @@ private String toIndentedString(Object o) { public static Notification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Notification.class); } - - /** - * Convert an instance of Notification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Notification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/NotificationUrl.java b/src/main/java/com/adyen/model/management/NotificationUrl.java index e3ff20222..c9befe067 100644 --- a/src/main/java/com/adyen/model/management/NotificationUrl.java +++ b/src/main/java/com/adyen/model/management/NotificationUrl.java @@ -2,28 +2,39 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.Url; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** NotificationUrl */ +/** + * NotificationUrl + */ @JsonPropertyOrder({ NotificationUrl.JSON_PROPERTY_LOCAL_URLS, NotificationUrl.JSON_PROPERTY_PUBLIC_URLS }) + public class NotificationUrl { public static final String JSON_PROPERTY_LOCAL_URLS = "localUrls"; private List localUrls; @@ -31,7 +42,8 @@ public class NotificationUrl { public static final String JSON_PROPERTY_PUBLIC_URLS = "publicUrls"; private List publicUrls; - public NotificationUrl() {} + public NotificationUrl() { + } /** * One or more local URLs to send notifications to when using Terminal API. @@ -54,7 +66,6 @@ public NotificationUrl addLocalUrlsItem(Url localUrlsItem) { /** * One or more local URLs to send notifications to when using Terminal API. - * * @return localUrls One or more local URLs to send notifications to when using Terminal API. */ @JsonProperty(JSON_PROPERTY_LOCAL_URLS) @@ -95,7 +106,6 @@ public NotificationUrl addPublicUrlsItem(Url publicUrlsItem) { /** * One or more public URLs to send notifications to when using Terminal API. - * * @return publicUrls One or more public URLs to send notifications to when using Terminal API. */ @JsonProperty(JSON_PROPERTY_PUBLIC_URLS) @@ -115,7 +125,9 @@ public void setPublicUrls(List publicUrls) { this.publicUrls = publicUrls; } - /** Return true if this NotificationUrl object is equal to o. */ + /** + * Return true if this NotificationUrl object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -125,8 +137,8 @@ public boolean equals(Object o) { return false; } NotificationUrl notificationUrl = (NotificationUrl) o; - return Objects.equals(this.localUrls, notificationUrl.localUrls) - && Objects.equals(this.publicUrls, notificationUrl.publicUrls); + return Objects.equals(this.localUrls, notificationUrl.localUrls) && + Objects.equals(this.publicUrls, notificationUrl.publicUrls); } @Override @@ -145,7 +157,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -154,7 +167,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of NotificationUrl given an JSON string * * @param jsonString JSON string @@ -164,12 +177,11 @@ private String toIndentedString(Object o) { public static NotificationUrl fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NotificationUrl.class); } - - /** - * Convert an instance of NotificationUrl to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of NotificationUrl to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/NyceInfo.java b/src/main/java/com/adyen/model/management/NyceInfo.java index e3b13ccd8..f387482a0 100644 --- a/src/main/java/com/adyen/model/management/NyceInfo.java +++ b/src/main/java/com/adyen/model/management/NyceInfo.java @@ -2,40 +2,43 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.TransactionDescriptionInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** NyceInfo */ +/** + * NyceInfo + */ @JsonPropertyOrder({ NyceInfo.JSON_PROPERTY_PROCESSING_TYPE, NyceInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION }) + public class NyceInfo { /** - * The type of transactions processed over this payment method. Allowed values: - **pos** for - * in-person payments. - **billpay** for subscription payments, both the initial payment and the - * later recurring payments. These transactions have `recurringProcessingModel` - * **Subscription**. - **ecom** for all other card not present transactions. This includes - * non-recurring transactions and transactions with `recurringProcessingModel` - * **CardOnFile** or **UnscheduledCardOnFile**. + * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. */ public enum ProcessingTypeEnum { + BILLPAY(String.valueOf("billpay")), ECOM(String.valueOf("ecom")), @@ -47,7 +50,7 @@ public enum ProcessingTypeEnum { private String value; ProcessingTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -68,11 +71,7 @@ public static ProcessingTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ProcessingTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ProcessingTypeEnum.values())); + LOG.warning("ProcessingTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ProcessingTypeEnum.values())); return null; } } @@ -83,22 +82,13 @@ public static ProcessingTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANSACTION_DESCRIPTION = "transactionDescription"; private TransactionDescriptionInfo transactionDescription; - public NyceInfo() {} + public NyceInfo() { + } /** - * The type of transactions processed over this payment method. Allowed values: - **pos** for - * in-person payments. - **billpay** for subscription payments, both the initial payment and the - * later recurring payments. These transactions have `recurringProcessingModel` - * **Subscription**. - **ecom** for all other card not present transactions. This includes - * non-recurring transactions and transactions with `recurringProcessingModel` - * **CardOnFile** or **UnscheduledCardOnFile**. + * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. * - * @param processingType The type of transactions processed over this payment method. Allowed - * values: - **pos** for in-person payments. - **billpay** for subscription payments, both the - * initial payment and the later recurring payments. These transactions have - * `recurringProcessingModel` **Subscription**. - **ecom** for all other card not - * present transactions. This includes non-recurring transactions and transactions with - * `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * @param processingType The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. * @return the current {@code NyceInfo} instance, allowing for method chaining */ public NyceInfo processingType(ProcessingTypeEnum processingType) { @@ -107,19 +97,8 @@ public NyceInfo processingType(ProcessingTypeEnum processingType) { } /** - * The type of transactions processed over this payment method. Allowed values: - **pos** for - * in-person payments. - **billpay** for subscription payments, both the initial payment and the - * later recurring payments. These transactions have `recurringProcessingModel` - * **Subscription**. - **ecom** for all other card not present transactions. This includes - * non-recurring transactions and transactions with `recurringProcessingModel` - * **CardOnFile** or **UnscheduledCardOnFile**. - * - * @return processingType The type of transactions processed over this payment method. Allowed - * values: - **pos** for in-person payments. - **billpay** for subscription payments, both the - * initial payment and the later recurring payments. These transactions have - * `recurringProcessingModel` **Subscription**. - **ecom** for all other card not - * present transactions. This includes non-recurring transactions and transactions with - * `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * @return processingType The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. */ @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,19 +107,9 @@ public ProcessingTypeEnum getProcessingType() { } /** - * The type of transactions processed over this payment method. Allowed values: - **pos** for - * in-person payments. - **billpay** for subscription payments, both the initial payment and the - * later recurring payments. These transactions have `recurringProcessingModel` - * **Subscription**. - **ecom** for all other card not present transactions. This includes - * non-recurring transactions and transactions with `recurringProcessingModel` - * **CardOnFile** or **UnscheduledCardOnFile**. + * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. * - * @param processingType The type of transactions processed over this payment method. Allowed - * values: - **pos** for in-person payments. - **billpay** for subscription payments, both the - * initial payment and the later recurring payments. These transactions have - * `recurringProcessingModel` **Subscription**. - **ecom** for all other card not - * present transactions. This includes non-recurring transactions and transactions with - * `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * @param processingType The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. */ @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,7 +120,7 @@ public void setProcessingType(ProcessingTypeEnum processingType) { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription * @return the current {@code NyceInfo} instance, allowing for method chaining */ public NyceInfo transactionDescription(TransactionDescriptionInfo transactionDescription) { @@ -161,8 +130,7 @@ public NyceInfo transactionDescription(TransactionDescriptionInfo transactionDes /** * Get transactionDescription - * - * @return transactionDescription + * @return transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,7 +141,7 @@ public TransactionDescriptionInfo getTransactionDescription() { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,7 +149,9 @@ public void setTransactionDescription(TransactionDescriptionInfo transactionDesc this.transactionDescription = transactionDescription; } - /** Return true if this NyceInfo object is equal to o. */ + /** + * Return true if this NyceInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -191,8 +161,8 @@ public boolean equals(Object o) { return false; } NyceInfo nyceInfo = (NyceInfo) o; - return Objects.equals(this.processingType, nyceInfo.processingType) - && Objects.equals(this.transactionDescription, nyceInfo.transactionDescription); + return Objects.equals(this.processingType, nyceInfo.processingType) && + Objects.equals(this.transactionDescription, nyceInfo.transactionDescription); } @Override @@ -205,15 +175,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NyceInfo {\n"); sb.append(" processingType: ").append(toIndentedString(processingType)).append("\n"); - sb.append(" transactionDescription: ") - .append(toIndentedString(transactionDescription)) - .append("\n"); + sb.append(" transactionDescription: ").append(toIndentedString(transactionDescription)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -222,7 +191,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of NyceInfo given an JSON string * * @param jsonString JSON string @@ -232,12 +201,11 @@ private String toIndentedString(Object o) { public static NyceInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NyceInfo.class); } - - /** - * Convert an instance of NyceInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of NyceInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/OfflineProcessing.java b/src/main/java/com/adyen/model/management/OfflineProcessing.java index f803e3522..b0177aab0 100644 --- a/src/main/java/com/adyen/model/management/OfflineProcessing.java +++ b/src/main/java/com/adyen/model/management/OfflineProcessing.java @@ -2,28 +2,39 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.MinorUnitsMonetaryValue; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** OfflineProcessing */ +/** + * OfflineProcessing + */ @JsonPropertyOrder({ OfflineProcessing.JSON_PROPERTY_CHIP_FLOOR_LIMIT, OfflineProcessing.JSON_PROPERTY_OFFLINE_SWIPE_LIMITS }) + public class OfflineProcessing { public static final String JSON_PROPERTY_CHIP_FLOOR_LIMIT = "chipFloorLimit"; private Integer chipFloorLimit; @@ -31,15 +42,13 @@ public class OfflineProcessing { public static final String JSON_PROPERTY_OFFLINE_SWIPE_LIMITS = "offlineSwipeLimits"; private List offlineSwipeLimits; - public OfflineProcessing() {} + public OfflineProcessing() { + } /** - * The maximum offline transaction amount for chip cards, in the processing currency and specified - * in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The maximum offline transaction amount for chip cards, in the processing currency and specified in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * @param chipFloorLimit The maximum offline transaction amount for chip cards, in the processing - * currency and specified in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * @param chipFloorLimit The maximum offline transaction amount for chip cards, in the processing currency and specified in [minor units](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code OfflineProcessing} instance, allowing for method chaining */ public OfflineProcessing chipFloorLimit(Integer chipFloorLimit) { @@ -48,12 +57,8 @@ public OfflineProcessing chipFloorLimit(Integer chipFloorLimit) { } /** - * The maximum offline transaction amount for chip cards, in the processing currency and specified - * in [minor units](https://docs.adyen.com/development-resources/currency-codes). - * - * @return chipFloorLimit The maximum offline transaction amount for chip cards, in the processing - * currency and specified in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * The maximum offline transaction amount for chip cards, in the processing currency and specified in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @return chipFloorLimit The maximum offline transaction amount for chip cards, in the processing currency and specified in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CHIP_FLOOR_LIMIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -62,12 +67,9 @@ public Integer getChipFloorLimit() { } /** - * The maximum offline transaction amount for chip cards, in the processing currency and specified - * in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The maximum offline transaction amount for chip cards, in the processing currency and specified in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * @param chipFloorLimit The maximum offline transaction amount for chip cards, in the processing - * currency and specified in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * @param chipFloorLimit The maximum offline transaction amount for chip cards, in the processing currency and specified in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CHIP_FLOOR_LIMIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -78,8 +80,7 @@ public void setChipFloorLimit(Integer chipFloorLimit) { /** * The maximum offline transaction amount for swiped cards, in the specified currency. * - * @param offlineSwipeLimits The maximum offline transaction amount for swiped cards, in the - * specified currency. + * @param offlineSwipeLimits The maximum offline transaction amount for swiped cards, in the specified currency. * @return the current {@code OfflineProcessing} instance, allowing for method chaining */ public OfflineProcessing offlineSwipeLimits(List offlineSwipeLimits) { @@ -87,8 +88,7 @@ public OfflineProcessing offlineSwipeLimits(List offlin return this; } - public OfflineProcessing addOfflineSwipeLimitsItem( - MinorUnitsMonetaryValue offlineSwipeLimitsItem) { + public OfflineProcessing addOfflineSwipeLimitsItem(MinorUnitsMonetaryValue offlineSwipeLimitsItem) { if (this.offlineSwipeLimits == null) { this.offlineSwipeLimits = new ArrayList<>(); } @@ -98,9 +98,7 @@ public OfflineProcessing addOfflineSwipeLimitsItem( /** * The maximum offline transaction amount for swiped cards, in the specified currency. - * - * @return offlineSwipeLimits The maximum offline transaction amount for swiped cards, in the - * specified currency. + * @return offlineSwipeLimits The maximum offline transaction amount for swiped cards, in the specified currency. */ @JsonProperty(JSON_PROPERTY_OFFLINE_SWIPE_LIMITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,8 +109,7 @@ public List getOfflineSwipeLimits() { /** * The maximum offline transaction amount for swiped cards, in the specified currency. * - * @param offlineSwipeLimits The maximum offline transaction amount for swiped cards, in the - * specified currency. + * @param offlineSwipeLimits The maximum offline transaction amount for swiped cards, in the specified currency. */ @JsonProperty(JSON_PROPERTY_OFFLINE_SWIPE_LIMITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -120,7 +117,9 @@ public void setOfflineSwipeLimits(List offlineSwipeLimi this.offlineSwipeLimits = offlineSwipeLimits; } - /** Return true if this OfflineProcessing object is equal to o. */ + /** + * Return true if this OfflineProcessing object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -130,8 +129,8 @@ public boolean equals(Object o) { return false; } OfflineProcessing offlineProcessing = (OfflineProcessing) o; - return Objects.equals(this.chipFloorLimit, offlineProcessing.chipFloorLimit) - && Objects.equals(this.offlineSwipeLimits, offlineProcessing.offlineSwipeLimits); + return Objects.equals(this.chipFloorLimit, offlineProcessing.chipFloorLimit) && + Objects.equals(this.offlineSwipeLimits, offlineProcessing.offlineSwipeLimits); } @Override @@ -150,7 +149,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -159,7 +159,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of OfflineProcessing given an JSON string * * @param jsonString JSON string @@ -169,12 +169,11 @@ private String toIndentedString(Object o) { public static OfflineProcessing fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, OfflineProcessing.class); } - - /** - * Convert an instance of OfflineProcessing to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of OfflineProcessing to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Opi.java b/src/main/java/com/adyen/model/management/Opi.java index bed060a63..0534289f9 100644 --- a/src/main/java/com/adyen/model/management/Opi.java +++ b/src/main/java/com/adyen/model/management/Opi.java @@ -2,27 +2,37 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Opi */ + +/** + * Opi + */ @JsonPropertyOrder({ Opi.JSON_PROPERTY_ENABLE_PAY_AT_TABLE, Opi.JSON_PROPERTY_PAY_AT_TABLE_STORE_NUMBER, Opi.JSON_PROPERTY_PAY_AT_TABLE_U_R_L }) + public class Opi { public static final String JSON_PROPERTY_ENABLE_PAY_AT_TABLE = "enablePayAtTable"; private Boolean enablePayAtTable; @@ -33,7 +43,8 @@ public class Opi { public static final String JSON_PROPERTY_PAY_AT_TABLE_U_R_L = "payAtTableURL"; private String payAtTableURL; - public Opi() {} + public Opi() { + } /** * Indicates if Pay at table is enabled. @@ -48,7 +59,6 @@ public Opi enablePayAtTable(Boolean enablePayAtTable) { /** * Indicates if Pay at table is enabled. - * * @return enablePayAtTable Indicates if Pay at table is enabled. */ @JsonProperty(JSON_PROPERTY_ENABLE_PAY_AT_TABLE) @@ -81,7 +91,6 @@ public Opi payAtTableStoreNumber(String payAtTableStoreNumber) { /** * The store number to use for Pay at Table. - * * @return payAtTableStoreNumber The store number to use for Pay at Table. */ @JsonProperty(JSON_PROPERTY_PAY_AT_TABLE_STORE_NUMBER) @@ -114,7 +123,6 @@ public Opi payAtTableURL(String payAtTableURL) { /** * The URL and port number used for Pay at Table communication. - * * @return payAtTableURL The URL and port number used for Pay at Table communication. */ @JsonProperty(JSON_PROPERTY_PAY_AT_TABLE_U_R_L) @@ -134,7 +142,9 @@ public void setPayAtTableURL(String payAtTableURL) { this.payAtTableURL = payAtTableURL; } - /** Return true if this Opi object is equal to o. */ + /** + * Return true if this Opi object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,9 +154,9 @@ public boolean equals(Object o) { return false; } Opi opi = (Opi) o; - return Objects.equals(this.enablePayAtTable, opi.enablePayAtTable) - && Objects.equals(this.payAtTableStoreNumber, opi.payAtTableStoreNumber) - && Objects.equals(this.payAtTableURL, opi.payAtTableURL); + return Objects.equals(this.enablePayAtTable, opi.enablePayAtTable) && + Objects.equals(this.payAtTableStoreNumber, opi.payAtTableStoreNumber) && + Objects.equals(this.payAtTableURL, opi.payAtTableURL); } @Override @@ -159,16 +169,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Opi {\n"); sb.append(" enablePayAtTable: ").append(toIndentedString(enablePayAtTable)).append("\n"); - sb.append(" payAtTableStoreNumber: ") - .append(toIndentedString(payAtTableStoreNumber)) - .append("\n"); + sb.append(" payAtTableStoreNumber: ").append(toIndentedString(payAtTableStoreNumber)).append("\n"); sb.append(" payAtTableURL: ").append(toIndentedString(payAtTableURL)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -177,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Opi given an JSON string * * @param jsonString JSON string @@ -187,12 +196,11 @@ private String toIndentedString(Object o) { public static Opi fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Opi.class); } - - /** - * Convert an instance of Opi to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Opi to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/OrderItem.java b/src/main/java/com/adyen/model/management/OrderItem.java index cc61b7f58..fbdabbcdd 100644 --- a/src/main/java/com/adyen/model/management/OrderItem.java +++ b/src/main/java/com/adyen/model/management/OrderItem.java @@ -2,28 +2,38 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** OrderItem */ + +/** + * OrderItem + */ @JsonPropertyOrder({ OrderItem.JSON_PROPERTY_ID, OrderItem.JSON_PROPERTY_INSTALLMENTS, OrderItem.JSON_PROPERTY_NAME, OrderItem.JSON_PROPERTY_QUANTITY }) + public class OrderItem { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -37,7 +47,8 @@ public class OrderItem { public static final String JSON_PROPERTY_QUANTITY = "quantity"; private Integer quantity; - public OrderItem() {} + public OrderItem() { + } /** * The unique identifier of the product. @@ -52,7 +63,6 @@ public OrderItem id(String id) { /** * The unique identifier of the product. - * * @return id The unique identifier of the product. */ @JsonProperty(JSON_PROPERTY_ID) @@ -85,7 +95,6 @@ public OrderItem installments(Long installments) { /** * The number of installments for the specified product `id`. - * * @return installments The number of installments for the specified product `id`. */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS) @@ -118,7 +127,6 @@ public OrderItem name(String name) { /** * The name of the product. - * * @return name The name of the product. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -141,8 +149,7 @@ public void setName(String name) { /** * The number of items with the specified product `id` included in the order. * - * @param quantity The number of items with the specified product `id` included in the - * order. + * @param quantity The number of items with the specified product `id` included in the order. * @return the current {@code OrderItem} instance, allowing for method chaining */ public OrderItem quantity(Integer quantity) { @@ -152,9 +159,7 @@ public OrderItem quantity(Integer quantity) { /** * The number of items with the specified product `id` included in the order. - * - * @return quantity The number of items with the specified product `id` included in the - * order. + * @return quantity The number of items with the specified product `id` included in the order. */ @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -165,8 +170,7 @@ public Integer getQuantity() { /** * The number of items with the specified product `id` included in the order. * - * @param quantity The number of items with the specified product `id` included in the - * order. + * @param quantity The number of items with the specified product `id` included in the order. */ @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -174,7 +178,9 @@ public void setQuantity(Integer quantity) { this.quantity = quantity; } - /** Return true if this OrderItem object is equal to o. */ + /** + * Return true if this OrderItem object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -184,10 +190,10 @@ public boolean equals(Object o) { return false; } OrderItem orderItem = (OrderItem) o; - return Objects.equals(this.id, orderItem.id) - && Objects.equals(this.installments, orderItem.installments) - && Objects.equals(this.name, orderItem.name) - && Objects.equals(this.quantity, orderItem.quantity); + return Objects.equals(this.id, orderItem.id) && + Objects.equals(this.installments, orderItem.installments) && + Objects.equals(this.name, orderItem.name) && + Objects.equals(this.quantity, orderItem.quantity); } @Override @@ -208,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -217,7 +224,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of OrderItem given an JSON string * * @param jsonString JSON string @@ -227,12 +234,11 @@ private String toIndentedString(Object o) { public static OrderItem fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, OrderItem.class); } - - /** - * Convert an instance of OrderItem to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of OrderItem to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/PaginationLinks.java b/src/main/java/com/adyen/model/management/PaginationLinks.java index 11e174229..509d47d1c 100644 --- a/src/main/java/com/adyen/model/management/PaginationLinks.java +++ b/src/main/java/com/adyen/model/management/PaginationLinks.java @@ -2,22 +2,32 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.LinksElement; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** PaginationLinks */ + +/** + * PaginationLinks + */ @JsonPropertyOrder({ PaginationLinks.JSON_PROPERTY_FIRST, PaginationLinks.JSON_PROPERTY_LAST, @@ -25,6 +35,7 @@ PaginationLinks.JSON_PROPERTY_PREV, PaginationLinks.JSON_PROPERTY_SELF }) + public class PaginationLinks { public static final String JSON_PROPERTY_FIRST = "first"; private LinksElement first; @@ -41,12 +52,13 @@ public class PaginationLinks { public static final String JSON_PROPERTY_SELF = "self"; private LinksElement self; - public PaginationLinks() {} + public PaginationLinks() { + } /** * first * - * @param first + * @param first * @return the current {@code PaginationLinks} instance, allowing for method chaining */ public PaginationLinks first(LinksElement first) { @@ -56,8 +68,7 @@ public PaginationLinks first(LinksElement first) { /** * Get first - * - * @return first + * @return first */ @JsonProperty(JSON_PROPERTY_FIRST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,7 +79,7 @@ public LinksElement getFirst() { /** * first * - * @param first + * @param first */ @JsonProperty(JSON_PROPERTY_FIRST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,7 +90,7 @@ public void setFirst(LinksElement first) { /** * last * - * @param last + * @param last * @return the current {@code PaginationLinks} instance, allowing for method chaining */ public PaginationLinks last(LinksElement last) { @@ -89,8 +100,7 @@ public PaginationLinks last(LinksElement last) { /** * Get last - * - * @return last + * @return last */ @JsonProperty(JSON_PROPERTY_LAST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,7 +111,7 @@ public LinksElement getLast() { /** * last * - * @param last + * @param last */ @JsonProperty(JSON_PROPERTY_LAST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,7 +122,7 @@ public void setLast(LinksElement last) { /** * next * - * @param next + * @param next * @return the current {@code PaginationLinks} instance, allowing for method chaining */ public PaginationLinks next(LinksElement next) { @@ -122,8 +132,7 @@ public PaginationLinks next(LinksElement next) { /** * Get next - * - * @return next + * @return next */ @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -134,7 +143,7 @@ public LinksElement getNext() { /** * next * - * @param next + * @param next */ @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,7 +154,7 @@ public void setNext(LinksElement next) { /** * prev * - * @param prev + * @param prev * @return the current {@code PaginationLinks} instance, allowing for method chaining */ public PaginationLinks prev(LinksElement prev) { @@ -155,8 +164,7 @@ public PaginationLinks prev(LinksElement prev) { /** * Get prev - * - * @return prev + * @return prev */ @JsonProperty(JSON_PROPERTY_PREV) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,7 +175,7 @@ public LinksElement getPrev() { /** * prev * - * @param prev + * @param prev */ @JsonProperty(JSON_PROPERTY_PREV) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,7 +186,7 @@ public void setPrev(LinksElement prev) { /** * self * - * @param self + * @param self * @return the current {@code PaginationLinks} instance, allowing for method chaining */ public PaginationLinks self(LinksElement self) { @@ -188,8 +196,7 @@ public PaginationLinks self(LinksElement self) { /** * Get self - * - * @return self + * @return self */ @JsonProperty(JSON_PROPERTY_SELF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,7 +207,7 @@ public LinksElement getSelf() { /** * self * - * @param self + * @param self */ @JsonProperty(JSON_PROPERTY_SELF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,7 +215,9 @@ public void setSelf(LinksElement self) { this.self = self; } - /** Return true if this PaginationLinks object is equal to o. */ + /** + * Return true if this PaginationLinks object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -218,11 +227,11 @@ public boolean equals(Object o) { return false; } PaginationLinks paginationLinks = (PaginationLinks) o; - return Objects.equals(this.first, paginationLinks.first) - && Objects.equals(this.last, paginationLinks.last) - && Objects.equals(this.next, paginationLinks.next) - && Objects.equals(this.prev, paginationLinks.prev) - && Objects.equals(this.self, paginationLinks.self); + return Objects.equals(this.first, paginationLinks.first) && + Objects.equals(this.last, paginationLinks.last) && + Objects.equals(this.next, paginationLinks.next) && + Objects.equals(this.prev, paginationLinks.prev) && + Objects.equals(this.self, paginationLinks.self); } @Override @@ -244,7 +253,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -253,7 +263,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaginationLinks given an JSON string * * @param jsonString JSON string @@ -263,12 +273,11 @@ private String toIndentedString(Object o) { public static PaginationLinks fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaginationLinks.class); } - - /** - * Convert an instance of PaginationLinks to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaginationLinks to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Passcodes.java b/src/main/java/com/adyen/model/management/Passcodes.java index 54f11c8ff..de029a124 100644 --- a/src/main/java/com/adyen/model/management/Passcodes.java +++ b/src/main/java/com/adyen/model/management/Passcodes.java @@ -2,28 +2,38 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Passcodes */ + +/** + * Passcodes + */ @JsonPropertyOrder({ Passcodes.JSON_PROPERTY_ADMIN_MENU_PIN, Passcodes.JSON_PROPERTY_REFUND_PIN, Passcodes.JSON_PROPERTY_SCREEN_LOCK_PIN, Passcodes.JSON_PROPERTY_TX_MENU_PIN }) + public class Passcodes { public static final String JSON_PROPERTY_ADMIN_MENU_PIN = "adminMenuPin"; private String adminMenuPin; @@ -37,7 +47,8 @@ public class Passcodes { public static final String JSON_PROPERTY_TX_MENU_PIN = "txMenuPin"; private String txMenuPin; - public Passcodes() {} + public Passcodes() { + } /** * The passcode for the Admin menu and the Settings menu. @@ -52,7 +63,6 @@ public Passcodes adminMenuPin(String adminMenuPin) { /** * The passcode for the Admin menu and the Settings menu. - * * @return adminMenuPin The passcode for the Admin menu and the Settings menu. */ @JsonProperty(JSON_PROPERTY_ADMIN_MENU_PIN) @@ -85,7 +95,6 @@ public Passcodes refundPin(String refundPin) { /** * The passcode for referenced and unreferenced refunds on standalone terminals. - * * @return refundPin The passcode for referenced and unreferenced refunds on standalone terminals. */ @JsonProperty(JSON_PROPERTY_REFUND_PIN) @@ -118,7 +127,6 @@ public Passcodes screenLockPin(String screenLockPin) { /** * The passcode to unlock the terminal screen after a timeout. - * * @return screenLockPin The passcode to unlock the terminal screen after a timeout. */ @JsonProperty(JSON_PROPERTY_SCREEN_LOCK_PIN) @@ -151,7 +159,6 @@ public Passcodes txMenuPin(String txMenuPin) { /** * The passcode for the Transactions menu. - * * @return txMenuPin The passcode for the Transactions menu. */ @JsonProperty(JSON_PROPERTY_TX_MENU_PIN) @@ -171,7 +178,9 @@ public void setTxMenuPin(String txMenuPin) { this.txMenuPin = txMenuPin; } - /** Return true if this Passcodes object is equal to o. */ + /** + * Return true if this Passcodes object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -181,10 +190,10 @@ public boolean equals(Object o) { return false; } Passcodes passcodes = (Passcodes) o; - return Objects.equals(this.adminMenuPin, passcodes.adminMenuPin) - && Objects.equals(this.refundPin, passcodes.refundPin) - && Objects.equals(this.screenLockPin, passcodes.screenLockPin) - && Objects.equals(this.txMenuPin, passcodes.txMenuPin); + return Objects.equals(this.adminMenuPin, passcodes.adminMenuPin) && + Objects.equals(this.refundPin, passcodes.refundPin) && + Objects.equals(this.screenLockPin, passcodes.screenLockPin) && + Objects.equals(this.txMenuPin, passcodes.txMenuPin); } @Override @@ -205,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -214,7 +224,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Passcodes given an JSON string * * @param jsonString JSON string @@ -224,12 +234,11 @@ private String toIndentedString(Object o) { public static Passcodes fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Passcodes.class); } - - /** - * Convert an instance of Passcodes to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Passcodes to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/PayAtTable.java b/src/main/java/com/adyen/model/management/PayAtTable.java index a9384caa3..c48229b9c 100644 --- a/src/main/java/com/adyen/model/management/PayAtTable.java +++ b/src/main/java/com/adyen/model/management/PayAtTable.java @@ -2,34 +2,43 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** PayAtTable */ + +/** + * PayAtTable + */ @JsonPropertyOrder({ PayAtTable.JSON_PROPERTY_AUTHENTICATION_METHOD, PayAtTable.JSON_PROPERTY_ENABLE_PAY_AT_TABLE, PayAtTable.JSON_PROPERTY_PAYMENT_INSTRUMENT }) + public class PayAtTable { - /** Allowed authentication methods: Magswipe, Manual Entry. */ + /** + * Allowed authentication methods: Magswipe, Manual Entry. + */ public enum AuthenticationMethodEnum { + MAGSWIPE(String.valueOf("MAGSWIPE")), MKE(String.valueOf("MKE")); @@ -39,7 +48,7 @@ public enum AuthenticationMethodEnum { private String value; AuthenticationMethodEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static AuthenticationMethodEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AuthenticationMethodEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AuthenticationMethodEnum.values())); + LOG.warning("AuthenticationMethodEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AuthenticationMethodEnum.values())); return null; } } @@ -76,10 +81,10 @@ public static AuthenticationMethodEnum fromValue(String value) { private Boolean enablePayAtTable; /** - * Sets the allowed payment instrument for Pay at table transactions. Can be: **cash** or - * **card**. If not set, the terminal presents both options. + * Sets the allowed payment instrument for Pay at table transactions. Can be: **cash** or **card**. If not set, the terminal presents both options. */ public enum PaymentInstrumentEnum { + CASH(String.valueOf("Cash")), CARD(String.valueOf("Card")); @@ -89,7 +94,7 @@ public enum PaymentInstrumentEnum { private String value; PaymentInstrumentEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -110,11 +115,7 @@ public static PaymentInstrumentEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PaymentInstrumentEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PaymentInstrumentEnum.values())); + LOG.warning("PaymentInstrumentEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PaymentInstrumentEnum.values())); return null; } } @@ -122,7 +123,8 @@ public static PaymentInstrumentEnum fromValue(String value) { public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT = "paymentInstrument"; private PaymentInstrumentEnum paymentInstrument; - public PayAtTable() {} + public PayAtTable() { + } /** * Allowed authentication methods: Magswipe, Manual Entry. @@ -137,7 +139,6 @@ public PayAtTable authenticationMethod(AuthenticationMethodEnum authenticationMe /** * Allowed authentication methods: Magswipe, Manual Entry. - * * @return authenticationMethod Allowed authentication methods: Magswipe, Manual Entry. */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_METHOD) @@ -170,7 +171,6 @@ public PayAtTable enablePayAtTable(Boolean enablePayAtTable) { /** * Enable Pay at table. - * * @return enablePayAtTable Enable Pay at table. */ @JsonProperty(JSON_PROPERTY_ENABLE_PAY_AT_TABLE) @@ -191,11 +191,9 @@ public void setEnablePayAtTable(Boolean enablePayAtTable) { } /** - * Sets the allowed payment instrument for Pay at table transactions. Can be: **cash** or - * **card**. If not set, the terminal presents both options. + * Sets the allowed payment instrument for Pay at table transactions. Can be: **cash** or **card**. If not set, the terminal presents both options. * - * @param paymentInstrument Sets the allowed payment instrument for Pay at table transactions. Can - * be: **cash** or **card**. If not set, the terminal presents both options. + * @param paymentInstrument Sets the allowed payment instrument for Pay at table transactions. Can be: **cash** or **card**. If not set, the terminal presents both options. * @return the current {@code PayAtTable} instance, allowing for method chaining */ public PayAtTable paymentInstrument(PaymentInstrumentEnum paymentInstrument) { @@ -204,11 +202,8 @@ public PayAtTable paymentInstrument(PaymentInstrumentEnum paymentInstrument) { } /** - * Sets the allowed payment instrument for Pay at table transactions. Can be: **cash** or - * **card**. If not set, the terminal presents both options. - * - * @return paymentInstrument Sets the allowed payment instrument for Pay at table transactions. - * Can be: **cash** or **card**. If not set, the terminal presents both options. + * Sets the allowed payment instrument for Pay at table transactions. Can be: **cash** or **card**. If not set, the terminal presents both options. + * @return paymentInstrument Sets the allowed payment instrument for Pay at table transactions. Can be: **cash** or **card**. If not set, the terminal presents both options. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -217,11 +212,9 @@ public PaymentInstrumentEnum getPaymentInstrument() { } /** - * Sets the allowed payment instrument for Pay at table transactions. Can be: **cash** or - * **card**. If not set, the terminal presents both options. + * Sets the allowed payment instrument for Pay at table transactions. Can be: **cash** or **card**. If not set, the terminal presents both options. * - * @param paymentInstrument Sets the allowed payment instrument for Pay at table transactions. Can - * be: **cash** or **card**. If not set, the terminal presents both options. + * @param paymentInstrument Sets the allowed payment instrument for Pay at table transactions. Can be: **cash** or **card**. If not set, the terminal presents both options. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -229,7 +222,9 @@ public void setPaymentInstrument(PaymentInstrumentEnum paymentInstrument) { this.paymentInstrument = paymentInstrument; } - /** Return true if this PayAtTable object is equal to o. */ + /** + * Return true if this PayAtTable object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -239,9 +234,9 @@ public boolean equals(Object o) { return false; } PayAtTable payAtTable = (PayAtTable) o; - return Objects.equals(this.authenticationMethod, payAtTable.authenticationMethod) - && Objects.equals(this.enablePayAtTable, payAtTable.enablePayAtTable) - && Objects.equals(this.paymentInstrument, payAtTable.paymentInstrument); + return Objects.equals(this.authenticationMethod, payAtTable.authenticationMethod) && + Objects.equals(this.enablePayAtTable, payAtTable.enablePayAtTable) && + Objects.equals(this.paymentInstrument, payAtTable.paymentInstrument); } @Override @@ -253,9 +248,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PayAtTable {\n"); - sb.append(" authenticationMethod: ") - .append(toIndentedString(authenticationMethod)) - .append("\n"); + sb.append(" authenticationMethod: ").append(toIndentedString(authenticationMethod)).append("\n"); sb.append(" enablePayAtTable: ").append(toIndentedString(enablePayAtTable)).append("\n"); sb.append(" paymentInstrument: ").append(toIndentedString(paymentInstrument)).append("\n"); sb.append("}"); @@ -263,7 +256,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -272,7 +266,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PayAtTable given an JSON string * * @param jsonString JSON string @@ -282,12 +276,11 @@ private String toIndentedString(Object o) { public static PayAtTable fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayAtTable.class); } - - /** - * Convert an instance of PayAtTable to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PayAtTable to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/PayByBankPlaidInfo.java b/src/main/java/com/adyen/model/management/PayByBankPlaidInfo.java index be1b5e488..1146484ec 100644 --- a/src/main/java/com/adyen/model/management/PayByBankPlaidInfo.java +++ b/src/main/java/com/adyen/model/management/PayByBankPlaidInfo.java @@ -2,94 +2,45 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.TransactionDescriptionInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** PayByBankPlaidInfo */ + +/** + * PayByBankPlaidInfo + */ @JsonPropertyOrder({ - PayByBankPlaidInfo.JSON_PROPERTY_COUNTRY_CODE, PayByBankPlaidInfo.JSON_PROPERTY_LOGO, - PayByBankPlaidInfo.JSON_PROPERTY_MERCHANT_CITY, - PayByBankPlaidInfo.JSON_PROPERTY_MERCHANT_LEGAL_NAME, - PayByBankPlaidInfo.JSON_PROPERTY_MERCHANT_SHOP_URL, - PayByBankPlaidInfo.JSON_PROPERTY_MERCHANT_STATE_PROVINCE, - PayByBankPlaidInfo.JSON_PROPERTY_MERCHANT_STREET_ADDRESS, - PayByBankPlaidInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION, - PayByBankPlaidInfo.JSON_PROPERTY_ZIP_CODE + PayByBankPlaidInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION }) -public class PayByBankPlaidInfo { - public static final String JSON_PROPERTY_COUNTRY_CODE = "countryCode"; - private String countryCode; +public class PayByBankPlaidInfo { public static final String JSON_PROPERTY_LOGO = "logo"; private String logo; - public static final String JSON_PROPERTY_MERCHANT_CITY = "merchantCity"; - private String merchantCity; - - public static final String JSON_PROPERTY_MERCHANT_LEGAL_NAME = "merchantLegalName"; - private String merchantLegalName; - - public static final String JSON_PROPERTY_MERCHANT_SHOP_URL = "merchantShopUrl"; - private String merchantShopUrl; - - public static final String JSON_PROPERTY_MERCHANT_STATE_PROVINCE = "merchantStateProvince"; - private String merchantStateProvince; - - public static final String JSON_PROPERTY_MERCHANT_STREET_ADDRESS = "merchantStreetAddress"; - private String merchantStreetAddress; - public static final String JSON_PROPERTY_TRANSACTION_DESCRIPTION = "transactionDescription"; private TransactionDescriptionInfo transactionDescription; - public static final String JSON_PROPERTY_ZIP_CODE = "zipCode"; - private String zipCode; - - public PayByBankPlaidInfo() {} - - /** - * Country Code. - * - * @param countryCode Country Code. - * @return the current {@code PayByBankPlaidInfo} instance, allowing for method chaining - */ - public PayByBankPlaidInfo countryCode(String countryCode) { - this.countryCode = countryCode; - return this; - } - - /** - * Country Code. - * - * @return countryCode Country Code. - */ - @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCountryCode() { - return countryCode; - } - - /** - * Country Code. - * - * @param countryCode Country Code. - */ - @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCountryCode(String countryCode) { - this.countryCode = countryCode; + public PayByBankPlaidInfo() { } /** @@ -105,7 +56,6 @@ public PayByBankPlaidInfo logo(String logo) { /** * Merchant logo (max. size 150kB). Format: Base64-encoded string. - * * @return logo Merchant logo (max. size 150kB). Format: Base64-encoded string. */ @JsonProperty(JSON_PROPERTY_LOGO) @@ -125,187 +75,20 @@ public void setLogo(String logo) { this.logo = logo; } - /** - * The city the merchant is doing business in. - * - * @param merchantCity The city the merchant is doing business in. - * @return the current {@code PayByBankPlaidInfo} instance, allowing for method chaining - */ - public PayByBankPlaidInfo merchantCity(String merchantCity) { - this.merchantCity = merchantCity; - return this; - } - - /** - * The city the merchant is doing business in. - * - * @return merchantCity The city the merchant is doing business in. - */ - @JsonProperty(JSON_PROPERTY_MERCHANT_CITY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMerchantCity() { - return merchantCity; - } - - /** - * The city the merchant is doing business in. - * - * @param merchantCity The city the merchant is doing business in. - */ - @JsonProperty(JSON_PROPERTY_MERCHANT_CITY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMerchantCity(String merchantCity) { - this.merchantCity = merchantCity; - } - - /** - * Legal Business Name of the Merchant. - * - * @param merchantLegalName Legal Business Name of the Merchant. - * @return the current {@code PayByBankPlaidInfo} instance, allowing for method chaining - */ - public PayByBankPlaidInfo merchantLegalName(String merchantLegalName) { - this.merchantLegalName = merchantLegalName; - return this; - } - - /** - * Legal Business Name of the Merchant. - * - * @return merchantLegalName Legal Business Name of the Merchant. - */ - @JsonProperty(JSON_PROPERTY_MERCHANT_LEGAL_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMerchantLegalName() { - return merchantLegalName; - } - - /** - * Legal Business Name of the Merchant. - * - * @param merchantLegalName Legal Business Name of the Merchant. - */ - @JsonProperty(JSON_PROPERTY_MERCHANT_LEGAL_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMerchantLegalName(String merchantLegalName) { - this.merchantLegalName = merchantLegalName; - } - - /** - * Merchant shop url. - * - * @param merchantShopUrl Merchant shop url. - * @return the current {@code PayByBankPlaidInfo} instance, allowing for method chaining - */ - public PayByBankPlaidInfo merchantShopUrl(String merchantShopUrl) { - this.merchantShopUrl = merchantShopUrl; - return this; - } - - /** - * Merchant shop url. - * - * @return merchantShopUrl Merchant shop url. - */ - @JsonProperty(JSON_PROPERTY_MERCHANT_SHOP_URL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMerchantShopUrl() { - return merchantShopUrl; - } - - /** - * Merchant shop url. - * - * @param merchantShopUrl Merchant shop url. - */ - @JsonProperty(JSON_PROPERTY_MERCHANT_SHOP_URL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMerchantShopUrl(String merchantShopUrl) { - this.merchantShopUrl = merchantShopUrl; - } - - /** - * The state/province of the merchant. - * - * @param merchantStateProvince The state/province of the merchant. - * @return the current {@code PayByBankPlaidInfo} instance, allowing for method chaining - */ - public PayByBankPlaidInfo merchantStateProvince(String merchantStateProvince) { - this.merchantStateProvince = merchantStateProvince; - return this; - } - - /** - * The state/province of the merchant. - * - * @return merchantStateProvince The state/province of the merchant. - */ - @JsonProperty(JSON_PROPERTY_MERCHANT_STATE_PROVINCE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMerchantStateProvince() { - return merchantStateProvince; - } - - /** - * The state/province of the merchant. - * - * @param merchantStateProvince The state/province of the merchant. - */ - @JsonProperty(JSON_PROPERTY_MERCHANT_STATE_PROVINCE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMerchantStateProvince(String merchantStateProvince) { - this.merchantStateProvince = merchantStateProvince; - } - - /** - * The street address of the merchant. - * - * @param merchantStreetAddress The street address of the merchant. - * @return the current {@code PayByBankPlaidInfo} instance, allowing for method chaining - */ - public PayByBankPlaidInfo merchantStreetAddress(String merchantStreetAddress) { - this.merchantStreetAddress = merchantStreetAddress; - return this; - } - - /** - * The street address of the merchant. - * - * @return merchantStreetAddress The street address of the merchant. - */ - @JsonProperty(JSON_PROPERTY_MERCHANT_STREET_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMerchantStreetAddress() { - return merchantStreetAddress; - } - - /** - * The street address of the merchant. - * - * @param merchantStreetAddress The street address of the merchant. - */ - @JsonProperty(JSON_PROPERTY_MERCHANT_STREET_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMerchantStreetAddress(String merchantStreetAddress) { - this.merchantStreetAddress = merchantStreetAddress; - } - /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription * @return the current {@code PayByBankPlaidInfo} instance, allowing for method chaining */ - public PayByBankPlaidInfo transactionDescription( - TransactionDescriptionInfo transactionDescription) { + public PayByBankPlaidInfo transactionDescription(TransactionDescriptionInfo transactionDescription) { this.transactionDescription = transactionDescription; return this; } /** * Get transactionDescription - * - * @return transactionDescription + * @return transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -316,7 +99,7 @@ public TransactionDescriptionInfo getTransactionDescription() { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -325,39 +108,8 @@ public void setTransactionDescription(TransactionDescriptionInfo transactionDesc } /** - * The zip code of the account. - * - * @param zipCode The zip code of the account. - * @return the current {@code PayByBankPlaidInfo} instance, allowing for method chaining + * Return true if this PayByBankPlaidInfo object is equal to o. */ - public PayByBankPlaidInfo zipCode(String zipCode) { - this.zipCode = zipCode; - return this; - } - - /** - * The zip code of the account. - * - * @return zipCode The zip code of the account. - */ - @JsonProperty(JSON_PROPERTY_ZIP_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getZipCode() { - return zipCode; - } - - /** - * The zip code of the account. - * - * @param zipCode The zip code of the account. - */ - @JsonProperty(JSON_PROPERTY_ZIP_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setZipCode(String zipCode) { - this.zipCode = zipCode; - } - - /** Return true if this PayByBankPlaidInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -367,56 +119,28 @@ public boolean equals(Object o) { return false; } PayByBankPlaidInfo payByBankPlaidInfo = (PayByBankPlaidInfo) o; - return Objects.equals(this.countryCode, payByBankPlaidInfo.countryCode) - && Objects.equals(this.logo, payByBankPlaidInfo.logo) - && Objects.equals(this.merchantCity, payByBankPlaidInfo.merchantCity) - && Objects.equals(this.merchantLegalName, payByBankPlaidInfo.merchantLegalName) - && Objects.equals(this.merchantShopUrl, payByBankPlaidInfo.merchantShopUrl) - && Objects.equals(this.merchantStateProvince, payByBankPlaidInfo.merchantStateProvince) - && Objects.equals(this.merchantStreetAddress, payByBankPlaidInfo.merchantStreetAddress) - && Objects.equals(this.transactionDescription, payByBankPlaidInfo.transactionDescription) - && Objects.equals(this.zipCode, payByBankPlaidInfo.zipCode); + return Objects.equals(this.logo, payByBankPlaidInfo.logo) && + Objects.equals(this.transactionDescription, payByBankPlaidInfo.transactionDescription); } @Override public int hashCode() { - return Objects.hash( - countryCode, - logo, - merchantCity, - merchantLegalName, - merchantShopUrl, - merchantStateProvince, - merchantStreetAddress, - transactionDescription, - zipCode); + return Objects.hash(logo, transactionDescription); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PayByBankPlaidInfo {\n"); - sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n"); sb.append(" logo: ").append(toIndentedString(logo)).append("\n"); - sb.append(" merchantCity: ").append(toIndentedString(merchantCity)).append("\n"); - sb.append(" merchantLegalName: ").append(toIndentedString(merchantLegalName)).append("\n"); - sb.append(" merchantShopUrl: ").append(toIndentedString(merchantShopUrl)).append("\n"); - sb.append(" merchantStateProvince: ") - .append(toIndentedString(merchantStateProvince)) - .append("\n"); - sb.append(" merchantStreetAddress: ") - .append(toIndentedString(merchantStreetAddress)) - .append("\n"); - sb.append(" transactionDescription: ") - .append(toIndentedString(transactionDescription)) - .append("\n"); - sb.append(" zipCode: ").append(toIndentedString(zipCode)).append("\n"); + sb.append(" transactionDescription: ").append(toIndentedString(transactionDescription)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -425,23 +149,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PayByBankPlaidInfo given an JSON string * * @param jsonString JSON string * @return An instance of PayByBankPlaidInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PayByBankPlaidInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to PayByBankPlaidInfo */ public static PayByBankPlaidInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayByBankPlaidInfo.class); } - - /** - * Convert an instance of PayByBankPlaidInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PayByBankPlaidInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/PayMeInfo.java b/src/main/java/com/adyen/model/management/PayMeInfo.java index ec69758ab..e98da58ac 100644 --- a/src/main/java/com/adyen/model/management/PayMeInfo.java +++ b/src/main/java/com/adyen/model/management/PayMeInfo.java @@ -2,27 +2,37 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** PayMeInfo */ + +/** + * PayMeInfo + */ @JsonPropertyOrder({ PayMeInfo.JSON_PROPERTY_DISPLAY_NAME, PayMeInfo.JSON_PROPERTY_LOGO, PayMeInfo.JSON_PROPERTY_SUPPORT_EMAIL }) + public class PayMeInfo { public static final String JSON_PROPERTY_DISPLAY_NAME = "displayName"; private String displayName; @@ -33,7 +43,8 @@ public class PayMeInfo { public static final String JSON_PROPERTY_SUPPORT_EMAIL = "supportEmail"; private String supportEmail; - public PayMeInfo() {} + public PayMeInfo() { + } /** * Merchant display name @@ -48,7 +59,6 @@ public PayMeInfo displayName(String displayName) { /** * Merchant display name - * * @return displayName Merchant display name */ @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) @@ -81,7 +91,6 @@ public PayMeInfo logo(String logo) { /** * Merchant logo. Format: Base64-encoded string. - * * @return logo Merchant logo. Format: Base64-encoded string. */ @JsonProperty(JSON_PROPERTY_LOGO) @@ -114,7 +123,6 @@ public PayMeInfo supportEmail(String supportEmail) { /** * The email address of merchant support. - * * @return supportEmail The email address of merchant support. */ @JsonProperty(JSON_PROPERTY_SUPPORT_EMAIL) @@ -134,7 +142,9 @@ public void setSupportEmail(String supportEmail) { this.supportEmail = supportEmail; } - /** Return true if this PayMeInfo object is equal to o. */ + /** + * Return true if this PayMeInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,9 +154,9 @@ public boolean equals(Object o) { return false; } PayMeInfo payMeInfo = (PayMeInfo) o; - return Objects.equals(this.displayName, payMeInfo.displayName) - && Objects.equals(this.logo, payMeInfo.logo) - && Objects.equals(this.supportEmail, payMeInfo.supportEmail); + return Objects.equals(this.displayName, payMeInfo.displayName) && + Objects.equals(this.logo, payMeInfo.logo) && + Objects.equals(this.supportEmail, payMeInfo.supportEmail); } @Override @@ -166,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PayMeInfo given an JSON string * * @param jsonString JSON string @@ -185,12 +196,11 @@ private String toIndentedString(Object o) { public static PayMeInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayMeInfo.class); } - - /** - * Convert an instance of PayMeInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PayMeInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/PayPalInfo.java b/src/main/java/com/adyen/model/management/PayPalInfo.java index 40647827a..9825b9c56 100644 --- a/src/main/java/com/adyen/model/management/PayPalInfo.java +++ b/src/main/java/com/adyen/model/management/PayPalInfo.java @@ -2,27 +2,37 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** PayPalInfo */ + +/** + * PayPalInfo + */ @JsonPropertyOrder({ PayPalInfo.JSON_PROPERTY_DIRECT_CAPTURE, PayPalInfo.JSON_PROPERTY_PAYER_ID, PayPalInfo.JSON_PROPERTY_SUBJECT }) + public class PayPalInfo { public static final String JSON_PROPERTY_DIRECT_CAPTURE = "directCapture"; private Boolean directCapture; @@ -33,17 +43,13 @@ public class PayPalInfo { public static final String JSON_PROPERTY_SUBJECT = "subject"; private String subject; - public PayPalInfo() {} + public PayPalInfo() { + } /** - * Indicates if direct (immediate) capture for PayPal is enabled. If set to **true**, this setting - * overrides the [capture](https://docs.adyen.com/online-payments/capture) settings of your - * merchant account. Default value: **true**. + * Indicates if direct (immediate) capture for PayPal is enabled. If set to **true**, this setting overrides the [capture](https://docs.adyen.com/online-payments/capture) settings of your merchant account. Default value: **true**. * - * @param directCapture Indicates if direct (immediate) capture for PayPal is enabled. If set to - * **true**, this setting overrides the - * [capture](https://docs.adyen.com/online-payments/capture) settings of your merchant - * account. Default value: **true**. + * @param directCapture Indicates if direct (immediate) capture for PayPal is enabled. If set to **true**, this setting overrides the [capture](https://docs.adyen.com/online-payments/capture) settings of your merchant account. Default value: **true**. * @return the current {@code PayPalInfo} instance, allowing for method chaining */ public PayPalInfo directCapture(Boolean directCapture) { @@ -52,14 +58,8 @@ public PayPalInfo directCapture(Boolean directCapture) { } /** - * Indicates if direct (immediate) capture for PayPal is enabled. If set to **true**, this setting - * overrides the [capture](https://docs.adyen.com/online-payments/capture) settings of your - * merchant account. Default value: **true**. - * - * @return directCapture Indicates if direct (immediate) capture for PayPal is enabled. If set to - * **true**, this setting overrides the - * [capture](https://docs.adyen.com/online-payments/capture) settings of your merchant - * account. Default value: **true**. + * Indicates if direct (immediate) capture for PayPal is enabled. If set to **true**, this setting overrides the [capture](https://docs.adyen.com/online-payments/capture) settings of your merchant account. Default value: **true**. + * @return directCapture Indicates if direct (immediate) capture for PayPal is enabled. If set to **true**, this setting overrides the [capture](https://docs.adyen.com/online-payments/capture) settings of your merchant account. Default value: **true**. */ @JsonProperty(JSON_PROPERTY_DIRECT_CAPTURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,14 +68,9 @@ public Boolean getDirectCapture() { } /** - * Indicates if direct (immediate) capture for PayPal is enabled. If set to **true**, this setting - * overrides the [capture](https://docs.adyen.com/online-payments/capture) settings of your - * merchant account. Default value: **true**. + * Indicates if direct (immediate) capture for PayPal is enabled. If set to **true**, this setting overrides the [capture](https://docs.adyen.com/online-payments/capture) settings of your merchant account. Default value: **true**. * - * @param directCapture Indicates if direct (immediate) capture for PayPal is enabled. If set to - * **true**, this setting overrides the - * [capture](https://docs.adyen.com/online-payments/capture) settings of your merchant - * account. Default value: **true**. + * @param directCapture Indicates if direct (immediate) capture for PayPal is enabled. If set to **true**, this setting overrides the [capture](https://docs.adyen.com/online-payments/capture) settings of your merchant account. Default value: **true**. */ @JsonProperty(JSON_PROPERTY_DIRECT_CAPTURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -86,8 +81,7 @@ public void setDirectCapture(Boolean directCapture) { /** * PayPal Merchant ID. Character length and limitations: 13 single-byte alphanumeric characters. * - * @param payerId PayPal Merchant ID. Character length and limitations: 13 single-byte - * alphanumeric characters. + * @param payerId PayPal Merchant ID. Character length and limitations: 13 single-byte alphanumeric characters. * @return the current {@code PayPalInfo} instance, allowing for method chaining */ public PayPalInfo payerId(String payerId) { @@ -97,9 +91,7 @@ public PayPalInfo payerId(String payerId) { /** * PayPal Merchant ID. Character length and limitations: 13 single-byte alphanumeric characters. - * - * @return payerId PayPal Merchant ID. Character length and limitations: 13 single-byte - * alphanumeric characters. + * @return payerId PayPal Merchant ID. Character length and limitations: 13 single-byte alphanumeric characters. */ @JsonProperty(JSON_PROPERTY_PAYER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,8 +102,7 @@ public String getPayerId() { /** * PayPal Merchant ID. Character length and limitations: 13 single-byte alphanumeric characters. * - * @param payerId PayPal Merchant ID. Character length and limitations: 13 single-byte - * alphanumeric characters. + * @param payerId PayPal Merchant ID. Character length and limitations: 13 single-byte alphanumeric characters. */ @JsonProperty(JSON_PROPERTY_PAYER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,7 +123,6 @@ public PayPalInfo subject(String subject) { /** * Your business email address. - * * @return subject Your business email address. */ @JsonProperty(JSON_PROPERTY_SUBJECT) @@ -152,7 +142,9 @@ public void setSubject(String subject) { this.subject = subject; } - /** Return true if this PayPalInfo object is equal to o. */ + /** + * Return true if this PayPalInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -162,9 +154,9 @@ public boolean equals(Object o) { return false; } PayPalInfo payPalInfo = (PayPalInfo) o; - return Objects.equals(this.directCapture, payPalInfo.directCapture) - && Objects.equals(this.payerId, payPalInfo.payerId) - && Objects.equals(this.subject, payPalInfo.subject); + return Objects.equals(this.directCapture, payPalInfo.directCapture) && + Objects.equals(this.payerId, payPalInfo.payerId) && + Objects.equals(this.subject, payPalInfo.subject); } @Override @@ -184,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -193,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PayPalInfo given an JSON string * * @param jsonString JSON string @@ -203,12 +196,11 @@ private String toIndentedString(Object o) { public static PayPalInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayPalInfo.class); } - - /** - * Convert an instance of PayPalInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PayPalInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/PayToInfo.java b/src/main/java/com/adyen/model/management/PayToInfo.java index 40d04c272..2745d26ff 100644 --- a/src/main/java/com/adyen/model/management/PayToInfo.java +++ b/src/main/java/com/adyen/model/management/PayToInfo.java @@ -2,23 +2,36 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** PayToInfo */ -@JsonPropertyOrder({PayToInfo.JSON_PROPERTY_MERCHANT_NAME, PayToInfo.JSON_PROPERTY_PAY_TO_PURPOSE}) + +/** + * PayToInfo + */ +@JsonPropertyOrder({ + PayToInfo.JSON_PROPERTY_MERCHANT_NAME, + PayToInfo.JSON_PROPERTY_PAY_TO_PURPOSE +}) + public class PayToInfo { public static final String JSON_PROPERTY_MERCHANT_NAME = "merchantName"; private String merchantName; @@ -26,7 +39,8 @@ public class PayToInfo { public static final String JSON_PROPERTY_PAY_TO_PURPOSE = "payToPurpose"; private String payToPurpose; - public PayToInfo() {} + public PayToInfo() { + } /** * Merchant name displayed to the shopper in the Agreements @@ -41,7 +55,6 @@ public PayToInfo merchantName(String merchantName) { /** * Merchant name displayed to the shopper in the Agreements - * * @return merchantName Merchant name displayed to the shopper in the Agreements */ @JsonProperty(JSON_PROPERTY_MERCHANT_NAME) @@ -62,13 +75,9 @@ public void setMerchantName(String merchantName) { } /** - * Represents the purpose of the Agreements created, it relates to the business type **Allowed - * values**: mortgage, utility, loan, gambling, retail, salary, personal, government, pension, - * tax, other + * Represents the purpose of the Agreements created, it relates to the business type **Allowed values**: mortgage, utility, loan, gambling, retail, salary, personal, government, pension, tax, other * - * @param payToPurpose Represents the purpose of the Agreements created, it relates to the - * business type **Allowed values**: mortgage, utility, loan, gambling, retail, salary, - * personal, government, pension, tax, other + * @param payToPurpose Represents the purpose of the Agreements created, it relates to the business type **Allowed values**: mortgage, utility, loan, gambling, retail, salary, personal, government, pension, tax, other * @return the current {@code PayToInfo} instance, allowing for method chaining */ public PayToInfo payToPurpose(String payToPurpose) { @@ -77,13 +86,8 @@ public PayToInfo payToPurpose(String payToPurpose) { } /** - * Represents the purpose of the Agreements created, it relates to the business type **Allowed - * values**: mortgage, utility, loan, gambling, retail, salary, personal, government, pension, - * tax, other - * - * @return payToPurpose Represents the purpose of the Agreements created, it relates to the - * business type **Allowed values**: mortgage, utility, loan, gambling, retail, salary, - * personal, government, pension, tax, other + * Represents the purpose of the Agreements created, it relates to the business type **Allowed values**: mortgage, utility, loan, gambling, retail, salary, personal, government, pension, tax, other + * @return payToPurpose Represents the purpose of the Agreements created, it relates to the business type **Allowed values**: mortgage, utility, loan, gambling, retail, salary, personal, government, pension, tax, other */ @JsonProperty(JSON_PROPERTY_PAY_TO_PURPOSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -92,13 +96,9 @@ public String getPayToPurpose() { } /** - * Represents the purpose of the Agreements created, it relates to the business type **Allowed - * values**: mortgage, utility, loan, gambling, retail, salary, personal, government, pension, - * tax, other + * Represents the purpose of the Agreements created, it relates to the business type **Allowed values**: mortgage, utility, loan, gambling, retail, salary, personal, government, pension, tax, other * - * @param payToPurpose Represents the purpose of the Agreements created, it relates to the - * business type **Allowed values**: mortgage, utility, loan, gambling, retail, salary, - * personal, government, pension, tax, other + * @param payToPurpose Represents the purpose of the Agreements created, it relates to the business type **Allowed values**: mortgage, utility, loan, gambling, retail, salary, personal, government, pension, tax, other */ @JsonProperty(JSON_PROPERTY_PAY_TO_PURPOSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,7 +106,9 @@ public void setPayToPurpose(String payToPurpose) { this.payToPurpose = payToPurpose; } - /** Return true if this PayToInfo object is equal to o. */ + /** + * Return true if this PayToInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -116,8 +118,8 @@ public boolean equals(Object o) { return false; } PayToInfo payToInfo = (PayToInfo) o; - return Objects.equals(this.merchantName, payToInfo.merchantName) - && Objects.equals(this.payToPurpose, payToInfo.payToPurpose); + return Objects.equals(this.merchantName, payToInfo.merchantName) && + Objects.equals(this.payToPurpose, payToInfo.payToPurpose); } @Override @@ -136,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PayToInfo given an JSON string * * @param jsonString JSON string @@ -155,12 +158,11 @@ private String toIndentedString(Object o) { public static PayToInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayToInfo.class); } - - /** - * Convert an instance of PayToInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PayToInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Payment.java b/src/main/java/com/adyen/model/management/Payment.java index 98af0953d..787064b27 100644 --- a/src/main/java/com/adyen/model/management/Payment.java +++ b/src/main/java/com/adyen/model/management/Payment.java @@ -2,45 +2,52 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** Payment */ +/** + * Payment + */ @JsonPropertyOrder({ Payment.JSON_PROPERTY_CONTACTLESS_CURRENCY, Payment.JSON_PROPERTY_HIDE_MINOR_UNITS_IN_CURRENCIES }) + public class Payment { public static final String JSON_PROPERTY_CONTACTLESS_CURRENCY = "contactlessCurrency"; private String contactlessCurrency; - public static final String JSON_PROPERTY_HIDE_MINOR_UNITS_IN_CURRENCIES = - "hideMinorUnitsInCurrencies"; + public static final String JSON_PROPERTY_HIDE_MINOR_UNITS_IN_CURRENCIES = "hideMinorUnitsInCurrencies"; private List hideMinorUnitsInCurrencies; - public Payment() {} + public Payment() { + } /** - * The default currency for contactless payments on the payment terminal, as the three-letter [ISO - * 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. + * The default currency for contactless payments on the payment terminal, as the three-letter [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. * - * @param contactlessCurrency The default currency for contactless payments on the payment - * terminal, as the three-letter [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency - * code. + * @param contactlessCurrency The default currency for contactless payments on the payment terminal, as the three-letter [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. * @return the current {@code Payment} instance, allowing for method chaining */ public Payment contactlessCurrency(String contactlessCurrency) { @@ -49,12 +56,8 @@ public Payment contactlessCurrency(String contactlessCurrency) { } /** - * The default currency for contactless payments on the payment terminal, as the three-letter [ISO - * 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. - * - * @return contactlessCurrency The default currency for contactless payments on the payment - * terminal, as the three-letter [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency - * code. + * The default currency for contactless payments on the payment terminal, as the three-letter [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. + * @return contactlessCurrency The default currency for contactless payments on the payment terminal, as the three-letter [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. */ @JsonProperty(JSON_PROPERTY_CONTACTLESS_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,12 +66,9 @@ public String getContactlessCurrency() { } /** - * The default currency for contactless payments on the payment terminal, as the three-letter [ISO - * 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. + * The default currency for contactless payments on the payment terminal, as the three-letter [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. * - * @param contactlessCurrency The default currency for contactless payments on the payment - * terminal, as the three-letter [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency - * code. + * @param contactlessCurrency The default currency for contactless payments on the payment terminal, as the three-letter [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. */ @JsonProperty(JSON_PROPERTY_CONTACTLESS_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -77,11 +77,9 @@ public void setContactlessCurrency(String contactlessCurrency) { } /** - * Hides the minor units for the listed [ISO currency - * codes](https://en.wikipedia.org/wiki/ISO_4217). + * Hides the minor units for the listed [ISO currency codes](https://en.wikipedia.org/wiki/ISO_4217). * - * @param hideMinorUnitsInCurrencies Hides the minor units for the listed [ISO currency - * codes](https://en.wikipedia.org/wiki/ISO_4217). + * @param hideMinorUnitsInCurrencies Hides the minor units for the listed [ISO currency codes](https://en.wikipedia.org/wiki/ISO_4217). * @return the current {@code Payment} instance, allowing for method chaining */ public Payment hideMinorUnitsInCurrencies(List hideMinorUnitsInCurrencies) { @@ -98,11 +96,8 @@ public Payment addHideMinorUnitsInCurrenciesItem(String hideMinorUnitsInCurrenci } /** - * Hides the minor units for the listed [ISO currency - * codes](https://en.wikipedia.org/wiki/ISO_4217). - * - * @return hideMinorUnitsInCurrencies Hides the minor units for the listed [ISO currency - * codes](https://en.wikipedia.org/wiki/ISO_4217). + * Hides the minor units for the listed [ISO currency codes](https://en.wikipedia.org/wiki/ISO_4217). + * @return hideMinorUnitsInCurrencies Hides the minor units for the listed [ISO currency codes](https://en.wikipedia.org/wiki/ISO_4217). */ @JsonProperty(JSON_PROPERTY_HIDE_MINOR_UNITS_IN_CURRENCIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,11 +106,9 @@ public List getHideMinorUnitsInCurrencies() { } /** - * Hides the minor units for the listed [ISO currency - * codes](https://en.wikipedia.org/wiki/ISO_4217). + * Hides the minor units for the listed [ISO currency codes](https://en.wikipedia.org/wiki/ISO_4217). * - * @param hideMinorUnitsInCurrencies Hides the minor units for the listed [ISO currency - * codes](https://en.wikipedia.org/wiki/ISO_4217). + * @param hideMinorUnitsInCurrencies Hides the minor units for the listed [ISO currency codes](https://en.wikipedia.org/wiki/ISO_4217). */ @JsonProperty(JSON_PROPERTY_HIDE_MINOR_UNITS_IN_CURRENCIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,7 +116,9 @@ public void setHideMinorUnitsInCurrencies(List hideMinorUnitsInCurrencie this.hideMinorUnitsInCurrencies = hideMinorUnitsInCurrencies; } - /** Return true if this Payment object is equal to o. */ + /** + * Return true if this Payment object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -133,8 +128,8 @@ public boolean equals(Object o) { return false; } Payment payment = (Payment) o; - return Objects.equals(this.contactlessCurrency, payment.contactlessCurrency) - && Objects.equals(this.hideMinorUnitsInCurrencies, payment.hideMinorUnitsInCurrencies); + return Objects.equals(this.contactlessCurrency, payment.contactlessCurrency) && + Objects.equals(this.hideMinorUnitsInCurrencies, payment.hideMinorUnitsInCurrencies); } @Override @@ -146,18 +141,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Payment {\n"); - sb.append(" contactlessCurrency: ") - .append(toIndentedString(contactlessCurrency)) - .append("\n"); - sb.append(" hideMinorUnitsInCurrencies: ") - .append(toIndentedString(hideMinorUnitsInCurrencies)) - .append("\n"); + sb.append(" contactlessCurrency: ").append(toIndentedString(contactlessCurrency)).append("\n"); + sb.append(" hideMinorUnitsInCurrencies: ").append(toIndentedString(hideMinorUnitsInCurrencies)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -166,7 +158,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Payment given an JSON string * * @param jsonString JSON string @@ -176,12 +168,11 @@ private String toIndentedString(Object o) { public static Payment fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Payment.class); } - - /** - * Convert an instance of Payment to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Payment to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/PaymentMethod.java b/src/main/java/com/adyen/model/management/PaymentMethod.java index 81968c2a0..425b49cf4 100644 --- a/src/main/java/com/adyen/model/management/PaymentMethod.java +++ b/src/main/java/com/adyen/model/management/PaymentMethod.java @@ -2,28 +2,64 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.AccelInfo; +import com.adyen.model.management.AffirmInfo; +import com.adyen.model.management.AfterpayTouchInfo; +import com.adyen.model.management.AlipayPlusInfo; +import com.adyen.model.management.AmexInfo; +import com.adyen.model.management.ApplePayInfo; +import com.adyen.model.management.BcmcInfo; +import com.adyen.model.management.CartesBancairesInfo; +import com.adyen.model.management.ClearpayInfo; +import com.adyen.model.management.DinersInfo; +import com.adyen.model.management.GenericPmWithTdiInfo; +import com.adyen.model.management.GooglePayInfo; +import com.adyen.model.management.JCBInfo; +import com.adyen.model.management.KlarnaInfo; +import com.adyen.model.management.MealVoucherFRInfo; +import com.adyen.model.management.NyceInfo; +import com.adyen.model.management.PayByBankPlaidInfo; +import com.adyen.model.management.PayMeInfo; +import com.adyen.model.management.PayPalInfo; +import com.adyen.model.management.PayToInfo; +import com.adyen.model.management.PulseInfo; +import com.adyen.model.management.SepaDirectDebitInfo; +import com.adyen.model.management.SodexoInfo; +import com.adyen.model.management.SofortInfo; +import com.adyen.model.management.StarInfo; +import com.adyen.model.management.SwishInfo; +import com.adyen.model.management.TicketInfo; +import com.adyen.model.management.TwintInfo; +import com.adyen.model.management.VippsInfo; +import com.adyen.model.management.WeChatPayInfo; +import com.adyen.model.management.WeChatPayPosInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PaymentMethod */ +/** + * PaymentMethod + */ @JsonPropertyOrder({ PaymentMethod.JSON_PROPERTY_ACCEL, PaymentMethod.JSON_PROPERTY_AFFIRM, @@ -79,6 +115,7 @@ PaymentMethod.JSON_PROPERTY_WECHATPAY, PaymentMethod.JSON_PROPERTY_WECHATPAY_POS }) + public class PaymentMethod { public static final String JSON_PROPERTY_ACCEL = "accel"; private AccelInfo accel; @@ -228,6 +265,7 @@ public class PaymentMethod { * Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** */ public enum VerificationStatusEnum { + VALID(String.valueOf("valid")), PENDING(String.valueOf("pending")), @@ -241,7 +279,7 @@ public enum VerificationStatusEnum { private String value; VerificationStatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -262,11 +300,7 @@ public static VerificationStatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "VerificationStatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(VerificationStatusEnum.values())); + LOG.warning("VerificationStatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(VerificationStatusEnum.values())); return null; } } @@ -286,12 +320,13 @@ public static VerificationStatusEnum fromValue(String value) { public static final String JSON_PROPERTY_WECHATPAY_POS = "wechatpay_pos"; private WeChatPayPosInfo wechatpayPos; - public PaymentMethod() {} + public PaymentMethod() { + } /** * accel * - * @param accel + * @param accel * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod accel(AccelInfo accel) { @@ -301,8 +336,7 @@ public PaymentMethod accel(AccelInfo accel) { /** * Get accel - * - * @return accel + * @return accel */ @JsonProperty(JSON_PROPERTY_ACCEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -313,7 +347,7 @@ public AccelInfo getAccel() { /** * accel * - * @param accel + * @param accel */ @JsonProperty(JSON_PROPERTY_ACCEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -324,7 +358,7 @@ public void setAccel(AccelInfo accel) { /** * affirm * - * @param affirm + * @param affirm * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod affirm(AffirmInfo affirm) { @@ -334,8 +368,7 @@ public PaymentMethod affirm(AffirmInfo affirm) { /** * Get affirm - * - * @return affirm + * @return affirm */ @JsonProperty(JSON_PROPERTY_AFFIRM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -346,7 +379,7 @@ public AffirmInfo getAffirm() { /** * affirm * - * @param affirm + * @param affirm */ @JsonProperty(JSON_PROPERTY_AFFIRM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -357,7 +390,7 @@ public void setAffirm(AffirmInfo affirm) { /** * afterpayTouch * - * @param afterpayTouch + * @param afterpayTouch * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod afterpayTouch(AfterpayTouchInfo afterpayTouch) { @@ -367,8 +400,7 @@ public PaymentMethod afterpayTouch(AfterpayTouchInfo afterpayTouch) { /** * Get afterpayTouch - * - * @return afterpayTouch + * @return afterpayTouch */ @JsonProperty(JSON_PROPERTY_AFTERPAY_TOUCH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -379,7 +411,7 @@ public AfterpayTouchInfo getAfterpayTouch() { /** * afterpayTouch * - * @param afterpayTouch + * @param afterpayTouch */ @JsonProperty(JSON_PROPERTY_AFTERPAY_TOUCH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -390,7 +422,7 @@ public void setAfterpayTouch(AfterpayTouchInfo afterpayTouch) { /** * alipayPlus * - * @param alipayPlus + * @param alipayPlus * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod alipayPlus(AlipayPlusInfo alipayPlus) { @@ -400,8 +432,7 @@ public PaymentMethod alipayPlus(AlipayPlusInfo alipayPlus) { /** * Get alipayPlus - * - * @return alipayPlus + * @return alipayPlus */ @JsonProperty(JSON_PROPERTY_ALIPAY_PLUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -412,7 +443,7 @@ public AlipayPlusInfo getAlipayPlus() { /** * alipayPlus * - * @param alipayPlus + * @param alipayPlus */ @JsonProperty(JSON_PROPERTY_ALIPAY_PLUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -421,11 +452,9 @@ public void setAlipayPlus(AlipayPlusInfo alipayPlus) { } /** - * Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after - * screening your merchant account. + * Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account. * - * @param allowed Indicates whether receiving payments is allowed. This value is set to **true** - * by Adyen after screening your merchant account. + * @param allowed Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account. * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod allowed(Boolean allowed) { @@ -434,11 +463,8 @@ public PaymentMethod allowed(Boolean allowed) { } /** - * Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after - * screening your merchant account. - * - * @return allowed Indicates whether receiving payments is allowed. This value is set to **true** - * by Adyen after screening your merchant account. + * Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account. + * @return allowed Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account. */ @JsonProperty(JSON_PROPERTY_ALLOWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -447,11 +473,9 @@ public Boolean getAllowed() { } /** - * Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after - * screening your merchant account. + * Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account. * - * @param allowed Indicates whether receiving payments is allowed. This value is set to **true** - * by Adyen after screening your merchant account. + * @param allowed Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account. */ @JsonProperty(JSON_PROPERTY_ALLOWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -462,7 +486,7 @@ public void setAllowed(Boolean allowed) { /** * amex * - * @param amex + * @param amex * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod amex(AmexInfo amex) { @@ -472,8 +496,7 @@ public PaymentMethod amex(AmexInfo amex) { /** * Get amex - * - * @return amex + * @return amex */ @JsonProperty(JSON_PROPERTY_AMEX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -484,7 +507,7 @@ public AmexInfo getAmex() { /** * amex * - * @param amex + * @param amex */ @JsonProperty(JSON_PROPERTY_AMEX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -495,7 +518,7 @@ public void setAmex(AmexInfo amex) { /** * applePay * - * @param applePay + * @param applePay * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod applePay(ApplePayInfo applePay) { @@ -505,8 +528,7 @@ public PaymentMethod applePay(ApplePayInfo applePay) { /** * Get applePay - * - * @return applePay + * @return applePay */ @JsonProperty(JSON_PROPERTY_APPLE_PAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -517,7 +539,7 @@ public ApplePayInfo getApplePay() { /** * applePay * - * @param applePay + * @param applePay */ @JsonProperty(JSON_PROPERTY_APPLE_PAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -528,7 +550,7 @@ public void setApplePay(ApplePayInfo applePay) { /** * bcmc * - * @param bcmc + * @param bcmc * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod bcmc(BcmcInfo bcmc) { @@ -538,8 +560,7 @@ public PaymentMethod bcmc(BcmcInfo bcmc) { /** * Get bcmc - * - * @return bcmc + * @return bcmc */ @JsonProperty(JSON_PROPERTY_BCMC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -550,7 +571,7 @@ public BcmcInfo getBcmc() { /** * bcmc * - * @param bcmc + * @param bcmc */ @JsonProperty(JSON_PROPERTY_BCMC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -559,11 +580,9 @@ public void setBcmc(BcmcInfo bcmc) { } /** - * The unique identifier of the business line. Required if you are a [platform - * model](https://docs.adyen.com/platforms). + * The unique identifier of the business line. Required if you are a [platform model](https://docs.adyen.com/platforms). * - * @param businessLineId The unique identifier of the business line. Required if you are a - * [platform model](https://docs.adyen.com/platforms). + * @param businessLineId The unique identifier of the business line. Required if you are a [platform model](https://docs.adyen.com/platforms). * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod businessLineId(String businessLineId) { @@ -572,11 +591,8 @@ public PaymentMethod businessLineId(String businessLineId) { } /** - * The unique identifier of the business line. Required if you are a [platform - * model](https://docs.adyen.com/platforms). - * - * @return businessLineId The unique identifier of the business line. Required if you are a - * [platform model](https://docs.adyen.com/platforms). + * The unique identifier of the business line. Required if you are a [platform model](https://docs.adyen.com/platforms). + * @return businessLineId The unique identifier of the business line. Required if you are a [platform model](https://docs.adyen.com/platforms). */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -585,11 +601,9 @@ public String getBusinessLineId() { } /** - * The unique identifier of the business line. Required if you are a [platform - * model](https://docs.adyen.com/platforms). + * The unique identifier of the business line. Required if you are a [platform model](https://docs.adyen.com/platforms). * - * @param businessLineId The unique identifier of the business line. Required if you are a - * [platform model](https://docs.adyen.com/platforms). + * @param businessLineId The unique identifier of the business line. Required if you are a [platform model](https://docs.adyen.com/platforms). */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -600,7 +614,7 @@ public void setBusinessLineId(String businessLineId) { /** * cartesBancaires * - * @param cartesBancaires + * @param cartesBancaires * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod cartesBancaires(CartesBancairesInfo cartesBancaires) { @@ -610,8 +624,7 @@ public PaymentMethod cartesBancaires(CartesBancairesInfo cartesBancaires) { /** * Get cartesBancaires - * - * @return cartesBancaires + * @return cartesBancaires */ @JsonProperty(JSON_PROPERTY_CARTES_BANCAIRES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -622,7 +635,7 @@ public CartesBancairesInfo getCartesBancaires() { /** * cartesBancaires * - * @param cartesBancaires + * @param cartesBancaires */ @JsonProperty(JSON_PROPERTY_CARTES_BANCAIRES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -633,7 +646,7 @@ public void setCartesBancaires(CartesBancairesInfo cartesBancaires) { /** * clearpay * - * @param clearpay + * @param clearpay * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod clearpay(ClearpayInfo clearpay) { @@ -643,8 +656,7 @@ public PaymentMethod clearpay(ClearpayInfo clearpay) { /** * Get clearpay - * - * @return clearpay + * @return clearpay */ @JsonProperty(JSON_PROPERTY_CLEARPAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -655,7 +667,7 @@ public ClearpayInfo getClearpay() { /** * clearpay * - * @param clearpay + * @param clearpay */ @JsonProperty(JSON_PROPERTY_CLEARPAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -664,11 +676,9 @@ public void setClearpay(ClearpayInfo clearpay) { } /** - * The list of countries where a payment method is available. By default, all countries supported - * by the payment method. + * The list of countries where a payment method is available. By default, all countries supported by the payment method. * - * @param countries The list of countries where a payment method is available. By default, all - * countries supported by the payment method. + * @param countries The list of countries where a payment method is available. By default, all countries supported by the payment method. * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod countries(List countries) { @@ -685,11 +695,8 @@ public PaymentMethod addCountriesItem(String countriesItem) { } /** - * The list of countries where a payment method is available. By default, all countries supported - * by the payment method. - * - * @return countries The list of countries where a payment method is available. By default, all - * countries supported by the payment method. + * The list of countries where a payment method is available. By default, all countries supported by the payment method. + * @return countries The list of countries where a payment method is available. By default, all countries supported by the payment method. */ @JsonProperty(JSON_PROPERTY_COUNTRIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -698,11 +705,9 @@ public List getCountries() { } /** - * The list of countries where a payment method is available. By default, all countries supported - * by the payment method. + * The list of countries where a payment method is available. By default, all countries supported by the payment method. * - * @param countries The list of countries where a payment method is available. By default, all - * countries supported by the payment method. + * @param countries The list of countries where a payment method is available. By default, all countries supported by the payment method. */ @JsonProperty(JSON_PROPERTY_COUNTRIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -713,7 +718,7 @@ public void setCountries(List countries) { /** * cup * - * @param cup + * @param cup * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod cup(GenericPmWithTdiInfo cup) { @@ -723,8 +728,7 @@ public PaymentMethod cup(GenericPmWithTdiInfo cup) { /** * Get cup - * - * @return cup + * @return cup */ @JsonProperty(JSON_PROPERTY_CUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -735,7 +739,7 @@ public GenericPmWithTdiInfo getCup() { /** * cup * - * @param cup + * @param cup */ @JsonProperty(JSON_PROPERTY_CUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -744,11 +748,9 @@ public void setCup(GenericPmWithTdiInfo cup) { } /** - * The list of currencies that a payment method supports. By default, all currencies supported by - * the payment method. + * The list of currencies that a payment method supports. By default, all currencies supported by the payment method. * - * @param currencies The list of currencies that a payment method supports. By default, all - * currencies supported by the payment method. + * @param currencies The list of currencies that a payment method supports. By default, all currencies supported by the payment method. * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod currencies(List currencies) { @@ -765,11 +767,8 @@ public PaymentMethod addCurrenciesItem(String currenciesItem) { } /** - * The list of currencies that a payment method supports. By default, all currencies supported by - * the payment method. - * - * @return currencies The list of currencies that a payment method supports. By default, all - * currencies supported by the payment method. + * The list of currencies that a payment method supports. By default, all currencies supported by the payment method. + * @return currencies The list of currencies that a payment method supports. By default, all currencies supported by the payment method. */ @JsonProperty(JSON_PROPERTY_CURRENCIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -778,11 +777,9 @@ public List getCurrencies() { } /** - * The list of currencies that a payment method supports. By default, all currencies supported by - * the payment method. + * The list of currencies that a payment method supports. By default, all currencies supported by the payment method. * - * @param currencies The list of currencies that a payment method supports. By default, all - * currencies supported by the payment method. + * @param currencies The list of currencies that a payment method supports. By default, all currencies supported by the payment method. */ @JsonProperty(JSON_PROPERTY_CURRENCIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -793,8 +790,7 @@ public void setCurrencies(List currencies) { /** * The list of custom routing flags to route payment to the intended acquirer. * - * @param customRoutingFlags The list of custom routing flags to route payment to the intended - * acquirer. + * @param customRoutingFlags The list of custom routing flags to route payment to the intended acquirer. * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod customRoutingFlags(List customRoutingFlags) { @@ -812,9 +808,7 @@ public PaymentMethod addCustomRoutingFlagsItem(String customRoutingFlagsItem) { /** * The list of custom routing flags to route payment to the intended acquirer. - * - * @return customRoutingFlags The list of custom routing flags to route payment to the intended - * acquirer. + * @return customRoutingFlags The list of custom routing flags to route payment to the intended acquirer. */ @JsonProperty(JSON_PROPERTY_CUSTOM_ROUTING_FLAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -825,8 +819,7 @@ public List getCustomRoutingFlags() { /** * The list of custom routing flags to route payment to the intended acquirer. * - * @param customRoutingFlags The list of custom routing flags to route payment to the intended - * acquirer. + * @param customRoutingFlags The list of custom routing flags to route payment to the intended acquirer. */ @JsonProperty(JSON_PROPERTY_CUSTOM_ROUTING_FLAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -837,7 +830,7 @@ public void setCustomRoutingFlags(List customRoutingFlags) { /** * diners * - * @param diners + * @param diners * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod diners(DinersInfo diners) { @@ -847,8 +840,7 @@ public PaymentMethod diners(DinersInfo diners) { /** * Get diners - * - * @return diners + * @return diners */ @JsonProperty(JSON_PROPERTY_DINERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -859,7 +851,7 @@ public DinersInfo getDiners() { /** * diners * - * @param diners + * @param diners */ @JsonProperty(JSON_PROPERTY_DINERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -870,7 +862,7 @@ public void setDiners(DinersInfo diners) { /** * discover * - * @param discover + * @param discover * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod discover(GenericPmWithTdiInfo discover) { @@ -880,8 +872,7 @@ public PaymentMethod discover(GenericPmWithTdiInfo discover) { /** * Get discover - * - * @return discover + * @return discover */ @JsonProperty(JSON_PROPERTY_DISCOVER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -892,7 +883,7 @@ public GenericPmWithTdiInfo getDiscover() { /** * discover * - * @param discover + * @param discover */ @JsonProperty(JSON_PROPERTY_DISCOVER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -903,7 +894,7 @@ public void setDiscover(GenericPmWithTdiInfo discover) { /** * eftDirectdebitCA * - * @param eftDirectdebitCA + * @param eftDirectdebitCA * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod eftDirectdebitCA(GenericPmWithTdiInfo eftDirectdebitCA) { @@ -913,8 +904,7 @@ public PaymentMethod eftDirectdebitCA(GenericPmWithTdiInfo eftDirectdebitCA) { /** * Get eftDirectdebitCA - * - * @return eftDirectdebitCA + * @return eftDirectdebitCA */ @JsonProperty(JSON_PROPERTY_EFT_DIRECTDEBIT_C_A) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -925,7 +915,7 @@ public GenericPmWithTdiInfo getEftDirectdebitCA() { /** * eftDirectdebitCA * - * @param eftDirectdebitCA + * @param eftDirectdebitCA */ @JsonProperty(JSON_PROPERTY_EFT_DIRECTDEBIT_C_A) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -936,7 +926,7 @@ public void setEftDirectdebitCA(GenericPmWithTdiInfo eftDirectdebitCA) { /** * eftposAustralia * - * @param eftposAustralia + * @param eftposAustralia * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod eftposAustralia(GenericPmWithTdiInfo eftposAustralia) { @@ -946,8 +936,7 @@ public PaymentMethod eftposAustralia(GenericPmWithTdiInfo eftposAustralia) { /** * Get eftposAustralia - * - * @return eftposAustralia + * @return eftposAustralia */ @JsonProperty(JSON_PROPERTY_EFTPOS_AUSTRALIA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -958,7 +947,7 @@ public GenericPmWithTdiInfo getEftposAustralia() { /** * eftposAustralia * - * @param eftposAustralia + * @param eftposAustralia */ @JsonProperty(JSON_PROPERTY_EFTPOS_AUSTRALIA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -969,8 +958,7 @@ public void setEftposAustralia(GenericPmWithTdiInfo eftposAustralia) { /** * Indicates whether the payment method is enabled (**true**) or disabled (**false**). * - * @param enabled Indicates whether the payment method is enabled (**true**) or disabled - * (**false**). + * @param enabled Indicates whether the payment method is enabled (**true**) or disabled (**false**). * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod enabled(Boolean enabled) { @@ -980,9 +968,7 @@ public PaymentMethod enabled(Boolean enabled) { /** * Indicates whether the payment method is enabled (**true**) or disabled (**false**). - * - * @return enabled Indicates whether the payment method is enabled (**true**) or disabled - * (**false**). + * @return enabled Indicates whether the payment method is enabled (**true**) or disabled (**false**). */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -993,8 +979,7 @@ public Boolean getEnabled() { /** * Indicates whether the payment method is enabled (**true**) or disabled (**false**). * - * @param enabled Indicates whether the payment method is enabled (**true**) or disabled - * (**false**). + * @param enabled Indicates whether the payment method is enabled (**true**) or disabled (**false**). */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1005,7 +990,7 @@ public void setEnabled(Boolean enabled) { /** * girocard * - * @param girocard + * @param girocard * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod girocard(GenericPmWithTdiInfo girocard) { @@ -1015,8 +1000,7 @@ public PaymentMethod girocard(GenericPmWithTdiInfo girocard) { /** * Get girocard - * - * @return girocard + * @return girocard */ @JsonProperty(JSON_PROPERTY_GIROCARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1027,7 +1011,7 @@ public GenericPmWithTdiInfo getGirocard() { /** * girocard * - * @param girocard + * @param girocard */ @JsonProperty(JSON_PROPERTY_GIROCARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1038,7 +1022,7 @@ public void setGirocard(GenericPmWithTdiInfo girocard) { /** * googlePay * - * @param googlePay + * @param googlePay * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod googlePay(GooglePayInfo googlePay) { @@ -1048,8 +1032,7 @@ public PaymentMethod googlePay(GooglePayInfo googlePay) { /** * Get googlePay - * - * @return googlePay + * @return googlePay */ @JsonProperty(JSON_PROPERTY_GOOGLE_PAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1060,7 +1043,7 @@ public GooglePayInfo getGooglePay() { /** * googlePay * - * @param googlePay + * @param googlePay */ @JsonProperty(JSON_PROPERTY_GOOGLE_PAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1081,7 +1064,6 @@ public PaymentMethod id(String id) { /** * The identifier of the resource. - * * @return id The identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -1104,7 +1086,7 @@ public void setId(String id) { /** * ideal * - * @param ideal + * @param ideal * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod ideal(GenericPmWithTdiInfo ideal) { @@ -1114,8 +1096,7 @@ public PaymentMethod ideal(GenericPmWithTdiInfo ideal) { /** * Get ideal - * - * @return ideal + * @return ideal */ @JsonProperty(JSON_PROPERTY_IDEAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1126,7 +1107,7 @@ public GenericPmWithTdiInfo getIdeal() { /** * ideal * - * @param ideal + * @param ideal */ @JsonProperty(JSON_PROPERTY_IDEAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1137,7 +1118,7 @@ public void setIdeal(GenericPmWithTdiInfo ideal) { /** * interacCard * - * @param interacCard + * @param interacCard * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod interacCard(GenericPmWithTdiInfo interacCard) { @@ -1147,8 +1128,7 @@ public PaymentMethod interacCard(GenericPmWithTdiInfo interacCard) { /** * Get interacCard - * - * @return interacCard + * @return interacCard */ @JsonProperty(JSON_PROPERTY_INTERAC_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1159,7 +1139,7 @@ public GenericPmWithTdiInfo getInteracCard() { /** * interacCard * - * @param interacCard + * @param interacCard */ @JsonProperty(JSON_PROPERTY_INTERAC_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1170,7 +1150,7 @@ public void setInteracCard(GenericPmWithTdiInfo interacCard) { /** * jcb * - * @param jcb + * @param jcb * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod jcb(JCBInfo jcb) { @@ -1180,8 +1160,7 @@ public PaymentMethod jcb(JCBInfo jcb) { /** * Get jcb - * - * @return jcb + * @return jcb */ @JsonProperty(JSON_PROPERTY_JCB) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1192,7 +1171,7 @@ public JCBInfo getJcb() { /** * jcb * - * @param jcb + * @param jcb */ @JsonProperty(JSON_PROPERTY_JCB) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1203,7 +1182,7 @@ public void setJcb(JCBInfo jcb) { /** * klarna * - * @param klarna + * @param klarna * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod klarna(KlarnaInfo klarna) { @@ -1213,8 +1192,7 @@ public PaymentMethod klarna(KlarnaInfo klarna) { /** * Get klarna - * - * @return klarna + * @return klarna */ @JsonProperty(JSON_PROPERTY_KLARNA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1225,7 +1203,7 @@ public KlarnaInfo getKlarna() { /** * klarna * - * @param klarna + * @param klarna */ @JsonProperty(JSON_PROPERTY_KLARNA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1236,7 +1214,7 @@ public void setKlarna(KlarnaInfo klarna) { /** * maestro * - * @param maestro + * @param maestro * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod maestro(GenericPmWithTdiInfo maestro) { @@ -1246,8 +1224,7 @@ public PaymentMethod maestro(GenericPmWithTdiInfo maestro) { /** * Get maestro - * - * @return maestro + * @return maestro */ @JsonProperty(JSON_PROPERTY_MAESTRO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1258,7 +1235,7 @@ public GenericPmWithTdiInfo getMaestro() { /** * maestro * - * @param maestro + * @param maestro */ @JsonProperty(JSON_PROPERTY_MAESTRO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1269,7 +1246,7 @@ public void setMaestro(GenericPmWithTdiInfo maestro) { /** * maestroUsa * - * @param maestroUsa + * @param maestroUsa * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod maestroUsa(GenericPmWithTdiInfo maestroUsa) { @@ -1279,8 +1256,7 @@ public PaymentMethod maestroUsa(GenericPmWithTdiInfo maestroUsa) { /** * Get maestroUsa - * - * @return maestroUsa + * @return maestroUsa */ @JsonProperty(JSON_PROPERTY_MAESTRO_USA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1291,7 +1267,7 @@ public GenericPmWithTdiInfo getMaestroUsa() { /** * maestroUsa * - * @param maestroUsa + * @param maestroUsa */ @JsonProperty(JSON_PROPERTY_MAESTRO_USA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1302,7 +1278,7 @@ public void setMaestroUsa(GenericPmWithTdiInfo maestroUsa) { /** * mc * - * @param mc + * @param mc * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod mc(GenericPmWithTdiInfo mc) { @@ -1312,8 +1288,7 @@ public PaymentMethod mc(GenericPmWithTdiInfo mc) { /** * Get mc - * - * @return mc + * @return mc */ @JsonProperty(JSON_PROPERTY_MC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1324,7 +1299,7 @@ public GenericPmWithTdiInfo getMc() { /** * mc * - * @param mc + * @param mc */ @JsonProperty(JSON_PROPERTY_MC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1335,7 +1310,7 @@ public void setMc(GenericPmWithTdiInfo mc) { /** * mealVoucherFR * - * @param mealVoucherFR + * @param mealVoucherFR * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod mealVoucherFR(MealVoucherFRInfo mealVoucherFR) { @@ -1345,8 +1320,7 @@ public PaymentMethod mealVoucherFR(MealVoucherFRInfo mealVoucherFR) { /** * Get mealVoucherFR - * - * @return mealVoucherFR + * @return mealVoucherFR */ @JsonProperty(JSON_PROPERTY_MEAL_VOUCHER_F_R) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1357,7 +1331,7 @@ public MealVoucherFRInfo getMealVoucherFR() { /** * mealVoucherFR * - * @param mealVoucherFR + * @param mealVoucherFR */ @JsonProperty(JSON_PROPERTY_MEAL_VOUCHER_F_R) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1368,7 +1342,7 @@ public void setMealVoucherFR(MealVoucherFRInfo mealVoucherFR) { /** * nyce * - * @param nyce + * @param nyce * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod nyce(NyceInfo nyce) { @@ -1378,8 +1352,7 @@ public PaymentMethod nyce(NyceInfo nyce) { /** * Get nyce - * - * @return nyce + * @return nyce */ @JsonProperty(JSON_PROPERTY_NYCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1390,7 +1363,7 @@ public NyceInfo getNyce() { /** * nyce * - * @param nyce + * @param nyce */ @JsonProperty(JSON_PROPERTY_NYCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1401,7 +1374,7 @@ public void setNyce(NyceInfo nyce) { /** * paybybankPlaid * - * @param paybybankPlaid + * @param paybybankPlaid * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod paybybankPlaid(PayByBankPlaidInfo paybybankPlaid) { @@ -1411,8 +1384,7 @@ public PaymentMethod paybybankPlaid(PayByBankPlaidInfo paybybankPlaid) { /** * Get paybybankPlaid - * - * @return paybybankPlaid + * @return paybybankPlaid */ @JsonProperty(JSON_PROPERTY_PAYBYBANK_PLAID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1423,7 +1395,7 @@ public PayByBankPlaidInfo getPaybybankPlaid() { /** * paybybankPlaid * - * @param paybybankPlaid + * @param paybybankPlaid */ @JsonProperty(JSON_PROPERTY_PAYBYBANK_PLAID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1434,7 +1406,7 @@ public void setPaybybankPlaid(PayByBankPlaidInfo paybybankPlaid) { /** * payme * - * @param payme + * @param payme * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod payme(PayMeInfo payme) { @@ -1444,8 +1416,7 @@ public PaymentMethod payme(PayMeInfo payme) { /** * Get payme - * - * @return payme + * @return payme */ @JsonProperty(JSON_PROPERTY_PAYME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1456,7 +1427,7 @@ public PayMeInfo getPayme() { /** * payme * - * @param payme + * @param payme */ @JsonProperty(JSON_PROPERTY_PAYME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1467,7 +1438,7 @@ public void setPayme(PayMeInfo payme) { /** * paypal * - * @param paypal + * @param paypal * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod paypal(PayPalInfo paypal) { @@ -1477,8 +1448,7 @@ public PaymentMethod paypal(PayPalInfo paypal) { /** * Get paypal - * - * @return paypal + * @return paypal */ @JsonProperty(JSON_PROPERTY_PAYPAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1489,7 +1459,7 @@ public PayPalInfo getPaypal() { /** * paypal * - * @param paypal + * @param paypal */ @JsonProperty(JSON_PROPERTY_PAYPAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1500,7 +1470,7 @@ public void setPaypal(PayPalInfo paypal) { /** * payto * - * @param payto + * @param payto * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod payto(PayToInfo payto) { @@ -1510,8 +1480,7 @@ public PaymentMethod payto(PayToInfo payto) { /** * Get payto - * - * @return payto + * @return payto */ @JsonProperty(JSON_PROPERTY_PAYTO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1522,7 +1491,7 @@ public PayToInfo getPayto() { /** * payto * - * @param payto + * @param payto */ @JsonProperty(JSON_PROPERTY_PAYTO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1533,7 +1502,7 @@ public void setPayto(PayToInfo payto) { /** * pulse * - * @param pulse + * @param pulse * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod pulse(PulseInfo pulse) { @@ -1543,8 +1512,7 @@ public PaymentMethod pulse(PulseInfo pulse) { /** * Get pulse - * - * @return pulse + * @return pulse */ @JsonProperty(JSON_PROPERTY_PULSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1555,7 +1523,7 @@ public PulseInfo getPulse() { /** * pulse * - * @param pulse + * @param pulse */ @JsonProperty(JSON_PROPERTY_PULSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1576,7 +1544,6 @@ public PaymentMethod reference(String reference) { /** * Your reference for the payment method. Supported characters a-z, A-Z, 0-9. - * * @return reference Your reference for the payment method. Supported characters a-z, A-Z, 0-9. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -1599,7 +1566,7 @@ public void setReference(String reference) { /** * sepadirectdebit * - * @param sepadirectdebit + * @param sepadirectdebit * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod sepadirectdebit(SepaDirectDebitInfo sepadirectdebit) { @@ -1609,8 +1576,7 @@ public PaymentMethod sepadirectdebit(SepaDirectDebitInfo sepadirectdebit) { /** * Get sepadirectdebit - * - * @return sepadirectdebit + * @return sepadirectdebit */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1621,7 +1587,7 @@ public SepaDirectDebitInfo getSepadirectdebit() { /** * sepadirectdebit * - * @param sepadirectdebit + * @param sepadirectdebit */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1642,7 +1608,6 @@ public PaymentMethod shopperInteraction(String shopperInteraction) { /** * The sales channel. - * * @return shopperInteraction The sales channel. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @@ -1665,7 +1630,7 @@ public void setShopperInteraction(String shopperInteraction) { /** * sodexo * - * @param sodexo + * @param sodexo * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod sodexo(SodexoInfo sodexo) { @@ -1675,8 +1640,7 @@ public PaymentMethod sodexo(SodexoInfo sodexo) { /** * Get sodexo - * - * @return sodexo + * @return sodexo */ @JsonProperty(JSON_PROPERTY_SODEXO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1687,7 +1651,7 @@ public SodexoInfo getSodexo() { /** * sodexo * - * @param sodexo + * @param sodexo */ @JsonProperty(JSON_PROPERTY_SODEXO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1698,7 +1662,7 @@ public void setSodexo(SodexoInfo sodexo) { /** * sofort * - * @param sofort + * @param sofort * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod sofort(SofortInfo sofort) { @@ -1708,8 +1672,7 @@ public PaymentMethod sofort(SofortInfo sofort) { /** * Get sofort - * - * @return sofort + * @return sofort */ @JsonProperty(JSON_PROPERTY_SOFORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1720,7 +1683,7 @@ public SofortInfo getSofort() { /** * sofort * - * @param sofort + * @param sofort */ @JsonProperty(JSON_PROPERTY_SOFORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1731,7 +1694,7 @@ public void setSofort(SofortInfo sofort) { /** * star * - * @param star + * @param star * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod star(StarInfo star) { @@ -1741,8 +1704,7 @@ public PaymentMethod star(StarInfo star) { /** * Get star - * - * @return star + * @return star */ @JsonProperty(JSON_PROPERTY_STAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1753,7 +1715,7 @@ public StarInfo getStar() { /** * star * - * @param star + * @param star */ @JsonProperty(JSON_PROPERTY_STAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1764,8 +1726,7 @@ public void setStar(StarInfo star) { /** * The unique identifier of the store for which to configure the payment method, if any. * - * @param storeIds The unique identifier of the store for which to configure the payment method, - * if any. + * @param storeIds The unique identifier of the store for which to configure the payment method, if any. * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod storeIds(List storeIds) { @@ -1783,9 +1744,7 @@ public PaymentMethod addStoreIdsItem(String storeIdsItem) { /** * The unique identifier of the store for which to configure the payment method, if any. - * - * @return storeIds The unique identifier of the store for which to configure the payment method, - * if any. + * @return storeIds The unique identifier of the store for which to configure the payment method, if any. */ @JsonProperty(JSON_PROPERTY_STORE_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1796,8 +1755,7 @@ public List getStoreIds() { /** * The unique identifier of the store for which to configure the payment method, if any. * - * @param storeIds The unique identifier of the store for which to configure the payment method, - * if any. + * @param storeIds The unique identifier of the store for which to configure the payment method, if any. */ @JsonProperty(JSON_PROPERTY_STORE_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1808,7 +1766,7 @@ public void setStoreIds(List storeIds) { /** * swish * - * @param swish + * @param swish * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod swish(SwishInfo swish) { @@ -1818,8 +1776,7 @@ public PaymentMethod swish(SwishInfo swish) { /** * Get swish - * - * @return swish + * @return swish */ @JsonProperty(JSON_PROPERTY_SWISH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1830,7 +1787,7 @@ public SwishInfo getSwish() { /** * swish * - * @param swish + * @param swish */ @JsonProperty(JSON_PROPERTY_SWISH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1841,7 +1798,7 @@ public void setSwish(SwishInfo swish) { /** * ticket * - * @param ticket + * @param ticket * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod ticket(TicketInfo ticket) { @@ -1851,8 +1808,7 @@ public PaymentMethod ticket(TicketInfo ticket) { /** * Get ticket - * - * @return ticket + * @return ticket */ @JsonProperty(JSON_PROPERTY_TICKET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1863,7 +1819,7 @@ public TicketInfo getTicket() { /** * ticket * - * @param ticket + * @param ticket */ @JsonProperty(JSON_PROPERTY_TICKET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1874,7 +1830,7 @@ public void setTicket(TicketInfo ticket) { /** * twint * - * @param twint + * @param twint * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod twint(TwintInfo twint) { @@ -1884,8 +1840,7 @@ public PaymentMethod twint(TwintInfo twint) { /** * Get twint - * - * @return twint + * @return twint */ @JsonProperty(JSON_PROPERTY_TWINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1896,7 +1851,7 @@ public TwintInfo getTwint() { /** * twint * - * @param twint + * @param twint */ @JsonProperty(JSON_PROPERTY_TWINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1905,11 +1860,9 @@ public void setTwint(TwintInfo twint) { } /** - * Payment method - * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). * - * @param type Payment method - * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * @param type Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod type(String type) { @@ -1918,11 +1871,8 @@ public PaymentMethod type(String type) { } /** - * Payment method - * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). - * - * @return type Payment method - * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * @return type Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1931,11 +1881,9 @@ public String getType() { } /** - * Payment method - * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). * - * @param type Payment method - * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * @param type Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1946,8 +1894,7 @@ public void setType(String type) { /** * Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** * - * @param verificationStatus Payment method status. Possible values: * **valid** * **pending** * - * **invalid** * **rejected** + * @param verificationStatus Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod verificationStatus(VerificationStatusEnum verificationStatus) { @@ -1957,9 +1904,7 @@ public PaymentMethod verificationStatus(VerificationStatusEnum verificationStatu /** * Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** - * - * @return verificationStatus Payment method status. Possible values: * **valid** * **pending** * - * **invalid** * **rejected** + * @return verificationStatus Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** */ @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1970,8 +1915,7 @@ public VerificationStatusEnum getVerificationStatus() { /** * Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** * - * @param verificationStatus Payment method status. Possible values: * **valid** * **pending** * - * **invalid** * **rejected** + * @param verificationStatus Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** */ @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1982,7 +1926,7 @@ public void setVerificationStatus(VerificationStatusEnum verificationStatus) { /** * vipps * - * @param vipps + * @param vipps * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod vipps(VippsInfo vipps) { @@ -1992,8 +1936,7 @@ public PaymentMethod vipps(VippsInfo vipps) { /** * Get vipps - * - * @return vipps + * @return vipps */ @JsonProperty(JSON_PROPERTY_VIPPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2004,7 +1947,7 @@ public VippsInfo getVipps() { /** * vipps * - * @param vipps + * @param vipps */ @JsonProperty(JSON_PROPERTY_VIPPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2015,7 +1958,7 @@ public void setVipps(VippsInfo vipps) { /** * visa * - * @param visa + * @param visa * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod visa(GenericPmWithTdiInfo visa) { @@ -2025,8 +1968,7 @@ public PaymentMethod visa(GenericPmWithTdiInfo visa) { /** * Get visa - * - * @return visa + * @return visa */ @JsonProperty(JSON_PROPERTY_VISA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2037,7 +1979,7 @@ public GenericPmWithTdiInfo getVisa() { /** * visa * - * @param visa + * @param visa */ @JsonProperty(JSON_PROPERTY_VISA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2048,7 +1990,7 @@ public void setVisa(GenericPmWithTdiInfo visa) { /** * wechatpay * - * @param wechatpay + * @param wechatpay * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod wechatpay(WeChatPayInfo wechatpay) { @@ -2058,8 +2000,7 @@ public PaymentMethod wechatpay(WeChatPayInfo wechatpay) { /** * Get wechatpay - * - * @return wechatpay + * @return wechatpay */ @JsonProperty(JSON_PROPERTY_WECHATPAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2070,7 +2011,7 @@ public WeChatPayInfo getWechatpay() { /** * wechatpay * - * @param wechatpay + * @param wechatpay */ @JsonProperty(JSON_PROPERTY_WECHATPAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2081,7 +2022,7 @@ public void setWechatpay(WeChatPayInfo wechatpay) { /** * wechatpayPos * - * @param wechatpayPos + * @param wechatpayPos * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod wechatpayPos(WeChatPayPosInfo wechatpayPos) { @@ -2091,8 +2032,7 @@ public PaymentMethod wechatpayPos(WeChatPayPosInfo wechatpayPos) { /** * Get wechatpayPos - * - * @return wechatpayPos + * @return wechatpayPos */ @JsonProperty(JSON_PROPERTY_WECHATPAY_POS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2103,7 +2043,7 @@ public WeChatPayPosInfo getWechatpayPos() { /** * wechatpayPos * - * @param wechatpayPos + * @param wechatpayPos */ @JsonProperty(JSON_PROPERTY_WECHATPAY_POS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2111,7 +2051,9 @@ public void setWechatpayPos(WeChatPayPosInfo wechatpayPos) { this.wechatpayPos = wechatpayPos; } - /** Return true if this PaymentMethod object is equal to o. */ + /** + * Return true if this PaymentMethod object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -2121,117 +2063,64 @@ public boolean equals(Object o) { return false; } PaymentMethod paymentMethod = (PaymentMethod) o; - return Objects.equals(this.accel, paymentMethod.accel) - && Objects.equals(this.affirm, paymentMethod.affirm) - && Objects.equals(this.afterpayTouch, paymentMethod.afterpayTouch) - && Objects.equals(this.alipayPlus, paymentMethod.alipayPlus) - && Objects.equals(this.allowed, paymentMethod.allowed) - && Objects.equals(this.amex, paymentMethod.amex) - && Objects.equals(this.applePay, paymentMethod.applePay) - && Objects.equals(this.bcmc, paymentMethod.bcmc) - && Objects.equals(this.businessLineId, paymentMethod.businessLineId) - && Objects.equals(this.cartesBancaires, paymentMethod.cartesBancaires) - && Objects.equals(this.clearpay, paymentMethod.clearpay) - && Objects.equals(this.countries, paymentMethod.countries) - && Objects.equals(this.cup, paymentMethod.cup) - && Objects.equals(this.currencies, paymentMethod.currencies) - && Objects.equals(this.customRoutingFlags, paymentMethod.customRoutingFlags) - && Objects.equals(this.diners, paymentMethod.diners) - && Objects.equals(this.discover, paymentMethod.discover) - && Objects.equals(this.eftDirectdebitCA, paymentMethod.eftDirectdebitCA) - && Objects.equals(this.eftposAustralia, paymentMethod.eftposAustralia) - && Objects.equals(this.enabled, paymentMethod.enabled) - && Objects.equals(this.girocard, paymentMethod.girocard) - && Objects.equals(this.googlePay, paymentMethod.googlePay) - && Objects.equals(this.id, paymentMethod.id) - && Objects.equals(this.ideal, paymentMethod.ideal) - && Objects.equals(this.interacCard, paymentMethod.interacCard) - && Objects.equals(this.jcb, paymentMethod.jcb) - && Objects.equals(this.klarna, paymentMethod.klarna) - && Objects.equals(this.maestro, paymentMethod.maestro) - && Objects.equals(this.maestroUsa, paymentMethod.maestroUsa) - && Objects.equals(this.mc, paymentMethod.mc) - && Objects.equals(this.mealVoucherFR, paymentMethod.mealVoucherFR) - && Objects.equals(this.nyce, paymentMethod.nyce) - && Objects.equals(this.paybybankPlaid, paymentMethod.paybybankPlaid) - && Objects.equals(this.payme, paymentMethod.payme) - && Objects.equals(this.paypal, paymentMethod.paypal) - && Objects.equals(this.payto, paymentMethod.payto) - && Objects.equals(this.pulse, paymentMethod.pulse) - && Objects.equals(this.reference, paymentMethod.reference) - && Objects.equals(this.sepadirectdebit, paymentMethod.sepadirectdebit) - && Objects.equals(this.shopperInteraction, paymentMethod.shopperInteraction) - && Objects.equals(this.sodexo, paymentMethod.sodexo) - && Objects.equals(this.sofort, paymentMethod.sofort) - && Objects.equals(this.star, paymentMethod.star) - && Objects.equals(this.storeIds, paymentMethod.storeIds) - && Objects.equals(this.swish, paymentMethod.swish) - && Objects.equals(this.ticket, paymentMethod.ticket) - && Objects.equals(this.twint, paymentMethod.twint) - && Objects.equals(this.type, paymentMethod.type) - && Objects.equals(this.verificationStatus, paymentMethod.verificationStatus) - && Objects.equals(this.vipps, paymentMethod.vipps) - && Objects.equals(this.visa, paymentMethod.visa) - && Objects.equals(this.wechatpay, paymentMethod.wechatpay) - && Objects.equals(this.wechatpayPos, paymentMethod.wechatpayPos); + return Objects.equals(this.accel, paymentMethod.accel) && + Objects.equals(this.affirm, paymentMethod.affirm) && + Objects.equals(this.afterpayTouch, paymentMethod.afterpayTouch) && + Objects.equals(this.alipayPlus, paymentMethod.alipayPlus) && + Objects.equals(this.allowed, paymentMethod.allowed) && + Objects.equals(this.amex, paymentMethod.amex) && + Objects.equals(this.applePay, paymentMethod.applePay) && + Objects.equals(this.bcmc, paymentMethod.bcmc) && + Objects.equals(this.businessLineId, paymentMethod.businessLineId) && + Objects.equals(this.cartesBancaires, paymentMethod.cartesBancaires) && + Objects.equals(this.clearpay, paymentMethod.clearpay) && + Objects.equals(this.countries, paymentMethod.countries) && + Objects.equals(this.cup, paymentMethod.cup) && + Objects.equals(this.currencies, paymentMethod.currencies) && + Objects.equals(this.customRoutingFlags, paymentMethod.customRoutingFlags) && + Objects.equals(this.diners, paymentMethod.diners) && + Objects.equals(this.discover, paymentMethod.discover) && + Objects.equals(this.eftDirectdebitCA, paymentMethod.eftDirectdebitCA) && + Objects.equals(this.eftposAustralia, paymentMethod.eftposAustralia) && + Objects.equals(this.enabled, paymentMethod.enabled) && + Objects.equals(this.girocard, paymentMethod.girocard) && + Objects.equals(this.googlePay, paymentMethod.googlePay) && + Objects.equals(this.id, paymentMethod.id) && + Objects.equals(this.ideal, paymentMethod.ideal) && + Objects.equals(this.interacCard, paymentMethod.interacCard) && + Objects.equals(this.jcb, paymentMethod.jcb) && + Objects.equals(this.klarna, paymentMethod.klarna) && + Objects.equals(this.maestro, paymentMethod.maestro) && + Objects.equals(this.maestroUsa, paymentMethod.maestroUsa) && + Objects.equals(this.mc, paymentMethod.mc) && + Objects.equals(this.mealVoucherFR, paymentMethod.mealVoucherFR) && + Objects.equals(this.nyce, paymentMethod.nyce) && + Objects.equals(this.paybybankPlaid, paymentMethod.paybybankPlaid) && + Objects.equals(this.payme, paymentMethod.payme) && + Objects.equals(this.paypal, paymentMethod.paypal) && + Objects.equals(this.payto, paymentMethod.payto) && + Objects.equals(this.pulse, paymentMethod.pulse) && + Objects.equals(this.reference, paymentMethod.reference) && + Objects.equals(this.sepadirectdebit, paymentMethod.sepadirectdebit) && + Objects.equals(this.shopperInteraction, paymentMethod.shopperInteraction) && + Objects.equals(this.sodexo, paymentMethod.sodexo) && + Objects.equals(this.sofort, paymentMethod.sofort) && + Objects.equals(this.star, paymentMethod.star) && + Objects.equals(this.storeIds, paymentMethod.storeIds) && + Objects.equals(this.swish, paymentMethod.swish) && + Objects.equals(this.ticket, paymentMethod.ticket) && + Objects.equals(this.twint, paymentMethod.twint) && + Objects.equals(this.type, paymentMethod.type) && + Objects.equals(this.verificationStatus, paymentMethod.verificationStatus) && + Objects.equals(this.vipps, paymentMethod.vipps) && + Objects.equals(this.visa, paymentMethod.visa) && + Objects.equals(this.wechatpay, paymentMethod.wechatpay) && + Objects.equals(this.wechatpayPos, paymentMethod.wechatpayPos); } @Override public int hashCode() { - return Objects.hash( - accel, - affirm, - afterpayTouch, - alipayPlus, - allowed, - amex, - applePay, - bcmc, - businessLineId, - cartesBancaires, - clearpay, - countries, - cup, - currencies, - customRoutingFlags, - diners, - discover, - eftDirectdebitCA, - eftposAustralia, - enabled, - girocard, - googlePay, - id, - ideal, - interacCard, - jcb, - klarna, - maestro, - maestroUsa, - mc, - mealVoucherFR, - nyce, - paybybankPlaid, - payme, - paypal, - payto, - pulse, - reference, - sepadirectdebit, - shopperInteraction, - sodexo, - sofort, - star, - storeIds, - swish, - ticket, - twint, - type, - verificationStatus, - vipps, - visa, - wechatpay, - wechatpayPos); + return Objects.hash(accel, affirm, afterpayTouch, alipayPlus, allowed, amex, applePay, bcmc, businessLineId, cartesBancaires, clearpay, countries, cup, currencies, customRoutingFlags, diners, discover, eftDirectdebitCA, eftposAustralia, enabled, girocard, googlePay, id, ideal, interacCard, jcb, klarna, maestro, maestroUsa, mc, mealVoucherFR, nyce, paybybankPlaid, payme, paypal, payto, pulse, reference, sepadirectdebit, shopperInteraction, sodexo, sofort, star, storeIds, swish, ticket, twint, type, verificationStatus, vipps, visa, wechatpay, wechatpayPos); } @Override @@ -2296,7 +2185,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -2305,7 +2195,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentMethod given an JSON string * * @param jsonString JSON string @@ -2315,12 +2205,11 @@ private String toIndentedString(Object o) { public static PaymentMethod fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentMethod.class); } - - /** - * Convert an instance of PaymentMethod to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentMethod to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/PaymentMethodResponse.java b/src/main/java/com/adyen/model/management/PaymentMethodResponse.java index f2760c092..a9103fc7a 100644 --- a/src/main/java/com/adyen/model/management/PaymentMethodResponse.java +++ b/src/main/java/com/adyen/model/management/PaymentMethodResponse.java @@ -2,28 +2,35 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.PaginationLinks; +import com.adyen.model.management.PaymentMethod; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** PaymentMethodResponse */ + +/** + * PaymentMethodResponse + */ @JsonPropertyOrder({ PaymentMethodResponse.JSON_PROPERTY_LINKS, PaymentMethodResponse.JSON_PROPERTY_DATA, @@ -31,6 +38,7 @@ PaymentMethodResponse.JSON_PROPERTY_PAGES_TOTAL, PaymentMethodResponse.JSON_PROPERTY_TYPES_WITH_ERRORS }) + public class PaymentMethodResponse { public static final String JSON_PROPERTY_LINKS = "_links"; private PaginationLinks links; @@ -44,8 +52,11 @@ public class PaymentMethodResponse { public static final String JSON_PROPERTY_PAGES_TOTAL = "pagesTotal"; private Integer pagesTotal; - /** Gets or Sets typesWithErrors */ + /** + * Gets or Sets typesWithErrors + */ public enum TypesWithErrorsEnum { + ABRAPETITE(String.valueOf("abrapetite")), ABRAPETITE_CREDIT(String.valueOf("abrapetite_credit")), @@ -309,7 +320,7 @@ public enum TypesWithErrorsEnum { private String value; TypesWithErrorsEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -330,11 +341,7 @@ public static TypesWithErrorsEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypesWithErrorsEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypesWithErrorsEnum.values())); + LOG.warning("TypesWithErrorsEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypesWithErrorsEnum.values())); return null; } } @@ -342,12 +349,13 @@ public static TypesWithErrorsEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPES_WITH_ERRORS = "typesWithErrors"; private List typesWithErrors; - public PaymentMethodResponse() {} + public PaymentMethodResponse() { + } /** * links * - * @param links + * @param links * @return the current {@code PaymentMethodResponse} instance, allowing for method chaining */ public PaymentMethodResponse links(PaginationLinks links) { @@ -357,8 +365,7 @@ public PaymentMethodResponse links(PaginationLinks links) { /** * Get links - * - * @return links + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -369,7 +376,7 @@ public PaginationLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -398,7 +405,6 @@ public PaymentMethodResponse addDataItem(PaymentMethod dataItem) { /** * The list of supported payment methods and their details. - * * @return data The list of supported payment methods and their details. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -431,7 +437,6 @@ public PaymentMethodResponse itemsTotal(Integer itemsTotal) { /** * Total number of items. - * * @return itemsTotal Total number of items. */ @JsonProperty(JSON_PROPERTY_ITEMS_TOTAL) @@ -464,7 +469,6 @@ public PaymentMethodResponse pagesTotal(Integer pagesTotal) { /** * Total number of pages. - * * @return pagesTotal Total number of pages. */ @JsonProperty(JSON_PROPERTY_PAGES_TOTAL) @@ -487,8 +491,7 @@ public void setPagesTotal(Integer pagesTotal) { /** * The payment method types that were not successfully requested and their corresponding errors. * - * @param typesWithErrors The payment method types that were not successfully requested and their - * corresponding errors. + * @param typesWithErrors The payment method types that were not successfully requested and their corresponding errors. * @return the current {@code PaymentMethodResponse} instance, allowing for method chaining */ public PaymentMethodResponse typesWithErrors(List typesWithErrors) { @@ -506,9 +509,7 @@ public PaymentMethodResponse addTypesWithErrorsItem(TypesWithErrorsEnum typesWit /** * The payment method types that were not successfully requested and their corresponding errors. - * - * @return typesWithErrors The payment method types that were not successfully requested and their - * corresponding errors. + * @return typesWithErrors The payment method types that were not successfully requested and their corresponding errors. */ @JsonProperty(JSON_PROPERTY_TYPES_WITH_ERRORS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -519,8 +520,7 @@ public List getTypesWithErrors() { /** * The payment method types that were not successfully requested and their corresponding errors. * - * @param typesWithErrors The payment method types that were not successfully requested and their - * corresponding errors. + * @param typesWithErrors The payment method types that were not successfully requested and their corresponding errors. */ @JsonProperty(JSON_PROPERTY_TYPES_WITH_ERRORS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -528,7 +528,9 @@ public void setTypesWithErrors(List typesWithErrors) { this.typesWithErrors = typesWithErrors; } - /** Return true if this PaymentMethodResponse object is equal to o. */ + /** + * Return true if this PaymentMethodResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -538,11 +540,11 @@ public boolean equals(Object o) { return false; } PaymentMethodResponse paymentMethodResponse = (PaymentMethodResponse) o; - return Objects.equals(this.links, paymentMethodResponse.links) - && Objects.equals(this.data, paymentMethodResponse.data) - && Objects.equals(this.itemsTotal, paymentMethodResponse.itemsTotal) - && Objects.equals(this.pagesTotal, paymentMethodResponse.pagesTotal) - && Objects.equals(this.typesWithErrors, paymentMethodResponse.typesWithErrors); + return Objects.equals(this.links, paymentMethodResponse.links) && + Objects.equals(this.data, paymentMethodResponse.data) && + Objects.equals(this.itemsTotal, paymentMethodResponse.itemsTotal) && + Objects.equals(this.pagesTotal, paymentMethodResponse.pagesTotal) && + Objects.equals(this.typesWithErrors, paymentMethodResponse.typesWithErrors); } @Override @@ -564,7 +566,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -573,23 +576,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentMethodResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaymentMethodResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentMethodResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethodResponse */ public static PaymentMethodResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentMethodResponse.class); } - - /** - * Convert an instance of PaymentMethodResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentMethodResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/PaymentMethodSetupInfo.java b/src/main/java/com/adyen/model/management/PaymentMethodSetupInfo.java index 7b9eb9ccb..771020d34 100644 --- a/src/main/java/com/adyen/model/management/PaymentMethodSetupInfo.java +++ b/src/main/java/com/adyen/model/management/PaymentMethodSetupInfo.java @@ -2,28 +2,64 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.AccelInfo; +import com.adyen.model.management.AffirmInfo; +import com.adyen.model.management.AfterpayTouchInfo; +import com.adyen.model.management.AlipayPlusInfo; +import com.adyen.model.management.AmexInfo; +import com.adyen.model.management.ApplePayInfo; +import com.adyen.model.management.BcmcInfo; +import com.adyen.model.management.CartesBancairesInfo; +import com.adyen.model.management.ClearpayInfo; +import com.adyen.model.management.DinersInfo; +import com.adyen.model.management.GenericPmWithTdiInfo; +import com.adyen.model.management.GooglePayInfo; +import com.adyen.model.management.JCBInfo; +import com.adyen.model.management.KlarnaInfo; +import com.adyen.model.management.MealVoucherFRInfo; +import com.adyen.model.management.NyceInfo; +import com.adyen.model.management.PayByBankPlaidInfo; +import com.adyen.model.management.PayMeInfo; +import com.adyen.model.management.PayPalInfo; +import com.adyen.model.management.PayToInfo; +import com.adyen.model.management.PulseInfo; +import com.adyen.model.management.SepaDirectDebitInfo; +import com.adyen.model.management.SodexoInfo; +import com.adyen.model.management.SofortInfo; +import com.adyen.model.management.StarInfo; +import com.adyen.model.management.SwishInfo; +import com.adyen.model.management.TicketInfo; +import com.adyen.model.management.TwintInfo; +import com.adyen.model.management.VippsInfo; +import com.adyen.model.management.WeChatPayInfo; +import com.adyen.model.management.WeChatPayPosInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PaymentMethodSetupInfo */ +/** + * PaymentMethodSetupInfo + */ @JsonPropertyOrder({ PaymentMethodSetupInfo.JSON_PROPERTY_ACCEL, PaymentMethodSetupInfo.JSON_PROPERTY_AFFIRM, @@ -75,6 +111,7 @@ PaymentMethodSetupInfo.JSON_PROPERTY_WECHATPAY, PaymentMethodSetupInfo.JSON_PROPERTY_WECHATPAY_POS }) + public class PaymentMethodSetupInfo { public static final String JSON_PROPERTY_ACCEL = "accel"; private AccelInfo accel; @@ -185,11 +222,10 @@ public class PaymentMethodSetupInfo { private SepaDirectDebitInfo sepadirectdebit; /** - * The sales channel. Required if the merchant account does not have a sales channel. When you - * provide this field, it overrides the default sales channel set on the merchant account. - * Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. + * The sales channel. Required if the merchant account does not have a sales channel. When you provide this field, it overrides the default sales channel set on the merchant account. Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. */ public enum ShopperInteractionEnum { + ECOMMERCE(String.valueOf("eCommerce")), POS(String.valueOf("pos")), @@ -203,7 +239,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -224,11 +260,7 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ShopperInteractionEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -258,10 +290,10 @@ public static ShopperInteractionEnum fromValue(String value) { private TwintInfo twint; /** - * Payment method - * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). */ public enum TypeEnum { + ABRAPETITE(String.valueOf("abrapetite")), ABRAPETITE_CREDIT(String.valueOf("abrapetite_credit")), @@ -525,7 +557,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -546,11 +578,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -570,12 +598,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_WECHATPAY_POS = "wechatpay_pos"; private WeChatPayPosInfo wechatpayPos; - public PaymentMethodSetupInfo() {} + public PaymentMethodSetupInfo() { + } /** * accel * - * @param accel + * @param accel * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo accel(AccelInfo accel) { @@ -585,8 +614,7 @@ public PaymentMethodSetupInfo accel(AccelInfo accel) { /** * Get accel - * - * @return accel + * @return accel */ @JsonProperty(JSON_PROPERTY_ACCEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -597,7 +625,7 @@ public AccelInfo getAccel() { /** * accel * - * @param accel + * @param accel */ @JsonProperty(JSON_PROPERTY_ACCEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -608,7 +636,7 @@ public void setAccel(AccelInfo accel) { /** * affirm * - * @param affirm + * @param affirm * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo affirm(AffirmInfo affirm) { @@ -618,8 +646,7 @@ public PaymentMethodSetupInfo affirm(AffirmInfo affirm) { /** * Get affirm - * - * @return affirm + * @return affirm */ @JsonProperty(JSON_PROPERTY_AFFIRM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -630,7 +657,7 @@ public AffirmInfo getAffirm() { /** * affirm * - * @param affirm + * @param affirm */ @JsonProperty(JSON_PROPERTY_AFFIRM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -641,7 +668,7 @@ public void setAffirm(AffirmInfo affirm) { /** * afterpayTouch * - * @param afterpayTouch + * @param afterpayTouch * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo afterpayTouch(AfterpayTouchInfo afterpayTouch) { @@ -651,8 +678,7 @@ public PaymentMethodSetupInfo afterpayTouch(AfterpayTouchInfo afterpayTouch) { /** * Get afterpayTouch - * - * @return afterpayTouch + * @return afterpayTouch */ @JsonProperty(JSON_PROPERTY_AFTERPAY_TOUCH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -663,7 +689,7 @@ public AfterpayTouchInfo getAfterpayTouch() { /** * afterpayTouch * - * @param afterpayTouch + * @param afterpayTouch */ @JsonProperty(JSON_PROPERTY_AFTERPAY_TOUCH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -674,7 +700,7 @@ public void setAfterpayTouch(AfterpayTouchInfo afterpayTouch) { /** * alipayPlus * - * @param alipayPlus + * @param alipayPlus * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo alipayPlus(AlipayPlusInfo alipayPlus) { @@ -684,8 +710,7 @@ public PaymentMethodSetupInfo alipayPlus(AlipayPlusInfo alipayPlus) { /** * Get alipayPlus - * - * @return alipayPlus + * @return alipayPlus */ @JsonProperty(JSON_PROPERTY_ALIPAY_PLUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -696,7 +721,7 @@ public AlipayPlusInfo getAlipayPlus() { /** * alipayPlus * - * @param alipayPlus + * @param alipayPlus */ @JsonProperty(JSON_PROPERTY_ALIPAY_PLUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -707,7 +732,7 @@ public void setAlipayPlus(AlipayPlusInfo alipayPlus) { /** * amex * - * @param amex + * @param amex * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo amex(AmexInfo amex) { @@ -717,8 +742,7 @@ public PaymentMethodSetupInfo amex(AmexInfo amex) { /** * Get amex - * - * @return amex + * @return amex */ @JsonProperty(JSON_PROPERTY_AMEX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -729,7 +753,7 @@ public AmexInfo getAmex() { /** * amex * - * @param amex + * @param amex */ @JsonProperty(JSON_PROPERTY_AMEX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -740,7 +764,7 @@ public void setAmex(AmexInfo amex) { /** * applePay * - * @param applePay + * @param applePay * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo applePay(ApplePayInfo applePay) { @@ -750,8 +774,7 @@ public PaymentMethodSetupInfo applePay(ApplePayInfo applePay) { /** * Get applePay - * - * @return applePay + * @return applePay */ @JsonProperty(JSON_PROPERTY_APPLE_PAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -762,7 +785,7 @@ public ApplePayInfo getApplePay() { /** * applePay * - * @param applePay + * @param applePay */ @JsonProperty(JSON_PROPERTY_APPLE_PAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -773,7 +796,7 @@ public void setApplePay(ApplePayInfo applePay) { /** * bcmc * - * @param bcmc + * @param bcmc * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo bcmc(BcmcInfo bcmc) { @@ -783,8 +806,7 @@ public PaymentMethodSetupInfo bcmc(BcmcInfo bcmc) { /** * Get bcmc - * - * @return bcmc + * @return bcmc */ @JsonProperty(JSON_PROPERTY_BCMC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -795,7 +817,7 @@ public BcmcInfo getBcmc() { /** * bcmc * - * @param bcmc + * @param bcmc */ @JsonProperty(JSON_PROPERTY_BCMC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -804,11 +826,9 @@ public void setBcmc(BcmcInfo bcmc) { } /** - * The unique identifier of the business line. Required if you are a [platform - * model](https://docs.adyen.com/platforms). + * The unique identifier of the business line. Required if you are a [platform model](https://docs.adyen.com/platforms). * - * @param businessLineId The unique identifier of the business line. Required if you are a - * [platform model](https://docs.adyen.com/platforms). + * @param businessLineId The unique identifier of the business line. Required if you are a [platform model](https://docs.adyen.com/platforms). * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo businessLineId(String businessLineId) { @@ -817,11 +837,8 @@ public PaymentMethodSetupInfo businessLineId(String businessLineId) { } /** - * The unique identifier of the business line. Required if you are a [platform - * model](https://docs.adyen.com/platforms). - * - * @return businessLineId The unique identifier of the business line. Required if you are a - * [platform model](https://docs.adyen.com/platforms). + * The unique identifier of the business line. Required if you are a [platform model](https://docs.adyen.com/platforms). + * @return businessLineId The unique identifier of the business line. Required if you are a [platform model](https://docs.adyen.com/platforms). */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -830,11 +847,9 @@ public String getBusinessLineId() { } /** - * The unique identifier of the business line. Required if you are a [platform - * model](https://docs.adyen.com/platforms). + * The unique identifier of the business line. Required if you are a [platform model](https://docs.adyen.com/platforms). * - * @param businessLineId The unique identifier of the business line. Required if you are a - * [platform model](https://docs.adyen.com/platforms). + * @param businessLineId The unique identifier of the business line. Required if you are a [platform model](https://docs.adyen.com/platforms). */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -845,7 +860,7 @@ public void setBusinessLineId(String businessLineId) { /** * cartesBancaires * - * @param cartesBancaires + * @param cartesBancaires * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo cartesBancaires(CartesBancairesInfo cartesBancaires) { @@ -855,8 +870,7 @@ public PaymentMethodSetupInfo cartesBancaires(CartesBancairesInfo cartesBancaire /** * Get cartesBancaires - * - * @return cartesBancaires + * @return cartesBancaires */ @JsonProperty(JSON_PROPERTY_CARTES_BANCAIRES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -867,7 +881,7 @@ public CartesBancairesInfo getCartesBancaires() { /** * cartesBancaires * - * @param cartesBancaires + * @param cartesBancaires */ @JsonProperty(JSON_PROPERTY_CARTES_BANCAIRES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -878,7 +892,7 @@ public void setCartesBancaires(CartesBancairesInfo cartesBancaires) { /** * clearpay * - * @param clearpay + * @param clearpay * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo clearpay(ClearpayInfo clearpay) { @@ -888,8 +902,7 @@ public PaymentMethodSetupInfo clearpay(ClearpayInfo clearpay) { /** * Get clearpay - * - * @return clearpay + * @return clearpay */ @JsonProperty(JSON_PROPERTY_CLEARPAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -900,7 +913,7 @@ public ClearpayInfo getClearpay() { /** * clearpay * - * @param clearpay + * @param clearpay */ @JsonProperty(JSON_PROPERTY_CLEARPAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -909,11 +922,9 @@ public void setClearpay(ClearpayInfo clearpay) { } /** - * The list of countries where a payment method is available. By default, all countries supported - * by the payment method. + * The list of countries where a payment method is available. By default, all countries supported by the payment method. * - * @param countries The list of countries where a payment method is available. By default, all - * countries supported by the payment method. + * @param countries The list of countries where a payment method is available. By default, all countries supported by the payment method. * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo countries(List countries) { @@ -930,11 +941,8 @@ public PaymentMethodSetupInfo addCountriesItem(String countriesItem) { } /** - * The list of countries where a payment method is available. By default, all countries supported - * by the payment method. - * - * @return countries The list of countries where a payment method is available. By default, all - * countries supported by the payment method. + * The list of countries where a payment method is available. By default, all countries supported by the payment method. + * @return countries The list of countries where a payment method is available. By default, all countries supported by the payment method. */ @JsonProperty(JSON_PROPERTY_COUNTRIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -943,11 +951,9 @@ public List getCountries() { } /** - * The list of countries where a payment method is available. By default, all countries supported - * by the payment method. + * The list of countries where a payment method is available. By default, all countries supported by the payment method. * - * @param countries The list of countries where a payment method is available. By default, all - * countries supported by the payment method. + * @param countries The list of countries where a payment method is available. By default, all countries supported by the payment method. */ @JsonProperty(JSON_PROPERTY_COUNTRIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -958,7 +964,7 @@ public void setCountries(List countries) { /** * cup * - * @param cup + * @param cup * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo cup(GenericPmWithTdiInfo cup) { @@ -968,8 +974,7 @@ public PaymentMethodSetupInfo cup(GenericPmWithTdiInfo cup) { /** * Get cup - * - * @return cup + * @return cup */ @JsonProperty(JSON_PROPERTY_CUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -980,7 +985,7 @@ public GenericPmWithTdiInfo getCup() { /** * cup * - * @param cup + * @param cup */ @JsonProperty(JSON_PROPERTY_CUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -989,11 +994,9 @@ public void setCup(GenericPmWithTdiInfo cup) { } /** - * The list of currencies that a payment method supports. By default, all currencies supported by - * the payment method. + * The list of currencies that a payment method supports. By default, all currencies supported by the payment method. * - * @param currencies The list of currencies that a payment method supports. By default, all - * currencies supported by the payment method. + * @param currencies The list of currencies that a payment method supports. By default, all currencies supported by the payment method. * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo currencies(List currencies) { @@ -1010,11 +1013,8 @@ public PaymentMethodSetupInfo addCurrenciesItem(String currenciesItem) { } /** - * The list of currencies that a payment method supports. By default, all currencies supported by - * the payment method. - * - * @return currencies The list of currencies that a payment method supports. By default, all - * currencies supported by the payment method. + * The list of currencies that a payment method supports. By default, all currencies supported by the payment method. + * @return currencies The list of currencies that a payment method supports. By default, all currencies supported by the payment method. */ @JsonProperty(JSON_PROPERTY_CURRENCIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1023,11 +1023,9 @@ public List getCurrencies() { } /** - * The list of currencies that a payment method supports. By default, all currencies supported by - * the payment method. + * The list of currencies that a payment method supports. By default, all currencies supported by the payment method. * - * @param currencies The list of currencies that a payment method supports. By default, all - * currencies supported by the payment method. + * @param currencies The list of currencies that a payment method supports. By default, all currencies supported by the payment method. */ @JsonProperty(JSON_PROPERTY_CURRENCIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1038,8 +1036,7 @@ public void setCurrencies(List currencies) { /** * The list of custom routing flags to route payment to the intended acquirer. * - * @param customRoutingFlags The list of custom routing flags to route payment to the intended - * acquirer. + * @param customRoutingFlags The list of custom routing flags to route payment to the intended acquirer. * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo customRoutingFlags(List customRoutingFlags) { @@ -1057,9 +1054,7 @@ public PaymentMethodSetupInfo addCustomRoutingFlagsItem(String customRoutingFlag /** * The list of custom routing flags to route payment to the intended acquirer. - * - * @return customRoutingFlags The list of custom routing flags to route payment to the intended - * acquirer. + * @return customRoutingFlags The list of custom routing flags to route payment to the intended acquirer. */ @JsonProperty(JSON_PROPERTY_CUSTOM_ROUTING_FLAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1070,8 +1065,7 @@ public List getCustomRoutingFlags() { /** * The list of custom routing flags to route payment to the intended acquirer. * - * @param customRoutingFlags The list of custom routing flags to route payment to the intended - * acquirer. + * @param customRoutingFlags The list of custom routing flags to route payment to the intended acquirer. */ @JsonProperty(JSON_PROPERTY_CUSTOM_ROUTING_FLAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1082,7 +1076,7 @@ public void setCustomRoutingFlags(List customRoutingFlags) { /** * diners * - * @param diners + * @param diners * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo diners(DinersInfo diners) { @@ -1092,8 +1086,7 @@ public PaymentMethodSetupInfo diners(DinersInfo diners) { /** * Get diners - * - * @return diners + * @return diners */ @JsonProperty(JSON_PROPERTY_DINERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1104,7 +1097,7 @@ public DinersInfo getDiners() { /** * diners * - * @param diners + * @param diners */ @JsonProperty(JSON_PROPERTY_DINERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1115,7 +1108,7 @@ public void setDiners(DinersInfo diners) { /** * discover * - * @param discover + * @param discover * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo discover(GenericPmWithTdiInfo discover) { @@ -1125,8 +1118,7 @@ public PaymentMethodSetupInfo discover(GenericPmWithTdiInfo discover) { /** * Get discover - * - * @return discover + * @return discover */ @JsonProperty(JSON_PROPERTY_DISCOVER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1137,7 +1129,7 @@ public GenericPmWithTdiInfo getDiscover() { /** * discover * - * @param discover + * @param discover */ @JsonProperty(JSON_PROPERTY_DISCOVER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1148,7 +1140,7 @@ public void setDiscover(GenericPmWithTdiInfo discover) { /** * eftDirectdebitCA * - * @param eftDirectdebitCA + * @param eftDirectdebitCA * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo eftDirectdebitCA(GenericPmWithTdiInfo eftDirectdebitCA) { @@ -1158,8 +1150,7 @@ public PaymentMethodSetupInfo eftDirectdebitCA(GenericPmWithTdiInfo eftDirectdeb /** * Get eftDirectdebitCA - * - * @return eftDirectdebitCA + * @return eftDirectdebitCA */ @JsonProperty(JSON_PROPERTY_EFT_DIRECTDEBIT_C_A) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1170,7 +1161,7 @@ public GenericPmWithTdiInfo getEftDirectdebitCA() { /** * eftDirectdebitCA * - * @param eftDirectdebitCA + * @param eftDirectdebitCA */ @JsonProperty(JSON_PROPERTY_EFT_DIRECTDEBIT_C_A) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1181,7 +1172,7 @@ public void setEftDirectdebitCA(GenericPmWithTdiInfo eftDirectdebitCA) { /** * eftposAustralia * - * @param eftposAustralia + * @param eftposAustralia * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo eftposAustralia(GenericPmWithTdiInfo eftposAustralia) { @@ -1191,8 +1182,7 @@ public PaymentMethodSetupInfo eftposAustralia(GenericPmWithTdiInfo eftposAustral /** * Get eftposAustralia - * - * @return eftposAustralia + * @return eftposAustralia */ @JsonProperty(JSON_PROPERTY_EFTPOS_AUSTRALIA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1203,7 +1193,7 @@ public GenericPmWithTdiInfo getEftposAustralia() { /** * eftposAustralia * - * @param eftposAustralia + * @param eftposAustralia */ @JsonProperty(JSON_PROPERTY_EFTPOS_AUSTRALIA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1214,7 +1204,7 @@ public void setEftposAustralia(GenericPmWithTdiInfo eftposAustralia) { /** * girocard * - * @param girocard + * @param girocard * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo girocard(GenericPmWithTdiInfo girocard) { @@ -1224,8 +1214,7 @@ public PaymentMethodSetupInfo girocard(GenericPmWithTdiInfo girocard) { /** * Get girocard - * - * @return girocard + * @return girocard */ @JsonProperty(JSON_PROPERTY_GIROCARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1236,7 +1225,7 @@ public GenericPmWithTdiInfo getGirocard() { /** * girocard * - * @param girocard + * @param girocard */ @JsonProperty(JSON_PROPERTY_GIROCARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1247,7 +1236,7 @@ public void setGirocard(GenericPmWithTdiInfo girocard) { /** * googlePay * - * @param googlePay + * @param googlePay * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo googlePay(GooglePayInfo googlePay) { @@ -1257,8 +1246,7 @@ public PaymentMethodSetupInfo googlePay(GooglePayInfo googlePay) { /** * Get googlePay - * - * @return googlePay + * @return googlePay */ @JsonProperty(JSON_PROPERTY_GOOGLE_PAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1269,7 +1257,7 @@ public GooglePayInfo getGooglePay() { /** * googlePay * - * @param googlePay + * @param googlePay */ @JsonProperty(JSON_PROPERTY_GOOGLE_PAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1280,7 +1268,7 @@ public void setGooglePay(GooglePayInfo googlePay) { /** * ideal * - * @param ideal + * @param ideal * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo ideal(GenericPmWithTdiInfo ideal) { @@ -1290,8 +1278,7 @@ public PaymentMethodSetupInfo ideal(GenericPmWithTdiInfo ideal) { /** * Get ideal - * - * @return ideal + * @return ideal */ @JsonProperty(JSON_PROPERTY_IDEAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1302,7 +1289,7 @@ public GenericPmWithTdiInfo getIdeal() { /** * ideal * - * @param ideal + * @param ideal */ @JsonProperty(JSON_PROPERTY_IDEAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1313,7 +1300,7 @@ public void setIdeal(GenericPmWithTdiInfo ideal) { /** * interacCard * - * @param interacCard + * @param interacCard * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo interacCard(GenericPmWithTdiInfo interacCard) { @@ -1323,8 +1310,7 @@ public PaymentMethodSetupInfo interacCard(GenericPmWithTdiInfo interacCard) { /** * Get interacCard - * - * @return interacCard + * @return interacCard */ @JsonProperty(JSON_PROPERTY_INTERAC_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1335,7 +1321,7 @@ public GenericPmWithTdiInfo getInteracCard() { /** * interacCard * - * @param interacCard + * @param interacCard */ @JsonProperty(JSON_PROPERTY_INTERAC_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1346,7 +1332,7 @@ public void setInteracCard(GenericPmWithTdiInfo interacCard) { /** * jcb * - * @param jcb + * @param jcb * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo jcb(JCBInfo jcb) { @@ -1356,8 +1342,7 @@ public PaymentMethodSetupInfo jcb(JCBInfo jcb) { /** * Get jcb - * - * @return jcb + * @return jcb */ @JsonProperty(JSON_PROPERTY_JCB) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1368,7 +1353,7 @@ public JCBInfo getJcb() { /** * jcb * - * @param jcb + * @param jcb */ @JsonProperty(JSON_PROPERTY_JCB) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1379,7 +1364,7 @@ public void setJcb(JCBInfo jcb) { /** * klarna * - * @param klarna + * @param klarna * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo klarna(KlarnaInfo klarna) { @@ -1389,8 +1374,7 @@ public PaymentMethodSetupInfo klarna(KlarnaInfo klarna) { /** * Get klarna - * - * @return klarna + * @return klarna */ @JsonProperty(JSON_PROPERTY_KLARNA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1401,7 +1385,7 @@ public KlarnaInfo getKlarna() { /** * klarna * - * @param klarna + * @param klarna */ @JsonProperty(JSON_PROPERTY_KLARNA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1412,7 +1396,7 @@ public void setKlarna(KlarnaInfo klarna) { /** * maestro * - * @param maestro + * @param maestro * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo maestro(GenericPmWithTdiInfo maestro) { @@ -1422,8 +1406,7 @@ public PaymentMethodSetupInfo maestro(GenericPmWithTdiInfo maestro) { /** * Get maestro - * - * @return maestro + * @return maestro */ @JsonProperty(JSON_PROPERTY_MAESTRO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1434,7 +1417,7 @@ public GenericPmWithTdiInfo getMaestro() { /** * maestro * - * @param maestro + * @param maestro */ @JsonProperty(JSON_PROPERTY_MAESTRO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1445,7 +1428,7 @@ public void setMaestro(GenericPmWithTdiInfo maestro) { /** * maestroUsa * - * @param maestroUsa + * @param maestroUsa * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo maestroUsa(GenericPmWithTdiInfo maestroUsa) { @@ -1455,8 +1438,7 @@ public PaymentMethodSetupInfo maestroUsa(GenericPmWithTdiInfo maestroUsa) { /** * Get maestroUsa - * - * @return maestroUsa + * @return maestroUsa */ @JsonProperty(JSON_PROPERTY_MAESTRO_USA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1467,7 +1449,7 @@ public GenericPmWithTdiInfo getMaestroUsa() { /** * maestroUsa * - * @param maestroUsa + * @param maestroUsa */ @JsonProperty(JSON_PROPERTY_MAESTRO_USA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1478,7 +1460,7 @@ public void setMaestroUsa(GenericPmWithTdiInfo maestroUsa) { /** * mc * - * @param mc + * @param mc * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo mc(GenericPmWithTdiInfo mc) { @@ -1488,8 +1470,7 @@ public PaymentMethodSetupInfo mc(GenericPmWithTdiInfo mc) { /** * Get mc - * - * @return mc + * @return mc */ @JsonProperty(JSON_PROPERTY_MC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1500,7 +1481,7 @@ public GenericPmWithTdiInfo getMc() { /** * mc * - * @param mc + * @param mc */ @JsonProperty(JSON_PROPERTY_MC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1511,7 +1492,7 @@ public void setMc(GenericPmWithTdiInfo mc) { /** * mealVoucherFR * - * @param mealVoucherFR + * @param mealVoucherFR * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo mealVoucherFR(MealVoucherFRInfo mealVoucherFR) { @@ -1521,8 +1502,7 @@ public PaymentMethodSetupInfo mealVoucherFR(MealVoucherFRInfo mealVoucherFR) { /** * Get mealVoucherFR - * - * @return mealVoucherFR + * @return mealVoucherFR */ @JsonProperty(JSON_PROPERTY_MEAL_VOUCHER_F_R) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1533,7 +1513,7 @@ public MealVoucherFRInfo getMealVoucherFR() { /** * mealVoucherFR * - * @param mealVoucherFR + * @param mealVoucherFR */ @JsonProperty(JSON_PROPERTY_MEAL_VOUCHER_F_R) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1544,7 +1524,7 @@ public void setMealVoucherFR(MealVoucherFRInfo mealVoucherFR) { /** * nyce * - * @param nyce + * @param nyce * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo nyce(NyceInfo nyce) { @@ -1554,8 +1534,7 @@ public PaymentMethodSetupInfo nyce(NyceInfo nyce) { /** * Get nyce - * - * @return nyce + * @return nyce */ @JsonProperty(JSON_PROPERTY_NYCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1566,7 +1545,7 @@ public NyceInfo getNyce() { /** * nyce * - * @param nyce + * @param nyce */ @JsonProperty(JSON_PROPERTY_NYCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1577,7 +1556,7 @@ public void setNyce(NyceInfo nyce) { /** * paybybankPlaid * - * @param paybybankPlaid + * @param paybybankPlaid * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo paybybankPlaid(PayByBankPlaidInfo paybybankPlaid) { @@ -1587,8 +1566,7 @@ public PaymentMethodSetupInfo paybybankPlaid(PayByBankPlaidInfo paybybankPlaid) /** * Get paybybankPlaid - * - * @return paybybankPlaid + * @return paybybankPlaid */ @JsonProperty(JSON_PROPERTY_PAYBYBANK_PLAID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1599,7 +1577,7 @@ public PayByBankPlaidInfo getPaybybankPlaid() { /** * paybybankPlaid * - * @param paybybankPlaid + * @param paybybankPlaid */ @JsonProperty(JSON_PROPERTY_PAYBYBANK_PLAID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1610,7 +1588,7 @@ public void setPaybybankPlaid(PayByBankPlaidInfo paybybankPlaid) { /** * payme * - * @param payme + * @param payme * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo payme(PayMeInfo payme) { @@ -1620,8 +1598,7 @@ public PaymentMethodSetupInfo payme(PayMeInfo payme) { /** * Get payme - * - * @return payme + * @return payme */ @JsonProperty(JSON_PROPERTY_PAYME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1632,7 +1609,7 @@ public PayMeInfo getPayme() { /** * payme * - * @param payme + * @param payme */ @JsonProperty(JSON_PROPERTY_PAYME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1643,7 +1620,7 @@ public void setPayme(PayMeInfo payme) { /** * paypal * - * @param paypal + * @param paypal * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo paypal(PayPalInfo paypal) { @@ -1653,8 +1630,7 @@ public PaymentMethodSetupInfo paypal(PayPalInfo paypal) { /** * Get paypal - * - * @return paypal + * @return paypal */ @JsonProperty(JSON_PROPERTY_PAYPAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1665,7 +1641,7 @@ public PayPalInfo getPaypal() { /** * paypal * - * @param paypal + * @param paypal */ @JsonProperty(JSON_PROPERTY_PAYPAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1676,7 +1652,7 @@ public void setPaypal(PayPalInfo paypal) { /** * payto * - * @param payto + * @param payto * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo payto(PayToInfo payto) { @@ -1686,8 +1662,7 @@ public PaymentMethodSetupInfo payto(PayToInfo payto) { /** * Get payto - * - * @return payto + * @return payto */ @JsonProperty(JSON_PROPERTY_PAYTO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1698,7 +1673,7 @@ public PayToInfo getPayto() { /** * payto * - * @param payto + * @param payto */ @JsonProperty(JSON_PROPERTY_PAYTO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1709,7 +1684,7 @@ public void setPayto(PayToInfo payto) { /** * pulse * - * @param pulse + * @param pulse * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo pulse(PulseInfo pulse) { @@ -1719,8 +1694,7 @@ public PaymentMethodSetupInfo pulse(PulseInfo pulse) { /** * Get pulse - * - * @return pulse + * @return pulse */ @JsonProperty(JSON_PROPERTY_PULSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1731,7 +1705,7 @@ public PulseInfo getPulse() { /** * pulse * - * @param pulse + * @param pulse */ @JsonProperty(JSON_PROPERTY_PULSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1752,7 +1726,6 @@ public PaymentMethodSetupInfo reference(String reference) { /** * Your reference for the payment method. Supported characters a-z, A-Z, 0-9. - * * @return reference Your reference for the payment method. Supported characters a-z, A-Z, 0-9. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -1775,7 +1748,7 @@ public void setReference(String reference) { /** * sepadirectdebit * - * @param sepadirectdebit + * @param sepadirectdebit * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo sepadirectdebit(SepaDirectDebitInfo sepadirectdebit) { @@ -1785,8 +1758,7 @@ public PaymentMethodSetupInfo sepadirectdebit(SepaDirectDebitInfo sepadirectdebi /** * Get sepadirectdebit - * - * @return sepadirectdebit + * @return sepadirectdebit */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1797,7 +1769,7 @@ public SepaDirectDebitInfo getSepadirectdebit() { /** * sepadirectdebit * - * @param sepadirectdebit + * @param sepadirectdebit */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1806,13 +1778,9 @@ public void setSepadirectdebit(SepaDirectDebitInfo sepadirectdebit) { } /** - * The sales channel. Required if the merchant account does not have a sales channel. When you - * provide this field, it overrides the default sales channel set on the merchant account. - * Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. + * The sales channel. Required if the merchant account does not have a sales channel. When you provide this field, it overrides the default sales channel set on the merchant account. Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. * - * @param shopperInteraction The sales channel. Required if the merchant account does not have a - * sales channel. When you provide this field, it overrides the default sales channel set on - * the merchant account. Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. + * @param shopperInteraction The sales channel. Required if the merchant account does not have a sales channel. When you provide this field, it overrides the default sales channel set on the merchant account. Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo shopperInteraction(ShopperInteractionEnum shopperInteraction) { @@ -1821,13 +1789,8 @@ public PaymentMethodSetupInfo shopperInteraction(ShopperInteractionEnum shopperI } /** - * The sales channel. Required if the merchant account does not have a sales channel. When you - * provide this field, it overrides the default sales channel set on the merchant account. - * Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. - * - * @return shopperInteraction The sales channel. Required if the merchant account does not have a - * sales channel. When you provide this field, it overrides the default sales channel set on - * the merchant account. Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. + * The sales channel. Required if the merchant account does not have a sales channel. When you provide this field, it overrides the default sales channel set on the merchant account. Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. + * @return shopperInteraction The sales channel. Required if the merchant account does not have a sales channel. When you provide this field, it overrides the default sales channel set on the merchant account. Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1836,13 +1799,9 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * The sales channel. Required if the merchant account does not have a sales channel. When you - * provide this field, it overrides the default sales channel set on the merchant account. - * Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. + * The sales channel. Required if the merchant account does not have a sales channel. When you provide this field, it overrides the default sales channel set on the merchant account. Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. * - * @param shopperInteraction The sales channel. Required if the merchant account does not have a - * sales channel. When you provide this field, it overrides the default sales channel set on - * the merchant account. Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. + * @param shopperInteraction The sales channel. Required if the merchant account does not have a sales channel. When you provide this field, it overrides the default sales channel set on the merchant account. Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1853,7 +1812,7 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { /** * sodexo * - * @param sodexo + * @param sodexo * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo sodexo(SodexoInfo sodexo) { @@ -1863,8 +1822,7 @@ public PaymentMethodSetupInfo sodexo(SodexoInfo sodexo) { /** * Get sodexo - * - * @return sodexo + * @return sodexo */ @JsonProperty(JSON_PROPERTY_SODEXO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1875,7 +1833,7 @@ public SodexoInfo getSodexo() { /** * sodexo * - * @param sodexo + * @param sodexo */ @JsonProperty(JSON_PROPERTY_SODEXO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1886,7 +1844,7 @@ public void setSodexo(SodexoInfo sodexo) { /** * sofort * - * @param sofort + * @param sofort * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo sofort(SofortInfo sofort) { @@ -1896,8 +1854,7 @@ public PaymentMethodSetupInfo sofort(SofortInfo sofort) { /** * Get sofort - * - * @return sofort + * @return sofort */ @JsonProperty(JSON_PROPERTY_SOFORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1908,7 +1865,7 @@ public SofortInfo getSofort() { /** * sofort * - * @param sofort + * @param sofort */ @JsonProperty(JSON_PROPERTY_SOFORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1919,7 +1876,7 @@ public void setSofort(SofortInfo sofort) { /** * star * - * @param star + * @param star * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo star(StarInfo star) { @@ -1929,8 +1886,7 @@ public PaymentMethodSetupInfo star(StarInfo star) { /** * Get star - * - * @return star + * @return star */ @JsonProperty(JSON_PROPERTY_STAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1941,7 +1897,7 @@ public StarInfo getStar() { /** * star * - * @param star + * @param star */ @JsonProperty(JSON_PROPERTY_STAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1952,8 +1908,7 @@ public void setStar(StarInfo star) { /** * The unique identifier of the store for which to configure the payment method, if any. * - * @param storeIds The unique identifier of the store for which to configure the payment method, - * if any. + * @param storeIds The unique identifier of the store for which to configure the payment method, if any. * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo storeIds(List storeIds) { @@ -1971,9 +1926,7 @@ public PaymentMethodSetupInfo addStoreIdsItem(String storeIdsItem) { /** * The unique identifier of the store for which to configure the payment method, if any. - * - * @return storeIds The unique identifier of the store for which to configure the payment method, - * if any. + * @return storeIds The unique identifier of the store for which to configure the payment method, if any. */ @JsonProperty(JSON_PROPERTY_STORE_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1984,8 +1937,7 @@ public List getStoreIds() { /** * The unique identifier of the store for which to configure the payment method, if any. * - * @param storeIds The unique identifier of the store for which to configure the payment method, - * if any. + * @param storeIds The unique identifier of the store for which to configure the payment method, if any. */ @JsonProperty(JSON_PROPERTY_STORE_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1996,7 +1948,7 @@ public void setStoreIds(List storeIds) { /** * swish * - * @param swish + * @param swish * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo swish(SwishInfo swish) { @@ -2006,8 +1958,7 @@ public PaymentMethodSetupInfo swish(SwishInfo swish) { /** * Get swish - * - * @return swish + * @return swish */ @JsonProperty(JSON_PROPERTY_SWISH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2018,7 +1969,7 @@ public SwishInfo getSwish() { /** * swish * - * @param swish + * @param swish */ @JsonProperty(JSON_PROPERTY_SWISH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2029,7 +1980,7 @@ public void setSwish(SwishInfo swish) { /** * ticket * - * @param ticket + * @param ticket * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo ticket(TicketInfo ticket) { @@ -2039,8 +1990,7 @@ public PaymentMethodSetupInfo ticket(TicketInfo ticket) { /** * Get ticket - * - * @return ticket + * @return ticket */ @JsonProperty(JSON_PROPERTY_TICKET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2051,7 +2001,7 @@ public TicketInfo getTicket() { /** * ticket * - * @param ticket + * @param ticket */ @JsonProperty(JSON_PROPERTY_TICKET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2062,7 +2012,7 @@ public void setTicket(TicketInfo ticket) { /** * twint * - * @param twint + * @param twint * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo twint(TwintInfo twint) { @@ -2072,8 +2022,7 @@ public PaymentMethodSetupInfo twint(TwintInfo twint) { /** * Get twint - * - * @return twint + * @return twint */ @JsonProperty(JSON_PROPERTY_TWINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2084,7 +2033,7 @@ public TwintInfo getTwint() { /** * twint * - * @param twint + * @param twint */ @JsonProperty(JSON_PROPERTY_TWINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2093,11 +2042,9 @@ public void setTwint(TwintInfo twint) { } /** - * Payment method - * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). * - * @param type Payment method - * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * @param type Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo type(TypeEnum type) { @@ -2106,11 +2053,8 @@ public PaymentMethodSetupInfo type(TypeEnum type) { } /** - * Payment method - * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). - * - * @return type Payment method - * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * @return type Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2119,11 +2063,9 @@ public TypeEnum getType() { } /** - * Payment method - * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). * - * @param type Payment method - * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * @param type Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2134,7 +2076,7 @@ public void setType(TypeEnum type) { /** * vipps * - * @param vipps + * @param vipps * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo vipps(VippsInfo vipps) { @@ -2144,8 +2086,7 @@ public PaymentMethodSetupInfo vipps(VippsInfo vipps) { /** * Get vipps - * - * @return vipps + * @return vipps */ @JsonProperty(JSON_PROPERTY_VIPPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2156,7 +2097,7 @@ public VippsInfo getVipps() { /** * vipps * - * @param vipps + * @param vipps */ @JsonProperty(JSON_PROPERTY_VIPPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2167,7 +2108,7 @@ public void setVipps(VippsInfo vipps) { /** * visa * - * @param visa + * @param visa * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo visa(GenericPmWithTdiInfo visa) { @@ -2177,8 +2118,7 @@ public PaymentMethodSetupInfo visa(GenericPmWithTdiInfo visa) { /** * Get visa - * - * @return visa + * @return visa */ @JsonProperty(JSON_PROPERTY_VISA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2189,7 +2129,7 @@ public GenericPmWithTdiInfo getVisa() { /** * visa * - * @param visa + * @param visa */ @JsonProperty(JSON_PROPERTY_VISA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2200,7 +2140,7 @@ public void setVisa(GenericPmWithTdiInfo visa) { /** * wechatpay * - * @param wechatpay + * @param wechatpay * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo wechatpay(WeChatPayInfo wechatpay) { @@ -2210,8 +2150,7 @@ public PaymentMethodSetupInfo wechatpay(WeChatPayInfo wechatpay) { /** * Get wechatpay - * - * @return wechatpay + * @return wechatpay */ @JsonProperty(JSON_PROPERTY_WECHATPAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2222,7 +2161,7 @@ public WeChatPayInfo getWechatpay() { /** * wechatpay * - * @param wechatpay + * @param wechatpay */ @JsonProperty(JSON_PROPERTY_WECHATPAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2233,7 +2172,7 @@ public void setWechatpay(WeChatPayInfo wechatpay) { /** * wechatpayPos * - * @param wechatpayPos + * @param wechatpayPos * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo wechatpayPos(WeChatPayPosInfo wechatpayPos) { @@ -2243,8 +2182,7 @@ public PaymentMethodSetupInfo wechatpayPos(WeChatPayPosInfo wechatpayPos) { /** * Get wechatpayPos - * - * @return wechatpayPos + * @return wechatpayPos */ @JsonProperty(JSON_PROPERTY_WECHATPAY_POS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2255,7 +2193,7 @@ public WeChatPayPosInfo getWechatpayPos() { /** * wechatpayPos * - * @param wechatpayPos + * @param wechatpayPos */ @JsonProperty(JSON_PROPERTY_WECHATPAY_POS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2263,7 +2201,9 @@ public void setWechatpayPos(WeChatPayPosInfo wechatpayPos) { this.wechatpayPos = wechatpayPos; } - /** Return true if this PaymentMethodSetupInfo object is equal to o. */ + /** + * Return true if this PaymentMethodSetupInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -2273,109 +2213,60 @@ public boolean equals(Object o) { return false; } PaymentMethodSetupInfo paymentMethodSetupInfo = (PaymentMethodSetupInfo) o; - return Objects.equals(this.accel, paymentMethodSetupInfo.accel) - && Objects.equals(this.affirm, paymentMethodSetupInfo.affirm) - && Objects.equals(this.afterpayTouch, paymentMethodSetupInfo.afterpayTouch) - && Objects.equals(this.alipayPlus, paymentMethodSetupInfo.alipayPlus) - && Objects.equals(this.amex, paymentMethodSetupInfo.amex) - && Objects.equals(this.applePay, paymentMethodSetupInfo.applePay) - && Objects.equals(this.bcmc, paymentMethodSetupInfo.bcmc) - && Objects.equals(this.businessLineId, paymentMethodSetupInfo.businessLineId) - && Objects.equals(this.cartesBancaires, paymentMethodSetupInfo.cartesBancaires) - && Objects.equals(this.clearpay, paymentMethodSetupInfo.clearpay) - && Objects.equals(this.countries, paymentMethodSetupInfo.countries) - && Objects.equals(this.cup, paymentMethodSetupInfo.cup) - && Objects.equals(this.currencies, paymentMethodSetupInfo.currencies) - && Objects.equals(this.customRoutingFlags, paymentMethodSetupInfo.customRoutingFlags) - && Objects.equals(this.diners, paymentMethodSetupInfo.diners) - && Objects.equals(this.discover, paymentMethodSetupInfo.discover) - && Objects.equals(this.eftDirectdebitCA, paymentMethodSetupInfo.eftDirectdebitCA) - && Objects.equals(this.eftposAustralia, paymentMethodSetupInfo.eftposAustralia) - && Objects.equals(this.girocard, paymentMethodSetupInfo.girocard) - && Objects.equals(this.googlePay, paymentMethodSetupInfo.googlePay) - && Objects.equals(this.ideal, paymentMethodSetupInfo.ideal) - && Objects.equals(this.interacCard, paymentMethodSetupInfo.interacCard) - && Objects.equals(this.jcb, paymentMethodSetupInfo.jcb) - && Objects.equals(this.klarna, paymentMethodSetupInfo.klarna) - && Objects.equals(this.maestro, paymentMethodSetupInfo.maestro) - && Objects.equals(this.maestroUsa, paymentMethodSetupInfo.maestroUsa) - && Objects.equals(this.mc, paymentMethodSetupInfo.mc) - && Objects.equals(this.mealVoucherFR, paymentMethodSetupInfo.mealVoucherFR) - && Objects.equals(this.nyce, paymentMethodSetupInfo.nyce) - && Objects.equals(this.paybybankPlaid, paymentMethodSetupInfo.paybybankPlaid) - && Objects.equals(this.payme, paymentMethodSetupInfo.payme) - && Objects.equals(this.paypal, paymentMethodSetupInfo.paypal) - && Objects.equals(this.payto, paymentMethodSetupInfo.payto) - && Objects.equals(this.pulse, paymentMethodSetupInfo.pulse) - && Objects.equals(this.reference, paymentMethodSetupInfo.reference) - && Objects.equals(this.sepadirectdebit, paymentMethodSetupInfo.sepadirectdebit) - && Objects.equals(this.shopperInteraction, paymentMethodSetupInfo.shopperInteraction) - && Objects.equals(this.sodexo, paymentMethodSetupInfo.sodexo) - && Objects.equals(this.sofort, paymentMethodSetupInfo.sofort) - && Objects.equals(this.star, paymentMethodSetupInfo.star) - && Objects.equals(this.storeIds, paymentMethodSetupInfo.storeIds) - && Objects.equals(this.swish, paymentMethodSetupInfo.swish) - && Objects.equals(this.ticket, paymentMethodSetupInfo.ticket) - && Objects.equals(this.twint, paymentMethodSetupInfo.twint) - && Objects.equals(this.type, paymentMethodSetupInfo.type) - && Objects.equals(this.vipps, paymentMethodSetupInfo.vipps) - && Objects.equals(this.visa, paymentMethodSetupInfo.visa) - && Objects.equals(this.wechatpay, paymentMethodSetupInfo.wechatpay) - && Objects.equals(this.wechatpayPos, paymentMethodSetupInfo.wechatpayPos); + return Objects.equals(this.accel, paymentMethodSetupInfo.accel) && + Objects.equals(this.affirm, paymentMethodSetupInfo.affirm) && + Objects.equals(this.afterpayTouch, paymentMethodSetupInfo.afterpayTouch) && + Objects.equals(this.alipayPlus, paymentMethodSetupInfo.alipayPlus) && + Objects.equals(this.amex, paymentMethodSetupInfo.amex) && + Objects.equals(this.applePay, paymentMethodSetupInfo.applePay) && + Objects.equals(this.bcmc, paymentMethodSetupInfo.bcmc) && + Objects.equals(this.businessLineId, paymentMethodSetupInfo.businessLineId) && + Objects.equals(this.cartesBancaires, paymentMethodSetupInfo.cartesBancaires) && + Objects.equals(this.clearpay, paymentMethodSetupInfo.clearpay) && + Objects.equals(this.countries, paymentMethodSetupInfo.countries) && + Objects.equals(this.cup, paymentMethodSetupInfo.cup) && + Objects.equals(this.currencies, paymentMethodSetupInfo.currencies) && + Objects.equals(this.customRoutingFlags, paymentMethodSetupInfo.customRoutingFlags) && + Objects.equals(this.diners, paymentMethodSetupInfo.diners) && + Objects.equals(this.discover, paymentMethodSetupInfo.discover) && + Objects.equals(this.eftDirectdebitCA, paymentMethodSetupInfo.eftDirectdebitCA) && + Objects.equals(this.eftposAustralia, paymentMethodSetupInfo.eftposAustralia) && + Objects.equals(this.girocard, paymentMethodSetupInfo.girocard) && + Objects.equals(this.googlePay, paymentMethodSetupInfo.googlePay) && + Objects.equals(this.ideal, paymentMethodSetupInfo.ideal) && + Objects.equals(this.interacCard, paymentMethodSetupInfo.interacCard) && + Objects.equals(this.jcb, paymentMethodSetupInfo.jcb) && + Objects.equals(this.klarna, paymentMethodSetupInfo.klarna) && + Objects.equals(this.maestro, paymentMethodSetupInfo.maestro) && + Objects.equals(this.maestroUsa, paymentMethodSetupInfo.maestroUsa) && + Objects.equals(this.mc, paymentMethodSetupInfo.mc) && + Objects.equals(this.mealVoucherFR, paymentMethodSetupInfo.mealVoucherFR) && + Objects.equals(this.nyce, paymentMethodSetupInfo.nyce) && + Objects.equals(this.paybybankPlaid, paymentMethodSetupInfo.paybybankPlaid) && + Objects.equals(this.payme, paymentMethodSetupInfo.payme) && + Objects.equals(this.paypal, paymentMethodSetupInfo.paypal) && + Objects.equals(this.payto, paymentMethodSetupInfo.payto) && + Objects.equals(this.pulse, paymentMethodSetupInfo.pulse) && + Objects.equals(this.reference, paymentMethodSetupInfo.reference) && + Objects.equals(this.sepadirectdebit, paymentMethodSetupInfo.sepadirectdebit) && + Objects.equals(this.shopperInteraction, paymentMethodSetupInfo.shopperInteraction) && + Objects.equals(this.sodexo, paymentMethodSetupInfo.sodexo) && + Objects.equals(this.sofort, paymentMethodSetupInfo.sofort) && + Objects.equals(this.star, paymentMethodSetupInfo.star) && + Objects.equals(this.storeIds, paymentMethodSetupInfo.storeIds) && + Objects.equals(this.swish, paymentMethodSetupInfo.swish) && + Objects.equals(this.ticket, paymentMethodSetupInfo.ticket) && + Objects.equals(this.twint, paymentMethodSetupInfo.twint) && + Objects.equals(this.type, paymentMethodSetupInfo.type) && + Objects.equals(this.vipps, paymentMethodSetupInfo.vipps) && + Objects.equals(this.visa, paymentMethodSetupInfo.visa) && + Objects.equals(this.wechatpay, paymentMethodSetupInfo.wechatpay) && + Objects.equals(this.wechatpayPos, paymentMethodSetupInfo.wechatpayPos); } @Override public int hashCode() { - return Objects.hash( - accel, - affirm, - afterpayTouch, - alipayPlus, - amex, - applePay, - bcmc, - businessLineId, - cartesBancaires, - clearpay, - countries, - cup, - currencies, - customRoutingFlags, - diners, - discover, - eftDirectdebitCA, - eftposAustralia, - girocard, - googlePay, - ideal, - interacCard, - jcb, - klarna, - maestro, - maestroUsa, - mc, - mealVoucherFR, - nyce, - paybybankPlaid, - payme, - paypal, - payto, - pulse, - reference, - sepadirectdebit, - shopperInteraction, - sodexo, - sofort, - star, - storeIds, - swish, - ticket, - twint, - type, - vipps, - visa, - wechatpay, - wechatpayPos); + return Objects.hash(accel, affirm, afterpayTouch, alipayPlus, amex, applePay, bcmc, businessLineId, cartesBancaires, clearpay, countries, cup, currencies, customRoutingFlags, diners, discover, eftDirectdebitCA, eftposAustralia, girocard, googlePay, ideal, interacCard, jcb, klarna, maestro, maestroUsa, mc, mealVoucherFR, nyce, paybybankPlaid, payme, paypal, payto, pulse, reference, sepadirectdebit, shopperInteraction, sodexo, sofort, star, storeIds, swish, ticket, twint, type, vipps, visa, wechatpay, wechatpayPos); } @Override @@ -2436,7 +2327,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -2445,23 +2337,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentMethodSetupInfo given an JSON string * * @param jsonString JSON string * @return An instance of PaymentMethodSetupInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentMethodSetupInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethodSetupInfo */ public static PaymentMethodSetupInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentMethodSetupInfo.class); } - - /** - * Convert an instance of PaymentMethodSetupInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentMethodSetupInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/PayoutSettings.java b/src/main/java/com/adyen/model/management/PayoutSettings.java index 77ef9b840..75058fa5a 100644 --- a/src/main/java/com/adyen/model/management/PayoutSettings.java +++ b/src/main/java/com/adyen/model/management/PayoutSettings.java @@ -2,26 +2,31 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** PayoutSettings */ + +/** + * PayoutSettings + */ @JsonPropertyOrder({ PayoutSettings.JSON_PROPERTY_ALLOWED, PayoutSettings.JSON_PROPERTY_ENABLED, @@ -31,6 +36,7 @@ PayoutSettings.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID, PayoutSettings.JSON_PROPERTY_VERIFICATION_STATUS }) + public class PayoutSettings { public static final String JSON_PROPERTY_ALLOWED = "allowed"; private Boolean allowed; @@ -45,13 +51,10 @@ public class PayoutSettings { private String id; /** - * Determines how long it takes for the funds to reach the bank account. Adyen pays out based on - * the [payout frequency](https://docs.adyen.com/account/getting-paid#payout-frequency). Depending - * on the currencies and banks involved in transferring the money, it may take up to three days - * for the payout funds to arrive in the bank account. Possible values: * **first**: same day. * - * **urgent**: the next day. * **normal**: between 1 and 3 days. + * Determines how long it takes for the funds to reach the bank account. Adyen pays out based on the [payout frequency](https://docs.adyen.com/account/getting-paid#payout-frequency). Depending on the currencies and banks involved in transferring the money, it may take up to three days for the payout funds to arrive in the bank account. Possible values: * **first**: same day. * **urgent**: the next day. * **normal**: between 1 and 3 days. */ public enum PriorityEnum { + FIRST(String.valueOf("first")), NORMAL(String.valueOf("normal")), @@ -63,7 +66,7 @@ public enum PriorityEnum { private String value; PriorityEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -84,11 +87,7 @@ public static PriorityEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PriorityEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PriorityEnum.values())); + LOG.warning("PriorityEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PriorityEnum.values())); return null; } } @@ -100,12 +99,10 @@ public static PriorityEnum fromValue(String value) { private String transferInstrumentId; /** - * The status of the verification process for the bank account. Possible values: * **valid**: the - * verification was successful. * **pending**: the verification is in progress. * **invalid**: the - * information provided is not complete. * **rejected**: there are reasons to refuse working with - * this entity. + * The status of the verification process for the bank account. Possible values: * **valid**: the verification was successful. * **pending**: the verification is in progress. * **invalid**: the information provided is not complete. * **rejected**: there are reasons to refuse working with this entity. */ public enum VerificationStatusEnum { + INVALID(String.valueOf("invalid")), PENDING(String.valueOf("pending")), @@ -119,7 +116,7 @@ public enum VerificationStatusEnum { private String value; VerificationStatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -140,11 +137,7 @@ public static VerificationStatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "VerificationStatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(VerificationStatusEnum.values())); + LOG.warning("VerificationStatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(VerificationStatusEnum.values())); return null; } } @@ -152,16 +145,13 @@ public static VerificationStatusEnum fromValue(String value) { public static final String JSON_PROPERTY_VERIFICATION_STATUS = "verificationStatus"; private VerificationStatusEnum verificationStatus; - public PayoutSettings() {} + public PayoutSettings() { + } /** - * Indicates if payouts to the bank account are allowed. This value is set automatically based on - * the status of the verification process. The value is: * **true** if - * `verificationStatus` is **valid**. * **false** for all other values. + * Indicates if payouts to the bank account are allowed. This value is set automatically based on the status of the verification process. The value is: * **true** if `verificationStatus` is **valid**. * **false** for all other values. * - * @param allowed Indicates if payouts to the bank account are allowed. This value is set - * automatically based on the status of the verification process. The value is: * **true** if - * `verificationStatus` is **valid**. * **false** for all other values. + * @param allowed Indicates if payouts to the bank account are allowed. This value is set automatically based on the status of the verification process. The value is: * **true** if `verificationStatus` is **valid**. * **false** for all other values. * @return the current {@code PayoutSettings} instance, allowing for method chaining */ public PayoutSettings allowed(Boolean allowed) { @@ -170,13 +160,8 @@ public PayoutSettings allowed(Boolean allowed) { } /** - * Indicates if payouts to the bank account are allowed. This value is set automatically based on - * the status of the verification process. The value is: * **true** if - * `verificationStatus` is **valid**. * **false** for all other values. - * - * @return allowed Indicates if payouts to the bank account are allowed. This value is set - * automatically based on the status of the verification process. The value is: * **true** if - * `verificationStatus` is **valid**. * **false** for all other values. + * Indicates if payouts to the bank account are allowed. This value is set automatically based on the status of the verification process. The value is: * **true** if `verificationStatus` is **valid**. * **false** for all other values. + * @return allowed Indicates if payouts to the bank account are allowed. This value is set automatically based on the status of the verification process. The value is: * **true** if `verificationStatus` is **valid**. * **false** for all other values. */ @JsonProperty(JSON_PROPERTY_ALLOWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,13 +170,9 @@ public Boolean getAllowed() { } /** - * Indicates if payouts to the bank account are allowed. This value is set automatically based on - * the status of the verification process. The value is: * **true** if - * `verificationStatus` is **valid**. * **false** for all other values. + * Indicates if payouts to the bank account are allowed. This value is set automatically based on the status of the verification process. The value is: * **true** if `verificationStatus` is **valid**. * **false** for all other values. * - * @param allowed Indicates if payouts to the bank account are allowed. This value is set - * automatically based on the status of the verification process. The value is: * **true** if - * `verificationStatus` is **valid**. * **false** for all other values. + * @param allowed Indicates if payouts to the bank account are allowed. This value is set automatically based on the status of the verification process. The value is: * **true** if `verificationStatus` is **valid**. * **false** for all other values. */ @JsonProperty(JSON_PROPERTY_ALLOWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,12 +181,9 @@ public void setAllowed(Boolean allowed) { } /** - * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts - * into this bank account, both `enabled` and `allowed` must be **true**. + * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. * - * @param enabled Indicates if payouts to this bank account are enabled. Default: **true**. To - * receive payouts into this bank account, both `enabled` and `allowed` - * must be **true**. + * @param enabled Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. * @return the current {@code PayoutSettings} instance, allowing for method chaining */ public PayoutSettings enabled(Boolean enabled) { @@ -214,12 +192,8 @@ public PayoutSettings enabled(Boolean enabled) { } /** - * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts - * into this bank account, both `enabled` and `allowed` must be **true**. - * - * @return enabled Indicates if payouts to this bank account are enabled. Default: **true**. To - * receive payouts into this bank account, both `enabled` and `allowed` - * must be **true**. + * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. + * @return enabled Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -228,12 +202,9 @@ public Boolean getEnabled() { } /** - * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts - * into this bank account, both `enabled` and `allowed` must be **true**. + * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. * - * @param enabled Indicates if payouts to this bank account are enabled. Default: **true**. To - * receive payouts into this bank account, both `enabled` and `allowed` - * must be **true**. + * @param enabled Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,22 +213,9 @@ public void setEnabled(Boolean enabled) { } /** - * The date when Adyen starts paying out to this bank account. Format: [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or - * **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if - * payouts are enabled for this bank account. If a date is specified and: * `enabled`: - * **true**, payouts are enabled starting the specified date. * `enabled`: **false**, - * payouts are disabled until the specified date. On the specified date, `enabled` - * changes to **true** and this field is reset to **null**. + * The date when Adyen starts paying out to this bank account. Format: [ISO 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if payouts are enabled for this bank account. If a date is specified and: * `enabled`: **true**, payouts are enabled starting the specified date. * `enabled`: **false**, payouts are disabled until the specified date. On the specified date, `enabled` changes to **true** and this field is reset to **null**. * - * @param enabledFromDate The date when Adyen starts paying out to this bank account. Format: [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or - * **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if - * payouts are enabled for this bank account. If a date is specified and: * - * `enabled`: **true**, payouts are enabled starting the specified date. * - * `enabled`: **false**, payouts are disabled until the specified date. On the - * specified date, `enabled` changes to **true** and this field is reset to - * **null**. + * @param enabledFromDate The date when Adyen starts paying out to this bank account. Format: [ISO 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if payouts are enabled for this bank account. If a date is specified and: * `enabled`: **true**, payouts are enabled starting the specified date. * `enabled`: **false**, payouts are disabled until the specified date. On the specified date, `enabled` changes to **true** and this field is reset to **null**. * @return the current {@code PayoutSettings} instance, allowing for method chaining */ public PayoutSettings enabledFromDate(String enabledFromDate) { @@ -266,22 +224,8 @@ public PayoutSettings enabledFromDate(String enabledFromDate) { } /** - * The date when Adyen starts paying out to this bank account. Format: [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or - * **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if - * payouts are enabled for this bank account. If a date is specified and: * `enabled`: - * **true**, payouts are enabled starting the specified date. * `enabled`: **false**, - * payouts are disabled until the specified date. On the specified date, `enabled` - * changes to **true** and this field is reset to **null**. - * - * @return enabledFromDate The date when Adyen starts paying out to this bank account. Format: - * [ISO 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or - * **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if - * payouts are enabled for this bank account. If a date is specified and: * - * `enabled`: **true**, payouts are enabled starting the specified date. * - * `enabled`: **false**, payouts are disabled until the specified date. On the - * specified date, `enabled` changes to **true** and this field is reset to - * **null**. + * The date when Adyen starts paying out to this bank account. Format: [ISO 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if payouts are enabled for this bank account. If a date is specified and: * `enabled`: **true**, payouts are enabled starting the specified date. * `enabled`: **false**, payouts are disabled until the specified date. On the specified date, `enabled` changes to **true** and this field is reset to **null**. + * @return enabledFromDate The date when Adyen starts paying out to this bank account. Format: [ISO 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if payouts are enabled for this bank account. If a date is specified and: * `enabled`: **true**, payouts are enabled starting the specified date. * `enabled`: **false**, payouts are disabled until the specified date. On the specified date, `enabled` changes to **true** and this field is reset to **null**. */ @JsonProperty(JSON_PROPERTY_ENABLED_FROM_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -290,22 +234,9 @@ public String getEnabledFromDate() { } /** - * The date when Adyen starts paying out to this bank account. Format: [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or - * **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if - * payouts are enabled for this bank account. If a date is specified and: * `enabled`: - * **true**, payouts are enabled starting the specified date. * `enabled`: **false**, - * payouts are disabled until the specified date. On the specified date, `enabled` - * changes to **true** and this field is reset to **null**. + * The date when Adyen starts paying out to this bank account. Format: [ISO 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if payouts are enabled for this bank account. If a date is specified and: * `enabled`: **true**, payouts are enabled starting the specified date. * `enabled`: **false**, payouts are disabled until the specified date. On the specified date, `enabled` changes to **true** and this field is reset to **null**. * - * @param enabledFromDate The date when Adyen starts paying out to this bank account. Format: [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or - * **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if - * payouts are enabled for this bank account. If a date is specified and: * - * `enabled`: **true**, payouts are enabled starting the specified date. * - * `enabled`: **false**, payouts are disabled until the specified date. On the - * specified date, `enabled` changes to **true** and this field is reset to - * **null**. + * @param enabledFromDate The date when Adyen starts paying out to this bank account. Format: [ISO 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if payouts are enabled for this bank account. If a date is specified and: * `enabled`: **true**, payouts are enabled starting the specified date. * `enabled`: **false**, payouts are disabled until the specified date. On the specified date, `enabled` changes to **true** and this field is reset to **null**. */ @JsonProperty(JSON_PROPERTY_ENABLED_FROM_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -326,7 +257,6 @@ public PayoutSettings id(String id) { /** * The unique identifier of the payout setting. - * * @return id The unique identifier of the payout setting. */ @JsonProperty(JSON_PROPERTY_ID) @@ -347,18 +277,9 @@ public void setId(String id) { } /** - * Determines how long it takes for the funds to reach the bank account. Adyen pays out based on - * the [payout frequency](https://docs.adyen.com/account/getting-paid#payout-frequency). Depending - * on the currencies and banks involved in transferring the money, it may take up to three days - * for the payout funds to arrive in the bank account. Possible values: * **first**: same day. * - * **urgent**: the next day. * **normal**: between 1 and 3 days. + * Determines how long it takes for the funds to reach the bank account. Adyen pays out based on the [payout frequency](https://docs.adyen.com/account/getting-paid#payout-frequency). Depending on the currencies and banks involved in transferring the money, it may take up to three days for the payout funds to arrive in the bank account. Possible values: * **first**: same day. * **urgent**: the next day. * **normal**: between 1 and 3 days. * - * @param priority Determines how long it takes for the funds to reach the bank account. Adyen - * pays out based on the [payout - * frequency](https://docs.adyen.com/account/getting-paid#payout-frequency). Depending on the - * currencies and banks involved in transferring the money, it may take up to three days for - * the payout funds to arrive in the bank account. Possible values: * **first**: same day. * - * **urgent**: the next day. * **normal**: between 1 and 3 days. + * @param priority Determines how long it takes for the funds to reach the bank account. Adyen pays out based on the [payout frequency](https://docs.adyen.com/account/getting-paid#payout-frequency). Depending on the currencies and banks involved in transferring the money, it may take up to three days for the payout funds to arrive in the bank account. Possible values: * **first**: same day. * **urgent**: the next day. * **normal**: between 1 and 3 days. * @return the current {@code PayoutSettings} instance, allowing for method chaining */ public PayoutSettings priority(PriorityEnum priority) { @@ -367,18 +288,8 @@ public PayoutSettings priority(PriorityEnum priority) { } /** - * Determines how long it takes for the funds to reach the bank account. Adyen pays out based on - * the [payout frequency](https://docs.adyen.com/account/getting-paid#payout-frequency). Depending - * on the currencies and banks involved in transferring the money, it may take up to three days - * for the payout funds to arrive in the bank account. Possible values: * **first**: same day. * - * **urgent**: the next day. * **normal**: between 1 and 3 days. - * - * @return priority Determines how long it takes for the funds to reach the bank account. Adyen - * pays out based on the [payout - * frequency](https://docs.adyen.com/account/getting-paid#payout-frequency). Depending on the - * currencies and banks involved in transferring the money, it may take up to three days for - * the payout funds to arrive in the bank account. Possible values: * **first**: same day. * - * **urgent**: the next day. * **normal**: between 1 and 3 days. + * Determines how long it takes for the funds to reach the bank account. Adyen pays out based on the [payout frequency](https://docs.adyen.com/account/getting-paid#payout-frequency). Depending on the currencies and banks involved in transferring the money, it may take up to three days for the payout funds to arrive in the bank account. Possible values: * **first**: same day. * **urgent**: the next day. * **normal**: between 1 and 3 days. + * @return priority Determines how long it takes for the funds to reach the bank account. Adyen pays out based on the [payout frequency](https://docs.adyen.com/account/getting-paid#payout-frequency). Depending on the currencies and banks involved in transferring the money, it may take up to three days for the payout funds to arrive in the bank account. Possible values: * **first**: same day. * **urgent**: the next day. * **normal**: between 1 and 3 days. */ @JsonProperty(JSON_PROPERTY_PRIORITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -387,18 +298,9 @@ public PriorityEnum getPriority() { } /** - * Determines how long it takes for the funds to reach the bank account. Adyen pays out based on - * the [payout frequency](https://docs.adyen.com/account/getting-paid#payout-frequency). Depending - * on the currencies and banks involved in transferring the money, it may take up to three days - * for the payout funds to arrive in the bank account. Possible values: * **first**: same day. * - * **urgent**: the next day. * **normal**: between 1 and 3 days. + * Determines how long it takes for the funds to reach the bank account. Adyen pays out based on the [payout frequency](https://docs.adyen.com/account/getting-paid#payout-frequency). Depending on the currencies and banks involved in transferring the money, it may take up to three days for the payout funds to arrive in the bank account. Possible values: * **first**: same day. * **urgent**: the next day. * **normal**: between 1 and 3 days. * - * @param priority Determines how long it takes for the funds to reach the bank account. Adyen - * pays out based on the [payout - * frequency](https://docs.adyen.com/account/getting-paid#payout-frequency). Depending on the - * currencies and banks involved in transferring the money, it may take up to three days for - * the payout funds to arrive in the bank account. Possible values: * **first**: same day. * - * **urgent**: the next day. * **normal**: between 1 and 3 days. + * @param priority Determines how long it takes for the funds to reach the bank account. Adyen pays out based on the [payout frequency](https://docs.adyen.com/account/getting-paid#payout-frequency). Depending on the currencies and banks involved in transferring the money, it may take up to three days for the payout funds to arrive in the bank account. Possible values: * **first**: same day. * **urgent**: the next day. * **normal**: between 1 and 3 days. */ @JsonProperty(JSON_PROPERTY_PRIORITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -407,13 +309,9 @@ public void setPriority(PriorityEnum priority) { } /** - * The unique identifier of the [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) - * that contains the details of the bank account. + * The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) that contains the details of the bank account. * - * @param transferInstrumentId The unique identifier of the [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) - * that contains the details of the bank account. + * @param transferInstrumentId The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) that contains the details of the bank account. * @return the current {@code PayoutSettings} instance, allowing for method chaining */ public PayoutSettings transferInstrumentId(String transferInstrumentId) { @@ -422,13 +320,8 @@ public PayoutSettings transferInstrumentId(String transferInstrumentId) { } /** - * The unique identifier of the [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) - * that contains the details of the bank account. - * - * @return transferInstrumentId The unique identifier of the [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) - * that contains the details of the bank account. + * The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) that contains the details of the bank account. + * @return transferInstrumentId The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) that contains the details of the bank account. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -437,13 +330,9 @@ public String getTransferInstrumentId() { } /** - * The unique identifier of the [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) - * that contains the details of the bank account. + * The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) that contains the details of the bank account. * - * @param transferInstrumentId The unique identifier of the [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) - * that contains the details of the bank account. + * @param transferInstrumentId The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) that contains the details of the bank account. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -452,15 +341,9 @@ public void setTransferInstrumentId(String transferInstrumentId) { } /** - * The status of the verification process for the bank account. Possible values: * **valid**: the - * verification was successful. * **pending**: the verification is in progress. * **invalid**: the - * information provided is not complete. * **rejected**: there are reasons to refuse working with - * this entity. + * The status of the verification process for the bank account. Possible values: * **valid**: the verification was successful. * **pending**: the verification is in progress. * **invalid**: the information provided is not complete. * **rejected**: there are reasons to refuse working with this entity. * - * @param verificationStatus The status of the verification process for the bank account. Possible - * values: * **valid**: the verification was successful. * **pending**: the verification is in - * progress. * **invalid**: the information provided is not complete. * **rejected**: there - * are reasons to refuse working with this entity. + * @param verificationStatus The status of the verification process for the bank account. Possible values: * **valid**: the verification was successful. * **pending**: the verification is in progress. * **invalid**: the information provided is not complete. * **rejected**: there are reasons to refuse working with this entity. * @return the current {@code PayoutSettings} instance, allowing for method chaining */ public PayoutSettings verificationStatus(VerificationStatusEnum verificationStatus) { @@ -469,15 +352,8 @@ public PayoutSettings verificationStatus(VerificationStatusEnum verificationStat } /** - * The status of the verification process for the bank account. Possible values: * **valid**: the - * verification was successful. * **pending**: the verification is in progress. * **invalid**: the - * information provided is not complete. * **rejected**: there are reasons to refuse working with - * this entity. - * - * @return verificationStatus The status of the verification process for the bank account. - * Possible values: * **valid**: the verification was successful. * **pending**: the - * verification is in progress. * **invalid**: the information provided is not complete. * - * **rejected**: there are reasons to refuse working with this entity. + * The status of the verification process for the bank account. Possible values: * **valid**: the verification was successful. * **pending**: the verification is in progress. * **invalid**: the information provided is not complete. * **rejected**: there are reasons to refuse working with this entity. + * @return verificationStatus The status of the verification process for the bank account. Possible values: * **valid**: the verification was successful. * **pending**: the verification is in progress. * **invalid**: the information provided is not complete. * **rejected**: there are reasons to refuse working with this entity. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -486,15 +362,9 @@ public VerificationStatusEnum getVerificationStatus() { } /** - * The status of the verification process for the bank account. Possible values: * **valid**: the - * verification was successful. * **pending**: the verification is in progress. * **invalid**: the - * information provided is not complete. * **rejected**: there are reasons to refuse working with - * this entity. + * The status of the verification process for the bank account. Possible values: * **valid**: the verification was successful. * **pending**: the verification is in progress. * **invalid**: the information provided is not complete. * **rejected**: there are reasons to refuse working with this entity. * - * @param verificationStatus The status of the verification process for the bank account. Possible - * values: * **valid**: the verification was successful. * **pending**: the verification is in - * progress. * **invalid**: the information provided is not complete. * **rejected**: there - * are reasons to refuse working with this entity. + * @param verificationStatus The status of the verification process for the bank account. Possible values: * **valid**: the verification was successful. * **pending**: the verification is in progress. * **invalid**: the information provided is not complete. * **rejected**: there are reasons to refuse working with this entity. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -502,7 +372,9 @@ public void setVerificationStatus(VerificationStatusEnum verificationStatus) { this.verificationStatus = verificationStatus; } - /** Return true if this PayoutSettings object is equal to o. */ + /** + * Return true if this PayoutSettings object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -512,19 +384,18 @@ public boolean equals(Object o) { return false; } PayoutSettings payoutSettings = (PayoutSettings) o; - return Objects.equals(this.allowed, payoutSettings.allowed) - && Objects.equals(this.enabled, payoutSettings.enabled) - && Objects.equals(this.enabledFromDate, payoutSettings.enabledFromDate) - && Objects.equals(this.id, payoutSettings.id) - && Objects.equals(this.priority, payoutSettings.priority) - && Objects.equals(this.transferInstrumentId, payoutSettings.transferInstrumentId) - && Objects.equals(this.verificationStatus, payoutSettings.verificationStatus); + return Objects.equals(this.allowed, payoutSettings.allowed) && + Objects.equals(this.enabled, payoutSettings.enabled) && + Objects.equals(this.enabledFromDate, payoutSettings.enabledFromDate) && + Objects.equals(this.id, payoutSettings.id) && + Objects.equals(this.priority, payoutSettings.priority) && + Objects.equals(this.transferInstrumentId, payoutSettings.transferInstrumentId) && + Objects.equals(this.verificationStatus, payoutSettings.verificationStatus); } @Override public int hashCode() { - return Objects.hash( - allowed, enabled, enabledFromDate, id, priority, transferInstrumentId, verificationStatus); + return Objects.hash(allowed, enabled, enabledFromDate, id, priority, transferInstrumentId, verificationStatus); } @Override @@ -536,16 +407,15 @@ public String toString() { sb.append(" enabledFromDate: ").append(toIndentedString(enabledFromDate)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); - sb.append(" transferInstrumentId: ") - .append(toIndentedString(transferInstrumentId)) - .append("\n"); + sb.append(" transferInstrumentId: ").append(toIndentedString(transferInstrumentId)).append("\n"); sb.append(" verificationStatus: ").append(toIndentedString(verificationStatus)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -554,7 +424,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PayoutSettings given an JSON string * * @param jsonString JSON string @@ -564,12 +434,11 @@ private String toIndentedString(Object o) { public static PayoutSettings fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayoutSettings.class); } - - /** - * Convert an instance of PayoutSettings to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PayoutSettings to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/PayoutSettingsRequest.java b/src/main/java/com/adyen/model/management/PayoutSettingsRequest.java index 2a2c98116..fc78fae18 100644 --- a/src/main/java/com/adyen/model/management/PayoutSettingsRequest.java +++ b/src/main/java/com/adyen/model/management/PayoutSettingsRequest.java @@ -2,27 +2,37 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** PayoutSettingsRequest */ + +/** + * PayoutSettingsRequest + */ @JsonPropertyOrder({ PayoutSettingsRequest.JSON_PROPERTY_ENABLED, PayoutSettingsRequest.JSON_PROPERTY_ENABLED_FROM_DATE, PayoutSettingsRequest.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID }) + public class PayoutSettingsRequest { public static final String JSON_PROPERTY_ENABLED = "enabled"; private Boolean enabled; @@ -33,15 +43,13 @@ public class PayoutSettingsRequest { public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_ID = "transferInstrumentId"; private String transferInstrumentId; - public PayoutSettingsRequest() {} + public PayoutSettingsRequest() { + } /** - * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts - * into this bank account, both `enabled` and `allowed` must be **true**. + * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. * - * @param enabled Indicates if payouts to this bank account are enabled. Default: **true**. To - * receive payouts into this bank account, both `enabled` and `allowed` - * must be **true**. + * @param enabled Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. * @return the current {@code PayoutSettingsRequest} instance, allowing for method chaining */ public PayoutSettingsRequest enabled(Boolean enabled) { @@ -50,12 +58,8 @@ public PayoutSettingsRequest enabled(Boolean enabled) { } /** - * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts - * into this bank account, both `enabled` and `allowed` must be **true**. - * - * @return enabled Indicates if payouts to this bank account are enabled. Default: **true**. To - * receive payouts into this bank account, both `enabled` and `allowed` - * must be **true**. + * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. + * @return enabled Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,12 +68,9 @@ public Boolean getEnabled() { } /** - * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts - * into this bank account, both `enabled` and `allowed` must be **true**. + * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. * - * @param enabled Indicates if payouts to this bank account are enabled. Default: **true**. To - * receive payouts into this bank account, both `enabled` and `allowed` - * must be **true**. + * @param enabled Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -78,22 +79,9 @@ public void setEnabled(Boolean enabled) { } /** - * The date when Adyen starts paying out to this bank account. Format: [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or - * **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if - * payouts are enabled for this bank account. If a date is specified and: * `enabled`: - * **true**, payouts are enabled starting the specified date. * `enabled`: **false**, - * payouts are disabled until the specified date. On the specified date, `enabled` - * changes to **true** and this field is reset to **null**. + * The date when Adyen starts paying out to this bank account. Format: [ISO 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if payouts are enabled for this bank account. If a date is specified and: * `enabled`: **true**, payouts are enabled starting the specified date. * `enabled`: **false**, payouts are disabled until the specified date. On the specified date, `enabled` changes to **true** and this field is reset to **null**. * - * @param enabledFromDate The date when Adyen starts paying out to this bank account. Format: [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or - * **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if - * payouts are enabled for this bank account. If a date is specified and: * - * `enabled`: **true**, payouts are enabled starting the specified date. * - * `enabled`: **false**, payouts are disabled until the specified date. On the - * specified date, `enabled` changes to **true** and this field is reset to - * **null**. + * @param enabledFromDate The date when Adyen starts paying out to this bank account. Format: [ISO 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if payouts are enabled for this bank account. If a date is specified and: * `enabled`: **true**, payouts are enabled starting the specified date. * `enabled`: **false**, payouts are disabled until the specified date. On the specified date, `enabled` changes to **true** and this field is reset to **null**. * @return the current {@code PayoutSettingsRequest} instance, allowing for method chaining */ public PayoutSettingsRequest enabledFromDate(String enabledFromDate) { @@ -102,22 +90,8 @@ public PayoutSettingsRequest enabledFromDate(String enabledFromDate) { } /** - * The date when Adyen starts paying out to this bank account. Format: [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or - * **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if - * payouts are enabled for this bank account. If a date is specified and: * `enabled`: - * **true**, payouts are enabled starting the specified date. * `enabled`: **false**, - * payouts are disabled until the specified date. On the specified date, `enabled` - * changes to **true** and this field is reset to **null**. - * - * @return enabledFromDate The date when Adyen starts paying out to this bank account. Format: - * [ISO 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or - * **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if - * payouts are enabled for this bank account. If a date is specified and: * - * `enabled`: **true**, payouts are enabled starting the specified date. * - * `enabled`: **false**, payouts are disabled until the specified date. On the - * specified date, `enabled` changes to **true** and this field is reset to - * **null**. + * The date when Adyen starts paying out to this bank account. Format: [ISO 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if payouts are enabled for this bank account. If a date is specified and: * `enabled`: **true**, payouts are enabled starting the specified date. * `enabled`: **false**, payouts are disabled until the specified date. On the specified date, `enabled` changes to **true** and this field is reset to **null**. + * @return enabledFromDate The date when Adyen starts paying out to this bank account. Format: [ISO 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if payouts are enabled for this bank account. If a date is specified and: * `enabled`: **true**, payouts are enabled starting the specified date. * `enabled`: **false**, payouts are disabled until the specified date. On the specified date, `enabled` changes to **true** and this field is reset to **null**. */ @JsonProperty(JSON_PROPERTY_ENABLED_FROM_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,22 +100,9 @@ public String getEnabledFromDate() { } /** - * The date when Adyen starts paying out to this bank account. Format: [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or - * **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if - * payouts are enabled for this bank account. If a date is specified and: * `enabled`: - * **true**, payouts are enabled starting the specified date. * `enabled`: **false**, - * payouts are disabled until the specified date. On the specified date, `enabled` - * changes to **true** and this field is reset to **null**. + * The date when Adyen starts paying out to this bank account. Format: [ISO 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if payouts are enabled for this bank account. If a date is specified and: * `enabled`: **true**, payouts are enabled starting the specified date. * `enabled`: **false**, payouts are disabled until the specified date. On the specified date, `enabled` changes to **true** and this field is reset to **null**. * - * @param enabledFromDate The date when Adyen starts paying out to this bank account. Format: [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or - * **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if - * payouts are enabled for this bank account. If a date is specified and: * - * `enabled`: **true**, payouts are enabled starting the specified date. * - * `enabled`: **false**, payouts are disabled until the specified date. On the - * specified date, `enabled` changes to **true** and this field is reset to - * **null**. + * @param enabledFromDate The date when Adyen starts paying out to this bank account. Format: [ISO 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if payouts are enabled for this bank account. If a date is specified and: * `enabled`: **true**, payouts are enabled starting the specified date. * `enabled`: **false**, payouts are disabled until the specified date. On the specified date, `enabled` changes to **true** and this field is reset to **null**. */ @JsonProperty(JSON_PROPERTY_ENABLED_FROM_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,13 +111,9 @@ public void setEnabledFromDate(String enabledFromDate) { } /** - * The unique identifier of the [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) - * that contains the details of the bank account. + * The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) that contains the details of the bank account. * - * @param transferInstrumentId The unique identifier of the [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) - * that contains the details of the bank account. + * @param transferInstrumentId The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) that contains the details of the bank account. * @return the current {@code PayoutSettingsRequest} instance, allowing for method chaining */ public PayoutSettingsRequest transferInstrumentId(String transferInstrumentId) { @@ -165,13 +122,8 @@ public PayoutSettingsRequest transferInstrumentId(String transferInstrumentId) { } /** - * The unique identifier of the [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) - * that contains the details of the bank account. - * - * @return transferInstrumentId The unique identifier of the [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) - * that contains the details of the bank account. + * The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) that contains the details of the bank account. + * @return transferInstrumentId The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) that contains the details of the bank account. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -180,13 +132,9 @@ public String getTransferInstrumentId() { } /** - * The unique identifier of the [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) - * that contains the details of the bank account. + * The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) that contains the details of the bank account. * - * @param transferInstrumentId The unique identifier of the [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) - * that contains the details of the bank account. + * @param transferInstrumentId The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) that contains the details of the bank account. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,7 +142,9 @@ public void setTransferInstrumentId(String transferInstrumentId) { this.transferInstrumentId = transferInstrumentId; } - /** Return true if this PayoutSettingsRequest object is equal to o. */ + /** + * Return true if this PayoutSettingsRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -204,9 +154,9 @@ public boolean equals(Object o) { return false; } PayoutSettingsRequest payoutSettingsRequest = (PayoutSettingsRequest) o; - return Objects.equals(this.enabled, payoutSettingsRequest.enabled) - && Objects.equals(this.enabledFromDate, payoutSettingsRequest.enabledFromDate) - && Objects.equals(this.transferInstrumentId, payoutSettingsRequest.transferInstrumentId); + return Objects.equals(this.enabled, payoutSettingsRequest.enabled) && + Objects.equals(this.enabledFromDate, payoutSettingsRequest.enabledFromDate) && + Objects.equals(this.transferInstrumentId, payoutSettingsRequest.transferInstrumentId); } @Override @@ -220,15 +170,14 @@ public String toString() { sb.append("class PayoutSettingsRequest {\n"); sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); sb.append(" enabledFromDate: ").append(toIndentedString(enabledFromDate)).append("\n"); - sb.append(" transferInstrumentId: ") - .append(toIndentedString(transferInstrumentId)) - .append("\n"); + sb.append(" transferInstrumentId: ").append(toIndentedString(transferInstrumentId)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -237,23 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PayoutSettingsRequest given an JSON string * * @param jsonString JSON string * @return An instance of PayoutSettingsRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PayoutSettingsRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to PayoutSettingsRequest */ public static PayoutSettingsRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayoutSettingsRequest.class); } - - /** - * Convert an instance of PayoutSettingsRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PayoutSettingsRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/PayoutSettingsResponse.java b/src/main/java/com/adyen/model/management/PayoutSettingsResponse.java index f30730c44..01fc014eb 100644 --- a/src/main/java/com/adyen/model/management/PayoutSettingsResponse.java +++ b/src/main/java/com/adyen/model/management/PayoutSettingsResponse.java @@ -2,30 +2,44 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.PayoutSettings; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * PayoutSettingsResponse + */ +@JsonPropertyOrder({ + PayoutSettingsResponse.JSON_PROPERTY_DATA +}) -/** PayoutSettingsResponse */ -@JsonPropertyOrder({PayoutSettingsResponse.JSON_PROPERTY_DATA}) public class PayoutSettingsResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; - public PayoutSettingsResponse() {} + public PayoutSettingsResponse() { + } /** * The list of payout accounts. @@ -48,7 +62,6 @@ public PayoutSettingsResponse addDataItem(PayoutSettings dataItem) { /** * The list of payout accounts. - * * @return data The list of payout accounts. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -68,7 +81,9 @@ public void setData(List data) { this.data = data; } - /** Return true if this PayoutSettingsResponse object is equal to o. */ + /** + * Return true if this PayoutSettingsResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -96,7 +111,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -105,23 +121,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PayoutSettingsResponse given an JSON string * * @param jsonString JSON string * @return An instance of PayoutSettingsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PayoutSettingsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to PayoutSettingsResponse */ public static PayoutSettingsResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayoutSettingsResponse.class); } - - /** - * Convert an instance of PayoutSettingsResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PayoutSettingsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Profile.java b/src/main/java/com/adyen/model/management/Profile.java index e3af506ef..6f5c9b450 100644 --- a/src/main/java/com/adyen/model/management/Profile.java +++ b/src/main/java/com/adyen/model/management/Profile.java @@ -2,22 +2,32 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.ModelFile; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Profile */ + +/** + * Profile + */ @JsonPropertyOrder({ Profile.JSON_PROPERTY_AUTH_TYPE, Profile.JSON_PROPERTY_AUTO_WIFI, @@ -39,6 +49,7 @@ Profile.JSON_PROPERTY_SSID, Profile.JSON_PROPERTY_WSEC }) + public class Profile { public static final String JSON_PROPERTY_AUTH_TYPE = "authType"; private String authType; @@ -97,14 +108,13 @@ public class Profile { public static final String JSON_PROPERTY_WSEC = "wsec"; private String wsec; - public Profile() {} + public Profile() { + } /** - * The type of Wi-Fi network. Possible values: **wpa-psk**, **wpa2-psk**, **wpa-eap**, - * **wpa2-eap**. + * The type of Wi-Fi network. Possible values: **wpa-psk**, **wpa2-psk**, **wpa-eap**, **wpa2-eap**. * - * @param authType The type of Wi-Fi network. Possible values: **wpa-psk**, **wpa2-psk**, - * **wpa-eap**, **wpa2-eap**. + * @param authType The type of Wi-Fi network. Possible values: **wpa-psk**, **wpa2-psk**, **wpa-eap**, **wpa2-eap**. * @return the current {@code Profile} instance, allowing for method chaining */ public Profile authType(String authType) { @@ -113,11 +123,8 @@ public Profile authType(String authType) { } /** - * The type of Wi-Fi network. Possible values: **wpa-psk**, **wpa2-psk**, **wpa-eap**, - * **wpa2-eap**. - * - * @return authType The type of Wi-Fi network. Possible values: **wpa-psk**, **wpa2-psk**, - * **wpa-eap**, **wpa2-eap**. + * The type of Wi-Fi network. Possible values: **wpa-psk**, **wpa2-psk**, **wpa-eap**, **wpa2-eap**. + * @return authType The type of Wi-Fi network. Possible values: **wpa-psk**, **wpa2-psk**, **wpa-eap**, **wpa2-eap**. */ @JsonProperty(JSON_PROPERTY_AUTH_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,11 +133,9 @@ public String getAuthType() { } /** - * The type of Wi-Fi network. Possible values: **wpa-psk**, **wpa2-psk**, **wpa-eap**, - * **wpa2-eap**. + * The type of Wi-Fi network. Possible values: **wpa-psk**, **wpa2-psk**, **wpa-eap**, **wpa2-eap**. * - * @param authType The type of Wi-Fi network. Possible values: **wpa-psk**, **wpa2-psk**, - * **wpa-eap**, **wpa2-eap**. + * @param authType The type of Wi-Fi network. Possible values: **wpa-psk**, **wpa2-psk**, **wpa-eap**, **wpa2-eap**. */ @JsonProperty(JSON_PROPERTY_AUTH_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,11 +144,9 @@ public void setAuthType(String authType) { } /** - * Indicates whether to automatically select the best authentication method available. Does not - * work on older terminal models. + * Indicates whether to automatically select the best authentication method available. Does not work on older terminal models. * - * @param autoWifi Indicates whether to automatically select the best authentication method - * available. Does not work on older terminal models. + * @param autoWifi Indicates whether to automatically select the best authentication method available. Does not work on older terminal models. * @return the current {@code Profile} instance, allowing for method chaining */ public Profile autoWifi(Boolean autoWifi) { @@ -152,11 +155,8 @@ public Profile autoWifi(Boolean autoWifi) { } /** - * Indicates whether to automatically select the best authentication method available. Does not - * work on older terminal models. - * - * @return autoWifi Indicates whether to automatically select the best authentication method - * available. Does not work on older terminal models. + * Indicates whether to automatically select the best authentication method available. Does not work on older terminal models. + * @return autoWifi Indicates whether to automatically select the best authentication method available. Does not work on older terminal models. */ @JsonProperty(JSON_PROPERTY_AUTO_WIFI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -165,11 +165,9 @@ public Boolean getAutoWifi() { } /** - * Indicates whether to automatically select the best authentication method available. Does not - * work on older terminal models. + * Indicates whether to automatically select the best authentication method available. Does not work on older terminal models. * - * @param autoWifi Indicates whether to automatically select the best authentication method - * available. Does not work on older terminal models. + * @param autoWifi Indicates whether to automatically select the best authentication method available. Does not work on older terminal models. */ @JsonProperty(JSON_PROPERTY_AUTO_WIFI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,11 +176,9 @@ public void setAutoWifi(Boolean autoWifi) { } /** - * Use **infra** for infrastructure-based networks. This applies to most networks. Use **adhoc** - * only if the communication is p2p-based between base stations. + * Use **infra** for infrastructure-based networks. This applies to most networks. Use **adhoc** only if the communication is p2p-based between base stations. * - * @param bssType Use **infra** for infrastructure-based networks. This applies to most networks. - * Use **adhoc** only if the communication is p2p-based between base stations. + * @param bssType Use **infra** for infrastructure-based networks. This applies to most networks. Use **adhoc** only if the communication is p2p-based between base stations. * @return the current {@code Profile} instance, allowing for method chaining */ public Profile bssType(String bssType) { @@ -191,11 +187,8 @@ public Profile bssType(String bssType) { } /** - * Use **infra** for infrastructure-based networks. This applies to most networks. Use **adhoc** - * only if the communication is p2p-based between base stations. - * - * @return bssType Use **infra** for infrastructure-based networks. This applies to most networks. - * Use **adhoc** only if the communication is p2p-based between base stations. + * Use **infra** for infrastructure-based networks. This applies to most networks. Use **adhoc** only if the communication is p2p-based between base stations. + * @return bssType Use **infra** for infrastructure-based networks. This applies to most networks. Use **adhoc** only if the communication is p2p-based between base stations. */ @JsonProperty(JSON_PROPERTY_BSS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,11 +197,9 @@ public String getBssType() { } /** - * Use **infra** for infrastructure-based networks. This applies to most networks. Use **adhoc** - * only if the communication is p2p-based between base stations. + * Use **infra** for infrastructure-based networks. This applies to most networks. Use **adhoc** only if the communication is p2p-based between base stations. * - * @param bssType Use **infra** for infrastructure-based networks. This applies to most networks. - * Use **adhoc** only if the communication is p2p-based between base stations. + * @param bssType Use **infra** for infrastructure-based networks. This applies to most networks. Use **adhoc** only if the communication is p2p-based between base stations. */ @JsonProperty(JSON_PROPERTY_BSS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -217,11 +208,9 @@ public void setBssType(String bssType) { } /** - * The channel number of the Wi-Fi network. The recommended setting is **0** for automatic channel - * selection. + * The channel number of the Wi-Fi network. The recommended setting is **0** for automatic channel selection. * - * @param channel The channel number of the Wi-Fi network. The recommended setting is **0** for - * automatic channel selection. + * @param channel The channel number of the Wi-Fi network. The recommended setting is **0** for automatic channel selection. * @return the current {@code Profile} instance, allowing for method chaining */ public Profile channel(Integer channel) { @@ -230,11 +219,8 @@ public Profile channel(Integer channel) { } /** - * The channel number of the Wi-Fi network. The recommended setting is **0** for automatic channel - * selection. - * - * @return channel The channel number of the Wi-Fi network. The recommended setting is **0** for - * automatic channel selection. + * The channel number of the Wi-Fi network. The recommended setting is **0** for automatic channel selection. + * @return channel The channel number of the Wi-Fi network. The recommended setting is **0** for automatic channel selection. */ @JsonProperty(JSON_PROPERTY_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -243,11 +229,9 @@ public Integer getChannel() { } /** - * The channel number of the Wi-Fi network. The recommended setting is **0** for automatic channel - * selection. + * The channel number of the Wi-Fi network. The recommended setting is **0** for automatic channel selection. * - * @param channel The channel number of the Wi-Fi network. The recommended setting is **0** for - * automatic channel selection. + * @param channel The channel number of the Wi-Fi network. The recommended setting is **0** for automatic channel selection. */ @JsonProperty(JSON_PROPERTY_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -256,11 +240,9 @@ public void setChannel(Integer channel) { } /** - * Indicates whether this is your preferred wireless network. If **true**, the terminal will try - * connecting to this network first. + * Indicates whether this is your preferred wireless network. If **true**, the terminal will try connecting to this network first. * - * @param defaultProfile Indicates whether this is your preferred wireless network. If **true**, - * the terminal will try connecting to this network first. + * @param defaultProfile Indicates whether this is your preferred wireless network. If **true**, the terminal will try connecting to this network first. * @return the current {@code Profile} instance, allowing for method chaining */ public Profile defaultProfile(Boolean defaultProfile) { @@ -269,11 +251,8 @@ public Profile defaultProfile(Boolean defaultProfile) { } /** - * Indicates whether this is your preferred wireless network. If **true**, the terminal will try - * connecting to this network first. - * - * @return defaultProfile Indicates whether this is your preferred wireless network. If **true**, - * the terminal will try connecting to this network first. + * Indicates whether this is your preferred wireless network. If **true**, the terminal will try connecting to this network first. + * @return defaultProfile Indicates whether this is your preferred wireless network. If **true**, the terminal will try connecting to this network first. */ @JsonProperty(JSON_PROPERTY_DEFAULT_PROFILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -282,11 +261,9 @@ public Boolean getDefaultProfile() { } /** - * Indicates whether this is your preferred wireless network. If **true**, the terminal will try - * connecting to this network first. + * Indicates whether this is your preferred wireless network. If **true**, the terminal will try connecting to this network first. * - * @param defaultProfile Indicates whether this is your preferred wireless network. If **true**, - * the terminal will try connecting to this network first. + * @param defaultProfile Indicates whether this is your preferred wireless network. If **true**, the terminal will try connecting to this network first. */ @JsonProperty(JSON_PROPERTY_DEFAULT_PROFILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -295,11 +272,9 @@ public void setDefaultProfile(Boolean defaultProfile) { } /** - * Specifies the server domain name for EAP-TLS and EAP-PEAP WiFi profiles on Android 11 and - * above. + * Specifies the server domain name for EAP-TLS and EAP-PEAP WiFi profiles on Android 11 and above. * - * @param domainSuffix Specifies the server domain name for EAP-TLS and EAP-PEAP WiFi profiles on - * Android 11 and above. + * @param domainSuffix Specifies the server domain name for EAP-TLS and EAP-PEAP WiFi profiles on Android 11 and above. * @return the current {@code Profile} instance, allowing for method chaining */ public Profile domainSuffix(String domainSuffix) { @@ -308,11 +283,8 @@ public Profile domainSuffix(String domainSuffix) { } /** - * Specifies the server domain name for EAP-TLS and EAP-PEAP WiFi profiles on Android 11 and - * above. - * - * @return domainSuffix Specifies the server domain name for EAP-TLS and EAP-PEAP WiFi profiles on - * Android 11 and above. + * Specifies the server domain name for EAP-TLS and EAP-PEAP WiFi profiles on Android 11 and above. + * @return domainSuffix Specifies the server domain name for EAP-TLS and EAP-PEAP WiFi profiles on Android 11 and above. */ @JsonProperty(JSON_PROPERTY_DOMAIN_SUFFIX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -321,11 +293,9 @@ public String getDomainSuffix() { } /** - * Specifies the server domain name for EAP-TLS and EAP-PEAP WiFi profiles on Android 11 and - * above. + * Specifies the server domain name for EAP-TLS and EAP-PEAP WiFi profiles on Android 11 and above. * - * @param domainSuffix Specifies the server domain name for EAP-TLS and EAP-PEAP WiFi profiles on - * Android 11 and above. + * @param domainSuffix Specifies the server domain name for EAP-TLS and EAP-PEAP WiFi profiles on Android 11 and above. */ @JsonProperty(JSON_PROPERTY_DOMAIN_SUFFIX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -334,11 +304,9 @@ public void setDomainSuffix(String domainSuffix) { } /** - * For `authType` **wpa-eap** or **wpa2-eap**. Possible values: **tls**, **peap**, - * **leap**, **fast** + * For `authType` **wpa-eap** or **wpa2-eap**. Possible values: **tls**, **peap**, **leap**, **fast** * - * @param eap For `authType` **wpa-eap** or **wpa2-eap**. Possible values: **tls**, - * **peap**, **leap**, **fast** + * @param eap For `authType` **wpa-eap** or **wpa2-eap**. Possible values: **tls**, **peap**, **leap**, **fast** * @return the current {@code Profile} instance, allowing for method chaining */ public Profile eap(String eap) { @@ -347,11 +315,8 @@ public Profile eap(String eap) { } /** - * For `authType` **wpa-eap** or **wpa2-eap**. Possible values: **tls**, **peap**, - * **leap**, **fast** - * - * @return eap For `authType` **wpa-eap** or **wpa2-eap**. Possible values: **tls**, - * **peap**, **leap**, **fast** + * For `authType` **wpa-eap** or **wpa2-eap**. Possible values: **tls**, **peap**, **leap**, **fast** + * @return eap For `authType` **wpa-eap** or **wpa2-eap**. Possible values: **tls**, **peap**, **leap**, **fast** */ @JsonProperty(JSON_PROPERTY_EAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -360,11 +325,9 @@ public String getEap() { } /** - * For `authType` **wpa-eap** or **wpa2-eap**. Possible values: **tls**, **peap**, - * **leap**, **fast** + * For `authType` **wpa-eap** or **wpa2-eap**. Possible values: **tls**, **peap**, **leap**, **fast** * - * @param eap For `authType` **wpa-eap** or **wpa2-eap**. Possible values: **tls**, - * **peap**, **leap**, **fast** + * @param eap For `authType` **wpa-eap** or **wpa2-eap**. Possible values: **tls**, **peap**, **leap**, **fast** */ @JsonProperty(JSON_PROPERTY_EAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -375,7 +338,7 @@ public void setEap(String eap) { /** * eapCaCert * - * @param eapCaCert + * @param eapCaCert * @return the current {@code Profile} instance, allowing for method chaining */ public Profile eapCaCert(ModelFile eapCaCert) { @@ -385,8 +348,7 @@ public Profile eapCaCert(ModelFile eapCaCert) { /** * Get eapCaCert - * - * @return eapCaCert + * @return eapCaCert */ @JsonProperty(JSON_PROPERTY_EAP_CA_CERT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -397,7 +359,7 @@ public ModelFile getEapCaCert() { /** * eapCaCert * - * @param eapCaCert + * @param eapCaCert */ @JsonProperty(JSON_PROPERTY_EAP_CA_CERT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -408,7 +370,7 @@ public void setEapCaCert(ModelFile eapCaCert) { /** * eapClientCert * - * @param eapClientCert + * @param eapClientCert * @return the current {@code Profile} instance, allowing for method chaining */ public Profile eapClientCert(ModelFile eapClientCert) { @@ -418,8 +380,7 @@ public Profile eapClientCert(ModelFile eapClientCert) { /** * Get eapClientCert - * - * @return eapClientCert + * @return eapClientCert */ @JsonProperty(JSON_PROPERTY_EAP_CLIENT_CERT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -430,7 +391,7 @@ public ModelFile getEapClientCert() { /** * eapClientCert * - * @param eapClientCert + * @param eapClientCert */ @JsonProperty(JSON_PROPERTY_EAP_CLIENT_CERT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -441,7 +402,7 @@ public void setEapClientCert(ModelFile eapClientCert) { /** * eapClientKey * - * @param eapClientKey + * @param eapClientKey * @return the current {@code Profile} instance, allowing for method chaining */ public Profile eapClientKey(ModelFile eapClientKey) { @@ -451,8 +412,7 @@ public Profile eapClientKey(ModelFile eapClientKey) { /** * Get eapClientKey - * - * @return eapClientKey + * @return eapClientKey */ @JsonProperty(JSON_PROPERTY_EAP_CLIENT_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -463,7 +423,7 @@ public ModelFile getEapClientKey() { /** * eapClientKey * - * @param eapClientKey + * @param eapClientKey */ @JsonProperty(JSON_PROPERTY_EAP_CLIENT_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -472,11 +432,9 @@ public void setEapClientKey(ModelFile eapClientKey) { } /** - * For `eap` **tls**. The password of the RSA key file, if that file is - * password-protected. + * For `eap` **tls**. The password of the RSA key file, if that file is password-protected. * - * @param eapClientPwd For `eap` **tls**. The password of the RSA key file, if that file - * is password-protected. + * @param eapClientPwd For `eap` **tls**. The password of the RSA key file, if that file is password-protected. * @return the current {@code Profile} instance, allowing for method chaining */ public Profile eapClientPwd(String eapClientPwd) { @@ -485,11 +443,8 @@ public Profile eapClientPwd(String eapClientPwd) { } /** - * For `eap` **tls**. The password of the RSA key file, if that file is - * password-protected. - * - * @return eapClientPwd For `eap` **tls**. The password of the RSA key file, if that - * file is password-protected. + * For `eap` **tls**. The password of the RSA key file, if that file is password-protected. + * @return eapClientPwd For `eap` **tls**. The password of the RSA key file, if that file is password-protected. */ @JsonProperty(JSON_PROPERTY_EAP_CLIENT_PWD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -498,11 +453,9 @@ public String getEapClientPwd() { } /** - * For `eap` **tls**. The password of the RSA key file, if that file is - * password-protected. + * For `eap` **tls**. The password of the RSA key file, if that file is password-protected. * - * @param eapClientPwd For `eap` **tls**. The password of the RSA key file, if that file - * is password-protected. + * @param eapClientPwd For `eap` **tls**. The password of the RSA key file, if that file is password-protected. */ @JsonProperty(JSON_PROPERTY_EAP_CLIENT_PWD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -511,11 +464,9 @@ public void setEapClientPwd(String eapClientPwd) { } /** - * For `authType` **wpa-eap** or **wpa2-eap**. The EAP-PEAP username from your MS-CHAP - * account. Must match the configuration of your RADIUS server. + * For `authType` **wpa-eap** or **wpa2-eap**. The EAP-PEAP username from your MS-CHAP account. Must match the configuration of your RADIUS server. * - * @param eapIdentity For `authType` **wpa-eap** or **wpa2-eap**. The EAP-PEAP username - * from your MS-CHAP account. Must match the configuration of your RADIUS server. + * @param eapIdentity For `authType` **wpa-eap** or **wpa2-eap**. The EAP-PEAP username from your MS-CHAP account. Must match the configuration of your RADIUS server. * @return the current {@code Profile} instance, allowing for method chaining */ public Profile eapIdentity(String eapIdentity) { @@ -524,11 +475,8 @@ public Profile eapIdentity(String eapIdentity) { } /** - * For `authType` **wpa-eap** or **wpa2-eap**. The EAP-PEAP username from your MS-CHAP - * account. Must match the configuration of your RADIUS server. - * - * @return eapIdentity For `authType` **wpa-eap** or **wpa2-eap**. The EAP-PEAP username - * from your MS-CHAP account. Must match the configuration of your RADIUS server. + * For `authType` **wpa-eap** or **wpa2-eap**. The EAP-PEAP username from your MS-CHAP account. Must match the configuration of your RADIUS server. + * @return eapIdentity For `authType` **wpa-eap** or **wpa2-eap**. The EAP-PEAP username from your MS-CHAP account. Must match the configuration of your RADIUS server. */ @JsonProperty(JSON_PROPERTY_EAP_IDENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -537,11 +485,9 @@ public String getEapIdentity() { } /** - * For `authType` **wpa-eap** or **wpa2-eap**. The EAP-PEAP username from your MS-CHAP - * account. Must match the configuration of your RADIUS server. + * For `authType` **wpa-eap** or **wpa2-eap**. The EAP-PEAP username from your MS-CHAP account. Must match the configuration of your RADIUS server. * - * @param eapIdentity For `authType` **wpa-eap** or **wpa2-eap**. The EAP-PEAP username - * from your MS-CHAP account. Must match the configuration of your RADIUS server. + * @param eapIdentity For `authType` **wpa-eap** or **wpa2-eap**. The EAP-PEAP username from your MS-CHAP account. Must match the configuration of your RADIUS server. */ @JsonProperty(JSON_PROPERTY_EAP_IDENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -552,7 +498,7 @@ public void setEapIdentity(String eapIdentity) { /** * eapIntermediateCert * - * @param eapIntermediateCert + * @param eapIntermediateCert * @return the current {@code Profile} instance, allowing for method chaining */ public Profile eapIntermediateCert(ModelFile eapIntermediateCert) { @@ -562,8 +508,7 @@ public Profile eapIntermediateCert(ModelFile eapIntermediateCert) { /** * Get eapIntermediateCert - * - * @return eapIntermediateCert + * @return eapIntermediateCert */ @JsonProperty(JSON_PROPERTY_EAP_INTERMEDIATE_CERT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -574,7 +519,7 @@ public ModelFile getEapIntermediateCert() { /** * eapIntermediateCert * - * @param eapIntermediateCert + * @param eapIntermediateCert */ @JsonProperty(JSON_PROPERTY_EAP_INTERMEDIATE_CERT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -583,11 +528,9 @@ public void setEapIntermediateCert(ModelFile eapIntermediateCert) { } /** - * For `eap` **peap**. The EAP-PEAP password from your MS-CHAP account. Must match the - * configuration of your RADIUS server. + * For `eap` **peap**. The EAP-PEAP password from your MS-CHAP account. Must match the configuration of your RADIUS server. * - * @param eapPwd For `eap` **peap**. The EAP-PEAP password from your MS-CHAP account. - * Must match the configuration of your RADIUS server. + * @param eapPwd For `eap` **peap**. The EAP-PEAP password from your MS-CHAP account. Must match the configuration of your RADIUS server. * @return the current {@code Profile} instance, allowing for method chaining */ public Profile eapPwd(String eapPwd) { @@ -596,11 +539,8 @@ public Profile eapPwd(String eapPwd) { } /** - * For `eap` **peap**. The EAP-PEAP password from your MS-CHAP account. Must match the - * configuration of your RADIUS server. - * - * @return eapPwd For `eap` **peap**. The EAP-PEAP password from your MS-CHAP account. - * Must match the configuration of your RADIUS server. + * For `eap` **peap**. The EAP-PEAP password from your MS-CHAP account. Must match the configuration of your RADIUS server. + * @return eapPwd For `eap` **peap**. The EAP-PEAP password from your MS-CHAP account. Must match the configuration of your RADIUS server. */ @JsonProperty(JSON_PROPERTY_EAP_PWD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -609,11 +549,9 @@ public String getEapPwd() { } /** - * For `eap` **peap**. The EAP-PEAP password from your MS-CHAP account. Must match the - * configuration of your RADIUS server. + * For `eap` **peap**. The EAP-PEAP password from your MS-CHAP account. Must match the configuration of your RADIUS server. * - * @param eapPwd For `eap` **peap**. The EAP-PEAP password from your MS-CHAP account. - * Must match the configuration of your RADIUS server. + * @param eapPwd For `eap` **peap**. The EAP-PEAP password from your MS-CHAP account. Must match the configuration of your RADIUS server. */ @JsonProperty(JSON_PROPERTY_EAP_PWD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -622,12 +560,9 @@ public void setEapPwd(String eapPwd) { } /** - * Indicates if the network doesn't broadcast its SSID. Mandatory for Android terminals, - * because these terminals rely on this setting to be able to connect to any network. + * Indicates if the network doesn't broadcast its SSID. Mandatory for Android terminals, because these terminals rely on this setting to be able to connect to any network. * - * @param hiddenSsid Indicates if the network doesn't broadcast its SSID. Mandatory for - * Android terminals, because these terminals rely on this setting to be able to connect to - * any network. + * @param hiddenSsid Indicates if the network doesn't broadcast its SSID. Mandatory for Android terminals, because these terminals rely on this setting to be able to connect to any network. * @return the current {@code Profile} instance, allowing for method chaining */ public Profile hiddenSsid(Boolean hiddenSsid) { @@ -636,12 +571,8 @@ public Profile hiddenSsid(Boolean hiddenSsid) { } /** - * Indicates if the network doesn't broadcast its SSID. Mandatory for Android terminals, - * because these terminals rely on this setting to be able to connect to any network. - * - * @return hiddenSsid Indicates if the network doesn't broadcast its SSID. Mandatory for - * Android terminals, because these terminals rely on this setting to be able to connect to - * any network. + * Indicates if the network doesn't broadcast its SSID. Mandatory for Android terminals, because these terminals rely on this setting to be able to connect to any network. + * @return hiddenSsid Indicates if the network doesn't broadcast its SSID. Mandatory for Android terminals, because these terminals rely on this setting to be able to connect to any network. */ @JsonProperty(JSON_PROPERTY_HIDDEN_SSID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -650,12 +581,9 @@ public Boolean getHiddenSsid() { } /** - * Indicates if the network doesn't broadcast its SSID. Mandatory for Android terminals, - * because these terminals rely on this setting to be able to connect to any network. + * Indicates if the network doesn't broadcast its SSID. Mandatory for Android terminals, because these terminals rely on this setting to be able to connect to any network. * - * @param hiddenSsid Indicates if the network doesn't broadcast its SSID. Mandatory for - * Android terminals, because these terminals rely on this setting to be able to connect to - * any network. + * @param hiddenSsid Indicates if the network doesn't broadcast its SSID. Mandatory for Android terminals, because these terminals rely on this setting to be able to connect to any network. */ @JsonProperty(JSON_PROPERTY_HIDDEN_SSID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -676,7 +604,6 @@ public Profile name(String name) { /** * Your name for the Wi-Fi profile. - * * @return name Your name for the Wi-Fi profile. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -699,8 +626,7 @@ public void setName(String name) { /** * For `authType` **wpa-psk or **wpa2-psk**. The password to the wireless network. * - * @param psk For `authType` **wpa-psk or **wpa2-psk**. The password to the wireless - * network. + * @param psk For `authType` **wpa-psk or **wpa2-psk**. The password to the wireless network. * @return the current {@code Profile} instance, allowing for method chaining */ public Profile psk(String psk) { @@ -710,9 +636,7 @@ public Profile psk(String psk) { /** * For `authType` **wpa-psk or **wpa2-psk**. The password to the wireless network. - * - * @return psk For `authType` **wpa-psk or **wpa2-psk**. The password to the wireless - * network. + * @return psk For `authType` **wpa-psk or **wpa2-psk**. The password to the wireless network. */ @JsonProperty(JSON_PROPERTY_PSK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -723,8 +647,7 @@ public String getPsk() { /** * For `authType` **wpa-psk or **wpa2-psk**. The password to the wireless network. * - * @param psk For `authType` **wpa-psk or **wpa2-psk**. The password to the wireless - * network. + * @param psk For `authType` **wpa-psk or **wpa2-psk**. The password to the wireless network. */ @JsonProperty(JSON_PROPERTY_PSK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -745,7 +668,6 @@ public Profile ssid(String ssid) { /** * The name of the wireless network. - * * @return ssid The name of the wireless network. */ @JsonProperty(JSON_PROPERTY_SSID) @@ -778,9 +700,7 @@ public Profile wsec(String wsec) { /** * The type of encryption. Possible values: **auto**, **ccmp** (recommended), **tkip** - * - * @return wsec The type of encryption. Possible values: **auto**, **ccmp** (recommended), - * **tkip** + * @return wsec The type of encryption. Possible values: **auto**, **ccmp** (recommended), **tkip** */ @JsonProperty(JSON_PROPERTY_WSEC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -799,7 +719,9 @@ public void setWsec(String wsec) { this.wsec = wsec; } - /** Return true if this Profile object is equal to o. */ + /** + * Return true if this Profile object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -809,49 +731,30 @@ public boolean equals(Object o) { return false; } Profile profile = (Profile) o; - return Objects.equals(this.authType, profile.authType) - && Objects.equals(this.autoWifi, profile.autoWifi) - && Objects.equals(this.bssType, profile.bssType) - && Objects.equals(this.channel, profile.channel) - && Objects.equals(this.defaultProfile, profile.defaultProfile) - && Objects.equals(this.domainSuffix, profile.domainSuffix) - && Objects.equals(this.eap, profile.eap) - && Objects.equals(this.eapCaCert, profile.eapCaCert) - && Objects.equals(this.eapClientCert, profile.eapClientCert) - && Objects.equals(this.eapClientKey, profile.eapClientKey) - && Objects.equals(this.eapClientPwd, profile.eapClientPwd) - && Objects.equals(this.eapIdentity, profile.eapIdentity) - && Objects.equals(this.eapIntermediateCert, profile.eapIntermediateCert) - && Objects.equals(this.eapPwd, profile.eapPwd) - && Objects.equals(this.hiddenSsid, profile.hiddenSsid) - && Objects.equals(this.name, profile.name) - && Objects.equals(this.psk, profile.psk) - && Objects.equals(this.ssid, profile.ssid) - && Objects.equals(this.wsec, profile.wsec); + return Objects.equals(this.authType, profile.authType) && + Objects.equals(this.autoWifi, profile.autoWifi) && + Objects.equals(this.bssType, profile.bssType) && + Objects.equals(this.channel, profile.channel) && + Objects.equals(this.defaultProfile, profile.defaultProfile) && + Objects.equals(this.domainSuffix, profile.domainSuffix) && + Objects.equals(this.eap, profile.eap) && + Objects.equals(this.eapCaCert, profile.eapCaCert) && + Objects.equals(this.eapClientCert, profile.eapClientCert) && + Objects.equals(this.eapClientKey, profile.eapClientKey) && + Objects.equals(this.eapClientPwd, profile.eapClientPwd) && + Objects.equals(this.eapIdentity, profile.eapIdentity) && + Objects.equals(this.eapIntermediateCert, profile.eapIntermediateCert) && + Objects.equals(this.eapPwd, profile.eapPwd) && + Objects.equals(this.hiddenSsid, profile.hiddenSsid) && + Objects.equals(this.name, profile.name) && + Objects.equals(this.psk, profile.psk) && + Objects.equals(this.ssid, profile.ssid) && + Objects.equals(this.wsec, profile.wsec); } @Override public int hashCode() { - return Objects.hash( - authType, - autoWifi, - bssType, - channel, - defaultProfile, - domainSuffix, - eap, - eapCaCert, - eapClientCert, - eapClientKey, - eapClientPwd, - eapIdentity, - eapIntermediateCert, - eapPwd, - hiddenSsid, - name, - psk, - ssid, - wsec); + return Objects.hash(authType, autoWifi, bssType, channel, defaultProfile, domainSuffix, eap, eapCaCert, eapClientCert, eapClientKey, eapClientPwd, eapIdentity, eapIntermediateCert, eapPwd, hiddenSsid, name, psk, ssid, wsec); } @Override @@ -870,9 +773,7 @@ public String toString() { sb.append(" eapClientKey: ").append(toIndentedString(eapClientKey)).append("\n"); sb.append(" eapClientPwd: ").append(toIndentedString(eapClientPwd)).append("\n"); sb.append(" eapIdentity: ").append(toIndentedString(eapIdentity)).append("\n"); - sb.append(" eapIntermediateCert: ") - .append(toIndentedString(eapIntermediateCert)) - .append("\n"); + sb.append(" eapIntermediateCert: ").append(toIndentedString(eapIntermediateCert)).append("\n"); sb.append(" eapPwd: ").append(toIndentedString(eapPwd)).append("\n"); sb.append(" hiddenSsid: ").append(toIndentedString(hiddenSsid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); @@ -884,7 +785,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -893,7 +795,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Profile given an JSON string * * @param jsonString JSON string @@ -903,12 +805,11 @@ private String toIndentedString(Object o) { public static Profile fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Profile.class); } - - /** - * Convert an instance of Profile to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Profile to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/PulseInfo.java b/src/main/java/com/adyen/model/management/PulseInfo.java index 8e7789e94..0558edc72 100644 --- a/src/main/java/com/adyen/model/management/PulseInfo.java +++ b/src/main/java/com/adyen/model/management/PulseInfo.java @@ -2,40 +2,43 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.TransactionDescriptionInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PulseInfo */ +/** + * PulseInfo + */ @JsonPropertyOrder({ PulseInfo.JSON_PROPERTY_PROCESSING_TYPE, PulseInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION }) + public class PulseInfo { /** - * The type of transactions processed over this payment method. Allowed values: - **pos** for - * in-person payments. - **billpay** for subscription payments, both the initial payment and the - * later recurring payments. These transactions have `recurringProcessingModel` - * **Subscription**. - **ecom** for all other card not present transactions. This includes - * non-recurring transactions and transactions with `recurringProcessingModel` - * **CardOnFile** or **UnscheduledCardOnFile**. + * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. */ public enum ProcessingTypeEnum { + BILLPAY(String.valueOf("billpay")), ECOM(String.valueOf("ecom")), @@ -47,7 +50,7 @@ public enum ProcessingTypeEnum { private String value; ProcessingTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -68,11 +71,7 @@ public static ProcessingTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ProcessingTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ProcessingTypeEnum.values())); + LOG.warning("ProcessingTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ProcessingTypeEnum.values())); return null; } } @@ -83,22 +82,13 @@ public static ProcessingTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANSACTION_DESCRIPTION = "transactionDescription"; private TransactionDescriptionInfo transactionDescription; - public PulseInfo() {} + public PulseInfo() { + } /** - * The type of transactions processed over this payment method. Allowed values: - **pos** for - * in-person payments. - **billpay** for subscription payments, both the initial payment and the - * later recurring payments. These transactions have `recurringProcessingModel` - * **Subscription**. - **ecom** for all other card not present transactions. This includes - * non-recurring transactions and transactions with `recurringProcessingModel` - * **CardOnFile** or **UnscheduledCardOnFile**. + * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. * - * @param processingType The type of transactions processed over this payment method. Allowed - * values: - **pos** for in-person payments. - **billpay** for subscription payments, both the - * initial payment and the later recurring payments. These transactions have - * `recurringProcessingModel` **Subscription**. - **ecom** for all other card not - * present transactions. This includes non-recurring transactions and transactions with - * `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * @param processingType The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. * @return the current {@code PulseInfo} instance, allowing for method chaining */ public PulseInfo processingType(ProcessingTypeEnum processingType) { @@ -107,19 +97,8 @@ public PulseInfo processingType(ProcessingTypeEnum processingType) { } /** - * The type of transactions processed over this payment method. Allowed values: - **pos** for - * in-person payments. - **billpay** for subscription payments, both the initial payment and the - * later recurring payments. These transactions have `recurringProcessingModel` - * **Subscription**. - **ecom** for all other card not present transactions. This includes - * non-recurring transactions and transactions with `recurringProcessingModel` - * **CardOnFile** or **UnscheduledCardOnFile**. - * - * @return processingType The type of transactions processed over this payment method. Allowed - * values: - **pos** for in-person payments. - **billpay** for subscription payments, both the - * initial payment and the later recurring payments. These transactions have - * `recurringProcessingModel` **Subscription**. - **ecom** for all other card not - * present transactions. This includes non-recurring transactions and transactions with - * `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * @return processingType The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. */ @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,19 +107,9 @@ public ProcessingTypeEnum getProcessingType() { } /** - * The type of transactions processed over this payment method. Allowed values: - **pos** for - * in-person payments. - **billpay** for subscription payments, both the initial payment and the - * later recurring payments. These transactions have `recurringProcessingModel` - * **Subscription**. - **ecom** for all other card not present transactions. This includes - * non-recurring transactions and transactions with `recurringProcessingModel` - * **CardOnFile** or **UnscheduledCardOnFile**. + * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. * - * @param processingType The type of transactions processed over this payment method. Allowed - * values: - **pos** for in-person payments. - **billpay** for subscription payments, both the - * initial payment and the later recurring payments. These transactions have - * `recurringProcessingModel` **Subscription**. - **ecom** for all other card not - * present transactions. This includes non-recurring transactions and transactions with - * `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * @param processingType The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. */ @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,7 +120,7 @@ public void setProcessingType(ProcessingTypeEnum processingType) { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription * @return the current {@code PulseInfo} instance, allowing for method chaining */ public PulseInfo transactionDescription(TransactionDescriptionInfo transactionDescription) { @@ -161,8 +130,7 @@ public PulseInfo transactionDescription(TransactionDescriptionInfo transactionDe /** * Get transactionDescription - * - * @return transactionDescription + * @return transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,7 +141,7 @@ public TransactionDescriptionInfo getTransactionDescription() { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,7 +149,9 @@ public void setTransactionDescription(TransactionDescriptionInfo transactionDesc this.transactionDescription = transactionDescription; } - /** Return true if this PulseInfo object is equal to o. */ + /** + * Return true if this PulseInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -191,8 +161,8 @@ public boolean equals(Object o) { return false; } PulseInfo pulseInfo = (PulseInfo) o; - return Objects.equals(this.processingType, pulseInfo.processingType) - && Objects.equals(this.transactionDescription, pulseInfo.transactionDescription); + return Objects.equals(this.processingType, pulseInfo.processingType) && + Objects.equals(this.transactionDescription, pulseInfo.transactionDescription); } @Override @@ -205,15 +175,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PulseInfo {\n"); sb.append(" processingType: ").append(toIndentedString(processingType)).append("\n"); - sb.append(" transactionDescription: ") - .append(toIndentedString(transactionDescription)) - .append("\n"); + sb.append(" transactionDescription: ").append(toIndentedString(transactionDescription)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -222,7 +191,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PulseInfo given an JSON string * * @param jsonString JSON string @@ -232,12 +201,11 @@ private String toIndentedString(Object o) { public static PulseInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PulseInfo.class); } - - /** - * Convert an instance of PulseInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PulseInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ReceiptOptions.java b/src/main/java/com/adyen/model/management/ReceiptOptions.java index b98015426..5b599d377 100644 --- a/src/main/java/com/adyen/model/management/ReceiptOptions.java +++ b/src/main/java/com/adyen/model/management/ReceiptOptions.java @@ -2,27 +2,37 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ReceiptOptions */ + +/** + * ReceiptOptions + */ @JsonPropertyOrder({ ReceiptOptions.JSON_PROPERTY_LOGO, ReceiptOptions.JSON_PROPERTY_PROMPT_BEFORE_PRINTING, ReceiptOptions.JSON_PROPERTY_QR_CODE_DATA }) + public class ReceiptOptions { public static final String JSON_PROPERTY_LOGO = "logo"; private String logo; @@ -33,14 +43,13 @@ public class ReceiptOptions { public static final String JSON_PROPERTY_QR_CODE_DATA = "qrCodeData"; private String qrCodeData; - public ReceiptOptions() {} + public ReceiptOptions() { + } /** - * The receipt logo converted to a Base64-encoded string. The image must be a .bmp file of < - * 256 KB, dimensions 240 (H) x 384 (W) px. + * The receipt logo converted to a Base64-encoded string. The image must be a .bmp file of < 256 KB, dimensions 240 (H) x 384 (W) px. * - * @param logo The receipt logo converted to a Base64-encoded string. The image must be a .bmp - * file of < 256 KB, dimensions 240 (H) x 384 (W) px. + * @param logo The receipt logo converted to a Base64-encoded string. The image must be a .bmp file of < 256 KB, dimensions 240 (H) x 384 (W) px. * @return the current {@code ReceiptOptions} instance, allowing for method chaining */ public ReceiptOptions logo(String logo) { @@ -49,11 +58,8 @@ public ReceiptOptions logo(String logo) { } /** - * The receipt logo converted to a Base64-encoded string. The image must be a .bmp file of < - * 256 KB, dimensions 240 (H) x 384 (W) px. - * - * @return logo The receipt logo converted to a Base64-encoded string. The image must be a .bmp - * file of < 256 KB, dimensions 240 (H) x 384 (W) px. + * The receipt logo converted to a Base64-encoded string. The image must be a .bmp file of < 256 KB, dimensions 240 (H) x 384 (W) px. + * @return logo The receipt logo converted to a Base64-encoded string. The image must be a .bmp file of < 256 KB, dimensions 240 (H) x 384 (W) px. */ @JsonProperty(JSON_PROPERTY_LOGO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -62,11 +68,9 @@ public String getLogo() { } /** - * The receipt logo converted to a Base64-encoded string. The image must be a .bmp file of < - * 256 KB, dimensions 240 (H) x 384 (W) px. + * The receipt logo converted to a Base64-encoded string. The image must be a .bmp file of < 256 KB, dimensions 240 (H) x 384 (W) px. * - * @param logo The receipt logo converted to a Base64-encoded string. The image must be a .bmp - * file of < 256 KB, dimensions 240 (H) x 384 (W) px. + * @param logo The receipt logo converted to a Base64-encoded string. The image must be a .bmp file of < 256 KB, dimensions 240 (H) x 384 (W) px. */ @JsonProperty(JSON_PROPERTY_LOGO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -77,8 +81,7 @@ public void setLogo(String logo) { /** * Indicates whether a screen appears asking if you want to print the shopper receipt. * - * @param promptBeforePrinting Indicates whether a screen appears asking if you want to print the - * shopper receipt. + * @param promptBeforePrinting Indicates whether a screen appears asking if you want to print the shopper receipt. * @return the current {@code ReceiptOptions} instance, allowing for method chaining */ public ReceiptOptions promptBeforePrinting(Boolean promptBeforePrinting) { @@ -88,9 +91,7 @@ public ReceiptOptions promptBeforePrinting(Boolean promptBeforePrinting) { /** * Indicates whether a screen appears asking if you want to print the shopper receipt. - * - * @return promptBeforePrinting Indicates whether a screen appears asking if you want to print the - * shopper receipt. + * @return promptBeforePrinting Indicates whether a screen appears asking if you want to print the shopper receipt. */ @JsonProperty(JSON_PROPERTY_PROMPT_BEFORE_PRINTING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,8 +102,7 @@ public Boolean getPromptBeforePrinting() { /** * Indicates whether a screen appears asking if you want to print the shopper receipt. * - * @param promptBeforePrinting Indicates whether a screen appears asking if you want to print the - * shopper receipt. + * @param promptBeforePrinting Indicates whether a screen appears asking if you want to print the shopper receipt. */ @JsonProperty(JSON_PROPERTY_PROMPT_BEFORE_PRINTING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,15 +111,9 @@ public void setPromptBeforePrinting(Boolean promptBeforePrinting) { } /** - * Data to print on the receipt as a QR code. This can include static text and the following - * variables: - `${merchantreference}`: the merchant reference of the transaction. - - * `${pspreference}`: the PSP reference of the transaction. For example, - * **http://www.example.com/order/${pspreference}/${merchantreference}**. + * Data to print on the receipt as a QR code. This can include static text and the following variables: - `${merchantreference}`: the merchant reference of the transaction. - `${pspreference}`: the PSP reference of the transaction. For example, **http://www.example.com/order/${pspreference}/${merchantreference}**. * - * @param qrCodeData Data to print on the receipt as a QR code. This can include static text and - * the following variables: - `${merchantreference}`: the merchant reference of the - * transaction. - `${pspreference}`: the PSP reference of the transaction. For - * example, **http://www.example.com/order/${pspreference}/${merchantreference}**. + * @param qrCodeData Data to print on the receipt as a QR code. This can include static text and the following variables: - `${merchantreference}`: the merchant reference of the transaction. - `${pspreference}`: the PSP reference of the transaction. For example, **http://www.example.com/order/${pspreference}/${merchantreference}**. * @return the current {@code ReceiptOptions} instance, allowing for method chaining */ public ReceiptOptions qrCodeData(String qrCodeData) { @@ -128,15 +122,8 @@ public ReceiptOptions qrCodeData(String qrCodeData) { } /** - * Data to print on the receipt as a QR code. This can include static text and the following - * variables: - `${merchantreference}`: the merchant reference of the transaction. - - * `${pspreference}`: the PSP reference of the transaction. For example, - * **http://www.example.com/order/${pspreference}/${merchantreference}**. - * - * @return qrCodeData Data to print on the receipt as a QR code. This can include static text and - * the following variables: - `${merchantreference}`: the merchant reference of the - * transaction. - `${pspreference}`: the PSP reference of the transaction. For - * example, **http://www.example.com/order/${pspreference}/${merchantreference}**. + * Data to print on the receipt as a QR code. This can include static text and the following variables: - `${merchantreference}`: the merchant reference of the transaction. - `${pspreference}`: the PSP reference of the transaction. For example, **http://www.example.com/order/${pspreference}/${merchantreference}**. + * @return qrCodeData Data to print on the receipt as a QR code. This can include static text and the following variables: - `${merchantreference}`: the merchant reference of the transaction. - `${pspreference}`: the PSP reference of the transaction. For example, **http://www.example.com/order/${pspreference}/${merchantreference}**. */ @JsonProperty(JSON_PROPERTY_QR_CODE_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,15 +132,9 @@ public String getQrCodeData() { } /** - * Data to print on the receipt as a QR code. This can include static text and the following - * variables: - `${merchantreference}`: the merchant reference of the transaction. - - * `${pspreference}`: the PSP reference of the transaction. For example, - * **http://www.example.com/order/${pspreference}/${merchantreference}**. + * Data to print on the receipt as a QR code. This can include static text and the following variables: - `${merchantreference}`: the merchant reference of the transaction. - `${pspreference}`: the PSP reference of the transaction. For example, **http://www.example.com/order/${pspreference}/${merchantreference}**. * - * @param qrCodeData Data to print on the receipt as a QR code. This can include static text and - * the following variables: - `${merchantreference}`: the merchant reference of the - * transaction. - `${pspreference}`: the PSP reference of the transaction. For - * example, **http://www.example.com/order/${pspreference}/${merchantreference}**. + * @param qrCodeData Data to print on the receipt as a QR code. This can include static text and the following variables: - `${merchantreference}`: the merchant reference of the transaction. - `${pspreference}`: the PSP reference of the transaction. For example, **http://www.example.com/order/${pspreference}/${merchantreference}**. */ @JsonProperty(JSON_PROPERTY_QR_CODE_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,7 +142,9 @@ public void setQrCodeData(String qrCodeData) { this.qrCodeData = qrCodeData; } - /** Return true if this ReceiptOptions object is equal to o. */ + /** + * Return true if this ReceiptOptions object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -171,9 +154,9 @@ public boolean equals(Object o) { return false; } ReceiptOptions receiptOptions = (ReceiptOptions) o; - return Objects.equals(this.logo, receiptOptions.logo) - && Objects.equals(this.promptBeforePrinting, receiptOptions.promptBeforePrinting) - && Objects.equals(this.qrCodeData, receiptOptions.qrCodeData); + return Objects.equals(this.logo, receiptOptions.logo) && + Objects.equals(this.promptBeforePrinting, receiptOptions.promptBeforePrinting) && + Objects.equals(this.qrCodeData, receiptOptions.qrCodeData); } @Override @@ -186,16 +169,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ReceiptOptions {\n"); sb.append(" logo: ").append(toIndentedString(logo)).append("\n"); - sb.append(" promptBeforePrinting: ") - .append(toIndentedString(promptBeforePrinting)) - .append("\n"); + sb.append(" promptBeforePrinting: ").append(toIndentedString(promptBeforePrinting)).append("\n"); sb.append(" qrCodeData: ").append(toIndentedString(qrCodeData)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -204,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ReceiptOptions given an JSON string * * @param jsonString JSON string @@ -214,12 +196,11 @@ private String toIndentedString(Object o) { public static ReceiptOptions fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ReceiptOptions.class); } - - /** - * Convert an instance of ReceiptOptions to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ReceiptOptions to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ReceiptPrinting.java b/src/main/java/com/adyen/model/management/ReceiptPrinting.java index 5a2e844eb..32b46becb 100644 --- a/src/main/java/com/adyen/model/management/ReceiptPrinting.java +++ b/src/main/java/com/adyen/model/management/ReceiptPrinting.java @@ -2,22 +2,31 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ReceiptPrinting */ + +/** + * ReceiptPrinting + */ @JsonPropertyOrder({ ReceiptPrinting.JSON_PROPERTY_MERCHANT_APPROVED, ReceiptPrinting.JSON_PROPERTY_MERCHANT_CANCELLED, @@ -36,6 +45,7 @@ ReceiptPrinting.JSON_PROPERTY_SHOPPER_REFUSED, ReceiptPrinting.JSON_PROPERTY_SHOPPER_VOID }) + public class ReceiptPrinting { public static final String JSON_PROPERTY_MERCHANT_APPROVED = "merchantApproved"; private Boolean merchantApproved; @@ -85,7 +95,8 @@ public class ReceiptPrinting { public static final String JSON_PROPERTY_SHOPPER_VOID = "shopperVoid"; private Boolean shopperVoid; - public ReceiptPrinting() {} + public ReceiptPrinting() { + } /** * Print a merchant receipt when the payment is approved. @@ -100,7 +111,6 @@ public ReceiptPrinting merchantApproved(Boolean merchantApproved) { /** * Print a merchant receipt when the payment is approved. - * * @return merchantApproved Print a merchant receipt when the payment is approved. */ @JsonProperty(JSON_PROPERTY_MERCHANT_APPROVED) @@ -133,7 +143,6 @@ public ReceiptPrinting merchantCancelled(Boolean merchantCancelled) { /** * Print a merchant receipt when the transaction is cancelled. - * * @return merchantCancelled Print a merchant receipt when the transaction is cancelled. */ @JsonProperty(JSON_PROPERTY_MERCHANT_CANCELLED) @@ -166,9 +175,7 @@ public ReceiptPrinting merchantCaptureApproved(Boolean merchantCaptureApproved) /** * Print a merchant receipt when capturing the payment is approved. - * - * @return merchantCaptureApproved Print a merchant receipt when capturing the payment is - * approved. + * @return merchantCaptureApproved Print a merchant receipt when capturing the payment is approved. */ @JsonProperty(JSON_PROPERTY_MERCHANT_CAPTURE_APPROVED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,7 +207,6 @@ public ReceiptPrinting merchantCaptureRefused(Boolean merchantCaptureRefused) { /** * Print a merchant receipt when capturing the payment is refused. - * * @return merchantCaptureRefused Print a merchant receipt when capturing the payment is refused. */ @JsonProperty(JSON_PROPERTY_MERCHANT_CAPTURE_REFUSED) @@ -233,7 +239,6 @@ public ReceiptPrinting merchantRefundApproved(Boolean merchantRefundApproved) { /** * Print a merchant receipt when the refund is approved. - * * @return merchantRefundApproved Print a merchant receipt when the refund is approved. */ @JsonProperty(JSON_PROPERTY_MERCHANT_REFUND_APPROVED) @@ -266,7 +271,6 @@ public ReceiptPrinting merchantRefundRefused(Boolean merchantRefundRefused) { /** * Print a merchant receipt when the refund is refused. - * * @return merchantRefundRefused Print a merchant receipt when the refund is refused. */ @JsonProperty(JSON_PROPERTY_MERCHANT_REFUND_REFUSED) @@ -299,7 +303,6 @@ public ReceiptPrinting merchantRefused(Boolean merchantRefused) { /** * Print a merchant receipt when the payment is refused. - * * @return merchantRefused Print a merchant receipt when the payment is refused. */ @JsonProperty(JSON_PROPERTY_MERCHANT_REFUSED) @@ -332,7 +335,6 @@ public ReceiptPrinting merchantVoid(Boolean merchantVoid) { /** * Print a merchant receipt when a previous transaction is voided. - * * @return merchantVoid Print a merchant receipt when a previous transaction is voided. */ @JsonProperty(JSON_PROPERTY_MERCHANT_VOID) @@ -365,7 +367,6 @@ public ReceiptPrinting shopperApproved(Boolean shopperApproved) { /** * Print a shopper receipt when the payment is approved. - * * @return shopperApproved Print a shopper receipt when the payment is approved. */ @JsonProperty(JSON_PROPERTY_SHOPPER_APPROVED) @@ -398,7 +399,6 @@ public ReceiptPrinting shopperCancelled(Boolean shopperCancelled) { /** * Print a shopper receipt when the transaction is cancelled. - * * @return shopperCancelled Print a shopper receipt when the transaction is cancelled. */ @JsonProperty(JSON_PROPERTY_SHOPPER_CANCELLED) @@ -431,7 +431,6 @@ public ReceiptPrinting shopperCaptureApproved(Boolean shopperCaptureApproved) { /** * Print a shopper receipt when capturing the payment is approved. - * * @return shopperCaptureApproved Print a shopper receipt when capturing the payment is approved. */ @JsonProperty(JSON_PROPERTY_SHOPPER_CAPTURE_APPROVED) @@ -464,7 +463,6 @@ public ReceiptPrinting shopperCaptureRefused(Boolean shopperCaptureRefused) { /** * Print a shopper receipt when capturing the payment is refused. - * * @return shopperCaptureRefused Print a shopper receipt when capturing the payment is refused. */ @JsonProperty(JSON_PROPERTY_SHOPPER_CAPTURE_REFUSED) @@ -497,7 +495,6 @@ public ReceiptPrinting shopperRefundApproved(Boolean shopperRefundApproved) { /** * Print a shopper receipt when the refund is approved. - * * @return shopperRefundApproved Print a shopper receipt when the refund is approved. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFUND_APPROVED) @@ -530,7 +527,6 @@ public ReceiptPrinting shopperRefundRefused(Boolean shopperRefundRefused) { /** * Print a shopper receipt when the refund is refused. - * * @return shopperRefundRefused Print a shopper receipt when the refund is refused. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFUND_REFUSED) @@ -563,7 +559,6 @@ public ReceiptPrinting shopperRefused(Boolean shopperRefused) { /** * Print a shopper receipt when the payment is refused. - * * @return shopperRefused Print a shopper receipt when the payment is refused. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFUSED) @@ -596,7 +591,6 @@ public ReceiptPrinting shopperVoid(Boolean shopperVoid) { /** * Print a shopper receipt when a previous transaction is voided. - * * @return shopperVoid Print a shopper receipt when a previous transaction is voided. */ @JsonProperty(JSON_PROPERTY_SHOPPER_VOID) @@ -616,7 +610,9 @@ public void setShopperVoid(Boolean shopperVoid) { this.shopperVoid = shopperVoid; } - /** Return true if this ReceiptPrinting object is equal to o. */ + /** + * Return true if this ReceiptPrinting object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -626,43 +622,27 @@ public boolean equals(Object o) { return false; } ReceiptPrinting receiptPrinting = (ReceiptPrinting) o; - return Objects.equals(this.merchantApproved, receiptPrinting.merchantApproved) - && Objects.equals(this.merchantCancelled, receiptPrinting.merchantCancelled) - && Objects.equals(this.merchantCaptureApproved, receiptPrinting.merchantCaptureApproved) - && Objects.equals(this.merchantCaptureRefused, receiptPrinting.merchantCaptureRefused) - && Objects.equals(this.merchantRefundApproved, receiptPrinting.merchantRefundApproved) - && Objects.equals(this.merchantRefundRefused, receiptPrinting.merchantRefundRefused) - && Objects.equals(this.merchantRefused, receiptPrinting.merchantRefused) - && Objects.equals(this.merchantVoid, receiptPrinting.merchantVoid) - && Objects.equals(this.shopperApproved, receiptPrinting.shopperApproved) - && Objects.equals(this.shopperCancelled, receiptPrinting.shopperCancelled) - && Objects.equals(this.shopperCaptureApproved, receiptPrinting.shopperCaptureApproved) - && Objects.equals(this.shopperCaptureRefused, receiptPrinting.shopperCaptureRefused) - && Objects.equals(this.shopperRefundApproved, receiptPrinting.shopperRefundApproved) - && Objects.equals(this.shopperRefundRefused, receiptPrinting.shopperRefundRefused) - && Objects.equals(this.shopperRefused, receiptPrinting.shopperRefused) - && Objects.equals(this.shopperVoid, receiptPrinting.shopperVoid); + return Objects.equals(this.merchantApproved, receiptPrinting.merchantApproved) && + Objects.equals(this.merchantCancelled, receiptPrinting.merchantCancelled) && + Objects.equals(this.merchantCaptureApproved, receiptPrinting.merchantCaptureApproved) && + Objects.equals(this.merchantCaptureRefused, receiptPrinting.merchantCaptureRefused) && + Objects.equals(this.merchantRefundApproved, receiptPrinting.merchantRefundApproved) && + Objects.equals(this.merchantRefundRefused, receiptPrinting.merchantRefundRefused) && + Objects.equals(this.merchantRefused, receiptPrinting.merchantRefused) && + Objects.equals(this.merchantVoid, receiptPrinting.merchantVoid) && + Objects.equals(this.shopperApproved, receiptPrinting.shopperApproved) && + Objects.equals(this.shopperCancelled, receiptPrinting.shopperCancelled) && + Objects.equals(this.shopperCaptureApproved, receiptPrinting.shopperCaptureApproved) && + Objects.equals(this.shopperCaptureRefused, receiptPrinting.shopperCaptureRefused) && + Objects.equals(this.shopperRefundApproved, receiptPrinting.shopperRefundApproved) && + Objects.equals(this.shopperRefundRefused, receiptPrinting.shopperRefundRefused) && + Objects.equals(this.shopperRefused, receiptPrinting.shopperRefused) && + Objects.equals(this.shopperVoid, receiptPrinting.shopperVoid); } @Override public int hashCode() { - return Objects.hash( - merchantApproved, - merchantCancelled, - merchantCaptureApproved, - merchantCaptureRefused, - merchantRefundApproved, - merchantRefundRefused, - merchantRefused, - merchantVoid, - shopperApproved, - shopperCancelled, - shopperCaptureApproved, - shopperCaptureRefused, - shopperRefundApproved, - shopperRefundRefused, - shopperRefused, - shopperVoid); + return Objects.hash(merchantApproved, merchantCancelled, merchantCaptureApproved, merchantCaptureRefused, merchantRefundApproved, merchantRefundRefused, merchantRefused, merchantVoid, shopperApproved, shopperCancelled, shopperCaptureApproved, shopperCaptureRefused, shopperRefundApproved, shopperRefundRefused, shopperRefused, shopperVoid); } @Override @@ -671,34 +651,18 @@ public String toString() { sb.append("class ReceiptPrinting {\n"); sb.append(" merchantApproved: ").append(toIndentedString(merchantApproved)).append("\n"); sb.append(" merchantCancelled: ").append(toIndentedString(merchantCancelled)).append("\n"); - sb.append(" merchantCaptureApproved: ") - .append(toIndentedString(merchantCaptureApproved)) - .append("\n"); - sb.append(" merchantCaptureRefused: ") - .append(toIndentedString(merchantCaptureRefused)) - .append("\n"); - sb.append(" merchantRefundApproved: ") - .append(toIndentedString(merchantRefundApproved)) - .append("\n"); - sb.append(" merchantRefundRefused: ") - .append(toIndentedString(merchantRefundRefused)) - .append("\n"); + sb.append(" merchantCaptureApproved: ").append(toIndentedString(merchantCaptureApproved)).append("\n"); + sb.append(" merchantCaptureRefused: ").append(toIndentedString(merchantCaptureRefused)).append("\n"); + sb.append(" merchantRefundApproved: ").append(toIndentedString(merchantRefundApproved)).append("\n"); + sb.append(" merchantRefundRefused: ").append(toIndentedString(merchantRefundRefused)).append("\n"); sb.append(" merchantRefused: ").append(toIndentedString(merchantRefused)).append("\n"); sb.append(" merchantVoid: ").append(toIndentedString(merchantVoid)).append("\n"); sb.append(" shopperApproved: ").append(toIndentedString(shopperApproved)).append("\n"); sb.append(" shopperCancelled: ").append(toIndentedString(shopperCancelled)).append("\n"); - sb.append(" shopperCaptureApproved: ") - .append(toIndentedString(shopperCaptureApproved)) - .append("\n"); - sb.append(" shopperCaptureRefused: ") - .append(toIndentedString(shopperCaptureRefused)) - .append("\n"); - sb.append(" shopperRefundApproved: ") - .append(toIndentedString(shopperRefundApproved)) - .append("\n"); - sb.append(" shopperRefundRefused: ") - .append(toIndentedString(shopperRefundRefused)) - .append("\n"); + sb.append(" shopperCaptureApproved: ").append(toIndentedString(shopperCaptureApproved)).append("\n"); + sb.append(" shopperCaptureRefused: ").append(toIndentedString(shopperCaptureRefused)).append("\n"); + sb.append(" shopperRefundApproved: ").append(toIndentedString(shopperRefundApproved)).append("\n"); + sb.append(" shopperRefundRefused: ").append(toIndentedString(shopperRefundRefused)).append("\n"); sb.append(" shopperRefused: ").append(toIndentedString(shopperRefused)).append("\n"); sb.append(" shopperVoid: ").append(toIndentedString(shopperVoid)).append("\n"); sb.append("}"); @@ -706,7 +670,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -715,7 +680,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ReceiptPrinting given an JSON string * * @param jsonString JSON string @@ -725,12 +690,11 @@ private String toIndentedString(Object o) { public static ReceiptPrinting fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ReceiptPrinting.class); } - - /** - * Convert an instance of ReceiptPrinting to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ReceiptPrinting to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Referenced.java b/src/main/java/com/adyen/model/management/Referenced.java index 307e0c1ae..2fcfda2c7 100644 --- a/src/main/java/com/adyen/model/management/Referenced.java +++ b/src/main/java/com/adyen/model/management/Referenced.java @@ -2,34 +2,46 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Referenced */ -@JsonPropertyOrder({Referenced.JSON_PROPERTY_ENABLE_STANDALONE_REFUNDS}) + +/** + * Referenced + */ +@JsonPropertyOrder({ + Referenced.JSON_PROPERTY_ENABLE_STANDALONE_REFUNDS +}) + public class Referenced { public static final String JSON_PROPERTY_ENABLE_STANDALONE_REFUNDS = "enableStandaloneRefunds"; private Boolean enableStandaloneRefunds; - public Referenced() {} + public Referenced() { + } /** * Indicates whether referenced refunds are enabled on the standalone terminal. * - * @param enableStandaloneRefunds Indicates whether referenced refunds are enabled on the - * standalone terminal. + * @param enableStandaloneRefunds Indicates whether referenced refunds are enabled on the standalone terminal. * @return the current {@code Referenced} instance, allowing for method chaining */ public Referenced enableStandaloneRefunds(Boolean enableStandaloneRefunds) { @@ -39,9 +51,7 @@ public Referenced enableStandaloneRefunds(Boolean enableStandaloneRefunds) { /** * Indicates whether referenced refunds are enabled on the standalone terminal. - * - * @return enableStandaloneRefunds Indicates whether referenced refunds are enabled on the - * standalone terminal. + * @return enableStandaloneRefunds Indicates whether referenced refunds are enabled on the standalone terminal. */ @JsonProperty(JSON_PROPERTY_ENABLE_STANDALONE_REFUNDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -52,8 +62,7 @@ public Boolean getEnableStandaloneRefunds() { /** * Indicates whether referenced refunds are enabled on the standalone terminal. * - * @param enableStandaloneRefunds Indicates whether referenced refunds are enabled on the - * standalone terminal. + * @param enableStandaloneRefunds Indicates whether referenced refunds are enabled on the standalone terminal. */ @JsonProperty(JSON_PROPERTY_ENABLE_STANDALONE_REFUNDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -61,7 +70,9 @@ public void setEnableStandaloneRefunds(Boolean enableStandaloneRefunds) { this.enableStandaloneRefunds = enableStandaloneRefunds; } - /** Return true if this Referenced object is equal to o. */ + /** + * Return true if this Referenced object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -83,15 +94,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Referenced {\n"); - sb.append(" enableStandaloneRefunds: ") - .append(toIndentedString(enableStandaloneRefunds)) - .append("\n"); + sb.append(" enableStandaloneRefunds: ").append(toIndentedString(enableStandaloneRefunds)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -100,7 +110,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Referenced given an JSON string * * @param jsonString JSON string @@ -110,12 +120,11 @@ private String toIndentedString(Object o) { public static Referenced fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Referenced.class); } - - /** - * Convert an instance of Referenced to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Referenced to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Refunds.java b/src/main/java/com/adyen/model/management/Refunds.java index f63cb32c3..eab929294 100644 --- a/src/main/java/com/adyen/model/management/Refunds.java +++ b/src/main/java/com/adyen/model/management/Refunds.java @@ -2,33 +2,52 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.Referenced; +import com.adyen.model.management.Unreferenced; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Refunds */ -@JsonPropertyOrder({Refunds.JSON_PROPERTY_REFERENCED}) + +/** + * Refunds + */ +@JsonPropertyOrder({ + Refunds.JSON_PROPERTY_REFERENCED, + Refunds.JSON_PROPERTY_UNREFERENCED +}) + public class Refunds { public static final String JSON_PROPERTY_REFERENCED = "referenced"; private Referenced referenced; - public Refunds() {} + public static final String JSON_PROPERTY_UNREFERENCED = "unreferenced"; + private Unreferenced unreferenced; + + public Refunds() { + } /** * referenced * - * @param referenced + * @param referenced * @return the current {@code Refunds} instance, allowing for method chaining */ public Refunds referenced(Referenced referenced) { @@ -38,8 +57,7 @@ public Refunds referenced(Referenced referenced) { /** * Get referenced - * - * @return referenced + * @return referenced */ @JsonProperty(JSON_PROPERTY_REFERENCED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -50,7 +68,7 @@ public Referenced getReferenced() { /** * referenced * - * @param referenced + * @param referenced */ @JsonProperty(JSON_PROPERTY_REFERENCED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,7 +76,41 @@ public void setReferenced(Referenced referenced) { this.referenced = referenced; } - /** Return true if this Refunds object is equal to o. */ + /** + * unreferenced + * + * @param unreferenced + * @return the current {@code Refunds} instance, allowing for method chaining + */ + public Refunds unreferenced(Unreferenced unreferenced) { + this.unreferenced = unreferenced; + return this; + } + + /** + * Get unreferenced + * @return unreferenced + */ + @JsonProperty(JSON_PROPERTY_UNREFERENCED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Unreferenced getUnreferenced() { + return unreferenced; + } + + /** + * unreferenced + * + * @param unreferenced + */ + @JsonProperty(JSON_PROPERTY_UNREFERENCED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUnreferenced(Unreferenced unreferenced) { + this.unreferenced = unreferenced; + } + + /** + * Return true if this Refunds object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -68,12 +120,13 @@ public boolean equals(Object o) { return false; } Refunds refunds = (Refunds) o; - return Objects.equals(this.referenced, refunds.referenced); + return Objects.equals(this.referenced, refunds.referenced) && + Objects.equals(this.unreferenced, refunds.unreferenced); } @Override public int hashCode() { - return Objects.hash(referenced); + return Objects.hash(referenced, unreferenced); } @Override @@ -81,12 +134,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Refunds {\n"); sb.append(" referenced: ").append(toIndentedString(referenced)).append("\n"); + sb.append(" unreferenced: ").append(toIndentedString(unreferenced)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,7 +150,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Refunds given an JSON string * * @param jsonString JSON string @@ -105,12 +160,11 @@ private String toIndentedString(Object o) { public static Refunds fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Refunds.class); } - - /** - * Convert an instance of Refunds to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Refunds to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ReleaseUpdateDetails.java b/src/main/java/com/adyen/model/management/ReleaseUpdateDetails.java index 109feebbd..e970f7591 100644 --- a/src/main/java/com/adyen/model/management/ReleaseUpdateDetails.java +++ b/src/main/java/com/adyen/model/management/ReleaseUpdateDetails.java @@ -2,33 +2,42 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** ReleaseUpdateDetails */ + +/** + * ReleaseUpdateDetails + */ @JsonPropertyOrder({ ReleaseUpdateDetails.JSON_PROPERTY_TYPE, ReleaseUpdateDetails.JSON_PROPERTY_UPDATE_AT_FIRST_MAINTENANCE_CALL }) + public class ReleaseUpdateDetails { - /** Type of terminal action: Update Release. */ + /** + * Type of terminal action: Update Release. + */ public enum TypeEnum { + RELEASEUPDATE(String.valueOf("ReleaseUpdate")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -36,7 +45,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -57,11 +66,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -69,11 +74,11 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public static final String JSON_PROPERTY_UPDATE_AT_FIRST_MAINTENANCE_CALL = - "updateAtFirstMaintenanceCall"; + public static final String JSON_PROPERTY_UPDATE_AT_FIRST_MAINTENANCE_CALL = "updateAtFirstMaintenanceCall"; private Boolean updateAtFirstMaintenanceCall; - public ReleaseUpdateDetails() {} + public ReleaseUpdateDetails() { + } /** * Type of terminal action: Update Release. @@ -88,7 +93,6 @@ public ReleaseUpdateDetails type(TypeEnum type) { /** * Type of terminal action: Update Release. - * * @return type Type of terminal action: Update Release. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -109,12 +113,9 @@ public void setType(TypeEnum type) { } /** - * Boolean flag that tells if the terminal should update at the first next maintenance call. If - * false, terminal will update on its configured reboot time. + * Boolean flag that tells if the terminal should update at the first next maintenance call. If false, terminal will update on its configured reboot time. * - * @param updateAtFirstMaintenanceCall Boolean flag that tells if the terminal should update at - * the first next maintenance call. If false, terminal will update on its configured reboot - * time. + * @param updateAtFirstMaintenanceCall Boolean flag that tells if the terminal should update at the first next maintenance call. If false, terminal will update on its configured reboot time. * @return the current {@code ReleaseUpdateDetails} instance, allowing for method chaining */ public ReleaseUpdateDetails updateAtFirstMaintenanceCall(Boolean updateAtFirstMaintenanceCall) { @@ -123,12 +124,8 @@ public ReleaseUpdateDetails updateAtFirstMaintenanceCall(Boolean updateAtFirstMa } /** - * Boolean flag that tells if the terminal should update at the first next maintenance call. If - * false, terminal will update on its configured reboot time. - * - * @return updateAtFirstMaintenanceCall Boolean flag that tells if the terminal should update at - * the first next maintenance call. If false, terminal will update on its configured reboot - * time. + * Boolean flag that tells if the terminal should update at the first next maintenance call. If false, terminal will update on its configured reboot time. + * @return updateAtFirstMaintenanceCall Boolean flag that tells if the terminal should update at the first next maintenance call. If false, terminal will update on its configured reboot time. */ @JsonProperty(JSON_PROPERTY_UPDATE_AT_FIRST_MAINTENANCE_CALL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,12 +134,9 @@ public Boolean getUpdateAtFirstMaintenanceCall() { } /** - * Boolean flag that tells if the terminal should update at the first next maintenance call. If - * false, terminal will update on its configured reboot time. + * Boolean flag that tells if the terminal should update at the first next maintenance call. If false, terminal will update on its configured reboot time. * - * @param updateAtFirstMaintenanceCall Boolean flag that tells if the terminal should update at - * the first next maintenance call. If false, terminal will update on its configured reboot - * time. + * @param updateAtFirstMaintenanceCall Boolean flag that tells if the terminal should update at the first next maintenance call. If false, terminal will update on its configured reboot time. */ @JsonProperty(JSON_PROPERTY_UPDATE_AT_FIRST_MAINTENANCE_CALL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,7 +144,9 @@ public void setUpdateAtFirstMaintenanceCall(Boolean updateAtFirstMaintenanceCall this.updateAtFirstMaintenanceCall = updateAtFirstMaintenanceCall; } - /** Return true if this ReleaseUpdateDetails object is equal to o. */ + /** + * Return true if this ReleaseUpdateDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -160,9 +156,8 @@ public boolean equals(Object o) { return false; } ReleaseUpdateDetails releaseUpdateDetails = (ReleaseUpdateDetails) o; - return Objects.equals(this.type, releaseUpdateDetails.type) - && Objects.equals( - this.updateAtFirstMaintenanceCall, releaseUpdateDetails.updateAtFirstMaintenanceCall); + return Objects.equals(this.type, releaseUpdateDetails.type) && + Objects.equals(this.updateAtFirstMaintenanceCall, releaseUpdateDetails.updateAtFirstMaintenanceCall); } @Override @@ -175,15 +170,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ReleaseUpdateDetails {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" updateAtFirstMaintenanceCall: ") - .append(toIndentedString(updateAtFirstMaintenanceCall)) - .append("\n"); + sb.append(" updateAtFirstMaintenanceCall: ").append(toIndentedString(updateAtFirstMaintenanceCall)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -192,23 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ReleaseUpdateDetails given an JSON string * * @param jsonString JSON string * @return An instance of ReleaseUpdateDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ReleaseUpdateDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to ReleaseUpdateDetails */ public static ReleaseUpdateDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ReleaseUpdateDetails.class); } - - /** - * Convert an instance of ReleaseUpdateDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ReleaseUpdateDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ReprocessAndroidAppResponse.java b/src/main/java/com/adyen/model/management/ReprocessAndroidAppResponse.java index e447f2bdc..7f43e28ed 100644 --- a/src/main/java/com/adyen/model/management/ReprocessAndroidAppResponse.java +++ b/src/main/java/com/adyen/model/management/ReprocessAndroidAppResponse.java @@ -2,28 +2,41 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ReprocessAndroidAppResponse */ -@JsonPropertyOrder({ReprocessAndroidAppResponse.JSON_PROPERTY_MESSAGE}) + +/** + * ReprocessAndroidAppResponse + */ +@JsonPropertyOrder({ + ReprocessAndroidAppResponse.JSON_PROPERTY_MESSAGE +}) + public class ReprocessAndroidAppResponse { public static final String JSON_PROPERTY_MESSAGE = "Message"; private String message; - public ReprocessAndroidAppResponse() {} + public ReprocessAndroidAppResponse() { + } /** * The result of the reprocess. @@ -38,7 +51,6 @@ public ReprocessAndroidAppResponse message(String message) { /** * The result of the reprocess. - * * @return message The result of the reprocess. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -58,7 +70,9 @@ public void setMessage(String message) { this.message = message; } - /** Return true if this ReprocessAndroidAppResponse object is equal to o. */ + /** + * Return true if this ReprocessAndroidAppResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ReprocessAndroidAppResponse given an JSON string * * @param jsonString JSON string * @return An instance of ReprocessAndroidAppResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ReprocessAndroidAppResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to ReprocessAndroidAppResponse */ - public static ReprocessAndroidAppResponse fromJson(String jsonString) - throws JsonProcessingException { + public static ReprocessAndroidAppResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ReprocessAndroidAppResponse.class); } - - /** - * Convert an instance of ReprocessAndroidAppResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ReprocessAndroidAppResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/RequestActivationResponse.java b/src/main/java/com/adyen/model/management/RequestActivationResponse.java index d40af6ff3..453342ee5 100644 --- a/src/main/java/com/adyen/model/management/RequestActivationResponse.java +++ b/src/main/java/com/adyen/model/management/RequestActivationResponse.java @@ -2,26 +2,36 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** RequestActivationResponse */ + +/** + * RequestActivationResponse + */ @JsonPropertyOrder({ RequestActivationResponse.JSON_PROPERTY_COMPANY_ID, RequestActivationResponse.JSON_PROPERTY_MERCHANT_ID }) + public class RequestActivationResponse { public static final String JSON_PROPERTY_COMPANY_ID = "companyId"; private String companyId; @@ -29,7 +39,8 @@ public class RequestActivationResponse { public static final String JSON_PROPERTY_MERCHANT_ID = "merchantId"; private String merchantId; - public RequestActivationResponse() {} + public RequestActivationResponse() { + } /** * The unique identifier of the company account. @@ -44,7 +55,6 @@ public RequestActivationResponse companyId(String companyId) { /** * The unique identifier of the company account. - * * @return companyId The unique identifier of the company account. */ @JsonProperty(JSON_PROPERTY_COMPANY_ID) @@ -77,7 +87,6 @@ public RequestActivationResponse merchantId(String merchantId) { /** * The unique identifier of the merchant account you requested to activate. - * * @return merchantId The unique identifier of the merchant account you requested to activate. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @@ -97,7 +106,9 @@ public void setMerchantId(String merchantId) { this.merchantId = merchantId; } - /** Return true if this RequestActivationResponse object is equal to o. */ + /** + * Return true if this RequestActivationResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -107,8 +118,8 @@ public boolean equals(Object o) { return false; } RequestActivationResponse requestActivationResponse = (RequestActivationResponse) o; - return Objects.equals(this.companyId, requestActivationResponse.companyId) - && Objects.equals(this.merchantId, requestActivationResponse.merchantId); + return Objects.equals(this.companyId, requestActivationResponse.companyId) && + Objects.equals(this.merchantId, requestActivationResponse.merchantId); } @Override @@ -127,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,24 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RequestActivationResponse given an JSON string * * @param jsonString JSON string * @return An instance of RequestActivationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * RequestActivationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to RequestActivationResponse */ - public static RequestActivationResponse fromJson(String jsonString) - throws JsonProcessingException { + public static RequestActivationResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RequestActivationResponse.class); } - - /** - * Convert an instance of RequestActivationResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RequestActivationResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/RestServiceError.java b/src/main/java/com/adyen/model/management/RestServiceError.java index 06220e69a..2350868ff 100644 --- a/src/main/java/com/adyen/model/management/RestServiceError.java +++ b/src/main/java/com/adyen/model/management/RestServiceError.java @@ -2,24 +2,34 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.InvalidField; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** RestServiceError */ +/** + * RestServiceError + */ @JsonPropertyOrder({ RestServiceError.JSON_PROPERTY_DETAIL, RestServiceError.JSON_PROPERTY_ERROR_CODE, @@ -31,6 +41,7 @@ RestServiceError.JSON_PROPERTY_TITLE, RestServiceError.JSON_PROPERTY_TYPE }) + public class RestServiceError { public static final String JSON_PROPERTY_DETAIL = "detail"; private String detail; @@ -59,7 +70,8 @@ public class RestServiceError { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public RestServiceError() {} + public RestServiceError() { + } /** * A human-readable explanation specific to this occurrence of the problem. @@ -74,7 +86,6 @@ public RestServiceError detail(String detail) { /** * A human-readable explanation specific to this occurrence of the problem. - * * @return detail A human-readable explanation specific to this occurrence of the problem. */ @JsonProperty(JSON_PROPERTY_DETAIL) @@ -107,7 +118,6 @@ public RestServiceError errorCode(String errorCode) { /** * A code that identifies the problem type. - * * @return errorCode A code that identifies the problem type. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -140,7 +150,6 @@ public RestServiceError instance(String instance) { /** * A unique URI that identifies the specific occurrence of the problem. - * * @return instance A unique URI that identifies the specific occurrence of the problem. */ @JsonProperty(JSON_PROPERTY_INSTANCE) @@ -181,7 +190,6 @@ public RestServiceError addInvalidFieldsItem(InvalidField invalidFieldsItem) { /** * Detailed explanation of each validation error, when applicable. - * * @return invalidFields Detailed explanation of each validation error, when applicable. */ @JsonProperty(JSON_PROPERTY_INVALID_FIELDS) @@ -204,8 +212,7 @@ public void setInvalidFields(List invalidFields) { /** * A unique reference for the request, essentially the same as `pspReference`. * - * @param requestId A unique reference for the request, essentially the same as - * `pspReference`. + * @param requestId A unique reference for the request, essentially the same as `pspReference`. * @return the current {@code RestServiceError} instance, allowing for method chaining */ public RestServiceError requestId(String requestId) { @@ -215,9 +222,7 @@ public RestServiceError requestId(String requestId) { /** * A unique reference for the request, essentially the same as `pspReference`. - * - * @return requestId A unique reference for the request, essentially the same as - * `pspReference`. + * @return requestId A unique reference for the request, essentially the same as `pspReference`. */ @JsonProperty(JSON_PROPERTY_REQUEST_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -228,8 +233,7 @@ public String getRequestId() { /** * A unique reference for the request, essentially the same as `pspReference`. * - * @param requestId A unique reference for the request, essentially the same as - * `pspReference`. + * @param requestId A unique reference for the request, essentially the same as `pspReference`. */ @JsonProperty(JSON_PROPERTY_REQUEST_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,7 +244,7 @@ public void setRequestId(String requestId) { /** * response * - * @param response + * @param response * @return the current {@code RestServiceError} instance, allowing for method chaining */ public RestServiceError response(Object response) { @@ -250,8 +254,7 @@ public RestServiceError response(Object response) { /** * Get response - * - * @return response + * @return response */ @JsonProperty(JSON_PROPERTY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -262,7 +265,7 @@ public Object getResponse() { /** * response * - * @param response + * @param response */ @JsonProperty(JSON_PROPERTY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -283,7 +286,6 @@ public RestServiceError status(Integer status) { /** * The HTTP status code. - * * @return status The HTTP status code. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -316,7 +318,6 @@ public RestServiceError title(String title) { /** * A short, human-readable summary of the problem type. - * * @return title A short, human-readable summary of the problem type. */ @JsonProperty(JSON_PROPERTY_TITLE) @@ -337,11 +338,9 @@ public void setTitle(String title) { } /** - * A URI that identifies the problem type, pointing to human-readable documentation on this - * problem type. + * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. * - * @param type A URI that identifies the problem type, pointing to human-readable documentation on - * this problem type. + * @param type A URI that identifies the problem type, pointing to human-readable documentation on this problem type. * @return the current {@code RestServiceError} instance, allowing for method chaining */ public RestServiceError type(String type) { @@ -350,11 +349,8 @@ public RestServiceError type(String type) { } /** - * A URI that identifies the problem type, pointing to human-readable documentation on this - * problem type. - * - * @return type A URI that identifies the problem type, pointing to human-readable documentation - * on this problem type. + * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. + * @return type A URI that identifies the problem type, pointing to human-readable documentation on this problem type. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -363,11 +359,9 @@ public String getType() { } /** - * A URI that identifies the problem type, pointing to human-readable documentation on this - * problem type. + * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. * - * @param type A URI that identifies the problem type, pointing to human-readable documentation on - * this problem type. + * @param type A URI that identifies the problem type, pointing to human-readable documentation on this problem type. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -375,7 +369,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this RestServiceError object is equal to o. */ + /** + * Return true if this RestServiceError object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -385,21 +381,20 @@ public boolean equals(Object o) { return false; } RestServiceError restServiceError = (RestServiceError) o; - return Objects.equals(this.detail, restServiceError.detail) - && Objects.equals(this.errorCode, restServiceError.errorCode) - && Objects.equals(this.instance, restServiceError.instance) - && Objects.equals(this.invalidFields, restServiceError.invalidFields) - && Objects.equals(this.requestId, restServiceError.requestId) - && Objects.equals(this.response, restServiceError.response) - && Objects.equals(this.status, restServiceError.status) - && Objects.equals(this.title, restServiceError.title) - && Objects.equals(this.type, restServiceError.type); + return Objects.equals(this.detail, restServiceError.detail) && + Objects.equals(this.errorCode, restServiceError.errorCode) && + Objects.equals(this.instance, restServiceError.instance) && + Objects.equals(this.invalidFields, restServiceError.invalidFields) && + Objects.equals(this.requestId, restServiceError.requestId) && + Objects.equals(this.response, restServiceError.response) && + Objects.equals(this.status, restServiceError.status) && + Objects.equals(this.title, restServiceError.title) && + Objects.equals(this.type, restServiceError.type); } @Override public int hashCode() { - return Objects.hash( - detail, errorCode, instance, invalidFields, requestId, response, status, title, type); + return Objects.hash(detail, errorCode, instance, invalidFields, requestId, response, status, title, type); } @Override @@ -420,7 +415,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -429,7 +425,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RestServiceError given an JSON string * * @param jsonString JSON string @@ -439,12 +435,11 @@ private String toIndentedString(Object o) { public static RestServiceError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RestServiceError.class); } - - /** - * Convert an instance of RestServiceError to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RestServiceError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ScheduleTerminalActionsRequest.java b/src/main/java/com/adyen/model/management/ScheduleTerminalActionsRequest.java index 90da97ae3..17678b8a7 100644 --- a/src/main/java/com/adyen/model/management/ScheduleTerminalActionsRequest.java +++ b/src/main/java/com/adyen/model/management/ScheduleTerminalActionsRequest.java @@ -2,30 +2,41 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.ScheduleTerminalActionsRequestActionDetails; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ScheduleTerminalActionsRequest */ +/** + * ScheduleTerminalActionsRequest + */ @JsonPropertyOrder({ ScheduleTerminalActionsRequest.JSON_PROPERTY_ACTION_DETAILS, ScheduleTerminalActionsRequest.JSON_PROPERTY_SCHEDULED_AT, ScheduleTerminalActionsRequest.JSON_PROPERTY_STORE_ID, ScheduleTerminalActionsRequest.JSON_PROPERTY_TERMINAL_IDS }) + public class ScheduleTerminalActionsRequest { public static final String JSON_PROPERTY_ACTION_DETAILS = "actionDetails"; private ScheduleTerminalActionsRequestActionDetails actionDetails; @@ -39,25 +50,23 @@ public class ScheduleTerminalActionsRequest { public static final String JSON_PROPERTY_TERMINAL_IDS = "terminalIds"; private List terminalIds; - public ScheduleTerminalActionsRequest() {} + public ScheduleTerminalActionsRequest() { + } /** * actionDetails * - * @param actionDetails - * @return the current {@code ScheduleTerminalActionsRequest} instance, allowing for method - * chaining + * @param actionDetails + * @return the current {@code ScheduleTerminalActionsRequest} instance, allowing for method chaining */ - public ScheduleTerminalActionsRequest actionDetails( - ScheduleTerminalActionsRequestActionDetails actionDetails) { + public ScheduleTerminalActionsRequest actionDetails(ScheduleTerminalActionsRequestActionDetails actionDetails) { this.actionDetails = actionDetails; return this; } /** * Get actionDetails - * - * @return actionDetails + * @return actionDetails */ @JsonProperty(JSON_PROPERTY_ACTION_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,7 +77,7 @@ public ScheduleTerminalActionsRequestActionDetails getActionDetails() { /** * actionDetails * - * @param actionDetails + * @param actionDetails */ @JsonProperty(JSON_PROPERTY_ACTION_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -77,22 +86,10 @@ public void setActionDetails(ScheduleTerminalActionsRequestActionDetails actionD } /** - * The date and time when the action should happen. Format: [RFC - * 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. - * For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance - * call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) - * after the specified date and time in the time zone of the terminal. An empty value causes the - * action to be sent as soon as possible: at the next maintenance call. + * The date and time when the action should happen. Format: [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) after the specified date and time in the time zone of the terminal. An empty value causes the action to be sent as soon as possible: at the next maintenance call. * - * @param scheduledAt The date and time when the action should happen. Format: [RFC - * 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time - * offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first - * [maintenance - * call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) - * after the specified date and time in the time zone of the terminal. An empty value causes - * the action to be sent as soon as possible: at the next maintenance call. - * @return the current {@code ScheduleTerminalActionsRequest} instance, allowing for method - * chaining + * @param scheduledAt The date and time when the action should happen. Format: [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) after the specified date and time in the time zone of the terminal. An empty value causes the action to be sent as soon as possible: at the next maintenance call. + * @return the current {@code ScheduleTerminalActionsRequest} instance, allowing for method chaining */ public ScheduleTerminalActionsRequest scheduledAt(String scheduledAt) { this.scheduledAt = scheduledAt; @@ -100,20 +97,8 @@ public ScheduleTerminalActionsRequest scheduledAt(String scheduledAt) { } /** - * The date and time when the action should happen. Format: [RFC - * 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. - * For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance - * call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) - * after the specified date and time in the time zone of the terminal. An empty value causes the - * action to be sent as soon as possible: at the next maintenance call. - * - * @return scheduledAt The date and time when the action should happen. Format: [RFC - * 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time - * offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first - * [maintenance - * call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) - * after the specified date and time in the time zone of the terminal. An empty value causes - * the action to be sent as soon as possible: at the next maintenance call. + * The date and time when the action should happen. Format: [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) after the specified date and time in the time zone of the terminal. An empty value causes the action to be sent as soon as possible: at the next maintenance call. + * @return scheduledAt The date and time when the action should happen. Format: [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) after the specified date and time in the time zone of the terminal. An empty value causes the action to be sent as soon as possible: at the next maintenance call. */ @JsonProperty(JSON_PROPERTY_SCHEDULED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -122,20 +107,9 @@ public String getScheduledAt() { } /** - * The date and time when the action should happen. Format: [RFC - * 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. - * For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance - * call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) - * after the specified date and time in the time zone of the terminal. An empty value causes the - * action to be sent as soon as possible: at the next maintenance call. + * The date and time when the action should happen. Format: [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) after the specified date and time in the time zone of the terminal. An empty value causes the action to be sent as soon as possible: at the next maintenance call. * - * @param scheduledAt The date and time when the action should happen. Format: [RFC - * 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time - * offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first - * [maintenance - * call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) - * after the specified date and time in the time zone of the terminal. An empty value causes - * the action to be sent as soon as possible: at the next maintenance call. + * @param scheduledAt The date and time when the action should happen. Format: [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) after the specified date and time in the time zone of the terminal. An empty value causes the action to be sent as soon as possible: at the next maintenance call. */ @JsonProperty(JSON_PROPERTY_SCHEDULED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,15 +118,10 @@ public void setScheduledAt(String scheduledAt) { } /** - * The unique ID of the - * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, - * all terminals in the `terminalIds` list must be assigned to this store. + * The unique ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, all terminals in the `terminalIds` list must be assigned to this store. * - * @param storeId The unique ID of the - * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If - * present, all terminals in the `terminalIds` list must be assigned to this store. - * @return the current {@code ScheduleTerminalActionsRequest} instance, allowing for method - * chaining + * @param storeId The unique ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, all terminals in the `terminalIds` list must be assigned to this store. + * @return the current {@code ScheduleTerminalActionsRequest} instance, allowing for method chaining */ public ScheduleTerminalActionsRequest storeId(String storeId) { this.storeId = storeId; @@ -160,13 +129,8 @@ public ScheduleTerminalActionsRequest storeId(String storeId) { } /** - * The unique ID of the - * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, - * all terminals in the `terminalIds` list must be assigned to this store. - * - * @return storeId The unique ID of the - * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If - * present, all terminals in the `terminalIds` list must be assigned to this store. + * The unique ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, all terminals in the `terminalIds` list must be assigned to this store. + * @return storeId The unique ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, all terminals in the `terminalIds` list must be assigned to this store. */ @JsonProperty(JSON_PROPERTY_STORE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -175,13 +139,9 @@ public String getStoreId() { } /** - * The unique ID of the - * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, - * all terminals in the `terminalIds` list must be assigned to this store. + * The unique ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, all terminals in the `terminalIds` list must be assigned to this store. * - * @param storeId The unique ID of the - * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If - * present, all terminals in the `terminalIds` list must be assigned to this store. + * @param storeId The unique ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, all terminals in the `terminalIds` list must be assigned to this store. */ @JsonProperty(JSON_PROPERTY_STORE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,17 +150,10 @@ public void setStoreId(String storeId) { } /** - * A list of unique IDs of the terminals to apply the action to. You can extract the IDs from the - * [GET - * `/terminals`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/terminals) - * response. Maximum length: 100 IDs. + * A list of unique IDs of the terminals to apply the action to. You can extract the IDs from the [GET `/terminals`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/terminals) response. Maximum length: 100 IDs. * - * @param terminalIds A list of unique IDs of the terminals to apply the action to. You can - * extract the IDs from the [GET - * `/terminals`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/terminals) - * response. Maximum length: 100 IDs. - * @return the current {@code ScheduleTerminalActionsRequest} instance, allowing for method - * chaining + * @param terminalIds A list of unique IDs of the terminals to apply the action to. You can extract the IDs from the [GET `/terminals`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/terminals) response. Maximum length: 100 IDs. + * @return the current {@code ScheduleTerminalActionsRequest} instance, allowing for method chaining */ public ScheduleTerminalActionsRequest terminalIds(List terminalIds) { this.terminalIds = terminalIds; @@ -216,15 +169,8 @@ public ScheduleTerminalActionsRequest addTerminalIdsItem(String terminalIdsItem) } /** - * A list of unique IDs of the terminals to apply the action to. You can extract the IDs from the - * [GET - * `/terminals`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/terminals) - * response. Maximum length: 100 IDs. - * - * @return terminalIds A list of unique IDs of the terminals to apply the action to. You can - * extract the IDs from the [GET - * `/terminals`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/terminals) - * response. Maximum length: 100 IDs. + * A list of unique IDs of the terminals to apply the action to. You can extract the IDs from the [GET `/terminals`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/terminals) response. Maximum length: 100 IDs. + * @return terminalIds A list of unique IDs of the terminals to apply the action to. You can extract the IDs from the [GET `/terminals`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/terminals) response. Maximum length: 100 IDs. */ @JsonProperty(JSON_PROPERTY_TERMINAL_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -233,15 +179,9 @@ public List getTerminalIds() { } /** - * A list of unique IDs of the terminals to apply the action to. You can extract the IDs from the - * [GET - * `/terminals`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/terminals) - * response. Maximum length: 100 IDs. + * A list of unique IDs of the terminals to apply the action to. You can extract the IDs from the [GET `/terminals`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/terminals) response. Maximum length: 100 IDs. * - * @param terminalIds A list of unique IDs of the terminals to apply the action to. You can - * extract the IDs from the [GET - * `/terminals`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/terminals) - * response. Maximum length: 100 IDs. + * @param terminalIds A list of unique IDs of the terminals to apply the action to. You can extract the IDs from the [GET `/terminals`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/terminals) response. Maximum length: 100 IDs. */ @JsonProperty(JSON_PROPERTY_TERMINAL_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -249,7 +189,9 @@ public void setTerminalIds(List terminalIds) { this.terminalIds = terminalIds; } - /** Return true if this ScheduleTerminalActionsRequest object is equal to o. */ + /** + * Return true if this ScheduleTerminalActionsRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -258,12 +200,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ScheduleTerminalActionsRequest scheduleTerminalActionsRequest = - (ScheduleTerminalActionsRequest) o; - return Objects.equals(this.actionDetails, scheduleTerminalActionsRequest.actionDetails) - && Objects.equals(this.scheduledAt, scheduleTerminalActionsRequest.scheduledAt) - && Objects.equals(this.storeId, scheduleTerminalActionsRequest.storeId) - && Objects.equals(this.terminalIds, scheduleTerminalActionsRequest.terminalIds); + ScheduleTerminalActionsRequest scheduleTerminalActionsRequest = (ScheduleTerminalActionsRequest) o; + return Objects.equals(this.actionDetails, scheduleTerminalActionsRequest.actionDetails) && + Objects.equals(this.scheduledAt, scheduleTerminalActionsRequest.scheduledAt) && + Objects.equals(this.storeId, scheduleTerminalActionsRequest.storeId) && + Objects.equals(this.terminalIds, scheduleTerminalActionsRequest.terminalIds); } @Override @@ -284,7 +225,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -293,24 +235,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ScheduleTerminalActionsRequest given an JSON string * * @param jsonString JSON string * @return An instance of ScheduleTerminalActionsRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ScheduleTerminalActionsRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to ScheduleTerminalActionsRequest */ - public static ScheduleTerminalActionsRequest fromJson(String jsonString) - throws JsonProcessingException { + public static ScheduleTerminalActionsRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ScheduleTerminalActionsRequest.class); } - - /** - * Convert an instance of ScheduleTerminalActionsRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ScheduleTerminalActionsRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ScheduleTerminalActionsRequestActionDetails.java b/src/main/java/com/adyen/model/management/ScheduleTerminalActionsRequestActionDetails.java index 94436e76c..c50b298d1 100644 --- a/src/main/java/com/adyen/model/management/ScheduleTerminalActionsRequestActionDetails.java +++ b/src/main/java/com/adyen/model/management/ScheduleTerminalActionsRequestActionDetails.java @@ -2,19 +2,48 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.InstallAndroidAppDetails; +import com.adyen.model.management.InstallAndroidCertificateDetails; +import com.adyen.model.management.ReleaseUpdateDetails; +import com.adyen.model.management.UninstallAndroidAppDetails; +import com.adyen.model.management.UninstallAndroidCertificateDetails; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + +import com.fasterxml.jackson.core.type.TypeReference; + +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.Response; +import java.io.IOException; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; + import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; +import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -24,403 +53,355 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import jakarta.ws.rs.core.GenericType; -import java.io.IOException; -import java.util.*; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashSet; -import java.util.logging.Level; -import java.util.logging.Logger; -@JsonDeserialize( - using = - ScheduleTerminalActionsRequestActionDetails - .ScheduleTerminalActionsRequestActionDetailsDeserializer.class) -@JsonSerialize( - using = - ScheduleTerminalActionsRequestActionDetails - .ScheduleTerminalActionsRequestActionDetailsSerializer.class) + +@JsonDeserialize(using = ScheduleTerminalActionsRequestActionDetails.ScheduleTerminalActionsRequestActionDetailsDeserializer.class) +@JsonSerialize(using = ScheduleTerminalActionsRequestActionDetails.ScheduleTerminalActionsRequestActionDetailsSerializer.class) public class ScheduleTerminalActionsRequestActionDetails extends AbstractOpenApiSchema { - private static final Logger log = - Logger.getLogger(ScheduleTerminalActionsRequestActionDetails.class.getName()); - - public static class ScheduleTerminalActionsRequestActionDetailsSerializer - extends StdSerializer { - public ScheduleTerminalActionsRequestActionDetailsSerializer( - Class t) { - super(t); + private static final Logger log = Logger.getLogger(ScheduleTerminalActionsRequestActionDetails.class.getName()); + + public static class ScheduleTerminalActionsRequestActionDetailsSerializer extends StdSerializer { + public ScheduleTerminalActionsRequestActionDetailsSerializer(Class t) { + super(t); + } + + public ScheduleTerminalActionsRequestActionDetailsSerializer() { + this(null); + } + + @Override + public void serialize(ScheduleTerminalActionsRequestActionDetails value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); + } } - public ScheduleTerminalActionsRequestActionDetailsSerializer() { - this(null); + public static class ScheduleTerminalActionsRequestActionDetailsDeserializer extends StdDeserializer { + public ScheduleTerminalActionsRequestActionDetailsDeserializer() { + this(ScheduleTerminalActionsRequestActionDetails.class); + } + + public ScheduleTerminalActionsRequestActionDetailsDeserializer(Class vc) { + super(vc); + } + + @Override + public ScheduleTerminalActionsRequestActionDetails deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize InstallAndroidAppDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(InstallAndroidAppDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(InstallAndroidAppDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'InstallAndroidAppDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'InstallAndroidAppDetails'", e); + } + + // deserialize InstallAndroidCertificateDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(InstallAndroidCertificateDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(InstallAndroidCertificateDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'InstallAndroidCertificateDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'InstallAndroidCertificateDetails'", e); + } + + // deserialize ReleaseUpdateDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(ReleaseUpdateDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(ReleaseUpdateDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'ReleaseUpdateDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'ReleaseUpdateDetails'", e); + } + + // deserialize UninstallAndroidAppDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(UninstallAndroidAppDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(UninstallAndroidAppDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'UninstallAndroidAppDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'UninstallAndroidAppDetails'", e); + } + + // deserialize UninstallAndroidCertificateDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(UninstallAndroidCertificateDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(UninstallAndroidCertificateDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'UninstallAndroidCertificateDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'UninstallAndroidCertificateDetails'", e); + } + + if (match == 1) { + ScheduleTerminalActionsRequestActionDetails ret = new ScheduleTerminalActionsRequestActionDetails(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException(String.format("Failed deserialization for ScheduleTerminalActionsRequestActionDetails: %d classes match result, expected 1", match)); + } + + /** + * Handle deserialization of the 'null' value. + */ + @Override + public ScheduleTerminalActionsRequestActionDetails getNullValue(DeserializationContext ctxt) throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "ScheduleTerminalActionsRequestActionDetails cannot be null"); + } } - @Override - public void serialize( - ScheduleTerminalActionsRequestActionDetails value, - JsonGenerator jgen, - SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public ScheduleTerminalActionsRequestActionDetails() { + super("oneOf", Boolean.FALSE); + } + + public ScheduleTerminalActionsRequestActionDetails(InstallAndroidAppDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public ScheduleTerminalActionsRequestActionDetails(InstallAndroidCertificateDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public ScheduleTerminalActionsRequestActionDetails(ReleaseUpdateDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public ScheduleTerminalActionsRequestActionDetails(UninstallAndroidAppDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public ScheduleTerminalActionsRequestActionDetails(UninstallAndroidCertificateDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } - } - public static class ScheduleTerminalActionsRequestActionDetailsDeserializer - extends StdDeserializer { - public ScheduleTerminalActionsRequestActionDetailsDeserializer() { - this(ScheduleTerminalActionsRequestActionDetails.class); + static { + schemas.put("InstallAndroidAppDetails", new GenericType() { + }); + schemas.put("InstallAndroidCertificateDetails", new GenericType() { + }); + schemas.put("ReleaseUpdateDetails", new GenericType() { + }); + schemas.put("UninstallAndroidAppDetails", new GenericType() { + }); + schemas.put("UninstallAndroidCertificateDetails", new GenericType() { + }); + JSON.registerDescendants(ScheduleTerminalActionsRequestActionDetails.class, Collections.unmodifiableMap(schemas)); } - public ScheduleTerminalActionsRequestActionDetailsDeserializer(Class vc) { - super(vc); + @Override + public Map> getSchemas() { + return ScheduleTerminalActionsRequestActionDetails.schemas; } + /** + * Set the instance that matches the oneOf child schema, check + * the instance parameter is valid against the oneOf child schemas: + * InstallAndroidAppDetails, InstallAndroidCertificateDetails, ReleaseUpdateDetails, UninstallAndroidAppDetails, UninstallAndroidCertificateDetails + * + * It could be an instance of the 'oneOf' schemas. + * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). + */ @Override - public ScheduleTerminalActionsRequestActionDetails deserialize( - JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize InstallAndroidAppDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(InstallAndroidAppDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(InstallAndroidAppDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'InstallAndroidAppDetails'"); - } + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(InstallAndroidAppDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'InstallAndroidAppDetails'", e); - } - - // deserialize InstallAndroidCertificateDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(InstallAndroidCertificateDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(InstallAndroidCertificateDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'InstallAndroidCertificateDetails'"); - } + + if (JSON.isInstanceOf(InstallAndroidCertificateDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, "Input data does not match schema 'InstallAndroidCertificateDetails'", e); - } - - // deserialize ReleaseUpdateDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(ReleaseUpdateDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(ReleaseUpdateDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'ReleaseUpdateDetails'"); - } + + if (JSON.isInstanceOf(ReleaseUpdateDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'ReleaseUpdateDetails'", e); - } - - // deserialize UninstallAndroidAppDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(UninstallAndroidAppDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(UninstallAndroidAppDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'UninstallAndroidAppDetails'"); - } + + if (JSON.isInstanceOf(UninstallAndroidAppDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'UninstallAndroidAppDetails'", e); - } - - // deserialize UninstallAndroidCertificateDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(UninstallAndroidCertificateDetails.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(UninstallAndroidCertificateDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'UninstallAndroidCertificateDetails'"); - } + + if (JSON.isInstanceOf(UninstallAndroidCertificateDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, - "Input data does not match schema 'UninstallAndroidCertificateDetails'", - e); - } - - if (match == 1) { - ScheduleTerminalActionsRequestActionDetails ret = - new ScheduleTerminalActionsRequestActionDetails(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for ScheduleTerminalActionsRequestActionDetails: %d classes match result, expected 1", - match)); + + throw new RuntimeException("Invalid instance type. Must be InstallAndroidAppDetails, InstallAndroidCertificateDetails, ReleaseUpdateDetails, UninstallAndroidAppDetails, UninstallAndroidCertificateDetails"); } - /** Handle deserialization of the 'null' value. */ + /** + * Get the actual instance, which can be the following: + * InstallAndroidAppDetails, InstallAndroidCertificateDetails, ReleaseUpdateDetails, UninstallAndroidAppDetails, UninstallAndroidCertificateDetails + * + * @return The actual instance (InstallAndroidAppDetails, InstallAndroidCertificateDetails, ReleaseUpdateDetails, UninstallAndroidAppDetails, UninstallAndroidCertificateDetails) + */ @Override - public ScheduleTerminalActionsRequestActionDetails getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "ScheduleTerminalActionsRequestActionDetails cannot be null"); + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `InstallAndroidAppDetails`. If the actual instance is not `InstallAndroidAppDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `InstallAndroidAppDetails` + * @throws ClassCastException if the instance is not `InstallAndroidAppDetails` + */ + public InstallAndroidAppDetails getInstallAndroidAppDetails() throws ClassCastException { + return (InstallAndroidAppDetails)super.getActualInstance(); } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public ScheduleTerminalActionsRequestActionDetails() { - super("oneOf", Boolean.FALSE); - } - - public ScheduleTerminalActionsRequestActionDetails(InstallAndroidAppDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public ScheduleTerminalActionsRequestActionDetails(InstallAndroidCertificateDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public ScheduleTerminalActionsRequestActionDetails(ReleaseUpdateDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public ScheduleTerminalActionsRequestActionDetails(UninstallAndroidAppDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public ScheduleTerminalActionsRequestActionDetails(UninstallAndroidCertificateDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("InstallAndroidAppDetails", new GenericType() {}); - schemas.put( - "InstallAndroidCertificateDetails", new GenericType() {}); - schemas.put("ReleaseUpdateDetails", new GenericType() {}); - schemas.put("UninstallAndroidAppDetails", new GenericType() {}); - schemas.put( - "UninstallAndroidCertificateDetails", - new GenericType() {}); - JSON.registerDescendants( - ScheduleTerminalActionsRequestActionDetails.class, Collections.unmodifiableMap(schemas)); - } - - @Override - public Map> getSchemas() { - return ScheduleTerminalActionsRequestActionDetails.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: InstallAndroidAppDetails, InstallAndroidCertificateDetails, - * ReleaseUpdateDetails, UninstallAndroidAppDetails, UninstallAndroidCertificateDetails - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a - * composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(InstallAndroidAppDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + + /** + * Get the actual instance of `InstallAndroidCertificateDetails`. If the actual instance is not `InstallAndroidCertificateDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `InstallAndroidCertificateDetails` + * @throws ClassCastException if the instance is not `InstallAndroidCertificateDetails` + */ + public InstallAndroidCertificateDetails getInstallAndroidCertificateDetails() throws ClassCastException { + return (InstallAndroidCertificateDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(InstallAndroidCertificateDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `ReleaseUpdateDetails`. If the actual instance is not `ReleaseUpdateDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `ReleaseUpdateDetails` + * @throws ClassCastException if the instance is not `ReleaseUpdateDetails` + */ + public ReleaseUpdateDetails getReleaseUpdateDetails() throws ClassCastException { + return (ReleaseUpdateDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(ReleaseUpdateDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `UninstallAndroidAppDetails`. If the actual instance is not `UninstallAndroidAppDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `UninstallAndroidAppDetails` + * @throws ClassCastException if the instance is not `UninstallAndroidAppDetails` + */ + public UninstallAndroidAppDetails getUninstallAndroidAppDetails() throws ClassCastException { + return (UninstallAndroidAppDetails)super.getActualInstance(); } - if (JSON.isInstanceOf(UninstallAndroidAppDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `UninstallAndroidCertificateDetails`. If the actual instance is not `UninstallAndroidCertificateDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `UninstallAndroidCertificateDetails` + * @throws ClassCastException if the instance is not `UninstallAndroidCertificateDetails` + */ + public UninstallAndroidCertificateDetails getUninstallAndroidCertificateDetails() throws ClassCastException { + return (UninstallAndroidCertificateDetails)super.getActualInstance(); + } + + + /** + * Create an instance of ScheduleTerminalActionsRequestActionDetails given an JSON string + * + * @param jsonString JSON string + * @return An instance of ScheduleTerminalActionsRequestActionDetails + * @throws IOException if the JSON string is invalid with respect to ScheduleTerminalActionsRequestActionDetails + */ + public static ScheduleTerminalActionsRequestActionDetails fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, ScheduleTerminalActionsRequestActionDetails.class); } - if (JSON.isInstanceOf(UninstallAndroidCertificateDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Convert an instance of ScheduleTerminalActionsRequestActionDetails to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); } - throw new RuntimeException( - "Invalid instance type. Must be InstallAndroidAppDetails, InstallAndroidCertificateDetails, ReleaseUpdateDetails, UninstallAndroidAppDetails, UninstallAndroidCertificateDetails"); - } - - /** - * Get the actual instance, which can be the following: InstallAndroidAppDetails, - * InstallAndroidCertificateDetails, ReleaseUpdateDetails, UninstallAndroidAppDetails, - * UninstallAndroidCertificateDetails - * - * @return The actual instance (InstallAndroidAppDetails, InstallAndroidCertificateDetails, - * ReleaseUpdateDetails, UninstallAndroidAppDetails, UninstallAndroidCertificateDetails) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `InstallAndroidAppDetails`. If the actual instance is not - * `InstallAndroidAppDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `InstallAndroidAppDetails` - * @throws ClassCastException if the instance is not `InstallAndroidAppDetails` - */ - public InstallAndroidAppDetails getInstallAndroidAppDetails() throws ClassCastException { - return (InstallAndroidAppDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `InstallAndroidCertificateDetails`. If the actual instance is not - * `InstallAndroidCertificateDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `InstallAndroidCertificateDetails` - * @throws ClassCastException if the instance is not `InstallAndroidCertificateDetails` - */ - public InstallAndroidCertificateDetails getInstallAndroidCertificateDetails() - throws ClassCastException { - return (InstallAndroidCertificateDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `ReleaseUpdateDetails`. If the actual instance is not - * `ReleaseUpdateDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `ReleaseUpdateDetails` - * @throws ClassCastException if the instance is not `ReleaseUpdateDetails` - */ - public ReleaseUpdateDetails getReleaseUpdateDetails() throws ClassCastException { - return (ReleaseUpdateDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `UninstallAndroidAppDetails`. If the actual instance is not - * `UninstallAndroidAppDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `UninstallAndroidAppDetails` - * @throws ClassCastException if the instance is not `UninstallAndroidAppDetails` - */ - public UninstallAndroidAppDetails getUninstallAndroidAppDetails() throws ClassCastException { - return (UninstallAndroidAppDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `UninstallAndroidCertificateDetails`. If the actual instance is not - * `UninstallAndroidCertificateDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `UninstallAndroidCertificateDetails` - * @throws ClassCastException if the instance is not `UninstallAndroidCertificateDetails` - */ - public UninstallAndroidCertificateDetails getUninstallAndroidCertificateDetails() - throws ClassCastException { - return (UninstallAndroidCertificateDetails) super.getActualInstance(); - } - - /** - * Create an instance of ScheduleTerminalActionsRequestActionDetails given an JSON string - * - * @param jsonString JSON string - * @return An instance of ScheduleTerminalActionsRequestActionDetails - * @throws IOException if the JSON string is invalid with respect to - * ScheduleTerminalActionsRequestActionDetails - */ - public static ScheduleTerminalActionsRequestActionDetails fromJson(String jsonString) - throws IOException { - return JSON.getMapper() - .readValue(jsonString, ScheduleTerminalActionsRequestActionDetails.class); - } - - /** - * Convert an instance of ScheduleTerminalActionsRequestActionDetails to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); - } } diff --git a/src/main/java/com/adyen/model/management/ScheduleTerminalActionsResponse.java b/src/main/java/com/adyen/model/management/ScheduleTerminalActionsResponse.java index 3fbfc2649..d68b36b2a 100644 --- a/src/main/java/com/adyen/model/management/ScheduleTerminalActionsResponse.java +++ b/src/main/java/com/adyen/model/management/ScheduleTerminalActionsResponse.java @@ -2,26 +2,37 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.ScheduleTerminalActionsRequestActionDetails; +import com.adyen.model.management.TerminalActionScheduleDetail; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ScheduleTerminalActionsResponse */ +/** + * ScheduleTerminalActionsResponse + */ @JsonPropertyOrder({ ScheduleTerminalActionsResponse.JSON_PROPERTY_ACTION_DETAILS, ScheduleTerminalActionsResponse.JSON_PROPERTY_ITEMS, @@ -31,6 +42,7 @@ ScheduleTerminalActionsResponse.JSON_PROPERTY_TOTAL_ERRORS, ScheduleTerminalActionsResponse.JSON_PROPERTY_TOTAL_SCHEDULED }) + public class ScheduleTerminalActionsResponse { public static final String JSON_PROPERTY_ACTION_DETAILS = "actionDetails"; private ScheduleTerminalActionsRequestActionDetails actionDetails; @@ -53,25 +65,23 @@ public class ScheduleTerminalActionsResponse { public static final String JSON_PROPERTY_TOTAL_SCHEDULED = "totalScheduled"; private Integer totalScheduled; - public ScheduleTerminalActionsResponse() {} + public ScheduleTerminalActionsResponse() { + } /** * actionDetails * - * @param actionDetails - * @return the current {@code ScheduleTerminalActionsResponse} instance, allowing for method - * chaining + * @param actionDetails + * @return the current {@code ScheduleTerminalActionsResponse} instance, allowing for method chaining */ - public ScheduleTerminalActionsResponse actionDetails( - ScheduleTerminalActionsRequestActionDetails actionDetails) { + public ScheduleTerminalActionsResponse actionDetails(ScheduleTerminalActionsRequestActionDetails actionDetails) { this.actionDetails = actionDetails; return this; } /** * Get actionDetails - * - * @return actionDetails + * @return actionDetails */ @JsonProperty(JSON_PROPERTY_ACTION_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -82,7 +92,7 @@ public ScheduleTerminalActionsRequestActionDetails getActionDetails() { /** * actionDetails * - * @param actionDetails + * @param actionDetails */ @JsonProperty(JSON_PROPERTY_ACTION_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -91,13 +101,10 @@ public void setActionDetails(ScheduleTerminalActionsRequestActionDetails actionD } /** - * A list containing a terminal ID and an action ID for each terminal that the action was - * scheduled for. + * A list containing a terminal ID and an action ID for each terminal that the action was scheduled for. * - * @param items A list containing a terminal ID and an action ID for each terminal that the action - * was scheduled for. - * @return the current {@code ScheduleTerminalActionsResponse} instance, allowing for method - * chaining + * @param items A list containing a terminal ID and an action ID for each terminal that the action was scheduled for. + * @return the current {@code ScheduleTerminalActionsResponse} instance, allowing for method chaining */ public ScheduleTerminalActionsResponse items(List items) { this.items = items; @@ -113,11 +120,8 @@ public ScheduleTerminalActionsResponse addItemsItem(TerminalActionScheduleDetail } /** - * A list containing a terminal ID and an action ID for each terminal that the action was - * scheduled for. - * - * @return items A list containing a terminal ID and an action ID for each terminal that the - * action was scheduled for. + * A list containing a terminal ID and an action ID for each terminal that the action was scheduled for. + * @return items A list containing a terminal ID and an action ID for each terminal that the action was scheduled for. */ @JsonProperty(JSON_PROPERTY_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,11 +130,9 @@ public List getItems() { } /** - * A list containing a terminal ID and an action ID for each terminal that the action was - * scheduled for. + * A list containing a terminal ID and an action ID for each terminal that the action was scheduled for. * - * @param items A list containing a terminal ID and an action ID for each terminal that the action - * was scheduled for. + * @param items A list containing a terminal ID and an action ID for each terminal that the action was scheduled for. */ @JsonProperty(JSON_PROPERTY_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,22 +141,10 @@ public void setItems(List items) { } /** - * The date and time when the action should happen. Format: [RFC - * 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. - * For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance - * call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) - * after the specified date and time in the time zone of the terminal. An empty value causes the - * action to be sent as soon as possible: at the next maintenance call. + * The date and time when the action should happen. Format: [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) after the specified date and time in the time zone of the terminal. An empty value causes the action to be sent as soon as possible: at the next maintenance call. * - * @param scheduledAt The date and time when the action should happen. Format: [RFC - * 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time - * offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first - * [maintenance - * call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) - * after the specified date and time in the time zone of the terminal. An empty value causes - * the action to be sent as soon as possible: at the next maintenance call. - * @return the current {@code ScheduleTerminalActionsResponse} instance, allowing for method - * chaining + * @param scheduledAt The date and time when the action should happen. Format: [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) after the specified date and time in the time zone of the terminal. An empty value causes the action to be sent as soon as possible: at the next maintenance call. + * @return the current {@code ScheduleTerminalActionsResponse} instance, allowing for method chaining */ public ScheduleTerminalActionsResponse scheduledAt(String scheduledAt) { this.scheduledAt = scheduledAt; @@ -162,20 +152,8 @@ public ScheduleTerminalActionsResponse scheduledAt(String scheduledAt) { } /** - * The date and time when the action should happen. Format: [RFC - * 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. - * For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance - * call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) - * after the specified date and time in the time zone of the terminal. An empty value causes the - * action to be sent as soon as possible: at the next maintenance call. - * - * @return scheduledAt The date and time when the action should happen. Format: [RFC - * 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time - * offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first - * [maintenance - * call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) - * after the specified date and time in the time zone of the terminal. An empty value causes - * the action to be sent as soon as possible: at the next maintenance call. + * The date and time when the action should happen. Format: [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) after the specified date and time in the time zone of the terminal. An empty value causes the action to be sent as soon as possible: at the next maintenance call. + * @return scheduledAt The date and time when the action should happen. Format: [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) after the specified date and time in the time zone of the terminal. An empty value causes the action to be sent as soon as possible: at the next maintenance call. */ @JsonProperty(JSON_PROPERTY_SCHEDULED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -184,20 +162,9 @@ public String getScheduledAt() { } /** - * The date and time when the action should happen. Format: [RFC - * 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. - * For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance - * call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) - * after the specified date and time in the time zone of the terminal. An empty value causes the - * action to be sent as soon as possible: at the next maintenance call. + * The date and time when the action should happen. Format: [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) after the specified date and time in the time zone of the terminal. An empty value causes the action to be sent as soon as possible: at the next maintenance call. * - * @param scheduledAt The date and time when the action should happen. Format: [RFC - * 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time - * offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first - * [maintenance - * call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) - * after the specified date and time in the time zone of the terminal. An empty value causes - * the action to be sent as soon as possible: at the next maintenance call. + * @param scheduledAt The date and time when the action should happen. Format: [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) after the specified date and time in the time zone of the terminal. An empty value causes the action to be sent as soon as possible: at the next maintenance call. */ @JsonProperty(JSON_PROPERTY_SCHEDULED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -206,15 +173,10 @@ public void setScheduledAt(String scheduledAt) { } /** - * The unique ID of the - * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, - * all terminals in the `terminalIds` list must be assigned to this store. + * The unique ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, all terminals in the `terminalIds` list must be assigned to this store. * - * @param storeId The unique ID of the - * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If - * present, all terminals in the `terminalIds` list must be assigned to this store. - * @return the current {@code ScheduleTerminalActionsResponse} instance, allowing for method - * chaining + * @param storeId The unique ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, all terminals in the `terminalIds` list must be assigned to this store. + * @return the current {@code ScheduleTerminalActionsResponse} instance, allowing for method chaining */ public ScheduleTerminalActionsResponse storeId(String storeId) { this.storeId = storeId; @@ -222,13 +184,8 @@ public ScheduleTerminalActionsResponse storeId(String storeId) { } /** - * The unique ID of the - * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, - * all terminals in the `terminalIds` list must be assigned to this store. - * - * @return storeId The unique ID of the - * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If - * present, all terminals in the `terminalIds` list must be assigned to this store. + * The unique ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, all terminals in the `terminalIds` list must be assigned to this store. + * @return storeId The unique ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, all terminals in the `terminalIds` list must be assigned to this store. */ @JsonProperty(JSON_PROPERTY_STORE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,13 +194,9 @@ public String getStoreId() { } /** - * The unique ID of the - * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, - * all terminals in the `terminalIds` list must be assigned to this store. + * The unique ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, all terminals in the `terminalIds` list must be assigned to this store. * - * @param storeId The unique ID of the - * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If - * present, all terminals in the `terminalIds` list must be assigned to this store. + * @param storeId The unique ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, all terminals in the `terminalIds` list must be assigned to this store. */ @JsonProperty(JSON_PROPERTY_STORE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,22 +205,17 @@ public void setStoreId(String storeId) { } /** - * The validation errors that occurred in the list of terminals, and for each error the IDs of the - * terminals that the error applies to. + * The validation errors that occurred in the list of terminals, and for each error the IDs of the terminals that the error applies to. * - * @param terminalsWithErrors The validation errors that occurred in the list of terminals, and - * for each error the IDs of the terminals that the error applies to. - * @return the current {@code ScheduleTerminalActionsResponse} instance, allowing for method - * chaining + * @param terminalsWithErrors The validation errors that occurred in the list of terminals, and for each error the IDs of the terminals that the error applies to. + * @return the current {@code ScheduleTerminalActionsResponse} instance, allowing for method chaining */ - public ScheduleTerminalActionsResponse terminalsWithErrors( - Map> terminalsWithErrors) { + public ScheduleTerminalActionsResponse terminalsWithErrors(Map> terminalsWithErrors) { this.terminalsWithErrors = terminalsWithErrors; return this; } - public ScheduleTerminalActionsResponse putTerminalsWithErrorsItem( - String key, List terminalsWithErrorsItem) { + public ScheduleTerminalActionsResponse putTerminalsWithErrorsItem(String key, List terminalsWithErrorsItem) { if (this.terminalsWithErrors == null) { this.terminalsWithErrors = new HashMap<>(); } @@ -276,11 +224,8 @@ public ScheduleTerminalActionsResponse putTerminalsWithErrorsItem( } /** - * The validation errors that occurred in the list of terminals, and for each error the IDs of the - * terminals that the error applies to. - * - * @return terminalsWithErrors The validation errors that occurred in the list of terminals, and - * for each error the IDs of the terminals that the error applies to. + * The validation errors that occurred in the list of terminals, and for each error the IDs of the terminals that the error applies to. + * @return terminalsWithErrors The validation errors that occurred in the list of terminals, and for each error the IDs of the terminals that the error applies to. */ @JsonProperty(JSON_PROPERTY_TERMINALS_WITH_ERRORS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -289,11 +234,9 @@ public Map> getTerminalsWithErrors() { } /** - * The validation errors that occurred in the list of terminals, and for each error the IDs of the - * terminals that the error applies to. + * The validation errors that occurred in the list of terminals, and for each error the IDs of the terminals that the error applies to. * - * @param terminalsWithErrors The validation errors that occurred in the list of terminals, and - * for each error the IDs of the terminals that the error applies to. + * @param terminalsWithErrors The validation errors that occurred in the list of terminals, and for each error the IDs of the terminals that the error applies to. */ @JsonProperty(JSON_PROPERTY_TERMINALS_WITH_ERRORS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -305,8 +248,7 @@ public void setTerminalsWithErrors(Map> terminalsWithErrors * The number of terminals for which scheduling the action failed. * * @param totalErrors The number of terminals for which scheduling the action failed. - * @return the current {@code ScheduleTerminalActionsResponse} instance, allowing for method - * chaining + * @return the current {@code ScheduleTerminalActionsResponse} instance, allowing for method chaining */ public ScheduleTerminalActionsResponse totalErrors(Integer totalErrors) { this.totalErrors = totalErrors; @@ -315,7 +257,6 @@ public ScheduleTerminalActionsResponse totalErrors(Integer totalErrors) { /** * The number of terminals for which scheduling the action failed. - * * @return totalErrors The number of terminals for which scheduling the action failed. */ @JsonProperty(JSON_PROPERTY_TOTAL_ERRORS) @@ -336,13 +277,10 @@ public void setTotalErrors(Integer totalErrors) { } /** - * The number of terminals for which the action was successfully scheduled. This doesn't mean - * the action has happened yet. + * The number of terminals for which the action was successfully scheduled. This doesn't mean the action has happened yet. * - * @param totalScheduled The number of terminals for which the action was successfully scheduled. - * This doesn't mean the action has happened yet. - * @return the current {@code ScheduleTerminalActionsResponse} instance, allowing for method - * chaining + * @param totalScheduled The number of terminals for which the action was successfully scheduled. This doesn't mean the action has happened yet. + * @return the current {@code ScheduleTerminalActionsResponse} instance, allowing for method chaining */ public ScheduleTerminalActionsResponse totalScheduled(Integer totalScheduled) { this.totalScheduled = totalScheduled; @@ -350,11 +288,8 @@ public ScheduleTerminalActionsResponse totalScheduled(Integer totalScheduled) { } /** - * The number of terminals for which the action was successfully scheduled. This doesn't mean - * the action has happened yet. - * - * @return totalScheduled The number of terminals for which the action was successfully scheduled. - * This doesn't mean the action has happened yet. + * The number of terminals for which the action was successfully scheduled. This doesn't mean the action has happened yet. + * @return totalScheduled The number of terminals for which the action was successfully scheduled. This doesn't mean the action has happened yet. */ @JsonProperty(JSON_PROPERTY_TOTAL_SCHEDULED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -363,11 +298,9 @@ public Integer getTotalScheduled() { } /** - * The number of terminals for which the action was successfully scheduled. This doesn't mean - * the action has happened yet. + * The number of terminals for which the action was successfully scheduled. This doesn't mean the action has happened yet. * - * @param totalScheduled The number of terminals for which the action was successfully scheduled. - * This doesn't mean the action has happened yet. + * @param totalScheduled The number of terminals for which the action was successfully scheduled. This doesn't mean the action has happened yet. */ @JsonProperty(JSON_PROPERTY_TOTAL_SCHEDULED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -375,7 +308,9 @@ public void setTotalScheduled(Integer totalScheduled) { this.totalScheduled = totalScheduled; } - /** Return true if this ScheduleTerminalActionsResponse object is equal to o. */ + /** + * Return true if this ScheduleTerminalActionsResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -384,28 +319,19 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ScheduleTerminalActionsResponse scheduleTerminalActionsResponse = - (ScheduleTerminalActionsResponse) o; - return Objects.equals(this.actionDetails, scheduleTerminalActionsResponse.actionDetails) - && Objects.equals(this.items, scheduleTerminalActionsResponse.items) - && Objects.equals(this.scheduledAt, scheduleTerminalActionsResponse.scheduledAt) - && Objects.equals(this.storeId, scheduleTerminalActionsResponse.storeId) - && Objects.equals( - this.terminalsWithErrors, scheduleTerminalActionsResponse.terminalsWithErrors) - && Objects.equals(this.totalErrors, scheduleTerminalActionsResponse.totalErrors) - && Objects.equals(this.totalScheduled, scheduleTerminalActionsResponse.totalScheduled); + ScheduleTerminalActionsResponse scheduleTerminalActionsResponse = (ScheduleTerminalActionsResponse) o; + return Objects.equals(this.actionDetails, scheduleTerminalActionsResponse.actionDetails) && + Objects.equals(this.items, scheduleTerminalActionsResponse.items) && + Objects.equals(this.scheduledAt, scheduleTerminalActionsResponse.scheduledAt) && + Objects.equals(this.storeId, scheduleTerminalActionsResponse.storeId) && + Objects.equals(this.terminalsWithErrors, scheduleTerminalActionsResponse.terminalsWithErrors) && + Objects.equals(this.totalErrors, scheduleTerminalActionsResponse.totalErrors) && + Objects.equals(this.totalScheduled, scheduleTerminalActionsResponse.totalScheduled); } @Override public int hashCode() { - return Objects.hash( - actionDetails, - items, - scheduledAt, - storeId, - terminalsWithErrors, - totalErrors, - totalScheduled); + return Objects.hash(actionDetails, items, scheduledAt, storeId, terminalsWithErrors, totalErrors, totalScheduled); } @Override @@ -416,9 +342,7 @@ public String toString() { sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" scheduledAt: ").append(toIndentedString(scheduledAt)).append("\n"); sb.append(" storeId: ").append(toIndentedString(storeId)).append("\n"); - sb.append(" terminalsWithErrors: ") - .append(toIndentedString(terminalsWithErrors)) - .append("\n"); + sb.append(" terminalsWithErrors: ").append(toIndentedString(terminalsWithErrors)).append("\n"); sb.append(" totalErrors: ").append(toIndentedString(totalErrors)).append("\n"); sb.append(" totalScheduled: ").append(toIndentedString(totalScheduled)).append("\n"); sb.append("}"); @@ -426,7 +350,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -435,24 +360,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ScheduleTerminalActionsResponse given an JSON string * * @param jsonString JSON string * @return An instance of ScheduleTerminalActionsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ScheduleTerminalActionsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to ScheduleTerminalActionsResponse */ - public static ScheduleTerminalActionsResponse fromJson(String jsonString) - throws JsonProcessingException { + public static ScheduleTerminalActionsResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ScheduleTerminalActionsResponse.class); } - - /** - * Convert an instance of ScheduleTerminalActionsResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ScheduleTerminalActionsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/SepaDirectDebitInfo.java b/src/main/java/com/adyen/model/management/SepaDirectDebitInfo.java index 027a311c2..f8aaca7a8 100644 --- a/src/main/java/com/adyen/model/management/SepaDirectDebitInfo.java +++ b/src/main/java/com/adyen/model/management/SepaDirectDebitInfo.java @@ -2,26 +2,37 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.TransactionDescriptionInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** SepaDirectDebitInfo */ + +/** + * SepaDirectDebitInfo + */ @JsonPropertyOrder({ SepaDirectDebitInfo.JSON_PROPERTY_CREDITOR_ID, SepaDirectDebitInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION }) + public class SepaDirectDebitInfo { public static final String JSON_PROPERTY_CREDITOR_ID = "creditorId"; private String creditorId; @@ -29,7 +40,8 @@ public class SepaDirectDebitInfo { public static final String JSON_PROPERTY_TRANSACTION_DESCRIPTION = "transactionDescription"; private TransactionDescriptionInfo transactionDescription; - public SepaDirectDebitInfo() {} + public SepaDirectDebitInfo() { + } /** * Creditor id @@ -44,7 +56,6 @@ public SepaDirectDebitInfo creditorId(String creditorId) { /** * Creditor id - * * @return creditorId Creditor id */ @JsonProperty(JSON_PROPERTY_CREDITOR_ID) @@ -67,19 +78,17 @@ public void setCreditorId(String creditorId) { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription * @return the current {@code SepaDirectDebitInfo} instance, allowing for method chaining */ - public SepaDirectDebitInfo transactionDescription( - TransactionDescriptionInfo transactionDescription) { + public SepaDirectDebitInfo transactionDescription(TransactionDescriptionInfo transactionDescription) { this.transactionDescription = transactionDescription; return this; } /** * Get transactionDescription - * - * @return transactionDescription + * @return transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -90,7 +99,7 @@ public TransactionDescriptionInfo getTransactionDescription() { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -98,7 +107,9 @@ public void setTransactionDescription(TransactionDescriptionInfo transactionDesc this.transactionDescription = transactionDescription; } - /** Return true if this SepaDirectDebitInfo object is equal to o. */ + /** + * Return true if this SepaDirectDebitInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -108,8 +119,8 @@ public boolean equals(Object o) { return false; } SepaDirectDebitInfo sepaDirectDebitInfo = (SepaDirectDebitInfo) o; - return Objects.equals(this.creditorId, sepaDirectDebitInfo.creditorId) - && Objects.equals(this.transactionDescription, sepaDirectDebitInfo.transactionDescription); + return Objects.equals(this.creditorId, sepaDirectDebitInfo.creditorId) && + Objects.equals(this.transactionDescription, sepaDirectDebitInfo.transactionDescription); } @Override @@ -122,15 +133,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SepaDirectDebitInfo {\n"); sb.append(" creditorId: ").append(toIndentedString(creditorId)).append("\n"); - sb.append(" transactionDescription: ") - .append(toIndentedString(transactionDescription)) - .append("\n"); + sb.append(" transactionDescription: ").append(toIndentedString(transactionDescription)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -139,23 +149,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SepaDirectDebitInfo given an JSON string * * @param jsonString JSON string * @return An instance of SepaDirectDebitInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SepaDirectDebitInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to SepaDirectDebitInfo */ public static SepaDirectDebitInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SepaDirectDebitInfo.class); } - - /** - * Convert an instance of SepaDirectDebitInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SepaDirectDebitInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Settings.java b/src/main/java/com/adyen/model/management/Settings.java index fa074d56c..1bfc519fa 100644 --- a/src/main/java/com/adyen/model/management/Settings.java +++ b/src/main/java/com/adyen/model/management/Settings.java @@ -2,27 +2,37 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Settings */ + +/** + * Settings + */ @JsonPropertyOrder({ Settings.JSON_PROPERTY_BAND, Settings.JSON_PROPERTY_ROAMING, Settings.JSON_PROPERTY_TIMEOUT }) + public class Settings { public static final String JSON_PROPERTY_BAND = "band"; private String band; @@ -33,14 +43,13 @@ public class Settings { public static final String JSON_PROPERTY_TIMEOUT = "timeout"; private Integer timeout; - public Settings() {} + public Settings() { + } /** - * The preferred Wi-Fi band, for use if the terminals support multiple bands. Possible values: - * All, 2.4GHz, 5GHz. + * The preferred Wi-Fi band, for use if the terminals support multiple bands. Possible values: All, 2.4GHz, 5GHz. * - * @param band The preferred Wi-Fi band, for use if the terminals support multiple bands. Possible - * values: All, 2.4GHz, 5GHz. + * @param band The preferred Wi-Fi band, for use if the terminals support multiple bands. Possible values: All, 2.4GHz, 5GHz. * @return the current {@code Settings} instance, allowing for method chaining */ public Settings band(String band) { @@ -49,11 +58,8 @@ public Settings band(String band) { } /** - * The preferred Wi-Fi band, for use if the terminals support multiple bands. Possible values: - * All, 2.4GHz, 5GHz. - * - * @return band The preferred Wi-Fi band, for use if the terminals support multiple bands. - * Possible values: All, 2.4GHz, 5GHz. + * The preferred Wi-Fi band, for use if the terminals support multiple bands. Possible values: All, 2.4GHz, 5GHz. + * @return band The preferred Wi-Fi band, for use if the terminals support multiple bands. Possible values: All, 2.4GHz, 5GHz. */ @JsonProperty(JSON_PROPERTY_BAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -62,11 +68,9 @@ public String getBand() { } /** - * The preferred Wi-Fi band, for use if the terminals support multiple bands. Possible values: - * All, 2.4GHz, 5GHz. + * The preferred Wi-Fi band, for use if the terminals support multiple bands. Possible values: All, 2.4GHz, 5GHz. * - * @param band The preferred Wi-Fi band, for use if the terminals support multiple bands. Possible - * values: All, 2.4GHz, 5GHz. + * @param band The preferred Wi-Fi band, for use if the terminals support multiple bands. Possible values: All, 2.4GHz, 5GHz. */ @JsonProperty(JSON_PROPERTY_BAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,7 +91,6 @@ public Settings roaming(Boolean roaming) { /** * Indicates whether roaming is enabled on the terminals. - * * @return roaming Indicates whether roaming is enabled on the terminals. */ @JsonProperty(JSON_PROPERTY_ROAMING) @@ -120,7 +123,6 @@ public Settings timeout(Integer timeout) { /** * The connection time-out in seconds. Minimum value: 0. - * * @return timeout The connection time-out in seconds. Minimum value: 0. */ @JsonProperty(JSON_PROPERTY_TIMEOUT) @@ -140,7 +142,9 @@ public void setTimeout(Integer timeout) { this.timeout = timeout; } - /** Return true if this Settings object is equal to o. */ + /** + * Return true if this Settings object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -150,9 +154,9 @@ public boolean equals(Object o) { return false; } Settings settings = (Settings) o; - return Objects.equals(this.band, settings.band) - && Objects.equals(this.roaming, settings.roaming) - && Objects.equals(this.timeout, settings.timeout); + return Objects.equals(this.band, settings.band) && + Objects.equals(this.roaming, settings.roaming) && + Objects.equals(this.timeout, settings.timeout); } @Override @@ -172,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -181,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Settings given an JSON string * * @param jsonString JSON string @@ -191,12 +196,11 @@ private String toIndentedString(Object o) { public static Settings fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Settings.class); } - - /** - * Convert an instance of Settings to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Settings to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ShippingLocation.java b/src/main/java/com/adyen/model/management/ShippingLocation.java index 5007b1b5f..bed1ef80d 100644 --- a/src/main/java/com/adyen/model/management/ShippingLocation.java +++ b/src/main/java/com/adyen/model/management/ShippingLocation.java @@ -2,28 +2,40 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.Address; +import com.adyen.model.management.Contact; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ShippingLocation */ + +/** + * ShippingLocation + */ @JsonPropertyOrder({ ShippingLocation.JSON_PROPERTY_ADDRESS, ShippingLocation.JSON_PROPERTY_CONTACT, ShippingLocation.JSON_PROPERTY_ID, ShippingLocation.JSON_PROPERTY_NAME }) + public class ShippingLocation { public static final String JSON_PROPERTY_ADDRESS = "address"; private Address address; @@ -37,12 +49,13 @@ public class ShippingLocation { public static final String JSON_PROPERTY_NAME = "name"; private String name; - public ShippingLocation() {} + public ShippingLocation() { + } /** * address * - * @param address + * @param address * @return the current {@code ShippingLocation} instance, allowing for method chaining */ public ShippingLocation address(Address address) { @@ -52,8 +65,7 @@ public ShippingLocation address(Address address) { /** * Get address - * - * @return address + * @return address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,7 +76,7 @@ public Address getAddress() { /** * address * - * @param address + * @param address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,7 +87,7 @@ public void setAddress(Address address) { /** * contact * - * @param contact + * @param contact * @return the current {@code ShippingLocation} instance, allowing for method chaining */ public ShippingLocation contact(Contact contact) { @@ -85,8 +97,7 @@ public ShippingLocation contact(Contact contact) { /** * Get contact - * - * @return contact + * @return contact */ @JsonProperty(JSON_PROPERTY_CONTACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,7 +108,7 @@ public Contact getContact() { /** * contact * - * @param contact + * @param contact */ @JsonProperty(JSON_PROPERTY_CONTACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,11 +117,9 @@ public void setContact(Contact contact) { } /** - * The unique identifier of the shipping location, for use as `shippingLocationId` when - * creating an order. + * The unique identifier of the shipping location, for use as `shippingLocationId` when creating an order. * - * @param id The unique identifier of the shipping location, for use as - * `shippingLocationId` when creating an order. + * @param id The unique identifier of the shipping location, for use as `shippingLocationId` when creating an order. * @return the current {@code ShippingLocation} instance, allowing for method chaining */ public ShippingLocation id(String id) { @@ -119,11 +128,8 @@ public ShippingLocation id(String id) { } /** - * The unique identifier of the shipping location, for use as `shippingLocationId` when - * creating an order. - * - * @return id The unique identifier of the shipping location, for use as - * `shippingLocationId` when creating an order. + * The unique identifier of the shipping location, for use as `shippingLocationId` when creating an order. + * @return id The unique identifier of the shipping location, for use as `shippingLocationId` when creating an order. */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,11 +138,9 @@ public String getId() { } /** - * The unique identifier of the shipping location, for use as `shippingLocationId` when - * creating an order. + * The unique identifier of the shipping location, for use as `shippingLocationId` when creating an order. * - * @param id The unique identifier of the shipping location, for use as - * `shippingLocationId` when creating an order. + * @param id The unique identifier of the shipping location, for use as `shippingLocationId` when creating an order. */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -157,7 +161,6 @@ public ShippingLocation name(String name) { /** * The unique name of the shipping location. - * * @return name The unique name of the shipping location. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -177,7 +180,9 @@ public void setName(String name) { this.name = name; } - /** Return true if this ShippingLocation object is equal to o. */ + /** + * Return true if this ShippingLocation object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -187,10 +192,10 @@ public boolean equals(Object o) { return false; } ShippingLocation shippingLocation = (ShippingLocation) o; - return Objects.equals(this.address, shippingLocation.address) - && Objects.equals(this.contact, shippingLocation.contact) - && Objects.equals(this.id, shippingLocation.id) - && Objects.equals(this.name, shippingLocation.name); + return Objects.equals(this.address, shippingLocation.address) && + Objects.equals(this.contact, shippingLocation.contact) && + Objects.equals(this.id, shippingLocation.id) && + Objects.equals(this.name, shippingLocation.name); } @Override @@ -211,7 +216,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -220,7 +226,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ShippingLocation given an JSON string * * @param jsonString JSON string @@ -230,12 +236,11 @@ private String toIndentedString(Object o) { public static ShippingLocation fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ShippingLocation.class); } - - /** - * Convert an instance of ShippingLocation to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ShippingLocation to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ShippingLocationsResponse.java b/src/main/java/com/adyen/model/management/ShippingLocationsResponse.java index ddf89fcdd..37ab90c6b 100644 --- a/src/main/java/com/adyen/model/management/ShippingLocationsResponse.java +++ b/src/main/java/com/adyen/model/management/ShippingLocationsResponse.java @@ -2,30 +2,44 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.ShippingLocation; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * ShippingLocationsResponse + */ +@JsonPropertyOrder({ + ShippingLocationsResponse.JSON_PROPERTY_DATA +}) -/** ShippingLocationsResponse */ -@JsonPropertyOrder({ShippingLocationsResponse.JSON_PROPERTY_DATA}) public class ShippingLocationsResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; - public ShippingLocationsResponse() {} + public ShippingLocationsResponse() { + } /** * Physical locations where orders can be shipped to. @@ -48,7 +62,6 @@ public ShippingLocationsResponse addDataItem(ShippingLocation dataItem) { /** * Physical locations where orders can be shipped to. - * * @return data Physical locations where orders can be shipped to. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -68,7 +81,9 @@ public void setData(List data) { this.data = data; } - /** Return true if this ShippingLocationsResponse object is equal to o. */ + /** + * Return true if this ShippingLocationsResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -96,7 +111,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -105,24 +121,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ShippingLocationsResponse given an JSON string * * @param jsonString JSON string * @return An instance of ShippingLocationsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ShippingLocationsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to ShippingLocationsResponse */ - public static ShippingLocationsResponse fromJson(String jsonString) - throws JsonProcessingException { + public static ShippingLocationsResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ShippingLocationsResponse.class); } - - /** - * Convert an instance of ShippingLocationsResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ShippingLocationsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Signature.java b/src/main/java/com/adyen/model/management/Signature.java index da064abe0..0017b318b 100644 --- a/src/main/java/com/adyen/model/management/Signature.java +++ b/src/main/java/com/adyen/model/management/Signature.java @@ -2,28 +2,38 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Signature */ + +/** + * Signature + */ @JsonPropertyOrder({ Signature.JSON_PROPERTY_ASK_SIGNATURE_ON_SCREEN, Signature.JSON_PROPERTY_DEVICE_NAME, Signature.JSON_PROPERTY_DEVICE_SLOGAN, Signature.JSON_PROPERTY_SKIP_SIGNATURE }) + public class Signature { public static final String JSON_PROPERTY_ASK_SIGNATURE_ON_SCREEN = "askSignatureOnScreen"; private Boolean askSignatureOnScreen; @@ -37,15 +47,13 @@ public class Signature { public static final String JSON_PROPERTY_SKIP_SIGNATURE = "skipSignature"; private Boolean skipSignature; - public Signature() {} + public Signature() { + } /** - * If `skipSignature` is false, indicates whether the shopper should provide a signature - * on the display (**true**) or on the merchant receipt (**false**). + * If `skipSignature` is false, indicates whether the shopper should provide a signature on the display (**true**) or on the merchant receipt (**false**). * - * @param askSignatureOnScreen If `skipSignature` is false, indicates whether the - * shopper should provide a signature on the display (**true**) or on the merchant receipt - * (**false**). + * @param askSignatureOnScreen If `skipSignature` is false, indicates whether the shopper should provide a signature on the display (**true**) or on the merchant receipt (**false**). * @return the current {@code Signature} instance, allowing for method chaining */ public Signature askSignatureOnScreen(Boolean askSignatureOnScreen) { @@ -54,12 +62,8 @@ public Signature askSignatureOnScreen(Boolean askSignatureOnScreen) { } /** - * If `skipSignature` is false, indicates whether the shopper should provide a signature - * on the display (**true**) or on the merchant receipt (**false**). - * - * @return askSignatureOnScreen If `skipSignature` is false, indicates whether the - * shopper should provide a signature on the display (**true**) or on the merchant receipt - * (**false**). + * If `skipSignature` is false, indicates whether the shopper should provide a signature on the display (**true**) or on the merchant receipt (**false**). + * @return askSignatureOnScreen If `skipSignature` is false, indicates whether the shopper should provide a signature on the display (**true**) or on the merchant receipt (**false**). */ @JsonProperty(JSON_PROPERTY_ASK_SIGNATURE_ON_SCREEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,12 +72,9 @@ public Boolean getAskSignatureOnScreen() { } /** - * If `skipSignature` is false, indicates whether the shopper should provide a signature - * on the display (**true**) or on the merchant receipt (**false**). + * If `skipSignature` is false, indicates whether the shopper should provide a signature on the display (**true**) or on the merchant receipt (**false**). * - * @param askSignatureOnScreen If `skipSignature` is false, indicates whether the - * shopper should provide a signature on the display (**true**) or on the merchant receipt - * (**false**). + * @param askSignatureOnScreen If `skipSignature` is false, indicates whether the shopper should provide a signature on the display (**true**) or on the merchant receipt (**false**). */ @JsonProperty(JSON_PROPERTY_ASK_SIGNATURE_ON_SCREEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,7 +95,6 @@ public Signature deviceName(String deviceName) { /** * Name that identifies the terminal. - * * @return deviceName Name that identifies the terminal. */ @JsonProperty(JSON_PROPERTY_DEVICE_NAME) @@ -127,7 +127,6 @@ public Signature deviceSlogan(String deviceSlogan) { /** * Slogan shown on the start screen of the device. - * * @return deviceSlogan Slogan shown on the start screen of the device. */ @JsonProperty(JSON_PROPERTY_DEVICE_SLOGAN) @@ -148,12 +147,9 @@ public void setDeviceSlogan(String deviceSlogan) { } /** - * Skip asking for a signature. This is possible because all global card schemes (American - * Express, Diners, Discover, JCB, MasterCard, VISA, and UnionPay) regard a signature as optional. + * Skip asking for a signature. This is possible because all global card schemes (American Express, Diners, Discover, JCB, MasterCard, VISA, and UnionPay) regard a signature as optional. * - * @param skipSignature Skip asking for a signature. This is possible because all global card - * schemes (American Express, Diners, Discover, JCB, MasterCard, VISA, and UnionPay) regard a - * signature as optional. + * @param skipSignature Skip asking for a signature. This is possible because all global card schemes (American Express, Diners, Discover, JCB, MasterCard, VISA, and UnionPay) regard a signature as optional. * @return the current {@code Signature} instance, allowing for method chaining */ public Signature skipSignature(Boolean skipSignature) { @@ -162,12 +158,8 @@ public Signature skipSignature(Boolean skipSignature) { } /** - * Skip asking for a signature. This is possible because all global card schemes (American - * Express, Diners, Discover, JCB, MasterCard, VISA, and UnionPay) regard a signature as optional. - * - * @return skipSignature Skip asking for a signature. This is possible because all global card - * schemes (American Express, Diners, Discover, JCB, MasterCard, VISA, and UnionPay) regard a - * signature as optional. + * Skip asking for a signature. This is possible because all global card schemes (American Express, Diners, Discover, JCB, MasterCard, VISA, and UnionPay) regard a signature as optional. + * @return skipSignature Skip asking for a signature. This is possible because all global card schemes (American Express, Diners, Discover, JCB, MasterCard, VISA, and UnionPay) regard a signature as optional. */ @JsonProperty(JSON_PROPERTY_SKIP_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,12 +168,9 @@ public Boolean getSkipSignature() { } /** - * Skip asking for a signature. This is possible because all global card schemes (American - * Express, Diners, Discover, JCB, MasterCard, VISA, and UnionPay) regard a signature as optional. + * Skip asking for a signature. This is possible because all global card schemes (American Express, Diners, Discover, JCB, MasterCard, VISA, and UnionPay) regard a signature as optional. * - * @param skipSignature Skip asking for a signature. This is possible because all global card - * schemes (American Express, Diners, Discover, JCB, MasterCard, VISA, and UnionPay) regard a - * signature as optional. + * @param skipSignature Skip asking for a signature. This is possible because all global card schemes (American Express, Diners, Discover, JCB, MasterCard, VISA, and UnionPay) regard a signature as optional. */ @JsonProperty(JSON_PROPERTY_SKIP_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,7 +178,9 @@ public void setSkipSignature(Boolean skipSignature) { this.skipSignature = skipSignature; } - /** Return true if this Signature object is equal to o. */ + /** + * Return true if this Signature object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -199,10 +190,10 @@ public boolean equals(Object o) { return false; } Signature signature = (Signature) o; - return Objects.equals(this.askSignatureOnScreen, signature.askSignatureOnScreen) - && Objects.equals(this.deviceName, signature.deviceName) - && Objects.equals(this.deviceSlogan, signature.deviceSlogan) - && Objects.equals(this.skipSignature, signature.skipSignature); + return Objects.equals(this.askSignatureOnScreen, signature.askSignatureOnScreen) && + Objects.equals(this.deviceName, signature.deviceName) && + Objects.equals(this.deviceSlogan, signature.deviceSlogan) && + Objects.equals(this.skipSignature, signature.skipSignature); } @Override @@ -214,9 +205,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Signature {\n"); - sb.append(" askSignatureOnScreen: ") - .append(toIndentedString(askSignatureOnScreen)) - .append("\n"); + sb.append(" askSignatureOnScreen: ").append(toIndentedString(askSignatureOnScreen)).append("\n"); sb.append(" deviceName: ").append(toIndentedString(deviceName)).append("\n"); sb.append(" deviceSlogan: ").append(toIndentedString(deviceSlogan)).append("\n"); sb.append(" skipSignature: ").append(toIndentedString(skipSignature)).append("\n"); @@ -225,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -234,7 +224,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Signature given an JSON string * * @param jsonString JSON string @@ -244,12 +234,11 @@ private String toIndentedString(Object o) { public static Signature fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Signature.class); } - - /** - * Convert an instance of Signature to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Signature to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/SodexoInfo.java b/src/main/java/com/adyen/model/management/SodexoInfo.java index e95df5c04..ad8a1b3d8 100644 --- a/src/main/java/com/adyen/model/management/SodexoInfo.java +++ b/src/main/java/com/adyen/model/management/SodexoInfo.java @@ -2,28 +2,41 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** SodexoInfo */ -@JsonPropertyOrder({SodexoInfo.JSON_PROPERTY_MERCHANT_CONTACT_PHONE}) + +/** + * SodexoInfo + */ +@JsonPropertyOrder({ + SodexoInfo.JSON_PROPERTY_MERCHANT_CONTACT_PHONE +}) + public class SodexoInfo { public static final String JSON_PROPERTY_MERCHANT_CONTACT_PHONE = "merchantContactPhone"; private String merchantContactPhone; - public SodexoInfo() {} + public SodexoInfo() { + } /** * Sodexo merchantContactPhone @@ -38,7 +51,6 @@ public SodexoInfo merchantContactPhone(String merchantContactPhone) { /** * Sodexo merchantContactPhone - * * @return merchantContactPhone Sodexo merchantContactPhone */ @JsonProperty(JSON_PROPERTY_MERCHANT_CONTACT_PHONE) @@ -58,7 +70,9 @@ public void setMerchantContactPhone(String merchantContactPhone) { this.merchantContactPhone = merchantContactPhone; } - /** Return true if this SodexoInfo object is equal to o. */ + /** + * Return true if this SodexoInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -80,15 +94,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SodexoInfo {\n"); - sb.append(" merchantContactPhone: ") - .append(toIndentedString(merchantContactPhone)) - .append("\n"); + sb.append(" merchantContactPhone: ").append(toIndentedString(merchantContactPhone)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -97,7 +110,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SodexoInfo given an JSON string * * @param jsonString JSON string @@ -107,12 +120,11 @@ private String toIndentedString(Object o) { public static SodexoInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SodexoInfo.class); } - - /** - * Convert an instance of SodexoInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SodexoInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/SofortInfo.java b/src/main/java/com/adyen/model/management/SofortInfo.java index b7de0b096..7ceff5720 100644 --- a/src/main/java/com/adyen/model/management/SofortInfo.java +++ b/src/main/java/com/adyen/model/management/SofortInfo.java @@ -2,23 +2,36 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** SofortInfo */ -@JsonPropertyOrder({SofortInfo.JSON_PROPERTY_CURRENCY_CODE, SofortInfo.JSON_PROPERTY_LOGO}) + +/** + * SofortInfo + */ +@JsonPropertyOrder({ + SofortInfo.JSON_PROPERTY_CURRENCY_CODE, + SofortInfo.JSON_PROPERTY_LOGO +}) + public class SofortInfo { public static final String JSON_PROPERTY_CURRENCY_CODE = "currencyCode"; private String currencyCode; @@ -26,7 +39,8 @@ public class SofortInfo { public static final String JSON_PROPERTY_LOGO = "logo"; private String logo; - public SofortInfo() {} + public SofortInfo() { + } /** * Sofort currency code. For example, **EUR**. @@ -41,7 +55,6 @@ public SofortInfo currencyCode(String currencyCode) { /** * Sofort currency code. For example, **EUR**. - * * @return currencyCode Sofort currency code. For example, **EUR**. */ @JsonProperty(JSON_PROPERTY_CURRENCY_CODE) @@ -74,7 +87,6 @@ public SofortInfo logo(String logo) { /** * Sofort logo. Format: Base64-encoded string. - * * @return logo Sofort logo. Format: Base64-encoded string. */ @JsonProperty(JSON_PROPERTY_LOGO) @@ -94,7 +106,9 @@ public void setLogo(String logo) { this.logo = logo; } - /** Return true if this SofortInfo object is equal to o. */ + /** + * Return true if this SofortInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -104,8 +118,8 @@ public boolean equals(Object o) { return false; } SofortInfo sofortInfo = (SofortInfo) o; - return Objects.equals(this.currencyCode, sofortInfo.currencyCode) - && Objects.equals(this.logo, sofortInfo.logo); + return Objects.equals(this.currencyCode, sofortInfo.currencyCode) && + Objects.equals(this.logo, sofortInfo.logo); } @Override @@ -124,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SofortInfo given an JSON string * * @param jsonString JSON string @@ -143,12 +158,11 @@ private String toIndentedString(Object o) { public static SofortInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SofortInfo.class); } - - /** - * Convert an instance of SofortInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SofortInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/SplitConfiguration.java b/src/main/java/com/adyen/model/management/SplitConfiguration.java index a01df7781..167b86a0d 100644 --- a/src/main/java/com/adyen/model/management/SplitConfiguration.java +++ b/src/main/java/com/adyen/model/management/SplitConfiguration.java @@ -2,30 +2,40 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.SplitConfigurationRule; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** SplitConfiguration */ + +/** + * SplitConfiguration + */ @JsonPropertyOrder({ SplitConfiguration.JSON_PROPERTY_DESCRIPTION, SplitConfiguration.JSON_PROPERTY_RULES, SplitConfiguration.JSON_PROPERTY_SPLIT_CONFIGURATION_ID }) + public class SplitConfiguration { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -36,11 +46,13 @@ public class SplitConfiguration { public static final String JSON_PROPERTY_SPLIT_CONFIGURATION_ID = "splitConfigurationId"; private String splitConfigurationId; - public SplitConfiguration() {} + public SplitConfiguration() { + } @JsonCreator public SplitConfiguration( - @JsonProperty(JSON_PROPERTY_SPLIT_CONFIGURATION_ID) String splitConfigurationId) { + @JsonProperty(JSON_PROPERTY_SPLIT_CONFIGURATION_ID) String splitConfigurationId + ) { this(); this.splitConfigurationId = splitConfigurationId; } @@ -58,7 +70,6 @@ public SplitConfiguration description(String description) { /** * Your description for the split configuration. - * * @return description Your description for the split configuration. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -99,7 +110,6 @@ public SplitConfiguration addRulesItem(SplitConfigurationRule rulesItem) { /** * Array of rules that define the split configuration behavior. - * * @return rules Array of rules that define the split configuration behavior. */ @JsonProperty(JSON_PROPERTY_RULES) @@ -121,7 +131,6 @@ public void setRules(List rules) { /** * Unique identifier of the split configuration. - * * @return splitConfigurationId Unique identifier of the split configuration. */ @JsonProperty(JSON_PROPERTY_SPLIT_CONFIGURATION_ID) @@ -130,7 +139,10 @@ public String getSplitConfigurationId() { return splitConfigurationId; } - /** Return true if this SplitConfiguration object is equal to o. */ + + /** + * Return true if this SplitConfiguration object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -140,9 +152,9 @@ public boolean equals(Object o) { return false; } SplitConfiguration splitConfiguration = (SplitConfiguration) o; - return Objects.equals(this.description, splitConfiguration.description) - && Objects.equals(this.rules, splitConfiguration.rules) - && Objects.equals(this.splitConfigurationId, splitConfiguration.splitConfigurationId); + return Objects.equals(this.description, splitConfiguration.description) && + Objects.equals(this.rules, splitConfiguration.rules) && + Objects.equals(this.splitConfigurationId, splitConfiguration.splitConfigurationId); } @Override @@ -156,15 +168,14 @@ public String toString() { sb.append("class SplitConfiguration {\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" rules: ").append(toIndentedString(rules)).append("\n"); - sb.append(" splitConfigurationId: ") - .append(toIndentedString(splitConfigurationId)) - .append("\n"); + sb.append(" splitConfigurationId: ").append(toIndentedString(splitConfigurationId)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,23 +184,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SplitConfiguration given an JSON string * * @param jsonString JSON string * @return An instance of SplitConfiguration - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SplitConfiguration + * @throws JsonProcessingException if the JSON string is invalid with respect to SplitConfiguration */ public static SplitConfiguration fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SplitConfiguration.class); } - - /** - * Convert an instance of SplitConfiguration to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SplitConfiguration to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/SplitConfigurationList.java b/src/main/java/com/adyen/model/management/SplitConfigurationList.java index d8289b190..9dded4421 100644 --- a/src/main/java/com/adyen/model/management/SplitConfigurationList.java +++ b/src/main/java/com/adyen/model/management/SplitConfigurationList.java @@ -2,30 +2,44 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.SplitConfiguration; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * SplitConfigurationList + */ +@JsonPropertyOrder({ + SplitConfigurationList.JSON_PROPERTY_DATA +}) -/** SplitConfigurationList */ -@JsonPropertyOrder({SplitConfigurationList.JSON_PROPERTY_DATA}) public class SplitConfigurationList { public static final String JSON_PROPERTY_DATA = "data"; private List data; - public SplitConfigurationList() {} + public SplitConfigurationList() { + } /** * List of split configurations applied to the stores under the merchant account. @@ -48,7 +62,6 @@ public SplitConfigurationList addDataItem(SplitConfiguration dataItem) { /** * List of split configurations applied to the stores under the merchant account. - * * @return data List of split configurations applied to the stores under the merchant account. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -68,7 +81,9 @@ public void setData(List data) { this.data = data; } - /** Return true if this SplitConfigurationList object is equal to o. */ + /** + * Return true if this SplitConfigurationList object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -96,7 +111,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -105,23 +121,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SplitConfigurationList given an JSON string * * @param jsonString JSON string * @return An instance of SplitConfigurationList - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SplitConfigurationList + * @throws JsonProcessingException if the JSON string is invalid with respect to SplitConfigurationList */ public static SplitConfigurationList fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SplitConfigurationList.class); } - - /** - * Convert an instance of SplitConfigurationList to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SplitConfigurationList to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/SplitConfigurationLogic.java b/src/main/java/com/adyen/model/management/SplitConfigurationLogic.java index 29587d2fb..235045a97 100644 --- a/src/main/java/com/adyen/model/management/SplitConfigurationLogic.java +++ b/src/main/java/com/adyen/model/management/SplitConfigurationLogic.java @@ -2,26 +2,33 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.AdditionalCommission; +import com.adyen.model.management.Commission; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** SplitConfigurationLogic */ +/** + * SplitConfigurationLogic + */ @JsonPropertyOrder({ SplitConfigurationLogic.JSON_PROPERTY_ACQUIRING_FEES, SplitConfigurationLogic.JSON_PROPERTY_ADDITIONAL_COMMISSION, @@ -41,13 +48,13 @@ SplitConfigurationLogic.JSON_PROPERTY_SURCHARGE, SplitConfigurationLogic.JSON_PROPERTY_TIP }) + public class SplitConfigurationLogic { /** - * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the - * specified balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. + * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ public enum AcquiringFeesEnum { + DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); @@ -57,7 +64,7 @@ public enum AcquiringFeesEnum { private String value; AcquiringFeesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -78,11 +85,7 @@ public static AcquiringFeesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AcquiringFeesEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AcquiringFeesEnum.values())); + LOG.warning("AcquiringFeesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AcquiringFeesEnum.values())); return null; } } @@ -94,12 +97,10 @@ public static AcquiringFeesEnum fromValue(String value) { private AdditionalCommission additionalCommission; /** - * Deducts the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) - * from the specified balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. + * Deducts the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ public enum AdyenCommissionEnum { + DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); @@ -109,7 +110,7 @@ public enum AdyenCommissionEnum { private String value; AdyenCommissionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -130,11 +131,7 @@ public static AdyenCommissionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AdyenCommissionEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AdyenCommissionEnum.values())); + LOG.warning("AdyenCommissionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AdyenCommissionEnum.values())); return null; } } @@ -143,10 +140,10 @@ public static AdyenCommissionEnum fromValue(String value) { private AdyenCommissionEnum adyenCommission; /** - * Deducts the fees due to Adyen (markup or commission) from the specified balance account. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the fees due to Adyen (markup or commission) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ public enum AdyenFeesEnum { + DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); @@ -156,7 +153,7 @@ public enum AdyenFeesEnum { private String value; AdyenFeesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -177,11 +174,7 @@ public static AdyenFeesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AdyenFeesEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AdyenFeesEnum.values())); + LOG.warning("AdyenFeesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AdyenFeesEnum.values())); return null; } } @@ -190,11 +183,10 @@ public static AdyenFeesEnum fromValue(String value) { private AdyenFeesEnum adyenFees; /** - * Deducts the transaction fee due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ public enum AdyenMarkupEnum { + DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); @@ -204,7 +196,7 @@ public enum AdyenMarkupEnum { private String value; AdyenMarkupEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -225,11 +217,7 @@ public static AdyenMarkupEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AdyenMarkupEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AdyenMarkupEnum.values())); + LOG.warning("AdyenMarkupEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AdyenMarkupEnum.values())); return null; } } @@ -238,11 +226,10 @@ public static AdyenMarkupEnum fromValue(String value) { private AdyenMarkupEnum adyenMarkup; /** - * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible - * values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, - * **deductAccordingToSplitRatio**. + * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. */ public enum ChargebackEnum { + DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")), @@ -254,7 +241,7 @@ public enum ChargebackEnum { private String value; ChargebackEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -275,11 +262,7 @@ public static ChargebackEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ChargebackEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ChargebackEnum.values())); + LOG.warning("ChargebackEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChargebackEnum.values())); return null; } } @@ -288,21 +271,20 @@ public static ChargebackEnum fromValue(String value) { private ChargebackEnum chargeback; /** - * Deducts the chargeback costs from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * Deducts the chargeback costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** */ public enum ChargebackCostAllocationEnum { + DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); - private static final Logger LOG = - Logger.getLogger(ChargebackCostAllocationEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(ChargebackCostAllocationEnum.class.getName()); private String value; ChargebackCostAllocationEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -323,11 +305,7 @@ public static ChargebackCostAllocationEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ChargebackCostAllocationEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ChargebackCostAllocationEnum.values())); + LOG.warning("ChargebackCostAllocationEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChargebackCostAllocationEnum.values())); return null; } } @@ -339,10 +317,10 @@ public static ChargebackCostAllocationEnum fromValue(String value) { private Commission commission; /** - * Deducts the interchange fee from specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the interchange fee from specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ public enum InterchangeEnum { + DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); @@ -352,7 +330,7 @@ public enum InterchangeEnum { private String value; InterchangeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -373,11 +351,7 @@ public static InterchangeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "InterchangeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(InterchangeEnum.values())); + LOG.warning("InterchangeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(InterchangeEnum.values())); return null; } } @@ -386,32 +360,10 @@ public static InterchangeEnum fromValue(String value) { private InterchangeEnum interchange; /** - * Deducts all transaction fees incurred by the payment from the specified balance account. The - * transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to - * Adyen (markup or commission). You can book any and all these fees to different balance account - * by specifying other transaction fee parameters in your split configuration profile: - - * [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): - * The transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - * - - * [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): - * The transaction fee due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - * - - * [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): - * The fee paid to the card scheme for using their network. - - * [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): - * The fee paid to the issuer for each payment transaction made with the card network. - - * [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): - * The aggregated amount of Adyen's commission and markup. - - * [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): - * The aggregated amount of the interchange and scheme fees. If you don't include at least one - * transaction fee type in the `splitLogic` object, Adyen updates the payment request - * with the `paymentFee` parameter, booking all transaction fees to your platform's - * liable balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. + * Deducts all transaction fees incurred by the payment from the specified balance account. The transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to Adyen (markup or commission). You can book any and all these fees to different balance account by specifying other transaction fee parameters in your split configuration profile: - [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): The transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): The transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): The fee paid to the card scheme for using their network. - [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): The fee paid to the issuer for each payment transaction made with the card network. - [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): The aggregated amount of Adyen's commission and markup. - [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): The aggregated amount of the interchange and scheme fees. If you don't include at least one transaction fee type in the `splitLogic` object, Adyen updates the payment request with the `paymentFee` parameter, booking all transaction fees to your platform's liable balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ public enum PaymentFeeEnum { + DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); @@ -421,7 +373,7 @@ public enum PaymentFeeEnum { private String value; PaymentFeeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -442,11 +394,7 @@ public static PaymentFeeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PaymentFeeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PaymentFeeEnum.values())); + LOG.warning("PaymentFeeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PaymentFeeEnum.values())); return null; } } @@ -455,10 +403,10 @@ public static PaymentFeeEnum fromValue(String value) { private PaymentFeeEnum paymentFee; /** - * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** + * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** */ public enum RefundEnum { + DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")), @@ -470,7 +418,7 @@ public enum RefundEnum { private String value; RefundEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -491,11 +439,7 @@ public static RefundEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "RefundEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(RefundEnum.values())); + LOG.warning("RefundEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RefundEnum.values())); return null; } } @@ -504,10 +448,10 @@ public static RefundEnum fromValue(String value) { private RefundEnum refund; /** - * Deducts the refund costs from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * Deducts the refund costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** */ public enum RefundCostAllocationEnum { + DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); @@ -517,7 +461,7 @@ public enum RefundCostAllocationEnum { private String value; RefundCostAllocationEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -538,11 +482,7 @@ public static RefundCostAllocationEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "RefundCostAllocationEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(RefundCostAllocationEnum.values())); + LOG.warning("RefundCostAllocationEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RefundCostAllocationEnum.values())); return null; } } @@ -551,10 +491,10 @@ public static RefundCostAllocationEnum fromValue(String value) { private RefundCostAllocationEnum refundCostAllocation; /** - * Books the amount left over after currency conversion to the specified balance account. Possible - * values: **addToLiableAccount**, **addToOneBalanceAccount**. + * Books the amount left over after currency conversion to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. */ public enum RemainderEnum { + ADDTOLIABLEACCOUNT(String.valueOf("addToLiableAccount")), ADDTOONEBALANCEACCOUNT(String.valueOf("addToOneBalanceAccount")); @@ -564,7 +504,7 @@ public enum RemainderEnum { private String value; RemainderEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -585,11 +525,7 @@ public static RemainderEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "RemainderEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(RemainderEnum.values())); + LOG.warning("RemainderEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RemainderEnum.values())); return null; } } @@ -598,10 +534,10 @@ public static RemainderEnum fromValue(String value) { private RemainderEnum remainder; /** - * Deducts the scheme fee from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the scheme fee from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ public enum SchemeFeeEnum { + DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); @@ -611,7 +547,7 @@ public enum SchemeFeeEnum { private String value; SchemeFeeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -632,11 +568,7 @@ public static SchemeFeeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "SchemeFeeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(SchemeFeeEnum.values())); + LOG.warning("SchemeFeeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(SchemeFeeEnum.values())); return null; } } @@ -648,10 +580,10 @@ public static SchemeFeeEnum fromValue(String value) { private String splitLogicId; /** - * Books the surcharge amount to the specified balance account. Possible values: - * **addToLiableAccount**, **addToOneBalanceAccount** + * Books the surcharge amount to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount** */ public enum SurchargeEnum { + ADDTOLIABLEACCOUNT(String.valueOf("addToLiableAccount")), ADDTOONEBALANCEACCOUNT(String.valueOf("addToOneBalanceAccount")); @@ -661,7 +593,7 @@ public enum SurchargeEnum { private String value; SurchargeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -682,11 +614,7 @@ public static SurchargeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "SurchargeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(SurchargeEnum.values())); + LOG.warning("SurchargeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(SurchargeEnum.values())); return null; } } @@ -695,10 +623,10 @@ public static SurchargeEnum fromValue(String value) { private SurchargeEnum surcharge; /** - * Books the tips (gratuity) to the specified balance account. Possible values: - * **addToLiableAccount**, **addToOneBalanceAccount**. + * Books the tips (gratuity) to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. */ public enum TipEnum { + ADDTOLIABLEACCOUNT(String.valueOf("addToLiableAccount")), ADDTOONEBALANCEACCOUNT(String.valueOf("addToOneBalanceAccount")); @@ -708,7 +636,7 @@ public enum TipEnum { private String value; TipEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -729,11 +657,7 @@ public static TipEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TipEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TipEnum.values())); + LOG.warning("TipEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TipEnum.values())); return null; } } @@ -741,22 +665,21 @@ public static TipEnum fromValue(String value) { public static final String JSON_PROPERTY_TIP = "tip"; private TipEnum tip; - public SplitConfigurationLogic() {} + public SplitConfigurationLogic() { + } @JsonCreator - public SplitConfigurationLogic(@JsonProperty(JSON_PROPERTY_SPLIT_LOGIC_ID) String splitLogicId) { + public SplitConfigurationLogic( + @JsonProperty(JSON_PROPERTY_SPLIT_LOGIC_ID) String splitLogicId + ) { this(); this.splitLogicId = splitLogicId; } /** - * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the - * specified balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. + * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param acquiringFees Deducts the acquiring fees (the aggregated amount of interchange and - * scheme fee) from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @param acquiringFees Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * @return the current {@code SplitConfigurationLogic} instance, allowing for method chaining */ public SplitConfigurationLogic acquiringFees(AcquiringFeesEnum acquiringFees) { @@ -765,13 +688,8 @@ public SplitConfigurationLogic acquiringFees(AcquiringFeesEnum acquiringFees) { } /** - * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the - * specified balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. - * - * @return acquiringFees Deducts the acquiring fees (the aggregated amount of interchange and - * scheme fee) from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @return acquiringFees Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_ACQUIRING_FEES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -780,13 +698,9 @@ public AcquiringFeesEnum getAcquiringFees() { } /** - * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the - * specified balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. + * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param acquiringFees Deducts the acquiring fees (the aggregated amount of interchange and - * scheme fee) from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @param acquiringFees Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_ACQUIRING_FEES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -797,7 +711,7 @@ public void setAcquiringFees(AcquiringFeesEnum acquiringFees) { /** * additionalCommission * - * @param additionalCommission + * @param additionalCommission * @return the current {@code SplitConfigurationLogic} instance, allowing for method chaining */ public SplitConfigurationLogic additionalCommission(AdditionalCommission additionalCommission) { @@ -807,8 +721,7 @@ public SplitConfigurationLogic additionalCommission(AdditionalCommission additio /** * Get additionalCommission - * - * @return additionalCommission + * @return additionalCommission */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_COMMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -819,7 +732,7 @@ public AdditionalCommission getAdditionalCommission() { /** * additionalCommission * - * @param additionalCommission + * @param additionalCommission */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_COMMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -828,15 +741,9 @@ public void setAdditionalCommission(AdditionalCommission additionalCommission) { } /** - * Deducts the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) - * from the specified balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. + * Deducts the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param adyenCommission Deducts the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) - * from the specified balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. + * @param adyenCommission Deducts the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * @return the current {@code SplitConfigurationLogic} instance, allowing for method chaining */ public SplitConfigurationLogic adyenCommission(AdyenCommissionEnum adyenCommission) { @@ -845,15 +752,8 @@ public SplitConfigurationLogic adyenCommission(AdyenCommissionEnum adyenCommissi } /** - * Deducts the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) - * from the specified balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. - * - * @return adyenCommission Deducts the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) - * from the specified balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. + * Deducts the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @return adyenCommission Deducts the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_ADYEN_COMMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -862,15 +762,9 @@ public AdyenCommissionEnum getAdyenCommission() { } /** - * Deducts the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) - * from the specified balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. + * Deducts the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param adyenCommission Deducts the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) - * from the specified balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. + * @param adyenCommission Deducts the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_ADYEN_COMMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -879,12 +773,9 @@ public void setAdyenCommission(AdyenCommissionEnum adyenCommission) { } /** - * Deducts the fees due to Adyen (markup or commission) from the specified balance account. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the fees due to Adyen (markup or commission) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param adyenFees Deducts the fees due to Adyen (markup or commission) from the specified - * balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. + * @param adyenFees Deducts the fees due to Adyen (markup or commission) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * @return the current {@code SplitConfigurationLogic} instance, allowing for method chaining */ public SplitConfigurationLogic adyenFees(AdyenFeesEnum adyenFees) { @@ -893,12 +784,8 @@ public SplitConfigurationLogic adyenFees(AdyenFeesEnum adyenFees) { } /** - * Deducts the fees due to Adyen (markup or commission) from the specified balance account. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - * - * @return adyenFees Deducts the fees due to Adyen (markup or commission) from the specified - * balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. + * Deducts the fees due to Adyen (markup or commission) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @return adyenFees Deducts the fees due to Adyen (markup or commission) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_ADYEN_FEES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -907,12 +794,9 @@ public AdyenFeesEnum getAdyenFees() { } /** - * Deducts the fees due to Adyen (markup or commission) from the specified balance account. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the fees due to Adyen (markup or commission) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param adyenFees Deducts the fees due to Adyen (markup or commission) from the specified - * balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. + * @param adyenFees Deducts the fees due to Adyen (markup or commission) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_ADYEN_FEES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -921,13 +805,9 @@ public void setAdyenFees(AdyenFeesEnum adyenFees) { } /** - * Deducts the transaction fee due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param adyenMarkup Deducts the transaction fee due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @param adyenMarkup Deducts the transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * @return the current {@code SplitConfigurationLogic} instance, allowing for method chaining */ public SplitConfigurationLogic adyenMarkup(AdyenMarkupEnum adyenMarkup) { @@ -936,13 +816,8 @@ public SplitConfigurationLogic adyenMarkup(AdyenMarkupEnum adyenMarkup) { } /** - * Deducts the transaction fee due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - * - * @return adyenMarkup Deducts the transaction fee due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @return adyenMarkup Deducts the transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_ADYEN_MARKUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -951,13 +826,9 @@ public AdyenMarkupEnum getAdyenMarkup() { } /** - * Deducts the transaction fee due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param adyenMarkup Deducts the transaction fee due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @param adyenMarkup Deducts the transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_ADYEN_MARKUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -966,13 +837,9 @@ public void setAdyenMarkup(AdyenMarkupEnum adyenMarkup) { } /** - * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible - * values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, - * **deductAccordingToSplitRatio**. + * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. * - * @param chargeback Specifies how and from which balance account(s) to deduct the chargeback - * amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, - * **deductAccordingToSplitRatio**. + * @param chargeback Specifies how and from which balance account(s) to deduct the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. * @return the current {@code SplitConfigurationLogic} instance, allowing for method chaining */ public SplitConfigurationLogic chargeback(ChargebackEnum chargeback) { @@ -981,13 +848,8 @@ public SplitConfigurationLogic chargeback(ChargebackEnum chargeback) { } /** - * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible - * values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, - * **deductAccordingToSplitRatio**. - * - * @return chargeback Specifies how and from which balance account(s) to deduct the chargeback - * amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, - * **deductAccordingToSplitRatio**. + * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * @return chargeback Specifies how and from which balance account(s) to deduct the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. */ @JsonProperty(JSON_PROPERTY_CHARGEBACK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -996,13 +858,9 @@ public ChargebackEnum getChargeback() { } /** - * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible - * values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, - * **deductAccordingToSplitRatio**. + * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. * - * @param chargeback Specifies how and from which balance account(s) to deduct the chargeback - * amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, - * **deductAccordingToSplitRatio**. + * @param chargeback Specifies how and from which balance account(s) to deduct the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. */ @JsonProperty(JSON_PROPERTY_CHARGEBACK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1011,25 +869,19 @@ public void setChargeback(ChargebackEnum chargeback) { } /** - * Deducts the chargeback costs from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * Deducts the chargeback costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** * - * @param chargebackCostAllocation Deducts the chargeback costs from the specified balance - * account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * @param chargebackCostAllocation Deducts the chargeback costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** * @return the current {@code SplitConfigurationLogic} instance, allowing for method chaining */ - public SplitConfigurationLogic chargebackCostAllocation( - ChargebackCostAllocationEnum chargebackCostAllocation) { + public SplitConfigurationLogic chargebackCostAllocation(ChargebackCostAllocationEnum chargebackCostAllocation) { this.chargebackCostAllocation = chargebackCostAllocation; return this; } /** - * Deducts the chargeback costs from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount** - * - * @return chargebackCostAllocation Deducts the chargeback costs from the specified balance - * account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * Deducts the chargeback costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * @return chargebackCostAllocation Deducts the chargeback costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** */ @JsonProperty(JSON_PROPERTY_CHARGEBACK_COST_ALLOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1038,11 +890,9 @@ public ChargebackCostAllocationEnum getChargebackCostAllocation() { } /** - * Deducts the chargeback costs from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * Deducts the chargeback costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** * - * @param chargebackCostAllocation Deducts the chargeback costs from the specified balance - * account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * @param chargebackCostAllocation Deducts the chargeback costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** */ @JsonProperty(JSON_PROPERTY_CHARGEBACK_COST_ALLOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1053,7 +903,7 @@ public void setChargebackCostAllocation(ChargebackCostAllocationEnum chargebackC /** * commission * - * @param commission + * @param commission * @return the current {@code SplitConfigurationLogic} instance, allowing for method chaining */ public SplitConfigurationLogic commission(Commission commission) { @@ -1063,8 +913,7 @@ public SplitConfigurationLogic commission(Commission commission) { /** * Get commission - * - * @return commission + * @return commission */ @JsonProperty(JSON_PROPERTY_COMMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1075,7 +924,7 @@ public Commission getCommission() { /** * commission * - * @param commission + * @param commission */ @JsonProperty(JSON_PROPERTY_COMMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1084,11 +933,9 @@ public void setCommission(Commission commission) { } /** - * Deducts the interchange fee from specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the interchange fee from specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param interchange Deducts the interchange fee from specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @param interchange Deducts the interchange fee from specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * @return the current {@code SplitConfigurationLogic} instance, allowing for method chaining */ public SplitConfigurationLogic interchange(InterchangeEnum interchange) { @@ -1097,11 +944,8 @@ public SplitConfigurationLogic interchange(InterchangeEnum interchange) { } /** - * Deducts the interchange fee from specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - * - * @return interchange Deducts the interchange fee from specified balance account. Possible - * values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the interchange fee from specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @return interchange Deducts the interchange fee from specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_INTERCHANGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1110,11 +954,9 @@ public InterchangeEnum getInterchange() { } /** - * Deducts the interchange fee from specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the interchange fee from specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param interchange Deducts the interchange fee from specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @param interchange Deducts the interchange fee from specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_INTERCHANGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1123,56 +965,9 @@ public void setInterchange(InterchangeEnum interchange) { } /** - * Deducts all transaction fees incurred by the payment from the specified balance account. The - * transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to - * Adyen (markup or commission). You can book any and all these fees to different balance account - * by specifying other transaction fee parameters in your split configuration profile: - - * [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): - * The transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - * - - * [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): - * The transaction fee due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - * - - * [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): - * The fee paid to the card scheme for using their network. - - * [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): - * The fee paid to the issuer for each payment transaction made with the card network. - - * [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): - * The aggregated amount of Adyen's commission and markup. - - * [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): - * The aggregated amount of the interchange and scheme fees. If you don't include at least one - * transaction fee type in the `splitLogic` object, Adyen updates the payment request - * with the `paymentFee` parameter, booking all transaction fees to your platform's - * liable balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. + * Deducts all transaction fees incurred by the payment from the specified balance account. The transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to Adyen (markup or commission). You can book any and all these fees to different balance account by specifying other transaction fee parameters in your split configuration profile: - [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): The transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): The transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): The fee paid to the card scheme for using their network. - [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): The fee paid to the issuer for each payment transaction made with the card network. - [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): The aggregated amount of Adyen's commission and markup. - [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): The aggregated amount of the interchange and scheme fees. If you don't include at least one transaction fee type in the `splitLogic` object, Adyen updates the payment request with the `paymentFee` parameter, booking all transaction fees to your platform's liable balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param paymentFee Deducts all transaction fees incurred by the payment from the specified - * balance account. The transaction fees include the acquiring fees (interchange and scheme - * fee), and the fees due to Adyen (markup or commission). You can book any and all these fees - * to different balance account by specifying other transaction fee parameters in your split - * configuration profile: - - * [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): - * The transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - * - - * [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): - * The transaction fee due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - * - - * [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): - * The fee paid to the card scheme for using their network. - - * [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): - * The fee paid to the issuer for each payment transaction made with the card network. - - * [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): - * The aggregated amount of Adyen's commission and markup. - - * [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): - * The aggregated amount of the interchange and scheme fees. If you don't include at least - * one transaction fee type in the `splitLogic` object, Adyen updates the payment - * request with the `paymentFee` parameter, booking all transaction fees to your - * platform's liable balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. + * @param paymentFee Deducts all transaction fees incurred by the payment from the specified balance account. The transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to Adyen (markup or commission). You can book any and all these fees to different balance account by specifying other transaction fee parameters in your split configuration profile: - [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): The transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): The transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): The fee paid to the card scheme for using their network. - [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): The fee paid to the issuer for each payment transaction made with the card network. - [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): The aggregated amount of Adyen's commission and markup. - [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): The aggregated amount of the interchange and scheme fees. If you don't include at least one transaction fee type in the `splitLogic` object, Adyen updates the payment request with the `paymentFee` parameter, booking all transaction fees to your platform's liable balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * @return the current {@code SplitConfigurationLogic} instance, allowing for method chaining */ public SplitConfigurationLogic paymentFee(PaymentFeeEnum paymentFee) { @@ -1181,56 +976,8 @@ public SplitConfigurationLogic paymentFee(PaymentFeeEnum paymentFee) { } /** - * Deducts all transaction fees incurred by the payment from the specified balance account. The - * transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to - * Adyen (markup or commission). You can book any and all these fees to different balance account - * by specifying other transaction fee parameters in your split configuration profile: - - * [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): - * The transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - * - - * [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): - * The transaction fee due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - * - - * [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): - * The fee paid to the card scheme for using their network. - - * [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): - * The fee paid to the issuer for each payment transaction made with the card network. - - * [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): - * The aggregated amount of Adyen's commission and markup. - - * [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): - * The aggregated amount of the interchange and scheme fees. If you don't include at least one - * transaction fee type in the `splitLogic` object, Adyen updates the payment request - * with the `paymentFee` parameter, booking all transaction fees to your platform's - * liable balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. - * - * @return paymentFee Deducts all transaction fees incurred by the payment from the specified - * balance account. The transaction fees include the acquiring fees (interchange and scheme - * fee), and the fees due to Adyen (markup or commission). You can book any and all these fees - * to different balance account by specifying other transaction fee parameters in your split - * configuration profile: - - * [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): - * The transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - * - - * [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): - * The transaction fee due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - * - - * [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): - * The fee paid to the card scheme for using their network. - - * [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): - * The fee paid to the issuer for each payment transaction made with the card network. - - * [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): - * The aggregated amount of Adyen's commission and markup. - - * [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): - * The aggregated amount of the interchange and scheme fees. If you don't include at least - * one transaction fee type in the `splitLogic` object, Adyen updates the payment - * request with the `paymentFee` parameter, booking all transaction fees to your - * platform's liable balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. + * Deducts all transaction fees incurred by the payment from the specified balance account. The transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to Adyen (markup or commission). You can book any and all these fees to different balance account by specifying other transaction fee parameters in your split configuration profile: - [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): The transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): The transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): The fee paid to the card scheme for using their network. - [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): The fee paid to the issuer for each payment transaction made with the card network. - [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): The aggregated amount of Adyen's commission and markup. - [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): The aggregated amount of the interchange and scheme fees. If you don't include at least one transaction fee type in the `splitLogic` object, Adyen updates the payment request with the `paymentFee` parameter, booking all transaction fees to your platform's liable balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @return paymentFee Deducts all transaction fees incurred by the payment from the specified balance account. The transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to Adyen (markup or commission). You can book any and all these fees to different balance account by specifying other transaction fee parameters in your split configuration profile: - [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): The transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): The transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): The fee paid to the card scheme for using their network. - [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): The fee paid to the issuer for each payment transaction made with the card network. - [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): The aggregated amount of Adyen's commission and markup. - [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): The aggregated amount of the interchange and scheme fees. If you don't include at least one transaction fee type in the `splitLogic` object, Adyen updates the payment request with the `paymentFee` parameter, booking all transaction fees to your platform's liable balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_PAYMENT_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1239,56 +986,9 @@ public PaymentFeeEnum getPaymentFee() { } /** - * Deducts all transaction fees incurred by the payment from the specified balance account. The - * transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to - * Adyen (markup or commission). You can book any and all these fees to different balance account - * by specifying other transaction fee parameters in your split configuration profile: - - * [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): - * The transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - * - - * [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): - * The transaction fee due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - * - - * [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): - * The fee paid to the card scheme for using their network. - - * [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): - * The fee paid to the issuer for each payment transaction made with the card network. - - * [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): - * The aggregated amount of Adyen's commission and markup. - - * [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): - * The aggregated amount of the interchange and scheme fees. If you don't include at least one - * transaction fee type in the `splitLogic` object, Adyen updates the payment request - * with the `paymentFee` parameter, booking all transaction fees to your platform's - * liable balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. + * Deducts all transaction fees incurred by the payment from the specified balance account. The transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to Adyen (markup or commission). You can book any and all these fees to different balance account by specifying other transaction fee parameters in your split configuration profile: - [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): The transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): The transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): The fee paid to the card scheme for using their network. - [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): The fee paid to the issuer for each payment transaction made with the card network. - [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): The aggregated amount of Adyen's commission and markup. - [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): The aggregated amount of the interchange and scheme fees. If you don't include at least one transaction fee type in the `splitLogic` object, Adyen updates the payment request with the `paymentFee` parameter, booking all transaction fees to your platform's liable balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param paymentFee Deducts all transaction fees incurred by the payment from the specified - * balance account. The transaction fees include the acquiring fees (interchange and scheme - * fee), and the fees due to Adyen (markup or commission). You can book any and all these fees - * to different balance account by specifying other transaction fee parameters in your split - * configuration profile: - - * [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): - * The transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - * - - * [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): - * The transaction fee due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - * - - * [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): - * The fee paid to the card scheme for using their network. - - * [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): - * The fee paid to the issuer for each payment transaction made with the card network. - - * [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): - * The aggregated amount of Adyen's commission and markup. - - * [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): - * The aggregated amount of the interchange and scheme fees. If you don't include at least - * one transaction fee type in the `splitLogic` object, Adyen updates the payment - * request with the `paymentFee` parameter, booking all transaction fees to your - * platform's liable balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. + * @param paymentFee Deducts all transaction fees incurred by the payment from the specified balance account. The transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to Adyen (markup or commission). You can book any and all these fees to different balance account by specifying other transaction fee parameters in your split configuration profile: - [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): The transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): The transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): The fee paid to the card scheme for using their network. - [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): The fee paid to the issuer for each payment transaction made with the card network. - [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): The aggregated amount of Adyen's commission and markup. - [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): The aggregated amount of the interchange and scheme fees. If you don't include at least one transaction fee type in the `splitLogic` object, Adyen updates the payment request with the `paymentFee` parameter, booking all transaction fees to your platform's liable balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_PAYMENT_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1297,12 +997,9 @@ public void setPaymentFee(PaymentFeeEnum paymentFee) { } /** - * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** + * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** * - * @param refund Specifies how and from which balance account(s) to deduct the refund amount. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, - * **deductAccordingToSplitRatio** + * @param refund Specifies how and from which balance account(s) to deduct the refund amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** * @return the current {@code SplitConfigurationLogic} instance, allowing for method chaining */ public SplitConfigurationLogic refund(RefundEnum refund) { @@ -1311,12 +1008,8 @@ public SplitConfigurationLogic refund(RefundEnum refund) { } /** - * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** - * - * @return refund Specifies how and from which balance account(s) to deduct the refund amount. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, - * **deductAccordingToSplitRatio** + * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** + * @return refund Specifies how and from which balance account(s) to deduct the refund amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** */ @JsonProperty(JSON_PROPERTY_REFUND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1325,12 +1018,9 @@ public RefundEnum getRefund() { } /** - * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** + * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** * - * @param refund Specifies how and from which balance account(s) to deduct the refund amount. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, - * **deductAccordingToSplitRatio** + * @param refund Specifies how and from which balance account(s) to deduct the refund amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** */ @JsonProperty(JSON_PROPERTY_REFUND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1339,25 +1029,19 @@ public void setRefund(RefundEnum refund) { } /** - * Deducts the refund costs from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * Deducts the refund costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** * - * @param refundCostAllocation Deducts the refund costs from the specified balance account. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * @param refundCostAllocation Deducts the refund costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** * @return the current {@code SplitConfigurationLogic} instance, allowing for method chaining */ - public SplitConfigurationLogic refundCostAllocation( - RefundCostAllocationEnum refundCostAllocation) { + public SplitConfigurationLogic refundCostAllocation(RefundCostAllocationEnum refundCostAllocation) { this.refundCostAllocation = refundCostAllocation; return this; } /** - * Deducts the refund costs from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount** - * - * @return refundCostAllocation Deducts the refund costs from the specified balance account. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * Deducts the refund costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * @return refundCostAllocation Deducts the refund costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** */ @JsonProperty(JSON_PROPERTY_REFUND_COST_ALLOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1366,11 +1050,9 @@ public RefundCostAllocationEnum getRefundCostAllocation() { } /** - * Deducts the refund costs from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * Deducts the refund costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** * - * @param refundCostAllocation Deducts the refund costs from the specified balance account. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * @param refundCostAllocation Deducts the refund costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** */ @JsonProperty(JSON_PROPERTY_REFUND_COST_ALLOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1379,11 +1061,9 @@ public void setRefundCostAllocation(RefundCostAllocationEnum refundCostAllocatio } /** - * Books the amount left over after currency conversion to the specified balance account. Possible - * values: **addToLiableAccount**, **addToOneBalanceAccount**. + * Books the amount left over after currency conversion to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. * - * @param remainder Books the amount left over after currency conversion to the specified balance - * account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * @param remainder Books the amount left over after currency conversion to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. * @return the current {@code SplitConfigurationLogic} instance, allowing for method chaining */ public SplitConfigurationLogic remainder(RemainderEnum remainder) { @@ -1392,11 +1072,8 @@ public SplitConfigurationLogic remainder(RemainderEnum remainder) { } /** - * Books the amount left over after currency conversion to the specified balance account. Possible - * values: **addToLiableAccount**, **addToOneBalanceAccount**. - * - * @return remainder Books the amount left over after currency conversion to the specified balance - * account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * Books the amount left over after currency conversion to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * @return remainder Books the amount left over after currency conversion to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_REMAINDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1405,11 +1082,9 @@ public RemainderEnum getRemainder() { } /** - * Books the amount left over after currency conversion to the specified balance account. Possible - * values: **addToLiableAccount**, **addToOneBalanceAccount**. + * Books the amount left over after currency conversion to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. * - * @param remainder Books the amount left over after currency conversion to the specified balance - * account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * @param remainder Books the amount left over after currency conversion to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_REMAINDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1418,11 +1093,9 @@ public void setRemainder(RemainderEnum remainder) { } /** - * Deducts the scheme fee from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the scheme fee from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param schemeFee Deducts the scheme fee from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @param schemeFee Deducts the scheme fee from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * @return the current {@code SplitConfigurationLogic} instance, allowing for method chaining */ public SplitConfigurationLogic schemeFee(SchemeFeeEnum schemeFee) { @@ -1431,11 +1104,8 @@ public SplitConfigurationLogic schemeFee(SchemeFeeEnum schemeFee) { } /** - * Deducts the scheme fee from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - * - * @return schemeFee Deducts the scheme fee from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the scheme fee from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @return schemeFee Deducts the scheme fee from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_SCHEME_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1444,11 +1114,9 @@ public SchemeFeeEnum getSchemeFee() { } /** - * Deducts the scheme fee from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the scheme fee from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param schemeFee Deducts the scheme fee from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @param schemeFee Deducts the scheme fee from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_SCHEME_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1457,11 +1125,8 @@ public void setSchemeFee(SchemeFeeEnum schemeFee) { } /** - * Unique identifier of the collection of split instructions that are applied when the rule - * conditions are met. - * - * @return splitLogicId Unique identifier of the collection of split instructions that are applied - * when the rule conditions are met. + * Unique identifier of the collection of split instructions that are applied when the rule conditions are met. + * @return splitLogicId Unique identifier of the collection of split instructions that are applied when the rule conditions are met. */ @JsonProperty(JSON_PROPERTY_SPLIT_LOGIC_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1469,12 +1134,11 @@ public String getSplitLogicId() { return splitLogicId; } + /** - * Books the surcharge amount to the specified balance account. Possible values: - * **addToLiableAccount**, **addToOneBalanceAccount** + * Books the surcharge amount to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount** * - * @param surcharge Books the surcharge amount to the specified balance account. Possible values: - * **addToLiableAccount**, **addToOneBalanceAccount** + * @param surcharge Books the surcharge amount to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount** * @return the current {@code SplitConfigurationLogic} instance, allowing for method chaining */ public SplitConfigurationLogic surcharge(SurchargeEnum surcharge) { @@ -1483,11 +1147,8 @@ public SplitConfigurationLogic surcharge(SurchargeEnum surcharge) { } /** - * Books the surcharge amount to the specified balance account. Possible values: - * **addToLiableAccount**, **addToOneBalanceAccount** - * - * @return surcharge Books the surcharge amount to the specified balance account. Possible values: - * **addToLiableAccount**, **addToOneBalanceAccount** + * Books the surcharge amount to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount** + * @return surcharge Books the surcharge amount to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount** */ @JsonProperty(JSON_PROPERTY_SURCHARGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1496,11 +1157,9 @@ public SurchargeEnum getSurcharge() { } /** - * Books the surcharge amount to the specified balance account. Possible values: - * **addToLiableAccount**, **addToOneBalanceAccount** + * Books the surcharge amount to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount** * - * @param surcharge Books the surcharge amount to the specified balance account. Possible values: - * **addToLiableAccount**, **addToOneBalanceAccount** + * @param surcharge Books the surcharge amount to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount** */ @JsonProperty(JSON_PROPERTY_SURCHARGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1509,11 +1168,9 @@ public void setSurcharge(SurchargeEnum surcharge) { } /** - * Books the tips (gratuity) to the specified balance account. Possible values: - * **addToLiableAccount**, **addToOneBalanceAccount**. + * Books the tips (gratuity) to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. * - * @param tip Books the tips (gratuity) to the specified balance account. Possible values: - * **addToLiableAccount**, **addToOneBalanceAccount**. + * @param tip Books the tips (gratuity) to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. * @return the current {@code SplitConfigurationLogic} instance, allowing for method chaining */ public SplitConfigurationLogic tip(TipEnum tip) { @@ -1522,11 +1179,8 @@ public SplitConfigurationLogic tip(TipEnum tip) { } /** - * Books the tips (gratuity) to the specified balance account. Possible values: - * **addToLiableAccount**, **addToOneBalanceAccount**. - * - * @return tip Books the tips (gratuity) to the specified balance account. Possible values: - * **addToLiableAccount**, **addToOneBalanceAccount**. + * Books the tips (gratuity) to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * @return tip Books the tips (gratuity) to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_TIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1535,11 +1189,9 @@ public TipEnum getTip() { } /** - * Books the tips (gratuity) to the specified balance account. Possible values: - * **addToLiableAccount**, **addToOneBalanceAccount**. + * Books the tips (gratuity) to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. * - * @param tip Books the tips (gratuity) to the specified balance account. Possible values: - * **addToLiableAccount**, **addToOneBalanceAccount**. + * @param tip Books the tips (gratuity) to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_TIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1547,7 +1199,9 @@ public void setTip(TipEnum tip) { this.tip = tip; } - /** Return true if this SplitConfigurationLogic object is equal to o. */ + /** + * Return true if this SplitConfigurationLogic object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -1557,46 +1211,28 @@ public boolean equals(Object o) { return false; } SplitConfigurationLogic splitConfigurationLogic = (SplitConfigurationLogic) o; - return Objects.equals(this.acquiringFees, splitConfigurationLogic.acquiringFees) - && Objects.equals(this.additionalCommission, splitConfigurationLogic.additionalCommission) - && Objects.equals(this.adyenCommission, splitConfigurationLogic.adyenCommission) - && Objects.equals(this.adyenFees, splitConfigurationLogic.adyenFees) - && Objects.equals(this.adyenMarkup, splitConfigurationLogic.adyenMarkup) - && Objects.equals(this.chargeback, splitConfigurationLogic.chargeback) - && Objects.equals( - this.chargebackCostAllocation, splitConfigurationLogic.chargebackCostAllocation) - && Objects.equals(this.commission, splitConfigurationLogic.commission) - && Objects.equals(this.interchange, splitConfigurationLogic.interchange) - && Objects.equals(this.paymentFee, splitConfigurationLogic.paymentFee) - && Objects.equals(this.refund, splitConfigurationLogic.refund) - && Objects.equals(this.refundCostAllocation, splitConfigurationLogic.refundCostAllocation) - && Objects.equals(this.remainder, splitConfigurationLogic.remainder) - && Objects.equals(this.schemeFee, splitConfigurationLogic.schemeFee) - && Objects.equals(this.splitLogicId, splitConfigurationLogic.splitLogicId) - && Objects.equals(this.surcharge, splitConfigurationLogic.surcharge) - && Objects.equals(this.tip, splitConfigurationLogic.tip); + return Objects.equals(this.acquiringFees, splitConfigurationLogic.acquiringFees) && + Objects.equals(this.additionalCommission, splitConfigurationLogic.additionalCommission) && + Objects.equals(this.adyenCommission, splitConfigurationLogic.adyenCommission) && + Objects.equals(this.adyenFees, splitConfigurationLogic.adyenFees) && + Objects.equals(this.adyenMarkup, splitConfigurationLogic.adyenMarkup) && + Objects.equals(this.chargeback, splitConfigurationLogic.chargeback) && + Objects.equals(this.chargebackCostAllocation, splitConfigurationLogic.chargebackCostAllocation) && + Objects.equals(this.commission, splitConfigurationLogic.commission) && + Objects.equals(this.interchange, splitConfigurationLogic.interchange) && + Objects.equals(this.paymentFee, splitConfigurationLogic.paymentFee) && + Objects.equals(this.refund, splitConfigurationLogic.refund) && + Objects.equals(this.refundCostAllocation, splitConfigurationLogic.refundCostAllocation) && + Objects.equals(this.remainder, splitConfigurationLogic.remainder) && + Objects.equals(this.schemeFee, splitConfigurationLogic.schemeFee) && + Objects.equals(this.splitLogicId, splitConfigurationLogic.splitLogicId) && + Objects.equals(this.surcharge, splitConfigurationLogic.surcharge) && + Objects.equals(this.tip, splitConfigurationLogic.tip); } @Override public int hashCode() { - return Objects.hash( - acquiringFees, - additionalCommission, - adyenCommission, - adyenFees, - adyenMarkup, - chargeback, - chargebackCostAllocation, - commission, - interchange, - paymentFee, - refund, - refundCostAllocation, - remainder, - schemeFee, - splitLogicId, - surcharge, - tip); + return Objects.hash(acquiringFees, additionalCommission, adyenCommission, adyenFees, adyenMarkup, chargeback, chargebackCostAllocation, commission, interchange, paymentFee, refund, refundCostAllocation, remainder, schemeFee, splitLogicId, surcharge, tip); } @Override @@ -1604,23 +1240,17 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SplitConfigurationLogic {\n"); sb.append(" acquiringFees: ").append(toIndentedString(acquiringFees)).append("\n"); - sb.append(" additionalCommission: ") - .append(toIndentedString(additionalCommission)) - .append("\n"); + sb.append(" additionalCommission: ").append(toIndentedString(additionalCommission)).append("\n"); sb.append(" adyenCommission: ").append(toIndentedString(adyenCommission)).append("\n"); sb.append(" adyenFees: ").append(toIndentedString(adyenFees)).append("\n"); sb.append(" adyenMarkup: ").append(toIndentedString(adyenMarkup)).append("\n"); sb.append(" chargeback: ").append(toIndentedString(chargeback)).append("\n"); - sb.append(" chargebackCostAllocation: ") - .append(toIndentedString(chargebackCostAllocation)) - .append("\n"); + sb.append(" chargebackCostAllocation: ").append(toIndentedString(chargebackCostAllocation)).append("\n"); sb.append(" commission: ").append(toIndentedString(commission)).append("\n"); sb.append(" interchange: ").append(toIndentedString(interchange)).append("\n"); sb.append(" paymentFee: ").append(toIndentedString(paymentFee)).append("\n"); sb.append(" refund: ").append(toIndentedString(refund)).append("\n"); - sb.append(" refundCostAllocation: ") - .append(toIndentedString(refundCostAllocation)) - .append("\n"); + sb.append(" refundCostAllocation: ").append(toIndentedString(refundCostAllocation)).append("\n"); sb.append(" remainder: ").append(toIndentedString(remainder)).append("\n"); sb.append(" schemeFee: ").append(toIndentedString(schemeFee)).append("\n"); sb.append(" splitLogicId: ").append(toIndentedString(splitLogicId)).append("\n"); @@ -1631,7 +1261,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1640,23 +1271,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SplitConfigurationLogic given an JSON string * * @param jsonString JSON string * @return An instance of SplitConfigurationLogic - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SplitConfigurationLogic + * @throws JsonProcessingException if the JSON string is invalid with respect to SplitConfigurationLogic */ public static SplitConfigurationLogic fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SplitConfigurationLogic.class); } - - /** - * Convert an instance of SplitConfigurationLogic to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SplitConfigurationLogic to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/SplitConfigurationRule.java b/src/main/java/com/adyen/model/management/SplitConfigurationRule.java index 7d54a9fc5..3fa591a7b 100644 --- a/src/main/java/com/adyen/model/management/SplitConfigurationRule.java +++ b/src/main/java/com/adyen/model/management/SplitConfigurationRule.java @@ -2,26 +2,32 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.SplitConfigurationLogic; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** SplitConfigurationRule */ + +/** + * SplitConfigurationRule + */ @JsonPropertyOrder({ SplitConfigurationRule.JSON_PROPERTY_CURRENCY, SplitConfigurationRule.JSON_PROPERTY_FUNDING_SOURCE, @@ -30,15 +36,16 @@ SplitConfigurationRule.JSON_PROPERTY_SHOPPER_INTERACTION, SplitConfigurationRule.JSON_PROPERTY_SPLIT_LOGIC }) + public class SplitConfigurationRule { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; /** - * The funding source of the payment method. Possible values: * **credit** * **debit** * - * **prepaid** * **deferred_debit** * **charged** * **ANY** + * The funding source of the payment method. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** */ public enum FundingSourceEnum { + CHARGED(String.valueOf("charged")), CREDIT(String.valueOf("credit")), @@ -56,7 +63,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -77,11 +84,7 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FundingSourceEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FundingSourceEnum.values())); + LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -96,15 +99,10 @@ public static FundingSourceEnum fromValue(String value) { private String ruleId; /** - * The sales channel condition that defines whether the split logic applies. Possible values: * - * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on - * file and/or subscription transactions, where the cardholder is known to the merchant (returning - * customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in - * contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where - * the customer is physically present to make a payment using a secure payment terminal. * - * **ANY**: All sales channels. + * The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: All sales channels. */ public enum ShopperInteractionEnum { + ECOMMERCE(String.valueOf("Ecommerce")), CONTAUTH(String.valueOf("ContAuth")), @@ -120,7 +118,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -141,11 +139,7 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ShopperInteractionEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -156,20 +150,21 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_SPLIT_LOGIC = "splitLogic"; private SplitConfigurationLogic splitLogic; - public SplitConfigurationRule() {} + public SplitConfigurationRule() { + } @JsonCreator - public SplitConfigurationRule(@JsonProperty(JSON_PROPERTY_RULE_ID) String ruleId) { + public SplitConfigurationRule( + @JsonProperty(JSON_PROPERTY_RULE_ID) String ruleId + ) { this(); this.ruleId = ruleId; } /** - * The currency condition that defines whether the split logic applies. Its value must be a - * three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * The currency condition that defines whether the split logic applies. Its value must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). * - * @param currency The currency condition that defines whether the split logic applies. Its value - * must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * @param currency The currency condition that defines whether the split logic applies. Its value must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). * @return the current {@code SplitConfigurationRule} instance, allowing for method chaining */ public SplitConfigurationRule currency(String currency) { @@ -178,11 +173,8 @@ public SplitConfigurationRule currency(String currency) { } /** - * The currency condition that defines whether the split logic applies. Its value must be a - * three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). - * - * @return currency The currency condition that defines whether the split logic applies. Its value - * must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * The currency condition that defines whether the split logic applies. Its value must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * @return currency The currency condition that defines whether the split logic applies. Its value must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,11 +183,9 @@ public String getCurrency() { } /** - * The currency condition that defines whether the split logic applies. Its value must be a - * three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * The currency condition that defines whether the split logic applies. Its value must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). * - * @param currency The currency condition that defines whether the split logic applies. Its value - * must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * @param currency The currency condition that defines whether the split logic applies. Its value must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,11 +194,9 @@ public void setCurrency(String currency) { } /** - * The funding source of the payment method. Possible values: * **credit** * **debit** * - * **prepaid** * **deferred_debit** * **charged** * **ANY** + * The funding source of the payment method. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** * - * @param fundingSource The funding source of the payment method. Possible values: * **credit** * - * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** + * @param fundingSource The funding source of the payment method. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** * @return the current {@code SplitConfigurationRule} instance, allowing for method chaining */ public SplitConfigurationRule fundingSource(FundingSourceEnum fundingSource) { @@ -217,11 +205,8 @@ public SplitConfigurationRule fundingSource(FundingSourceEnum fundingSource) { } /** - * The funding source of the payment method. Possible values: * **credit** * **debit** * - * **prepaid** * **deferred_debit** * **charged** * **ANY** - * - * @return fundingSource The funding source of the payment method. Possible values: * **credit** * - * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** + * The funding source of the payment method. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** + * @return fundingSource The funding source of the payment method. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -230,11 +215,9 @@ public FundingSourceEnum getFundingSource() { } /** - * The funding source of the payment method. Possible values: * **credit** * **debit** * - * **prepaid** * **deferred_debit** * **charged** * **ANY** + * The funding source of the payment method. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** * - * @param fundingSource The funding source of the payment method. Possible values: * **credit** * - * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** + * @param fundingSource The funding source of the payment method. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -243,16 +226,9 @@ public void setFundingSource(FundingSourceEnum fundingSource) { } /** - * The payment method condition that defines whether the split logic applies. Possible values: * - * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): - * Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all - * available payment methods. + * The payment method condition that defines whether the split logic applies. Possible values: * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all available payment methods. * - * @param paymentMethod The payment method condition that defines whether the split logic applies. - * Possible values: * [Payment method - * variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the - * split logic for a specific payment method. * **ANY**: Apply the split logic for all - * available payment methods. + * @param paymentMethod The payment method condition that defines whether the split logic applies. Possible values: * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all available payment methods. * @return the current {@code SplitConfigurationRule} instance, allowing for method chaining */ public SplitConfigurationRule paymentMethod(String paymentMethod) { @@ -261,16 +237,8 @@ public SplitConfigurationRule paymentMethod(String paymentMethod) { } /** - * The payment method condition that defines whether the split logic applies. Possible values: * - * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): - * Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all - * available payment methods. - * - * @return paymentMethod The payment method condition that defines whether the split logic - * applies. Possible values: * [Payment method - * variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the - * split logic for a specific payment method. * **ANY**: Apply the split logic for all - * available payment methods. + * The payment method condition that defines whether the split logic applies. Possible values: * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all available payment methods. + * @return paymentMethod The payment method condition that defines whether the split logic applies. Possible values: * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all available payment methods. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -279,16 +247,9 @@ public String getPaymentMethod() { } /** - * The payment method condition that defines whether the split logic applies. Possible values: * - * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): - * Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all - * available payment methods. + * The payment method condition that defines whether the split logic applies. Possible values: * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all available payment methods. * - * @param paymentMethod The payment method condition that defines whether the split logic applies. - * Possible values: * [Payment method - * variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the - * split logic for a specific payment method. * **ANY**: Apply the split logic for all - * available payment methods. + * @param paymentMethod The payment method condition that defines whether the split logic applies. Possible values: * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all available payment methods. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -298,7 +259,6 @@ public void setPaymentMethod(String paymentMethod) { /** * The unique identifier of the split configuration rule. - * * @return ruleId The unique identifier of the split configuration rule. */ @JsonProperty(JSON_PROPERTY_RULE_ID) @@ -307,22 +267,11 @@ public String getRuleId() { return ruleId; } + /** - * The sales channel condition that defines whether the split logic applies. Possible values: * - * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on - * file and/or subscription transactions, where the cardholder is known to the merchant (returning - * customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in - * contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where - * the customer is physically present to make a payment using a secure payment terminal. * - * **ANY**: All sales channels. + * The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: All sales channels. * - * @param shopperInteraction The sales channel condition that defines whether the split logic - * applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is - * present. * **ContAuth**: Card on file and/or subscription transactions, where the - * cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and - * telephone-order transactions where the customer is in contact with the merchant via email - * or telephone. * **POS**: Point-of-sale transactions where the customer is physically - * present to make a payment using a secure payment terminal. * **ANY**: All sales channels. + * @param shopperInteraction The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: All sales channels. * @return the current {@code SplitConfigurationRule} instance, allowing for method chaining */ public SplitConfigurationRule shopperInteraction(ShopperInteractionEnum shopperInteraction) { @@ -331,21 +280,8 @@ public SplitConfigurationRule shopperInteraction(ShopperInteractionEnum shopperI } /** - * The sales channel condition that defines whether the split logic applies. Possible values: * - * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on - * file and/or subscription transactions, where the cardholder is known to the merchant (returning - * customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in - * contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where - * the customer is physically present to make a payment using a secure payment terminal. * - * **ANY**: All sales channels. - * - * @return shopperInteraction The sales channel condition that defines whether the split logic - * applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is - * present. * **ContAuth**: Card on file and/or subscription transactions, where the - * cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and - * telephone-order transactions where the customer is in contact with the merchant via email - * or telephone. * **POS**: Point-of-sale transactions where the customer is physically - * present to make a payment using a secure payment terminal. * **ANY**: All sales channels. + * The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: All sales channels. + * @return shopperInteraction The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: All sales channels. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -354,21 +290,9 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * The sales channel condition that defines whether the split logic applies. Possible values: * - * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on - * file and/or subscription transactions, where the cardholder is known to the merchant (returning - * customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in - * contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where - * the customer is physically present to make a payment using a secure payment terminal. * - * **ANY**: All sales channels. + * The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: All sales channels. * - * @param shopperInteraction The sales channel condition that defines whether the split logic - * applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is - * present. * **ContAuth**: Card on file and/or subscription transactions, where the - * cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and - * telephone-order transactions where the customer is in contact with the merchant via email - * or telephone. * **POS**: Point-of-sale transactions where the customer is physically - * present to make a payment using a secure payment terminal. * **ANY**: All sales channels. + * @param shopperInteraction The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: All sales channels. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -379,7 +303,7 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { /** * splitLogic * - * @param splitLogic + * @param splitLogic * @return the current {@code SplitConfigurationRule} instance, allowing for method chaining */ public SplitConfigurationRule splitLogic(SplitConfigurationLogic splitLogic) { @@ -389,8 +313,7 @@ public SplitConfigurationRule splitLogic(SplitConfigurationLogic splitLogic) { /** * Get splitLogic - * - * @return splitLogic + * @return splitLogic */ @JsonProperty(JSON_PROPERTY_SPLIT_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -401,7 +324,7 @@ public SplitConfigurationLogic getSplitLogic() { /** * splitLogic * - * @param splitLogic + * @param splitLogic */ @JsonProperty(JSON_PROPERTY_SPLIT_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -409,7 +332,9 @@ public void setSplitLogic(SplitConfigurationLogic splitLogic) { this.splitLogic = splitLogic; } - /** Return true if this SplitConfigurationRule object is equal to o. */ + /** + * Return true if this SplitConfigurationRule object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -419,18 +344,17 @@ public boolean equals(Object o) { return false; } SplitConfigurationRule splitConfigurationRule = (SplitConfigurationRule) o; - return Objects.equals(this.currency, splitConfigurationRule.currency) - && Objects.equals(this.fundingSource, splitConfigurationRule.fundingSource) - && Objects.equals(this.paymentMethod, splitConfigurationRule.paymentMethod) - && Objects.equals(this.ruleId, splitConfigurationRule.ruleId) - && Objects.equals(this.shopperInteraction, splitConfigurationRule.shopperInteraction) - && Objects.equals(this.splitLogic, splitConfigurationRule.splitLogic); + return Objects.equals(this.currency, splitConfigurationRule.currency) && + Objects.equals(this.fundingSource, splitConfigurationRule.fundingSource) && + Objects.equals(this.paymentMethod, splitConfigurationRule.paymentMethod) && + Objects.equals(this.ruleId, splitConfigurationRule.ruleId) && + Objects.equals(this.shopperInteraction, splitConfigurationRule.shopperInteraction) && + Objects.equals(this.splitLogic, splitConfigurationRule.splitLogic); } @Override public int hashCode() { - return Objects.hash( - currency, fundingSource, paymentMethod, ruleId, shopperInteraction, splitLogic); + return Objects.hash(currency, fundingSource, paymentMethod, ruleId, shopperInteraction, splitLogic); } @Override @@ -448,7 +372,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -457,23 +382,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SplitConfigurationRule given an JSON string * * @param jsonString JSON string * @return An instance of SplitConfigurationRule - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SplitConfigurationRule + * @throws JsonProcessingException if the JSON string is invalid with respect to SplitConfigurationRule */ public static SplitConfigurationRule fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SplitConfigurationRule.class); } - - /** - * Convert an instance of SplitConfigurationRule to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SplitConfigurationRule to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Standalone.java b/src/main/java/com/adyen/model/management/Standalone.java index a84607cee..f8541c536 100644 --- a/src/main/java/com/adyen/model/management/Standalone.java +++ b/src/main/java/com/adyen/model/management/Standalone.java @@ -2,27 +2,37 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Standalone */ + +/** + * Standalone + */ @JsonPropertyOrder({ Standalone.JSON_PROPERTY_CURRENCY_CODE, Standalone.JSON_PROPERTY_ENABLE_GRATUITIES, Standalone.JSON_PROPERTY_ENABLE_STANDALONE }) + public class Standalone { public static final String JSON_PROPERTY_CURRENCY_CODE = "currencyCode"; private String currencyCode; @@ -33,14 +43,13 @@ public class Standalone { public static final String JSON_PROPERTY_ENABLE_STANDALONE = "enableStandalone"; private Boolean enableStandalone; - public Standalone() {} + public Standalone() { + } /** - * The default currency of the standalone payment terminal as an [ISO - * 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. + * The default currency of the standalone payment terminal as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. * - * @param currencyCode The default currency of the standalone payment terminal as an [ISO - * 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. + * @param currencyCode The default currency of the standalone payment terminal as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. * @return the current {@code Standalone} instance, allowing for method chaining */ public Standalone currencyCode(String currencyCode) { @@ -49,11 +58,8 @@ public Standalone currencyCode(String currencyCode) { } /** - * The default currency of the standalone payment terminal as an [ISO - * 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. - * - * @return currencyCode The default currency of the standalone payment terminal as an [ISO - * 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. + * The default currency of the standalone payment terminal as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. + * @return currencyCode The default currency of the standalone payment terminal as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. */ @JsonProperty(JSON_PROPERTY_CURRENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -62,11 +68,9 @@ public String getCurrencyCode() { } /** - * The default currency of the standalone payment terminal as an [ISO - * 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. + * The default currency of the standalone payment terminal as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. * - * @param currencyCode The default currency of the standalone payment terminal as an [ISO - * 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. + * @param currencyCode The default currency of the standalone payment terminal as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. */ @JsonProperty(JSON_PROPERTY_CURRENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,11 +79,9 @@ public void setCurrencyCode(String currencyCode) { } /** - * Indicates whether the tipping options specified in `gratuities` are enabled on the - * standalone terminal. + * Indicates whether the tipping options specified in `gratuities` are enabled on the standalone terminal. * - * @param enableGratuities Indicates whether the tipping options specified in - * `gratuities` are enabled on the standalone terminal. + * @param enableGratuities Indicates whether the tipping options specified in `gratuities` are enabled on the standalone terminal. * @return the current {@code Standalone} instance, allowing for method chaining */ public Standalone enableGratuities(Boolean enableGratuities) { @@ -88,11 +90,8 @@ public Standalone enableGratuities(Boolean enableGratuities) { } /** - * Indicates whether the tipping options specified in `gratuities` are enabled on the - * standalone terminal. - * - * @return enableGratuities Indicates whether the tipping options specified in - * `gratuities` are enabled on the standalone terminal. + * Indicates whether the tipping options specified in `gratuities` are enabled on the standalone terminal. + * @return enableGratuities Indicates whether the tipping options specified in `gratuities` are enabled on the standalone terminal. */ @JsonProperty(JSON_PROPERTY_ENABLE_GRATUITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,11 +100,9 @@ public Boolean getEnableGratuities() { } /** - * Indicates whether the tipping options specified in `gratuities` are enabled on the - * standalone terminal. + * Indicates whether the tipping options specified in `gratuities` are enabled on the standalone terminal. * - * @param enableGratuities Indicates whether the tipping options specified in - * `gratuities` are enabled on the standalone terminal. + * @param enableGratuities Indicates whether the tipping options specified in `gratuities` are enabled on the standalone terminal. */ @JsonProperty(JSON_PROPERTY_ENABLE_GRATUITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,7 +123,6 @@ public Standalone enableStandalone(Boolean enableStandalone) { /** * Enable standalone mode. - * * @return enableStandalone Enable standalone mode. */ @JsonProperty(JSON_PROPERTY_ENABLE_STANDALONE) @@ -146,7 +142,9 @@ public void setEnableStandalone(Boolean enableStandalone) { this.enableStandalone = enableStandalone; } - /** Return true if this Standalone object is equal to o. */ + /** + * Return true if this Standalone object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,9 +154,9 @@ public boolean equals(Object o) { return false; } Standalone standalone = (Standalone) o; - return Objects.equals(this.currencyCode, standalone.currencyCode) - && Objects.equals(this.enableGratuities, standalone.enableGratuities) - && Objects.equals(this.enableStandalone, standalone.enableStandalone); + return Objects.equals(this.currencyCode, standalone.currencyCode) && + Objects.equals(this.enableGratuities, standalone.enableGratuities) && + Objects.equals(this.enableStandalone, standalone.enableStandalone); } @Override @@ -178,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -187,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Standalone given an JSON string * * @param jsonString JSON string @@ -197,12 +196,11 @@ private String toIndentedString(Object o) { public static Standalone fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Standalone.class); } - - /** - * Convert an instance of Standalone to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Standalone to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/StarInfo.java b/src/main/java/com/adyen/model/management/StarInfo.java index 6108d1e1e..627e8b56b 100644 --- a/src/main/java/com/adyen/model/management/StarInfo.java +++ b/src/main/java/com/adyen/model/management/StarInfo.java @@ -2,40 +2,43 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.TransactionDescriptionInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** StarInfo */ +/** + * StarInfo + */ @JsonPropertyOrder({ StarInfo.JSON_PROPERTY_PROCESSING_TYPE, StarInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION }) + public class StarInfo { /** - * The type of transactions processed over this payment method. Allowed values: - **pos** for - * in-person payments. - **billpay** for subscription payments, both the initial payment and the - * later recurring payments. These transactions have `recurringProcessingModel` - * **Subscription**. - **ecom** for all other card not present transactions. This includes - * non-recurring transactions and transactions with `recurringProcessingModel` - * **CardOnFile** or **UnscheduledCardOnFile**. + * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. */ public enum ProcessingTypeEnum { + BILLPAY(String.valueOf("billpay")), ECOM(String.valueOf("ecom")), @@ -47,7 +50,7 @@ public enum ProcessingTypeEnum { private String value; ProcessingTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -68,11 +71,7 @@ public static ProcessingTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ProcessingTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ProcessingTypeEnum.values())); + LOG.warning("ProcessingTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ProcessingTypeEnum.values())); return null; } } @@ -83,22 +82,13 @@ public static ProcessingTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANSACTION_DESCRIPTION = "transactionDescription"; private TransactionDescriptionInfo transactionDescription; - public StarInfo() {} + public StarInfo() { + } /** - * The type of transactions processed over this payment method. Allowed values: - **pos** for - * in-person payments. - **billpay** for subscription payments, both the initial payment and the - * later recurring payments. These transactions have `recurringProcessingModel` - * **Subscription**. - **ecom** for all other card not present transactions. This includes - * non-recurring transactions and transactions with `recurringProcessingModel` - * **CardOnFile** or **UnscheduledCardOnFile**. + * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. * - * @param processingType The type of transactions processed over this payment method. Allowed - * values: - **pos** for in-person payments. - **billpay** for subscription payments, both the - * initial payment and the later recurring payments. These transactions have - * `recurringProcessingModel` **Subscription**. - **ecom** for all other card not - * present transactions. This includes non-recurring transactions and transactions with - * `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * @param processingType The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. * @return the current {@code StarInfo} instance, allowing for method chaining */ public StarInfo processingType(ProcessingTypeEnum processingType) { @@ -107,19 +97,8 @@ public StarInfo processingType(ProcessingTypeEnum processingType) { } /** - * The type of transactions processed over this payment method. Allowed values: - **pos** for - * in-person payments. - **billpay** for subscription payments, both the initial payment and the - * later recurring payments. These transactions have `recurringProcessingModel` - * **Subscription**. - **ecom** for all other card not present transactions. This includes - * non-recurring transactions and transactions with `recurringProcessingModel` - * **CardOnFile** or **UnscheduledCardOnFile**. - * - * @return processingType The type of transactions processed over this payment method. Allowed - * values: - **pos** for in-person payments. - **billpay** for subscription payments, both the - * initial payment and the later recurring payments. These transactions have - * `recurringProcessingModel` **Subscription**. - **ecom** for all other card not - * present transactions. This includes non-recurring transactions and transactions with - * `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * @return processingType The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. */ @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,19 +107,9 @@ public ProcessingTypeEnum getProcessingType() { } /** - * The type of transactions processed over this payment method. Allowed values: - **pos** for - * in-person payments. - **billpay** for subscription payments, both the initial payment and the - * later recurring payments. These transactions have `recurringProcessingModel` - * **Subscription**. - **ecom** for all other card not present transactions. This includes - * non-recurring transactions and transactions with `recurringProcessingModel` - * **CardOnFile** or **UnscheduledCardOnFile**. + * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. * - * @param processingType The type of transactions processed over this payment method. Allowed - * values: - **pos** for in-person payments. - **billpay** for subscription payments, both the - * initial payment and the later recurring payments. These transactions have - * `recurringProcessingModel` **Subscription**. - **ecom** for all other card not - * present transactions. This includes non-recurring transactions and transactions with - * `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * @param processingType The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. */ @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,7 +120,7 @@ public void setProcessingType(ProcessingTypeEnum processingType) { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription * @return the current {@code StarInfo} instance, allowing for method chaining */ public StarInfo transactionDescription(TransactionDescriptionInfo transactionDescription) { @@ -161,8 +130,7 @@ public StarInfo transactionDescription(TransactionDescriptionInfo transactionDes /** * Get transactionDescription - * - * @return transactionDescription + * @return transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,7 +141,7 @@ public TransactionDescriptionInfo getTransactionDescription() { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,7 +149,9 @@ public void setTransactionDescription(TransactionDescriptionInfo transactionDesc this.transactionDescription = transactionDescription; } - /** Return true if this StarInfo object is equal to o. */ + /** + * Return true if this StarInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -191,8 +161,8 @@ public boolean equals(Object o) { return false; } StarInfo starInfo = (StarInfo) o; - return Objects.equals(this.processingType, starInfo.processingType) - && Objects.equals(this.transactionDescription, starInfo.transactionDescription); + return Objects.equals(this.processingType, starInfo.processingType) && + Objects.equals(this.transactionDescription, starInfo.transactionDescription); } @Override @@ -205,15 +175,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class StarInfo {\n"); sb.append(" processingType: ").append(toIndentedString(processingType)).append("\n"); - sb.append(" transactionDescription: ") - .append(toIndentedString(transactionDescription)) - .append("\n"); + sb.append(" transactionDescription: ").append(toIndentedString(transactionDescription)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -222,7 +191,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of StarInfo given an JSON string * * @param jsonString JSON string @@ -232,12 +201,11 @@ private String toIndentedString(Object o) { public static StarInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StarInfo.class); } - - /** - * Convert an instance of StarInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of StarInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Store.java b/src/main/java/com/adyen/model/management/Store.java index cb55cdb0a..f2d2fd1d6 100644 --- a/src/main/java/com/adyen/model/management/Store.java +++ b/src/main/java/com/adyen/model/management/Store.java @@ -2,28 +2,37 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.Links; +import com.adyen.model.management.StoreLocation; +import com.adyen.model.management.StoreSplitConfiguration; +import com.adyen.model.management.SubMerchantData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** Store */ +/** + * Store + */ @JsonPropertyOrder({ Store.JSON_PROPERTY_LINKS, Store.JSON_PROPERTY_ADDRESS, @@ -39,6 +48,7 @@ Store.JSON_PROPERTY_STATUS, Store.JSON_PROPERTY_SUB_MERCHANT_DATA }) + public class Store { public static final String JSON_PROPERTY_LINKS = "_links"; private Links links; @@ -74,13 +84,10 @@ public class Store { private StoreSplitConfiguration splitConfiguration; /** - * The status of the store. Possible values are: - **active**. This value is assigned - * automatically when a store is created. - **inactive**. The terminals under the store are - * blocked from accepting new transactions, but capturing outstanding transactions is still - * possible. - **closed**. This status is irreversible. The terminals under the store are - * reassigned to the merchant inventory. + * The status of the store. Possible values are: - **active**. This value is assigned automatically when a store is created. - **inactive**. The terminals under the store are blocked from accepting new transactions, but capturing outstanding transactions is still possible. - **closed**. This status is irreversible. The terminals under the store are reassigned to the merchant inventory. */ public enum StatusEnum { + ACTIVE(String.valueOf("active")), CLOSED(String.valueOf("closed")), @@ -92,7 +99,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -113,11 +120,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -128,12 +131,13 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_SUB_MERCHANT_DATA = "subMerchantData"; private SubMerchantData subMerchantData; - public Store() {} + public Store() { + } /** * links * - * @param links + * @param links * @return the current {@code Store} instance, allowing for method chaining */ public Store links(Links links) { @@ -143,8 +147,7 @@ public Store links(Links links) { /** * Get links - * - * @return links + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -155,7 +158,7 @@ public Links getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -166,7 +169,7 @@ public void setLinks(Links links) { /** * address * - * @param address + * @param address * @return the current {@code Store} instance, allowing for method chaining */ public Store address(StoreLocation address) { @@ -176,8 +179,7 @@ public Store address(StoreLocation address) { /** * Get address - * - * @return address + * @return address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,7 +190,7 @@ public StoreLocation getAddress() { /** * address * - * @param address + * @param address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -197,16 +199,9 @@ public void setAddress(StoreLocation address) { } /** - * The unique identifiers of the [business - * lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businesslines__resParam_id) - * that the store is associated with. If not specified, the business line of the merchant account - * is used. Required when there are multiple business lines under the merchant account. + * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businesslines__resParam_id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. * - * @param businessLineIds The unique identifiers of the [business - * lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businesslines__resParam_id) - * that the store is associated with. If not specified, the business line of the merchant - * account is used. Required when there are multiple business lines under the merchant - * account. + * @param businessLineIds The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businesslines__resParam_id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. * @return the current {@code Store} instance, allowing for method chaining */ public Store businessLineIds(List businessLineIds) { @@ -223,16 +218,8 @@ public Store addBusinessLineIdsItem(String businessLineIdsItem) { } /** - * The unique identifiers of the [business - * lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businesslines__resParam_id) - * that the store is associated with. If not specified, the business line of the merchant account - * is used. Required when there are multiple business lines under the merchant account. - * - * @return businessLineIds The unique identifiers of the [business - * lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businesslines__resParam_id) - * that the store is associated with. If not specified, the business line of the merchant - * account is used. Required when there are multiple business lines under the merchant - * account. + * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businesslines__resParam_id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. + * @return businessLineIds The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businesslines__resParam_id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -241,16 +228,9 @@ public List getBusinessLineIds() { } /** - * The unique identifiers of the [business - * lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businesslines__resParam_id) - * that the store is associated with. If not specified, the business line of the merchant account - * is used. Required when there are multiple business lines under the merchant account. + * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businesslines__resParam_id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. * - * @param businessLineIds The unique identifiers of the [business - * lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businesslines__resParam_id) - * that the store is associated with. If not specified, the business line of the merchant - * account is used. Required when there are multiple business lines under the merchant - * account. + * @param businessLineIds The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businesslines__resParam_id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -271,7 +251,6 @@ public Store description(String description) { /** * The description of the store. - * * @return description The description of the store. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -292,15 +271,9 @@ public void setDescription(String description) { } /** - * The unique identifier of the store, used by certain payment methods and tax authorities. - * Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, - * hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip - * in Australia, up to 50 digits. + * The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. * - * @param externalReferenceId The unique identifier of the store, used by certain payment methods - * and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 - * separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, - * up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * @param externalReferenceId The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. * @return the current {@code Store} instance, allowing for method chaining */ public Store externalReferenceId(String externalReferenceId) { @@ -309,15 +282,8 @@ public Store externalReferenceId(String externalReferenceId) { } /** - * The unique identifier of the store, used by certain payment methods and tax authorities. - * Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, - * hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip - * in Australia, up to 50 digits. - * - * @return externalReferenceId The unique identifier of the store, used by certain payment methods - * and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 - * separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, - * up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * @return externalReferenceId The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. */ @JsonProperty(JSON_PROPERTY_EXTERNAL_REFERENCE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -326,15 +292,9 @@ public String getExternalReferenceId() { } /** - * The unique identifier of the store, used by certain payment methods and tax authorities. - * Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, - * hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip - * in Australia, up to 50 digits. + * The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. * - * @param externalReferenceId The unique identifier of the store, used by certain payment methods - * and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 - * separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, - * up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * @param externalReferenceId The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. */ @JsonProperty(JSON_PROPERTY_EXTERNAL_REFERENCE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -355,7 +315,6 @@ public Store id(String id) { /** * The unique identifier of the store. This value is generated by Adyen. - * * @return id The unique identifier of the store. This value is generated by Adyen. */ @JsonProperty(JSON_PROPERTY_ID) @@ -388,7 +347,6 @@ public Store merchantId(String merchantId) { /** * The unique identifier of the merchant account that the store belongs to. - * * @return merchantId The unique identifier of the merchant account that the store belongs to. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @@ -409,13 +367,9 @@ public void setMerchantId(String merchantId) { } /** - * The phone number of the store, including '+' and country code in the - * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we - * convert and validate the phone number against E.164. + * The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. * - * @param phoneNumber The phone number of the store, including '+' and country code in the - * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we - * convert and validate the phone number against E.164. + * @param phoneNumber The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. * @return the current {@code Store} instance, allowing for method chaining */ public Store phoneNumber(String phoneNumber) { @@ -424,13 +378,8 @@ public Store phoneNumber(String phoneNumber) { } /** - * The phone number of the store, including '+' and country code in the - * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we - * convert and validate the phone number against E.164. - * - * @return phoneNumber The phone number of the store, including '+' and country code in - * the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, - * we convert and validate the phone number against E.164. + * The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. + * @return phoneNumber The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -439,13 +388,9 @@ public String getPhoneNumber() { } /** - * The phone number of the store, including '+' and country code in the - * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we - * convert and validate the phone number against E.164. + * The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. * - * @param phoneNumber The phone number of the store, including '+' and country code in the - * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we - * convert and validate the phone number against E.164. + * @param phoneNumber The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -454,13 +399,9 @@ public void setPhoneNumber(String phoneNumber) { } /** - * A reference to recognize the store by. Also known as the store code. Allowed characters: - * lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and - * underscore (_) + * A reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_) * - * @param reference A reference to recognize the store by. Also known as the store code. Allowed - * characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen - * (-), and underscore (_) + * @param reference A reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_) * @return the current {@code Store} instance, allowing for method chaining */ public Store reference(String reference) { @@ -469,13 +410,8 @@ public Store reference(String reference) { } /** - * A reference to recognize the store by. Also known as the store code. Allowed characters: - * lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and - * underscore (_) - * - * @return reference A reference to recognize the store by. Also known as the store code. Allowed - * characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen - * (-), and underscore (_) + * A reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_) + * @return reference A reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_) */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -484,13 +420,9 @@ public String getReference() { } /** - * A reference to recognize the store by. Also known as the store code. Allowed characters: - * lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and - * underscore (_) + * A reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_) * - * @param reference A reference to recognize the store by. Also known as the store code. Allowed - * characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen - * (-), and underscore (_) + * @param reference A reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_) */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -499,11 +431,9 @@ public void setReference(String reference) { } /** - * The store name shown on the shopper's bank or credit card statement and on the shopper - * receipt. + * The store name shown on the shopper's bank or credit card statement and on the shopper receipt. * - * @param shopperStatement The store name shown on the shopper's bank or credit card statement - * and on the shopper receipt. + * @param shopperStatement The store name shown on the shopper's bank or credit card statement and on the shopper receipt. * @return the current {@code Store} instance, allowing for method chaining */ public Store shopperStatement(String shopperStatement) { @@ -512,11 +442,8 @@ public Store shopperStatement(String shopperStatement) { } /** - * The store name shown on the shopper's bank or credit card statement and on the shopper - * receipt. - * - * @return shopperStatement The store name shown on the shopper's bank or credit card - * statement and on the shopper receipt. + * The store name shown on the shopper's bank or credit card statement and on the shopper receipt. + * @return shopperStatement The store name shown on the shopper's bank or credit card statement and on the shopper receipt. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -525,11 +452,9 @@ public String getShopperStatement() { } /** - * The store name shown on the shopper's bank or credit card statement and on the shopper - * receipt. + * The store name shown on the shopper's bank or credit card statement and on the shopper receipt. * - * @param shopperStatement The store name shown on the shopper's bank or credit card statement - * and on the shopper receipt. + * @param shopperStatement The store name shown on the shopper's bank or credit card statement and on the shopper receipt. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -540,7 +465,7 @@ public void setShopperStatement(String shopperStatement) { /** * splitConfiguration * - * @param splitConfiguration + * @param splitConfiguration * @return the current {@code Store} instance, allowing for method chaining */ public Store splitConfiguration(StoreSplitConfiguration splitConfiguration) { @@ -550,8 +475,7 @@ public Store splitConfiguration(StoreSplitConfiguration splitConfiguration) { /** * Get splitConfiguration - * - * @return splitConfiguration + * @return splitConfiguration */ @JsonProperty(JSON_PROPERTY_SPLIT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -562,7 +486,7 @@ public StoreSplitConfiguration getSplitConfiguration() { /** * splitConfiguration * - * @param splitConfiguration + * @param splitConfiguration */ @JsonProperty(JSON_PROPERTY_SPLIT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -571,17 +495,9 @@ public void setSplitConfiguration(StoreSplitConfiguration splitConfiguration) { } /** - * The status of the store. Possible values are: - **active**. This value is assigned - * automatically when a store is created. - **inactive**. The terminals under the store are - * blocked from accepting new transactions, but capturing outstanding transactions is still - * possible. - **closed**. This status is irreversible. The terminals under the store are - * reassigned to the merchant inventory. + * The status of the store. Possible values are: - **active**. This value is assigned automatically when a store is created. - **inactive**. The terminals under the store are blocked from accepting new transactions, but capturing outstanding transactions is still possible. - **closed**. This status is irreversible. The terminals under the store are reassigned to the merchant inventory. * - * @param status The status of the store. Possible values are: - **active**. This value is - * assigned automatically when a store is created. - **inactive**. The terminals under the - * store are blocked from accepting new transactions, but capturing outstanding transactions - * is still possible. - **closed**. This status is irreversible. The terminals under the store - * are reassigned to the merchant inventory. + * @param status The status of the store. Possible values are: - **active**. This value is assigned automatically when a store is created. - **inactive**. The terminals under the store are blocked from accepting new transactions, but capturing outstanding transactions is still possible. - **closed**. This status is irreversible. The terminals under the store are reassigned to the merchant inventory. * @return the current {@code Store} instance, allowing for method chaining */ public Store status(StatusEnum status) { @@ -590,17 +506,8 @@ public Store status(StatusEnum status) { } /** - * The status of the store. Possible values are: - **active**. This value is assigned - * automatically when a store is created. - **inactive**. The terminals under the store are - * blocked from accepting new transactions, but capturing outstanding transactions is still - * possible. - **closed**. This status is irreversible. The terminals under the store are - * reassigned to the merchant inventory. - * - * @return status The status of the store. Possible values are: - **active**. This value is - * assigned automatically when a store is created. - **inactive**. The terminals under the - * store are blocked from accepting new transactions, but capturing outstanding transactions - * is still possible. - **closed**. This status is irreversible. The terminals under the store - * are reassigned to the merchant inventory. + * The status of the store. Possible values are: - **active**. This value is assigned automatically when a store is created. - **inactive**. The terminals under the store are blocked from accepting new transactions, but capturing outstanding transactions is still possible. - **closed**. This status is irreversible. The terminals under the store are reassigned to the merchant inventory. + * @return status The status of the store. Possible values are: - **active**. This value is assigned automatically when a store is created. - **inactive**. The terminals under the store are blocked from accepting new transactions, but capturing outstanding transactions is still possible. - **closed**. This status is irreversible. The terminals under the store are reassigned to the merchant inventory. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -609,17 +516,9 @@ public StatusEnum getStatus() { } /** - * The status of the store. Possible values are: - **active**. This value is assigned - * automatically when a store is created. - **inactive**. The terminals under the store are - * blocked from accepting new transactions, but capturing outstanding transactions is still - * possible. - **closed**. This status is irreversible. The terminals under the store are - * reassigned to the merchant inventory. + * The status of the store. Possible values are: - **active**. This value is assigned automatically when a store is created. - **inactive**. The terminals under the store are blocked from accepting new transactions, but capturing outstanding transactions is still possible. - **closed**. This status is irreversible. The terminals under the store are reassigned to the merchant inventory. * - * @param status The status of the store. Possible values are: - **active**. This value is - * assigned automatically when a store is created. - **inactive**. The terminals under the - * store are blocked from accepting new transactions, but capturing outstanding transactions - * is still possible. - **closed**. This status is irreversible. The terminals under the store - * are reassigned to the merchant inventory. + * @param status The status of the store. Possible values are: - **active**. This value is assigned automatically when a store is created. - **inactive**. The terminals under the store are blocked from accepting new transactions, but capturing outstanding transactions is still possible. - **closed**. This status is irreversible. The terminals under the store are reassigned to the merchant inventory. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -630,7 +529,7 @@ public void setStatus(StatusEnum status) { /** * subMerchantData * - * @param subMerchantData + * @param subMerchantData * @return the current {@code Store} instance, allowing for method chaining */ public Store subMerchantData(SubMerchantData subMerchantData) { @@ -640,8 +539,7 @@ public Store subMerchantData(SubMerchantData subMerchantData) { /** * Get subMerchantData - * - * @return subMerchantData + * @return subMerchantData */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -652,7 +550,7 @@ public SubMerchantData getSubMerchantData() { /** * subMerchantData * - * @param subMerchantData + * @param subMerchantData */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -660,7 +558,9 @@ public void setSubMerchantData(SubMerchantData subMerchantData) { this.subMerchantData = subMerchantData; } - /** Return true if this Store object is equal to o. */ + /** + * Return true if this Store object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -670,37 +570,24 @@ public boolean equals(Object o) { return false; } Store store = (Store) o; - return Objects.equals(this.links, store.links) - && Objects.equals(this.address, store.address) - && Objects.equals(this.businessLineIds, store.businessLineIds) - && Objects.equals(this.description, store.description) - && Objects.equals(this.externalReferenceId, store.externalReferenceId) - && Objects.equals(this.id, store.id) - && Objects.equals(this.merchantId, store.merchantId) - && Objects.equals(this.phoneNumber, store.phoneNumber) - && Objects.equals(this.reference, store.reference) - && Objects.equals(this.shopperStatement, store.shopperStatement) - && Objects.equals(this.splitConfiguration, store.splitConfiguration) - && Objects.equals(this.status, store.status) - && Objects.equals(this.subMerchantData, store.subMerchantData); + return Objects.equals(this.links, store.links) && + Objects.equals(this.address, store.address) && + Objects.equals(this.businessLineIds, store.businessLineIds) && + Objects.equals(this.description, store.description) && + Objects.equals(this.externalReferenceId, store.externalReferenceId) && + Objects.equals(this.id, store.id) && + Objects.equals(this.merchantId, store.merchantId) && + Objects.equals(this.phoneNumber, store.phoneNumber) && + Objects.equals(this.reference, store.reference) && + Objects.equals(this.shopperStatement, store.shopperStatement) && + Objects.equals(this.splitConfiguration, store.splitConfiguration) && + Objects.equals(this.status, store.status) && + Objects.equals(this.subMerchantData, store.subMerchantData); } @Override public int hashCode() { - return Objects.hash( - links, - address, - businessLineIds, - description, - externalReferenceId, - id, - merchantId, - phoneNumber, - reference, - shopperStatement, - splitConfiguration, - status, - subMerchantData); + return Objects.hash(links, address, businessLineIds, description, externalReferenceId, id, merchantId, phoneNumber, reference, shopperStatement, splitConfiguration, status, subMerchantData); } @Override @@ -711,9 +598,7 @@ public String toString() { sb.append(" address: ").append(toIndentedString(address)).append("\n"); sb.append(" businessLineIds: ").append(toIndentedString(businessLineIds)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" externalReferenceId: ") - .append(toIndentedString(externalReferenceId)) - .append("\n"); + sb.append(" externalReferenceId: ").append(toIndentedString(externalReferenceId)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" merchantId: ").append(toIndentedString(merchantId)).append("\n"); sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); @@ -727,7 +612,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -736,7 +622,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Store given an JSON string * * @param jsonString JSON string @@ -746,12 +632,11 @@ private String toIndentedString(Object o) { public static Store fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Store.class); } - - /** - * Convert an instance of Store to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Store to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/StoreAndForward.java b/src/main/java/com/adyen/model/management/StoreAndForward.java index 532ee2d47..0c03e3bf7 100644 --- a/src/main/java/com/adyen/model/management/StoreAndForward.java +++ b/src/main/java/com/adyen/model/management/StoreAndForward.java @@ -2,29 +2,41 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.MinorUnitsMonetaryValue; +import com.adyen.model.management.SupportedCardTypes; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** StoreAndForward */ +/** + * StoreAndForward + */ @JsonPropertyOrder({ StoreAndForward.JSON_PROPERTY_MAX_AMOUNT, StoreAndForward.JSON_PROPERTY_MAX_PAYMENTS, StoreAndForward.JSON_PROPERTY_SUPPORTED_CARD_TYPES }) + public class StoreAndForward { public static final String JSON_PROPERTY_MAX_AMOUNT = "maxAmount"; private List maxAmount; @@ -35,13 +47,13 @@ public class StoreAndForward { public static final String JSON_PROPERTY_SUPPORTED_CARD_TYPES = "supportedCardTypes"; private SupportedCardTypes supportedCardTypes; - public StoreAndForward() {} + public StoreAndForward() { + } /** * The maximum amount that the terminal accepts for a single store-and-forward payment. * - * @param maxAmount The maximum amount that the terminal accepts for a single store-and-forward - * payment. + * @param maxAmount The maximum amount that the terminal accepts for a single store-and-forward payment. * @return the current {@code StoreAndForward} instance, allowing for method chaining */ public StoreAndForward maxAmount(List maxAmount) { @@ -59,9 +71,7 @@ public StoreAndForward addMaxAmountItem(MinorUnitsMonetaryValue maxAmountItem) { /** * The maximum amount that the terminal accepts for a single store-and-forward payment. - * - * @return maxAmount The maximum amount that the terminal accepts for a single store-and-forward - * payment. + * @return maxAmount The maximum amount that the terminal accepts for a single store-and-forward payment. */ @JsonProperty(JSON_PROPERTY_MAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -72,8 +82,7 @@ public List getMaxAmount() { /** * The maximum amount that the terminal accepts for a single store-and-forward payment. * - * @param maxAmount The maximum amount that the terminal accepts for a single store-and-forward - * payment. + * @param maxAmount The maximum amount that the terminal accepts for a single store-and-forward payment. */ @JsonProperty(JSON_PROPERTY_MAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -82,11 +91,9 @@ public void setMaxAmount(List maxAmount) { } /** - * The maximum number of store-and-forward transactions per terminal that you can process while - * offline. + * The maximum number of store-and-forward transactions per terminal that you can process while offline. * - * @param maxPayments The maximum number of store-and-forward transactions per terminal that you - * can process while offline. + * @param maxPayments The maximum number of store-and-forward transactions per terminal that you can process while offline. * @return the current {@code StoreAndForward} instance, allowing for method chaining */ public StoreAndForward maxPayments(Integer maxPayments) { @@ -95,11 +102,8 @@ public StoreAndForward maxPayments(Integer maxPayments) { } /** - * The maximum number of store-and-forward transactions per terminal that you can process while - * offline. - * - * @return maxPayments The maximum number of store-and-forward transactions per terminal that you - * can process while offline. + * The maximum number of store-and-forward transactions per terminal that you can process while offline. + * @return maxPayments The maximum number of store-and-forward transactions per terminal that you can process while offline. */ @JsonProperty(JSON_PROPERTY_MAX_PAYMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,11 +112,9 @@ public Integer getMaxPayments() { } /** - * The maximum number of store-and-forward transactions per terminal that you can process while - * offline. + * The maximum number of store-and-forward transactions per terminal that you can process while offline. * - * @param maxPayments The maximum number of store-and-forward transactions per terminal that you - * can process while offline. + * @param maxPayments The maximum number of store-and-forward transactions per terminal that you can process while offline. */ @JsonProperty(JSON_PROPERTY_MAX_PAYMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,7 +125,7 @@ public void setMaxPayments(Integer maxPayments) { /** * supportedCardTypes * - * @param supportedCardTypes + * @param supportedCardTypes * @return the current {@code StoreAndForward} instance, allowing for method chaining */ public StoreAndForward supportedCardTypes(SupportedCardTypes supportedCardTypes) { @@ -133,8 +135,7 @@ public StoreAndForward supportedCardTypes(SupportedCardTypes supportedCardTypes) /** * Get supportedCardTypes - * - * @return supportedCardTypes + * @return supportedCardTypes */ @JsonProperty(JSON_PROPERTY_SUPPORTED_CARD_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,7 +146,7 @@ public SupportedCardTypes getSupportedCardTypes() { /** * supportedCardTypes * - * @param supportedCardTypes + * @param supportedCardTypes */ @JsonProperty(JSON_PROPERTY_SUPPORTED_CARD_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -153,7 +154,9 @@ public void setSupportedCardTypes(SupportedCardTypes supportedCardTypes) { this.supportedCardTypes = supportedCardTypes; } - /** Return true if this StoreAndForward object is equal to o. */ + /** + * Return true if this StoreAndForward object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -163,9 +166,9 @@ public boolean equals(Object o) { return false; } StoreAndForward storeAndForward = (StoreAndForward) o; - return Objects.equals(this.maxAmount, storeAndForward.maxAmount) - && Objects.equals(this.maxPayments, storeAndForward.maxPayments) - && Objects.equals(this.supportedCardTypes, storeAndForward.supportedCardTypes); + return Objects.equals(this.maxAmount, storeAndForward.maxAmount) && + Objects.equals(this.maxPayments, storeAndForward.maxPayments) && + Objects.equals(this.supportedCardTypes, storeAndForward.supportedCardTypes); } @Override @@ -185,7 +188,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -194,7 +198,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of StoreAndForward given an JSON string * * @param jsonString JSON string @@ -204,12 +208,11 @@ private String toIndentedString(Object o) { public static StoreAndForward fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoreAndForward.class); } - - /** - * Convert an instance of StoreAndForward to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of StoreAndForward to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/StoreCreationRequest.java b/src/main/java/com/adyen/model/management/StoreCreationRequest.java index b0460a3be..e3738110f 100644 --- a/src/main/java/com/adyen/model/management/StoreCreationRequest.java +++ b/src/main/java/com/adyen/model/management/StoreCreationRequest.java @@ -2,24 +2,36 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.StoreLocation; +import com.adyen.model.management.StoreSplitConfiguration; +import com.adyen.model.management.SubMerchantData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** StoreCreationRequest */ +/** + * StoreCreationRequest + */ @JsonPropertyOrder({ StoreCreationRequest.JSON_PROPERTY_ADDRESS, StoreCreationRequest.JSON_PROPERTY_BUSINESS_LINE_IDS, @@ -31,6 +43,7 @@ StoreCreationRequest.JSON_PROPERTY_SPLIT_CONFIGURATION, StoreCreationRequest.JSON_PROPERTY_SUB_MERCHANT_DATA }) + public class StoreCreationRequest { public static final String JSON_PROPERTY_ADDRESS = "address"; private StoreLocation address; @@ -59,12 +72,13 @@ public class StoreCreationRequest { public static final String JSON_PROPERTY_SUB_MERCHANT_DATA = "subMerchantData"; private SubMerchantData subMerchantData; - public StoreCreationRequest() {} + public StoreCreationRequest() { + } /** * address * - * @param address + * @param address * @return the current {@code StoreCreationRequest} instance, allowing for method chaining */ public StoreCreationRequest address(StoreLocation address) { @@ -74,8 +88,7 @@ public StoreCreationRequest address(StoreLocation address) { /** * Get address - * - * @return address + * @return address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -86,7 +99,7 @@ public StoreLocation getAddress() { /** * address * - * @param address + * @param address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -95,16 +108,9 @@ public void setAddress(StoreLocation address) { } /** - * The unique identifiers of the [business - * lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) - * that the store is associated with. If not specified, the business line of the merchant account - * is used. Required when there are multiple business lines under the merchant account. + * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. * - * @param businessLineIds The unique identifiers of the [business - * lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) - * that the store is associated with. If not specified, the business line of the merchant - * account is used. Required when there are multiple business lines under the merchant - * account. + * @param businessLineIds The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. * @return the current {@code StoreCreationRequest} instance, allowing for method chaining */ public StoreCreationRequest businessLineIds(List businessLineIds) { @@ -121,16 +127,8 @@ public StoreCreationRequest addBusinessLineIdsItem(String businessLineIdsItem) { } /** - * The unique identifiers of the [business - * lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) - * that the store is associated with. If not specified, the business line of the merchant account - * is used. Required when there are multiple business lines under the merchant account. - * - * @return businessLineIds The unique identifiers of the [business - * lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) - * that the store is associated with. If not specified, the business line of the merchant - * account is used. Required when there are multiple business lines under the merchant - * account. + * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. + * @return businessLineIds The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,16 +137,9 @@ public List getBusinessLineIds() { } /** - * The unique identifiers of the [business - * lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) - * that the store is associated with. If not specified, the business line of the merchant account - * is used. Required when there are multiple business lines under the merchant account. + * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. * - * @param businessLineIds The unique identifiers of the [business - * lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) - * that the store is associated with. If not specified, the business line of the merchant - * account is used. Required when there are multiple business lines under the merchant - * account. + * @param businessLineIds The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,7 +160,6 @@ public StoreCreationRequest description(String description) { /** * Your description of the store. - * * @return description Your description of the store. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -190,15 +180,9 @@ public void setDescription(String description) { } /** - * The unique identifier of the store, used by certain payment methods and tax authorities. - * Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, - * hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip - * in Australia, up to 50 digits. + * The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. * - * @param externalReferenceId The unique identifier of the store, used by certain payment methods - * and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 - * separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, - * up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * @param externalReferenceId The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. * @return the current {@code StoreCreationRequest} instance, allowing for method chaining */ public StoreCreationRequest externalReferenceId(String externalReferenceId) { @@ -207,15 +191,8 @@ public StoreCreationRequest externalReferenceId(String externalReferenceId) { } /** - * The unique identifier of the store, used by certain payment methods and tax authorities. - * Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, - * hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip - * in Australia, up to 50 digits. - * - * @return externalReferenceId The unique identifier of the store, used by certain payment methods - * and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 - * separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, - * up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * @return externalReferenceId The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. */ @JsonProperty(JSON_PROPERTY_EXTERNAL_REFERENCE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,15 +201,9 @@ public String getExternalReferenceId() { } /** - * The unique identifier of the store, used by certain payment methods and tax authorities. - * Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, - * hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip - * in Australia, up to 50 digits. + * The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. * - * @param externalReferenceId The unique identifier of the store, used by certain payment methods - * and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 - * separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, - * up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * @param externalReferenceId The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. */ @JsonProperty(JSON_PROPERTY_EXTERNAL_REFERENCE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -241,13 +212,9 @@ public void setExternalReferenceId(String externalReferenceId) { } /** - * The phone number of the store, including '+' and country code in the - * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we - * convert and validate the phone number against E.164. + * The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. * - * @param phoneNumber The phone number of the store, including '+' and country code in the - * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we - * convert and validate the phone number against E.164. + * @param phoneNumber The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. * @return the current {@code StoreCreationRequest} instance, allowing for method chaining */ public StoreCreationRequest phoneNumber(String phoneNumber) { @@ -256,13 +223,8 @@ public StoreCreationRequest phoneNumber(String phoneNumber) { } /** - * The phone number of the store, including '+' and country code in the - * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we - * convert and validate the phone number against E.164. - * - * @return phoneNumber The phone number of the store, including '+' and country code in - * the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, - * we convert and validate the phone number against E.164. + * The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. + * @return phoneNumber The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -271,13 +233,9 @@ public String getPhoneNumber() { } /** - * The phone number of the store, including '+' and country code in the - * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we - * convert and validate the phone number against E.164. + * The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. * - * @param phoneNumber The phone number of the store, including '+' and country code in the - * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we - * convert and validate the phone number against E.164. + * @param phoneNumber The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -286,17 +244,9 @@ public void setPhoneNumber(String phoneNumber) { } /** - * Your reference to recognize the store by. Also known as the store code. Allowed characters: - * lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and - * underscore (_). If you do not provide a reference in your POST request, it is populated with - * the Adyen-generated - * [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). + * Your reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, it is populated with the Adyen-generated [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). * - * @param reference Your reference to recognize the store by. Also known as the store code. - * Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through - * 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, - * it is populated with the Adyen-generated - * [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). + * @param reference Your reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, it is populated with the Adyen-generated [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). * @return the current {@code StoreCreationRequest} instance, allowing for method chaining */ public StoreCreationRequest reference(String reference) { @@ -305,17 +255,8 @@ public StoreCreationRequest reference(String reference) { } /** - * Your reference to recognize the store by. Also known as the store code. Allowed characters: - * lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and - * underscore (_). If you do not provide a reference in your POST request, it is populated with - * the Adyen-generated - * [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). - * - * @return reference Your reference to recognize the store by. Also known as the store code. - * Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through - * 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, - * it is populated with the Adyen-generated - * [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). + * Your reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, it is populated with the Adyen-generated [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). + * @return reference Your reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, it is populated with the Adyen-generated [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -324,17 +265,9 @@ public String getReference() { } /** - * Your reference to recognize the store by. Also known as the store code. Allowed characters: - * lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and - * underscore (_). If you do not provide a reference in your POST request, it is populated with - * the Adyen-generated - * [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). + * Your reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, it is populated with the Adyen-generated [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). * - * @param reference Your reference to recognize the store by. Also known as the store code. - * Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through - * 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, - * it is populated with the Adyen-generated - * [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). + * @param reference Your reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, it is populated with the Adyen-generated [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -343,12 +276,9 @@ public void setReference(String reference) { } /** - * The store name to be shown on the shopper's bank or credit card statement and on the - * shopper receipt. Maximum length: 22 characters; can't be all numbers. + * The store name to be shown on the shopper's bank or credit card statement and on the shopper receipt. Maximum length: 22 characters; can't be all numbers. * - * @param shopperStatement The store name to be shown on the shopper's bank or credit card - * statement and on the shopper receipt. Maximum length: 22 characters; can't be all - * numbers. + * @param shopperStatement The store name to be shown on the shopper's bank or credit card statement and on the shopper receipt. Maximum length: 22 characters; can't be all numbers. * @return the current {@code StoreCreationRequest} instance, allowing for method chaining */ public StoreCreationRequest shopperStatement(String shopperStatement) { @@ -357,12 +287,8 @@ public StoreCreationRequest shopperStatement(String shopperStatement) { } /** - * The store name to be shown on the shopper's bank or credit card statement and on the - * shopper receipt. Maximum length: 22 characters; can't be all numbers. - * - * @return shopperStatement The store name to be shown on the shopper's bank or credit card - * statement and on the shopper receipt. Maximum length: 22 characters; can't be all - * numbers. + * The store name to be shown on the shopper's bank or credit card statement and on the shopper receipt. Maximum length: 22 characters; can't be all numbers. + * @return shopperStatement The store name to be shown on the shopper's bank or credit card statement and on the shopper receipt. Maximum length: 22 characters; can't be all numbers. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -371,12 +297,9 @@ public String getShopperStatement() { } /** - * The store name to be shown on the shopper's bank or credit card statement and on the - * shopper receipt. Maximum length: 22 characters; can't be all numbers. + * The store name to be shown on the shopper's bank or credit card statement and on the shopper receipt. Maximum length: 22 characters; can't be all numbers. * - * @param shopperStatement The store name to be shown on the shopper's bank or credit card - * statement and on the shopper receipt. Maximum length: 22 characters; can't be all - * numbers. + * @param shopperStatement The store name to be shown on the shopper's bank or credit card statement and on the shopper receipt. Maximum length: 22 characters; can't be all numbers. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -387,7 +310,7 @@ public void setShopperStatement(String shopperStatement) { /** * splitConfiguration * - * @param splitConfiguration + * @param splitConfiguration * @return the current {@code StoreCreationRequest} instance, allowing for method chaining */ public StoreCreationRequest splitConfiguration(StoreSplitConfiguration splitConfiguration) { @@ -397,8 +320,7 @@ public StoreCreationRequest splitConfiguration(StoreSplitConfiguration splitConf /** * Get splitConfiguration - * - * @return splitConfiguration + * @return splitConfiguration */ @JsonProperty(JSON_PROPERTY_SPLIT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -409,7 +331,7 @@ public StoreSplitConfiguration getSplitConfiguration() { /** * splitConfiguration * - * @param splitConfiguration + * @param splitConfiguration */ @JsonProperty(JSON_PROPERTY_SPLIT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -420,7 +342,7 @@ public void setSplitConfiguration(StoreSplitConfiguration splitConfiguration) { /** * subMerchantData * - * @param subMerchantData + * @param subMerchantData * @return the current {@code StoreCreationRequest} instance, allowing for method chaining */ public StoreCreationRequest subMerchantData(SubMerchantData subMerchantData) { @@ -430,8 +352,7 @@ public StoreCreationRequest subMerchantData(SubMerchantData subMerchantData) { /** * Get subMerchantData - * - * @return subMerchantData + * @return subMerchantData */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -442,7 +363,7 @@ public SubMerchantData getSubMerchantData() { /** * subMerchantData * - * @param subMerchantData + * @param subMerchantData */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -450,7 +371,9 @@ public void setSubMerchantData(SubMerchantData subMerchantData) { this.subMerchantData = subMerchantData; } - /** Return true if this StoreCreationRequest object is equal to o. */ + /** + * Return true if this StoreCreationRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -460,29 +383,20 @@ public boolean equals(Object o) { return false; } StoreCreationRequest storeCreationRequest = (StoreCreationRequest) o; - return Objects.equals(this.address, storeCreationRequest.address) - && Objects.equals(this.businessLineIds, storeCreationRequest.businessLineIds) - && Objects.equals(this.description, storeCreationRequest.description) - && Objects.equals(this.externalReferenceId, storeCreationRequest.externalReferenceId) - && Objects.equals(this.phoneNumber, storeCreationRequest.phoneNumber) - && Objects.equals(this.reference, storeCreationRequest.reference) - && Objects.equals(this.shopperStatement, storeCreationRequest.shopperStatement) - && Objects.equals(this.splitConfiguration, storeCreationRequest.splitConfiguration) - && Objects.equals(this.subMerchantData, storeCreationRequest.subMerchantData); + return Objects.equals(this.address, storeCreationRequest.address) && + Objects.equals(this.businessLineIds, storeCreationRequest.businessLineIds) && + Objects.equals(this.description, storeCreationRequest.description) && + Objects.equals(this.externalReferenceId, storeCreationRequest.externalReferenceId) && + Objects.equals(this.phoneNumber, storeCreationRequest.phoneNumber) && + Objects.equals(this.reference, storeCreationRequest.reference) && + Objects.equals(this.shopperStatement, storeCreationRequest.shopperStatement) && + Objects.equals(this.splitConfiguration, storeCreationRequest.splitConfiguration) && + Objects.equals(this.subMerchantData, storeCreationRequest.subMerchantData); } @Override public int hashCode() { - return Objects.hash( - address, - businessLineIds, - description, - externalReferenceId, - phoneNumber, - reference, - shopperStatement, - splitConfiguration, - subMerchantData); + return Objects.hash(address, businessLineIds, description, externalReferenceId, phoneNumber, reference, shopperStatement, splitConfiguration, subMerchantData); } @Override @@ -492,9 +406,7 @@ public String toString() { sb.append(" address: ").append(toIndentedString(address)).append("\n"); sb.append(" businessLineIds: ").append(toIndentedString(businessLineIds)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" externalReferenceId: ") - .append(toIndentedString(externalReferenceId)) - .append("\n"); + sb.append(" externalReferenceId: ").append(toIndentedString(externalReferenceId)).append("\n"); sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" shopperStatement: ").append(toIndentedString(shopperStatement)).append("\n"); @@ -505,7 +417,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -514,23 +427,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of StoreCreationRequest given an JSON string * * @param jsonString JSON string * @return An instance of StoreCreationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoreCreationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to StoreCreationRequest */ public static StoreCreationRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoreCreationRequest.class); } - - /** - * Convert an instance of StoreCreationRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of StoreCreationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/StoreCreationWithMerchantCodeRequest.java b/src/main/java/com/adyen/model/management/StoreCreationWithMerchantCodeRequest.java index c7da96180..79708287b 100644 --- a/src/main/java/com/adyen/model/management/StoreCreationWithMerchantCodeRequest.java +++ b/src/main/java/com/adyen/model/management/StoreCreationWithMerchantCodeRequest.java @@ -2,24 +2,36 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.StoreLocation; +import com.adyen.model.management.StoreSplitConfiguration; +import com.adyen.model.management.SubMerchantData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** StoreCreationWithMerchantCodeRequest */ + +/** + * StoreCreationWithMerchantCodeRequest + */ @JsonPropertyOrder({ StoreCreationWithMerchantCodeRequest.JSON_PROPERTY_ADDRESS, StoreCreationWithMerchantCodeRequest.JSON_PROPERTY_BUSINESS_LINE_IDS, @@ -32,6 +44,7 @@ StoreCreationWithMerchantCodeRequest.JSON_PROPERTY_SPLIT_CONFIGURATION, StoreCreationWithMerchantCodeRequest.JSON_PROPERTY_SUB_MERCHANT_DATA }) + public class StoreCreationWithMerchantCodeRequest { public static final String JSON_PROPERTY_ADDRESS = "address"; private StoreLocation address; @@ -63,14 +76,14 @@ public class StoreCreationWithMerchantCodeRequest { public static final String JSON_PROPERTY_SUB_MERCHANT_DATA = "subMerchantData"; private SubMerchantData subMerchantData; - public StoreCreationWithMerchantCodeRequest() {} + public StoreCreationWithMerchantCodeRequest() { + } /** * address * - * @param address - * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method - * chaining + * @param address + * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method chaining */ public StoreCreationWithMerchantCodeRequest address(StoreLocation address) { this.address = address; @@ -79,8 +92,7 @@ public StoreCreationWithMerchantCodeRequest address(StoreLocation address) { /** * Get address - * - * @return address + * @return address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -91,7 +103,7 @@ public StoreLocation getAddress() { /** * address * - * @param address + * @param address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,18 +112,10 @@ public void setAddress(StoreLocation address) { } /** - * The unique identifiers of the [business - * lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) - * that the store is associated with. If not specified, the business line of the merchant account - * is used. Required when there are multiple business lines under the merchant account. + * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. * - * @param businessLineIds The unique identifiers of the [business - * lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) - * that the store is associated with. If not specified, the business line of the merchant - * account is used. Required when there are multiple business lines under the merchant - * account. - * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method - * chaining + * @param businessLineIds The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. + * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method chaining */ public StoreCreationWithMerchantCodeRequest businessLineIds(List businessLineIds) { this.businessLineIds = businessLineIds; @@ -127,16 +131,8 @@ public StoreCreationWithMerchantCodeRequest addBusinessLineIdsItem(String busine } /** - * The unique identifiers of the [business - * lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) - * that the store is associated with. If not specified, the business line of the merchant account - * is used. Required when there are multiple business lines under the merchant account. - * - * @return businessLineIds The unique identifiers of the [business - * lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) - * that the store is associated with. If not specified, the business line of the merchant - * account is used. Required when there are multiple business lines under the merchant - * account. + * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. + * @return businessLineIds The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,16 +141,9 @@ public List getBusinessLineIds() { } /** - * The unique identifiers of the [business - * lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) - * that the store is associated with. If not specified, the business line of the merchant account - * is used. Required when there are multiple business lines under the merchant account. + * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. * - * @param businessLineIds The unique identifiers of the [business - * lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) - * that the store is associated with. If not specified, the business line of the merchant - * account is used. Required when there are multiple business lines under the merchant - * account. + * @param businessLineIds The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -166,8 +155,7 @@ public void setBusinessLineIds(List businessLineIds) { * Your description of the store. * * @param description Your description of the store. - * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method - * chaining + * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method chaining */ public StoreCreationWithMerchantCodeRequest description(String description) { this.description = description; @@ -176,7 +164,6 @@ public StoreCreationWithMerchantCodeRequest description(String description) { /** * Your description of the store. - * * @return description Your description of the store. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -197,17 +184,10 @@ public void setDescription(String description) { } /** - * The unique identifier of the store, used by certain payment methods and tax authorities. - * Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, - * hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip - * in Australia, up to 50 digits. + * The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. * - * @param externalReferenceId The unique identifier of the store, used by certain payment methods - * and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 - * separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, - * up to 14 digits. Optional for Zip in Australia, up to 50 digits. - * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method - * chaining + * @param externalReferenceId The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method chaining */ public StoreCreationWithMerchantCodeRequest externalReferenceId(String externalReferenceId) { this.externalReferenceId = externalReferenceId; @@ -215,15 +195,8 @@ public StoreCreationWithMerchantCodeRequest externalReferenceId(String externalR } /** - * The unique identifier of the store, used by certain payment methods and tax authorities. - * Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, - * hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip - * in Australia, up to 50 digits. - * - * @return externalReferenceId The unique identifier of the store, used by certain payment methods - * and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 - * separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, - * up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * @return externalReferenceId The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. */ @JsonProperty(JSON_PROPERTY_EXTERNAL_REFERENCE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,15 +205,9 @@ public String getExternalReferenceId() { } /** - * The unique identifier of the store, used by certain payment methods and tax authorities. - * Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, - * hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip - * in Australia, up to 50 digits. + * The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. * - * @param externalReferenceId The unique identifier of the store, used by certain payment methods - * and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 - * separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, - * up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * @param externalReferenceId The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. */ @JsonProperty(JSON_PROPERTY_EXTERNAL_REFERENCE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,8 +219,7 @@ public void setExternalReferenceId(String externalReferenceId) { * The unique identifier of the merchant account that the store belongs to. * * @param merchantId The unique identifier of the merchant account that the store belongs to. - * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method - * chaining + * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method chaining */ public StoreCreationWithMerchantCodeRequest merchantId(String merchantId) { this.merchantId = merchantId; @@ -262,7 +228,6 @@ public StoreCreationWithMerchantCodeRequest merchantId(String merchantId) { /** * The unique identifier of the merchant account that the store belongs to. - * * @return merchantId The unique identifier of the merchant account that the store belongs to. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @@ -283,15 +248,10 @@ public void setMerchantId(String merchantId) { } /** - * The phone number of the store, including '+' and country code in the - * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we - * convert and validate the phone number against E.164. + * The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. * - * @param phoneNumber The phone number of the store, including '+' and country code in the - * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we - * convert and validate the phone number against E.164. - * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method - * chaining + * @param phoneNumber The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. + * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method chaining */ public StoreCreationWithMerchantCodeRequest phoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; @@ -299,13 +259,8 @@ public StoreCreationWithMerchantCodeRequest phoneNumber(String phoneNumber) { } /** - * The phone number of the store, including '+' and country code in the - * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we - * convert and validate the phone number against E.164. - * - * @return phoneNumber The phone number of the store, including '+' and country code in - * the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, - * we convert and validate the phone number against E.164. + * The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. + * @return phoneNumber The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -314,13 +269,9 @@ public String getPhoneNumber() { } /** - * The phone number of the store, including '+' and country code in the - * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we - * convert and validate the phone number against E.164. + * The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. * - * @param phoneNumber The phone number of the store, including '+' and country code in the - * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we - * convert and validate the phone number against E.164. + * @param phoneNumber The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -329,19 +280,10 @@ public void setPhoneNumber(String phoneNumber) { } /** - * Your reference to recognize the store by. Also known as the store code. Allowed characters: - * lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and - * underscore (_). If you do not provide a reference in your POST request, it is populated with - * the Adyen-generated - * [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). + * Your reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, it is populated with the Adyen-generated [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). * - * @param reference Your reference to recognize the store by. Also known as the store code. - * Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through - * 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, - * it is populated with the Adyen-generated - * [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). - * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method - * chaining + * @param reference Your reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, it is populated with the Adyen-generated [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). + * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method chaining */ public StoreCreationWithMerchantCodeRequest reference(String reference) { this.reference = reference; @@ -349,17 +291,8 @@ public StoreCreationWithMerchantCodeRequest reference(String reference) { } /** - * Your reference to recognize the store by. Also known as the store code. Allowed characters: - * lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and - * underscore (_). If you do not provide a reference in your POST request, it is populated with - * the Adyen-generated - * [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). - * - * @return reference Your reference to recognize the store by. Also known as the store code. - * Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through - * 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, - * it is populated with the Adyen-generated - * [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). + * Your reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, it is populated with the Adyen-generated [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). + * @return reference Your reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, it is populated with the Adyen-generated [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -368,17 +301,9 @@ public String getReference() { } /** - * Your reference to recognize the store by. Also known as the store code. Allowed characters: - * lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and - * underscore (_). If you do not provide a reference in your POST request, it is populated with - * the Adyen-generated - * [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). + * Your reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, it is populated with the Adyen-generated [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). * - * @param reference Your reference to recognize the store by. Also known as the store code. - * Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through - * 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, - * it is populated with the Adyen-generated - * [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). + * @param reference Your reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, it is populated with the Adyen-generated [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -387,14 +312,10 @@ public void setReference(String reference) { } /** - * The store name to be shown on the shopper's bank or credit card statement and on the - * shopper receipt. Maximum length: 22 characters; can't be all numbers. + * The store name to be shown on the shopper's bank or credit card statement and on the shopper receipt. Maximum length: 22 characters; can't be all numbers. * - * @param shopperStatement The store name to be shown on the shopper's bank or credit card - * statement and on the shopper receipt. Maximum length: 22 characters; can't be all - * numbers. - * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method - * chaining + * @param shopperStatement The store name to be shown on the shopper's bank or credit card statement and on the shopper receipt. Maximum length: 22 characters; can't be all numbers. + * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method chaining */ public StoreCreationWithMerchantCodeRequest shopperStatement(String shopperStatement) { this.shopperStatement = shopperStatement; @@ -402,12 +323,8 @@ public StoreCreationWithMerchantCodeRequest shopperStatement(String shopperState } /** - * The store name to be shown on the shopper's bank or credit card statement and on the - * shopper receipt. Maximum length: 22 characters; can't be all numbers. - * - * @return shopperStatement The store name to be shown on the shopper's bank or credit card - * statement and on the shopper receipt. Maximum length: 22 characters; can't be all - * numbers. + * The store name to be shown on the shopper's bank or credit card statement and on the shopper receipt. Maximum length: 22 characters; can't be all numbers. + * @return shopperStatement The store name to be shown on the shopper's bank or credit card statement and on the shopper receipt. Maximum length: 22 characters; can't be all numbers. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -416,12 +333,9 @@ public String getShopperStatement() { } /** - * The store name to be shown on the shopper's bank or credit card statement and on the - * shopper receipt. Maximum length: 22 characters; can't be all numbers. + * The store name to be shown on the shopper's bank or credit card statement and on the shopper receipt. Maximum length: 22 characters; can't be all numbers. * - * @param shopperStatement The store name to be shown on the shopper's bank or credit card - * statement and on the shopper receipt. Maximum length: 22 characters; can't be all - * numbers. + * @param shopperStatement The store name to be shown on the shopper's bank or credit card statement and on the shopper receipt. Maximum length: 22 characters; can't be all numbers. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -432,20 +346,17 @@ public void setShopperStatement(String shopperStatement) { /** * splitConfiguration * - * @param splitConfiguration - * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method - * chaining + * @param splitConfiguration + * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method chaining */ - public StoreCreationWithMerchantCodeRequest splitConfiguration( - StoreSplitConfiguration splitConfiguration) { + public StoreCreationWithMerchantCodeRequest splitConfiguration(StoreSplitConfiguration splitConfiguration) { this.splitConfiguration = splitConfiguration; return this; } /** * Get splitConfiguration - * - * @return splitConfiguration + * @return splitConfiguration */ @JsonProperty(JSON_PROPERTY_SPLIT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -456,7 +367,7 @@ public StoreSplitConfiguration getSplitConfiguration() { /** * splitConfiguration * - * @param splitConfiguration + * @param splitConfiguration */ @JsonProperty(JSON_PROPERTY_SPLIT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -467,9 +378,8 @@ public void setSplitConfiguration(StoreSplitConfiguration splitConfiguration) { /** * subMerchantData * - * @param subMerchantData - * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method - * chaining + * @param subMerchantData + * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method chaining */ public StoreCreationWithMerchantCodeRequest subMerchantData(SubMerchantData subMerchantData) { this.subMerchantData = subMerchantData; @@ -478,8 +388,7 @@ public StoreCreationWithMerchantCodeRequest subMerchantData(SubMerchantData subM /** * Get subMerchantData - * - * @return subMerchantData + * @return subMerchantData */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -490,7 +399,7 @@ public SubMerchantData getSubMerchantData() { /** * subMerchantData * - * @param subMerchantData + * @param subMerchantData */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -498,7 +407,9 @@ public void setSubMerchantData(SubMerchantData subMerchantData) { this.subMerchantData = subMerchantData; } - /** Return true if this StoreCreationWithMerchantCodeRequest object is equal to o. */ + /** + * Return true if this StoreCreationWithMerchantCodeRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -507,38 +418,22 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - StoreCreationWithMerchantCodeRequest storeCreationWithMerchantCodeRequest = - (StoreCreationWithMerchantCodeRequest) o; - return Objects.equals(this.address, storeCreationWithMerchantCodeRequest.address) - && Objects.equals( - this.businessLineIds, storeCreationWithMerchantCodeRequest.businessLineIds) - && Objects.equals(this.description, storeCreationWithMerchantCodeRequest.description) - && Objects.equals( - this.externalReferenceId, storeCreationWithMerchantCodeRequest.externalReferenceId) - && Objects.equals(this.merchantId, storeCreationWithMerchantCodeRequest.merchantId) - && Objects.equals(this.phoneNumber, storeCreationWithMerchantCodeRequest.phoneNumber) - && Objects.equals(this.reference, storeCreationWithMerchantCodeRequest.reference) - && Objects.equals( - this.shopperStatement, storeCreationWithMerchantCodeRequest.shopperStatement) - && Objects.equals( - this.splitConfiguration, storeCreationWithMerchantCodeRequest.splitConfiguration) - && Objects.equals( - this.subMerchantData, storeCreationWithMerchantCodeRequest.subMerchantData); + StoreCreationWithMerchantCodeRequest storeCreationWithMerchantCodeRequest = (StoreCreationWithMerchantCodeRequest) o; + return Objects.equals(this.address, storeCreationWithMerchantCodeRequest.address) && + Objects.equals(this.businessLineIds, storeCreationWithMerchantCodeRequest.businessLineIds) && + Objects.equals(this.description, storeCreationWithMerchantCodeRequest.description) && + Objects.equals(this.externalReferenceId, storeCreationWithMerchantCodeRequest.externalReferenceId) && + Objects.equals(this.merchantId, storeCreationWithMerchantCodeRequest.merchantId) && + Objects.equals(this.phoneNumber, storeCreationWithMerchantCodeRequest.phoneNumber) && + Objects.equals(this.reference, storeCreationWithMerchantCodeRequest.reference) && + Objects.equals(this.shopperStatement, storeCreationWithMerchantCodeRequest.shopperStatement) && + Objects.equals(this.splitConfiguration, storeCreationWithMerchantCodeRequest.splitConfiguration) && + Objects.equals(this.subMerchantData, storeCreationWithMerchantCodeRequest.subMerchantData); } @Override public int hashCode() { - return Objects.hash( - address, - businessLineIds, - description, - externalReferenceId, - merchantId, - phoneNumber, - reference, - shopperStatement, - splitConfiguration, - subMerchantData); + return Objects.hash(address, businessLineIds, description, externalReferenceId, merchantId, phoneNumber, reference, shopperStatement, splitConfiguration, subMerchantData); } @Override @@ -548,9 +443,7 @@ public String toString() { sb.append(" address: ").append(toIndentedString(address)).append("\n"); sb.append(" businessLineIds: ").append(toIndentedString(businessLineIds)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" externalReferenceId: ") - .append(toIndentedString(externalReferenceId)) - .append("\n"); + sb.append(" externalReferenceId: ").append(toIndentedString(externalReferenceId)).append("\n"); sb.append(" merchantId: ").append(toIndentedString(merchantId)).append("\n"); sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); @@ -562,7 +455,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -571,24 +465,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of StoreCreationWithMerchantCodeRequest given an JSON string * * @param jsonString JSON string * @return An instance of StoreCreationWithMerchantCodeRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoreCreationWithMerchantCodeRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to StoreCreationWithMerchantCodeRequest */ - public static StoreCreationWithMerchantCodeRequest fromJson(String jsonString) - throws JsonProcessingException { + public static StoreCreationWithMerchantCodeRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoreCreationWithMerchantCodeRequest.class); } - - /** - * Convert an instance of StoreCreationWithMerchantCodeRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of StoreCreationWithMerchantCodeRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/StoreLocation.java b/src/main/java/com/adyen/model/management/StoreLocation.java index 68b53dfd6..aea8d4a5e 100644 --- a/src/main/java/com/adyen/model/management/StoreLocation.java +++ b/src/main/java/com/adyen/model/management/StoreLocation.java @@ -2,22 +2,31 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** StoreLocation */ + +/** + * StoreLocation + */ @JsonPropertyOrder({ StoreLocation.JSON_PROPERTY_CITY, StoreLocation.JSON_PROPERTY_COUNTRY, @@ -27,6 +36,7 @@ StoreLocation.JSON_PROPERTY_POSTAL_CODE, StoreLocation.JSON_PROPERTY_STATE_OR_PROVINCE }) + public class StoreLocation { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -49,7 +59,8 @@ public class StoreLocation { public static final String JSON_PROPERTY_STATE_OR_PROVINCE = "stateOrProvince"; private String stateOrProvince; - public StoreLocation() {} + public StoreLocation() { + } /** * The name of the city. @@ -64,7 +75,6 @@ public StoreLocation city(String city) { /** * The name of the city. - * * @return city The name of the city. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -85,11 +95,9 @@ public void setCity(String city) { } /** - * The two-letter country code in - * [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. + * The two-letter country code in [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * - * @param country The two-letter country code in - * [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. + * @param country The two-letter country code in [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * @return the current {@code StoreLocation} instance, allowing for method chaining */ public StoreLocation country(String country) { @@ -98,11 +106,8 @@ public StoreLocation country(String country) { } /** - * The two-letter country code in - * [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. - * - * @return country The two-letter country code in - * [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. + * The two-letter country code in [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. + * @return country The two-letter country code in [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,11 +116,9 @@ public String getCountry() { } /** - * The two-letter country code in - * [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. + * The two-letter country code in [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * - * @param country The two-letter country code in - * [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. + * @param country The two-letter country code in [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,7 +139,6 @@ public StoreLocation line1(String line1) { /** * The street address. - * * @return line1 The street address. */ @JsonProperty(JSON_PROPERTY_LINE1) @@ -169,7 +171,6 @@ public StoreLocation line2(String line2) { /** * Second address line. - * * @return line2 Second address line. */ @JsonProperty(JSON_PROPERTY_LINE2) @@ -202,7 +203,6 @@ public StoreLocation line3(String line3) { /** * Third address line. - * * @return line3 Third address line. */ @JsonProperty(JSON_PROPERTY_LINE3) @@ -235,7 +235,6 @@ public StoreLocation postalCode(String postalCode) { /** * The postal code. - * * @return postalCode The postal code. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @@ -256,14 +255,9 @@ public void setPostalCode(String postalCode) { } /** - * The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). - * For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - - * Brazil - Canada - India - Mexico - New Zealand - United States + * The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States * - * @param stateOrProvince The state or province code as defined in [ISO - * 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. - * Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New - * Zealand - United States + * @param stateOrProvince The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States * @return the current {@code StoreLocation} instance, allowing for method chaining */ public StoreLocation stateOrProvince(String stateOrProvince) { @@ -272,14 +266,8 @@ public StoreLocation stateOrProvince(String stateOrProvince) { } /** - * The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). - * For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - - * Brazil - Canada - India - Mexico - New Zealand - United States - * - * @return stateOrProvince The state or province code as defined in [ISO - * 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. - * Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New - * Zealand - United States + * The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States + * @return stateOrProvince The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -288,14 +276,9 @@ public String getStateOrProvince() { } /** - * The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). - * For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - - * Brazil - Canada - India - Mexico - New Zealand - United States + * The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States * - * @param stateOrProvince The state or province code as defined in [ISO - * 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. - * Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New - * Zealand - United States + * @param stateOrProvince The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -303,7 +286,9 @@ public void setStateOrProvince(String stateOrProvince) { this.stateOrProvince = stateOrProvince; } - /** Return true if this StoreLocation object is equal to o. */ + /** + * Return true if this StoreLocation object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -313,13 +298,13 @@ public boolean equals(Object o) { return false; } StoreLocation storeLocation = (StoreLocation) o; - return Objects.equals(this.city, storeLocation.city) - && Objects.equals(this.country, storeLocation.country) - && Objects.equals(this.line1, storeLocation.line1) - && Objects.equals(this.line2, storeLocation.line2) - && Objects.equals(this.line3, storeLocation.line3) - && Objects.equals(this.postalCode, storeLocation.postalCode) - && Objects.equals(this.stateOrProvince, storeLocation.stateOrProvince); + return Objects.equals(this.city, storeLocation.city) && + Objects.equals(this.country, storeLocation.country) && + Objects.equals(this.line1, storeLocation.line1) && + Objects.equals(this.line2, storeLocation.line2) && + Objects.equals(this.line3, storeLocation.line3) && + Objects.equals(this.postalCode, storeLocation.postalCode) && + Objects.equals(this.stateOrProvince, storeLocation.stateOrProvince); } @Override @@ -343,7 +328,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -352,7 +338,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of StoreLocation given an JSON string * * @param jsonString JSON string @@ -362,12 +348,11 @@ private String toIndentedString(Object o) { public static StoreLocation fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoreLocation.class); } - - /** - * Convert an instance of StoreLocation to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of StoreLocation to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/StoreSplitConfiguration.java b/src/main/java/com/adyen/model/management/StoreSplitConfiguration.java index f3d476d77..5058491be 100644 --- a/src/main/java/com/adyen/model/management/StoreSplitConfiguration.java +++ b/src/main/java/com/adyen/model/management/StoreSplitConfiguration.java @@ -2,26 +2,36 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** StoreSplitConfiguration */ + +/** + * StoreSplitConfiguration + */ @JsonPropertyOrder({ StoreSplitConfiguration.JSON_PROPERTY_BALANCE_ACCOUNT_ID, StoreSplitConfiguration.JSON_PROPERTY_SPLIT_CONFIGURATION_ID }) + public class StoreSplitConfiguration { public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; @@ -29,18 +39,13 @@ public class StoreSplitConfiguration { public static final String JSON_PROPERTY_SPLIT_CONFIGURATION_ID = "splitConfigurationId"; private String splitConfigurationId; - public StoreSplitConfiguration() {} + public StoreSplitConfiguration() { + } /** - * The [unique identifier of the balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id) - * to which the split amount must be booked, depending on the defined [split - * logic](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/_merchantId_/splitConfigurations#request-rules-splitLogic). + * The [unique identifier of the balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id) to which the split amount must be booked, depending on the defined [split logic](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/_merchantId_/splitConfigurations#request-rules-splitLogic). * - * @param balanceAccountId The [unique identifier of the balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id) - * to which the split amount must be booked, depending on the defined [split - * logic](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/_merchantId_/splitConfigurations#request-rules-splitLogic). + * @param balanceAccountId The [unique identifier of the balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id) to which the split amount must be booked, depending on the defined [split logic](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/_merchantId_/splitConfigurations#request-rules-splitLogic). * @return the current {@code StoreSplitConfiguration} instance, allowing for method chaining */ public StoreSplitConfiguration balanceAccountId(String balanceAccountId) { @@ -49,15 +54,8 @@ public StoreSplitConfiguration balanceAccountId(String balanceAccountId) { } /** - * The [unique identifier of the balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id) - * to which the split amount must be booked, depending on the defined [split - * logic](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/_merchantId_/splitConfigurations#request-rules-splitLogic). - * - * @return balanceAccountId The [unique identifier of the balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id) - * to which the split amount must be booked, depending on the defined [split - * logic](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/_merchantId_/splitConfigurations#request-rules-splitLogic). + * The [unique identifier of the balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id) to which the split amount must be booked, depending on the defined [split logic](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/_merchantId_/splitConfigurations#request-rules-splitLogic). + * @return balanceAccountId The [unique identifier of the balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id) to which the split amount must be booked, depending on the defined [split logic](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/_merchantId_/splitConfigurations#request-rules-splitLogic). */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -66,15 +64,9 @@ public String getBalanceAccountId() { } /** - * The [unique identifier of the balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id) - * to which the split amount must be booked, depending on the defined [split - * logic](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/_merchantId_/splitConfigurations#request-rules-splitLogic). + * The [unique identifier of the balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id) to which the split amount must be booked, depending on the defined [split logic](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/_merchantId_/splitConfigurations#request-rules-splitLogic). * - * @param balanceAccountId The [unique identifier of the balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id) - * to which the split amount must be booked, depending on the defined [split - * logic](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/_merchantId_/splitConfigurations#request-rules-splitLogic). + * @param balanceAccountId The [unique identifier of the balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id) to which the split amount must be booked, depending on the defined [split logic](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/_merchantId_/splitConfigurations#request-rules-splitLogic). */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,11 +75,9 @@ public void setBalanceAccountId(String balanceAccountId) { } /** - * The unique identifier of the [split configuration - * profile](https://docs.adyen.com/platforms/automatic-split-configuration/create-split-configuration/). + * The unique identifier of the [split configuration profile](https://docs.adyen.com/platforms/automatic-split-configuration/create-split-configuration/). * - * @param splitConfigurationId The unique identifier of the [split configuration - * profile](https://docs.adyen.com/platforms/automatic-split-configuration/create-split-configuration/). + * @param splitConfigurationId The unique identifier of the [split configuration profile](https://docs.adyen.com/platforms/automatic-split-configuration/create-split-configuration/). * @return the current {@code StoreSplitConfiguration} instance, allowing for method chaining */ public StoreSplitConfiguration splitConfigurationId(String splitConfigurationId) { @@ -96,11 +86,8 @@ public StoreSplitConfiguration splitConfigurationId(String splitConfigurationId) } /** - * The unique identifier of the [split configuration - * profile](https://docs.adyen.com/platforms/automatic-split-configuration/create-split-configuration/). - * - * @return splitConfigurationId The unique identifier of the [split configuration - * profile](https://docs.adyen.com/platforms/automatic-split-configuration/create-split-configuration/). + * The unique identifier of the [split configuration profile](https://docs.adyen.com/platforms/automatic-split-configuration/create-split-configuration/). + * @return splitConfigurationId The unique identifier of the [split configuration profile](https://docs.adyen.com/platforms/automatic-split-configuration/create-split-configuration/). */ @JsonProperty(JSON_PROPERTY_SPLIT_CONFIGURATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -109,11 +96,9 @@ public String getSplitConfigurationId() { } /** - * The unique identifier of the [split configuration - * profile](https://docs.adyen.com/platforms/automatic-split-configuration/create-split-configuration/). + * The unique identifier of the [split configuration profile](https://docs.adyen.com/platforms/automatic-split-configuration/create-split-configuration/). * - * @param splitConfigurationId The unique identifier of the [split configuration - * profile](https://docs.adyen.com/platforms/automatic-split-configuration/create-split-configuration/). + * @param splitConfigurationId The unique identifier of the [split configuration profile](https://docs.adyen.com/platforms/automatic-split-configuration/create-split-configuration/). */ @JsonProperty(JSON_PROPERTY_SPLIT_CONFIGURATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,7 +106,9 @@ public void setSplitConfigurationId(String splitConfigurationId) { this.splitConfigurationId = splitConfigurationId; } - /** Return true if this StoreSplitConfiguration object is equal to o. */ + /** + * Return true if this StoreSplitConfiguration object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -131,8 +118,8 @@ public boolean equals(Object o) { return false; } StoreSplitConfiguration storeSplitConfiguration = (StoreSplitConfiguration) o; - return Objects.equals(this.balanceAccountId, storeSplitConfiguration.balanceAccountId) - && Objects.equals(this.splitConfigurationId, storeSplitConfiguration.splitConfigurationId); + return Objects.equals(this.balanceAccountId, storeSplitConfiguration.balanceAccountId) && + Objects.equals(this.splitConfigurationId, storeSplitConfiguration.splitConfigurationId); } @Override @@ -145,15 +132,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class StoreSplitConfiguration {\n"); sb.append(" balanceAccountId: ").append(toIndentedString(balanceAccountId)).append("\n"); - sb.append(" splitConfigurationId: ") - .append(toIndentedString(splitConfigurationId)) - .append("\n"); + sb.append(" splitConfigurationId: ").append(toIndentedString(splitConfigurationId)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -162,23 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of StoreSplitConfiguration given an JSON string * * @param jsonString JSON string * @return An instance of StoreSplitConfiguration - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoreSplitConfiguration + * @throws JsonProcessingException if the JSON string is invalid with respect to StoreSplitConfiguration */ public static StoreSplitConfiguration fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoreSplitConfiguration.class); } - - /** - * Convert an instance of StoreSplitConfiguration to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of StoreSplitConfiguration to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/SubMerchantData.java b/src/main/java/com/adyen/model/management/SubMerchantData.java index de743136a..d2f2e87b2 100644 --- a/src/main/java/com/adyen/model/management/SubMerchantData.java +++ b/src/main/java/com/adyen/model/management/SubMerchantData.java @@ -2,28 +2,38 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** SubMerchantData */ + +/** + * SubMerchantData + */ @JsonPropertyOrder({ SubMerchantData.JSON_PROPERTY_EMAIL, SubMerchantData.JSON_PROPERTY_ID, SubMerchantData.JSON_PROPERTY_MCC, SubMerchantData.JSON_PROPERTY_NAME }) + public class SubMerchantData { public static final String JSON_PROPERTY_EMAIL = "email"; private String email; @@ -37,7 +47,8 @@ public class SubMerchantData { public static final String JSON_PROPERTY_NAME = "name"; private String name; - public SubMerchantData() {} + public SubMerchantData() { + } /** * The email associated with the sub-merchant's account. @@ -52,7 +63,6 @@ public SubMerchantData email(String email) { /** * The email associated with the sub-merchant's account. - * * @return email The email associated with the sub-merchant's account. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -73,11 +83,9 @@ public void setEmail(String email) { } /** - * A unique identifier that you create for the sub-merchant, used by schemes to identify the - * sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters * - * @param id A unique identifier that you create for the sub-merchant, used by schemes to identify - * the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * @param id A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters * @return the current {@code SubMerchantData} instance, allowing for method chaining */ public SubMerchantData id(String id) { @@ -86,11 +94,8 @@ public SubMerchantData id(String id) { } /** - * A unique identifier that you create for the sub-merchant, used by schemes to identify the - * sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters - * - * @return id A unique identifier that you create for the sub-merchant, used by schemes to - * identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * @return id A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,11 +104,9 @@ public String getId() { } /** - * A unique identifier that you create for the sub-merchant, used by schemes to identify the - * sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters * - * @param id A unique identifier that you create for the sub-merchant, used by schemes to identify - * the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * @param id A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,11 +115,9 @@ public void setId(String id) { } /** - * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: - * 4 digits + * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits * - * @param mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * - * Fixed length: 4 digits + * @param mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits * @return the current {@code SubMerchantData} instance, allowing for method chaining */ public SubMerchantData mcc(String mcc) { @@ -125,11 +126,8 @@ public SubMerchantData mcc(String mcc) { } /** - * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: - * 4 digits - * - * @return mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * - * Fixed length: 4 digits + * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * @return mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,11 +136,9 @@ public String getMcc() { } /** - * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: - * 4 digits + * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits * - * @param mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * - * Fixed length: 4 digits + * @param mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,13 +147,9 @@ public void setMcc(String mcc) { } /** - * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the - * shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum - * length: 22 characters + * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters * - * @param name The name of the sub-merchant. Based on scheme specifications, this value will - * overwrite the shopper statement that will appear in the card statement. * Format: - * Alphanumeric * Maximum length: 22 characters + * @param name The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters * @return the current {@code SubMerchantData} instance, allowing for method chaining */ public SubMerchantData name(String name) { @@ -166,13 +158,8 @@ public SubMerchantData name(String name) { } /** - * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the - * shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum - * length: 22 characters - * - * @return name The name of the sub-merchant. Based on scheme specifications, this value will - * overwrite the shopper statement that will appear in the card statement. * Format: - * Alphanumeric * Maximum length: 22 characters + * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters + * @return name The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,13 +168,9 @@ public String getName() { } /** - * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the - * shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum - * length: 22 characters + * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters * - * @param name The name of the sub-merchant. Based on scheme specifications, this value will - * overwrite the shopper statement that will appear in the card statement. * Format: - * Alphanumeric * Maximum length: 22 characters + * @param name The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,7 +178,9 @@ public void setName(String name) { this.name = name; } - /** Return true if this SubMerchantData object is equal to o. */ + /** + * Return true if this SubMerchantData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -205,10 +190,10 @@ public boolean equals(Object o) { return false; } SubMerchantData subMerchantData = (SubMerchantData) o; - return Objects.equals(this.email, subMerchantData.email) - && Objects.equals(this.id, subMerchantData.id) - && Objects.equals(this.mcc, subMerchantData.mcc) - && Objects.equals(this.name, subMerchantData.name); + return Objects.equals(this.email, subMerchantData.email) && + Objects.equals(this.id, subMerchantData.id) && + Objects.equals(this.mcc, subMerchantData.mcc) && + Objects.equals(this.name, subMerchantData.name); } @Override @@ -229,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -238,7 +224,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SubMerchantData given an JSON string * * @param jsonString JSON string @@ -248,12 +234,11 @@ private String toIndentedString(Object o) { public static SubMerchantData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SubMerchantData.class); } - - /** - * Convert an instance of SubMerchantData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SubMerchantData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/SupportedCardTypes.java b/src/main/java/com/adyen/model/management/SupportedCardTypes.java index aa68bebf3..aff11a06b 100644 --- a/src/main/java/com/adyen/model/management/SupportedCardTypes.java +++ b/src/main/java/com/adyen/model/management/SupportedCardTypes.java @@ -2,22 +2,31 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** SupportedCardTypes */ + +/** + * SupportedCardTypes + */ @JsonPropertyOrder({ SupportedCardTypes.JSON_PROPERTY_CREDIT, SupportedCardTypes.JSON_PROPERTY_DEBIT, @@ -25,6 +34,7 @@ SupportedCardTypes.JSON_PROPERTY_PREPAID, SupportedCardTypes.JSON_PROPERTY_UNKNOWN }) + public class SupportedCardTypes { public static final String JSON_PROPERTY_CREDIT = "credit"; private Boolean credit; @@ -41,7 +51,8 @@ public class SupportedCardTypes { public static final String JSON_PROPERTY_UNKNOWN = "unknown"; private Boolean unknown; - public SupportedCardTypes() {} + public SupportedCardTypes() { + } /** * Set to **true** to accept credit cards. @@ -56,7 +67,6 @@ public SupportedCardTypes credit(Boolean credit) { /** * Set to **true** to accept credit cards. - * * @return credit Set to **true** to accept credit cards. */ @JsonProperty(JSON_PROPERTY_CREDIT) @@ -89,7 +99,6 @@ public SupportedCardTypes debit(Boolean debit) { /** * Set to **true** to accept debit cards. - * * @return debit Set to **true** to accept debit cards. */ @JsonProperty(JSON_PROPERTY_DEBIT) @@ -122,7 +131,6 @@ public SupportedCardTypes deferredDebit(Boolean deferredDebit) { /** * Set to **true** to accept cards that allow deferred debit. - * * @return deferredDebit Set to **true** to accept cards that allow deferred debit. */ @JsonProperty(JSON_PROPERTY_DEFERRED_DEBIT) @@ -155,7 +163,6 @@ public SupportedCardTypes prepaid(Boolean prepaid) { /** * Set to **true** to accept prepaid cards. - * * @return prepaid Set to **true** to accept prepaid cards. */ @JsonProperty(JSON_PROPERTY_PREPAID) @@ -176,11 +183,9 @@ public void setPrepaid(Boolean prepaid) { } /** - * Set to **true** to accept card types for which the terminal can't determine the funding - * source while offline. + * Set to **true** to accept card types for which the terminal can't determine the funding source while offline. * - * @param unknown Set to **true** to accept card types for which the terminal can't determine - * the funding source while offline. + * @param unknown Set to **true** to accept card types for which the terminal can't determine the funding source while offline. * @return the current {@code SupportedCardTypes} instance, allowing for method chaining */ public SupportedCardTypes unknown(Boolean unknown) { @@ -189,11 +194,8 @@ public SupportedCardTypes unknown(Boolean unknown) { } /** - * Set to **true** to accept card types for which the terminal can't determine the funding - * source while offline. - * - * @return unknown Set to **true** to accept card types for which the terminal can't determine - * the funding source while offline. + * Set to **true** to accept card types for which the terminal can't determine the funding source while offline. + * @return unknown Set to **true** to accept card types for which the terminal can't determine the funding source while offline. */ @JsonProperty(JSON_PROPERTY_UNKNOWN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -202,11 +204,9 @@ public Boolean getUnknown() { } /** - * Set to **true** to accept card types for which the terminal can't determine the funding - * source while offline. + * Set to **true** to accept card types for which the terminal can't determine the funding source while offline. * - * @param unknown Set to **true** to accept card types for which the terminal can't determine - * the funding source while offline. + * @param unknown Set to **true** to accept card types for which the terminal can't determine the funding source while offline. */ @JsonProperty(JSON_PROPERTY_UNKNOWN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,7 +214,9 @@ public void setUnknown(Boolean unknown) { this.unknown = unknown; } - /** Return true if this SupportedCardTypes object is equal to o. */ + /** + * Return true if this SupportedCardTypes object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -224,11 +226,11 @@ public boolean equals(Object o) { return false; } SupportedCardTypes supportedCardTypes = (SupportedCardTypes) o; - return Objects.equals(this.credit, supportedCardTypes.credit) - && Objects.equals(this.debit, supportedCardTypes.debit) - && Objects.equals(this.deferredDebit, supportedCardTypes.deferredDebit) - && Objects.equals(this.prepaid, supportedCardTypes.prepaid) - && Objects.equals(this.unknown, supportedCardTypes.unknown); + return Objects.equals(this.credit, supportedCardTypes.credit) && + Objects.equals(this.debit, supportedCardTypes.debit) && + Objects.equals(this.deferredDebit, supportedCardTypes.deferredDebit) && + Objects.equals(this.prepaid, supportedCardTypes.prepaid) && + Objects.equals(this.unknown, supportedCardTypes.unknown); } @Override @@ -250,7 +252,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -259,23 +262,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SupportedCardTypes given an JSON string * * @param jsonString JSON string * @return An instance of SupportedCardTypes - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SupportedCardTypes + * @throws JsonProcessingException if the JSON string is invalid with respect to SupportedCardTypes */ public static SupportedCardTypes fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SupportedCardTypes.class); } - - /** - * Convert an instance of SupportedCardTypes to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SupportedCardTypes to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Surcharge.java b/src/main/java/com/adyen/model/management/Surcharge.java index 8f92c3f25..237cf0f34 100644 --- a/src/main/java/com/adyen/model/management/Surcharge.java +++ b/src/main/java/com/adyen/model/management/Surcharge.java @@ -2,29 +2,40 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.ModelConfiguration; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** Surcharge */ +/** + * Surcharge + */ @JsonPropertyOrder({ Surcharge.JSON_PROPERTY_ASK_CONFIRMATION, Surcharge.JSON_PROPERTY_CONFIGURATIONS, Surcharge.JSON_PROPERTY_EXCLUDE_GRATUITY_FROM_SURCHARGE }) + public class Surcharge { public static final String JSON_PROPERTY_ASK_CONFIRMATION = "askConfirmation"; private Boolean askConfirmation; @@ -32,11 +43,11 @@ public class Surcharge { public static final String JSON_PROPERTY_CONFIGURATIONS = "configurations"; private List configurations; - public static final String JSON_PROPERTY_EXCLUDE_GRATUITY_FROM_SURCHARGE = - "excludeGratuityFromSurcharge"; + public static final String JSON_PROPERTY_EXCLUDE_GRATUITY_FROM_SURCHARGE = "excludeGratuityFromSurcharge"; private Boolean excludeGratuityFromSurcharge; - public Surcharge() {} + public Surcharge() { + } /** * Show the surcharge details on the terminal, so the shopper can confirm. @@ -51,7 +62,6 @@ public Surcharge askConfirmation(Boolean askConfirmation) { /** * Show the surcharge details on the terminal, so the shopper can confirm. - * * @return askConfirmation Show the surcharge details on the terminal, so the shopper can confirm. */ @JsonProperty(JSON_PROPERTY_ASK_CONFIRMATION) @@ -72,11 +82,9 @@ public void setAskConfirmation(Boolean askConfirmation) { } /** - * Surcharge fees or percentages for specific cards, funding sources (credit or debit), and - * currencies. + * Surcharge fees or percentages for specific cards, funding sources (credit or debit), and currencies. * - * @param configurations Surcharge fees or percentages for specific cards, funding sources (credit - * or debit), and currencies. + * @param configurations Surcharge fees or percentages for specific cards, funding sources (credit or debit), and currencies. * @return the current {@code Surcharge} instance, allowing for method chaining */ public Surcharge configurations(List configurations) { @@ -93,11 +101,8 @@ public Surcharge addConfigurationsItem(ModelConfiguration configurationsItem) { } /** - * Surcharge fees or percentages for specific cards, funding sources (credit or debit), and - * currencies. - * - * @return configurations Surcharge fees or percentages for specific cards, funding sources - * (credit or debit), and currencies. + * Surcharge fees or percentages for specific cards, funding sources (credit or debit), and currencies. + * @return configurations Surcharge fees or percentages for specific cards, funding sources (credit or debit), and currencies. */ @JsonProperty(JSON_PROPERTY_CONFIGURATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,11 +111,9 @@ public List getConfigurations() { } /** - * Surcharge fees or percentages for specific cards, funding sources (credit or debit), and - * currencies. + * Surcharge fees or percentages for specific cards, funding sources (credit or debit), and currencies. * - * @param configurations Surcharge fees or percentages for specific cards, funding sources (credit - * or debit), and currencies. + * @param configurations Surcharge fees or percentages for specific cards, funding sources (credit or debit), and currencies. */ @JsonProperty(JSON_PROPERTY_CONFIGURATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -131,7 +134,6 @@ public Surcharge excludeGratuityFromSurcharge(Boolean excludeGratuityFromSurchar /** * Exclude the tip amount from the surcharge calculation. - * * @return excludeGratuityFromSurcharge Exclude the tip amount from the surcharge calculation. */ @JsonProperty(JSON_PROPERTY_EXCLUDE_GRATUITY_FROM_SURCHARGE) @@ -151,7 +153,9 @@ public void setExcludeGratuityFromSurcharge(Boolean excludeGratuityFromSurcharge this.excludeGratuityFromSurcharge = excludeGratuityFromSurcharge; } - /** Return true if this Surcharge object is equal to o. */ + /** + * Return true if this Surcharge object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -161,10 +165,9 @@ public boolean equals(Object o) { return false; } Surcharge surcharge = (Surcharge) o; - return Objects.equals(this.askConfirmation, surcharge.askConfirmation) - && Objects.equals(this.configurations, surcharge.configurations) - && Objects.equals( - this.excludeGratuityFromSurcharge, surcharge.excludeGratuityFromSurcharge); + return Objects.equals(this.askConfirmation, surcharge.askConfirmation) && + Objects.equals(this.configurations, surcharge.configurations) && + Objects.equals(this.excludeGratuityFromSurcharge, surcharge.excludeGratuityFromSurcharge); } @Override @@ -178,15 +181,14 @@ public String toString() { sb.append("class Surcharge {\n"); sb.append(" askConfirmation: ").append(toIndentedString(askConfirmation)).append("\n"); sb.append(" configurations: ").append(toIndentedString(configurations)).append("\n"); - sb.append(" excludeGratuityFromSurcharge: ") - .append(toIndentedString(excludeGratuityFromSurcharge)) - .append("\n"); + sb.append(" excludeGratuityFromSurcharge: ").append(toIndentedString(excludeGratuityFromSurcharge)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -195,7 +197,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Surcharge given an JSON string * * @param jsonString JSON string @@ -205,12 +207,11 @@ private String toIndentedString(Object o) { public static Surcharge fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Surcharge.class); } - - /** - * Convert an instance of Surcharge to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Surcharge to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/SwishInfo.java b/src/main/java/com/adyen/model/management/SwishInfo.java index 332c6f76c..cbbd192e3 100644 --- a/src/main/java/com/adyen/model/management/SwishInfo.java +++ b/src/main/java/com/adyen/model/management/SwishInfo.java @@ -2,28 +2,41 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** SwishInfo */ -@JsonPropertyOrder({SwishInfo.JSON_PROPERTY_SWISH_NUMBER}) + +/** + * SwishInfo + */ +@JsonPropertyOrder({ + SwishInfo.JSON_PROPERTY_SWISH_NUMBER +}) + public class SwishInfo { public static final String JSON_PROPERTY_SWISH_NUMBER = "swishNumber"; private String swishNumber; - public SwishInfo() {} + public SwishInfo() { + } /** * Swish number. Format: 10 digits without spaces. For example, **1231111111**. @@ -38,9 +51,7 @@ public SwishInfo swishNumber(String swishNumber) { /** * Swish number. Format: 10 digits without spaces. For example, **1231111111**. - * - * @return swishNumber Swish number. Format: 10 digits without spaces. For example, - * **1231111111**. + * @return swishNumber Swish number. Format: 10 digits without spaces. For example, **1231111111**. */ @JsonProperty(JSON_PROPERTY_SWISH_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -59,7 +70,9 @@ public void setSwishNumber(String swishNumber) { this.swishNumber = swishNumber; } - /** Return true if this SwishInfo object is equal to o. */ + /** + * Return true if this SwishInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -87,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -96,7 +110,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SwishInfo given an JSON string * * @param jsonString JSON string @@ -106,12 +120,11 @@ private String toIndentedString(Object o) { public static SwishInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SwishInfo.class); } - - /** - * Convert an instance of SwishInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SwishInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TapToPay.java b/src/main/java/com/adyen/model/management/TapToPay.java index d346f776c..f80611db8 100644 --- a/src/main/java/com/adyen/model/management/TapToPay.java +++ b/src/main/java/com/adyen/model/management/TapToPay.java @@ -2,28 +2,41 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TapToPay */ -@JsonPropertyOrder({TapToPay.JSON_PROPERTY_MERCHANT_DISPLAY_NAME}) + +/** + * TapToPay + */ +@JsonPropertyOrder({ + TapToPay.JSON_PROPERTY_MERCHANT_DISPLAY_NAME +}) + public class TapToPay { public static final String JSON_PROPERTY_MERCHANT_DISPLAY_NAME = "merchantDisplayName"; private String merchantDisplayName; - public TapToPay() {} + public TapToPay() { + } /** * The text shown on the screen during the Tap to Pay transaction. @@ -38,7 +51,6 @@ public TapToPay merchantDisplayName(String merchantDisplayName) { /** * The text shown on the screen during the Tap to Pay transaction. - * * @return merchantDisplayName The text shown on the screen during the Tap to Pay transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_DISPLAY_NAME) @@ -58,7 +70,9 @@ public void setMerchantDisplayName(String merchantDisplayName) { this.merchantDisplayName = merchantDisplayName; } - /** Return true if this TapToPay object is equal to o. */ + /** + * Return true if this TapToPay object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -80,15 +94,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TapToPay {\n"); - sb.append(" merchantDisplayName: ") - .append(toIndentedString(merchantDisplayName)) - .append("\n"); + sb.append(" merchantDisplayName: ").append(toIndentedString(merchantDisplayName)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -97,7 +110,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TapToPay given an JSON string * * @param jsonString JSON string @@ -107,12 +120,11 @@ private String toIndentedString(Object o) { public static TapToPay fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TapToPay.class); } - - /** - * Convert an instance of TapToPay to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TapToPay to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Terminal.java b/src/main/java/com/adyen/model/management/Terminal.java index 530fa85c3..c90ca7d2d 100644 --- a/src/main/java/com/adyen/model/management/Terminal.java +++ b/src/main/java/com/adyen/model/management/Terminal.java @@ -2,23 +2,34 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.TerminalAssignment; +import com.adyen.model.management.TerminalConnectivity; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.time.OffsetDateTime; -import java.util.*; -/** Terminal */ + +/** + * Terminal + */ @JsonPropertyOrder({ Terminal.JSON_PROPERTY_ASSIGNMENT, Terminal.JSON_PROPERTY_CONNECTIVITY, @@ -30,6 +41,7 @@ Terminal.JSON_PROPERTY_RESTART_LOCAL_TIME, Terminal.JSON_PROPERTY_SERIAL_NUMBER }) + public class Terminal { public static final String JSON_PROPERTY_ASSIGNMENT = "assignment"; private TerminalAssignment assignment; @@ -58,12 +70,13 @@ public class Terminal { public static final String JSON_PROPERTY_SERIAL_NUMBER = "serialNumber"; private String serialNumber; - public Terminal() {} + public Terminal() { + } /** * assignment * - * @param assignment + * @param assignment * @return the current {@code Terminal} instance, allowing for method chaining */ public Terminal assignment(TerminalAssignment assignment) { @@ -73,8 +86,7 @@ public Terminal assignment(TerminalAssignment assignment) { /** * Get assignment - * - * @return assignment + * @return assignment */ @JsonProperty(JSON_PROPERTY_ASSIGNMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -85,7 +97,7 @@ public TerminalAssignment getAssignment() { /** * assignment * - * @param assignment + * @param assignment */ @JsonProperty(JSON_PROPERTY_ASSIGNMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,7 +108,7 @@ public void setAssignment(TerminalAssignment assignment) { /** * connectivity * - * @param connectivity + * @param connectivity * @return the current {@code Terminal} instance, allowing for method chaining */ public Terminal connectivity(TerminalConnectivity connectivity) { @@ -106,8 +118,7 @@ public Terminal connectivity(TerminalConnectivity connectivity) { /** * Get connectivity - * - * @return connectivity + * @return connectivity */ @JsonProperty(JSON_PROPERTY_CONNECTIVITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,7 +129,7 @@ public TerminalConnectivity getConnectivity() { /** * connectivity * - * @param connectivity + * @param connectivity */ @JsonProperty(JSON_PROPERTY_CONNECTIVITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,7 +150,6 @@ public Terminal firmwareVersion(String firmwareVersion) { /** * The software release currently in use on the terminal. - * * @return firmwareVersion The software release currently in use on the terminal. */ @JsonProperty(JSON_PROPERTY_FIRMWARE_VERSION) @@ -172,7 +182,6 @@ public Terminal id(String id) { /** * The unique identifier of the terminal. - * * @return id The unique identifier of the terminal. */ @JsonProperty(JSON_PROPERTY_ID) @@ -193,11 +202,9 @@ public void setId(String id) { } /** - * Date and time of the last activity on the terminal. Not included when the last activity was - * more than 14 days ago. + * Date and time of the last activity on the terminal. Not included when the last activity was more than 14 days ago. * - * @param lastActivityAt Date and time of the last activity on the terminal. Not included when the - * last activity was more than 14 days ago. + * @param lastActivityAt Date and time of the last activity on the terminal. Not included when the last activity was more than 14 days ago. * @return the current {@code Terminal} instance, allowing for method chaining */ public Terminal lastActivityAt(OffsetDateTime lastActivityAt) { @@ -206,11 +213,8 @@ public Terminal lastActivityAt(OffsetDateTime lastActivityAt) { } /** - * Date and time of the last activity on the terminal. Not included when the last activity was - * more than 14 days ago. - * - * @return lastActivityAt Date and time of the last activity on the terminal. Not included when - * the last activity was more than 14 days ago. + * Date and time of the last activity on the terminal. Not included when the last activity was more than 14 days ago. + * @return lastActivityAt Date and time of the last activity on the terminal. Not included when the last activity was more than 14 days ago. */ @JsonProperty(JSON_PROPERTY_LAST_ACTIVITY_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,11 +223,9 @@ public OffsetDateTime getLastActivityAt() { } /** - * Date and time of the last activity on the terminal. Not included when the last activity was - * more than 14 days ago. + * Date and time of the last activity on the terminal. Not included when the last activity was more than 14 days ago. * - * @param lastActivityAt Date and time of the last activity on the terminal. Not included when the - * last activity was more than 14 days ago. + * @param lastActivityAt Date and time of the last activity on the terminal. Not included when the last activity was more than 14 days ago. */ @JsonProperty(JSON_PROPERTY_LAST_ACTIVITY_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,11 +234,9 @@ public void setLastActivityAt(OffsetDateTime lastActivityAt) { } /** - * Date and time of the last transaction on the terminal. Not included when the last transaction - * was more than 14 days ago. + * Date and time of the last transaction on the terminal. Not included when the last transaction was more than 14 days ago. * - * @param lastTransactionAt Date and time of the last transaction on the terminal. Not included - * when the last transaction was more than 14 days ago. + * @param lastTransactionAt Date and time of the last transaction on the terminal. Not included when the last transaction was more than 14 days ago. * @return the current {@code Terminal} instance, allowing for method chaining */ public Terminal lastTransactionAt(OffsetDateTime lastTransactionAt) { @@ -245,11 +245,8 @@ public Terminal lastTransactionAt(OffsetDateTime lastTransactionAt) { } /** - * Date and time of the last transaction on the terminal. Not included when the last transaction - * was more than 14 days ago. - * - * @return lastTransactionAt Date and time of the last transaction on the terminal. Not included - * when the last transaction was more than 14 days ago. + * Date and time of the last transaction on the terminal. Not included when the last transaction was more than 14 days ago. + * @return lastTransactionAt Date and time of the last transaction on the terminal. Not included when the last transaction was more than 14 days ago. */ @JsonProperty(JSON_PROPERTY_LAST_TRANSACTION_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -258,11 +255,9 @@ public OffsetDateTime getLastTransactionAt() { } /** - * Date and time of the last transaction on the terminal. Not included when the last transaction - * was more than 14 days ago. + * Date and time of the last transaction on the terminal. Not included when the last transaction was more than 14 days ago. * - * @param lastTransactionAt Date and time of the last transaction on the terminal. Not included - * when the last transaction was more than 14 days ago. + * @param lastTransactionAt Date and time of the last transaction on the terminal. Not included when the last transaction was more than 14 days ago. */ @JsonProperty(JSON_PROPERTY_LAST_TRANSACTION_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -283,7 +278,6 @@ public Terminal model(String model) { /** * The model name of the terminal. - * * @return model The model name of the terminal. */ @JsonProperty(JSON_PROPERTY_MODEL) @@ -306,8 +300,7 @@ public void setModel(String model) { /** * The exact time of the terminal reboot, in the timezone of the terminal in **HH:mm** format. * - * @param restartLocalTime The exact time of the terminal reboot, in the timezone of the terminal - * in **HH:mm** format. + * @param restartLocalTime The exact time of the terminal reboot, in the timezone of the terminal in **HH:mm** format. * @return the current {@code Terminal} instance, allowing for method chaining */ public Terminal restartLocalTime(String restartLocalTime) { @@ -317,9 +310,7 @@ public Terminal restartLocalTime(String restartLocalTime) { /** * The exact time of the terminal reboot, in the timezone of the terminal in **HH:mm** format. - * - * @return restartLocalTime The exact time of the terminal reboot, in the timezone of the terminal - * in **HH:mm** format. + * @return restartLocalTime The exact time of the terminal reboot, in the timezone of the terminal in **HH:mm** format. */ @JsonProperty(JSON_PROPERTY_RESTART_LOCAL_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -330,8 +321,7 @@ public String getRestartLocalTime() { /** * The exact time of the terminal reboot, in the timezone of the terminal in **HH:mm** format. * - * @param restartLocalTime The exact time of the terminal reboot, in the timezone of the terminal - * in **HH:mm** format. + * @param restartLocalTime The exact time of the terminal reboot, in the timezone of the terminal in **HH:mm** format. */ @JsonProperty(JSON_PROPERTY_RESTART_LOCAL_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -352,7 +342,6 @@ public Terminal serialNumber(String serialNumber) { /** * The serial number of the terminal. - * * @return serialNumber The serial number of the terminal. */ @JsonProperty(JSON_PROPERTY_SERIAL_NUMBER) @@ -372,7 +361,9 @@ public void setSerialNumber(String serialNumber) { this.serialNumber = serialNumber; } - /** Return true if this Terminal object is equal to o. */ + /** + * Return true if this Terminal object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -382,29 +373,20 @@ public boolean equals(Object o) { return false; } Terminal terminal = (Terminal) o; - return Objects.equals(this.assignment, terminal.assignment) - && Objects.equals(this.connectivity, terminal.connectivity) - && Objects.equals(this.firmwareVersion, terminal.firmwareVersion) - && Objects.equals(this.id, terminal.id) - && Objects.equals(this.lastActivityAt, terminal.lastActivityAt) - && Objects.equals(this.lastTransactionAt, terminal.lastTransactionAt) - && Objects.equals(this.model, terminal.model) - && Objects.equals(this.restartLocalTime, terminal.restartLocalTime) - && Objects.equals(this.serialNumber, terminal.serialNumber); + return Objects.equals(this.assignment, terminal.assignment) && + Objects.equals(this.connectivity, terminal.connectivity) && + Objects.equals(this.firmwareVersion, terminal.firmwareVersion) && + Objects.equals(this.id, terminal.id) && + Objects.equals(this.lastActivityAt, terminal.lastActivityAt) && + Objects.equals(this.lastTransactionAt, terminal.lastTransactionAt) && + Objects.equals(this.model, terminal.model) && + Objects.equals(this.restartLocalTime, terminal.restartLocalTime) && + Objects.equals(this.serialNumber, terminal.serialNumber); } @Override public int hashCode() { - return Objects.hash( - assignment, - connectivity, - firmwareVersion, - id, - lastActivityAt, - lastTransactionAt, - model, - restartLocalTime, - serialNumber); + return Objects.hash(assignment, connectivity, firmwareVersion, id, lastActivityAt, lastTransactionAt, model, restartLocalTime, serialNumber); } @Override @@ -425,7 +407,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -434,7 +417,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Terminal given an JSON string * * @param jsonString JSON string @@ -444,12 +427,11 @@ private String toIndentedString(Object o) { public static Terminal fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Terminal.class); } - - /** - * Convert an instance of Terminal to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Terminal to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalActionScheduleDetail.java b/src/main/java/com/adyen/model/management/TerminalActionScheduleDetail.java index 97a3b5788..6cecebd4e 100644 --- a/src/main/java/com/adyen/model/management/TerminalActionScheduleDetail.java +++ b/src/main/java/com/adyen/model/management/TerminalActionScheduleDetail.java @@ -2,26 +2,36 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TerminalActionScheduleDetail */ + +/** + * TerminalActionScheduleDetail + */ @JsonPropertyOrder({ TerminalActionScheduleDetail.JSON_PROPERTY_ID, TerminalActionScheduleDetail.JSON_PROPERTY_TERMINAL_ID }) + public class TerminalActionScheduleDetail { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -29,7 +39,8 @@ public class TerminalActionScheduleDetail { public static final String JSON_PROPERTY_TERMINAL_ID = "terminalId"; private String terminalId; - public TerminalActionScheduleDetail() {} + public TerminalActionScheduleDetail() { + } /** * The ID of the action on the specified terminal. @@ -44,7 +55,6 @@ public TerminalActionScheduleDetail id(String id) { /** * The ID of the action on the specified terminal. - * * @return id The ID of the action on the specified terminal. */ @JsonProperty(JSON_PROPERTY_ID) @@ -77,7 +87,6 @@ public TerminalActionScheduleDetail terminalId(String terminalId) { /** * The unique ID of the terminal that the action applies to. - * * @return terminalId The unique ID of the terminal that the action applies to. */ @JsonProperty(JSON_PROPERTY_TERMINAL_ID) @@ -97,7 +106,9 @@ public void setTerminalId(String terminalId) { this.terminalId = terminalId; } - /** Return true if this TerminalActionScheduleDetail object is equal to o. */ + /** + * Return true if this TerminalActionScheduleDetail object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -107,8 +118,8 @@ public boolean equals(Object o) { return false; } TerminalActionScheduleDetail terminalActionScheduleDetail = (TerminalActionScheduleDetail) o; - return Objects.equals(this.id, terminalActionScheduleDetail.id) - && Objects.equals(this.terminalId, terminalActionScheduleDetail.terminalId); + return Objects.equals(this.id, terminalActionScheduleDetail.id) && + Objects.equals(this.terminalId, terminalActionScheduleDetail.terminalId); } @Override @@ -127,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,24 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TerminalActionScheduleDetail given an JSON string * * @param jsonString JSON string * @return An instance of TerminalActionScheduleDetail - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalActionScheduleDetail + * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalActionScheduleDetail */ - public static TerminalActionScheduleDetail fromJson(String jsonString) - throws JsonProcessingException { + public static TerminalActionScheduleDetail fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalActionScheduleDetail.class); } - - /** - * Convert an instance of TerminalActionScheduleDetail to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TerminalActionScheduleDetail to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalAssignment.java b/src/main/java/com/adyen/model/management/TerminalAssignment.java index 57ab5ec52..32a47479b 100644 --- a/src/main/java/com/adyen/model/management/TerminalAssignment.java +++ b/src/main/java/com/adyen/model/management/TerminalAssignment.java @@ -2,26 +2,32 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.TerminalReassignmentTarget; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** TerminalAssignment */ + +/** + * TerminalAssignment + */ @JsonPropertyOrder({ TerminalAssignment.JSON_PROPERTY_COMPANY_ID, TerminalAssignment.JSON_PROPERTY_MERCHANT_ID, @@ -29,6 +35,7 @@ TerminalAssignment.JSON_PROPERTY_STATUS, TerminalAssignment.JSON_PROPERTY_STORE_ID }) + public class TerminalAssignment { public static final String JSON_PROPERTY_COMPANY_ID = "companyId"; private String companyId; @@ -40,14 +47,10 @@ public class TerminalAssignment { private TerminalReassignmentTarget reassignmentTarget; /** - * The status of the reassignment. Possible values: * `reassignmentInProgress`: the - * terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to - * synchronize with the Adyen platform. * `deployed`: the terminal is deployed and - * reassigned. * `inventory`: the terminal is in inventory and cannot process - * transactions. * `boarded`: the terminal is boarded to a store, or a merchant account - * representing a store, and can process transactions. + * The status of the reassignment. Possible values: * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to synchronize with the Adyen platform. * `deployed`: the terminal is deployed and reassigned. * `inventory`: the terminal is in inventory and cannot process transactions. * `boarded`: the terminal is boarded to a store, or a merchant account representing a store, and can process transactions. */ public enum StatusEnum { + BOARDED(String.valueOf("boarded")), DEPLOYED(String.valueOf("deployed")), @@ -61,7 +64,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -82,11 +85,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -97,7 +96,8 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STORE_ID = "storeId"; private String storeId; - public TerminalAssignment() {} + public TerminalAssignment() { + } /** * The unique identifier of the company account to which terminal is assigned. @@ -112,7 +112,6 @@ public TerminalAssignment companyId(String companyId) { /** * The unique identifier of the company account to which terminal is assigned. - * * @return companyId The unique identifier of the company account to which terminal is assigned. */ @JsonProperty(JSON_PROPERTY_COMPANY_ID) @@ -145,7 +144,6 @@ public TerminalAssignment merchantId(String merchantId) { /** * The unique identifier of the merchant account to which terminal is assigned. - * * @return merchantId The unique identifier of the merchant account to which terminal is assigned. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @@ -168,7 +166,7 @@ public void setMerchantId(String merchantId) { /** * reassignmentTarget * - * @param reassignmentTarget + * @param reassignmentTarget * @return the current {@code TerminalAssignment} instance, allowing for method chaining */ public TerminalAssignment reassignmentTarget(TerminalReassignmentTarget reassignmentTarget) { @@ -178,8 +176,7 @@ public TerminalAssignment reassignmentTarget(TerminalReassignmentTarget reassign /** * Get reassignmentTarget - * - * @return reassignmentTarget + * @return reassignmentTarget */ @JsonProperty(JSON_PROPERTY_REASSIGNMENT_TARGET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,7 +187,7 @@ public TerminalReassignmentTarget getReassignmentTarget() { /** * reassignmentTarget * - * @param reassignmentTarget + * @param reassignmentTarget */ @JsonProperty(JSON_PROPERTY_REASSIGNMENT_TARGET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -199,20 +196,9 @@ public void setReassignmentTarget(TerminalReassignmentTarget reassignmentTarget) } /** - * The status of the reassignment. Possible values: * `reassignmentInProgress`: the - * terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to - * synchronize with the Adyen platform. * `deployed`: the terminal is deployed and - * reassigned. * `inventory`: the terminal is in inventory and cannot process - * transactions. * `boarded`: the terminal is boarded to a store, or a merchant account - * representing a store, and can process transactions. + * The status of the reassignment. Possible values: * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to synchronize with the Adyen platform. * `deployed`: the terminal is deployed and reassigned. * `inventory`: the terminal is in inventory and cannot process transactions. * `boarded`: the terminal is boarded to a store, or a merchant account representing a store, and can process transactions. * - * @param status The status of the reassignment. Possible values: * - * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove - * the configuration. Wait for the terminal to synchronize with the Adyen platform. * - * `deployed`: the terminal is deployed and reassigned. * `inventory`: the - * terminal is in inventory and cannot process transactions. * `boarded`: the - * terminal is boarded to a store, or a merchant account representing a store, and can process - * transactions. + * @param status The status of the reassignment. Possible values: * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to synchronize with the Adyen platform. * `deployed`: the terminal is deployed and reassigned. * `inventory`: the terminal is in inventory and cannot process transactions. * `boarded`: the terminal is boarded to a store, or a merchant account representing a store, and can process transactions. * @return the current {@code TerminalAssignment} instance, allowing for method chaining */ public TerminalAssignment status(StatusEnum status) { @@ -221,20 +207,8 @@ public TerminalAssignment status(StatusEnum status) { } /** - * The status of the reassignment. Possible values: * `reassignmentInProgress`: the - * terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to - * synchronize with the Adyen platform. * `deployed`: the terminal is deployed and - * reassigned. * `inventory`: the terminal is in inventory and cannot process - * transactions. * `boarded`: the terminal is boarded to a store, or a merchant account - * representing a store, and can process transactions. - * - * @return status The status of the reassignment. Possible values: * - * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove - * the configuration. Wait for the terminal to synchronize with the Adyen platform. * - * `deployed`: the terminal is deployed and reassigned. * `inventory`: the - * terminal is in inventory and cannot process transactions. * `boarded`: the - * terminal is boarded to a store, or a merchant account representing a store, and can process - * transactions. + * The status of the reassignment. Possible values: * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to synchronize with the Adyen platform. * `deployed`: the terminal is deployed and reassigned. * `inventory`: the terminal is in inventory and cannot process transactions. * `boarded`: the terminal is boarded to a store, or a merchant account representing a store, and can process transactions. + * @return status The status of the reassignment. Possible values: * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to synchronize with the Adyen platform. * `deployed`: the terminal is deployed and reassigned. * `inventory`: the terminal is in inventory and cannot process transactions. * `boarded`: the terminal is boarded to a store, or a merchant account representing a store, and can process transactions. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -243,20 +217,9 @@ public StatusEnum getStatus() { } /** - * The status of the reassignment. Possible values: * `reassignmentInProgress`: the - * terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to - * synchronize with the Adyen platform. * `deployed`: the terminal is deployed and - * reassigned. * `inventory`: the terminal is in inventory and cannot process - * transactions. * `boarded`: the terminal is boarded to a store, or a merchant account - * representing a store, and can process transactions. + * The status of the reassignment. Possible values: * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to synchronize with the Adyen platform. * `deployed`: the terminal is deployed and reassigned. * `inventory`: the terminal is in inventory and cannot process transactions. * `boarded`: the terminal is boarded to a store, or a merchant account representing a store, and can process transactions. * - * @param status The status of the reassignment. Possible values: * - * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove - * the configuration. Wait for the terminal to synchronize with the Adyen platform. * - * `deployed`: the terminal is deployed and reassigned. * `inventory`: the - * terminal is in inventory and cannot process transactions. * `boarded`: the - * terminal is boarded to a store, or a merchant account representing a store, and can process - * transactions. + * @param status The status of the reassignment. Possible values: * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to synchronize with the Adyen platform. * `deployed`: the terminal is deployed and reassigned. * `inventory`: the terminal is in inventory and cannot process transactions. * `boarded`: the terminal is boarded to a store, or a merchant account representing a store, and can process transactions. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -277,7 +240,6 @@ public TerminalAssignment storeId(String storeId) { /** * The unique identifier of the store to which terminal is assigned. - * * @return storeId The unique identifier of the store to which terminal is assigned. */ @JsonProperty(JSON_PROPERTY_STORE_ID) @@ -297,7 +259,9 @@ public void setStoreId(String storeId) { this.storeId = storeId; } - /** Return true if this TerminalAssignment object is equal to o. */ + /** + * Return true if this TerminalAssignment object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -307,11 +271,11 @@ public boolean equals(Object o) { return false; } TerminalAssignment terminalAssignment = (TerminalAssignment) o; - return Objects.equals(this.companyId, terminalAssignment.companyId) - && Objects.equals(this.merchantId, terminalAssignment.merchantId) - && Objects.equals(this.reassignmentTarget, terminalAssignment.reassignmentTarget) - && Objects.equals(this.status, terminalAssignment.status) - && Objects.equals(this.storeId, terminalAssignment.storeId); + return Objects.equals(this.companyId, terminalAssignment.companyId) && + Objects.equals(this.merchantId, terminalAssignment.merchantId) && + Objects.equals(this.reassignmentTarget, terminalAssignment.reassignmentTarget) && + Objects.equals(this.status, terminalAssignment.status) && + Objects.equals(this.storeId, terminalAssignment.storeId); } @Override @@ -333,7 +297,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -342,23 +307,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TerminalAssignment given an JSON string * * @param jsonString JSON string * @return An instance of TerminalAssignment - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalAssignment + * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalAssignment */ public static TerminalAssignment fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalAssignment.class); } - - /** - * Convert an instance of TerminalAssignment to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TerminalAssignment to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalConnectivity.java b/src/main/java/com/adyen/model/management/TerminalConnectivity.java index 08ecc7635..1ef11adab 100644 --- a/src/main/java/com/adyen/model/management/TerminalConnectivity.java +++ b/src/main/java/com/adyen/model/management/TerminalConnectivity.java @@ -2,28 +2,42 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.TerminalConnectivityBluetooth; +import com.adyen.model.management.TerminalConnectivityCellular; +import com.adyen.model.management.TerminalConnectivityEthernet; +import com.adyen.model.management.TerminalConnectivityWifi; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TerminalConnectivity */ + +/** + * TerminalConnectivity + */ @JsonPropertyOrder({ TerminalConnectivity.JSON_PROPERTY_BLUETOOTH, TerminalConnectivity.JSON_PROPERTY_CELLULAR, TerminalConnectivity.JSON_PROPERTY_ETHERNET, TerminalConnectivity.JSON_PROPERTY_WIFI }) + public class TerminalConnectivity { public static final String JSON_PROPERTY_BLUETOOTH = "bluetooth"; private TerminalConnectivityBluetooth bluetooth; @@ -37,12 +51,13 @@ public class TerminalConnectivity { public static final String JSON_PROPERTY_WIFI = "wifi"; private TerminalConnectivityWifi wifi; - public TerminalConnectivity() {} + public TerminalConnectivity() { + } /** * bluetooth * - * @param bluetooth + * @param bluetooth * @return the current {@code TerminalConnectivity} instance, allowing for method chaining */ public TerminalConnectivity bluetooth(TerminalConnectivityBluetooth bluetooth) { @@ -52,8 +67,7 @@ public TerminalConnectivity bluetooth(TerminalConnectivityBluetooth bluetooth) { /** * Get bluetooth - * - * @return bluetooth + * @return bluetooth */ @JsonProperty(JSON_PROPERTY_BLUETOOTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,7 +78,7 @@ public TerminalConnectivityBluetooth getBluetooth() { /** * bluetooth * - * @param bluetooth + * @param bluetooth */ @JsonProperty(JSON_PROPERTY_BLUETOOTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,7 +89,7 @@ public void setBluetooth(TerminalConnectivityBluetooth bluetooth) { /** * cellular * - * @param cellular + * @param cellular * @return the current {@code TerminalConnectivity} instance, allowing for method chaining */ public TerminalConnectivity cellular(TerminalConnectivityCellular cellular) { @@ -85,8 +99,7 @@ public TerminalConnectivity cellular(TerminalConnectivityCellular cellular) { /** * Get cellular - * - * @return cellular + * @return cellular */ @JsonProperty(JSON_PROPERTY_CELLULAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,7 +110,7 @@ public TerminalConnectivityCellular getCellular() { /** * cellular * - * @param cellular + * @param cellular */ @JsonProperty(JSON_PROPERTY_CELLULAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,7 +121,7 @@ public void setCellular(TerminalConnectivityCellular cellular) { /** * ethernet * - * @param ethernet + * @param ethernet * @return the current {@code TerminalConnectivity} instance, allowing for method chaining */ public TerminalConnectivity ethernet(TerminalConnectivityEthernet ethernet) { @@ -118,8 +131,7 @@ public TerminalConnectivity ethernet(TerminalConnectivityEthernet ethernet) { /** * Get ethernet - * - * @return ethernet + * @return ethernet */ @JsonProperty(JSON_PROPERTY_ETHERNET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -130,7 +142,7 @@ public TerminalConnectivityEthernet getEthernet() { /** * ethernet * - * @param ethernet + * @param ethernet */ @JsonProperty(JSON_PROPERTY_ETHERNET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -141,7 +153,7 @@ public void setEthernet(TerminalConnectivityEthernet ethernet) { /** * wifi * - * @param wifi + * @param wifi * @return the current {@code TerminalConnectivity} instance, allowing for method chaining */ public TerminalConnectivity wifi(TerminalConnectivityWifi wifi) { @@ -151,8 +163,7 @@ public TerminalConnectivity wifi(TerminalConnectivityWifi wifi) { /** * Get wifi - * - * @return wifi + * @return wifi */ @JsonProperty(JSON_PROPERTY_WIFI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,7 +174,7 @@ public TerminalConnectivityWifi getWifi() { /** * wifi * - * @param wifi + * @param wifi */ @JsonProperty(JSON_PROPERTY_WIFI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -171,7 +182,9 @@ public void setWifi(TerminalConnectivityWifi wifi) { this.wifi = wifi; } - /** Return true if this TerminalConnectivity object is equal to o. */ + /** + * Return true if this TerminalConnectivity object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -181,10 +194,10 @@ public boolean equals(Object o) { return false; } TerminalConnectivity terminalConnectivity = (TerminalConnectivity) o; - return Objects.equals(this.bluetooth, terminalConnectivity.bluetooth) - && Objects.equals(this.cellular, terminalConnectivity.cellular) - && Objects.equals(this.ethernet, terminalConnectivity.ethernet) - && Objects.equals(this.wifi, terminalConnectivity.wifi); + return Objects.equals(this.bluetooth, terminalConnectivity.bluetooth) && + Objects.equals(this.cellular, terminalConnectivity.cellular) && + Objects.equals(this.ethernet, terminalConnectivity.ethernet) && + Objects.equals(this.wifi, terminalConnectivity.wifi); } @Override @@ -205,7 +218,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -214,23 +228,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TerminalConnectivity given an JSON string * * @param jsonString JSON string * @return An instance of TerminalConnectivity - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalConnectivity + * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalConnectivity */ public static TerminalConnectivity fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalConnectivity.class); } - - /** - * Convert an instance of TerminalConnectivity to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TerminalConnectivity to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalConnectivityBluetooth.java b/src/main/java/com/adyen/model/management/TerminalConnectivityBluetooth.java index b09333715..9721ae466 100644 --- a/src/main/java/com/adyen/model/management/TerminalConnectivityBluetooth.java +++ b/src/main/java/com/adyen/model/management/TerminalConnectivityBluetooth.java @@ -2,26 +2,36 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TerminalConnectivityBluetooth */ + +/** + * TerminalConnectivityBluetooth + */ @JsonPropertyOrder({ TerminalConnectivityBluetooth.JSON_PROPERTY_IP_ADDRESS, TerminalConnectivityBluetooth.JSON_PROPERTY_MAC_ADDRESS }) + public class TerminalConnectivityBluetooth { public static final String JSON_PROPERTY_IP_ADDRESS = "ipAddress"; private String ipAddress; @@ -29,14 +39,14 @@ public class TerminalConnectivityBluetooth { public static final String JSON_PROPERTY_MAC_ADDRESS = "macAddress"; private String macAddress; - public TerminalConnectivityBluetooth() {} + public TerminalConnectivityBluetooth() { + } /** * The terminal's Bluetooth IP address. * * @param ipAddress The terminal's Bluetooth IP address. - * @return the current {@code TerminalConnectivityBluetooth} instance, allowing for method - * chaining + * @return the current {@code TerminalConnectivityBluetooth} instance, allowing for method chaining */ public TerminalConnectivityBluetooth ipAddress(String ipAddress) { this.ipAddress = ipAddress; @@ -45,7 +55,6 @@ public TerminalConnectivityBluetooth ipAddress(String ipAddress) { /** * The terminal's Bluetooth IP address. - * * @return ipAddress The terminal's Bluetooth IP address. */ @JsonProperty(JSON_PROPERTY_IP_ADDRESS) @@ -69,8 +78,7 @@ public void setIpAddress(String ipAddress) { * The terminal's Bluetooth MAC address. * * @param macAddress The terminal's Bluetooth MAC address. - * @return the current {@code TerminalConnectivityBluetooth} instance, allowing for method - * chaining + * @return the current {@code TerminalConnectivityBluetooth} instance, allowing for method chaining */ public TerminalConnectivityBluetooth macAddress(String macAddress) { this.macAddress = macAddress; @@ -79,7 +87,6 @@ public TerminalConnectivityBluetooth macAddress(String macAddress) { /** * The terminal's Bluetooth MAC address. - * * @return macAddress The terminal's Bluetooth MAC address. */ @JsonProperty(JSON_PROPERTY_MAC_ADDRESS) @@ -99,7 +106,9 @@ public void setMacAddress(String macAddress) { this.macAddress = macAddress; } - /** Return true if this TerminalConnectivityBluetooth object is equal to o. */ + /** + * Return true if this TerminalConnectivityBluetooth object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -109,8 +118,8 @@ public boolean equals(Object o) { return false; } TerminalConnectivityBluetooth terminalConnectivityBluetooth = (TerminalConnectivityBluetooth) o; - return Objects.equals(this.ipAddress, terminalConnectivityBluetooth.ipAddress) - && Objects.equals(this.macAddress, terminalConnectivityBluetooth.macAddress); + return Objects.equals(this.ipAddress, terminalConnectivityBluetooth.ipAddress) && + Objects.equals(this.macAddress, terminalConnectivityBluetooth.macAddress); } @Override @@ -129,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -138,24 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TerminalConnectivityBluetooth given an JSON string * * @param jsonString JSON string * @return An instance of TerminalConnectivityBluetooth - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalConnectivityBluetooth + * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalConnectivityBluetooth */ - public static TerminalConnectivityBluetooth fromJson(String jsonString) - throws JsonProcessingException { + public static TerminalConnectivityBluetooth fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalConnectivityBluetooth.class); } - - /** - * Convert an instance of TerminalConnectivityBluetooth to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TerminalConnectivityBluetooth to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalConnectivityCellular.java b/src/main/java/com/adyen/model/management/TerminalConnectivityCellular.java index b87d1a36f..f740300a2 100644 --- a/src/main/java/com/adyen/model/management/TerminalConnectivityCellular.java +++ b/src/main/java/com/adyen/model/management/TerminalConnectivityCellular.java @@ -2,31 +2,37 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** TerminalConnectivityCellular */ +/** + * TerminalConnectivityCellular + */ @JsonPropertyOrder({ TerminalConnectivityCellular.JSON_PROPERTY_ICCID, TerminalConnectivityCellular.JSON_PROPERTY_ICCID2, TerminalConnectivityCellular.JSON_PROPERTY_STATUS }) + public class TerminalConnectivityCellular { public static final String JSON_PROPERTY_ICCID = "iccid"; private String iccid; @@ -35,10 +41,10 @@ public class TerminalConnectivityCellular { private String iccid2; /** - * On a terminal that supports 3G or 4G connectivity, indicates the status of the primary SIM card - * in the terminal. + * On a terminal that supports 3G or 4G connectivity, indicates the status of the primary SIM card in the terminal. */ public enum StatusEnum { + ACTIVATED(String.valueOf("activated")), DEACTIVATED(String.valueOf("deactivated")), @@ -54,7 +60,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -75,11 +81,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -87,13 +89,13 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; - public TerminalConnectivityCellular() {} + public TerminalConnectivityCellular() { + } /** * The integrated circuit card identifier (ICCID) of the primary SIM card in the terminal. * - * @param iccid The integrated circuit card identifier (ICCID) of the primary SIM card in the - * terminal. + * @param iccid The integrated circuit card identifier (ICCID) of the primary SIM card in the terminal. * @return the current {@code TerminalConnectivityCellular} instance, allowing for method chaining */ public TerminalConnectivityCellular iccid(String iccid) { @@ -103,9 +105,7 @@ public TerminalConnectivityCellular iccid(String iccid) { /** * The integrated circuit card identifier (ICCID) of the primary SIM card in the terminal. - * - * @return iccid The integrated circuit card identifier (ICCID) of the primary SIM card in the - * terminal. + * @return iccid The integrated circuit card identifier (ICCID) of the primary SIM card in the terminal. */ @JsonProperty(JSON_PROPERTY_ICCID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,8 +116,7 @@ public String getIccid() { /** * The integrated circuit card identifier (ICCID) of the primary SIM card in the terminal. * - * @param iccid The integrated circuit card identifier (ICCID) of the primary SIM card in the - * terminal. + * @param iccid The integrated circuit card identifier (ICCID) of the primary SIM card in the terminal. */ @JsonProperty(JSON_PROPERTY_ICCID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,13 +125,9 @@ public void setIccid(String iccid) { } /** - * The integrated circuit card identifier (ICCID) of the secondary SIM card in the terminal, - * typically used for a [third-party SIM - * card](https://docs.adyen.com/point-of-sale/design-your-integration/network-and-connectivity/cellular-failover/#using-a-third-party-sim-card). + * The integrated circuit card identifier (ICCID) of the secondary SIM card in the terminal, typically used for a [third-party SIM card](https://docs.adyen.com/point-of-sale/design-your-integration/network-and-connectivity/cellular-failover/#using-a-third-party-sim-card). * - * @param iccid2 The integrated circuit card identifier (ICCID) of the secondary SIM card in the - * terminal, typically used for a [third-party SIM - * card](https://docs.adyen.com/point-of-sale/design-your-integration/network-and-connectivity/cellular-failover/#using-a-third-party-sim-card). + * @param iccid2 The integrated circuit card identifier (ICCID) of the secondary SIM card in the terminal, typically used for a [third-party SIM card](https://docs.adyen.com/point-of-sale/design-your-integration/network-and-connectivity/cellular-failover/#using-a-third-party-sim-card). * @return the current {@code TerminalConnectivityCellular} instance, allowing for method chaining */ public TerminalConnectivityCellular iccid2(String iccid2) { @@ -141,13 +136,8 @@ public TerminalConnectivityCellular iccid2(String iccid2) { } /** - * The integrated circuit card identifier (ICCID) of the secondary SIM card in the terminal, - * typically used for a [third-party SIM - * card](https://docs.adyen.com/point-of-sale/design-your-integration/network-and-connectivity/cellular-failover/#using-a-third-party-sim-card). - * - * @return iccid2 The integrated circuit card identifier (ICCID) of the secondary SIM card in the - * terminal, typically used for a [third-party SIM - * card](https://docs.adyen.com/point-of-sale/design-your-integration/network-and-connectivity/cellular-failover/#using-a-third-party-sim-card). + * The integrated circuit card identifier (ICCID) of the secondary SIM card in the terminal, typically used for a [third-party SIM card](https://docs.adyen.com/point-of-sale/design-your-integration/network-and-connectivity/cellular-failover/#using-a-third-party-sim-card). + * @return iccid2 The integrated circuit card identifier (ICCID) of the secondary SIM card in the terminal, typically used for a [third-party SIM card](https://docs.adyen.com/point-of-sale/design-your-integration/network-and-connectivity/cellular-failover/#using-a-third-party-sim-card). */ @JsonProperty(JSON_PROPERTY_ICCID2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,13 +146,9 @@ public String getIccid2() { } /** - * The integrated circuit card identifier (ICCID) of the secondary SIM card in the terminal, - * typically used for a [third-party SIM - * card](https://docs.adyen.com/point-of-sale/design-your-integration/network-and-connectivity/cellular-failover/#using-a-third-party-sim-card). + * The integrated circuit card identifier (ICCID) of the secondary SIM card in the terminal, typically used for a [third-party SIM card](https://docs.adyen.com/point-of-sale/design-your-integration/network-and-connectivity/cellular-failover/#using-a-third-party-sim-card). * - * @param iccid2 The integrated circuit card identifier (ICCID) of the secondary SIM card in the - * terminal, typically used for a [third-party SIM - * card](https://docs.adyen.com/point-of-sale/design-your-integration/network-and-connectivity/cellular-failover/#using-a-third-party-sim-card). + * @param iccid2 The integrated circuit card identifier (ICCID) of the secondary SIM card in the terminal, typically used for a [third-party SIM card](https://docs.adyen.com/point-of-sale/design-your-integration/network-and-connectivity/cellular-failover/#using-a-third-party-sim-card). */ @JsonProperty(JSON_PROPERTY_ICCID2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -171,11 +157,9 @@ public void setIccid2(String iccid2) { } /** - * On a terminal that supports 3G or 4G connectivity, indicates the status of the primary SIM card - * in the terminal. + * On a terminal that supports 3G or 4G connectivity, indicates the status of the primary SIM card in the terminal. * - * @param status On a terminal that supports 3G or 4G connectivity, indicates the status of the - * primary SIM card in the terminal. + * @param status On a terminal that supports 3G or 4G connectivity, indicates the status of the primary SIM card in the terminal. * @return the current {@code TerminalConnectivityCellular} instance, allowing for method chaining */ public TerminalConnectivityCellular status(StatusEnum status) { @@ -184,11 +168,8 @@ public TerminalConnectivityCellular status(StatusEnum status) { } /** - * On a terminal that supports 3G or 4G connectivity, indicates the status of the primary SIM card - * in the terminal. - * - * @return status On a terminal that supports 3G or 4G connectivity, indicates the status of the - * primary SIM card in the terminal. + * On a terminal that supports 3G or 4G connectivity, indicates the status of the primary SIM card in the terminal. + * @return status On a terminal that supports 3G or 4G connectivity, indicates the status of the primary SIM card in the terminal. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -197,11 +178,9 @@ public StatusEnum getStatus() { } /** - * On a terminal that supports 3G or 4G connectivity, indicates the status of the primary SIM card - * in the terminal. + * On a terminal that supports 3G or 4G connectivity, indicates the status of the primary SIM card in the terminal. * - * @param status On a terminal that supports 3G or 4G connectivity, indicates the status of the - * primary SIM card in the terminal. + * @param status On a terminal that supports 3G or 4G connectivity, indicates the status of the primary SIM card in the terminal. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -209,7 +188,9 @@ public void setStatus(StatusEnum status) { this.status = status; } - /** Return true if this TerminalConnectivityCellular object is equal to o. */ + /** + * Return true if this TerminalConnectivityCellular object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -219,9 +200,9 @@ public boolean equals(Object o) { return false; } TerminalConnectivityCellular terminalConnectivityCellular = (TerminalConnectivityCellular) o; - return Objects.equals(this.iccid, terminalConnectivityCellular.iccid) - && Objects.equals(this.iccid2, terminalConnectivityCellular.iccid2) - && Objects.equals(this.status, terminalConnectivityCellular.status); + return Objects.equals(this.iccid, terminalConnectivityCellular.iccid) && + Objects.equals(this.iccid2, terminalConnectivityCellular.iccid2) && + Objects.equals(this.status, terminalConnectivityCellular.status); } @Override @@ -241,7 +222,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -250,24 +232,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TerminalConnectivityCellular given an JSON string * * @param jsonString JSON string * @return An instance of TerminalConnectivityCellular - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalConnectivityCellular + * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalConnectivityCellular */ - public static TerminalConnectivityCellular fromJson(String jsonString) - throws JsonProcessingException { + public static TerminalConnectivityCellular fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalConnectivityCellular.class); } - - /** - * Convert an instance of TerminalConnectivityCellular to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TerminalConnectivityCellular to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalConnectivityEthernet.java b/src/main/java/com/adyen/model/management/TerminalConnectivityEthernet.java index 7b992b666..d583acc26 100644 --- a/src/main/java/com/adyen/model/management/TerminalConnectivityEthernet.java +++ b/src/main/java/com/adyen/model/management/TerminalConnectivityEthernet.java @@ -2,27 +2,37 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TerminalConnectivityEthernet */ + +/** + * TerminalConnectivityEthernet + */ @JsonPropertyOrder({ TerminalConnectivityEthernet.JSON_PROPERTY_IP_ADDRESS, TerminalConnectivityEthernet.JSON_PROPERTY_LINK_NEGOTIATION, TerminalConnectivityEthernet.JSON_PROPERTY_MAC_ADDRESS }) + public class TerminalConnectivityEthernet { public static final String JSON_PROPERTY_IP_ADDRESS = "ipAddress"; private String ipAddress; @@ -33,7 +43,8 @@ public class TerminalConnectivityEthernet { public static final String JSON_PROPERTY_MAC_ADDRESS = "macAddress"; private String macAddress; - public TerminalConnectivityEthernet() {} + public TerminalConnectivityEthernet() { + } /** * The terminal's ethernet IP address. @@ -48,7 +59,6 @@ public TerminalConnectivityEthernet ipAddress(String ipAddress) { /** * The terminal's ethernet IP address. - * * @return ipAddress The terminal's ethernet IP address. */ @JsonProperty(JSON_PROPERTY_IP_ADDRESS) @@ -81,7 +91,6 @@ public TerminalConnectivityEthernet linkNegotiation(String linkNegotiation) { /** * The ethernet link negotiation that the terminal uses. - * * @return linkNegotiation The ethernet link negotiation that the terminal uses. */ @JsonProperty(JSON_PROPERTY_LINK_NEGOTIATION) @@ -114,7 +123,6 @@ public TerminalConnectivityEthernet macAddress(String macAddress) { /** * The terminal's ethernet MAC address. - * * @return macAddress The terminal's ethernet MAC address. */ @JsonProperty(JSON_PROPERTY_MAC_ADDRESS) @@ -134,7 +142,9 @@ public void setMacAddress(String macAddress) { this.macAddress = macAddress; } - /** Return true if this TerminalConnectivityEthernet object is equal to o. */ + /** + * Return true if this TerminalConnectivityEthernet object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,9 +154,9 @@ public boolean equals(Object o) { return false; } TerminalConnectivityEthernet terminalConnectivityEthernet = (TerminalConnectivityEthernet) o; - return Objects.equals(this.ipAddress, terminalConnectivityEthernet.ipAddress) - && Objects.equals(this.linkNegotiation, terminalConnectivityEthernet.linkNegotiation) - && Objects.equals(this.macAddress, terminalConnectivityEthernet.macAddress); + return Objects.equals(this.ipAddress, terminalConnectivityEthernet.ipAddress) && + Objects.equals(this.linkNegotiation, terminalConnectivityEthernet.linkNegotiation) && + Objects.equals(this.macAddress, terminalConnectivityEthernet.macAddress); } @Override @@ -166,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TerminalConnectivityEthernet given an JSON string * * @param jsonString JSON string * @return An instance of TerminalConnectivityEthernet - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalConnectivityEthernet + * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalConnectivityEthernet */ - public static TerminalConnectivityEthernet fromJson(String jsonString) - throws JsonProcessingException { + public static TerminalConnectivityEthernet fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalConnectivityEthernet.class); } - - /** - * Convert an instance of TerminalConnectivityEthernet to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TerminalConnectivityEthernet to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalConnectivityWifi.java b/src/main/java/com/adyen/model/management/TerminalConnectivityWifi.java index 4280f9de1..c98813525 100644 --- a/src/main/java/com/adyen/model/management/TerminalConnectivityWifi.java +++ b/src/main/java/com/adyen/model/management/TerminalConnectivityWifi.java @@ -2,27 +2,37 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TerminalConnectivityWifi */ + +/** + * TerminalConnectivityWifi + */ @JsonPropertyOrder({ TerminalConnectivityWifi.JSON_PROPERTY_IP_ADDRESS, TerminalConnectivityWifi.JSON_PROPERTY_MAC_ADDRESS, TerminalConnectivityWifi.JSON_PROPERTY_SSID }) + public class TerminalConnectivityWifi { public static final String JSON_PROPERTY_IP_ADDRESS = "ipAddress"; private String ipAddress; @@ -33,7 +43,8 @@ public class TerminalConnectivityWifi { public static final String JSON_PROPERTY_SSID = "ssid"; private String ssid; - public TerminalConnectivityWifi() {} + public TerminalConnectivityWifi() { + } /** * The terminal's IP address in the Wi-Fi network. @@ -48,7 +59,6 @@ public TerminalConnectivityWifi ipAddress(String ipAddress) { /** * The terminal's IP address in the Wi-Fi network. - * * @return ipAddress The terminal's IP address in the Wi-Fi network. */ @JsonProperty(JSON_PROPERTY_IP_ADDRESS) @@ -81,7 +91,6 @@ public TerminalConnectivityWifi macAddress(String macAddress) { /** * The terminal's MAC address in the Wi-Fi network. - * * @return macAddress The terminal's MAC address in the Wi-Fi network. */ @JsonProperty(JSON_PROPERTY_MAC_ADDRESS) @@ -114,7 +123,6 @@ public TerminalConnectivityWifi ssid(String ssid) { /** * The SSID of the Wi-Fi network that the terminal is connected to. - * * @return ssid The SSID of the Wi-Fi network that the terminal is connected to. */ @JsonProperty(JSON_PROPERTY_SSID) @@ -134,7 +142,9 @@ public void setSsid(String ssid) { this.ssid = ssid; } - /** Return true if this TerminalConnectivityWifi object is equal to o. */ + /** + * Return true if this TerminalConnectivityWifi object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,9 +154,9 @@ public boolean equals(Object o) { return false; } TerminalConnectivityWifi terminalConnectivityWifi = (TerminalConnectivityWifi) o; - return Objects.equals(this.ipAddress, terminalConnectivityWifi.ipAddress) - && Objects.equals(this.macAddress, terminalConnectivityWifi.macAddress) - && Objects.equals(this.ssid, terminalConnectivityWifi.ssid); + return Objects.equals(this.ipAddress, terminalConnectivityWifi.ipAddress) && + Objects.equals(this.macAddress, terminalConnectivityWifi.macAddress) && + Objects.equals(this.ssid, terminalConnectivityWifi.ssid); } @Override @@ -166,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TerminalConnectivityWifi given an JSON string * * @param jsonString JSON string * @return An instance of TerminalConnectivityWifi - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalConnectivityWifi + * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalConnectivityWifi */ - public static TerminalConnectivityWifi fromJson(String jsonString) - throws JsonProcessingException { + public static TerminalConnectivityWifi fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalConnectivityWifi.class); } - - /** - * Convert an instance of TerminalConnectivityWifi to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TerminalConnectivityWifi to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalInstructions.java b/src/main/java/com/adyen/model/management/TerminalInstructions.java index 6c9a4f5b5..1af383062 100644 --- a/src/main/java/com/adyen/model/management/TerminalInstructions.java +++ b/src/main/java/com/adyen/model/management/TerminalInstructions.java @@ -2,35 +2,46 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TerminalInstructions */ -@JsonPropertyOrder({TerminalInstructions.JSON_PROPERTY_ADYEN_APP_RESTART}) + +/** + * TerminalInstructions + */ +@JsonPropertyOrder({ + TerminalInstructions.JSON_PROPERTY_ADYEN_APP_RESTART +}) + public class TerminalInstructions { public static final String JSON_PROPERTY_ADYEN_APP_RESTART = "adyenAppRestart"; private Boolean adyenAppRestart; - public TerminalInstructions() {} + public TerminalInstructions() { + } /** - * Indicates whether the Adyen app on the payment terminal restarts automatically when the - * configuration is updated. + * Indicates whether the Adyen app on the payment terminal restarts automatically when the configuration is updated. * - * @param adyenAppRestart Indicates whether the Adyen app on the payment terminal restarts - * automatically when the configuration is updated. + * @param adyenAppRestart Indicates whether the Adyen app on the payment terminal restarts automatically when the configuration is updated. * @return the current {@code TerminalInstructions} instance, allowing for method chaining */ public TerminalInstructions adyenAppRestart(Boolean adyenAppRestart) { @@ -39,11 +50,8 @@ public TerminalInstructions adyenAppRestart(Boolean adyenAppRestart) { } /** - * Indicates whether the Adyen app on the payment terminal restarts automatically when the - * configuration is updated. - * - * @return adyenAppRestart Indicates whether the Adyen app on the payment terminal restarts - * automatically when the configuration is updated. + * Indicates whether the Adyen app on the payment terminal restarts automatically when the configuration is updated. + * @return adyenAppRestart Indicates whether the Adyen app on the payment terminal restarts automatically when the configuration is updated. */ @JsonProperty(JSON_PROPERTY_ADYEN_APP_RESTART) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -52,11 +60,9 @@ public Boolean getAdyenAppRestart() { } /** - * Indicates whether the Adyen app on the payment terminal restarts automatically when the - * configuration is updated. + * Indicates whether the Adyen app on the payment terminal restarts automatically when the configuration is updated. * - * @param adyenAppRestart Indicates whether the Adyen app on the payment terminal restarts - * automatically when the configuration is updated. + * @param adyenAppRestart Indicates whether the Adyen app on the payment terminal restarts automatically when the configuration is updated. */ @JsonProperty(JSON_PROPERTY_ADYEN_APP_RESTART) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,7 +70,9 @@ public void setAdyenAppRestart(Boolean adyenAppRestart) { this.adyenAppRestart = adyenAppRestart; } - /** Return true if this TerminalInstructions object is equal to o. */ + /** + * Return true if this TerminalInstructions object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -92,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -101,23 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TerminalInstructions given an JSON string * * @param jsonString JSON string * @return An instance of TerminalInstructions - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalInstructions + * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalInstructions */ public static TerminalInstructions fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalInstructions.class); } - - /** - * Convert an instance of TerminalInstructions to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TerminalInstructions to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalModelsResponse.java b/src/main/java/com/adyen/model/management/TerminalModelsResponse.java index d6dd4f2cf..0e5c986c8 100644 --- a/src/main/java/com/adyen/model/management/TerminalModelsResponse.java +++ b/src/main/java/com/adyen/model/management/TerminalModelsResponse.java @@ -2,30 +2,44 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.IdName; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * TerminalModelsResponse + */ +@JsonPropertyOrder({ + TerminalModelsResponse.JSON_PROPERTY_DATA +}) -/** TerminalModelsResponse */ -@JsonPropertyOrder({TerminalModelsResponse.JSON_PROPERTY_DATA}) public class TerminalModelsResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; - public TerminalModelsResponse() {} + public TerminalModelsResponse() { + } /** * The terminal models that the API credential has access to. @@ -48,7 +62,6 @@ public TerminalModelsResponse addDataItem(IdName dataItem) { /** * The terminal models that the API credential has access to. - * * @return data The terminal models that the API credential has access to. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -68,7 +81,9 @@ public void setData(List data) { this.data = data; } - /** Return true if this TerminalModelsResponse object is equal to o. */ + /** + * Return true if this TerminalModelsResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -96,7 +111,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -105,23 +121,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TerminalModelsResponse given an JSON string * * @param jsonString JSON string * @return An instance of TerminalModelsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalModelsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalModelsResponse */ public static TerminalModelsResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalModelsResponse.class); } - - /** - * Convert an instance of TerminalModelsResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TerminalModelsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalOrder.java b/src/main/java/com/adyen/model/management/TerminalOrder.java index 1e71b81e7..3c11fe8c6 100644 --- a/src/main/java/com/adyen/model/management/TerminalOrder.java +++ b/src/main/java/com/adyen/model/management/TerminalOrder.java @@ -2,24 +2,36 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.BillingEntity; +import com.adyen.model.management.OrderItem; +import com.adyen.model.management.ShippingLocation; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** TerminalOrder */ +/** + * TerminalOrder + */ @JsonPropertyOrder({ TerminalOrder.JSON_PROPERTY_BILLING_ENTITY, TerminalOrder.JSON_PROPERTY_CUSTOMER_ORDER_REFERENCE, @@ -30,6 +42,7 @@ TerminalOrder.JSON_PROPERTY_STATUS, TerminalOrder.JSON_PROPERTY_TRACKING_URL }) + public class TerminalOrder { public static final String JSON_PROPERTY_BILLING_ENTITY = "billingEntity"; private BillingEntity billingEntity; @@ -55,12 +68,13 @@ public class TerminalOrder { public static final String JSON_PROPERTY_TRACKING_URL = "trackingUrl"; private String trackingUrl; - public TerminalOrder() {} + public TerminalOrder() { + } /** * billingEntity * - * @param billingEntity + * @param billingEntity * @return the current {@code TerminalOrder} instance, allowing for method chaining */ public TerminalOrder billingEntity(BillingEntity billingEntity) { @@ -70,8 +84,7 @@ public TerminalOrder billingEntity(BillingEntity billingEntity) { /** * Get billingEntity - * - * @return billingEntity + * @return billingEntity */ @JsonProperty(JSON_PROPERTY_BILLING_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -82,7 +95,7 @@ public BillingEntity getBillingEntity() { /** * billingEntity * - * @param billingEntity + * @param billingEntity */ @JsonProperty(JSON_PROPERTY_BILLING_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -93,8 +106,7 @@ public void setBillingEntity(BillingEntity billingEntity) { /** * The merchant-defined purchase order number. This will be printed on the packing list. * - * @param customerOrderReference The merchant-defined purchase order number. This will be printed - * on the packing list. + * @param customerOrderReference The merchant-defined purchase order number. This will be printed on the packing list. * @return the current {@code TerminalOrder} instance, allowing for method chaining */ public TerminalOrder customerOrderReference(String customerOrderReference) { @@ -104,9 +116,7 @@ public TerminalOrder customerOrderReference(String customerOrderReference) { /** * The merchant-defined purchase order number. This will be printed on the packing list. - * - * @return customerOrderReference The merchant-defined purchase order number. This will be printed - * on the packing list. + * @return customerOrderReference The merchant-defined purchase order number. This will be printed on the packing list. */ @JsonProperty(JSON_PROPERTY_CUSTOMER_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,8 +127,7 @@ public String getCustomerOrderReference() { /** * The merchant-defined purchase order number. This will be printed on the packing list. * - * @param customerOrderReference The merchant-defined purchase order number. This will be printed - * on the packing list. + * @param customerOrderReference The merchant-defined purchase order number. This will be printed on the packing list. */ @JsonProperty(JSON_PROPERTY_CUSTOMER_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,7 +148,6 @@ public TerminalOrder id(String id) { /** * The unique identifier of the order. - * * @return id The unique identifier of the order. */ @JsonProperty(JSON_PROPERTY_ID) @@ -180,7 +188,6 @@ public TerminalOrder addItemsItem(OrderItem itemsItem) { /** * The products included in the order. - * * @return items The products included in the order. */ @JsonProperty(JSON_PROPERTY_ITEMS) @@ -201,11 +208,9 @@ public void setItems(List items) { } /** - * The date and time that the order was placed, in UTC ISO 8601 format. For example, - * \"2011-12-03T10:15:30Z\". + * The date and time that the order was placed, in UTC ISO 8601 format. For example, \"2011-12-03T10:15:30Z\". * - * @param orderDate The date and time that the order was placed, in UTC ISO 8601 format. For - * example, \"2011-12-03T10:15:30Z\". + * @param orderDate The date and time that the order was placed, in UTC ISO 8601 format. For example, \"2011-12-03T10:15:30Z\". * @return the current {@code TerminalOrder} instance, allowing for method chaining */ public TerminalOrder orderDate(String orderDate) { @@ -214,11 +219,8 @@ public TerminalOrder orderDate(String orderDate) { } /** - * The date and time that the order was placed, in UTC ISO 8601 format. For example, - * \"2011-12-03T10:15:30Z\". - * - * @return orderDate The date and time that the order was placed, in UTC ISO 8601 format. For - * example, \"2011-12-03T10:15:30Z\". + * The date and time that the order was placed, in UTC ISO 8601 format. For example, \"2011-12-03T10:15:30Z\". + * @return orderDate The date and time that the order was placed, in UTC ISO 8601 format. For example, \"2011-12-03T10:15:30Z\". */ @JsonProperty(JSON_PROPERTY_ORDER_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -227,11 +229,9 @@ public String getOrderDate() { } /** - * The date and time that the order was placed, in UTC ISO 8601 format. For example, - * \"2011-12-03T10:15:30Z\". + * The date and time that the order was placed, in UTC ISO 8601 format. For example, \"2011-12-03T10:15:30Z\". * - * @param orderDate The date and time that the order was placed, in UTC ISO 8601 format. For - * example, \"2011-12-03T10:15:30Z\". + * @param orderDate The date and time that the order was placed, in UTC ISO 8601 format. For example, \"2011-12-03T10:15:30Z\". */ @JsonProperty(JSON_PROPERTY_ORDER_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,7 +242,7 @@ public void setOrderDate(String orderDate) { /** * shippingLocation * - * @param shippingLocation + * @param shippingLocation * @return the current {@code TerminalOrder} instance, allowing for method chaining */ public TerminalOrder shippingLocation(ShippingLocation shippingLocation) { @@ -252,8 +252,7 @@ public TerminalOrder shippingLocation(ShippingLocation shippingLocation) { /** * Get shippingLocation - * - * @return shippingLocation + * @return shippingLocation */ @JsonProperty(JSON_PROPERTY_SHIPPING_LOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -264,7 +263,7 @@ public ShippingLocation getShippingLocation() { /** * shippingLocation * - * @param shippingLocation + * @param shippingLocation */ @JsonProperty(JSON_PROPERTY_SHIPPING_LOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -285,7 +284,6 @@ public TerminalOrder status(String status) { /** * The processing status of the order. - * * @return status The processing status of the order. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -318,9 +316,7 @@ public TerminalOrder trackingUrl(String trackingUrl) { /** * The URL, provided by the carrier company, where the shipment can be tracked. - * - * @return trackingUrl The URL, provided by the carrier company, where the shipment can be - * tracked. + * @return trackingUrl The URL, provided by the carrier company, where the shipment can be tracked. */ @JsonProperty(JSON_PROPERTY_TRACKING_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -339,7 +335,9 @@ public void setTrackingUrl(String trackingUrl) { this.trackingUrl = trackingUrl; } - /** Return true if this TerminalOrder object is equal to o. */ + /** + * Return true if this TerminalOrder object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -349,27 +347,19 @@ public boolean equals(Object o) { return false; } TerminalOrder terminalOrder = (TerminalOrder) o; - return Objects.equals(this.billingEntity, terminalOrder.billingEntity) - && Objects.equals(this.customerOrderReference, terminalOrder.customerOrderReference) - && Objects.equals(this.id, terminalOrder.id) - && Objects.equals(this.items, terminalOrder.items) - && Objects.equals(this.orderDate, terminalOrder.orderDate) - && Objects.equals(this.shippingLocation, terminalOrder.shippingLocation) - && Objects.equals(this.status, terminalOrder.status) - && Objects.equals(this.trackingUrl, terminalOrder.trackingUrl); + return Objects.equals(this.billingEntity, terminalOrder.billingEntity) && + Objects.equals(this.customerOrderReference, terminalOrder.customerOrderReference) && + Objects.equals(this.id, terminalOrder.id) && + Objects.equals(this.items, terminalOrder.items) && + Objects.equals(this.orderDate, terminalOrder.orderDate) && + Objects.equals(this.shippingLocation, terminalOrder.shippingLocation) && + Objects.equals(this.status, terminalOrder.status) && + Objects.equals(this.trackingUrl, terminalOrder.trackingUrl); } @Override public int hashCode() { - return Objects.hash( - billingEntity, - customerOrderReference, - id, - items, - orderDate, - shippingLocation, - status, - trackingUrl); + return Objects.hash(billingEntity, customerOrderReference, id, items, orderDate, shippingLocation, status, trackingUrl); } @Override @@ -377,9 +367,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TerminalOrder {\n"); sb.append(" billingEntity: ").append(toIndentedString(billingEntity)).append("\n"); - sb.append(" customerOrderReference: ") - .append(toIndentedString(customerOrderReference)) - .append("\n"); + sb.append(" customerOrderReference: ").append(toIndentedString(customerOrderReference)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" orderDate: ").append(toIndentedString(orderDate)).append("\n"); @@ -391,7 +379,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -400,7 +389,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TerminalOrder given an JSON string * * @param jsonString JSON string @@ -410,12 +399,11 @@ private String toIndentedString(Object o) { public static TerminalOrder fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalOrder.class); } - - /** - * Convert an instance of TerminalOrder to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TerminalOrder to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalOrderRequest.java b/src/main/java/com/adyen/model/management/TerminalOrderRequest.java index 71387384b..b25ac9219 100644 --- a/src/main/java/com/adyen/model/management/TerminalOrderRequest.java +++ b/src/main/java/com/adyen/model/management/TerminalOrderRequest.java @@ -2,24 +2,34 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.OrderItem; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** TerminalOrderRequest */ +/** + * TerminalOrderRequest + */ @JsonPropertyOrder({ TerminalOrderRequest.JSON_PROPERTY_BILLING_ENTITY_ID, TerminalOrderRequest.JSON_PROPERTY_CUSTOMER_ORDER_REFERENCE, @@ -28,6 +38,7 @@ TerminalOrderRequest.JSON_PROPERTY_SHIPPING_LOCATION_ID, TerminalOrderRequest.JSON_PROPERTY_TAX_ID }) + public class TerminalOrderRequest { public static final String JSON_PROPERTY_BILLING_ENTITY_ID = "billingEntityId"; private String billingEntityId; @@ -47,15 +58,13 @@ public class TerminalOrderRequest { public static final String JSON_PROPERTY_TAX_ID = "taxId"; private String taxId; - public TerminalOrderRequest() {} + public TerminalOrderRequest() { + } /** - * The identification of the billing entity to use for the order. > When ordering products in - * Brazil, you do not need to include the `billingEntityId` in the request. + * The identification of the billing entity to use for the order. > When ordering products in Brazil, you do not need to include the `billingEntityId` in the request. * - * @param billingEntityId The identification of the billing entity to use for the order. > When - * ordering products in Brazil, you do not need to include the `billingEntityId` in - * the request. + * @param billingEntityId The identification of the billing entity to use for the order. > When ordering products in Brazil, you do not need to include the `billingEntityId` in the request. * @return the current {@code TerminalOrderRequest} instance, allowing for method chaining */ public TerminalOrderRequest billingEntityId(String billingEntityId) { @@ -64,12 +73,8 @@ public TerminalOrderRequest billingEntityId(String billingEntityId) { } /** - * The identification of the billing entity to use for the order. > When ordering products in - * Brazil, you do not need to include the `billingEntityId` in the request. - * - * @return billingEntityId The identification of the billing entity to use for the order. > - * When ordering products in Brazil, you do not need to include the - * `billingEntityId` in the request. + * The identification of the billing entity to use for the order. > When ordering products in Brazil, you do not need to include the `billingEntityId` in the request. + * @return billingEntityId The identification of the billing entity to use for the order. > When ordering products in Brazil, you do not need to include the `billingEntityId` in the request. */ @JsonProperty(JSON_PROPERTY_BILLING_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -78,12 +83,9 @@ public String getBillingEntityId() { } /** - * The identification of the billing entity to use for the order. > When ordering products in - * Brazil, you do not need to include the `billingEntityId` in the request. + * The identification of the billing entity to use for the order. > When ordering products in Brazil, you do not need to include the `billingEntityId` in the request. * - * @param billingEntityId The identification of the billing entity to use for the order. > When - * ordering products in Brazil, you do not need to include the `billingEntityId` in - * the request. + * @param billingEntityId The identification of the billing entity to use for the order. > When ordering products in Brazil, you do not need to include the `billingEntityId` in the request. */ @JsonProperty(JSON_PROPERTY_BILLING_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,7 +106,6 @@ public TerminalOrderRequest customerOrderReference(String customerOrderReference /** * The merchant-defined purchase order reference. - * * @return customerOrderReference The merchant-defined purchase order reference. */ @JsonProperty(JSON_PROPERTY_CUSTOMER_ORDER_REFERENCE) @@ -145,7 +146,6 @@ public TerminalOrderRequest addItemsItem(OrderItem itemsItem) { /** * The products included in the order. - * * @return items The products included in the order. */ @JsonProperty(JSON_PROPERTY_ITEMS) @@ -178,7 +178,6 @@ public TerminalOrderRequest orderType(String orderType) { /** * Type of order - * * @return orderType Type of order */ @JsonProperty(JSON_PROPERTY_ORDER_TYPE) @@ -211,7 +210,6 @@ public TerminalOrderRequest shippingLocationId(String shippingLocationId) { /** * The identification of the shipping location to use for the order. - * * @return shippingLocationId The identification of the shipping location to use for the order. */ @JsonProperty(JSON_PROPERTY_SHIPPING_LOCATION_ID) @@ -244,7 +242,6 @@ public TerminalOrderRequest taxId(String taxId) { /** * The tax number of the billing entity. - * * @return taxId The tax number of the billing entity. */ @JsonProperty(JSON_PROPERTY_TAX_ID) @@ -264,7 +261,9 @@ public void setTaxId(String taxId) { this.taxId = taxId; } - /** Return true if this TerminalOrderRequest object is equal to o. */ + /** + * Return true if this TerminalOrderRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -274,18 +273,17 @@ public boolean equals(Object o) { return false; } TerminalOrderRequest terminalOrderRequest = (TerminalOrderRequest) o; - return Objects.equals(this.billingEntityId, terminalOrderRequest.billingEntityId) - && Objects.equals(this.customerOrderReference, terminalOrderRequest.customerOrderReference) - && Objects.equals(this.items, terminalOrderRequest.items) - && Objects.equals(this.orderType, terminalOrderRequest.orderType) - && Objects.equals(this.shippingLocationId, terminalOrderRequest.shippingLocationId) - && Objects.equals(this.taxId, terminalOrderRequest.taxId); + return Objects.equals(this.billingEntityId, terminalOrderRequest.billingEntityId) && + Objects.equals(this.customerOrderReference, terminalOrderRequest.customerOrderReference) && + Objects.equals(this.items, terminalOrderRequest.items) && + Objects.equals(this.orderType, terminalOrderRequest.orderType) && + Objects.equals(this.shippingLocationId, terminalOrderRequest.shippingLocationId) && + Objects.equals(this.taxId, terminalOrderRequest.taxId); } @Override public int hashCode() { - return Objects.hash( - billingEntityId, customerOrderReference, items, orderType, shippingLocationId, taxId); + return Objects.hash(billingEntityId, customerOrderReference, items, orderType, shippingLocationId, taxId); } @Override @@ -293,9 +291,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TerminalOrderRequest {\n"); sb.append(" billingEntityId: ").append(toIndentedString(billingEntityId)).append("\n"); - sb.append(" customerOrderReference: ") - .append(toIndentedString(customerOrderReference)) - .append("\n"); + sb.append(" customerOrderReference: ").append(toIndentedString(customerOrderReference)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" orderType: ").append(toIndentedString(orderType)).append("\n"); sb.append(" shippingLocationId: ").append(toIndentedString(shippingLocationId)).append("\n"); @@ -305,7 +301,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -314,23 +311,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TerminalOrderRequest given an JSON string * * @param jsonString JSON string * @return An instance of TerminalOrderRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalOrderRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalOrderRequest */ public static TerminalOrderRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalOrderRequest.class); } - - /** - * Convert an instance of TerminalOrderRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TerminalOrderRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalOrdersResponse.java b/src/main/java/com/adyen/model/management/TerminalOrdersResponse.java index 18691726b..7f348ad83 100644 --- a/src/main/java/com/adyen/model/management/TerminalOrdersResponse.java +++ b/src/main/java/com/adyen/model/management/TerminalOrdersResponse.java @@ -2,30 +2,44 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.TerminalOrder; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * TerminalOrdersResponse + */ +@JsonPropertyOrder({ + TerminalOrdersResponse.JSON_PROPERTY_DATA +}) -/** TerminalOrdersResponse */ -@JsonPropertyOrder({TerminalOrdersResponse.JSON_PROPERTY_DATA}) public class TerminalOrdersResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; - public TerminalOrdersResponse() {} + public TerminalOrdersResponse() { + } /** * List of orders for payment terminal packages and parts. @@ -48,7 +62,6 @@ public TerminalOrdersResponse addDataItem(TerminalOrder dataItem) { /** * List of orders for payment terminal packages and parts. - * * @return data List of orders for payment terminal packages and parts. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -68,7 +81,9 @@ public void setData(List data) { this.data = data; } - /** Return true if this TerminalOrdersResponse object is equal to o. */ + /** + * Return true if this TerminalOrdersResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -96,7 +111,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -105,23 +121,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TerminalOrdersResponse given an JSON string * * @param jsonString JSON string * @return An instance of TerminalOrdersResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalOrdersResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalOrdersResponse */ public static TerminalOrdersResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalOrdersResponse.class); } - - /** - * Convert an instance of TerminalOrdersResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TerminalOrdersResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalProduct.java b/src/main/java/com/adyen/model/management/TerminalProduct.java index b8d2142b8..0b9e613aa 100644 --- a/src/main/java/com/adyen/model/management/TerminalProduct.java +++ b/src/main/java/com/adyen/model/management/TerminalProduct.java @@ -2,24 +2,34 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.TerminalProductPrice; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** TerminalProduct */ +/** + * TerminalProduct + */ @JsonPropertyOrder({ TerminalProduct.JSON_PROPERTY_DESCRIPTION, TerminalProduct.JSON_PROPERTY_ID, @@ -27,6 +37,7 @@ TerminalProduct.JSON_PROPERTY_NAME, TerminalProduct.JSON_PROPERTY_PRICE }) + public class TerminalProduct { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -43,7 +54,8 @@ public class TerminalProduct { public static final String JSON_PROPERTY_PRICE = "price"; private TerminalProductPrice price; - public TerminalProduct() {} + public TerminalProduct() { + } /** * Information about items included and integration options. @@ -58,7 +70,6 @@ public TerminalProduct description(String description) { /** * Information about items included and integration options. - * * @return description Information about items included and integration options. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -91,7 +102,6 @@ public TerminalProduct id(String id) { /** * The unique identifier of the product. - * * @return id The unique identifier of the product. */ @JsonProperty(JSON_PROPERTY_ID) @@ -132,7 +142,6 @@ public TerminalProduct addItemsIncludedItem(String itemsIncludedItem) { /** * A list of parts included in the terminal package. - * * @return itemsIncluded A list of parts included in the terminal package. */ @JsonProperty(JSON_PROPERTY_ITEMS_INCLUDED) @@ -165,7 +174,6 @@ public TerminalProduct name(String name) { /** * The descriptive name of the product. - * * @return name The descriptive name of the product. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -188,7 +196,7 @@ public void setName(String name) { /** * price * - * @param price + * @param price * @return the current {@code TerminalProduct} instance, allowing for method chaining */ public TerminalProduct price(TerminalProductPrice price) { @@ -198,8 +206,7 @@ public TerminalProduct price(TerminalProductPrice price) { /** * Get price - * - * @return price + * @return price */ @JsonProperty(JSON_PROPERTY_PRICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -210,7 +217,7 @@ public TerminalProductPrice getPrice() { /** * price * - * @param price + * @param price */ @JsonProperty(JSON_PROPERTY_PRICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -218,7 +225,9 @@ public void setPrice(TerminalProductPrice price) { this.price = price; } - /** Return true if this TerminalProduct object is equal to o. */ + /** + * Return true if this TerminalProduct object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -228,11 +237,11 @@ public boolean equals(Object o) { return false; } TerminalProduct terminalProduct = (TerminalProduct) o; - return Objects.equals(this.description, terminalProduct.description) - && Objects.equals(this.id, terminalProduct.id) - && Objects.equals(this.itemsIncluded, terminalProduct.itemsIncluded) - && Objects.equals(this.name, terminalProduct.name) - && Objects.equals(this.price, terminalProduct.price); + return Objects.equals(this.description, terminalProduct.description) && + Objects.equals(this.id, terminalProduct.id) && + Objects.equals(this.itemsIncluded, terminalProduct.itemsIncluded) && + Objects.equals(this.name, terminalProduct.name) && + Objects.equals(this.price, terminalProduct.price); } @Override @@ -254,7 +263,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -263,7 +273,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TerminalProduct given an JSON string * * @param jsonString JSON string @@ -273,12 +283,11 @@ private String toIndentedString(Object o) { public static TerminalProduct fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalProduct.class); } - - /** - * Convert an instance of TerminalProduct to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TerminalProduct to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalProductPrice.java b/src/main/java/com/adyen/model/management/TerminalProductPrice.java index 5f57d50d7..4c20c8212 100644 --- a/src/main/java/com/adyen/model/management/TerminalProductPrice.java +++ b/src/main/java/com/adyen/model/management/TerminalProductPrice.java @@ -2,26 +2,36 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TerminalProductPrice */ + +/** + * TerminalProductPrice + */ @JsonPropertyOrder({ TerminalProductPrice.JSON_PROPERTY_CURRENCY, TerminalProductPrice.JSON_PROPERTY_VALUE }) + public class TerminalProductPrice { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -29,14 +39,13 @@ public class TerminalProductPrice { public static final String JSON_PROPERTY_VALUE = "value"; private Double value; - public TerminalProductPrice() {} + public TerminalProductPrice() { + } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code TerminalProductPrice} instance, allowing for method chaining */ public TerminalProductPrice currency(String currency) { @@ -45,11 +54,8 @@ public TerminalProductPrice currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,11 +64,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,7 +87,6 @@ public TerminalProductPrice value(Double value) { /** * The price of the item. - * * @return value The price of the item. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -103,7 +106,9 @@ public void setValue(Double value) { this.value = value; } - /** Return true if this TerminalProductPrice object is equal to o. */ + /** + * Return true if this TerminalProductPrice object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -113,8 +118,8 @@ public boolean equals(Object o) { return false; } TerminalProductPrice terminalProductPrice = (TerminalProductPrice) o; - return Objects.equals(this.currency, terminalProductPrice.currency) - && Objects.equals(this.value, terminalProductPrice.value); + return Objects.equals(this.currency, terminalProductPrice.currency) && + Objects.equals(this.value, terminalProductPrice.value); } @Override @@ -133,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -142,23 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TerminalProductPrice given an JSON string * * @param jsonString JSON string * @return An instance of TerminalProductPrice - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalProductPrice + * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalProductPrice */ public static TerminalProductPrice fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalProductPrice.class); } - - /** - * Convert an instance of TerminalProductPrice to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TerminalProductPrice to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalProductsResponse.java b/src/main/java/com/adyen/model/management/TerminalProductsResponse.java index 75e4fcfa8..20f50bc7f 100644 --- a/src/main/java/com/adyen/model/management/TerminalProductsResponse.java +++ b/src/main/java/com/adyen/model/management/TerminalProductsResponse.java @@ -2,30 +2,44 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.TerminalProduct; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * TerminalProductsResponse + */ +@JsonPropertyOrder({ + TerminalProductsResponse.JSON_PROPERTY_DATA +}) -/** TerminalProductsResponse */ -@JsonPropertyOrder({TerminalProductsResponse.JSON_PROPERTY_DATA}) public class TerminalProductsResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; - public TerminalProductsResponse() {} + public TerminalProductsResponse() { + } /** * Terminal products that can be ordered. @@ -48,7 +62,6 @@ public TerminalProductsResponse addDataItem(TerminalProduct dataItem) { /** * Terminal products that can be ordered. - * * @return data Terminal products that can be ordered. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -68,7 +81,9 @@ public void setData(List data) { this.data = data; } - /** Return true if this TerminalProductsResponse object is equal to o. */ + /** + * Return true if this TerminalProductsResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -96,7 +111,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -105,24 +121,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TerminalProductsResponse given an JSON string * * @param jsonString JSON string * @return An instance of TerminalProductsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalProductsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalProductsResponse */ - public static TerminalProductsResponse fromJson(String jsonString) - throws JsonProcessingException { + public static TerminalProductsResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalProductsResponse.class); } - - /** - * Convert an instance of TerminalProductsResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TerminalProductsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalReassignmentRequest.java b/src/main/java/com/adyen/model/management/TerminalReassignmentRequest.java index 24a986b00..e8f239fe5 100644 --- a/src/main/java/com/adyen/model/management/TerminalReassignmentRequest.java +++ b/src/main/java/com/adyen/model/management/TerminalReassignmentRequest.java @@ -2,28 +2,38 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TerminalReassignmentRequest */ + +/** + * TerminalReassignmentRequest + */ @JsonPropertyOrder({ TerminalReassignmentRequest.JSON_PROPERTY_COMPANY_ID, TerminalReassignmentRequest.JSON_PROPERTY_INVENTORY, TerminalReassignmentRequest.JSON_PROPERTY_MERCHANT_ID, TerminalReassignmentRequest.JSON_PROPERTY_STORE_ID }) + public class TerminalReassignmentRequest { public static final String JSON_PROPERTY_COMPANY_ID = "companyId"; private String companyId; @@ -37,13 +47,13 @@ public class TerminalReassignmentRequest { public static final String JSON_PROPERTY_STORE_ID = "storeId"; private String storeId; - public TerminalReassignmentRequest() {} + public TerminalReassignmentRequest() { + } /** * The unique identifier of the company account to which the terminal is reassigned. * - * @param companyId The unique identifier of the company account to which the terminal is - * reassigned. + * @param companyId The unique identifier of the company account to which the terminal is reassigned. * @return the current {@code TerminalReassignmentRequest} instance, allowing for method chaining */ public TerminalReassignmentRequest companyId(String companyId) { @@ -53,9 +63,7 @@ public TerminalReassignmentRequest companyId(String companyId) { /** * The unique identifier of the company account to which the terminal is reassigned. - * - * @return companyId The unique identifier of the company account to which the terminal is - * reassigned. + * @return companyId The unique identifier of the company account to which the terminal is reassigned. */ @JsonProperty(JSON_PROPERTY_COMPANY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -66,8 +74,7 @@ public String getCompanyId() { /** * The unique identifier of the company account to which the terminal is reassigned. * - * @param companyId The unique identifier of the company account to which the terminal is - * reassigned. + * @param companyId The unique identifier of the company account to which the terminal is reassigned. */ @JsonProperty(JSON_PROPERTY_COMPANY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -76,15 +83,9 @@ public void setCompanyId(String companyId) { } /** - * Must be specified when reassigning terminals to a merchant account: - If set to **true**, - * reassigns terminals to the inventory of the merchant account and the terminals cannot process - * transactions. - If set to **false**, reassigns terminals directly to the merchant account and - * the terminals can process transactions. + * Must be specified when reassigning terminals to a merchant account: - If set to **true**, reassigns terminals to the inventory of the merchant account and the terminals cannot process transactions. - If set to **false**, reassigns terminals directly to the merchant account and the terminals can process transactions. * - * @param inventory Must be specified when reassigning terminals to a merchant account: - If set - * to **true**, reassigns terminals to the inventory of the merchant account and the terminals - * cannot process transactions. - If set to **false**, reassigns terminals directly to the - * merchant account and the terminals can process transactions. + * @param inventory Must be specified when reassigning terminals to a merchant account: - If set to **true**, reassigns terminals to the inventory of the merchant account and the terminals cannot process transactions. - If set to **false**, reassigns terminals directly to the merchant account and the terminals can process transactions. * @return the current {@code TerminalReassignmentRequest} instance, allowing for method chaining */ public TerminalReassignmentRequest inventory(Boolean inventory) { @@ -93,15 +94,8 @@ public TerminalReassignmentRequest inventory(Boolean inventory) { } /** - * Must be specified when reassigning terminals to a merchant account: - If set to **true**, - * reassigns terminals to the inventory of the merchant account and the terminals cannot process - * transactions. - If set to **false**, reassigns terminals directly to the merchant account and - * the terminals can process transactions. - * - * @return inventory Must be specified when reassigning terminals to a merchant account: - If set - * to **true**, reassigns terminals to the inventory of the merchant account and the terminals - * cannot process transactions. - If set to **false**, reassigns terminals directly to the - * merchant account and the terminals can process transactions. + * Must be specified when reassigning terminals to a merchant account: - If set to **true**, reassigns terminals to the inventory of the merchant account and the terminals cannot process transactions. - If set to **false**, reassigns terminals directly to the merchant account and the terminals can process transactions. + * @return inventory Must be specified when reassigning terminals to a merchant account: - If set to **true**, reassigns terminals to the inventory of the merchant account and the terminals cannot process transactions. - If set to **false**, reassigns terminals directly to the merchant account and the terminals can process transactions. */ @JsonProperty(JSON_PROPERTY_INVENTORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,15 +104,9 @@ public Boolean getInventory() { } /** - * Must be specified when reassigning terminals to a merchant account: - If set to **true**, - * reassigns terminals to the inventory of the merchant account and the terminals cannot process - * transactions. - If set to **false**, reassigns terminals directly to the merchant account and - * the terminals can process transactions. + * Must be specified when reassigning terminals to a merchant account: - If set to **true**, reassigns terminals to the inventory of the merchant account and the terminals cannot process transactions. - If set to **false**, reassigns terminals directly to the merchant account and the terminals can process transactions. * - * @param inventory Must be specified when reassigning terminals to a merchant account: - If set - * to **true**, reassigns terminals to the inventory of the merchant account and the terminals - * cannot process transactions. - If set to **false**, reassigns terminals directly to the - * merchant account and the terminals can process transactions. + * @param inventory Must be specified when reassigning terminals to a merchant account: - If set to **true**, reassigns terminals to the inventory of the merchant account and the terminals cannot process transactions. - If set to **false**, reassigns terminals directly to the merchant account and the terminals can process transactions. */ @JsonProperty(JSON_PROPERTY_INVENTORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,12 +115,9 @@ public void setInventory(Boolean inventory) { } /** - * The unique identifier of the merchant account to which the terminal is reassigned. When - * reassigning terminals to a merchant account, you must specify the `inventory` field. + * The unique identifier of the merchant account to which the terminal is reassigned. When reassigning terminals to a merchant account, you must specify the `inventory` field. * - * @param merchantId The unique identifier of the merchant account to which the terminal is - * reassigned. When reassigning terminals to a merchant account, you must specify the - * `inventory` field. + * @param merchantId The unique identifier of the merchant account to which the terminal is reassigned. When reassigning terminals to a merchant account, you must specify the `inventory` field. * @return the current {@code TerminalReassignmentRequest} instance, allowing for method chaining */ public TerminalReassignmentRequest merchantId(String merchantId) { @@ -141,12 +126,8 @@ public TerminalReassignmentRequest merchantId(String merchantId) { } /** - * The unique identifier of the merchant account to which the terminal is reassigned. When - * reassigning terminals to a merchant account, you must specify the `inventory` field. - * - * @return merchantId The unique identifier of the merchant account to which the terminal is - * reassigned. When reassigning terminals to a merchant account, you must specify the - * `inventory` field. + * The unique identifier of the merchant account to which the terminal is reassigned. When reassigning terminals to a merchant account, you must specify the `inventory` field. + * @return merchantId The unique identifier of the merchant account to which the terminal is reassigned. When reassigning terminals to a merchant account, you must specify the `inventory` field. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -155,12 +136,9 @@ public String getMerchantId() { } /** - * The unique identifier of the merchant account to which the terminal is reassigned. When - * reassigning terminals to a merchant account, you must specify the `inventory` field. + * The unique identifier of the merchant account to which the terminal is reassigned. When reassigning terminals to a merchant account, you must specify the `inventory` field. * - * @param merchantId The unique identifier of the merchant account to which the terminal is - * reassigned. When reassigning terminals to a merchant account, you must specify the - * `inventory` field. + * @param merchantId The unique identifier of the merchant account to which the terminal is reassigned. When reassigning terminals to a merchant account, you must specify the `inventory` field. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,7 +159,6 @@ public TerminalReassignmentRequest storeId(String storeId) { /** * The unique identifier of the store to which the terminal is reassigned. - * * @return storeId The unique identifier of the store to which the terminal is reassigned. */ @JsonProperty(JSON_PROPERTY_STORE_ID) @@ -201,7 +178,9 @@ public void setStoreId(String storeId) { this.storeId = storeId; } - /** Return true if this TerminalReassignmentRequest object is equal to o. */ + /** + * Return true if this TerminalReassignmentRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -211,10 +190,10 @@ public boolean equals(Object o) { return false; } TerminalReassignmentRequest terminalReassignmentRequest = (TerminalReassignmentRequest) o; - return Objects.equals(this.companyId, terminalReassignmentRequest.companyId) - && Objects.equals(this.inventory, terminalReassignmentRequest.inventory) - && Objects.equals(this.merchantId, terminalReassignmentRequest.merchantId) - && Objects.equals(this.storeId, terminalReassignmentRequest.storeId); + return Objects.equals(this.companyId, terminalReassignmentRequest.companyId) && + Objects.equals(this.inventory, terminalReassignmentRequest.inventory) && + Objects.equals(this.merchantId, terminalReassignmentRequest.merchantId) && + Objects.equals(this.storeId, terminalReassignmentRequest.storeId); } @Override @@ -235,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -244,24 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TerminalReassignmentRequest given an JSON string * * @param jsonString JSON string * @return An instance of TerminalReassignmentRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalReassignmentRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalReassignmentRequest */ - public static TerminalReassignmentRequest fromJson(String jsonString) - throws JsonProcessingException { + public static TerminalReassignmentRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalReassignmentRequest.class); } - - /** - * Convert an instance of TerminalReassignmentRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TerminalReassignmentRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalReassignmentTarget.java b/src/main/java/com/adyen/model/management/TerminalReassignmentTarget.java index cc2f748c6..b16b9baf6 100644 --- a/src/main/java/com/adyen/model/management/TerminalReassignmentTarget.java +++ b/src/main/java/com/adyen/model/management/TerminalReassignmentTarget.java @@ -2,28 +2,38 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TerminalReassignmentTarget */ + +/** + * TerminalReassignmentTarget + */ @JsonPropertyOrder({ TerminalReassignmentTarget.JSON_PROPERTY_COMPANY_ID, TerminalReassignmentTarget.JSON_PROPERTY_INVENTORY, TerminalReassignmentTarget.JSON_PROPERTY_MERCHANT_ID, TerminalReassignmentTarget.JSON_PROPERTY_STORE_ID }) + public class TerminalReassignmentTarget { public static final String JSON_PROPERTY_COMPANY_ID = "companyId"; private String companyId; @@ -37,13 +47,13 @@ public class TerminalReassignmentTarget { public static final String JSON_PROPERTY_STORE_ID = "storeId"; private String storeId; - public TerminalReassignmentTarget() {} + public TerminalReassignmentTarget() { + } /** * The unique identifier of the company account to which the terminal is reassigned. * - * @param companyId The unique identifier of the company account to which the terminal is - * reassigned. + * @param companyId The unique identifier of the company account to which the terminal is reassigned. * @return the current {@code TerminalReassignmentTarget} instance, allowing for method chaining */ public TerminalReassignmentTarget companyId(String companyId) { @@ -53,9 +63,7 @@ public TerminalReassignmentTarget companyId(String companyId) { /** * The unique identifier of the company account to which the terminal is reassigned. - * - * @return companyId The unique identifier of the company account to which the terminal is - * reassigned. + * @return companyId The unique identifier of the company account to which the terminal is reassigned. */ @JsonProperty(JSON_PROPERTY_COMPANY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -66,8 +74,7 @@ public String getCompanyId() { /** * The unique identifier of the company account to which the terminal is reassigned. * - * @param companyId The unique identifier of the company account to which the terminal is - * reassigned. + * @param companyId The unique identifier of the company account to which the terminal is reassigned. */ @JsonProperty(JSON_PROPERTY_COMPANY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -76,15 +83,9 @@ public void setCompanyId(String companyId) { } /** - * Indicates if the terminal is reassigned to the inventory of the merchant account. - If - * **true**, the terminal is in the inventory of the merchant account and cannot process - * transactions. - If **false**, the terminal is reassigned directly to the merchant account and - * can process transactions. + * Indicates if the terminal is reassigned to the inventory of the merchant account. - If **true**, the terminal is in the inventory of the merchant account and cannot process transactions. - If **false**, the terminal is reassigned directly to the merchant account and can process transactions. * - * @param inventory Indicates if the terminal is reassigned to the inventory of the merchant - * account. - If **true**, the terminal is in the inventory of the merchant account and cannot - * process transactions. - If **false**, the terminal is reassigned directly to the merchant - * account and can process transactions. + * @param inventory Indicates if the terminal is reassigned to the inventory of the merchant account. - If **true**, the terminal is in the inventory of the merchant account and cannot process transactions. - If **false**, the terminal is reassigned directly to the merchant account and can process transactions. * @return the current {@code TerminalReassignmentTarget} instance, allowing for method chaining */ public TerminalReassignmentTarget inventory(Boolean inventory) { @@ -93,15 +94,8 @@ public TerminalReassignmentTarget inventory(Boolean inventory) { } /** - * Indicates if the terminal is reassigned to the inventory of the merchant account. - If - * **true**, the terminal is in the inventory of the merchant account and cannot process - * transactions. - If **false**, the terminal is reassigned directly to the merchant account and - * can process transactions. - * - * @return inventory Indicates if the terminal is reassigned to the inventory of the merchant - * account. - If **true**, the terminal is in the inventory of the merchant account and cannot - * process transactions. - If **false**, the terminal is reassigned directly to the merchant - * account and can process transactions. + * Indicates if the terminal is reassigned to the inventory of the merchant account. - If **true**, the terminal is in the inventory of the merchant account and cannot process transactions. - If **false**, the terminal is reassigned directly to the merchant account and can process transactions. + * @return inventory Indicates if the terminal is reassigned to the inventory of the merchant account. - If **true**, the terminal is in the inventory of the merchant account and cannot process transactions. - If **false**, the terminal is reassigned directly to the merchant account and can process transactions. */ @JsonProperty(JSON_PROPERTY_INVENTORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,15 +104,9 @@ public Boolean getInventory() { } /** - * Indicates if the terminal is reassigned to the inventory of the merchant account. - If - * **true**, the terminal is in the inventory of the merchant account and cannot process - * transactions. - If **false**, the terminal is reassigned directly to the merchant account and - * can process transactions. + * Indicates if the terminal is reassigned to the inventory of the merchant account. - If **true**, the terminal is in the inventory of the merchant account and cannot process transactions. - If **false**, the terminal is reassigned directly to the merchant account and can process transactions. * - * @param inventory Indicates if the terminal is reassigned to the inventory of the merchant - * account. - If **true**, the terminal is in the inventory of the merchant account and cannot - * process transactions. - If **false**, the terminal is reassigned directly to the merchant - * account and can process transactions. + * @param inventory Indicates if the terminal is reassigned to the inventory of the merchant account. - If **true**, the terminal is in the inventory of the merchant account and cannot process transactions. - If **false**, the terminal is reassigned directly to the merchant account and can process transactions. */ @JsonProperty(JSON_PROPERTY_INVENTORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,8 +117,7 @@ public void setInventory(Boolean inventory) { /** * The unique identifier of the merchant account to which the terminal is reassigned. * - * @param merchantId The unique identifier of the merchant account to which the terminal is - * reassigned. + * @param merchantId The unique identifier of the merchant account to which the terminal is reassigned. * @return the current {@code TerminalReassignmentTarget} instance, allowing for method chaining */ public TerminalReassignmentTarget merchantId(String merchantId) { @@ -140,9 +127,7 @@ public TerminalReassignmentTarget merchantId(String merchantId) { /** * The unique identifier of the merchant account to which the terminal is reassigned. - * - * @return merchantId The unique identifier of the merchant account to which the terminal is - * reassigned. + * @return merchantId The unique identifier of the merchant account to which the terminal is reassigned. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -153,8 +138,7 @@ public String getMerchantId() { /** * The unique identifier of the merchant account to which the terminal is reassigned. * - * @param merchantId The unique identifier of the merchant account to which the terminal is - * reassigned. + * @param merchantId The unique identifier of the merchant account to which the terminal is reassigned. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -175,7 +159,6 @@ public TerminalReassignmentTarget storeId(String storeId) { /** * The unique identifier of the store to which the terminal is reassigned. - * * @return storeId The unique identifier of the store to which the terminal is reassigned. */ @JsonProperty(JSON_PROPERTY_STORE_ID) @@ -195,7 +178,9 @@ public void setStoreId(String storeId) { this.storeId = storeId; } - /** Return true if this TerminalReassignmentTarget object is equal to o. */ + /** + * Return true if this TerminalReassignmentTarget object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -205,10 +190,10 @@ public boolean equals(Object o) { return false; } TerminalReassignmentTarget terminalReassignmentTarget = (TerminalReassignmentTarget) o; - return Objects.equals(this.companyId, terminalReassignmentTarget.companyId) - && Objects.equals(this.inventory, terminalReassignmentTarget.inventory) - && Objects.equals(this.merchantId, terminalReassignmentTarget.merchantId) - && Objects.equals(this.storeId, terminalReassignmentTarget.storeId); + return Objects.equals(this.companyId, terminalReassignmentTarget.companyId) && + Objects.equals(this.inventory, terminalReassignmentTarget.inventory) && + Objects.equals(this.merchantId, terminalReassignmentTarget.merchantId) && + Objects.equals(this.storeId, terminalReassignmentTarget.storeId); } @Override @@ -229,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -238,24 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TerminalReassignmentTarget given an JSON string * * @param jsonString JSON string * @return An instance of TerminalReassignmentTarget - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalReassignmentTarget + * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalReassignmentTarget */ - public static TerminalReassignmentTarget fromJson(String jsonString) - throws JsonProcessingException { + public static TerminalReassignmentTarget fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalReassignmentTarget.class); } - - /** - * Convert an instance of TerminalReassignmentTarget to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TerminalReassignmentTarget to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalSettings.java b/src/main/java/com/adyen/model/management/TerminalSettings.java index 12dfb5dd7..ca0cc65a9 100644 --- a/src/main/java/com/adyen/model/management/TerminalSettings.java +++ b/src/main/java/com/adyen/model/management/TerminalSettings.java @@ -2,24 +2,55 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.CardholderReceipt; +import com.adyen.model.management.Connectivity; +import com.adyen.model.management.Gratuity; +import com.adyen.model.management.Hardware; +import com.adyen.model.management.Localization; +import com.adyen.model.management.Nexo; +import com.adyen.model.management.OfflineProcessing; +import com.adyen.model.management.Opi; +import com.adyen.model.management.Passcodes; +import com.adyen.model.management.PayAtTable; +import com.adyen.model.management.Payment; +import com.adyen.model.management.ReceiptOptions; +import com.adyen.model.management.ReceiptPrinting; +import com.adyen.model.management.Refunds; +import com.adyen.model.management.Signature; +import com.adyen.model.management.Standalone; +import com.adyen.model.management.StoreAndForward; +import com.adyen.model.management.Surcharge; +import com.adyen.model.management.TapToPay; +import com.adyen.model.management.TerminalInstructions; +import com.adyen.model.management.Timeouts; +import com.adyen.model.management.WifiProfiles; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** TerminalSettings */ +/** + * TerminalSettings + */ @JsonPropertyOrder({ TerminalSettings.JSON_PROPERTY_CARDHOLDER_RECEIPT, TerminalSettings.JSON_PROPERTY_CONNECTIVITY, @@ -44,6 +75,7 @@ TerminalSettings.JSON_PROPERTY_TIMEOUTS, TerminalSettings.JSON_PROPERTY_WIFI_PROFILES }) + public class TerminalSettings { public static final String JSON_PROPERTY_CARDHOLDER_RECEIPT = "cardholderReceipt"; private CardholderReceipt cardholderReceipt; @@ -111,12 +143,13 @@ public class TerminalSettings { public static final String JSON_PROPERTY_WIFI_PROFILES = "wifiProfiles"; private WifiProfiles wifiProfiles; - public TerminalSettings() {} + public TerminalSettings() { + } /** * cardholderReceipt * - * @param cardholderReceipt + * @param cardholderReceipt * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings cardholderReceipt(CardholderReceipt cardholderReceipt) { @@ -126,8 +159,7 @@ public TerminalSettings cardholderReceipt(CardholderReceipt cardholderReceipt) { /** * Get cardholderReceipt - * - * @return cardholderReceipt + * @return cardholderReceipt */ @JsonProperty(JSON_PROPERTY_CARDHOLDER_RECEIPT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,7 +170,7 @@ public CardholderReceipt getCardholderReceipt() { /** * cardholderReceipt * - * @param cardholderReceipt + * @param cardholderReceipt */ @JsonProperty(JSON_PROPERTY_CARDHOLDER_RECEIPT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -149,7 +181,7 @@ public void setCardholderReceipt(CardholderReceipt cardholderReceipt) { /** * connectivity * - * @param connectivity + * @param connectivity * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings connectivity(Connectivity connectivity) { @@ -159,8 +191,7 @@ public TerminalSettings connectivity(Connectivity connectivity) { /** * Get connectivity - * - * @return connectivity + * @return connectivity */ @JsonProperty(JSON_PROPERTY_CONNECTIVITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -171,7 +202,7 @@ public Connectivity getConnectivity() { /** * connectivity * - * @param connectivity + * @param connectivity */ @JsonProperty(JSON_PROPERTY_CONNECTIVITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -180,12 +211,9 @@ public void setConnectivity(Connectivity connectivity) { } /** - * Settings for tipping with or without predefined options to choose from. The maximum number of - * predefined options is four, or three plus the option to enter a custom tip. + * Settings for tipping with or without predefined options to choose from. The maximum number of predefined options is four, or three plus the option to enter a custom tip. * - * @param gratuities Settings for tipping with or without predefined options to choose from. The - * maximum number of predefined options is four, or three plus the option to enter a custom - * tip. + * @param gratuities Settings for tipping with or without predefined options to choose from. The maximum number of predefined options is four, or three plus the option to enter a custom tip. * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings gratuities(List gratuities) { @@ -202,12 +230,8 @@ public TerminalSettings addGratuitiesItem(Gratuity gratuitiesItem) { } /** - * Settings for tipping with or without predefined options to choose from. The maximum number of - * predefined options is four, or three plus the option to enter a custom tip. - * - * @return gratuities Settings for tipping with or without predefined options to choose from. The - * maximum number of predefined options is four, or three plus the option to enter a custom - * tip. + * Settings for tipping with or without predefined options to choose from. The maximum number of predefined options is four, or three plus the option to enter a custom tip. + * @return gratuities Settings for tipping with or without predefined options to choose from. The maximum number of predefined options is four, or three plus the option to enter a custom tip. */ @JsonProperty(JSON_PROPERTY_GRATUITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -216,12 +240,9 @@ public List getGratuities() { } /** - * Settings for tipping with or without predefined options to choose from. The maximum number of - * predefined options is four, or three plus the option to enter a custom tip. + * Settings for tipping with or without predefined options to choose from. The maximum number of predefined options is four, or three plus the option to enter a custom tip. * - * @param gratuities Settings for tipping with or without predefined options to choose from. The - * maximum number of predefined options is four, or three plus the option to enter a custom - * tip. + * @param gratuities Settings for tipping with or without predefined options to choose from. The maximum number of predefined options is four, or three plus the option to enter a custom tip. */ @JsonProperty(JSON_PROPERTY_GRATUITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,7 +253,7 @@ public void setGratuities(List gratuities) { /** * hardware * - * @param hardware + * @param hardware * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings hardware(Hardware hardware) { @@ -242,8 +263,7 @@ public TerminalSettings hardware(Hardware hardware) { /** * Get hardware - * - * @return hardware + * @return hardware */ @JsonProperty(JSON_PROPERTY_HARDWARE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -254,7 +274,7 @@ public Hardware getHardware() { /** * hardware * - * @param hardware + * @param hardware */ @JsonProperty(JSON_PROPERTY_HARDWARE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -265,7 +285,7 @@ public void setHardware(Hardware hardware) { /** * localization * - * @param localization + * @param localization * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings localization(Localization localization) { @@ -275,8 +295,7 @@ public TerminalSettings localization(Localization localization) { /** * Get localization - * - * @return localization + * @return localization */ @JsonProperty(JSON_PROPERTY_LOCALIZATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -287,7 +306,7 @@ public Localization getLocalization() { /** * localization * - * @param localization + * @param localization */ @JsonProperty(JSON_PROPERTY_LOCALIZATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -298,7 +317,7 @@ public void setLocalization(Localization localization) { /** * nexo * - * @param nexo + * @param nexo * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings nexo(Nexo nexo) { @@ -308,8 +327,7 @@ public TerminalSettings nexo(Nexo nexo) { /** * Get nexo - * - * @return nexo + * @return nexo */ @JsonProperty(JSON_PROPERTY_NEXO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -320,7 +338,7 @@ public Nexo getNexo() { /** * nexo * - * @param nexo + * @param nexo */ @JsonProperty(JSON_PROPERTY_NEXO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -331,7 +349,7 @@ public void setNexo(Nexo nexo) { /** * offlineProcessing * - * @param offlineProcessing + * @param offlineProcessing * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings offlineProcessing(OfflineProcessing offlineProcessing) { @@ -341,8 +359,7 @@ public TerminalSettings offlineProcessing(OfflineProcessing offlineProcessing) { /** * Get offlineProcessing - * - * @return offlineProcessing + * @return offlineProcessing */ @JsonProperty(JSON_PROPERTY_OFFLINE_PROCESSING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -353,7 +370,7 @@ public OfflineProcessing getOfflineProcessing() { /** * offlineProcessing * - * @param offlineProcessing + * @param offlineProcessing */ @JsonProperty(JSON_PROPERTY_OFFLINE_PROCESSING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -364,7 +381,7 @@ public void setOfflineProcessing(OfflineProcessing offlineProcessing) { /** * opi * - * @param opi + * @param opi * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings opi(Opi opi) { @@ -374,8 +391,7 @@ public TerminalSettings opi(Opi opi) { /** * Get opi - * - * @return opi + * @return opi */ @JsonProperty(JSON_PROPERTY_OPI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -386,7 +402,7 @@ public Opi getOpi() { /** * opi * - * @param opi + * @param opi */ @JsonProperty(JSON_PROPERTY_OPI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -397,7 +413,7 @@ public void setOpi(Opi opi) { /** * passcodes * - * @param passcodes + * @param passcodes * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings passcodes(Passcodes passcodes) { @@ -407,8 +423,7 @@ public TerminalSettings passcodes(Passcodes passcodes) { /** * Get passcodes - * - * @return passcodes + * @return passcodes */ @JsonProperty(JSON_PROPERTY_PASSCODES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -419,7 +434,7 @@ public Passcodes getPasscodes() { /** * passcodes * - * @param passcodes + * @param passcodes */ @JsonProperty(JSON_PROPERTY_PASSCODES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -430,7 +445,7 @@ public void setPasscodes(Passcodes passcodes) { /** * payAtTable * - * @param payAtTable + * @param payAtTable * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings payAtTable(PayAtTable payAtTable) { @@ -440,8 +455,7 @@ public TerminalSettings payAtTable(PayAtTable payAtTable) { /** * Get payAtTable - * - * @return payAtTable + * @return payAtTable */ @JsonProperty(JSON_PROPERTY_PAY_AT_TABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -452,7 +466,7 @@ public PayAtTable getPayAtTable() { /** * payAtTable * - * @param payAtTable + * @param payAtTable */ @JsonProperty(JSON_PROPERTY_PAY_AT_TABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -463,7 +477,7 @@ public void setPayAtTable(PayAtTable payAtTable) { /** * payment * - * @param payment + * @param payment * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings payment(Payment payment) { @@ -473,8 +487,7 @@ public TerminalSettings payment(Payment payment) { /** * Get payment - * - * @return payment + * @return payment */ @JsonProperty(JSON_PROPERTY_PAYMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -485,7 +498,7 @@ public Payment getPayment() { /** * payment * - * @param payment + * @param payment */ @JsonProperty(JSON_PROPERTY_PAYMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -496,7 +509,7 @@ public void setPayment(Payment payment) { /** * receiptOptions * - * @param receiptOptions + * @param receiptOptions * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings receiptOptions(ReceiptOptions receiptOptions) { @@ -506,8 +519,7 @@ public TerminalSettings receiptOptions(ReceiptOptions receiptOptions) { /** * Get receiptOptions - * - * @return receiptOptions + * @return receiptOptions */ @JsonProperty(JSON_PROPERTY_RECEIPT_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -518,7 +530,7 @@ public ReceiptOptions getReceiptOptions() { /** * receiptOptions * - * @param receiptOptions + * @param receiptOptions */ @JsonProperty(JSON_PROPERTY_RECEIPT_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -529,7 +541,7 @@ public void setReceiptOptions(ReceiptOptions receiptOptions) { /** * receiptPrinting * - * @param receiptPrinting + * @param receiptPrinting * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings receiptPrinting(ReceiptPrinting receiptPrinting) { @@ -539,8 +551,7 @@ public TerminalSettings receiptPrinting(ReceiptPrinting receiptPrinting) { /** * Get receiptPrinting - * - * @return receiptPrinting + * @return receiptPrinting */ @JsonProperty(JSON_PROPERTY_RECEIPT_PRINTING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -551,7 +562,7 @@ public ReceiptPrinting getReceiptPrinting() { /** * receiptPrinting * - * @param receiptPrinting + * @param receiptPrinting */ @JsonProperty(JSON_PROPERTY_RECEIPT_PRINTING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -562,7 +573,7 @@ public void setReceiptPrinting(ReceiptPrinting receiptPrinting) { /** * refunds * - * @param refunds + * @param refunds * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings refunds(Refunds refunds) { @@ -572,8 +583,7 @@ public TerminalSettings refunds(Refunds refunds) { /** * Get refunds - * - * @return refunds + * @return refunds */ @JsonProperty(JSON_PROPERTY_REFUNDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -584,7 +594,7 @@ public Refunds getRefunds() { /** * refunds * - * @param refunds + * @param refunds */ @JsonProperty(JSON_PROPERTY_REFUNDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -595,7 +605,7 @@ public void setRefunds(Refunds refunds) { /** * signature * - * @param signature + * @param signature * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings signature(Signature signature) { @@ -605,8 +615,7 @@ public TerminalSettings signature(Signature signature) { /** * Get signature - * - * @return signature + * @return signature */ @JsonProperty(JSON_PROPERTY_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -617,7 +626,7 @@ public Signature getSignature() { /** * signature * - * @param signature + * @param signature */ @JsonProperty(JSON_PROPERTY_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -628,7 +637,7 @@ public void setSignature(Signature signature) { /** * standalone * - * @param standalone + * @param standalone * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings standalone(Standalone standalone) { @@ -638,8 +647,7 @@ public TerminalSettings standalone(Standalone standalone) { /** * Get standalone - * - * @return standalone + * @return standalone */ @JsonProperty(JSON_PROPERTY_STANDALONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -650,7 +658,7 @@ public Standalone getStandalone() { /** * standalone * - * @param standalone + * @param standalone */ @JsonProperty(JSON_PROPERTY_STANDALONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -661,7 +669,7 @@ public void setStandalone(Standalone standalone) { /** * storeAndForward * - * @param storeAndForward + * @param storeAndForward * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings storeAndForward(StoreAndForward storeAndForward) { @@ -671,8 +679,7 @@ public TerminalSettings storeAndForward(StoreAndForward storeAndForward) { /** * Get storeAndForward - * - * @return storeAndForward + * @return storeAndForward */ @JsonProperty(JSON_PROPERTY_STORE_AND_FORWARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -683,7 +690,7 @@ public StoreAndForward getStoreAndForward() { /** * storeAndForward * - * @param storeAndForward + * @param storeAndForward */ @JsonProperty(JSON_PROPERTY_STORE_AND_FORWARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -694,7 +701,7 @@ public void setStoreAndForward(StoreAndForward storeAndForward) { /** * surcharge * - * @param surcharge + * @param surcharge * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings surcharge(Surcharge surcharge) { @@ -704,8 +711,7 @@ public TerminalSettings surcharge(Surcharge surcharge) { /** * Get surcharge - * - * @return surcharge + * @return surcharge */ @JsonProperty(JSON_PROPERTY_SURCHARGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -716,7 +722,7 @@ public Surcharge getSurcharge() { /** * surcharge * - * @param surcharge + * @param surcharge */ @JsonProperty(JSON_PROPERTY_SURCHARGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -727,7 +733,7 @@ public void setSurcharge(Surcharge surcharge) { /** * tapToPay * - * @param tapToPay + * @param tapToPay * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings tapToPay(TapToPay tapToPay) { @@ -737,8 +743,7 @@ public TerminalSettings tapToPay(TapToPay tapToPay) { /** * Get tapToPay - * - * @return tapToPay + * @return tapToPay */ @JsonProperty(JSON_PROPERTY_TAP_TO_PAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -749,7 +754,7 @@ public TapToPay getTapToPay() { /** * tapToPay * - * @param tapToPay + * @param tapToPay */ @JsonProperty(JSON_PROPERTY_TAP_TO_PAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -760,7 +765,7 @@ public void setTapToPay(TapToPay tapToPay) { /** * terminalInstructions * - * @param terminalInstructions + * @param terminalInstructions * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings terminalInstructions(TerminalInstructions terminalInstructions) { @@ -770,8 +775,7 @@ public TerminalSettings terminalInstructions(TerminalInstructions terminalInstru /** * Get terminalInstructions - * - * @return terminalInstructions + * @return terminalInstructions */ @JsonProperty(JSON_PROPERTY_TERMINAL_INSTRUCTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -782,7 +786,7 @@ public TerminalInstructions getTerminalInstructions() { /** * terminalInstructions * - * @param terminalInstructions + * @param terminalInstructions */ @JsonProperty(JSON_PROPERTY_TERMINAL_INSTRUCTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -793,7 +797,7 @@ public void setTerminalInstructions(TerminalInstructions terminalInstructions) { /** * timeouts * - * @param timeouts + * @param timeouts * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings timeouts(Timeouts timeouts) { @@ -803,8 +807,7 @@ public TerminalSettings timeouts(Timeouts timeouts) { /** * Get timeouts - * - * @return timeouts + * @return timeouts */ @JsonProperty(JSON_PROPERTY_TIMEOUTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -815,7 +818,7 @@ public Timeouts getTimeouts() { /** * timeouts * - * @param timeouts + * @param timeouts */ @JsonProperty(JSON_PROPERTY_TIMEOUTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -826,7 +829,7 @@ public void setTimeouts(Timeouts timeouts) { /** * wifiProfiles * - * @param wifiProfiles + * @param wifiProfiles * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings wifiProfiles(WifiProfiles wifiProfiles) { @@ -836,8 +839,7 @@ public TerminalSettings wifiProfiles(WifiProfiles wifiProfiles) { /** * Get wifiProfiles - * - * @return wifiProfiles + * @return wifiProfiles */ @JsonProperty(JSON_PROPERTY_WIFI_PROFILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -848,7 +850,7 @@ public WifiProfiles getWifiProfiles() { /** * wifiProfiles * - * @param wifiProfiles + * @param wifiProfiles */ @JsonProperty(JSON_PROPERTY_WIFI_PROFILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -856,7 +858,9 @@ public void setWifiProfiles(WifiProfiles wifiProfiles) { this.wifiProfiles = wifiProfiles; } - /** Return true if this TerminalSettings object is equal to o. */ + /** + * Return true if this TerminalSettings object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -866,55 +870,33 @@ public boolean equals(Object o) { return false; } TerminalSettings terminalSettings = (TerminalSettings) o; - return Objects.equals(this.cardholderReceipt, terminalSettings.cardholderReceipt) - && Objects.equals(this.connectivity, terminalSettings.connectivity) - && Objects.equals(this.gratuities, terminalSettings.gratuities) - && Objects.equals(this.hardware, terminalSettings.hardware) - && Objects.equals(this.localization, terminalSettings.localization) - && Objects.equals(this.nexo, terminalSettings.nexo) - && Objects.equals(this.offlineProcessing, terminalSettings.offlineProcessing) - && Objects.equals(this.opi, terminalSettings.opi) - && Objects.equals(this.passcodes, terminalSettings.passcodes) - && Objects.equals(this.payAtTable, terminalSettings.payAtTable) - && Objects.equals(this.payment, terminalSettings.payment) - && Objects.equals(this.receiptOptions, terminalSettings.receiptOptions) - && Objects.equals(this.receiptPrinting, terminalSettings.receiptPrinting) - && Objects.equals(this.refunds, terminalSettings.refunds) - && Objects.equals(this.signature, terminalSettings.signature) - && Objects.equals(this.standalone, terminalSettings.standalone) - && Objects.equals(this.storeAndForward, terminalSettings.storeAndForward) - && Objects.equals(this.surcharge, terminalSettings.surcharge) - && Objects.equals(this.tapToPay, terminalSettings.tapToPay) - && Objects.equals(this.terminalInstructions, terminalSettings.terminalInstructions) - && Objects.equals(this.timeouts, terminalSettings.timeouts) - && Objects.equals(this.wifiProfiles, terminalSettings.wifiProfiles); + return Objects.equals(this.cardholderReceipt, terminalSettings.cardholderReceipt) && + Objects.equals(this.connectivity, terminalSettings.connectivity) && + Objects.equals(this.gratuities, terminalSettings.gratuities) && + Objects.equals(this.hardware, terminalSettings.hardware) && + Objects.equals(this.localization, terminalSettings.localization) && + Objects.equals(this.nexo, terminalSettings.nexo) && + Objects.equals(this.offlineProcessing, terminalSettings.offlineProcessing) && + Objects.equals(this.opi, terminalSettings.opi) && + Objects.equals(this.passcodes, terminalSettings.passcodes) && + Objects.equals(this.payAtTable, terminalSettings.payAtTable) && + Objects.equals(this.payment, terminalSettings.payment) && + Objects.equals(this.receiptOptions, terminalSettings.receiptOptions) && + Objects.equals(this.receiptPrinting, terminalSettings.receiptPrinting) && + Objects.equals(this.refunds, terminalSettings.refunds) && + Objects.equals(this.signature, terminalSettings.signature) && + Objects.equals(this.standalone, terminalSettings.standalone) && + Objects.equals(this.storeAndForward, terminalSettings.storeAndForward) && + Objects.equals(this.surcharge, terminalSettings.surcharge) && + Objects.equals(this.tapToPay, terminalSettings.tapToPay) && + Objects.equals(this.terminalInstructions, terminalSettings.terminalInstructions) && + Objects.equals(this.timeouts, terminalSettings.timeouts) && + Objects.equals(this.wifiProfiles, terminalSettings.wifiProfiles); } @Override public int hashCode() { - return Objects.hash( - cardholderReceipt, - connectivity, - gratuities, - hardware, - localization, - nexo, - offlineProcessing, - opi, - passcodes, - payAtTable, - payment, - receiptOptions, - receiptPrinting, - refunds, - signature, - standalone, - storeAndForward, - surcharge, - tapToPay, - terminalInstructions, - timeouts, - wifiProfiles); + return Objects.hash(cardholderReceipt, connectivity, gratuities, hardware, localization, nexo, offlineProcessing, opi, passcodes, payAtTable, payment, receiptOptions, receiptPrinting, refunds, signature, standalone, storeAndForward, surcharge, tapToPay, terminalInstructions, timeouts, wifiProfiles); } @Override @@ -940,9 +922,7 @@ public String toString() { sb.append(" storeAndForward: ").append(toIndentedString(storeAndForward)).append("\n"); sb.append(" surcharge: ").append(toIndentedString(surcharge)).append("\n"); sb.append(" tapToPay: ").append(toIndentedString(tapToPay)).append("\n"); - sb.append(" terminalInstructions: ") - .append(toIndentedString(terminalInstructions)) - .append("\n"); + sb.append(" terminalInstructions: ").append(toIndentedString(terminalInstructions)).append("\n"); sb.append(" timeouts: ").append(toIndentedString(timeouts)).append("\n"); sb.append(" wifiProfiles: ").append(toIndentedString(wifiProfiles)).append("\n"); sb.append("}"); @@ -950,7 +930,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -959,7 +940,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TerminalSettings given an JSON string * * @param jsonString JSON string @@ -969,12 +950,11 @@ private String toIndentedString(Object o) { public static TerminalSettings fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalSettings.class); } - - /** - * Convert an instance of TerminalSettings to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TerminalSettings to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TestCompanyWebhookRequest.java b/src/main/java/com/adyen/model/management/TestCompanyWebhookRequest.java index 56f3d3609..7c0ed51e7 100644 --- a/src/main/java/com/adyen/model/management/TestCompanyWebhookRequest.java +++ b/src/main/java/com/adyen/model/management/TestCompanyWebhookRequest.java @@ -2,29 +2,40 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.CustomNotification; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** TestCompanyWebhookRequest */ +/** + * TestCompanyWebhookRequest + */ @JsonPropertyOrder({ TestCompanyWebhookRequest.JSON_PROPERTY_MERCHANT_IDS, TestCompanyWebhookRequest.JSON_PROPERTY_NOTIFICATION, TestCompanyWebhookRequest.JSON_PROPERTY_TYPES }) + public class TestCompanyWebhookRequest { public static final String JSON_PROPERTY_MERCHANT_IDS = "merchantIds"; private List merchantIds; @@ -35,20 +46,13 @@ public class TestCompanyWebhookRequest { public static final String JSON_PROPERTY_TYPES = "types"; private List types; - public TestCompanyWebhookRequest() {} + public TestCompanyWebhookRequest() { + } /** - * List of `merchantId` values for which test webhooks will be sent. The list can have a - * maximum of 20 `merchantId` values. If not specified, we send sample notifications to - * all the merchant accounts that the webhook is configured for. If this is more than 20 merchant - * accounts, use this list to specify a subset of the merchant accounts for which to send test - * notifications. + * List of `merchantId` values for which test webhooks will be sent. The list can have a maximum of 20 `merchantId` values. If not specified, we send sample notifications to all the merchant accounts that the webhook is configured for. If this is more than 20 merchant accounts, use this list to specify a subset of the merchant accounts for which to send test notifications. * - * @param merchantIds List of `merchantId` values for which test webhooks will be sent. - * The list can have a maximum of 20 `merchantId` values. If not specified, we send - * sample notifications to all the merchant accounts that the webhook is configured for. If - * this is more than 20 merchant accounts, use this list to specify a subset of the merchant - * accounts for which to send test notifications. + * @param merchantIds List of `merchantId` values for which test webhooks will be sent. The list can have a maximum of 20 `merchantId` values. If not specified, we send sample notifications to all the merchant accounts that the webhook is configured for. If this is more than 20 merchant accounts, use this list to specify a subset of the merchant accounts for which to send test notifications. * @return the current {@code TestCompanyWebhookRequest} instance, allowing for method chaining */ public TestCompanyWebhookRequest merchantIds(List merchantIds) { @@ -65,17 +69,8 @@ public TestCompanyWebhookRequest addMerchantIdsItem(String merchantIdsItem) { } /** - * List of `merchantId` values for which test webhooks will be sent. The list can have a - * maximum of 20 `merchantId` values. If not specified, we send sample notifications to - * all the merchant accounts that the webhook is configured for. If this is more than 20 merchant - * accounts, use this list to specify a subset of the merchant accounts for which to send test - * notifications. - * - * @return merchantIds List of `merchantId` values for which test webhooks will be sent. - * The list can have a maximum of 20 `merchantId` values. If not specified, we send - * sample notifications to all the merchant accounts that the webhook is configured for. If - * this is more than 20 merchant accounts, use this list to specify a subset of the merchant - * accounts for which to send test notifications. + * List of `merchantId` values for which test webhooks will be sent. The list can have a maximum of 20 `merchantId` values. If not specified, we send sample notifications to all the merchant accounts that the webhook is configured for. If this is more than 20 merchant accounts, use this list to specify a subset of the merchant accounts for which to send test notifications. + * @return merchantIds List of `merchantId` values for which test webhooks will be sent. The list can have a maximum of 20 `merchantId` values. If not specified, we send sample notifications to all the merchant accounts that the webhook is configured for. If this is more than 20 merchant accounts, use this list to specify a subset of the merchant accounts for which to send test notifications. */ @JsonProperty(JSON_PROPERTY_MERCHANT_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -84,17 +79,9 @@ public List getMerchantIds() { } /** - * List of `merchantId` values for which test webhooks will be sent. The list can have a - * maximum of 20 `merchantId` values. If not specified, we send sample notifications to - * all the merchant accounts that the webhook is configured for. If this is more than 20 merchant - * accounts, use this list to specify a subset of the merchant accounts for which to send test - * notifications. + * List of `merchantId` values for which test webhooks will be sent. The list can have a maximum of 20 `merchantId` values. If not specified, we send sample notifications to all the merchant accounts that the webhook is configured for. If this is more than 20 merchant accounts, use this list to specify a subset of the merchant accounts for which to send test notifications. * - * @param merchantIds List of `merchantId` values for which test webhooks will be sent. - * The list can have a maximum of 20 `merchantId` values. If not specified, we send - * sample notifications to all the merchant accounts that the webhook is configured for. If - * this is more than 20 merchant accounts, use this list to specify a subset of the merchant - * accounts for which to send test notifications. + * @param merchantIds List of `merchantId` values for which test webhooks will be sent. The list can have a maximum of 20 `merchantId` values. If not specified, we send sample notifications to all the merchant accounts that the webhook is configured for. If this is more than 20 merchant accounts, use this list to specify a subset of the merchant accounts for which to send test notifications. */ @JsonProperty(JSON_PROPERTY_MERCHANT_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,7 +92,7 @@ public void setMerchantIds(List merchantIds) { /** * notification * - * @param notification + * @param notification * @return the current {@code TestCompanyWebhookRequest} instance, allowing for method chaining */ public TestCompanyWebhookRequest notification(CustomNotification notification) { @@ -115,8 +102,7 @@ public TestCompanyWebhookRequest notification(CustomNotification notification) { /** * Get notification - * - * @return notification + * @return notification */ @JsonProperty(JSON_PROPERTY_NOTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,7 +113,7 @@ public CustomNotification getNotification() { /** * notification * - * @param notification + * @param notification */ @JsonProperty(JSON_PROPERTY_NOTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,29 +122,9 @@ public void setNotification(CustomNotification notification) { } /** - * List of event codes for which to send test notifications. Only the webhook types below are - * supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * - * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * - * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * - * **CUSTOM** - set your custom notification fields in the - * [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) - * object. Possible values if webhook `type`: **banktransfer-notification**: * - * **PENDING** Possible values if webhook `type`: **report-notification**: * - * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * - * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * - * **PENDING** + * List of event codes for which to send test notifications. Only the webhook types below are supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) object. Possible values if webhook `type`: **banktransfer-notification**: * **PENDING** Possible values if webhook `type`: **report-notification**: * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * **PENDING** * - * @param types List of event codes for which to send test notifications. Only the webhook types - * below are supported. Possible values if webhook `type`: **standard**: * - * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * - * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** - * * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the - * [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) - * object. Possible values if webhook `type`: **banktransfer-notification**: * - * **PENDING** Possible values if webhook `type`: **report-notification**: * - * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * - * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * - * **PENDING** + * @param types List of event codes for which to send test notifications. Only the webhook types below are supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) object. Possible values if webhook `type`: **banktransfer-notification**: * **PENDING** Possible values if webhook `type`: **report-notification**: * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * **PENDING** * @return the current {@code TestCompanyWebhookRequest} instance, allowing for method chaining */ public TestCompanyWebhookRequest types(List types) { @@ -175,29 +141,8 @@ public TestCompanyWebhookRequest addTypesItem(String typesItem) { } /** - * List of event codes for which to send test notifications. Only the webhook types below are - * supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * - * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * - * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * - * **CUSTOM** - set your custom notification fields in the - * [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) - * object. Possible values if webhook `type`: **banktransfer-notification**: * - * **PENDING** Possible values if webhook `type`: **report-notification**: * - * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * - * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * - * **PENDING** - * - * @return types List of event codes for which to send test notifications. Only the webhook types - * below are supported. Possible values if webhook `type`: **standard**: * - * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * - * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** - * * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the - * [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) - * object. Possible values if webhook `type`: **banktransfer-notification**: * - * **PENDING** Possible values if webhook `type`: **report-notification**: * - * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * - * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * - * **PENDING** + * List of event codes for which to send test notifications. Only the webhook types below are supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) object. Possible values if webhook `type`: **banktransfer-notification**: * **PENDING** Possible values if webhook `type`: **report-notification**: * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * **PENDING** + * @return types List of event codes for which to send test notifications. Only the webhook types below are supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) object. Possible values if webhook `type`: **banktransfer-notification**: * **PENDING** Possible values if webhook `type`: **report-notification**: * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * **PENDING** */ @JsonProperty(JSON_PROPERTY_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -206,29 +151,9 @@ public List getTypes() { } /** - * List of event codes for which to send test notifications. Only the webhook types below are - * supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * - * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * - * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * - * **CUSTOM** - set your custom notification fields in the - * [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) - * object. Possible values if webhook `type`: **banktransfer-notification**: * - * **PENDING** Possible values if webhook `type`: **report-notification**: * - * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * - * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * - * **PENDING** + * List of event codes for which to send test notifications. Only the webhook types below are supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) object. Possible values if webhook `type`: **banktransfer-notification**: * **PENDING** Possible values if webhook `type`: **report-notification**: * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * **PENDING** * - * @param types List of event codes for which to send test notifications. Only the webhook types - * below are supported. Possible values if webhook `type`: **standard**: * - * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * - * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** - * * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the - * [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) - * object. Possible values if webhook `type`: **banktransfer-notification**: * - * **PENDING** Possible values if webhook `type`: **report-notification**: * - * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * - * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * - * **PENDING** + * @param types List of event codes for which to send test notifications. Only the webhook types below are supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) object. Possible values if webhook `type`: **banktransfer-notification**: * **PENDING** Possible values if webhook `type`: **report-notification**: * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * **PENDING** */ @JsonProperty(JSON_PROPERTY_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -236,7 +161,9 @@ public void setTypes(List types) { this.types = types; } - /** Return true if this TestCompanyWebhookRequest object is equal to o. */ + /** + * Return true if this TestCompanyWebhookRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -246,9 +173,9 @@ public boolean equals(Object o) { return false; } TestCompanyWebhookRequest testCompanyWebhookRequest = (TestCompanyWebhookRequest) o; - return Objects.equals(this.merchantIds, testCompanyWebhookRequest.merchantIds) - && Objects.equals(this.notification, testCompanyWebhookRequest.notification) - && Objects.equals(this.types, testCompanyWebhookRequest.types); + return Objects.equals(this.merchantIds, testCompanyWebhookRequest.merchantIds) && + Objects.equals(this.notification, testCompanyWebhookRequest.notification) && + Objects.equals(this.types, testCompanyWebhookRequest.types); } @Override @@ -268,7 +195,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -277,24 +205,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TestCompanyWebhookRequest given an JSON string * * @param jsonString JSON string * @return An instance of TestCompanyWebhookRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TestCompanyWebhookRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to TestCompanyWebhookRequest */ - public static TestCompanyWebhookRequest fromJson(String jsonString) - throws JsonProcessingException { + public static TestCompanyWebhookRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TestCompanyWebhookRequest.class); } - - /** - * Convert an instance of TestCompanyWebhookRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TestCompanyWebhookRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TestOutput.java b/src/main/java/com/adyen/model/management/TestOutput.java index 29208ff9f..6e627cd29 100644 --- a/src/main/java/com/adyen/model/management/TestOutput.java +++ b/src/main/java/com/adyen/model/management/TestOutput.java @@ -2,22 +2,31 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TestOutput */ + +/** + * TestOutput + */ @JsonPropertyOrder({ TestOutput.JSON_PROPERTY_MERCHANT_ID, TestOutput.JSON_PROPERTY_OUTPUT, @@ -26,6 +35,7 @@ TestOutput.JSON_PROPERTY_RESPONSE_TIME, TestOutput.JSON_PROPERTY_STATUS }) + public class TestOutput { public static final String JSON_PROPERTY_MERCHANT_ID = "merchantId"; private String merchantId; @@ -45,7 +55,8 @@ public class TestOutput { public static final String JSON_PROPERTY_STATUS = "status"; private String status; - public TestOutput() {} + public TestOutput() { + } /** * Unique identifier of the merchant account that the notification is about. @@ -60,7 +71,6 @@ public TestOutput merchantId(String merchantId) { /** * Unique identifier of the merchant account that the notification is about. - * * @return merchantId Unique identifier of the merchant account that the notification is about. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @@ -81,21 +91,9 @@ public void setMerchantId(String merchantId) { } /** - * A short, human-readable explanation of the test result. Your server must respond with **HTTP - * 2xx* for the test webhook to be successful (`data.status`: **success**). Find out - * more about [accepting - * notifications](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks) You can - * use the value of this field together with the - * [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) - * value to troubleshoot unsuccessful test webhooks. + * A short, human-readable explanation of the test result. Your server must respond with **HTTP 2xx* for the test webhook to be successful (`data.status`: **success**). Find out more about [accepting notifications](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks) You can use the value of this field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot unsuccessful test webhooks. * - * @param output A short, human-readable explanation of the test result. Your server must respond - * with **HTTP 2xx* for the test webhook to be successful (`data.status`: - * **success**). Find out more about [accepting - * notifications](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks) You - * can use the value of this field together with the - * [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) - * value to troubleshoot unsuccessful test webhooks. + * @param output A short, human-readable explanation of the test result. Your server must respond with **HTTP 2xx* for the test webhook to be successful (`data.status`: **success**). Find out more about [accepting notifications](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks) You can use the value of this field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot unsuccessful test webhooks. * @return the current {@code TestOutput} instance, allowing for method chaining */ public TestOutput output(String output) { @@ -104,21 +102,8 @@ public TestOutput output(String output) { } /** - * A short, human-readable explanation of the test result. Your server must respond with **HTTP - * 2xx* for the test webhook to be successful (`data.status`: **success**). Find out - * more about [accepting - * notifications](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks) You can - * use the value of this field together with the - * [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) - * value to troubleshoot unsuccessful test webhooks. - * - * @return output A short, human-readable explanation of the test result. Your server must respond - * with **HTTP 2xx* for the test webhook to be successful (`data.status`: - * **success**). Find out more about [accepting - * notifications](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks) You - * can use the value of this field together with the - * [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) - * value to troubleshoot unsuccessful test webhooks. + * A short, human-readable explanation of the test result. Your server must respond with **HTTP 2xx* for the test webhook to be successful (`data.status`: **success**). Find out more about [accepting notifications](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks) You can use the value of this field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot unsuccessful test webhooks. + * @return output A short, human-readable explanation of the test result. Your server must respond with **HTTP 2xx* for the test webhook to be successful (`data.status`: **success**). Find out more about [accepting notifications](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks) You can use the value of this field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot unsuccessful test webhooks. */ @JsonProperty(JSON_PROPERTY_OUTPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,21 +112,9 @@ public String getOutput() { } /** - * A short, human-readable explanation of the test result. Your server must respond with **HTTP - * 2xx* for the test webhook to be successful (`data.status`: **success**). Find out - * more about [accepting - * notifications](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks) You can - * use the value of this field together with the - * [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) - * value to troubleshoot unsuccessful test webhooks. + * A short, human-readable explanation of the test result. Your server must respond with **HTTP 2xx* for the test webhook to be successful (`data.status`: **success**). Find out more about [accepting notifications](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks) You can use the value of this field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot unsuccessful test webhooks. * - * @param output A short, human-readable explanation of the test result. Your server must respond - * with **HTTP 2xx* for the test webhook to be successful (`data.status`: - * **success**). Find out more about [accepting - * notifications](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks) You - * can use the value of this field together with the - * [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) - * value to troubleshoot unsuccessful test webhooks. + * @param output A short, human-readable explanation of the test result. Your server must respond with **HTTP 2xx* for the test webhook to be successful (`data.status`: **success**). Find out more about [accepting notifications](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks) You can use the value of this field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot unsuccessful test webhooks. */ @JsonProperty(JSON_PROPERTY_OUTPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,13 +123,9 @@ public void setOutput(String output) { } /** - * The [body of the notification - * webhook](https://docs.adyen.com/development-resources/webhooks/understand-notifications#notification-structure) - * that was sent to your server. + * The [body of the notification webhook](https://docs.adyen.com/development-resources/webhooks/understand-notifications#notification-structure) that was sent to your server. * - * @param requestSent The [body of the notification - * webhook](https://docs.adyen.com/development-resources/webhooks/understand-notifications#notification-structure) - * that was sent to your server. + * @param requestSent The [body of the notification webhook](https://docs.adyen.com/development-resources/webhooks/understand-notifications#notification-structure) that was sent to your server. * @return the current {@code TestOutput} instance, allowing for method chaining */ public TestOutput requestSent(String requestSent) { @@ -165,13 +134,8 @@ public TestOutput requestSent(String requestSent) { } /** - * The [body of the notification - * webhook](https://docs.adyen.com/development-resources/webhooks/understand-notifications#notification-structure) - * that was sent to your server. - * - * @return requestSent The [body of the notification - * webhook](https://docs.adyen.com/development-resources/webhooks/understand-notifications#notification-structure) - * that was sent to your server. + * The [body of the notification webhook](https://docs.adyen.com/development-resources/webhooks/understand-notifications#notification-structure) that was sent to your server. + * @return requestSent The [body of the notification webhook](https://docs.adyen.com/development-resources/webhooks/understand-notifications#notification-structure) that was sent to your server. */ @JsonProperty(JSON_PROPERTY_REQUEST_SENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -180,13 +144,9 @@ public String getRequestSent() { } /** - * The [body of the notification - * webhook](https://docs.adyen.com/development-resources/webhooks/understand-notifications#notification-structure) - * that was sent to your server. + * The [body of the notification webhook](https://docs.adyen.com/development-resources/webhooks/understand-notifications#notification-structure) that was sent to your server. * - * @param requestSent The [body of the notification - * webhook](https://docs.adyen.com/development-resources/webhooks/understand-notifications#notification-structure) - * that was sent to your server. + * @param requestSent The [body of the notification webhook](https://docs.adyen.com/development-resources/webhooks/understand-notifications#notification-structure) that was sent to your server. */ @JsonProperty(JSON_PROPERTY_REQUEST_SENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,15 +155,9 @@ public void setRequestSent(String requestSent) { } /** - * The HTTP response code for your server's response to the test webhook. You can use the - * value of this field together with the the - * [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) - * field value to troubleshoot failed test webhooks. + * The HTTP response code for your server's response to the test webhook. You can use the value of this field together with the the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field value to troubleshoot failed test webhooks. * - * @param responseCode The HTTP response code for your server's response to the test webhook. - * You can use the value of this field together with the the - * [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) - * field value to troubleshoot failed test webhooks. + * @param responseCode The HTTP response code for your server's response to the test webhook. You can use the value of this field together with the the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field value to troubleshoot failed test webhooks. * @return the current {@code TestOutput} instance, allowing for method chaining */ public TestOutput responseCode(String responseCode) { @@ -212,15 +166,8 @@ public TestOutput responseCode(String responseCode) { } /** - * The HTTP response code for your server's response to the test webhook. You can use the - * value of this field together with the the - * [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) - * field value to troubleshoot failed test webhooks. - * - * @return responseCode The HTTP response code for your server's response to the test webhook. - * You can use the value of this field together with the the - * [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) - * field value to troubleshoot failed test webhooks. + * The HTTP response code for your server's response to the test webhook. You can use the value of this field together with the the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field value to troubleshoot failed test webhooks. + * @return responseCode The HTTP response code for your server's response to the test webhook. You can use the value of this field together with the the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field value to troubleshoot failed test webhooks. */ @JsonProperty(JSON_PROPERTY_RESPONSE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -229,15 +176,9 @@ public String getResponseCode() { } /** - * The HTTP response code for your server's response to the test webhook. You can use the - * value of this field together with the the - * [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) - * field value to troubleshoot failed test webhooks. + * The HTTP response code for your server's response to the test webhook. You can use the value of this field together with the the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field value to troubleshoot failed test webhooks. * - * @param responseCode The HTTP response code for your server's response to the test webhook. - * You can use the value of this field together with the the - * [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) - * field value to troubleshoot failed test webhooks. + * @param responseCode The HTTP response code for your server's response to the test webhook. You can use the value of this field together with the the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field value to troubleshoot failed test webhooks. */ @JsonProperty(JSON_PROPERTY_RESPONSE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -246,13 +187,9 @@ public void setResponseCode(String responseCode) { } /** - * The time between sending the test webhook and receiving the response from your server. You can - * use it as an indication of how long your server takes to process a webhook notification. - * Measured in milliseconds, for example **304 ms**. + * The time between sending the test webhook and receiving the response from your server. You can use it as an indication of how long your server takes to process a webhook notification. Measured in milliseconds, for example **304 ms**. * - * @param responseTime The time between sending the test webhook and receiving the response from - * your server. You can use it as an indication of how long your server takes to process a - * webhook notification. Measured in milliseconds, for example **304 ms**. + * @param responseTime The time between sending the test webhook and receiving the response from your server. You can use it as an indication of how long your server takes to process a webhook notification. Measured in milliseconds, for example **304 ms**. * @return the current {@code TestOutput} instance, allowing for method chaining */ public TestOutput responseTime(String responseTime) { @@ -261,13 +198,8 @@ public TestOutput responseTime(String responseTime) { } /** - * The time between sending the test webhook and receiving the response from your server. You can - * use it as an indication of how long your server takes to process a webhook notification. - * Measured in milliseconds, for example **304 ms**. - * - * @return responseTime The time between sending the test webhook and receiving the response from - * your server. You can use it as an indication of how long your server takes to process a - * webhook notification. Measured in milliseconds, for example **304 ms**. + * The time between sending the test webhook and receiving the response from your server. You can use it as an indication of how long your server takes to process a webhook notification. Measured in milliseconds, for example **304 ms**. + * @return responseTime The time between sending the test webhook and receiving the response from your server. You can use it as an indication of how long your server takes to process a webhook notification. Measured in milliseconds, for example **304 ms**. */ @JsonProperty(JSON_PROPERTY_RESPONSE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -276,13 +208,9 @@ public String getResponseTime() { } /** - * The time between sending the test webhook and receiving the response from your server. You can - * use it as an indication of how long your server takes to process a webhook notification. - * Measured in milliseconds, for example **304 ms**. + * The time between sending the test webhook and receiving the response from your server. You can use it as an indication of how long your server takes to process a webhook notification. Measured in milliseconds, for example **304 ms**. * - * @param responseTime The time between sending the test webhook and receiving the response from - * your server. You can use it as an indication of how long your server takes to process a - * webhook notification. Measured in milliseconds, for example **304 ms**. + * @param responseTime The time between sending the test webhook and receiving the response from your server. You can use it as an indication of how long your server takes to process a webhook notification. Measured in milliseconds, for example **304 ms**. */ @JsonProperty(JSON_PROPERTY_RESPONSE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -291,21 +219,9 @@ public void setResponseTime(String responseTime) { } /** - * The status of the test request. Possible values are: * **success**, - * `data.responseCode`: **2xx**. * **failed**, in all other cases. You can use the value - * of the - * [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) - * field together with the - * [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) - * value to troubleshoot failed test webhooks. + * The status of the test request. Possible values are: * **success**, `data.responseCode`: **2xx**. * **failed**, in all other cases. You can use the value of the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot failed test webhooks. * - * @param status The status of the test request. Possible values are: * **success**, - * `data.responseCode`: **2xx**. * **failed**, in all other cases. You can use the - * value of the - * [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) - * field together with the - * [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) - * value to troubleshoot failed test webhooks. + * @param status The status of the test request. Possible values are: * **success**, `data.responseCode`: **2xx**. * **failed**, in all other cases. You can use the value of the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot failed test webhooks. * @return the current {@code TestOutput} instance, allowing for method chaining */ public TestOutput status(String status) { @@ -314,21 +230,8 @@ public TestOutput status(String status) { } /** - * The status of the test request. Possible values are: * **success**, - * `data.responseCode`: **2xx**. * **failed**, in all other cases. You can use the value - * of the - * [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) - * field together with the - * [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) - * value to troubleshoot failed test webhooks. - * - * @return status The status of the test request. Possible values are: * **success**, - * `data.responseCode`: **2xx**. * **failed**, in all other cases. You can use the - * value of the - * [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) - * field together with the - * [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) - * value to troubleshoot failed test webhooks. + * The status of the test request. Possible values are: * **success**, `data.responseCode`: **2xx**. * **failed**, in all other cases. You can use the value of the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot failed test webhooks. + * @return status The status of the test request. Possible values are: * **success**, `data.responseCode`: **2xx**. * **failed**, in all other cases. You can use the value of the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot failed test webhooks. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -337,21 +240,9 @@ public String getStatus() { } /** - * The status of the test request. Possible values are: * **success**, - * `data.responseCode`: **2xx**. * **failed**, in all other cases. You can use the value - * of the - * [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) - * field together with the - * [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) - * value to troubleshoot failed test webhooks. + * The status of the test request. Possible values are: * **success**, `data.responseCode`: **2xx**. * **failed**, in all other cases. You can use the value of the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot failed test webhooks. * - * @param status The status of the test request. Possible values are: * **success**, - * `data.responseCode`: **2xx**. * **failed**, in all other cases. You can use the - * value of the - * [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) - * field together with the - * [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) - * value to troubleshoot failed test webhooks. + * @param status The status of the test request. Possible values are: * **success**, `data.responseCode`: **2xx**. * **failed**, in all other cases. You can use the value of the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot failed test webhooks. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -359,7 +250,9 @@ public void setStatus(String status) { this.status = status; } - /** Return true if this TestOutput object is equal to o. */ + /** + * Return true if this TestOutput object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -369,12 +262,12 @@ public boolean equals(Object o) { return false; } TestOutput testOutput = (TestOutput) o; - return Objects.equals(this.merchantId, testOutput.merchantId) - && Objects.equals(this.output, testOutput.output) - && Objects.equals(this.requestSent, testOutput.requestSent) - && Objects.equals(this.responseCode, testOutput.responseCode) - && Objects.equals(this.responseTime, testOutput.responseTime) - && Objects.equals(this.status, testOutput.status); + return Objects.equals(this.merchantId, testOutput.merchantId) && + Objects.equals(this.output, testOutput.output) && + Objects.equals(this.requestSent, testOutput.requestSent) && + Objects.equals(this.responseCode, testOutput.responseCode) && + Objects.equals(this.responseTime, testOutput.responseTime) && + Objects.equals(this.status, testOutput.status); } @Override @@ -397,7 +290,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -406,7 +300,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TestOutput given an JSON string * * @param jsonString JSON string @@ -416,12 +310,11 @@ private String toIndentedString(Object o) { public static TestOutput fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TestOutput.class); } - - /** - * Convert an instance of TestOutput to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TestOutput to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TestWebhookRequest.java b/src/main/java/com/adyen/model/management/TestWebhookRequest.java index e36308bf5..3f32ff6c9 100644 --- a/src/main/java/com/adyen/model/management/TestWebhookRequest.java +++ b/src/main/java/com/adyen/model/management/TestWebhookRequest.java @@ -2,28 +2,39 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.CustomNotification; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** TestWebhookRequest */ +/** + * TestWebhookRequest + */ @JsonPropertyOrder({ TestWebhookRequest.JSON_PROPERTY_NOTIFICATION, TestWebhookRequest.JSON_PROPERTY_TYPES }) + public class TestWebhookRequest { public static final String JSON_PROPERTY_NOTIFICATION = "notification"; private CustomNotification notification; @@ -31,12 +42,13 @@ public class TestWebhookRequest { public static final String JSON_PROPERTY_TYPES = "types"; private List types; - public TestWebhookRequest() {} + public TestWebhookRequest() { + } /** * notification * - * @param notification + * @param notification * @return the current {@code TestWebhookRequest} instance, allowing for method chaining */ public TestWebhookRequest notification(CustomNotification notification) { @@ -46,8 +58,7 @@ public TestWebhookRequest notification(CustomNotification notification) { /** * Get notification - * - * @return notification + * @return notification */ @JsonProperty(JSON_PROPERTY_NOTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,7 +69,7 @@ public CustomNotification getNotification() { /** * notification * - * @param notification + * @param notification */ @JsonProperty(JSON_PROPERTY_NOTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -67,29 +78,9 @@ public void setNotification(CustomNotification notification) { } /** - * List of event codes for which to send test notifications. Only the webhook types below are - * supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * - * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * - * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * - * **CUSTOM** - set your custom notification fields in the - * [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) - * object. Possible values if webhook `type`: **banktransfer-notification**: * - * **PENDING** Possible values if webhook `type`: **report-notification**: * - * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * - * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * - * **PENDING** + * List of event codes for which to send test notifications. Only the webhook types below are supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) object. Possible values if webhook `type`: **banktransfer-notification**: * **PENDING** Possible values if webhook `type`: **report-notification**: * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * **PENDING** * - * @param types List of event codes for which to send test notifications. Only the webhook types - * below are supported. Possible values if webhook `type`: **standard**: * - * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * - * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** - * * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the - * [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) - * object. Possible values if webhook `type`: **banktransfer-notification**: * - * **PENDING** Possible values if webhook `type`: **report-notification**: * - * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * - * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * - * **PENDING** + * @param types List of event codes for which to send test notifications. Only the webhook types below are supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) object. Possible values if webhook `type`: **banktransfer-notification**: * **PENDING** Possible values if webhook `type`: **report-notification**: * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * **PENDING** * @return the current {@code TestWebhookRequest} instance, allowing for method chaining */ public TestWebhookRequest types(List types) { @@ -106,29 +97,8 @@ public TestWebhookRequest addTypesItem(String typesItem) { } /** - * List of event codes for which to send test notifications. Only the webhook types below are - * supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * - * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * - * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * - * **CUSTOM** - set your custom notification fields in the - * [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) - * object. Possible values if webhook `type`: **banktransfer-notification**: * - * **PENDING** Possible values if webhook `type`: **report-notification**: * - * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * - * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * - * **PENDING** - * - * @return types List of event codes for which to send test notifications. Only the webhook types - * below are supported. Possible values if webhook `type`: **standard**: * - * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * - * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** - * * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the - * [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) - * object. Possible values if webhook `type`: **banktransfer-notification**: * - * **PENDING** Possible values if webhook `type`: **report-notification**: * - * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * - * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * - * **PENDING** + * List of event codes for which to send test notifications. Only the webhook types below are supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) object. Possible values if webhook `type`: **banktransfer-notification**: * **PENDING** Possible values if webhook `type`: **report-notification**: * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * **PENDING** + * @return types List of event codes for which to send test notifications. Only the webhook types below are supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) object. Possible values if webhook `type`: **banktransfer-notification**: * **PENDING** Possible values if webhook `type`: **report-notification**: * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * **PENDING** */ @JsonProperty(JSON_PROPERTY_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,29 +107,9 @@ public List getTypes() { } /** - * List of event codes for which to send test notifications. Only the webhook types below are - * supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * - * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * - * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * - * **CUSTOM** - set your custom notification fields in the - * [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) - * object. Possible values if webhook `type`: **banktransfer-notification**: * - * **PENDING** Possible values if webhook `type`: **report-notification**: * - * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * - * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * - * **PENDING** + * List of event codes for which to send test notifications. Only the webhook types below are supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) object. Possible values if webhook `type`: **banktransfer-notification**: * **PENDING** Possible values if webhook `type`: **report-notification**: * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * **PENDING** * - * @param types List of event codes for which to send test notifications. Only the webhook types - * below are supported. Possible values if webhook `type`: **standard**: * - * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * - * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** - * * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the - * [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) - * object. Possible values if webhook `type`: **banktransfer-notification**: * - * **PENDING** Possible values if webhook `type`: **report-notification**: * - * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * - * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * - * **PENDING** + * @param types List of event codes for which to send test notifications. Only the webhook types below are supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) object. Possible values if webhook `type`: **banktransfer-notification**: * **PENDING** Possible values if webhook `type`: **report-notification**: * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * **PENDING** */ @JsonProperty(JSON_PROPERTY_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,7 +117,9 @@ public void setTypes(List types) { this.types = types; } - /** Return true if this TestWebhookRequest object is equal to o. */ + /** + * Return true if this TestWebhookRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -177,8 +129,8 @@ public boolean equals(Object o) { return false; } TestWebhookRequest testWebhookRequest = (TestWebhookRequest) o; - return Objects.equals(this.notification, testWebhookRequest.notification) - && Objects.equals(this.types, testWebhookRequest.types); + return Objects.equals(this.notification, testWebhookRequest.notification) && + Objects.equals(this.types, testWebhookRequest.types); } @Override @@ -197,7 +149,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -206,23 +159,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TestWebhookRequest given an JSON string * * @param jsonString JSON string * @return An instance of TestWebhookRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TestWebhookRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to TestWebhookRequest */ public static TestWebhookRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TestWebhookRequest.class); } - - /** - * Convert an instance of TestWebhookRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TestWebhookRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TestWebhookResponse.java b/src/main/java/com/adyen/model/management/TestWebhookResponse.java index a349f293e..96a4899a6 100644 --- a/src/main/java/com/adyen/model/management/TestWebhookResponse.java +++ b/src/main/java/com/adyen/model/management/TestWebhookResponse.java @@ -2,36 +2,49 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.TestOutput; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * TestWebhookResponse + */ +@JsonPropertyOrder({ + TestWebhookResponse.JSON_PROPERTY_DATA +}) -/** TestWebhookResponse */ -@JsonPropertyOrder({TestWebhookResponse.JSON_PROPERTY_DATA}) public class TestWebhookResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; - public TestWebhookResponse() {} + public TestWebhookResponse() { + } /** * List with test results. Each test webhook we send has a list element with the result. * - * @param data List with test results. Each test webhook we send has a list element with the - * result. + * @param data List with test results. Each test webhook we send has a list element with the result. * @return the current {@code TestWebhookResponse} instance, allowing for method chaining */ public TestWebhookResponse data(List data) { @@ -49,9 +62,7 @@ public TestWebhookResponse addDataItem(TestOutput dataItem) { /** * List with test results. Each test webhook we send has a list element with the result. - * - * @return data List with test results. Each test webhook we send has a list element with the - * result. + * @return data List with test results. Each test webhook we send has a list element with the result. */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -62,8 +73,7 @@ public List getData() { /** * List with test results. Each test webhook we send has a list element with the result. * - * @param data List with test results. Each test webhook we send has a list element with the - * result. + * @param data List with test results. Each test webhook we send has a list element with the result. */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,7 +81,9 @@ public void setData(List data) { this.data = data; } - /** Return true if this TestWebhookResponse object is equal to o. */ + /** + * Return true if this TestWebhookResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -99,7 +111,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -108,23 +121,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TestWebhookResponse given an JSON string * * @param jsonString JSON string * @return An instance of TestWebhookResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TestWebhookResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to TestWebhookResponse */ public static TestWebhookResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TestWebhookResponse.class); } - - /** - * Convert an instance of TestWebhookResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TestWebhookResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TicketInfo.java b/src/main/java/com/adyen/model/management/TicketInfo.java index d7310398e..003feffa1 100644 --- a/src/main/java/com/adyen/model/management/TicketInfo.java +++ b/src/main/java/com/adyen/model/management/TicketInfo.java @@ -2,28 +2,41 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TicketInfo */ -@JsonPropertyOrder({TicketInfo.JSON_PROPERTY_REQUESTOR_ID}) + +/** + * TicketInfo + */ +@JsonPropertyOrder({ + TicketInfo.JSON_PROPERTY_REQUESTOR_ID +}) + public class TicketInfo { public static final String JSON_PROPERTY_REQUESTOR_ID = "requestorId"; private String requestorId; - public TicketInfo() {} + public TicketInfo() { + } /** * Ticket requestorId @@ -38,7 +51,6 @@ public TicketInfo requestorId(String requestorId) { /** * Ticket requestorId - * * @return requestorId Ticket requestorId */ @JsonProperty(JSON_PROPERTY_REQUESTOR_ID) @@ -58,7 +70,9 @@ public void setRequestorId(String requestorId) { this.requestorId = requestorId; } - /** Return true if this TicketInfo object is equal to o. */ + /** + * Return true if this TicketInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,7 +110,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TicketInfo given an JSON string * * @param jsonString JSON string @@ -105,12 +120,11 @@ private String toIndentedString(Object o) { public static TicketInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TicketInfo.class); } - - /** - * Convert an instance of TicketInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TicketInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Timeouts.java b/src/main/java/com/adyen/model/management/Timeouts.java index 640f0163b..7399c8a1f 100644 --- a/src/main/java/com/adyen/model/management/Timeouts.java +++ b/src/main/java/com/adyen/model/management/Timeouts.java @@ -2,35 +2,46 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Timeouts */ -@JsonPropertyOrder({Timeouts.JSON_PROPERTY_FROM_ACTIVE_TO_SLEEP}) + +/** + * Timeouts + */ +@JsonPropertyOrder({ + Timeouts.JSON_PROPERTY_FROM_ACTIVE_TO_SLEEP +}) + public class Timeouts { public static final String JSON_PROPERTY_FROM_ACTIVE_TO_SLEEP = "fromActiveToSleep"; private Integer fromActiveToSleep; - public Timeouts() {} + public Timeouts() { + } /** - * Indicates the number of seconds of inactivity after which the terminal display goes into sleep - * mode. + * Indicates the number of seconds of inactivity after which the terminal display goes into sleep mode. * - * @param fromActiveToSleep Indicates the number of seconds of inactivity after which the terminal - * display goes into sleep mode. + * @param fromActiveToSleep Indicates the number of seconds of inactivity after which the terminal display goes into sleep mode. * @return the current {@code Timeouts} instance, allowing for method chaining */ public Timeouts fromActiveToSleep(Integer fromActiveToSleep) { @@ -39,11 +50,8 @@ public Timeouts fromActiveToSleep(Integer fromActiveToSleep) { } /** - * Indicates the number of seconds of inactivity after which the terminal display goes into sleep - * mode. - * - * @return fromActiveToSleep Indicates the number of seconds of inactivity after which the - * terminal display goes into sleep mode. + * Indicates the number of seconds of inactivity after which the terminal display goes into sleep mode. + * @return fromActiveToSleep Indicates the number of seconds of inactivity after which the terminal display goes into sleep mode. */ @JsonProperty(JSON_PROPERTY_FROM_ACTIVE_TO_SLEEP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -52,11 +60,9 @@ public Integer getFromActiveToSleep() { } /** - * Indicates the number of seconds of inactivity after which the terminal display goes into sleep - * mode. + * Indicates the number of seconds of inactivity after which the terminal display goes into sleep mode. * - * @param fromActiveToSleep Indicates the number of seconds of inactivity after which the terminal - * display goes into sleep mode. + * @param fromActiveToSleep Indicates the number of seconds of inactivity after which the terminal display goes into sleep mode. */ @JsonProperty(JSON_PROPERTY_FROM_ACTIVE_TO_SLEEP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,7 +70,9 @@ public void setFromActiveToSleep(Integer fromActiveToSleep) { this.fromActiveToSleep = fromActiveToSleep; } - /** Return true if this Timeouts object is equal to o. */ + /** + * Return true if this Timeouts object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -92,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -101,7 +110,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Timeouts given an JSON string * * @param jsonString JSON string @@ -111,12 +120,11 @@ private String toIndentedString(Object o) { public static Timeouts fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Timeouts.class); } - - /** - * Convert an instance of Timeouts to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Timeouts to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TransactionDescriptionInfo.java b/src/main/java/com/adyen/model/management/TransactionDescriptionInfo.java index d4ded9458..cb8ba1126 100644 --- a/src/main/java/com/adyen/model/management/TransactionDescriptionInfo.java +++ b/src/main/java/com/adyen/model/management/TransactionDescriptionInfo.java @@ -2,47 +2,45 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** TransactionDescriptionInfo */ +/** + * TransactionDescriptionInfo + */ @JsonPropertyOrder({ TransactionDescriptionInfo.JSON_PROPERTY_DOING_BUSINESS_AS_NAME, TransactionDescriptionInfo.JSON_PROPERTY_TYPE }) + public class TransactionDescriptionInfo { public static final String JSON_PROPERTY_DOING_BUSINESS_AS_NAME = "doingBusinessAsName"; private String doingBusinessAsName; /** - * The type of transaction description you want to use: - **fixed**: The transaction description - * set in this request is used for all payments with this payment method. - **append**: The - * transaction description set in this request is used as a base for all payments with this - * payment method. The [transaction description set in the request to process the - * payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) - * is appended to this base description. Note that if the combined length exceeds 22 characters, - * banks may truncate the string. - **dynamic**: Only the [transaction description set in the - * request to process the - * payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) - * is used for payments with this payment method. + * The type of transaction description you want to use: - **fixed**: The transaction description set in this request is used for all payments with this payment method. - **append**: The transaction description set in this request is used as a base for all payments with this payment method. The [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is appended to this base description. Note that if the combined length exceeds 22 characters, banks may truncate the string. - **dynamic**: Only the [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is used for payments with this payment method. */ public enum TypeEnum { + APPEND(String.valueOf("append")), DYNAMIC(String.valueOf("dynamic")), @@ -54,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -75,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -87,17 +81,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public TransactionDescriptionInfo() {} + public TransactionDescriptionInfo() { + } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 - * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, - * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param doingBusinessAsName The text to be shown on the shopper's bank statement. We - * recommend sending a maximum of 22 characters, otherwise banks might truncate the string. - * Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - * - ? + * /_**. + * @param doingBusinessAsName The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * @return the current {@code TransactionDescriptionInfo} instance, allowing for method chaining */ public TransactionDescriptionInfo doingBusinessAsName(String doingBusinessAsName) { @@ -106,14 +96,8 @@ public TransactionDescriptionInfo doingBusinessAsName(String doingBusinessAsName } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 - * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, - * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. - * - * @return doingBusinessAsName The text to be shown on the shopper's bank statement. We - * recommend sending a maximum of 22 characters, otherwise banks might truncate the string. - * Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - * - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * @return doingBusinessAsName The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. */ @JsonProperty(JSON_PROPERTY_DOING_BUSINESS_AS_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -122,14 +106,9 @@ public String getDoingBusinessAsName() { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 - * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, - * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param doingBusinessAsName The text to be shown on the shopper's bank statement. We - * recommend sending a maximum of 22 characters, otherwise banks might truncate the string. - * Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - * - ? + * /_**. + * @param doingBusinessAsName The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. */ @JsonProperty(JSON_PROPERTY_DOING_BUSINESS_AS_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,28 +117,9 @@ public void setDoingBusinessAsName(String doingBusinessAsName) { } /** - * The type of transaction description you want to use: - **fixed**: The transaction description - * set in this request is used for all payments with this payment method. - **append**: The - * transaction description set in this request is used as a base for all payments with this - * payment method. The [transaction description set in the request to process the - * payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) - * is appended to this base description. Note that if the combined length exceeds 22 characters, - * banks may truncate the string. - **dynamic**: Only the [transaction description set in the - * request to process the - * payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) - * is used for payments with this payment method. + * The type of transaction description you want to use: - **fixed**: The transaction description set in this request is used for all payments with this payment method. - **append**: The transaction description set in this request is used as a base for all payments with this payment method. The [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is appended to this base description. Note that if the combined length exceeds 22 characters, banks may truncate the string. - **dynamic**: Only the [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is used for payments with this payment method. * - * @param type The type of transaction description you want to use: - **fixed**: The transaction - * description set in this request is used for all payments with this payment method. - - * **append**: The transaction description set in this request is used as a base for all - * payments with this payment method. The [transaction description set in the request to - * process the - * payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) - * is appended to this base description. Note that if the combined length exceeds 22 - * characters, banks may truncate the string. - **dynamic**: Only the [transaction description - * set in the request to process the - * payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) - * is used for payments with this payment method. + * @param type The type of transaction description you want to use: - **fixed**: The transaction description set in this request is used for all payments with this payment method. - **append**: The transaction description set in this request is used as a base for all payments with this payment method. The [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is appended to this base description. Note that if the combined length exceeds 22 characters, banks may truncate the string. - **dynamic**: Only the [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is used for payments with this payment method. * @return the current {@code TransactionDescriptionInfo} instance, allowing for method chaining */ public TransactionDescriptionInfo type(TypeEnum type) { @@ -168,28 +128,8 @@ public TransactionDescriptionInfo type(TypeEnum type) { } /** - * The type of transaction description you want to use: - **fixed**: The transaction description - * set in this request is used for all payments with this payment method. - **append**: The - * transaction description set in this request is used as a base for all payments with this - * payment method. The [transaction description set in the request to process the - * payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) - * is appended to this base description. Note that if the combined length exceeds 22 characters, - * banks may truncate the string. - **dynamic**: Only the [transaction description set in the - * request to process the - * payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) - * is used for payments with this payment method. - * - * @return type The type of transaction description you want to use: - **fixed**: The transaction - * description set in this request is used for all payments with this payment method. - - * **append**: The transaction description set in this request is used as a base for all - * payments with this payment method. The [transaction description set in the request to - * process the - * payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) - * is appended to this base description. Note that if the combined length exceeds 22 - * characters, banks may truncate the string. - **dynamic**: Only the [transaction description - * set in the request to process the - * payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) - * is used for payments with this payment method. + * The type of transaction description you want to use: - **fixed**: The transaction description set in this request is used for all payments with this payment method. - **append**: The transaction description set in this request is used as a base for all payments with this payment method. The [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is appended to this base description. Note that if the combined length exceeds 22 characters, banks may truncate the string. - **dynamic**: Only the [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is used for payments with this payment method. + * @return type The type of transaction description you want to use: - **fixed**: The transaction description set in this request is used for all payments with this payment method. - **append**: The transaction description set in this request is used as a base for all payments with this payment method. The [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is appended to this base description. Note that if the combined length exceeds 22 characters, banks may truncate the string. - **dynamic**: Only the [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is used for payments with this payment method. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,28 +138,9 @@ public TypeEnum getType() { } /** - * The type of transaction description you want to use: - **fixed**: The transaction description - * set in this request is used for all payments with this payment method. - **append**: The - * transaction description set in this request is used as a base for all payments with this - * payment method. The [transaction description set in the request to process the - * payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) - * is appended to this base description. Note that if the combined length exceeds 22 characters, - * banks may truncate the string. - **dynamic**: Only the [transaction description set in the - * request to process the - * payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) - * is used for payments with this payment method. + * The type of transaction description you want to use: - **fixed**: The transaction description set in this request is used for all payments with this payment method. - **append**: The transaction description set in this request is used as a base for all payments with this payment method. The [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is appended to this base description. Note that if the combined length exceeds 22 characters, banks may truncate the string. - **dynamic**: Only the [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is used for payments with this payment method. * - * @param type The type of transaction description you want to use: - **fixed**: The transaction - * description set in this request is used for all payments with this payment method. - - * **append**: The transaction description set in this request is used as a base for all - * payments with this payment method. The [transaction description set in the request to - * process the - * payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) - * is appended to this base description. Note that if the combined length exceeds 22 - * characters, banks may truncate the string. - **dynamic**: Only the [transaction description - * set in the request to process the - * payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) - * is used for payments with this payment method. + * @param type The type of transaction description you want to use: - **fixed**: The transaction description set in this request is used for all payments with this payment method. - **append**: The transaction description set in this request is used as a base for all payments with this payment method. The [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is appended to this base description. Note that if the combined length exceeds 22 characters, banks may truncate the string. - **dynamic**: Only the [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is used for payments with this payment method. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -227,7 +148,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this TransactionDescriptionInfo object is equal to o. */ + /** + * Return true if this TransactionDescriptionInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -237,8 +160,8 @@ public boolean equals(Object o) { return false; } TransactionDescriptionInfo transactionDescriptionInfo = (TransactionDescriptionInfo) o; - return Objects.equals(this.doingBusinessAsName, transactionDescriptionInfo.doingBusinessAsName) - && Objects.equals(this.type, transactionDescriptionInfo.type); + return Objects.equals(this.doingBusinessAsName, transactionDescriptionInfo.doingBusinessAsName) && + Objects.equals(this.type, transactionDescriptionInfo.type); } @Override @@ -250,16 +173,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TransactionDescriptionInfo {\n"); - sb.append(" doingBusinessAsName: ") - .append(toIndentedString(doingBusinessAsName)) - .append("\n"); + sb.append(" doingBusinessAsName: ").append(toIndentedString(doingBusinessAsName)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -268,24 +190,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransactionDescriptionInfo given an JSON string * * @param jsonString JSON string * @return An instance of TransactionDescriptionInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionDescriptionInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionDescriptionInfo */ - public static TransactionDescriptionInfo fromJson(String jsonString) - throws JsonProcessingException { + public static TransactionDescriptionInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionDescriptionInfo.class); } - - /** - * Convert an instance of TransactionDescriptionInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransactionDescriptionInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TwintInfo.java b/src/main/java/com/adyen/model/management/TwintInfo.java index f74d93b6d..b343eceae 100644 --- a/src/main/java/com/adyen/model/management/TwintInfo.java +++ b/src/main/java/com/adyen/model/management/TwintInfo.java @@ -2,28 +2,41 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TwintInfo */ -@JsonPropertyOrder({TwintInfo.JSON_PROPERTY_LOGO}) + +/** + * TwintInfo + */ +@JsonPropertyOrder({ + TwintInfo.JSON_PROPERTY_LOGO +}) + public class TwintInfo { public static final String JSON_PROPERTY_LOGO = "logo"; private String logo; - public TwintInfo() {} + public TwintInfo() { + } /** * Twint logo. Format: Base64-encoded string. @@ -38,7 +51,6 @@ public TwintInfo logo(String logo) { /** * Twint logo. Format: Base64-encoded string. - * * @return logo Twint logo. Format: Base64-encoded string. */ @JsonProperty(JSON_PROPERTY_LOGO) @@ -58,7 +70,9 @@ public void setLogo(String logo) { this.logo = logo; } - /** Return true if this TwintInfo object is equal to o. */ + /** + * Return true if this TwintInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,7 +110,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TwintInfo given an JSON string * * @param jsonString JSON string @@ -105,12 +120,11 @@ private String toIndentedString(Object o) { public static TwintInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TwintInfo.class); } - - /** - * Convert an instance of TwintInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TwintInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/UninstallAndroidAppDetails.java b/src/main/java/com/adyen/model/management/UninstallAndroidAppDetails.java index 263fa99d4..26580ca10 100644 --- a/src/main/java/com/adyen/model/management/UninstallAndroidAppDetails.java +++ b/src/main/java/com/adyen/model/management/UninstallAndroidAppDetails.java @@ -2,36 +2,45 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** UninstallAndroidAppDetails */ + +/** + * UninstallAndroidAppDetails + */ @JsonPropertyOrder({ UninstallAndroidAppDetails.JSON_PROPERTY_APP_ID, UninstallAndroidAppDetails.JSON_PROPERTY_TYPE }) + public class UninstallAndroidAppDetails { public static final String JSON_PROPERTY_APP_ID = "appId"; private String appId; - /** Type of terminal action: Uninstall an Android app. */ + /** + * Type of terminal action: Uninstall an Android app. + */ public enum TypeEnum { + UNINSTALLANDROIDAPP(String.valueOf("UninstallAndroidApp")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -39,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -72,7 +77,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public UninstallAndroidAppDetails() {} + public UninstallAndroidAppDetails() { + } /** * The unique identifier of the app to be uninstalled. @@ -87,7 +93,6 @@ public UninstallAndroidAppDetails appId(String appId) { /** * The unique identifier of the app to be uninstalled. - * * @return appId The unique identifier of the app to be uninstalled. */ @JsonProperty(JSON_PROPERTY_APP_ID) @@ -120,7 +125,6 @@ public UninstallAndroidAppDetails type(TypeEnum type) { /** * Type of terminal action: Uninstall an Android app. - * * @return type Type of terminal action: Uninstall an Android app. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -140,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this UninstallAndroidAppDetails object is equal to o. */ + /** + * Return true if this UninstallAndroidAppDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -150,8 +156,8 @@ public boolean equals(Object o) { return false; } UninstallAndroidAppDetails uninstallAndroidAppDetails = (UninstallAndroidAppDetails) o; - return Objects.equals(this.appId, uninstallAndroidAppDetails.appId) - && Objects.equals(this.type, uninstallAndroidAppDetails.type); + return Objects.equals(this.appId, uninstallAndroidAppDetails.appId) && + Objects.equals(this.type, uninstallAndroidAppDetails.type); } @Override @@ -170,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -179,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of UninstallAndroidAppDetails given an JSON string * * @param jsonString JSON string * @return An instance of UninstallAndroidAppDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UninstallAndroidAppDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to UninstallAndroidAppDetails */ - public static UninstallAndroidAppDetails fromJson(String jsonString) - throws JsonProcessingException { + public static UninstallAndroidAppDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UninstallAndroidAppDetails.class); } - - /** - * Convert an instance of UninstallAndroidAppDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of UninstallAndroidAppDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/UninstallAndroidCertificateDetails.java b/src/main/java/com/adyen/model/management/UninstallAndroidCertificateDetails.java index 7c5efcfef..b968888c2 100644 --- a/src/main/java/com/adyen/model/management/UninstallAndroidCertificateDetails.java +++ b/src/main/java/com/adyen/model/management/UninstallAndroidCertificateDetails.java @@ -2,36 +2,45 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** UninstallAndroidCertificateDetails */ + +/** + * UninstallAndroidCertificateDetails + */ @JsonPropertyOrder({ UninstallAndroidCertificateDetails.JSON_PROPERTY_CERTIFICATE_ID, UninstallAndroidCertificateDetails.JSON_PROPERTY_TYPE }) + public class UninstallAndroidCertificateDetails { public static final String JSON_PROPERTY_CERTIFICATE_ID = "certificateId"; private String certificateId; - /** Type of terminal action: Uninstall an Android certificate. */ + /** + * Type of terminal action: Uninstall an Android certificate. + */ public enum TypeEnum { + UNINSTALLANDROIDCERTIFICATE(String.valueOf("UninstallAndroidCertificate")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -39,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -72,14 +77,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public UninstallAndroidCertificateDetails() {} + public UninstallAndroidCertificateDetails() { + } /** * The unique identifier of the certificate to be uninstalled. * * @param certificateId The unique identifier of the certificate to be uninstalled. - * @return the current {@code UninstallAndroidCertificateDetails} instance, allowing for method - * chaining + * @return the current {@code UninstallAndroidCertificateDetails} instance, allowing for method chaining */ public UninstallAndroidCertificateDetails certificateId(String certificateId) { this.certificateId = certificateId; @@ -88,7 +93,6 @@ public UninstallAndroidCertificateDetails certificateId(String certificateId) { /** * The unique identifier of the certificate to be uninstalled. - * * @return certificateId The unique identifier of the certificate to be uninstalled. */ @JsonProperty(JSON_PROPERTY_CERTIFICATE_ID) @@ -112,8 +116,7 @@ public void setCertificateId(String certificateId) { * Type of terminal action: Uninstall an Android certificate. * * @param type Type of terminal action: Uninstall an Android certificate. - * @return the current {@code UninstallAndroidCertificateDetails} instance, allowing for method - * chaining + * @return the current {@code UninstallAndroidCertificateDetails} instance, allowing for method chaining */ public UninstallAndroidCertificateDetails type(TypeEnum type) { this.type = type; @@ -122,7 +125,6 @@ public UninstallAndroidCertificateDetails type(TypeEnum type) { /** * Type of terminal action: Uninstall an Android certificate. - * * @return type Type of terminal action: Uninstall an Android certificate. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -142,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this UninstallAndroidCertificateDetails object is equal to o. */ + /** + * Return true if this UninstallAndroidCertificateDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -151,10 +155,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UninstallAndroidCertificateDetails uninstallAndroidCertificateDetails = - (UninstallAndroidCertificateDetails) o; - return Objects.equals(this.certificateId, uninstallAndroidCertificateDetails.certificateId) - && Objects.equals(this.type, uninstallAndroidCertificateDetails.type); + UninstallAndroidCertificateDetails uninstallAndroidCertificateDetails = (UninstallAndroidCertificateDetails) o; + return Objects.equals(this.certificateId, uninstallAndroidCertificateDetails.certificateId) && + Objects.equals(this.type, uninstallAndroidCertificateDetails.type); } @Override @@ -173,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of UninstallAndroidCertificateDetails given an JSON string * * @param jsonString JSON string * @return An instance of UninstallAndroidCertificateDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UninstallAndroidCertificateDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to UninstallAndroidCertificateDetails */ - public static UninstallAndroidCertificateDetails fromJson(String jsonString) - throws JsonProcessingException { + public static UninstallAndroidCertificateDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UninstallAndroidCertificateDetails.class); } - - /** - * Convert an instance of UninstallAndroidCertificateDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of UninstallAndroidCertificateDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Unreferenced.java b/src/main/java/com/adyen/model/management/Unreferenced.java new file mode 100644 index 000000000..b36e7fa9f --- /dev/null +++ b/src/main/java/com/adyen/model/management/Unreferenced.java @@ -0,0 +1,131 @@ +/* + * Management API + * + * The version of the OpenAPI document: 3 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.adyen.model.management; + +import java.util.*; +import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * Unreferenced + */ +@JsonPropertyOrder({ + Unreferenced.JSON_PROPERTY_ENABLE_UNREFERENCED_REFUNDS +}) + +public class Unreferenced { + public static final String JSON_PROPERTY_ENABLE_UNREFERENCED_REFUNDS = "enableUnreferencedRefunds"; + private Boolean enableUnreferencedRefunds; + + public Unreferenced() { + } + + /** + * Indicates whether unreferenced refunds are enabled on the terminal. + * + * @param enableUnreferencedRefunds Indicates whether unreferenced refunds are enabled on the terminal. + * @return the current {@code Unreferenced} instance, allowing for method chaining + */ + public Unreferenced enableUnreferencedRefunds(Boolean enableUnreferencedRefunds) { + this.enableUnreferencedRefunds = enableUnreferencedRefunds; + return this; + } + + /** + * Indicates whether unreferenced refunds are enabled on the terminal. + * @return enableUnreferencedRefunds Indicates whether unreferenced refunds are enabled on the terminal. + */ + @JsonProperty(JSON_PROPERTY_ENABLE_UNREFERENCED_REFUNDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getEnableUnreferencedRefunds() { + return enableUnreferencedRefunds; + } + + /** + * Indicates whether unreferenced refunds are enabled on the terminal. + * + * @param enableUnreferencedRefunds Indicates whether unreferenced refunds are enabled on the terminal. + */ + @JsonProperty(JSON_PROPERTY_ENABLE_UNREFERENCED_REFUNDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEnableUnreferencedRefunds(Boolean enableUnreferencedRefunds) { + this.enableUnreferencedRefunds = enableUnreferencedRefunds; + } + + /** + * Return true if this Unreferenced object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Unreferenced unreferenced = (Unreferenced) o; + return Objects.equals(this.enableUnreferencedRefunds, unreferenced.enableUnreferencedRefunds); + } + + @Override + public int hashCode() { + return Objects.hash(enableUnreferencedRefunds); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Unreferenced {\n"); + sb.append(" enableUnreferencedRefunds: ").append(toIndentedString(enableUnreferencedRefunds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +/** + * Create an instance of Unreferenced given an JSON string + * + * @param jsonString JSON string + * @return An instance of Unreferenced + * @throws JsonProcessingException if the JSON string is invalid with respect to Unreferenced + */ + public static Unreferenced fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, Unreferenced.class); + } +/** + * Convert an instance of Unreferenced to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} diff --git a/src/main/java/com/adyen/model/management/UpdatableAddress.java b/src/main/java/com/adyen/model/management/UpdatableAddress.java index b9cef7c60..729916fc8 100644 --- a/src/main/java/com/adyen/model/management/UpdatableAddress.java +++ b/src/main/java/com/adyen/model/management/UpdatableAddress.java @@ -2,22 +2,31 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** UpdatableAddress */ + +/** + * UpdatableAddress + */ @JsonPropertyOrder({ UpdatableAddress.JSON_PROPERTY_CITY, UpdatableAddress.JSON_PROPERTY_LINE1, @@ -26,6 +35,7 @@ UpdatableAddress.JSON_PROPERTY_POSTAL_CODE, UpdatableAddress.JSON_PROPERTY_STATE_OR_PROVINCE }) + public class UpdatableAddress { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -45,7 +55,8 @@ public class UpdatableAddress { public static final String JSON_PROPERTY_STATE_OR_PROVINCE = "stateOrProvince"; private String stateOrProvince; - public UpdatableAddress() {} + public UpdatableAddress() { + } /** * The name of the city. @@ -60,7 +71,6 @@ public UpdatableAddress city(String city) { /** * The name of the city. - * * @return city The name of the city. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -93,7 +103,6 @@ public UpdatableAddress line1(String line1) { /** * The street address. - * * @return line1 The street address. */ @JsonProperty(JSON_PROPERTY_LINE1) @@ -126,7 +135,6 @@ public UpdatableAddress line2(String line2) { /** * Second address line. - * * @return line2 Second address line. */ @JsonProperty(JSON_PROPERTY_LINE2) @@ -159,7 +167,6 @@ public UpdatableAddress line3(String line3) { /** * Third address line. - * * @return line3 Third address line. */ @JsonProperty(JSON_PROPERTY_LINE3) @@ -192,7 +199,6 @@ public UpdatableAddress postalCode(String postalCode) { /** * The postal code. - * * @return postalCode The postal code. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @@ -213,14 +219,9 @@ public void setPostalCode(String postalCode) { } /** - * The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). - * For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - - * Brazil - Canada - India - Mexico - New Zealand - United States + * The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States * - * @param stateOrProvince The state or province code as defined in [ISO - * 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. - * Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New - * Zealand - United States + * @param stateOrProvince The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States * @return the current {@code UpdatableAddress} instance, allowing for method chaining */ public UpdatableAddress stateOrProvince(String stateOrProvince) { @@ -229,14 +230,8 @@ public UpdatableAddress stateOrProvince(String stateOrProvince) { } /** - * The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). - * For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - - * Brazil - Canada - India - Mexico - New Zealand - United States - * - * @return stateOrProvince The state or province code as defined in [ISO - * 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. - * Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New - * Zealand - United States + * The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States + * @return stateOrProvince The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -245,14 +240,9 @@ public String getStateOrProvince() { } /** - * The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). - * For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - - * Brazil - Canada - India - Mexico - New Zealand - United States + * The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States * - * @param stateOrProvince The state or province code as defined in [ISO - * 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. - * Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New - * Zealand - United States + * @param stateOrProvince The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -260,7 +250,9 @@ public void setStateOrProvince(String stateOrProvince) { this.stateOrProvince = stateOrProvince; } - /** Return true if this UpdatableAddress object is equal to o. */ + /** + * Return true if this UpdatableAddress object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -270,12 +262,12 @@ public boolean equals(Object o) { return false; } UpdatableAddress updatableAddress = (UpdatableAddress) o; - return Objects.equals(this.city, updatableAddress.city) - && Objects.equals(this.line1, updatableAddress.line1) - && Objects.equals(this.line2, updatableAddress.line2) - && Objects.equals(this.line3, updatableAddress.line3) - && Objects.equals(this.postalCode, updatableAddress.postalCode) - && Objects.equals(this.stateOrProvince, updatableAddress.stateOrProvince); + return Objects.equals(this.city, updatableAddress.city) && + Objects.equals(this.line1, updatableAddress.line1) && + Objects.equals(this.line2, updatableAddress.line2) && + Objects.equals(this.line3, updatableAddress.line3) && + Objects.equals(this.postalCode, updatableAddress.postalCode) && + Objects.equals(this.stateOrProvince, updatableAddress.stateOrProvince); } @Override @@ -298,7 +290,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -307,7 +300,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of UpdatableAddress given an JSON string * * @param jsonString JSON string @@ -317,12 +310,11 @@ private String toIndentedString(Object o) { public static UpdatableAddress fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdatableAddress.class); } - - /** - * Convert an instance of UpdatableAddress to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of UpdatableAddress to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/UpdateCompanyApiCredentialRequest.java b/src/main/java/com/adyen/model/management/UpdateCompanyApiCredentialRequest.java index dd6fd2fb1..bb232762f 100644 --- a/src/main/java/com/adyen/model/management/UpdateCompanyApiCredentialRequest.java +++ b/src/main/java/com/adyen/model/management/UpdateCompanyApiCredentialRequest.java @@ -2,24 +2,33 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** UpdateCompanyApiCredentialRequest */ +/** + * UpdateCompanyApiCredentialRequest + */ @JsonPropertyOrder({ UpdateCompanyApiCredentialRequest.JSON_PROPERTY_ACTIVE, UpdateCompanyApiCredentialRequest.JSON_PROPERTY_ALLOWED_ORIGINS, @@ -27,6 +36,7 @@ UpdateCompanyApiCredentialRequest.JSON_PROPERTY_DESCRIPTION, UpdateCompanyApiCredentialRequest.JSON_PROPERTY_ROLES }) + public class UpdateCompanyApiCredentialRequest { public static final String JSON_PROPERTY_ACTIVE = "active"; private Boolean active; @@ -34,8 +44,7 @@ public class UpdateCompanyApiCredentialRequest { public static final String JSON_PROPERTY_ALLOWED_ORIGINS = "allowedOrigins"; private List allowedOrigins; - public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS = - "associatedMerchantAccounts"; + public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS = "associatedMerchantAccounts"; private List associatedMerchantAccounts; public static final String JSON_PROPERTY_DESCRIPTION = "description"; @@ -44,14 +53,14 @@ public class UpdateCompanyApiCredentialRequest { public static final String JSON_PROPERTY_ROLES = "roles"; private List roles; - public UpdateCompanyApiCredentialRequest() {} + public UpdateCompanyApiCredentialRequest() { + } /** * Indicates if the API credential is enabled. * * @param active Indicates if the API credential is enabled. - * @return the current {@code UpdateCompanyApiCredentialRequest} instance, allowing for method - * chaining + * @return the current {@code UpdateCompanyApiCredentialRequest} instance, allowing for method chaining */ public UpdateCompanyApiCredentialRequest active(Boolean active) { this.active = active; @@ -60,7 +69,6 @@ public UpdateCompanyApiCredentialRequest active(Boolean active) { /** * Indicates if the API credential is enabled. - * * @return active Indicates if the API credential is enabled. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @@ -81,15 +89,10 @@ public void setActive(Boolean active) { } /** - * The new list of [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * for the API credential. + * The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential. * - * @param allowedOrigins The new list of [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * for the API credential. - * @return the current {@code UpdateCompanyApiCredentialRequest} instance, allowing for method - * chaining + * @param allowedOrigins The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential. + * @return the current {@code UpdateCompanyApiCredentialRequest} instance, allowing for method chaining */ public UpdateCompanyApiCredentialRequest allowedOrigins(List allowedOrigins) { this.allowedOrigins = allowedOrigins; @@ -105,13 +108,8 @@ public UpdateCompanyApiCredentialRequest addAllowedOriginsItem(String allowedOri } /** - * The new list of [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * for the API credential. - * - * @return allowedOrigins The new list of [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * for the API credential. + * The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential. + * @return allowedOrigins The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -120,13 +118,9 @@ public List getAllowedOrigins() { } /** - * The new list of [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * for the API credential. + * The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential. * - * @param allowedOrigins The new list of [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * for the API credential. + * @param allowedOrigins The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,19 +131,15 @@ public void setAllowedOrigins(List allowedOrigins) { /** * List of merchant accounts that the API credential has access to. * - * @param associatedMerchantAccounts List of merchant accounts that the API credential has access - * to. - * @return the current {@code UpdateCompanyApiCredentialRequest} instance, allowing for method - * chaining + * @param associatedMerchantAccounts List of merchant accounts that the API credential has access to. + * @return the current {@code UpdateCompanyApiCredentialRequest} instance, allowing for method chaining */ - public UpdateCompanyApiCredentialRequest associatedMerchantAccounts( - List associatedMerchantAccounts) { + public UpdateCompanyApiCredentialRequest associatedMerchantAccounts(List associatedMerchantAccounts) { this.associatedMerchantAccounts = associatedMerchantAccounts; return this; } - public UpdateCompanyApiCredentialRequest addAssociatedMerchantAccountsItem( - String associatedMerchantAccountsItem) { + public UpdateCompanyApiCredentialRequest addAssociatedMerchantAccountsItem(String associatedMerchantAccountsItem) { if (this.associatedMerchantAccounts == null) { this.associatedMerchantAccounts = new ArrayList<>(); } @@ -159,9 +149,7 @@ public UpdateCompanyApiCredentialRequest addAssociatedMerchantAccountsItem( /** * List of merchant accounts that the API credential has access to. - * - * @return associatedMerchantAccounts List of merchant accounts that the API credential has access - * to. + * @return associatedMerchantAccounts List of merchant accounts that the API credential has access to. */ @JsonProperty(JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,8 +160,7 @@ public List getAssociatedMerchantAccounts() { /** * List of merchant accounts that the API credential has access to. * - * @param associatedMerchantAccounts List of merchant accounts that the API credential has access - * to. + * @param associatedMerchantAccounts List of merchant accounts that the API credential has access to. */ @JsonProperty(JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,8 +172,7 @@ public void setAssociatedMerchantAccounts(List associatedMerchantAccount * Description of the API credential. * * @param description Description of the API credential. - * @return the current {@code UpdateCompanyApiCredentialRequest} instance, allowing for method - * chaining + * @return the current {@code UpdateCompanyApiCredentialRequest} instance, allowing for method chaining */ public UpdateCompanyApiCredentialRequest description(String description) { this.description = description; @@ -195,7 +181,6 @@ public UpdateCompanyApiCredentialRequest description(String description) { /** * Description of the API credential. - * * @return description Description of the API credential. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -216,16 +201,10 @@ public void setDescription(String description) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the - * API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned - * to other API credentials. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. * - * @param roles List of - * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API - * credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned - * to other API credentials. - * @return the current {@code UpdateCompanyApiCredentialRequest} instance, allowing for method - * chaining + * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. + * @return the current {@code UpdateCompanyApiCredentialRequest} instance, allowing for method chaining */ public UpdateCompanyApiCredentialRequest roles(List roles) { this.roles = roles; @@ -241,14 +220,8 @@ public UpdateCompanyApiCredentialRequest addRolesItem(String rolesItem) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the - * API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned - * to other API credentials. - * - * @return roles List of - * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API - * credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned - * to other API credentials. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. + * @return roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -257,14 +230,9 @@ public List getRoles() { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the - * API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned - * to other API credentials. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. * - * @param roles List of - * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API - * credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned - * to other API credentials. + * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -272,7 +240,9 @@ public void setRoles(List roles) { this.roles = roles; } - /** Return true if this UpdateCompanyApiCredentialRequest object is equal to o. */ + /** + * Return true if this UpdateCompanyApiCredentialRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -281,15 +251,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UpdateCompanyApiCredentialRequest updateCompanyApiCredentialRequest = - (UpdateCompanyApiCredentialRequest) o; - return Objects.equals(this.active, updateCompanyApiCredentialRequest.active) - && Objects.equals(this.allowedOrigins, updateCompanyApiCredentialRequest.allowedOrigins) - && Objects.equals( - this.associatedMerchantAccounts, - updateCompanyApiCredentialRequest.associatedMerchantAccounts) - && Objects.equals(this.description, updateCompanyApiCredentialRequest.description) - && Objects.equals(this.roles, updateCompanyApiCredentialRequest.roles); + UpdateCompanyApiCredentialRequest updateCompanyApiCredentialRequest = (UpdateCompanyApiCredentialRequest) o; + return Objects.equals(this.active, updateCompanyApiCredentialRequest.active) && + Objects.equals(this.allowedOrigins, updateCompanyApiCredentialRequest.allowedOrigins) && + Objects.equals(this.associatedMerchantAccounts, updateCompanyApiCredentialRequest.associatedMerchantAccounts) && + Objects.equals(this.description, updateCompanyApiCredentialRequest.description) && + Objects.equals(this.roles, updateCompanyApiCredentialRequest.roles); } @Override @@ -303,9 +270,7 @@ public String toString() { sb.append("class UpdateCompanyApiCredentialRequest {\n"); sb.append(" active: ").append(toIndentedString(active)).append("\n"); sb.append(" allowedOrigins: ").append(toIndentedString(allowedOrigins)).append("\n"); - sb.append(" associatedMerchantAccounts: ") - .append(toIndentedString(associatedMerchantAccounts)) - .append("\n"); + sb.append(" associatedMerchantAccounts: ").append(toIndentedString(associatedMerchantAccounts)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" roles: ").append(toIndentedString(roles)).append("\n"); sb.append("}"); @@ -313,7 +278,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -322,24 +288,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of UpdateCompanyApiCredentialRequest given an JSON string * * @param jsonString JSON string * @return An instance of UpdateCompanyApiCredentialRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UpdateCompanyApiCredentialRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to UpdateCompanyApiCredentialRequest */ - public static UpdateCompanyApiCredentialRequest fromJson(String jsonString) - throws JsonProcessingException { + public static UpdateCompanyApiCredentialRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdateCompanyApiCredentialRequest.class); } - - /** - * Convert an instance of UpdateCompanyApiCredentialRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of UpdateCompanyApiCredentialRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/UpdateCompanyUserRequest.java b/src/main/java/com/adyen/model/management/UpdateCompanyUserRequest.java index 2f35aaf35..132b37d0d 100644 --- a/src/main/java/com/adyen/model/management/UpdateCompanyUserRequest.java +++ b/src/main/java/com/adyen/model/management/UpdateCompanyUserRequest.java @@ -2,24 +2,34 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.Name2; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** UpdateCompanyUserRequest */ +/** + * UpdateCompanyUserRequest + */ @JsonPropertyOrder({ UpdateCompanyUserRequest.JSON_PROPERTY_ACCOUNT_GROUPS, UpdateCompanyUserRequest.JSON_PROPERTY_ACTIVE, @@ -30,6 +40,7 @@ UpdateCompanyUserRequest.JSON_PROPERTY_ROLES, UpdateCompanyUserRequest.JSON_PROPERTY_TIME_ZONE_CODE }) + public class UpdateCompanyUserRequest { public static final String JSON_PROPERTY_ACCOUNT_GROUPS = "accountGroups"; private List accountGroups; @@ -37,8 +48,7 @@ public class UpdateCompanyUserRequest { public static final String JSON_PROPERTY_ACTIVE = "active"; private Boolean active; - public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS = - "associatedMerchantAccounts"; + public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS = "associatedMerchantAccounts"; private List associatedMerchantAccounts; public static final String JSON_PROPERTY_EMAIL = "email"; @@ -56,15 +66,13 @@ public class UpdateCompanyUserRequest { public static final String JSON_PROPERTY_TIME_ZONE_CODE = "timeZoneCode"; private String timeZoneCode; - public UpdateCompanyUserRequest() {} + public UpdateCompanyUserRequest() { + } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) - * associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. * - * @param accountGroups The list of [account - * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with - * this user. + * @param accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. * @return the current {@code UpdateCompanyUserRequest} instance, allowing for method chaining */ public UpdateCompanyUserRequest accountGroups(List accountGroups) { @@ -81,12 +89,8 @@ public UpdateCompanyUserRequest addAccountGroupsItem(String accountGroupsItem) { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) - * associated with this user. - * - * @return accountGroups The list of [account - * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with - * this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * @return accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -95,12 +99,9 @@ public List getAccountGroups() { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) - * associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. * - * @param accountGroups The list of [account - * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with - * this user. + * @param accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,7 +122,6 @@ public UpdateCompanyUserRequest active(Boolean active) { /** * Indicates whether this user is active. - * * @return active Indicates whether this user is active. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @@ -142,23 +142,17 @@ public void setActive(Boolean active) { } /** - * The list of [merchant - * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) to associate the - * user with. + * The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) to associate the user with. * - * @param associatedMerchantAccounts The list of [merchant - * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) to associate - * the user with. + * @param associatedMerchantAccounts The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) to associate the user with. * @return the current {@code UpdateCompanyUserRequest} instance, allowing for method chaining */ - public UpdateCompanyUserRequest associatedMerchantAccounts( - List associatedMerchantAccounts) { + public UpdateCompanyUserRequest associatedMerchantAccounts(List associatedMerchantAccounts) { this.associatedMerchantAccounts = associatedMerchantAccounts; return this; } - public UpdateCompanyUserRequest addAssociatedMerchantAccountsItem( - String associatedMerchantAccountsItem) { + public UpdateCompanyUserRequest addAssociatedMerchantAccountsItem(String associatedMerchantAccountsItem) { if (this.associatedMerchantAccounts == null) { this.associatedMerchantAccounts = new ArrayList<>(); } @@ -167,13 +161,8 @@ public UpdateCompanyUserRequest addAssociatedMerchantAccountsItem( } /** - * The list of [merchant - * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) to associate the - * user with. - * - * @return associatedMerchantAccounts The list of [merchant - * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) to associate - * the user with. + * The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) to associate the user with. + * @return associatedMerchantAccounts The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) to associate the user with. */ @JsonProperty(JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,13 +171,9 @@ public List getAssociatedMerchantAccounts() { } /** - * The list of [merchant - * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) to associate the - * user with. + * The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) to associate the user with. * - * @param associatedMerchantAccounts The list of [merchant - * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) to associate - * the user with. + * @param associatedMerchantAccounts The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) to associate the user with. */ @JsonProperty(JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -209,7 +194,6 @@ public UpdateCompanyUserRequest email(String email) { /** * The email address of the user. - * * @return email The email address of the user. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -230,13 +214,9 @@ public void setEmail(String email) { } /** - * The requested login method for the user. To use SSO, you must already have SSO configured with - * Adyen before creating the user. Possible values: **Username & account**, **Email**, or - * **SSO** + * The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** * - * @param loginMethod The requested login method for the user. To use SSO, you must already have - * SSO configured with Adyen before creating the user. Possible values: **Username & - * account**, **Email**, or **SSO** + * @param loginMethod The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** * @return the current {@code UpdateCompanyUserRequest} instance, allowing for method chaining */ public UpdateCompanyUserRequest loginMethod(String loginMethod) { @@ -245,13 +225,8 @@ public UpdateCompanyUserRequest loginMethod(String loginMethod) { } /** - * The requested login method for the user. To use SSO, you must already have SSO configured with - * Adyen before creating the user. Possible values: **Username & account**, **Email**, or - * **SSO** - * - * @return loginMethod The requested login method for the user. To use SSO, you must already have - * SSO configured with Adyen before creating the user. Possible values: **Username & - * account**, **Email**, or **SSO** + * The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** + * @return loginMethod The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** */ @JsonProperty(JSON_PROPERTY_LOGIN_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -260,13 +235,9 @@ public String getLoginMethod() { } /** - * The requested login method for the user. To use SSO, you must already have SSO configured with - * Adyen before creating the user. Possible values: **Username & account**, **Email**, or - * **SSO** + * The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** * - * @param loginMethod The requested login method for the user. To use SSO, you must already have - * SSO configured with Adyen before creating the user. Possible values: **Username & - * account**, **Email**, or **SSO** + * @param loginMethod The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** */ @JsonProperty(JSON_PROPERTY_LOGIN_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -277,7 +248,7 @@ public void setLoginMethod(String loginMethod) { /** * name * - * @param name + * @param name * @return the current {@code UpdateCompanyUserRequest} instance, allowing for method chaining */ public UpdateCompanyUserRequest name(Name2 name) { @@ -287,8 +258,7 @@ public UpdateCompanyUserRequest name(Name2 name) { /** * Get name - * - * @return name + * @return name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -299,7 +269,7 @@ public Name2 getName() { /** * name * - * @param name + * @param name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -328,7 +298,6 @@ public UpdateCompanyUserRequest addRolesItem(String rolesItem) { /** * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. - * * @return roles The list of [roles](https://docs.adyen.com/account/user-roles) for this user. */ @JsonProperty(JSON_PROPERTY_ROLES) @@ -349,12 +318,9 @@ public void setRoles(List roles) { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the - * time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. * - * @param timeZoneCode The [tz database - * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the - * user. For example, **Europe/Amsterdam**. + * @param timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. * @return the current {@code UpdateCompanyUserRequest} instance, allowing for method chaining */ public UpdateCompanyUserRequest timeZoneCode(String timeZoneCode) { @@ -363,12 +329,8 @@ public UpdateCompanyUserRequest timeZoneCode(String timeZoneCode) { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the - * time zone of the user. For example, **Europe/Amsterdam**. - * - * @return timeZoneCode The [tz database - * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the - * user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * @return timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -377,12 +339,9 @@ public String getTimeZoneCode() { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the - * time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. * - * @param timeZoneCode The [tz database - * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the - * user. For example, **Europe/Amsterdam**. + * @param timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -390,7 +349,9 @@ public void setTimeZoneCode(String timeZoneCode) { this.timeZoneCode = timeZoneCode; } - /** Return true if this UpdateCompanyUserRequest object is equal to o. */ + /** + * Return true if this UpdateCompanyUserRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -400,28 +361,19 @@ public boolean equals(Object o) { return false; } UpdateCompanyUserRequest updateCompanyUserRequest = (UpdateCompanyUserRequest) o; - return Objects.equals(this.accountGroups, updateCompanyUserRequest.accountGroups) - && Objects.equals(this.active, updateCompanyUserRequest.active) - && Objects.equals( - this.associatedMerchantAccounts, updateCompanyUserRequest.associatedMerchantAccounts) - && Objects.equals(this.email, updateCompanyUserRequest.email) - && Objects.equals(this.loginMethod, updateCompanyUserRequest.loginMethod) - && Objects.equals(this.name, updateCompanyUserRequest.name) - && Objects.equals(this.roles, updateCompanyUserRequest.roles) - && Objects.equals(this.timeZoneCode, updateCompanyUserRequest.timeZoneCode); + return Objects.equals(this.accountGroups, updateCompanyUserRequest.accountGroups) && + Objects.equals(this.active, updateCompanyUserRequest.active) && + Objects.equals(this.associatedMerchantAccounts, updateCompanyUserRequest.associatedMerchantAccounts) && + Objects.equals(this.email, updateCompanyUserRequest.email) && + Objects.equals(this.loginMethod, updateCompanyUserRequest.loginMethod) && + Objects.equals(this.name, updateCompanyUserRequest.name) && + Objects.equals(this.roles, updateCompanyUserRequest.roles) && + Objects.equals(this.timeZoneCode, updateCompanyUserRequest.timeZoneCode); } @Override public int hashCode() { - return Objects.hash( - accountGroups, - active, - associatedMerchantAccounts, - email, - loginMethod, - name, - roles, - timeZoneCode); + return Objects.hash(accountGroups, active, associatedMerchantAccounts, email, loginMethod, name, roles, timeZoneCode); } @Override @@ -430,9 +382,7 @@ public String toString() { sb.append("class UpdateCompanyUserRequest {\n"); sb.append(" accountGroups: ").append(toIndentedString(accountGroups)).append("\n"); sb.append(" active: ").append(toIndentedString(active)).append("\n"); - sb.append(" associatedMerchantAccounts: ") - .append(toIndentedString(associatedMerchantAccounts)) - .append("\n"); + sb.append(" associatedMerchantAccounts: ").append(toIndentedString(associatedMerchantAccounts)).append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" loginMethod: ").append(toIndentedString(loginMethod)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); @@ -443,7 +393,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -452,24 +403,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of UpdateCompanyUserRequest given an JSON string * * @param jsonString JSON string * @return An instance of UpdateCompanyUserRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UpdateCompanyUserRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to UpdateCompanyUserRequest */ - public static UpdateCompanyUserRequest fromJson(String jsonString) - throws JsonProcessingException { + public static UpdateCompanyUserRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdateCompanyUserRequest.class); } - - /** - * Convert an instance of UpdateCompanyUserRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of UpdateCompanyUserRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/UpdateCompanyWebhookRequest.java b/src/main/java/com/adyen/model/management/UpdateCompanyWebhookRequest.java index a5db6c7b6..c18101033 100644 --- a/src/main/java/com/adyen/model/management/UpdateCompanyWebhookRequest.java +++ b/src/main/java/com/adyen/model/management/UpdateCompanyWebhookRequest.java @@ -2,28 +2,34 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.AdditionalSettings; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** UpdateCompanyWebhookRequest */ +/** + * UpdateCompanyWebhookRequest + */ @JsonPropertyOrder({ UpdateCompanyWebhookRequest.JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE, UpdateCompanyWebhookRequest.JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE, @@ -41,17 +47,15 @@ UpdateCompanyWebhookRequest.JSON_PROPERTY_URL, UpdateCompanyWebhookRequest.JSON_PROPERTY_USERNAME }) + public class UpdateCompanyWebhookRequest { - public static final String JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE = - "acceptsExpiredCertificate"; + public static final String JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE = "acceptsExpiredCertificate"; private Boolean acceptsExpiredCertificate; - public static final String JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE = - "acceptsSelfSignedCertificate"; + public static final String JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE = "acceptsSelfSignedCertificate"; private Boolean acceptsSelfSignedCertificate; - public static final String JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE = - "acceptsUntrustedRootCertificate"; + public static final String JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE = "acceptsUntrustedRootCertificate"; private Boolean acceptsUntrustedRootCertificate; public static final String JSON_PROPERTY_ACTIVE = "active"; @@ -61,9 +65,10 @@ public class UpdateCompanyWebhookRequest { private AdditionalSettings additionalSettings; /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** */ public enum CommunicationFormatEnum { + HTTP(String.valueOf("http")), JSON(String.valueOf("json")), @@ -75,7 +80,7 @@ public enum CommunicationFormatEnum { private String value; CommunicationFormatEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -96,11 +101,7 @@ public static CommunicationFormatEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "CommunicationFormatEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(CommunicationFormatEnum.values())); + LOG.warning("CommunicationFormatEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CommunicationFormatEnum.values())); return null; } } @@ -112,11 +113,10 @@ public static CommunicationFormatEnum fromValue(String value) { private String description; /** - * SSL version to access the public webhook URL specified in the `url` field. Possible - * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not - * specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. */ public enum EncryptionProtocolEnum { + HTTP(String.valueOf("HTTP")), TLSV1_2(String.valueOf("TLSv1.2")), @@ -128,7 +128,7 @@ public enum EncryptionProtocolEnum { private String value; EncryptionProtocolEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -149,11 +149,7 @@ public static EncryptionProtocolEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "EncryptionProtocolEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(EncryptionProtocolEnum.values())); + LOG.warning("EncryptionProtocolEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(EncryptionProtocolEnum.values())); return null; } } @@ -162,26 +158,22 @@ public static EncryptionProtocolEnum fromValue(String value) { private EncryptionProtocolEnum encryptionProtocol; /** - * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * - * **includeAccounts**: The webhook is configured for the merchant accounts listed in - * `filterMerchantAccounts`. * **excludeAccounts**: The webhook is not configured for - * the merchant accounts listed in `filterMerchantAccounts`. * **allAccounts**: Includes - * all merchant accounts, and does not require specifying `filterMerchantAccounts`. + * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **includeAccounts**: The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts**: The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. */ public enum FilterMerchantAccountTypeEnum { + ALLACCOUNTS(String.valueOf("allAccounts")), EXCLUDEACCOUNTS(String.valueOf("excludeAccounts")), INCLUDEACCOUNTS(String.valueOf("includeAccounts")); - private static final Logger LOG = - Logger.getLogger(FilterMerchantAccountTypeEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(FilterMerchantAccountTypeEnum.class.getName()); private String value; FilterMerchantAccountTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -202,27 +194,22 @@ public static FilterMerchantAccountTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FilterMerchantAccountTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FilterMerchantAccountTypeEnum.values())); + LOG.warning("FilterMerchantAccountTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FilterMerchantAccountTypeEnum.values())); return null; } } - public static final String JSON_PROPERTY_FILTER_MERCHANT_ACCOUNT_TYPE = - "filterMerchantAccountType"; + public static final String JSON_PROPERTY_FILTER_MERCHANT_ACCOUNT_TYPE = "filterMerchantAccountType"; private FilterMerchantAccountTypeEnum filterMerchantAccountType; public static final String JSON_PROPERTY_FILTER_MERCHANT_ACCOUNTS = "filterMerchantAccounts"; private List filterMerchantAccounts; /** - * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** - * Default Value: **public**. + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. */ public enum NetworkTypeEnum { + LOCAL(String.valueOf("local")), PUBLIC(String.valueOf("public")); @@ -232,7 +219,7 @@ public enum NetworkTypeEnum { private String value; NetworkTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -253,11 +240,7 @@ public static NetworkTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "NetworkTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(NetworkTypeEnum.values())); + LOG.warning("NetworkTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(NetworkTypeEnum.values())); return null; } } @@ -277,13 +260,13 @@ public static NetworkTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public UpdateCompanyWebhookRequest() {} + public UpdateCompanyWebhookRequest() { + } /** * Indicates if expired SSL certificates are accepted. Default value: **false**. * - * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default - * value: **false**. + * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default value: **false**. * @return the current {@code UpdateCompanyWebhookRequest} instance, allowing for method chaining */ public UpdateCompanyWebhookRequest acceptsExpiredCertificate(Boolean acceptsExpiredCertificate) { @@ -293,9 +276,7 @@ public UpdateCompanyWebhookRequest acceptsExpiredCertificate(Boolean acceptsExpi /** * Indicates if expired SSL certificates are accepted. Default value: **false**. - * - * @return acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default - * value: **false**. + * @return acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -306,8 +287,7 @@ public Boolean getAcceptsExpiredCertificate() { /** * Indicates if expired SSL certificates are accepted. Default value: **false**. * - * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default - * value: **false**. + * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -318,21 +298,17 @@ public void setAcceptsExpiredCertificate(Boolean acceptsExpiredCertificate) { /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. * - * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. - * Default value: **false**. + * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. Default value: **false**. * @return the current {@code UpdateCompanyWebhookRequest} instance, allowing for method chaining */ - public UpdateCompanyWebhookRequest acceptsSelfSignedCertificate( - Boolean acceptsSelfSignedCertificate) { + public UpdateCompanyWebhookRequest acceptsSelfSignedCertificate(Boolean acceptsSelfSignedCertificate) { this.acceptsSelfSignedCertificate = acceptsSelfSignedCertificate; return this; } /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. - * - * @return acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. - * Default value: **false**. + * @return acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -343,8 +319,7 @@ public Boolean getAcceptsSelfSignedCertificate() { /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. * - * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. - * Default value: **false**. + * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -355,21 +330,17 @@ public void setAcceptsSelfSignedCertificate(Boolean acceptsSelfSignedCertificate /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. * - * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. - * Default value: **false**. + * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. Default value: **false**. * @return the current {@code UpdateCompanyWebhookRequest} instance, allowing for method chaining */ - public UpdateCompanyWebhookRequest acceptsUntrustedRootCertificate( - Boolean acceptsUntrustedRootCertificate) { + public UpdateCompanyWebhookRequest acceptsUntrustedRootCertificate(Boolean acceptsUntrustedRootCertificate) { this.acceptsUntrustedRootCertificate = acceptsUntrustedRootCertificate; return this; } /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. - * - * @return acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. - * Default value: **false**. + * @return acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -380,8 +351,7 @@ public Boolean getAcceptsUntrustedRootCertificate() { /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. * - * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. - * Default value: **false**. + * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -390,11 +360,9 @@ public void setAcceptsUntrustedRootCertificate(Boolean acceptsUntrustedRootCerti } /** - * Indicates if the webhook configuration is active. The field must be **true** for us to send - * webhooks about events related an account. + * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. * - * @param active Indicates if the webhook configuration is active. The field must be **true** for - * us to send webhooks about events related an account. + * @param active Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. * @return the current {@code UpdateCompanyWebhookRequest} instance, allowing for method chaining */ public UpdateCompanyWebhookRequest active(Boolean active) { @@ -403,11 +371,8 @@ public UpdateCompanyWebhookRequest active(Boolean active) { } /** - * Indicates if the webhook configuration is active. The field must be **true** for us to send - * webhooks about events related an account. - * - * @return active Indicates if the webhook configuration is active. The field must be **true** for - * us to send webhooks about events related an account. + * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. + * @return active Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -416,11 +381,9 @@ public Boolean getActive() { } /** - * Indicates if the webhook configuration is active. The field must be **true** for us to send - * webhooks about events related an account. + * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. * - * @param active Indicates if the webhook configuration is active. The field must be **true** for - * us to send webhooks about events related an account. + * @param active Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -431,7 +394,7 @@ public void setActive(Boolean active) { /** * additionalSettings * - * @param additionalSettings + * @param additionalSettings * @return the current {@code UpdateCompanyWebhookRequest} instance, allowing for method chaining */ public UpdateCompanyWebhookRequest additionalSettings(AdditionalSettings additionalSettings) { @@ -441,8 +404,7 @@ public UpdateCompanyWebhookRequest additionalSettings(AdditionalSettings additio /** * Get additionalSettings - * - * @return additionalSettings + * @return additionalSettings */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -453,7 +415,7 @@ public AdditionalSettings getAdditionalSettings() { /** * additionalSettings * - * @param additionalSettings + * @param additionalSettings */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -462,23 +424,19 @@ public void setAdditionalSettings(AdditionalSettings additionalSettings) { } /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** * - * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * - * **soap** * **http** * **json** + * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** * @return the current {@code UpdateCompanyWebhookRequest} instance, allowing for method chaining */ - public UpdateCompanyWebhookRequest communicationFormat( - CommunicationFormatEnum communicationFormat) { + public UpdateCompanyWebhookRequest communicationFormat(CommunicationFormatEnum communicationFormat) { this.communicationFormat = communicationFormat; return this; } /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** - * - * @return communicationFormat Format or protocol for receiving webhooks. Possible values: * - * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * @return communicationFormat Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** */ @JsonProperty(JSON_PROPERTY_COMMUNICATION_FORMAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -487,10 +445,9 @@ public CommunicationFormatEnum getCommunicationFormat() { } /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** * - * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * - * **soap** * **http** * **json** + * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** */ @JsonProperty(JSON_PROPERTY_COMMUNICATION_FORMAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -511,7 +468,6 @@ public UpdateCompanyWebhookRequest description(String description) { /** * Your description for this webhook configuration. - * * @return description Your description for this webhook configuration. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -532,14 +488,9 @@ public void setDescription(String description) { } /** - * SSL version to access the public webhook URL specified in the `url` field. Possible - * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not - * specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. * - * @param encryptionProtocol SSL version to access the public webhook URL specified in the - * `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only - * allowed on Test environment. If not specified, the webhook will use `sslVersion`: - * **TLSv1.2**. + * @param encryptionProtocol SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. * @return the current {@code UpdateCompanyWebhookRequest} instance, allowing for method chaining */ public UpdateCompanyWebhookRequest encryptionProtocol(EncryptionProtocolEnum encryptionProtocol) { @@ -548,14 +499,8 @@ public UpdateCompanyWebhookRequest encryptionProtocol(EncryptionProtocolEnum enc } /** - * SSL version to access the public webhook URL specified in the `url` field. Possible - * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not - * specified, the webhook will use `sslVersion`: **TLSv1.2**. - * - * @return encryptionProtocol SSL version to access the public webhook URL specified in the - * `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only - * allowed on Test environment. If not specified, the webhook will use `sslVersion`: - * **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * @return encryptionProtocol SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. */ @JsonProperty(JSON_PROPERTY_ENCRYPTION_PROTOCOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -564,14 +509,9 @@ public EncryptionProtocolEnum getEncryptionProtocol() { } /** - * SSL version to access the public webhook URL specified in the `url` field. Possible - * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not - * specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. * - * @param encryptionProtocol SSL version to access the public webhook URL specified in the - * `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only - * allowed on Test environment. If not specified, the webhook will use `sslVersion`: - * **TLSv1.2**. + * @param encryptionProtocol SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. */ @JsonProperty(JSON_PROPERTY_ENCRYPTION_PROTOCOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -580,39 +520,19 @@ public void setEncryptionProtocol(EncryptionProtocolEnum encryptionProtocol) { } /** - * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * - * **includeAccounts**: The webhook is configured for the merchant accounts listed in - * `filterMerchantAccounts`. * **excludeAccounts**: The webhook is not configured for - * the merchant accounts listed in `filterMerchantAccounts`. * **allAccounts**: Includes - * all merchant accounts, and does not require specifying `filterMerchantAccounts`. + * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **includeAccounts**: The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts**: The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. * - * @param filterMerchantAccountType Shows how merchant accounts are filtered when configuring the - * webhook. Possible values: * **includeAccounts**: The webhook is configured for the merchant - * accounts listed in `filterMerchantAccounts`. * **excludeAccounts**: The webhook - * is not configured for the merchant accounts listed in `filterMerchantAccounts`. * - * **allAccounts**: Includes all merchant accounts, and does not require specifying - * `filterMerchantAccounts`. + * @param filterMerchantAccountType Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **includeAccounts**: The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts**: The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. * @return the current {@code UpdateCompanyWebhookRequest} instance, allowing for method chaining */ - public UpdateCompanyWebhookRequest filterMerchantAccountType( - FilterMerchantAccountTypeEnum filterMerchantAccountType) { + public UpdateCompanyWebhookRequest filterMerchantAccountType(FilterMerchantAccountTypeEnum filterMerchantAccountType) { this.filterMerchantAccountType = filterMerchantAccountType; return this; } /** - * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * - * **includeAccounts**: The webhook is configured for the merchant accounts listed in - * `filterMerchantAccounts`. * **excludeAccounts**: The webhook is not configured for - * the merchant accounts listed in `filterMerchantAccounts`. * **allAccounts**: Includes - * all merchant accounts, and does not require specifying `filterMerchantAccounts`. - * - * @return filterMerchantAccountType Shows how merchant accounts are filtered when configuring the - * webhook. Possible values: * **includeAccounts**: The webhook is configured for the merchant - * accounts listed in `filterMerchantAccounts`. * **excludeAccounts**: The webhook - * is not configured for the merchant accounts listed in `filterMerchantAccounts`. * - * **allAccounts**: Includes all merchant accounts, and does not require specifying - * `filterMerchantAccounts`. + * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **includeAccounts**: The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts**: The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. + * @return filterMerchantAccountType Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **includeAccounts**: The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts**: The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. */ @JsonProperty(JSON_PROPERTY_FILTER_MERCHANT_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -621,37 +541,20 @@ public FilterMerchantAccountTypeEnum getFilterMerchantAccountType() { } /** - * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * - * **includeAccounts**: The webhook is configured for the merchant accounts listed in - * `filterMerchantAccounts`. * **excludeAccounts**: The webhook is not configured for - * the merchant accounts listed in `filterMerchantAccounts`. * **allAccounts**: Includes - * all merchant accounts, and does not require specifying `filterMerchantAccounts`. + * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **includeAccounts**: The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts**: The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. * - * @param filterMerchantAccountType Shows how merchant accounts are filtered when configuring the - * webhook. Possible values: * **includeAccounts**: The webhook is configured for the merchant - * accounts listed in `filterMerchantAccounts`. * **excludeAccounts**: The webhook - * is not configured for the merchant accounts listed in `filterMerchantAccounts`. * - * **allAccounts**: Includes all merchant accounts, and does not require specifying - * `filterMerchantAccounts`. + * @param filterMerchantAccountType Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **includeAccounts**: The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts**: The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. */ @JsonProperty(JSON_PROPERTY_FILTER_MERCHANT_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFilterMerchantAccountType( - FilterMerchantAccountTypeEnum filterMerchantAccountType) { + public void setFilterMerchantAccountType(FilterMerchantAccountTypeEnum filterMerchantAccountType) { this.filterMerchantAccountType = filterMerchantAccountType; } /** - * A list of merchant account names that are included or excluded from receiving the webhook. - * Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. - * Required if `filterMerchantAccountType` is either: * **includeAccounts** * - * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. + * A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. * - * @param filterMerchantAccounts A list of merchant account names that are included or excluded - * from receiving the webhook. Inclusion or exclusion is based on the value defined for - * `filterMerchantAccountType`. Required if `filterMerchantAccountType` is - * either: * **includeAccounts** * **excludeAccounts** Not needed for - * `filterMerchantAccountType`: **allAccounts**. + * @param filterMerchantAccounts A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. * @return the current {@code UpdateCompanyWebhookRequest} instance, allowing for method chaining */ public UpdateCompanyWebhookRequest filterMerchantAccounts(List filterMerchantAccounts) { @@ -659,8 +562,7 @@ public UpdateCompanyWebhookRequest filterMerchantAccounts(List filterMer return this; } - public UpdateCompanyWebhookRequest addFilterMerchantAccountsItem( - String filterMerchantAccountsItem) { + public UpdateCompanyWebhookRequest addFilterMerchantAccountsItem(String filterMerchantAccountsItem) { if (this.filterMerchantAccounts == null) { this.filterMerchantAccounts = new ArrayList<>(); } @@ -669,16 +571,8 @@ public UpdateCompanyWebhookRequest addFilterMerchantAccountsItem( } /** - * A list of merchant account names that are included or excluded from receiving the webhook. - * Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. - * Required if `filterMerchantAccountType` is either: * **includeAccounts** * - * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. - * - * @return filterMerchantAccounts A list of merchant account names that are included or excluded - * from receiving the webhook. Inclusion or exclusion is based on the value defined for - * `filterMerchantAccountType`. Required if `filterMerchantAccountType` is - * either: * **includeAccounts** * **excludeAccounts** Not needed for - * `filterMerchantAccountType`: **allAccounts**. + * A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. + * @return filterMerchantAccounts A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. */ @JsonProperty(JSON_PROPERTY_FILTER_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -687,16 +581,9 @@ public List getFilterMerchantAccounts() { } /** - * A list of merchant account names that are included or excluded from receiving the webhook. - * Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. - * Required if `filterMerchantAccountType` is either: * **includeAccounts** * - * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. + * A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. * - * @param filterMerchantAccounts A list of merchant account names that are included or excluded - * from receiving the webhook. Inclusion or exclusion is based on the value defined for - * `filterMerchantAccountType`. Required if `filterMerchantAccountType` is - * either: * **includeAccounts** * **excludeAccounts** Not needed for - * `filterMerchantAccountType`: **allAccounts**. + * @param filterMerchantAccounts A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. */ @JsonProperty(JSON_PROPERTY_FILTER_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -705,11 +592,9 @@ public void setFilterMerchantAccounts(List filterMerchantAccounts) { } /** - * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** - * Default Value: **public**. + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. * - * @param networkType Network type for Terminal API notification webhooks. Possible values: * - * **public** * **local** Default Value: **public**. + * @param networkType Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. * @return the current {@code UpdateCompanyWebhookRequest} instance, allowing for method chaining */ public UpdateCompanyWebhookRequest networkType(NetworkTypeEnum networkType) { @@ -718,11 +603,8 @@ public UpdateCompanyWebhookRequest networkType(NetworkTypeEnum networkType) { } /** - * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** - * Default Value: **public**. - * - * @return networkType Network type for Terminal API notification webhooks. Possible values: * - * **public** * **local** Default Value: **public**. + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. + * @return networkType Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. */ @JsonProperty(JSON_PROPERTY_NETWORK_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -731,11 +613,9 @@ public NetworkTypeEnum getNetworkType() { } /** - * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** - * Default Value: **public**. + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. * - * @param networkType Network type for Terminal API notification webhooks. Possible values: * - * **public** * **local** Default Value: **public**. + * @param networkType Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. */ @JsonProperty(JSON_PROPERTY_NETWORK_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -756,7 +636,6 @@ public UpdateCompanyWebhookRequest password(String password) { /** * Password to access the webhook URL. - * * @return password Password to access the webhook URL. */ @JsonProperty(JSON_PROPERTY_PASSWORD) @@ -777,11 +656,9 @@ public void setPassword(String password) { } /** - * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only - * applies if `communicationFormat`: **soap**. + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. * - * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. - * Default value: **false**. Only applies if `communicationFormat`: **soap**. + * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. * @return the current {@code UpdateCompanyWebhookRequest} instance, allowing for method chaining */ public UpdateCompanyWebhookRequest populateSoapActionHeader(Boolean populateSoapActionHeader) { @@ -790,11 +667,8 @@ public UpdateCompanyWebhookRequest populateSoapActionHeader(Boolean populateSoap } /** - * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only - * applies if `communicationFormat`: **soap**. - * - * @return populateSoapActionHeader Indicates if the SOAP action header needs to be populated. - * Default value: **false**. Only applies if `communicationFormat`: **soap**. + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + * @return populateSoapActionHeader Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. */ @JsonProperty(JSON_PROPERTY_POPULATE_SOAP_ACTION_HEADER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -803,11 +677,9 @@ public Boolean getPopulateSoapActionHeader() { } /** - * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only - * applies if `communicationFormat`: **soap**. + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. * - * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. - * Default value: **false**. Only applies if `communicationFormat`: **soap**. + * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. */ @JsonProperty(JSON_PROPERTY_POPULATE_SOAP_ACTION_HEADER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -816,11 +688,9 @@ public void setPopulateSoapActionHeader(Boolean populateSoapActionHeader) { } /** - * Public URL where webhooks will be sent, for example - * **https://www.domain.com/webhook-endpoint**. + * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. * - * @param url Public URL where webhooks will be sent, for example - * **https://www.domain.com/webhook-endpoint**. + * @param url Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. * @return the current {@code UpdateCompanyWebhookRequest} instance, allowing for method chaining */ public UpdateCompanyWebhookRequest url(String url) { @@ -829,11 +699,8 @@ public UpdateCompanyWebhookRequest url(String url) { } /** - * Public URL where webhooks will be sent, for example - * **https://www.domain.com/webhook-endpoint**. - * - * @return url Public URL where webhooks will be sent, for example - * **https://www.domain.com/webhook-endpoint**. + * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + * @return url Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. */ @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -842,11 +709,9 @@ public String getUrl() { } /** - * Public URL where webhooks will be sent, for example - * **https://www.domain.com/webhook-endpoint**. + * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. * - * @param url Public URL where webhooks will be sent, for example - * **https://www.domain.com/webhook-endpoint**. + * @param url Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. */ @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -867,7 +732,6 @@ public UpdateCompanyWebhookRequest username(String username) { /** * Username to access the webhook URL. - * * @return username Username to access the webhook URL. */ @JsonProperty(JSON_PROPERTY_USERNAME) @@ -887,7 +751,9 @@ public void setUsername(String username) { this.username = username; } - /** Return true if this UpdateCompanyWebhookRequest object is equal to o. */ + /** + * Return true if this UpdateCompanyWebhookRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -897,82 +763,45 @@ public boolean equals(Object o) { return false; } UpdateCompanyWebhookRequest updateCompanyWebhookRequest = (UpdateCompanyWebhookRequest) o; - return Objects.equals( - this.acceptsExpiredCertificate, updateCompanyWebhookRequest.acceptsExpiredCertificate) - && Objects.equals( - this.acceptsSelfSignedCertificate, - updateCompanyWebhookRequest.acceptsSelfSignedCertificate) - && Objects.equals( - this.acceptsUntrustedRootCertificate, - updateCompanyWebhookRequest.acceptsUntrustedRootCertificate) - && Objects.equals(this.active, updateCompanyWebhookRequest.active) - && Objects.equals(this.additionalSettings, updateCompanyWebhookRequest.additionalSettings) - && Objects.equals(this.communicationFormat, updateCompanyWebhookRequest.communicationFormat) - && Objects.equals(this.description, updateCompanyWebhookRequest.description) - && Objects.equals(this.encryptionProtocol, updateCompanyWebhookRequest.encryptionProtocol) - && Objects.equals( - this.filterMerchantAccountType, updateCompanyWebhookRequest.filterMerchantAccountType) - && Objects.equals( - this.filterMerchantAccounts, updateCompanyWebhookRequest.filterMerchantAccounts) - && Objects.equals(this.networkType, updateCompanyWebhookRequest.networkType) - && Objects.equals(this.password, updateCompanyWebhookRequest.password) - && Objects.equals( - this.populateSoapActionHeader, updateCompanyWebhookRequest.populateSoapActionHeader) - && Objects.equals(this.url, updateCompanyWebhookRequest.url) - && Objects.equals(this.username, updateCompanyWebhookRequest.username); + return Objects.equals(this.acceptsExpiredCertificate, updateCompanyWebhookRequest.acceptsExpiredCertificate) && + Objects.equals(this.acceptsSelfSignedCertificate, updateCompanyWebhookRequest.acceptsSelfSignedCertificate) && + Objects.equals(this.acceptsUntrustedRootCertificate, updateCompanyWebhookRequest.acceptsUntrustedRootCertificate) && + Objects.equals(this.active, updateCompanyWebhookRequest.active) && + Objects.equals(this.additionalSettings, updateCompanyWebhookRequest.additionalSettings) && + Objects.equals(this.communicationFormat, updateCompanyWebhookRequest.communicationFormat) && + Objects.equals(this.description, updateCompanyWebhookRequest.description) && + Objects.equals(this.encryptionProtocol, updateCompanyWebhookRequest.encryptionProtocol) && + Objects.equals(this.filterMerchantAccountType, updateCompanyWebhookRequest.filterMerchantAccountType) && + Objects.equals(this.filterMerchantAccounts, updateCompanyWebhookRequest.filterMerchantAccounts) && + Objects.equals(this.networkType, updateCompanyWebhookRequest.networkType) && + Objects.equals(this.password, updateCompanyWebhookRequest.password) && + Objects.equals(this.populateSoapActionHeader, updateCompanyWebhookRequest.populateSoapActionHeader) && + Objects.equals(this.url, updateCompanyWebhookRequest.url) && + Objects.equals(this.username, updateCompanyWebhookRequest.username); } @Override public int hashCode() { - return Objects.hash( - acceptsExpiredCertificate, - acceptsSelfSignedCertificate, - acceptsUntrustedRootCertificate, - active, - additionalSettings, - communicationFormat, - description, - encryptionProtocol, - filterMerchantAccountType, - filterMerchantAccounts, - networkType, - password, - populateSoapActionHeader, - url, - username); + return Objects.hash(acceptsExpiredCertificate, acceptsSelfSignedCertificate, acceptsUntrustedRootCertificate, active, additionalSettings, communicationFormat, description, encryptionProtocol, filterMerchantAccountType, filterMerchantAccounts, networkType, password, populateSoapActionHeader, url, username); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateCompanyWebhookRequest {\n"); - sb.append(" acceptsExpiredCertificate: ") - .append(toIndentedString(acceptsExpiredCertificate)) - .append("\n"); - sb.append(" acceptsSelfSignedCertificate: ") - .append(toIndentedString(acceptsSelfSignedCertificate)) - .append("\n"); - sb.append(" acceptsUntrustedRootCertificate: ") - .append(toIndentedString(acceptsUntrustedRootCertificate)) - .append("\n"); + sb.append(" acceptsExpiredCertificate: ").append(toIndentedString(acceptsExpiredCertificate)).append("\n"); + sb.append(" acceptsSelfSignedCertificate: ").append(toIndentedString(acceptsSelfSignedCertificate)).append("\n"); + sb.append(" acceptsUntrustedRootCertificate: ").append(toIndentedString(acceptsUntrustedRootCertificate)).append("\n"); sb.append(" active: ").append(toIndentedString(active)).append("\n"); sb.append(" additionalSettings: ").append(toIndentedString(additionalSettings)).append("\n"); - sb.append(" communicationFormat: ") - .append(toIndentedString(communicationFormat)) - .append("\n"); + sb.append(" communicationFormat: ").append(toIndentedString(communicationFormat)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" encryptionProtocol: ").append(toIndentedString(encryptionProtocol)).append("\n"); - sb.append(" filterMerchantAccountType: ") - .append(toIndentedString(filterMerchantAccountType)) - .append("\n"); - sb.append(" filterMerchantAccounts: ") - .append(toIndentedString(filterMerchantAccounts)) - .append("\n"); + sb.append(" filterMerchantAccountType: ").append(toIndentedString(filterMerchantAccountType)).append("\n"); + sb.append(" filterMerchantAccounts: ").append(toIndentedString(filterMerchantAccounts)).append("\n"); sb.append(" networkType: ").append(toIndentedString(networkType)).append("\n"); sb.append(" password: ").append(toIndentedString(password)).append("\n"); - sb.append(" populateSoapActionHeader: ") - .append(toIndentedString(populateSoapActionHeader)) - .append("\n"); + sb.append(" populateSoapActionHeader: ").append(toIndentedString(populateSoapActionHeader)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" username: ").append(toIndentedString(username)).append("\n"); sb.append("}"); @@ -980,7 +809,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -989,24 +819,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of UpdateCompanyWebhookRequest given an JSON string * * @param jsonString JSON string * @return An instance of UpdateCompanyWebhookRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UpdateCompanyWebhookRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to UpdateCompanyWebhookRequest */ - public static UpdateCompanyWebhookRequest fromJson(String jsonString) - throws JsonProcessingException { + public static UpdateCompanyWebhookRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdateCompanyWebhookRequest.class); } - - /** - * Convert an instance of UpdateCompanyWebhookRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of UpdateCompanyWebhookRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/UpdateMerchantApiCredentialRequest.java b/src/main/java/com/adyen/model/management/UpdateMerchantApiCredentialRequest.java index 6de500351..c1597fee7 100644 --- a/src/main/java/com/adyen/model/management/UpdateMerchantApiCredentialRequest.java +++ b/src/main/java/com/adyen/model/management/UpdateMerchantApiCredentialRequest.java @@ -2,30 +2,40 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** UpdateMerchantApiCredentialRequest */ +/** + * UpdateMerchantApiCredentialRequest + */ @JsonPropertyOrder({ UpdateMerchantApiCredentialRequest.JSON_PROPERTY_ACTIVE, UpdateMerchantApiCredentialRequest.JSON_PROPERTY_ALLOWED_ORIGINS, UpdateMerchantApiCredentialRequest.JSON_PROPERTY_DESCRIPTION, UpdateMerchantApiCredentialRequest.JSON_PROPERTY_ROLES }) + public class UpdateMerchantApiCredentialRequest { public static final String JSON_PROPERTY_ACTIVE = "active"; private Boolean active; @@ -39,14 +49,14 @@ public class UpdateMerchantApiCredentialRequest { public static final String JSON_PROPERTY_ROLES = "roles"; private List roles; - public UpdateMerchantApiCredentialRequest() {} + public UpdateMerchantApiCredentialRequest() { + } /** * Indicates if the API credential is enabled. * * @param active Indicates if the API credential is enabled. - * @return the current {@code UpdateMerchantApiCredentialRequest} instance, allowing for method - * chaining + * @return the current {@code UpdateMerchantApiCredentialRequest} instance, allowing for method chaining */ public UpdateMerchantApiCredentialRequest active(Boolean active) { this.active = active; @@ -55,7 +65,6 @@ public UpdateMerchantApiCredentialRequest active(Boolean active) { /** * Indicates if the API credential is enabled. - * * @return active Indicates if the API credential is enabled. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @@ -76,15 +85,10 @@ public void setActive(Boolean active) { } /** - * The new list of [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * for the API credential. + * The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential. * - * @param allowedOrigins The new list of [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * for the API credential. - * @return the current {@code UpdateMerchantApiCredentialRequest} instance, allowing for method - * chaining + * @param allowedOrigins The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential. + * @return the current {@code UpdateMerchantApiCredentialRequest} instance, allowing for method chaining */ public UpdateMerchantApiCredentialRequest allowedOrigins(List allowedOrigins) { this.allowedOrigins = allowedOrigins; @@ -100,13 +104,8 @@ public UpdateMerchantApiCredentialRequest addAllowedOriginsItem(String allowedOr } /** - * The new list of [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * for the API credential. - * - * @return allowedOrigins The new list of [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * for the API credential. + * The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential. + * @return allowedOrigins The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,13 +114,9 @@ public List getAllowedOrigins() { } /** - * The new list of [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * for the API credential. + * The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential. * - * @param allowedOrigins The new list of [allowed - * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) - * for the API credential. + * @param allowedOrigins The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -133,8 +128,7 @@ public void setAllowedOrigins(List allowedOrigins) { * Description of the API credential. * * @param description Description of the API credential. - * @return the current {@code UpdateMerchantApiCredentialRequest} instance, allowing for method - * chaining + * @return the current {@code UpdateMerchantApiCredentialRequest} instance, allowing for method chaining */ public UpdateMerchantApiCredentialRequest description(String description) { this.description = description; @@ -143,7 +137,6 @@ public UpdateMerchantApiCredentialRequest description(String description) { /** * Description of the API credential. - * * @return description Description of the API credential. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -164,16 +157,10 @@ public void setDescription(String description) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the - * API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned - * to other API credentials. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. * - * @param roles List of - * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API - * credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned - * to other API credentials. - * @return the current {@code UpdateMerchantApiCredentialRequest} instance, allowing for method - * chaining + * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. + * @return the current {@code UpdateMerchantApiCredentialRequest} instance, allowing for method chaining */ public UpdateMerchantApiCredentialRequest roles(List roles) { this.roles = roles; @@ -189,14 +176,8 @@ public UpdateMerchantApiCredentialRequest addRolesItem(String rolesItem) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the - * API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned - * to other API credentials. - * - * @return roles List of - * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API - * credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned - * to other API credentials. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. + * @return roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -205,14 +186,9 @@ public List getRoles() { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the - * API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned - * to other API credentials. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. * - * @param roles List of - * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API - * credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned - * to other API credentials. + * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -220,7 +196,9 @@ public void setRoles(List roles) { this.roles = roles; } - /** Return true if this UpdateMerchantApiCredentialRequest object is equal to o. */ + /** + * Return true if this UpdateMerchantApiCredentialRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -229,12 +207,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UpdateMerchantApiCredentialRequest updateMerchantApiCredentialRequest = - (UpdateMerchantApiCredentialRequest) o; - return Objects.equals(this.active, updateMerchantApiCredentialRequest.active) - && Objects.equals(this.allowedOrigins, updateMerchantApiCredentialRequest.allowedOrigins) - && Objects.equals(this.description, updateMerchantApiCredentialRequest.description) - && Objects.equals(this.roles, updateMerchantApiCredentialRequest.roles); + UpdateMerchantApiCredentialRequest updateMerchantApiCredentialRequest = (UpdateMerchantApiCredentialRequest) o; + return Objects.equals(this.active, updateMerchantApiCredentialRequest.active) && + Objects.equals(this.allowedOrigins, updateMerchantApiCredentialRequest.allowedOrigins) && + Objects.equals(this.description, updateMerchantApiCredentialRequest.description) && + Objects.equals(this.roles, updateMerchantApiCredentialRequest.roles); } @Override @@ -255,7 +232,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -264,24 +242,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of UpdateMerchantApiCredentialRequest given an JSON string * * @param jsonString JSON string * @return An instance of UpdateMerchantApiCredentialRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UpdateMerchantApiCredentialRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to UpdateMerchantApiCredentialRequest */ - public static UpdateMerchantApiCredentialRequest fromJson(String jsonString) - throws JsonProcessingException { + public static UpdateMerchantApiCredentialRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdateMerchantApiCredentialRequest.class); } - - /** - * Convert an instance of UpdateMerchantApiCredentialRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of UpdateMerchantApiCredentialRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/UpdateMerchantUserRequest.java b/src/main/java/com/adyen/model/management/UpdateMerchantUserRequest.java index ecd1ffee4..d88471cc1 100644 --- a/src/main/java/com/adyen/model/management/UpdateMerchantUserRequest.java +++ b/src/main/java/com/adyen/model/management/UpdateMerchantUserRequest.java @@ -2,24 +2,34 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.Name2; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** UpdateMerchantUserRequest */ +/** + * UpdateMerchantUserRequest + */ @JsonPropertyOrder({ UpdateMerchantUserRequest.JSON_PROPERTY_ACCOUNT_GROUPS, UpdateMerchantUserRequest.JSON_PROPERTY_ACTIVE, @@ -29,6 +39,7 @@ UpdateMerchantUserRequest.JSON_PROPERTY_ROLES, UpdateMerchantUserRequest.JSON_PROPERTY_TIME_ZONE_CODE }) + public class UpdateMerchantUserRequest { public static final String JSON_PROPERTY_ACCOUNT_GROUPS = "accountGroups"; private List accountGroups; @@ -51,15 +62,13 @@ public class UpdateMerchantUserRequest { public static final String JSON_PROPERTY_TIME_ZONE_CODE = "timeZoneCode"; private String timeZoneCode; - public UpdateMerchantUserRequest() {} + public UpdateMerchantUserRequest() { + } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) - * associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. * - * @param accountGroups The list of [account - * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with - * this user. + * @param accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. * @return the current {@code UpdateMerchantUserRequest} instance, allowing for method chaining */ public UpdateMerchantUserRequest accountGroups(List accountGroups) { @@ -76,12 +85,8 @@ public UpdateMerchantUserRequest addAccountGroupsItem(String accountGroupsItem) } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) - * associated with this user. - * - * @return accountGroups The list of [account - * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with - * this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * @return accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -90,12 +95,9 @@ public List getAccountGroups() { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) - * associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. * - * @param accountGroups The list of [account - * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with - * this user. + * @param accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,7 +118,6 @@ public UpdateMerchantUserRequest active(Boolean active) { /** * Sets the status of the user to active (**true**) or inactive (**false**). - * * @return active Sets the status of the user to active (**true**) or inactive (**false**). */ @JsonProperty(JSON_PROPERTY_ACTIVE) @@ -149,7 +150,6 @@ public UpdateMerchantUserRequest email(String email) { /** * The email address of the user. - * * @return email The email address of the user. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -170,13 +170,9 @@ public void setEmail(String email) { } /** - * The requested login method for the user. To use SSO, you must already have SSO configured with - * Adyen before creating the user. Possible values: **Username & account**, **Email**, or - * **SSO** + * The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** * - * @param loginMethod The requested login method for the user. To use SSO, you must already have - * SSO configured with Adyen before creating the user. Possible values: **Username & - * account**, **Email**, or **SSO** + * @param loginMethod The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** * @return the current {@code UpdateMerchantUserRequest} instance, allowing for method chaining */ public UpdateMerchantUserRequest loginMethod(String loginMethod) { @@ -185,13 +181,8 @@ public UpdateMerchantUserRequest loginMethod(String loginMethod) { } /** - * The requested login method for the user. To use SSO, you must already have SSO configured with - * Adyen before creating the user. Possible values: **Username & account**, **Email**, or - * **SSO** - * - * @return loginMethod The requested login method for the user. To use SSO, you must already have - * SSO configured with Adyen before creating the user. Possible values: **Username & - * account**, **Email**, or **SSO** + * The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** + * @return loginMethod The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** */ @JsonProperty(JSON_PROPERTY_LOGIN_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,13 +191,9 @@ public String getLoginMethod() { } /** - * The requested login method for the user. To use SSO, you must already have SSO configured with - * Adyen before creating the user. Possible values: **Username & account**, **Email**, or - * **SSO** + * The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** * - * @param loginMethod The requested login method for the user. To use SSO, you must already have - * SSO configured with Adyen before creating the user. Possible values: **Username & - * account**, **Email**, or **SSO** + * @param loginMethod The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** */ @JsonProperty(JSON_PROPERTY_LOGIN_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -217,7 +204,7 @@ public void setLoginMethod(String loginMethod) { /** * name * - * @param name + * @param name * @return the current {@code UpdateMerchantUserRequest} instance, allowing for method chaining */ public UpdateMerchantUserRequest name(Name2 name) { @@ -227,8 +214,7 @@ public UpdateMerchantUserRequest name(Name2 name) { /** * Get name - * - * @return name + * @return name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -239,7 +225,7 @@ public Name2 getName() { /** * name * - * @param name + * @param name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -268,7 +254,6 @@ public UpdateMerchantUserRequest addRolesItem(String rolesItem) { /** * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. - * * @return roles The list of [roles](https://docs.adyen.com/account/user-roles) for this user. */ @JsonProperty(JSON_PROPERTY_ROLES) @@ -289,12 +274,9 @@ public void setRoles(List roles) { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the - * time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. * - * @param timeZoneCode The [tz database - * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the - * user. For example, **Europe/Amsterdam**. + * @param timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. * @return the current {@code UpdateMerchantUserRequest} instance, allowing for method chaining */ public UpdateMerchantUserRequest timeZoneCode(String timeZoneCode) { @@ -303,12 +285,8 @@ public UpdateMerchantUserRequest timeZoneCode(String timeZoneCode) { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the - * time zone of the user. For example, **Europe/Amsterdam**. - * - * @return timeZoneCode The [tz database - * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the - * user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * @return timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -317,12 +295,9 @@ public String getTimeZoneCode() { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the - * time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. * - * @param timeZoneCode The [tz database - * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the - * user. For example, **Europe/Amsterdam**. + * @param timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -330,7 +305,9 @@ public void setTimeZoneCode(String timeZoneCode) { this.timeZoneCode = timeZoneCode; } - /** Return true if this UpdateMerchantUserRequest object is equal to o. */ + /** + * Return true if this UpdateMerchantUserRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -340,13 +317,13 @@ public boolean equals(Object o) { return false; } UpdateMerchantUserRequest updateMerchantUserRequest = (UpdateMerchantUserRequest) o; - return Objects.equals(this.accountGroups, updateMerchantUserRequest.accountGroups) - && Objects.equals(this.active, updateMerchantUserRequest.active) - && Objects.equals(this.email, updateMerchantUserRequest.email) - && Objects.equals(this.loginMethod, updateMerchantUserRequest.loginMethod) - && Objects.equals(this.name, updateMerchantUserRequest.name) - && Objects.equals(this.roles, updateMerchantUserRequest.roles) - && Objects.equals(this.timeZoneCode, updateMerchantUserRequest.timeZoneCode); + return Objects.equals(this.accountGroups, updateMerchantUserRequest.accountGroups) && + Objects.equals(this.active, updateMerchantUserRequest.active) && + Objects.equals(this.email, updateMerchantUserRequest.email) && + Objects.equals(this.loginMethod, updateMerchantUserRequest.loginMethod) && + Objects.equals(this.name, updateMerchantUserRequest.name) && + Objects.equals(this.roles, updateMerchantUserRequest.roles) && + Objects.equals(this.timeZoneCode, updateMerchantUserRequest.timeZoneCode); } @Override @@ -370,7 +347,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -379,24 +357,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of UpdateMerchantUserRequest given an JSON string * * @param jsonString JSON string * @return An instance of UpdateMerchantUserRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UpdateMerchantUserRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to UpdateMerchantUserRequest */ - public static UpdateMerchantUserRequest fromJson(String jsonString) - throws JsonProcessingException { + public static UpdateMerchantUserRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdateMerchantUserRequest.class); } - - /** - * Convert an instance of UpdateMerchantUserRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of UpdateMerchantUserRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/UpdateMerchantWebhookRequest.java b/src/main/java/com/adyen/model/management/UpdateMerchantWebhookRequest.java index 16a6564a2..c276d2425 100644 --- a/src/main/java/com/adyen/model/management/UpdateMerchantWebhookRequest.java +++ b/src/main/java/com/adyen/model/management/UpdateMerchantWebhookRequest.java @@ -2,26 +2,32 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.AdditionalSettings; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** UpdateMerchantWebhookRequest */ +/** + * UpdateMerchantWebhookRequest + */ @JsonPropertyOrder({ UpdateMerchantWebhookRequest.JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE, UpdateMerchantWebhookRequest.JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE, @@ -37,17 +43,15 @@ UpdateMerchantWebhookRequest.JSON_PROPERTY_URL, UpdateMerchantWebhookRequest.JSON_PROPERTY_USERNAME }) + public class UpdateMerchantWebhookRequest { - public static final String JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE = - "acceptsExpiredCertificate"; + public static final String JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE = "acceptsExpiredCertificate"; private Boolean acceptsExpiredCertificate; - public static final String JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE = - "acceptsSelfSignedCertificate"; + public static final String JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE = "acceptsSelfSignedCertificate"; private Boolean acceptsSelfSignedCertificate; - public static final String JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE = - "acceptsUntrustedRootCertificate"; + public static final String JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE = "acceptsUntrustedRootCertificate"; private Boolean acceptsUntrustedRootCertificate; public static final String JSON_PROPERTY_ACTIVE = "active"; @@ -57,9 +61,10 @@ public class UpdateMerchantWebhookRequest { private AdditionalSettings additionalSettings; /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** */ public enum CommunicationFormatEnum { + HTTP(String.valueOf("http")), JSON(String.valueOf("json")), @@ -71,7 +76,7 @@ public enum CommunicationFormatEnum { private String value; CommunicationFormatEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -92,11 +97,7 @@ public static CommunicationFormatEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "CommunicationFormatEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(CommunicationFormatEnum.values())); + LOG.warning("CommunicationFormatEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CommunicationFormatEnum.values())); return null; } } @@ -108,11 +109,10 @@ public static CommunicationFormatEnum fromValue(String value) { private String description; /** - * SSL version to access the public webhook URL specified in the `url` field. Possible - * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not - * specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. */ public enum EncryptionProtocolEnum { + HTTP(String.valueOf("HTTP")), TLSV1_2(String.valueOf("TLSv1.2")), @@ -124,7 +124,7 @@ public enum EncryptionProtocolEnum { private String value; EncryptionProtocolEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -145,11 +145,7 @@ public static EncryptionProtocolEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "EncryptionProtocolEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(EncryptionProtocolEnum.values())); + LOG.warning("EncryptionProtocolEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(EncryptionProtocolEnum.values())); return null; } } @@ -158,10 +154,10 @@ public static EncryptionProtocolEnum fromValue(String value) { private EncryptionProtocolEnum encryptionProtocol; /** - * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** - * Default Value: **public**. + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. */ public enum NetworkTypeEnum { + LOCAL(String.valueOf("local")), PUBLIC(String.valueOf("public")); @@ -171,7 +167,7 @@ public enum NetworkTypeEnum { private String value; NetworkTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -192,11 +188,7 @@ public static NetworkTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "NetworkTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(NetworkTypeEnum.values())); + LOG.warning("NetworkTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(NetworkTypeEnum.values())); return null; } } @@ -216,13 +208,13 @@ public static NetworkTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public UpdateMerchantWebhookRequest() {} + public UpdateMerchantWebhookRequest() { + } /** * Indicates if expired SSL certificates are accepted. Default value: **false**. * - * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default - * value: **false**. + * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default value: **false**. * @return the current {@code UpdateMerchantWebhookRequest} instance, allowing for method chaining */ public UpdateMerchantWebhookRequest acceptsExpiredCertificate(Boolean acceptsExpiredCertificate) { @@ -232,9 +224,7 @@ public UpdateMerchantWebhookRequest acceptsExpiredCertificate(Boolean acceptsExp /** * Indicates if expired SSL certificates are accepted. Default value: **false**. - * - * @return acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default - * value: **false**. + * @return acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -245,8 +235,7 @@ public Boolean getAcceptsExpiredCertificate() { /** * Indicates if expired SSL certificates are accepted. Default value: **false**. * - * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default - * value: **false**. + * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -257,21 +246,17 @@ public void setAcceptsExpiredCertificate(Boolean acceptsExpiredCertificate) { /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. * - * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. - * Default value: **false**. + * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. Default value: **false**. * @return the current {@code UpdateMerchantWebhookRequest} instance, allowing for method chaining */ - public UpdateMerchantWebhookRequest acceptsSelfSignedCertificate( - Boolean acceptsSelfSignedCertificate) { + public UpdateMerchantWebhookRequest acceptsSelfSignedCertificate(Boolean acceptsSelfSignedCertificate) { this.acceptsSelfSignedCertificate = acceptsSelfSignedCertificate; return this; } /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. - * - * @return acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. - * Default value: **false**. + * @return acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -282,8 +267,7 @@ public Boolean getAcceptsSelfSignedCertificate() { /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. * - * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. - * Default value: **false**. + * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -294,21 +278,17 @@ public void setAcceptsSelfSignedCertificate(Boolean acceptsSelfSignedCertificate /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. * - * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. - * Default value: **false**. + * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. Default value: **false**. * @return the current {@code UpdateMerchantWebhookRequest} instance, allowing for method chaining */ - public UpdateMerchantWebhookRequest acceptsUntrustedRootCertificate( - Boolean acceptsUntrustedRootCertificate) { + public UpdateMerchantWebhookRequest acceptsUntrustedRootCertificate(Boolean acceptsUntrustedRootCertificate) { this.acceptsUntrustedRootCertificate = acceptsUntrustedRootCertificate; return this; } /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. - * - * @return acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. - * Default value: **false**. + * @return acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -319,8 +299,7 @@ public Boolean getAcceptsUntrustedRootCertificate() { /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. * - * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. - * Default value: **false**. + * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -329,11 +308,9 @@ public void setAcceptsUntrustedRootCertificate(Boolean acceptsUntrustedRootCerti } /** - * Indicates if the webhook configuration is active. The field must be **true** for us to send - * webhooks about events related an account. + * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. * - * @param active Indicates if the webhook configuration is active. The field must be **true** for - * us to send webhooks about events related an account. + * @param active Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. * @return the current {@code UpdateMerchantWebhookRequest} instance, allowing for method chaining */ public UpdateMerchantWebhookRequest active(Boolean active) { @@ -342,11 +319,8 @@ public UpdateMerchantWebhookRequest active(Boolean active) { } /** - * Indicates if the webhook configuration is active. The field must be **true** for us to send - * webhooks about events related an account. - * - * @return active Indicates if the webhook configuration is active. The field must be **true** for - * us to send webhooks about events related an account. + * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. + * @return active Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -355,11 +329,9 @@ public Boolean getActive() { } /** - * Indicates if the webhook configuration is active. The field must be **true** for us to send - * webhooks about events related an account. + * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. * - * @param active Indicates if the webhook configuration is active. The field must be **true** for - * us to send webhooks about events related an account. + * @param active Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -370,7 +342,7 @@ public void setActive(Boolean active) { /** * additionalSettings * - * @param additionalSettings + * @param additionalSettings * @return the current {@code UpdateMerchantWebhookRequest} instance, allowing for method chaining */ public UpdateMerchantWebhookRequest additionalSettings(AdditionalSettings additionalSettings) { @@ -380,8 +352,7 @@ public UpdateMerchantWebhookRequest additionalSettings(AdditionalSettings additi /** * Get additionalSettings - * - * @return additionalSettings + * @return additionalSettings */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -392,7 +363,7 @@ public AdditionalSettings getAdditionalSettings() { /** * additionalSettings * - * @param additionalSettings + * @param additionalSettings */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -401,23 +372,19 @@ public void setAdditionalSettings(AdditionalSettings additionalSettings) { } /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** * - * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * - * **soap** * **http** * **json** + * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** * @return the current {@code UpdateMerchantWebhookRequest} instance, allowing for method chaining */ - public UpdateMerchantWebhookRequest communicationFormat( - CommunicationFormatEnum communicationFormat) { + public UpdateMerchantWebhookRequest communicationFormat(CommunicationFormatEnum communicationFormat) { this.communicationFormat = communicationFormat; return this; } /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** - * - * @return communicationFormat Format or protocol for receiving webhooks. Possible values: * - * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * @return communicationFormat Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** */ @JsonProperty(JSON_PROPERTY_COMMUNICATION_FORMAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -426,10 +393,9 @@ public CommunicationFormatEnum getCommunicationFormat() { } /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** * - * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * - * **soap** * **http** * **json** + * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** */ @JsonProperty(JSON_PROPERTY_COMMUNICATION_FORMAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -450,7 +416,6 @@ public UpdateMerchantWebhookRequest description(String description) { /** * Your description for this webhook configuration. - * * @return description Your description for this webhook configuration. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -471,31 +436,19 @@ public void setDescription(String description) { } /** - * SSL version to access the public webhook URL specified in the `url` field. Possible - * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not - * specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. * - * @param encryptionProtocol SSL version to access the public webhook URL specified in the - * `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only - * allowed on Test environment. If not specified, the webhook will use `sslVersion`: - * **TLSv1.2**. + * @param encryptionProtocol SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. * @return the current {@code UpdateMerchantWebhookRequest} instance, allowing for method chaining */ - public UpdateMerchantWebhookRequest encryptionProtocol( - EncryptionProtocolEnum encryptionProtocol) { + public UpdateMerchantWebhookRequest encryptionProtocol(EncryptionProtocolEnum encryptionProtocol) { this.encryptionProtocol = encryptionProtocol; return this; } /** - * SSL version to access the public webhook URL specified in the `url` field. Possible - * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not - * specified, the webhook will use `sslVersion`: **TLSv1.2**. - * - * @return encryptionProtocol SSL version to access the public webhook URL specified in the - * `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only - * allowed on Test environment. If not specified, the webhook will use `sslVersion`: - * **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * @return encryptionProtocol SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. */ @JsonProperty(JSON_PROPERTY_ENCRYPTION_PROTOCOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -504,14 +457,9 @@ public EncryptionProtocolEnum getEncryptionProtocol() { } /** - * SSL version to access the public webhook URL specified in the `url` field. Possible - * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not - * specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. * - * @param encryptionProtocol SSL version to access the public webhook URL specified in the - * `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only - * allowed on Test environment. If not specified, the webhook will use `sslVersion`: - * **TLSv1.2**. + * @param encryptionProtocol SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. */ @JsonProperty(JSON_PROPERTY_ENCRYPTION_PROTOCOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -520,11 +468,9 @@ public void setEncryptionProtocol(EncryptionProtocolEnum encryptionProtocol) { } /** - * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** - * Default Value: **public**. + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. * - * @param networkType Network type for Terminal API notification webhooks. Possible values: * - * **public** * **local** Default Value: **public**. + * @param networkType Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. * @return the current {@code UpdateMerchantWebhookRequest} instance, allowing for method chaining */ public UpdateMerchantWebhookRequest networkType(NetworkTypeEnum networkType) { @@ -533,11 +479,8 @@ public UpdateMerchantWebhookRequest networkType(NetworkTypeEnum networkType) { } /** - * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** - * Default Value: **public**. - * - * @return networkType Network type for Terminal API notification webhooks. Possible values: * - * **public** * **local** Default Value: **public**. + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. + * @return networkType Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. */ @JsonProperty(JSON_PROPERTY_NETWORK_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -546,11 +489,9 @@ public NetworkTypeEnum getNetworkType() { } /** - * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** - * Default Value: **public**. + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. * - * @param networkType Network type for Terminal API notification webhooks. Possible values: * - * **public** * **local** Default Value: **public**. + * @param networkType Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. */ @JsonProperty(JSON_PROPERTY_NETWORK_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -571,7 +512,6 @@ public UpdateMerchantWebhookRequest password(String password) { /** * Password to access the webhook URL. - * * @return password Password to access the webhook URL. */ @JsonProperty(JSON_PROPERTY_PASSWORD) @@ -592,11 +532,9 @@ public void setPassword(String password) { } /** - * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only - * applies if `communicationFormat`: **soap**. + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. * - * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. - * Default value: **false**. Only applies if `communicationFormat`: **soap**. + * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. * @return the current {@code UpdateMerchantWebhookRequest} instance, allowing for method chaining */ public UpdateMerchantWebhookRequest populateSoapActionHeader(Boolean populateSoapActionHeader) { @@ -605,11 +543,8 @@ public UpdateMerchantWebhookRequest populateSoapActionHeader(Boolean populateSoa } /** - * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only - * applies if `communicationFormat`: **soap**. - * - * @return populateSoapActionHeader Indicates if the SOAP action header needs to be populated. - * Default value: **false**. Only applies if `communicationFormat`: **soap**. + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + * @return populateSoapActionHeader Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. */ @JsonProperty(JSON_PROPERTY_POPULATE_SOAP_ACTION_HEADER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -618,11 +553,9 @@ public Boolean getPopulateSoapActionHeader() { } /** - * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only - * applies if `communicationFormat`: **soap**. + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. * - * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. - * Default value: **false**. Only applies if `communicationFormat`: **soap**. + * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. */ @JsonProperty(JSON_PROPERTY_POPULATE_SOAP_ACTION_HEADER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -631,11 +564,9 @@ public void setPopulateSoapActionHeader(Boolean populateSoapActionHeader) { } /** - * Public URL where webhooks will be sent, for example - * **https://www.domain.com/webhook-endpoint**. + * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. * - * @param url Public URL where webhooks will be sent, for example - * **https://www.domain.com/webhook-endpoint**. + * @param url Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. * @return the current {@code UpdateMerchantWebhookRequest} instance, allowing for method chaining */ public UpdateMerchantWebhookRequest url(String url) { @@ -644,11 +575,8 @@ public UpdateMerchantWebhookRequest url(String url) { } /** - * Public URL where webhooks will be sent, for example - * **https://www.domain.com/webhook-endpoint**. - * - * @return url Public URL where webhooks will be sent, for example - * **https://www.domain.com/webhook-endpoint**. + * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + * @return url Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. */ @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -657,11 +585,9 @@ public String getUrl() { } /** - * Public URL where webhooks will be sent, for example - * **https://www.domain.com/webhook-endpoint**. + * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. * - * @param url Public URL where webhooks will be sent, for example - * **https://www.domain.com/webhook-endpoint**. + * @param url Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. */ @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -682,7 +608,6 @@ public UpdateMerchantWebhookRequest username(String username) { /** * Username to access the webhook URL. - * * @return username Username to access the webhook URL. */ @JsonProperty(JSON_PROPERTY_USERNAME) @@ -702,7 +627,9 @@ public void setUsername(String username) { this.username = username; } - /** Return true if this UpdateMerchantWebhookRequest object is equal to o. */ + /** + * Return true if this UpdateMerchantWebhookRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -712,71 +639,41 @@ public boolean equals(Object o) { return false; } UpdateMerchantWebhookRequest updateMerchantWebhookRequest = (UpdateMerchantWebhookRequest) o; - return Objects.equals( - this.acceptsExpiredCertificate, updateMerchantWebhookRequest.acceptsExpiredCertificate) - && Objects.equals( - this.acceptsSelfSignedCertificate, - updateMerchantWebhookRequest.acceptsSelfSignedCertificate) - && Objects.equals( - this.acceptsUntrustedRootCertificate, - updateMerchantWebhookRequest.acceptsUntrustedRootCertificate) - && Objects.equals(this.active, updateMerchantWebhookRequest.active) - && Objects.equals(this.additionalSettings, updateMerchantWebhookRequest.additionalSettings) - && Objects.equals( - this.communicationFormat, updateMerchantWebhookRequest.communicationFormat) - && Objects.equals(this.description, updateMerchantWebhookRequest.description) - && Objects.equals(this.encryptionProtocol, updateMerchantWebhookRequest.encryptionProtocol) - && Objects.equals(this.networkType, updateMerchantWebhookRequest.networkType) - && Objects.equals(this.password, updateMerchantWebhookRequest.password) - && Objects.equals( - this.populateSoapActionHeader, updateMerchantWebhookRequest.populateSoapActionHeader) - && Objects.equals(this.url, updateMerchantWebhookRequest.url) - && Objects.equals(this.username, updateMerchantWebhookRequest.username); + return Objects.equals(this.acceptsExpiredCertificate, updateMerchantWebhookRequest.acceptsExpiredCertificate) && + Objects.equals(this.acceptsSelfSignedCertificate, updateMerchantWebhookRequest.acceptsSelfSignedCertificate) && + Objects.equals(this.acceptsUntrustedRootCertificate, updateMerchantWebhookRequest.acceptsUntrustedRootCertificate) && + Objects.equals(this.active, updateMerchantWebhookRequest.active) && + Objects.equals(this.additionalSettings, updateMerchantWebhookRequest.additionalSettings) && + Objects.equals(this.communicationFormat, updateMerchantWebhookRequest.communicationFormat) && + Objects.equals(this.description, updateMerchantWebhookRequest.description) && + Objects.equals(this.encryptionProtocol, updateMerchantWebhookRequest.encryptionProtocol) && + Objects.equals(this.networkType, updateMerchantWebhookRequest.networkType) && + Objects.equals(this.password, updateMerchantWebhookRequest.password) && + Objects.equals(this.populateSoapActionHeader, updateMerchantWebhookRequest.populateSoapActionHeader) && + Objects.equals(this.url, updateMerchantWebhookRequest.url) && + Objects.equals(this.username, updateMerchantWebhookRequest.username); } @Override public int hashCode() { - return Objects.hash( - acceptsExpiredCertificate, - acceptsSelfSignedCertificate, - acceptsUntrustedRootCertificate, - active, - additionalSettings, - communicationFormat, - description, - encryptionProtocol, - networkType, - password, - populateSoapActionHeader, - url, - username); + return Objects.hash(acceptsExpiredCertificate, acceptsSelfSignedCertificate, acceptsUntrustedRootCertificate, active, additionalSettings, communicationFormat, description, encryptionProtocol, networkType, password, populateSoapActionHeader, url, username); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateMerchantWebhookRequest {\n"); - sb.append(" acceptsExpiredCertificate: ") - .append(toIndentedString(acceptsExpiredCertificate)) - .append("\n"); - sb.append(" acceptsSelfSignedCertificate: ") - .append(toIndentedString(acceptsSelfSignedCertificate)) - .append("\n"); - sb.append(" acceptsUntrustedRootCertificate: ") - .append(toIndentedString(acceptsUntrustedRootCertificate)) - .append("\n"); + sb.append(" acceptsExpiredCertificate: ").append(toIndentedString(acceptsExpiredCertificate)).append("\n"); + sb.append(" acceptsSelfSignedCertificate: ").append(toIndentedString(acceptsSelfSignedCertificate)).append("\n"); + sb.append(" acceptsUntrustedRootCertificate: ").append(toIndentedString(acceptsUntrustedRootCertificate)).append("\n"); sb.append(" active: ").append(toIndentedString(active)).append("\n"); sb.append(" additionalSettings: ").append(toIndentedString(additionalSettings)).append("\n"); - sb.append(" communicationFormat: ") - .append(toIndentedString(communicationFormat)) - .append("\n"); + sb.append(" communicationFormat: ").append(toIndentedString(communicationFormat)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" encryptionProtocol: ").append(toIndentedString(encryptionProtocol)).append("\n"); sb.append(" networkType: ").append(toIndentedString(networkType)).append("\n"); sb.append(" password: ").append(toIndentedString(password)).append("\n"); - sb.append(" populateSoapActionHeader: ") - .append(toIndentedString(populateSoapActionHeader)) - .append("\n"); + sb.append(" populateSoapActionHeader: ").append(toIndentedString(populateSoapActionHeader)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" username: ").append(toIndentedString(username)).append("\n"); sb.append("}"); @@ -784,7 +681,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -793,24 +691,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of UpdateMerchantWebhookRequest given an JSON string * * @param jsonString JSON string * @return An instance of UpdateMerchantWebhookRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UpdateMerchantWebhookRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to UpdateMerchantWebhookRequest */ - public static UpdateMerchantWebhookRequest fromJson(String jsonString) - throws JsonProcessingException { + public static UpdateMerchantWebhookRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdateMerchantWebhookRequest.class); } - - /** - * Convert an instance of UpdateMerchantWebhookRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of UpdateMerchantWebhookRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/UpdatePaymentMethodInfo.java b/src/main/java/com/adyen/model/management/UpdatePaymentMethodInfo.java index 3e233f2ce..5c05d74ca 100644 --- a/src/main/java/com/adyen/model/management/UpdatePaymentMethodInfo.java +++ b/src/main/java/com/adyen/model/management/UpdatePaymentMethodInfo.java @@ -2,24 +2,42 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.AccelInfo; +import com.adyen.model.management.BcmcInfo; +import com.adyen.model.management.CartesBancairesInfo; +import com.adyen.model.management.GenericPmWithTdiInfo; +import com.adyen.model.management.NyceInfo; +import com.adyen.model.management.PayByBankPlaidInfo; +import com.adyen.model.management.PulseInfo; +import com.adyen.model.management.SepaDirectDebitInfo; +import com.adyen.model.management.StarInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** UpdatePaymentMethodInfo */ +/** + * UpdatePaymentMethodInfo + */ @JsonPropertyOrder({ UpdatePaymentMethodInfo.JSON_PROPERTY_ACCEL, UpdatePaymentMethodInfo.JSON_PROPERTY_BCMC, @@ -49,6 +67,7 @@ UpdatePaymentMethodInfo.JSON_PROPERTY_STORE_IDS, UpdatePaymentMethodInfo.JSON_PROPERTY_VISA }) + public class UpdatePaymentMethodInfo { public static final String JSON_PROPERTY_ACCEL = "accel"; private AccelInfo accel; @@ -126,19 +145,19 @@ public class UpdatePaymentMethodInfo { private String storeId; public static final String JSON_PROPERTY_STORE_IDS = "storeIds"; - @Deprecated // deprecated since Management API v3: Use `storeId` instead. Only one store per - // payment method is allowed. + @Deprecated // deprecated since Management API v3: Use `storeId` instead. Only one store per payment method is allowed. private List storeIds; public static final String JSON_PROPERTY_VISA = "visa"; private GenericPmWithTdiInfo visa; - public UpdatePaymentMethodInfo() {} + public UpdatePaymentMethodInfo() { + } /** * accel * - * @param accel + * @param accel * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo accel(AccelInfo accel) { @@ -148,8 +167,7 @@ public UpdatePaymentMethodInfo accel(AccelInfo accel) { /** * Get accel - * - * @return accel + * @return accel */ @JsonProperty(JSON_PROPERTY_ACCEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,7 +178,7 @@ public AccelInfo getAccel() { /** * accel * - * @param accel + * @param accel */ @JsonProperty(JSON_PROPERTY_ACCEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -171,7 +189,7 @@ public void setAccel(AccelInfo accel) { /** * bcmc * - * @param bcmc + * @param bcmc * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo bcmc(BcmcInfo bcmc) { @@ -181,8 +199,7 @@ public UpdatePaymentMethodInfo bcmc(BcmcInfo bcmc) { /** * Get bcmc - * - * @return bcmc + * @return bcmc */ @JsonProperty(JSON_PROPERTY_BCMC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,7 +210,7 @@ public BcmcInfo getBcmc() { /** * bcmc * - * @param bcmc + * @param bcmc */ @JsonProperty(JSON_PROPERTY_BCMC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,7 +221,7 @@ public void setBcmc(BcmcInfo bcmc) { /** * cartesBancaires * - * @param cartesBancaires + * @param cartesBancaires * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo cartesBancaires(CartesBancairesInfo cartesBancaires) { @@ -214,8 +231,7 @@ public UpdatePaymentMethodInfo cartesBancaires(CartesBancairesInfo cartesBancair /** * Get cartesBancaires - * - * @return cartesBancaires + * @return cartesBancaires */ @JsonProperty(JSON_PROPERTY_CARTES_BANCAIRES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -226,7 +242,7 @@ public CartesBancairesInfo getCartesBancaires() { /** * cartesBancaires * - * @param cartesBancaires + * @param cartesBancaires */ @JsonProperty(JSON_PROPERTY_CARTES_BANCAIRES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -235,11 +251,9 @@ public void setCartesBancaires(CartesBancairesInfo cartesBancaires) { } /** - * The list of countries where a payment method is available. By default, all countries supported - * by the payment method. + * The list of countries where a payment method is available. By default, all countries supported by the payment method. * - * @param countries The list of countries where a payment method is available. By default, all - * countries supported by the payment method. + * @param countries The list of countries where a payment method is available. By default, all countries supported by the payment method. * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo countries(List countries) { @@ -256,11 +270,8 @@ public UpdatePaymentMethodInfo addCountriesItem(String countriesItem) { } /** - * The list of countries where a payment method is available. By default, all countries supported - * by the payment method. - * - * @return countries The list of countries where a payment method is available. By default, all - * countries supported by the payment method. + * The list of countries where a payment method is available. By default, all countries supported by the payment method. + * @return countries The list of countries where a payment method is available. By default, all countries supported by the payment method. */ @JsonProperty(JSON_PROPERTY_COUNTRIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -269,11 +280,9 @@ public List getCountries() { } /** - * The list of countries where a payment method is available. By default, all countries supported - * by the payment method. + * The list of countries where a payment method is available. By default, all countries supported by the payment method. * - * @param countries The list of countries where a payment method is available. By default, all - * countries supported by the payment method. + * @param countries The list of countries where a payment method is available. By default, all countries supported by the payment method. */ @JsonProperty(JSON_PROPERTY_COUNTRIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,7 +293,7 @@ public void setCountries(List countries) { /** * cup * - * @param cup + * @param cup * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo cup(GenericPmWithTdiInfo cup) { @@ -294,8 +303,7 @@ public UpdatePaymentMethodInfo cup(GenericPmWithTdiInfo cup) { /** * Get cup - * - * @return cup + * @return cup */ @JsonProperty(JSON_PROPERTY_CUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -306,7 +314,7 @@ public GenericPmWithTdiInfo getCup() { /** * cup * - * @param cup + * @param cup */ @JsonProperty(JSON_PROPERTY_CUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -315,11 +323,9 @@ public void setCup(GenericPmWithTdiInfo cup) { } /** - * The list of currencies that a payment method supports. By default, all currencies supported by - * the payment method. + * The list of currencies that a payment method supports. By default, all currencies supported by the payment method. * - * @param currencies The list of currencies that a payment method supports. By default, all - * currencies supported by the payment method. + * @param currencies The list of currencies that a payment method supports. By default, all currencies supported by the payment method. * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo currencies(List currencies) { @@ -336,11 +342,8 @@ public UpdatePaymentMethodInfo addCurrenciesItem(String currenciesItem) { } /** - * The list of currencies that a payment method supports. By default, all currencies supported by - * the payment method. - * - * @return currencies The list of currencies that a payment method supports. By default, all - * currencies supported by the payment method. + * The list of currencies that a payment method supports. By default, all currencies supported by the payment method. + * @return currencies The list of currencies that a payment method supports. By default, all currencies supported by the payment method. */ @JsonProperty(JSON_PROPERTY_CURRENCIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -349,11 +352,9 @@ public List getCurrencies() { } /** - * The list of currencies that a payment method supports. By default, all currencies supported by - * the payment method. + * The list of currencies that a payment method supports. By default, all currencies supported by the payment method. * - * @param currencies The list of currencies that a payment method supports. By default, all - * currencies supported by the payment method. + * @param currencies The list of currencies that a payment method supports. By default, all currencies supported by the payment method. */ @JsonProperty(JSON_PROPERTY_CURRENCIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -382,7 +383,6 @@ public UpdatePaymentMethodInfo addCustomRoutingFlagsItem(String customRoutingFla /** * Custom routing flags for acquirer routing. - * * @return customRoutingFlags Custom routing flags for acquirer routing. */ @JsonProperty(JSON_PROPERTY_CUSTOM_ROUTING_FLAGS) @@ -405,7 +405,7 @@ public void setCustomRoutingFlags(List customRoutingFlags) { /** * diners * - * @param diners + * @param diners * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo diners(GenericPmWithTdiInfo diners) { @@ -415,8 +415,7 @@ public UpdatePaymentMethodInfo diners(GenericPmWithTdiInfo diners) { /** * Get diners - * - * @return diners + * @return diners */ @JsonProperty(JSON_PROPERTY_DINERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -427,7 +426,7 @@ public GenericPmWithTdiInfo getDiners() { /** * diners * - * @param diners + * @param diners */ @JsonProperty(JSON_PROPERTY_DINERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -438,7 +437,7 @@ public void setDiners(GenericPmWithTdiInfo diners) { /** * discover * - * @param discover + * @param discover * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo discover(GenericPmWithTdiInfo discover) { @@ -448,8 +447,7 @@ public UpdatePaymentMethodInfo discover(GenericPmWithTdiInfo discover) { /** * Get discover - * - * @return discover + * @return discover */ @JsonProperty(JSON_PROPERTY_DISCOVER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -460,7 +458,7 @@ public GenericPmWithTdiInfo getDiscover() { /** * discover * - * @param discover + * @param discover */ @JsonProperty(JSON_PROPERTY_DISCOVER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -471,7 +469,7 @@ public void setDiscover(GenericPmWithTdiInfo discover) { /** * eftDirectdebitCA * - * @param eftDirectdebitCA + * @param eftDirectdebitCA * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo eftDirectdebitCA(GenericPmWithTdiInfo eftDirectdebitCA) { @@ -481,8 +479,7 @@ public UpdatePaymentMethodInfo eftDirectdebitCA(GenericPmWithTdiInfo eftDirectde /** * Get eftDirectdebitCA - * - * @return eftDirectdebitCA + * @return eftDirectdebitCA */ @JsonProperty(JSON_PROPERTY_EFT_DIRECTDEBIT_C_A) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -493,7 +490,7 @@ public GenericPmWithTdiInfo getEftDirectdebitCA() { /** * eftDirectdebitCA * - * @param eftDirectdebitCA + * @param eftDirectdebitCA */ @JsonProperty(JSON_PROPERTY_EFT_DIRECTDEBIT_C_A) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -504,7 +501,7 @@ public void setEftDirectdebitCA(GenericPmWithTdiInfo eftDirectdebitCA) { /** * eftposAustralia * - * @param eftposAustralia + * @param eftposAustralia * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo eftposAustralia(GenericPmWithTdiInfo eftposAustralia) { @@ -514,8 +511,7 @@ public UpdatePaymentMethodInfo eftposAustralia(GenericPmWithTdiInfo eftposAustra /** * Get eftposAustralia - * - * @return eftposAustralia + * @return eftposAustralia */ @JsonProperty(JSON_PROPERTY_EFTPOS_AUSTRALIA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -526,7 +522,7 @@ public GenericPmWithTdiInfo getEftposAustralia() { /** * eftposAustralia * - * @param eftposAustralia + * @param eftposAustralia */ @JsonProperty(JSON_PROPERTY_EFTPOS_AUSTRALIA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -537,8 +533,7 @@ public void setEftposAustralia(GenericPmWithTdiInfo eftposAustralia) { /** * Indicates whether the payment method is enabled (**true**) or disabled (**false**). * - * @param enabled Indicates whether the payment method is enabled (**true**) or disabled - * (**false**). + * @param enabled Indicates whether the payment method is enabled (**true**) or disabled (**false**). * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo enabled(Boolean enabled) { @@ -548,9 +543,7 @@ public UpdatePaymentMethodInfo enabled(Boolean enabled) { /** * Indicates whether the payment method is enabled (**true**) or disabled (**false**). - * - * @return enabled Indicates whether the payment method is enabled (**true**) or disabled - * (**false**). + * @return enabled Indicates whether the payment method is enabled (**true**) or disabled (**false**). */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -561,8 +554,7 @@ public Boolean getEnabled() { /** * Indicates whether the payment method is enabled (**true**) or disabled (**false**). * - * @param enabled Indicates whether the payment method is enabled (**true**) or disabled - * (**false**). + * @param enabled Indicates whether the payment method is enabled (**true**) or disabled (**false**). */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -573,7 +565,7 @@ public void setEnabled(Boolean enabled) { /** * girocard * - * @param girocard + * @param girocard * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo girocard(GenericPmWithTdiInfo girocard) { @@ -583,8 +575,7 @@ public UpdatePaymentMethodInfo girocard(GenericPmWithTdiInfo girocard) { /** * Get girocard - * - * @return girocard + * @return girocard */ @JsonProperty(JSON_PROPERTY_GIROCARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -595,7 +586,7 @@ public GenericPmWithTdiInfo getGirocard() { /** * girocard * - * @param girocard + * @param girocard */ @JsonProperty(JSON_PROPERTY_GIROCARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -606,7 +597,7 @@ public void setGirocard(GenericPmWithTdiInfo girocard) { /** * ideal * - * @param ideal + * @param ideal * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo ideal(GenericPmWithTdiInfo ideal) { @@ -616,8 +607,7 @@ public UpdatePaymentMethodInfo ideal(GenericPmWithTdiInfo ideal) { /** * Get ideal - * - * @return ideal + * @return ideal */ @JsonProperty(JSON_PROPERTY_IDEAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -628,7 +618,7 @@ public GenericPmWithTdiInfo getIdeal() { /** * ideal * - * @param ideal + * @param ideal */ @JsonProperty(JSON_PROPERTY_IDEAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -639,7 +629,7 @@ public void setIdeal(GenericPmWithTdiInfo ideal) { /** * interacCard * - * @param interacCard + * @param interacCard * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo interacCard(GenericPmWithTdiInfo interacCard) { @@ -649,8 +639,7 @@ public UpdatePaymentMethodInfo interacCard(GenericPmWithTdiInfo interacCard) { /** * Get interacCard - * - * @return interacCard + * @return interacCard */ @JsonProperty(JSON_PROPERTY_INTERAC_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -661,7 +650,7 @@ public GenericPmWithTdiInfo getInteracCard() { /** * interacCard * - * @param interacCard + * @param interacCard */ @JsonProperty(JSON_PROPERTY_INTERAC_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -672,7 +661,7 @@ public void setInteracCard(GenericPmWithTdiInfo interacCard) { /** * jcb * - * @param jcb + * @param jcb * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo jcb(GenericPmWithTdiInfo jcb) { @@ -682,8 +671,7 @@ public UpdatePaymentMethodInfo jcb(GenericPmWithTdiInfo jcb) { /** * Get jcb - * - * @return jcb + * @return jcb */ @JsonProperty(JSON_PROPERTY_JCB) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -694,7 +682,7 @@ public GenericPmWithTdiInfo getJcb() { /** * jcb * - * @param jcb + * @param jcb */ @JsonProperty(JSON_PROPERTY_JCB) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -705,7 +693,7 @@ public void setJcb(GenericPmWithTdiInfo jcb) { /** * maestro * - * @param maestro + * @param maestro * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo maestro(GenericPmWithTdiInfo maestro) { @@ -715,8 +703,7 @@ public UpdatePaymentMethodInfo maestro(GenericPmWithTdiInfo maestro) { /** * Get maestro - * - * @return maestro + * @return maestro */ @JsonProperty(JSON_PROPERTY_MAESTRO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -727,7 +714,7 @@ public GenericPmWithTdiInfo getMaestro() { /** * maestro * - * @param maestro + * @param maestro */ @JsonProperty(JSON_PROPERTY_MAESTRO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -738,7 +725,7 @@ public void setMaestro(GenericPmWithTdiInfo maestro) { /** * maestroUsa * - * @param maestroUsa + * @param maestroUsa * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo maestroUsa(GenericPmWithTdiInfo maestroUsa) { @@ -748,8 +735,7 @@ public UpdatePaymentMethodInfo maestroUsa(GenericPmWithTdiInfo maestroUsa) { /** * Get maestroUsa - * - * @return maestroUsa + * @return maestroUsa */ @JsonProperty(JSON_PROPERTY_MAESTRO_USA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -760,7 +746,7 @@ public GenericPmWithTdiInfo getMaestroUsa() { /** * maestroUsa * - * @param maestroUsa + * @param maestroUsa */ @JsonProperty(JSON_PROPERTY_MAESTRO_USA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -771,7 +757,7 @@ public void setMaestroUsa(GenericPmWithTdiInfo maestroUsa) { /** * mc * - * @param mc + * @param mc * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo mc(GenericPmWithTdiInfo mc) { @@ -781,8 +767,7 @@ public UpdatePaymentMethodInfo mc(GenericPmWithTdiInfo mc) { /** * Get mc - * - * @return mc + * @return mc */ @JsonProperty(JSON_PROPERTY_MC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -793,7 +778,7 @@ public GenericPmWithTdiInfo getMc() { /** * mc * - * @param mc + * @param mc */ @JsonProperty(JSON_PROPERTY_MC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -804,7 +789,7 @@ public void setMc(GenericPmWithTdiInfo mc) { /** * nyce * - * @param nyce + * @param nyce * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo nyce(NyceInfo nyce) { @@ -814,8 +799,7 @@ public UpdatePaymentMethodInfo nyce(NyceInfo nyce) { /** * Get nyce - * - * @return nyce + * @return nyce */ @JsonProperty(JSON_PROPERTY_NYCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -826,7 +810,7 @@ public NyceInfo getNyce() { /** * nyce * - * @param nyce + * @param nyce */ @JsonProperty(JSON_PROPERTY_NYCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -837,7 +821,7 @@ public void setNyce(NyceInfo nyce) { /** * paybybankPlaid * - * @param paybybankPlaid + * @param paybybankPlaid * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo paybybankPlaid(PayByBankPlaidInfo paybybankPlaid) { @@ -847,8 +831,7 @@ public UpdatePaymentMethodInfo paybybankPlaid(PayByBankPlaidInfo paybybankPlaid) /** * Get paybybankPlaid - * - * @return paybybankPlaid + * @return paybybankPlaid */ @JsonProperty(JSON_PROPERTY_PAYBYBANK_PLAID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -859,7 +842,7 @@ public PayByBankPlaidInfo getPaybybankPlaid() { /** * paybybankPlaid * - * @param paybybankPlaid + * @param paybybankPlaid */ @JsonProperty(JSON_PROPERTY_PAYBYBANK_PLAID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -870,7 +853,7 @@ public void setPaybybankPlaid(PayByBankPlaidInfo paybybankPlaid) { /** * pulse * - * @param pulse + * @param pulse * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo pulse(PulseInfo pulse) { @@ -880,8 +863,7 @@ public UpdatePaymentMethodInfo pulse(PulseInfo pulse) { /** * Get pulse - * - * @return pulse + * @return pulse */ @JsonProperty(JSON_PROPERTY_PULSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -892,7 +874,7 @@ public PulseInfo getPulse() { /** * pulse * - * @param pulse + * @param pulse */ @JsonProperty(JSON_PROPERTY_PULSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -903,7 +885,7 @@ public void setPulse(PulseInfo pulse) { /** * sepadirectdebit * - * @param sepadirectdebit + * @param sepadirectdebit * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo sepadirectdebit(SepaDirectDebitInfo sepadirectdebit) { @@ -913,8 +895,7 @@ public UpdatePaymentMethodInfo sepadirectdebit(SepaDirectDebitInfo sepadirectdeb /** * Get sepadirectdebit - * - * @return sepadirectdebit + * @return sepadirectdebit */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -925,7 +906,7 @@ public SepaDirectDebitInfo getSepadirectdebit() { /** * sepadirectdebit * - * @param sepadirectdebit + * @param sepadirectdebit */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -936,7 +917,7 @@ public void setSepadirectdebit(SepaDirectDebitInfo sepadirectdebit) { /** * star * - * @param star + * @param star * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo star(StarInfo star) { @@ -946,8 +927,7 @@ public UpdatePaymentMethodInfo star(StarInfo star) { /** * Get star - * - * @return star + * @return star */ @JsonProperty(JSON_PROPERTY_STAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -958,7 +938,7 @@ public StarInfo getStar() { /** * star * - * @param star + * @param star */ @JsonProperty(JSON_PROPERTY_STAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -979,7 +959,6 @@ public UpdatePaymentMethodInfo storeId(String storeId) { /** * The store for this payment method - * * @return storeId The store for this payment method */ @JsonProperty(JSON_PROPERTY_STORE_ID) @@ -1004,11 +983,11 @@ public void setStoreId(String storeId) { * * @param storeIds The list of stores for this payment method * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining - * @deprecated since Management API v3 Use `storeId` instead. Only one store per payment - * method is allowed. + * + * @deprecated since Management API v3 + * Use `storeId` instead. Only one store per payment method is allowed. */ - @Deprecated // deprecated since Management API v3: Use `storeId` instead. Only one store per - // payment method is allowed. + @Deprecated // deprecated since Management API v3: Use `storeId` instead. Only one store per payment method is allowed. public UpdatePaymentMethodInfo storeIds(List storeIds) { this.storeIds = storeIds; return this; @@ -1024,13 +1003,10 @@ public UpdatePaymentMethodInfo addStoreIdsItem(String storeIdsItem) { /** * The list of stores for this payment method - * * @return storeIds The list of stores for this payment method - * @deprecated // deprecated since Management API v3: Use `storeId` instead. Only one store per - * payment method is allowed. + * @deprecated // deprecated since Management API v3: Use `storeId` instead. Only one store per payment method is allowed. */ - @Deprecated // deprecated since Management API v3: Use `storeId` instead. Only one store per - // payment method is allowed. + @Deprecated // deprecated since Management API v3: Use `storeId` instead. Only one store per payment method is allowed. @JsonProperty(JSON_PROPERTY_STORE_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getStoreIds() { @@ -1041,11 +1017,11 @@ public List getStoreIds() { * The list of stores for this payment method * * @param storeIds The list of stores for this payment method - * @deprecated since Management API v3 Use `storeId` instead. Only one store per payment - * method is allowed. + * + * @deprecated since Management API v3 + * Use `storeId` instead. Only one store per payment method is allowed. */ - @Deprecated // deprecated since Management API v3: Use `storeId` instead. Only one store per - // payment method is allowed. + @Deprecated // deprecated since Management API v3: Use `storeId` instead. Only one store per payment method is allowed. @JsonProperty(JSON_PROPERTY_STORE_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStoreIds(List storeIds) { @@ -1055,7 +1031,7 @@ public void setStoreIds(List storeIds) { /** * visa * - * @param visa + * @param visa * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo visa(GenericPmWithTdiInfo visa) { @@ -1065,8 +1041,7 @@ public UpdatePaymentMethodInfo visa(GenericPmWithTdiInfo visa) { /** * Get visa - * - * @return visa + * @return visa */ @JsonProperty(JSON_PROPERTY_VISA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1077,7 +1052,7 @@ public GenericPmWithTdiInfo getVisa() { /** * visa * - * @param visa + * @param visa */ @JsonProperty(JSON_PROPERTY_VISA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1085,7 +1060,9 @@ public void setVisa(GenericPmWithTdiInfo visa) { this.visa = visa; } - /** Return true if this UpdatePaymentMethodInfo object is equal to o. */ + /** + * Return true if this UpdatePaymentMethodInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -1095,65 +1072,38 @@ public boolean equals(Object o) { return false; } UpdatePaymentMethodInfo updatePaymentMethodInfo = (UpdatePaymentMethodInfo) o; - return Objects.equals(this.accel, updatePaymentMethodInfo.accel) - && Objects.equals(this.bcmc, updatePaymentMethodInfo.bcmc) - && Objects.equals(this.cartesBancaires, updatePaymentMethodInfo.cartesBancaires) - && Objects.equals(this.countries, updatePaymentMethodInfo.countries) - && Objects.equals(this.cup, updatePaymentMethodInfo.cup) - && Objects.equals(this.currencies, updatePaymentMethodInfo.currencies) - && Objects.equals(this.customRoutingFlags, updatePaymentMethodInfo.customRoutingFlags) - && Objects.equals(this.diners, updatePaymentMethodInfo.diners) - && Objects.equals(this.discover, updatePaymentMethodInfo.discover) - && Objects.equals(this.eftDirectdebitCA, updatePaymentMethodInfo.eftDirectdebitCA) - && Objects.equals(this.eftposAustralia, updatePaymentMethodInfo.eftposAustralia) - && Objects.equals(this.enabled, updatePaymentMethodInfo.enabled) - && Objects.equals(this.girocard, updatePaymentMethodInfo.girocard) - && Objects.equals(this.ideal, updatePaymentMethodInfo.ideal) - && Objects.equals(this.interacCard, updatePaymentMethodInfo.interacCard) - && Objects.equals(this.jcb, updatePaymentMethodInfo.jcb) - && Objects.equals(this.maestro, updatePaymentMethodInfo.maestro) - && Objects.equals(this.maestroUsa, updatePaymentMethodInfo.maestroUsa) - && Objects.equals(this.mc, updatePaymentMethodInfo.mc) - && Objects.equals(this.nyce, updatePaymentMethodInfo.nyce) - && Objects.equals(this.paybybankPlaid, updatePaymentMethodInfo.paybybankPlaid) - && Objects.equals(this.pulse, updatePaymentMethodInfo.pulse) - && Objects.equals(this.sepadirectdebit, updatePaymentMethodInfo.sepadirectdebit) - && Objects.equals(this.star, updatePaymentMethodInfo.star) - && Objects.equals(this.storeId, updatePaymentMethodInfo.storeId) - && Objects.equals(this.storeIds, updatePaymentMethodInfo.storeIds) - && Objects.equals(this.visa, updatePaymentMethodInfo.visa); + return Objects.equals(this.accel, updatePaymentMethodInfo.accel) && + Objects.equals(this.bcmc, updatePaymentMethodInfo.bcmc) && + Objects.equals(this.cartesBancaires, updatePaymentMethodInfo.cartesBancaires) && + Objects.equals(this.countries, updatePaymentMethodInfo.countries) && + Objects.equals(this.cup, updatePaymentMethodInfo.cup) && + Objects.equals(this.currencies, updatePaymentMethodInfo.currencies) && + Objects.equals(this.customRoutingFlags, updatePaymentMethodInfo.customRoutingFlags) && + Objects.equals(this.diners, updatePaymentMethodInfo.diners) && + Objects.equals(this.discover, updatePaymentMethodInfo.discover) && + Objects.equals(this.eftDirectdebitCA, updatePaymentMethodInfo.eftDirectdebitCA) && + Objects.equals(this.eftposAustralia, updatePaymentMethodInfo.eftposAustralia) && + Objects.equals(this.enabled, updatePaymentMethodInfo.enabled) && + Objects.equals(this.girocard, updatePaymentMethodInfo.girocard) && + Objects.equals(this.ideal, updatePaymentMethodInfo.ideal) && + Objects.equals(this.interacCard, updatePaymentMethodInfo.interacCard) && + Objects.equals(this.jcb, updatePaymentMethodInfo.jcb) && + Objects.equals(this.maestro, updatePaymentMethodInfo.maestro) && + Objects.equals(this.maestroUsa, updatePaymentMethodInfo.maestroUsa) && + Objects.equals(this.mc, updatePaymentMethodInfo.mc) && + Objects.equals(this.nyce, updatePaymentMethodInfo.nyce) && + Objects.equals(this.paybybankPlaid, updatePaymentMethodInfo.paybybankPlaid) && + Objects.equals(this.pulse, updatePaymentMethodInfo.pulse) && + Objects.equals(this.sepadirectdebit, updatePaymentMethodInfo.sepadirectdebit) && + Objects.equals(this.star, updatePaymentMethodInfo.star) && + Objects.equals(this.storeId, updatePaymentMethodInfo.storeId) && + Objects.equals(this.storeIds, updatePaymentMethodInfo.storeIds) && + Objects.equals(this.visa, updatePaymentMethodInfo.visa); } @Override public int hashCode() { - return Objects.hash( - accel, - bcmc, - cartesBancaires, - countries, - cup, - currencies, - customRoutingFlags, - diners, - discover, - eftDirectdebitCA, - eftposAustralia, - enabled, - girocard, - ideal, - interacCard, - jcb, - maestro, - maestroUsa, - mc, - nyce, - paybybankPlaid, - pulse, - sepadirectdebit, - star, - storeId, - storeIds, - visa); + return Objects.hash(accel, bcmc, cartesBancaires, countries, cup, currencies, customRoutingFlags, diners, discover, eftDirectdebitCA, eftposAustralia, enabled, girocard, ideal, interacCard, jcb, maestro, maestroUsa, mc, nyce, paybybankPlaid, pulse, sepadirectdebit, star, storeId, storeIds, visa); } @Override @@ -1192,7 +1142,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1201,23 +1152,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of UpdatePaymentMethodInfo given an JSON string * * @param jsonString JSON string * @return An instance of UpdatePaymentMethodInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UpdatePaymentMethodInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to UpdatePaymentMethodInfo */ public static UpdatePaymentMethodInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdatePaymentMethodInfo.class); } - - /** - * Convert an instance of UpdatePaymentMethodInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of UpdatePaymentMethodInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/UpdatePayoutSettingsRequest.java b/src/main/java/com/adyen/model/management/UpdatePayoutSettingsRequest.java index 3cce63878..7b094fae8 100644 --- a/src/main/java/com/adyen/model/management/UpdatePayoutSettingsRequest.java +++ b/src/main/java/com/adyen/model/management/UpdatePayoutSettingsRequest.java @@ -2,36 +2,46 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** UpdatePayoutSettingsRequest */ -@JsonPropertyOrder({UpdatePayoutSettingsRequest.JSON_PROPERTY_ENABLED}) + +/** + * UpdatePayoutSettingsRequest + */ +@JsonPropertyOrder({ + UpdatePayoutSettingsRequest.JSON_PROPERTY_ENABLED +}) + public class UpdatePayoutSettingsRequest { public static final String JSON_PROPERTY_ENABLED = "enabled"; private Boolean enabled; - public UpdatePayoutSettingsRequest() {} + public UpdatePayoutSettingsRequest() { + } /** - * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts - * into this bank account, both `enabled` and `allowed` must be **true**. + * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. * - * @param enabled Indicates if payouts to this bank account are enabled. Default: **true**. To - * receive payouts into this bank account, both `enabled` and `allowed` - * must be **true**. + * @param enabled Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. * @return the current {@code UpdatePayoutSettingsRequest} instance, allowing for method chaining */ public UpdatePayoutSettingsRequest enabled(Boolean enabled) { @@ -40,12 +50,8 @@ public UpdatePayoutSettingsRequest enabled(Boolean enabled) { } /** - * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts - * into this bank account, both `enabled` and `allowed` must be **true**. - * - * @return enabled Indicates if payouts to this bank account are enabled. Default: **true**. To - * receive payouts into this bank account, both `enabled` and `allowed` - * must be **true**. + * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. + * @return enabled Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -54,12 +60,9 @@ public Boolean getEnabled() { } /** - * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts - * into this bank account, both `enabled` and `allowed` must be **true**. + * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. * - * @param enabled Indicates if payouts to this bank account are enabled. Default: **true**. To - * receive payouts into this bank account, both `enabled` and `allowed` - * must be **true**. + * @param enabled Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -67,7 +70,9 @@ public void setEnabled(Boolean enabled) { this.enabled = enabled; } - /** Return true if this UpdatePayoutSettingsRequest object is equal to o. */ + /** + * Return true if this UpdatePayoutSettingsRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -95,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -104,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of UpdatePayoutSettingsRequest given an JSON string * * @param jsonString JSON string * @return An instance of UpdatePayoutSettingsRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UpdatePayoutSettingsRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to UpdatePayoutSettingsRequest */ - public static UpdatePayoutSettingsRequest fromJson(String jsonString) - throws JsonProcessingException { + public static UpdatePayoutSettingsRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdatePayoutSettingsRequest.class); } - - /** - * Convert an instance of UpdatePayoutSettingsRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of UpdatePayoutSettingsRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/UpdateSplitConfigurationLogicRequest.java b/src/main/java/com/adyen/model/management/UpdateSplitConfigurationLogicRequest.java index 703e37d08..6b7c04f6a 100644 --- a/src/main/java/com/adyen/model/management/UpdateSplitConfigurationLogicRequest.java +++ b/src/main/java/com/adyen/model/management/UpdateSplitConfigurationLogicRequest.java @@ -2,26 +2,33 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.AdditionalCommission; +import com.adyen.model.management.Commission; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** UpdateSplitConfigurationLogicRequest */ +/** + * UpdateSplitConfigurationLogicRequest + */ @JsonPropertyOrder({ UpdateSplitConfigurationLogicRequest.JSON_PROPERTY_ACQUIRING_FEES, UpdateSplitConfigurationLogicRequest.JSON_PROPERTY_ADDITIONAL_COMMISSION, @@ -41,13 +48,13 @@ UpdateSplitConfigurationLogicRequest.JSON_PROPERTY_SURCHARGE, UpdateSplitConfigurationLogicRequest.JSON_PROPERTY_TIP }) + public class UpdateSplitConfigurationLogicRequest { /** - * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the - * specified balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. + * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ public enum AcquiringFeesEnum { + DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); @@ -57,7 +64,7 @@ public enum AcquiringFeesEnum { private String value; AcquiringFeesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -78,11 +85,7 @@ public static AcquiringFeesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AcquiringFeesEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AcquiringFeesEnum.values())); + LOG.warning("AcquiringFeesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AcquiringFeesEnum.values())); return null; } } @@ -94,12 +97,10 @@ public static AcquiringFeesEnum fromValue(String value) { private AdditionalCommission additionalCommission; /** - * Deducts the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) - * from the specified balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. + * Deducts the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ public enum AdyenCommissionEnum { + DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); @@ -109,7 +110,7 @@ public enum AdyenCommissionEnum { private String value; AdyenCommissionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -130,11 +131,7 @@ public static AdyenCommissionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AdyenCommissionEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AdyenCommissionEnum.values())); + LOG.warning("AdyenCommissionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AdyenCommissionEnum.values())); return null; } } @@ -143,10 +140,10 @@ public static AdyenCommissionEnum fromValue(String value) { private AdyenCommissionEnum adyenCommission; /** - * Deducts the fees due to Adyen (markup or commission) from the specified balance account. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the fees due to Adyen (markup or commission) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ public enum AdyenFeesEnum { + DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); @@ -156,7 +153,7 @@ public enum AdyenFeesEnum { private String value; AdyenFeesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -177,11 +174,7 @@ public static AdyenFeesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AdyenFeesEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AdyenFeesEnum.values())); + LOG.warning("AdyenFeesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AdyenFeesEnum.values())); return null; } } @@ -190,11 +183,10 @@ public static AdyenFeesEnum fromValue(String value) { private AdyenFeesEnum adyenFees; /** - * Deducts the transaction fee due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ public enum AdyenMarkupEnum { + DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); @@ -204,7 +196,7 @@ public enum AdyenMarkupEnum { private String value; AdyenMarkupEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -225,11 +217,7 @@ public static AdyenMarkupEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AdyenMarkupEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AdyenMarkupEnum.values())); + LOG.warning("AdyenMarkupEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AdyenMarkupEnum.values())); return null; } } @@ -238,11 +226,10 @@ public static AdyenMarkupEnum fromValue(String value) { private AdyenMarkupEnum adyenMarkup; /** - * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible - * values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, - * **deductAccordingToSplitRatio**. + * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. */ public enum ChargebackEnum { + DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")), @@ -254,7 +241,7 @@ public enum ChargebackEnum { private String value; ChargebackEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -275,11 +262,7 @@ public static ChargebackEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ChargebackEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ChargebackEnum.values())); + LOG.warning("ChargebackEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChargebackEnum.values())); return null; } } @@ -288,21 +271,20 @@ public static ChargebackEnum fromValue(String value) { private ChargebackEnum chargeback; /** - * Deducts the chargeback costs from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * Deducts the chargeback costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** */ public enum ChargebackCostAllocationEnum { + DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); - private static final Logger LOG = - Logger.getLogger(ChargebackCostAllocationEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(ChargebackCostAllocationEnum.class.getName()); private String value; ChargebackCostAllocationEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -323,11 +305,7 @@ public static ChargebackCostAllocationEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ChargebackCostAllocationEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ChargebackCostAllocationEnum.values())); + LOG.warning("ChargebackCostAllocationEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChargebackCostAllocationEnum.values())); return null; } } @@ -339,10 +317,10 @@ public static ChargebackCostAllocationEnum fromValue(String value) { private Commission commission; /** - * Deducts the interchange fee from specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the interchange fee from specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ public enum InterchangeEnum { + DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); @@ -352,7 +330,7 @@ public enum InterchangeEnum { private String value; InterchangeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -373,11 +351,7 @@ public static InterchangeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "InterchangeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(InterchangeEnum.values())); + LOG.warning("InterchangeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(InterchangeEnum.values())); return null; } } @@ -386,32 +360,10 @@ public static InterchangeEnum fromValue(String value) { private InterchangeEnum interchange; /** - * Deducts all transaction fees incurred by the payment from the specified balance account. The - * transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to - * Adyen (markup or commission). You can book any and all these fees to different balance account - * by specifying other transaction fee parameters in your split configuration profile: - - * [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): - * The transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - * - - * [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): - * The transaction fee due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - * - - * [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): - * The fee paid to the card scheme for using their network. - - * [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): - * The fee paid to the issuer for each payment transaction made with the card network. - - * [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): - * The aggregated amount of Adyen's commission and markup. - - * [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): - * The aggregated amount of the interchange and scheme fees. If you don't include at least one - * transaction fee type in the `splitLogic` object, Adyen updates the payment request - * with the `paymentFee` parameter, booking all transaction fees to your platform's - * liable balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. + * Deducts all transaction fees incurred by the payment from the specified balance account. The transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to Adyen (markup or commission). You can book any and all these fees to different balance account by specifying other transaction fee parameters in your split configuration profile: - [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): The transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): The transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): The fee paid to the card scheme for using their network. - [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): The fee paid to the issuer for each payment transaction made with the card network. - [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): The aggregated amount of Adyen's commission and markup. - [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): The aggregated amount of the interchange and scheme fees. If you don't include at least one transaction fee type in the `splitLogic` object, Adyen updates the payment request with the `paymentFee` parameter, booking all transaction fees to your platform's liable balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ public enum PaymentFeeEnum { + DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); @@ -421,7 +373,7 @@ public enum PaymentFeeEnum { private String value; PaymentFeeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -442,11 +394,7 @@ public static PaymentFeeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PaymentFeeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PaymentFeeEnum.values())); + LOG.warning("PaymentFeeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PaymentFeeEnum.values())); return null; } } @@ -455,10 +403,10 @@ public static PaymentFeeEnum fromValue(String value) { private PaymentFeeEnum paymentFee; /** - * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** + * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** */ public enum RefundEnum { + DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")), @@ -470,7 +418,7 @@ public enum RefundEnum { private String value; RefundEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -491,11 +439,7 @@ public static RefundEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "RefundEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(RefundEnum.values())); + LOG.warning("RefundEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RefundEnum.values())); return null; } } @@ -504,10 +448,10 @@ public static RefundEnum fromValue(String value) { private RefundEnum refund; /** - * Deducts the refund costs from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * Deducts the refund costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** */ public enum RefundCostAllocationEnum { + DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); @@ -517,7 +461,7 @@ public enum RefundCostAllocationEnum { private String value; RefundCostAllocationEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -538,11 +482,7 @@ public static RefundCostAllocationEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "RefundCostAllocationEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(RefundCostAllocationEnum.values())); + LOG.warning("RefundCostAllocationEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RefundCostAllocationEnum.values())); return null; } } @@ -551,10 +491,10 @@ public static RefundCostAllocationEnum fromValue(String value) { private RefundCostAllocationEnum refundCostAllocation; /** - * Books the amount left over after currency conversion to the specified balance account. Possible - * values: **addToLiableAccount**, **addToOneBalanceAccount**. + * Books the amount left over after currency conversion to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. */ public enum RemainderEnum { + ADDTOLIABLEACCOUNT(String.valueOf("addToLiableAccount")), ADDTOONEBALANCEACCOUNT(String.valueOf("addToOneBalanceAccount")); @@ -564,7 +504,7 @@ public enum RemainderEnum { private String value; RemainderEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -585,11 +525,7 @@ public static RemainderEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "RemainderEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(RemainderEnum.values())); + LOG.warning("RemainderEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RemainderEnum.values())); return null; } } @@ -598,10 +534,10 @@ public static RemainderEnum fromValue(String value) { private RemainderEnum remainder; /** - * Deducts the scheme fee from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the scheme fee from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ public enum SchemeFeeEnum { + DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); @@ -611,7 +547,7 @@ public enum SchemeFeeEnum { private String value; SchemeFeeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -632,11 +568,7 @@ public static SchemeFeeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "SchemeFeeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(SchemeFeeEnum.values())); + LOG.warning("SchemeFeeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(SchemeFeeEnum.values())); return null; } } @@ -648,10 +580,10 @@ public static SchemeFeeEnum fromValue(String value) { private String splitLogicId; /** - * Books the surcharge amount to the specified balance account. Possible values: - * **addToLiableAccount**, **addToOneBalanceAccount** + * Books the surcharge amount to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount** */ public enum SurchargeEnum { + ADDTOLIABLEACCOUNT(String.valueOf("addToLiableAccount")), ADDTOONEBALANCEACCOUNT(String.valueOf("addToOneBalanceAccount")); @@ -661,7 +593,7 @@ public enum SurchargeEnum { private String value; SurchargeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -682,11 +614,7 @@ public static SurchargeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "SurchargeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(SurchargeEnum.values())); + LOG.warning("SurchargeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(SurchargeEnum.values())); return null; } } @@ -695,10 +623,10 @@ public static SurchargeEnum fromValue(String value) { private SurchargeEnum surcharge; /** - * Books the tips (gratuity) to the specified balance account. Possible values: - * **addToLiableAccount**, **addToOneBalanceAccount**. + * Books the tips (gratuity) to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. */ public enum TipEnum { + ADDTOLIABLEACCOUNT(String.valueOf("addToLiableAccount")), ADDTOONEBALANCEACCOUNT(String.valueOf("addToOneBalanceAccount")); @@ -708,7 +636,7 @@ public enum TipEnum { private String value; TipEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -729,11 +657,7 @@ public static TipEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TipEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TipEnum.values())); + LOG.warning("TipEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TipEnum.values())); return null; } } @@ -741,25 +665,22 @@ public static TipEnum fromValue(String value) { public static final String JSON_PROPERTY_TIP = "tip"; private TipEnum tip; - public UpdateSplitConfigurationLogicRequest() {} + public UpdateSplitConfigurationLogicRequest() { + } @JsonCreator public UpdateSplitConfigurationLogicRequest( - @JsonProperty(JSON_PROPERTY_SPLIT_LOGIC_ID) String splitLogicId) { + @JsonProperty(JSON_PROPERTY_SPLIT_LOGIC_ID) String splitLogicId + ) { this(); this.splitLogicId = splitLogicId; } /** - * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the - * specified balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. + * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param acquiringFees Deducts the acquiring fees (the aggregated amount of interchange and - * scheme fee) from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method - * chaining + * @param acquiringFees Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method chaining */ public UpdateSplitConfigurationLogicRequest acquiringFees(AcquiringFeesEnum acquiringFees) { this.acquiringFees = acquiringFees; @@ -767,13 +688,8 @@ public UpdateSplitConfigurationLogicRequest acquiringFees(AcquiringFeesEnum acqu } /** - * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the - * specified balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. - * - * @return acquiringFees Deducts the acquiring fees (the aggregated amount of interchange and - * scheme fee) from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @return acquiringFees Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_ACQUIRING_FEES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -782,13 +698,9 @@ public AcquiringFeesEnum getAcquiringFees() { } /** - * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the - * specified balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. + * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param acquiringFees Deducts the acquiring fees (the aggregated amount of interchange and - * scheme fee) from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @param acquiringFees Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_ACQUIRING_FEES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -799,20 +711,17 @@ public void setAcquiringFees(AcquiringFeesEnum acquiringFees) { /** * additionalCommission * - * @param additionalCommission - * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method - * chaining + * @param additionalCommission + * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method chaining */ - public UpdateSplitConfigurationLogicRequest additionalCommission( - AdditionalCommission additionalCommission) { + public UpdateSplitConfigurationLogicRequest additionalCommission(AdditionalCommission additionalCommission) { this.additionalCommission = additionalCommission; return this; } /** * Get additionalCommission - * - * @return additionalCommission + * @return additionalCommission */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_COMMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -823,7 +732,7 @@ public AdditionalCommission getAdditionalCommission() { /** * additionalCommission * - * @param additionalCommission + * @param additionalCommission */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_COMMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -832,17 +741,10 @@ public void setAdditionalCommission(AdditionalCommission additionalCommission) { } /** - * Deducts the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) - * from the specified balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. + * Deducts the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param adyenCommission Deducts the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) - * from the specified balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. - * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method - * chaining + * @param adyenCommission Deducts the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method chaining */ public UpdateSplitConfigurationLogicRequest adyenCommission(AdyenCommissionEnum adyenCommission) { this.adyenCommission = adyenCommission; @@ -850,15 +752,8 @@ public UpdateSplitConfigurationLogicRequest adyenCommission(AdyenCommissionEnum } /** - * Deducts the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) - * from the specified balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. - * - * @return adyenCommission Deducts the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) - * from the specified balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. + * Deducts the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @return adyenCommission Deducts the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_ADYEN_COMMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -867,15 +762,9 @@ public AdyenCommissionEnum getAdyenCommission() { } /** - * Deducts the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) - * from the specified balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. + * Deducts the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param adyenCommission Deducts the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) - * from the specified balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. + * @param adyenCommission Deducts the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_ADYEN_COMMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -884,14 +773,10 @@ public void setAdyenCommission(AdyenCommissionEnum adyenCommission) { } /** - * Deducts the fees due to Adyen (markup or commission) from the specified balance account. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the fees due to Adyen (markup or commission) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param adyenFees Deducts the fees due to Adyen (markup or commission) from the specified - * balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. - * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method - * chaining + * @param adyenFees Deducts the fees due to Adyen (markup or commission) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method chaining */ public UpdateSplitConfigurationLogicRequest adyenFees(AdyenFeesEnum adyenFees) { this.adyenFees = adyenFees; @@ -899,12 +784,8 @@ public UpdateSplitConfigurationLogicRequest adyenFees(AdyenFeesEnum adyenFees) { } /** - * Deducts the fees due to Adyen (markup or commission) from the specified balance account. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - * - * @return adyenFees Deducts the fees due to Adyen (markup or commission) from the specified - * balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. + * Deducts the fees due to Adyen (markup or commission) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @return adyenFees Deducts the fees due to Adyen (markup or commission) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_ADYEN_FEES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -913,12 +794,9 @@ public AdyenFeesEnum getAdyenFees() { } /** - * Deducts the fees due to Adyen (markup or commission) from the specified balance account. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the fees due to Adyen (markup or commission) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param adyenFees Deducts the fees due to Adyen (markup or commission) from the specified - * balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. + * @param adyenFees Deducts the fees due to Adyen (markup or commission) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_ADYEN_FEES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -927,15 +805,10 @@ public void setAdyenFees(AdyenFeesEnum adyenFees) { } /** - * Deducts the transaction fee due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param adyenMarkup Deducts the transaction fee due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method - * chaining + * @param adyenMarkup Deducts the transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method chaining */ public UpdateSplitConfigurationLogicRequest adyenMarkup(AdyenMarkupEnum adyenMarkup) { this.adyenMarkup = adyenMarkup; @@ -943,13 +816,8 @@ public UpdateSplitConfigurationLogicRequest adyenMarkup(AdyenMarkupEnum adyenMar } /** - * Deducts the transaction fee due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - * - * @return adyenMarkup Deducts the transaction fee due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @return adyenMarkup Deducts the transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_ADYEN_MARKUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -958,13 +826,9 @@ public AdyenMarkupEnum getAdyenMarkup() { } /** - * Deducts the transaction fee due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param adyenMarkup Deducts the transaction fee due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @param adyenMarkup Deducts the transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_ADYEN_MARKUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -973,15 +837,10 @@ public void setAdyenMarkup(AdyenMarkupEnum adyenMarkup) { } /** - * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible - * values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, - * **deductAccordingToSplitRatio**. + * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. * - * @param chargeback Specifies how and from which balance account(s) to deduct the chargeback - * amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, - * **deductAccordingToSplitRatio**. - * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method - * chaining + * @param chargeback Specifies how and from which balance account(s) to deduct the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method chaining */ public UpdateSplitConfigurationLogicRequest chargeback(ChargebackEnum chargeback) { this.chargeback = chargeback; @@ -989,13 +848,8 @@ public UpdateSplitConfigurationLogicRequest chargeback(ChargebackEnum chargeback } /** - * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible - * values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, - * **deductAccordingToSplitRatio**. - * - * @return chargeback Specifies how and from which balance account(s) to deduct the chargeback - * amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, - * **deductAccordingToSplitRatio**. + * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * @return chargeback Specifies how and from which balance account(s) to deduct the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. */ @JsonProperty(JSON_PROPERTY_CHARGEBACK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1004,13 +858,9 @@ public ChargebackEnum getChargeback() { } /** - * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible - * values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, - * **deductAccordingToSplitRatio**. + * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. * - * @param chargeback Specifies how and from which balance account(s) to deduct the chargeback - * amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, - * **deductAccordingToSplitRatio**. + * @param chargeback Specifies how and from which balance account(s) to deduct the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. */ @JsonProperty(JSON_PROPERTY_CHARGEBACK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1019,26 +869,19 @@ public void setChargeback(ChargebackEnum chargeback) { } /** - * Deducts the chargeback costs from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * Deducts the chargeback costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** * - * @param chargebackCostAllocation Deducts the chargeback costs from the specified balance - * account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** - * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method - * chaining + * @param chargebackCostAllocation Deducts the chargeback costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method chaining */ - public UpdateSplitConfigurationLogicRequest chargebackCostAllocation( - ChargebackCostAllocationEnum chargebackCostAllocation) { + public UpdateSplitConfigurationLogicRequest chargebackCostAllocation(ChargebackCostAllocationEnum chargebackCostAllocation) { this.chargebackCostAllocation = chargebackCostAllocation; return this; } /** - * Deducts the chargeback costs from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount** - * - * @return chargebackCostAllocation Deducts the chargeback costs from the specified balance - * account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * Deducts the chargeback costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * @return chargebackCostAllocation Deducts the chargeback costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** */ @JsonProperty(JSON_PROPERTY_CHARGEBACK_COST_ALLOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1047,11 +890,9 @@ public ChargebackCostAllocationEnum getChargebackCostAllocation() { } /** - * Deducts the chargeback costs from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * Deducts the chargeback costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** * - * @param chargebackCostAllocation Deducts the chargeback costs from the specified balance - * account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * @param chargebackCostAllocation Deducts the chargeback costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** */ @JsonProperty(JSON_PROPERTY_CHARGEBACK_COST_ALLOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1062,9 +903,8 @@ public void setChargebackCostAllocation(ChargebackCostAllocationEnum chargebackC /** * commission * - * @param commission - * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method - * chaining + * @param commission + * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method chaining */ public UpdateSplitConfigurationLogicRequest commission(Commission commission) { this.commission = commission; @@ -1073,8 +913,7 @@ public UpdateSplitConfigurationLogicRequest commission(Commission commission) { /** * Get commission - * - * @return commission + * @return commission */ @JsonProperty(JSON_PROPERTY_COMMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1085,7 +924,7 @@ public Commission getCommission() { /** * commission * - * @param commission + * @param commission */ @JsonProperty(JSON_PROPERTY_COMMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1094,13 +933,10 @@ public void setCommission(Commission commission) { } /** - * Deducts the interchange fee from specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the interchange fee from specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param interchange Deducts the interchange fee from specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method - * chaining + * @param interchange Deducts the interchange fee from specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method chaining */ public UpdateSplitConfigurationLogicRequest interchange(InterchangeEnum interchange) { this.interchange = interchange; @@ -1108,11 +944,8 @@ public UpdateSplitConfigurationLogicRequest interchange(InterchangeEnum intercha } /** - * Deducts the interchange fee from specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - * - * @return interchange Deducts the interchange fee from specified balance account. Possible - * values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the interchange fee from specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @return interchange Deducts the interchange fee from specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_INTERCHANGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1121,11 +954,9 @@ public InterchangeEnum getInterchange() { } /** - * Deducts the interchange fee from specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the interchange fee from specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param interchange Deducts the interchange fee from specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @param interchange Deducts the interchange fee from specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_INTERCHANGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1134,58 +965,10 @@ public void setInterchange(InterchangeEnum interchange) { } /** - * Deducts all transaction fees incurred by the payment from the specified balance account. The - * transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to - * Adyen (markup or commission). You can book any and all these fees to different balance account - * by specifying other transaction fee parameters in your split configuration profile: - - * [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): - * The transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - * - - * [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): - * The transaction fee due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - * - - * [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): - * The fee paid to the card scheme for using their network. - - * [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): - * The fee paid to the issuer for each payment transaction made with the card network. - - * [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): - * The aggregated amount of Adyen's commission and markup. - - * [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): - * The aggregated amount of the interchange and scheme fees. If you don't include at least one - * transaction fee type in the `splitLogic` object, Adyen updates the payment request - * with the `paymentFee` parameter, booking all transaction fees to your platform's - * liable balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. + * Deducts all transaction fees incurred by the payment from the specified balance account. The transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to Adyen (markup or commission). You can book any and all these fees to different balance account by specifying other transaction fee parameters in your split configuration profile: - [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): The transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): The transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): The fee paid to the card scheme for using their network. - [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): The fee paid to the issuer for each payment transaction made with the card network. - [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): The aggregated amount of Adyen's commission and markup. - [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): The aggregated amount of the interchange and scheme fees. If you don't include at least one transaction fee type in the `splitLogic` object, Adyen updates the payment request with the `paymentFee` parameter, booking all transaction fees to your platform's liable balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param paymentFee Deducts all transaction fees incurred by the payment from the specified - * balance account. The transaction fees include the acquiring fees (interchange and scheme - * fee), and the fees due to Adyen (markup or commission). You can book any and all these fees - * to different balance account by specifying other transaction fee parameters in your split - * configuration profile: - - * [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): - * The transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - * - - * [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): - * The transaction fee due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - * - - * [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): - * The fee paid to the card scheme for using their network. - - * [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): - * The fee paid to the issuer for each payment transaction made with the card network. - - * [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): - * The aggregated amount of Adyen's commission and markup. - - * [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): - * The aggregated amount of the interchange and scheme fees. If you don't include at least - * one transaction fee type in the `splitLogic` object, Adyen updates the payment - * request with the `paymentFee` parameter, booking all transaction fees to your - * platform's liable balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. - * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method - * chaining + * @param paymentFee Deducts all transaction fees incurred by the payment from the specified balance account. The transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to Adyen (markup or commission). You can book any and all these fees to different balance account by specifying other transaction fee parameters in your split configuration profile: - [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): The transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): The transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): The fee paid to the card scheme for using their network. - [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): The fee paid to the issuer for each payment transaction made with the card network. - [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): The aggregated amount of Adyen's commission and markup. - [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): The aggregated amount of the interchange and scheme fees. If you don't include at least one transaction fee type in the `splitLogic` object, Adyen updates the payment request with the `paymentFee` parameter, booking all transaction fees to your platform's liable balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method chaining */ public UpdateSplitConfigurationLogicRequest paymentFee(PaymentFeeEnum paymentFee) { this.paymentFee = paymentFee; @@ -1193,56 +976,8 @@ public UpdateSplitConfigurationLogicRequest paymentFee(PaymentFeeEnum paymentFee } /** - * Deducts all transaction fees incurred by the payment from the specified balance account. The - * transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to - * Adyen (markup or commission). You can book any and all these fees to different balance account - * by specifying other transaction fee parameters in your split configuration profile: - - * [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): - * The transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - * - - * [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): - * The transaction fee due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - * - - * [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): - * The fee paid to the card scheme for using their network. - - * [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): - * The fee paid to the issuer for each payment transaction made with the card network. - - * [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): - * The aggregated amount of Adyen's commission and markup. - - * [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): - * The aggregated amount of the interchange and scheme fees. If you don't include at least one - * transaction fee type in the `splitLogic` object, Adyen updates the payment request - * with the `paymentFee` parameter, booking all transaction fees to your platform's - * liable balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. - * - * @return paymentFee Deducts all transaction fees incurred by the payment from the specified - * balance account. The transaction fees include the acquiring fees (interchange and scheme - * fee), and the fees due to Adyen (markup or commission). You can book any and all these fees - * to different balance account by specifying other transaction fee parameters in your split - * configuration profile: - - * [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): - * The transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - * - - * [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): - * The transaction fee due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - * - - * [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): - * The fee paid to the card scheme for using their network. - - * [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): - * The fee paid to the issuer for each payment transaction made with the card network. - - * [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): - * The aggregated amount of Adyen's commission and markup. - - * [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): - * The aggregated amount of the interchange and scheme fees. If you don't include at least - * one transaction fee type in the `splitLogic` object, Adyen updates the payment - * request with the `paymentFee` parameter, booking all transaction fees to your - * platform's liable balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. + * Deducts all transaction fees incurred by the payment from the specified balance account. The transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to Adyen (markup or commission). You can book any and all these fees to different balance account by specifying other transaction fee parameters in your split configuration profile: - [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): The transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): The transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): The fee paid to the card scheme for using their network. - [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): The fee paid to the issuer for each payment transaction made with the card network. - [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): The aggregated amount of Adyen's commission and markup. - [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): The aggregated amount of the interchange and scheme fees. If you don't include at least one transaction fee type in the `splitLogic` object, Adyen updates the payment request with the `paymentFee` parameter, booking all transaction fees to your platform's liable balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @return paymentFee Deducts all transaction fees incurred by the payment from the specified balance account. The transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to Adyen (markup or commission). You can book any and all these fees to different balance account by specifying other transaction fee parameters in your split configuration profile: - [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): The transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): The transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): The fee paid to the card scheme for using their network. - [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): The fee paid to the issuer for each payment transaction made with the card network. - [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): The aggregated amount of Adyen's commission and markup. - [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): The aggregated amount of the interchange and scheme fees. If you don't include at least one transaction fee type in the `splitLogic` object, Adyen updates the payment request with the `paymentFee` parameter, booking all transaction fees to your platform's liable balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_PAYMENT_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1251,56 +986,9 @@ public PaymentFeeEnum getPaymentFee() { } /** - * Deducts all transaction fees incurred by the payment from the specified balance account. The - * transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to - * Adyen (markup or commission). You can book any and all these fees to different balance account - * by specifying other transaction fee parameters in your split configuration profile: - - * [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): - * The transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - * - - * [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): - * The transaction fee due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - * - - * [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): - * The fee paid to the card scheme for using their network. - - * [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): - * The fee paid to the issuer for each payment transaction made with the card network. - - * [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): - * The aggregated amount of Adyen's commission and markup. - - * [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): - * The aggregated amount of the interchange and scheme fees. If you don't include at least one - * transaction fee type in the `splitLogic` object, Adyen updates the payment request - * with the `paymentFee` parameter, booking all transaction fees to your platform's - * liable balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. + * Deducts all transaction fees incurred by the payment from the specified balance account. The transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to Adyen (markup or commission). You can book any and all these fees to different balance account by specifying other transaction fee parameters in your split configuration profile: - [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): The transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): The transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): The fee paid to the card scheme for using their network. - [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): The fee paid to the issuer for each payment transaction made with the card network. - [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): The aggregated amount of Adyen's commission and markup. - [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): The aggregated amount of the interchange and scheme fees. If you don't include at least one transaction fee type in the `splitLogic` object, Adyen updates the payment request with the `paymentFee` parameter, booking all transaction fees to your platform's liable balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param paymentFee Deducts all transaction fees incurred by the payment from the specified - * balance account. The transaction fees include the acquiring fees (interchange and scheme - * fee), and the fees due to Adyen (markup or commission). You can book any and all these fees - * to different balance account by specifying other transaction fee parameters in your split - * configuration profile: - - * [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): - * The transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - * - - * [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): - * The transaction fee due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - * - - * [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): - * The fee paid to the card scheme for using their network. - - * [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): - * The fee paid to the issuer for each payment transaction made with the card network. - - * [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): - * The aggregated amount of Adyen's commission and markup. - - * [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): - * The aggregated amount of the interchange and scheme fees. If you don't include at least - * one transaction fee type in the `splitLogic` object, Adyen updates the payment - * request with the `paymentFee` parameter, booking all transaction fees to your - * platform's liable balance account. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**. + * @param paymentFee Deducts all transaction fees incurred by the payment from the specified balance account. The transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to Adyen (markup or commission). You can book any and all these fees to different balance account by specifying other transaction fee parameters in your split configuration profile: - [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): The transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): The transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): The fee paid to the card scheme for using their network. - [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): The fee paid to the issuer for each payment transaction made with the card network. - [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): The aggregated amount of Adyen's commission and markup. - [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): The aggregated amount of the interchange and scheme fees. If you don't include at least one transaction fee type in the `splitLogic` object, Adyen updates the payment request with the `paymentFee` parameter, booking all transaction fees to your platform's liable balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_PAYMENT_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1309,14 +997,10 @@ public void setPaymentFee(PaymentFeeEnum paymentFee) { } /** - * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** + * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** * - * @param refund Specifies how and from which balance account(s) to deduct the refund amount. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, - * **deductAccordingToSplitRatio** - * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method - * chaining + * @param refund Specifies how and from which balance account(s) to deduct the refund amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** + * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method chaining */ public UpdateSplitConfigurationLogicRequest refund(RefundEnum refund) { this.refund = refund; @@ -1324,12 +1008,8 @@ public UpdateSplitConfigurationLogicRequest refund(RefundEnum refund) { } /** - * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** - * - * @return refund Specifies how and from which balance account(s) to deduct the refund amount. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, - * **deductAccordingToSplitRatio** + * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** + * @return refund Specifies how and from which balance account(s) to deduct the refund amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** */ @JsonProperty(JSON_PROPERTY_REFUND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1338,12 +1018,9 @@ public RefundEnum getRefund() { } /** - * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** + * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** * - * @param refund Specifies how and from which balance account(s) to deduct the refund amount. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, - * **deductAccordingToSplitRatio** + * @param refund Specifies how and from which balance account(s) to deduct the refund amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** */ @JsonProperty(JSON_PROPERTY_REFUND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1352,26 +1029,19 @@ public void setRefund(RefundEnum refund) { } /** - * Deducts the refund costs from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * Deducts the refund costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** * - * @param refundCostAllocation Deducts the refund costs from the specified balance account. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** - * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method - * chaining + * @param refundCostAllocation Deducts the refund costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method chaining */ - public UpdateSplitConfigurationLogicRequest refundCostAllocation( - RefundCostAllocationEnum refundCostAllocation) { + public UpdateSplitConfigurationLogicRequest refundCostAllocation(RefundCostAllocationEnum refundCostAllocation) { this.refundCostAllocation = refundCostAllocation; return this; } /** - * Deducts the refund costs from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount** - * - * @return refundCostAllocation Deducts the refund costs from the specified balance account. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * Deducts the refund costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * @return refundCostAllocation Deducts the refund costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** */ @JsonProperty(JSON_PROPERTY_REFUND_COST_ALLOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1380,11 +1050,9 @@ public RefundCostAllocationEnum getRefundCostAllocation() { } /** - * Deducts the refund costs from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * Deducts the refund costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** * - * @param refundCostAllocation Deducts the refund costs from the specified balance account. - * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * @param refundCostAllocation Deducts the refund costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** */ @JsonProperty(JSON_PROPERTY_REFUND_COST_ALLOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1393,13 +1061,10 @@ public void setRefundCostAllocation(RefundCostAllocationEnum refundCostAllocatio } /** - * Books the amount left over after currency conversion to the specified balance account. Possible - * values: **addToLiableAccount**, **addToOneBalanceAccount**. + * Books the amount left over after currency conversion to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. * - * @param remainder Books the amount left over after currency conversion to the specified balance - * account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. - * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method - * chaining + * @param remainder Books the amount left over after currency conversion to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method chaining */ public UpdateSplitConfigurationLogicRequest remainder(RemainderEnum remainder) { this.remainder = remainder; @@ -1407,11 +1072,8 @@ public UpdateSplitConfigurationLogicRequest remainder(RemainderEnum remainder) { } /** - * Books the amount left over after currency conversion to the specified balance account. Possible - * values: **addToLiableAccount**, **addToOneBalanceAccount**. - * - * @return remainder Books the amount left over after currency conversion to the specified balance - * account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * Books the amount left over after currency conversion to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * @return remainder Books the amount left over after currency conversion to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_REMAINDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1420,11 +1082,9 @@ public RemainderEnum getRemainder() { } /** - * Books the amount left over after currency conversion to the specified balance account. Possible - * values: **addToLiableAccount**, **addToOneBalanceAccount**. + * Books the amount left over after currency conversion to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. * - * @param remainder Books the amount left over after currency conversion to the specified balance - * account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * @param remainder Books the amount left over after currency conversion to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_REMAINDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1433,13 +1093,10 @@ public void setRemainder(RemainderEnum remainder) { } /** - * Deducts the scheme fee from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the scheme fee from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param schemeFee Deducts the scheme fee from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method - * chaining + * @param schemeFee Deducts the scheme fee from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method chaining */ public UpdateSplitConfigurationLogicRequest schemeFee(SchemeFeeEnum schemeFee) { this.schemeFee = schemeFee; @@ -1447,11 +1104,8 @@ public UpdateSplitConfigurationLogicRequest schemeFee(SchemeFeeEnum schemeFee) { } /** - * Deducts the scheme fee from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - * - * @return schemeFee Deducts the scheme fee from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the scheme fee from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @return schemeFee Deducts the scheme fee from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_SCHEME_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1460,11 +1114,9 @@ public SchemeFeeEnum getSchemeFee() { } /** - * Deducts the scheme fee from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the scheme fee from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param schemeFee Deducts the scheme fee from the specified balance account. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @param schemeFee Deducts the scheme fee from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_SCHEME_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1473,11 +1125,8 @@ public void setSchemeFee(SchemeFeeEnum schemeFee) { } /** - * Unique identifier of the collection of split instructions that are applied when the rule - * conditions are met. - * - * @return splitLogicId Unique identifier of the collection of split instructions that are applied - * when the rule conditions are met. + * Unique identifier of the collection of split instructions that are applied when the rule conditions are met. + * @return splitLogicId Unique identifier of the collection of split instructions that are applied when the rule conditions are met. */ @JsonProperty(JSON_PROPERTY_SPLIT_LOGIC_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1485,14 +1134,12 @@ public String getSplitLogicId() { return splitLogicId; } + /** - * Books the surcharge amount to the specified balance account. Possible values: - * **addToLiableAccount**, **addToOneBalanceAccount** + * Books the surcharge amount to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount** * - * @param surcharge Books the surcharge amount to the specified balance account. Possible values: - * **addToLiableAccount**, **addToOneBalanceAccount** - * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method - * chaining + * @param surcharge Books the surcharge amount to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount** + * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method chaining */ public UpdateSplitConfigurationLogicRequest surcharge(SurchargeEnum surcharge) { this.surcharge = surcharge; @@ -1500,11 +1147,8 @@ public UpdateSplitConfigurationLogicRequest surcharge(SurchargeEnum surcharge) { } /** - * Books the surcharge amount to the specified balance account. Possible values: - * **addToLiableAccount**, **addToOneBalanceAccount** - * - * @return surcharge Books the surcharge amount to the specified balance account. Possible values: - * **addToLiableAccount**, **addToOneBalanceAccount** + * Books the surcharge amount to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount** + * @return surcharge Books the surcharge amount to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount** */ @JsonProperty(JSON_PROPERTY_SURCHARGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1513,11 +1157,9 @@ public SurchargeEnum getSurcharge() { } /** - * Books the surcharge amount to the specified balance account. Possible values: - * **addToLiableAccount**, **addToOneBalanceAccount** + * Books the surcharge amount to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount** * - * @param surcharge Books the surcharge amount to the specified balance account. Possible values: - * **addToLiableAccount**, **addToOneBalanceAccount** + * @param surcharge Books the surcharge amount to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount** */ @JsonProperty(JSON_PROPERTY_SURCHARGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1526,13 +1168,10 @@ public void setSurcharge(SurchargeEnum surcharge) { } /** - * Books the tips (gratuity) to the specified balance account. Possible values: - * **addToLiableAccount**, **addToOneBalanceAccount**. + * Books the tips (gratuity) to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. * - * @param tip Books the tips (gratuity) to the specified balance account. Possible values: - * **addToLiableAccount**, **addToOneBalanceAccount**. - * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method - * chaining + * @param tip Books the tips (gratuity) to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method chaining */ public UpdateSplitConfigurationLogicRequest tip(TipEnum tip) { this.tip = tip; @@ -1540,11 +1179,8 @@ public UpdateSplitConfigurationLogicRequest tip(TipEnum tip) { } /** - * Books the tips (gratuity) to the specified balance account. Possible values: - * **addToLiableAccount**, **addToOneBalanceAccount**. - * - * @return tip Books the tips (gratuity) to the specified balance account. Possible values: - * **addToLiableAccount**, **addToOneBalanceAccount**. + * Books the tips (gratuity) to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * @return tip Books the tips (gratuity) to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_TIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1553,11 +1189,9 @@ public TipEnum getTip() { } /** - * Books the tips (gratuity) to the specified balance account. Possible values: - * **addToLiableAccount**, **addToOneBalanceAccount**. + * Books the tips (gratuity) to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. * - * @param tip Books the tips (gratuity) to the specified balance account. Possible values: - * **addToLiableAccount**, **addToOneBalanceAccount**. + * @param tip Books the tips (gratuity) to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_TIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1565,7 +1199,9 @@ public void setTip(TipEnum tip) { this.tip = tip; } - /** Return true if this UpdateSplitConfigurationLogicRequest object is equal to o. */ + /** + * Return true if this UpdateSplitConfigurationLogicRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -1574,52 +1210,29 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UpdateSplitConfigurationLogicRequest updateSplitConfigurationLogicRequest = - (UpdateSplitConfigurationLogicRequest) o; - return Objects.equals(this.acquiringFees, updateSplitConfigurationLogicRequest.acquiringFees) - && Objects.equals( - this.additionalCommission, updateSplitConfigurationLogicRequest.additionalCommission) - && Objects.equals( - this.adyenCommission, updateSplitConfigurationLogicRequest.adyenCommission) - && Objects.equals(this.adyenFees, updateSplitConfigurationLogicRequest.adyenFees) - && Objects.equals(this.adyenMarkup, updateSplitConfigurationLogicRequest.adyenMarkup) - && Objects.equals(this.chargeback, updateSplitConfigurationLogicRequest.chargeback) - && Objects.equals( - this.chargebackCostAllocation, - updateSplitConfigurationLogicRequest.chargebackCostAllocation) - && Objects.equals(this.commission, updateSplitConfigurationLogicRequest.commission) - && Objects.equals(this.interchange, updateSplitConfigurationLogicRequest.interchange) - && Objects.equals(this.paymentFee, updateSplitConfigurationLogicRequest.paymentFee) - && Objects.equals(this.refund, updateSplitConfigurationLogicRequest.refund) - && Objects.equals( - this.refundCostAllocation, updateSplitConfigurationLogicRequest.refundCostAllocation) - && Objects.equals(this.remainder, updateSplitConfigurationLogicRequest.remainder) - && Objects.equals(this.schemeFee, updateSplitConfigurationLogicRequest.schemeFee) - && Objects.equals(this.splitLogicId, updateSplitConfigurationLogicRequest.splitLogicId) - && Objects.equals(this.surcharge, updateSplitConfigurationLogicRequest.surcharge) - && Objects.equals(this.tip, updateSplitConfigurationLogicRequest.tip); + UpdateSplitConfigurationLogicRequest updateSplitConfigurationLogicRequest = (UpdateSplitConfigurationLogicRequest) o; + return Objects.equals(this.acquiringFees, updateSplitConfigurationLogicRequest.acquiringFees) && + Objects.equals(this.additionalCommission, updateSplitConfigurationLogicRequest.additionalCommission) && + Objects.equals(this.adyenCommission, updateSplitConfigurationLogicRequest.adyenCommission) && + Objects.equals(this.adyenFees, updateSplitConfigurationLogicRequest.adyenFees) && + Objects.equals(this.adyenMarkup, updateSplitConfigurationLogicRequest.adyenMarkup) && + Objects.equals(this.chargeback, updateSplitConfigurationLogicRequest.chargeback) && + Objects.equals(this.chargebackCostAllocation, updateSplitConfigurationLogicRequest.chargebackCostAllocation) && + Objects.equals(this.commission, updateSplitConfigurationLogicRequest.commission) && + Objects.equals(this.interchange, updateSplitConfigurationLogicRequest.interchange) && + Objects.equals(this.paymentFee, updateSplitConfigurationLogicRequest.paymentFee) && + Objects.equals(this.refund, updateSplitConfigurationLogicRequest.refund) && + Objects.equals(this.refundCostAllocation, updateSplitConfigurationLogicRequest.refundCostAllocation) && + Objects.equals(this.remainder, updateSplitConfigurationLogicRequest.remainder) && + Objects.equals(this.schemeFee, updateSplitConfigurationLogicRequest.schemeFee) && + Objects.equals(this.splitLogicId, updateSplitConfigurationLogicRequest.splitLogicId) && + Objects.equals(this.surcharge, updateSplitConfigurationLogicRequest.surcharge) && + Objects.equals(this.tip, updateSplitConfigurationLogicRequest.tip); } @Override public int hashCode() { - return Objects.hash( - acquiringFees, - additionalCommission, - adyenCommission, - adyenFees, - adyenMarkup, - chargeback, - chargebackCostAllocation, - commission, - interchange, - paymentFee, - refund, - refundCostAllocation, - remainder, - schemeFee, - splitLogicId, - surcharge, - tip); + return Objects.hash(acquiringFees, additionalCommission, adyenCommission, adyenFees, adyenMarkup, chargeback, chargebackCostAllocation, commission, interchange, paymentFee, refund, refundCostAllocation, remainder, schemeFee, splitLogicId, surcharge, tip); } @Override @@ -1627,23 +1240,17 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateSplitConfigurationLogicRequest {\n"); sb.append(" acquiringFees: ").append(toIndentedString(acquiringFees)).append("\n"); - sb.append(" additionalCommission: ") - .append(toIndentedString(additionalCommission)) - .append("\n"); + sb.append(" additionalCommission: ").append(toIndentedString(additionalCommission)).append("\n"); sb.append(" adyenCommission: ").append(toIndentedString(adyenCommission)).append("\n"); sb.append(" adyenFees: ").append(toIndentedString(adyenFees)).append("\n"); sb.append(" adyenMarkup: ").append(toIndentedString(adyenMarkup)).append("\n"); sb.append(" chargeback: ").append(toIndentedString(chargeback)).append("\n"); - sb.append(" chargebackCostAllocation: ") - .append(toIndentedString(chargebackCostAllocation)) - .append("\n"); + sb.append(" chargebackCostAllocation: ").append(toIndentedString(chargebackCostAllocation)).append("\n"); sb.append(" commission: ").append(toIndentedString(commission)).append("\n"); sb.append(" interchange: ").append(toIndentedString(interchange)).append("\n"); sb.append(" paymentFee: ").append(toIndentedString(paymentFee)).append("\n"); sb.append(" refund: ").append(toIndentedString(refund)).append("\n"); - sb.append(" refundCostAllocation: ") - .append(toIndentedString(refundCostAllocation)) - .append("\n"); + sb.append(" refundCostAllocation: ").append(toIndentedString(refundCostAllocation)).append("\n"); sb.append(" remainder: ").append(toIndentedString(remainder)).append("\n"); sb.append(" schemeFee: ").append(toIndentedString(schemeFee)).append("\n"); sb.append(" splitLogicId: ").append(toIndentedString(splitLogicId)).append("\n"); @@ -1654,7 +1261,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1663,24 +1271,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of UpdateSplitConfigurationLogicRequest given an JSON string * * @param jsonString JSON string * @return An instance of UpdateSplitConfigurationLogicRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UpdateSplitConfigurationLogicRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to UpdateSplitConfigurationLogicRequest */ - public static UpdateSplitConfigurationLogicRequest fromJson(String jsonString) - throws JsonProcessingException { + public static UpdateSplitConfigurationLogicRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdateSplitConfigurationLogicRequest.class); } - - /** - * Convert an instance of UpdateSplitConfigurationLogicRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of UpdateSplitConfigurationLogicRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/UpdateSplitConfigurationRequest.java b/src/main/java/com/adyen/model/management/UpdateSplitConfigurationRequest.java index 92a0f3c98..232169dfd 100644 --- a/src/main/java/com/adyen/model/management/UpdateSplitConfigurationRequest.java +++ b/src/main/java/com/adyen/model/management/UpdateSplitConfigurationRequest.java @@ -2,35 +2,47 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** UpdateSplitConfigurationRequest */ -@JsonPropertyOrder({UpdateSplitConfigurationRequest.JSON_PROPERTY_DESCRIPTION}) + +/** + * UpdateSplitConfigurationRequest + */ +@JsonPropertyOrder({ + UpdateSplitConfigurationRequest.JSON_PROPERTY_DESCRIPTION +}) + public class UpdateSplitConfigurationRequest { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; - public UpdateSplitConfigurationRequest() {} + public UpdateSplitConfigurationRequest() { + } /** * Your description for the split configuration. * * @param description Your description for the split configuration. - * @return the current {@code UpdateSplitConfigurationRequest} instance, allowing for method - * chaining + * @return the current {@code UpdateSplitConfigurationRequest} instance, allowing for method chaining */ public UpdateSplitConfigurationRequest description(String description) { this.description = description; @@ -39,7 +51,6 @@ public UpdateSplitConfigurationRequest description(String description) { /** * Your description for the split configuration. - * * @return description Your description for the split configuration. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -59,7 +70,9 @@ public void setDescription(String description) { this.description = description; } - /** Return true if this UpdateSplitConfigurationRequest object is equal to o. */ + /** + * Return true if this UpdateSplitConfigurationRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -68,8 +81,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UpdateSplitConfigurationRequest updateSplitConfigurationRequest = - (UpdateSplitConfigurationRequest) o; + UpdateSplitConfigurationRequest updateSplitConfigurationRequest = (UpdateSplitConfigurationRequest) o; return Objects.equals(this.description, updateSplitConfigurationRequest.description); } @@ -88,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -97,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of UpdateSplitConfigurationRequest given an JSON string * * @param jsonString JSON string * @return An instance of UpdateSplitConfigurationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UpdateSplitConfigurationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to UpdateSplitConfigurationRequest */ - public static UpdateSplitConfigurationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static UpdateSplitConfigurationRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdateSplitConfigurationRequest.class); } - - /** - * Convert an instance of UpdateSplitConfigurationRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of UpdateSplitConfigurationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/UpdateSplitConfigurationRuleRequest.java b/src/main/java/com/adyen/model/management/UpdateSplitConfigurationRuleRequest.java index 62af8e983..23dfed550 100644 --- a/src/main/java/com/adyen/model/management/UpdateSplitConfigurationRuleRequest.java +++ b/src/main/java/com/adyen/model/management/UpdateSplitConfigurationRuleRequest.java @@ -2,28 +2,38 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** UpdateSplitConfigurationRuleRequest */ + +/** + * UpdateSplitConfigurationRuleRequest + */ @JsonPropertyOrder({ UpdateSplitConfigurationRuleRequest.JSON_PROPERTY_CURRENCY, UpdateSplitConfigurationRuleRequest.JSON_PROPERTY_FUNDING_SOURCE, UpdateSplitConfigurationRuleRequest.JSON_PROPERTY_PAYMENT_METHOD, UpdateSplitConfigurationRuleRequest.JSON_PROPERTY_SHOPPER_INTERACTION }) + public class UpdateSplitConfigurationRuleRequest { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -37,16 +47,14 @@ public class UpdateSplitConfigurationRuleRequest { public static final String JSON_PROPERTY_SHOPPER_INTERACTION = "shopperInteraction"; private String shopperInteraction; - public UpdateSplitConfigurationRuleRequest() {} + public UpdateSplitConfigurationRuleRequest() { + } /** - * The currency condition that defines whether the split logic applies. Its value must be a - * three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * The currency condition that defines whether the split logic applies. Its value must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). * - * @param currency The currency condition that defines whether the split logic applies. Its value - * must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). - * @return the current {@code UpdateSplitConfigurationRuleRequest} instance, allowing for method - * chaining + * @param currency The currency condition that defines whether the split logic applies. Its value must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * @return the current {@code UpdateSplitConfigurationRuleRequest} instance, allowing for method chaining */ public UpdateSplitConfigurationRuleRequest currency(String currency) { this.currency = currency; @@ -54,11 +62,8 @@ public UpdateSplitConfigurationRuleRequest currency(String currency) { } /** - * The currency condition that defines whether the split logic applies. Its value must be a - * three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). - * - * @return currency The currency condition that defines whether the split logic applies. Its value - * must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * The currency condition that defines whether the split logic applies. Its value must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * @return currency The currency condition that defines whether the split logic applies. Its value must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -67,11 +72,9 @@ public String getCurrency() { } /** - * The currency condition that defines whether the split logic applies. Its value must be a - * three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * The currency condition that defines whether the split logic applies. Its value must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). * - * @param currency The currency condition that defines whether the split logic applies. Its value - * must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * @param currency The currency condition that defines whether the split logic applies. Its value must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,13 +83,10 @@ public void setCurrency(String currency) { } /** - * The funding source of the payment method. Possible values: * **credit** * **debit** * - * **prepaid** * **deferred_debit** * **charged** * **ANY** + * The funding source of the payment method. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** * - * @param fundingSource The funding source of the payment method. Possible values: * **credit** * - * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** - * @return the current {@code UpdateSplitConfigurationRuleRequest} instance, allowing for method - * chaining + * @param fundingSource The funding source of the payment method. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** + * @return the current {@code UpdateSplitConfigurationRuleRequest} instance, allowing for method chaining */ public UpdateSplitConfigurationRuleRequest fundingSource(String fundingSource) { this.fundingSource = fundingSource; @@ -94,11 +94,8 @@ public UpdateSplitConfigurationRuleRequest fundingSource(String fundingSource) { } /** - * The funding source of the payment method. Possible values: * **credit** * **debit** * - * **prepaid** * **deferred_debit** * **charged** * **ANY** - * - * @return fundingSource The funding source of the payment method. Possible values: * **credit** * - * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** + * The funding source of the payment method. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** + * @return fundingSource The funding source of the payment method. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,11 +104,9 @@ public String getFundingSource() { } /** - * The funding source of the payment method. Possible values: * **credit** * **debit** * - * **prepaid** * **deferred_debit** * **charged** * **ANY** + * The funding source of the payment method. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** * - * @param fundingSource The funding source of the payment method. Possible values: * **credit** * - * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** + * @param fundingSource The funding source of the payment method. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -120,18 +115,10 @@ public void setFundingSource(String fundingSource) { } /** - * The payment method condition that defines whether the split logic applies. Possible values: * - * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): - * Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all - * available payment methods. + * The payment method condition that defines whether the split logic applies. Possible values: * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all available payment methods. * - * @param paymentMethod The payment method condition that defines whether the split logic applies. - * Possible values: * [Payment method - * variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the - * split logic for a specific payment method. * **ANY**: Apply the split logic for all - * available payment methods. - * @return the current {@code UpdateSplitConfigurationRuleRequest} instance, allowing for method - * chaining + * @param paymentMethod The payment method condition that defines whether the split logic applies. Possible values: * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all available payment methods. + * @return the current {@code UpdateSplitConfigurationRuleRequest} instance, allowing for method chaining */ public UpdateSplitConfigurationRuleRequest paymentMethod(String paymentMethod) { this.paymentMethod = paymentMethod; @@ -139,16 +126,8 @@ public UpdateSplitConfigurationRuleRequest paymentMethod(String paymentMethod) { } /** - * The payment method condition that defines whether the split logic applies. Possible values: * - * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): - * Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all - * available payment methods. - * - * @return paymentMethod The payment method condition that defines whether the split logic - * applies. Possible values: * [Payment method - * variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the - * split logic for a specific payment method. * **ANY**: Apply the split logic for all - * available payment methods. + * The payment method condition that defines whether the split logic applies. Possible values: * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all available payment methods. + * @return paymentMethod The payment method condition that defines whether the split logic applies. Possible values: * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all available payment methods. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -157,16 +136,9 @@ public String getPaymentMethod() { } /** - * The payment method condition that defines whether the split logic applies. Possible values: * - * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): - * Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all - * available payment methods. + * The payment method condition that defines whether the split logic applies. Possible values: * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all available payment methods. * - * @param paymentMethod The payment method condition that defines whether the split logic applies. - * Possible values: * [Payment method - * variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the - * split logic for a specific payment method. * **ANY**: Apply the split logic for all - * available payment methods. + * @param paymentMethod The payment method condition that defines whether the split logic applies. Possible values: * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all available payment methods. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -175,23 +147,10 @@ public void setPaymentMethod(String paymentMethod) { } /** - * The sales channel condition that defines whether the split logic applies. Possible values: * - * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on - * file and/or subscription transactions, where the cardholder is known to the merchant (returning - * customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in - * contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where - * the customer is physically present to make a payment using a secure payment terminal. * - * **ANY**: All sales channels. + * The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: All sales channels. * - * @param shopperInteraction The sales channel condition that defines whether the split logic - * applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is - * present. * **ContAuth**: Card on file and/or subscription transactions, where the - * cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and - * telephone-order transactions where the customer is in contact with the merchant via email - * or telephone. * **POS**: Point-of-sale transactions where the customer is physically - * present to make a payment using a secure payment terminal. * **ANY**: All sales channels. - * @return the current {@code UpdateSplitConfigurationRuleRequest} instance, allowing for method - * chaining + * @param shopperInteraction The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: All sales channels. + * @return the current {@code UpdateSplitConfigurationRuleRequest} instance, allowing for method chaining */ public UpdateSplitConfigurationRuleRequest shopperInteraction(String shopperInteraction) { this.shopperInteraction = shopperInteraction; @@ -199,21 +158,8 @@ public UpdateSplitConfigurationRuleRequest shopperInteraction(String shopperInte } /** - * The sales channel condition that defines whether the split logic applies. Possible values: * - * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on - * file and/or subscription transactions, where the cardholder is known to the merchant (returning - * customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in - * contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where - * the customer is physically present to make a payment using a secure payment terminal. * - * **ANY**: All sales channels. - * - * @return shopperInteraction The sales channel condition that defines whether the split logic - * applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is - * present. * **ContAuth**: Card on file and/or subscription transactions, where the - * cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and - * telephone-order transactions where the customer is in contact with the merchant via email - * or telephone. * **POS**: Point-of-sale transactions where the customer is physically - * present to make a payment using a secure payment terminal. * **ANY**: All sales channels. + * The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: All sales channels. + * @return shopperInteraction The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: All sales channels. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -222,21 +168,9 @@ public String getShopperInteraction() { } /** - * The sales channel condition that defines whether the split logic applies. Possible values: * - * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on - * file and/or subscription transactions, where the cardholder is known to the merchant (returning - * customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in - * contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where - * the customer is physically present to make a payment using a secure payment terminal. * - * **ANY**: All sales channels. + * The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: All sales channels. * - * @param shopperInteraction The sales channel condition that defines whether the split logic - * applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is - * present. * **ContAuth**: Card on file and/or subscription transactions, where the - * cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and - * telephone-order transactions where the customer is in contact with the merchant via email - * or telephone. * **POS**: Point-of-sale transactions where the customer is physically - * present to make a payment using a secure payment terminal. * **ANY**: All sales channels. + * @param shopperInteraction The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: All sales channels. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,7 +178,9 @@ public void setShopperInteraction(String shopperInteraction) { this.shopperInteraction = shopperInteraction; } - /** Return true if this UpdateSplitConfigurationRuleRequest object is equal to o. */ + /** + * Return true if this UpdateSplitConfigurationRuleRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -253,13 +189,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UpdateSplitConfigurationRuleRequest updateSplitConfigurationRuleRequest = - (UpdateSplitConfigurationRuleRequest) o; - return Objects.equals(this.currency, updateSplitConfigurationRuleRequest.currency) - && Objects.equals(this.fundingSource, updateSplitConfigurationRuleRequest.fundingSource) - && Objects.equals(this.paymentMethod, updateSplitConfigurationRuleRequest.paymentMethod) - && Objects.equals( - this.shopperInteraction, updateSplitConfigurationRuleRequest.shopperInteraction); + UpdateSplitConfigurationRuleRequest updateSplitConfigurationRuleRequest = (UpdateSplitConfigurationRuleRequest) o; + return Objects.equals(this.currency, updateSplitConfigurationRuleRequest.currency) && + Objects.equals(this.fundingSource, updateSplitConfigurationRuleRequest.fundingSource) && + Objects.equals(this.paymentMethod, updateSplitConfigurationRuleRequest.paymentMethod) && + Objects.equals(this.shopperInteraction, updateSplitConfigurationRuleRequest.shopperInteraction); } @Override @@ -280,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -289,24 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of UpdateSplitConfigurationRuleRequest given an JSON string * * @param jsonString JSON string * @return An instance of UpdateSplitConfigurationRuleRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UpdateSplitConfigurationRuleRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to UpdateSplitConfigurationRuleRequest */ - public static UpdateSplitConfigurationRuleRequest fromJson(String jsonString) - throws JsonProcessingException { + public static UpdateSplitConfigurationRuleRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdateSplitConfigurationRuleRequest.class); } - - /** - * Convert an instance of UpdateSplitConfigurationRuleRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of UpdateSplitConfigurationRuleRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/UpdateStoreRequest.java b/src/main/java/com/adyen/model/management/UpdateStoreRequest.java index 2213d07de..09d2d4d93 100644 --- a/src/main/java/com/adyen/model/management/UpdateStoreRequest.java +++ b/src/main/java/com/adyen/model/management/UpdateStoreRequest.java @@ -2,28 +2,36 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.StoreSplitConfiguration; +import com.adyen.model.management.SubMerchantData; +import com.adyen.model.management.UpdatableAddress; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** UpdateStoreRequest */ + +/** + * UpdateStoreRequest + */ @JsonPropertyOrder({ UpdateStoreRequest.JSON_PROPERTY_ADDRESS, UpdateStoreRequest.JSON_PROPERTY_BUSINESS_LINE_IDS, @@ -34,6 +42,7 @@ UpdateStoreRequest.JSON_PROPERTY_STATUS, UpdateStoreRequest.JSON_PROPERTY_SUB_MERCHANT_DATA }) + public class UpdateStoreRequest { public static final String JSON_PROPERTY_ADDRESS = "address"; private UpdatableAddress address; @@ -54,16 +63,10 @@ public class UpdateStoreRequest { private StoreSplitConfiguration splitConfiguration; /** - * The status of the store. Possible values are: - **active**: This value is assigned - * automatically when a store is created. - **inactive**: The maximum [transaction limits and - * number of Store-and-Forward - * transactions](https://docs.adyen.com/point-of-sale/determine-account-structure/configure-features#payment-features) - * for the store are set to 0. This blocks new transactions, but captures are still possible. - - * **closed**: The terminals of the store are reassigned to the merchant inventory, so they - * can't process payments. You can change the status from **active** to **inactive**, and from - * **inactive** to **active** or **closed**. Once **closed**, a store can't be reopened. + * The status of the store. Possible values are: - **active**: This value is assigned automatically when a store is created. - **inactive**: The maximum [transaction limits and number of Store-and-Forward transactions](https://docs.adyen.com/point-of-sale/determine-account-structure/configure-features#payment-features) for the store are set to 0. This blocks new transactions, but captures are still possible. - **closed**: The terminals of the store are reassigned to the merchant inventory, so they can't process payments. You can change the status from **active** to **inactive**, and from **inactive** to **active** or **closed**. Once **closed**, a store can't be reopened. */ public enum StatusEnum { + ACTIVE(String.valueOf("active")), CLOSED(String.valueOf("closed")), @@ -75,7 +78,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -96,11 +99,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -111,12 +110,13 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_SUB_MERCHANT_DATA = "subMerchantData"; private SubMerchantData subMerchantData; - public UpdateStoreRequest() {} + public UpdateStoreRequest() { + } /** * address * - * @param address + * @param address * @return the current {@code UpdateStoreRequest} instance, allowing for method chaining */ public UpdateStoreRequest address(UpdatableAddress address) { @@ -126,8 +126,7 @@ public UpdateStoreRequest address(UpdatableAddress address) { /** * Get address - * - * @return address + * @return address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,7 +137,7 @@ public UpdatableAddress getAddress() { /** * address * - * @param address + * @param address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,13 +146,9 @@ public void setAddress(UpdatableAddress address) { } /** - * The unique identifiers of the [business - * lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines__resParam_id) - * that the store is associated with. + * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines__resParam_id) that the store is associated with. * - * @param businessLineIds The unique identifiers of the [business - * lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines__resParam_id) - * that the store is associated with. + * @param businessLineIds The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines__resParam_id) that the store is associated with. * @return the current {@code UpdateStoreRequest} instance, allowing for method chaining */ public UpdateStoreRequest businessLineIds(List businessLineIds) { @@ -170,13 +165,8 @@ public UpdateStoreRequest addBusinessLineIdsItem(String businessLineIdsItem) { } /** - * The unique identifiers of the [business - * lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines__resParam_id) - * that the store is associated with. - * - * @return businessLineIds The unique identifiers of the [business - * lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines__resParam_id) - * that the store is associated with. + * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines__resParam_id) that the store is associated with. + * @return businessLineIds The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines__resParam_id) that the store is associated with. */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,13 +175,9 @@ public List getBusinessLineIds() { } /** - * The unique identifiers of the [business - * lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines__resParam_id) - * that the store is associated with. + * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines__resParam_id) that the store is associated with. * - * @param businessLineIds The unique identifiers of the [business - * lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines__resParam_id) - * that the store is associated with. + * @param businessLineIds The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines__resParam_id) that the store is associated with. */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -212,7 +198,6 @@ public UpdateStoreRequest description(String description) { /** * The description of the store. - * * @return description The description of the store. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -233,15 +218,9 @@ public void setDescription(String description) { } /** - * The unique identifier of the store, used by certain payment methods and tax authorities. - * Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, - * hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip - * in Australia, up to 50 digits. + * The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. * - * @param externalReferenceId The unique identifier of the store, used by certain payment methods - * and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 - * separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, - * up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * @param externalReferenceId The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. * @return the current {@code UpdateStoreRequest} instance, allowing for method chaining */ public UpdateStoreRequest externalReferenceId(String externalReferenceId) { @@ -250,15 +229,8 @@ public UpdateStoreRequest externalReferenceId(String externalReferenceId) { } /** - * The unique identifier of the store, used by certain payment methods and tax authorities. - * Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, - * hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip - * in Australia, up to 50 digits. - * - * @return externalReferenceId The unique identifier of the store, used by certain payment methods - * and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 - * separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, - * up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * @return externalReferenceId The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. */ @JsonProperty(JSON_PROPERTY_EXTERNAL_REFERENCE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -267,15 +239,9 @@ public String getExternalReferenceId() { } /** - * The unique identifier of the store, used by certain payment methods and tax authorities. - * Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, - * hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip - * in Australia, up to 50 digits. + * The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. * - * @param externalReferenceId The unique identifier of the store, used by certain payment methods - * and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 - * separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, - * up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * @param externalReferenceId The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. */ @JsonProperty(JSON_PROPERTY_EXTERNAL_REFERENCE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,13 +250,9 @@ public void setExternalReferenceId(String externalReferenceId) { } /** - * The phone number of the store, including '+' and country code in the - * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we - * convert and validate the phone number against E.164. + * The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. * - * @param phoneNumber The phone number of the store, including '+' and country code in the - * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we - * convert and validate the phone number against E.164. + * @param phoneNumber The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. * @return the current {@code UpdateStoreRequest} instance, allowing for method chaining */ public UpdateStoreRequest phoneNumber(String phoneNumber) { @@ -299,13 +261,8 @@ public UpdateStoreRequest phoneNumber(String phoneNumber) { } /** - * The phone number of the store, including '+' and country code in the - * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we - * convert and validate the phone number against E.164. - * - * @return phoneNumber The phone number of the store, including '+' and country code in - * the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, - * we convert and validate the phone number against E.164. + * The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. + * @return phoneNumber The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -314,13 +271,9 @@ public String getPhoneNumber() { } /** - * The phone number of the store, including '+' and country code in the - * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we - * convert and validate the phone number against E.164. + * The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. * - * @param phoneNumber The phone number of the store, including '+' and country code in the - * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we - * convert and validate the phone number against E.164. + * @param phoneNumber The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -331,7 +284,7 @@ public void setPhoneNumber(String phoneNumber) { /** * splitConfiguration * - * @param splitConfiguration + * @param splitConfiguration * @return the current {@code UpdateStoreRequest} instance, allowing for method chaining */ public UpdateStoreRequest splitConfiguration(StoreSplitConfiguration splitConfiguration) { @@ -341,8 +294,7 @@ public UpdateStoreRequest splitConfiguration(StoreSplitConfiguration splitConfig /** * Get splitConfiguration - * - * @return splitConfiguration + * @return splitConfiguration */ @JsonProperty(JSON_PROPERTY_SPLIT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -353,7 +305,7 @@ public StoreSplitConfiguration getSplitConfiguration() { /** * splitConfiguration * - * @param splitConfiguration + * @param splitConfiguration */ @JsonProperty(JSON_PROPERTY_SPLIT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -362,24 +314,9 @@ public void setSplitConfiguration(StoreSplitConfiguration splitConfiguration) { } /** - * The status of the store. Possible values are: - **active**: This value is assigned - * automatically when a store is created. - **inactive**: The maximum [transaction limits and - * number of Store-and-Forward - * transactions](https://docs.adyen.com/point-of-sale/determine-account-structure/configure-features#payment-features) - * for the store are set to 0. This blocks new transactions, but captures are still possible. - - * **closed**: The terminals of the store are reassigned to the merchant inventory, so they - * can't process payments. You can change the status from **active** to **inactive**, and from - * **inactive** to **active** or **closed**. Once **closed**, a store can't be reopened. + * The status of the store. Possible values are: - **active**: This value is assigned automatically when a store is created. - **inactive**: The maximum [transaction limits and number of Store-and-Forward transactions](https://docs.adyen.com/point-of-sale/determine-account-structure/configure-features#payment-features) for the store are set to 0. This blocks new transactions, but captures are still possible. - **closed**: The terminals of the store are reassigned to the merchant inventory, so they can't process payments. You can change the status from **active** to **inactive**, and from **inactive** to **active** or **closed**. Once **closed**, a store can't be reopened. * - * @param status The status of the store. Possible values are: - **active**: This value is - * assigned automatically when a store is created. - **inactive**: The maximum [transaction - * limits and number of Store-and-Forward - * transactions](https://docs.adyen.com/point-of-sale/determine-account-structure/configure-features#payment-features) - * for the store are set to 0. This blocks new transactions, but captures are still possible. - * - **closed**: The terminals of the store are reassigned to the merchant inventory, so they - * can't process payments. You can change the status from **active** to **inactive**, and - * from **inactive** to **active** or **closed**. Once **closed**, a store can't be - * reopened. + * @param status The status of the store. Possible values are: - **active**: This value is assigned automatically when a store is created. - **inactive**: The maximum [transaction limits and number of Store-and-Forward transactions](https://docs.adyen.com/point-of-sale/determine-account-structure/configure-features#payment-features) for the store are set to 0. This blocks new transactions, but captures are still possible. - **closed**: The terminals of the store are reassigned to the merchant inventory, so they can't process payments. You can change the status from **active** to **inactive**, and from **inactive** to **active** or **closed**. Once **closed**, a store can't be reopened. * @return the current {@code UpdateStoreRequest} instance, allowing for method chaining */ public UpdateStoreRequest status(StatusEnum status) { @@ -388,24 +325,8 @@ public UpdateStoreRequest status(StatusEnum status) { } /** - * The status of the store. Possible values are: - **active**: This value is assigned - * automatically when a store is created. - **inactive**: The maximum [transaction limits and - * number of Store-and-Forward - * transactions](https://docs.adyen.com/point-of-sale/determine-account-structure/configure-features#payment-features) - * for the store are set to 0. This blocks new transactions, but captures are still possible. - - * **closed**: The terminals of the store are reassigned to the merchant inventory, so they - * can't process payments. You can change the status from **active** to **inactive**, and from - * **inactive** to **active** or **closed**. Once **closed**, a store can't be reopened. - * - * @return status The status of the store. Possible values are: - **active**: This value is - * assigned automatically when a store is created. - **inactive**: The maximum [transaction - * limits and number of Store-and-Forward - * transactions](https://docs.adyen.com/point-of-sale/determine-account-structure/configure-features#payment-features) - * for the store are set to 0. This blocks new transactions, but captures are still possible. - * - **closed**: The terminals of the store are reassigned to the merchant inventory, so they - * can't process payments. You can change the status from **active** to **inactive**, and - * from **inactive** to **active** or **closed**. Once **closed**, a store can't be - * reopened. + * The status of the store. Possible values are: - **active**: This value is assigned automatically when a store is created. - **inactive**: The maximum [transaction limits and number of Store-and-Forward transactions](https://docs.adyen.com/point-of-sale/determine-account-structure/configure-features#payment-features) for the store are set to 0. This blocks new transactions, but captures are still possible. - **closed**: The terminals of the store are reassigned to the merchant inventory, so they can't process payments. You can change the status from **active** to **inactive**, and from **inactive** to **active** or **closed**. Once **closed**, a store can't be reopened. + * @return status The status of the store. Possible values are: - **active**: This value is assigned automatically when a store is created. - **inactive**: The maximum [transaction limits and number of Store-and-Forward transactions](https://docs.adyen.com/point-of-sale/determine-account-structure/configure-features#payment-features) for the store are set to 0. This blocks new transactions, but captures are still possible. - **closed**: The terminals of the store are reassigned to the merchant inventory, so they can't process payments. You can change the status from **active** to **inactive**, and from **inactive** to **active** or **closed**. Once **closed**, a store can't be reopened. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -414,24 +335,9 @@ public StatusEnum getStatus() { } /** - * The status of the store. Possible values are: - **active**: This value is assigned - * automatically when a store is created. - **inactive**: The maximum [transaction limits and - * number of Store-and-Forward - * transactions](https://docs.adyen.com/point-of-sale/determine-account-structure/configure-features#payment-features) - * for the store are set to 0. This blocks new transactions, but captures are still possible. - - * **closed**: The terminals of the store are reassigned to the merchant inventory, so they - * can't process payments. You can change the status from **active** to **inactive**, and from - * **inactive** to **active** or **closed**. Once **closed**, a store can't be reopened. + * The status of the store. Possible values are: - **active**: This value is assigned automatically when a store is created. - **inactive**: The maximum [transaction limits and number of Store-and-Forward transactions](https://docs.adyen.com/point-of-sale/determine-account-structure/configure-features#payment-features) for the store are set to 0. This blocks new transactions, but captures are still possible. - **closed**: The terminals of the store are reassigned to the merchant inventory, so they can't process payments. You can change the status from **active** to **inactive**, and from **inactive** to **active** or **closed**. Once **closed**, a store can't be reopened. * - * @param status The status of the store. Possible values are: - **active**: This value is - * assigned automatically when a store is created. - **inactive**: The maximum [transaction - * limits and number of Store-and-Forward - * transactions](https://docs.adyen.com/point-of-sale/determine-account-structure/configure-features#payment-features) - * for the store are set to 0. This blocks new transactions, but captures are still possible. - * - **closed**: The terminals of the store are reassigned to the merchant inventory, so they - * can't process payments. You can change the status from **active** to **inactive**, and - * from **inactive** to **active** or **closed**. Once **closed**, a store can't be - * reopened. + * @param status The status of the store. Possible values are: - **active**: This value is assigned automatically when a store is created. - **inactive**: The maximum [transaction limits and number of Store-and-Forward transactions](https://docs.adyen.com/point-of-sale/determine-account-structure/configure-features#payment-features) for the store are set to 0. This blocks new transactions, but captures are still possible. - **closed**: The terminals of the store are reassigned to the merchant inventory, so they can't process payments. You can change the status from **active** to **inactive**, and from **inactive** to **active** or **closed**. Once **closed**, a store can't be reopened. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -442,7 +348,7 @@ public void setStatus(StatusEnum status) { /** * subMerchantData * - * @param subMerchantData + * @param subMerchantData * @return the current {@code UpdateStoreRequest} instance, allowing for method chaining */ public UpdateStoreRequest subMerchantData(SubMerchantData subMerchantData) { @@ -452,8 +358,7 @@ public UpdateStoreRequest subMerchantData(SubMerchantData subMerchantData) { /** * Get subMerchantData - * - * @return subMerchantData + * @return subMerchantData */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -464,7 +369,7 @@ public SubMerchantData getSubMerchantData() { /** * subMerchantData * - * @param subMerchantData + * @param subMerchantData */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -472,7 +377,9 @@ public void setSubMerchantData(SubMerchantData subMerchantData) { this.subMerchantData = subMerchantData; } - /** Return true if this UpdateStoreRequest object is equal to o. */ + /** + * Return true if this UpdateStoreRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -482,27 +389,19 @@ public boolean equals(Object o) { return false; } UpdateStoreRequest updateStoreRequest = (UpdateStoreRequest) o; - return Objects.equals(this.address, updateStoreRequest.address) - && Objects.equals(this.businessLineIds, updateStoreRequest.businessLineIds) - && Objects.equals(this.description, updateStoreRequest.description) - && Objects.equals(this.externalReferenceId, updateStoreRequest.externalReferenceId) - && Objects.equals(this.phoneNumber, updateStoreRequest.phoneNumber) - && Objects.equals(this.splitConfiguration, updateStoreRequest.splitConfiguration) - && Objects.equals(this.status, updateStoreRequest.status) - && Objects.equals(this.subMerchantData, updateStoreRequest.subMerchantData); + return Objects.equals(this.address, updateStoreRequest.address) && + Objects.equals(this.businessLineIds, updateStoreRequest.businessLineIds) && + Objects.equals(this.description, updateStoreRequest.description) && + Objects.equals(this.externalReferenceId, updateStoreRequest.externalReferenceId) && + Objects.equals(this.phoneNumber, updateStoreRequest.phoneNumber) && + Objects.equals(this.splitConfiguration, updateStoreRequest.splitConfiguration) && + Objects.equals(this.status, updateStoreRequest.status) && + Objects.equals(this.subMerchantData, updateStoreRequest.subMerchantData); } @Override public int hashCode() { - return Objects.hash( - address, - businessLineIds, - description, - externalReferenceId, - phoneNumber, - splitConfiguration, - status, - subMerchantData); + return Objects.hash(address, businessLineIds, description, externalReferenceId, phoneNumber, splitConfiguration, status, subMerchantData); } @Override @@ -512,9 +411,7 @@ public String toString() { sb.append(" address: ").append(toIndentedString(address)).append("\n"); sb.append(" businessLineIds: ").append(toIndentedString(businessLineIds)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" externalReferenceId: ") - .append(toIndentedString(externalReferenceId)) - .append("\n"); + sb.append(" externalReferenceId: ").append(toIndentedString(externalReferenceId)).append("\n"); sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); sb.append(" splitConfiguration: ").append(toIndentedString(splitConfiguration)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); @@ -524,7 +421,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -533,23 +431,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of UpdateStoreRequest given an JSON string * * @param jsonString JSON string * @return An instance of UpdateStoreRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UpdateStoreRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to UpdateStoreRequest */ public static UpdateStoreRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdateStoreRequest.class); } - - /** - * Convert an instance of UpdateStoreRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of UpdateStoreRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/UploadAndroidAppResponse.java b/src/main/java/com/adyen/model/management/UploadAndroidAppResponse.java index bedc264b8..b4bc1fde5 100644 --- a/src/main/java/com/adyen/model/management/UploadAndroidAppResponse.java +++ b/src/main/java/com/adyen/model/management/UploadAndroidAppResponse.java @@ -2,28 +2,41 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** UploadAndroidAppResponse */ -@JsonPropertyOrder({UploadAndroidAppResponse.JSON_PROPERTY_ID}) + +/** + * UploadAndroidAppResponse + */ +@JsonPropertyOrder({ + UploadAndroidAppResponse.JSON_PROPERTY_ID +}) + public class UploadAndroidAppResponse { public static final String JSON_PROPERTY_ID = "id"; private String id; - public UploadAndroidAppResponse() {} + public UploadAndroidAppResponse() { + } /** * The unique identifier of the uploaded Android app. @@ -38,7 +51,6 @@ public UploadAndroidAppResponse id(String id) { /** * The unique identifier of the uploaded Android app. - * * @return id The unique identifier of the uploaded Android app. */ @JsonProperty(JSON_PROPERTY_ID) @@ -58,7 +70,9 @@ public void setId(String id) { this.id = id; } - /** Return true if this UploadAndroidAppResponse object is equal to o. */ + /** + * Return true if this UploadAndroidAppResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of UploadAndroidAppResponse given an JSON string * * @param jsonString JSON string * @return An instance of UploadAndroidAppResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UploadAndroidAppResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to UploadAndroidAppResponse */ - public static UploadAndroidAppResponse fromJson(String jsonString) - throws JsonProcessingException { + public static UploadAndroidAppResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UploadAndroidAppResponse.class); } - - /** - * Convert an instance of UploadAndroidAppResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of UploadAndroidAppResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/UploadAndroidCertificateResponse.java b/src/main/java/com/adyen/model/management/UploadAndroidCertificateResponse.java index 77feb2991..a322fa862 100644 --- a/src/main/java/com/adyen/model/management/UploadAndroidCertificateResponse.java +++ b/src/main/java/com/adyen/model/management/UploadAndroidCertificateResponse.java @@ -2,35 +2,47 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** UploadAndroidCertificateResponse */ -@JsonPropertyOrder({UploadAndroidCertificateResponse.JSON_PROPERTY_ID}) + +/** + * UploadAndroidCertificateResponse + */ +@JsonPropertyOrder({ + UploadAndroidCertificateResponse.JSON_PROPERTY_ID +}) + public class UploadAndroidCertificateResponse { public static final String JSON_PROPERTY_ID = "id"; private String id; - public UploadAndroidCertificateResponse() {} + public UploadAndroidCertificateResponse() { + } /** * The unique identifier of the uploaded Android certificate. * * @param id The unique identifier of the uploaded Android certificate. - * @return the current {@code UploadAndroidCertificateResponse} instance, allowing for method - * chaining + * @return the current {@code UploadAndroidCertificateResponse} instance, allowing for method chaining */ public UploadAndroidCertificateResponse id(String id) { this.id = id; @@ -39,7 +51,6 @@ public UploadAndroidCertificateResponse id(String id) { /** * The unique identifier of the uploaded Android certificate. - * * @return id The unique identifier of the uploaded Android certificate. */ @JsonProperty(JSON_PROPERTY_ID) @@ -59,7 +70,9 @@ public void setId(String id) { this.id = id; } - /** Return true if this UploadAndroidCertificateResponse object is equal to o. */ + /** + * Return true if this UploadAndroidCertificateResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -68,8 +81,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UploadAndroidCertificateResponse uploadAndroidCertificateResponse = - (UploadAndroidCertificateResponse) o; + UploadAndroidCertificateResponse uploadAndroidCertificateResponse = (UploadAndroidCertificateResponse) o; return Objects.equals(this.id, uploadAndroidCertificateResponse.id); } @@ -88,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -97,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of UploadAndroidCertificateResponse given an JSON string * * @param jsonString JSON string * @return An instance of UploadAndroidCertificateResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UploadAndroidCertificateResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to UploadAndroidCertificateResponse */ - public static UploadAndroidCertificateResponse fromJson(String jsonString) - throws JsonProcessingException { + public static UploadAndroidCertificateResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UploadAndroidCertificateResponse.class); } - - /** - * Convert an instance of UploadAndroidCertificateResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of UploadAndroidCertificateResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Url.java b/src/main/java/com/adyen/model/management/Url.java index 5e847f927..740c01cc9 100644 --- a/src/main/java/com/adyen/model/management/Url.java +++ b/src/main/java/com/adyen/model/management/Url.java @@ -2,28 +2,38 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Url */ + +/** + * Url + */ @JsonPropertyOrder({ Url.JSON_PROPERTY_ENCRYPTED, Url.JSON_PROPERTY_PASSWORD, Url.JSON_PROPERTY_URL, Url.JSON_PROPERTY_USERNAME }) + public class Url { public static final String JSON_PROPERTY_ENCRYPTED = "encrypted"; private Boolean encrypted; @@ -37,7 +47,8 @@ public class Url { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public Url() {} + public Url() { + } /** * Indicates if the message sent to this URL should be encrypted. @@ -52,7 +63,6 @@ public Url encrypted(Boolean encrypted) { /** * Indicates if the message sent to this URL should be encrypted. - * * @return encrypted Indicates if the message sent to this URL should be encrypted. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED) @@ -85,7 +95,6 @@ public Url password(String password) { /** * The password for authentication of the notifications. - * * @return password The password for authentication of the notifications. */ @JsonProperty(JSON_PROPERTY_PASSWORD) @@ -118,7 +127,6 @@ public Url url(String url) { /** * The URL in the format: http(s)://domain.com. - * * @return url The URL in the format: http(s)://domain.com. */ @JsonProperty(JSON_PROPERTY_URL) @@ -151,7 +159,6 @@ public Url username(String username) { /** * The username for authentication of the notifications. - * * @return username The username for authentication of the notifications. */ @JsonProperty(JSON_PROPERTY_USERNAME) @@ -171,7 +178,9 @@ public void setUsername(String username) { this.username = username; } - /** Return true if this Url object is equal to o. */ + /** + * Return true if this Url object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -181,10 +190,10 @@ public boolean equals(Object o) { return false; } Url url = (Url) o; - return Objects.equals(this.encrypted, url.encrypted) - && Objects.equals(this.password, url.password) - && Objects.equals(this.url, url.url) - && Objects.equals(this.username, url.username); + return Objects.equals(this.encrypted, url.encrypted) && + Objects.equals(this.password, url.password) && + Objects.equals(this.url, url.url) && + Objects.equals(this.username, url.username); } @Override @@ -205,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -214,7 +224,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Url given an JSON string * * @param jsonString JSON string @@ -224,12 +234,11 @@ private String toIndentedString(Object o) { public static Url fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Url.class); } - - /** - * Convert an instance of Url to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Url to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/User.java b/src/main/java/com/adyen/model/management/User.java index ca16766ec..4b5929ce8 100644 --- a/src/main/java/com/adyen/model/management/User.java +++ b/src/main/java/com/adyen/model/management/User.java @@ -2,24 +2,35 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.Links; +import com.adyen.model.management.Name; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** User */ + +/** + * User + */ @JsonPropertyOrder({ User.JSON_PROPERTY_LINKS, User.JSON_PROPERTY_ACCOUNT_GROUPS, @@ -32,6 +43,7 @@ User.JSON_PROPERTY_TIME_ZONE_CODE, User.JSON_PROPERTY_USERNAME }) + public class User { public static final String JSON_PROPERTY_LINKS = "_links"; private Links links; @@ -63,12 +75,13 @@ public class User { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public User() {} + public User() { + } /** * links * - * @param links + * @param links * @return the current {@code User} instance, allowing for method chaining */ public User links(Links links) { @@ -78,8 +91,7 @@ public User links(Links links) { /** * Get links - * - * @return links + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -90,7 +102,7 @@ public Links getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,12 +111,9 @@ public void setLinks(Links links) { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) - * associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. * - * @param accountGroups The list of [account - * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with - * this user. + * @param accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. * @return the current {@code User} instance, allowing for method chaining */ public User accountGroups(List accountGroups) { @@ -121,12 +130,8 @@ public User addAccountGroupsItem(String accountGroupsItem) { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) - * associated with this user. - * - * @return accountGroups The list of [account - * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with - * this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * @return accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,12 +140,9 @@ public List getAccountGroups() { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) - * associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. * - * @param accountGroups The list of [account - * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with - * this user. + * @param accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,7 +163,6 @@ public User active(Boolean active) { /** * Indicates whether this user is active. - * * @return active Indicates whether this user is active. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @@ -202,7 +203,6 @@ public User addAppsItem(String appsItem) { /** * Set of apps available to this user - * * @return apps Set of apps available to this user */ @JsonProperty(JSON_PROPERTY_APPS) @@ -235,7 +235,6 @@ public User email(String email) { /** * The email address of the user. - * * @return email The email address of the user. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -268,7 +267,6 @@ public User id(String id) { /** * The unique identifier of the user. - * * @return id The unique identifier of the user. */ @JsonProperty(JSON_PROPERTY_ID) @@ -291,7 +289,7 @@ public void setId(String id) { /** * name * - * @param name + * @param name * @return the current {@code User} instance, allowing for method chaining */ public User name(Name name) { @@ -301,8 +299,7 @@ public User name(Name name) { /** * Get name - * - * @return name + * @return name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -313,7 +310,7 @@ public Name getName() { /** * name * - * @param name + * @param name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -342,7 +339,6 @@ public User addRolesItem(String rolesItem) { /** * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. - * * @return roles The list of [roles](https://docs.adyen.com/account/user-roles) for this user. */ @JsonProperty(JSON_PROPERTY_ROLES) @@ -363,12 +359,9 @@ public void setRoles(List roles) { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the - * time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. * - * @param timeZoneCode The [tz database - * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the - * user. For example, **Europe/Amsterdam**. + * @param timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. * @return the current {@code User} instance, allowing for method chaining */ public User timeZoneCode(String timeZoneCode) { @@ -377,12 +370,8 @@ public User timeZoneCode(String timeZoneCode) { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the - * time zone of the user. For example, **Europe/Amsterdam**. - * - * @return timeZoneCode The [tz database - * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the - * user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * @return timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -391,12 +380,9 @@ public String getTimeZoneCode() { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the - * time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. * - * @param timeZoneCode The [tz database - * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the - * user. For example, **Europe/Amsterdam**. + * @param timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -417,7 +403,6 @@ public User username(String username) { /** * The username for this user. - * * @return username The username for this user. */ @JsonProperty(JSON_PROPERTY_USERNAME) @@ -437,7 +422,9 @@ public void setUsername(String username) { this.username = username; } - /** Return true if this User object is equal to o. */ + /** + * Return true if this User object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -447,22 +434,21 @@ public boolean equals(Object o) { return false; } User user = (User) o; - return Objects.equals(this.links, user.links) - && Objects.equals(this.accountGroups, user.accountGroups) - && Objects.equals(this.active, user.active) - && Objects.equals(this.apps, user.apps) - && Objects.equals(this.email, user.email) - && Objects.equals(this.id, user.id) - && Objects.equals(this.name, user.name) - && Objects.equals(this.roles, user.roles) - && Objects.equals(this.timeZoneCode, user.timeZoneCode) - && Objects.equals(this.username, user.username); + return Objects.equals(this.links, user.links) && + Objects.equals(this.accountGroups, user.accountGroups) && + Objects.equals(this.active, user.active) && + Objects.equals(this.apps, user.apps) && + Objects.equals(this.email, user.email) && + Objects.equals(this.id, user.id) && + Objects.equals(this.name, user.name) && + Objects.equals(this.roles, user.roles) && + Objects.equals(this.timeZoneCode, user.timeZoneCode) && + Objects.equals(this.username, user.username); } @Override public int hashCode() { - return Objects.hash( - links, accountGroups, active, apps, email, id, name, roles, timeZoneCode, username); + return Objects.hash(links, accountGroups, active, apps, email, id, name, roles, timeZoneCode, username); } @Override @@ -484,7 +470,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -493,7 +480,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of User given an JSON string * * @param jsonString JSON string @@ -503,12 +490,11 @@ private String toIndentedString(Object o) { public static User fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, User.class); } - - /** - * Convert an instance of User to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of User to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/VippsInfo.java b/src/main/java/com/adyen/model/management/VippsInfo.java index 84f9e456f..bf36bfd5e 100644 --- a/src/main/java/com/adyen/model/management/VippsInfo.java +++ b/src/main/java/com/adyen/model/management/VippsInfo.java @@ -2,23 +2,36 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** VippsInfo */ -@JsonPropertyOrder({VippsInfo.JSON_PROPERTY_LOGO, VippsInfo.JSON_PROPERTY_SUBSCRIPTION_CANCEL_URL}) + +/** + * VippsInfo + */ +@JsonPropertyOrder({ + VippsInfo.JSON_PROPERTY_LOGO, + VippsInfo.JSON_PROPERTY_SUBSCRIPTION_CANCEL_URL +}) + public class VippsInfo { public static final String JSON_PROPERTY_LOGO = "logo"; private String logo; @@ -26,7 +39,8 @@ public class VippsInfo { public static final String JSON_PROPERTY_SUBSCRIPTION_CANCEL_URL = "subscriptionCancelUrl"; private String subscriptionCancelUrl; - public VippsInfo() {} + public VippsInfo() { + } /** * Vipps logo. Format: Base64-encoded string. @@ -41,7 +55,6 @@ public VippsInfo logo(String logo) { /** * Vipps logo. Format: Base64-encoded string. - * * @return logo Vipps logo. Format: Base64-encoded string. */ @JsonProperty(JSON_PROPERTY_LOGO) @@ -62,11 +75,9 @@ public void setLogo(String logo) { } /** - * Vipps subscription cancel url (required in case of [recurring - * payments](https://docs.adyen.com/online-payments/tokenization)) + * Vipps subscription cancel url (required in case of [recurring payments](https://docs.adyen.com/online-payments/tokenization)) * - * @param subscriptionCancelUrl Vipps subscription cancel url (required in case of [recurring - * payments](https://docs.adyen.com/online-payments/tokenization)) + * @param subscriptionCancelUrl Vipps subscription cancel url (required in case of [recurring payments](https://docs.adyen.com/online-payments/tokenization)) * @return the current {@code VippsInfo} instance, allowing for method chaining */ public VippsInfo subscriptionCancelUrl(String subscriptionCancelUrl) { @@ -75,11 +86,8 @@ public VippsInfo subscriptionCancelUrl(String subscriptionCancelUrl) { } /** - * Vipps subscription cancel url (required in case of [recurring - * payments](https://docs.adyen.com/online-payments/tokenization)) - * - * @return subscriptionCancelUrl Vipps subscription cancel url (required in case of [recurring - * payments](https://docs.adyen.com/online-payments/tokenization)) + * Vipps subscription cancel url (required in case of [recurring payments](https://docs.adyen.com/online-payments/tokenization)) + * @return subscriptionCancelUrl Vipps subscription cancel url (required in case of [recurring payments](https://docs.adyen.com/online-payments/tokenization)) */ @JsonProperty(JSON_PROPERTY_SUBSCRIPTION_CANCEL_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -88,11 +96,9 @@ public String getSubscriptionCancelUrl() { } /** - * Vipps subscription cancel url (required in case of [recurring - * payments](https://docs.adyen.com/online-payments/tokenization)) + * Vipps subscription cancel url (required in case of [recurring payments](https://docs.adyen.com/online-payments/tokenization)) * - * @param subscriptionCancelUrl Vipps subscription cancel url (required in case of [recurring - * payments](https://docs.adyen.com/online-payments/tokenization)) + * @param subscriptionCancelUrl Vipps subscription cancel url (required in case of [recurring payments](https://docs.adyen.com/online-payments/tokenization)) */ @JsonProperty(JSON_PROPERTY_SUBSCRIPTION_CANCEL_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,7 +106,9 @@ public void setSubscriptionCancelUrl(String subscriptionCancelUrl) { this.subscriptionCancelUrl = subscriptionCancelUrl; } - /** Return true if this VippsInfo object is equal to o. */ + /** + * Return true if this VippsInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -110,8 +118,8 @@ public boolean equals(Object o) { return false; } VippsInfo vippsInfo = (VippsInfo) o; - return Objects.equals(this.logo, vippsInfo.logo) - && Objects.equals(this.subscriptionCancelUrl, vippsInfo.subscriptionCancelUrl); + return Objects.equals(this.logo, vippsInfo.logo) && + Objects.equals(this.subscriptionCancelUrl, vippsInfo.subscriptionCancelUrl); } @Override @@ -124,15 +132,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class VippsInfo {\n"); sb.append(" logo: ").append(toIndentedString(logo)).append("\n"); - sb.append(" subscriptionCancelUrl: ") - .append(toIndentedString(subscriptionCancelUrl)) - .append("\n"); + sb.append(" subscriptionCancelUrl: ").append(toIndentedString(subscriptionCancelUrl)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -141,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of VippsInfo given an JSON string * * @param jsonString JSON string @@ -151,12 +158,11 @@ private String toIndentedString(Object o) { public static VippsInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, VippsInfo.class); } - - /** - * Convert an instance of VippsInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of VippsInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/WeChatPayInfo.java b/src/main/java/com/adyen/model/management/WeChatPayInfo.java index b5d3aea60..bed9649a1 100644 --- a/src/main/java/com/adyen/model/management/WeChatPayInfo.java +++ b/src/main/java/com/adyen/model/management/WeChatPayInfo.java @@ -2,26 +2,36 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** WeChatPayInfo */ + +/** + * WeChatPayInfo + */ @JsonPropertyOrder({ WeChatPayInfo.JSON_PROPERTY_CONTACT_PERSON_NAME, WeChatPayInfo.JSON_PROPERTY_EMAIL }) + public class WeChatPayInfo { public static final String JSON_PROPERTY_CONTACT_PERSON_NAME = "contactPersonName"; private String contactPersonName; @@ -29,7 +39,8 @@ public class WeChatPayInfo { public static final String JSON_PROPERTY_EMAIL = "email"; private String email; - public WeChatPayInfo() {} + public WeChatPayInfo() { + } /** * The name of the contact person from merchant support. @@ -44,7 +55,6 @@ public WeChatPayInfo contactPersonName(String contactPersonName) { /** * The name of the contact person from merchant support. - * * @return contactPersonName The name of the contact person from merchant support. */ @JsonProperty(JSON_PROPERTY_CONTACT_PERSON_NAME) @@ -77,7 +87,6 @@ public WeChatPayInfo email(String email) { /** * The email address of merchant support. - * * @return email The email address of merchant support. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -97,7 +106,9 @@ public void setEmail(String email) { this.email = email; } - /** Return true if this WeChatPayInfo object is equal to o. */ + /** + * Return true if this WeChatPayInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -107,8 +118,8 @@ public boolean equals(Object o) { return false; } WeChatPayInfo weChatPayInfo = (WeChatPayInfo) o; - return Objects.equals(this.contactPersonName, weChatPayInfo.contactPersonName) - && Objects.equals(this.email, weChatPayInfo.email); + return Objects.equals(this.contactPersonName, weChatPayInfo.contactPersonName) && + Objects.equals(this.email, weChatPayInfo.email); } @Override @@ -127,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of WeChatPayInfo given an JSON string * * @param jsonString JSON string @@ -146,12 +158,11 @@ private String toIndentedString(Object o) { public static WeChatPayInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, WeChatPayInfo.class); } - - /** - * Convert an instance of WeChatPayInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of WeChatPayInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/WeChatPayPosInfo.java b/src/main/java/com/adyen/model/management/WeChatPayPosInfo.java index ed78a488f..3cbcc5e0c 100644 --- a/src/main/java/com/adyen/model/management/WeChatPayPosInfo.java +++ b/src/main/java/com/adyen/model/management/WeChatPayPosInfo.java @@ -2,26 +2,36 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** WeChatPayPosInfo */ + +/** + * WeChatPayPosInfo + */ @JsonPropertyOrder({ WeChatPayPosInfo.JSON_PROPERTY_CONTACT_PERSON_NAME, WeChatPayPosInfo.JSON_PROPERTY_EMAIL }) + public class WeChatPayPosInfo { public static final String JSON_PROPERTY_CONTACT_PERSON_NAME = "contactPersonName"; private String contactPersonName; @@ -29,7 +39,8 @@ public class WeChatPayPosInfo { public static final String JSON_PROPERTY_EMAIL = "email"; private String email; - public WeChatPayPosInfo() {} + public WeChatPayPosInfo() { + } /** * The name of the contact person from merchant support. @@ -44,7 +55,6 @@ public WeChatPayPosInfo contactPersonName(String contactPersonName) { /** * The name of the contact person from merchant support. - * * @return contactPersonName The name of the contact person from merchant support. */ @JsonProperty(JSON_PROPERTY_CONTACT_PERSON_NAME) @@ -77,7 +87,6 @@ public WeChatPayPosInfo email(String email) { /** * The email address of merchant support. - * * @return email The email address of merchant support. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -97,7 +106,9 @@ public void setEmail(String email) { this.email = email; } - /** Return true if this WeChatPayPosInfo object is equal to o. */ + /** + * Return true if this WeChatPayPosInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -107,8 +118,8 @@ public boolean equals(Object o) { return false; } WeChatPayPosInfo weChatPayPosInfo = (WeChatPayPosInfo) o; - return Objects.equals(this.contactPersonName, weChatPayPosInfo.contactPersonName) - && Objects.equals(this.email, weChatPayPosInfo.email); + return Objects.equals(this.contactPersonName, weChatPayPosInfo.contactPersonName) && + Objects.equals(this.email, weChatPayPosInfo.email); } @Override @@ -127,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of WeChatPayPosInfo given an JSON string * * @param jsonString JSON string @@ -146,12 +158,11 @@ private String toIndentedString(Object o) { public static WeChatPayPosInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, WeChatPayPosInfo.class); } - - /** - * Convert an instance of WeChatPayPosInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of WeChatPayPosInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Webhook.java b/src/main/java/com/adyen/model/management/Webhook.java index 0a3c2c44c..9431cce6f 100644 --- a/src/main/java/com/adyen/model/management/Webhook.java +++ b/src/main/java/com/adyen/model/management/Webhook.java @@ -2,28 +2,35 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.AdditionalSettingsResponse; +import com.adyen.model.management.WebhookLinks; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** Webhook */ +/** + * Webhook + */ @JsonPropertyOrder({ Webhook.JSON_PROPERTY_LINKS, Webhook.JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE, @@ -48,20 +55,18 @@ Webhook.JSON_PROPERTY_URL, Webhook.JSON_PROPERTY_USERNAME }) + public class Webhook { public static final String JSON_PROPERTY_LINKS = "_links"; private WebhookLinks links; - public static final String JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE = - "acceptsExpiredCertificate"; + public static final String JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE = "acceptsExpiredCertificate"; private Boolean acceptsExpiredCertificate; - public static final String JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE = - "acceptsSelfSignedCertificate"; + public static final String JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE = "acceptsSelfSignedCertificate"; private Boolean acceptsSelfSignedCertificate; - public static final String JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE = - "acceptsUntrustedRootCertificate"; + public static final String JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE = "acceptsUntrustedRootCertificate"; private Boolean acceptsUntrustedRootCertificate; public static final String JSON_PROPERTY_ACCOUNT_REFERENCE = "accountReference"; @@ -77,9 +82,10 @@ public class Webhook { private String certificateAlias; /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** */ public enum CommunicationFormatEnum { + HTTP(String.valueOf("http")), JSON(String.valueOf("json")), @@ -91,7 +97,7 @@ public enum CommunicationFormatEnum { private String value; CommunicationFormatEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -112,11 +118,7 @@ public static CommunicationFormatEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "CommunicationFormatEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(CommunicationFormatEnum.values())); + LOG.warning("CommunicationFormatEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CommunicationFormatEnum.values())); return null; } } @@ -128,11 +130,10 @@ public static CommunicationFormatEnum fromValue(String value) { private String description; /** - * SSL version to access the public webhook URL specified in the `url` field. Possible - * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not - * specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. */ public enum EncryptionProtocolEnum { + HTTP(String.valueOf("HTTP")), TLSV1_2(String.valueOf("TLSv1.2")), @@ -144,7 +145,7 @@ public enum EncryptionProtocolEnum { private String value; EncryptionProtocolEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -165,11 +166,7 @@ public static EncryptionProtocolEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "EncryptionProtocolEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(EncryptionProtocolEnum.values())); + LOG.warning("EncryptionProtocolEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(EncryptionProtocolEnum.values())); return null; } } @@ -178,24 +175,22 @@ public static EncryptionProtocolEnum fromValue(String value) { private EncryptionProtocolEnum encryptionProtocol; /** - * Shows how merchant accounts are included in company-level webhooks. Possible values: * - * **includeAccounts** * **excludeAccounts** * **allAccounts**: Includes all merchant accounts, - * and does not require specifying `filterMerchantAccounts`. + * Shows how merchant accounts are included in company-level webhooks. Possible values: * **includeAccounts** * **excludeAccounts** * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. */ public enum FilterMerchantAccountTypeEnum { + ALLACCOUNTS(String.valueOf("allAccounts")), EXCLUDEACCOUNTS(String.valueOf("excludeAccounts")), INCLUDEACCOUNTS(String.valueOf("includeAccounts")); - private static final Logger LOG = - Logger.getLogger(FilterMerchantAccountTypeEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(FilterMerchantAccountTypeEnum.class.getName()); private String value; FilterMerchantAccountTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -216,17 +211,12 @@ public static FilterMerchantAccountTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FilterMerchantAccountTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FilterMerchantAccountTypeEnum.values())); + LOG.warning("FilterMerchantAccountTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FilterMerchantAccountTypeEnum.values())); return null; } } - public static final String JSON_PROPERTY_FILTER_MERCHANT_ACCOUNT_TYPE = - "filterMerchantAccountType"; + public static final String JSON_PROPERTY_FILTER_MERCHANT_ACCOUNT_TYPE = "filterMerchantAccountType"; private FilterMerchantAccountTypeEnum filterMerchantAccountType; public static final String JSON_PROPERTY_FILTER_MERCHANT_ACCOUNTS = "filterMerchantAccounts"; @@ -244,8 +234,11 @@ public static FilterMerchantAccountTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_ID = "id"; private String id; - /** Network type for Terminal API details webhooks. */ + /** + * Network type for Terminal API details webhooks. + */ public enum NetworkTypeEnum { + LOCAL(String.valueOf("local")), PUBLIC(String.valueOf("public")); @@ -255,7 +248,7 @@ public enum NetworkTypeEnum { private String value; NetworkTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -276,11 +269,7 @@ public static NetworkTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "NetworkTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(NetworkTypeEnum.values())); + LOG.warning("NetworkTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(NetworkTypeEnum.values())); return null; } } @@ -300,12 +289,13 @@ public static NetworkTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public Webhook() {} + public Webhook() { + } /** * links * - * @param links + * @param links * @return the current {@code Webhook} instance, allowing for method chaining */ public Webhook links(WebhookLinks links) { @@ -315,8 +305,7 @@ public Webhook links(WebhookLinks links) { /** * Get links - * - * @return links + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -327,7 +316,7 @@ public WebhookLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -338,8 +327,7 @@ public void setLinks(WebhookLinks links) { /** * Indicates if expired SSL certificates are accepted. Default value: **false**. * - * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default - * value: **false**. + * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default value: **false**. * @return the current {@code Webhook} instance, allowing for method chaining */ public Webhook acceptsExpiredCertificate(Boolean acceptsExpiredCertificate) { @@ -349,9 +337,7 @@ public Webhook acceptsExpiredCertificate(Boolean acceptsExpiredCertificate) { /** * Indicates if expired SSL certificates are accepted. Default value: **false**. - * - * @return acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default - * value: **false**. + * @return acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -362,8 +348,7 @@ public Boolean getAcceptsExpiredCertificate() { /** * Indicates if expired SSL certificates are accepted. Default value: **false**. * - * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default - * value: **false**. + * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -374,8 +359,7 @@ public void setAcceptsExpiredCertificate(Boolean acceptsExpiredCertificate) { /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. * - * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. - * Default value: **false**. + * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. Default value: **false**. * @return the current {@code Webhook} instance, allowing for method chaining */ public Webhook acceptsSelfSignedCertificate(Boolean acceptsSelfSignedCertificate) { @@ -385,9 +369,7 @@ public Webhook acceptsSelfSignedCertificate(Boolean acceptsSelfSignedCertificate /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. - * - * @return acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. - * Default value: **false**. + * @return acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -398,8 +380,7 @@ public Boolean getAcceptsSelfSignedCertificate() { /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. * - * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. - * Default value: **false**. + * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -410,8 +391,7 @@ public void setAcceptsSelfSignedCertificate(Boolean acceptsSelfSignedCertificate /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. * - * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. - * Default value: **false**. + * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. Default value: **false**. * @return the current {@code Webhook} instance, allowing for method chaining */ public Webhook acceptsUntrustedRootCertificate(Boolean acceptsUntrustedRootCertificate) { @@ -421,9 +401,7 @@ public Webhook acceptsUntrustedRootCertificate(Boolean acceptsUntrustedRootCerti /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. - * - * @return acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. - * Default value: **false**. + * @return acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -434,8 +412,7 @@ public Boolean getAcceptsUntrustedRootCertificate() { /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. * - * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. - * Default value: **false**. + * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -456,7 +433,6 @@ public Webhook accountReference(String accountReference) { /** * Reference to the account the webook is set on. - * * @return accountReference Reference to the account the webook is set on. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_REFERENCE) @@ -477,11 +453,9 @@ public void setAccountReference(String accountReference) { } /** - * Indicates if the webhook configuration is active. The field must be **true** for you to receive - * webhooks about events related an account. + * Indicates if the webhook configuration is active. The field must be **true** for you to receive webhooks about events related an account. * - * @param active Indicates if the webhook configuration is active. The field must be **true** for - * you to receive webhooks about events related an account. + * @param active Indicates if the webhook configuration is active. The field must be **true** for you to receive webhooks about events related an account. * @return the current {@code Webhook} instance, allowing for method chaining */ public Webhook active(Boolean active) { @@ -490,11 +464,8 @@ public Webhook active(Boolean active) { } /** - * Indicates if the webhook configuration is active. The field must be **true** for you to receive - * webhooks about events related an account. - * - * @return active Indicates if the webhook configuration is active. The field must be **true** for - * you to receive webhooks about events related an account. + * Indicates if the webhook configuration is active. The field must be **true** for you to receive webhooks about events related an account. + * @return active Indicates if the webhook configuration is active. The field must be **true** for you to receive webhooks about events related an account. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -503,11 +474,9 @@ public Boolean getActive() { } /** - * Indicates if the webhook configuration is active. The field must be **true** for you to receive - * webhooks about events related an account. + * Indicates if the webhook configuration is active. The field must be **true** for you to receive webhooks about events related an account. * - * @param active Indicates if the webhook configuration is active. The field must be **true** for - * you to receive webhooks about events related an account. + * @param active Indicates if the webhook configuration is active. The field must be **true** for you to receive webhooks about events related an account. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -518,7 +487,7 @@ public void setActive(Boolean active) { /** * additionalSettings * - * @param additionalSettings + * @param additionalSettings * @return the current {@code Webhook} instance, allowing for method chaining */ public Webhook additionalSettings(AdditionalSettingsResponse additionalSettings) { @@ -528,8 +497,7 @@ public Webhook additionalSettings(AdditionalSettingsResponse additionalSettings) /** * Get additionalSettings - * - * @return additionalSettings + * @return additionalSettings */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -540,7 +508,7 @@ public AdditionalSettingsResponse getAdditionalSettings() { /** * additionalSettings * - * @param additionalSettings + * @param additionalSettings */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -549,11 +517,9 @@ public void setAdditionalSettings(AdditionalSettingsResponse additionalSettings) } /** - * The alias of our SSL certificate. When you receive a notification from us, the alias from the - * HMAC signature will match this alias. + * The alias of our SSL certificate. When you receive a notification from us, the alias from the HMAC signature will match this alias. * - * @param certificateAlias The alias of our SSL certificate. When you receive a notification from - * us, the alias from the HMAC signature will match this alias. + * @param certificateAlias The alias of our SSL certificate. When you receive a notification from us, the alias from the HMAC signature will match this alias. * @return the current {@code Webhook} instance, allowing for method chaining */ public Webhook certificateAlias(String certificateAlias) { @@ -562,11 +528,8 @@ public Webhook certificateAlias(String certificateAlias) { } /** - * The alias of our SSL certificate. When you receive a notification from us, the alias from the - * HMAC signature will match this alias. - * - * @return certificateAlias The alias of our SSL certificate. When you receive a notification from - * us, the alias from the HMAC signature will match this alias. + * The alias of our SSL certificate. When you receive a notification from us, the alias from the HMAC signature will match this alias. + * @return certificateAlias The alias of our SSL certificate. When you receive a notification from us, the alias from the HMAC signature will match this alias. */ @JsonProperty(JSON_PROPERTY_CERTIFICATE_ALIAS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -575,11 +538,9 @@ public String getCertificateAlias() { } /** - * The alias of our SSL certificate. When you receive a notification from us, the alias from the - * HMAC signature will match this alias. + * The alias of our SSL certificate. When you receive a notification from us, the alias from the HMAC signature will match this alias. * - * @param certificateAlias The alias of our SSL certificate. When you receive a notification from - * us, the alias from the HMAC signature will match this alias. + * @param certificateAlias The alias of our SSL certificate. When you receive a notification from us, the alias from the HMAC signature will match this alias. */ @JsonProperty(JSON_PROPERTY_CERTIFICATE_ALIAS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -588,10 +549,9 @@ public void setCertificateAlias(String certificateAlias) { } /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** * - * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * - * **soap** * **http** * **json** + * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** * @return the current {@code Webhook} instance, allowing for method chaining */ public Webhook communicationFormat(CommunicationFormatEnum communicationFormat) { @@ -600,10 +560,8 @@ public Webhook communicationFormat(CommunicationFormatEnum communicationFormat) } /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** - * - * @return communicationFormat Format or protocol for receiving webhooks. Possible values: * - * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * @return communicationFormat Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** */ @JsonProperty(JSON_PROPERTY_COMMUNICATION_FORMAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -612,10 +570,9 @@ public CommunicationFormatEnum getCommunicationFormat() { } /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** * - * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * - * **soap** * **http** * **json** + * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** */ @JsonProperty(JSON_PROPERTY_COMMUNICATION_FORMAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -636,7 +593,6 @@ public Webhook description(String description) { /** * Your description for this webhook configuration. - * * @return description Your description for this webhook configuration. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -657,14 +613,9 @@ public void setDescription(String description) { } /** - * SSL version to access the public webhook URL specified in the `url` field. Possible - * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not - * specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. * - * @param encryptionProtocol SSL version to access the public webhook URL specified in the - * `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only - * allowed on Test environment. If not specified, the webhook will use `sslVersion`: - * **TLSv1.2**. + * @param encryptionProtocol SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. * @return the current {@code Webhook} instance, allowing for method chaining */ public Webhook encryptionProtocol(EncryptionProtocolEnum encryptionProtocol) { @@ -673,14 +624,8 @@ public Webhook encryptionProtocol(EncryptionProtocolEnum encryptionProtocol) { } /** - * SSL version to access the public webhook URL specified in the `url` field. Possible - * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not - * specified, the webhook will use `sslVersion`: **TLSv1.2**. - * - * @return encryptionProtocol SSL version to access the public webhook URL specified in the - * `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only - * allowed on Test environment. If not specified, the webhook will use `sslVersion`: - * **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * @return encryptionProtocol SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. */ @JsonProperty(JSON_PROPERTY_ENCRYPTION_PROTOCOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -689,14 +634,9 @@ public EncryptionProtocolEnum getEncryptionProtocol() { } /** - * SSL version to access the public webhook URL specified in the `url` field. Possible - * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not - * specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. * - * @param encryptionProtocol SSL version to access the public webhook URL specified in the - * `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only - * allowed on Test environment. If not specified, the webhook will use `sslVersion`: - * **TLSv1.2**. + * @param encryptionProtocol SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. */ @JsonProperty(JSON_PROPERTY_ENCRYPTION_PROTOCOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -705,31 +645,19 @@ public void setEncryptionProtocol(EncryptionProtocolEnum encryptionProtocol) { } /** - * Shows how merchant accounts are included in company-level webhooks. Possible values: * - * **includeAccounts** * **excludeAccounts** * **allAccounts**: Includes all merchant accounts, - * and does not require specifying `filterMerchantAccounts`. + * Shows how merchant accounts are included in company-level webhooks. Possible values: * **includeAccounts** * **excludeAccounts** * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. * - * @param filterMerchantAccountType Shows how merchant accounts are included in company-level - * webhooks. Possible values: * **includeAccounts** * **excludeAccounts** * **allAccounts**: - * Includes all merchant accounts, and does not require specifying - * `filterMerchantAccounts`. + * @param filterMerchantAccountType Shows how merchant accounts are included in company-level webhooks. Possible values: * **includeAccounts** * **excludeAccounts** * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. * @return the current {@code Webhook} instance, allowing for method chaining */ - public Webhook filterMerchantAccountType( - FilterMerchantAccountTypeEnum filterMerchantAccountType) { + public Webhook filterMerchantAccountType(FilterMerchantAccountTypeEnum filterMerchantAccountType) { this.filterMerchantAccountType = filterMerchantAccountType; return this; } /** - * Shows how merchant accounts are included in company-level webhooks. Possible values: * - * **includeAccounts** * **excludeAccounts** * **allAccounts**: Includes all merchant accounts, - * and does not require specifying `filterMerchantAccounts`. - * - * @return filterMerchantAccountType Shows how merchant accounts are included in company-level - * webhooks. Possible values: * **includeAccounts** * **excludeAccounts** * **allAccounts**: - * Includes all merchant accounts, and does not require specifying - * `filterMerchantAccounts`. + * Shows how merchant accounts are included in company-level webhooks. Possible values: * **includeAccounts** * **excludeAccounts** * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. + * @return filterMerchantAccountType Shows how merchant accounts are included in company-level webhooks. Possible values: * **includeAccounts** * **excludeAccounts** * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. */ @JsonProperty(JSON_PROPERTY_FILTER_MERCHANT_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -738,33 +666,20 @@ public FilterMerchantAccountTypeEnum getFilterMerchantAccountType() { } /** - * Shows how merchant accounts are included in company-level webhooks. Possible values: * - * **includeAccounts** * **excludeAccounts** * **allAccounts**: Includes all merchant accounts, - * and does not require specifying `filterMerchantAccounts`. + * Shows how merchant accounts are included in company-level webhooks. Possible values: * **includeAccounts** * **excludeAccounts** * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. * - * @param filterMerchantAccountType Shows how merchant accounts are included in company-level - * webhooks. Possible values: * **includeAccounts** * **excludeAccounts** * **allAccounts**: - * Includes all merchant accounts, and does not require specifying - * `filterMerchantAccounts`. + * @param filterMerchantAccountType Shows how merchant accounts are included in company-level webhooks. Possible values: * **includeAccounts** * **excludeAccounts** * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. */ @JsonProperty(JSON_PROPERTY_FILTER_MERCHANT_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFilterMerchantAccountType( - FilterMerchantAccountTypeEnum filterMerchantAccountType) { + public void setFilterMerchantAccountType(FilterMerchantAccountTypeEnum filterMerchantAccountType) { this.filterMerchantAccountType = filterMerchantAccountType; } /** - * A list of merchant account names that are included or excluded from receiving the webhook. - * Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. - * Required if `filterMerchantAccountType` is either: * **includeAccounts** * - * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. + * A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. * - * @param filterMerchantAccounts A list of merchant account names that are included or excluded - * from receiving the webhook. Inclusion or exclusion is based on the value defined for - * `filterMerchantAccountType`. Required if `filterMerchantAccountType` is - * either: * **includeAccounts** * **excludeAccounts** Not needed for - * `filterMerchantAccountType`: **allAccounts**. + * @param filterMerchantAccounts A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. * @return the current {@code Webhook} instance, allowing for method chaining */ public Webhook filterMerchantAccounts(List filterMerchantAccounts) { @@ -781,16 +696,8 @@ public Webhook addFilterMerchantAccountsItem(String filterMerchantAccountsItem) } /** - * A list of merchant account names that are included or excluded from receiving the webhook. - * Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. - * Required if `filterMerchantAccountType` is either: * **includeAccounts** * - * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. - * - * @return filterMerchantAccounts A list of merchant account names that are included or excluded - * from receiving the webhook. Inclusion or exclusion is based on the value defined for - * `filterMerchantAccountType`. Required if `filterMerchantAccountType` is - * either: * **includeAccounts** * **excludeAccounts** Not needed for - * `filterMerchantAccountType`: **allAccounts**. + * A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. + * @return filterMerchantAccounts A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. */ @JsonProperty(JSON_PROPERTY_FILTER_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -799,16 +706,9 @@ public List getFilterMerchantAccounts() { } /** - * A list of merchant account names that are included or excluded from receiving the webhook. - * Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. - * Required if `filterMerchantAccountType` is either: * **includeAccounts** * - * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. + * A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. * - * @param filterMerchantAccounts A list of merchant account names that are included or excluded - * from receiving the webhook. Inclusion or exclusion is based on the value defined for - * `filterMerchantAccountType`. Required if `filterMerchantAccountType` is - * either: * **includeAccounts** * **excludeAccounts** Not needed for - * `filterMerchantAccountType`: **allAccounts**. + * @param filterMerchantAccounts A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. */ @JsonProperty(JSON_PROPERTY_FILTER_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -817,13 +717,9 @@ public void setFilterMerchantAccounts(List filterMerchantAccounts) { } /** - * Indicates if the webhook configuration has errors that need troubleshooting. If the value is - * **true**, troubleshoot the configuration using the [testing - * endpoint](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookid}/test). + * Indicates if the webhook configuration has errors that need troubleshooting. If the value is **true**, troubleshoot the configuration using the [testing endpoint](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookid}/test). * - * @param hasError Indicates if the webhook configuration has errors that need troubleshooting. If - * the value is **true**, troubleshoot the configuration using the [testing - * endpoint](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookid}/test). + * @param hasError Indicates if the webhook configuration has errors that need troubleshooting. If the value is **true**, troubleshoot the configuration using the [testing endpoint](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookid}/test). * @return the current {@code Webhook} instance, allowing for method chaining */ public Webhook hasError(Boolean hasError) { @@ -832,13 +728,8 @@ public Webhook hasError(Boolean hasError) { } /** - * Indicates if the webhook configuration has errors that need troubleshooting. If the value is - * **true**, troubleshoot the configuration using the [testing - * endpoint](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookid}/test). - * - * @return hasError Indicates if the webhook configuration has errors that need troubleshooting. - * If the value is **true**, troubleshoot the configuration using the [testing - * endpoint](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookid}/test). + * Indicates if the webhook configuration has errors that need troubleshooting. If the value is **true**, troubleshoot the configuration using the [testing endpoint](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookid}/test). + * @return hasError Indicates if the webhook configuration has errors that need troubleshooting. If the value is **true**, troubleshoot the configuration using the [testing endpoint](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookid}/test). */ @JsonProperty(JSON_PROPERTY_HAS_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -847,13 +738,9 @@ public Boolean getHasError() { } /** - * Indicates if the webhook configuration has errors that need troubleshooting. If the value is - * **true**, troubleshoot the configuration using the [testing - * endpoint](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookid}/test). + * Indicates if the webhook configuration has errors that need troubleshooting. If the value is **true**, troubleshoot the configuration using the [testing endpoint](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookid}/test). * - * @param hasError Indicates if the webhook configuration has errors that need troubleshooting. If - * the value is **true**, troubleshoot the configuration using the [testing - * endpoint](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookid}/test). + * @param hasError Indicates if the webhook configuration has errors that need troubleshooting. If the value is **true**, troubleshoot the configuration using the [testing endpoint](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookid}/test). */ @JsonProperty(JSON_PROPERTY_HAS_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -874,7 +761,6 @@ public Webhook hasPassword(Boolean hasPassword) { /** * Indicates if the webhook is password protected. - * * @return hasPassword Indicates if the webhook is password protected. */ @JsonProperty(JSON_PROPERTY_HAS_PASSWORD) @@ -895,13 +781,9 @@ public void setHasPassword(Boolean hasPassword) { } /** - * The [checksum](https://en.wikipedia.org/wiki/Key_checksum_value) of the HMAC key generated for - * this webhook. You can use this value to uniquely identify the HMAC key configured for this - * webhook. + * The [checksum](https://en.wikipedia.org/wiki/Key_checksum_value) of the HMAC key generated for this webhook. You can use this value to uniquely identify the HMAC key configured for this webhook. * - * @param hmacKeyCheckValue The [checksum](https://en.wikipedia.org/wiki/Key_checksum_value) of - * the HMAC key generated for this webhook. You can use this value to uniquely identify the - * HMAC key configured for this webhook. + * @param hmacKeyCheckValue The [checksum](https://en.wikipedia.org/wiki/Key_checksum_value) of the HMAC key generated for this webhook. You can use this value to uniquely identify the HMAC key configured for this webhook. * @return the current {@code Webhook} instance, allowing for method chaining */ public Webhook hmacKeyCheckValue(String hmacKeyCheckValue) { @@ -910,13 +792,8 @@ public Webhook hmacKeyCheckValue(String hmacKeyCheckValue) { } /** - * The [checksum](https://en.wikipedia.org/wiki/Key_checksum_value) of the HMAC key generated for - * this webhook. You can use this value to uniquely identify the HMAC key configured for this - * webhook. - * - * @return hmacKeyCheckValue The [checksum](https://en.wikipedia.org/wiki/Key_checksum_value) of - * the HMAC key generated for this webhook. You can use this value to uniquely identify the - * HMAC key configured for this webhook. + * The [checksum](https://en.wikipedia.org/wiki/Key_checksum_value) of the HMAC key generated for this webhook. You can use this value to uniquely identify the HMAC key configured for this webhook. + * @return hmacKeyCheckValue The [checksum](https://en.wikipedia.org/wiki/Key_checksum_value) of the HMAC key generated for this webhook. You can use this value to uniquely identify the HMAC key configured for this webhook. */ @JsonProperty(JSON_PROPERTY_HMAC_KEY_CHECK_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -925,13 +802,9 @@ public String getHmacKeyCheckValue() { } /** - * The [checksum](https://en.wikipedia.org/wiki/Key_checksum_value) of the HMAC key generated for - * this webhook. You can use this value to uniquely identify the HMAC key configured for this - * webhook. + * The [checksum](https://en.wikipedia.org/wiki/Key_checksum_value) of the HMAC key generated for this webhook. You can use this value to uniquely identify the HMAC key configured for this webhook. * - * @param hmacKeyCheckValue The [checksum](https://en.wikipedia.org/wiki/Key_checksum_value) of - * the HMAC key generated for this webhook. You can use this value to uniquely identify the - * HMAC key configured for this webhook. + * @param hmacKeyCheckValue The [checksum](https://en.wikipedia.org/wiki/Key_checksum_value) of the HMAC key generated for this webhook. You can use this value to uniquely identify the HMAC key configured for this webhook. */ @JsonProperty(JSON_PROPERTY_HMAC_KEY_CHECK_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -952,7 +825,6 @@ public Webhook id(String id) { /** * Unique identifier for this webhook. - * * @return id Unique identifier for this webhook. */ @JsonProperty(JSON_PROPERTY_ID) @@ -985,7 +857,6 @@ public Webhook networkType(NetworkTypeEnum networkType) { /** * Network type for Terminal API details webhooks. - * * @return networkType Network type for Terminal API details webhooks. */ @JsonProperty(JSON_PROPERTY_NETWORK_TYPE) @@ -1006,11 +877,9 @@ public void setNetworkType(NetworkTypeEnum networkType) { } /** - * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only - * applies if `communicationFormat`: **soap**. + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. * - * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. - * Default value: **false**. Only applies if `communicationFormat`: **soap**. + * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. * @return the current {@code Webhook} instance, allowing for method chaining */ public Webhook populateSoapActionHeader(Boolean populateSoapActionHeader) { @@ -1019,11 +888,8 @@ public Webhook populateSoapActionHeader(Boolean populateSoapActionHeader) { } /** - * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only - * applies if `communicationFormat`: **soap**. - * - * @return populateSoapActionHeader Indicates if the SOAP action header needs to be populated. - * Default value: **false**. Only applies if `communicationFormat`: **soap**. + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + * @return populateSoapActionHeader Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. */ @JsonProperty(JSON_PROPERTY_POPULATE_SOAP_ACTION_HEADER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1032,11 +898,9 @@ public Boolean getPopulateSoapActionHeader() { } /** - * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only - * applies if `communicationFormat`: **soap**. + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. * - * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. - * Default value: **false**. Only applies if `communicationFormat`: **soap**. + * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. */ @JsonProperty(JSON_PROPERTY_POPULATE_SOAP_ACTION_HEADER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1045,27 +909,9 @@ public void setPopulateSoapActionHeader(Boolean populateSoapActionHeader) { } /** - * The type of webhook. Possible values are: - **standard** - **account-settings-notification** - - * **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - * - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - * - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - - * **report-notification** - **terminal-api-notification** - **terminal-settings** - - * **terminal-boarding** Find out more about [standard - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and - * [other types of - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * The type of webhook. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **terminal-api-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). * - * @param type The type of webhook. Possible values are: - **standard** - - * **account-settings-notification** - **banktransfer-notification** - - * **boletobancario-notification** - **directdebit-notification** - - * **ach-notification-of-change-notification** - - * **direct-debit-notice-of-change-notification** - **pending-notification** - - * **ideal-notification** - **ideal-pending-notification** - **report-notification** - - * **terminal-api-notification** - **terminal-settings** - **terminal-boarding** Find out more - * about [standard - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) - * and [other types of - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * @param type The type of webhook. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **terminal-api-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). * @return the current {@code Webhook} instance, allowing for method chaining */ public Webhook type(String type) { @@ -1074,27 +920,8 @@ public Webhook type(String type) { } /** - * The type of webhook. Possible values are: - **standard** - **account-settings-notification** - - * **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - * - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - * - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - - * **report-notification** - **terminal-api-notification** - **terminal-settings** - - * **terminal-boarding** Find out more about [standard - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and - * [other types of - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). - * - * @return type The type of webhook. Possible values are: - **standard** - - * **account-settings-notification** - **banktransfer-notification** - - * **boletobancario-notification** - **directdebit-notification** - - * **ach-notification-of-change-notification** - - * **direct-debit-notice-of-change-notification** - **pending-notification** - - * **ideal-notification** - **ideal-pending-notification** - **report-notification** - - * **terminal-api-notification** - **terminal-settings** - **terminal-boarding** Find out more - * about [standard - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) - * and [other types of - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * The type of webhook. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **terminal-api-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * @return type The type of webhook. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **terminal-api-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1103,27 +930,9 @@ public String getType() { } /** - * The type of webhook. Possible values are: - **standard** - **account-settings-notification** - - * **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - * - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - * - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - - * **report-notification** - **terminal-api-notification** - **terminal-settings** - - * **terminal-boarding** Find out more about [standard - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and - * [other types of - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * The type of webhook. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **terminal-api-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). * - * @param type The type of webhook. Possible values are: - **standard** - - * **account-settings-notification** - **banktransfer-notification** - - * **boletobancario-notification** - **directdebit-notification** - - * **ach-notification-of-change-notification** - - * **direct-debit-notice-of-change-notification** - **pending-notification** - - * **ideal-notification** - **ideal-pending-notification** - **report-notification** - - * **terminal-api-notification** - **terminal-settings** - **terminal-boarding** Find out more - * about [standard - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) - * and [other types of - * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * @param type The type of webhook. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **terminal-api-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1132,11 +941,9 @@ public void setType(String type) { } /** - * Public URL where webhooks will be sent, for example - * **https://www.domain.com/webhook-endpoint**. + * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. * - * @param url Public URL where webhooks will be sent, for example - * **https://www.domain.com/webhook-endpoint**. + * @param url Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. * @return the current {@code Webhook} instance, allowing for method chaining */ public Webhook url(String url) { @@ -1145,11 +952,8 @@ public Webhook url(String url) { } /** - * Public URL where webhooks will be sent, for example - * **https://www.domain.com/webhook-endpoint**. - * - * @return url Public URL where webhooks will be sent, for example - * **https://www.domain.com/webhook-endpoint**. + * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + * @return url Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. */ @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1158,11 +962,9 @@ public String getUrl() { } /** - * Public URL where webhooks will be sent, for example - * **https://www.domain.com/webhook-endpoint**. + * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. * - * @param url Public URL where webhooks will be sent, for example - * **https://www.domain.com/webhook-endpoint**. + * @param url Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. */ @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1183,7 +985,6 @@ public Webhook username(String username) { /** * Username to access the webhook URL. - * * @return username Username to access the webhook URL. */ @JsonProperty(JSON_PROPERTY_USERNAME) @@ -1203,7 +1004,9 @@ public void setUsername(String username) { this.username = username; } - /** Return true if this Webhook object is equal to o. */ + /** + * Return true if this Webhook object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -1213,56 +1016,33 @@ public boolean equals(Object o) { return false; } Webhook webhook = (Webhook) o; - return Objects.equals(this.links, webhook.links) - && Objects.equals(this.acceptsExpiredCertificate, webhook.acceptsExpiredCertificate) - && Objects.equals(this.acceptsSelfSignedCertificate, webhook.acceptsSelfSignedCertificate) - && Objects.equals( - this.acceptsUntrustedRootCertificate, webhook.acceptsUntrustedRootCertificate) - && Objects.equals(this.accountReference, webhook.accountReference) - && Objects.equals(this.active, webhook.active) - && Objects.equals(this.additionalSettings, webhook.additionalSettings) - && Objects.equals(this.certificateAlias, webhook.certificateAlias) - && Objects.equals(this.communicationFormat, webhook.communicationFormat) - && Objects.equals(this.description, webhook.description) - && Objects.equals(this.encryptionProtocol, webhook.encryptionProtocol) - && Objects.equals(this.filterMerchantAccountType, webhook.filterMerchantAccountType) - && Objects.equals(this.filterMerchantAccounts, webhook.filterMerchantAccounts) - && Objects.equals(this.hasError, webhook.hasError) - && Objects.equals(this.hasPassword, webhook.hasPassword) - && Objects.equals(this.hmacKeyCheckValue, webhook.hmacKeyCheckValue) - && Objects.equals(this.id, webhook.id) - && Objects.equals(this.networkType, webhook.networkType) - && Objects.equals(this.populateSoapActionHeader, webhook.populateSoapActionHeader) - && Objects.equals(this.type, webhook.type) - && Objects.equals(this.url, webhook.url) - && Objects.equals(this.username, webhook.username); + return Objects.equals(this.links, webhook.links) && + Objects.equals(this.acceptsExpiredCertificate, webhook.acceptsExpiredCertificate) && + Objects.equals(this.acceptsSelfSignedCertificate, webhook.acceptsSelfSignedCertificate) && + Objects.equals(this.acceptsUntrustedRootCertificate, webhook.acceptsUntrustedRootCertificate) && + Objects.equals(this.accountReference, webhook.accountReference) && + Objects.equals(this.active, webhook.active) && + Objects.equals(this.additionalSettings, webhook.additionalSettings) && + Objects.equals(this.certificateAlias, webhook.certificateAlias) && + Objects.equals(this.communicationFormat, webhook.communicationFormat) && + Objects.equals(this.description, webhook.description) && + Objects.equals(this.encryptionProtocol, webhook.encryptionProtocol) && + Objects.equals(this.filterMerchantAccountType, webhook.filterMerchantAccountType) && + Objects.equals(this.filterMerchantAccounts, webhook.filterMerchantAccounts) && + Objects.equals(this.hasError, webhook.hasError) && + Objects.equals(this.hasPassword, webhook.hasPassword) && + Objects.equals(this.hmacKeyCheckValue, webhook.hmacKeyCheckValue) && + Objects.equals(this.id, webhook.id) && + Objects.equals(this.networkType, webhook.networkType) && + Objects.equals(this.populateSoapActionHeader, webhook.populateSoapActionHeader) && + Objects.equals(this.type, webhook.type) && + Objects.equals(this.url, webhook.url) && + Objects.equals(this.username, webhook.username); } @Override public int hashCode() { - return Objects.hash( - links, - acceptsExpiredCertificate, - acceptsSelfSignedCertificate, - acceptsUntrustedRootCertificate, - accountReference, - active, - additionalSettings, - certificateAlias, - communicationFormat, - description, - encryptionProtocol, - filterMerchantAccountType, - filterMerchantAccounts, - hasError, - hasPassword, - hmacKeyCheckValue, - id, - networkType, - populateSoapActionHeader, - type, - url, - username); + return Objects.hash(links, acceptsExpiredCertificate, acceptsSelfSignedCertificate, acceptsUntrustedRootCertificate, accountReference, active, additionalSettings, certificateAlias, communicationFormat, description, encryptionProtocol, filterMerchantAccountType, filterMerchantAccounts, hasError, hasPassword, hmacKeyCheckValue, id, networkType, populateSoapActionHeader, type, url, username); } @Override @@ -1270,38 +1050,24 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Webhook {\n"); sb.append(" links: ").append(toIndentedString(links)).append("\n"); - sb.append(" acceptsExpiredCertificate: ") - .append(toIndentedString(acceptsExpiredCertificate)) - .append("\n"); - sb.append(" acceptsSelfSignedCertificate: ") - .append(toIndentedString(acceptsSelfSignedCertificate)) - .append("\n"); - sb.append(" acceptsUntrustedRootCertificate: ") - .append(toIndentedString(acceptsUntrustedRootCertificate)) - .append("\n"); + sb.append(" acceptsExpiredCertificate: ").append(toIndentedString(acceptsExpiredCertificate)).append("\n"); + sb.append(" acceptsSelfSignedCertificate: ").append(toIndentedString(acceptsSelfSignedCertificate)).append("\n"); + sb.append(" acceptsUntrustedRootCertificate: ").append(toIndentedString(acceptsUntrustedRootCertificate)).append("\n"); sb.append(" accountReference: ").append(toIndentedString(accountReference)).append("\n"); sb.append(" active: ").append(toIndentedString(active)).append("\n"); sb.append(" additionalSettings: ").append(toIndentedString(additionalSettings)).append("\n"); sb.append(" certificateAlias: ").append(toIndentedString(certificateAlias)).append("\n"); - sb.append(" communicationFormat: ") - .append(toIndentedString(communicationFormat)) - .append("\n"); + sb.append(" communicationFormat: ").append(toIndentedString(communicationFormat)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" encryptionProtocol: ").append(toIndentedString(encryptionProtocol)).append("\n"); - sb.append(" filterMerchantAccountType: ") - .append(toIndentedString(filterMerchantAccountType)) - .append("\n"); - sb.append(" filterMerchantAccounts: ") - .append(toIndentedString(filterMerchantAccounts)) - .append("\n"); + sb.append(" filterMerchantAccountType: ").append(toIndentedString(filterMerchantAccountType)).append("\n"); + sb.append(" filterMerchantAccounts: ").append(toIndentedString(filterMerchantAccounts)).append("\n"); sb.append(" hasError: ").append(toIndentedString(hasError)).append("\n"); sb.append(" hasPassword: ").append(toIndentedString(hasPassword)).append("\n"); sb.append(" hmacKeyCheckValue: ").append(toIndentedString(hmacKeyCheckValue)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" networkType: ").append(toIndentedString(networkType)).append("\n"); - sb.append(" populateSoapActionHeader: ") - .append(toIndentedString(populateSoapActionHeader)) - .append("\n"); + sb.append(" populateSoapActionHeader: ").append(toIndentedString(populateSoapActionHeader)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" username: ").append(toIndentedString(username)).append("\n"); @@ -1310,7 +1076,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1319,7 +1086,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Webhook given an JSON string * * @param jsonString JSON string @@ -1329,12 +1096,11 @@ private String toIndentedString(Object o) { public static Webhook fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Webhook.class); } - - /** - * Convert an instance of Webhook to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Webhook to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/WebhookLinks.java b/src/main/java/com/adyen/model/management/WebhookLinks.java index fd7d6997b..b73f742af 100644 --- a/src/main/java/com/adyen/model/management/WebhookLinks.java +++ b/src/main/java/com/adyen/model/management/WebhookLinks.java @@ -2,22 +2,32 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.LinksElement; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** WebhookLinks */ + +/** + * WebhookLinks + */ @JsonPropertyOrder({ WebhookLinks.JSON_PROPERTY_COMPANY, WebhookLinks.JSON_PROPERTY_GENERATE_HMAC, @@ -25,6 +35,7 @@ WebhookLinks.JSON_PROPERTY_SELF, WebhookLinks.JSON_PROPERTY_TEST_WEBHOOK }) + public class WebhookLinks { public static final String JSON_PROPERTY_COMPANY = "company"; private LinksElement company; @@ -41,12 +52,13 @@ public class WebhookLinks { public static final String JSON_PROPERTY_TEST_WEBHOOK = "testWebhook"; private LinksElement testWebhook; - public WebhookLinks() {} + public WebhookLinks() { + } /** * company * - * @param company + * @param company * @return the current {@code WebhookLinks} instance, allowing for method chaining */ public WebhookLinks company(LinksElement company) { @@ -56,8 +68,7 @@ public WebhookLinks company(LinksElement company) { /** * Get company - * - * @return company + * @return company */ @JsonProperty(JSON_PROPERTY_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,7 +79,7 @@ public LinksElement getCompany() { /** * company * - * @param company + * @param company */ @JsonProperty(JSON_PROPERTY_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,7 +90,7 @@ public void setCompany(LinksElement company) { /** * generateHmac * - * @param generateHmac + * @param generateHmac * @return the current {@code WebhookLinks} instance, allowing for method chaining */ public WebhookLinks generateHmac(LinksElement generateHmac) { @@ -89,8 +100,7 @@ public WebhookLinks generateHmac(LinksElement generateHmac) { /** * Get generateHmac - * - * @return generateHmac + * @return generateHmac */ @JsonProperty(JSON_PROPERTY_GENERATE_HMAC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,7 +111,7 @@ public LinksElement getGenerateHmac() { /** * generateHmac * - * @param generateHmac + * @param generateHmac */ @JsonProperty(JSON_PROPERTY_GENERATE_HMAC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,7 +122,7 @@ public void setGenerateHmac(LinksElement generateHmac) { /** * merchant * - * @param merchant + * @param merchant * @return the current {@code WebhookLinks} instance, allowing for method chaining */ public WebhookLinks merchant(LinksElement merchant) { @@ -122,8 +132,7 @@ public WebhookLinks merchant(LinksElement merchant) { /** * Get merchant - * - * @return merchant + * @return merchant */ @JsonProperty(JSON_PROPERTY_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -134,7 +143,7 @@ public LinksElement getMerchant() { /** * merchant * - * @param merchant + * @param merchant */ @JsonProperty(JSON_PROPERTY_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,7 +154,7 @@ public void setMerchant(LinksElement merchant) { /** * self * - * @param self + * @param self * @return the current {@code WebhookLinks} instance, allowing for method chaining */ public WebhookLinks self(LinksElement self) { @@ -155,8 +164,7 @@ public WebhookLinks self(LinksElement self) { /** * Get self - * - * @return self + * @return self */ @JsonProperty(JSON_PROPERTY_SELF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,7 +175,7 @@ public LinksElement getSelf() { /** * self * - * @param self + * @param self */ @JsonProperty(JSON_PROPERTY_SELF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,7 +186,7 @@ public void setSelf(LinksElement self) { /** * testWebhook * - * @param testWebhook + * @param testWebhook * @return the current {@code WebhookLinks} instance, allowing for method chaining */ public WebhookLinks testWebhook(LinksElement testWebhook) { @@ -188,8 +196,7 @@ public WebhookLinks testWebhook(LinksElement testWebhook) { /** * Get testWebhook - * - * @return testWebhook + * @return testWebhook */ @JsonProperty(JSON_PROPERTY_TEST_WEBHOOK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,7 +207,7 @@ public LinksElement getTestWebhook() { /** * testWebhook * - * @param testWebhook + * @param testWebhook */ @JsonProperty(JSON_PROPERTY_TEST_WEBHOOK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,7 +215,9 @@ public void setTestWebhook(LinksElement testWebhook) { this.testWebhook = testWebhook; } - /** Return true if this WebhookLinks object is equal to o. */ + /** + * Return true if this WebhookLinks object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -218,11 +227,11 @@ public boolean equals(Object o) { return false; } WebhookLinks webhookLinks = (WebhookLinks) o; - return Objects.equals(this.company, webhookLinks.company) - && Objects.equals(this.generateHmac, webhookLinks.generateHmac) - && Objects.equals(this.merchant, webhookLinks.merchant) - && Objects.equals(this.self, webhookLinks.self) - && Objects.equals(this.testWebhook, webhookLinks.testWebhook); + return Objects.equals(this.company, webhookLinks.company) && + Objects.equals(this.generateHmac, webhookLinks.generateHmac) && + Objects.equals(this.merchant, webhookLinks.merchant) && + Objects.equals(this.self, webhookLinks.self) && + Objects.equals(this.testWebhook, webhookLinks.testWebhook); } @Override @@ -244,7 +253,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -253,7 +263,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of WebhookLinks given an JSON string * * @param jsonString JSON string @@ -263,12 +273,11 @@ private String toIndentedString(Object o) { public static WebhookLinks fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, WebhookLinks.class); } - - /** - * Convert an instance of WebhookLinks to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of WebhookLinks to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/WifiProfiles.java b/src/main/java/com/adyen/model/management/WifiProfiles.java index 195e6c240..2e064b7db 100644 --- a/src/main/java/com/adyen/model/management/WifiProfiles.java +++ b/src/main/java/com/adyen/model/management/WifiProfiles.java @@ -2,25 +2,40 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.management; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.management.Profile; +import com.adyen.model.management.Settings; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * WifiProfiles + */ +@JsonPropertyOrder({ + WifiProfiles.JSON_PROPERTY_PROFILES, + WifiProfiles.JSON_PROPERTY_SETTINGS +}) -/** WifiProfiles */ -@JsonPropertyOrder({WifiProfiles.JSON_PROPERTY_PROFILES, WifiProfiles.JSON_PROPERTY_SETTINGS}) public class WifiProfiles { public static final String JSON_PROPERTY_PROFILES = "profiles"; private List profiles; @@ -28,7 +43,8 @@ public class WifiProfiles { public static final String JSON_PROPERTY_SETTINGS = "settings"; private Settings settings; - public WifiProfiles() {} + public WifiProfiles() { + } /** * List of remote Wi-Fi profiles. @@ -51,7 +67,6 @@ public WifiProfiles addProfilesItem(Profile profilesItem) { /** * List of remote Wi-Fi profiles. - * * @return profiles List of remote Wi-Fi profiles. */ @JsonProperty(JSON_PROPERTY_PROFILES) @@ -74,7 +89,7 @@ public void setProfiles(List profiles) { /** * settings * - * @param settings + * @param settings * @return the current {@code WifiProfiles} instance, allowing for method chaining */ public WifiProfiles settings(Settings settings) { @@ -84,8 +99,7 @@ public WifiProfiles settings(Settings settings) { /** * Get settings - * - * @return settings + * @return settings */ @JsonProperty(JSON_PROPERTY_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,7 +110,7 @@ public Settings getSettings() { /** * settings * - * @param settings + * @param settings */ @JsonProperty(JSON_PROPERTY_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,7 +118,9 @@ public void setSettings(Settings settings) { this.settings = settings; } - /** Return true if this WifiProfiles object is equal to o. */ + /** + * Return true if this WifiProfiles object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -114,8 +130,8 @@ public boolean equals(Object o) { return false; } WifiProfiles wifiProfiles = (WifiProfiles) o; - return Objects.equals(this.profiles, wifiProfiles.profiles) - && Objects.equals(this.settings, wifiProfiles.settings); + return Objects.equals(this.profiles, wifiProfiles.profiles) && + Objects.equals(this.settings, wifiProfiles.settings); } @Override @@ -134,7 +150,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -143,7 +160,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of WifiProfiles given an JSON string * * @param jsonString JSON string @@ -153,12 +170,11 @@ private String toIndentedString(Object o) { public static WifiProfiles fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, WifiProfiles.class); } - - /** - * Convert an instance of WifiProfiles to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of WifiProfiles to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/managementwebhooks/AbstractOpenApiSchema.java index afb8c9764..a786a362c 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/managementwebhooks/AbstractOpenApiSchema.java @@ -2,141 +2,145 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.managementwebhooks; -import com.fasterxml.jackson.annotation.JsonValue; -import jakarta.ws.rs.core.GenericType; -import java.util.Map; import java.util.Objects; +import java.util.Map; +import jakarta.ws.rs.core.GenericType; -/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec + */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() { - return instance; - } - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) { - this.instance = instance; - } - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf - * schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); - } else { - return object.getActualInstance(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() {return instance;} + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) {this.instance = instance;} + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); + } else { + return object.getActualInstance(); + } + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) && + Objects.equals(this.isNullable, a.isNullable) && + Objects.equals(this.schemaType, a.schemaType); } - return o.toString().replace("\n", "\n "); - } - public boolean equals(Object o) { - if (this == o) { - return true; + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); } - if (o == null || getClass() != o.getClass()) { - return false; + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) - && Objects.equals(this.isNullable, a.isNullable) - && Objects.equals(this.schemaType, a.schemaType); - } - - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); - } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); - } -} + + + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/managementwebhooks/AccountCapabilityData.java b/src/main/java/com/adyen/model/managementwebhooks/AccountCapabilityData.java index d26a45383..0b1552120 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/AccountCapabilityData.java +++ b/src/main/java/com/adyen/model/managementwebhooks/AccountCapabilityData.java @@ -2,25 +2,35 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.managementwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.managementwebhooks.CapabilityProblem; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; -import java.util.*; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** AccountCapabilityData */ +/** + * AccountCapabilityData + */ @JsonPropertyOrder({ AccountCapabilityData.JSON_PROPERTY_ALLOWED, AccountCapabilityData.JSON_PROPERTY_ALLOWED_LEVEL, @@ -31,6 +41,7 @@ AccountCapabilityData.JSON_PROPERTY_VERIFICATION_DEADLINE, AccountCapabilityData.JSON_PROPERTY_VERIFICATION_STATUS }) + public class AccountCapabilityData { public static final String JSON_PROPERTY_ALLOWED = "allowed"; private Boolean allowed; @@ -56,14 +67,13 @@ public class AccountCapabilityData { public static final String JSON_PROPERTY_VERIFICATION_STATUS = "verificationStatus"; private String verificationStatus; - public AccountCapabilityData() {} + public AccountCapabilityData() { + } /** - * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is - * successful. + * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful. * - * @param allowed Indicates whether the capability is allowed. Adyen sets this to **true** if the - * verification is successful. + * @param allowed Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful. * @return the current {@code AccountCapabilityData} instance, allowing for method chaining */ public AccountCapabilityData allowed(Boolean allowed) { @@ -72,11 +82,8 @@ public AccountCapabilityData allowed(Boolean allowed) { } /** - * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is - * successful. - * - * @return allowed Indicates whether the capability is allowed. Adyen sets this to **true** if the - * verification is successful. + * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful. + * @return allowed Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful. */ @JsonProperty(JSON_PROPERTY_ALLOWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -85,11 +92,9 @@ public Boolean getAllowed() { } /** - * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is - * successful. + * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful. * - * @param allowed Indicates whether the capability is allowed. Adyen sets this to **true** if the - * verification is successful. + * @param allowed Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful. */ @JsonProperty(JSON_PROPERTY_ALLOWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -98,13 +103,9 @@ public void setAllowed(Boolean allowed) { } /** - * The allowed level of the capability. Some capabilities have different levels which correspond - * to thresholds. Higher levels may require additional checks and increased monitoring.Possible - * values: **notApplicable**, **low**, **medium**, **high**. + * The allowed level of the capability. Some capabilities have different levels which correspond to thresholds. Higher levels may require additional checks and increased monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. * - * @param allowedLevel The allowed level of the capability. Some capabilities have different - * levels which correspond to thresholds. Higher levels may require additional checks and - * increased monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. + * @param allowedLevel The allowed level of the capability. Some capabilities have different levels which correspond to thresholds. Higher levels may require additional checks and increased monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. * @return the current {@code AccountCapabilityData} instance, allowing for method chaining */ public AccountCapabilityData allowedLevel(String allowedLevel) { @@ -113,13 +114,8 @@ public AccountCapabilityData allowedLevel(String allowedLevel) { } /** - * The allowed level of the capability. Some capabilities have different levels which correspond - * to thresholds. Higher levels may require additional checks and increased monitoring.Possible - * values: **notApplicable**, **low**, **medium**, **high**. - * - * @return allowedLevel The allowed level of the capability. Some capabilities have different - * levels which correspond to thresholds. Higher levels may require additional checks and - * increased monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. + * The allowed level of the capability. Some capabilities have different levels which correspond to thresholds. Higher levels may require additional checks and increased monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. + * @return allowedLevel The allowed level of the capability. Some capabilities have different levels which correspond to thresholds. Higher levels may require additional checks and increased monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. */ @JsonProperty(JSON_PROPERTY_ALLOWED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,13 +124,9 @@ public String getAllowedLevel() { } /** - * The allowed level of the capability. Some capabilities have different levels which correspond - * to thresholds. Higher levels may require additional checks and increased monitoring.Possible - * values: **notApplicable**, **low**, **medium**, **high**. + * The allowed level of the capability. Some capabilities have different levels which correspond to thresholds. Higher levels may require additional checks and increased monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. * - * @param allowedLevel The allowed level of the capability. Some capabilities have different - * levels which correspond to thresholds. Higher levels may require additional checks and - * increased monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. + * @param allowedLevel The allowed level of the capability. Some capabilities have different levels which correspond to thresholds. Higher levels may require additional checks and increased monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. */ @JsonProperty(JSON_PROPERTY_ALLOWED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -155,7 +147,6 @@ public AccountCapabilityData capability(String capability) { /** * The name of the capability. For example, **sendToTransferInstrument**. - * * @return capability The name of the capability. For example, **sendToTransferInstrument**. */ @JsonProperty(JSON_PROPERTY_CAPABILITY) @@ -176,11 +167,9 @@ public void setCapability(String capability) { } /** - * List of entities that has problems with verification. The information includes the details of - * the errors and the actions that you can take to resolve them. + * List of entities that has problems with verification. The information includes the details of the errors and the actions that you can take to resolve them. * - * @param problems List of entities that has problems with verification. The information includes - * the details of the errors and the actions that you can take to resolve them. + * @param problems List of entities that has problems with verification. The information includes the details of the errors and the actions that you can take to resolve them. * @return the current {@code AccountCapabilityData} instance, allowing for method chaining */ public AccountCapabilityData problems(List problems) { @@ -197,11 +186,8 @@ public AccountCapabilityData addProblemsItem(CapabilityProblem problemsItem) { } /** - * List of entities that has problems with verification. The information includes the details of - * the errors and the actions that you can take to resolve them. - * - * @return problems List of entities that has problems with verification. The information includes - * the details of the errors and the actions that you can take to resolve them. + * List of entities that has problems with verification. The information includes the details of the errors and the actions that you can take to resolve them. + * @return problems List of entities that has problems with verification. The information includes the details of the errors and the actions that you can take to resolve them. */ @JsonProperty(JSON_PROPERTY_PROBLEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -210,11 +196,9 @@ public List getProblems() { } /** - * List of entities that has problems with verification. The information includes the details of - * the errors and the actions that you can take to resolve them. + * List of entities that has problems with verification. The information includes the details of the errors and the actions that you can take to resolve them. * - * @param problems List of entities that has problems with verification. The information includes - * the details of the errors and the actions that you can take to resolve them. + * @param problems List of entities that has problems with verification. The information includes the details of the errors and the actions that you can take to resolve them. */ @JsonProperty(JSON_PROPERTY_PROBLEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -235,7 +219,6 @@ public AccountCapabilityData requested(Boolean requested) { /** * Indicates whether you requested the capability. - * * @return requested Indicates whether you requested the capability. */ @JsonProperty(JSON_PROPERTY_REQUESTED) @@ -256,14 +239,9 @@ public void setRequested(Boolean requested) { } /** - * The level that you requested for the capability. Some capabilities have different levels which - * correspond to thresholds. Higher levels may require additional checks and increased - * monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. + * The level that you requested for the capability. Some capabilities have different levels which correspond to thresholds. Higher levels may require additional checks and increased monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. * - * @param requestedLevel The level that you requested for the capability. Some capabilities have - * different levels which correspond to thresholds. Higher levels may require additional - * checks and increased monitoring.Possible values: **notApplicable**, **low**, **medium**, - * **high**. + * @param requestedLevel The level that you requested for the capability. Some capabilities have different levels which correspond to thresholds. Higher levels may require additional checks and increased monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. * @return the current {@code AccountCapabilityData} instance, allowing for method chaining */ public AccountCapabilityData requestedLevel(String requestedLevel) { @@ -272,14 +250,8 @@ public AccountCapabilityData requestedLevel(String requestedLevel) { } /** - * The level that you requested for the capability. Some capabilities have different levels which - * correspond to thresholds. Higher levels may require additional checks and increased - * monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. - * - * @return requestedLevel The level that you requested for the capability. Some capabilities have - * different levels which correspond to thresholds. Higher levels may require additional - * checks and increased monitoring.Possible values: **notApplicable**, **low**, **medium**, - * **high**. + * The level that you requested for the capability. Some capabilities have different levels which correspond to thresholds. Higher levels may require additional checks and increased monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. + * @return requestedLevel The level that you requested for the capability. Some capabilities have different levels which correspond to thresholds. Higher levels may require additional checks and increased monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. */ @JsonProperty(JSON_PROPERTY_REQUESTED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -288,14 +260,9 @@ public String getRequestedLevel() { } /** - * The level that you requested for the capability. Some capabilities have different levels which - * correspond to thresholds. Higher levels may require additional checks and increased - * monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. + * The level that you requested for the capability. Some capabilities have different levels which correspond to thresholds. Higher levels may require additional checks and increased monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. * - * @param requestedLevel The level that you requested for the capability. Some capabilities have - * different levels which correspond to thresholds. Higher levels may require additional - * checks and increased monitoring.Possible values: **notApplicable**, **low**, **medium**, - * **high**. + * @param requestedLevel The level that you requested for the capability. Some capabilities have different levels which correspond to thresholds. Higher levels may require additional checks and increased monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. */ @JsonProperty(JSON_PROPERTY_REQUESTED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -304,11 +271,9 @@ public void setRequestedLevel(String requestedLevel) { } /** - * The verification deadline for the capability that will be disallowed if verification errors are - * not resolved. + * The verification deadline for the capability that will be disallowed if verification errors are not resolved. * - * @param verificationDeadline The verification deadline for the capability that will be - * disallowed if verification errors are not resolved. + * @param verificationDeadline The verification deadline for the capability that will be disallowed if verification errors are not resolved. * @return the current {@code AccountCapabilityData} instance, allowing for method chaining */ public AccountCapabilityData verificationDeadline(OffsetDateTime verificationDeadline) { @@ -317,11 +282,8 @@ public AccountCapabilityData verificationDeadline(OffsetDateTime verificationDea } /** - * The verification deadline for the capability that will be disallowed if verification errors are - * not resolved. - * - * @return verificationDeadline The verification deadline for the capability that will be - * disallowed if verification errors are not resolved. + * The verification deadline for the capability that will be disallowed if verification errors are not resolved. + * @return verificationDeadline The verification deadline for the capability that will be disallowed if verification errors are not resolved. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_DEADLINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -330,11 +292,9 @@ public OffsetDateTime getVerificationDeadline() { } /** - * The verification deadline for the capability that will be disallowed if verification errors are - * not resolved. + * The verification deadline for the capability that will be disallowed if verification errors are not resolved. * - * @param verificationDeadline The verification deadline for the capability that will be - * disallowed if verification errors are not resolved. + * @param verificationDeadline The verification deadline for the capability that will be disallowed if verification errors are not resolved. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_DEADLINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -343,17 +303,9 @@ public void setVerificationDeadline(OffsetDateTime verificationDeadline) { } /** - * The status of the verification checks for the capability. Possible values: * **pending**: Adyen - * is running the verification. * **invalid**: The verification failed. Check if the - * `errors` array contains more information. * **valid**: The verification was - * successful. * **rejected**: Adyen checked the information and found reasons to not allow the - * capability. + * The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification was successful. * **rejected**: Adyen checked the information and found reasons to not allow the capability. * - * @param verificationStatus The status of the verification checks for the capability. Possible - * values: * **pending**: Adyen is running the verification. * **invalid**: The verification - * failed. Check if the `errors` array contains more information. * **valid**: The - * verification was successful. * **rejected**: Adyen checked the information and found - * reasons to not allow the capability. + * @param verificationStatus The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification was successful. * **rejected**: Adyen checked the information and found reasons to not allow the capability. * @return the current {@code AccountCapabilityData} instance, allowing for method chaining */ public AccountCapabilityData verificationStatus(String verificationStatus) { @@ -362,17 +314,8 @@ public AccountCapabilityData verificationStatus(String verificationStatus) { } /** - * The status of the verification checks for the capability. Possible values: * **pending**: Adyen - * is running the verification. * **invalid**: The verification failed. Check if the - * `errors` array contains more information. * **valid**: The verification was - * successful. * **rejected**: Adyen checked the information and found reasons to not allow the - * capability. - * - * @return verificationStatus The status of the verification checks for the capability. Possible - * values: * **pending**: Adyen is running the verification. * **invalid**: The verification - * failed. Check if the `errors` array contains more information. * **valid**: The - * verification was successful. * **rejected**: Adyen checked the information and found - * reasons to not allow the capability. + * The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification was successful. * **rejected**: Adyen checked the information and found reasons to not allow the capability. + * @return verificationStatus The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification was successful. * **rejected**: Adyen checked the information and found reasons to not allow the capability. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -381,17 +324,9 @@ public String getVerificationStatus() { } /** - * The status of the verification checks for the capability. Possible values: * **pending**: Adyen - * is running the verification. * **invalid**: The verification failed. Check if the - * `errors` array contains more information. * **valid**: The verification was - * successful. * **rejected**: Adyen checked the information and found reasons to not allow the - * capability. + * The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification was successful. * **rejected**: Adyen checked the information and found reasons to not allow the capability. * - * @param verificationStatus The status of the verification checks for the capability. Possible - * values: * **pending**: Adyen is running the verification. * **invalid**: The verification - * failed. Check if the `errors` array contains more information. * **valid**: The - * verification was successful. * **rejected**: Adyen checked the information and found - * reasons to not allow the capability. + * @param verificationStatus The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification was successful. * **rejected**: Adyen checked the information and found reasons to not allow the capability. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -399,7 +334,9 @@ public void setVerificationStatus(String verificationStatus) { this.verificationStatus = verificationStatus; } - /** Return true if this AccountCapabilityData object is equal to o. */ + /** + * Return true if this AccountCapabilityData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -409,27 +346,19 @@ public boolean equals(Object o) { return false; } AccountCapabilityData accountCapabilityData = (AccountCapabilityData) o; - return Objects.equals(this.allowed, accountCapabilityData.allowed) - && Objects.equals(this.allowedLevel, accountCapabilityData.allowedLevel) - && Objects.equals(this.capability, accountCapabilityData.capability) - && Objects.equals(this.problems, accountCapabilityData.problems) - && Objects.equals(this.requested, accountCapabilityData.requested) - && Objects.equals(this.requestedLevel, accountCapabilityData.requestedLevel) - && Objects.equals(this.verificationDeadline, accountCapabilityData.verificationDeadline) - && Objects.equals(this.verificationStatus, accountCapabilityData.verificationStatus); + return Objects.equals(this.allowed, accountCapabilityData.allowed) && + Objects.equals(this.allowedLevel, accountCapabilityData.allowedLevel) && + Objects.equals(this.capability, accountCapabilityData.capability) && + Objects.equals(this.problems, accountCapabilityData.problems) && + Objects.equals(this.requested, accountCapabilityData.requested) && + Objects.equals(this.requestedLevel, accountCapabilityData.requestedLevel) && + Objects.equals(this.verificationDeadline, accountCapabilityData.verificationDeadline) && + Objects.equals(this.verificationStatus, accountCapabilityData.verificationStatus); } @Override public int hashCode() { - return Objects.hash( - allowed, - allowedLevel, - capability, - problems, - requested, - requestedLevel, - verificationDeadline, - verificationStatus); + return Objects.hash(allowed, allowedLevel, capability, problems, requested, requestedLevel, verificationDeadline, verificationStatus); } @Override @@ -442,16 +371,15 @@ public String toString() { sb.append(" problems: ").append(toIndentedString(problems)).append("\n"); sb.append(" requested: ").append(toIndentedString(requested)).append("\n"); sb.append(" requestedLevel: ").append(toIndentedString(requestedLevel)).append("\n"); - sb.append(" verificationDeadline: ") - .append(toIndentedString(verificationDeadline)) - .append("\n"); + sb.append(" verificationDeadline: ").append(toIndentedString(verificationDeadline)).append("\n"); sb.append(" verificationStatus: ").append(toIndentedString(verificationStatus)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -460,23 +388,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AccountCapabilityData given an JSON string * * @param jsonString JSON string * @return An instance of AccountCapabilityData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AccountCapabilityData + * @throws JsonProcessingException if the JSON string is invalid with respect to AccountCapabilityData */ public static AccountCapabilityData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountCapabilityData.class); } - - /** - * Convert an instance of AccountCapabilityData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AccountCapabilityData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/AccountCreateNotificationData.java b/src/main/java/com/adyen/model/managementwebhooks/AccountCreateNotificationData.java index d6a12689c..cf605e190 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/AccountCreateNotificationData.java +++ b/src/main/java/com/adyen/model/managementwebhooks/AccountCreateNotificationData.java @@ -2,24 +2,34 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.managementwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.managementwebhooks.AccountCapabilityData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** AccountCreateNotificationData */ +/** + * AccountCreateNotificationData + */ @JsonPropertyOrder({ AccountCreateNotificationData.JSON_PROPERTY_CAPABILITIES, AccountCreateNotificationData.JSON_PROPERTY_COMPANY_ID, @@ -27,6 +37,7 @@ AccountCreateNotificationData.JSON_PROPERTY_MERCHANT_ID, AccountCreateNotificationData.JSON_PROPERTY_STATUS }) + public class AccountCreateNotificationData { public static final String JSON_PROPERTY_CAPABILITIES = "capabilities"; private Map capabilities; @@ -43,29 +54,21 @@ public class AccountCreateNotificationData { public static final String JSON_PROPERTY_STATUS = "status"; private String status; - public AccountCreateNotificationData() {} + public AccountCreateNotificationData() { + } /** - * Key-value pairs that specify the actions that the merchant account can do and its settings. The - * key is a capability. For example, the **sendToTransferInstrument** is the capability required - * before you can pay out funds to the bank account. The value is an object containing the - * settings for the capability. + * Key-value pairs that specify the actions that the merchant account can do and its settings. The key is a capability. For example, the **sendToTransferInstrument** is the capability required before you can pay out funds to the bank account. The value is an object containing the settings for the capability. * - * @param capabilities Key-value pairs that specify the actions that the merchant account can do - * and its settings. The key is a capability. For example, the **sendToTransferInstrument** is - * the capability required before you can pay out funds to the bank account. The value is an - * object containing the settings for the capability. - * @return the current {@code AccountCreateNotificationData} instance, allowing for method - * chaining + * @param capabilities Key-value pairs that specify the actions that the merchant account can do and its settings. The key is a capability. For example, the **sendToTransferInstrument** is the capability required before you can pay out funds to the bank account. The value is an object containing the settings for the capability. + * @return the current {@code AccountCreateNotificationData} instance, allowing for method chaining */ - public AccountCreateNotificationData capabilities( - Map capabilities) { + public AccountCreateNotificationData capabilities(Map capabilities) { this.capabilities = capabilities; return this; } - public AccountCreateNotificationData putCapabilitiesItem( - String key, AccountCapabilityData capabilitiesItem) { + public AccountCreateNotificationData putCapabilitiesItem(String key, AccountCapabilityData capabilitiesItem) { if (this.capabilities == null) { this.capabilities = new HashMap<>(); } @@ -74,15 +77,8 @@ public AccountCreateNotificationData putCapabilitiesItem( } /** - * Key-value pairs that specify the actions that the merchant account can do and its settings. The - * key is a capability. For example, the **sendToTransferInstrument** is the capability required - * before you can pay out funds to the bank account. The value is an object containing the - * settings for the capability. - * - * @return capabilities Key-value pairs that specify the actions that the merchant account can do - * and its settings. The key is a capability. For example, the **sendToTransferInstrument** is - * the capability required before you can pay out funds to the bank account. The value is an - * object containing the settings for the capability. + * Key-value pairs that specify the actions that the merchant account can do and its settings. The key is a capability. For example, the **sendToTransferInstrument** is the capability required before you can pay out funds to the bank account. The value is an object containing the settings for the capability. + * @return capabilities Key-value pairs that specify the actions that the merchant account can do and its settings. The key is a capability. For example, the **sendToTransferInstrument** is the capability required before you can pay out funds to the bank account. The value is an object containing the settings for the capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -91,15 +87,9 @@ public Map getCapabilities() { } /** - * Key-value pairs that specify the actions that the merchant account can do and its settings. The - * key is a capability. For example, the **sendToTransferInstrument** is the capability required - * before you can pay out funds to the bank account. The value is an object containing the - * settings for the capability. + * Key-value pairs that specify the actions that the merchant account can do and its settings. The key is a capability. For example, the **sendToTransferInstrument** is the capability required before you can pay out funds to the bank account. The value is an object containing the settings for the capability. * - * @param capabilities Key-value pairs that specify the actions that the merchant account can do - * and its settings. The key is a capability. For example, the **sendToTransferInstrument** is - * the capability required before you can pay out funds to the bank account. The value is an - * object containing the settings for the capability. + * @param capabilities Key-value pairs that specify the actions that the merchant account can do and its settings. The key is a capability. For example, the **sendToTransferInstrument** is the capability required before you can pay out funds to the bank account. The value is an object containing the settings for the capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,8 +101,7 @@ public void setCapabilities(Map capabilities) { * The unique identifier of the company account. * * @param companyId The unique identifier of the company account. - * @return the current {@code AccountCreateNotificationData} instance, allowing for method - * chaining + * @return the current {@code AccountCreateNotificationData} instance, allowing for method chaining */ public AccountCreateNotificationData companyId(String companyId) { this.companyId = companyId; @@ -121,7 +110,6 @@ public AccountCreateNotificationData companyId(String companyId) { /** * The unique identifier of the company account. - * * @return companyId The unique identifier of the company account. */ @JsonProperty(JSON_PROPERTY_COMPANY_ID) @@ -142,13 +130,10 @@ public void setCompanyId(String companyId) { } /** - * The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). * - * @param legalEntityId The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). - * @return the current {@code AccountCreateNotificationData} instance, allowing for method - * chaining + * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * @return the current {@code AccountCreateNotificationData} instance, allowing for method chaining */ public AccountCreateNotificationData legalEntityId(String legalEntityId) { this.legalEntityId = legalEntityId; @@ -156,11 +141,8 @@ public AccountCreateNotificationData legalEntityId(String legalEntityId) { } /** - * The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). - * - * @return legalEntityId The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * @return legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,11 +151,9 @@ public String getLegalEntityId() { } /** - * The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). * - * @param legalEntityId The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,8 +165,7 @@ public void setLegalEntityId(String legalEntityId) { * The unique identifier of the merchant account. * * @param merchantId The unique identifier of the merchant account. - * @return the current {@code AccountCreateNotificationData} instance, allowing for method - * chaining + * @return the current {@code AccountCreateNotificationData} instance, allowing for method chaining */ public AccountCreateNotificationData merchantId(String merchantId) { this.merchantId = merchantId; @@ -195,7 +174,6 @@ public AccountCreateNotificationData merchantId(String merchantId) { /** * The unique identifier of the merchant account. - * * @return merchantId The unique identifier of the merchant account. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @@ -216,29 +194,10 @@ public void setMerchantId(String merchantId) { } /** - * The status of the merchant account. Possible values: * **PreActive**: The merchant account has - * been created. Users cannot access the merchant account in the Customer Area. The account cannot - * process payments. * **Active**: Users can access the merchant account in the Customer Area. If - * the company account is also **Active**, then payment processing and payouts are enabled. * - * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The - * account cannot process new payments but can still modify payments, for example issue refunds. - * The account can still receive payouts. * **Inactive**: Users can access the merchant account in - * the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is - * closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are - * disabled. + * The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The account cannot process new payments but can still modify payments, for example issue refunds. The account can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. * - * @param status The status of the merchant account. Possible values: * **PreActive**: The - * merchant account has been created. Users cannot access the merchant account in the Customer - * Area. The account cannot process payments. * **Active**: Users can access the merchant - * account in the Customer Area. If the company account is also **Active**, then payment - * processing and payouts are enabled. * **InactiveWithModifications**: Users can access the - * merchant account in the Customer Area. The account cannot process new payments but can - * still modify payments, for example issue refunds. The account can still receive payouts. * - * **Inactive**: Users can access the merchant account in the Customer Area. Payment - * processing and payouts are disabled. * **Closed**: The account is closed and this cannot be - * reversed. Users cannot log in. Payment processing and payouts are disabled. - * @return the current {@code AccountCreateNotificationData} instance, allowing for method - * chaining + * @param status The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The account cannot process new payments but can still modify payments, for example issue refunds. The account can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. + * @return the current {@code AccountCreateNotificationData} instance, allowing for method chaining */ public AccountCreateNotificationData status(String status) { this.status = status; @@ -246,27 +205,8 @@ public AccountCreateNotificationData status(String status) { } /** - * The status of the merchant account. Possible values: * **PreActive**: The merchant account has - * been created. Users cannot access the merchant account in the Customer Area. The account cannot - * process payments. * **Active**: Users can access the merchant account in the Customer Area. If - * the company account is also **Active**, then payment processing and payouts are enabled. * - * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The - * account cannot process new payments but can still modify payments, for example issue refunds. - * The account can still receive payouts. * **Inactive**: Users can access the merchant account in - * the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is - * closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are - * disabled. - * - * @return status The status of the merchant account. Possible values: * **PreActive**: The - * merchant account has been created. Users cannot access the merchant account in the Customer - * Area. The account cannot process payments. * **Active**: Users can access the merchant - * account in the Customer Area. If the company account is also **Active**, then payment - * processing and payouts are enabled. * **InactiveWithModifications**: Users can access the - * merchant account in the Customer Area. The account cannot process new payments but can - * still modify payments, for example issue refunds. The account can still receive payouts. * - * **Inactive**: Users can access the merchant account in the Customer Area. Payment - * processing and payouts are disabled. * **Closed**: The account is closed and this cannot be - * reversed. Users cannot log in. Payment processing and payouts are disabled. + * The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The account cannot process new payments but can still modify payments, for example issue refunds. The account can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. + * @return status The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The account cannot process new payments but can still modify payments, for example issue refunds. The account can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -275,27 +215,9 @@ public String getStatus() { } /** - * The status of the merchant account. Possible values: * **PreActive**: The merchant account has - * been created. Users cannot access the merchant account in the Customer Area. The account cannot - * process payments. * **Active**: Users can access the merchant account in the Customer Area. If - * the company account is also **Active**, then payment processing and payouts are enabled. * - * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The - * account cannot process new payments but can still modify payments, for example issue refunds. - * The account can still receive payouts. * **Inactive**: Users can access the merchant account in - * the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is - * closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are - * disabled. + * The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The account cannot process new payments but can still modify payments, for example issue refunds. The account can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. * - * @param status The status of the merchant account. Possible values: * **PreActive**: The - * merchant account has been created. Users cannot access the merchant account in the Customer - * Area. The account cannot process payments. * **Active**: Users can access the merchant - * account in the Customer Area. If the company account is also **Active**, then payment - * processing and payouts are enabled. * **InactiveWithModifications**: Users can access the - * merchant account in the Customer Area. The account cannot process new payments but can - * still modify payments, for example issue refunds. The account can still receive payouts. * - * **Inactive**: Users can access the merchant account in the Customer Area. Payment - * processing and payouts are disabled. * **Closed**: The account is closed and this cannot be - * reversed. Users cannot log in. Payment processing and payouts are disabled. + * @param status The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The account cannot process new payments but can still modify payments, for example issue refunds. The account can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -303,7 +225,9 @@ public void setStatus(String status) { this.status = status; } - /** Return true if this AccountCreateNotificationData object is equal to o. */ + /** + * Return true if this AccountCreateNotificationData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -313,11 +237,11 @@ public boolean equals(Object o) { return false; } AccountCreateNotificationData accountCreateNotificationData = (AccountCreateNotificationData) o; - return Objects.equals(this.capabilities, accountCreateNotificationData.capabilities) - && Objects.equals(this.companyId, accountCreateNotificationData.companyId) - && Objects.equals(this.legalEntityId, accountCreateNotificationData.legalEntityId) - && Objects.equals(this.merchantId, accountCreateNotificationData.merchantId) - && Objects.equals(this.status, accountCreateNotificationData.status); + return Objects.equals(this.capabilities, accountCreateNotificationData.capabilities) && + Objects.equals(this.companyId, accountCreateNotificationData.companyId) && + Objects.equals(this.legalEntityId, accountCreateNotificationData.legalEntityId) && + Objects.equals(this.merchantId, accountCreateNotificationData.merchantId) && + Objects.equals(this.status, accountCreateNotificationData.status); } @Override @@ -339,7 +263,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -348,24 +273,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AccountCreateNotificationData given an JSON string * * @param jsonString JSON string * @return An instance of AccountCreateNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AccountCreateNotificationData + * @throws JsonProcessingException if the JSON string is invalid with respect to AccountCreateNotificationData */ - public static AccountCreateNotificationData fromJson(String jsonString) - throws JsonProcessingException { + public static AccountCreateNotificationData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountCreateNotificationData.class); } - - /** - * Convert an instance of AccountCreateNotificationData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AccountCreateNotificationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/AccountNotificationResponse.java b/src/main/java/com/adyen/model/managementwebhooks/AccountNotificationResponse.java index 8528fe458..cf033dd07 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/AccountNotificationResponse.java +++ b/src/main/java/com/adyen/model/managementwebhooks/AccountNotificationResponse.java @@ -2,35 +2,46 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.managementwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AccountNotificationResponse */ -@JsonPropertyOrder({AccountNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) + +/** + * AccountNotificationResponse + */ +@JsonPropertyOrder({ + AccountNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE +}) + public class AccountNotificationResponse { public static final String JSON_PROPERTY_NOTIFICATION_RESPONSE = "notificationResponse"; private String notificationResponse; - public AccountNotificationResponse() {} + public AccountNotificationResponse() { + } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * @return the current {@code AccountNotificationResponse} instance, allowing for method chaining */ public AccountNotificationResponse notificationResponse(String notificationResponse) { @@ -39,11 +50,8 @@ public AccountNotificationResponse notificationResponse(String notificationRespo } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * - * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -52,11 +60,9 @@ public String getNotificationResponse() { } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,7 +70,9 @@ public void setNotificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; } - /** Return true if this AccountNotificationResponse object is equal to o. */ + /** + * Return true if this AccountNotificationResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -74,8 +82,7 @@ public boolean equals(Object o) { return false; } AccountNotificationResponse accountNotificationResponse = (AccountNotificationResponse) o; - return Objects.equals( - this.notificationResponse, accountNotificationResponse.notificationResponse); + return Objects.equals(this.notificationResponse, accountNotificationResponse.notificationResponse); } @Override @@ -87,15 +94,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AccountNotificationResponse {\n"); - sb.append(" notificationResponse: ") - .append(toIndentedString(notificationResponse)) - .append("\n"); + sb.append(" notificationResponse: ").append(toIndentedString(notificationResponse)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -104,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AccountNotificationResponse given an JSON string * * @param jsonString JSON string * @return An instance of AccountNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AccountNotificationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to AccountNotificationResponse */ - public static AccountNotificationResponse fromJson(String jsonString) - throws JsonProcessingException { + public static AccountNotificationResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountNotificationResponse.class); } - - /** - * Convert an instance of AccountNotificationResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AccountNotificationResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/AccountUpdateNotificationData.java b/src/main/java/com/adyen/model/managementwebhooks/AccountUpdateNotificationData.java index 2a9512303..e10e08229 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/AccountUpdateNotificationData.java +++ b/src/main/java/com/adyen/model/managementwebhooks/AccountUpdateNotificationData.java @@ -2,30 +2,41 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.managementwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.managementwebhooks.AccountCapabilityData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** AccountUpdateNotificationData */ +/** + * AccountUpdateNotificationData + */ @JsonPropertyOrder({ AccountUpdateNotificationData.JSON_PROPERTY_CAPABILITIES, AccountUpdateNotificationData.JSON_PROPERTY_LEGAL_ENTITY_ID, AccountUpdateNotificationData.JSON_PROPERTY_MERCHANT_ID, AccountUpdateNotificationData.JSON_PROPERTY_STATUS }) + public class AccountUpdateNotificationData { public static final String JSON_PROPERTY_CAPABILITIES = "capabilities"; private Map capabilities; @@ -39,31 +50,21 @@ public class AccountUpdateNotificationData { public static final String JSON_PROPERTY_STATUS = "status"; private String status; - public AccountUpdateNotificationData() {} + public AccountUpdateNotificationData() { + } /** - * Key-value pairs that specify what you can do with the merchant account and its settings. The - * key is a capability. For example, the **sendToTransferInstrument** is the capability required - * before you can pay out the funds of a merchant account to a [bank - * account](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). The - * value is an object containing the settings for the capability. + * Key-value pairs that specify what you can do with the merchant account and its settings. The key is a capability. For example, the **sendToTransferInstrument** is the capability required before you can pay out the funds of a merchant account to a [bank account](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). The value is an object containing the settings for the capability. * - * @param capabilities Key-value pairs that specify what you can do with the merchant account and - * its settings. The key is a capability. For example, the **sendToTransferInstrument** is the - * capability required before you can pay out the funds of a merchant account to a [bank - * account](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). - * The value is an object containing the settings for the capability. - * @return the current {@code AccountUpdateNotificationData} instance, allowing for method - * chaining + * @param capabilities Key-value pairs that specify what you can do with the merchant account and its settings. The key is a capability. For example, the **sendToTransferInstrument** is the capability required before you can pay out the funds of a merchant account to a [bank account](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). The value is an object containing the settings for the capability. + * @return the current {@code AccountUpdateNotificationData} instance, allowing for method chaining */ - public AccountUpdateNotificationData capabilities( - Map capabilities) { + public AccountUpdateNotificationData capabilities(Map capabilities) { this.capabilities = capabilities; return this; } - public AccountUpdateNotificationData putCapabilitiesItem( - String key, AccountCapabilityData capabilitiesItem) { + public AccountUpdateNotificationData putCapabilitiesItem(String key, AccountCapabilityData capabilitiesItem) { if (this.capabilities == null) { this.capabilities = new HashMap<>(); } @@ -72,17 +73,8 @@ public AccountUpdateNotificationData putCapabilitiesItem( } /** - * Key-value pairs that specify what you can do with the merchant account and its settings. The - * key is a capability. For example, the **sendToTransferInstrument** is the capability required - * before you can pay out the funds of a merchant account to a [bank - * account](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). The - * value is an object containing the settings for the capability. - * - * @return capabilities Key-value pairs that specify what you can do with the merchant account and - * its settings. The key is a capability. For example, the **sendToTransferInstrument** is the - * capability required before you can pay out the funds of a merchant account to a [bank - * account](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). - * The value is an object containing the settings for the capability. + * Key-value pairs that specify what you can do with the merchant account and its settings. The key is a capability. For example, the **sendToTransferInstrument** is the capability required before you can pay out the funds of a merchant account to a [bank account](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). The value is an object containing the settings for the capability. + * @return capabilities Key-value pairs that specify what you can do with the merchant account and its settings. The key is a capability. For example, the **sendToTransferInstrument** is the capability required before you can pay out the funds of a merchant account to a [bank account](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). The value is an object containing the settings for the capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -91,17 +83,9 @@ public Map getCapabilities() { } /** - * Key-value pairs that specify what you can do with the merchant account and its settings. The - * key is a capability. For example, the **sendToTransferInstrument** is the capability required - * before you can pay out the funds of a merchant account to a [bank - * account](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). The - * value is an object containing the settings for the capability. + * Key-value pairs that specify what you can do with the merchant account and its settings. The key is a capability. For example, the **sendToTransferInstrument** is the capability required before you can pay out the funds of a merchant account to a [bank account](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). The value is an object containing the settings for the capability. * - * @param capabilities Key-value pairs that specify what you can do with the merchant account and - * its settings. The key is a capability. For example, the **sendToTransferInstrument** is the - * capability required before you can pay out the funds of a merchant account to a [bank - * account](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). - * The value is an object containing the settings for the capability. + * @param capabilities Key-value pairs that specify what you can do with the merchant account and its settings. The key is a capability. For example, the **sendToTransferInstrument** is the capability required before you can pay out the funds of a merchant account to a [bank account](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). The value is an object containing the settings for the capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,13 +94,10 @@ public void setCapabilities(Map capabilities) { } /** - * The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). * - * @param legalEntityId The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). - * @return the current {@code AccountUpdateNotificationData} instance, allowing for method - * chaining + * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * @return the current {@code AccountUpdateNotificationData} instance, allowing for method chaining */ public AccountUpdateNotificationData legalEntityId(String legalEntityId) { this.legalEntityId = legalEntityId; @@ -124,11 +105,8 @@ public AccountUpdateNotificationData legalEntityId(String legalEntityId) { } /** - * The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). - * - * @return legalEntityId The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * @return legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,11 +115,9 @@ public String getLegalEntityId() { } /** - * The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). * - * @param legalEntityId The unique identifier of the [legal - * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -153,8 +129,7 @@ public void setLegalEntityId(String legalEntityId) { * The unique identifier of the merchant account. * * @param merchantId The unique identifier of the merchant account. - * @return the current {@code AccountUpdateNotificationData} instance, allowing for method - * chaining + * @return the current {@code AccountUpdateNotificationData} instance, allowing for method chaining */ public AccountUpdateNotificationData merchantId(String merchantId) { this.merchantId = merchantId; @@ -163,7 +138,6 @@ public AccountUpdateNotificationData merchantId(String merchantId) { /** * The unique identifier of the merchant account. - * * @return merchantId The unique identifier of the merchant account. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @@ -184,29 +158,10 @@ public void setMerchantId(String merchantId) { } /** - * The status of the merchant account. Possible values: * **PreActive**: The merchant account has - * been created. Users cannot access the merchant account in the Customer Area. The account cannot - * process payments. * **Active**: Users can access the merchant account in the Customer Area. If - * the company account is also **Active**, then payment processing and payouts are enabled. * - * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The - * account cannot process new payments but can still modify payments, for example issue refunds. - * The account can still receive payouts. * **Inactive**: Users can access the merchant account in - * the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is - * closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are - * disabled. + * The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The account cannot process new payments but can still modify payments, for example issue refunds. The account can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. * - * @param status The status of the merchant account. Possible values: * **PreActive**: The - * merchant account has been created. Users cannot access the merchant account in the Customer - * Area. The account cannot process payments. * **Active**: Users can access the merchant - * account in the Customer Area. If the company account is also **Active**, then payment - * processing and payouts are enabled. * **InactiveWithModifications**: Users can access the - * merchant account in the Customer Area. The account cannot process new payments but can - * still modify payments, for example issue refunds. The account can still receive payouts. * - * **Inactive**: Users can access the merchant account in the Customer Area. Payment - * processing and payouts are disabled. * **Closed**: The account is closed and this cannot be - * reversed. Users cannot log in. Payment processing and payouts are disabled. - * @return the current {@code AccountUpdateNotificationData} instance, allowing for method - * chaining + * @param status The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The account cannot process new payments but can still modify payments, for example issue refunds. The account can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. + * @return the current {@code AccountUpdateNotificationData} instance, allowing for method chaining */ public AccountUpdateNotificationData status(String status) { this.status = status; @@ -214,27 +169,8 @@ public AccountUpdateNotificationData status(String status) { } /** - * The status of the merchant account. Possible values: * **PreActive**: The merchant account has - * been created. Users cannot access the merchant account in the Customer Area. The account cannot - * process payments. * **Active**: Users can access the merchant account in the Customer Area. If - * the company account is also **Active**, then payment processing and payouts are enabled. * - * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The - * account cannot process new payments but can still modify payments, for example issue refunds. - * The account can still receive payouts. * **Inactive**: Users can access the merchant account in - * the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is - * closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are - * disabled. - * - * @return status The status of the merchant account. Possible values: * **PreActive**: The - * merchant account has been created. Users cannot access the merchant account in the Customer - * Area. The account cannot process payments. * **Active**: Users can access the merchant - * account in the Customer Area. If the company account is also **Active**, then payment - * processing and payouts are enabled. * **InactiveWithModifications**: Users can access the - * merchant account in the Customer Area. The account cannot process new payments but can - * still modify payments, for example issue refunds. The account can still receive payouts. * - * **Inactive**: Users can access the merchant account in the Customer Area. Payment - * processing and payouts are disabled. * **Closed**: The account is closed and this cannot be - * reversed. Users cannot log in. Payment processing and payouts are disabled. + * The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The account cannot process new payments but can still modify payments, for example issue refunds. The account can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. + * @return status The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The account cannot process new payments but can still modify payments, for example issue refunds. The account can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -243,27 +179,9 @@ public String getStatus() { } /** - * The status of the merchant account. Possible values: * **PreActive**: The merchant account has - * been created. Users cannot access the merchant account in the Customer Area. The account cannot - * process payments. * **Active**: Users can access the merchant account in the Customer Area. If - * the company account is also **Active**, then payment processing and payouts are enabled. * - * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The - * account cannot process new payments but can still modify payments, for example issue refunds. - * The account can still receive payouts. * **Inactive**: Users can access the merchant account in - * the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is - * closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are - * disabled. + * The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The account cannot process new payments but can still modify payments, for example issue refunds. The account can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. * - * @param status The status of the merchant account. Possible values: * **PreActive**: The - * merchant account has been created. Users cannot access the merchant account in the Customer - * Area. The account cannot process payments. * **Active**: Users can access the merchant - * account in the Customer Area. If the company account is also **Active**, then payment - * processing and payouts are enabled. * **InactiveWithModifications**: Users can access the - * merchant account in the Customer Area. The account cannot process new payments but can - * still modify payments, for example issue refunds. The account can still receive payouts. * - * **Inactive**: Users can access the merchant account in the Customer Area. Payment - * processing and payouts are disabled. * **Closed**: The account is closed and this cannot be - * reversed. Users cannot log in. Payment processing and payouts are disabled. + * @param status The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The account cannot process new payments but can still modify payments, for example issue refunds. The account can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -271,7 +189,9 @@ public void setStatus(String status) { this.status = status; } - /** Return true if this AccountUpdateNotificationData object is equal to o. */ + /** + * Return true if this AccountUpdateNotificationData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -281,10 +201,10 @@ public boolean equals(Object o) { return false; } AccountUpdateNotificationData accountUpdateNotificationData = (AccountUpdateNotificationData) o; - return Objects.equals(this.capabilities, accountUpdateNotificationData.capabilities) - && Objects.equals(this.legalEntityId, accountUpdateNotificationData.legalEntityId) - && Objects.equals(this.merchantId, accountUpdateNotificationData.merchantId) - && Objects.equals(this.status, accountUpdateNotificationData.status); + return Objects.equals(this.capabilities, accountUpdateNotificationData.capabilities) && + Objects.equals(this.legalEntityId, accountUpdateNotificationData.legalEntityId) && + Objects.equals(this.merchantId, accountUpdateNotificationData.merchantId) && + Objects.equals(this.status, accountUpdateNotificationData.status); } @Override @@ -305,7 +225,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -314,24 +235,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AccountUpdateNotificationData given an JSON string * * @param jsonString JSON string * @return An instance of AccountUpdateNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AccountUpdateNotificationData + * @throws JsonProcessingException if the JSON string is invalid with respect to AccountUpdateNotificationData */ - public static AccountUpdateNotificationData fromJson(String jsonString) - throws JsonProcessingException { + public static AccountUpdateNotificationData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountUpdateNotificationData.class); } - - /** - * Convert an instance of AccountUpdateNotificationData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AccountUpdateNotificationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblem.java b/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblem.java index 8f27a0397..ca4f5310e 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblem.java +++ b/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblem.java @@ -2,28 +2,40 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.managementwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.managementwebhooks.CapabilityProblemEntity; +import com.adyen.model.managementwebhooks.VerificationError; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CapabilityProblem */ +/** + * CapabilityProblem + */ @JsonPropertyOrder({ CapabilityProblem.JSON_PROPERTY_ENTITY, CapabilityProblem.JSON_PROPERTY_VERIFICATION_ERRORS }) + public class CapabilityProblem { public static final String JSON_PROPERTY_ENTITY = "entity"; private CapabilityProblemEntity entity; @@ -31,12 +43,13 @@ public class CapabilityProblem { public static final String JSON_PROPERTY_VERIFICATION_ERRORS = "verificationErrors"; private List verificationErrors; - public CapabilityProblem() {} + public CapabilityProblem() { + } /** * entity * - * @param entity + * @param entity * @return the current {@code CapabilityProblem} instance, allowing for method chaining */ public CapabilityProblem entity(CapabilityProblemEntity entity) { @@ -46,8 +59,7 @@ public CapabilityProblem entity(CapabilityProblemEntity entity) { /** * Get entity - * - * @return entity + * @return entity */ @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,7 +70,7 @@ public CapabilityProblemEntity getEntity() { /** * entity * - * @param entity + * @param entity */ @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,7 +99,6 @@ public CapabilityProblem addVerificationErrorsItem(VerificationError verificatio /** * List of verification errors. - * * @return verificationErrors List of verification errors. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_ERRORS) @@ -107,7 +118,9 @@ public void setVerificationErrors(List verificationErrors) { this.verificationErrors = verificationErrors; } - /** Return true if this CapabilityProblem object is equal to o. */ + /** + * Return true if this CapabilityProblem object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -117,8 +130,8 @@ public boolean equals(Object o) { return false; } CapabilityProblem capabilityProblem = (CapabilityProblem) o; - return Objects.equals(this.entity, capabilityProblem.entity) - && Objects.equals(this.verificationErrors, capabilityProblem.verificationErrors); + return Objects.equals(this.entity, capabilityProblem.entity) && + Objects.equals(this.verificationErrors, capabilityProblem.verificationErrors); } @Override @@ -137,7 +150,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -146,7 +160,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CapabilityProblem given an JSON string * * @param jsonString JSON string @@ -156,12 +170,11 @@ private String toIndentedString(Object o) { public static CapabilityProblem fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapabilityProblem.class); } - - /** - * Convert an instance of CapabilityProblem to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CapabilityProblem to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblemEntity.java b/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblemEntity.java index 919708775..83df95728 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblemEntity.java +++ b/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblemEntity.java @@ -2,34 +2,41 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.managementwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.managementwebhooks.CapabilityProblemEntityRecursive; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** CapabilityProblemEntity */ + +/** + * CapabilityProblemEntity + */ @JsonPropertyOrder({ CapabilityProblemEntity.JSON_PROPERTY_DOCUMENTS, CapabilityProblemEntity.JSON_PROPERTY_ID, CapabilityProblemEntity.JSON_PROPERTY_OWNER, CapabilityProblemEntity.JSON_PROPERTY_TYPE }) + public class CapabilityProblemEntity { public static final String JSON_PROPERTY_DOCUMENTS = "documents"; private List documents; @@ -40,8 +47,11 @@ public class CapabilityProblemEntity { public static final String JSON_PROPERTY_OWNER = "owner"; private CapabilityProblemEntityRecursive owner; - /** The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. */ + /** + * The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. + */ public enum TypeEnum { + BANKACCOUNT(String.valueOf("BankAccount")), DOCUMENT(String.valueOf("Document")), @@ -53,7 +63,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -74,11 +84,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -86,14 +92,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CapabilityProblemEntity() {} + public CapabilityProblemEntity() { + } /** - * List of document IDs to which the verification errors related to the capabilities correspond - * to. + * List of document IDs to which the verification errors related to the capabilities correspond to. * - * @param documents List of document IDs to which the verification errors related to the - * capabilities correspond to. + * @param documents List of document IDs to which the verification errors related to the capabilities correspond to. * @return the current {@code CapabilityProblemEntity} instance, allowing for method chaining */ public CapabilityProblemEntity documents(List documents) { @@ -110,11 +115,8 @@ public CapabilityProblemEntity addDocumentsItem(String documentsItem) { } /** - * List of document IDs to which the verification errors related to the capabilities correspond - * to. - * - * @return documents List of document IDs to which the verification errors related to the - * capabilities correspond to. + * List of document IDs to which the verification errors related to the capabilities correspond to. + * @return documents List of document IDs to which the verification errors related to the capabilities correspond to. */ @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,11 +125,9 @@ public List getDocuments() { } /** - * List of document IDs to which the verification errors related to the capabilities correspond - * to. + * List of document IDs to which the verification errors related to the capabilities correspond to. * - * @param documents List of document IDs to which the verification errors related to the - * capabilities correspond to. + * @param documents List of document IDs to which the verification errors related to the capabilities correspond to. */ @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,7 +148,6 @@ public CapabilityProblemEntity id(String id) { /** * The ID of the entity. - * * @return id The ID of the entity. */ @JsonProperty(JSON_PROPERTY_ID) @@ -171,7 +170,7 @@ public void setId(String id) { /** * owner * - * @param owner + * @param owner * @return the current {@code CapabilityProblemEntity} instance, allowing for method chaining */ public CapabilityProblemEntity owner(CapabilityProblemEntityRecursive owner) { @@ -181,8 +180,7 @@ public CapabilityProblemEntity owner(CapabilityProblemEntityRecursive owner) { /** * Get owner - * - * @return owner + * @return owner */ @JsonProperty(JSON_PROPERTY_OWNER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,7 +191,7 @@ public CapabilityProblemEntityRecursive getOwner() { /** * owner * - * @param owner + * @param owner */ @JsonProperty(JSON_PROPERTY_OWNER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -202,10 +200,9 @@ public void setOwner(CapabilityProblemEntityRecursive owner) { } /** - * The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. + * The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. * - * @param type The type of entity. Possible values: **LegalEntity**, **BankAccount**, or - * **Document**. + * @param type The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. * @return the current {@code CapabilityProblemEntity} instance, allowing for method chaining */ public CapabilityProblemEntity type(TypeEnum type) { @@ -214,10 +211,8 @@ public CapabilityProblemEntity type(TypeEnum type) { } /** - * The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. - * - * @return type The type of entity. Possible values: **LegalEntity**, **BankAccount**, or - * **Document**. + * The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. + * @return type The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -226,10 +221,9 @@ public TypeEnum getType() { } /** - * The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. + * The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. * - * @param type The type of entity. Possible values: **LegalEntity**, **BankAccount**, or - * **Document**. + * @param type The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,7 +231,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this CapabilityProblemEntity object is equal to o. */ + /** + * Return true if this CapabilityProblemEntity object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -247,10 +243,10 @@ public boolean equals(Object o) { return false; } CapabilityProblemEntity capabilityProblemEntity = (CapabilityProblemEntity) o; - return Objects.equals(this.documents, capabilityProblemEntity.documents) - && Objects.equals(this.id, capabilityProblemEntity.id) - && Objects.equals(this.owner, capabilityProblemEntity.owner) - && Objects.equals(this.type, capabilityProblemEntity.type); + return Objects.equals(this.documents, capabilityProblemEntity.documents) && + Objects.equals(this.id, capabilityProblemEntity.id) && + Objects.equals(this.owner, capabilityProblemEntity.owner) && + Objects.equals(this.type, capabilityProblemEntity.type); } @Override @@ -271,7 +267,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -280,23 +277,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CapabilityProblemEntity given an JSON string * * @param jsonString JSON string * @return An instance of CapabilityProblemEntity - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CapabilityProblemEntity + * @throws JsonProcessingException if the JSON string is invalid with respect to CapabilityProblemEntity */ public static CapabilityProblemEntity fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapabilityProblemEntity.class); } - - /** - * Convert an instance of CapabilityProblemEntity to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CapabilityProblemEntity to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblemEntityRecursive.java b/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblemEntityRecursive.java index ae32f3409..ee4998d94 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblemEntityRecursive.java +++ b/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblemEntityRecursive.java @@ -2,35 +2,40 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.managementwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** CapabilityProblemEntityRecursive */ + +/** + * CapabilityProblemEntityRecursive + */ @JsonPropertyOrder({ CapabilityProblemEntityRecursive.JSON_PROPERTY_DOCUMENTS, CapabilityProblemEntityRecursive.JSON_PROPERTY_ID, CapabilityProblemEntityRecursive.JSON_PROPERTY_TYPE }) @JsonTypeName("CapabilityProblemEntity-recursive") + public class CapabilityProblemEntityRecursive { public static final String JSON_PROPERTY_DOCUMENTS = "documents"; private List documents; @@ -38,8 +43,11 @@ public class CapabilityProblemEntityRecursive { public static final String JSON_PROPERTY_ID = "id"; private String id; - /** The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. */ + /** + * The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. + */ public enum TypeEnum { + BANKACCOUNT(String.valueOf("BankAccount")), DOCUMENT(String.valueOf("Document")), @@ -51,7 +59,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -72,11 +80,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -84,16 +88,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CapabilityProblemEntityRecursive() {} + public CapabilityProblemEntityRecursive() { + } /** - * List of document IDs to which the verification errors related to the capabilities correspond - * to. + * List of document IDs to which the verification errors related to the capabilities correspond to. * - * @param documents List of document IDs to which the verification errors related to the - * capabilities correspond to. - * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method - * chaining + * @param documents List of document IDs to which the verification errors related to the capabilities correspond to. + * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method chaining */ public CapabilityProblemEntityRecursive documents(List documents) { this.documents = documents; @@ -109,11 +111,8 @@ public CapabilityProblemEntityRecursive addDocumentsItem(String documentsItem) { } /** - * List of document IDs to which the verification errors related to the capabilities correspond - * to. - * - * @return documents List of document IDs to which the verification errors related to the - * capabilities correspond to. + * List of document IDs to which the verification errors related to the capabilities correspond to. + * @return documents List of document IDs to which the verification errors related to the capabilities correspond to. */ @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -122,11 +121,9 @@ public List getDocuments() { } /** - * List of document IDs to which the verification errors related to the capabilities correspond - * to. + * List of document IDs to which the verification errors related to the capabilities correspond to. * - * @param documents List of document IDs to which the verification errors related to the - * capabilities correspond to. + * @param documents List of document IDs to which the verification errors related to the capabilities correspond to. */ @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,8 +135,7 @@ public void setDocuments(List documents) { * The ID of the entity. * * @param id The ID of the entity. - * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method - * chaining + * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method chaining */ public CapabilityProblemEntityRecursive id(String id) { this.id = id; @@ -148,7 +144,6 @@ public CapabilityProblemEntityRecursive id(String id) { /** * The ID of the entity. - * * @return id The ID of the entity. */ @JsonProperty(JSON_PROPERTY_ID) @@ -169,12 +164,10 @@ public void setId(String id) { } /** - * The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. + * The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. * - * @param type The type of entity. Possible values: **LegalEntity**, **BankAccount**, or - * **Document**. - * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method - * chaining + * @param type The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. + * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method chaining */ public CapabilityProblemEntityRecursive type(TypeEnum type) { this.type = type; @@ -182,10 +175,8 @@ public CapabilityProblemEntityRecursive type(TypeEnum type) { } /** - * The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. - * - * @return type The type of entity. Possible values: **LegalEntity**, **BankAccount**, or - * **Document**. + * The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. + * @return type The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,10 +185,9 @@ public TypeEnum getType() { } /** - * The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. + * The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. * - * @param type The type of entity. Possible values: **LegalEntity**, **BankAccount**, or - * **Document**. + * @param type The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -205,7 +195,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this CapabilityProblemEntity-recursive object is equal to o. */ + /** + * Return true if this CapabilityProblemEntity-recursive object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -214,11 +206,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CapabilityProblemEntityRecursive capabilityProblemEntityRecursive = - (CapabilityProblemEntityRecursive) o; - return Objects.equals(this.documents, capabilityProblemEntityRecursive.documents) - && Objects.equals(this.id, capabilityProblemEntityRecursive.id) - && Objects.equals(this.type, capabilityProblemEntityRecursive.type); + CapabilityProblemEntityRecursive capabilityProblemEntityRecursive = (CapabilityProblemEntityRecursive) o; + return Objects.equals(this.documents, capabilityProblemEntityRecursive.documents) && + Objects.equals(this.id, capabilityProblemEntityRecursive.id) && + Objects.equals(this.type, capabilityProblemEntityRecursive.type); } @Override @@ -238,7 +229,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -247,24 +239,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CapabilityProblemEntityRecursive given an JSON string * * @param jsonString JSON string * @return An instance of CapabilityProblemEntityRecursive - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CapabilityProblemEntityRecursive + * @throws JsonProcessingException if the JSON string is invalid with respect to CapabilityProblemEntityRecursive */ - public static CapabilityProblemEntityRecursive fromJson(String jsonString) - throws JsonProcessingException { + public static CapabilityProblemEntityRecursive fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapabilityProblemEntityRecursive.class); } - - /** - * Convert an instance of CapabilityProblemEntityRecursive to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CapabilityProblemEntityRecursive to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/JSON.java b/src/main/java/com/adyen/model/managementwebhooks/JSON.java index 29d9aac38..681268444 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/JSON.java +++ b/src/main/java/com/adyen/model/managementwebhooks/JSON.java @@ -1,18 +1,21 @@ package com.adyen.model.managementwebhooks; -import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; +import com.adyen.serializer.ByteArrayDeserializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; +import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; +import com.adyen.model.managementwebhooks.*; + import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -37,7 +40,6 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. - * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -54,13 +56,11 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { - return mapper; - } + public static ObjectMapper getMapper() { return mapper; } /** - * Returns the target model class that should be used to deserialize the input data. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,7 +73,9 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** Helper class to register the discriminator mappings. */ + /** + * Helper class to register the discriminator mappings. + */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -115,9 +117,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. This - * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -162,14 +164,13 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so - * it's not possible to use the instanceof keyword. + * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, + * so it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf( - Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -193,58 +194,59 @@ public static boolean isInstanceOf( return false; } - /** A map of discriminators for all model classes. */ - private static final Map, ClassDiscriminatorMapping> modelDiscriminators = - new HashMap, ClassDiscriminatorMapping>(); + /** + * A map of discriminators for all model classes. + */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); - /** A map of oneOf/anyOf descendants for each model class. */ + /** + * A map of oneOf/anyOf descendants for each model class. + */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator( - Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = - new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants( - Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants(Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static { + static + { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/managementwebhooks/ManagementWebhooksHandler.java b/src/main/java/com/adyen/model/managementwebhooks/ManagementWebhooksHandler.java index b581d86e1..bdd14ea04 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/ManagementWebhooksHandler.java +++ b/src/main/java/com/adyen/model/managementwebhooks/ManagementWebhooksHandler.java @@ -2,7 +2,7 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,207 +16,195 @@ /** * Handler for processing ManagementWebhooks. - * - *

This class provides functionality to deserialize the payload of ManagementWebhooks events. + *

+ * This class provides functionality to deserialize the payload of ManagementWebhooks events. */ public class ManagementWebhooksHandler { - private static final Logger LOG = Logger.getLogger(ManagementWebhooksHandler.class.getName()); - - private final String payload; - - /** - * Constructs a new handler for the given webhook payload - * - * @param payload the raw JSON payload from the webhook - */ - public ManagementWebhooksHandler(String payload) { - this.payload = payload; - } - - /** - * Attempts to deserialize the webhook payload into a MerchantCreatedNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getMerchantCreatedNotificationRequest() { - - var optionalMerchantCreatedNotificationRequest = - getOptionalField(MerchantCreatedNotificationRequest.class); - - if (optionalMerchantCreatedNotificationRequest.isPresent()) { - // verify event type - for (var value : MerchantCreatedNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalMerchantCreatedNotificationRequest.get().getType())) { - // found matching event type - return optionalMerchantCreatedNotificationRequest; + private static final Logger LOG = Logger.getLogger(ManagementWebhooksHandler.class.getName()); + + private final String payload; + + /** + * Constructs a new handler for the given webhook payload + * + * @param payload the raw JSON payload from the webhook + */ + public ManagementWebhooksHandler(String payload) { + this.payload = payload; + } + + /** + * Attempts to deserialize the webhook payload into a MerchantCreatedNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getMerchantCreatedNotificationRequest() { + + var optionalMerchantCreatedNotificationRequest = getOptionalField(MerchantCreatedNotificationRequest.class); + + if(optionalMerchantCreatedNotificationRequest.isPresent()) { + // verify event type + for (var value : MerchantCreatedNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalMerchantCreatedNotificationRequest.get().getType())) { + // found matching event type + return optionalMerchantCreatedNotificationRequest; + } + } } - } + + return Optional.empty(); } - return Optional.empty(); - } - - /** - * Attempts to deserialize the webhook payload into a MerchantUpdatedNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getMerchantUpdatedNotificationRequest() { - - var optionalMerchantUpdatedNotificationRequest = - getOptionalField(MerchantUpdatedNotificationRequest.class); - - if (optionalMerchantUpdatedNotificationRequest.isPresent()) { - // verify event type - for (var value : MerchantUpdatedNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalMerchantUpdatedNotificationRequest.get().getType())) { - // found matching event type - return optionalMerchantUpdatedNotificationRequest; + /** + * Attempts to deserialize the webhook payload into a MerchantUpdatedNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getMerchantUpdatedNotificationRequest() { + + var optionalMerchantUpdatedNotificationRequest = getOptionalField(MerchantUpdatedNotificationRequest.class); + + if(optionalMerchantUpdatedNotificationRequest.isPresent()) { + // verify event type + for (var value : MerchantUpdatedNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalMerchantUpdatedNotificationRequest.get().getType())) { + // found matching event type + return optionalMerchantUpdatedNotificationRequest; + } + } } - } + + return Optional.empty(); } - return Optional.empty(); - } - - /** - * Attempts to deserialize the webhook payload into a PaymentMethodCreatedNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional - getPaymentMethodCreatedNotificationRequest() { - - var optionalPaymentMethodCreatedNotificationRequest = - getOptionalField(PaymentMethodCreatedNotificationRequest.class); - - if (optionalPaymentMethodCreatedNotificationRequest.isPresent()) { - // verify event type - for (var value : PaymentMethodCreatedNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalPaymentMethodCreatedNotificationRequest.get().getType())) { - // found matching event type - return optionalPaymentMethodCreatedNotificationRequest; + /** + * Attempts to deserialize the webhook payload into a PaymentMethodCreatedNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getPaymentMethodCreatedNotificationRequest() { + + var optionalPaymentMethodCreatedNotificationRequest = getOptionalField(PaymentMethodCreatedNotificationRequest.class); + + if(optionalPaymentMethodCreatedNotificationRequest.isPresent()) { + // verify event type + for (var value : PaymentMethodCreatedNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalPaymentMethodCreatedNotificationRequest.get().getType())) { + // found matching event type + return optionalPaymentMethodCreatedNotificationRequest; + } + } } - } + + return Optional.empty(); } - return Optional.empty(); - } - - /** - * Attempts to deserialize the webhook payload into a - * PaymentMethodRequestRemovedNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional - getPaymentMethodRequestRemovedNotificationRequest() { - - var optionalPaymentMethodRequestRemovedNotificationRequest = - getOptionalField(PaymentMethodRequestRemovedNotificationRequest.class); - - if (optionalPaymentMethodRequestRemovedNotificationRequest.isPresent()) { - // verify event type - for (var value : PaymentMethodRequestRemovedNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalPaymentMethodRequestRemovedNotificationRequest.get().getType())) { - // found matching event type - return optionalPaymentMethodRequestRemovedNotificationRequest; + /** + * Attempts to deserialize the webhook payload into a PaymentMethodRequestRemovedNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getPaymentMethodRequestRemovedNotificationRequest() { + + var optionalPaymentMethodRequestRemovedNotificationRequest = getOptionalField(PaymentMethodRequestRemovedNotificationRequest.class); + + if(optionalPaymentMethodRequestRemovedNotificationRequest.isPresent()) { + // verify event type + for (var value : PaymentMethodRequestRemovedNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalPaymentMethodRequestRemovedNotificationRequest.get().getType())) { + // found matching event type + return optionalPaymentMethodRequestRemovedNotificationRequest; + } + } } - } + + return Optional.empty(); } - return Optional.empty(); - } - - /** - * Attempts to deserialize the webhook payload into a - * PaymentMethodScheduledForRemovalNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional - getPaymentMethodScheduledForRemovalNotificationRequest() { - - var optionalPaymentMethodScheduledForRemovalNotificationRequest = - getOptionalField(PaymentMethodScheduledForRemovalNotificationRequest.class); - - if (optionalPaymentMethodScheduledForRemovalNotificationRequest.isPresent()) { - // verify event type - for (var value : PaymentMethodScheduledForRemovalNotificationRequest.TypeEnum.values()) { - if (value.equals( - optionalPaymentMethodScheduledForRemovalNotificationRequest.get().getType())) { - // found matching event type - return optionalPaymentMethodScheduledForRemovalNotificationRequest; + /** + * Attempts to deserialize the webhook payload into a PaymentMethodScheduledForRemovalNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getPaymentMethodScheduledForRemovalNotificationRequest() { + + var optionalPaymentMethodScheduledForRemovalNotificationRequest = getOptionalField(PaymentMethodScheduledForRemovalNotificationRequest.class); + + if(optionalPaymentMethodScheduledForRemovalNotificationRequest.isPresent()) { + // verify event type + for (var value : PaymentMethodScheduledForRemovalNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalPaymentMethodScheduledForRemovalNotificationRequest.get().getType())) { + // found matching event type + return optionalPaymentMethodScheduledForRemovalNotificationRequest; + } + } } - } + + return Optional.empty(); } - return Optional.empty(); - } - - /** - * Attempts to deserialize the webhook payload into a TerminalBoardingNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getTerminalBoardingNotificationRequest() { - - var optionalTerminalBoardingNotificationRequest = - getOptionalField(TerminalBoardingNotificationRequest.class); - - if (optionalTerminalBoardingNotificationRequest.isPresent()) { - // verify event type - for (var value : TerminalBoardingNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalTerminalBoardingNotificationRequest.get().getType())) { - // found matching event type - return optionalTerminalBoardingNotificationRequest; + /** + * Attempts to deserialize the webhook payload into a TerminalBoardingNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getTerminalBoardingNotificationRequest() { + + var optionalTerminalBoardingNotificationRequest = getOptionalField(TerminalBoardingNotificationRequest.class); + + if(optionalTerminalBoardingNotificationRequest.isPresent()) { + // verify event type + for (var value : TerminalBoardingNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalTerminalBoardingNotificationRequest.get().getType())) { + // found matching event type + return optionalTerminalBoardingNotificationRequest; + } + } } - } + + return Optional.empty(); } - return Optional.empty(); - } - - /** - * Attempts to deserialize the webhook payload into a TerminalSettingsNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getTerminalSettingsNotificationRequest() { - - var optionalTerminalSettingsNotificationRequest = - getOptionalField(TerminalSettingsNotificationRequest.class); - - if (optionalTerminalSettingsNotificationRequest.isPresent()) { - // verify event type - for (var value : TerminalSettingsNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalTerminalSettingsNotificationRequest.get().getType())) { - // found matching event type - return optionalTerminalSettingsNotificationRequest; + /** + * Attempts to deserialize the webhook payload into a TerminalSettingsNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getTerminalSettingsNotificationRequest() { + + var optionalTerminalSettingsNotificationRequest = getOptionalField(TerminalSettingsNotificationRequest.class); + + if(optionalTerminalSettingsNotificationRequest.isPresent()) { + // verify event type + for (var value : TerminalSettingsNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalTerminalSettingsNotificationRequest.get().getType())) { + // found matching event type + return optionalTerminalSettingsNotificationRequest; + } + } } - } + + return Optional.empty(); } - return Optional.empty(); - } - - /** - * Deserializes the payload into the specified class type. - * - * @param clazz the class to deserialize into - * @param the type of the class - * @return an Optional containing the deserialized object, or empty if an error occurs - */ - private Optional getOptionalField(Class clazz) { - try { - T val = JSON.getMapper().readValue(payload, clazz); - return Optional.ofNullable(val); - } catch (Exception e) { - // an error has occurred during deserialization (object not found, deserialization error) - LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); - LOG.warning("Deserialization error: " + e.getMessage()); - return Optional.empty(); + /** + * Deserializes the payload into the specified class type. + * + * @param clazz the class to deserialize into + * @param the type of the class + * @return an Optional containing the deserialized object, or empty if an error occurs + */ + private Optional getOptionalField(Class clazz) { + try { + T val = JSON.getMapper().readValue(payload, clazz); + return Optional.ofNullable(val); + } catch (Exception e) { + // an error has occurred during deserialization (object not found, deserialization error) + LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); + LOG.warning("Deserialization error: " + e.getMessage()); + return Optional.empty(); + } } - } -} + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/managementwebhooks/MerchantCreatedNotificationRequest.java b/src/main/java/com/adyen/model/managementwebhooks/MerchantCreatedNotificationRequest.java index aa8536e88..2648ff6d5 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/MerchantCreatedNotificationRequest.java +++ b/src/main/java/com/adyen/model/managementwebhooks/MerchantCreatedNotificationRequest.java @@ -2,33 +2,40 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.managementwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.managementwebhooks.AccountCreateNotificationData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** MerchantCreatedNotificationRequest */ + +/** + * MerchantCreatedNotificationRequest + */ @JsonPropertyOrder({ MerchantCreatedNotificationRequest.JSON_PROPERTY_CREATED_AT, MerchantCreatedNotificationRequest.JSON_PROPERTY_DATA, MerchantCreatedNotificationRequest.JSON_PROPERTY_ENVIRONMENT, MerchantCreatedNotificationRequest.JSON_PROPERTY_TYPE }) + public class MerchantCreatedNotificationRequest { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -39,8 +46,11 @@ public class MerchantCreatedNotificationRequest { public static final String JSON_PROPERTY_ENVIRONMENT = "environment"; private String environment; - /** Type of notification. */ + /** + * Type of notification. + */ public enum TypeEnum { + MERCHANT_CREATED(String.valueOf("merchant.created")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +58,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,11 +79,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -81,14 +87,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public MerchantCreatedNotificationRequest() {} + public MerchantCreatedNotificationRequest() { + } /** * Timestamp for when the webhook was created. * * @param createdAt Timestamp for when the webhook was created. - * @return the current {@code MerchantCreatedNotificationRequest} instance, allowing for method - * chaining + * @return the current {@code MerchantCreatedNotificationRequest} instance, allowing for method chaining */ public MerchantCreatedNotificationRequest createdAt(OffsetDateTime createdAt) { this.createdAt = createdAt; @@ -97,7 +103,6 @@ public MerchantCreatedNotificationRequest createdAt(OffsetDateTime createdAt) { /** * Timestamp for when the webhook was created. - * * @return createdAt Timestamp for when the webhook was created. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @@ -120,9 +125,8 @@ public void setCreatedAt(OffsetDateTime createdAt) { /** * data * - * @param data - * @return the current {@code MerchantCreatedNotificationRequest} instance, allowing for method - * chaining + * @param data + * @return the current {@code MerchantCreatedNotificationRequest} instance, allowing for method chaining */ public MerchantCreatedNotificationRequest data(AccountCreateNotificationData data) { this.data = data; @@ -131,8 +135,7 @@ public MerchantCreatedNotificationRequest data(AccountCreateNotificationData dat /** * Get data - * - * @return data + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,7 +146,7 @@ public AccountCreateNotificationData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,12 +155,10 @@ public void setData(AccountCreateNotificationData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. - * @return the current {@code MerchantCreatedNotificationRequest} instance, allowing for method - * chaining + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @return the current {@code MerchantCreatedNotificationRequest} instance, allowing for method chaining */ public MerchantCreatedNotificationRequest environment(String environment) { this.environment = environment; @@ -165,10 +166,8 @@ public MerchantCreatedNotificationRequest environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * - * @return environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,10 +176,9 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,8 +190,7 @@ public void setEnvironment(String environment) { * Type of notification. * * @param type Type of notification. - * @return the current {@code MerchantCreatedNotificationRequest} instance, allowing for method - * chaining + * @return the current {@code MerchantCreatedNotificationRequest} instance, allowing for method chaining */ public MerchantCreatedNotificationRequest type(TypeEnum type) { this.type = type; @@ -202,7 +199,6 @@ public MerchantCreatedNotificationRequest type(TypeEnum type) { /** * Type of notification. - * * @return type Type of notification. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -222,7 +218,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this MerchantCreatedNotificationRequest object is equal to o. */ + /** + * Return true if this MerchantCreatedNotificationRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -231,12 +229,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - MerchantCreatedNotificationRequest merchantCreatedNotificationRequest = - (MerchantCreatedNotificationRequest) o; - return Objects.equals(this.createdAt, merchantCreatedNotificationRequest.createdAt) - && Objects.equals(this.data, merchantCreatedNotificationRequest.data) - && Objects.equals(this.environment, merchantCreatedNotificationRequest.environment) - && Objects.equals(this.type, merchantCreatedNotificationRequest.type); + MerchantCreatedNotificationRequest merchantCreatedNotificationRequest = (MerchantCreatedNotificationRequest) o; + return Objects.equals(this.createdAt, merchantCreatedNotificationRequest.createdAt) && + Objects.equals(this.data, merchantCreatedNotificationRequest.data) && + Objects.equals(this.environment, merchantCreatedNotificationRequest.environment) && + Objects.equals(this.type, merchantCreatedNotificationRequest.type); } @Override @@ -257,7 +254,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -266,24 +264,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of MerchantCreatedNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of MerchantCreatedNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * MerchantCreatedNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to MerchantCreatedNotificationRequest */ - public static MerchantCreatedNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static MerchantCreatedNotificationRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MerchantCreatedNotificationRequest.class); } - - /** - * Convert an instance of MerchantCreatedNotificationRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of MerchantCreatedNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/MerchantUpdatedNotificationRequest.java b/src/main/java/com/adyen/model/managementwebhooks/MerchantUpdatedNotificationRequest.java index 0e8404f70..6e07d2ffd 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/MerchantUpdatedNotificationRequest.java +++ b/src/main/java/com/adyen/model/managementwebhooks/MerchantUpdatedNotificationRequest.java @@ -2,33 +2,40 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.managementwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.managementwebhooks.AccountUpdateNotificationData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** MerchantUpdatedNotificationRequest */ + +/** + * MerchantUpdatedNotificationRequest + */ @JsonPropertyOrder({ MerchantUpdatedNotificationRequest.JSON_PROPERTY_CREATED_AT, MerchantUpdatedNotificationRequest.JSON_PROPERTY_DATA, MerchantUpdatedNotificationRequest.JSON_PROPERTY_ENVIRONMENT, MerchantUpdatedNotificationRequest.JSON_PROPERTY_TYPE }) + public class MerchantUpdatedNotificationRequest { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -39,8 +46,11 @@ public class MerchantUpdatedNotificationRequest { public static final String JSON_PROPERTY_ENVIRONMENT = "environment"; private String environment; - /** Type of notification. */ + /** + * Type of notification. + */ public enum TypeEnum { + MERCHANT_UPDATED(String.valueOf("merchant.updated")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +58,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,11 +79,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -81,14 +87,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public MerchantUpdatedNotificationRequest() {} + public MerchantUpdatedNotificationRequest() { + } /** * Timestamp for when the webhook was created. * * @param createdAt Timestamp for when the webhook was created. - * @return the current {@code MerchantUpdatedNotificationRequest} instance, allowing for method - * chaining + * @return the current {@code MerchantUpdatedNotificationRequest} instance, allowing for method chaining */ public MerchantUpdatedNotificationRequest createdAt(OffsetDateTime createdAt) { this.createdAt = createdAt; @@ -97,7 +103,6 @@ public MerchantUpdatedNotificationRequest createdAt(OffsetDateTime createdAt) { /** * Timestamp for when the webhook was created. - * * @return createdAt Timestamp for when the webhook was created. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @@ -120,9 +125,8 @@ public void setCreatedAt(OffsetDateTime createdAt) { /** * data * - * @param data - * @return the current {@code MerchantUpdatedNotificationRequest} instance, allowing for method - * chaining + * @param data + * @return the current {@code MerchantUpdatedNotificationRequest} instance, allowing for method chaining */ public MerchantUpdatedNotificationRequest data(AccountUpdateNotificationData data) { this.data = data; @@ -131,8 +135,7 @@ public MerchantUpdatedNotificationRequest data(AccountUpdateNotificationData dat /** * Get data - * - * @return data + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,7 +146,7 @@ public AccountUpdateNotificationData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,12 +155,10 @@ public void setData(AccountUpdateNotificationData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. - * @return the current {@code MerchantUpdatedNotificationRequest} instance, allowing for method - * chaining + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @return the current {@code MerchantUpdatedNotificationRequest} instance, allowing for method chaining */ public MerchantUpdatedNotificationRequest environment(String environment) { this.environment = environment; @@ -165,10 +166,8 @@ public MerchantUpdatedNotificationRequest environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * - * @return environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,10 +176,9 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,8 +190,7 @@ public void setEnvironment(String environment) { * Type of notification. * * @param type Type of notification. - * @return the current {@code MerchantUpdatedNotificationRequest} instance, allowing for method - * chaining + * @return the current {@code MerchantUpdatedNotificationRequest} instance, allowing for method chaining */ public MerchantUpdatedNotificationRequest type(TypeEnum type) { this.type = type; @@ -202,7 +199,6 @@ public MerchantUpdatedNotificationRequest type(TypeEnum type) { /** * Type of notification. - * * @return type Type of notification. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -222,7 +218,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this MerchantUpdatedNotificationRequest object is equal to o. */ + /** + * Return true if this MerchantUpdatedNotificationRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -231,12 +229,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - MerchantUpdatedNotificationRequest merchantUpdatedNotificationRequest = - (MerchantUpdatedNotificationRequest) o; - return Objects.equals(this.createdAt, merchantUpdatedNotificationRequest.createdAt) - && Objects.equals(this.data, merchantUpdatedNotificationRequest.data) - && Objects.equals(this.environment, merchantUpdatedNotificationRequest.environment) - && Objects.equals(this.type, merchantUpdatedNotificationRequest.type); + MerchantUpdatedNotificationRequest merchantUpdatedNotificationRequest = (MerchantUpdatedNotificationRequest) o; + return Objects.equals(this.createdAt, merchantUpdatedNotificationRequest.createdAt) && + Objects.equals(this.data, merchantUpdatedNotificationRequest.data) && + Objects.equals(this.environment, merchantUpdatedNotificationRequest.environment) && + Objects.equals(this.type, merchantUpdatedNotificationRequest.type); } @Override @@ -257,7 +254,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -266,24 +264,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of MerchantUpdatedNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of MerchantUpdatedNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * MerchantUpdatedNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to MerchantUpdatedNotificationRequest */ - public static MerchantUpdatedNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static MerchantUpdatedNotificationRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MerchantUpdatedNotificationRequest.class); } - - /** - * Convert an instance of MerchantUpdatedNotificationRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of MerchantUpdatedNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/MidServiceNotificationData.java b/src/main/java/com/adyen/model/managementwebhooks/MidServiceNotificationData.java index ed4003593..9f4280232 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/MidServiceNotificationData.java +++ b/src/main/java/com/adyen/model/managementwebhooks/MidServiceNotificationData.java @@ -2,26 +2,31 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.managementwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** MidServiceNotificationData */ +/** + * MidServiceNotificationData + */ @JsonPropertyOrder({ MidServiceNotificationData.JSON_PROPERTY_ALLOWED, MidServiceNotificationData.JSON_PROPERTY_ENABLED, @@ -33,6 +38,7 @@ MidServiceNotificationData.JSON_PROPERTY_TYPE, MidServiceNotificationData.JSON_PROPERTY_VERIFICATION_STATUS }) + public class MidServiceNotificationData { public static final String JSON_PROPERTY_ALLOWED = "allowed"; private Boolean allowed; @@ -50,11 +56,10 @@ public class MidServiceNotificationData { private String reference; /** - * The status of the request to add a payment method. Possible values: * **success**: the payment - * method was added. * **failure**: the request failed. * **capabilityPending**: the - * **receivePayments** capability is not allowed. + * The status of the request to add a payment method. Possible values: * **success**: the payment method was added. * **failure**: the request failed. * **capabilityPending**: the **receivePayments** capability is not allowed. */ public enum StatusEnum { + SUCCESS(String.valueOf("success")), FAILURE(String.valueOf("failure")), @@ -70,7 +75,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -91,11 +96,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -113,6 +114,7 @@ public static StatusEnum fromValue(String value) { * Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** */ public enum VerificationStatusEnum { + VALID(String.valueOf("valid")), PENDING(String.valueOf("pending")), @@ -126,7 +128,7 @@ public enum VerificationStatusEnum { private String value; VerificationStatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -147,11 +149,7 @@ public static VerificationStatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "VerificationStatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(VerificationStatusEnum.values())); + LOG.warning("VerificationStatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(VerificationStatusEnum.values())); return null; } } @@ -159,14 +157,13 @@ public static VerificationStatusEnum fromValue(String value) { public static final String JSON_PROPERTY_VERIFICATION_STATUS = "verificationStatus"; private VerificationStatusEnum verificationStatus; - public MidServiceNotificationData() {} + public MidServiceNotificationData() { + } /** - * Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after - * screening your merchant account. + * Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account. * - * @param allowed Indicates whether receiving payments is allowed. This value is set to **true** - * by Adyen after screening your merchant account. + * @param allowed Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account. * @return the current {@code MidServiceNotificationData} instance, allowing for method chaining */ public MidServiceNotificationData allowed(Boolean allowed) { @@ -175,11 +172,8 @@ public MidServiceNotificationData allowed(Boolean allowed) { } /** - * Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after - * screening your merchant account. - * - * @return allowed Indicates whether receiving payments is allowed. This value is set to **true** - * by Adyen after screening your merchant account. + * Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account. + * @return allowed Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account. */ @JsonProperty(JSON_PROPERTY_ALLOWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,11 +182,9 @@ public Boolean getAllowed() { } /** - * Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after - * screening your merchant account. + * Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account. * - * @param allowed Indicates whether receiving payments is allowed. This value is set to **true** - * by Adyen after screening your merchant account. + * @param allowed Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account. */ @JsonProperty(JSON_PROPERTY_ALLOWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -203,8 +195,7 @@ public void setAllowed(Boolean allowed) { /** * Indicates whether the payment method is enabled (**true**) or disabled (**false**). * - * @param enabled Indicates whether the payment method is enabled (**true**) or disabled - * (**false**). + * @param enabled Indicates whether the payment method is enabled (**true**) or disabled (**false**). * @return the current {@code MidServiceNotificationData} instance, allowing for method chaining */ public MidServiceNotificationData enabled(Boolean enabled) { @@ -214,9 +205,7 @@ public MidServiceNotificationData enabled(Boolean enabled) { /** * Indicates whether the payment method is enabled (**true**) or disabled (**false**). - * - * @return enabled Indicates whether the payment method is enabled (**true**) or disabled - * (**false**). + * @return enabled Indicates whether the payment method is enabled (**true**) or disabled (**false**). */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -227,8 +216,7 @@ public Boolean getEnabled() { /** * Indicates whether the payment method is enabled (**true**) or disabled (**false**). * - * @param enabled Indicates whether the payment method is enabled (**true**) or disabled - * (**false**). + * @param enabled Indicates whether the payment method is enabled (**true**) or disabled (**false**). */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -249,7 +237,6 @@ public MidServiceNotificationData id(String id) { /** * The unique identifier of the resource. - * * @return id The unique identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -282,7 +269,6 @@ public MidServiceNotificationData merchantId(String merchantId) { /** * The unique identifier of the merchant account. - * * @return merchantId The unique identifier of the merchant account. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @@ -315,7 +301,6 @@ public MidServiceNotificationData reference(String reference) { /** * Your reference for the payment method. - * * @return reference Your reference for the payment method. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -336,13 +321,9 @@ public void setReference(String reference) { } /** - * The status of the request to add a payment method. Possible values: * **success**: the payment - * method was added. * **failure**: the request failed. * **capabilityPending**: the - * **receivePayments** capability is not allowed. + * The status of the request to add a payment method. Possible values: * **success**: the payment method was added. * **failure**: the request failed. * **capabilityPending**: the **receivePayments** capability is not allowed. * - * @param status The status of the request to add a payment method. Possible values: * - * **success**: the payment method was added. * **failure**: the request failed. * - * **capabilityPending**: the **receivePayments** capability is not allowed. + * @param status The status of the request to add a payment method. Possible values: * **success**: the payment method was added. * **failure**: the request failed. * **capabilityPending**: the **receivePayments** capability is not allowed. * @return the current {@code MidServiceNotificationData} instance, allowing for method chaining */ public MidServiceNotificationData status(StatusEnum status) { @@ -351,13 +332,8 @@ public MidServiceNotificationData status(StatusEnum status) { } /** - * The status of the request to add a payment method. Possible values: * **success**: the payment - * method was added. * **failure**: the request failed. * **capabilityPending**: the - * **receivePayments** capability is not allowed. - * - * @return status The status of the request to add a payment method. Possible values: * - * **success**: the payment method was added. * **failure**: the request failed. * - * **capabilityPending**: the **receivePayments** capability is not allowed. + * The status of the request to add a payment method. Possible values: * **success**: the payment method was added. * **failure**: the request failed. * **capabilityPending**: the **receivePayments** capability is not allowed. + * @return status The status of the request to add a payment method. Possible values: * **success**: the payment method was added. * **failure**: the request failed. * **capabilityPending**: the **receivePayments** capability is not allowed. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -366,13 +342,9 @@ public StatusEnum getStatus() { } /** - * The status of the request to add a payment method. Possible values: * **success**: the payment - * method was added. * **failure**: the request failed. * **capabilityPending**: the - * **receivePayments** capability is not allowed. + * The status of the request to add a payment method. Possible values: * **success**: the payment method was added. * **failure**: the request failed. * **capabilityPending**: the **receivePayments** capability is not allowed. * - * @param status The status of the request to add a payment method. Possible values: * - * **success**: the payment method was added. * **failure**: the request failed. * - * **capabilityPending**: the **receivePayments** capability is not allowed. + * @param status The status of the request to add a payment method. Possible values: * **success**: the payment method was added. * **failure**: the request failed. * **capabilityPending**: the **receivePayments** capability is not allowed. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -381,13 +353,9 @@ public void setStatus(StatusEnum status) { } /** - * The unique identifier of the - * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/merchants/{id}/paymentMethodSettings__reqParam_storeId), - * if any. + * The unique identifier of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/merchants/{id}/paymentMethodSettings__reqParam_storeId), if any. * - * @param storeId The unique identifier of the - * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/merchants/{id}/paymentMethodSettings__reqParam_storeId), - * if any. + * @param storeId The unique identifier of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/merchants/{id}/paymentMethodSettings__reqParam_storeId), if any. * @return the current {@code MidServiceNotificationData} instance, allowing for method chaining */ public MidServiceNotificationData storeId(String storeId) { @@ -396,13 +364,8 @@ public MidServiceNotificationData storeId(String storeId) { } /** - * The unique identifier of the - * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/merchants/{id}/paymentMethodSettings__reqParam_storeId), - * if any. - * - * @return storeId The unique identifier of the - * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/merchants/{id}/paymentMethodSettings__reqParam_storeId), - * if any. + * The unique identifier of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/merchants/{id}/paymentMethodSettings__reqParam_storeId), if any. + * @return storeId The unique identifier of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/merchants/{id}/paymentMethodSettings__reqParam_storeId), if any. */ @JsonProperty(JSON_PROPERTY_STORE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -411,13 +374,9 @@ public String getStoreId() { } /** - * The unique identifier of the - * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/merchants/{id}/paymentMethodSettings__reqParam_storeId), - * if any. + * The unique identifier of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/merchants/{id}/paymentMethodSettings__reqParam_storeId), if any. * - * @param storeId The unique identifier of the - * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/merchants/{id}/paymentMethodSettings__reqParam_storeId), - * if any. + * @param storeId The unique identifier of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/merchants/{id}/paymentMethodSettings__reqParam_storeId), if any. */ @JsonProperty(JSON_PROPERTY_STORE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -426,11 +385,9 @@ public void setStoreId(String storeId) { } /** - * Payment method - * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). * - * @param type Payment method - * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * @param type Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). * @return the current {@code MidServiceNotificationData} instance, allowing for method chaining */ public MidServiceNotificationData type(String type) { @@ -439,11 +396,8 @@ public MidServiceNotificationData type(String type) { } /** - * Payment method - * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). - * - * @return type Payment method - * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * @return type Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -452,11 +406,9 @@ public String getType() { } /** - * Payment method - * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). * - * @param type Payment method - * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * @param type Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -467,8 +419,7 @@ public void setType(String type) { /** * Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** * - * @param verificationStatus Payment method status. Possible values: * **valid** * **pending** * - * **invalid** * **rejected** + * @param verificationStatus Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** * @return the current {@code MidServiceNotificationData} instance, allowing for method chaining */ public MidServiceNotificationData verificationStatus(VerificationStatusEnum verificationStatus) { @@ -478,9 +429,7 @@ public MidServiceNotificationData verificationStatus(VerificationStatusEnum veri /** * Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** - * - * @return verificationStatus Payment method status. Possible values: * **valid** * **pending** * - * **invalid** * **rejected** + * @return verificationStatus Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** */ @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -491,8 +440,7 @@ public VerificationStatusEnum getVerificationStatus() { /** * Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** * - * @param verificationStatus Payment method status. Possible values: * **valid** * **pending** * - * **invalid** * **rejected** + * @param verificationStatus Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** */ @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -500,7 +448,9 @@ public void setVerificationStatus(VerificationStatusEnum verificationStatus) { this.verificationStatus = verificationStatus; } - /** Return true if this MidServiceNotificationData object is equal to o. */ + /** + * Return true if this MidServiceNotificationData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -510,21 +460,20 @@ public boolean equals(Object o) { return false; } MidServiceNotificationData midServiceNotificationData = (MidServiceNotificationData) o; - return Objects.equals(this.allowed, midServiceNotificationData.allowed) - && Objects.equals(this.enabled, midServiceNotificationData.enabled) - && Objects.equals(this.id, midServiceNotificationData.id) - && Objects.equals(this.merchantId, midServiceNotificationData.merchantId) - && Objects.equals(this.reference, midServiceNotificationData.reference) - && Objects.equals(this.status, midServiceNotificationData.status) - && Objects.equals(this.storeId, midServiceNotificationData.storeId) - && Objects.equals(this.type, midServiceNotificationData.type) - && Objects.equals(this.verificationStatus, midServiceNotificationData.verificationStatus); + return Objects.equals(this.allowed, midServiceNotificationData.allowed) && + Objects.equals(this.enabled, midServiceNotificationData.enabled) && + Objects.equals(this.id, midServiceNotificationData.id) && + Objects.equals(this.merchantId, midServiceNotificationData.merchantId) && + Objects.equals(this.reference, midServiceNotificationData.reference) && + Objects.equals(this.status, midServiceNotificationData.status) && + Objects.equals(this.storeId, midServiceNotificationData.storeId) && + Objects.equals(this.type, midServiceNotificationData.type) && + Objects.equals(this.verificationStatus, midServiceNotificationData.verificationStatus); } @Override public int hashCode() { - return Objects.hash( - allowed, enabled, id, merchantId, reference, status, storeId, type, verificationStatus); + return Objects.hash(allowed, enabled, id, merchantId, reference, status, storeId, type, verificationStatus); } @Override @@ -545,7 +494,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -554,24 +504,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of MidServiceNotificationData given an JSON string * * @param jsonString JSON string * @return An instance of MidServiceNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * MidServiceNotificationData + * @throws JsonProcessingException if the JSON string is invalid with respect to MidServiceNotificationData */ - public static MidServiceNotificationData fromJson(String jsonString) - throws JsonProcessingException { + public static MidServiceNotificationData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MidServiceNotificationData.class); } - - /** - * Convert an instance of MidServiceNotificationData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of MidServiceNotificationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodCreatedNotificationRequest.java b/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodCreatedNotificationRequest.java index 280047e23..2734a2b9b 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodCreatedNotificationRequest.java +++ b/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodCreatedNotificationRequest.java @@ -2,33 +2,40 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.managementwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.managementwebhooks.MidServiceNotificationData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** PaymentMethodCreatedNotificationRequest */ + +/** + * PaymentMethodCreatedNotificationRequest + */ @JsonPropertyOrder({ PaymentMethodCreatedNotificationRequest.JSON_PROPERTY_CREATED_AT, PaymentMethodCreatedNotificationRequest.JSON_PROPERTY_DATA, PaymentMethodCreatedNotificationRequest.JSON_PROPERTY_ENVIRONMENT, PaymentMethodCreatedNotificationRequest.JSON_PROPERTY_TYPE }) + public class PaymentMethodCreatedNotificationRequest { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -39,8 +46,11 @@ public class PaymentMethodCreatedNotificationRequest { public static final String JSON_PROPERTY_ENVIRONMENT = "environment"; private String environment; - /** Type of notification. */ + /** + * Type of notification. + */ public enum TypeEnum { + PAYMENTMETHOD_CREATED(String.valueOf("paymentMethod.created")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +58,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,11 +79,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -81,14 +87,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PaymentMethodCreatedNotificationRequest() {} + public PaymentMethodCreatedNotificationRequest() { + } /** * Timestamp for when the webhook was created. * * @param createdAt Timestamp for when the webhook was created. - * @return the current {@code PaymentMethodCreatedNotificationRequest} instance, allowing for - * method chaining + * @return the current {@code PaymentMethodCreatedNotificationRequest} instance, allowing for method chaining */ public PaymentMethodCreatedNotificationRequest createdAt(OffsetDateTime createdAt) { this.createdAt = createdAt; @@ -97,7 +103,6 @@ public PaymentMethodCreatedNotificationRequest createdAt(OffsetDateTime createdA /** * Timestamp for when the webhook was created. - * * @return createdAt Timestamp for when the webhook was created. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @@ -120,9 +125,8 @@ public void setCreatedAt(OffsetDateTime createdAt) { /** * data * - * @param data - * @return the current {@code PaymentMethodCreatedNotificationRequest} instance, allowing for - * method chaining + * @param data + * @return the current {@code PaymentMethodCreatedNotificationRequest} instance, allowing for method chaining */ public PaymentMethodCreatedNotificationRequest data(MidServiceNotificationData data) { this.data = data; @@ -131,8 +135,7 @@ public PaymentMethodCreatedNotificationRequest data(MidServiceNotificationData d /** * Get data - * - * @return data + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,7 +146,7 @@ public MidServiceNotificationData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,12 +155,10 @@ public void setData(MidServiceNotificationData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. - * @return the current {@code PaymentMethodCreatedNotificationRequest} instance, allowing for - * method chaining + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @return the current {@code PaymentMethodCreatedNotificationRequest} instance, allowing for method chaining */ public PaymentMethodCreatedNotificationRequest environment(String environment) { this.environment = environment; @@ -165,10 +166,8 @@ public PaymentMethodCreatedNotificationRequest environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * - * @return environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,10 +176,9 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,8 +190,7 @@ public void setEnvironment(String environment) { * Type of notification. * * @param type Type of notification. - * @return the current {@code PaymentMethodCreatedNotificationRequest} instance, allowing for - * method chaining + * @return the current {@code PaymentMethodCreatedNotificationRequest} instance, allowing for method chaining */ public PaymentMethodCreatedNotificationRequest type(TypeEnum type) { this.type = type; @@ -202,7 +199,6 @@ public PaymentMethodCreatedNotificationRequest type(TypeEnum type) { /** * Type of notification. - * * @return type Type of notification. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -222,7 +218,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this PaymentMethodCreatedNotificationRequest object is equal to o. */ + /** + * Return true if this PaymentMethodCreatedNotificationRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -231,12 +229,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaymentMethodCreatedNotificationRequest paymentMethodCreatedNotificationRequest = - (PaymentMethodCreatedNotificationRequest) o; - return Objects.equals(this.createdAt, paymentMethodCreatedNotificationRequest.createdAt) - && Objects.equals(this.data, paymentMethodCreatedNotificationRequest.data) - && Objects.equals(this.environment, paymentMethodCreatedNotificationRequest.environment) - && Objects.equals(this.type, paymentMethodCreatedNotificationRequest.type); + PaymentMethodCreatedNotificationRequest paymentMethodCreatedNotificationRequest = (PaymentMethodCreatedNotificationRequest) o; + return Objects.equals(this.createdAt, paymentMethodCreatedNotificationRequest.createdAt) && + Objects.equals(this.data, paymentMethodCreatedNotificationRequest.data) && + Objects.equals(this.environment, paymentMethodCreatedNotificationRequest.environment) && + Objects.equals(this.type, paymentMethodCreatedNotificationRequest.type); } @Override @@ -257,7 +254,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -266,24 +264,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentMethodCreatedNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of PaymentMethodCreatedNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentMethodCreatedNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethodCreatedNotificationRequest */ - public static PaymentMethodCreatedNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static PaymentMethodCreatedNotificationRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentMethodCreatedNotificationRequest.class); } - - /** - * Convert an instance of PaymentMethodCreatedNotificationRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentMethodCreatedNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodNotificationResponse.java b/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodNotificationResponse.java index 05eadf327..82886bf83 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodNotificationResponse.java +++ b/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodNotificationResponse.java @@ -2,37 +2,47 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.managementwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** PaymentMethodNotificationResponse */ -@JsonPropertyOrder({PaymentMethodNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) + +/** + * PaymentMethodNotificationResponse + */ +@JsonPropertyOrder({ + PaymentMethodNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE +}) + public class PaymentMethodNotificationResponse { public static final String JSON_PROPERTY_NOTIFICATION_RESPONSE = "notificationResponse"; private String notificationResponse; - public PaymentMethodNotificationResponse() {} + public PaymentMethodNotificationResponse() { + } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return the current {@code PaymentMethodNotificationResponse} instance, allowing for method - * chaining + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return the current {@code PaymentMethodNotificationResponse} instance, allowing for method chaining */ public PaymentMethodNotificationResponse notificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; @@ -40,11 +50,8 @@ public PaymentMethodNotificationResponse notificationResponse(String notificatio } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * - * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -53,11 +60,9 @@ public String getNotificationResponse() { } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -65,7 +70,9 @@ public void setNotificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; } - /** Return true if this PaymentMethodNotificationResponse object is equal to o. */ + /** + * Return true if this PaymentMethodNotificationResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -74,10 +81,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaymentMethodNotificationResponse paymentMethodNotificationResponse = - (PaymentMethodNotificationResponse) o; - return Objects.equals( - this.notificationResponse, paymentMethodNotificationResponse.notificationResponse); + PaymentMethodNotificationResponse paymentMethodNotificationResponse = (PaymentMethodNotificationResponse) o; + return Objects.equals(this.notificationResponse, paymentMethodNotificationResponse.notificationResponse); } @Override @@ -89,15 +94,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentMethodNotificationResponse {\n"); - sb.append(" notificationResponse: ") - .append(toIndentedString(notificationResponse)) - .append("\n"); + sb.append(" notificationResponse: ").append(toIndentedString(notificationResponse)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -106,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentMethodNotificationResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaymentMethodNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentMethodNotificationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethodNotificationResponse */ - public static PaymentMethodNotificationResponse fromJson(String jsonString) - throws JsonProcessingException { + public static PaymentMethodNotificationResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentMethodNotificationResponse.class); } - - /** - * Convert an instance of PaymentMethodNotificationResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentMethodNotificationResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodRequestRemovedNotificationRequest.java b/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodRequestRemovedNotificationRequest.java index 3b5017488..71c8afd9b 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodRequestRemovedNotificationRequest.java +++ b/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodRequestRemovedNotificationRequest.java @@ -2,33 +2,40 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.managementwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.managementwebhooks.MidServiceNotificationData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** PaymentMethodRequestRemovedNotificationRequest */ + +/** + * PaymentMethodRequestRemovedNotificationRequest + */ @JsonPropertyOrder({ PaymentMethodRequestRemovedNotificationRequest.JSON_PROPERTY_CREATED_AT, PaymentMethodRequestRemovedNotificationRequest.JSON_PROPERTY_DATA, PaymentMethodRequestRemovedNotificationRequest.JSON_PROPERTY_ENVIRONMENT, PaymentMethodRequestRemovedNotificationRequest.JSON_PROPERTY_TYPE }) + public class PaymentMethodRequestRemovedNotificationRequest { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -39,8 +46,11 @@ public class PaymentMethodRequestRemovedNotificationRequest { public static final String JSON_PROPERTY_ENVIRONMENT = "environment"; private String environment; - /** Type of notification. */ + /** + * Type of notification. + */ public enum TypeEnum { + PAYMENTMETHODREQUEST_REMOVED(String.valueOf("paymentMethodRequest.removed")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +58,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,11 +79,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -81,14 +87,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PaymentMethodRequestRemovedNotificationRequest() {} + public PaymentMethodRequestRemovedNotificationRequest() { + } /** * Timestamp for when the webhook was created. * * @param createdAt Timestamp for when the webhook was created. - * @return the current {@code PaymentMethodRequestRemovedNotificationRequest} instance, allowing - * for method chaining + * @return the current {@code PaymentMethodRequestRemovedNotificationRequest} instance, allowing for method chaining */ public PaymentMethodRequestRemovedNotificationRequest createdAt(OffsetDateTime createdAt) { this.createdAt = createdAt; @@ -97,7 +103,6 @@ public PaymentMethodRequestRemovedNotificationRequest createdAt(OffsetDateTime c /** * Timestamp for when the webhook was created. - * * @return createdAt Timestamp for when the webhook was created. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @@ -120,9 +125,8 @@ public void setCreatedAt(OffsetDateTime createdAt) { /** * data * - * @param data - * @return the current {@code PaymentMethodRequestRemovedNotificationRequest} instance, allowing - * for method chaining + * @param data + * @return the current {@code PaymentMethodRequestRemovedNotificationRequest} instance, allowing for method chaining */ public PaymentMethodRequestRemovedNotificationRequest data(MidServiceNotificationData data) { this.data = data; @@ -131,8 +135,7 @@ public PaymentMethodRequestRemovedNotificationRequest data(MidServiceNotificatio /** * Get data - * - * @return data + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,7 +146,7 @@ public MidServiceNotificationData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,12 +155,10 @@ public void setData(MidServiceNotificationData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. - * @return the current {@code PaymentMethodRequestRemovedNotificationRequest} instance, allowing - * for method chaining + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @return the current {@code PaymentMethodRequestRemovedNotificationRequest} instance, allowing for method chaining */ public PaymentMethodRequestRemovedNotificationRequest environment(String environment) { this.environment = environment; @@ -165,10 +166,8 @@ public PaymentMethodRequestRemovedNotificationRequest environment(String environ } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * - * @return environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,10 +176,9 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,8 +190,7 @@ public void setEnvironment(String environment) { * Type of notification. * * @param type Type of notification. - * @return the current {@code PaymentMethodRequestRemovedNotificationRequest} instance, allowing - * for method chaining + * @return the current {@code PaymentMethodRequestRemovedNotificationRequest} instance, allowing for method chaining */ public PaymentMethodRequestRemovedNotificationRequest type(TypeEnum type) { this.type = type; @@ -202,7 +199,6 @@ public PaymentMethodRequestRemovedNotificationRequest type(TypeEnum type) { /** * Type of notification. - * * @return type Type of notification. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -222,7 +218,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this PaymentMethodRequestRemovedNotificationRequest object is equal to o. */ + /** + * Return true if this PaymentMethodRequestRemovedNotificationRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -231,13 +229,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaymentMethodRequestRemovedNotificationRequest paymentMethodRequestRemovedNotificationRequest = - (PaymentMethodRequestRemovedNotificationRequest) o; - return Objects.equals(this.createdAt, paymentMethodRequestRemovedNotificationRequest.createdAt) - && Objects.equals(this.data, paymentMethodRequestRemovedNotificationRequest.data) - && Objects.equals( - this.environment, paymentMethodRequestRemovedNotificationRequest.environment) - && Objects.equals(this.type, paymentMethodRequestRemovedNotificationRequest.type); + PaymentMethodRequestRemovedNotificationRequest paymentMethodRequestRemovedNotificationRequest = (PaymentMethodRequestRemovedNotificationRequest) o; + return Objects.equals(this.createdAt, paymentMethodRequestRemovedNotificationRequest.createdAt) && + Objects.equals(this.data, paymentMethodRequestRemovedNotificationRequest.data) && + Objects.equals(this.environment, paymentMethodRequestRemovedNotificationRequest.environment) && + Objects.equals(this.type, paymentMethodRequestRemovedNotificationRequest.type); } @Override @@ -258,7 +254,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -267,25 +264,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentMethodRequestRemovedNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of PaymentMethodRequestRemovedNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentMethodRequestRemovedNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethodRequestRemovedNotificationRequest */ - public static PaymentMethodRequestRemovedNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { - return JSON.getMapper() - .readValue(jsonString, PaymentMethodRequestRemovedNotificationRequest.class); + public static PaymentMethodRequestRemovedNotificationRequest fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, PaymentMethodRequestRemovedNotificationRequest.class); } - - /** - * Convert an instance of PaymentMethodRequestRemovedNotificationRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentMethodRequestRemovedNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodScheduledForRemovalNotificationRequest.java b/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodScheduledForRemovalNotificationRequest.java index 938a6b65d..248146d29 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodScheduledForRemovalNotificationRequest.java +++ b/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodScheduledForRemovalNotificationRequest.java @@ -2,33 +2,40 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.managementwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.managementwebhooks.MidServiceNotificationData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** PaymentMethodScheduledForRemovalNotificationRequest */ + +/** + * PaymentMethodScheduledForRemovalNotificationRequest + */ @JsonPropertyOrder({ PaymentMethodScheduledForRemovalNotificationRequest.JSON_PROPERTY_CREATED_AT, PaymentMethodScheduledForRemovalNotificationRequest.JSON_PROPERTY_DATA, PaymentMethodScheduledForRemovalNotificationRequest.JSON_PROPERTY_ENVIRONMENT, PaymentMethodScheduledForRemovalNotificationRequest.JSON_PROPERTY_TYPE }) + public class PaymentMethodScheduledForRemovalNotificationRequest { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -39,17 +46,19 @@ public class PaymentMethodScheduledForRemovalNotificationRequest { public static final String JSON_PROPERTY_ENVIRONMENT = "environment"; private String environment; - /** Type of notification. */ + /** + * Type of notification. + */ public enum TypeEnum { - PAYMENTMETHODREQUEST_SCHEDULEDFORREMOVAL( - String.valueOf("paymentMethodRequest.scheduledForRemoval")); + + PAYMENTMETHODREQUEST_SCHEDULEDFORREMOVAL(String.valueOf("paymentMethodRequest.scheduledForRemoval")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -70,11 +79,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -82,14 +87,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PaymentMethodScheduledForRemovalNotificationRequest() {} + public PaymentMethodScheduledForRemovalNotificationRequest() { + } /** * Timestamp for when the webhook was created. * * @param createdAt Timestamp for when the webhook was created. - * @return the current {@code PaymentMethodScheduledForRemovalNotificationRequest} instance, - * allowing for method chaining + * @return the current {@code PaymentMethodScheduledForRemovalNotificationRequest} instance, allowing for method chaining */ public PaymentMethodScheduledForRemovalNotificationRequest createdAt(OffsetDateTime createdAt) { this.createdAt = createdAt; @@ -98,7 +103,6 @@ public PaymentMethodScheduledForRemovalNotificationRequest createdAt(OffsetDateT /** * Timestamp for when the webhook was created. - * * @return createdAt Timestamp for when the webhook was created. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @@ -121,9 +125,8 @@ public void setCreatedAt(OffsetDateTime createdAt) { /** * data * - * @param data - * @return the current {@code PaymentMethodScheduledForRemovalNotificationRequest} instance, - * allowing for method chaining + * @param data + * @return the current {@code PaymentMethodScheduledForRemovalNotificationRequest} instance, allowing for method chaining */ public PaymentMethodScheduledForRemovalNotificationRequest data(MidServiceNotificationData data) { this.data = data; @@ -132,8 +135,7 @@ public PaymentMethodScheduledForRemovalNotificationRequest data(MidServiceNotifi /** * Get data - * - * @return data + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,7 +146,7 @@ public MidServiceNotificationData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -153,12 +155,10 @@ public void setData(MidServiceNotificationData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. - * @return the current {@code PaymentMethodScheduledForRemovalNotificationRequest} instance, - * allowing for method chaining + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @return the current {@code PaymentMethodScheduledForRemovalNotificationRequest} instance, allowing for method chaining */ public PaymentMethodScheduledForRemovalNotificationRequest environment(String environment) { this.environment = environment; @@ -166,10 +166,8 @@ public PaymentMethodScheduledForRemovalNotificationRequest environment(String en } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * - * @return environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,10 +176,9 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,8 +190,7 @@ public void setEnvironment(String environment) { * Type of notification. * * @param type Type of notification. - * @return the current {@code PaymentMethodScheduledForRemovalNotificationRequest} instance, - * allowing for method chaining + * @return the current {@code PaymentMethodScheduledForRemovalNotificationRequest} instance, allowing for method chaining */ public PaymentMethodScheduledForRemovalNotificationRequest type(TypeEnum type) { this.type = type; @@ -203,7 +199,6 @@ public PaymentMethodScheduledForRemovalNotificationRequest type(TypeEnum type) { /** * Type of notification. - * * @return type Type of notification. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -234,15 +229,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaymentMethodScheduledForRemovalNotificationRequest - paymentMethodScheduledForRemovalNotificationRequest = - (PaymentMethodScheduledForRemovalNotificationRequest) o; - return Objects.equals( - this.createdAt, paymentMethodScheduledForRemovalNotificationRequest.createdAt) - && Objects.equals(this.data, paymentMethodScheduledForRemovalNotificationRequest.data) - && Objects.equals( - this.environment, paymentMethodScheduledForRemovalNotificationRequest.environment) - && Objects.equals(this.type, paymentMethodScheduledForRemovalNotificationRequest.type); + PaymentMethodScheduledForRemovalNotificationRequest paymentMethodScheduledForRemovalNotificationRequest = (PaymentMethodScheduledForRemovalNotificationRequest) o; + return Objects.equals(this.createdAt, paymentMethodScheduledForRemovalNotificationRequest.createdAt) && + Objects.equals(this.data, paymentMethodScheduledForRemovalNotificationRequest.data) && + Objects.equals(this.environment, paymentMethodScheduledForRemovalNotificationRequest.environment) && + Objects.equals(this.type, paymentMethodScheduledForRemovalNotificationRequest.type); } @Override @@ -263,7 +254,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -272,25 +264,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentMethodScheduledForRemovalNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of PaymentMethodScheduledForRemovalNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentMethodScheduledForRemovalNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethodScheduledForRemovalNotificationRequest */ - public static PaymentMethodScheduledForRemovalNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { - return JSON.getMapper() - .readValue(jsonString, PaymentMethodScheduledForRemovalNotificationRequest.class); + public static PaymentMethodScheduledForRemovalNotificationRequest fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, PaymentMethodScheduledForRemovalNotificationRequest.class); } - - /** - * Convert an instance of PaymentMethodScheduledForRemovalNotificationRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentMethodScheduledForRemovalNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/RemediatingAction.java b/src/main/java/com/adyen/model/managementwebhooks/RemediatingAction.java index 87ac426e5..9531c8c58 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/RemediatingAction.java +++ b/src/main/java/com/adyen/model/managementwebhooks/RemediatingAction.java @@ -2,23 +2,36 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.managementwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** RemediatingAction */ -@JsonPropertyOrder({RemediatingAction.JSON_PROPERTY_CODE, RemediatingAction.JSON_PROPERTY_MESSAGE}) + +/** + * RemediatingAction + */ +@JsonPropertyOrder({ + RemediatingAction.JSON_PROPERTY_CODE, + RemediatingAction.JSON_PROPERTY_MESSAGE +}) + public class RemediatingAction { public static final String JSON_PROPERTY_CODE = "code"; private String code; @@ -26,7 +39,8 @@ public class RemediatingAction { public static final String JSON_PROPERTY_MESSAGE = "message"; private String message; - public RemediatingAction() {} + public RemediatingAction() { + } /** * The remediating action code. @@ -41,7 +55,6 @@ public RemediatingAction code(String code) { /** * The remediating action code. - * * @return code The remediating action code. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -74,7 +87,6 @@ public RemediatingAction message(String message) { /** * A description of how you can resolve the verification error. - * * @return message A description of how you can resolve the verification error. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -94,7 +106,9 @@ public void setMessage(String message) { this.message = message; } - /** Return true if this RemediatingAction object is equal to o. */ + /** + * Return true if this RemediatingAction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -104,8 +118,8 @@ public boolean equals(Object o) { return false; } RemediatingAction remediatingAction = (RemediatingAction) o; - return Objects.equals(this.code, remediatingAction.code) - && Objects.equals(this.message, remediatingAction.message); + return Objects.equals(this.code, remediatingAction.code) && + Objects.equals(this.message, remediatingAction.message); } @Override @@ -124,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RemediatingAction given an JSON string * * @param jsonString JSON string @@ -143,12 +158,11 @@ private String toIndentedString(Object o) { public static RemediatingAction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RemediatingAction.class); } - - /** - * Convert an instance of RemediatingAction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RemediatingAction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/TerminalAssignmentNotificationRequest.java b/src/main/java/com/adyen/model/managementwebhooks/TerminalAssignmentNotificationRequest.java index 6f45bb4bd..6dd3fde2c 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/TerminalAssignmentNotificationRequest.java +++ b/src/main/java/com/adyen/model/managementwebhooks/TerminalAssignmentNotificationRequest.java @@ -2,22 +2,31 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.managementwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TerminalAssignmentNotificationRequest */ + +/** + * TerminalAssignmentNotificationRequest + */ @JsonPropertyOrder({ TerminalAssignmentNotificationRequest.JSON_PROPERTY_ASSIGNED_TO_ACCOUNT, TerminalAssignmentNotificationRequest.JSON_PROPERTY_ASSIGNED_TO_STORE, @@ -25,6 +34,7 @@ TerminalAssignmentNotificationRequest.JSON_PROPERTY_PSP_REFERENCE, TerminalAssignmentNotificationRequest.JSON_PROPERTY_UNIQUE_TERMINAL_ID }) + public class TerminalAssignmentNotificationRequest { public static final String JSON_PROPERTY_ASSIGNED_TO_ACCOUNT = "assignedToAccount"; private String assignedToAccount; @@ -41,15 +51,14 @@ public class TerminalAssignmentNotificationRequest { public static final String JSON_PROPERTY_UNIQUE_TERMINAL_ID = "uniqueTerminalId"; private String uniqueTerminalId; - public TerminalAssignmentNotificationRequest() {} + public TerminalAssignmentNotificationRequest() { + } /** * The unique identifier of the merchant/company account to which the terminal is assigned. * - * @param assignedToAccount The unique identifier of the merchant/company account to which the - * terminal is assigned. - * @return the current {@code TerminalAssignmentNotificationRequest} instance, allowing for method - * chaining + * @param assignedToAccount The unique identifier of the merchant/company account to which the terminal is assigned. + * @return the current {@code TerminalAssignmentNotificationRequest} instance, allowing for method chaining */ public TerminalAssignmentNotificationRequest assignedToAccount(String assignedToAccount) { this.assignedToAccount = assignedToAccount; @@ -58,9 +67,7 @@ public TerminalAssignmentNotificationRequest assignedToAccount(String assignedTo /** * The unique identifier of the merchant/company account to which the terminal is assigned. - * - * @return assignedToAccount The unique identifier of the merchant/company account to which the - * terminal is assigned. + * @return assignedToAccount The unique identifier of the merchant/company account to which the terminal is assigned. */ @JsonProperty(JSON_PROPERTY_ASSIGNED_TO_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,8 +78,7 @@ public String getAssignedToAccount() { /** * The unique identifier of the merchant/company account to which the terminal is assigned. * - * @param assignedToAccount The unique identifier of the merchant/company account to which the - * terminal is assigned. + * @param assignedToAccount The unique identifier of the merchant/company account to which the terminal is assigned. */ @JsonProperty(JSON_PROPERTY_ASSIGNED_TO_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -84,8 +90,7 @@ public void setAssignedToAccount(String assignedToAccount) { * The unique identifier of the store to which the terminal is assigned. * * @param assignedToStore The unique identifier of the store to which the terminal is assigned. - * @return the current {@code TerminalAssignmentNotificationRequest} instance, allowing for method - * chaining + * @return the current {@code TerminalAssignmentNotificationRequest} instance, allowing for method chaining */ public TerminalAssignmentNotificationRequest assignedToStore(String assignedToStore) { this.assignedToStore = assignedToStore; @@ -94,7 +99,6 @@ public TerminalAssignmentNotificationRequest assignedToStore(String assignedToSt /** * The unique identifier of the store to which the terminal is assigned. - * * @return assignedToStore The unique identifier of the store to which the terminal is assigned. */ @JsonProperty(JSON_PROPERTY_ASSIGNED_TO_STORE) @@ -118,8 +122,7 @@ public void setAssignedToStore(String assignedToStore) { * The date and time when an event has been completed. * * @param eventDate The date and time when an event has been completed. - * @return the current {@code TerminalAssignmentNotificationRequest} instance, allowing for method - * chaining + * @return the current {@code TerminalAssignmentNotificationRequest} instance, allowing for method chaining */ public TerminalAssignmentNotificationRequest eventDate(String eventDate) { this.eventDate = eventDate; @@ -128,7 +131,6 @@ public TerminalAssignmentNotificationRequest eventDate(String eventDate) { /** * The date and time when an event has been completed. - * * @return eventDate The date and time when an event has been completed. */ @JsonProperty(JSON_PROPERTY_EVENT_DATE) @@ -152,8 +154,7 @@ public void setEventDate(String eventDate) { * The PSP reference of the request from which the notification originates. * * @param pspReference The PSP reference of the request from which the notification originates. - * @return the current {@code TerminalAssignmentNotificationRequest} instance, allowing for method - * chaining + * @return the current {@code TerminalAssignmentNotificationRequest} instance, allowing for method chaining */ public TerminalAssignmentNotificationRequest pspReference(String pspReference) { this.pspReference = pspReference; @@ -162,7 +163,6 @@ public TerminalAssignmentNotificationRequest pspReference(String pspReference) { /** * The PSP reference of the request from which the notification originates. - * * @return pspReference The PSP reference of the request from which the notification originates. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -186,8 +186,7 @@ public void setPspReference(String pspReference) { * The unique identifier of the terminal. * * @param uniqueTerminalId The unique identifier of the terminal. - * @return the current {@code TerminalAssignmentNotificationRequest} instance, allowing for method - * chaining + * @return the current {@code TerminalAssignmentNotificationRequest} instance, allowing for method chaining */ public TerminalAssignmentNotificationRequest uniqueTerminalId(String uniqueTerminalId) { this.uniqueTerminalId = uniqueTerminalId; @@ -196,7 +195,6 @@ public TerminalAssignmentNotificationRequest uniqueTerminalId(String uniqueTermi /** * The unique identifier of the terminal. - * * @return uniqueTerminalId The unique identifier of the terminal. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @@ -216,7 +214,9 @@ public void setUniqueTerminalId(String uniqueTerminalId) { this.uniqueTerminalId = uniqueTerminalId; } - /** Return true if this TerminalAssignmentNotificationRequest object is equal to o. */ + /** + * Return true if this TerminalAssignmentNotificationRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -225,22 +225,17 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TerminalAssignmentNotificationRequest terminalAssignmentNotificationRequest = - (TerminalAssignmentNotificationRequest) o; - return Objects.equals( - this.assignedToAccount, terminalAssignmentNotificationRequest.assignedToAccount) - && Objects.equals( - this.assignedToStore, terminalAssignmentNotificationRequest.assignedToStore) - && Objects.equals(this.eventDate, terminalAssignmentNotificationRequest.eventDate) - && Objects.equals(this.pspReference, terminalAssignmentNotificationRequest.pspReference) - && Objects.equals( - this.uniqueTerminalId, terminalAssignmentNotificationRequest.uniqueTerminalId); + TerminalAssignmentNotificationRequest terminalAssignmentNotificationRequest = (TerminalAssignmentNotificationRequest) o; + return Objects.equals(this.assignedToAccount, terminalAssignmentNotificationRequest.assignedToAccount) && + Objects.equals(this.assignedToStore, terminalAssignmentNotificationRequest.assignedToStore) && + Objects.equals(this.eventDate, terminalAssignmentNotificationRequest.eventDate) && + Objects.equals(this.pspReference, terminalAssignmentNotificationRequest.pspReference) && + Objects.equals(this.uniqueTerminalId, terminalAssignmentNotificationRequest.uniqueTerminalId); } @Override public int hashCode() { - return Objects.hash( - assignedToAccount, assignedToStore, eventDate, pspReference, uniqueTerminalId); + return Objects.hash(assignedToAccount, assignedToStore, eventDate, pspReference, uniqueTerminalId); } @Override @@ -257,7 +252,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -266,24 +262,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TerminalAssignmentNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of TerminalAssignmentNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalAssignmentNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalAssignmentNotificationRequest */ - public static TerminalAssignmentNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static TerminalAssignmentNotificationRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalAssignmentNotificationRequest.class); } - - /** - * Convert an instance of TerminalAssignmentNotificationRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TerminalAssignmentNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/TerminalAssignmentNotificationResponse.java b/src/main/java/com/adyen/model/managementwebhooks/TerminalAssignmentNotificationResponse.java index bc39a097b..37e1650bd 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/TerminalAssignmentNotificationResponse.java +++ b/src/main/java/com/adyen/model/managementwebhooks/TerminalAssignmentNotificationResponse.java @@ -2,37 +2,47 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.managementwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TerminalAssignmentNotificationResponse */ -@JsonPropertyOrder({TerminalAssignmentNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) + +/** + * TerminalAssignmentNotificationResponse + */ +@JsonPropertyOrder({ + TerminalAssignmentNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE +}) + public class TerminalAssignmentNotificationResponse { public static final String JSON_PROPERTY_NOTIFICATION_RESPONSE = "notificationResponse"; private String notificationResponse; - public TerminalAssignmentNotificationResponse() {} + public TerminalAssignmentNotificationResponse() { + } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return the current {@code TerminalAssignmentNotificationResponse} instance, allowing for - * method chaining + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return the current {@code TerminalAssignmentNotificationResponse} instance, allowing for method chaining */ public TerminalAssignmentNotificationResponse notificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; @@ -40,11 +50,8 @@ public TerminalAssignmentNotificationResponse notificationResponse(String notifi } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * - * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -53,11 +60,9 @@ public String getNotificationResponse() { } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -65,7 +70,9 @@ public void setNotificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; } - /** Return true if this TerminalAssignmentNotificationResponse object is equal to o. */ + /** + * Return true if this TerminalAssignmentNotificationResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -74,10 +81,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TerminalAssignmentNotificationResponse terminalAssignmentNotificationResponse = - (TerminalAssignmentNotificationResponse) o; - return Objects.equals( - this.notificationResponse, terminalAssignmentNotificationResponse.notificationResponse); + TerminalAssignmentNotificationResponse terminalAssignmentNotificationResponse = (TerminalAssignmentNotificationResponse) o; + return Objects.equals(this.notificationResponse, terminalAssignmentNotificationResponse.notificationResponse); } @Override @@ -89,15 +94,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TerminalAssignmentNotificationResponse {\n"); - sb.append(" notificationResponse: ") - .append(toIndentedString(notificationResponse)) - .append("\n"); + sb.append(" notificationResponse: ").append(toIndentedString(notificationResponse)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -106,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TerminalAssignmentNotificationResponse given an JSON string * * @param jsonString JSON string * @return An instance of TerminalAssignmentNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalAssignmentNotificationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalAssignmentNotificationResponse */ - public static TerminalAssignmentNotificationResponse fromJson(String jsonString) - throws JsonProcessingException { + public static TerminalAssignmentNotificationResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalAssignmentNotificationResponse.class); } - - /** - * Convert an instance of TerminalAssignmentNotificationResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TerminalAssignmentNotificationResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingData.java b/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingData.java index debf480d9..8d62e5519 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingData.java +++ b/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingData.java @@ -2,28 +2,38 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.managementwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TerminalBoardingData */ + +/** + * TerminalBoardingData + */ @JsonPropertyOrder({ TerminalBoardingData.JSON_PROPERTY_COMPANY_ID, TerminalBoardingData.JSON_PROPERTY_MERCHANT_ID, TerminalBoardingData.JSON_PROPERTY_STORE_ID, TerminalBoardingData.JSON_PROPERTY_UNIQUE_TERMINAL_ID }) + public class TerminalBoardingData { public static final String JSON_PROPERTY_COMPANY_ID = "companyId"; private String companyId; @@ -37,7 +47,8 @@ public class TerminalBoardingData { public static final String JSON_PROPERTY_UNIQUE_TERMINAL_ID = "uniqueTerminalId"; private String uniqueTerminalId; - public TerminalBoardingData() {} + public TerminalBoardingData() { + } /** * The unique identifier of the company account. @@ -52,7 +63,6 @@ public TerminalBoardingData companyId(String companyId) { /** * The unique identifier of the company account. - * * @return companyId The unique identifier of the company account. */ @JsonProperty(JSON_PROPERTY_COMPANY_ID) @@ -85,7 +95,6 @@ public TerminalBoardingData merchantId(String merchantId) { /** * The unique identifier of the merchant account. - * * @return merchantId The unique identifier of the merchant account. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @@ -118,7 +127,6 @@ public TerminalBoardingData storeId(String storeId) { /** * The unique identifier of the store. - * * @return storeId The unique identifier of the store. */ @JsonProperty(JSON_PROPERTY_STORE_ID) @@ -151,7 +159,6 @@ public TerminalBoardingData uniqueTerminalId(String uniqueTerminalId) { /** * The unique identifier of the terminal. - * * @return uniqueTerminalId The unique identifier of the terminal. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @@ -171,7 +178,9 @@ public void setUniqueTerminalId(String uniqueTerminalId) { this.uniqueTerminalId = uniqueTerminalId; } - /** Return true if this TerminalBoardingData object is equal to o. */ + /** + * Return true if this TerminalBoardingData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -181,10 +190,10 @@ public boolean equals(Object o) { return false; } TerminalBoardingData terminalBoardingData = (TerminalBoardingData) o; - return Objects.equals(this.companyId, terminalBoardingData.companyId) - && Objects.equals(this.merchantId, terminalBoardingData.merchantId) - && Objects.equals(this.storeId, terminalBoardingData.storeId) - && Objects.equals(this.uniqueTerminalId, terminalBoardingData.uniqueTerminalId); + return Objects.equals(this.companyId, terminalBoardingData.companyId) && + Objects.equals(this.merchantId, terminalBoardingData.merchantId) && + Objects.equals(this.storeId, terminalBoardingData.storeId) && + Objects.equals(this.uniqueTerminalId, terminalBoardingData.uniqueTerminalId); } @Override @@ -205,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -214,23 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TerminalBoardingData given an JSON string * * @param jsonString JSON string * @return An instance of TerminalBoardingData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalBoardingData + * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalBoardingData */ public static TerminalBoardingData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalBoardingData.class); } - - /** - * Convert an instance of TerminalBoardingData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TerminalBoardingData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingNotificationRequest.java b/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingNotificationRequest.java index f7920493e..79675fba8 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingNotificationRequest.java +++ b/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingNotificationRequest.java @@ -2,33 +2,40 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.managementwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.managementwebhooks.TerminalBoardingData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** TerminalBoardingNotificationRequest */ + +/** + * TerminalBoardingNotificationRequest + */ @JsonPropertyOrder({ TerminalBoardingNotificationRequest.JSON_PROPERTY_CREATED_AT, TerminalBoardingNotificationRequest.JSON_PROPERTY_DATA, TerminalBoardingNotificationRequest.JSON_PROPERTY_ENVIRONMENT, TerminalBoardingNotificationRequest.JSON_PROPERTY_TYPE }) + public class TerminalBoardingNotificationRequest { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -39,8 +46,11 @@ public class TerminalBoardingNotificationRequest { public static final String JSON_PROPERTY_ENVIRONMENT = "environment"; private String environment; - /** Type of notification. */ + /** + * Type of notification. + */ public enum TypeEnum { + TERMINALBOARDING_TRIGGERED(String.valueOf("terminalBoarding.triggered")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +58,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,11 +79,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -81,14 +87,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public TerminalBoardingNotificationRequest() {} + public TerminalBoardingNotificationRequest() { + } /** * Timestamp for when the webhook was created. * * @param createdAt Timestamp for when the webhook was created. - * @return the current {@code TerminalBoardingNotificationRequest} instance, allowing for method - * chaining + * @return the current {@code TerminalBoardingNotificationRequest} instance, allowing for method chaining */ public TerminalBoardingNotificationRequest createdAt(OffsetDateTime createdAt) { this.createdAt = createdAt; @@ -97,7 +103,6 @@ public TerminalBoardingNotificationRequest createdAt(OffsetDateTime createdAt) { /** * Timestamp for when the webhook was created. - * * @return createdAt Timestamp for when the webhook was created. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @@ -120,9 +125,8 @@ public void setCreatedAt(OffsetDateTime createdAt) { /** * data * - * @param data - * @return the current {@code TerminalBoardingNotificationRequest} instance, allowing for method - * chaining + * @param data + * @return the current {@code TerminalBoardingNotificationRequest} instance, allowing for method chaining */ public TerminalBoardingNotificationRequest data(TerminalBoardingData data) { this.data = data; @@ -131,8 +135,7 @@ public TerminalBoardingNotificationRequest data(TerminalBoardingData data) { /** * Get data - * - * @return data + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,7 +146,7 @@ public TerminalBoardingData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,12 +155,10 @@ public void setData(TerminalBoardingData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. - * @return the current {@code TerminalBoardingNotificationRequest} instance, allowing for method - * chaining + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @return the current {@code TerminalBoardingNotificationRequest} instance, allowing for method chaining */ public TerminalBoardingNotificationRequest environment(String environment) { this.environment = environment; @@ -165,10 +166,8 @@ public TerminalBoardingNotificationRequest environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * - * @return environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,10 +176,9 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,8 +190,7 @@ public void setEnvironment(String environment) { * Type of notification. * * @param type Type of notification. - * @return the current {@code TerminalBoardingNotificationRequest} instance, allowing for method - * chaining + * @return the current {@code TerminalBoardingNotificationRequest} instance, allowing for method chaining */ public TerminalBoardingNotificationRequest type(TypeEnum type) { this.type = type; @@ -202,7 +199,6 @@ public TerminalBoardingNotificationRequest type(TypeEnum type) { /** * Type of notification. - * * @return type Type of notification. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -222,7 +218,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this TerminalBoardingNotificationRequest object is equal to o. */ + /** + * Return true if this TerminalBoardingNotificationRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -231,12 +229,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TerminalBoardingNotificationRequest terminalBoardingNotificationRequest = - (TerminalBoardingNotificationRequest) o; - return Objects.equals(this.createdAt, terminalBoardingNotificationRequest.createdAt) - && Objects.equals(this.data, terminalBoardingNotificationRequest.data) - && Objects.equals(this.environment, terminalBoardingNotificationRequest.environment) - && Objects.equals(this.type, terminalBoardingNotificationRequest.type); + TerminalBoardingNotificationRequest terminalBoardingNotificationRequest = (TerminalBoardingNotificationRequest) o; + return Objects.equals(this.createdAt, terminalBoardingNotificationRequest.createdAt) && + Objects.equals(this.data, terminalBoardingNotificationRequest.data) && + Objects.equals(this.environment, terminalBoardingNotificationRequest.environment) && + Objects.equals(this.type, terminalBoardingNotificationRequest.type); } @Override @@ -257,7 +254,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -266,24 +264,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TerminalBoardingNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of TerminalBoardingNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalBoardingNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalBoardingNotificationRequest */ - public static TerminalBoardingNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static TerminalBoardingNotificationRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalBoardingNotificationRequest.class); } - - /** - * Convert an instance of TerminalBoardingNotificationRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TerminalBoardingNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingNotificationResponse.java b/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingNotificationResponse.java index 1b06bf9a1..5b29fe52b 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingNotificationResponse.java +++ b/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingNotificationResponse.java @@ -2,37 +2,47 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.managementwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TerminalBoardingNotificationResponse */ -@JsonPropertyOrder({TerminalBoardingNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) + +/** + * TerminalBoardingNotificationResponse + */ +@JsonPropertyOrder({ + TerminalBoardingNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE +}) + public class TerminalBoardingNotificationResponse { public static final String JSON_PROPERTY_NOTIFICATION_RESPONSE = "notificationResponse"; private String notificationResponse; - public TerminalBoardingNotificationResponse() {} + public TerminalBoardingNotificationResponse() { + } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return the current {@code TerminalBoardingNotificationResponse} instance, allowing for method - * chaining + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return the current {@code TerminalBoardingNotificationResponse} instance, allowing for method chaining */ public TerminalBoardingNotificationResponse notificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; @@ -40,11 +50,8 @@ public TerminalBoardingNotificationResponse notificationResponse(String notifica } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * - * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -53,11 +60,9 @@ public String getNotificationResponse() { } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -65,7 +70,9 @@ public void setNotificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; } - /** Return true if this TerminalBoardingNotificationResponse object is equal to o. */ + /** + * Return true if this TerminalBoardingNotificationResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -74,10 +81,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TerminalBoardingNotificationResponse terminalBoardingNotificationResponse = - (TerminalBoardingNotificationResponse) o; - return Objects.equals( - this.notificationResponse, terminalBoardingNotificationResponse.notificationResponse); + TerminalBoardingNotificationResponse terminalBoardingNotificationResponse = (TerminalBoardingNotificationResponse) o; + return Objects.equals(this.notificationResponse, terminalBoardingNotificationResponse.notificationResponse); } @Override @@ -89,15 +94,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TerminalBoardingNotificationResponse {\n"); - sb.append(" notificationResponse: ") - .append(toIndentedString(notificationResponse)) - .append("\n"); + sb.append(" notificationResponse: ").append(toIndentedString(notificationResponse)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -106,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TerminalBoardingNotificationResponse given an JSON string * * @param jsonString JSON string * @return An instance of TerminalBoardingNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalBoardingNotificationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalBoardingNotificationResponse */ - public static TerminalBoardingNotificationResponse fromJson(String jsonString) - throws JsonProcessingException { + public static TerminalBoardingNotificationResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalBoardingNotificationResponse.class); } - - /** - * Convert an instance of TerminalBoardingNotificationResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TerminalBoardingNotificationResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsData.java b/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsData.java index 3e8624a86..4733f39d0 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsData.java +++ b/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsData.java @@ -2,26 +2,31 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.managementwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** TerminalSettingsData */ + +/** + * TerminalSettingsData + */ @JsonPropertyOrder({ TerminalSettingsData.JSON_PROPERTY_COMPANY_ID, TerminalSettingsData.JSON_PROPERTY_MERCHANT_ID, @@ -30,6 +35,7 @@ TerminalSettingsData.JSON_PROPERTY_UPDATE_SOURCE, TerminalSettingsData.JSON_PROPERTY_USER }) + public class TerminalSettingsData { public static final String JSON_PROPERTY_COMPANY_ID = "companyId"; private String companyId; @@ -44,10 +50,10 @@ public class TerminalSettingsData { private String terminalId; /** - * Indicates whether the terminal settings were updated using the Customer Area or the Management - * API. + * Indicates whether the terminal settings were updated using the Customer Area or the Management API. */ public enum UpdateSourceEnum { + CUSTOMER_AREA(String.valueOf("Customer Area")), MANAGEMENT_API(String.valueOf("Management Api")); @@ -57,7 +63,7 @@ public enum UpdateSourceEnum { private String value; UpdateSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -78,11 +84,7 @@ public static UpdateSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "UpdateSourceEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(UpdateSourceEnum.values())); + LOG.warning("UpdateSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(UpdateSourceEnum.values())); return null; } } @@ -93,7 +95,8 @@ public static UpdateSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_USER = "user"; private String user; - public TerminalSettingsData() {} + public TerminalSettingsData() { + } /** * The unique identifier of the company account. @@ -108,7 +111,6 @@ public TerminalSettingsData companyId(String companyId) { /** * The unique identifier of the company account. - * * @return companyId The unique identifier of the company account. */ @JsonProperty(JSON_PROPERTY_COMPANY_ID) @@ -141,7 +143,6 @@ public TerminalSettingsData merchantId(String merchantId) { /** * The unique identifier of the merchant account. - * * @return merchantId The unique identifier of the merchant account. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @@ -174,7 +175,6 @@ public TerminalSettingsData storeId(String storeId) { /** * The unique identifier of the store. - * * @return storeId The unique identifier of the store. */ @JsonProperty(JSON_PROPERTY_STORE_ID) @@ -207,7 +207,6 @@ public TerminalSettingsData terminalId(String terminalId) { /** * The unique identifier of the terminal. - * * @return terminalId The unique identifier of the terminal. */ @JsonProperty(JSON_PROPERTY_TERMINAL_ID) @@ -228,11 +227,9 @@ public void setTerminalId(String terminalId) { } /** - * Indicates whether the terminal settings were updated using the Customer Area or the Management - * API. + * Indicates whether the terminal settings were updated using the Customer Area or the Management API. * - * @param updateSource Indicates whether the terminal settings were updated using the Customer - * Area or the Management API. + * @param updateSource Indicates whether the terminal settings were updated using the Customer Area or the Management API. * @return the current {@code TerminalSettingsData} instance, allowing for method chaining */ public TerminalSettingsData updateSource(UpdateSourceEnum updateSource) { @@ -241,11 +238,8 @@ public TerminalSettingsData updateSource(UpdateSourceEnum updateSource) { } /** - * Indicates whether the terminal settings were updated using the Customer Area or the Management - * API. - * - * @return updateSource Indicates whether the terminal settings were updated using the Customer - * Area or the Management API. + * Indicates whether the terminal settings were updated using the Customer Area or the Management API. + * @return updateSource Indicates whether the terminal settings were updated using the Customer Area or the Management API. */ @JsonProperty(JSON_PROPERTY_UPDATE_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -254,11 +248,9 @@ public UpdateSourceEnum getUpdateSource() { } /** - * Indicates whether the terminal settings were updated using the Customer Area or the Management - * API. + * Indicates whether the terminal settings were updated using the Customer Area or the Management API. * - * @param updateSource Indicates whether the terminal settings were updated using the Customer - * Area or the Management API. + * @param updateSource Indicates whether the terminal settings were updated using the Customer Area or the Management API. */ @JsonProperty(JSON_PROPERTY_UPDATE_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -269,8 +261,7 @@ public void setUpdateSource(UpdateSourceEnum updateSource) { /** * The user that updated the terminal settings. Can be Adyen or your API credential username. * - * @param user The user that updated the terminal settings. Can be Adyen or your API credential - * username. + * @param user The user that updated the terminal settings. Can be Adyen or your API credential username. * @return the current {@code TerminalSettingsData} instance, allowing for method chaining */ public TerminalSettingsData user(String user) { @@ -280,9 +271,7 @@ public TerminalSettingsData user(String user) { /** * The user that updated the terminal settings. Can be Adyen or your API credential username. - * - * @return user The user that updated the terminal settings. Can be Adyen or your API credential - * username. + * @return user The user that updated the terminal settings. Can be Adyen or your API credential username. */ @JsonProperty(JSON_PROPERTY_USER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -293,8 +282,7 @@ public String getUser() { /** * The user that updated the terminal settings. Can be Adyen or your API credential username. * - * @param user The user that updated the terminal settings. Can be Adyen or your API credential - * username. + * @param user The user that updated the terminal settings. Can be Adyen or your API credential username. */ @JsonProperty(JSON_PROPERTY_USER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -302,7 +290,9 @@ public void setUser(String user) { this.user = user; } - /** Return true if this TerminalSettingsData object is equal to o. */ + /** + * Return true if this TerminalSettingsData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -312,12 +302,12 @@ public boolean equals(Object o) { return false; } TerminalSettingsData terminalSettingsData = (TerminalSettingsData) o; - return Objects.equals(this.companyId, terminalSettingsData.companyId) - && Objects.equals(this.merchantId, terminalSettingsData.merchantId) - && Objects.equals(this.storeId, terminalSettingsData.storeId) - && Objects.equals(this.terminalId, terminalSettingsData.terminalId) - && Objects.equals(this.updateSource, terminalSettingsData.updateSource) - && Objects.equals(this.user, terminalSettingsData.user); + return Objects.equals(this.companyId, terminalSettingsData.companyId) && + Objects.equals(this.merchantId, terminalSettingsData.merchantId) && + Objects.equals(this.storeId, terminalSettingsData.storeId) && + Objects.equals(this.terminalId, terminalSettingsData.terminalId) && + Objects.equals(this.updateSource, terminalSettingsData.updateSource) && + Objects.equals(this.user, terminalSettingsData.user); } @Override @@ -340,7 +330,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -349,23 +340,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TerminalSettingsData given an JSON string * * @param jsonString JSON string * @return An instance of TerminalSettingsData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalSettingsData + * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalSettingsData */ public static TerminalSettingsData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalSettingsData.class); } - - /** - * Convert an instance of TerminalSettingsData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TerminalSettingsData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsNotificationRequest.java b/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsNotificationRequest.java index 6f7892534..7dc53d6f3 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsNotificationRequest.java +++ b/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsNotificationRequest.java @@ -2,33 +2,40 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.managementwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.managementwebhooks.TerminalSettingsData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** TerminalSettingsNotificationRequest */ + +/** + * TerminalSettingsNotificationRequest + */ @JsonPropertyOrder({ TerminalSettingsNotificationRequest.JSON_PROPERTY_CREATED_AT, TerminalSettingsNotificationRequest.JSON_PROPERTY_DATA, TerminalSettingsNotificationRequest.JSON_PROPERTY_ENVIRONMENT, TerminalSettingsNotificationRequest.JSON_PROPERTY_TYPE }) + public class TerminalSettingsNotificationRequest { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -39,8 +46,11 @@ public class TerminalSettingsNotificationRequest { public static final String JSON_PROPERTY_ENVIRONMENT = "environment"; private String environment; - /** Type of notification. */ + /** + * Type of notification. + */ public enum TypeEnum { + TERMINALSETTINGS_MODIFIED(String.valueOf("terminalSettings.modified")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +58,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,11 +79,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -81,14 +87,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public TerminalSettingsNotificationRequest() {} + public TerminalSettingsNotificationRequest() { + } /** * Timestamp for when the webhook was created. * * @param createdAt Timestamp for when the webhook was created. - * @return the current {@code TerminalSettingsNotificationRequest} instance, allowing for method - * chaining + * @return the current {@code TerminalSettingsNotificationRequest} instance, allowing for method chaining */ public TerminalSettingsNotificationRequest createdAt(OffsetDateTime createdAt) { this.createdAt = createdAt; @@ -97,7 +103,6 @@ public TerminalSettingsNotificationRequest createdAt(OffsetDateTime createdAt) { /** * Timestamp for when the webhook was created. - * * @return createdAt Timestamp for when the webhook was created. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @@ -120,9 +125,8 @@ public void setCreatedAt(OffsetDateTime createdAt) { /** * data * - * @param data - * @return the current {@code TerminalSettingsNotificationRequest} instance, allowing for method - * chaining + * @param data + * @return the current {@code TerminalSettingsNotificationRequest} instance, allowing for method chaining */ public TerminalSettingsNotificationRequest data(TerminalSettingsData data) { this.data = data; @@ -131,8 +135,7 @@ public TerminalSettingsNotificationRequest data(TerminalSettingsData data) { /** * Get data - * - * @return data + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,7 +146,7 @@ public TerminalSettingsData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,12 +155,10 @@ public void setData(TerminalSettingsData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. - * @return the current {@code TerminalSettingsNotificationRequest} instance, allowing for method - * chaining + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @return the current {@code TerminalSettingsNotificationRequest} instance, allowing for method chaining */ public TerminalSettingsNotificationRequest environment(String environment) { this.environment = environment; @@ -165,10 +166,8 @@ public TerminalSettingsNotificationRequest environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * - * @return environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,10 +176,9 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,8 +190,7 @@ public void setEnvironment(String environment) { * Type of notification. * * @param type Type of notification. - * @return the current {@code TerminalSettingsNotificationRequest} instance, allowing for method - * chaining + * @return the current {@code TerminalSettingsNotificationRequest} instance, allowing for method chaining */ public TerminalSettingsNotificationRequest type(TypeEnum type) { this.type = type; @@ -202,7 +199,6 @@ public TerminalSettingsNotificationRequest type(TypeEnum type) { /** * Type of notification. - * * @return type Type of notification. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -222,7 +218,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this TerminalSettingsNotificationRequest object is equal to o. */ + /** + * Return true if this TerminalSettingsNotificationRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -231,12 +229,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TerminalSettingsNotificationRequest terminalSettingsNotificationRequest = - (TerminalSettingsNotificationRequest) o; - return Objects.equals(this.createdAt, terminalSettingsNotificationRequest.createdAt) - && Objects.equals(this.data, terminalSettingsNotificationRequest.data) - && Objects.equals(this.environment, terminalSettingsNotificationRequest.environment) - && Objects.equals(this.type, terminalSettingsNotificationRequest.type); + TerminalSettingsNotificationRequest terminalSettingsNotificationRequest = (TerminalSettingsNotificationRequest) o; + return Objects.equals(this.createdAt, terminalSettingsNotificationRequest.createdAt) && + Objects.equals(this.data, terminalSettingsNotificationRequest.data) && + Objects.equals(this.environment, terminalSettingsNotificationRequest.environment) && + Objects.equals(this.type, terminalSettingsNotificationRequest.type); } @Override @@ -257,7 +254,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -266,24 +264,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TerminalSettingsNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of TerminalSettingsNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalSettingsNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalSettingsNotificationRequest */ - public static TerminalSettingsNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static TerminalSettingsNotificationRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalSettingsNotificationRequest.class); } - - /** - * Convert an instance of TerminalSettingsNotificationRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TerminalSettingsNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsNotificationResponse.java b/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsNotificationResponse.java index 4cb54c453..b73a7d1c4 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsNotificationResponse.java +++ b/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsNotificationResponse.java @@ -2,37 +2,47 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.managementwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TerminalSettingsNotificationResponse */ -@JsonPropertyOrder({TerminalSettingsNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) + +/** + * TerminalSettingsNotificationResponse + */ +@JsonPropertyOrder({ + TerminalSettingsNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE +}) + public class TerminalSettingsNotificationResponse { public static final String JSON_PROPERTY_NOTIFICATION_RESPONSE = "notificationResponse"; private String notificationResponse; - public TerminalSettingsNotificationResponse() {} + public TerminalSettingsNotificationResponse() { + } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return the current {@code TerminalSettingsNotificationResponse} instance, allowing for method - * chaining + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return the current {@code TerminalSettingsNotificationResponse} instance, allowing for method chaining */ public TerminalSettingsNotificationResponse notificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; @@ -40,11 +50,8 @@ public TerminalSettingsNotificationResponse notificationResponse(String notifica } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * - * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -53,11 +60,9 @@ public String getNotificationResponse() { } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -65,7 +70,9 @@ public void setNotificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; } - /** Return true if this TerminalSettingsNotificationResponse object is equal to o. */ + /** + * Return true if this TerminalSettingsNotificationResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -74,10 +81,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TerminalSettingsNotificationResponse terminalSettingsNotificationResponse = - (TerminalSettingsNotificationResponse) o; - return Objects.equals( - this.notificationResponse, terminalSettingsNotificationResponse.notificationResponse); + TerminalSettingsNotificationResponse terminalSettingsNotificationResponse = (TerminalSettingsNotificationResponse) o; + return Objects.equals(this.notificationResponse, terminalSettingsNotificationResponse.notificationResponse); } @Override @@ -89,15 +94,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TerminalSettingsNotificationResponse {\n"); - sb.append(" notificationResponse: ") - .append(toIndentedString(notificationResponse)) - .append("\n"); + sb.append(" notificationResponse: ").append(toIndentedString(notificationResponse)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -106,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TerminalSettingsNotificationResponse given an JSON string * * @param jsonString JSON string * @return An instance of TerminalSettingsNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalSettingsNotificationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalSettingsNotificationResponse */ - public static TerminalSettingsNotificationResponse fromJson(String jsonString) - throws JsonProcessingException { + public static TerminalSettingsNotificationResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalSettingsNotificationResponse.class); } - - /** - * Convert an instance of TerminalSettingsNotificationResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TerminalSettingsNotificationResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/VerificationError.java b/src/main/java/com/adyen/model/managementwebhooks/VerificationError.java index 072c39622..c4e34869c 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/VerificationError.java +++ b/src/main/java/com/adyen/model/managementwebhooks/VerificationError.java @@ -2,28 +2,35 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.managementwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.managementwebhooks.RemediatingAction; +import com.adyen.model.managementwebhooks.VerificationErrorRecursive; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** VerificationError */ + +/** + * VerificationError + */ @JsonPropertyOrder({ VerificationError.JSON_PROPERTY_CODE, VerificationError.JSON_PROPERTY_MESSAGE, @@ -31,6 +38,7 @@ VerificationError.JSON_PROPERTY_SUB_ERRORS, VerificationError.JSON_PROPERTY_TYPE }) + public class VerificationError { public static final String JSON_PROPERTY_CODE = "code"; private String code; @@ -45,10 +53,10 @@ public class VerificationError { private List subErrors; /** - * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and - * **pendingStatus**. + * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and **pendingStatus**. */ public enum TypeEnum { + DATAMISSING(String.valueOf("dataMissing")), INVALIDINPUT(String.valueOf("invalidInput")), @@ -60,7 +68,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -81,11 +89,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -93,7 +97,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public VerificationError() {} + public VerificationError() { + } /** * The verification error code. @@ -108,7 +113,6 @@ public VerificationError code(String code) { /** * The verification error code. - * * @return code The verification error code. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -141,7 +145,6 @@ public VerificationError message(String message) { /** * The verification error message. - * * @return message The verification error message. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -182,7 +185,6 @@ public VerificationError addRemediatingActionsItem(RemediatingAction remediating /** * The actions that you can take to resolve the verification error. - * * @return remediatingActions The actions that you can take to resolve the verification error. */ @JsonProperty(JSON_PROPERTY_REMEDIATING_ACTIONS) @@ -223,7 +225,6 @@ public VerificationError addSubErrorsItem(VerificationErrorRecursive subErrorsIt /** * More granular information about the verification error. - * * @return subErrors More granular information about the verification error. */ @JsonProperty(JSON_PROPERTY_SUB_ERRORS) @@ -244,11 +245,9 @@ public void setSubErrors(List subErrors) { } /** - * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and - * **pendingStatus**. + * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and **pendingStatus**. * - * @param type The type of verification error. Possible values: **invalidInput**, **dataMissing**, - * and **pendingStatus**. + * @param type The type of verification error. Possible values: **invalidInput**, **dataMissing**, and **pendingStatus**. * @return the current {@code VerificationError} instance, allowing for method chaining */ public VerificationError type(TypeEnum type) { @@ -257,11 +256,8 @@ public VerificationError type(TypeEnum type) { } /** - * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and - * **pendingStatus**. - * - * @return type The type of verification error. Possible values: **invalidInput**, - * **dataMissing**, and **pendingStatus**. + * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and **pendingStatus**. + * @return type The type of verification error. Possible values: **invalidInput**, **dataMissing**, and **pendingStatus**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -270,11 +266,9 @@ public TypeEnum getType() { } /** - * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and - * **pendingStatus**. + * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and **pendingStatus**. * - * @param type The type of verification error. Possible values: **invalidInput**, **dataMissing**, - * and **pendingStatus**. + * @param type The type of verification error. Possible values: **invalidInput**, **dataMissing**, and **pendingStatus**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -282,7 +276,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this VerificationError object is equal to o. */ + /** + * Return true if this VerificationError object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -292,11 +288,11 @@ public boolean equals(Object o) { return false; } VerificationError verificationError = (VerificationError) o; - return Objects.equals(this.code, verificationError.code) - && Objects.equals(this.message, verificationError.message) - && Objects.equals(this.remediatingActions, verificationError.remediatingActions) - && Objects.equals(this.subErrors, verificationError.subErrors) - && Objects.equals(this.type, verificationError.type); + return Objects.equals(this.code, verificationError.code) && + Objects.equals(this.message, verificationError.message) && + Objects.equals(this.remediatingActions, verificationError.remediatingActions) && + Objects.equals(this.subErrors, verificationError.subErrors) && + Objects.equals(this.type, verificationError.type); } @Override @@ -318,7 +314,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -327,7 +324,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of VerificationError given an JSON string * * @param jsonString JSON string @@ -337,12 +334,11 @@ private String toIndentedString(Object o) { public static VerificationError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, VerificationError.class); } - - /** - * Convert an instance of VerificationError to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of VerificationError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/VerificationErrorRecursive.java b/src/main/java/com/adyen/model/managementwebhooks/VerificationErrorRecursive.java index 8f3fbc37f..1cbda7871 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/VerificationErrorRecursive.java +++ b/src/main/java/com/adyen/model/managementwebhooks/VerificationErrorRecursive.java @@ -2,29 +2,34 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.managementwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.managementwebhooks.RemediatingAction; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** VerificationErrorRecursive */ +/** + * VerificationErrorRecursive + */ @JsonPropertyOrder({ VerificationErrorRecursive.JSON_PROPERTY_CODE, VerificationErrorRecursive.JSON_PROPERTY_MESSAGE, @@ -32,6 +37,7 @@ VerificationErrorRecursive.JSON_PROPERTY_REMEDIATING_ACTIONS }) @JsonTypeName("VerificationError-recursive") + public class VerificationErrorRecursive { public static final String JSON_PROPERTY_CODE = "code"; private String code; @@ -40,10 +46,10 @@ public class VerificationErrorRecursive { private String message; /** - * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and - * **pendingStatus**. + * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and **pendingStatus**. */ public enum TypeEnum { + DATAMISSING(String.valueOf("dataMissing")), INVALIDINPUT(String.valueOf("invalidInput")), @@ -55,7 +61,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -76,11 +82,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -91,7 +93,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_REMEDIATING_ACTIONS = "remediatingActions"; private List remediatingActions; - public VerificationErrorRecursive() {} + public VerificationErrorRecursive() { + } /** * The verification error code. @@ -106,7 +109,6 @@ public VerificationErrorRecursive code(String code) { /** * The verification error code. - * * @return code The verification error code. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -139,7 +141,6 @@ public VerificationErrorRecursive message(String message) { /** * The verification error message. - * * @return message The verification error message. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -160,11 +161,9 @@ public void setMessage(String message) { } /** - * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and - * **pendingStatus**. + * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and **pendingStatus**. * - * @param type The type of verification error. Possible values: **invalidInput**, **dataMissing**, - * and **pendingStatus**. + * @param type The type of verification error. Possible values: **invalidInput**, **dataMissing**, and **pendingStatus**. * @return the current {@code VerificationErrorRecursive} instance, allowing for method chaining */ public VerificationErrorRecursive type(TypeEnum type) { @@ -173,11 +172,8 @@ public VerificationErrorRecursive type(TypeEnum type) { } /** - * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and - * **pendingStatus**. - * - * @return type The type of verification error. Possible values: **invalidInput**, - * **dataMissing**, and **pendingStatus**. + * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and **pendingStatus**. + * @return type The type of verification error. Possible values: **invalidInput**, **dataMissing**, and **pendingStatus**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,11 +182,9 @@ public TypeEnum getType() { } /** - * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and - * **pendingStatus**. + * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and **pendingStatus**. * - * @param type The type of verification error. Possible values: **invalidInput**, **dataMissing**, - * and **pendingStatus**. + * @param type The type of verification error. Possible values: **invalidInput**, **dataMissing**, and **pendingStatus**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -209,8 +203,7 @@ public VerificationErrorRecursive remediatingActions(List rem return this; } - public VerificationErrorRecursive addRemediatingActionsItem( - RemediatingAction remediatingActionsItem) { + public VerificationErrorRecursive addRemediatingActionsItem(RemediatingAction remediatingActionsItem) { if (this.remediatingActions == null) { this.remediatingActions = new ArrayList<>(); } @@ -220,7 +213,6 @@ public VerificationErrorRecursive addRemediatingActionsItem( /** * The actions that you can take to resolve the verification error. - * * @return remediatingActions The actions that you can take to resolve the verification error. */ @JsonProperty(JSON_PROPERTY_REMEDIATING_ACTIONS) @@ -240,7 +232,9 @@ public void setRemediatingActions(List remediatingActions) { this.remediatingActions = remediatingActions; } - /** Return true if this VerificationError-recursive object is equal to o. */ + /** + * Return true if this VerificationError-recursive object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -250,10 +244,10 @@ public boolean equals(Object o) { return false; } VerificationErrorRecursive verificationErrorRecursive = (VerificationErrorRecursive) o; - return Objects.equals(this.code, verificationErrorRecursive.code) - && Objects.equals(this.message, verificationErrorRecursive.message) - && Objects.equals(this.type, verificationErrorRecursive.type) - && Objects.equals(this.remediatingActions, verificationErrorRecursive.remediatingActions); + return Objects.equals(this.code, verificationErrorRecursive.code) && + Objects.equals(this.message, verificationErrorRecursive.message) && + Objects.equals(this.type, verificationErrorRecursive.type) && + Objects.equals(this.remediatingActions, verificationErrorRecursive.remediatingActions); } @Override @@ -274,7 +268,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -283,24 +278,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of VerificationErrorRecursive given an JSON string * * @param jsonString JSON string * @return An instance of VerificationErrorRecursive - * @throws JsonProcessingException if the JSON string is invalid with respect to - * VerificationErrorRecursive + * @throws JsonProcessingException if the JSON string is invalid with respect to VerificationErrorRecursive */ - public static VerificationErrorRecursive fromJson(String jsonString) - throws JsonProcessingException { + public static VerificationErrorRecursive fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, VerificationErrorRecursive.class); } - - /** - * Convert an instance of VerificationErrorRecursive to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of VerificationErrorRecursive to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/AbstractOpenApiSchema.java index d248a2531..48ad1676c 100644 --- a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/AbstractOpenApiSchema.java @@ -1,142 +1,146 @@ /* - * Negative balance compensation warning + * Negative balance compensation warning * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.negativebalancewarningwebhooks; -import com.fasterxml.jackson.annotation.JsonValue; -import jakarta.ws.rs.core.GenericType; -import java.util.Map; import java.util.Objects; +import java.util.Map; +import jakarta.ws.rs.core.GenericType; -/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec + */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() { - return instance; - } - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) { - this.instance = instance; - } - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf - * schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); - } else { - return object.getActualInstance(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() {return instance;} + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) {this.instance = instance;} + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); + } else { + return object.getActualInstance(); + } + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) && + Objects.equals(this.isNullable, a.isNullable) && + Objects.equals(this.schemaType, a.schemaType); } - return o.toString().replace("\n", "\n "); - } - public boolean equals(Object o) { - if (this == o) { - return true; + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); } - if (o == null || getClass() != o.getClass()) { - return false; + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) - && Objects.equals(this.isNullable, a.isNullable) - && Objects.equals(this.schemaType, a.schemaType); - } - - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); - } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); - } -} + + + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/Amount.java b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/Amount.java index 24a355339..e1f24005a 100644 --- a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/Amount.java +++ b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/Amount.java @@ -1,24 +1,37 @@ /* - * Negative balance compensation warning + * Negative balance compensation warning * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.negativebalancewarningwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Amount */ -@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) + +/** + * Amount + */ +@JsonPropertyOrder({ + Amount.JSON_PROPERTY_CURRENCY, + Amount.JSON_PROPERTY_VALUE +}) + public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -26,14 +39,13 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() {} + public Amount() { + } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount currency(String currency) { @@ -42,11 +54,8 @@ public Amount currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -55,11 +64,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,11 +75,9 @@ public void setCurrency(String currency) { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount value(Long value) { @@ -81,11 +86,8 @@ public Amount value(Long value) { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). - * - * @return value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @return value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,11 +96,9 @@ public Long getValue() { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,7 +106,9 @@ public void setValue(Long value) { this.value = value; } - /** Return true if this Amount object is equal to o. */ + /** + * Return true if this Amount object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -116,8 +118,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) - && Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) && + Objects.equals(this.value, amount.value); } @Override @@ -136,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -155,12 +158,11 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } - - /** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/JSON.java b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/JSON.java index 2673db028..5e2dfd74c 100644 --- a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/JSON.java +++ b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/JSON.java @@ -1,18 +1,21 @@ package com.adyen.model.negativebalancewarningwebhooks; -import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; +import com.adyen.serializer.ByteArrayDeserializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; +import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; +import com.adyen.model.negativebalancewarningwebhooks.*; + import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -37,7 +40,6 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. - * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -54,13 +56,11 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { - return mapper; - } + public static ObjectMapper getMapper() { return mapper; } /** - * Returns the target model class that should be used to deserialize the input data. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,7 +73,9 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** Helper class to register the discriminator mappings. */ + /** + * Helper class to register the discriminator mappings. + */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -115,9 +117,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. This - * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -162,14 +164,13 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so - * it's not possible to use the instanceof keyword. + * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, + * so it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf( - Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -193,58 +194,59 @@ public static boolean isInstanceOf( return false; } - /** A map of discriminators for all model classes. */ - private static final Map, ClassDiscriminatorMapping> modelDiscriminators = - new HashMap, ClassDiscriminatorMapping>(); + /** + * A map of discriminators for all model classes. + */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); - /** A map of oneOf/anyOf descendants for each model class. */ + /** + * A map of oneOf/anyOf descendants for each model class. + */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator( - Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = - new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants( - Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants(Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static { + static + { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceCompensationWarningNotificationData.java b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceCompensationWarningNotificationData.java index db92ccaea..6f9674a90 100644 --- a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceCompensationWarningNotificationData.java +++ b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceCompensationWarningNotificationData.java @@ -1,24 +1,35 @@ /* - * Negative balance compensation warning + * Negative balance compensation warning * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.negativebalancewarningwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.negativebalancewarningwebhooks.Amount; +import com.adyen.model.negativebalancewarningwebhooks.ResourceReference; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.time.OffsetDateTime; -import java.util.*; -/** NegativeBalanceCompensationWarningNotificationData */ + +/** + * NegativeBalanceCompensationWarningNotificationData + */ @JsonPropertyOrder({ NegativeBalanceCompensationWarningNotificationData.JSON_PROPERTY_ACCOUNT_HOLDER, NegativeBalanceCompensationWarningNotificationData.JSON_PROPERTY_AMOUNT, @@ -29,6 +40,7 @@ NegativeBalanceCompensationWarningNotificationData.JSON_PROPERTY_NEGATIVE_BALANCE_SINCE, NegativeBalanceCompensationWarningNotificationData.JSON_PROPERTY_SCHEDULED_COMPENSATION_AT }) + public class NegativeBalanceCompensationWarningNotificationData { public static final String JSON_PROPERTY_ACCOUNT_HOLDER = "accountHolder"; private ResourceReference accountHolder; @@ -54,25 +66,23 @@ public class NegativeBalanceCompensationWarningNotificationData { public static final String JSON_PROPERTY_SCHEDULED_COMPENSATION_AT = "scheduledCompensationAt"; private OffsetDateTime scheduledCompensationAt; - public NegativeBalanceCompensationWarningNotificationData() {} + public NegativeBalanceCompensationWarningNotificationData() { + } /** * accountHolder * - * @param accountHolder - * @return the current {@code NegativeBalanceCompensationWarningNotificationData} instance, - * allowing for method chaining + * @param accountHolder + * @return the current {@code NegativeBalanceCompensationWarningNotificationData} instance, allowing for method chaining */ - public NegativeBalanceCompensationWarningNotificationData accountHolder( - ResourceReference accountHolder) { + public NegativeBalanceCompensationWarningNotificationData accountHolder(ResourceReference accountHolder) { this.accountHolder = accountHolder; return this; } /** * Get accountHolder - * - * @return accountHolder + * @return accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,7 +93,7 @@ public ResourceReference getAccountHolder() { /** * accountHolder * - * @param accountHolder + * @param accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,9 +104,8 @@ public void setAccountHolder(ResourceReference accountHolder) { /** * amount * - * @param amount - * @return the current {@code NegativeBalanceCompensationWarningNotificationData} instance, - * allowing for method chaining + * @param amount + * @return the current {@code NegativeBalanceCompensationWarningNotificationData} instance, allowing for method chaining */ public NegativeBalanceCompensationWarningNotificationData amount(Amount amount) { this.amount = amount; @@ -105,8 +114,7 @@ public NegativeBalanceCompensationWarningNotificationData amount(Amount amount) /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,7 +125,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,18 +137,15 @@ public void setAmount(Amount amount) { * The unique identifier of the balance platform. * * @param balancePlatform The unique identifier of the balance platform. - * @return the current {@code NegativeBalanceCompensationWarningNotificationData} instance, - * allowing for method chaining + * @return the current {@code NegativeBalanceCompensationWarningNotificationData} instance, allowing for method chaining */ - public NegativeBalanceCompensationWarningNotificationData balancePlatform( - String balancePlatform) { + public NegativeBalanceCompensationWarningNotificationData balancePlatform(String balancePlatform) { this.balancePlatform = balancePlatform; return this; } /** * The unique identifier of the balance platform. - * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -161,26 +166,19 @@ public void setBalancePlatform(String balancePlatform) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. - * @return the current {@code NegativeBalanceCompensationWarningNotificationData} instance, - * allowing for method chaining + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @return the current {@code NegativeBalanceCompensationWarningNotificationData} instance, allowing for method chaining */ - public NegativeBalanceCompensationWarningNotificationData creationDate( - OffsetDateTime creationDate) { + public NegativeBalanceCompensationWarningNotificationData creationDate(OffsetDateTime creationDate) { this.creationDate = creationDate; return this; } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. - * - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,11 +187,9 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -205,8 +201,7 @@ public void setCreationDate(OffsetDateTime creationDate) { * The ID of the resource. * * @param id The ID of the resource. - * @return the current {@code NegativeBalanceCompensationWarningNotificationData} instance, - * allowing for method chaining + * @return the current {@code NegativeBalanceCompensationWarningNotificationData} instance, allowing for method chaining */ public NegativeBalanceCompensationWarningNotificationData id(String id) { this.id = id; @@ -215,7 +210,6 @@ public NegativeBalanceCompensationWarningNotificationData id(String id) { /** * The ID of the resource. - * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -236,26 +230,19 @@ public void setId(String id) { } /** - * The balance account ID of the account that will be used to compensate the balance account whose - * balance is negative. + * The balance account ID of the account that will be used to compensate the balance account whose balance is negative. * - * @param liableBalanceAccountId The balance account ID of the account that will be used to - * compensate the balance account whose balance is negative. - * @return the current {@code NegativeBalanceCompensationWarningNotificationData} instance, - * allowing for method chaining + * @param liableBalanceAccountId The balance account ID of the account that will be used to compensate the balance account whose balance is negative. + * @return the current {@code NegativeBalanceCompensationWarningNotificationData} instance, allowing for method chaining */ - public NegativeBalanceCompensationWarningNotificationData liableBalanceAccountId( - String liableBalanceAccountId) { + public NegativeBalanceCompensationWarningNotificationData liableBalanceAccountId(String liableBalanceAccountId) { this.liableBalanceAccountId = liableBalanceAccountId; return this; } /** - * The balance account ID of the account that will be used to compensate the balance account whose - * balance is negative. - * - * @return liableBalanceAccountId The balance account ID of the account that will be used to - * compensate the balance account whose balance is negative. + * The balance account ID of the account that will be used to compensate the balance account whose balance is negative. + * @return liableBalanceAccountId The balance account ID of the account that will be used to compensate the balance account whose balance is negative. */ @JsonProperty(JSON_PROPERTY_LIABLE_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -264,11 +251,9 @@ public String getLiableBalanceAccountId() { } /** - * The balance account ID of the account that will be used to compensate the balance account whose - * balance is negative. + * The balance account ID of the account that will be used to compensate the balance account whose balance is negative. * - * @param liableBalanceAccountId The balance account ID of the account that will be used to - * compensate the balance account whose balance is negative. + * @param liableBalanceAccountId The balance account ID of the account that will be used to compensate the balance account whose balance is negative. */ @JsonProperty(JSON_PROPERTY_LIABLE_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -280,18 +265,15 @@ public void setLiableBalanceAccountId(String liableBalanceAccountId) { * The date the balance for the account became negative. * * @param negativeBalanceSince The date the balance for the account became negative. - * @return the current {@code NegativeBalanceCompensationWarningNotificationData} instance, - * allowing for method chaining + * @return the current {@code NegativeBalanceCompensationWarningNotificationData} instance, allowing for method chaining */ - public NegativeBalanceCompensationWarningNotificationData negativeBalanceSince( - OffsetDateTime negativeBalanceSince) { + public NegativeBalanceCompensationWarningNotificationData negativeBalanceSince(OffsetDateTime negativeBalanceSince) { this.negativeBalanceSince = negativeBalanceSince; return this; } /** * The date the balance for the account became negative. - * * @return negativeBalanceSince The date the balance for the account became negative. */ @JsonProperty(JSON_PROPERTY_NEGATIVE_BALANCE_SINCE) @@ -314,22 +296,17 @@ public void setNegativeBalanceSince(OffsetDateTime negativeBalanceSince) { /** * The date when a compensation transfer to the account is scheduled to happen. * - * @param scheduledCompensationAt The date when a compensation transfer to the account is - * scheduled to happen. - * @return the current {@code NegativeBalanceCompensationWarningNotificationData} instance, - * allowing for method chaining + * @param scheduledCompensationAt The date when a compensation transfer to the account is scheduled to happen. + * @return the current {@code NegativeBalanceCompensationWarningNotificationData} instance, allowing for method chaining */ - public NegativeBalanceCompensationWarningNotificationData scheduledCompensationAt( - OffsetDateTime scheduledCompensationAt) { + public NegativeBalanceCompensationWarningNotificationData scheduledCompensationAt(OffsetDateTime scheduledCompensationAt) { this.scheduledCompensationAt = scheduledCompensationAt; return this; } /** * The date when a compensation transfer to the account is scheduled to happen. - * - * @return scheduledCompensationAt The date when a compensation transfer to the account is - * scheduled to happen. + * @return scheduledCompensationAt The date when a compensation transfer to the account is scheduled to happen. */ @JsonProperty(JSON_PROPERTY_SCHEDULED_COMPENSATION_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -340,8 +317,7 @@ public OffsetDateTime getScheduledCompensationAt() { /** * The date when a compensation transfer to the account is scheduled to happen. * - * @param scheduledCompensationAt The date when a compensation transfer to the account is - * scheduled to happen. + * @param scheduledCompensationAt The date when a compensation transfer to the account is scheduled to happen. */ @JsonProperty(JSON_PROPERTY_SCHEDULED_COMPENSATION_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -360,40 +336,20 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - NegativeBalanceCompensationWarningNotificationData - negativeBalanceCompensationWarningNotificationData = - (NegativeBalanceCompensationWarningNotificationData) o; - return Objects.equals( - this.accountHolder, negativeBalanceCompensationWarningNotificationData.accountHolder) - && Objects.equals(this.amount, negativeBalanceCompensationWarningNotificationData.amount) - && Objects.equals( - this.balancePlatform, - negativeBalanceCompensationWarningNotificationData.balancePlatform) - && Objects.equals( - this.creationDate, negativeBalanceCompensationWarningNotificationData.creationDate) - && Objects.equals(this.id, negativeBalanceCompensationWarningNotificationData.id) - && Objects.equals( - this.liableBalanceAccountId, - negativeBalanceCompensationWarningNotificationData.liableBalanceAccountId) - && Objects.equals( - this.negativeBalanceSince, - negativeBalanceCompensationWarningNotificationData.negativeBalanceSince) - && Objects.equals( - this.scheduledCompensationAt, - negativeBalanceCompensationWarningNotificationData.scheduledCompensationAt); + NegativeBalanceCompensationWarningNotificationData negativeBalanceCompensationWarningNotificationData = (NegativeBalanceCompensationWarningNotificationData) o; + return Objects.equals(this.accountHolder, negativeBalanceCompensationWarningNotificationData.accountHolder) && + Objects.equals(this.amount, negativeBalanceCompensationWarningNotificationData.amount) && + Objects.equals(this.balancePlatform, negativeBalanceCompensationWarningNotificationData.balancePlatform) && + Objects.equals(this.creationDate, negativeBalanceCompensationWarningNotificationData.creationDate) && + Objects.equals(this.id, negativeBalanceCompensationWarningNotificationData.id) && + Objects.equals(this.liableBalanceAccountId, negativeBalanceCompensationWarningNotificationData.liableBalanceAccountId) && + Objects.equals(this.negativeBalanceSince, negativeBalanceCompensationWarningNotificationData.negativeBalanceSince) && + Objects.equals(this.scheduledCompensationAt, negativeBalanceCompensationWarningNotificationData.scheduledCompensationAt); } @Override public int hashCode() { - return Objects.hash( - accountHolder, - amount, - balancePlatform, - creationDate, - id, - liableBalanceAccountId, - negativeBalanceSince, - scheduledCompensationAt); + return Objects.hash(accountHolder, amount, balancePlatform, creationDate, id, liableBalanceAccountId, negativeBalanceSince, scheduledCompensationAt); } @Override @@ -405,21 +361,16 @@ public String toString() { sb.append(" balancePlatform: ").append(toIndentedString(balancePlatform)).append("\n"); sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" liableBalanceAccountId: ") - .append(toIndentedString(liableBalanceAccountId)) - .append("\n"); - sb.append(" negativeBalanceSince: ") - .append(toIndentedString(negativeBalanceSince)) - .append("\n"); - sb.append(" scheduledCompensationAt: ") - .append(toIndentedString(scheduledCompensationAt)) - .append("\n"); + sb.append(" liableBalanceAccountId: ").append(toIndentedString(liableBalanceAccountId)).append("\n"); + sb.append(" negativeBalanceSince: ").append(toIndentedString(negativeBalanceSince)).append("\n"); + sb.append(" scheduledCompensationAt: ").append(toIndentedString(scheduledCompensationAt)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -428,25 +379,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of NegativeBalanceCompensationWarningNotificationData given an JSON string * * @param jsonString JSON string * @return An instance of NegativeBalanceCompensationWarningNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * NegativeBalanceCompensationWarningNotificationData + * @throws JsonProcessingException if the JSON string is invalid with respect to NegativeBalanceCompensationWarningNotificationData */ - public static NegativeBalanceCompensationWarningNotificationData fromJson(String jsonString) - throws JsonProcessingException { - return JSON.getMapper() - .readValue(jsonString, NegativeBalanceCompensationWarningNotificationData.class); + public static NegativeBalanceCompensationWarningNotificationData fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, NegativeBalanceCompensationWarningNotificationData.class); } - - /** - * Convert an instance of NegativeBalanceCompensationWarningNotificationData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of NegativeBalanceCompensationWarningNotificationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceCompensationWarningNotificationRequest.java b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceCompensationWarningNotificationRequest.java index 2add2d2cf..640b1a3fa 100644 --- a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceCompensationWarningNotificationRequest.java +++ b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceCompensationWarningNotificationRequest.java @@ -1,34 +1,41 @@ /* - * Negative balance compensation warning + * Negative balance compensation warning * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.negativebalancewarningwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.negativebalancewarningwebhooks.NegativeBalanceCompensationWarningNotificationData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** NegativeBalanceCompensationWarningNotificationRequest */ + +/** + * NegativeBalanceCompensationWarningNotificationRequest + */ @JsonPropertyOrder({ NegativeBalanceCompensationWarningNotificationRequest.JSON_PROPERTY_DATA, NegativeBalanceCompensationWarningNotificationRequest.JSON_PROPERTY_ENVIRONMENT, NegativeBalanceCompensationWarningNotificationRequest.JSON_PROPERTY_TIMESTAMP, NegativeBalanceCompensationWarningNotificationRequest.JSON_PROPERTY_TYPE }) + public class NegativeBalanceCompensationWarningNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private NegativeBalanceCompensationWarningNotificationData data; @@ -39,17 +46,19 @@ public class NegativeBalanceCompensationWarningNotificationRequest { public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; private OffsetDateTime timestamp; - /** Type of webhook. */ + /** + * Type of webhook. + */ public enum TypeEnum { - BALANCEPLATFORM_NEGATIVEBALANCECOMPENSATIONWARNING_SCHEDULED( - String.valueOf("balancePlatform.negativeBalanceCompensationWarning.scheduled")); + + BALANCEPLATFORM_NEGATIVEBALANCECOMPENSATIONWARNING_SCHEDULED(String.valueOf("balancePlatform.negativeBalanceCompensationWarning.scheduled")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -70,11 +79,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -82,25 +87,23 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public NegativeBalanceCompensationWarningNotificationRequest() {} + public NegativeBalanceCompensationWarningNotificationRequest() { + } /** * data * - * @param data - * @return the current {@code NegativeBalanceCompensationWarningNotificationRequest} instance, - * allowing for method chaining + * @param data + * @return the current {@code NegativeBalanceCompensationWarningNotificationRequest} instance, allowing for method chaining */ - public NegativeBalanceCompensationWarningNotificationRequest data( - NegativeBalanceCompensationWarningNotificationData data) { + public NegativeBalanceCompensationWarningNotificationRequest data(NegativeBalanceCompensationWarningNotificationData data) { this.data = data; return this; } /** * Get data - * - * @return data + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,7 +114,7 @@ public NegativeBalanceCompensationWarningNotificationData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -120,12 +123,10 @@ public void setData(NegativeBalanceCompensationWarningNotificationData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. - * @return the current {@code NegativeBalanceCompensationWarningNotificationRequest} instance, - * allowing for method chaining + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @return the current {@code NegativeBalanceCompensationWarningNotificationRequest} instance, allowing for method chaining */ public NegativeBalanceCompensationWarningNotificationRequest environment(String environment) { this.environment = environment; @@ -133,10 +134,8 @@ public NegativeBalanceCompensationWarningNotificationRequest environment(String } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * - * @return environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,10 +144,9 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,8 +158,7 @@ public void setEnvironment(String environment) { * When the event was queued. * * @param timestamp When the event was queued. - * @return the current {@code NegativeBalanceCompensationWarningNotificationRequest} instance, - * allowing for method chaining + * @return the current {@code NegativeBalanceCompensationWarningNotificationRequest} instance, allowing for method chaining */ public NegativeBalanceCompensationWarningNotificationRequest timestamp(OffsetDateTime timestamp) { this.timestamp = timestamp; @@ -170,7 +167,6 @@ public NegativeBalanceCompensationWarningNotificationRequest timestamp(OffsetDat /** * When the event was queued. - * * @return timestamp When the event was queued. */ @JsonProperty(JSON_PROPERTY_TIMESTAMP) @@ -194,8 +190,7 @@ public void setTimestamp(OffsetDateTime timestamp) { * Type of webhook. * * @param type Type of webhook. - * @return the current {@code NegativeBalanceCompensationWarningNotificationRequest} instance, - * allowing for method chaining + * @return the current {@code NegativeBalanceCompensationWarningNotificationRequest} instance, allowing for method chaining */ public NegativeBalanceCompensationWarningNotificationRequest type(TypeEnum type) { this.type = type; @@ -204,7 +199,6 @@ public NegativeBalanceCompensationWarningNotificationRequest type(TypeEnum type) /** * Type of webhook. - * * @return type Type of webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -235,15 +229,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - NegativeBalanceCompensationWarningNotificationRequest - negativeBalanceCompensationWarningNotificationRequest = - (NegativeBalanceCompensationWarningNotificationRequest) o; - return Objects.equals(this.data, negativeBalanceCompensationWarningNotificationRequest.data) - && Objects.equals( - this.environment, negativeBalanceCompensationWarningNotificationRequest.environment) - && Objects.equals( - this.timestamp, negativeBalanceCompensationWarningNotificationRequest.timestamp) - && Objects.equals(this.type, negativeBalanceCompensationWarningNotificationRequest.type); + NegativeBalanceCompensationWarningNotificationRequest negativeBalanceCompensationWarningNotificationRequest = (NegativeBalanceCompensationWarningNotificationRequest) o; + return Objects.equals(this.data, negativeBalanceCompensationWarningNotificationRequest.data) && + Objects.equals(this.environment, negativeBalanceCompensationWarningNotificationRequest.environment) && + Objects.equals(this.timestamp, negativeBalanceCompensationWarningNotificationRequest.timestamp) && + Objects.equals(this.type, negativeBalanceCompensationWarningNotificationRequest.type); } @Override @@ -264,7 +254,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -273,26 +264,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create an instance of NegativeBalanceCompensationWarningNotificationRequest given an JSON - * string +/** + * Create an instance of NegativeBalanceCompensationWarningNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of NegativeBalanceCompensationWarningNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * NegativeBalanceCompensationWarningNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to NegativeBalanceCompensationWarningNotificationRequest */ - public static NegativeBalanceCompensationWarningNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { - return JSON.getMapper() - .readValue(jsonString, NegativeBalanceCompensationWarningNotificationRequest.class); + public static NegativeBalanceCompensationWarningNotificationRequest fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, NegativeBalanceCompensationWarningNotificationRequest.class); } - - /** - * Convert an instance of NegativeBalanceCompensationWarningNotificationRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of NegativeBalanceCompensationWarningNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceWarningWebhooksHandler.java b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceWarningWebhooksHandler.java index 398a02235..e9986c223 100644 --- a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceWarningWebhooksHandler.java +++ b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceWarningWebhooksHandler.java @@ -1,8 +1,8 @@ /* - * Negative balance compensation warning + * Negative balance compensation warning * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,68 +16,63 @@ /** * Handler for processing NegativeBalanceWarningWebhooks. - * - *

This class provides functionality to deserialize the payload of NegativeBalanceWarningWebhooks - * events. + *

+ * This class provides functionality to deserialize the payload of NegativeBalanceWarningWebhooks events. */ public class NegativeBalanceWarningWebhooksHandler { - private static final Logger LOG = - Logger.getLogger(NegativeBalanceWarningWebhooksHandler.class.getName()); + private static final Logger LOG = Logger.getLogger(NegativeBalanceWarningWebhooksHandler.class.getName()); - private final String payload; + private final String payload; - /** - * Constructs a new handler for the given webhook payload - * - * @param payload the raw JSON payload from the webhook - */ - public NegativeBalanceWarningWebhooksHandler(String payload) { - this.payload = payload; - } + /** + * Constructs a new handler for the given webhook payload + * + * @param payload the raw JSON payload from the webhook + */ + public NegativeBalanceWarningWebhooksHandler(String payload) { + this.payload = payload; + } - /** - * Attempts to deserialize the webhook payload into a - * NegativeBalanceCompensationWarningNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional - getNegativeBalanceCompensationWarningNotificationRequest() { + /** + * Attempts to deserialize the webhook payload into a NegativeBalanceCompensationWarningNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getNegativeBalanceCompensationWarningNotificationRequest() { - var optionalNegativeBalanceCompensationWarningNotificationRequest = - getOptionalField(NegativeBalanceCompensationWarningNotificationRequest.class); + var optionalNegativeBalanceCompensationWarningNotificationRequest = getOptionalField(NegativeBalanceCompensationWarningNotificationRequest.class); - if (optionalNegativeBalanceCompensationWarningNotificationRequest.isPresent()) { - // verify event type - for (var value : NegativeBalanceCompensationWarningNotificationRequest.TypeEnum.values()) { - if (value.equals( - optionalNegativeBalanceCompensationWarningNotificationRequest.get().getType())) { - // found matching event type - return optionalNegativeBalanceCompensationWarningNotificationRequest; + if(optionalNegativeBalanceCompensationWarningNotificationRequest.isPresent()) { + // verify event type + for (var value : NegativeBalanceCompensationWarningNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalNegativeBalanceCompensationWarningNotificationRequest.get().getType())) { + // found matching event type + return optionalNegativeBalanceCompensationWarningNotificationRequest; + } + } } - } - } - return Optional.empty(); - } + return Optional.empty(); + } - /** - * Deserializes the payload into the specified class type. - * - * @param clazz the class to deserialize into - * @param the type of the class - * @return an Optional containing the deserialized object, or empty if an error occurs - */ - private Optional getOptionalField(Class clazz) { - try { - T val = JSON.getMapper().readValue(payload, clazz); - return Optional.ofNullable(val); - } catch (Exception e) { - // an error has occurred during deserialization (object not found, deserialization error) - LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); - LOG.warning("Deserialization error: " + e.getMessage()); - return Optional.empty(); + /** + * Deserializes the payload into the specified class type. + * + * @param clazz the class to deserialize into + * @param the type of the class + * @return an Optional containing the deserialized object, or empty if an error occurs + */ + private Optional getOptionalField(Class clazz) { + try { + T val = JSON.getMapper().readValue(payload, clazz); + return Optional.ofNullable(val); + } catch (Exception e) { + // an error has occurred during deserialization (object not found, deserialization error) + LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); + LOG.warning("Deserialization error: " + e.getMessage()); + return Optional.empty(); + } } - } -} + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/Resource.java b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/Resource.java index 5e4717104..aa32c466e 100644 --- a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/Resource.java +++ b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/Resource.java @@ -1,29 +1,39 @@ /* - * Negative balance compensation warning + * Negative balance compensation warning * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.negativebalancewarningwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.time.OffsetDateTime; -import java.util.*; -/** Resource */ + +/** + * Resource + */ @JsonPropertyOrder({ Resource.JSON_PROPERTY_BALANCE_PLATFORM, Resource.JSON_PROPERTY_CREATION_DATE, Resource.JSON_PROPERTY_ID }) + public class Resource { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; @@ -34,7 +44,8 @@ public class Resource { public static final String JSON_PROPERTY_ID = "id"; private String id; - public Resource() {} + public Resource() { + } /** * The unique identifier of the balance platform. @@ -49,7 +60,6 @@ public Resource balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. - * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -70,11 +80,9 @@ public void setBalancePlatform(String balancePlatform) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code Resource} instance, allowing for method chaining */ public Resource creationDate(OffsetDateTime creationDate) { @@ -83,11 +91,8 @@ public Resource creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. - * - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,11 +101,9 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,7 +124,6 @@ public Resource id(String id) { /** * The ID of the resource. - * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -141,7 +143,9 @@ public void setId(String id) { this.id = id; } - /** Return true if this Resource object is equal to o. */ + /** + * Return true if this Resource object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -151,9 +155,9 @@ public boolean equals(Object o) { return false; } Resource resource = (Resource) o; - return Objects.equals(this.balancePlatform, resource.balancePlatform) - && Objects.equals(this.creationDate, resource.creationDate) - && Objects.equals(this.id, resource.id); + return Objects.equals(this.balancePlatform, resource.balancePlatform) && + Objects.equals(this.creationDate, resource.creationDate) && + Objects.equals(this.id, resource.id); } @Override @@ -173,7 +177,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,7 +187,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Resource given an JSON string * * @param jsonString JSON string @@ -192,12 +197,11 @@ private String toIndentedString(Object o) { public static Resource fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Resource.class); } - - /** - * Convert an instance of Resource to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Resource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/ResourceReference.java b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/ResourceReference.java index 1cb999a8c..10749e5ef 100644 --- a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/ResourceReference.java +++ b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/ResourceReference.java @@ -1,28 +1,38 @@ /* - * Negative balance compensation warning + * Negative balance compensation warning * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.negativebalancewarningwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ResourceReference */ + +/** + * ResourceReference + */ @JsonPropertyOrder({ ResourceReference.JSON_PROPERTY_DESCRIPTION, ResourceReference.JSON_PROPERTY_ID, ResourceReference.JSON_PROPERTY_REFERENCE }) + public class ResourceReference { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -33,7 +43,8 @@ public class ResourceReference { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public ResourceReference() {} + public ResourceReference() { + } /** * The description of the resource. @@ -48,7 +59,6 @@ public ResourceReference description(String description) { /** * The description of the resource. - * * @return description The description of the resource. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -81,7 +91,6 @@ public ResourceReference id(String id) { /** * The unique identifier of the resource. - * * @return id The unique identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -114,7 +123,6 @@ public ResourceReference reference(String reference) { /** * The reference for the resource. - * * @return reference The reference for the resource. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -134,7 +142,9 @@ public void setReference(String reference) { this.reference = reference; } - /** Return true if this ResourceReference object is equal to o. */ + /** + * Return true if this ResourceReference object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,9 +154,9 @@ public boolean equals(Object o) { return false; } ResourceReference resourceReference = (ResourceReference) o; - return Objects.equals(this.description, resourceReference.description) - && Objects.equals(this.id, resourceReference.id) - && Objects.equals(this.reference, resourceReference.reference); + return Objects.equals(this.description, resourceReference.description) && + Objects.equals(this.id, resourceReference.id) && + Objects.equals(this.reference, resourceReference.reference); } @Override @@ -166,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResourceReference given an JSON string * * @param jsonString JSON string @@ -185,12 +196,11 @@ private String toIndentedString(Object o) { public static ResourceReference fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResourceReference.class); } - - /** - * Convert an instance of ResourceReference to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResourceReference to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/payment/AbstractOpenApiSchema.java index 1d8492f33..870b4a178 100644 --- a/src/main/java/com/adyen/model/payment/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/payment/AbstractOpenApiSchema.java @@ -2,141 +2,145 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; -import com.fasterxml.jackson.annotation.JsonValue; -import jakarta.ws.rs.core.GenericType; -import java.util.Map; import java.util.Objects; +import java.util.Map; +import jakarta.ws.rs.core.GenericType; -/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec + */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() { - return instance; - } - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) { - this.instance = instance; - } - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf - * schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); - } else { - return object.getActualInstance(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() {return instance;} + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) {this.instance = instance;} + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); + } else { + return object.getActualInstance(); + } + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) && + Objects.equals(this.isNullable, a.isNullable) && + Objects.equals(this.schemaType, a.schemaType); } - return o.toString().replace("\n", "\n "); - } - public boolean equals(Object o) { - if (this == o) { - return true; + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); } - if (o == null || getClass() != o.getClass()) { - return false; + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) - && Objects.equals(this.isNullable, a.isNullable) - && Objects.equals(this.schemaType, a.schemaType); - } - - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); - } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); - } -} + + + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/payment/AccountInfo.java b/src/main/java/com/adyen/model/payment/AccountInfo.java index 4b204b5ba..349b33153 100644 --- a/src/main/java/com/adyen/model/payment/AccountInfo.java +++ b/src/main/java/com/adyen/model/payment/AccountInfo.java @@ -2,27 +2,32 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** AccountInfo */ +/** + * AccountInfo + */ @JsonPropertyOrder({ AccountInfo.JSON_PROPERTY_ACCOUNT_AGE_INDICATOR, AccountInfo.JSON_PROPERTY_ACCOUNT_CHANGE_DATE, @@ -44,13 +49,13 @@ AccountInfo.JSON_PROPERTY_SUSPICIOUS_ACTIVITY, AccountInfo.JSON_PROPERTY_WORK_PHONE }) + public class AccountInfo { /** - * Indicator for the length of time since this shopper account was created in the merchant's - * environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * - * from30To60Days * moreThan60Days + * Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ public enum AccountAgeIndicatorEnum { + NOTAPPLICABLE(String.valueOf("notApplicable")), THISTRANSACTION(String.valueOf("thisTransaction")), @@ -66,7 +71,7 @@ public enum AccountAgeIndicatorEnum { private String value; AccountAgeIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -87,11 +92,7 @@ public static AccountAgeIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AccountAgeIndicatorEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AccountAgeIndicatorEnum.values())); + LOG.warning("AccountAgeIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AccountAgeIndicatorEnum.values())); return null; } } @@ -103,10 +104,10 @@ public static AccountAgeIndicatorEnum fromValue(String value) { private OffsetDateTime accountChangeDate; /** - * Indicator for the length of time since the shopper's account was last updated. Allowed - * values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ public enum AccountChangeIndicatorEnum { + THISTRANSACTION(String.valueOf("thisTransaction")), LESSTHAN30DAYS(String.valueOf("lessThan30Days")), @@ -120,7 +121,7 @@ public enum AccountChangeIndicatorEnum { private String value; AccountChangeIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -141,11 +142,7 @@ public static AccountChangeIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AccountChangeIndicatorEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AccountChangeIndicatorEnum.values())); + LOG.warning("AccountChangeIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AccountChangeIndicatorEnum.values())); return null; } } @@ -157,10 +154,10 @@ public static AccountChangeIndicatorEnum fromValue(String value) { private OffsetDateTime accountCreationDate; /** - * Indicates the type of account. For example, for a multi-account card product. Allowed values: * - * notApplicable * credit * debit + * Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit */ public enum AccountTypeEnum { + NOTAPPLICABLE(String.valueOf("notApplicable")), CREDIT(String.valueOf("credit")), @@ -172,7 +169,7 @@ public enum AccountTypeEnum { private String value; AccountTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -193,11 +190,7 @@ public static AccountTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AccountTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AccountTypeEnum.values())); + LOG.warning("AccountTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AccountTypeEnum.values())); return null; } } @@ -212,10 +205,10 @@ public static AccountTypeEnum fromValue(String value) { private OffsetDateTime deliveryAddressUsageDate; /** - * Indicator for the length of time since this delivery address was first used. Allowed values: * - * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ public enum DeliveryAddressUsageIndicatorEnum { + THISTRANSACTION(String.valueOf("thisTransaction")), LESSTHAN30DAYS(String.valueOf("lessThan30Days")), @@ -224,13 +217,12 @@ public enum DeliveryAddressUsageIndicatorEnum { MORETHAN60DAYS(String.valueOf("moreThan60Days")); - private static final Logger LOG = - Logger.getLogger(DeliveryAddressUsageIndicatorEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(DeliveryAddressUsageIndicatorEnum.class.getName()); private String value; DeliveryAddressUsageIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -251,37 +243,30 @@ public static DeliveryAddressUsageIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "DeliveryAddressUsageIndicatorEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(DeliveryAddressUsageIndicatorEnum.values())); + LOG.warning("DeliveryAddressUsageIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(DeliveryAddressUsageIndicatorEnum.values())); return null; } } - public static final String JSON_PROPERTY_DELIVERY_ADDRESS_USAGE_INDICATOR = - "deliveryAddressUsageIndicator"; + public static final String JSON_PROPERTY_DELIVERY_ADDRESS_USAGE_INDICATOR = "deliveryAddressUsageIndicator"; private DeliveryAddressUsageIndicatorEnum deliveryAddressUsageIndicator; public static final String JSON_PROPERTY_HOME_PHONE = "homePhone"; - @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.homePhone` - // instead. + @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.homePhone` instead. private String homePhone; public static final String JSON_PROPERTY_MOBILE_PHONE = "mobilePhone"; - @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.mobilePhone` - // instead. + @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.mobilePhone` instead. private String mobilePhone; public static final String JSON_PROPERTY_PASSWORD_CHANGE_DATE = "passwordChangeDate"; private OffsetDateTime passwordChangeDate; /** - * Indicator when the shopper has changed their password. Allowed values: * notApplicable * - * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ public enum PasswordChangeIndicatorEnum { + NOTAPPLICABLE(String.valueOf("notApplicable")), THISTRANSACTION(String.valueOf("thisTransaction")), @@ -297,7 +282,7 @@ public enum PasswordChangeIndicatorEnum { private String value; PasswordChangeIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -318,11 +303,7 @@ public static PasswordChangeIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PasswordChangeIndicatorEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PasswordChangeIndicatorEnum.values())); + LOG.warning("PasswordChangeIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PasswordChangeIndicatorEnum.values())); return null; } } @@ -340,11 +321,10 @@ public static PasswordChangeIndicatorEnum fromValue(String value) { private OffsetDateTime paymentAccountAge; /** - * Indicator for the length of time since this payment method was added to this shopper's - * account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * - * moreThan60Days + * Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ public enum PaymentAccountIndicatorEnum { + NOTAPPLICABLE(String.valueOf("notApplicable")), THISTRANSACTION(String.valueOf("thisTransaction")), @@ -360,7 +340,7 @@ public enum PaymentAccountIndicatorEnum { private String value; PaymentAccountIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -381,11 +361,7 @@ public static PaymentAccountIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PaymentAccountIndicatorEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PaymentAccountIndicatorEnum.values())); + LOG.warning("PaymentAccountIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PaymentAccountIndicatorEnum.values())); return null; } } @@ -400,20 +376,16 @@ public static PaymentAccountIndicatorEnum fromValue(String value) { private Boolean suspiciousActivity; public static final String JSON_PROPERTY_WORK_PHONE = "workPhone"; - @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.workPhone` - // instead. + @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.workPhone` instead. private String workPhone; - public AccountInfo() {} + public AccountInfo() { + } /** - * Indicator for the length of time since this shopper account was created in the merchant's - * environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * - * from30To60Days * moreThan60Days + * Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * - * @param accountAgeIndicator Indicator for the length of time since this shopper account was - * created in the merchant's environment. Allowed values: * notApplicable * - * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @param accountAgeIndicator Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * @return the current {@code AccountInfo} instance, allowing for method chaining */ public AccountInfo accountAgeIndicator(AccountAgeIndicatorEnum accountAgeIndicator) { @@ -422,13 +394,8 @@ public AccountInfo accountAgeIndicator(AccountAgeIndicatorEnum accountAgeIndicat } /** - * Indicator for the length of time since this shopper account was created in the merchant's - * environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * - * from30To60Days * moreThan60Days - * - * @return accountAgeIndicator Indicator for the length of time since this shopper account was - * created in the merchant's environment. Allowed values: * notApplicable * - * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @return accountAgeIndicator Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ @JsonProperty(JSON_PROPERTY_ACCOUNT_AGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -437,13 +404,9 @@ public AccountAgeIndicatorEnum getAccountAgeIndicator() { } /** - * Indicator for the length of time since this shopper account was created in the merchant's - * environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * - * from30To60Days * moreThan60Days + * Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * - * @param accountAgeIndicator Indicator for the length of time since this shopper account was - * created in the merchant's environment. Allowed values: * notApplicable * - * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @param accountAgeIndicator Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ @JsonProperty(JSON_PROPERTY_ACCOUNT_AGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -464,7 +427,6 @@ public AccountInfo accountChangeDate(OffsetDateTime accountChangeDate) { /** * Date when the shopper's account was last changed. - * * @return accountChangeDate Date when the shopper's account was last changed. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_CHANGE_DATE) @@ -485,12 +447,9 @@ public void setAccountChangeDate(OffsetDateTime accountChangeDate) { } /** - * Indicator for the length of time since the shopper's account was last updated. Allowed - * values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * - * @param accountChangeIndicator Indicator for the length of time since the shopper's account - * was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * - * moreThan60Days + * @param accountChangeIndicator Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * @return the current {@code AccountInfo} instance, allowing for method chaining */ public AccountInfo accountChangeIndicator(AccountChangeIndicatorEnum accountChangeIndicator) { @@ -499,12 +458,8 @@ public AccountInfo accountChangeIndicator(AccountChangeIndicatorEnum accountChan } /** - * Indicator for the length of time since the shopper's account was last updated. Allowed - * values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days - * - * @return accountChangeIndicator Indicator for the length of time since the shopper's account - * was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * - * moreThan60Days + * Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @return accountChangeIndicator Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ @JsonProperty(JSON_PROPERTY_ACCOUNT_CHANGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -513,12 +468,9 @@ public AccountChangeIndicatorEnum getAccountChangeIndicator() { } /** - * Indicator for the length of time since the shopper's account was last updated. Allowed - * values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * - * @param accountChangeIndicator Indicator for the length of time since the shopper's account - * was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * - * moreThan60Days + * @param accountChangeIndicator Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ @JsonProperty(JSON_PROPERTY_ACCOUNT_CHANGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -539,7 +491,6 @@ public AccountInfo accountCreationDate(OffsetDateTime accountCreationDate) { /** * Date when the shopper's account was created. - * * @return accountCreationDate Date when the shopper's account was created. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_CREATION_DATE) @@ -560,11 +511,9 @@ public void setAccountCreationDate(OffsetDateTime accountCreationDate) { } /** - * Indicates the type of account. For example, for a multi-account card product. Allowed values: * - * notApplicable * credit * debit + * Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit * - * @param accountType Indicates the type of account. For example, for a multi-account card - * product. Allowed values: * notApplicable * credit * debit + * @param accountType Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit * @return the current {@code AccountInfo} instance, allowing for method chaining */ public AccountInfo accountType(AccountTypeEnum accountType) { @@ -573,11 +522,8 @@ public AccountInfo accountType(AccountTypeEnum accountType) { } /** - * Indicates the type of account. For example, for a multi-account card product. Allowed values: * - * notApplicable * credit * debit - * - * @return accountType Indicates the type of account. For example, for a multi-account card - * product. Allowed values: * notApplicable * credit * debit + * Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit + * @return accountType Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -586,11 +532,9 @@ public AccountTypeEnum getAccountType() { } /** - * Indicates the type of account. For example, for a multi-account card product. Allowed values: * - * notApplicable * credit * debit + * Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit * - * @param accountType Indicates the type of account. For example, for a multi-account card - * product. Allowed values: * notApplicable * credit * debit + * @param accountType Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -601,8 +545,7 @@ public void setAccountType(AccountTypeEnum accountType) { /** * Number of attempts the shopper tried to add a card to their account in the last day. * - * @param addCardAttemptsDay Number of attempts the shopper tried to add a card to their account - * in the last day. + * @param addCardAttemptsDay Number of attempts the shopper tried to add a card to their account in the last day. * @return the current {@code AccountInfo} instance, allowing for method chaining */ public AccountInfo addCardAttemptsDay(Integer addCardAttemptsDay) { @@ -612,9 +555,7 @@ public AccountInfo addCardAttemptsDay(Integer addCardAttemptsDay) { /** * Number of attempts the shopper tried to add a card to their account in the last day. - * - * @return addCardAttemptsDay Number of attempts the shopper tried to add a card to their account - * in the last day. + * @return addCardAttemptsDay Number of attempts the shopper tried to add a card to their account in the last day. */ @JsonProperty(JSON_PROPERTY_ADD_CARD_ATTEMPTS_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -625,8 +566,7 @@ public Integer getAddCardAttemptsDay() { /** * Number of attempts the shopper tried to add a card to their account in the last day. * - * @param addCardAttemptsDay Number of attempts the shopper tried to add a card to their account - * in the last day. + * @param addCardAttemptsDay Number of attempts the shopper tried to add a card to their account in the last day. */ @JsonProperty(JSON_PROPERTY_ADD_CARD_ATTEMPTS_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -647,7 +587,6 @@ public AccountInfo deliveryAddressUsageDate(OffsetDateTime deliveryAddressUsageD /** * Date the selected delivery address was first used. - * * @return deliveryAddressUsageDate Date the selected delivery address was first used. */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS_USAGE_DATE) @@ -668,27 +607,19 @@ public void setDeliveryAddressUsageDate(OffsetDateTime deliveryAddressUsageDate) } /** - * Indicator for the length of time since this delivery address was first used. Allowed values: * - * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * - * @param deliveryAddressUsageIndicator Indicator for the length of time since this delivery - * address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days - * * moreThan60Days + * @param deliveryAddressUsageIndicator Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * @return the current {@code AccountInfo} instance, allowing for method chaining */ - public AccountInfo deliveryAddressUsageIndicator( - DeliveryAddressUsageIndicatorEnum deliveryAddressUsageIndicator) { + public AccountInfo deliveryAddressUsageIndicator(DeliveryAddressUsageIndicatorEnum deliveryAddressUsageIndicator) { this.deliveryAddressUsageIndicator = deliveryAddressUsageIndicator; return this; } /** - * Indicator for the length of time since this delivery address was first used. Allowed values: * - * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days - * - * @return deliveryAddressUsageIndicator Indicator for the length of time since this delivery - * address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days - * * moreThan60Days + * Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @return deliveryAddressUsageIndicator Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS_USAGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -697,17 +628,13 @@ public DeliveryAddressUsageIndicatorEnum getDeliveryAddressUsageIndicator() { } /** - * Indicator for the length of time since this delivery address was first used. Allowed values: * - * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * - * @param deliveryAddressUsageIndicator Indicator for the length of time since this delivery - * address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days - * * moreThan60Days + * @param deliveryAddressUsageIndicator Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS_USAGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeliveryAddressUsageIndicator( - DeliveryAddressUsageIndicatorEnum deliveryAddressUsageIndicator) { + public void setDeliveryAddressUsageIndicator(DeliveryAddressUsageIndicatorEnum deliveryAddressUsageIndicator) { this.deliveryAddressUsageIndicator = deliveryAddressUsageIndicator; } @@ -716,10 +643,11 @@ public void setDeliveryAddressUsageIndicator( * * @param homePhone Shopper's home phone number (including the country code). * @return the current {@code AccountInfo} instance, allowing for method chaining - * @deprecated since Adyen Payment API v68 Use `ThreeDS2RequestData.homePhone` instead. + * + * @deprecated since Adyen Payment API v68 + * Use `ThreeDS2RequestData.homePhone` instead. */ - @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.homePhone` - // instead. + @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.homePhone` instead. public AccountInfo homePhone(String homePhone) { this.homePhone = homePhone; return this; @@ -727,13 +655,10 @@ public AccountInfo homePhone(String homePhone) { /** * Shopper's home phone number (including the country code). - * * @return homePhone Shopper's home phone number (including the country code). - * @deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.homePhone` - * instead. + * @deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.homePhone` instead. */ - @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.homePhone` - // instead. + @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.homePhone` instead. @JsonProperty(JSON_PROPERTY_HOME_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getHomePhone() { @@ -744,10 +669,11 @@ public String getHomePhone() { * Shopper's home phone number (including the country code). * * @param homePhone Shopper's home phone number (including the country code). - * @deprecated since Adyen Payment API v68 Use `ThreeDS2RequestData.homePhone` instead. + * + * @deprecated since Adyen Payment API v68 + * Use `ThreeDS2RequestData.homePhone` instead. */ - @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.homePhone` - // instead. + @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.homePhone` instead. @JsonProperty(JSON_PROPERTY_HOME_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHomePhone(String homePhone) { @@ -759,11 +685,11 @@ public void setHomePhone(String homePhone) { * * @param mobilePhone Shopper's mobile phone number (including the country code). * @return the current {@code AccountInfo} instance, allowing for method chaining - * @deprecated since Adyen Payment API v68 Use `ThreeDS2RequestData.mobilePhone` - * instead. + * + * @deprecated since Adyen Payment API v68 + * Use `ThreeDS2RequestData.mobilePhone` instead. */ - @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.mobilePhone` - // instead. + @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.mobilePhone` instead. public AccountInfo mobilePhone(String mobilePhone) { this.mobilePhone = mobilePhone; return this; @@ -771,13 +697,10 @@ public AccountInfo mobilePhone(String mobilePhone) { /** * Shopper's mobile phone number (including the country code). - * * @return mobilePhone Shopper's mobile phone number (including the country code). - * @deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.mobilePhone` - * instead. + * @deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.mobilePhone` instead. */ - @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.mobilePhone` - // instead. + @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.mobilePhone` instead. @JsonProperty(JSON_PROPERTY_MOBILE_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMobilePhone() { @@ -788,11 +711,11 @@ public String getMobilePhone() { * Shopper's mobile phone number (including the country code). * * @param mobilePhone Shopper's mobile phone number (including the country code). - * @deprecated since Adyen Payment API v68 Use `ThreeDS2RequestData.mobilePhone` - * instead. + * + * @deprecated since Adyen Payment API v68 + * Use `ThreeDS2RequestData.mobilePhone` instead. */ - @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.mobilePhone` - // instead. + @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.mobilePhone` instead. @JsonProperty(JSON_PROPERTY_MOBILE_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMobilePhone(String mobilePhone) { @@ -812,7 +735,6 @@ public AccountInfo passwordChangeDate(OffsetDateTime passwordChangeDate) { /** * Date when the shopper last changed their password. - * * @return passwordChangeDate Date when the shopper last changed their password. */ @JsonProperty(JSON_PROPERTY_PASSWORD_CHANGE_DATE) @@ -833,12 +755,9 @@ public void setPasswordChangeDate(OffsetDateTime passwordChangeDate) { } /** - * Indicator when the shopper has changed their password. Allowed values: * notApplicable * - * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * - * @param passwordChangeIndicator Indicator when the shopper has changed their password. Allowed - * values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * - * moreThan60Days + * @param passwordChangeIndicator Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * @return the current {@code AccountInfo} instance, allowing for method chaining */ public AccountInfo passwordChangeIndicator(PasswordChangeIndicatorEnum passwordChangeIndicator) { @@ -847,12 +766,8 @@ public AccountInfo passwordChangeIndicator(PasswordChangeIndicatorEnum passwordC } /** - * Indicator when the shopper has changed their password. Allowed values: * notApplicable * - * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days - * - * @return passwordChangeIndicator Indicator when the shopper has changed their password. Allowed - * values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * - * moreThan60Days + * Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @return passwordChangeIndicator Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ @JsonProperty(JSON_PROPERTY_PASSWORD_CHANGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -861,12 +776,9 @@ public PasswordChangeIndicatorEnum getPasswordChangeIndicator() { } /** - * Indicator when the shopper has changed their password. Allowed values: * notApplicable * - * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * - * @param passwordChangeIndicator Indicator when the shopper has changed their password. Allowed - * values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * - * moreThan60Days + * @param passwordChangeIndicator Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ @JsonProperty(JSON_PROPERTY_PASSWORD_CHANGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -877,8 +789,7 @@ public void setPasswordChangeIndicator(PasswordChangeIndicatorEnum passwordChang /** * Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. * - * @param pastTransactionsDay Number of all transactions (successful and abandoned) from this - * shopper in the past 24 hours. + * @param pastTransactionsDay Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. * @return the current {@code AccountInfo} instance, allowing for method chaining */ public AccountInfo pastTransactionsDay(Integer pastTransactionsDay) { @@ -888,9 +799,7 @@ public AccountInfo pastTransactionsDay(Integer pastTransactionsDay) { /** * Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. - * - * @return pastTransactionsDay Number of all transactions (successful and abandoned) from this - * shopper in the past 24 hours. + * @return pastTransactionsDay Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. */ @JsonProperty(JSON_PROPERTY_PAST_TRANSACTIONS_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -901,8 +810,7 @@ public Integer getPastTransactionsDay() { /** * Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. * - * @param pastTransactionsDay Number of all transactions (successful and abandoned) from this - * shopper in the past 24 hours. + * @param pastTransactionsDay Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. */ @JsonProperty(JSON_PROPERTY_PAST_TRANSACTIONS_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -913,8 +821,7 @@ public void setPastTransactionsDay(Integer pastTransactionsDay) { /** * Number of all transactions (successful and abandoned) from this shopper in the past year. * - * @param pastTransactionsYear Number of all transactions (successful and abandoned) from this - * shopper in the past year. + * @param pastTransactionsYear Number of all transactions (successful and abandoned) from this shopper in the past year. * @return the current {@code AccountInfo} instance, allowing for method chaining */ public AccountInfo pastTransactionsYear(Integer pastTransactionsYear) { @@ -924,9 +831,7 @@ public AccountInfo pastTransactionsYear(Integer pastTransactionsYear) { /** * Number of all transactions (successful and abandoned) from this shopper in the past year. - * - * @return pastTransactionsYear Number of all transactions (successful and abandoned) from this - * shopper in the past year. + * @return pastTransactionsYear Number of all transactions (successful and abandoned) from this shopper in the past year. */ @JsonProperty(JSON_PROPERTY_PAST_TRANSACTIONS_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -937,8 +842,7 @@ public Integer getPastTransactionsYear() { /** * Number of all transactions (successful and abandoned) from this shopper in the past year. * - * @param pastTransactionsYear Number of all transactions (successful and abandoned) from this - * shopper in the past year. + * @param pastTransactionsYear Number of all transactions (successful and abandoned) from this shopper in the past year. */ @JsonProperty(JSON_PROPERTY_PAST_TRANSACTIONS_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -959,7 +863,6 @@ public AccountInfo paymentAccountAge(OffsetDateTime paymentAccountAge) { /** * Date this payment method was added to the shopper's account. - * * @return paymentAccountAge Date this payment method was added to the shopper's account. */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACCOUNT_AGE) @@ -980,13 +883,9 @@ public void setPaymentAccountAge(OffsetDateTime paymentAccountAge) { } /** - * Indicator for the length of time since this payment method was added to this shopper's - * account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * - * moreThan60Days + * Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * - * @param paymentAccountIndicator Indicator for the length of time since this payment method was - * added to this shopper's account. Allowed values: * notApplicable * thisTransaction * - * lessThan30Days * from30To60Days * moreThan60Days + * @param paymentAccountIndicator Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * @return the current {@code AccountInfo} instance, allowing for method chaining */ public AccountInfo paymentAccountIndicator(PaymentAccountIndicatorEnum paymentAccountIndicator) { @@ -995,13 +894,8 @@ public AccountInfo paymentAccountIndicator(PaymentAccountIndicatorEnum paymentAc } /** - * Indicator for the length of time since this payment method was added to this shopper's - * account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * - * moreThan60Days - * - * @return paymentAccountIndicator Indicator for the length of time since this payment method was - * added to this shopper's account. Allowed values: * notApplicable * thisTransaction * - * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @return paymentAccountIndicator Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACCOUNT_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1010,13 +904,9 @@ public PaymentAccountIndicatorEnum getPaymentAccountIndicator() { } /** - * Indicator for the length of time since this payment method was added to this shopper's - * account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * - * moreThan60Days + * Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * - * @param paymentAccountIndicator Indicator for the length of time since this payment method was - * added to this shopper's account. Allowed values: * notApplicable * thisTransaction * - * lessThan30Days * from30To60Days * moreThan60Days + * @param paymentAccountIndicator Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACCOUNT_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1037,7 +927,6 @@ public AccountInfo purchasesLast6Months(Integer purchasesLast6Months) { /** * Number of successful purchases in the last six months. - * * @return purchasesLast6Months Number of successful purchases in the last six months. */ @JsonProperty(JSON_PROPERTY_PURCHASES_LAST6_MONTHS) @@ -1070,7 +959,6 @@ public AccountInfo suspiciousActivity(Boolean suspiciousActivity) { /** * Whether suspicious activity was recorded on this account. - * * @return suspiciousActivity Whether suspicious activity was recorded on this account. */ @JsonProperty(JSON_PROPERTY_SUSPICIOUS_ACTIVITY) @@ -1095,10 +983,11 @@ public void setSuspiciousActivity(Boolean suspiciousActivity) { * * @param workPhone Shopper's work phone number (including the country code). * @return the current {@code AccountInfo} instance, allowing for method chaining - * @deprecated since Adyen Payment API v68 Use `ThreeDS2RequestData.workPhone` instead. + * + * @deprecated since Adyen Payment API v68 + * Use `ThreeDS2RequestData.workPhone` instead. */ - @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.workPhone` - // instead. + @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.workPhone` instead. public AccountInfo workPhone(String workPhone) { this.workPhone = workPhone; return this; @@ -1106,13 +995,10 @@ public AccountInfo workPhone(String workPhone) { /** * Shopper's work phone number (including the country code). - * * @return workPhone Shopper's work phone number (including the country code). - * @deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.workPhone` - * instead. + * @deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.workPhone` instead. */ - @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.workPhone` - // instead. + @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.workPhone` instead. @JsonProperty(JSON_PROPERTY_WORK_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getWorkPhone() { @@ -1123,17 +1009,20 @@ public String getWorkPhone() { * Shopper's work phone number (including the country code). * * @param workPhone Shopper's work phone number (including the country code). - * @deprecated since Adyen Payment API v68 Use `ThreeDS2RequestData.workPhone` instead. + * + * @deprecated since Adyen Payment API v68 + * Use `ThreeDS2RequestData.workPhone` instead. */ - @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.workPhone` - // instead. + @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.workPhone` instead. @JsonProperty(JSON_PROPERTY_WORK_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWorkPhone(String workPhone) { this.workPhone = workPhone; } - /** Return true if this AccountInfo object is equal to o. */ + /** + * Return true if this AccountInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -1143,93 +1032,53 @@ public boolean equals(Object o) { return false; } AccountInfo accountInfo = (AccountInfo) o; - return Objects.equals(this.accountAgeIndicator, accountInfo.accountAgeIndicator) - && Objects.equals(this.accountChangeDate, accountInfo.accountChangeDate) - && Objects.equals(this.accountChangeIndicator, accountInfo.accountChangeIndicator) - && Objects.equals(this.accountCreationDate, accountInfo.accountCreationDate) - && Objects.equals(this.accountType, accountInfo.accountType) - && Objects.equals(this.addCardAttemptsDay, accountInfo.addCardAttemptsDay) - && Objects.equals(this.deliveryAddressUsageDate, accountInfo.deliveryAddressUsageDate) - && Objects.equals( - this.deliveryAddressUsageIndicator, accountInfo.deliveryAddressUsageIndicator) - && Objects.equals(this.homePhone, accountInfo.homePhone) - && Objects.equals(this.mobilePhone, accountInfo.mobilePhone) - && Objects.equals(this.passwordChangeDate, accountInfo.passwordChangeDate) - && Objects.equals(this.passwordChangeIndicator, accountInfo.passwordChangeIndicator) - && Objects.equals(this.pastTransactionsDay, accountInfo.pastTransactionsDay) - && Objects.equals(this.pastTransactionsYear, accountInfo.pastTransactionsYear) - && Objects.equals(this.paymentAccountAge, accountInfo.paymentAccountAge) - && Objects.equals(this.paymentAccountIndicator, accountInfo.paymentAccountIndicator) - && Objects.equals(this.purchasesLast6Months, accountInfo.purchasesLast6Months) - && Objects.equals(this.suspiciousActivity, accountInfo.suspiciousActivity) - && Objects.equals(this.workPhone, accountInfo.workPhone); + return Objects.equals(this.accountAgeIndicator, accountInfo.accountAgeIndicator) && + Objects.equals(this.accountChangeDate, accountInfo.accountChangeDate) && + Objects.equals(this.accountChangeIndicator, accountInfo.accountChangeIndicator) && + Objects.equals(this.accountCreationDate, accountInfo.accountCreationDate) && + Objects.equals(this.accountType, accountInfo.accountType) && + Objects.equals(this.addCardAttemptsDay, accountInfo.addCardAttemptsDay) && + Objects.equals(this.deliveryAddressUsageDate, accountInfo.deliveryAddressUsageDate) && + Objects.equals(this.deliveryAddressUsageIndicator, accountInfo.deliveryAddressUsageIndicator) && + Objects.equals(this.homePhone, accountInfo.homePhone) && + Objects.equals(this.mobilePhone, accountInfo.mobilePhone) && + Objects.equals(this.passwordChangeDate, accountInfo.passwordChangeDate) && + Objects.equals(this.passwordChangeIndicator, accountInfo.passwordChangeIndicator) && + Objects.equals(this.pastTransactionsDay, accountInfo.pastTransactionsDay) && + Objects.equals(this.pastTransactionsYear, accountInfo.pastTransactionsYear) && + Objects.equals(this.paymentAccountAge, accountInfo.paymentAccountAge) && + Objects.equals(this.paymentAccountIndicator, accountInfo.paymentAccountIndicator) && + Objects.equals(this.purchasesLast6Months, accountInfo.purchasesLast6Months) && + Objects.equals(this.suspiciousActivity, accountInfo.suspiciousActivity) && + Objects.equals(this.workPhone, accountInfo.workPhone); } @Override public int hashCode() { - return Objects.hash( - accountAgeIndicator, - accountChangeDate, - accountChangeIndicator, - accountCreationDate, - accountType, - addCardAttemptsDay, - deliveryAddressUsageDate, - deliveryAddressUsageIndicator, - homePhone, - mobilePhone, - passwordChangeDate, - passwordChangeIndicator, - pastTransactionsDay, - pastTransactionsYear, - paymentAccountAge, - paymentAccountIndicator, - purchasesLast6Months, - suspiciousActivity, - workPhone); + return Objects.hash(accountAgeIndicator, accountChangeDate, accountChangeIndicator, accountCreationDate, accountType, addCardAttemptsDay, deliveryAddressUsageDate, deliveryAddressUsageIndicator, homePhone, mobilePhone, passwordChangeDate, passwordChangeIndicator, pastTransactionsDay, pastTransactionsYear, paymentAccountAge, paymentAccountIndicator, purchasesLast6Months, suspiciousActivity, workPhone); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AccountInfo {\n"); - sb.append(" accountAgeIndicator: ") - .append(toIndentedString(accountAgeIndicator)) - .append("\n"); + sb.append(" accountAgeIndicator: ").append(toIndentedString(accountAgeIndicator)).append("\n"); sb.append(" accountChangeDate: ").append(toIndentedString(accountChangeDate)).append("\n"); - sb.append(" accountChangeIndicator: ") - .append(toIndentedString(accountChangeIndicator)) - .append("\n"); - sb.append(" accountCreationDate: ") - .append(toIndentedString(accountCreationDate)) - .append("\n"); + sb.append(" accountChangeIndicator: ").append(toIndentedString(accountChangeIndicator)).append("\n"); + sb.append(" accountCreationDate: ").append(toIndentedString(accountCreationDate)).append("\n"); sb.append(" accountType: ").append(toIndentedString(accountType)).append("\n"); sb.append(" addCardAttemptsDay: ").append(toIndentedString(addCardAttemptsDay)).append("\n"); - sb.append(" deliveryAddressUsageDate: ") - .append(toIndentedString(deliveryAddressUsageDate)) - .append("\n"); - sb.append(" deliveryAddressUsageIndicator: ") - .append(toIndentedString(deliveryAddressUsageIndicator)) - .append("\n"); + sb.append(" deliveryAddressUsageDate: ").append(toIndentedString(deliveryAddressUsageDate)).append("\n"); + sb.append(" deliveryAddressUsageIndicator: ").append(toIndentedString(deliveryAddressUsageIndicator)).append("\n"); sb.append(" homePhone: ").append(toIndentedString(homePhone)).append("\n"); sb.append(" mobilePhone: ").append(toIndentedString(mobilePhone)).append("\n"); sb.append(" passwordChangeDate: ").append(toIndentedString(passwordChangeDate)).append("\n"); - sb.append(" passwordChangeIndicator: ") - .append(toIndentedString(passwordChangeIndicator)) - .append("\n"); - sb.append(" pastTransactionsDay: ") - .append(toIndentedString(pastTransactionsDay)) - .append("\n"); - sb.append(" pastTransactionsYear: ") - .append(toIndentedString(pastTransactionsYear)) - .append("\n"); + sb.append(" passwordChangeIndicator: ").append(toIndentedString(passwordChangeIndicator)).append("\n"); + sb.append(" pastTransactionsDay: ").append(toIndentedString(pastTransactionsDay)).append("\n"); + sb.append(" pastTransactionsYear: ").append(toIndentedString(pastTransactionsYear)).append("\n"); sb.append(" paymentAccountAge: ").append(toIndentedString(paymentAccountAge)).append("\n"); - sb.append(" paymentAccountIndicator: ") - .append(toIndentedString(paymentAccountIndicator)) - .append("\n"); - sb.append(" purchasesLast6Months: ") - .append(toIndentedString(purchasesLast6Months)) - .append("\n"); + sb.append(" paymentAccountIndicator: ").append(toIndentedString(paymentAccountIndicator)).append("\n"); + sb.append(" purchasesLast6Months: ").append(toIndentedString(purchasesLast6Months)).append("\n"); sb.append(" suspiciousActivity: ").append(toIndentedString(suspiciousActivity)).append("\n"); sb.append(" workPhone: ").append(toIndentedString(workPhone)).append("\n"); sb.append("}"); @@ -1237,7 +1086,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1246,7 +1096,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AccountInfo given an JSON string * * @param jsonString JSON string @@ -1256,12 +1106,11 @@ private String toIndentedString(Object o) { public static AccountInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountInfo.class); } - - /** - * Convert an instance of AccountInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AccountInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AcctInfo.java b/src/main/java/com/adyen/model/payment/AcctInfo.java index 8183f8e0d..d4bc2acae 100644 --- a/src/main/java/com/adyen/model/payment/AcctInfo.java +++ b/src/main/java/com/adyen/model/payment/AcctInfo.java @@ -2,26 +2,31 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** AcctInfo */ + +/** + * AcctInfo + */ @JsonPropertyOrder({ AcctInfo.JSON_PROPERTY_CH_ACC_AGE_IND, AcctInfo.JSON_PROPERTY_CH_ACC_CHANGE, @@ -40,13 +45,13 @@ AcctInfo.JSON_PROPERTY_TXN_ACTIVITY_DAY, AcctInfo.JSON_PROPERTY_TXN_ACTIVITY_YEAR }) + public class AcctInfo { /** - * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: - * * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * - * **04** — 30–60 days * **05** — More than 60 days + * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days */ public enum ChAccAgeIndEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -62,7 +67,7 @@ public enum ChAccAgeIndEnum { private String value; ChAccAgeIndEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -83,11 +88,7 @@ public static ChAccAgeIndEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ChAccAgeIndEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ChAccAgeIndEnum.values())); + LOG.warning("ChAccAgeIndEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChAccAgeIndEnum.values())); return null; } } @@ -99,12 +100,10 @@ public static ChAccAgeIndEnum fromValue(String value) { private String chAccChange; /** - * Length of time since the cardholder’s account information with the 3DS Requestor was last - * changed, including Billing or Shipping address, new payment account, or new user(s) added. - * Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * - * **03** — 30–60 days * **04** — More than 60 days + * Length of time since the cardholder’s account information with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days */ public enum ChAccChangeIndEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -118,7 +117,7 @@ public enum ChAccChangeIndEnum { private String value; ChAccChangeIndEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -139,11 +138,7 @@ public static ChAccChangeIndEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ChAccChangeIndEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ChAccChangeIndEnum.values())); + LOG.warning("ChAccChangeIndEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChAccChangeIndEnum.values())); return null; } } @@ -155,12 +150,10 @@ public static ChAccChangeIndEnum fromValue(String value) { private String chAccPwChange; /** - * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a - * password change or account reset. Allowed values: * **01** — No change * **02** — Changed - * during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than - * 60 days + * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days */ public enum ChAccPwChangeIndEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -176,7 +169,7 @@ public enum ChAccPwChangeIndEnum { private String value; ChAccPwChangeIndEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -197,11 +190,7 @@ public static ChAccPwChangeIndEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ChAccPwChangeIndEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ChAccPwChangeIndEnum.values())); + LOG.warning("ChAccPwChangeIndEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChAccPwChangeIndEnum.values())); return null; } } @@ -219,12 +208,10 @@ public static ChAccPwChangeIndEnum fromValue(String value) { private String paymentAccAge; /** - * Indicates the length of time that the payment account was enrolled in the cardholder’s account - * with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — - * During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than - * 60 days + * Indicates the length of time that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days */ public enum PaymentAccIndEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -240,7 +227,7 @@ public enum PaymentAccIndEnum { private String value; PaymentAccIndEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -261,11 +248,7 @@ public static PaymentAccIndEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PaymentAccIndEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PaymentAccIndEnum.values())); + LOG.warning("PaymentAccIndEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PaymentAccIndEnum.values())); return null; } } @@ -280,11 +263,10 @@ public static PaymentAccIndEnum fromValue(String value) { private String shipAddressUsage; /** - * Indicates when the shipping address used for this transaction was first used with the 3DS - * Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — - * 30–60 days * **04** — More than 60 days + * Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days */ public enum ShipAddressUsageIndEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -298,7 +280,7 @@ public enum ShipAddressUsageIndEnum { private String value; ShipAddressUsageIndEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -319,11 +301,7 @@ public static ShipAddressUsageIndEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ShipAddressUsageIndEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ShipAddressUsageIndEnum.values())); + LOG.warning("ShipAddressUsageIndEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShipAddressUsageIndEnum.values())); return null; } } @@ -332,11 +310,10 @@ public static ShipAddressUsageIndEnum fromValue(String value) { private ShipAddressUsageIndEnum shipAddressUsageInd; /** - * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this - * transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — - * Account Name different to shipping Name + * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — Account Name different to shipping Name */ public enum ShipNameIndicatorEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")); @@ -346,7 +323,7 @@ public enum ShipNameIndicatorEnum { private String value; ShipNameIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -367,11 +344,7 @@ public static ShipNameIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ShipNameIndicatorEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ShipNameIndicatorEnum.values())); + LOG.warning("ShipNameIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShipNameIndicatorEnum.values())); return null; } } @@ -380,11 +353,10 @@ public static ShipNameIndicatorEnum fromValue(String value) { private ShipNameIndicatorEnum shipNameIndicator; /** - * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous - * fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been - * observed * **02** — Suspicious activity has been observed + * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been observed * **02** — Suspicious activity has been observed */ public enum SuspiciousAccActivityEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")); @@ -394,7 +366,7 @@ public enum SuspiciousAccActivityEnum { private String value; SuspiciousAccActivityEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -415,11 +387,7 @@ public static SuspiciousAccActivityEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "SuspiciousAccActivityEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(SuspiciousAccActivityEnum.values())); + LOG.warning("SuspiciousAccActivityEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(SuspiciousAccActivityEnum.values())); return null; } } @@ -433,16 +401,13 @@ public static SuspiciousAccActivityEnum fromValue(String value) { public static final String JSON_PROPERTY_TXN_ACTIVITY_YEAR = "txnActivityYear"; private String txnActivityYear; - public AcctInfo() {} + public AcctInfo() { + } /** - * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: - * * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * - * **04** — 30–60 days * **05** — More than 60 days + * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days * - * @param chAccAgeInd Length of time that the cardholder has had the account with the 3DS - * Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction - * * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * @param chAccAgeInd Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo chAccAgeInd(ChAccAgeIndEnum chAccAgeInd) { @@ -451,13 +416,8 @@ public AcctInfo chAccAgeInd(ChAccAgeIndEnum chAccAgeInd) { } /** - * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: - * * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * - * **04** — 30–60 days * **05** — More than 60 days - * - * @return chAccAgeInd Length of time that the cardholder has had the account with the 3DS - * Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction - * * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * @return chAccAgeInd Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days */ @JsonProperty(JSON_PROPERTY_CH_ACC_AGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -466,13 +426,9 @@ public ChAccAgeIndEnum getChAccAgeInd() { } /** - * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: - * * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * - * **04** — 30–60 days * **05** — More than 60 days + * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days * - * @param chAccAgeInd Length of time that the cardholder has had the account with the 3DS - * Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction - * * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * @param chAccAgeInd Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days */ @JsonProperty(JSON_PROPERTY_CH_ACC_AGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -481,12 +437,9 @@ public void setChAccAgeInd(ChAccAgeIndEnum chAccAgeInd) { } /** - * Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing - * or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** + * Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** * - * @param chAccChange Date that the cardholder’s account with the 3DS Requestor was last changed, - * including Billing or Shipping address, new payment account, or new user(s) added. Format: - * **YYYYMMDD** + * @param chAccChange Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo chAccChange(String chAccChange) { @@ -495,12 +448,8 @@ public AcctInfo chAccChange(String chAccChange) { } /** - * Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing - * or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** - * - * @return chAccChange Date that the cardholder’s account with the 3DS Requestor was last changed, - * including Billing or Shipping address, new payment account, or new user(s) added. Format: - * **YYYYMMDD** + * Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** + * @return chAccChange Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_CH_ACC_CHANGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -509,12 +458,9 @@ public String getChAccChange() { } /** - * Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing - * or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** + * Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** * - * @param chAccChange Date that the cardholder’s account with the 3DS Requestor was last changed, - * including Billing or Shipping address, new payment account, or new user(s) added. Format: - * **YYYYMMDD** + * @param chAccChange Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_CH_ACC_CHANGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -523,15 +469,9 @@ public void setChAccChange(String chAccChange) { } /** - * Length of time since the cardholder’s account information with the 3DS Requestor was last - * changed, including Billing or Shipping address, new payment account, or new user(s) added. - * Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * - * **03** — 30–60 days * **04** — More than 60 days + * Length of time since the cardholder’s account information with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days * - * @param chAccChangeInd Length of time since the cardholder’s account information with the 3DS - * Requestor was last changed, including Billing or Shipping address, new payment account, or - * new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — - * Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * @param chAccChangeInd Length of time since the cardholder’s account information with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo chAccChangeInd(ChAccChangeIndEnum chAccChangeInd) { @@ -540,15 +480,8 @@ public AcctInfo chAccChangeInd(ChAccChangeIndEnum chAccChangeInd) { } /** - * Length of time since the cardholder’s account information with the 3DS Requestor was last - * changed, including Billing or Shipping address, new payment account, or new user(s) added. - * Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * - * **03** — 30–60 days * **04** — More than 60 days - * - * @return chAccChangeInd Length of time since the cardholder’s account information with the 3DS - * Requestor was last changed, including Billing or Shipping address, new payment account, or - * new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — - * Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * Length of time since the cardholder’s account information with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * @return chAccChangeInd Length of time since the cardholder’s account information with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days */ @JsonProperty(JSON_PROPERTY_CH_ACC_CHANGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -557,15 +490,9 @@ public ChAccChangeIndEnum getChAccChangeInd() { } /** - * Length of time since the cardholder’s account information with the 3DS Requestor was last - * changed, including Billing or Shipping address, new payment account, or new user(s) added. - * Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * - * **03** — 30–60 days * **04** — More than 60 days + * Length of time since the cardholder’s account information with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days * - * @param chAccChangeInd Length of time since the cardholder’s account information with the 3DS - * Requestor was last changed, including Billing or Shipping address, new payment account, or - * new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — - * Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * @param chAccChangeInd Length of time since the cardholder’s account information with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days */ @JsonProperty(JSON_PROPERTY_CH_ACC_CHANGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -574,11 +501,9 @@ public void setChAccChangeInd(ChAccChangeIndEnum chAccChangeInd) { } /** - * Date that cardholder’s account with the 3DS Requestor had a password change or account reset. - * Format: **YYYYMMDD** + * Date that cardholder’s account with the 3DS Requestor had a password change or account reset. Format: **YYYYMMDD** * - * @param chAccPwChange Date that cardholder’s account with the 3DS Requestor had a password - * change or account reset. Format: **YYYYMMDD** + * @param chAccPwChange Date that cardholder’s account with the 3DS Requestor had a password change or account reset. Format: **YYYYMMDD** * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo chAccPwChange(String chAccPwChange) { @@ -587,11 +512,8 @@ public AcctInfo chAccPwChange(String chAccPwChange) { } /** - * Date that cardholder’s account with the 3DS Requestor had a password change or account reset. - * Format: **YYYYMMDD** - * - * @return chAccPwChange Date that cardholder’s account with the 3DS Requestor had a password - * change or account reset. Format: **YYYYMMDD** + * Date that cardholder’s account with the 3DS Requestor had a password change or account reset. Format: **YYYYMMDD** + * @return chAccPwChange Date that cardholder’s account with the 3DS Requestor had a password change or account reset. Format: **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_CH_ACC_PW_CHANGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -600,11 +522,9 @@ public String getChAccPwChange() { } /** - * Date that cardholder’s account with the 3DS Requestor had a password change or account reset. - * Format: **YYYYMMDD** + * Date that cardholder’s account with the 3DS Requestor had a password change or account reset. Format: **YYYYMMDD** * - * @param chAccPwChange Date that cardholder’s account with the 3DS Requestor had a password - * change or account reset. Format: **YYYYMMDD** + * @param chAccPwChange Date that cardholder’s account with the 3DS Requestor had a password change or account reset. Format: **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_CH_ACC_PW_CHANGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -613,15 +533,9 @@ public void setChAccPwChange(String chAccPwChange) { } /** - * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a - * password change or account reset. Allowed values: * **01** — No change * **02** — Changed - * during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than - * 60 days + * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days * - * @param chAccPwChangeInd Indicates the length of time since the cardholder’s account with the - * 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change - * * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 - * days * **05** — More than 60 days + * @param chAccPwChangeInd Indicates the length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo chAccPwChangeInd(ChAccPwChangeIndEnum chAccPwChangeInd) { @@ -630,15 +544,8 @@ public AcctInfo chAccPwChangeInd(ChAccPwChangeIndEnum chAccPwChangeInd) { } /** - * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a - * password change or account reset. Allowed values: * **01** — No change * **02** — Changed - * during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than - * 60 days - * - * @return chAccPwChangeInd Indicates the length of time since the cardholder’s account with the - * 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change - * * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 - * days * **05** — More than 60 days + * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * @return chAccPwChangeInd Indicates the length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days */ @JsonProperty(JSON_PROPERTY_CH_ACC_PW_CHANGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -647,15 +554,9 @@ public ChAccPwChangeIndEnum getChAccPwChangeInd() { } /** - * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a - * password change or account reset. Allowed values: * **01** — No change * **02** — Changed - * during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than - * 60 days + * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days * - * @param chAccPwChangeInd Indicates the length of time since the cardholder’s account with the - * 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change - * * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 - * days * **05** — More than 60 days + * @param chAccPwChangeInd Indicates the length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days */ @JsonProperty(JSON_PROPERTY_CH_ACC_PW_CHANGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -664,10 +565,9 @@ public void setChAccPwChangeInd(ChAccPwChangeIndEnum chAccPwChangeInd) { } /** - * Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** + * Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** * - * @param chAccString Date that the cardholder opened the account with the 3DS Requestor. Format: - * **YYYYMMDD** + * @param chAccString Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo chAccString(String chAccString) { @@ -676,10 +576,8 @@ public AcctInfo chAccString(String chAccString) { } /** - * Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** - * - * @return chAccString Date that the cardholder opened the account with the 3DS Requestor. Format: - * **YYYYMMDD** + * Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** + * @return chAccString Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_CH_ACC_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -688,10 +586,9 @@ public String getChAccString() { } /** - * Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** + * Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** * - * @param chAccString Date that the cardholder opened the account with the 3DS Requestor. Format: - * **YYYYMMDD** + * @param chAccString Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_CH_ACC_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -700,11 +597,9 @@ public void setChAccString(String chAccString) { } /** - * Number of purchases with this cardholder account during the previous six months. Max length: 4 - * characters. + * Number of purchases with this cardholder account during the previous six months. Max length: 4 characters. * - * @param nbPurchaseAccount Number of purchases with this cardholder account during the previous - * six months. Max length: 4 characters. + * @param nbPurchaseAccount Number of purchases with this cardholder account during the previous six months. Max length: 4 characters. * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo nbPurchaseAccount(String nbPurchaseAccount) { @@ -713,11 +608,8 @@ public AcctInfo nbPurchaseAccount(String nbPurchaseAccount) { } /** - * Number of purchases with this cardholder account during the previous six months. Max length: 4 - * characters. - * - * @return nbPurchaseAccount Number of purchases with this cardholder account during the previous - * six months. Max length: 4 characters. + * Number of purchases with this cardholder account during the previous six months. Max length: 4 characters. + * @return nbPurchaseAccount Number of purchases with this cardholder account during the previous six months. Max length: 4 characters. */ @JsonProperty(JSON_PROPERTY_NB_PURCHASE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -726,11 +618,9 @@ public String getNbPurchaseAccount() { } /** - * Number of purchases with this cardholder account during the previous six months. Max length: 4 - * characters. + * Number of purchases with this cardholder account during the previous six months. Max length: 4 characters. * - * @param nbPurchaseAccount Number of purchases with this cardholder account during the previous - * six months. Max length: 4 characters. + * @param nbPurchaseAccount Number of purchases with this cardholder account during the previous six months. Max length: 4 characters. */ @JsonProperty(JSON_PROPERTY_NB_PURCHASE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -739,11 +629,9 @@ public void setNbPurchaseAccount(String nbPurchaseAccount) { } /** - * String that the payment account was enrolled in the cardholder’s account with the 3DS - * Requestor. Format: **YYYYMMDD** + * String that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Format: **YYYYMMDD** * - * @param paymentAccAge String that the payment account was enrolled in the cardholder’s account - * with the 3DS Requestor. Format: **YYYYMMDD** + * @param paymentAccAge String that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Format: **YYYYMMDD** * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo paymentAccAge(String paymentAccAge) { @@ -752,11 +640,8 @@ public AcctInfo paymentAccAge(String paymentAccAge) { } /** - * String that the payment account was enrolled in the cardholder’s account with the 3DS - * Requestor. Format: **YYYYMMDD** - * - * @return paymentAccAge String that the payment account was enrolled in the cardholder’s account - * with the 3DS Requestor. Format: **YYYYMMDD** + * String that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Format: **YYYYMMDD** + * @return paymentAccAge String that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Format: **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACC_AGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -765,11 +650,9 @@ public String getPaymentAccAge() { } /** - * String that the payment account was enrolled in the cardholder’s account with the 3DS - * Requestor. Format: **YYYYMMDD** + * String that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Format: **YYYYMMDD** * - * @param paymentAccAge String that the payment account was enrolled in the cardholder’s account - * with the 3DS Requestor. Format: **YYYYMMDD** + * @param paymentAccAge String that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Format: **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACC_AGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -778,15 +661,9 @@ public void setPaymentAccAge(String paymentAccAge) { } /** - * Indicates the length of time that the payment account was enrolled in the cardholder’s account - * with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — - * During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than - * 60 days + * Indicates the length of time that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days * - * @param paymentAccInd Indicates the length of time that the payment account was enrolled in the - * cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest - * checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 - * days * **05** — More than 60 days + * @param paymentAccInd Indicates the length of time that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo paymentAccInd(PaymentAccIndEnum paymentAccInd) { @@ -795,15 +672,8 @@ public AcctInfo paymentAccInd(PaymentAccIndEnum paymentAccInd) { } /** - * Indicates the length of time that the payment account was enrolled in the cardholder’s account - * with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — - * During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than - * 60 days - * - * @return paymentAccInd Indicates the length of time that the payment account was enrolled in the - * cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest - * checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 - * days * **05** — More than 60 days + * Indicates the length of time that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * @return paymentAccInd Indicates the length of time that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACC_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -812,15 +682,9 @@ public PaymentAccIndEnum getPaymentAccInd() { } /** - * Indicates the length of time that the payment account was enrolled in the cardholder’s account - * with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — - * During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than - * 60 days + * Indicates the length of time that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days * - * @param paymentAccInd Indicates the length of time that the payment account was enrolled in the - * cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest - * checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 - * days * **05** — More than 60 days + * @param paymentAccInd Indicates the length of time that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACC_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -831,8 +695,7 @@ public void setPaymentAccInd(PaymentAccIndEnum paymentAccInd) { /** * Number of Add Card attempts in the last 24 hours. Max length: 3 characters. * - * @param provisionAttemptsDay Number of Add Card attempts in the last 24 hours. Max length: 3 - * characters. + * @param provisionAttemptsDay Number of Add Card attempts in the last 24 hours. Max length: 3 characters. * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo provisionAttemptsDay(String provisionAttemptsDay) { @@ -842,9 +705,7 @@ public AcctInfo provisionAttemptsDay(String provisionAttemptsDay) { /** * Number of Add Card attempts in the last 24 hours. Max length: 3 characters. - * - * @return provisionAttemptsDay Number of Add Card attempts in the last 24 hours. Max length: 3 - * characters. + * @return provisionAttemptsDay Number of Add Card attempts in the last 24 hours. Max length: 3 characters. */ @JsonProperty(JSON_PROPERTY_PROVISION_ATTEMPTS_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -855,8 +716,7 @@ public String getProvisionAttemptsDay() { /** * Number of Add Card attempts in the last 24 hours. Max length: 3 characters. * - * @param provisionAttemptsDay Number of Add Card attempts in the last 24 hours. Max length: 3 - * characters. + * @param provisionAttemptsDay Number of Add Card attempts in the last 24 hours. Max length: 3 characters. */ @JsonProperty(JSON_PROPERTY_PROVISION_ATTEMPTS_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -865,11 +725,9 @@ public void setProvisionAttemptsDay(String provisionAttemptsDay) { } /** - * String when the shipping address used for this transaction was first used with the 3DS - * Requestor. Format: **YYYYMMDD** + * String when the shipping address used for this transaction was first used with the 3DS Requestor. Format: **YYYYMMDD** * - * @param shipAddressUsage String when the shipping address used for this transaction was first - * used with the 3DS Requestor. Format: **YYYYMMDD** + * @param shipAddressUsage String when the shipping address used for this transaction was first used with the 3DS Requestor. Format: **YYYYMMDD** * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo shipAddressUsage(String shipAddressUsage) { @@ -878,11 +736,8 @@ public AcctInfo shipAddressUsage(String shipAddressUsage) { } /** - * String when the shipping address used for this transaction was first used with the 3DS - * Requestor. Format: **YYYYMMDD** - * - * @return shipAddressUsage String when the shipping address used for this transaction was first - * used with the 3DS Requestor. Format: **YYYYMMDD** + * String when the shipping address used for this transaction was first used with the 3DS Requestor. Format: **YYYYMMDD** + * @return shipAddressUsage String when the shipping address used for this transaction was first used with the 3DS Requestor. Format: **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_SHIP_ADDRESS_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -891,11 +746,9 @@ public String getShipAddressUsage() { } /** - * String when the shipping address used for this transaction was first used with the 3DS - * Requestor. Format: **YYYYMMDD** + * String when the shipping address used for this transaction was first used with the 3DS Requestor. Format: **YYYYMMDD** * - * @param shipAddressUsage String when the shipping address used for this transaction was first - * used with the 3DS Requestor. Format: **YYYYMMDD** + * @param shipAddressUsage String when the shipping address used for this transaction was first used with the 3DS Requestor. Format: **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_SHIP_ADDRESS_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -904,13 +757,9 @@ public void setShipAddressUsage(String shipAddressUsage) { } /** - * Indicates when the shipping address used for this transaction was first used with the 3DS - * Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — - * 30–60 days * **04** — More than 60 days + * Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days * - * @param shipAddressUsageInd Indicates when the shipping address used for this transaction was - * first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — - * Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * @param shipAddressUsageInd Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo shipAddressUsageInd(ShipAddressUsageIndEnum shipAddressUsageInd) { @@ -919,13 +768,8 @@ public AcctInfo shipAddressUsageInd(ShipAddressUsageIndEnum shipAddressUsageInd) } /** - * Indicates when the shipping address used for this transaction was first used with the 3DS - * Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — - * 30–60 days * **04** — More than 60 days - * - * @return shipAddressUsageInd Indicates when the shipping address used for this transaction was - * first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — - * Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * @return shipAddressUsageInd Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days */ @JsonProperty(JSON_PROPERTY_SHIP_ADDRESS_USAGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -934,13 +778,9 @@ public ShipAddressUsageIndEnum getShipAddressUsageInd() { } /** - * Indicates when the shipping address used for this transaction was first used with the 3DS - * Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — - * 30–60 days * **04** — More than 60 days + * Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days * - * @param shipAddressUsageInd Indicates when the shipping address used for this transaction was - * first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — - * Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * @param shipAddressUsageInd Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days */ @JsonProperty(JSON_PROPERTY_SHIP_ADDRESS_USAGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -949,13 +789,9 @@ public void setShipAddressUsageInd(ShipAddressUsageIndEnum shipAddressUsageInd) } /** - * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this - * transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — - * Account Name different to shipping Name + * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — Account Name different to shipping Name * - * @param shipNameIndicator Indicates if the Cardholder Name on the account is identical to the - * shipping Name used for this transaction. Allowed values: * **01** — Account Name identical - * to shipping Name * **02** — Account Name different to shipping Name + * @param shipNameIndicator Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — Account Name different to shipping Name * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo shipNameIndicator(ShipNameIndicatorEnum shipNameIndicator) { @@ -964,13 +800,8 @@ public AcctInfo shipNameIndicator(ShipNameIndicatorEnum shipNameIndicator) { } /** - * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this - * transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — - * Account Name different to shipping Name - * - * @return shipNameIndicator Indicates if the Cardholder Name on the account is identical to the - * shipping Name used for this transaction. Allowed values: * **01** — Account Name identical - * to shipping Name * **02** — Account Name different to shipping Name + * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — Account Name different to shipping Name + * @return shipNameIndicator Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — Account Name different to shipping Name */ @JsonProperty(JSON_PROPERTY_SHIP_NAME_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -979,13 +810,9 @@ public ShipNameIndicatorEnum getShipNameIndicator() { } /** - * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this - * transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — - * Account Name different to shipping Name + * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — Account Name different to shipping Name * - * @param shipNameIndicator Indicates if the Cardholder Name on the account is identical to the - * shipping Name used for this transaction. Allowed values: * **01** — Account Name identical - * to shipping Name * **02** — Account Name different to shipping Name + * @param shipNameIndicator Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — Account Name different to shipping Name */ @JsonProperty(JSON_PROPERTY_SHIP_NAME_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -994,13 +821,9 @@ public void setShipNameIndicator(ShipNameIndicatorEnum shipNameIndicator) { } /** - * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous - * fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been - * observed * **02** — Suspicious activity has been observed + * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been observed * **02** — Suspicious activity has been observed * - * @param suspiciousAccActivity Indicates whether the 3DS Requestor has experienced suspicious - * activity (including previous fraud) on the cardholder account. Allowed values: * **01** — - * No suspicious activity has been observed * **02** — Suspicious activity has been observed + * @param suspiciousAccActivity Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been observed * **02** — Suspicious activity has been observed * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo suspiciousAccActivity(SuspiciousAccActivityEnum suspiciousAccActivity) { @@ -1009,13 +832,8 @@ public AcctInfo suspiciousAccActivity(SuspiciousAccActivityEnum suspiciousAccAct } /** - * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous - * fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been - * observed * **02** — Suspicious activity has been observed - * - * @return suspiciousAccActivity Indicates whether the 3DS Requestor has experienced suspicious - * activity (including previous fraud) on the cardholder account. Allowed values: * **01** — - * No suspicious activity has been observed * **02** — Suspicious activity has been observed + * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been observed * **02** — Suspicious activity has been observed + * @return suspiciousAccActivity Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been observed * **02** — Suspicious activity has been observed */ @JsonProperty(JSON_PROPERTY_SUSPICIOUS_ACC_ACTIVITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1024,13 +842,9 @@ public SuspiciousAccActivityEnum getSuspiciousAccActivity() { } /** - * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous - * fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been - * observed * **02** — Suspicious activity has been observed + * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been observed * **02** — Suspicious activity has been observed * - * @param suspiciousAccActivity Indicates whether the 3DS Requestor has experienced suspicious - * activity (including previous fraud) on the cardholder account. Allowed values: * **01** — - * No suspicious activity has been observed * **02** — Suspicious activity has been observed + * @param suspiciousAccActivity Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been observed * **02** — Suspicious activity has been observed */ @JsonProperty(JSON_PROPERTY_SUSPICIOUS_ACC_ACTIVITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1039,12 +853,9 @@ public void setSuspiciousAccActivity(SuspiciousAccActivityEnum suspiciousAccActi } /** - * Number of transactions (successful and abandoned) for this cardholder account with the 3DS - * Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. + * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. * - * @param txnActivityDay Number of transactions (successful and abandoned) for this cardholder - * account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max - * length: 3 characters. + * @param txnActivityDay Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo txnActivityDay(String txnActivityDay) { @@ -1053,12 +864,8 @@ public AcctInfo txnActivityDay(String txnActivityDay) { } /** - * Number of transactions (successful and abandoned) for this cardholder account with the 3DS - * Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. - * - * @return txnActivityDay Number of transactions (successful and abandoned) for this cardholder - * account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max - * length: 3 characters. + * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. + * @return txnActivityDay Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. */ @JsonProperty(JSON_PROPERTY_TXN_ACTIVITY_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1067,12 +874,9 @@ public String getTxnActivityDay() { } /** - * Number of transactions (successful and abandoned) for this cardholder account with the 3DS - * Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. + * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. * - * @param txnActivityDay Number of transactions (successful and abandoned) for this cardholder - * account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max - * length: 3 characters. + * @param txnActivityDay Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. */ @JsonProperty(JSON_PROPERTY_TXN_ACTIVITY_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1081,12 +885,9 @@ public void setTxnActivityDay(String txnActivityDay) { } /** - * Number of transactions (successful and abandoned) for this cardholder account with the 3DS - * Requestor across all payment accounts in the previous year. Max length: 3 characters. + * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous year. Max length: 3 characters. * - * @param txnActivityYear Number of transactions (successful and abandoned) for this cardholder - * account with the 3DS Requestor across all payment accounts in the previous year. Max - * length: 3 characters. + * @param txnActivityYear Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous year. Max length: 3 characters. * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo txnActivityYear(String txnActivityYear) { @@ -1095,12 +896,8 @@ public AcctInfo txnActivityYear(String txnActivityYear) { } /** - * Number of transactions (successful and abandoned) for this cardholder account with the 3DS - * Requestor across all payment accounts in the previous year. Max length: 3 characters. - * - * @return txnActivityYear Number of transactions (successful and abandoned) for this cardholder - * account with the 3DS Requestor across all payment accounts in the previous year. Max - * length: 3 characters. + * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous year. Max length: 3 characters. + * @return txnActivityYear Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous year. Max length: 3 characters. */ @JsonProperty(JSON_PROPERTY_TXN_ACTIVITY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1109,12 +906,9 @@ public String getTxnActivityYear() { } /** - * Number of transactions (successful and abandoned) for this cardholder account with the 3DS - * Requestor across all payment accounts in the previous year. Max length: 3 characters. + * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous year. Max length: 3 characters. * - * @param txnActivityYear Number of transactions (successful and abandoned) for this cardholder - * account with the 3DS Requestor across all payment accounts in the previous year. Max - * length: 3 characters. + * @param txnActivityYear Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous year. Max length: 3 characters. */ @JsonProperty(JSON_PROPERTY_TXN_ACTIVITY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1122,7 +916,9 @@ public void setTxnActivityYear(String txnActivityYear) { this.txnActivityYear = txnActivityYear; } - /** Return true if this AcctInfo object is equal to o. */ + /** + * Return true if this AcctInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -1132,43 +928,27 @@ public boolean equals(Object o) { return false; } AcctInfo acctInfo = (AcctInfo) o; - return Objects.equals(this.chAccAgeInd, acctInfo.chAccAgeInd) - && Objects.equals(this.chAccChange, acctInfo.chAccChange) - && Objects.equals(this.chAccChangeInd, acctInfo.chAccChangeInd) - && Objects.equals(this.chAccPwChange, acctInfo.chAccPwChange) - && Objects.equals(this.chAccPwChangeInd, acctInfo.chAccPwChangeInd) - && Objects.equals(this.chAccString, acctInfo.chAccString) - && Objects.equals(this.nbPurchaseAccount, acctInfo.nbPurchaseAccount) - && Objects.equals(this.paymentAccAge, acctInfo.paymentAccAge) - && Objects.equals(this.paymentAccInd, acctInfo.paymentAccInd) - && Objects.equals(this.provisionAttemptsDay, acctInfo.provisionAttemptsDay) - && Objects.equals(this.shipAddressUsage, acctInfo.shipAddressUsage) - && Objects.equals(this.shipAddressUsageInd, acctInfo.shipAddressUsageInd) - && Objects.equals(this.shipNameIndicator, acctInfo.shipNameIndicator) - && Objects.equals(this.suspiciousAccActivity, acctInfo.suspiciousAccActivity) - && Objects.equals(this.txnActivityDay, acctInfo.txnActivityDay) - && Objects.equals(this.txnActivityYear, acctInfo.txnActivityYear); + return Objects.equals(this.chAccAgeInd, acctInfo.chAccAgeInd) && + Objects.equals(this.chAccChange, acctInfo.chAccChange) && + Objects.equals(this.chAccChangeInd, acctInfo.chAccChangeInd) && + Objects.equals(this.chAccPwChange, acctInfo.chAccPwChange) && + Objects.equals(this.chAccPwChangeInd, acctInfo.chAccPwChangeInd) && + Objects.equals(this.chAccString, acctInfo.chAccString) && + Objects.equals(this.nbPurchaseAccount, acctInfo.nbPurchaseAccount) && + Objects.equals(this.paymentAccAge, acctInfo.paymentAccAge) && + Objects.equals(this.paymentAccInd, acctInfo.paymentAccInd) && + Objects.equals(this.provisionAttemptsDay, acctInfo.provisionAttemptsDay) && + Objects.equals(this.shipAddressUsage, acctInfo.shipAddressUsage) && + Objects.equals(this.shipAddressUsageInd, acctInfo.shipAddressUsageInd) && + Objects.equals(this.shipNameIndicator, acctInfo.shipNameIndicator) && + Objects.equals(this.suspiciousAccActivity, acctInfo.suspiciousAccActivity) && + Objects.equals(this.txnActivityDay, acctInfo.txnActivityDay) && + Objects.equals(this.txnActivityYear, acctInfo.txnActivityYear); } @Override public int hashCode() { - return Objects.hash( - chAccAgeInd, - chAccChange, - chAccChangeInd, - chAccPwChange, - chAccPwChangeInd, - chAccString, - nbPurchaseAccount, - paymentAccAge, - paymentAccInd, - provisionAttemptsDay, - shipAddressUsage, - shipAddressUsageInd, - shipNameIndicator, - suspiciousAccActivity, - txnActivityDay, - txnActivityYear); + return Objects.hash(chAccAgeInd, chAccChange, chAccChangeInd, chAccPwChange, chAccPwChangeInd, chAccString, nbPurchaseAccount, paymentAccAge, paymentAccInd, provisionAttemptsDay, shipAddressUsage, shipAddressUsageInd, shipNameIndicator, suspiciousAccActivity, txnActivityDay, txnActivityYear); } @Override @@ -1184,17 +964,11 @@ public String toString() { sb.append(" nbPurchaseAccount: ").append(toIndentedString(nbPurchaseAccount)).append("\n"); sb.append(" paymentAccAge: ").append(toIndentedString(paymentAccAge)).append("\n"); sb.append(" paymentAccInd: ").append(toIndentedString(paymentAccInd)).append("\n"); - sb.append(" provisionAttemptsDay: ") - .append(toIndentedString(provisionAttemptsDay)) - .append("\n"); + sb.append(" provisionAttemptsDay: ").append(toIndentedString(provisionAttemptsDay)).append("\n"); sb.append(" shipAddressUsage: ").append(toIndentedString(shipAddressUsage)).append("\n"); - sb.append(" shipAddressUsageInd: ") - .append(toIndentedString(shipAddressUsageInd)) - .append("\n"); + sb.append(" shipAddressUsageInd: ").append(toIndentedString(shipAddressUsageInd)).append("\n"); sb.append(" shipNameIndicator: ").append(toIndentedString(shipNameIndicator)).append("\n"); - sb.append(" suspiciousAccActivity: ") - .append(toIndentedString(suspiciousAccActivity)) - .append("\n"); + sb.append(" suspiciousAccActivity: ").append(toIndentedString(suspiciousAccActivity)).append("\n"); sb.append(" txnActivityDay: ").append(toIndentedString(txnActivityDay)).append("\n"); sb.append(" txnActivityYear: ").append(toIndentedString(txnActivityYear)).append("\n"); sb.append("}"); @@ -1202,7 +976,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1211,7 +986,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AcctInfo given an JSON string * * @param jsonString JSON string @@ -1221,12 +996,11 @@ private String toIndentedString(Object o) { public static AcctInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AcctInfo.class); } - - /** - * Convert an instance of AcctInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AcctInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdditionalData3DSecure.java b/src/main/java/com/adyen/model/payment/AdditionalData3DSecure.java index a0e8d6cf9..36217a662 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalData3DSecure.java +++ b/src/main/java/com/adyen/model/payment/AdditionalData3DSecure.java @@ -2,26 +2,31 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** AdditionalData3DSecure */ + +/** + * AdditionalData3DSecure + */ @JsonPropertyOrder({ AdditionalData3DSecure.JSON_PROPERTY_ALLOW3_D_S2, AdditionalData3DSecure.JSON_PROPERTY_CHALLENGE_WINDOW_SIZE, @@ -30,16 +35,16 @@ AdditionalData3DSecure.JSON_PROPERTY_SCA_EXEMPTION, AdditionalData3DSecure.JSON_PROPERTY_THREE_D_S_VERSION }) + public class AdditionalData3DSecure { public static final String JSON_PROPERTY_ALLOW3_D_S2 = "allow3DS2"; private String allow3DS2; /** - * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * - * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size - * of 600x400 * **05** - Fullscreen + * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen */ public enum ChallengeWindowSizeEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -55,7 +60,7 @@ public enum ChallengeWindowSizeEnum { private String value; ChallengeWindowSizeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -76,11 +81,7 @@ public static ChallengeWindowSizeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ChallengeWindowSizeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ChallengeWindowSizeEnum.values())); + LOG.warning("ChallengeWindowSizeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChallengeWindowSizeEnum.values())); return null; } } @@ -100,34 +101,13 @@ public static ChallengeWindowSizeEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_VERSION = "threeDSVersion"; private String threeDSVersion; - public AdditionalData3DSecure() {} + public AdditionalData3DSecure() { + } /** - * Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. - * Send this parameter when you are using `/payments` endpoint with any of our [native - * 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This - * parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if - * you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or - * send the `executeThreeD` parameter. Possible values: * **true** - Ready to support - * native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure - * 2. Adyen selects redirect or native authentication based on your configuration to optimize - * authorization rates and improve the shopper's experience. * **false** – Not ready to - * support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication - * instead, based on your configuration. + * Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen selects redirect or native authentication based on your configuration to optimize authorization rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication instead, based on your configuration. * - * @param allow3DS2 Indicates if you are able to process 3D Secure 2 transactions natively on your - * payment page. Send this parameter when you are using `/payments` endpoint with - * any of our [native 3D Secure 2 - * solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This - * parameter only indicates readiness to support native 3D Secure 2 authentication. To specify - * if you _want_ to perform 3D Secure, use [Dynamic 3D - * Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` - * parameter. Possible values: * **true** - Ready to support native 3D Secure 2 - * authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen - * selects redirect or native authentication based on your configuration to optimize - * authorization rates and improve the shopper's experience. * **false** – Not ready to - * support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication - * instead, based on your configuration. + * @param allow3DS2 Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen selects redirect or native authentication based on your configuration to optimize authorization rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication instead, based on your configuration. * @return the current {@code AdditionalData3DSecure} instance, allowing for method chaining */ public AdditionalData3DSecure allow3DS2(String allow3DS2) { @@ -136,31 +116,8 @@ public AdditionalData3DSecure allow3DS2(String allow3DS2) { } /** - * Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. - * Send this parameter when you are using `/payments` endpoint with any of our [native - * 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This - * parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if - * you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or - * send the `executeThreeD` parameter. Possible values: * **true** - Ready to support - * native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure - * 2. Adyen selects redirect or native authentication based on your configuration to optimize - * authorization rates and improve the shopper's experience. * **false** – Not ready to - * support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication - * instead, based on your configuration. - * - * @return allow3DS2 Indicates if you are able to process 3D Secure 2 transactions natively on - * your payment page. Send this parameter when you are using `/payments` endpoint - * with any of our [native 3D Secure 2 - * solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This - * parameter only indicates readiness to support native 3D Secure 2 authentication. To specify - * if you _want_ to perform 3D Secure, use [Dynamic 3D - * Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` - * parameter. Possible values: * **true** - Ready to support native 3D Secure 2 - * authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen - * selects redirect or native authentication based on your configuration to optimize - * authorization rates and improve the shopper's experience. * **false** – Not ready to - * support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication - * instead, based on your configuration. + * Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen selects redirect or native authentication based on your configuration to optimize authorization rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication instead, based on your configuration. + * @return allow3DS2 Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen selects redirect or native authentication based on your configuration to optimize authorization rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication instead, based on your configuration. */ @JsonProperty(JSON_PROPERTY_ALLOW3_D_S2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,31 +126,9 @@ public String getAllow3DS2() { } /** - * Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. - * Send this parameter when you are using `/payments` endpoint with any of our [native - * 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This - * parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if - * you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or - * send the `executeThreeD` parameter. Possible values: * **true** - Ready to support - * native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure - * 2. Adyen selects redirect or native authentication based on your configuration to optimize - * authorization rates and improve the shopper's experience. * **false** – Not ready to - * support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication - * instead, based on your configuration. + * Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen selects redirect or native authentication based on your configuration to optimize authorization rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication instead, based on your configuration. * - * @param allow3DS2 Indicates if you are able to process 3D Secure 2 transactions natively on your - * payment page. Send this parameter when you are using `/payments` endpoint with - * any of our [native 3D Secure 2 - * solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This - * parameter only indicates readiness to support native 3D Secure 2 authentication. To specify - * if you _want_ to perform 3D Secure, use [Dynamic 3D - * Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` - * parameter. Possible values: * **true** - Ready to support native 3D Secure 2 - * authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen - * selects redirect or native authentication based on your configuration to optimize - * authorization rates and improve the shopper's experience. * **false** – Not ready to - * support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication - * instead, based on your configuration. + * @param allow3DS2 Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen selects redirect or native authentication based on your configuration to optimize authorization rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication instead, based on your configuration. */ @JsonProperty(JSON_PROPERTY_ALLOW3_D_S2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -202,13 +137,9 @@ public void setAllow3DS2(String allow3DS2) { } /** - * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * - * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size - * of 600x400 * **05** - Fullscreen + * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen * - * @param challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the - * cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - * - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + * @param challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen * @return the current {@code AdditionalData3DSecure} instance, allowing for method chaining */ public AdditionalData3DSecure challengeWindowSize(ChallengeWindowSizeEnum challengeWindowSize) { @@ -217,13 +148,8 @@ public AdditionalData3DSecure challengeWindowSize(ChallengeWindowSizeEnum challe } /** - * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * - * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size - * of 600x400 * **05** - Fullscreen - * - * @return challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the - * cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - * - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + * @return challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen */ @JsonProperty(JSON_PROPERTY_CHALLENGE_WINDOW_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,13 +158,9 @@ public ChallengeWindowSizeEnum getChallengeWindowSize() { } /** - * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * - * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size - * of 600x400 * **05** - Fullscreen + * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen * - * @param challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the - * cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - * - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + * @param challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen */ @JsonProperty(JSON_PROPERTY_CHALLENGE_WINDOW_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -247,18 +169,9 @@ public void setChallengeWindowSize(ChallengeWindowSizeEnum challengeWindowSize) } /** - * Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, - * you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for - * applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** - * – Don't perform 3D Secure authentication. Note that this setting results in refusals if the - * issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. + * Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. * - * @param executeThreeD Indicates if you want to perform 3D Secure authentication on a - * transaction. > Alternatively, you can use [Dynamic 3D - * Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. - * Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't - * perform 3D Secure authentication. Note that this setting results in refusals if the issuer - * mandates 3D Secure because of the PSD2 directive or other, national regulations. + * @param executeThreeD Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. * @return the current {@code AdditionalData3DSecure} instance, allowing for method chaining */ public AdditionalData3DSecure executeThreeD(String executeThreeD) { @@ -267,18 +180,8 @@ public AdditionalData3DSecure executeThreeD(String executeThreeD) { } /** - * Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, - * you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for - * applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** - * – Don't perform 3D Secure authentication. Note that this setting results in refusals if the - * issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. - * - * @return executeThreeD Indicates if you want to perform 3D Secure authentication on a - * transaction. > Alternatively, you can use [Dynamic 3D - * Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. - * Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't - * perform 3D Secure authentication. Note that this setting results in refusals if the issuer - * mandates 3D Secure because of the PSD2 directive or other, national regulations. + * Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. + * @return executeThreeD Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. */ @JsonProperty(JSON_PROPERTY_EXECUTE_THREE_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -287,18 +190,9 @@ public String getExecuteThreeD() { } /** - * Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, - * you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for - * applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** - * – Don't perform 3D Secure authentication. Note that this setting results in refusals if the - * issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. + * Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. * - * @param executeThreeD Indicates if you want to perform 3D Secure authentication on a - * transaction. > Alternatively, you can use [Dynamic 3D - * Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. - * Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't - * perform 3D Secure authentication. Note that this setting results in refusals if the issuer - * mandates 3D Secure because of the PSD2 directive or other, national regulations. + * @param executeThreeD Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. */ @JsonProperty(JSON_PROPERTY_EXECUTE_THREE_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -319,7 +213,6 @@ public AdditionalData3DSecure mpiImplementationType(String mpiImplementationType /** * In case of Secure+, this field must be set to **CUPSecurePlus**. - * * @return mpiImplementationType In case of Secure+, this field must be set to **CUPSecurePlus**. */ @JsonProperty(JSON_PROPERTY_MPI_IMPLEMENTATION_TYPE) @@ -340,15 +233,9 @@ public void setMpiImplementationType(String mpiImplementationType) { } /** - * Indicates the [exemption - * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) - * that you want to request for the transaction. Possible values: * **lowValue** * - * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * - * @param scaExemption Indicates the [exemption - * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) - * that you want to request for the transaction. Possible values: * **lowValue** * - * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * @param scaExemption Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * @return the current {@code AdditionalData3DSecure} instance, allowing for method chaining */ public AdditionalData3DSecure scaExemption(String scaExemption) { @@ -357,15 +244,8 @@ public AdditionalData3DSecure scaExemption(String scaExemption) { } /** - * Indicates the [exemption - * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) - * that you want to request for the transaction. Possible values: * **lowValue** * - * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** - * - * @return scaExemption Indicates the [exemption - * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) - * that you want to request for the transaction. Possible values: * **lowValue** * - * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * @return scaExemption Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** */ @JsonProperty(JSON_PROPERTY_SCA_EXEMPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -374,15 +254,9 @@ public String getScaExemption() { } /** - * Indicates the [exemption - * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) - * that you want to request for the transaction. Possible values: * **lowValue** * - * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * - * @param scaExemption Indicates the [exemption - * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) - * that you want to request for the transaction. Possible values: * **lowValue** * - * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * @param scaExemption Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** */ @JsonProperty(JSON_PROPERTY_SCA_EXEMPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -391,23 +265,9 @@ public void setScaExemption(String scaExemption) { } /** - * Indicates your preference for the 3D Secure version. > If you use this parameter, you - * override the checks from Adyen's Authentication Engine. We recommend to use this field only - * if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure - * version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support - * version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or - * 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply - * the fallback policy configured in your account. * If you the BIN is not enrolled, you will - * receive an error. + * Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen's Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. * If you the BIN is not enrolled, you will receive an error. * - * @param threeDSVersion Indicates your preference for the 3D Secure version. > If you use this - * parameter, you override the checks from Adyen's Authentication Engine. We recommend to - * use this field only if you have an extensive knowledge of 3D Secure. Possible values: * - * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If - * the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules - * apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in - * the `ARes`, we will apply the fallback policy configured in your account. * If - * you the BIN is not enrolled, you will receive an error. + * @param threeDSVersion Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen's Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. * If you the BIN is not enrolled, you will receive an error. * @return the current {@code AdditionalData3DSecure} instance, allowing for method chaining */ public AdditionalData3DSecure threeDSVersion(String threeDSVersion) { @@ -416,23 +276,8 @@ public AdditionalData3DSecure threeDSVersion(String threeDSVersion) { } /** - * Indicates your preference for the 3D Secure version. > If you use this parameter, you - * override the checks from Adyen's Authentication Engine. We recommend to use this field only - * if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure - * version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support - * version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or - * 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply - * the fallback policy configured in your account. * If you the BIN is not enrolled, you will - * receive an error. - * - * @return threeDSVersion Indicates your preference for the 3D Secure version. > If you use - * this parameter, you override the checks from Adyen's Authentication Engine. We - * recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible - * values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version - * 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The - * following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative - * `transStatus` in the `ARes`, we will apply the fallback policy - * configured in your account. * If you the BIN is not enrolled, you will receive an error. + * Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen's Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. * If you the BIN is not enrolled, you will receive an error. + * @return threeDSVersion Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen's Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. * If you the BIN is not enrolled, you will receive an error. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -441,23 +286,9 @@ public String getThreeDSVersion() { } /** - * Indicates your preference for the 3D Secure version. > If you use this parameter, you - * override the checks from Adyen's Authentication Engine. We recommend to use this field only - * if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure - * version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support - * version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or - * 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply - * the fallback policy configured in your account. * If you the BIN is not enrolled, you will - * receive an error. + * Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen's Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. * If you the BIN is not enrolled, you will receive an error. * - * @param threeDSVersion Indicates your preference for the 3D Secure version. > If you use this - * parameter, you override the checks from Adyen's Authentication Engine. We recommend to - * use this field only if you have an extensive knowledge of 3D Secure. Possible values: * - * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If - * the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules - * apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in - * the `ARes`, we will apply the fallback policy configured in your account. * If - * you the BIN is not enrolled, you will receive an error. + * @param threeDSVersion Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen's Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. * If you the BIN is not enrolled, you will receive an error. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -465,7 +296,9 @@ public void setThreeDSVersion(String threeDSVersion) { this.threeDSVersion = threeDSVersion; } - /** Return true if this AdditionalData3DSecure object is equal to o. */ + /** + * Return true if this AdditionalData3DSecure object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -475,23 +308,17 @@ public boolean equals(Object o) { return false; } AdditionalData3DSecure additionalData3DSecure = (AdditionalData3DSecure) o; - return Objects.equals(this.allow3DS2, additionalData3DSecure.allow3DS2) - && Objects.equals(this.challengeWindowSize, additionalData3DSecure.challengeWindowSize) - && Objects.equals(this.executeThreeD, additionalData3DSecure.executeThreeD) - && Objects.equals(this.mpiImplementationType, additionalData3DSecure.mpiImplementationType) - && Objects.equals(this.scaExemption, additionalData3DSecure.scaExemption) - && Objects.equals(this.threeDSVersion, additionalData3DSecure.threeDSVersion); + return Objects.equals(this.allow3DS2, additionalData3DSecure.allow3DS2) && + Objects.equals(this.challengeWindowSize, additionalData3DSecure.challengeWindowSize) && + Objects.equals(this.executeThreeD, additionalData3DSecure.executeThreeD) && + Objects.equals(this.mpiImplementationType, additionalData3DSecure.mpiImplementationType) && + Objects.equals(this.scaExemption, additionalData3DSecure.scaExemption) && + Objects.equals(this.threeDSVersion, additionalData3DSecure.threeDSVersion); } @Override public int hashCode() { - return Objects.hash( - allow3DS2, - challengeWindowSize, - executeThreeD, - mpiImplementationType, - scaExemption, - threeDSVersion); + return Objects.hash(allow3DS2, challengeWindowSize, executeThreeD, mpiImplementationType, scaExemption, threeDSVersion); } @Override @@ -499,13 +326,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalData3DSecure {\n"); sb.append(" allow3DS2: ").append(toIndentedString(allow3DS2)).append("\n"); - sb.append(" challengeWindowSize: ") - .append(toIndentedString(challengeWindowSize)) - .append("\n"); + sb.append(" challengeWindowSize: ").append(toIndentedString(challengeWindowSize)).append("\n"); sb.append(" executeThreeD: ").append(toIndentedString(executeThreeD)).append("\n"); - sb.append(" mpiImplementationType: ") - .append(toIndentedString(mpiImplementationType)) - .append("\n"); + sb.append(" mpiImplementationType: ").append(toIndentedString(mpiImplementationType)).append("\n"); sb.append(" scaExemption: ").append(toIndentedString(scaExemption)).append("\n"); sb.append(" threeDSVersion: ").append(toIndentedString(threeDSVersion)).append("\n"); sb.append("}"); @@ -513,7 +336,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -522,23 +346,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalData3DSecure given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalData3DSecure - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalData3DSecure + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalData3DSecure */ public static AdditionalData3DSecure fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalData3DSecure.class); } - - /** - * Convert an instance of AdditionalData3DSecure to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalData3DSecure to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataAirline.java b/src/main/java/com/adyen/model/payment/AdditionalDataAirline.java index 5e5935a7b..b3d6118ae 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataAirline.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataAirline.java @@ -2,22 +2,31 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AdditionalDataAirline */ + +/** + * AdditionalDataAirline + */ @JsonPropertyOrder({ AdditionalDataAirline.JSON_PROPERTY_AIRLINE_AGENCY_INVOICE_NUMBER, AdditionalDataAirline.JSON_PROPERTY_AIRLINE_AGENCY_PLAN_NAME, @@ -49,9 +58,9 @@ AdditionalDataAirline.JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_CODE, AdditionalDataAirline.JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_NAME }) + public class AdditionalDataAirline { - public static final String JSON_PROPERTY_AIRLINE_AGENCY_INVOICE_NUMBER = - "airline.agency_invoice_number"; + public static final String JSON_PROPERTY_AIRLINE_AGENCY_INVOICE_NUMBER = "airline.agency_invoice_number"; private String airlineAgencyInvoiceNumber; public static final String JSON_PROPERTY_AIRLINE_AGENCY_PLAN_NAME = "airline.agency_plan_name"; @@ -60,19 +69,16 @@ public class AdditionalDataAirline { public static final String JSON_PROPERTY_AIRLINE_AIRLINE_CODE = "airline.airline_code"; private String airlineAirlineCode; - public static final String JSON_PROPERTY_AIRLINE_AIRLINE_DESIGNATOR_CODE = - "airline.airline_designator_code"; + public static final String JSON_PROPERTY_AIRLINE_AIRLINE_DESIGNATOR_CODE = "airline.airline_designator_code"; private String airlineAirlineDesignatorCode; public static final String JSON_PROPERTY_AIRLINE_BOARDING_FEE = "airline.boarding_fee"; private String airlineBoardingFee; - public static final String JSON_PROPERTY_AIRLINE_COMPUTERIZED_RESERVATION_SYSTEM = - "airline.computerized_reservation_system"; + public static final String JSON_PROPERTY_AIRLINE_COMPUTERIZED_RESERVATION_SYSTEM = "airline.computerized_reservation_system"; private String airlineComputerizedReservationSystem; - public static final String JSON_PROPERTY_AIRLINE_CUSTOMER_REFERENCE_NUMBER = - "airline.customer_reference_number"; + public static final String JSON_PROPERTY_AIRLINE_CUSTOMER_REFERENCE_NUMBER = "airline.customer_reference_number"; private String airlineCustomerReferenceNumber; public static final String JSON_PROPERTY_AIRLINE_DOCUMENT_TYPE = "airline.document_type"; @@ -87,82 +93,67 @@ public class AdditionalDataAirline { public static final String JSON_PROPERTY_AIRLINE_LEG_CARRIER_CODE = "airline.leg.carrier_code"; private String airlineLegCarrierCode; - public static final String JSON_PROPERTY_AIRLINE_LEG_CLASS_OF_TRAVEL = - "airline.leg.class_of_travel"; + public static final String JSON_PROPERTY_AIRLINE_LEG_CLASS_OF_TRAVEL = "airline.leg.class_of_travel"; private String airlineLegClassOfTravel; - public static final String JSON_PROPERTY_AIRLINE_LEG_DATE_OF_TRAVEL = - "airline.leg.date_of_travel"; + public static final String JSON_PROPERTY_AIRLINE_LEG_DATE_OF_TRAVEL = "airline.leg.date_of_travel"; private String airlineLegDateOfTravel; - public static final String JSON_PROPERTY_AIRLINE_LEG_DEPART_AIRPORT = - "airline.leg.depart_airport"; + public static final String JSON_PROPERTY_AIRLINE_LEG_DEPART_AIRPORT = "airline.leg.depart_airport"; private String airlineLegDepartAirport; public static final String JSON_PROPERTY_AIRLINE_LEG_DEPART_TAX = "airline.leg.depart_tax"; private String airlineLegDepartTax; - public static final String JSON_PROPERTY_AIRLINE_LEG_DESTINATION_CODE = - "airline.leg.destination_code"; + public static final String JSON_PROPERTY_AIRLINE_LEG_DESTINATION_CODE = "airline.leg.destination_code"; private String airlineLegDestinationCode; - public static final String JSON_PROPERTY_AIRLINE_LEG_FARE_BASE_CODE = - "airline.leg.fare_base_code"; + public static final String JSON_PROPERTY_AIRLINE_LEG_FARE_BASE_CODE = "airline.leg.fare_base_code"; private String airlineLegFareBaseCode; public static final String JSON_PROPERTY_AIRLINE_LEG_FLIGHT_NUMBER = "airline.leg.flight_number"; private String airlineLegFlightNumber; - public static final String JSON_PROPERTY_AIRLINE_LEG_STOP_OVER_CODE = - "airline.leg.stop_over_code"; + public static final String JSON_PROPERTY_AIRLINE_LEG_STOP_OVER_CODE = "airline.leg.stop_over_code"; private String airlineLegStopOverCode; - public static final String JSON_PROPERTY_AIRLINE_PASSENGER_DATE_OF_BIRTH = - "airline.passenger.date_of_birth"; + public static final String JSON_PROPERTY_AIRLINE_PASSENGER_DATE_OF_BIRTH = "airline.passenger.date_of_birth"; private String airlinePassengerDateOfBirth; - public static final String JSON_PROPERTY_AIRLINE_PASSENGER_FIRST_NAME = - "airline.passenger.first_name"; + public static final String JSON_PROPERTY_AIRLINE_PASSENGER_FIRST_NAME = "airline.passenger.first_name"; private String airlinePassengerFirstName; - public static final String JSON_PROPERTY_AIRLINE_PASSENGER_LAST_NAME = - "airline.passenger.last_name"; + public static final String JSON_PROPERTY_AIRLINE_PASSENGER_LAST_NAME = "airline.passenger.last_name"; private String airlinePassengerLastName; - public static final String JSON_PROPERTY_AIRLINE_PASSENGER_PHONE_NUMBER = - "airline.passenger.phone_number"; + public static final String JSON_PROPERTY_AIRLINE_PASSENGER_PHONE_NUMBER = "airline.passenger.phone_number"; private String airlinePassengerPhoneNumber; - public static final String JSON_PROPERTY_AIRLINE_PASSENGER_TRAVELLER_TYPE = - "airline.passenger.traveller_type"; + public static final String JSON_PROPERTY_AIRLINE_PASSENGER_TRAVELLER_TYPE = "airline.passenger.traveller_type"; private String airlinePassengerTravellerType; public static final String JSON_PROPERTY_AIRLINE_PASSENGER_NAME = "airline.passenger_name"; private String airlinePassengerName; - public static final String JSON_PROPERTY_AIRLINE_TICKET_ISSUE_ADDRESS = - "airline.ticket_issue_address"; + public static final String JSON_PROPERTY_AIRLINE_TICKET_ISSUE_ADDRESS = "airline.ticket_issue_address"; private String airlineTicketIssueAddress; public static final String JSON_PROPERTY_AIRLINE_TICKET_NUMBER = "airline.ticket_number"; private String airlineTicketNumber; - public static final String JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_CODE = - "airline.travel_agency_code"; + public static final String JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_CODE = "airline.travel_agency_code"; private String airlineTravelAgencyCode; - public static final String JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_NAME = - "airline.travel_agency_name"; + public static final String JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_NAME = "airline.travel_agency_name"; private String airlineTravelAgencyName; - public AdditionalDataAirline() {} + public AdditionalDataAirline() { + } /** - * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 - * character * maxLength: 6 characters + * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters * - * @param airlineAgencyInvoiceNumber The reference number for the invoice, issued by the agency. * - * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters + * @param airlineAgencyInvoiceNumber The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineAgencyInvoiceNumber(String airlineAgencyInvoiceNumber) { @@ -171,11 +162,8 @@ public AdditionalDataAirline airlineAgencyInvoiceNumber(String airlineAgencyInvo } /** - * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 - * character * maxLength: 6 characters - * - * @return airlineAgencyInvoiceNumber The reference number for the invoice, issued by the agency. - * * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters + * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters + * @return airlineAgencyInvoiceNumber The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_AGENCY_INVOICE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -184,11 +172,9 @@ public String getAirlineAgencyInvoiceNumber() { } /** - * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 - * character * maxLength: 6 characters + * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters * - * @param airlineAgencyInvoiceNumber The reference number for the invoice, issued by the agency. * - * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters + * @param airlineAgencyInvoiceNumber The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_AGENCY_INVOICE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -197,11 +183,9 @@ public void setAirlineAgencyInvoiceNumber(String airlineAgencyInvoiceNumber) { } /** - * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: - * 2 characters + * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters * - * @param airlineAgencyPlanName The two-letter agency plan identifier. * Encoding: ASCII * - * minLength: 2 characters * maxLength: 2 characters + * @param airlineAgencyPlanName The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineAgencyPlanName(String airlineAgencyPlanName) { @@ -210,11 +194,8 @@ public AdditionalDataAirline airlineAgencyPlanName(String airlineAgencyPlanName) } /** - * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: - * 2 characters - * - * @return airlineAgencyPlanName The two-letter agency plan identifier. * Encoding: ASCII * - * minLength: 2 characters * maxLength: 2 characters + * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters + * @return airlineAgencyPlanName The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_AGENCY_PLAN_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,11 +204,9 @@ public String getAirlineAgencyPlanName() { } /** - * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: - * 2 characters + * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters * - * @param airlineAgencyPlanName The two-letter agency plan identifier. * Encoding: ASCII * - * minLength: 2 characters * maxLength: 2 characters + * @param airlineAgencyPlanName The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_AGENCY_PLAN_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -236,15 +215,9 @@ public void setAirlineAgencyPlanName(String airlineAgencyPlanName) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that - * identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 - * * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all - * zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineAirlineCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit - * accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code - * (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must - * not be all spaces * Must not be all zeros. + * @param airlineAirlineCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineAirlineCode(String airlineAirlineCode) { @@ -253,15 +226,8 @@ public AdditionalDataAirline airlineAirlineCode(String airlineAirlineCode) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that - * identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 - * * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all - * zeros. - * - * @return airlineAirlineCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit - * accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code - * (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must - * not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * @return airlineAirlineCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_AIRLINE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -270,15 +236,9 @@ public String getAirlineAirlineCode() { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that - * identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 - * * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all - * zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineAirlineCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit - * accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code - * (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must - * not be all spaces * Must not be all zeros. + * @param airlineAirlineCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_AIRLINE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -287,14 +247,9 @@ public void setAirlineAirlineCode(String airlineAirlineCode) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that - * identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * - * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineAirlineDesignatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) - * 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: - * KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces - * * Must not be all zeros. + * @param airlineAirlineDesignatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineAirlineDesignatorCode(String airlineAirlineDesignatorCode) { @@ -303,14 +258,8 @@ public AdditionalDataAirline airlineAirlineDesignatorCode(String airlineAirlineD } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that - * identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * - * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. - * - * @return airlineAirlineDesignatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) - * 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: - * KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces - * * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * @return airlineAirlineDesignatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_AIRLINE_DESIGNATOR_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -319,14 +268,9 @@ public String getAirlineAirlineDesignatorCode() { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that - * identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * - * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineAirlineDesignatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) - * 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: - * KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces - * * Must not be all zeros. + * @param airlineAirlineDesignatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_AIRLINE_DESIGNATOR_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -335,13 +279,9 @@ public void setAirlineAirlineDesignatorCode(String airlineAirlineDesignatorCode) } /** - * The amount charged for boarding the plane, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * - * minLength: 1 character * maxLength: 18 characters + * The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 18 characters * - * @param airlineBoardingFee The amount charged for boarding the plane, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * - * minLength: 1 character * maxLength: 18 characters + * @param airlineBoardingFee The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 18 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineBoardingFee(String airlineBoardingFee) { @@ -350,13 +290,8 @@ public AdditionalDataAirline airlineBoardingFee(String airlineBoardingFee) { } /** - * The amount charged for boarding the plane, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * - * minLength: 1 character * maxLength: 18 characters - * - * @return airlineBoardingFee The amount charged for boarding the plane, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * - * minLength: 1 character * maxLength: 18 characters + * The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 18 characters + * @return airlineBoardingFee The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 18 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_BOARDING_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -365,13 +300,9 @@ public String getAirlineBoardingFee() { } /** - * The amount charged for boarding the plane, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * - * minLength: 1 character * maxLength: 18 characters + * The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 18 characters * - * @param airlineBoardingFee The amount charged for boarding the plane, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * - * minLength: 1 character * maxLength: 18 characters + * @param airlineBoardingFee The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 18 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_BOARDING_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -380,31 +311,19 @@ public void setAirlineBoardingFee(String airlineBoardingFee) { } /** - * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the - * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 - * characters + * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters * - * @param airlineComputerizedReservationSystem The - * [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the - * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * - * maxLength: 4 characters + * @param airlineComputerizedReservationSystem The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ - public AdditionalDataAirline airlineComputerizedReservationSystem( - String airlineComputerizedReservationSystem) { + public AdditionalDataAirline airlineComputerizedReservationSystem(String airlineComputerizedReservationSystem) { this.airlineComputerizedReservationSystem = airlineComputerizedReservationSystem; return this; } /** - * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the - * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 - * characters - * - * @return airlineComputerizedReservationSystem The - * [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the - * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * - * maxLength: 4 characters + * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters + * @return airlineComputerizedReservationSystem The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_COMPUTERIZED_RESERVATION_SYSTEM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -413,14 +332,9 @@ public String getAirlineComputerizedReservationSystem() { } /** - * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the - * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 - * characters + * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters * - * @param airlineComputerizedReservationSystem The - * [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the - * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * - * maxLength: 4 characters + * @param airlineComputerizedReservationSystem The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_COMPUTERIZED_RESERVATION_SYSTEM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -429,29 +343,19 @@ public void setAirlineComputerizedReservationSystem(String airlineComputerizedRe } /** - * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If - * you send more than 20 characters, the customer reference number is truncated * Must not be all - * spaces + * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not be all spaces * - * @param airlineCustomerReferenceNumber The alphanumeric customer reference number. * Encoding: - * ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer - * reference number is truncated * Must not be all spaces + * @param airlineCustomerReferenceNumber The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not be all spaces * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ - public AdditionalDataAirline airlineCustomerReferenceNumber( - String airlineCustomerReferenceNumber) { + public AdditionalDataAirline airlineCustomerReferenceNumber(String airlineCustomerReferenceNumber) { this.airlineCustomerReferenceNumber = airlineCustomerReferenceNumber; return this; } /** - * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If - * you send more than 20 characters, the customer reference number is truncated * Must not be all - * spaces - * - * @return airlineCustomerReferenceNumber The alphanumeric customer reference number. * Encoding: - * ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer - * reference number is truncated * Must not be all spaces + * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not be all spaces + * @return airlineCustomerReferenceNumber The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not be all spaces */ @JsonProperty(JSON_PROPERTY_AIRLINE_CUSTOMER_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -460,13 +364,9 @@ public String getAirlineCustomerReferenceNumber() { } /** - * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If - * you send more than 20 characters, the customer reference number is truncated * Must not be all - * spaces + * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not be all spaces * - * @param airlineCustomerReferenceNumber The alphanumeric customer reference number. * Encoding: - * ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer - * reference number is truncated * Must not be all spaces + * @param airlineCustomerReferenceNumber The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not be all spaces */ @JsonProperty(JSON_PROPERTY_AIRLINE_CUSTOMER_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -475,13 +375,9 @@ public void setAirlineCustomerReferenceNumber(String airlineCustomerReferenceNum } /** - * A code that identifies the type of item bought. The description of the code can appear on - * credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 - * characters * maxLength: 2 characters + * A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters * - * @param airlineDocumentType A code that identifies the type of item bought. The description of - * the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger - * ticket = 01 * minLength: 2 characters * maxLength: 2 characters + * @param airlineDocumentType A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineDocumentType(String airlineDocumentType) { @@ -490,13 +386,8 @@ public AdditionalDataAirline airlineDocumentType(String airlineDocumentType) { } /** - * A code that identifies the type of item bought. The description of the code can appear on - * credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 - * characters * maxLength: 2 characters - * - * @return airlineDocumentType A code that identifies the type of item bought. The description of - * the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger - * ticket = 01 * minLength: 2 characters * maxLength: 2 characters + * A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters + * @return airlineDocumentType A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_DOCUMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -505,13 +396,9 @@ public String getAirlineDocumentType() { } /** - * A code that identifies the type of item bought. The description of the code can appear on - * credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 - * characters * maxLength: 2 characters + * A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters * - * @param airlineDocumentType A code that identifies the type of item bought. The description of - * the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger - * ticket = 01 * minLength: 2 characters * maxLength: 2 characters + * @param airlineDocumentType A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_DOCUMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -520,13 +407,9 @@ public void setAirlineDocumentType(String airlineDocumentType) { } /** - * The flight departure date. Local time `(HH:mm)` is optional. * Date format: - * `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 - * characters * maxLength: 16 characters + * The flight departure date. Local time `(HH:mm)` is optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 characters * maxLength: 16 characters * - * @param airlineFlightDate The flight departure date. Local time `(HH:mm)` is optional. - * * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` - * * minLength: 10 characters * maxLength: 16 characters + * @param airlineFlightDate The flight departure date. Local time `(HH:mm)` is optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 characters * maxLength: 16 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineFlightDate(String airlineFlightDate) { @@ -535,13 +418,8 @@ public AdditionalDataAirline airlineFlightDate(String airlineFlightDate) { } /** - * The flight departure date. Local time `(HH:mm)` is optional. * Date format: - * `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 - * characters * maxLength: 16 characters - * - * @return airlineFlightDate The flight departure date. Local time `(HH:mm)` is - * optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd - * HH:mm` * minLength: 10 characters * maxLength: 16 characters + * The flight departure date. Local time `(HH:mm)` is optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 characters * maxLength: 16 characters + * @return airlineFlightDate The flight departure date. Local time `(HH:mm)` is optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_FLIGHT_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -550,13 +428,9 @@ public String getAirlineFlightDate() { } /** - * The flight departure date. Local time `(HH:mm)` is optional. * Date format: - * `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 - * characters * maxLength: 16 characters + * The flight departure date. Local time `(HH:mm)` is optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 characters * maxLength: 16 characters * - * @param airlineFlightDate The flight departure date. Local time `(HH:mm)` is optional. - * * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` - * * minLength: 10 characters * maxLength: 16 characters + * @param airlineFlightDate The flight departure date. Local time `(HH:mm)` is optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_FLIGHT_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -565,11 +439,9 @@ public void setAirlineFlightDate(String airlineFlightDate) { } /** - * The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 - * characters * Date format: YYMMDD + * The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 characters * Date format: YYMMDD * - * @param airlineIssueDate The date that the ticket was issued to the passenger. * minLength: 6 - * characters * maxLength: 6 characters * Date format: YYMMDD + * @param airlineIssueDate The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 characters * Date format: YYMMDD * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineIssueDate(String airlineIssueDate) { @@ -578,11 +450,8 @@ public AdditionalDataAirline airlineIssueDate(String airlineIssueDate) { } /** - * The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 - * characters * Date format: YYMMDD - * - * @return airlineIssueDate The date that the ticket was issued to the passenger. * minLength: 6 - * characters * maxLength: 6 characters * Date format: YYMMDD + * The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 characters * Date format: YYMMDD + * @return airlineIssueDate The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 characters * Date format: YYMMDD */ @JsonProperty(JSON_PROPERTY_AIRLINE_ISSUE_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -591,11 +460,9 @@ public String getAirlineIssueDate() { } /** - * The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 - * characters * Date format: YYMMDD + * The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 characters * Date format: YYMMDD * - * @param airlineIssueDate The date that the ticket was issued to the passenger. * minLength: 6 - * characters * maxLength: 6 characters * Date format: YYMMDD + * @param airlineIssueDate The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 characters * Date format: YYMMDD */ @JsonProperty(JSON_PROPERTY_AIRLINE_ISSUE_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -604,15 +471,9 @@ public void setAirlineIssueDate(String airlineIssueDate) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that - * identifies the carrier. This field is required if the airline data includes leg details. * - * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all - * spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineLegCarrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) - * 2-letter accounting code (PAX) that identifies the carrier. This field is required if the - * airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * - * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegCarrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegCarrierCode(String airlineLegCarrierCode) { @@ -621,15 +482,8 @@ public AdditionalDataAirline airlineLegCarrierCode(String airlineLegCarrierCode) } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that - * identifies the carrier. This field is required if the airline data includes leg details. * - * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all - * spaces * Must not be all zeros. - * - * @return airlineLegCarrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) - * 2-letter accounting code (PAX) that identifies the carrier. This field is required if the - * airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * - * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * @return airlineLegCarrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_CARRIER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -638,15 +492,9 @@ public String getAirlineLegCarrierCode() { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that - * identifies the carrier. This field is required if the airline data includes leg details. * - * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all - * spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineLegCarrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) - * 2-letter accounting code (PAX) that identifies the carrier. This field is required if the - * airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * - * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegCarrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_CARRIER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -655,14 +503,9 @@ public void setAirlineLegCarrierCode(String airlineLegCarrierCode) { } /** - * A one-letter travel class identifier. The following are common: * F: first class * J: business - * class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * - * maxLength: 1 character * Must not be all spaces * Must not be all zeros. + * A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not be all zeros. * - * @param airlineLegClassOfTravel A one-letter travel class identifier. The following are common: - * * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: - * ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not - * be all zeros. + * @param airlineLegClassOfTravel A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegClassOfTravel(String airlineLegClassOfTravel) { @@ -671,14 +514,8 @@ public AdditionalDataAirline airlineLegClassOfTravel(String airlineLegClassOfTra } /** - * A one-letter travel class identifier. The following are common: * F: first class * J: business - * class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * - * maxLength: 1 character * Must not be all spaces * Must not be all zeros. - * - * @return airlineLegClassOfTravel A one-letter travel class identifier. The following are common: - * * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: - * ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not - * be all zeros. + * A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not be all zeros. + * @return airlineLegClassOfTravel A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_CLASS_OF_TRAVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -687,14 +524,9 @@ public String getAirlineLegClassOfTravel() { } /** - * A one-letter travel class identifier. The following are common: * F: first class * J: business - * class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * - * maxLength: 1 character * Must not be all spaces * Must not be all zeros. + * A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not be all zeros. * - * @param airlineLegClassOfTravel A one-letter travel class identifier. The following are common: - * * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: - * ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not - * be all zeros. + * @param airlineLegClassOfTravel A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_CLASS_OF_TRAVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -703,13 +535,9 @@ public void setAirlineLegClassOfTravel(String airlineLegClassOfTravel) { } /** - * Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format - * `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 - * characters + * Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters * - * @param airlineLegDateOfTravel Date and time of travel in [ISO - * 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * - * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters + * @param airlineLegDateOfTravel Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegDateOfTravel(String airlineLegDateOfTravel) { @@ -718,13 +546,8 @@ public AdditionalDataAirline airlineLegDateOfTravel(String airlineLegDateOfTrave } /** - * Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format - * `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 - * characters - * - * @return airlineLegDateOfTravel Date and time of travel in [ISO - * 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * - * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters + * Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters + * @return airlineLegDateOfTravel Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_DATE_OF_TRAVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -733,13 +556,9 @@ public String getAirlineLegDateOfTravel() { } /** - * Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format - * `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 - * characters + * Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters * - * @param airlineLegDateOfTravel Date and time of travel in [ISO - * 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * - * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters + * @param airlineLegDateOfTravel Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_DATE_OF_TRAVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -748,15 +567,9 @@ public void setAirlineLegDateOfTravel(String airlineLegDateOfTravel) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the - * departure airport. This field is required if the airline data includes leg details. * Encoding: - * ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * - * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineLegDepartAirport The [IATA](https://www.iata.org/services/pages/codes.aspx) - * three-letter airport code of the departure airport. This field is required if the airline - * data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 - * characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegDepartAirport The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegDepartAirport(String airlineLegDepartAirport) { @@ -765,15 +578,8 @@ public AdditionalDataAirline airlineLegDepartAirport(String airlineLegDepartAirp } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the - * departure airport. This field is required if the airline data includes leg details. * Encoding: - * ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * - * Must not be all spaces * Must not be all zeros. - * - * @return airlineLegDepartAirport The [IATA](https://www.iata.org/services/pages/codes.aspx) - * three-letter airport code of the departure airport. This field is required if the airline - * data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 - * characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * @return airlineLegDepartAirport The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_DEPART_AIRPORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -782,15 +588,9 @@ public String getAirlineLegDepartAirport() { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the - * departure airport. This field is required if the airline data includes leg details. * Encoding: - * ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * - * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineLegDepartAirport The [IATA](https://www.iata.org/services/pages/codes.aspx) - * three-letter airport code of the departure airport. This field is required if the airline - * data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 - * characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegDepartAirport The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_DEPART_AIRPORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -799,14 +599,9 @@ public void setAirlineLegDepartAirport(String airlineLegDepartAirport) { } /** - * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * - * minLength: 1 * maxLength: 12 * Must not be all zeros. + * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 12 * Must not be all zeros. * - * @param airlineLegDepartTax The amount of [departure - * tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * - * minLength: 1 * maxLength: 12 * Must not be all zeros. + * @param airlineLegDepartTax The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 12 * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegDepartTax(String airlineLegDepartTax) { @@ -815,14 +610,8 @@ public AdditionalDataAirline airlineLegDepartTax(String airlineLegDepartTax) { } /** - * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * - * minLength: 1 * maxLength: 12 * Must not be all zeros. - * - * @return airlineLegDepartTax The amount of [departure - * tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * - * minLength: 1 * maxLength: 12 * Must not be all zeros. + * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 12 * Must not be all zeros. + * @return airlineLegDepartTax The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 12 * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_DEPART_TAX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -831,14 +620,9 @@ public String getAirlineLegDepartTax() { } /** - * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * - * minLength: 1 * maxLength: 12 * Must not be all zeros. + * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 12 * Must not be all zeros. * - * @param airlineLegDepartTax The amount of [departure - * tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * - * minLength: 1 * maxLength: 12 * Must not be all zeros. + * @param airlineLegDepartTax The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 12 * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_DEPART_TAX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -847,15 +631,9 @@ public void setAirlineLegDepartTax(String airlineLegDepartTax) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the - * destination airport. This field is required if the airline data includes leg details. * - * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 - * characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineLegDestinationCode The [IATA](https://www.iata.org/services/pages/codes.aspx) - * 3-letter airport code of the destination airport. This field is required if the airline - * data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 - * characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegDestinationCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegDestinationCode(String airlineLegDestinationCode) { @@ -864,15 +642,8 @@ public AdditionalDataAirline airlineLegDestinationCode(String airlineLegDestinat } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the - * destination airport. This field is required if the airline data includes leg details. * - * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 - * characters * Must not be all spaces * Must not be all zeros. - * - * @return airlineLegDestinationCode The [IATA](https://www.iata.org/services/pages/codes.aspx) - * 3-letter airport code of the destination airport. This field is required if the airline - * data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 - * characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * @return airlineLegDestinationCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_DESTINATION_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -881,15 +652,9 @@ public String getAirlineLegDestinationCode() { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the - * destination airport. This field is required if the airline data includes leg details. * - * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 - * characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineLegDestinationCode The [IATA](https://www.iata.org/services/pages/codes.aspx) - * 3-letter airport code of the destination airport. This field is required if the airline - * data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 - * characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegDestinationCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_DESTINATION_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -898,13 +663,9 @@ public void setAirlineLegDestinationCode(String airlineLegDestinationCode) { } /** - * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * - * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all - * zeros. + * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineLegFareBaseCode The [fare basis - * code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 - * character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegFareBaseCode The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegFareBaseCode(String airlineLegFareBaseCode) { @@ -913,13 +674,8 @@ public AdditionalDataAirline airlineLegFareBaseCode(String airlineLegFareBaseCod } /** - * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * - * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all - * zeros. - * - * @return airlineLegFareBaseCode The [fare basis - * code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 - * character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * @return airlineLegFareBaseCode The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_FARE_BASE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -928,13 +684,9 @@ public String getAirlineLegFareBaseCode() { } /** - * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * - * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all - * zeros. + * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineLegFareBaseCode The [fare basis - * code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 - * character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegFareBaseCode The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_FARE_BASE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -943,11 +695,9 @@ public void setAirlineLegFareBaseCode(String airlineLegFareBaseCode) { } /** - * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all - * spaces * Must not be all zeros. + * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineLegFlightNumber The flight identifier. * minLength: 1 character * maxLength: 5 - * characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegFlightNumber The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegFlightNumber(String airlineLegFlightNumber) { @@ -956,11 +706,8 @@ public AdditionalDataAirline airlineLegFlightNumber(String airlineLegFlightNumbe } /** - * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all - * spaces * Must not be all zeros. - * - * @return airlineLegFlightNumber The flight identifier. * minLength: 1 character * maxLength: 5 - * characters * Must not be all spaces * Must not be all zeros. + * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all spaces * Must not be all zeros. + * @return airlineLegFlightNumber The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_FLIGHT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -969,11 +716,9 @@ public String getAirlineLegFlightNumber() { } /** - * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all - * spaces * Must not be all zeros. + * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineLegFlightNumber The flight identifier. * minLength: 1 character * maxLength: 5 - * characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegFlightNumber The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_FLIGHT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -982,14 +727,9 @@ public void setAirlineLegFlightNumber(String airlineLegFlightNumber) { } /** - * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a - * space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: - * ASCII * minLength: 1 character * maxLength: 1 character + * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * - * @param airlineLegStopOverCode A one-letter code that indicates whether the passenger is - * entitled to make a stopover. Can be a space, O if the passenger is entitled to make a - * stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 - * character + * @param airlineLegStopOverCode A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegStopOverCode(String airlineLegStopOverCode) { @@ -998,14 +738,8 @@ public AdditionalDataAirline airlineLegStopOverCode(String airlineLegStopOverCod } /** - * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a - * space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: - * ASCII * minLength: 1 character * maxLength: 1 character - * - * @return airlineLegStopOverCode A one-letter code that indicates whether the passenger is - * entitled to make a stopover. Can be a space, O if the passenger is entitled to make a - * stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 - * character + * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character + * @return airlineLegStopOverCode A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_STOP_OVER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1014,14 +748,9 @@ public String getAirlineLegStopOverCode() { } /** - * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a - * space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: - * ASCII * minLength: 1 character * maxLength: 1 character + * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * - * @param airlineLegStopOverCode A one-letter code that indicates whether the passenger is - * entitled to make a stopover. Can be a space, O if the passenger is entitled to make a - * stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 - * character + * @param airlineLegStopOverCode A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_STOP_OVER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1030,11 +759,9 @@ public void setAirlineLegStopOverCode(String airlineLegStopOverCode) { } /** - * The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * - * maxLength: 10 + * The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 * - * @param airlinePassengerDateOfBirth The passenger's date of birth. Date format: - * `yyyy-MM-dd` * minLength: 10 * maxLength: 10 + * @param airlinePassengerDateOfBirth The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlinePassengerDateOfBirth(String airlinePassengerDateOfBirth) { @@ -1043,11 +770,8 @@ public AdditionalDataAirline airlinePassengerDateOfBirth(String airlinePassenger } /** - * The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * - * maxLength: 10 - * - * @return airlinePassengerDateOfBirth The passenger's date of birth. Date format: - * `yyyy-MM-dd` * minLength: 10 * maxLength: 10 + * The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 + * @return airlinePassengerDateOfBirth The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1056,11 +780,9 @@ public String getAirlinePassengerDateOfBirth() { } /** - * The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * - * maxLength: 10 + * The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 * - * @param airlinePassengerDateOfBirth The passenger's date of birth. Date format: - * `yyyy-MM-dd` * minLength: 10 * maxLength: 10 + * @param airlinePassengerDateOfBirth The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1069,11 +791,9 @@ public void setAirlinePassengerDateOfBirth(String airlinePassengerDateOfBirth) { } /** - * The passenger's first name. > This field is required if the airline data includes - * passenger details or leg details. * Encoding: ASCII + * The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII * - * @param airlinePassengerFirstName The passenger's first name. > This field is required if - * the airline data includes passenger details or leg details. * Encoding: ASCII + * @param airlinePassengerFirstName The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlinePassengerFirstName(String airlinePassengerFirstName) { @@ -1082,11 +802,8 @@ public AdditionalDataAirline airlinePassengerFirstName(String airlinePassengerFi } /** - * The passenger's first name. > This field is required if the airline data includes - * passenger details or leg details. * Encoding: ASCII - * - * @return airlinePassengerFirstName The passenger's first name. > This field is required - * if the airline data includes passenger details or leg details. * Encoding: ASCII + * The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * @return airlinePassengerFirstName The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1095,11 +812,9 @@ public String getAirlinePassengerFirstName() { } /** - * The passenger's first name. > This field is required if the airline data includes - * passenger details or leg details. * Encoding: ASCII + * The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII * - * @param airlinePassengerFirstName The passenger's first name. > This field is required if - * the airline data includes passenger details or leg details. * Encoding: ASCII + * @param airlinePassengerFirstName The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1108,11 +823,9 @@ public void setAirlinePassengerFirstName(String airlinePassengerFirstName) { } /** - * The passenger's last name. > This field is required if the airline data includes - * passenger details or leg details. * Encoding: ASCII + * The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII * - * @param airlinePassengerLastName The passenger's last name. > This field is required if - * the airline data includes passenger details or leg details. * Encoding: ASCII + * @param airlinePassengerLastName The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlinePassengerLastName(String airlinePassengerLastName) { @@ -1121,11 +834,8 @@ public AdditionalDataAirline airlinePassengerLastName(String airlinePassengerLas } /** - * The passenger's last name. > This field is required if the airline data includes - * passenger details or leg details. * Encoding: ASCII - * - * @return airlinePassengerLastName The passenger's last name. > This field is required if - * the airline data includes passenger details or leg details. * Encoding: ASCII + * The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * @return airlinePassengerLastName The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1134,11 +844,9 @@ public String getAirlinePassengerLastName() { } /** - * The passenger's last name. > This field is required if the airline data includes - * passenger details or leg details. * Encoding: ASCII + * The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII * - * @param airlinePassengerLastName The passenger's last name. > This field is required if - * the airline data includes passenger details or leg details. * Encoding: ASCII + * @param airlinePassengerLastName The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1147,13 +855,9 @@ public void setAirlinePassengerLastName(String airlinePassengerLastName) { } /** - * The passenger's phone number, including country code. This is an alphanumeric field that - * can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters - * * maxLength: 30 characters + * The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters * - * @param airlinePassengerPhoneNumber The passenger's phone number, including country code. - * This is an alphanumeric field that can include the '+' and '-' signs. * - * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters + * @param airlinePassengerPhoneNumber The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlinePassengerPhoneNumber(String airlinePassengerPhoneNumber) { @@ -1162,13 +866,8 @@ public AdditionalDataAirline airlinePassengerPhoneNumber(String airlinePassenger } /** - * The passenger's phone number, including country code. This is an alphanumeric field that - * can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters - * * maxLength: 30 characters - * - * @return airlinePassengerPhoneNumber The passenger's phone number, including country code. - * This is an alphanumeric field that can include the '+' and '-' signs. * - * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters + * The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters + * @return airlinePassengerPhoneNumber The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1177,13 +876,9 @@ public String getAirlinePassengerPhoneNumber() { } /** - * The passenger's phone number, including country code. This is an alphanumeric field that - * can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters - * * maxLength: 30 characters + * The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters * - * @param airlinePassengerPhoneNumber The passenger's phone number, including country code. - * This is an alphanumeric field that can include the '+' and '-' signs. * - * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters + * @param airlinePassengerPhoneNumber The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1192,11 +887,9 @@ public void setAirlinePassengerPhoneNumber(String airlinePassengerPhoneNumber) { } /** - * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 - * characters + * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters * - * @param airlinePassengerTravellerType The IATA passenger type code (PTC). * Encoding: ASCII * - * minLength: 3 characters * maxLength: 6 characters + * @param airlinePassengerTravellerType The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlinePassengerTravellerType(String airlinePassengerTravellerType) { @@ -1205,11 +898,8 @@ public AdditionalDataAirline airlinePassengerTravellerType(String airlinePasseng } /** - * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 - * characters - * - * @return airlinePassengerTravellerType The IATA passenger type code (PTC). * Encoding: ASCII * - * minLength: 3 characters * maxLength: 6 characters + * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters + * @return airlinePassengerTravellerType The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_TRAVELLER_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1218,11 +908,9 @@ public String getAirlinePassengerTravellerType() { } /** - * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 - * characters + * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters * - * @param airlinePassengerTravellerType The IATA passenger type code (PTC). * Encoding: ASCII * - * minLength: 3 characters * maxLength: 6 characters + * @param airlinePassengerTravellerType The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_TRAVELLER_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1231,15 +919,9 @@ public void setAirlinePassengerTravellerType(String airlinePassengerTravellerTyp } /** - * The passenger's name, initials, and title. * Format: last name + first name or initials + - * title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you - * send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all - * zeros. + * The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all zeros. * - * @param airlinePassengerName The passenger's name, initials, and title. * Format: last name - * + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * - * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * - * Must not be all spaces * Must not be all zeros. + * @param airlinePassengerName The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlinePassengerName(String airlinePassengerName) { @@ -1248,15 +930,8 @@ public AdditionalDataAirline airlinePassengerName(String airlinePassengerName) { } /** - * The passenger's name, initials, and title. * Format: last name + first name or initials + - * title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you - * send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all - * zeros. - * - * @return airlinePassengerName The passenger's name, initials, and title. * Format: last name - * + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * - * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * - * Must not be all spaces * Must not be all zeros. + * The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all zeros. + * @return airlinePassengerName The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1265,15 +940,9 @@ public String getAirlinePassengerName() { } /** - * The passenger's name, initials, and title. * Format: last name + first name or initials + - * title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you - * send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all - * zeros. + * The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all zeros. * - * @param airlinePassengerName The passenger's name, initials, and title. * Format: last name - * + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * - * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * - * Must not be all spaces * Must not be all zeros. + * @param airlinePassengerName The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1282,11 +951,9 @@ public void setAirlinePassengerName(String airlinePassengerName) { } /** - * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: - * 16 characters + * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters * - * @param airlineTicketIssueAddress The address of the organization that issued the ticket. * - * minLength: 0 characters * maxLength: 16 characters + * @param airlineTicketIssueAddress The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineTicketIssueAddress(String airlineTicketIssueAddress) { @@ -1295,11 +962,8 @@ public AdditionalDataAirline airlineTicketIssueAddress(String airlineTicketIssue } /** - * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: - * 16 characters - * - * @return airlineTicketIssueAddress The address of the organization that issued the ticket. * - * minLength: 0 characters * maxLength: 16 characters + * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters + * @return airlineTicketIssueAddress The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_TICKET_ISSUE_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1308,11 +972,9 @@ public String getAirlineTicketIssueAddress() { } /** - * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: - * 16 characters + * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters * - * @param airlineTicketIssueAddress The address of the organization that issued the ticket. * - * minLength: 0 characters * maxLength: 16 characters + * @param airlineTicketIssueAddress The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_TICKET_ISSUE_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1321,11 +983,9 @@ public void setAirlineTicketIssueAddress(String airlineTicketIssueAddress) { } /** - * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must - * not be all spaces * Must not be all zeros. + * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineTicketNumber The ticket's unique identifier. * minLength: 1 character * - * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * @param airlineTicketNumber The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineTicketNumber(String airlineTicketNumber) { @@ -1334,11 +994,8 @@ public AdditionalDataAirline airlineTicketNumber(String airlineTicketNumber) { } /** - * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must - * not be all spaces * Must not be all zeros. - * - * @return airlineTicketNumber The ticket's unique identifier. * minLength: 1 character * - * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * @return airlineTicketNumber The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_TICKET_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1347,11 +1004,9 @@ public String getAirlineTicketNumber() { } /** - * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must - * not be all spaces * Must not be all zeros. + * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineTicketNumber The ticket's unique identifier. * minLength: 1 character * - * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * @param airlineTicketNumber The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_TICKET_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1360,13 +1015,9 @@ public void setAirlineTicketNumber(String airlineTicketNumber) { } /** - * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * - * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * - * Must not be all zeros. + * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineTravelAgencyCode The unique identifier from IATA or ARC for the travel agency - * that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 - * characters * Must not be all spaces * Must not be all zeros. + * @param airlineTravelAgencyCode The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineTravelAgencyCode(String airlineTravelAgencyCode) { @@ -1375,13 +1026,8 @@ public AdditionalDataAirline airlineTravelAgencyCode(String airlineTravelAgencyC } /** - * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * - * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * - * Must not be all zeros. - * - * @return airlineTravelAgencyCode The unique identifier from IATA or ARC for the travel agency - * that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 - * characters * Must not be all spaces * Must not be all zeros. + * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * Must not be all zeros. + * @return airlineTravelAgencyCode The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1390,13 +1036,9 @@ public String getAirlineTravelAgencyCode() { } /** - * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * - * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * - * Must not be all zeros. + * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineTravelAgencyCode The unique identifier from IATA or ARC for the travel agency - * that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 - * characters * Must not be all spaces * Must not be all zeros. + * @param airlineTravelAgencyCode The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1405,11 +1047,9 @@ public void setAirlineTravelAgencyCode(String airlineTravelAgencyCode) { } /** - * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 - * characters * Must not be all spaces * Must not be all zeros. + * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineTravelAgencyName The name of the travel agency. * Encoding: ASCII * minLength: 1 - * character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. + * @param airlineTravelAgencyName The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineTravelAgencyName(String airlineTravelAgencyName) { @@ -1418,11 +1058,8 @@ public AdditionalDataAirline airlineTravelAgencyName(String airlineTravelAgencyN } /** - * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 - * characters * Must not be all spaces * Must not be all zeros. - * - * @return airlineTravelAgencyName The name of the travel agency. * Encoding: ASCII * minLength: 1 - * character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. + * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. + * @return airlineTravelAgencyName The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1431,11 +1068,9 @@ public String getAirlineTravelAgencyName() { } /** - * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 - * characters * Must not be all spaces * Must not be all zeros. + * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineTravelAgencyName The name of the travel agency. * Encoding: ASCII * minLength: 1 - * character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. + * @param airlineTravelAgencyName The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1443,7 +1078,9 @@ public void setAirlineTravelAgencyName(String airlineTravelAgencyName) { this.airlineTravelAgencyName = airlineTravelAgencyName; } - /** Return true if this AdditionalDataAirline object is equal to o. */ + /** + * Return true if this AdditionalDataAirline object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -1453,177 +1090,82 @@ public boolean equals(Object o) { return false; } AdditionalDataAirline additionalDataAirline = (AdditionalDataAirline) o; - return Objects.equals( - this.airlineAgencyInvoiceNumber, additionalDataAirline.airlineAgencyInvoiceNumber) - && Objects.equals(this.airlineAgencyPlanName, additionalDataAirline.airlineAgencyPlanName) - && Objects.equals(this.airlineAirlineCode, additionalDataAirline.airlineAirlineCode) - && Objects.equals( - this.airlineAirlineDesignatorCode, additionalDataAirline.airlineAirlineDesignatorCode) - && Objects.equals(this.airlineBoardingFee, additionalDataAirline.airlineBoardingFee) - && Objects.equals( - this.airlineComputerizedReservationSystem, - additionalDataAirline.airlineComputerizedReservationSystem) - && Objects.equals( - this.airlineCustomerReferenceNumber, - additionalDataAirline.airlineCustomerReferenceNumber) - && Objects.equals(this.airlineDocumentType, additionalDataAirline.airlineDocumentType) - && Objects.equals(this.airlineFlightDate, additionalDataAirline.airlineFlightDate) - && Objects.equals(this.airlineIssueDate, additionalDataAirline.airlineIssueDate) - && Objects.equals(this.airlineLegCarrierCode, additionalDataAirline.airlineLegCarrierCode) - && Objects.equals( - this.airlineLegClassOfTravel, additionalDataAirline.airlineLegClassOfTravel) - && Objects.equals(this.airlineLegDateOfTravel, additionalDataAirline.airlineLegDateOfTravel) - && Objects.equals( - this.airlineLegDepartAirport, additionalDataAirline.airlineLegDepartAirport) - && Objects.equals(this.airlineLegDepartTax, additionalDataAirline.airlineLegDepartTax) - && Objects.equals( - this.airlineLegDestinationCode, additionalDataAirline.airlineLegDestinationCode) - && Objects.equals(this.airlineLegFareBaseCode, additionalDataAirline.airlineLegFareBaseCode) - && Objects.equals(this.airlineLegFlightNumber, additionalDataAirline.airlineLegFlightNumber) - && Objects.equals(this.airlineLegStopOverCode, additionalDataAirline.airlineLegStopOverCode) - && Objects.equals( - this.airlinePassengerDateOfBirth, additionalDataAirline.airlinePassengerDateOfBirth) - && Objects.equals( - this.airlinePassengerFirstName, additionalDataAirline.airlinePassengerFirstName) - && Objects.equals( - this.airlinePassengerLastName, additionalDataAirline.airlinePassengerLastName) - && Objects.equals( - this.airlinePassengerPhoneNumber, additionalDataAirline.airlinePassengerPhoneNumber) - && Objects.equals( - this.airlinePassengerTravellerType, additionalDataAirline.airlinePassengerTravellerType) - && Objects.equals(this.airlinePassengerName, additionalDataAirline.airlinePassengerName) - && Objects.equals( - this.airlineTicketIssueAddress, additionalDataAirline.airlineTicketIssueAddress) - && Objects.equals(this.airlineTicketNumber, additionalDataAirline.airlineTicketNumber) - && Objects.equals( - this.airlineTravelAgencyCode, additionalDataAirline.airlineTravelAgencyCode) - && Objects.equals( - this.airlineTravelAgencyName, additionalDataAirline.airlineTravelAgencyName); + return Objects.equals(this.airlineAgencyInvoiceNumber, additionalDataAirline.airlineAgencyInvoiceNumber) && + Objects.equals(this.airlineAgencyPlanName, additionalDataAirline.airlineAgencyPlanName) && + Objects.equals(this.airlineAirlineCode, additionalDataAirline.airlineAirlineCode) && + Objects.equals(this.airlineAirlineDesignatorCode, additionalDataAirline.airlineAirlineDesignatorCode) && + Objects.equals(this.airlineBoardingFee, additionalDataAirline.airlineBoardingFee) && + Objects.equals(this.airlineComputerizedReservationSystem, additionalDataAirline.airlineComputerizedReservationSystem) && + Objects.equals(this.airlineCustomerReferenceNumber, additionalDataAirline.airlineCustomerReferenceNumber) && + Objects.equals(this.airlineDocumentType, additionalDataAirline.airlineDocumentType) && + Objects.equals(this.airlineFlightDate, additionalDataAirline.airlineFlightDate) && + Objects.equals(this.airlineIssueDate, additionalDataAirline.airlineIssueDate) && + Objects.equals(this.airlineLegCarrierCode, additionalDataAirline.airlineLegCarrierCode) && + Objects.equals(this.airlineLegClassOfTravel, additionalDataAirline.airlineLegClassOfTravel) && + Objects.equals(this.airlineLegDateOfTravel, additionalDataAirline.airlineLegDateOfTravel) && + Objects.equals(this.airlineLegDepartAirport, additionalDataAirline.airlineLegDepartAirport) && + Objects.equals(this.airlineLegDepartTax, additionalDataAirline.airlineLegDepartTax) && + Objects.equals(this.airlineLegDestinationCode, additionalDataAirline.airlineLegDestinationCode) && + Objects.equals(this.airlineLegFareBaseCode, additionalDataAirline.airlineLegFareBaseCode) && + Objects.equals(this.airlineLegFlightNumber, additionalDataAirline.airlineLegFlightNumber) && + Objects.equals(this.airlineLegStopOverCode, additionalDataAirline.airlineLegStopOverCode) && + Objects.equals(this.airlinePassengerDateOfBirth, additionalDataAirline.airlinePassengerDateOfBirth) && + Objects.equals(this.airlinePassengerFirstName, additionalDataAirline.airlinePassengerFirstName) && + Objects.equals(this.airlinePassengerLastName, additionalDataAirline.airlinePassengerLastName) && + Objects.equals(this.airlinePassengerPhoneNumber, additionalDataAirline.airlinePassengerPhoneNumber) && + Objects.equals(this.airlinePassengerTravellerType, additionalDataAirline.airlinePassengerTravellerType) && + Objects.equals(this.airlinePassengerName, additionalDataAirline.airlinePassengerName) && + Objects.equals(this.airlineTicketIssueAddress, additionalDataAirline.airlineTicketIssueAddress) && + Objects.equals(this.airlineTicketNumber, additionalDataAirline.airlineTicketNumber) && + Objects.equals(this.airlineTravelAgencyCode, additionalDataAirline.airlineTravelAgencyCode) && + Objects.equals(this.airlineTravelAgencyName, additionalDataAirline.airlineTravelAgencyName); } @Override public int hashCode() { - return Objects.hash( - airlineAgencyInvoiceNumber, - airlineAgencyPlanName, - airlineAirlineCode, - airlineAirlineDesignatorCode, - airlineBoardingFee, - airlineComputerizedReservationSystem, - airlineCustomerReferenceNumber, - airlineDocumentType, - airlineFlightDate, - airlineIssueDate, - airlineLegCarrierCode, - airlineLegClassOfTravel, - airlineLegDateOfTravel, - airlineLegDepartAirport, - airlineLegDepartTax, - airlineLegDestinationCode, - airlineLegFareBaseCode, - airlineLegFlightNumber, - airlineLegStopOverCode, - airlinePassengerDateOfBirth, - airlinePassengerFirstName, - airlinePassengerLastName, - airlinePassengerPhoneNumber, - airlinePassengerTravellerType, - airlinePassengerName, - airlineTicketIssueAddress, - airlineTicketNumber, - airlineTravelAgencyCode, - airlineTravelAgencyName); + return Objects.hash(airlineAgencyInvoiceNumber, airlineAgencyPlanName, airlineAirlineCode, airlineAirlineDesignatorCode, airlineBoardingFee, airlineComputerizedReservationSystem, airlineCustomerReferenceNumber, airlineDocumentType, airlineFlightDate, airlineIssueDate, airlineLegCarrierCode, airlineLegClassOfTravel, airlineLegDateOfTravel, airlineLegDepartAirport, airlineLegDepartTax, airlineLegDestinationCode, airlineLegFareBaseCode, airlineLegFlightNumber, airlineLegStopOverCode, airlinePassengerDateOfBirth, airlinePassengerFirstName, airlinePassengerLastName, airlinePassengerPhoneNumber, airlinePassengerTravellerType, airlinePassengerName, airlineTicketIssueAddress, airlineTicketNumber, airlineTravelAgencyCode, airlineTravelAgencyName); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataAirline {\n"); - sb.append(" airlineAgencyInvoiceNumber: ") - .append(toIndentedString(airlineAgencyInvoiceNumber)) - .append("\n"); - sb.append(" airlineAgencyPlanName: ") - .append(toIndentedString(airlineAgencyPlanName)) - .append("\n"); + sb.append(" airlineAgencyInvoiceNumber: ").append(toIndentedString(airlineAgencyInvoiceNumber)).append("\n"); + sb.append(" airlineAgencyPlanName: ").append(toIndentedString(airlineAgencyPlanName)).append("\n"); sb.append(" airlineAirlineCode: ").append(toIndentedString(airlineAirlineCode)).append("\n"); - sb.append(" airlineAirlineDesignatorCode: ") - .append(toIndentedString(airlineAirlineDesignatorCode)) - .append("\n"); + sb.append(" airlineAirlineDesignatorCode: ").append(toIndentedString(airlineAirlineDesignatorCode)).append("\n"); sb.append(" airlineBoardingFee: ").append(toIndentedString(airlineBoardingFee)).append("\n"); - sb.append(" airlineComputerizedReservationSystem: ") - .append(toIndentedString(airlineComputerizedReservationSystem)) - .append("\n"); - sb.append(" airlineCustomerReferenceNumber: ") - .append(toIndentedString(airlineCustomerReferenceNumber)) - .append("\n"); - sb.append(" airlineDocumentType: ") - .append(toIndentedString(airlineDocumentType)) - .append("\n"); + sb.append(" airlineComputerizedReservationSystem: ").append(toIndentedString(airlineComputerizedReservationSystem)).append("\n"); + sb.append(" airlineCustomerReferenceNumber: ").append(toIndentedString(airlineCustomerReferenceNumber)).append("\n"); + sb.append(" airlineDocumentType: ").append(toIndentedString(airlineDocumentType)).append("\n"); sb.append(" airlineFlightDate: ").append(toIndentedString(airlineFlightDate)).append("\n"); sb.append(" airlineIssueDate: ").append(toIndentedString(airlineIssueDate)).append("\n"); - sb.append(" airlineLegCarrierCode: ") - .append(toIndentedString(airlineLegCarrierCode)) - .append("\n"); - sb.append(" airlineLegClassOfTravel: ") - .append(toIndentedString(airlineLegClassOfTravel)) - .append("\n"); - sb.append(" airlineLegDateOfTravel: ") - .append(toIndentedString(airlineLegDateOfTravel)) - .append("\n"); - sb.append(" airlineLegDepartAirport: ") - .append(toIndentedString(airlineLegDepartAirport)) - .append("\n"); - sb.append(" airlineLegDepartTax: ") - .append(toIndentedString(airlineLegDepartTax)) - .append("\n"); - sb.append(" airlineLegDestinationCode: ") - .append(toIndentedString(airlineLegDestinationCode)) - .append("\n"); - sb.append(" airlineLegFareBaseCode: ") - .append(toIndentedString(airlineLegFareBaseCode)) - .append("\n"); - sb.append(" airlineLegFlightNumber: ") - .append(toIndentedString(airlineLegFlightNumber)) - .append("\n"); - sb.append(" airlineLegStopOverCode: ") - .append(toIndentedString(airlineLegStopOverCode)) - .append("\n"); - sb.append(" airlinePassengerDateOfBirth: ") - .append(toIndentedString(airlinePassengerDateOfBirth)) - .append("\n"); - sb.append(" airlinePassengerFirstName: ") - .append(toIndentedString(airlinePassengerFirstName)) - .append("\n"); - sb.append(" airlinePassengerLastName: ") - .append(toIndentedString(airlinePassengerLastName)) - .append("\n"); - sb.append(" airlinePassengerPhoneNumber: ") - .append(toIndentedString(airlinePassengerPhoneNumber)) - .append("\n"); - sb.append(" airlinePassengerTravellerType: ") - .append(toIndentedString(airlinePassengerTravellerType)) - .append("\n"); - sb.append(" airlinePassengerName: ") - .append(toIndentedString(airlinePassengerName)) - .append("\n"); - sb.append(" airlineTicketIssueAddress: ") - .append(toIndentedString(airlineTicketIssueAddress)) - .append("\n"); - sb.append(" airlineTicketNumber: ") - .append(toIndentedString(airlineTicketNumber)) - .append("\n"); - sb.append(" airlineTravelAgencyCode: ") - .append(toIndentedString(airlineTravelAgencyCode)) - .append("\n"); - sb.append(" airlineTravelAgencyName: ") - .append(toIndentedString(airlineTravelAgencyName)) - .append("\n"); + sb.append(" airlineLegCarrierCode: ").append(toIndentedString(airlineLegCarrierCode)).append("\n"); + sb.append(" airlineLegClassOfTravel: ").append(toIndentedString(airlineLegClassOfTravel)).append("\n"); + sb.append(" airlineLegDateOfTravel: ").append(toIndentedString(airlineLegDateOfTravel)).append("\n"); + sb.append(" airlineLegDepartAirport: ").append(toIndentedString(airlineLegDepartAirport)).append("\n"); + sb.append(" airlineLegDepartTax: ").append(toIndentedString(airlineLegDepartTax)).append("\n"); + sb.append(" airlineLegDestinationCode: ").append(toIndentedString(airlineLegDestinationCode)).append("\n"); + sb.append(" airlineLegFareBaseCode: ").append(toIndentedString(airlineLegFareBaseCode)).append("\n"); + sb.append(" airlineLegFlightNumber: ").append(toIndentedString(airlineLegFlightNumber)).append("\n"); + sb.append(" airlineLegStopOverCode: ").append(toIndentedString(airlineLegStopOverCode)).append("\n"); + sb.append(" airlinePassengerDateOfBirth: ").append(toIndentedString(airlinePassengerDateOfBirth)).append("\n"); + sb.append(" airlinePassengerFirstName: ").append(toIndentedString(airlinePassengerFirstName)).append("\n"); + sb.append(" airlinePassengerLastName: ").append(toIndentedString(airlinePassengerLastName)).append("\n"); + sb.append(" airlinePassengerPhoneNumber: ").append(toIndentedString(airlinePassengerPhoneNumber)).append("\n"); + sb.append(" airlinePassengerTravellerType: ").append(toIndentedString(airlinePassengerTravellerType)).append("\n"); + sb.append(" airlinePassengerName: ").append(toIndentedString(airlinePassengerName)).append("\n"); + sb.append(" airlineTicketIssueAddress: ").append(toIndentedString(airlineTicketIssueAddress)).append("\n"); + sb.append(" airlineTicketNumber: ").append(toIndentedString(airlineTicketNumber)).append("\n"); + sb.append(" airlineTravelAgencyCode: ").append(toIndentedString(airlineTravelAgencyCode)).append("\n"); + sb.append(" airlineTravelAgencyName: ").append(toIndentedString(airlineTravelAgencyName)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1632,23 +1174,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalDataAirline given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataAirline - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataAirline + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataAirline */ public static AdditionalDataAirline fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataAirline.class); } - - /** - * Convert an instance of AdditionalDataAirline to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalDataAirline to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataCarRental.java b/src/main/java/com/adyen/model/payment/AdditionalDataCarRental.java index a260323dc..2cb497260 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataCarRental.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataCarRental.java @@ -2,22 +2,31 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AdditionalDataCarRental */ + +/** + * AdditionalDataCarRental + */ @JsonPropertyOrder({ AdditionalDataCarRental.JSON_PROPERTY_CAR_RENTAL_CHECK_OUT_DATE, AdditionalDataCarRental.JSON_PROPERTY_CAR_RENTAL_CUSTOMER_SERVICE_TOLL_FREE_NUMBER, @@ -43,12 +52,12 @@ AdditionalDataCarRental.JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION, AdditionalDataCarRental.JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET }) + public class AdditionalDataCarRental { public static final String JSON_PROPERTY_CAR_RENTAL_CHECK_OUT_DATE = "carRental.checkOutDate"; private String carRentalCheckOutDate; - public static final String JSON_PROPERTY_CAR_RENTAL_CUSTOMER_SERVICE_TOLL_FREE_NUMBER = - "carRental.customerServiceTollFreeNumber"; + public static final String JSON_PROPERTY_CAR_RENTAL_CUSTOMER_SERVICE_TOLL_FREE_NUMBER = "carRental.customerServiceTollFreeNumber"; private String carRentalCustomerServiceTollFreeNumber; public static final String JSON_PROPERTY_CAR_RENTAL_DAYS_RENTED = "carRental.daysRented"; @@ -57,27 +66,22 @@ public class AdditionalDataCarRental { public static final String JSON_PROPERTY_CAR_RENTAL_FUEL_CHARGES = "carRental.fuelCharges"; private String carRentalFuelCharges; - public static final String JSON_PROPERTY_CAR_RENTAL_INSURANCE_CHARGES = - "carRental.insuranceCharges"; + public static final String JSON_PROPERTY_CAR_RENTAL_INSURANCE_CHARGES = "carRental.insuranceCharges"; private String carRentalInsuranceCharges; public static final String JSON_PROPERTY_CAR_RENTAL_LOCATION_CITY = "carRental.locationCity"; private String carRentalLocationCity; - public static final String JSON_PROPERTY_CAR_RENTAL_LOCATION_COUNTRY = - "carRental.locationCountry"; + public static final String JSON_PROPERTY_CAR_RENTAL_LOCATION_COUNTRY = "carRental.locationCountry"; private String carRentalLocationCountry; - public static final String JSON_PROPERTY_CAR_RENTAL_LOCATION_STATE_PROVINCE = - "carRental.locationStateProvince"; + public static final String JSON_PROPERTY_CAR_RENTAL_LOCATION_STATE_PROVINCE = "carRental.locationStateProvince"; private String carRentalLocationStateProvince; - public static final String JSON_PROPERTY_CAR_RENTAL_NO_SHOW_INDICATOR = - "carRental.noShowIndicator"; + public static final String JSON_PROPERTY_CAR_RENTAL_NO_SHOW_INDICATOR = "carRental.noShowIndicator"; private String carRentalNoShowIndicator; - public static final String JSON_PROPERTY_CAR_RENTAL_ONE_WAY_DROP_OFF_CHARGES = - "carRental.oneWayDropOffCharges"; + public static final String JSON_PROPERTY_CAR_RENTAL_ONE_WAY_DROP_OFF_CHARGES = "carRental.oneWayDropOffCharges"; private String carRentalOneWayDropOffCharges; public static final String JSON_PROPERTY_CAR_RENTAL_RATE = "carRental.rate"; @@ -86,8 +90,7 @@ public class AdditionalDataCarRental { public static final String JSON_PROPERTY_CAR_RENTAL_RATE_INDICATOR = "carRental.rateIndicator"; private String carRentalRateIndicator; - public static final String JSON_PROPERTY_CAR_RENTAL_RENTAL_AGREEMENT_NUMBER = - "carRental.rentalAgreementNumber"; + public static final String JSON_PROPERTY_CAR_RENTAL_RENTAL_AGREEMENT_NUMBER = "carRental.rentalAgreementNumber"; private String carRentalRentalAgreementNumber; public static final String JSON_PROPERTY_CAR_RENTAL_RENTAL_CLASS_ID = "carRental.rentalClassId"; @@ -105,27 +108,23 @@ public class AdditionalDataCarRental { public static final String JSON_PROPERTY_CAR_RENTAL_RETURN_DATE = "carRental.returnDate"; private String carRentalReturnDate; - public static final String JSON_PROPERTY_CAR_RENTAL_RETURN_LOCATION_ID = - "carRental.returnLocationId"; + public static final String JSON_PROPERTY_CAR_RENTAL_RETURN_LOCATION_ID = "carRental.returnLocationId"; private String carRentalReturnLocationId; - public static final String JSON_PROPERTY_CAR_RENTAL_RETURN_STATE_PROVINCE = - "carRental.returnStateProvince"; + public static final String JSON_PROPERTY_CAR_RENTAL_RETURN_STATE_PROVINCE = "carRental.returnStateProvince"; private String carRentalReturnStateProvince; - public static final String JSON_PROPERTY_CAR_RENTAL_TAX_EXEMPT_INDICATOR = - "carRental.taxExemptIndicator"; + public static final String JSON_PROPERTY_CAR_RENTAL_TAX_EXEMPT_INDICATOR = "carRental.taxExemptIndicator"; private String carRentalTaxExemptIndicator; - public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION = - "travelEntertainmentAuthData.duration"; + public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION = "travelEntertainmentAuthData.duration"; private String travelEntertainmentAuthDataDuration; - public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET = - "travelEntertainmentAuthData.market"; + public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET = "travelEntertainmentAuthData.market"; private String travelEntertainmentAuthDataMarket; - public AdditionalDataCarRental() {} + public AdditionalDataCarRental() { + } /** * The pick-up date. * Date format: `yyyyMMdd` @@ -140,7 +139,6 @@ public AdditionalDataCarRental carRentalCheckOutDate(String carRentalCheckOutDat /** * The pick-up date. * Date format: `yyyyMMdd` - * * @return carRentalCheckOutDate The pick-up date. * Date format: `yyyyMMdd` */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_CHECK_OUT_DATE) @@ -161,31 +159,19 @@ public void setCarRentalCheckOutDate(String carRentalCheckOutDate) { } /** - * The customer service phone number of the car rental company. * Format: Alphanumeric * - * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a - * space * Must not contain any special characters such as + or - *Must not be all zeros. + * The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. * - * @param carRentalCustomerServiceTollFreeNumber The customer service phone number of the car - * rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 - * characters in length * Must not start with a space * Must not contain any special - * characters such as + or - *Must not be all zeros. + * @param carRentalCustomerServiceTollFreeNumber The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ - public AdditionalDataCarRental carRentalCustomerServiceTollFreeNumber( - String carRentalCustomerServiceTollFreeNumber) { + public AdditionalDataCarRental carRentalCustomerServiceTollFreeNumber(String carRentalCustomerServiceTollFreeNumber) { this.carRentalCustomerServiceTollFreeNumber = carRentalCustomerServiceTollFreeNumber; return this; } /** - * The customer service phone number of the car rental company. * Format: Alphanumeric * - * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a - * space * Must not contain any special characters such as + or - *Must not be all zeros. - * - * @return carRentalCustomerServiceTollFreeNumber The customer service phone number of the car - * rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 - * characters in length * Must not start with a space * Must not contain any special - * characters such as + or - *Must not be all zeros. + * The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. + * @return carRentalCustomerServiceTollFreeNumber The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_CUSTOMER_SERVICE_TOLL_FREE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,28 +180,20 @@ public String getCarRentalCustomerServiceTollFreeNumber() { } /** - * The customer service phone number of the car rental company. * Format: Alphanumeric * - * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a - * space * Must not contain any special characters such as + or - *Must not be all zeros. + * The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. * - * @param carRentalCustomerServiceTollFreeNumber The customer service phone number of the car - * rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 - * characters in length * Must not start with a space * Must not contain any special - * characters such as + or - *Must not be all zeros. + * @param carRentalCustomerServiceTollFreeNumber The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_CUSTOMER_SERVICE_TOLL_FREE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCarRentalCustomerServiceTollFreeNumber( - String carRentalCustomerServiceTollFreeNumber) { + public void setCarRentalCustomerServiceTollFreeNumber(String carRentalCustomerServiceTollFreeNumber) { this.carRentalCustomerServiceTollFreeNumber = carRentalCustomerServiceTollFreeNumber; } /** - * Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not - * be all spaces + * Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not be all spaces * - * @param carRentalDaysRented Number of days for which the car is being rented. * Format: Numeric - * * maxLength: 4 * Must not be all spaces + * @param carRentalDaysRented Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not be all spaces * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalDaysRented(String carRentalDaysRented) { @@ -224,11 +202,8 @@ public AdditionalDataCarRental carRentalDaysRented(String carRentalDaysRented) { } /** - * Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not - * be all spaces - * - * @return carRentalDaysRented Number of days for which the car is being rented. * Format: Numeric - * * maxLength: 4 * Must not be all spaces + * Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not be all spaces + * @return carRentalDaysRented Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not be all spaces */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_DAYS_RENTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,11 +212,9 @@ public String getCarRentalDaysRented() { } /** - * Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not - * be all spaces + * Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not be all spaces * - * @param carRentalDaysRented Number of days for which the car is being rented. * Format: Numeric - * * maxLength: 4 * Must not be all spaces + * @param carRentalDaysRented Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not be all spaces */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_DAYS_RENTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,13 +223,9 @@ public void setCarRentalDaysRented(String carRentalDaysRented) { } /** - * Any fuel charges associated with the rental, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * - * maxLength: 12 + * Any fuel charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * - * @param carRentalFuelCharges Any fuel charges associated with the rental, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * - * maxLength: 12 + * @param carRentalFuelCharges Any fuel charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalFuelCharges(String carRentalFuelCharges) { @@ -265,13 +234,8 @@ public AdditionalDataCarRental carRentalFuelCharges(String carRentalFuelCharges) } /** - * Any fuel charges associated with the rental, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * - * maxLength: 12 - * - * @return carRentalFuelCharges Any fuel charges associated with the rental, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * - * maxLength: 12 + * Any fuel charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 + * @return carRentalFuelCharges Any fuel charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_FUEL_CHARGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -280,13 +244,9 @@ public String getCarRentalFuelCharges() { } /** - * Any fuel charges associated with the rental, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * - * maxLength: 12 + * Any fuel charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * - * @param carRentalFuelCharges Any fuel charges associated with the rental, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * - * maxLength: 12 + * @param carRentalFuelCharges Any fuel charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_FUEL_CHARGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -295,13 +255,9 @@ public void setCarRentalFuelCharges(String carRentalFuelCharges) { } /** - * Any insurance charges associated with the rental, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * - * maxLength: 12 * Must not be all spaces *Must not be all zeros. + * Any insurance charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * Must not be all spaces *Must not be all zeros. * - * @param carRentalInsuranceCharges Any insurance charges associated with the rental, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * - * maxLength: 12 * Must not be all spaces *Must not be all zeros. + * @param carRentalInsuranceCharges Any insurance charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * Must not be all spaces *Must not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalInsuranceCharges(String carRentalInsuranceCharges) { @@ -310,13 +266,8 @@ public AdditionalDataCarRental carRentalInsuranceCharges(String carRentalInsuran } /** - * Any insurance charges associated with the rental, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * - * maxLength: 12 * Must not be all spaces *Must not be all zeros. - * - * @return carRentalInsuranceCharges Any insurance charges associated with the rental, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * - * maxLength: 12 * Must not be all spaces *Must not be all zeros. + * Any insurance charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * Must not be all spaces *Must not be all zeros. + * @return carRentalInsuranceCharges Any insurance charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * Must not be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_INSURANCE_CHARGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -325,13 +276,9 @@ public String getCarRentalInsuranceCharges() { } /** - * Any insurance charges associated with the rental, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * - * maxLength: 12 * Must not be all spaces *Must not be all zeros. + * Any insurance charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * Must not be all spaces *Must not be all zeros. * - * @param carRentalInsuranceCharges Any insurance charges associated with the rental, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * - * maxLength: 12 * Must not be all spaces *Must not be all zeros. + * @param carRentalInsuranceCharges Any insurance charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * Must not be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_INSURANCE_CHARGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -340,11 +287,9 @@ public void setCarRentalInsuranceCharges(String carRentalInsuranceCharges) { } /** - * The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with - * a space or be all spaces *Must not be all zeros. + * The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalLocationCity The city where the car is rented. * Format: Alphanumeric * - * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalLocationCity The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalLocationCity(String carRentalLocationCity) { @@ -353,11 +298,8 @@ public AdditionalDataCarRental carRentalLocationCity(String carRentalLocationCit } /** - * The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with - * a space or be all spaces *Must not be all zeros. - * - * @return carRentalLocationCity The city where the car is rented. * Format: Alphanumeric * - * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * @return carRentalLocationCity The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_LOCATION_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -366,11 +308,9 @@ public String getCarRentalLocationCity() { } /** - * The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with - * a space or be all spaces *Must not be all zeros. + * The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalLocationCity The city where the car is rented. * Format: Alphanumeric * - * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalLocationCity The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_LOCATION_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -379,13 +319,9 @@ public void setCarRentalLocationCity(String carRentalLocationCity) { } /** - * The country where the car is rented, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * - * maxLength: 2 + * The country where the car is rented, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 * - * @param carRentalLocationCountry The country where the car is rented, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * - * maxLength: 2 + * @param carRentalLocationCountry The country where the car is rented, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalLocationCountry(String carRentalLocationCountry) { @@ -394,13 +330,8 @@ public AdditionalDataCarRental carRentalLocationCountry(String carRentalLocation } /** - * The country where the car is rented, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * - * maxLength: 2 - * - * @return carRentalLocationCountry The country where the car is rented, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * - * maxLength: 2 + * The country where the car is rented, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 + * @return carRentalLocationCountry The country where the car is rented, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_LOCATION_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -409,13 +340,9 @@ public String getCarRentalLocationCountry() { } /** - * The country where the car is rented, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * - * maxLength: 2 + * The country where the car is rented, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 * - * @param carRentalLocationCountry The country where the car is rented, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * - * maxLength: 2 + * @param carRentalLocationCountry The country where the car is rented, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_LOCATION_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -424,27 +351,19 @@ public void setCarRentalLocationCountry(String carRentalLocationCountry) { } /** - * The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not - * start with a space or be all spaces *Must not be all zeros. + * The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalLocationStateProvince The state or province where the car is rented. * Format: - * Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all - * zeros. + * @param carRentalLocationStateProvince The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ - public AdditionalDataCarRental carRentalLocationStateProvince( - String carRentalLocationStateProvince) { + public AdditionalDataCarRental carRentalLocationStateProvince(String carRentalLocationStateProvince) { this.carRentalLocationStateProvince = carRentalLocationStateProvince; return this; } /** - * The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not - * start with a space or be all spaces *Must not be all zeros. - * - * @return carRentalLocationStateProvince The state or province where the car is rented. * Format: - * Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all - * zeros. + * The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all zeros. + * @return carRentalLocationStateProvince The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_LOCATION_STATE_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -453,12 +372,9 @@ public String getCarRentalLocationStateProvince() { } /** - * The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not - * start with a space or be all spaces *Must not be all zeros. + * The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalLocationStateProvince The state or province where the car is rented. * Format: - * Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all - * zeros. + * @param carRentalLocationStateProvince The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_LOCATION_STATE_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -467,11 +383,9 @@ public void setCarRentalLocationStateProvince(String carRentalLocationStateProvi } /** - * Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up - * their car * N - Not applicable + * Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up their car * N - Not applicable * - * @param carRentalNoShowIndicator Indicates if the customer didn't pick up their rental car. - * * Y - Customer did not pick up their car * N - Not applicable + * @param carRentalNoShowIndicator Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up their car * N - Not applicable * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalNoShowIndicator(String carRentalNoShowIndicator) { @@ -480,11 +394,8 @@ public AdditionalDataCarRental carRentalNoShowIndicator(String carRentalNoShowIn } /** - * Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up - * their car * N - Not applicable - * - * @return carRentalNoShowIndicator Indicates if the customer didn't pick up their rental car. - * * Y - Customer did not pick up their car * N - Not applicable + * Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up their car * N - Not applicable + * @return carRentalNoShowIndicator Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up their car * N - Not applicable */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_NO_SHOW_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -493,11 +404,9 @@ public String getCarRentalNoShowIndicator() { } /** - * Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up - * their car * N - Not applicable + * Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up their car * N - Not applicable * - * @param carRentalNoShowIndicator Indicates if the customer didn't pick up their rental car. - * * Y - Customer did not pick up their car * N - Not applicable + * @param carRentalNoShowIndicator Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up their car * N - Not applicable */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_NO_SHOW_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -506,27 +415,19 @@ public void setCarRentalNoShowIndicator(String carRentalNoShowIndicator) { } /** - * The charge for not returning a car to the original rental location, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 + * The charge for not returning a car to the original rental location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 * - * @param carRentalOneWayDropOffCharges The charge for not returning a car to the original rental - * location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * maxLength: 12 + * @param carRentalOneWayDropOffCharges The charge for not returning a car to the original rental location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ - public AdditionalDataCarRental carRentalOneWayDropOffCharges( - String carRentalOneWayDropOffCharges) { + public AdditionalDataCarRental carRentalOneWayDropOffCharges(String carRentalOneWayDropOffCharges) { this.carRentalOneWayDropOffCharges = carRentalOneWayDropOffCharges; return this; } /** - * The charge for not returning a car to the original rental location, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 - * - * @return carRentalOneWayDropOffCharges The charge for not returning a car to the original rental - * location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * maxLength: 12 + * The charge for not returning a car to the original rental location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 + * @return carRentalOneWayDropOffCharges The charge for not returning a car to the original rental location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_ONE_WAY_DROP_OFF_CHARGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -535,12 +436,9 @@ public String getCarRentalOneWayDropOffCharges() { } /** - * The charge for not returning a car to the original rental location, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 + * The charge for not returning a car to the original rental location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 * - * @param carRentalOneWayDropOffCharges The charge for not returning a car to the original rental - * location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * maxLength: 12 + * @param carRentalOneWayDropOffCharges The charge for not returning a car to the original rental location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_ONE_WAY_DROP_OFF_CHARGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -549,13 +447,9 @@ public void setCarRentalOneWayDropOffCharges(String carRentalOneWayDropOffCharge } /** - * The daily rental rate, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * - * maxLength: 12 + * The daily rental rate, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * maxLength: 12 * - * @param carRentalRate The daily rental rate, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric - * * maxLength: 12 + * @param carRentalRate The daily rental rate, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * maxLength: 12 * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalRate(String carRentalRate) { @@ -564,13 +458,8 @@ public AdditionalDataCarRental carRentalRate(String carRentalRate) { } /** - * The daily rental rate, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * - * maxLength: 12 - * - * @return carRentalRate The daily rental rate, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric - * * maxLength: 12 + * The daily rental rate, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * maxLength: 12 + * @return carRentalRate The daily rental rate, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * maxLength: 12 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -579,13 +468,9 @@ public String getCarRentalRate() { } /** - * The daily rental rate, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * - * maxLength: 12 + * The daily rental rate, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * maxLength: 12 * - * @param carRentalRate The daily rental rate, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric - * * maxLength: 12 + * @param carRentalRate The daily rental rate, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * maxLength: 12 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -596,8 +481,7 @@ public void setCarRentalRate(String carRentalRate) { /** * Specifies whether the given rate is applied daily or weekly. * D - Daily rate * W - Weekly rate * - * @param carRentalRateIndicator Specifies whether the given rate is applied daily or weekly. * D - * - Daily rate * W - Weekly rate + * @param carRentalRateIndicator Specifies whether the given rate is applied daily or weekly. * D - Daily rate * W - Weekly rate * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalRateIndicator(String carRentalRateIndicator) { @@ -607,9 +491,7 @@ public AdditionalDataCarRental carRentalRateIndicator(String carRentalRateIndica /** * Specifies whether the given rate is applied daily or weekly. * D - Daily rate * W - Weekly rate - * - * @return carRentalRateIndicator Specifies whether the given rate is applied daily or weekly. * D - * - Daily rate * W - Weekly rate + * @return carRentalRateIndicator Specifies whether the given rate is applied daily or weekly. * D - Daily rate * W - Weekly rate */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RATE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -620,8 +502,7 @@ public String getCarRentalRateIndicator() { /** * Specifies whether the given rate is applied daily or weekly. * D - Daily rate * W - Weekly rate * - * @param carRentalRateIndicator Specifies whether the given rate is applied daily or weekly. * D - * - Daily rate * W - Weekly rate + * @param carRentalRateIndicator Specifies whether the given rate is applied daily or weekly. * D - Daily rate * W - Weekly rate */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RATE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -630,27 +511,19 @@ public void setCarRentalRateIndicator(String carRentalRateIndicator) { } /** - * The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must - * not start with a space or be all spaces *Must not be all zeros. + * The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalRentalAgreementNumber The rental agreement number for the car rental. * Format: - * Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all - * zeros. + * @param carRentalRentalAgreementNumber The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ - public AdditionalDataCarRental carRentalRentalAgreementNumber( - String carRentalRentalAgreementNumber) { + public AdditionalDataCarRental carRentalRentalAgreementNumber(String carRentalRentalAgreementNumber) { this.carRentalRentalAgreementNumber = carRentalRentalAgreementNumber; return this; } /** - * The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must - * not start with a space or be all spaces *Must not be all zeros. - * - * @return carRentalRentalAgreementNumber The rental agreement number for the car rental. * - * Format: Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must - * not be all zeros. + * The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all zeros. + * @return carRentalRentalAgreementNumber The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RENTAL_AGREEMENT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -659,12 +532,9 @@ public String getCarRentalRentalAgreementNumber() { } /** - * The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must - * not start with a space or be all spaces *Must not be all zeros. + * The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalRentalAgreementNumber The rental agreement number for the car rental. * Format: - * Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all - * zeros. + * @param carRentalRentalAgreementNumber The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RENTAL_AGREEMENT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -673,11 +543,9 @@ public void setCarRentalRentalAgreementNumber(String carRentalRentalAgreementNum } /** - * The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start - * with a space or be all spaces *Must not be all zeros. + * The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalRentalClassId The classification of the rental car. * Format: Alphanumeric * - * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalRentalClassId The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalRentalClassId(String carRentalRentalClassId) { @@ -686,11 +554,8 @@ public AdditionalDataCarRental carRentalRentalClassId(String carRentalRentalClas } /** - * The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start - * with a space or be all spaces *Must not be all zeros. - * - * @return carRentalRentalClassId The classification of the rental car. * Format: Alphanumeric * - * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. + * The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. + * @return carRentalRentalClassId The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RENTAL_CLASS_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -699,11 +564,9 @@ public String getCarRentalRentalClassId() { } /** - * The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start - * with a space or be all spaces *Must not be all zeros. + * The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalRentalClassId The classification of the rental car. * Format: Alphanumeric * - * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalRentalClassId The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RENTAL_CLASS_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -712,13 +575,9 @@ public void setCarRentalRentalClassId(String carRentalRentalClassId) { } /** - * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send - * more than 26 characters, the name is truncated * Must not start with a space or be all spaces - * *Must not be all zeros. + * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalRenterName The name of the person renting the car. * Format: Alphanumeric * - * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start - * with a space or be all spaces *Must not be all zeros. + * @param carRentalRenterName The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start with a space or be all spaces *Must not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalRenterName(String carRentalRenterName) { @@ -727,13 +586,8 @@ public AdditionalDataCarRental carRentalRenterName(String carRentalRenterName) { } /** - * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send - * more than 26 characters, the name is truncated * Must not start with a space or be all spaces - * *Must not be all zeros. - * - * @return carRentalRenterName The name of the person renting the car. * Format: Alphanumeric * - * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start - * with a space or be all spaces *Must not be all zeros. + * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start with a space or be all spaces *Must not be all zeros. + * @return carRentalRenterName The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RENTER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -742,13 +596,9 @@ public String getCarRentalRenterName() { } /** - * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send - * more than 26 characters, the name is truncated * Must not start with a space or be all spaces - * *Must not be all zeros. + * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalRenterName The name of the person renting the car. * Format: Alphanumeric * - * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start - * with a space or be all spaces *Must not be all zeros. + * @param carRentalRenterName The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RENTER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -757,11 +607,9 @@ public void setCarRentalRenterName(String carRentalRenterName) { } /** - * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not - * start with a space or be all spaces *Must not be all zeros. + * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalReturnCity The city where the car must be returned. * Format: Alphanumeric * - * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalReturnCity The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalReturnCity(String carRentalReturnCity) { @@ -770,11 +618,8 @@ public AdditionalDataCarRental carRentalReturnCity(String carRentalReturnCity) { } /** - * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not - * start with a space or be all spaces *Must not be all zeros. - * - * @return carRentalReturnCity The city where the car must be returned. * Format: Alphanumeric * - * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * @return carRentalReturnCity The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -783,11 +628,9 @@ public String getCarRentalReturnCity() { } /** - * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not - * start with a space or be all spaces *Must not be all zeros. + * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalReturnCity The city where the car must be returned. * Format: Alphanumeric * - * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalReturnCity The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -796,13 +639,9 @@ public void setCarRentalReturnCity(String carRentalReturnCity) { } /** - * The country where the car must be returned, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * - * maxLength: 2 + * The country where the car must be returned, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 * - * @param carRentalReturnCountry The country where the car must be returned, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * - * maxLength: 2 + * @param carRentalReturnCountry The country where the car must be returned, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalReturnCountry(String carRentalReturnCountry) { @@ -811,13 +650,8 @@ public AdditionalDataCarRental carRentalReturnCountry(String carRentalReturnCoun } /** - * The country where the car must be returned, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * - * maxLength: 2 - * - * @return carRentalReturnCountry The country where the car must be returned, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * - * maxLength: 2 + * The country where the car must be returned, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 + * @return carRentalReturnCountry The country where the car must be returned, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -826,13 +660,9 @@ public String getCarRentalReturnCountry() { } /** - * The country where the car must be returned, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * - * maxLength: 2 + * The country where the car must be returned, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 * - * @param carRentalReturnCountry The country where the car must be returned, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * - * maxLength: 2 + * @param carRentalReturnCountry The country where the car must be returned, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -843,8 +673,7 @@ public void setCarRentalReturnCountry(String carRentalReturnCountry) { /** * The last date to return the car by. * Date format: `yyyyMMdd` * maxLength: 8 * - * @param carRentalReturnDate The last date to return the car by. * Date format: - * `yyyyMMdd` * maxLength: 8 + * @param carRentalReturnDate The last date to return the car by. * Date format: `yyyyMMdd` * maxLength: 8 * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalReturnDate(String carRentalReturnDate) { @@ -854,9 +683,7 @@ public AdditionalDataCarRental carRentalReturnDate(String carRentalReturnDate) { /** * The last date to return the car by. * Date format: `yyyyMMdd` * maxLength: 8 - * - * @return carRentalReturnDate The last date to return the car by. * Date format: - * `yyyyMMdd` * maxLength: 8 + * @return carRentalReturnDate The last date to return the car by. * Date format: `yyyyMMdd` * maxLength: 8 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -867,8 +694,7 @@ public String getCarRentalReturnDate() { /** * The last date to return the car by. * Date format: `yyyyMMdd` * maxLength: 8 * - * @param carRentalReturnDate The last date to return the car by. * Date format: - * `yyyyMMdd` * maxLength: 8 + * @param carRentalReturnDate The last date to return the car by. * Date format: `yyyyMMdd` * maxLength: 8 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -877,12 +703,9 @@ public void setCarRentalReturnDate(String carRentalReturnDate) { } /** - * The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * - * Must not start with a space or be all spaces *Must not be all zeros. + * The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalReturnLocationId The agency code, phone number, or address abbreviation * - * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must - * not be all zeros. + * @param carRentalReturnLocationId The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalReturnLocationId(String carRentalReturnLocationId) { @@ -891,12 +714,8 @@ public AdditionalDataCarRental carRentalReturnLocationId(String carRentalReturnL } /** - * The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * - * Must not start with a space or be all spaces *Must not be all zeros. - * - * @return carRentalReturnLocationId The agency code, phone number, or address abbreviation * - * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must - * not be all zeros. + * The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must not be all zeros. + * @return carRentalReturnLocationId The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -905,12 +724,9 @@ public String getCarRentalReturnLocationId() { } /** - * The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * - * Must not start with a space or be all spaces *Must not be all zeros. + * The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalReturnLocationId The agency code, phone number, or address abbreviation * - * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must - * not be all zeros. + * @param carRentalReturnLocationId The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -919,12 +735,9 @@ public void setCarRentalReturnLocationId(String carRentalReturnLocationId) { } /** - * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * - * Must not start with a space or be all spaces *Must not be all zeros. + * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalReturnStateProvince The state or province where the car must be returned. * - * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must - * not be all zeros. + * @param carRentalReturnStateProvince The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalReturnStateProvince(String carRentalReturnStateProvince) { @@ -933,12 +746,8 @@ public AdditionalDataCarRental carRentalReturnStateProvince(String carRentalRetu } /** - * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * - * Must not start with a space or be all spaces *Must not be all zeros. - * - * @return carRentalReturnStateProvince The state or province where the car must be returned. * - * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must - * not be all zeros. + * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must not be all zeros. + * @return carRentalReturnStateProvince The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_STATE_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -947,12 +756,9 @@ public String getCarRentalReturnStateProvince() { } /** - * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * - * Must not start with a space or be all spaces *Must not be all zeros. + * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalReturnStateProvince The state or province where the car must be returned. * - * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must - * not be all zeros. + * @param carRentalReturnStateProvince The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_STATE_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -961,12 +767,9 @@ public void setCarRentalReturnStateProvince(String carRentalReturnStateProvince) } /** - * Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y - * - Goods or services were tax exempt * N - Tax was not collected + * Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not collected * - * @param carRentalTaxExemptIndicator Indicates if the goods or services were tax-exempt, or if - * tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not - * collected + * @param carRentalTaxExemptIndicator Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not collected * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalTaxExemptIndicator(String carRentalTaxExemptIndicator) { @@ -975,12 +778,8 @@ public AdditionalDataCarRental carRentalTaxExemptIndicator(String carRentalTaxEx } /** - * Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y - * - Goods or services were tax exempt * N - Tax was not collected - * - * @return carRentalTaxExemptIndicator Indicates if the goods or services were tax-exempt, or if - * tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not - * collected + * Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not collected + * @return carRentalTaxExemptIndicator Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not collected */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_TAX_EXEMPT_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -989,12 +788,9 @@ public String getCarRentalTaxExemptIndicator() { } /** - * Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y - * - Goods or services were tax exempt * N - Tax was not collected + * Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not collected * - * @param carRentalTaxExemptIndicator Indicates if the goods or services were tax-exempt, or if - * tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not - * collected + * @param carRentalTaxExemptIndicator Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not collected */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_TAX_EXEMPT_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1003,25 +799,19 @@ public void setCarRentalTaxExemptIndicator(String carRentalTaxExemptIndicator) { } /** - * Number of days the car is rented for. This should be included in the auth message. * Format: - * Numeric * maxLength: 4 + * Number of days the car is rented for. This should be included in the auth message. * Format: Numeric * maxLength: 4 * - * @param travelEntertainmentAuthDataDuration Number of days the car is rented for. This should be - * included in the auth message. * Format: Numeric * maxLength: 4 + * @param travelEntertainmentAuthDataDuration Number of days the car is rented for. This should be included in the auth message. * Format: Numeric * maxLength: 4 * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ - public AdditionalDataCarRental travelEntertainmentAuthDataDuration( - String travelEntertainmentAuthDataDuration) { + public AdditionalDataCarRental travelEntertainmentAuthDataDuration(String travelEntertainmentAuthDataDuration) { this.travelEntertainmentAuthDataDuration = travelEntertainmentAuthDataDuration; return this; } /** - * Number of days the car is rented for. This should be included in the auth message. * Format: - * Numeric * maxLength: 4 - * - * @return travelEntertainmentAuthDataDuration Number of days the car is rented for. This should - * be included in the auth message. * Format: Numeric * maxLength: 4 + * Number of days the car is rented for. This should be included in the auth message. * Format: Numeric * maxLength: 4 + * @return travelEntertainmentAuthDataDuration Number of days the car is rented for. This should be included in the auth message. * Format: Numeric * maxLength: 4 */ @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1030,11 +820,9 @@ public String getTravelEntertainmentAuthDataDuration() { } /** - * Number of days the car is rented for. This should be included in the auth message. * Format: - * Numeric * maxLength: 4 + * Number of days the car is rented for. This should be included in the auth message. * Format: Numeric * maxLength: 4 * - * @param travelEntertainmentAuthDataDuration Number of days the car is rented for. This should be - * included in the auth message. * Format: Numeric * maxLength: 4 + * @param travelEntertainmentAuthDataDuration Number of days the car is rented for. This should be included in the auth message. * Format: Numeric * maxLength: 4 */ @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1043,29 +831,19 @@ public void setTravelEntertainmentAuthDataDuration(String travelEntertainmentAut } /** - * Indicates what market-specific dataset will be submitted or is being submitted. Value should be - * 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric - * * maxLength: 1 + * Indicates what market-specific dataset will be submitted or is being submitted. Value should be 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 * - * @param travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be - * submitted or is being submitted. Value should be 'A' for car rental. This should be - * included in the auth message. * Format: Alphanumeric * maxLength: 1 + * @param travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be submitted or is being submitted. Value should be 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ - public AdditionalDataCarRental travelEntertainmentAuthDataMarket( - String travelEntertainmentAuthDataMarket) { + public AdditionalDataCarRental travelEntertainmentAuthDataMarket(String travelEntertainmentAuthDataMarket) { this.travelEntertainmentAuthDataMarket = travelEntertainmentAuthDataMarket; return this; } /** - * Indicates what market-specific dataset will be submitted or is being submitted. Value should be - * 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric - * * maxLength: 1 - * - * @return travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be - * submitted or is being submitted. Value should be 'A' for car rental. This should be - * included in the auth message. * Format: Alphanumeric * maxLength: 1 + * Indicates what market-specific dataset will be submitted or is being submitted. Value should be 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 + * @return travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be submitted or is being submitted. Value should be 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 */ @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1074,13 +852,9 @@ public String getTravelEntertainmentAuthDataMarket() { } /** - * Indicates what market-specific dataset will be submitted or is being submitted. Value should be - * 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric - * * maxLength: 1 + * Indicates what market-specific dataset will be submitted or is being submitted. Value should be 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 * - * @param travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be - * submitted or is being submitted. Value should be 'A' for car rental. This should be - * included in the auth message. * Format: Alphanumeric * maxLength: 1 + * @param travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be submitted or is being submitted. Value should be 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 */ @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1088,7 +862,9 @@ public void setTravelEntertainmentAuthDataMarket(String travelEntertainmentAuthD this.travelEntertainmentAuthDataMarket = travelEntertainmentAuthDataMarket; } - /** Return true if this AdditionalDataCarRental object is equal to o. */ + /** + * Return true if this AdditionalDataCarRental object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -1098,157 +874,70 @@ public boolean equals(Object o) { return false; } AdditionalDataCarRental additionalDataCarRental = (AdditionalDataCarRental) o; - return Objects.equals(this.carRentalCheckOutDate, additionalDataCarRental.carRentalCheckOutDate) - && Objects.equals( - this.carRentalCustomerServiceTollFreeNumber, - additionalDataCarRental.carRentalCustomerServiceTollFreeNumber) - && Objects.equals(this.carRentalDaysRented, additionalDataCarRental.carRentalDaysRented) - && Objects.equals(this.carRentalFuelCharges, additionalDataCarRental.carRentalFuelCharges) - && Objects.equals( - this.carRentalInsuranceCharges, additionalDataCarRental.carRentalInsuranceCharges) - && Objects.equals(this.carRentalLocationCity, additionalDataCarRental.carRentalLocationCity) - && Objects.equals( - this.carRentalLocationCountry, additionalDataCarRental.carRentalLocationCountry) - && Objects.equals( - this.carRentalLocationStateProvince, - additionalDataCarRental.carRentalLocationStateProvince) - && Objects.equals( - this.carRentalNoShowIndicator, additionalDataCarRental.carRentalNoShowIndicator) - && Objects.equals( - this.carRentalOneWayDropOffCharges, - additionalDataCarRental.carRentalOneWayDropOffCharges) - && Objects.equals(this.carRentalRate, additionalDataCarRental.carRentalRate) - && Objects.equals( - this.carRentalRateIndicator, additionalDataCarRental.carRentalRateIndicator) - && Objects.equals( - this.carRentalRentalAgreementNumber, - additionalDataCarRental.carRentalRentalAgreementNumber) - && Objects.equals( - this.carRentalRentalClassId, additionalDataCarRental.carRentalRentalClassId) - && Objects.equals(this.carRentalRenterName, additionalDataCarRental.carRentalRenterName) - && Objects.equals(this.carRentalReturnCity, additionalDataCarRental.carRentalReturnCity) - && Objects.equals( - this.carRentalReturnCountry, additionalDataCarRental.carRentalReturnCountry) - && Objects.equals(this.carRentalReturnDate, additionalDataCarRental.carRentalReturnDate) - && Objects.equals( - this.carRentalReturnLocationId, additionalDataCarRental.carRentalReturnLocationId) - && Objects.equals( - this.carRentalReturnStateProvince, additionalDataCarRental.carRentalReturnStateProvince) - && Objects.equals( - this.carRentalTaxExemptIndicator, additionalDataCarRental.carRentalTaxExemptIndicator) - && Objects.equals( - this.travelEntertainmentAuthDataDuration, - additionalDataCarRental.travelEntertainmentAuthDataDuration) - && Objects.equals( - this.travelEntertainmentAuthDataMarket, - additionalDataCarRental.travelEntertainmentAuthDataMarket); + return Objects.equals(this.carRentalCheckOutDate, additionalDataCarRental.carRentalCheckOutDate) && + Objects.equals(this.carRentalCustomerServiceTollFreeNumber, additionalDataCarRental.carRentalCustomerServiceTollFreeNumber) && + Objects.equals(this.carRentalDaysRented, additionalDataCarRental.carRentalDaysRented) && + Objects.equals(this.carRentalFuelCharges, additionalDataCarRental.carRentalFuelCharges) && + Objects.equals(this.carRentalInsuranceCharges, additionalDataCarRental.carRentalInsuranceCharges) && + Objects.equals(this.carRentalLocationCity, additionalDataCarRental.carRentalLocationCity) && + Objects.equals(this.carRentalLocationCountry, additionalDataCarRental.carRentalLocationCountry) && + Objects.equals(this.carRentalLocationStateProvince, additionalDataCarRental.carRentalLocationStateProvince) && + Objects.equals(this.carRentalNoShowIndicator, additionalDataCarRental.carRentalNoShowIndicator) && + Objects.equals(this.carRentalOneWayDropOffCharges, additionalDataCarRental.carRentalOneWayDropOffCharges) && + Objects.equals(this.carRentalRate, additionalDataCarRental.carRentalRate) && + Objects.equals(this.carRentalRateIndicator, additionalDataCarRental.carRentalRateIndicator) && + Objects.equals(this.carRentalRentalAgreementNumber, additionalDataCarRental.carRentalRentalAgreementNumber) && + Objects.equals(this.carRentalRentalClassId, additionalDataCarRental.carRentalRentalClassId) && + Objects.equals(this.carRentalRenterName, additionalDataCarRental.carRentalRenterName) && + Objects.equals(this.carRentalReturnCity, additionalDataCarRental.carRentalReturnCity) && + Objects.equals(this.carRentalReturnCountry, additionalDataCarRental.carRentalReturnCountry) && + Objects.equals(this.carRentalReturnDate, additionalDataCarRental.carRentalReturnDate) && + Objects.equals(this.carRentalReturnLocationId, additionalDataCarRental.carRentalReturnLocationId) && + Objects.equals(this.carRentalReturnStateProvince, additionalDataCarRental.carRentalReturnStateProvince) && + Objects.equals(this.carRentalTaxExemptIndicator, additionalDataCarRental.carRentalTaxExemptIndicator) && + Objects.equals(this.travelEntertainmentAuthDataDuration, additionalDataCarRental.travelEntertainmentAuthDataDuration) && + Objects.equals(this.travelEntertainmentAuthDataMarket, additionalDataCarRental.travelEntertainmentAuthDataMarket); } @Override public int hashCode() { - return Objects.hash( - carRentalCheckOutDate, - carRentalCustomerServiceTollFreeNumber, - carRentalDaysRented, - carRentalFuelCharges, - carRentalInsuranceCharges, - carRentalLocationCity, - carRentalLocationCountry, - carRentalLocationStateProvince, - carRentalNoShowIndicator, - carRentalOneWayDropOffCharges, - carRentalRate, - carRentalRateIndicator, - carRentalRentalAgreementNumber, - carRentalRentalClassId, - carRentalRenterName, - carRentalReturnCity, - carRentalReturnCountry, - carRentalReturnDate, - carRentalReturnLocationId, - carRentalReturnStateProvince, - carRentalTaxExemptIndicator, - travelEntertainmentAuthDataDuration, - travelEntertainmentAuthDataMarket); + return Objects.hash(carRentalCheckOutDate, carRentalCustomerServiceTollFreeNumber, carRentalDaysRented, carRentalFuelCharges, carRentalInsuranceCharges, carRentalLocationCity, carRentalLocationCountry, carRentalLocationStateProvince, carRentalNoShowIndicator, carRentalOneWayDropOffCharges, carRentalRate, carRentalRateIndicator, carRentalRentalAgreementNumber, carRentalRentalClassId, carRentalRenterName, carRentalReturnCity, carRentalReturnCountry, carRentalReturnDate, carRentalReturnLocationId, carRentalReturnStateProvince, carRentalTaxExemptIndicator, travelEntertainmentAuthDataDuration, travelEntertainmentAuthDataMarket); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataCarRental {\n"); - sb.append(" carRentalCheckOutDate: ") - .append(toIndentedString(carRentalCheckOutDate)) - .append("\n"); - sb.append(" carRentalCustomerServiceTollFreeNumber: ") - .append(toIndentedString(carRentalCustomerServiceTollFreeNumber)) - .append("\n"); - sb.append(" carRentalDaysRented: ") - .append(toIndentedString(carRentalDaysRented)) - .append("\n"); - sb.append(" carRentalFuelCharges: ") - .append(toIndentedString(carRentalFuelCharges)) - .append("\n"); - sb.append(" carRentalInsuranceCharges: ") - .append(toIndentedString(carRentalInsuranceCharges)) - .append("\n"); - sb.append(" carRentalLocationCity: ") - .append(toIndentedString(carRentalLocationCity)) - .append("\n"); - sb.append(" carRentalLocationCountry: ") - .append(toIndentedString(carRentalLocationCountry)) - .append("\n"); - sb.append(" carRentalLocationStateProvince: ") - .append(toIndentedString(carRentalLocationStateProvince)) - .append("\n"); - sb.append(" carRentalNoShowIndicator: ") - .append(toIndentedString(carRentalNoShowIndicator)) - .append("\n"); - sb.append(" carRentalOneWayDropOffCharges: ") - .append(toIndentedString(carRentalOneWayDropOffCharges)) - .append("\n"); + sb.append(" carRentalCheckOutDate: ").append(toIndentedString(carRentalCheckOutDate)).append("\n"); + sb.append(" carRentalCustomerServiceTollFreeNumber: ").append(toIndentedString(carRentalCustomerServiceTollFreeNumber)).append("\n"); + sb.append(" carRentalDaysRented: ").append(toIndentedString(carRentalDaysRented)).append("\n"); + sb.append(" carRentalFuelCharges: ").append(toIndentedString(carRentalFuelCharges)).append("\n"); + sb.append(" carRentalInsuranceCharges: ").append(toIndentedString(carRentalInsuranceCharges)).append("\n"); + sb.append(" carRentalLocationCity: ").append(toIndentedString(carRentalLocationCity)).append("\n"); + sb.append(" carRentalLocationCountry: ").append(toIndentedString(carRentalLocationCountry)).append("\n"); + sb.append(" carRentalLocationStateProvince: ").append(toIndentedString(carRentalLocationStateProvince)).append("\n"); + sb.append(" carRentalNoShowIndicator: ").append(toIndentedString(carRentalNoShowIndicator)).append("\n"); + sb.append(" carRentalOneWayDropOffCharges: ").append(toIndentedString(carRentalOneWayDropOffCharges)).append("\n"); sb.append(" carRentalRate: ").append(toIndentedString(carRentalRate)).append("\n"); - sb.append(" carRentalRateIndicator: ") - .append(toIndentedString(carRentalRateIndicator)) - .append("\n"); - sb.append(" carRentalRentalAgreementNumber: ") - .append(toIndentedString(carRentalRentalAgreementNumber)) - .append("\n"); - sb.append(" carRentalRentalClassId: ") - .append(toIndentedString(carRentalRentalClassId)) - .append("\n"); - sb.append(" carRentalRenterName: ") - .append(toIndentedString(carRentalRenterName)) - .append("\n"); - sb.append(" carRentalReturnCity: ") - .append(toIndentedString(carRentalReturnCity)) - .append("\n"); - sb.append(" carRentalReturnCountry: ") - .append(toIndentedString(carRentalReturnCountry)) - .append("\n"); - sb.append(" carRentalReturnDate: ") - .append(toIndentedString(carRentalReturnDate)) - .append("\n"); - sb.append(" carRentalReturnLocationId: ") - .append(toIndentedString(carRentalReturnLocationId)) - .append("\n"); - sb.append(" carRentalReturnStateProvince: ") - .append(toIndentedString(carRentalReturnStateProvince)) - .append("\n"); - sb.append(" carRentalTaxExemptIndicator: ") - .append(toIndentedString(carRentalTaxExemptIndicator)) - .append("\n"); - sb.append(" travelEntertainmentAuthDataDuration: ") - .append(toIndentedString(travelEntertainmentAuthDataDuration)) - .append("\n"); - sb.append(" travelEntertainmentAuthDataMarket: ") - .append(toIndentedString(travelEntertainmentAuthDataMarket)) - .append("\n"); + sb.append(" carRentalRateIndicator: ").append(toIndentedString(carRentalRateIndicator)).append("\n"); + sb.append(" carRentalRentalAgreementNumber: ").append(toIndentedString(carRentalRentalAgreementNumber)).append("\n"); + sb.append(" carRentalRentalClassId: ").append(toIndentedString(carRentalRentalClassId)).append("\n"); + sb.append(" carRentalRenterName: ").append(toIndentedString(carRentalRenterName)).append("\n"); + sb.append(" carRentalReturnCity: ").append(toIndentedString(carRentalReturnCity)).append("\n"); + sb.append(" carRentalReturnCountry: ").append(toIndentedString(carRentalReturnCountry)).append("\n"); + sb.append(" carRentalReturnDate: ").append(toIndentedString(carRentalReturnDate)).append("\n"); + sb.append(" carRentalReturnLocationId: ").append(toIndentedString(carRentalReturnLocationId)).append("\n"); + sb.append(" carRentalReturnStateProvince: ").append(toIndentedString(carRentalReturnStateProvince)).append("\n"); + sb.append(" carRentalTaxExemptIndicator: ").append(toIndentedString(carRentalTaxExemptIndicator)).append("\n"); + sb.append(" travelEntertainmentAuthDataDuration: ").append(toIndentedString(travelEntertainmentAuthDataDuration)).append("\n"); + sb.append(" travelEntertainmentAuthDataMarket: ").append(toIndentedString(travelEntertainmentAuthDataMarket)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1257,23 +946,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalDataCarRental given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataCarRental - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataCarRental + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataCarRental */ public static AdditionalDataCarRental fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataCarRental.class); } - - /** - * Convert an instance of AdditionalDataCarRental to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalDataCarRental to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataCommon.java b/src/main/java/com/adyen/model/payment/AdditionalDataCommon.java index 05f31cf1c..11e14b897 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataCommon.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataCommon.java @@ -2,26 +2,31 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** AdditionalDataCommon */ + +/** + * AdditionalDataCommon + */ @JsonPropertyOrder({ AdditionalDataCommon.JSON_PROPERTY_REQUESTED_TEST_ACQUIRER_RESPONSE_CODE, AdditionalDataCommon.JSON_PROPERTY_REQUESTED_TEST_ERROR_RESPONSE_CODE, @@ -45,13 +50,12 @@ AdditionalDataCommon.JSON_PROPERTY_SUB_MERCHANT_STREET, AdditionalDataCommon.JSON_PROPERTY_SUB_MERCHANT_TAX_ID }) + public class AdditionalDataCommon { - public static final String JSON_PROPERTY_REQUESTED_TEST_ACQUIRER_RESPONSE_CODE = - "RequestedTestAcquirerResponseCode"; + public static final String JSON_PROPERTY_REQUESTED_TEST_ACQUIRER_RESPONSE_CODE = "RequestedTestAcquirerResponseCode"; private String requestedTestAcquirerResponseCode; - public static final String JSON_PROPERTY_REQUESTED_TEST_ERROR_RESPONSE_CODE = - "RequestedTestErrorResponseCode"; + public static final String JSON_PROPERTY_REQUESTED_TEST_ERROR_RESPONSE_CODE = "RequestedTestErrorResponseCode"; private String requestedTestErrorResponseCode; public static final String JSON_PROPERTY_ALLOW_PARTIAL_AUTH = "allowPartialAuth"; @@ -67,14 +71,10 @@ public class AdditionalDataCommon { private String customRoutingFlag; /** - * In case of [asynchronous authorisation - * adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), - * this field denotes why the additional payment is made. Possible values: * **NoShow**: An - * incremental charge is carried out because of a no-show for a guaranteed reservation. * - * **DelayedCharge**: An incremental charge is carried out to process an additional payment after - * the original services have been rendered and the respective payment has been processed. + * In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed. */ public enum IndustryUsageEnum { + NOSHOW(String.valueOf("NoShow")), DELAYEDCHARGE(String.valueOf("DelayedCharge")); @@ -84,7 +84,7 @@ public enum IndustryUsageEnum { private String value; IndustryUsageEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -105,11 +105,7 @@ public static IndustryUsageEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "IndustryUsageEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(IndustryUsageEnum.values())); + LOG.warning("IndustryUsageEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(IndustryUsageEnum.values())); return null; } } @@ -159,36 +155,23 @@ public static IndustryUsageEnum fromValue(String value) { public static final String JSON_PROPERTY_SUB_MERCHANT_TAX_ID = "subMerchantTaxId"; private String subMerchantTaxId; - public AdditionalDataCommon() {} + public AdditionalDataCommon() { + } /** - * Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing - * result codes and refusal - * reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the - * possible values, and the `refusalReason` values you can trigger. + * Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing result codes and refusal reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the possible values, and the `refusalReason` values you can trigger. * - * @param requestedTestAcquirerResponseCode Triggers test scenarios that allow to replicate - * certain acquirer response codes. See [Testing result codes and refusal - * reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about - * the possible values, and the `refusalReason` values you can trigger. + * @param requestedTestAcquirerResponseCode Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing result codes and refusal reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the possible values, and the `refusalReason` values you can trigger. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ - public AdditionalDataCommon requestedTestAcquirerResponseCode( - String requestedTestAcquirerResponseCode) { + public AdditionalDataCommon requestedTestAcquirerResponseCode(String requestedTestAcquirerResponseCode) { this.requestedTestAcquirerResponseCode = requestedTestAcquirerResponseCode; return this; } /** - * Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing - * result codes and refusal - * reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the - * possible values, and the `refusalReason` values you can trigger. - * - * @return requestedTestAcquirerResponseCode Triggers test scenarios that allow to replicate - * certain acquirer response codes. See [Testing result codes and refusal - * reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about - * the possible values, and the `refusalReason` values you can trigger. + * Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing result codes and refusal reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the possible values, and the `refusalReason` values you can trigger. + * @return requestedTestAcquirerResponseCode Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing result codes and refusal reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the possible values, and the `refusalReason` values you can trigger. */ @JsonProperty(JSON_PROPERTY_REQUESTED_TEST_ACQUIRER_RESPONSE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -197,15 +180,9 @@ public String getRequestedTestAcquirerResponseCode() { } /** - * Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing - * result codes and refusal - * reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the - * possible values, and the `refusalReason` values you can trigger. + * Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing result codes and refusal reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the possible values, and the `refusalReason` values you can trigger. * - * @param requestedTestAcquirerResponseCode Triggers test scenarios that allow to replicate - * certain acquirer response codes. See [Testing result codes and refusal - * reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about - * the possible values, and the `refusalReason` values you can trigger. + * @param requestedTestAcquirerResponseCode Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing result codes and refusal reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the possible values, and the `refusalReason` values you can trigger. */ @JsonProperty(JSON_PROPERTY_REQUESTED_TEST_ACQUIRER_RESPONSE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,63 +191,19 @@ public void setRequestedTestAcquirerResponseCode(String requestedTestAcquirerRes } /** - * Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * - * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing - * communication. This is a transient, retriable error since no messaging could be initiated to an - * issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true - * is returned in the response. A subsequent request using the same idempotency key will be - * processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong - * during transmission of the message or receiving the response. This is a classified as - * non-transient because the message could have been received by the issuing party and been acted - * upon. No transient error header is returned. If using idempotency, the (error) response is - * stored as the final result for the idempotency key. Subsequent messages with the same - * idempotency key not be processed beyond returning the stored response. + * Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response. * - * @param requestedTestErrorResponseCode Triggers test scenarios that allow to replicate certain - * communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a - * connection available to service the outgoing communication. This is a transient, retriable - * error since no messaging could be initiated to an issuing system (or third-party acquiring - * system). Therefore, the header Transient-Error: true is returned in the response. A - * subsequent request using the same idempotency key will be processed as if it was the first - * request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the - * message or receiving the response. This is a classified as non-transient because the - * message could have been received by the issuing party and been acted upon. No transient - * error header is returned. If using idempotency, the (error) response is stored as the final - * result for the idempotency key. Subsequent messages with the same idempotency key not be - * processed beyond returning the stored response. + * @param requestedTestErrorResponseCode Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ - public AdditionalDataCommon requestedTestErrorResponseCode( - String requestedTestErrorResponseCode) { + public AdditionalDataCommon requestedTestErrorResponseCode(String requestedTestErrorResponseCode) { this.requestedTestErrorResponseCode = requestedTestErrorResponseCode; return this; } /** - * Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * - * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing - * communication. This is a transient, retriable error since no messaging could be initiated to an - * issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true - * is returned in the response. A subsequent request using the same idempotency key will be - * processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong - * during transmission of the message or receiving the response. This is a classified as - * non-transient because the message could have been received by the issuing party and been acted - * upon. No transient error header is returned. If using idempotency, the (error) response is - * stored as the final result for the idempotency key. Subsequent messages with the same - * idempotency key not be processed beyond returning the stored response. - * - * @return requestedTestErrorResponseCode Triggers test scenarios that allow to replicate certain - * communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a - * connection available to service the outgoing communication. This is a transient, retriable - * error since no messaging could be initiated to an issuing system (or third-party acquiring - * system). Therefore, the header Transient-Error: true is returned in the response. A - * subsequent request using the same idempotency key will be processed as if it was the first - * request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the - * message or receiving the response. This is a classified as non-transient because the - * message could have been received by the issuing party and been acted upon. No transient - * error header is returned. If using idempotency, the (error) response is stored as the final - * result for the idempotency key. Subsequent messages with the same idempotency key not be - * processed beyond returning the stored response. + * Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response. + * @return requestedTestErrorResponseCode Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response. */ @JsonProperty(JSON_PROPERTY_REQUESTED_TEST_ERROR_RESPONSE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -279,30 +212,9 @@ public String getRequestedTestErrorResponseCode() { } /** - * Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * - * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing - * communication. This is a transient, retriable error since no messaging could be initiated to an - * issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true - * is returned in the response. A subsequent request using the same idempotency key will be - * processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong - * during transmission of the message or receiving the response. This is a classified as - * non-transient because the message could have been received by the issuing party and been acted - * upon. No transient error header is returned. If using idempotency, the (error) response is - * stored as the final result for the idempotency key. Subsequent messages with the same - * idempotency key not be processed beyond returning the stored response. + * Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response. * - * @param requestedTestErrorResponseCode Triggers test scenarios that allow to replicate certain - * communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a - * connection available to service the outgoing communication. This is a transient, retriable - * error since no messaging could be initiated to an issuing system (or third-party acquiring - * system). Therefore, the header Transient-Error: true is returned in the response. A - * subsequent request using the same idempotency key will be processed as if it was the first - * request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the - * message or receiving the response. This is a classified as non-transient because the - * message could have been received by the issuing party and been acted upon. No transient - * error header is returned. If using idempotency, the (error) response is stored as the final - * result for the idempotency key. Subsequent messages with the same idempotency key not be - * processed beyond returning the stored response. + * @param requestedTestErrorResponseCode Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response. */ @JsonProperty(JSON_PROPERTY_REQUESTED_TEST_ERROR_RESPONSE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -311,16 +223,9 @@ public void setRequestedTestErrorResponseCode(String requestedTestErrorResponseC } /** - * Set to true to authorise a part of the requested amount in case the cardholder does not have - * enough funds on their account. If a payment was partially authorised, the response includes - * resultCode: PartiallyAuthorised and the authorised amount in - * additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. + * Set to true to authorise a part of the requested amount in case the cardholder does not have enough funds on their account. If a payment was partially authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount in additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. * - * @param allowPartialAuth Set to true to authorise a part of the requested amount in case the - * cardholder does not have enough funds on their account. If a payment was partially - * authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount - * in additionalData.authorisedAmountValue. To enable this functionality, contact our Support - * Team. + * @param allowPartialAuth Set to true to authorise a part of the requested amount in case the cardholder does not have enough funds on their account. If a payment was partially authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount in additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon allowPartialAuth(String allowPartialAuth) { @@ -329,16 +234,8 @@ public AdditionalDataCommon allowPartialAuth(String allowPartialAuth) { } /** - * Set to true to authorise a part of the requested amount in case the cardholder does not have - * enough funds on their account. If a payment was partially authorised, the response includes - * resultCode: PartiallyAuthorised and the authorised amount in - * additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. - * - * @return allowPartialAuth Set to true to authorise a part of the requested amount in case the - * cardholder does not have enough funds on their account. If a payment was partially - * authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount - * in additionalData.authorisedAmountValue. To enable this functionality, contact our Support - * Team. + * Set to true to authorise a part of the requested amount in case the cardholder does not have enough funds on their account. If a payment was partially authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount in additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. + * @return allowPartialAuth Set to true to authorise a part of the requested amount in case the cardholder does not have enough funds on their account. If a payment was partially authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount in additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. */ @JsonProperty(JSON_PROPERTY_ALLOW_PARTIAL_AUTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -347,16 +244,9 @@ public String getAllowPartialAuth() { } /** - * Set to true to authorise a part of the requested amount in case the cardholder does not have - * enough funds on their account. If a payment was partially authorised, the response includes - * resultCode: PartiallyAuthorised and the authorised amount in - * additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. + * Set to true to authorise a part of the requested amount in case the cardholder does not have enough funds on their account. If a payment was partially authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount in additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. * - * @param allowPartialAuth Set to true to authorise a part of the requested amount in case the - * cardholder does not have enough funds on their account. If a payment was partially - * authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount - * in additionalData.authorisedAmountValue. To enable this functionality, contact our Support - * Team. + * @param allowPartialAuth Set to true to authorise a part of the requested amount in case the cardholder does not have enough funds on their account. If a payment was partially authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount in additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. */ @JsonProperty(JSON_PROPERTY_ALLOW_PARTIAL_AUTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -365,18 +255,9 @@ public void setAllowPartialAuth(String allowPartialAuth) { } /** - * Flags a card payment request for either pre-authorisation or final authorisation. For more - * information, refer to [Authorisation - * types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). - * Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. - * * **FinalAuth** – flags the payment request to be handled as a final authorisation. + * Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final authorisation. * - * @param authorisationType Flags a card payment request for either pre-authorisation or final - * authorisation. For more information, refer to [Authorisation - * types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). - * Allowed values: * **PreAuth** – flags the payment request to be handled as a - * pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final - * authorisation. + * @param authorisationType Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final authorisation. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon authorisationType(String authorisationType) { @@ -385,18 +266,8 @@ public AdditionalDataCommon authorisationType(String authorisationType) { } /** - * Flags a card payment request for either pre-authorisation or final authorisation. For more - * information, refer to [Authorisation - * types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). - * Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. - * * **FinalAuth** – flags the payment request to be handled as a final authorisation. - * - * @return authorisationType Flags a card payment request for either pre-authorisation or final - * authorisation. For more information, refer to [Authorisation - * types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). - * Allowed values: * **PreAuth** – flags the payment request to be handled as a - * pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final - * authorisation. + * Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final authorisation. + * @return authorisationType Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final authorisation. */ @JsonProperty(JSON_PROPERTY_AUTHORISATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -405,18 +276,9 @@ public String getAuthorisationType() { } /** - * Flags a card payment request for either pre-authorisation or final authorisation. For more - * information, refer to [Authorisation - * types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). - * Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. - * * **FinalAuth** – flags the payment request to be handled as a final authorisation. + * Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final authorisation. * - * @param authorisationType Flags a card payment request for either pre-authorisation or final - * authorisation. For more information, refer to [Authorisation - * types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). - * Allowed values: * **PreAuth** – flags the payment request to be handled as a - * pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final - * authorisation. + * @param authorisationType Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final authorisation. */ @JsonProperty(JSON_PROPERTY_AUTHORISATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -425,12 +287,9 @@ public void setAuthorisationType(String authorisationType) { } /** - * Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) - * for a transaction. Use the `maxDaysToRescue` to specify a rescue window. + * Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the `maxDaysToRescue` to specify a rescue window. * - * @param autoRescue Set to **true** to enable [Auto - * Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the - * `maxDaysToRescue` to specify a rescue window. + * @param autoRescue Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the `maxDaysToRescue` to specify a rescue window. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon autoRescue(String autoRescue) { @@ -439,12 +298,8 @@ public AdditionalDataCommon autoRescue(String autoRescue) { } /** - * Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) - * for a transaction. Use the `maxDaysToRescue` to specify a rescue window. - * - * @return autoRescue Set to **true** to enable [Auto - * Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the - * `maxDaysToRescue` to specify a rescue window. + * Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the `maxDaysToRescue` to specify a rescue window. + * @return autoRescue Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the `maxDaysToRescue` to specify a rescue window. */ @JsonProperty(JSON_PROPERTY_AUTO_RESCUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -453,12 +308,9 @@ public String getAutoRescue() { } /** - * Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) - * for a transaction. Use the `maxDaysToRescue` to specify a rescue window. + * Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the `maxDaysToRescue` to specify a rescue window. * - * @param autoRescue Set to **true** to enable [Auto - * Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the - * `maxDaysToRescue` to specify a rescue window. + * @param autoRescue Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the `maxDaysToRescue` to specify a rescue window. */ @JsonProperty(JSON_PROPERTY_AUTO_RESCUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -467,18 +319,9 @@ public void setAutoRescue(String autoRescue) { } /** - * Allows you to determine or override the acquirer account that should be used for the - * transaction. If you need to process a payment with an acquirer different from a default one, - * you can set up a corresponding configuration on the Adyen payments platform. Then you can pass - * a custom routing flag in a payment request's additional data to target a specific acquirer. - * To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). + * Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request's additional data to target a specific acquirer. To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param customRoutingFlag Allows you to determine or override the acquirer account that should - * be used for the transaction. If you need to process a payment with an acquirer different - * from a default one, you can set up a corresponding configuration on the Adyen payments - * platform. Then you can pass a custom routing flag in a payment request's additional - * data to target a specific acquirer. To enable this functionality, contact - * [Support](https://www.adyen.help/hc/en-us/requests/new). + * @param customRoutingFlag Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request's additional data to target a specific acquirer. To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon customRoutingFlag(String customRoutingFlag) { @@ -487,18 +330,8 @@ public AdditionalDataCommon customRoutingFlag(String customRoutingFlag) { } /** - * Allows you to determine or override the acquirer account that should be used for the - * transaction. If you need to process a payment with an acquirer different from a default one, - * you can set up a corresponding configuration on the Adyen payments platform. Then you can pass - * a custom routing flag in a payment request's additional data to target a specific acquirer. - * To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). - * - * @return customRoutingFlag Allows you to determine or override the acquirer account that should - * be used for the transaction. If you need to process a payment with an acquirer different - * from a default one, you can set up a corresponding configuration on the Adyen payments - * platform. Then you can pass a custom routing flag in a payment request's additional - * data to target a specific acquirer. To enable this functionality, contact - * [Support](https://www.adyen.help/hc/en-us/requests/new). + * Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request's additional data to target a specific acquirer. To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). + * @return customRoutingFlag Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request's additional data to target a specific acquirer. To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_CUSTOM_ROUTING_FLAG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -507,18 +340,9 @@ public String getCustomRoutingFlag() { } /** - * Allows you to determine or override the acquirer account that should be used for the - * transaction. If you need to process a payment with an acquirer different from a default one, - * you can set up a corresponding configuration on the Adyen payments platform. Then you can pass - * a custom routing flag in a payment request's additional data to target a specific acquirer. - * To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). + * Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request's additional data to target a specific acquirer. To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param customRoutingFlag Allows you to determine or override the acquirer account that should - * be used for the transaction. If you need to process a payment with an acquirer different - * from a default one, you can set up a corresponding configuration on the Adyen payments - * platform. Then you can pass a custom routing flag in a payment request's additional - * data to target a specific acquirer. To enable this functionality, contact - * [Support](https://www.adyen.help/hc/en-us/requests/new). + * @param customRoutingFlag Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request's additional data to target a specific acquirer. To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_CUSTOM_ROUTING_FLAG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -527,20 +351,9 @@ public void setCustomRoutingFlag(String customRoutingFlag) { } /** - * In case of [asynchronous authorisation - * adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), - * this field denotes why the additional payment is made. Possible values: * **NoShow**: An - * incremental charge is carried out because of a no-show for a guaranteed reservation. * - * **DelayedCharge**: An incremental charge is carried out to process an additional payment after - * the original services have been rendered and the respective payment has been processed. + * In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed. * - * @param industryUsage In case of [asynchronous authorisation - * adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), - * this field denotes why the additional payment is made. Possible values: * **NoShow**: An - * incremental charge is carried out because of a no-show for a guaranteed reservation. * - * **DelayedCharge**: An incremental charge is carried out to process an additional payment - * after the original services have been rendered and the respective payment has been - * processed. + * @param industryUsage In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon industryUsage(IndustryUsageEnum industryUsage) { @@ -549,20 +362,8 @@ public AdditionalDataCommon industryUsage(IndustryUsageEnum industryUsage) { } /** - * In case of [asynchronous authorisation - * adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), - * this field denotes why the additional payment is made. Possible values: * **NoShow**: An - * incremental charge is carried out because of a no-show for a guaranteed reservation. * - * **DelayedCharge**: An incremental charge is carried out to process an additional payment after - * the original services have been rendered and the respective payment has been processed. - * - * @return industryUsage In case of [asynchronous authorisation - * adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), - * this field denotes why the additional payment is made. Possible values: * **NoShow**: An - * incremental charge is carried out because of a no-show for a guaranteed reservation. * - * **DelayedCharge**: An incremental charge is carried out to process an additional payment - * after the original services have been rendered and the respective payment has been - * processed. + * In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed. + * @return industryUsage In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed. */ @JsonProperty(JSON_PROPERTY_INDUSTRY_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -571,20 +372,9 @@ public IndustryUsageEnum getIndustryUsage() { } /** - * In case of [asynchronous authorisation - * adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), - * this field denotes why the additional payment is made. Possible values: * **NoShow**: An - * incremental charge is carried out because of a no-show for a guaranteed reservation. * - * **DelayedCharge**: An incremental charge is carried out to process an additional payment after - * the original services have been rendered and the respective payment has been processed. + * In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed. * - * @param industryUsage In case of [asynchronous authorisation - * adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), - * this field denotes why the additional payment is made. Possible values: * **NoShow**: An - * incremental charge is carried out because of a no-show for a guaranteed reservation. * - * **DelayedCharge**: An incremental charge is carried out to process an additional payment - * after the original services have been rendered and the respective payment has been - * processed. + * @param industryUsage In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed. */ @JsonProperty(JSON_PROPERTY_INDUSTRY_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -593,11 +383,9 @@ public void setIndustryUsage(IndustryUsageEnum industryUsage) { } /** - * Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for - * the transaction. + * Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for the transaction. * - * @param manualCapture Set to **true** to require [manual - * capture](https://docs.adyen.com/online-payments/capture) for the transaction. + * @param manualCapture Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for the transaction. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon manualCapture(String manualCapture) { @@ -606,11 +394,8 @@ public AdditionalDataCommon manualCapture(String manualCapture) { } /** - * Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for - * the transaction. - * - * @return manualCapture Set to **true** to require [manual - * capture](https://docs.adyen.com/online-payments/capture) for the transaction. + * Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for the transaction. + * @return manualCapture Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for the transaction. */ @JsonProperty(JSON_PROPERTY_MANUAL_CAPTURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -619,11 +404,9 @@ public String getManualCapture() { } /** - * Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for - * the transaction. + * Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for the transaction. * - * @param manualCapture Set to **true** to require [manual - * capture](https://docs.adyen.com/online-payments/capture) for the transaction. + * @param manualCapture Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for the transaction. */ @JsonProperty(JSON_PROPERTY_MANUAL_CAPTURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -632,17 +415,9 @@ public void setManualCapture(String manualCapture) { } /** - * The rescue window for a transaction, in days, when `autoRescue` is set to **true**. - * You can specify a value between 1 and 48. * For - * [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar - * month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is - * 42 days. + * The rescue window for a transaction, in days, when `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is 42 days. * - * @param maxDaysToRescue The rescue window for a transaction, in days, when - * `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For - * [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one - * calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the - * default is 42 days. + * @param maxDaysToRescue The rescue window for a transaction, in days, when `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is 42 days. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon maxDaysToRescue(String maxDaysToRescue) { @@ -651,17 +426,8 @@ public AdditionalDataCommon maxDaysToRescue(String maxDaysToRescue) { } /** - * The rescue window for a transaction, in days, when `autoRescue` is set to **true**. - * You can specify a value between 1 and 48. * For - * [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar - * month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is - * 42 days. - * - * @return maxDaysToRescue The rescue window for a transaction, in days, when - * `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For - * [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one - * calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the - * default is 42 days. + * The rescue window for a transaction, in days, when `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is 42 days. + * @return maxDaysToRescue The rescue window for a transaction, in days, when `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is 42 days. */ @JsonProperty(JSON_PROPERTY_MAX_DAYS_TO_RESCUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -670,17 +436,9 @@ public String getMaxDaysToRescue() { } /** - * The rescue window for a transaction, in days, when `autoRescue` is set to **true**. - * You can specify a value between 1 and 48. * For - * [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar - * month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is - * 42 days. + * The rescue window for a transaction, in days, when `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is 42 days. * - * @param maxDaysToRescue The rescue window for a transaction, in days, when - * `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For - * [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one - * calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the - * default is 42 days. + * @param maxDaysToRescue The rescue window for a transaction, in days, when `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is 42 days. */ @JsonProperty(JSON_PROPERTY_MAX_DAYS_TO_RESCUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -689,25 +447,9 @@ public void setMaxDaysToRescue(String maxDaysToRescue) { } /** - * Allows you to link the transaction to the original or previous one in a - * subscription/card-on-file chain. This field is required for token-based transactions where - * Adyen does not tokenize the card. Transaction identifier from card schemes, for example, - * Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the - * contract in your payment request if you are not tokenizing card details with Adyen and are - * making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending - * `shopperInteraction` **ContAuth** and `recurringProcessingModel` - * **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as - * MIT. + * Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT. * - * @param networkTxReference Allows you to link the transaction to the original or previous one in - * a subscription/card-on-file chain. This field is required for token-based transactions - * where Adyen does not tokenize the card. Transaction identifier from card schemes, for - * example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID - * of the contract in your payment request if you are not tokenizing card details with Adyen - * and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you - * are sending `shopperInteraction` **ContAuth** and - * `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to - * ensure that the transaction is classified as MIT. + * @param networkTxReference Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon networkTxReference(String networkTxReference) { @@ -716,25 +458,8 @@ public AdditionalDataCommon networkTxReference(String networkTxReference) { } /** - * Allows you to link the transaction to the original or previous one in a - * subscription/card-on-file chain. This field is required for token-based transactions where - * Adyen does not tokenize the card. Transaction identifier from card schemes, for example, - * Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the - * contract in your payment request if you are not tokenizing card details with Adyen and are - * making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending - * `shopperInteraction` **ContAuth** and `recurringProcessingModel` - * **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as - * MIT. - * - * @return networkTxReference Allows you to link the transaction to the original or previous one - * in a subscription/card-on-file chain. This field is required for token-based transactions - * where Adyen does not tokenize the card. Transaction identifier from card schemes, for - * example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID - * of the contract in your payment request if you are not tokenizing card details with Adyen - * and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you - * are sending `shopperInteraction` **ContAuth** and - * `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to - * ensure that the transaction is classified as MIT. + * Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT. + * @return networkTxReference Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT. */ @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -743,25 +468,9 @@ public String getNetworkTxReference() { } /** - * Allows you to link the transaction to the original or previous one in a - * subscription/card-on-file chain. This field is required for token-based transactions where - * Adyen does not tokenize the card. Transaction identifier from card schemes, for example, - * Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the - * contract in your payment request if you are not tokenizing card details with Adyen and are - * making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending - * `shopperInteraction` **ContAuth** and `recurringProcessingModel` - * **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as - * MIT. + * Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT. * - * @param networkTxReference Allows you to link the transaction to the original or previous one in - * a subscription/card-on-file chain. This field is required for token-based transactions - * where Adyen does not tokenize the card. Transaction identifier from card schemes, for - * example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID - * of the contract in your payment request if you are not tokenizing card details with Adyen - * and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you - * are sending `shopperInteraction` **ContAuth** and - * `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to - * ensure that the transaction is classified as MIT. + * @param networkTxReference Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT. */ @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -770,15 +479,9 @@ public void setNetworkTxReference(String networkTxReference) { } /** - * Boolean indicator that can be optionally used for performing debit transactions on combo cards - * (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this - * to true if you want to use the `selectedBrand` value to specify how to process the - * transaction. + * Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction. * - * @param overwriteBrand Boolean indicator that can be optionally used for performing debit - * transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but - * we recommend that you set this to true if you want to use the `selectedBrand` - * value to specify how to process the transaction. + * @param overwriteBrand Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon overwriteBrand(String overwriteBrand) { @@ -787,15 +490,8 @@ public AdditionalDataCommon overwriteBrand(String overwriteBrand) { } /** - * Boolean indicator that can be optionally used for performing debit transactions on combo cards - * (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this - * to true if you want to use the `selectedBrand` value to specify how to process the - * transaction. - * - * @return overwriteBrand Boolean indicator that can be optionally used for performing debit - * transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but - * we recommend that you set this to true if you want to use the `selectedBrand` - * value to specify how to process the transaction. + * Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction. + * @return overwriteBrand Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction. */ @JsonProperty(JSON_PROPERTY_OVERWRITE_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -804,15 +500,9 @@ public String getOverwriteBrand() { } /** - * Boolean indicator that can be optionally used for performing debit transactions on combo cards - * (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this - * to true if you want to use the `selectedBrand` value to specify how to process the - * transaction. + * Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction. * - * @param overwriteBrand Boolean indicator that can be optionally used for performing debit - * transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but - * we recommend that you set this to true if you want to use the `selectedBrand` - * value to specify how to process the transaction. + * @param overwriteBrand Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction. */ @JsonProperty(JSON_PROPERTY_OVERWRITE_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -821,13 +511,9 @@ public void setOverwriteBrand(String overwriteBrand) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the city of the actual merchant's address. * Format: alpha-numeric. - * * Maximum length: 13 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 13 characters. * - * @param subMerchantCity This field is required if the transaction is performed by a registered - * payment facilitator. This field must contain the city of the actual merchant's address. - * * Format: alpha-numeric. * Maximum length: 13 characters. + * @param subMerchantCity This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 13 characters. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantCity(String subMerchantCity) { @@ -836,13 +522,8 @@ public AdditionalDataCommon subMerchantCity(String subMerchantCity) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the city of the actual merchant's address. * Format: alpha-numeric. - * * Maximum length: 13 characters. - * - * @return subMerchantCity This field is required if the transaction is performed by a registered - * payment facilitator. This field must contain the city of the actual merchant's address. - * * Format: alpha-numeric. * Maximum length: 13 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 13 characters. + * @return subMerchantCity This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 13 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -851,13 +532,9 @@ public String getSubMerchantCity() { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the city of the actual merchant's address. * Format: alpha-numeric. - * * Maximum length: 13 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 13 characters. * - * @param subMerchantCity This field is required if the transaction is performed by a registered - * payment facilitator. This field must contain the city of the actual merchant's address. - * * Format: alpha-numeric. * Maximum length: 13 characters. + * @param subMerchantCity This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 13 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -866,13 +543,9 @@ public void setSubMerchantCity(String subMerchantCity) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the three-letter country code of the actual merchant's address. * - * Format: alpha-numeric. * Fixed length: 3 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. * - * @param subMerchantCountry This field is required if the transaction is performed by a - * registered payment facilitator. This field must contain the three-letter country code of - * the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. + * @param subMerchantCountry This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantCountry(String subMerchantCountry) { @@ -881,13 +554,8 @@ public AdditionalDataCommon subMerchantCountry(String subMerchantCountry) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the three-letter country code of the actual merchant's address. * - * Format: alpha-numeric. * Fixed length: 3 characters. - * - * @return subMerchantCountry This field is required if the transaction is performed by a - * registered payment facilitator. This field must contain the three-letter country code of - * the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. + * @return subMerchantCountry This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -896,13 +564,9 @@ public String getSubMerchantCountry() { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the three-letter country code of the actual merchant's address. * - * Format: alpha-numeric. * Fixed length: 3 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. * - * @param subMerchantCountry This field is required if the transaction is performed by a - * registered payment facilitator. This field must contain the three-letter country code of - * the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. + * @param subMerchantCountry This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -911,13 +575,9 @@ public void setSubMerchantCountry(String subMerchantCountry) { } /** - * This field is required for transactions performed by registered payment facilitators. This - * field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: - * 40 characters + * This field is required for transactions performed by registered payment facilitators. This field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters * - * @param subMerchantEmail This field is required for transactions performed by registered payment - * facilitators. This field contains the email address of the sub-merchant. * Format: - * Alphanumeric * Maximum length: 40 characters + * @param subMerchantEmail This field is required for transactions performed by registered payment facilitators. This field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantEmail(String subMerchantEmail) { @@ -926,13 +586,8 @@ public AdditionalDataCommon subMerchantEmail(String subMerchantEmail) { } /** - * This field is required for transactions performed by registered payment facilitators. This - * field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: - * 40 characters - * - * @return subMerchantEmail This field is required for transactions performed by registered - * payment facilitators. This field contains the email address of the sub-merchant. * Format: - * Alphanumeric * Maximum length: 40 characters + * This field is required for transactions performed by registered payment facilitators. This field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters + * @return subMerchantEmail This field is required for transactions performed by registered payment facilitators. This field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -941,13 +596,9 @@ public String getSubMerchantEmail() { } /** - * This field is required for transactions performed by registered payment facilitators. This - * field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: - * 40 characters + * This field is required for transactions performed by registered payment facilitators. This field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters * - * @param subMerchantEmail This field is required for transactions performed by registered payment - * facilitators. This field contains the email address of the sub-merchant. * Format: - * Alphanumeric * Maximum length: 40 characters + * @param subMerchantEmail This field is required for transactions performed by registered payment facilitators. This field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -956,16 +607,9 @@ public void setSubMerchantEmail(String subMerchantEmail) { } /** - * This field contains an identifier of the actual merchant when a transaction is submitted via a - * payment facilitator. The payment facilitator must send in this unique ID. A unique identifier - * per submerchant that is required if the transaction is performed by a registered payment - * facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. + * This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. * - * @param subMerchantID This field contains an identifier of the actual merchant when a - * transaction is submitted via a payment facilitator. The payment facilitator must send in - * this unique ID. A unique identifier per submerchant that is required if the transaction is - * performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 - * characters. + * @param subMerchantID This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantID(String subMerchantID) { @@ -974,16 +618,8 @@ public AdditionalDataCommon subMerchantID(String subMerchantID) { } /** - * This field contains an identifier of the actual merchant when a transaction is submitted via a - * payment facilitator. The payment facilitator must send in this unique ID. A unique identifier - * per submerchant that is required if the transaction is performed by a registered payment - * facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. - * - * @return subMerchantID This field contains an identifier of the actual merchant when a - * transaction is submitted via a payment facilitator. The payment facilitator must send in - * this unique ID. A unique identifier per submerchant that is required if the transaction is - * performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 - * characters. + * This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. + * @return subMerchantID This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -992,16 +628,9 @@ public String getSubMerchantID() { } /** - * This field contains an identifier of the actual merchant when a transaction is submitted via a - * payment facilitator. The payment facilitator must send in this unique ID. A unique identifier - * per submerchant that is required if the transaction is performed by a registered payment - * facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. + * This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. * - * @param subMerchantID This field contains an identifier of the actual merchant when a - * transaction is submitted via a payment facilitator. The payment facilitator must send in - * this unique ID. A unique identifier per submerchant that is required if the transaction is - * performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 - * characters. + * @param subMerchantID This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1010,13 +639,9 @@ public void setSubMerchantID(String subMerchantID) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum - * length: 22 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum length: 22 characters. * - * @param subMerchantName This field is required if the transaction is performed by a registered - * payment facilitator. This field must contain the name of the actual merchant. * Format: - * alpha-numeric. * Maximum length: 22 characters. + * @param subMerchantName This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum length: 22 characters. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantName(String subMerchantName) { @@ -1025,13 +650,8 @@ public AdditionalDataCommon subMerchantName(String subMerchantName) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum - * length: 22 characters. - * - * @return subMerchantName This field is required if the transaction is performed by a registered - * payment facilitator. This field must contain the name of the actual merchant. * Format: - * alpha-numeric. * Maximum length: 22 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum length: 22 characters. + * @return subMerchantName This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum length: 22 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1040,13 +660,9 @@ public String getSubMerchantName() { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum - * length: 22 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum length: 22 characters. * - * @param subMerchantName This field is required if the transaction is performed by a registered - * payment facilitator. This field must contain the name of the actual merchant. * Format: - * alpha-numeric. * Maximum length: 22 characters. + * @param subMerchantName This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum length: 22 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1055,13 +671,9 @@ public void setSubMerchantName(String subMerchantName) { } /** - * This field is required for transactions performed by registered payment facilitators. This - * field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 - * characters + * This field is required for transactions performed by registered payment facilitators. This field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters * - * @param subMerchantPhoneNumber This field is required for transactions performed by registered - * payment facilitators. This field contains the phone number of the sub-merchant.* Format: - * Alphanumeric * Maximum length: 20 characters + * @param subMerchantPhoneNumber This field is required for transactions performed by registered payment facilitators. This field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantPhoneNumber(String subMerchantPhoneNumber) { @@ -1070,13 +682,8 @@ public AdditionalDataCommon subMerchantPhoneNumber(String subMerchantPhoneNumber } /** - * This field is required for transactions performed by registered payment facilitators. This - * field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 - * characters - * - * @return subMerchantPhoneNumber This field is required for transactions performed by registered - * payment facilitators. This field contains the phone number of the sub-merchant.* Format: - * Alphanumeric * Maximum length: 20 characters + * This field is required for transactions performed by registered payment facilitators. This field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * @return subMerchantPhoneNumber This field is required for transactions performed by registered payment facilitators. This field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1085,13 +692,9 @@ public String getSubMerchantPhoneNumber() { } /** - * This field is required for transactions performed by registered payment facilitators. This - * field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 - * characters + * This field is required for transactions performed by registered payment facilitators. This field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters * - * @param subMerchantPhoneNumber This field is required for transactions performed by registered - * payment facilitators. This field contains the phone number of the sub-merchant.* Format: - * Alphanumeric * Maximum length: 20 characters + * @param subMerchantPhoneNumber This field is required for transactions performed by registered payment facilitators. This field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1100,13 +703,9 @@ public void setSubMerchantPhoneNumber(String subMerchantPhoneNumber) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the postal code of the actual merchant's address. * Format: - * alpha-numeric. * Maximum length: 10 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. * - * @param subMerchantPostalCode This field is required if the transaction is performed by a - * registered payment facilitator. This field must contain the postal code of the actual - * merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. + * @param subMerchantPostalCode This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantPostalCode(String subMerchantPostalCode) { @@ -1115,13 +714,8 @@ public AdditionalDataCommon subMerchantPostalCode(String subMerchantPostalCode) } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the postal code of the actual merchant's address. * Format: - * alpha-numeric. * Maximum length: 10 characters. - * - * @return subMerchantPostalCode This field is required if the transaction is performed by a - * registered payment facilitator. This field must contain the postal code of the actual - * merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. + * @return subMerchantPostalCode This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1130,13 +724,9 @@ public String getSubMerchantPostalCode() { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the postal code of the actual merchant's address. * Format: - * alpha-numeric. * Maximum length: 10 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. * - * @param subMerchantPostalCode This field is required if the transaction is performed by a - * registered payment facilitator. This field must contain the postal code of the actual - * merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. + * @param subMerchantPostalCode This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1145,14 +735,9 @@ public void setSubMerchantPostalCode(String subMerchantPostalCode) { } /** - * This field is required if the transaction is performed by a registered payment facilitator, and - * if applicable to the country. This field must contain the state code of the actual - * merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. + * This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. * - * @param subMerchantState This field is required if the transaction is performed by a registered - * payment facilitator, and if applicable to the country. This field must contain the state - * code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 - * characters. + * @param subMerchantState This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantState(String subMerchantState) { @@ -1161,14 +746,8 @@ public AdditionalDataCommon subMerchantState(String subMerchantState) { } /** - * This field is required if the transaction is performed by a registered payment facilitator, and - * if applicable to the country. This field must contain the state code of the actual - * merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. - * - * @return subMerchantState This field is required if the transaction is performed by a registered - * payment facilitator, and if applicable to the country. This field must contain the state - * code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 - * characters. + * This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. + * @return subMerchantState This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_STATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1177,14 +756,9 @@ public String getSubMerchantState() { } /** - * This field is required if the transaction is performed by a registered payment facilitator, and - * if applicable to the country. This field must contain the state code of the actual - * merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. + * This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. * - * @param subMerchantState This field is required if the transaction is performed by a registered - * payment facilitator, and if applicable to the country. This field must contain the state - * code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 - * characters. + * @param subMerchantState This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_STATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1193,13 +767,9 @@ public void setSubMerchantState(String subMerchantState) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the street of the actual merchant's address. * Format: - * alpha-numeric. * Maximum length: 60 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 60 characters. * - * @param subMerchantStreet This field is required if the transaction is performed by a registered - * payment facilitator. This field must contain the street of the actual merchant's - * address. * Format: alpha-numeric. * Maximum length: 60 characters. + * @param subMerchantStreet This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 60 characters. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantStreet(String subMerchantStreet) { @@ -1208,13 +778,8 @@ public AdditionalDataCommon subMerchantStreet(String subMerchantStreet) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the street of the actual merchant's address. * Format: - * alpha-numeric. * Maximum length: 60 characters. - * - * @return subMerchantStreet This field is required if the transaction is performed by a - * registered payment facilitator. This field must contain the street of the actual - * merchant's address. * Format: alpha-numeric. * Maximum length: 60 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 60 characters. + * @return subMerchantStreet This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 60 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1223,13 +788,9 @@ public String getSubMerchantStreet() { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the street of the actual merchant's address. * Format: - * alpha-numeric. * Maximum length: 60 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 60 characters. * - * @param subMerchantStreet This field is required if the transaction is performed by a registered - * payment facilitator. This field must contain the street of the actual merchant's - * address. * Format: alpha-numeric. * Maximum length: 60 characters. + * @param subMerchantStreet This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 60 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1238,13 +799,9 @@ public void setSubMerchantStreet(String subMerchantStreet) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed - * length: 11 or 14 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed length: 11 or 14 characters. * - * @param subMerchantTaxId This field is required if the transaction is performed by a registered - * payment facilitator. This field must contain the tax ID of the actual merchant. * Format: - * alpha-numeric. * Fixed length: 11 or 14 characters. + * @param subMerchantTaxId This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed length: 11 or 14 characters. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantTaxId(String subMerchantTaxId) { @@ -1253,13 +810,8 @@ public AdditionalDataCommon subMerchantTaxId(String subMerchantTaxId) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed - * length: 11 or 14 characters. - * - * @return subMerchantTaxId This field is required if the transaction is performed by a registered - * payment facilitator. This field must contain the tax ID of the actual merchant. * Format: - * alpha-numeric. * Fixed length: 11 or 14 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed length: 11 or 14 characters. + * @return subMerchantTaxId This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed length: 11 or 14 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_TAX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1268,13 +820,9 @@ public String getSubMerchantTaxId() { } /** - * This field is required if the transaction is performed by a registered payment facilitator. - * This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed - * length: 11 or 14 characters. + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed length: 11 or 14 characters. * - * @param subMerchantTaxId This field is required if the transaction is performed by a registered - * payment facilitator. This field must contain the tax ID of the actual merchant. * Format: - * alpha-numeric. * Fixed length: 11 or 14 characters. + * @param subMerchantTaxId This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed length: 11 or 14 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_TAX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1282,7 +830,9 @@ public void setSubMerchantTaxId(String subMerchantTaxId) { this.subMerchantTaxId = subMerchantTaxId; } - /** Return true if this AdditionalDataCommon object is equal to o. */ + /** + * Return true if this AdditionalDataCommon object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -1292,69 +842,40 @@ public boolean equals(Object o) { return false; } AdditionalDataCommon additionalDataCommon = (AdditionalDataCommon) o; - return Objects.equals( - this.requestedTestAcquirerResponseCode, - additionalDataCommon.requestedTestAcquirerResponseCode) - && Objects.equals( - this.requestedTestErrorResponseCode, - additionalDataCommon.requestedTestErrorResponseCode) - && Objects.equals(this.allowPartialAuth, additionalDataCommon.allowPartialAuth) - && Objects.equals(this.authorisationType, additionalDataCommon.authorisationType) - && Objects.equals(this.autoRescue, additionalDataCommon.autoRescue) - && Objects.equals(this.customRoutingFlag, additionalDataCommon.customRoutingFlag) - && Objects.equals(this.industryUsage, additionalDataCommon.industryUsage) - && Objects.equals(this.manualCapture, additionalDataCommon.manualCapture) - && Objects.equals(this.maxDaysToRescue, additionalDataCommon.maxDaysToRescue) - && Objects.equals(this.networkTxReference, additionalDataCommon.networkTxReference) - && Objects.equals(this.overwriteBrand, additionalDataCommon.overwriteBrand) - && Objects.equals(this.subMerchantCity, additionalDataCommon.subMerchantCity) - && Objects.equals(this.subMerchantCountry, additionalDataCommon.subMerchantCountry) - && Objects.equals(this.subMerchantEmail, additionalDataCommon.subMerchantEmail) - && Objects.equals(this.subMerchantID, additionalDataCommon.subMerchantID) - && Objects.equals(this.subMerchantName, additionalDataCommon.subMerchantName) - && Objects.equals(this.subMerchantPhoneNumber, additionalDataCommon.subMerchantPhoneNumber) - && Objects.equals(this.subMerchantPostalCode, additionalDataCommon.subMerchantPostalCode) - && Objects.equals(this.subMerchantState, additionalDataCommon.subMerchantState) - && Objects.equals(this.subMerchantStreet, additionalDataCommon.subMerchantStreet) - && Objects.equals(this.subMerchantTaxId, additionalDataCommon.subMerchantTaxId); + return Objects.equals(this.requestedTestAcquirerResponseCode, additionalDataCommon.requestedTestAcquirerResponseCode) && + Objects.equals(this.requestedTestErrorResponseCode, additionalDataCommon.requestedTestErrorResponseCode) && + Objects.equals(this.allowPartialAuth, additionalDataCommon.allowPartialAuth) && + Objects.equals(this.authorisationType, additionalDataCommon.authorisationType) && + Objects.equals(this.autoRescue, additionalDataCommon.autoRescue) && + Objects.equals(this.customRoutingFlag, additionalDataCommon.customRoutingFlag) && + Objects.equals(this.industryUsage, additionalDataCommon.industryUsage) && + Objects.equals(this.manualCapture, additionalDataCommon.manualCapture) && + Objects.equals(this.maxDaysToRescue, additionalDataCommon.maxDaysToRescue) && + Objects.equals(this.networkTxReference, additionalDataCommon.networkTxReference) && + Objects.equals(this.overwriteBrand, additionalDataCommon.overwriteBrand) && + Objects.equals(this.subMerchantCity, additionalDataCommon.subMerchantCity) && + Objects.equals(this.subMerchantCountry, additionalDataCommon.subMerchantCountry) && + Objects.equals(this.subMerchantEmail, additionalDataCommon.subMerchantEmail) && + Objects.equals(this.subMerchantID, additionalDataCommon.subMerchantID) && + Objects.equals(this.subMerchantName, additionalDataCommon.subMerchantName) && + Objects.equals(this.subMerchantPhoneNumber, additionalDataCommon.subMerchantPhoneNumber) && + Objects.equals(this.subMerchantPostalCode, additionalDataCommon.subMerchantPostalCode) && + Objects.equals(this.subMerchantState, additionalDataCommon.subMerchantState) && + Objects.equals(this.subMerchantStreet, additionalDataCommon.subMerchantStreet) && + Objects.equals(this.subMerchantTaxId, additionalDataCommon.subMerchantTaxId); } @Override public int hashCode() { - return Objects.hash( - requestedTestAcquirerResponseCode, - requestedTestErrorResponseCode, - allowPartialAuth, - authorisationType, - autoRescue, - customRoutingFlag, - industryUsage, - manualCapture, - maxDaysToRescue, - networkTxReference, - overwriteBrand, - subMerchantCity, - subMerchantCountry, - subMerchantEmail, - subMerchantID, - subMerchantName, - subMerchantPhoneNumber, - subMerchantPostalCode, - subMerchantState, - subMerchantStreet, - subMerchantTaxId); + return Objects.hash(requestedTestAcquirerResponseCode, requestedTestErrorResponseCode, allowPartialAuth, authorisationType, autoRescue, customRoutingFlag, industryUsage, manualCapture, maxDaysToRescue, networkTxReference, overwriteBrand, subMerchantCity, subMerchantCountry, subMerchantEmail, subMerchantID, subMerchantName, subMerchantPhoneNumber, subMerchantPostalCode, subMerchantState, subMerchantStreet, subMerchantTaxId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataCommon {\n"); - sb.append(" requestedTestAcquirerResponseCode: ") - .append(toIndentedString(requestedTestAcquirerResponseCode)) - .append("\n"); - sb.append(" requestedTestErrorResponseCode: ") - .append(toIndentedString(requestedTestErrorResponseCode)) - .append("\n"); + sb.append(" requestedTestAcquirerResponseCode: ").append(toIndentedString(requestedTestAcquirerResponseCode)).append("\n"); + sb.append(" requestedTestErrorResponseCode: ").append(toIndentedString(requestedTestErrorResponseCode)).append("\n"); sb.append(" allowPartialAuth: ").append(toIndentedString(allowPartialAuth)).append("\n"); sb.append(" authorisationType: ").append(toIndentedString(authorisationType)).append("\n"); sb.append(" autoRescue: ").append(toIndentedString(autoRescue)).append("\n"); @@ -1369,12 +890,8 @@ public String toString() { sb.append(" subMerchantEmail: ").append(toIndentedString(subMerchantEmail)).append("\n"); sb.append(" subMerchantID: ").append(toIndentedString(subMerchantID)).append("\n"); sb.append(" subMerchantName: ").append(toIndentedString(subMerchantName)).append("\n"); - sb.append(" subMerchantPhoneNumber: ") - .append(toIndentedString(subMerchantPhoneNumber)) - .append("\n"); - sb.append(" subMerchantPostalCode: ") - .append(toIndentedString(subMerchantPostalCode)) - .append("\n"); + sb.append(" subMerchantPhoneNumber: ").append(toIndentedString(subMerchantPhoneNumber)).append("\n"); + sb.append(" subMerchantPostalCode: ").append(toIndentedString(subMerchantPostalCode)).append("\n"); sb.append(" subMerchantState: ").append(toIndentedString(subMerchantState)).append("\n"); sb.append(" subMerchantStreet: ").append(toIndentedString(subMerchantStreet)).append("\n"); sb.append(" subMerchantTaxId: ").append(toIndentedString(subMerchantTaxId)).append("\n"); @@ -1383,7 +900,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1392,23 +910,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalDataCommon given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataCommon - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataCommon + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataCommon */ public static AdditionalDataCommon fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataCommon.class); } - - /** - * Convert an instance of AdditionalDataCommon to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalDataCommon to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataLevel23.java b/src/main/java/com/adyen/model/payment/AdditionalDataLevel23.java index 2931e0bb5..0f1699fd3 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataLevel23.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataLevel23.java @@ -2,22 +2,31 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AdditionalDataLevel23 */ + +/** + * AdditionalDataLevel23 + */ @JsonPropertyOrder({ AdditionalDataLevel23.JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE, AdditionalDataLevel23.JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_COUNTRY_CODE, @@ -37,106 +46,76 @@ AdditionalDataLevel23.JSON_PROPERTY_ENHANCED_SCHEME_DATA_SHIP_FROM_POSTAL_CODE, AdditionalDataLevel23.JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT }) + public class AdditionalDataLevel23 { - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE = - "enhancedSchemeData.customerReference"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE = "enhancedSchemeData.customerReference"; private String enhancedSchemeDataCustomerReference; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_COUNTRY_CODE = - "enhancedSchemeData.destinationCountryCode"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_COUNTRY_CODE = "enhancedSchemeData.destinationCountryCode"; private String enhancedSchemeDataDestinationCountryCode; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_POSTAL_CODE = - "enhancedSchemeData.destinationPostalCode"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_POSTAL_CODE = "enhancedSchemeData.destinationPostalCode"; private String enhancedSchemeDataDestinationPostalCode; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_STATE_PROVINCE_CODE = - "enhancedSchemeData.destinationStateProvinceCode"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_STATE_PROVINCE_CODE = "enhancedSchemeData.destinationStateProvinceCode"; private String enhancedSchemeDataDestinationStateProvinceCode; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_DUTY_AMOUNT = - "enhancedSchemeData.dutyAmount"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_DUTY_AMOUNT = "enhancedSchemeData.dutyAmount"; private String enhancedSchemeDataDutyAmount; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_FREIGHT_AMOUNT = - "enhancedSchemeData.freightAmount"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_FREIGHT_AMOUNT = "enhancedSchemeData.freightAmount"; private String enhancedSchemeDataFreightAmount; - public static final String - JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_COMMODITY_CODE = - "enhancedSchemeData.itemDetailLine[itemNr].commodityCode"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_COMMODITY_CODE = "enhancedSchemeData.itemDetailLine[itemNr].commodityCode"; private String enhancedSchemeDataItemDetailLineItemNrCommodityCode; - public static final String - JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DESCRIPTION = - "enhancedSchemeData.itemDetailLine[itemNr].description"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DESCRIPTION = "enhancedSchemeData.itemDetailLine[itemNr].description"; private String enhancedSchemeDataItemDetailLineItemNrDescription; - public static final String - JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DISCOUNT_AMOUNT = - "enhancedSchemeData.itemDetailLine[itemNr].discountAmount"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DISCOUNT_AMOUNT = "enhancedSchemeData.itemDetailLine[itemNr].discountAmount"; private String enhancedSchemeDataItemDetailLineItemNrDiscountAmount; - public static final String - JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_PRODUCT_CODE = - "enhancedSchemeData.itemDetailLine[itemNr].productCode"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_PRODUCT_CODE = "enhancedSchemeData.itemDetailLine[itemNr].productCode"; private String enhancedSchemeDataItemDetailLineItemNrProductCode; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_QUANTITY = - "enhancedSchemeData.itemDetailLine[itemNr].quantity"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_QUANTITY = "enhancedSchemeData.itemDetailLine[itemNr].quantity"; private String enhancedSchemeDataItemDetailLineItemNrQuantity; - public static final String - JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_TOTAL_AMOUNT = - "enhancedSchemeData.itemDetailLine[itemNr].totalAmount"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_TOTAL_AMOUNT = "enhancedSchemeData.itemDetailLine[itemNr].totalAmount"; private String enhancedSchemeDataItemDetailLineItemNrTotalAmount; - public static final String - JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_UNIT_OF_MEASURE = - "enhancedSchemeData.itemDetailLine[itemNr].unitOfMeasure"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_UNIT_OF_MEASURE = "enhancedSchemeData.itemDetailLine[itemNr].unitOfMeasure"; private String enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure; - public static final String - JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_UNIT_PRICE = - "enhancedSchemeData.itemDetailLine[itemNr].unitPrice"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_UNIT_PRICE = "enhancedSchemeData.itemDetailLine[itemNr].unitPrice"; private String enhancedSchemeDataItemDetailLineItemNrUnitPrice; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ORDER_DATE = - "enhancedSchemeData.orderDate"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ORDER_DATE = "enhancedSchemeData.orderDate"; private String enhancedSchemeDataOrderDate; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_SHIP_FROM_POSTAL_CODE = - "enhancedSchemeData.shipFromPostalCode"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_SHIP_FROM_POSTAL_CODE = "enhancedSchemeData.shipFromPostalCode"; private String enhancedSchemeDataShipFromPostalCode; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT = - "enhancedSchemeData.totalTaxAmount"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT = "enhancedSchemeData.totalTaxAmount"; private String enhancedSchemeDataTotalTaxAmount; - public AdditionalDataLevel23() {} + public AdditionalDataLevel23() { + } /** - * The reference number to identify the customer and their order. * Encoding: ASCII * Max length: - * 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The reference number to identify the customer and their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataCustomerReference The reference number to identify the customer and - * their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or - * be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataCustomerReference The reference number to identify the customer and their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataCustomerReference( - String enhancedSchemeDataCustomerReference) { + public AdditionalDataLevel23 enhancedSchemeDataCustomerReference(String enhancedSchemeDataCustomerReference) { this.enhancedSchemeDataCustomerReference = enhancedSchemeDataCustomerReference; return this; } /** - * The reference number to identify the customer and their order. * Encoding: ASCII * Max length: - * 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. - * - * @return enhancedSchemeDataCustomerReference The reference number to identify the customer and - * their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or - * be all spaces. * Must not be all zeros. + * The reference number to identify the customer and their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @return enhancedSchemeDataCustomerReference The reference number to identify the customer and their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,12 +124,9 @@ public String getEnhancedSchemeDataCustomerReference() { } /** - * The reference number to identify the customer and their order. * Encoding: ASCII * Max length: - * 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The reference number to identify the customer and their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataCustomerReference The reference number to identify the customer and - * their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or - * be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataCustomerReference The reference number to identify the customer and their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,29 +135,19 @@ public void setEnhancedSchemeDataCustomerReference(String enhancedSchemeDataCust } /** - * The three-letter [ISO 3166-1 alpha-3 country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * - * Encoding: ASCII * Fixed length: 3 characters + * The three-letter [ISO 3166-1 alpha-3 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * Encoding: ASCII * Fixed length: 3 characters * - * @param enhancedSchemeDataDestinationCountryCode The three-letter [ISO 3166-1 alpha-3 country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * - * Encoding: ASCII * Fixed length: 3 characters + * @param enhancedSchemeDataDestinationCountryCode The three-letter [ISO 3166-1 alpha-3 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * Encoding: ASCII * Fixed length: 3 characters * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataDestinationCountryCode( - String enhancedSchemeDataDestinationCountryCode) { + public AdditionalDataLevel23 enhancedSchemeDataDestinationCountryCode(String enhancedSchemeDataDestinationCountryCode) { this.enhancedSchemeDataDestinationCountryCode = enhancedSchemeDataDestinationCountryCode; return this; } /** - * The three-letter [ISO 3166-1 alpha-3 country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * - * Encoding: ASCII * Fixed length: 3 characters - * - * @return enhancedSchemeDataDestinationCountryCode The three-letter [ISO 3166-1 alpha-3 country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * - * Encoding: ASCII * Fixed length: 3 characters + * The three-letter [ISO 3166-1 alpha-3 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * Encoding: ASCII * Fixed length: 3 characters + * @return enhancedSchemeDataDestinationCountryCode The three-letter [ISO 3166-1 alpha-3 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * Encoding: ASCII * Fixed length: 3 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,49 +156,30 @@ public String getEnhancedSchemeDataDestinationCountryCode() { } /** - * The three-letter [ISO 3166-1 alpha-3 country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * - * Encoding: ASCII * Fixed length: 3 characters + * The three-letter [ISO 3166-1 alpha-3 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * Encoding: ASCII * Fixed length: 3 characters * - * @param enhancedSchemeDataDestinationCountryCode The three-letter [ISO 3166-1 alpha-3 country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * - * Encoding: ASCII * Fixed length: 3 characters + * @param enhancedSchemeDataDestinationCountryCode The three-letter [ISO 3166-1 alpha-3 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * Encoding: ASCII * Fixed length: 3 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataDestinationCountryCode( - String enhancedSchemeDataDestinationCountryCode) { + public void setEnhancedSchemeDataDestinationCountryCode(String enhancedSchemeDataDestinationCountryCode) { this.enhancedSchemeDataDestinationCountryCode = enhancedSchemeDataDestinationCountryCode; } /** - * The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * - * Must not start with a space. * For the US, it must be in five or nine digits format. For - * example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B - * 1G5. + * The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. * - * @param enhancedSchemeDataDestinationPostalCode The postal code of the destination address. * - * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it - * must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it - * must be in 6 digits format. For example, M4B 1G5. + * @param enhancedSchemeDataDestinationPostalCode The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataDestinationPostalCode( - String enhancedSchemeDataDestinationPostalCode) { + public AdditionalDataLevel23 enhancedSchemeDataDestinationPostalCode(String enhancedSchemeDataDestinationPostalCode) { this.enhancedSchemeDataDestinationPostalCode = enhancedSchemeDataDestinationPostalCode; return this; } /** - * The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * - * Must not start with a space. * For the US, it must be in five or nine digits format. For - * example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B - * 1G5. - * - * @return enhancedSchemeDataDestinationPostalCode The postal code of the destination address. * - * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it - * must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it - * must be in 6 digits format. For example, M4B 1G5. + * The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. + * @return enhancedSchemeDataDestinationPostalCode The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -241,46 +188,30 @@ public String getEnhancedSchemeDataDestinationPostalCode() { } /** - * The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * - * Must not start with a space. * For the US, it must be in five or nine digits format. For - * example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B - * 1G5. + * The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. * - * @param enhancedSchemeDataDestinationPostalCode The postal code of the destination address. * - * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it - * must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it - * must be in 6 digits format. For example, M4B 1G5. + * @param enhancedSchemeDataDestinationPostalCode The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataDestinationPostalCode( - String enhancedSchemeDataDestinationPostalCode) { + public void setEnhancedSchemeDataDestinationPostalCode(String enhancedSchemeDataDestinationPostalCode) { this.enhancedSchemeDataDestinationPostalCode = enhancedSchemeDataDestinationPostalCode; } /** - * The state or province code of the destination address. * Encoding: ASCII * Max length: 3 - * characters * Must not start with a space. + * The state or province code of the destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a space. * - * @param enhancedSchemeDataDestinationStateProvinceCode The state or province code of the - * destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a - * space. + * @param enhancedSchemeDataDestinationStateProvinceCode The state or province code of the destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a space. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataDestinationStateProvinceCode( - String enhancedSchemeDataDestinationStateProvinceCode) { - this.enhancedSchemeDataDestinationStateProvinceCode = - enhancedSchemeDataDestinationStateProvinceCode; + public AdditionalDataLevel23 enhancedSchemeDataDestinationStateProvinceCode(String enhancedSchemeDataDestinationStateProvinceCode) { + this.enhancedSchemeDataDestinationStateProvinceCode = enhancedSchemeDataDestinationStateProvinceCode; return this; } /** - * The state or province code of the destination address. * Encoding: ASCII * Max length: 3 - * characters * Must not start with a space. - * - * @return enhancedSchemeDataDestinationStateProvinceCode The state or province code of the - * destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a - * space. + * The state or province code of the destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a space. + * @return enhancedSchemeDataDestinationStateProvinceCode The state or province code of the destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a space. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_STATE_PROVINCE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -289,29 +220,20 @@ public String getEnhancedSchemeDataDestinationStateProvinceCode() { } /** - * The state or province code of the destination address. * Encoding: ASCII * Max length: 3 - * characters * Must not start with a space. + * The state or province code of the destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a space. * - * @param enhancedSchemeDataDestinationStateProvinceCode The state or province code of the - * destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a - * space. + * @param enhancedSchemeDataDestinationStateProvinceCode The state or province code of the destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a space. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_STATE_PROVINCE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataDestinationStateProvinceCode( - String enhancedSchemeDataDestinationStateProvinceCode) { - this.enhancedSchemeDataDestinationStateProvinceCode = - enhancedSchemeDataDestinationStateProvinceCode; + public void setEnhancedSchemeDataDestinationStateProvinceCode(String enhancedSchemeDataDestinationStateProvinceCode) { + this.enhancedSchemeDataDestinationStateProvinceCode = enhancedSchemeDataDestinationStateProvinceCode; } /** - * The duty tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means - * USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * - * @param enhancedSchemeDataDutyAmount The duty tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 - * means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * @param enhancedSchemeDataDutyAmount The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ public AdditionalDataLevel23 enhancedSchemeDataDutyAmount(String enhancedSchemeDataDutyAmount) { @@ -320,13 +242,8 @@ public AdditionalDataLevel23 enhancedSchemeDataDutyAmount(String enhancedSchemeD } /** - * The duty tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means - * USD 20.00. * Encoding: Numeric * Max length: 12 characters - * - * @return enhancedSchemeDataDutyAmount The duty tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 - * means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * @return enhancedSchemeDataDutyAmount The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_DUTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -335,13 +252,9 @@ public String getEnhancedSchemeDataDutyAmount() { } /** - * The duty tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means - * USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * - * @param enhancedSchemeDataDutyAmount The duty tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 - * means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * @param enhancedSchemeDataDutyAmount The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_DUTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -350,29 +263,19 @@ public void setEnhancedSchemeDataDutyAmount(String enhancedSchemeDataDutyAmount) } /** - * The shipping amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means - * USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * - * @param enhancedSchemeDataFreightAmount The shipping amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 - * means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * @param enhancedSchemeDataFreightAmount The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataFreightAmount( - String enhancedSchemeDataFreightAmount) { + public AdditionalDataLevel23 enhancedSchemeDataFreightAmount(String enhancedSchemeDataFreightAmount) { this.enhancedSchemeDataFreightAmount = enhancedSchemeDataFreightAmount; return this; } /** - * The shipping amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means - * USD 20.00. * Encoding: Numeric * Max length: 12 characters - * - * @return enhancedSchemeDataFreightAmount The shipping amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 - * means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * @return enhancedSchemeDataFreightAmount The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_FREIGHT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -381,13 +284,9 @@ public String getEnhancedSchemeDataFreightAmount() { } /** - * The shipping amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means - * USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * - * @param enhancedSchemeDataFreightAmount The shipping amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 - * means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * @param enhancedSchemeDataFreightAmount The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_FREIGHT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -396,44 +295,19 @@ public void setEnhancedSchemeDataFreightAmount(String enhancedSchemeDataFreightA } /** - * The code that identifies the item in a standardized commodity coding scheme. There are - * different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS - * commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS - * commodity codes](https://www.census.gov/naics/) * [NAPCS commodity - * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * - * Must not start with a space or be all spaces. * Must not be all zeros. + * The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in - * a standardized commodity coding scheme. There are different commodity coding schemes: * - * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity - * codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity - * codes](https://www.census.gov/naics/) * [NAPCS commodity - * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * - * Must not start with a space or be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrCommodityCode( - String enhancedSchemeDataItemDetailLineItemNrCommodityCode) { - this.enhancedSchemeDataItemDetailLineItemNrCommodityCode = - enhancedSchemeDataItemDetailLineItemNrCommodityCode; + public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrCommodityCode(String enhancedSchemeDataItemDetailLineItemNrCommodityCode) { + this.enhancedSchemeDataItemDetailLineItemNrCommodityCode = enhancedSchemeDataItemDetailLineItemNrCommodityCode; return this; } /** - * The code that identifies the item in a standardized commodity coding scheme. There are - * different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS - * commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS - * commodity codes](https://www.census.gov/naics/) * [NAPCS commodity - * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * - * Must not start with a space or be all spaces. * Must not be all zeros. - * - * @return enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item - * in a standardized commodity coding scheme. There are different commodity coding schemes: * - * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity - * codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity - * codes](https://www.census.gov/naics/) * [NAPCS commodity - * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * - * Must not start with a space or be all spaces. * Must not be all zeros. + * The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @return enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_COMMODITY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -442,68 +316,30 @@ public String getEnhancedSchemeDataItemDetailLineItemNrCommodityCode() { } /** - * The code that identifies the item in a standardized commodity coding scheme. There are - * different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS - * commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS - * commodity codes](https://www.census.gov/naics/) * [NAPCS commodity - * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * - * Must not start with a space or be all spaces. * Must not be all zeros. + * The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in - * a standardized commodity coding scheme. There are different commodity coding schemes: * - * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity - * codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity - * codes](https://www.census.gov/naics/) * [NAPCS commodity - * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * - * Must not start with a space or be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_COMMODITY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataItemDetailLineItemNrCommodityCode( - String enhancedSchemeDataItemDetailLineItemNrCommodityCode) { - this.enhancedSchemeDataItemDetailLineItemNrCommodityCode = - enhancedSchemeDataItemDetailLineItemNrCommodityCode; + public void setEnhancedSchemeDataItemDetailLineItemNrCommodityCode(String enhancedSchemeDataItemDetailLineItemNrCommodityCode) { + this.enhancedSchemeDataItemDetailLineItemNrCommodityCode = enhancedSchemeDataItemDetailLineItemNrCommodityCode; } /** - * A description of the item, that provides details about the purchase. For Visa transactions with - * level 3 ESD, the description must not be the same or very similar to your merchant name, or, - * consist only of common words like \"product\", or \"service\". * Encoding: - * ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must - * not be all special characters. * Must not be blank. * Must not start with a space or be all - * spaces. * Must not be all zeros. + * A description of the item, that provides details about the purchase. For Visa transactions with level 3 ESD, the description must not be the same or very similar to your merchant name, or, consist only of common words like \"product\", or \"service\". * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not be all special characters. * Must not be blank. * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrDescription A description of the item, that - * provides details about the purchase. For Visa transactions with level 3 ESD, the - * description must not be the same or very similar to your merchant name, or, consist only of - * common words like \"product\", or \"service\". * Encoding: ASCII * Max - * length: 26 characters * Must not be a single character. * Must not be blank. * Must not be - * all special characters. * Must not be blank. * Must not start with a space or be all - * spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrDescription A description of the item, that provides details about the purchase. For Visa transactions with level 3 ESD, the description must not be the same or very similar to your merchant name, or, consist only of common words like \"product\", or \"service\". * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not be all special characters. * Must not be blank. * Must not start with a space or be all spaces. * Must not be all zeros. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrDescription( - String enhancedSchemeDataItemDetailLineItemNrDescription) { - this.enhancedSchemeDataItemDetailLineItemNrDescription = - enhancedSchemeDataItemDetailLineItemNrDescription; + public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrDescription(String enhancedSchemeDataItemDetailLineItemNrDescription) { + this.enhancedSchemeDataItemDetailLineItemNrDescription = enhancedSchemeDataItemDetailLineItemNrDescription; return this; } /** - * A description of the item, that provides details about the purchase. For Visa transactions with - * level 3 ESD, the description must not be the same or very similar to your merchant name, or, - * consist only of common words like \"product\", or \"service\". * Encoding: - * ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must - * not be all special characters. * Must not be blank. * Must not start with a space or be all - * spaces. * Must not be all zeros. - * - * @return enhancedSchemeDataItemDetailLineItemNrDescription A description of the item, that - * provides details about the purchase. For Visa transactions with level 3 ESD, the - * description must not be the same or very similar to your merchant name, or, consist only of - * common words like \"product\", or \"service\". * Encoding: ASCII * Max - * length: 26 characters * Must not be a single character. * Must not be blank. * Must not be - * all special characters. * Must not be blank. * Must not start with a space or be all - * spaces. * Must not be all zeros. + * A description of the item, that provides details about the purchase. For Visa transactions with level 3 ESD, the description must not be the same or very similar to your merchant name, or, consist only of common words like \"product\", or \"service\". * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not be all special characters. * Must not be blank. * Must not start with a space or be all spaces. * Must not be all zeros. + * @return enhancedSchemeDataItemDetailLineItemNrDescription A description of the item, that provides details about the purchase. For Visa transactions with level 3 ESD, the description must not be the same or very similar to your merchant name, or, consist only of common words like \"product\", or \"service\". * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not be all special characters. * Must not be blank. * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -512,54 +348,30 @@ public String getEnhancedSchemeDataItemDetailLineItemNrDescription() { } /** - * A description of the item, that provides details about the purchase. For Visa transactions with - * level 3 ESD, the description must not be the same or very similar to your merchant name, or, - * consist only of common words like \"product\", or \"service\". * Encoding: - * ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must - * not be all special characters. * Must not be blank. * Must not start with a space or be all - * spaces. * Must not be all zeros. + * A description of the item, that provides details about the purchase. For Visa transactions with level 3 ESD, the description must not be the same or very similar to your merchant name, or, consist only of common words like \"product\", or \"service\". * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not be all special characters. * Must not be blank. * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrDescription A description of the item, that - * provides details about the purchase. For Visa transactions with level 3 ESD, the - * description must not be the same or very similar to your merchant name, or, consist only of - * common words like \"product\", or \"service\". * Encoding: ASCII * Max - * length: 26 characters * Must not be a single character. * Must not be blank. * Must not be - * all special characters. * Must not be blank. * Must not start with a space or be all - * spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrDescription A description of the item, that provides details about the purchase. For Visa transactions with level 3 ESD, the description must not be the same or very similar to your merchant name, or, consist only of common words like \"product\", or \"service\". * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not be all special characters. * Must not be blank. * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataItemDetailLineItemNrDescription( - String enhancedSchemeDataItemDetailLineItemNrDescription) { - this.enhancedSchemeDataItemDetailLineItemNrDescription = - enhancedSchemeDataItemDetailLineItemNrDescription; + public void setEnhancedSchemeDataItemDetailLineItemNrDescription(String enhancedSchemeDataItemDetailLineItemNrDescription) { + this.enhancedSchemeDataItemDetailLineItemNrDescription = enhancedSchemeDataItemDetailLineItemNrDescription; } /** - * The discount amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means - * USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The discount amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * - * @param enhancedSchemeDataItemDetailLineItemNrDiscountAmount The discount amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 - * means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * @param enhancedSchemeDataItemDetailLineItemNrDiscountAmount The discount amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrDiscountAmount( - String enhancedSchemeDataItemDetailLineItemNrDiscountAmount) { - this.enhancedSchemeDataItemDetailLineItemNrDiscountAmount = - enhancedSchemeDataItemDetailLineItemNrDiscountAmount; + public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrDiscountAmount(String enhancedSchemeDataItemDetailLineItemNrDiscountAmount) { + this.enhancedSchemeDataItemDetailLineItemNrDiscountAmount = enhancedSchemeDataItemDetailLineItemNrDiscountAmount; return this; } /** - * The discount amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means - * USD 20.00. * Encoding: Numeric * Max length: 12 characters - * - * @return enhancedSchemeDataItemDetailLineItemNrDiscountAmount The discount amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 - * means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The discount amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * @return enhancedSchemeDataItemDetailLineItemNrDiscountAmount The discount amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DISCOUNT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -568,51 +380,30 @@ public String getEnhancedSchemeDataItemDetailLineItemNrDiscountAmount() { } /** - * The discount amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means - * USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The discount amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * - * @param enhancedSchemeDataItemDetailLineItemNrDiscountAmount The discount amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 - * means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * @param enhancedSchemeDataItemDetailLineItemNrDiscountAmount The discount amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DISCOUNT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataItemDetailLineItemNrDiscountAmount( - String enhancedSchemeDataItemDetailLineItemNrDiscountAmount) { - this.enhancedSchemeDataItemDetailLineItemNrDiscountAmount = - enhancedSchemeDataItemDetailLineItemNrDiscountAmount; + public void setEnhancedSchemeDataItemDetailLineItemNrDiscountAmount(String enhancedSchemeDataItemDetailLineItemNrDiscountAmount) { + this.enhancedSchemeDataItemDetailLineItemNrDiscountAmount = enhancedSchemeDataItemDetailLineItemNrDiscountAmount; } /** - * The product code. Must be a unique product code associated with the item or service. This can - * be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * - * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all - * zeros. + * The product code. Must be a unique product code associated with the item or service. This can be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrProductCode The product code. Must be a unique - * product code associated with the item or service. This can be your unique code for the - * item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 - * characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrProductCode The product code. Must be a unique product code associated with the item or service. This can be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrProductCode( - String enhancedSchemeDataItemDetailLineItemNrProductCode) { - this.enhancedSchemeDataItemDetailLineItemNrProductCode = - enhancedSchemeDataItemDetailLineItemNrProductCode; + public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrProductCode(String enhancedSchemeDataItemDetailLineItemNrProductCode) { + this.enhancedSchemeDataItemDetailLineItemNrProductCode = enhancedSchemeDataItemDetailLineItemNrProductCode; return this; } /** - * The product code. Must be a unique product code associated with the item or service. This can - * be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * - * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all - * zeros. - * - * @return enhancedSchemeDataItemDetailLineItemNrProductCode The product code. Must be a unique - * product code associated with the item or service. This can be your unique code for the - * item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 - * characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The product code. Must be a unique product code associated with the item or service. This can be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @return enhancedSchemeDataItemDetailLineItemNrProductCode The product code. Must be a unique product code associated with the item or service. This can be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_PRODUCT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -621,47 +412,30 @@ public String getEnhancedSchemeDataItemDetailLineItemNrProductCode() { } /** - * The product code. Must be a unique product code associated with the item or service. This can - * be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * - * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all - * zeros. + * The product code. Must be a unique product code associated with the item or service. This can be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrProductCode The product code. Must be a unique - * product code associated with the item or service. This can be your unique code for the - * item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 - * characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrProductCode The product code. Must be a unique product code associated with the item or service. This can be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_PRODUCT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataItemDetailLineItemNrProductCode( - String enhancedSchemeDataItemDetailLineItemNrProductCode) { - this.enhancedSchemeDataItemDetailLineItemNrProductCode = - enhancedSchemeDataItemDetailLineItemNrProductCode; + public void setEnhancedSchemeDataItemDetailLineItemNrProductCode(String enhancedSchemeDataItemDetailLineItemNrProductCode) { + this.enhancedSchemeDataItemDetailLineItemNrProductCode = enhancedSchemeDataItemDetailLineItemNrProductCode; } /** - * The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 - * characters * Must not start with a space or be all spaces. + * The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a space or be all spaces. * - * @param enhancedSchemeDataItemDetailLineItemNrQuantity The number of items. Must be an integer - * greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a - * space or be all spaces. + * @param enhancedSchemeDataItemDetailLineItemNrQuantity The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a space or be all spaces. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrQuantity( - String enhancedSchemeDataItemDetailLineItemNrQuantity) { - this.enhancedSchemeDataItemDetailLineItemNrQuantity = - enhancedSchemeDataItemDetailLineItemNrQuantity; + public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrQuantity(String enhancedSchemeDataItemDetailLineItemNrQuantity) { + this.enhancedSchemeDataItemDetailLineItemNrQuantity = enhancedSchemeDataItemDetailLineItemNrQuantity; return this; } /** - * The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 - * characters * Must not start with a space or be all spaces. - * - * @return enhancedSchemeDataItemDetailLineItemNrQuantity The number of items. Must be an integer - * greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a - * space or be all spaces. + * The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a space or be all spaces. + * @return enhancedSchemeDataItemDetailLineItemNrQuantity The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a space or be all spaces. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -670,62 +444,30 @@ public String getEnhancedSchemeDataItemDetailLineItemNrQuantity() { } /** - * The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 - * characters * Must not start with a space or be all spaces. + * The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a space or be all spaces. * - * @param enhancedSchemeDataItemDetailLineItemNrQuantity The number of items. Must be an integer - * greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a - * space or be all spaces. + * @param enhancedSchemeDataItemDetailLineItemNrQuantity The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a space or be all spaces. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataItemDetailLineItemNrQuantity( - String enhancedSchemeDataItemDetailLineItemNrQuantity) { - this.enhancedSchemeDataItemDetailLineItemNrQuantity = - enhancedSchemeDataItemDetailLineItemNrQuantity; + public void setEnhancedSchemeDataItemDetailLineItemNrQuantity(String enhancedSchemeDataItemDetailLineItemNrQuantity) { + this.enhancedSchemeDataItemDetailLineItemNrQuantity = enhancedSchemeDataItemDetailLineItemNrQuantity; } /** - * The total amount for the line item, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements - * for level 2/3 - * ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) - * to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. - * * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all - * zeros. + * The total amount for the line item, in [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements for level 2/3 ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrTotalAmount The total amount for the line item, in - * [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount - * requirements for level 2/3 - * ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) - * to learn more about how to calculate the line item total. * For example, 2000 means USD - * 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must - * not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrTotalAmount The total amount for the line item, in [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements for level 2/3 ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrTotalAmount( - String enhancedSchemeDataItemDetailLineItemNrTotalAmount) { - this.enhancedSchemeDataItemDetailLineItemNrTotalAmount = - enhancedSchemeDataItemDetailLineItemNrTotalAmount; + public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrTotalAmount(String enhancedSchemeDataItemDetailLineItemNrTotalAmount) { + this.enhancedSchemeDataItemDetailLineItemNrTotalAmount = enhancedSchemeDataItemDetailLineItemNrTotalAmount; return this; } /** - * The total amount for the line item, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements - * for level 2/3 - * ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) - * to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. - * * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all - * zeros. - * - * @return enhancedSchemeDataItemDetailLineItemNrTotalAmount The total amount for the line item, - * in [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount - * requirements for level 2/3 - * ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) - * to learn more about how to calculate the line item total. * For example, 2000 means USD - * 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must - * not be all zeros. + * The total amount for the line item, in [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements for level 2/3 ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @return enhancedSchemeDataItemDetailLineItemNrTotalAmount The total amount for the line item, in [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements for level 2/3 ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_TOTAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -734,53 +476,30 @@ public String getEnhancedSchemeDataItemDetailLineItemNrTotalAmount() { } /** - * The total amount for the line item, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements - * for level 2/3 - * ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) - * to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. - * * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all - * zeros. + * The total amount for the line item, in [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements for level 2/3 ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrTotalAmount The total amount for the line item, in - * [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount - * requirements for level 2/3 - * ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) - * to learn more about how to calculate the line item total. * For example, 2000 means USD - * 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must - * not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrTotalAmount The total amount for the line item, in [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements for level 2/3 ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_TOTAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataItemDetailLineItemNrTotalAmount( - String enhancedSchemeDataItemDetailLineItemNrTotalAmount) { - this.enhancedSchemeDataItemDetailLineItemNrTotalAmount = - enhancedSchemeDataItemDetailLineItemNrTotalAmount; + public void setEnhancedSchemeDataItemDetailLineItemNrTotalAmount(String enhancedSchemeDataItemDetailLineItemNrTotalAmount) { + this.enhancedSchemeDataItemDetailLineItemNrTotalAmount = enhancedSchemeDataItemDetailLineItemNrTotalAmount; } /** - * The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not - * start with a space or be all spaces. * Must not be all zeros. + * The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure The unit of measurement for an item. - * * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all - * spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure( - String enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure) { - this.enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure = - enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure; + public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure(String enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure) { + this.enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure = enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure; return this; } /** - * The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not - * start with a space or be all spaces. * Must not be all zeros. - * - * @return enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure The unit of measurement for an - * item. * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all - * spaces. * Must not be all zeros. + * The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @return enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_UNIT_OF_MEASURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -789,46 +508,30 @@ public String getEnhancedSchemeDataItemDetailLineItemNrUnitOfMeasure() { } /** - * The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not - * start with a space or be all spaces. * Must not be all zeros. + * The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure The unit of measurement for an item. - * * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all - * spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_UNIT_OF_MEASURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataItemDetailLineItemNrUnitOfMeasure( - String enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure) { - this.enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure = - enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure; + public void setEnhancedSchemeDataItemDetailLineItemNrUnitOfMeasure(String enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure) { + this.enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure = enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure; } /** - * The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not - * be all zeros. + * The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrUnitPrice The unit price in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 - * means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrUnitPrice The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrUnitPrice( - String enhancedSchemeDataItemDetailLineItemNrUnitPrice) { - this.enhancedSchemeDataItemDetailLineItemNrUnitPrice = - enhancedSchemeDataItemDetailLineItemNrUnitPrice; + public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrUnitPrice(String enhancedSchemeDataItemDetailLineItemNrUnitPrice) { + this.enhancedSchemeDataItemDetailLineItemNrUnitPrice = enhancedSchemeDataItemDetailLineItemNrUnitPrice; return this; } /** - * The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not - * be all zeros. - * - * @return enhancedSchemeDataItemDetailLineItemNrUnitPrice The unit price in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 - * means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * @return enhancedSchemeDataItemDetailLineItemNrUnitPrice The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_UNIT_PRICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -837,27 +540,20 @@ public String getEnhancedSchemeDataItemDetailLineItemNrUnitPrice() { } /** - * The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not - * be all zeros. + * The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrUnitPrice The unit price in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 - * means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrUnitPrice The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_UNIT_PRICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataItemDetailLineItemNrUnitPrice( - String enhancedSchemeDataItemDetailLineItemNrUnitPrice) { - this.enhancedSchemeDataItemDetailLineItemNrUnitPrice = - enhancedSchemeDataItemDetailLineItemNrUnitPrice; + public void setEnhancedSchemeDataItemDetailLineItemNrUnitPrice(String enhancedSchemeDataItemDetailLineItemNrUnitPrice) { + this.enhancedSchemeDataItemDetailLineItemNrUnitPrice = enhancedSchemeDataItemDetailLineItemNrUnitPrice; } /** * The order date. * Format: `ddMMyy` * Encoding: ASCII * Max length: 6 characters * - * @param enhancedSchemeDataOrderDate The order date. * Format: `ddMMyy` * Encoding: - * ASCII * Max length: 6 characters + * @param enhancedSchemeDataOrderDate The order date. * Format: `ddMMyy` * Encoding: ASCII * Max length: 6 characters * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ public AdditionalDataLevel23 enhancedSchemeDataOrderDate(String enhancedSchemeDataOrderDate) { @@ -867,9 +563,7 @@ public AdditionalDataLevel23 enhancedSchemeDataOrderDate(String enhancedSchemeDa /** * The order date. * Format: `ddMMyy` * Encoding: ASCII * Max length: 6 characters - * - * @return enhancedSchemeDataOrderDate The order date. * Format: `ddMMyy` * Encoding: - * ASCII * Max length: 6 characters + * @return enhancedSchemeDataOrderDate The order date. * Format: `ddMMyy` * Encoding: ASCII * Max length: 6 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ORDER_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -880,8 +574,7 @@ public String getEnhancedSchemeDataOrderDate() { /** * The order date. * Format: `ddMMyy` * Encoding: ASCII * Max length: 6 characters * - * @param enhancedSchemeDataOrderDate The order date. * Format: `ddMMyy` * Encoding: - * ASCII * Max length: 6 characters + * @param enhancedSchemeDataOrderDate The order date. * Format: `ddMMyy` * Encoding: ASCII * Max length: 6 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ORDER_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -890,35 +583,19 @@ public void setEnhancedSchemeDataOrderDate(String enhancedSchemeDataOrderDate) { } /** - * The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: - * 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the - * US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, - * it must be in 6 digits format. For example, M4B 1G5. + * The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. * - * @param enhancedSchemeDataShipFromPostalCode The postal code of the address where the item is - * shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space - * or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits - * format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For - * example, M4B 1G5. + * @param enhancedSchemeDataShipFromPostalCode The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataShipFromPostalCode( - String enhancedSchemeDataShipFromPostalCode) { + public AdditionalDataLevel23 enhancedSchemeDataShipFromPostalCode(String enhancedSchemeDataShipFromPostalCode) { this.enhancedSchemeDataShipFromPostalCode = enhancedSchemeDataShipFromPostalCode; return this; } /** - * The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: - * 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the - * US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, - * it must be in 6 digits format. For example, M4B 1G5. - * - * @return enhancedSchemeDataShipFromPostalCode The postal code of the address where the item is - * shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space - * or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits - * format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For - * example, M4B 1G5. + * The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. + * @return enhancedSchemeDataShipFromPostalCode The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_SHIP_FROM_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -927,16 +604,9 @@ public String getEnhancedSchemeDataShipFromPostalCode() { } /** - * The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: - * 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the - * US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, - * it must be in 6 digits format. For example, M4B 1G5. + * The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. * - * @param enhancedSchemeDataShipFromPostalCode The postal code of the address where the item is - * shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space - * or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits - * format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For - * example, M4B 1G5. + * @param enhancedSchemeDataShipFromPostalCode The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_SHIP_FROM_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -945,37 +615,19 @@ public void setEnhancedSchemeDataShipFromPostalCode(String enhancedSchemeDataShi } /** - * The amount of state or provincial [tax included in the total transaction - * amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), - * in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, - * 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. * - * @param enhancedSchemeDataTotalTaxAmount The amount of state or provincial [tax included in the - * total transaction - * amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), - * in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For - * example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not - * be all zeros. + * @param enhancedSchemeDataTotalTaxAmount The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataTotalTaxAmount( - String enhancedSchemeDataTotalTaxAmount) { + public AdditionalDataLevel23 enhancedSchemeDataTotalTaxAmount(String enhancedSchemeDataTotalTaxAmount) { this.enhancedSchemeDataTotalTaxAmount = enhancedSchemeDataTotalTaxAmount; return this; } /** - * The amount of state or provincial [tax included in the total transaction - * amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), - * in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, - * 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. - * - * @return enhancedSchemeDataTotalTaxAmount The amount of state or provincial [tax included in the - * total transaction - * amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), - * in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For - * example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not - * be all zeros. + * The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * @return enhancedSchemeDataTotalTaxAmount The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -984,17 +636,9 @@ public String getEnhancedSchemeDataTotalTaxAmount() { } /** - * The amount of state or provincial [tax included in the total transaction - * amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), - * in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, - * 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. * - * @param enhancedSchemeDataTotalTaxAmount The amount of state or provincial [tax included in the - * total transaction - * amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), - * in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For - * example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not - * be all zeros. + * @param enhancedSchemeDataTotalTaxAmount The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1002,7 +646,9 @@ public void setEnhancedSchemeDataTotalTaxAmount(String enhancedSchemeDataTotalTa this.enhancedSchemeDataTotalTaxAmount = enhancedSchemeDataTotalTaxAmount; } - /** Return true if this AdditionalDataLevel23 object is equal to o. */ + /** + * Return true if this AdditionalDataLevel23 object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -1012,140 +658,58 @@ public boolean equals(Object o) { return false; } AdditionalDataLevel23 additionalDataLevel23 = (AdditionalDataLevel23) o; - return Objects.equals( - this.enhancedSchemeDataCustomerReference, - additionalDataLevel23.enhancedSchemeDataCustomerReference) - && Objects.equals( - this.enhancedSchemeDataDestinationCountryCode, - additionalDataLevel23.enhancedSchemeDataDestinationCountryCode) - && Objects.equals( - this.enhancedSchemeDataDestinationPostalCode, - additionalDataLevel23.enhancedSchemeDataDestinationPostalCode) - && Objects.equals( - this.enhancedSchemeDataDestinationStateProvinceCode, - additionalDataLevel23.enhancedSchemeDataDestinationStateProvinceCode) - && Objects.equals( - this.enhancedSchemeDataDutyAmount, additionalDataLevel23.enhancedSchemeDataDutyAmount) - && Objects.equals( - this.enhancedSchemeDataFreightAmount, - additionalDataLevel23.enhancedSchemeDataFreightAmount) - && Objects.equals( - this.enhancedSchemeDataItemDetailLineItemNrCommodityCode, - additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrCommodityCode) - && Objects.equals( - this.enhancedSchemeDataItemDetailLineItemNrDescription, - additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrDescription) - && Objects.equals( - this.enhancedSchemeDataItemDetailLineItemNrDiscountAmount, - additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrDiscountAmount) - && Objects.equals( - this.enhancedSchemeDataItemDetailLineItemNrProductCode, - additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrProductCode) - && Objects.equals( - this.enhancedSchemeDataItemDetailLineItemNrQuantity, - additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrQuantity) - && Objects.equals( - this.enhancedSchemeDataItemDetailLineItemNrTotalAmount, - additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrTotalAmount) - && Objects.equals( - this.enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure, - additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure) - && Objects.equals( - this.enhancedSchemeDataItemDetailLineItemNrUnitPrice, - additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrUnitPrice) - && Objects.equals( - this.enhancedSchemeDataOrderDate, additionalDataLevel23.enhancedSchemeDataOrderDate) - && Objects.equals( - this.enhancedSchemeDataShipFromPostalCode, - additionalDataLevel23.enhancedSchemeDataShipFromPostalCode) - && Objects.equals( - this.enhancedSchemeDataTotalTaxAmount, - additionalDataLevel23.enhancedSchemeDataTotalTaxAmount); + return Objects.equals(this.enhancedSchemeDataCustomerReference, additionalDataLevel23.enhancedSchemeDataCustomerReference) && + Objects.equals(this.enhancedSchemeDataDestinationCountryCode, additionalDataLevel23.enhancedSchemeDataDestinationCountryCode) && + Objects.equals(this.enhancedSchemeDataDestinationPostalCode, additionalDataLevel23.enhancedSchemeDataDestinationPostalCode) && + Objects.equals(this.enhancedSchemeDataDestinationStateProvinceCode, additionalDataLevel23.enhancedSchemeDataDestinationStateProvinceCode) && + Objects.equals(this.enhancedSchemeDataDutyAmount, additionalDataLevel23.enhancedSchemeDataDutyAmount) && + Objects.equals(this.enhancedSchemeDataFreightAmount, additionalDataLevel23.enhancedSchemeDataFreightAmount) && + Objects.equals(this.enhancedSchemeDataItemDetailLineItemNrCommodityCode, additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrCommodityCode) && + Objects.equals(this.enhancedSchemeDataItemDetailLineItemNrDescription, additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrDescription) && + Objects.equals(this.enhancedSchemeDataItemDetailLineItemNrDiscountAmount, additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrDiscountAmount) && + Objects.equals(this.enhancedSchemeDataItemDetailLineItemNrProductCode, additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrProductCode) && + Objects.equals(this.enhancedSchemeDataItemDetailLineItemNrQuantity, additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrQuantity) && + Objects.equals(this.enhancedSchemeDataItemDetailLineItemNrTotalAmount, additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrTotalAmount) && + Objects.equals(this.enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure, additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure) && + Objects.equals(this.enhancedSchemeDataItemDetailLineItemNrUnitPrice, additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrUnitPrice) && + Objects.equals(this.enhancedSchemeDataOrderDate, additionalDataLevel23.enhancedSchemeDataOrderDate) && + Objects.equals(this.enhancedSchemeDataShipFromPostalCode, additionalDataLevel23.enhancedSchemeDataShipFromPostalCode) && + Objects.equals(this.enhancedSchemeDataTotalTaxAmount, additionalDataLevel23.enhancedSchemeDataTotalTaxAmount); } @Override public int hashCode() { - return Objects.hash( - enhancedSchemeDataCustomerReference, - enhancedSchemeDataDestinationCountryCode, - enhancedSchemeDataDestinationPostalCode, - enhancedSchemeDataDestinationStateProvinceCode, - enhancedSchemeDataDutyAmount, - enhancedSchemeDataFreightAmount, - enhancedSchemeDataItemDetailLineItemNrCommodityCode, - enhancedSchemeDataItemDetailLineItemNrDescription, - enhancedSchemeDataItemDetailLineItemNrDiscountAmount, - enhancedSchemeDataItemDetailLineItemNrProductCode, - enhancedSchemeDataItemDetailLineItemNrQuantity, - enhancedSchemeDataItemDetailLineItemNrTotalAmount, - enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure, - enhancedSchemeDataItemDetailLineItemNrUnitPrice, - enhancedSchemeDataOrderDate, - enhancedSchemeDataShipFromPostalCode, - enhancedSchemeDataTotalTaxAmount); + return Objects.hash(enhancedSchemeDataCustomerReference, enhancedSchemeDataDestinationCountryCode, enhancedSchemeDataDestinationPostalCode, enhancedSchemeDataDestinationStateProvinceCode, enhancedSchemeDataDutyAmount, enhancedSchemeDataFreightAmount, enhancedSchemeDataItemDetailLineItemNrCommodityCode, enhancedSchemeDataItemDetailLineItemNrDescription, enhancedSchemeDataItemDetailLineItemNrDiscountAmount, enhancedSchemeDataItemDetailLineItemNrProductCode, enhancedSchemeDataItemDetailLineItemNrQuantity, enhancedSchemeDataItemDetailLineItemNrTotalAmount, enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure, enhancedSchemeDataItemDetailLineItemNrUnitPrice, enhancedSchemeDataOrderDate, enhancedSchemeDataShipFromPostalCode, enhancedSchemeDataTotalTaxAmount); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataLevel23 {\n"); - sb.append(" enhancedSchemeDataCustomerReference: ") - .append(toIndentedString(enhancedSchemeDataCustomerReference)) - .append("\n"); - sb.append(" enhancedSchemeDataDestinationCountryCode: ") - .append(toIndentedString(enhancedSchemeDataDestinationCountryCode)) - .append("\n"); - sb.append(" enhancedSchemeDataDestinationPostalCode: ") - .append(toIndentedString(enhancedSchemeDataDestinationPostalCode)) - .append("\n"); - sb.append(" enhancedSchemeDataDestinationStateProvinceCode: ") - .append(toIndentedString(enhancedSchemeDataDestinationStateProvinceCode)) - .append("\n"); - sb.append(" enhancedSchemeDataDutyAmount: ") - .append(toIndentedString(enhancedSchemeDataDutyAmount)) - .append("\n"); - sb.append(" enhancedSchemeDataFreightAmount: ") - .append(toIndentedString(enhancedSchemeDataFreightAmount)) - .append("\n"); - sb.append(" enhancedSchemeDataItemDetailLineItemNrCommodityCode: ") - .append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrCommodityCode)) - .append("\n"); - sb.append(" enhancedSchemeDataItemDetailLineItemNrDescription: ") - .append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrDescription)) - .append("\n"); - sb.append(" enhancedSchemeDataItemDetailLineItemNrDiscountAmount: ") - .append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrDiscountAmount)) - .append("\n"); - sb.append(" enhancedSchemeDataItemDetailLineItemNrProductCode: ") - .append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrProductCode)) - .append("\n"); - sb.append(" enhancedSchemeDataItemDetailLineItemNrQuantity: ") - .append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrQuantity)) - .append("\n"); - sb.append(" enhancedSchemeDataItemDetailLineItemNrTotalAmount: ") - .append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrTotalAmount)) - .append("\n"); - sb.append(" enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure: ") - .append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure)) - .append("\n"); - sb.append(" enhancedSchemeDataItemDetailLineItemNrUnitPrice: ") - .append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrUnitPrice)) - .append("\n"); - sb.append(" enhancedSchemeDataOrderDate: ") - .append(toIndentedString(enhancedSchemeDataOrderDate)) - .append("\n"); - sb.append(" enhancedSchemeDataShipFromPostalCode: ") - .append(toIndentedString(enhancedSchemeDataShipFromPostalCode)) - .append("\n"); - sb.append(" enhancedSchemeDataTotalTaxAmount: ") - .append(toIndentedString(enhancedSchemeDataTotalTaxAmount)) - .append("\n"); + sb.append(" enhancedSchemeDataCustomerReference: ").append(toIndentedString(enhancedSchemeDataCustomerReference)).append("\n"); + sb.append(" enhancedSchemeDataDestinationCountryCode: ").append(toIndentedString(enhancedSchemeDataDestinationCountryCode)).append("\n"); + sb.append(" enhancedSchemeDataDestinationPostalCode: ").append(toIndentedString(enhancedSchemeDataDestinationPostalCode)).append("\n"); + sb.append(" enhancedSchemeDataDestinationStateProvinceCode: ").append(toIndentedString(enhancedSchemeDataDestinationStateProvinceCode)).append("\n"); + sb.append(" enhancedSchemeDataDutyAmount: ").append(toIndentedString(enhancedSchemeDataDutyAmount)).append("\n"); + sb.append(" enhancedSchemeDataFreightAmount: ").append(toIndentedString(enhancedSchemeDataFreightAmount)).append("\n"); + sb.append(" enhancedSchemeDataItemDetailLineItemNrCommodityCode: ").append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrCommodityCode)).append("\n"); + sb.append(" enhancedSchemeDataItemDetailLineItemNrDescription: ").append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrDescription)).append("\n"); + sb.append(" enhancedSchemeDataItemDetailLineItemNrDiscountAmount: ").append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrDiscountAmount)).append("\n"); + sb.append(" enhancedSchemeDataItemDetailLineItemNrProductCode: ").append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrProductCode)).append("\n"); + sb.append(" enhancedSchemeDataItemDetailLineItemNrQuantity: ").append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrQuantity)).append("\n"); + sb.append(" enhancedSchemeDataItemDetailLineItemNrTotalAmount: ").append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrTotalAmount)).append("\n"); + sb.append(" enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure: ").append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure)).append("\n"); + sb.append(" enhancedSchemeDataItemDetailLineItemNrUnitPrice: ").append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrUnitPrice)).append("\n"); + sb.append(" enhancedSchemeDataOrderDate: ").append(toIndentedString(enhancedSchemeDataOrderDate)).append("\n"); + sb.append(" enhancedSchemeDataShipFromPostalCode: ").append(toIndentedString(enhancedSchemeDataShipFromPostalCode)).append("\n"); + sb.append(" enhancedSchemeDataTotalTaxAmount: ").append(toIndentedString(enhancedSchemeDataTotalTaxAmount)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1154,23 +718,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalDataLevel23 given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataLevel23 - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataLevel23 + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataLevel23 */ public static AdditionalDataLevel23 fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataLevel23.class); } - - /** - * Convert an instance of AdditionalDataLevel23 to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalDataLevel23 to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataLodging.java b/src/main/java/com/adyen/model/payment/AdditionalDataLodging.java index c0bac4128..04c7667c7 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataLodging.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataLodging.java @@ -2,22 +2,31 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AdditionalDataLodging */ + +/** + * AdditionalDataLodging + */ @JsonPropertyOrder({ AdditionalDataLodging.JSON_PROPERTY_LODGING_SPECIAL_PROGRAM_CODE, AdditionalDataLodging.JSON_PROPERTY_LODGING_CHECK_IN_DATE, @@ -37,9 +46,9 @@ AdditionalDataLodging.JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION, AdditionalDataLodging.JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET }) + public class AdditionalDataLodging { - public static final String JSON_PROPERTY_LODGING_SPECIAL_PROGRAM_CODE = - "lodging.SpecialProgramCode"; + public static final String JSON_PROPERTY_LODGING_SPECIAL_PROGRAM_CODE = "lodging.SpecialProgramCode"; private String lodgingSpecialProgramCode; public static final String JSON_PROPERTY_LODGING_CHECK_IN_DATE = "lodging.checkInDate"; @@ -48,23 +57,19 @@ public class AdditionalDataLodging { public static final String JSON_PROPERTY_LODGING_CHECK_OUT_DATE = "lodging.checkOutDate"; private String lodgingCheckOutDate; - public static final String JSON_PROPERTY_LODGING_CUSTOMER_SERVICE_TOLL_FREE_NUMBER = - "lodging.customerServiceTollFreeNumber"; + public static final String JSON_PROPERTY_LODGING_CUSTOMER_SERVICE_TOLL_FREE_NUMBER = "lodging.customerServiceTollFreeNumber"; private String lodgingCustomerServiceTollFreeNumber; - public static final String JSON_PROPERTY_LODGING_FIRE_SAFETY_ACT_INDICATOR = - "lodging.fireSafetyActIndicator"; + public static final String JSON_PROPERTY_LODGING_FIRE_SAFETY_ACT_INDICATOR = "lodging.fireSafetyActIndicator"; private String lodgingFireSafetyActIndicator; - public static final String JSON_PROPERTY_LODGING_FOLIO_CASH_ADVANCES = - "lodging.folioCashAdvances"; + public static final String JSON_PROPERTY_LODGING_FOLIO_CASH_ADVANCES = "lodging.folioCashAdvances"; private String lodgingFolioCashAdvances; public static final String JSON_PROPERTY_LODGING_FOLIO_NUMBER = "lodging.folioNumber"; private String lodgingFolioNumber; - public static final String JSON_PROPERTY_LODGING_FOOD_BEVERAGE_CHARGES = - "lodging.foodBeverageCharges"; + public static final String JSON_PROPERTY_LODGING_FOOD_BEVERAGE_CHARGES = "lodging.foodBeverageCharges"; private String lodgingFoodBeverageCharges; public static final String JSON_PROPERTY_LODGING_NO_SHOW_INDICATOR = "lodging.noShowIndicator"; @@ -73,12 +78,10 @@ public class AdditionalDataLodging { public static final String JSON_PROPERTY_LODGING_PREPAID_EXPENSES = "lodging.prepaidExpenses"; private String lodgingPrepaidExpenses; - public static final String JSON_PROPERTY_LODGING_PROPERTY_PHONE_NUMBER = - "lodging.propertyPhoneNumber"; + public static final String JSON_PROPERTY_LODGING_PROPERTY_PHONE_NUMBER = "lodging.propertyPhoneNumber"; private String lodgingPropertyPhoneNumber; - public static final String JSON_PROPERTY_LODGING_ROOM1_NUMBER_OF_NIGHTS = - "lodging.room1.numberOfNights"; + public static final String JSON_PROPERTY_LODGING_ROOM1_NUMBER_OF_NIGHTS = "lodging.room1.numberOfNights"; private String lodgingRoom1NumberOfNights; public static final String JSON_PROPERTY_LODGING_ROOM1_RATE = "lodging.room1.rate"; @@ -90,22 +93,19 @@ public class AdditionalDataLodging { public static final String JSON_PROPERTY_LODGING_TOTAL_TAX = "lodging.totalTax"; private String lodgingTotalTax; - public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION = - "travelEntertainmentAuthData.duration"; + public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION = "travelEntertainmentAuthData.duration"; private String travelEntertainmentAuthDataDuration; - public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET = - "travelEntertainmentAuthData.market"; + public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET = "travelEntertainmentAuthData.market"; private String travelEntertainmentAuthDataMarket; - public AdditionalDataLodging() {} + public AdditionalDataLodging() { + } /** - * A code that corresponds to the category of lodging charges for the payment. Possible values: * - * 1: Lodging * 2: No show reservation * 3: Advanced deposit + * A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit * - * @param lodgingSpecialProgramCode A code that corresponds to the category of lodging charges for - * the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit + * @param lodgingSpecialProgramCode A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingSpecialProgramCode(String lodgingSpecialProgramCode) { @@ -114,12 +114,8 @@ public AdditionalDataLodging lodgingSpecialProgramCode(String lodgingSpecialProg } /** - * A code that corresponds to the category of lodging charges for the payment. Possible values: * - * 1: Lodging * 2: No show reservation * 3: Advanced deposit - * - * @return lodgingSpecialProgramCode A code that corresponds to the category of lodging charges - * for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced - * deposit + * A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit + * @return lodgingSpecialProgramCode A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit */ @JsonProperty(JSON_PROPERTY_LODGING_SPECIAL_PROGRAM_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,11 +124,9 @@ public String getLodgingSpecialProgramCode() { } /** - * A code that corresponds to the category of lodging charges for the payment. Possible values: * - * 1: Lodging * 2: No show reservation * 3: Advanced deposit + * A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit * - * @param lodgingSpecialProgramCode A code that corresponds to the category of lodging charges for - * the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit + * @param lodgingSpecialProgramCode A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit */ @JsonProperty(JSON_PROPERTY_LODGING_SPECIAL_PROGRAM_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,8 +137,7 @@ public void setLodgingSpecialProgramCode(String lodgingSpecialProgramCode) { /** * The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. * - * @param lodgingCheckInDate The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 - * April 22, **20230422**. + * @param lodgingCheckInDate The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingCheckInDate(String lodgingCheckInDate) { @@ -154,9 +147,7 @@ public AdditionalDataLodging lodgingCheckInDate(String lodgingCheckInDate) { /** * The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. - * - * @return lodgingCheckInDate The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 - * April 22, **20230422**. + * @return lodgingCheckInDate The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. */ @JsonProperty(JSON_PROPERTY_LODGING_CHECK_IN_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,8 +158,7 @@ public String getLodgingCheckInDate() { /** * The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. * - * @param lodgingCheckInDate The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 - * April 22, **20230422**. + * @param lodgingCheckInDate The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. */ @JsonProperty(JSON_PROPERTY_LODGING_CHECK_IN_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,8 +169,7 @@ public void setLodgingCheckInDate(String lodgingCheckInDate) { /** * The departure date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. * - * @param lodgingCheckOutDate The departure date. * Date format: **yyyyMmDd**. For example, for - * 2023 April 22, **20230422**. + * @param lodgingCheckOutDate The departure date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingCheckOutDate(String lodgingCheckOutDate) { @@ -190,9 +179,7 @@ public AdditionalDataLodging lodgingCheckOutDate(String lodgingCheckOutDate) { /** * The departure date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. - * - * @return lodgingCheckOutDate The departure date. * Date format: **yyyyMmDd**. For example, for - * 2023 April 22, **20230422**. + * @return lodgingCheckOutDate The departure date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. */ @JsonProperty(JSON_PROPERTY_LODGING_CHECK_OUT_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -203,8 +190,7 @@ public String getLodgingCheckOutDate() { /** * The departure date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. * - * @param lodgingCheckOutDate The departure date. * Date format: **yyyyMmDd**. For example, for - * 2023 April 22, **20230422**. + * @param lodgingCheckOutDate The departure date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. */ @JsonProperty(JSON_PROPERTY_LODGING_CHECK_OUT_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -213,31 +199,19 @@ public void setLodgingCheckOutDate(String lodgingCheckOutDate) { } /** - * The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * - * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not - * contain any special characters such as + or - * Must not be all zeros. + * The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. * - * @param lodgingCustomerServiceTollFreeNumber The toll-free phone number for the lodging. * - * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters - * in length * Must not start with a space * Must not contain any special characters such as + - * or - * Must not be all zeros. + * @param lodgingCustomerServiceTollFreeNumber The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ - public AdditionalDataLodging lodgingCustomerServiceTollFreeNumber( - String lodgingCustomerServiceTollFreeNumber) { + public AdditionalDataLodging lodgingCustomerServiceTollFreeNumber(String lodgingCustomerServiceTollFreeNumber) { this.lodgingCustomerServiceTollFreeNumber = lodgingCustomerServiceTollFreeNumber; return this; } /** - * The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * - * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not - * contain any special characters such as + or - * Must not be all zeros. - * - * @return lodgingCustomerServiceTollFreeNumber The toll-free phone number for the lodging. * - * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters - * in length * Must not start with a space * Must not contain any special characters such as + - * or - * Must not be all zeros. + * The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. + * @return lodgingCustomerServiceTollFreeNumber The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_LODGING_CUSTOMER_SERVICE_TOLL_FREE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -246,14 +220,9 @@ public String getLodgingCustomerServiceTollFreeNumber() { } /** - * The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * - * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not - * contain any special characters such as + or - * Must not be all zeros. + * The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. * - * @param lodgingCustomerServiceTollFreeNumber The toll-free phone number for the lodging. * - * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters - * in length * Must not start with a space * Must not contain any special characters such as + - * or - * Must not be all zeros. + * @param lodgingCustomerServiceTollFreeNumber The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_LODGING_CUSTOMER_SERVICE_TOLL_FREE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -262,12 +231,9 @@ public void setLodgingCustomerServiceTollFreeNumber(String lodgingCustomerServic } /** - * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be - * 'Y' or 'N'. * Format: alphabetic * Max length: 1 character + * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * Max length: 1 character * - * @param lodgingFireSafetyActIndicator Identifies that the facility complies with the Hotel and - * Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * - * Max length: 1 character + * @param lodgingFireSafetyActIndicator Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * Max length: 1 character * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingFireSafetyActIndicator(String lodgingFireSafetyActIndicator) { @@ -276,12 +242,8 @@ public AdditionalDataLodging lodgingFireSafetyActIndicator(String lodgingFireSaf } /** - * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be - * 'Y' or 'N'. * Format: alphabetic * Max length: 1 character - * - * @return lodgingFireSafetyActIndicator Identifies that the facility complies with the Hotel and - * Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * - * Max length: 1 character + * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * Max length: 1 character + * @return lodgingFireSafetyActIndicator Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * Max length: 1 character */ @JsonProperty(JSON_PROPERTY_LODGING_FIRE_SAFETY_ACT_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -290,12 +252,9 @@ public String getLodgingFireSafetyActIndicator() { } /** - * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be - * 'Y' or 'N'. * Format: alphabetic * Max length: 1 character + * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * Max length: 1 character * - * @param lodgingFireSafetyActIndicator Identifies that the facility complies with the Hotel and - * Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * - * Max length: 1 character + * @param lodgingFireSafetyActIndicator Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * Max length: 1 character */ @JsonProperty(JSON_PROPERTY_LODGING_FIRE_SAFETY_ACT_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -304,13 +263,9 @@ public void setLodgingFireSafetyActIndicator(String lodgingFireSafetyActIndicato } /** - * The folio cash advances, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max - * length: 12 characters + * The folio cash advances, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * - * @param lodgingFolioCashAdvances The folio cash advances, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * - * Max length: 12 characters + * @param lodgingFolioCashAdvances The folio cash advances, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingFolioCashAdvances(String lodgingFolioCashAdvances) { @@ -319,13 +274,8 @@ public AdditionalDataLodging lodgingFolioCashAdvances(String lodgingFolioCashAdv } /** - * The folio cash advances, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max - * length: 12 characters - * - * @return lodgingFolioCashAdvances The folio cash advances, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * - * Max length: 12 characters + * The folio cash advances, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters + * @return lodgingFolioCashAdvances The folio cash advances, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_LODGING_FOLIO_CASH_ADVANCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -334,13 +284,9 @@ public String getLodgingFolioCashAdvances() { } /** - * The folio cash advances, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max - * length: 12 characters + * The folio cash advances, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * - * @param lodgingFolioCashAdvances The folio cash advances, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * - * Max length: 12 characters + * @param lodgingFolioCashAdvances The folio cash advances, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_LODGING_FOLIO_CASH_ADVANCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -349,13 +295,9 @@ public void setLodgingFolioCashAdvances(String lodgingFolioCashAdvances) { } /** - * The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 - * characters * Must not start with a space * Must not contain any special characters * Must not - * be all zeros. + * The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters * Must not start with a space * Must not contain any special characters * Must not be all zeros. * - * @param lodgingFolioNumber The card acceptor’s internal invoice or billing ID reference number. - * * Max length: 25 characters * Must not start with a space * Must not contain any special - * characters * Must not be all zeros. + * @param lodgingFolioNumber The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters * Must not start with a space * Must not contain any special characters * Must not be all zeros. * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingFolioNumber(String lodgingFolioNumber) { @@ -364,13 +306,8 @@ public AdditionalDataLodging lodgingFolioNumber(String lodgingFolioNumber) { } /** - * The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 - * characters * Must not start with a space * Must not contain any special characters * Must not - * be all zeros. - * - * @return lodgingFolioNumber The card acceptor’s internal invoice or billing ID reference number. - * * Max length: 25 characters * Must not start with a space * Must not contain any special - * characters * Must not be all zeros. + * The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters * Must not start with a space * Must not contain any special characters * Must not be all zeros. + * @return lodgingFolioNumber The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters * Must not start with a space * Must not contain any special characters * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_LODGING_FOLIO_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -379,13 +316,9 @@ public String getLodgingFolioNumber() { } /** - * The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 - * characters * Must not start with a space * Must not contain any special characters * Must not - * be all zeros. + * The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters * Must not start with a space * Must not contain any special characters * Must not be all zeros. * - * @param lodgingFolioNumber The card acceptor’s internal invoice or billing ID reference number. - * * Max length: 25 characters * Must not start with a space * Must not contain any special - * characters * Must not be all zeros. + * @param lodgingFolioNumber The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters * Must not start with a space * Must not contain any special characters * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_LODGING_FOLIO_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -394,13 +327,9 @@ public void setLodgingFolioNumber(String lodgingFolioNumber) { } /** - * Any charges for food and beverages associated with the booking, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max - * length: 12 characters + * Any charges for food and beverages associated with the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * - * @param lodgingFoodBeverageCharges Any charges for food and beverages associated with the - * booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * Format: numeric * Max length: 12 characters + * @param lodgingFoodBeverageCharges Any charges for food and beverages associated with the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingFoodBeverageCharges(String lodgingFoodBeverageCharges) { @@ -409,13 +338,8 @@ public AdditionalDataLodging lodgingFoodBeverageCharges(String lodgingFoodBevera } /** - * Any charges for food and beverages associated with the booking, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max - * length: 12 characters - * - * @return lodgingFoodBeverageCharges Any charges for food and beverages associated with the - * booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * Format: numeric * Max length: 12 characters + * Any charges for food and beverages associated with the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters + * @return lodgingFoodBeverageCharges Any charges for food and beverages associated with the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_LODGING_FOOD_BEVERAGE_CHARGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -424,13 +348,9 @@ public String getLodgingFoodBeverageCharges() { } /** - * Any charges for food and beverages associated with the booking, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max - * length: 12 characters + * Any charges for food and beverages associated with the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * - * @param lodgingFoodBeverageCharges Any charges for food and beverages associated with the - * booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * Format: numeric * Max length: 12 characters + * @param lodgingFoodBeverageCharges Any charges for food and beverages associated with the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_LODGING_FOOD_BEVERAGE_CHARGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -439,11 +359,9 @@ public void setLodgingFoodBeverageCharges(String lodgingFoodBeverageCharges) { } /** - * Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the - * customer didn't check in * **N**: the customer checked in + * Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in * - * @param lodgingNoShowIndicator Indicates if the customer didn't check in for their booking. - * Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in + * @param lodgingNoShowIndicator Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingNoShowIndicator(String lodgingNoShowIndicator) { @@ -452,11 +370,8 @@ public AdditionalDataLodging lodgingNoShowIndicator(String lodgingNoShowIndicato } /** - * Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the - * customer didn't check in * **N**: the customer checked in - * - * @return lodgingNoShowIndicator Indicates if the customer didn't check in for their booking. - * Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in + * Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in + * @return lodgingNoShowIndicator Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in */ @JsonProperty(JSON_PROPERTY_LODGING_NO_SHOW_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -465,11 +380,9 @@ public String getLodgingNoShowIndicator() { } /** - * Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the - * customer didn't check in * **N**: the customer checked in + * Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in * - * @param lodgingNoShowIndicator Indicates if the customer didn't check in for their booking. - * Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in + * @param lodgingNoShowIndicator Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in */ @JsonProperty(JSON_PROPERTY_LODGING_NO_SHOW_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -480,8 +393,7 @@ public void setLodgingNoShowIndicator(String lodgingNoShowIndicator) { /** * The prepaid expenses for the booking. * Format: numeric * Max length: 12 characters * - * @param lodgingPrepaidExpenses The prepaid expenses for the booking. * Format: numeric * Max - * length: 12 characters + * @param lodgingPrepaidExpenses The prepaid expenses for the booking. * Format: numeric * Max length: 12 characters * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingPrepaidExpenses(String lodgingPrepaidExpenses) { @@ -491,9 +403,7 @@ public AdditionalDataLodging lodgingPrepaidExpenses(String lodgingPrepaidExpense /** * The prepaid expenses for the booking. * Format: numeric * Max length: 12 characters - * - * @return lodgingPrepaidExpenses The prepaid expenses for the booking. * Format: numeric * Max - * length: 12 characters + * @return lodgingPrepaidExpenses The prepaid expenses for the booking. * Format: numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_LODGING_PREPAID_EXPENSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -504,8 +414,7 @@ public String getLodgingPrepaidExpenses() { /** * The prepaid expenses for the booking. * Format: numeric * Max length: 12 characters * - * @param lodgingPrepaidExpenses The prepaid expenses for the booking. * Format: numeric * Max - * length: 12 characters + * @param lodgingPrepaidExpenses The prepaid expenses for the booking. * Format: numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_LODGING_PREPAID_EXPENSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -514,15 +423,9 @@ public void setLodgingPrepaidExpenses(String lodgingPrepaidExpenses) { } /** - * The lodging property location's phone number. * Format: numeric * Min length: 10 characters - * * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not - * start with a space * Must not contain any special characters such as + or - * Must not be all - * zeros. + * The lodging property location's phone number. * Format: numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. * - * @param lodgingPropertyPhoneNumber The lodging property location's phone number. * Format: - * numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers - * must be 10 characters in length * Must not start with a space * Must not contain any - * special characters such as + or - * Must not be all zeros. + * @param lodgingPropertyPhoneNumber The lodging property location's phone number. * Format: numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingPropertyPhoneNumber(String lodgingPropertyPhoneNumber) { @@ -531,15 +434,8 @@ public AdditionalDataLodging lodgingPropertyPhoneNumber(String lodgingPropertyPh } /** - * The lodging property location's phone number. * Format: numeric * Min length: 10 characters - * * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not - * start with a space * Must not contain any special characters such as + or - * Must not be all - * zeros. - * - * @return lodgingPropertyPhoneNumber The lodging property location's phone number. * Format: - * numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers - * must be 10 characters in length * Must not start with a space * Must not contain any - * special characters such as + or - * Must not be all zeros. + * The lodging property location's phone number. * Format: numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. + * @return lodgingPropertyPhoneNumber The lodging property location's phone number. * Format: numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_LODGING_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -548,15 +444,9 @@ public String getLodgingPropertyPhoneNumber() { } /** - * The lodging property location's phone number. * Format: numeric * Min length: 10 characters - * * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not - * start with a space * Must not contain any special characters such as + or - * Must not be all - * zeros. + * The lodging property location's phone number. * Format: numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. * - * @param lodgingPropertyPhoneNumber The lodging property location's phone number. * Format: - * numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers - * must be 10 characters in length * Must not start with a space * Must not contain any - * special characters such as + or - * Must not be all zeros. + * @param lodgingPropertyPhoneNumber The lodging property location's phone number. * Format: numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_LODGING_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -565,11 +455,9 @@ public void setLodgingPropertyPhoneNumber(String lodgingPropertyPhoneNumber) { } /** - * The total number of nights the room is booked for. * Format: numeric * Must be a number between - * 0 and 99 * Max length: 4 characters + * The total number of nights the room is booked for. * Format: numeric * Must be a number between 0 and 99 * Max length: 4 characters * - * @param lodgingRoom1NumberOfNights The total number of nights the room is booked for. * Format: - * numeric * Must be a number between 0 and 99 * Max length: 4 characters + * @param lodgingRoom1NumberOfNights The total number of nights the room is booked for. * Format: numeric * Must be a number between 0 and 99 * Max length: 4 characters * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingRoom1NumberOfNights(String lodgingRoom1NumberOfNights) { @@ -578,11 +466,8 @@ public AdditionalDataLodging lodgingRoom1NumberOfNights(String lodgingRoom1Numbe } /** - * The total number of nights the room is booked for. * Format: numeric * Must be a number between - * 0 and 99 * Max length: 4 characters - * - * @return lodgingRoom1NumberOfNights The total number of nights the room is booked for. * Format: - * numeric * Must be a number between 0 and 99 * Max length: 4 characters + * The total number of nights the room is booked for. * Format: numeric * Must be a number between 0 and 99 * Max length: 4 characters + * @return lodgingRoom1NumberOfNights The total number of nights the room is booked for. * Format: numeric * Must be a number between 0 and 99 * Max length: 4 characters */ @JsonProperty(JSON_PROPERTY_LODGING_ROOM1_NUMBER_OF_NIGHTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -591,11 +476,9 @@ public String getLodgingRoom1NumberOfNights() { } /** - * The total number of nights the room is booked for. * Format: numeric * Must be a number between - * 0 and 99 * Max length: 4 characters + * The total number of nights the room is booked for. * Format: numeric * Must be a number between 0 and 99 * Max length: 4 characters * - * @param lodgingRoom1NumberOfNights The total number of nights the room is booked for. * Format: - * numeric * Must be a number between 0 and 99 * Max length: 4 characters + * @param lodgingRoom1NumberOfNights The total number of nights the room is booked for. * Format: numeric * Must be a number between 0 and 99 * Max length: 4 characters */ @JsonProperty(JSON_PROPERTY_LODGING_ROOM1_NUMBER_OF_NIGHTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -604,13 +487,9 @@ public void setLodgingRoom1NumberOfNights(String lodgingRoom1NumberOfNights) { } /** - * The rate for the room, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max - * length: 12 characters * Must not be a negative number + * The rate for the room, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number * - * @param lodgingRoom1Rate The rate for the room, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * - * Max length: 12 characters * Must not be a negative number + * @param lodgingRoom1Rate The rate for the room, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingRoom1Rate(String lodgingRoom1Rate) { @@ -619,13 +498,8 @@ public AdditionalDataLodging lodgingRoom1Rate(String lodgingRoom1Rate) { } /** - * The rate for the room, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max - * length: 12 characters * Must not be a negative number - * - * @return lodgingRoom1Rate The rate for the room, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * - * Max length: 12 characters * Must not be a negative number + * The rate for the room, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * @return lodgingRoom1Rate The rate for the room, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number */ @JsonProperty(JSON_PROPERTY_LODGING_ROOM1_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -634,13 +508,9 @@ public String getLodgingRoom1Rate() { } /** - * The rate for the room, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max - * length: 12 characters * Must not be a negative number + * The rate for the room, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number * - * @param lodgingRoom1Rate The rate for the room, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * - * Max length: 12 characters * Must not be a negative number + * @param lodgingRoom1Rate The rate for the room, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number */ @JsonProperty(JSON_PROPERTY_LODGING_ROOM1_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -649,13 +519,9 @@ public void setLodgingRoom1Rate(String lodgingRoom1Rate) { } /** - * The total room tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max - * length: 12 characters * Must not be a negative number + * The total room tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number * - * @param lodgingTotalRoomTax The total room tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * - * Max length: 12 characters * Must not be a negative number + * @param lodgingTotalRoomTax The total room tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingTotalRoomTax(String lodgingTotalRoomTax) { @@ -664,13 +530,8 @@ public AdditionalDataLodging lodgingTotalRoomTax(String lodgingTotalRoomTax) { } /** - * The total room tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max - * length: 12 characters * Must not be a negative number - * - * @return lodgingTotalRoomTax The total room tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * - * Max length: 12 characters * Must not be a negative number + * The total room tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * @return lodgingTotalRoomTax The total room tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number */ @JsonProperty(JSON_PROPERTY_LODGING_TOTAL_ROOM_TAX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -679,13 +540,9 @@ public String getLodgingTotalRoomTax() { } /** - * The total room tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max - * length: 12 characters * Must not be a negative number + * The total room tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number * - * @param lodgingTotalRoomTax The total room tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * - * Max length: 12 characters * Must not be a negative number + * @param lodgingTotalRoomTax The total room tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number */ @JsonProperty(JSON_PROPERTY_LODGING_TOTAL_ROOM_TAX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -694,13 +551,9 @@ public void setLodgingTotalRoomTax(String lodgingTotalRoomTax) { } /** - * The total tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max - * length: 12 characters * Must not be a negative number + * The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number * - * @param lodgingTotalTax The total tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * - * Max length: 12 characters * Must not be a negative number + * @param lodgingTotalTax The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingTotalTax(String lodgingTotalTax) { @@ -709,13 +562,8 @@ public AdditionalDataLodging lodgingTotalTax(String lodgingTotalTax) { } /** - * The total tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max - * length: 12 characters * Must not be a negative number - * - * @return lodgingTotalTax The total tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * - * Max length: 12 characters * Must not be a negative number + * The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * @return lodgingTotalTax The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number */ @JsonProperty(JSON_PROPERTY_LODGING_TOTAL_TAX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -724,13 +572,9 @@ public String getLodgingTotalTax() { } /** - * The total tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max - * length: 12 characters * Must not be a negative number + * The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number * - * @param lodgingTotalTax The total tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * - * Max length: 12 characters * Must not be a negative number + * @param lodgingTotalTax The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number */ @JsonProperty(JSON_PROPERTY_LODGING_TOTAL_TAX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -739,25 +583,19 @@ public void setLodgingTotalTax(String lodgingTotalTax) { } /** - * The number of nights. This should be included in the auth message. * Format: numeric * Max - * length: 4 characters + * The number of nights. This should be included in the auth message. * Format: numeric * Max length: 4 characters * - * @param travelEntertainmentAuthDataDuration The number of nights. This should be included in the - * auth message. * Format: numeric * Max length: 4 characters + * @param travelEntertainmentAuthDataDuration The number of nights. This should be included in the auth message. * Format: numeric * Max length: 4 characters * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ - public AdditionalDataLodging travelEntertainmentAuthDataDuration( - String travelEntertainmentAuthDataDuration) { + public AdditionalDataLodging travelEntertainmentAuthDataDuration(String travelEntertainmentAuthDataDuration) { this.travelEntertainmentAuthDataDuration = travelEntertainmentAuthDataDuration; return this; } /** - * The number of nights. This should be included in the auth message. * Format: numeric * Max - * length: 4 characters - * - * @return travelEntertainmentAuthDataDuration The number of nights. This should be included in - * the auth message. * Format: numeric * Max length: 4 characters + * The number of nights. This should be included in the auth message. * Format: numeric * Max length: 4 characters + * @return travelEntertainmentAuthDataDuration The number of nights. This should be included in the auth message. * Format: numeric * Max length: 4 characters */ @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -766,11 +604,9 @@ public String getTravelEntertainmentAuthDataDuration() { } /** - * The number of nights. This should be included in the auth message. * Format: numeric * Max - * length: 4 characters + * The number of nights. This should be included in the auth message. * Format: numeric * Max length: 4 characters * - * @param travelEntertainmentAuthDataDuration The number of nights. This should be included in the - * auth message. * Format: numeric * Max length: 4 characters + * @param travelEntertainmentAuthDataDuration The number of nights. This should be included in the auth message. * Format: numeric * Max length: 4 characters */ @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -779,27 +615,19 @@ public void setTravelEntertainmentAuthDataDuration(String travelEntertainmentAut } /** - * Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This - * should be included in the auth message. * Format: alphanumeric * Max length: 1 character + * Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This should be included in the auth message. * Format: alphanumeric * Max length: 1 character * - * @param travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be - * submitted. Must be 'H' for Hotel. This should be included in the auth message. * - * Format: alphanumeric * Max length: 1 character + * @param travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This should be included in the auth message. * Format: alphanumeric * Max length: 1 character * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ - public AdditionalDataLodging travelEntertainmentAuthDataMarket( - String travelEntertainmentAuthDataMarket) { + public AdditionalDataLodging travelEntertainmentAuthDataMarket(String travelEntertainmentAuthDataMarket) { this.travelEntertainmentAuthDataMarket = travelEntertainmentAuthDataMarket; return this; } /** - * Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This - * should be included in the auth message. * Format: alphanumeric * Max length: 1 character - * - * @return travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be - * submitted. Must be 'H' for Hotel. This should be included in the auth message. * - * Format: alphanumeric * Max length: 1 character + * Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This should be included in the auth message. * Format: alphanumeric * Max length: 1 character + * @return travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This should be included in the auth message. * Format: alphanumeric * Max length: 1 character */ @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -808,12 +636,9 @@ public String getTravelEntertainmentAuthDataMarket() { } /** - * Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This - * should be included in the auth message. * Format: alphanumeric * Max length: 1 character + * Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This should be included in the auth message. * Format: alphanumeric * Max length: 1 character * - * @param travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be - * submitted. Must be 'H' for Hotel. This should be included in the auth message. * - * Format: alphanumeric * Max length: 1 character + * @param travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This should be included in the auth message. * Format: alphanumeric * Max length: 1 character */ @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -821,7 +646,9 @@ public void setTravelEntertainmentAuthDataMarket(String travelEntertainmentAuthD this.travelEntertainmentAuthDataMarket = travelEntertainmentAuthDataMarket; } - /** Return true if this AdditionalDataLodging object is equal to o. */ + /** + * Return true if this AdditionalDataLodging object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -831,112 +658,58 @@ public boolean equals(Object o) { return false; } AdditionalDataLodging additionalDataLodging = (AdditionalDataLodging) o; - return Objects.equals( - this.lodgingSpecialProgramCode, additionalDataLodging.lodgingSpecialProgramCode) - && Objects.equals(this.lodgingCheckInDate, additionalDataLodging.lodgingCheckInDate) - && Objects.equals(this.lodgingCheckOutDate, additionalDataLodging.lodgingCheckOutDate) - && Objects.equals( - this.lodgingCustomerServiceTollFreeNumber, - additionalDataLodging.lodgingCustomerServiceTollFreeNumber) - && Objects.equals( - this.lodgingFireSafetyActIndicator, additionalDataLodging.lodgingFireSafetyActIndicator) - && Objects.equals( - this.lodgingFolioCashAdvances, additionalDataLodging.lodgingFolioCashAdvances) - && Objects.equals(this.lodgingFolioNumber, additionalDataLodging.lodgingFolioNumber) - && Objects.equals( - this.lodgingFoodBeverageCharges, additionalDataLodging.lodgingFoodBeverageCharges) - && Objects.equals(this.lodgingNoShowIndicator, additionalDataLodging.lodgingNoShowIndicator) - && Objects.equals(this.lodgingPrepaidExpenses, additionalDataLodging.lodgingPrepaidExpenses) - && Objects.equals( - this.lodgingPropertyPhoneNumber, additionalDataLodging.lodgingPropertyPhoneNumber) - && Objects.equals( - this.lodgingRoom1NumberOfNights, additionalDataLodging.lodgingRoom1NumberOfNights) - && Objects.equals(this.lodgingRoom1Rate, additionalDataLodging.lodgingRoom1Rate) - && Objects.equals(this.lodgingTotalRoomTax, additionalDataLodging.lodgingTotalRoomTax) - && Objects.equals(this.lodgingTotalTax, additionalDataLodging.lodgingTotalTax) - && Objects.equals( - this.travelEntertainmentAuthDataDuration, - additionalDataLodging.travelEntertainmentAuthDataDuration) - && Objects.equals( - this.travelEntertainmentAuthDataMarket, - additionalDataLodging.travelEntertainmentAuthDataMarket); + return Objects.equals(this.lodgingSpecialProgramCode, additionalDataLodging.lodgingSpecialProgramCode) && + Objects.equals(this.lodgingCheckInDate, additionalDataLodging.lodgingCheckInDate) && + Objects.equals(this.lodgingCheckOutDate, additionalDataLodging.lodgingCheckOutDate) && + Objects.equals(this.lodgingCustomerServiceTollFreeNumber, additionalDataLodging.lodgingCustomerServiceTollFreeNumber) && + Objects.equals(this.lodgingFireSafetyActIndicator, additionalDataLodging.lodgingFireSafetyActIndicator) && + Objects.equals(this.lodgingFolioCashAdvances, additionalDataLodging.lodgingFolioCashAdvances) && + Objects.equals(this.lodgingFolioNumber, additionalDataLodging.lodgingFolioNumber) && + Objects.equals(this.lodgingFoodBeverageCharges, additionalDataLodging.lodgingFoodBeverageCharges) && + Objects.equals(this.lodgingNoShowIndicator, additionalDataLodging.lodgingNoShowIndicator) && + Objects.equals(this.lodgingPrepaidExpenses, additionalDataLodging.lodgingPrepaidExpenses) && + Objects.equals(this.lodgingPropertyPhoneNumber, additionalDataLodging.lodgingPropertyPhoneNumber) && + Objects.equals(this.lodgingRoom1NumberOfNights, additionalDataLodging.lodgingRoom1NumberOfNights) && + Objects.equals(this.lodgingRoom1Rate, additionalDataLodging.lodgingRoom1Rate) && + Objects.equals(this.lodgingTotalRoomTax, additionalDataLodging.lodgingTotalRoomTax) && + Objects.equals(this.lodgingTotalTax, additionalDataLodging.lodgingTotalTax) && + Objects.equals(this.travelEntertainmentAuthDataDuration, additionalDataLodging.travelEntertainmentAuthDataDuration) && + Objects.equals(this.travelEntertainmentAuthDataMarket, additionalDataLodging.travelEntertainmentAuthDataMarket); } @Override public int hashCode() { - return Objects.hash( - lodgingSpecialProgramCode, - lodgingCheckInDate, - lodgingCheckOutDate, - lodgingCustomerServiceTollFreeNumber, - lodgingFireSafetyActIndicator, - lodgingFolioCashAdvances, - lodgingFolioNumber, - lodgingFoodBeverageCharges, - lodgingNoShowIndicator, - lodgingPrepaidExpenses, - lodgingPropertyPhoneNumber, - lodgingRoom1NumberOfNights, - lodgingRoom1Rate, - lodgingTotalRoomTax, - lodgingTotalTax, - travelEntertainmentAuthDataDuration, - travelEntertainmentAuthDataMarket); + return Objects.hash(lodgingSpecialProgramCode, lodgingCheckInDate, lodgingCheckOutDate, lodgingCustomerServiceTollFreeNumber, lodgingFireSafetyActIndicator, lodgingFolioCashAdvances, lodgingFolioNumber, lodgingFoodBeverageCharges, lodgingNoShowIndicator, lodgingPrepaidExpenses, lodgingPropertyPhoneNumber, lodgingRoom1NumberOfNights, lodgingRoom1Rate, lodgingTotalRoomTax, lodgingTotalTax, travelEntertainmentAuthDataDuration, travelEntertainmentAuthDataMarket); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataLodging {\n"); - sb.append(" lodgingSpecialProgramCode: ") - .append(toIndentedString(lodgingSpecialProgramCode)) - .append("\n"); + sb.append(" lodgingSpecialProgramCode: ").append(toIndentedString(lodgingSpecialProgramCode)).append("\n"); sb.append(" lodgingCheckInDate: ").append(toIndentedString(lodgingCheckInDate)).append("\n"); - sb.append(" lodgingCheckOutDate: ") - .append(toIndentedString(lodgingCheckOutDate)) - .append("\n"); - sb.append(" lodgingCustomerServiceTollFreeNumber: ") - .append(toIndentedString(lodgingCustomerServiceTollFreeNumber)) - .append("\n"); - sb.append(" lodgingFireSafetyActIndicator: ") - .append(toIndentedString(lodgingFireSafetyActIndicator)) - .append("\n"); - sb.append(" lodgingFolioCashAdvances: ") - .append(toIndentedString(lodgingFolioCashAdvances)) - .append("\n"); + sb.append(" lodgingCheckOutDate: ").append(toIndentedString(lodgingCheckOutDate)).append("\n"); + sb.append(" lodgingCustomerServiceTollFreeNumber: ").append(toIndentedString(lodgingCustomerServiceTollFreeNumber)).append("\n"); + sb.append(" lodgingFireSafetyActIndicator: ").append(toIndentedString(lodgingFireSafetyActIndicator)).append("\n"); + sb.append(" lodgingFolioCashAdvances: ").append(toIndentedString(lodgingFolioCashAdvances)).append("\n"); sb.append(" lodgingFolioNumber: ").append(toIndentedString(lodgingFolioNumber)).append("\n"); - sb.append(" lodgingFoodBeverageCharges: ") - .append(toIndentedString(lodgingFoodBeverageCharges)) - .append("\n"); - sb.append(" lodgingNoShowIndicator: ") - .append(toIndentedString(lodgingNoShowIndicator)) - .append("\n"); - sb.append(" lodgingPrepaidExpenses: ") - .append(toIndentedString(lodgingPrepaidExpenses)) - .append("\n"); - sb.append(" lodgingPropertyPhoneNumber: ") - .append(toIndentedString(lodgingPropertyPhoneNumber)) - .append("\n"); - sb.append(" lodgingRoom1NumberOfNights: ") - .append(toIndentedString(lodgingRoom1NumberOfNights)) - .append("\n"); + sb.append(" lodgingFoodBeverageCharges: ").append(toIndentedString(lodgingFoodBeverageCharges)).append("\n"); + sb.append(" lodgingNoShowIndicator: ").append(toIndentedString(lodgingNoShowIndicator)).append("\n"); + sb.append(" lodgingPrepaidExpenses: ").append(toIndentedString(lodgingPrepaidExpenses)).append("\n"); + sb.append(" lodgingPropertyPhoneNumber: ").append(toIndentedString(lodgingPropertyPhoneNumber)).append("\n"); + sb.append(" lodgingRoom1NumberOfNights: ").append(toIndentedString(lodgingRoom1NumberOfNights)).append("\n"); sb.append(" lodgingRoom1Rate: ").append(toIndentedString(lodgingRoom1Rate)).append("\n"); - sb.append(" lodgingTotalRoomTax: ") - .append(toIndentedString(lodgingTotalRoomTax)) - .append("\n"); + sb.append(" lodgingTotalRoomTax: ").append(toIndentedString(lodgingTotalRoomTax)).append("\n"); sb.append(" lodgingTotalTax: ").append(toIndentedString(lodgingTotalTax)).append("\n"); - sb.append(" travelEntertainmentAuthDataDuration: ") - .append(toIndentedString(travelEntertainmentAuthDataDuration)) - .append("\n"); - sb.append(" travelEntertainmentAuthDataMarket: ") - .append(toIndentedString(travelEntertainmentAuthDataMarket)) - .append("\n"); + sb.append(" travelEntertainmentAuthDataDuration: ").append(toIndentedString(travelEntertainmentAuthDataDuration)).append("\n"); + sb.append(" travelEntertainmentAuthDataMarket: ").append(toIndentedString(travelEntertainmentAuthDataMarket)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -945,23 +718,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalDataLodging given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataLodging - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataLodging + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataLodging */ public static AdditionalDataLodging fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataLodging.class); } - - /** - * Convert an instance of AdditionalDataLodging to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalDataLodging to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataModifications.java b/src/main/java/com/adyen/model/payment/AdditionalDataModifications.java index c36a6ec9b..5c38a7a1d 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataModifications.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataModifications.java @@ -2,53 +2,56 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AdditionalDataModifications */ + +/** + * AdditionalDataModifications + */ @JsonPropertyOrder({ AdditionalDataModifications.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_SELECTED_INSTALLMENT_OPTION }) + public class AdditionalDataModifications { - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_SELECTED_INSTALLMENT_OPTION = - "installmentPaymentData.selectedInstallmentOption"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_SELECTED_INSTALLMENT_OPTION = "installmentPaymentData.selectedInstallmentOption"; private String installmentPaymentDataSelectedInstallmentOption; - public AdditionalDataModifications() {} + public AdditionalDataModifications() { + } /** - * This is the installment option selected by the shopper. It is required only if specified by the - * user. + * This is the installment option selected by the shopper. It is required only if specified by the user. * - * @param installmentPaymentDataSelectedInstallmentOption This is the installment option selected - * by the shopper. It is required only if specified by the user. + * @param installmentPaymentDataSelectedInstallmentOption This is the installment option selected by the shopper. It is required only if specified by the user. * @return the current {@code AdditionalDataModifications} instance, allowing for method chaining */ - public AdditionalDataModifications installmentPaymentDataSelectedInstallmentOption( - String installmentPaymentDataSelectedInstallmentOption) { - this.installmentPaymentDataSelectedInstallmentOption = - installmentPaymentDataSelectedInstallmentOption; + public AdditionalDataModifications installmentPaymentDataSelectedInstallmentOption(String installmentPaymentDataSelectedInstallmentOption) { + this.installmentPaymentDataSelectedInstallmentOption = installmentPaymentDataSelectedInstallmentOption; return this; } /** - * This is the installment option selected by the shopper. It is required only if specified by the - * user. - * - * @return installmentPaymentDataSelectedInstallmentOption This is the installment option selected - * by the shopper. It is required only if specified by the user. + * This is the installment option selected by the shopper. It is required only if specified by the user. + * @return installmentPaymentDataSelectedInstallmentOption This is the installment option selected by the shopper. It is required only if specified by the user. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_SELECTED_INSTALLMENT_OPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -57,21 +60,19 @@ public String getInstallmentPaymentDataSelectedInstallmentOption() { } /** - * This is the installment option selected by the shopper. It is required only if specified by the - * user. + * This is the installment option selected by the shopper. It is required only if specified by the user. * - * @param installmentPaymentDataSelectedInstallmentOption This is the installment option selected - * by the shopper. It is required only if specified by the user. + * @param installmentPaymentDataSelectedInstallmentOption This is the installment option selected by the shopper. It is required only if specified by the user. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_SELECTED_INSTALLMENT_OPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataSelectedInstallmentOption( - String installmentPaymentDataSelectedInstallmentOption) { - this.installmentPaymentDataSelectedInstallmentOption = - installmentPaymentDataSelectedInstallmentOption; + public void setInstallmentPaymentDataSelectedInstallmentOption(String installmentPaymentDataSelectedInstallmentOption) { + this.installmentPaymentDataSelectedInstallmentOption = installmentPaymentDataSelectedInstallmentOption; } - /** Return true if this AdditionalDataModifications object is equal to o. */ + /** + * Return true if this AdditionalDataModifications object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -81,9 +82,7 @@ public boolean equals(Object o) { return false; } AdditionalDataModifications additionalDataModifications = (AdditionalDataModifications) o; - return Objects.equals( - this.installmentPaymentDataSelectedInstallmentOption, - additionalDataModifications.installmentPaymentDataSelectedInstallmentOption); + return Objects.equals(this.installmentPaymentDataSelectedInstallmentOption, additionalDataModifications.installmentPaymentDataSelectedInstallmentOption); } @Override @@ -95,15 +94,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataModifications {\n"); - sb.append(" installmentPaymentDataSelectedInstallmentOption: ") - .append(toIndentedString(installmentPaymentDataSelectedInstallmentOption)) - .append("\n"); + sb.append(" installmentPaymentDataSelectedInstallmentOption: ").append(toIndentedString(installmentPaymentDataSelectedInstallmentOption)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -112,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalDataModifications given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataModifications - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataModifications + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataModifications */ - public static AdditionalDataModifications fromJson(String jsonString) - throws JsonProcessingException { + public static AdditionalDataModifications fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataModifications.class); } - - /** - * Convert an instance of AdditionalDataModifications to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalDataModifications to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataOpenInvoice.java b/src/main/java/com/adyen/model/payment/AdditionalDataOpenInvoice.java index bf39ddf4c..0201d18a2 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataOpenInvoice.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataOpenInvoice.java @@ -2,22 +2,31 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AdditionalDataOpenInvoice */ + +/** + * AdditionalDataOpenInvoice + */ @JsonPropertyOrder({ AdditionalDataOpenInvoice.JSON_PROPERTY_OPENINVOICEDATA_MERCHANT_DATA, AdditionalDataOpenInvoice.JSON_PROPERTY_OPENINVOICEDATA_NUMBER_OF_LINES, @@ -38,94 +47,69 @@ AdditionalDataOpenInvoice.JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_NUMBER, AdditionalDataOpenInvoice.JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_URI }) + public class AdditionalDataOpenInvoice { - public static final String JSON_PROPERTY_OPENINVOICEDATA_MERCHANT_DATA = - "openinvoicedata.merchantData"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_MERCHANT_DATA = "openinvoicedata.merchantData"; private String openinvoicedataMerchantData; - public static final String JSON_PROPERTY_OPENINVOICEDATA_NUMBER_OF_LINES = - "openinvoicedata.numberOfLines"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_NUMBER_OF_LINES = "openinvoicedata.numberOfLines"; private String openinvoicedataNumberOfLines; - public static final String JSON_PROPERTY_OPENINVOICEDATA_RECIPIENT_FIRST_NAME = - "openinvoicedata.recipientFirstName"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_RECIPIENT_FIRST_NAME = "openinvoicedata.recipientFirstName"; private String openinvoicedataRecipientFirstName; - public static final String JSON_PROPERTY_OPENINVOICEDATA_RECIPIENT_LAST_NAME = - "openinvoicedata.recipientLastName"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_RECIPIENT_LAST_NAME = "openinvoicedata.recipientLastName"; private String openinvoicedataRecipientLastName; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_CURRENCY_CODE = - "openinvoicedataLine[itemNr].currencyCode"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_CURRENCY_CODE = "openinvoicedataLine[itemNr].currencyCode"; private String openinvoicedataLineItemNrCurrencyCode; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_DESCRIPTION = - "openinvoicedataLine[itemNr].description"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_DESCRIPTION = "openinvoicedataLine[itemNr].description"; private String openinvoicedataLineItemNrDescription; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_AMOUNT = - "openinvoicedataLine[itemNr].itemAmount"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_AMOUNT = "openinvoicedataLine[itemNr].itemAmount"; private String openinvoicedataLineItemNrItemAmount; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_ID = - "openinvoicedataLine[itemNr].itemId"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_ID = "openinvoicedataLine[itemNr].itemId"; private String openinvoicedataLineItemNrItemId; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_VAT_AMOUNT = - "openinvoicedataLine[itemNr].itemVatAmount"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_VAT_AMOUNT = "openinvoicedataLine[itemNr].itemVatAmount"; private String openinvoicedataLineItemNrItemVatAmount; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_VAT_PERCENTAGE = - "openinvoicedataLine[itemNr].itemVatPercentage"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_VAT_PERCENTAGE = "openinvoicedataLine[itemNr].itemVatPercentage"; private String openinvoicedataLineItemNrItemVatPercentage; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_NUMBER_OF_ITEMS = - "openinvoicedataLine[itemNr].numberOfItems"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_NUMBER_OF_ITEMS = "openinvoicedataLine[itemNr].numberOfItems"; private String openinvoicedataLineItemNrNumberOfItems; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_SHIPPING_COMPANY = - "openinvoicedataLine[itemNr].returnShippingCompany"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_SHIPPING_COMPANY = "openinvoicedataLine[itemNr].returnShippingCompany"; private String openinvoicedataLineItemNrReturnShippingCompany; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_TRACKING_NUMBER = - "openinvoicedataLine[itemNr].returnTrackingNumber"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_TRACKING_NUMBER = "openinvoicedataLine[itemNr].returnTrackingNumber"; private String openinvoicedataLineItemNrReturnTrackingNumber; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_TRACKING_URI = - "openinvoicedataLine[itemNr].returnTrackingUri"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_TRACKING_URI = "openinvoicedataLine[itemNr].returnTrackingUri"; private String openinvoicedataLineItemNrReturnTrackingUri; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_SHIPPING_COMPANY = - "openinvoicedataLine[itemNr].shippingCompany"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_SHIPPING_COMPANY = "openinvoicedataLine[itemNr].shippingCompany"; private String openinvoicedataLineItemNrShippingCompany; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_SHIPPING_METHOD = - "openinvoicedataLine[itemNr].shippingMethod"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_SHIPPING_METHOD = "openinvoicedataLine[itemNr].shippingMethod"; private String openinvoicedataLineItemNrShippingMethod; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_NUMBER = - "openinvoicedataLine[itemNr].trackingNumber"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_NUMBER = "openinvoicedataLine[itemNr].trackingNumber"; private String openinvoicedataLineItemNrTrackingNumber; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_URI = - "openinvoicedataLine[itemNr].trackingUri"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_URI = "openinvoicedataLine[itemNr].trackingUri"; private String openinvoicedataLineItemNrTrackingUri; - public AdditionalDataOpenInvoice() {} + public AdditionalDataOpenInvoice() { + } /** - * Holds different merchant data points like product, purchase, customer, and so on. It takes data - * in a Base64 encoded string. The `merchantData` parameter needs to be added to the - * `openinvoicedata` signature at the end. Since the field is optional, if it's not - * included it does not impact computing the merchant signature. Applies only to Klarna. You can - * contact Klarna for the format and structure of the string. + * Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string. The `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end. Since the field is optional, if it's not included it does not impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for the format and structure of the string. * - * @param openinvoicedataMerchantData Holds different merchant data points like product, purchase, - * customer, and so on. It takes data in a Base64 encoded string. The `merchantData` - * parameter needs to be added to the `openinvoicedata` signature at the end. Since - * the field is optional, if it's not included it does not impact computing the merchant - * signature. Applies only to Klarna. You can contact Klarna for the format and structure of - * the string. + * @param openinvoicedataMerchantData Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string. The `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end. Since the field is optional, if it's not included it does not impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for the format and structure of the string. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ public AdditionalDataOpenInvoice openinvoicedataMerchantData(String openinvoicedataMerchantData) { @@ -134,18 +118,8 @@ public AdditionalDataOpenInvoice openinvoicedataMerchantData(String openinvoiced } /** - * Holds different merchant data points like product, purchase, customer, and so on. It takes data - * in a Base64 encoded string. The `merchantData` parameter needs to be added to the - * `openinvoicedata` signature at the end. Since the field is optional, if it's not - * included it does not impact computing the merchant signature. Applies only to Klarna. You can - * contact Klarna for the format and structure of the string. - * - * @return openinvoicedataMerchantData Holds different merchant data points like product, - * purchase, customer, and so on. It takes data in a Base64 encoded string. The - * `merchantData` parameter needs to be added to the `openinvoicedata` - * signature at the end. Since the field is optional, if it's not included it does not - * impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for - * the format and structure of the string. + * Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string. The `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end. Since the field is optional, if it's not included it does not impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for the format and structure of the string. + * @return openinvoicedataMerchantData Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string. The `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end. Since the field is optional, if it's not included it does not impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for the format and structure of the string. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_MERCHANT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -154,18 +128,9 @@ public String getOpeninvoicedataMerchantData() { } /** - * Holds different merchant data points like product, purchase, customer, and so on. It takes data - * in a Base64 encoded string. The `merchantData` parameter needs to be added to the - * `openinvoicedata` signature at the end. Since the field is optional, if it's not - * included it does not impact computing the merchant signature. Applies only to Klarna. You can - * contact Klarna for the format and structure of the string. + * Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string. The `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end. Since the field is optional, if it's not included it does not impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for the format and structure of the string. * - * @param openinvoicedataMerchantData Holds different merchant data points like product, purchase, - * customer, and so on. It takes data in a Base64 encoded string. The `merchantData` - * parameter needs to be added to the `openinvoicedata` signature at the end. Since - * the field is optional, if it's not included it does not impact computing the merchant - * signature. Applies only to Klarna. You can contact Klarna for the format and structure of - * the string. + * @param openinvoicedataMerchantData Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string. The `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end. Since the field is optional, if it's not included it does not impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for the format and structure of the string. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_MERCHANT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -174,27 +139,19 @@ public void setOpeninvoicedataMerchantData(String openinvoicedataMerchantData) { } /** - * The number of invoice lines included in `openinvoicedata`. There needs to be at least - * one line, so `numberOfLines` needs to be at least 1. + * The number of invoice lines included in `openinvoicedata`. There needs to be at least one line, so `numberOfLines` needs to be at least 1. * - * @param openinvoicedataNumberOfLines The number of invoice lines included in - * `openinvoicedata`. There needs to be at least one line, so - * `numberOfLines` needs to be at least 1. + * @param openinvoicedataNumberOfLines The number of invoice lines included in `openinvoicedata`. There needs to be at least one line, so `numberOfLines` needs to be at least 1. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataNumberOfLines( - String openinvoicedataNumberOfLines) { + public AdditionalDataOpenInvoice openinvoicedataNumberOfLines(String openinvoicedataNumberOfLines) { this.openinvoicedataNumberOfLines = openinvoicedataNumberOfLines; return this; } /** - * The number of invoice lines included in `openinvoicedata`. There needs to be at least - * one line, so `numberOfLines` needs to be at least 1. - * - * @return openinvoicedataNumberOfLines The number of invoice lines included in - * `openinvoicedata`. There needs to be at least one line, so - * `numberOfLines` needs to be at least 1. + * The number of invoice lines included in `openinvoicedata`. There needs to be at least one line, so `numberOfLines` needs to be at least 1. + * @return openinvoicedataNumberOfLines The number of invoice lines included in `openinvoicedata`. There needs to be at least one line, so `numberOfLines` needs to be at least 1. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_NUMBER_OF_LINES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -203,12 +160,9 @@ public String getOpeninvoicedataNumberOfLines() { } /** - * The number of invoice lines included in `openinvoicedata`. There needs to be at least - * one line, so `numberOfLines` needs to be at least 1. + * The number of invoice lines included in `openinvoicedata`. There needs to be at least one line, so `numberOfLines` needs to be at least 1. * - * @param openinvoicedataNumberOfLines The number of invoice lines included in - * `openinvoicedata`. There needs to be at least one line, so - * `numberOfLines` needs to be at least 1. + * @param openinvoicedataNumberOfLines The number of invoice lines included in `openinvoicedata`. There needs to be at least one line, so `numberOfLines` needs to be at least 1. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_NUMBER_OF_LINES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -217,31 +171,19 @@ public void setOpeninvoicedataNumberOfLines(String openinvoicedataNumberOfLines) } /** - * First name of the recipient. If the delivery address and the billing address are different, - * specify the `recipientFirstName` and `recipientLastName` to share the - * delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * First name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. * - * @param openinvoicedataRecipientFirstName First name of the recipient. If the delivery address - * and the billing address are different, specify the `recipientFirstName` and - * `recipientLastName` to share the delivery address with Klarna. Otherwise, only - * the billing address is shared with Klarna. + * @param openinvoicedataRecipientFirstName First name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataRecipientFirstName( - String openinvoicedataRecipientFirstName) { + public AdditionalDataOpenInvoice openinvoicedataRecipientFirstName(String openinvoicedataRecipientFirstName) { this.openinvoicedataRecipientFirstName = openinvoicedataRecipientFirstName; return this; } /** - * First name of the recipient. If the delivery address and the billing address are different, - * specify the `recipientFirstName` and `recipientLastName` to share the - * delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. - * - * @return openinvoicedataRecipientFirstName First name of the recipient. If the delivery address - * and the billing address are different, specify the `recipientFirstName` and - * `recipientLastName` to share the delivery address with Klarna. Otherwise, only - * the billing address is shared with Klarna. + * First name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * @return openinvoicedataRecipientFirstName First name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_RECIPIENT_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,14 +192,9 @@ public String getOpeninvoicedataRecipientFirstName() { } /** - * First name of the recipient. If the delivery address and the billing address are different, - * specify the `recipientFirstName` and `recipientLastName` to share the - * delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * First name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. * - * @param openinvoicedataRecipientFirstName First name of the recipient. If the delivery address - * and the billing address are different, specify the `recipientFirstName` and - * `recipientLastName` to share the delivery address with Klarna. Otherwise, only - * the billing address is shared with Klarna. + * @param openinvoicedataRecipientFirstName First name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_RECIPIENT_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -266,31 +203,19 @@ public void setOpeninvoicedataRecipientFirstName(String openinvoicedataRecipient } /** - * Last name of the recipient. If the delivery address and the billing address are different, - * specify the `recipientFirstName` and `recipientLastName` to share the - * delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * Last name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. * - * @param openinvoicedataRecipientLastName Last name of the recipient. If the delivery address and - * the billing address are different, specify the `recipientFirstName` and - * `recipientLastName` to share the delivery address with Klarna. Otherwise, only - * the billing address is shared with Klarna. + * @param openinvoicedataRecipientLastName Last name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataRecipientLastName( - String openinvoicedataRecipientLastName) { + public AdditionalDataOpenInvoice openinvoicedataRecipientLastName(String openinvoicedataRecipientLastName) { this.openinvoicedataRecipientLastName = openinvoicedataRecipientLastName; return this; } /** - * Last name of the recipient. If the delivery address and the billing address are different, - * specify the `recipientFirstName` and `recipientLastName` to share the - * delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. - * - * @return openinvoicedataRecipientLastName Last name of the recipient. If the delivery address - * and the billing address are different, specify the `recipientFirstName` and - * `recipientLastName` to share the delivery address with Klarna. Otherwise, only - * the billing address is shared with Klarna. + * Last name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * @return openinvoicedataRecipientLastName Last name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_RECIPIENT_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -299,14 +224,9 @@ public String getOpeninvoicedataRecipientLastName() { } /** - * Last name of the recipient. If the delivery address and the billing address are different, - * specify the `recipientFirstName` and `recipientLastName` to share the - * delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * Last name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. * - * @param openinvoicedataRecipientLastName Last name of the recipient. If the delivery address and - * the billing address are different, specify the `recipientFirstName` and - * `recipientLastName` to share the delivery address with Klarna. Otherwise, only - * the billing address is shared with Klarna. + * @param openinvoicedataRecipientLastName Last name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_RECIPIENT_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -320,15 +240,13 @@ public void setOpeninvoicedataRecipientLastName(String openinvoicedataRecipientL * @param openinvoicedataLineItemNrCurrencyCode The three-character ISO currency code. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrCurrencyCode( - String openinvoicedataLineItemNrCurrencyCode) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrCurrencyCode(String openinvoicedataLineItemNrCurrencyCode) { this.openinvoicedataLineItemNrCurrencyCode = openinvoicedataLineItemNrCurrencyCode; return this; } /** * The three-character ISO currency code. - * * @return openinvoicedataLineItemNrCurrencyCode The three-character ISO currency code. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_CURRENCY_CODE) @@ -344,29 +262,24 @@ public String getOpeninvoicedataLineItemNrCurrencyCode() { */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_CURRENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrCurrencyCode( - String openinvoicedataLineItemNrCurrencyCode) { + public void setOpeninvoicedataLineItemNrCurrencyCode(String openinvoicedataLineItemNrCurrencyCode) { this.openinvoicedataLineItemNrCurrencyCode = openinvoicedataLineItemNrCurrencyCode; } /** * A text description of the product the invoice line refers to. * - * @param openinvoicedataLineItemNrDescription A text description of the product the invoice line - * refers to. + * @param openinvoicedataLineItemNrDescription A text description of the product the invoice line refers to. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrDescription( - String openinvoicedataLineItemNrDescription) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrDescription(String openinvoicedataLineItemNrDescription) { this.openinvoicedataLineItemNrDescription = openinvoicedataLineItemNrDescription; return this; } /** * A text description of the product the invoice line refers to. - * - * @return openinvoicedataLineItemNrDescription A text description of the product the invoice line - * refers to. + * @return openinvoicedataLineItemNrDescription A text description of the product the invoice line refers to. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -377,8 +290,7 @@ public String getOpeninvoicedataLineItemNrDescription() { /** * A text description of the product the invoice line refers to. * - * @param openinvoicedataLineItemNrDescription A text description of the product the invoice line - * refers to. + * @param openinvoicedataLineItemNrDescription A text description of the product the invoice line refers to. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -387,25 +299,19 @@ public void setOpeninvoicedataLineItemNrDescription(String openinvoicedataLineIt } /** - * The price for one item in the invoice line, represented in minor units. The due amount for the - * item, VAT excluded. + * The price for one item in the invoice line, represented in minor units. The due amount for the item, VAT excluded. * - * @param openinvoicedataLineItemNrItemAmount The price for one item in the invoice line, - * represented in minor units. The due amount for the item, VAT excluded. + * @param openinvoicedataLineItemNrItemAmount The price for one item in the invoice line, represented in minor units. The due amount for the item, VAT excluded. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrItemAmount( - String openinvoicedataLineItemNrItemAmount) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrItemAmount(String openinvoicedataLineItemNrItemAmount) { this.openinvoicedataLineItemNrItemAmount = openinvoicedataLineItemNrItemAmount; return this; } /** - * The price for one item in the invoice line, represented in minor units. The due amount for the - * item, VAT excluded. - * - * @return openinvoicedataLineItemNrItemAmount The price for one item in the invoice line, - * represented in minor units. The due amount for the item, VAT excluded. + * The price for one item in the invoice line, represented in minor units. The due amount for the item, VAT excluded. + * @return openinvoicedataLineItemNrItemAmount The price for one item in the invoice line, represented in minor units. The due amount for the item, VAT excluded. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -414,11 +320,9 @@ public String getOpeninvoicedataLineItemNrItemAmount() { } /** - * The price for one item in the invoice line, represented in minor units. The due amount for the - * item, VAT excluded. + * The price for one item in the invoice line, represented in minor units. The due amount for the item, VAT excluded. * - * @param openinvoicedataLineItemNrItemAmount The price for one item in the invoice line, - * represented in minor units. The due amount for the item, VAT excluded. + * @param openinvoicedataLineItemNrItemAmount The price for one item in the invoice line, represented in minor units. The due amount for the item, VAT excluded. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -429,21 +333,17 @@ public void setOpeninvoicedataLineItemNrItemAmount(String openinvoicedataLineIte /** * A unique id for this item. Required for RatePay if the description of each item is not unique. * - * @param openinvoicedataLineItemNrItemId A unique id for this item. Required for RatePay if the - * description of each item is not unique. + * @param openinvoicedataLineItemNrItemId A unique id for this item. Required for RatePay if the description of each item is not unique. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrItemId( - String openinvoicedataLineItemNrItemId) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrItemId(String openinvoicedataLineItemNrItemId) { this.openinvoicedataLineItemNrItemId = openinvoicedataLineItemNrItemId; return this; } /** * A unique id for this item. Required for RatePay if the description of each item is not unique. - * - * @return openinvoicedataLineItemNrItemId A unique id for this item. Required for RatePay if the - * description of each item is not unique. + * @return openinvoicedataLineItemNrItemId A unique id for this item. Required for RatePay if the description of each item is not unique. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -454,8 +354,7 @@ public String getOpeninvoicedataLineItemNrItemId() { /** * A unique id for this item. Required for RatePay if the description of each item is not unique. * - * @param openinvoicedataLineItemNrItemId A unique id for this item. Required for RatePay if the - * description of each item is not unique. + * @param openinvoicedataLineItemNrItemId A unique id for this item. Required for RatePay if the description of each item is not unique. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -466,21 +365,17 @@ public void setOpeninvoicedataLineItemNrItemId(String openinvoicedataLineItemNrI /** * The VAT due for one item in the invoice line, represented in minor units. * - * @param openinvoicedataLineItemNrItemVatAmount The VAT due for one item in the invoice line, - * represented in minor units. + * @param openinvoicedataLineItemNrItemVatAmount The VAT due for one item in the invoice line, represented in minor units. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrItemVatAmount( - String openinvoicedataLineItemNrItemVatAmount) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrItemVatAmount(String openinvoicedataLineItemNrItemVatAmount) { this.openinvoicedataLineItemNrItemVatAmount = openinvoicedataLineItemNrItemVatAmount; return this; } /** * The VAT due for one item in the invoice line, represented in minor units. - * - * @return openinvoicedataLineItemNrItemVatAmount The VAT due for one item in the invoice line, - * represented in minor units. + * @return openinvoicedataLineItemNrItemVatAmount The VAT due for one item in the invoice line, represented in minor units. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_VAT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -491,36 +386,28 @@ public String getOpeninvoicedataLineItemNrItemVatAmount() { /** * The VAT due for one item in the invoice line, represented in minor units. * - * @param openinvoicedataLineItemNrItemVatAmount The VAT due for one item in the invoice line, - * represented in minor units. + * @param openinvoicedataLineItemNrItemVatAmount The VAT due for one item in the invoice line, represented in minor units. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_VAT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrItemVatAmount( - String openinvoicedataLineItemNrItemVatAmount) { + public void setOpeninvoicedataLineItemNrItemVatAmount(String openinvoicedataLineItemNrItemVatAmount) { this.openinvoicedataLineItemNrItemVatAmount = openinvoicedataLineItemNrItemVatAmount; } /** - * The VAT percentage for one item in the invoice line, represented in minor units. For example, - * 19% VAT is specified as 1900. + * The VAT percentage for one item in the invoice line, represented in minor units. For example, 19% VAT is specified as 1900. * - * @param openinvoicedataLineItemNrItemVatPercentage The VAT percentage for one item in the - * invoice line, represented in minor units. For example, 19% VAT is specified as 1900. + * @param openinvoicedataLineItemNrItemVatPercentage The VAT percentage for one item in the invoice line, represented in minor units. For example, 19% VAT is specified as 1900. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrItemVatPercentage( - String openinvoicedataLineItemNrItemVatPercentage) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrItemVatPercentage(String openinvoicedataLineItemNrItemVatPercentage) { this.openinvoicedataLineItemNrItemVatPercentage = openinvoicedataLineItemNrItemVatPercentage; return this; } /** - * The VAT percentage for one item in the invoice line, represented in minor units. For example, - * 19% VAT is specified as 1900. - * - * @return openinvoicedataLineItemNrItemVatPercentage The VAT percentage for one item in the - * invoice line, represented in minor units. For example, 19% VAT is specified as 1900. + * The VAT percentage for one item in the invoice line, represented in minor units. For example, 19% VAT is specified as 1900. + * @return openinvoicedataLineItemNrItemVatPercentage The VAT percentage for one item in the invoice line, represented in minor units. For example, 19% VAT is specified as 1900. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_VAT_PERCENTAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -529,37 +416,30 @@ public String getOpeninvoicedataLineItemNrItemVatPercentage() { } /** - * The VAT percentage for one item in the invoice line, represented in minor units. For example, - * 19% VAT is specified as 1900. + * The VAT percentage for one item in the invoice line, represented in minor units. For example, 19% VAT is specified as 1900. * - * @param openinvoicedataLineItemNrItemVatPercentage The VAT percentage for one item in the - * invoice line, represented in minor units. For example, 19% VAT is specified as 1900. + * @param openinvoicedataLineItemNrItemVatPercentage The VAT percentage for one item in the invoice line, represented in minor units. For example, 19% VAT is specified as 1900. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_VAT_PERCENTAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrItemVatPercentage( - String openinvoicedataLineItemNrItemVatPercentage) { + public void setOpeninvoicedataLineItemNrItemVatPercentage(String openinvoicedataLineItemNrItemVatPercentage) { this.openinvoicedataLineItemNrItemVatPercentage = openinvoicedataLineItemNrItemVatPercentage; } /** * The number of units purchased of a specific product. * - * @param openinvoicedataLineItemNrNumberOfItems The number of units purchased of a specific - * product. + * @param openinvoicedataLineItemNrNumberOfItems The number of units purchased of a specific product. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrNumberOfItems( - String openinvoicedataLineItemNrNumberOfItems) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrNumberOfItems(String openinvoicedataLineItemNrNumberOfItems) { this.openinvoicedataLineItemNrNumberOfItems = openinvoicedataLineItemNrNumberOfItems; return this; } /** * The number of units purchased of a specific product. - * - * @return openinvoicedataLineItemNrNumberOfItems The number of units purchased of a specific - * product. + * @return openinvoicedataLineItemNrNumberOfItems The number of units purchased of a specific product. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_NUMBER_OF_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -570,35 +450,28 @@ public String getOpeninvoicedataLineItemNrNumberOfItems() { /** * The number of units purchased of a specific product. * - * @param openinvoicedataLineItemNrNumberOfItems The number of units purchased of a specific - * product. + * @param openinvoicedataLineItemNrNumberOfItems The number of units purchased of a specific product. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_NUMBER_OF_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrNumberOfItems( - String openinvoicedataLineItemNrNumberOfItems) { + public void setOpeninvoicedataLineItemNrNumberOfItems(String openinvoicedataLineItemNrNumberOfItems) { this.openinvoicedataLineItemNrNumberOfItems = openinvoicedataLineItemNrNumberOfItems; } /** * Name of the shipping company handling the the return shipment. * - * @param openinvoicedataLineItemNrReturnShippingCompany Name of the shipping company handling the - * the return shipment. + * @param openinvoicedataLineItemNrReturnShippingCompany Name of the shipping company handling the the return shipment. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrReturnShippingCompany( - String openinvoicedataLineItemNrReturnShippingCompany) { - this.openinvoicedataLineItemNrReturnShippingCompany = - openinvoicedataLineItemNrReturnShippingCompany; + public AdditionalDataOpenInvoice openinvoicedataLineItemNrReturnShippingCompany(String openinvoicedataLineItemNrReturnShippingCompany) { + this.openinvoicedataLineItemNrReturnShippingCompany = openinvoicedataLineItemNrReturnShippingCompany; return this; } /** * Name of the shipping company handling the the return shipment. - * - * @return openinvoicedataLineItemNrReturnShippingCompany Name of the shipping company handling - * the the return shipment. + * @return openinvoicedataLineItemNrReturnShippingCompany Name of the shipping company handling the the return shipment. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_SHIPPING_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -609,36 +482,28 @@ public String getOpeninvoicedataLineItemNrReturnShippingCompany() { /** * Name of the shipping company handling the the return shipment. * - * @param openinvoicedataLineItemNrReturnShippingCompany Name of the shipping company handling the - * the return shipment. + * @param openinvoicedataLineItemNrReturnShippingCompany Name of the shipping company handling the the return shipment. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_SHIPPING_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrReturnShippingCompany( - String openinvoicedataLineItemNrReturnShippingCompany) { - this.openinvoicedataLineItemNrReturnShippingCompany = - openinvoicedataLineItemNrReturnShippingCompany; + public void setOpeninvoicedataLineItemNrReturnShippingCompany(String openinvoicedataLineItemNrReturnShippingCompany) { + this.openinvoicedataLineItemNrReturnShippingCompany = openinvoicedataLineItemNrReturnShippingCompany; } /** * The tracking number for the return of the shipment. * - * @param openinvoicedataLineItemNrReturnTrackingNumber The tracking number for the return of the - * shipment. + * @param openinvoicedataLineItemNrReturnTrackingNumber The tracking number for the return of the shipment. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrReturnTrackingNumber( - String openinvoicedataLineItemNrReturnTrackingNumber) { - this.openinvoicedataLineItemNrReturnTrackingNumber = - openinvoicedataLineItemNrReturnTrackingNumber; + public AdditionalDataOpenInvoice openinvoicedataLineItemNrReturnTrackingNumber(String openinvoicedataLineItemNrReturnTrackingNumber) { + this.openinvoicedataLineItemNrReturnTrackingNumber = openinvoicedataLineItemNrReturnTrackingNumber; return this; } /** * The tracking number for the return of the shipment. - * - * @return openinvoicedataLineItemNrReturnTrackingNumber The tracking number for the return of the - * shipment. + * @return openinvoicedataLineItemNrReturnTrackingNumber The tracking number for the return of the shipment. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_TRACKING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -649,35 +514,28 @@ public String getOpeninvoicedataLineItemNrReturnTrackingNumber() { /** * The tracking number for the return of the shipment. * - * @param openinvoicedataLineItemNrReturnTrackingNumber The tracking number for the return of the - * shipment. + * @param openinvoicedataLineItemNrReturnTrackingNumber The tracking number for the return of the shipment. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_TRACKING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrReturnTrackingNumber( - String openinvoicedataLineItemNrReturnTrackingNumber) { - this.openinvoicedataLineItemNrReturnTrackingNumber = - openinvoicedataLineItemNrReturnTrackingNumber; + public void setOpeninvoicedataLineItemNrReturnTrackingNumber(String openinvoicedataLineItemNrReturnTrackingNumber) { + this.openinvoicedataLineItemNrReturnTrackingNumber = openinvoicedataLineItemNrReturnTrackingNumber; } /** * URI where the customer can track the return of their shipment. * - * @param openinvoicedataLineItemNrReturnTrackingUri URI where the customer can track the return - * of their shipment. + * @param openinvoicedataLineItemNrReturnTrackingUri URI where the customer can track the return of their shipment. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrReturnTrackingUri( - String openinvoicedataLineItemNrReturnTrackingUri) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrReturnTrackingUri(String openinvoicedataLineItemNrReturnTrackingUri) { this.openinvoicedataLineItemNrReturnTrackingUri = openinvoicedataLineItemNrReturnTrackingUri; return this; } /** * URI where the customer can track the return of their shipment. - * - * @return openinvoicedataLineItemNrReturnTrackingUri URI where the customer can track the return - * of their shipment. + * @return openinvoicedataLineItemNrReturnTrackingUri URI where the customer can track the return of their shipment. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_TRACKING_URI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -688,34 +546,28 @@ public String getOpeninvoicedataLineItemNrReturnTrackingUri() { /** * URI where the customer can track the return of their shipment. * - * @param openinvoicedataLineItemNrReturnTrackingUri URI where the customer can track the return - * of their shipment. + * @param openinvoicedataLineItemNrReturnTrackingUri URI where the customer can track the return of their shipment. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_TRACKING_URI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrReturnTrackingUri( - String openinvoicedataLineItemNrReturnTrackingUri) { + public void setOpeninvoicedataLineItemNrReturnTrackingUri(String openinvoicedataLineItemNrReturnTrackingUri) { this.openinvoicedataLineItemNrReturnTrackingUri = openinvoicedataLineItemNrReturnTrackingUri; } /** * Name of the shipping company handling the delivery. * - * @param openinvoicedataLineItemNrShippingCompany Name of the shipping company handling the - * delivery. + * @param openinvoicedataLineItemNrShippingCompany Name of the shipping company handling the delivery. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrShippingCompany( - String openinvoicedataLineItemNrShippingCompany) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrShippingCompany(String openinvoicedataLineItemNrShippingCompany) { this.openinvoicedataLineItemNrShippingCompany = openinvoicedataLineItemNrShippingCompany; return this; } /** * Name of the shipping company handling the delivery. - * - * @return openinvoicedataLineItemNrShippingCompany Name of the shipping company handling the - * delivery. + * @return openinvoicedataLineItemNrShippingCompany Name of the shipping company handling the delivery. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_SHIPPING_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -726,13 +578,11 @@ public String getOpeninvoicedataLineItemNrShippingCompany() { /** * Name of the shipping company handling the delivery. * - * @param openinvoicedataLineItemNrShippingCompany Name of the shipping company handling the - * delivery. + * @param openinvoicedataLineItemNrShippingCompany Name of the shipping company handling the delivery. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_SHIPPING_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrShippingCompany( - String openinvoicedataLineItemNrShippingCompany) { + public void setOpeninvoicedataLineItemNrShippingCompany(String openinvoicedataLineItemNrShippingCompany) { this.openinvoicedataLineItemNrShippingCompany = openinvoicedataLineItemNrShippingCompany; } @@ -742,15 +592,13 @@ public void setOpeninvoicedataLineItemNrShippingCompany( * @param openinvoicedataLineItemNrShippingMethod Shipping method. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrShippingMethod( - String openinvoicedataLineItemNrShippingMethod) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrShippingMethod(String openinvoicedataLineItemNrShippingMethod) { this.openinvoicedataLineItemNrShippingMethod = openinvoicedataLineItemNrShippingMethod; return this; } /** * Shipping method. - * * @return openinvoicedataLineItemNrShippingMethod Shipping method. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_SHIPPING_METHOD) @@ -766,8 +614,7 @@ public String getOpeninvoicedataLineItemNrShippingMethod() { */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_SHIPPING_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrShippingMethod( - String openinvoicedataLineItemNrShippingMethod) { + public void setOpeninvoicedataLineItemNrShippingMethod(String openinvoicedataLineItemNrShippingMethod) { this.openinvoicedataLineItemNrShippingMethod = openinvoicedataLineItemNrShippingMethod; } @@ -777,15 +624,13 @@ public void setOpeninvoicedataLineItemNrShippingMethod( * @param openinvoicedataLineItemNrTrackingNumber The tracking number for the shipment. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrTrackingNumber( - String openinvoicedataLineItemNrTrackingNumber) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrTrackingNumber(String openinvoicedataLineItemNrTrackingNumber) { this.openinvoicedataLineItemNrTrackingNumber = openinvoicedataLineItemNrTrackingNumber; return this; } /** * The tracking number for the shipment. - * * @return openinvoicedataLineItemNrTrackingNumber The tracking number for the shipment. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_NUMBER) @@ -801,8 +646,7 @@ public String getOpeninvoicedataLineItemNrTrackingNumber() { */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrTrackingNumber( - String openinvoicedataLineItemNrTrackingNumber) { + public void setOpeninvoicedataLineItemNrTrackingNumber(String openinvoicedataLineItemNrTrackingNumber) { this.openinvoicedataLineItemNrTrackingNumber = openinvoicedataLineItemNrTrackingNumber; } @@ -812,15 +656,13 @@ public void setOpeninvoicedataLineItemNrTrackingNumber( * @param openinvoicedataLineItemNrTrackingUri URI where the customer can track their shipment. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrTrackingUri( - String openinvoicedataLineItemNrTrackingUri) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrTrackingUri(String openinvoicedataLineItemNrTrackingUri) { this.openinvoicedataLineItemNrTrackingUri = openinvoicedataLineItemNrTrackingUri; return this; } /** * URI where the customer can track their shipment. - * * @return openinvoicedataLineItemNrTrackingUri URI where the customer can track their shipment. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_URI) @@ -840,7 +682,9 @@ public void setOpeninvoicedataLineItemNrTrackingUri(String openinvoicedataLineIt this.openinvoicedataLineItemNrTrackingUri = openinvoicedataLineItemNrTrackingUri; } - /** Return true if this AdditionalDataOpenInvoice object is equal to o. */ + /** + * Return true if this AdditionalDataOpenInvoice object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -850,148 +694,60 @@ public boolean equals(Object o) { return false; } AdditionalDataOpenInvoice additionalDataOpenInvoice = (AdditionalDataOpenInvoice) o; - return Objects.equals( - this.openinvoicedataMerchantData, additionalDataOpenInvoice.openinvoicedataMerchantData) - && Objects.equals( - this.openinvoicedataNumberOfLines, - additionalDataOpenInvoice.openinvoicedataNumberOfLines) - && Objects.equals( - this.openinvoicedataRecipientFirstName, - additionalDataOpenInvoice.openinvoicedataRecipientFirstName) - && Objects.equals( - this.openinvoicedataRecipientLastName, - additionalDataOpenInvoice.openinvoicedataRecipientLastName) - && Objects.equals( - this.openinvoicedataLineItemNrCurrencyCode, - additionalDataOpenInvoice.openinvoicedataLineItemNrCurrencyCode) - && Objects.equals( - this.openinvoicedataLineItemNrDescription, - additionalDataOpenInvoice.openinvoicedataLineItemNrDescription) - && Objects.equals( - this.openinvoicedataLineItemNrItemAmount, - additionalDataOpenInvoice.openinvoicedataLineItemNrItemAmount) - && Objects.equals( - this.openinvoicedataLineItemNrItemId, - additionalDataOpenInvoice.openinvoicedataLineItemNrItemId) - && Objects.equals( - this.openinvoicedataLineItemNrItemVatAmount, - additionalDataOpenInvoice.openinvoicedataLineItemNrItemVatAmount) - && Objects.equals( - this.openinvoicedataLineItemNrItemVatPercentage, - additionalDataOpenInvoice.openinvoicedataLineItemNrItemVatPercentage) - && Objects.equals( - this.openinvoicedataLineItemNrNumberOfItems, - additionalDataOpenInvoice.openinvoicedataLineItemNrNumberOfItems) - && Objects.equals( - this.openinvoicedataLineItemNrReturnShippingCompany, - additionalDataOpenInvoice.openinvoicedataLineItemNrReturnShippingCompany) - && Objects.equals( - this.openinvoicedataLineItemNrReturnTrackingNumber, - additionalDataOpenInvoice.openinvoicedataLineItemNrReturnTrackingNumber) - && Objects.equals( - this.openinvoicedataLineItemNrReturnTrackingUri, - additionalDataOpenInvoice.openinvoicedataLineItemNrReturnTrackingUri) - && Objects.equals( - this.openinvoicedataLineItemNrShippingCompany, - additionalDataOpenInvoice.openinvoicedataLineItemNrShippingCompany) - && Objects.equals( - this.openinvoicedataLineItemNrShippingMethod, - additionalDataOpenInvoice.openinvoicedataLineItemNrShippingMethod) - && Objects.equals( - this.openinvoicedataLineItemNrTrackingNumber, - additionalDataOpenInvoice.openinvoicedataLineItemNrTrackingNumber) - && Objects.equals( - this.openinvoicedataLineItemNrTrackingUri, - additionalDataOpenInvoice.openinvoicedataLineItemNrTrackingUri); + return Objects.equals(this.openinvoicedataMerchantData, additionalDataOpenInvoice.openinvoicedataMerchantData) && + Objects.equals(this.openinvoicedataNumberOfLines, additionalDataOpenInvoice.openinvoicedataNumberOfLines) && + Objects.equals(this.openinvoicedataRecipientFirstName, additionalDataOpenInvoice.openinvoicedataRecipientFirstName) && + Objects.equals(this.openinvoicedataRecipientLastName, additionalDataOpenInvoice.openinvoicedataRecipientLastName) && + Objects.equals(this.openinvoicedataLineItemNrCurrencyCode, additionalDataOpenInvoice.openinvoicedataLineItemNrCurrencyCode) && + Objects.equals(this.openinvoicedataLineItemNrDescription, additionalDataOpenInvoice.openinvoicedataLineItemNrDescription) && + Objects.equals(this.openinvoicedataLineItemNrItemAmount, additionalDataOpenInvoice.openinvoicedataLineItemNrItemAmount) && + Objects.equals(this.openinvoicedataLineItemNrItemId, additionalDataOpenInvoice.openinvoicedataLineItemNrItemId) && + Objects.equals(this.openinvoicedataLineItemNrItemVatAmount, additionalDataOpenInvoice.openinvoicedataLineItemNrItemVatAmount) && + Objects.equals(this.openinvoicedataLineItemNrItemVatPercentage, additionalDataOpenInvoice.openinvoicedataLineItemNrItemVatPercentage) && + Objects.equals(this.openinvoicedataLineItemNrNumberOfItems, additionalDataOpenInvoice.openinvoicedataLineItemNrNumberOfItems) && + Objects.equals(this.openinvoicedataLineItemNrReturnShippingCompany, additionalDataOpenInvoice.openinvoicedataLineItemNrReturnShippingCompany) && + Objects.equals(this.openinvoicedataLineItemNrReturnTrackingNumber, additionalDataOpenInvoice.openinvoicedataLineItemNrReturnTrackingNumber) && + Objects.equals(this.openinvoicedataLineItemNrReturnTrackingUri, additionalDataOpenInvoice.openinvoicedataLineItemNrReturnTrackingUri) && + Objects.equals(this.openinvoicedataLineItemNrShippingCompany, additionalDataOpenInvoice.openinvoicedataLineItemNrShippingCompany) && + Objects.equals(this.openinvoicedataLineItemNrShippingMethod, additionalDataOpenInvoice.openinvoicedataLineItemNrShippingMethod) && + Objects.equals(this.openinvoicedataLineItemNrTrackingNumber, additionalDataOpenInvoice.openinvoicedataLineItemNrTrackingNumber) && + Objects.equals(this.openinvoicedataLineItemNrTrackingUri, additionalDataOpenInvoice.openinvoicedataLineItemNrTrackingUri); } @Override public int hashCode() { - return Objects.hash( - openinvoicedataMerchantData, - openinvoicedataNumberOfLines, - openinvoicedataRecipientFirstName, - openinvoicedataRecipientLastName, - openinvoicedataLineItemNrCurrencyCode, - openinvoicedataLineItemNrDescription, - openinvoicedataLineItemNrItemAmount, - openinvoicedataLineItemNrItemId, - openinvoicedataLineItemNrItemVatAmount, - openinvoicedataLineItemNrItemVatPercentage, - openinvoicedataLineItemNrNumberOfItems, - openinvoicedataLineItemNrReturnShippingCompany, - openinvoicedataLineItemNrReturnTrackingNumber, - openinvoicedataLineItemNrReturnTrackingUri, - openinvoicedataLineItemNrShippingCompany, - openinvoicedataLineItemNrShippingMethod, - openinvoicedataLineItemNrTrackingNumber, - openinvoicedataLineItemNrTrackingUri); + return Objects.hash(openinvoicedataMerchantData, openinvoicedataNumberOfLines, openinvoicedataRecipientFirstName, openinvoicedataRecipientLastName, openinvoicedataLineItemNrCurrencyCode, openinvoicedataLineItemNrDescription, openinvoicedataLineItemNrItemAmount, openinvoicedataLineItemNrItemId, openinvoicedataLineItemNrItemVatAmount, openinvoicedataLineItemNrItemVatPercentage, openinvoicedataLineItemNrNumberOfItems, openinvoicedataLineItemNrReturnShippingCompany, openinvoicedataLineItemNrReturnTrackingNumber, openinvoicedataLineItemNrReturnTrackingUri, openinvoicedataLineItemNrShippingCompany, openinvoicedataLineItemNrShippingMethod, openinvoicedataLineItemNrTrackingNumber, openinvoicedataLineItemNrTrackingUri); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataOpenInvoice {\n"); - sb.append(" openinvoicedataMerchantData: ") - .append(toIndentedString(openinvoicedataMerchantData)) - .append("\n"); - sb.append(" openinvoicedataNumberOfLines: ") - .append(toIndentedString(openinvoicedataNumberOfLines)) - .append("\n"); - sb.append(" openinvoicedataRecipientFirstName: ") - .append(toIndentedString(openinvoicedataRecipientFirstName)) - .append("\n"); - sb.append(" openinvoicedataRecipientLastName: ") - .append(toIndentedString(openinvoicedataRecipientLastName)) - .append("\n"); - sb.append(" openinvoicedataLineItemNrCurrencyCode: ") - .append(toIndentedString(openinvoicedataLineItemNrCurrencyCode)) - .append("\n"); - sb.append(" openinvoicedataLineItemNrDescription: ") - .append(toIndentedString(openinvoicedataLineItemNrDescription)) - .append("\n"); - sb.append(" openinvoicedataLineItemNrItemAmount: ") - .append(toIndentedString(openinvoicedataLineItemNrItemAmount)) - .append("\n"); - sb.append(" openinvoicedataLineItemNrItemId: ") - .append(toIndentedString(openinvoicedataLineItemNrItemId)) - .append("\n"); - sb.append(" openinvoicedataLineItemNrItemVatAmount: ") - .append(toIndentedString(openinvoicedataLineItemNrItemVatAmount)) - .append("\n"); - sb.append(" openinvoicedataLineItemNrItemVatPercentage: ") - .append(toIndentedString(openinvoicedataLineItemNrItemVatPercentage)) - .append("\n"); - sb.append(" openinvoicedataLineItemNrNumberOfItems: ") - .append(toIndentedString(openinvoicedataLineItemNrNumberOfItems)) - .append("\n"); - sb.append(" openinvoicedataLineItemNrReturnShippingCompany: ") - .append(toIndentedString(openinvoicedataLineItemNrReturnShippingCompany)) - .append("\n"); - sb.append(" openinvoicedataLineItemNrReturnTrackingNumber: ") - .append(toIndentedString(openinvoicedataLineItemNrReturnTrackingNumber)) - .append("\n"); - sb.append(" openinvoicedataLineItemNrReturnTrackingUri: ") - .append(toIndentedString(openinvoicedataLineItemNrReturnTrackingUri)) - .append("\n"); - sb.append(" openinvoicedataLineItemNrShippingCompany: ") - .append(toIndentedString(openinvoicedataLineItemNrShippingCompany)) - .append("\n"); - sb.append(" openinvoicedataLineItemNrShippingMethod: ") - .append(toIndentedString(openinvoicedataLineItemNrShippingMethod)) - .append("\n"); - sb.append(" openinvoicedataLineItemNrTrackingNumber: ") - .append(toIndentedString(openinvoicedataLineItemNrTrackingNumber)) - .append("\n"); - sb.append(" openinvoicedataLineItemNrTrackingUri: ") - .append(toIndentedString(openinvoicedataLineItemNrTrackingUri)) - .append("\n"); + sb.append(" openinvoicedataMerchantData: ").append(toIndentedString(openinvoicedataMerchantData)).append("\n"); + sb.append(" openinvoicedataNumberOfLines: ").append(toIndentedString(openinvoicedataNumberOfLines)).append("\n"); + sb.append(" openinvoicedataRecipientFirstName: ").append(toIndentedString(openinvoicedataRecipientFirstName)).append("\n"); + sb.append(" openinvoicedataRecipientLastName: ").append(toIndentedString(openinvoicedataRecipientLastName)).append("\n"); + sb.append(" openinvoicedataLineItemNrCurrencyCode: ").append(toIndentedString(openinvoicedataLineItemNrCurrencyCode)).append("\n"); + sb.append(" openinvoicedataLineItemNrDescription: ").append(toIndentedString(openinvoicedataLineItemNrDescription)).append("\n"); + sb.append(" openinvoicedataLineItemNrItemAmount: ").append(toIndentedString(openinvoicedataLineItemNrItemAmount)).append("\n"); + sb.append(" openinvoicedataLineItemNrItemId: ").append(toIndentedString(openinvoicedataLineItemNrItemId)).append("\n"); + sb.append(" openinvoicedataLineItemNrItemVatAmount: ").append(toIndentedString(openinvoicedataLineItemNrItemVatAmount)).append("\n"); + sb.append(" openinvoicedataLineItemNrItemVatPercentage: ").append(toIndentedString(openinvoicedataLineItemNrItemVatPercentage)).append("\n"); + sb.append(" openinvoicedataLineItemNrNumberOfItems: ").append(toIndentedString(openinvoicedataLineItemNrNumberOfItems)).append("\n"); + sb.append(" openinvoicedataLineItemNrReturnShippingCompany: ").append(toIndentedString(openinvoicedataLineItemNrReturnShippingCompany)).append("\n"); + sb.append(" openinvoicedataLineItemNrReturnTrackingNumber: ").append(toIndentedString(openinvoicedataLineItemNrReturnTrackingNumber)).append("\n"); + sb.append(" openinvoicedataLineItemNrReturnTrackingUri: ").append(toIndentedString(openinvoicedataLineItemNrReturnTrackingUri)).append("\n"); + sb.append(" openinvoicedataLineItemNrShippingCompany: ").append(toIndentedString(openinvoicedataLineItemNrShippingCompany)).append("\n"); + sb.append(" openinvoicedataLineItemNrShippingMethod: ").append(toIndentedString(openinvoicedataLineItemNrShippingMethod)).append("\n"); + sb.append(" openinvoicedataLineItemNrTrackingNumber: ").append(toIndentedString(openinvoicedataLineItemNrTrackingNumber)).append("\n"); + sb.append(" openinvoicedataLineItemNrTrackingUri: ").append(toIndentedString(openinvoicedataLineItemNrTrackingUri)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1000,24 +756,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalDataOpenInvoice given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataOpenInvoice - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataOpenInvoice + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataOpenInvoice */ - public static AdditionalDataOpenInvoice fromJson(String jsonString) - throws JsonProcessingException { + public static AdditionalDataOpenInvoice fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataOpenInvoice.class); } - - /** - * Convert an instance of AdditionalDataOpenInvoice to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalDataOpenInvoice to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataOpi.java b/src/main/java/com/adyen/model/payment/AdditionalDataOpi.java index 1bd4169c1..7e5705756 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataOpi.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataOpi.java @@ -2,40 +2,46 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AdditionalDataOpi */ -@JsonPropertyOrder({AdditionalDataOpi.JSON_PROPERTY_OPI_INCLUDE_TRANS_TOKEN}) + +/** + * AdditionalDataOpi + */ +@JsonPropertyOrder({ + AdditionalDataOpi.JSON_PROPERTY_OPI_INCLUDE_TRANS_TOKEN +}) + public class AdditionalDataOpi { public static final String JSON_PROPERTY_OPI_INCLUDE_TRANS_TOKEN = "opi.includeTransToken"; private String opiIncludeTransToken; - public AdditionalDataOpi() {} + public AdditionalDataOpi() { + } /** - * Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an - * `opi.transToken` as additional data in the response. You can store this Oracle - * Payment Interface token in your Oracle Opera database. For more information and required - * settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an `opi.transToken` as additional data in the response. You can store this Oracle Payment Interface token in your Oracle Opera database. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). * - * @param opiIncludeTransToken Optional boolean indicator. Set to **true** if you want an - * ecommerce transaction to return an `opi.transToken` as additional data in the - * response. You can store this Oracle Payment Interface token in your Oracle Opera database. - * For more information and required settings, see [Oracle - * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * @param opiIncludeTransToken Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an `opi.transToken` as additional data in the response. You can store this Oracle Payment Interface token in your Oracle Opera database. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). * @return the current {@code AdditionalDataOpi} instance, allowing for method chaining */ public AdditionalDataOpi opiIncludeTransToken(String opiIncludeTransToken) { @@ -44,16 +50,8 @@ public AdditionalDataOpi opiIncludeTransToken(String opiIncludeTransToken) { } /** - * Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an - * `opi.transToken` as additional data in the response. You can store this Oracle - * Payment Interface token in your Oracle Opera database. For more information and required - * settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). - * - * @return opiIncludeTransToken Optional boolean indicator. Set to **true** if you want an - * ecommerce transaction to return an `opi.transToken` as additional data in the - * response. You can store this Oracle Payment Interface token in your Oracle Opera database. - * For more information and required settings, see [Oracle - * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an `opi.transToken` as additional data in the response. You can store this Oracle Payment Interface token in your Oracle Opera database. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * @return opiIncludeTransToken Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an `opi.transToken` as additional data in the response. You can store this Oracle Payment Interface token in your Oracle Opera database. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). */ @JsonProperty(JSON_PROPERTY_OPI_INCLUDE_TRANS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -62,16 +60,9 @@ public String getOpiIncludeTransToken() { } /** - * Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an - * `opi.transToken` as additional data in the response. You can store this Oracle - * Payment Interface token in your Oracle Opera database. For more information and required - * settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an `opi.transToken` as additional data in the response. You can store this Oracle Payment Interface token in your Oracle Opera database. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). * - * @param opiIncludeTransToken Optional boolean indicator. Set to **true** if you want an - * ecommerce transaction to return an `opi.transToken` as additional data in the - * response. You can store this Oracle Payment Interface token in your Oracle Opera database. - * For more information and required settings, see [Oracle - * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * @param opiIncludeTransToken Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an `opi.transToken` as additional data in the response. You can store this Oracle Payment Interface token in your Oracle Opera database. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). */ @JsonProperty(JSON_PROPERTY_OPI_INCLUDE_TRANS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,7 +70,9 @@ public void setOpiIncludeTransToken(String opiIncludeTransToken) { this.opiIncludeTransToken = opiIncludeTransToken; } - /** Return true if this AdditionalDataOpi object is equal to o. */ + /** + * Return true if this AdditionalDataOpi object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -101,15 +94,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataOpi {\n"); - sb.append(" opiIncludeTransToken: ") - .append(toIndentedString(opiIncludeTransToken)) - .append("\n"); + sb.append(" opiIncludeTransToken: ").append(toIndentedString(opiIncludeTransToken)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -118,7 +110,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalDataOpi given an JSON string * * @param jsonString JSON string @@ -128,12 +120,11 @@ private String toIndentedString(Object o) { public static AdditionalDataOpi fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataOpi.class); } - - /** - * Convert an instance of AdditionalDataOpi to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalDataOpi to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataRatepay.java b/src/main/java/com/adyen/model/payment/AdditionalDataRatepay.java index d5f232973..1f7bd4d90 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataRatepay.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataRatepay.java @@ -2,22 +2,31 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AdditionalDataRatepay */ + +/** + * AdditionalDataRatepay + */ @JsonPropertyOrder({ AdditionalDataRatepay.JSON_PROPERTY_RATEPAY_INSTALLMENT_AMOUNT, AdditionalDataRatepay.JSON_PROPERTY_RATEPAY_INTEREST_RATE, @@ -28,6 +37,7 @@ AdditionalDataRatepay.JSON_PROPERTY_RATEPAYDATA_INVOICE_DATE, AdditionalDataRatepay.JSON_PROPERTY_RATEPAYDATA_INVOICE_ID }) + public class AdditionalDataRatepay { public static final String JSON_PROPERTY_RATEPAY_INSTALLMENT_AMOUNT = "ratepay.installmentAmount"; private String ratepayInstallmentAmount; @@ -35,8 +45,7 @@ public class AdditionalDataRatepay { public static final String JSON_PROPERTY_RATEPAY_INTEREST_RATE = "ratepay.interestRate"; private String ratepayInterestRate; - public static final String JSON_PROPERTY_RATEPAY_LAST_INSTALLMENT_AMOUNT = - "ratepay.lastInstallmentAmount"; + public static final String JSON_PROPERTY_RATEPAY_LAST_INSTALLMENT_AMOUNT = "ratepay.lastInstallmentAmount"; private String ratepayLastInstallmentAmount; public static final String JSON_PROPERTY_RATEPAY_PAYMENT_FIRSTDAY = "ratepay.paymentFirstday"; @@ -54,7 +63,8 @@ public class AdditionalDataRatepay { public static final String JSON_PROPERTY_RATEPAYDATA_INVOICE_ID = "ratepaydata.invoiceId"; private String ratepaydataInvoiceId; - public AdditionalDataRatepay() {} + public AdditionalDataRatepay() { + } /** * Amount the customer has to pay each month. @@ -69,7 +79,6 @@ public AdditionalDataRatepay ratepayInstallmentAmount(String ratepayInstallmentA /** * Amount the customer has to pay each month. - * * @return ratepayInstallmentAmount Amount the customer has to pay each month. */ @JsonProperty(JSON_PROPERTY_RATEPAY_INSTALLMENT_AMOUNT) @@ -102,7 +111,6 @@ public AdditionalDataRatepay ratepayInterestRate(String ratepayInterestRate) { /** * Interest rate of this installment. - * * @return ratepayInterestRate Interest rate of this installment. */ @JsonProperty(JSON_PROPERTY_RATEPAY_INTEREST_RATE) @@ -135,7 +143,6 @@ public AdditionalDataRatepay ratepayLastInstallmentAmount(String ratepayLastInst /** * Amount of the last installment. - * * @return ratepayLastInstallmentAmount Amount of the last installment. */ @JsonProperty(JSON_PROPERTY_RATEPAY_LAST_INSTALLMENT_AMOUNT) @@ -168,7 +175,6 @@ public AdditionalDataRatepay ratepayPaymentFirstday(String ratepayPaymentFirstda /** * Calendar day of the first payment. - * * @return ratepayPaymentFirstday Calendar day of the first payment. */ @JsonProperty(JSON_PROPERTY_RATEPAY_PAYMENT_FIRSTDAY) @@ -201,7 +207,6 @@ public AdditionalDataRatepay ratepaydataDeliveryDate(String ratepaydataDeliveryD /** * Date the merchant delivered the goods to the customer. - * * @return ratepaydataDeliveryDate Date the merchant delivered the goods to the customer. */ @JsonProperty(JSON_PROPERTY_RATEPAYDATA_DELIVERY_DATE) @@ -234,7 +239,6 @@ public AdditionalDataRatepay ratepaydataDueDate(String ratepaydataDueDate) { /** * Date by which the customer must settle the payment. - * * @return ratepaydataDueDate Date by which the customer must settle the payment. */ @JsonProperty(JSON_PROPERTY_RATEPAYDATA_DUE_DATE) @@ -255,11 +259,9 @@ public void setRatepaydataDueDate(String ratepaydataDueDate) { } /** - * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery - * date. + * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. * - * @param ratepaydataInvoiceDate Invoice date, defined by the merchant. If not included, the - * invoice date is set to the delivery date. + * @param ratepaydataInvoiceDate Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. * @return the current {@code AdditionalDataRatepay} instance, allowing for method chaining */ public AdditionalDataRatepay ratepaydataInvoiceDate(String ratepaydataInvoiceDate) { @@ -268,11 +270,8 @@ public AdditionalDataRatepay ratepaydataInvoiceDate(String ratepaydataInvoiceDat } /** - * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery - * date. - * - * @return ratepaydataInvoiceDate Invoice date, defined by the merchant. If not included, the - * invoice date is set to the delivery date. + * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. + * @return ratepaydataInvoiceDate Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. */ @JsonProperty(JSON_PROPERTY_RATEPAYDATA_INVOICE_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -281,11 +280,9 @@ public String getRatepaydataInvoiceDate() { } /** - * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery - * date. + * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. * - * @param ratepaydataInvoiceDate Invoice date, defined by the merchant. If not included, the - * invoice date is set to the delivery date. + * @param ratepaydataInvoiceDate Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. */ @JsonProperty(JSON_PROPERTY_RATEPAYDATA_INVOICE_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -296,8 +293,7 @@ public void setRatepaydataInvoiceDate(String ratepaydataInvoiceDate) { /** * Identification name or number for the invoice, defined by the merchant. * - * @param ratepaydataInvoiceId Identification name or number for the invoice, defined by the - * merchant. + * @param ratepaydataInvoiceId Identification name or number for the invoice, defined by the merchant. * @return the current {@code AdditionalDataRatepay} instance, allowing for method chaining */ public AdditionalDataRatepay ratepaydataInvoiceId(String ratepaydataInvoiceId) { @@ -307,9 +303,7 @@ public AdditionalDataRatepay ratepaydataInvoiceId(String ratepaydataInvoiceId) { /** * Identification name or number for the invoice, defined by the merchant. - * - * @return ratepaydataInvoiceId Identification name or number for the invoice, defined by the - * merchant. + * @return ratepaydataInvoiceId Identification name or number for the invoice, defined by the merchant. */ @JsonProperty(JSON_PROPERTY_RATEPAYDATA_INVOICE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -320,8 +314,7 @@ public String getRatepaydataInvoiceId() { /** * Identification name or number for the invoice, defined by the merchant. * - * @param ratepaydataInvoiceId Identification name or number for the invoice, defined by the - * merchant. + * @param ratepaydataInvoiceId Identification name or number for the invoice, defined by the merchant. */ @JsonProperty(JSON_PROPERTY_RATEPAYDATA_INVOICE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -329,7 +322,9 @@ public void setRatepaydataInvoiceId(String ratepaydataInvoiceId) { this.ratepaydataInvoiceId = ratepaydataInvoiceId; } - /** Return true if this AdditionalDataRatepay object is equal to o. */ + /** + * Return true if this AdditionalDataRatepay object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -339,64 +334,40 @@ public boolean equals(Object o) { return false; } AdditionalDataRatepay additionalDataRatepay = (AdditionalDataRatepay) o; - return Objects.equals( - this.ratepayInstallmentAmount, additionalDataRatepay.ratepayInstallmentAmount) - && Objects.equals(this.ratepayInterestRate, additionalDataRatepay.ratepayInterestRate) - && Objects.equals( - this.ratepayLastInstallmentAmount, additionalDataRatepay.ratepayLastInstallmentAmount) - && Objects.equals(this.ratepayPaymentFirstday, additionalDataRatepay.ratepayPaymentFirstday) - && Objects.equals( - this.ratepaydataDeliveryDate, additionalDataRatepay.ratepaydataDeliveryDate) - && Objects.equals(this.ratepaydataDueDate, additionalDataRatepay.ratepaydataDueDate) - && Objects.equals(this.ratepaydataInvoiceDate, additionalDataRatepay.ratepaydataInvoiceDate) - && Objects.equals(this.ratepaydataInvoiceId, additionalDataRatepay.ratepaydataInvoiceId); + return Objects.equals(this.ratepayInstallmentAmount, additionalDataRatepay.ratepayInstallmentAmount) && + Objects.equals(this.ratepayInterestRate, additionalDataRatepay.ratepayInterestRate) && + Objects.equals(this.ratepayLastInstallmentAmount, additionalDataRatepay.ratepayLastInstallmentAmount) && + Objects.equals(this.ratepayPaymentFirstday, additionalDataRatepay.ratepayPaymentFirstday) && + Objects.equals(this.ratepaydataDeliveryDate, additionalDataRatepay.ratepaydataDeliveryDate) && + Objects.equals(this.ratepaydataDueDate, additionalDataRatepay.ratepaydataDueDate) && + Objects.equals(this.ratepaydataInvoiceDate, additionalDataRatepay.ratepaydataInvoiceDate) && + Objects.equals(this.ratepaydataInvoiceId, additionalDataRatepay.ratepaydataInvoiceId); } @Override public int hashCode() { - return Objects.hash( - ratepayInstallmentAmount, - ratepayInterestRate, - ratepayLastInstallmentAmount, - ratepayPaymentFirstday, - ratepaydataDeliveryDate, - ratepaydataDueDate, - ratepaydataInvoiceDate, - ratepaydataInvoiceId); + return Objects.hash(ratepayInstallmentAmount, ratepayInterestRate, ratepayLastInstallmentAmount, ratepayPaymentFirstday, ratepaydataDeliveryDate, ratepaydataDueDate, ratepaydataInvoiceDate, ratepaydataInvoiceId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataRatepay {\n"); - sb.append(" ratepayInstallmentAmount: ") - .append(toIndentedString(ratepayInstallmentAmount)) - .append("\n"); - sb.append(" ratepayInterestRate: ") - .append(toIndentedString(ratepayInterestRate)) - .append("\n"); - sb.append(" ratepayLastInstallmentAmount: ") - .append(toIndentedString(ratepayLastInstallmentAmount)) - .append("\n"); - sb.append(" ratepayPaymentFirstday: ") - .append(toIndentedString(ratepayPaymentFirstday)) - .append("\n"); - sb.append(" ratepaydataDeliveryDate: ") - .append(toIndentedString(ratepaydataDeliveryDate)) - .append("\n"); + sb.append(" ratepayInstallmentAmount: ").append(toIndentedString(ratepayInstallmentAmount)).append("\n"); + sb.append(" ratepayInterestRate: ").append(toIndentedString(ratepayInterestRate)).append("\n"); + sb.append(" ratepayLastInstallmentAmount: ").append(toIndentedString(ratepayLastInstallmentAmount)).append("\n"); + sb.append(" ratepayPaymentFirstday: ").append(toIndentedString(ratepayPaymentFirstday)).append("\n"); + sb.append(" ratepaydataDeliveryDate: ").append(toIndentedString(ratepaydataDeliveryDate)).append("\n"); sb.append(" ratepaydataDueDate: ").append(toIndentedString(ratepaydataDueDate)).append("\n"); - sb.append(" ratepaydataInvoiceDate: ") - .append(toIndentedString(ratepaydataInvoiceDate)) - .append("\n"); - sb.append(" ratepaydataInvoiceId: ") - .append(toIndentedString(ratepaydataInvoiceId)) - .append("\n"); + sb.append(" ratepaydataInvoiceDate: ").append(toIndentedString(ratepaydataInvoiceDate)).append("\n"); + sb.append(" ratepaydataInvoiceId: ").append(toIndentedString(ratepaydataInvoiceId)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -405,23 +376,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalDataRatepay given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataRatepay - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataRatepay + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataRatepay */ public static AdditionalDataRatepay fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataRatepay.class); } - - /** - * Convert an instance of AdditionalDataRatepay to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalDataRatepay to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataRetry.java b/src/main/java/com/adyen/model/payment/AdditionalDataRetry.java index f88a6388e..9bece8539 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataRetry.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataRetry.java @@ -2,27 +2,37 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AdditionalDataRetry */ + +/** + * AdditionalDataRetry + */ @JsonPropertyOrder({ AdditionalDataRetry.JSON_PROPERTY_RETRY_CHAIN_ATTEMPT_NUMBER, AdditionalDataRetry.JSON_PROPERTY_RETRY_ORDER_ATTEMPT_NUMBER, AdditionalDataRetry.JSON_PROPERTY_RETRY_SKIP_RETRY }) + public class AdditionalDataRetry { public static final String JSON_PROPERTY_RETRY_CHAIN_ATTEMPT_NUMBER = "retry.chainAttemptNumber"; private String retryChainAttemptNumber; @@ -33,23 +43,13 @@ public class AdditionalDataRetry { public static final String JSON_PROPERTY_RETRY_SKIP_RETRY = "retry.skipRetry"; private String retrySkipRetry; - public AdditionalDataRetry() {} + public AdditionalDataRetry() { + } /** - * The number of times the transaction (not order) has been retried between different payment - * service providers. For instance, the `chainAttemptNumber` set to 2 means that this - * transaction has been recently tried on another provider before being sent to Adyen. > If you - * submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and - * `retry.skipRetry` values, we also recommend you provide the - * `merchantOrderReference` to facilitate linking payment attempts together. + * The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. * - * @param retryChainAttemptNumber The number of times the transaction (not order) has been retried - * between different payment service providers. For instance, the - * `chainAttemptNumber` set to 2 means that this transaction has been recently tried - * on another provider before being sent to Adyen. > If you submit - * `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and - * `retry.skipRetry` values, we also recommend you provide the - * `merchantOrderReference` to facilitate linking payment attempts together. + * @param retryChainAttemptNumber The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. * @return the current {@code AdditionalDataRetry} instance, allowing for method chaining */ public AdditionalDataRetry retryChainAttemptNumber(String retryChainAttemptNumber) { @@ -58,20 +58,8 @@ public AdditionalDataRetry retryChainAttemptNumber(String retryChainAttemptNumbe } /** - * The number of times the transaction (not order) has been retried between different payment - * service providers. For instance, the `chainAttemptNumber` set to 2 means that this - * transaction has been recently tried on another provider before being sent to Adyen. > If you - * submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and - * `retry.skipRetry` values, we also recommend you provide the - * `merchantOrderReference` to facilitate linking payment attempts together. - * - * @return retryChainAttemptNumber The number of times the transaction (not order) has been - * retried between different payment service providers. For instance, the - * `chainAttemptNumber` set to 2 means that this transaction has been recently tried - * on another provider before being sent to Adyen. > If you submit - * `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and - * `retry.skipRetry` values, we also recommend you provide the - * `merchantOrderReference` to facilitate linking payment attempts together. + * The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * @return retryChainAttemptNumber The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. */ @JsonProperty(JSON_PROPERTY_RETRY_CHAIN_ATTEMPT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,20 +68,9 @@ public String getRetryChainAttemptNumber() { } /** - * The number of times the transaction (not order) has been retried between different payment - * service providers. For instance, the `chainAttemptNumber` set to 2 means that this - * transaction has been recently tried on another provider before being sent to Adyen. > If you - * submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and - * `retry.skipRetry` values, we also recommend you provide the - * `merchantOrderReference` to facilitate linking payment attempts together. + * The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. * - * @param retryChainAttemptNumber The number of times the transaction (not order) has been retried - * between different payment service providers. For instance, the - * `chainAttemptNumber` set to 2 means that this transaction has been recently tried - * on another provider before being sent to Adyen. > If you submit - * `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and - * `retry.skipRetry` values, we also recommend you provide the - * `merchantOrderReference` to facilitate linking payment attempts together. + * @param retryChainAttemptNumber The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. */ @JsonProperty(JSON_PROPERTY_RETRY_CHAIN_ATTEMPT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,20 +79,9 @@ public void setRetryChainAttemptNumber(String retryChainAttemptNumber) { } /** - * The index of the attempt to bill a particular order, which is identified by the - * `merchantOrderReference` field. For example, if a recurring transaction fails and is - * retried one day later, then the order number for these attempts would be 1 and 2, respectively. - * > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, - * and `retry.skipRetry` values, we also recommend you provide the - * `merchantOrderReference` to facilitate linking payment attempts together. + * The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. * - * @param retryOrderAttemptNumber The index of the attempt to bill a particular order, which is - * identified by the `merchantOrderReference` field. For example, if a recurring - * transaction fails and is retried one day later, then the order number for these attempts - * would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, - * `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also - * recommend you provide the `merchantOrderReference` to facilitate linking payment - * attempts together. + * @param retryOrderAttemptNumber The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. * @return the current {@code AdditionalDataRetry} instance, allowing for method chaining */ public AdditionalDataRetry retryOrderAttemptNumber(String retryOrderAttemptNumber) { @@ -124,20 +90,8 @@ public AdditionalDataRetry retryOrderAttemptNumber(String retryOrderAttemptNumbe } /** - * The index of the attempt to bill a particular order, which is identified by the - * `merchantOrderReference` field. For example, if a recurring transaction fails and is - * retried one day later, then the order number for these attempts would be 1 and 2, respectively. - * > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, - * and `retry.skipRetry` values, we also recommend you provide the - * `merchantOrderReference` to facilitate linking payment attempts together. - * - * @return retryOrderAttemptNumber The index of the attempt to bill a particular order, which is - * identified by the `merchantOrderReference` field. For example, if a recurring - * transaction fails and is retried one day later, then the order number for these attempts - * would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, - * `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also - * recommend you provide the `merchantOrderReference` to facilitate linking payment - * attempts together. + * The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * @return retryOrderAttemptNumber The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. */ @JsonProperty(JSON_PROPERTY_RETRY_ORDER_ATTEMPT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,20 +100,9 @@ public String getRetryOrderAttemptNumber() { } /** - * The index of the attempt to bill a particular order, which is identified by the - * `merchantOrderReference` field. For example, if a recurring transaction fails and is - * retried one day later, then the order number for these attempts would be 1 and 2, respectively. - * > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, - * and `retry.skipRetry` values, we also recommend you provide the - * `merchantOrderReference` to facilitate linking payment attempts together. + * The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. * - * @param retryOrderAttemptNumber The index of the attempt to bill a particular order, which is - * identified by the `merchantOrderReference` field. For example, if a recurring - * transaction fails and is retried one day later, then the order number for these attempts - * would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, - * `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also - * recommend you provide the `merchantOrderReference` to facilitate linking payment - * attempts together. + * @param retryOrderAttemptNumber The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. */ @JsonProperty(JSON_PROPERTY_RETRY_ORDER_ATTEMPT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,16 +111,9 @@ public void setRetryOrderAttemptNumber(String retryOrderAttemptNumber) { } /** - * The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. - * > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, - * and `retry.skipRetry` values, we also recommend you provide the - * `merchantOrderReference` to facilitate linking payment attempts together. + * The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. * - * @param retrySkipRetry The Boolean value indicating whether Adyen should skip or retry this - * transaction, if possible. > If you submit `retry.chainAttemptNumber`, - * `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also - * recommend you provide the `merchantOrderReference` to facilitate linking payment - * attempts together. + * @param retrySkipRetry The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. * @return the current {@code AdditionalDataRetry} instance, allowing for method chaining */ public AdditionalDataRetry retrySkipRetry(String retrySkipRetry) { @@ -186,16 +122,8 @@ public AdditionalDataRetry retrySkipRetry(String retrySkipRetry) { } /** - * The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. - * > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, - * and `retry.skipRetry` values, we also recommend you provide the - * `merchantOrderReference` to facilitate linking payment attempts together. - * - * @return retrySkipRetry The Boolean value indicating whether Adyen should skip or retry this - * transaction, if possible. > If you submit `retry.chainAttemptNumber`, - * `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also - * recommend you provide the `merchantOrderReference` to facilitate linking payment - * attempts together. + * The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * @return retrySkipRetry The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. */ @JsonProperty(JSON_PROPERTY_RETRY_SKIP_RETRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,16 +132,9 @@ public String getRetrySkipRetry() { } /** - * The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. - * > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, - * and `retry.skipRetry` values, we also recommend you provide the - * `merchantOrderReference` to facilitate linking payment attempts together. + * The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. * - * @param retrySkipRetry The Boolean value indicating whether Adyen should skip or retry this - * transaction, if possible. > If you submit `retry.chainAttemptNumber`, - * `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also - * recommend you provide the `merchantOrderReference` to facilitate linking payment - * attempts together. + * @param retrySkipRetry The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. */ @JsonProperty(JSON_PROPERTY_RETRY_SKIP_RETRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,7 +142,9 @@ public void setRetrySkipRetry(String retrySkipRetry) { this.retrySkipRetry = retrySkipRetry; } - /** Return true if this AdditionalDataRetry object is equal to o. */ + /** + * Return true if this AdditionalDataRetry object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -231,9 +154,9 @@ public boolean equals(Object o) { return false; } AdditionalDataRetry additionalDataRetry = (AdditionalDataRetry) o; - return Objects.equals(this.retryChainAttemptNumber, additionalDataRetry.retryChainAttemptNumber) - && Objects.equals(this.retryOrderAttemptNumber, additionalDataRetry.retryOrderAttemptNumber) - && Objects.equals(this.retrySkipRetry, additionalDataRetry.retrySkipRetry); + return Objects.equals(this.retryChainAttemptNumber, additionalDataRetry.retryChainAttemptNumber) && + Objects.equals(this.retryOrderAttemptNumber, additionalDataRetry.retryOrderAttemptNumber) && + Objects.equals(this.retrySkipRetry, additionalDataRetry.retrySkipRetry); } @Override @@ -245,19 +168,16 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataRetry {\n"); - sb.append(" retryChainAttemptNumber: ") - .append(toIndentedString(retryChainAttemptNumber)) - .append("\n"); - sb.append(" retryOrderAttemptNumber: ") - .append(toIndentedString(retryOrderAttemptNumber)) - .append("\n"); + sb.append(" retryChainAttemptNumber: ").append(toIndentedString(retryChainAttemptNumber)).append("\n"); + sb.append(" retryOrderAttemptNumber: ").append(toIndentedString(retryOrderAttemptNumber)).append("\n"); sb.append(" retrySkipRetry: ").append(toIndentedString(retrySkipRetry)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -266,23 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalDataRetry given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataRetry - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataRetry + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataRetry */ public static AdditionalDataRetry fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataRetry.class); } - - /** - * Convert an instance of AdditionalDataRetry to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalDataRetry to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataRisk.java b/src/main/java/com/adyen/model/payment/AdditionalDataRisk.java index 89c8a58a4..c0924f491 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataRisk.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataRisk.java @@ -2,22 +2,31 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AdditionalDataRisk */ + +/** + * AdditionalDataRisk + */ @JsonPropertyOrder({ AdditionalDataRisk.JSON_PROPERTY_RISKDATA_CUSTOM_FIELD_NAME, AdditionalDataRisk.JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_AMOUNT_PER_ITEM, @@ -35,110 +44,84 @@ AdditionalDataRisk.JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_UPC, AdditionalDataRisk.JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_CODE, AdditionalDataRisk.JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_AMOUNT, - AdditionalDataRisk - .JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_CURRENCY, - AdditionalDataRisk - .JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_PERCENTAGE, + AdditionalDataRisk.JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_CURRENCY, + AdditionalDataRisk.JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_PERCENTAGE, AdditionalDataRisk.JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_NAME, AdditionalDataRisk.JSON_PROPERTY_RISKDATA_RISK_PROFILE_REFERENCE, AdditionalDataRisk.JSON_PROPERTY_RISKDATA_SKIP_RISK }) + public class AdditionalDataRisk { - public static final String JSON_PROPERTY_RISKDATA_CUSTOM_FIELD_NAME = - "riskdata.[customFieldName]"; + public static final String JSON_PROPERTY_RISKDATA_CUSTOM_FIELD_NAME = "riskdata.[customFieldName]"; private String riskdataCustomFieldName; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_AMOUNT_PER_ITEM = - "riskdata.basket.item[itemNr].amountPerItem"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_AMOUNT_PER_ITEM = "riskdata.basket.item[itemNr].amountPerItem"; private String riskdataBasketItemItemNrAmountPerItem; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_BRAND = - "riskdata.basket.item[itemNr].brand"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_BRAND = "riskdata.basket.item[itemNr].brand"; private String riskdataBasketItemItemNrBrand; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_CATEGORY = - "riskdata.basket.item[itemNr].category"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_CATEGORY = "riskdata.basket.item[itemNr].category"; private String riskdataBasketItemItemNrCategory; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_COLOR = - "riskdata.basket.item[itemNr].color"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_COLOR = "riskdata.basket.item[itemNr].color"; private String riskdataBasketItemItemNrColor; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_CURRENCY = - "riskdata.basket.item[itemNr].currency"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_CURRENCY = "riskdata.basket.item[itemNr].currency"; private String riskdataBasketItemItemNrCurrency; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_ITEM_I_D = - "riskdata.basket.item[itemNr].itemID"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_ITEM_I_D = "riskdata.basket.item[itemNr].itemID"; private String riskdataBasketItemItemNrItemID; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_MANUFACTURER = - "riskdata.basket.item[itemNr].manufacturer"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_MANUFACTURER = "riskdata.basket.item[itemNr].manufacturer"; private String riskdataBasketItemItemNrManufacturer; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_PRODUCT_TITLE = - "riskdata.basket.item[itemNr].productTitle"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_PRODUCT_TITLE = "riskdata.basket.item[itemNr].productTitle"; private String riskdataBasketItemItemNrProductTitle; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_QUANTITY = - "riskdata.basket.item[itemNr].quantity"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_QUANTITY = "riskdata.basket.item[itemNr].quantity"; private String riskdataBasketItemItemNrQuantity; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_RECEIVER_EMAIL = - "riskdata.basket.item[itemNr].receiverEmail"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_RECEIVER_EMAIL = "riskdata.basket.item[itemNr].receiverEmail"; private String riskdataBasketItemItemNrReceiverEmail; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_SIZE = - "riskdata.basket.item[itemNr].size"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_SIZE = "riskdata.basket.item[itemNr].size"; private String riskdataBasketItemItemNrSize; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_SKU = - "riskdata.basket.item[itemNr].sku"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_SKU = "riskdata.basket.item[itemNr].sku"; private String riskdataBasketItemItemNrSku; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_UPC = - "riskdata.basket.item[itemNr].upc"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_UPC = "riskdata.basket.item[itemNr].upc"; private String riskdataBasketItemItemNrUpc; - public static final String JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_CODE = - "riskdata.promotions.promotion[itemNr].promotionCode"; + public static final String JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_CODE = "riskdata.promotions.promotion[itemNr].promotionCode"; private String riskdataPromotionsPromotionItemNrPromotionCode; - public static final String - JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_AMOUNT = - "riskdata.promotions.promotion[itemNr].promotionDiscountAmount"; + public static final String JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_AMOUNT = "riskdata.promotions.promotion[itemNr].promotionDiscountAmount"; private String riskdataPromotionsPromotionItemNrPromotionDiscountAmount; - public static final String - JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_CURRENCY = - "riskdata.promotions.promotion[itemNr].promotionDiscountCurrency"; + public static final String JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_CURRENCY = "riskdata.promotions.promotion[itemNr].promotionDiscountCurrency"; private String riskdataPromotionsPromotionItemNrPromotionDiscountCurrency; - public static final String - JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_PERCENTAGE = - "riskdata.promotions.promotion[itemNr].promotionDiscountPercentage"; + public static final String JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_PERCENTAGE = "riskdata.promotions.promotion[itemNr].promotionDiscountPercentage"; private String riskdataPromotionsPromotionItemNrPromotionDiscountPercentage; - public static final String JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_NAME = - "riskdata.promotions.promotion[itemNr].promotionName"; + public static final String JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_NAME = "riskdata.promotions.promotion[itemNr].promotionName"; private String riskdataPromotionsPromotionItemNrPromotionName; - public static final String JSON_PROPERTY_RISKDATA_RISK_PROFILE_REFERENCE = - "riskdata.riskProfileReference"; + public static final String JSON_PROPERTY_RISKDATA_RISK_PROFILE_REFERENCE = "riskdata.riskProfileReference"; private String riskdataRiskProfileReference; public static final String JSON_PROPERTY_RISKDATA_SKIP_RISK = "riskdata.skipRisk"; private String riskdataSkipRisk; - public AdditionalDataRisk() {} + public AdditionalDataRisk() { + } /** - * The data for your custom risk field. For more information, refer to [Create custom risk - * fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). + * The data for your custom risk field. For more information, refer to [Create custom risk fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). * - * @param riskdataCustomFieldName The data for your custom risk field. For more information, refer - * to [Create custom risk - * fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). + * @param riskdataCustomFieldName The data for your custom risk field. For more information, refer to [Create custom risk fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ public AdditionalDataRisk riskdataCustomFieldName(String riskdataCustomFieldName) { @@ -147,12 +130,8 @@ public AdditionalDataRisk riskdataCustomFieldName(String riskdataCustomFieldName } /** - * The data for your custom risk field. For more information, refer to [Create custom risk - * fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). - * - * @return riskdataCustomFieldName The data for your custom risk field. For more information, - * refer to [Create custom risk - * fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). + * The data for your custom risk field. For more information, refer to [Create custom risk fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). + * @return riskdataCustomFieldName The data for your custom risk field. For more information, refer to [Create custom risk fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). */ @JsonProperty(JSON_PROPERTY_RISKDATA_CUSTOM_FIELD_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,12 +140,9 @@ public String getRiskdataCustomFieldName() { } /** - * The data for your custom risk field. For more information, refer to [Create custom risk - * fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). + * The data for your custom risk field. For more information, refer to [Create custom risk fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). * - * @param riskdataCustomFieldName The data for your custom risk field. For more information, refer - * to [Create custom risk - * fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). + * @param riskdataCustomFieldName The data for your custom risk field. For more information, refer to [Create custom risk fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). */ @JsonProperty(JSON_PROPERTY_RISKDATA_CUSTOM_FIELD_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -175,25 +151,19 @@ public void setRiskdataCustomFieldName(String riskdataCustomFieldName) { } /** - * The price of item in the basket, represented in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * @param riskdataBasketItemItemNrAmountPerItem The price of item in the basket, represented in - * [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @param riskdataBasketItemItemNrAmountPerItem The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataBasketItemItemNrAmountPerItem( - String riskdataBasketItemItemNrAmountPerItem) { + public AdditionalDataRisk riskdataBasketItemItemNrAmountPerItem(String riskdataBasketItemItemNrAmountPerItem) { this.riskdataBasketItemItemNrAmountPerItem = riskdataBasketItemItemNrAmountPerItem; return this; } /** - * The price of item in the basket, represented in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). - * - * @return riskdataBasketItemItemNrAmountPerItem The price of item in the basket, represented in - * [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @return riskdataBasketItemItemNrAmountPerItem The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_AMOUNT_PER_ITEM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -202,16 +172,13 @@ public String getRiskdataBasketItemItemNrAmountPerItem() { } /** - * The price of item in the basket, represented in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * @param riskdataBasketItemItemNrAmountPerItem The price of item in the basket, represented in - * [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @param riskdataBasketItemItemNrAmountPerItem The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_AMOUNT_PER_ITEM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRiskdataBasketItemItemNrAmountPerItem( - String riskdataBasketItemItemNrAmountPerItem) { + public void setRiskdataBasketItemItemNrAmountPerItem(String riskdataBasketItemItemNrAmountPerItem) { this.riskdataBasketItemItemNrAmountPerItem = riskdataBasketItemItemNrAmountPerItem; } @@ -228,7 +195,6 @@ public AdditionalDataRisk riskdataBasketItemItemNrBrand(String riskdataBasketIte /** * Brand of the item. - * * @return riskdataBasketItemItemNrBrand Brand of the item. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_BRAND) @@ -254,15 +220,13 @@ public void setRiskdataBasketItemItemNrBrand(String riskdataBasketItemItemNrBran * @param riskdataBasketItemItemNrCategory Category of the item. * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataBasketItemItemNrCategory( - String riskdataBasketItemItemNrCategory) { + public AdditionalDataRisk riskdataBasketItemItemNrCategory(String riskdataBasketItemItemNrCategory) { this.riskdataBasketItemItemNrCategory = riskdataBasketItemItemNrCategory; return this; } /** * Category of the item. - * * @return riskdataBasketItemItemNrCategory Category of the item. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_CATEGORY) @@ -295,7 +259,6 @@ public AdditionalDataRisk riskdataBasketItemItemNrColor(String riskdataBasketIte /** * Color of the item. - * * @return riskdataBasketItemItemNrColor Color of the item. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_COLOR) @@ -318,21 +281,17 @@ public void setRiskdataBasketItemItemNrColor(String riskdataBasketItemItemNrColo /** * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). * - * @param riskdataBasketItemItemNrCurrency The three-character [ISO currency - * code](https://en.wikipedia.org/wiki/ISO_4217). + * @param riskdataBasketItemItemNrCurrency The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataBasketItemItemNrCurrency( - String riskdataBasketItemItemNrCurrency) { + public AdditionalDataRisk riskdataBasketItemItemNrCurrency(String riskdataBasketItemItemNrCurrency) { this.riskdataBasketItemItemNrCurrency = riskdataBasketItemItemNrCurrency; return this; } /** * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). - * - * @return riskdataBasketItemItemNrCurrency The three-character [ISO currency - * code](https://en.wikipedia.org/wiki/ISO_4217). + * @return riskdataBasketItemItemNrCurrency The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -343,8 +302,7 @@ public String getRiskdataBasketItemItemNrCurrency() { /** * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). * - * @param riskdataBasketItemItemNrCurrency The three-character [ISO currency - * code](https://en.wikipedia.org/wiki/ISO_4217). + * @param riskdataBasketItemItemNrCurrency The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -365,7 +323,6 @@ public AdditionalDataRisk riskdataBasketItemItemNrItemID(String riskdataBasketIt /** * ID of the item. - * * @return riskdataBasketItemItemNrItemID ID of the item. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_ITEM_I_D) @@ -391,15 +348,13 @@ public void setRiskdataBasketItemItemNrItemID(String riskdataBasketItemItemNrIte * @param riskdataBasketItemItemNrManufacturer Manufacturer of the item. * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataBasketItemItemNrManufacturer( - String riskdataBasketItemItemNrManufacturer) { + public AdditionalDataRisk riskdataBasketItemItemNrManufacturer(String riskdataBasketItemItemNrManufacturer) { this.riskdataBasketItemItemNrManufacturer = riskdataBasketItemItemNrManufacturer; return this; } /** * Manufacturer of the item. - * * @return riskdataBasketItemItemNrManufacturer Manufacturer of the item. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_MANUFACTURER) @@ -422,21 +377,17 @@ public void setRiskdataBasketItemItemNrManufacturer(String riskdataBasketItemIte /** * A text description of the product the invoice line refers to. * - * @param riskdataBasketItemItemNrProductTitle A text description of the product the invoice line - * refers to. + * @param riskdataBasketItemItemNrProductTitle A text description of the product the invoice line refers to. * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataBasketItemItemNrProductTitle( - String riskdataBasketItemItemNrProductTitle) { + public AdditionalDataRisk riskdataBasketItemItemNrProductTitle(String riskdataBasketItemItemNrProductTitle) { this.riskdataBasketItemItemNrProductTitle = riskdataBasketItemItemNrProductTitle; return this; } /** * A text description of the product the invoice line refers to. - * - * @return riskdataBasketItemItemNrProductTitle A text description of the product the invoice line - * refers to. + * @return riskdataBasketItemItemNrProductTitle A text description of the product the invoice line refers to. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_PRODUCT_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -447,8 +398,7 @@ public String getRiskdataBasketItemItemNrProductTitle() { /** * A text description of the product the invoice line refers to. * - * @param riskdataBasketItemItemNrProductTitle A text description of the product the invoice line - * refers to. + * @param riskdataBasketItemItemNrProductTitle A text description of the product the invoice line refers to. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_PRODUCT_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -462,15 +412,13 @@ public void setRiskdataBasketItemItemNrProductTitle(String riskdataBasketItemIte * @param riskdataBasketItemItemNrQuantity Quantity of the item purchased. * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataBasketItemItemNrQuantity( - String riskdataBasketItemItemNrQuantity) { + public AdditionalDataRisk riskdataBasketItemItemNrQuantity(String riskdataBasketItemItemNrQuantity) { this.riskdataBasketItemItemNrQuantity = riskdataBasketItemItemNrQuantity; return this; } /** * Quantity of the item purchased. - * * @return riskdataBasketItemItemNrQuantity Quantity of the item purchased. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_QUANTITY) @@ -493,21 +441,17 @@ public void setRiskdataBasketItemItemNrQuantity(String riskdataBasketItemItemNrQ /** * Email associated with the given product in the basket (usually in electronic gift cards). * - * @param riskdataBasketItemItemNrReceiverEmail Email associated with the given product in the - * basket (usually in electronic gift cards). + * @param riskdataBasketItemItemNrReceiverEmail Email associated with the given product in the basket (usually in electronic gift cards). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataBasketItemItemNrReceiverEmail( - String riskdataBasketItemItemNrReceiverEmail) { + public AdditionalDataRisk riskdataBasketItemItemNrReceiverEmail(String riskdataBasketItemItemNrReceiverEmail) { this.riskdataBasketItemItemNrReceiverEmail = riskdataBasketItemItemNrReceiverEmail; return this; } /** * Email associated with the given product in the basket (usually in electronic gift cards). - * - * @return riskdataBasketItemItemNrReceiverEmail Email associated with the given product in the - * basket (usually in electronic gift cards). + * @return riskdataBasketItemItemNrReceiverEmail Email associated with the given product in the basket (usually in electronic gift cards). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_RECEIVER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -518,13 +462,11 @@ public String getRiskdataBasketItemItemNrReceiverEmail() { /** * Email associated with the given product in the basket (usually in electronic gift cards). * - * @param riskdataBasketItemItemNrReceiverEmail Email associated with the given product in the - * basket (usually in electronic gift cards). + * @param riskdataBasketItemItemNrReceiverEmail Email associated with the given product in the basket (usually in electronic gift cards). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_RECEIVER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRiskdataBasketItemItemNrReceiverEmail( - String riskdataBasketItemItemNrReceiverEmail) { + public void setRiskdataBasketItemItemNrReceiverEmail(String riskdataBasketItemItemNrReceiverEmail) { this.riskdataBasketItemItemNrReceiverEmail = riskdataBasketItemItemNrReceiverEmail; } @@ -541,7 +483,6 @@ public AdditionalDataRisk riskdataBasketItemItemNrSize(String riskdataBasketItem /** * Size of the item. - * * @return riskdataBasketItemItemNrSize Size of the item. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_SIZE) @@ -564,8 +505,7 @@ public void setRiskdataBasketItemItemNrSize(String riskdataBasketItemItemNrSize) /** * [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). * - * @param riskdataBasketItemItemNrSku [Stock keeping - * unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). + * @param riskdataBasketItemItemNrSku [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ public AdditionalDataRisk riskdataBasketItemItemNrSku(String riskdataBasketItemItemNrSku) { @@ -575,9 +515,7 @@ public AdditionalDataRisk riskdataBasketItemItemNrSku(String riskdataBasketItemI /** * [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). - * - * @return riskdataBasketItemItemNrSku [Stock keeping - * unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). + * @return riskdataBasketItemItemNrSku [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_SKU) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -588,8 +526,7 @@ public String getRiskdataBasketItemItemNrSku() { /** * [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). * - * @param riskdataBasketItemItemNrSku [Stock keeping - * unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). + * @param riskdataBasketItemItemNrSku [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_SKU) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -600,8 +537,7 @@ public void setRiskdataBasketItemItemNrSku(String riskdataBasketItemItemNrSku) { /** * [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). * - * @param riskdataBasketItemItemNrUpc [Universal Product - * Code](https://en.wikipedia.org/wiki/Universal_Product_Code). + * @param riskdataBasketItemItemNrUpc [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ public AdditionalDataRisk riskdataBasketItemItemNrUpc(String riskdataBasketItemItemNrUpc) { @@ -611,9 +547,7 @@ public AdditionalDataRisk riskdataBasketItemItemNrUpc(String riskdataBasketItemI /** * [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). - * - * @return riskdataBasketItemItemNrUpc [Universal Product - * Code](https://en.wikipedia.org/wiki/Universal_Product_Code). + * @return riskdataBasketItemItemNrUpc [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_UPC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -624,8 +558,7 @@ public String getRiskdataBasketItemItemNrUpc() { /** * [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). * - * @param riskdataBasketItemItemNrUpc [Universal Product - * Code](https://en.wikipedia.org/wiki/Universal_Product_Code). + * @param riskdataBasketItemItemNrUpc [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_UPC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -639,16 +572,13 @@ public void setRiskdataBasketItemItemNrUpc(String riskdataBasketItemItemNrUpc) { * @param riskdataPromotionsPromotionItemNrPromotionCode Code of the promotion. * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionCode( - String riskdataPromotionsPromotionItemNrPromotionCode) { - this.riskdataPromotionsPromotionItemNrPromotionCode = - riskdataPromotionsPromotionItemNrPromotionCode; + public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionCode(String riskdataPromotionsPromotionItemNrPromotionCode) { + this.riskdataPromotionsPromotionItemNrPromotionCode = riskdataPromotionsPromotionItemNrPromotionCode; return this; } /** * Code of the promotion. - * * @return riskdataPromotionsPromotionItemNrPromotionCode Code of the promotion. */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_CODE) @@ -664,35 +594,24 @@ public String getRiskdataPromotionsPromotionItemNrPromotionCode() { */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRiskdataPromotionsPromotionItemNrPromotionCode( - String riskdataPromotionsPromotionItemNrPromotionCode) { - this.riskdataPromotionsPromotionItemNrPromotionCode = - riskdataPromotionsPromotionItemNrPromotionCode; + public void setRiskdataPromotionsPromotionItemNrPromotionCode(String riskdataPromotionsPromotionItemNrPromotionCode) { + this.riskdataPromotionsPromotionItemNrPromotionCode = riskdataPromotionsPromotionItemNrPromotionCode; } /** - * The discount amount of the promotion, represented in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * @param riskdataPromotionsPromotionItemNrPromotionDiscountAmount The discount amount of the - * promotion, represented in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * @param riskdataPromotionsPromotionItemNrPromotionDiscountAmount The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionDiscountAmount( - String riskdataPromotionsPromotionItemNrPromotionDiscountAmount) { - this.riskdataPromotionsPromotionItemNrPromotionDiscountAmount = - riskdataPromotionsPromotionItemNrPromotionDiscountAmount; + public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionDiscountAmount(String riskdataPromotionsPromotionItemNrPromotionDiscountAmount) { + this.riskdataPromotionsPromotionItemNrPromotionDiscountAmount = riskdataPromotionsPromotionItemNrPromotionDiscountAmount; return this; } /** - * The discount amount of the promotion, represented in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). - * - * @return riskdataPromotionsPromotionItemNrPromotionDiscountAmount The discount amount of the - * promotion, represented in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @return riskdataPromotionsPromotionItemNrPromotionDiscountAmount The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -701,40 +620,30 @@ public String getRiskdataPromotionsPromotionItemNrPromotionDiscountAmount() { } /** - * The discount amount of the promotion, represented in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * @param riskdataPromotionsPromotionItemNrPromotionDiscountAmount The discount amount of the - * promotion, represented in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * @param riskdataPromotionsPromotionItemNrPromotionDiscountAmount The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRiskdataPromotionsPromotionItemNrPromotionDiscountAmount( - String riskdataPromotionsPromotionItemNrPromotionDiscountAmount) { - this.riskdataPromotionsPromotionItemNrPromotionDiscountAmount = - riskdataPromotionsPromotionItemNrPromotionDiscountAmount; + public void setRiskdataPromotionsPromotionItemNrPromotionDiscountAmount(String riskdataPromotionsPromotionItemNrPromotionDiscountAmount) { + this.riskdataPromotionsPromotionItemNrPromotionDiscountAmount = riskdataPromotionsPromotionItemNrPromotionDiscountAmount; } /** * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). * - * @param riskdataPromotionsPromotionItemNrPromotionDiscountCurrency The three-character [ISO - * currency code](https://en.wikipedia.org/wiki/ISO_4217). + * @param riskdataPromotionsPromotionItemNrPromotionDiscountCurrency The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionDiscountCurrency( - String riskdataPromotionsPromotionItemNrPromotionDiscountCurrency) { - this.riskdataPromotionsPromotionItemNrPromotionDiscountCurrency = - riskdataPromotionsPromotionItemNrPromotionDiscountCurrency; + public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionDiscountCurrency(String riskdataPromotionsPromotionItemNrPromotionDiscountCurrency) { + this.riskdataPromotionsPromotionItemNrPromotionDiscountCurrency = riskdataPromotionsPromotionItemNrPromotionDiscountCurrency; return this; } /** * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). - * - * @return riskdataPromotionsPromotionItemNrPromotionDiscountCurrency The three-character [ISO - * currency code](https://en.wikipedia.org/wiki/ISO_4217). + * @return riskdataPromotionsPromotionItemNrPromotionDiscountCurrency The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -745,44 +654,28 @@ public String getRiskdataPromotionsPromotionItemNrPromotionDiscountCurrency() { /** * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). * - * @param riskdataPromotionsPromotionItemNrPromotionDiscountCurrency The three-character [ISO - * currency code](https://en.wikipedia.org/wiki/ISO_4217). + * @param riskdataPromotionsPromotionItemNrPromotionDiscountCurrency The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRiskdataPromotionsPromotionItemNrPromotionDiscountCurrency( - String riskdataPromotionsPromotionItemNrPromotionDiscountCurrency) { - this.riskdataPromotionsPromotionItemNrPromotionDiscountCurrency = - riskdataPromotionsPromotionItemNrPromotionDiscountCurrency; + public void setRiskdataPromotionsPromotionItemNrPromotionDiscountCurrency(String riskdataPromotionsPromotionItemNrPromotionDiscountCurrency) { + this.riskdataPromotionsPromotionItemNrPromotionDiscountCurrency = riskdataPromotionsPromotionItemNrPromotionDiscountCurrency; } /** - * Promotion's percentage discount. It is represented in percentage value and there is no need - * to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field - * should be 30. + * Promotion's percentage discount. It is represented in percentage value and there is no need to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field should be 30. * - * @param riskdataPromotionsPromotionItemNrPromotionDiscountPercentage Promotion's percentage - * discount. It is represented in percentage value and there is no need to include the - * '%' sign. e.g. for a promotion discount of 30%, the value of the field should be - * 30. + * @param riskdataPromotionsPromotionItemNrPromotionDiscountPercentage Promotion's percentage discount. It is represented in percentage value and there is no need to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field should be 30. * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionDiscountPercentage( - String riskdataPromotionsPromotionItemNrPromotionDiscountPercentage) { - this.riskdataPromotionsPromotionItemNrPromotionDiscountPercentage = - riskdataPromotionsPromotionItemNrPromotionDiscountPercentage; + public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionDiscountPercentage(String riskdataPromotionsPromotionItemNrPromotionDiscountPercentage) { + this.riskdataPromotionsPromotionItemNrPromotionDiscountPercentage = riskdataPromotionsPromotionItemNrPromotionDiscountPercentage; return this; } /** - * Promotion's percentage discount. It is represented in percentage value and there is no need - * to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field - * should be 30. - * - * @return riskdataPromotionsPromotionItemNrPromotionDiscountPercentage Promotion's percentage - * discount. It is represented in percentage value and there is no need to include the - * '%' sign. e.g. for a promotion discount of 30%, the value of the field should be - * 30. + * Promotion's percentage discount. It is represented in percentage value and there is no need to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field should be 30. + * @return riskdataPromotionsPromotionItemNrPromotionDiscountPercentage Promotion's percentage discount. It is represented in percentage value and there is no need to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field should be 30. */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_PERCENTAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -791,21 +684,14 @@ public String getRiskdataPromotionsPromotionItemNrPromotionDiscountPercentage() } /** - * Promotion's percentage discount. It is represented in percentage value and there is no need - * to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field - * should be 30. + * Promotion's percentage discount. It is represented in percentage value and there is no need to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field should be 30. * - * @param riskdataPromotionsPromotionItemNrPromotionDiscountPercentage Promotion's percentage - * discount. It is represented in percentage value and there is no need to include the - * '%' sign. e.g. for a promotion discount of 30%, the value of the field should be - * 30. + * @param riskdataPromotionsPromotionItemNrPromotionDiscountPercentage Promotion's percentage discount. It is represented in percentage value and there is no need to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field should be 30. */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_PERCENTAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRiskdataPromotionsPromotionItemNrPromotionDiscountPercentage( - String riskdataPromotionsPromotionItemNrPromotionDiscountPercentage) { - this.riskdataPromotionsPromotionItemNrPromotionDiscountPercentage = - riskdataPromotionsPromotionItemNrPromotionDiscountPercentage; + public void setRiskdataPromotionsPromotionItemNrPromotionDiscountPercentage(String riskdataPromotionsPromotionItemNrPromotionDiscountPercentage) { + this.riskdataPromotionsPromotionItemNrPromotionDiscountPercentage = riskdataPromotionsPromotionItemNrPromotionDiscountPercentage; } /** @@ -814,16 +700,13 @@ public void setRiskdataPromotionsPromotionItemNrPromotionDiscountPercentage( * @param riskdataPromotionsPromotionItemNrPromotionName Name of the promotion. * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionName( - String riskdataPromotionsPromotionItemNrPromotionName) { - this.riskdataPromotionsPromotionItemNrPromotionName = - riskdataPromotionsPromotionItemNrPromotionName; + public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionName(String riskdataPromotionsPromotionItemNrPromotionName) { + this.riskdataPromotionsPromotionItemNrPromotionName = riskdataPromotionsPromotionItemNrPromotionName; return this; } /** * Name of the promotion. - * * @return riskdataPromotionsPromotionItemNrPromotionName Name of the promotion. */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_NAME) @@ -839,23 +722,14 @@ public String getRiskdataPromotionsPromotionItemNrPromotionName() { */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRiskdataPromotionsPromotionItemNrPromotionName( - String riskdataPromotionsPromotionItemNrPromotionName) { - this.riskdataPromotionsPromotionItemNrPromotionName = - riskdataPromotionsPromotionItemNrPromotionName; + public void setRiskdataPromotionsPromotionItemNrPromotionName(String riskdataPromotionsPromotionItemNrPromotionName) { + this.riskdataPromotionsPromotionItemNrPromotionName = riskdataPromotionsPromotionItemNrPromotionName; } /** - * Reference number of the risk profile that you want to apply to the payment. If not provided or - * left blank, the merchant-level account's default risk profile will be applied to the - * payment. For more information, see [dynamically assign a risk profile to a - * payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). + * Reference number of the risk profile that you want to apply to the payment. If not provided or left blank, the merchant-level account's default risk profile will be applied to the payment. For more information, see [dynamically assign a risk profile to a payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). * - * @param riskdataRiskProfileReference Reference number of the risk profile that you want to apply - * to the payment. If not provided or left blank, the merchant-level account's default - * risk profile will be applied to the payment. For more information, see [dynamically assign - * a risk profile to a - * payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). + * @param riskdataRiskProfileReference Reference number of the risk profile that you want to apply to the payment. If not provided or left blank, the merchant-level account's default risk profile will be applied to the payment. For more information, see [dynamically assign a risk profile to a payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ public AdditionalDataRisk riskdataRiskProfileReference(String riskdataRiskProfileReference) { @@ -864,16 +738,8 @@ public AdditionalDataRisk riskdataRiskProfileReference(String riskdataRiskProfil } /** - * Reference number of the risk profile that you want to apply to the payment. If not provided or - * left blank, the merchant-level account's default risk profile will be applied to the - * payment. For more information, see [dynamically assign a risk profile to a - * payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). - * - * @return riskdataRiskProfileReference Reference number of the risk profile that you want to - * apply to the payment. If not provided or left blank, the merchant-level account's - * default risk profile will be applied to the payment. For more information, see [dynamically - * assign a risk profile to a - * payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). + * Reference number of the risk profile that you want to apply to the payment. If not provided or left blank, the merchant-level account's default risk profile will be applied to the payment. For more information, see [dynamically assign a risk profile to a payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). + * @return riskdataRiskProfileReference Reference number of the risk profile that you want to apply to the payment. If not provided or left blank, the merchant-level account's default risk profile will be applied to the payment. For more information, see [dynamically assign a risk profile to a payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). */ @JsonProperty(JSON_PROPERTY_RISKDATA_RISK_PROFILE_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -882,16 +748,9 @@ public String getRiskdataRiskProfileReference() { } /** - * Reference number of the risk profile that you want to apply to the payment. If not provided or - * left blank, the merchant-level account's default risk profile will be applied to the - * payment. For more information, see [dynamically assign a risk profile to a - * payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). + * Reference number of the risk profile that you want to apply to the payment. If not provided or left blank, the merchant-level account's default risk profile will be applied to the payment. For more information, see [dynamically assign a risk profile to a payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). * - * @param riskdataRiskProfileReference Reference number of the risk profile that you want to apply - * to the payment. If not provided or left blank, the merchant-level account's default - * risk profile will be applied to the payment. For more information, see [dynamically assign - * a risk profile to a - * payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). + * @param riskdataRiskProfileReference Reference number of the risk profile that you want to apply to the payment. If not provided or left blank, the merchant-level account's default risk profile will be applied to the payment. For more information, see [dynamically assign a risk profile to a payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). */ @JsonProperty(JSON_PROPERTY_RISKDATA_RISK_PROFILE_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -900,11 +759,9 @@ public void setRiskdataRiskProfileReference(String riskdataRiskProfileReference) } /** - * If this parameter is provided with the value **true**, risk checks for the payment request are - * skipped and the transaction will not get a risk score. + * If this parameter is provided with the value **true**, risk checks for the payment request are skipped and the transaction will not get a risk score. * - * @param riskdataSkipRisk If this parameter is provided with the value **true**, risk checks for - * the payment request are skipped and the transaction will not get a risk score. + * @param riskdataSkipRisk If this parameter is provided with the value **true**, risk checks for the payment request are skipped and the transaction will not get a risk score. * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ public AdditionalDataRisk riskdataSkipRisk(String riskdataSkipRisk) { @@ -913,11 +770,8 @@ public AdditionalDataRisk riskdataSkipRisk(String riskdataSkipRisk) { } /** - * If this parameter is provided with the value **true**, risk checks for the payment request are - * skipped and the transaction will not get a risk score. - * - * @return riskdataSkipRisk If this parameter is provided with the value **true**, risk checks for - * the payment request are skipped and the transaction will not get a risk score. + * If this parameter is provided with the value **true**, risk checks for the payment request are skipped and the transaction will not get a risk score. + * @return riskdataSkipRisk If this parameter is provided with the value **true**, risk checks for the payment request are skipped and the transaction will not get a risk score. */ @JsonProperty(JSON_PROPERTY_RISKDATA_SKIP_RISK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -926,11 +780,9 @@ public String getRiskdataSkipRisk() { } /** - * If this parameter is provided with the value **true**, risk checks for the payment request are - * skipped and the transaction will not get a risk score. + * If this parameter is provided with the value **true**, risk checks for the payment request are skipped and the transaction will not get a risk score. * - * @param riskdataSkipRisk If this parameter is provided with the value **true**, risk checks for - * the payment request are skipped and the transaction will not get a risk score. + * @param riskdataSkipRisk If this parameter is provided with the value **true**, risk checks for the payment request are skipped and the transaction will not get a risk score. */ @JsonProperty(JSON_PROPERTY_RISKDATA_SKIP_RISK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -938,7 +790,9 @@ public void setRiskdataSkipRisk(String riskdataSkipRisk) { this.riskdataSkipRisk = riskdataSkipRisk; } - /** Return true if this AdditionalDataRisk object is equal to o. */ + /** + * Return true if this AdditionalDataRisk object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -948,157 +802,66 @@ public boolean equals(Object o) { return false; } AdditionalDataRisk additionalDataRisk = (AdditionalDataRisk) o; - return Objects.equals(this.riskdataCustomFieldName, additionalDataRisk.riskdataCustomFieldName) - && Objects.equals( - this.riskdataBasketItemItemNrAmountPerItem, - additionalDataRisk.riskdataBasketItemItemNrAmountPerItem) - && Objects.equals( - this.riskdataBasketItemItemNrBrand, additionalDataRisk.riskdataBasketItemItemNrBrand) - && Objects.equals( - this.riskdataBasketItemItemNrCategory, - additionalDataRisk.riskdataBasketItemItemNrCategory) - && Objects.equals( - this.riskdataBasketItemItemNrColor, additionalDataRisk.riskdataBasketItemItemNrColor) - && Objects.equals( - this.riskdataBasketItemItemNrCurrency, - additionalDataRisk.riskdataBasketItemItemNrCurrency) - && Objects.equals( - this.riskdataBasketItemItemNrItemID, additionalDataRisk.riskdataBasketItemItemNrItemID) - && Objects.equals( - this.riskdataBasketItemItemNrManufacturer, - additionalDataRisk.riskdataBasketItemItemNrManufacturer) - && Objects.equals( - this.riskdataBasketItemItemNrProductTitle, - additionalDataRisk.riskdataBasketItemItemNrProductTitle) - && Objects.equals( - this.riskdataBasketItemItemNrQuantity, - additionalDataRisk.riskdataBasketItemItemNrQuantity) - && Objects.equals( - this.riskdataBasketItemItemNrReceiverEmail, - additionalDataRisk.riskdataBasketItemItemNrReceiverEmail) - && Objects.equals( - this.riskdataBasketItemItemNrSize, additionalDataRisk.riskdataBasketItemItemNrSize) - && Objects.equals( - this.riskdataBasketItemItemNrSku, additionalDataRisk.riskdataBasketItemItemNrSku) - && Objects.equals( - this.riskdataBasketItemItemNrUpc, additionalDataRisk.riskdataBasketItemItemNrUpc) - && Objects.equals( - this.riskdataPromotionsPromotionItemNrPromotionCode, - additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionCode) - && Objects.equals( - this.riskdataPromotionsPromotionItemNrPromotionDiscountAmount, - additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionDiscountAmount) - && Objects.equals( - this.riskdataPromotionsPromotionItemNrPromotionDiscountCurrency, - additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionDiscountCurrency) - && Objects.equals( - this.riskdataPromotionsPromotionItemNrPromotionDiscountPercentage, - additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionDiscountPercentage) - && Objects.equals( - this.riskdataPromotionsPromotionItemNrPromotionName, - additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionName) - && Objects.equals( - this.riskdataRiskProfileReference, additionalDataRisk.riskdataRiskProfileReference) - && Objects.equals(this.riskdataSkipRisk, additionalDataRisk.riskdataSkipRisk); + return Objects.equals(this.riskdataCustomFieldName, additionalDataRisk.riskdataCustomFieldName) && + Objects.equals(this.riskdataBasketItemItemNrAmountPerItem, additionalDataRisk.riskdataBasketItemItemNrAmountPerItem) && + Objects.equals(this.riskdataBasketItemItemNrBrand, additionalDataRisk.riskdataBasketItemItemNrBrand) && + Objects.equals(this.riskdataBasketItemItemNrCategory, additionalDataRisk.riskdataBasketItemItemNrCategory) && + Objects.equals(this.riskdataBasketItemItemNrColor, additionalDataRisk.riskdataBasketItemItemNrColor) && + Objects.equals(this.riskdataBasketItemItemNrCurrency, additionalDataRisk.riskdataBasketItemItemNrCurrency) && + Objects.equals(this.riskdataBasketItemItemNrItemID, additionalDataRisk.riskdataBasketItemItemNrItemID) && + Objects.equals(this.riskdataBasketItemItemNrManufacturer, additionalDataRisk.riskdataBasketItemItemNrManufacturer) && + Objects.equals(this.riskdataBasketItemItemNrProductTitle, additionalDataRisk.riskdataBasketItemItemNrProductTitle) && + Objects.equals(this.riskdataBasketItemItemNrQuantity, additionalDataRisk.riskdataBasketItemItemNrQuantity) && + Objects.equals(this.riskdataBasketItemItemNrReceiverEmail, additionalDataRisk.riskdataBasketItemItemNrReceiverEmail) && + Objects.equals(this.riskdataBasketItemItemNrSize, additionalDataRisk.riskdataBasketItemItemNrSize) && + Objects.equals(this.riskdataBasketItemItemNrSku, additionalDataRisk.riskdataBasketItemItemNrSku) && + Objects.equals(this.riskdataBasketItemItemNrUpc, additionalDataRisk.riskdataBasketItemItemNrUpc) && + Objects.equals(this.riskdataPromotionsPromotionItemNrPromotionCode, additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionCode) && + Objects.equals(this.riskdataPromotionsPromotionItemNrPromotionDiscountAmount, additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionDiscountAmount) && + Objects.equals(this.riskdataPromotionsPromotionItemNrPromotionDiscountCurrency, additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionDiscountCurrency) && + Objects.equals(this.riskdataPromotionsPromotionItemNrPromotionDiscountPercentage, additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionDiscountPercentage) && + Objects.equals(this.riskdataPromotionsPromotionItemNrPromotionName, additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionName) && + Objects.equals(this.riskdataRiskProfileReference, additionalDataRisk.riskdataRiskProfileReference) && + Objects.equals(this.riskdataSkipRisk, additionalDataRisk.riskdataSkipRisk); } @Override public int hashCode() { - return Objects.hash( - riskdataCustomFieldName, - riskdataBasketItemItemNrAmountPerItem, - riskdataBasketItemItemNrBrand, - riskdataBasketItemItemNrCategory, - riskdataBasketItemItemNrColor, - riskdataBasketItemItemNrCurrency, - riskdataBasketItemItemNrItemID, - riskdataBasketItemItemNrManufacturer, - riskdataBasketItemItemNrProductTitle, - riskdataBasketItemItemNrQuantity, - riskdataBasketItemItemNrReceiverEmail, - riskdataBasketItemItemNrSize, - riskdataBasketItemItemNrSku, - riskdataBasketItemItemNrUpc, - riskdataPromotionsPromotionItemNrPromotionCode, - riskdataPromotionsPromotionItemNrPromotionDiscountAmount, - riskdataPromotionsPromotionItemNrPromotionDiscountCurrency, - riskdataPromotionsPromotionItemNrPromotionDiscountPercentage, - riskdataPromotionsPromotionItemNrPromotionName, - riskdataRiskProfileReference, - riskdataSkipRisk); + return Objects.hash(riskdataCustomFieldName, riskdataBasketItemItemNrAmountPerItem, riskdataBasketItemItemNrBrand, riskdataBasketItemItemNrCategory, riskdataBasketItemItemNrColor, riskdataBasketItemItemNrCurrency, riskdataBasketItemItemNrItemID, riskdataBasketItemItemNrManufacturer, riskdataBasketItemItemNrProductTitle, riskdataBasketItemItemNrQuantity, riskdataBasketItemItemNrReceiverEmail, riskdataBasketItemItemNrSize, riskdataBasketItemItemNrSku, riskdataBasketItemItemNrUpc, riskdataPromotionsPromotionItemNrPromotionCode, riskdataPromotionsPromotionItemNrPromotionDiscountAmount, riskdataPromotionsPromotionItemNrPromotionDiscountCurrency, riskdataPromotionsPromotionItemNrPromotionDiscountPercentage, riskdataPromotionsPromotionItemNrPromotionName, riskdataRiskProfileReference, riskdataSkipRisk); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataRisk {\n"); - sb.append(" riskdataCustomFieldName: ") - .append(toIndentedString(riskdataCustomFieldName)) - .append("\n"); - sb.append(" riskdataBasketItemItemNrAmountPerItem: ") - .append(toIndentedString(riskdataBasketItemItemNrAmountPerItem)) - .append("\n"); - sb.append(" riskdataBasketItemItemNrBrand: ") - .append(toIndentedString(riskdataBasketItemItemNrBrand)) - .append("\n"); - sb.append(" riskdataBasketItemItemNrCategory: ") - .append(toIndentedString(riskdataBasketItemItemNrCategory)) - .append("\n"); - sb.append(" riskdataBasketItemItemNrColor: ") - .append(toIndentedString(riskdataBasketItemItemNrColor)) - .append("\n"); - sb.append(" riskdataBasketItemItemNrCurrency: ") - .append(toIndentedString(riskdataBasketItemItemNrCurrency)) - .append("\n"); - sb.append(" riskdataBasketItemItemNrItemID: ") - .append(toIndentedString(riskdataBasketItemItemNrItemID)) - .append("\n"); - sb.append(" riskdataBasketItemItemNrManufacturer: ") - .append(toIndentedString(riskdataBasketItemItemNrManufacturer)) - .append("\n"); - sb.append(" riskdataBasketItemItemNrProductTitle: ") - .append(toIndentedString(riskdataBasketItemItemNrProductTitle)) - .append("\n"); - sb.append(" riskdataBasketItemItemNrQuantity: ") - .append(toIndentedString(riskdataBasketItemItemNrQuantity)) - .append("\n"); - sb.append(" riskdataBasketItemItemNrReceiverEmail: ") - .append(toIndentedString(riskdataBasketItemItemNrReceiverEmail)) - .append("\n"); - sb.append(" riskdataBasketItemItemNrSize: ") - .append(toIndentedString(riskdataBasketItemItemNrSize)) - .append("\n"); - sb.append(" riskdataBasketItemItemNrSku: ") - .append(toIndentedString(riskdataBasketItemItemNrSku)) - .append("\n"); - sb.append(" riskdataBasketItemItemNrUpc: ") - .append(toIndentedString(riskdataBasketItemItemNrUpc)) - .append("\n"); - sb.append(" riskdataPromotionsPromotionItemNrPromotionCode: ") - .append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionCode)) - .append("\n"); - sb.append(" riskdataPromotionsPromotionItemNrPromotionDiscountAmount: ") - .append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionDiscountAmount)) - .append("\n"); - sb.append(" riskdataPromotionsPromotionItemNrPromotionDiscountCurrency: ") - .append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionDiscountCurrency)) - .append("\n"); - sb.append(" riskdataPromotionsPromotionItemNrPromotionDiscountPercentage: ") - .append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionDiscountPercentage)) - .append("\n"); - sb.append(" riskdataPromotionsPromotionItemNrPromotionName: ") - .append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionName)) - .append("\n"); - sb.append(" riskdataRiskProfileReference: ") - .append(toIndentedString(riskdataRiskProfileReference)) - .append("\n"); + sb.append(" riskdataCustomFieldName: ").append(toIndentedString(riskdataCustomFieldName)).append("\n"); + sb.append(" riskdataBasketItemItemNrAmountPerItem: ").append(toIndentedString(riskdataBasketItemItemNrAmountPerItem)).append("\n"); + sb.append(" riskdataBasketItemItemNrBrand: ").append(toIndentedString(riskdataBasketItemItemNrBrand)).append("\n"); + sb.append(" riskdataBasketItemItemNrCategory: ").append(toIndentedString(riskdataBasketItemItemNrCategory)).append("\n"); + sb.append(" riskdataBasketItemItemNrColor: ").append(toIndentedString(riskdataBasketItemItemNrColor)).append("\n"); + sb.append(" riskdataBasketItemItemNrCurrency: ").append(toIndentedString(riskdataBasketItemItemNrCurrency)).append("\n"); + sb.append(" riskdataBasketItemItemNrItemID: ").append(toIndentedString(riskdataBasketItemItemNrItemID)).append("\n"); + sb.append(" riskdataBasketItemItemNrManufacturer: ").append(toIndentedString(riskdataBasketItemItemNrManufacturer)).append("\n"); + sb.append(" riskdataBasketItemItemNrProductTitle: ").append(toIndentedString(riskdataBasketItemItemNrProductTitle)).append("\n"); + sb.append(" riskdataBasketItemItemNrQuantity: ").append(toIndentedString(riskdataBasketItemItemNrQuantity)).append("\n"); + sb.append(" riskdataBasketItemItemNrReceiverEmail: ").append(toIndentedString(riskdataBasketItemItemNrReceiverEmail)).append("\n"); + sb.append(" riskdataBasketItemItemNrSize: ").append(toIndentedString(riskdataBasketItemItemNrSize)).append("\n"); + sb.append(" riskdataBasketItemItemNrSku: ").append(toIndentedString(riskdataBasketItemItemNrSku)).append("\n"); + sb.append(" riskdataBasketItemItemNrUpc: ").append(toIndentedString(riskdataBasketItemItemNrUpc)).append("\n"); + sb.append(" riskdataPromotionsPromotionItemNrPromotionCode: ").append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionCode)).append("\n"); + sb.append(" riskdataPromotionsPromotionItemNrPromotionDiscountAmount: ").append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionDiscountAmount)).append("\n"); + sb.append(" riskdataPromotionsPromotionItemNrPromotionDiscountCurrency: ").append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionDiscountCurrency)).append("\n"); + sb.append(" riskdataPromotionsPromotionItemNrPromotionDiscountPercentage: ").append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionDiscountPercentage)).append("\n"); + sb.append(" riskdataPromotionsPromotionItemNrPromotionName: ").append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionName)).append("\n"); + sb.append(" riskdataRiskProfileReference: ").append(toIndentedString(riskdataRiskProfileReference)).append("\n"); sb.append(" riskdataSkipRisk: ").append(toIndentedString(riskdataSkipRisk)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1107,23 +870,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalDataRisk given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataRisk - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataRisk + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataRisk */ public static AdditionalDataRisk fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataRisk.class); } - - /** - * Convert an instance of AdditionalDataRisk to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalDataRisk to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataRiskStandalone.java b/src/main/java/com/adyen/model/payment/AdditionalDataRiskStandalone.java index 9e5d22ccd..584104a53 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataRiskStandalone.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataRiskStandalone.java @@ -2,22 +2,31 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AdditionalDataRiskStandalone */ + +/** + * AdditionalDataRiskStandalone + */ @JsonPropertyOrder({ AdditionalDataRiskStandalone.JSON_PROPERTY_PAY_PAL_COUNTRY_CODE, AdditionalDataRiskStandalone.JSON_PROPERTY_PAY_PAL_EMAIL_ID, @@ -35,6 +44,7 @@ AdditionalDataRiskStandalone.JSON_PROPERTY_THREE_D_OFFERED, AdditionalDataRiskStandalone.JSON_PROPERTY_TOKEN_DATA_TYPE }) + public class AdditionalDataRiskStandalone { public static final String JSON_PROPERTY_PAY_PAL_COUNTRY_CODE = "PayPal.CountryCode"; private String payPalCountryCode; @@ -54,8 +64,7 @@ public class AdditionalDataRiskStandalone { public static final String JSON_PROPERTY_PAY_PAL_PHONE = "PayPal.Phone"; private String payPalPhone; - public static final String JSON_PROPERTY_PAY_PAL_PROTECTION_ELIGIBILITY = - "PayPal.ProtectionEligibility"; + public static final String JSON_PROPERTY_PAY_PAL_PROTECTION_ELIGIBILITY = "PayPal.ProtectionEligibility"; private String payPalProtectionEligibility; public static final String JSON_PROPERTY_PAY_PAL_TRANSACTION_ID = "PayPal.TransactionId"; @@ -82,13 +91,13 @@ public class AdditionalDataRiskStandalone { public static final String JSON_PROPERTY_TOKEN_DATA_TYPE = "tokenDataType"; private String tokenDataType; - public AdditionalDataRiskStandalone() {} + public AdditionalDataRiskStandalone() { + } /** * Shopper's country of residence in the form of ISO standard 3166 2-character country codes. * - * @param payPalCountryCode Shopper's country of residence in the form of ISO standard 3166 - * 2-character country codes. + * @param payPalCountryCode Shopper's country of residence in the form of ISO standard 3166 2-character country codes. * @return the current {@code AdditionalDataRiskStandalone} instance, allowing for method chaining */ public AdditionalDataRiskStandalone payPalCountryCode(String payPalCountryCode) { @@ -98,9 +107,7 @@ public AdditionalDataRiskStandalone payPalCountryCode(String payPalCountryCode) /** * Shopper's country of residence in the form of ISO standard 3166 2-character country codes. - * - * @return payPalCountryCode Shopper's country of residence in the form of ISO standard 3166 - * 2-character country codes. + * @return payPalCountryCode Shopper's country of residence in the form of ISO standard 3166 2-character country codes. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,8 +118,7 @@ public String getPayPalCountryCode() { /** * Shopper's country of residence in the form of ISO standard 3166 2-character country codes. * - * @param payPalCountryCode Shopper's country of residence in the form of ISO standard 3166 - * 2-character country codes. + * @param payPalCountryCode Shopper's country of residence in the form of ISO standard 3166 2-character country codes. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -133,7 +139,6 @@ public AdditionalDataRiskStandalone payPalEmailId(String payPalEmailId) { /** * Shopper's email. - * * @return payPalEmailId Shopper's email. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_EMAIL_ID) @@ -166,7 +171,6 @@ public AdditionalDataRiskStandalone payPalFirstName(String payPalFirstName) { /** * Shopper's first name. - * * @return payPalFirstName Shopper's first name. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_FIRST_NAME) @@ -199,7 +203,6 @@ public AdditionalDataRiskStandalone payPalLastName(String payPalLastName) { /** * Shopper's last name. - * * @return payPalLastName Shopper's last name. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_LAST_NAME) @@ -220,11 +223,9 @@ public void setPayPalLastName(String payPalLastName) { } /** - * Unique PayPal Customer Account identification number. Character length and limitations: 13 - * single-byte alphanumeric characters. + * Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. * - * @param payPalPayerId Unique PayPal Customer Account identification number. Character length and - * limitations: 13 single-byte alphanumeric characters. + * @param payPalPayerId Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. * @return the current {@code AdditionalDataRiskStandalone} instance, allowing for method chaining */ public AdditionalDataRiskStandalone payPalPayerId(String payPalPayerId) { @@ -233,11 +234,8 @@ public AdditionalDataRiskStandalone payPalPayerId(String payPalPayerId) { } /** - * Unique PayPal Customer Account identification number. Character length and limitations: 13 - * single-byte alphanumeric characters. - * - * @return payPalPayerId Unique PayPal Customer Account identification number. Character length - * and limitations: 13 single-byte alphanumeric characters. + * Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. + * @return payPalPayerId Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_PAYER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -246,11 +244,9 @@ public String getPayPalPayerId() { } /** - * Unique PayPal Customer Account identification number. Character length and limitations: 13 - * single-byte alphanumeric characters. + * Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. * - * @param payPalPayerId Unique PayPal Customer Account identification number. Character length and - * limitations: 13 single-byte alphanumeric characters. + * @param payPalPayerId Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_PAYER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -271,7 +267,6 @@ public AdditionalDataRiskStandalone payPalPhone(String payPalPhone) { /** * Shopper's phone number. - * * @return payPalPhone Shopper's phone number. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_PHONE) @@ -292,35 +287,19 @@ public void setPayPalPhone(String payPalPhone) { } /** - * Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy - * for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is - * protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — - * Merchant is not protected under the Seller Protection Policy. + * Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy. * - * @param payPalProtectionEligibility Allowed values: * **Eligible** — Merchant is protected by - * PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * - * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for - * Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection - * Policy. + * @param payPalProtectionEligibility Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy. * @return the current {@code AdditionalDataRiskStandalone} instance, allowing for method chaining */ - public AdditionalDataRiskStandalone payPalProtectionEligibility( - String payPalProtectionEligibility) { + public AdditionalDataRiskStandalone payPalProtectionEligibility(String payPalProtectionEligibility) { this.payPalProtectionEligibility = payPalProtectionEligibility; return this; } /** - * Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy - * for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is - * protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — - * Merchant is not protected under the Seller Protection Policy. - * - * @return payPalProtectionEligibility Allowed values: * **Eligible** — Merchant is protected by - * PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * - * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for - * Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection - * Policy. + * Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy. + * @return payPalProtectionEligibility Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_PROTECTION_ELIGIBILITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -329,16 +308,9 @@ public String getPayPalProtectionEligibility() { } /** - * Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy - * for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is - * protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — - * Merchant is not protected under the Seller Protection Policy. + * Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy. * - * @param payPalProtectionEligibility Allowed values: * **Eligible** — Merchant is protected by - * PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * - * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for - * Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection - * Policy. + * @param payPalProtectionEligibility Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_PROTECTION_ELIGIBILITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -359,7 +331,6 @@ public AdditionalDataRiskStandalone payPalTransactionId(String payPalTransaction /** * Unique transaction ID of the payment. - * * @return payPalTransactionId Unique transaction ID of the payment. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_TRANSACTION_ID) @@ -392,7 +363,6 @@ public AdditionalDataRiskStandalone avsResultRaw(String avsResultRaw) { /** * Raw AVS result received from the acquirer, where available. Example: D - * * @return avsResultRaw Raw AVS result received from the acquirer, where available. Example: D */ @JsonProperty(JSON_PROPERTY_AVS_RESULT_RAW) @@ -413,13 +383,9 @@ public void setAvsResultRaw(String avsResultRaw) { } /** - * The Bank Identification Number of a credit card, which is the first six digits of a card - * number. Required for [tokenized card - * request](https://docs.adyen.com/online-payments/tokenization). + * The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/online-payments/tokenization). * - * @param bin The Bank Identification Number of a credit card, which is the first six digits of a - * card number. Required for [tokenized card - * request](https://docs.adyen.com/online-payments/tokenization). + * @param bin The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/online-payments/tokenization). * @return the current {@code AdditionalDataRiskStandalone} instance, allowing for method chaining */ public AdditionalDataRiskStandalone bin(String bin) { @@ -428,13 +394,8 @@ public AdditionalDataRiskStandalone bin(String bin) { } /** - * The Bank Identification Number of a credit card, which is the first six digits of a card - * number. Required for [tokenized card - * request](https://docs.adyen.com/online-payments/tokenization). - * - * @return bin The Bank Identification Number of a credit card, which is the first six digits of a - * card number. Required for [tokenized card - * request](https://docs.adyen.com/online-payments/tokenization). + * The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/online-payments/tokenization). + * @return bin The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/online-payments/tokenization). */ @JsonProperty(JSON_PROPERTY_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -443,13 +404,9 @@ public String getBin() { } /** - * The Bank Identification Number of a credit card, which is the first six digits of a card - * number. Required for [tokenized card - * request](https://docs.adyen.com/online-payments/tokenization). + * The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/online-payments/tokenization). * - * @param bin The Bank Identification Number of a credit card, which is the first six digits of a - * card number. Required for [tokenized card - * request](https://docs.adyen.com/online-payments/tokenization). + * @param bin The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/online-payments/tokenization). */ @JsonProperty(JSON_PROPERTY_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -470,7 +427,6 @@ public AdditionalDataRiskStandalone cvcResultRaw(String cvcResultRaw) { /** * Raw CVC result received from the acquirer, where available. Example: 1 - * * @return cvcResultRaw Raw CVC result received from the acquirer, where available. Example: 1 */ @JsonProperty(JSON_PROPERTY_CVC_RESULT_RAW) @@ -503,7 +459,6 @@ public AdditionalDataRiskStandalone riskToken(String riskToken) { /** * Unique identifier or token for the shopper's card details. - * * @return riskToken Unique identifier or token for the shopper's card details. */ @JsonProperty(JSON_PROPERTY_RISK_TOKEN) @@ -524,11 +479,9 @@ public void setRiskToken(String riskToken) { } /** - * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: - * true + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true * - * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed - * on this payment. Example: true + * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true * @return the current {@code AdditionalDataRiskStandalone} instance, allowing for method chaining */ public AdditionalDataRiskStandalone threeDAuthenticated(String threeDAuthenticated) { @@ -537,11 +490,8 @@ public AdditionalDataRiskStandalone threeDAuthenticated(String threeDAuthenticat } /** - * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: - * true - * - * @return threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed - * on this payment. Example: true + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + * @return threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -550,11 +500,9 @@ public String getThreeDAuthenticated() { } /** - * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: - * true + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true * - * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed - * on this payment. Example: true + * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -565,8 +513,7 @@ public void setThreeDAuthenticated(String threeDAuthenticated) { /** * A Boolean value indicating whether 3DS was offered for this payment. Example: true * - * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. - * Example: true + * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. Example: true * @return the current {@code AdditionalDataRiskStandalone} instance, allowing for method chaining */ public AdditionalDataRiskStandalone threeDOffered(String threeDOffered) { @@ -576,9 +523,7 @@ public AdditionalDataRiskStandalone threeDOffered(String threeDOffered) { /** * A Boolean value indicating whether 3DS was offered for this payment. Example: true - * - * @return threeDOffered A Boolean value indicating whether 3DS was offered for this payment. - * Example: true + * @return threeDOffered A Boolean value indicating whether 3DS was offered for this payment. Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -589,8 +534,7 @@ public String getThreeDOffered() { /** * A Boolean value indicating whether 3DS was offered for this payment. Example: true * - * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. - * Example: true + * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -601,8 +545,7 @@ public void setThreeDOffered(String threeDOffered) { /** * Required for PayPal payments only. The only supported value is: **paypal**. * - * @param tokenDataType Required for PayPal payments only. The only supported value is: - * **paypal**. + * @param tokenDataType Required for PayPal payments only. The only supported value is: **paypal**. * @return the current {@code AdditionalDataRiskStandalone} instance, allowing for method chaining */ public AdditionalDataRiskStandalone tokenDataType(String tokenDataType) { @@ -612,9 +555,7 @@ public AdditionalDataRiskStandalone tokenDataType(String tokenDataType) { /** * Required for PayPal payments only. The only supported value is: **paypal**. - * - * @return tokenDataType Required for PayPal payments only. The only supported value is: - * **paypal**. + * @return tokenDataType Required for PayPal payments only. The only supported value is: **paypal**. */ @JsonProperty(JSON_PROPERTY_TOKEN_DATA_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -625,8 +566,7 @@ public String getTokenDataType() { /** * Required for PayPal payments only. The only supported value is: **paypal**. * - * @param tokenDataType Required for PayPal payments only. The only supported value is: - * **paypal**. + * @param tokenDataType Required for PayPal payments only. The only supported value is: **paypal**. */ @JsonProperty(JSON_PROPERTY_TOKEN_DATA_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -634,7 +574,9 @@ public void setTokenDataType(String tokenDataType) { this.tokenDataType = tokenDataType; } - /** Return true if this AdditionalDataRiskStandalone object is equal to o. */ + /** + * Return true if this AdditionalDataRiskStandalone object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -644,45 +586,26 @@ public boolean equals(Object o) { return false; } AdditionalDataRiskStandalone additionalDataRiskStandalone = (AdditionalDataRiskStandalone) o; - return Objects.equals(this.payPalCountryCode, additionalDataRiskStandalone.payPalCountryCode) - && Objects.equals(this.payPalEmailId, additionalDataRiskStandalone.payPalEmailId) - && Objects.equals(this.payPalFirstName, additionalDataRiskStandalone.payPalFirstName) - && Objects.equals(this.payPalLastName, additionalDataRiskStandalone.payPalLastName) - && Objects.equals(this.payPalPayerId, additionalDataRiskStandalone.payPalPayerId) - && Objects.equals(this.payPalPhone, additionalDataRiskStandalone.payPalPhone) - && Objects.equals( - this.payPalProtectionEligibility, - additionalDataRiskStandalone.payPalProtectionEligibility) - && Objects.equals( - this.payPalTransactionId, additionalDataRiskStandalone.payPalTransactionId) - && Objects.equals(this.avsResultRaw, additionalDataRiskStandalone.avsResultRaw) - && Objects.equals(this.bin, additionalDataRiskStandalone.bin) - && Objects.equals(this.cvcResultRaw, additionalDataRiskStandalone.cvcResultRaw) - && Objects.equals(this.riskToken, additionalDataRiskStandalone.riskToken) - && Objects.equals( - this.threeDAuthenticated, additionalDataRiskStandalone.threeDAuthenticated) - && Objects.equals(this.threeDOffered, additionalDataRiskStandalone.threeDOffered) - && Objects.equals(this.tokenDataType, additionalDataRiskStandalone.tokenDataType); + return Objects.equals(this.payPalCountryCode, additionalDataRiskStandalone.payPalCountryCode) && + Objects.equals(this.payPalEmailId, additionalDataRiskStandalone.payPalEmailId) && + Objects.equals(this.payPalFirstName, additionalDataRiskStandalone.payPalFirstName) && + Objects.equals(this.payPalLastName, additionalDataRiskStandalone.payPalLastName) && + Objects.equals(this.payPalPayerId, additionalDataRiskStandalone.payPalPayerId) && + Objects.equals(this.payPalPhone, additionalDataRiskStandalone.payPalPhone) && + Objects.equals(this.payPalProtectionEligibility, additionalDataRiskStandalone.payPalProtectionEligibility) && + Objects.equals(this.payPalTransactionId, additionalDataRiskStandalone.payPalTransactionId) && + Objects.equals(this.avsResultRaw, additionalDataRiskStandalone.avsResultRaw) && + Objects.equals(this.bin, additionalDataRiskStandalone.bin) && + Objects.equals(this.cvcResultRaw, additionalDataRiskStandalone.cvcResultRaw) && + Objects.equals(this.riskToken, additionalDataRiskStandalone.riskToken) && + Objects.equals(this.threeDAuthenticated, additionalDataRiskStandalone.threeDAuthenticated) && + Objects.equals(this.threeDOffered, additionalDataRiskStandalone.threeDOffered) && + Objects.equals(this.tokenDataType, additionalDataRiskStandalone.tokenDataType); } @Override public int hashCode() { - return Objects.hash( - payPalCountryCode, - payPalEmailId, - payPalFirstName, - payPalLastName, - payPalPayerId, - payPalPhone, - payPalProtectionEligibility, - payPalTransactionId, - avsResultRaw, - bin, - cvcResultRaw, - riskToken, - threeDAuthenticated, - threeDOffered, - tokenDataType); + return Objects.hash(payPalCountryCode, payPalEmailId, payPalFirstName, payPalLastName, payPalPayerId, payPalPhone, payPalProtectionEligibility, payPalTransactionId, avsResultRaw, bin, cvcResultRaw, riskToken, threeDAuthenticated, threeDOffered, tokenDataType); } @Override @@ -695,19 +618,13 @@ public String toString() { sb.append(" payPalLastName: ").append(toIndentedString(payPalLastName)).append("\n"); sb.append(" payPalPayerId: ").append(toIndentedString(payPalPayerId)).append("\n"); sb.append(" payPalPhone: ").append(toIndentedString(payPalPhone)).append("\n"); - sb.append(" payPalProtectionEligibility: ") - .append(toIndentedString(payPalProtectionEligibility)) - .append("\n"); - sb.append(" payPalTransactionId: ") - .append(toIndentedString(payPalTransactionId)) - .append("\n"); + sb.append(" payPalProtectionEligibility: ").append(toIndentedString(payPalProtectionEligibility)).append("\n"); + sb.append(" payPalTransactionId: ").append(toIndentedString(payPalTransactionId)).append("\n"); sb.append(" avsResultRaw: ").append(toIndentedString(avsResultRaw)).append("\n"); sb.append(" bin: ").append(toIndentedString(bin)).append("\n"); sb.append(" cvcResultRaw: ").append(toIndentedString(cvcResultRaw)).append("\n"); sb.append(" riskToken: ").append(toIndentedString(riskToken)).append("\n"); - sb.append(" threeDAuthenticated: ") - .append(toIndentedString(threeDAuthenticated)) - .append("\n"); + sb.append(" threeDAuthenticated: ").append(toIndentedString(threeDAuthenticated)).append("\n"); sb.append(" threeDOffered: ").append(toIndentedString(threeDOffered)).append("\n"); sb.append(" tokenDataType: ").append(toIndentedString(tokenDataType)).append("\n"); sb.append("}"); @@ -715,7 +632,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -724,24 +642,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalDataRiskStandalone given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataRiskStandalone - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataRiskStandalone + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataRiskStandalone */ - public static AdditionalDataRiskStandalone fromJson(String jsonString) - throws JsonProcessingException { + public static AdditionalDataRiskStandalone fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataRiskStandalone.class); } - - /** - * Convert an instance of AdditionalDataRiskStandalone to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalDataRiskStandalone to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataSubMerchant.java b/src/main/java/com/adyen/model/payment/AdditionalDataSubMerchant.java index 9b4699949..00bd37d67 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataSubMerchant.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataSubMerchant.java @@ -2,22 +2,31 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AdditionalDataSubMerchant */ + +/** + * AdditionalDataSubMerchant + */ @JsonPropertyOrder({ AdditionalDataSubMerchant.JSON_PROPERTY_SUB_MERCHANT_NUMBER_OF_SUB_SELLERS, AdditionalDataSubMerchant.JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_CITY, @@ -32,79 +41,61 @@ AdditionalDataSubMerchant.JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STREET, AdditionalDataSubMerchant.JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_TAX_ID }) + public class AdditionalDataSubMerchant { - public static final String JSON_PROPERTY_SUB_MERCHANT_NUMBER_OF_SUB_SELLERS = - "subMerchant.numberOfSubSellers"; + public static final String JSON_PROPERTY_SUB_MERCHANT_NUMBER_OF_SUB_SELLERS = "subMerchant.numberOfSubSellers"; private String subMerchantNumberOfSubSellers; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_CITY = - "subMerchant.subSeller[subSellerNr].city"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_CITY = "subMerchant.subSeller[subSellerNr].city"; private String subMerchantSubSellerSubSellerNrCity; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_COUNTRY = - "subMerchant.subSeller[subSellerNr].country"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_COUNTRY = "subMerchant.subSeller[subSellerNr].country"; private String subMerchantSubSellerSubSellerNrCountry; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_EMAIL = - "subMerchant.subSeller[subSellerNr].email"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_EMAIL = "subMerchant.subSeller[subSellerNr].email"; private String subMerchantSubSellerSubSellerNrEmail; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_ID = - "subMerchant.subSeller[subSellerNr].id"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_ID = "subMerchant.subSeller[subSellerNr].id"; private String subMerchantSubSellerSubSellerNrId; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_MCC = - "subMerchant.subSeller[subSellerNr].mcc"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_MCC = "subMerchant.subSeller[subSellerNr].mcc"; private String subMerchantSubSellerSubSellerNrMcc; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_NAME = - "subMerchant.subSeller[subSellerNr].name"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_NAME = "subMerchant.subSeller[subSellerNr].name"; private String subMerchantSubSellerSubSellerNrName; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_PHONE_NUMBER = - "subMerchant.subSeller[subSellerNr].phoneNumber"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_PHONE_NUMBER = "subMerchant.subSeller[subSellerNr].phoneNumber"; private String subMerchantSubSellerSubSellerNrPhoneNumber; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_POSTAL_CODE = - "subMerchant.subSeller[subSellerNr].postalCode"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_POSTAL_CODE = "subMerchant.subSeller[subSellerNr].postalCode"; private String subMerchantSubSellerSubSellerNrPostalCode; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STATE = - "subMerchant.subSeller[subSellerNr].state"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STATE = "subMerchant.subSeller[subSellerNr].state"; private String subMerchantSubSellerSubSellerNrState; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STREET = - "subMerchant.subSeller[subSellerNr].street"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STREET = "subMerchant.subSeller[subSellerNr].street"; private String subMerchantSubSellerSubSellerNrStreet; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_TAX_ID = - "subMerchant.subSeller[subSellerNr].taxId"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_TAX_ID = "subMerchant.subSeller[subSellerNr].taxId"; private String subMerchantSubSellerSubSellerNrTaxId; - public AdditionalDataSubMerchant() {} + public AdditionalDataSubMerchant() { + } /** - * Required for transactions performed by registered payment facilitators. Indicates the number of - * sub-merchants contained in the request. For example, **3**. + * Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**. * - * @param subMerchantNumberOfSubSellers Required for transactions performed by registered payment - * facilitators. Indicates the number of sub-merchants contained in the request. For example, - * **3**. + * @param subMerchantNumberOfSubSellers Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**. * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantNumberOfSubSellers( - String subMerchantNumberOfSubSellers) { + public AdditionalDataSubMerchant subMerchantNumberOfSubSellers(String subMerchantNumberOfSubSellers) { this.subMerchantNumberOfSubSellers = subMerchantNumberOfSubSellers; return this; } /** - * Required for transactions performed by registered payment facilitators. Indicates the number of - * sub-merchants contained in the request. For example, **3**. - * - * @return subMerchantNumberOfSubSellers Required for transactions performed by registered payment - * facilitators. Indicates the number of sub-merchants contained in the request. For example, - * **3**. + * Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**. + * @return subMerchantNumberOfSubSellers Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_NUMBER_OF_SUB_SELLERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,12 +104,9 @@ public String getSubMerchantNumberOfSubSellers() { } /** - * Required for transactions performed by registered payment facilitators. Indicates the number of - * sub-merchants contained in the request. For example, **3**. + * Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**. * - * @param subMerchantNumberOfSubSellers Required for transactions performed by registered payment - * facilitators. Indicates the number of sub-merchants contained in the request. For example, - * **3**. + * @param subMerchantNumberOfSubSellers Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_NUMBER_OF_SUB_SELLERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,27 +115,19 @@ public void setSubMerchantNumberOfSubSellers(String subMerchantNumberOfSubSeller } /** - * Required for transactions performed by registered payment facilitators. The city of the - * sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters + * Required for transactions performed by registered payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters * - * @param subMerchantSubSellerSubSellerNrCity Required for transactions performed by registered - * payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * - * Maximum length: 13 characters + * @param subMerchantSubSellerSubSellerNrCity Required for transactions performed by registered payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrCity( - String subMerchantSubSellerSubSellerNrCity) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrCity(String subMerchantSubSellerSubSellerNrCity) { this.subMerchantSubSellerSubSellerNrCity = subMerchantSubSellerSubSellerNrCity; return this; } /** - * Required for transactions performed by registered payment facilitators. The city of the - * sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters - * - * @return subMerchantSubSellerSubSellerNrCity Required for transactions performed by registered - * payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * - * Maximum length: 13 characters + * Required for transactions performed by registered payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters + * @return subMerchantSubSellerSubSellerNrCity Required for transactions performed by registered payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,12 +136,9 @@ public String getSubMerchantSubSellerSubSellerNrCity() { } /** - * Required for transactions performed by registered payment facilitators. The city of the - * sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters + * Required for transactions performed by registered payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters * - * @param subMerchantSubSellerSubSellerNrCity Required for transactions performed by registered - * payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * - * Maximum length: 13 characters + * @param subMerchantSubSellerSubSellerNrCity Required for transactions performed by registered payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -170,31 +147,19 @@ public void setSubMerchantSubSellerSubSellerNrCity(String subMerchantSubSellerSu } /** - * Required for transactions performed by registered payment facilitators. The three-letter - * country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO - * 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * Required for transactions performed by registered payment facilitators. The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters * - * @param subMerchantSubSellerSubSellerNrCountry Required for transactions performed by registered - * payment facilitators. The three-letter country code of the sub-merchant's address. For - * example, **BRA** for Brazil. * Format: [ISO 3166-1 - * alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * @param subMerchantSubSellerSubSellerNrCountry Required for transactions performed by registered payment facilitators. The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrCountry( - String subMerchantSubSellerSubSellerNrCountry) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrCountry(String subMerchantSubSellerSubSellerNrCountry) { this.subMerchantSubSellerSubSellerNrCountry = subMerchantSubSellerSubSellerNrCountry; return this; } /** - * Required for transactions performed by registered payment facilitators. The three-letter - * country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO - * 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters - * - * @return subMerchantSubSellerSubSellerNrCountry Required for transactions performed by - * registered payment facilitators. The three-letter country code of the sub-merchant's - * address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 - * alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * Required for transactions performed by registered payment facilitators. The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * @return subMerchantSubSellerSubSellerNrCountry Required for transactions performed by registered payment facilitators. The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -203,44 +168,30 @@ public String getSubMerchantSubSellerSubSellerNrCountry() { } /** - * Required for transactions performed by registered payment facilitators. The three-letter - * country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO - * 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * Required for transactions performed by registered payment facilitators. The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters * - * @param subMerchantSubSellerSubSellerNrCountry Required for transactions performed by registered - * payment facilitators. The three-letter country code of the sub-merchant's address. For - * example, **BRA** for Brazil. * Format: [ISO 3166-1 - * alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * @param subMerchantSubSellerSubSellerNrCountry Required for transactions performed by registered payment facilitators. The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubMerchantSubSellerSubSellerNrCountry( - String subMerchantSubSellerSubSellerNrCountry) { + public void setSubMerchantSubSellerSubSellerNrCountry(String subMerchantSubSellerSubSellerNrCountry) { this.subMerchantSubSellerSubSellerNrCountry = subMerchantSubSellerSubSellerNrCountry; } /** - * Required for transactions performed by registered payment facilitators. The email address of - * the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters + * Required for transactions performed by registered payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters * - * @param subMerchantSubSellerSubSellerNrEmail Required for transactions performed by registered - * payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * - * Maximum length: 40 characters + * @param subMerchantSubSellerSubSellerNrEmail Required for transactions performed by registered payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrEmail( - String subMerchantSubSellerSubSellerNrEmail) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrEmail(String subMerchantSubSellerSubSellerNrEmail) { this.subMerchantSubSellerSubSellerNrEmail = subMerchantSubSellerSubSellerNrEmail; return this; } /** - * Required for transactions performed by registered payment facilitators. The email address of - * the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters - * - * @return subMerchantSubSellerSubSellerNrEmail Required for transactions performed by registered - * payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * - * Maximum length: 40 characters + * Required for transactions performed by registered payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters + * @return subMerchantSubSellerSubSellerNrEmail Required for transactions performed by registered payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -249,12 +200,9 @@ public String getSubMerchantSubSellerSubSellerNrEmail() { } /** - * Required for transactions performed by registered payment facilitators. The email address of - * the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters + * Required for transactions performed by registered payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters * - * @param subMerchantSubSellerSubSellerNrEmail Required for transactions performed by registered - * payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * - * Maximum length: 40 characters + * @param subMerchantSubSellerSubSellerNrEmail Required for transactions performed by registered payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -263,31 +211,19 @@ public void setSubMerchantSubSellerSubSellerNrEmail(String subMerchantSubSellerS } /** - * Required for transactions performed by registered payment facilitators. A unique identifier - * that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: - * Alphanumeric * Maximum length: 15 characters + * Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters * - * @param subMerchantSubSellerSubSellerNrId Required for transactions performed by registered - * payment facilitators. A unique identifier that you create for the sub-merchant, used by - * schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 - * characters + * @param subMerchantSubSellerSubSellerNrId Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrId( - String subMerchantSubSellerSubSellerNrId) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrId(String subMerchantSubSellerSubSellerNrId) { this.subMerchantSubSellerSubSellerNrId = subMerchantSubSellerSubSellerNrId; return this; } /** - * Required for transactions performed by registered payment facilitators. A unique identifier - * that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: - * Alphanumeric * Maximum length: 15 characters - * - * @return subMerchantSubSellerSubSellerNrId Required for transactions performed by registered - * payment facilitators. A unique identifier that you create for the sub-merchant, used by - * schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 - * characters + * Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * @return subMerchantSubSellerSubSellerNrId Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -296,14 +232,9 @@ public String getSubMerchantSubSellerSubSellerNrId() { } /** - * Required for transactions performed by registered payment facilitators. A unique identifier - * that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: - * Alphanumeric * Maximum length: 15 characters + * Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters * - * @param subMerchantSubSellerSubSellerNrId Required for transactions performed by registered - * payment facilitators. A unique identifier that you create for the sub-merchant, used by - * schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 - * characters + * @param subMerchantSubSellerSubSellerNrId Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -312,27 +243,19 @@ public void setSubMerchantSubSellerSubSellerNrId(String subMerchantSubSellerSubS } /** - * Required for transactions performed by registered payment facilitators. The sub-merchant's - * 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits * - * @param subMerchantSubSellerSubSellerNrMcc Required for transactions performed by registered - * payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * - * Format: Numeric * Fixed length: 4 digits + * @param subMerchantSubSellerSubSellerNrMcc Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrMcc( - String subMerchantSubSellerSubSellerNrMcc) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrMcc(String subMerchantSubSellerSubSellerNrMcc) { this.subMerchantSubSellerSubSellerNrMcc = subMerchantSubSellerSubSellerNrMcc; return this; } /** - * Required for transactions performed by registered payment facilitators. The sub-merchant's - * 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits - * - * @return subMerchantSubSellerSubSellerNrMcc Required for transactions performed by registered - * payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * - * Format: Numeric * Fixed length: 4 digits + * Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * @return subMerchantSubSellerSubSellerNrMcc Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -341,12 +264,9 @@ public String getSubMerchantSubSellerSubSellerNrMcc() { } /** - * Required for transactions performed by registered payment facilitators. The sub-merchant's - * 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits * - * @param subMerchantSubSellerSubSellerNrMcc Required for transactions performed by registered - * payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * - * Format: Numeric * Fixed length: 4 digits + * @param subMerchantSubSellerSubSellerNrMcc Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -355,35 +275,19 @@ public void setSubMerchantSubSellerSubSellerNrMcc(String subMerchantSubSellerSub } /** - * Required for transactions performed by registered payment facilitators. The name of the - * sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement - * that will appear in the card statement. Exception: for acquirers in Brazil, this value does not - * overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters + * Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters * - * @param subMerchantSubSellerSubSellerNrName Required for transactions performed by registered - * payment facilitators. The name of the sub-merchant. Based on scheme specifications, this - * value will overwrite the shopper statement that will appear in the card statement. - * Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * - * Format: Alphanumeric * Maximum length: 22 characters + * @param subMerchantSubSellerSubSellerNrName Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrName( - String subMerchantSubSellerSubSellerNrName) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrName(String subMerchantSubSellerSubSellerNrName) { this.subMerchantSubSellerSubSellerNrName = subMerchantSubSellerSubSellerNrName; return this; } /** - * Required for transactions performed by registered payment facilitators. The name of the - * sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement - * that will appear in the card statement. Exception: for acquirers in Brazil, this value does not - * overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters - * - * @return subMerchantSubSellerSubSellerNrName Required for transactions performed by registered - * payment facilitators. The name of the sub-merchant. Based on scheme specifications, this - * value will overwrite the shopper statement that will appear in the card statement. - * Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * - * Format: Alphanumeric * Maximum length: 22 characters + * Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters + * @return subMerchantSubSellerSubSellerNrName Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -392,16 +296,9 @@ public String getSubMerchantSubSellerSubSellerNrName() { } /** - * Required for transactions performed by registered payment facilitators. The name of the - * sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement - * that will appear in the card statement. Exception: for acquirers in Brazil, this value does not - * overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters + * Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters * - * @param subMerchantSubSellerSubSellerNrName Required for transactions performed by registered - * payment facilitators. The name of the sub-merchant. Based on scheme specifications, this - * value will overwrite the shopper statement that will appear in the card statement. - * Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * - * Format: Alphanumeric * Maximum length: 22 characters + * @param subMerchantSubSellerSubSellerNrName Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -410,27 +307,19 @@ public void setSubMerchantSubSellerSubSellerNrName(String subMerchantSubSellerSu } /** - * Required for transactions performed by registered payment facilitators. The phone number of the - * sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters * - * @param subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by - * registered payment facilitators. The phone number of the sub-merchant.* Format: - * Alphanumeric * Maximum length: 20 characters + * @param subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrPhoneNumber( - String subMerchantSubSellerSubSellerNrPhoneNumber) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrPhoneNumber(String subMerchantSubSellerSubSellerNrPhoneNumber) { this.subMerchantSubSellerSubSellerNrPhoneNumber = subMerchantSubSellerSubSellerNrPhoneNumber; return this; } /** - * Required for transactions performed by registered payment facilitators. The phone number of the - * sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters - * - * @return subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by - * registered payment facilitators. The phone number of the sub-merchant.* Format: - * Alphanumeric * Maximum length: 20 characters + * Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * @return subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -439,42 +328,30 @@ public String getSubMerchantSubSellerSubSellerNrPhoneNumber() { } /** - * Required for transactions performed by registered payment facilitators. The phone number of the - * sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters * - * @param subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by - * registered payment facilitators. The phone number of the sub-merchant.* Format: - * Alphanumeric * Maximum length: 20 characters + * @param subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubMerchantSubSellerSubSellerNrPhoneNumber( - String subMerchantSubSellerSubSellerNrPhoneNumber) { + public void setSubMerchantSubSellerSubSellerNrPhoneNumber(String subMerchantSubSellerSubSellerNrPhoneNumber) { this.subMerchantSubSellerSubSellerNrPhoneNumber = subMerchantSubSellerSubSellerNrPhoneNumber; } /** - * Required for transactions performed by registered payment facilitators. The postal code of the - * sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits + * Required for transactions performed by registered payment facilitators. The postal code of the sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits * - * @param subMerchantSubSellerSubSellerNrPostalCode Required for transactions performed by - * registered payment facilitators. The postal code of the sub-merchant's address, without - * dashes. * Format: Numeric * Fixed length: 8 digits + * @param subMerchantSubSellerSubSellerNrPostalCode Required for transactions performed by registered payment facilitators. The postal code of the sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrPostalCode( - String subMerchantSubSellerSubSellerNrPostalCode) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrPostalCode(String subMerchantSubSellerSubSellerNrPostalCode) { this.subMerchantSubSellerSubSellerNrPostalCode = subMerchantSubSellerSubSellerNrPostalCode; return this; } /** - * Required for transactions performed by registered payment facilitators. The postal code of the - * sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits - * - * @return subMerchantSubSellerSubSellerNrPostalCode Required for transactions performed by - * registered payment facilitators. The postal code of the sub-merchant's address, without - * dashes. * Format: Numeric * Fixed length: 8 digits + * Required for transactions performed by registered payment facilitators. The postal code of the sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits + * @return subMerchantSubSellerSubSellerNrPostalCode Required for transactions performed by registered payment facilitators. The postal code of the sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -483,44 +360,30 @@ public String getSubMerchantSubSellerSubSellerNrPostalCode() { } /** - * Required for transactions performed by registered payment facilitators. The postal code of the - * sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits + * Required for transactions performed by registered payment facilitators. The postal code of the sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits * - * @param subMerchantSubSellerSubSellerNrPostalCode Required for transactions performed by - * registered payment facilitators. The postal code of the sub-merchant's address, without - * dashes. * Format: Numeric * Fixed length: 8 digits + * @param subMerchantSubSellerSubSellerNrPostalCode Required for transactions performed by registered payment facilitators. The postal code of the sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubMerchantSubSellerSubSellerNrPostalCode( - String subMerchantSubSellerSubSellerNrPostalCode) { + public void setSubMerchantSubSellerSubSellerNrPostalCode(String subMerchantSubSellerSubSellerNrPostalCode) { this.subMerchantSubSellerSubSellerNrPostalCode = subMerchantSubSellerSubSellerNrPostalCode; } /** - * Required for transactions performed by registered payment facilitators. The state code of the - * sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum - * length: 2 characters + * Required for transactions performed by registered payment facilitators. The state code of the sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum length: 2 characters * - * @param subMerchantSubSellerSubSellerNrState Required for transactions performed by registered - * payment facilitators. The state code of the sub-merchant's address, if applicable to - * the country. * Format: Alphanumeric * Maximum length: 2 characters + * @param subMerchantSubSellerSubSellerNrState Required for transactions performed by registered payment facilitators. The state code of the sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum length: 2 characters * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrState( - String subMerchantSubSellerSubSellerNrState) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrState(String subMerchantSubSellerSubSellerNrState) { this.subMerchantSubSellerSubSellerNrState = subMerchantSubSellerSubSellerNrState; return this; } /** - * Required for transactions performed by registered payment facilitators. The state code of the - * sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum - * length: 2 characters - * - * @return subMerchantSubSellerSubSellerNrState Required for transactions performed by registered - * payment facilitators. The state code of the sub-merchant's address, if applicable to - * the country. * Format: Alphanumeric * Maximum length: 2 characters + * Required for transactions performed by registered payment facilitators. The state code of the sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum length: 2 characters + * @return subMerchantSubSellerSubSellerNrState Required for transactions performed by registered payment facilitators. The state code of the sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum length: 2 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -529,13 +392,9 @@ public String getSubMerchantSubSellerSubSellerNrState() { } /** - * Required for transactions performed by registered payment facilitators. The state code of the - * sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum - * length: 2 characters + * Required for transactions performed by registered payment facilitators. The state code of the sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum length: 2 characters * - * @param subMerchantSubSellerSubSellerNrState Required for transactions performed by registered - * payment facilitators. The state code of the sub-merchant's address, if applicable to - * the country. * Format: Alphanumeric * Maximum length: 2 characters + * @param subMerchantSubSellerSubSellerNrState Required for transactions performed by registered payment facilitators. The state code of the sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum length: 2 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -544,29 +403,19 @@ public void setSubMerchantSubSellerSubSellerNrState(String subMerchantSubSellerS } /** - * Required for transactions performed by registered payment facilitators. The street name and - * house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 - * characters + * Required for transactions performed by registered payment facilitators. The street name and house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 characters * - * @param subMerchantSubSellerSubSellerNrStreet Required for transactions performed by registered - * payment facilitators. The street name and house number of the sub-merchant's address. * - * Format: Alphanumeric * Maximum length: 60 characters + * @param subMerchantSubSellerSubSellerNrStreet Required for transactions performed by registered payment facilitators. The street name and house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 characters * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrStreet( - String subMerchantSubSellerSubSellerNrStreet) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrStreet(String subMerchantSubSellerSubSellerNrStreet) { this.subMerchantSubSellerSubSellerNrStreet = subMerchantSubSellerSubSellerNrStreet; return this; } /** - * Required for transactions performed by registered payment facilitators. The street name and - * house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 - * characters - * - * @return subMerchantSubSellerSubSellerNrStreet Required for transactions performed by registered - * payment facilitators. The street name and house number of the sub-merchant's address. * - * Format: Alphanumeric * Maximum length: 60 characters + * Required for transactions performed by registered payment facilitators. The street name and house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 characters + * @return subMerchantSubSellerSubSellerNrStreet Required for transactions performed by registered payment facilitators. The street name and house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -575,43 +424,30 @@ public String getSubMerchantSubSellerSubSellerNrStreet() { } /** - * Required for transactions performed by registered payment facilitators. The street name and - * house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 - * characters + * Required for transactions performed by registered payment facilitators. The street name and house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 characters * - * @param subMerchantSubSellerSubSellerNrStreet Required for transactions performed by registered - * payment facilitators. The street name and house number of the sub-merchant's address. * - * Format: Alphanumeric * Maximum length: 60 characters + * @param subMerchantSubSellerSubSellerNrStreet Required for transactions performed by registered payment facilitators. The street name and house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubMerchantSubSellerSubSellerNrStreet( - String subMerchantSubSellerSubSellerNrStreet) { + public void setSubMerchantSubSellerSubSellerNrStreet(String subMerchantSubSellerSubSellerNrStreet) { this.subMerchantSubSellerSubSellerNrStreet = subMerchantSubSellerSubSellerNrStreet; } /** - * Required for transactions performed by registered payment facilitators. The tax ID of the - * sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ * - * @param subMerchantSubSellerSubSellerNrTaxId Required for transactions performed by registered - * payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 - * digits for the CPF or 14 digits for the CNPJ + * @param subMerchantSubSellerSubSellerNrTaxId Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrTaxId( - String subMerchantSubSellerSubSellerNrTaxId) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrTaxId(String subMerchantSubSellerSubSellerNrTaxId) { this.subMerchantSubSellerSubSellerNrTaxId = subMerchantSubSellerSubSellerNrTaxId; return this; } /** - * Required for transactions performed by registered payment facilitators. The tax ID of the - * sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ - * - * @return subMerchantSubSellerSubSellerNrTaxId Required for transactions performed by registered - * payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 - * digits for the CPF or 14 digits for the CNPJ + * Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * @return subMerchantSubSellerSubSellerNrTaxId Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_TAX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -620,12 +456,9 @@ public String getSubMerchantSubSellerSubSellerNrTaxId() { } /** - * Required for transactions performed by registered payment facilitators. The tax ID of the - * sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ * - * @param subMerchantSubSellerSubSellerNrTaxId Required for transactions performed by registered - * payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 - * digits for the CPF or 14 digits for the CNPJ + * @param subMerchantSubSellerSubSellerNrTaxId Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_TAX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -633,7 +466,9 @@ public void setSubMerchantSubSellerSubSellerNrTaxId(String subMerchantSubSellerS this.subMerchantSubSellerSubSellerNrTaxId = subMerchantSubSellerSubSellerNrTaxId; } - /** Return true if this AdditionalDataSubMerchant object is equal to o. */ + /** + * Return true if this AdditionalDataSubMerchant object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -643,107 +478,48 @@ public boolean equals(Object o) { return false; } AdditionalDataSubMerchant additionalDataSubMerchant = (AdditionalDataSubMerchant) o; - return Objects.equals( - this.subMerchantNumberOfSubSellers, - additionalDataSubMerchant.subMerchantNumberOfSubSellers) - && Objects.equals( - this.subMerchantSubSellerSubSellerNrCity, - additionalDataSubMerchant.subMerchantSubSellerSubSellerNrCity) - && Objects.equals( - this.subMerchantSubSellerSubSellerNrCountry, - additionalDataSubMerchant.subMerchantSubSellerSubSellerNrCountry) - && Objects.equals( - this.subMerchantSubSellerSubSellerNrEmail, - additionalDataSubMerchant.subMerchantSubSellerSubSellerNrEmail) - && Objects.equals( - this.subMerchantSubSellerSubSellerNrId, - additionalDataSubMerchant.subMerchantSubSellerSubSellerNrId) - && Objects.equals( - this.subMerchantSubSellerSubSellerNrMcc, - additionalDataSubMerchant.subMerchantSubSellerSubSellerNrMcc) - && Objects.equals( - this.subMerchantSubSellerSubSellerNrName, - additionalDataSubMerchant.subMerchantSubSellerSubSellerNrName) - && Objects.equals( - this.subMerchantSubSellerSubSellerNrPhoneNumber, - additionalDataSubMerchant.subMerchantSubSellerSubSellerNrPhoneNumber) - && Objects.equals( - this.subMerchantSubSellerSubSellerNrPostalCode, - additionalDataSubMerchant.subMerchantSubSellerSubSellerNrPostalCode) - && Objects.equals( - this.subMerchantSubSellerSubSellerNrState, - additionalDataSubMerchant.subMerchantSubSellerSubSellerNrState) - && Objects.equals( - this.subMerchantSubSellerSubSellerNrStreet, - additionalDataSubMerchant.subMerchantSubSellerSubSellerNrStreet) - && Objects.equals( - this.subMerchantSubSellerSubSellerNrTaxId, - additionalDataSubMerchant.subMerchantSubSellerSubSellerNrTaxId); + return Objects.equals(this.subMerchantNumberOfSubSellers, additionalDataSubMerchant.subMerchantNumberOfSubSellers) && + Objects.equals(this.subMerchantSubSellerSubSellerNrCity, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrCity) && + Objects.equals(this.subMerchantSubSellerSubSellerNrCountry, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrCountry) && + Objects.equals(this.subMerchantSubSellerSubSellerNrEmail, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrEmail) && + Objects.equals(this.subMerchantSubSellerSubSellerNrId, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrId) && + Objects.equals(this.subMerchantSubSellerSubSellerNrMcc, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrMcc) && + Objects.equals(this.subMerchantSubSellerSubSellerNrName, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrName) && + Objects.equals(this.subMerchantSubSellerSubSellerNrPhoneNumber, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrPhoneNumber) && + Objects.equals(this.subMerchantSubSellerSubSellerNrPostalCode, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrPostalCode) && + Objects.equals(this.subMerchantSubSellerSubSellerNrState, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrState) && + Objects.equals(this.subMerchantSubSellerSubSellerNrStreet, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrStreet) && + Objects.equals(this.subMerchantSubSellerSubSellerNrTaxId, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrTaxId); } @Override public int hashCode() { - return Objects.hash( - subMerchantNumberOfSubSellers, - subMerchantSubSellerSubSellerNrCity, - subMerchantSubSellerSubSellerNrCountry, - subMerchantSubSellerSubSellerNrEmail, - subMerchantSubSellerSubSellerNrId, - subMerchantSubSellerSubSellerNrMcc, - subMerchantSubSellerSubSellerNrName, - subMerchantSubSellerSubSellerNrPhoneNumber, - subMerchantSubSellerSubSellerNrPostalCode, - subMerchantSubSellerSubSellerNrState, - subMerchantSubSellerSubSellerNrStreet, - subMerchantSubSellerSubSellerNrTaxId); + return Objects.hash(subMerchantNumberOfSubSellers, subMerchantSubSellerSubSellerNrCity, subMerchantSubSellerSubSellerNrCountry, subMerchantSubSellerSubSellerNrEmail, subMerchantSubSellerSubSellerNrId, subMerchantSubSellerSubSellerNrMcc, subMerchantSubSellerSubSellerNrName, subMerchantSubSellerSubSellerNrPhoneNumber, subMerchantSubSellerSubSellerNrPostalCode, subMerchantSubSellerSubSellerNrState, subMerchantSubSellerSubSellerNrStreet, subMerchantSubSellerSubSellerNrTaxId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataSubMerchant {\n"); - sb.append(" subMerchantNumberOfSubSellers: ") - .append(toIndentedString(subMerchantNumberOfSubSellers)) - .append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrCity: ") - .append(toIndentedString(subMerchantSubSellerSubSellerNrCity)) - .append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrCountry: ") - .append(toIndentedString(subMerchantSubSellerSubSellerNrCountry)) - .append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrEmail: ") - .append(toIndentedString(subMerchantSubSellerSubSellerNrEmail)) - .append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrId: ") - .append(toIndentedString(subMerchantSubSellerSubSellerNrId)) - .append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrMcc: ") - .append(toIndentedString(subMerchantSubSellerSubSellerNrMcc)) - .append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrName: ") - .append(toIndentedString(subMerchantSubSellerSubSellerNrName)) - .append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrPhoneNumber: ") - .append(toIndentedString(subMerchantSubSellerSubSellerNrPhoneNumber)) - .append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrPostalCode: ") - .append(toIndentedString(subMerchantSubSellerSubSellerNrPostalCode)) - .append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrState: ") - .append(toIndentedString(subMerchantSubSellerSubSellerNrState)) - .append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrStreet: ") - .append(toIndentedString(subMerchantSubSellerSubSellerNrStreet)) - .append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrTaxId: ") - .append(toIndentedString(subMerchantSubSellerSubSellerNrTaxId)) - .append("\n"); + sb.append(" subMerchantNumberOfSubSellers: ").append(toIndentedString(subMerchantNumberOfSubSellers)).append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrCity: ").append(toIndentedString(subMerchantSubSellerSubSellerNrCity)).append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrCountry: ").append(toIndentedString(subMerchantSubSellerSubSellerNrCountry)).append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrEmail: ").append(toIndentedString(subMerchantSubSellerSubSellerNrEmail)).append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrId: ").append(toIndentedString(subMerchantSubSellerSubSellerNrId)).append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrMcc: ").append(toIndentedString(subMerchantSubSellerSubSellerNrMcc)).append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrName: ").append(toIndentedString(subMerchantSubSellerSubSellerNrName)).append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrPhoneNumber: ").append(toIndentedString(subMerchantSubSellerSubSellerNrPhoneNumber)).append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrPostalCode: ").append(toIndentedString(subMerchantSubSellerSubSellerNrPostalCode)).append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrState: ").append(toIndentedString(subMerchantSubSellerSubSellerNrState)).append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrStreet: ").append(toIndentedString(subMerchantSubSellerSubSellerNrStreet)).append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrTaxId: ").append(toIndentedString(subMerchantSubSellerSubSellerNrTaxId)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -752,24 +528,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalDataSubMerchant given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataSubMerchant - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataSubMerchant + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataSubMerchant */ - public static AdditionalDataSubMerchant fromJson(String jsonString) - throws JsonProcessingException { + public static AdditionalDataSubMerchant fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataSubMerchant.class); } - - /** - * Convert an instance of AdditionalDataSubMerchant to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalDataSubMerchant to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataTemporaryServices.java b/src/main/java/com/adyen/model/payment/AdditionalDataTemporaryServices.java index edd7dda11..1b1c1534e 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataTemporaryServices.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataTemporaryServices.java @@ -2,22 +2,31 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AdditionalDataTemporaryServices */ + +/** + * AdditionalDataTemporaryServices + */ @JsonPropertyOrder({ AdditionalDataTemporaryServices.JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE, AdditionalDataTemporaryServices.JSON_PROPERTY_ENHANCED_SCHEME_DATA_EMPLOYEE_NAME, @@ -29,64 +38,52 @@ AdditionalDataTemporaryServices.JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_WEEK_ENDING, AdditionalDataTemporaryServices.JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT }) + public class AdditionalDataTemporaryServices { - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE = - "enhancedSchemeData.customerReference"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE = "enhancedSchemeData.customerReference"; private String enhancedSchemeDataCustomerReference; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_EMPLOYEE_NAME = - "enhancedSchemeData.employeeName"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_EMPLOYEE_NAME = "enhancedSchemeData.employeeName"; private String enhancedSchemeDataEmployeeName; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_JOB_DESCRIPTION = - "enhancedSchemeData.jobDescription"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_JOB_DESCRIPTION = "enhancedSchemeData.jobDescription"; private String enhancedSchemeDataJobDescription; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_REGULAR_HOURS_RATE = - "enhancedSchemeData.regularHoursRate"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_REGULAR_HOURS_RATE = "enhancedSchemeData.regularHoursRate"; private String enhancedSchemeDataRegularHoursRate; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_REGULAR_HOURS_WORKED = - "enhancedSchemeData.regularHoursWorked"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_REGULAR_HOURS_WORKED = "enhancedSchemeData.regularHoursWorked"; private String enhancedSchemeDataRegularHoursWorked; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_REQUEST_NAME = - "enhancedSchemeData.requestName"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_REQUEST_NAME = "enhancedSchemeData.requestName"; private String enhancedSchemeDataRequestName; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_START_DATE = - "enhancedSchemeData.tempStartDate"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_START_DATE = "enhancedSchemeData.tempStartDate"; private String enhancedSchemeDataTempStartDate; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_WEEK_ENDING = - "enhancedSchemeData.tempWeekEnding"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_WEEK_ENDING = "enhancedSchemeData.tempWeekEnding"; private String enhancedSchemeDataTempWeekEnding; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT = - "enhancedSchemeData.totalTaxAmount"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT = "enhancedSchemeData.totalTaxAmount"; private String enhancedSchemeDataTotalTaxAmount; - public AdditionalDataTemporaryServices() {} + public AdditionalDataTemporaryServices() { + } /** * The customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 * - * @param enhancedSchemeDataCustomerReference The customer code, if supplied by a customer. * - * Encoding: ASCII * maxLength: 25 - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method - * chaining + * @param enhancedSchemeDataCustomerReference The customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataCustomerReference( - String enhancedSchemeDataCustomerReference) { + public AdditionalDataTemporaryServices enhancedSchemeDataCustomerReference(String enhancedSchemeDataCustomerReference) { this.enhancedSchemeDataCustomerReference = enhancedSchemeDataCustomerReference; return this; } /** * The customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 - * - * @return enhancedSchemeDataCustomerReference The customer code, if supplied by a customer. * - * Encoding: ASCII * maxLength: 25 + * @return enhancedSchemeDataCustomerReference The customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,8 +94,7 @@ public String getEnhancedSchemeDataCustomerReference() { /** * The customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 * - * @param enhancedSchemeDataCustomerReference The customer code, if supplied by a customer. * - * Encoding: ASCII * maxLength: 25 + * @param enhancedSchemeDataCustomerReference The customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,26 +103,19 @@ public void setEnhancedSchemeDataCustomerReference(String enhancedSchemeDataCust } /** - * The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be - * all spaces. *Must not be all zeros. + * The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. * - * @param enhancedSchemeDataEmployeeName The name or ID of the person working in a temporary - * capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method - * chaining + * @param enhancedSchemeDataEmployeeName The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataEmployeeName( - String enhancedSchemeDataEmployeeName) { + public AdditionalDataTemporaryServices enhancedSchemeDataEmployeeName(String enhancedSchemeDataEmployeeName) { this.enhancedSchemeDataEmployeeName = enhancedSchemeDataEmployeeName; return this; } /** - * The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be - * all spaces. *Must not be all zeros. - * - * @return enhancedSchemeDataEmployeeName The name or ID of the person working in a temporary - * capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. + * The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. + * @return enhancedSchemeDataEmployeeName The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_EMPLOYEE_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,11 +124,9 @@ public String getEnhancedSchemeDataEmployeeName() { } /** - * The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be - * all spaces. *Must not be all zeros. + * The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. * - * @param enhancedSchemeDataEmployeeName The name or ID of the person working in a temporary - * capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. + * @param enhancedSchemeDataEmployeeName The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_EMPLOYEE_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,26 +135,19 @@ public void setEnhancedSchemeDataEmployeeName(String enhancedSchemeDataEmployeeN } /** - * The job description of the person working in a temporary capacity. * maxLength: 40 * Must not - * be all spaces. *Must not be all zeros. + * The job description of the person working in a temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. * - * @param enhancedSchemeDataJobDescription The job description of the person working in a - * temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method - * chaining + * @param enhancedSchemeDataJobDescription The job description of the person working in a temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataJobDescription( - String enhancedSchemeDataJobDescription) { + public AdditionalDataTemporaryServices enhancedSchemeDataJobDescription(String enhancedSchemeDataJobDescription) { this.enhancedSchemeDataJobDescription = enhancedSchemeDataJobDescription; return this; } /** - * The job description of the person working in a temporary capacity. * maxLength: 40 * Must not - * be all spaces. *Must not be all zeros. - * - * @return enhancedSchemeDataJobDescription The job description of the person working in a - * temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. + * The job description of the person working in a temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. + * @return enhancedSchemeDataJobDescription The job description of the person working in a temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_JOB_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,11 +156,9 @@ public String getEnhancedSchemeDataJobDescription() { } /** - * The job description of the person working in a temporary capacity. * maxLength: 40 * Must not - * be all spaces. *Must not be all zeros. + * The job description of the person working in a temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. * - * @param enhancedSchemeDataJobDescription The job description of the person working in a - * temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. + * @param enhancedSchemeDataJobDescription The job description of the person working in a temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_JOB_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,30 +167,19 @@ public void setEnhancedSchemeDataJobDescription(String enhancedSchemeDataJobDesc } /** - * The amount paid for regular hours worked, [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not - * be empty * Can be all zeros + * The amount paid for regular hours worked, [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not be empty * Can be all zeros * - * @param enhancedSchemeDataRegularHoursRate The amount paid for regular hours worked, [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must - * not be empty * Can be all zeros - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method - * chaining + * @param enhancedSchemeDataRegularHoursRate The amount paid for regular hours worked, [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not be empty * Can be all zeros + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataRegularHoursRate( - String enhancedSchemeDataRegularHoursRate) { + public AdditionalDataTemporaryServices enhancedSchemeDataRegularHoursRate(String enhancedSchemeDataRegularHoursRate) { this.enhancedSchemeDataRegularHoursRate = enhancedSchemeDataRegularHoursRate; return this; } /** - * The amount paid for regular hours worked, [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not - * be empty * Can be all zeros - * - * @return enhancedSchemeDataRegularHoursRate The amount paid for regular hours worked, [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must - * not be empty * Can be all zeros + * The amount paid for regular hours worked, [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not be empty * Can be all zeros + * @return enhancedSchemeDataRegularHoursRate The amount paid for regular hours worked, [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not be empty * Can be all zeros */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_REGULAR_HOURS_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,13 +188,9 @@ public String getEnhancedSchemeDataRegularHoursRate() { } /** - * The amount paid for regular hours worked, [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not - * be empty * Can be all zeros + * The amount paid for regular hours worked, [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not be empty * Can be all zeros * - * @param enhancedSchemeDataRegularHoursRate The amount paid for regular hours worked, [minor - * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must - * not be empty * Can be all zeros + * @param enhancedSchemeDataRegularHoursRate The amount paid for regular hours worked, [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not be empty * Can be all zeros */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_REGULAR_HOURS_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -238,22 +201,17 @@ public void setEnhancedSchemeDataRegularHoursRate(String enhancedSchemeDataRegul /** * The hours worked. * maxLength: 7 * Must not be empty * Can be all zeros * - * @param enhancedSchemeDataRegularHoursWorked The hours worked. * maxLength: 7 * Must not be - * empty * Can be all zeros - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method - * chaining + * @param enhancedSchemeDataRegularHoursWorked The hours worked. * maxLength: 7 * Must not be empty * Can be all zeros + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataRegularHoursWorked( - String enhancedSchemeDataRegularHoursWorked) { + public AdditionalDataTemporaryServices enhancedSchemeDataRegularHoursWorked(String enhancedSchemeDataRegularHoursWorked) { this.enhancedSchemeDataRegularHoursWorked = enhancedSchemeDataRegularHoursWorked; return this; } /** * The hours worked. * maxLength: 7 * Must not be empty * Can be all zeros - * - * @return enhancedSchemeDataRegularHoursWorked The hours worked. * maxLength: 7 * Must not be - * empty * Can be all zeros + * @return enhancedSchemeDataRegularHoursWorked The hours worked. * maxLength: 7 * Must not be empty * Can be all zeros */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_REGULAR_HOURS_WORKED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -264,8 +222,7 @@ public String getEnhancedSchemeDataRegularHoursWorked() { /** * The hours worked. * maxLength: 7 * Must not be empty * Can be all zeros * - * @param enhancedSchemeDataRegularHoursWorked The hours worked. * maxLength: 7 * Must not be - * empty * Can be all zeros + * @param enhancedSchemeDataRegularHoursWorked The hours worked. * maxLength: 7 * Must not be empty * Can be all zeros */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_REGULAR_HOURS_WORKED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -274,26 +231,19 @@ public void setEnhancedSchemeDataRegularHoursWorked(String enhancedSchemeDataReg } /** - * The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * - * Must not be all spaces + * The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * Must not be all spaces * - * @param enhancedSchemeDataRequestName The name of the person requesting temporary services. * - * maxLength: 40 * Must not be all zeros * Must not be all spaces - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method - * chaining + * @param enhancedSchemeDataRequestName The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * Must not be all spaces + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataRequestName( - String enhancedSchemeDataRequestName) { + public AdditionalDataTemporaryServices enhancedSchemeDataRequestName(String enhancedSchemeDataRequestName) { this.enhancedSchemeDataRequestName = enhancedSchemeDataRequestName; return this; } /** - * The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * - * Must not be all spaces - * - * @return enhancedSchemeDataRequestName The name of the person requesting temporary services. * - * maxLength: 40 * Must not be all zeros * Must not be all spaces + * The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * Must not be all spaces + * @return enhancedSchemeDataRequestName The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * Must not be all spaces */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_REQUEST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -302,11 +252,9 @@ public String getEnhancedSchemeDataRequestName() { } /** - * The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * - * Must not be all spaces + * The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * Must not be all spaces * - * @param enhancedSchemeDataRequestName The name of the person requesting temporary services. * - * maxLength: 40 * Must not be all zeros * Must not be all spaces + * @param enhancedSchemeDataRequestName The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * Must not be all spaces */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_REQUEST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -317,22 +265,17 @@ public void setEnhancedSchemeDataRequestName(String enhancedSchemeDataRequestNam /** * The billing period start date. * Format: ddMMyy * maxLength: 6 * - * @param enhancedSchemeDataTempStartDate The billing period start date. * Format: ddMMyy * - * maxLength: 6 - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method - * chaining + * @param enhancedSchemeDataTempStartDate The billing period start date. * Format: ddMMyy * maxLength: 6 + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataTempStartDate( - String enhancedSchemeDataTempStartDate) { + public AdditionalDataTemporaryServices enhancedSchemeDataTempStartDate(String enhancedSchemeDataTempStartDate) { this.enhancedSchemeDataTempStartDate = enhancedSchemeDataTempStartDate; return this; } /** * The billing period start date. * Format: ddMMyy * maxLength: 6 - * - * @return enhancedSchemeDataTempStartDate The billing period start date. * Format: ddMMyy * - * maxLength: 6 + * @return enhancedSchemeDataTempStartDate The billing period start date. * Format: ddMMyy * maxLength: 6 */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_START_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -343,8 +286,7 @@ public String getEnhancedSchemeDataTempStartDate() { /** * The billing period start date. * Format: ddMMyy * maxLength: 6 * - * @param enhancedSchemeDataTempStartDate The billing period start date. * Format: ddMMyy * - * maxLength: 6 + * @param enhancedSchemeDataTempStartDate The billing period start date. * Format: ddMMyy * maxLength: 6 */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_START_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -355,22 +297,17 @@ public void setEnhancedSchemeDataTempStartDate(String enhancedSchemeDataTempStar /** * The billing period end date. * Format: ddMMyy * maxLength: 6 * - * @param enhancedSchemeDataTempWeekEnding The billing period end date. * Format: ddMMyy * - * maxLength: 6 - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method - * chaining + * @param enhancedSchemeDataTempWeekEnding The billing period end date. * Format: ddMMyy * maxLength: 6 + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataTempWeekEnding( - String enhancedSchemeDataTempWeekEnding) { + public AdditionalDataTemporaryServices enhancedSchemeDataTempWeekEnding(String enhancedSchemeDataTempWeekEnding) { this.enhancedSchemeDataTempWeekEnding = enhancedSchemeDataTempWeekEnding; return this; } /** * The billing period end date. * Format: ddMMyy * maxLength: 6 - * - * @return enhancedSchemeDataTempWeekEnding The billing period end date. * Format: ddMMyy * - * maxLength: 6 + * @return enhancedSchemeDataTempWeekEnding The billing period end date. * Format: ddMMyy * maxLength: 6 */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_WEEK_ENDING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -381,8 +318,7 @@ public String getEnhancedSchemeDataTempWeekEnding() { /** * The billing period end date. * Format: ddMMyy * maxLength: 6 * - * @param enhancedSchemeDataTempWeekEnding The billing period end date. * Format: ddMMyy * - * maxLength: 6 + * @param enhancedSchemeDataTempWeekEnding The billing period end date. * Format: ddMMyy * maxLength: 6 */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_WEEK_ENDING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -391,30 +327,19 @@ public void setEnhancedSchemeDataTempWeekEnding(String enhancedSchemeDataTempWee } /** - * The total tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means - * USD 20.00 * maxLength: 12 + * The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00 * maxLength: 12 * - * @param enhancedSchemeDataTotalTaxAmount The total tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 - * means USD 20.00 * maxLength: 12 - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method - * chaining + * @param enhancedSchemeDataTotalTaxAmount The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00 * maxLength: 12 + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataTotalTaxAmount( - String enhancedSchemeDataTotalTaxAmount) { + public AdditionalDataTemporaryServices enhancedSchemeDataTotalTaxAmount(String enhancedSchemeDataTotalTaxAmount) { this.enhancedSchemeDataTotalTaxAmount = enhancedSchemeDataTotalTaxAmount; return this; } /** - * The total tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means - * USD 20.00 * maxLength: 12 - * - * @return enhancedSchemeDataTotalTaxAmount The total tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 - * means USD 20.00 * maxLength: 12 + * The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00 * maxLength: 12 + * @return enhancedSchemeDataTotalTaxAmount The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00 * maxLength: 12 */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -423,13 +348,9 @@ public String getEnhancedSchemeDataTotalTaxAmount() { } /** - * The total tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means - * USD 20.00 * maxLength: 12 + * The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00 * maxLength: 12 * - * @param enhancedSchemeDataTotalTaxAmount The total tax amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 - * means USD 20.00 * maxLength: 12 + * @param enhancedSchemeDataTotalTaxAmount The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00 * maxLength: 12 */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -437,7 +358,9 @@ public void setEnhancedSchemeDataTotalTaxAmount(String enhancedSchemeDataTotalTa this.enhancedSchemeDataTotalTaxAmount = enhancedSchemeDataTotalTaxAmount; } - /** Return true if this AdditionalDataTemporaryServices object is equal to o. */ + /** + * Return true if this AdditionalDataTemporaryServices object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -446,88 +369,43 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AdditionalDataTemporaryServices additionalDataTemporaryServices = - (AdditionalDataTemporaryServices) o; - return Objects.equals( - this.enhancedSchemeDataCustomerReference, - additionalDataTemporaryServices.enhancedSchemeDataCustomerReference) - && Objects.equals( - this.enhancedSchemeDataEmployeeName, - additionalDataTemporaryServices.enhancedSchemeDataEmployeeName) - && Objects.equals( - this.enhancedSchemeDataJobDescription, - additionalDataTemporaryServices.enhancedSchemeDataJobDescription) - && Objects.equals( - this.enhancedSchemeDataRegularHoursRate, - additionalDataTemporaryServices.enhancedSchemeDataRegularHoursRate) - && Objects.equals( - this.enhancedSchemeDataRegularHoursWorked, - additionalDataTemporaryServices.enhancedSchemeDataRegularHoursWorked) - && Objects.equals( - this.enhancedSchemeDataRequestName, - additionalDataTemporaryServices.enhancedSchemeDataRequestName) - && Objects.equals( - this.enhancedSchemeDataTempStartDate, - additionalDataTemporaryServices.enhancedSchemeDataTempStartDate) - && Objects.equals( - this.enhancedSchemeDataTempWeekEnding, - additionalDataTemporaryServices.enhancedSchemeDataTempWeekEnding) - && Objects.equals( - this.enhancedSchemeDataTotalTaxAmount, - additionalDataTemporaryServices.enhancedSchemeDataTotalTaxAmount); + AdditionalDataTemporaryServices additionalDataTemporaryServices = (AdditionalDataTemporaryServices) o; + return Objects.equals(this.enhancedSchemeDataCustomerReference, additionalDataTemporaryServices.enhancedSchemeDataCustomerReference) && + Objects.equals(this.enhancedSchemeDataEmployeeName, additionalDataTemporaryServices.enhancedSchemeDataEmployeeName) && + Objects.equals(this.enhancedSchemeDataJobDescription, additionalDataTemporaryServices.enhancedSchemeDataJobDescription) && + Objects.equals(this.enhancedSchemeDataRegularHoursRate, additionalDataTemporaryServices.enhancedSchemeDataRegularHoursRate) && + Objects.equals(this.enhancedSchemeDataRegularHoursWorked, additionalDataTemporaryServices.enhancedSchemeDataRegularHoursWorked) && + Objects.equals(this.enhancedSchemeDataRequestName, additionalDataTemporaryServices.enhancedSchemeDataRequestName) && + Objects.equals(this.enhancedSchemeDataTempStartDate, additionalDataTemporaryServices.enhancedSchemeDataTempStartDate) && + Objects.equals(this.enhancedSchemeDataTempWeekEnding, additionalDataTemporaryServices.enhancedSchemeDataTempWeekEnding) && + Objects.equals(this.enhancedSchemeDataTotalTaxAmount, additionalDataTemporaryServices.enhancedSchemeDataTotalTaxAmount); } @Override public int hashCode() { - return Objects.hash( - enhancedSchemeDataCustomerReference, - enhancedSchemeDataEmployeeName, - enhancedSchemeDataJobDescription, - enhancedSchemeDataRegularHoursRate, - enhancedSchemeDataRegularHoursWorked, - enhancedSchemeDataRequestName, - enhancedSchemeDataTempStartDate, - enhancedSchemeDataTempWeekEnding, - enhancedSchemeDataTotalTaxAmount); + return Objects.hash(enhancedSchemeDataCustomerReference, enhancedSchemeDataEmployeeName, enhancedSchemeDataJobDescription, enhancedSchemeDataRegularHoursRate, enhancedSchemeDataRegularHoursWorked, enhancedSchemeDataRequestName, enhancedSchemeDataTempStartDate, enhancedSchemeDataTempWeekEnding, enhancedSchemeDataTotalTaxAmount); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataTemporaryServices {\n"); - sb.append(" enhancedSchemeDataCustomerReference: ") - .append(toIndentedString(enhancedSchemeDataCustomerReference)) - .append("\n"); - sb.append(" enhancedSchemeDataEmployeeName: ") - .append(toIndentedString(enhancedSchemeDataEmployeeName)) - .append("\n"); - sb.append(" enhancedSchemeDataJobDescription: ") - .append(toIndentedString(enhancedSchemeDataJobDescription)) - .append("\n"); - sb.append(" enhancedSchemeDataRegularHoursRate: ") - .append(toIndentedString(enhancedSchemeDataRegularHoursRate)) - .append("\n"); - sb.append(" enhancedSchemeDataRegularHoursWorked: ") - .append(toIndentedString(enhancedSchemeDataRegularHoursWorked)) - .append("\n"); - sb.append(" enhancedSchemeDataRequestName: ") - .append(toIndentedString(enhancedSchemeDataRequestName)) - .append("\n"); - sb.append(" enhancedSchemeDataTempStartDate: ") - .append(toIndentedString(enhancedSchemeDataTempStartDate)) - .append("\n"); - sb.append(" enhancedSchemeDataTempWeekEnding: ") - .append(toIndentedString(enhancedSchemeDataTempWeekEnding)) - .append("\n"); - sb.append(" enhancedSchemeDataTotalTaxAmount: ") - .append(toIndentedString(enhancedSchemeDataTotalTaxAmount)) - .append("\n"); + sb.append(" enhancedSchemeDataCustomerReference: ").append(toIndentedString(enhancedSchemeDataCustomerReference)).append("\n"); + sb.append(" enhancedSchemeDataEmployeeName: ").append(toIndentedString(enhancedSchemeDataEmployeeName)).append("\n"); + sb.append(" enhancedSchemeDataJobDescription: ").append(toIndentedString(enhancedSchemeDataJobDescription)).append("\n"); + sb.append(" enhancedSchemeDataRegularHoursRate: ").append(toIndentedString(enhancedSchemeDataRegularHoursRate)).append("\n"); + sb.append(" enhancedSchemeDataRegularHoursWorked: ").append(toIndentedString(enhancedSchemeDataRegularHoursWorked)).append("\n"); + sb.append(" enhancedSchemeDataRequestName: ").append(toIndentedString(enhancedSchemeDataRequestName)).append("\n"); + sb.append(" enhancedSchemeDataTempStartDate: ").append(toIndentedString(enhancedSchemeDataTempStartDate)).append("\n"); + sb.append(" enhancedSchemeDataTempWeekEnding: ").append(toIndentedString(enhancedSchemeDataTempWeekEnding)).append("\n"); + sb.append(" enhancedSchemeDataTotalTaxAmount: ").append(toIndentedString(enhancedSchemeDataTotalTaxAmount)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -536,24 +414,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalDataTemporaryServices given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataTemporaryServices - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataTemporaryServices + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataTemporaryServices */ - public static AdditionalDataTemporaryServices fromJson(String jsonString) - throws JsonProcessingException { + public static AdditionalDataTemporaryServices fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataTemporaryServices.class); } - - /** - * Convert an instance of AdditionalDataTemporaryServices to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalDataTemporaryServices to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataWallets.java b/src/main/java/com/adyen/model/payment/AdditionalDataWallets.java index cee8c6606..2154946bb 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataWallets.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataWallets.java @@ -2,22 +2,31 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AdditionalDataWallets */ + +/** + * AdditionalDataWallets + */ @JsonPropertyOrder({ AdditionalDataWallets.JSON_PROPERTY_ANDROIDPAY_TOKEN, AdditionalDataWallets.JSON_PROPERTY_MASTERPASS_TRANSACTION_ID, @@ -26,6 +35,7 @@ AdditionalDataWallets.JSON_PROPERTY_SAMSUNGPAY_TOKEN, AdditionalDataWallets.JSON_PROPERTY_VISACHECKOUT_CALL_ID }) + public class AdditionalDataWallets { public static final String JSON_PROPERTY_ANDROIDPAY_TOKEN = "androidpay.token"; private String androidpayToken; @@ -45,7 +55,8 @@ public class AdditionalDataWallets { public static final String JSON_PROPERTY_VISACHECKOUT_CALL_ID = "visacheckout.callId"; private String visacheckoutCallId; - public AdditionalDataWallets() {} + public AdditionalDataWallets() { + } /** * The Android Pay token retrieved from the SDK. @@ -60,7 +71,6 @@ public AdditionalDataWallets androidpayToken(String androidpayToken) { /** * The Android Pay token retrieved from the SDK. - * * @return androidpayToken The Android Pay token retrieved from the SDK. */ @JsonProperty(JSON_PROPERTY_ANDROIDPAY_TOKEN) @@ -93,9 +103,7 @@ public AdditionalDataWallets masterpassTransactionId(String masterpassTransactio /** * The Mastercard Masterpass Transaction ID retrieved from the SDK. - * - * @return masterpassTransactionId The Mastercard Masterpass Transaction ID retrieved from the - * SDK. + * @return masterpassTransactionId The Mastercard Masterpass Transaction ID retrieved from the SDK. */ @JsonProperty(JSON_PROPERTY_MASTERPASS_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,7 +135,6 @@ public AdditionalDataWallets paymentToken(String paymentToken) { /** * The Apple Pay token retrieved from the SDK. - * * @return paymentToken The Apple Pay token retrieved from the SDK. */ @JsonProperty(JSON_PROPERTY_PAYMENT_TOKEN) @@ -160,7 +167,6 @@ public AdditionalDataWallets paywithgoogleToken(String paywithgoogleToken) { /** * The Google Pay token retrieved from the SDK. - * * @return paywithgoogleToken The Google Pay token retrieved from the SDK. */ @JsonProperty(JSON_PROPERTY_PAYWITHGOOGLE_TOKEN) @@ -193,7 +199,6 @@ public AdditionalDataWallets samsungpayToken(String samsungpayToken) { /** * The Samsung Pay token retrieved from the SDK. - * * @return samsungpayToken The Samsung Pay token retrieved from the SDK. */ @JsonProperty(JSON_PROPERTY_SAMSUNGPAY_TOKEN) @@ -226,7 +231,6 @@ public AdditionalDataWallets visacheckoutCallId(String visacheckoutCallId) { /** * The Visa Checkout Call ID retrieved from the SDK. - * * @return visacheckoutCallId The Visa Checkout Call ID retrieved from the SDK. */ @JsonProperty(JSON_PROPERTY_VISACHECKOUT_CALL_ID) @@ -246,7 +250,9 @@ public void setVisacheckoutCallId(String visacheckoutCallId) { this.visacheckoutCallId = visacheckoutCallId; } - /** Return true if this AdditionalDataWallets object is equal to o. */ + /** + * Return true if this AdditionalDataWallets object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -256,24 +262,17 @@ public boolean equals(Object o) { return false; } AdditionalDataWallets additionalDataWallets = (AdditionalDataWallets) o; - return Objects.equals(this.androidpayToken, additionalDataWallets.androidpayToken) - && Objects.equals( - this.masterpassTransactionId, additionalDataWallets.masterpassTransactionId) - && Objects.equals(this.paymentToken, additionalDataWallets.paymentToken) - && Objects.equals(this.paywithgoogleToken, additionalDataWallets.paywithgoogleToken) - && Objects.equals(this.samsungpayToken, additionalDataWallets.samsungpayToken) - && Objects.equals(this.visacheckoutCallId, additionalDataWallets.visacheckoutCallId); + return Objects.equals(this.androidpayToken, additionalDataWallets.androidpayToken) && + Objects.equals(this.masterpassTransactionId, additionalDataWallets.masterpassTransactionId) && + Objects.equals(this.paymentToken, additionalDataWallets.paymentToken) && + Objects.equals(this.paywithgoogleToken, additionalDataWallets.paywithgoogleToken) && + Objects.equals(this.samsungpayToken, additionalDataWallets.samsungpayToken) && + Objects.equals(this.visacheckoutCallId, additionalDataWallets.visacheckoutCallId); } @Override public int hashCode() { - return Objects.hash( - androidpayToken, - masterpassTransactionId, - paymentToken, - paywithgoogleToken, - samsungpayToken, - visacheckoutCallId); + return Objects.hash(androidpayToken, masterpassTransactionId, paymentToken, paywithgoogleToken, samsungpayToken, visacheckoutCallId); } @Override @@ -281,9 +280,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataWallets {\n"); sb.append(" androidpayToken: ").append(toIndentedString(androidpayToken)).append("\n"); - sb.append(" masterpassTransactionId: ") - .append(toIndentedString(masterpassTransactionId)) - .append("\n"); + sb.append(" masterpassTransactionId: ").append(toIndentedString(masterpassTransactionId)).append("\n"); sb.append(" paymentToken: ").append(toIndentedString(paymentToken)).append("\n"); sb.append(" paywithgoogleToken: ").append(toIndentedString(paywithgoogleToken)).append("\n"); sb.append(" samsungpayToken: ").append(toIndentedString(samsungpayToken)).append("\n"); @@ -293,7 +290,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -302,23 +300,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalDataWallets given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataWallets - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataWallets + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataWallets */ public static AdditionalDataWallets fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataWallets.class); } - - /** - * Convert an instance of AdditionalDataWallets to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalDataWallets to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/Address.java b/src/main/java/com/adyen/model/payment/Address.java index 3bbf60562..85311fac3 100644 --- a/src/main/java/com/adyen/model/payment/Address.java +++ b/src/main/java/com/adyen/model/payment/Address.java @@ -2,22 +2,31 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Address */ + +/** + * Address + */ @JsonPropertyOrder({ Address.JSON_PROPERTY_CITY, Address.JSON_PROPERTY_COUNTRY, @@ -26,6 +35,7 @@ Address.JSON_PROPERTY_STATE_OR_PROVINCE, Address.JSON_PROPERTY_STREET }) + public class Address { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -45,7 +55,8 @@ public class Address { public static final String JSON_PROPERTY_STREET = "street"; private String street; - public Address() {} + public Address() { + } /** * The name of the city. Maximum length: 3000 characters. @@ -60,7 +71,6 @@ public Address city(String city) { /** * The name of the city. Maximum length: 3000 characters. - * * @return city The name of the city. Maximum length: 3000 characters. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -81,13 +91,9 @@ public void setCity(String city) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't - * know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If - * you don't know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. * @return the current {@code Address} instance, allowing for method chaining */ public Address country(String country) { @@ -96,13 +102,8 @@ public Address country(String country) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't - * know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. - * - * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If - * you don't know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,13 +112,9 @@ public String getCountry() { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't - * know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If - * you don't know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,7 +135,6 @@ public Address houseNumberOrName(String houseNumberOrName) { /** * The number or name of the house. Maximum length: 3000 characters. - * * @return houseNumberOrName The number or name of the house. Maximum length: 3000 characters. */ @JsonProperty(JSON_PROPERTY_HOUSE_NUMBER_OR_NAME) @@ -159,11 +155,9 @@ public void setHouseNumberOrName(String houseNumberOrName) { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an - * address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. * - * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten - * characters for an address in all other countries. + * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. * @return the current {@code Address} instance, allowing for method chaining */ public Address postalCode(String postalCode) { @@ -172,11 +166,8 @@ public Address postalCode(String postalCode) { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an - * address in all other countries. - * - * @return postalCode A maximum of five digits for an address in the US, or a maximum of ten - * characters for an address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * @return postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,11 +176,9 @@ public String getPostalCode() { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an - * address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. * - * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten - * characters for an address in all other countries. + * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,11 +187,9 @@ public void setPostalCode(String postalCode) { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** - * in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. * @return the current {@code Address} instance, allowing for method chaining */ public Address stateOrProvince(String stateOrProvince) { @@ -211,11 +198,8 @@ public Address stateOrProvince(String stateOrProvince) { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. - * - * @return stateOrProvince The two-character ISO 3166-2 state or province code. For example, - * **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * @return stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,11 +208,9 @@ public String getStateOrProvince() { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** - * in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,12 +219,9 @@ public void setStateOrProvince(String stateOrProvince) { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be - * included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. * - * @param street The name of the street. Maximum length: 3000 characters. > The house number - * should not be included in this field; it should be separately provided via - * `houseNumberOrName`. + * @param street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. * @return the current {@code Address} instance, allowing for method chaining */ public Address street(String street) { @@ -251,12 +230,8 @@ public Address street(String street) { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be - * included in this field; it should be separately provided via `houseNumberOrName`. - * - * @return street The name of the street. Maximum length: 3000 characters. > The house number - * should not be included in this field; it should be separately provided via - * `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * @return street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -265,12 +240,9 @@ public String getStreet() { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be - * included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. * - * @param street The name of the street. Maximum length: 3000 characters. > The house number - * should not be included in this field; it should be separately provided via - * `houseNumberOrName`. + * @param street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -278,7 +250,9 @@ public void setStreet(String street) { this.street = street; } - /** Return true if this Address object is equal to o. */ + /** + * Return true if this Address object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -288,12 +262,12 @@ public boolean equals(Object o) { return false; } Address address = (Address) o; - return Objects.equals(this.city, address.city) - && Objects.equals(this.country, address.country) - && Objects.equals(this.houseNumberOrName, address.houseNumberOrName) - && Objects.equals(this.postalCode, address.postalCode) - && Objects.equals(this.stateOrProvince, address.stateOrProvince) - && Objects.equals(this.street, address.street); + return Objects.equals(this.city, address.city) && + Objects.equals(this.country, address.country) && + Objects.equals(this.houseNumberOrName, address.houseNumberOrName) && + Objects.equals(this.postalCode, address.postalCode) && + Objects.equals(this.stateOrProvince, address.stateOrProvince) && + Objects.equals(this.street, address.street); } @Override @@ -316,7 +290,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -325,7 +300,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Address given an JSON string * * @param jsonString JSON string @@ -335,12 +310,11 @@ private String toIndentedString(Object o) { public static Address fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Address.class); } - - /** - * Convert an instance of Address to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Address to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdjustAuthorisationRequest.java b/src/main/java/com/adyen/model/payment/AdjustAuthorisationRequest.java index 3675c8279..b47e720e2 100644 --- a/src/main/java/com/adyen/model/payment/AdjustAuthorisationRequest.java +++ b/src/main/java/com/adyen/model/payment/AdjustAuthorisationRequest.java @@ -2,26 +2,39 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.payment.Amount; +import com.adyen.model.payment.PlatformChargebackLogic; +import com.adyen.model.payment.Split; +import com.adyen.model.payment.ThreeDSecureData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** AdjustAuthorisationRequest */ + +/** + * AdjustAuthorisationRequest + */ @JsonPropertyOrder({ AdjustAuthorisationRequest.JSON_PROPERTY_ADDITIONAL_DATA, AdjustAuthorisationRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, @@ -35,6 +48,7 @@ AdjustAuthorisationRequest.JSON_PROPERTY_TENDER_REFERENCE, AdjustAuthorisationRequest.JSON_PROPERTY_UNIQUE_TERMINAL_ID }) + public class AdjustAuthorisationRequest { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -48,8 +62,7 @@ public class AdjustAuthorisationRequest { public static final String JSON_PROPERTY_MPI_DATA = "mpiData"; private ThreeDSecureData mpiData; - public static final String JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE = - "originalMerchantReference"; + public static final String JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE = "originalMerchantReference"; private String originalMerchantReference; public static final String JSON_PROPERTY_ORIGINAL_REFERENCE = "originalReference"; @@ -70,16 +83,13 @@ public class AdjustAuthorisationRequest { public static final String JSON_PROPERTY_UNIQUE_TERMINAL_ID = "uniqueTerminalId"; private String uniqueTerminalId; - public AdjustAuthorisationRequest() {} + public AdjustAuthorisationRequest() { + } /** - * This field contains additional data, which may be required for a particular modification - * request. The additionalData object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular modification request. The additionalData object consists of entries, each of - * which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. * @return the current {@code AdjustAuthorisationRequest} instance, allowing for method chaining */ public AdjustAuthorisationRequest additionalData(Map additionalData) { @@ -96,13 +106,8 @@ public AdjustAuthorisationRequest putAdditionalDataItem(String key, String addit } /** - * This field contains additional data, which may be required for a particular modification - * request. The additionalData object consists of entries, each of which includes the key and - * value. - * - * @return additionalData This field contains additional data, which may be required for a - * particular modification request. The additionalData object consists of entries, each of - * which includes the key and value. + * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * @return additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,13 +116,9 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular modification - * request. The additionalData object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular modification request. The additionalData object consists of entries, each of - * which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,7 +139,6 @@ public AdjustAuthorisationRequest merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. - * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -161,7 +161,7 @@ public void setMerchantAccount(String merchantAccount) { /** * modificationAmount * - * @param modificationAmount + * @param modificationAmount * @return the current {@code AdjustAuthorisationRequest} instance, allowing for method chaining */ public AdjustAuthorisationRequest modificationAmount(Amount modificationAmount) { @@ -171,8 +171,7 @@ public AdjustAuthorisationRequest modificationAmount(Amount modificationAmount) /** * Get modificationAmount - * - * @return modificationAmount + * @return modificationAmount */ @JsonProperty(JSON_PROPERTY_MODIFICATION_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,7 +182,7 @@ public Amount getModificationAmount() { /** * modificationAmount * - * @param modificationAmount + * @param modificationAmount */ @JsonProperty(JSON_PROPERTY_MODIFICATION_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,7 +193,7 @@ public void setModificationAmount(Amount modificationAmount) { /** * mpiData * - * @param mpiData + * @param mpiData * @return the current {@code AdjustAuthorisationRequest} instance, allowing for method chaining */ public AdjustAuthorisationRequest mpiData(ThreeDSecureData mpiData) { @@ -204,8 +203,7 @@ public AdjustAuthorisationRequest mpiData(ThreeDSecureData mpiData) { /** * Get mpiData - * - * @return mpiData + * @return mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -216,7 +214,7 @@ public ThreeDSecureData getMpiData() { /** * mpiData * - * @param mpiData + * @param mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,7 +235,6 @@ public AdjustAuthorisationRequest originalMerchantReference(String originalMerch /** * The original merchant reference to cancel. - * * @return originalMerchantReference The original merchant reference to cancel. */ @JsonProperty(JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE) @@ -258,11 +255,9 @@ public void setOriginalMerchantReference(String originalMerchantReference) { } /** - * The original pspReference of the payment to modify. This reference is returned in: * - * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification * - * @param originalReference The original pspReference of the payment to modify. This reference is - * returned in: * authorisation response * authorisation notification + * @param originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification * @return the current {@code AdjustAuthorisationRequest} instance, allowing for method chaining */ public AdjustAuthorisationRequest originalReference(String originalReference) { @@ -271,11 +266,8 @@ public AdjustAuthorisationRequest originalReference(String originalReference) { } /** - * The original pspReference of the payment to modify. This reference is returned in: * - * authorisation response * authorisation notification - * - * @return originalReference The original pspReference of the payment to modify. This reference is - * returned in: * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * @return originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,11 +276,9 @@ public String getOriginalReference() { } /** - * The original pspReference of the payment to modify. This reference is returned in: * - * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification * - * @param originalReference The original pspReference of the payment to modify. This reference is - * returned in: * authorisation response * authorisation notification + * @param originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -299,19 +289,17 @@ public void setOriginalReference(String originalReference) { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic * @return the current {@code AdjustAuthorisationRequest} instance, allowing for method chaining */ - public AdjustAuthorisationRequest platformChargebackLogic( - PlatformChargebackLogic platformChargebackLogic) { + public AdjustAuthorisationRequest platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) { this.platformChargebackLogic = platformChargebackLogic; return this; } /** * Get platformChargebackLogic - * - * @return platformChargebackLogic + * @return platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -322,7 +310,7 @@ public PlatformChargebackLogic getPlatformChargebackLogic() { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -331,11 +319,9 @@ public void setPlatformChargebackLogic(PlatformChargebackLogic platformChargebac } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in - * reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in - * Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. * @return the current {@code AdjustAuthorisationRequest} instance, allowing for method chaining */ public AdjustAuthorisationRequest reference(String reference) { @@ -344,11 +330,8 @@ public AdjustAuthorisationRequest reference(String reference) { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in - * reports. Maximum length: 80 characters. - * - * @return reference Your reference for the payment modification. This reference is visible in - * Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * @return reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -357,11 +340,9 @@ public String getReference() { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in - * reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in - * Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -370,13 +351,9 @@ public void setReference(String reference) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * - * @param splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * @return the current {@code AdjustAuthorisationRequest} instance, allowing for method chaining */ public AdjustAuthorisationRequest splits(List splits) { @@ -393,13 +370,8 @@ public AdjustAuthorisationRequest addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). - * - * @return splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * @return splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -408,13 +380,9 @@ public List getSplits() { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * - * @param splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -425,8 +393,7 @@ public void setSplits(List splits) { /** * The transaction reference provided by the PED. For point-of-sale integrations only. * - * @param tenderReference The transaction reference provided by the PED. For point-of-sale - * integrations only. + * @param tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. * @return the current {@code AdjustAuthorisationRequest} instance, allowing for method chaining */ public AdjustAuthorisationRequest tenderReference(String tenderReference) { @@ -436,9 +403,7 @@ public AdjustAuthorisationRequest tenderReference(String tenderReference) { /** * The transaction reference provided by the PED. For point-of-sale integrations only. - * - * @return tenderReference The transaction reference provided by the PED. For point-of-sale - * integrations only. + * @return tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_TENDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -449,8 +414,7 @@ public String getTenderReference() { /** * The transaction reference provided by the PED. For point-of-sale integrations only. * - * @param tenderReference The transaction reference provided by the PED. For point-of-sale - * integrations only. + * @param tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_TENDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -459,11 +423,9 @@ public void setTenderReference(String tenderReference) { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale - * integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. * - * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. - * For point-of-sale integrations only. + * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. * @return the current {@code AdjustAuthorisationRequest} instance, allowing for method chaining */ public AdjustAuthorisationRequest uniqueTerminalId(String uniqueTerminalId) { @@ -472,11 +434,8 @@ public AdjustAuthorisationRequest uniqueTerminalId(String uniqueTerminalId) { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale - * integrations only. - * - * @return uniqueTerminalId Unique terminal ID for the PED that originally processed the request. - * For point-of-sale integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * @return uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -485,11 +444,9 @@ public String getUniqueTerminalId() { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale - * integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. * - * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. - * For point-of-sale integrations only. + * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -497,7 +454,9 @@ public void setUniqueTerminalId(String uniqueTerminalId) { this.uniqueTerminalId = uniqueTerminalId; } - /** Return true if this AdjustAuthorisationRequest object is equal to o. */ + /** + * Return true if this AdjustAuthorisationRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -507,35 +466,22 @@ public boolean equals(Object o) { return false; } AdjustAuthorisationRequest adjustAuthorisationRequest = (AdjustAuthorisationRequest) o; - return Objects.equals(this.additionalData, adjustAuthorisationRequest.additionalData) - && Objects.equals(this.merchantAccount, adjustAuthorisationRequest.merchantAccount) - && Objects.equals(this.modificationAmount, adjustAuthorisationRequest.modificationAmount) - && Objects.equals(this.mpiData, adjustAuthorisationRequest.mpiData) - && Objects.equals( - this.originalMerchantReference, adjustAuthorisationRequest.originalMerchantReference) - && Objects.equals(this.originalReference, adjustAuthorisationRequest.originalReference) - && Objects.equals( - this.platformChargebackLogic, adjustAuthorisationRequest.platformChargebackLogic) - && Objects.equals(this.reference, adjustAuthorisationRequest.reference) - && Objects.equals(this.splits, adjustAuthorisationRequest.splits) - && Objects.equals(this.tenderReference, adjustAuthorisationRequest.tenderReference) - && Objects.equals(this.uniqueTerminalId, adjustAuthorisationRequest.uniqueTerminalId); + return Objects.equals(this.additionalData, adjustAuthorisationRequest.additionalData) && + Objects.equals(this.merchantAccount, adjustAuthorisationRequest.merchantAccount) && + Objects.equals(this.modificationAmount, adjustAuthorisationRequest.modificationAmount) && + Objects.equals(this.mpiData, adjustAuthorisationRequest.mpiData) && + Objects.equals(this.originalMerchantReference, adjustAuthorisationRequest.originalMerchantReference) && + Objects.equals(this.originalReference, adjustAuthorisationRequest.originalReference) && + Objects.equals(this.platformChargebackLogic, adjustAuthorisationRequest.platformChargebackLogic) && + Objects.equals(this.reference, adjustAuthorisationRequest.reference) && + Objects.equals(this.splits, adjustAuthorisationRequest.splits) && + Objects.equals(this.tenderReference, adjustAuthorisationRequest.tenderReference) && + Objects.equals(this.uniqueTerminalId, adjustAuthorisationRequest.uniqueTerminalId); } @Override public int hashCode() { - return Objects.hash( - additionalData, - merchantAccount, - modificationAmount, - mpiData, - originalMerchantReference, - originalReference, - platformChargebackLogic, - reference, - splits, - tenderReference, - uniqueTerminalId); + return Objects.hash(additionalData, merchantAccount, modificationAmount, mpiData, originalMerchantReference, originalReference, platformChargebackLogic, reference, splits, tenderReference, uniqueTerminalId); } @Override @@ -546,13 +492,9 @@ public String toString() { sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" modificationAmount: ").append(toIndentedString(modificationAmount)).append("\n"); sb.append(" mpiData: ").append(toIndentedString(mpiData)).append("\n"); - sb.append(" originalMerchantReference: ") - .append(toIndentedString(originalMerchantReference)) - .append("\n"); + sb.append(" originalMerchantReference: ").append(toIndentedString(originalMerchantReference)).append("\n"); sb.append(" originalReference: ").append(toIndentedString(originalReference)).append("\n"); - sb.append(" platformChargebackLogic: ") - .append(toIndentedString(platformChargebackLogic)) - .append("\n"); + sb.append(" platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" tenderReference: ").append(toIndentedString(tenderReference)).append("\n"); @@ -562,7 +504,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -571,24 +514,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdjustAuthorisationRequest given an JSON string * * @param jsonString JSON string * @return An instance of AdjustAuthorisationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdjustAuthorisationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to AdjustAuthorisationRequest */ - public static AdjustAuthorisationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static AdjustAuthorisationRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdjustAuthorisationRequest.class); } - - /** - * Convert an instance of AdjustAuthorisationRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdjustAuthorisationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/Amount.java b/src/main/java/com/adyen/model/payment/Amount.java index 2c26f1286..d2efb9298 100644 --- a/src/main/java/com/adyen/model/payment/Amount.java +++ b/src/main/java/com/adyen/model/payment/Amount.java @@ -2,23 +2,36 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Amount */ -@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) + +/** + * Amount + */ +@JsonPropertyOrder({ + Amount.JSON_PROPERTY_CURRENCY, + Amount.JSON_PROPERTY_VALUE +}) + public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -26,14 +39,13 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() {} + public Amount() { + } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount currency(String currency) { @@ -42,11 +54,8 @@ public Amount currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -55,11 +64,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,11 +75,9 @@ public void setCurrency(String currency) { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount value(Long value) { @@ -81,11 +86,8 @@ public Amount value(Long value) { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). - * - * @return value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @return value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,11 +96,9 @@ public Long getValue() { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,7 +106,9 @@ public void setValue(Long value) { this.value = value; } - /** Return true if this Amount object is equal to o. */ + /** + * Return true if this Amount object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -116,8 +118,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) - && Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) && + Objects.equals(this.value, amount.value); } @Override @@ -136,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -155,12 +158,11 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } - - /** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ApplicationInfo.java b/src/main/java/com/adyen/model/payment/ApplicationInfo.java index 17fa4cd7f..2bf0c79ec 100644 --- a/src/main/java/com/adyen/model/payment/ApplicationInfo.java +++ b/src/main/java/com/adyen/model/payment/ApplicationInfo.java @@ -2,22 +2,35 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.payment.CommonField; +import com.adyen.model.payment.ExternalPlatform; +import com.adyen.model.payment.MerchantDevice; +import com.adyen.model.payment.ShopperInteractionDevice; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ApplicationInfo */ + +/** + * ApplicationInfo + */ @JsonPropertyOrder({ ApplicationInfo.JSON_PROPERTY_ADYEN_LIBRARY, ApplicationInfo.JSON_PROPERTY_ADYEN_PAYMENT_SOURCE, @@ -26,6 +39,7 @@ ApplicationInfo.JSON_PROPERTY_MERCHANT_DEVICE, ApplicationInfo.JSON_PROPERTY_SHOPPER_INTERACTION_DEVICE }) + public class ApplicationInfo { public static final String JSON_PROPERTY_ADYEN_LIBRARY = "adyenLibrary"; private CommonField adyenLibrary; @@ -45,12 +59,13 @@ public class ApplicationInfo { public static final String JSON_PROPERTY_SHOPPER_INTERACTION_DEVICE = "shopperInteractionDevice"; private ShopperInteractionDevice shopperInteractionDevice; - public ApplicationInfo() {} + public ApplicationInfo() { + } /** * adyenLibrary * - * @param adyenLibrary + * @param adyenLibrary * @return the current {@code ApplicationInfo} instance, allowing for method chaining */ public ApplicationInfo adyenLibrary(CommonField adyenLibrary) { @@ -60,8 +75,7 @@ public ApplicationInfo adyenLibrary(CommonField adyenLibrary) { /** * Get adyenLibrary - * - * @return adyenLibrary + * @return adyenLibrary */ @JsonProperty(JSON_PROPERTY_ADYEN_LIBRARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -72,7 +86,7 @@ public CommonField getAdyenLibrary() { /** * adyenLibrary * - * @param adyenLibrary + * @param adyenLibrary */ @JsonProperty(JSON_PROPERTY_ADYEN_LIBRARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,7 +97,7 @@ public void setAdyenLibrary(CommonField adyenLibrary) { /** * adyenPaymentSource * - * @param adyenPaymentSource + * @param adyenPaymentSource * @return the current {@code ApplicationInfo} instance, allowing for method chaining */ public ApplicationInfo adyenPaymentSource(CommonField adyenPaymentSource) { @@ -93,8 +107,7 @@ public ApplicationInfo adyenPaymentSource(CommonField adyenPaymentSource) { /** * Get adyenPaymentSource - * - * @return adyenPaymentSource + * @return adyenPaymentSource */ @JsonProperty(JSON_PROPERTY_ADYEN_PAYMENT_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,7 +118,7 @@ public CommonField getAdyenPaymentSource() { /** * adyenPaymentSource * - * @param adyenPaymentSource + * @param adyenPaymentSource */ @JsonProperty(JSON_PROPERTY_ADYEN_PAYMENT_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,7 +129,7 @@ public void setAdyenPaymentSource(CommonField adyenPaymentSource) { /** * externalPlatform * - * @param externalPlatform + * @param externalPlatform * @return the current {@code ApplicationInfo} instance, allowing for method chaining */ public ApplicationInfo externalPlatform(ExternalPlatform externalPlatform) { @@ -126,8 +139,7 @@ public ApplicationInfo externalPlatform(ExternalPlatform externalPlatform) { /** * Get externalPlatform - * - * @return externalPlatform + * @return externalPlatform */ @JsonProperty(JSON_PROPERTY_EXTERNAL_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,7 +150,7 @@ public ExternalPlatform getExternalPlatform() { /** * externalPlatform * - * @param externalPlatform + * @param externalPlatform */ @JsonProperty(JSON_PROPERTY_EXTERNAL_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -149,7 +161,7 @@ public void setExternalPlatform(ExternalPlatform externalPlatform) { /** * merchantApplication * - * @param merchantApplication + * @param merchantApplication * @return the current {@code ApplicationInfo} instance, allowing for method chaining */ public ApplicationInfo merchantApplication(CommonField merchantApplication) { @@ -159,8 +171,7 @@ public ApplicationInfo merchantApplication(CommonField merchantApplication) { /** * Get merchantApplication - * - * @return merchantApplication + * @return merchantApplication */ @JsonProperty(JSON_PROPERTY_MERCHANT_APPLICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -171,7 +182,7 @@ public CommonField getMerchantApplication() { /** * merchantApplication * - * @param merchantApplication + * @param merchantApplication */ @JsonProperty(JSON_PROPERTY_MERCHANT_APPLICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,7 +193,7 @@ public void setMerchantApplication(CommonField merchantApplication) { /** * merchantDevice * - * @param merchantDevice + * @param merchantDevice * @return the current {@code ApplicationInfo} instance, allowing for method chaining */ public ApplicationInfo merchantDevice(MerchantDevice merchantDevice) { @@ -192,8 +203,7 @@ public ApplicationInfo merchantDevice(MerchantDevice merchantDevice) { /** * Get merchantDevice - * - * @return merchantDevice + * @return merchantDevice */ @JsonProperty(JSON_PROPERTY_MERCHANT_DEVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,7 +214,7 @@ public MerchantDevice getMerchantDevice() { /** * merchantDevice * - * @param merchantDevice + * @param merchantDevice */ @JsonProperty(JSON_PROPERTY_MERCHANT_DEVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -215,19 +225,17 @@ public void setMerchantDevice(MerchantDevice merchantDevice) { /** * shopperInteractionDevice * - * @param shopperInteractionDevice + * @param shopperInteractionDevice * @return the current {@code ApplicationInfo} instance, allowing for method chaining */ - public ApplicationInfo shopperInteractionDevice( - ShopperInteractionDevice shopperInteractionDevice) { + public ApplicationInfo shopperInteractionDevice(ShopperInteractionDevice shopperInteractionDevice) { this.shopperInteractionDevice = shopperInteractionDevice; return this; } /** * Get shopperInteractionDevice - * - * @return shopperInteractionDevice + * @return shopperInteractionDevice */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION_DEVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -238,7 +246,7 @@ public ShopperInteractionDevice getShopperInteractionDevice() { /** * shopperInteractionDevice * - * @param shopperInteractionDevice + * @param shopperInteractionDevice */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION_DEVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -246,7 +254,9 @@ public void setShopperInteractionDevice(ShopperInteractionDevice shopperInteract this.shopperInteractionDevice = shopperInteractionDevice; } - /** Return true if this ApplicationInfo object is equal to o. */ + /** + * Return true if this ApplicationInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -256,23 +266,17 @@ public boolean equals(Object o) { return false; } ApplicationInfo applicationInfo = (ApplicationInfo) o; - return Objects.equals(this.adyenLibrary, applicationInfo.adyenLibrary) - && Objects.equals(this.adyenPaymentSource, applicationInfo.adyenPaymentSource) - && Objects.equals(this.externalPlatform, applicationInfo.externalPlatform) - && Objects.equals(this.merchantApplication, applicationInfo.merchantApplication) - && Objects.equals(this.merchantDevice, applicationInfo.merchantDevice) - && Objects.equals(this.shopperInteractionDevice, applicationInfo.shopperInteractionDevice); + return Objects.equals(this.adyenLibrary, applicationInfo.adyenLibrary) && + Objects.equals(this.adyenPaymentSource, applicationInfo.adyenPaymentSource) && + Objects.equals(this.externalPlatform, applicationInfo.externalPlatform) && + Objects.equals(this.merchantApplication, applicationInfo.merchantApplication) && + Objects.equals(this.merchantDevice, applicationInfo.merchantDevice) && + Objects.equals(this.shopperInteractionDevice, applicationInfo.shopperInteractionDevice); } @Override public int hashCode() { - return Objects.hash( - adyenLibrary, - adyenPaymentSource, - externalPlatform, - merchantApplication, - merchantDevice, - shopperInteractionDevice); + return Objects.hash(adyenLibrary, adyenPaymentSource, externalPlatform, merchantApplication, merchantDevice, shopperInteractionDevice); } @Override @@ -282,19 +286,16 @@ public String toString() { sb.append(" adyenLibrary: ").append(toIndentedString(adyenLibrary)).append("\n"); sb.append(" adyenPaymentSource: ").append(toIndentedString(adyenPaymentSource)).append("\n"); sb.append(" externalPlatform: ").append(toIndentedString(externalPlatform)).append("\n"); - sb.append(" merchantApplication: ") - .append(toIndentedString(merchantApplication)) - .append("\n"); + sb.append(" merchantApplication: ").append(toIndentedString(merchantApplication)).append("\n"); sb.append(" merchantDevice: ").append(toIndentedString(merchantDevice)).append("\n"); - sb.append(" shopperInteractionDevice: ") - .append(toIndentedString(shopperInteractionDevice)) - .append("\n"); + sb.append(" shopperInteractionDevice: ").append(toIndentedString(shopperInteractionDevice)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -303,7 +304,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ApplicationInfo given an JSON string * * @param jsonString JSON string @@ -313,12 +314,11 @@ private String toIndentedString(Object o) { public static ApplicationInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ApplicationInfo.class); } - - /** - * Convert an instance of ApplicationInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ApplicationInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AuthenticationResultRequest.java b/src/main/java/com/adyen/model/payment/AuthenticationResultRequest.java index 75c8d5179..4dbc63c20 100644 --- a/src/main/java/com/adyen/model/payment/AuthenticationResultRequest.java +++ b/src/main/java/com/adyen/model/payment/AuthenticationResultRequest.java @@ -2,26 +2,36 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AuthenticationResultRequest */ + +/** + * AuthenticationResultRequest + */ @JsonPropertyOrder({ AuthenticationResultRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, AuthenticationResultRequest.JSON_PROPERTY_PSP_REFERENCE }) + public class AuthenticationResultRequest { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; @@ -29,13 +39,13 @@ public class AuthenticationResultRequest { public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference"; private String pspReference; - public AuthenticationResultRequest() {} + public AuthenticationResultRequest() { + } /** * The merchant account identifier, with which the authentication was processed. * - * @param merchantAccount The merchant account identifier, with which the authentication was - * processed. + * @param merchantAccount The merchant account identifier, with which the authentication was processed. * @return the current {@code AuthenticationResultRequest} instance, allowing for method chaining */ public AuthenticationResultRequest merchantAccount(String merchantAccount) { @@ -45,9 +55,7 @@ public AuthenticationResultRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which the authentication was processed. - * - * @return merchantAccount The merchant account identifier, with which the authentication was - * processed. + * @return merchantAccount The merchant account identifier, with which the authentication was processed. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,8 +66,7 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which the authentication was processed. * - * @param merchantAccount The merchant account identifier, with which the authentication was - * processed. + * @param merchantAccount The merchant account identifier, with which the authentication was processed. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,7 +87,6 @@ public AuthenticationResultRequest pspReference(String pspReference) { /** * The pspReference identifier for the transaction. - * * @return pspReference The pspReference identifier for the transaction. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -100,7 +106,9 @@ public void setPspReference(String pspReference) { this.pspReference = pspReference; } - /** Return true if this AuthenticationResultRequest object is equal to o. */ + /** + * Return true if this AuthenticationResultRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -110,8 +118,8 @@ public boolean equals(Object o) { return false; } AuthenticationResultRequest authenticationResultRequest = (AuthenticationResultRequest) o; - return Objects.equals(this.merchantAccount, authenticationResultRequest.merchantAccount) - && Objects.equals(this.pspReference, authenticationResultRequest.pspReference); + return Objects.equals(this.merchantAccount, authenticationResultRequest.merchantAccount) && + Objects.equals(this.pspReference, authenticationResultRequest.pspReference); } @Override @@ -130,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -139,24 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AuthenticationResultRequest given an JSON string * * @param jsonString JSON string * @return An instance of AuthenticationResultRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AuthenticationResultRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to AuthenticationResultRequest */ - public static AuthenticationResultRequest fromJson(String jsonString) - throws JsonProcessingException { + public static AuthenticationResultRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AuthenticationResultRequest.class); } - - /** - * Convert an instance of AuthenticationResultRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AuthenticationResultRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AuthenticationResultResponse.java b/src/main/java/com/adyen/model/payment/AuthenticationResultResponse.java index 485e49190..444afc0eb 100644 --- a/src/main/java/com/adyen/model/payment/AuthenticationResultResponse.java +++ b/src/main/java/com/adyen/model/payment/AuthenticationResultResponse.java @@ -2,26 +2,38 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.payment.ThreeDS1Result; +import com.adyen.model.payment.ThreeDS2Result; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AuthenticationResultResponse */ + +/** + * AuthenticationResultResponse + */ @JsonPropertyOrder({ AuthenticationResultResponse.JSON_PROPERTY_THREE_D_S1_RESULT, AuthenticationResultResponse.JSON_PROPERTY_THREE_D_S2_RESULT }) + public class AuthenticationResultResponse { public static final String JSON_PROPERTY_THREE_D_S1_RESULT = "threeDS1Result"; private ThreeDS1Result threeDS1Result; @@ -29,12 +41,13 @@ public class AuthenticationResultResponse { public static final String JSON_PROPERTY_THREE_D_S2_RESULT = "threeDS2Result"; private ThreeDS2Result threeDS2Result; - public AuthenticationResultResponse() {} + public AuthenticationResultResponse() { + } /** * threeDS1Result * - * @param threeDS1Result + * @param threeDS1Result * @return the current {@code AuthenticationResultResponse} instance, allowing for method chaining */ public AuthenticationResultResponse threeDS1Result(ThreeDS1Result threeDS1Result) { @@ -44,8 +57,7 @@ public AuthenticationResultResponse threeDS1Result(ThreeDS1Result threeDS1Result /** * Get threeDS1Result - * - * @return threeDS1Result + * @return threeDS1Result */ @JsonProperty(JSON_PROPERTY_THREE_D_S1_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -56,7 +68,7 @@ public ThreeDS1Result getThreeDS1Result() { /** * threeDS1Result * - * @param threeDS1Result + * @param threeDS1Result */ @JsonProperty(JSON_PROPERTY_THREE_D_S1_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -67,7 +79,7 @@ public void setThreeDS1Result(ThreeDS1Result threeDS1Result) { /** * threeDS2Result * - * @param threeDS2Result + * @param threeDS2Result * @return the current {@code AuthenticationResultResponse} instance, allowing for method chaining */ public AuthenticationResultResponse threeDS2Result(ThreeDS2Result threeDS2Result) { @@ -77,8 +89,7 @@ public AuthenticationResultResponse threeDS2Result(ThreeDS2Result threeDS2Result /** * Get threeDS2Result - * - * @return threeDS2Result + * @return threeDS2Result */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -89,7 +100,7 @@ public ThreeDS2Result getThreeDS2Result() { /** * threeDS2Result * - * @param threeDS2Result + * @param threeDS2Result */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,7 +108,9 @@ public void setThreeDS2Result(ThreeDS2Result threeDS2Result) { this.threeDS2Result = threeDS2Result; } - /** Return true if this AuthenticationResultResponse object is equal to o. */ + /** + * Return true if this AuthenticationResultResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -107,8 +120,8 @@ public boolean equals(Object o) { return false; } AuthenticationResultResponse authenticationResultResponse = (AuthenticationResultResponse) o; - return Objects.equals(this.threeDS1Result, authenticationResultResponse.threeDS1Result) - && Objects.equals(this.threeDS2Result, authenticationResultResponse.threeDS2Result); + return Objects.equals(this.threeDS1Result, authenticationResultResponse.threeDS1Result) && + Objects.equals(this.threeDS2Result, authenticationResultResponse.threeDS2Result); } @Override @@ -127,7 +140,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,24 +150,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AuthenticationResultResponse given an JSON string * * @param jsonString JSON string * @return An instance of AuthenticationResultResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AuthenticationResultResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to AuthenticationResultResponse */ - public static AuthenticationResultResponse fromJson(String jsonString) - throws JsonProcessingException { + public static AuthenticationResultResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AuthenticationResultResponse.class); } - - /** - * Convert an instance of AuthenticationResultResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AuthenticationResultResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/BankAccount.java b/src/main/java/com/adyen/model/payment/BankAccount.java index eec81c39a..c8452af96 100644 --- a/src/main/java/com/adyen/model/payment/BankAccount.java +++ b/src/main/java/com/adyen/model/payment/BankAccount.java @@ -2,22 +2,31 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** BankAccount */ + +/** + * BankAccount + */ @JsonPropertyOrder({ BankAccount.JSON_PROPERTY_BANK_ACCOUNT_NUMBER, BankAccount.JSON_PROPERTY_BANK_CITY, @@ -29,6 +38,7 @@ BankAccount.JSON_PROPERTY_OWNER_NAME, BankAccount.JSON_PROPERTY_TAX_ID }) + public class BankAccount { public static final String JSON_PROPERTY_BANK_ACCOUNT_NUMBER = "bankAccountNumber"; private String bankAccountNumber; @@ -57,7 +67,8 @@ public class BankAccount { public static final String JSON_PROPERTY_TAX_ID = "taxId"; private String taxId; - public BankAccount() {} + public BankAccount() { + } /** * The bank account number (without separators). @@ -72,7 +83,6 @@ public BankAccount bankAccountNumber(String bankAccountNumber) { /** * The bank account number (without separators). - * * @return bankAccountNumber The bank account number (without separators). */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_NUMBER) @@ -105,7 +115,6 @@ public BankAccount bankCity(String bankCity) { /** * The bank city. - * * @return bankCity The bank city. */ @JsonProperty(JSON_PROPERTY_BANK_CITY) @@ -128,8 +137,7 @@ public void setBankCity(String bankCity) { /** * The location id of the bank. The field value is `nil` in most cases. * - * @param bankLocationId The location id of the bank. The field value is `nil` in most - * cases. + * @param bankLocationId The location id of the bank. The field value is `nil` in most cases. * @return the current {@code BankAccount} instance, allowing for method chaining */ public BankAccount bankLocationId(String bankLocationId) { @@ -139,9 +147,7 @@ public BankAccount bankLocationId(String bankLocationId) { /** * The location id of the bank. The field value is `nil` in most cases. - * - * @return bankLocationId The location id of the bank. The field value is `nil` in most - * cases. + * @return bankLocationId The location id of the bank. The field value is `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_BANK_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,8 +158,7 @@ public String getBankLocationId() { /** * The location id of the bank. The field value is `nil` in most cases. * - * @param bankLocationId The location id of the bank. The field value is `nil` in most - * cases. + * @param bankLocationId The location id of the bank. The field value is `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_BANK_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -174,7 +179,6 @@ public BankAccount bankName(String bankName) { /** * The name of the bank. - * * @return bankName The name of the bank. */ @JsonProperty(JSON_PROPERTY_BANK_NAME) @@ -195,11 +199,9 @@ public void setBankName(String bankName) { } /** - * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT - * address assigned to a bank. The field value is `nil` in most cases. + * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. * - * @param bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the - * SWIFT address assigned to a bank. The field value is `nil` in most cases. + * @param bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. * @return the current {@code BankAccount} instance, allowing for method chaining */ public BankAccount bic(String bic) { @@ -208,11 +210,8 @@ public BankAccount bic(String bic) { } /** - * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT - * address assigned to a bank. The field value is `nil` in most cases. - * - * @return bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the - * SWIFT address assigned to a bank. The field value is `nil` in most cases. + * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. + * @return bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_BIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,11 +220,9 @@ public String getBic() { } /** - * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT - * address assigned to a bank. The field value is `nil` in most cases. + * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. * - * @param bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the - * SWIFT address assigned to a bank. The field value is `nil` in most cases. + * @param bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_BIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -234,11 +231,9 @@ public void setBic(String bic) { } /** - * Country code where the bank is located. A valid value is an ISO two-character country code - * (e.g. 'NL'). + * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). * - * @param countryCode Country code where the bank is located. A valid value is an ISO - * two-character country code (e.g. 'NL'). + * @param countryCode Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). * @return the current {@code BankAccount} instance, allowing for method chaining */ public BankAccount countryCode(String countryCode) { @@ -247,11 +242,8 @@ public BankAccount countryCode(String countryCode) { } /** - * Country code where the bank is located. A valid value is an ISO two-character country code - * (e.g. 'NL'). - * - * @return countryCode Country code where the bank is located. A valid value is an ISO - * two-character country code (e.g. 'NL'). + * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). + * @return countryCode Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -260,11 +252,9 @@ public String getCountryCode() { } /** - * Country code where the bank is located. A valid value is an ISO two-character country code - * (e.g. 'NL'). + * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). * - * @param countryCode Country code where the bank is located. A valid value is an ISO - * two-character country code (e.g. 'NL'). + * @param countryCode Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -273,11 +263,9 @@ public void setCountryCode(String countryCode) { } /** - * The [International Bank Account - * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). * - * @param iban The [International Bank Account - * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * @param iban The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). * @return the current {@code BankAccount} instance, allowing for method chaining */ public BankAccount iban(String iban) { @@ -286,11 +274,8 @@ public BankAccount iban(String iban) { } /** - * The [International Bank Account - * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). - * - * @return iban The [International Bank Account - * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * @return iban The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -299,11 +284,9 @@ public String getIban() { } /** - * The [International Bank Account - * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). * - * @param iban The [International Bank Account - * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * @param iban The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -312,25 +295,9 @@ public void setIban(String iban) { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we - * automatically replace some of them with corresponding Latin characters to meet the FATF - * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter - * Møller is converted to Peter Mller, because banks don't accept 'ø'. After - * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), - * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - - * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details - * don't match the required format, the response returns the error message: 203 'Invalid - * bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. * - * @param ownerName The name of the bank account holder. If you submit a name with non-Latin - * characters, we automatically replace some of them with corresponding Latin characters to - * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted - * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept - * 'ø'. After replacement, the ownerName must have at least three alphanumeric - * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, - * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - - * allowed. > If provided details don't match the required format, the response returns - * the error message: 203 'Invalid bank account holder name'. + * @param ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. * @return the current {@code BankAccount} instance, allowing for method chaining */ public BankAccount ownerName(String ownerName) { @@ -339,25 +306,8 @@ public BankAccount ownerName(String ownerName) { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we - * automatically replace some of them with corresponding Latin characters to meet the FATF - * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter - * Møller is converted to Peter Mller, because banks don't accept 'ø'. After - * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), - * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - - * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details - * don't match the required format, the response returns the error message: 203 'Invalid - * bank account holder name'. - * - * @return ownerName The name of the bank account holder. If you submit a name with non-Latin - * characters, we automatically replace some of them with corresponding Latin characters to - * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted - * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept - * 'ø'. After replacement, the ownerName must have at least three alphanumeric - * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, - * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - - * allowed. > If provided details don't match the required format, the response returns - * the error message: 203 'Invalid bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * @return ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -366,25 +316,9 @@ public String getOwnerName() { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we - * automatically replace some of them with corresponding Latin characters to meet the FATF - * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter - * Møller is converted to Peter Mller, because banks don't accept 'ø'. After - * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), - * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - - * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details - * don't match the required format, the response returns the error message: 203 'Invalid - * bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. * - * @param ownerName The name of the bank account holder. If you submit a name with non-Latin - * characters, we automatically replace some of them with corresponding Latin characters to - * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted - * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept - * 'ø'. After replacement, the ownerName must have at least three alphanumeric - * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, - * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - - * allowed. > If provided details don't match the required format, the response returns - * the error message: 203 'Invalid bank account holder name'. + * @param ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -405,7 +339,6 @@ public BankAccount taxId(String taxId) { /** * The bank account holder's tax ID. - * * @return taxId The bank account holder's tax ID. */ @JsonProperty(JSON_PROPERTY_TAX_ID) @@ -425,7 +358,9 @@ public void setTaxId(String taxId) { this.taxId = taxId; } - /** Return true if this BankAccount object is equal to o. */ + /** + * Return true if this BankAccount object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -435,29 +370,20 @@ public boolean equals(Object o) { return false; } BankAccount bankAccount = (BankAccount) o; - return Objects.equals(this.bankAccountNumber, bankAccount.bankAccountNumber) - && Objects.equals(this.bankCity, bankAccount.bankCity) - && Objects.equals(this.bankLocationId, bankAccount.bankLocationId) - && Objects.equals(this.bankName, bankAccount.bankName) - && Objects.equals(this.bic, bankAccount.bic) - && Objects.equals(this.countryCode, bankAccount.countryCode) - && Objects.equals(this.iban, bankAccount.iban) - && Objects.equals(this.ownerName, bankAccount.ownerName) - && Objects.equals(this.taxId, bankAccount.taxId); + return Objects.equals(this.bankAccountNumber, bankAccount.bankAccountNumber) && + Objects.equals(this.bankCity, bankAccount.bankCity) && + Objects.equals(this.bankLocationId, bankAccount.bankLocationId) && + Objects.equals(this.bankName, bankAccount.bankName) && + Objects.equals(this.bic, bankAccount.bic) && + Objects.equals(this.countryCode, bankAccount.countryCode) && + Objects.equals(this.iban, bankAccount.iban) && + Objects.equals(this.ownerName, bankAccount.ownerName) && + Objects.equals(this.taxId, bankAccount.taxId); } @Override public int hashCode() { - return Objects.hash( - bankAccountNumber, - bankCity, - bankLocationId, - bankName, - bic, - countryCode, - iban, - ownerName, - taxId); + return Objects.hash(bankAccountNumber, bankCity, bankLocationId, bankName, bic, countryCode, iban, ownerName, taxId); } @Override @@ -478,7 +404,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -487,7 +414,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BankAccount given an JSON string * * @param jsonString JSON string @@ -497,12 +424,11 @@ private String toIndentedString(Object o) { public static BankAccount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankAccount.class); } - - /** - * Convert an instance of BankAccount to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BankAccount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/BrowserInfo.java b/src/main/java/com/adyen/model/payment/BrowserInfo.java index dc1912f00..bc28ec6c3 100644 --- a/src/main/java/com/adyen/model/payment/BrowserInfo.java +++ b/src/main/java/com/adyen/model/payment/BrowserInfo.java @@ -2,22 +2,31 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** BrowserInfo */ + +/** + * BrowserInfo + */ @JsonPropertyOrder({ BrowserInfo.JSON_PROPERTY_ACCEPT_HEADER, BrowserInfo.JSON_PROPERTY_COLOR_DEPTH, @@ -29,6 +38,7 @@ BrowserInfo.JSON_PROPERTY_TIME_ZONE_OFFSET, BrowserInfo.JSON_PROPERTY_USER_AGENT }) + public class BrowserInfo { public static final String JSON_PROPERTY_ACCEPT_HEADER = "acceptHeader"; private String acceptHeader; @@ -57,7 +67,8 @@ public class BrowserInfo { public static final String JSON_PROPERTY_USER_AGENT = "userAgent"; private String userAgent; - public BrowserInfo() {} + public BrowserInfo() { + } /** * The accept header value of the shopper's browser. @@ -72,7 +83,6 @@ public BrowserInfo acceptHeader(String acceptHeader) { /** * The accept header value of the shopper's browser. - * * @return acceptHeader The accept header value of the shopper's browser. */ @JsonProperty(JSON_PROPERTY_ACCEPT_HEADER) @@ -93,13 +103,9 @@ public void setAcceptHeader(String acceptHeader) { } /** - * The color depth of the shopper's browser in bits per pixel. This should be obtained by - * using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, - * 16, 24, 30, 32 or 48 bit color depth. + * The color depth of the shopper's browser in bits per pixel. This should be obtained by using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. * - * @param colorDepth The color depth of the shopper's browser in bits per pixel. This should - * be obtained by using the browser's `screen.colorDepth` property. Accepted - * values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. + * @param colorDepth The color depth of the shopper's browser in bits per pixel. This should be obtained by using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. * @return the current {@code BrowserInfo} instance, allowing for method chaining */ public BrowserInfo colorDepth(Integer colorDepth) { @@ -108,13 +114,8 @@ public BrowserInfo colorDepth(Integer colorDepth) { } /** - * The color depth of the shopper's browser in bits per pixel. This should be obtained by - * using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, - * 16, 24, 30, 32 or 48 bit color depth. - * - * @return colorDepth The color depth of the shopper's browser in bits per pixel. This should - * be obtained by using the browser's `screen.colorDepth` property. Accepted - * values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. + * The color depth of the shopper's browser in bits per pixel. This should be obtained by using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. + * @return colorDepth The color depth of the shopper's browser in bits per pixel. This should be obtained by using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. */ @JsonProperty(JSON_PROPERTY_COLOR_DEPTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,13 +124,9 @@ public Integer getColorDepth() { } /** - * The color depth of the shopper's browser in bits per pixel. This should be obtained by - * using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, - * 16, 24, 30, 32 or 48 bit color depth. + * The color depth of the shopper's browser in bits per pixel. This should be obtained by using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. * - * @param colorDepth The color depth of the shopper's browser in bits per pixel. This should - * be obtained by using the browser's `screen.colorDepth` property. Accepted - * values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. + * @param colorDepth The color depth of the shopper's browser in bits per pixel. This should be obtained by using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. */ @JsonProperty(JSON_PROPERTY_COLOR_DEPTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,8 +137,7 @@ public void setColorDepth(Integer colorDepth) { /** * Boolean value indicating if the shopper's browser is able to execute Java. * - * @param javaEnabled Boolean value indicating if the shopper's browser is able to execute - * Java. + * @param javaEnabled Boolean value indicating if the shopper's browser is able to execute Java. * @return the current {@code BrowserInfo} instance, allowing for method chaining */ public BrowserInfo javaEnabled(Boolean javaEnabled) { @@ -151,9 +147,7 @@ public BrowserInfo javaEnabled(Boolean javaEnabled) { /** * Boolean value indicating if the shopper's browser is able to execute Java. - * - * @return javaEnabled Boolean value indicating if the shopper's browser is able to execute - * Java. + * @return javaEnabled Boolean value indicating if the shopper's browser is able to execute Java. */ @JsonProperty(JSON_PROPERTY_JAVA_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -164,8 +158,7 @@ public Boolean getJavaEnabled() { /** * Boolean value indicating if the shopper's browser is able to execute Java. * - * @param javaEnabled Boolean value indicating if the shopper's browser is able to execute - * Java. + * @param javaEnabled Boolean value indicating if the shopper's browser is able to execute Java. */ @JsonProperty(JSON_PROPERTY_JAVA_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -174,11 +167,9 @@ public void setJavaEnabled(Boolean javaEnabled) { } /** - * Boolean value indicating if the shopper's browser is able to execute JavaScript. A default - * 'true' value is assumed if the field is not present. + * Boolean value indicating if the shopper's browser is able to execute JavaScript. A default 'true' value is assumed if the field is not present. * - * @param javaScriptEnabled Boolean value indicating if the shopper's browser is able to - * execute JavaScript. A default 'true' value is assumed if the field is not present. + * @param javaScriptEnabled Boolean value indicating if the shopper's browser is able to execute JavaScript. A default 'true' value is assumed if the field is not present. * @return the current {@code BrowserInfo} instance, allowing for method chaining */ public BrowserInfo javaScriptEnabled(Boolean javaScriptEnabled) { @@ -187,11 +178,8 @@ public BrowserInfo javaScriptEnabled(Boolean javaScriptEnabled) { } /** - * Boolean value indicating if the shopper's browser is able to execute JavaScript. A default - * 'true' value is assumed if the field is not present. - * - * @return javaScriptEnabled Boolean value indicating if the shopper's browser is able to - * execute JavaScript. A default 'true' value is assumed if the field is not present. + * Boolean value indicating if the shopper's browser is able to execute JavaScript. A default 'true' value is assumed if the field is not present. + * @return javaScriptEnabled Boolean value indicating if the shopper's browser is able to execute JavaScript. A default 'true' value is assumed if the field is not present. */ @JsonProperty(JSON_PROPERTY_JAVA_SCRIPT_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,11 +188,9 @@ public Boolean getJavaScriptEnabled() { } /** - * Boolean value indicating if the shopper's browser is able to execute JavaScript. A default - * 'true' value is assumed if the field is not present. + * Boolean value indicating if the shopper's browser is able to execute JavaScript. A default 'true' value is assumed if the field is not present. * - * @param javaScriptEnabled Boolean value indicating if the shopper's browser is able to - * execute JavaScript. A default 'true' value is assumed if the field is not present. + * @param javaScriptEnabled Boolean value indicating if the shopper's browser is able to execute JavaScript. A default 'true' value is assumed if the field is not present. */ @JsonProperty(JSON_PROPERTY_JAVA_SCRIPT_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -213,11 +199,9 @@ public void setJavaScriptEnabled(Boolean javaScriptEnabled) { } /** - * The `navigator.language` value of the shopper's browser (as defined in IETF BCP - * 47). + * The `navigator.language` value of the shopper's browser (as defined in IETF BCP 47). * - * @param language The `navigator.language` value of the shopper's browser (as - * defined in IETF BCP 47). + * @param language The `navigator.language` value of the shopper's browser (as defined in IETF BCP 47). * @return the current {@code BrowserInfo} instance, allowing for method chaining */ public BrowserInfo language(String language) { @@ -226,11 +210,8 @@ public BrowserInfo language(String language) { } /** - * The `navigator.language` value of the shopper's browser (as defined in IETF BCP - * 47). - * - * @return language The `navigator.language` value of the shopper's browser (as - * defined in IETF BCP 47). + * The `navigator.language` value of the shopper's browser (as defined in IETF BCP 47). + * @return language The `navigator.language` value of the shopper's browser (as defined in IETF BCP 47). */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -239,11 +220,9 @@ public String getLanguage() { } /** - * The `navigator.language` value of the shopper's browser (as defined in IETF BCP - * 47). + * The `navigator.language` value of the shopper's browser (as defined in IETF BCP 47). * - * @param language The `navigator.language` value of the shopper's browser (as - * defined in IETF BCP 47). + * @param language The `navigator.language` value of the shopper's browser (as defined in IETF BCP 47). */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -264,7 +243,6 @@ public BrowserInfo screenHeight(Integer screenHeight) { /** * The total height of the shopper's device screen in pixels. - * * @return screenHeight The total height of the shopper's device screen in pixels. */ @JsonProperty(JSON_PROPERTY_SCREEN_HEIGHT) @@ -297,7 +275,6 @@ public BrowserInfo screenWidth(Integer screenWidth) { /** * The total width of the shopper's device screen in pixels. - * * @return screenWidth The total width of the shopper's device screen in pixels. */ @JsonProperty(JSON_PROPERTY_SCREEN_WIDTH) @@ -320,8 +297,7 @@ public void setScreenWidth(Integer screenWidth) { /** * Time difference between UTC time and the shopper's browser local time, in minutes. * - * @param timeZoneOffset Time difference between UTC time and the shopper's browser local - * time, in minutes. + * @param timeZoneOffset Time difference between UTC time and the shopper's browser local time, in minutes. * @return the current {@code BrowserInfo} instance, allowing for method chaining */ public BrowserInfo timeZoneOffset(Integer timeZoneOffset) { @@ -331,9 +307,7 @@ public BrowserInfo timeZoneOffset(Integer timeZoneOffset) { /** * Time difference between UTC time and the shopper's browser local time, in minutes. - * - * @return timeZoneOffset Time difference between UTC time and the shopper's browser local - * time, in minutes. + * @return timeZoneOffset Time difference between UTC time and the shopper's browser local time, in minutes. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -344,8 +318,7 @@ public Integer getTimeZoneOffset() { /** * Time difference between UTC time and the shopper's browser local time, in minutes. * - * @param timeZoneOffset Time difference between UTC time and the shopper's browser local - * time, in minutes. + * @param timeZoneOffset Time difference between UTC time and the shopper's browser local time, in minutes. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -366,7 +339,6 @@ public BrowserInfo userAgent(String userAgent) { /** * The user agent value of the shopper's browser. - * * @return userAgent The user agent value of the shopper's browser. */ @JsonProperty(JSON_PROPERTY_USER_AGENT) @@ -386,7 +358,9 @@ public void setUserAgent(String userAgent) { this.userAgent = userAgent; } - /** Return true if this BrowserInfo object is equal to o. */ + /** + * Return true if this BrowserInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -396,29 +370,20 @@ public boolean equals(Object o) { return false; } BrowserInfo browserInfo = (BrowserInfo) o; - return Objects.equals(this.acceptHeader, browserInfo.acceptHeader) - && Objects.equals(this.colorDepth, browserInfo.colorDepth) - && Objects.equals(this.javaEnabled, browserInfo.javaEnabled) - && Objects.equals(this.javaScriptEnabled, browserInfo.javaScriptEnabled) - && Objects.equals(this.language, browserInfo.language) - && Objects.equals(this.screenHeight, browserInfo.screenHeight) - && Objects.equals(this.screenWidth, browserInfo.screenWidth) - && Objects.equals(this.timeZoneOffset, browserInfo.timeZoneOffset) - && Objects.equals(this.userAgent, browserInfo.userAgent); + return Objects.equals(this.acceptHeader, browserInfo.acceptHeader) && + Objects.equals(this.colorDepth, browserInfo.colorDepth) && + Objects.equals(this.javaEnabled, browserInfo.javaEnabled) && + Objects.equals(this.javaScriptEnabled, browserInfo.javaScriptEnabled) && + Objects.equals(this.language, browserInfo.language) && + Objects.equals(this.screenHeight, browserInfo.screenHeight) && + Objects.equals(this.screenWidth, browserInfo.screenWidth) && + Objects.equals(this.timeZoneOffset, browserInfo.timeZoneOffset) && + Objects.equals(this.userAgent, browserInfo.userAgent); } @Override public int hashCode() { - return Objects.hash( - acceptHeader, - colorDepth, - javaEnabled, - javaScriptEnabled, - language, - screenHeight, - screenWidth, - timeZoneOffset, - userAgent); + return Objects.hash(acceptHeader, colorDepth, javaEnabled, javaScriptEnabled, language, screenHeight, screenWidth, timeZoneOffset, userAgent); } @Override @@ -439,7 +404,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -448,7 +414,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BrowserInfo given an JSON string * * @param jsonString JSON string @@ -458,12 +424,11 @@ private String toIndentedString(Object o) { public static BrowserInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BrowserInfo.class); } - - /** - * Convert an instance of BrowserInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BrowserInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/CancelOrRefundRequest.java b/src/main/java/com/adyen/model/payment/CancelOrRefundRequest.java index ee3dd3324..b585ed5e7 100644 --- a/src/main/java/com/adyen/model/payment/CancelOrRefundRequest.java +++ b/src/main/java/com/adyen/model/payment/CancelOrRefundRequest.java @@ -2,24 +2,35 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.payment.PlatformChargebackLogic; +import com.adyen.model.payment.ThreeDSecureData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CancelOrRefundRequest */ +/** + * CancelOrRefundRequest + */ @JsonPropertyOrder({ CancelOrRefundRequest.JSON_PROPERTY_ADDITIONAL_DATA, CancelOrRefundRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, @@ -31,6 +42,7 @@ CancelOrRefundRequest.JSON_PROPERTY_TENDER_REFERENCE, CancelOrRefundRequest.JSON_PROPERTY_UNIQUE_TERMINAL_ID }) + public class CancelOrRefundRequest { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -41,8 +53,7 @@ public class CancelOrRefundRequest { public static final String JSON_PROPERTY_MPI_DATA = "mpiData"; private ThreeDSecureData mpiData; - public static final String JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE = - "originalMerchantReference"; + public static final String JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE = "originalMerchantReference"; private String originalMerchantReference; public static final String JSON_PROPERTY_ORIGINAL_REFERENCE = "originalReference"; @@ -60,16 +71,13 @@ public class CancelOrRefundRequest { public static final String JSON_PROPERTY_UNIQUE_TERMINAL_ID = "uniqueTerminalId"; private String uniqueTerminalId; - public CancelOrRefundRequest() {} + public CancelOrRefundRequest() { + } /** - * This field contains additional data, which may be required for a particular modification - * request. The additionalData object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular modification request. The additionalData object consists of entries, each of - * which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. * @return the current {@code CancelOrRefundRequest} instance, allowing for method chaining */ public CancelOrRefundRequest additionalData(Map additionalData) { @@ -86,13 +94,8 @@ public CancelOrRefundRequest putAdditionalDataItem(String key, String additional } /** - * This field contains additional data, which may be required for a particular modification - * request. The additionalData object consists of entries, each of which includes the key and - * value. - * - * @return additionalData This field contains additional data, which may be required for a - * particular modification request. The additionalData object consists of entries, each of - * which includes the key and value. + * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * @return additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,13 +104,9 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular modification - * request. The additionalData object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular modification request. The additionalData object consists of entries, each of - * which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,7 +127,6 @@ public CancelOrRefundRequest merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. - * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -151,7 +149,7 @@ public void setMerchantAccount(String merchantAccount) { /** * mpiData * - * @param mpiData + * @param mpiData * @return the current {@code CancelOrRefundRequest} instance, allowing for method chaining */ public CancelOrRefundRequest mpiData(ThreeDSecureData mpiData) { @@ -161,8 +159,7 @@ public CancelOrRefundRequest mpiData(ThreeDSecureData mpiData) { /** * Get mpiData - * - * @return mpiData + * @return mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,7 +170,7 @@ public ThreeDSecureData getMpiData() { /** * mpiData * - * @param mpiData + * @param mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,7 +191,6 @@ public CancelOrRefundRequest originalMerchantReference(String originalMerchantRe /** * The original merchant reference to cancel. - * * @return originalMerchantReference The original merchant reference to cancel. */ @JsonProperty(JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE) @@ -215,11 +211,9 @@ public void setOriginalMerchantReference(String originalMerchantReference) { } /** - * The original pspReference of the payment to modify. This reference is returned in: * - * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification * - * @param originalReference The original pspReference of the payment to modify. This reference is - * returned in: * authorisation response * authorisation notification + * @param originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification * @return the current {@code CancelOrRefundRequest} instance, allowing for method chaining */ public CancelOrRefundRequest originalReference(String originalReference) { @@ -228,11 +222,8 @@ public CancelOrRefundRequest originalReference(String originalReference) { } /** - * The original pspReference of the payment to modify. This reference is returned in: * - * authorisation response * authorisation notification - * - * @return originalReference The original pspReference of the payment to modify. This reference is - * returned in: * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * @return originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -241,11 +232,9 @@ public String getOriginalReference() { } /** - * The original pspReference of the payment to modify. This reference is returned in: * - * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification * - * @param originalReference The original pspReference of the payment to modify. This reference is - * returned in: * authorisation response * authorisation notification + * @param originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -256,19 +245,17 @@ public void setOriginalReference(String originalReference) { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic * @return the current {@code CancelOrRefundRequest} instance, allowing for method chaining */ - public CancelOrRefundRequest platformChargebackLogic( - PlatformChargebackLogic platformChargebackLogic) { + public CancelOrRefundRequest platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) { this.platformChargebackLogic = platformChargebackLogic; return this; } /** * Get platformChargebackLogic - * - * @return platformChargebackLogic + * @return platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -279,7 +266,7 @@ public PlatformChargebackLogic getPlatformChargebackLogic() { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -288,11 +275,9 @@ public void setPlatformChargebackLogic(PlatformChargebackLogic platformChargebac } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in - * reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in - * Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. * @return the current {@code CancelOrRefundRequest} instance, allowing for method chaining */ public CancelOrRefundRequest reference(String reference) { @@ -301,11 +286,8 @@ public CancelOrRefundRequest reference(String reference) { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in - * reports. Maximum length: 80 characters. - * - * @return reference Your reference for the payment modification. This reference is visible in - * Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * @return reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -314,11 +296,9 @@ public String getReference() { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in - * reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in - * Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -329,8 +309,7 @@ public void setReference(String reference) { /** * The transaction reference provided by the PED. For point-of-sale integrations only. * - * @param tenderReference The transaction reference provided by the PED. For point-of-sale - * integrations only. + * @param tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. * @return the current {@code CancelOrRefundRequest} instance, allowing for method chaining */ public CancelOrRefundRequest tenderReference(String tenderReference) { @@ -340,9 +319,7 @@ public CancelOrRefundRequest tenderReference(String tenderReference) { /** * The transaction reference provided by the PED. For point-of-sale integrations only. - * - * @return tenderReference The transaction reference provided by the PED. For point-of-sale - * integrations only. + * @return tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_TENDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -353,8 +330,7 @@ public String getTenderReference() { /** * The transaction reference provided by the PED. For point-of-sale integrations only. * - * @param tenderReference The transaction reference provided by the PED. For point-of-sale - * integrations only. + * @param tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_TENDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -363,11 +339,9 @@ public void setTenderReference(String tenderReference) { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale - * integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. * - * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. - * For point-of-sale integrations only. + * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. * @return the current {@code CancelOrRefundRequest} instance, allowing for method chaining */ public CancelOrRefundRequest uniqueTerminalId(String uniqueTerminalId) { @@ -376,11 +350,8 @@ public CancelOrRefundRequest uniqueTerminalId(String uniqueTerminalId) { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale - * integrations only. - * - * @return uniqueTerminalId Unique terminal ID for the PED that originally processed the request. - * For point-of-sale integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * @return uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -389,11 +360,9 @@ public String getUniqueTerminalId() { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale - * integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. * - * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. - * For point-of-sale integrations only. + * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -401,7 +370,9 @@ public void setUniqueTerminalId(String uniqueTerminalId) { this.uniqueTerminalId = uniqueTerminalId; } - /** Return true if this CancelOrRefundRequest object is equal to o. */ + /** + * Return true if this CancelOrRefundRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -411,31 +382,20 @@ public boolean equals(Object o) { return false; } CancelOrRefundRequest cancelOrRefundRequest = (CancelOrRefundRequest) o; - return Objects.equals(this.additionalData, cancelOrRefundRequest.additionalData) - && Objects.equals(this.merchantAccount, cancelOrRefundRequest.merchantAccount) - && Objects.equals(this.mpiData, cancelOrRefundRequest.mpiData) - && Objects.equals( - this.originalMerchantReference, cancelOrRefundRequest.originalMerchantReference) - && Objects.equals(this.originalReference, cancelOrRefundRequest.originalReference) - && Objects.equals( - this.platformChargebackLogic, cancelOrRefundRequest.platformChargebackLogic) - && Objects.equals(this.reference, cancelOrRefundRequest.reference) - && Objects.equals(this.tenderReference, cancelOrRefundRequest.tenderReference) - && Objects.equals(this.uniqueTerminalId, cancelOrRefundRequest.uniqueTerminalId); + return Objects.equals(this.additionalData, cancelOrRefundRequest.additionalData) && + Objects.equals(this.merchantAccount, cancelOrRefundRequest.merchantAccount) && + Objects.equals(this.mpiData, cancelOrRefundRequest.mpiData) && + Objects.equals(this.originalMerchantReference, cancelOrRefundRequest.originalMerchantReference) && + Objects.equals(this.originalReference, cancelOrRefundRequest.originalReference) && + Objects.equals(this.platformChargebackLogic, cancelOrRefundRequest.platformChargebackLogic) && + Objects.equals(this.reference, cancelOrRefundRequest.reference) && + Objects.equals(this.tenderReference, cancelOrRefundRequest.tenderReference) && + Objects.equals(this.uniqueTerminalId, cancelOrRefundRequest.uniqueTerminalId); } @Override public int hashCode() { - return Objects.hash( - additionalData, - merchantAccount, - mpiData, - originalMerchantReference, - originalReference, - platformChargebackLogic, - reference, - tenderReference, - uniqueTerminalId); + return Objects.hash(additionalData, merchantAccount, mpiData, originalMerchantReference, originalReference, platformChargebackLogic, reference, tenderReference, uniqueTerminalId); } @Override @@ -445,13 +405,9 @@ public String toString() { sb.append(" additionalData: ").append(toIndentedString(additionalData)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" mpiData: ").append(toIndentedString(mpiData)).append("\n"); - sb.append(" originalMerchantReference: ") - .append(toIndentedString(originalMerchantReference)) - .append("\n"); + sb.append(" originalMerchantReference: ").append(toIndentedString(originalMerchantReference)).append("\n"); sb.append(" originalReference: ").append(toIndentedString(originalReference)).append("\n"); - sb.append(" platformChargebackLogic: ") - .append(toIndentedString(platformChargebackLogic)) - .append("\n"); + sb.append(" platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" tenderReference: ").append(toIndentedString(tenderReference)).append("\n"); sb.append(" uniqueTerminalId: ").append(toIndentedString(uniqueTerminalId)).append("\n"); @@ -460,7 +416,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -469,23 +426,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CancelOrRefundRequest given an JSON string * * @param jsonString JSON string * @return An instance of CancelOrRefundRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CancelOrRefundRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to CancelOrRefundRequest */ public static CancelOrRefundRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CancelOrRefundRequest.class); } - - /** - * Convert an instance of CancelOrRefundRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CancelOrRefundRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/CancelRequest.java b/src/main/java/com/adyen/model/payment/CancelRequest.java index deabb1959..8c1030679 100644 --- a/src/main/java/com/adyen/model/payment/CancelRequest.java +++ b/src/main/java/com/adyen/model/payment/CancelRequest.java @@ -2,26 +2,38 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.payment.PlatformChargebackLogic; +import com.adyen.model.payment.Split; +import com.adyen.model.payment.ThreeDSecureData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** CancelRequest */ + +/** + * CancelRequest + */ @JsonPropertyOrder({ CancelRequest.JSON_PROPERTY_ADDITIONAL_DATA, CancelRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, @@ -34,6 +46,7 @@ CancelRequest.JSON_PROPERTY_TENDER_REFERENCE, CancelRequest.JSON_PROPERTY_UNIQUE_TERMINAL_ID }) + public class CancelRequest { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -44,8 +57,7 @@ public class CancelRequest { public static final String JSON_PROPERTY_MPI_DATA = "mpiData"; private ThreeDSecureData mpiData; - public static final String JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE = - "originalMerchantReference"; + public static final String JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE = "originalMerchantReference"; private String originalMerchantReference; public static final String JSON_PROPERTY_ORIGINAL_REFERENCE = "originalReference"; @@ -66,16 +78,13 @@ public class CancelRequest { public static final String JSON_PROPERTY_UNIQUE_TERMINAL_ID = "uniqueTerminalId"; private String uniqueTerminalId; - public CancelRequest() {} + public CancelRequest() { + } /** - * This field contains additional data, which may be required for a particular modification - * request. The additionalData object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular modification request. The additionalData object consists of entries, each of - * which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. * @return the current {@code CancelRequest} instance, allowing for method chaining */ public CancelRequest additionalData(Map additionalData) { @@ -92,13 +101,8 @@ public CancelRequest putAdditionalDataItem(String key, String additionalDataItem } /** - * This field contains additional data, which may be required for a particular modification - * request. The additionalData object consists of entries, each of which includes the key and - * value. - * - * @return additionalData This field contains additional data, which may be required for a - * particular modification request. The additionalData object consists of entries, each of - * which includes the key and value. + * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * @return additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,13 +111,9 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular modification - * request. The additionalData object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular modification request. The additionalData object consists of entries, each of - * which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -134,7 +134,6 @@ public CancelRequest merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. - * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -157,7 +156,7 @@ public void setMerchantAccount(String merchantAccount) { /** * mpiData * - * @param mpiData + * @param mpiData * @return the current {@code CancelRequest} instance, allowing for method chaining */ public CancelRequest mpiData(ThreeDSecureData mpiData) { @@ -167,8 +166,7 @@ public CancelRequest mpiData(ThreeDSecureData mpiData) { /** * Get mpiData - * - * @return mpiData + * @return mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,7 +177,7 @@ public ThreeDSecureData getMpiData() { /** * mpiData * - * @param mpiData + * @param mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,7 +198,6 @@ public CancelRequest originalMerchantReference(String originalMerchantReference) /** * The original merchant reference to cancel. - * * @return originalMerchantReference The original merchant reference to cancel. */ @JsonProperty(JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE) @@ -221,11 +218,9 @@ public void setOriginalMerchantReference(String originalMerchantReference) { } /** - * The original pspReference of the payment to modify. This reference is returned in: * - * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification * - * @param originalReference The original pspReference of the payment to modify. This reference is - * returned in: * authorisation response * authorisation notification + * @param originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification * @return the current {@code CancelRequest} instance, allowing for method chaining */ public CancelRequest originalReference(String originalReference) { @@ -234,11 +229,8 @@ public CancelRequest originalReference(String originalReference) { } /** - * The original pspReference of the payment to modify. This reference is returned in: * - * authorisation response * authorisation notification - * - * @return originalReference The original pspReference of the payment to modify. This reference is - * returned in: * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * @return originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -247,11 +239,9 @@ public String getOriginalReference() { } /** - * The original pspReference of the payment to modify. This reference is returned in: * - * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification * - * @param originalReference The original pspReference of the payment to modify. This reference is - * returned in: * authorisation response * authorisation notification + * @param originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -262,7 +252,7 @@ public void setOriginalReference(String originalReference) { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic * @return the current {@code CancelRequest} instance, allowing for method chaining */ public CancelRequest platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) { @@ -272,8 +262,7 @@ public CancelRequest platformChargebackLogic(PlatformChargebackLogic platformCha /** * Get platformChargebackLogic - * - * @return platformChargebackLogic + * @return platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,7 +273,7 @@ public PlatformChargebackLogic getPlatformChargebackLogic() { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -293,11 +282,9 @@ public void setPlatformChargebackLogic(PlatformChargebackLogic platformChargebac } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in - * reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in - * Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. * @return the current {@code CancelRequest} instance, allowing for method chaining */ public CancelRequest reference(String reference) { @@ -306,11 +293,8 @@ public CancelRequest reference(String reference) { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in - * reports. Maximum length: 80 characters. - * - * @return reference Your reference for the payment modification. This reference is visible in - * Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * @return reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -319,11 +303,9 @@ public String getReference() { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in - * reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in - * Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -332,13 +314,9 @@ public void setReference(String reference) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * - * @param splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * @return the current {@code CancelRequest} instance, allowing for method chaining */ public CancelRequest splits(List splits) { @@ -355,13 +333,8 @@ public CancelRequest addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). - * - * @return splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * @return splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -370,13 +343,9 @@ public List getSplits() { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * - * @param splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -387,8 +356,7 @@ public void setSplits(List splits) { /** * The transaction reference provided by the PED. For point-of-sale integrations only. * - * @param tenderReference The transaction reference provided by the PED. For point-of-sale - * integrations only. + * @param tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. * @return the current {@code CancelRequest} instance, allowing for method chaining */ public CancelRequest tenderReference(String tenderReference) { @@ -398,9 +366,7 @@ public CancelRequest tenderReference(String tenderReference) { /** * The transaction reference provided by the PED. For point-of-sale integrations only. - * - * @return tenderReference The transaction reference provided by the PED. For point-of-sale - * integrations only. + * @return tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_TENDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -411,8 +377,7 @@ public String getTenderReference() { /** * The transaction reference provided by the PED. For point-of-sale integrations only. * - * @param tenderReference The transaction reference provided by the PED. For point-of-sale - * integrations only. + * @param tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_TENDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -421,11 +386,9 @@ public void setTenderReference(String tenderReference) { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale - * integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. * - * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. - * For point-of-sale integrations only. + * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. * @return the current {@code CancelRequest} instance, allowing for method chaining */ public CancelRequest uniqueTerminalId(String uniqueTerminalId) { @@ -434,11 +397,8 @@ public CancelRequest uniqueTerminalId(String uniqueTerminalId) { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale - * integrations only. - * - * @return uniqueTerminalId Unique terminal ID for the PED that originally processed the request. - * For point-of-sale integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * @return uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -447,11 +407,9 @@ public String getUniqueTerminalId() { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale - * integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. * - * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. - * For point-of-sale integrations only. + * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -459,7 +417,9 @@ public void setUniqueTerminalId(String uniqueTerminalId) { this.uniqueTerminalId = uniqueTerminalId; } - /** Return true if this CancelRequest object is equal to o. */ + /** + * Return true if this CancelRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -469,31 +429,21 @@ public boolean equals(Object o) { return false; } CancelRequest cancelRequest = (CancelRequest) o; - return Objects.equals(this.additionalData, cancelRequest.additionalData) - && Objects.equals(this.merchantAccount, cancelRequest.merchantAccount) - && Objects.equals(this.mpiData, cancelRequest.mpiData) - && Objects.equals(this.originalMerchantReference, cancelRequest.originalMerchantReference) - && Objects.equals(this.originalReference, cancelRequest.originalReference) - && Objects.equals(this.platformChargebackLogic, cancelRequest.platformChargebackLogic) - && Objects.equals(this.reference, cancelRequest.reference) - && Objects.equals(this.splits, cancelRequest.splits) - && Objects.equals(this.tenderReference, cancelRequest.tenderReference) - && Objects.equals(this.uniqueTerminalId, cancelRequest.uniqueTerminalId); + return Objects.equals(this.additionalData, cancelRequest.additionalData) && + Objects.equals(this.merchantAccount, cancelRequest.merchantAccount) && + Objects.equals(this.mpiData, cancelRequest.mpiData) && + Objects.equals(this.originalMerchantReference, cancelRequest.originalMerchantReference) && + Objects.equals(this.originalReference, cancelRequest.originalReference) && + Objects.equals(this.platformChargebackLogic, cancelRequest.platformChargebackLogic) && + Objects.equals(this.reference, cancelRequest.reference) && + Objects.equals(this.splits, cancelRequest.splits) && + Objects.equals(this.tenderReference, cancelRequest.tenderReference) && + Objects.equals(this.uniqueTerminalId, cancelRequest.uniqueTerminalId); } @Override public int hashCode() { - return Objects.hash( - additionalData, - merchantAccount, - mpiData, - originalMerchantReference, - originalReference, - platformChargebackLogic, - reference, - splits, - tenderReference, - uniqueTerminalId); + return Objects.hash(additionalData, merchantAccount, mpiData, originalMerchantReference, originalReference, platformChargebackLogic, reference, splits, tenderReference, uniqueTerminalId); } @Override @@ -503,13 +453,9 @@ public String toString() { sb.append(" additionalData: ").append(toIndentedString(additionalData)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" mpiData: ").append(toIndentedString(mpiData)).append("\n"); - sb.append(" originalMerchantReference: ") - .append(toIndentedString(originalMerchantReference)) - .append("\n"); + sb.append(" originalMerchantReference: ").append(toIndentedString(originalMerchantReference)).append("\n"); sb.append(" originalReference: ").append(toIndentedString(originalReference)).append("\n"); - sb.append(" platformChargebackLogic: ") - .append(toIndentedString(platformChargebackLogic)) - .append("\n"); + sb.append(" platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" tenderReference: ").append(toIndentedString(tenderReference)).append("\n"); @@ -519,7 +465,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -528,7 +475,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CancelRequest given an JSON string * * @param jsonString JSON string @@ -538,12 +485,11 @@ private String toIndentedString(Object o) { public static CancelRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CancelRequest.class); } - - /** - * Convert an instance of CancelRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CancelRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/CaptureRequest.java b/src/main/java/com/adyen/model/payment/CaptureRequest.java index 8d7fb019d..c5a081d0c 100644 --- a/src/main/java/com/adyen/model/payment/CaptureRequest.java +++ b/src/main/java/com/adyen/model/payment/CaptureRequest.java @@ -2,26 +2,39 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.payment.Amount; +import com.adyen.model.payment.PlatformChargebackLogic; +import com.adyen.model.payment.Split; +import com.adyen.model.payment.ThreeDSecureData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** CaptureRequest */ + +/** + * CaptureRequest + */ @JsonPropertyOrder({ CaptureRequest.JSON_PROPERTY_ADDITIONAL_DATA, CaptureRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, @@ -35,6 +48,7 @@ CaptureRequest.JSON_PROPERTY_TENDER_REFERENCE, CaptureRequest.JSON_PROPERTY_UNIQUE_TERMINAL_ID }) + public class CaptureRequest { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -48,8 +62,7 @@ public class CaptureRequest { public static final String JSON_PROPERTY_MPI_DATA = "mpiData"; private ThreeDSecureData mpiData; - public static final String JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE = - "originalMerchantReference"; + public static final String JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE = "originalMerchantReference"; private String originalMerchantReference; public static final String JSON_PROPERTY_ORIGINAL_REFERENCE = "originalReference"; @@ -70,16 +83,13 @@ public class CaptureRequest { public static final String JSON_PROPERTY_UNIQUE_TERMINAL_ID = "uniqueTerminalId"; private String uniqueTerminalId; - public CaptureRequest() {} + public CaptureRequest() { + } /** - * This field contains additional data, which may be required for a particular modification - * request. The additionalData object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular modification request. The additionalData object consists of entries, each of - * which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. * @return the current {@code CaptureRequest} instance, allowing for method chaining */ public CaptureRequest additionalData(Map additionalData) { @@ -96,13 +106,8 @@ public CaptureRequest putAdditionalDataItem(String key, String additionalDataIte } /** - * This field contains additional data, which may be required for a particular modification - * request. The additionalData object consists of entries, each of which includes the key and - * value. - * - * @return additionalData This field contains additional data, which may be required for a - * particular modification request. The additionalData object consists of entries, each of - * which includes the key and value. + * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * @return additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,13 +116,9 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular modification - * request. The additionalData object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular modification request. The additionalData object consists of entries, each of - * which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,7 +139,6 @@ public CaptureRequest merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. - * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -161,7 +161,7 @@ public void setMerchantAccount(String merchantAccount) { /** * modificationAmount * - * @param modificationAmount + * @param modificationAmount * @return the current {@code CaptureRequest} instance, allowing for method chaining */ public CaptureRequest modificationAmount(Amount modificationAmount) { @@ -171,8 +171,7 @@ public CaptureRequest modificationAmount(Amount modificationAmount) { /** * Get modificationAmount - * - * @return modificationAmount + * @return modificationAmount */ @JsonProperty(JSON_PROPERTY_MODIFICATION_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,7 +182,7 @@ public Amount getModificationAmount() { /** * modificationAmount * - * @param modificationAmount + * @param modificationAmount */ @JsonProperty(JSON_PROPERTY_MODIFICATION_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,7 +193,7 @@ public void setModificationAmount(Amount modificationAmount) { /** * mpiData * - * @param mpiData + * @param mpiData * @return the current {@code CaptureRequest} instance, allowing for method chaining */ public CaptureRequest mpiData(ThreeDSecureData mpiData) { @@ -204,8 +203,7 @@ public CaptureRequest mpiData(ThreeDSecureData mpiData) { /** * Get mpiData - * - * @return mpiData + * @return mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -216,7 +214,7 @@ public ThreeDSecureData getMpiData() { /** * mpiData * - * @param mpiData + * @param mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,7 +235,6 @@ public CaptureRequest originalMerchantReference(String originalMerchantReference /** * The original merchant reference to cancel. - * * @return originalMerchantReference The original merchant reference to cancel. */ @JsonProperty(JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE) @@ -258,11 +255,9 @@ public void setOriginalMerchantReference(String originalMerchantReference) { } /** - * The original pspReference of the payment to modify. This reference is returned in: * - * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification * - * @param originalReference The original pspReference of the payment to modify. This reference is - * returned in: * authorisation response * authorisation notification + * @param originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification * @return the current {@code CaptureRequest} instance, allowing for method chaining */ public CaptureRequest originalReference(String originalReference) { @@ -271,11 +266,8 @@ public CaptureRequest originalReference(String originalReference) { } /** - * The original pspReference of the payment to modify. This reference is returned in: * - * authorisation response * authorisation notification - * - * @return originalReference The original pspReference of the payment to modify. This reference is - * returned in: * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * @return originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,11 +276,9 @@ public String getOriginalReference() { } /** - * The original pspReference of the payment to modify. This reference is returned in: * - * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification * - * @param originalReference The original pspReference of the payment to modify. This reference is - * returned in: * authorisation response * authorisation notification + * @param originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -299,7 +289,7 @@ public void setOriginalReference(String originalReference) { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic * @return the current {@code CaptureRequest} instance, allowing for method chaining */ public CaptureRequest platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) { @@ -309,8 +299,7 @@ public CaptureRequest platformChargebackLogic(PlatformChargebackLogic platformCh /** * Get platformChargebackLogic - * - * @return platformChargebackLogic + * @return platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -321,7 +310,7 @@ public PlatformChargebackLogic getPlatformChargebackLogic() { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -330,11 +319,9 @@ public void setPlatformChargebackLogic(PlatformChargebackLogic platformChargebac } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in - * reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in - * Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. * @return the current {@code CaptureRequest} instance, allowing for method chaining */ public CaptureRequest reference(String reference) { @@ -343,11 +330,8 @@ public CaptureRequest reference(String reference) { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in - * reports. Maximum length: 80 characters. - * - * @return reference Your reference for the payment modification. This reference is visible in - * Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * @return reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -356,11 +340,9 @@ public String getReference() { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in - * reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in - * Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -369,13 +351,9 @@ public void setReference(String reference) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * - * @param splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * @return the current {@code CaptureRequest} instance, allowing for method chaining */ public CaptureRequest splits(List splits) { @@ -392,13 +370,8 @@ public CaptureRequest addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). - * - * @return splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * @return splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -407,13 +380,9 @@ public List getSplits() { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * - * @param splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -424,8 +393,7 @@ public void setSplits(List splits) { /** * The transaction reference provided by the PED. For point-of-sale integrations only. * - * @param tenderReference The transaction reference provided by the PED. For point-of-sale - * integrations only. + * @param tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. * @return the current {@code CaptureRequest} instance, allowing for method chaining */ public CaptureRequest tenderReference(String tenderReference) { @@ -435,9 +403,7 @@ public CaptureRequest tenderReference(String tenderReference) { /** * The transaction reference provided by the PED. For point-of-sale integrations only. - * - * @return tenderReference The transaction reference provided by the PED. For point-of-sale - * integrations only. + * @return tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_TENDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -448,8 +414,7 @@ public String getTenderReference() { /** * The transaction reference provided by the PED. For point-of-sale integrations only. * - * @param tenderReference The transaction reference provided by the PED. For point-of-sale - * integrations only. + * @param tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_TENDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -458,11 +423,9 @@ public void setTenderReference(String tenderReference) { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale - * integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. * - * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. - * For point-of-sale integrations only. + * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. * @return the current {@code CaptureRequest} instance, allowing for method chaining */ public CaptureRequest uniqueTerminalId(String uniqueTerminalId) { @@ -471,11 +434,8 @@ public CaptureRequest uniqueTerminalId(String uniqueTerminalId) { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale - * integrations only. - * - * @return uniqueTerminalId Unique terminal ID for the PED that originally processed the request. - * For point-of-sale integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * @return uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -484,11 +444,9 @@ public String getUniqueTerminalId() { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale - * integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. * - * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. - * For point-of-sale integrations only. + * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -496,7 +454,9 @@ public void setUniqueTerminalId(String uniqueTerminalId) { this.uniqueTerminalId = uniqueTerminalId; } - /** Return true if this CaptureRequest object is equal to o. */ + /** + * Return true if this CaptureRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -506,33 +466,22 @@ public boolean equals(Object o) { return false; } CaptureRequest captureRequest = (CaptureRequest) o; - return Objects.equals(this.additionalData, captureRequest.additionalData) - && Objects.equals(this.merchantAccount, captureRequest.merchantAccount) - && Objects.equals(this.modificationAmount, captureRequest.modificationAmount) - && Objects.equals(this.mpiData, captureRequest.mpiData) - && Objects.equals(this.originalMerchantReference, captureRequest.originalMerchantReference) - && Objects.equals(this.originalReference, captureRequest.originalReference) - && Objects.equals(this.platformChargebackLogic, captureRequest.platformChargebackLogic) - && Objects.equals(this.reference, captureRequest.reference) - && Objects.equals(this.splits, captureRequest.splits) - && Objects.equals(this.tenderReference, captureRequest.tenderReference) - && Objects.equals(this.uniqueTerminalId, captureRequest.uniqueTerminalId); + return Objects.equals(this.additionalData, captureRequest.additionalData) && + Objects.equals(this.merchantAccount, captureRequest.merchantAccount) && + Objects.equals(this.modificationAmount, captureRequest.modificationAmount) && + Objects.equals(this.mpiData, captureRequest.mpiData) && + Objects.equals(this.originalMerchantReference, captureRequest.originalMerchantReference) && + Objects.equals(this.originalReference, captureRequest.originalReference) && + Objects.equals(this.platformChargebackLogic, captureRequest.platformChargebackLogic) && + Objects.equals(this.reference, captureRequest.reference) && + Objects.equals(this.splits, captureRequest.splits) && + Objects.equals(this.tenderReference, captureRequest.tenderReference) && + Objects.equals(this.uniqueTerminalId, captureRequest.uniqueTerminalId); } @Override public int hashCode() { - return Objects.hash( - additionalData, - merchantAccount, - modificationAmount, - mpiData, - originalMerchantReference, - originalReference, - platformChargebackLogic, - reference, - splits, - tenderReference, - uniqueTerminalId); + return Objects.hash(additionalData, merchantAccount, modificationAmount, mpiData, originalMerchantReference, originalReference, platformChargebackLogic, reference, splits, tenderReference, uniqueTerminalId); } @Override @@ -543,13 +492,9 @@ public String toString() { sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" modificationAmount: ").append(toIndentedString(modificationAmount)).append("\n"); sb.append(" mpiData: ").append(toIndentedString(mpiData)).append("\n"); - sb.append(" originalMerchantReference: ") - .append(toIndentedString(originalMerchantReference)) - .append("\n"); + sb.append(" originalMerchantReference: ").append(toIndentedString(originalMerchantReference)).append("\n"); sb.append(" originalReference: ").append(toIndentedString(originalReference)).append("\n"); - sb.append(" platformChargebackLogic: ") - .append(toIndentedString(platformChargebackLogic)) - .append("\n"); + sb.append(" platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" tenderReference: ").append(toIndentedString(tenderReference)).append("\n"); @@ -559,7 +504,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -568,7 +514,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CaptureRequest given an JSON string * * @param jsonString JSON string @@ -578,12 +524,11 @@ private String toIndentedString(Object o) { public static CaptureRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CaptureRequest.class); } - - /** - * Convert an instance of CaptureRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CaptureRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/Card.java b/src/main/java/com/adyen/model/payment/Card.java index b80b78b22..2e92cda0e 100644 --- a/src/main/java/com/adyen/model/payment/Card.java +++ b/src/main/java/com/adyen/model/payment/Card.java @@ -2,22 +2,31 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Card */ + +/** + * Card + */ @JsonPropertyOrder({ Card.JSON_PROPERTY_CVC, Card.JSON_PROPERTY_EXPIRY_MONTH, @@ -28,6 +37,7 @@ Card.JSON_PROPERTY_START_MONTH, Card.JSON_PROPERTY_START_YEAR }) + public class Card { public static final String JSON_PROPERTY_CVC = "cvc"; private String cvc; @@ -53,28 +63,13 @@ public class Card { public static final String JSON_PROPERTY_START_YEAR = "startYear"; private String startYear; - public Card() {} + public Card() { + } /** - * The [card verification - * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) - * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 - * digits * CID – length: 4 digits > If you are using [Client-Side - * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code - * is present in the encrypted data. You must never post the card details to the server. > This - * field must be always present in a [one-click payment - * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value - * is returned in a response, it is always empty because it is not stored. + * The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. * - * @param cvc The [card verification - * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) - * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: - * 3 digits * CID – length: 4 digits > If you are using [Client-Side - * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC - * code is present in the encrypted data. You must never post the card details to the server. - * > This field must be always present in a [one-click payment - * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this - * value is returned in a response, it is always empty because it is not stored. + * @param cvc The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. * @return the current {@code Card} instance, allowing for method chaining */ public Card cvc(String cvc) { @@ -83,25 +78,8 @@ public Card cvc(String cvc) { } /** - * The [card verification - * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) - * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 - * digits * CID – length: 4 digits > If you are using [Client-Side - * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code - * is present in the encrypted data. You must never post the card details to the server. > This - * field must be always present in a [one-click payment - * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value - * is returned in a response, it is always empty because it is not stored. - * - * @return cvc The [card verification - * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) - * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: - * 3 digits * CID – length: 4 digits > If you are using [Client-Side - * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC - * code is present in the encrypted data. You must never post the card details to the server. - * > This field must be always present in a [one-click payment - * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this - * value is returned in a response, it is always empty because it is not stored. + * The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. + * @return cvc The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,25 +88,9 @@ public String getCvc() { } /** - * The [card verification - * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) - * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 - * digits * CID – length: 4 digits > If you are using [Client-Side - * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code - * is present in the encrypted data. You must never post the card details to the server. > This - * field must be always present in a [one-click payment - * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value - * is returned in a response, it is always empty because it is not stored. + * The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. * - * @param cvc The [card verification - * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) - * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: - * 3 digits * CID – length: 4 digits > If you are using [Client-Side - * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC - * code is present in the encrypted data. You must never post the card details to the server. - * > This field must be always present in a [one-click payment - * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this - * value is returned in a response, it is always empty because it is not stored. + * @param cvc The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,11 +99,9 @@ public void setCvc(String cvc) { } /** - * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 - * = March * 11 = November + * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November * - * @param expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For - * example: * 03 = March * 11 = November + * @param expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November * @return the current {@code Card} instance, allowing for method chaining */ public Card expiryMonth(String expiryMonth) { @@ -150,11 +110,8 @@ public Card expiryMonth(String expiryMonth) { } /** - * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 - * = March * 11 = November - * - * @return expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For - * example: * 03 = March * 11 = November + * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November + * @return expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,11 +120,9 @@ public String getExpiryMonth() { } /** - * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 - * = March * 11 = November + * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November * - * @param expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For - * example: * 03 = March * 11 = November + * @param expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,7 +143,6 @@ public Card expiryYear(String expiryYear) { /** * The card expiry year. Format: 4 digits. For example: 2020 - * * @return expiryYear The card expiry year. Format: 4 digits. For example: 2020 */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @@ -221,7 +175,6 @@ public Card holderName(String holderName) { /** * The name of the cardholder, as printed on the card. - * * @return holderName The name of the cardholder, as printed on the card. */ @JsonProperty(JSON_PROPERTY_HOLDER_NAME) @@ -254,7 +207,6 @@ public Card issueNumber(String issueNumber) { /** * The issue number of the card (for some UK debit cards only). - * * @return issueNumber The issue number of the card (for some UK debit cards only). */ @JsonProperty(JSON_PROPERTY_ISSUE_NUMBER) @@ -275,11 +227,9 @@ public void setIssueNumber(String issueNumber) { } /** - * The card number (4-19 characters). Do not use any separators. When this value is returned in a - * response, only the last 4 digits of the card number are returned. + * The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. * - * @param number The card number (4-19 characters). Do not use any separators. When this value is - * returned in a response, only the last 4 digits of the card number are returned. + * @param number The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. * @return the current {@code Card} instance, allowing for method chaining */ public Card number(String number) { @@ -288,11 +238,8 @@ public Card number(String number) { } /** - * The card number (4-19 characters). Do not use any separators. When this value is returned in a - * response, only the last 4 digits of the card number are returned. - * - * @return number The card number (4-19 characters). Do not use any separators. When this value is - * returned in a response, only the last 4 digits of the card number are returned. + * The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. + * @return number The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -301,11 +248,9 @@ public String getNumber() { } /** - * The card number (4-19 characters). Do not use any separators. When this value is returned in a - * response, only the last 4 digits of the card number are returned. + * The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. * - * @param number The card number (4-19 characters). Do not use any separators. When this value is - * returned in a response, only the last 4 digits of the card number are returned. + * @param number The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -326,7 +271,6 @@ public Card startMonth(String startMonth) { /** * The month component of the start date (for some UK debit cards only). - * * @return startMonth The month component of the start date (for some UK debit cards only). */ @JsonProperty(JSON_PROPERTY_START_MONTH) @@ -359,7 +303,6 @@ public Card startYear(String startYear) { /** * The year component of the start date (for some UK debit cards only). - * * @return startYear The year component of the start date (for some UK debit cards only). */ @JsonProperty(JSON_PROPERTY_START_YEAR) @@ -379,7 +322,9 @@ public void setStartYear(String startYear) { this.startYear = startYear; } - /** Return true if this Card object is equal to o. */ + /** + * Return true if this Card object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -389,20 +334,19 @@ public boolean equals(Object o) { return false; } Card card = (Card) o; - return Objects.equals(this.cvc, card.cvc) - && Objects.equals(this.expiryMonth, card.expiryMonth) - && Objects.equals(this.expiryYear, card.expiryYear) - && Objects.equals(this.holderName, card.holderName) - && Objects.equals(this.issueNumber, card.issueNumber) - && Objects.equals(this.number, card.number) - && Objects.equals(this.startMonth, card.startMonth) - && Objects.equals(this.startYear, card.startYear); + return Objects.equals(this.cvc, card.cvc) && + Objects.equals(this.expiryMonth, card.expiryMonth) && + Objects.equals(this.expiryYear, card.expiryYear) && + Objects.equals(this.holderName, card.holderName) && + Objects.equals(this.issueNumber, card.issueNumber) && + Objects.equals(this.number, card.number) && + Objects.equals(this.startMonth, card.startMonth) && + Objects.equals(this.startYear, card.startYear); } @Override public int hashCode() { - return Objects.hash( - cvc, expiryMonth, expiryYear, holderName, issueNumber, number, startMonth, startYear); + return Objects.hash(cvc, expiryMonth, expiryYear, holderName, issueNumber, number, startMonth, startYear); } @Override @@ -422,7 +366,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -431,7 +376,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Card given an JSON string * * @param jsonString JSON string @@ -441,12 +386,11 @@ private String toIndentedString(Object o) { public static Card fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Card.class); } - - /** - * Convert an instance of Card to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Card to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/CommonField.java b/src/main/java/com/adyen/model/payment/CommonField.java index 6a9f8dd6a..748f00167 100644 --- a/src/main/java/com/adyen/model/payment/CommonField.java +++ b/src/main/java/com/adyen/model/payment/CommonField.java @@ -2,23 +2,36 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** CommonField */ -@JsonPropertyOrder({CommonField.JSON_PROPERTY_NAME, CommonField.JSON_PROPERTY_VERSION}) + +/** + * CommonField + */ +@JsonPropertyOrder({ + CommonField.JSON_PROPERTY_NAME, + CommonField.JSON_PROPERTY_VERSION +}) + public class CommonField { public static final String JSON_PROPERTY_NAME = "name"; private String name; @@ -26,7 +39,8 @@ public class CommonField { public static final String JSON_PROPERTY_VERSION = "version"; private String version; - public CommonField() {} + public CommonField() { + } /** * Name of the field. For example, Name of External Platform. @@ -41,7 +55,6 @@ public CommonField name(String name) { /** * Name of the field. For example, Name of External Platform. - * * @return name Name of the field. For example, Name of External Platform. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -74,7 +87,6 @@ public CommonField version(String version) { /** * Version of the field. For example, Version of External Platform. - * * @return version Version of the field. For example, Version of External Platform. */ @JsonProperty(JSON_PROPERTY_VERSION) @@ -94,7 +106,9 @@ public void setVersion(String version) { this.version = version; } - /** Return true if this CommonField object is equal to o. */ + /** + * Return true if this CommonField object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -104,8 +118,8 @@ public boolean equals(Object o) { return false; } CommonField commonField = (CommonField) o; - return Objects.equals(this.name, commonField.name) - && Objects.equals(this.version, commonField.version); + return Objects.equals(this.name, commonField.name) && + Objects.equals(this.version, commonField.version); } @Override @@ -124,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CommonField given an JSON string * * @param jsonString JSON string @@ -143,12 +158,11 @@ private String toIndentedString(Object o) { public static CommonField fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CommonField.class); } - - /** - * Convert an instance of CommonField to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CommonField to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/DeviceRenderOptions.java b/src/main/java/com/adyen/model/payment/DeviceRenderOptions.java index 001c1f0cf..44a126c40 100644 --- a/src/main/java/com/adyen/model/payment/DeviceRenderOptions.java +++ b/src/main/java/com/adyen/model/payment/DeviceRenderOptions.java @@ -2,35 +2,44 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** DeviceRenderOptions */ + +/** + * DeviceRenderOptions + */ @JsonPropertyOrder({ DeviceRenderOptions.JSON_PROPERTY_SDK_INTERFACE, DeviceRenderOptions.JSON_PROPERTY_SDK_UI_TYPE }) + public class DeviceRenderOptions { - /** Supported SDK interface types. Allowed values: * native * html * both */ + /** + * Supported SDK interface types. Allowed values: * native * html * both + */ public enum SdkInterfaceEnum { + NATIVE(String.valueOf("native")), HTML(String.valueOf("html")), @@ -42,7 +51,7 @@ public enum SdkInterfaceEnum { private String value; SdkInterfaceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -63,11 +72,7 @@ public static SdkInterfaceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "SdkInterfaceEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(SdkInterfaceEnum.values())); + LOG.warning("SdkInterfaceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(SdkInterfaceEnum.values())); return null; } } @@ -75,8 +80,11 @@ public static SdkInterfaceEnum fromValue(String value) { public static final String JSON_PROPERTY_SDK_INTERFACE = "sdkInterface"; private SdkInterfaceEnum sdkInterface; - /** Gets or Sets sdkUiType */ + /** + * Gets or Sets sdkUiType + */ public enum SdkUiTypeEnum { + MULTISELECT(String.valueOf("multiSelect")), OTHERHTML(String.valueOf("otherHtml")), @@ -92,7 +100,7 @@ public enum SdkUiTypeEnum { private String value; SdkUiTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -113,11 +121,7 @@ public static SdkUiTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "SdkUiTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(SdkUiTypeEnum.values())); + LOG.warning("SdkUiTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(SdkUiTypeEnum.values())); return null; } } @@ -125,7 +129,8 @@ public static SdkUiTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_SDK_UI_TYPE = "sdkUiType"; private List sdkUiType; - public DeviceRenderOptions() {} + public DeviceRenderOptions() { + } /** * Supported SDK interface types. Allowed values: * native * html * both @@ -140,7 +145,6 @@ public DeviceRenderOptions sdkInterface(SdkInterfaceEnum sdkInterface) { /** * Supported SDK interface types. Allowed values: * native * html * both - * * @return sdkInterface Supported SDK interface types. Allowed values: * native * html * both */ @JsonProperty(JSON_PROPERTY_SDK_INTERFACE) @@ -161,11 +165,9 @@ public void setSdkInterface(SdkInterfaceEnum sdkInterface) { } /** - * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * - * outOfBand * otherHtml * multiSelect + * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect * - * @param sdkUiType UI types supported for displaying specific challenges. Allowed values: * text - * * singleSelect * outOfBand * otherHtml * multiSelect + * @param sdkUiType UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect * @return the current {@code DeviceRenderOptions} instance, allowing for method chaining */ public DeviceRenderOptions sdkUiType(List sdkUiType) { @@ -182,11 +184,8 @@ public DeviceRenderOptions addSdkUiTypeItem(SdkUiTypeEnum sdkUiTypeItem) { } /** - * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * - * outOfBand * otherHtml * multiSelect - * - * @return sdkUiType UI types supported for displaying specific challenges. Allowed values: * text - * * singleSelect * outOfBand * otherHtml * multiSelect + * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect + * @return sdkUiType UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect */ @JsonProperty(JSON_PROPERTY_SDK_UI_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,11 +194,9 @@ public List getSdkUiType() { } /** - * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * - * outOfBand * otherHtml * multiSelect + * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect * - * @param sdkUiType UI types supported for displaying specific challenges. Allowed values: * text - * * singleSelect * outOfBand * otherHtml * multiSelect + * @param sdkUiType UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect */ @JsonProperty(JSON_PROPERTY_SDK_UI_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -207,7 +204,9 @@ public void setSdkUiType(List sdkUiType) { this.sdkUiType = sdkUiType; } - /** Return true if this DeviceRenderOptions object is equal to o. */ + /** + * Return true if this DeviceRenderOptions object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -217,8 +216,8 @@ public boolean equals(Object o) { return false; } DeviceRenderOptions deviceRenderOptions = (DeviceRenderOptions) o; - return Objects.equals(this.sdkInterface, deviceRenderOptions.sdkInterface) - && Objects.equals(this.sdkUiType, deviceRenderOptions.sdkUiType); + return Objects.equals(this.sdkInterface, deviceRenderOptions.sdkInterface) && + Objects.equals(this.sdkUiType, deviceRenderOptions.sdkUiType); } @Override @@ -237,7 +236,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -246,23 +246,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DeviceRenderOptions given an JSON string * * @param jsonString JSON string * @return An instance of DeviceRenderOptions - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DeviceRenderOptions + * @throws JsonProcessingException if the JSON string is invalid with respect to DeviceRenderOptions */ public static DeviceRenderOptions fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DeviceRenderOptions.class); } - - /** - * Convert an instance of DeviceRenderOptions to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DeviceRenderOptions to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/DonationRequest.java b/src/main/java/com/adyen/model/payment/DonationRequest.java index 994521ff8..8ba52267c 100644 --- a/src/main/java/com/adyen/model/payment/DonationRequest.java +++ b/src/main/java/com/adyen/model/payment/DonationRequest.java @@ -2,22 +2,33 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.payment.Amount; +import com.adyen.model.payment.PlatformChargebackLogic; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** DonationRequest */ + +/** + * DonationRequest + */ @JsonPropertyOrder({ DonationRequest.JSON_PROPERTY_DONATION_ACCOUNT, DonationRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, @@ -26,6 +37,7 @@ DonationRequest.JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC, DonationRequest.JSON_PROPERTY_REFERENCE }) + public class DonationRequest { public static final String JSON_PROPERTY_DONATION_ACCOUNT = "donationAccount"; private String donationAccount; @@ -45,7 +57,8 @@ public class DonationRequest { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public DonationRequest() {} + public DonationRequest() { + } /** * The Adyen account name of the charity. @@ -60,7 +73,6 @@ public DonationRequest donationAccount(String donationAccount) { /** * The Adyen account name of the charity. - * * @return donationAccount The Adyen account name of the charity. */ @JsonProperty(JSON_PROPERTY_DONATION_ACCOUNT) @@ -93,7 +105,6 @@ public DonationRequest merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. - * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -116,7 +127,7 @@ public void setMerchantAccount(String merchantAccount) { /** * modificationAmount * - * @param modificationAmount + * @param modificationAmount * @return the current {@code DonationRequest} instance, allowing for method chaining */ public DonationRequest modificationAmount(Amount modificationAmount) { @@ -126,8 +137,7 @@ public DonationRequest modificationAmount(Amount modificationAmount) { /** * Get modificationAmount - * - * @return modificationAmount + * @return modificationAmount */ @JsonProperty(JSON_PROPERTY_MODIFICATION_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,7 +148,7 @@ public Amount getModificationAmount() { /** * modificationAmount * - * @param modificationAmount + * @param modificationAmount */ @JsonProperty(JSON_PROPERTY_MODIFICATION_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,11 +157,9 @@ public void setModificationAmount(Amount modificationAmount) { } /** - * The original pspReference of the payment to modify. This reference is returned in: * - * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification * - * @param originalReference The original pspReference of the payment to modify. This reference is - * returned in: * authorisation response * authorisation notification + * @param originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification * @return the current {@code DonationRequest} instance, allowing for method chaining */ public DonationRequest originalReference(String originalReference) { @@ -160,11 +168,8 @@ public DonationRequest originalReference(String originalReference) { } /** - * The original pspReference of the payment to modify. This reference is returned in: * - * authorisation response * authorisation notification - * - * @return originalReference The original pspReference of the payment to modify. This reference is - * returned in: * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * @return originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,11 +178,9 @@ public String getOriginalReference() { } /** - * The original pspReference of the payment to modify. This reference is returned in: * - * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification * - * @param originalReference The original pspReference of the payment to modify. This reference is - * returned in: * authorisation response * authorisation notification + * @param originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,7 +191,7 @@ public void setOriginalReference(String originalReference) { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic * @return the current {@code DonationRequest} instance, allowing for method chaining */ public DonationRequest platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) { @@ -198,8 +201,7 @@ public DonationRequest platformChargebackLogic(PlatformChargebackLogic platformC /** * Get platformChargebackLogic - * - * @return platformChargebackLogic + * @return platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -210,7 +212,7 @@ public PlatformChargebackLogic getPlatformChargebackLogic() { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,11 +221,9 @@ public void setPlatformChargebackLogic(PlatformChargebackLogic platformChargebac } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in - * reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in - * Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. * @return the current {@code DonationRequest} instance, allowing for method chaining */ public DonationRequest reference(String reference) { @@ -232,11 +232,8 @@ public DonationRequest reference(String reference) { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in - * reports. Maximum length: 80 characters. - * - * @return reference Your reference for the payment modification. This reference is visible in - * Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * @return reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -245,11 +242,9 @@ public String getReference() { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in - * reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in - * Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -257,7 +252,9 @@ public void setReference(String reference) { this.reference = reference; } - /** Return true if this DonationRequest object is equal to o. */ + /** + * Return true if this DonationRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -267,23 +264,17 @@ public boolean equals(Object o) { return false; } DonationRequest donationRequest = (DonationRequest) o; - return Objects.equals(this.donationAccount, donationRequest.donationAccount) - && Objects.equals(this.merchantAccount, donationRequest.merchantAccount) - && Objects.equals(this.modificationAmount, donationRequest.modificationAmount) - && Objects.equals(this.originalReference, donationRequest.originalReference) - && Objects.equals(this.platformChargebackLogic, donationRequest.platformChargebackLogic) - && Objects.equals(this.reference, donationRequest.reference); + return Objects.equals(this.donationAccount, donationRequest.donationAccount) && + Objects.equals(this.merchantAccount, donationRequest.merchantAccount) && + Objects.equals(this.modificationAmount, donationRequest.modificationAmount) && + Objects.equals(this.originalReference, donationRequest.originalReference) && + Objects.equals(this.platformChargebackLogic, donationRequest.platformChargebackLogic) && + Objects.equals(this.reference, donationRequest.reference); } @Override public int hashCode() { - return Objects.hash( - donationAccount, - merchantAccount, - modificationAmount, - originalReference, - platformChargebackLogic, - reference); + return Objects.hash(donationAccount, merchantAccount, modificationAmount, originalReference, platformChargebackLogic, reference); } @Override @@ -294,16 +285,15 @@ public String toString() { sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" modificationAmount: ").append(toIndentedString(modificationAmount)).append("\n"); sb.append(" originalReference: ").append(toIndentedString(originalReference)).append("\n"); - sb.append(" platformChargebackLogic: ") - .append(toIndentedString(platformChargebackLogic)) - .append("\n"); + sb.append(" platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -312,7 +302,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DonationRequest given an JSON string * * @param jsonString JSON string @@ -322,12 +312,11 @@ private String toIndentedString(Object o) { public static DonationRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DonationRequest.class); } - - /** - * Convert an instance of DonationRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DonationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ExternalPlatform.java b/src/main/java/com/adyen/model/payment/ExternalPlatform.java index a14e838eb..3595d10d1 100644 --- a/src/main/java/com/adyen/model/payment/ExternalPlatform.java +++ b/src/main/java/com/adyen/model/payment/ExternalPlatform.java @@ -2,27 +2,37 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ExternalPlatform */ + +/** + * ExternalPlatform + */ @JsonPropertyOrder({ ExternalPlatform.JSON_PROPERTY_INTEGRATOR, ExternalPlatform.JSON_PROPERTY_NAME, ExternalPlatform.JSON_PROPERTY_VERSION }) + public class ExternalPlatform { public static final String JSON_PROPERTY_INTEGRATOR = "integrator"; private String integrator; @@ -33,7 +43,8 @@ public class ExternalPlatform { public static final String JSON_PROPERTY_VERSION = "version"; private String version; - public ExternalPlatform() {} + public ExternalPlatform() { + } /** * External platform integrator. @@ -48,7 +59,6 @@ public ExternalPlatform integrator(String integrator) { /** * External platform integrator. - * * @return integrator External platform integrator. */ @JsonProperty(JSON_PROPERTY_INTEGRATOR) @@ -81,7 +91,6 @@ public ExternalPlatform name(String name) { /** * Name of the field. For example, Name of External Platform. - * * @return name Name of the field. For example, Name of External Platform. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -114,7 +123,6 @@ public ExternalPlatform version(String version) { /** * Version of the field. For example, Version of External Platform. - * * @return version Version of the field. For example, Version of External Platform. */ @JsonProperty(JSON_PROPERTY_VERSION) @@ -134,7 +142,9 @@ public void setVersion(String version) { this.version = version; } - /** Return true if this ExternalPlatform object is equal to o. */ + /** + * Return true if this ExternalPlatform object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,9 +154,9 @@ public boolean equals(Object o) { return false; } ExternalPlatform externalPlatform = (ExternalPlatform) o; - return Objects.equals(this.integrator, externalPlatform.integrator) - && Objects.equals(this.name, externalPlatform.name) - && Objects.equals(this.version, externalPlatform.version); + return Objects.equals(this.integrator, externalPlatform.integrator) && + Objects.equals(this.name, externalPlatform.name) && + Objects.equals(this.version, externalPlatform.version); } @Override @@ -166,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ExternalPlatform given an JSON string * * @param jsonString JSON string @@ -185,12 +196,11 @@ private String toIndentedString(Object o) { public static ExternalPlatform fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ExternalPlatform.class); } - - /** - * Convert an instance of ExternalPlatform to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ExternalPlatform to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ForexQuote.java b/src/main/java/com/adyen/model/payment/ForexQuote.java index 6294c4457..dafda310d 100644 --- a/src/main/java/com/adyen/model/payment/ForexQuote.java +++ b/src/main/java/com/adyen/model/payment/ForexQuote.java @@ -2,23 +2,33 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.payment.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.time.OffsetDateTime; -import java.util.*; -/** ForexQuote */ + +/** + * ForexQuote + */ @JsonPropertyOrder({ ForexQuote.JSON_PROPERTY_ACCOUNT, ForexQuote.JSON_PROPERTY_ACCOUNT_TYPE, @@ -33,6 +43,7 @@ ForexQuote.JSON_PROPERTY_TYPE, ForexQuote.JSON_PROPERTY_VALID_TILL }) + public class ForexQuote { public static final String JSON_PROPERTY_ACCOUNT = "account"; private String account; @@ -70,7 +81,8 @@ public class ForexQuote { public static final String JSON_PROPERTY_VALID_TILL = "validTill"; private OffsetDateTime validTill; - public ForexQuote() {} + public ForexQuote() { + } /** * The account name. @@ -85,7 +97,6 @@ public ForexQuote account(String account) { /** * The account name. - * * @return account The account name. */ @JsonProperty(JSON_PROPERTY_ACCOUNT) @@ -118,7 +129,6 @@ public ForexQuote accountType(String accountType) { /** * The account type. - * * @return accountType The account type. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @@ -141,7 +151,7 @@ public void setAccountType(String accountType) { /** * baseAmount * - * @param baseAmount + * @param baseAmount * @return the current {@code ForexQuote} instance, allowing for method chaining */ public ForexQuote baseAmount(Amount baseAmount) { @@ -151,8 +161,7 @@ public ForexQuote baseAmount(Amount baseAmount) { /** * Get baseAmount - * - * @return baseAmount + * @return baseAmount */ @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,7 +172,7 @@ public Amount getBaseAmount() { /** * baseAmount * - * @param baseAmount + * @param baseAmount */ @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -184,7 +193,6 @@ public ForexQuote basePoints(Integer basePoints) { /** * The base points. - * * @return basePoints The base points. */ @JsonProperty(JSON_PROPERTY_BASE_POINTS) @@ -207,7 +215,7 @@ public void setBasePoints(Integer basePoints) { /** * buy * - * @param buy + * @param buy * @return the current {@code ForexQuote} instance, allowing for method chaining */ public ForexQuote buy(Amount buy) { @@ -217,8 +225,7 @@ public ForexQuote buy(Amount buy) { /** * Get buy - * - * @return buy + * @return buy */ @JsonProperty(JSON_PROPERTY_BUY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -229,7 +236,7 @@ public Amount getBuy() { /** * buy * - * @param buy + * @param buy */ @JsonProperty(JSON_PROPERTY_BUY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,7 +247,7 @@ public void setBuy(Amount buy) { /** * interbank * - * @param interbank + * @param interbank * @return the current {@code ForexQuote} instance, allowing for method chaining */ public ForexQuote interbank(Amount interbank) { @@ -250,8 +257,7 @@ public ForexQuote interbank(Amount interbank) { /** * Get interbank - * - * @return interbank + * @return interbank */ @JsonProperty(JSON_PROPERTY_INTERBANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -262,7 +268,7 @@ public Amount getInterbank() { /** * interbank * - * @param interbank + * @param interbank */ @JsonProperty(JSON_PROPERTY_INTERBANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -283,7 +289,6 @@ public ForexQuote reference(String reference) { /** * The reference assigned to the forex quote request. - * * @return reference The reference assigned to the forex quote request. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -306,7 +311,7 @@ public void setReference(String reference) { /** * sell * - * @param sell + * @param sell * @return the current {@code ForexQuote} instance, allowing for method chaining */ public ForexQuote sell(Amount sell) { @@ -316,8 +321,7 @@ public ForexQuote sell(Amount sell) { /** * Get sell - * - * @return sell + * @return sell */ @JsonProperty(JSON_PROPERTY_SELL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -328,7 +332,7 @@ public Amount getSell() { /** * sell * - * @param sell + * @param sell */ @JsonProperty(JSON_PROPERTY_SELL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -349,7 +353,6 @@ public ForexQuote signature(String signature) { /** * The signature to validate the integrity. - * * @return signature The signature to validate the integrity. */ @JsonProperty(JSON_PROPERTY_SIGNATURE) @@ -382,7 +385,6 @@ public ForexQuote source(String source) { /** * The source of the forex quote. - * * @return source The source of the forex quote. */ @JsonProperty(JSON_PROPERTY_SOURCE) @@ -415,7 +417,6 @@ public ForexQuote type(String type) { /** * The type of forex. - * * @return type The type of forex. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -448,7 +449,6 @@ public ForexQuote validTill(OffsetDateTime validTill) { /** * The date until which the forex quote is valid. - * * @return validTill The date until which the forex quote is valid. */ @JsonProperty(JSON_PROPERTY_VALID_TILL) @@ -468,7 +468,9 @@ public void setValidTill(OffsetDateTime validTill) { this.validTill = validTill; } - /** Return true if this ForexQuote object is equal to o. */ + /** + * Return true if this ForexQuote object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -478,35 +480,23 @@ public boolean equals(Object o) { return false; } ForexQuote forexQuote = (ForexQuote) o; - return Objects.equals(this.account, forexQuote.account) - && Objects.equals(this.accountType, forexQuote.accountType) - && Objects.equals(this.baseAmount, forexQuote.baseAmount) - && Objects.equals(this.basePoints, forexQuote.basePoints) - && Objects.equals(this.buy, forexQuote.buy) - && Objects.equals(this.interbank, forexQuote.interbank) - && Objects.equals(this.reference, forexQuote.reference) - && Objects.equals(this.sell, forexQuote.sell) - && Objects.equals(this.signature, forexQuote.signature) - && Objects.equals(this.source, forexQuote.source) - && Objects.equals(this.type, forexQuote.type) - && Objects.equals(this.validTill, forexQuote.validTill); + return Objects.equals(this.account, forexQuote.account) && + Objects.equals(this.accountType, forexQuote.accountType) && + Objects.equals(this.baseAmount, forexQuote.baseAmount) && + Objects.equals(this.basePoints, forexQuote.basePoints) && + Objects.equals(this.buy, forexQuote.buy) && + Objects.equals(this.interbank, forexQuote.interbank) && + Objects.equals(this.reference, forexQuote.reference) && + Objects.equals(this.sell, forexQuote.sell) && + Objects.equals(this.signature, forexQuote.signature) && + Objects.equals(this.source, forexQuote.source) && + Objects.equals(this.type, forexQuote.type) && + Objects.equals(this.validTill, forexQuote.validTill); } @Override public int hashCode() { - return Objects.hash( - account, - accountType, - baseAmount, - basePoints, - buy, - interbank, - reference, - sell, - signature, - source, - type, - validTill); + return Objects.hash(account, accountType, baseAmount, basePoints, buy, interbank, reference, sell, signature, source, type, validTill); } @Override @@ -530,7 +520,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -539,7 +530,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ForexQuote given an JSON string * * @param jsonString JSON string @@ -549,12 +540,11 @@ private String toIndentedString(Object o) { public static ForexQuote fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ForexQuote.class); } - - /** - * Convert an instance of ForexQuote to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ForexQuote to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/FraudCheckResult.java b/src/main/java/com/adyen/model/payment/FraudCheckResult.java index b07bd0e82..fdffac260 100644 --- a/src/main/java/com/adyen/model/payment/FraudCheckResult.java +++ b/src/main/java/com/adyen/model/payment/FraudCheckResult.java @@ -2,27 +2,37 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** FraudCheckResult */ + +/** + * FraudCheckResult + */ @JsonPropertyOrder({ FraudCheckResult.JSON_PROPERTY_ACCOUNT_SCORE, FraudCheckResult.JSON_PROPERTY_CHECK_ID, FraudCheckResult.JSON_PROPERTY_NAME }) + public class FraudCheckResult { public static final String JSON_PROPERTY_ACCOUNT_SCORE = "accountScore"; private Integer accountScore; @@ -33,7 +43,8 @@ public class FraudCheckResult { public static final String JSON_PROPERTY_NAME = "name"; private String name; - public FraudCheckResult() {} + public FraudCheckResult() { + } /** * The fraud score generated by the risk check. @@ -48,7 +59,6 @@ public FraudCheckResult accountScore(Integer accountScore) { /** * The fraud score generated by the risk check. - * * @return accountScore The fraud score generated by the risk check. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_SCORE) @@ -81,7 +91,6 @@ public FraudCheckResult checkId(Integer checkId) { /** * The ID of the risk check. - * * @return checkId The ID of the risk check. */ @JsonProperty(JSON_PROPERTY_CHECK_ID) @@ -114,7 +123,6 @@ public FraudCheckResult name(String name) { /** * The name of the risk check. - * * @return name The name of the risk check. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -134,7 +142,9 @@ public void setName(String name) { this.name = name; } - /** Return true if this FraudCheckResult object is equal to o. */ + /** + * Return true if this FraudCheckResult object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,9 +154,9 @@ public boolean equals(Object o) { return false; } FraudCheckResult fraudCheckResult = (FraudCheckResult) o; - return Objects.equals(this.accountScore, fraudCheckResult.accountScore) - && Objects.equals(this.checkId, fraudCheckResult.checkId) - && Objects.equals(this.name, fraudCheckResult.name); + return Objects.equals(this.accountScore, fraudCheckResult.accountScore) && + Objects.equals(this.checkId, fraudCheckResult.checkId) && + Objects.equals(this.name, fraudCheckResult.name); } @Override @@ -166,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of FraudCheckResult given an JSON string * * @param jsonString JSON string @@ -185,12 +196,11 @@ private String toIndentedString(Object o) { public static FraudCheckResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, FraudCheckResult.class); } - - /** - * Convert an instance of FraudCheckResult to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of FraudCheckResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/FraudCheckResultWrapper.java b/src/main/java/com/adyen/model/payment/FraudCheckResultWrapper.java index 841a7f724..4a0579987 100644 --- a/src/main/java/com/adyen/model/payment/FraudCheckResultWrapper.java +++ b/src/main/java/com/adyen/model/payment/FraudCheckResultWrapper.java @@ -2,33 +2,47 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.payment.FraudCheckResult; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** FraudCheckResultWrapper */ -@JsonPropertyOrder({FraudCheckResultWrapper.JSON_PROPERTY_FRAUD_CHECK_RESULT}) + +/** + * FraudCheckResultWrapper + */ +@JsonPropertyOrder({ + FraudCheckResultWrapper.JSON_PROPERTY_FRAUD_CHECK_RESULT +}) + public class FraudCheckResultWrapper { public static final String JSON_PROPERTY_FRAUD_CHECK_RESULT = "FraudCheckResult"; private FraudCheckResult fraudCheckResult; - public FraudCheckResultWrapper() {} + public FraudCheckResultWrapper() { + } /** * fraudCheckResult * - * @param fraudCheckResult + * @param fraudCheckResult * @return the current {@code FraudCheckResultWrapper} instance, allowing for method chaining */ public FraudCheckResultWrapper fraudCheckResult(FraudCheckResult fraudCheckResult) { @@ -38,8 +52,7 @@ public FraudCheckResultWrapper fraudCheckResult(FraudCheckResult fraudCheckResul /** * Get fraudCheckResult - * - * @return fraudCheckResult + * @return fraudCheckResult */ @JsonProperty(JSON_PROPERTY_FRAUD_CHECK_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -50,7 +63,7 @@ public FraudCheckResult getFraudCheckResult() { /** * fraudCheckResult * - * @param fraudCheckResult + * @param fraudCheckResult */ @JsonProperty(JSON_PROPERTY_FRAUD_CHECK_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,7 +71,9 @@ public void setFraudCheckResult(FraudCheckResult fraudCheckResult) { this.fraudCheckResult = fraudCheckResult; } - /** Return true if this FraudCheckResultWrapper object is equal to o. */ + /** + * Return true if this FraudCheckResultWrapper object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,7 +101,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,23 +111,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of FraudCheckResultWrapper given an JSON string * * @param jsonString JSON string * @return An instance of FraudCheckResultWrapper - * @throws JsonProcessingException if the JSON string is invalid with respect to - * FraudCheckResultWrapper + * @throws JsonProcessingException if the JSON string is invalid with respect to FraudCheckResultWrapper */ public static FraudCheckResultWrapper fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, FraudCheckResultWrapper.class); } - - /** - * Convert an instance of FraudCheckResultWrapper to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of FraudCheckResultWrapper to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/FraudResult.java b/src/main/java/com/adyen/model/payment/FraudResult.java index 11e1153ee..50dc8a327 100644 --- a/src/main/java/com/adyen/model/payment/FraudResult.java +++ b/src/main/java/com/adyen/model/payment/FraudResult.java @@ -2,25 +2,39 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.payment.FraudCheckResultWrapper; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * FraudResult + */ +@JsonPropertyOrder({ + FraudResult.JSON_PROPERTY_ACCOUNT_SCORE, + FraudResult.JSON_PROPERTY_RESULTS +}) -/** FraudResult */ -@JsonPropertyOrder({FraudResult.JSON_PROPERTY_ACCOUNT_SCORE, FraudResult.JSON_PROPERTY_RESULTS}) public class FraudResult { public static final String JSON_PROPERTY_ACCOUNT_SCORE = "accountScore"; private Integer accountScore; @@ -28,7 +42,8 @@ public class FraudResult { public static final String JSON_PROPERTY_RESULTS = "results"; private List results; - public FraudResult() {} + public FraudResult() { + } /** * The total fraud score generated by the risk checks. @@ -43,7 +58,6 @@ public FraudResult accountScore(Integer accountScore) { /** * The total fraud score generated by the risk checks. - * * @return accountScore The total fraud score generated by the risk checks. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_SCORE) @@ -84,7 +98,6 @@ public FraudResult addResultsItem(FraudCheckResultWrapper resultsItem) { /** * The result of the individual risk checks. - * * @return results The result of the individual risk checks. */ @JsonProperty(JSON_PROPERTY_RESULTS) @@ -104,7 +117,9 @@ public void setResults(List results) { this.results = results; } - /** Return true if this FraudResult object is equal to o. */ + /** + * Return true if this FraudResult object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -114,8 +129,8 @@ public boolean equals(Object o) { return false; } FraudResult fraudResult = (FraudResult) o; - return Objects.equals(this.accountScore, fraudResult.accountScore) - && Objects.equals(this.results, fraudResult.results); + return Objects.equals(this.accountScore, fraudResult.accountScore) && + Objects.equals(this.results, fraudResult.results); } @Override @@ -134,7 +149,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -143,7 +159,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of FraudResult given an JSON string * * @param jsonString JSON string @@ -153,12 +169,11 @@ private String toIndentedString(Object o) { public static FraudResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, FraudResult.class); } - - /** - * Convert an instance of FraudResult to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of FraudResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/FundDestination.java b/src/main/java/com/adyen/model/payment/FundDestination.java index 580dd2371..baef69d3a 100644 --- a/src/main/java/com/adyen/model/payment/FundDestination.java +++ b/src/main/java/com/adyen/model/payment/FundDestination.java @@ -2,24 +2,37 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.payment.Address; +import com.adyen.model.payment.Card; +import com.adyen.model.payment.Name; +import com.adyen.model.payment.SubMerchant; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** FundDestination */ + +/** + * FundDestination + */ @JsonPropertyOrder({ FundDestination.JSON_PROPERTY_I_B_A_N, FundDestination.JSON_PROPERTY_ADDITIONAL_DATA, @@ -33,6 +46,7 @@ FundDestination.JSON_PROPERTY_TELEPHONE_NUMBER, FundDestination.JSON_PROPERTY_WALLET_PURPOSE }) + public class FundDestination { public static final String JSON_PROPERTY_I_B_A_N = "IBAN"; private String IBAN; @@ -46,8 +60,7 @@ public class FundDestination { public static final String JSON_PROPERTY_CARD = "card"; private Card card; - public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = - "selectedRecurringDetailReference"; + public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = "selectedRecurringDetailReference"; private String selectedRecurringDetailReference; public static final String JSON_PROPERTY_SHOPPER_EMAIL = "shopperEmail"; @@ -68,7 +81,8 @@ public class FundDestination { public static final String JSON_PROPERTY_WALLET_PURPOSE = "walletPurpose"; private String walletPurpose; - public FundDestination() {} + public FundDestination() { + } /** * Bank Account Number of the recipient @@ -83,7 +97,6 @@ public FundDestination IBAN(String IBAN) { /** * Bank Account Number of the recipient - * * @return IBAN Bank Account Number of the recipient */ @JsonProperty(JSON_PROPERTY_I_B_A_N) @@ -106,8 +119,7 @@ public void setIBAN(String IBAN) { /** * a map of name/value pairs for passing in additional/industry-specific data * - * @param additionalData a map of name/value pairs for passing in additional/industry-specific - * data + * @param additionalData a map of name/value pairs for passing in additional/industry-specific data * @return the current {@code FundDestination} instance, allowing for method chaining */ public FundDestination additionalData(Map additionalData) { @@ -125,9 +137,7 @@ public FundDestination putAdditionalDataItem(String key, String additionalDataIt /** * a map of name/value pairs for passing in additional/industry-specific data - * - * @return additionalData a map of name/value pairs for passing in additional/industry-specific - * data + * @return additionalData a map of name/value pairs for passing in additional/industry-specific data */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,8 +148,7 @@ public Map getAdditionalData() { /** * a map of name/value pairs for passing in additional/industry-specific data * - * @param additionalData a map of name/value pairs for passing in additional/industry-specific - * data + * @param additionalData a map of name/value pairs for passing in additional/industry-specific data */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,7 +159,7 @@ public void setAdditionalData(Map additionalData) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code FundDestination} instance, allowing for method chaining */ public FundDestination billingAddress(Address billingAddress) { @@ -160,8 +169,7 @@ public FundDestination billingAddress(Address billingAddress) { /** * Get billingAddress - * - * @return billingAddress + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,7 +180,7 @@ public Address getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,7 +191,7 @@ public void setBillingAddress(Address billingAddress) { /** * card * - * @param card + * @param card * @return the current {@code FundDestination} instance, allowing for method chaining */ public FundDestination card(Card card) { @@ -193,8 +201,7 @@ public FundDestination card(Card card) { /** * Get card - * - * @return card + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -205,7 +212,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,12 +221,9 @@ public void setCard(Card card) { } /** - * The `recurringDetailReference` you want to use for this payment. The value - * `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. * - * @param selectedRecurringDetailReference The `recurringDetailReference` you want to - * use for this payment. The value `LATEST` can be used to select the most recently - * stored recurring detail. + * @param selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. * @return the current {@code FundDestination} instance, allowing for method chaining */ public FundDestination selectedRecurringDetailReference(String selectedRecurringDetailReference) { @@ -228,12 +232,8 @@ public FundDestination selectedRecurringDetailReference(String selectedRecurring } /** - * The `recurringDetailReference` you want to use for this payment. The value - * `LATEST` can be used to select the most recently stored recurring detail. - * - * @return selectedRecurringDetailReference The `recurringDetailReference` you want to - * use for this payment. The value `LATEST` can be used to select the most recently - * stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * @return selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,12 +242,9 @@ public String getSelectedRecurringDetailReference() { } /** - * The `recurringDetailReference` you want to use for this payment. The value - * `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. * - * @param selectedRecurringDetailReference The `recurringDetailReference` you want to - * use for this payment. The value `LATEST` can be used to select the most recently - * stored recurring detail. + * @param selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -268,7 +265,6 @@ public FundDestination shopperEmail(String shopperEmail) { /** * the email address of the person - * * @return shopperEmail the email address of the person */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -291,7 +287,7 @@ public void setShopperEmail(String shopperEmail) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code FundDestination} instance, allowing for method chaining */ public FundDestination shopperName(Name shopperName) { @@ -301,8 +297,7 @@ public FundDestination shopperName(Name shopperName) { /** * Get shopperName - * - * @return shopperName + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -313,7 +308,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -322,15 +317,9 @@ public void setShopperName(Name shopperName) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example - * user ID or account ID. The value is case-sensitive and must be at least three characters. > - * Your reference must not include personally identifiable information (PII) such as name or email - * address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify - * this shopper, for example user ID or account ID. The value is case-sensitive and must be at - * least three characters. > Your reference must not include personally identifiable - * information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * @return the current {@code FundDestination} instance, allowing for method chaining */ public FundDestination shopperReference(String shopperReference) { @@ -339,15 +328,8 @@ public FundDestination shopperReference(String shopperReference) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example - * user ID or account ID. The value is case-sensitive and must be at least three characters. > - * Your reference must not include personally identifiable information (PII) such as name or email - * address. - * - * @return shopperReference Required for recurring payments. Your reference to uniquely identify - * this shopper, for example user ID or account ID. The value is case-sensitive and must be at - * least three characters. > Your reference must not include personally identifiable - * information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @return shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -356,15 +338,9 @@ public String getShopperReference() { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example - * user ID or account ID. The value is case-sensitive and must be at least three characters. > - * Your reference must not include personally identifiable information (PII) such as name or email - * address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify - * this shopper, for example user ID or account ID. The value is case-sensitive and must be at - * least three characters. > Your reference must not include personally identifiable - * information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -375,7 +351,7 @@ public void setShopperReference(String shopperReference) { /** * subMerchant * - * @param subMerchant + * @param subMerchant * @return the current {@code FundDestination} instance, allowing for method chaining */ public FundDestination subMerchant(SubMerchant subMerchant) { @@ -385,8 +361,7 @@ public FundDestination subMerchant(SubMerchant subMerchant) { /** * Get subMerchant - * - * @return subMerchant + * @return subMerchant */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -397,7 +372,7 @@ public SubMerchant getSubMerchant() { /** * subMerchant * - * @param subMerchant + * @param subMerchant */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -418,7 +393,6 @@ public FundDestination telephoneNumber(String telephoneNumber) { /** * the telephone number of the person - * * @return telephoneNumber the telephone number of the person */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @@ -451,7 +425,6 @@ public FundDestination walletPurpose(String walletPurpose) { /** * The purpose of a digital wallet transaction. - * * @return walletPurpose The purpose of a digital wallet transaction. */ @JsonProperty(JSON_PROPERTY_WALLET_PURPOSE) @@ -471,7 +444,9 @@ public void setWalletPurpose(String walletPurpose) { this.walletPurpose = walletPurpose; } - /** Return true if this FundDestination object is equal to o. */ + /** + * Return true if this FundDestination object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -481,34 +456,22 @@ public boolean equals(Object o) { return false; } FundDestination fundDestination = (FundDestination) o; - return Objects.equals(this.IBAN, fundDestination.IBAN) - && Objects.equals(this.additionalData, fundDestination.additionalData) - && Objects.equals(this.billingAddress, fundDestination.billingAddress) - && Objects.equals(this.card, fundDestination.card) - && Objects.equals( - this.selectedRecurringDetailReference, fundDestination.selectedRecurringDetailReference) - && Objects.equals(this.shopperEmail, fundDestination.shopperEmail) - && Objects.equals(this.shopperName, fundDestination.shopperName) - && Objects.equals(this.shopperReference, fundDestination.shopperReference) - && Objects.equals(this.subMerchant, fundDestination.subMerchant) - && Objects.equals(this.telephoneNumber, fundDestination.telephoneNumber) - && Objects.equals(this.walletPurpose, fundDestination.walletPurpose); + return Objects.equals(this.IBAN, fundDestination.IBAN) && + Objects.equals(this.additionalData, fundDestination.additionalData) && + Objects.equals(this.billingAddress, fundDestination.billingAddress) && + Objects.equals(this.card, fundDestination.card) && + Objects.equals(this.selectedRecurringDetailReference, fundDestination.selectedRecurringDetailReference) && + Objects.equals(this.shopperEmail, fundDestination.shopperEmail) && + Objects.equals(this.shopperName, fundDestination.shopperName) && + Objects.equals(this.shopperReference, fundDestination.shopperReference) && + Objects.equals(this.subMerchant, fundDestination.subMerchant) && + Objects.equals(this.telephoneNumber, fundDestination.telephoneNumber) && + Objects.equals(this.walletPurpose, fundDestination.walletPurpose); } @Override public int hashCode() { - return Objects.hash( - IBAN, - additionalData, - billingAddress, - card, - selectedRecurringDetailReference, - shopperEmail, - shopperName, - shopperReference, - subMerchant, - telephoneNumber, - walletPurpose); + return Objects.hash(IBAN, additionalData, billingAddress, card, selectedRecurringDetailReference, shopperEmail, shopperName, shopperReference, subMerchant, telephoneNumber, walletPurpose); } @Override @@ -519,9 +482,7 @@ public String toString() { sb.append(" additionalData: ").append(toIndentedString(additionalData)).append("\n"); sb.append(" billingAddress: ").append(toIndentedString(billingAddress)).append("\n"); sb.append(" card: ").append(toIndentedString(card)).append("\n"); - sb.append(" selectedRecurringDetailReference: ") - .append(toIndentedString(selectedRecurringDetailReference)) - .append("\n"); + sb.append(" selectedRecurringDetailReference: ").append(toIndentedString(selectedRecurringDetailReference)).append("\n"); sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); @@ -533,7 +494,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -542,7 +504,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of FundDestination given an JSON string * * @param jsonString JSON string @@ -552,12 +514,11 @@ private String toIndentedString(Object o) { public static FundDestination fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, FundDestination.class); } - - /** - * Convert an instance of FundDestination to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of FundDestination to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/FundSource.java b/src/main/java/com/adyen/model/payment/FundSource.java index ef44f3d60..683d94a21 100644 --- a/src/main/java/com/adyen/model/payment/FundSource.java +++ b/src/main/java/com/adyen/model/payment/FundSource.java @@ -2,24 +2,36 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.payment.Address; +import com.adyen.model.payment.Card; +import com.adyen.model.payment.Name; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** FundSource */ +/** + * FundSource + */ @JsonPropertyOrder({ FundSource.JSON_PROPERTY_ADDITIONAL_DATA, FundSource.JSON_PROPERTY_BILLING_ADDRESS, @@ -28,6 +40,7 @@ FundSource.JSON_PROPERTY_SHOPPER_NAME, FundSource.JSON_PROPERTY_TELEPHONE_NUMBER }) + public class FundSource { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -47,13 +60,13 @@ public class FundSource { public static final String JSON_PROPERTY_TELEPHONE_NUMBER = "telephoneNumber"; private String telephoneNumber; - public FundSource() {} + public FundSource() { + } /** * A map of name-value pairs for passing additional or industry-specific data. * - * @param additionalData A map of name-value pairs for passing additional or industry-specific - * data. + * @param additionalData A map of name-value pairs for passing additional or industry-specific data. * @return the current {@code FundSource} instance, allowing for method chaining */ public FundSource additionalData(Map additionalData) { @@ -71,9 +84,7 @@ public FundSource putAdditionalDataItem(String key, String additionalDataItem) { /** * A map of name-value pairs for passing additional or industry-specific data. - * - * @return additionalData A map of name-value pairs for passing additional or industry-specific - * data. + * @return additionalData A map of name-value pairs for passing additional or industry-specific data. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -84,8 +95,7 @@ public Map getAdditionalData() { /** * A map of name-value pairs for passing additional or industry-specific data. * - * @param additionalData A map of name-value pairs for passing additional or industry-specific - * data. + * @param additionalData A map of name-value pairs for passing additional or industry-specific data. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,7 +106,7 @@ public void setAdditionalData(Map additionalData) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code FundSource} instance, allowing for method chaining */ public FundSource billingAddress(Address billingAddress) { @@ -106,8 +116,7 @@ public FundSource billingAddress(Address billingAddress) { /** * Get billingAddress - * - * @return billingAddress + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,7 +127,7 @@ public Address getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,7 +138,7 @@ public void setBillingAddress(Address billingAddress) { /** * card * - * @param card + * @param card * @return the current {@code FundSource} instance, allowing for method chaining */ public FundSource card(Card card) { @@ -139,8 +148,7 @@ public FundSource card(Card card) { /** * Get card - * - * @return card + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,7 +159,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,7 +180,6 @@ public FundSource shopperEmail(String shopperEmail) { /** * Email address of the person. - * * @return shopperEmail Email address of the person. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -195,7 +202,7 @@ public void setShopperEmail(String shopperEmail) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code FundSource} instance, allowing for method chaining */ public FundSource shopperName(Name shopperName) { @@ -205,8 +212,7 @@ public FundSource shopperName(Name shopperName) { /** * Get shopperName - * - * @return shopperName + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -217,7 +223,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -238,7 +244,6 @@ public FundSource telephoneNumber(String telephoneNumber) { /** * Phone number of the person - * * @return telephoneNumber Phone number of the person */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @@ -258,7 +263,9 @@ public void setTelephoneNumber(String telephoneNumber) { this.telephoneNumber = telephoneNumber; } - /** Return true if this FundSource object is equal to o. */ + /** + * Return true if this FundSource object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -268,18 +275,17 @@ public boolean equals(Object o) { return false; } FundSource fundSource = (FundSource) o; - return Objects.equals(this.additionalData, fundSource.additionalData) - && Objects.equals(this.billingAddress, fundSource.billingAddress) - && Objects.equals(this.card, fundSource.card) - && Objects.equals(this.shopperEmail, fundSource.shopperEmail) - && Objects.equals(this.shopperName, fundSource.shopperName) - && Objects.equals(this.telephoneNumber, fundSource.telephoneNumber); + return Objects.equals(this.additionalData, fundSource.additionalData) && + Objects.equals(this.billingAddress, fundSource.billingAddress) && + Objects.equals(this.card, fundSource.card) && + Objects.equals(this.shopperEmail, fundSource.shopperEmail) && + Objects.equals(this.shopperName, fundSource.shopperName) && + Objects.equals(this.telephoneNumber, fundSource.telephoneNumber); } @Override public int hashCode() { - return Objects.hash( - additionalData, billingAddress, card, shopperEmail, shopperName, telephoneNumber); + return Objects.hash(additionalData, billingAddress, card, shopperEmail, shopperName, telephoneNumber); } @Override @@ -297,7 +303,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -306,7 +313,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of FundSource given an JSON string * * @param jsonString JSON string @@ -316,12 +323,11 @@ private String toIndentedString(Object o) { public static FundSource fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, FundSource.class); } - - /** - * Convert an instance of FundSource to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of FundSource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/Installments.java b/src/main/java/com/adyen/model/payment/Installments.java index d8be1106a..27fda3afe 100644 --- a/src/main/java/com/adyen/model/payment/Installments.java +++ b/src/main/java/com/adyen/model/payment/Installments.java @@ -2,43 +2,46 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** Installments */ +/** + * Installments + */ @JsonPropertyOrder({ Installments.JSON_PROPERTY_EXTRA, Installments.JSON_PROPERTY_PLAN, Installments.JSON_PROPERTY_VALUE }) + public class Installments { public static final String JSON_PROPERTY_EXTRA = "extra"; private Integer extra; /** - * The installment plan, used for [card installments in - * Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). - * and - * [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). - * By default, this is set to **regular**. + * The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. */ public enum PlanEnum { + BONUS(String.valueOf("bonus")), BUYNOW_PAYLATER(String.valueOf("buynow_paylater")), @@ -64,7 +67,7 @@ public enum PlanEnum { private String value; PlanEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -85,11 +88,7 @@ public static PlanEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PlanEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PlanEnum.values())); + LOG.warning("PlanEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PlanEnum.values())); return null; } } @@ -100,16 +99,13 @@ public static PlanEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUE = "value"; private Integer value; - public Installments() {} + public Installments() { + } /** - * Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. - * Used for [card installments in - * Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) + * Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. Used for [card installments in Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) * - * @param extra Defines the bonus percentage, refund percentage or if the transaction is Buy now - * Pay later. Used for [card installments in - * Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) + * @param extra Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. Used for [card installments in Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) * @return the current {@code Installments} instance, allowing for method chaining */ public Installments extra(Integer extra) { @@ -118,13 +114,8 @@ public Installments extra(Integer extra) { } /** - * Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. - * Used for [card installments in - * Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) - * - * @return extra Defines the bonus percentage, refund percentage or if the transaction is Buy now - * Pay later. Used for [card installments in - * Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) + * Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. Used for [card installments in Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) + * @return extra Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. Used for [card installments in Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) */ @JsonProperty(JSON_PROPERTY_EXTRA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -133,13 +124,9 @@ public Integer getExtra() { } /** - * Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. - * Used for [card installments in - * Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) + * Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. Used for [card installments in Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) * - * @param extra Defines the bonus percentage, refund percentage or if the transaction is Buy now - * Pay later. Used for [card installments in - * Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) + * @param extra Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. Used for [card installments in Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) */ @JsonProperty(JSON_PROPERTY_EXTRA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,17 +135,9 @@ public void setExtra(Integer extra) { } /** - * The installment plan, used for [card installments in - * Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). - * and - * [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). - * By default, this is set to **regular**. + * The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. * - * @param plan The installment plan, used for [card installments in - * Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). - * and - * [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). - * By default, this is set to **regular**. + * @param plan The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. * @return the current {@code Installments} instance, allowing for method chaining */ public Installments plan(PlanEnum plan) { @@ -167,17 +146,8 @@ public Installments plan(PlanEnum plan) { } /** - * The installment plan, used for [card installments in - * Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). - * and - * [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). - * By default, this is set to **regular**. - * - * @return plan The installment plan, used for [card installments in - * Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). - * and - * [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). - * By default, this is set to **regular**. + * The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. + * @return plan The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. */ @JsonProperty(JSON_PROPERTY_PLAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,17 +156,9 @@ public PlanEnum getPlan() { } /** - * The installment plan, used for [card installments in - * Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). - * and - * [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). - * By default, this is set to **regular**. + * The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. * - * @param plan The installment plan, used for [card installments in - * Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). - * and - * [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). - * By default, this is set to **regular**. + * @param plan The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. */ @JsonProperty(JSON_PROPERTY_PLAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -205,15 +167,9 @@ public void setPlan(PlanEnum plan) { } /** - * Defines the number of installments. Usually, the maximum allowed number of installments is - * capped. For example, it may not be possible to split a payment in more than 24 installments. - * The acquirer sets this upper limit, so its value may vary. This value can be zero for - * Installments processed in Mexico. + * Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. This value can be zero for Installments processed in Mexico. * - * @param value Defines the number of installments. Usually, the maximum allowed number of - * installments is capped. For example, it may not be possible to split a payment in more than - * 24 installments. The acquirer sets this upper limit, so its value may vary. This value can - * be zero for Installments processed in Mexico. + * @param value Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. This value can be zero for Installments processed in Mexico. * @return the current {@code Installments} instance, allowing for method chaining */ public Installments value(Integer value) { @@ -222,15 +178,8 @@ public Installments value(Integer value) { } /** - * Defines the number of installments. Usually, the maximum allowed number of installments is - * capped. For example, it may not be possible to split a payment in more than 24 installments. - * The acquirer sets this upper limit, so its value may vary. This value can be zero for - * Installments processed in Mexico. - * - * @return value Defines the number of installments. Usually, the maximum allowed number of - * installments is capped. For example, it may not be possible to split a payment in more than - * 24 installments. The acquirer sets this upper limit, so its value may vary. This value can - * be zero for Installments processed in Mexico. + * Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. This value can be zero for Installments processed in Mexico. + * @return value Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. This value can be zero for Installments processed in Mexico. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -239,15 +188,9 @@ public Integer getValue() { } /** - * Defines the number of installments. Usually, the maximum allowed number of installments is - * capped. For example, it may not be possible to split a payment in more than 24 installments. - * The acquirer sets this upper limit, so its value may vary. This value can be zero for - * Installments processed in Mexico. + * Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. This value can be zero for Installments processed in Mexico. * - * @param value Defines the number of installments. Usually, the maximum allowed number of - * installments is capped. For example, it may not be possible to split a payment in more than - * 24 installments. The acquirer sets this upper limit, so its value may vary. This value can - * be zero for Installments processed in Mexico. + * @param value Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. This value can be zero for Installments processed in Mexico. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -255,7 +198,9 @@ public void setValue(Integer value) { this.value = value; } - /** Return true if this Installments object is equal to o. */ + /** + * Return true if this Installments object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -265,9 +210,9 @@ public boolean equals(Object o) { return false; } Installments installments = (Installments) o; - return Objects.equals(this.extra, installments.extra) - && Objects.equals(this.plan, installments.plan) - && Objects.equals(this.value, installments.value); + return Objects.equals(this.extra, installments.extra) && + Objects.equals(this.plan, installments.plan) && + Objects.equals(this.value, installments.value); } @Override @@ -287,7 +232,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -296,7 +242,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Installments given an JSON string * * @param jsonString JSON string @@ -306,12 +252,11 @@ private String toIndentedString(Object o) { public static Installments fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Installments.class); } - - /** - * Convert an instance of Installments to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Installments to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/JSON.java b/src/main/java/com/adyen/model/payment/JSON.java index da7759d75..0cad79f99 100644 --- a/src/main/java/com/adyen/model/payment/JSON.java +++ b/src/main/java/com/adyen/model/payment/JSON.java @@ -1,18 +1,21 @@ package com.adyen.model.payment; -import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; +import com.adyen.serializer.ByteArrayDeserializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; +import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; +import com.adyen.model.payment.*; + import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -37,7 +40,6 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. - * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -54,13 +56,11 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { - return mapper; - } + public static ObjectMapper getMapper() { return mapper; } /** - * Returns the target model class that should be used to deserialize the input data. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,7 +73,9 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** Helper class to register the discriminator mappings. */ + /** + * Helper class to register the discriminator mappings. + */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -115,9 +117,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. This - * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -162,14 +164,13 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so - * it's not possible to use the instanceof keyword. + * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, + * so it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf( - Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -193,58 +194,59 @@ public static boolean isInstanceOf( return false; } - /** A map of discriminators for all model classes. */ - private static final Map, ClassDiscriminatorMapping> modelDiscriminators = - new HashMap, ClassDiscriminatorMapping>(); + /** + * A map of discriminators for all model classes. + */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); - /** A map of oneOf/anyOf descendants for each model class. */ + /** + * A map of oneOf/anyOf descendants for each model class. + */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator( - Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = - new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants( - Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants(Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static { + static + { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/payment/Mandate.java b/src/main/java/com/adyen/model/payment/Mandate.java index 463cfc872..05bcb18d9 100644 --- a/src/main/java/com/adyen/model/payment/Mandate.java +++ b/src/main/java/com/adyen/model/payment/Mandate.java @@ -2,26 +2,31 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** Mandate */ + +/** + * Mandate + */ @JsonPropertyOrder({ Mandate.JSON_PROPERTY_AMOUNT, Mandate.JSON_PROPERTY_AMOUNT_RULE, @@ -33,16 +38,16 @@ Mandate.JSON_PROPERTY_REMARKS, Mandate.JSON_PROPERTY_STARTS_AT }) + public class Mandate { public static final String JSON_PROPERTY_AMOUNT = "amount"; private String amount; /** - * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount - * can not exceed the `amount`. * **exact**: The transaction amount should be the same - * as the `amount`. + * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`. */ public enum AmountRuleEnum { + MAX(String.valueOf("max")), EXACT(String.valueOf("exact")); @@ -52,7 +57,7 @@ public enum AmountRuleEnum { private String value; AmountRuleEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,11 +78,7 @@ public static AmountRuleEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AmountRuleEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AmountRuleEnum.values())); + LOG.warning("AmountRuleEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AmountRuleEnum.values())); return null; } } @@ -86,11 +87,10 @@ public static AmountRuleEnum fromValue(String value) { private AmountRuleEnum amountRule; /** - * The rule to specify the period, within which the recurring debit can happen, relative to the - * mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and - * on a specific date. * **after**: On and after a specific date. + * The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date. */ public enum BillingAttemptsRuleEnum { + ON(String.valueOf("on")), BEFORE(String.valueOf("before")), @@ -102,7 +102,7 @@ public enum BillingAttemptsRuleEnum { private String value; BillingAttemptsRuleEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -123,11 +123,7 @@ public static BillingAttemptsRuleEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "BillingAttemptsRuleEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(BillingAttemptsRuleEnum.values())); + LOG.warning("BillingAttemptsRuleEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(BillingAttemptsRuleEnum.values())); return null; } } @@ -145,10 +141,10 @@ public static BillingAttemptsRuleEnum fromValue(String value) { private String endsAt; /** - * The frequency with which a shopper should be charged. Possible values: **daily**, **weekly**, - * **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. + * The frequency with which a shopper should be charged. Possible values: **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. */ public enum FrequencyEnum { + ADHOC(String.valueOf("adhoc")), DAILY(String.valueOf("daily")), @@ -170,7 +166,7 @@ public enum FrequencyEnum { private String value; FrequencyEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -191,11 +187,7 @@ public static FrequencyEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FrequencyEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FrequencyEnum.values())); + LOG.warning("FrequencyEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FrequencyEnum.values())); return null; } } @@ -209,7 +201,8 @@ public static FrequencyEnum fromValue(String value) { public static final String JSON_PROPERTY_STARTS_AT = "startsAt"; private String startsAt; - public Mandate() {} + public Mandate() { + } /** * The billing amount (in minor units) of the recurring transactions. @@ -224,7 +217,6 @@ public Mandate amount(String amount) { /** * The billing amount (in minor units) of the recurring transactions. - * * @return amount The billing amount (in minor units) of the recurring transactions. */ @JsonProperty(JSON_PROPERTY_AMOUNT) @@ -245,13 +237,9 @@ public void setAmount(String amount) { } /** - * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount - * can not exceed the `amount`. * **exact**: The transaction amount should be the same - * as the `amount`. + * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`. * - * @param amountRule The limitation rule of the billing amount. Possible values: * **max**: The - * transaction amount can not exceed the `amount`. * **exact**: The transaction - * amount should be the same as the `amount`. + * @param amountRule The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`. * @return the current {@code Mandate} instance, allowing for method chaining */ public Mandate amountRule(AmountRuleEnum amountRule) { @@ -260,13 +248,8 @@ public Mandate amountRule(AmountRuleEnum amountRule) { } /** - * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount - * can not exceed the `amount`. * **exact**: The transaction amount should be the same - * as the `amount`. - * - * @return amountRule The limitation rule of the billing amount. Possible values: * **max**: The - * transaction amount can not exceed the `amount`. * **exact**: The transaction - * amount should be the same as the `amount`. + * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`. + * @return amountRule The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`. */ @JsonProperty(JSON_PROPERTY_AMOUNT_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -275,13 +258,9 @@ public AmountRuleEnum getAmountRule() { } /** - * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount - * can not exceed the `amount`. * **exact**: The transaction amount should be the same - * as the `amount`. + * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`. * - * @param amountRule The limitation rule of the billing amount. Possible values: * **max**: The - * transaction amount can not exceed the `amount`. * **exact**: The transaction - * amount should be the same as the `amount`. + * @param amountRule The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`. */ @JsonProperty(JSON_PROPERTY_AMOUNT_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -290,14 +269,9 @@ public void setAmountRule(AmountRuleEnum amountRule) { } /** - * The rule to specify the period, within which the recurring debit can happen, relative to the - * mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and - * on a specific date. * **after**: On and after a specific date. + * The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date. * - * @param billingAttemptsRule The rule to specify the period, within which the recurring debit can - * happen, relative to the mandate recurring date. Possible values: * **on**: On a specific - * date. * **before**: Before and on a specific date. * **after**: On and after a specific - * date. + * @param billingAttemptsRule The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date. * @return the current {@code Mandate} instance, allowing for method chaining */ public Mandate billingAttemptsRule(BillingAttemptsRuleEnum billingAttemptsRule) { @@ -306,14 +280,8 @@ public Mandate billingAttemptsRule(BillingAttemptsRuleEnum billingAttemptsRule) } /** - * The rule to specify the period, within which the recurring debit can happen, relative to the - * mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and - * on a specific date. * **after**: On and after a specific date. - * - * @return billingAttemptsRule The rule to specify the period, within which the recurring debit - * can happen, relative to the mandate recurring date. Possible values: * **on**: On a - * specific date. * **before**: Before and on a specific date. * **after**: On and after a - * specific date. + * The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date. + * @return billingAttemptsRule The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date. */ @JsonProperty(JSON_PROPERTY_BILLING_ATTEMPTS_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -322,14 +290,9 @@ public BillingAttemptsRuleEnum getBillingAttemptsRule() { } /** - * The rule to specify the period, within which the recurring debit can happen, relative to the - * mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and - * on a specific date. * **after**: On and after a specific date. + * The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date. * - * @param billingAttemptsRule The rule to specify the period, within which the recurring debit can - * happen, relative to the mandate recurring date. Possible values: * **on**: On a specific - * date. * **before**: Before and on a specific date. * **after**: On and after a specific - * date. + * @param billingAttemptsRule The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date. */ @JsonProperty(JSON_PROPERTY_BILLING_ATTEMPTS_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -338,13 +301,9 @@ public void setBillingAttemptsRule(BillingAttemptsRuleEnum billingAttemptsRule) } /** - * The number of the day, on which the recurring debit can happen. Should be within the same - * calendar month as the mandate recurring date. Possible values: 1-31 based on the - * `frequency`. + * The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`. * - * @param billingDay The number of the day, on which the recurring debit can happen. Should be - * within the same calendar month as the mandate recurring date. Possible values: 1-31 based - * on the `frequency`. + * @param billingDay The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`. * @return the current {@code Mandate} instance, allowing for method chaining */ public Mandate billingDay(String billingDay) { @@ -353,13 +312,8 @@ public Mandate billingDay(String billingDay) { } /** - * The number of the day, on which the recurring debit can happen. Should be within the same - * calendar month as the mandate recurring date. Possible values: 1-31 based on the - * `frequency`. - * - * @return billingDay The number of the day, on which the recurring debit can happen. Should be - * within the same calendar month as the mandate recurring date. Possible values: 1-31 based - * on the `frequency`. + * The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`. + * @return billingDay The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`. */ @JsonProperty(JSON_PROPERTY_BILLING_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -368,13 +322,9 @@ public String getBillingDay() { } /** - * The number of the day, on which the recurring debit can happen. Should be within the same - * calendar month as the mandate recurring date. Possible values: 1-31 based on the - * `frequency`. + * The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`. * - * @param billingDay The number of the day, on which the recurring debit can happen. Should be - * within the same calendar month as the mandate recurring date. Possible values: 1-31 based - * on the `frequency`. + * @param billingDay The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`. */ @JsonProperty(JSON_PROPERTY_BILLING_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -395,7 +345,6 @@ public Mandate count(String count) { /** * The number of transactions that can be performed within the given frequency. - * * @return count The number of transactions that can be performed within the given frequency. */ @JsonProperty(JSON_PROPERTY_COUNT) @@ -428,7 +377,6 @@ public Mandate endsAt(String endsAt) { /** * End date of the billing plan, in YYYY-MM-DD format. - * * @return endsAt End date of the billing plan, in YYYY-MM-DD format. */ @JsonProperty(JSON_PROPERTY_ENDS_AT) @@ -449,12 +397,9 @@ public void setEndsAt(String endsAt) { } /** - * The frequency with which a shopper should be charged. Possible values: **daily**, **weekly**, - * **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. + * The frequency with which a shopper should be charged. Possible values: **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. * - * @param frequency The frequency with which a shopper should be charged. Possible values: - * **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, - * **yearly**. + * @param frequency The frequency with which a shopper should be charged. Possible values: **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. * @return the current {@code Mandate} instance, allowing for method chaining */ public Mandate frequency(FrequencyEnum frequency) { @@ -463,12 +408,8 @@ public Mandate frequency(FrequencyEnum frequency) { } /** - * The frequency with which a shopper should be charged. Possible values: **daily**, **weekly**, - * **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. - * - * @return frequency The frequency with which a shopper should be charged. Possible values: - * **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, - * **yearly**. + * The frequency with which a shopper should be charged. Possible values: **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. + * @return frequency The frequency with which a shopper should be charged. Possible values: **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. */ @JsonProperty(JSON_PROPERTY_FREQUENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -477,12 +418,9 @@ public FrequencyEnum getFrequency() { } /** - * The frequency with which a shopper should be charged. Possible values: **daily**, **weekly**, - * **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. + * The frequency with which a shopper should be charged. Possible values: **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. * - * @param frequency The frequency with which a shopper should be charged. Possible values: - * **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, - * **yearly**. + * @param frequency The frequency with which a shopper should be charged. Possible values: **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. */ @JsonProperty(JSON_PROPERTY_FREQUENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -503,7 +441,6 @@ public Mandate remarks(String remarks) { /** * The message shown by UPI to the shopper on the approval screen. - * * @return remarks The message shown by UPI to the shopper on the approval screen. */ @JsonProperty(JSON_PROPERTY_REMARKS) @@ -526,8 +463,7 @@ public void setRemarks(String remarks) { /** * Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. * - * @param startsAt Start date of the billing plan, in YYYY-MM-DD format. By default, the - * transaction date. + * @param startsAt Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. * @return the current {@code Mandate} instance, allowing for method chaining */ public Mandate startsAt(String startsAt) { @@ -537,9 +473,7 @@ public Mandate startsAt(String startsAt) { /** * Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. - * - * @return startsAt Start date of the billing plan, in YYYY-MM-DD format. By default, the - * transaction date. + * @return startsAt Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. */ @JsonProperty(JSON_PROPERTY_STARTS_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -550,8 +484,7 @@ public String getStartsAt() { /** * Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. * - * @param startsAt Start date of the billing plan, in YYYY-MM-DD format. By default, the - * transaction date. + * @param startsAt Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. */ @JsonProperty(JSON_PROPERTY_STARTS_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -559,7 +492,9 @@ public void setStartsAt(String startsAt) { this.startsAt = startsAt; } - /** Return true if this Mandate object is equal to o. */ + /** + * Return true if this Mandate object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -569,29 +504,20 @@ public boolean equals(Object o) { return false; } Mandate mandate = (Mandate) o; - return Objects.equals(this.amount, mandate.amount) - && Objects.equals(this.amountRule, mandate.amountRule) - && Objects.equals(this.billingAttemptsRule, mandate.billingAttemptsRule) - && Objects.equals(this.billingDay, mandate.billingDay) - && Objects.equals(this.count, mandate.count) - && Objects.equals(this.endsAt, mandate.endsAt) - && Objects.equals(this.frequency, mandate.frequency) - && Objects.equals(this.remarks, mandate.remarks) - && Objects.equals(this.startsAt, mandate.startsAt); + return Objects.equals(this.amount, mandate.amount) && + Objects.equals(this.amountRule, mandate.amountRule) && + Objects.equals(this.billingAttemptsRule, mandate.billingAttemptsRule) && + Objects.equals(this.billingDay, mandate.billingDay) && + Objects.equals(this.count, mandate.count) && + Objects.equals(this.endsAt, mandate.endsAt) && + Objects.equals(this.frequency, mandate.frequency) && + Objects.equals(this.remarks, mandate.remarks) && + Objects.equals(this.startsAt, mandate.startsAt); } @Override public int hashCode() { - return Objects.hash( - amount, - amountRule, - billingAttemptsRule, - billingDay, - count, - endsAt, - frequency, - remarks, - startsAt); + return Objects.hash(amount, amountRule, billingAttemptsRule, billingDay, count, endsAt, frequency, remarks, startsAt); } @Override @@ -600,9 +526,7 @@ public String toString() { sb.append("class Mandate {\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" amountRule: ").append(toIndentedString(amountRule)).append("\n"); - sb.append(" billingAttemptsRule: ") - .append(toIndentedString(billingAttemptsRule)) - .append("\n"); + sb.append(" billingAttemptsRule: ").append(toIndentedString(billingAttemptsRule)).append("\n"); sb.append(" billingDay: ").append(toIndentedString(billingDay)).append("\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" endsAt: ").append(toIndentedString(endsAt)).append("\n"); @@ -614,7 +538,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -623,7 +548,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Mandate given an JSON string * * @param jsonString JSON string @@ -633,12 +558,11 @@ private String toIndentedString(Object o) { public static Mandate fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Mandate.class); } - - /** - * Convert an instance of Mandate to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Mandate to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/MerchantDevice.java b/src/main/java/com/adyen/model/payment/MerchantDevice.java index 98c112b19..b37a3c8cb 100644 --- a/src/main/java/com/adyen/model/payment/MerchantDevice.java +++ b/src/main/java/com/adyen/model/payment/MerchantDevice.java @@ -2,27 +2,37 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** MerchantDevice */ + +/** + * MerchantDevice + */ @JsonPropertyOrder({ MerchantDevice.JSON_PROPERTY_OS, MerchantDevice.JSON_PROPERTY_OS_VERSION, MerchantDevice.JSON_PROPERTY_REFERENCE }) + public class MerchantDevice { public static final String JSON_PROPERTY_OS = "os"; private String os; @@ -33,7 +43,8 @@ public class MerchantDevice { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public MerchantDevice() {} + public MerchantDevice() { + } /** * Operating system running on the merchant device. @@ -48,7 +59,6 @@ public MerchantDevice os(String os) { /** * Operating system running on the merchant device. - * * @return os Operating system running on the merchant device. */ @JsonProperty(JSON_PROPERTY_OS) @@ -81,7 +91,6 @@ public MerchantDevice osVersion(String osVersion) { /** * Version of the operating system on the merchant device. - * * @return osVersion Version of the operating system on the merchant device. */ @JsonProperty(JSON_PROPERTY_OS_VERSION) @@ -114,7 +123,6 @@ public MerchantDevice reference(String reference) { /** * Merchant device reference. - * * @return reference Merchant device reference. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -134,7 +142,9 @@ public void setReference(String reference) { this.reference = reference; } - /** Return true if this MerchantDevice object is equal to o. */ + /** + * Return true if this MerchantDevice object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,9 +154,9 @@ public boolean equals(Object o) { return false; } MerchantDevice merchantDevice = (MerchantDevice) o; - return Objects.equals(this.os, merchantDevice.os) - && Objects.equals(this.osVersion, merchantDevice.osVersion) - && Objects.equals(this.reference, merchantDevice.reference); + return Objects.equals(this.os, merchantDevice.os) && + Objects.equals(this.osVersion, merchantDevice.osVersion) && + Objects.equals(this.reference, merchantDevice.reference); } @Override @@ -166,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of MerchantDevice given an JSON string * * @param jsonString JSON string @@ -185,12 +196,11 @@ private String toIndentedString(Object o) { public static MerchantDevice fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MerchantDevice.class); } - - /** - * Convert an instance of MerchantDevice to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of MerchantDevice to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/MerchantRiskIndicator.java b/src/main/java/com/adyen/model/payment/MerchantRiskIndicator.java index 7925fe38e..ab3827195 100644 --- a/src/main/java/com/adyen/model/payment/MerchantRiskIndicator.java +++ b/src/main/java/com/adyen/model/payment/MerchantRiskIndicator.java @@ -2,27 +2,33 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.payment.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** MerchantRiskIndicator */ +/** + * MerchantRiskIndicator + */ @JsonPropertyOrder({ MerchantRiskIndicator.JSON_PROPERTY_ADDRESS_MATCH, MerchantRiskIndicator.JSON_PROPERTY_DELIVERY_ADDRESS_INDICATOR, @@ -39,16 +45,16 @@ MerchantRiskIndicator.JSON_PROPERTY_REORDER_ITEMS_IND, MerchantRiskIndicator.JSON_PROPERTY_SHIP_INDICATOR }) + public class MerchantRiskIndicator { public static final String JSON_PROPERTY_ADDRESS_MATCH = "addressMatch"; private Boolean addressMatch; /** - * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * - * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * - * `digitalGoods` * `goodsNotShipped` * `other` + * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` */ public enum DeliveryAddressIndicatorEnum { + SHIPTOBILLINGADDRESS(String.valueOf("shipToBillingAddress")), SHIPTOVERIFIEDADDRESS(String.valueOf("shipToVerifiedAddress")), @@ -63,13 +69,12 @@ public enum DeliveryAddressIndicatorEnum { OTHER(String.valueOf("other")); - private static final Logger LOG = - Logger.getLogger(DeliveryAddressIndicatorEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(DeliveryAddressIndicatorEnum.class.getName()); private String value; DeliveryAddressIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -90,11 +95,7 @@ public static DeliveryAddressIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "DeliveryAddressIndicatorEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(DeliveryAddressIndicatorEnum.values())); + LOG.warning("DeliveryAddressIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(DeliveryAddressIndicatorEnum.values())); return null; } } @@ -110,11 +111,10 @@ public static DeliveryAddressIndicatorEnum fromValue(String value) { private String deliveryEmailAddress; /** - * The estimated delivery time for the shopper to receive the goods. Allowed values: * - * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * - * `twoOrMoreDaysShipping` + * The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` */ public enum DeliveryTimeframeEnum { + ELECTRONICDELIVERY(String.valueOf("electronicDelivery")), SAMEDAYSHIPPING(String.valueOf("sameDayShipping")), @@ -128,7 +128,7 @@ public enum DeliveryTimeframeEnum { private String value; DeliveryTimeframeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -149,11 +149,7 @@ public static DeliveryTimeframeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "DeliveryTimeframeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(DeliveryTimeframeEnum.values())); + LOG.warning("DeliveryTimeframeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(DeliveryTimeframeEnum.values())); return null; } } @@ -188,7 +184,8 @@ public static DeliveryTimeframeEnum fromValue(String value) { public static final String JSON_PROPERTY_SHIP_INDICATOR = "shipIndicator"; private String shipIndicator; - public MerchantRiskIndicator() {} + public MerchantRiskIndicator() { + } /** * Whether the chosen delivery address is identical to the billing address. @@ -203,7 +200,6 @@ public MerchantRiskIndicator addressMatch(Boolean addressMatch) { /** * Whether the chosen delivery address is identical to the billing address. - * * @return addressMatch Whether the chosen delivery address is identical to the billing address. */ @JsonProperty(JSON_PROPERTY_ADDRESS_MATCH) @@ -224,31 +220,19 @@ public void setAddressMatch(Boolean addressMatch) { } /** - * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * - * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * - * `digitalGoods` * `goodsNotShipped` * `other` + * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` * - * @param deliveryAddressIndicator Indicator regarding the delivery address. Allowed values: * - * `shipToBillingAddress` * `shipToVerifiedAddress` * - * `shipToNewAddress` * `shipToStore` * `digitalGoods` * - * `goodsNotShipped` * `other` + * @param deliveryAddressIndicator Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ - public MerchantRiskIndicator deliveryAddressIndicator( - DeliveryAddressIndicatorEnum deliveryAddressIndicator) { + public MerchantRiskIndicator deliveryAddressIndicator(DeliveryAddressIndicatorEnum deliveryAddressIndicator) { this.deliveryAddressIndicator = deliveryAddressIndicator; return this; } /** - * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * - * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * - * `digitalGoods` * `goodsNotShipped` * `other` - * - * @return deliveryAddressIndicator Indicator regarding the delivery address. Allowed values: * - * `shipToBillingAddress` * `shipToVerifiedAddress` * - * `shipToNewAddress` * `shipToStore` * `digitalGoods` * - * `goodsNotShipped` * `other` + * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` + * @return deliveryAddressIndicator Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -257,14 +241,9 @@ public DeliveryAddressIndicatorEnum getDeliveryAddressIndicator() { } /** - * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * - * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * - * `digitalGoods` * `goodsNotShipped` * `other` + * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` * - * @param deliveryAddressIndicator Indicator regarding the delivery address. Allowed values: * - * `shipToBillingAddress` * `shipToVerifiedAddress` * - * `shipToNewAddress` * `shipToStore` * `digitalGoods` * - * `goodsNotShipped` * `other` + * @param deliveryAddressIndicator Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -277,7 +256,9 @@ public void setDeliveryAddressIndicator(DeliveryAddressIndicatorEnum deliveryAdd * * @param deliveryEmail The delivery email address (for digital goods). * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining - * @deprecated since Adyen Payment API v68 Use `deliveryEmailAddress` instead. + * + * @deprecated since Adyen Payment API v68 + * Use `deliveryEmailAddress` instead. */ @Deprecated // deprecated since Adyen Payment API v68: Use `deliveryEmailAddress` instead. public MerchantRiskIndicator deliveryEmail(String deliveryEmail) { @@ -287,7 +268,6 @@ public MerchantRiskIndicator deliveryEmail(String deliveryEmail) { /** * The delivery email address (for digital goods). - * * @return deliveryEmail The delivery email address (for digital goods). * @deprecated // deprecated since Adyen Payment API v68: Use `deliveryEmailAddress` instead. */ @@ -302,7 +282,9 @@ public String getDeliveryEmail() { * The delivery email address (for digital goods). * * @param deliveryEmail The delivery email address (for digital goods). - * @deprecated since Adyen Payment API v68 Use `deliveryEmailAddress` instead. + * + * @deprecated since Adyen Payment API v68 + * Use `deliveryEmailAddress` instead. */ @Deprecated // deprecated since Adyen Payment API v68: Use `deliveryEmailAddress` instead. @JsonProperty(JSON_PROPERTY_DELIVERY_EMAIL) @@ -312,11 +294,9 @@ public void setDeliveryEmail(String deliveryEmail) { } /** - * For Electronic delivery, the email address to which the merchandise was delivered. Maximum - * length: 254 characters. + * For Electronic delivery, the email address to which the merchandise was delivered. Maximum length: 254 characters. * - * @param deliveryEmailAddress For Electronic delivery, the email address to which the merchandise - * was delivered. Maximum length: 254 characters. + * @param deliveryEmailAddress For Electronic delivery, the email address to which the merchandise was delivered. Maximum length: 254 characters. * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator deliveryEmailAddress(String deliveryEmailAddress) { @@ -325,11 +305,8 @@ public MerchantRiskIndicator deliveryEmailAddress(String deliveryEmailAddress) { } /** - * For Electronic delivery, the email address to which the merchandise was delivered. Maximum - * length: 254 characters. - * - * @return deliveryEmailAddress For Electronic delivery, the email address to which the - * merchandise was delivered. Maximum length: 254 characters. + * For Electronic delivery, the email address to which the merchandise was delivered. Maximum length: 254 characters. + * @return deliveryEmailAddress For Electronic delivery, the email address to which the merchandise was delivered. Maximum length: 254 characters. */ @JsonProperty(JSON_PROPERTY_DELIVERY_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -338,11 +315,9 @@ public String getDeliveryEmailAddress() { } /** - * For Electronic delivery, the email address to which the merchandise was delivered. Maximum - * length: 254 characters. + * For Electronic delivery, the email address to which the merchandise was delivered. Maximum length: 254 characters. * - * @param deliveryEmailAddress For Electronic delivery, the email address to which the merchandise - * was delivered. Maximum length: 254 characters. + * @param deliveryEmailAddress For Electronic delivery, the email address to which the merchandise was delivered. Maximum length: 254 characters. */ @JsonProperty(JSON_PROPERTY_DELIVERY_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -351,13 +326,9 @@ public void setDeliveryEmailAddress(String deliveryEmailAddress) { } /** - * The estimated delivery time for the shopper to receive the goods. Allowed values: * - * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * - * `twoOrMoreDaysShipping` + * The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` * - * @param deliveryTimeframe The estimated delivery time for the shopper to receive the goods. - * Allowed values: * `electronicDelivery` * `sameDayShipping` * - * `overnightShipping` * `twoOrMoreDaysShipping` + * @param deliveryTimeframe The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator deliveryTimeframe(DeliveryTimeframeEnum deliveryTimeframe) { @@ -366,13 +337,8 @@ public MerchantRiskIndicator deliveryTimeframe(DeliveryTimeframeEnum deliveryTim } /** - * The estimated delivery time for the shopper to receive the goods. Allowed values: * - * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * - * `twoOrMoreDaysShipping` - * - * @return deliveryTimeframe The estimated delivery time for the shopper to receive the goods. - * Allowed values: * `electronicDelivery` * `sameDayShipping` * - * `overnightShipping` * `twoOrMoreDaysShipping` + * The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` + * @return deliveryTimeframe The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` */ @JsonProperty(JSON_PROPERTY_DELIVERY_TIMEFRAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -381,13 +347,9 @@ public DeliveryTimeframeEnum getDeliveryTimeframe() { } /** - * The estimated delivery time for the shopper to receive the goods. Allowed values: * - * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * - * `twoOrMoreDaysShipping` + * The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` * - * @param deliveryTimeframe The estimated delivery time for the shopper to receive the goods. - * Allowed values: * `electronicDelivery` * `sameDayShipping` * - * `overnightShipping` * `twoOrMoreDaysShipping` + * @param deliveryTimeframe The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` */ @JsonProperty(JSON_PROPERTY_DELIVERY_TIMEFRAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -398,7 +360,7 @@ public void setDeliveryTimeframe(DeliveryTimeframeEnum deliveryTimeframe) { /** * giftCardAmount * - * @param giftCardAmount + * @param giftCardAmount * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator giftCardAmount(Amount giftCardAmount) { @@ -408,8 +370,7 @@ public MerchantRiskIndicator giftCardAmount(Amount giftCardAmount) { /** * Get giftCardAmount - * - * @return giftCardAmount + * @return giftCardAmount */ @JsonProperty(JSON_PROPERTY_GIFT_CARD_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -420,7 +381,7 @@ public Amount getGiftCardAmount() { /** * giftCardAmount * - * @param giftCardAmount + * @param giftCardAmount */ @JsonProperty(JSON_PROPERTY_GIFT_CARD_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -429,11 +390,9 @@ public void setGiftCardAmount(Amount giftCardAmount) { } /** - * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes - * purchased. + * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. * - * @param giftCardCount For prepaid or gift card purchase, total count of individual prepaid or - * gift cards/codes purchased. + * @param giftCardCount For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator giftCardCount(Integer giftCardCount) { @@ -442,11 +401,8 @@ public MerchantRiskIndicator giftCardCount(Integer giftCardCount) { } /** - * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes - * purchased. - * - * @return giftCardCount For prepaid or gift card purchase, total count of individual prepaid or - * gift cards/codes purchased. + * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. + * @return giftCardCount For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. */ @JsonProperty(JSON_PROPERTY_GIFT_CARD_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -455,11 +411,9 @@ public Integer getGiftCardCount() { } /** - * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes - * purchased. + * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. * - * @param giftCardCount For prepaid or gift card purchase, total count of individual prepaid or - * gift cards/codes purchased. + * @param giftCardCount For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. */ @JsonProperty(JSON_PROPERTY_GIFT_CARD_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -468,14 +422,9 @@ public void setGiftCardCount(Integer giftCardCount) { } /** - * For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) - * three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo - * 3D Secure Protocol and Core Functions Specification. + * For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification. * - * @param giftCardCurr For prepaid or gift card purchase, [ISO - * 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the - * gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core - * Functions Specification. + * @param giftCardCurr For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification. * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator giftCardCurr(String giftCardCurr) { @@ -484,14 +433,8 @@ public MerchantRiskIndicator giftCardCurr(String giftCardCurr) { } /** - * For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) - * three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo - * 3D Secure Protocol and Core Functions Specification. - * - * @return giftCardCurr For prepaid or gift card purchase, [ISO - * 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the - * gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core - * Functions Specification. + * For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification. + * @return giftCardCurr For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification. */ @JsonProperty(JSON_PROPERTY_GIFT_CARD_CURR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -500,14 +443,9 @@ public String getGiftCardCurr() { } /** - * For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) - * three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo - * 3D Secure Protocol and Core Functions Specification. + * For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification. * - * @param giftCardCurr For prepaid or gift card purchase, [ISO - * 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the - * gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core - * Functions Specification. + * @param giftCardCurr For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification. */ @JsonProperty(JSON_PROPERTY_GIFT_CARD_CURR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -518,8 +456,7 @@ public void setGiftCardCurr(String giftCardCurr) { /** * For pre-order purchases, the expected date this product will be available to the shopper. * - * @param preOrderDate For pre-order purchases, the expected date this product will be available - * to the shopper. + * @param preOrderDate For pre-order purchases, the expected date this product will be available to the shopper. * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator preOrderDate(OffsetDateTime preOrderDate) { @@ -529,9 +466,7 @@ public MerchantRiskIndicator preOrderDate(OffsetDateTime preOrderDate) { /** * For pre-order purchases, the expected date this product will be available to the shopper. - * - * @return preOrderDate For pre-order purchases, the expected date this product will be available - * to the shopper. + * @return preOrderDate For pre-order purchases, the expected date this product will be available to the shopper. */ @JsonProperty(JSON_PROPERTY_PRE_ORDER_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -542,8 +477,7 @@ public OffsetDateTime getPreOrderDate() { /** * For pre-order purchases, the expected date this product will be available to the shopper. * - * @param preOrderDate For pre-order purchases, the expected date this product will be available - * to the shopper. + * @param preOrderDate For pre-order purchases, the expected date this product will be available to the shopper. */ @JsonProperty(JSON_PROPERTY_PRE_ORDER_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -564,7 +498,6 @@ public MerchantRiskIndicator preOrderPurchase(Boolean preOrderPurchase) { /** * Indicator for whether this transaction is for pre-ordering a product. - * * @return preOrderPurchase Indicator for whether this transaction is for pre-ordering a product. */ @JsonProperty(JSON_PROPERTY_PRE_ORDER_PURCHASE) @@ -585,11 +518,9 @@ public void setPreOrderPurchase(Boolean preOrderPurchase) { } /** - * Indicates whether Cardholder is placing an order for merchandise with a future availability or - * release date. + * Indicates whether Cardholder is placing an order for merchandise with a future availability or release date. * - * @param preOrderPurchaseInd Indicates whether Cardholder is placing an order for merchandise - * with a future availability or release date. + * @param preOrderPurchaseInd Indicates whether Cardholder is placing an order for merchandise with a future availability or release date. * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator preOrderPurchaseInd(String preOrderPurchaseInd) { @@ -598,11 +529,8 @@ public MerchantRiskIndicator preOrderPurchaseInd(String preOrderPurchaseInd) { } /** - * Indicates whether Cardholder is placing an order for merchandise with a future availability or - * release date. - * - * @return preOrderPurchaseInd Indicates whether Cardholder is placing an order for merchandise - * with a future availability or release date. + * Indicates whether Cardholder is placing an order for merchandise with a future availability or release date. + * @return preOrderPurchaseInd Indicates whether Cardholder is placing an order for merchandise with a future availability or release date. */ @JsonProperty(JSON_PROPERTY_PRE_ORDER_PURCHASE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -611,11 +539,9 @@ public String getPreOrderPurchaseInd() { } /** - * Indicates whether Cardholder is placing an order for merchandise with a future availability or - * release date. + * Indicates whether Cardholder is placing an order for merchandise with a future availability or release date. * - * @param preOrderPurchaseInd Indicates whether Cardholder is placing an order for merchandise - * with a future availability or release date. + * @param preOrderPurchaseInd Indicates whether Cardholder is placing an order for merchandise with a future availability or release date. */ @JsonProperty(JSON_PROPERTY_PRE_ORDER_PURCHASE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -626,8 +552,7 @@ public void setPreOrderPurchaseInd(String preOrderPurchaseInd) { /** * Indicator for whether the shopper has already purchased the same items in the past. * - * @param reorderItems Indicator for whether the shopper has already purchased the same items in - * the past. + * @param reorderItems Indicator for whether the shopper has already purchased the same items in the past. * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator reorderItems(Boolean reorderItems) { @@ -637,9 +562,7 @@ public MerchantRiskIndicator reorderItems(Boolean reorderItems) { /** * Indicator for whether the shopper has already purchased the same items in the past. - * - * @return reorderItems Indicator for whether the shopper has already purchased the same items in - * the past. + * @return reorderItems Indicator for whether the shopper has already purchased the same items in the past. */ @JsonProperty(JSON_PROPERTY_REORDER_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -650,8 +573,7 @@ public Boolean getReorderItems() { /** * Indicator for whether the shopper has already purchased the same items in the past. * - * @param reorderItems Indicator for whether the shopper has already purchased the same items in - * the past. + * @param reorderItems Indicator for whether the shopper has already purchased the same items in the past. */ @JsonProperty(JSON_PROPERTY_REORDER_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -662,8 +584,7 @@ public void setReorderItems(Boolean reorderItems) { /** * Indicates whether the cardholder is reordering previously purchased merchandise. * - * @param reorderItemsInd Indicates whether the cardholder is reordering previously purchased - * merchandise. + * @param reorderItemsInd Indicates whether the cardholder is reordering previously purchased merchandise. * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator reorderItemsInd(String reorderItemsInd) { @@ -673,9 +594,7 @@ public MerchantRiskIndicator reorderItemsInd(String reorderItemsInd) { /** * Indicates whether the cardholder is reordering previously purchased merchandise. - * - * @return reorderItemsInd Indicates whether the cardholder is reordering previously purchased - * merchandise. + * @return reorderItemsInd Indicates whether the cardholder is reordering previously purchased merchandise. */ @JsonProperty(JSON_PROPERTY_REORDER_ITEMS_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -686,8 +605,7 @@ public String getReorderItemsInd() { /** * Indicates whether the cardholder is reordering previously purchased merchandise. * - * @param reorderItemsInd Indicates whether the cardholder is reordering previously purchased - * merchandise. + * @param reorderItemsInd Indicates whether the cardholder is reordering previously purchased merchandise. */ @JsonProperty(JSON_PROPERTY_REORDER_ITEMS_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -708,7 +626,6 @@ public MerchantRiskIndicator shipIndicator(String shipIndicator) { /** * Indicates shipping method chosen for the transaction. - * * @return shipIndicator Indicates shipping method chosen for the transaction. */ @JsonProperty(JSON_PROPERTY_SHIP_INDICATOR) @@ -728,7 +645,9 @@ public void setShipIndicator(String shipIndicator) { this.shipIndicator = shipIndicator; } - /** Return true if this MerchantRiskIndicator object is equal to o. */ + /** + * Return true if this MerchantRiskIndicator object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -738,40 +657,25 @@ public boolean equals(Object o) { return false; } MerchantRiskIndicator merchantRiskIndicator = (MerchantRiskIndicator) o; - return Objects.equals(this.addressMatch, merchantRiskIndicator.addressMatch) - && Objects.equals( - this.deliveryAddressIndicator, merchantRiskIndicator.deliveryAddressIndicator) - && Objects.equals(this.deliveryEmail, merchantRiskIndicator.deliveryEmail) - && Objects.equals(this.deliveryEmailAddress, merchantRiskIndicator.deliveryEmailAddress) - && Objects.equals(this.deliveryTimeframe, merchantRiskIndicator.deliveryTimeframe) - && Objects.equals(this.giftCardAmount, merchantRiskIndicator.giftCardAmount) - && Objects.equals(this.giftCardCount, merchantRiskIndicator.giftCardCount) - && Objects.equals(this.giftCardCurr, merchantRiskIndicator.giftCardCurr) - && Objects.equals(this.preOrderDate, merchantRiskIndicator.preOrderDate) - && Objects.equals(this.preOrderPurchase, merchantRiskIndicator.preOrderPurchase) - && Objects.equals(this.preOrderPurchaseInd, merchantRiskIndicator.preOrderPurchaseInd) - && Objects.equals(this.reorderItems, merchantRiskIndicator.reorderItems) - && Objects.equals(this.reorderItemsInd, merchantRiskIndicator.reorderItemsInd) - && Objects.equals(this.shipIndicator, merchantRiskIndicator.shipIndicator); + return Objects.equals(this.addressMatch, merchantRiskIndicator.addressMatch) && + Objects.equals(this.deliveryAddressIndicator, merchantRiskIndicator.deliveryAddressIndicator) && + Objects.equals(this.deliveryEmail, merchantRiskIndicator.deliveryEmail) && + Objects.equals(this.deliveryEmailAddress, merchantRiskIndicator.deliveryEmailAddress) && + Objects.equals(this.deliveryTimeframe, merchantRiskIndicator.deliveryTimeframe) && + Objects.equals(this.giftCardAmount, merchantRiskIndicator.giftCardAmount) && + Objects.equals(this.giftCardCount, merchantRiskIndicator.giftCardCount) && + Objects.equals(this.giftCardCurr, merchantRiskIndicator.giftCardCurr) && + Objects.equals(this.preOrderDate, merchantRiskIndicator.preOrderDate) && + Objects.equals(this.preOrderPurchase, merchantRiskIndicator.preOrderPurchase) && + Objects.equals(this.preOrderPurchaseInd, merchantRiskIndicator.preOrderPurchaseInd) && + Objects.equals(this.reorderItems, merchantRiskIndicator.reorderItems) && + Objects.equals(this.reorderItemsInd, merchantRiskIndicator.reorderItemsInd) && + Objects.equals(this.shipIndicator, merchantRiskIndicator.shipIndicator); } @Override public int hashCode() { - return Objects.hash( - addressMatch, - deliveryAddressIndicator, - deliveryEmail, - deliveryEmailAddress, - deliveryTimeframe, - giftCardAmount, - giftCardCount, - giftCardCurr, - preOrderDate, - preOrderPurchase, - preOrderPurchaseInd, - reorderItems, - reorderItemsInd, - shipIndicator); + return Objects.hash(addressMatch, deliveryAddressIndicator, deliveryEmail, deliveryEmailAddress, deliveryTimeframe, giftCardAmount, giftCardCount, giftCardCurr, preOrderDate, preOrderPurchase, preOrderPurchaseInd, reorderItems, reorderItemsInd, shipIndicator); } @Override @@ -779,22 +683,16 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MerchantRiskIndicator {\n"); sb.append(" addressMatch: ").append(toIndentedString(addressMatch)).append("\n"); - sb.append(" deliveryAddressIndicator: ") - .append(toIndentedString(deliveryAddressIndicator)) - .append("\n"); + sb.append(" deliveryAddressIndicator: ").append(toIndentedString(deliveryAddressIndicator)).append("\n"); sb.append(" deliveryEmail: ").append(toIndentedString(deliveryEmail)).append("\n"); - sb.append(" deliveryEmailAddress: ") - .append(toIndentedString(deliveryEmailAddress)) - .append("\n"); + sb.append(" deliveryEmailAddress: ").append(toIndentedString(deliveryEmailAddress)).append("\n"); sb.append(" deliveryTimeframe: ").append(toIndentedString(deliveryTimeframe)).append("\n"); sb.append(" giftCardAmount: ").append(toIndentedString(giftCardAmount)).append("\n"); sb.append(" giftCardCount: ").append(toIndentedString(giftCardCount)).append("\n"); sb.append(" giftCardCurr: ").append(toIndentedString(giftCardCurr)).append("\n"); sb.append(" preOrderDate: ").append(toIndentedString(preOrderDate)).append("\n"); sb.append(" preOrderPurchase: ").append(toIndentedString(preOrderPurchase)).append("\n"); - sb.append(" preOrderPurchaseInd: ") - .append(toIndentedString(preOrderPurchaseInd)) - .append("\n"); + sb.append(" preOrderPurchaseInd: ").append(toIndentedString(preOrderPurchaseInd)).append("\n"); sb.append(" reorderItems: ").append(toIndentedString(reorderItems)).append("\n"); sb.append(" reorderItemsInd: ").append(toIndentedString(reorderItemsInd)).append("\n"); sb.append(" shipIndicator: ").append(toIndentedString(shipIndicator)).append("\n"); @@ -803,7 +701,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -812,23 +711,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of MerchantRiskIndicator given an JSON string * * @param jsonString JSON string * @return An instance of MerchantRiskIndicator - * @throws JsonProcessingException if the JSON string is invalid with respect to - * MerchantRiskIndicator + * @throws JsonProcessingException if the JSON string is invalid with respect to MerchantRiskIndicator */ public static MerchantRiskIndicator fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MerchantRiskIndicator.class); } - - /** - * Convert an instance of MerchantRiskIndicator to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of MerchantRiskIndicator to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ModificationResult.java b/src/main/java/com/adyen/model/payment/ModificationResult.java index ac7520e2a..4fd2129e8 100644 --- a/src/main/java/com/adyen/model/payment/ModificationResult.java +++ b/src/main/java/com/adyen/model/payment/ModificationResult.java @@ -2,33 +2,39 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** ModificationResult */ + +/** + * ModificationResult + */ @JsonPropertyOrder({ ModificationResult.JSON_PROPERTY_ADDITIONAL_DATA, ModificationResult.JSON_PROPERTY_PSP_REFERENCE, ModificationResult.JSON_PROPERTY_RESPONSE }) + public class ModificationResult { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -36,8 +42,11 @@ public class ModificationResult { public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference"; private String pspReference; - /** Indicates if the modification request has been received for processing. */ + /** + * Indicates if the modification request has been received for processing. + */ public enum ResponseEnum { + _CAPTURE_RECEIVED_(String.valueOf("[capture-received]")), _CANCEL_RECEIVED_(String.valueOf("[cancel-received]")), @@ -61,7 +70,7 @@ public enum ResponseEnum { private String value; ResponseEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -82,11 +91,7 @@ public static ResponseEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ResponseEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ResponseEnum.values())); + LOG.warning("ResponseEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResponseEnum.values())); return null; } } @@ -94,14 +99,13 @@ public static ResponseEnum fromValue(String value) { public static final String JSON_PROPERTY_RESPONSE = "response"; private ResponseEnum response; - public ModificationResult() {} + public ModificationResult() { + } /** - * This field contains additional data, which may be returned in a particular modification - * response. + * This field contains additional data, which may be returned in a particular modification response. * - * @param additionalData This field contains additional data, which may be returned in a - * particular modification response. + * @param additionalData This field contains additional data, which may be returned in a particular modification response. * @return the current {@code ModificationResult} instance, allowing for method chaining */ public ModificationResult additionalData(Map additionalData) { @@ -118,11 +122,8 @@ public ModificationResult putAdditionalDataItem(String key, String additionalDat } /** - * This field contains additional data, which may be returned in a particular modification - * response. - * - * @return additionalData This field contains additional data, which may be returned in a - * particular modification response. + * This field contains additional data, which may be returned in a particular modification response. + * @return additionalData This field contains additional data, which may be returned in a particular modification response. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -131,11 +132,9 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be returned in a particular modification - * response. + * This field contains additional data, which may be returned in a particular modification response. * - * @param additionalData This field contains additional data, which may be returned in a - * particular modification response. + * @param additionalData This field contains additional data, which may be returned in a particular modification response. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,12 +143,9 @@ public void setAdditionalData(Map additionalData) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value - * is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character string reference associated with the - * transaction/request. This value is globally unique; quote it when communicating with us - * about this request. + * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. * @return the current {@code ModificationResult} instance, allowing for method chaining */ public ModificationResult pspReference(String pspReference) { @@ -158,12 +154,8 @@ public ModificationResult pspReference(String pspReference) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value - * is globally unique; quote it when communicating with us about this request. - * - * @return pspReference Adyen's 16-character string reference associated with the - * transaction/request. This value is globally unique; quote it when communicating with us - * about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @return pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,12 +164,9 @@ public String getPspReference() { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value - * is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character string reference associated with the - * transaction/request. This value is globally unique; quote it when communicating with us - * about this request. + * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,7 +187,6 @@ public ModificationResult response(ResponseEnum response) { /** * Indicates if the modification request has been received for processing. - * * @return response Indicates if the modification request has been received for processing. */ @JsonProperty(JSON_PROPERTY_RESPONSE) @@ -218,7 +206,9 @@ public void setResponse(ResponseEnum response) { this.response = response; } - /** Return true if this ModificationResult object is equal to o. */ + /** + * Return true if this ModificationResult object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -228,9 +218,9 @@ public boolean equals(Object o) { return false; } ModificationResult modificationResult = (ModificationResult) o; - return Objects.equals(this.additionalData, modificationResult.additionalData) - && Objects.equals(this.pspReference, modificationResult.pspReference) - && Objects.equals(this.response, modificationResult.response); + return Objects.equals(this.additionalData, modificationResult.additionalData) && + Objects.equals(this.pspReference, modificationResult.pspReference) && + Objects.equals(this.response, modificationResult.response); } @Override @@ -250,7 +240,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -259,23 +250,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ModificationResult given an JSON string * * @param jsonString JSON string * @return An instance of ModificationResult - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ModificationResult + * @throws JsonProcessingException if the JSON string is invalid with respect to ModificationResult */ public static ModificationResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ModificationResult.class); } - - /** - * Convert an instance of ModificationResult to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ModificationResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/Name.java b/src/main/java/com/adyen/model/payment/Name.java index 26a769518..b0b72e987 100644 --- a/src/main/java/com/adyen/model/payment/Name.java +++ b/src/main/java/com/adyen/model/payment/Name.java @@ -2,23 +2,36 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Name */ -@JsonPropertyOrder({Name.JSON_PROPERTY_FIRST_NAME, Name.JSON_PROPERTY_LAST_NAME}) + +/** + * Name + */ +@JsonPropertyOrder({ + Name.JSON_PROPERTY_FIRST_NAME, + Name.JSON_PROPERTY_LAST_NAME +}) + public class Name { public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; private String firstName; @@ -26,7 +39,8 @@ public class Name { public static final String JSON_PROPERTY_LAST_NAME = "lastName"; private String lastName; - public Name() {} + public Name() { + } /** * The first name. @@ -41,7 +55,6 @@ public Name firstName(String firstName) { /** * The first name. - * * @return firstName The first name. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @@ -74,7 +87,6 @@ public Name lastName(String lastName) { /** * The last name. - * * @return lastName The last name. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @@ -94,7 +106,9 @@ public void setLastName(String lastName) { this.lastName = lastName; } - /** Return true if this Name object is equal to o. */ + /** + * Return true if this Name object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -104,8 +118,8 @@ public boolean equals(Object o) { return false; } Name name = (Name) o; - return Objects.equals(this.firstName, name.firstName) - && Objects.equals(this.lastName, name.lastName); + return Objects.equals(this.firstName, name.firstName) && + Objects.equals(this.lastName, name.lastName); } @Override @@ -124,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Name given an JSON string * * @param jsonString JSON string @@ -143,12 +158,11 @@ private String toIndentedString(Object o) { public static Name fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Name.class); } - - /** - * Convert an instance of Name to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Name to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/PaymentRequest.java b/src/main/java/com/adyen/model/payment/PaymentRequest.java index 455a4acbd..9aeda3a0b 100644 --- a/src/main/java/com/adyen/model/payment/PaymentRequest.java +++ b/src/main/java/com/adyen/model/payment/PaymentRequest.java @@ -2,32 +2,57 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.payment.AccountInfo; +import com.adyen.model.payment.Address; +import com.adyen.model.payment.Amount; +import com.adyen.model.payment.ApplicationInfo; +import com.adyen.model.payment.BankAccount; +import com.adyen.model.payment.BrowserInfo; +import com.adyen.model.payment.Card; +import com.adyen.model.payment.ForexQuote; +import com.adyen.model.payment.FundDestination; +import com.adyen.model.payment.FundSource; +import com.adyen.model.payment.Installments; +import com.adyen.model.payment.Mandate; +import com.adyen.model.payment.MerchantRiskIndicator; +import com.adyen.model.payment.Name; +import com.adyen.model.payment.PlatformChargebackLogic; +import com.adyen.model.payment.Recurring; +import com.adyen.model.payment.SecureRemoteCommerceCheckoutData; +import com.adyen.model.payment.Split; +import com.adyen.model.payment.ThreeDS2RequestData; +import com.adyen.model.payment.ThreeDSecureData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.time.OffsetDateTime; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PaymentRequest */ +/** + * PaymentRequest + */ @JsonPropertyOrder({ PaymentRequest.JSON_PROPERTY_ACCOUNT_INFO, PaymentRequest.JSON_PROPERTY_ADDITIONAL_AMOUNT, @@ -84,6 +109,7 @@ PaymentRequest.JSON_PROPERTY_TOTALS_GROUP, PaymentRequest.JSON_PROPERTY_TRUSTED_SHOPPER }) + public class PaymentRequest { public static final String JSON_PROPERTY_ACCOUNT_INFO = "accountInfo"; private AccountInfo accountInfo; @@ -130,8 +156,11 @@ public class PaymentRequest { public static final String JSON_PROPERTY_DEVICE_FINGERPRINT = "deviceFingerprint"; private String deviceFingerprint; - /** The type of the entity the payment is processed for. */ + /** + * The type of the entity the payment is processed for. + */ public enum EntityTypeEnum { + NATURALPERSON(String.valueOf("NaturalPerson")), COMPANYNAME(String.valueOf("CompanyName")); @@ -141,7 +170,7 @@ public enum EntityTypeEnum { private String value; EntityTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -162,11 +191,7 @@ public static EntityTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "EntityTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(EntityTypeEnum.values())); + LOG.warning("EntityTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(EntityTypeEnum.values())); return null; } } @@ -184,10 +209,10 @@ public static EntityTypeEnum fromValue(String value) { private FundSource fundSource; /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ public enum FundingSourceEnum { + CREDIT(String.valueOf("credit")), DEBIT(String.valueOf("debit")); @@ -197,7 +222,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -218,11 +243,7 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FundingSourceEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FundingSourceEnum.values())); + LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -233,8 +254,7 @@ public static FundingSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_INSTALLMENTS = "installments"; private Installments installments; - public static final String JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT = - "localizedShopperStatement"; + public static final String JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT = "localizedShopperStatement"; private Map localizedShopperStatement; public static final String JSON_PROPERTY_MANDATE = "mandate"; @@ -271,30 +291,22 @@ public static FundingSourceEnum fromValue(String value) { private Recurring recurring; /** - * Defines a recurring payment type. Required when creating a token to store payment details or - * using stored payment details. Allowed values: * `Subscription` – A transaction for a - * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a - * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – - * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ public enum RecurringProcessingModelEnum { + CARDONFILE(String.valueOf("CardOnFile")), SUBSCRIPTION(String.valueOf("Subscription")), UNSCHEDULEDCARDONFILE(String.valueOf("UnscheduledCardOnFile")); - private static final Logger LOG = - Logger.getLogger(RecurringProcessingModelEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(RecurringProcessingModelEnum.class.getName()); private String value; RecurringProcessingModelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -315,11 +327,7 @@ public static RecurringProcessingModelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "RecurringProcessingModelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(RecurringProcessingModelEnum.values())); + LOG.warning("RecurringProcessingModelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RecurringProcessingModelEnum.values())); return null; } } @@ -330,15 +338,13 @@ public static RecurringProcessingModelEnum fromValue(String value) { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public static final String JSON_PROPERTY_SECURE_REMOTE_COMMERCE_CHECKOUT_DATA = - "secureRemoteCommerceCheckoutData"; + public static final String JSON_PROPERTY_SECURE_REMOTE_COMMERCE_CHECKOUT_DATA = "secureRemoteCommerceCheckoutData"; private SecureRemoteCommerceCheckoutData secureRemoteCommerceCheckoutData; public static final String JSON_PROPERTY_SELECTED_BRAND = "selectedBrand"; private String selectedBrand; - public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = - "selectedRecurringDetailReference"; + public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = "selectedRecurringDetailReference"; private String selectedRecurringDetailReference; public static final String JSON_PROPERTY_SESSION_ID = "sessionId"; @@ -351,19 +357,10 @@ public static RecurringProcessingModelEnum fromValue(String value) { private String shopperIP; /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ public enum ShopperInteractionEnum { + ECOMMERCE(String.valueOf("Ecommerce")), CONTAUTH(String.valueOf("ContAuth")), @@ -377,7 +374,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -398,11 +395,7 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ShopperInteractionEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -437,8 +430,7 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S2_REQUEST_DATA = "threeDS2RequestData"; private ThreeDS2RequestData threeDS2RequestData; - public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = - "threeDSAuthenticationOnly"; + public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = "threeDSAuthenticationOnly"; private Boolean threeDSAuthenticationOnly; public static final String JSON_PROPERTY_TOTALS_GROUP = "totalsGroup"; @@ -447,12 +439,13 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_TRUSTED_SHOPPER = "trustedShopper"; private Boolean trustedShopper; - public PaymentRequest() {} + public PaymentRequest() { + } /** * accountInfo * - * @param accountInfo + * @param accountInfo * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest accountInfo(AccountInfo accountInfo) { @@ -462,8 +455,7 @@ public PaymentRequest accountInfo(AccountInfo accountInfo) { /** * Get accountInfo - * - * @return accountInfo + * @return accountInfo */ @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -474,7 +466,7 @@ public AccountInfo getAccountInfo() { /** * accountInfo * - * @param accountInfo + * @param accountInfo */ @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -485,7 +477,7 @@ public void setAccountInfo(AccountInfo accountInfo) { /** * additionalAmount * - * @param additionalAmount + * @param additionalAmount * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest additionalAmount(Amount additionalAmount) { @@ -495,8 +487,7 @@ public PaymentRequest additionalAmount(Amount additionalAmount) { /** * Get additionalAmount - * - * @return additionalAmount + * @return additionalAmount */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -507,7 +498,7 @@ public Amount getAdditionalAmount() { /** * additionalAmount * - * @param additionalAmount + * @param additionalAmount */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -516,13 +507,9 @@ public void setAdditionalAmount(Amount additionalAmount) { } /** - * This field contains additional data, which may be required for a particular payment request. - * The `additionalData` object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular payment request. The `additionalData` object consists of entries, each - * of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest additionalData(Map additionalData) { @@ -539,13 +526,8 @@ public PaymentRequest putAdditionalDataItem(String key, String additionalDataIte } /** - * This field contains additional data, which may be required for a particular payment request. - * The `additionalData` object consists of entries, each of which includes the key and - * value. - * - * @return additionalData This field contains additional data, which may be required for a - * particular payment request. The `additionalData` object consists of entries, each - * of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * @return additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -554,13 +536,9 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular payment request. - * The `additionalData` object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular payment request. The `additionalData` object consists of entries, each - * of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -571,7 +549,7 @@ public void setAdditionalData(Map additionalData) { /** * amount * - * @param amount + * @param amount * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest amount(Amount amount) { @@ -581,8 +559,7 @@ public PaymentRequest amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -593,7 +570,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -604,7 +581,7 @@ public void setAmount(Amount amount) { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest applicationInfo(ApplicationInfo applicationInfo) { @@ -614,8 +591,7 @@ public PaymentRequest applicationInfo(ApplicationInfo applicationInfo) { /** * Get applicationInfo - * - * @return applicationInfo + * @return applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -626,7 +602,7 @@ public ApplicationInfo getApplicationInfo() { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -637,7 +613,7 @@ public void setApplicationInfo(ApplicationInfo applicationInfo) { /** * bankAccount * - * @param bankAccount + * @param bankAccount * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest bankAccount(BankAccount bankAccount) { @@ -647,8 +623,7 @@ public PaymentRequest bankAccount(BankAccount bankAccount) { /** * Get bankAccount - * - * @return bankAccount + * @return bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -659,7 +634,7 @@ public BankAccount getBankAccount() { /** * bankAccount * - * @param bankAccount + * @param bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -670,7 +645,7 @@ public void setBankAccount(BankAccount bankAccount) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest billingAddress(Address billingAddress) { @@ -680,8 +655,7 @@ public PaymentRequest billingAddress(Address billingAddress) { /** * Get billingAddress - * - * @return billingAddress + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -692,7 +666,7 @@ public Address getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -703,7 +677,7 @@ public void setBillingAddress(Address billingAddress) { /** * browserInfo * - * @param browserInfo + * @param browserInfo * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest browserInfo(BrowserInfo browserInfo) { @@ -713,8 +687,7 @@ public PaymentRequest browserInfo(BrowserInfo browserInfo) { /** * Get browserInfo - * - * @return browserInfo + * @return browserInfo */ @JsonProperty(JSON_PROPERTY_BROWSER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -725,7 +698,7 @@ public BrowserInfo getBrowserInfo() { /** * browserInfo * - * @param browserInfo + * @param browserInfo */ @JsonProperty(JSON_PROPERTY_BROWSER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -736,8 +709,7 @@ public void setBrowserInfo(BrowserInfo browserInfo) { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, - * specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest captureDelayHours(Integer captureDelayHours) { @@ -747,9 +719,7 @@ public PaymentRequest captureDelayHours(Integer captureDelayHours) { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. - * - * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, - * specified in hours. + * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -760,8 +730,7 @@ public Integer getCaptureDelayHours() { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, - * specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -772,7 +741,7 @@ public void setCaptureDelayHours(Integer captureDelayHours) { /** * card * - * @param card + * @param card * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest card(Card card) { @@ -782,8 +751,7 @@ public PaymentRequest card(Card card) { /** * Get card - * - * @return card + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -794,7 +762,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -803,11 +771,9 @@ public void setCard(Card card) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): - * YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest dateOfBirth(LocalDate dateOfBirth) { @@ -816,11 +782,8 @@ public PaymentRequest dateOfBirth(LocalDate dateOfBirth) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): - * YYYY-MM-DD - * - * @return dateOfBirth The shopper's date of birth. Format - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @return dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -829,11 +792,9 @@ public LocalDate getDateOfBirth() { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): - * YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -844,7 +805,7 @@ public void setDateOfBirth(LocalDate dateOfBirth) { /** * dccQuote * - * @param dccQuote + * @param dccQuote * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest dccQuote(ForexQuote dccQuote) { @@ -854,8 +815,7 @@ public PaymentRequest dccQuote(ForexQuote dccQuote) { /** * Get dccQuote - * - * @return dccQuote + * @return dccQuote */ @JsonProperty(JSON_PROPERTY_DCC_QUOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -866,7 +826,7 @@ public ForexQuote getDccQuote() { /** * dccQuote * - * @param dccQuote + * @param dccQuote */ @JsonProperty(JSON_PROPERTY_DCC_QUOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -877,7 +837,7 @@ public void setDccQuote(ForexQuote dccQuote) { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest deliveryAddress(Address deliveryAddress) { @@ -887,8 +847,7 @@ public PaymentRequest deliveryAddress(Address deliveryAddress) { /** * Get deliveryAddress - * - * @return deliveryAddress + * @return deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -899,7 +858,7 @@ public Address getDeliveryAddress() { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -908,13 +867,9 @@ public void setDeliveryAddress(Address deliveryAddress) { } /** - * The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 * - * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest deliveryDate(OffsetDateTime deliveryDate) { @@ -923,13 +878,8 @@ public PaymentRequest deliveryDate(OffsetDateTime deliveryDate) { } /** - * The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 - * - * @return deliveryDate The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * @return deliveryDate The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 */ @JsonProperty(JSON_PROPERTY_DELIVERY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -938,13 +888,9 @@ public OffsetDateTime getDeliveryDate() { } /** - * The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 * - * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 */ @JsonProperty(JSON_PROPERTY_DELIVERY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -953,12 +899,9 @@ public void setDeliveryDate(OffsetDateTime deliveryDate) { } /** - * A string containing the shopper's device fingerprint. For more information, refer to - * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * - * @param deviceFingerprint A string containing the shopper's device fingerprint. For more - * information, refer to [Device - * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @param deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest deviceFingerprint(String deviceFingerprint) { @@ -967,12 +910,8 @@ public PaymentRequest deviceFingerprint(String deviceFingerprint) { } /** - * A string containing the shopper's device fingerprint. For more information, refer to - * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). - * - * @return deviceFingerprint A string containing the shopper's device fingerprint. For more - * information, refer to [Device - * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @return deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -981,12 +920,9 @@ public String getDeviceFingerprint() { } /** - * A string containing the shopper's device fingerprint. For more information, refer to - * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * - * @param deviceFingerprint A string containing the shopper's device fingerprint. For more - * information, refer to [Device - * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @param deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1007,7 +943,6 @@ public PaymentRequest entityType(EntityTypeEnum entityType) { /** * The type of the entity the payment is processed for. - * * @return entityType The type of the entity the payment is processed for. */ @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) @@ -1028,11 +963,9 @@ public void setEntityType(EntityTypeEnum entityType) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or - * negative. + * An integer value that is added to the normal fraud score. The value can be either positive or negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be - * either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest fraudOffset(Integer fraudOffset) { @@ -1041,11 +974,8 @@ public PaymentRequest fraudOffset(Integer fraudOffset) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or - * negative. - * - * @return fraudOffset An integer value that is added to the normal fraud score. The value can be - * either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + * @return fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1054,11 +984,9 @@ public Integer getFraudOffset() { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or - * negative. + * An integer value that is added to the normal fraud score. The value can be either positive or negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be - * either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1069,7 +997,7 @@ public void setFraudOffset(Integer fraudOffset) { /** * fundDestination * - * @param fundDestination + * @param fundDestination * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest fundDestination(FundDestination fundDestination) { @@ -1079,8 +1007,7 @@ public PaymentRequest fundDestination(FundDestination fundDestination) { /** * Get fundDestination - * - * @return fundDestination + * @return fundDestination */ @JsonProperty(JSON_PROPERTY_FUND_DESTINATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1091,7 +1018,7 @@ public FundDestination getFundDestination() { /** * fundDestination * - * @param fundDestination + * @param fundDestination */ @JsonProperty(JSON_PROPERTY_FUND_DESTINATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1102,7 +1029,7 @@ public void setFundDestination(FundDestination fundDestination) { /** * fundSource * - * @param fundSource + * @param fundSource * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest fundSource(FundSource fundSource) { @@ -1112,8 +1039,7 @@ public PaymentRequest fundSource(FundSource fundSource) { /** * Get fundSource - * - * @return fundSource + * @return fundSource */ @JsonProperty(JSON_PROPERTY_FUND_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1124,7 +1050,7 @@ public FundSource getFundSource() { /** * fundSource * - * @param fundSource + * @param fundSource */ @JsonProperty(JSON_PROPERTY_FUND_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1133,12 +1059,9 @@ public void setFundSource(FundSource fundSource) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest fundingSource(FundingSourceEnum fundingSource) { @@ -1147,12 +1070,8 @@ public PaymentRequest fundingSource(FundingSourceEnum fundingSource) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. - * - * @return fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @return fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1161,12 +1080,9 @@ public FundingSourceEnum getFundingSource() { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo - * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are - * available. For Brazilian combo cards, by default the funding source is credit. To use - * debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1177,7 +1093,7 @@ public void setFundingSource(FundingSourceEnum fundingSource) { /** * installments * - * @param installments + * @param installments * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest installments(Installments installments) { @@ -1187,8 +1103,7 @@ public PaymentRequest installments(Installments installments) { /** * Get installments - * - * @return installments + * @return installments */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1199,7 +1114,7 @@ public Installments getInstallments() { /** * installments * - * @param installments + * @param installments */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1208,19 +1123,9 @@ public void setInstallments(Installments installments) { } /** - * The `localizedShopperStatement` field lets you use dynamic values for your shopper - * statement in a local character set. If not supplied, left empty, or for cross-border - * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani - * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This - * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special - * characters. * Half-width or full-width characters. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. * - * @param localizedShopperStatement The `localizedShopperStatement` field lets you use - * dynamic values for your shopper statement in a local character set. If not supplied, left - * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently - * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in - * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, - * capital letters, numbers and special characters. * Half-width or full-width characters. + * @param localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest localizedShopperStatement(Map localizedShopperStatement) { @@ -1228,8 +1133,7 @@ public PaymentRequest localizedShopperStatement(Map localizedSho return this; } - public PaymentRequest putLocalizedShopperStatementItem( - String key, String localizedShopperStatementItem) { + public PaymentRequest putLocalizedShopperStatementItem(String key, String localizedShopperStatementItem) { if (this.localizedShopperStatement == null) { this.localizedShopperStatement = new HashMap<>(); } @@ -1238,19 +1142,8 @@ public PaymentRequest putLocalizedShopperStatementItem( } /** - * The `localizedShopperStatement` field lets you use dynamic values for your shopper - * statement in a local character set. If not supplied, left empty, or for cross-border - * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani - * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This - * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special - * characters. * Half-width or full-width characters. - * - * @return localizedShopperStatement The `localizedShopperStatement` field lets you use - * dynamic values for your shopper statement in a local character set. If not supplied, left - * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently - * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in - * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, - * capital letters, numbers and special characters. * Half-width or full-width characters. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. + * @return localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. */ @JsonProperty(JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1259,19 +1152,9 @@ public Map getLocalizedShopperStatement() { } /** - * The `localizedShopperStatement` field lets you use dynamic values for your shopper - * statement in a local character set. If not supplied, left empty, or for cross-border - * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani - * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This - * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special - * characters. * Half-width or full-width characters. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. * - * @param localizedShopperStatement The `localizedShopperStatement` field lets you use - * dynamic values for your shopper statement in a local character set. If not supplied, left - * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently - * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in - * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, - * capital letters, numbers and special characters. * Half-width or full-width characters. + * @param localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. */ @JsonProperty(JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1282,7 +1165,7 @@ public void setLocalizedShopperStatement(Map localizedShopperSta /** * mandate * - * @param mandate + * @param mandate * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest mandate(Mandate mandate) { @@ -1292,8 +1175,7 @@ public PaymentRequest mandate(Mandate mandate) { /** * Get mandate - * - * @return mandate + * @return mandate */ @JsonProperty(JSON_PROPERTY_MANDATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1304,7 +1186,7 @@ public Mandate getMandate() { /** * mandate * - * @param mandate + * @param mandate */ @JsonProperty(JSON_PROPERTY_MANDATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1313,13 +1195,9 @@ public void setMandate(Mandate mandate) { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a - * four-digit number, which relates to a particular market segment. This code reflects the - * predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) - * (MCC) is a four-digit number, which relates to a particular market segment. This code - * reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest mcc(String mcc) { @@ -1328,13 +1206,8 @@ public PaymentRequest mcc(String mcc) { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a - * four-digit number, which relates to a particular market segment. This code reflects the - * predominant activity that is conducted by the merchant. - * - * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) - * (MCC) is a four-digit number, which relates to a particular market segment. This code - * reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1343,13 +1216,9 @@ public String getMcc() { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a - * four-digit number, which relates to a particular market segment. This code reflects the - * predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) - * (MCC) is a four-digit number, which relates to a particular market segment. This code - * reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1360,8 +1229,7 @@ public void setMcc(String mcc) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest merchantAccount(String merchantAccount) { @@ -1371,9 +1239,7 @@ public PaymentRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * - * @return merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @return merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1384,8 +1250,7 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1394,23 +1259,9 @@ public void setMerchantAccount(String merchantAccount) { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. - * order auth-rate). The reference should be unique per billing cycle. The same merchant order - * reference should never be reused after the first authorised attempt. If used, this field should - * be supplied for all incoming authorisations. > We strongly recommend you send the - * `merchantOrderReference` value to benefit from linking payment requests when - * authorisation retries take place. In addition, we recommend you provide - * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. - * - * @param merchantOrderReference This reference allows linking multiple transactions to each other - * for reporting purposes (i.e. order auth-rate). The reference should be unique per billing - * cycle. The same merchant order reference should never be reused after the first authorised - * attempt. If used, this field should be supplied for all incoming authorisations. > We - * strongly recommend you send the `merchantOrderReference` value to benefit from - * linking payment requests when authorisation retries take place. In addition, we recommend - * you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * + * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest merchantOrderReference(String merchantOrderReference) { @@ -1419,24 +1270,8 @@ public PaymentRequest merchantOrderReference(String merchantOrderReference) { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. - * order auth-rate). The reference should be unique per billing cycle. The same merchant order - * reference should never be reused after the first authorised attempt. If used, this field should - * be supplied for all incoming authorisations. > We strongly recommend you send the - * `merchantOrderReference` value to benefit from linking payment requests when - * authorisation retries take place. In addition, we recommend you provide - * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. - * - * @return merchantOrderReference This reference allows linking multiple transactions to each - * other for reporting purposes (i.e. order auth-rate). The reference should be unique per - * billing cycle. The same merchant order reference should never be reused after the first - * authorised attempt. If used, this field should be supplied for all incoming authorisations. - * > We strongly recommend you send the `merchantOrderReference` value to benefit - * from linking payment requests when authorisation retries take place. In addition, we - * recommend you provide `retry.orderAttemptNumber`, - * `retry.chainAttemptNumber`, and `retry.skipRetry` values in - * `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * @return merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1445,23 +1280,9 @@ public String getMerchantOrderReference() { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. - * order auth-rate). The reference should be unique per billing cycle. The same merchant order - * reference should never be reused after the first authorised attempt. If used, this field should - * be supplied for all incoming authorisations. > We strongly recommend you send the - * `merchantOrderReference` value to benefit from linking payment requests when - * authorisation retries take place. In addition, we recommend you provide - * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. * - * @param merchantOrderReference This reference allows linking multiple transactions to each other - * for reporting purposes (i.e. order auth-rate). The reference should be unique per billing - * cycle. The same merchant order reference should never be reused after the first authorised - * attempt. If used, this field should be supplied for all incoming authorisations. > We - * strongly recommend you send the `merchantOrderReference` value to benefit from - * linking payment requests when authorisation retries take place. In addition, we recommend - * you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1472,7 +1293,7 @@ public void setMerchantOrderReference(String merchantOrderReference) { /** * merchantRiskIndicator * - * @param merchantRiskIndicator + * @param merchantRiskIndicator * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest merchantRiskIndicator(MerchantRiskIndicator merchantRiskIndicator) { @@ -1482,8 +1303,7 @@ public PaymentRequest merchantRiskIndicator(MerchantRiskIndicator merchantRiskIn /** * Get merchantRiskIndicator - * - * @return merchantRiskIndicator + * @return merchantRiskIndicator */ @JsonProperty(JSON_PROPERTY_MERCHANT_RISK_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1494,7 +1314,7 @@ public MerchantRiskIndicator getMerchantRiskIndicator() { /** * merchantRiskIndicator * - * @param merchantRiskIndicator + * @param merchantRiskIndicator */ @JsonProperty(JSON_PROPERTY_MERCHANT_RISK_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1503,15 +1323,9 @@ public void setMerchantRiskIndicator(MerchantRiskIndicator merchantRiskIndicator } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 - * key-value pairs per request. When exceeding, the \"177\" error occurs: - * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 - * characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: - * * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error - * occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * - * Maximum 80 characters per value. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest metadata(Map metadata) { @@ -1528,15 +1342,8 @@ public PaymentRequest putMetadataItem(String key, String metadataItem) { } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 - * key-value pairs per request. When exceeding, the \"177\" error occurs: - * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 - * characters per value. - * - * @return metadata Metadata consists of entries, each of which includes a key and a value. - * Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" - * error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * - * Maximum 80 characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * @return metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1545,15 +1352,9 @@ public Map getMetadata() { } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 - * key-value pairs per request. When exceeding, the \"177\" error occurs: - * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 - * characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: - * * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error - * occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * - * Maximum 80 characters per value. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1564,7 +1365,7 @@ public void setMetadata(Map metadata) { /** * mpiData * - * @param mpiData + * @param mpiData * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest mpiData(ThreeDSecureData mpiData) { @@ -1574,8 +1375,7 @@ public PaymentRequest mpiData(ThreeDSecureData mpiData) { /** * Get mpiData - * - * @return mpiData + * @return mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1586,7 +1386,7 @@ public ThreeDSecureData getMpiData() { /** * mpiData * - * @param mpiData + * @param mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1607,7 +1407,6 @@ public PaymentRequest nationality(String nationality) { /** * The two-character country code of the shopper's nationality. - * * @return nationality The two-character country code of the shopper's nationality. */ @JsonProperty(JSON_PROPERTY_NATIONALITY) @@ -1628,14 +1427,9 @@ public void setNationality(String nationality) { } /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` - * of the first payment. We use this to link the multiple payments to each other. As your own - * reference for linking multiple payments, use the `merchantOrderReference`instead. + * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. * - * @param orderReference When you are doing multiple partial (gift card) payments, this is the - * `pspReference` of the first payment. We use this to link the multiple payments to - * each other. As your own reference for linking multiple payments, use the - * `merchantOrderReference`instead. + * @param orderReference When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest orderReference(String orderReference) { @@ -1644,14 +1438,8 @@ public PaymentRequest orderReference(String orderReference) { } /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` - * of the first payment. We use this to link the multiple payments to each other. As your own - * reference for linking multiple payments, use the `merchantOrderReference`instead. - * - * @return orderReference When you are doing multiple partial (gift card) payments, this is the - * `pspReference` of the first payment. We use this to link the multiple payments to - * each other. As your own reference for linking multiple payments, use the - * `merchantOrderReference`instead. + * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + * @return orderReference When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. */ @JsonProperty(JSON_PROPERTY_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1660,14 +1448,9 @@ public String getOrderReference() { } /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` - * of the first payment. We use this to link the multiple payments to each other. As your own - * reference for linking multiple payments, use the `merchantOrderReference`instead. + * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. * - * @param orderReference When you are doing multiple partial (gift card) payments, this is the - * `pspReference` of the first payment. We use this to link the multiple payments to - * each other. As your own reference for linking multiple payments, use the - * `merchantOrderReference`instead. + * @param orderReference When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. */ @JsonProperty(JSON_PROPERTY_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1678,7 +1461,7 @@ public void setOrderReference(String orderReference) { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) { @@ -1688,8 +1471,7 @@ public PaymentRequest platformChargebackLogic(PlatformChargebackLogic platformCh /** * Get platformChargebackLogic - * - * @return platformChargebackLogic + * @return platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1700,7 +1482,7 @@ public PlatformChargebackLogic getPlatformChargebackLogic() { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1711,7 +1493,7 @@ public void setPlatformChargebackLogic(PlatformChargebackLogic platformChargebac /** * recurring * - * @param recurring + * @param recurring * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest recurring(Recurring recurring) { @@ -1721,8 +1503,7 @@ public PaymentRequest recurring(Recurring recurring) { /** * Get recurring - * - * @return recurring + * @return recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1733,7 +1514,7 @@ public Recurring getRecurring() { /** * recurring * - * @param recurring + * @param recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1742,55 +1523,19 @@ public void setRecurring(Recurring recurring) { } /** - * Defines a recurring payment type. Required when creating a token to store payment details or - * using stored payment details. Allowed values: * `Subscription` – A transaction for a - * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a - * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – - * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. - * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a - * token to store payment details or using stored payment details. Allowed values: * - * `Subscription` – A transaction for a fixed or variable amount, which follows a - * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card - * details are stored to enable one-click or omnichannel journeys, or simply to streamline the - * checkout process. Any subscription not following a fixed schedule is also considered a - * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file - * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have - * variable amounts. For example, automatic top-ups when a cardholder's balance drops - * below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ - public PaymentRequest recurringProcessingModel( - RecurringProcessingModelEnum recurringProcessingModel) { + public PaymentRequest recurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) { this.recurringProcessingModel = recurringProcessingModel; return this; } /** - * Defines a recurring payment type. Required when creating a token to store payment details or - * using stored payment details. Allowed values: * `Subscription` – A transaction for a - * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a - * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – - * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. - * - * @return recurringProcessingModel Defines a recurring payment type. Required when creating a - * token to store payment details or using stored payment details. Allowed values: * - * `Subscription` – A transaction for a fixed or variable amount, which follows a - * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card - * details are stored to enable one-click or omnichannel journeys, or simply to streamline the - * checkout process. Any subscription not following a fixed schedule is also considered a - * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file - * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have - * variable amounts. For example, automatic top-ups when a cardholder's balance drops - * below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * @return recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1799,26 +1544,9 @@ public RecurringProcessingModelEnum getRecurringProcessingModel() { } /** - * Defines a recurring payment type. Required when creating a token to store payment details or - * using stored payment details. Allowed values: * `Subscription` – A transaction for a - * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a - * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – - * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. - * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a - * token to store payment details or using stored payment details. Allowed values: * - * `Subscription` – A transaction for a fixed or variable amount, which follows a - * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card - * details are stored to enable one-click or omnichannel journeys, or simply to streamline the - * checkout process. Any subscription not following a fixed schedule is also considered a - * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file - * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have - * variable amounts. For example, automatic top-ups when a cardholder's balance drops - * below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1827,15 +1555,9 @@ public void setRecurringProcessingModel(RecurringProcessingModelEnum recurringPr } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest reference(String reference) { @@ -1844,15 +1566,8 @@ public PaymentRequest reference(String reference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. - * - * @return reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @return reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1861,15 +1576,9 @@ public String getReference() { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1880,19 +1589,17 @@ public void setReference(String reference) { /** * secureRemoteCommerceCheckoutData * - * @param secureRemoteCommerceCheckoutData + * @param secureRemoteCommerceCheckoutData * @return the current {@code PaymentRequest} instance, allowing for method chaining */ - public PaymentRequest secureRemoteCommerceCheckoutData( - SecureRemoteCommerceCheckoutData secureRemoteCommerceCheckoutData) { + public PaymentRequest secureRemoteCommerceCheckoutData(SecureRemoteCommerceCheckoutData secureRemoteCommerceCheckoutData) { this.secureRemoteCommerceCheckoutData = secureRemoteCommerceCheckoutData; return this; } /** * Get secureRemoteCommerceCheckoutData - * - * @return secureRemoteCommerceCheckoutData + * @return secureRemoteCommerceCheckoutData */ @JsonProperty(JSON_PROPERTY_SECURE_REMOTE_COMMERCE_CHECKOUT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1903,25 +1610,18 @@ public SecureRemoteCommerceCheckoutData getSecureRemoteCommerceCheckoutData() { /** * secureRemoteCommerceCheckoutData * - * @param secureRemoteCommerceCheckoutData + * @param secureRemoteCommerceCheckoutData */ @JsonProperty(JSON_PROPERTY_SECURE_REMOTE_COMMERCE_CHECKOUT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSecureRemoteCommerceCheckoutData( - SecureRemoteCommerceCheckoutData secureRemoteCommerceCheckoutData) { + public void setSecureRemoteCommerceCheckoutData(SecureRemoteCommerceCheckoutData secureRemoteCommerceCheckoutData) { this.secureRemoteCommerceCheckoutData = secureRemoteCommerceCheckoutData; } /** - * Some payment methods require defining a value for this field to specify how to process the - * transaction. For the Bancontact payment method, it can be set to: * `maestro` - * (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a - * Bancontact card. + * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. * - * @param selectedBrand Some payment methods require defining a value for this field to specify - * how to process the transaction. For the Bancontact payment method, it can be set to: * - * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, - * to be processed like a Bancontact card. + * @param selectedBrand Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest selectedBrand(String selectedBrand) { @@ -1930,15 +1630,8 @@ public PaymentRequest selectedBrand(String selectedBrand) { } /** - * Some payment methods require defining a value for this field to specify how to process the - * transaction. For the Bancontact payment method, it can be set to: * `maestro` - * (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a - * Bancontact card. - * - * @return selectedBrand Some payment methods require defining a value for this field to specify - * how to process the transaction. For the Bancontact payment method, it can be set to: * - * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, - * to be processed like a Bancontact card. + * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. + * @return selectedBrand Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. */ @JsonProperty(JSON_PROPERTY_SELECTED_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1947,15 +1640,9 @@ public String getSelectedBrand() { } /** - * Some payment methods require defining a value for this field to specify how to process the - * transaction. For the Bancontact payment method, it can be set to: * `maestro` - * (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a - * Bancontact card. + * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. * - * @param selectedBrand Some payment methods require defining a value for this field to specify - * how to process the transaction. For the Bancontact payment method, it can be set to: * - * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, - * to be processed like a Bancontact card. + * @param selectedBrand Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. */ @JsonProperty(JSON_PROPERTY_SELECTED_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1964,12 +1651,9 @@ public void setSelectedBrand(String selectedBrand) { } /** - * The `recurringDetailReference` you want to use for this payment. The value - * `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. * - * @param selectedRecurringDetailReference The `recurringDetailReference` you want to - * use for this payment. The value `LATEST` can be used to select the most recently - * stored recurring detail. + * @param selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest selectedRecurringDetailReference(String selectedRecurringDetailReference) { @@ -1978,12 +1662,8 @@ public PaymentRequest selectedRecurringDetailReference(String selectedRecurringD } /** - * The `recurringDetailReference` you want to use for this payment. The value - * `LATEST` can be used to select the most recently stored recurring detail. - * - * @return selectedRecurringDetailReference The `recurringDetailReference` you want to - * use for this payment. The value `LATEST` can be used to select the most recently - * stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * @return selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1992,12 +1672,9 @@ public String getSelectedRecurringDetailReference() { } /** - * The `recurringDetailReference` you want to use for this payment. The value - * `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. * - * @param selectedRecurringDetailReference The `recurringDetailReference` you want to - * use for this payment. The value `LATEST` can be used to select the most recently - * stored recurring detail. + * @param selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2018,7 +1695,6 @@ public PaymentRequest sessionId(String sessionId) { /** * A session ID used to identify a payment session. - * * @return sessionId A session ID used to identify a payment session. */ @JsonProperty(JSON_PROPERTY_SESSION_ID) @@ -2039,13 +1715,9 @@ public void setSessionId(String sessionId) { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in - * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 - * authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, - * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that - * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest shopperEmail(String shopperEmail) { @@ -2054,13 +1726,8 @@ public PaymentRequest shopperEmail(String shopperEmail) { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in - * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 - * authentication if you did not include the `telephoneNumber`. - * - * @return shopperEmail The shopper's email address. We recommend that you provide this data, - * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that - * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @return shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2069,13 +1736,9 @@ public String getShopperEmail() { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in - * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 - * authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, - * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that - * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2084,22 +1747,9 @@ public void setShopperEmail(String shopperEmail) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks). > - * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and - * mobile integrations, if you did not include the `shopperEmail`. For native mobile - * integrations, the field is required to support cases where authentication is routed to the - * redirect flow. This field is also mandatory for some merchants depending on your business - * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it - * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks). > Required for Visa and JCB transactions that require 3D Secure - * 2 authentication for all web and mobile integrations, if you did not include the - * `shopperEmail`. For native mobile integrations, the field is required to support - * cases where authentication is routed to the redirect flow. This field is also mandatory for - * some merchants depending on your business model. For more information, [contact - * Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest shopperIP(String shopperIP) { @@ -2108,22 +1758,8 @@ public PaymentRequest shopperIP(String shopperIP) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks). > - * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and - * mobile integrations, if you did not include the `shopperEmail`. For native mobile - * integrations, the field is required to support cases where authentication is routed to the - * redirect flow. This field is also mandatory for some merchants depending on your business - * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). - * - * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it - * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks). > Required for Visa and JCB transactions that require 3D Secure - * 2 authentication for all web and mobile integrations, if you did not include the - * `shopperEmail`. For native mobile integrations, the field is required to support - * cases where authentication is routed to the redirect flow. This field is also mandatory for - * some merchants depending on your business model. For more information, [contact - * Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2132,22 +1768,9 @@ public String getShopperIP() { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks). > - * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and - * mobile integrations, if you did not include the `shopperEmail`. For native mobile - * integrations, the field is required to support cases where authentication is routed to the - * redirect flow. This field is also mandatory for some merchants depending on your business - * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it - * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks). > Required for Visa and JCB transactions that require 3D Secure - * 2 authentication for all web and mobile integrations, if you did not include the - * `shopperEmail`. For native mobile integrations, the field is required to support - * cases where authentication is routed to the redirect flow. This field is also mandatory for - * some merchants depending on your business model. For more information, [contact - * Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2156,30 +1779,9 @@ public void setShopperIP(String shopperIP) { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. - * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest shopperInteraction(ShopperInteractionEnum shopperInteraction) { @@ -2188,30 +1790,8 @@ public PaymentRequest shopperInteraction(ShopperInteractionEnum shopperInteracti } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. - * - * @return shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * @return shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2220,30 +1800,9 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. - * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2252,11 +1811,9 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The combination of a language code and a country code to specify the language to be used in the payment. * - * @param shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest shopperLocale(String shopperLocale) { @@ -2265,11 +1822,8 @@ public PaymentRequest shopperLocale(String shopperLocale) { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. - * - * @return shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the payment. + * @return shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2278,11 +1832,9 @@ public String getShopperLocale() { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The combination of a language code and a country code to specify the language to be used in the payment. * - * @param shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2293,7 +1845,7 @@ public void setShopperLocale(String shopperLocale) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest shopperName(Name shopperName) { @@ -2303,8 +1855,7 @@ public PaymentRequest shopperName(Name shopperName) { /** * Get shopperName - * - * @return shopperName + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2315,7 +1866,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2324,15 +1875,9 @@ public void setShopperName(Name shopperName) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example - * user ID or account ID. The value is case-sensitive and must be at least three characters. > - * Your reference must not include personally identifiable information (PII) such as name or email - * address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify - * this shopper, for example user ID or account ID. The value is case-sensitive and must be at - * least three characters. > Your reference must not include personally identifiable - * information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest shopperReference(String shopperReference) { @@ -2341,15 +1886,8 @@ public PaymentRequest shopperReference(String shopperReference) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example - * user ID or account ID. The value is case-sensitive and must be at least three characters. > - * Your reference must not include personally identifiable information (PII) such as name or email - * address. - * - * @return shopperReference Required for recurring payments. Your reference to uniquely identify - * this shopper, for example user ID or account ID. The value is case-sensitive and must be at - * least three characters. > Your reference must not include personally identifiable - * information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @return shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2358,15 +1896,9 @@ public String getShopperReference() { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example - * user ID or account ID. The value is case-sensitive and must be at least three characters. > - * Your reference must not include personally identifiable information (PII) such as name or email - * address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify - * this shopper, for example user ID or account ID. The value is case-sensitive and must be at - * least three characters. > Your reference must not include personally identifiable - * information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2375,14 +1907,9 @@ public void setShopperReference(String shopperReference) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 - * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, - * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend - * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed - * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * - * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest shopperStatement(String shopperStatement) { @@ -2391,14 +1918,8 @@ public PaymentRequest shopperStatement(String shopperStatement) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 - * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, - * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. - * - * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend - * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed - * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * - * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2407,14 +1928,9 @@ public String getShopperStatement() { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 - * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, - * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend - * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed - * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * - * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2435,7 +1951,6 @@ public PaymentRequest socialSecurityNumber(String socialSecurityNumber) { /** * The shopper's social security number. - * * @return socialSecurityNumber The shopper's social security number. */ @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER) @@ -2456,15 +1971,9 @@ public void setSocialSecurityNumber(String socialSecurityNumber) { } /** - * An array of objects specifying how the payment should be split when using either Adyen for - * Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/split-payments), or standalone - * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). * - * @param splits An array of objects specifying how the payment should be split when using either - * Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) - * or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone - * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * @param splits An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest splits(List splits) { @@ -2481,15 +1990,8 @@ public PaymentRequest addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how the payment should be split when using either Adyen for - * Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/split-payments), or standalone - * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). - * - * @return splits An array of objects specifying how the payment should be split when using either - * Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) - * or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone - * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * @return splits An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2498,15 +2000,9 @@ public List getSplits() { } /** - * An array of objects specifying how the payment should be split when using either Adyen for - * Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/split-payments), or standalone - * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). * - * @param splits An array of objects specifying how the payment should be split when using either - * Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) - * or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone - * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * @param splits An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2515,22 +2011,9 @@ public void setSplits(List splits) { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. * - * @param store Required for Adyen for Platforms integrations if you are a platform model. This is - * your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest store(String store) { @@ -2539,22 +2022,8 @@ public PaymentRequest store(String store) { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. - * - * @return store Required for Adyen for Platforms integrations if you are a platform model. This - * is your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * @return store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2563,22 +2032,9 @@ public String getStore() { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. * - * @param store Required for Adyen for Platforms integrations if you are a platform model. This is - * your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2587,17 +2043,9 @@ public void setStore(String store) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus - * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest telephoneNumber(String telephoneNumber) { @@ -2606,17 +2054,8 @@ public PaymentRequest telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. - * - * @return telephoneNumber The shopper's telephone number. The phone number must include a - * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @return telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2625,17 +2064,9 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus - * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2646,7 +2077,7 @@ public void setTelephoneNumber(String telephoneNumber) { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest threeDS2RequestData(ThreeDS2RequestData threeDS2RequestData) { @@ -2656,8 +2087,7 @@ public PaymentRequest threeDS2RequestData(ThreeDS2RequestData threeDS2RequestDat /** * Get threeDS2RequestData - * - * @return threeDS2RequestData + * @return threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2668,7 +2098,7 @@ public ThreeDS2RequestData getThreeDS2RequestData() { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2677,15 +2107,9 @@ public void setThreeDS2RequestData(ThreeDS2RequestData threeDS2RequestData) { } /** - * Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. * - * @param threeDSAuthenticationOnly Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. + * @param threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { @@ -2694,15 +2118,8 @@ public PaymentRequest threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnl } /** - * Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. - * - * @return threeDSAuthenticationOnly Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * @return threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2711,15 +2128,9 @@ public Boolean getThreeDSAuthenticationOnly() { } /** - * Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. * - * @param threeDSAuthenticationOnly Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. + * @param threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2728,11 +2139,9 @@ public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { } /** - * The reference value to aggregate sales totals in reporting. When not specified, the store field - * is used (if available). + * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). * - * @param totalsGroup The reference value to aggregate sales totals in reporting. When not - * specified, the store field is used (if available). + * @param totalsGroup The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest totalsGroup(String totalsGroup) { @@ -2741,11 +2150,8 @@ public PaymentRequest totalsGroup(String totalsGroup) { } /** - * The reference value to aggregate sales totals in reporting. When not specified, the store field - * is used (if available). - * - * @return totalsGroup The reference value to aggregate sales totals in reporting. When not - * specified, the store field is used (if available). + * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). + * @return totalsGroup The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). */ @JsonProperty(JSON_PROPERTY_TOTALS_GROUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2754,11 +2160,9 @@ public String getTotalsGroup() { } /** - * The reference value to aggregate sales totals in reporting. When not specified, the store field - * is used (if available). + * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). * - * @param totalsGroup The reference value to aggregate sales totals in reporting. When not - * specified, the store field is used (if available). + * @param totalsGroup The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). */ @JsonProperty(JSON_PROPERTY_TOTALS_GROUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2779,7 +2183,6 @@ public PaymentRequest trustedShopper(Boolean trustedShopper) { /** * Set to true if the payment should be routed to a trusted MID. - * * @return trustedShopper Set to true if the payment should be routed to a trusted MID. */ @JsonProperty(JSON_PROPERTY_TRUSTED_SHOPPER) @@ -2799,7 +2202,9 @@ public void setTrustedShopper(Boolean trustedShopper) { this.trustedShopper = trustedShopper; } - /** Return true if this PaymentRequest object is equal to o. */ + /** + * Return true if this PaymentRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -2809,121 +2214,65 @@ public boolean equals(Object o) { return false; } PaymentRequest paymentRequest = (PaymentRequest) o; - return Objects.equals(this.accountInfo, paymentRequest.accountInfo) - && Objects.equals(this.additionalAmount, paymentRequest.additionalAmount) - && Objects.equals(this.additionalData, paymentRequest.additionalData) - && Objects.equals(this.amount, paymentRequest.amount) - && Objects.equals(this.applicationInfo, paymentRequest.applicationInfo) - && Objects.equals(this.bankAccount, paymentRequest.bankAccount) - && Objects.equals(this.billingAddress, paymentRequest.billingAddress) - && Objects.equals(this.browserInfo, paymentRequest.browserInfo) - && Objects.equals(this.captureDelayHours, paymentRequest.captureDelayHours) - && Objects.equals(this.card, paymentRequest.card) - && Objects.equals(this.dateOfBirth, paymentRequest.dateOfBirth) - && Objects.equals(this.dccQuote, paymentRequest.dccQuote) - && Objects.equals(this.deliveryAddress, paymentRequest.deliveryAddress) - && Objects.equals(this.deliveryDate, paymentRequest.deliveryDate) - && Objects.equals(this.deviceFingerprint, paymentRequest.deviceFingerprint) - && Objects.equals(this.entityType, paymentRequest.entityType) - && Objects.equals(this.fraudOffset, paymentRequest.fraudOffset) - && Objects.equals(this.fundDestination, paymentRequest.fundDestination) - && Objects.equals(this.fundSource, paymentRequest.fundSource) - && Objects.equals(this.fundingSource, paymentRequest.fundingSource) - && Objects.equals(this.installments, paymentRequest.installments) - && Objects.equals(this.localizedShopperStatement, paymentRequest.localizedShopperStatement) - && Objects.equals(this.mandate, paymentRequest.mandate) - && Objects.equals(this.mcc, paymentRequest.mcc) - && Objects.equals(this.merchantAccount, paymentRequest.merchantAccount) - && Objects.equals(this.merchantOrderReference, paymentRequest.merchantOrderReference) - && Objects.equals(this.merchantRiskIndicator, paymentRequest.merchantRiskIndicator) - && Objects.equals(this.metadata, paymentRequest.metadata) - && Objects.equals(this.mpiData, paymentRequest.mpiData) - && Objects.equals(this.nationality, paymentRequest.nationality) - && Objects.equals(this.orderReference, paymentRequest.orderReference) - && Objects.equals(this.platformChargebackLogic, paymentRequest.platformChargebackLogic) - && Objects.equals(this.recurring, paymentRequest.recurring) - && Objects.equals(this.recurringProcessingModel, paymentRequest.recurringProcessingModel) - && Objects.equals(this.reference, paymentRequest.reference) - && Objects.equals( - this.secureRemoteCommerceCheckoutData, paymentRequest.secureRemoteCommerceCheckoutData) - && Objects.equals(this.selectedBrand, paymentRequest.selectedBrand) - && Objects.equals( - this.selectedRecurringDetailReference, paymentRequest.selectedRecurringDetailReference) - && Objects.equals(this.sessionId, paymentRequest.sessionId) - && Objects.equals(this.shopperEmail, paymentRequest.shopperEmail) - && Objects.equals(this.shopperIP, paymentRequest.shopperIP) - && Objects.equals(this.shopperInteraction, paymentRequest.shopperInteraction) - && Objects.equals(this.shopperLocale, paymentRequest.shopperLocale) - && Objects.equals(this.shopperName, paymentRequest.shopperName) - && Objects.equals(this.shopperReference, paymentRequest.shopperReference) - && Objects.equals(this.shopperStatement, paymentRequest.shopperStatement) - && Objects.equals(this.socialSecurityNumber, paymentRequest.socialSecurityNumber) - && Objects.equals(this.splits, paymentRequest.splits) - && Objects.equals(this.store, paymentRequest.store) - && Objects.equals(this.telephoneNumber, paymentRequest.telephoneNumber) - && Objects.equals(this.threeDS2RequestData, paymentRequest.threeDS2RequestData) - && Objects.equals(this.threeDSAuthenticationOnly, paymentRequest.threeDSAuthenticationOnly) - && Objects.equals(this.totalsGroup, paymentRequest.totalsGroup) - && Objects.equals(this.trustedShopper, paymentRequest.trustedShopper); + return Objects.equals(this.accountInfo, paymentRequest.accountInfo) && + Objects.equals(this.additionalAmount, paymentRequest.additionalAmount) && + Objects.equals(this.additionalData, paymentRequest.additionalData) && + Objects.equals(this.amount, paymentRequest.amount) && + Objects.equals(this.applicationInfo, paymentRequest.applicationInfo) && + Objects.equals(this.bankAccount, paymentRequest.bankAccount) && + Objects.equals(this.billingAddress, paymentRequest.billingAddress) && + Objects.equals(this.browserInfo, paymentRequest.browserInfo) && + Objects.equals(this.captureDelayHours, paymentRequest.captureDelayHours) && + Objects.equals(this.card, paymentRequest.card) && + Objects.equals(this.dateOfBirth, paymentRequest.dateOfBirth) && + Objects.equals(this.dccQuote, paymentRequest.dccQuote) && + Objects.equals(this.deliveryAddress, paymentRequest.deliveryAddress) && + Objects.equals(this.deliveryDate, paymentRequest.deliveryDate) && + Objects.equals(this.deviceFingerprint, paymentRequest.deviceFingerprint) && + Objects.equals(this.entityType, paymentRequest.entityType) && + Objects.equals(this.fraudOffset, paymentRequest.fraudOffset) && + Objects.equals(this.fundDestination, paymentRequest.fundDestination) && + Objects.equals(this.fundSource, paymentRequest.fundSource) && + Objects.equals(this.fundingSource, paymentRequest.fundingSource) && + Objects.equals(this.installments, paymentRequest.installments) && + Objects.equals(this.localizedShopperStatement, paymentRequest.localizedShopperStatement) && + Objects.equals(this.mandate, paymentRequest.mandate) && + Objects.equals(this.mcc, paymentRequest.mcc) && + Objects.equals(this.merchantAccount, paymentRequest.merchantAccount) && + Objects.equals(this.merchantOrderReference, paymentRequest.merchantOrderReference) && + Objects.equals(this.merchantRiskIndicator, paymentRequest.merchantRiskIndicator) && + Objects.equals(this.metadata, paymentRequest.metadata) && + Objects.equals(this.mpiData, paymentRequest.mpiData) && + Objects.equals(this.nationality, paymentRequest.nationality) && + Objects.equals(this.orderReference, paymentRequest.orderReference) && + Objects.equals(this.platformChargebackLogic, paymentRequest.platformChargebackLogic) && + Objects.equals(this.recurring, paymentRequest.recurring) && + Objects.equals(this.recurringProcessingModel, paymentRequest.recurringProcessingModel) && + Objects.equals(this.reference, paymentRequest.reference) && + Objects.equals(this.secureRemoteCommerceCheckoutData, paymentRequest.secureRemoteCommerceCheckoutData) && + Objects.equals(this.selectedBrand, paymentRequest.selectedBrand) && + Objects.equals(this.selectedRecurringDetailReference, paymentRequest.selectedRecurringDetailReference) && + Objects.equals(this.sessionId, paymentRequest.sessionId) && + Objects.equals(this.shopperEmail, paymentRequest.shopperEmail) && + Objects.equals(this.shopperIP, paymentRequest.shopperIP) && + Objects.equals(this.shopperInteraction, paymentRequest.shopperInteraction) && + Objects.equals(this.shopperLocale, paymentRequest.shopperLocale) && + Objects.equals(this.shopperName, paymentRequest.shopperName) && + Objects.equals(this.shopperReference, paymentRequest.shopperReference) && + Objects.equals(this.shopperStatement, paymentRequest.shopperStatement) && + Objects.equals(this.socialSecurityNumber, paymentRequest.socialSecurityNumber) && + Objects.equals(this.splits, paymentRequest.splits) && + Objects.equals(this.store, paymentRequest.store) && + Objects.equals(this.telephoneNumber, paymentRequest.telephoneNumber) && + Objects.equals(this.threeDS2RequestData, paymentRequest.threeDS2RequestData) && + Objects.equals(this.threeDSAuthenticationOnly, paymentRequest.threeDSAuthenticationOnly) && + Objects.equals(this.totalsGroup, paymentRequest.totalsGroup) && + Objects.equals(this.trustedShopper, paymentRequest.trustedShopper); } @Override public int hashCode() { - return Objects.hash( - accountInfo, - additionalAmount, - additionalData, - amount, - applicationInfo, - bankAccount, - billingAddress, - browserInfo, - captureDelayHours, - card, - dateOfBirth, - dccQuote, - deliveryAddress, - deliveryDate, - deviceFingerprint, - entityType, - fraudOffset, - fundDestination, - fundSource, - fundingSource, - installments, - localizedShopperStatement, - mandate, - mcc, - merchantAccount, - merchantOrderReference, - merchantRiskIndicator, - metadata, - mpiData, - nationality, - orderReference, - platformChargebackLogic, - recurring, - recurringProcessingModel, - reference, - secureRemoteCommerceCheckoutData, - selectedBrand, - selectedRecurringDetailReference, - sessionId, - shopperEmail, - shopperIP, - shopperInteraction, - shopperLocale, - shopperName, - shopperReference, - shopperStatement, - socialSecurityNumber, - splits, - store, - telephoneNumber, - threeDS2RequestData, - threeDSAuthenticationOnly, - totalsGroup, - trustedShopper); + return Objects.hash(accountInfo, additionalAmount, additionalData, amount, applicationInfo, bankAccount, billingAddress, browserInfo, captureDelayHours, card, dateOfBirth, dccQuote, deliveryAddress, deliveryDate, deviceFingerprint, entityType, fraudOffset, fundDestination, fundSource, fundingSource, installments, localizedShopperStatement, mandate, mcc, merchantAccount, merchantOrderReference, merchantRiskIndicator, metadata, mpiData, nationality, orderReference, platformChargebackLogic, recurring, recurringProcessingModel, reference, secureRemoteCommerceCheckoutData, selectedBrand, selectedRecurringDetailReference, sessionId, shopperEmail, shopperIP, shopperInteraction, shopperLocale, shopperName, shopperReference, shopperStatement, socialSecurityNumber, splits, store, telephoneNumber, threeDS2RequestData, threeDSAuthenticationOnly, totalsGroup, trustedShopper); } @Override @@ -2951,37 +2300,23 @@ public String toString() { sb.append(" fundSource: ").append(toIndentedString(fundSource)).append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); sb.append(" installments: ").append(toIndentedString(installments)).append("\n"); - sb.append(" localizedShopperStatement: ") - .append(toIndentedString(localizedShopperStatement)) - .append("\n"); + sb.append(" localizedShopperStatement: ").append(toIndentedString(localizedShopperStatement)).append("\n"); sb.append(" mandate: ").append(toIndentedString(mandate)).append("\n"); sb.append(" mcc: ").append(toIndentedString(mcc)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" merchantOrderReference: ") - .append(toIndentedString(merchantOrderReference)) - .append("\n"); - sb.append(" merchantRiskIndicator: ") - .append(toIndentedString(merchantRiskIndicator)) - .append("\n"); + sb.append(" merchantOrderReference: ").append(toIndentedString(merchantOrderReference)).append("\n"); + sb.append(" merchantRiskIndicator: ").append(toIndentedString(merchantRiskIndicator)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" mpiData: ").append(toIndentedString(mpiData)).append("\n"); sb.append(" nationality: ").append(toIndentedString(nationality)).append("\n"); sb.append(" orderReference: ").append(toIndentedString(orderReference)).append("\n"); - sb.append(" platformChargebackLogic: ") - .append(toIndentedString(platformChargebackLogic)) - .append("\n"); + sb.append(" platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n"); sb.append(" recurring: ").append(toIndentedString(recurring)).append("\n"); - sb.append(" recurringProcessingModel: ") - .append(toIndentedString(recurringProcessingModel)) - .append("\n"); + sb.append(" recurringProcessingModel: ").append(toIndentedString(recurringProcessingModel)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); - sb.append(" secureRemoteCommerceCheckoutData: ") - .append(toIndentedString(secureRemoteCommerceCheckoutData)) - .append("\n"); + sb.append(" secureRemoteCommerceCheckoutData: ").append(toIndentedString(secureRemoteCommerceCheckoutData)).append("\n"); sb.append(" selectedBrand: ").append(toIndentedString(selectedBrand)).append("\n"); - sb.append(" selectedRecurringDetailReference: ") - .append(toIndentedString(selectedRecurringDetailReference)) - .append("\n"); + sb.append(" selectedRecurringDetailReference: ").append(toIndentedString(selectedRecurringDetailReference)).append("\n"); sb.append(" sessionId: ").append(toIndentedString(sessionId)).append("\n"); sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); sb.append(" shopperIP: ").append(toIndentedString(shopperIP)).append("\n"); @@ -2990,18 +2325,12 @@ public String toString() { sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append(" shopperStatement: ").append(toIndentedString(shopperStatement)).append("\n"); - sb.append(" socialSecurityNumber: ") - .append(toIndentedString(socialSecurityNumber)) - .append("\n"); + sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" store: ").append(toIndentedString(store)).append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); - sb.append(" threeDS2RequestData: ") - .append(toIndentedString(threeDS2RequestData)) - .append("\n"); - sb.append(" threeDSAuthenticationOnly: ") - .append(toIndentedString(threeDSAuthenticationOnly)) - .append("\n"); + sb.append(" threeDS2RequestData: ").append(toIndentedString(threeDS2RequestData)).append("\n"); + sb.append(" threeDSAuthenticationOnly: ").append(toIndentedString(threeDSAuthenticationOnly)).append("\n"); sb.append(" totalsGroup: ").append(toIndentedString(totalsGroup)).append("\n"); sb.append(" trustedShopper: ").append(toIndentedString(trustedShopper)).append("\n"); sb.append("}"); @@ -3009,7 +2338,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -3018,7 +2348,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentRequest given an JSON string * * @param jsonString JSON string @@ -3028,12 +2358,11 @@ private String toIndentedString(Object o) { public static PaymentRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentRequest.class); } - - /** - * Convert an instance of PaymentRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/PaymentRequest3d.java b/src/main/java/com/adyen/model/payment/PaymentRequest3d.java index c2f1e9601..fa23797af 100644 --- a/src/main/java/com/adyen/model/payment/PaymentRequest3d.java +++ b/src/main/java/com/adyen/model/payment/PaymentRequest3d.java @@ -2,32 +2,49 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.payment.AccountInfo; +import com.adyen.model.payment.Address; +import com.adyen.model.payment.Amount; +import com.adyen.model.payment.ApplicationInfo; +import com.adyen.model.payment.BrowserInfo; +import com.adyen.model.payment.ForexQuote; +import com.adyen.model.payment.Installments; +import com.adyen.model.payment.MerchantRiskIndicator; +import com.adyen.model.payment.Name; +import com.adyen.model.payment.Recurring; +import com.adyen.model.payment.Split; +import com.adyen.model.payment.ThreeDS2RequestData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.time.OffsetDateTime; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PaymentRequest3d */ +/** + * PaymentRequest3d + */ @JsonPropertyOrder({ PaymentRequest3d.JSON_PROPERTY_ACCOUNT_INFO, PaymentRequest3d.JSON_PROPERTY_ADDITIONAL_AMOUNT, @@ -75,6 +92,7 @@ PaymentRequest3d.JSON_PROPERTY_TOTALS_GROUP, PaymentRequest3d.JSON_PROPERTY_TRUSTED_SHOPPER }) + public class PaymentRequest3d { public static final String JSON_PROPERTY_ACCOUNT_INFO = "accountInfo"; private AccountInfo accountInfo; @@ -121,8 +139,7 @@ public class PaymentRequest3d { public static final String JSON_PROPERTY_INSTALLMENTS = "installments"; private Installments installments; - public static final String JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT = - "localizedShopperStatement"; + public static final String JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT = "localizedShopperStatement"; private Map localizedShopperStatement; public static final String JSON_PROPERTY_MCC = "mcc"; @@ -153,30 +170,22 @@ public class PaymentRequest3d { private Recurring recurring; /** - * Defines a recurring payment type. Required when creating a token to store payment details or - * using stored payment details. Allowed values: * `Subscription` – A transaction for a - * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a - * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – - * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ public enum RecurringProcessingModelEnum { + CARDONFILE(String.valueOf("CardOnFile")), SUBSCRIPTION(String.valueOf("Subscription")), UNSCHEDULEDCARDONFILE(String.valueOf("UnscheduledCardOnFile")); - private static final Logger LOG = - Logger.getLogger(RecurringProcessingModelEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(RecurringProcessingModelEnum.class.getName()); private String value; RecurringProcessingModelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -197,11 +206,7 @@ public static RecurringProcessingModelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "RecurringProcessingModelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(RecurringProcessingModelEnum.values())); + LOG.warning("RecurringProcessingModelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RecurringProcessingModelEnum.values())); return null; } } @@ -215,8 +220,7 @@ public static RecurringProcessingModelEnum fromValue(String value) { public static final String JSON_PROPERTY_SELECTED_BRAND = "selectedBrand"; private String selectedBrand; - public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = - "selectedRecurringDetailReference"; + public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = "selectedRecurringDetailReference"; private String selectedRecurringDetailReference; public static final String JSON_PROPERTY_SESSION_ID = "sessionId"; @@ -229,19 +233,10 @@ public static RecurringProcessingModelEnum fromValue(String value) { private String shopperIP; /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ public enum ShopperInteractionEnum { + ECOMMERCE(String.valueOf("Ecommerce")), CONTAUTH(String.valueOf("ContAuth")), @@ -255,7 +250,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -276,11 +271,7 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ShopperInteractionEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -315,8 +306,7 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S2_REQUEST_DATA = "threeDS2RequestData"; private ThreeDS2RequestData threeDS2RequestData; - public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = - "threeDSAuthenticationOnly"; + public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = "threeDSAuthenticationOnly"; private Boolean threeDSAuthenticationOnly; public static final String JSON_PROPERTY_TOTALS_GROUP = "totalsGroup"; @@ -325,12 +315,13 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_TRUSTED_SHOPPER = "trustedShopper"; private Boolean trustedShopper; - public PaymentRequest3d() {} + public PaymentRequest3d() { + } /** * accountInfo * - * @param accountInfo + * @param accountInfo * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d accountInfo(AccountInfo accountInfo) { @@ -340,8 +331,7 @@ public PaymentRequest3d accountInfo(AccountInfo accountInfo) { /** * Get accountInfo - * - * @return accountInfo + * @return accountInfo */ @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -352,7 +342,7 @@ public AccountInfo getAccountInfo() { /** * accountInfo * - * @param accountInfo + * @param accountInfo */ @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -363,7 +353,7 @@ public void setAccountInfo(AccountInfo accountInfo) { /** * additionalAmount * - * @param additionalAmount + * @param additionalAmount * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d additionalAmount(Amount additionalAmount) { @@ -373,8 +363,7 @@ public PaymentRequest3d additionalAmount(Amount additionalAmount) { /** * Get additionalAmount - * - * @return additionalAmount + * @return additionalAmount */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -385,7 +374,7 @@ public Amount getAdditionalAmount() { /** * additionalAmount * - * @param additionalAmount + * @param additionalAmount */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -394,13 +383,9 @@ public void setAdditionalAmount(Amount additionalAmount) { } /** - * This field contains additional data, which may be required for a particular payment request. - * The `additionalData` object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular payment request. The `additionalData` object consists of entries, each - * of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d additionalData(Map additionalData) { @@ -417,13 +402,8 @@ public PaymentRequest3d putAdditionalDataItem(String key, String additionalDataI } /** - * This field contains additional data, which may be required for a particular payment request. - * The `additionalData` object consists of entries, each of which includes the key and - * value. - * - * @return additionalData This field contains additional data, which may be required for a - * particular payment request. The `additionalData` object consists of entries, each - * of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * @return additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -432,13 +412,9 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular payment request. - * The `additionalData` object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular payment request. The `additionalData` object consists of entries, each - * of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -449,7 +425,7 @@ public void setAdditionalData(Map additionalData) { /** * amount * - * @param amount + * @param amount * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d amount(Amount amount) { @@ -459,8 +435,7 @@ public PaymentRequest3d amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -471,7 +446,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -482,7 +457,7 @@ public void setAmount(Amount amount) { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d applicationInfo(ApplicationInfo applicationInfo) { @@ -492,8 +467,7 @@ public PaymentRequest3d applicationInfo(ApplicationInfo applicationInfo) { /** * Get applicationInfo - * - * @return applicationInfo + * @return applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -504,7 +478,7 @@ public ApplicationInfo getApplicationInfo() { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -515,7 +489,7 @@ public void setApplicationInfo(ApplicationInfo applicationInfo) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d billingAddress(Address billingAddress) { @@ -525,8 +499,7 @@ public PaymentRequest3d billingAddress(Address billingAddress) { /** * Get billingAddress - * - * @return billingAddress + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -537,7 +510,7 @@ public Address getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -548,7 +521,7 @@ public void setBillingAddress(Address billingAddress) { /** * browserInfo * - * @param browserInfo + * @param browserInfo * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d browserInfo(BrowserInfo browserInfo) { @@ -558,8 +531,7 @@ public PaymentRequest3d browserInfo(BrowserInfo browserInfo) { /** * Get browserInfo - * - * @return browserInfo + * @return browserInfo */ @JsonProperty(JSON_PROPERTY_BROWSER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -570,7 +542,7 @@ public BrowserInfo getBrowserInfo() { /** * browserInfo * - * @param browserInfo + * @param browserInfo */ @JsonProperty(JSON_PROPERTY_BROWSER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -581,8 +553,7 @@ public void setBrowserInfo(BrowserInfo browserInfo) { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, - * specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d captureDelayHours(Integer captureDelayHours) { @@ -592,9 +563,7 @@ public PaymentRequest3d captureDelayHours(Integer captureDelayHours) { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. - * - * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, - * specified in hours. + * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -605,8 +574,7 @@ public Integer getCaptureDelayHours() { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, - * specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -615,11 +583,9 @@ public void setCaptureDelayHours(Integer captureDelayHours) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): - * YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d dateOfBirth(LocalDate dateOfBirth) { @@ -628,11 +594,8 @@ public PaymentRequest3d dateOfBirth(LocalDate dateOfBirth) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): - * YYYY-MM-DD - * - * @return dateOfBirth The shopper's date of birth. Format - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @return dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -641,11 +604,9 @@ public LocalDate getDateOfBirth() { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): - * YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -656,7 +617,7 @@ public void setDateOfBirth(LocalDate dateOfBirth) { /** * dccQuote * - * @param dccQuote + * @param dccQuote * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d dccQuote(ForexQuote dccQuote) { @@ -666,8 +627,7 @@ public PaymentRequest3d dccQuote(ForexQuote dccQuote) { /** * Get dccQuote - * - * @return dccQuote + * @return dccQuote */ @JsonProperty(JSON_PROPERTY_DCC_QUOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -678,7 +638,7 @@ public ForexQuote getDccQuote() { /** * dccQuote * - * @param dccQuote + * @param dccQuote */ @JsonProperty(JSON_PROPERTY_DCC_QUOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -689,7 +649,7 @@ public void setDccQuote(ForexQuote dccQuote) { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d deliveryAddress(Address deliveryAddress) { @@ -699,8 +659,7 @@ public PaymentRequest3d deliveryAddress(Address deliveryAddress) { /** * Get deliveryAddress - * - * @return deliveryAddress + * @return deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -711,7 +670,7 @@ public Address getDeliveryAddress() { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -720,13 +679,9 @@ public void setDeliveryAddress(Address deliveryAddress) { } /** - * The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 * - * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d deliveryDate(OffsetDateTime deliveryDate) { @@ -735,13 +690,8 @@ public PaymentRequest3d deliveryDate(OffsetDateTime deliveryDate) { } /** - * The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 - * - * @return deliveryDate The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * @return deliveryDate The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 */ @JsonProperty(JSON_PROPERTY_DELIVERY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -750,13 +700,9 @@ public OffsetDateTime getDeliveryDate() { } /** - * The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 * - * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 */ @JsonProperty(JSON_PROPERTY_DELIVERY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -765,12 +711,9 @@ public void setDeliveryDate(OffsetDateTime deliveryDate) { } /** - * A string containing the shopper's device fingerprint. For more information, refer to - * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * - * @param deviceFingerprint A string containing the shopper's device fingerprint. For more - * information, refer to [Device - * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @param deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d deviceFingerprint(String deviceFingerprint) { @@ -779,12 +722,8 @@ public PaymentRequest3d deviceFingerprint(String deviceFingerprint) { } /** - * A string containing the shopper's device fingerprint. For more information, refer to - * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). - * - * @return deviceFingerprint A string containing the shopper's device fingerprint. For more - * information, refer to [Device - * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @return deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -793,12 +732,9 @@ public String getDeviceFingerprint() { } /** - * A string containing the shopper's device fingerprint. For more information, refer to - * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * - * @param deviceFingerprint A string containing the shopper's device fingerprint. For more - * information, refer to [Device - * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @param deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -807,11 +743,9 @@ public void setDeviceFingerprint(String deviceFingerprint) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or - * negative. + * An integer value that is added to the normal fraud score. The value can be either positive or negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be - * either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d fraudOffset(Integer fraudOffset) { @@ -820,11 +754,8 @@ public PaymentRequest3d fraudOffset(Integer fraudOffset) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or - * negative. - * - * @return fraudOffset An integer value that is added to the normal fraud score. The value can be - * either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + * @return fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -833,11 +764,9 @@ public Integer getFraudOffset() { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or - * negative. + * An integer value that is added to the normal fraud score. The value can be either positive or negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be - * either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -848,7 +777,7 @@ public void setFraudOffset(Integer fraudOffset) { /** * installments * - * @param installments + * @param installments * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d installments(Installments installments) { @@ -858,8 +787,7 @@ public PaymentRequest3d installments(Installments installments) { /** * Get installments - * - * @return installments + * @return installments */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -870,7 +798,7 @@ public Installments getInstallments() { /** * installments * - * @param installments + * @param installments */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -879,19 +807,9 @@ public void setInstallments(Installments installments) { } /** - * The `localizedShopperStatement` field lets you use dynamic values for your shopper - * statement in a local character set. If not supplied, left empty, or for cross-border - * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani - * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This - * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special - * characters. * Half-width or full-width characters. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. * - * @param localizedShopperStatement The `localizedShopperStatement` field lets you use - * dynamic values for your shopper statement in a local character set. If not supplied, left - * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently - * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in - * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, - * capital letters, numbers and special characters. * Half-width or full-width characters. + * @param localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d localizedShopperStatement(Map localizedShopperStatement) { @@ -899,8 +817,7 @@ public PaymentRequest3d localizedShopperStatement(Map localizedS return this; } - public PaymentRequest3d putLocalizedShopperStatementItem( - String key, String localizedShopperStatementItem) { + public PaymentRequest3d putLocalizedShopperStatementItem(String key, String localizedShopperStatementItem) { if (this.localizedShopperStatement == null) { this.localizedShopperStatement = new HashMap<>(); } @@ -909,19 +826,8 @@ public PaymentRequest3d putLocalizedShopperStatementItem( } /** - * The `localizedShopperStatement` field lets you use dynamic values for your shopper - * statement in a local character set. If not supplied, left empty, or for cross-border - * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani - * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This - * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special - * characters. * Half-width or full-width characters. - * - * @return localizedShopperStatement The `localizedShopperStatement` field lets you use - * dynamic values for your shopper statement in a local character set. If not supplied, left - * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently - * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in - * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, - * capital letters, numbers and special characters. * Half-width or full-width characters. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. + * @return localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. */ @JsonProperty(JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -930,19 +836,9 @@ public Map getLocalizedShopperStatement() { } /** - * The `localizedShopperStatement` field lets you use dynamic values for your shopper - * statement in a local character set. If not supplied, left empty, or for cross-border - * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani - * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This - * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special - * characters. * Half-width or full-width characters. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. * - * @param localizedShopperStatement The `localizedShopperStatement` field lets you use - * dynamic values for your shopper statement in a local character set. If not supplied, left - * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently - * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in - * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, - * capital letters, numbers and special characters. * Half-width or full-width characters. + * @param localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. */ @JsonProperty(JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -951,13 +847,9 @@ public void setLocalizedShopperStatement(Map localizedShopperSta } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a - * four-digit number, which relates to a particular market segment. This code reflects the - * predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) - * (MCC) is a four-digit number, which relates to a particular market segment. This code - * reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d mcc(String mcc) { @@ -966,13 +858,8 @@ public PaymentRequest3d mcc(String mcc) { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a - * four-digit number, which relates to a particular market segment. This code reflects the - * predominant activity that is conducted by the merchant. - * - * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) - * (MCC) is a four-digit number, which relates to a particular market segment. This code - * reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -981,13 +868,9 @@ public String getMcc() { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a - * four-digit number, which relates to a particular market segment. This code reflects the - * predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) - * (MCC) is a four-digit number, which relates to a particular market segment. This code - * reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1008,7 +891,6 @@ public PaymentRequest3d md(String md) { /** * The payment session identifier returned by the card issuer. - * * @return md The payment session identifier returned by the card issuer. */ @JsonProperty(JSON_PROPERTY_MD) @@ -1031,8 +913,7 @@ public void setMd(String md) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d merchantAccount(String merchantAccount) { @@ -1042,9 +923,7 @@ public PaymentRequest3d merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * - * @return merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @return merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1055,8 +934,7 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1065,23 +943,9 @@ public void setMerchantAccount(String merchantAccount) { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. - * order auth-rate). The reference should be unique per billing cycle. The same merchant order - * reference should never be reused after the first authorised attempt. If used, this field should - * be supplied for all incoming authorisations. > We strongly recommend you send the - * `merchantOrderReference` value to benefit from linking payment requests when - * authorisation retries take place. In addition, we recommend you provide - * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. - * - * @param merchantOrderReference This reference allows linking multiple transactions to each other - * for reporting purposes (i.e. order auth-rate). The reference should be unique per billing - * cycle. The same merchant order reference should never be reused after the first authorised - * attempt. If used, this field should be supplied for all incoming authorisations. > We - * strongly recommend you send the `merchantOrderReference` value to benefit from - * linking payment requests when authorisation retries take place. In addition, we recommend - * you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * + * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d merchantOrderReference(String merchantOrderReference) { @@ -1090,24 +954,8 @@ public PaymentRequest3d merchantOrderReference(String merchantOrderReference) { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. - * order auth-rate). The reference should be unique per billing cycle. The same merchant order - * reference should never be reused after the first authorised attempt. If used, this field should - * be supplied for all incoming authorisations. > We strongly recommend you send the - * `merchantOrderReference` value to benefit from linking payment requests when - * authorisation retries take place. In addition, we recommend you provide - * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. - * - * @return merchantOrderReference This reference allows linking multiple transactions to each - * other for reporting purposes (i.e. order auth-rate). The reference should be unique per - * billing cycle. The same merchant order reference should never be reused after the first - * authorised attempt. If used, this field should be supplied for all incoming authorisations. - * > We strongly recommend you send the `merchantOrderReference` value to benefit - * from linking payment requests when authorisation retries take place. In addition, we - * recommend you provide `retry.orderAttemptNumber`, - * `retry.chainAttemptNumber`, and `retry.skipRetry` values in - * `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * @return merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1116,23 +964,9 @@ public String getMerchantOrderReference() { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. - * order auth-rate). The reference should be unique per billing cycle. The same merchant order - * reference should never be reused after the first authorised attempt. If used, this field should - * be supplied for all incoming authorisations. > We strongly recommend you send the - * `merchantOrderReference` value to benefit from linking payment requests when - * authorisation retries take place. In addition, we recommend you provide - * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. * - * @param merchantOrderReference This reference allows linking multiple transactions to each other - * for reporting purposes (i.e. order auth-rate). The reference should be unique per billing - * cycle. The same merchant order reference should never be reused after the first authorised - * attempt. If used, this field should be supplied for all incoming authorisations. > We - * strongly recommend you send the `merchantOrderReference` value to benefit from - * linking payment requests when authorisation retries take place. In addition, we recommend - * you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1143,7 +977,7 @@ public void setMerchantOrderReference(String merchantOrderReference) { /** * merchantRiskIndicator * - * @param merchantRiskIndicator + * @param merchantRiskIndicator * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d merchantRiskIndicator(MerchantRiskIndicator merchantRiskIndicator) { @@ -1153,8 +987,7 @@ public PaymentRequest3d merchantRiskIndicator(MerchantRiskIndicator merchantRisk /** * Get merchantRiskIndicator - * - * @return merchantRiskIndicator + * @return merchantRiskIndicator */ @JsonProperty(JSON_PROPERTY_MERCHANT_RISK_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1165,7 +998,7 @@ public MerchantRiskIndicator getMerchantRiskIndicator() { /** * merchantRiskIndicator * - * @param merchantRiskIndicator + * @param merchantRiskIndicator */ @JsonProperty(JSON_PROPERTY_MERCHANT_RISK_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1174,15 +1007,9 @@ public void setMerchantRiskIndicator(MerchantRiskIndicator merchantRiskIndicator } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 - * key-value pairs per request. When exceeding, the \"177\" error occurs: - * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 - * characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: - * * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error - * occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * - * Maximum 80 characters per value. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d metadata(Map metadata) { @@ -1199,15 +1026,8 @@ public PaymentRequest3d putMetadataItem(String key, String metadataItem) { } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 - * key-value pairs per request. When exceeding, the \"177\" error occurs: - * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 - * characters per value. - * - * @return metadata Metadata consists of entries, each of which includes a key and a value. - * Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" - * error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * - * Maximum 80 characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * @return metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1216,15 +1036,9 @@ public Map getMetadata() { } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 - * key-value pairs per request. When exceeding, the \"177\" error occurs: - * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 - * characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: - * * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error - * occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * - * Maximum 80 characters per value. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1233,14 +1047,9 @@ public void setMetadata(Map metadata) { } /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` - * of the first payment. We use this to link the multiple payments to each other. As your own - * reference for linking multiple payments, use the `merchantOrderReference`instead. + * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. * - * @param orderReference When you are doing multiple partial (gift card) payments, this is the - * `pspReference` of the first payment. We use this to link the multiple payments to - * each other. As your own reference for linking multiple payments, use the - * `merchantOrderReference`instead. + * @param orderReference When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d orderReference(String orderReference) { @@ -1249,14 +1058,8 @@ public PaymentRequest3d orderReference(String orderReference) { } /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` - * of the first payment. We use this to link the multiple payments to each other. As your own - * reference for linking multiple payments, use the `merchantOrderReference`instead. - * - * @return orderReference When you are doing multiple partial (gift card) payments, this is the - * `pspReference` of the first payment. We use this to link the multiple payments to - * each other. As your own reference for linking multiple payments, use the - * `merchantOrderReference`instead. + * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + * @return orderReference When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. */ @JsonProperty(JSON_PROPERTY_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1265,14 +1068,9 @@ public String getOrderReference() { } /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` - * of the first payment. We use this to link the multiple payments to each other. As your own - * reference for linking multiple payments, use the `merchantOrderReference`instead. + * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. * - * @param orderReference When you are doing multiple partial (gift card) payments, this is the - * `pspReference` of the first payment. We use this to link the multiple payments to - * each other. As your own reference for linking multiple payments, use the - * `merchantOrderReference`instead. + * @param orderReference When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. */ @JsonProperty(JSON_PROPERTY_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1281,11 +1079,9 @@ public void setOrderReference(String orderReference) { } /** - * Payment authorisation response returned by the card issuer. The `paResponse` field - * holds the PaRes value received from the card issuer. + * Payment authorisation response returned by the card issuer. The `paResponse` field holds the PaRes value received from the card issuer. * - * @param paResponse Payment authorisation response returned by the card issuer. The - * `paResponse` field holds the PaRes value received from the card issuer. + * @param paResponse Payment authorisation response returned by the card issuer. The `paResponse` field holds the PaRes value received from the card issuer. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d paResponse(String paResponse) { @@ -1294,11 +1090,8 @@ public PaymentRequest3d paResponse(String paResponse) { } /** - * Payment authorisation response returned by the card issuer. The `paResponse` field - * holds the PaRes value received from the card issuer. - * - * @return paResponse Payment authorisation response returned by the card issuer. The - * `paResponse` field holds the PaRes value received from the card issuer. + * Payment authorisation response returned by the card issuer. The `paResponse` field holds the PaRes value received from the card issuer. + * @return paResponse Payment authorisation response returned by the card issuer. The `paResponse` field holds the PaRes value received from the card issuer. */ @JsonProperty(JSON_PROPERTY_PA_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1307,11 +1100,9 @@ public String getPaResponse() { } /** - * Payment authorisation response returned by the card issuer. The `paResponse` field - * holds the PaRes value received from the card issuer. + * Payment authorisation response returned by the card issuer. The `paResponse` field holds the PaRes value received from the card issuer. * - * @param paResponse Payment authorisation response returned by the card issuer. The - * `paResponse` field holds the PaRes value received from the card issuer. + * @param paResponse Payment authorisation response returned by the card issuer. The `paResponse` field holds the PaRes value received from the card issuer. */ @JsonProperty(JSON_PROPERTY_PA_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1322,7 +1113,7 @@ public void setPaResponse(String paResponse) { /** * recurring * - * @param recurring + * @param recurring * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d recurring(Recurring recurring) { @@ -1332,8 +1123,7 @@ public PaymentRequest3d recurring(Recurring recurring) { /** * Get recurring - * - * @return recurring + * @return recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1344,7 +1134,7 @@ public Recurring getRecurring() { /** * recurring * - * @param recurring + * @param recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1353,55 +1143,19 @@ public void setRecurring(Recurring recurring) { } /** - * Defines a recurring payment type. Required when creating a token to store payment details or - * using stored payment details. Allowed values: * `Subscription` – A transaction for a - * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a - * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – - * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. - * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a - * token to store payment details or using stored payment details. Allowed values: * - * `Subscription` – A transaction for a fixed or variable amount, which follows a - * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card - * details are stored to enable one-click or omnichannel journeys, or simply to streamline the - * checkout process. Any subscription not following a fixed schedule is also considered a - * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file - * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have - * variable amounts. For example, automatic top-ups when a cardholder's balance drops - * below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ - public PaymentRequest3d recurringProcessingModel( - RecurringProcessingModelEnum recurringProcessingModel) { + public PaymentRequest3d recurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) { this.recurringProcessingModel = recurringProcessingModel; return this; } /** - * Defines a recurring payment type. Required when creating a token to store payment details or - * using stored payment details. Allowed values: * `Subscription` – A transaction for a - * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a - * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – - * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. - * - * @return recurringProcessingModel Defines a recurring payment type. Required when creating a - * token to store payment details or using stored payment details. Allowed values: * - * `Subscription` – A transaction for a fixed or variable amount, which follows a - * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card - * details are stored to enable one-click or omnichannel journeys, or simply to streamline the - * checkout process. Any subscription not following a fixed schedule is also considered a - * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file - * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have - * variable amounts. For example, automatic top-ups when a cardholder's balance drops - * below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * @return recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1410,26 +1164,9 @@ public RecurringProcessingModelEnum getRecurringProcessingModel() { } /** - * Defines a recurring payment type. Required when creating a token to store payment details or - * using stored payment details. Allowed values: * `Subscription` – A transaction for a - * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a - * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – - * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. - * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a - * token to store payment details or using stored payment details. Allowed values: * - * `Subscription` – A transaction for a fixed or variable amount, which follows a - * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card - * details are stored to enable one-click or omnichannel journeys, or simply to streamline the - * checkout process. Any subscription not following a fixed schedule is also considered a - * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file - * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have - * variable amounts. For example, automatic top-ups when a cardholder's balance drops - * below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1438,15 +1175,9 @@ public void setRecurringProcessingModel(RecurringProcessingModelEnum recurringPr } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d reference(String reference) { @@ -1455,15 +1186,8 @@ public PaymentRequest3d reference(String reference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. - * - * @return reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @return reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1472,15 +1196,9 @@ public String getReference() { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1489,15 +1207,9 @@ public void setReference(String reference) { } /** - * Some payment methods require defining a value for this field to specify how to process the - * transaction. For the Bancontact payment method, it can be set to: * `maestro` - * (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a - * Bancontact card. + * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. * - * @param selectedBrand Some payment methods require defining a value for this field to specify - * how to process the transaction. For the Bancontact payment method, it can be set to: * - * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, - * to be processed like a Bancontact card. + * @param selectedBrand Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d selectedBrand(String selectedBrand) { @@ -1506,15 +1218,8 @@ public PaymentRequest3d selectedBrand(String selectedBrand) { } /** - * Some payment methods require defining a value for this field to specify how to process the - * transaction. For the Bancontact payment method, it can be set to: * `maestro` - * (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a - * Bancontact card. - * - * @return selectedBrand Some payment methods require defining a value for this field to specify - * how to process the transaction. For the Bancontact payment method, it can be set to: * - * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, - * to be processed like a Bancontact card. + * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. + * @return selectedBrand Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. */ @JsonProperty(JSON_PROPERTY_SELECTED_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1523,15 +1228,9 @@ public String getSelectedBrand() { } /** - * Some payment methods require defining a value for this field to specify how to process the - * transaction. For the Bancontact payment method, it can be set to: * `maestro` - * (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a - * Bancontact card. + * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. * - * @param selectedBrand Some payment methods require defining a value for this field to specify - * how to process the transaction. For the Bancontact payment method, it can be set to: * - * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, - * to be processed like a Bancontact card. + * @param selectedBrand Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. */ @JsonProperty(JSON_PROPERTY_SELECTED_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1540,27 +1239,19 @@ public void setSelectedBrand(String selectedBrand) { } /** - * The `recurringDetailReference` you want to use for this payment. The value - * `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. * - * @param selectedRecurringDetailReference The `recurringDetailReference` you want to - * use for this payment. The value `LATEST` can be used to select the most recently - * stored recurring detail. + * @param selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ - public PaymentRequest3d selectedRecurringDetailReference( - String selectedRecurringDetailReference) { + public PaymentRequest3d selectedRecurringDetailReference(String selectedRecurringDetailReference) { this.selectedRecurringDetailReference = selectedRecurringDetailReference; return this; } /** - * The `recurringDetailReference` you want to use for this payment. The value - * `LATEST` can be used to select the most recently stored recurring detail. - * - * @return selectedRecurringDetailReference The `recurringDetailReference` you want to - * use for this payment. The value `LATEST` can be used to select the most recently - * stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * @return selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1569,12 +1260,9 @@ public String getSelectedRecurringDetailReference() { } /** - * The `recurringDetailReference` you want to use for this payment. The value - * `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. * - * @param selectedRecurringDetailReference The `recurringDetailReference` you want to - * use for this payment. The value `LATEST` can be used to select the most recently - * stored recurring detail. + * @param selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1595,7 +1283,6 @@ public PaymentRequest3d sessionId(String sessionId) { /** * A session ID used to identify a payment session. - * * @return sessionId A session ID used to identify a payment session. */ @JsonProperty(JSON_PROPERTY_SESSION_ID) @@ -1616,13 +1303,9 @@ public void setSessionId(String sessionId) { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in - * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 - * authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, - * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that - * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d shopperEmail(String shopperEmail) { @@ -1631,13 +1314,8 @@ public PaymentRequest3d shopperEmail(String shopperEmail) { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in - * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 - * authentication if you did not include the `telephoneNumber`. - * - * @return shopperEmail The shopper's email address. We recommend that you provide this data, - * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that - * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @return shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1646,13 +1324,9 @@ public String getShopperEmail() { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in - * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 - * authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, - * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that - * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1661,22 +1335,9 @@ public void setShopperEmail(String shopperEmail) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks). > - * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and - * mobile integrations, if you did not include the `shopperEmail`. For native mobile - * integrations, the field is required to support cases where authentication is routed to the - * redirect flow. This field is also mandatory for some merchants depending on your business - * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it - * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks). > Required for Visa and JCB transactions that require 3D Secure - * 2 authentication for all web and mobile integrations, if you did not include the - * `shopperEmail`. For native mobile integrations, the field is required to support - * cases where authentication is routed to the redirect flow. This field is also mandatory for - * some merchants depending on your business model. For more information, [contact - * Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d shopperIP(String shopperIP) { @@ -1685,22 +1346,8 @@ public PaymentRequest3d shopperIP(String shopperIP) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks). > - * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and - * mobile integrations, if you did not include the `shopperEmail`. For native mobile - * integrations, the field is required to support cases where authentication is routed to the - * redirect flow. This field is also mandatory for some merchants depending on your business - * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). - * - * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it - * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks). > Required for Visa and JCB transactions that require 3D Secure - * 2 authentication for all web and mobile integrations, if you did not include the - * `shopperEmail`. For native mobile integrations, the field is required to support - * cases where authentication is routed to the redirect flow. This field is also mandatory for - * some merchants depending on your business model. For more information, [contact - * Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1709,22 +1356,9 @@ public String getShopperIP() { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks). > - * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and - * mobile integrations, if you did not include the `shopperEmail`. For native mobile - * integrations, the field is required to support cases where authentication is routed to the - * redirect flow. This field is also mandatory for some merchants depending on your business - * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it - * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks). > Required for Visa and JCB transactions that require 3D Secure - * 2 authentication for all web and mobile integrations, if you did not include the - * `shopperEmail`. For native mobile integrations, the field is required to support - * cases where authentication is routed to the redirect flow. This field is also mandatory for - * some merchants depending on your business model. For more information, [contact - * Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1733,30 +1367,9 @@ public void setShopperIP(String shopperIP) { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. - * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d shopperInteraction(ShopperInteractionEnum shopperInteraction) { @@ -1765,30 +1378,8 @@ public PaymentRequest3d shopperInteraction(ShopperInteractionEnum shopperInterac } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. - * - * @return shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * @return shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1797,30 +1388,9 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. - * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1829,11 +1399,9 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The combination of a language code and a country code to specify the language to be used in the payment. * - * @param shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d shopperLocale(String shopperLocale) { @@ -1842,11 +1410,8 @@ public PaymentRequest3d shopperLocale(String shopperLocale) { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. - * - * @return shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the payment. + * @return shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1855,11 +1420,9 @@ public String getShopperLocale() { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The combination of a language code and a country code to specify the language to be used in the payment. * - * @param shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1870,7 +1433,7 @@ public void setShopperLocale(String shopperLocale) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d shopperName(Name shopperName) { @@ -1880,8 +1443,7 @@ public PaymentRequest3d shopperName(Name shopperName) { /** * Get shopperName - * - * @return shopperName + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1892,7 +1454,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1901,15 +1463,9 @@ public void setShopperName(Name shopperName) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example - * user ID or account ID. The value is case-sensitive and must be at least three characters. > - * Your reference must not include personally identifiable information (PII) such as name or email - * address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify - * this shopper, for example user ID or account ID. The value is case-sensitive and must be at - * least three characters. > Your reference must not include personally identifiable - * information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d shopperReference(String shopperReference) { @@ -1918,15 +1474,8 @@ public PaymentRequest3d shopperReference(String shopperReference) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example - * user ID or account ID. The value is case-sensitive and must be at least three characters. > - * Your reference must not include personally identifiable information (PII) such as name or email - * address. - * - * @return shopperReference Required for recurring payments. Your reference to uniquely identify - * this shopper, for example user ID or account ID. The value is case-sensitive and must be at - * least three characters. > Your reference must not include personally identifiable - * information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @return shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1935,15 +1484,9 @@ public String getShopperReference() { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example - * user ID or account ID. The value is case-sensitive and must be at least three characters. > - * Your reference must not include personally identifiable information (PII) such as name or email - * address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify - * this shopper, for example user ID or account ID. The value is case-sensitive and must be at - * least three characters. > Your reference must not include personally identifiable - * information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1952,14 +1495,9 @@ public void setShopperReference(String shopperReference) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 - * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, - * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend - * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed - * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * - * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d shopperStatement(String shopperStatement) { @@ -1968,14 +1506,8 @@ public PaymentRequest3d shopperStatement(String shopperStatement) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 - * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, - * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. - * - * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend - * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed - * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * - * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1984,14 +1516,9 @@ public String getShopperStatement() { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 - * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, - * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend - * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed - * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * - * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2012,7 +1539,6 @@ public PaymentRequest3d socialSecurityNumber(String socialSecurityNumber) { /** * The shopper's social security number. - * * @return socialSecurityNumber The shopper's social security number. */ @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER) @@ -2033,15 +1559,9 @@ public void setSocialSecurityNumber(String socialSecurityNumber) { } /** - * An array of objects specifying how the payment should be split when using either Adyen for - * Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/split-payments), or standalone - * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). * - * @param splits An array of objects specifying how the payment should be split when using either - * Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) - * or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone - * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * @param splits An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d splits(List splits) { @@ -2058,15 +1578,8 @@ public PaymentRequest3d addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how the payment should be split when using either Adyen for - * Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/split-payments), or standalone - * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). - * - * @return splits An array of objects specifying how the payment should be split when using either - * Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) - * or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone - * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * @return splits An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2075,15 +1588,9 @@ public List getSplits() { } /** - * An array of objects specifying how the payment should be split when using either Adyen for - * Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/split-payments), or standalone - * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). * - * @param splits An array of objects specifying how the payment should be split when using either - * Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) - * or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone - * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * @param splits An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2092,22 +1599,9 @@ public void setSplits(List splits) { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. * - * @param store Required for Adyen for Platforms integrations if you are a platform model. This is - * your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d store(String store) { @@ -2116,22 +1610,8 @@ public PaymentRequest3d store(String store) { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. - * - * @return store Required for Adyen for Platforms integrations if you are a platform model. This - * is your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * @return store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2140,22 +1620,9 @@ public String getStore() { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. * - * @param store Required for Adyen for Platforms integrations if you are a platform model. This is - * your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2164,17 +1631,9 @@ public void setStore(String store) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus - * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d telephoneNumber(String telephoneNumber) { @@ -2183,17 +1642,8 @@ public PaymentRequest3d telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. - * - * @return telephoneNumber The shopper's telephone number. The phone number must include a - * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @return telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2202,17 +1652,9 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus - * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2223,7 +1665,7 @@ public void setTelephoneNumber(String telephoneNumber) { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d threeDS2RequestData(ThreeDS2RequestData threeDS2RequestData) { @@ -2233,8 +1675,7 @@ public PaymentRequest3d threeDS2RequestData(ThreeDS2RequestData threeDS2RequestD /** * Get threeDS2RequestData - * - * @return threeDS2RequestData + * @return threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2245,7 +1686,7 @@ public ThreeDS2RequestData getThreeDS2RequestData() { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2254,15 +1695,9 @@ public void setThreeDS2RequestData(ThreeDS2RequestData threeDS2RequestData) { } /** - * Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. * - * @param threeDSAuthenticationOnly Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. + * @param threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { @@ -2271,15 +1706,8 @@ public PaymentRequest3d threeDSAuthenticationOnly(Boolean threeDSAuthenticationO } /** - * Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. - * - * @return threeDSAuthenticationOnly Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * @return threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2288,15 +1716,9 @@ public Boolean getThreeDSAuthenticationOnly() { } /** - * Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. * - * @param threeDSAuthenticationOnly Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. + * @param threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2305,11 +1727,9 @@ public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { } /** - * The reference value to aggregate sales totals in reporting. When not specified, the store field - * is used (if available). + * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). * - * @param totalsGroup The reference value to aggregate sales totals in reporting. When not - * specified, the store field is used (if available). + * @param totalsGroup The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d totalsGroup(String totalsGroup) { @@ -2318,11 +1738,8 @@ public PaymentRequest3d totalsGroup(String totalsGroup) { } /** - * The reference value to aggregate sales totals in reporting. When not specified, the store field - * is used (if available). - * - * @return totalsGroup The reference value to aggregate sales totals in reporting. When not - * specified, the store field is used (if available). + * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). + * @return totalsGroup The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). */ @JsonProperty(JSON_PROPERTY_TOTALS_GROUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2331,11 +1748,9 @@ public String getTotalsGroup() { } /** - * The reference value to aggregate sales totals in reporting. When not specified, the store field - * is used (if available). + * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). * - * @param totalsGroup The reference value to aggregate sales totals in reporting. When not - * specified, the store field is used (if available). + * @param totalsGroup The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). */ @JsonProperty(JSON_PROPERTY_TOTALS_GROUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2356,7 +1771,6 @@ public PaymentRequest3d trustedShopper(Boolean trustedShopper) { /** * Set to true if the payment should be routed to a trusted MID. - * * @return trustedShopper Set to true if the payment should be routed to a trusted MID. */ @JsonProperty(JSON_PROPERTY_TRUSTED_SHOPPER) @@ -2376,7 +1790,9 @@ public void setTrustedShopper(Boolean trustedShopper) { this.trustedShopper = trustedShopper; } - /** Return true if this PaymentRequest3d object is equal to o. */ + /** + * Return true if this PaymentRequest3d object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -2386,105 +1802,56 @@ public boolean equals(Object o) { return false; } PaymentRequest3d paymentRequest3d = (PaymentRequest3d) o; - return Objects.equals(this.accountInfo, paymentRequest3d.accountInfo) - && Objects.equals(this.additionalAmount, paymentRequest3d.additionalAmount) - && Objects.equals(this.additionalData, paymentRequest3d.additionalData) - && Objects.equals(this.amount, paymentRequest3d.amount) - && Objects.equals(this.applicationInfo, paymentRequest3d.applicationInfo) - && Objects.equals(this.billingAddress, paymentRequest3d.billingAddress) - && Objects.equals(this.browserInfo, paymentRequest3d.browserInfo) - && Objects.equals(this.captureDelayHours, paymentRequest3d.captureDelayHours) - && Objects.equals(this.dateOfBirth, paymentRequest3d.dateOfBirth) - && Objects.equals(this.dccQuote, paymentRequest3d.dccQuote) - && Objects.equals(this.deliveryAddress, paymentRequest3d.deliveryAddress) - && Objects.equals(this.deliveryDate, paymentRequest3d.deliveryDate) - && Objects.equals(this.deviceFingerprint, paymentRequest3d.deviceFingerprint) - && Objects.equals(this.fraudOffset, paymentRequest3d.fraudOffset) - && Objects.equals(this.installments, paymentRequest3d.installments) - && Objects.equals( - this.localizedShopperStatement, paymentRequest3d.localizedShopperStatement) - && Objects.equals(this.mcc, paymentRequest3d.mcc) - && Objects.equals(this.md, paymentRequest3d.md) - && Objects.equals(this.merchantAccount, paymentRequest3d.merchantAccount) - && Objects.equals(this.merchantOrderReference, paymentRequest3d.merchantOrderReference) - && Objects.equals(this.merchantRiskIndicator, paymentRequest3d.merchantRiskIndicator) - && Objects.equals(this.metadata, paymentRequest3d.metadata) - && Objects.equals(this.orderReference, paymentRequest3d.orderReference) - && Objects.equals(this.paResponse, paymentRequest3d.paResponse) - && Objects.equals(this.recurring, paymentRequest3d.recurring) - && Objects.equals(this.recurringProcessingModel, paymentRequest3d.recurringProcessingModel) - && Objects.equals(this.reference, paymentRequest3d.reference) - && Objects.equals(this.selectedBrand, paymentRequest3d.selectedBrand) - && Objects.equals( - this.selectedRecurringDetailReference, - paymentRequest3d.selectedRecurringDetailReference) - && Objects.equals(this.sessionId, paymentRequest3d.sessionId) - && Objects.equals(this.shopperEmail, paymentRequest3d.shopperEmail) - && Objects.equals(this.shopperIP, paymentRequest3d.shopperIP) - && Objects.equals(this.shopperInteraction, paymentRequest3d.shopperInteraction) - && Objects.equals(this.shopperLocale, paymentRequest3d.shopperLocale) - && Objects.equals(this.shopperName, paymentRequest3d.shopperName) - && Objects.equals(this.shopperReference, paymentRequest3d.shopperReference) - && Objects.equals(this.shopperStatement, paymentRequest3d.shopperStatement) - && Objects.equals(this.socialSecurityNumber, paymentRequest3d.socialSecurityNumber) - && Objects.equals(this.splits, paymentRequest3d.splits) - && Objects.equals(this.store, paymentRequest3d.store) - && Objects.equals(this.telephoneNumber, paymentRequest3d.telephoneNumber) - && Objects.equals(this.threeDS2RequestData, paymentRequest3d.threeDS2RequestData) - && Objects.equals( - this.threeDSAuthenticationOnly, paymentRequest3d.threeDSAuthenticationOnly) - && Objects.equals(this.totalsGroup, paymentRequest3d.totalsGroup) - && Objects.equals(this.trustedShopper, paymentRequest3d.trustedShopper); + return Objects.equals(this.accountInfo, paymentRequest3d.accountInfo) && + Objects.equals(this.additionalAmount, paymentRequest3d.additionalAmount) && + Objects.equals(this.additionalData, paymentRequest3d.additionalData) && + Objects.equals(this.amount, paymentRequest3d.amount) && + Objects.equals(this.applicationInfo, paymentRequest3d.applicationInfo) && + Objects.equals(this.billingAddress, paymentRequest3d.billingAddress) && + Objects.equals(this.browserInfo, paymentRequest3d.browserInfo) && + Objects.equals(this.captureDelayHours, paymentRequest3d.captureDelayHours) && + Objects.equals(this.dateOfBirth, paymentRequest3d.dateOfBirth) && + Objects.equals(this.dccQuote, paymentRequest3d.dccQuote) && + Objects.equals(this.deliveryAddress, paymentRequest3d.deliveryAddress) && + Objects.equals(this.deliveryDate, paymentRequest3d.deliveryDate) && + Objects.equals(this.deviceFingerprint, paymentRequest3d.deviceFingerprint) && + Objects.equals(this.fraudOffset, paymentRequest3d.fraudOffset) && + Objects.equals(this.installments, paymentRequest3d.installments) && + Objects.equals(this.localizedShopperStatement, paymentRequest3d.localizedShopperStatement) && + Objects.equals(this.mcc, paymentRequest3d.mcc) && + Objects.equals(this.md, paymentRequest3d.md) && + Objects.equals(this.merchantAccount, paymentRequest3d.merchantAccount) && + Objects.equals(this.merchantOrderReference, paymentRequest3d.merchantOrderReference) && + Objects.equals(this.merchantRiskIndicator, paymentRequest3d.merchantRiskIndicator) && + Objects.equals(this.metadata, paymentRequest3d.metadata) && + Objects.equals(this.orderReference, paymentRequest3d.orderReference) && + Objects.equals(this.paResponse, paymentRequest3d.paResponse) && + Objects.equals(this.recurring, paymentRequest3d.recurring) && + Objects.equals(this.recurringProcessingModel, paymentRequest3d.recurringProcessingModel) && + Objects.equals(this.reference, paymentRequest3d.reference) && + Objects.equals(this.selectedBrand, paymentRequest3d.selectedBrand) && + Objects.equals(this.selectedRecurringDetailReference, paymentRequest3d.selectedRecurringDetailReference) && + Objects.equals(this.sessionId, paymentRequest3d.sessionId) && + Objects.equals(this.shopperEmail, paymentRequest3d.shopperEmail) && + Objects.equals(this.shopperIP, paymentRequest3d.shopperIP) && + Objects.equals(this.shopperInteraction, paymentRequest3d.shopperInteraction) && + Objects.equals(this.shopperLocale, paymentRequest3d.shopperLocale) && + Objects.equals(this.shopperName, paymentRequest3d.shopperName) && + Objects.equals(this.shopperReference, paymentRequest3d.shopperReference) && + Objects.equals(this.shopperStatement, paymentRequest3d.shopperStatement) && + Objects.equals(this.socialSecurityNumber, paymentRequest3d.socialSecurityNumber) && + Objects.equals(this.splits, paymentRequest3d.splits) && + Objects.equals(this.store, paymentRequest3d.store) && + Objects.equals(this.telephoneNumber, paymentRequest3d.telephoneNumber) && + Objects.equals(this.threeDS2RequestData, paymentRequest3d.threeDS2RequestData) && + Objects.equals(this.threeDSAuthenticationOnly, paymentRequest3d.threeDSAuthenticationOnly) && + Objects.equals(this.totalsGroup, paymentRequest3d.totalsGroup) && + Objects.equals(this.trustedShopper, paymentRequest3d.trustedShopper); } @Override public int hashCode() { - return Objects.hash( - accountInfo, - additionalAmount, - additionalData, - amount, - applicationInfo, - billingAddress, - browserInfo, - captureDelayHours, - dateOfBirth, - dccQuote, - deliveryAddress, - deliveryDate, - deviceFingerprint, - fraudOffset, - installments, - localizedShopperStatement, - mcc, - md, - merchantAccount, - merchantOrderReference, - merchantRiskIndicator, - metadata, - orderReference, - paResponse, - recurring, - recurringProcessingModel, - reference, - selectedBrand, - selectedRecurringDetailReference, - sessionId, - shopperEmail, - shopperIP, - shopperInteraction, - shopperLocale, - shopperName, - shopperReference, - shopperStatement, - socialSecurityNumber, - splits, - store, - telephoneNumber, - threeDS2RequestData, - threeDSAuthenticationOnly, - totalsGroup, - trustedShopper); + return Objects.hash(accountInfo, additionalAmount, additionalData, amount, applicationInfo, billingAddress, browserInfo, captureDelayHours, dateOfBirth, dccQuote, deliveryAddress, deliveryDate, deviceFingerprint, fraudOffset, installments, localizedShopperStatement, mcc, md, merchantAccount, merchantOrderReference, merchantRiskIndicator, metadata, orderReference, paResponse, recurring, recurringProcessingModel, reference, selectedBrand, selectedRecurringDetailReference, sessionId, shopperEmail, shopperIP, shopperInteraction, shopperLocale, shopperName, shopperReference, shopperStatement, socialSecurityNumber, splits, store, telephoneNumber, threeDS2RequestData, threeDSAuthenticationOnly, totalsGroup, trustedShopper); } @Override @@ -2506,30 +1873,20 @@ public String toString() { sb.append(" deviceFingerprint: ").append(toIndentedString(deviceFingerprint)).append("\n"); sb.append(" fraudOffset: ").append(toIndentedString(fraudOffset)).append("\n"); sb.append(" installments: ").append(toIndentedString(installments)).append("\n"); - sb.append(" localizedShopperStatement: ") - .append(toIndentedString(localizedShopperStatement)) - .append("\n"); + sb.append(" localizedShopperStatement: ").append(toIndentedString(localizedShopperStatement)).append("\n"); sb.append(" mcc: ").append(toIndentedString(mcc)).append("\n"); sb.append(" md: ").append(toIndentedString(md)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" merchantOrderReference: ") - .append(toIndentedString(merchantOrderReference)) - .append("\n"); - sb.append(" merchantRiskIndicator: ") - .append(toIndentedString(merchantRiskIndicator)) - .append("\n"); + sb.append(" merchantOrderReference: ").append(toIndentedString(merchantOrderReference)).append("\n"); + sb.append(" merchantRiskIndicator: ").append(toIndentedString(merchantRiskIndicator)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" orderReference: ").append(toIndentedString(orderReference)).append("\n"); sb.append(" paResponse: ").append(toIndentedString(paResponse)).append("\n"); sb.append(" recurring: ").append(toIndentedString(recurring)).append("\n"); - sb.append(" recurringProcessingModel: ") - .append(toIndentedString(recurringProcessingModel)) - .append("\n"); + sb.append(" recurringProcessingModel: ").append(toIndentedString(recurringProcessingModel)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" selectedBrand: ").append(toIndentedString(selectedBrand)).append("\n"); - sb.append(" selectedRecurringDetailReference: ") - .append(toIndentedString(selectedRecurringDetailReference)) - .append("\n"); + sb.append(" selectedRecurringDetailReference: ").append(toIndentedString(selectedRecurringDetailReference)).append("\n"); sb.append(" sessionId: ").append(toIndentedString(sessionId)).append("\n"); sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); sb.append(" shopperIP: ").append(toIndentedString(shopperIP)).append("\n"); @@ -2538,18 +1895,12 @@ public String toString() { sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append(" shopperStatement: ").append(toIndentedString(shopperStatement)).append("\n"); - sb.append(" socialSecurityNumber: ") - .append(toIndentedString(socialSecurityNumber)) - .append("\n"); + sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" store: ").append(toIndentedString(store)).append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); - sb.append(" threeDS2RequestData: ") - .append(toIndentedString(threeDS2RequestData)) - .append("\n"); - sb.append(" threeDSAuthenticationOnly: ") - .append(toIndentedString(threeDSAuthenticationOnly)) - .append("\n"); + sb.append(" threeDS2RequestData: ").append(toIndentedString(threeDS2RequestData)).append("\n"); + sb.append(" threeDSAuthenticationOnly: ").append(toIndentedString(threeDSAuthenticationOnly)).append("\n"); sb.append(" totalsGroup: ").append(toIndentedString(totalsGroup)).append("\n"); sb.append(" trustedShopper: ").append(toIndentedString(trustedShopper)).append("\n"); sb.append("}"); @@ -2557,7 +1908,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -2566,7 +1918,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentRequest3d given an JSON string * * @param jsonString JSON string @@ -2576,12 +1928,11 @@ private String toIndentedString(Object o) { public static PaymentRequest3d fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentRequest3d.class); } - - /** - * Convert an instance of PaymentRequest3d to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentRequest3d to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/PaymentRequest3ds2.java b/src/main/java/com/adyen/model/payment/PaymentRequest3ds2.java index f4bdf2bca..372ec2338 100644 --- a/src/main/java/com/adyen/model/payment/PaymentRequest3ds2.java +++ b/src/main/java/com/adyen/model/payment/PaymentRequest3ds2.java @@ -2,32 +2,50 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.payment.AccountInfo; +import com.adyen.model.payment.Address; +import com.adyen.model.payment.Amount; +import com.adyen.model.payment.ApplicationInfo; +import com.adyen.model.payment.BrowserInfo; +import com.adyen.model.payment.ForexQuote; +import com.adyen.model.payment.Installments; +import com.adyen.model.payment.MerchantRiskIndicator; +import com.adyen.model.payment.Name; +import com.adyen.model.payment.Recurring; +import com.adyen.model.payment.Split; +import com.adyen.model.payment.ThreeDS2RequestData; +import com.adyen.model.payment.ThreeDS2Result; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.time.OffsetDateTime; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PaymentRequest3ds2 */ +/** + * PaymentRequest3ds2 + */ @JsonPropertyOrder({ PaymentRequest3ds2.JSON_PROPERTY_ACCOUNT_INFO, PaymentRequest3ds2.JSON_PROPERTY_ADDITIONAL_AMOUNT, @@ -75,6 +93,7 @@ PaymentRequest3ds2.JSON_PROPERTY_TOTALS_GROUP, PaymentRequest3ds2.JSON_PROPERTY_TRUSTED_SHOPPER }) + public class PaymentRequest3ds2 { public static final String JSON_PROPERTY_ACCOUNT_INFO = "accountInfo"; private AccountInfo accountInfo; @@ -121,8 +140,7 @@ public class PaymentRequest3ds2 { public static final String JSON_PROPERTY_INSTALLMENTS = "installments"; private Installments installments; - public static final String JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT = - "localizedShopperStatement"; + public static final String JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT = "localizedShopperStatement"; private Map localizedShopperStatement; public static final String JSON_PROPERTY_MCC = "mcc"; @@ -147,30 +165,22 @@ public class PaymentRequest3ds2 { private Recurring recurring; /** - * Defines a recurring payment type. Required when creating a token to store payment details or - * using stored payment details. Allowed values: * `Subscription` – A transaction for a - * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a - * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – - * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ public enum RecurringProcessingModelEnum { + CARDONFILE(String.valueOf("CardOnFile")), SUBSCRIPTION(String.valueOf("Subscription")), UNSCHEDULEDCARDONFILE(String.valueOf("UnscheduledCardOnFile")); - private static final Logger LOG = - Logger.getLogger(RecurringProcessingModelEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(RecurringProcessingModelEnum.class.getName()); private String value; RecurringProcessingModelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -191,11 +201,7 @@ public static RecurringProcessingModelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "RecurringProcessingModelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(RecurringProcessingModelEnum.values())); + LOG.warning("RecurringProcessingModelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RecurringProcessingModelEnum.values())); return null; } } @@ -209,8 +215,7 @@ public static RecurringProcessingModelEnum fromValue(String value) { public static final String JSON_PROPERTY_SELECTED_BRAND = "selectedBrand"; private String selectedBrand; - public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = - "selectedRecurringDetailReference"; + public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = "selectedRecurringDetailReference"; private String selectedRecurringDetailReference; public static final String JSON_PROPERTY_SESSION_ID = "sessionId"; @@ -223,19 +228,10 @@ public static RecurringProcessingModelEnum fromValue(String value) { private String shopperIP; /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ public enum ShopperInteractionEnum { + ECOMMERCE(String.valueOf("Ecommerce")), CONTAUTH(String.valueOf("ContAuth")), @@ -249,7 +245,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -270,11 +266,7 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ShopperInteractionEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -315,8 +307,7 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S2_TOKEN = "threeDS2Token"; private String threeDS2Token; - public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = - "threeDSAuthenticationOnly"; + public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = "threeDSAuthenticationOnly"; private Boolean threeDSAuthenticationOnly; public static final String JSON_PROPERTY_TOTALS_GROUP = "totalsGroup"; @@ -325,12 +316,13 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_TRUSTED_SHOPPER = "trustedShopper"; private Boolean trustedShopper; - public PaymentRequest3ds2() {} + public PaymentRequest3ds2() { + } /** * accountInfo * - * @param accountInfo + * @param accountInfo * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 accountInfo(AccountInfo accountInfo) { @@ -340,8 +332,7 @@ public PaymentRequest3ds2 accountInfo(AccountInfo accountInfo) { /** * Get accountInfo - * - * @return accountInfo + * @return accountInfo */ @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -352,7 +343,7 @@ public AccountInfo getAccountInfo() { /** * accountInfo * - * @param accountInfo + * @param accountInfo */ @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -363,7 +354,7 @@ public void setAccountInfo(AccountInfo accountInfo) { /** * additionalAmount * - * @param additionalAmount + * @param additionalAmount * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 additionalAmount(Amount additionalAmount) { @@ -373,8 +364,7 @@ public PaymentRequest3ds2 additionalAmount(Amount additionalAmount) { /** * Get additionalAmount - * - * @return additionalAmount + * @return additionalAmount */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -385,7 +375,7 @@ public Amount getAdditionalAmount() { /** * additionalAmount * - * @param additionalAmount + * @param additionalAmount */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -394,13 +384,9 @@ public void setAdditionalAmount(Amount additionalAmount) { } /** - * This field contains additional data, which may be required for a particular payment request. - * The `additionalData` object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular payment request. The `additionalData` object consists of entries, each - * of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 additionalData(Map additionalData) { @@ -417,13 +403,8 @@ public PaymentRequest3ds2 putAdditionalDataItem(String key, String additionalDat } /** - * This field contains additional data, which may be required for a particular payment request. - * The `additionalData` object consists of entries, each of which includes the key and - * value. - * - * @return additionalData This field contains additional data, which may be required for a - * particular payment request. The `additionalData` object consists of entries, each - * of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * @return additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -432,13 +413,9 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular payment request. - * The `additionalData` object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular payment request. The `additionalData` object consists of entries, each - * of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -449,7 +426,7 @@ public void setAdditionalData(Map additionalData) { /** * amount * - * @param amount + * @param amount * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 amount(Amount amount) { @@ -459,8 +436,7 @@ public PaymentRequest3ds2 amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -471,7 +447,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -482,7 +458,7 @@ public void setAmount(Amount amount) { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 applicationInfo(ApplicationInfo applicationInfo) { @@ -492,8 +468,7 @@ public PaymentRequest3ds2 applicationInfo(ApplicationInfo applicationInfo) { /** * Get applicationInfo - * - * @return applicationInfo + * @return applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -504,7 +479,7 @@ public ApplicationInfo getApplicationInfo() { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -515,7 +490,7 @@ public void setApplicationInfo(ApplicationInfo applicationInfo) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 billingAddress(Address billingAddress) { @@ -525,8 +500,7 @@ public PaymentRequest3ds2 billingAddress(Address billingAddress) { /** * Get billingAddress - * - * @return billingAddress + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -537,7 +511,7 @@ public Address getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -548,7 +522,7 @@ public void setBillingAddress(Address billingAddress) { /** * browserInfo * - * @param browserInfo + * @param browserInfo * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 browserInfo(BrowserInfo browserInfo) { @@ -558,8 +532,7 @@ public PaymentRequest3ds2 browserInfo(BrowserInfo browserInfo) { /** * Get browserInfo - * - * @return browserInfo + * @return browserInfo */ @JsonProperty(JSON_PROPERTY_BROWSER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -570,7 +543,7 @@ public BrowserInfo getBrowserInfo() { /** * browserInfo * - * @param browserInfo + * @param browserInfo */ @JsonProperty(JSON_PROPERTY_BROWSER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -581,8 +554,7 @@ public void setBrowserInfo(BrowserInfo browserInfo) { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, - * specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 captureDelayHours(Integer captureDelayHours) { @@ -592,9 +564,7 @@ public PaymentRequest3ds2 captureDelayHours(Integer captureDelayHours) { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. - * - * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, - * specified in hours. + * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -605,8 +575,7 @@ public Integer getCaptureDelayHours() { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, - * specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -615,11 +584,9 @@ public void setCaptureDelayHours(Integer captureDelayHours) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): - * YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 dateOfBirth(LocalDate dateOfBirth) { @@ -628,11 +595,8 @@ public PaymentRequest3ds2 dateOfBirth(LocalDate dateOfBirth) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): - * YYYY-MM-DD - * - * @return dateOfBirth The shopper's date of birth. Format - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @return dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -641,11 +605,9 @@ public LocalDate getDateOfBirth() { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): - * YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -656,7 +618,7 @@ public void setDateOfBirth(LocalDate dateOfBirth) { /** * dccQuote * - * @param dccQuote + * @param dccQuote * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 dccQuote(ForexQuote dccQuote) { @@ -666,8 +628,7 @@ public PaymentRequest3ds2 dccQuote(ForexQuote dccQuote) { /** * Get dccQuote - * - * @return dccQuote + * @return dccQuote */ @JsonProperty(JSON_PROPERTY_DCC_QUOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -678,7 +639,7 @@ public ForexQuote getDccQuote() { /** * dccQuote * - * @param dccQuote + * @param dccQuote */ @JsonProperty(JSON_PROPERTY_DCC_QUOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -689,7 +650,7 @@ public void setDccQuote(ForexQuote dccQuote) { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 deliveryAddress(Address deliveryAddress) { @@ -699,8 +660,7 @@ public PaymentRequest3ds2 deliveryAddress(Address deliveryAddress) { /** * Get deliveryAddress - * - * @return deliveryAddress + * @return deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -711,7 +671,7 @@ public Address getDeliveryAddress() { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -720,13 +680,9 @@ public void setDeliveryAddress(Address deliveryAddress) { } /** - * The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 * - * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 deliveryDate(OffsetDateTime deliveryDate) { @@ -735,13 +691,8 @@ public PaymentRequest3ds2 deliveryDate(OffsetDateTime deliveryDate) { } /** - * The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 - * - * @return deliveryDate The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * @return deliveryDate The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 */ @JsonProperty(JSON_PROPERTY_DELIVERY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -750,13 +701,9 @@ public OffsetDateTime getDeliveryDate() { } /** - * The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 * - * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO - * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: - * 2017-07-17T13:42:40.428+01:00 + * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 */ @JsonProperty(JSON_PROPERTY_DELIVERY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -765,12 +712,9 @@ public void setDeliveryDate(OffsetDateTime deliveryDate) { } /** - * A string containing the shopper's device fingerprint. For more information, refer to - * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * - * @param deviceFingerprint A string containing the shopper's device fingerprint. For more - * information, refer to [Device - * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @param deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 deviceFingerprint(String deviceFingerprint) { @@ -779,12 +723,8 @@ public PaymentRequest3ds2 deviceFingerprint(String deviceFingerprint) { } /** - * A string containing the shopper's device fingerprint. For more information, refer to - * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). - * - * @return deviceFingerprint A string containing the shopper's device fingerprint. For more - * information, refer to [Device - * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @return deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -793,12 +733,9 @@ public String getDeviceFingerprint() { } /** - * A string containing the shopper's device fingerprint. For more information, refer to - * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * - * @param deviceFingerprint A string containing the shopper's device fingerprint. For more - * information, refer to [Device - * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @param deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -807,11 +744,9 @@ public void setDeviceFingerprint(String deviceFingerprint) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or - * negative. + * An integer value that is added to the normal fraud score. The value can be either positive or negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be - * either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 fraudOffset(Integer fraudOffset) { @@ -820,11 +755,8 @@ public PaymentRequest3ds2 fraudOffset(Integer fraudOffset) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or - * negative. - * - * @return fraudOffset An integer value that is added to the normal fraud score. The value can be - * either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + * @return fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -833,11 +765,9 @@ public Integer getFraudOffset() { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or - * negative. + * An integer value that is added to the normal fraud score. The value can be either positive or negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be - * either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -848,7 +778,7 @@ public void setFraudOffset(Integer fraudOffset) { /** * installments * - * @param installments + * @param installments * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 installments(Installments installments) { @@ -858,8 +788,7 @@ public PaymentRequest3ds2 installments(Installments installments) { /** * Get installments - * - * @return installments + * @return installments */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -870,7 +799,7 @@ public Installments getInstallments() { /** * installments * - * @param installments + * @param installments */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -879,29 +808,17 @@ public void setInstallments(Installments installments) { } /** - * The `localizedShopperStatement` field lets you use dynamic values for your shopper - * statement in a local character set. If not supplied, left empty, or for cross-border - * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani - * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This - * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special - * characters. * Half-width or full-width characters. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. * - * @param localizedShopperStatement The `localizedShopperStatement` field lets you use - * dynamic values for your shopper statement in a local character set. If not supplied, left - * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently - * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in - * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, - * capital letters, numbers and special characters. * Half-width or full-width characters. + * @param localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ - public PaymentRequest3ds2 localizedShopperStatement( - Map localizedShopperStatement) { + public PaymentRequest3ds2 localizedShopperStatement(Map localizedShopperStatement) { this.localizedShopperStatement = localizedShopperStatement; return this; } - public PaymentRequest3ds2 putLocalizedShopperStatementItem( - String key, String localizedShopperStatementItem) { + public PaymentRequest3ds2 putLocalizedShopperStatementItem(String key, String localizedShopperStatementItem) { if (this.localizedShopperStatement == null) { this.localizedShopperStatement = new HashMap<>(); } @@ -910,19 +827,8 @@ public PaymentRequest3ds2 putLocalizedShopperStatementItem( } /** - * The `localizedShopperStatement` field lets you use dynamic values for your shopper - * statement in a local character set. If not supplied, left empty, or for cross-border - * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani - * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This - * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special - * characters. * Half-width or full-width characters. - * - * @return localizedShopperStatement The `localizedShopperStatement` field lets you use - * dynamic values for your shopper statement in a local character set. If not supplied, left - * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently - * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in - * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, - * capital letters, numbers and special characters. * Half-width or full-width characters. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. + * @return localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. */ @JsonProperty(JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -931,19 +837,9 @@ public Map getLocalizedShopperStatement() { } /** - * The `localizedShopperStatement` field lets you use dynamic values for your shopper - * statement in a local character set. If not supplied, left empty, or for cross-border - * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani - * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This - * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special - * characters. * Half-width or full-width characters. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. * - * @param localizedShopperStatement The `localizedShopperStatement` field lets you use - * dynamic values for your shopper statement in a local character set. If not supplied, left - * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently - * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in - * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, - * capital letters, numbers and special characters. * Half-width or full-width characters. + * @param localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. */ @JsonProperty(JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -952,13 +848,9 @@ public void setLocalizedShopperStatement(Map localizedShopperSta } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a - * four-digit number, which relates to a particular market segment. This code reflects the - * predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) - * (MCC) is a four-digit number, which relates to a particular market segment. This code - * reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 mcc(String mcc) { @@ -967,13 +859,8 @@ public PaymentRequest3ds2 mcc(String mcc) { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a - * four-digit number, which relates to a particular market segment. This code reflects the - * predominant activity that is conducted by the merchant. - * - * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) - * (MCC) is a four-digit number, which relates to a particular market segment. This code - * reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -982,13 +869,9 @@ public String getMcc() { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a - * four-digit number, which relates to a particular market segment. This code reflects the - * predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) - * (MCC) is a four-digit number, which relates to a particular market segment. This code - * reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -999,8 +882,7 @@ public void setMcc(String mcc) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 merchantAccount(String merchantAccount) { @@ -1010,9 +892,7 @@ public PaymentRequest3ds2 merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * - * @return merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @return merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1023,8 +903,7 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1033,23 +912,9 @@ public void setMerchantAccount(String merchantAccount) { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. - * order auth-rate). The reference should be unique per billing cycle. The same merchant order - * reference should never be reused after the first authorised attempt. If used, this field should - * be supplied for all incoming authorisations. > We strongly recommend you send the - * `merchantOrderReference` value to benefit from linking payment requests when - * authorisation retries take place. In addition, we recommend you provide - * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. - * - * @param merchantOrderReference This reference allows linking multiple transactions to each other - * for reporting purposes (i.e. order auth-rate). The reference should be unique per billing - * cycle. The same merchant order reference should never be reused after the first authorised - * attempt. If used, this field should be supplied for all incoming authorisations. > We - * strongly recommend you send the `merchantOrderReference` value to benefit from - * linking payment requests when authorisation retries take place. In addition, we recommend - * you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * + * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 merchantOrderReference(String merchantOrderReference) { @@ -1058,24 +923,8 @@ public PaymentRequest3ds2 merchantOrderReference(String merchantOrderReference) } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. - * order auth-rate). The reference should be unique per billing cycle. The same merchant order - * reference should never be reused after the first authorised attempt. If used, this field should - * be supplied for all incoming authorisations. > We strongly recommend you send the - * `merchantOrderReference` value to benefit from linking payment requests when - * authorisation retries take place. In addition, we recommend you provide - * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. - * - * @return merchantOrderReference This reference allows linking multiple transactions to each - * other for reporting purposes (i.e. order auth-rate). The reference should be unique per - * billing cycle. The same merchant order reference should never be reused after the first - * authorised attempt. If used, this field should be supplied for all incoming authorisations. - * > We strongly recommend you send the `merchantOrderReference` value to benefit - * from linking payment requests when authorisation retries take place. In addition, we - * recommend you provide `retry.orderAttemptNumber`, - * `retry.chainAttemptNumber`, and `retry.skipRetry` values in - * `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * @return merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1084,23 +933,9 @@ public String getMerchantOrderReference() { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. - * order auth-rate). The reference should be unique per billing cycle. The same merchant order - * reference should never be reused after the first authorised attempt. If used, this field should - * be supplied for all incoming authorisations. > We strongly recommend you send the - * `merchantOrderReference` value to benefit from linking payment requests when - * authorisation retries take place. In addition, we recommend you provide - * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. * - * @param merchantOrderReference This reference allows linking multiple transactions to each other - * for reporting purposes (i.e. order auth-rate). The reference should be unique per billing - * cycle. The same merchant order reference should never be reused after the first authorised - * attempt. If used, this field should be supplied for all incoming authorisations. > We - * strongly recommend you send the `merchantOrderReference` value to benefit from - * linking payment requests when authorisation retries take place. In addition, we recommend - * you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1111,7 +946,7 @@ public void setMerchantOrderReference(String merchantOrderReference) { /** * merchantRiskIndicator * - * @param merchantRiskIndicator + * @param merchantRiskIndicator * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 merchantRiskIndicator(MerchantRiskIndicator merchantRiskIndicator) { @@ -1121,8 +956,7 @@ public PaymentRequest3ds2 merchantRiskIndicator(MerchantRiskIndicator merchantRi /** * Get merchantRiskIndicator - * - * @return merchantRiskIndicator + * @return merchantRiskIndicator */ @JsonProperty(JSON_PROPERTY_MERCHANT_RISK_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1133,7 +967,7 @@ public MerchantRiskIndicator getMerchantRiskIndicator() { /** * merchantRiskIndicator * - * @param merchantRiskIndicator + * @param merchantRiskIndicator */ @JsonProperty(JSON_PROPERTY_MERCHANT_RISK_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1142,15 +976,9 @@ public void setMerchantRiskIndicator(MerchantRiskIndicator merchantRiskIndicator } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 - * key-value pairs per request. When exceeding, the \"177\" error occurs: - * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 - * characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: - * * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error - * occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * - * Maximum 80 characters per value. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 metadata(Map metadata) { @@ -1167,15 +995,8 @@ public PaymentRequest3ds2 putMetadataItem(String key, String metadataItem) { } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 - * key-value pairs per request. When exceeding, the \"177\" error occurs: - * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 - * characters per value. - * - * @return metadata Metadata consists of entries, each of which includes a key and a value. - * Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" - * error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * - * Maximum 80 characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * @return metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1184,15 +1005,9 @@ public Map getMetadata() { } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 - * key-value pairs per request. When exceeding, the \"177\" error occurs: - * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 - * characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: - * * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error - * occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * - * Maximum 80 characters per value. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1201,14 +1016,9 @@ public void setMetadata(Map metadata) { } /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` - * of the first payment. We use this to link the multiple payments to each other. As your own - * reference for linking multiple payments, use the `merchantOrderReference`instead. + * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. * - * @param orderReference When you are doing multiple partial (gift card) payments, this is the - * `pspReference` of the first payment. We use this to link the multiple payments to - * each other. As your own reference for linking multiple payments, use the - * `merchantOrderReference`instead. + * @param orderReference When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 orderReference(String orderReference) { @@ -1217,14 +1027,8 @@ public PaymentRequest3ds2 orderReference(String orderReference) { } /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` - * of the first payment. We use this to link the multiple payments to each other. As your own - * reference for linking multiple payments, use the `merchantOrderReference`instead. - * - * @return orderReference When you are doing multiple partial (gift card) payments, this is the - * `pspReference` of the first payment. We use this to link the multiple payments to - * each other. As your own reference for linking multiple payments, use the - * `merchantOrderReference`instead. + * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + * @return orderReference When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. */ @JsonProperty(JSON_PROPERTY_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1233,14 +1037,9 @@ public String getOrderReference() { } /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` - * of the first payment. We use this to link the multiple payments to each other. As your own - * reference for linking multiple payments, use the `merchantOrderReference`instead. + * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. * - * @param orderReference When you are doing multiple partial (gift card) payments, this is the - * `pspReference` of the first payment. We use this to link the multiple payments to - * each other. As your own reference for linking multiple payments, use the - * `merchantOrderReference`instead. + * @param orderReference When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. */ @JsonProperty(JSON_PROPERTY_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1251,7 +1050,7 @@ public void setOrderReference(String orderReference) { /** * recurring * - * @param recurring + * @param recurring * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 recurring(Recurring recurring) { @@ -1261,8 +1060,7 @@ public PaymentRequest3ds2 recurring(Recurring recurring) { /** * Get recurring - * - * @return recurring + * @return recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1273,7 +1071,7 @@ public Recurring getRecurring() { /** * recurring * - * @param recurring + * @param recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1282,55 +1080,19 @@ public void setRecurring(Recurring recurring) { } /** - * Defines a recurring payment type. Required when creating a token to store payment details or - * using stored payment details. Allowed values: * `Subscription` – A transaction for a - * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a - * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – - * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. - * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a - * token to store payment details or using stored payment details. Allowed values: * - * `Subscription` – A transaction for a fixed or variable amount, which follows a - * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card - * details are stored to enable one-click or omnichannel journeys, or simply to streamline the - * checkout process. Any subscription not following a fixed schedule is also considered a - * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file - * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have - * variable amounts. For example, automatic top-ups when a cardholder's balance drops - * below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ - public PaymentRequest3ds2 recurringProcessingModel( - RecurringProcessingModelEnum recurringProcessingModel) { + public PaymentRequest3ds2 recurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) { this.recurringProcessingModel = recurringProcessingModel; return this; } /** - * Defines a recurring payment type. Required when creating a token to store payment details or - * using stored payment details. Allowed values: * `Subscription` – A transaction for a - * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a - * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – - * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. - * - * @return recurringProcessingModel Defines a recurring payment type. Required when creating a - * token to store payment details or using stored payment details. Allowed values: * - * `Subscription` – A transaction for a fixed or variable amount, which follows a - * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card - * details are stored to enable one-click or omnichannel journeys, or simply to streamline the - * checkout process. Any subscription not following a fixed schedule is also considered a - * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file - * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have - * variable amounts. For example, automatic top-ups when a cardholder's balance drops - * below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * @return recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1339,26 +1101,9 @@ public RecurringProcessingModelEnum getRecurringProcessingModel() { } /** - * Defines a recurring payment type. Required when creating a token to store payment details or - * using stored payment details. Allowed values: * `Subscription` – A transaction for a - * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a - * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel - * journeys, or simply to streamline the checkout process. Any subscription not following a fixed - * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – - * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed - * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's - * balance drops below a certain amount. - * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a - * token to store payment details or using stored payment details. Allowed values: * - * `Subscription` – A transaction for a fixed or variable amount, which follows a - * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card - * details are stored to enable one-click or omnichannel journeys, or simply to streamline the - * checkout process. Any subscription not following a fixed schedule is also considered a - * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file - * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have - * variable amounts. For example, automatic top-ups when a cardholder's balance drops - * below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1367,15 +1112,9 @@ public void setRecurringProcessingModel(RecurringProcessingModelEnum recurringPr } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 reference(String reference) { @@ -1384,15 +1123,8 @@ public PaymentRequest3ds2 reference(String reference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. - * - * @return reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @return reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1401,15 +1133,9 @@ public String getReference() { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1418,15 +1144,9 @@ public void setReference(String reference) { } /** - * Some payment methods require defining a value for this field to specify how to process the - * transaction. For the Bancontact payment method, it can be set to: * `maestro` - * (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a - * Bancontact card. + * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. * - * @param selectedBrand Some payment methods require defining a value for this field to specify - * how to process the transaction. For the Bancontact payment method, it can be set to: * - * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, - * to be processed like a Bancontact card. + * @param selectedBrand Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 selectedBrand(String selectedBrand) { @@ -1435,15 +1155,8 @@ public PaymentRequest3ds2 selectedBrand(String selectedBrand) { } /** - * Some payment methods require defining a value for this field to specify how to process the - * transaction. For the Bancontact payment method, it can be set to: * `maestro` - * (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a - * Bancontact card. - * - * @return selectedBrand Some payment methods require defining a value for this field to specify - * how to process the transaction. For the Bancontact payment method, it can be set to: * - * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, - * to be processed like a Bancontact card. + * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. + * @return selectedBrand Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. */ @JsonProperty(JSON_PROPERTY_SELECTED_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1452,15 +1165,9 @@ public String getSelectedBrand() { } /** - * Some payment methods require defining a value for this field to specify how to process the - * transaction. For the Bancontact payment method, it can be set to: * `maestro` - * (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a - * Bancontact card. + * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. * - * @param selectedBrand Some payment methods require defining a value for this field to specify - * how to process the transaction. For the Bancontact payment method, it can be set to: * - * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, - * to be processed like a Bancontact card. + * @param selectedBrand Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. */ @JsonProperty(JSON_PROPERTY_SELECTED_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1469,27 +1176,19 @@ public void setSelectedBrand(String selectedBrand) { } /** - * The `recurringDetailReference` you want to use for this payment. The value - * `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. * - * @param selectedRecurringDetailReference The `recurringDetailReference` you want to - * use for this payment. The value `LATEST` can be used to select the most recently - * stored recurring detail. + * @param selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ - public PaymentRequest3ds2 selectedRecurringDetailReference( - String selectedRecurringDetailReference) { + public PaymentRequest3ds2 selectedRecurringDetailReference(String selectedRecurringDetailReference) { this.selectedRecurringDetailReference = selectedRecurringDetailReference; return this; } /** - * The `recurringDetailReference` you want to use for this payment. The value - * `LATEST` can be used to select the most recently stored recurring detail. - * - * @return selectedRecurringDetailReference The `recurringDetailReference` you want to - * use for this payment. The value `LATEST` can be used to select the most recently - * stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * @return selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1498,12 +1197,9 @@ public String getSelectedRecurringDetailReference() { } /** - * The `recurringDetailReference` you want to use for this payment. The value - * `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. * - * @param selectedRecurringDetailReference The `recurringDetailReference` you want to - * use for this payment. The value `LATEST` can be used to select the most recently - * stored recurring detail. + * @param selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1524,7 +1220,6 @@ public PaymentRequest3ds2 sessionId(String sessionId) { /** * A session ID used to identify a payment session. - * * @return sessionId A session ID used to identify a payment session. */ @JsonProperty(JSON_PROPERTY_SESSION_ID) @@ -1545,13 +1240,9 @@ public void setSessionId(String sessionId) { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in - * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 - * authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, - * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that - * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 shopperEmail(String shopperEmail) { @@ -1560,13 +1251,8 @@ public PaymentRequest3ds2 shopperEmail(String shopperEmail) { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in - * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 - * authentication if you did not include the `telephoneNumber`. - * - * @return shopperEmail The shopper's email address. We recommend that you provide this data, - * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that - * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @return shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1575,13 +1261,9 @@ public String getShopperEmail() { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in - * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 - * authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, - * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that - * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1590,22 +1272,9 @@ public void setShopperEmail(String shopperEmail) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks). > - * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and - * mobile integrations, if you did not include the `shopperEmail`. For native mobile - * integrations, the field is required to support cases where authentication is routed to the - * redirect flow. This field is also mandatory for some merchants depending on your business - * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it - * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks). > Required for Visa and JCB transactions that require 3D Secure - * 2 authentication for all web and mobile integrations, if you did not include the - * `shopperEmail`. For native mobile integrations, the field is required to support - * cases where authentication is routed to the redirect flow. This field is also mandatory for - * some merchants depending on your business model. For more information, [contact - * Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 shopperIP(String shopperIP) { @@ -1614,22 +1283,8 @@ public PaymentRequest3ds2 shopperIP(String shopperIP) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks). > - * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and - * mobile integrations, if you did not include the `shopperEmail`. For native mobile - * integrations, the field is required to support cases where authentication is routed to the - * redirect flow. This field is also mandatory for some merchants depending on your business - * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). - * - * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it - * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks). > Required for Visa and JCB transactions that require 3D Secure - * 2 authentication for all web and mobile integrations, if you did not include the - * `shopperEmail`. For native mobile integrations, the field is required to support - * cases where authentication is routed to the redirect flow. This field is also mandatory for - * some merchants depending on your business model. For more information, [contact - * Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1638,22 +1293,9 @@ public String getShopperIP() { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks). > - * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and - * mobile integrations, if you did not include the `shopperEmail`. For native mobile - * integrations, the field is required to support cases where authentication is routed to the - * redirect flow. This field is also mandatory for some merchants depending on your business - * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it - * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks). > Required for Visa and JCB transactions that require 3D Secure - * 2 authentication for all web and mobile integrations, if you did not include the - * `shopperEmail`. For native mobile integrations, the field is required to support - * cases where authentication is routed to the redirect flow. This field is also mandatory for - * some merchants depending on your business model. For more information, [contact - * Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1662,30 +1304,9 @@ public void setShopperIP(String shopperIP) { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. - * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 shopperInteraction(ShopperInteractionEnum shopperInteraction) { @@ -1694,30 +1315,8 @@ public PaymentRequest3ds2 shopperInteraction(ShopperInteractionEnum shopperInter } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. - * - * @return shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * @return shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1726,30 +1325,9 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. - * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1758,11 +1336,9 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The combination of a language code and a country code to specify the language to be used in the payment. * - * @param shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 shopperLocale(String shopperLocale) { @@ -1771,11 +1347,8 @@ public PaymentRequest3ds2 shopperLocale(String shopperLocale) { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. - * - * @return shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the payment. + * @return shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1784,11 +1357,9 @@ public String getShopperLocale() { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The combination of a language code and a country code to specify the language to be used in the payment. * - * @param shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1799,7 +1370,7 @@ public void setShopperLocale(String shopperLocale) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 shopperName(Name shopperName) { @@ -1809,8 +1380,7 @@ public PaymentRequest3ds2 shopperName(Name shopperName) { /** * Get shopperName - * - * @return shopperName + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1821,7 +1391,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1830,15 +1400,9 @@ public void setShopperName(Name shopperName) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example - * user ID or account ID. The value is case-sensitive and must be at least three characters. > - * Your reference must not include personally identifiable information (PII) such as name or email - * address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify - * this shopper, for example user ID or account ID. The value is case-sensitive and must be at - * least three characters. > Your reference must not include personally identifiable - * information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 shopperReference(String shopperReference) { @@ -1847,15 +1411,8 @@ public PaymentRequest3ds2 shopperReference(String shopperReference) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example - * user ID or account ID. The value is case-sensitive and must be at least three characters. > - * Your reference must not include personally identifiable information (PII) such as name or email - * address. - * - * @return shopperReference Required for recurring payments. Your reference to uniquely identify - * this shopper, for example user ID or account ID. The value is case-sensitive and must be at - * least three characters. > Your reference must not include personally identifiable - * information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @return shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1864,15 +1421,9 @@ public String getShopperReference() { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example - * user ID or account ID. The value is case-sensitive and must be at least three characters. > - * Your reference must not include personally identifiable information (PII) such as name or email - * address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify - * this shopper, for example user ID or account ID. The value is case-sensitive and must be at - * least three characters. > Your reference must not include personally identifiable - * information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1881,14 +1432,9 @@ public void setShopperReference(String shopperReference) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 - * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, - * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend - * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed - * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * - * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 shopperStatement(String shopperStatement) { @@ -1897,14 +1443,8 @@ public PaymentRequest3ds2 shopperStatement(String shopperStatement) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 - * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, - * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. - * - * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend - * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed - * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * - * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1913,14 +1453,9 @@ public String getShopperStatement() { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 - * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, - * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend - * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed - * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * - * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1941,7 +1476,6 @@ public PaymentRequest3ds2 socialSecurityNumber(String socialSecurityNumber) { /** * The shopper's social security number. - * * @return socialSecurityNumber The shopper's social security number. */ @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER) @@ -1962,15 +1496,9 @@ public void setSocialSecurityNumber(String socialSecurityNumber) { } /** - * An array of objects specifying how the payment should be split when using either Adyen for - * Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/split-payments), or standalone - * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). * - * @param splits An array of objects specifying how the payment should be split when using either - * Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) - * or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone - * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * @param splits An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 splits(List splits) { @@ -1987,15 +1515,8 @@ public PaymentRequest3ds2 addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how the payment should be split when using either Adyen for - * Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/split-payments), or standalone - * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). - * - * @return splits An array of objects specifying how the payment should be split when using either - * Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) - * or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone - * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * @return splits An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2004,15 +1525,9 @@ public List getSplits() { } /** - * An array of objects specifying how the payment should be split when using either Adyen for - * Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or - * [platforms](https://docs.adyen.com/platforms/split-payments), or standalone - * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). * - * @param splits An array of objects specifying how the payment should be split when using either - * Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) - * or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone - * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * @param splits An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2021,22 +1536,9 @@ public void setSplits(List splits) { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. * - * @param store Required for Adyen for Platforms integrations if you are a platform model. This is - * your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 store(String store) { @@ -2045,22 +1547,8 @@ public PaymentRequest3ds2 store(String store) { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. - * - * @return store Required for Adyen for Platforms integrations if you are a platform model. This - * is your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * @return store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2069,22 +1557,9 @@ public String getStore() { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. * - * @param store Required for Adyen for Platforms integrations if you are a platform model. This is - * your - * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) - * (on [balance platform](https://docs.adyen.com/platforms)) or the - * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) - * (in the [classic - * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) - * for the ecommerce or point-of-sale store that is processing the payment. + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2093,17 +1568,9 @@ public void setStore(String store) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus - * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 telephoneNumber(String telephoneNumber) { @@ -2112,17 +1579,8 @@ public PaymentRequest3ds2 telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. - * - * @return telephoneNumber The shopper's telephone number. The phone number must include a - * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @return telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2131,17 +1589,9 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus - * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2152,7 +1602,7 @@ public void setTelephoneNumber(String telephoneNumber) { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 threeDS2RequestData(ThreeDS2RequestData threeDS2RequestData) { @@ -2162,8 +1612,7 @@ public PaymentRequest3ds2 threeDS2RequestData(ThreeDS2RequestData threeDS2Reques /** * Get threeDS2RequestData - * - * @return threeDS2RequestData + * @return threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2174,7 +1623,7 @@ public ThreeDS2RequestData getThreeDS2RequestData() { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2185,7 +1634,7 @@ public void setThreeDS2RequestData(ThreeDS2RequestData threeDS2RequestData) { /** * threeDS2Result * - * @param threeDS2Result + * @param threeDS2Result * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 threeDS2Result(ThreeDS2Result threeDS2Result) { @@ -2195,8 +1644,7 @@ public PaymentRequest3ds2 threeDS2Result(ThreeDS2Result threeDS2Result) { /** * Get threeDS2Result - * - * @return threeDS2Result + * @return threeDS2Result */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2207,7 +1655,7 @@ public ThreeDS2Result getThreeDS2Result() { /** * threeDS2Result * - * @param threeDS2Result + * @param threeDS2Result */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2228,7 +1676,6 @@ public PaymentRequest3ds2 threeDS2Token(String threeDS2Token) { /** * The ThreeDS2Token that was returned in the /authorise call. - * * @return threeDS2Token The ThreeDS2Token that was returned in the /authorise call. */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_TOKEN) @@ -2249,15 +1696,9 @@ public void setThreeDS2Token(String threeDS2Token) { } /** - * Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. * - * @param threeDSAuthenticationOnly Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. + * @param threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { @@ -2266,15 +1707,8 @@ public PaymentRequest3ds2 threeDSAuthenticationOnly(Boolean threeDSAuthenticatio } /** - * Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. - * - * @return threeDSAuthenticationOnly Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * @return threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2283,15 +1717,9 @@ public Boolean getThreeDSAuthenticationOnly() { } /** - * Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. * - * @param threeDSAuthenticationOnly Required to trigger the [authentication-only - * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to - * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the - * payment authorization.Default: **false**. + * @param threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2300,11 +1728,9 @@ public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { } /** - * The reference value to aggregate sales totals in reporting. When not specified, the store field - * is used (if available). + * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). * - * @param totalsGroup The reference value to aggregate sales totals in reporting. When not - * specified, the store field is used (if available). + * @param totalsGroup The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 totalsGroup(String totalsGroup) { @@ -2313,11 +1739,8 @@ public PaymentRequest3ds2 totalsGroup(String totalsGroup) { } /** - * The reference value to aggregate sales totals in reporting. When not specified, the store field - * is used (if available). - * - * @return totalsGroup The reference value to aggregate sales totals in reporting. When not - * specified, the store field is used (if available). + * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). + * @return totalsGroup The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). */ @JsonProperty(JSON_PROPERTY_TOTALS_GROUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2326,11 +1749,9 @@ public String getTotalsGroup() { } /** - * The reference value to aggregate sales totals in reporting. When not specified, the store field - * is used (if available). + * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). * - * @param totalsGroup The reference value to aggregate sales totals in reporting. When not - * specified, the store field is used (if available). + * @param totalsGroup The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). */ @JsonProperty(JSON_PROPERTY_TOTALS_GROUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2351,7 +1772,6 @@ public PaymentRequest3ds2 trustedShopper(Boolean trustedShopper) { /** * Set to true if the payment should be routed to a trusted MID. - * * @return trustedShopper Set to true if the payment should be routed to a trusted MID. */ @JsonProperty(JSON_PROPERTY_TRUSTED_SHOPPER) @@ -2371,7 +1791,9 @@ public void setTrustedShopper(Boolean trustedShopper) { this.trustedShopper = trustedShopper; } - /** Return true if this PaymentRequest3ds2 object is equal to o. */ + /** + * Return true if this PaymentRequest3ds2 object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -2381,106 +1803,56 @@ public boolean equals(Object o) { return false; } PaymentRequest3ds2 paymentRequest3ds2 = (PaymentRequest3ds2) o; - return Objects.equals(this.accountInfo, paymentRequest3ds2.accountInfo) - && Objects.equals(this.additionalAmount, paymentRequest3ds2.additionalAmount) - && Objects.equals(this.additionalData, paymentRequest3ds2.additionalData) - && Objects.equals(this.amount, paymentRequest3ds2.amount) - && Objects.equals(this.applicationInfo, paymentRequest3ds2.applicationInfo) - && Objects.equals(this.billingAddress, paymentRequest3ds2.billingAddress) - && Objects.equals(this.browserInfo, paymentRequest3ds2.browserInfo) - && Objects.equals(this.captureDelayHours, paymentRequest3ds2.captureDelayHours) - && Objects.equals(this.dateOfBirth, paymentRequest3ds2.dateOfBirth) - && Objects.equals(this.dccQuote, paymentRequest3ds2.dccQuote) - && Objects.equals(this.deliveryAddress, paymentRequest3ds2.deliveryAddress) - && Objects.equals(this.deliveryDate, paymentRequest3ds2.deliveryDate) - && Objects.equals(this.deviceFingerprint, paymentRequest3ds2.deviceFingerprint) - && Objects.equals(this.fraudOffset, paymentRequest3ds2.fraudOffset) - && Objects.equals(this.installments, paymentRequest3ds2.installments) - && Objects.equals( - this.localizedShopperStatement, paymentRequest3ds2.localizedShopperStatement) - && Objects.equals(this.mcc, paymentRequest3ds2.mcc) - && Objects.equals(this.merchantAccount, paymentRequest3ds2.merchantAccount) - && Objects.equals(this.merchantOrderReference, paymentRequest3ds2.merchantOrderReference) - && Objects.equals(this.merchantRiskIndicator, paymentRequest3ds2.merchantRiskIndicator) - && Objects.equals(this.metadata, paymentRequest3ds2.metadata) - && Objects.equals(this.orderReference, paymentRequest3ds2.orderReference) - && Objects.equals(this.recurring, paymentRequest3ds2.recurring) - && Objects.equals( - this.recurringProcessingModel, paymentRequest3ds2.recurringProcessingModel) - && Objects.equals(this.reference, paymentRequest3ds2.reference) - && Objects.equals(this.selectedBrand, paymentRequest3ds2.selectedBrand) - && Objects.equals( - this.selectedRecurringDetailReference, - paymentRequest3ds2.selectedRecurringDetailReference) - && Objects.equals(this.sessionId, paymentRequest3ds2.sessionId) - && Objects.equals(this.shopperEmail, paymentRequest3ds2.shopperEmail) - && Objects.equals(this.shopperIP, paymentRequest3ds2.shopperIP) - && Objects.equals(this.shopperInteraction, paymentRequest3ds2.shopperInteraction) - && Objects.equals(this.shopperLocale, paymentRequest3ds2.shopperLocale) - && Objects.equals(this.shopperName, paymentRequest3ds2.shopperName) - && Objects.equals(this.shopperReference, paymentRequest3ds2.shopperReference) - && Objects.equals(this.shopperStatement, paymentRequest3ds2.shopperStatement) - && Objects.equals(this.socialSecurityNumber, paymentRequest3ds2.socialSecurityNumber) - && Objects.equals(this.splits, paymentRequest3ds2.splits) - && Objects.equals(this.store, paymentRequest3ds2.store) - && Objects.equals(this.telephoneNumber, paymentRequest3ds2.telephoneNumber) - && Objects.equals(this.threeDS2RequestData, paymentRequest3ds2.threeDS2RequestData) - && Objects.equals(this.threeDS2Result, paymentRequest3ds2.threeDS2Result) - && Objects.equals(this.threeDS2Token, paymentRequest3ds2.threeDS2Token) - && Objects.equals( - this.threeDSAuthenticationOnly, paymentRequest3ds2.threeDSAuthenticationOnly) - && Objects.equals(this.totalsGroup, paymentRequest3ds2.totalsGroup) - && Objects.equals(this.trustedShopper, paymentRequest3ds2.trustedShopper); + return Objects.equals(this.accountInfo, paymentRequest3ds2.accountInfo) && + Objects.equals(this.additionalAmount, paymentRequest3ds2.additionalAmount) && + Objects.equals(this.additionalData, paymentRequest3ds2.additionalData) && + Objects.equals(this.amount, paymentRequest3ds2.amount) && + Objects.equals(this.applicationInfo, paymentRequest3ds2.applicationInfo) && + Objects.equals(this.billingAddress, paymentRequest3ds2.billingAddress) && + Objects.equals(this.browserInfo, paymentRequest3ds2.browserInfo) && + Objects.equals(this.captureDelayHours, paymentRequest3ds2.captureDelayHours) && + Objects.equals(this.dateOfBirth, paymentRequest3ds2.dateOfBirth) && + Objects.equals(this.dccQuote, paymentRequest3ds2.dccQuote) && + Objects.equals(this.deliveryAddress, paymentRequest3ds2.deliveryAddress) && + Objects.equals(this.deliveryDate, paymentRequest3ds2.deliveryDate) && + Objects.equals(this.deviceFingerprint, paymentRequest3ds2.deviceFingerprint) && + Objects.equals(this.fraudOffset, paymentRequest3ds2.fraudOffset) && + Objects.equals(this.installments, paymentRequest3ds2.installments) && + Objects.equals(this.localizedShopperStatement, paymentRequest3ds2.localizedShopperStatement) && + Objects.equals(this.mcc, paymentRequest3ds2.mcc) && + Objects.equals(this.merchantAccount, paymentRequest3ds2.merchantAccount) && + Objects.equals(this.merchantOrderReference, paymentRequest3ds2.merchantOrderReference) && + Objects.equals(this.merchantRiskIndicator, paymentRequest3ds2.merchantRiskIndicator) && + Objects.equals(this.metadata, paymentRequest3ds2.metadata) && + Objects.equals(this.orderReference, paymentRequest3ds2.orderReference) && + Objects.equals(this.recurring, paymentRequest3ds2.recurring) && + Objects.equals(this.recurringProcessingModel, paymentRequest3ds2.recurringProcessingModel) && + Objects.equals(this.reference, paymentRequest3ds2.reference) && + Objects.equals(this.selectedBrand, paymentRequest3ds2.selectedBrand) && + Objects.equals(this.selectedRecurringDetailReference, paymentRequest3ds2.selectedRecurringDetailReference) && + Objects.equals(this.sessionId, paymentRequest3ds2.sessionId) && + Objects.equals(this.shopperEmail, paymentRequest3ds2.shopperEmail) && + Objects.equals(this.shopperIP, paymentRequest3ds2.shopperIP) && + Objects.equals(this.shopperInteraction, paymentRequest3ds2.shopperInteraction) && + Objects.equals(this.shopperLocale, paymentRequest3ds2.shopperLocale) && + Objects.equals(this.shopperName, paymentRequest3ds2.shopperName) && + Objects.equals(this.shopperReference, paymentRequest3ds2.shopperReference) && + Objects.equals(this.shopperStatement, paymentRequest3ds2.shopperStatement) && + Objects.equals(this.socialSecurityNumber, paymentRequest3ds2.socialSecurityNumber) && + Objects.equals(this.splits, paymentRequest3ds2.splits) && + Objects.equals(this.store, paymentRequest3ds2.store) && + Objects.equals(this.telephoneNumber, paymentRequest3ds2.telephoneNumber) && + Objects.equals(this.threeDS2RequestData, paymentRequest3ds2.threeDS2RequestData) && + Objects.equals(this.threeDS2Result, paymentRequest3ds2.threeDS2Result) && + Objects.equals(this.threeDS2Token, paymentRequest3ds2.threeDS2Token) && + Objects.equals(this.threeDSAuthenticationOnly, paymentRequest3ds2.threeDSAuthenticationOnly) && + Objects.equals(this.totalsGroup, paymentRequest3ds2.totalsGroup) && + Objects.equals(this.trustedShopper, paymentRequest3ds2.trustedShopper); } @Override public int hashCode() { - return Objects.hash( - accountInfo, - additionalAmount, - additionalData, - amount, - applicationInfo, - billingAddress, - browserInfo, - captureDelayHours, - dateOfBirth, - dccQuote, - deliveryAddress, - deliveryDate, - deviceFingerprint, - fraudOffset, - installments, - localizedShopperStatement, - mcc, - merchantAccount, - merchantOrderReference, - merchantRiskIndicator, - metadata, - orderReference, - recurring, - recurringProcessingModel, - reference, - selectedBrand, - selectedRecurringDetailReference, - sessionId, - shopperEmail, - shopperIP, - shopperInteraction, - shopperLocale, - shopperName, - shopperReference, - shopperStatement, - socialSecurityNumber, - splits, - store, - telephoneNumber, - threeDS2RequestData, - threeDS2Result, - threeDS2Token, - threeDSAuthenticationOnly, - totalsGroup, - trustedShopper); + return Objects.hash(accountInfo, additionalAmount, additionalData, amount, applicationInfo, billingAddress, browserInfo, captureDelayHours, dateOfBirth, dccQuote, deliveryAddress, deliveryDate, deviceFingerprint, fraudOffset, installments, localizedShopperStatement, mcc, merchantAccount, merchantOrderReference, merchantRiskIndicator, metadata, orderReference, recurring, recurringProcessingModel, reference, selectedBrand, selectedRecurringDetailReference, sessionId, shopperEmail, shopperIP, shopperInteraction, shopperLocale, shopperName, shopperReference, shopperStatement, socialSecurityNumber, splits, store, telephoneNumber, threeDS2RequestData, threeDS2Result, threeDS2Token, threeDSAuthenticationOnly, totalsGroup, trustedShopper); } @Override @@ -2502,28 +1874,18 @@ public String toString() { sb.append(" deviceFingerprint: ").append(toIndentedString(deviceFingerprint)).append("\n"); sb.append(" fraudOffset: ").append(toIndentedString(fraudOffset)).append("\n"); sb.append(" installments: ").append(toIndentedString(installments)).append("\n"); - sb.append(" localizedShopperStatement: ") - .append(toIndentedString(localizedShopperStatement)) - .append("\n"); + sb.append(" localizedShopperStatement: ").append(toIndentedString(localizedShopperStatement)).append("\n"); sb.append(" mcc: ").append(toIndentedString(mcc)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" merchantOrderReference: ") - .append(toIndentedString(merchantOrderReference)) - .append("\n"); - sb.append(" merchantRiskIndicator: ") - .append(toIndentedString(merchantRiskIndicator)) - .append("\n"); + sb.append(" merchantOrderReference: ").append(toIndentedString(merchantOrderReference)).append("\n"); + sb.append(" merchantRiskIndicator: ").append(toIndentedString(merchantRiskIndicator)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" orderReference: ").append(toIndentedString(orderReference)).append("\n"); sb.append(" recurring: ").append(toIndentedString(recurring)).append("\n"); - sb.append(" recurringProcessingModel: ") - .append(toIndentedString(recurringProcessingModel)) - .append("\n"); + sb.append(" recurringProcessingModel: ").append(toIndentedString(recurringProcessingModel)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" selectedBrand: ").append(toIndentedString(selectedBrand)).append("\n"); - sb.append(" selectedRecurringDetailReference: ") - .append(toIndentedString(selectedRecurringDetailReference)) - .append("\n"); + sb.append(" selectedRecurringDetailReference: ").append(toIndentedString(selectedRecurringDetailReference)).append("\n"); sb.append(" sessionId: ").append(toIndentedString(sessionId)).append("\n"); sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); sb.append(" shopperIP: ").append(toIndentedString(shopperIP)).append("\n"); @@ -2532,20 +1894,14 @@ public String toString() { sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append(" shopperStatement: ").append(toIndentedString(shopperStatement)).append("\n"); - sb.append(" socialSecurityNumber: ") - .append(toIndentedString(socialSecurityNumber)) - .append("\n"); + sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" store: ").append(toIndentedString(store)).append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); - sb.append(" threeDS2RequestData: ") - .append(toIndentedString(threeDS2RequestData)) - .append("\n"); + sb.append(" threeDS2RequestData: ").append(toIndentedString(threeDS2RequestData)).append("\n"); sb.append(" threeDS2Result: ").append(toIndentedString(threeDS2Result)).append("\n"); sb.append(" threeDS2Token: ").append(toIndentedString(threeDS2Token)).append("\n"); - sb.append(" threeDSAuthenticationOnly: ") - .append(toIndentedString(threeDSAuthenticationOnly)) - .append("\n"); + sb.append(" threeDSAuthenticationOnly: ").append(toIndentedString(threeDSAuthenticationOnly)).append("\n"); sb.append(" totalsGroup: ").append(toIndentedString(totalsGroup)).append("\n"); sb.append(" trustedShopper: ").append(toIndentedString(trustedShopper)).append("\n"); sb.append("}"); @@ -2553,7 +1909,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -2562,23 +1919,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentRequest3ds2 given an JSON string * * @param jsonString JSON string * @return An instance of PaymentRequest3ds2 - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentRequest3ds2 + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentRequest3ds2 */ public static PaymentRequest3ds2 fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentRequest3ds2.class); } - - /** - * Convert an instance of PaymentRequest3ds2 to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentRequest3ds2 to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/PaymentResult.java b/src/main/java/com/adyen/model/payment/PaymentResult.java index 3f24ada0d..c268a4bcc 100644 --- a/src/main/java/com/adyen/model/payment/PaymentResult.java +++ b/src/main/java/com/adyen/model/payment/PaymentResult.java @@ -2,28 +2,35 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.payment.Amount; +import com.adyen.model.payment.FraudResult; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** PaymentResult */ + +/** + * PaymentResult + */ @JsonPropertyOrder({ PaymentResult.JSON_PROPERTY_ADDITIONAL_DATA, PaymentResult.JSON_PROPERTY_AUTH_CODE, @@ -37,6 +44,7 @@ PaymentResult.JSON_PROPERTY_REFUSAL_REASON, PaymentResult.JSON_PROPERTY_RESULT_CODE }) + public class PaymentResult { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -69,35 +77,10 @@ public class PaymentResult { private String refusalReason; /** - * The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. - * Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – - * The transaction does not require 3D Secure authentication. Returned for [standalone - * authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * * **Authorised** – The payment was successfully authorised. This state serves as an indicator - * to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – - * Indicates the payment has been cancelled (either by the shopper or the merchant) before - * processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires - * further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 - * transactions. * **Error** – There was an error when the payment was being processed. The reason - * is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – - * The issuer requires the shopper's device fingerprint before the payment can be - * authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment - * has been authorised for a partial amount. This happens for card payments when the merchant - * supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – - * Indicates that it is not possible to obtain the final status of the payment. This can happen if - * the systems providing final status information for the payment are unavailable, or if the - * shopper needs to take further action to complete the payment. * **PresentToShopper** – - * Indicates that the response contains additional information that you need to present to a - * shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment - * has successfully been received by Adyen, and will be processed. This is the initial state for - * all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external - * web page or app to complete the authorisation. * **Refused** – Indicates the payment was - * refused. The reason is given in the `refusalReason` field. This is a final state. + * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. */ public enum ResultCodeEnum { + AUTHENTICATIONFINISHED(String.valueOf("AuthenticationFinished")), AUTHENTICATIONNOTREQUIRED(String.valueOf("AuthenticationNotRequired")), @@ -131,7 +114,7 @@ public enum ResultCodeEnum { private String value; ResultCodeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -152,11 +135,7 @@ public static ResultCodeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ResultCodeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ResultCodeEnum.values())); + LOG.warning("ResultCodeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResultCodeEnum.values())); return null; } } @@ -164,15 +143,13 @@ public static ResultCodeEnum fromValue(String value) { public static final String JSON_PROPERTY_RESULT_CODE = "resultCode"; private ResultCodeEnum resultCode; - public PaymentResult() {} + public PaymentResult() { + } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first: Go to **Customer Area** > **Developers** > - * **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. * @return the current {@code PaymentResult} instance, allowing for method chaining */ public PaymentResult additionalData(Map additionalData) { @@ -189,12 +166,8 @@ public PaymentResult putAdditionalDataItem(String key, String additionalDataItem } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first: Go to **Customer Area** > **Developers** > **Additional data**. - * - * @return additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first: Go to **Customer Area** > **Developers** > - * **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * @return additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -203,12 +176,9 @@ public Map getAdditionalData() { } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first: Go to **Customer Area** > **Developers** > - * **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -217,12 +187,9 @@ public void setAdditionalData(Map additionalData) { } /** - * Authorisation code: * When the payment is authorised successfully, this field holds the - * authorisation code for the payment. * When the payment is not authorised, this field is empty. + * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. * - * @param authCode Authorisation code: * When the payment is authorised successfully, this field - * holds the authorisation code for the payment. * When the payment is not authorised, this - * field is empty. + * @param authCode Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. * @return the current {@code PaymentResult} instance, allowing for method chaining */ public PaymentResult authCode(String authCode) { @@ -231,12 +198,8 @@ public PaymentResult authCode(String authCode) { } /** - * Authorisation code: * When the payment is authorised successfully, this field holds the - * authorisation code for the payment. * When the payment is not authorised, this field is empty. - * - * @return authCode Authorisation code: * When the payment is authorised successfully, this field - * holds the authorisation code for the payment. * When the payment is not authorised, this - * field is empty. + * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * @return authCode Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -245,12 +208,9 @@ public String getAuthCode() { } /** - * Authorisation code: * When the payment is authorised successfully, this field holds the - * authorisation code for the payment. * When the payment is not authorised, this field is empty. + * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. * - * @param authCode Authorisation code: * When the payment is authorised successfully, this field - * holds the authorisation code for the payment. * When the payment is not authorised, this - * field is empty. + * @param authCode Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -261,7 +221,7 @@ public void setAuthCode(String authCode) { /** * dccAmount * - * @param dccAmount + * @param dccAmount * @return the current {@code PaymentResult} instance, allowing for method chaining */ public PaymentResult dccAmount(Amount dccAmount) { @@ -271,8 +231,7 @@ public PaymentResult dccAmount(Amount dccAmount) { /** * Get dccAmount - * - * @return dccAmount + * @return dccAmount */ @JsonProperty(JSON_PROPERTY_DCC_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -283,7 +242,7 @@ public Amount getDccAmount() { /** * dccAmount * - * @param dccAmount + * @param dccAmount */ @JsonProperty(JSON_PROPERTY_DCC_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -292,13 +251,9 @@ public void setDccAmount(Amount dccAmount) { } /** - * Cryptographic signature used to verify `dccQuote`. > This value only applies if - * you have implemented Dynamic Currency Conversion. For more information, [contact - * Support](https://www.adyen.help/hc/en-us/requests/new). + * Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param dccSignature Cryptographic signature used to verify `dccQuote`. > This - * value only applies if you have implemented Dynamic Currency Conversion. For more - * information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @param dccSignature Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * @return the current {@code PaymentResult} instance, allowing for method chaining */ public PaymentResult dccSignature(String dccSignature) { @@ -307,13 +262,8 @@ public PaymentResult dccSignature(String dccSignature) { } /** - * Cryptographic signature used to verify `dccQuote`. > This value only applies if - * you have implemented Dynamic Currency Conversion. For more information, [contact - * Support](https://www.adyen.help/hc/en-us/requests/new). - * - * @return dccSignature Cryptographic signature used to verify `dccQuote`. > This - * value only applies if you have implemented Dynamic Currency Conversion. For more - * information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @return dccSignature Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_DCC_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -322,13 +272,9 @@ public String getDccSignature() { } /** - * Cryptographic signature used to verify `dccQuote`. > This value only applies if - * you have implemented Dynamic Currency Conversion. For more information, [contact - * Support](https://www.adyen.help/hc/en-us/requests/new). + * Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param dccSignature Cryptographic signature used to verify `dccQuote`. > This - * value only applies if you have implemented Dynamic Currency Conversion. For more - * information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @param dccSignature Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_DCC_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -339,7 +285,7 @@ public void setDccSignature(String dccSignature) { /** * fraudResult * - * @param fraudResult + * @param fraudResult * @return the current {@code PaymentResult} instance, allowing for method chaining */ public PaymentResult fraudResult(FraudResult fraudResult) { @@ -349,8 +295,7 @@ public PaymentResult fraudResult(FraudResult fraudResult) { /** * Get fraudResult - * - * @return fraudResult + * @return fraudResult */ @JsonProperty(JSON_PROPERTY_FRAUD_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -361,7 +306,7 @@ public FraudResult getFraudResult() { /** * fraudResult * - * @param fraudResult + * @param fraudResult */ @JsonProperty(JSON_PROPERTY_FRAUD_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -370,11 +315,9 @@ public void setFraudResult(FraudResult fraudResult) { } /** - * The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this - * URL. + * The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL. * - * @param issuerUrl The URL to direct the shopper to. > In case of SecurePlus, do not redirect - * a shopper to this URL. + * @param issuerUrl The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL. * @return the current {@code PaymentResult} instance, allowing for method chaining */ public PaymentResult issuerUrl(String issuerUrl) { @@ -383,11 +326,8 @@ public PaymentResult issuerUrl(String issuerUrl) { } /** - * The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this - * URL. - * - * @return issuerUrl The URL to direct the shopper to. > In case of SecurePlus, do not redirect - * a shopper to this URL. + * The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL. + * @return issuerUrl The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL. */ @JsonProperty(JSON_PROPERTY_ISSUER_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -396,11 +336,9 @@ public String getIssuerUrl() { } /** - * The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this - * URL. + * The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL. * - * @param issuerUrl The URL to direct the shopper to. > In case of SecurePlus, do not redirect - * a shopper to this URL. + * @param issuerUrl The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL. */ @JsonProperty(JSON_PROPERTY_ISSUER_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -421,7 +359,6 @@ public PaymentResult md(String md) { /** * The payment session. - * * @return md The payment session. */ @JsonProperty(JSON_PROPERTY_MD) @@ -442,15 +379,9 @@ public void setMd(String md) { } /** - * The 3D request data for the issuer. If the value is - * **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it - * in the `/authorise3D` request. For more information, see [3D - * Secure](https://docs.adyen.com/classic-integration/3d-secure). + * The 3D request data for the issuer. If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/classic-integration/3d-secure). * - * @param paRequest The 3D request data for the issuer. If the value is - * **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass - * it in the `/authorise3D` request. For more information, see [3D - * Secure](https://docs.adyen.com/classic-integration/3d-secure). + * @param paRequest The 3D request data for the issuer. If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/classic-integration/3d-secure). * @return the current {@code PaymentResult} instance, allowing for method chaining */ public PaymentResult paRequest(String paRequest) { @@ -459,15 +390,8 @@ public PaymentResult paRequest(String paRequest) { } /** - * The 3D request data for the issuer. If the value is - * **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it - * in the `/authorise3D` request. For more information, see [3D - * Secure](https://docs.adyen.com/classic-integration/3d-secure). - * - * @return paRequest The 3D request data for the issuer. If the value is - * **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass - * it in the `/authorise3D` request. For more information, see [3D - * Secure](https://docs.adyen.com/classic-integration/3d-secure). + * The 3D request data for the issuer. If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/classic-integration/3d-secure). + * @return paRequest The 3D request data for the issuer. If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/classic-integration/3d-secure). */ @JsonProperty(JSON_PROPERTY_PA_REQUEST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -476,15 +400,9 @@ public String getPaRequest() { } /** - * The 3D request data for the issuer. If the value is - * **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it - * in the `/authorise3D` request. For more information, see [3D - * Secure](https://docs.adyen.com/classic-integration/3d-secure). + * The 3D request data for the issuer. If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/classic-integration/3d-secure). * - * @param paRequest The 3D request data for the issuer. If the value is - * **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass - * it in the `/authorise3D` request. For more information, see [3D - * Secure](https://docs.adyen.com/classic-integration/3d-secure). + * @param paRequest The 3D request data for the issuer. If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/classic-integration/3d-secure). */ @JsonProperty(JSON_PROPERTY_PA_REQUEST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -493,11 +411,9 @@ public void setPaRequest(String paRequest) { } /** - * Adyen's 16-character reference associated with the transaction/request. This value is - * globally unique; quote it when communicating with us about this request. + * Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character reference associated with the transaction/request. - * This value is globally unique; quote it when communicating with us about this request. + * @param pspReference Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. * @return the current {@code PaymentResult} instance, allowing for method chaining */ public PaymentResult pspReference(String pspReference) { @@ -506,12 +422,8 @@ public PaymentResult pspReference(String pspReference) { } /** - * Adyen's 16-character reference associated with the transaction/request. This value is - * globally unique; quote it when communicating with us about this request. - * - * @return pspReference Adyen's 16-character reference associated with the - * transaction/request. This value is globally unique; quote it when communicating with us - * about this request. + * Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @return pspReference Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -520,11 +432,9 @@ public String getPspReference() { } /** - * Adyen's 16-character reference associated with the transaction/request. This value is - * globally unique; quote it when communicating with us about this request. + * Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character reference associated with the transaction/request. - * This value is globally unique; quote it when communicating with us about this request. + * @param pspReference Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -533,17 +443,9 @@ public void setPspReference(String pspReference) { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this - * field holds Adyen's mapped reason for the refusal or a description of the error. When a - * transaction fails, the authorisation response includes `resultCode` and - * `refusalReason` values. For more information, see [Refusal - * reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). * - * @param refusalReason If the payment's authorisation is refused or an error occurs during - * authorisation, this field holds Adyen's mapped reason for the refusal or a description - * of the error. When a transaction fails, the authorisation response includes - * `resultCode` and `refusalReason` values. For more information, see - * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @param refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). * @return the current {@code PaymentResult} instance, allowing for method chaining */ public PaymentResult refusalReason(String refusalReason) { @@ -552,17 +454,8 @@ public PaymentResult refusalReason(String refusalReason) { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this - * field holds Adyen's mapped reason for the refusal or a description of the error. When a - * transaction fails, the authorisation response includes `resultCode` and - * `refusalReason` values. For more information, see [Refusal - * reasons](https://docs.adyen.com/development-resources/refusal-reasons). - * - * @return refusalReason If the payment's authorisation is refused or an error occurs during - * authorisation, this field holds Adyen's mapped reason for the refusal or a description - * of the error. When a transaction fails, the authorisation response includes - * `resultCode` and `refusalReason` values. For more information, see - * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @return refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -571,17 +464,9 @@ public String getRefusalReason() { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this - * field holds Adyen's mapped reason for the refusal or a description of the error. When a - * transaction fails, the authorisation response includes `resultCode` and - * `refusalReason` values. For more information, see [Refusal - * reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). * - * @param refusalReason If the payment's authorisation is refused or an error occurs during - * authorisation, this field holds Adyen's mapped reason for the refusal or a description - * of the error. When a transaction fails, the authorisation response includes - * `resultCode` and `refusalReason` values. For more information, see - * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @param refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -590,62 +475,9 @@ public void setRefusalReason(String refusalReason) { } /** - * The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. - * Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – - * The transaction does not require 3D Secure authentication. Returned for [standalone - * authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * * **Authorised** – The payment was successfully authorised. This state serves as an indicator - * to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – - * Indicates the payment has been cancelled (either by the shopper or the merchant) before - * processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires - * further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 - * transactions. * **Error** – There was an error when the payment was being processed. The reason - * is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – - * The issuer requires the shopper's device fingerprint before the payment can be - * authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment - * has been authorised for a partial amount. This happens for card payments when the merchant - * supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – - * Indicates that it is not possible to obtain the final status of the payment. This can happen if - * the systems providing final status information for the payment are unavailable, or if the - * shopper needs to take further action to complete the payment. * **PresentToShopper** – - * Indicates that the response contains additional information that you need to present to a - * shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment - * has successfully been received by Adyen, and will be processed. This is the initial state for - * all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external - * web page or app to complete the authorisation. * **Refused** – Indicates the payment was - * refused. The reason is given in the `refusalReason` field. This is a final state. + * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. * - * @param resultCode The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure - * 2. Returned for 3D Secure 2 authentication-only transactions. * - * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. - * Returned for [standalone authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * * **Authorised** – The payment was successfully authorised. This state serves as an - * indicator to proceed with the delivery of goods and services. This is a final state. * - * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the - * merchant) before processing was completed. This is a final state. * **ChallengeShopper** – - * The issuer requires further shopper interaction before the payment can be authenticated. - * Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment - * was being processed. The reason is given in the `refusalReason` field. This is a - * final state. * **IdentifyShopper** – The issuer requires the shopper's device - * fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. - * * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This - * happens for card payments when the merchant supports Partial Authorisations and the - * cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to - * obtain the final status of the payment. This can happen if the systems providing final - * status information for the payment are unavailable, or if the shopper needs to take further - * action to complete the payment. * **PresentToShopper** – Indicates that the response - * contains additional information that you need to present to a shopper, so that they can use - * it to complete a payment. * **Received** – Indicates the payment has successfully been - * received by Adyen, and will be processed. This is the initial state for all payments. * - * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or - * app to complete the authorisation. * **Refused** – Indicates the payment was refused. The - * reason is given in the `refusalReason` field. This is a final state. + * @param resultCode The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. * @return the current {@code PaymentResult} instance, allowing for method chaining */ public PaymentResult resultCode(ResultCodeEnum resultCode) { @@ -654,62 +486,8 @@ public PaymentResult resultCode(ResultCodeEnum resultCode) { } /** - * The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. - * Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – - * The transaction does not require 3D Secure authentication. Returned for [standalone - * authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * * **Authorised** – The payment was successfully authorised. This state serves as an indicator - * to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – - * Indicates the payment has been cancelled (either by the shopper or the merchant) before - * processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires - * further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 - * transactions. * **Error** – There was an error when the payment was being processed. The reason - * is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – - * The issuer requires the shopper's device fingerprint before the payment can be - * authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment - * has been authorised for a partial amount. This happens for card payments when the merchant - * supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – - * Indicates that it is not possible to obtain the final status of the payment. This can happen if - * the systems providing final status information for the payment are unavailable, or if the - * shopper needs to take further action to complete the payment. * **PresentToShopper** – - * Indicates that the response contains additional information that you need to present to a - * shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment - * has successfully been received by Adyen, and will be processed. This is the initial state for - * all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external - * web page or app to complete the authorisation. * **Refused** – Indicates the payment was - * refused. The reason is given in the `refusalReason` field. This is a final state. - * - * @return resultCode The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure - * 2. Returned for 3D Secure 2 authentication-only transactions. * - * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. - * Returned for [standalone authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * * **Authorised** – The payment was successfully authorised. This state serves as an - * indicator to proceed with the delivery of goods and services. This is a final state. * - * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the - * merchant) before processing was completed. This is a final state. * **ChallengeShopper** – - * The issuer requires further shopper interaction before the payment can be authenticated. - * Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment - * was being processed. The reason is given in the `refusalReason` field. This is a - * final state. * **IdentifyShopper** – The issuer requires the shopper's device - * fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. - * * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This - * happens for card payments when the merchant supports Partial Authorisations and the - * cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to - * obtain the final status of the payment. This can happen if the systems providing final - * status information for the payment are unavailable, or if the shopper needs to take further - * action to complete the payment. * **PresentToShopper** – Indicates that the response - * contains additional information that you need to present to a shopper, so that they can use - * it to complete a payment. * **Received** – Indicates the payment has successfully been - * received by Adyen, and will be processed. This is the initial state for all payments. * - * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or - * app to complete the authorisation. * **Refused** – Indicates the payment was refused. The - * reason is given in the `refusalReason` field. This is a final state. + * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + * @return resultCode The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -718,62 +496,9 @@ public ResultCodeEnum getResultCode() { } /** - * The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. - * Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – - * The transaction does not require 3D Secure authentication. Returned for [standalone - * authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * * **Authorised** – The payment was successfully authorised. This state serves as an indicator - * to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – - * Indicates the payment has been cancelled (either by the shopper or the merchant) before - * processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires - * further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 - * transactions. * **Error** – There was an error when the payment was being processed. The reason - * is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – - * The issuer requires the shopper's device fingerprint before the payment can be - * authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment - * has been authorised for a partial amount. This happens for card payments when the merchant - * supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – - * Indicates that it is not possible to obtain the final status of the payment. This can happen if - * the systems providing final status information for the payment are unavailable, or if the - * shopper needs to take further action to complete the payment. * **PresentToShopper** – - * Indicates that the response contains additional information that you need to present to a - * shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment - * has successfully been received by Adyen, and will be processed. This is the initial state for - * all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external - * web page or app to complete the authorisation. * **Refused** – Indicates the payment was - * refused. The reason is given in the `refusalReason` field. This is a final state. + * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. * - * @param resultCode The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure - * 2. Returned for 3D Secure 2 authentication-only transactions. * - * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. - * Returned for [standalone authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * * **Authorised** – The payment was successfully authorised. This state serves as an - * indicator to proceed with the delivery of goods and services. This is a final state. * - * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the - * merchant) before processing was completed. This is a final state. * **ChallengeShopper** – - * The issuer requires further shopper interaction before the payment can be authenticated. - * Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment - * was being processed. The reason is given in the `refusalReason` field. This is a - * final state. * **IdentifyShopper** – The issuer requires the shopper's device - * fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. - * * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This - * happens for card payments when the merchant supports Partial Authorisations and the - * cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to - * obtain the final status of the payment. This can happen if the systems providing final - * status information for the payment are unavailable, or if the shopper needs to take further - * action to complete the payment. * **PresentToShopper** – Indicates that the response - * contains additional information that you need to present to a shopper, so that they can use - * it to complete a payment. * **Received** – Indicates the payment has successfully been - * received by Adyen, and will be processed. This is the initial state for all payments. * - * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or - * app to complete the authorisation. * **Refused** – Indicates the payment was refused. The - * reason is given in the `refusalReason` field. This is a final state. + * @param resultCode The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -781,7 +506,9 @@ public void setResultCode(ResultCodeEnum resultCode) { this.resultCode = resultCode; } - /** Return true if this PaymentResult object is equal to o. */ + /** + * Return true if this PaymentResult object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -791,33 +518,22 @@ public boolean equals(Object o) { return false; } PaymentResult paymentResult = (PaymentResult) o; - return Objects.equals(this.additionalData, paymentResult.additionalData) - && Objects.equals(this.authCode, paymentResult.authCode) - && Objects.equals(this.dccAmount, paymentResult.dccAmount) - && Objects.equals(this.dccSignature, paymentResult.dccSignature) - && Objects.equals(this.fraudResult, paymentResult.fraudResult) - && Objects.equals(this.issuerUrl, paymentResult.issuerUrl) - && Objects.equals(this.md, paymentResult.md) - && Objects.equals(this.paRequest, paymentResult.paRequest) - && Objects.equals(this.pspReference, paymentResult.pspReference) - && Objects.equals(this.refusalReason, paymentResult.refusalReason) - && Objects.equals(this.resultCode, paymentResult.resultCode); + return Objects.equals(this.additionalData, paymentResult.additionalData) && + Objects.equals(this.authCode, paymentResult.authCode) && + Objects.equals(this.dccAmount, paymentResult.dccAmount) && + Objects.equals(this.dccSignature, paymentResult.dccSignature) && + Objects.equals(this.fraudResult, paymentResult.fraudResult) && + Objects.equals(this.issuerUrl, paymentResult.issuerUrl) && + Objects.equals(this.md, paymentResult.md) && + Objects.equals(this.paRequest, paymentResult.paRequest) && + Objects.equals(this.pspReference, paymentResult.pspReference) && + Objects.equals(this.refusalReason, paymentResult.refusalReason) && + Objects.equals(this.resultCode, paymentResult.resultCode); } @Override public int hashCode() { - return Objects.hash( - additionalData, - authCode, - dccAmount, - dccSignature, - fraudResult, - issuerUrl, - md, - paRequest, - pspReference, - refusalReason, - resultCode); + return Objects.hash(additionalData, authCode, dccAmount, dccSignature, fraudResult, issuerUrl, md, paRequest, pspReference, refusalReason, resultCode); } @Override @@ -840,7 +556,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -849,7 +566,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentResult given an JSON string * * @param jsonString JSON string @@ -859,12 +576,11 @@ private String toIndentedString(Object o) { public static PaymentResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentResult.class); } - - /** - * Convert an instance of PaymentResult to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/Phone.java b/src/main/java/com/adyen/model/payment/Phone.java index ebe7327ed..0157d882d 100644 --- a/src/main/java/com/adyen/model/payment/Phone.java +++ b/src/main/java/com/adyen/model/payment/Phone.java @@ -2,23 +2,36 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Phone */ -@JsonPropertyOrder({Phone.JSON_PROPERTY_CC, Phone.JSON_PROPERTY_SUBSCRIBER}) + +/** + * Phone + */ +@JsonPropertyOrder({ + Phone.JSON_PROPERTY_CC, + Phone.JSON_PROPERTY_SUBSCRIBER +}) + public class Phone { public static final String JSON_PROPERTY_CC = "cc"; private String cc; @@ -26,7 +39,8 @@ public class Phone { public static final String JSON_PROPERTY_SUBSCRIBER = "subscriber"; private String subscriber; - public Phone() {} + public Phone() { + } /** * Country code. Length: 1–3 digits. @@ -41,7 +55,6 @@ public Phone cc(String cc) { /** * Country code. Length: 1–3 digits. - * * @return cc Country code. Length: 1–3 digits. */ @JsonProperty(JSON_PROPERTY_CC) @@ -62,9 +75,9 @@ public void setCc(String cc) { } /** - * Subscriber number. Length: 4-15 digits. + * Subscriber number. Length: 4-15 digits. * - * @param subscriber Subscriber number. Length: 4-15 digits. + * @param subscriber Subscriber number. Length: 4-15 digits. * @return the current {@code Phone} instance, allowing for method chaining */ public Phone subscriber(String subscriber) { @@ -73,9 +86,8 @@ public Phone subscriber(String subscriber) { } /** - * Subscriber number. Length: 4-15 digits. - * - * @return subscriber Subscriber number. Length: 4-15 digits. + * Subscriber number. Length: 4-15 digits. + * @return subscriber Subscriber number. Length: 4-15 digits. */ @JsonProperty(JSON_PROPERTY_SUBSCRIBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -84,9 +96,9 @@ public String getSubscriber() { } /** - * Subscriber number. Length: 4-15 digits. + * Subscriber number. Length: 4-15 digits. * - * @param subscriber Subscriber number. Length: 4-15 digits. + * @param subscriber Subscriber number. Length: 4-15 digits. */ @JsonProperty(JSON_PROPERTY_SUBSCRIBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,7 +106,9 @@ public void setSubscriber(String subscriber) { this.subscriber = subscriber; } - /** Return true if this Phone object is equal to o. */ + /** + * Return true if this Phone object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -104,7 +118,8 @@ public boolean equals(Object o) { return false; } Phone phone = (Phone) o; - return Objects.equals(this.cc, phone.cc) && Objects.equals(this.subscriber, phone.subscriber); + return Objects.equals(this.cc, phone.cc) && + Objects.equals(this.subscriber, phone.subscriber); } @Override @@ -123,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -132,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Phone given an JSON string * * @param jsonString JSON string @@ -142,12 +158,11 @@ private String toIndentedString(Object o) { public static Phone fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Phone.class); } - - /** - * Convert an instance of Phone to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Phone to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/PlatformChargebackLogic.java b/src/main/java/com/adyen/model/payment/PlatformChargebackLogic.java index 9527d5aae..25297f843 100644 --- a/src/main/java/com/adyen/model/payment/PlatformChargebackLogic.java +++ b/src/main/java/com/adyen/model/payment/PlatformChargebackLogic.java @@ -2,37 +2,43 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PlatformChargebackLogic */ +/** + * PlatformChargebackLogic + */ @JsonPropertyOrder({ PlatformChargebackLogic.JSON_PROPERTY_BEHAVIOR, PlatformChargebackLogic.JSON_PROPERTY_COST_ALLOCATION_ACCOUNT, PlatformChargebackLogic.JSON_PROPERTY_TARGET_ACCOUNT }) + public class PlatformChargebackLogic { /** - * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. */ public enum BehaviorEnum { + DEDUCTACCORDINGTOSPLITRATIO(String.valueOf("deductAccordingToSplitRatio")), DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), @@ -44,7 +50,7 @@ public enum BehaviorEnum { private String value; BehaviorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -65,11 +71,7 @@ public static BehaviorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "BehaviorEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(BehaviorEnum.values())); + LOG.warning("BehaviorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(BehaviorEnum.values())); return null; } } @@ -83,15 +85,13 @@ public static BehaviorEnum fromValue(String value) { public static final String JSON_PROPERTY_TARGET_ACCOUNT = "targetAccount"; private String targetAccount; - public PlatformChargebackLogic() {} + public PlatformChargebackLogic() { + } /** - * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. * - * @param behavior The method of handling the chargeback. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**, - * **deductAccordingToSplitRatio**. + * @param behavior The method of handling the chargeback. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. * @return the current {@code PlatformChargebackLogic} instance, allowing for method chaining */ public PlatformChargebackLogic behavior(BehaviorEnum behavior) { @@ -100,12 +100,8 @@ public PlatformChargebackLogic behavior(BehaviorEnum behavior) { } /** - * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. - * - * @return behavior The method of handling the chargeback. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**, - * **deductAccordingToSplitRatio**. + * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * @return behavior The method of handling the chargeback. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. */ @JsonProperty(JSON_PROPERTY_BEHAVIOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,12 +110,9 @@ public BehaviorEnum getBehavior() { } /** - * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, - * **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. * - * @param behavior The method of handling the chargeback. Possible values: - * **deductFromLiableAccount**, **deductFromOneBalanceAccount**, - * **deductAccordingToSplitRatio**. + * @param behavior The method of handling the chargeback. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. */ @JsonProperty(JSON_PROPERTY_BEHAVIOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,12 +121,9 @@ public void setBehavior(BehaviorEnum behavior) { } /** - * The unique identifier of the balance account to which the chargeback fees are booked. By - * default, the chargeback fees are booked to your liable balance account. + * The unique identifier of the balance account to which the chargeback fees are booked. By default, the chargeback fees are booked to your liable balance account. * - * @param costAllocationAccount The unique identifier of the balance account to which the - * chargeback fees are booked. By default, the chargeback fees are booked to your liable - * balance account. + * @param costAllocationAccount The unique identifier of the balance account to which the chargeback fees are booked. By default, the chargeback fees are booked to your liable balance account. * @return the current {@code PlatformChargebackLogic} instance, allowing for method chaining */ public PlatformChargebackLogic costAllocationAccount(String costAllocationAccount) { @@ -142,12 +132,8 @@ public PlatformChargebackLogic costAllocationAccount(String costAllocationAccoun } /** - * The unique identifier of the balance account to which the chargeback fees are booked. By - * default, the chargeback fees are booked to your liable balance account. - * - * @return costAllocationAccount The unique identifier of the balance account to which the - * chargeback fees are booked. By default, the chargeback fees are booked to your liable - * balance account. + * The unique identifier of the balance account to which the chargeback fees are booked. By default, the chargeback fees are booked to your liable balance account. + * @return costAllocationAccount The unique identifier of the balance account to which the chargeback fees are booked. By default, the chargeback fees are booked to your liable balance account. */ @JsonProperty(JSON_PROPERTY_COST_ALLOCATION_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,12 +142,9 @@ public String getCostAllocationAccount() { } /** - * The unique identifier of the balance account to which the chargeback fees are booked. By - * default, the chargeback fees are booked to your liable balance account. + * The unique identifier of the balance account to which the chargeback fees are booked. By default, the chargeback fees are booked to your liable balance account. * - * @param costAllocationAccount The unique identifier of the balance account to which the - * chargeback fees are booked. By default, the chargeback fees are booked to your liable - * balance account. + * @param costAllocationAccount The unique identifier of the balance account to which the chargeback fees are booked. By default, the chargeback fees are booked to your liable balance account. */ @JsonProperty(JSON_PROPERTY_COST_ALLOCATION_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -170,11 +153,9 @@ public void setCostAllocationAccount(String costAllocationAccount) { } /** - * The unique identifier of the balance account against which the disputed amount is booked. - * Required if `behavior` is **deductFromOneBalanceAccount**. + * The unique identifier of the balance account against which the disputed amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. * - * @param targetAccount The unique identifier of the balance account against which the disputed - * amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. + * @param targetAccount The unique identifier of the balance account against which the disputed amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. * @return the current {@code PlatformChargebackLogic} instance, allowing for method chaining */ public PlatformChargebackLogic targetAccount(String targetAccount) { @@ -183,11 +164,8 @@ public PlatformChargebackLogic targetAccount(String targetAccount) { } /** - * The unique identifier of the balance account against which the disputed amount is booked. - * Required if `behavior` is **deductFromOneBalanceAccount**. - * - * @return targetAccount The unique identifier of the balance account against which the disputed - * amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. + * The unique identifier of the balance account against which the disputed amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. + * @return targetAccount The unique identifier of the balance account against which the disputed amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_TARGET_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -196,11 +174,9 @@ public String getTargetAccount() { } /** - * The unique identifier of the balance account against which the disputed amount is booked. - * Required if `behavior` is **deductFromOneBalanceAccount**. + * The unique identifier of the balance account against which the disputed amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. * - * @param targetAccount The unique identifier of the balance account against which the disputed - * amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. + * @param targetAccount The unique identifier of the balance account against which the disputed amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_TARGET_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,7 +184,9 @@ public void setTargetAccount(String targetAccount) { this.targetAccount = targetAccount; } - /** Return true if this PlatformChargebackLogic object is equal to o. */ + /** + * Return true if this PlatformChargebackLogic object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -218,9 +196,9 @@ public boolean equals(Object o) { return false; } PlatformChargebackLogic platformChargebackLogic = (PlatformChargebackLogic) o; - return Objects.equals(this.behavior, platformChargebackLogic.behavior) - && Objects.equals(this.costAllocationAccount, platformChargebackLogic.costAllocationAccount) - && Objects.equals(this.targetAccount, platformChargebackLogic.targetAccount); + return Objects.equals(this.behavior, platformChargebackLogic.behavior) && + Objects.equals(this.costAllocationAccount, platformChargebackLogic.costAllocationAccount) && + Objects.equals(this.targetAccount, platformChargebackLogic.targetAccount); } @Override @@ -233,16 +211,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PlatformChargebackLogic {\n"); sb.append(" behavior: ").append(toIndentedString(behavior)).append("\n"); - sb.append(" costAllocationAccount: ") - .append(toIndentedString(costAllocationAccount)) - .append("\n"); + sb.append(" costAllocationAccount: ").append(toIndentedString(costAllocationAccount)).append("\n"); sb.append(" targetAccount: ").append(toIndentedString(targetAccount)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -251,23 +228,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PlatformChargebackLogic given an JSON string * * @param jsonString JSON string * @return An instance of PlatformChargebackLogic - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PlatformChargebackLogic + * @throws JsonProcessingException if the JSON string is invalid with respect to PlatformChargebackLogic */ public static PlatformChargebackLogic fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PlatformChargebackLogic.class); } - - /** - * Convert an instance of PlatformChargebackLogic to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PlatformChargebackLogic to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/Recurring.java b/src/main/java/com/adyen/model/payment/Recurring.java index 3a988f401..adb17ca45 100644 --- a/src/main/java/com/adyen/model/payment/Recurring.java +++ b/src/main/java/com/adyen/model/payment/Recurring.java @@ -2,27 +2,32 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** Recurring */ +/** + * Recurring + */ @JsonPropertyOrder({ Recurring.JSON_PROPERTY_CONTRACT, Recurring.JSON_PROPERTY_RECURRING_DETAIL_NAME, @@ -30,20 +35,13 @@ Recurring.JSON_PROPERTY_RECURRING_FREQUENCY, Recurring.JSON_PROPERTY_TOKEN_SERVICE }) + public class Recurring { /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment - * details can be used to initiate a one-click payment, where the shopper enters the [card - * security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a - * payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). */ public enum ContractEnum { + ONECLICK(String.valueOf("ONECLICK")), RECURRING(String.valueOf("RECURRING")), @@ -55,7 +53,7 @@ public enum ContractEnum { private String value; ContractEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -76,11 +74,7 @@ public static ContractEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ContractEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ContractEnum.values())); + LOG.warning("ContractEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ContractEnum.values())); return null; } } @@ -97,8 +91,11 @@ public static ContractEnum fromValue(String value) { public static final String JSON_PROPERTY_RECURRING_FREQUENCY = "recurringFrequency"; private String recurringFrequency; - /** The name of the token service. */ + /** + * The name of the token service. + */ public enum TokenServiceEnum { + VISATOKENSERVICE(String.valueOf("VISATOKENSERVICE")), MCTOKENSERVICE(String.valueOf("MCTOKENSERVICE")), @@ -112,7 +109,7 @@ public enum TokenServiceEnum { private String value; TokenServiceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -133,11 +130,7 @@ public static TokenServiceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TokenServiceEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TokenServiceEnum.values())); + LOG.warning("TokenServiceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TokenServiceEnum.values())); return null; } } @@ -145,30 +138,13 @@ public static TokenServiceEnum fromValue(String value) { public static final String JSON_PROPERTY_TOKEN_SERVICE = "tokenService"; private TokenServiceEnum tokenService; - public Recurring() {} + public Recurring() { + } /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment - * details can be used to initiate a one-click payment, where the shopper enters the [card - * security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a - * payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). * - * @param contract The type of recurring contract to be used. Possible values: * - * `ONECLICK` – Payment details can be used to initiate a one-click payment, where - * the shopper enters the [card security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make - * a payout](https://docs.adyen.com/online-payments/online-payouts). + * @param contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). * @return the current {@code Recurring} instance, allowing for method chaining */ public Recurring contract(ContractEnum contract) { @@ -177,27 +153,8 @@ public Recurring contract(ContractEnum contract) { } /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment - * details can be used to initiate a one-click payment, where the shopper enters the [card - * security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a - * payout](https://docs.adyen.com/online-payments/online-payouts). - * - * @return contract The type of recurring contract to be used. Possible values: * - * `ONECLICK` – Payment details can be used to initiate a one-click payment, where - * the shopper enters the [card security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make - * a payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * @return contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). */ @JsonProperty(JSON_PROPERTY_CONTRACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -206,27 +163,9 @@ public ContractEnum getContract() { } /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment - * details can be used to initiate a one-click payment, where the shopper enters the [card - * security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a - * payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). * - * @param contract The type of recurring contract to be used. Possible values: * - * `ONECLICK` – Payment details can be used to initiate a one-click payment, where - * the shopper enters the [card security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make - * a payout](https://docs.adyen.com/online-payments/online-payouts). + * @param contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). */ @JsonProperty(JSON_PROPERTY_CONTRACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -247,7 +186,6 @@ public Recurring recurringDetailName(String recurringDetailName) { /** * A descriptive name for this detail. - * * @return recurringDetailName A descriptive name for this detail. */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_NAME) @@ -270,8 +208,7 @@ public void setRecurringDetailName(String recurringDetailName) { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. * - * @param recurringExpiry Date after which no further authorisations shall be performed. Only for - * 3D Secure 2. + * @param recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. * @return the current {@code Recurring} instance, allowing for method chaining */ public Recurring recurringExpiry(OffsetDateTime recurringExpiry) { @@ -281,9 +218,7 @@ public Recurring recurringExpiry(OffsetDateTime recurringExpiry) { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. - * - * @return recurringExpiry Date after which no further authorisations shall be performed. Only for - * 3D Secure 2. + * @return recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -294,8 +229,7 @@ public OffsetDateTime getRecurringExpiry() { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. * - * @param recurringExpiry Date after which no further authorisations shall be performed. Only for - * 3D Secure 2. + * @param recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -316,7 +250,6 @@ public Recurring recurringFrequency(String recurringFrequency) { /** * Minimum number of days between authorisations. Only for 3D Secure 2. - * * @return recurringFrequency Minimum number of days between authorisations. Only for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY) @@ -349,7 +282,6 @@ public Recurring tokenService(TokenServiceEnum tokenService) { /** * The name of the token service. - * * @return tokenService The name of the token service. */ @JsonProperty(JSON_PROPERTY_TOKEN_SERVICE) @@ -369,7 +301,9 @@ public void setTokenService(TokenServiceEnum tokenService) { this.tokenService = tokenService; } - /** Return true if this Recurring object is equal to o. */ + /** + * Return true if this Recurring object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -379,17 +313,16 @@ public boolean equals(Object o) { return false; } Recurring recurring = (Recurring) o; - return Objects.equals(this.contract, recurring.contract) - && Objects.equals(this.recurringDetailName, recurring.recurringDetailName) - && Objects.equals(this.recurringExpiry, recurring.recurringExpiry) - && Objects.equals(this.recurringFrequency, recurring.recurringFrequency) - && Objects.equals(this.tokenService, recurring.tokenService); + return Objects.equals(this.contract, recurring.contract) && + Objects.equals(this.recurringDetailName, recurring.recurringDetailName) && + Objects.equals(this.recurringExpiry, recurring.recurringExpiry) && + Objects.equals(this.recurringFrequency, recurring.recurringFrequency) && + Objects.equals(this.tokenService, recurring.tokenService); } @Override public int hashCode() { - return Objects.hash( - contract, recurringDetailName, recurringExpiry, recurringFrequency, tokenService); + return Objects.hash(contract, recurringDetailName, recurringExpiry, recurringFrequency, tokenService); } @Override @@ -397,9 +330,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Recurring {\n"); sb.append(" contract: ").append(toIndentedString(contract)).append("\n"); - sb.append(" recurringDetailName: ") - .append(toIndentedString(recurringDetailName)) - .append("\n"); + sb.append(" recurringDetailName: ").append(toIndentedString(recurringDetailName)).append("\n"); sb.append(" recurringExpiry: ").append(toIndentedString(recurringExpiry)).append("\n"); sb.append(" recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n"); sb.append(" tokenService: ").append(toIndentedString(tokenService)).append("\n"); @@ -408,7 +339,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -417,7 +349,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Recurring given an JSON string * * @param jsonString JSON string @@ -427,12 +359,11 @@ private String toIndentedString(Object o) { public static Recurring fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Recurring.class); } - - /** - * Convert an instance of Recurring to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Recurring to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/RefundRequest.java b/src/main/java/com/adyen/model/payment/RefundRequest.java index 16e5d8b43..e34d28c98 100644 --- a/src/main/java/com/adyen/model/payment/RefundRequest.java +++ b/src/main/java/com/adyen/model/payment/RefundRequest.java @@ -2,26 +2,39 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.payment.Amount; +import com.adyen.model.payment.PlatformChargebackLogic; +import com.adyen.model.payment.Split; +import com.adyen.model.payment.ThreeDSecureData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** RefundRequest */ + +/** + * RefundRequest + */ @JsonPropertyOrder({ RefundRequest.JSON_PROPERTY_ADDITIONAL_DATA, RefundRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, @@ -35,6 +48,7 @@ RefundRequest.JSON_PROPERTY_TENDER_REFERENCE, RefundRequest.JSON_PROPERTY_UNIQUE_TERMINAL_ID }) + public class RefundRequest { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -48,8 +62,7 @@ public class RefundRequest { public static final String JSON_PROPERTY_MPI_DATA = "mpiData"; private ThreeDSecureData mpiData; - public static final String JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE = - "originalMerchantReference"; + public static final String JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE = "originalMerchantReference"; private String originalMerchantReference; public static final String JSON_PROPERTY_ORIGINAL_REFERENCE = "originalReference"; @@ -70,16 +83,13 @@ public class RefundRequest { public static final String JSON_PROPERTY_UNIQUE_TERMINAL_ID = "uniqueTerminalId"; private String uniqueTerminalId; - public RefundRequest() {} + public RefundRequest() { + } /** - * This field contains additional data, which may be required for a particular modification - * request. The additionalData object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular modification request. The additionalData object consists of entries, each of - * which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. * @return the current {@code RefundRequest} instance, allowing for method chaining */ public RefundRequest additionalData(Map additionalData) { @@ -96,13 +106,8 @@ public RefundRequest putAdditionalDataItem(String key, String additionalDataItem } /** - * This field contains additional data, which may be required for a particular modification - * request. The additionalData object consists of entries, each of which includes the key and - * value. - * - * @return additionalData This field contains additional data, which may be required for a - * particular modification request. The additionalData object consists of entries, each of - * which includes the key and value. + * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * @return additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,13 +116,9 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular modification - * request. The additionalData object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular modification request. The additionalData object consists of entries, each of - * which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,7 +139,6 @@ public RefundRequest merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. - * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -161,7 +161,7 @@ public void setMerchantAccount(String merchantAccount) { /** * modificationAmount * - * @param modificationAmount + * @param modificationAmount * @return the current {@code RefundRequest} instance, allowing for method chaining */ public RefundRequest modificationAmount(Amount modificationAmount) { @@ -171,8 +171,7 @@ public RefundRequest modificationAmount(Amount modificationAmount) { /** * Get modificationAmount - * - * @return modificationAmount + * @return modificationAmount */ @JsonProperty(JSON_PROPERTY_MODIFICATION_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,7 +182,7 @@ public Amount getModificationAmount() { /** * modificationAmount * - * @param modificationAmount + * @param modificationAmount */ @JsonProperty(JSON_PROPERTY_MODIFICATION_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,7 +193,7 @@ public void setModificationAmount(Amount modificationAmount) { /** * mpiData * - * @param mpiData + * @param mpiData * @return the current {@code RefundRequest} instance, allowing for method chaining */ public RefundRequest mpiData(ThreeDSecureData mpiData) { @@ -204,8 +203,7 @@ public RefundRequest mpiData(ThreeDSecureData mpiData) { /** * Get mpiData - * - * @return mpiData + * @return mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -216,7 +214,7 @@ public ThreeDSecureData getMpiData() { /** * mpiData * - * @param mpiData + * @param mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,7 +235,6 @@ public RefundRequest originalMerchantReference(String originalMerchantReference) /** * The original merchant reference to cancel. - * * @return originalMerchantReference The original merchant reference to cancel. */ @JsonProperty(JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE) @@ -258,11 +255,9 @@ public void setOriginalMerchantReference(String originalMerchantReference) { } /** - * The original pspReference of the payment to modify. This reference is returned in: * - * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification * - * @param originalReference The original pspReference of the payment to modify. This reference is - * returned in: * authorisation response * authorisation notification + * @param originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification * @return the current {@code RefundRequest} instance, allowing for method chaining */ public RefundRequest originalReference(String originalReference) { @@ -271,11 +266,8 @@ public RefundRequest originalReference(String originalReference) { } /** - * The original pspReference of the payment to modify. This reference is returned in: * - * authorisation response * authorisation notification - * - * @return originalReference The original pspReference of the payment to modify. This reference is - * returned in: * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * @return originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,11 +276,9 @@ public String getOriginalReference() { } /** - * The original pspReference of the payment to modify. This reference is returned in: * - * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification * - * @param originalReference The original pspReference of the payment to modify. This reference is - * returned in: * authorisation response * authorisation notification + * @param originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -299,7 +289,7 @@ public void setOriginalReference(String originalReference) { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic * @return the current {@code RefundRequest} instance, allowing for method chaining */ public RefundRequest platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) { @@ -309,8 +299,7 @@ public RefundRequest platformChargebackLogic(PlatformChargebackLogic platformCha /** * Get platformChargebackLogic - * - * @return platformChargebackLogic + * @return platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -321,7 +310,7 @@ public PlatformChargebackLogic getPlatformChargebackLogic() { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -330,11 +319,9 @@ public void setPlatformChargebackLogic(PlatformChargebackLogic platformChargebac } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in - * reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in - * Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. * @return the current {@code RefundRequest} instance, allowing for method chaining */ public RefundRequest reference(String reference) { @@ -343,11 +330,8 @@ public RefundRequest reference(String reference) { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in - * reports. Maximum length: 80 characters. - * - * @return reference Your reference for the payment modification. This reference is visible in - * Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * @return reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -356,11 +340,9 @@ public String getReference() { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in - * reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in - * Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -369,13 +351,9 @@ public void setReference(String reference) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * - * @param splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * @return the current {@code RefundRequest} instance, allowing for method chaining */ public RefundRequest splits(List splits) { @@ -392,13 +370,8 @@ public RefundRequest addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). - * - * @return splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * @return splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -407,13 +380,9 @@ public List getSplits() { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * - * @param splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -424,8 +393,7 @@ public void setSplits(List splits) { /** * The transaction reference provided by the PED. For point-of-sale integrations only. * - * @param tenderReference The transaction reference provided by the PED. For point-of-sale - * integrations only. + * @param tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. * @return the current {@code RefundRequest} instance, allowing for method chaining */ public RefundRequest tenderReference(String tenderReference) { @@ -435,9 +403,7 @@ public RefundRequest tenderReference(String tenderReference) { /** * The transaction reference provided by the PED. For point-of-sale integrations only. - * - * @return tenderReference The transaction reference provided by the PED. For point-of-sale - * integrations only. + * @return tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_TENDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -448,8 +414,7 @@ public String getTenderReference() { /** * The transaction reference provided by the PED. For point-of-sale integrations only. * - * @param tenderReference The transaction reference provided by the PED. For point-of-sale - * integrations only. + * @param tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_TENDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -458,11 +423,9 @@ public void setTenderReference(String tenderReference) { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale - * integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. * - * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. - * For point-of-sale integrations only. + * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. * @return the current {@code RefundRequest} instance, allowing for method chaining */ public RefundRequest uniqueTerminalId(String uniqueTerminalId) { @@ -471,11 +434,8 @@ public RefundRequest uniqueTerminalId(String uniqueTerminalId) { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale - * integrations only. - * - * @return uniqueTerminalId Unique terminal ID for the PED that originally processed the request. - * For point-of-sale integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * @return uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -484,11 +444,9 @@ public String getUniqueTerminalId() { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale - * integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. * - * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. - * For point-of-sale integrations only. + * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -496,7 +454,9 @@ public void setUniqueTerminalId(String uniqueTerminalId) { this.uniqueTerminalId = uniqueTerminalId; } - /** Return true if this RefundRequest object is equal to o. */ + /** + * Return true if this RefundRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -506,33 +466,22 @@ public boolean equals(Object o) { return false; } RefundRequest refundRequest = (RefundRequest) o; - return Objects.equals(this.additionalData, refundRequest.additionalData) - && Objects.equals(this.merchantAccount, refundRequest.merchantAccount) - && Objects.equals(this.modificationAmount, refundRequest.modificationAmount) - && Objects.equals(this.mpiData, refundRequest.mpiData) - && Objects.equals(this.originalMerchantReference, refundRequest.originalMerchantReference) - && Objects.equals(this.originalReference, refundRequest.originalReference) - && Objects.equals(this.platformChargebackLogic, refundRequest.platformChargebackLogic) - && Objects.equals(this.reference, refundRequest.reference) - && Objects.equals(this.splits, refundRequest.splits) - && Objects.equals(this.tenderReference, refundRequest.tenderReference) - && Objects.equals(this.uniqueTerminalId, refundRequest.uniqueTerminalId); + return Objects.equals(this.additionalData, refundRequest.additionalData) && + Objects.equals(this.merchantAccount, refundRequest.merchantAccount) && + Objects.equals(this.modificationAmount, refundRequest.modificationAmount) && + Objects.equals(this.mpiData, refundRequest.mpiData) && + Objects.equals(this.originalMerchantReference, refundRequest.originalMerchantReference) && + Objects.equals(this.originalReference, refundRequest.originalReference) && + Objects.equals(this.platformChargebackLogic, refundRequest.platformChargebackLogic) && + Objects.equals(this.reference, refundRequest.reference) && + Objects.equals(this.splits, refundRequest.splits) && + Objects.equals(this.tenderReference, refundRequest.tenderReference) && + Objects.equals(this.uniqueTerminalId, refundRequest.uniqueTerminalId); } @Override public int hashCode() { - return Objects.hash( - additionalData, - merchantAccount, - modificationAmount, - mpiData, - originalMerchantReference, - originalReference, - platformChargebackLogic, - reference, - splits, - tenderReference, - uniqueTerminalId); + return Objects.hash(additionalData, merchantAccount, modificationAmount, mpiData, originalMerchantReference, originalReference, platformChargebackLogic, reference, splits, tenderReference, uniqueTerminalId); } @Override @@ -543,13 +492,9 @@ public String toString() { sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" modificationAmount: ").append(toIndentedString(modificationAmount)).append("\n"); sb.append(" mpiData: ").append(toIndentedString(mpiData)).append("\n"); - sb.append(" originalMerchantReference: ") - .append(toIndentedString(originalMerchantReference)) - .append("\n"); + sb.append(" originalMerchantReference: ").append(toIndentedString(originalMerchantReference)).append("\n"); sb.append(" originalReference: ").append(toIndentedString(originalReference)).append("\n"); - sb.append(" platformChargebackLogic: ") - .append(toIndentedString(platformChargebackLogic)) - .append("\n"); + sb.append(" platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" tenderReference: ").append(toIndentedString(tenderReference)).append("\n"); @@ -559,7 +504,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -568,7 +514,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RefundRequest given an JSON string * * @param jsonString JSON string @@ -578,12 +524,11 @@ private String toIndentedString(Object o) { public static RefundRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RefundRequest.class); } - - /** - * Convert an instance of RefundRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RefundRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ResponseAdditionalData3DSecure.java b/src/main/java/com/adyen/model/payment/ResponseAdditionalData3DSecure.java index ce8a9fdd0..a4a23bddb 100644 --- a/src/main/java/com/adyen/model/payment/ResponseAdditionalData3DSecure.java +++ b/src/main/java/com/adyen/model/payment/ResponseAdditionalData3DSecure.java @@ -2,22 +2,31 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ResponseAdditionalData3DSecure */ + +/** + * ResponseAdditionalData3DSecure + */ @JsonPropertyOrder({ ResponseAdditionalData3DSecure.JSON_PROPERTY_CARD_HOLDER_INFO, ResponseAdditionalData3DSecure.JSON_PROPERTY_CAVV, @@ -25,6 +34,7 @@ ResponseAdditionalData3DSecure.JSON_PROPERTY_SCA_EXEMPTION_REQUESTED, ResponseAdditionalData3DSecure.JSON_PROPERTY_THREEDS2_CARD_ENROLLED }) + public class ResponseAdditionalData3DSecure { public static final String JSON_PROPERTY_CARD_HOLDER_INFO = "cardHolderInfo"; private String cardHolderInfo; @@ -41,16 +51,14 @@ public class ResponseAdditionalData3DSecure { public static final String JSON_PROPERTY_THREEDS2_CARD_ENROLLED = "threeds2.cardEnrolled"; private Boolean threeds2CardEnrolled; - public ResponseAdditionalData3DSecure() {} + public ResponseAdditionalData3DSecure() { + } /** - * Information provided by the issuer to the cardholder. If this field is present, you need to - * display this information to the cardholder. + * Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. * - * @param cardHolderInfo Information provided by the issuer to the cardholder. If this field is - * present, you need to display this information to the cardholder. - * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method - * chaining + * @param cardHolderInfo Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. + * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method chaining */ public ResponseAdditionalData3DSecure cardHolderInfo(String cardHolderInfo) { this.cardHolderInfo = cardHolderInfo; @@ -58,11 +66,8 @@ public ResponseAdditionalData3DSecure cardHolderInfo(String cardHolderInfo) { } /** - * Information provided by the issuer to the cardholder. If this field is present, you need to - * display this information to the cardholder. - * - * @return cardHolderInfo Information provided by the issuer to the cardholder. If this field is - * present, you need to display this information to the cardholder. + * Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. + * @return cardHolderInfo Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. */ @JsonProperty(JSON_PROPERTY_CARD_HOLDER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,11 +76,9 @@ public String getCardHolderInfo() { } /** - * Information provided by the issuer to the cardholder. If this field is present, you need to - * display this information to the cardholder. + * Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. * - * @param cardHolderInfo Information provided by the issuer to the cardholder. If this field is - * present, you need to display this information to the cardholder. + * @param cardHolderInfo Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. */ @JsonProperty(JSON_PROPERTY_CARD_HOLDER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -84,13 +87,10 @@ public void setCardHolderInfo(String cardHolderInfo) { } /** - * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication - * session, as a Base64-encoded 20-byte array. + * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. * - * @param cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure - * authentication session, as a Base64-encoded 20-byte array. - * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method - * chaining + * @param cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. + * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method chaining */ public ResponseAdditionalData3DSecure cavv(String cavv) { this.cavv = cavv; @@ -98,11 +98,8 @@ public ResponseAdditionalData3DSecure cavv(String cavv) { } /** - * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication - * session, as a Base64-encoded 20-byte array. - * - * @return cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure - * authentication session, as a Base64-encoded 20-byte array. + * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. + * @return cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. */ @JsonProperty(JSON_PROPERTY_CAVV) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,11 +108,9 @@ public String getCavv() { } /** - * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication - * session, as a Base64-encoded 20-byte array. + * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. * - * @param cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure - * authentication session, as a Base64-encoded 20-byte array. + * @param cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. */ @JsonProperty(JSON_PROPERTY_CAVV) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,8 +122,7 @@ public void setCavv(String cavv) { * The CAVV algorithm used. * * @param cavvAlgorithm The CAVV algorithm used. - * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method - * chaining + * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method chaining */ public ResponseAdditionalData3DSecure cavvAlgorithm(String cavvAlgorithm) { this.cavvAlgorithm = cavvAlgorithm; @@ -137,7 +131,6 @@ public ResponseAdditionalData3DSecure cavvAlgorithm(String cavvAlgorithm) { /** * The CAVV algorithm used. - * * @return cavvAlgorithm The CAVV algorithm used. */ @JsonProperty(JSON_PROPERTY_CAVV_ALGORITHM) @@ -158,17 +151,10 @@ public void setCavvAlgorithm(String cavvAlgorithm) { } /** - * Shows the [exemption - * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) - * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * - * **trustedBeneficiary** * **transactionRiskAnalysis** + * Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * - * @param scaExemptionRequested Shows the [exemption - * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) - * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** - * * **trustedBeneficiary** * **transactionRiskAnalysis** - * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method - * chaining + * @param scaExemptionRequested Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method chaining */ public ResponseAdditionalData3DSecure scaExemptionRequested(String scaExemptionRequested) { this.scaExemptionRequested = scaExemptionRequested; @@ -176,15 +162,8 @@ public ResponseAdditionalData3DSecure scaExemptionRequested(String scaExemptionR } /** - * Shows the [exemption - * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) - * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * - * **trustedBeneficiary** * **transactionRiskAnalysis** - * - * @return scaExemptionRequested Shows the [exemption - * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) - * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** - * * **trustedBeneficiary** * **transactionRiskAnalysis** + * Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * @return scaExemptionRequested Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** */ @JsonProperty(JSON_PROPERTY_SCA_EXEMPTION_REQUESTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,15 +172,9 @@ public String getScaExemptionRequested() { } /** - * Shows the [exemption - * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) - * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * - * **trustedBeneficiary** * **transactionRiskAnalysis** + * Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * - * @param scaExemptionRequested Shows the [exemption - * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) - * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** - * * **trustedBeneficiary** * **transactionRiskAnalysis** + * @param scaExemptionRequested Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** */ @JsonProperty(JSON_PROPERTY_SCA_EXEMPTION_REQUESTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -213,8 +186,7 @@ public void setScaExemptionRequested(String scaExemptionRequested) { * Indicates whether a card is enrolled for 3D Secure 2. * * @param threeds2CardEnrolled Indicates whether a card is enrolled for 3D Secure 2. - * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method - * chaining + * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method chaining */ public ResponseAdditionalData3DSecure threeds2CardEnrolled(Boolean threeds2CardEnrolled) { this.threeds2CardEnrolled = threeds2CardEnrolled; @@ -223,7 +195,6 @@ public ResponseAdditionalData3DSecure threeds2CardEnrolled(Boolean threeds2CardE /** * Indicates whether a card is enrolled for 3D Secure 2. - * * @return threeds2CardEnrolled Indicates whether a card is enrolled for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_THREEDS2_CARD_ENROLLED) @@ -243,7 +214,9 @@ public void setThreeds2CardEnrolled(Boolean threeds2CardEnrolled) { this.threeds2CardEnrolled = threeds2CardEnrolled; } - /** Return true if this ResponseAdditionalData3DSecure object is equal to o. */ + /** + * Return true if this ResponseAdditionalData3DSecure object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -252,21 +225,17 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResponseAdditionalData3DSecure responseAdditionalData3DSecure = - (ResponseAdditionalData3DSecure) o; - return Objects.equals(this.cardHolderInfo, responseAdditionalData3DSecure.cardHolderInfo) - && Objects.equals(this.cavv, responseAdditionalData3DSecure.cavv) - && Objects.equals(this.cavvAlgorithm, responseAdditionalData3DSecure.cavvAlgorithm) - && Objects.equals( - this.scaExemptionRequested, responseAdditionalData3DSecure.scaExemptionRequested) - && Objects.equals( - this.threeds2CardEnrolled, responseAdditionalData3DSecure.threeds2CardEnrolled); + ResponseAdditionalData3DSecure responseAdditionalData3DSecure = (ResponseAdditionalData3DSecure) o; + return Objects.equals(this.cardHolderInfo, responseAdditionalData3DSecure.cardHolderInfo) && + Objects.equals(this.cavv, responseAdditionalData3DSecure.cavv) && + Objects.equals(this.cavvAlgorithm, responseAdditionalData3DSecure.cavvAlgorithm) && + Objects.equals(this.scaExemptionRequested, responseAdditionalData3DSecure.scaExemptionRequested) && + Objects.equals(this.threeds2CardEnrolled, responseAdditionalData3DSecure.threeds2CardEnrolled); } @Override public int hashCode() { - return Objects.hash( - cardHolderInfo, cavv, cavvAlgorithm, scaExemptionRequested, threeds2CardEnrolled); + return Objects.hash(cardHolderInfo, cavv, cavvAlgorithm, scaExemptionRequested, threeds2CardEnrolled); } @Override @@ -276,18 +245,15 @@ public String toString() { sb.append(" cardHolderInfo: ").append(toIndentedString(cardHolderInfo)).append("\n"); sb.append(" cavv: ").append(toIndentedString(cavv)).append("\n"); sb.append(" cavvAlgorithm: ").append(toIndentedString(cavvAlgorithm)).append("\n"); - sb.append(" scaExemptionRequested: ") - .append(toIndentedString(scaExemptionRequested)) - .append("\n"); - sb.append(" threeds2CardEnrolled: ") - .append(toIndentedString(threeds2CardEnrolled)) - .append("\n"); + sb.append(" scaExemptionRequested: ").append(toIndentedString(scaExemptionRequested)).append("\n"); + sb.append(" threeds2CardEnrolled: ").append(toIndentedString(threeds2CardEnrolled)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -296,24 +262,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResponseAdditionalData3DSecure given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalData3DSecure - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ResponseAdditionalData3DSecure + * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalData3DSecure */ - public static ResponseAdditionalData3DSecure fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalData3DSecure fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalData3DSecure.class); } - - /** - * Convert an instance of ResponseAdditionalData3DSecure to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResponseAdditionalData3DSecure to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataBillingAddress.java b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataBillingAddress.java index 44af067be..8138868ca 100644 --- a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataBillingAddress.java +++ b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataBillingAddress.java @@ -2,22 +2,31 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ResponseAdditionalDataBillingAddress */ + +/** + * ResponseAdditionalDataBillingAddress + */ @JsonPropertyOrder({ ResponseAdditionalDataBillingAddress.JSON_PROPERTY_BILLING_ADDRESS_CITY, ResponseAdditionalDataBillingAddress.JSON_PROPERTY_BILLING_ADDRESS_COUNTRY, @@ -26,6 +35,7 @@ ResponseAdditionalDataBillingAddress.JSON_PROPERTY_BILLING_ADDRESS_STATE_OR_PROVINCE, ResponseAdditionalDataBillingAddress.JSON_PROPERTY_BILLING_ADDRESS_STREET }) + public class ResponseAdditionalDataBillingAddress { public static final String JSON_PROPERTY_BILLING_ADDRESS_CITY = "billingAddress.city"; private String billingAddressCity; @@ -33,29 +43,26 @@ public class ResponseAdditionalDataBillingAddress { public static final String JSON_PROPERTY_BILLING_ADDRESS_COUNTRY = "billingAddress.country"; private String billingAddressCountry; - public static final String JSON_PROPERTY_BILLING_ADDRESS_HOUSE_NUMBER_OR_NAME = - "billingAddress.houseNumberOrName"; + public static final String JSON_PROPERTY_BILLING_ADDRESS_HOUSE_NUMBER_OR_NAME = "billingAddress.houseNumberOrName"; private String billingAddressHouseNumberOrName; - public static final String JSON_PROPERTY_BILLING_ADDRESS_POSTAL_CODE = - "billingAddress.postalCode"; + public static final String JSON_PROPERTY_BILLING_ADDRESS_POSTAL_CODE = "billingAddress.postalCode"; private String billingAddressPostalCode; - public static final String JSON_PROPERTY_BILLING_ADDRESS_STATE_OR_PROVINCE = - "billingAddress.stateOrProvince"; + public static final String JSON_PROPERTY_BILLING_ADDRESS_STATE_OR_PROVINCE = "billingAddress.stateOrProvince"; private String billingAddressStateOrProvince; public static final String JSON_PROPERTY_BILLING_ADDRESS_STREET = "billingAddress.street"; private String billingAddressStreet; - public ResponseAdditionalDataBillingAddress() {} + public ResponseAdditionalDataBillingAddress() { + } /** * The billing address city passed in the payment request. * * @param billingAddressCity The billing address city passed in the payment request. - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method - * chaining + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining */ public ResponseAdditionalDataBillingAddress billingAddressCity(String billingAddressCity) { this.billingAddressCity = billingAddressCity; @@ -64,7 +71,6 @@ public ResponseAdditionalDataBillingAddress billingAddressCity(String billingAdd /** * The billing address city passed in the payment request. - * * @return billingAddressCity The billing address city passed in the payment request. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_CITY) @@ -85,12 +91,10 @@ public void setBillingAddressCity(String billingAddressCity) { } /** - * The billing address country passed in the payment request. Example: NL + * The billing address country passed in the payment request. Example: NL * - * @param billingAddressCountry The billing address country passed in the payment request. - * Example: NL - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method - * chaining + * @param billingAddressCountry The billing address country passed in the payment request. Example: NL + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining */ public ResponseAdditionalDataBillingAddress billingAddressCountry(String billingAddressCountry) { this.billingAddressCountry = billingAddressCountry; @@ -98,10 +102,8 @@ public ResponseAdditionalDataBillingAddress billingAddressCountry(String billing } /** - * The billing address country passed in the payment request. Example: NL - * - * @return billingAddressCountry The billing address country passed in the payment request. - * Example: NL + * The billing address country passed in the payment request. Example: NL + * @return billingAddressCountry The billing address country passed in the payment request. Example: NL */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,10 +112,9 @@ public String getBillingAddressCountry() { } /** - * The billing address country passed in the payment request. Example: NL + * The billing address country passed in the payment request. Example: NL * - * @param billingAddressCountry The billing address country passed in the payment request. - * Example: NL + * @param billingAddressCountry The billing address country passed in the payment request. Example: NL */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,22 +125,17 @@ public void setBillingAddressCountry(String billingAddressCountry) { /** * The billing address house number or name passed in the payment request. * - * @param billingAddressHouseNumberOrName The billing address house number or name passed in the - * payment request. - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method - * chaining + * @param billingAddressHouseNumberOrName The billing address house number or name passed in the payment request. + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining */ - public ResponseAdditionalDataBillingAddress billingAddressHouseNumberOrName( - String billingAddressHouseNumberOrName) { + public ResponseAdditionalDataBillingAddress billingAddressHouseNumberOrName(String billingAddressHouseNumberOrName) { this.billingAddressHouseNumberOrName = billingAddressHouseNumberOrName; return this; } /** * The billing address house number or name passed in the payment request. - * - * @return billingAddressHouseNumberOrName The billing address house number or name passed in the - * payment request. + * @return billingAddressHouseNumberOrName The billing address house number or name passed in the payment request. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_HOUSE_NUMBER_OR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,8 +146,7 @@ public String getBillingAddressHouseNumberOrName() { /** * The billing address house number or name passed in the payment request. * - * @param billingAddressHouseNumberOrName The billing address house number or name passed in the - * payment request. + * @param billingAddressHouseNumberOrName The billing address house number or name passed in the payment request. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_HOUSE_NUMBER_OR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,24 +155,19 @@ public void setBillingAddressHouseNumberOrName(String billingAddressHouseNumberO } /** - * The billing address postal code passed in the payment request. Example: 1011 DJ + * The billing address postal code passed in the payment request. Example: 1011 DJ * - * @param billingAddressPostalCode The billing address postal code passed in the payment request. - * Example: 1011 DJ - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method - * chaining + * @param billingAddressPostalCode The billing address postal code passed in the payment request. Example: 1011 DJ + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining */ - public ResponseAdditionalDataBillingAddress billingAddressPostalCode( - String billingAddressPostalCode) { + public ResponseAdditionalDataBillingAddress billingAddressPostalCode(String billingAddressPostalCode) { this.billingAddressPostalCode = billingAddressPostalCode; return this; } /** - * The billing address postal code passed in the payment request. Example: 1011 DJ - * - * @return billingAddressPostalCode The billing address postal code passed in the payment request. - * Example: 1011 DJ + * The billing address postal code passed in the payment request. Example: 1011 DJ + * @return billingAddressPostalCode The billing address postal code passed in the payment request. Example: 1011 DJ */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,10 +176,9 @@ public String getBillingAddressPostalCode() { } /** - * The billing address postal code passed in the payment request. Example: 1011 DJ + * The billing address postal code passed in the payment request. Example: 1011 DJ * - * @param billingAddressPostalCode The billing address postal code passed in the payment request. - * Example: 1011 DJ + * @param billingAddressPostalCode The billing address postal code passed in the payment request. Example: 1011 DJ */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,24 +187,19 @@ public void setBillingAddressPostalCode(String billingAddressPostalCode) { } /** - * The billing address state or province passed in the payment request. Example: NH + * The billing address state or province passed in the payment request. Example: NH * - * @param billingAddressStateOrProvince The billing address state or province passed in the - * payment request. Example: NH - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method - * chaining + * @param billingAddressStateOrProvince The billing address state or province passed in the payment request. Example: NH + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining */ - public ResponseAdditionalDataBillingAddress billingAddressStateOrProvince( - String billingAddressStateOrProvince) { + public ResponseAdditionalDataBillingAddress billingAddressStateOrProvince(String billingAddressStateOrProvince) { this.billingAddressStateOrProvince = billingAddressStateOrProvince; return this; } /** - * The billing address state or province passed in the payment request. Example: NH - * - * @return billingAddressStateOrProvince The billing address state or province passed in the - * payment request. Example: NH + * The billing address state or province passed in the payment request. Example: NH + * @return billingAddressStateOrProvince The billing address state or province passed in the payment request. Example: NH */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,10 +208,9 @@ public String getBillingAddressStateOrProvince() { } /** - * The billing address state or province passed in the payment request. Example: NH + * The billing address state or province passed in the payment request. Example: NH * - * @param billingAddressStateOrProvince The billing address state or province passed in the - * payment request. Example: NH + * @param billingAddressStateOrProvince The billing address state or province passed in the payment request. Example: NH */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -239,8 +222,7 @@ public void setBillingAddressStateOrProvince(String billingAddressStateOrProvinc * The billing address street passed in the payment request. * * @param billingAddressStreet The billing address street passed in the payment request. - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method - * chaining + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining */ public ResponseAdditionalDataBillingAddress billingAddressStreet(String billingAddressStreet) { this.billingAddressStreet = billingAddressStreet; @@ -249,7 +231,6 @@ public ResponseAdditionalDataBillingAddress billingAddressStreet(String billingA /** * The billing address street passed in the payment request. - * * @return billingAddressStreet The billing address street passed in the payment request. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_STREET) @@ -269,7 +250,9 @@ public void setBillingAddressStreet(String billingAddressStreet) { this.billingAddressStreet = billingAddressStreet; } - /** Return true if this ResponseAdditionalDataBillingAddress object is equal to o. */ + /** + * Return true if this ResponseAdditionalDataBillingAddress object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -278,34 +261,18 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResponseAdditionalDataBillingAddress responseAdditionalDataBillingAddress = - (ResponseAdditionalDataBillingAddress) o; - return Objects.equals( - this.billingAddressCity, responseAdditionalDataBillingAddress.billingAddressCity) - && Objects.equals( - this.billingAddressCountry, responseAdditionalDataBillingAddress.billingAddressCountry) - && Objects.equals( - this.billingAddressHouseNumberOrName, - responseAdditionalDataBillingAddress.billingAddressHouseNumberOrName) - && Objects.equals( - this.billingAddressPostalCode, - responseAdditionalDataBillingAddress.billingAddressPostalCode) - && Objects.equals( - this.billingAddressStateOrProvince, - responseAdditionalDataBillingAddress.billingAddressStateOrProvince) - && Objects.equals( - this.billingAddressStreet, responseAdditionalDataBillingAddress.billingAddressStreet); + ResponseAdditionalDataBillingAddress responseAdditionalDataBillingAddress = (ResponseAdditionalDataBillingAddress) o; + return Objects.equals(this.billingAddressCity, responseAdditionalDataBillingAddress.billingAddressCity) && + Objects.equals(this.billingAddressCountry, responseAdditionalDataBillingAddress.billingAddressCountry) && + Objects.equals(this.billingAddressHouseNumberOrName, responseAdditionalDataBillingAddress.billingAddressHouseNumberOrName) && + Objects.equals(this.billingAddressPostalCode, responseAdditionalDataBillingAddress.billingAddressPostalCode) && + Objects.equals(this.billingAddressStateOrProvince, responseAdditionalDataBillingAddress.billingAddressStateOrProvince) && + Objects.equals(this.billingAddressStreet, responseAdditionalDataBillingAddress.billingAddressStreet); } @Override public int hashCode() { - return Objects.hash( - billingAddressCity, - billingAddressCountry, - billingAddressHouseNumberOrName, - billingAddressPostalCode, - billingAddressStateOrProvince, - billingAddressStreet); + return Objects.hash(billingAddressCity, billingAddressCountry, billingAddressHouseNumberOrName, billingAddressPostalCode, billingAddressStateOrProvince, billingAddressStreet); } @Override @@ -313,27 +280,18 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataBillingAddress {\n"); sb.append(" billingAddressCity: ").append(toIndentedString(billingAddressCity)).append("\n"); - sb.append(" billingAddressCountry: ") - .append(toIndentedString(billingAddressCountry)) - .append("\n"); - sb.append(" billingAddressHouseNumberOrName: ") - .append(toIndentedString(billingAddressHouseNumberOrName)) - .append("\n"); - sb.append(" billingAddressPostalCode: ") - .append(toIndentedString(billingAddressPostalCode)) - .append("\n"); - sb.append(" billingAddressStateOrProvince: ") - .append(toIndentedString(billingAddressStateOrProvince)) - .append("\n"); - sb.append(" billingAddressStreet: ") - .append(toIndentedString(billingAddressStreet)) - .append("\n"); + sb.append(" billingAddressCountry: ").append(toIndentedString(billingAddressCountry)).append("\n"); + sb.append(" billingAddressHouseNumberOrName: ").append(toIndentedString(billingAddressHouseNumberOrName)).append("\n"); + sb.append(" billingAddressPostalCode: ").append(toIndentedString(billingAddressPostalCode)).append("\n"); + sb.append(" billingAddressStateOrProvince: ").append(toIndentedString(billingAddressStateOrProvince)).append("\n"); + sb.append(" billingAddressStreet: ").append(toIndentedString(billingAddressStreet)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -342,24 +300,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResponseAdditionalDataBillingAddress given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataBillingAddress - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ResponseAdditionalDataBillingAddress + * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataBillingAddress */ - public static ResponseAdditionalDataBillingAddress fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataBillingAddress fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataBillingAddress.class); } - - /** - * Convert an instance of ResponseAdditionalDataBillingAddress to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResponseAdditionalDataBillingAddress to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCard.java b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCard.java index 8c47898d7..84e036cc9 100644 --- a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCard.java +++ b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCard.java @@ -2,26 +2,31 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ResponseAdditionalDataCard */ +/** + * ResponseAdditionalDataCard + */ @JsonPropertyOrder({ ResponseAdditionalDataCard.JSON_PROPERTY_CARD_BIN, ResponseAdditionalDataCard.JSON_PROPERTY_CARD_HOLDER_NAME, @@ -33,6 +38,7 @@ ResponseAdditionalDataCard.JSON_PROPERTY_CARD_SUMMARY, ResponseAdditionalDataCard.JSON_PROPERTY_ISSUER_BIN }) + public class ResponseAdditionalDataCard { public static final String JSON_PROPERTY_CARD_BIN = "cardBin"; private String cardBin; @@ -53,15 +59,10 @@ public class ResponseAdditionalDataCard { private String cardPaymentMethod; /** - * The Card Product ID represents the type of card following card scheme product definitions and - * can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - - * Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa - * Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard - * Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * - * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard - * Select Debit + * The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit */ public enum CardProductIdEnum { + A(String.valueOf("A")), B(String.valueOf("B")), @@ -89,7 +90,7 @@ public enum CardProductIdEnum { private String value; CardProductIdEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -110,11 +111,7 @@ public static CardProductIdEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "CardProductIdEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(CardProductIdEnum.values())); + LOG.warning("CardProductIdEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CardProductIdEnum.values())); return null; } } @@ -128,16 +125,13 @@ public static CardProductIdEnum fromValue(String value) { public static final String JSON_PROPERTY_ISSUER_BIN = "issuerBin"; private String issuerBin; - public ResponseAdditionalDataCard() {} + public ResponseAdditionalDataCard() { + } /** - * The first six digits of the card number. This is the [Bank Identification Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with a six-digit BIN. Example: 521234 + * The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 * - * @param cardBin The first six digits of the card number. This is the [Bank Identification Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with a six-digit BIN. Example: 521234 + * @param cardBin The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardBin(String cardBin) { @@ -146,14 +140,8 @@ public ResponseAdditionalDataCard cardBin(String cardBin) { } /** - * The first six digits of the card number. This is the [Bank Identification Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with a six-digit BIN. Example: 521234 - * - * @return cardBin The first six digits of the card number. This is the [Bank Identification - * Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with a six-digit BIN. Example: 521234 + * The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 + * @return cardBin The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 */ @JsonProperty(JSON_PROPERTY_CARD_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -162,13 +150,9 @@ public String getCardBin() { } /** - * The first six digits of the card number. This is the [Bank Identification Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with a six-digit BIN. Example: 521234 + * The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 * - * @param cardBin The first six digits of the card number. This is the [Bank Identification Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with a six-digit BIN. Example: 521234 + * @param cardBin The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 */ @JsonProperty(JSON_PROPERTY_CARD_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,7 +173,6 @@ public ResponseAdditionalDataCard cardHolderName(String cardHolderName) { /** * The cardholder name passed in the payment request. - * * @return cardHolderName The cardholder name passed in the payment request. */ @JsonProperty(JSON_PROPERTY_CARD_HOLDER_NAME) @@ -210,11 +193,9 @@ public void setCardHolderName(String cardHolderName) { } /** - * The bank or the financial institution granting lines of credit through card association branded - * payment cards. This information can be included when available. + * The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. * - * @param cardIssuingBank The bank or the financial institution granting lines of credit through - * card association branded payment cards. This information can be included when available. + * @param cardIssuingBank The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardIssuingBank(String cardIssuingBank) { @@ -223,11 +204,8 @@ public ResponseAdditionalDataCard cardIssuingBank(String cardIssuingBank) { } /** - * The bank or the financial institution granting lines of credit through card association branded - * payment cards. This information can be included when available. - * - * @return cardIssuingBank The bank or the financial institution granting lines of credit through - * card association branded payment cards. This information can be included when available. + * The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. + * @return cardIssuingBank The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_BANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -236,11 +214,9 @@ public String getCardIssuingBank() { } /** - * The bank or the financial institution granting lines of credit through card association branded - * payment cards. This information can be included when available. + * The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. * - * @param cardIssuingBank The bank or the financial institution granting lines of credit through - * card association branded payment cards. This information can be included when available. + * @param cardIssuingBank The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_BANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -249,9 +225,9 @@ public void setCardIssuingBank(String cardIssuingBank) { } /** - * The country where the card was issued. Example: US + * The country where the card was issued. Example: US * - * @param cardIssuingCountry The country where the card was issued. Example: US + * @param cardIssuingCountry The country where the card was issued. Example: US * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardIssuingCountry(String cardIssuingCountry) { @@ -260,9 +236,8 @@ public ResponseAdditionalDataCard cardIssuingCountry(String cardIssuingCountry) } /** - * The country where the card was issued. Example: US - * - * @return cardIssuingCountry The country where the card was issued. Example: US + * The country where the card was issued. Example: US + * @return cardIssuingCountry The country where the card was issued. Example: US */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -271,9 +246,9 @@ public String getCardIssuingCountry() { } /** - * The country where the card was issued. Example: US + * The country where the card was issued. Example: US * - * @param cardIssuingCountry The country where the card was issued. Example: US + * @param cardIssuingCountry The country where the card was issued. Example: US */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -282,12 +257,9 @@ public void setCardIssuingCountry(String cardIssuingCountry) { } /** - * The currency in which the card is issued, if this information is available. Provided as the - * currency code or currency number from the ISO-4217 standard. Example: USD + * The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD * - * @param cardIssuingCurrency The currency in which the card is issued, if this information is - * available. Provided as the currency code or currency number from the ISO-4217 standard. - * Example: USD + * @param cardIssuingCurrency The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardIssuingCurrency(String cardIssuingCurrency) { @@ -296,12 +268,8 @@ public ResponseAdditionalDataCard cardIssuingCurrency(String cardIssuingCurrency } /** - * The currency in which the card is issued, if this information is available. Provided as the - * currency code or currency number from the ISO-4217 standard. Example: USD - * - * @return cardIssuingCurrency The currency in which the card is issued, if this information is - * available. Provided as the currency code or currency number from the ISO-4217 standard. - * Example: USD + * The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD + * @return cardIssuingCurrency The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -310,12 +278,9 @@ public String getCardIssuingCurrency() { } /** - * The currency in which the card is issued, if this information is available. Provided as the - * currency code or currency number from the ISO-4217 standard. Example: USD + * The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD * - * @param cardIssuingCurrency The currency in which the card is issued, if this information is - * available. Provided as the currency code or currency number from the ISO-4217 standard. - * Example: USD + * @param cardIssuingCurrency The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -324,9 +289,9 @@ public void setCardIssuingCurrency(String cardIssuingCurrency) { } /** - * The card payment method used for the transaction. Example: amex + * The card payment method used for the transaction. Example: amex * - * @param cardPaymentMethod The card payment method used for the transaction. Example: amex + * @param cardPaymentMethod The card payment method used for the transaction. Example: amex * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardPaymentMethod(String cardPaymentMethod) { @@ -335,9 +300,8 @@ public ResponseAdditionalDataCard cardPaymentMethod(String cardPaymentMethod) { } /** - * The card payment method used for the transaction. Example: amex - * - * @return cardPaymentMethod The card payment method used for the transaction. Example: amex + * The card payment method used for the transaction. Example: amex + * @return cardPaymentMethod The card payment method used for the transaction. Example: amex */ @JsonProperty(JSON_PROPERTY_CARD_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -346,9 +310,9 @@ public String getCardPaymentMethod() { } /** - * The card payment method used for the transaction. Example: amex + * The card payment method used for the transaction. Example: amex * - * @param cardPaymentMethod The card payment method used for the transaction. Example: amex + * @param cardPaymentMethod The card payment method used for the transaction. Example: amex */ @JsonProperty(JSON_PROPERTY_CARD_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -357,21 +321,9 @@ public void setCardPaymentMethod(String cardPaymentMethod) { } /** - * The Card Product ID represents the type of card following card scheme product definitions and - * can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - - * Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa - * Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard - * Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * - * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard - * Select Debit + * The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit * - * @param cardProductId The Card Product ID represents the type of card following card scheme - * product definitions and can be returned for Adyen Acquiring service level payments. - * Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - * - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values - * Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - - * Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard - * Premium Charge * **MCI** - Mastercard Select Debit + * @param cardProductId The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardProductId(CardProductIdEnum cardProductId) { @@ -380,21 +332,8 @@ public ResponseAdditionalDataCard cardProductId(CardProductIdEnum cardProductId) } /** - * The Card Product ID represents the type of card following card scheme product definitions and - * can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - - * Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa - * Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard - * Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * - * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard - * Select Debit - * - * @return cardProductId The Card Product ID represents the type of card following card scheme - * product definitions and can be returned for Adyen Acquiring service level payments. - * Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - * - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values - * Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - - * Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard - * Premium Charge * **MCI** - Mastercard Select Debit + * The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit + * @return cardProductId The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit */ @JsonProperty(JSON_PROPERTY_CARD_PRODUCT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -403,21 +342,9 @@ public CardProductIdEnum getCardProductId() { } /** - * The Card Product ID represents the type of card following card scheme product definitions and - * can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - - * Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa - * Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard - * Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * - * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard - * Select Debit + * The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit * - * @param cardProductId The Card Product ID represents the type of card following card scheme - * product definitions and can be returned for Adyen Acquiring service level payments. - * Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - * - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values - * Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - - * Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard - * Premium Charge * **MCI** - Mastercard Select Debit + * @param cardProductId The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit */ @JsonProperty(JSON_PROPERTY_CARD_PRODUCT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -426,10 +353,9 @@ public void setCardProductId(CardProductIdEnum cardProductId) { } /** - * The last four digits of a card number. > Returned only in case of a card payment. + * The last four digits of a card number. > Returned only in case of a card payment. * - * @param cardSummary The last four digits of a card number. > Returned only in case of a card - * payment. + * @param cardSummary The last four digits of a card number. > Returned only in case of a card payment. * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardSummary(String cardSummary) { @@ -438,10 +364,8 @@ public ResponseAdditionalDataCard cardSummary(String cardSummary) { } /** - * The last four digits of a card number. > Returned only in case of a card payment. - * - * @return cardSummary The last four digits of a card number. > Returned only in case of a card - * payment. + * The last four digits of a card number. > Returned only in case of a card payment. + * @return cardSummary The last four digits of a card number. > Returned only in case of a card payment. */ @JsonProperty(JSON_PROPERTY_CARD_SUMMARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -450,10 +374,9 @@ public String getCardSummary() { } /** - * The last four digits of a card number. > Returned only in case of a card payment. + * The last four digits of a card number. > Returned only in case of a card payment. * - * @param cardSummary The last four digits of a card number. > Returned only in case of a card - * payment. + * @param cardSummary The last four digits of a card number. > Returned only in case of a card payment. */ @JsonProperty(JSON_PROPERTY_CARD_SUMMARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -462,15 +385,9 @@ public void setCardSummary(String cardSummary) { } /** - * The first eight digits of the card number. Only returned if the card number is 16 digits or - * more. This is the [Bank Identification Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with an eight-digit BIN. Example: 52123423 + * The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 * - * @param issuerBin The first eight digits of the card number. Only returned if the card number is - * 16 digits or more. This is the [Bank Identification Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with an eight-digit BIN. Example: 52123423 + * @param issuerBin The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard issuerBin(String issuerBin) { @@ -479,15 +396,8 @@ public ResponseAdditionalDataCard issuerBin(String issuerBin) { } /** - * The first eight digits of the card number. Only returned if the card number is 16 digits or - * more. This is the [Bank Identification Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with an eight-digit BIN. Example: 52123423 - * - * @return issuerBin The first eight digits of the card number. Only returned if the card number - * is 16 digits or more. This is the [Bank Identification Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with an eight-digit BIN. Example: 52123423 + * The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 + * @return issuerBin The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 */ @JsonProperty(JSON_PROPERTY_ISSUER_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -496,15 +406,9 @@ public String getIssuerBin() { } /** - * The first eight digits of the card number. Only returned if the card number is 16 digits or - * more. This is the [Bank Identification Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with an eight-digit BIN. Example: 52123423 + * The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 * - * @param issuerBin The first eight digits of the card number. Only returned if the card number is - * 16 digits or more. This is the [Bank Identification Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with an eight-digit BIN. Example: 52123423 + * @param issuerBin The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 */ @JsonProperty(JSON_PROPERTY_ISSUER_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -512,7 +416,9 @@ public void setIssuerBin(String issuerBin) { this.issuerBin = issuerBin; } - /** Return true if this ResponseAdditionalDataCard object is equal to o. */ + /** + * Return true if this ResponseAdditionalDataCard object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -522,29 +428,20 @@ public boolean equals(Object o) { return false; } ResponseAdditionalDataCard responseAdditionalDataCard = (ResponseAdditionalDataCard) o; - return Objects.equals(this.cardBin, responseAdditionalDataCard.cardBin) - && Objects.equals(this.cardHolderName, responseAdditionalDataCard.cardHolderName) - && Objects.equals(this.cardIssuingBank, responseAdditionalDataCard.cardIssuingBank) - && Objects.equals(this.cardIssuingCountry, responseAdditionalDataCard.cardIssuingCountry) - && Objects.equals(this.cardIssuingCurrency, responseAdditionalDataCard.cardIssuingCurrency) - && Objects.equals(this.cardPaymentMethod, responseAdditionalDataCard.cardPaymentMethod) - && Objects.equals(this.cardProductId, responseAdditionalDataCard.cardProductId) - && Objects.equals(this.cardSummary, responseAdditionalDataCard.cardSummary) - && Objects.equals(this.issuerBin, responseAdditionalDataCard.issuerBin); + return Objects.equals(this.cardBin, responseAdditionalDataCard.cardBin) && + Objects.equals(this.cardHolderName, responseAdditionalDataCard.cardHolderName) && + Objects.equals(this.cardIssuingBank, responseAdditionalDataCard.cardIssuingBank) && + Objects.equals(this.cardIssuingCountry, responseAdditionalDataCard.cardIssuingCountry) && + Objects.equals(this.cardIssuingCurrency, responseAdditionalDataCard.cardIssuingCurrency) && + Objects.equals(this.cardPaymentMethod, responseAdditionalDataCard.cardPaymentMethod) && + Objects.equals(this.cardProductId, responseAdditionalDataCard.cardProductId) && + Objects.equals(this.cardSummary, responseAdditionalDataCard.cardSummary) && + Objects.equals(this.issuerBin, responseAdditionalDataCard.issuerBin); } @Override public int hashCode() { - return Objects.hash( - cardBin, - cardHolderName, - cardIssuingBank, - cardIssuingCountry, - cardIssuingCurrency, - cardPaymentMethod, - cardProductId, - cardSummary, - issuerBin); + return Objects.hash(cardBin, cardHolderName, cardIssuingBank, cardIssuingCountry, cardIssuingCurrency, cardPaymentMethod, cardProductId, cardSummary, issuerBin); } @Override @@ -555,9 +452,7 @@ public String toString() { sb.append(" cardHolderName: ").append(toIndentedString(cardHolderName)).append("\n"); sb.append(" cardIssuingBank: ").append(toIndentedString(cardIssuingBank)).append("\n"); sb.append(" cardIssuingCountry: ").append(toIndentedString(cardIssuingCountry)).append("\n"); - sb.append(" cardIssuingCurrency: ") - .append(toIndentedString(cardIssuingCurrency)) - .append("\n"); + sb.append(" cardIssuingCurrency: ").append(toIndentedString(cardIssuingCurrency)).append("\n"); sb.append(" cardPaymentMethod: ").append(toIndentedString(cardPaymentMethod)).append("\n"); sb.append(" cardProductId: ").append(toIndentedString(cardProductId)).append("\n"); sb.append(" cardSummary: ").append(toIndentedString(cardSummary)).append("\n"); @@ -567,7 +462,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -576,24 +472,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResponseAdditionalDataCard given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataCard - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ResponseAdditionalDataCard + * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataCard */ - public static ResponseAdditionalDataCard fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataCard fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataCard.class); } - - /** - * Convert an instance of ResponseAdditionalDataCard to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResponseAdditionalDataCard to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCommon.java b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCommon.java index 89a7c1b64..7f06f0264 100644 --- a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCommon.java +++ b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCommon.java @@ -2,26 +2,31 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ResponseAdditionalDataCommon */ +/** + * ResponseAdditionalDataCommon + */ @JsonPropertyOrder({ ResponseAdditionalDataCommon.JSON_PROPERTY_ACQUIRER_ACCOUNT_CODE, ResponseAdditionalDataCommon.JSON_PROPERTY_ACQUIRER_CODE, @@ -87,6 +92,7 @@ ResponseAdditionalDataCommon.JSON_PROPERTY_VISA_TRANSACTION_ID, ResponseAdditionalDataCommon.JSON_PROPERTY_XID }) + public class ResponseAdditionalDataCommon { public static final String JSON_PROPERTY_ACQUIRER_ACCOUNT_CODE = "acquirerAccountCode"; private String acquirerAccountCode; @@ -148,15 +154,17 @@ public class ResponseAdditionalDataCommon { public static final String JSON_PROPERTY_EXTRA_COSTS_VALUE = "extraCostsValue"; private String extraCostsValue; - public static final String JSON_PROPERTY_FRAUD_CHECK_ITEM_NR_FRAUD_CHECKNAME = - "fraudCheck-[itemNr]-[FraudCheckname]"; + public static final String JSON_PROPERTY_FRAUD_CHECK_ITEM_NR_FRAUD_CHECKNAME = "fraudCheck-[itemNr]-[FraudCheckname]"; private String fraudCheckItemNrFraudCheckname; public static final String JSON_PROPERTY_FRAUD_MANUAL_REVIEW = "fraudManualReview"; private String fraudManualReview; - /** The fraud result properties of the payment. */ + /** + * The fraud result properties of the payment. + */ public enum FraudResultTypeEnum { + GREEN(String.valueOf("GREEN")), FRAUD(String.valueOf("FRAUD")); @@ -166,7 +174,7 @@ public enum FraudResultTypeEnum { private String value; FraudResultTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -187,11 +195,7 @@ public static FraudResultTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FraudResultTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FraudResultTypeEnum.values())); + LOG.warning("FraudResultTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FraudResultTypeEnum.values())); return null; } } @@ -200,12 +204,10 @@ public static FraudResultTypeEnum fromValue(String value) { private FraudResultTypeEnum fraudResultType; /** - * The risk level of the transaction as classified by the [machine - * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) - * fraud risk rule. The risk level indicates the likelihood that a transaction will result in a - * fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh */ public enum FraudRiskLevelEnum { + VERYLOW(String.valueOf("veryLow")), LOW(String.valueOf("low")), @@ -221,7 +223,7 @@ public enum FraudRiskLevelEnum { private String value; FraudRiskLevelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -242,11 +244,7 @@ public static FraudRiskLevelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FraudRiskLevelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FraudRiskLevelEnum.values())); + LOG.warning("FraudRiskLevelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FraudRiskLevelEnum.values())); return null; } } @@ -272,8 +270,7 @@ public static FraudRiskLevelEnum fromValue(String value) { public static final String JSON_PROPERTY_LIABILITY_SHIFT = "liabilityShift"; private String liabilityShift; - public static final String JSON_PROPERTY_MC_BANK_NET_REFERENCE_NUMBER = - "mcBankNetReferenceNumber"; + public static final String JSON_PROPERTY_MC_BANK_NET_REFERENCE_NUMBER = "mcBankNetReferenceNumber"; private String mcBankNetReferenceNumber; public static final String JSON_PROPERTY_MERCHANT_ADVICE_CODE = "merchantAdviceCode"; @@ -300,8 +297,7 @@ public static FraudRiskLevelEnum fromValue(String value) { public static final String JSON_PROPERTY_PAYOUT_ELIGIBLE = "payoutEligible"; private String payoutEligible; - public static final String JSON_PROPERTY_REALTIME_ACCOUNT_UPDATER_STATUS = - "realtimeAccountUpdaterStatus"; + public static final String JSON_PROPERTY_REALTIME_ACCOUNT_UPDATER_STATUS = "realtimeAccountUpdaterStatus"; private String realtimeAccountUpdaterStatus; public static final String JSON_PROPERTY_RECEIPT_FREE_TEXT = "receiptFreeText"; @@ -310,36 +306,34 @@ public static FraudRiskLevelEnum fromValue(String value) { public static final String JSON_PROPERTY_RECURRING_CONTRACT_TYPES = "recurring.contractTypes"; private String recurringContractTypes; - public static final String JSON_PROPERTY_RECURRING_FIRST_PSP_REFERENCE = - "recurring.firstPspReference"; + public static final String JSON_PROPERTY_RECURRING_FIRST_PSP_REFERENCE = "recurring.firstPspReference"; private String recurringFirstPspReference; - public static final String JSON_PROPERTY_RECURRING_RECURRING_DETAIL_REFERENCE = - "recurring.recurringDetailReference"; - @Deprecated // deprecated since Adyen Payment API v68: Use tokenization.storedPaymentMethodId - // instead. + public static final String JSON_PROPERTY_RECURRING_RECURRING_DETAIL_REFERENCE = "recurring.recurringDetailReference"; + @Deprecated // deprecated since Adyen Payment API v68: Use tokenization.storedPaymentMethodId instead. private String recurringRecurringDetailReference; - public static final String JSON_PROPERTY_RECURRING_SHOPPER_REFERENCE = - "recurring.shopperReference"; + public static final String JSON_PROPERTY_RECURRING_SHOPPER_REFERENCE = "recurring.shopperReference"; @Deprecated // deprecated since Adyen Payment API v68: Use tokenization.shopperReference instead. private String recurringShopperReference; - /** The processing model used for the recurring transaction. */ + /** + * The processing model used for the recurring transaction. + */ public enum RecurringProcessingModelEnum { + CARDONFILE(String.valueOf("CardOnFile")), SUBSCRIPTION(String.valueOf("Subscription")), UNSCHEDULEDCARDONFILE(String.valueOf("UnscheduledCardOnFile")); - private static final Logger LOG = - Logger.getLogger(RecurringProcessingModelEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(RecurringProcessingModelEnum.class.getName()); private String value; RecurringProcessingModelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -360,11 +354,7 @@ public static RecurringProcessingModelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "RecurringProcessingModelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(RecurringProcessingModelEnum.values())); + LOG.warning("RecurringProcessingModelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RecurringProcessingModelEnum.values())); return null; } } @@ -396,8 +386,7 @@ public static RecurringProcessingModelEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_AUTHENTICATED = "threeDAuthenticated"; private String threeDAuthenticated; - public static final String JSON_PROPERTY_THREE_D_AUTHENTICATED_RESPONSE = - "threeDAuthenticatedResponse"; + public static final String JSON_PROPERTY_THREE_D_AUTHENTICATED_RESPONSE = "threeDAuthenticatedResponse"; private String threeDAuthenticatedResponse; public static final String JSON_PROPERTY_THREE_D_OFFERED = "threeDOffered"; @@ -409,29 +398,26 @@ public static RecurringProcessingModelEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_VERSION = "threeDSVersion"; private String threeDSVersion; - public static final String JSON_PROPERTY_TOKENIZATION_SHOPPER_REFERENCE = - "tokenization.shopperReference"; + public static final String JSON_PROPERTY_TOKENIZATION_SHOPPER_REFERENCE = "tokenization.shopperReference"; private String tokenizationShopperReference; /** - * The operation performed on the token. Possible values: * **created**: the token has been - * created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details - * have already been stored. + * The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. */ public enum TokenizationStoreOperationTypeEnum { + CREATED(String.valueOf("created")), UPDATED(String.valueOf("updated")), ALREADYEXISTING(String.valueOf("alreadyExisting")); - private static final Logger LOG = - Logger.getLogger(TokenizationStoreOperationTypeEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(TokenizationStoreOperationTypeEnum.class.getName()); private String value; TokenizationStoreOperationTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -452,21 +438,15 @@ public static TokenizationStoreOperationTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TokenizationStoreOperationTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TokenizationStoreOperationTypeEnum.values())); + LOG.warning("TokenizationStoreOperationTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TokenizationStoreOperationTypeEnum.values())); return null; } } - public static final String JSON_PROPERTY_TOKENIZATION_STORE_OPERATION_TYPE = - "tokenization.store.operationType"; + public static final String JSON_PROPERTY_TOKENIZATION_STORE_OPERATION_TYPE = "tokenization.store.operationType"; private TokenizationStoreOperationTypeEnum tokenizationStoreOperationType; - public static final String JSON_PROPERTY_TOKENIZATION_STORED_PAYMENT_METHOD_ID = - "tokenization.storedPaymentMethodId"; + public static final String JSON_PROPERTY_TOKENIZATION_STORED_PAYMENT_METHOD_ID = "tokenization.storedPaymentMethodId"; private String tokenizationStoredPaymentMethodId; public static final String JSON_PROPERTY_VISA_TRANSACTION_ID = "visaTransactionId"; @@ -475,14 +455,13 @@ public static TokenizationStoreOperationTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_XID = "xid"; private String xid; - public ResponseAdditionalDataCommon() {} + public ResponseAdditionalDataCommon() { + } /** - * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant - * for PayPal transactions. + * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. * - * @param acquirerAccountCode The name of the Adyen acquirer account. Example: - * PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. + * @param acquirerAccountCode The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon acquirerAccountCode(String acquirerAccountCode) { @@ -491,11 +470,8 @@ public ResponseAdditionalDataCommon acquirerAccountCode(String acquirerAccountCo } /** - * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant - * for PayPal transactions. - * - * @return acquirerAccountCode The name of the Adyen acquirer account. Example: - * PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. + * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. + * @return acquirerAccountCode The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -504,11 +480,9 @@ public String getAcquirerAccountCode() { } /** - * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant - * for PayPal transactions. + * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. * - * @param acquirerAccountCode The name of the Adyen acquirer account. Example: - * PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. + * @param acquirerAccountCode The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -517,10 +491,9 @@ public void setAcquirerAccountCode(String acquirerAccountCode) { } /** - * The name of the acquirer processing the payment request. Example: TestPmmAcquirer + * The name of the acquirer processing the payment request. Example: TestPmmAcquirer * - * @param acquirerCode The name of the acquirer processing the payment request. Example: - * TestPmmAcquirer + * @param acquirerCode The name of the acquirer processing the payment request. Example: TestPmmAcquirer * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon acquirerCode(String acquirerCode) { @@ -529,10 +502,8 @@ public ResponseAdditionalDataCommon acquirerCode(String acquirerCode) { } /** - * The name of the acquirer processing the payment request. Example: TestPmmAcquirer - * - * @return acquirerCode The name of the acquirer processing the payment request. Example: - * TestPmmAcquirer + * The name of the acquirer processing the payment request. Example: TestPmmAcquirer + * @return acquirerCode The name of the acquirer processing the payment request. Example: TestPmmAcquirer */ @JsonProperty(JSON_PROPERTY_ACQUIRER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -541,10 +512,9 @@ public String getAcquirerCode() { } /** - * The name of the acquirer processing the payment request. Example: TestPmmAcquirer + * The name of the acquirer processing the payment request. Example: TestPmmAcquirer * - * @param acquirerCode The name of the acquirer processing the payment request. Example: - * TestPmmAcquirer + * @param acquirerCode The name of the acquirer processing the payment request. Example: TestPmmAcquirer */ @JsonProperty(JSON_PROPERTY_ACQUIRER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -553,11 +523,9 @@ public void setAcquirerCode(String acquirerCode) { } /** - * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used - * for settlement. Example: 7C9N3FNBKT9 + * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 * - * @param acquirerReference The reference number that can be used for reconciliation in case a - * non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 + * @param acquirerReference The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon acquirerReference(String acquirerReference) { @@ -566,11 +534,8 @@ public ResponseAdditionalDataCommon acquirerReference(String acquirerReference) } /** - * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used - * for settlement. Example: 7C9N3FNBKT9 - * - * @return acquirerReference The reference number that can be used for reconciliation in case a - * non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 + * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 + * @return acquirerReference The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 */ @JsonProperty(JSON_PROPERTY_ACQUIRER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -579,11 +544,9 @@ public String getAcquirerReference() { } /** - * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used - * for settlement. Example: 7C9N3FNBKT9 + * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 * - * @param acquirerReference The reference number that can be used for reconciliation in case a - * non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 + * @param acquirerReference The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 */ @JsonProperty(JSON_PROPERTY_ACQUIRER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -592,9 +555,9 @@ public void setAcquirerReference(String acquirerReference) { } /** - * The Adyen alias of the card. Example: H167852639363479 + * The Adyen alias of the card. Example: H167852639363479 * - * @param alias The Adyen alias of the card. Example: H167852639363479 + * @param alias The Adyen alias of the card. Example: H167852639363479 * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon alias(String alias) { @@ -603,9 +566,8 @@ public ResponseAdditionalDataCommon alias(String alias) { } /** - * The Adyen alias of the card. Example: H167852639363479 - * - * @return alias The Adyen alias of the card. Example: H167852639363479 + * The Adyen alias of the card. Example: H167852639363479 + * @return alias The Adyen alias of the card. Example: H167852639363479 */ @JsonProperty(JSON_PROPERTY_ALIAS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -614,9 +576,9 @@ public String getAlias() { } /** - * The Adyen alias of the card. Example: H167852639363479 + * The Adyen alias of the card. Example: H167852639363479 * - * @param alias The Adyen alias of the card. Example: H167852639363479 + * @param alias The Adyen alias of the card. Example: H167852639363479 */ @JsonProperty(JSON_PROPERTY_ALIAS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -625,9 +587,9 @@ public void setAlias(String alias) { } /** - * The type of the card alias. Example: Default + * The type of the card alias. Example: Default * - * @param aliasType The type of the card alias. Example: Default + * @param aliasType The type of the card alias. Example: Default * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon aliasType(String aliasType) { @@ -636,9 +598,8 @@ public ResponseAdditionalDataCommon aliasType(String aliasType) { } /** - * The type of the card alias. Example: Default - * - * @return aliasType The type of the card alias. Example: Default + * The type of the card alias. Example: Default + * @return aliasType The type of the card alias. Example: Default */ @JsonProperty(JSON_PROPERTY_ALIAS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -647,9 +608,9 @@ public String getAliasType() { } /** - * The type of the card alias. Example: Default + * The type of the card alias. Example: Default * - * @param aliasType The type of the card alias. Example: Default + * @param aliasType The type of the card alias. Example: Default */ @JsonProperty(JSON_PROPERTY_ALIAS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -658,13 +619,9 @@ public void setAliasType(String aliasType) { } /** - * Authorisation code: * When the payment is authorised successfully, this field holds the - * authorisation code for the payment. * When the payment is not authorised, this field is empty. - * Example: 58747 + * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 * - * @param authCode Authorisation code: * When the payment is authorised successfully, this field - * holds the authorisation code for the payment. * When the payment is not authorised, this - * field is empty. Example: 58747 + * @param authCode Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon authCode(String authCode) { @@ -673,13 +630,8 @@ public ResponseAdditionalDataCommon authCode(String authCode) { } /** - * Authorisation code: * When the payment is authorised successfully, this field holds the - * authorisation code for the payment. * When the payment is not authorised, this field is empty. - * Example: 58747 - * - * @return authCode Authorisation code: * When the payment is authorised successfully, this field - * holds the authorisation code for the payment. * When the payment is not authorised, this - * field is empty. Example: 58747 + * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 + * @return authCode Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -688,13 +640,9 @@ public String getAuthCode() { } /** - * Authorisation code: * When the payment is authorised successfully, this field holds the - * authorisation code for the payment. * When the payment is not authorised, this field is empty. - * Example: 58747 + * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 * - * @param authCode Authorisation code: * When the payment is authorised successfully, this field - * holds the authorisation code for the payment. * When the payment is not authorised, this - * field is empty. Example: 58747 + * @param authCode Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -715,7 +663,6 @@ public ResponseAdditionalDataCommon authorisationMid(String authorisationMid) { /** * Merchant ID known by the acquirer. - * * @return authorisationMid Merchant ID known by the acquirer. */ @JsonProperty(JSON_PROPERTY_AUTHORISATION_MID) @@ -736,11 +683,9 @@ public void setAuthorisationMid(String authorisationMid) { } /** - * The currency of the authorised amount, as a three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * - * @param authorisedAmountCurrency The currency of the authorised amount, as a three-character - * [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @param authorisedAmountCurrency The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon authorisedAmountCurrency(String authorisedAmountCurrency) { @@ -749,11 +694,8 @@ public ResponseAdditionalDataCommon authorisedAmountCurrency(String authorisedAm } /** - * The currency of the authorised amount, as a three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). - * - * @return authorisedAmountCurrency The currency of the authorised amount, as a three-character - * [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @return authorisedAmountCurrency The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_AUTHORISED_AMOUNT_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -762,11 +704,9 @@ public String getAuthorisedAmountCurrency() { } /** - * The currency of the authorised amount, as a three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * - * @param authorisedAmountCurrency The currency of the authorised amount, as a three-character - * [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @param authorisedAmountCurrency The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_AUTHORISED_AMOUNT_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -775,12 +715,9 @@ public void setAuthorisedAmountCurrency(String authorisedAmountCurrency) { } /** - * Value of the amount authorised. This amount is represented in minor units according to the - * [following table](https://docs.adyen.com/development-resources/currency-codes). + * Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). * - * @param authorisedAmountValue Value of the amount authorised. This amount is represented in - * minor units according to the [following - * table](https://docs.adyen.com/development-resources/currency-codes). + * @param authorisedAmountValue Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon authorisedAmountValue(String authorisedAmountValue) { @@ -789,12 +726,8 @@ public ResponseAdditionalDataCommon authorisedAmountValue(String authorisedAmoun } /** - * Value of the amount authorised. This amount is represented in minor units according to the - * [following table](https://docs.adyen.com/development-resources/currency-codes). - * - * @return authorisedAmountValue Value of the amount authorised. This amount is represented in - * minor units according to the [following - * table](https://docs.adyen.com/development-resources/currency-codes). + * Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). + * @return authorisedAmountValue Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_AUTHORISED_AMOUNT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -803,12 +736,9 @@ public String getAuthorisedAmountValue() { } /** - * Value of the amount authorised. This amount is represented in minor units according to the - * [following table](https://docs.adyen.com/development-resources/currency-codes). + * Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). * - * @param authorisedAmountValue Value of the amount authorised. This amount is represented in - * minor units according to the [following - * table](https://docs.adyen.com/development-resources/currency-codes). + * @param authorisedAmountValue Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_AUTHORISED_AMOUNT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -817,13 +747,9 @@ public void setAuthorisedAmountValue(String authorisedAmountValue) { } /** - * The AVS result code of the payment, which provides information about the outcome of the AVS - * check. For possible values, see - * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). * - * @param avsResult The AVS result code of the payment, which provides information about the - * outcome of the AVS check. For possible values, see - * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * @param avsResult The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon avsResult(String avsResult) { @@ -832,13 +758,8 @@ public ResponseAdditionalDataCommon avsResult(String avsResult) { } /** - * The AVS result code of the payment, which provides information about the outcome of the AVS - * check. For possible values, see - * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). - * - * @return avsResult The AVS result code of the payment, which provides information about the - * outcome of the AVS check. For possible values, see - * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * @return avsResult The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). */ @JsonProperty(JSON_PROPERTY_AVS_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -847,13 +768,9 @@ public String getAvsResult() { } /** - * The AVS result code of the payment, which provides information about the outcome of the AVS - * check. For possible values, see - * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). * - * @param avsResult The AVS result code of the payment, which provides information about the - * outcome of the AVS check. For possible values, see - * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * @param avsResult The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). */ @JsonProperty(JSON_PROPERTY_AVS_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -862,9 +779,9 @@ public void setAvsResult(String avsResult) { } /** - * Raw AVS result received from the acquirer, where available. Example: D + * Raw AVS result received from the acquirer, where available. Example: D * - * @param avsResultRaw Raw AVS result received from the acquirer, where available. Example: D + * @param avsResultRaw Raw AVS result received from the acquirer, where available. Example: D * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon avsResultRaw(String avsResultRaw) { @@ -873,9 +790,8 @@ public ResponseAdditionalDataCommon avsResultRaw(String avsResultRaw) { } /** - * Raw AVS result received from the acquirer, where available. Example: D - * - * @return avsResultRaw Raw AVS result received from the acquirer, where available. Example: D + * Raw AVS result received from the acquirer, where available. Example: D + * @return avsResultRaw Raw AVS result received from the acquirer, where available. Example: D */ @JsonProperty(JSON_PROPERTY_AVS_RESULT_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -884,9 +800,9 @@ public String getAvsResultRaw() { } /** - * Raw AVS result received from the acquirer, where available. Example: D + * Raw AVS result received from the acquirer, where available. Example: D * - * @param avsResultRaw Raw AVS result received from the acquirer, where available. Example: D + * @param avsResultRaw Raw AVS result received from the acquirer, where available. Example: D */ @JsonProperty(JSON_PROPERTY_AVS_RESULT_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -895,10 +811,9 @@ public void setAvsResultRaw(String avsResultRaw) { } /** - * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. + * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. * - * @param bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit - * transactions. + * @param bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon bic(String bic) { @@ -907,10 +822,8 @@ public ResponseAdditionalDataCommon bic(String bic) { } /** - * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. - * - * @return bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit - * transactions. + * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. + * @return bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. */ @JsonProperty(JSON_PROPERTY_BIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -919,10 +832,9 @@ public String getBic() { } /** - * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. + * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. * - * @param bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit - * transactions. + * @param bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. */ @JsonProperty(JSON_PROPERTY_BIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -943,7 +855,6 @@ public ResponseAdditionalDataCommon coBrandedWith(String coBrandedWith) { /** * Includes the co-branded card information. - * * @return coBrandedWith Includes the co-branded card information. */ @JsonProperty(JSON_PROPERTY_CO_BRANDED_WITH) @@ -976,7 +887,6 @@ public ResponseAdditionalDataCommon cvcResult(String cvcResult) { /** * The result of CVC verification. - * * @return cvcResult The result of CVC verification. */ @JsonProperty(JSON_PROPERTY_CVC_RESULT) @@ -1009,7 +919,6 @@ public ResponseAdditionalDataCommon cvcResultRaw(String cvcResultRaw) { /** * The raw result of CVC verification. - * * @return cvcResultRaw The raw result of CVC verification. */ @JsonProperty(JSON_PROPERTY_CVC_RESULT_RAW) @@ -1030,11 +939,9 @@ public void setCvcResultRaw(String cvcResultRaw) { } /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a - * single transaction. + * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. * - * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the - * DS to identify a single transaction. + * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon dsTransID(String dsTransID) { @@ -1043,11 +950,8 @@ public ResponseAdditionalDataCommon dsTransID(String dsTransID) { } /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a - * single transaction. - * - * @return dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the - * DS to identify a single transaction. + * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. + * @return dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. */ @JsonProperty(JSON_PROPERTY_DS_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1056,11 +960,9 @@ public String getDsTransID() { } /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a - * single transaction. + * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. * - * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the - * DS to identify a single transaction. + * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. */ @JsonProperty(JSON_PROPERTY_DS_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1069,11 +971,9 @@ public void setDsTransID(String dsTransID) { } /** - * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. - * Example: 02 + * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 * - * @param eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment - * session. Example: 02 + * @param eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon eci(String eci) { @@ -1082,11 +982,8 @@ public ResponseAdditionalDataCommon eci(String eci) { } /** - * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. - * Example: 02 - * - * @return eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment - * session. Example: 02 + * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 + * @return eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 */ @JsonProperty(JSON_PROPERTY_ECI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1095,11 +992,9 @@ public String getEci() { } /** - * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. - * Example: 02 + * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 * - * @param eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment - * session. Example: 02 + * @param eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 */ @JsonProperty(JSON_PROPERTY_ECI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1108,10 +1003,9 @@ public void setEci(String eci) { } /** - * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. + * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. * - * @param expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a - * card payment. + * @param expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon expiryDate(String expiryDate) { @@ -1120,10 +1014,8 @@ public ResponseAdditionalDataCommon expiryDate(String expiryDate) { } /** - * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. - * - * @return expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a - * card payment. + * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. + * @return expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. */ @JsonProperty(JSON_PROPERTY_EXPIRY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1132,10 +1024,9 @@ public String getExpiryDate() { } /** - * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. + * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. * - * @param expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a - * card payment. + * @param expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. */ @JsonProperty(JSON_PROPERTY_EXPIRY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1144,11 +1035,9 @@ public void setExpiryDate(String expiryDate) { } /** - * The currency of the extra amount charged due to additional amounts set in the skin used in the - * HPP payment request. Example: EUR + * The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR * - * @param extraCostsCurrency The currency of the extra amount charged due to additional amounts - * set in the skin used in the HPP payment request. Example: EUR + * @param extraCostsCurrency The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon extraCostsCurrency(String extraCostsCurrency) { @@ -1157,11 +1046,8 @@ public ResponseAdditionalDataCommon extraCostsCurrency(String extraCostsCurrency } /** - * The currency of the extra amount charged due to additional amounts set in the skin used in the - * HPP payment request. Example: EUR - * - * @return extraCostsCurrency The currency of the extra amount charged due to additional amounts - * set in the skin used in the HPP payment request. Example: EUR + * The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR + * @return extraCostsCurrency The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR */ @JsonProperty(JSON_PROPERTY_EXTRA_COSTS_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1170,11 +1056,9 @@ public String getExtraCostsCurrency() { } /** - * The currency of the extra amount charged due to additional amounts set in the skin used in the - * HPP payment request. Example: EUR + * The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR * - * @param extraCostsCurrency The currency of the extra amount charged due to additional amounts - * set in the skin used in the HPP payment request. Example: EUR + * @param extraCostsCurrency The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR */ @JsonProperty(JSON_PROPERTY_EXTRA_COSTS_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1183,11 +1067,9 @@ public void setExtraCostsCurrency(String extraCostsCurrency) { } /** - * The value of the extra amount charged due to additional amounts set in the skin used in the HPP - * payment request. The amount is in minor units. + * The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. * - * @param extraCostsValue The value of the extra amount charged due to additional amounts set in - * the skin used in the HPP payment request. The amount is in minor units. + * @param extraCostsValue The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon extraCostsValue(String extraCostsValue) { @@ -1196,11 +1078,8 @@ public ResponseAdditionalDataCommon extraCostsValue(String extraCostsValue) { } /** - * The value of the extra amount charged due to additional amounts set in the skin used in the HPP - * payment request. The amount is in minor units. - * - * @return extraCostsValue The value of the extra amount charged due to additional amounts set in - * the skin used in the HPP payment request. The amount is in minor units. + * The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. + * @return extraCostsValue The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. */ @JsonProperty(JSON_PROPERTY_EXTRA_COSTS_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1209,11 +1088,9 @@ public String getExtraCostsValue() { } /** - * The value of the extra amount charged due to additional amounts set in the skin used in the HPP - * payment request. The amount is in minor units. + * The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. * - * @param extraCostsValue The value of the extra amount charged due to additional amounts set in - * the skin used in the HPP payment request. The amount is in minor units. + * @param extraCostsValue The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. */ @JsonProperty(JSON_PROPERTY_EXTRA_COSTS_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1222,25 +1099,19 @@ public void setExtraCostsValue(String extraCostsValue) { } /** - * The fraud score due to a particular fraud check. The fraud check name is found in the key of - * the key-value pair. + * The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. * - * @param fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The - * fraud check name is found in the key of the key-value pair. + * @param fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon fraudCheckItemNrFraudCheckname( - String fraudCheckItemNrFraudCheckname) { + public ResponseAdditionalDataCommon fraudCheckItemNrFraudCheckname(String fraudCheckItemNrFraudCheckname) { this.fraudCheckItemNrFraudCheckname = fraudCheckItemNrFraudCheckname; return this; } /** - * The fraud score due to a particular fraud check. The fraud check name is found in the key of - * the key-value pair. - * - * @return fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The - * fraud check name is found in the key of the key-value pair. + * The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. + * @return fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. */ @JsonProperty(JSON_PROPERTY_FRAUD_CHECK_ITEM_NR_FRAUD_CHECKNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1249,11 +1120,9 @@ public String getFraudCheckItemNrFraudCheckname() { } /** - * The fraud score due to a particular fraud check. The fraud check name is found in the key of - * the key-value pair. + * The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. * - * @param fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The - * fraud check name is found in the key of the key-value pair. + * @param fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. */ @JsonProperty(JSON_PROPERTY_FRAUD_CHECK_ITEM_NR_FRAUD_CHECKNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1274,7 +1143,6 @@ public ResponseAdditionalDataCommon fraudManualReview(String fraudManualReview) /** * Indicates if the payment is sent to manual review. - * * @return fraudManualReview Indicates if the payment is sent to manual review. */ @JsonProperty(JSON_PROPERTY_FRAUD_MANUAL_REVIEW) @@ -1307,7 +1175,6 @@ public ResponseAdditionalDataCommon fraudResultType(FraudResultTypeEnum fraudRes /** * The fraud result properties of the payment. - * * @return fraudResultType The fraud result properties of the payment. */ @JsonProperty(JSON_PROPERTY_FRAUD_RESULT_TYPE) @@ -1328,16 +1195,9 @@ public void setFraudResultType(FraudResultTypeEnum fraudResultType) { } /** - * The risk level of the transaction as classified by the [machine - * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) - * fraud risk rule. The risk level indicates the likelihood that a transaction will result in a - * fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh * - * @param fraudRiskLevel The risk level of the transaction as classified by the [machine - * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) - * fraud risk rule. The risk level indicates the likelihood that a transaction will result in - * a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * - * veryHigh + * @param fraudRiskLevel The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon fraudRiskLevel(FraudRiskLevelEnum fraudRiskLevel) { @@ -1346,16 +1206,8 @@ public ResponseAdditionalDataCommon fraudRiskLevel(FraudRiskLevelEnum fraudRiskL } /** - * The risk level of the transaction as classified by the [machine - * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) - * fraud risk rule. The risk level indicates the likelihood that a transaction will result in a - * fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh - * - * @return fraudRiskLevel The risk level of the transaction as classified by the [machine - * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) - * fraud risk rule. The risk level indicates the likelihood that a transaction will result in - * a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * - * veryHigh + * The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * @return fraudRiskLevel The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh */ @JsonProperty(JSON_PROPERTY_FRAUD_RISK_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1364,16 +1216,9 @@ public FraudRiskLevelEnum getFraudRiskLevel() { } /** - * The risk level of the transaction as classified by the [machine - * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) - * fraud risk rule. The risk level indicates the likelihood that a transaction will result in a - * fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh * - * @param fraudRiskLevel The risk level of the transaction as classified by the [machine - * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) - * fraud risk rule. The risk level indicates the likelihood that a transaction will result in - * a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * - * veryHigh + * @param fraudRiskLevel The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh */ @JsonProperty(JSON_PROPERTY_FRAUD_RISK_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1382,18 +1227,9 @@ public void setFraudRiskLevel(FraudRiskLevelEnum fraudRiskLevel) { } /** - * Information regarding the funding type of the card. The possible return values are: * CHARGE * - * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > - * This functionality requires additional configuration on Adyen's end. To enable it, contact - * the Support Team. For receiving this field in the notification, enable **Include Funding - * Source** in **Notifications** > **Additional settings**. + * Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. * - * @param fundingSource Information regarding the funding type of the card. The possible return - * values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * - * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional - * configuration on Adyen's end. To enable it, contact the Support Team. For receiving - * this field in the notification, enable **Include Funding Source** in **Notifications** > - * **Additional settings**. + * @param fundingSource Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon fundingSource(String fundingSource) { @@ -1402,18 +1238,8 @@ public ResponseAdditionalDataCommon fundingSource(String fundingSource) { } /** - * Information regarding the funding type of the card. The possible return values are: * CHARGE * - * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > - * This functionality requires additional configuration on Adyen's end. To enable it, contact - * the Support Team. For receiving this field in the notification, enable **Include Funding - * Source** in **Notifications** > **Additional settings**. - * - * @return fundingSource Information regarding the funding type of the card. The possible return - * values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * - * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional - * configuration on Adyen's end. To enable it, contact the Support Team. For receiving - * this field in the notification, enable **Include Funding Source** in **Notifications** > - * **Additional settings**. + * Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. + * @return fundingSource Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1422,18 +1248,9 @@ public String getFundingSource() { } /** - * Information regarding the funding type of the card. The possible return values are: * CHARGE * - * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > - * This functionality requires additional configuration on Adyen's end. To enable it, contact - * the Support Team. For receiving this field in the notification, enable **Include Funding - * Source** in **Notifications** > **Additional settings**. + * Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. * - * @param fundingSource Information regarding the funding type of the card. The possible return - * values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * - * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional - * configuration on Adyen's end. To enable it, contact the Support Team. For receiving - * this field in the notification, enable **Include Funding Source** in **Notifications** > - * **Additional settings**. + * @param fundingSource Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1442,17 +1259,9 @@ public void setFundingSource(String fundingSource) { } /** - * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * - * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or - * issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you - * verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or - * \"D\". + * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". * - * @param fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds - * are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is - * Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) - * > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is - * \"Y\" or \"D\". + * @param fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon fundsAvailability(String fundsAvailability) { @@ -1461,17 +1270,8 @@ public ResponseAdditionalDataCommon fundsAvailability(String fundsAvailability) } /** - * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * - * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or - * issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you - * verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or - * \"D\". - * - * @return fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds - * are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is - * Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) - * > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is - * \"Y\" or \"D\". + * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". + * @return fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". */ @JsonProperty(JSON_PROPERTY_FUNDS_AVAILABILITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1480,17 +1280,9 @@ public String getFundsAvailability() { } /** - * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * - * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or - * issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you - * verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or - * \"D\". + * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". * - * @param fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds - * are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is - * Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) - * > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is - * \"Y\" or \"D\". + * @param fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". */ @JsonProperty(JSON_PROPERTY_FUNDS_AVAILABILITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1499,26 +1291,9 @@ public void setFundsAvailability(String fundsAvailability) { } /** - * Provides the more granular indication of why a transaction was refused. When a transaction - * fails with either \"Refused\", \"Restricted Card\", \"Transaction Not - * Permitted\", \"Not supported\" or \"DeclinedNon Generic\" - * refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into - * the refusal reason. If an inferred refusal reason is available, the - * `inferredRefusalReason`, field is populated and the `refusalReason`, is set - * to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * - * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * - * Card Updated * Low Authrate Bin * Non-reloadable prepaid card - * - * @param inferredRefusalReason Provides the more granular indication of why a transaction was - * refused. When a transaction fails with either \"Refused\", \"Restricted - * Card\", \"Transaction Not Permitted\", \"Not supported\" or - * \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its - * PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is - * available, the `inferredRefusalReason`, field is populated and the - * `refusalReason`, is set to \"Not Supported\". Possible values: * 3D - * Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not - * Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable - * prepaid card + * Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card + * + * @param inferredRefusalReason Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon inferredRefusalReason(String inferredRefusalReason) { @@ -1527,26 +1302,8 @@ public ResponseAdditionalDataCommon inferredRefusalReason(String inferredRefusal } /** - * Provides the more granular indication of why a transaction was refused. When a transaction - * fails with either \"Refused\", \"Restricted Card\", \"Transaction Not - * Permitted\", \"Not supported\" or \"DeclinedNon Generic\" - * refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into - * the refusal reason. If an inferred refusal reason is available, the - * `inferredRefusalReason`, field is populated and the `refusalReason`, is set - * to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * - * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * - * Card Updated * Low Authrate Bin * Non-reloadable prepaid card - * - * @return inferredRefusalReason Provides the more granular indication of why a transaction was - * refused. When a transaction fails with either \"Refused\", \"Restricted - * Card\", \"Transaction Not Permitted\", \"Not supported\" or - * \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its - * PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is - * available, the `inferredRefusalReason`, field is populated and the - * `refusalReason`, is set to \"Not Supported\". Possible values: * 3D - * Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not - * Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable - * prepaid card + * Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card + * @return inferredRefusalReason Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card */ @JsonProperty(JSON_PROPERTY_INFERRED_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1555,26 +1312,9 @@ public String getInferredRefusalReason() { } /** - * Provides the more granular indication of why a transaction was refused. When a transaction - * fails with either \"Refused\", \"Restricted Card\", \"Transaction Not - * Permitted\", \"Not supported\" or \"DeclinedNon Generic\" - * refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into - * the refusal reason. If an inferred refusal reason is available, the - * `inferredRefusalReason`, field is populated and the `refusalReason`, is set - * to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * - * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * - * Card Updated * Low Authrate Bin * Non-reloadable prepaid card - * - * @param inferredRefusalReason Provides the more granular indication of why a transaction was - * refused. When a transaction fails with either \"Refused\", \"Restricted - * Card\", \"Transaction Not Permitted\", \"Not supported\" or - * \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its - * PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is - * available, the `inferredRefusalReason`, field is populated and the - * `refusalReason`, is set to \"Not Supported\". Possible values: * 3D - * Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not - * Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable - * prepaid card + * Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card + * + * @param inferredRefusalReason Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card */ @JsonProperty(JSON_PROPERTY_INFERRED_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1595,7 +1335,6 @@ public ResponseAdditionalDataCommon isCardCommercial(String isCardCommercial) { /** * Indicates if the card is used for business purposes only. - * * @return isCardCommercial Indicates if the card is used for business purposes only. */ @JsonProperty(JSON_PROPERTY_IS_CARD_COMMERCIAL) @@ -1616,10 +1355,9 @@ public void setIsCardCommercial(String isCardCommercial) { } /** - * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP + * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP * - * @param issuerCountry The issuing country of the card based on the BIN list that Adyen - * maintains. Example: JP + * @param issuerCountry The issuing country of the card based on the BIN list that Adyen maintains. Example: JP * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon issuerCountry(String issuerCountry) { @@ -1628,10 +1366,8 @@ public ResponseAdditionalDataCommon issuerCountry(String issuerCountry) { } /** - * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP - * - * @return issuerCountry The issuing country of the card based on the BIN list that Adyen - * maintains. Example: JP + * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP + * @return issuerCountry The issuing country of the card based on the BIN list that Adyen maintains. Example: JP */ @JsonProperty(JSON_PROPERTY_ISSUER_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1640,10 +1376,9 @@ public String getIssuerCountry() { } /** - * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP + * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP * - * @param issuerCountry The issuing country of the card based on the BIN list that Adyen - * maintains. Example: JP + * @param issuerCountry The issuing country of the card based on the BIN list that Adyen maintains. Example: JP */ @JsonProperty(JSON_PROPERTY_ISSUER_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1654,8 +1389,7 @@ public void setIssuerCountry(String issuerCountry) { /** * A Boolean value indicating whether a liability shift was offered for this payment. * - * @param liabilityShift A Boolean value indicating whether a liability shift was offered for this - * payment. + * @param liabilityShift A Boolean value indicating whether a liability shift was offered for this payment. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon liabilityShift(String liabilityShift) { @@ -1665,9 +1399,7 @@ public ResponseAdditionalDataCommon liabilityShift(String liabilityShift) { /** * A Boolean value indicating whether a liability shift was offered for this payment. - * - * @return liabilityShift A Boolean value indicating whether a liability shift was offered for - * this payment. + * @return liabilityShift A Boolean value indicating whether a liability shift was offered for this payment. */ @JsonProperty(JSON_PROPERTY_LIABILITY_SHIFT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1678,8 +1410,7 @@ public String getLiabilityShift() { /** * A Boolean value indicating whether a liability shift was offered for this payment. * - * @param liabilityShift A Boolean value indicating whether a liability shift was offered for this - * payment. + * @param liabilityShift A Boolean value indicating whether a liability shift was offered for this payment. */ @JsonProperty(JSON_PROPERTY_LIABILITY_SHIFT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1688,12 +1419,9 @@ public void setLiabilityShift(String liabilityShift) { } /** - * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine - * characters long. > Contact Support Team to enable this field. + * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. * - * @param mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six - * characters and a maximum of nine characters long. > Contact Support Team to enable this - * field. + * @param mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon mcBankNetReferenceNumber(String mcBankNetReferenceNumber) { @@ -1702,12 +1430,8 @@ public ResponseAdditionalDataCommon mcBankNetReferenceNumber(String mcBankNetRef } /** - * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine - * characters long. > Contact Support Team to enable this field. - * - * @return mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six - * characters and a maximum of nine characters long. > Contact Support Team to enable this - * field. + * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. + * @return mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. */ @JsonProperty(JSON_PROPERTY_MC_BANK_NET_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1716,12 +1440,9 @@ public String getMcBankNetReferenceNumber() { } /** - * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine - * characters long. > Contact Support Team to enable this field. + * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. * - * @param mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six - * characters and a maximum of nine characters long. > Contact Support Team to enable this - * field. + * @param mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. */ @JsonProperty(JSON_PROPERTY_MC_BANK_NET_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1730,15 +1451,9 @@ public void setMcBankNetReferenceNumber(String mcBankNetReferenceNumber) { } /** - * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If - * present, the MAC contains information about why the payment failed, and whether it can be - * retried. For more information see [Mastercard Merchant Advice - * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). * - * @param merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers - * for refused payments. If present, the MAC contains information about why the payment - * failed, and whether it can be retried. For more information see [Mastercard Merchant Advice - * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * @param merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon merchantAdviceCode(String merchantAdviceCode) { @@ -1747,15 +1462,8 @@ public ResponseAdditionalDataCommon merchantAdviceCode(String merchantAdviceCode } /** - * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If - * present, the MAC contains information about why the payment failed, and whether it can be - * retried. For more information see [Mastercard Merchant Advice - * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). - * - * @return merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers - * for refused payments. If present, the MAC contains information about why the payment - * failed, and whether it can be retried. For more information see [Mastercard Merchant Advice - * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * @return merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). */ @JsonProperty(JSON_PROPERTY_MERCHANT_ADVICE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1764,15 +1472,9 @@ public String getMerchantAdviceCode() { } /** - * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If - * present, the MAC contains information about why the payment failed, and whether it can be - * retried. For more information see [Mastercard Merchant Advice - * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). * - * @param merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers - * for refused payments. If present, the MAC contains information about why the payment - * failed, and whether it can be retried. For more information see [Mastercard Merchant Advice - * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * @param merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). */ @JsonProperty(JSON_PROPERTY_MERCHANT_ADVICE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1793,7 +1495,6 @@ public ResponseAdditionalDataCommon merchantReference(String merchantReference) /** * The reference provided for the transaction. - * * @return merchantReference The reference provided for the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCE) @@ -1814,13 +1515,9 @@ public void setMerchantReference(String merchantReference) { } /** - * Returned in the response if you are not tokenizing with Adyen and are using the - * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either - * the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. * - * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are - * using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This - * contains either the Mastercard Trace ID or the Visa Transaction ID. + * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon networkTxReference(String networkTxReference) { @@ -1829,13 +1526,8 @@ public ResponseAdditionalDataCommon networkTxReference(String networkTxReference } /** - * Returned in the response if you are not tokenizing with Adyen and are using the - * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either - * the Mastercard Trace ID or the Visa Transaction ID. - * - * @return networkTxReference Returned in the response if you are not tokenizing with Adyen and - * are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This - * contains either the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * @return networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. */ @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1844,13 +1536,9 @@ public String getNetworkTxReference() { } /** - * Returned in the response if you are not tokenizing with Adyen and are using the - * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either - * the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. * - * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are - * using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This - * contains either the Mastercard Trace ID or the Visa Transaction ID. + * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. */ @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1859,10 +1547,9 @@ public void setNetworkTxReference(String networkTxReference) { } /** - * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. + * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. * - * @param ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit - * transactions. + * @param ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon ownerName(String ownerName) { @@ -1871,10 +1558,8 @@ public ResponseAdditionalDataCommon ownerName(String ownerName) { } /** - * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. - * - * @return ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit - * transactions. + * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. + * @return ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1883,10 +1568,9 @@ public String getOwnerName() { } /** - * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. + * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. * - * @param ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit - * transactions. + * @param ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1895,12 +1579,9 @@ public void setOwnerName(String ownerName) { } /** - * The Payment Account Reference (PAR) value links a network token with the underlying primary - * account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. + * The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. * - * @param paymentAccountReference The Payment Account Reference (PAR) value links a network token - * with the underlying primary account number (PAN). The PAR value consists of 29 uppercase - * alphanumeric characters. + * @param paymentAccountReference The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon paymentAccountReference(String paymentAccountReference) { @@ -1909,12 +1590,8 @@ public ResponseAdditionalDataCommon paymentAccountReference(String paymentAccoun } /** - * The Payment Account Reference (PAR) value links a network token with the underlying primary - * account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. - * - * @return paymentAccountReference The Payment Account Reference (PAR) value links a network token - * with the underlying primary account number (PAN). The PAR value consists of 29 uppercase - * alphanumeric characters. + * The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. + * @return paymentAccountReference The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACCOUNT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1923,12 +1600,9 @@ public String getPaymentAccountReference() { } /** - * The Payment Account Reference (PAR) value links a network token with the underlying primary - * account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. + * The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. * - * @param paymentAccountReference The Payment Account Reference (PAR) value links a network token - * with the underlying primary account number (PAN). The PAR value consists of 29 uppercase - * alphanumeric characters. + * @param paymentAccountReference The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACCOUNT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1949,7 +1623,6 @@ public ResponseAdditionalDataCommon paymentMethod(String paymentMethod) { /** * The payment method used in the transaction. - * * @return paymentMethod The payment method used in the transaction. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @@ -1970,15 +1643,9 @@ public void setPaymentMethod(String paymentMethod) { } /** - * The Adyen sub-variant of the payment method used for the payment request. For more information, - * refer to - * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). - * Example: mcpro + * The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro * - * @param paymentMethodVariant The Adyen sub-variant of the payment method used for the payment - * request. For more information, refer to - * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). - * Example: mcpro + * @param paymentMethodVariant The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon paymentMethodVariant(String paymentMethodVariant) { @@ -1987,15 +1654,8 @@ public ResponseAdditionalDataCommon paymentMethodVariant(String paymentMethodVar } /** - * The Adyen sub-variant of the payment method used for the payment request. For more information, - * refer to - * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). - * Example: mcpro - * - * @return paymentMethodVariant The Adyen sub-variant of the payment method used for the payment - * request. For more information, refer to - * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). - * Example: mcpro + * The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro + * @return paymentMethodVariant The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2004,15 +1664,9 @@ public String getPaymentMethodVariant() { } /** - * The Adyen sub-variant of the payment method used for the payment request. For more information, - * refer to - * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). - * Example: mcpro + * The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro * - * @param paymentMethodVariant The Adyen sub-variant of the payment method used for the payment - * request. For more information, refer to - * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). - * Example: mcpro + * @param paymentMethodVariant The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2021,14 +1675,9 @@ public void setPaymentMethodVariant(String paymentMethodVariant) { } /** - * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * - * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" - * (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) + * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) * - * @param payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * - * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) - * * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" - * (unknown) + * @param payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon payoutEligible(String payoutEligible) { @@ -2037,14 +1686,8 @@ public ResponseAdditionalDataCommon payoutEligible(String payoutEligible) { } /** - * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * - * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" - * (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) - * - * @return payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * - * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) - * * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" - * (unknown) + * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) + * @return payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) */ @JsonProperty(JSON_PROPERTY_PAYOUT_ELIGIBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2053,14 +1696,9 @@ public String getPayoutEligible() { } /** - * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * - * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" - * (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) + * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) * - * @param payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * - * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) - * * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" - * (unknown) + * @param payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) */ @JsonProperty(JSON_PROPERTY_PAYOUT_ELIGIBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2069,27 +1707,19 @@ public void setPayoutEligible(String payoutEligible) { } /** - * The response code from the Real Time Account Updater service. Possible return values are: * - * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder + * The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder * - * @param realtimeAccountUpdaterStatus The response code from the Real Time Account Updater - * service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * - * ContactCardAccountHolder + * @param realtimeAccountUpdaterStatus The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon realtimeAccountUpdaterStatus( - String realtimeAccountUpdaterStatus) { + public ResponseAdditionalDataCommon realtimeAccountUpdaterStatus(String realtimeAccountUpdaterStatus) { this.realtimeAccountUpdaterStatus = realtimeAccountUpdaterStatus; return this; } /** - * The response code from the Real Time Account Updater service. Possible return values are: * - * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder - * - * @return realtimeAccountUpdaterStatus The response code from the Real Time Account Updater - * service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * - * ContactCardAccountHolder + * The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder + * @return realtimeAccountUpdaterStatus The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder */ @JsonProperty(JSON_PROPERTY_REALTIME_ACCOUNT_UPDATER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2098,12 +1728,9 @@ public String getRealtimeAccountUpdaterStatus() { } /** - * The response code from the Real Time Account Updater service. Possible return values are: * - * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder + * The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder * - * @param realtimeAccountUpdaterStatus The response code from the Real Time Account Updater - * service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * - * ContactCardAccountHolder + * @param realtimeAccountUpdaterStatus The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder */ @JsonProperty(JSON_PROPERTY_REALTIME_ACCOUNT_UPDATER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2124,7 +1751,6 @@ public ResponseAdditionalDataCommon receiptFreeText(String receiptFreeText) { /** * Message to be displayed on the terminal. - * * @return receiptFreeText Message to be displayed on the terminal. */ @JsonProperty(JSON_PROPERTY_RECEIPT_FREE_TEXT) @@ -2157,7 +1783,6 @@ public ResponseAdditionalDataCommon recurringContractTypes(String recurringContr /** * The recurring contract types applicable to the transaction. - * * @return recurringContractTypes The recurring contract types applicable to the transaction. */ @JsonProperty(JSON_PROPERTY_RECURRING_CONTRACT_TYPES) @@ -2178,29 +1803,19 @@ public void setRecurringContractTypes(String recurringContractTypes) { } /** - * The `pspReference`, of the first recurring payment that created the recurring detail. - * This functionality requires additional configuration on Adyen's end. To enable it, contact - * the Support Team. + * The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. * - * @param recurringFirstPspReference The `pspReference`, of the first recurring payment - * that created the recurring detail. This functionality requires additional configuration on - * Adyen's end. To enable it, contact the Support Team. + * @param recurringFirstPspReference The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon recurringFirstPspReference( - String recurringFirstPspReference) { + public ResponseAdditionalDataCommon recurringFirstPspReference(String recurringFirstPspReference) { this.recurringFirstPspReference = recurringFirstPspReference; return this; } /** - * The `pspReference`, of the first recurring payment that created the recurring detail. - * This functionality requires additional configuration on Adyen's end. To enable it, contact - * the Support Team. - * - * @return recurringFirstPspReference The `pspReference`, of the first recurring payment - * that created the recurring detail. This functionality requires additional configuration on - * Adyen's end. To enable it, contact the Support Team. + * The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. + * @return recurringFirstPspReference The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. */ @JsonProperty(JSON_PROPERTY_RECURRING_FIRST_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2209,13 +1824,9 @@ public String getRecurringFirstPspReference() { } /** - * The `pspReference`, of the first recurring payment that created the recurring detail. - * This functionality requires additional configuration on Adyen's end. To enable it, contact - * the Support Team. + * The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. * - * @param recurringFirstPspReference The `pspReference`, of the first recurring payment - * that created the recurring detail. This functionality requires additional configuration on - * Adyen's end. To enable it, contact the Support Team. + * @param recurringFirstPspReference The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. */ @JsonProperty(JSON_PROPERTY_RECURRING_FIRST_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2226,29 +1837,24 @@ public void setRecurringFirstPspReference(String recurringFirstPspReference) { /** * The reference that uniquely identifies the recurring transaction. * - * @param recurringRecurringDetailReference The reference that uniquely identifies the recurring - * transaction. + * @param recurringRecurringDetailReference The reference that uniquely identifies the recurring transaction. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining - * @deprecated since Adyen Payment API v68 Use tokenization.storedPaymentMethodId instead. + * + * @deprecated since Adyen Payment API v68 + * Use tokenization.storedPaymentMethodId instead. */ - @Deprecated // deprecated since Adyen Payment API v68: Use tokenization.storedPaymentMethodId - // instead. - public ResponseAdditionalDataCommon recurringRecurringDetailReference( - String recurringRecurringDetailReference) { + @Deprecated // deprecated since Adyen Payment API v68: Use tokenization.storedPaymentMethodId instead. + public ResponseAdditionalDataCommon recurringRecurringDetailReference(String recurringRecurringDetailReference) { this.recurringRecurringDetailReference = recurringRecurringDetailReference; return this; } /** * The reference that uniquely identifies the recurring transaction. - * - * @return recurringRecurringDetailReference The reference that uniquely identifies the recurring - * transaction. - * @deprecated // deprecated since Adyen Payment API v68: Use tokenization.storedPaymentMethodId - * instead. + * @return recurringRecurringDetailReference The reference that uniquely identifies the recurring transaction. + * @deprecated // deprecated since Adyen Payment API v68: Use tokenization.storedPaymentMethodId instead. */ - @Deprecated // deprecated since Adyen Payment API v68: Use tokenization.storedPaymentMethodId - // instead. + @Deprecated // deprecated since Adyen Payment API v68: Use tokenization.storedPaymentMethodId instead. @JsonProperty(JSON_PROPERTY_RECURRING_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringRecurringDetailReference() { @@ -2258,12 +1864,12 @@ public String getRecurringRecurringDetailReference() { /** * The reference that uniquely identifies the recurring transaction. * - * @param recurringRecurringDetailReference The reference that uniquely identifies the recurring - * transaction. - * @deprecated since Adyen Payment API v68 Use tokenization.storedPaymentMethodId instead. + * @param recurringRecurringDetailReference The reference that uniquely identifies the recurring transaction. + * + * @deprecated since Adyen Payment API v68 + * Use tokenization.storedPaymentMethodId instead. */ - @Deprecated // deprecated since Adyen Payment API v68: Use tokenization.storedPaymentMethodId - // instead. + @Deprecated // deprecated since Adyen Payment API v68: Use tokenization.storedPaymentMethodId instead. @JsonProperty(JSON_PROPERTY_RECURRING_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringRecurringDetailReference(String recurringRecurringDetailReference) { @@ -2273,10 +1879,11 @@ public void setRecurringRecurringDetailReference(String recurringRecurringDetail /** * The provided reference of the shopper for a recurring transaction. * - * @param recurringShopperReference The provided reference of the shopper for a recurring - * transaction. + * @param recurringShopperReference The provided reference of the shopper for a recurring transaction. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining - * @deprecated since Adyen Payment API v68 Use tokenization.shopperReference instead. + * + * @deprecated since Adyen Payment API v68 + * Use tokenization.shopperReference instead. */ @Deprecated // deprecated since Adyen Payment API v68: Use tokenization.shopperReference instead. public ResponseAdditionalDataCommon recurringShopperReference(String recurringShopperReference) { @@ -2286,11 +1893,8 @@ public ResponseAdditionalDataCommon recurringShopperReference(String recurringSh /** * The provided reference of the shopper for a recurring transaction. - * - * @return recurringShopperReference The provided reference of the shopper for a recurring - * transaction. - * @deprecated // deprecated since Adyen Payment API v68: Use tokenization.shopperReference - * instead. + * @return recurringShopperReference The provided reference of the shopper for a recurring transaction. + * @deprecated // deprecated since Adyen Payment API v68: Use tokenization.shopperReference instead. */ @Deprecated // deprecated since Adyen Payment API v68: Use tokenization.shopperReference instead. @JsonProperty(JSON_PROPERTY_RECURRING_SHOPPER_REFERENCE) @@ -2302,9 +1906,10 @@ public String getRecurringShopperReference() { /** * The provided reference of the shopper for a recurring transaction. * - * @param recurringShopperReference The provided reference of the shopper for a recurring - * transaction. - * @deprecated since Adyen Payment API v68 Use tokenization.shopperReference instead. + * @param recurringShopperReference The provided reference of the shopper for a recurring transaction. + * + * @deprecated since Adyen Payment API v68 + * Use tokenization.shopperReference instead. */ @Deprecated // deprecated since Adyen Payment API v68: Use tokenization.shopperReference instead. @JsonProperty(JSON_PROPERTY_RECURRING_SHOPPER_REFERENCE) @@ -2319,15 +1924,13 @@ public void setRecurringShopperReference(String recurringShopperReference) { * @param recurringProcessingModel The processing model used for the recurring transaction. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon recurringProcessingModel( - RecurringProcessingModelEnum recurringProcessingModel) { + public ResponseAdditionalDataCommon recurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) { this.recurringProcessingModel = recurringProcessingModel; return this; } /** * The processing model used for the recurring transaction. - * * @return recurringProcessingModel The processing model used for the recurring transaction. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @@ -2348,12 +1951,9 @@ public void setRecurringProcessingModel(RecurringProcessingModelEnum recurringPr } /** - * If the payment is referred, this field is set to true. This field is unavailable if the payment - * is referred and is usually not returned with ecommerce transactions. Example: true + * If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true * - * @param referred If the payment is referred, this field is set to true. This field is - * unavailable if the payment is referred and is usually not returned with ecommerce - * transactions. Example: true + * @param referred If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon referred(String referred) { @@ -2362,12 +1962,8 @@ public ResponseAdditionalDataCommon referred(String referred) { } /** - * If the payment is referred, this field is set to true. This field is unavailable if the payment - * is referred and is usually not returned with ecommerce transactions. Example: true - * - * @return referred If the payment is referred, this field is set to true. This field is - * unavailable if the payment is referred and is usually not returned with ecommerce - * transactions. Example: true + * If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true + * @return referred If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true */ @JsonProperty(JSON_PROPERTY_REFERRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2376,12 +1972,9 @@ public String getReferred() { } /** - * If the payment is referred, this field is set to true. This field is unavailable if the payment - * is referred and is usually not returned with ecommerce transactions. Example: true + * If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true * - * @param referred If the payment is referred, this field is set to true. This field is - * unavailable if the payment is referred and is usually not returned with ecommerce - * transactions. Example: true + * @param referred If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true */ @JsonProperty(JSON_PROPERTY_REFERRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2390,10 +1983,9 @@ public void setReferred(String referred) { } /** - * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED + * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED * - * @param refusalReasonRaw Raw refusal reason received from the acquirer, where available. - * Example: AUTHORISED + * @param refusalReasonRaw Raw refusal reason received from the acquirer, where available. Example: AUTHORISED * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon refusalReasonRaw(String refusalReasonRaw) { @@ -2402,10 +1994,8 @@ public ResponseAdditionalDataCommon refusalReasonRaw(String refusalReasonRaw) { } /** - * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED - * - * @return refusalReasonRaw Raw refusal reason received from the acquirer, where available. - * Example: AUTHORISED + * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED + * @return refusalReasonRaw Raw refusal reason received from the acquirer, where available. Example: AUTHORISED */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2414,10 +2004,9 @@ public String getRefusalReasonRaw() { } /** - * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED + * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED * - * @param refusalReasonRaw Raw refusal reason received from the acquirer, where available. - * Example: AUTHORISED + * @param refusalReasonRaw Raw refusal reason received from the acquirer, where available. Example: AUTHORISED */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2438,7 +2027,6 @@ public ResponseAdditionalDataCommon requestAmount(String requestAmount) { /** * The amount of the payment request. - * * @return requestAmount The amount of the payment request. */ @JsonProperty(JSON_PROPERTY_REQUEST_AMOUNT) @@ -2471,7 +2059,6 @@ public ResponseAdditionalDataCommon requestCurrencyCode(String requestCurrencyCo /** * The currency of the payment request. - * * @return requestCurrencyCode The currency of the payment request. */ @JsonProperty(JSON_PROPERTY_REQUEST_CURRENCY_CODE) @@ -2492,10 +2079,9 @@ public void setRequestCurrencyCode(String requestCurrencyCode) { } /** - * The shopper interaction type of the payment request. Example: Ecommerce + * The shopper interaction type of the payment request. Example: Ecommerce * - * @param shopperInteraction The shopper interaction type of the payment request. Example: - * Ecommerce + * @param shopperInteraction The shopper interaction type of the payment request. Example: Ecommerce * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon shopperInteraction(String shopperInteraction) { @@ -2504,10 +2090,8 @@ public ResponseAdditionalDataCommon shopperInteraction(String shopperInteraction } /** - * The shopper interaction type of the payment request. Example: Ecommerce - * - * @return shopperInteraction The shopper interaction type of the payment request. Example: - * Ecommerce + * The shopper interaction type of the payment request. Example: Ecommerce + * @return shopperInteraction The shopper interaction type of the payment request. Example: Ecommerce */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2516,10 +2100,9 @@ public String getShopperInteraction() { } /** - * The shopper interaction type of the payment request. Example: Ecommerce + * The shopper interaction type of the payment request. Example: Ecommerce * - * @param shopperInteraction The shopper interaction type of the payment request. Example: - * Ecommerce + * @param shopperInteraction The shopper interaction type of the payment request. Example: Ecommerce */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2528,10 +2111,9 @@ public void setShopperInteraction(String shopperInteraction) { } /** - * The shopperReference passed in the payment request. Example: AdyenTestShopperXX + * The shopperReference passed in the payment request. Example: AdyenTestShopperXX * - * @param shopperReference The shopperReference passed in the payment request. Example: - * AdyenTestShopperXX + * @param shopperReference The shopperReference passed in the payment request. Example: AdyenTestShopperXX * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon shopperReference(String shopperReference) { @@ -2540,10 +2122,8 @@ public ResponseAdditionalDataCommon shopperReference(String shopperReference) { } /** - * The shopperReference passed in the payment request. Example: AdyenTestShopperXX - * - * @return shopperReference The shopperReference passed in the payment request. Example: - * AdyenTestShopperXX + * The shopperReference passed in the payment request. Example: AdyenTestShopperXX + * @return shopperReference The shopperReference passed in the payment request. Example: AdyenTestShopperXX */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2552,10 +2132,9 @@ public String getShopperReference() { } /** - * The shopperReference passed in the payment request. Example: AdyenTestShopperXX + * The shopperReference passed in the payment request. Example: AdyenTestShopperXX * - * @param shopperReference The shopperReference passed in the payment request. Example: - * AdyenTestShopperXX + * @param shopperReference The shopperReference passed in the payment request. Example: AdyenTestShopperXX */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2564,9 +2143,9 @@ public void setShopperReference(String shopperReference) { } /** - * The terminal ID used in a point-of-sale payment. Example: 06022622 + * The terminal ID used in a point-of-sale payment. Example: 06022622 * - * @param terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 + * @param terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon terminalId(String terminalId) { @@ -2575,9 +2154,8 @@ public ResponseAdditionalDataCommon terminalId(String terminalId) { } /** - * The terminal ID used in a point-of-sale payment. Example: 06022622 - * - * @return terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 + * The terminal ID used in a point-of-sale payment. Example: 06022622 + * @return terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 */ @JsonProperty(JSON_PROPERTY_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2586,9 +2164,9 @@ public String getTerminalId() { } /** - * The terminal ID used in a point-of-sale payment. Example: 06022622 + * The terminal ID used in a point-of-sale payment. Example: 06022622 * - * @param terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 + * @param terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 */ @JsonProperty(JSON_PROPERTY_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2597,11 +2175,9 @@ public void setTerminalId(String terminalId) { } /** - * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: - * true + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true * - * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed - * on this payment. Example: true + * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon threeDAuthenticated(String threeDAuthenticated) { @@ -2610,11 +2186,8 @@ public ResponseAdditionalDataCommon threeDAuthenticated(String threeDAuthenticat } /** - * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: - * true - * - * @return threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed - * on this payment. Example: true + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + * @return threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2623,11 +2196,9 @@ public String getThreeDAuthenticated() { } /** - * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: - * true + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true * - * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed - * on this payment. Example: true + * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2636,23 +2207,19 @@ public void setThreeDAuthenticated(String threeDAuthenticated) { } /** - * The raw 3DS authentication result from the card issuer. Example: N + * The raw 3DS authentication result from the card issuer. Example: N * - * @param threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. - * Example: N + * @param threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. Example: N * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon threeDAuthenticatedResponse( - String threeDAuthenticatedResponse) { + public ResponseAdditionalDataCommon threeDAuthenticatedResponse(String threeDAuthenticatedResponse) { this.threeDAuthenticatedResponse = threeDAuthenticatedResponse; return this; } /** - * The raw 3DS authentication result from the card issuer. Example: N - * - * @return threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. - * Example: N + * The raw 3DS authentication result from the card issuer. Example: N + * @return threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. Example: N */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2661,10 +2228,9 @@ public String getThreeDAuthenticatedResponse() { } /** - * The raw 3DS authentication result from the card issuer. Example: N + * The raw 3DS authentication result from the card issuer. Example: N * - * @param threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. - * Example: N + * @param threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. Example: N */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2673,10 +2239,9 @@ public void setThreeDAuthenticatedResponse(String threeDAuthenticatedResponse) { } /** - * A Boolean value indicating whether 3DS was offered for this payment. Example: true + * A Boolean value indicating whether 3DS was offered for this payment. Example: true * - * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. - * Example: true + * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. Example: true * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon threeDOffered(String threeDOffered) { @@ -2685,10 +2250,8 @@ public ResponseAdditionalDataCommon threeDOffered(String threeDOffered) { } /** - * A Boolean value indicating whether 3DS was offered for this payment. Example: true - * - * @return threeDOffered A Boolean value indicating whether 3DS was offered for this payment. - * Example: true + * A Boolean value indicating whether 3DS was offered for this payment. Example: true + * @return threeDOffered A Boolean value indicating whether 3DS was offered for this payment. Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2697,10 +2260,9 @@ public String getThreeDOffered() { } /** - * A Boolean value indicating whether 3DS was offered for this payment. Example: true + * A Boolean value indicating whether 3DS was offered for this payment. Example: true * - * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. - * Example: true + * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2709,10 +2271,9 @@ public void setThreeDOffered(String threeDOffered) { } /** - * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y + * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y * - * @param threeDOfferedResponse The raw enrollment result from the 3DS directory services of the - * card schemes. Example: Y + * @param threeDOfferedResponse The raw enrollment result from the 3DS directory services of the card schemes. Example: Y * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon threeDOfferedResponse(String threeDOfferedResponse) { @@ -2721,10 +2282,8 @@ public ResponseAdditionalDataCommon threeDOfferedResponse(String threeDOfferedRe } /** - * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y - * - * @return threeDOfferedResponse The raw enrollment result from the 3DS directory services of the - * card schemes. Example: Y + * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y + * @return threeDOfferedResponse The raw enrollment result from the 3DS directory services of the card schemes. Example: Y */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2733,10 +2292,9 @@ public String getThreeDOfferedResponse() { } /** - * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y + * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y * - * @param threeDOfferedResponse The raw enrollment result from the 3DS directory services of the - * card schemes. Example: Y + * @param threeDOfferedResponse The raw enrollment result from the 3DS directory services of the card schemes. Example: Y */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2757,7 +2315,6 @@ public ResponseAdditionalDataCommon threeDSVersion(String threeDSVersion) { /** * The 3D Secure 2 version. - * * @return threeDSVersion The 3D Secure 2 version. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_VERSION) @@ -2780,21 +2337,17 @@ public void setThreeDSVersion(String threeDSVersion) { /** * The reference for the shopper that you sent when tokenizing the payment details. * - * @param tokenizationShopperReference The reference for the shopper that you sent when tokenizing - * the payment details. + * @param tokenizationShopperReference The reference for the shopper that you sent when tokenizing the payment details. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon tokenizationShopperReference( - String tokenizationShopperReference) { + public ResponseAdditionalDataCommon tokenizationShopperReference(String tokenizationShopperReference) { this.tokenizationShopperReference = tokenizationShopperReference; return this; } /** * The reference for the shopper that you sent when tokenizing the payment details. - * - * @return tokenizationShopperReference The reference for the shopper that you sent when - * tokenizing the payment details. + * @return tokenizationShopperReference The reference for the shopper that you sent when tokenizing the payment details. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2805,8 +2358,7 @@ public String getTokenizationShopperReference() { /** * The reference for the shopper that you sent when tokenizing the payment details. * - * @param tokenizationShopperReference The reference for the shopper that you sent when tokenizing - * the payment details. + * @param tokenizationShopperReference The reference for the shopper that you sent when tokenizing the payment details. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2815,29 +2367,19 @@ public void setTokenizationShopperReference(String tokenizationShopperReference) } /** - * The operation performed on the token. Possible values: * **created**: the token has been - * created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details - * have already been stored. + * The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. * - * @param tokenizationStoreOperationType The operation performed on the token. Possible values: * - * **created**: the token has been created. * **updated**: the existing token has been - * updated. * **alreadyExisting**: the details have already been stored. + * @param tokenizationStoreOperationType The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon tokenizationStoreOperationType( - TokenizationStoreOperationTypeEnum tokenizationStoreOperationType) { + public ResponseAdditionalDataCommon tokenizationStoreOperationType(TokenizationStoreOperationTypeEnum tokenizationStoreOperationType) { this.tokenizationStoreOperationType = tokenizationStoreOperationType; return this; } /** - * The operation performed on the token. Possible values: * **created**: the token has been - * created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details - * have already been stored. - * - * @return tokenizationStoreOperationType The operation performed on the token. Possible values: * - * **created**: the token has been created. * **updated**: the existing token has been - * updated. * **alreadyExisting**: the details have already been stored. + * The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. + * @return tokenizationStoreOperationType The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_STORE_OPERATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2846,39 +2388,30 @@ public TokenizationStoreOperationTypeEnum getTokenizationStoreOperationType() { } /** - * The operation performed on the token. Possible values: * **created**: the token has been - * created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details - * have already been stored. + * The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. * - * @param tokenizationStoreOperationType The operation performed on the token. Possible values: * - * **created**: the token has been created. * **updated**: the existing token has been - * updated. * **alreadyExisting**: the details have already been stored. + * @param tokenizationStoreOperationType The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_STORE_OPERATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTokenizationStoreOperationType( - TokenizationStoreOperationTypeEnum tokenizationStoreOperationType) { + public void setTokenizationStoreOperationType(TokenizationStoreOperationTypeEnum tokenizationStoreOperationType) { this.tokenizationStoreOperationType = tokenizationStoreOperationType; } /** * The reference that uniquely identifies tokenized payment details. * - * @param tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized - * payment details. + * @param tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized payment details. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon tokenizationStoredPaymentMethodId( - String tokenizationStoredPaymentMethodId) { + public ResponseAdditionalDataCommon tokenizationStoredPaymentMethodId(String tokenizationStoredPaymentMethodId) { this.tokenizationStoredPaymentMethodId = tokenizationStoredPaymentMethodId; return this; } /** * The reference that uniquely identifies tokenized payment details. - * - * @return tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized - * payment details. + * @return tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized payment details. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2889,8 +2422,7 @@ public String getTokenizationStoredPaymentMethodId() { /** * The reference that uniquely identifies tokenized payment details. * - * @param tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized - * payment details. + * @param tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized payment details. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2899,11 +2431,9 @@ public void setTokenizationStoredPaymentMethodId(String tokenizationStoredPaymen } /** - * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact - * Support Team to enable this field. + * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. * - * @param visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric - * characters. > Contact Support Team to enable this field. + * @param visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon visaTransactionId(String visaTransactionId) { @@ -2912,11 +2442,8 @@ public ResponseAdditionalDataCommon visaTransactionId(String visaTransactionId) } /** - * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact - * Support Team to enable this field. - * - * @return visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric - * characters. > Contact Support Team to enable this field. + * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. + * @return visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. */ @JsonProperty(JSON_PROPERTY_VISA_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2925,11 +2452,9 @@ public String getVisaTransactionId() { } /** - * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact - * Support Team to enable this field. + * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. * - * @param visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric - * characters. > Contact Support Team to enable this field. + * @param visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. */ @JsonProperty(JSON_PROPERTY_VISA_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2938,13 +2463,9 @@ public void setVisaTransactionId(String visaTransactionId) { } /** - * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded - * and is returned for transactions with directoryResponse 'N' or 'Y'. Example: - * ODgxNDc2MDg2MDExODk5MAAAAAA= + * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= * - * @param xid The 3DS transaction ID of the 3DS session sent in notifications. The value is - * Base64-encoded and is returned for transactions with directoryResponse 'N' or - * 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= + * @param xid The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon xid(String xid) { @@ -2953,13 +2474,8 @@ public ResponseAdditionalDataCommon xid(String xid) { } /** - * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded - * and is returned for transactions with directoryResponse 'N' or 'Y'. Example: - * ODgxNDc2MDg2MDExODk5MAAAAAA= - * - * @return xid The 3DS transaction ID of the 3DS session sent in notifications. The value is - * Base64-encoded and is returned for transactions with directoryResponse 'N' or - * 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= + * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= + * @return xid The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= */ @JsonProperty(JSON_PROPERTY_XID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2968,13 +2484,9 @@ public String getXid() { } /** - * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded - * and is returned for transactions with directoryResponse 'N' or 'Y'. Example: - * ODgxNDc2MDg2MDExODk5MAAAAAA= + * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= * - * @param xid The 3DS transaction ID of the 3DS session sent in notifications. The value is - * Base64-encoded and is returned for transactions with directoryResponse 'N' or - * 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= + * @param xid The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= */ @JsonProperty(JSON_PROPERTY_XID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2982,7 +2494,9 @@ public void setXid(String xid) { this.xid = xid; } - /** Return true if this ResponseAdditionalDataCommon object is equal to o. */ + /** + * Return true if this ResponseAdditionalDataCommon object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -2992,187 +2506,89 @@ public boolean equals(Object o) { return false; } ResponseAdditionalDataCommon responseAdditionalDataCommon = (ResponseAdditionalDataCommon) o; - return Objects.equals( - this.acquirerAccountCode, responseAdditionalDataCommon.acquirerAccountCode) - && Objects.equals(this.acquirerCode, responseAdditionalDataCommon.acquirerCode) - && Objects.equals(this.acquirerReference, responseAdditionalDataCommon.acquirerReference) - && Objects.equals(this.alias, responseAdditionalDataCommon.alias) - && Objects.equals(this.aliasType, responseAdditionalDataCommon.aliasType) - && Objects.equals(this.authCode, responseAdditionalDataCommon.authCode) - && Objects.equals(this.authorisationMid, responseAdditionalDataCommon.authorisationMid) - && Objects.equals( - this.authorisedAmountCurrency, responseAdditionalDataCommon.authorisedAmountCurrency) - && Objects.equals( - this.authorisedAmountValue, responseAdditionalDataCommon.authorisedAmountValue) - && Objects.equals(this.avsResult, responseAdditionalDataCommon.avsResult) - && Objects.equals(this.avsResultRaw, responseAdditionalDataCommon.avsResultRaw) - && Objects.equals(this.bic, responseAdditionalDataCommon.bic) - && Objects.equals(this.coBrandedWith, responseAdditionalDataCommon.coBrandedWith) - && Objects.equals(this.cvcResult, responseAdditionalDataCommon.cvcResult) - && Objects.equals(this.cvcResultRaw, responseAdditionalDataCommon.cvcResultRaw) - && Objects.equals(this.dsTransID, responseAdditionalDataCommon.dsTransID) - && Objects.equals(this.eci, responseAdditionalDataCommon.eci) - && Objects.equals(this.expiryDate, responseAdditionalDataCommon.expiryDate) - && Objects.equals(this.extraCostsCurrency, responseAdditionalDataCommon.extraCostsCurrency) - && Objects.equals(this.extraCostsValue, responseAdditionalDataCommon.extraCostsValue) - && Objects.equals( - this.fraudCheckItemNrFraudCheckname, - responseAdditionalDataCommon.fraudCheckItemNrFraudCheckname) - && Objects.equals(this.fraudManualReview, responseAdditionalDataCommon.fraudManualReview) - && Objects.equals(this.fraudResultType, responseAdditionalDataCommon.fraudResultType) - && Objects.equals(this.fraudRiskLevel, responseAdditionalDataCommon.fraudRiskLevel) - && Objects.equals(this.fundingSource, responseAdditionalDataCommon.fundingSource) - && Objects.equals(this.fundsAvailability, responseAdditionalDataCommon.fundsAvailability) - && Objects.equals( - this.inferredRefusalReason, responseAdditionalDataCommon.inferredRefusalReason) - && Objects.equals(this.isCardCommercial, responseAdditionalDataCommon.isCardCommercial) - && Objects.equals(this.issuerCountry, responseAdditionalDataCommon.issuerCountry) - && Objects.equals(this.liabilityShift, responseAdditionalDataCommon.liabilityShift) - && Objects.equals( - this.mcBankNetReferenceNumber, responseAdditionalDataCommon.mcBankNetReferenceNumber) - && Objects.equals(this.merchantAdviceCode, responseAdditionalDataCommon.merchantAdviceCode) - && Objects.equals(this.merchantReference, responseAdditionalDataCommon.merchantReference) - && Objects.equals(this.networkTxReference, responseAdditionalDataCommon.networkTxReference) - && Objects.equals(this.ownerName, responseAdditionalDataCommon.ownerName) - && Objects.equals( - this.paymentAccountReference, responseAdditionalDataCommon.paymentAccountReference) - && Objects.equals(this.paymentMethod, responseAdditionalDataCommon.paymentMethod) - && Objects.equals( - this.paymentMethodVariant, responseAdditionalDataCommon.paymentMethodVariant) - && Objects.equals(this.payoutEligible, responseAdditionalDataCommon.payoutEligible) - && Objects.equals( - this.realtimeAccountUpdaterStatus, - responseAdditionalDataCommon.realtimeAccountUpdaterStatus) - && Objects.equals(this.receiptFreeText, responseAdditionalDataCommon.receiptFreeText) - && Objects.equals( - this.recurringContractTypes, responseAdditionalDataCommon.recurringContractTypes) - && Objects.equals( - this.recurringFirstPspReference, - responseAdditionalDataCommon.recurringFirstPspReference) - && Objects.equals( - this.recurringRecurringDetailReference, - responseAdditionalDataCommon.recurringRecurringDetailReference) - && Objects.equals( - this.recurringShopperReference, responseAdditionalDataCommon.recurringShopperReference) - && Objects.equals( - this.recurringProcessingModel, responseAdditionalDataCommon.recurringProcessingModel) - && Objects.equals(this.referred, responseAdditionalDataCommon.referred) - && Objects.equals(this.refusalReasonRaw, responseAdditionalDataCommon.refusalReasonRaw) - && Objects.equals(this.requestAmount, responseAdditionalDataCommon.requestAmount) - && Objects.equals( - this.requestCurrencyCode, responseAdditionalDataCommon.requestCurrencyCode) - && Objects.equals(this.shopperInteraction, responseAdditionalDataCommon.shopperInteraction) - && Objects.equals(this.shopperReference, responseAdditionalDataCommon.shopperReference) - && Objects.equals(this.terminalId, responseAdditionalDataCommon.terminalId) - && Objects.equals( - this.threeDAuthenticated, responseAdditionalDataCommon.threeDAuthenticated) - && Objects.equals( - this.threeDAuthenticatedResponse, - responseAdditionalDataCommon.threeDAuthenticatedResponse) - && Objects.equals(this.threeDOffered, responseAdditionalDataCommon.threeDOffered) - && Objects.equals( - this.threeDOfferedResponse, responseAdditionalDataCommon.threeDOfferedResponse) - && Objects.equals(this.threeDSVersion, responseAdditionalDataCommon.threeDSVersion) - && Objects.equals( - this.tokenizationShopperReference, - responseAdditionalDataCommon.tokenizationShopperReference) - && Objects.equals( - this.tokenizationStoreOperationType, - responseAdditionalDataCommon.tokenizationStoreOperationType) - && Objects.equals( - this.tokenizationStoredPaymentMethodId, - responseAdditionalDataCommon.tokenizationStoredPaymentMethodId) - && Objects.equals(this.visaTransactionId, responseAdditionalDataCommon.visaTransactionId) - && Objects.equals(this.xid, responseAdditionalDataCommon.xid); + return Objects.equals(this.acquirerAccountCode, responseAdditionalDataCommon.acquirerAccountCode) && + Objects.equals(this.acquirerCode, responseAdditionalDataCommon.acquirerCode) && + Objects.equals(this.acquirerReference, responseAdditionalDataCommon.acquirerReference) && + Objects.equals(this.alias, responseAdditionalDataCommon.alias) && + Objects.equals(this.aliasType, responseAdditionalDataCommon.aliasType) && + Objects.equals(this.authCode, responseAdditionalDataCommon.authCode) && + Objects.equals(this.authorisationMid, responseAdditionalDataCommon.authorisationMid) && + Objects.equals(this.authorisedAmountCurrency, responseAdditionalDataCommon.authorisedAmountCurrency) && + Objects.equals(this.authorisedAmountValue, responseAdditionalDataCommon.authorisedAmountValue) && + Objects.equals(this.avsResult, responseAdditionalDataCommon.avsResult) && + Objects.equals(this.avsResultRaw, responseAdditionalDataCommon.avsResultRaw) && + Objects.equals(this.bic, responseAdditionalDataCommon.bic) && + Objects.equals(this.coBrandedWith, responseAdditionalDataCommon.coBrandedWith) && + Objects.equals(this.cvcResult, responseAdditionalDataCommon.cvcResult) && + Objects.equals(this.cvcResultRaw, responseAdditionalDataCommon.cvcResultRaw) && + Objects.equals(this.dsTransID, responseAdditionalDataCommon.dsTransID) && + Objects.equals(this.eci, responseAdditionalDataCommon.eci) && + Objects.equals(this.expiryDate, responseAdditionalDataCommon.expiryDate) && + Objects.equals(this.extraCostsCurrency, responseAdditionalDataCommon.extraCostsCurrency) && + Objects.equals(this.extraCostsValue, responseAdditionalDataCommon.extraCostsValue) && + Objects.equals(this.fraudCheckItemNrFraudCheckname, responseAdditionalDataCommon.fraudCheckItemNrFraudCheckname) && + Objects.equals(this.fraudManualReview, responseAdditionalDataCommon.fraudManualReview) && + Objects.equals(this.fraudResultType, responseAdditionalDataCommon.fraudResultType) && + Objects.equals(this.fraudRiskLevel, responseAdditionalDataCommon.fraudRiskLevel) && + Objects.equals(this.fundingSource, responseAdditionalDataCommon.fundingSource) && + Objects.equals(this.fundsAvailability, responseAdditionalDataCommon.fundsAvailability) && + Objects.equals(this.inferredRefusalReason, responseAdditionalDataCommon.inferredRefusalReason) && + Objects.equals(this.isCardCommercial, responseAdditionalDataCommon.isCardCommercial) && + Objects.equals(this.issuerCountry, responseAdditionalDataCommon.issuerCountry) && + Objects.equals(this.liabilityShift, responseAdditionalDataCommon.liabilityShift) && + Objects.equals(this.mcBankNetReferenceNumber, responseAdditionalDataCommon.mcBankNetReferenceNumber) && + Objects.equals(this.merchantAdviceCode, responseAdditionalDataCommon.merchantAdviceCode) && + Objects.equals(this.merchantReference, responseAdditionalDataCommon.merchantReference) && + Objects.equals(this.networkTxReference, responseAdditionalDataCommon.networkTxReference) && + Objects.equals(this.ownerName, responseAdditionalDataCommon.ownerName) && + Objects.equals(this.paymentAccountReference, responseAdditionalDataCommon.paymentAccountReference) && + Objects.equals(this.paymentMethod, responseAdditionalDataCommon.paymentMethod) && + Objects.equals(this.paymentMethodVariant, responseAdditionalDataCommon.paymentMethodVariant) && + Objects.equals(this.payoutEligible, responseAdditionalDataCommon.payoutEligible) && + Objects.equals(this.realtimeAccountUpdaterStatus, responseAdditionalDataCommon.realtimeAccountUpdaterStatus) && + Objects.equals(this.receiptFreeText, responseAdditionalDataCommon.receiptFreeText) && + Objects.equals(this.recurringContractTypes, responseAdditionalDataCommon.recurringContractTypes) && + Objects.equals(this.recurringFirstPspReference, responseAdditionalDataCommon.recurringFirstPspReference) && + Objects.equals(this.recurringRecurringDetailReference, responseAdditionalDataCommon.recurringRecurringDetailReference) && + Objects.equals(this.recurringShopperReference, responseAdditionalDataCommon.recurringShopperReference) && + Objects.equals(this.recurringProcessingModel, responseAdditionalDataCommon.recurringProcessingModel) && + Objects.equals(this.referred, responseAdditionalDataCommon.referred) && + Objects.equals(this.refusalReasonRaw, responseAdditionalDataCommon.refusalReasonRaw) && + Objects.equals(this.requestAmount, responseAdditionalDataCommon.requestAmount) && + Objects.equals(this.requestCurrencyCode, responseAdditionalDataCommon.requestCurrencyCode) && + Objects.equals(this.shopperInteraction, responseAdditionalDataCommon.shopperInteraction) && + Objects.equals(this.shopperReference, responseAdditionalDataCommon.shopperReference) && + Objects.equals(this.terminalId, responseAdditionalDataCommon.terminalId) && + Objects.equals(this.threeDAuthenticated, responseAdditionalDataCommon.threeDAuthenticated) && + Objects.equals(this.threeDAuthenticatedResponse, responseAdditionalDataCommon.threeDAuthenticatedResponse) && + Objects.equals(this.threeDOffered, responseAdditionalDataCommon.threeDOffered) && + Objects.equals(this.threeDOfferedResponse, responseAdditionalDataCommon.threeDOfferedResponse) && + Objects.equals(this.threeDSVersion, responseAdditionalDataCommon.threeDSVersion) && + Objects.equals(this.tokenizationShopperReference, responseAdditionalDataCommon.tokenizationShopperReference) && + Objects.equals(this.tokenizationStoreOperationType, responseAdditionalDataCommon.tokenizationStoreOperationType) && + Objects.equals(this.tokenizationStoredPaymentMethodId, responseAdditionalDataCommon.tokenizationStoredPaymentMethodId) && + Objects.equals(this.visaTransactionId, responseAdditionalDataCommon.visaTransactionId) && + Objects.equals(this.xid, responseAdditionalDataCommon.xid); } @Override public int hashCode() { - return Objects.hash( - acquirerAccountCode, - acquirerCode, - acquirerReference, - alias, - aliasType, - authCode, - authorisationMid, - authorisedAmountCurrency, - authorisedAmountValue, - avsResult, - avsResultRaw, - bic, - coBrandedWith, - cvcResult, - cvcResultRaw, - dsTransID, - eci, - expiryDate, - extraCostsCurrency, - extraCostsValue, - fraudCheckItemNrFraudCheckname, - fraudManualReview, - fraudResultType, - fraudRiskLevel, - fundingSource, - fundsAvailability, - inferredRefusalReason, - isCardCommercial, - issuerCountry, - liabilityShift, - mcBankNetReferenceNumber, - merchantAdviceCode, - merchantReference, - networkTxReference, - ownerName, - paymentAccountReference, - paymentMethod, - paymentMethodVariant, - payoutEligible, - realtimeAccountUpdaterStatus, - receiptFreeText, - recurringContractTypes, - recurringFirstPspReference, - recurringRecurringDetailReference, - recurringShopperReference, - recurringProcessingModel, - referred, - refusalReasonRaw, - requestAmount, - requestCurrencyCode, - shopperInteraction, - shopperReference, - terminalId, - threeDAuthenticated, - threeDAuthenticatedResponse, - threeDOffered, - threeDOfferedResponse, - threeDSVersion, - tokenizationShopperReference, - tokenizationStoreOperationType, - tokenizationStoredPaymentMethodId, - visaTransactionId, - xid); + return Objects.hash(acquirerAccountCode, acquirerCode, acquirerReference, alias, aliasType, authCode, authorisationMid, authorisedAmountCurrency, authorisedAmountValue, avsResult, avsResultRaw, bic, coBrandedWith, cvcResult, cvcResultRaw, dsTransID, eci, expiryDate, extraCostsCurrency, extraCostsValue, fraudCheckItemNrFraudCheckname, fraudManualReview, fraudResultType, fraudRiskLevel, fundingSource, fundsAvailability, inferredRefusalReason, isCardCommercial, issuerCountry, liabilityShift, mcBankNetReferenceNumber, merchantAdviceCode, merchantReference, networkTxReference, ownerName, paymentAccountReference, paymentMethod, paymentMethodVariant, payoutEligible, realtimeAccountUpdaterStatus, receiptFreeText, recurringContractTypes, recurringFirstPspReference, recurringRecurringDetailReference, recurringShopperReference, recurringProcessingModel, referred, refusalReasonRaw, requestAmount, requestCurrencyCode, shopperInteraction, shopperReference, terminalId, threeDAuthenticated, threeDAuthenticatedResponse, threeDOffered, threeDOfferedResponse, threeDSVersion, tokenizationShopperReference, tokenizationStoreOperationType, tokenizationStoredPaymentMethodId, visaTransactionId, xid); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataCommon {\n"); - sb.append(" acquirerAccountCode: ") - .append(toIndentedString(acquirerAccountCode)) - .append("\n"); + sb.append(" acquirerAccountCode: ").append(toIndentedString(acquirerAccountCode)).append("\n"); sb.append(" acquirerCode: ").append(toIndentedString(acquirerCode)).append("\n"); sb.append(" acquirerReference: ").append(toIndentedString(acquirerReference)).append("\n"); sb.append(" alias: ").append(toIndentedString(alias)).append("\n"); sb.append(" aliasType: ").append(toIndentedString(aliasType)).append("\n"); sb.append(" authCode: ").append(toIndentedString(authCode)).append("\n"); sb.append(" authorisationMid: ").append(toIndentedString(authorisationMid)).append("\n"); - sb.append(" authorisedAmountCurrency: ") - .append(toIndentedString(authorisedAmountCurrency)) - .append("\n"); - sb.append(" authorisedAmountValue: ") - .append(toIndentedString(authorisedAmountValue)) - .append("\n"); + sb.append(" authorisedAmountCurrency: ").append(toIndentedString(authorisedAmountCurrency)).append("\n"); + sb.append(" authorisedAmountValue: ").append(toIndentedString(authorisedAmountValue)).append("\n"); sb.append(" avsResult: ").append(toIndentedString(avsResult)).append("\n"); sb.append(" avsResultRaw: ").append(toIndentedString(avsResultRaw)).append("\n"); sb.append(" bic: ").append(toIndentedString(bic)).append("\n"); @@ -3184,83 +2600,47 @@ public String toString() { sb.append(" expiryDate: ").append(toIndentedString(expiryDate)).append("\n"); sb.append(" extraCostsCurrency: ").append(toIndentedString(extraCostsCurrency)).append("\n"); sb.append(" extraCostsValue: ").append(toIndentedString(extraCostsValue)).append("\n"); - sb.append(" fraudCheckItemNrFraudCheckname: ") - .append(toIndentedString(fraudCheckItemNrFraudCheckname)) - .append("\n"); + sb.append(" fraudCheckItemNrFraudCheckname: ").append(toIndentedString(fraudCheckItemNrFraudCheckname)).append("\n"); sb.append(" fraudManualReview: ").append(toIndentedString(fraudManualReview)).append("\n"); sb.append(" fraudResultType: ").append(toIndentedString(fraudResultType)).append("\n"); sb.append(" fraudRiskLevel: ").append(toIndentedString(fraudRiskLevel)).append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); sb.append(" fundsAvailability: ").append(toIndentedString(fundsAvailability)).append("\n"); - sb.append(" inferredRefusalReason: ") - .append(toIndentedString(inferredRefusalReason)) - .append("\n"); + sb.append(" inferredRefusalReason: ").append(toIndentedString(inferredRefusalReason)).append("\n"); sb.append(" isCardCommercial: ").append(toIndentedString(isCardCommercial)).append("\n"); sb.append(" issuerCountry: ").append(toIndentedString(issuerCountry)).append("\n"); sb.append(" liabilityShift: ").append(toIndentedString(liabilityShift)).append("\n"); - sb.append(" mcBankNetReferenceNumber: ") - .append(toIndentedString(mcBankNetReferenceNumber)) - .append("\n"); + sb.append(" mcBankNetReferenceNumber: ").append(toIndentedString(mcBankNetReferenceNumber)).append("\n"); sb.append(" merchantAdviceCode: ").append(toIndentedString(merchantAdviceCode)).append("\n"); sb.append(" merchantReference: ").append(toIndentedString(merchantReference)).append("\n"); sb.append(" networkTxReference: ").append(toIndentedString(networkTxReference)).append("\n"); sb.append(" ownerName: ").append(toIndentedString(ownerName)).append("\n"); - sb.append(" paymentAccountReference: ") - .append(toIndentedString(paymentAccountReference)) - .append("\n"); + sb.append(" paymentAccountReference: ").append(toIndentedString(paymentAccountReference)).append("\n"); sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n"); - sb.append(" paymentMethodVariant: ") - .append(toIndentedString(paymentMethodVariant)) - .append("\n"); + sb.append(" paymentMethodVariant: ").append(toIndentedString(paymentMethodVariant)).append("\n"); sb.append(" payoutEligible: ").append(toIndentedString(payoutEligible)).append("\n"); - sb.append(" realtimeAccountUpdaterStatus: ") - .append(toIndentedString(realtimeAccountUpdaterStatus)) - .append("\n"); + sb.append(" realtimeAccountUpdaterStatus: ").append(toIndentedString(realtimeAccountUpdaterStatus)).append("\n"); sb.append(" receiptFreeText: ").append(toIndentedString(receiptFreeText)).append("\n"); - sb.append(" recurringContractTypes: ") - .append(toIndentedString(recurringContractTypes)) - .append("\n"); - sb.append(" recurringFirstPspReference: ") - .append(toIndentedString(recurringFirstPspReference)) - .append("\n"); - sb.append(" recurringRecurringDetailReference: ") - .append(toIndentedString(recurringRecurringDetailReference)) - .append("\n"); - sb.append(" recurringShopperReference: ") - .append(toIndentedString(recurringShopperReference)) - .append("\n"); - sb.append(" recurringProcessingModel: ") - .append(toIndentedString(recurringProcessingModel)) - .append("\n"); + sb.append(" recurringContractTypes: ").append(toIndentedString(recurringContractTypes)).append("\n"); + sb.append(" recurringFirstPspReference: ").append(toIndentedString(recurringFirstPspReference)).append("\n"); + sb.append(" recurringRecurringDetailReference: ").append(toIndentedString(recurringRecurringDetailReference)).append("\n"); + sb.append(" recurringShopperReference: ").append(toIndentedString(recurringShopperReference)).append("\n"); + sb.append(" recurringProcessingModel: ").append(toIndentedString(recurringProcessingModel)).append("\n"); sb.append(" referred: ").append(toIndentedString(referred)).append("\n"); sb.append(" refusalReasonRaw: ").append(toIndentedString(refusalReasonRaw)).append("\n"); sb.append(" requestAmount: ").append(toIndentedString(requestAmount)).append("\n"); - sb.append(" requestCurrencyCode: ") - .append(toIndentedString(requestCurrencyCode)) - .append("\n"); + sb.append(" requestCurrencyCode: ").append(toIndentedString(requestCurrencyCode)).append("\n"); sb.append(" shopperInteraction: ").append(toIndentedString(shopperInteraction)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append(" terminalId: ").append(toIndentedString(terminalId)).append("\n"); - sb.append(" threeDAuthenticated: ") - .append(toIndentedString(threeDAuthenticated)) - .append("\n"); - sb.append(" threeDAuthenticatedResponse: ") - .append(toIndentedString(threeDAuthenticatedResponse)) - .append("\n"); + sb.append(" threeDAuthenticated: ").append(toIndentedString(threeDAuthenticated)).append("\n"); + sb.append(" threeDAuthenticatedResponse: ").append(toIndentedString(threeDAuthenticatedResponse)).append("\n"); sb.append(" threeDOffered: ").append(toIndentedString(threeDOffered)).append("\n"); - sb.append(" threeDOfferedResponse: ") - .append(toIndentedString(threeDOfferedResponse)) - .append("\n"); + sb.append(" threeDOfferedResponse: ").append(toIndentedString(threeDOfferedResponse)).append("\n"); sb.append(" threeDSVersion: ").append(toIndentedString(threeDSVersion)).append("\n"); - sb.append(" tokenizationShopperReference: ") - .append(toIndentedString(tokenizationShopperReference)) - .append("\n"); - sb.append(" tokenizationStoreOperationType: ") - .append(toIndentedString(tokenizationStoreOperationType)) - .append("\n"); - sb.append(" tokenizationStoredPaymentMethodId: ") - .append(toIndentedString(tokenizationStoredPaymentMethodId)) - .append("\n"); + sb.append(" tokenizationShopperReference: ").append(toIndentedString(tokenizationShopperReference)).append("\n"); + sb.append(" tokenizationStoreOperationType: ").append(toIndentedString(tokenizationStoreOperationType)).append("\n"); + sb.append(" tokenizationStoredPaymentMethodId: ").append(toIndentedString(tokenizationStoredPaymentMethodId)).append("\n"); sb.append(" visaTransactionId: ").append(toIndentedString(visaTransactionId)).append("\n"); sb.append(" xid: ").append(toIndentedString(xid)).append("\n"); sb.append("}"); @@ -3268,7 +2648,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -3277,24 +2658,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResponseAdditionalDataCommon given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataCommon - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ResponseAdditionalDataCommon + * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataCommon */ - public static ResponseAdditionalDataCommon fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataCommon fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataCommon.class); } - - /** - * Convert an instance of ResponseAdditionalDataCommon to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResponseAdditionalDataCommon to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataDomesticError.java b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataDomesticError.java index db3bb3c5e..0470eaf16 100644 --- a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataDomesticError.java +++ b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataDomesticError.java @@ -2,26 +2,36 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ResponseAdditionalDataDomesticError */ + +/** + * ResponseAdditionalDataDomesticError + */ @JsonPropertyOrder({ ResponseAdditionalDataDomesticError.JSON_PROPERTY_DOMESTIC_REFUSAL_REASON_RAW, ResponseAdditionalDataDomesticError.JSON_PROPERTY_DOMESTIC_SHOPPER_ADVICE }) + public class ResponseAdditionalDataDomesticError { public static final String JSON_PROPERTY_DOMESTIC_REFUSAL_REASON_RAW = "domesticRefusalReasonRaw"; private String domesticRefusalReasonRaw; @@ -29,29 +39,23 @@ public class ResponseAdditionalDataDomesticError { public static final String JSON_PROPERTY_DOMESTIC_SHOPPER_ADVICE = "domesticShopperAdvice"; private String domesticShopperAdvice; - public ResponseAdditionalDataDomesticError() {} + public ResponseAdditionalDataDomesticError() { + } /** - * The reason the transaction was declined, given by the local issuer. Currently available for - * merchants in Japan. + * The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. * - * @param domesticRefusalReasonRaw The reason the transaction was declined, given by the local - * issuer. Currently available for merchants in Japan. - * @return the current {@code ResponseAdditionalDataDomesticError} instance, allowing for method - * chaining + * @param domesticRefusalReasonRaw The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. + * @return the current {@code ResponseAdditionalDataDomesticError} instance, allowing for method chaining */ - public ResponseAdditionalDataDomesticError domesticRefusalReasonRaw( - String domesticRefusalReasonRaw) { + public ResponseAdditionalDataDomesticError domesticRefusalReasonRaw(String domesticRefusalReasonRaw) { this.domesticRefusalReasonRaw = domesticRefusalReasonRaw; return this; } /** - * The reason the transaction was declined, given by the local issuer. Currently available for - * merchants in Japan. - * - * @return domesticRefusalReasonRaw The reason the transaction was declined, given by the local - * issuer. Currently available for merchants in Japan. + * The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. + * @return domesticRefusalReasonRaw The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. */ @JsonProperty(JSON_PROPERTY_DOMESTIC_REFUSAL_REASON_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,11 +64,9 @@ public String getDomesticRefusalReasonRaw() { } /** - * The reason the transaction was declined, given by the local issuer. Currently available for - * merchants in Japan. + * The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. * - * @param domesticRefusalReasonRaw The reason the transaction was declined, given by the local - * issuer. Currently available for merchants in Japan. + * @param domesticRefusalReasonRaw The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. */ @JsonProperty(JSON_PROPERTY_DOMESTIC_REFUSAL_REASON_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -73,13 +75,10 @@ public void setDomesticRefusalReasonRaw(String domesticRefusalReasonRaw) { } /** - * The action the shopper should take, in a local language. Currently available in Japanese, for - * merchants in Japan. + * The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. * - * @param domesticShopperAdvice The action the shopper should take, in a local language. Currently - * available in Japanese, for merchants in Japan. - * @return the current {@code ResponseAdditionalDataDomesticError} instance, allowing for method - * chaining + * @param domesticShopperAdvice The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. + * @return the current {@code ResponseAdditionalDataDomesticError} instance, allowing for method chaining */ public ResponseAdditionalDataDomesticError domesticShopperAdvice(String domesticShopperAdvice) { this.domesticShopperAdvice = domesticShopperAdvice; @@ -87,11 +86,8 @@ public ResponseAdditionalDataDomesticError domesticShopperAdvice(String domestic } /** - * The action the shopper should take, in a local language. Currently available in Japanese, for - * merchants in Japan. - * - * @return domesticShopperAdvice The action the shopper should take, in a local language. - * Currently available in Japanese, for merchants in Japan. + * The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. + * @return domesticShopperAdvice The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. */ @JsonProperty(JSON_PROPERTY_DOMESTIC_SHOPPER_ADVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,11 +96,9 @@ public String getDomesticShopperAdvice() { } /** - * The action the shopper should take, in a local language. Currently available in Japanese, for - * merchants in Japan. + * The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. * - * @param domesticShopperAdvice The action the shopper should take, in a local language. Currently - * available in Japanese, for merchants in Japan. + * @param domesticShopperAdvice The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. */ @JsonProperty(JSON_PROPERTY_DOMESTIC_SHOPPER_ADVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,7 +106,9 @@ public void setDomesticShopperAdvice(String domesticShopperAdvice) { this.domesticShopperAdvice = domesticShopperAdvice; } - /** Return true if this ResponseAdditionalDataDomesticError object is equal to o. */ + /** + * Return true if this ResponseAdditionalDataDomesticError object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -121,13 +117,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResponseAdditionalDataDomesticError responseAdditionalDataDomesticError = - (ResponseAdditionalDataDomesticError) o; - return Objects.equals( - this.domesticRefusalReasonRaw, - responseAdditionalDataDomesticError.domesticRefusalReasonRaw) - && Objects.equals( - this.domesticShopperAdvice, responseAdditionalDataDomesticError.domesticShopperAdvice); + ResponseAdditionalDataDomesticError responseAdditionalDataDomesticError = (ResponseAdditionalDataDomesticError) o; + return Objects.equals(this.domesticRefusalReasonRaw, responseAdditionalDataDomesticError.domesticRefusalReasonRaw) && + Objects.equals(this.domesticShopperAdvice, responseAdditionalDataDomesticError.domesticShopperAdvice); } @Override @@ -139,18 +131,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataDomesticError {\n"); - sb.append(" domesticRefusalReasonRaw: ") - .append(toIndentedString(domesticRefusalReasonRaw)) - .append("\n"); - sb.append(" domesticShopperAdvice: ") - .append(toIndentedString(domesticShopperAdvice)) - .append("\n"); + sb.append(" domesticRefusalReasonRaw: ").append(toIndentedString(domesticRefusalReasonRaw)).append("\n"); + sb.append(" domesticShopperAdvice: ").append(toIndentedString(domesticShopperAdvice)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -159,24 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResponseAdditionalDataDomesticError given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataDomesticError - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ResponseAdditionalDataDomesticError + * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataDomesticError */ - public static ResponseAdditionalDataDomesticError fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataDomesticError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataDomesticError.class); } - - /** - * Convert an instance of ResponseAdditionalDataDomesticError to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResponseAdditionalDataDomesticError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataInstallments.java b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataInstallments.java index abf80a4ff..34ea8c666 100644 --- a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataInstallments.java +++ b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataInstallments.java @@ -2,121 +2,100 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ResponseAdditionalDataInstallments */ + +/** + * ResponseAdditionalDataInstallments + */ @JsonPropertyOrder({ ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_INSTALLMENT_TYPE, - ResponseAdditionalDataInstallments - .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE, - ResponseAdditionalDataInstallments - .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT, - ResponseAdditionalDataInstallments - .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE, - ResponseAdditionalDataInstallments - .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE, - ResponseAdditionalDataInstallments - .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS, - ResponseAdditionalDataInstallments - .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS, - ResponseAdditionalDataInstallments - .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS, - ResponseAdditionalDataInstallments - .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT, - ResponseAdditionalDataInstallments - .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE, + ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE, + ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT, + ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE, + ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE, + ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS, + ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS, + ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS, + ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT, + ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE, ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_PAYMENT_OPTIONS, ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENTS_VALUE }) + public class ResponseAdditionalDataInstallments { - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_INSTALLMENT_TYPE = - "installmentPaymentData.installmentType"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_INSTALLMENT_TYPE = "installmentPaymentData.installmentType"; private String installmentPaymentDataInstallmentType; - public static final String - JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE = - "installmentPaymentData.option[itemNr].annualPercentageRate"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE = "installmentPaymentData.option[itemNr].annualPercentageRate"; private String installmentPaymentDataOptionItemNrAnnualPercentageRate; - public static final String - JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT = - "installmentPaymentData.option[itemNr].firstInstallmentAmount"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT = "installmentPaymentData.option[itemNr].firstInstallmentAmount"; private String installmentPaymentDataOptionItemNrFirstInstallmentAmount; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE = - "installmentPaymentData.option[itemNr].installmentFee"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE = "installmentPaymentData.option[itemNr].installmentFee"; private String installmentPaymentDataOptionItemNrInstallmentFee; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE = - "installmentPaymentData.option[itemNr].interestRate"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE = "installmentPaymentData.option[itemNr].interestRate"; private String installmentPaymentDataOptionItemNrInterestRate; - public static final String - JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS = - "installmentPaymentData.option[itemNr].maximumNumberOfInstallments"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS = "installmentPaymentData.option[itemNr].maximumNumberOfInstallments"; private String installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; - public static final String - JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS = - "installmentPaymentData.option[itemNr].minimumNumberOfInstallments"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS = "installmentPaymentData.option[itemNr].minimumNumberOfInstallments"; private String installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; - public static final String - JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS = - "installmentPaymentData.option[itemNr].numberOfInstallments"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS = "installmentPaymentData.option[itemNr].numberOfInstallments"; private String installmentPaymentDataOptionItemNrNumberOfInstallments; - public static final String - JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT = - "installmentPaymentData.option[itemNr].subsequentInstallmentAmount"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT = "installmentPaymentData.option[itemNr].subsequentInstallmentAmount"; private String installmentPaymentDataOptionItemNrSubsequentInstallmentAmount; - public static final String - JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE = - "installmentPaymentData.option[itemNr].totalAmountDue"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE = "installmentPaymentData.option[itemNr].totalAmountDue"; private String installmentPaymentDataOptionItemNrTotalAmountDue; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_PAYMENT_OPTIONS = - "installmentPaymentData.paymentOptions"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_PAYMENT_OPTIONS = "installmentPaymentData.paymentOptions"; private String installmentPaymentDataPaymentOptions; public static final String JSON_PROPERTY_INSTALLMENTS_VALUE = "installments.value"; private String installmentsValue; - public ResponseAdditionalDataInstallments() {} + public ResponseAdditionalDataInstallments() { + } /** * Type of installment. The value of `installmentType` should be **IssuerFinanced**. * - * @param installmentPaymentDataInstallmentType Type of installment. The value of - * `installmentType` should be **IssuerFinanced**. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining + * @param installmentPaymentDataInstallmentType Type of installment. The value of `installmentType` should be **IssuerFinanced**. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataInstallmentType( - String installmentPaymentDataInstallmentType) { + public ResponseAdditionalDataInstallments installmentPaymentDataInstallmentType(String installmentPaymentDataInstallmentType) { this.installmentPaymentDataInstallmentType = installmentPaymentDataInstallmentType; return this; } /** * Type of installment. The value of `installmentType` should be **IssuerFinanced**. - * - * @return installmentPaymentDataInstallmentType Type of installment. The value of - * `installmentType` should be **IssuerFinanced**. + * @return installmentPaymentDataInstallmentType Type of installment. The value of `installmentType` should be **IssuerFinanced**. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_INSTALLMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,13 +106,11 @@ public String getInstallmentPaymentDataInstallmentType() { /** * Type of installment. The value of `installmentType` should be **IssuerFinanced**. * - * @param installmentPaymentDataInstallmentType Type of installment. The value of - * `installmentType` should be **IssuerFinanced**. + * @param installmentPaymentDataInstallmentType Type of installment. The value of `installmentType` should be **IssuerFinanced**. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_INSTALLMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataInstallmentType( - String installmentPaymentDataInstallmentType) { + public void setInstallmentPaymentDataInstallmentType(String installmentPaymentDataInstallmentType) { this.installmentPaymentDataInstallmentType = installmentPaymentDataInstallmentType; } @@ -141,19 +118,15 @@ public void setInstallmentPaymentDataInstallmentType( * Annual interest rate. * * @param installmentPaymentDataOptionItemNrAnnualPercentageRate Annual interest rate. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrAnnualPercentageRate( - String installmentPaymentDataOptionItemNrAnnualPercentageRate) { - this.installmentPaymentDataOptionItemNrAnnualPercentageRate = - installmentPaymentDataOptionItemNrAnnualPercentageRate; + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrAnnualPercentageRate(String installmentPaymentDataOptionItemNrAnnualPercentageRate) { + this.installmentPaymentDataOptionItemNrAnnualPercentageRate = installmentPaymentDataOptionItemNrAnnualPercentageRate; return this; } /** * Annual interest rate. - * * @return installmentPaymentDataOptionItemNrAnnualPercentageRate Annual interest rate. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE) @@ -169,33 +142,24 @@ public String getInstallmentPaymentDataOptionItemNrAnnualPercentageRate() { */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrAnnualPercentageRate( - String installmentPaymentDataOptionItemNrAnnualPercentageRate) { - this.installmentPaymentDataOptionItemNrAnnualPercentageRate = - installmentPaymentDataOptionItemNrAnnualPercentageRate; + public void setInstallmentPaymentDataOptionItemNrAnnualPercentageRate(String installmentPaymentDataOptionItemNrAnnualPercentageRate) { + this.installmentPaymentDataOptionItemNrAnnualPercentageRate = installmentPaymentDataOptionItemNrAnnualPercentageRate; } /** * First Installment Amount in minor units. * - * @param installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in - * minor units. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining - */ - public ResponseAdditionalDataInstallments - installmentPaymentDataOptionItemNrFirstInstallmentAmount( - String installmentPaymentDataOptionItemNrFirstInstallmentAmount) { - this.installmentPaymentDataOptionItemNrFirstInstallmentAmount = - installmentPaymentDataOptionItemNrFirstInstallmentAmount; + * @param installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in minor units. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + */ + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrFirstInstallmentAmount(String installmentPaymentDataOptionItemNrFirstInstallmentAmount) { + this.installmentPaymentDataOptionItemNrFirstInstallmentAmount = installmentPaymentDataOptionItemNrFirstInstallmentAmount; return this; } /** * First Installment Amount in minor units. - * - * @return installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in - * minor units. + * @return installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -206,34 +170,27 @@ public String getInstallmentPaymentDataOptionItemNrFirstInstallmentAmount() { /** * First Installment Amount in minor units. * - * @param installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in - * minor units. + * @param installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrFirstInstallmentAmount( - String installmentPaymentDataOptionItemNrFirstInstallmentAmount) { - this.installmentPaymentDataOptionItemNrFirstInstallmentAmount = - installmentPaymentDataOptionItemNrFirstInstallmentAmount; + public void setInstallmentPaymentDataOptionItemNrFirstInstallmentAmount(String installmentPaymentDataOptionItemNrFirstInstallmentAmount) { + this.installmentPaymentDataOptionItemNrFirstInstallmentAmount = installmentPaymentDataOptionItemNrFirstInstallmentAmount; } /** * Installment fee amount in minor units. * * @param installmentPaymentDataOptionItemNrInstallmentFee Installment fee amount in minor units. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrInstallmentFee( - String installmentPaymentDataOptionItemNrInstallmentFee) { - this.installmentPaymentDataOptionItemNrInstallmentFee = - installmentPaymentDataOptionItemNrInstallmentFee; + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrInstallmentFee(String installmentPaymentDataOptionItemNrInstallmentFee) { + this.installmentPaymentDataOptionItemNrInstallmentFee = installmentPaymentDataOptionItemNrInstallmentFee; return this; } /** * Installment fee amount in minor units. - * * @return installmentPaymentDataOptionItemNrInstallmentFee Installment fee amount in minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE) @@ -249,31 +206,24 @@ public String getInstallmentPaymentDataOptionItemNrInstallmentFee() { */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrInstallmentFee( - String installmentPaymentDataOptionItemNrInstallmentFee) { - this.installmentPaymentDataOptionItemNrInstallmentFee = - installmentPaymentDataOptionItemNrInstallmentFee; + public void setInstallmentPaymentDataOptionItemNrInstallmentFee(String installmentPaymentDataOptionItemNrInstallmentFee) { + this.installmentPaymentDataOptionItemNrInstallmentFee = installmentPaymentDataOptionItemNrInstallmentFee; } /** * Interest rate for the installment period. * * @param installmentPaymentDataOptionItemNrInterestRate Interest rate for the installment period. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrInterestRate( - String installmentPaymentDataOptionItemNrInterestRate) { - this.installmentPaymentDataOptionItemNrInterestRate = - installmentPaymentDataOptionItemNrInterestRate; + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrInterestRate(String installmentPaymentDataOptionItemNrInterestRate) { + this.installmentPaymentDataOptionItemNrInterestRate = installmentPaymentDataOptionItemNrInterestRate; return this; } /** * Interest rate for the installment period. - * - * @return installmentPaymentDataOptionItemNrInterestRate Interest rate for the installment - * period. + * @return installmentPaymentDataOptionItemNrInterestRate Interest rate for the installment period. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -288,36 +238,26 @@ public String getInstallmentPaymentDataOptionItemNrInterestRate() { */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrInterestRate( - String installmentPaymentDataOptionItemNrInterestRate) { - this.installmentPaymentDataOptionItemNrInterestRate = - installmentPaymentDataOptionItemNrInterestRate; + public void setInstallmentPaymentDataOptionItemNrInterestRate(String installmentPaymentDataOptionItemNrInterestRate) { + this.installmentPaymentDataOptionItemNrInterestRate = installmentPaymentDataOptionItemNrInterestRate; } /** * Maximum number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of - * installments possible for this payment. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining - */ - public ResponseAdditionalDataInstallments - installmentPaymentDataOptionItemNrMaximumNumberOfInstallments( - String installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments = - installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; + * @param installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of installments possible for this payment. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + */ + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrMaximumNumberOfInstallments(String installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments = installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; return this; } /** * Maximum number of installments possible for this payment. - * - * @return installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of - * installments possible for this payment. + * @return installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of installments possible for this payment. */ - @JsonProperty( - JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS) + @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getInstallmentPaymentDataOptionItemNrMaximumNumberOfInstallments() { return installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; @@ -326,42 +266,30 @@ public String getInstallmentPaymentDataOptionItemNrMaximumNumberOfInstallments() /** * Maximum number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of - * installments possible for this payment. + * @param installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of installments possible for this payment. */ - @JsonProperty( - JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS) + @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrMaximumNumberOfInstallments( - String installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments = - installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; + public void setInstallmentPaymentDataOptionItemNrMaximumNumberOfInstallments(String installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments = installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; } /** * Minimum number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of - * installments possible for this payment. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining - */ - public ResponseAdditionalDataInstallments - installmentPaymentDataOptionItemNrMinimumNumberOfInstallments( - String installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments = - installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; + * @param installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of installments possible for this payment. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + */ + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrMinimumNumberOfInstallments(String installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments = installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; return this; } /** * Minimum number of installments possible for this payment. - * - * @return installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of - * installments possible for this payment. + * @return installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of installments possible for this payment. */ - @JsonProperty( - JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS) + @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getInstallmentPaymentDataOptionItemNrMinimumNumberOfInstallments() { return installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; @@ -370,38 +298,28 @@ public String getInstallmentPaymentDataOptionItemNrMinimumNumberOfInstallments() /** * Minimum number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of - * installments possible for this payment. + * @param installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of installments possible for this payment. */ - @JsonProperty( - JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS) + @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrMinimumNumberOfInstallments( - String installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments = - installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; + public void setInstallmentPaymentDataOptionItemNrMinimumNumberOfInstallments(String installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments = installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; } /** * Total number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments - * possible for this payment. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining - */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrNumberOfInstallments( - String installmentPaymentDataOptionItemNrNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrNumberOfInstallments = - installmentPaymentDataOptionItemNrNumberOfInstallments; + * @param installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments possible for this payment. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + */ + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrNumberOfInstallments(String installmentPaymentDataOptionItemNrNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrNumberOfInstallments = installmentPaymentDataOptionItemNrNumberOfInstallments; return this; } /** * Total number of installments possible for this payment. - * - * @return installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments - * possible for this payment. + * @return installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments possible for this payment. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -412,38 +330,28 @@ public String getInstallmentPaymentDataOptionItemNrNumberOfInstallments() { /** * Total number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments - * possible for this payment. + * @param installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments possible for this payment. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrNumberOfInstallments( - String installmentPaymentDataOptionItemNrNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrNumberOfInstallments = - installmentPaymentDataOptionItemNrNumberOfInstallments; + public void setInstallmentPaymentDataOptionItemNrNumberOfInstallments(String installmentPaymentDataOptionItemNrNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrNumberOfInstallments = installmentPaymentDataOptionItemNrNumberOfInstallments; } /** * Subsequent Installment Amount in minor units. * - * @param installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment - * Amount in minor units. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining - */ - public ResponseAdditionalDataInstallments - installmentPaymentDataOptionItemNrSubsequentInstallmentAmount( - String installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) { - this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount = - installmentPaymentDataOptionItemNrSubsequentInstallmentAmount; + * @param installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment Amount in minor units. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + */ + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrSubsequentInstallmentAmount(String installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) { + this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount = installmentPaymentDataOptionItemNrSubsequentInstallmentAmount; return this; } /** * Subsequent Installment Amount in minor units. - * - * @return installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment - * Amount in minor units. + * @return installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment Amount in minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -454,34 +362,27 @@ public String getInstallmentPaymentDataOptionItemNrSubsequentInstallmentAmount() /** * Subsequent Installment Amount in minor units. * - * @param installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment - * Amount in minor units. + * @param installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment Amount in minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrSubsequentInstallmentAmount( - String installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) { - this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount = - installmentPaymentDataOptionItemNrSubsequentInstallmentAmount; + public void setInstallmentPaymentDataOptionItemNrSubsequentInstallmentAmount(String installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) { + this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount = installmentPaymentDataOptionItemNrSubsequentInstallmentAmount; } /** * Total amount in minor units. * * @param installmentPaymentDataOptionItemNrTotalAmountDue Total amount in minor units. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrTotalAmountDue( - String installmentPaymentDataOptionItemNrTotalAmountDue) { - this.installmentPaymentDataOptionItemNrTotalAmountDue = - installmentPaymentDataOptionItemNrTotalAmountDue; + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrTotalAmountDue(String installmentPaymentDataOptionItemNrTotalAmountDue) { + this.installmentPaymentDataOptionItemNrTotalAmountDue = installmentPaymentDataOptionItemNrTotalAmountDue; return this; } /** * Total amount in minor units. - * * @return installmentPaymentDataOptionItemNrTotalAmountDue Total amount in minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE) @@ -497,31 +398,24 @@ public String getInstallmentPaymentDataOptionItemNrTotalAmountDue() { */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrTotalAmountDue( - String installmentPaymentDataOptionItemNrTotalAmountDue) { - this.installmentPaymentDataOptionItemNrTotalAmountDue = - installmentPaymentDataOptionItemNrTotalAmountDue; + public void setInstallmentPaymentDataOptionItemNrTotalAmountDue(String installmentPaymentDataOptionItemNrTotalAmountDue) { + this.installmentPaymentDataOptionItemNrTotalAmountDue = installmentPaymentDataOptionItemNrTotalAmountDue; } /** * Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments * - * @param installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * - * PayInFullOnly * PayInFullOrInstallments - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining + * @param installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataPaymentOptions( - String installmentPaymentDataPaymentOptions) { + public ResponseAdditionalDataInstallments installmentPaymentDataPaymentOptions(String installmentPaymentDataPaymentOptions) { this.installmentPaymentDataPaymentOptions = installmentPaymentDataPaymentOptions; return this; } /** * Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments - * - * @return installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * - * PayInFullOnly * PayInFullOrInstallments + * @return installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_PAYMENT_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -532,8 +426,7 @@ public String getInstallmentPaymentDataPaymentOptions() { /** * Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments * - * @param installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * - * PayInFullOnly * PayInFullOrInstallments + * @param installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_PAYMENT_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -542,14 +435,10 @@ public void setInstallmentPaymentDataPaymentOptions(String installmentPaymentDat } /** - * The number of installments that the payment amount should be charged with. Example: 5 > Only - * relevant for card payments in countries that support installments. + * The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. * - * @param installmentsValue The number of installments that the payment amount should be charged - * with. Example: 5 > Only relevant for card payments in countries that support - * installments. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining + * @param installmentsValue The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining */ public ResponseAdditionalDataInstallments installmentsValue(String installmentsValue) { this.installmentsValue = installmentsValue; @@ -557,12 +446,8 @@ public ResponseAdditionalDataInstallments installmentsValue(String installmentsV } /** - * The number of installments that the payment amount should be charged with. Example: 5 > Only - * relevant for card payments in countries that support installments. - * - * @return installmentsValue The number of installments that the payment amount should be charged - * with. Example: 5 > Only relevant for card payments in countries that support - * installments. + * The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. + * @return installmentsValue The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -571,12 +456,9 @@ public String getInstallmentsValue() { } /** - * The number of installments that the payment amount should be charged with. Example: 5 > Only - * relevant for card payments in countries that support installments. + * The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. * - * @param installmentsValue The number of installments that the payment amount should be charged - * with. Example: 5 > Only relevant for card payments in countries that support - * installments. + * @param installmentsValue The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -584,7 +466,9 @@ public void setInstallmentsValue(String installmentsValue) { this.installmentsValue = installmentsValue; } - /** Return true if this ResponseAdditionalDataInstallments object is equal to o. */ + /** + * Return true if this ResponseAdditionalDataInstallments object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -593,112 +477,49 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResponseAdditionalDataInstallments responseAdditionalDataInstallments = - (ResponseAdditionalDataInstallments) o; - return Objects.equals( - this.installmentPaymentDataInstallmentType, - responseAdditionalDataInstallments.installmentPaymentDataInstallmentType) - && Objects.equals( - this.installmentPaymentDataOptionItemNrAnnualPercentageRate, - responseAdditionalDataInstallments - .installmentPaymentDataOptionItemNrAnnualPercentageRate) - && Objects.equals( - this.installmentPaymentDataOptionItemNrFirstInstallmentAmount, - responseAdditionalDataInstallments - .installmentPaymentDataOptionItemNrFirstInstallmentAmount) - && Objects.equals( - this.installmentPaymentDataOptionItemNrInstallmentFee, - responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrInstallmentFee) - && Objects.equals( - this.installmentPaymentDataOptionItemNrInterestRate, - responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrInterestRate) - && Objects.equals( - this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments, - responseAdditionalDataInstallments - .installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) - && Objects.equals( - this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments, - responseAdditionalDataInstallments - .installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) - && Objects.equals( - this.installmentPaymentDataOptionItemNrNumberOfInstallments, - responseAdditionalDataInstallments - .installmentPaymentDataOptionItemNrNumberOfInstallments) - && Objects.equals( - this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount, - responseAdditionalDataInstallments - .installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) - && Objects.equals( - this.installmentPaymentDataOptionItemNrTotalAmountDue, - responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrTotalAmountDue) - && Objects.equals( - this.installmentPaymentDataPaymentOptions, - responseAdditionalDataInstallments.installmentPaymentDataPaymentOptions) - && Objects.equals( - this.installmentsValue, responseAdditionalDataInstallments.installmentsValue); + ResponseAdditionalDataInstallments responseAdditionalDataInstallments = (ResponseAdditionalDataInstallments) o; + return Objects.equals(this.installmentPaymentDataInstallmentType, responseAdditionalDataInstallments.installmentPaymentDataInstallmentType) && + Objects.equals(this.installmentPaymentDataOptionItemNrAnnualPercentageRate, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrAnnualPercentageRate) && + Objects.equals(this.installmentPaymentDataOptionItemNrFirstInstallmentAmount, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrFirstInstallmentAmount) && + Objects.equals(this.installmentPaymentDataOptionItemNrInstallmentFee, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrInstallmentFee) && + Objects.equals(this.installmentPaymentDataOptionItemNrInterestRate, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrInterestRate) && + Objects.equals(this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) && + Objects.equals(this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) && + Objects.equals(this.installmentPaymentDataOptionItemNrNumberOfInstallments, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrNumberOfInstallments) && + Objects.equals(this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) && + Objects.equals(this.installmentPaymentDataOptionItemNrTotalAmountDue, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrTotalAmountDue) && + Objects.equals(this.installmentPaymentDataPaymentOptions, responseAdditionalDataInstallments.installmentPaymentDataPaymentOptions) && + Objects.equals(this.installmentsValue, responseAdditionalDataInstallments.installmentsValue); } @Override public int hashCode() { - return Objects.hash( - installmentPaymentDataInstallmentType, - installmentPaymentDataOptionItemNrAnnualPercentageRate, - installmentPaymentDataOptionItemNrFirstInstallmentAmount, - installmentPaymentDataOptionItemNrInstallmentFee, - installmentPaymentDataOptionItemNrInterestRate, - installmentPaymentDataOptionItemNrMaximumNumberOfInstallments, - installmentPaymentDataOptionItemNrMinimumNumberOfInstallments, - installmentPaymentDataOptionItemNrNumberOfInstallments, - installmentPaymentDataOptionItemNrSubsequentInstallmentAmount, - installmentPaymentDataOptionItemNrTotalAmountDue, - installmentPaymentDataPaymentOptions, - installmentsValue); + return Objects.hash(installmentPaymentDataInstallmentType, installmentPaymentDataOptionItemNrAnnualPercentageRate, installmentPaymentDataOptionItemNrFirstInstallmentAmount, installmentPaymentDataOptionItemNrInstallmentFee, installmentPaymentDataOptionItemNrInterestRate, installmentPaymentDataOptionItemNrMaximumNumberOfInstallments, installmentPaymentDataOptionItemNrMinimumNumberOfInstallments, installmentPaymentDataOptionItemNrNumberOfInstallments, installmentPaymentDataOptionItemNrSubsequentInstallmentAmount, installmentPaymentDataOptionItemNrTotalAmountDue, installmentPaymentDataPaymentOptions, installmentsValue); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataInstallments {\n"); - sb.append(" installmentPaymentDataInstallmentType: ") - .append(toIndentedString(installmentPaymentDataInstallmentType)) - .append("\n"); - sb.append(" installmentPaymentDataOptionItemNrAnnualPercentageRate: ") - .append(toIndentedString(installmentPaymentDataOptionItemNrAnnualPercentageRate)) - .append("\n"); - sb.append(" installmentPaymentDataOptionItemNrFirstInstallmentAmount: ") - .append(toIndentedString(installmentPaymentDataOptionItemNrFirstInstallmentAmount)) - .append("\n"); - sb.append(" installmentPaymentDataOptionItemNrInstallmentFee: ") - .append(toIndentedString(installmentPaymentDataOptionItemNrInstallmentFee)) - .append("\n"); - sb.append(" installmentPaymentDataOptionItemNrInterestRate: ") - .append(toIndentedString(installmentPaymentDataOptionItemNrInterestRate)) - .append("\n"); - sb.append(" installmentPaymentDataOptionItemNrMaximumNumberOfInstallments: ") - .append(toIndentedString(installmentPaymentDataOptionItemNrMaximumNumberOfInstallments)) - .append("\n"); - sb.append(" installmentPaymentDataOptionItemNrMinimumNumberOfInstallments: ") - .append(toIndentedString(installmentPaymentDataOptionItemNrMinimumNumberOfInstallments)) - .append("\n"); - sb.append(" installmentPaymentDataOptionItemNrNumberOfInstallments: ") - .append(toIndentedString(installmentPaymentDataOptionItemNrNumberOfInstallments)) - .append("\n"); - sb.append(" installmentPaymentDataOptionItemNrSubsequentInstallmentAmount: ") - .append(toIndentedString(installmentPaymentDataOptionItemNrSubsequentInstallmentAmount)) - .append("\n"); - sb.append(" installmentPaymentDataOptionItemNrTotalAmountDue: ") - .append(toIndentedString(installmentPaymentDataOptionItemNrTotalAmountDue)) - .append("\n"); - sb.append(" installmentPaymentDataPaymentOptions: ") - .append(toIndentedString(installmentPaymentDataPaymentOptions)) - .append("\n"); + sb.append(" installmentPaymentDataInstallmentType: ").append(toIndentedString(installmentPaymentDataInstallmentType)).append("\n"); + sb.append(" installmentPaymentDataOptionItemNrAnnualPercentageRate: ").append(toIndentedString(installmentPaymentDataOptionItemNrAnnualPercentageRate)).append("\n"); + sb.append(" installmentPaymentDataOptionItemNrFirstInstallmentAmount: ").append(toIndentedString(installmentPaymentDataOptionItemNrFirstInstallmentAmount)).append("\n"); + sb.append(" installmentPaymentDataOptionItemNrInstallmentFee: ").append(toIndentedString(installmentPaymentDataOptionItemNrInstallmentFee)).append("\n"); + sb.append(" installmentPaymentDataOptionItemNrInterestRate: ").append(toIndentedString(installmentPaymentDataOptionItemNrInterestRate)).append("\n"); + sb.append(" installmentPaymentDataOptionItemNrMaximumNumberOfInstallments: ").append(toIndentedString(installmentPaymentDataOptionItemNrMaximumNumberOfInstallments)).append("\n"); + sb.append(" installmentPaymentDataOptionItemNrMinimumNumberOfInstallments: ").append(toIndentedString(installmentPaymentDataOptionItemNrMinimumNumberOfInstallments)).append("\n"); + sb.append(" installmentPaymentDataOptionItemNrNumberOfInstallments: ").append(toIndentedString(installmentPaymentDataOptionItemNrNumberOfInstallments)).append("\n"); + sb.append(" installmentPaymentDataOptionItemNrSubsequentInstallmentAmount: ").append(toIndentedString(installmentPaymentDataOptionItemNrSubsequentInstallmentAmount)).append("\n"); + sb.append(" installmentPaymentDataOptionItemNrTotalAmountDue: ").append(toIndentedString(installmentPaymentDataOptionItemNrTotalAmountDue)).append("\n"); + sb.append(" installmentPaymentDataPaymentOptions: ").append(toIndentedString(installmentPaymentDataPaymentOptions)).append("\n"); sb.append(" installmentsValue: ").append(toIndentedString(installmentsValue)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -707,24 +528,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResponseAdditionalDataInstallments given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataInstallments - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ResponseAdditionalDataInstallments + * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataInstallments */ - public static ResponseAdditionalDataInstallments fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataInstallments fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataInstallments.class); } - - /** - * Convert an instance of ResponseAdditionalDataInstallments to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResponseAdditionalDataInstallments to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataNetworkTokens.java b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataNetworkTokens.java index ac6761f95..6e3a8d9a5 100644 --- a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataNetworkTokens.java +++ b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataNetworkTokens.java @@ -2,27 +2,37 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ResponseAdditionalDataNetworkTokens */ + +/** + * ResponseAdditionalDataNetworkTokens + */ @JsonPropertyOrder({ ResponseAdditionalDataNetworkTokens.JSON_PROPERTY_NETWORK_TOKEN_AVAILABLE, ResponseAdditionalDataNetworkTokens.JSON_PROPERTY_NETWORK_TOKEN_BIN, ResponseAdditionalDataNetworkTokens.JSON_PROPERTY_NETWORK_TOKEN_TOKEN_SUMMARY }) + public class ResponseAdditionalDataNetworkTokens { public static final String JSON_PROPERTY_NETWORK_TOKEN_AVAILABLE = "networkToken.available"; private String networkTokenAvailable; @@ -30,19 +40,17 @@ public class ResponseAdditionalDataNetworkTokens { public static final String JSON_PROPERTY_NETWORK_TOKEN_BIN = "networkToken.bin"; private String networkTokenBin; - public static final String JSON_PROPERTY_NETWORK_TOKEN_TOKEN_SUMMARY = - "networkToken.tokenSummary"; + public static final String JSON_PROPERTY_NETWORK_TOKEN_TOKEN_SUMMARY = "networkToken.tokenSummary"; private String networkTokenTokenSummary; - public ResponseAdditionalDataNetworkTokens() {} + public ResponseAdditionalDataNetworkTokens() { + } /** * Indicates whether a network token is available for the specified card. * - * @param networkTokenAvailable Indicates whether a network token is available for the specified - * card. - * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method - * chaining + * @param networkTokenAvailable Indicates whether a network token is available for the specified card. + * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method chaining */ public ResponseAdditionalDataNetworkTokens networkTokenAvailable(String networkTokenAvailable) { this.networkTokenAvailable = networkTokenAvailable; @@ -51,9 +59,7 @@ public ResponseAdditionalDataNetworkTokens networkTokenAvailable(String networkT /** * Indicates whether a network token is available for the specified card. - * - * @return networkTokenAvailable Indicates whether a network token is available for the specified - * card. + * @return networkTokenAvailable Indicates whether a network token is available for the specified card. */ @JsonProperty(JSON_PROPERTY_NETWORK_TOKEN_AVAILABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,8 +70,7 @@ public String getNetworkTokenAvailable() { /** * Indicates whether a network token is available for the specified card. * - * @param networkTokenAvailable Indicates whether a network token is available for the specified - * card. + * @param networkTokenAvailable Indicates whether a network token is available for the specified card. */ @JsonProperty(JSON_PROPERTY_NETWORK_TOKEN_AVAILABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -74,13 +79,10 @@ public void setNetworkTokenAvailable(String networkTokenAvailable) { } /** - * The Bank Identification Number of a tokenized card, which is the first six digits of a card - * number. + * The Bank Identification Number of a tokenized card, which is the first six digits of a card number. * - * @param networkTokenBin The Bank Identification Number of a tokenized card, which is the first - * six digits of a card number. - * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method - * chaining + * @param networkTokenBin The Bank Identification Number of a tokenized card, which is the first six digits of a card number. + * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method chaining */ public ResponseAdditionalDataNetworkTokens networkTokenBin(String networkTokenBin) { this.networkTokenBin = networkTokenBin; @@ -88,11 +90,8 @@ public ResponseAdditionalDataNetworkTokens networkTokenBin(String networkTokenBi } /** - * The Bank Identification Number of a tokenized card, which is the first six digits of a card - * number. - * - * @return networkTokenBin The Bank Identification Number of a tokenized card, which is the first - * six digits of a card number. + * The Bank Identification Number of a tokenized card, which is the first six digits of a card number. + * @return networkTokenBin The Bank Identification Number of a tokenized card, which is the first six digits of a card number. */ @JsonProperty(JSON_PROPERTY_NETWORK_TOKEN_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,11 +100,9 @@ public String getNetworkTokenBin() { } /** - * The Bank Identification Number of a tokenized card, which is the first six digits of a card - * number. + * The Bank Identification Number of a tokenized card, which is the first six digits of a card number. * - * @param networkTokenBin The Bank Identification Number of a tokenized card, which is the first - * six digits of a card number. + * @param networkTokenBin The Bank Identification Number of a tokenized card, which is the first six digits of a card number. */ @JsonProperty(JSON_PROPERTY_NETWORK_TOKEN_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,18 +114,15 @@ public void setNetworkTokenBin(String networkTokenBin) { * The last four digits of a network token. * * @param networkTokenTokenSummary The last four digits of a network token. - * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method - * chaining + * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method chaining */ - public ResponseAdditionalDataNetworkTokens networkTokenTokenSummary( - String networkTokenTokenSummary) { + public ResponseAdditionalDataNetworkTokens networkTokenTokenSummary(String networkTokenTokenSummary) { this.networkTokenTokenSummary = networkTokenTokenSummary; return this; } /** * The last four digits of a network token. - * * @return networkTokenTokenSummary The last four digits of a network token. */ @JsonProperty(JSON_PROPERTY_NETWORK_TOKEN_TOKEN_SUMMARY) @@ -148,7 +142,9 @@ public void setNetworkTokenTokenSummary(String networkTokenTokenSummary) { this.networkTokenTokenSummary = networkTokenTokenSummary; } - /** Return true if this ResponseAdditionalDataNetworkTokens object is equal to o. */ + /** + * Return true if this ResponseAdditionalDataNetworkTokens object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -157,14 +153,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResponseAdditionalDataNetworkTokens responseAdditionalDataNetworkTokens = - (ResponseAdditionalDataNetworkTokens) o; - return Objects.equals( - this.networkTokenAvailable, responseAdditionalDataNetworkTokens.networkTokenAvailable) - && Objects.equals(this.networkTokenBin, responseAdditionalDataNetworkTokens.networkTokenBin) - && Objects.equals( - this.networkTokenTokenSummary, - responseAdditionalDataNetworkTokens.networkTokenTokenSummary); + ResponseAdditionalDataNetworkTokens responseAdditionalDataNetworkTokens = (ResponseAdditionalDataNetworkTokens) o; + return Objects.equals(this.networkTokenAvailable, responseAdditionalDataNetworkTokens.networkTokenAvailable) && + Objects.equals(this.networkTokenBin, responseAdditionalDataNetworkTokens.networkTokenBin) && + Objects.equals(this.networkTokenTokenSummary, responseAdditionalDataNetworkTokens.networkTokenTokenSummary); } @Override @@ -176,19 +168,16 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataNetworkTokens {\n"); - sb.append(" networkTokenAvailable: ") - .append(toIndentedString(networkTokenAvailable)) - .append("\n"); + sb.append(" networkTokenAvailable: ").append(toIndentedString(networkTokenAvailable)).append("\n"); sb.append(" networkTokenBin: ").append(toIndentedString(networkTokenBin)).append("\n"); - sb.append(" networkTokenTokenSummary: ") - .append(toIndentedString(networkTokenTokenSummary)) - .append("\n"); + sb.append(" networkTokenTokenSummary: ").append(toIndentedString(networkTokenTokenSummary)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -197,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResponseAdditionalDataNetworkTokens given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataNetworkTokens - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ResponseAdditionalDataNetworkTokens + * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataNetworkTokens */ - public static ResponseAdditionalDataNetworkTokens fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataNetworkTokens fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataNetworkTokens.class); } - - /** - * Convert an instance of ResponseAdditionalDataNetworkTokens to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResponseAdditionalDataNetworkTokens to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataOpi.java b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataOpi.java index 4cd26799b..37d0266cd 100644 --- a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataOpi.java +++ b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataOpi.java @@ -2,41 +2,46 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ResponseAdditionalDataOpi */ -@JsonPropertyOrder({ResponseAdditionalDataOpi.JSON_PROPERTY_OPI_TRANS_TOKEN}) + +/** + * ResponseAdditionalDataOpi + */ +@JsonPropertyOrder({ + ResponseAdditionalDataOpi.JSON_PROPERTY_OPI_TRANS_TOKEN +}) + public class ResponseAdditionalDataOpi { public static final String JSON_PROPERTY_OPI_TRANS_TOKEN = "opi.transToken"; private String opiTransToken; - public ResponseAdditionalDataOpi() {} + public ResponseAdditionalDataOpi() { + } /** - * Returned in the response if you included `opi.includeTransToken: true` in an - * ecommerce payment request. This contains an Oracle Payment Interface token that you can store - * in your Oracle Opera database to identify tokenized ecommerce transactions. For more - * information and required settings, see [Oracle - * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). * - * @param opiTransToken Returned in the response if you included `opi.includeTransToken: - * true` in an ecommerce payment request. This contains an Oracle Payment Interface token - * that you can store in your Oracle Opera database to identify tokenized ecommerce - * transactions. For more information and required settings, see [Oracle - * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * @param opiTransToken Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). * @return the current {@code ResponseAdditionalDataOpi} instance, allowing for method chaining */ public ResponseAdditionalDataOpi opiTransToken(String opiTransToken) { @@ -45,17 +50,8 @@ public ResponseAdditionalDataOpi opiTransToken(String opiTransToken) { } /** - * Returned in the response if you included `opi.includeTransToken: true` in an - * ecommerce payment request. This contains an Oracle Payment Interface token that you can store - * in your Oracle Opera database to identify tokenized ecommerce transactions. For more - * information and required settings, see [Oracle - * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). - * - * @return opiTransToken Returned in the response if you included `opi.includeTransToken: - * true` in an ecommerce payment request. This contains an Oracle Payment Interface token - * that you can store in your Oracle Opera database to identify tokenized ecommerce - * transactions. For more information and required settings, see [Oracle - * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * @return opiTransToken Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). */ @JsonProperty(JSON_PROPERTY_OPI_TRANS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,17 +60,9 @@ public String getOpiTransToken() { } /** - * Returned in the response if you included `opi.includeTransToken: true` in an - * ecommerce payment request. This contains an Oracle Payment Interface token that you can store - * in your Oracle Opera database to identify tokenized ecommerce transactions. For more - * information and required settings, see [Oracle - * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). * - * @param opiTransToken Returned in the response if you included `opi.includeTransToken: - * true` in an ecommerce payment request. This contains an Oracle Payment Interface token - * that you can store in your Oracle Opera database to identify tokenized ecommerce - * transactions. For more information and required settings, see [Oracle - * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * @param opiTransToken Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). */ @JsonProperty(JSON_PROPERTY_OPI_TRANS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -82,7 +70,9 @@ public void setOpiTransToken(String opiTransToken) { this.opiTransToken = opiTransToken; } - /** Return true if this ResponseAdditionalDataOpi object is equal to o. */ + /** + * Return true if this ResponseAdditionalDataOpi object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -110,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -119,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResponseAdditionalDataOpi given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataOpi - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ResponseAdditionalDataOpi + * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataOpi */ - public static ResponseAdditionalDataOpi fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataOpi fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataOpi.class); } - - /** - * Convert an instance of ResponseAdditionalDataOpi to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResponseAdditionalDataOpi to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataSepa.java b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataSepa.java index 3305aeb70..45f97d601 100644 --- a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataSepa.java +++ b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataSepa.java @@ -2,57 +2,64 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ResponseAdditionalDataSepa */ + +/** + * ResponseAdditionalDataSepa + */ @JsonPropertyOrder({ ResponseAdditionalDataSepa.JSON_PROPERTY_SEPADIRECTDEBIT_DATE_OF_SIGNATURE, ResponseAdditionalDataSepa.JSON_PROPERTY_SEPADIRECTDEBIT_MANDATE_ID, ResponseAdditionalDataSepa.JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE }) + public class ResponseAdditionalDataSepa { - public static final String JSON_PROPERTY_SEPADIRECTDEBIT_DATE_OF_SIGNATURE = - "sepadirectdebit.dateOfSignature"; + public static final String JSON_PROPERTY_SEPADIRECTDEBIT_DATE_OF_SIGNATURE = "sepadirectdebit.dateOfSignature"; private String sepadirectdebitDateOfSignature; public static final String JSON_PROPERTY_SEPADIRECTDEBIT_MANDATE_ID = "sepadirectdebit.mandateId"; private String sepadirectdebitMandateId; - public static final String JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE = - "sepadirectdebit.sequenceType"; + public static final String JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE = "sepadirectdebit.sequenceType"; private String sepadirectdebitSequenceType; - public ResponseAdditionalDataSepa() {} + public ResponseAdditionalDataSepa() { + } /** - * The transaction signature date. Format: yyyy-MM-dd + * The transaction signature date. Format: yyyy-MM-dd * - * @param sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd + * @param sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd * @return the current {@code ResponseAdditionalDataSepa} instance, allowing for method chaining */ - public ResponseAdditionalDataSepa sepadirectdebitDateOfSignature( - String sepadirectdebitDateOfSignature) { + public ResponseAdditionalDataSepa sepadirectdebitDateOfSignature(String sepadirectdebitDateOfSignature) { this.sepadirectdebitDateOfSignature = sepadirectdebitDateOfSignature; return this; } /** - * The transaction signature date. Format: yyyy-MM-dd - * - * @return sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd + * The transaction signature date. Format: yyyy-MM-dd + * @return sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_DATE_OF_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -61,9 +68,9 @@ public String getSepadirectdebitDateOfSignature() { } /** - * The transaction signature date. Format: yyyy-MM-dd + * The transaction signature date. Format: yyyy-MM-dd * - * @param sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd + * @param sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_DATE_OF_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -74,8 +81,7 @@ public void setSepadirectdebitDateOfSignature(String sepadirectdebitDateOfSignat /** * Its value corresponds to the pspReference value of the transaction. * - * @param sepadirectdebitMandateId Its value corresponds to the pspReference value of the - * transaction. + * @param sepadirectdebitMandateId Its value corresponds to the pspReference value of the transaction. * @return the current {@code ResponseAdditionalDataSepa} instance, allowing for method chaining */ public ResponseAdditionalDataSepa sepadirectdebitMandateId(String sepadirectdebitMandateId) { @@ -85,9 +91,7 @@ public ResponseAdditionalDataSepa sepadirectdebitMandateId(String sepadirectdebi /** * Its value corresponds to the pspReference value of the transaction. - * - * @return sepadirectdebitMandateId Its value corresponds to the pspReference value of the - * transaction. + * @return sepadirectdebitMandateId Its value corresponds to the pspReference value of the transaction. */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_MANDATE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -98,8 +102,7 @@ public String getSepadirectdebitMandateId() { /** * Its value corresponds to the pspReference value of the transaction. * - * @param sepadirectdebitMandateId Its value corresponds to the pspReference value of the - * transaction. + * @param sepadirectdebitMandateId Its value corresponds to the pspReference value of the transaction. */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_MANDATE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,39 +111,19 @@ public void setSepadirectdebitMandateId(String sepadirectdebitMandateId) { } /** - * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to - * initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a - * series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out - * regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final - * collection in a series of direct debit instructions. Example: OOFF + * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF * - * @param sepadirectdebitSequenceType This field can take one of the following values: * OneOff: - * (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: - * (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: - * (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by - * the creditor. * Final: (FNAL) Last/final collection in a series of direct debit - * instructions. Example: OOFF + * @param sepadirectdebitSequenceType This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF * @return the current {@code ResponseAdditionalDataSepa} instance, allowing for method chaining */ - public ResponseAdditionalDataSepa sepadirectdebitSequenceType( - String sepadirectdebitSequenceType) { + public ResponseAdditionalDataSepa sepadirectdebitSequenceType(String sepadirectdebitSequenceType) { this.sepadirectdebitSequenceType = sepadirectdebitSequenceType; return this; } /** - * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to - * initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a - * series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out - * regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final - * collection in a series of direct debit instructions. Example: OOFF - * - * @return sepadirectdebitSequenceType This field can take one of the following values: * OneOff: - * (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: - * (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: - * (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by - * the creditor. * Final: (FNAL) Last/final collection in a series of direct debit - * instructions. Example: OOFF + * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF + * @return sepadirectdebitSequenceType This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -149,18 +132,9 @@ public String getSepadirectdebitSequenceType() { } /** - * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to - * initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a - * series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out - * regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final - * collection in a series of direct debit instructions. Example: OOFF + * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF * - * @param sepadirectdebitSequenceType This field can take one of the following values: * OneOff: - * (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: - * (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: - * (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by - * the creditor. * Final: (FNAL) Last/final collection in a series of direct debit - * instructions. Example: OOFF + * @param sepadirectdebitSequenceType This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,7 +142,9 @@ public void setSepadirectdebitSequenceType(String sepadirectdebitSequenceType) { this.sepadirectdebitSequenceType = sepadirectdebitSequenceType; } - /** Return true if this ResponseAdditionalDataSepa object is equal to o. */ + /** + * Return true if this ResponseAdditionalDataSepa object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -178,41 +154,30 @@ public boolean equals(Object o) { return false; } ResponseAdditionalDataSepa responseAdditionalDataSepa = (ResponseAdditionalDataSepa) o; - return Objects.equals( - this.sepadirectdebitDateOfSignature, - responseAdditionalDataSepa.sepadirectdebitDateOfSignature) - && Objects.equals( - this.sepadirectdebitMandateId, responseAdditionalDataSepa.sepadirectdebitMandateId) - && Objects.equals( - this.sepadirectdebitSequenceType, - responseAdditionalDataSepa.sepadirectdebitSequenceType); + return Objects.equals(this.sepadirectdebitDateOfSignature, responseAdditionalDataSepa.sepadirectdebitDateOfSignature) && + Objects.equals(this.sepadirectdebitMandateId, responseAdditionalDataSepa.sepadirectdebitMandateId) && + Objects.equals(this.sepadirectdebitSequenceType, responseAdditionalDataSepa.sepadirectdebitSequenceType); } @Override public int hashCode() { - return Objects.hash( - sepadirectdebitDateOfSignature, sepadirectdebitMandateId, sepadirectdebitSequenceType); + return Objects.hash(sepadirectdebitDateOfSignature, sepadirectdebitMandateId, sepadirectdebitSequenceType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataSepa {\n"); - sb.append(" sepadirectdebitDateOfSignature: ") - .append(toIndentedString(sepadirectdebitDateOfSignature)) - .append("\n"); - sb.append(" sepadirectdebitMandateId: ") - .append(toIndentedString(sepadirectdebitMandateId)) - .append("\n"); - sb.append(" sepadirectdebitSequenceType: ") - .append(toIndentedString(sepadirectdebitSequenceType)) - .append("\n"); + sb.append(" sepadirectdebitDateOfSignature: ").append(toIndentedString(sepadirectdebitDateOfSignature)).append("\n"); + sb.append(" sepadirectdebitMandateId: ").append(toIndentedString(sepadirectdebitMandateId)).append("\n"); + sb.append(" sepadirectdebitSequenceType: ").append(toIndentedString(sepadirectdebitSequenceType)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -221,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResponseAdditionalDataSepa given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataSepa - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ResponseAdditionalDataSepa + * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataSepa */ - public static ResponseAdditionalDataSepa fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataSepa fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataSepa.class); } - - /** - * Convert an instance of ResponseAdditionalDataSepa to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResponseAdditionalDataSepa to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/SDKEphemPubKey.java b/src/main/java/com/adyen/model/payment/SDKEphemPubKey.java index 68475fcfb..3bba6c220 100644 --- a/src/main/java/com/adyen/model/payment/SDKEphemPubKey.java +++ b/src/main/java/com/adyen/model/payment/SDKEphemPubKey.java @@ -2,28 +2,38 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** SDKEphemPubKey */ + +/** + * SDKEphemPubKey + */ @JsonPropertyOrder({ SDKEphemPubKey.JSON_PROPERTY_CRV, SDKEphemPubKey.JSON_PROPERTY_KTY, SDKEphemPubKey.JSON_PROPERTY_X, SDKEphemPubKey.JSON_PROPERTY_Y }) + public class SDKEphemPubKey { public static final String JSON_PROPERTY_CRV = "crv"; private String crv; @@ -37,7 +47,8 @@ public class SDKEphemPubKey { public static final String JSON_PROPERTY_Y = "y"; private String y; - public SDKEphemPubKey() {} + public SDKEphemPubKey() { + } /** * The `crv` value as received from the 3D Secure 2 SDK. @@ -52,7 +63,6 @@ public SDKEphemPubKey crv(String crv) { /** * The `crv` value as received from the 3D Secure 2 SDK. - * * @return crv The `crv` value as received from the 3D Secure 2 SDK. */ @JsonProperty(JSON_PROPERTY_CRV) @@ -85,7 +95,6 @@ public SDKEphemPubKey kty(String kty) { /** * The `kty` value as received from the 3D Secure 2 SDK. - * * @return kty The `kty` value as received from the 3D Secure 2 SDK. */ @JsonProperty(JSON_PROPERTY_KTY) @@ -118,7 +127,6 @@ public SDKEphemPubKey x(String x) { /** * The `x` value as received from the 3D Secure 2 SDK. - * * @return x The `x` value as received from the 3D Secure 2 SDK. */ @JsonProperty(JSON_PROPERTY_X) @@ -151,7 +159,6 @@ public SDKEphemPubKey y(String y) { /** * The `y` value as received from the 3D Secure 2 SDK. - * * @return y The `y` value as received from the 3D Secure 2 SDK. */ @JsonProperty(JSON_PROPERTY_Y) @@ -171,7 +178,9 @@ public void setY(String y) { this.y = y; } - /** Return true if this SDKEphemPubKey object is equal to o. */ + /** + * Return true if this SDKEphemPubKey object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -181,10 +190,10 @@ public boolean equals(Object o) { return false; } SDKEphemPubKey sdKEphemPubKey = (SDKEphemPubKey) o; - return Objects.equals(this.crv, sdKEphemPubKey.crv) - && Objects.equals(this.kty, sdKEphemPubKey.kty) - && Objects.equals(this.x, sdKEphemPubKey.x) - && Objects.equals(this.y, sdKEphemPubKey.y); + return Objects.equals(this.crv, sdKEphemPubKey.crv) && + Objects.equals(this.kty, sdKEphemPubKey.kty) && + Objects.equals(this.x, sdKEphemPubKey.x) && + Objects.equals(this.y, sdKEphemPubKey.y); } @Override @@ -205,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -214,7 +224,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SDKEphemPubKey given an JSON string * * @param jsonString JSON string @@ -224,12 +234,11 @@ private String toIndentedString(Object o) { public static SDKEphemPubKey fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SDKEphemPubKey.class); } - - /** - * Convert an instance of SDKEphemPubKey to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SDKEphemPubKey to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/SecureRemoteCommerceCheckoutData.java b/src/main/java/com/adyen/model/payment/SecureRemoteCommerceCheckoutData.java index 172514a5d..48ffca154 100644 --- a/src/main/java/com/adyen/model/payment/SecureRemoteCommerceCheckoutData.java +++ b/src/main/java/com/adyen/model/payment/SecureRemoteCommerceCheckoutData.java @@ -2,26 +2,31 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** SecureRemoteCommerceCheckoutData */ +/** + * SecureRemoteCommerceCheckoutData + */ @JsonPropertyOrder({ SecureRemoteCommerceCheckoutData.JSON_PROPERTY_CHECKOUT_PAYLOAD, SecureRemoteCommerceCheckoutData.JSON_PROPERTY_CORRELATION_ID, @@ -30,6 +35,7 @@ SecureRemoteCommerceCheckoutData.JSON_PROPERTY_SCHEME, SecureRemoteCommerceCheckoutData.JSON_PROPERTY_TOKEN_REFERENCE }) + public class SecureRemoteCommerceCheckoutData { public static final String JSON_PROPERTY_CHECKOUT_PAYLOAD = "checkoutPayload"; private String checkoutPayload; @@ -43,8 +49,11 @@ public class SecureRemoteCommerceCheckoutData { public static final String JSON_PROPERTY_DIGITAL_CARD_ID = "digitalCardId"; private String digitalCardId; - /** The Secure Remote Commerce scheme. */ + /** + * The Secure Remote Commerce scheme. + */ public enum SchemeEnum { + MC(String.valueOf("mc")), VISA(String.valueOf("visa")); @@ -54,7 +63,7 @@ public enum SchemeEnum { private String value; SchemeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -75,11 +84,7 @@ public static SchemeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "SchemeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(SchemeEnum.values())); + LOG.warning("SchemeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(SchemeEnum.values())); return null; } } @@ -90,14 +95,14 @@ public static SchemeEnum fromValue(String value) { public static final String JSON_PROPERTY_TOKEN_REFERENCE = "tokenReference"; private String tokenReference; - public SecureRemoteCommerceCheckoutData() {} + public SecureRemoteCommerceCheckoutData() { + } /** * The Secure Remote Commerce checkout payload to process the payment with. * * @param checkoutPayload The Secure Remote Commerce checkout payload to process the payment with. - * @return the current {@code SecureRemoteCommerceCheckoutData} instance, allowing for method - * chaining + * @return the current {@code SecureRemoteCommerceCheckoutData} instance, allowing for method chaining */ public SecureRemoteCommerceCheckoutData checkoutPayload(String checkoutPayload) { this.checkoutPayload = checkoutPayload; @@ -106,9 +111,7 @@ public SecureRemoteCommerceCheckoutData checkoutPayload(String checkoutPayload) /** * The Secure Remote Commerce checkout payload to process the payment with. - * - * @return checkoutPayload The Secure Remote Commerce checkout payload to process the payment - * with. + * @return checkoutPayload The Secure Remote Commerce checkout payload to process the payment with. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_PAYLOAD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,15 +131,10 @@ public void setCheckoutPayload(String checkoutPayload) { } /** - * This is the unique identifier generated by SRC system to track and link SRC messages. Available - * within the present checkout session (e.g. received in an earlier API response during the - * present session). + * This is the unique identifier generated by SRC system to track and link SRC messages. Available within the present checkout session (e.g. received in an earlier API response during the present session). * - * @param correlationId This is the unique identifier generated by SRC system to track and link - * SRC messages. Available within the present checkout session (e.g. received in an earlier - * API response during the present session). - * @return the current {@code SecureRemoteCommerceCheckoutData} instance, allowing for method - * chaining + * @param correlationId This is the unique identifier generated by SRC system to track and link SRC messages. Available within the present checkout session (e.g. received in an earlier API response during the present session). + * @return the current {@code SecureRemoteCommerceCheckoutData} instance, allowing for method chaining */ public SecureRemoteCommerceCheckoutData correlationId(String correlationId) { this.correlationId = correlationId; @@ -144,13 +142,8 @@ public SecureRemoteCommerceCheckoutData correlationId(String correlationId) { } /** - * This is the unique identifier generated by SRC system to track and link SRC messages. Available - * within the present checkout session (e.g. received in an earlier API response during the - * present session). - * - * @return correlationId This is the unique identifier generated by SRC system to track and link - * SRC messages. Available within the present checkout session (e.g. received in an earlier - * API response during the present session). + * This is the unique identifier generated by SRC system to track and link SRC messages. Available within the present checkout session (e.g. received in an earlier API response during the present session). + * @return correlationId This is the unique identifier generated by SRC system to track and link SRC messages. Available within the present checkout session (e.g. received in an earlier API response during the present session). */ @JsonProperty(JSON_PROPERTY_CORRELATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,13 +152,9 @@ public String getCorrelationId() { } /** - * This is the unique identifier generated by SRC system to track and link SRC messages. Available - * within the present checkout session (e.g. received in an earlier API response during the - * present session). + * This is the unique identifier generated by SRC system to track and link SRC messages. Available within the present checkout session (e.g. received in an earlier API response during the present session). * - * @param correlationId This is the unique identifier generated by SRC system to track and link - * SRC messages. Available within the present checkout session (e.g. received in an earlier - * API response during the present session). + * @param correlationId This is the unique identifier generated by SRC system to track and link SRC messages. Available within the present checkout session (e.g. received in an earlier API response during the present session). */ @JsonProperty(JSON_PROPERTY_CORRELATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -174,13 +163,10 @@ public void setCorrelationId(String correlationId) { } /** - * The [card verification - * code](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#card-security-code-cvc-cvv-cid). + * The [card verification code](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#card-security-code-cvc-cvv-cid). * - * @param cvc The [card verification - * code](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#card-security-code-cvc-cvv-cid). - * @return the current {@code SecureRemoteCommerceCheckoutData} instance, allowing for method - * chaining + * @param cvc The [card verification code](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#card-security-code-cvc-cvv-cid). + * @return the current {@code SecureRemoteCommerceCheckoutData} instance, allowing for method chaining */ public SecureRemoteCommerceCheckoutData cvc(String cvc) { this.cvc = cvc; @@ -188,11 +174,8 @@ public SecureRemoteCommerceCheckoutData cvc(String cvc) { } /** - * The [card verification - * code](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#card-security-code-cvc-cvv-cid). - * - * @return cvc The [card verification - * code](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#card-security-code-cvc-cvv-cid). + * The [card verification code](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#card-security-code-cvc-cvv-cid). + * @return cvc The [card verification code](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#card-security-code-cvc-cvv-cid). */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -201,11 +184,9 @@ public String getCvc() { } /** - * The [card verification - * code](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#card-security-code-cvc-cvv-cid). + * The [card verification code](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#card-security-code-cvc-cvv-cid). * - * @param cvc The [card verification - * code](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#card-security-code-cvc-cvv-cid). + * @param cvc The [card verification code](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#card-security-code-cvc-cvv-cid). */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,13 +195,10 @@ public void setCvc(String cvc) { } /** - * A unique identifier that represents the token associated with a card enrolled. Required for - * scheme 'mc'. + * A unique identifier that represents the token associated with a card enrolled. Required for scheme 'mc'. * - * @param digitalCardId A unique identifier that represents the token associated with a card - * enrolled. Required for scheme 'mc'. - * @return the current {@code SecureRemoteCommerceCheckoutData} instance, allowing for method - * chaining + * @param digitalCardId A unique identifier that represents the token associated with a card enrolled. Required for scheme 'mc'. + * @return the current {@code SecureRemoteCommerceCheckoutData} instance, allowing for method chaining */ public SecureRemoteCommerceCheckoutData digitalCardId(String digitalCardId) { this.digitalCardId = digitalCardId; @@ -228,11 +206,8 @@ public SecureRemoteCommerceCheckoutData digitalCardId(String digitalCardId) { } /** - * A unique identifier that represents the token associated with a card enrolled. Required for - * scheme 'mc'. - * - * @return digitalCardId A unique identifier that represents the token associated with a card - * enrolled. Required for scheme 'mc'. + * A unique identifier that represents the token associated with a card enrolled. Required for scheme 'mc'. + * @return digitalCardId A unique identifier that represents the token associated with a card enrolled. Required for scheme 'mc'. */ @JsonProperty(JSON_PROPERTY_DIGITAL_CARD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -241,11 +216,9 @@ public String getDigitalCardId() { } /** - * A unique identifier that represents the token associated with a card enrolled. Required for - * scheme 'mc'. + * A unique identifier that represents the token associated with a card enrolled. Required for scheme 'mc'. * - * @param digitalCardId A unique identifier that represents the token associated with a card - * enrolled. Required for scheme 'mc'. + * @param digitalCardId A unique identifier that represents the token associated with a card enrolled. Required for scheme 'mc'. */ @JsonProperty(JSON_PROPERTY_DIGITAL_CARD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -257,8 +230,7 @@ public void setDigitalCardId(String digitalCardId) { * The Secure Remote Commerce scheme. * * @param scheme The Secure Remote Commerce scheme. - * @return the current {@code SecureRemoteCommerceCheckoutData} instance, allowing for method - * chaining + * @return the current {@code SecureRemoteCommerceCheckoutData} instance, allowing for method chaining */ public SecureRemoteCommerceCheckoutData scheme(SchemeEnum scheme) { this.scheme = scheme; @@ -267,7 +239,6 @@ public SecureRemoteCommerceCheckoutData scheme(SchemeEnum scheme) { /** * The Secure Remote Commerce scheme. - * * @return scheme The Secure Remote Commerce scheme. */ @JsonProperty(JSON_PROPERTY_SCHEME) @@ -288,13 +259,10 @@ public void setScheme(SchemeEnum scheme) { } /** - * A unique identifier that represents the token associated with a card enrolled. Required for - * scheme 'visa'. + * A unique identifier that represents the token associated with a card enrolled. Required for scheme 'visa'. * - * @param tokenReference A unique identifier that represents the token associated with a card - * enrolled. Required for scheme 'visa'. - * @return the current {@code SecureRemoteCommerceCheckoutData} instance, allowing for method - * chaining + * @param tokenReference A unique identifier that represents the token associated with a card enrolled. Required for scheme 'visa'. + * @return the current {@code SecureRemoteCommerceCheckoutData} instance, allowing for method chaining */ public SecureRemoteCommerceCheckoutData tokenReference(String tokenReference) { this.tokenReference = tokenReference; @@ -302,11 +270,8 @@ public SecureRemoteCommerceCheckoutData tokenReference(String tokenReference) { } /** - * A unique identifier that represents the token associated with a card enrolled. Required for - * scheme 'visa'. - * - * @return tokenReference A unique identifier that represents the token associated with a card - * enrolled. Required for scheme 'visa'. + * A unique identifier that represents the token associated with a card enrolled. Required for scheme 'visa'. + * @return tokenReference A unique identifier that represents the token associated with a card enrolled. Required for scheme 'visa'. */ @JsonProperty(JSON_PROPERTY_TOKEN_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -315,11 +280,9 @@ public String getTokenReference() { } /** - * A unique identifier that represents the token associated with a card enrolled. Required for - * scheme 'visa'. + * A unique identifier that represents the token associated with a card enrolled. Required for scheme 'visa'. * - * @param tokenReference A unique identifier that represents the token associated with a card - * enrolled. Required for scheme 'visa'. + * @param tokenReference A unique identifier that represents the token associated with a card enrolled. Required for scheme 'visa'. */ @JsonProperty(JSON_PROPERTY_TOKEN_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -327,7 +290,9 @@ public void setTokenReference(String tokenReference) { this.tokenReference = tokenReference; } - /** Return true if this SecureRemoteCommerceCheckoutData object is equal to o. */ + /** + * Return true if this SecureRemoteCommerceCheckoutData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -336,14 +301,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SecureRemoteCommerceCheckoutData secureRemoteCommerceCheckoutData = - (SecureRemoteCommerceCheckoutData) o; - return Objects.equals(this.checkoutPayload, secureRemoteCommerceCheckoutData.checkoutPayload) - && Objects.equals(this.correlationId, secureRemoteCommerceCheckoutData.correlationId) - && Objects.equals(this.cvc, secureRemoteCommerceCheckoutData.cvc) - && Objects.equals(this.digitalCardId, secureRemoteCommerceCheckoutData.digitalCardId) - && Objects.equals(this.scheme, secureRemoteCommerceCheckoutData.scheme) - && Objects.equals(this.tokenReference, secureRemoteCommerceCheckoutData.tokenReference); + SecureRemoteCommerceCheckoutData secureRemoteCommerceCheckoutData = (SecureRemoteCommerceCheckoutData) o; + return Objects.equals(this.checkoutPayload, secureRemoteCommerceCheckoutData.checkoutPayload) && + Objects.equals(this.correlationId, secureRemoteCommerceCheckoutData.correlationId) && + Objects.equals(this.cvc, secureRemoteCommerceCheckoutData.cvc) && + Objects.equals(this.digitalCardId, secureRemoteCommerceCheckoutData.digitalCardId) && + Objects.equals(this.scheme, secureRemoteCommerceCheckoutData.scheme) && + Objects.equals(this.tokenReference, secureRemoteCommerceCheckoutData.tokenReference); } @Override @@ -366,7 +330,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -375,24 +340,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SecureRemoteCommerceCheckoutData given an JSON string * * @param jsonString JSON string * @return An instance of SecureRemoteCommerceCheckoutData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SecureRemoteCommerceCheckoutData + * @throws JsonProcessingException if the JSON string is invalid with respect to SecureRemoteCommerceCheckoutData */ - public static SecureRemoteCommerceCheckoutData fromJson(String jsonString) - throws JsonProcessingException { + public static SecureRemoteCommerceCheckoutData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SecureRemoteCommerceCheckoutData.class); } - - /** - * Convert an instance of SecureRemoteCommerceCheckoutData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SecureRemoteCommerceCheckoutData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ServiceError.java b/src/main/java/com/adyen/model/payment/ServiceError.java index 30720ebd8..653d729eb 100644 --- a/src/main/java/com/adyen/model/payment/ServiceError.java +++ b/src/main/java/com/adyen/model/payment/ServiceError.java @@ -2,24 +2,33 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ServiceError */ +/** + * ServiceError + */ @JsonPropertyOrder({ ServiceError.JSON_PROPERTY_ADDITIONAL_DATA, ServiceError.JSON_PROPERTY_ERROR_CODE, @@ -28,6 +37,7 @@ ServiceError.JSON_PROPERTY_PSP_REFERENCE, ServiceError.JSON_PROPERTY_STATUS }) + public class ServiceError { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -47,15 +57,13 @@ public class ServiceError { public static final String JSON_PROPERTY_STATUS = "status"; private Integer status; - public ServiceError() {} + public ServiceError() { + } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first. Go to **Customer Area** > **Developers** > - * **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. * @return the current {@code ServiceError} instance, allowing for method chaining */ public ServiceError additionalData(Map additionalData) { @@ -72,12 +80,8 @@ public ServiceError putAdditionalDataItem(String key, String additionalDataItem) } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first. Go to **Customer Area** > **Developers** > **Additional data**. - * - * @return additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first. Go to **Customer Area** > **Developers** > - * **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * @return additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -86,12 +90,9 @@ public Map getAdditionalData() { } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first. Go to **Customer Area** > **Developers** > - * **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,7 +113,6 @@ public ServiceError errorCode(String errorCode) { /** * The error code mapped to the error message. - * * @return errorCode The error code mapped to the error message. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -145,7 +145,6 @@ public ServiceError errorType(String errorType) { /** * The category of the error. - * * @return errorType The category of the error. */ @JsonProperty(JSON_PROPERTY_ERROR_TYPE) @@ -178,7 +177,6 @@ public ServiceError message(String message) { /** * A short explanation of the issue. - * * @return message A short explanation of the issue. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -211,7 +209,6 @@ public ServiceError pspReference(String pspReference) { /** * The PSP reference of the payment. - * * @return pspReference The PSP reference of the payment. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -244,7 +241,6 @@ public ServiceError status(Integer status) { /** * The HTTP response status. - * * @return status The HTTP response status. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -264,7 +260,9 @@ public void setStatus(Integer status) { this.status = status; } - /** Return true if this ServiceError object is equal to o. */ + /** + * Return true if this ServiceError object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -274,12 +272,12 @@ public boolean equals(Object o) { return false; } ServiceError serviceError = (ServiceError) o; - return Objects.equals(this.additionalData, serviceError.additionalData) - && Objects.equals(this.errorCode, serviceError.errorCode) - && Objects.equals(this.errorType, serviceError.errorType) - && Objects.equals(this.message, serviceError.message) - && Objects.equals(this.pspReference, serviceError.pspReference) - && Objects.equals(this.status, serviceError.status); + return Objects.equals(this.additionalData, serviceError.additionalData) && + Objects.equals(this.errorCode, serviceError.errorCode) && + Objects.equals(this.errorType, serviceError.errorType) && + Objects.equals(this.message, serviceError.message) && + Objects.equals(this.pspReference, serviceError.pspReference) && + Objects.equals(this.status, serviceError.status); } @Override @@ -302,7 +300,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -311,7 +310,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ServiceError given an JSON string * * @param jsonString JSON string @@ -321,12 +320,11 @@ private String toIndentedString(Object o) { public static ServiceError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } - - /** - * Convert an instance of ServiceError to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ServiceError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ShopperInteractionDevice.java b/src/main/java/com/adyen/model/payment/ShopperInteractionDevice.java index 8b08225d5..ec78155cf 100644 --- a/src/main/java/com/adyen/model/payment/ShopperInteractionDevice.java +++ b/src/main/java/com/adyen/model/payment/ShopperInteractionDevice.java @@ -2,27 +2,37 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ShopperInteractionDevice */ + +/** + * ShopperInteractionDevice + */ @JsonPropertyOrder({ ShopperInteractionDevice.JSON_PROPERTY_LOCALE, ShopperInteractionDevice.JSON_PROPERTY_OS, ShopperInteractionDevice.JSON_PROPERTY_OS_VERSION }) + public class ShopperInteractionDevice { public static final String JSON_PROPERTY_LOCALE = "locale"; private String locale; @@ -33,7 +43,8 @@ public class ShopperInteractionDevice { public static final String JSON_PROPERTY_OS_VERSION = "osVersion"; private String osVersion; - public ShopperInteractionDevice() {} + public ShopperInteractionDevice() { + } /** * Locale on the shopper interaction device. @@ -48,7 +59,6 @@ public ShopperInteractionDevice locale(String locale) { /** * Locale on the shopper interaction device. - * * @return locale Locale on the shopper interaction device. */ @JsonProperty(JSON_PROPERTY_LOCALE) @@ -81,7 +91,6 @@ public ShopperInteractionDevice os(String os) { /** * Operating system running on the shopper interaction device. - * * @return os Operating system running on the shopper interaction device. */ @JsonProperty(JSON_PROPERTY_OS) @@ -114,7 +123,6 @@ public ShopperInteractionDevice osVersion(String osVersion) { /** * Version of the operating system on the shopper interaction device. - * * @return osVersion Version of the operating system on the shopper interaction device. */ @JsonProperty(JSON_PROPERTY_OS_VERSION) @@ -134,7 +142,9 @@ public void setOsVersion(String osVersion) { this.osVersion = osVersion; } - /** Return true if this ShopperInteractionDevice object is equal to o. */ + /** + * Return true if this ShopperInteractionDevice object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,9 +154,9 @@ public boolean equals(Object o) { return false; } ShopperInteractionDevice shopperInteractionDevice = (ShopperInteractionDevice) o; - return Objects.equals(this.locale, shopperInteractionDevice.locale) - && Objects.equals(this.os, shopperInteractionDevice.os) - && Objects.equals(this.osVersion, shopperInteractionDevice.osVersion); + return Objects.equals(this.locale, shopperInteractionDevice.locale) && + Objects.equals(this.os, shopperInteractionDevice.os) && + Objects.equals(this.osVersion, shopperInteractionDevice.osVersion); } @Override @@ -166,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ShopperInteractionDevice given an JSON string * * @param jsonString JSON string * @return An instance of ShopperInteractionDevice - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ShopperInteractionDevice + * @throws JsonProcessingException if the JSON string is invalid with respect to ShopperInteractionDevice */ - public static ShopperInteractionDevice fromJson(String jsonString) - throws JsonProcessingException { + public static ShopperInteractionDevice fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ShopperInteractionDevice.class); } - - /** - * Convert an instance of ShopperInteractionDevice to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ShopperInteractionDevice to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/Split.java b/src/main/java/com/adyen/model/payment/Split.java index 018a5a6ba..9819bd487 100644 --- a/src/main/java/com/adyen/model/payment/Split.java +++ b/src/main/java/com/adyen/model/payment/Split.java @@ -2,26 +2,32 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.payment.SplitAmount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** Split */ + +/** + * Split + */ @JsonPropertyOrder({ Split.JSON_PROPERTY_ACCOUNT, Split.JSON_PROPERTY_AMOUNT, @@ -29,6 +35,7 @@ Split.JSON_PROPERTY_REFERENCE, Split.JSON_PROPERTY_TYPE }) + public class Split { public static final String JSON_PROPERTY_ACCOUNT = "account"; private String account; @@ -43,32 +50,10 @@ public class Split { private String reference; /** - * The part of the payment you want to book to the specified `account`. Possible values - * for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * - * **BalanceAccount**: books part of the payment (specified in `amount`) to the - * specified `account`. * Transaction fees types that you can book to the specified - * `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme - * fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the - * aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the - * transaction fees due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the - * transaction fees due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: - * the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the - * fees paid to the card scheme for using their network. * **Commission**: your platform's - * commission on the payment (specified in `amount`), booked to your liable balance - * account. * **Remainder**: the amount left over after a currency conversion, booked to the - * specified `account`. * **TopUp**: allows you and your users to top up balance - * accounts using direct debit, card payments, or other payment methods. * **VAT**: the - * value-added tax charged on the payment, booked to your platforms liable balance account. * - * **Commission**: your platform's commission (specified in `amount`) on the - * payment, booked to your liable balance account. * **Default**: in very specific use cases, - * allows you to book the specified `amount` to the specified `account`. For - * more information, contact Adyen support. Possible values for the [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, - * **MarketPlace**, **PaymentFee**, **VAT**. + * The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. */ public enum TypeEnum { + ACQUIRINGFEES(String.valueOf("AcquiringFees")), ADYENCOMMISSION(String.valueOf("AdyenCommission")), @@ -106,7 +91,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -127,11 +112,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -139,26 +120,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public Split() {} + public Split() { + } /** - * The unique identifier of the account to which the split amount is booked. Required if - * `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms): The - * [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) - * of the account to which the split amount is booked. * [Balance - * Platform](https://docs.adyen.com/adyen-for-platforms-model): The - * [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) - * of the account to which the split amount is booked. + * The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/classic-platforms): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked. * - * @param account The unique identifier of the account to which the split amount is booked. - * Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms): The - * [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) - * of the account to which the split amount is booked. * [Balance - * Platform](https://docs.adyen.com/adyen-for-platforms-model): The - * [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) - * of the account to which the split amount is booked. + * @param account The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/classic-platforms): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked. * @return the current {@code Split} instance, allowing for method chaining */ public Split account(String account) { @@ -167,23 +135,8 @@ public Split account(String account) { } /** - * The unique identifier of the account to which the split amount is booked. Required if - * `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms): The - * [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) - * of the account to which the split amount is booked. * [Balance - * Platform](https://docs.adyen.com/adyen-for-platforms-model): The - * [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) - * of the account to which the split amount is booked. - * - * @return account The unique identifier of the account to which the split amount is booked. - * Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms): The - * [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) - * of the account to which the split amount is booked. * [Balance - * Platform](https://docs.adyen.com/adyen-for-platforms-model): The - * [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) - * of the account to which the split amount is booked. + * The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/classic-platforms): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked. + * @return account The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/classic-platforms): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked. */ @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,23 +145,9 @@ public String getAccount() { } /** - * The unique identifier of the account to which the split amount is booked. Required if - * `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms): The - * [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) - * of the account to which the split amount is booked. * [Balance - * Platform](https://docs.adyen.com/adyen-for-platforms-model): The - * [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) - * of the account to which the split amount is booked. + * The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/classic-platforms): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked. * - * @param account The unique identifier of the account to which the split amount is booked. - * Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms): The - * [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) - * of the account to which the split amount is booked. * [Balance - * Platform](https://docs.adyen.com/adyen-for-platforms-model): The - * [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) - * of the account to which the split amount is booked. + * @param account The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/classic-platforms): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked. */ @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,7 +158,7 @@ public void setAccount(String account) { /** * amount * - * @param amount + * @param amount * @return the current {@code Split} instance, allowing for method chaining */ public Split amount(SplitAmount amount) { @@ -229,8 +168,7 @@ public Split amount(SplitAmount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -241,7 +179,7 @@ public SplitAmount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -262,7 +200,6 @@ public Split description(String description) { /** * Your description for the split item. - * * @return description Your description for the split item. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -283,19 +220,9 @@ public void setDescription(String description) { } /** - * Your unique reference for the part of the payment booked to the specified `account`. - * This is required if `type` is **MarketPlace** ([Classic Platforms - * integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance - * Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also - * recommend providing a **unique** reference so you can reconcile the split and the associated - * payment in the transaction overview and in the reports. + * Your unique reference for the part of the payment booked to the specified `account`. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also recommend providing a **unique** reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. * - * @param reference Your unique reference for the part of the payment booked to the specified - * `account`. This is required if `type` is **MarketPlace** ([Classic - * Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** - * ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other - * types, we also recommend providing a **unique** reference so you can reconcile the split - * and the associated payment in the transaction overview and in the reports. + * @param reference Your unique reference for the part of the payment booked to the specified `account`. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also recommend providing a **unique** reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. * @return the current {@code Split} instance, allowing for method chaining */ public Split reference(String reference) { @@ -304,19 +231,8 @@ public Split reference(String reference) { } /** - * Your unique reference for the part of the payment booked to the specified `account`. - * This is required if `type` is **MarketPlace** ([Classic Platforms - * integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance - * Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also - * recommend providing a **unique** reference so you can reconcile the split and the associated - * payment in the transaction overview and in the reports. - * - * @return reference Your unique reference for the part of the payment booked to the specified - * `account`. This is required if `type` is **MarketPlace** ([Classic - * Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** - * ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other - * types, we also recommend providing a **unique** reference so you can reconcile the split - * and the associated payment in the transaction overview and in the reports. + * Your unique reference for the part of the payment booked to the specified `account`. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also recommend providing a **unique** reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. + * @return reference Your unique reference for the part of the payment booked to the specified `account`. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also recommend providing a **unique** reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -325,19 +241,9 @@ public String getReference() { } /** - * Your unique reference for the part of the payment booked to the specified `account`. - * This is required if `type` is **MarketPlace** ([Classic Platforms - * integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance - * Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also - * recommend providing a **unique** reference so you can reconcile the split and the associated - * payment in the transaction overview and in the reports. + * Your unique reference for the part of the payment booked to the specified `account`. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also recommend providing a **unique** reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. * - * @param reference Your unique reference for the part of the payment booked to the specified - * `account`. This is required if `type` is **MarketPlace** ([Classic - * Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** - * ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other - * types, we also recommend providing a **unique** reference so you can reconcile the split - * and the associated payment in the transaction overview and in the reports. + * @param reference Your unique reference for the part of the payment booked to the specified `account`. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also recommend providing a **unique** reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -346,56 +252,9 @@ public void setReference(String reference) { } /** - * The part of the payment you want to book to the specified `account`. Possible values - * for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * - * **BalanceAccount**: books part of the payment (specified in `amount`) to the - * specified `account`. * Transaction fees types that you can book to the specified - * `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme - * fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the - * aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the - * transaction fees due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the - * transaction fees due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: - * the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the - * fees paid to the card scheme for using their network. * **Commission**: your platform's - * commission on the payment (specified in `amount`), booked to your liable balance - * account. * **Remainder**: the amount left over after a currency conversion, booked to the - * specified `account`. * **TopUp**: allows you and your users to top up balance - * accounts using direct debit, card payments, or other payment methods. * **VAT**: the - * value-added tax charged on the payment, booked to your platforms liable balance account. * - * **Commission**: your platform's commission (specified in `amount`) on the - * payment, booked to your liable balance account. * **Default**: in very specific use cases, - * allows you to book the specified `amount` to the specified `account`. For - * more information, contact Adyen support. Possible values for the [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, - * **MarketPlace**, **PaymentFee**, **VAT**. + * The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. * - * @param type The part of the payment you want to book to the specified `account`. - * Possible values for the [Balance - * Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books - * part of the payment (specified in `amount`) to the specified `account`. - * * Transaction fees types that you can book to the specified `account`: * - * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * - * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the - * aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the - * transaction fees due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: - * the transaction fees due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * - * **Interchange**: the fees paid to the issuer for each payment made with the card network. * - * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: - * your platform's commission on the payment (specified in `amount`), booked to - * your liable balance account. * **Remainder**: the amount left over after a currency - * conversion, booked to the specified `account`. * **TopUp**: allows you and your - * users to top up balance accounts using direct debit, card payments, or other payment - * methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms - * liable balance account. * **Commission**: your platform's commission (specified in - * `amount`) on the payment, booked to your liable balance account. * **Default**: - * in very specific use cases, allows you to book the specified `amount` to the - * specified `account`. For more information, contact Adyen support. Possible values - * for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): - * **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. + * @param type The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. * @return the current {@code Split} instance, allowing for method chaining */ public Split type(TypeEnum type) { @@ -404,56 +263,8 @@ public Split type(TypeEnum type) { } /** - * The part of the payment you want to book to the specified `account`. Possible values - * for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * - * **BalanceAccount**: books part of the payment (specified in `amount`) to the - * specified `account`. * Transaction fees types that you can book to the specified - * `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme - * fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the - * aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the - * transaction fees due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the - * transaction fees due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: - * the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the - * fees paid to the card scheme for using their network. * **Commission**: your platform's - * commission on the payment (specified in `amount`), booked to your liable balance - * account. * **Remainder**: the amount left over after a currency conversion, booked to the - * specified `account`. * **TopUp**: allows you and your users to top up balance - * accounts using direct debit, card payments, or other payment methods. * **VAT**: the - * value-added tax charged on the payment, booked to your platforms liable balance account. * - * **Commission**: your platform's commission (specified in `amount`) on the - * payment, booked to your liable balance account. * **Default**: in very specific use cases, - * allows you to book the specified `amount` to the specified `account`. For - * more information, contact Adyen support. Possible values for the [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, - * **MarketPlace**, **PaymentFee**, **VAT**. - * - * @return type The part of the payment you want to book to the specified `account`. - * Possible values for the [Balance - * Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books - * part of the payment (specified in `amount`) to the specified `account`. - * * Transaction fees types that you can book to the specified `account`: * - * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * - * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the - * aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the - * transaction fees due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: - * the transaction fees due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * - * **Interchange**: the fees paid to the issuer for each payment made with the card network. * - * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: - * your platform's commission on the payment (specified in `amount`), booked to - * your liable balance account. * **Remainder**: the amount left over after a currency - * conversion, booked to the specified `account`. * **TopUp**: allows you and your - * users to top up balance accounts using direct debit, card payments, or other payment - * methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms - * liable balance account. * **Commission**: your platform's commission (specified in - * `amount`) on the payment, booked to your liable balance account. * **Default**: - * in very specific use cases, allows you to book the specified `amount` to the - * specified `account`. For more information, contact Adyen support. Possible values - * for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): - * **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. + * The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. + * @return type The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -462,56 +273,9 @@ public TypeEnum getType() { } /** - * The part of the payment you want to book to the specified `account`. Possible values - * for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * - * **BalanceAccount**: books part of the payment (specified in `amount`) to the - * specified `account`. * Transaction fees types that you can book to the specified - * `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme - * fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the - * aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the - * transaction fees due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the - * transaction fees due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: - * the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the - * fees paid to the card scheme for using their network. * **Commission**: your platform's - * commission on the payment (specified in `amount`), booked to your liable balance - * account. * **Remainder**: the amount left over after a currency conversion, booked to the - * specified `account`. * **TopUp**: allows you and your users to top up balance - * accounts using direct debit, card payments, or other payment methods. * **VAT**: the - * value-added tax charged on the payment, booked to your platforms liable balance account. * - * **Commission**: your platform's commission (specified in `amount`) on the - * payment, booked to your liable balance account. * **Default**: in very specific use cases, - * allows you to book the specified `amount` to the specified `account`. For - * more information, contact Adyen support. Possible values for the [Classic Platforms - * integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, - * **MarketPlace**, **PaymentFee**, **VAT**. + * The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. * - * @param type The part of the payment you want to book to the specified `account`. - * Possible values for the [Balance - * Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books - * part of the payment (specified in `amount`) to the specified `account`. - * * Transaction fees types that you can book to the specified `account`: * - * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * - * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the - * aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the - * transaction fees due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: - * the transaction fees due to Adyen under [Interchange ++ - * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * - * **Interchange**: the fees paid to the issuer for each payment made with the card network. * - * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: - * your platform's commission on the payment (specified in `amount`), booked to - * your liable balance account. * **Remainder**: the amount left over after a currency - * conversion, booked to the specified `account`. * **TopUp**: allows you and your - * users to top up balance accounts using direct debit, card payments, or other payment - * methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms - * liable balance account. * **Commission**: your platform's commission (specified in - * `amount`) on the payment, booked to your liable balance account. * **Default**: - * in very specific use cases, allows you to book the specified `amount` to the - * specified `account`. For more information, contact Adyen support. Possible values - * for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): - * **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. + * @param type The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -519,7 +283,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this Split object is equal to o. */ + /** + * Return true if this Split object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -529,11 +295,11 @@ public boolean equals(Object o) { return false; } Split split = (Split) o; - return Objects.equals(this.account, split.account) - && Objects.equals(this.amount, split.amount) - && Objects.equals(this.description, split.description) - && Objects.equals(this.reference, split.reference) - && Objects.equals(this.type, split.type); + return Objects.equals(this.account, split.account) && + Objects.equals(this.amount, split.amount) && + Objects.equals(this.description, split.description) && + Objects.equals(this.reference, split.reference) && + Objects.equals(this.type, split.type); } @Override @@ -555,7 +321,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -564,7 +331,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Split given an JSON string * * @param jsonString JSON string @@ -574,12 +341,11 @@ private String toIndentedString(Object o) { public static Split fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Split.class); } - - /** - * Convert an instance of Split to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Split to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/SplitAmount.java b/src/main/java/com/adyen/model/payment/SplitAmount.java index dbbd345eb..c26fe5210 100644 --- a/src/main/java/com/adyen/model/payment/SplitAmount.java +++ b/src/main/java/com/adyen/model/payment/SplitAmount.java @@ -2,23 +2,36 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** SplitAmount */ -@JsonPropertyOrder({SplitAmount.JSON_PROPERTY_CURRENCY, SplitAmount.JSON_PROPERTY_VALUE}) + +/** + * SplitAmount + */ +@JsonPropertyOrder({ + SplitAmount.JSON_PROPERTY_CURRENCY, + SplitAmount.JSON_PROPERTY_VALUE +}) + public class SplitAmount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -26,16 +39,13 @@ public class SplitAmount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public SplitAmount() {} + public SplitAmount() { + } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the - * original payment currency. + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the original payment currency. * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the - * original payment currency. + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the original payment currency. * @return the current {@code SplitAmount} instance, allowing for method chaining */ public SplitAmount currency(String currency) { @@ -44,13 +54,8 @@ public SplitAmount currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the - * original payment currency. - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the - * original payment currency. + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the original payment currency. + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the original payment currency. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -59,13 +64,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the - * original payment currency. + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the original payment currency. * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the - * original payment currency. + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the original payment currency. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -74,11 +75,9 @@ public void setCurrency(String currency) { } /** - * The value of the split amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * The value of the split amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * @param value The value of the split amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * @param value The value of the split amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code SplitAmount} instance, allowing for method chaining */ public SplitAmount value(Long value) { @@ -87,11 +86,8 @@ public SplitAmount value(Long value) { } /** - * The value of the split amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). - * - * @return value The value of the split amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * The value of the split amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @return value The value of the split amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,11 +96,9 @@ public Long getValue() { } /** - * The value of the split amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * The value of the split amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * @param value The value of the split amount, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * @param value The value of the split amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,7 +106,9 @@ public void setValue(Long value) { this.value = value; } - /** Return true if this SplitAmount object is equal to o. */ + /** + * Return true if this SplitAmount object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -122,8 +118,8 @@ public boolean equals(Object o) { return false; } SplitAmount splitAmount = (SplitAmount) o; - return Objects.equals(this.currency, splitAmount.currency) - && Objects.equals(this.value, splitAmount.value); + return Objects.equals(this.currency, splitAmount.currency) && + Objects.equals(this.value, splitAmount.value); } @Override @@ -142,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -151,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SplitAmount given an JSON string * * @param jsonString JSON string @@ -161,12 +158,11 @@ private String toIndentedString(Object o) { public static SplitAmount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SplitAmount.class); } - - /** - * Convert an instance of SplitAmount to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SplitAmount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/SubMerchant.java b/src/main/java/com/adyen/model/payment/SubMerchant.java index 8d7a8f070..814d97294 100644 --- a/src/main/java/com/adyen/model/payment/SubMerchant.java +++ b/src/main/java/com/adyen/model/payment/SubMerchant.java @@ -2,22 +2,31 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** SubMerchant */ + +/** + * SubMerchant + */ @JsonPropertyOrder({ SubMerchant.JSON_PROPERTY_CITY, SubMerchant.JSON_PROPERTY_COUNTRY, @@ -25,6 +34,7 @@ SubMerchant.JSON_PROPERTY_NAME, SubMerchant.JSON_PROPERTY_TAX_ID }) + public class SubMerchant { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -41,14 +51,13 @@ public class SubMerchant { public static final String JSON_PROPERTY_TAX_ID = "taxId"; private String taxId; - public SubMerchant() {} + public SubMerchant() { + } /** - * The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 - * characters + * The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters * - * @param city The city of the sub-merchant's address. * Format: Alphanumeric * Maximum - * length: 13 characters + * @param city The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters * @return the current {@code SubMerchant} instance, allowing for method chaining */ public SubMerchant city(String city) { @@ -57,11 +66,8 @@ public SubMerchant city(String city) { } /** - * The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 - * characters - * - * @return city The city of the sub-merchant's address. * Format: Alphanumeric * Maximum - * length: 13 characters + * The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters + * @return city The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters */ @JsonProperty(JSON_PROPERTY_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,11 +76,9 @@ public String getCity() { } /** - * The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 - * characters + * The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters * - * @param city The city of the sub-merchant's address. * Format: Alphanumeric * Maximum - * length: 13 characters + * @param city The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters */ @JsonProperty(JSON_PROPERTY_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,13 +87,9 @@ public void setCity(String city) { } /** - * The three-letter country code of the sub-merchant's address. For example, **BRA** for - * Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * - * Fixed length: 3 characters + * The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters * - * @param country The three-letter country code of the sub-merchant's address. For example, - * **BRA** for Brazil. * Format: [ISO 3166-1 - * alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * @param country The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters * @return the current {@code SubMerchant} instance, allowing for method chaining */ public SubMerchant country(String country) { @@ -98,13 +98,8 @@ public SubMerchant country(String country) { } /** - * The three-letter country code of the sub-merchant's address. For example, **BRA** for - * Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * - * Fixed length: 3 characters - * - * @return country The three-letter country code of the sub-merchant's address. For example, - * **BRA** for Brazil. * Format: [ISO 3166-1 - * alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * @return country The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,13 +108,9 @@ public String getCountry() { } /** - * The three-letter country code of the sub-merchant's address. For example, **BRA** for - * Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * - * Fixed length: 3 characters + * The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters * - * @param country The three-letter country code of the sub-merchant's address. For example, - * **BRA** for Brazil. * Format: [ISO 3166-1 - * alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * @param country The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,11 +119,9 @@ public void setCountry(String country) { } /** - * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: - * 4 digits + * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits * - * @param mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * - * Fixed length: 4 digits + * @param mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits * @return the current {@code SubMerchant} instance, allowing for method chaining */ public SubMerchant mcc(String mcc) { @@ -141,11 +130,8 @@ public SubMerchant mcc(String mcc) { } /** - * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: - * 4 digits - * - * @return mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * - * Fixed length: 4 digits + * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * @return mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -154,11 +140,9 @@ public String getMcc() { } /** - * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: - * 4 digits + * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits * - * @param mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * - * Fixed length: 4 digits + * @param mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,13 +151,9 @@ public void setMcc(String mcc) { } /** - * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the - * shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum - * length: 22 characters + * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters * - * @param name The name of the sub-merchant. Based on scheme specifications, this value will - * overwrite the shopper statement that will appear in the card statement. * Format: - * Alphanumeric * Maximum length: 22 characters + * @param name The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters * @return the current {@code SubMerchant} instance, allowing for method chaining */ public SubMerchant name(String name) { @@ -182,13 +162,8 @@ public SubMerchant name(String name) { } /** - * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the - * shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum - * length: 22 characters - * - * @return name The name of the sub-merchant. Based on scheme specifications, this value will - * overwrite the shopper statement that will appear in the card statement. * Format: - * Alphanumeric * Maximum length: 22 characters + * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters + * @return name The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -197,13 +172,9 @@ public String getName() { } /** - * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the - * shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum - * length: 22 characters + * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters * - * @param name The name of the sub-merchant. Based on scheme specifications, this value will - * overwrite the shopper statement that will appear in the card statement. * Format: - * Alphanumeric * Maximum length: 22 characters + * @param name The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -212,11 +183,9 @@ public void setName(String name) { } /** - * The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 - * digits for the CNPJ + * The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ * - * @param taxId The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for - * the CPF or 14 digits for the CNPJ + * @param taxId The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ * @return the current {@code SubMerchant} instance, allowing for method chaining */ public SubMerchant taxId(String taxId) { @@ -225,11 +194,8 @@ public SubMerchant taxId(String taxId) { } /** - * The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 - * digits for the CNPJ - * - * @return taxId The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for - * the CPF or 14 digits for the CNPJ + * The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * @return taxId The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ */ @JsonProperty(JSON_PROPERTY_TAX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -238,11 +204,9 @@ public String getTaxId() { } /** - * The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 - * digits for the CNPJ + * The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ * - * @param taxId The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for - * the CPF or 14 digits for the CNPJ + * @param taxId The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ */ @JsonProperty(JSON_PROPERTY_TAX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,7 +214,9 @@ public void setTaxId(String taxId) { this.taxId = taxId; } - /** Return true if this SubMerchant object is equal to o. */ + /** + * Return true if this SubMerchant object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -260,11 +226,11 @@ public boolean equals(Object o) { return false; } SubMerchant subMerchant = (SubMerchant) o; - return Objects.equals(this.city, subMerchant.city) - && Objects.equals(this.country, subMerchant.country) - && Objects.equals(this.mcc, subMerchant.mcc) - && Objects.equals(this.name, subMerchant.name) - && Objects.equals(this.taxId, subMerchant.taxId); + return Objects.equals(this.city, subMerchant.city) && + Objects.equals(this.country, subMerchant.country) && + Objects.equals(this.mcc, subMerchant.mcc) && + Objects.equals(this.name, subMerchant.name) && + Objects.equals(this.taxId, subMerchant.taxId); } @Override @@ -286,7 +252,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -295,7 +262,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SubMerchant given an JSON string * * @param jsonString JSON string @@ -305,12 +272,11 @@ private String toIndentedString(Object o) { public static SubMerchant fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SubMerchant.class); } - - /** - * Convert an instance of SubMerchant to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SubMerchant to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/TechnicalCancelRequest.java b/src/main/java/com/adyen/model/payment/TechnicalCancelRequest.java index 60e6e4f53..fb7df23d6 100644 --- a/src/main/java/com/adyen/model/payment/TechnicalCancelRequest.java +++ b/src/main/java/com/adyen/model/payment/TechnicalCancelRequest.java @@ -2,26 +2,39 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.payment.Amount; +import com.adyen.model.payment.PlatformChargebackLogic; +import com.adyen.model.payment.Split; +import com.adyen.model.payment.ThreeDSecureData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** TechnicalCancelRequest */ + +/** + * TechnicalCancelRequest + */ @JsonPropertyOrder({ TechnicalCancelRequest.JSON_PROPERTY_ADDITIONAL_DATA, TechnicalCancelRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, @@ -34,6 +47,7 @@ TechnicalCancelRequest.JSON_PROPERTY_TENDER_REFERENCE, TechnicalCancelRequest.JSON_PROPERTY_UNIQUE_TERMINAL_ID }) + public class TechnicalCancelRequest { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -47,8 +61,7 @@ public class TechnicalCancelRequest { public static final String JSON_PROPERTY_MPI_DATA = "mpiData"; private ThreeDSecureData mpiData; - public static final String JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE = - "originalMerchantReference"; + public static final String JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE = "originalMerchantReference"; private String originalMerchantReference; public static final String JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC = "platformChargebackLogic"; @@ -66,16 +79,13 @@ public class TechnicalCancelRequest { public static final String JSON_PROPERTY_UNIQUE_TERMINAL_ID = "uniqueTerminalId"; private String uniqueTerminalId; - public TechnicalCancelRequest() {} + public TechnicalCancelRequest() { + } /** - * This field contains additional data, which may be required for a particular modification - * request. The additionalData object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular modification request. The additionalData object consists of entries, each of - * which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. * @return the current {@code TechnicalCancelRequest} instance, allowing for method chaining */ public TechnicalCancelRequest additionalData(Map additionalData) { @@ -92,13 +102,8 @@ public TechnicalCancelRequest putAdditionalDataItem(String key, String additiona } /** - * This field contains additional data, which may be required for a particular modification - * request. The additionalData object consists of entries, each of which includes the key and - * value. - * - * @return additionalData This field contains additional data, which may be required for a - * particular modification request. The additionalData object consists of entries, each of - * which includes the key and value. + * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * @return additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,13 +112,9 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular modification - * request. The additionalData object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular modification request. The additionalData object consists of entries, each of - * which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -134,7 +135,6 @@ public TechnicalCancelRequest merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. - * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -157,7 +157,7 @@ public void setMerchantAccount(String merchantAccount) { /** * modificationAmount * - * @param modificationAmount + * @param modificationAmount * @return the current {@code TechnicalCancelRequest} instance, allowing for method chaining */ public TechnicalCancelRequest modificationAmount(Amount modificationAmount) { @@ -167,8 +167,7 @@ public TechnicalCancelRequest modificationAmount(Amount modificationAmount) { /** * Get modificationAmount - * - * @return modificationAmount + * @return modificationAmount */ @JsonProperty(JSON_PROPERTY_MODIFICATION_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,7 +178,7 @@ public Amount getModificationAmount() { /** * modificationAmount * - * @param modificationAmount + * @param modificationAmount */ @JsonProperty(JSON_PROPERTY_MODIFICATION_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,7 +189,7 @@ public void setModificationAmount(Amount modificationAmount) { /** * mpiData * - * @param mpiData + * @param mpiData * @return the current {@code TechnicalCancelRequest} instance, allowing for method chaining */ public TechnicalCancelRequest mpiData(ThreeDSecureData mpiData) { @@ -200,8 +199,7 @@ public TechnicalCancelRequest mpiData(ThreeDSecureData mpiData) { /** * Get mpiData - * - * @return mpiData + * @return mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -212,7 +210,7 @@ public ThreeDSecureData getMpiData() { /** * mpiData * - * @param mpiData + * @param mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -233,7 +231,6 @@ public TechnicalCancelRequest originalMerchantReference(String originalMerchantR /** * The original merchant reference to cancel. - * * @return originalMerchantReference The original merchant reference to cancel. */ @JsonProperty(JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE) @@ -256,19 +253,17 @@ public void setOriginalMerchantReference(String originalMerchantReference) { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic * @return the current {@code TechnicalCancelRequest} instance, allowing for method chaining */ - public TechnicalCancelRequest platformChargebackLogic( - PlatformChargebackLogic platformChargebackLogic) { + public TechnicalCancelRequest platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) { this.platformChargebackLogic = platformChargebackLogic; return this; } /** * Get platformChargebackLogic - * - * @return platformChargebackLogic + * @return platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -279,7 +274,7 @@ public PlatformChargebackLogic getPlatformChargebackLogic() { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -288,11 +283,9 @@ public void setPlatformChargebackLogic(PlatformChargebackLogic platformChargebac } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in - * reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in - * Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. * @return the current {@code TechnicalCancelRequest} instance, allowing for method chaining */ public TechnicalCancelRequest reference(String reference) { @@ -301,11 +294,8 @@ public TechnicalCancelRequest reference(String reference) { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in - * reports. Maximum length: 80 characters. - * - * @return reference Your reference for the payment modification. This reference is visible in - * Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * @return reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -314,11 +304,9 @@ public String getReference() { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in - * reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in - * Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -327,13 +315,9 @@ public void setReference(String reference) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * - * @param splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * @return the current {@code TechnicalCancelRequest} instance, allowing for method chaining */ public TechnicalCancelRequest splits(List splits) { @@ -350,13 +334,8 @@ public TechnicalCancelRequest addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). - * - * @return splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * @return splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -365,13 +344,9 @@ public List getSplits() { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * - * @param splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -382,8 +357,7 @@ public void setSplits(List splits) { /** * The transaction reference provided by the PED. For point-of-sale integrations only. * - * @param tenderReference The transaction reference provided by the PED. For point-of-sale - * integrations only. + * @param tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. * @return the current {@code TechnicalCancelRequest} instance, allowing for method chaining */ public TechnicalCancelRequest tenderReference(String tenderReference) { @@ -393,9 +367,7 @@ public TechnicalCancelRequest tenderReference(String tenderReference) { /** * The transaction reference provided by the PED. For point-of-sale integrations only. - * - * @return tenderReference The transaction reference provided by the PED. For point-of-sale - * integrations only. + * @return tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_TENDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -406,8 +378,7 @@ public String getTenderReference() { /** * The transaction reference provided by the PED. For point-of-sale integrations only. * - * @param tenderReference The transaction reference provided by the PED. For point-of-sale - * integrations only. + * @param tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_TENDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -416,11 +387,9 @@ public void setTenderReference(String tenderReference) { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale - * integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. * - * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. - * For point-of-sale integrations only. + * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. * @return the current {@code TechnicalCancelRequest} instance, allowing for method chaining */ public TechnicalCancelRequest uniqueTerminalId(String uniqueTerminalId) { @@ -429,11 +398,8 @@ public TechnicalCancelRequest uniqueTerminalId(String uniqueTerminalId) { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale - * integrations only. - * - * @return uniqueTerminalId Unique terminal ID for the PED that originally processed the request. - * For point-of-sale integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * @return uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -442,11 +408,9 @@ public String getUniqueTerminalId() { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale - * integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. * - * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. - * For point-of-sale integrations only. + * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -454,7 +418,9 @@ public void setUniqueTerminalId(String uniqueTerminalId) { this.uniqueTerminalId = uniqueTerminalId; } - /** Return true if this TechnicalCancelRequest object is equal to o. */ + /** + * Return true if this TechnicalCancelRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -464,33 +430,21 @@ public boolean equals(Object o) { return false; } TechnicalCancelRequest technicalCancelRequest = (TechnicalCancelRequest) o; - return Objects.equals(this.additionalData, technicalCancelRequest.additionalData) - && Objects.equals(this.merchantAccount, technicalCancelRequest.merchantAccount) - && Objects.equals(this.modificationAmount, technicalCancelRequest.modificationAmount) - && Objects.equals(this.mpiData, technicalCancelRequest.mpiData) - && Objects.equals( - this.originalMerchantReference, technicalCancelRequest.originalMerchantReference) - && Objects.equals( - this.platformChargebackLogic, technicalCancelRequest.platformChargebackLogic) - && Objects.equals(this.reference, technicalCancelRequest.reference) - && Objects.equals(this.splits, technicalCancelRequest.splits) - && Objects.equals(this.tenderReference, technicalCancelRequest.tenderReference) - && Objects.equals(this.uniqueTerminalId, technicalCancelRequest.uniqueTerminalId); + return Objects.equals(this.additionalData, technicalCancelRequest.additionalData) && + Objects.equals(this.merchantAccount, technicalCancelRequest.merchantAccount) && + Objects.equals(this.modificationAmount, technicalCancelRequest.modificationAmount) && + Objects.equals(this.mpiData, technicalCancelRequest.mpiData) && + Objects.equals(this.originalMerchantReference, technicalCancelRequest.originalMerchantReference) && + Objects.equals(this.platformChargebackLogic, technicalCancelRequest.platformChargebackLogic) && + Objects.equals(this.reference, technicalCancelRequest.reference) && + Objects.equals(this.splits, technicalCancelRequest.splits) && + Objects.equals(this.tenderReference, technicalCancelRequest.tenderReference) && + Objects.equals(this.uniqueTerminalId, technicalCancelRequest.uniqueTerminalId); } @Override public int hashCode() { - return Objects.hash( - additionalData, - merchantAccount, - modificationAmount, - mpiData, - originalMerchantReference, - platformChargebackLogic, - reference, - splits, - tenderReference, - uniqueTerminalId); + return Objects.hash(additionalData, merchantAccount, modificationAmount, mpiData, originalMerchantReference, platformChargebackLogic, reference, splits, tenderReference, uniqueTerminalId); } @Override @@ -501,12 +455,8 @@ public String toString() { sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" modificationAmount: ").append(toIndentedString(modificationAmount)).append("\n"); sb.append(" mpiData: ").append(toIndentedString(mpiData)).append("\n"); - sb.append(" originalMerchantReference: ") - .append(toIndentedString(originalMerchantReference)) - .append("\n"); - sb.append(" platformChargebackLogic: ") - .append(toIndentedString(platformChargebackLogic)) - .append("\n"); + sb.append(" originalMerchantReference: ").append(toIndentedString(originalMerchantReference)).append("\n"); + sb.append(" platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" tenderReference: ").append(toIndentedString(tenderReference)).append("\n"); @@ -516,7 +466,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -525,23 +476,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TechnicalCancelRequest given an JSON string * * @param jsonString JSON string * @return An instance of TechnicalCancelRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TechnicalCancelRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to TechnicalCancelRequest */ public static TechnicalCancelRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TechnicalCancelRequest.class); } - - /** - * Convert an instance of TechnicalCancelRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TechnicalCancelRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ThreeDS1Result.java b/src/main/java/com/adyen/model/payment/ThreeDS1Result.java index 2953881bf..53f454e31 100644 --- a/src/main/java/com/adyen/model/payment/ThreeDS1Result.java +++ b/src/main/java/com/adyen/model/payment/ThreeDS1Result.java @@ -2,22 +2,31 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ThreeDS1Result */ + +/** + * ThreeDS1Result + */ @JsonPropertyOrder({ ThreeDS1Result.JSON_PROPERTY_CAVV, ThreeDS1Result.JSON_PROPERTY_CAVV_ALGORITHM, @@ -26,6 +35,7 @@ ThreeDS1Result.JSON_PROPERTY_THREE_D_OFFERED_RESPONSE, ThreeDS1Result.JSON_PROPERTY_XID }) + public class ThreeDS1Result { public static final String JSON_PROPERTY_CAVV = "cavv"; private String cavv; @@ -36,8 +46,7 @@ public class ThreeDS1Result { public static final String JSON_PROPERTY_ECI = "eci"; private String eci; - public static final String JSON_PROPERTY_THREE_D_AUTHENTICATED_RESPONSE = - "threeDAuthenticatedResponse"; + public static final String JSON_PROPERTY_THREE_D_AUTHENTICATED_RESPONSE = "threeDAuthenticatedResponse"; private String threeDAuthenticatedResponse; public static final String JSON_PROPERTY_THREE_D_OFFERED_RESPONSE = "threeDOfferedResponse"; @@ -46,7 +55,8 @@ public class ThreeDS1Result { public static final String JSON_PROPERTY_XID = "xid"; private String xid; - public ThreeDS1Result() {} + public ThreeDS1Result() { + } /** * The cardholder authentication value (base64 encoded). @@ -61,7 +71,6 @@ public ThreeDS1Result cavv(String cavv) { /** * The cardholder authentication value (base64 encoded). - * * @return cavv The cardholder authentication value (base64 encoded). */ @JsonProperty(JSON_PROPERTY_CAVV) @@ -94,7 +103,6 @@ public ThreeDS1Result cavvAlgorithm(String cavvAlgorithm) { /** * The CAVV algorithm used. - * * @return cavvAlgorithm The CAVV algorithm used. */ @JsonProperty(JSON_PROPERTY_CAVV_ALGORITHM) @@ -127,7 +135,6 @@ public ThreeDS1Result eci(String eci) { /** * 3D Secure Electronic Commerce Indicator (ECI). - * * @return eci 3D Secure Electronic Commerce Indicator (ECI). */ @JsonProperty(JSON_PROPERTY_ECI) @@ -160,7 +167,6 @@ public ThreeDS1Result threeDAuthenticatedResponse(String threeDAuthenticatedResp /** * The authentication response from the ACS. - * * @return threeDAuthenticatedResponse The authentication response from the ACS. */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED_RESPONSE) @@ -193,7 +199,6 @@ public ThreeDS1Result threeDOfferedResponse(String threeDOfferedResponse) { /** * Whether 3D Secure was offered or not. - * * @return threeDOfferedResponse Whether 3D Secure was offered or not. */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED_RESPONSE) @@ -214,11 +219,9 @@ public void setThreeDOfferedResponse(String threeDOfferedResponse) { } /** - * A unique transaction identifier generated by the MPI on behalf of the merchant to identify the - * 3D Secure transaction, in `Base64` encoding. + * A unique transaction identifier generated by the MPI on behalf of the merchant to identify the 3D Secure transaction, in `Base64` encoding. * - * @param xid A unique transaction identifier generated by the MPI on behalf of the merchant to - * identify the 3D Secure transaction, in `Base64` encoding. + * @param xid A unique transaction identifier generated by the MPI on behalf of the merchant to identify the 3D Secure transaction, in `Base64` encoding. * @return the current {@code ThreeDS1Result} instance, allowing for method chaining */ public ThreeDS1Result xid(String xid) { @@ -227,11 +230,8 @@ public ThreeDS1Result xid(String xid) { } /** - * A unique transaction identifier generated by the MPI on behalf of the merchant to identify the - * 3D Secure transaction, in `Base64` encoding. - * - * @return xid A unique transaction identifier generated by the MPI on behalf of the merchant to - * identify the 3D Secure transaction, in `Base64` encoding. + * A unique transaction identifier generated by the MPI on behalf of the merchant to identify the 3D Secure transaction, in `Base64` encoding. + * @return xid A unique transaction identifier generated by the MPI on behalf of the merchant to identify the 3D Secure transaction, in `Base64` encoding. */ @JsonProperty(JSON_PROPERTY_XID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,11 +240,9 @@ public String getXid() { } /** - * A unique transaction identifier generated by the MPI on behalf of the merchant to identify the - * 3D Secure transaction, in `Base64` encoding. + * A unique transaction identifier generated by the MPI on behalf of the merchant to identify the 3D Secure transaction, in `Base64` encoding. * - * @param xid A unique transaction identifier generated by the MPI on behalf of the merchant to - * identify the 3D Secure transaction, in `Base64` encoding. + * @param xid A unique transaction identifier generated by the MPI on behalf of the merchant to identify the 3D Secure transaction, in `Base64` encoding. */ @JsonProperty(JSON_PROPERTY_XID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,7 +250,9 @@ public void setXid(String xid) { this.xid = xid; } - /** Return true if this ThreeDS1Result object is equal to o. */ + /** + * Return true if this ThreeDS1Result object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -262,19 +262,17 @@ public boolean equals(Object o) { return false; } ThreeDS1Result threeDS1Result = (ThreeDS1Result) o; - return Objects.equals(this.cavv, threeDS1Result.cavv) - && Objects.equals(this.cavvAlgorithm, threeDS1Result.cavvAlgorithm) - && Objects.equals(this.eci, threeDS1Result.eci) - && Objects.equals( - this.threeDAuthenticatedResponse, threeDS1Result.threeDAuthenticatedResponse) - && Objects.equals(this.threeDOfferedResponse, threeDS1Result.threeDOfferedResponse) - && Objects.equals(this.xid, threeDS1Result.xid); + return Objects.equals(this.cavv, threeDS1Result.cavv) && + Objects.equals(this.cavvAlgorithm, threeDS1Result.cavvAlgorithm) && + Objects.equals(this.eci, threeDS1Result.eci) && + Objects.equals(this.threeDAuthenticatedResponse, threeDS1Result.threeDAuthenticatedResponse) && + Objects.equals(this.threeDOfferedResponse, threeDS1Result.threeDOfferedResponse) && + Objects.equals(this.xid, threeDS1Result.xid); } @Override public int hashCode() { - return Objects.hash( - cavv, cavvAlgorithm, eci, threeDAuthenticatedResponse, threeDOfferedResponse, xid); + return Objects.hash(cavv, cavvAlgorithm, eci, threeDAuthenticatedResponse, threeDOfferedResponse, xid); } @Override @@ -284,19 +282,16 @@ public String toString() { sb.append(" cavv: ").append(toIndentedString(cavv)).append("\n"); sb.append(" cavvAlgorithm: ").append(toIndentedString(cavvAlgorithm)).append("\n"); sb.append(" eci: ").append(toIndentedString(eci)).append("\n"); - sb.append(" threeDAuthenticatedResponse: ") - .append(toIndentedString(threeDAuthenticatedResponse)) - .append("\n"); - sb.append(" threeDOfferedResponse: ") - .append(toIndentedString(threeDOfferedResponse)) - .append("\n"); + sb.append(" threeDAuthenticatedResponse: ").append(toIndentedString(threeDAuthenticatedResponse)).append("\n"); + sb.append(" threeDOfferedResponse: ").append(toIndentedString(threeDOfferedResponse)).append("\n"); sb.append(" xid: ").append(toIndentedString(xid)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -305,7 +300,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ThreeDS1Result given an JSON string * * @param jsonString JSON string @@ -315,12 +310,11 @@ private String toIndentedString(Object o) { public static ThreeDS1Result fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDS1Result.class); } - - /** - * Convert an instance of ThreeDS1Result to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ThreeDS1Result to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ThreeDS2RequestData.java b/src/main/java/com/adyen/model/payment/ThreeDS2RequestData.java index 45a8754a1..7eb4aec01 100644 --- a/src/main/java/com/adyen/model/payment/ThreeDS2RequestData.java +++ b/src/main/java/com/adyen/model/payment/ThreeDS2RequestData.java @@ -2,26 +2,37 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.payment.AcctInfo; +import com.adyen.model.payment.DeviceRenderOptions; +import com.adyen.model.payment.Phone; +import com.adyen.model.payment.SDKEphemPubKey; +import com.adyen.model.payment.ThreeDSRequestorAuthenticationInfo; +import com.adyen.model.payment.ThreeDSRequestorPriorAuthenticationInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ThreeDS2RequestData */ +/** + * ThreeDS2RequestData + */ @JsonPropertyOrder({ ThreeDS2RequestData.JSON_PROPERTY_ACCT_INFO, ThreeDS2RequestData.JSON_PROPERTY_ACCT_TYPE, @@ -63,15 +74,16 @@ ThreeDS2RequestData.JSON_PROPERTY_WHITE_LIST_STATUS, ThreeDS2RequestData.JSON_PROPERTY_WORK_PHONE }) + public class ThreeDS2RequestData { public static final String JSON_PROPERTY_ACCT_INFO = "acctInfo"; private AcctInfo acctInfo; /** - * Indicates the type of account. For example, for a multi-account card product. Length: 2 - * characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + * Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit */ public enum AcctTypeEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -83,7 +95,7 @@ public enum AcctTypeEnum { private String value; AcctTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -104,11 +116,7 @@ public static AcctTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AcctTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AcctTypeEnum.values())); + LOG.warning("AcctTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AcctTypeEnum.values())); return null; } } @@ -123,11 +131,10 @@ public static AcctTypeEnum fromValue(String value) { private String acquirerMerchantID; /** - * Indicates whether the cardholder shipping address and cardholder billing address are the same. - * Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address - * does not match billing address. + * Indicates whether the cardholder shipping address and cardholder billing address are the same. Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address does not match billing address. */ public enum AddrMatchEnum { + Y(String.valueOf("Y")), N(String.valueOf("N")); @@ -137,7 +144,7 @@ public enum AddrMatchEnum { private String value; AddrMatchEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -158,11 +165,7 @@ public static AddrMatchEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AddrMatchEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AddrMatchEnum.values())); + LOG.warning("AddrMatchEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AddrMatchEnum.values())); return null; } } @@ -175,11 +178,10 @@ public static AddrMatchEnum fromValue(String value) { private Boolean authenticationOnly; /** - * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: - * * `noPreference` * `requestNoChallenge` * `requestChallenge` * - * `requestChallengeAsMandate` + * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` */ public enum ChallengeIndicatorEnum { + NOPREFERENCE(String.valueOf("noPreference")), REQUESTNOCHALLENGE(String.valueOf("requestNoChallenge")), @@ -193,7 +195,7 @@ public enum ChallengeIndicatorEnum { private String value; ChallengeIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -214,11 +216,7 @@ public static ChallengeIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ChallengeIndicatorEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ChallengeIndicatorEnum.values())); + LOG.warning("ChallengeIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChallengeIndicatorEnum.values())); return null; } } @@ -254,8 +252,7 @@ public static ChallengeIndicatorEnum fromValue(String value) { public static final String JSON_PROPERTY_PAY_TOKEN_IND = "payTokenInd"; private Boolean payTokenInd; - public static final String JSON_PROPERTY_PAYMENT_AUTHENTICATION_USE_CASE = - "paymentAuthenticationUseCase"; + public static final String JSON_PROPERTY_PAYMENT_AUTHENTICATION_USE_CASE = "paymentAuthenticationUseCase"; private String paymentAuthenticationUseCase; public static final String JSON_PROPERTY_PURCHASE_INSTAL_DATA = "purchaseInstalData"; @@ -291,21 +288,17 @@ public static ChallengeIndicatorEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_COMP_IND = "threeDSCompInd"; private String threeDSCompInd; - public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_IND = - "threeDSRequestorAuthenticationInd"; + public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_IND = "threeDSRequestorAuthenticationInd"; private String threeDSRequestorAuthenticationInd; - public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_INFO = - "threeDSRequestorAuthenticationInfo"; + public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_INFO = "threeDSRequestorAuthenticationInfo"; private ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo; /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No - * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor - * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional - * risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only */ public enum ThreeDSRequestorChallengeIndEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -318,13 +311,12 @@ public enum ThreeDSRequestorChallengeIndEnum { _06(String.valueOf("06")); - private static final Logger LOG = - Logger.getLogger(ThreeDSRequestorChallengeIndEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(ThreeDSRequestorChallengeIndEnum.class.getName()); private String value; ThreeDSRequestorChallengeIndEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -345,17 +337,12 @@ public static ThreeDSRequestorChallengeIndEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ThreeDSRequestorChallengeIndEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ThreeDSRequestorChallengeIndEnum.values())); + LOG.warning("ThreeDSRequestorChallengeIndEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ThreeDSRequestorChallengeIndEnum.values())); return null; } } - public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND = - "threeDSRequestorChallengeInd"; + public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND = "threeDSRequestorChallengeInd"; private ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd; public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_I_D = "threeDSRequestorID"; @@ -364,19 +351,17 @@ public static ThreeDSRequestorChallengeIndEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_NAME = "threeDSRequestorName"; private String threeDSRequestorName; - public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_PRIOR_AUTHENTICATION_INFO = - "threeDSRequestorPriorAuthenticationInfo"; + public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_PRIOR_AUTHENTICATION_INFO = "threeDSRequestorPriorAuthenticationInfo"; private ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo; public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_U_R_L = "threeDSRequestorURL"; private String threeDSRequestorURL; /** - * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * - * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** - * — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load */ public enum TransTypeEnum { + _01(String.valueOf("01")), _03(String.valueOf("03")), @@ -392,7 +377,7 @@ public enum TransTypeEnum { private String value; TransTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -413,11 +398,7 @@ public static TransTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TransTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TransTypeEnum.values())); + LOG.warning("TransTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TransTypeEnum.values())); return null; } } @@ -425,8 +406,11 @@ public static TransTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANS_TYPE = "transType"; private TransTypeEnum transType; - /** Identify the type of the transaction being authenticated. */ + /** + * Identify the type of the transaction being authenticated. + */ public enum TransactionTypeEnum { + GOODSORSERVICEPURCHASE(String.valueOf("goodsOrServicePurchase")), CHECKACCEPTANCE(String.valueOf("checkAcceptance")), @@ -442,7 +426,7 @@ public enum TransactionTypeEnum { private String value; TransactionTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -463,11 +447,7 @@ public static TransactionTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TransactionTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TransactionTypeEnum.values())); + LOG.warning("TransactionTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TransactionTypeEnum.values())); return null; } } @@ -481,12 +461,13 @@ public static TransactionTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_WORK_PHONE = "workPhone"; private Phone workPhone; - public ThreeDS2RequestData() {} + public ThreeDS2RequestData() { + } /** * acctInfo * - * @param acctInfo + * @param acctInfo * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData acctInfo(AcctInfo acctInfo) { @@ -496,8 +477,7 @@ public ThreeDS2RequestData acctInfo(AcctInfo acctInfo) { /** * Get acctInfo - * - * @return acctInfo + * @return acctInfo */ @JsonProperty(JSON_PROPERTY_ACCT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -508,7 +488,7 @@ public AcctInfo getAcctInfo() { /** * acctInfo * - * @param acctInfo + * @param acctInfo */ @JsonProperty(JSON_PROPERTY_ACCT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -517,12 +497,9 @@ public void setAcctInfo(AcctInfo acctInfo) { } /** - * Indicates the type of account. For example, for a multi-account card product. Length: 2 - * characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + * Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit * - * @param acctType Indicates the type of account. For example, for a multi-account card product. - * Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** - * — Debit + * @param acctType Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData acctType(AcctTypeEnum acctType) { @@ -531,12 +508,8 @@ public ThreeDS2RequestData acctType(AcctTypeEnum acctType) { } /** - * Indicates the type of account. For example, for a multi-account card product. Length: 2 - * characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit - * - * @return acctType Indicates the type of account. For example, for a multi-account card product. - * Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** - * — Debit + * Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + * @return acctType Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit */ @JsonProperty(JSON_PROPERTY_ACCT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -545,12 +518,9 @@ public AcctTypeEnum getAcctType() { } /** - * Indicates the type of account. For example, for a multi-account card product. Length: 2 - * characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + * Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit * - * @param acctType Indicates the type of account. For example, for a multi-account card product. - * Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** - * — Debit + * @param acctType Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit */ @JsonProperty(JSON_PROPERTY_ACCT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -559,15 +529,9 @@ public void setAcctType(AcctTypeEnum acctType) { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will - * use in the authorisation. Use 123456 on the Test platform. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. * - * @param acquirerBIN Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you - * will use in the authorisation. Use 123456 on the Test platform. + * @param acquirerBIN Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData acquirerBIN(String acquirerBIN) { @@ -576,15 +540,8 @@ public ThreeDS2RequestData acquirerBIN(String acquirerBIN) { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will - * use in the authorisation. Use 123456 on the Test platform. - * - * @return acquirerBIN Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you - * will use in the authorisation. Use 123456 on the Test platform. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * @return acquirerBIN Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_B_I_N) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -593,15 +550,9 @@ public String getAcquirerBIN() { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will - * use in the authorisation. Use 123456 on the Test platform. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. * - * @param acquirerBIN Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you - * will use in the authorisation. Use 123456 on the Test platform. + * @param acquirerBIN Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_B_I_N) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -610,16 +561,9 @@ public void setAcquirerBIN(String acquirerBIN) { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string - * should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. * - * @param acquirerMerchantID Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string - * should match the value that you will use in the authorisation. Use 123456 on the Test - * platform. + * @param acquirerMerchantID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData acquirerMerchantID(String acquirerMerchantID) { @@ -628,16 +572,8 @@ public ThreeDS2RequestData acquirerMerchantID(String acquirerMerchantID) { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string - * should match the value that you will use in the authorisation. Use 123456 on the Test platform. - * - * @return acquirerMerchantID Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string - * should match the value that you will use in the authorisation. Use 123456 on the Test - * platform. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * @return acquirerMerchantID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_MERCHANT_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -646,16 +582,9 @@ public String getAcquirerMerchantID() { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string - * should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. * - * @param acquirerMerchantID Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string - * should match the value that you will use in the authorisation. Use 123456 on the Test - * platform. + * @param acquirerMerchantID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_MERCHANT_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -664,13 +593,9 @@ public void setAcquirerMerchantID(String acquirerMerchantID) { } /** - * Indicates whether the cardholder shipping address and cardholder billing address are the same. - * Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address - * does not match billing address. + * Indicates whether the cardholder shipping address and cardholder billing address are the same. Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address does not match billing address. * - * @param addrMatch Indicates whether the cardholder shipping address and cardholder billing - * address are the same. Allowed values: * **Y** — Shipping address matches billing address. * - * **N** — Shipping address does not match billing address. + * @param addrMatch Indicates whether the cardholder shipping address and cardholder billing address are the same. Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address does not match billing address. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData addrMatch(AddrMatchEnum addrMatch) { @@ -679,13 +604,8 @@ public ThreeDS2RequestData addrMatch(AddrMatchEnum addrMatch) { } /** - * Indicates whether the cardholder shipping address and cardholder billing address are the same. - * Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address - * does not match billing address. - * - * @return addrMatch Indicates whether the cardholder shipping address and cardholder billing - * address are the same. Allowed values: * **Y** — Shipping address matches billing address. * - * **N** — Shipping address does not match billing address. + * Indicates whether the cardholder shipping address and cardholder billing address are the same. Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address does not match billing address. + * @return addrMatch Indicates whether the cardholder shipping address and cardholder billing address are the same. Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address does not match billing address. */ @JsonProperty(JSON_PROPERTY_ADDR_MATCH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -694,13 +614,9 @@ public AddrMatchEnum getAddrMatch() { } /** - * Indicates whether the cardholder shipping address and cardholder billing address are the same. - * Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address - * does not match billing address. + * Indicates whether the cardholder shipping address and cardholder billing address are the same. Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address does not match billing address. * - * @param addrMatch Indicates whether the cardholder shipping address and cardholder billing - * address are the same. Allowed values: * **Y** — Shipping address matches billing address. * - * **N** — Shipping address does not match billing address. + * @param addrMatch Indicates whether the cardholder shipping address and cardholder billing address are the same. Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address does not match billing address. */ @JsonProperty(JSON_PROPERTY_ADDR_MATCH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -709,15 +625,13 @@ public void setAddrMatch(AddrMatchEnum addrMatch) { } /** - * If set to true, you will only perform the [3D Secure 2 - * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), - * and not the payment authorisation. + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. * - * @param authenticationOnly If set to true, you will only perform the [3D Secure 2 - * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), - * and not the payment authorisation. + * @param authenticationOnly If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining - * @deprecated since Adyen Payment API v50 Use `threeDSAuthenticationOnly` instead. + * + * @deprecated since Adyen Payment API v50 + * Use `threeDSAuthenticationOnly` instead. */ @Deprecated // deprecated since Adyen Payment API v50: Use `threeDSAuthenticationOnly` instead. public ThreeDS2RequestData authenticationOnly(Boolean authenticationOnly) { @@ -726,13 +640,8 @@ public ThreeDS2RequestData authenticationOnly(Boolean authenticationOnly) { } /** - * If set to true, you will only perform the [3D Secure 2 - * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), - * and not the payment authorisation. - * - * @return authenticationOnly If set to true, you will only perform the [3D Secure 2 - * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), - * and not the payment authorisation. + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. + * @return authenticationOnly If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. * @deprecated // deprecated since Adyen Payment API v50: Use `threeDSAuthenticationOnly` instead. */ @Deprecated // deprecated since Adyen Payment API v50: Use `threeDSAuthenticationOnly` instead. @@ -743,14 +652,12 @@ public Boolean getAuthenticationOnly() { } /** - * If set to true, you will only perform the [3D Secure 2 - * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), - * and not the payment authorisation. + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. * - * @param authenticationOnly If set to true, you will only perform the [3D Secure 2 - * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), - * and not the payment authorisation. - * @deprecated since Adyen Payment API v50 Use `threeDSAuthenticationOnly` instead. + * @param authenticationOnly If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. + * + * @deprecated since Adyen Payment API v50 + * Use `threeDSAuthenticationOnly` instead. */ @Deprecated // deprecated since Adyen Payment API v50: Use `threeDSAuthenticationOnly` instead. @JsonProperty(JSON_PROPERTY_AUTHENTICATION_ONLY) @@ -760,15 +667,13 @@ public void setAuthenticationOnly(Boolean authenticationOnly) { } /** - * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: - * * `noPreference` * `requestNoChallenge` * `requestChallenge` * - * `requestChallengeAsMandate` + * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` * - * @param challengeIndicator Possibility to specify a preference for receiving a challenge from - * the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * - * `requestChallenge` * `requestChallengeAsMandate` + * @param challengeIndicator Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining - * @deprecated since Adyen Payment API v68 Use `threeDSRequestorChallengeInd` instead. + * + * @deprecated since Adyen Payment API v68 + * Use `threeDSRequestorChallengeInd` instead. */ @Deprecated // deprecated since Adyen Payment API v68: Use `threeDSRequestorChallengeInd` instead. public ThreeDS2RequestData challengeIndicator(ChallengeIndicatorEnum challengeIndicator) { @@ -777,15 +682,9 @@ public ThreeDS2RequestData challengeIndicator(ChallengeIndicatorEnum challengeIn } /** - * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: - * * `noPreference` * `requestNoChallenge` * `requestChallenge` * - * `requestChallengeAsMandate` - * - * @return challengeIndicator Possibility to specify a preference for receiving a challenge from - * the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * - * `requestChallenge` * `requestChallengeAsMandate` - * @deprecated // deprecated since Adyen Payment API v68: Use `threeDSRequestorChallengeInd` - * instead. + * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` + * @return challengeIndicator Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` + * @deprecated // deprecated since Adyen Payment API v68: Use `threeDSRequestorChallengeInd` instead. */ @Deprecated // deprecated since Adyen Payment API v68: Use `threeDSRequestorChallengeInd` instead. @JsonProperty(JSON_PROPERTY_CHALLENGE_INDICATOR) @@ -795,14 +694,12 @@ public ChallengeIndicatorEnum getChallengeIndicator() { } /** - * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: - * * `noPreference` * `requestNoChallenge` * `requestChallenge` * - * `requestChallengeAsMandate` + * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` + * + * @param challengeIndicator Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` * - * @param challengeIndicator Possibility to specify a preference for receiving a challenge from - * the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * - * `requestChallenge` * `requestChallengeAsMandate` - * @deprecated since Adyen Payment API v68 Use `threeDSRequestorChallengeInd` instead. + * @deprecated since Adyen Payment API v68 + * Use `threeDSRequestorChallengeInd` instead. */ @Deprecated // deprecated since Adyen Payment API v68: Use `threeDSRequestorChallengeInd` instead. @JsonProperty(JSON_PROPERTY_CHALLENGE_INDICATOR) @@ -814,8 +711,7 @@ public void setChallengeIndicator(ChallengeIndicatorEnum challengeIndicator) { /** * The environment of the shopper. Allowed values: * `app` * `browser` * - * @param deviceChannel The environment of the shopper. Allowed values: * `app` * - * `browser` + * @param deviceChannel The environment of the shopper. Allowed values: * `app` * `browser` * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData deviceChannel(String deviceChannel) { @@ -825,9 +721,7 @@ public ThreeDS2RequestData deviceChannel(String deviceChannel) { /** * The environment of the shopper. Allowed values: * `app` * `browser` - * - * @return deviceChannel The environment of the shopper. Allowed values: * `app` * - * `browser` + * @return deviceChannel The environment of the shopper. Allowed values: * `app` * `browser` */ @JsonProperty(JSON_PROPERTY_DEVICE_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -838,8 +732,7 @@ public String getDeviceChannel() { /** * The environment of the shopper. Allowed values: * `app` * `browser` * - * @param deviceChannel The environment of the shopper. Allowed values: * `app` * - * `browser` + * @param deviceChannel The environment of the shopper. Allowed values: * `app` * `browser` */ @JsonProperty(JSON_PROPERTY_DEVICE_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -850,7 +743,7 @@ public void setDeviceChannel(String deviceChannel) { /** * deviceRenderOptions * - * @param deviceRenderOptions + * @param deviceRenderOptions * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData deviceRenderOptions(DeviceRenderOptions deviceRenderOptions) { @@ -860,8 +753,7 @@ public ThreeDS2RequestData deviceRenderOptions(DeviceRenderOptions deviceRenderO /** * Get deviceRenderOptions - * - * @return deviceRenderOptions + * @return deviceRenderOptions */ @JsonProperty(JSON_PROPERTY_DEVICE_RENDER_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -872,7 +764,7 @@ public DeviceRenderOptions getDeviceRenderOptions() { /** * deviceRenderOptions * - * @param deviceRenderOptions + * @param deviceRenderOptions */ @JsonProperty(JSON_PROPERTY_DEVICE_RENDER_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -883,7 +775,7 @@ public void setDeviceRenderOptions(DeviceRenderOptions deviceRenderOptions) { /** * homePhone * - * @param homePhone + * @param homePhone * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData homePhone(Phone homePhone) { @@ -893,8 +785,7 @@ public ThreeDS2RequestData homePhone(Phone homePhone) { /** * Get homePhone - * - * @return homePhone + * @return homePhone */ @JsonProperty(JSON_PROPERTY_HOME_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -905,7 +796,7 @@ public Phone getHomePhone() { /** * homePhone * - * @param homePhone + * @param homePhone */ @JsonProperty(JSON_PROPERTY_HOME_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -914,17 +805,9 @@ public void setHomePhone(Phone homePhone) { } /** - * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, - * mostly [authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The `mcc` is a four-digit code with which the previously given - * `acquirerMerchantID` is registered at the scheme. + * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. * - * @param mcc Required for merchants that have been enrolled for 3D Secure 2 by another party than - * Adyen, mostly [authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The `mcc` is a four-digit code with which the previously given - * `acquirerMerchantID` is registered at the scheme. + * @param mcc Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData mcc(String mcc) { @@ -933,17 +816,8 @@ public ThreeDS2RequestData mcc(String mcc) { } /** - * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, - * mostly [authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The `mcc` is a four-digit code with which the previously given - * `acquirerMerchantID` is registered at the scheme. - * - * @return mcc Required for merchants that have been enrolled for 3D Secure 2 by another party - * than Adyen, mostly [authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The `mcc` is a four-digit code with which the previously given - * `acquirerMerchantID` is registered at the scheme. + * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. + * @return mcc Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -952,17 +826,9 @@ public String getMcc() { } /** - * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, - * mostly [authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The `mcc` is a four-digit code with which the previously given - * `acquirerMerchantID` is registered at the scheme. + * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. * - * @param mcc Required for merchants that have been enrolled for 3D Secure 2 by another party than - * Adyen, mostly [authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The `mcc` is a four-digit code with which the previously given - * `acquirerMerchantID` is registered at the scheme. + * @param mcc Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -971,23 +837,9 @@ public void setMcc(String mcc) { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchant name that the issuer presents to the shopper if they get a challenge. We recommend - * to use the same value that you will use in the authorization. Maximum length is 40 characters. - * > Optional for a [full 3D Secure 2 - * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use - * this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name - * already configured on your account. - * - * @param merchantName Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchant name that the issuer presents to the shopper if they get a challenge. We - * recommend to use the same value that you will use in the authorization. Maximum length is - * 40 characters. > Optional for a [full 3D Secure 2 - * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). - * Use this field if you are enrolled for 3D Secure 2 with us and want to override the - * merchant name already configured on your account. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. + * + * @param merchantName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData merchantName(String merchantName) { @@ -996,23 +848,8 @@ public ThreeDS2RequestData merchantName(String merchantName) { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchant name that the issuer presents to the shopper if they get a challenge. We recommend - * to use the same value that you will use in the authorization. Maximum length is 40 characters. - * > Optional for a [full 3D Secure 2 - * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use - * this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name - * already configured on your account. - * - * @return merchantName Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchant name that the issuer presents to the shopper if they get a challenge. We - * recommend to use the same value that you will use in the authorization. Maximum length is - * 40 characters. > Optional for a [full 3D Secure 2 - * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). - * Use this field if you are enrolled for 3D Secure 2 with us and want to override the - * merchant name already configured on your account. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. + * @return merchantName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. */ @JsonProperty(JSON_PROPERTY_MERCHANT_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1021,23 +858,9 @@ public String getMerchantName() { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchant name that the issuer presents to the shopper if they get a challenge. We recommend - * to use the same value that you will use in the authorization. Maximum length is 40 characters. - * > Optional for a [full 3D Secure 2 - * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use - * this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name - * already configured on your account. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. * - * @param merchantName Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * The merchant name that the issuer presents to the shopper if they get a challenge. We - * recommend to use the same value that you will use in the authorization. Maximum length is - * 40 characters. > Optional for a [full 3D Secure 2 - * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). - * Use this field if you are enrolled for 3D Secure 2 with us and want to override the - * merchant name already configured on your account. + * @param merchantName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. */ @JsonProperty(JSON_PROPERTY_MERCHANT_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1048,8 +871,7 @@ public void setMerchantName(String merchantName) { /** * The `messageVersion` value indicating the 3D Secure 2 protocol version. * - * @param messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol - * version. + * @param messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol version. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData messageVersion(String messageVersion) { @@ -1059,9 +881,7 @@ public ThreeDS2RequestData messageVersion(String messageVersion) { /** * The `messageVersion` value indicating the 3D Secure 2 protocol version. - * - * @return messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol - * version. + * @return messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol version. */ @JsonProperty(JSON_PROPERTY_MESSAGE_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1072,8 +892,7 @@ public String getMessageVersion() { /** * The `messageVersion` value indicating the 3D Secure 2 protocol version. * - * @param messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol - * version. + * @param messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol version. */ @JsonProperty(JSON_PROPERTY_MESSAGE_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1084,7 +903,7 @@ public void setMessageVersion(String messageVersion) { /** * mobilePhone * - * @param mobilePhone + * @param mobilePhone * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData mobilePhone(Phone mobilePhone) { @@ -1094,8 +913,7 @@ public ThreeDS2RequestData mobilePhone(Phone mobilePhone) { /** * Get mobilePhone - * - * @return mobilePhone + * @return mobilePhone */ @JsonProperty(JSON_PROPERTY_MOBILE_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1106,7 +924,7 @@ public Phone getMobilePhone() { /** * mobilePhone * - * @param mobilePhone + * @param mobilePhone */ @JsonProperty(JSON_PROPERTY_MOBILE_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1115,13 +933,9 @@ public void setMobilePhone(Phone mobilePhone) { } /** - * URL to where the issuer should send the `CRes`. Required if you are not using - * components for `channel` **Web** or if you are using classic integration - * `deviceChannel` **browser**. + * URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. * - * @param notificationURL URL to where the issuer should send the `CRes`. Required if - * you are not using components for `channel` **Web** or if you are using classic - * integration `deviceChannel` **browser**. + * @param notificationURL URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData notificationURL(String notificationURL) { @@ -1130,13 +944,8 @@ public ThreeDS2RequestData notificationURL(String notificationURL) { } /** - * URL to where the issuer should send the `CRes`. Required if you are not using - * components for `channel` **Web** or if you are using classic integration - * `deviceChannel` **browser**. - * - * @return notificationURL URL to where the issuer should send the `CRes`. Required if - * you are not using components for `channel` **Web** or if you are using classic - * integration `deviceChannel` **browser**. + * URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. + * @return notificationURL URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1145,13 +954,9 @@ public String getNotificationURL() { } /** - * URL to where the issuer should send the `CRes`. Required if you are not using - * components for `channel` **Web** or if you are using classic integration - * `deviceChannel` **browser**. + * URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. * - * @param notificationURL URL to where the issuer should send the `CRes`. Required if - * you are not using components for `channel` **Web** or if you are using classic - * integration `deviceChannel` **browser**. + * @param notificationURL URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1160,11 +965,9 @@ public void setNotificationURL(String notificationURL) { } /** - * Value **true** indicates that the transaction was de-tokenised prior to being received by the - * ACS. + * Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. * - * @param payTokenInd Value **true** indicates that the transaction was de-tokenised prior to - * being received by the ACS. + * @param payTokenInd Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData payTokenInd(Boolean payTokenInd) { @@ -1173,11 +976,8 @@ public ThreeDS2RequestData payTokenInd(Boolean payTokenInd) { } /** - * Value **true** indicates that the transaction was de-tokenised prior to being received by the - * ACS. - * - * @return payTokenInd Value **true** indicates that the transaction was de-tokenised prior to - * being received by the ACS. + * Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. + * @return payTokenInd Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. */ @JsonProperty(JSON_PROPERTY_PAY_TOKEN_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1186,11 +986,9 @@ public Boolean getPayTokenInd() { } /** - * Value **true** indicates that the transaction was de-tokenised prior to being received by the - * ACS. + * Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. * - * @param payTokenInd Value **true** indicates that the transaction was de-tokenised prior to - * being received by the ACS. + * @param payTokenInd Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. */ @JsonProperty(JSON_PROPERTY_PAY_TOKEN_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1201,8 +999,7 @@ public void setPayTokenInd(Boolean payTokenInd) { /** * Indicates the type of payment for which an authentication is requested (message extension) * - * @param paymentAuthenticationUseCase Indicates the type of payment for which an authentication - * is requested (message extension) + * @param paymentAuthenticationUseCase Indicates the type of payment for which an authentication is requested (message extension) * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData paymentAuthenticationUseCase(String paymentAuthenticationUseCase) { @@ -1212,9 +1009,7 @@ public ThreeDS2RequestData paymentAuthenticationUseCase(String paymentAuthentica /** * Indicates the type of payment for which an authentication is requested (message extension) - * - * @return paymentAuthenticationUseCase Indicates the type of payment for which an authentication - * is requested (message extension) + * @return paymentAuthenticationUseCase Indicates the type of payment for which an authentication is requested (message extension) */ @JsonProperty(JSON_PROPERTY_PAYMENT_AUTHENTICATION_USE_CASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1225,8 +1020,7 @@ public String getPaymentAuthenticationUseCase() { /** * Indicates the type of payment for which an authentication is requested (message extension) * - * @param paymentAuthenticationUseCase Indicates the type of payment for which an authentication - * is requested (message extension) + * @param paymentAuthenticationUseCase Indicates the type of payment for which an authentication is requested (message extension) */ @JsonProperty(JSON_PROPERTY_PAYMENT_AUTHENTICATION_USE_CASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1235,11 +1029,9 @@ public void setPaymentAuthenticationUseCase(String paymentAuthenticationUseCase) } /** - * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 - * characters. + * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. * - * @param purchaseInstalData Indicates the maximum number of authorisations permitted for - * instalment payments. Length: 1–3 characters. + * @param purchaseInstalData Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData purchaseInstalData(String purchaseInstalData) { @@ -1248,11 +1040,8 @@ public ThreeDS2RequestData purchaseInstalData(String purchaseInstalData) { } /** - * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 - * characters. - * - * @return purchaseInstalData Indicates the maximum number of authorisations permitted for - * instalment payments. Length: 1–3 characters. + * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. + * @return purchaseInstalData Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. */ @JsonProperty(JSON_PROPERTY_PURCHASE_INSTAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1261,11 +1050,9 @@ public String getPurchaseInstalData() { } /** - * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 - * characters. + * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. * - * @param purchaseInstalData Indicates the maximum number of authorisations permitted for - * instalment payments. Length: 1–3 characters. + * @param purchaseInstalData Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. */ @JsonProperty(JSON_PROPERTY_PURCHASE_INSTAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1276,8 +1063,7 @@ public void setPurchaseInstalData(String purchaseInstalData) { /** * Date after which no further authorisations shall be performed. Format: YYYYMMDD * - * @param recurringExpiry Date after which no further authorisations shall be performed. Format: - * YYYYMMDD + * @param recurringExpiry Date after which no further authorisations shall be performed. Format: YYYYMMDD * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData recurringExpiry(String recurringExpiry) { @@ -1287,9 +1073,7 @@ public ThreeDS2RequestData recurringExpiry(String recurringExpiry) { /** * Date after which no further authorisations shall be performed. Format: YYYYMMDD - * - * @return recurringExpiry Date after which no further authorisations shall be performed. Format: - * YYYYMMDD + * @return recurringExpiry Date after which no further authorisations shall be performed. Format: YYYYMMDD */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1300,8 +1084,7 @@ public String getRecurringExpiry() { /** * Date after which no further authorisations shall be performed. Format: YYYYMMDD * - * @param recurringExpiry Date after which no further authorisations shall be performed. Format: - * YYYYMMDD + * @param recurringExpiry Date after which no further authorisations shall be performed. Format: YYYYMMDD */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1312,8 +1095,7 @@ public void setRecurringExpiry(String recurringExpiry) { /** * Indicates the minimum number of days between authorisations. Maximum length: 4 characters. * - * @param recurringFrequency Indicates the minimum number of days between authorisations. Maximum - * length: 4 characters. + * @param recurringFrequency Indicates the minimum number of days between authorisations. Maximum length: 4 characters. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData recurringFrequency(String recurringFrequency) { @@ -1323,9 +1105,7 @@ public ThreeDS2RequestData recurringFrequency(String recurringFrequency) { /** * Indicates the minimum number of days between authorisations. Maximum length: 4 characters. - * - * @return recurringFrequency Indicates the minimum number of days between authorisations. Maximum - * length: 4 characters. + * @return recurringFrequency Indicates the minimum number of days between authorisations. Maximum length: 4 characters. */ @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1336,8 +1116,7 @@ public String getRecurringFrequency() { /** * Indicates the minimum number of days between authorisations. Maximum length: 4 characters. * - * @param recurringFrequency Indicates the minimum number of days between authorisations. Maximum - * length: 4 characters. + * @param recurringFrequency Indicates the minimum number of days between authorisations. Maximum length: 4 characters. */ @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1346,11 +1125,9 @@ public void setRecurringFrequency(String recurringFrequency) { } /** - * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for - * `deviceChannel` set to **app**. + * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. * - * @param sdkAppID The `sdkAppID` value as received from the 3D Secure 2 SDK. Required - * for `deviceChannel` set to **app**. + * @param sdkAppID The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData sdkAppID(String sdkAppID) { @@ -1359,11 +1136,8 @@ public ThreeDS2RequestData sdkAppID(String sdkAppID) { } /** - * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for - * `deviceChannel` set to **app**. - * - * @return sdkAppID The `sdkAppID` value as received from the 3D Secure 2 SDK. Required - * for `deviceChannel` set to **app**. + * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + * @return sdkAppID The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_APP_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1372,11 +1146,9 @@ public String getSdkAppID() { } /** - * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for - * `deviceChannel` set to **app**. + * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. * - * @param sdkAppID The `sdkAppID` value as received from the 3D Secure 2 SDK. Required - * for `deviceChannel` set to **app**. + * @param sdkAppID The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_APP_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1385,11 +1157,9 @@ public void setSdkAppID(String sdkAppID) { } /** - * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for - * `deviceChannel` set to **app**. + * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. * - * @param sdkEncData The `sdkEncData` value as received from the 3D Secure 2 SDK. - * Required for `deviceChannel` set to **app**. + * @param sdkEncData The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData sdkEncData(String sdkEncData) { @@ -1398,11 +1168,8 @@ public ThreeDS2RequestData sdkEncData(String sdkEncData) { } /** - * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for - * `deviceChannel` set to **app**. - * - * @return sdkEncData The `sdkEncData` value as received from the 3D Secure 2 SDK. - * Required for `deviceChannel` set to **app**. + * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + * @return sdkEncData The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_ENC_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1411,11 +1178,9 @@ public String getSdkEncData() { } /** - * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for - * `deviceChannel` set to **app**. + * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. * - * @param sdkEncData The `sdkEncData` value as received from the 3D Secure 2 SDK. - * Required for `deviceChannel` set to **app**. + * @param sdkEncData The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_ENC_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1426,7 +1191,7 @@ public void setSdkEncData(String sdkEncData) { /** * sdkEphemPubKey * - * @param sdkEphemPubKey + * @param sdkEphemPubKey * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData sdkEphemPubKey(SDKEphemPubKey sdkEphemPubKey) { @@ -1436,8 +1201,7 @@ public ThreeDS2RequestData sdkEphemPubKey(SDKEphemPubKey sdkEphemPubKey) { /** * Get sdkEphemPubKey - * - * @return sdkEphemPubKey + * @return sdkEphemPubKey */ @JsonProperty(JSON_PROPERTY_SDK_EPHEM_PUB_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1448,7 +1212,7 @@ public SDKEphemPubKey getSdkEphemPubKey() { /** * sdkEphemPubKey * - * @param sdkEphemPubKey + * @param sdkEphemPubKey */ @JsonProperty(JSON_PROPERTY_SDK_EPHEM_PUB_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1457,12 +1221,9 @@ public void setSdkEphemPubKey(SDKEphemPubKey sdkEphemPubKey) { } /** - * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and - * only for `deviceChannel` set to **app**. Defaults to **60** minutes. + * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. * - * @param sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication - * process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** - * minutes. + * @param sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData sdkMaxTimeout(Integer sdkMaxTimeout) { @@ -1471,12 +1232,8 @@ public ThreeDS2RequestData sdkMaxTimeout(Integer sdkMaxTimeout) { } /** - * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and - * only for `deviceChannel` set to **app**. Defaults to **60** minutes. - * - * @return sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication - * process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** - * minutes. + * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. + * @return sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. */ @JsonProperty(JSON_PROPERTY_SDK_MAX_TIMEOUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1485,12 +1242,9 @@ public Integer getSdkMaxTimeout() { } /** - * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and - * only for `deviceChannel` set to **app**. Defaults to **60** minutes. + * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. * - * @param sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication - * process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** - * minutes. + * @param sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. */ @JsonProperty(JSON_PROPERTY_SDK_MAX_TIMEOUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1499,11 +1253,9 @@ public void setSdkMaxTimeout(Integer sdkMaxTimeout) { } /** - * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for - * `deviceChannel` set to **app**. + * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. * - * @param sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D - * Secure 2 SDK. Only for `deviceChannel` set to **app**. + * @param sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData sdkReferenceNumber(String sdkReferenceNumber) { @@ -1512,11 +1264,8 @@ public ThreeDS2RequestData sdkReferenceNumber(String sdkReferenceNumber) { } /** - * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for - * `deviceChannel` set to **app**. - * - * @return sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D - * Secure 2 SDK. Only for `deviceChannel` set to **app**. + * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + * @return sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1525,11 +1274,9 @@ public String getSdkReferenceNumber() { } /** - * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for - * `deviceChannel` set to **app**. + * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. * - * @param sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D - * Secure 2 SDK. Only for `deviceChannel` set to **app**. + * @param sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1538,11 +1285,9 @@ public void setSdkReferenceNumber(String sdkReferenceNumber) { } /** - * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for - * `deviceChannel` set to **app**. + * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. * - * @param sdkTransID The `sdkTransID` value as received from the 3D Secure 2 SDK. Only - * for `deviceChannel` set to **app**. + * @param sdkTransID The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData sdkTransID(String sdkTransID) { @@ -1551,11 +1296,8 @@ public ThreeDS2RequestData sdkTransID(String sdkTransID) { } /** - * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for - * `deviceChannel` set to **app**. - * - * @return sdkTransID The `sdkTransID` value as received from the 3D Secure 2 SDK. Only - * for `deviceChannel` set to **app**. + * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + * @return sdkTransID The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1564,11 +1306,9 @@ public String getSdkTransID() { } /** - * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for - * `deviceChannel` set to **app**. + * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. * - * @param sdkTransID The `sdkTransID` value as received from the 3D Secure 2 SDK. Only - * for `deviceChannel` set to **app**. + * @param sdkTransID The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1577,10 +1317,9 @@ public void setSdkTransID(String sdkTransID) { } /** - * Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. + * Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. * - * @param sdkVersion Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set - * to **app**. + * @param sdkVersion Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData sdkVersion(String sdkVersion) { @@ -1589,10 +1328,8 @@ public ThreeDS2RequestData sdkVersion(String sdkVersion) { } /** - * Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. - * - * @return sdkVersion Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` - * set to **app**. + * Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. + * @return sdkVersion Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1601,10 +1338,9 @@ public String getSdkVersion() { } /** - * Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. + * Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. * - * @param sdkVersion Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set - * to **app**. + * @param sdkVersion Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1625,7 +1361,6 @@ public ThreeDS2RequestData threeDSCompInd(String threeDSCompInd) { /** * Completion indicator for the device fingerprinting. - * * @return threeDSCompInd Completion indicator for the device fingerprinting. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_COMP_IND) @@ -1651,15 +1386,13 @@ public void setThreeDSCompInd(String threeDSCompInd) { * @param threeDSRequestorAuthenticationInd Indicates the type of Authentication request. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ - public ThreeDS2RequestData threeDSRequestorAuthenticationInd( - String threeDSRequestorAuthenticationInd) { + public ThreeDS2RequestData threeDSRequestorAuthenticationInd(String threeDSRequestorAuthenticationInd) { this.threeDSRequestorAuthenticationInd = threeDSRequestorAuthenticationInd; return this; } /** * Indicates the type of Authentication request. - * * @return threeDSRequestorAuthenticationInd Indicates the type of Authentication request. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_IND) @@ -1682,19 +1415,17 @@ public void setThreeDSRequestorAuthenticationInd(String threeDSRequestorAuthenti /** * threeDSRequestorAuthenticationInfo * - * @param threeDSRequestorAuthenticationInfo + * @param threeDSRequestorAuthenticationInfo * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ - public ThreeDS2RequestData threeDSRequestorAuthenticationInfo( - ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo) { + public ThreeDS2RequestData threeDSRequestorAuthenticationInfo(ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo) { this.threeDSRequestorAuthenticationInfo = threeDSRequestorAuthenticationInfo; return this; } /** * Get threeDSRequestorAuthenticationInfo - * - * @return threeDSRequestorAuthenticationInfo + * @return threeDSRequestorAuthenticationInfo */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1705,45 +1436,28 @@ public ThreeDSRequestorAuthenticationInfo getThreeDSRequestorAuthenticationInfo( /** * threeDSRequestorAuthenticationInfo * - * @param threeDSRequestorAuthenticationInfo + * @param threeDSRequestorAuthenticationInfo */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setThreeDSRequestorAuthenticationInfo( - ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo) { + public void setThreeDSRequestorAuthenticationInfo(ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo) { this.threeDSRequestorAuthenticationInfo = threeDSRequestorAuthenticationInfo; } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No - * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor - * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional - * risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only * - * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this - * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * - * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested - * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * - * **06** — Data Only + * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ - public ThreeDS2RequestData threeDSRequestorChallengeInd( - ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { + public ThreeDS2RequestData threeDSRequestorChallengeInd(ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { this.threeDSRequestorChallengeInd = threeDSRequestorChallengeInd; return this; } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No - * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor - * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional - * risk analysis is already performed) * **06** — Data Only - * - * @return threeDSRequestorChallengeInd Indicates whether a challenge is requested for this - * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * - * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested - * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * - * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * @return threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1752,34 +1466,20 @@ public ThreeDSRequestorChallengeIndEnum getThreeDSRequestorChallengeInd() { } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No - * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor - * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional - * risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only * - * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this - * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * - * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested - * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * - * **06** — Data Only + * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setThreeDSRequestorChallengeInd( - ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { + public void setThreeDSRequestorChallengeInd(ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { this.threeDSRequestorChallengeInd = threeDSRequestorChallengeInd; } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol - * for 3D Secure 2. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. * - * @param threeDSRequestorID Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you - * enrol for 3D Secure 2. + * @param threeDSRequestorID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData threeDSRequestorID(String threeDSRequestorID) { @@ -1788,15 +1488,8 @@ public ThreeDS2RequestData threeDSRequestorID(String threeDSRequestorID) { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol - * for 3D Secure 2. - * - * @return threeDSRequestorID Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you - * enrol for 3D Secure 2. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. + * @return threeDSRequestorID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1805,15 +1498,9 @@ public String getThreeDSRequestorID() { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol - * for 3D Secure 2. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. * - * @param threeDSRequestorID Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you - * enrol for 3D Secure 2. + * @param threeDSRequestorID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1822,15 +1509,9 @@ public void setThreeDSRequestorID(String threeDSRequestorID) { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for - * 3D Secure 2. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. * - * @param threeDSRequestorName Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol - * for 3D Secure 2. + * @param threeDSRequestorName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData threeDSRequestorName(String threeDSRequestorName) { @@ -1839,15 +1520,8 @@ public ThreeDS2RequestData threeDSRequestorName(String threeDSRequestorName) { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for - * 3D Secure 2. - * - * @return threeDSRequestorName Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol - * for 3D Secure 2. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. + * @return threeDSRequestorName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1856,15 +1530,9 @@ public String getThreeDSRequestorName() { } /** - * Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for - * 3D Secure 2. + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. * - * @param threeDSRequestorName Required for [authentication-only - * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol - * for 3D Secure 2. + * @param threeDSRequestorName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1875,19 +1543,17 @@ public void setThreeDSRequestorName(String threeDSRequestorName) { /** * threeDSRequestorPriorAuthenticationInfo * - * @param threeDSRequestorPriorAuthenticationInfo + * @param threeDSRequestorPriorAuthenticationInfo * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ - public ThreeDS2RequestData threeDSRequestorPriorAuthenticationInfo( - ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo) { + public ThreeDS2RequestData threeDSRequestorPriorAuthenticationInfo(ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo) { this.threeDSRequestorPriorAuthenticationInfo = threeDSRequestorPriorAuthenticationInfo; return this; } /** * Get threeDSRequestorPriorAuthenticationInfo - * - * @return threeDSRequestorPriorAuthenticationInfo + * @return threeDSRequestorPriorAuthenticationInfo */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_PRIOR_AUTHENTICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1898,21 +1564,18 @@ public ThreeDSRequestorPriorAuthenticationInfo getThreeDSRequestorPriorAuthentic /** * threeDSRequestorPriorAuthenticationInfo * - * @param threeDSRequestorPriorAuthenticationInfo + * @param threeDSRequestorPriorAuthenticationInfo */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_PRIOR_AUTHENTICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setThreeDSRequestorPriorAuthenticationInfo( - ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo) { + public void setThreeDSRequestorPriorAuthenticationInfo(ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo) { this.threeDSRequestorPriorAuthenticationInfo = threeDSRequestorPriorAuthenticationInfo; } /** - * URL of the (customer service) website that will be shown to the shopper in case of technical - * errors during the 3D Secure 2 process. + * URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. * - * @param threeDSRequestorURL URL of the (customer service) website that will be shown to the - * shopper in case of technical errors during the 3D Secure 2 process. + * @param threeDSRequestorURL URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData threeDSRequestorURL(String threeDSRequestorURL) { @@ -1921,11 +1584,8 @@ public ThreeDS2RequestData threeDSRequestorURL(String threeDSRequestorURL) { } /** - * URL of the (customer service) website that will be shown to the shopper in case of technical - * errors during the 3D Secure 2 process. - * - * @return threeDSRequestorURL URL of the (customer service) website that will be shown to the - * shopper in case of technical errors during the 3D Secure 2 process. + * URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. + * @return threeDSRequestorURL URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1934,11 +1594,9 @@ public String getThreeDSRequestorURL() { } /** - * URL of the (customer service) website that will be shown to the shopper in case of technical - * errors during the 3D Secure 2 process. + * URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. * - * @param threeDSRequestorURL URL of the (customer service) website that will be shown to the - * shopper in case of technical errors during the 3D Secure 2 process. + * @param threeDSRequestorURL URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1947,13 +1605,9 @@ public void setThreeDSRequestorURL(String threeDSRequestorURL) { } /** - * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * - * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** - * — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load * - * @param transType Identifies the type of transaction being authenticated. Length: 2 characters. - * Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — - * Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * @param transType Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData transType(TransTypeEnum transType) { @@ -1962,13 +1616,8 @@ public ThreeDS2RequestData transType(TransTypeEnum transType) { } /** - * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * - * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** - * — Quasi-Cash Transaction * **28** — Prepaid Activation and Load - * - * @return transType Identifies the type of transaction being authenticated. Length: 2 characters. - * Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — - * Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * @return transType Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load */ @JsonProperty(JSON_PROPERTY_TRANS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1977,13 +1626,9 @@ public TransTypeEnum getTransType() { } /** - * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * - * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** - * — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load * - * @param transType Identifies the type of transaction being authenticated. Length: 2 characters. - * Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — - * Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * @param transType Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load */ @JsonProperty(JSON_PROPERTY_TRANS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2004,7 +1649,6 @@ public ThreeDS2RequestData transactionType(TransactionTypeEnum transactionType) /** * Identify the type of the transaction being authenticated. - * * @return transactionType Identify the type of the transaction being authenticated. */ @JsonProperty(JSON_PROPERTY_TRANSACTION_TYPE) @@ -2025,11 +1669,9 @@ public void setTransactionType(TransactionTypeEnum transactionType) { } /** - * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only - * applicable for 3D Secure 2 protocol version 2.2.0. + * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. * - * @param whiteListStatus The `whiteListStatus` value returned from a previous 3D Secure - * 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. + * @param whiteListStatus The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData whiteListStatus(String whiteListStatus) { @@ -2038,11 +1680,8 @@ public ThreeDS2RequestData whiteListStatus(String whiteListStatus) { } /** - * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only - * applicable for 3D Secure 2 protocol version 2.2.0. - * - * @return whiteListStatus The `whiteListStatus` value returned from a previous 3D - * Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. + * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. + * @return whiteListStatus The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. */ @JsonProperty(JSON_PROPERTY_WHITE_LIST_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2051,11 +1690,9 @@ public String getWhiteListStatus() { } /** - * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only - * applicable for 3D Secure 2 protocol version 2.2.0. + * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. * - * @param whiteListStatus The `whiteListStatus` value returned from a previous 3D Secure - * 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. + * @param whiteListStatus The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. */ @JsonProperty(JSON_PROPERTY_WHITE_LIST_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2066,7 +1703,7 @@ public void setWhiteListStatus(String whiteListStatus) { /** * workPhone * - * @param workPhone + * @param workPhone * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData workPhone(Phone workPhone) { @@ -2076,8 +1713,7 @@ public ThreeDS2RequestData workPhone(Phone workPhone) { /** * Get workPhone - * - * @return workPhone + * @return workPhone */ @JsonProperty(JSON_PROPERTY_WORK_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2088,7 +1724,7 @@ public Phone getWorkPhone() { /** * workPhone * - * @param workPhone + * @param workPhone */ @JsonProperty(JSON_PROPERTY_WORK_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2096,7 +1732,9 @@ public void setWorkPhone(Phone workPhone) { this.workPhone = workPhone; } - /** Return true if this ThreeDS2RequestData object is equal to o. */ + /** + * Return true if this ThreeDS2RequestData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -2106,97 +1744,50 @@ public boolean equals(Object o) { return false; } ThreeDS2RequestData threeDS2RequestData = (ThreeDS2RequestData) o; - return Objects.equals(this.acctInfo, threeDS2RequestData.acctInfo) - && Objects.equals(this.acctType, threeDS2RequestData.acctType) - && Objects.equals(this.acquirerBIN, threeDS2RequestData.acquirerBIN) - && Objects.equals(this.acquirerMerchantID, threeDS2RequestData.acquirerMerchantID) - && Objects.equals(this.addrMatch, threeDS2RequestData.addrMatch) - && Objects.equals(this.authenticationOnly, threeDS2RequestData.authenticationOnly) - && Objects.equals(this.challengeIndicator, threeDS2RequestData.challengeIndicator) - && Objects.equals(this.deviceChannel, threeDS2RequestData.deviceChannel) - && Objects.equals(this.deviceRenderOptions, threeDS2RequestData.deviceRenderOptions) - && Objects.equals(this.homePhone, threeDS2RequestData.homePhone) - && Objects.equals(this.mcc, threeDS2RequestData.mcc) - && Objects.equals(this.merchantName, threeDS2RequestData.merchantName) - && Objects.equals(this.messageVersion, threeDS2RequestData.messageVersion) - && Objects.equals(this.mobilePhone, threeDS2RequestData.mobilePhone) - && Objects.equals(this.notificationURL, threeDS2RequestData.notificationURL) - && Objects.equals(this.payTokenInd, threeDS2RequestData.payTokenInd) - && Objects.equals( - this.paymentAuthenticationUseCase, threeDS2RequestData.paymentAuthenticationUseCase) - && Objects.equals(this.purchaseInstalData, threeDS2RequestData.purchaseInstalData) - && Objects.equals(this.recurringExpiry, threeDS2RequestData.recurringExpiry) - && Objects.equals(this.recurringFrequency, threeDS2RequestData.recurringFrequency) - && Objects.equals(this.sdkAppID, threeDS2RequestData.sdkAppID) - && Objects.equals(this.sdkEncData, threeDS2RequestData.sdkEncData) - && Objects.equals(this.sdkEphemPubKey, threeDS2RequestData.sdkEphemPubKey) - && Objects.equals(this.sdkMaxTimeout, threeDS2RequestData.sdkMaxTimeout) - && Objects.equals(this.sdkReferenceNumber, threeDS2RequestData.sdkReferenceNumber) - && Objects.equals(this.sdkTransID, threeDS2RequestData.sdkTransID) - && Objects.equals(this.sdkVersion, threeDS2RequestData.sdkVersion) - && Objects.equals(this.threeDSCompInd, threeDS2RequestData.threeDSCompInd) - && Objects.equals( - this.threeDSRequestorAuthenticationInd, - threeDS2RequestData.threeDSRequestorAuthenticationInd) - && Objects.equals( - this.threeDSRequestorAuthenticationInfo, - threeDS2RequestData.threeDSRequestorAuthenticationInfo) - && Objects.equals( - this.threeDSRequestorChallengeInd, threeDS2RequestData.threeDSRequestorChallengeInd) - && Objects.equals(this.threeDSRequestorID, threeDS2RequestData.threeDSRequestorID) - && Objects.equals(this.threeDSRequestorName, threeDS2RequestData.threeDSRequestorName) - && Objects.equals( - this.threeDSRequestorPriorAuthenticationInfo, - threeDS2RequestData.threeDSRequestorPriorAuthenticationInfo) - && Objects.equals(this.threeDSRequestorURL, threeDS2RequestData.threeDSRequestorURL) - && Objects.equals(this.transType, threeDS2RequestData.transType) - && Objects.equals(this.transactionType, threeDS2RequestData.transactionType) - && Objects.equals(this.whiteListStatus, threeDS2RequestData.whiteListStatus) - && Objects.equals(this.workPhone, threeDS2RequestData.workPhone); + return Objects.equals(this.acctInfo, threeDS2RequestData.acctInfo) && + Objects.equals(this.acctType, threeDS2RequestData.acctType) && + Objects.equals(this.acquirerBIN, threeDS2RequestData.acquirerBIN) && + Objects.equals(this.acquirerMerchantID, threeDS2RequestData.acquirerMerchantID) && + Objects.equals(this.addrMatch, threeDS2RequestData.addrMatch) && + Objects.equals(this.authenticationOnly, threeDS2RequestData.authenticationOnly) && + Objects.equals(this.challengeIndicator, threeDS2RequestData.challengeIndicator) && + Objects.equals(this.deviceChannel, threeDS2RequestData.deviceChannel) && + Objects.equals(this.deviceRenderOptions, threeDS2RequestData.deviceRenderOptions) && + Objects.equals(this.homePhone, threeDS2RequestData.homePhone) && + Objects.equals(this.mcc, threeDS2RequestData.mcc) && + Objects.equals(this.merchantName, threeDS2RequestData.merchantName) && + Objects.equals(this.messageVersion, threeDS2RequestData.messageVersion) && + Objects.equals(this.mobilePhone, threeDS2RequestData.mobilePhone) && + Objects.equals(this.notificationURL, threeDS2RequestData.notificationURL) && + Objects.equals(this.payTokenInd, threeDS2RequestData.payTokenInd) && + Objects.equals(this.paymentAuthenticationUseCase, threeDS2RequestData.paymentAuthenticationUseCase) && + Objects.equals(this.purchaseInstalData, threeDS2RequestData.purchaseInstalData) && + Objects.equals(this.recurringExpiry, threeDS2RequestData.recurringExpiry) && + Objects.equals(this.recurringFrequency, threeDS2RequestData.recurringFrequency) && + Objects.equals(this.sdkAppID, threeDS2RequestData.sdkAppID) && + Objects.equals(this.sdkEncData, threeDS2RequestData.sdkEncData) && + Objects.equals(this.sdkEphemPubKey, threeDS2RequestData.sdkEphemPubKey) && + Objects.equals(this.sdkMaxTimeout, threeDS2RequestData.sdkMaxTimeout) && + Objects.equals(this.sdkReferenceNumber, threeDS2RequestData.sdkReferenceNumber) && + Objects.equals(this.sdkTransID, threeDS2RequestData.sdkTransID) && + Objects.equals(this.sdkVersion, threeDS2RequestData.sdkVersion) && + Objects.equals(this.threeDSCompInd, threeDS2RequestData.threeDSCompInd) && + Objects.equals(this.threeDSRequestorAuthenticationInd, threeDS2RequestData.threeDSRequestorAuthenticationInd) && + Objects.equals(this.threeDSRequestorAuthenticationInfo, threeDS2RequestData.threeDSRequestorAuthenticationInfo) && + Objects.equals(this.threeDSRequestorChallengeInd, threeDS2RequestData.threeDSRequestorChallengeInd) && + Objects.equals(this.threeDSRequestorID, threeDS2RequestData.threeDSRequestorID) && + Objects.equals(this.threeDSRequestorName, threeDS2RequestData.threeDSRequestorName) && + Objects.equals(this.threeDSRequestorPriorAuthenticationInfo, threeDS2RequestData.threeDSRequestorPriorAuthenticationInfo) && + Objects.equals(this.threeDSRequestorURL, threeDS2RequestData.threeDSRequestorURL) && + Objects.equals(this.transType, threeDS2RequestData.transType) && + Objects.equals(this.transactionType, threeDS2RequestData.transactionType) && + Objects.equals(this.whiteListStatus, threeDS2RequestData.whiteListStatus) && + Objects.equals(this.workPhone, threeDS2RequestData.workPhone); } @Override public int hashCode() { - return Objects.hash( - acctInfo, - acctType, - acquirerBIN, - acquirerMerchantID, - addrMatch, - authenticationOnly, - challengeIndicator, - deviceChannel, - deviceRenderOptions, - homePhone, - mcc, - merchantName, - messageVersion, - mobilePhone, - notificationURL, - payTokenInd, - paymentAuthenticationUseCase, - purchaseInstalData, - recurringExpiry, - recurringFrequency, - sdkAppID, - sdkEncData, - sdkEphemPubKey, - sdkMaxTimeout, - sdkReferenceNumber, - sdkTransID, - sdkVersion, - threeDSCompInd, - threeDSRequestorAuthenticationInd, - threeDSRequestorAuthenticationInfo, - threeDSRequestorChallengeInd, - threeDSRequestorID, - threeDSRequestorName, - threeDSRequestorPriorAuthenticationInfo, - threeDSRequestorURL, - transType, - transactionType, - whiteListStatus, - workPhone); + return Objects.hash(acctInfo, acctType, acquirerBIN, acquirerMerchantID, addrMatch, authenticationOnly, challengeIndicator, deviceChannel, deviceRenderOptions, homePhone, mcc, merchantName, messageVersion, mobilePhone, notificationURL, payTokenInd, paymentAuthenticationUseCase, purchaseInstalData, recurringExpiry, recurringFrequency, sdkAppID, sdkEncData, sdkEphemPubKey, sdkMaxTimeout, sdkReferenceNumber, sdkTransID, sdkVersion, threeDSCompInd, threeDSRequestorAuthenticationInd, threeDSRequestorAuthenticationInfo, threeDSRequestorChallengeInd, threeDSRequestorID, threeDSRequestorName, threeDSRequestorPriorAuthenticationInfo, threeDSRequestorURL, transType, transactionType, whiteListStatus, workPhone); } @Override @@ -2211,9 +1802,7 @@ public String toString() { sb.append(" authenticationOnly: ").append(toIndentedString(authenticationOnly)).append("\n"); sb.append(" challengeIndicator: ").append(toIndentedString(challengeIndicator)).append("\n"); sb.append(" deviceChannel: ").append(toIndentedString(deviceChannel)).append("\n"); - sb.append(" deviceRenderOptions: ") - .append(toIndentedString(deviceRenderOptions)) - .append("\n"); + sb.append(" deviceRenderOptions: ").append(toIndentedString(deviceRenderOptions)).append("\n"); sb.append(" homePhone: ").append(toIndentedString(homePhone)).append("\n"); sb.append(" mcc: ").append(toIndentedString(mcc)).append("\n"); sb.append(" merchantName: ").append(toIndentedString(merchantName)).append("\n"); @@ -2221,9 +1810,7 @@ public String toString() { sb.append(" mobilePhone: ").append(toIndentedString(mobilePhone)).append("\n"); sb.append(" notificationURL: ").append(toIndentedString(notificationURL)).append("\n"); sb.append(" payTokenInd: ").append(toIndentedString(payTokenInd)).append("\n"); - sb.append(" paymentAuthenticationUseCase: ") - .append(toIndentedString(paymentAuthenticationUseCase)) - .append("\n"); + sb.append(" paymentAuthenticationUseCase: ").append(toIndentedString(paymentAuthenticationUseCase)).append("\n"); sb.append(" purchaseInstalData: ").append(toIndentedString(purchaseInstalData)).append("\n"); sb.append(" recurringExpiry: ").append(toIndentedString(recurringExpiry)).append("\n"); sb.append(" recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n"); @@ -2235,25 +1822,13 @@ public String toString() { sb.append(" sdkTransID: ").append(toIndentedString(sdkTransID)).append("\n"); sb.append(" sdkVersion: ").append(toIndentedString(sdkVersion)).append("\n"); sb.append(" threeDSCompInd: ").append(toIndentedString(threeDSCompInd)).append("\n"); - sb.append(" threeDSRequestorAuthenticationInd: ") - .append(toIndentedString(threeDSRequestorAuthenticationInd)) - .append("\n"); - sb.append(" threeDSRequestorAuthenticationInfo: ") - .append(toIndentedString(threeDSRequestorAuthenticationInfo)) - .append("\n"); - sb.append(" threeDSRequestorChallengeInd: ") - .append(toIndentedString(threeDSRequestorChallengeInd)) - .append("\n"); + sb.append(" threeDSRequestorAuthenticationInd: ").append(toIndentedString(threeDSRequestorAuthenticationInd)).append("\n"); + sb.append(" threeDSRequestorAuthenticationInfo: ").append(toIndentedString(threeDSRequestorAuthenticationInfo)).append("\n"); + sb.append(" threeDSRequestorChallengeInd: ").append(toIndentedString(threeDSRequestorChallengeInd)).append("\n"); sb.append(" threeDSRequestorID: ").append(toIndentedString(threeDSRequestorID)).append("\n"); - sb.append(" threeDSRequestorName: ") - .append(toIndentedString(threeDSRequestorName)) - .append("\n"); - sb.append(" threeDSRequestorPriorAuthenticationInfo: ") - .append(toIndentedString(threeDSRequestorPriorAuthenticationInfo)) - .append("\n"); - sb.append(" threeDSRequestorURL: ") - .append(toIndentedString(threeDSRequestorURL)) - .append("\n"); + sb.append(" threeDSRequestorName: ").append(toIndentedString(threeDSRequestorName)).append("\n"); + sb.append(" threeDSRequestorPriorAuthenticationInfo: ").append(toIndentedString(threeDSRequestorPriorAuthenticationInfo)).append("\n"); + sb.append(" threeDSRequestorURL: ").append(toIndentedString(threeDSRequestorURL)).append("\n"); sb.append(" transType: ").append(toIndentedString(transType)).append("\n"); sb.append(" transactionType: ").append(toIndentedString(transactionType)).append("\n"); sb.append(" whiteListStatus: ").append(toIndentedString(whiteListStatus)).append("\n"); @@ -2263,7 +1838,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -2272,23 +1848,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ThreeDS2RequestData given an JSON string * * @param jsonString JSON string * @return An instance of ThreeDS2RequestData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ThreeDS2RequestData + * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDS2RequestData */ public static ThreeDS2RequestData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDS2RequestData.class); } - - /** - * Convert an instance of ThreeDS2RequestData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ThreeDS2RequestData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ThreeDS2Result.java b/src/main/java/com/adyen/model/payment/ThreeDS2Result.java index 9b2655d61..47a86e087 100644 --- a/src/main/java/com/adyen/model/payment/ThreeDS2Result.java +++ b/src/main/java/com/adyen/model/payment/ThreeDS2Result.java @@ -2,26 +2,31 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ThreeDS2Result */ +/** + * ThreeDS2Result + */ @JsonPropertyOrder({ ThreeDS2Result.JSON_PROPERTY_AUTHENTICATION_VALUE, ThreeDS2Result.JSON_PROPERTY_CAVV_ALGORITHM, @@ -38,6 +43,7 @@ ThreeDS2Result.JSON_PROPERTY_TRANS_STATUS_REASON, ThreeDS2Result.JSON_PROPERTY_WHITE_LIST_STATUS }) + public class ThreeDS2Result { public static final String JSON_PROPERTY_AUTHENTICATION_VALUE = "authenticationValue"; private String authenticationValue; @@ -46,11 +52,10 @@ public class ThreeDS2Result { private String cavvAlgorithm; /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the - * authentication has been cancelled. For possible values, refer to [3D Secure API - * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). */ public enum ChallengeCancelEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -70,7 +75,7 @@ public enum ChallengeCancelEnum { private String value; ChallengeCancelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -91,11 +96,7 @@ public static ChallengeCancelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ChallengeCancelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ChallengeCancelEnum.values())); + LOG.warning("ChallengeCancelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChallengeCancelEnum.values())); return null; } } @@ -110,11 +111,10 @@ public static ChallengeCancelEnum fromValue(String value) { private String eci; /** - * Indicates the exemption type that was applied by the issuer to the authentication, if exemption - * applied. Allowed values: * `lowValue` * `secureCorporate` * - * `trustedBeneficiary` * `transactionRiskAnalysis` + * Indicates the exemption type that was applied by the issuer to the authentication, if exemption applied. Allowed values: * `lowValue` * `secureCorporate` * `trustedBeneficiary` * `transactionRiskAnalysis` */ public enum ExemptionIndicatorEnum { + LOWVALUE(String.valueOf("lowValue")), SECURECORPORATE(String.valueOf("secureCorporate")), @@ -128,7 +128,7 @@ public enum ExemptionIndicatorEnum { private String value; ExemptionIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -149,11 +149,7 @@ public static ExemptionIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ExemptionIndicatorEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ExemptionIndicatorEnum.values())); + LOG.warning("ExemptionIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ExemptionIndicatorEnum.values())); return null; } } @@ -168,12 +164,10 @@ public static ExemptionIndicatorEnum fromValue(String value) { private String riskScore; /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No - * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor - * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional - * risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only */ public enum ThreeDSRequestorChallengeIndEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -186,13 +180,12 @@ public enum ThreeDSRequestorChallengeIndEnum { _06(String.valueOf("06")); - private static final Logger LOG = - Logger.getLogger(ThreeDSRequestorChallengeIndEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(ThreeDSRequestorChallengeIndEnum.class.getName()); private String value; ThreeDSRequestorChallengeIndEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -213,17 +206,12 @@ public static ThreeDSRequestorChallengeIndEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ThreeDSRequestorChallengeIndEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ThreeDSRequestorChallengeIndEnum.values())); + LOG.warning("ThreeDSRequestorChallengeIndEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ThreeDSRequestorChallengeIndEnum.values())); return null; } } - public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND = - "threeDSRequestorChallengeInd"; + public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND = "threeDSRequestorChallengeInd"; private ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd; public static final String JSON_PROPERTY_THREE_D_S_SERVER_TRANS_I_D = "threeDSServerTransID"; @@ -241,13 +229,13 @@ public static ThreeDSRequestorChallengeIndEnum fromValue(String value) { public static final String JSON_PROPERTY_WHITE_LIST_STATUS = "whiteListStatus"; private String whiteListStatus; - public ThreeDS2Result() {} + public ThreeDS2Result() { + } /** * The `authenticationValue` value as defined in the 3D Secure 2 specification. * - * @param authenticationValue The `authenticationValue` value as defined in the 3D - * Secure 2 specification. + * @param authenticationValue The `authenticationValue` value as defined in the 3D Secure 2 specification. * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result authenticationValue(String authenticationValue) { @@ -257,9 +245,7 @@ public ThreeDS2Result authenticationValue(String authenticationValue) { /** * The `authenticationValue` value as defined in the 3D Secure 2 specification. - * - * @return authenticationValue The `authenticationValue` value as defined in the 3D - * Secure 2 specification. + * @return authenticationValue The `authenticationValue` value as defined in the 3D Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -270,8 +256,7 @@ public String getAuthenticationValue() { /** * The `authenticationValue` value as defined in the 3D Secure 2 specification. * - * @param authenticationValue The `authenticationValue` value as defined in the 3D - * Secure 2 specification. + * @param authenticationValue The `authenticationValue` value as defined in the 3D Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -280,11 +265,9 @@ public void setAuthenticationValue(String authenticationValue) { } /** - * The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires - * integrations. + * The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires integrations. * - * @param cavvAlgorithm The algorithm used by the ACS to calculate the authentication value, only - * for Cartes Bancaires integrations. + * @param cavvAlgorithm The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires integrations. * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result cavvAlgorithm(String cavvAlgorithm) { @@ -293,11 +276,8 @@ public ThreeDS2Result cavvAlgorithm(String cavvAlgorithm) { } /** - * The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires - * integrations. - * - * @return cavvAlgorithm The algorithm used by the ACS to calculate the authentication value, only - * for Cartes Bancaires integrations. + * The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires integrations. + * @return cavvAlgorithm The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires integrations. */ @JsonProperty(JSON_PROPERTY_CAVV_ALGORITHM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -306,11 +286,9 @@ public String getCavvAlgorithm() { } /** - * The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires - * integrations. + * The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires integrations. * - * @param cavvAlgorithm The algorithm used by the ACS to calculate the authentication value, only - * for Cartes Bancaires integrations. + * @param cavvAlgorithm The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires integrations. */ @JsonProperty(JSON_PROPERTY_CAVV_ALGORITHM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -319,14 +297,9 @@ public void setCavvAlgorithm(String cavvAlgorithm) { } /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the - * authentication has been cancelled. For possible values, refer to [3D Secure API - * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). * - * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory - * Server (DS) that the authentication has been cancelled. For possible values, refer to [3D - * Secure API - * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result challengeCancel(ChallengeCancelEnum challengeCancel) { @@ -335,14 +308,8 @@ public ThreeDS2Result challengeCancel(ChallengeCancelEnum challengeCancel) { } /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the - * authentication has been cancelled. For possible values, refer to [3D Secure API - * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). - * - * @return challengeCancel Indicator informing the Access Control Server (ACS) and the Directory - * Server (DS) that the authentication has been cancelled. For possible values, refer to [3D - * Secure API - * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * @return challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). */ @JsonProperty(JSON_PROPERTY_CHALLENGE_CANCEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -351,14 +318,9 @@ public ChallengeCancelEnum getChallengeCancel() { } /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the - * authentication has been cancelled. For possible values, refer to [3D Secure API - * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). * - * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory - * Server (DS) that the authentication has been cancelled. For possible values, refer to [3D - * Secure API - * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). */ @JsonProperty(JSON_PROPERTY_CHALLENGE_CANCEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -379,7 +341,6 @@ public ThreeDS2Result dsTransID(String dsTransID) { /** * The `dsTransID` value as defined in the 3D Secure 2 specification. - * * @return dsTransID The `dsTransID` value as defined in the 3D Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_DS_TRANS_I_D) @@ -412,7 +373,6 @@ public ThreeDS2Result eci(String eci) { /** * The `eci` value as defined in the 3D Secure 2 specification. - * * @return eci The `eci` value as defined in the 3D Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_ECI) @@ -433,14 +393,9 @@ public void setEci(String eci) { } /** - * Indicates the exemption type that was applied by the issuer to the authentication, if exemption - * applied. Allowed values: * `lowValue` * `secureCorporate` * - * `trustedBeneficiary` * `transactionRiskAnalysis` + * Indicates the exemption type that was applied by the issuer to the authentication, if exemption applied. Allowed values: * `lowValue` * `secureCorporate` * `trustedBeneficiary` * `transactionRiskAnalysis` * - * @param exemptionIndicator Indicates the exemption type that was applied by the issuer to the - * authentication, if exemption applied. Allowed values: * `lowValue` * - * `secureCorporate` * `trustedBeneficiary` * - * `transactionRiskAnalysis` + * @param exemptionIndicator Indicates the exemption type that was applied by the issuer to the authentication, if exemption applied. Allowed values: * `lowValue` * `secureCorporate` * `trustedBeneficiary` * `transactionRiskAnalysis` * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result exemptionIndicator(ExemptionIndicatorEnum exemptionIndicator) { @@ -449,14 +404,8 @@ public ThreeDS2Result exemptionIndicator(ExemptionIndicatorEnum exemptionIndicat } /** - * Indicates the exemption type that was applied by the issuer to the authentication, if exemption - * applied. Allowed values: * `lowValue` * `secureCorporate` * - * `trustedBeneficiary` * `transactionRiskAnalysis` - * - * @return exemptionIndicator Indicates the exemption type that was applied by the issuer to the - * authentication, if exemption applied. Allowed values: * `lowValue` * - * `secureCorporate` * `trustedBeneficiary` * - * `transactionRiskAnalysis` + * Indicates the exemption type that was applied by the issuer to the authentication, if exemption applied. Allowed values: * `lowValue` * `secureCorporate` * `trustedBeneficiary` * `transactionRiskAnalysis` + * @return exemptionIndicator Indicates the exemption type that was applied by the issuer to the authentication, if exemption applied. Allowed values: * `lowValue` * `secureCorporate` * `trustedBeneficiary` * `transactionRiskAnalysis` */ @JsonProperty(JSON_PROPERTY_EXEMPTION_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -465,14 +414,9 @@ public ExemptionIndicatorEnum getExemptionIndicator() { } /** - * Indicates the exemption type that was applied by the issuer to the authentication, if exemption - * applied. Allowed values: * `lowValue` * `secureCorporate` * - * `trustedBeneficiary` * `transactionRiskAnalysis` + * Indicates the exemption type that was applied by the issuer to the authentication, if exemption applied. Allowed values: * `lowValue` * `secureCorporate` * `trustedBeneficiary` * `transactionRiskAnalysis` * - * @param exemptionIndicator Indicates the exemption type that was applied by the issuer to the - * authentication, if exemption applied. Allowed values: * `lowValue` * - * `secureCorporate` * `trustedBeneficiary` * - * `transactionRiskAnalysis` + * @param exemptionIndicator Indicates the exemption type that was applied by the issuer to the authentication, if exemption applied. Allowed values: * `lowValue` * `secureCorporate` * `trustedBeneficiary` * `transactionRiskAnalysis` */ @JsonProperty(JSON_PROPERTY_EXEMPTION_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -483,8 +427,7 @@ public void setExemptionIndicator(ExemptionIndicatorEnum exemptionIndicator) { /** * The `messageVersion` value as defined in the 3D Secure 2 specification. * - * @param messageVersion The `messageVersion` value as defined in the 3D Secure 2 - * specification. + * @param messageVersion The `messageVersion` value as defined in the 3D Secure 2 specification. * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result messageVersion(String messageVersion) { @@ -494,9 +437,7 @@ public ThreeDS2Result messageVersion(String messageVersion) { /** * The `messageVersion` value as defined in the 3D Secure 2 specification. - * - * @return messageVersion The `messageVersion` value as defined in the 3D Secure 2 - * specification. + * @return messageVersion The `messageVersion` value as defined in the 3D Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_MESSAGE_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -507,8 +448,7 @@ public String getMessageVersion() { /** * The `messageVersion` value as defined in the 3D Secure 2 specification. * - * @param messageVersion The `messageVersion` value as defined in the 3D Secure 2 - * specification. + * @param messageVersion The `messageVersion` value as defined in the 3D Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_MESSAGE_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -529,7 +469,6 @@ public ThreeDS2Result riskScore(String riskScore) { /** * Risk score calculated by Cartes Bancaires Directory Server (DS). - * * @return riskScore Risk score calculated by Cartes Bancaires Directory Server (DS). */ @JsonProperty(JSON_PROPERTY_RISK_SCORE) @@ -550,35 +489,19 @@ public void setRiskScore(String riskScore) { } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No - * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor - * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional - * risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only * - * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this - * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * - * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested - * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * - * **06** — Data Only + * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ - public ThreeDS2Result threeDSRequestorChallengeInd( - ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { + public ThreeDS2Result threeDSRequestorChallengeInd(ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { this.threeDSRequestorChallengeInd = threeDSRequestorChallengeInd; return this; } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No - * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor - * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional - * risk analysis is already performed) * **06** — Data Only - * - * @return threeDSRequestorChallengeInd Indicates whether a challenge is requested for this - * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * - * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested - * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * - * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * @return threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -587,29 +510,20 @@ public ThreeDSRequestorChallengeIndEnum getThreeDSRequestorChallengeInd() { } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No - * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor - * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional - * risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only * - * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this - * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * - * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested - * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * - * **06** — Data Only + * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setThreeDSRequestorChallengeInd( - ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { + public void setThreeDSRequestorChallengeInd(ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { this.threeDSRequestorChallengeInd = threeDSRequestorChallengeInd; } /** * The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. * - * @param threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D - * Secure 2 specification. + * @param threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result threeDSServerTransID(String threeDSServerTransID) { @@ -619,9 +533,7 @@ public ThreeDS2Result threeDSServerTransID(String threeDSServerTransID) { /** * The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. - * - * @return threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D - * Secure 2 specification. + * @return threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_SERVER_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -632,8 +544,7 @@ public String getThreeDSServerTransID() { /** * The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. * - * @param threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D - * Secure 2 specification. + * @param threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_SERVER_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -654,7 +565,6 @@ public ThreeDS2Result timestamp(String timestamp) { /** * The `timestamp` value of the 3D Secure 2 authentication. - * * @return timestamp The `timestamp` value of the 3D Secure 2 authentication. */ @JsonProperty(JSON_PROPERTY_TIMESTAMP) @@ -677,8 +587,7 @@ public void setTimestamp(String timestamp) { /** * The `transStatus` value as defined in the 3D Secure 2 specification. * - * @param transStatus The `transStatus` value as defined in the 3D Secure 2 - * specification. + * @param transStatus The `transStatus` value as defined in the 3D Secure 2 specification. * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result transStatus(String transStatus) { @@ -688,9 +597,7 @@ public ThreeDS2Result transStatus(String transStatus) { /** * The `transStatus` value as defined in the 3D Secure 2 specification. - * - * @return transStatus The `transStatus` value as defined in the 3D Secure 2 - * specification. + * @return transStatus The `transStatus` value as defined in the 3D Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -701,8 +608,7 @@ public String getTransStatus() { /** * The `transStatus` value as defined in the 3D Secure 2 specification. * - * @param transStatus The `transStatus` value as defined in the 3D Secure 2 - * specification. + * @param transStatus The `transStatus` value as defined in the 3D Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -711,13 +617,9 @@ public void setTransStatus(String transStatus) { } /** - * Provides information on why the `transStatus` field has the specified value. For - * possible values, refer to [our - * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). * - * @param transStatusReason Provides information on why the `transStatus` field has the - * specified value. For possible values, refer to [our - * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * @param transStatusReason Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result transStatusReason(String transStatusReason) { @@ -726,13 +628,8 @@ public ThreeDS2Result transStatusReason(String transStatusReason) { } /** - * Provides information on why the `transStatus` field has the specified value. For - * possible values, refer to [our - * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). - * - * @return transStatusReason Provides information on why the `transStatus` field has the - * specified value. For possible values, refer to [our - * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * @return transStatusReason Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -741,13 +638,9 @@ public String getTransStatusReason() { } /** - * Provides information on why the `transStatus` field has the specified value. For - * possible values, refer to [our - * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). * - * @param transStatusReason Provides information on why the `transStatus` field has the - * specified value. For possible values, refer to [our - * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * @param transStatusReason Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -758,8 +651,7 @@ public void setTransStatusReason(String transStatusReason) { /** * The `whiteListStatus` value as defined in the 3D Secure 2 specification. * - * @param whiteListStatus The `whiteListStatus` value as defined in the 3D Secure 2 - * specification. + * @param whiteListStatus The `whiteListStatus` value as defined in the 3D Secure 2 specification. * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result whiteListStatus(String whiteListStatus) { @@ -769,9 +661,7 @@ public ThreeDS2Result whiteListStatus(String whiteListStatus) { /** * The `whiteListStatus` value as defined in the 3D Secure 2 specification. - * - * @return whiteListStatus The `whiteListStatus` value as defined in the 3D Secure 2 - * specification. + * @return whiteListStatus The `whiteListStatus` value as defined in the 3D Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_WHITE_LIST_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -782,8 +672,7 @@ public String getWhiteListStatus() { /** * The `whiteListStatus` value as defined in the 3D Secure 2 specification. * - * @param whiteListStatus The `whiteListStatus` value as defined in the 3D Secure 2 - * specification. + * @param whiteListStatus The `whiteListStatus` value as defined in the 3D Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_WHITE_LIST_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -791,7 +680,9 @@ public void setWhiteListStatus(String whiteListStatus) { this.whiteListStatus = whiteListStatus; } - /** Return true if this ThreeDS2Result object is equal to o. */ + /** + * Return true if this ThreeDS2Result object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -801,49 +692,32 @@ public boolean equals(Object o) { return false; } ThreeDS2Result threeDS2Result = (ThreeDS2Result) o; - return Objects.equals(this.authenticationValue, threeDS2Result.authenticationValue) - && Objects.equals(this.cavvAlgorithm, threeDS2Result.cavvAlgorithm) - && Objects.equals(this.challengeCancel, threeDS2Result.challengeCancel) - && Objects.equals(this.dsTransID, threeDS2Result.dsTransID) - && Objects.equals(this.eci, threeDS2Result.eci) - && Objects.equals(this.exemptionIndicator, threeDS2Result.exemptionIndicator) - && Objects.equals(this.messageVersion, threeDS2Result.messageVersion) - && Objects.equals(this.riskScore, threeDS2Result.riskScore) - && Objects.equals( - this.threeDSRequestorChallengeInd, threeDS2Result.threeDSRequestorChallengeInd) - && Objects.equals(this.threeDSServerTransID, threeDS2Result.threeDSServerTransID) - && Objects.equals(this.timestamp, threeDS2Result.timestamp) - && Objects.equals(this.transStatus, threeDS2Result.transStatus) - && Objects.equals(this.transStatusReason, threeDS2Result.transStatusReason) - && Objects.equals(this.whiteListStatus, threeDS2Result.whiteListStatus); + return Objects.equals(this.authenticationValue, threeDS2Result.authenticationValue) && + Objects.equals(this.cavvAlgorithm, threeDS2Result.cavvAlgorithm) && + Objects.equals(this.challengeCancel, threeDS2Result.challengeCancel) && + Objects.equals(this.dsTransID, threeDS2Result.dsTransID) && + Objects.equals(this.eci, threeDS2Result.eci) && + Objects.equals(this.exemptionIndicator, threeDS2Result.exemptionIndicator) && + Objects.equals(this.messageVersion, threeDS2Result.messageVersion) && + Objects.equals(this.riskScore, threeDS2Result.riskScore) && + Objects.equals(this.threeDSRequestorChallengeInd, threeDS2Result.threeDSRequestorChallengeInd) && + Objects.equals(this.threeDSServerTransID, threeDS2Result.threeDSServerTransID) && + Objects.equals(this.timestamp, threeDS2Result.timestamp) && + Objects.equals(this.transStatus, threeDS2Result.transStatus) && + Objects.equals(this.transStatusReason, threeDS2Result.transStatusReason) && + Objects.equals(this.whiteListStatus, threeDS2Result.whiteListStatus); } @Override public int hashCode() { - return Objects.hash( - authenticationValue, - cavvAlgorithm, - challengeCancel, - dsTransID, - eci, - exemptionIndicator, - messageVersion, - riskScore, - threeDSRequestorChallengeInd, - threeDSServerTransID, - timestamp, - transStatus, - transStatusReason, - whiteListStatus); + return Objects.hash(authenticationValue, cavvAlgorithm, challengeCancel, dsTransID, eci, exemptionIndicator, messageVersion, riskScore, threeDSRequestorChallengeInd, threeDSServerTransID, timestamp, transStatus, transStatusReason, whiteListStatus); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ThreeDS2Result {\n"); - sb.append(" authenticationValue: ") - .append(toIndentedString(authenticationValue)) - .append("\n"); + sb.append(" authenticationValue: ").append(toIndentedString(authenticationValue)).append("\n"); sb.append(" cavvAlgorithm: ").append(toIndentedString(cavvAlgorithm)).append("\n"); sb.append(" challengeCancel: ").append(toIndentedString(challengeCancel)).append("\n"); sb.append(" dsTransID: ").append(toIndentedString(dsTransID)).append("\n"); @@ -851,12 +725,8 @@ public String toString() { sb.append(" exemptionIndicator: ").append(toIndentedString(exemptionIndicator)).append("\n"); sb.append(" messageVersion: ").append(toIndentedString(messageVersion)).append("\n"); sb.append(" riskScore: ").append(toIndentedString(riskScore)).append("\n"); - sb.append(" threeDSRequestorChallengeInd: ") - .append(toIndentedString(threeDSRequestorChallengeInd)) - .append("\n"); - sb.append(" threeDSServerTransID: ") - .append(toIndentedString(threeDSServerTransID)) - .append("\n"); + sb.append(" threeDSRequestorChallengeInd: ").append(toIndentedString(threeDSRequestorChallengeInd)).append("\n"); + sb.append(" threeDSServerTransID: ").append(toIndentedString(threeDSServerTransID)).append("\n"); sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); sb.append(" transStatus: ").append(toIndentedString(transStatus)).append("\n"); sb.append(" transStatusReason: ").append(toIndentedString(transStatusReason)).append("\n"); @@ -866,7 +736,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -875,7 +746,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ThreeDS2Result given an JSON string * * @param jsonString JSON string @@ -885,12 +756,11 @@ private String toIndentedString(Object o) { public static ThreeDS2Result fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDS2Result.class); } - - /** - * Convert an instance of ThreeDS2Result to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ThreeDS2Result to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ThreeDS2ResultRequest.java b/src/main/java/com/adyen/model/payment/ThreeDS2ResultRequest.java index 053b395e0..ed2316233 100644 --- a/src/main/java/com/adyen/model/payment/ThreeDS2ResultRequest.java +++ b/src/main/java/com/adyen/model/payment/ThreeDS2ResultRequest.java @@ -2,26 +2,36 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ThreeDS2ResultRequest */ + +/** + * ThreeDS2ResultRequest + */ @JsonPropertyOrder({ ThreeDS2ResultRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, ThreeDS2ResultRequest.JSON_PROPERTY_PSP_REFERENCE }) + public class ThreeDS2ResultRequest { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; @@ -29,13 +39,13 @@ public class ThreeDS2ResultRequest { public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference"; private String pspReference; - public ThreeDS2ResultRequest() {} + public ThreeDS2ResultRequest() { + } /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. * @return the current {@code ThreeDS2ResultRequest} instance, allowing for method chaining */ public ThreeDS2ResultRequest merchantAccount(String merchantAccount) { @@ -45,9 +55,7 @@ public ThreeDS2ResultRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * - * @return merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @return merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,8 +66,7 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,7 +87,6 @@ public ThreeDS2ResultRequest pspReference(String pspReference) { /** * The pspReference returned in the /authorise call. - * * @return pspReference The pspReference returned in the /authorise call. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -100,7 +106,9 @@ public void setPspReference(String pspReference) { this.pspReference = pspReference; } - /** Return true if this ThreeDS2ResultRequest object is equal to o. */ + /** + * Return true if this ThreeDS2ResultRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -110,8 +118,8 @@ public boolean equals(Object o) { return false; } ThreeDS2ResultRequest threeDS2ResultRequest = (ThreeDS2ResultRequest) o; - return Objects.equals(this.merchantAccount, threeDS2ResultRequest.merchantAccount) - && Objects.equals(this.pspReference, threeDS2ResultRequest.pspReference); + return Objects.equals(this.merchantAccount, threeDS2ResultRequest.merchantAccount) && + Objects.equals(this.pspReference, threeDS2ResultRequest.pspReference); } @Override @@ -130,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -139,23 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ThreeDS2ResultRequest given an JSON string * * @param jsonString JSON string * @return An instance of ThreeDS2ResultRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ThreeDS2ResultRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDS2ResultRequest */ public static ThreeDS2ResultRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDS2ResultRequest.class); } - - /** - * Convert an instance of ThreeDS2ResultRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ThreeDS2ResultRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ThreeDS2ResultResponse.java b/src/main/java/com/adyen/model/payment/ThreeDS2ResultResponse.java index f454feb6b..bbc17f935 100644 --- a/src/main/java/com/adyen/model/payment/ThreeDS2ResultResponse.java +++ b/src/main/java/com/adyen/model/payment/ThreeDS2ResultResponse.java @@ -2,33 +2,47 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.payment.ThreeDS2Result; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ThreeDS2ResultResponse */ -@JsonPropertyOrder({ThreeDS2ResultResponse.JSON_PROPERTY_THREE_D_S2_RESULT}) + +/** + * ThreeDS2ResultResponse + */ +@JsonPropertyOrder({ + ThreeDS2ResultResponse.JSON_PROPERTY_THREE_D_S2_RESULT +}) + public class ThreeDS2ResultResponse { public static final String JSON_PROPERTY_THREE_D_S2_RESULT = "threeDS2Result"; private ThreeDS2Result threeDS2Result; - public ThreeDS2ResultResponse() {} + public ThreeDS2ResultResponse() { + } /** * threeDS2Result * - * @param threeDS2Result + * @param threeDS2Result * @return the current {@code ThreeDS2ResultResponse} instance, allowing for method chaining */ public ThreeDS2ResultResponse threeDS2Result(ThreeDS2Result threeDS2Result) { @@ -38,8 +52,7 @@ public ThreeDS2ResultResponse threeDS2Result(ThreeDS2Result threeDS2Result) { /** * Get threeDS2Result - * - * @return threeDS2Result + * @return threeDS2Result */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -50,7 +63,7 @@ public ThreeDS2Result getThreeDS2Result() { /** * threeDS2Result * - * @param threeDS2Result + * @param threeDS2Result */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,7 +71,9 @@ public void setThreeDS2Result(ThreeDS2Result threeDS2Result) { this.threeDS2Result = threeDS2Result; } - /** Return true if this ThreeDS2ResultResponse object is equal to o. */ + /** + * Return true if this ThreeDS2ResultResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,7 +101,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,23 +111,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ThreeDS2ResultResponse given an JSON string * * @param jsonString JSON string * @return An instance of ThreeDS2ResultResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ThreeDS2ResultResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDS2ResultResponse */ public static ThreeDS2ResultResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDS2ResultResponse.class); } - - /** - * Convert an instance of ThreeDS2ResultResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ThreeDS2ResultResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ThreeDSRequestorAuthenticationInfo.java b/src/main/java/com/adyen/model/payment/ThreeDSRequestorAuthenticationInfo.java index 615d00037..c09da76e0 100644 --- a/src/main/java/com/adyen/model/payment/ThreeDSRequestorAuthenticationInfo.java +++ b/src/main/java/com/adyen/model/payment/ThreeDSRequestorAuthenticationInfo.java @@ -2,46 +2,46 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ThreeDSRequestorAuthenticationInfo */ +/** + * ThreeDSRequestorAuthenticationInfo + */ @JsonPropertyOrder({ ThreeDSRequestorAuthenticationInfo.JSON_PROPERTY_THREE_D_S_REQ_AUTH_DATA, ThreeDSRequestorAuthenticationInfo.JSON_PROPERTY_THREE_D_S_REQ_AUTH_METHOD, ThreeDSRequestorAuthenticationInfo.JSON_PROPERTY_THREE_D_S_REQ_AUTH_TIMESTAMP }) + public class ThreeDSRequestorAuthenticationInfo { public static final String JSON_PROPERTY_THREE_D_S_REQ_AUTH_DATA = "threeDSReqAuthData"; private String threeDSReqAuthData; /** - * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** - * — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * - * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own - * credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using - * federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using - * issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system - * using third-party authentication. * **06** — Login to the cardholder account at the 3DS - * Requestor system using FIDO Authenticator. + * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system using third-party authentication. * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator. */ public enum ThreeDSReqAuthMethodEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -59,7 +59,7 @@ public enum ThreeDSReqAuthMethodEnum { private String value; ThreeDSReqAuthMethodEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -80,11 +80,7 @@ public static ThreeDSReqAuthMethodEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ThreeDSReqAuthMethodEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ThreeDSReqAuthMethodEnum.values())); + LOG.warning("ThreeDSReqAuthMethodEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ThreeDSReqAuthMethodEnum.values())); return null; } } @@ -95,15 +91,14 @@ public static ThreeDSReqAuthMethodEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_REQ_AUTH_TIMESTAMP = "threeDSReqAuthTimestamp"; private String threeDSReqAuthTimestamp; - public ThreeDSRequestorAuthenticationInfo() {} + public ThreeDSRequestorAuthenticationInfo() { + } /** * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. * - * @param threeDSReqAuthData Data that documents and supports a specific authentication process. - * Maximum length: 2048 bytes. - * @return the current {@code ThreeDSRequestorAuthenticationInfo} instance, allowing for method - * chaining + * @param threeDSReqAuthData Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. + * @return the current {@code ThreeDSRequestorAuthenticationInfo} instance, allowing for method chaining */ public ThreeDSRequestorAuthenticationInfo threeDSReqAuthData(String threeDSReqAuthData) { this.threeDSReqAuthData = threeDSReqAuthData; @@ -112,9 +107,7 @@ public ThreeDSRequestorAuthenticationInfo threeDSReqAuthData(String threeDSReqAu /** * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. - * - * @return threeDSReqAuthData Data that documents and supports a specific authentication process. - * Maximum length: 2048 bytes. + * @return threeDSReqAuthData Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_AUTH_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,8 +118,7 @@ public String getThreeDSReqAuthData() { /** * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. * - * @param threeDSReqAuthData Data that documents and supports a specific authentication process. - * Maximum length: 2048 bytes. + * @param threeDSReqAuthData Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_AUTH_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,52 +127,19 @@ public void setThreeDSReqAuthData(String threeDSReqAuthData) { } /** - * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** - * — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * - * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own - * credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using - * federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using - * issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system - * using third-party authentication. * **06** — Login to the cardholder account at the 3DS - * Requestor system using FIDO Authenticator. + * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system using third-party authentication. * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator. * - * @param threeDSReqAuthMethod Mechanism used by the Cardholder to authenticate to the 3DS - * Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for - * example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at - * the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the - * cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the - * cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login - * to the cardholder account at the 3DS Requestor system using third-party authentication. * - * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO - * Authenticator. - * @return the current {@code ThreeDSRequestorAuthenticationInfo} instance, allowing for method - * chaining + * @param threeDSReqAuthMethod Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system using third-party authentication. * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator. + * @return the current {@code ThreeDSRequestorAuthenticationInfo} instance, allowing for method chaining */ - public ThreeDSRequestorAuthenticationInfo threeDSReqAuthMethod( - ThreeDSReqAuthMethodEnum threeDSReqAuthMethod) { + public ThreeDSRequestorAuthenticationInfo threeDSReqAuthMethod(ThreeDSReqAuthMethodEnum threeDSReqAuthMethod) { this.threeDSReqAuthMethod = threeDSReqAuthMethod; return this; } /** - * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** - * — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * - * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own - * credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using - * federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using - * issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system - * using third-party authentication. * **06** — Login to the cardholder account at the 3DS - * Requestor system using FIDO Authenticator. - * - * @return threeDSReqAuthMethod Mechanism used by the Cardholder to authenticate to the 3DS - * Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for - * example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at - * the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the - * cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the - * cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login - * to the cardholder account at the 3DS Requestor system using third-party authentication. * - * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO - * Authenticator. + * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system using third-party authentication. * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator. + * @return threeDSReqAuthMethod Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system using third-party authentication. * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_AUTH_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,24 +148,9 @@ public ThreeDSReqAuthMethodEnum getThreeDSReqAuthMethod() { } /** - * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** - * — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * - * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own - * credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using - * federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using - * issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system - * using third-party authentication. * **06** — Login to the cardholder account at the 3DS - * Requestor system using FIDO Authenticator. + * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system using third-party authentication. * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator. * - * @param threeDSReqAuthMethod Mechanism used by the Cardholder to authenticate to the 3DS - * Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for - * example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at - * the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the - * cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the - * cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login - * to the cardholder account at the 3DS Requestor system using third-party authentication. * - * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO - * Authenticator. + * @param threeDSReqAuthMethod Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system using third-party authentication. * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_AUTH_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -217,22 +161,17 @@ public void setThreeDSReqAuthMethod(ThreeDSReqAuthMethodEnum threeDSReqAuthMetho /** * Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM * - * @param threeDSReqAuthTimestamp Date and time in UTC of the cardholder authentication. Format: - * YYYYMMDDHHMM - * @return the current {@code ThreeDSRequestorAuthenticationInfo} instance, allowing for method - * chaining + * @param threeDSReqAuthTimestamp Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM + * @return the current {@code ThreeDSRequestorAuthenticationInfo} instance, allowing for method chaining */ - public ThreeDSRequestorAuthenticationInfo threeDSReqAuthTimestamp( - String threeDSReqAuthTimestamp) { + public ThreeDSRequestorAuthenticationInfo threeDSReqAuthTimestamp(String threeDSReqAuthTimestamp) { this.threeDSReqAuthTimestamp = threeDSReqAuthTimestamp; return this; } /** * Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM - * - * @return threeDSReqAuthTimestamp Date and time in UTC of the cardholder authentication. Format: - * YYYYMMDDHHMM + * @return threeDSReqAuthTimestamp Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_AUTH_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -243,8 +182,7 @@ public String getThreeDSReqAuthTimestamp() { /** * Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM * - * @param threeDSReqAuthTimestamp Date and time in UTC of the cardholder authentication. Format: - * YYYYMMDDHHMM + * @param threeDSReqAuthTimestamp Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_AUTH_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,7 +190,9 @@ public void setThreeDSReqAuthTimestamp(String threeDSReqAuthTimestamp) { this.threeDSReqAuthTimestamp = threeDSReqAuthTimestamp; } - /** Return true if this ThreeDSRequestorAuthenticationInfo object is equal to o. */ + /** + * Return true if this ThreeDSRequestorAuthenticationInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -261,15 +201,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo = - (ThreeDSRequestorAuthenticationInfo) o; - return Objects.equals( - this.threeDSReqAuthData, threeDSRequestorAuthenticationInfo.threeDSReqAuthData) - && Objects.equals( - this.threeDSReqAuthMethod, threeDSRequestorAuthenticationInfo.threeDSReqAuthMethod) - && Objects.equals( - this.threeDSReqAuthTimestamp, - threeDSRequestorAuthenticationInfo.threeDSReqAuthTimestamp); + ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo = (ThreeDSRequestorAuthenticationInfo) o; + return Objects.equals(this.threeDSReqAuthData, threeDSRequestorAuthenticationInfo.threeDSReqAuthData) && + Objects.equals(this.threeDSReqAuthMethod, threeDSRequestorAuthenticationInfo.threeDSReqAuthMethod) && + Objects.equals(this.threeDSReqAuthTimestamp, threeDSRequestorAuthenticationInfo.threeDSReqAuthTimestamp); } @Override @@ -282,18 +217,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ThreeDSRequestorAuthenticationInfo {\n"); sb.append(" threeDSReqAuthData: ").append(toIndentedString(threeDSReqAuthData)).append("\n"); - sb.append(" threeDSReqAuthMethod: ") - .append(toIndentedString(threeDSReqAuthMethod)) - .append("\n"); - sb.append(" threeDSReqAuthTimestamp: ") - .append(toIndentedString(threeDSReqAuthTimestamp)) - .append("\n"); + sb.append(" threeDSReqAuthMethod: ").append(toIndentedString(threeDSReqAuthMethod)).append("\n"); + sb.append(" threeDSReqAuthTimestamp: ").append(toIndentedString(threeDSReqAuthTimestamp)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -302,24 +234,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ThreeDSRequestorAuthenticationInfo given an JSON string * * @param jsonString JSON string * @return An instance of ThreeDSRequestorAuthenticationInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ThreeDSRequestorAuthenticationInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDSRequestorAuthenticationInfo */ - public static ThreeDSRequestorAuthenticationInfo fromJson(String jsonString) - throws JsonProcessingException { + public static ThreeDSRequestorAuthenticationInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDSRequestorAuthenticationInfo.class); } - - /** - * Convert an instance of ThreeDSRequestorAuthenticationInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ThreeDSRequestorAuthenticationInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ThreeDSRequestorPriorAuthenticationInfo.java b/src/main/java/com/adyen/model/payment/ThreeDSRequestorPriorAuthenticationInfo.java index 33fea8601..3c8e50983 100644 --- a/src/main/java/com/adyen/model/payment/ThreeDSRequestorPriorAuthenticationInfo.java +++ b/src/main/java/com/adyen/model/payment/ThreeDSRequestorPriorAuthenticationInfo.java @@ -2,43 +2,47 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ThreeDSRequestorPriorAuthenticationInfo */ +/** + * ThreeDSRequestorPriorAuthenticationInfo + */ @JsonPropertyOrder({ ThreeDSRequestorPriorAuthenticationInfo.JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_DATA, ThreeDSRequestorPriorAuthenticationInfo.JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_METHOD, ThreeDSRequestorPriorAuthenticationInfo.JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_TIMESTAMP, ThreeDSRequestorPriorAuthenticationInfo.JSON_PROPERTY_THREE_D_S_REQ_PRIOR_REF }) + public class ThreeDSRequestorPriorAuthenticationInfo { - public static final String JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_DATA = - "threeDSReqPriorAuthData"; + public static final String JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_DATA = "threeDSReqPriorAuthData"; private String threeDSReqPriorAuthData; /** - * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed - * values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge - * occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. + * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. */ public enum ThreeDSReqPriorAuthMethodEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -47,13 +51,12 @@ public enum ThreeDSReqPriorAuthMethodEnum { _04(String.valueOf("04")); - private static final Logger LOG = - Logger.getLogger(ThreeDSReqPriorAuthMethodEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(ThreeDSReqPriorAuthMethodEnum.class.getName()); private String value; ThreeDSReqPriorAuthMethodEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -74,47 +77,37 @@ public static ThreeDSReqPriorAuthMethodEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ThreeDSReqPriorAuthMethodEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ThreeDSReqPriorAuthMethodEnum.values())); + LOG.warning("ThreeDSReqPriorAuthMethodEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ThreeDSReqPriorAuthMethodEnum.values())); return null; } } - public static final String JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_METHOD = - "threeDSReqPriorAuthMethod"; + public static final String JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_METHOD = "threeDSReqPriorAuthMethod"; private ThreeDSReqPriorAuthMethodEnum threeDSReqPriorAuthMethod; - public static final String JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_TIMESTAMP = - "threeDSReqPriorAuthTimestamp"; + public static final String JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_TIMESTAMP = "threeDSReqPriorAuthTimestamp"; private String threeDSReqPriorAuthTimestamp; public static final String JSON_PROPERTY_THREE_D_S_REQ_PRIOR_REF = "threeDSReqPriorRef"; private String threeDSReqPriorRef; - public ThreeDSRequestorPriorAuthenticationInfo() {} + public ThreeDSRequestorPriorAuthenticationInfo() { + } /** * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. * - * @param threeDSReqPriorAuthData Data that documents and supports a specific authentication - * process. Maximum length: 2048 bytes. - * @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for - * method chaining + * @param threeDSReqPriorAuthData Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. + * @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for method chaining */ - public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorAuthData( - String threeDSReqPriorAuthData) { + public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorAuthData(String threeDSReqPriorAuthData) { this.threeDSReqPriorAuthData = threeDSReqPriorAuthData; return this; } /** * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. - * - * @return threeDSReqPriorAuthData Data that documents and supports a specific authentication - * process. Maximum length: 2048 bytes. + * @return threeDSReqPriorAuthData Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,8 +118,7 @@ public String getThreeDSReqPriorAuthData() { /** * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. * - * @param threeDSReqPriorAuthData Data that documents and supports a specific authentication - * process. Maximum length: 2048 bytes. + * @param threeDSReqPriorAuthData Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,32 +127,19 @@ public void setThreeDSReqPriorAuthData(String threeDSReqPriorAuthData) { } /** - * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed - * values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge - * occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. + * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. * - * @param threeDSReqPriorAuthMethod Mechanism used by the Cardholder to previously authenticate to - * the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. - * * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other - * issuer methods. - * @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for - * method chaining + * @param threeDSReqPriorAuthMethod Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. + * @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for method chaining */ - public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorAuthMethod( - ThreeDSReqPriorAuthMethodEnum threeDSReqPriorAuthMethod) { + public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorAuthMethod(ThreeDSReqPriorAuthMethodEnum threeDSReqPriorAuthMethod) { this.threeDSReqPriorAuthMethod = threeDSReqPriorAuthMethod; return this; } /** - * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed - * values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge - * occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. - * - * @return threeDSReqPriorAuthMethod Mechanism used by the Cardholder to previously authenticate - * to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by - * ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — - * Other issuer methods. + * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. + * @return threeDSReqPriorAuthMethod Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,41 +148,30 @@ public ThreeDSReqPriorAuthMethodEnum getThreeDSReqPriorAuthMethod() { } /** - * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed - * values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge - * occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. + * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. * - * @param threeDSReqPriorAuthMethod Mechanism used by the Cardholder to previously authenticate to - * the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. - * * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other - * issuer methods. + * @param threeDSReqPriorAuthMethod Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setThreeDSReqPriorAuthMethod( - ThreeDSReqPriorAuthMethodEnum threeDSReqPriorAuthMethod) { + public void setThreeDSReqPriorAuthMethod(ThreeDSReqPriorAuthMethodEnum threeDSReqPriorAuthMethod) { this.threeDSReqPriorAuthMethod = threeDSReqPriorAuthMethod; } /** * Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM * - * @param threeDSReqPriorAuthTimestamp Date and time in UTC of the prior cardholder - * authentication. Format: YYYYMMDDHHMM - * @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for - * method chaining + * @param threeDSReqPriorAuthTimestamp Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM + * @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for method chaining */ - public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorAuthTimestamp( - String threeDSReqPriorAuthTimestamp) { + public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorAuthTimestamp(String threeDSReqPriorAuthTimestamp) { this.threeDSReqPriorAuthTimestamp = threeDSReqPriorAuthTimestamp; return this; } /** * Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM - * - * @return threeDSReqPriorAuthTimestamp Date and time in UTC of the prior cardholder - * authentication. Format: YYYYMMDDHHMM + * @return threeDSReqPriorAuthTimestamp Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,8 +182,7 @@ public String getThreeDSReqPriorAuthTimestamp() { /** * Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM * - * @param threeDSReqPriorAuthTimestamp Date and time in UTC of the prior cardholder - * authentication. Format: YYYYMMDDHHMM + * @param threeDSReqPriorAuthTimestamp Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,17 +191,10 @@ public void setThreeDSReqPriorAuthTimestamp(String threeDSReqPriorAuthTimestamp) } /** - * This data element provides additional information to the ACS to determine the best approach for - * handing a request. This data element contains an ACS Transaction ID for a prior authenticated - * transaction. For example, the first recurring transaction that was authenticated with the - * cardholder. Length: 30 characters. + * This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters. * - * @param threeDSReqPriorRef This data element provides additional information to the ACS to - * determine the best approach for handing a request. This data element contains an ACS - * Transaction ID for a prior authenticated transaction. For example, the first recurring - * transaction that was authenticated with the cardholder. Length: 30 characters. - * @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for - * method chaining + * @param threeDSReqPriorRef This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters. + * @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for method chaining */ public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorRef(String threeDSReqPriorRef) { this.threeDSReqPriorRef = threeDSReqPriorRef; @@ -242,15 +202,8 @@ public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorRef(String threeDS } /** - * This data element provides additional information to the ACS to determine the best approach for - * handing a request. This data element contains an ACS Transaction ID for a prior authenticated - * transaction. For example, the first recurring transaction that was authenticated with the - * cardholder. Length: 30 characters. - * - * @return threeDSReqPriorRef This data element provides additional information to the ACS to - * determine the best approach for handing a request. This data element contains an ACS - * Transaction ID for a prior authenticated transaction. For example, the first recurring - * transaction that was authenticated with the cardholder. Length: 30 characters. + * This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters. + * @return threeDSReqPriorRef This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -259,15 +212,9 @@ public String getThreeDSReqPriorRef() { } /** - * This data element provides additional information to the ACS to determine the best approach for - * handing a request. This data element contains an ACS Transaction ID for a prior authenticated - * transaction. For example, the first recurring transaction that was authenticated with the - * cardholder. Length: 30 characters. + * This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters. * - * @param threeDSReqPriorRef This data element provides additional information to the ACS to - * determine the best approach for handing a request. This data element contains an ACS - * Transaction ID for a prior authenticated transaction. For example, the first recurring - * transaction that was authenticated with the cardholder. Length: 30 characters. + * @param threeDSReqPriorRef This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -275,7 +222,9 @@ public void setThreeDSReqPriorRef(String threeDSReqPriorRef) { this.threeDSReqPriorRef = threeDSReqPriorRef; } - /** Return true if this ThreeDSRequestorPriorAuthenticationInfo object is equal to o. */ + /** + * Return true if this ThreeDSRequestorPriorAuthenticationInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -284,50 +233,33 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo = - (ThreeDSRequestorPriorAuthenticationInfo) o; - return Objects.equals( - this.threeDSReqPriorAuthData, - threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorAuthData) - && Objects.equals( - this.threeDSReqPriorAuthMethod, - threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorAuthMethod) - && Objects.equals( - this.threeDSReqPriorAuthTimestamp, - threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorAuthTimestamp) - && Objects.equals( - this.threeDSReqPriorRef, threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorRef); + ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo = (ThreeDSRequestorPriorAuthenticationInfo) o; + return Objects.equals(this.threeDSReqPriorAuthData, threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorAuthData) && + Objects.equals(this.threeDSReqPriorAuthMethod, threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorAuthMethod) && + Objects.equals(this.threeDSReqPriorAuthTimestamp, threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorAuthTimestamp) && + Objects.equals(this.threeDSReqPriorRef, threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorRef); } @Override public int hashCode() { - return Objects.hash( - threeDSReqPriorAuthData, - threeDSReqPriorAuthMethod, - threeDSReqPriorAuthTimestamp, - threeDSReqPriorRef); + return Objects.hash(threeDSReqPriorAuthData, threeDSReqPriorAuthMethod, threeDSReqPriorAuthTimestamp, threeDSReqPriorRef); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ThreeDSRequestorPriorAuthenticationInfo {\n"); - sb.append(" threeDSReqPriorAuthData: ") - .append(toIndentedString(threeDSReqPriorAuthData)) - .append("\n"); - sb.append(" threeDSReqPriorAuthMethod: ") - .append(toIndentedString(threeDSReqPriorAuthMethod)) - .append("\n"); - sb.append(" threeDSReqPriorAuthTimestamp: ") - .append(toIndentedString(threeDSReqPriorAuthTimestamp)) - .append("\n"); + sb.append(" threeDSReqPriorAuthData: ").append(toIndentedString(threeDSReqPriorAuthData)).append("\n"); + sb.append(" threeDSReqPriorAuthMethod: ").append(toIndentedString(threeDSReqPriorAuthMethod)).append("\n"); + sb.append(" threeDSReqPriorAuthTimestamp: ").append(toIndentedString(threeDSReqPriorAuthTimestamp)).append("\n"); sb.append(" threeDSReqPriorRef: ").append(toIndentedString(threeDSReqPriorRef)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -336,24 +268,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ThreeDSRequestorPriorAuthenticationInfo given an JSON string * * @param jsonString JSON string * @return An instance of ThreeDSRequestorPriorAuthenticationInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ThreeDSRequestorPriorAuthenticationInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDSRequestorPriorAuthenticationInfo */ - public static ThreeDSRequestorPriorAuthenticationInfo fromJson(String jsonString) - throws JsonProcessingException { + public static ThreeDSRequestorPriorAuthenticationInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDSRequestorPriorAuthenticationInfo.class); } - - /** - * Convert an instance of ThreeDSRequestorPriorAuthenticationInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ThreeDSRequestorPriorAuthenticationInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ThreeDSecureData.java b/src/main/java/com/adyen/model/payment/ThreeDSecureData.java index 62e4c1070..ca985ad46 100644 --- a/src/main/java/com/adyen/model/payment/ThreeDSecureData.java +++ b/src/main/java/com/adyen/model/payment/ThreeDSecureData.java @@ -2,26 +2,31 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ThreeDSecureData */ +/** + * ThreeDSecureData + */ @JsonPropertyOrder({ ThreeDSecureData.JSON_PROPERTY_AUTHENTICATION_RESPONSE, ThreeDSecureData.JSON_PROPERTY_CAVV, @@ -36,12 +41,13 @@ ThreeDSecureData.JSON_PROPERTY_TRANS_STATUS_REASON, ThreeDSecureData.JSON_PROPERTY_XID }) + public class ThreeDSecureData { /** - * In 3D Secure 2, this is the `transStatus` from the challenge result. If the - * transaction was frictionless, omit this parameter. + * In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. */ public enum AuthenticationResponseEnum { + Y(String.valueOf("Y")), N(String.valueOf("N")), @@ -55,7 +61,7 @@ public enum AuthenticationResponseEnum { private String value; AuthenticationResponseEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -76,11 +82,7 @@ public static AuthenticationResponseEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AuthenticationResponseEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AuthenticationResponseEnum.values())); + LOG.warning("AuthenticationResponseEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AuthenticationResponseEnum.values())); return null; } } @@ -95,11 +97,10 @@ public static AuthenticationResponseEnum fromValue(String value) { private String cavvAlgorithm; /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the - * authentication has been cancelled. For possible values, refer to [3D Secure API - * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). */ public enum ChallengeCancelEnum { + _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -119,7 +120,7 @@ public enum ChallengeCancelEnum { private String value; ChallengeCancelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -140,11 +141,7 @@ public static ChallengeCancelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ChallengeCancelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ChallengeCancelEnum.values())); + LOG.warning("ChallengeCancelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChallengeCancelEnum.values())); return null; } } @@ -152,8 +149,11 @@ public static ChallengeCancelEnum fromValue(String value) { public static final String JSON_PROPERTY_CHALLENGE_CANCEL = "challengeCancel"; private ChallengeCancelEnum challengeCancel; - /** In 3D Secure 2, this is the `transStatus` from the `ARes`. */ + /** + * In 3D Secure 2, this is the `transStatus` from the `ARes`. + */ public enum DirectoryResponseEnum { + A(String.valueOf("A")), C(String.valueOf("C")), @@ -175,7 +175,7 @@ public enum DirectoryResponseEnum { private String value; DirectoryResponseEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -196,11 +196,7 @@ public static DirectoryResponseEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "DirectoryResponseEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(DirectoryResponseEnum.values())); + LOG.warning("DirectoryResponseEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(DirectoryResponseEnum.values())); return null; } } @@ -220,8 +216,7 @@ public static DirectoryResponseEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_VERSION = "threeDSVersion"; private String threeDSVersion; - public static final String JSON_PROPERTY_TOKEN_AUTHENTICATION_VERIFICATION_VALUE = - "tokenAuthenticationVerificationValue"; + public static final String JSON_PROPERTY_TOKEN_AUTHENTICATION_VERIFICATION_VALUE = "tokenAuthenticationVerificationValue"; private byte[] tokenAuthenticationVerificationValue; public static final String JSON_PROPERTY_TRANS_STATUS_REASON = "transStatusReason"; @@ -230,28 +225,23 @@ public static DirectoryResponseEnum fromValue(String value) { public static final String JSON_PROPERTY_XID = "xid"; private byte[] xid; - public ThreeDSecureData() {} + public ThreeDSecureData() { + } /** - * In 3D Secure 2, this is the `transStatus` from the challenge result. If the - * transaction was frictionless, omit this parameter. + * In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. * - * @param authenticationResponse In 3D Secure 2, this is the `transStatus` from the - * challenge result. If the transaction was frictionless, omit this parameter. + * @param authenticationResponse In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. * @return the current {@code ThreeDSecureData} instance, allowing for method chaining */ - public ThreeDSecureData authenticationResponse( - AuthenticationResponseEnum authenticationResponse) { + public ThreeDSecureData authenticationResponse(AuthenticationResponseEnum authenticationResponse) { this.authenticationResponse = authenticationResponse; return this; } /** - * In 3D Secure 2, this is the `transStatus` from the challenge result. If the - * transaction was frictionless, omit this parameter. - * - * @return authenticationResponse In 3D Secure 2, this is the `transStatus` from the - * challenge result. If the transaction was frictionless, omit this parameter. + * In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. + * @return authenticationResponse In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -260,11 +250,9 @@ public AuthenticationResponseEnum getAuthenticationResponse() { } /** - * In 3D Secure 2, this is the `transStatus` from the challenge result. If the - * transaction was frictionless, omit this parameter. + * In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. * - * @param authenticationResponse In 3D Secure 2, this is the `transStatus` from the - * challenge result. If the transaction was frictionless, omit this parameter. + * @param authenticationResponse In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -285,7 +273,6 @@ public ThreeDSecureData cavv(byte[] cavv) { /** * The cardholder authentication value (base64 encoded, 20 bytes in a decoded form). - * * @return cavv The cardholder authentication value (base64 encoded, 20 bytes in a decoded form). */ @JsonProperty(JSON_PROPERTY_CAVV) @@ -318,7 +305,6 @@ public ThreeDSecureData cavvAlgorithm(String cavvAlgorithm) { /** * The CAVV algorithm used. Include this only for 3D Secure 1. - * * @return cavvAlgorithm The CAVV algorithm used. Include this only for 3D Secure 1. */ @JsonProperty(JSON_PROPERTY_CAVV_ALGORITHM) @@ -339,14 +325,9 @@ public void setCavvAlgorithm(String cavvAlgorithm) { } /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the - * authentication has been cancelled. For possible values, refer to [3D Secure API - * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). * - * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory - * Server (DS) that the authentication has been cancelled. For possible values, refer to [3D - * Secure API - * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). * @return the current {@code ThreeDSecureData} instance, allowing for method chaining */ public ThreeDSecureData challengeCancel(ChallengeCancelEnum challengeCancel) { @@ -355,14 +336,8 @@ public ThreeDSecureData challengeCancel(ChallengeCancelEnum challengeCancel) { } /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the - * authentication has been cancelled. For possible values, refer to [3D Secure API - * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). - * - * @return challengeCancel Indicator informing the Access Control Server (ACS) and the Directory - * Server (DS) that the authentication has been cancelled. For possible values, refer to [3D - * Secure API - * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * @return challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). */ @JsonProperty(JSON_PROPERTY_CHALLENGE_CANCEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -371,14 +346,9 @@ public ChallengeCancelEnum getChallengeCancel() { } /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the - * authentication has been cancelled. For possible values, refer to [3D Secure API - * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). * - * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory - * Server (DS) that the authentication has been cancelled. For possible values, refer to [3D - * Secure API - * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). */ @JsonProperty(JSON_PROPERTY_CHALLENGE_CANCEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -387,10 +357,9 @@ public void setChallengeCancel(ChallengeCancelEnum challengeCancel) { } /** - * In 3D Secure 2, this is the `transStatus` from the `ARes`. + * In 3D Secure 2, this is the `transStatus` from the `ARes`. * - * @param directoryResponse In 3D Secure 2, this is the `transStatus` from the - * `ARes`. + * @param directoryResponse In 3D Secure 2, this is the `transStatus` from the `ARes`. * @return the current {@code ThreeDSecureData} instance, allowing for method chaining */ public ThreeDSecureData directoryResponse(DirectoryResponseEnum directoryResponse) { @@ -399,10 +368,8 @@ public ThreeDSecureData directoryResponse(DirectoryResponseEnum directoryRespons } /** - * In 3D Secure 2, this is the `transStatus` from the `ARes`. - * - * @return directoryResponse In 3D Secure 2, this is the `transStatus` from the - * `ARes`. + * In 3D Secure 2, this is the `transStatus` from the `ARes`. + * @return directoryResponse In 3D Secure 2, this is the `transStatus` from the `ARes`. */ @JsonProperty(JSON_PROPERTY_DIRECTORY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -411,10 +378,9 @@ public DirectoryResponseEnum getDirectoryResponse() { } /** - * In 3D Secure 2, this is the `transStatus` from the `ARes`. + * In 3D Secure 2, this is the `transStatus` from the `ARes`. * - * @param directoryResponse In 3D Secure 2, this is the `transStatus` from the - * `ARes`. + * @param directoryResponse In 3D Secure 2, this is the `transStatus` from the `ARes`. */ @JsonProperty(JSON_PROPERTY_DIRECTORY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -423,11 +389,9 @@ public void setDirectoryResponse(DirectoryResponseEnum directoryResponse) { } /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server - * (DS) to identify a single transaction. + * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. * - * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the - * Directory Server (DS) to identify a single transaction. + * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. * @return the current {@code ThreeDSecureData} instance, allowing for method chaining */ public ThreeDSecureData dsTransID(String dsTransID) { @@ -436,11 +400,8 @@ public ThreeDSecureData dsTransID(String dsTransID) { } /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server - * (DS) to identify a single transaction. - * - * @return dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the - * Directory Server (DS) to identify a single transaction. + * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. + * @return dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. */ @JsonProperty(JSON_PROPERTY_DS_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -449,11 +410,9 @@ public String getDsTransID() { } /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server - * (DS) to identify a single transaction. + * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. * - * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the - * Directory Server (DS) to identify a single transaction. + * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. */ @JsonProperty(JSON_PROPERTY_DS_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -474,7 +433,6 @@ public ThreeDSecureData eci(String eci) { /** * The electronic commerce indicator. - * * @return eci The electronic commerce indicator. */ @JsonProperty(JSON_PROPERTY_ECI) @@ -497,8 +455,7 @@ public void setEci(String eci) { /** * Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations. * - * @param riskScore Risk score calculated by Directory Server (DS). Required for Cartes Bancaires - * integrations. + * @param riskScore Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations. * @return the current {@code ThreeDSecureData} instance, allowing for method chaining */ public ThreeDSecureData riskScore(String riskScore) { @@ -508,9 +465,7 @@ public ThreeDSecureData riskScore(String riskScore) { /** * Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations. - * - * @return riskScore Risk score calculated by Directory Server (DS). Required for Cartes Bancaires - * integrations. + * @return riskScore Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations. */ @JsonProperty(JSON_PROPERTY_RISK_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -521,8 +476,7 @@ public String getRiskScore() { /** * Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations. * - * @param riskScore Risk score calculated by Directory Server (DS). Required for Cartes Bancaires - * integrations. + * @param riskScore Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations. */ @JsonProperty(JSON_PROPERTY_RISK_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -543,7 +497,6 @@ public ThreeDSecureData threeDSVersion(String threeDSVersion) { /** * The version of the 3D Secure protocol. - * * @return threeDSVersion The version of the 3D Secure protocol. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_VERSION) @@ -566,21 +519,17 @@ public void setThreeDSVersion(String threeDSVersion) { /** * Network token authentication verification value (TAVV). The network token cryptogram. * - * @param tokenAuthenticationVerificationValue Network token authentication verification value - * (TAVV). The network token cryptogram. + * @param tokenAuthenticationVerificationValue Network token authentication verification value (TAVV). The network token cryptogram. * @return the current {@code ThreeDSecureData} instance, allowing for method chaining */ - public ThreeDSecureData tokenAuthenticationVerificationValue( - byte[] tokenAuthenticationVerificationValue) { + public ThreeDSecureData tokenAuthenticationVerificationValue(byte[] tokenAuthenticationVerificationValue) { this.tokenAuthenticationVerificationValue = tokenAuthenticationVerificationValue; return this; } /** * Network token authentication verification value (TAVV). The network token cryptogram. - * - * @return tokenAuthenticationVerificationValue Network token authentication verification value - * (TAVV). The network token cryptogram. + * @return tokenAuthenticationVerificationValue Network token authentication verification value (TAVV). The network token cryptogram. */ @JsonProperty(JSON_PROPERTY_TOKEN_AUTHENTICATION_VERIFICATION_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -591,8 +540,7 @@ public byte[] getTokenAuthenticationVerificationValue() { /** * Network token authentication verification value (TAVV). The network token cryptogram. * - * @param tokenAuthenticationVerificationValue Network token authentication verification value - * (TAVV). The network token cryptogram. + * @param tokenAuthenticationVerificationValue Network token authentication verification value (TAVV). The network token cryptogram. */ @JsonProperty(JSON_PROPERTY_TOKEN_AUTHENTICATION_VERIFICATION_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -601,13 +549,9 @@ public void setTokenAuthenticationVerificationValue(byte[] tokenAuthenticationVe } /** - * Provides information on why the `transStatus` field has the specified value. For - * possible values, refer to [our - * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). * - * @param transStatusReason Provides information on why the `transStatus` field has the - * specified value. For possible values, refer to [our - * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * @param transStatusReason Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). * @return the current {@code ThreeDSecureData} instance, allowing for method chaining */ public ThreeDSecureData transStatusReason(String transStatusReason) { @@ -616,13 +560,8 @@ public ThreeDSecureData transStatusReason(String transStatusReason) { } /** - * Provides information on why the `transStatus` field has the specified value. For - * possible values, refer to [our - * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). - * - * @return transStatusReason Provides information on why the `transStatus` field has the - * specified value. For possible values, refer to [our - * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * @return transStatusReason Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -631,13 +570,9 @@ public String getTransStatusReason() { } /** - * Provides information on why the `transStatus` field has the specified value. For - * possible values, refer to [our - * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). * - * @param transStatusReason Provides information on why the `transStatus` field has the - * specified value. For possible values, refer to [our - * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * @param transStatusReason Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -646,11 +581,9 @@ public void setTransStatusReason(String transStatusReason) { } /** - * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded - * form). + * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). * - * @param xid Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a - * decoded form). + * @param xid Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). * @return the current {@code ThreeDSecureData} instance, allowing for method chaining */ public ThreeDSecureData xid(byte[] xid) { @@ -659,11 +592,8 @@ public ThreeDSecureData xid(byte[] xid) { } /** - * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded - * form). - * - * @return xid Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in - * a decoded form). + * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). + * @return xid Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). */ @JsonProperty(JSON_PROPERTY_XID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -672,11 +602,9 @@ public byte[] getXid() { } /** - * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded - * form). + * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). * - * @param xid Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a - * decoded form). + * @param xid Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). */ @JsonProperty(JSON_PROPERTY_XID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -684,7 +612,9 @@ public void setXid(byte[] xid) { this.xid = xid; } - /** Return true if this ThreeDSecureData object is equal to o. */ + /** + * Return true if this ThreeDSecureData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -694,46 +624,30 @@ public boolean equals(Object o) { return false; } ThreeDSecureData threeDSecureData = (ThreeDSecureData) o; - return Objects.equals(this.authenticationResponse, threeDSecureData.authenticationResponse) - && Arrays.equals(this.cavv, threeDSecureData.cavv) - && Objects.equals(this.cavvAlgorithm, threeDSecureData.cavvAlgorithm) - && Objects.equals(this.challengeCancel, threeDSecureData.challengeCancel) - && Objects.equals(this.directoryResponse, threeDSecureData.directoryResponse) - && Objects.equals(this.dsTransID, threeDSecureData.dsTransID) - && Objects.equals(this.eci, threeDSecureData.eci) - && Objects.equals(this.riskScore, threeDSecureData.riskScore) - && Objects.equals(this.threeDSVersion, threeDSecureData.threeDSVersion) - && Arrays.equals( - this.tokenAuthenticationVerificationValue, - threeDSecureData.tokenAuthenticationVerificationValue) - && Objects.equals(this.transStatusReason, threeDSecureData.transStatusReason) - && Arrays.equals(this.xid, threeDSecureData.xid); + return Objects.equals(this.authenticationResponse, threeDSecureData.authenticationResponse) && + Arrays.equals(this.cavv, threeDSecureData.cavv) && + Objects.equals(this.cavvAlgorithm, threeDSecureData.cavvAlgorithm) && + Objects.equals(this.challengeCancel, threeDSecureData.challengeCancel) && + Objects.equals(this.directoryResponse, threeDSecureData.directoryResponse) && + Objects.equals(this.dsTransID, threeDSecureData.dsTransID) && + Objects.equals(this.eci, threeDSecureData.eci) && + Objects.equals(this.riskScore, threeDSecureData.riskScore) && + Objects.equals(this.threeDSVersion, threeDSecureData.threeDSVersion) && + Arrays.equals(this.tokenAuthenticationVerificationValue, threeDSecureData.tokenAuthenticationVerificationValue) && + Objects.equals(this.transStatusReason, threeDSecureData.transStatusReason) && + Arrays.equals(this.xid, threeDSecureData.xid); } @Override public int hashCode() { - return Objects.hash( - authenticationResponse, - Arrays.hashCode(cavv), - cavvAlgorithm, - challengeCancel, - directoryResponse, - dsTransID, - eci, - riskScore, - threeDSVersion, - Arrays.hashCode(tokenAuthenticationVerificationValue), - transStatusReason, - Arrays.hashCode(xid)); + return Objects.hash(authenticationResponse, Arrays.hashCode(cavv), cavvAlgorithm, challengeCancel, directoryResponse, dsTransID, eci, riskScore, threeDSVersion, Arrays.hashCode(tokenAuthenticationVerificationValue), transStatusReason, Arrays.hashCode(xid)); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ThreeDSecureData {\n"); - sb.append(" authenticationResponse: ") - .append(toIndentedString(authenticationResponse)) - .append("\n"); + sb.append(" authenticationResponse: ").append(toIndentedString(authenticationResponse)).append("\n"); sb.append(" cavv: ").append(toIndentedString(cavv)).append("\n"); sb.append(" cavvAlgorithm: ").append(toIndentedString(cavvAlgorithm)).append("\n"); sb.append(" challengeCancel: ").append(toIndentedString(challengeCancel)).append("\n"); @@ -742,9 +656,7 @@ public String toString() { sb.append(" eci: ").append(toIndentedString(eci)).append("\n"); sb.append(" riskScore: ").append(toIndentedString(riskScore)).append("\n"); sb.append(" threeDSVersion: ").append(toIndentedString(threeDSVersion)).append("\n"); - sb.append(" tokenAuthenticationVerificationValue: ") - .append(toIndentedString(tokenAuthenticationVerificationValue)) - .append("\n"); + sb.append(" tokenAuthenticationVerificationValue: ").append(toIndentedString(tokenAuthenticationVerificationValue)).append("\n"); sb.append(" transStatusReason: ").append(toIndentedString(transStatusReason)).append("\n"); sb.append(" xid: ").append(toIndentedString(xid)).append("\n"); sb.append("}"); @@ -752,7 +664,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -761,7 +674,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ThreeDSecureData given an JSON string * * @param jsonString JSON string @@ -771,12 +684,11 @@ private String toIndentedString(Object o) { public static ThreeDSecureData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDSecureData.class); } - - /** - * Convert an instance of ThreeDSecureData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ThreeDSecureData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/VoidPendingRefundRequest.java b/src/main/java/com/adyen/model/payment/VoidPendingRefundRequest.java index d1a4950fe..d858ae9aa 100644 --- a/src/main/java/com/adyen/model/payment/VoidPendingRefundRequest.java +++ b/src/main/java/com/adyen/model/payment/VoidPendingRefundRequest.java @@ -2,26 +2,39 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payment; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.payment.Amount; +import com.adyen.model.payment.PlatformChargebackLogic; +import com.adyen.model.payment.Split; +import com.adyen.model.payment.ThreeDSecureData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** VoidPendingRefundRequest */ + +/** + * VoidPendingRefundRequest + */ @JsonPropertyOrder({ VoidPendingRefundRequest.JSON_PROPERTY_ADDITIONAL_DATA, VoidPendingRefundRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, @@ -35,6 +48,7 @@ VoidPendingRefundRequest.JSON_PROPERTY_TENDER_REFERENCE, VoidPendingRefundRequest.JSON_PROPERTY_UNIQUE_TERMINAL_ID }) + public class VoidPendingRefundRequest { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -48,8 +62,7 @@ public class VoidPendingRefundRequest { public static final String JSON_PROPERTY_MPI_DATA = "mpiData"; private ThreeDSecureData mpiData; - public static final String JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE = - "originalMerchantReference"; + public static final String JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE = "originalMerchantReference"; private String originalMerchantReference; public static final String JSON_PROPERTY_ORIGINAL_REFERENCE = "originalReference"; @@ -70,16 +83,13 @@ public class VoidPendingRefundRequest { public static final String JSON_PROPERTY_UNIQUE_TERMINAL_ID = "uniqueTerminalId"; private String uniqueTerminalId; - public VoidPendingRefundRequest() {} + public VoidPendingRefundRequest() { + } /** - * This field contains additional data, which may be required for a particular modification - * request. The additionalData object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular modification request. The additionalData object consists of entries, each of - * which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. * @return the current {@code VoidPendingRefundRequest} instance, allowing for method chaining */ public VoidPendingRefundRequest additionalData(Map additionalData) { @@ -96,13 +106,8 @@ public VoidPendingRefundRequest putAdditionalDataItem(String key, String additio } /** - * This field contains additional data, which may be required for a particular modification - * request. The additionalData object consists of entries, each of which includes the key and - * value. - * - * @return additionalData This field contains additional data, which may be required for a - * particular modification request. The additionalData object consists of entries, each of - * which includes the key and value. + * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * @return additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,13 +116,9 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular modification - * request. The additionalData object consists of entries, each of which includes the key and - * value. + * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be required for a - * particular modification request. The additionalData object consists of entries, each of - * which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,7 +139,6 @@ public VoidPendingRefundRequest merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. - * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -161,7 +161,7 @@ public void setMerchantAccount(String merchantAccount) { /** * modificationAmount * - * @param modificationAmount + * @param modificationAmount * @return the current {@code VoidPendingRefundRequest} instance, allowing for method chaining */ public VoidPendingRefundRequest modificationAmount(Amount modificationAmount) { @@ -171,8 +171,7 @@ public VoidPendingRefundRequest modificationAmount(Amount modificationAmount) { /** * Get modificationAmount - * - * @return modificationAmount + * @return modificationAmount */ @JsonProperty(JSON_PROPERTY_MODIFICATION_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,7 +182,7 @@ public Amount getModificationAmount() { /** * modificationAmount * - * @param modificationAmount + * @param modificationAmount */ @JsonProperty(JSON_PROPERTY_MODIFICATION_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,7 +193,7 @@ public void setModificationAmount(Amount modificationAmount) { /** * mpiData * - * @param mpiData + * @param mpiData * @return the current {@code VoidPendingRefundRequest} instance, allowing for method chaining */ public VoidPendingRefundRequest mpiData(ThreeDSecureData mpiData) { @@ -204,8 +203,7 @@ public VoidPendingRefundRequest mpiData(ThreeDSecureData mpiData) { /** * Get mpiData - * - * @return mpiData + * @return mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -216,7 +214,7 @@ public ThreeDSecureData getMpiData() { /** * mpiData * - * @param mpiData + * @param mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,7 +235,6 @@ public VoidPendingRefundRequest originalMerchantReference(String originalMerchan /** * The original merchant reference to cancel. - * * @return originalMerchantReference The original merchant reference to cancel. */ @JsonProperty(JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE) @@ -258,11 +255,9 @@ public void setOriginalMerchantReference(String originalMerchantReference) { } /** - * The original pspReference of the payment to modify. This reference is returned in: * - * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification * - * @param originalReference The original pspReference of the payment to modify. This reference is - * returned in: * authorisation response * authorisation notification + * @param originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification * @return the current {@code VoidPendingRefundRequest} instance, allowing for method chaining */ public VoidPendingRefundRequest originalReference(String originalReference) { @@ -271,11 +266,8 @@ public VoidPendingRefundRequest originalReference(String originalReference) { } /** - * The original pspReference of the payment to modify. This reference is returned in: * - * authorisation response * authorisation notification - * - * @return originalReference The original pspReference of the payment to modify. This reference is - * returned in: * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * @return originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,11 +276,9 @@ public String getOriginalReference() { } /** - * The original pspReference of the payment to modify. This reference is returned in: * - * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification * - * @param originalReference The original pspReference of the payment to modify. This reference is - * returned in: * authorisation response * authorisation notification + * @param originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -299,19 +289,17 @@ public void setOriginalReference(String originalReference) { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic * @return the current {@code VoidPendingRefundRequest} instance, allowing for method chaining */ - public VoidPendingRefundRequest platformChargebackLogic( - PlatformChargebackLogic platformChargebackLogic) { + public VoidPendingRefundRequest platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) { this.platformChargebackLogic = platformChargebackLogic; return this; } /** * Get platformChargebackLogic - * - * @return platformChargebackLogic + * @return platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -322,7 +310,7 @@ public PlatformChargebackLogic getPlatformChargebackLogic() { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -331,11 +319,9 @@ public void setPlatformChargebackLogic(PlatformChargebackLogic platformChargebac } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in - * reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in - * Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. * @return the current {@code VoidPendingRefundRequest} instance, allowing for method chaining */ public VoidPendingRefundRequest reference(String reference) { @@ -344,11 +330,8 @@ public VoidPendingRefundRequest reference(String reference) { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in - * reports. Maximum length: 80 characters. - * - * @return reference Your reference for the payment modification. This reference is visible in - * Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * @return reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -357,11 +340,9 @@ public String getReference() { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in - * reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in - * Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -370,13 +351,9 @@ public void setReference(String reference) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * - * @param splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * @return the current {@code VoidPendingRefundRequest} instance, allowing for method chaining */ public VoidPendingRefundRequest splits(List splits) { @@ -393,13 +370,8 @@ public VoidPendingRefundRequest addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). - * - * @return splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * @return splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -408,13 +380,9 @@ public List getSplits() { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen - * for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * - * @param splits An array of objects specifying how the amount should be split between accounts - * when using Adyen for Platforms. For more information, see how to split payments for - * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -425,8 +393,7 @@ public void setSplits(List splits) { /** * The transaction reference provided by the PED. For point-of-sale integrations only. * - * @param tenderReference The transaction reference provided by the PED. For point-of-sale - * integrations only. + * @param tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. * @return the current {@code VoidPendingRefundRequest} instance, allowing for method chaining */ public VoidPendingRefundRequest tenderReference(String tenderReference) { @@ -436,9 +403,7 @@ public VoidPendingRefundRequest tenderReference(String tenderReference) { /** * The transaction reference provided by the PED. For point-of-sale integrations only. - * - * @return tenderReference The transaction reference provided by the PED. For point-of-sale - * integrations only. + * @return tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_TENDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -449,8 +414,7 @@ public String getTenderReference() { /** * The transaction reference provided by the PED. For point-of-sale integrations only. * - * @param tenderReference The transaction reference provided by the PED. For point-of-sale - * integrations only. + * @param tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_TENDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -459,11 +423,9 @@ public void setTenderReference(String tenderReference) { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale - * integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. * - * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. - * For point-of-sale integrations only. + * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. * @return the current {@code VoidPendingRefundRequest} instance, allowing for method chaining */ public VoidPendingRefundRequest uniqueTerminalId(String uniqueTerminalId) { @@ -472,11 +434,8 @@ public VoidPendingRefundRequest uniqueTerminalId(String uniqueTerminalId) { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale - * integrations only. - * - * @return uniqueTerminalId Unique terminal ID for the PED that originally processed the request. - * For point-of-sale integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * @return uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -485,11 +444,9 @@ public String getUniqueTerminalId() { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale - * integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. * - * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. - * For point-of-sale integrations only. + * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -497,7 +454,9 @@ public void setUniqueTerminalId(String uniqueTerminalId) { this.uniqueTerminalId = uniqueTerminalId; } - /** Return true if this VoidPendingRefundRequest object is equal to o. */ + /** + * Return true if this VoidPendingRefundRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -507,35 +466,22 @@ public boolean equals(Object o) { return false; } VoidPendingRefundRequest voidPendingRefundRequest = (VoidPendingRefundRequest) o; - return Objects.equals(this.additionalData, voidPendingRefundRequest.additionalData) - && Objects.equals(this.merchantAccount, voidPendingRefundRequest.merchantAccount) - && Objects.equals(this.modificationAmount, voidPendingRefundRequest.modificationAmount) - && Objects.equals(this.mpiData, voidPendingRefundRequest.mpiData) - && Objects.equals( - this.originalMerchantReference, voidPendingRefundRequest.originalMerchantReference) - && Objects.equals(this.originalReference, voidPendingRefundRequest.originalReference) - && Objects.equals( - this.platformChargebackLogic, voidPendingRefundRequest.platformChargebackLogic) - && Objects.equals(this.reference, voidPendingRefundRequest.reference) - && Objects.equals(this.splits, voidPendingRefundRequest.splits) - && Objects.equals(this.tenderReference, voidPendingRefundRequest.tenderReference) - && Objects.equals(this.uniqueTerminalId, voidPendingRefundRequest.uniqueTerminalId); + return Objects.equals(this.additionalData, voidPendingRefundRequest.additionalData) && + Objects.equals(this.merchantAccount, voidPendingRefundRequest.merchantAccount) && + Objects.equals(this.modificationAmount, voidPendingRefundRequest.modificationAmount) && + Objects.equals(this.mpiData, voidPendingRefundRequest.mpiData) && + Objects.equals(this.originalMerchantReference, voidPendingRefundRequest.originalMerchantReference) && + Objects.equals(this.originalReference, voidPendingRefundRequest.originalReference) && + Objects.equals(this.platformChargebackLogic, voidPendingRefundRequest.platformChargebackLogic) && + Objects.equals(this.reference, voidPendingRefundRequest.reference) && + Objects.equals(this.splits, voidPendingRefundRequest.splits) && + Objects.equals(this.tenderReference, voidPendingRefundRequest.tenderReference) && + Objects.equals(this.uniqueTerminalId, voidPendingRefundRequest.uniqueTerminalId); } @Override public int hashCode() { - return Objects.hash( - additionalData, - merchantAccount, - modificationAmount, - mpiData, - originalMerchantReference, - originalReference, - platformChargebackLogic, - reference, - splits, - tenderReference, - uniqueTerminalId); + return Objects.hash(additionalData, merchantAccount, modificationAmount, mpiData, originalMerchantReference, originalReference, platformChargebackLogic, reference, splits, tenderReference, uniqueTerminalId); } @Override @@ -546,13 +492,9 @@ public String toString() { sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" modificationAmount: ").append(toIndentedString(modificationAmount)).append("\n"); sb.append(" mpiData: ").append(toIndentedString(mpiData)).append("\n"); - sb.append(" originalMerchantReference: ") - .append(toIndentedString(originalMerchantReference)) - .append("\n"); + sb.append(" originalMerchantReference: ").append(toIndentedString(originalMerchantReference)).append("\n"); sb.append(" originalReference: ").append(toIndentedString(originalReference)).append("\n"); - sb.append(" platformChargebackLogic: ") - .append(toIndentedString(platformChargebackLogic)) - .append("\n"); + sb.append(" platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" tenderReference: ").append(toIndentedString(tenderReference)).append("\n"); @@ -562,7 +504,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -571,24 +514,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of VoidPendingRefundRequest given an JSON string * * @param jsonString JSON string * @return An instance of VoidPendingRefundRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * VoidPendingRefundRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to VoidPendingRefundRequest */ - public static VoidPendingRefundRequest fromJson(String jsonString) - throws JsonProcessingException { + public static VoidPendingRefundRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, VoidPendingRefundRequest.class); } - - /** - * Convert an instance of VoidPendingRefundRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of VoidPendingRefundRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/paymentsapp/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/paymentsapp/AbstractOpenApiSchema.java index 4a6afb0af..881544361 100644 --- a/src/main/java/com/adyen/model/paymentsapp/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/paymentsapp/AbstractOpenApiSchema.java @@ -2,141 +2,145 @@ * Payments App API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.paymentsapp; -import com.fasterxml.jackson.annotation.JsonValue; -import jakarta.ws.rs.core.GenericType; -import java.util.Map; import java.util.Objects; +import java.util.Map; +import jakarta.ws.rs.core.GenericType; -/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec + */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() { - return instance; - } - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) { - this.instance = instance; - } - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf - * schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); - } else { - return object.getActualInstance(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() {return instance;} + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) {this.instance = instance;} + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); + } else { + return object.getActualInstance(); + } + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) && + Objects.equals(this.isNullable, a.isNullable) && + Objects.equals(this.schemaType, a.schemaType); } - return o.toString().replace("\n", "\n "); - } - public boolean equals(Object o) { - if (this == o) { - return true; + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); } - if (o == null || getClass() != o.getClass()) { - return false; + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) - && Objects.equals(this.isNullable, a.isNullable) - && Objects.equals(this.schemaType, a.schemaType); - } - - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); - } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); - } -} + + + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/paymentsapp/BoardingTokenRequest.java b/src/main/java/com/adyen/model/paymentsapp/BoardingTokenRequest.java index 88789430f..fe98edd66 100644 --- a/src/main/java/com/adyen/model/paymentsapp/BoardingTokenRequest.java +++ b/src/main/java/com/adyen/model/paymentsapp/BoardingTokenRequest.java @@ -2,28 +2,41 @@ * Payments App API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.paymentsapp; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** BoardingTokenRequest */ -@JsonPropertyOrder({BoardingTokenRequest.JSON_PROPERTY_BOARDING_REQUEST_TOKEN}) + +/** + * BoardingTokenRequest + */ +@JsonPropertyOrder({ + BoardingTokenRequest.JSON_PROPERTY_BOARDING_REQUEST_TOKEN +}) + public class BoardingTokenRequest { public static final String JSON_PROPERTY_BOARDING_REQUEST_TOKEN = "boardingRequestToken"; private String boardingRequestToken; - public BoardingTokenRequest() {} + public BoardingTokenRequest() { + } /** * The boardingToken request token. @@ -38,7 +51,6 @@ public BoardingTokenRequest boardingRequestToken(String boardingRequestToken) { /** * The boardingToken request token. - * * @return boardingRequestToken The boardingToken request token. */ @JsonProperty(JSON_PROPERTY_BOARDING_REQUEST_TOKEN) @@ -58,7 +70,9 @@ public void setBoardingRequestToken(String boardingRequestToken) { this.boardingRequestToken = boardingRequestToken; } - /** Return true if this BoardingTokenRequest object is equal to o. */ + /** + * Return true if this BoardingTokenRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -80,15 +94,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BoardingTokenRequest {\n"); - sb.append(" boardingRequestToken: ") - .append(toIndentedString(boardingRequestToken)) - .append("\n"); + sb.append(" boardingRequestToken: ").append(toIndentedString(boardingRequestToken)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -97,23 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BoardingTokenRequest given an JSON string * * @param jsonString JSON string * @return An instance of BoardingTokenRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BoardingTokenRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to BoardingTokenRequest */ public static BoardingTokenRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BoardingTokenRequest.class); } - - /** - * Convert an instance of BoardingTokenRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BoardingTokenRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/paymentsapp/BoardingTokenResponse.java b/src/main/java/com/adyen/model/paymentsapp/BoardingTokenResponse.java index c9514b7bb..85cc9bef2 100644 --- a/src/main/java/com/adyen/model/paymentsapp/BoardingTokenResponse.java +++ b/src/main/java/com/adyen/model/paymentsapp/BoardingTokenResponse.java @@ -2,26 +2,36 @@ * Payments App API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.paymentsapp; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** BoardingTokenResponse */ + +/** + * BoardingTokenResponse + */ @JsonPropertyOrder({ BoardingTokenResponse.JSON_PROPERTY_BOARDING_TOKEN, BoardingTokenResponse.JSON_PROPERTY_INSTALLATION_ID }) + public class BoardingTokenResponse { public static final String JSON_PROPERTY_BOARDING_TOKEN = "boardingToken"; private String boardingToken; @@ -29,7 +39,8 @@ public class BoardingTokenResponse { public static final String JSON_PROPERTY_INSTALLATION_ID = "installationId"; private String installationId; - public BoardingTokenResponse() {} + public BoardingTokenResponse() { + } /** * The boarding token that allows the Payments App to board. @@ -44,7 +55,6 @@ public BoardingTokenResponse boardingToken(String boardingToken) { /** * The boarding token that allows the Payments App to board. - * * @return boardingToken The boarding token that allows the Payments App to board. */ @JsonProperty(JSON_PROPERTY_BOARDING_TOKEN) @@ -77,7 +87,6 @@ public BoardingTokenResponse installationId(String installationId) { /** * The unique identifier of the Payments App instance. - * * @return installationId The unique identifier of the Payments App instance. */ @JsonProperty(JSON_PROPERTY_INSTALLATION_ID) @@ -97,7 +106,9 @@ public void setInstallationId(String installationId) { this.installationId = installationId; } - /** Return true if this BoardingTokenResponse object is equal to o. */ + /** + * Return true if this BoardingTokenResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -107,8 +118,8 @@ public boolean equals(Object o) { return false; } BoardingTokenResponse boardingTokenResponse = (BoardingTokenResponse) o; - return Objects.equals(this.boardingToken, boardingTokenResponse.boardingToken) - && Objects.equals(this.installationId, boardingTokenResponse.installationId); + return Objects.equals(this.boardingToken, boardingTokenResponse.boardingToken) && + Objects.equals(this.installationId, boardingTokenResponse.installationId); } @Override @@ -127,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,23 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BoardingTokenResponse given an JSON string * * @param jsonString JSON string * @return An instance of BoardingTokenResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BoardingTokenResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to BoardingTokenResponse */ public static BoardingTokenResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BoardingTokenResponse.class); } - - /** - * Convert an instance of BoardingTokenResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BoardingTokenResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/paymentsapp/DefaultErrorResponseEntity.java b/src/main/java/com/adyen/model/paymentsapp/DefaultErrorResponseEntity.java index b213ca95a..9ec757456 100644 --- a/src/main/java/com/adyen/model/paymentsapp/DefaultErrorResponseEntity.java +++ b/src/main/java/com/adyen/model/paymentsapp/DefaultErrorResponseEntity.java @@ -2,24 +2,34 @@ * Payments App API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.paymentsapp; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.paymentsapp.InvalidField; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** Standardized error response following RFC-7807 format */ +/** + * Standardized error response following RFC-7807 format + */ @JsonPropertyOrder({ DefaultErrorResponseEntity.JSON_PROPERTY_DETAIL, DefaultErrorResponseEntity.JSON_PROPERTY_ERROR_CODE, @@ -30,6 +40,7 @@ DefaultErrorResponseEntity.JSON_PROPERTY_TITLE, DefaultErrorResponseEntity.JSON_PROPERTY_TYPE }) + public class DefaultErrorResponseEntity { public static final String JSON_PROPERTY_DETAIL = "detail"; private String detail; @@ -55,7 +66,8 @@ public class DefaultErrorResponseEntity { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public DefaultErrorResponseEntity() {} + public DefaultErrorResponseEntity() { + } /** * A human-readable explanation specific to this occurrence of the problem. @@ -70,7 +82,6 @@ public DefaultErrorResponseEntity detail(String detail) { /** * A human-readable explanation specific to this occurrence of the problem. - * * @return detail A human-readable explanation specific to this occurrence of the problem. */ @JsonProperty(JSON_PROPERTY_DETAIL) @@ -103,7 +114,6 @@ public DefaultErrorResponseEntity errorCode(String errorCode) { /** * Unique business error code. - * * @return errorCode Unique business error code. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -136,7 +146,6 @@ public DefaultErrorResponseEntity instance(String instance) { /** * A URI that identifies the specific occurrence of the problem if applicable. - * * @return instance A URI that identifies the specific occurrence of the problem if applicable. */ @JsonProperty(JSON_PROPERTY_INSTANCE) @@ -177,7 +186,6 @@ public DefaultErrorResponseEntity addInvalidFieldsItem(InvalidField invalidField /** * Array of fields with validation errors when applicable. - * * @return invalidFields Array of fields with validation errors when applicable. */ @JsonProperty(JSON_PROPERTY_INVALID_FIELDS) @@ -210,7 +218,6 @@ public DefaultErrorResponseEntity requestId(String requestId) { /** * The unique reference for the request. - * * @return requestId The unique reference for the request. */ @JsonProperty(JSON_PROPERTY_REQUEST_ID) @@ -243,7 +250,6 @@ public DefaultErrorResponseEntity status(Integer status) { /** * The HTTP status code. - * * @return status The HTTP status code. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -276,7 +282,6 @@ public DefaultErrorResponseEntity title(String title) { /** * A short, human-readable summary of the problem type. - * * @return title A short, human-readable summary of the problem type. */ @JsonProperty(JSON_PROPERTY_TITLE) @@ -297,11 +302,9 @@ public void setTitle(String title) { } /** - * A URI that identifies the validation error type. It points to human-readable documentation for - * the problem type. + * A URI that identifies the validation error type. It points to human-readable documentation for the problem type. * - * @param type A URI that identifies the validation error type. It points to human-readable - * documentation for the problem type. + * @param type A URI that identifies the validation error type. It points to human-readable documentation for the problem type. * @return the current {@code DefaultErrorResponseEntity} instance, allowing for method chaining */ public DefaultErrorResponseEntity type(String type) { @@ -310,11 +313,8 @@ public DefaultErrorResponseEntity type(String type) { } /** - * A URI that identifies the validation error type. It points to human-readable documentation for - * the problem type. - * - * @return type A URI that identifies the validation error type. It points to human-readable - * documentation for the problem type. + * A URI that identifies the validation error type. It points to human-readable documentation for the problem type. + * @return type A URI that identifies the validation error type. It points to human-readable documentation for the problem type. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -323,11 +323,9 @@ public String getType() { } /** - * A URI that identifies the validation error type. It points to human-readable documentation for - * the problem type. + * A URI that identifies the validation error type. It points to human-readable documentation for the problem type. * - * @param type A URI that identifies the validation error type. It points to human-readable - * documentation for the problem type. + * @param type A URI that identifies the validation error type. It points to human-readable documentation for the problem type. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -335,7 +333,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this DefaultErrorResponseEntity object is equal to o. */ + /** + * Return true if this DefaultErrorResponseEntity object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -345,14 +345,14 @@ public boolean equals(Object o) { return false; } DefaultErrorResponseEntity defaultErrorResponseEntity = (DefaultErrorResponseEntity) o; - return Objects.equals(this.detail, defaultErrorResponseEntity.detail) - && Objects.equals(this.errorCode, defaultErrorResponseEntity.errorCode) - && Objects.equals(this.instance, defaultErrorResponseEntity.instance) - && Objects.equals(this.invalidFields, defaultErrorResponseEntity.invalidFields) - && Objects.equals(this.requestId, defaultErrorResponseEntity.requestId) - && Objects.equals(this.status, defaultErrorResponseEntity.status) - && Objects.equals(this.title, defaultErrorResponseEntity.title) - && Objects.equals(this.type, defaultErrorResponseEntity.type); + return Objects.equals(this.detail, defaultErrorResponseEntity.detail) && + Objects.equals(this.errorCode, defaultErrorResponseEntity.errorCode) && + Objects.equals(this.instance, defaultErrorResponseEntity.instance) && + Objects.equals(this.invalidFields, defaultErrorResponseEntity.invalidFields) && + Objects.equals(this.requestId, defaultErrorResponseEntity.requestId) && + Objects.equals(this.status, defaultErrorResponseEntity.status) && + Objects.equals(this.title, defaultErrorResponseEntity.title) && + Objects.equals(this.type, defaultErrorResponseEntity.type); } @Override @@ -377,7 +377,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -386,24 +387,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DefaultErrorResponseEntity given an JSON string * * @param jsonString JSON string * @return An instance of DefaultErrorResponseEntity - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DefaultErrorResponseEntity + * @throws JsonProcessingException if the JSON string is invalid with respect to DefaultErrorResponseEntity */ - public static DefaultErrorResponseEntity fromJson(String jsonString) - throws JsonProcessingException { + public static DefaultErrorResponseEntity fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DefaultErrorResponseEntity.class); } - - /** - * Convert an instance of DefaultErrorResponseEntity to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DefaultErrorResponseEntity to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/paymentsapp/InvalidField.java b/src/main/java/com/adyen/model/paymentsapp/InvalidField.java index f7e34ab3e..03204e163 100644 --- a/src/main/java/com/adyen/model/paymentsapp/InvalidField.java +++ b/src/main/java/com/adyen/model/paymentsapp/InvalidField.java @@ -2,27 +2,37 @@ * Payments App API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.paymentsapp; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** InvalidField */ + +/** + * InvalidField + */ @JsonPropertyOrder({ InvalidField.JSON_PROPERTY_NAME, InvalidField.JSON_PROPERTY_VALUE, InvalidField.JSON_PROPERTY_MESSAGE }) + public class InvalidField { public static final String JSON_PROPERTY_NAME = "name"; private String name; @@ -33,7 +43,8 @@ public class InvalidField { public static final String JSON_PROPERTY_MESSAGE = "message"; private String message; - public InvalidField() {} + public InvalidField() { + } /** * The field that has an invalid value. @@ -48,7 +59,6 @@ public InvalidField name(String name) { /** * The field that has an invalid value. - * * @return name The field that has an invalid value. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -81,7 +91,6 @@ public InvalidField value(String value) { /** * The invalid value. - * * @return value The invalid value. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -114,7 +123,6 @@ public InvalidField message(String message) { /** * Description of the validation error. - * * @return message Description of the validation error. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -134,7 +142,9 @@ public void setMessage(String message) { this.message = message; } - /** Return true if this InvalidField object is equal to o. */ + /** + * Return true if this InvalidField object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,9 +154,9 @@ public boolean equals(Object o) { return false; } InvalidField invalidField = (InvalidField) o; - return Objects.equals(this.name, invalidField.name) - && Objects.equals(this.value, invalidField.value) - && Objects.equals(this.message, invalidField.message); + return Objects.equals(this.name, invalidField.name) && + Objects.equals(this.value, invalidField.value) && + Objects.equals(this.message, invalidField.message); } @Override @@ -166,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of InvalidField given an JSON string * * @param jsonString JSON string @@ -185,12 +196,11 @@ private String toIndentedString(Object o) { public static InvalidField fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, InvalidField.class); } - - /** - * Convert an instance of InvalidField to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of InvalidField to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/paymentsapp/JSON.java b/src/main/java/com/adyen/model/paymentsapp/JSON.java index 29447d5db..22916eab8 100644 --- a/src/main/java/com/adyen/model/paymentsapp/JSON.java +++ b/src/main/java/com/adyen/model/paymentsapp/JSON.java @@ -1,18 +1,21 @@ package com.adyen.model.paymentsapp; -import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; +import com.adyen.serializer.ByteArrayDeserializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; +import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; +import com.adyen.model.paymentsapp.*; + import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -37,7 +40,6 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. - * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -54,13 +56,11 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { - return mapper; - } + public static ObjectMapper getMapper() { return mapper; } /** - * Returns the target model class that should be used to deserialize the input data. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,7 +73,9 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** Helper class to register the discriminator mappings. */ + /** + * Helper class to register the discriminator mappings. + */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -115,9 +117,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. This - * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -162,14 +164,13 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so - * it's not possible to use the instanceof keyword. + * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, + * so it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf( - Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -193,58 +194,59 @@ public static boolean isInstanceOf( return false; } - /** A map of discriminators for all model classes. */ - private static final Map, ClassDiscriminatorMapping> modelDiscriminators = - new HashMap, ClassDiscriminatorMapping>(); + /** + * A map of discriminators for all model classes. + */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); - /** A map of oneOf/anyOf descendants for each model class. */ + /** + * A map of oneOf/anyOf descendants for each model class. + */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator( - Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = - new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants( - Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants(Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static { + static + { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/paymentsapp/PaymentsAppDto.java b/src/main/java/com/adyen/model/paymentsapp/PaymentsAppDto.java index ea0bb7998..2099052b3 100644 --- a/src/main/java/com/adyen/model/paymentsapp/PaymentsAppDto.java +++ b/src/main/java/com/adyen/model/paymentsapp/PaymentsAppDto.java @@ -2,28 +2,38 @@ * Payments App API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.paymentsapp; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** PaymentsAppDto */ + +/** + * PaymentsAppDto + */ @JsonPropertyOrder({ PaymentsAppDto.JSON_PROPERTY_INSTALLATION_ID, PaymentsAppDto.JSON_PROPERTY_MERCHANT_ACCOUNT_CODE, PaymentsAppDto.JSON_PROPERTY_MERCHANT_STORE_CODE, PaymentsAppDto.JSON_PROPERTY_STATUS }) + public class PaymentsAppDto { public static final String JSON_PROPERTY_INSTALLATION_ID = "installationId"; private String installationId; @@ -37,7 +47,8 @@ public class PaymentsAppDto { public static final String JSON_PROPERTY_STATUS = "status"; private String status; - public PaymentsAppDto() {} + public PaymentsAppDto() { + } /** * The unique identifier of the Payments App instance. @@ -52,7 +63,6 @@ public PaymentsAppDto installationId(String installationId) { /** * The unique identifier of the Payments App instance. - * * @return installationId The unique identifier of the Payments App instance. */ @JsonProperty(JSON_PROPERTY_INSTALLATION_ID) @@ -85,7 +95,6 @@ public PaymentsAppDto merchantAccountCode(String merchantAccountCode) { /** * The account code associated with the Payments App instance. - * * @return merchantAccountCode The account code associated with the Payments App instance. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT_CODE) @@ -118,7 +127,6 @@ public PaymentsAppDto merchantStoreCode(String merchantStoreCode) { /** * The store code associated with the Payments App instance. - * * @return merchantStoreCode The store code associated with the Payments App instance. */ @JsonProperty(JSON_PROPERTY_MERCHANT_STORE_CODE) @@ -151,7 +159,6 @@ public PaymentsAppDto status(String status) { /** * The status of the Payments App instance. - * * @return status The status of the Payments App instance. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -171,7 +178,9 @@ public void setStatus(String status) { this.status = status; } - /** Return true if this PaymentsAppDto object is equal to o. */ + /** + * Return true if this PaymentsAppDto object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -181,10 +190,10 @@ public boolean equals(Object o) { return false; } PaymentsAppDto paymentsAppDto = (PaymentsAppDto) o; - return Objects.equals(this.installationId, paymentsAppDto.installationId) - && Objects.equals(this.merchantAccountCode, paymentsAppDto.merchantAccountCode) - && Objects.equals(this.merchantStoreCode, paymentsAppDto.merchantStoreCode) - && Objects.equals(this.status, paymentsAppDto.status); + return Objects.equals(this.installationId, paymentsAppDto.installationId) && + Objects.equals(this.merchantAccountCode, paymentsAppDto.merchantAccountCode) && + Objects.equals(this.merchantStoreCode, paymentsAppDto.merchantStoreCode) && + Objects.equals(this.status, paymentsAppDto.status); } @Override @@ -197,9 +206,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentsAppDto {\n"); sb.append(" installationId: ").append(toIndentedString(installationId)).append("\n"); - sb.append(" merchantAccountCode: ") - .append(toIndentedString(merchantAccountCode)) - .append("\n"); + sb.append(" merchantAccountCode: ").append(toIndentedString(merchantAccountCode)).append("\n"); sb.append(" merchantStoreCode: ").append(toIndentedString(merchantStoreCode)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append("}"); @@ -207,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -216,7 +224,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentsAppDto given an JSON string * * @param jsonString JSON string @@ -226,12 +234,11 @@ private String toIndentedString(Object o) { public static PaymentsAppDto fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentsAppDto.class); } - - /** - * Convert an instance of PaymentsAppDto to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentsAppDto to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/paymentsapp/PaymentsAppResponse.java b/src/main/java/com/adyen/model/paymentsapp/PaymentsAppResponse.java index f8183ad62..a9f690745 100644 --- a/src/main/java/com/adyen/model/paymentsapp/PaymentsAppResponse.java +++ b/src/main/java/com/adyen/model/paymentsapp/PaymentsAppResponse.java @@ -2,30 +2,44 @@ * Payments App API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.paymentsapp; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.paymentsapp.PaymentsAppDto; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * PaymentsAppResponse + */ +@JsonPropertyOrder({ + PaymentsAppResponse.JSON_PROPERTY_PAYMENTS_APPS +}) -/** PaymentsAppResponse */ -@JsonPropertyOrder({PaymentsAppResponse.JSON_PROPERTY_PAYMENTS_APPS}) public class PaymentsAppResponse { public static final String JSON_PROPERTY_PAYMENTS_APPS = "paymentsApps"; private List paymentsApps; - public PaymentsAppResponse() {} + public PaymentsAppResponse() { + } /** * List of Payments Apps. @@ -48,7 +62,6 @@ public PaymentsAppResponse addPaymentsAppsItem(PaymentsAppDto paymentsAppsItem) /** * List of Payments Apps. - * * @return paymentsApps List of Payments Apps. */ @JsonProperty(JSON_PROPERTY_PAYMENTS_APPS) @@ -68,7 +81,9 @@ public void setPaymentsApps(List paymentsApps) { this.paymentsApps = paymentsApps; } - /** Return true if this PaymentsAppResponse object is equal to o. */ + /** + * Return true if this PaymentsAppResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -96,7 +111,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -105,23 +121,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentsAppResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaymentsAppResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentsAppResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentsAppResponse */ public static PaymentsAppResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentsAppResponse.class); } - - /** - * Convert an instance of PaymentsAppResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentsAppResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/payout/AbstractOpenApiSchema.java index 79608e81e..2b60fe00d 100644 --- a/src/main/java/com/adyen/model/payout/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/payout/AbstractOpenApiSchema.java @@ -2,141 +2,145 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payout; -import com.fasterxml.jackson.annotation.JsonValue; -import jakarta.ws.rs.core.GenericType; -import java.util.Map; import java.util.Objects; +import java.util.Map; +import jakarta.ws.rs.core.GenericType; -/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec + */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() { - return instance; - } - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) { - this.instance = instance; - } - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf - * schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); - } else { - return object.getActualInstance(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() {return instance;} + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) {this.instance = instance;} + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); + } else { + return object.getActualInstance(); + } + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) && + Objects.equals(this.isNullable, a.isNullable) && + Objects.equals(this.schemaType, a.schemaType); } - return o.toString().replace("\n", "\n "); - } - public boolean equals(Object o) { - if (this == o) { - return true; + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); } - if (o == null || getClass() != o.getClass()) { - return false; + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) - && Objects.equals(this.isNullable, a.isNullable) - && Objects.equals(this.schemaType, a.schemaType); - } - - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); - } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); - } -} + + + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/payout/Address.java b/src/main/java/com/adyen/model/payout/Address.java index 57c638c02..42f3069d9 100644 --- a/src/main/java/com/adyen/model/payout/Address.java +++ b/src/main/java/com/adyen/model/payout/Address.java @@ -2,22 +2,31 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Address */ + +/** + * Address + */ @JsonPropertyOrder({ Address.JSON_PROPERTY_CITY, Address.JSON_PROPERTY_COUNTRY, @@ -26,6 +35,7 @@ Address.JSON_PROPERTY_STATE_OR_PROVINCE, Address.JSON_PROPERTY_STREET }) + public class Address { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -45,7 +55,8 @@ public class Address { public static final String JSON_PROPERTY_STREET = "street"; private String street; - public Address() {} + public Address() { + } /** * The name of the city. Maximum length: 3000 characters. @@ -60,7 +71,6 @@ public Address city(String city) { /** * The name of the city. Maximum length: 3000 characters. - * * @return city The name of the city. Maximum length: 3000 characters. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -81,13 +91,9 @@ public void setCity(String city) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't - * know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If - * you don't know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. * @return the current {@code Address} instance, allowing for method chaining */ public Address country(String country) { @@ -96,13 +102,8 @@ public Address country(String country) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't - * know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. - * - * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If - * you don't know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,13 +112,9 @@ public String getCountry() { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't - * know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If - * you don't know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,7 +135,6 @@ public Address houseNumberOrName(String houseNumberOrName) { /** * The number or name of the house. Maximum length: 3000 characters. - * * @return houseNumberOrName The number or name of the house. Maximum length: 3000 characters. */ @JsonProperty(JSON_PROPERTY_HOUSE_NUMBER_OR_NAME) @@ -159,11 +155,9 @@ public void setHouseNumberOrName(String houseNumberOrName) { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an - * address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. * - * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten - * characters for an address in all other countries. + * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. * @return the current {@code Address} instance, allowing for method chaining */ public Address postalCode(String postalCode) { @@ -172,11 +166,8 @@ public Address postalCode(String postalCode) { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an - * address in all other countries. - * - * @return postalCode A maximum of five digits for an address in the US, or a maximum of ten - * characters for an address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * @return postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,11 +176,9 @@ public String getPostalCode() { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an - * address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. * - * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten - * characters for an address in all other countries. + * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,11 +187,9 @@ public void setPostalCode(String postalCode) { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** - * in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. * @return the current {@code Address} instance, allowing for method chaining */ public Address stateOrProvince(String stateOrProvince) { @@ -211,11 +198,8 @@ public Address stateOrProvince(String stateOrProvince) { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. - * - * @return stateOrProvince The two-character ISO 3166-2 state or province code. For example, - * **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * @return stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,11 +208,9 @@ public String getStateOrProvince() { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** - * in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,12 +219,9 @@ public void setStateOrProvince(String stateOrProvince) { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be - * included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. * - * @param street The name of the street. Maximum length: 3000 characters. > The house number - * should not be included in this field; it should be separately provided via - * `houseNumberOrName`. + * @param street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. * @return the current {@code Address} instance, allowing for method chaining */ public Address street(String street) { @@ -251,12 +230,8 @@ public Address street(String street) { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be - * included in this field; it should be separately provided via `houseNumberOrName`. - * - * @return street The name of the street. Maximum length: 3000 characters. > The house number - * should not be included in this field; it should be separately provided via - * `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * @return street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -265,12 +240,9 @@ public String getStreet() { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be - * included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. * - * @param street The name of the street. Maximum length: 3000 characters. > The house number - * should not be included in this field; it should be separately provided via - * `houseNumberOrName`. + * @param street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -278,7 +250,9 @@ public void setStreet(String street) { this.street = street; } - /** Return true if this Address object is equal to o. */ + /** + * Return true if this Address object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -288,12 +262,12 @@ public boolean equals(Object o) { return false; } Address address = (Address) o; - return Objects.equals(this.city, address.city) - && Objects.equals(this.country, address.country) - && Objects.equals(this.houseNumberOrName, address.houseNumberOrName) - && Objects.equals(this.postalCode, address.postalCode) - && Objects.equals(this.stateOrProvince, address.stateOrProvince) - && Objects.equals(this.street, address.street); + return Objects.equals(this.city, address.city) && + Objects.equals(this.country, address.country) && + Objects.equals(this.houseNumberOrName, address.houseNumberOrName) && + Objects.equals(this.postalCode, address.postalCode) && + Objects.equals(this.stateOrProvince, address.stateOrProvince) && + Objects.equals(this.street, address.street); } @Override @@ -316,7 +290,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -325,7 +300,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Address given an JSON string * * @param jsonString JSON string @@ -335,12 +310,11 @@ private String toIndentedString(Object o) { public static Address fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Address.class); } - - /** - * Convert an instance of Address to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Address to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/Amount.java b/src/main/java/com/adyen/model/payout/Amount.java index 9b35667a3..7cf02a292 100644 --- a/src/main/java/com/adyen/model/payout/Amount.java +++ b/src/main/java/com/adyen/model/payout/Amount.java @@ -2,23 +2,36 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Amount */ -@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) + +/** + * Amount + */ +@JsonPropertyOrder({ + Amount.JSON_PROPERTY_CURRENCY, + Amount.JSON_PROPERTY_VALUE +}) + public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -26,14 +39,13 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() {} + public Amount() { + } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount currency(String currency) { @@ -42,11 +54,8 @@ public Amount currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -55,11 +64,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,11 +75,9 @@ public void setCurrency(String currency) { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount value(Long value) { @@ -81,11 +86,8 @@ public Amount value(Long value) { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). - * - * @return value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @return value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,11 +96,9 @@ public Long getValue() { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,7 +106,9 @@ public void setValue(Long value) { this.value = value; } - /** Return true if this Amount object is equal to o. */ + /** + * Return true if this Amount object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -116,8 +118,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) - && Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) && + Objects.equals(this.value, amount.value); } @Override @@ -136,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -155,12 +158,11 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } - - /** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/BankAccount.java b/src/main/java/com/adyen/model/payout/BankAccount.java index 9e2204d72..0a3269e18 100644 --- a/src/main/java/com/adyen/model/payout/BankAccount.java +++ b/src/main/java/com/adyen/model/payout/BankAccount.java @@ -2,22 +2,31 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** BankAccount */ + +/** + * BankAccount + */ @JsonPropertyOrder({ BankAccount.JSON_PROPERTY_BANK_ACCOUNT_NUMBER, BankAccount.JSON_PROPERTY_BANK_CITY, @@ -29,6 +38,7 @@ BankAccount.JSON_PROPERTY_OWNER_NAME, BankAccount.JSON_PROPERTY_TAX_ID }) + public class BankAccount { public static final String JSON_PROPERTY_BANK_ACCOUNT_NUMBER = "bankAccountNumber"; private String bankAccountNumber; @@ -57,7 +67,8 @@ public class BankAccount { public static final String JSON_PROPERTY_TAX_ID = "taxId"; private String taxId; - public BankAccount() {} + public BankAccount() { + } /** * The bank account number (without separators). @@ -72,7 +83,6 @@ public BankAccount bankAccountNumber(String bankAccountNumber) { /** * The bank account number (without separators). - * * @return bankAccountNumber The bank account number (without separators). */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_NUMBER) @@ -105,7 +115,6 @@ public BankAccount bankCity(String bankCity) { /** * The bank city. - * * @return bankCity The bank city. */ @JsonProperty(JSON_PROPERTY_BANK_CITY) @@ -128,8 +137,7 @@ public void setBankCity(String bankCity) { /** * The location id of the bank. The field value is `nil` in most cases. * - * @param bankLocationId The location id of the bank. The field value is `nil` in most - * cases. + * @param bankLocationId The location id of the bank. The field value is `nil` in most cases. * @return the current {@code BankAccount} instance, allowing for method chaining */ public BankAccount bankLocationId(String bankLocationId) { @@ -139,9 +147,7 @@ public BankAccount bankLocationId(String bankLocationId) { /** * The location id of the bank. The field value is `nil` in most cases. - * - * @return bankLocationId The location id of the bank. The field value is `nil` in most - * cases. + * @return bankLocationId The location id of the bank. The field value is `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_BANK_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,8 +158,7 @@ public String getBankLocationId() { /** * The location id of the bank. The field value is `nil` in most cases. * - * @param bankLocationId The location id of the bank. The field value is `nil` in most - * cases. + * @param bankLocationId The location id of the bank. The field value is `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_BANK_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -174,7 +179,6 @@ public BankAccount bankName(String bankName) { /** * The name of the bank. - * * @return bankName The name of the bank. */ @JsonProperty(JSON_PROPERTY_BANK_NAME) @@ -195,11 +199,9 @@ public void setBankName(String bankName) { } /** - * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT - * address assigned to a bank. The field value is `nil` in most cases. + * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. * - * @param bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the - * SWIFT address assigned to a bank. The field value is `nil` in most cases. + * @param bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. * @return the current {@code BankAccount} instance, allowing for method chaining */ public BankAccount bic(String bic) { @@ -208,11 +210,8 @@ public BankAccount bic(String bic) { } /** - * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT - * address assigned to a bank. The field value is `nil` in most cases. - * - * @return bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the - * SWIFT address assigned to a bank. The field value is `nil` in most cases. + * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. + * @return bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_BIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,11 +220,9 @@ public String getBic() { } /** - * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT - * address assigned to a bank. The field value is `nil` in most cases. + * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. * - * @param bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the - * SWIFT address assigned to a bank. The field value is `nil` in most cases. + * @param bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_BIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -234,11 +231,9 @@ public void setBic(String bic) { } /** - * Country code where the bank is located. A valid value is an ISO two-character country code - * (e.g. 'NL'). + * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). * - * @param countryCode Country code where the bank is located. A valid value is an ISO - * two-character country code (e.g. 'NL'). + * @param countryCode Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). * @return the current {@code BankAccount} instance, allowing for method chaining */ public BankAccount countryCode(String countryCode) { @@ -247,11 +242,8 @@ public BankAccount countryCode(String countryCode) { } /** - * Country code where the bank is located. A valid value is an ISO two-character country code - * (e.g. 'NL'). - * - * @return countryCode Country code where the bank is located. A valid value is an ISO - * two-character country code (e.g. 'NL'). + * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). + * @return countryCode Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -260,11 +252,9 @@ public String getCountryCode() { } /** - * Country code where the bank is located. A valid value is an ISO two-character country code - * (e.g. 'NL'). + * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). * - * @param countryCode Country code where the bank is located. A valid value is an ISO - * two-character country code (e.g. 'NL'). + * @param countryCode Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -273,11 +263,9 @@ public void setCountryCode(String countryCode) { } /** - * The [International Bank Account - * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). * - * @param iban The [International Bank Account - * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * @param iban The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). * @return the current {@code BankAccount} instance, allowing for method chaining */ public BankAccount iban(String iban) { @@ -286,11 +274,8 @@ public BankAccount iban(String iban) { } /** - * The [International Bank Account - * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). - * - * @return iban The [International Bank Account - * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * @return iban The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -299,11 +284,9 @@ public String getIban() { } /** - * The [International Bank Account - * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). * - * @param iban The [International Bank Account - * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * @param iban The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -312,25 +295,9 @@ public void setIban(String iban) { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we - * automatically replace some of them with corresponding Latin characters to meet the FATF - * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter - * Møller is converted to Peter Mller, because banks don't accept 'ø'. After - * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), - * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - - * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details - * don't match the required format, the response returns the error message: 203 'Invalid - * bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. * - * @param ownerName The name of the bank account holder. If you submit a name with non-Latin - * characters, we automatically replace some of them with corresponding Latin characters to - * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted - * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept - * 'ø'. After replacement, the ownerName must have at least three alphanumeric - * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, - * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - - * allowed. > If provided details don't match the required format, the response returns - * the error message: 203 'Invalid bank account holder name'. + * @param ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. * @return the current {@code BankAccount} instance, allowing for method chaining */ public BankAccount ownerName(String ownerName) { @@ -339,25 +306,8 @@ public BankAccount ownerName(String ownerName) { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we - * automatically replace some of them with corresponding Latin characters to meet the FATF - * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter - * Møller is converted to Peter Mller, because banks don't accept 'ø'. After - * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), - * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - - * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details - * don't match the required format, the response returns the error message: 203 'Invalid - * bank account holder name'. - * - * @return ownerName The name of the bank account holder. If you submit a name with non-Latin - * characters, we automatically replace some of them with corresponding Latin characters to - * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted - * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept - * 'ø'. After replacement, the ownerName must have at least three alphanumeric - * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, - * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - - * allowed. > If provided details don't match the required format, the response returns - * the error message: 203 'Invalid bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * @return ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -366,25 +316,9 @@ public String getOwnerName() { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we - * automatically replace some of them with corresponding Latin characters to meet the FATF - * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter - * Møller is converted to Peter Mller, because banks don't accept 'ø'. After - * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), - * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - - * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details - * don't match the required format, the response returns the error message: 203 'Invalid - * bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. * - * @param ownerName The name of the bank account holder. If you submit a name with non-Latin - * characters, we automatically replace some of them with corresponding Latin characters to - * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted - * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept - * 'ø'. After replacement, the ownerName must have at least three alphanumeric - * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, - * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - - * allowed. > If provided details don't match the required format, the response returns - * the error message: 203 'Invalid bank account holder name'. + * @param ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -405,7 +339,6 @@ public BankAccount taxId(String taxId) { /** * The bank account holder's tax ID. - * * @return taxId The bank account holder's tax ID. */ @JsonProperty(JSON_PROPERTY_TAX_ID) @@ -425,7 +358,9 @@ public void setTaxId(String taxId) { this.taxId = taxId; } - /** Return true if this BankAccount object is equal to o. */ + /** + * Return true if this BankAccount object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -435,29 +370,20 @@ public boolean equals(Object o) { return false; } BankAccount bankAccount = (BankAccount) o; - return Objects.equals(this.bankAccountNumber, bankAccount.bankAccountNumber) - && Objects.equals(this.bankCity, bankAccount.bankCity) - && Objects.equals(this.bankLocationId, bankAccount.bankLocationId) - && Objects.equals(this.bankName, bankAccount.bankName) - && Objects.equals(this.bic, bankAccount.bic) - && Objects.equals(this.countryCode, bankAccount.countryCode) - && Objects.equals(this.iban, bankAccount.iban) - && Objects.equals(this.ownerName, bankAccount.ownerName) - && Objects.equals(this.taxId, bankAccount.taxId); + return Objects.equals(this.bankAccountNumber, bankAccount.bankAccountNumber) && + Objects.equals(this.bankCity, bankAccount.bankCity) && + Objects.equals(this.bankLocationId, bankAccount.bankLocationId) && + Objects.equals(this.bankName, bankAccount.bankName) && + Objects.equals(this.bic, bankAccount.bic) && + Objects.equals(this.countryCode, bankAccount.countryCode) && + Objects.equals(this.iban, bankAccount.iban) && + Objects.equals(this.ownerName, bankAccount.ownerName) && + Objects.equals(this.taxId, bankAccount.taxId); } @Override public int hashCode() { - return Objects.hash( - bankAccountNumber, - bankCity, - bankLocationId, - bankName, - bic, - countryCode, - iban, - ownerName, - taxId); + return Objects.hash(bankAccountNumber, bankCity, bankLocationId, bankName, bic, countryCode, iban, ownerName, taxId); } @Override @@ -478,7 +404,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -487,7 +414,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BankAccount given an JSON string * * @param jsonString JSON string @@ -497,12 +424,11 @@ private String toIndentedString(Object o) { public static BankAccount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankAccount.class); } - - /** - * Convert an instance of BankAccount to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BankAccount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/Card.java b/src/main/java/com/adyen/model/payout/Card.java index 9965a64e1..24293112d 100644 --- a/src/main/java/com/adyen/model/payout/Card.java +++ b/src/main/java/com/adyen/model/payout/Card.java @@ -2,22 +2,31 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Card */ + +/** + * Card + */ @JsonPropertyOrder({ Card.JSON_PROPERTY_CVC, Card.JSON_PROPERTY_EXPIRY_MONTH, @@ -28,6 +37,7 @@ Card.JSON_PROPERTY_START_MONTH, Card.JSON_PROPERTY_START_YEAR }) + public class Card { public static final String JSON_PROPERTY_CVC = "cvc"; private String cvc; @@ -53,28 +63,13 @@ public class Card { public static final String JSON_PROPERTY_START_YEAR = "startYear"; private String startYear; - public Card() {} + public Card() { + } /** - * The [card verification - * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) - * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 - * digits * CID – length: 4 digits > If you are using [Client-Side - * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code - * is present in the encrypted data. You must never post the card details to the server. > This - * field must be always present in a [one-click payment - * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value - * is returned in a response, it is always empty because it is not stored. + * The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. * - * @param cvc The [card verification - * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) - * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: - * 3 digits * CID – length: 4 digits > If you are using [Client-Side - * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC - * code is present in the encrypted data. You must never post the card details to the server. - * > This field must be always present in a [one-click payment - * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this - * value is returned in a response, it is always empty because it is not stored. + * @param cvc The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. * @return the current {@code Card} instance, allowing for method chaining */ public Card cvc(String cvc) { @@ -83,25 +78,8 @@ public Card cvc(String cvc) { } /** - * The [card verification - * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) - * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 - * digits * CID – length: 4 digits > If you are using [Client-Side - * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code - * is present in the encrypted data. You must never post the card details to the server. > This - * field must be always present in a [one-click payment - * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value - * is returned in a response, it is always empty because it is not stored. - * - * @return cvc The [card verification - * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) - * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: - * 3 digits * CID – length: 4 digits > If you are using [Client-Side - * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC - * code is present in the encrypted data. You must never post the card details to the server. - * > This field must be always present in a [one-click payment - * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this - * value is returned in a response, it is always empty because it is not stored. + * The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. + * @return cvc The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,25 +88,9 @@ public String getCvc() { } /** - * The [card verification - * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) - * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 - * digits * CID – length: 4 digits > If you are using [Client-Side - * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code - * is present in the encrypted data. You must never post the card details to the server. > This - * field must be always present in a [one-click payment - * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value - * is returned in a response, it is always empty because it is not stored. + * The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. * - * @param cvc The [card verification - * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) - * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: - * 3 digits * CID – length: 4 digits > If you are using [Client-Side - * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC - * code is present in the encrypted data. You must never post the card details to the server. - * > This field must be always present in a [one-click payment - * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this - * value is returned in a response, it is always empty because it is not stored. + * @param cvc The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,11 +99,9 @@ public void setCvc(String cvc) { } /** - * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 - * = March * 11 = November + * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November * - * @param expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For - * example: * 03 = March * 11 = November + * @param expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November * @return the current {@code Card} instance, allowing for method chaining */ public Card expiryMonth(String expiryMonth) { @@ -150,11 +110,8 @@ public Card expiryMonth(String expiryMonth) { } /** - * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 - * = March * 11 = November - * - * @return expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For - * example: * 03 = March * 11 = November + * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November + * @return expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,11 +120,9 @@ public String getExpiryMonth() { } /** - * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 - * = March * 11 = November + * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November * - * @param expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For - * example: * 03 = March * 11 = November + * @param expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,7 +143,6 @@ public Card expiryYear(String expiryYear) { /** * The card expiry year. Format: 4 digits. For example: 2020 - * * @return expiryYear The card expiry year. Format: 4 digits. For example: 2020 */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @@ -221,7 +175,6 @@ public Card holderName(String holderName) { /** * The name of the cardholder, as printed on the card. - * * @return holderName The name of the cardholder, as printed on the card. */ @JsonProperty(JSON_PROPERTY_HOLDER_NAME) @@ -254,7 +207,6 @@ public Card issueNumber(String issueNumber) { /** * The issue number of the card (for some UK debit cards only). - * * @return issueNumber The issue number of the card (for some UK debit cards only). */ @JsonProperty(JSON_PROPERTY_ISSUE_NUMBER) @@ -275,11 +227,9 @@ public void setIssueNumber(String issueNumber) { } /** - * The card number (4-19 characters). Do not use any separators. When this value is returned in a - * response, only the last 4 digits of the card number are returned. + * The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. * - * @param number The card number (4-19 characters). Do not use any separators. When this value is - * returned in a response, only the last 4 digits of the card number are returned. + * @param number The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. * @return the current {@code Card} instance, allowing for method chaining */ public Card number(String number) { @@ -288,11 +238,8 @@ public Card number(String number) { } /** - * The card number (4-19 characters). Do not use any separators. When this value is returned in a - * response, only the last 4 digits of the card number are returned. - * - * @return number The card number (4-19 characters). Do not use any separators. When this value is - * returned in a response, only the last 4 digits of the card number are returned. + * The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. + * @return number The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -301,11 +248,9 @@ public String getNumber() { } /** - * The card number (4-19 characters). Do not use any separators. When this value is returned in a - * response, only the last 4 digits of the card number are returned. + * The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. * - * @param number The card number (4-19 characters). Do not use any separators. When this value is - * returned in a response, only the last 4 digits of the card number are returned. + * @param number The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -326,7 +271,6 @@ public Card startMonth(String startMonth) { /** * The month component of the start date (for some UK debit cards only). - * * @return startMonth The month component of the start date (for some UK debit cards only). */ @JsonProperty(JSON_PROPERTY_START_MONTH) @@ -359,7 +303,6 @@ public Card startYear(String startYear) { /** * The year component of the start date (for some UK debit cards only). - * * @return startYear The year component of the start date (for some UK debit cards only). */ @JsonProperty(JSON_PROPERTY_START_YEAR) @@ -379,7 +322,9 @@ public void setStartYear(String startYear) { this.startYear = startYear; } - /** Return true if this Card object is equal to o. */ + /** + * Return true if this Card object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -389,20 +334,19 @@ public boolean equals(Object o) { return false; } Card card = (Card) o; - return Objects.equals(this.cvc, card.cvc) - && Objects.equals(this.expiryMonth, card.expiryMonth) - && Objects.equals(this.expiryYear, card.expiryYear) - && Objects.equals(this.holderName, card.holderName) - && Objects.equals(this.issueNumber, card.issueNumber) - && Objects.equals(this.number, card.number) - && Objects.equals(this.startMonth, card.startMonth) - && Objects.equals(this.startYear, card.startYear); + return Objects.equals(this.cvc, card.cvc) && + Objects.equals(this.expiryMonth, card.expiryMonth) && + Objects.equals(this.expiryYear, card.expiryYear) && + Objects.equals(this.holderName, card.holderName) && + Objects.equals(this.issueNumber, card.issueNumber) && + Objects.equals(this.number, card.number) && + Objects.equals(this.startMonth, card.startMonth) && + Objects.equals(this.startYear, card.startYear); } @Override public int hashCode() { - return Objects.hash( - cvc, expiryMonth, expiryYear, holderName, issueNumber, number, startMonth, startYear); + return Objects.hash(cvc, expiryMonth, expiryYear, holderName, issueNumber, number, startMonth, startYear); } @Override @@ -422,7 +366,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -431,7 +376,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Card given an JSON string * * @param jsonString JSON string @@ -441,12 +386,11 @@ private String toIndentedString(Object o) { public static Card fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Card.class); } - - /** - * Convert an instance of Card to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Card to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/FraudCheckResult.java b/src/main/java/com/adyen/model/payout/FraudCheckResult.java index 2327be705..d84596e80 100644 --- a/src/main/java/com/adyen/model/payout/FraudCheckResult.java +++ b/src/main/java/com/adyen/model/payout/FraudCheckResult.java @@ -2,27 +2,37 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** FraudCheckResult */ + +/** + * FraudCheckResult + */ @JsonPropertyOrder({ FraudCheckResult.JSON_PROPERTY_ACCOUNT_SCORE, FraudCheckResult.JSON_PROPERTY_CHECK_ID, FraudCheckResult.JSON_PROPERTY_NAME }) + public class FraudCheckResult { public static final String JSON_PROPERTY_ACCOUNT_SCORE = "accountScore"; private Integer accountScore; @@ -33,7 +43,8 @@ public class FraudCheckResult { public static final String JSON_PROPERTY_NAME = "name"; private String name; - public FraudCheckResult() {} + public FraudCheckResult() { + } /** * The fraud score generated by the risk check. @@ -48,7 +59,6 @@ public FraudCheckResult accountScore(Integer accountScore) { /** * The fraud score generated by the risk check. - * * @return accountScore The fraud score generated by the risk check. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_SCORE) @@ -81,7 +91,6 @@ public FraudCheckResult checkId(Integer checkId) { /** * The ID of the risk check. - * * @return checkId The ID of the risk check. */ @JsonProperty(JSON_PROPERTY_CHECK_ID) @@ -114,7 +123,6 @@ public FraudCheckResult name(String name) { /** * The name of the risk check. - * * @return name The name of the risk check. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -134,7 +142,9 @@ public void setName(String name) { this.name = name; } - /** Return true if this FraudCheckResult object is equal to o. */ + /** + * Return true if this FraudCheckResult object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,9 +154,9 @@ public boolean equals(Object o) { return false; } FraudCheckResult fraudCheckResult = (FraudCheckResult) o; - return Objects.equals(this.accountScore, fraudCheckResult.accountScore) - && Objects.equals(this.checkId, fraudCheckResult.checkId) - && Objects.equals(this.name, fraudCheckResult.name); + return Objects.equals(this.accountScore, fraudCheckResult.accountScore) && + Objects.equals(this.checkId, fraudCheckResult.checkId) && + Objects.equals(this.name, fraudCheckResult.name); } @Override @@ -166,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of FraudCheckResult given an JSON string * * @param jsonString JSON string @@ -185,12 +196,11 @@ private String toIndentedString(Object o) { public static FraudCheckResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, FraudCheckResult.class); } - - /** - * Convert an instance of FraudCheckResult to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of FraudCheckResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/FraudCheckResultWrapper.java b/src/main/java/com/adyen/model/payout/FraudCheckResultWrapper.java index a40ffae55..bdd0fbee1 100644 --- a/src/main/java/com/adyen/model/payout/FraudCheckResultWrapper.java +++ b/src/main/java/com/adyen/model/payout/FraudCheckResultWrapper.java @@ -2,33 +2,47 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.payout.FraudCheckResult; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** FraudCheckResultWrapper */ -@JsonPropertyOrder({FraudCheckResultWrapper.JSON_PROPERTY_FRAUD_CHECK_RESULT}) + +/** + * FraudCheckResultWrapper + */ +@JsonPropertyOrder({ + FraudCheckResultWrapper.JSON_PROPERTY_FRAUD_CHECK_RESULT +}) + public class FraudCheckResultWrapper { public static final String JSON_PROPERTY_FRAUD_CHECK_RESULT = "FraudCheckResult"; private FraudCheckResult fraudCheckResult; - public FraudCheckResultWrapper() {} + public FraudCheckResultWrapper() { + } /** * fraudCheckResult * - * @param fraudCheckResult + * @param fraudCheckResult * @return the current {@code FraudCheckResultWrapper} instance, allowing for method chaining */ public FraudCheckResultWrapper fraudCheckResult(FraudCheckResult fraudCheckResult) { @@ -38,8 +52,7 @@ public FraudCheckResultWrapper fraudCheckResult(FraudCheckResult fraudCheckResul /** * Get fraudCheckResult - * - * @return fraudCheckResult + * @return fraudCheckResult */ @JsonProperty(JSON_PROPERTY_FRAUD_CHECK_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -50,7 +63,7 @@ public FraudCheckResult getFraudCheckResult() { /** * fraudCheckResult * - * @param fraudCheckResult + * @param fraudCheckResult */ @JsonProperty(JSON_PROPERTY_FRAUD_CHECK_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,7 +71,9 @@ public void setFraudCheckResult(FraudCheckResult fraudCheckResult) { this.fraudCheckResult = fraudCheckResult; } - /** Return true if this FraudCheckResultWrapper object is equal to o. */ + /** + * Return true if this FraudCheckResultWrapper object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,7 +101,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,23 +111,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of FraudCheckResultWrapper given an JSON string * * @param jsonString JSON string * @return An instance of FraudCheckResultWrapper - * @throws JsonProcessingException if the JSON string is invalid with respect to - * FraudCheckResultWrapper + * @throws JsonProcessingException if the JSON string is invalid with respect to FraudCheckResultWrapper */ public static FraudCheckResultWrapper fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, FraudCheckResultWrapper.class); } - - /** - * Convert an instance of FraudCheckResultWrapper to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of FraudCheckResultWrapper to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/FraudResult.java b/src/main/java/com/adyen/model/payout/FraudResult.java index c66734f24..50a43b154 100644 --- a/src/main/java/com/adyen/model/payout/FraudResult.java +++ b/src/main/java/com/adyen/model/payout/FraudResult.java @@ -2,25 +2,39 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.payout.FraudCheckResultWrapper; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * FraudResult + */ +@JsonPropertyOrder({ + FraudResult.JSON_PROPERTY_ACCOUNT_SCORE, + FraudResult.JSON_PROPERTY_RESULTS +}) -/** FraudResult */ -@JsonPropertyOrder({FraudResult.JSON_PROPERTY_ACCOUNT_SCORE, FraudResult.JSON_PROPERTY_RESULTS}) public class FraudResult { public static final String JSON_PROPERTY_ACCOUNT_SCORE = "accountScore"; private Integer accountScore; @@ -28,7 +42,8 @@ public class FraudResult { public static final String JSON_PROPERTY_RESULTS = "results"; private List results; - public FraudResult() {} + public FraudResult() { + } /** * The total fraud score generated by the risk checks. @@ -43,7 +58,6 @@ public FraudResult accountScore(Integer accountScore) { /** * The total fraud score generated by the risk checks. - * * @return accountScore The total fraud score generated by the risk checks. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_SCORE) @@ -84,7 +98,6 @@ public FraudResult addResultsItem(FraudCheckResultWrapper resultsItem) { /** * The result of the individual risk checks. - * * @return results The result of the individual risk checks. */ @JsonProperty(JSON_PROPERTY_RESULTS) @@ -104,7 +117,9 @@ public void setResults(List results) { this.results = results; } - /** Return true if this FraudResult object is equal to o. */ + /** + * Return true if this FraudResult object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -114,8 +129,8 @@ public boolean equals(Object o) { return false; } FraudResult fraudResult = (FraudResult) o; - return Objects.equals(this.accountScore, fraudResult.accountScore) - && Objects.equals(this.results, fraudResult.results); + return Objects.equals(this.accountScore, fraudResult.accountScore) && + Objects.equals(this.results, fraudResult.results); } @Override @@ -134,7 +149,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -143,7 +159,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of FraudResult given an JSON string * * @param jsonString JSON string @@ -153,12 +169,11 @@ private String toIndentedString(Object o) { public static FraudResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, FraudResult.class); } - - /** - * Convert an instance of FraudResult to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of FraudResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/FundSource.java b/src/main/java/com/adyen/model/payout/FundSource.java index a137e29b1..bb09118a0 100644 --- a/src/main/java/com/adyen/model/payout/FundSource.java +++ b/src/main/java/com/adyen/model/payout/FundSource.java @@ -2,24 +2,36 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payout; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.payout.Address; +import com.adyen.model.payout.Card; +import com.adyen.model.payout.Name; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** FundSource */ +/** + * FundSource + */ @JsonPropertyOrder({ FundSource.JSON_PROPERTY_ADDITIONAL_DATA, FundSource.JSON_PROPERTY_BILLING_ADDRESS, @@ -28,6 +40,7 @@ FundSource.JSON_PROPERTY_SHOPPER_NAME, FundSource.JSON_PROPERTY_TELEPHONE_NUMBER }) + public class FundSource { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -47,13 +60,13 @@ public class FundSource { public static final String JSON_PROPERTY_TELEPHONE_NUMBER = "telephoneNumber"; private String telephoneNumber; - public FundSource() {} + public FundSource() { + } /** * A map of name-value pairs for passing additional or industry-specific data. * - * @param additionalData A map of name-value pairs for passing additional or industry-specific - * data. + * @param additionalData A map of name-value pairs for passing additional or industry-specific data. * @return the current {@code FundSource} instance, allowing for method chaining */ public FundSource additionalData(Map additionalData) { @@ -71,9 +84,7 @@ public FundSource putAdditionalDataItem(String key, String additionalDataItem) { /** * A map of name-value pairs for passing additional or industry-specific data. - * - * @return additionalData A map of name-value pairs for passing additional or industry-specific - * data. + * @return additionalData A map of name-value pairs for passing additional or industry-specific data. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -84,8 +95,7 @@ public Map getAdditionalData() { /** * A map of name-value pairs for passing additional or industry-specific data. * - * @param additionalData A map of name-value pairs for passing additional or industry-specific - * data. + * @param additionalData A map of name-value pairs for passing additional or industry-specific data. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,7 +106,7 @@ public void setAdditionalData(Map additionalData) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code FundSource} instance, allowing for method chaining */ public FundSource billingAddress(Address billingAddress) { @@ -106,8 +116,7 @@ public FundSource billingAddress(Address billingAddress) { /** * Get billingAddress - * - * @return billingAddress + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,7 +127,7 @@ public Address getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,7 +138,7 @@ public void setBillingAddress(Address billingAddress) { /** * card * - * @param card + * @param card * @return the current {@code FundSource} instance, allowing for method chaining */ public FundSource card(Card card) { @@ -139,8 +148,7 @@ public FundSource card(Card card) { /** * Get card - * - * @return card + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,7 +159,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,7 +180,6 @@ public FundSource shopperEmail(String shopperEmail) { /** * Email address of the person. - * * @return shopperEmail Email address of the person. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -195,7 +202,7 @@ public void setShopperEmail(String shopperEmail) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code FundSource} instance, allowing for method chaining */ public FundSource shopperName(Name shopperName) { @@ -205,8 +212,7 @@ public FundSource shopperName(Name shopperName) { /** * Get shopperName - * - * @return shopperName + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -217,7 +223,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -238,7 +244,6 @@ public FundSource telephoneNumber(String telephoneNumber) { /** * Phone number of the person - * * @return telephoneNumber Phone number of the person */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @@ -258,7 +263,9 @@ public void setTelephoneNumber(String telephoneNumber) { this.telephoneNumber = telephoneNumber; } - /** Return true if this FundSource object is equal to o. */ + /** + * Return true if this FundSource object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -268,18 +275,17 @@ public boolean equals(Object o) { return false; } FundSource fundSource = (FundSource) o; - return Objects.equals(this.additionalData, fundSource.additionalData) - && Objects.equals(this.billingAddress, fundSource.billingAddress) - && Objects.equals(this.card, fundSource.card) - && Objects.equals(this.shopperEmail, fundSource.shopperEmail) - && Objects.equals(this.shopperName, fundSource.shopperName) - && Objects.equals(this.telephoneNumber, fundSource.telephoneNumber); + return Objects.equals(this.additionalData, fundSource.additionalData) && + Objects.equals(this.billingAddress, fundSource.billingAddress) && + Objects.equals(this.card, fundSource.card) && + Objects.equals(this.shopperEmail, fundSource.shopperEmail) && + Objects.equals(this.shopperName, fundSource.shopperName) && + Objects.equals(this.telephoneNumber, fundSource.telephoneNumber); } @Override public int hashCode() { - return Objects.hash( - additionalData, billingAddress, card, shopperEmail, shopperName, telephoneNumber); + return Objects.hash(additionalData, billingAddress, card, shopperEmail, shopperName, telephoneNumber); } @Override @@ -297,7 +303,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -306,7 +313,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of FundSource given an JSON string * * @param jsonString JSON string @@ -316,12 +323,11 @@ private String toIndentedString(Object o) { public static FundSource fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, FundSource.class); } - - /** - * Convert an instance of FundSource to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of FundSource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/JSON.java b/src/main/java/com/adyen/model/payout/JSON.java index 054bf03a7..db65d6e94 100644 --- a/src/main/java/com/adyen/model/payout/JSON.java +++ b/src/main/java/com/adyen/model/payout/JSON.java @@ -1,18 +1,21 @@ package com.adyen.model.payout; -import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; +import com.adyen.serializer.ByteArrayDeserializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; +import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; +import com.adyen.model.payout.*; + import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -37,7 +40,6 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. - * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -54,13 +56,11 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { - return mapper; - } + public static ObjectMapper getMapper() { return mapper; } /** - * Returns the target model class that should be used to deserialize the input data. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,7 +73,9 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** Helper class to register the discriminator mappings. */ + /** + * Helper class to register the discriminator mappings. + */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -115,9 +117,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. This - * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -162,14 +164,13 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so - * it's not possible to use the instanceof keyword. + * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, + * so it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf( - Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -193,58 +194,59 @@ public static boolean isInstanceOf( return false; } - /** A map of discriminators for all model classes. */ - private static final Map, ClassDiscriminatorMapping> modelDiscriminators = - new HashMap, ClassDiscriminatorMapping>(); + /** + * A map of discriminators for all model classes. + */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); - /** A map of oneOf/anyOf descendants for each model class. */ + /** + * A map of oneOf/anyOf descendants for each model class. + */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator( - Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = - new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants( - Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants(Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static { + static + { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/payout/ModifyRequest.java b/src/main/java/com/adyen/model/payout/ModifyRequest.java index bff1fcc72..bef51cbca 100644 --- a/src/main/java/com/adyen/model/payout/ModifyRequest.java +++ b/src/main/java/com/adyen/model/payout/ModifyRequest.java @@ -2,29 +2,39 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ModifyRequest */ +/** + * ModifyRequest + */ @JsonPropertyOrder({ ModifyRequest.JSON_PROPERTY_ADDITIONAL_DATA, ModifyRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, ModifyRequest.JSON_PROPERTY_ORIGINAL_REFERENCE }) + public class ModifyRequest { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -35,13 +45,13 @@ public class ModifyRequest { public static final String JSON_PROPERTY_ORIGINAL_REFERENCE = "originalReference"; private String originalReference; - public ModifyRequest() {} + public ModifyRequest() { + } /** * This field contains additional data, which may be required for a particular payout request. * - * @param additionalData This field contains additional data, which may be required for a - * particular payout request. + * @param additionalData This field contains additional data, which may be required for a particular payout request. * @return the current {@code ModifyRequest} instance, allowing for method chaining */ public ModifyRequest additionalData(Map additionalData) { @@ -59,9 +69,7 @@ public ModifyRequest putAdditionalDataItem(String key, String additionalDataItem /** * This field contains additional data, which may be required for a particular payout request. - * - * @return additionalData This field contains additional data, which may be required for a - * particular payout request. + * @return additionalData This field contains additional data, which may be required for a particular payout request. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -72,8 +80,7 @@ public Map getAdditionalData() { /** * This field contains additional data, which may be required for a particular payout request. * - * @param additionalData This field contains additional data, which may be required for a - * particular payout request. + * @param additionalData This field contains additional data, which may be required for a particular payout request. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -84,8 +91,7 @@ public void setAdditionalData(Map additionalData) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. * @return the current {@code ModifyRequest} instance, allowing for method chaining */ public ModifyRequest merchantAccount(String merchantAccount) { @@ -95,9 +101,7 @@ public ModifyRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * - * @return merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @return merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,8 +112,7 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -120,8 +123,7 @@ public void setMerchantAccount(String merchantAccount) { /** * The PSP reference received in the `/submitThirdParty` response. * - * @param originalReference The PSP reference received in the `/submitThirdParty` - * response. + * @param originalReference The PSP reference received in the `/submitThirdParty` response. * @return the current {@code ModifyRequest} instance, allowing for method chaining */ public ModifyRequest originalReference(String originalReference) { @@ -131,9 +133,7 @@ public ModifyRequest originalReference(String originalReference) { /** * The PSP reference received in the `/submitThirdParty` response. - * - * @return originalReference The PSP reference received in the `/submitThirdParty` - * response. + * @return originalReference The PSP reference received in the `/submitThirdParty` response. */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,8 +144,7 @@ public String getOriginalReference() { /** * The PSP reference received in the `/submitThirdParty` response. * - * @param originalReference The PSP reference received in the `/submitThirdParty` - * response. + * @param originalReference The PSP reference received in the `/submitThirdParty` response. */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -153,7 +152,9 @@ public void setOriginalReference(String originalReference) { this.originalReference = originalReference; } - /** Return true if this ModifyRequest object is equal to o. */ + /** + * Return true if this ModifyRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -163,9 +164,9 @@ public boolean equals(Object o) { return false; } ModifyRequest modifyRequest = (ModifyRequest) o; - return Objects.equals(this.additionalData, modifyRequest.additionalData) - && Objects.equals(this.merchantAccount, modifyRequest.merchantAccount) - && Objects.equals(this.originalReference, modifyRequest.originalReference); + return Objects.equals(this.additionalData, modifyRequest.additionalData) && + Objects.equals(this.merchantAccount, modifyRequest.merchantAccount) && + Objects.equals(this.originalReference, modifyRequest.originalReference); } @Override @@ -185,7 +186,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -194,7 +196,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ModifyRequest given an JSON string * * @param jsonString JSON string @@ -204,12 +206,11 @@ private String toIndentedString(Object o) { public static ModifyRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ModifyRequest.class); } - - /** - * Convert an instance of ModifyRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ModifyRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/ModifyResponse.java b/src/main/java/com/adyen/model/payout/ModifyResponse.java index efd08e102..f6a0b74a6 100644 --- a/src/main/java/com/adyen/model/payout/ModifyResponse.java +++ b/src/main/java/com/adyen/model/payout/ModifyResponse.java @@ -2,29 +2,39 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ModifyResponse */ +/** + * ModifyResponse + */ @JsonPropertyOrder({ ModifyResponse.JSON_PROPERTY_ADDITIONAL_DATA, ModifyResponse.JSON_PROPERTY_PSP_REFERENCE, ModifyResponse.JSON_PROPERTY_RESPONSE }) + public class ModifyResponse { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -35,13 +45,13 @@ public class ModifyResponse { public static final String JSON_PROPERTY_RESPONSE = "response"; private String response; - public ModifyResponse() {} + public ModifyResponse() { + } /** * This field contains additional data, which may be returned in a particular response. * - * @param additionalData This field contains additional data, which may be returned in a - * particular response. + * @param additionalData This field contains additional data, which may be returned in a particular response. * @return the current {@code ModifyResponse} instance, allowing for method chaining */ public ModifyResponse additionalData(Map additionalData) { @@ -59,9 +69,7 @@ public ModifyResponse putAdditionalDataItem(String key, String additionalDataIte /** * This field contains additional data, which may be returned in a particular response. - * - * @return additionalData This field contains additional data, which may be returned in a - * particular response. + * @return additionalData This field contains additional data, which may be returned in a particular response. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -72,8 +80,7 @@ public Map getAdditionalData() { /** * This field contains additional data, which may be returned in a particular response. * - * @param additionalData This field contains additional data, which may be returned in a - * particular response. + * @param additionalData This field contains additional data, which may be returned in a particular response. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -82,11 +89,9 @@ public void setAdditionalData(Map additionalData) { } /** - * Adyen's 16-character string reference associated with the transaction. This value is - * globally unique; quote it when communicating with us about this response. + * Adyen's 16-character string reference associated with the transaction. This value is globally unique; quote it when communicating with us about this response. * - * @param pspReference Adyen's 16-character string reference associated with the transaction. - * This value is globally unique; quote it when communicating with us about this response. + * @param pspReference Adyen's 16-character string reference associated with the transaction. This value is globally unique; quote it when communicating with us about this response. * @return the current {@code ModifyResponse} instance, allowing for method chaining */ public ModifyResponse pspReference(String pspReference) { @@ -95,11 +100,8 @@ public ModifyResponse pspReference(String pspReference) { } /** - * Adyen's 16-character string reference associated with the transaction. This value is - * globally unique; quote it when communicating with us about this response. - * - * @return pspReference Adyen's 16-character string reference associated with the transaction. - * This value is globally unique; quote it when communicating with us about this response. + * Adyen's 16-character string reference associated with the transaction. This value is globally unique; quote it when communicating with us about this response. + * @return pspReference Adyen's 16-character string reference associated with the transaction. This value is globally unique; quote it when communicating with us about this response. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,11 +110,9 @@ public String getPspReference() { } /** - * Adyen's 16-character string reference associated with the transaction. This value is - * globally unique; quote it when communicating with us about this response. + * Adyen's 16-character string reference associated with the transaction. This value is globally unique; quote it when communicating with us about this response. * - * @param pspReference Adyen's 16-character string reference associated with the transaction. - * This value is globally unique; quote it when communicating with us about this response. + * @param pspReference Adyen's 16-character string reference associated with the transaction. This value is globally unique; quote it when communicating with us about this response. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,13 +121,9 @@ public void setPspReference(String pspReference) { } /** - * The response: * In case of success, it is either `payout-confirm-received` or - * `payout-decline-received`. * In case of an error, an informational message is - * returned. + * The response: * In case of success, it is either `payout-confirm-received` or `payout-decline-received`. * In case of an error, an informational message is returned. * - * @param response The response: * In case of success, it is either - * `payout-confirm-received` or `payout-decline-received`. * In case of an - * error, an informational message is returned. + * @param response The response: * In case of success, it is either `payout-confirm-received` or `payout-decline-received`. * In case of an error, an informational message is returned. * @return the current {@code ModifyResponse} instance, allowing for method chaining */ public ModifyResponse response(String response) { @@ -136,13 +132,8 @@ public ModifyResponse response(String response) { } /** - * The response: * In case of success, it is either `payout-confirm-received` or - * `payout-decline-received`. * In case of an error, an informational message is - * returned. - * - * @return response The response: * In case of success, it is either - * `payout-confirm-received` or `payout-decline-received`. * In case of an - * error, an informational message is returned. + * The response: * In case of success, it is either `payout-confirm-received` or `payout-decline-received`. * In case of an error, an informational message is returned. + * @return response The response: * In case of success, it is either `payout-confirm-received` or `payout-decline-received`. * In case of an error, an informational message is returned. */ @JsonProperty(JSON_PROPERTY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,13 +142,9 @@ public String getResponse() { } /** - * The response: * In case of success, it is either `payout-confirm-received` or - * `payout-decline-received`. * In case of an error, an informational message is - * returned. + * The response: * In case of success, it is either `payout-confirm-received` or `payout-decline-received`. * In case of an error, an informational message is returned. * - * @param response The response: * In case of success, it is either - * `payout-confirm-received` or `payout-decline-received`. * In case of an - * error, an informational message is returned. + * @param response The response: * In case of success, it is either `payout-confirm-received` or `payout-decline-received`. * In case of an error, an informational message is returned. */ @JsonProperty(JSON_PROPERTY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -165,7 +152,9 @@ public void setResponse(String response) { this.response = response; } - /** Return true if this ModifyResponse object is equal to o. */ + /** + * Return true if this ModifyResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -175,9 +164,9 @@ public boolean equals(Object o) { return false; } ModifyResponse modifyResponse = (ModifyResponse) o; - return Objects.equals(this.additionalData, modifyResponse.additionalData) - && Objects.equals(this.pspReference, modifyResponse.pspReference) - && Objects.equals(this.response, modifyResponse.response); + return Objects.equals(this.additionalData, modifyResponse.additionalData) && + Objects.equals(this.pspReference, modifyResponse.pspReference) && + Objects.equals(this.response, modifyResponse.response); } @Override @@ -197,7 +186,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -206,7 +196,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ModifyResponse given an JSON string * * @param jsonString JSON string @@ -216,12 +206,11 @@ private String toIndentedString(Object o) { public static ModifyResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ModifyResponse.class); } - - /** - * Convert an instance of ModifyResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ModifyResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/Name.java b/src/main/java/com/adyen/model/payout/Name.java index f323570df..ceb4c09f7 100644 --- a/src/main/java/com/adyen/model/payout/Name.java +++ b/src/main/java/com/adyen/model/payout/Name.java @@ -2,23 +2,36 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Name */ -@JsonPropertyOrder({Name.JSON_PROPERTY_FIRST_NAME, Name.JSON_PROPERTY_LAST_NAME}) + +/** + * Name + */ +@JsonPropertyOrder({ + Name.JSON_PROPERTY_FIRST_NAME, + Name.JSON_PROPERTY_LAST_NAME +}) + public class Name { public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; private String firstName; @@ -26,7 +39,8 @@ public class Name { public static final String JSON_PROPERTY_LAST_NAME = "lastName"; private String lastName; - public Name() {} + public Name() { + } /** * The first name. @@ -41,7 +55,6 @@ public Name firstName(String firstName) { /** * The first name. - * * @return firstName The first name. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @@ -74,7 +87,6 @@ public Name lastName(String lastName) { /** * The last name. - * * @return lastName The last name. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @@ -94,7 +106,9 @@ public void setLastName(String lastName) { this.lastName = lastName; } - /** Return true if this Name object is equal to o. */ + /** + * Return true if this Name object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -104,8 +118,8 @@ public boolean equals(Object o) { return false; } Name name = (Name) o; - return Objects.equals(this.firstName, name.firstName) - && Objects.equals(this.lastName, name.lastName); + return Objects.equals(this.firstName, name.firstName) && + Objects.equals(this.lastName, name.lastName); } @Override @@ -124,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Name given an JSON string * * @param jsonString JSON string @@ -143,12 +158,11 @@ private String toIndentedString(Object o) { public static Name fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Name.class); } - - /** - * Convert an instance of Name to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Name to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/PayoutRequest.java b/src/main/java/com/adyen/model/payout/PayoutRequest.java index 87741f8be..5bcc53059 100644 --- a/src/main/java/com/adyen/model/payout/PayoutRequest.java +++ b/src/main/java/com/adyen/model/payout/PayoutRequest.java @@ -2,26 +2,37 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.payout.Address; +import com.adyen.model.payout.Amount; +import com.adyen.model.payout.Card; +import com.adyen.model.payout.FundSource; +import com.adyen.model.payout.Name; +import com.adyen.model.payout.Recurring; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PayoutRequest */ +/** + * PayoutRequest + */ @JsonPropertyOrder({ PayoutRequest.JSON_PROPERTY_AMOUNT, PayoutRequest.JSON_PROPERTY_BILLING_ADDRESS, @@ -38,6 +49,7 @@ PayoutRequest.JSON_PROPERTY_SHOPPER_REFERENCE, PayoutRequest.JSON_PROPERTY_TELEPHONE_NUMBER }) + public class PayoutRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -63,27 +75,17 @@ public class PayoutRequest { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = - "selectedRecurringDetailReference"; + public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = "selectedRecurringDetailReference"; private String selectedRecurringDetailReference; public static final String JSON_PROPERTY_SHOPPER_EMAIL = "shopperEmail"; private String shopperEmail; /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ public enum ShopperInteractionEnum { + ECOMMERCE(String.valueOf("Ecommerce")), CONTAUTH(String.valueOf("ContAuth")), @@ -97,7 +99,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -118,11 +120,7 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ShopperInteractionEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -139,12 +137,13 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_TELEPHONE_NUMBER = "telephoneNumber"; private String telephoneNumber; - public PayoutRequest() {} + public PayoutRequest() { + } /** * amount * - * @param amount + * @param amount * @return the current {@code PayoutRequest} instance, allowing for method chaining */ public PayoutRequest amount(Amount amount) { @@ -154,8 +153,7 @@ public PayoutRequest amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -166,7 +164,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,7 +175,7 @@ public void setAmount(Amount amount) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code PayoutRequest} instance, allowing for method chaining */ public PayoutRequest billingAddress(Address billingAddress) { @@ -187,8 +185,7 @@ public PayoutRequest billingAddress(Address billingAddress) { /** * Get billingAddress - * - * @return billingAddress + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -199,7 +196,7 @@ public Address getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -210,7 +207,7 @@ public void setBillingAddress(Address billingAddress) { /** * card * - * @param card + * @param card * @return the current {@code PayoutRequest} instance, allowing for method chaining */ public PayoutRequest card(Card card) { @@ -220,8 +217,7 @@ public PayoutRequest card(Card card) { /** * Get card - * - * @return card + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,7 +228,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -241,11 +237,9 @@ public void setCard(Card card) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or - * negative. + * An integer value that is added to the normal fraud score. The value can be either positive or negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be - * either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. * @return the current {@code PayoutRequest} instance, allowing for method chaining */ public PayoutRequest fraudOffset(Integer fraudOffset) { @@ -254,11 +248,8 @@ public PayoutRequest fraudOffset(Integer fraudOffset) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or - * negative. - * - * @return fraudOffset An integer value that is added to the normal fraud score. The value can be - * either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + * @return fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -267,11 +258,9 @@ public Integer getFraudOffset() { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or - * negative. + * An integer value that is added to the normal fraud score. The value can be either positive or negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be - * either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -282,7 +271,7 @@ public void setFraudOffset(Integer fraudOffset) { /** * fundSource * - * @param fundSource + * @param fundSource * @return the current {@code PayoutRequest} instance, allowing for method chaining */ public PayoutRequest fundSource(FundSource fundSource) { @@ -292,8 +281,7 @@ public PayoutRequest fundSource(FundSource fundSource) { /** * Get fundSource - * - * @return fundSource + * @return fundSource */ @JsonProperty(JSON_PROPERTY_FUND_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -304,7 +292,7 @@ public FundSource getFundSource() { /** * fundSource * - * @param fundSource + * @param fundSource */ @JsonProperty(JSON_PROPERTY_FUND_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -315,8 +303,7 @@ public void setFundSource(FundSource fundSource) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. * @return the current {@code PayoutRequest} instance, allowing for method chaining */ public PayoutRequest merchantAccount(String merchantAccount) { @@ -326,9 +313,7 @@ public PayoutRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * - * @return merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @return merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -339,8 +324,7 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -351,7 +335,7 @@ public void setMerchantAccount(String merchantAccount) { /** * recurring * - * @param recurring + * @param recurring * @return the current {@code PayoutRequest} instance, allowing for method chaining */ public PayoutRequest recurring(Recurring recurring) { @@ -361,8 +345,7 @@ public PayoutRequest recurring(Recurring recurring) { /** * Get recurring - * - * @return recurring + * @return recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -373,7 +356,7 @@ public Recurring getRecurring() { /** * recurring * - * @param recurring + * @param recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -382,15 +365,9 @@ public void setRecurring(Recurring recurring) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * @return the current {@code PayoutRequest} instance, allowing for method chaining */ public PayoutRequest reference(String reference) { @@ -399,15 +376,8 @@ public PayoutRequest reference(String reference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. - * - * @return reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @return reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -416,15 +386,9 @@ public String getReference() { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -433,12 +397,9 @@ public void setReference(String reference) { } /** - * The `recurringDetailReference` you want to use for this payment. The value - * `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. * - * @param selectedRecurringDetailReference The `recurringDetailReference` you want to - * use for this payment. The value `LATEST` can be used to select the most recently - * stored recurring detail. + * @param selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. * @return the current {@code PayoutRequest} instance, allowing for method chaining */ public PayoutRequest selectedRecurringDetailReference(String selectedRecurringDetailReference) { @@ -447,12 +408,8 @@ public PayoutRequest selectedRecurringDetailReference(String selectedRecurringDe } /** - * The `recurringDetailReference` you want to use for this payment. The value - * `LATEST` can be used to select the most recently stored recurring detail. - * - * @return selectedRecurringDetailReference The `recurringDetailReference` you want to - * use for this payment. The value `LATEST` can be used to select the most recently - * stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * @return selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -461,12 +418,9 @@ public String getSelectedRecurringDetailReference() { } /** - * The `recurringDetailReference` you want to use for this payment. The value - * `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. * - * @param selectedRecurringDetailReference The `recurringDetailReference` you want to - * use for this payment. The value `LATEST` can be used to select the most recently - * stored recurring detail. + * @param selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -475,13 +429,9 @@ public void setSelectedRecurringDetailReference(String selectedRecurringDetailRe } /** - * The shopper's email address. We recommend that you provide this data, as it is used in - * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 - * authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, - * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that - * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. * @return the current {@code PayoutRequest} instance, allowing for method chaining */ public PayoutRequest shopperEmail(String shopperEmail) { @@ -490,13 +440,8 @@ public PayoutRequest shopperEmail(String shopperEmail) { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in - * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 - * authentication if you did not include the `telephoneNumber`. - * - * @return shopperEmail The shopper's email address. We recommend that you provide this data, - * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that - * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @return shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -505,13 +450,9 @@ public String getShopperEmail() { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in - * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 - * authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, - * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that - * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -520,30 +461,9 @@ public void setShopperEmail(String shopperEmail) { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. * @return the current {@code PayoutRequest} instance, allowing for method chaining */ public PayoutRequest shopperInteraction(ShopperInteractionEnum shopperInteraction) { @@ -552,30 +472,8 @@ public PayoutRequest shopperInteraction(ShopperInteractionEnum shopperInteractio } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. - * - * @return shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * @return shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -584,30 +482,9 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -618,7 +495,7 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code PayoutRequest} instance, allowing for method chaining */ public PayoutRequest shopperName(Name shopperName) { @@ -628,8 +505,7 @@ public PayoutRequest shopperName(Name shopperName) { /** * Get shopperName - * - * @return shopperName + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -640,7 +516,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -649,15 +525,9 @@ public void setShopperName(Name shopperName) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example - * user ID or account ID. The value is case-sensitive and must be at least three characters. > - * Your reference must not include personally identifiable information (PII) such as name or email - * address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify - * this shopper, for example user ID or account ID. The value is case-sensitive and must be at - * least three characters. > Your reference must not include personally identifiable - * information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * @return the current {@code PayoutRequest} instance, allowing for method chaining */ public PayoutRequest shopperReference(String shopperReference) { @@ -666,15 +536,8 @@ public PayoutRequest shopperReference(String shopperReference) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example - * user ID or account ID. The value is case-sensitive and must be at least three characters. > - * Your reference must not include personally identifiable information (PII) such as name or email - * address. - * - * @return shopperReference Required for recurring payments. Your reference to uniquely identify - * this shopper, for example user ID or account ID. The value is case-sensitive and must be at - * least three characters. > Your reference must not include personally identifiable - * information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @return shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -683,15 +546,9 @@ public String getShopperReference() { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example - * user ID or account ID. The value is case-sensitive and must be at least three characters. > - * Your reference must not include personally identifiable information (PII) such as name or email - * address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify - * this shopper, for example user ID or account ID. The value is case-sensitive and must be at - * least three characters. > Your reference must not include personally identifiable - * information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -700,17 +557,9 @@ public void setShopperReference(String shopperReference) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus - * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * @return the current {@code PayoutRequest} instance, allowing for method chaining */ public PayoutRequest telephoneNumber(String telephoneNumber) { @@ -719,17 +568,8 @@ public PayoutRequest telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. - * - * @return telephoneNumber The shopper's telephone number. The phone number must include a - * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @return telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -738,17 +578,9 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country - * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus - * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the - * value you provide does not follow the guidelines, we do not submit it for authentication. - * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you - * did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -756,7 +588,9 @@ public void setTelephoneNumber(String telephoneNumber) { this.telephoneNumber = telephoneNumber; } - /** Return true if this PayoutRequest object is equal to o. */ + /** + * Return true if this PayoutRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -766,40 +600,25 @@ public boolean equals(Object o) { return false; } PayoutRequest payoutRequest = (PayoutRequest) o; - return Objects.equals(this.amount, payoutRequest.amount) - && Objects.equals(this.billingAddress, payoutRequest.billingAddress) - && Objects.equals(this.card, payoutRequest.card) - && Objects.equals(this.fraudOffset, payoutRequest.fraudOffset) - && Objects.equals(this.fundSource, payoutRequest.fundSource) - && Objects.equals(this.merchantAccount, payoutRequest.merchantAccount) - && Objects.equals(this.recurring, payoutRequest.recurring) - && Objects.equals(this.reference, payoutRequest.reference) - && Objects.equals( - this.selectedRecurringDetailReference, payoutRequest.selectedRecurringDetailReference) - && Objects.equals(this.shopperEmail, payoutRequest.shopperEmail) - && Objects.equals(this.shopperInteraction, payoutRequest.shopperInteraction) - && Objects.equals(this.shopperName, payoutRequest.shopperName) - && Objects.equals(this.shopperReference, payoutRequest.shopperReference) - && Objects.equals(this.telephoneNumber, payoutRequest.telephoneNumber); + return Objects.equals(this.amount, payoutRequest.amount) && + Objects.equals(this.billingAddress, payoutRequest.billingAddress) && + Objects.equals(this.card, payoutRequest.card) && + Objects.equals(this.fraudOffset, payoutRequest.fraudOffset) && + Objects.equals(this.fundSource, payoutRequest.fundSource) && + Objects.equals(this.merchantAccount, payoutRequest.merchantAccount) && + Objects.equals(this.recurring, payoutRequest.recurring) && + Objects.equals(this.reference, payoutRequest.reference) && + Objects.equals(this.selectedRecurringDetailReference, payoutRequest.selectedRecurringDetailReference) && + Objects.equals(this.shopperEmail, payoutRequest.shopperEmail) && + Objects.equals(this.shopperInteraction, payoutRequest.shopperInteraction) && + Objects.equals(this.shopperName, payoutRequest.shopperName) && + Objects.equals(this.shopperReference, payoutRequest.shopperReference) && + Objects.equals(this.telephoneNumber, payoutRequest.telephoneNumber); } @Override public int hashCode() { - return Objects.hash( - amount, - billingAddress, - card, - fraudOffset, - fundSource, - merchantAccount, - recurring, - reference, - selectedRecurringDetailReference, - shopperEmail, - shopperInteraction, - shopperName, - shopperReference, - telephoneNumber); + return Objects.hash(amount, billingAddress, card, fraudOffset, fundSource, merchantAccount, recurring, reference, selectedRecurringDetailReference, shopperEmail, shopperInteraction, shopperName, shopperReference, telephoneNumber); } @Override @@ -814,9 +633,7 @@ public String toString() { sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" recurring: ").append(toIndentedString(recurring)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); - sb.append(" selectedRecurringDetailReference: ") - .append(toIndentedString(selectedRecurringDetailReference)) - .append("\n"); + sb.append(" selectedRecurringDetailReference: ").append(toIndentedString(selectedRecurringDetailReference)).append("\n"); sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); sb.append(" shopperInteraction: ").append(toIndentedString(shopperInteraction)).append("\n"); sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); @@ -827,7 +644,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -836,7 +654,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PayoutRequest given an JSON string * * @param jsonString JSON string @@ -846,12 +664,11 @@ private String toIndentedString(Object o) { public static PayoutRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayoutRequest.class); } - - /** - * Convert an instance of PayoutRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PayoutRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/PayoutResponse.java b/src/main/java/com/adyen/model/payout/PayoutResponse.java index 682ede14b..fc8c11e6e 100644 --- a/src/main/java/com/adyen/model/payout/PayoutResponse.java +++ b/src/main/java/com/adyen/model/payout/PayoutResponse.java @@ -2,28 +2,35 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.payout.Amount; +import com.adyen.model.payout.FraudResult; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** PayoutResponse */ + +/** + * PayoutResponse + */ @JsonPropertyOrder({ PayoutResponse.JSON_PROPERTY_ADDITIONAL_DATA, PayoutResponse.JSON_PROPERTY_AUTH_CODE, @@ -37,6 +44,7 @@ PayoutResponse.JSON_PROPERTY_REFUSAL_REASON, PayoutResponse.JSON_PROPERTY_RESULT_CODE }) + public class PayoutResponse { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -69,35 +77,10 @@ public class PayoutResponse { private String refusalReason; /** - * The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. - * Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – - * The transaction does not require 3D Secure authentication. Returned for [standalone - * authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * * **Authorised** – The payment was successfully authorised. This state serves as an indicator - * to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – - * Indicates the payment has been cancelled (either by the shopper or the merchant) before - * processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires - * further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 - * transactions. * **Error** – There was an error when the payment was being processed. The reason - * is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – - * The issuer requires the shopper's device fingerprint before the payment can be - * authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment - * has been authorised for a partial amount. This happens for card payments when the merchant - * supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – - * Indicates that it is not possible to obtain the final status of the payment. This can happen if - * the systems providing final status information for the payment are unavailable, or if the - * shopper needs to take further action to complete the payment. * **PresentToShopper** – - * Indicates that the response contains additional information that you need to present to a - * shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment - * has successfully been received by Adyen, and will be processed. This is the initial state for - * all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external - * web page or app to complete the authorisation. * **Refused** – Indicates the payment was - * refused. The reason is given in the `refusalReason` field. This is a final state. + * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. */ public enum ResultCodeEnum { + AUTHENTICATIONFINISHED(String.valueOf("AuthenticationFinished")), AUTHENTICATIONNOTREQUIRED(String.valueOf("AuthenticationNotRequired")), @@ -131,7 +114,7 @@ public enum ResultCodeEnum { private String value; ResultCodeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -152,11 +135,7 @@ public static ResultCodeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ResultCodeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ResultCodeEnum.values())); + LOG.warning("ResultCodeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResultCodeEnum.values())); return null; } } @@ -164,15 +143,13 @@ public static ResultCodeEnum fromValue(String value) { public static final String JSON_PROPERTY_RESULT_CODE = "resultCode"; private ResultCodeEnum resultCode; - public PayoutResponse() {} + public PayoutResponse() { + } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first: Go to **Customer Area** > **Developers** > - * **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. * @return the current {@code PayoutResponse} instance, allowing for method chaining */ public PayoutResponse additionalData(Map additionalData) { @@ -189,12 +166,8 @@ public PayoutResponse putAdditionalDataItem(String key, String additionalDataIte } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first: Go to **Customer Area** > **Developers** > **Additional data**. - * - * @return additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first: Go to **Customer Area** > **Developers** > - * **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * @return additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -203,12 +176,9 @@ public Map getAdditionalData() { } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first: Go to **Customer Area** > **Developers** > - * **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -217,12 +187,9 @@ public void setAdditionalData(Map additionalData) { } /** - * Authorisation code: * When the payment is authorised successfully, this field holds the - * authorisation code for the payment. * When the payment is not authorised, this field is empty. + * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. * - * @param authCode Authorisation code: * When the payment is authorised successfully, this field - * holds the authorisation code for the payment. * When the payment is not authorised, this - * field is empty. + * @param authCode Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. * @return the current {@code PayoutResponse} instance, allowing for method chaining */ public PayoutResponse authCode(String authCode) { @@ -231,12 +198,8 @@ public PayoutResponse authCode(String authCode) { } /** - * Authorisation code: * When the payment is authorised successfully, this field holds the - * authorisation code for the payment. * When the payment is not authorised, this field is empty. - * - * @return authCode Authorisation code: * When the payment is authorised successfully, this field - * holds the authorisation code for the payment. * When the payment is not authorised, this - * field is empty. + * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * @return authCode Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -245,12 +208,9 @@ public String getAuthCode() { } /** - * Authorisation code: * When the payment is authorised successfully, this field holds the - * authorisation code for the payment. * When the payment is not authorised, this field is empty. + * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. * - * @param authCode Authorisation code: * When the payment is authorised successfully, this field - * holds the authorisation code for the payment. * When the payment is not authorised, this - * field is empty. + * @param authCode Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -261,7 +221,7 @@ public void setAuthCode(String authCode) { /** * dccAmount * - * @param dccAmount + * @param dccAmount * @return the current {@code PayoutResponse} instance, allowing for method chaining */ public PayoutResponse dccAmount(Amount dccAmount) { @@ -271,8 +231,7 @@ public PayoutResponse dccAmount(Amount dccAmount) { /** * Get dccAmount - * - * @return dccAmount + * @return dccAmount */ @JsonProperty(JSON_PROPERTY_DCC_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -283,7 +242,7 @@ public Amount getDccAmount() { /** * dccAmount * - * @param dccAmount + * @param dccAmount */ @JsonProperty(JSON_PROPERTY_DCC_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -292,13 +251,9 @@ public void setDccAmount(Amount dccAmount) { } /** - * Cryptographic signature used to verify `dccQuote`. > This value only applies if - * you have implemented Dynamic Currency Conversion. For more information, [contact - * Support](https://www.adyen.help/hc/en-us/requests/new). + * Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param dccSignature Cryptographic signature used to verify `dccQuote`. > This - * value only applies if you have implemented Dynamic Currency Conversion. For more - * information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @param dccSignature Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * @return the current {@code PayoutResponse} instance, allowing for method chaining */ public PayoutResponse dccSignature(String dccSignature) { @@ -307,13 +262,8 @@ public PayoutResponse dccSignature(String dccSignature) { } /** - * Cryptographic signature used to verify `dccQuote`. > This value only applies if - * you have implemented Dynamic Currency Conversion. For more information, [contact - * Support](https://www.adyen.help/hc/en-us/requests/new). - * - * @return dccSignature Cryptographic signature used to verify `dccQuote`. > This - * value only applies if you have implemented Dynamic Currency Conversion. For more - * information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @return dccSignature Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_DCC_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -322,13 +272,9 @@ public String getDccSignature() { } /** - * Cryptographic signature used to verify `dccQuote`. > This value only applies if - * you have implemented Dynamic Currency Conversion. For more information, [contact - * Support](https://www.adyen.help/hc/en-us/requests/new). + * Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param dccSignature Cryptographic signature used to verify `dccQuote`. > This - * value only applies if you have implemented Dynamic Currency Conversion. For more - * information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @param dccSignature Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_DCC_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -339,7 +285,7 @@ public void setDccSignature(String dccSignature) { /** * fraudResult * - * @param fraudResult + * @param fraudResult * @return the current {@code PayoutResponse} instance, allowing for method chaining */ public PayoutResponse fraudResult(FraudResult fraudResult) { @@ -349,8 +295,7 @@ public PayoutResponse fraudResult(FraudResult fraudResult) { /** * Get fraudResult - * - * @return fraudResult + * @return fraudResult */ @JsonProperty(JSON_PROPERTY_FRAUD_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -361,7 +306,7 @@ public FraudResult getFraudResult() { /** * fraudResult * - * @param fraudResult + * @param fraudResult */ @JsonProperty(JSON_PROPERTY_FRAUD_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -370,11 +315,9 @@ public void setFraudResult(FraudResult fraudResult) { } /** - * The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this - * URL. + * The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL. * - * @param issuerUrl The URL to direct the shopper to. > In case of SecurePlus, do not redirect - * a shopper to this URL. + * @param issuerUrl The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL. * @return the current {@code PayoutResponse} instance, allowing for method chaining */ public PayoutResponse issuerUrl(String issuerUrl) { @@ -383,11 +326,8 @@ public PayoutResponse issuerUrl(String issuerUrl) { } /** - * The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this - * URL. - * - * @return issuerUrl The URL to direct the shopper to. > In case of SecurePlus, do not redirect - * a shopper to this URL. + * The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL. + * @return issuerUrl The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL. */ @JsonProperty(JSON_PROPERTY_ISSUER_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -396,11 +336,9 @@ public String getIssuerUrl() { } /** - * The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this - * URL. + * The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL. * - * @param issuerUrl The URL to direct the shopper to. > In case of SecurePlus, do not redirect - * a shopper to this URL. + * @param issuerUrl The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL. */ @JsonProperty(JSON_PROPERTY_ISSUER_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -421,7 +359,6 @@ public PayoutResponse md(String md) { /** * The payment session. - * * @return md The payment session. */ @JsonProperty(JSON_PROPERTY_MD) @@ -442,15 +379,9 @@ public void setMd(String md) { } /** - * The 3D request data for the issuer. If the value is - * **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it - * in the `/authorise3D` request. For more information, see [3D - * Secure](https://docs.adyen.com/classic-integration/3d-secure). + * The 3D request data for the issuer. If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/classic-integration/3d-secure). * - * @param paRequest The 3D request data for the issuer. If the value is - * **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass - * it in the `/authorise3D` request. For more information, see [3D - * Secure](https://docs.adyen.com/classic-integration/3d-secure). + * @param paRequest The 3D request data for the issuer. If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/classic-integration/3d-secure). * @return the current {@code PayoutResponse} instance, allowing for method chaining */ public PayoutResponse paRequest(String paRequest) { @@ -459,15 +390,8 @@ public PayoutResponse paRequest(String paRequest) { } /** - * The 3D request data for the issuer. If the value is - * **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it - * in the `/authorise3D` request. For more information, see [3D - * Secure](https://docs.adyen.com/classic-integration/3d-secure). - * - * @return paRequest The 3D request data for the issuer. If the value is - * **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass - * it in the `/authorise3D` request. For more information, see [3D - * Secure](https://docs.adyen.com/classic-integration/3d-secure). + * The 3D request data for the issuer. If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/classic-integration/3d-secure). + * @return paRequest The 3D request data for the issuer. If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/classic-integration/3d-secure). */ @JsonProperty(JSON_PROPERTY_PA_REQUEST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -476,15 +400,9 @@ public String getPaRequest() { } /** - * The 3D request data for the issuer. If the value is - * **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it - * in the `/authorise3D` request. For more information, see [3D - * Secure](https://docs.adyen.com/classic-integration/3d-secure). + * The 3D request data for the issuer. If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/classic-integration/3d-secure). * - * @param paRequest The 3D request data for the issuer. If the value is - * **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass - * it in the `/authorise3D` request. For more information, see [3D - * Secure](https://docs.adyen.com/classic-integration/3d-secure). + * @param paRequest The 3D request data for the issuer. If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/classic-integration/3d-secure). */ @JsonProperty(JSON_PROPERTY_PA_REQUEST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -493,11 +411,9 @@ public void setPaRequest(String paRequest) { } /** - * Adyen's 16-character reference associated with the transaction/request. This value is - * globally unique; quote it when communicating with us about this request. + * Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character reference associated with the transaction/request. - * This value is globally unique; quote it when communicating with us about this request. + * @param pspReference Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. * @return the current {@code PayoutResponse} instance, allowing for method chaining */ public PayoutResponse pspReference(String pspReference) { @@ -506,12 +422,8 @@ public PayoutResponse pspReference(String pspReference) { } /** - * Adyen's 16-character reference associated with the transaction/request. This value is - * globally unique; quote it when communicating with us about this request. - * - * @return pspReference Adyen's 16-character reference associated with the - * transaction/request. This value is globally unique; quote it when communicating with us - * about this request. + * Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @return pspReference Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -520,11 +432,9 @@ public String getPspReference() { } /** - * Adyen's 16-character reference associated with the transaction/request. This value is - * globally unique; quote it when communicating with us about this request. + * Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character reference associated with the transaction/request. - * This value is globally unique; quote it when communicating with us about this request. + * @param pspReference Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -533,17 +443,9 @@ public void setPspReference(String pspReference) { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this - * field holds Adyen's mapped reason for the refusal or a description of the error. When a - * transaction fails, the authorisation response includes `resultCode` and - * `refusalReason` values. For more information, see [Refusal - * reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). * - * @param refusalReason If the payment's authorisation is refused or an error occurs during - * authorisation, this field holds Adyen's mapped reason for the refusal or a description - * of the error. When a transaction fails, the authorisation response includes - * `resultCode` and `refusalReason` values. For more information, see - * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @param refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). * @return the current {@code PayoutResponse} instance, allowing for method chaining */ public PayoutResponse refusalReason(String refusalReason) { @@ -552,17 +454,8 @@ public PayoutResponse refusalReason(String refusalReason) { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this - * field holds Adyen's mapped reason for the refusal or a description of the error. When a - * transaction fails, the authorisation response includes `resultCode` and - * `refusalReason` values. For more information, see [Refusal - * reasons](https://docs.adyen.com/development-resources/refusal-reasons). - * - * @return refusalReason If the payment's authorisation is refused or an error occurs during - * authorisation, this field holds Adyen's mapped reason for the refusal or a description - * of the error. When a transaction fails, the authorisation response includes - * `resultCode` and `refusalReason` values. For more information, see - * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @return refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -571,17 +464,9 @@ public String getRefusalReason() { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this - * field holds Adyen's mapped reason for the refusal or a description of the error. When a - * transaction fails, the authorisation response includes `resultCode` and - * `refusalReason` values. For more information, see [Refusal - * reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). * - * @param refusalReason If the payment's authorisation is refused or an error occurs during - * authorisation, this field holds Adyen's mapped reason for the refusal or a description - * of the error. When a transaction fails, the authorisation response includes - * `resultCode` and `refusalReason` values. For more information, see - * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @param refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -590,62 +475,9 @@ public void setRefusalReason(String refusalReason) { } /** - * The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. - * Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – - * The transaction does not require 3D Secure authentication. Returned for [standalone - * authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * * **Authorised** – The payment was successfully authorised. This state serves as an indicator - * to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – - * Indicates the payment has been cancelled (either by the shopper or the merchant) before - * processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires - * further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 - * transactions. * **Error** – There was an error when the payment was being processed. The reason - * is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – - * The issuer requires the shopper's device fingerprint before the payment can be - * authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment - * has been authorised for a partial amount. This happens for card payments when the merchant - * supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – - * Indicates that it is not possible to obtain the final status of the payment. This can happen if - * the systems providing final status information for the payment are unavailable, or if the - * shopper needs to take further action to complete the payment. * **PresentToShopper** – - * Indicates that the response contains additional information that you need to present to a - * shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment - * has successfully been received by Adyen, and will be processed. This is the initial state for - * all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external - * web page or app to complete the authorisation. * **Refused** – Indicates the payment was - * refused. The reason is given in the `refusalReason` field. This is a final state. + * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. * - * @param resultCode The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure - * 2. Returned for 3D Secure 2 authentication-only transactions. * - * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. - * Returned for [standalone authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * * **Authorised** – The payment was successfully authorised. This state serves as an - * indicator to proceed with the delivery of goods and services. This is a final state. * - * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the - * merchant) before processing was completed. This is a final state. * **ChallengeShopper** – - * The issuer requires further shopper interaction before the payment can be authenticated. - * Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment - * was being processed. The reason is given in the `refusalReason` field. This is a - * final state. * **IdentifyShopper** – The issuer requires the shopper's device - * fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. - * * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This - * happens for card payments when the merchant supports Partial Authorisations and the - * cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to - * obtain the final status of the payment. This can happen if the systems providing final - * status information for the payment are unavailable, or if the shopper needs to take further - * action to complete the payment. * **PresentToShopper** – Indicates that the response - * contains additional information that you need to present to a shopper, so that they can use - * it to complete a payment. * **Received** – Indicates the payment has successfully been - * received by Adyen, and will be processed. This is the initial state for all payments. * - * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or - * app to complete the authorisation. * **Refused** – Indicates the payment was refused. The - * reason is given in the `refusalReason` field. This is a final state. + * @param resultCode The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. * @return the current {@code PayoutResponse} instance, allowing for method chaining */ public PayoutResponse resultCode(ResultCodeEnum resultCode) { @@ -654,62 +486,8 @@ public PayoutResponse resultCode(ResultCodeEnum resultCode) { } /** - * The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. - * Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – - * The transaction does not require 3D Secure authentication. Returned for [standalone - * authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * * **Authorised** – The payment was successfully authorised. This state serves as an indicator - * to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – - * Indicates the payment has been cancelled (either by the shopper or the merchant) before - * processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires - * further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 - * transactions. * **Error** – There was an error when the payment was being processed. The reason - * is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – - * The issuer requires the shopper's device fingerprint before the payment can be - * authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment - * has been authorised for a partial amount. This happens for card payments when the merchant - * supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – - * Indicates that it is not possible to obtain the final status of the payment. This can happen if - * the systems providing final status information for the payment are unavailable, or if the - * shopper needs to take further action to complete the payment. * **PresentToShopper** – - * Indicates that the response contains additional information that you need to present to a - * shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment - * has successfully been received by Adyen, and will be processed. This is the initial state for - * all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external - * web page or app to complete the authorisation. * **Refused** – Indicates the payment was - * refused. The reason is given in the `refusalReason` field. This is a final state. - * - * @return resultCode The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure - * 2. Returned for 3D Secure 2 authentication-only transactions. * - * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. - * Returned for [standalone authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * * **Authorised** – The payment was successfully authorised. This state serves as an - * indicator to proceed with the delivery of goods and services. This is a final state. * - * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the - * merchant) before processing was completed. This is a final state. * **ChallengeShopper** – - * The issuer requires further shopper interaction before the payment can be authenticated. - * Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment - * was being processed. The reason is given in the `refusalReason` field. This is a - * final state. * **IdentifyShopper** – The issuer requires the shopper's device - * fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. - * * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This - * happens for card payments when the merchant supports Partial Authorisations and the - * cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to - * obtain the final status of the payment. This can happen if the systems providing final - * status information for the payment are unavailable, or if the shopper needs to take further - * action to complete the payment. * **PresentToShopper** – Indicates that the response - * contains additional information that you need to present to a shopper, so that they can use - * it to complete a payment. * **Received** – Indicates the payment has successfully been - * received by Adyen, and will be processed. This is the initial state for all payments. * - * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or - * app to complete the authorisation. * **Refused** – Indicates the payment was refused. The - * reason is given in the `refusalReason` field. This is a final state. + * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + * @return resultCode The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -718,62 +496,9 @@ public ResultCodeEnum getResultCode() { } /** - * The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. - * Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – - * The transaction does not require 3D Secure authentication. Returned for [standalone - * authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * * **Authorised** – The payment was successfully authorised. This state serves as an indicator - * to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – - * Indicates the payment has been cancelled (either by the shopper or the merchant) before - * processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires - * further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 - * transactions. * **Error** – There was an error when the payment was being processed. The reason - * is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – - * The issuer requires the shopper's device fingerprint before the payment can be - * authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment - * has been authorised for a partial amount. This happens for card payments when the merchant - * supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – - * Indicates that it is not possible to obtain the final status of the payment. This can happen if - * the systems providing final status information for the payment are unavailable, or if the - * shopper needs to take further action to complete the payment. * **PresentToShopper** – - * Indicates that the response contains additional information that you need to present to a - * shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment - * has successfully been received by Adyen, and will be processed. This is the initial state for - * all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external - * web page or app to complete the authorisation. * **Refused** – Indicates the payment was - * refused. The reason is given in the `refusalReason` field. This is a final state. + * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. * - * @param resultCode The result of the payment. For more information, see [Result - * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * - * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure - * 2. Returned for 3D Secure 2 authentication-only transactions. * - * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. - * Returned for [standalone authentication-only - * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). - * * **Authorised** – The payment was successfully authorised. This state serves as an - * indicator to proceed with the delivery of goods and services. This is a final state. * - * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the - * merchant) before processing was completed. This is a final state. * **ChallengeShopper** – - * The issuer requires further shopper interaction before the payment can be authenticated. - * Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment - * was being processed. The reason is given in the `refusalReason` field. This is a - * final state. * **IdentifyShopper** – The issuer requires the shopper's device - * fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. - * * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This - * happens for card payments when the merchant supports Partial Authorisations and the - * cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to - * obtain the final status of the payment. This can happen if the systems providing final - * status information for the payment are unavailable, or if the shopper needs to take further - * action to complete the payment. * **PresentToShopper** – Indicates that the response - * contains additional information that you need to present to a shopper, so that they can use - * it to complete a payment. * **Received** – Indicates the payment has successfully been - * received by Adyen, and will be processed. This is the initial state for all payments. * - * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or - * app to complete the authorisation. * **Refused** – Indicates the payment was refused. The - * reason is given in the `refusalReason` field. This is a final state. + * @param resultCode The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -781,7 +506,9 @@ public void setResultCode(ResultCodeEnum resultCode) { this.resultCode = resultCode; } - /** Return true if this PayoutResponse object is equal to o. */ + /** + * Return true if this PayoutResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -791,33 +518,22 @@ public boolean equals(Object o) { return false; } PayoutResponse payoutResponse = (PayoutResponse) o; - return Objects.equals(this.additionalData, payoutResponse.additionalData) - && Objects.equals(this.authCode, payoutResponse.authCode) - && Objects.equals(this.dccAmount, payoutResponse.dccAmount) - && Objects.equals(this.dccSignature, payoutResponse.dccSignature) - && Objects.equals(this.fraudResult, payoutResponse.fraudResult) - && Objects.equals(this.issuerUrl, payoutResponse.issuerUrl) - && Objects.equals(this.md, payoutResponse.md) - && Objects.equals(this.paRequest, payoutResponse.paRequest) - && Objects.equals(this.pspReference, payoutResponse.pspReference) - && Objects.equals(this.refusalReason, payoutResponse.refusalReason) - && Objects.equals(this.resultCode, payoutResponse.resultCode); + return Objects.equals(this.additionalData, payoutResponse.additionalData) && + Objects.equals(this.authCode, payoutResponse.authCode) && + Objects.equals(this.dccAmount, payoutResponse.dccAmount) && + Objects.equals(this.dccSignature, payoutResponse.dccSignature) && + Objects.equals(this.fraudResult, payoutResponse.fraudResult) && + Objects.equals(this.issuerUrl, payoutResponse.issuerUrl) && + Objects.equals(this.md, payoutResponse.md) && + Objects.equals(this.paRequest, payoutResponse.paRequest) && + Objects.equals(this.pspReference, payoutResponse.pspReference) && + Objects.equals(this.refusalReason, payoutResponse.refusalReason) && + Objects.equals(this.resultCode, payoutResponse.resultCode); } @Override public int hashCode() { - return Objects.hash( - additionalData, - authCode, - dccAmount, - dccSignature, - fraudResult, - issuerUrl, - md, - paRequest, - pspReference, - refusalReason, - resultCode); + return Objects.hash(additionalData, authCode, dccAmount, dccSignature, fraudResult, issuerUrl, md, paRequest, pspReference, refusalReason, resultCode); } @Override @@ -840,7 +556,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -849,7 +566,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PayoutResponse given an JSON string * * @param jsonString JSON string @@ -859,12 +576,11 @@ private String toIndentedString(Object o) { public static PayoutResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayoutResponse.class); } - - /** - * Convert an instance of PayoutResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PayoutResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/Recurring.java b/src/main/java/com/adyen/model/payout/Recurring.java index daa53d17b..79ae1a7cf 100644 --- a/src/main/java/com/adyen/model/payout/Recurring.java +++ b/src/main/java/com/adyen/model/payout/Recurring.java @@ -2,27 +2,32 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** Recurring */ +/** + * Recurring + */ @JsonPropertyOrder({ Recurring.JSON_PROPERTY_CONTRACT, Recurring.JSON_PROPERTY_RECURRING_DETAIL_NAME, @@ -30,20 +35,13 @@ Recurring.JSON_PROPERTY_RECURRING_FREQUENCY, Recurring.JSON_PROPERTY_TOKEN_SERVICE }) + public class Recurring { /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment - * details can be used to initiate a one-click payment, where the shopper enters the [card - * security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a - * payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). */ public enum ContractEnum { + ONECLICK(String.valueOf("ONECLICK")), RECURRING(String.valueOf("RECURRING")), @@ -55,7 +53,7 @@ public enum ContractEnum { private String value; ContractEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -76,11 +74,7 @@ public static ContractEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ContractEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ContractEnum.values())); + LOG.warning("ContractEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ContractEnum.values())); return null; } } @@ -97,8 +91,11 @@ public static ContractEnum fromValue(String value) { public static final String JSON_PROPERTY_RECURRING_FREQUENCY = "recurringFrequency"; private String recurringFrequency; - /** The name of the token service. */ + /** + * The name of the token service. + */ public enum TokenServiceEnum { + VISATOKENSERVICE(String.valueOf("VISATOKENSERVICE")), MCTOKENSERVICE(String.valueOf("MCTOKENSERVICE")), @@ -112,7 +109,7 @@ public enum TokenServiceEnum { private String value; TokenServiceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -133,11 +130,7 @@ public static TokenServiceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TokenServiceEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TokenServiceEnum.values())); + LOG.warning("TokenServiceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TokenServiceEnum.values())); return null; } } @@ -145,30 +138,13 @@ public static TokenServiceEnum fromValue(String value) { public static final String JSON_PROPERTY_TOKEN_SERVICE = "tokenService"; private TokenServiceEnum tokenService; - public Recurring() {} + public Recurring() { + } /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment - * details can be used to initiate a one-click payment, where the shopper enters the [card - * security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a - * payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). * - * @param contract The type of recurring contract to be used. Possible values: * - * `ONECLICK` – Payment details can be used to initiate a one-click payment, where - * the shopper enters the [card security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make - * a payout](https://docs.adyen.com/online-payments/online-payouts). + * @param contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). * @return the current {@code Recurring} instance, allowing for method chaining */ public Recurring contract(ContractEnum contract) { @@ -177,27 +153,8 @@ public Recurring contract(ContractEnum contract) { } /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment - * details can be used to initiate a one-click payment, where the shopper enters the [card - * security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a - * payout](https://docs.adyen.com/online-payments/online-payouts). - * - * @return contract The type of recurring contract to be used. Possible values: * - * `ONECLICK` – Payment details can be used to initiate a one-click payment, where - * the shopper enters the [card security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make - * a payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * @return contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). */ @JsonProperty(JSON_PROPERTY_CONTRACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -206,27 +163,9 @@ public ContractEnum getContract() { } /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment - * details can be used to initiate a one-click payment, where the shopper enters the [card - * security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a - * payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). * - * @param contract The type of recurring contract to be used. Possible values: * - * `ONECLICK` – Payment details can be used to initiate a one-click payment, where - * the shopper enters the [card security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make - * a payout](https://docs.adyen.com/online-payments/online-payouts). + * @param contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). */ @JsonProperty(JSON_PROPERTY_CONTRACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -247,7 +186,6 @@ public Recurring recurringDetailName(String recurringDetailName) { /** * A descriptive name for this detail. - * * @return recurringDetailName A descriptive name for this detail. */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_NAME) @@ -270,8 +208,7 @@ public void setRecurringDetailName(String recurringDetailName) { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. * - * @param recurringExpiry Date after which no further authorisations shall be performed. Only for - * 3D Secure 2. + * @param recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. * @return the current {@code Recurring} instance, allowing for method chaining */ public Recurring recurringExpiry(OffsetDateTime recurringExpiry) { @@ -281,9 +218,7 @@ public Recurring recurringExpiry(OffsetDateTime recurringExpiry) { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. - * - * @return recurringExpiry Date after which no further authorisations shall be performed. Only for - * 3D Secure 2. + * @return recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -294,8 +229,7 @@ public OffsetDateTime getRecurringExpiry() { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. * - * @param recurringExpiry Date after which no further authorisations shall be performed. Only for - * 3D Secure 2. + * @param recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -316,7 +250,6 @@ public Recurring recurringFrequency(String recurringFrequency) { /** * Minimum number of days between authorisations. Only for 3D Secure 2. - * * @return recurringFrequency Minimum number of days between authorisations. Only for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY) @@ -349,7 +282,6 @@ public Recurring tokenService(TokenServiceEnum tokenService) { /** * The name of the token service. - * * @return tokenService The name of the token service. */ @JsonProperty(JSON_PROPERTY_TOKEN_SERVICE) @@ -369,7 +301,9 @@ public void setTokenService(TokenServiceEnum tokenService) { this.tokenService = tokenService; } - /** Return true if this Recurring object is equal to o. */ + /** + * Return true if this Recurring object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -379,17 +313,16 @@ public boolean equals(Object o) { return false; } Recurring recurring = (Recurring) o; - return Objects.equals(this.contract, recurring.contract) - && Objects.equals(this.recurringDetailName, recurring.recurringDetailName) - && Objects.equals(this.recurringExpiry, recurring.recurringExpiry) - && Objects.equals(this.recurringFrequency, recurring.recurringFrequency) - && Objects.equals(this.tokenService, recurring.tokenService); + return Objects.equals(this.contract, recurring.contract) && + Objects.equals(this.recurringDetailName, recurring.recurringDetailName) && + Objects.equals(this.recurringExpiry, recurring.recurringExpiry) && + Objects.equals(this.recurringFrequency, recurring.recurringFrequency) && + Objects.equals(this.tokenService, recurring.tokenService); } @Override public int hashCode() { - return Objects.hash( - contract, recurringDetailName, recurringExpiry, recurringFrequency, tokenService); + return Objects.hash(contract, recurringDetailName, recurringExpiry, recurringFrequency, tokenService); } @Override @@ -397,9 +330,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Recurring {\n"); sb.append(" contract: ").append(toIndentedString(contract)).append("\n"); - sb.append(" recurringDetailName: ") - .append(toIndentedString(recurringDetailName)) - .append("\n"); + sb.append(" recurringDetailName: ").append(toIndentedString(recurringDetailName)).append("\n"); sb.append(" recurringExpiry: ").append(toIndentedString(recurringExpiry)).append("\n"); sb.append(" recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n"); sb.append(" tokenService: ").append(toIndentedString(tokenService)).append("\n"); @@ -408,7 +339,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -417,7 +349,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Recurring given an JSON string * * @param jsonString JSON string @@ -427,12 +359,11 @@ private String toIndentedString(Object o) { public static Recurring fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Recurring.class); } - - /** - * Convert an instance of Recurring to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Recurring to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/ResponseAdditionalData3DSecure.java b/src/main/java/com/adyen/model/payout/ResponseAdditionalData3DSecure.java index ad9346eb0..aaffa609e 100644 --- a/src/main/java/com/adyen/model/payout/ResponseAdditionalData3DSecure.java +++ b/src/main/java/com/adyen/model/payout/ResponseAdditionalData3DSecure.java @@ -2,22 +2,31 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ResponseAdditionalData3DSecure */ + +/** + * ResponseAdditionalData3DSecure + */ @JsonPropertyOrder({ ResponseAdditionalData3DSecure.JSON_PROPERTY_CARD_HOLDER_INFO, ResponseAdditionalData3DSecure.JSON_PROPERTY_CAVV, @@ -25,6 +34,7 @@ ResponseAdditionalData3DSecure.JSON_PROPERTY_SCA_EXEMPTION_REQUESTED, ResponseAdditionalData3DSecure.JSON_PROPERTY_THREEDS2_CARD_ENROLLED }) + public class ResponseAdditionalData3DSecure { public static final String JSON_PROPERTY_CARD_HOLDER_INFO = "cardHolderInfo"; private String cardHolderInfo; @@ -41,16 +51,14 @@ public class ResponseAdditionalData3DSecure { public static final String JSON_PROPERTY_THREEDS2_CARD_ENROLLED = "threeds2.cardEnrolled"; private Boolean threeds2CardEnrolled; - public ResponseAdditionalData3DSecure() {} + public ResponseAdditionalData3DSecure() { + } /** - * Information provided by the issuer to the cardholder. If this field is present, you need to - * display this information to the cardholder. + * Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. * - * @param cardHolderInfo Information provided by the issuer to the cardholder. If this field is - * present, you need to display this information to the cardholder. - * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method - * chaining + * @param cardHolderInfo Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. + * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method chaining */ public ResponseAdditionalData3DSecure cardHolderInfo(String cardHolderInfo) { this.cardHolderInfo = cardHolderInfo; @@ -58,11 +66,8 @@ public ResponseAdditionalData3DSecure cardHolderInfo(String cardHolderInfo) { } /** - * Information provided by the issuer to the cardholder. If this field is present, you need to - * display this information to the cardholder. - * - * @return cardHolderInfo Information provided by the issuer to the cardholder. If this field is - * present, you need to display this information to the cardholder. + * Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. + * @return cardHolderInfo Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. */ @JsonProperty(JSON_PROPERTY_CARD_HOLDER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,11 +76,9 @@ public String getCardHolderInfo() { } /** - * Information provided by the issuer to the cardholder. If this field is present, you need to - * display this information to the cardholder. + * Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. * - * @param cardHolderInfo Information provided by the issuer to the cardholder. If this field is - * present, you need to display this information to the cardholder. + * @param cardHolderInfo Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. */ @JsonProperty(JSON_PROPERTY_CARD_HOLDER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -84,13 +87,10 @@ public void setCardHolderInfo(String cardHolderInfo) { } /** - * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication - * session, as a Base64-encoded 20-byte array. + * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. * - * @param cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure - * authentication session, as a Base64-encoded 20-byte array. - * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method - * chaining + * @param cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. + * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method chaining */ public ResponseAdditionalData3DSecure cavv(String cavv) { this.cavv = cavv; @@ -98,11 +98,8 @@ public ResponseAdditionalData3DSecure cavv(String cavv) { } /** - * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication - * session, as a Base64-encoded 20-byte array. - * - * @return cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure - * authentication session, as a Base64-encoded 20-byte array. + * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. + * @return cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. */ @JsonProperty(JSON_PROPERTY_CAVV) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,11 +108,9 @@ public String getCavv() { } /** - * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication - * session, as a Base64-encoded 20-byte array. + * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. * - * @param cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure - * authentication session, as a Base64-encoded 20-byte array. + * @param cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. */ @JsonProperty(JSON_PROPERTY_CAVV) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,8 +122,7 @@ public void setCavv(String cavv) { * The CAVV algorithm used. * * @param cavvAlgorithm The CAVV algorithm used. - * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method - * chaining + * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method chaining */ public ResponseAdditionalData3DSecure cavvAlgorithm(String cavvAlgorithm) { this.cavvAlgorithm = cavvAlgorithm; @@ -137,7 +131,6 @@ public ResponseAdditionalData3DSecure cavvAlgorithm(String cavvAlgorithm) { /** * The CAVV algorithm used. - * * @return cavvAlgorithm The CAVV algorithm used. */ @JsonProperty(JSON_PROPERTY_CAVV_ALGORITHM) @@ -158,17 +151,10 @@ public void setCavvAlgorithm(String cavvAlgorithm) { } /** - * Shows the [exemption - * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) - * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * - * **trustedBeneficiary** * **transactionRiskAnalysis** + * Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * - * @param scaExemptionRequested Shows the [exemption - * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) - * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** - * * **trustedBeneficiary** * **transactionRiskAnalysis** - * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method - * chaining + * @param scaExemptionRequested Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method chaining */ public ResponseAdditionalData3DSecure scaExemptionRequested(String scaExemptionRequested) { this.scaExemptionRequested = scaExemptionRequested; @@ -176,15 +162,8 @@ public ResponseAdditionalData3DSecure scaExemptionRequested(String scaExemptionR } /** - * Shows the [exemption - * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) - * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * - * **trustedBeneficiary** * **transactionRiskAnalysis** - * - * @return scaExemptionRequested Shows the [exemption - * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) - * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** - * * **trustedBeneficiary** * **transactionRiskAnalysis** + * Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * @return scaExemptionRequested Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** */ @JsonProperty(JSON_PROPERTY_SCA_EXEMPTION_REQUESTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,15 +172,9 @@ public String getScaExemptionRequested() { } /** - * Shows the [exemption - * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) - * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * - * **trustedBeneficiary** * **transactionRiskAnalysis** + * Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * - * @param scaExemptionRequested Shows the [exemption - * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) - * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** - * * **trustedBeneficiary** * **transactionRiskAnalysis** + * @param scaExemptionRequested Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** */ @JsonProperty(JSON_PROPERTY_SCA_EXEMPTION_REQUESTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -213,8 +186,7 @@ public void setScaExemptionRequested(String scaExemptionRequested) { * Indicates whether a card is enrolled for 3D Secure 2. * * @param threeds2CardEnrolled Indicates whether a card is enrolled for 3D Secure 2. - * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method - * chaining + * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method chaining */ public ResponseAdditionalData3DSecure threeds2CardEnrolled(Boolean threeds2CardEnrolled) { this.threeds2CardEnrolled = threeds2CardEnrolled; @@ -223,7 +195,6 @@ public ResponseAdditionalData3DSecure threeds2CardEnrolled(Boolean threeds2CardE /** * Indicates whether a card is enrolled for 3D Secure 2. - * * @return threeds2CardEnrolled Indicates whether a card is enrolled for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_THREEDS2_CARD_ENROLLED) @@ -243,7 +214,9 @@ public void setThreeds2CardEnrolled(Boolean threeds2CardEnrolled) { this.threeds2CardEnrolled = threeds2CardEnrolled; } - /** Return true if this ResponseAdditionalData3DSecure object is equal to o. */ + /** + * Return true if this ResponseAdditionalData3DSecure object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -252,21 +225,17 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResponseAdditionalData3DSecure responseAdditionalData3DSecure = - (ResponseAdditionalData3DSecure) o; - return Objects.equals(this.cardHolderInfo, responseAdditionalData3DSecure.cardHolderInfo) - && Objects.equals(this.cavv, responseAdditionalData3DSecure.cavv) - && Objects.equals(this.cavvAlgorithm, responseAdditionalData3DSecure.cavvAlgorithm) - && Objects.equals( - this.scaExemptionRequested, responseAdditionalData3DSecure.scaExemptionRequested) - && Objects.equals( - this.threeds2CardEnrolled, responseAdditionalData3DSecure.threeds2CardEnrolled); + ResponseAdditionalData3DSecure responseAdditionalData3DSecure = (ResponseAdditionalData3DSecure) o; + return Objects.equals(this.cardHolderInfo, responseAdditionalData3DSecure.cardHolderInfo) && + Objects.equals(this.cavv, responseAdditionalData3DSecure.cavv) && + Objects.equals(this.cavvAlgorithm, responseAdditionalData3DSecure.cavvAlgorithm) && + Objects.equals(this.scaExemptionRequested, responseAdditionalData3DSecure.scaExemptionRequested) && + Objects.equals(this.threeds2CardEnrolled, responseAdditionalData3DSecure.threeds2CardEnrolled); } @Override public int hashCode() { - return Objects.hash( - cardHolderInfo, cavv, cavvAlgorithm, scaExemptionRequested, threeds2CardEnrolled); + return Objects.hash(cardHolderInfo, cavv, cavvAlgorithm, scaExemptionRequested, threeds2CardEnrolled); } @Override @@ -276,18 +245,15 @@ public String toString() { sb.append(" cardHolderInfo: ").append(toIndentedString(cardHolderInfo)).append("\n"); sb.append(" cavv: ").append(toIndentedString(cavv)).append("\n"); sb.append(" cavvAlgorithm: ").append(toIndentedString(cavvAlgorithm)).append("\n"); - sb.append(" scaExemptionRequested: ") - .append(toIndentedString(scaExemptionRequested)) - .append("\n"); - sb.append(" threeds2CardEnrolled: ") - .append(toIndentedString(threeds2CardEnrolled)) - .append("\n"); + sb.append(" scaExemptionRequested: ").append(toIndentedString(scaExemptionRequested)).append("\n"); + sb.append(" threeds2CardEnrolled: ").append(toIndentedString(threeds2CardEnrolled)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -296,24 +262,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResponseAdditionalData3DSecure given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalData3DSecure - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ResponseAdditionalData3DSecure + * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalData3DSecure */ - public static ResponseAdditionalData3DSecure fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalData3DSecure fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalData3DSecure.class); } - - /** - * Convert an instance of ResponseAdditionalData3DSecure to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResponseAdditionalData3DSecure to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataBillingAddress.java b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataBillingAddress.java index 6dab239e9..e3e002f8e 100644 --- a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataBillingAddress.java +++ b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataBillingAddress.java @@ -2,22 +2,31 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ResponseAdditionalDataBillingAddress */ + +/** + * ResponseAdditionalDataBillingAddress + */ @JsonPropertyOrder({ ResponseAdditionalDataBillingAddress.JSON_PROPERTY_BILLING_ADDRESS_CITY, ResponseAdditionalDataBillingAddress.JSON_PROPERTY_BILLING_ADDRESS_COUNTRY, @@ -26,6 +35,7 @@ ResponseAdditionalDataBillingAddress.JSON_PROPERTY_BILLING_ADDRESS_STATE_OR_PROVINCE, ResponseAdditionalDataBillingAddress.JSON_PROPERTY_BILLING_ADDRESS_STREET }) + public class ResponseAdditionalDataBillingAddress { public static final String JSON_PROPERTY_BILLING_ADDRESS_CITY = "billingAddress.city"; private String billingAddressCity; @@ -33,29 +43,26 @@ public class ResponseAdditionalDataBillingAddress { public static final String JSON_PROPERTY_BILLING_ADDRESS_COUNTRY = "billingAddress.country"; private String billingAddressCountry; - public static final String JSON_PROPERTY_BILLING_ADDRESS_HOUSE_NUMBER_OR_NAME = - "billingAddress.houseNumberOrName"; + public static final String JSON_PROPERTY_BILLING_ADDRESS_HOUSE_NUMBER_OR_NAME = "billingAddress.houseNumberOrName"; private String billingAddressHouseNumberOrName; - public static final String JSON_PROPERTY_BILLING_ADDRESS_POSTAL_CODE = - "billingAddress.postalCode"; + public static final String JSON_PROPERTY_BILLING_ADDRESS_POSTAL_CODE = "billingAddress.postalCode"; private String billingAddressPostalCode; - public static final String JSON_PROPERTY_BILLING_ADDRESS_STATE_OR_PROVINCE = - "billingAddress.stateOrProvince"; + public static final String JSON_PROPERTY_BILLING_ADDRESS_STATE_OR_PROVINCE = "billingAddress.stateOrProvince"; private String billingAddressStateOrProvince; public static final String JSON_PROPERTY_BILLING_ADDRESS_STREET = "billingAddress.street"; private String billingAddressStreet; - public ResponseAdditionalDataBillingAddress() {} + public ResponseAdditionalDataBillingAddress() { + } /** * The billing address city passed in the payment request. * * @param billingAddressCity The billing address city passed in the payment request. - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method - * chaining + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining */ public ResponseAdditionalDataBillingAddress billingAddressCity(String billingAddressCity) { this.billingAddressCity = billingAddressCity; @@ -64,7 +71,6 @@ public ResponseAdditionalDataBillingAddress billingAddressCity(String billingAdd /** * The billing address city passed in the payment request. - * * @return billingAddressCity The billing address city passed in the payment request. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_CITY) @@ -85,12 +91,10 @@ public void setBillingAddressCity(String billingAddressCity) { } /** - * The billing address country passed in the payment request. Example: NL + * The billing address country passed in the payment request. Example: NL * - * @param billingAddressCountry The billing address country passed in the payment request. - * Example: NL - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method - * chaining + * @param billingAddressCountry The billing address country passed in the payment request. Example: NL + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining */ public ResponseAdditionalDataBillingAddress billingAddressCountry(String billingAddressCountry) { this.billingAddressCountry = billingAddressCountry; @@ -98,10 +102,8 @@ public ResponseAdditionalDataBillingAddress billingAddressCountry(String billing } /** - * The billing address country passed in the payment request. Example: NL - * - * @return billingAddressCountry The billing address country passed in the payment request. - * Example: NL + * The billing address country passed in the payment request. Example: NL + * @return billingAddressCountry The billing address country passed in the payment request. Example: NL */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,10 +112,9 @@ public String getBillingAddressCountry() { } /** - * The billing address country passed in the payment request. Example: NL + * The billing address country passed in the payment request. Example: NL * - * @param billingAddressCountry The billing address country passed in the payment request. - * Example: NL + * @param billingAddressCountry The billing address country passed in the payment request. Example: NL */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,22 +125,17 @@ public void setBillingAddressCountry(String billingAddressCountry) { /** * The billing address house number or name passed in the payment request. * - * @param billingAddressHouseNumberOrName The billing address house number or name passed in the - * payment request. - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method - * chaining + * @param billingAddressHouseNumberOrName The billing address house number or name passed in the payment request. + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining */ - public ResponseAdditionalDataBillingAddress billingAddressHouseNumberOrName( - String billingAddressHouseNumberOrName) { + public ResponseAdditionalDataBillingAddress billingAddressHouseNumberOrName(String billingAddressHouseNumberOrName) { this.billingAddressHouseNumberOrName = billingAddressHouseNumberOrName; return this; } /** * The billing address house number or name passed in the payment request. - * - * @return billingAddressHouseNumberOrName The billing address house number or name passed in the - * payment request. + * @return billingAddressHouseNumberOrName The billing address house number or name passed in the payment request. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_HOUSE_NUMBER_OR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,8 +146,7 @@ public String getBillingAddressHouseNumberOrName() { /** * The billing address house number or name passed in the payment request. * - * @param billingAddressHouseNumberOrName The billing address house number or name passed in the - * payment request. + * @param billingAddressHouseNumberOrName The billing address house number or name passed in the payment request. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_HOUSE_NUMBER_OR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,24 +155,19 @@ public void setBillingAddressHouseNumberOrName(String billingAddressHouseNumberO } /** - * The billing address postal code passed in the payment request. Example: 1011 DJ + * The billing address postal code passed in the payment request. Example: 1011 DJ * - * @param billingAddressPostalCode The billing address postal code passed in the payment request. - * Example: 1011 DJ - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method - * chaining + * @param billingAddressPostalCode The billing address postal code passed in the payment request. Example: 1011 DJ + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining */ - public ResponseAdditionalDataBillingAddress billingAddressPostalCode( - String billingAddressPostalCode) { + public ResponseAdditionalDataBillingAddress billingAddressPostalCode(String billingAddressPostalCode) { this.billingAddressPostalCode = billingAddressPostalCode; return this; } /** - * The billing address postal code passed in the payment request. Example: 1011 DJ - * - * @return billingAddressPostalCode The billing address postal code passed in the payment request. - * Example: 1011 DJ + * The billing address postal code passed in the payment request. Example: 1011 DJ + * @return billingAddressPostalCode The billing address postal code passed in the payment request. Example: 1011 DJ */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,10 +176,9 @@ public String getBillingAddressPostalCode() { } /** - * The billing address postal code passed in the payment request. Example: 1011 DJ + * The billing address postal code passed in the payment request. Example: 1011 DJ * - * @param billingAddressPostalCode The billing address postal code passed in the payment request. - * Example: 1011 DJ + * @param billingAddressPostalCode The billing address postal code passed in the payment request. Example: 1011 DJ */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,24 +187,19 @@ public void setBillingAddressPostalCode(String billingAddressPostalCode) { } /** - * The billing address state or province passed in the payment request. Example: NH + * The billing address state or province passed in the payment request. Example: NH * - * @param billingAddressStateOrProvince The billing address state or province passed in the - * payment request. Example: NH - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method - * chaining + * @param billingAddressStateOrProvince The billing address state or province passed in the payment request. Example: NH + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining */ - public ResponseAdditionalDataBillingAddress billingAddressStateOrProvince( - String billingAddressStateOrProvince) { + public ResponseAdditionalDataBillingAddress billingAddressStateOrProvince(String billingAddressStateOrProvince) { this.billingAddressStateOrProvince = billingAddressStateOrProvince; return this; } /** - * The billing address state or province passed in the payment request. Example: NH - * - * @return billingAddressStateOrProvince The billing address state or province passed in the - * payment request. Example: NH + * The billing address state or province passed in the payment request. Example: NH + * @return billingAddressStateOrProvince The billing address state or province passed in the payment request. Example: NH */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,10 +208,9 @@ public String getBillingAddressStateOrProvince() { } /** - * The billing address state or province passed in the payment request. Example: NH + * The billing address state or province passed in the payment request. Example: NH * - * @param billingAddressStateOrProvince The billing address state or province passed in the - * payment request. Example: NH + * @param billingAddressStateOrProvince The billing address state or province passed in the payment request. Example: NH */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -239,8 +222,7 @@ public void setBillingAddressStateOrProvince(String billingAddressStateOrProvinc * The billing address street passed in the payment request. * * @param billingAddressStreet The billing address street passed in the payment request. - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method - * chaining + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining */ public ResponseAdditionalDataBillingAddress billingAddressStreet(String billingAddressStreet) { this.billingAddressStreet = billingAddressStreet; @@ -249,7 +231,6 @@ public ResponseAdditionalDataBillingAddress billingAddressStreet(String billingA /** * The billing address street passed in the payment request. - * * @return billingAddressStreet The billing address street passed in the payment request. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_STREET) @@ -269,7 +250,9 @@ public void setBillingAddressStreet(String billingAddressStreet) { this.billingAddressStreet = billingAddressStreet; } - /** Return true if this ResponseAdditionalDataBillingAddress object is equal to o. */ + /** + * Return true if this ResponseAdditionalDataBillingAddress object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -278,34 +261,18 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResponseAdditionalDataBillingAddress responseAdditionalDataBillingAddress = - (ResponseAdditionalDataBillingAddress) o; - return Objects.equals( - this.billingAddressCity, responseAdditionalDataBillingAddress.billingAddressCity) - && Objects.equals( - this.billingAddressCountry, responseAdditionalDataBillingAddress.billingAddressCountry) - && Objects.equals( - this.billingAddressHouseNumberOrName, - responseAdditionalDataBillingAddress.billingAddressHouseNumberOrName) - && Objects.equals( - this.billingAddressPostalCode, - responseAdditionalDataBillingAddress.billingAddressPostalCode) - && Objects.equals( - this.billingAddressStateOrProvince, - responseAdditionalDataBillingAddress.billingAddressStateOrProvince) - && Objects.equals( - this.billingAddressStreet, responseAdditionalDataBillingAddress.billingAddressStreet); + ResponseAdditionalDataBillingAddress responseAdditionalDataBillingAddress = (ResponseAdditionalDataBillingAddress) o; + return Objects.equals(this.billingAddressCity, responseAdditionalDataBillingAddress.billingAddressCity) && + Objects.equals(this.billingAddressCountry, responseAdditionalDataBillingAddress.billingAddressCountry) && + Objects.equals(this.billingAddressHouseNumberOrName, responseAdditionalDataBillingAddress.billingAddressHouseNumberOrName) && + Objects.equals(this.billingAddressPostalCode, responseAdditionalDataBillingAddress.billingAddressPostalCode) && + Objects.equals(this.billingAddressStateOrProvince, responseAdditionalDataBillingAddress.billingAddressStateOrProvince) && + Objects.equals(this.billingAddressStreet, responseAdditionalDataBillingAddress.billingAddressStreet); } @Override public int hashCode() { - return Objects.hash( - billingAddressCity, - billingAddressCountry, - billingAddressHouseNumberOrName, - billingAddressPostalCode, - billingAddressStateOrProvince, - billingAddressStreet); + return Objects.hash(billingAddressCity, billingAddressCountry, billingAddressHouseNumberOrName, billingAddressPostalCode, billingAddressStateOrProvince, billingAddressStreet); } @Override @@ -313,27 +280,18 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataBillingAddress {\n"); sb.append(" billingAddressCity: ").append(toIndentedString(billingAddressCity)).append("\n"); - sb.append(" billingAddressCountry: ") - .append(toIndentedString(billingAddressCountry)) - .append("\n"); - sb.append(" billingAddressHouseNumberOrName: ") - .append(toIndentedString(billingAddressHouseNumberOrName)) - .append("\n"); - sb.append(" billingAddressPostalCode: ") - .append(toIndentedString(billingAddressPostalCode)) - .append("\n"); - sb.append(" billingAddressStateOrProvince: ") - .append(toIndentedString(billingAddressStateOrProvince)) - .append("\n"); - sb.append(" billingAddressStreet: ") - .append(toIndentedString(billingAddressStreet)) - .append("\n"); + sb.append(" billingAddressCountry: ").append(toIndentedString(billingAddressCountry)).append("\n"); + sb.append(" billingAddressHouseNumberOrName: ").append(toIndentedString(billingAddressHouseNumberOrName)).append("\n"); + sb.append(" billingAddressPostalCode: ").append(toIndentedString(billingAddressPostalCode)).append("\n"); + sb.append(" billingAddressStateOrProvince: ").append(toIndentedString(billingAddressStateOrProvince)).append("\n"); + sb.append(" billingAddressStreet: ").append(toIndentedString(billingAddressStreet)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -342,24 +300,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResponseAdditionalDataBillingAddress given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataBillingAddress - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ResponseAdditionalDataBillingAddress + * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataBillingAddress */ - public static ResponseAdditionalDataBillingAddress fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataBillingAddress fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataBillingAddress.class); } - - /** - * Convert an instance of ResponseAdditionalDataBillingAddress to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResponseAdditionalDataBillingAddress to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataCard.java b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataCard.java index 74ac88c78..ff55fd13e 100644 --- a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataCard.java +++ b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataCard.java @@ -2,26 +2,31 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ResponseAdditionalDataCard */ +/** + * ResponseAdditionalDataCard + */ @JsonPropertyOrder({ ResponseAdditionalDataCard.JSON_PROPERTY_CARD_BIN, ResponseAdditionalDataCard.JSON_PROPERTY_CARD_HOLDER_NAME, @@ -33,6 +38,7 @@ ResponseAdditionalDataCard.JSON_PROPERTY_CARD_SUMMARY, ResponseAdditionalDataCard.JSON_PROPERTY_ISSUER_BIN }) + public class ResponseAdditionalDataCard { public static final String JSON_PROPERTY_CARD_BIN = "cardBin"; private String cardBin; @@ -53,15 +59,10 @@ public class ResponseAdditionalDataCard { private String cardPaymentMethod; /** - * The Card Product ID represents the type of card following card scheme product definitions and - * can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - - * Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa - * Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard - * Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * - * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard - * Select Debit + * The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit */ public enum CardProductIdEnum { + A(String.valueOf("A")), B(String.valueOf("B")), @@ -89,7 +90,7 @@ public enum CardProductIdEnum { private String value; CardProductIdEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -110,11 +111,7 @@ public static CardProductIdEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "CardProductIdEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(CardProductIdEnum.values())); + LOG.warning("CardProductIdEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CardProductIdEnum.values())); return null; } } @@ -128,16 +125,13 @@ public static CardProductIdEnum fromValue(String value) { public static final String JSON_PROPERTY_ISSUER_BIN = "issuerBin"; private String issuerBin; - public ResponseAdditionalDataCard() {} + public ResponseAdditionalDataCard() { + } /** - * The first six digits of the card number. This is the [Bank Identification Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with a six-digit BIN. Example: 521234 + * The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 * - * @param cardBin The first six digits of the card number. This is the [Bank Identification Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with a six-digit BIN. Example: 521234 + * @param cardBin The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardBin(String cardBin) { @@ -146,14 +140,8 @@ public ResponseAdditionalDataCard cardBin(String cardBin) { } /** - * The first six digits of the card number. This is the [Bank Identification Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with a six-digit BIN. Example: 521234 - * - * @return cardBin The first six digits of the card number. This is the [Bank Identification - * Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with a six-digit BIN. Example: 521234 + * The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 + * @return cardBin The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 */ @JsonProperty(JSON_PROPERTY_CARD_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -162,13 +150,9 @@ public String getCardBin() { } /** - * The first six digits of the card number. This is the [Bank Identification Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with a six-digit BIN. Example: 521234 + * The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 * - * @param cardBin The first six digits of the card number. This is the [Bank Identification Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with a six-digit BIN. Example: 521234 + * @param cardBin The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 */ @JsonProperty(JSON_PROPERTY_CARD_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,7 +173,6 @@ public ResponseAdditionalDataCard cardHolderName(String cardHolderName) { /** * The cardholder name passed in the payment request. - * * @return cardHolderName The cardholder name passed in the payment request. */ @JsonProperty(JSON_PROPERTY_CARD_HOLDER_NAME) @@ -210,11 +193,9 @@ public void setCardHolderName(String cardHolderName) { } /** - * The bank or the financial institution granting lines of credit through card association branded - * payment cards. This information can be included when available. + * The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. * - * @param cardIssuingBank The bank or the financial institution granting lines of credit through - * card association branded payment cards. This information can be included when available. + * @param cardIssuingBank The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardIssuingBank(String cardIssuingBank) { @@ -223,11 +204,8 @@ public ResponseAdditionalDataCard cardIssuingBank(String cardIssuingBank) { } /** - * The bank or the financial institution granting lines of credit through card association branded - * payment cards. This information can be included when available. - * - * @return cardIssuingBank The bank or the financial institution granting lines of credit through - * card association branded payment cards. This information can be included when available. + * The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. + * @return cardIssuingBank The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_BANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -236,11 +214,9 @@ public String getCardIssuingBank() { } /** - * The bank or the financial institution granting lines of credit through card association branded - * payment cards. This information can be included when available. + * The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. * - * @param cardIssuingBank The bank or the financial institution granting lines of credit through - * card association branded payment cards. This information can be included when available. + * @param cardIssuingBank The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_BANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -249,9 +225,9 @@ public void setCardIssuingBank(String cardIssuingBank) { } /** - * The country where the card was issued. Example: US + * The country where the card was issued. Example: US * - * @param cardIssuingCountry The country where the card was issued. Example: US + * @param cardIssuingCountry The country where the card was issued. Example: US * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardIssuingCountry(String cardIssuingCountry) { @@ -260,9 +236,8 @@ public ResponseAdditionalDataCard cardIssuingCountry(String cardIssuingCountry) } /** - * The country where the card was issued. Example: US - * - * @return cardIssuingCountry The country where the card was issued. Example: US + * The country where the card was issued. Example: US + * @return cardIssuingCountry The country where the card was issued. Example: US */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -271,9 +246,9 @@ public String getCardIssuingCountry() { } /** - * The country where the card was issued. Example: US + * The country where the card was issued. Example: US * - * @param cardIssuingCountry The country where the card was issued. Example: US + * @param cardIssuingCountry The country where the card was issued. Example: US */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -282,12 +257,9 @@ public void setCardIssuingCountry(String cardIssuingCountry) { } /** - * The currency in which the card is issued, if this information is available. Provided as the - * currency code or currency number from the ISO-4217 standard. Example: USD + * The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD * - * @param cardIssuingCurrency The currency in which the card is issued, if this information is - * available. Provided as the currency code or currency number from the ISO-4217 standard. - * Example: USD + * @param cardIssuingCurrency The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardIssuingCurrency(String cardIssuingCurrency) { @@ -296,12 +268,8 @@ public ResponseAdditionalDataCard cardIssuingCurrency(String cardIssuingCurrency } /** - * The currency in which the card is issued, if this information is available. Provided as the - * currency code or currency number from the ISO-4217 standard. Example: USD - * - * @return cardIssuingCurrency The currency in which the card is issued, if this information is - * available. Provided as the currency code or currency number from the ISO-4217 standard. - * Example: USD + * The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD + * @return cardIssuingCurrency The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -310,12 +278,9 @@ public String getCardIssuingCurrency() { } /** - * The currency in which the card is issued, if this information is available. Provided as the - * currency code or currency number from the ISO-4217 standard. Example: USD + * The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD * - * @param cardIssuingCurrency The currency in which the card is issued, if this information is - * available. Provided as the currency code or currency number from the ISO-4217 standard. - * Example: USD + * @param cardIssuingCurrency The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -324,9 +289,9 @@ public void setCardIssuingCurrency(String cardIssuingCurrency) { } /** - * The card payment method used for the transaction. Example: amex + * The card payment method used for the transaction. Example: amex * - * @param cardPaymentMethod The card payment method used for the transaction. Example: amex + * @param cardPaymentMethod The card payment method used for the transaction. Example: amex * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardPaymentMethod(String cardPaymentMethod) { @@ -335,9 +300,8 @@ public ResponseAdditionalDataCard cardPaymentMethod(String cardPaymentMethod) { } /** - * The card payment method used for the transaction. Example: amex - * - * @return cardPaymentMethod The card payment method used for the transaction. Example: amex + * The card payment method used for the transaction. Example: amex + * @return cardPaymentMethod The card payment method used for the transaction. Example: amex */ @JsonProperty(JSON_PROPERTY_CARD_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -346,9 +310,9 @@ public String getCardPaymentMethod() { } /** - * The card payment method used for the transaction. Example: amex + * The card payment method used for the transaction. Example: amex * - * @param cardPaymentMethod The card payment method used for the transaction. Example: amex + * @param cardPaymentMethod The card payment method used for the transaction. Example: amex */ @JsonProperty(JSON_PROPERTY_CARD_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -357,21 +321,9 @@ public void setCardPaymentMethod(String cardPaymentMethod) { } /** - * The Card Product ID represents the type of card following card scheme product definitions and - * can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - - * Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa - * Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard - * Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * - * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard - * Select Debit + * The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit * - * @param cardProductId The Card Product ID represents the type of card following card scheme - * product definitions and can be returned for Adyen Acquiring service level payments. - * Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - * - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values - * Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - - * Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard - * Premium Charge * **MCI** - Mastercard Select Debit + * @param cardProductId The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardProductId(CardProductIdEnum cardProductId) { @@ -380,21 +332,8 @@ public ResponseAdditionalDataCard cardProductId(CardProductIdEnum cardProductId) } /** - * The Card Product ID represents the type of card following card scheme product definitions and - * can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - - * Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa - * Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard - * Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * - * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard - * Select Debit - * - * @return cardProductId The Card Product ID represents the type of card following card scheme - * product definitions and can be returned for Adyen Acquiring service level payments. - * Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - * - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values - * Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - - * Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard - * Premium Charge * **MCI** - Mastercard Select Debit + * The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit + * @return cardProductId The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit */ @JsonProperty(JSON_PROPERTY_CARD_PRODUCT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -403,21 +342,9 @@ public CardProductIdEnum getCardProductId() { } /** - * The Card Product ID represents the type of card following card scheme product definitions and - * can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - - * Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa - * Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard - * Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * - * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard - * Select Debit + * The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit * - * @param cardProductId The Card Product ID represents the type of card following card scheme - * product definitions and can be returned for Adyen Acquiring service level payments. - * Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - * - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values - * Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - - * Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard - * Premium Charge * **MCI** - Mastercard Select Debit + * @param cardProductId The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit */ @JsonProperty(JSON_PROPERTY_CARD_PRODUCT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -426,10 +353,9 @@ public void setCardProductId(CardProductIdEnum cardProductId) { } /** - * The last four digits of a card number. > Returned only in case of a card payment. + * The last four digits of a card number. > Returned only in case of a card payment. * - * @param cardSummary The last four digits of a card number. > Returned only in case of a card - * payment. + * @param cardSummary The last four digits of a card number. > Returned only in case of a card payment. * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardSummary(String cardSummary) { @@ -438,10 +364,8 @@ public ResponseAdditionalDataCard cardSummary(String cardSummary) { } /** - * The last four digits of a card number. > Returned only in case of a card payment. - * - * @return cardSummary The last four digits of a card number. > Returned only in case of a card - * payment. + * The last four digits of a card number. > Returned only in case of a card payment. + * @return cardSummary The last four digits of a card number. > Returned only in case of a card payment. */ @JsonProperty(JSON_PROPERTY_CARD_SUMMARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -450,10 +374,9 @@ public String getCardSummary() { } /** - * The last four digits of a card number. > Returned only in case of a card payment. + * The last four digits of a card number. > Returned only in case of a card payment. * - * @param cardSummary The last four digits of a card number. > Returned only in case of a card - * payment. + * @param cardSummary The last four digits of a card number. > Returned only in case of a card payment. */ @JsonProperty(JSON_PROPERTY_CARD_SUMMARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -462,15 +385,9 @@ public void setCardSummary(String cardSummary) { } /** - * The first eight digits of the card number. Only returned if the card number is 16 digits or - * more. This is the [Bank Identification Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with an eight-digit BIN. Example: 52123423 + * The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 * - * @param issuerBin The first eight digits of the card number. Only returned if the card number is - * 16 digits or more. This is the [Bank Identification Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with an eight-digit BIN. Example: 52123423 + * @param issuerBin The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard issuerBin(String issuerBin) { @@ -479,15 +396,8 @@ public ResponseAdditionalDataCard issuerBin(String issuerBin) { } /** - * The first eight digits of the card number. Only returned if the card number is 16 digits or - * more. This is the [Bank Identification Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with an eight-digit BIN. Example: 52123423 - * - * @return issuerBin The first eight digits of the card number. Only returned if the card number - * is 16 digits or more. This is the [Bank Identification Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with an eight-digit BIN. Example: 52123423 + * The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 + * @return issuerBin The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 */ @JsonProperty(JSON_PROPERTY_ISSUER_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -496,15 +406,9 @@ public String getIssuerBin() { } /** - * The first eight digits of the card number. Only returned if the card number is 16 digits or - * more. This is the [Bank Identification Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with an eight-digit BIN. Example: 52123423 + * The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 * - * @param issuerBin The first eight digits of the card number. Only returned if the card number is - * 16 digits or more. This is the [Bank Identification Number - * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) - * for card numbers with an eight-digit BIN. Example: 52123423 + * @param issuerBin The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 */ @JsonProperty(JSON_PROPERTY_ISSUER_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -512,7 +416,9 @@ public void setIssuerBin(String issuerBin) { this.issuerBin = issuerBin; } - /** Return true if this ResponseAdditionalDataCard object is equal to o. */ + /** + * Return true if this ResponseAdditionalDataCard object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -522,29 +428,20 @@ public boolean equals(Object o) { return false; } ResponseAdditionalDataCard responseAdditionalDataCard = (ResponseAdditionalDataCard) o; - return Objects.equals(this.cardBin, responseAdditionalDataCard.cardBin) - && Objects.equals(this.cardHolderName, responseAdditionalDataCard.cardHolderName) - && Objects.equals(this.cardIssuingBank, responseAdditionalDataCard.cardIssuingBank) - && Objects.equals(this.cardIssuingCountry, responseAdditionalDataCard.cardIssuingCountry) - && Objects.equals(this.cardIssuingCurrency, responseAdditionalDataCard.cardIssuingCurrency) - && Objects.equals(this.cardPaymentMethod, responseAdditionalDataCard.cardPaymentMethod) - && Objects.equals(this.cardProductId, responseAdditionalDataCard.cardProductId) - && Objects.equals(this.cardSummary, responseAdditionalDataCard.cardSummary) - && Objects.equals(this.issuerBin, responseAdditionalDataCard.issuerBin); + return Objects.equals(this.cardBin, responseAdditionalDataCard.cardBin) && + Objects.equals(this.cardHolderName, responseAdditionalDataCard.cardHolderName) && + Objects.equals(this.cardIssuingBank, responseAdditionalDataCard.cardIssuingBank) && + Objects.equals(this.cardIssuingCountry, responseAdditionalDataCard.cardIssuingCountry) && + Objects.equals(this.cardIssuingCurrency, responseAdditionalDataCard.cardIssuingCurrency) && + Objects.equals(this.cardPaymentMethod, responseAdditionalDataCard.cardPaymentMethod) && + Objects.equals(this.cardProductId, responseAdditionalDataCard.cardProductId) && + Objects.equals(this.cardSummary, responseAdditionalDataCard.cardSummary) && + Objects.equals(this.issuerBin, responseAdditionalDataCard.issuerBin); } @Override public int hashCode() { - return Objects.hash( - cardBin, - cardHolderName, - cardIssuingBank, - cardIssuingCountry, - cardIssuingCurrency, - cardPaymentMethod, - cardProductId, - cardSummary, - issuerBin); + return Objects.hash(cardBin, cardHolderName, cardIssuingBank, cardIssuingCountry, cardIssuingCurrency, cardPaymentMethod, cardProductId, cardSummary, issuerBin); } @Override @@ -555,9 +452,7 @@ public String toString() { sb.append(" cardHolderName: ").append(toIndentedString(cardHolderName)).append("\n"); sb.append(" cardIssuingBank: ").append(toIndentedString(cardIssuingBank)).append("\n"); sb.append(" cardIssuingCountry: ").append(toIndentedString(cardIssuingCountry)).append("\n"); - sb.append(" cardIssuingCurrency: ") - .append(toIndentedString(cardIssuingCurrency)) - .append("\n"); + sb.append(" cardIssuingCurrency: ").append(toIndentedString(cardIssuingCurrency)).append("\n"); sb.append(" cardPaymentMethod: ").append(toIndentedString(cardPaymentMethod)).append("\n"); sb.append(" cardProductId: ").append(toIndentedString(cardProductId)).append("\n"); sb.append(" cardSummary: ").append(toIndentedString(cardSummary)).append("\n"); @@ -567,7 +462,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -576,24 +472,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResponseAdditionalDataCard given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataCard - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ResponseAdditionalDataCard + * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataCard */ - public static ResponseAdditionalDataCard fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataCard fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataCard.class); } - - /** - * Convert an instance of ResponseAdditionalDataCard to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResponseAdditionalDataCard to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataCommon.java b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataCommon.java index 4e4b94550..e9b43dcd6 100644 --- a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataCommon.java +++ b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataCommon.java @@ -2,26 +2,31 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ResponseAdditionalDataCommon */ +/** + * ResponseAdditionalDataCommon + */ @JsonPropertyOrder({ ResponseAdditionalDataCommon.JSON_PROPERTY_ACQUIRER_ACCOUNT_CODE, ResponseAdditionalDataCommon.JSON_PROPERTY_ACQUIRER_CODE, @@ -87,6 +92,7 @@ ResponseAdditionalDataCommon.JSON_PROPERTY_VISA_TRANSACTION_ID, ResponseAdditionalDataCommon.JSON_PROPERTY_XID }) + public class ResponseAdditionalDataCommon { public static final String JSON_PROPERTY_ACQUIRER_ACCOUNT_CODE = "acquirerAccountCode"; private String acquirerAccountCode; @@ -148,15 +154,17 @@ public class ResponseAdditionalDataCommon { public static final String JSON_PROPERTY_EXTRA_COSTS_VALUE = "extraCostsValue"; private String extraCostsValue; - public static final String JSON_PROPERTY_FRAUD_CHECK_ITEM_NR_FRAUD_CHECKNAME = - "fraudCheck-[itemNr]-[FraudCheckname]"; + public static final String JSON_PROPERTY_FRAUD_CHECK_ITEM_NR_FRAUD_CHECKNAME = "fraudCheck-[itemNr]-[FraudCheckname]"; private String fraudCheckItemNrFraudCheckname; public static final String JSON_PROPERTY_FRAUD_MANUAL_REVIEW = "fraudManualReview"; private String fraudManualReview; - /** The fraud result properties of the payment. */ + /** + * The fraud result properties of the payment. + */ public enum FraudResultTypeEnum { + GREEN(String.valueOf("GREEN")), FRAUD(String.valueOf("FRAUD")); @@ -166,7 +174,7 @@ public enum FraudResultTypeEnum { private String value; FraudResultTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -187,11 +195,7 @@ public static FraudResultTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FraudResultTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FraudResultTypeEnum.values())); + LOG.warning("FraudResultTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FraudResultTypeEnum.values())); return null; } } @@ -200,12 +204,10 @@ public static FraudResultTypeEnum fromValue(String value) { private FraudResultTypeEnum fraudResultType; /** - * The risk level of the transaction as classified by the [machine - * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) - * fraud risk rule. The risk level indicates the likelihood that a transaction will result in a - * fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh */ public enum FraudRiskLevelEnum { + VERYLOW(String.valueOf("veryLow")), LOW(String.valueOf("low")), @@ -221,7 +223,7 @@ public enum FraudRiskLevelEnum { private String value; FraudRiskLevelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -242,11 +244,7 @@ public static FraudRiskLevelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "FraudRiskLevelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(FraudRiskLevelEnum.values())); + LOG.warning("FraudRiskLevelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FraudRiskLevelEnum.values())); return null; } } @@ -272,8 +270,7 @@ public static FraudRiskLevelEnum fromValue(String value) { public static final String JSON_PROPERTY_LIABILITY_SHIFT = "liabilityShift"; private String liabilityShift; - public static final String JSON_PROPERTY_MC_BANK_NET_REFERENCE_NUMBER = - "mcBankNetReferenceNumber"; + public static final String JSON_PROPERTY_MC_BANK_NET_REFERENCE_NUMBER = "mcBankNetReferenceNumber"; private String mcBankNetReferenceNumber; public static final String JSON_PROPERTY_MERCHANT_ADVICE_CODE = "merchantAdviceCode"; @@ -300,8 +297,7 @@ public static FraudRiskLevelEnum fromValue(String value) { public static final String JSON_PROPERTY_PAYOUT_ELIGIBLE = "payoutEligible"; private String payoutEligible; - public static final String JSON_PROPERTY_REALTIME_ACCOUNT_UPDATER_STATUS = - "realtimeAccountUpdaterStatus"; + public static final String JSON_PROPERTY_REALTIME_ACCOUNT_UPDATER_STATUS = "realtimeAccountUpdaterStatus"; private String realtimeAccountUpdaterStatus; public static final String JSON_PROPERTY_RECEIPT_FREE_TEXT = "receiptFreeText"; @@ -310,36 +306,34 @@ public static FraudRiskLevelEnum fromValue(String value) { public static final String JSON_PROPERTY_RECURRING_CONTRACT_TYPES = "recurring.contractTypes"; private String recurringContractTypes; - public static final String JSON_PROPERTY_RECURRING_FIRST_PSP_REFERENCE = - "recurring.firstPspReference"; + public static final String JSON_PROPERTY_RECURRING_FIRST_PSP_REFERENCE = "recurring.firstPspReference"; private String recurringFirstPspReference; - public static final String JSON_PROPERTY_RECURRING_RECURRING_DETAIL_REFERENCE = - "recurring.recurringDetailReference"; - @Deprecated // deprecated since Adyen Payout API v68: Use tokenization.storedPaymentMethodId - // instead. + public static final String JSON_PROPERTY_RECURRING_RECURRING_DETAIL_REFERENCE = "recurring.recurringDetailReference"; + @Deprecated // deprecated since Adyen Payout API v68: Use tokenization.storedPaymentMethodId instead. private String recurringRecurringDetailReference; - public static final String JSON_PROPERTY_RECURRING_SHOPPER_REFERENCE = - "recurring.shopperReference"; + public static final String JSON_PROPERTY_RECURRING_SHOPPER_REFERENCE = "recurring.shopperReference"; @Deprecated // deprecated since Adyen Payout API v68: Use tokenization.shopperReference instead. private String recurringShopperReference; - /** The processing model used for the recurring transaction. */ + /** + * The processing model used for the recurring transaction. + */ public enum RecurringProcessingModelEnum { + CARDONFILE(String.valueOf("CardOnFile")), SUBSCRIPTION(String.valueOf("Subscription")), UNSCHEDULEDCARDONFILE(String.valueOf("UnscheduledCardOnFile")); - private static final Logger LOG = - Logger.getLogger(RecurringProcessingModelEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(RecurringProcessingModelEnum.class.getName()); private String value; RecurringProcessingModelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -360,11 +354,7 @@ public static RecurringProcessingModelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "RecurringProcessingModelEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(RecurringProcessingModelEnum.values())); + LOG.warning("RecurringProcessingModelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RecurringProcessingModelEnum.values())); return null; } } @@ -396,8 +386,7 @@ public static RecurringProcessingModelEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_AUTHENTICATED = "threeDAuthenticated"; private String threeDAuthenticated; - public static final String JSON_PROPERTY_THREE_D_AUTHENTICATED_RESPONSE = - "threeDAuthenticatedResponse"; + public static final String JSON_PROPERTY_THREE_D_AUTHENTICATED_RESPONSE = "threeDAuthenticatedResponse"; private String threeDAuthenticatedResponse; public static final String JSON_PROPERTY_THREE_D_OFFERED = "threeDOffered"; @@ -409,29 +398,26 @@ public static RecurringProcessingModelEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_VERSION = "threeDSVersion"; private String threeDSVersion; - public static final String JSON_PROPERTY_TOKENIZATION_SHOPPER_REFERENCE = - "tokenization.shopperReference"; + public static final String JSON_PROPERTY_TOKENIZATION_SHOPPER_REFERENCE = "tokenization.shopperReference"; private String tokenizationShopperReference; /** - * The operation performed on the token. Possible values: * **created**: the token has been - * created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details - * have already been stored. + * The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. */ public enum TokenizationStoreOperationTypeEnum { + CREATED(String.valueOf("created")), UPDATED(String.valueOf("updated")), ALREADYEXISTING(String.valueOf("alreadyExisting")); - private static final Logger LOG = - Logger.getLogger(TokenizationStoreOperationTypeEnum.class.getName()); + private static final Logger LOG = Logger.getLogger(TokenizationStoreOperationTypeEnum.class.getName()); private String value; TokenizationStoreOperationTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -452,21 +438,15 @@ public static TokenizationStoreOperationTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TokenizationStoreOperationTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TokenizationStoreOperationTypeEnum.values())); + LOG.warning("TokenizationStoreOperationTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TokenizationStoreOperationTypeEnum.values())); return null; } } - public static final String JSON_PROPERTY_TOKENIZATION_STORE_OPERATION_TYPE = - "tokenization.store.operationType"; + public static final String JSON_PROPERTY_TOKENIZATION_STORE_OPERATION_TYPE = "tokenization.store.operationType"; private TokenizationStoreOperationTypeEnum tokenizationStoreOperationType; - public static final String JSON_PROPERTY_TOKENIZATION_STORED_PAYMENT_METHOD_ID = - "tokenization.storedPaymentMethodId"; + public static final String JSON_PROPERTY_TOKENIZATION_STORED_PAYMENT_METHOD_ID = "tokenization.storedPaymentMethodId"; private String tokenizationStoredPaymentMethodId; public static final String JSON_PROPERTY_VISA_TRANSACTION_ID = "visaTransactionId"; @@ -475,14 +455,13 @@ public static TokenizationStoreOperationTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_XID = "xid"; private String xid; - public ResponseAdditionalDataCommon() {} + public ResponseAdditionalDataCommon() { + } /** - * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant - * for PayPal transactions. + * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. * - * @param acquirerAccountCode The name of the Adyen acquirer account. Example: - * PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. + * @param acquirerAccountCode The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon acquirerAccountCode(String acquirerAccountCode) { @@ -491,11 +470,8 @@ public ResponseAdditionalDataCommon acquirerAccountCode(String acquirerAccountCo } /** - * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant - * for PayPal transactions. - * - * @return acquirerAccountCode The name of the Adyen acquirer account. Example: - * PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. + * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. + * @return acquirerAccountCode The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -504,11 +480,9 @@ public String getAcquirerAccountCode() { } /** - * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant - * for PayPal transactions. + * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. * - * @param acquirerAccountCode The name of the Adyen acquirer account. Example: - * PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. + * @param acquirerAccountCode The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -517,10 +491,9 @@ public void setAcquirerAccountCode(String acquirerAccountCode) { } /** - * The name of the acquirer processing the payment request. Example: TestPmmAcquirer + * The name of the acquirer processing the payment request. Example: TestPmmAcquirer * - * @param acquirerCode The name of the acquirer processing the payment request. Example: - * TestPmmAcquirer + * @param acquirerCode The name of the acquirer processing the payment request. Example: TestPmmAcquirer * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon acquirerCode(String acquirerCode) { @@ -529,10 +502,8 @@ public ResponseAdditionalDataCommon acquirerCode(String acquirerCode) { } /** - * The name of the acquirer processing the payment request. Example: TestPmmAcquirer - * - * @return acquirerCode The name of the acquirer processing the payment request. Example: - * TestPmmAcquirer + * The name of the acquirer processing the payment request. Example: TestPmmAcquirer + * @return acquirerCode The name of the acquirer processing the payment request. Example: TestPmmAcquirer */ @JsonProperty(JSON_PROPERTY_ACQUIRER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -541,10 +512,9 @@ public String getAcquirerCode() { } /** - * The name of the acquirer processing the payment request. Example: TestPmmAcquirer + * The name of the acquirer processing the payment request. Example: TestPmmAcquirer * - * @param acquirerCode The name of the acquirer processing the payment request. Example: - * TestPmmAcquirer + * @param acquirerCode The name of the acquirer processing the payment request. Example: TestPmmAcquirer */ @JsonProperty(JSON_PROPERTY_ACQUIRER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -553,11 +523,9 @@ public void setAcquirerCode(String acquirerCode) { } /** - * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used - * for settlement. Example: 7C9N3FNBKT9 + * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 * - * @param acquirerReference The reference number that can be used for reconciliation in case a - * non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 + * @param acquirerReference The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon acquirerReference(String acquirerReference) { @@ -566,11 +534,8 @@ public ResponseAdditionalDataCommon acquirerReference(String acquirerReference) } /** - * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used - * for settlement. Example: 7C9N3FNBKT9 - * - * @return acquirerReference The reference number that can be used for reconciliation in case a - * non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 + * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 + * @return acquirerReference The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 */ @JsonProperty(JSON_PROPERTY_ACQUIRER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -579,11 +544,9 @@ public String getAcquirerReference() { } /** - * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used - * for settlement. Example: 7C9N3FNBKT9 + * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 * - * @param acquirerReference The reference number that can be used for reconciliation in case a - * non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 + * @param acquirerReference The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 */ @JsonProperty(JSON_PROPERTY_ACQUIRER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -592,9 +555,9 @@ public void setAcquirerReference(String acquirerReference) { } /** - * The Adyen alias of the card. Example: H167852639363479 + * The Adyen alias of the card. Example: H167852639363479 * - * @param alias The Adyen alias of the card. Example: H167852639363479 + * @param alias The Adyen alias of the card. Example: H167852639363479 * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon alias(String alias) { @@ -603,9 +566,8 @@ public ResponseAdditionalDataCommon alias(String alias) { } /** - * The Adyen alias of the card. Example: H167852639363479 - * - * @return alias The Adyen alias of the card. Example: H167852639363479 + * The Adyen alias of the card. Example: H167852639363479 + * @return alias The Adyen alias of the card. Example: H167852639363479 */ @JsonProperty(JSON_PROPERTY_ALIAS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -614,9 +576,9 @@ public String getAlias() { } /** - * The Adyen alias of the card. Example: H167852639363479 + * The Adyen alias of the card. Example: H167852639363479 * - * @param alias The Adyen alias of the card. Example: H167852639363479 + * @param alias The Adyen alias of the card. Example: H167852639363479 */ @JsonProperty(JSON_PROPERTY_ALIAS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -625,9 +587,9 @@ public void setAlias(String alias) { } /** - * The type of the card alias. Example: Default + * The type of the card alias. Example: Default * - * @param aliasType The type of the card alias. Example: Default + * @param aliasType The type of the card alias. Example: Default * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon aliasType(String aliasType) { @@ -636,9 +598,8 @@ public ResponseAdditionalDataCommon aliasType(String aliasType) { } /** - * The type of the card alias. Example: Default - * - * @return aliasType The type of the card alias. Example: Default + * The type of the card alias. Example: Default + * @return aliasType The type of the card alias. Example: Default */ @JsonProperty(JSON_PROPERTY_ALIAS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -647,9 +608,9 @@ public String getAliasType() { } /** - * The type of the card alias. Example: Default + * The type of the card alias. Example: Default * - * @param aliasType The type of the card alias. Example: Default + * @param aliasType The type of the card alias. Example: Default */ @JsonProperty(JSON_PROPERTY_ALIAS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -658,13 +619,9 @@ public void setAliasType(String aliasType) { } /** - * Authorisation code: * When the payment is authorised successfully, this field holds the - * authorisation code for the payment. * When the payment is not authorised, this field is empty. - * Example: 58747 + * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 * - * @param authCode Authorisation code: * When the payment is authorised successfully, this field - * holds the authorisation code for the payment. * When the payment is not authorised, this - * field is empty. Example: 58747 + * @param authCode Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon authCode(String authCode) { @@ -673,13 +630,8 @@ public ResponseAdditionalDataCommon authCode(String authCode) { } /** - * Authorisation code: * When the payment is authorised successfully, this field holds the - * authorisation code for the payment. * When the payment is not authorised, this field is empty. - * Example: 58747 - * - * @return authCode Authorisation code: * When the payment is authorised successfully, this field - * holds the authorisation code for the payment. * When the payment is not authorised, this - * field is empty. Example: 58747 + * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 + * @return authCode Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -688,13 +640,9 @@ public String getAuthCode() { } /** - * Authorisation code: * When the payment is authorised successfully, this field holds the - * authorisation code for the payment. * When the payment is not authorised, this field is empty. - * Example: 58747 + * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 * - * @param authCode Authorisation code: * When the payment is authorised successfully, this field - * holds the authorisation code for the payment. * When the payment is not authorised, this - * field is empty. Example: 58747 + * @param authCode Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -715,7 +663,6 @@ public ResponseAdditionalDataCommon authorisationMid(String authorisationMid) { /** * Merchant ID known by the acquirer. - * * @return authorisationMid Merchant ID known by the acquirer. */ @JsonProperty(JSON_PROPERTY_AUTHORISATION_MID) @@ -736,11 +683,9 @@ public void setAuthorisationMid(String authorisationMid) { } /** - * The currency of the authorised amount, as a three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * - * @param authorisedAmountCurrency The currency of the authorised amount, as a three-character - * [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @param authorisedAmountCurrency The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon authorisedAmountCurrency(String authorisedAmountCurrency) { @@ -749,11 +694,8 @@ public ResponseAdditionalDataCommon authorisedAmountCurrency(String authorisedAm } /** - * The currency of the authorised amount, as a three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). - * - * @return authorisedAmountCurrency The currency of the authorised amount, as a three-character - * [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @return authorisedAmountCurrency The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_AUTHORISED_AMOUNT_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -762,11 +704,9 @@ public String getAuthorisedAmountCurrency() { } /** - * The currency of the authorised amount, as a three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * - * @param authorisedAmountCurrency The currency of the authorised amount, as a three-character - * [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @param authorisedAmountCurrency The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_AUTHORISED_AMOUNT_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -775,12 +715,9 @@ public void setAuthorisedAmountCurrency(String authorisedAmountCurrency) { } /** - * Value of the amount authorised. This amount is represented in minor units according to the - * [following table](https://docs.adyen.com/development-resources/currency-codes). + * Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). * - * @param authorisedAmountValue Value of the amount authorised. This amount is represented in - * minor units according to the [following - * table](https://docs.adyen.com/development-resources/currency-codes). + * @param authorisedAmountValue Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon authorisedAmountValue(String authorisedAmountValue) { @@ -789,12 +726,8 @@ public ResponseAdditionalDataCommon authorisedAmountValue(String authorisedAmoun } /** - * Value of the amount authorised. This amount is represented in minor units according to the - * [following table](https://docs.adyen.com/development-resources/currency-codes). - * - * @return authorisedAmountValue Value of the amount authorised. This amount is represented in - * minor units according to the [following - * table](https://docs.adyen.com/development-resources/currency-codes). + * Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). + * @return authorisedAmountValue Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_AUTHORISED_AMOUNT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -803,12 +736,9 @@ public String getAuthorisedAmountValue() { } /** - * Value of the amount authorised. This amount is represented in minor units according to the - * [following table](https://docs.adyen.com/development-resources/currency-codes). + * Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). * - * @param authorisedAmountValue Value of the amount authorised. This amount is represented in - * minor units according to the [following - * table](https://docs.adyen.com/development-resources/currency-codes). + * @param authorisedAmountValue Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_AUTHORISED_AMOUNT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -817,13 +747,9 @@ public void setAuthorisedAmountValue(String authorisedAmountValue) { } /** - * The AVS result code of the payment, which provides information about the outcome of the AVS - * check. For possible values, see - * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). * - * @param avsResult The AVS result code of the payment, which provides information about the - * outcome of the AVS check. For possible values, see - * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * @param avsResult The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon avsResult(String avsResult) { @@ -832,13 +758,8 @@ public ResponseAdditionalDataCommon avsResult(String avsResult) { } /** - * The AVS result code of the payment, which provides information about the outcome of the AVS - * check. For possible values, see - * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). - * - * @return avsResult The AVS result code of the payment, which provides information about the - * outcome of the AVS check. For possible values, see - * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * @return avsResult The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). */ @JsonProperty(JSON_PROPERTY_AVS_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -847,13 +768,9 @@ public String getAvsResult() { } /** - * The AVS result code of the payment, which provides information about the outcome of the AVS - * check. For possible values, see - * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). * - * @param avsResult The AVS result code of the payment, which provides information about the - * outcome of the AVS check. For possible values, see - * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * @param avsResult The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). */ @JsonProperty(JSON_PROPERTY_AVS_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -862,9 +779,9 @@ public void setAvsResult(String avsResult) { } /** - * Raw AVS result received from the acquirer, where available. Example: D + * Raw AVS result received from the acquirer, where available. Example: D * - * @param avsResultRaw Raw AVS result received from the acquirer, where available. Example: D + * @param avsResultRaw Raw AVS result received from the acquirer, where available. Example: D * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon avsResultRaw(String avsResultRaw) { @@ -873,9 +790,8 @@ public ResponseAdditionalDataCommon avsResultRaw(String avsResultRaw) { } /** - * Raw AVS result received from the acquirer, where available. Example: D - * - * @return avsResultRaw Raw AVS result received from the acquirer, where available. Example: D + * Raw AVS result received from the acquirer, where available. Example: D + * @return avsResultRaw Raw AVS result received from the acquirer, where available. Example: D */ @JsonProperty(JSON_PROPERTY_AVS_RESULT_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -884,9 +800,9 @@ public String getAvsResultRaw() { } /** - * Raw AVS result received from the acquirer, where available. Example: D + * Raw AVS result received from the acquirer, where available. Example: D * - * @param avsResultRaw Raw AVS result received from the acquirer, where available. Example: D + * @param avsResultRaw Raw AVS result received from the acquirer, where available. Example: D */ @JsonProperty(JSON_PROPERTY_AVS_RESULT_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -895,10 +811,9 @@ public void setAvsResultRaw(String avsResultRaw) { } /** - * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. + * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. * - * @param bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit - * transactions. + * @param bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon bic(String bic) { @@ -907,10 +822,8 @@ public ResponseAdditionalDataCommon bic(String bic) { } /** - * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. - * - * @return bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit - * transactions. + * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. + * @return bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. */ @JsonProperty(JSON_PROPERTY_BIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -919,10 +832,9 @@ public String getBic() { } /** - * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. + * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. * - * @param bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit - * transactions. + * @param bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. */ @JsonProperty(JSON_PROPERTY_BIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -943,7 +855,6 @@ public ResponseAdditionalDataCommon coBrandedWith(String coBrandedWith) { /** * Includes the co-branded card information. - * * @return coBrandedWith Includes the co-branded card information. */ @JsonProperty(JSON_PROPERTY_CO_BRANDED_WITH) @@ -976,7 +887,6 @@ public ResponseAdditionalDataCommon cvcResult(String cvcResult) { /** * The result of CVC verification. - * * @return cvcResult The result of CVC verification. */ @JsonProperty(JSON_PROPERTY_CVC_RESULT) @@ -1009,7 +919,6 @@ public ResponseAdditionalDataCommon cvcResultRaw(String cvcResultRaw) { /** * The raw result of CVC verification. - * * @return cvcResultRaw The raw result of CVC verification. */ @JsonProperty(JSON_PROPERTY_CVC_RESULT_RAW) @@ -1030,11 +939,9 @@ public void setCvcResultRaw(String cvcResultRaw) { } /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a - * single transaction. + * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. * - * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the - * DS to identify a single transaction. + * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon dsTransID(String dsTransID) { @@ -1043,11 +950,8 @@ public ResponseAdditionalDataCommon dsTransID(String dsTransID) { } /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a - * single transaction. - * - * @return dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the - * DS to identify a single transaction. + * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. + * @return dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. */ @JsonProperty(JSON_PROPERTY_DS_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1056,11 +960,9 @@ public String getDsTransID() { } /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a - * single transaction. + * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. * - * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the - * DS to identify a single transaction. + * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. */ @JsonProperty(JSON_PROPERTY_DS_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1069,11 +971,9 @@ public void setDsTransID(String dsTransID) { } /** - * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. - * Example: 02 + * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 * - * @param eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment - * session. Example: 02 + * @param eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon eci(String eci) { @@ -1082,11 +982,8 @@ public ResponseAdditionalDataCommon eci(String eci) { } /** - * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. - * Example: 02 - * - * @return eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment - * session. Example: 02 + * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 + * @return eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 */ @JsonProperty(JSON_PROPERTY_ECI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1095,11 +992,9 @@ public String getEci() { } /** - * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. - * Example: 02 + * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 * - * @param eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment - * session. Example: 02 + * @param eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 */ @JsonProperty(JSON_PROPERTY_ECI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1108,10 +1003,9 @@ public void setEci(String eci) { } /** - * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. + * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. * - * @param expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a - * card payment. + * @param expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon expiryDate(String expiryDate) { @@ -1120,10 +1014,8 @@ public ResponseAdditionalDataCommon expiryDate(String expiryDate) { } /** - * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. - * - * @return expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a - * card payment. + * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. + * @return expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. */ @JsonProperty(JSON_PROPERTY_EXPIRY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1132,10 +1024,9 @@ public String getExpiryDate() { } /** - * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. + * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. * - * @param expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a - * card payment. + * @param expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. */ @JsonProperty(JSON_PROPERTY_EXPIRY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1144,11 +1035,9 @@ public void setExpiryDate(String expiryDate) { } /** - * The currency of the extra amount charged due to additional amounts set in the skin used in the - * HPP payment request. Example: EUR + * The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR * - * @param extraCostsCurrency The currency of the extra amount charged due to additional amounts - * set in the skin used in the HPP payment request. Example: EUR + * @param extraCostsCurrency The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon extraCostsCurrency(String extraCostsCurrency) { @@ -1157,11 +1046,8 @@ public ResponseAdditionalDataCommon extraCostsCurrency(String extraCostsCurrency } /** - * The currency of the extra amount charged due to additional amounts set in the skin used in the - * HPP payment request. Example: EUR - * - * @return extraCostsCurrency The currency of the extra amount charged due to additional amounts - * set in the skin used in the HPP payment request. Example: EUR + * The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR + * @return extraCostsCurrency The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR */ @JsonProperty(JSON_PROPERTY_EXTRA_COSTS_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1170,11 +1056,9 @@ public String getExtraCostsCurrency() { } /** - * The currency of the extra amount charged due to additional amounts set in the skin used in the - * HPP payment request. Example: EUR + * The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR * - * @param extraCostsCurrency The currency of the extra amount charged due to additional amounts - * set in the skin used in the HPP payment request. Example: EUR + * @param extraCostsCurrency The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR */ @JsonProperty(JSON_PROPERTY_EXTRA_COSTS_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1183,11 +1067,9 @@ public void setExtraCostsCurrency(String extraCostsCurrency) { } /** - * The value of the extra amount charged due to additional amounts set in the skin used in the HPP - * payment request. The amount is in minor units. + * The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. * - * @param extraCostsValue The value of the extra amount charged due to additional amounts set in - * the skin used in the HPP payment request. The amount is in minor units. + * @param extraCostsValue The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon extraCostsValue(String extraCostsValue) { @@ -1196,11 +1078,8 @@ public ResponseAdditionalDataCommon extraCostsValue(String extraCostsValue) { } /** - * The value of the extra amount charged due to additional amounts set in the skin used in the HPP - * payment request. The amount is in minor units. - * - * @return extraCostsValue The value of the extra amount charged due to additional amounts set in - * the skin used in the HPP payment request. The amount is in minor units. + * The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. + * @return extraCostsValue The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. */ @JsonProperty(JSON_PROPERTY_EXTRA_COSTS_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1209,11 +1088,9 @@ public String getExtraCostsValue() { } /** - * The value of the extra amount charged due to additional amounts set in the skin used in the HPP - * payment request. The amount is in minor units. + * The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. * - * @param extraCostsValue The value of the extra amount charged due to additional amounts set in - * the skin used in the HPP payment request. The amount is in minor units. + * @param extraCostsValue The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. */ @JsonProperty(JSON_PROPERTY_EXTRA_COSTS_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1222,25 +1099,19 @@ public void setExtraCostsValue(String extraCostsValue) { } /** - * The fraud score due to a particular fraud check. The fraud check name is found in the key of - * the key-value pair. + * The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. * - * @param fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The - * fraud check name is found in the key of the key-value pair. + * @param fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon fraudCheckItemNrFraudCheckname( - String fraudCheckItemNrFraudCheckname) { + public ResponseAdditionalDataCommon fraudCheckItemNrFraudCheckname(String fraudCheckItemNrFraudCheckname) { this.fraudCheckItemNrFraudCheckname = fraudCheckItemNrFraudCheckname; return this; } /** - * The fraud score due to a particular fraud check. The fraud check name is found in the key of - * the key-value pair. - * - * @return fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The - * fraud check name is found in the key of the key-value pair. + * The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. + * @return fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. */ @JsonProperty(JSON_PROPERTY_FRAUD_CHECK_ITEM_NR_FRAUD_CHECKNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1249,11 +1120,9 @@ public String getFraudCheckItemNrFraudCheckname() { } /** - * The fraud score due to a particular fraud check. The fraud check name is found in the key of - * the key-value pair. + * The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. * - * @param fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The - * fraud check name is found in the key of the key-value pair. + * @param fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. */ @JsonProperty(JSON_PROPERTY_FRAUD_CHECK_ITEM_NR_FRAUD_CHECKNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1274,7 +1143,6 @@ public ResponseAdditionalDataCommon fraudManualReview(String fraudManualReview) /** * Indicates if the payment is sent to manual review. - * * @return fraudManualReview Indicates if the payment is sent to manual review. */ @JsonProperty(JSON_PROPERTY_FRAUD_MANUAL_REVIEW) @@ -1307,7 +1175,6 @@ public ResponseAdditionalDataCommon fraudResultType(FraudResultTypeEnum fraudRes /** * The fraud result properties of the payment. - * * @return fraudResultType The fraud result properties of the payment. */ @JsonProperty(JSON_PROPERTY_FRAUD_RESULT_TYPE) @@ -1328,16 +1195,9 @@ public void setFraudResultType(FraudResultTypeEnum fraudResultType) { } /** - * The risk level of the transaction as classified by the [machine - * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) - * fraud risk rule. The risk level indicates the likelihood that a transaction will result in a - * fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh * - * @param fraudRiskLevel The risk level of the transaction as classified by the [machine - * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) - * fraud risk rule. The risk level indicates the likelihood that a transaction will result in - * a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * - * veryHigh + * @param fraudRiskLevel The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon fraudRiskLevel(FraudRiskLevelEnum fraudRiskLevel) { @@ -1346,16 +1206,8 @@ public ResponseAdditionalDataCommon fraudRiskLevel(FraudRiskLevelEnum fraudRiskL } /** - * The risk level of the transaction as classified by the [machine - * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) - * fraud risk rule. The risk level indicates the likelihood that a transaction will result in a - * fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh - * - * @return fraudRiskLevel The risk level of the transaction as classified by the [machine - * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) - * fraud risk rule. The risk level indicates the likelihood that a transaction will result in - * a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * - * veryHigh + * The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * @return fraudRiskLevel The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh */ @JsonProperty(JSON_PROPERTY_FRAUD_RISK_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1364,16 +1216,9 @@ public FraudRiskLevelEnum getFraudRiskLevel() { } /** - * The risk level of the transaction as classified by the [machine - * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) - * fraud risk rule. The risk level indicates the likelihood that a transaction will result in a - * fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh * - * @param fraudRiskLevel The risk level of the transaction as classified by the [machine - * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) - * fraud risk rule. The risk level indicates the likelihood that a transaction will result in - * a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * - * veryHigh + * @param fraudRiskLevel The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh */ @JsonProperty(JSON_PROPERTY_FRAUD_RISK_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1382,18 +1227,9 @@ public void setFraudRiskLevel(FraudRiskLevelEnum fraudRiskLevel) { } /** - * Information regarding the funding type of the card. The possible return values are: * CHARGE * - * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > - * This functionality requires additional configuration on Adyen's end. To enable it, contact - * the Support Team. For receiving this field in the notification, enable **Include Funding - * Source** in **Notifications** > **Additional settings**. + * Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. * - * @param fundingSource Information regarding the funding type of the card. The possible return - * values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * - * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional - * configuration on Adyen's end. To enable it, contact the Support Team. For receiving - * this field in the notification, enable **Include Funding Source** in **Notifications** > - * **Additional settings**. + * @param fundingSource Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon fundingSource(String fundingSource) { @@ -1402,18 +1238,8 @@ public ResponseAdditionalDataCommon fundingSource(String fundingSource) { } /** - * Information regarding the funding type of the card. The possible return values are: * CHARGE * - * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > - * This functionality requires additional configuration on Adyen's end. To enable it, contact - * the Support Team. For receiving this field in the notification, enable **Include Funding - * Source** in **Notifications** > **Additional settings**. - * - * @return fundingSource Information regarding the funding type of the card. The possible return - * values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * - * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional - * configuration on Adyen's end. To enable it, contact the Support Team. For receiving - * this field in the notification, enable **Include Funding Source** in **Notifications** > - * **Additional settings**. + * Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. + * @return fundingSource Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1422,18 +1248,9 @@ public String getFundingSource() { } /** - * Information regarding the funding type of the card. The possible return values are: * CHARGE * - * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > - * This functionality requires additional configuration on Adyen's end. To enable it, contact - * the Support Team. For receiving this field in the notification, enable **Include Funding - * Source** in **Notifications** > **Additional settings**. + * Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. * - * @param fundingSource Information regarding the funding type of the card. The possible return - * values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * - * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional - * configuration on Adyen's end. To enable it, contact the Support Team. For receiving - * this field in the notification, enable **Include Funding Source** in **Notifications** > - * **Additional settings**. + * @param fundingSource Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1442,17 +1259,9 @@ public void setFundingSource(String fundingSource) { } /** - * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * - * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or - * issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you - * verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or - * \"D\". + * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". * - * @param fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds - * are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is - * Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) - * > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is - * \"Y\" or \"D\". + * @param fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon fundsAvailability(String fundsAvailability) { @@ -1461,17 +1270,8 @@ public ResponseAdditionalDataCommon fundsAvailability(String fundsAvailability) } /** - * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * - * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or - * issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you - * verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or - * \"D\". - * - * @return fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds - * are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is - * Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) - * > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is - * \"Y\" or \"D\". + * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". + * @return fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". */ @JsonProperty(JSON_PROPERTY_FUNDS_AVAILABILITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1480,17 +1280,9 @@ public String getFundsAvailability() { } /** - * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * - * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or - * issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you - * verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or - * \"D\". + * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". * - * @param fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds - * are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is - * Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) - * > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is - * \"Y\" or \"D\". + * @param fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". */ @JsonProperty(JSON_PROPERTY_FUNDS_AVAILABILITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1499,26 +1291,9 @@ public void setFundsAvailability(String fundsAvailability) { } /** - * Provides the more granular indication of why a transaction was refused. When a transaction - * fails with either \"Refused\", \"Restricted Card\", \"Transaction Not - * Permitted\", \"Not supported\" or \"DeclinedNon Generic\" - * refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into - * the refusal reason. If an inferred refusal reason is available, the - * `inferredRefusalReason`, field is populated and the `refusalReason`, is set - * to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * - * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * - * Card Updated * Low Authrate Bin * Non-reloadable prepaid card - * - * @param inferredRefusalReason Provides the more granular indication of why a transaction was - * refused. When a transaction fails with either \"Refused\", \"Restricted - * Card\", \"Transaction Not Permitted\", \"Not supported\" or - * \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its - * PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is - * available, the `inferredRefusalReason`, field is populated and the - * `refusalReason`, is set to \"Not Supported\". Possible values: * 3D - * Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not - * Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable - * prepaid card + * Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card + * + * @param inferredRefusalReason Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon inferredRefusalReason(String inferredRefusalReason) { @@ -1527,26 +1302,8 @@ public ResponseAdditionalDataCommon inferredRefusalReason(String inferredRefusal } /** - * Provides the more granular indication of why a transaction was refused. When a transaction - * fails with either \"Refused\", \"Restricted Card\", \"Transaction Not - * Permitted\", \"Not supported\" or \"DeclinedNon Generic\" - * refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into - * the refusal reason. If an inferred refusal reason is available, the - * `inferredRefusalReason`, field is populated and the `refusalReason`, is set - * to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * - * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * - * Card Updated * Low Authrate Bin * Non-reloadable prepaid card - * - * @return inferredRefusalReason Provides the more granular indication of why a transaction was - * refused. When a transaction fails with either \"Refused\", \"Restricted - * Card\", \"Transaction Not Permitted\", \"Not supported\" or - * \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its - * PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is - * available, the `inferredRefusalReason`, field is populated and the - * `refusalReason`, is set to \"Not Supported\". Possible values: * 3D - * Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not - * Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable - * prepaid card + * Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card + * @return inferredRefusalReason Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card */ @JsonProperty(JSON_PROPERTY_INFERRED_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1555,26 +1312,9 @@ public String getInferredRefusalReason() { } /** - * Provides the more granular indication of why a transaction was refused. When a transaction - * fails with either \"Refused\", \"Restricted Card\", \"Transaction Not - * Permitted\", \"Not supported\" or \"DeclinedNon Generic\" - * refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into - * the refusal reason. If an inferred refusal reason is available, the - * `inferredRefusalReason`, field is populated and the `refusalReason`, is set - * to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * - * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * - * Card Updated * Low Authrate Bin * Non-reloadable prepaid card - * - * @param inferredRefusalReason Provides the more granular indication of why a transaction was - * refused. When a transaction fails with either \"Refused\", \"Restricted - * Card\", \"Transaction Not Permitted\", \"Not supported\" or - * \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its - * PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is - * available, the `inferredRefusalReason`, field is populated and the - * `refusalReason`, is set to \"Not Supported\". Possible values: * 3D - * Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not - * Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable - * prepaid card + * Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card + * + * @param inferredRefusalReason Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card */ @JsonProperty(JSON_PROPERTY_INFERRED_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1595,7 +1335,6 @@ public ResponseAdditionalDataCommon isCardCommercial(String isCardCommercial) { /** * Indicates if the card is used for business purposes only. - * * @return isCardCommercial Indicates if the card is used for business purposes only. */ @JsonProperty(JSON_PROPERTY_IS_CARD_COMMERCIAL) @@ -1616,10 +1355,9 @@ public void setIsCardCommercial(String isCardCommercial) { } /** - * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP + * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP * - * @param issuerCountry The issuing country of the card based on the BIN list that Adyen - * maintains. Example: JP + * @param issuerCountry The issuing country of the card based on the BIN list that Adyen maintains. Example: JP * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon issuerCountry(String issuerCountry) { @@ -1628,10 +1366,8 @@ public ResponseAdditionalDataCommon issuerCountry(String issuerCountry) { } /** - * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP - * - * @return issuerCountry The issuing country of the card based on the BIN list that Adyen - * maintains. Example: JP + * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP + * @return issuerCountry The issuing country of the card based on the BIN list that Adyen maintains. Example: JP */ @JsonProperty(JSON_PROPERTY_ISSUER_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1640,10 +1376,9 @@ public String getIssuerCountry() { } /** - * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP + * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP * - * @param issuerCountry The issuing country of the card based on the BIN list that Adyen - * maintains. Example: JP + * @param issuerCountry The issuing country of the card based on the BIN list that Adyen maintains. Example: JP */ @JsonProperty(JSON_PROPERTY_ISSUER_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1654,8 +1389,7 @@ public void setIssuerCountry(String issuerCountry) { /** * A Boolean value indicating whether a liability shift was offered for this payment. * - * @param liabilityShift A Boolean value indicating whether a liability shift was offered for this - * payment. + * @param liabilityShift A Boolean value indicating whether a liability shift was offered for this payment. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon liabilityShift(String liabilityShift) { @@ -1665,9 +1399,7 @@ public ResponseAdditionalDataCommon liabilityShift(String liabilityShift) { /** * A Boolean value indicating whether a liability shift was offered for this payment. - * - * @return liabilityShift A Boolean value indicating whether a liability shift was offered for - * this payment. + * @return liabilityShift A Boolean value indicating whether a liability shift was offered for this payment. */ @JsonProperty(JSON_PROPERTY_LIABILITY_SHIFT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1678,8 +1410,7 @@ public String getLiabilityShift() { /** * A Boolean value indicating whether a liability shift was offered for this payment. * - * @param liabilityShift A Boolean value indicating whether a liability shift was offered for this - * payment. + * @param liabilityShift A Boolean value indicating whether a liability shift was offered for this payment. */ @JsonProperty(JSON_PROPERTY_LIABILITY_SHIFT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1688,12 +1419,9 @@ public void setLiabilityShift(String liabilityShift) { } /** - * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine - * characters long. > Contact Support Team to enable this field. + * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. * - * @param mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six - * characters and a maximum of nine characters long. > Contact Support Team to enable this - * field. + * @param mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon mcBankNetReferenceNumber(String mcBankNetReferenceNumber) { @@ -1702,12 +1430,8 @@ public ResponseAdditionalDataCommon mcBankNetReferenceNumber(String mcBankNetRef } /** - * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine - * characters long. > Contact Support Team to enable this field. - * - * @return mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six - * characters and a maximum of nine characters long. > Contact Support Team to enable this - * field. + * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. + * @return mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. */ @JsonProperty(JSON_PROPERTY_MC_BANK_NET_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1716,12 +1440,9 @@ public String getMcBankNetReferenceNumber() { } /** - * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine - * characters long. > Contact Support Team to enable this field. + * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. * - * @param mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six - * characters and a maximum of nine characters long. > Contact Support Team to enable this - * field. + * @param mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. */ @JsonProperty(JSON_PROPERTY_MC_BANK_NET_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1730,15 +1451,9 @@ public void setMcBankNetReferenceNumber(String mcBankNetReferenceNumber) { } /** - * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If - * present, the MAC contains information about why the payment failed, and whether it can be - * retried. For more information see [Mastercard Merchant Advice - * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). * - * @param merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers - * for refused payments. If present, the MAC contains information about why the payment - * failed, and whether it can be retried. For more information see [Mastercard Merchant Advice - * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * @param merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon merchantAdviceCode(String merchantAdviceCode) { @@ -1747,15 +1462,8 @@ public ResponseAdditionalDataCommon merchantAdviceCode(String merchantAdviceCode } /** - * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If - * present, the MAC contains information about why the payment failed, and whether it can be - * retried. For more information see [Mastercard Merchant Advice - * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). - * - * @return merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers - * for refused payments. If present, the MAC contains information about why the payment - * failed, and whether it can be retried. For more information see [Mastercard Merchant Advice - * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * @return merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). */ @JsonProperty(JSON_PROPERTY_MERCHANT_ADVICE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1764,15 +1472,9 @@ public String getMerchantAdviceCode() { } /** - * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If - * present, the MAC contains information about why the payment failed, and whether it can be - * retried. For more information see [Mastercard Merchant Advice - * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). * - * @param merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers - * for refused payments. If present, the MAC contains information about why the payment - * failed, and whether it can be retried. For more information see [Mastercard Merchant Advice - * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * @param merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). */ @JsonProperty(JSON_PROPERTY_MERCHANT_ADVICE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1793,7 +1495,6 @@ public ResponseAdditionalDataCommon merchantReference(String merchantReference) /** * The reference provided for the transaction. - * * @return merchantReference The reference provided for the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCE) @@ -1814,13 +1515,9 @@ public void setMerchantReference(String merchantReference) { } /** - * Returned in the response if you are not tokenizing with Adyen and are using the - * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either - * the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. * - * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are - * using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This - * contains either the Mastercard Trace ID or the Visa Transaction ID. + * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon networkTxReference(String networkTxReference) { @@ -1829,13 +1526,8 @@ public ResponseAdditionalDataCommon networkTxReference(String networkTxReference } /** - * Returned in the response if you are not tokenizing with Adyen and are using the - * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either - * the Mastercard Trace ID or the Visa Transaction ID. - * - * @return networkTxReference Returned in the response if you are not tokenizing with Adyen and - * are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This - * contains either the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * @return networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. */ @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1844,13 +1536,9 @@ public String getNetworkTxReference() { } /** - * Returned in the response if you are not tokenizing with Adyen and are using the - * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either - * the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. * - * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are - * using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This - * contains either the Mastercard Trace ID or the Visa Transaction ID. + * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. */ @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1859,10 +1547,9 @@ public void setNetworkTxReference(String networkTxReference) { } /** - * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. + * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. * - * @param ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit - * transactions. + * @param ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon ownerName(String ownerName) { @@ -1871,10 +1558,8 @@ public ResponseAdditionalDataCommon ownerName(String ownerName) { } /** - * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. - * - * @return ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit - * transactions. + * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. + * @return ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1883,10 +1568,9 @@ public String getOwnerName() { } /** - * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. + * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. * - * @param ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit - * transactions. + * @param ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1895,12 +1579,9 @@ public void setOwnerName(String ownerName) { } /** - * The Payment Account Reference (PAR) value links a network token with the underlying primary - * account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. + * The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. * - * @param paymentAccountReference The Payment Account Reference (PAR) value links a network token - * with the underlying primary account number (PAN). The PAR value consists of 29 uppercase - * alphanumeric characters. + * @param paymentAccountReference The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon paymentAccountReference(String paymentAccountReference) { @@ -1909,12 +1590,8 @@ public ResponseAdditionalDataCommon paymentAccountReference(String paymentAccoun } /** - * The Payment Account Reference (PAR) value links a network token with the underlying primary - * account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. - * - * @return paymentAccountReference The Payment Account Reference (PAR) value links a network token - * with the underlying primary account number (PAN). The PAR value consists of 29 uppercase - * alphanumeric characters. + * The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. + * @return paymentAccountReference The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACCOUNT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1923,12 +1600,9 @@ public String getPaymentAccountReference() { } /** - * The Payment Account Reference (PAR) value links a network token with the underlying primary - * account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. + * The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. * - * @param paymentAccountReference The Payment Account Reference (PAR) value links a network token - * with the underlying primary account number (PAN). The PAR value consists of 29 uppercase - * alphanumeric characters. + * @param paymentAccountReference The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACCOUNT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1949,7 +1623,6 @@ public ResponseAdditionalDataCommon paymentMethod(String paymentMethod) { /** * The payment method used in the transaction. - * * @return paymentMethod The payment method used in the transaction. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @@ -1970,15 +1643,9 @@ public void setPaymentMethod(String paymentMethod) { } /** - * The Adyen sub-variant of the payment method used for the payment request. For more information, - * refer to - * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). - * Example: mcpro + * The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro * - * @param paymentMethodVariant The Adyen sub-variant of the payment method used for the payment - * request. For more information, refer to - * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). - * Example: mcpro + * @param paymentMethodVariant The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon paymentMethodVariant(String paymentMethodVariant) { @@ -1987,15 +1654,8 @@ public ResponseAdditionalDataCommon paymentMethodVariant(String paymentMethodVar } /** - * The Adyen sub-variant of the payment method used for the payment request. For more information, - * refer to - * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). - * Example: mcpro - * - * @return paymentMethodVariant The Adyen sub-variant of the payment method used for the payment - * request. For more information, refer to - * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). - * Example: mcpro + * The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro + * @return paymentMethodVariant The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2004,15 +1664,9 @@ public String getPaymentMethodVariant() { } /** - * The Adyen sub-variant of the payment method used for the payment request. For more information, - * refer to - * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). - * Example: mcpro + * The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro * - * @param paymentMethodVariant The Adyen sub-variant of the payment method used for the payment - * request. For more information, refer to - * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). - * Example: mcpro + * @param paymentMethodVariant The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2021,14 +1675,9 @@ public void setPaymentMethodVariant(String paymentMethodVariant) { } /** - * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * - * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" - * (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) + * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) * - * @param payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * - * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) - * * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" - * (unknown) + * @param payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon payoutEligible(String payoutEligible) { @@ -2037,14 +1686,8 @@ public ResponseAdditionalDataCommon payoutEligible(String payoutEligible) { } /** - * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * - * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" - * (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) - * - * @return payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * - * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) - * * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" - * (unknown) + * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) + * @return payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) */ @JsonProperty(JSON_PROPERTY_PAYOUT_ELIGIBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2053,14 +1696,9 @@ public String getPayoutEligible() { } /** - * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * - * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" - * (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) + * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) * - * @param payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * - * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) - * * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" - * (unknown) + * @param payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) */ @JsonProperty(JSON_PROPERTY_PAYOUT_ELIGIBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2069,27 +1707,19 @@ public void setPayoutEligible(String payoutEligible) { } /** - * The response code from the Real Time Account Updater service. Possible return values are: * - * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder + * The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder * - * @param realtimeAccountUpdaterStatus The response code from the Real Time Account Updater - * service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * - * ContactCardAccountHolder + * @param realtimeAccountUpdaterStatus The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon realtimeAccountUpdaterStatus( - String realtimeAccountUpdaterStatus) { + public ResponseAdditionalDataCommon realtimeAccountUpdaterStatus(String realtimeAccountUpdaterStatus) { this.realtimeAccountUpdaterStatus = realtimeAccountUpdaterStatus; return this; } /** - * The response code from the Real Time Account Updater service. Possible return values are: * - * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder - * - * @return realtimeAccountUpdaterStatus The response code from the Real Time Account Updater - * service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * - * ContactCardAccountHolder + * The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder + * @return realtimeAccountUpdaterStatus The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder */ @JsonProperty(JSON_PROPERTY_REALTIME_ACCOUNT_UPDATER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2098,12 +1728,9 @@ public String getRealtimeAccountUpdaterStatus() { } /** - * The response code from the Real Time Account Updater service. Possible return values are: * - * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder + * The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder * - * @param realtimeAccountUpdaterStatus The response code from the Real Time Account Updater - * service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * - * ContactCardAccountHolder + * @param realtimeAccountUpdaterStatus The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder */ @JsonProperty(JSON_PROPERTY_REALTIME_ACCOUNT_UPDATER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2124,7 +1751,6 @@ public ResponseAdditionalDataCommon receiptFreeText(String receiptFreeText) { /** * Message to be displayed on the terminal. - * * @return receiptFreeText Message to be displayed on the terminal. */ @JsonProperty(JSON_PROPERTY_RECEIPT_FREE_TEXT) @@ -2157,7 +1783,6 @@ public ResponseAdditionalDataCommon recurringContractTypes(String recurringContr /** * The recurring contract types applicable to the transaction. - * * @return recurringContractTypes The recurring contract types applicable to the transaction. */ @JsonProperty(JSON_PROPERTY_RECURRING_CONTRACT_TYPES) @@ -2178,29 +1803,19 @@ public void setRecurringContractTypes(String recurringContractTypes) { } /** - * The `pspReference`, of the first recurring payment that created the recurring detail. - * This functionality requires additional configuration on Adyen's end. To enable it, contact - * the Support Team. + * The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. * - * @param recurringFirstPspReference The `pspReference`, of the first recurring payment - * that created the recurring detail. This functionality requires additional configuration on - * Adyen's end. To enable it, contact the Support Team. + * @param recurringFirstPspReference The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon recurringFirstPspReference( - String recurringFirstPspReference) { + public ResponseAdditionalDataCommon recurringFirstPspReference(String recurringFirstPspReference) { this.recurringFirstPspReference = recurringFirstPspReference; return this; } /** - * The `pspReference`, of the first recurring payment that created the recurring detail. - * This functionality requires additional configuration on Adyen's end. To enable it, contact - * the Support Team. - * - * @return recurringFirstPspReference The `pspReference`, of the first recurring payment - * that created the recurring detail. This functionality requires additional configuration on - * Adyen's end. To enable it, contact the Support Team. + * The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. + * @return recurringFirstPspReference The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. */ @JsonProperty(JSON_PROPERTY_RECURRING_FIRST_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2209,13 +1824,9 @@ public String getRecurringFirstPspReference() { } /** - * The `pspReference`, of the first recurring payment that created the recurring detail. - * This functionality requires additional configuration on Adyen's end. To enable it, contact - * the Support Team. + * The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. * - * @param recurringFirstPspReference The `pspReference`, of the first recurring payment - * that created the recurring detail. This functionality requires additional configuration on - * Adyen's end. To enable it, contact the Support Team. + * @param recurringFirstPspReference The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. */ @JsonProperty(JSON_PROPERTY_RECURRING_FIRST_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2226,29 +1837,24 @@ public void setRecurringFirstPspReference(String recurringFirstPspReference) { /** * The reference that uniquely identifies the recurring transaction. * - * @param recurringRecurringDetailReference The reference that uniquely identifies the recurring - * transaction. + * @param recurringRecurringDetailReference The reference that uniquely identifies the recurring transaction. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining - * @deprecated since Adyen Payout API v68 Use tokenization.storedPaymentMethodId instead. + * + * @deprecated since Adyen Payout API v68 + * Use tokenization.storedPaymentMethodId instead. */ - @Deprecated // deprecated since Adyen Payout API v68: Use tokenization.storedPaymentMethodId - // instead. - public ResponseAdditionalDataCommon recurringRecurringDetailReference( - String recurringRecurringDetailReference) { + @Deprecated // deprecated since Adyen Payout API v68: Use tokenization.storedPaymentMethodId instead. + public ResponseAdditionalDataCommon recurringRecurringDetailReference(String recurringRecurringDetailReference) { this.recurringRecurringDetailReference = recurringRecurringDetailReference; return this; } /** * The reference that uniquely identifies the recurring transaction. - * - * @return recurringRecurringDetailReference The reference that uniquely identifies the recurring - * transaction. - * @deprecated // deprecated since Adyen Payout API v68: Use tokenization.storedPaymentMethodId - * instead. + * @return recurringRecurringDetailReference The reference that uniquely identifies the recurring transaction. + * @deprecated // deprecated since Adyen Payout API v68: Use tokenization.storedPaymentMethodId instead. */ - @Deprecated // deprecated since Adyen Payout API v68: Use tokenization.storedPaymentMethodId - // instead. + @Deprecated // deprecated since Adyen Payout API v68: Use tokenization.storedPaymentMethodId instead. @JsonProperty(JSON_PROPERTY_RECURRING_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringRecurringDetailReference() { @@ -2258,12 +1864,12 @@ public String getRecurringRecurringDetailReference() { /** * The reference that uniquely identifies the recurring transaction. * - * @param recurringRecurringDetailReference The reference that uniquely identifies the recurring - * transaction. - * @deprecated since Adyen Payout API v68 Use tokenization.storedPaymentMethodId instead. + * @param recurringRecurringDetailReference The reference that uniquely identifies the recurring transaction. + * + * @deprecated since Adyen Payout API v68 + * Use tokenization.storedPaymentMethodId instead. */ - @Deprecated // deprecated since Adyen Payout API v68: Use tokenization.storedPaymentMethodId - // instead. + @Deprecated // deprecated since Adyen Payout API v68: Use tokenization.storedPaymentMethodId instead. @JsonProperty(JSON_PROPERTY_RECURRING_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringRecurringDetailReference(String recurringRecurringDetailReference) { @@ -2273,10 +1879,11 @@ public void setRecurringRecurringDetailReference(String recurringRecurringDetail /** * The provided reference of the shopper for a recurring transaction. * - * @param recurringShopperReference The provided reference of the shopper for a recurring - * transaction. + * @param recurringShopperReference The provided reference of the shopper for a recurring transaction. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining - * @deprecated since Adyen Payout API v68 Use tokenization.shopperReference instead. + * + * @deprecated since Adyen Payout API v68 + * Use tokenization.shopperReference instead. */ @Deprecated // deprecated since Adyen Payout API v68: Use tokenization.shopperReference instead. public ResponseAdditionalDataCommon recurringShopperReference(String recurringShopperReference) { @@ -2286,11 +1893,8 @@ public ResponseAdditionalDataCommon recurringShopperReference(String recurringSh /** * The provided reference of the shopper for a recurring transaction. - * - * @return recurringShopperReference The provided reference of the shopper for a recurring - * transaction. - * @deprecated // deprecated since Adyen Payout API v68: Use tokenization.shopperReference - * instead. + * @return recurringShopperReference The provided reference of the shopper for a recurring transaction. + * @deprecated // deprecated since Adyen Payout API v68: Use tokenization.shopperReference instead. */ @Deprecated // deprecated since Adyen Payout API v68: Use tokenization.shopperReference instead. @JsonProperty(JSON_PROPERTY_RECURRING_SHOPPER_REFERENCE) @@ -2302,9 +1906,10 @@ public String getRecurringShopperReference() { /** * The provided reference of the shopper for a recurring transaction. * - * @param recurringShopperReference The provided reference of the shopper for a recurring - * transaction. - * @deprecated since Adyen Payout API v68 Use tokenization.shopperReference instead. + * @param recurringShopperReference The provided reference of the shopper for a recurring transaction. + * + * @deprecated since Adyen Payout API v68 + * Use tokenization.shopperReference instead. */ @Deprecated // deprecated since Adyen Payout API v68: Use tokenization.shopperReference instead. @JsonProperty(JSON_PROPERTY_RECURRING_SHOPPER_REFERENCE) @@ -2319,15 +1924,13 @@ public void setRecurringShopperReference(String recurringShopperReference) { * @param recurringProcessingModel The processing model used for the recurring transaction. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon recurringProcessingModel( - RecurringProcessingModelEnum recurringProcessingModel) { + public ResponseAdditionalDataCommon recurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) { this.recurringProcessingModel = recurringProcessingModel; return this; } /** * The processing model used for the recurring transaction. - * * @return recurringProcessingModel The processing model used for the recurring transaction. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @@ -2348,12 +1951,9 @@ public void setRecurringProcessingModel(RecurringProcessingModelEnum recurringPr } /** - * If the payment is referred, this field is set to true. This field is unavailable if the payment - * is referred and is usually not returned with ecommerce transactions. Example: true + * If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true * - * @param referred If the payment is referred, this field is set to true. This field is - * unavailable if the payment is referred and is usually not returned with ecommerce - * transactions. Example: true + * @param referred If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon referred(String referred) { @@ -2362,12 +1962,8 @@ public ResponseAdditionalDataCommon referred(String referred) { } /** - * If the payment is referred, this field is set to true. This field is unavailable if the payment - * is referred and is usually not returned with ecommerce transactions. Example: true - * - * @return referred If the payment is referred, this field is set to true. This field is - * unavailable if the payment is referred and is usually not returned with ecommerce - * transactions. Example: true + * If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true + * @return referred If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true */ @JsonProperty(JSON_PROPERTY_REFERRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2376,12 +1972,9 @@ public String getReferred() { } /** - * If the payment is referred, this field is set to true. This field is unavailable if the payment - * is referred and is usually not returned with ecommerce transactions. Example: true + * If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true * - * @param referred If the payment is referred, this field is set to true. This field is - * unavailable if the payment is referred and is usually not returned with ecommerce - * transactions. Example: true + * @param referred If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true */ @JsonProperty(JSON_PROPERTY_REFERRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2390,10 +1983,9 @@ public void setReferred(String referred) { } /** - * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED + * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED * - * @param refusalReasonRaw Raw refusal reason received from the acquirer, where available. - * Example: AUTHORISED + * @param refusalReasonRaw Raw refusal reason received from the acquirer, where available. Example: AUTHORISED * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon refusalReasonRaw(String refusalReasonRaw) { @@ -2402,10 +1994,8 @@ public ResponseAdditionalDataCommon refusalReasonRaw(String refusalReasonRaw) { } /** - * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED - * - * @return refusalReasonRaw Raw refusal reason received from the acquirer, where available. - * Example: AUTHORISED + * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED + * @return refusalReasonRaw Raw refusal reason received from the acquirer, where available. Example: AUTHORISED */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2414,10 +2004,9 @@ public String getRefusalReasonRaw() { } /** - * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED + * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED * - * @param refusalReasonRaw Raw refusal reason received from the acquirer, where available. - * Example: AUTHORISED + * @param refusalReasonRaw Raw refusal reason received from the acquirer, where available. Example: AUTHORISED */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2438,7 +2027,6 @@ public ResponseAdditionalDataCommon requestAmount(String requestAmount) { /** * The amount of the payment request. - * * @return requestAmount The amount of the payment request. */ @JsonProperty(JSON_PROPERTY_REQUEST_AMOUNT) @@ -2471,7 +2059,6 @@ public ResponseAdditionalDataCommon requestCurrencyCode(String requestCurrencyCo /** * The currency of the payment request. - * * @return requestCurrencyCode The currency of the payment request. */ @JsonProperty(JSON_PROPERTY_REQUEST_CURRENCY_CODE) @@ -2492,10 +2079,9 @@ public void setRequestCurrencyCode(String requestCurrencyCode) { } /** - * The shopper interaction type of the payment request. Example: Ecommerce + * The shopper interaction type of the payment request. Example: Ecommerce * - * @param shopperInteraction The shopper interaction type of the payment request. Example: - * Ecommerce + * @param shopperInteraction The shopper interaction type of the payment request. Example: Ecommerce * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon shopperInteraction(String shopperInteraction) { @@ -2504,10 +2090,8 @@ public ResponseAdditionalDataCommon shopperInteraction(String shopperInteraction } /** - * The shopper interaction type of the payment request. Example: Ecommerce - * - * @return shopperInteraction The shopper interaction type of the payment request. Example: - * Ecommerce + * The shopper interaction type of the payment request. Example: Ecommerce + * @return shopperInteraction The shopper interaction type of the payment request. Example: Ecommerce */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2516,10 +2100,9 @@ public String getShopperInteraction() { } /** - * The shopper interaction type of the payment request. Example: Ecommerce + * The shopper interaction type of the payment request. Example: Ecommerce * - * @param shopperInteraction The shopper interaction type of the payment request. Example: - * Ecommerce + * @param shopperInteraction The shopper interaction type of the payment request. Example: Ecommerce */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2528,10 +2111,9 @@ public void setShopperInteraction(String shopperInteraction) { } /** - * The shopperReference passed in the payment request. Example: AdyenTestShopperXX + * The shopperReference passed in the payment request. Example: AdyenTestShopperXX * - * @param shopperReference The shopperReference passed in the payment request. Example: - * AdyenTestShopperXX + * @param shopperReference The shopperReference passed in the payment request. Example: AdyenTestShopperXX * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon shopperReference(String shopperReference) { @@ -2540,10 +2122,8 @@ public ResponseAdditionalDataCommon shopperReference(String shopperReference) { } /** - * The shopperReference passed in the payment request. Example: AdyenTestShopperXX - * - * @return shopperReference The shopperReference passed in the payment request. Example: - * AdyenTestShopperXX + * The shopperReference passed in the payment request. Example: AdyenTestShopperXX + * @return shopperReference The shopperReference passed in the payment request. Example: AdyenTestShopperXX */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2552,10 +2132,9 @@ public String getShopperReference() { } /** - * The shopperReference passed in the payment request. Example: AdyenTestShopperXX + * The shopperReference passed in the payment request. Example: AdyenTestShopperXX * - * @param shopperReference The shopperReference passed in the payment request. Example: - * AdyenTestShopperXX + * @param shopperReference The shopperReference passed in the payment request. Example: AdyenTestShopperXX */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2564,9 +2143,9 @@ public void setShopperReference(String shopperReference) { } /** - * The terminal ID used in a point-of-sale payment. Example: 06022622 + * The terminal ID used in a point-of-sale payment. Example: 06022622 * - * @param terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 + * @param terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon terminalId(String terminalId) { @@ -2575,9 +2154,8 @@ public ResponseAdditionalDataCommon terminalId(String terminalId) { } /** - * The terminal ID used in a point-of-sale payment. Example: 06022622 - * - * @return terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 + * The terminal ID used in a point-of-sale payment. Example: 06022622 + * @return terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 */ @JsonProperty(JSON_PROPERTY_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2586,9 +2164,9 @@ public String getTerminalId() { } /** - * The terminal ID used in a point-of-sale payment. Example: 06022622 + * The terminal ID used in a point-of-sale payment. Example: 06022622 * - * @param terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 + * @param terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 */ @JsonProperty(JSON_PROPERTY_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2597,11 +2175,9 @@ public void setTerminalId(String terminalId) { } /** - * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: - * true + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true * - * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed - * on this payment. Example: true + * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon threeDAuthenticated(String threeDAuthenticated) { @@ -2610,11 +2186,8 @@ public ResponseAdditionalDataCommon threeDAuthenticated(String threeDAuthenticat } /** - * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: - * true - * - * @return threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed - * on this payment. Example: true + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + * @return threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2623,11 +2196,9 @@ public String getThreeDAuthenticated() { } /** - * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: - * true + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true * - * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed - * on this payment. Example: true + * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2636,23 +2207,19 @@ public void setThreeDAuthenticated(String threeDAuthenticated) { } /** - * The raw 3DS authentication result from the card issuer. Example: N + * The raw 3DS authentication result from the card issuer. Example: N * - * @param threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. - * Example: N + * @param threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. Example: N * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon threeDAuthenticatedResponse( - String threeDAuthenticatedResponse) { + public ResponseAdditionalDataCommon threeDAuthenticatedResponse(String threeDAuthenticatedResponse) { this.threeDAuthenticatedResponse = threeDAuthenticatedResponse; return this; } /** - * The raw 3DS authentication result from the card issuer. Example: N - * - * @return threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. - * Example: N + * The raw 3DS authentication result from the card issuer. Example: N + * @return threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. Example: N */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2661,10 +2228,9 @@ public String getThreeDAuthenticatedResponse() { } /** - * The raw 3DS authentication result from the card issuer. Example: N + * The raw 3DS authentication result from the card issuer. Example: N * - * @param threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. - * Example: N + * @param threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. Example: N */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2673,10 +2239,9 @@ public void setThreeDAuthenticatedResponse(String threeDAuthenticatedResponse) { } /** - * A Boolean value indicating whether 3DS was offered for this payment. Example: true + * A Boolean value indicating whether 3DS was offered for this payment. Example: true * - * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. - * Example: true + * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. Example: true * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon threeDOffered(String threeDOffered) { @@ -2685,10 +2250,8 @@ public ResponseAdditionalDataCommon threeDOffered(String threeDOffered) { } /** - * A Boolean value indicating whether 3DS was offered for this payment. Example: true - * - * @return threeDOffered A Boolean value indicating whether 3DS was offered for this payment. - * Example: true + * A Boolean value indicating whether 3DS was offered for this payment. Example: true + * @return threeDOffered A Boolean value indicating whether 3DS was offered for this payment. Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2697,10 +2260,9 @@ public String getThreeDOffered() { } /** - * A Boolean value indicating whether 3DS was offered for this payment. Example: true + * A Boolean value indicating whether 3DS was offered for this payment. Example: true * - * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. - * Example: true + * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2709,10 +2271,9 @@ public void setThreeDOffered(String threeDOffered) { } /** - * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y + * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y * - * @param threeDOfferedResponse The raw enrollment result from the 3DS directory services of the - * card schemes. Example: Y + * @param threeDOfferedResponse The raw enrollment result from the 3DS directory services of the card schemes. Example: Y * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon threeDOfferedResponse(String threeDOfferedResponse) { @@ -2721,10 +2282,8 @@ public ResponseAdditionalDataCommon threeDOfferedResponse(String threeDOfferedRe } /** - * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y - * - * @return threeDOfferedResponse The raw enrollment result from the 3DS directory services of the - * card schemes. Example: Y + * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y + * @return threeDOfferedResponse The raw enrollment result from the 3DS directory services of the card schemes. Example: Y */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2733,10 +2292,9 @@ public String getThreeDOfferedResponse() { } /** - * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y + * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y * - * @param threeDOfferedResponse The raw enrollment result from the 3DS directory services of the - * card schemes. Example: Y + * @param threeDOfferedResponse The raw enrollment result from the 3DS directory services of the card schemes. Example: Y */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2757,7 +2315,6 @@ public ResponseAdditionalDataCommon threeDSVersion(String threeDSVersion) { /** * The 3D Secure 2 version. - * * @return threeDSVersion The 3D Secure 2 version. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_VERSION) @@ -2780,21 +2337,17 @@ public void setThreeDSVersion(String threeDSVersion) { /** * The reference for the shopper that you sent when tokenizing the payment details. * - * @param tokenizationShopperReference The reference for the shopper that you sent when tokenizing - * the payment details. + * @param tokenizationShopperReference The reference for the shopper that you sent when tokenizing the payment details. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon tokenizationShopperReference( - String tokenizationShopperReference) { + public ResponseAdditionalDataCommon tokenizationShopperReference(String tokenizationShopperReference) { this.tokenizationShopperReference = tokenizationShopperReference; return this; } /** * The reference for the shopper that you sent when tokenizing the payment details. - * - * @return tokenizationShopperReference The reference for the shopper that you sent when - * tokenizing the payment details. + * @return tokenizationShopperReference The reference for the shopper that you sent when tokenizing the payment details. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2805,8 +2358,7 @@ public String getTokenizationShopperReference() { /** * The reference for the shopper that you sent when tokenizing the payment details. * - * @param tokenizationShopperReference The reference for the shopper that you sent when tokenizing - * the payment details. + * @param tokenizationShopperReference The reference for the shopper that you sent when tokenizing the payment details. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2815,29 +2367,19 @@ public void setTokenizationShopperReference(String tokenizationShopperReference) } /** - * The operation performed on the token. Possible values: * **created**: the token has been - * created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details - * have already been stored. + * The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. * - * @param tokenizationStoreOperationType The operation performed on the token. Possible values: * - * **created**: the token has been created. * **updated**: the existing token has been - * updated. * **alreadyExisting**: the details have already been stored. + * @param tokenizationStoreOperationType The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon tokenizationStoreOperationType( - TokenizationStoreOperationTypeEnum tokenizationStoreOperationType) { + public ResponseAdditionalDataCommon tokenizationStoreOperationType(TokenizationStoreOperationTypeEnum tokenizationStoreOperationType) { this.tokenizationStoreOperationType = tokenizationStoreOperationType; return this; } /** - * The operation performed on the token. Possible values: * **created**: the token has been - * created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details - * have already been stored. - * - * @return tokenizationStoreOperationType The operation performed on the token. Possible values: * - * **created**: the token has been created. * **updated**: the existing token has been - * updated. * **alreadyExisting**: the details have already been stored. + * The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. + * @return tokenizationStoreOperationType The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_STORE_OPERATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2846,39 +2388,30 @@ public TokenizationStoreOperationTypeEnum getTokenizationStoreOperationType() { } /** - * The operation performed on the token. Possible values: * **created**: the token has been - * created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details - * have already been stored. + * The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. * - * @param tokenizationStoreOperationType The operation performed on the token. Possible values: * - * **created**: the token has been created. * **updated**: the existing token has been - * updated. * **alreadyExisting**: the details have already been stored. + * @param tokenizationStoreOperationType The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_STORE_OPERATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTokenizationStoreOperationType( - TokenizationStoreOperationTypeEnum tokenizationStoreOperationType) { + public void setTokenizationStoreOperationType(TokenizationStoreOperationTypeEnum tokenizationStoreOperationType) { this.tokenizationStoreOperationType = tokenizationStoreOperationType; } /** * The reference that uniquely identifies tokenized payment details. * - * @param tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized - * payment details. + * @param tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized payment details. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon tokenizationStoredPaymentMethodId( - String tokenizationStoredPaymentMethodId) { + public ResponseAdditionalDataCommon tokenizationStoredPaymentMethodId(String tokenizationStoredPaymentMethodId) { this.tokenizationStoredPaymentMethodId = tokenizationStoredPaymentMethodId; return this; } /** * The reference that uniquely identifies tokenized payment details. - * - * @return tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized - * payment details. + * @return tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized payment details. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2889,8 +2422,7 @@ public String getTokenizationStoredPaymentMethodId() { /** * The reference that uniquely identifies tokenized payment details. * - * @param tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized - * payment details. + * @param tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized payment details. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2899,11 +2431,9 @@ public void setTokenizationStoredPaymentMethodId(String tokenizationStoredPaymen } /** - * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact - * Support Team to enable this field. + * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. * - * @param visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric - * characters. > Contact Support Team to enable this field. + * @param visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon visaTransactionId(String visaTransactionId) { @@ -2912,11 +2442,8 @@ public ResponseAdditionalDataCommon visaTransactionId(String visaTransactionId) } /** - * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact - * Support Team to enable this field. - * - * @return visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric - * characters. > Contact Support Team to enable this field. + * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. + * @return visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. */ @JsonProperty(JSON_PROPERTY_VISA_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2925,11 +2452,9 @@ public String getVisaTransactionId() { } /** - * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact - * Support Team to enable this field. + * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. * - * @param visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric - * characters. > Contact Support Team to enable this field. + * @param visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. */ @JsonProperty(JSON_PROPERTY_VISA_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2938,13 +2463,9 @@ public void setVisaTransactionId(String visaTransactionId) { } /** - * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded - * and is returned for transactions with directoryResponse 'N' or 'Y'. Example: - * ODgxNDc2MDg2MDExODk5MAAAAAA= + * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= * - * @param xid The 3DS transaction ID of the 3DS session sent in notifications. The value is - * Base64-encoded and is returned for transactions with directoryResponse 'N' or - * 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= + * @param xid The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon xid(String xid) { @@ -2953,13 +2474,8 @@ public ResponseAdditionalDataCommon xid(String xid) { } /** - * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded - * and is returned for transactions with directoryResponse 'N' or 'Y'. Example: - * ODgxNDc2MDg2MDExODk5MAAAAAA= - * - * @return xid The 3DS transaction ID of the 3DS session sent in notifications. The value is - * Base64-encoded and is returned for transactions with directoryResponse 'N' or - * 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= + * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= + * @return xid The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= */ @JsonProperty(JSON_PROPERTY_XID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2968,13 +2484,9 @@ public String getXid() { } /** - * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded - * and is returned for transactions with directoryResponse 'N' or 'Y'. Example: - * ODgxNDc2MDg2MDExODk5MAAAAAA= + * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= * - * @param xid The 3DS transaction ID of the 3DS session sent in notifications. The value is - * Base64-encoded and is returned for transactions with directoryResponse 'N' or - * 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= + * @param xid The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= */ @JsonProperty(JSON_PROPERTY_XID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2982,7 +2494,9 @@ public void setXid(String xid) { this.xid = xid; } - /** Return true if this ResponseAdditionalDataCommon object is equal to o. */ + /** + * Return true if this ResponseAdditionalDataCommon object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -2992,187 +2506,89 @@ public boolean equals(Object o) { return false; } ResponseAdditionalDataCommon responseAdditionalDataCommon = (ResponseAdditionalDataCommon) o; - return Objects.equals( - this.acquirerAccountCode, responseAdditionalDataCommon.acquirerAccountCode) - && Objects.equals(this.acquirerCode, responseAdditionalDataCommon.acquirerCode) - && Objects.equals(this.acquirerReference, responseAdditionalDataCommon.acquirerReference) - && Objects.equals(this.alias, responseAdditionalDataCommon.alias) - && Objects.equals(this.aliasType, responseAdditionalDataCommon.aliasType) - && Objects.equals(this.authCode, responseAdditionalDataCommon.authCode) - && Objects.equals(this.authorisationMid, responseAdditionalDataCommon.authorisationMid) - && Objects.equals( - this.authorisedAmountCurrency, responseAdditionalDataCommon.authorisedAmountCurrency) - && Objects.equals( - this.authorisedAmountValue, responseAdditionalDataCommon.authorisedAmountValue) - && Objects.equals(this.avsResult, responseAdditionalDataCommon.avsResult) - && Objects.equals(this.avsResultRaw, responseAdditionalDataCommon.avsResultRaw) - && Objects.equals(this.bic, responseAdditionalDataCommon.bic) - && Objects.equals(this.coBrandedWith, responseAdditionalDataCommon.coBrandedWith) - && Objects.equals(this.cvcResult, responseAdditionalDataCommon.cvcResult) - && Objects.equals(this.cvcResultRaw, responseAdditionalDataCommon.cvcResultRaw) - && Objects.equals(this.dsTransID, responseAdditionalDataCommon.dsTransID) - && Objects.equals(this.eci, responseAdditionalDataCommon.eci) - && Objects.equals(this.expiryDate, responseAdditionalDataCommon.expiryDate) - && Objects.equals(this.extraCostsCurrency, responseAdditionalDataCommon.extraCostsCurrency) - && Objects.equals(this.extraCostsValue, responseAdditionalDataCommon.extraCostsValue) - && Objects.equals( - this.fraudCheckItemNrFraudCheckname, - responseAdditionalDataCommon.fraudCheckItemNrFraudCheckname) - && Objects.equals(this.fraudManualReview, responseAdditionalDataCommon.fraudManualReview) - && Objects.equals(this.fraudResultType, responseAdditionalDataCommon.fraudResultType) - && Objects.equals(this.fraudRiskLevel, responseAdditionalDataCommon.fraudRiskLevel) - && Objects.equals(this.fundingSource, responseAdditionalDataCommon.fundingSource) - && Objects.equals(this.fundsAvailability, responseAdditionalDataCommon.fundsAvailability) - && Objects.equals( - this.inferredRefusalReason, responseAdditionalDataCommon.inferredRefusalReason) - && Objects.equals(this.isCardCommercial, responseAdditionalDataCommon.isCardCommercial) - && Objects.equals(this.issuerCountry, responseAdditionalDataCommon.issuerCountry) - && Objects.equals(this.liabilityShift, responseAdditionalDataCommon.liabilityShift) - && Objects.equals( - this.mcBankNetReferenceNumber, responseAdditionalDataCommon.mcBankNetReferenceNumber) - && Objects.equals(this.merchantAdviceCode, responseAdditionalDataCommon.merchantAdviceCode) - && Objects.equals(this.merchantReference, responseAdditionalDataCommon.merchantReference) - && Objects.equals(this.networkTxReference, responseAdditionalDataCommon.networkTxReference) - && Objects.equals(this.ownerName, responseAdditionalDataCommon.ownerName) - && Objects.equals( - this.paymentAccountReference, responseAdditionalDataCommon.paymentAccountReference) - && Objects.equals(this.paymentMethod, responseAdditionalDataCommon.paymentMethod) - && Objects.equals( - this.paymentMethodVariant, responseAdditionalDataCommon.paymentMethodVariant) - && Objects.equals(this.payoutEligible, responseAdditionalDataCommon.payoutEligible) - && Objects.equals( - this.realtimeAccountUpdaterStatus, - responseAdditionalDataCommon.realtimeAccountUpdaterStatus) - && Objects.equals(this.receiptFreeText, responseAdditionalDataCommon.receiptFreeText) - && Objects.equals( - this.recurringContractTypes, responseAdditionalDataCommon.recurringContractTypes) - && Objects.equals( - this.recurringFirstPspReference, - responseAdditionalDataCommon.recurringFirstPspReference) - && Objects.equals( - this.recurringRecurringDetailReference, - responseAdditionalDataCommon.recurringRecurringDetailReference) - && Objects.equals( - this.recurringShopperReference, responseAdditionalDataCommon.recurringShopperReference) - && Objects.equals( - this.recurringProcessingModel, responseAdditionalDataCommon.recurringProcessingModel) - && Objects.equals(this.referred, responseAdditionalDataCommon.referred) - && Objects.equals(this.refusalReasonRaw, responseAdditionalDataCommon.refusalReasonRaw) - && Objects.equals(this.requestAmount, responseAdditionalDataCommon.requestAmount) - && Objects.equals( - this.requestCurrencyCode, responseAdditionalDataCommon.requestCurrencyCode) - && Objects.equals(this.shopperInteraction, responseAdditionalDataCommon.shopperInteraction) - && Objects.equals(this.shopperReference, responseAdditionalDataCommon.shopperReference) - && Objects.equals(this.terminalId, responseAdditionalDataCommon.terminalId) - && Objects.equals( - this.threeDAuthenticated, responseAdditionalDataCommon.threeDAuthenticated) - && Objects.equals( - this.threeDAuthenticatedResponse, - responseAdditionalDataCommon.threeDAuthenticatedResponse) - && Objects.equals(this.threeDOffered, responseAdditionalDataCommon.threeDOffered) - && Objects.equals( - this.threeDOfferedResponse, responseAdditionalDataCommon.threeDOfferedResponse) - && Objects.equals(this.threeDSVersion, responseAdditionalDataCommon.threeDSVersion) - && Objects.equals( - this.tokenizationShopperReference, - responseAdditionalDataCommon.tokenizationShopperReference) - && Objects.equals( - this.tokenizationStoreOperationType, - responseAdditionalDataCommon.tokenizationStoreOperationType) - && Objects.equals( - this.tokenizationStoredPaymentMethodId, - responseAdditionalDataCommon.tokenizationStoredPaymentMethodId) - && Objects.equals(this.visaTransactionId, responseAdditionalDataCommon.visaTransactionId) - && Objects.equals(this.xid, responseAdditionalDataCommon.xid); + return Objects.equals(this.acquirerAccountCode, responseAdditionalDataCommon.acquirerAccountCode) && + Objects.equals(this.acquirerCode, responseAdditionalDataCommon.acquirerCode) && + Objects.equals(this.acquirerReference, responseAdditionalDataCommon.acquirerReference) && + Objects.equals(this.alias, responseAdditionalDataCommon.alias) && + Objects.equals(this.aliasType, responseAdditionalDataCommon.aliasType) && + Objects.equals(this.authCode, responseAdditionalDataCommon.authCode) && + Objects.equals(this.authorisationMid, responseAdditionalDataCommon.authorisationMid) && + Objects.equals(this.authorisedAmountCurrency, responseAdditionalDataCommon.authorisedAmountCurrency) && + Objects.equals(this.authorisedAmountValue, responseAdditionalDataCommon.authorisedAmountValue) && + Objects.equals(this.avsResult, responseAdditionalDataCommon.avsResult) && + Objects.equals(this.avsResultRaw, responseAdditionalDataCommon.avsResultRaw) && + Objects.equals(this.bic, responseAdditionalDataCommon.bic) && + Objects.equals(this.coBrandedWith, responseAdditionalDataCommon.coBrandedWith) && + Objects.equals(this.cvcResult, responseAdditionalDataCommon.cvcResult) && + Objects.equals(this.cvcResultRaw, responseAdditionalDataCommon.cvcResultRaw) && + Objects.equals(this.dsTransID, responseAdditionalDataCommon.dsTransID) && + Objects.equals(this.eci, responseAdditionalDataCommon.eci) && + Objects.equals(this.expiryDate, responseAdditionalDataCommon.expiryDate) && + Objects.equals(this.extraCostsCurrency, responseAdditionalDataCommon.extraCostsCurrency) && + Objects.equals(this.extraCostsValue, responseAdditionalDataCommon.extraCostsValue) && + Objects.equals(this.fraudCheckItemNrFraudCheckname, responseAdditionalDataCommon.fraudCheckItemNrFraudCheckname) && + Objects.equals(this.fraudManualReview, responseAdditionalDataCommon.fraudManualReview) && + Objects.equals(this.fraudResultType, responseAdditionalDataCommon.fraudResultType) && + Objects.equals(this.fraudRiskLevel, responseAdditionalDataCommon.fraudRiskLevel) && + Objects.equals(this.fundingSource, responseAdditionalDataCommon.fundingSource) && + Objects.equals(this.fundsAvailability, responseAdditionalDataCommon.fundsAvailability) && + Objects.equals(this.inferredRefusalReason, responseAdditionalDataCommon.inferredRefusalReason) && + Objects.equals(this.isCardCommercial, responseAdditionalDataCommon.isCardCommercial) && + Objects.equals(this.issuerCountry, responseAdditionalDataCommon.issuerCountry) && + Objects.equals(this.liabilityShift, responseAdditionalDataCommon.liabilityShift) && + Objects.equals(this.mcBankNetReferenceNumber, responseAdditionalDataCommon.mcBankNetReferenceNumber) && + Objects.equals(this.merchantAdviceCode, responseAdditionalDataCommon.merchantAdviceCode) && + Objects.equals(this.merchantReference, responseAdditionalDataCommon.merchantReference) && + Objects.equals(this.networkTxReference, responseAdditionalDataCommon.networkTxReference) && + Objects.equals(this.ownerName, responseAdditionalDataCommon.ownerName) && + Objects.equals(this.paymentAccountReference, responseAdditionalDataCommon.paymentAccountReference) && + Objects.equals(this.paymentMethod, responseAdditionalDataCommon.paymentMethod) && + Objects.equals(this.paymentMethodVariant, responseAdditionalDataCommon.paymentMethodVariant) && + Objects.equals(this.payoutEligible, responseAdditionalDataCommon.payoutEligible) && + Objects.equals(this.realtimeAccountUpdaterStatus, responseAdditionalDataCommon.realtimeAccountUpdaterStatus) && + Objects.equals(this.receiptFreeText, responseAdditionalDataCommon.receiptFreeText) && + Objects.equals(this.recurringContractTypes, responseAdditionalDataCommon.recurringContractTypes) && + Objects.equals(this.recurringFirstPspReference, responseAdditionalDataCommon.recurringFirstPspReference) && + Objects.equals(this.recurringRecurringDetailReference, responseAdditionalDataCommon.recurringRecurringDetailReference) && + Objects.equals(this.recurringShopperReference, responseAdditionalDataCommon.recurringShopperReference) && + Objects.equals(this.recurringProcessingModel, responseAdditionalDataCommon.recurringProcessingModel) && + Objects.equals(this.referred, responseAdditionalDataCommon.referred) && + Objects.equals(this.refusalReasonRaw, responseAdditionalDataCommon.refusalReasonRaw) && + Objects.equals(this.requestAmount, responseAdditionalDataCommon.requestAmount) && + Objects.equals(this.requestCurrencyCode, responseAdditionalDataCommon.requestCurrencyCode) && + Objects.equals(this.shopperInteraction, responseAdditionalDataCommon.shopperInteraction) && + Objects.equals(this.shopperReference, responseAdditionalDataCommon.shopperReference) && + Objects.equals(this.terminalId, responseAdditionalDataCommon.terminalId) && + Objects.equals(this.threeDAuthenticated, responseAdditionalDataCommon.threeDAuthenticated) && + Objects.equals(this.threeDAuthenticatedResponse, responseAdditionalDataCommon.threeDAuthenticatedResponse) && + Objects.equals(this.threeDOffered, responseAdditionalDataCommon.threeDOffered) && + Objects.equals(this.threeDOfferedResponse, responseAdditionalDataCommon.threeDOfferedResponse) && + Objects.equals(this.threeDSVersion, responseAdditionalDataCommon.threeDSVersion) && + Objects.equals(this.tokenizationShopperReference, responseAdditionalDataCommon.tokenizationShopperReference) && + Objects.equals(this.tokenizationStoreOperationType, responseAdditionalDataCommon.tokenizationStoreOperationType) && + Objects.equals(this.tokenizationStoredPaymentMethodId, responseAdditionalDataCommon.tokenizationStoredPaymentMethodId) && + Objects.equals(this.visaTransactionId, responseAdditionalDataCommon.visaTransactionId) && + Objects.equals(this.xid, responseAdditionalDataCommon.xid); } @Override public int hashCode() { - return Objects.hash( - acquirerAccountCode, - acquirerCode, - acquirerReference, - alias, - aliasType, - authCode, - authorisationMid, - authorisedAmountCurrency, - authorisedAmountValue, - avsResult, - avsResultRaw, - bic, - coBrandedWith, - cvcResult, - cvcResultRaw, - dsTransID, - eci, - expiryDate, - extraCostsCurrency, - extraCostsValue, - fraudCheckItemNrFraudCheckname, - fraudManualReview, - fraudResultType, - fraudRiskLevel, - fundingSource, - fundsAvailability, - inferredRefusalReason, - isCardCommercial, - issuerCountry, - liabilityShift, - mcBankNetReferenceNumber, - merchantAdviceCode, - merchantReference, - networkTxReference, - ownerName, - paymentAccountReference, - paymentMethod, - paymentMethodVariant, - payoutEligible, - realtimeAccountUpdaterStatus, - receiptFreeText, - recurringContractTypes, - recurringFirstPspReference, - recurringRecurringDetailReference, - recurringShopperReference, - recurringProcessingModel, - referred, - refusalReasonRaw, - requestAmount, - requestCurrencyCode, - shopperInteraction, - shopperReference, - terminalId, - threeDAuthenticated, - threeDAuthenticatedResponse, - threeDOffered, - threeDOfferedResponse, - threeDSVersion, - tokenizationShopperReference, - tokenizationStoreOperationType, - tokenizationStoredPaymentMethodId, - visaTransactionId, - xid); + return Objects.hash(acquirerAccountCode, acquirerCode, acquirerReference, alias, aliasType, authCode, authorisationMid, authorisedAmountCurrency, authorisedAmountValue, avsResult, avsResultRaw, bic, coBrandedWith, cvcResult, cvcResultRaw, dsTransID, eci, expiryDate, extraCostsCurrency, extraCostsValue, fraudCheckItemNrFraudCheckname, fraudManualReview, fraudResultType, fraudRiskLevel, fundingSource, fundsAvailability, inferredRefusalReason, isCardCommercial, issuerCountry, liabilityShift, mcBankNetReferenceNumber, merchantAdviceCode, merchantReference, networkTxReference, ownerName, paymentAccountReference, paymentMethod, paymentMethodVariant, payoutEligible, realtimeAccountUpdaterStatus, receiptFreeText, recurringContractTypes, recurringFirstPspReference, recurringRecurringDetailReference, recurringShopperReference, recurringProcessingModel, referred, refusalReasonRaw, requestAmount, requestCurrencyCode, shopperInteraction, shopperReference, terminalId, threeDAuthenticated, threeDAuthenticatedResponse, threeDOffered, threeDOfferedResponse, threeDSVersion, tokenizationShopperReference, tokenizationStoreOperationType, tokenizationStoredPaymentMethodId, visaTransactionId, xid); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataCommon {\n"); - sb.append(" acquirerAccountCode: ") - .append(toIndentedString(acquirerAccountCode)) - .append("\n"); + sb.append(" acquirerAccountCode: ").append(toIndentedString(acquirerAccountCode)).append("\n"); sb.append(" acquirerCode: ").append(toIndentedString(acquirerCode)).append("\n"); sb.append(" acquirerReference: ").append(toIndentedString(acquirerReference)).append("\n"); sb.append(" alias: ").append(toIndentedString(alias)).append("\n"); sb.append(" aliasType: ").append(toIndentedString(aliasType)).append("\n"); sb.append(" authCode: ").append(toIndentedString(authCode)).append("\n"); sb.append(" authorisationMid: ").append(toIndentedString(authorisationMid)).append("\n"); - sb.append(" authorisedAmountCurrency: ") - .append(toIndentedString(authorisedAmountCurrency)) - .append("\n"); - sb.append(" authorisedAmountValue: ") - .append(toIndentedString(authorisedAmountValue)) - .append("\n"); + sb.append(" authorisedAmountCurrency: ").append(toIndentedString(authorisedAmountCurrency)).append("\n"); + sb.append(" authorisedAmountValue: ").append(toIndentedString(authorisedAmountValue)).append("\n"); sb.append(" avsResult: ").append(toIndentedString(avsResult)).append("\n"); sb.append(" avsResultRaw: ").append(toIndentedString(avsResultRaw)).append("\n"); sb.append(" bic: ").append(toIndentedString(bic)).append("\n"); @@ -3184,83 +2600,47 @@ public String toString() { sb.append(" expiryDate: ").append(toIndentedString(expiryDate)).append("\n"); sb.append(" extraCostsCurrency: ").append(toIndentedString(extraCostsCurrency)).append("\n"); sb.append(" extraCostsValue: ").append(toIndentedString(extraCostsValue)).append("\n"); - sb.append(" fraudCheckItemNrFraudCheckname: ") - .append(toIndentedString(fraudCheckItemNrFraudCheckname)) - .append("\n"); + sb.append(" fraudCheckItemNrFraudCheckname: ").append(toIndentedString(fraudCheckItemNrFraudCheckname)).append("\n"); sb.append(" fraudManualReview: ").append(toIndentedString(fraudManualReview)).append("\n"); sb.append(" fraudResultType: ").append(toIndentedString(fraudResultType)).append("\n"); sb.append(" fraudRiskLevel: ").append(toIndentedString(fraudRiskLevel)).append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); sb.append(" fundsAvailability: ").append(toIndentedString(fundsAvailability)).append("\n"); - sb.append(" inferredRefusalReason: ") - .append(toIndentedString(inferredRefusalReason)) - .append("\n"); + sb.append(" inferredRefusalReason: ").append(toIndentedString(inferredRefusalReason)).append("\n"); sb.append(" isCardCommercial: ").append(toIndentedString(isCardCommercial)).append("\n"); sb.append(" issuerCountry: ").append(toIndentedString(issuerCountry)).append("\n"); sb.append(" liabilityShift: ").append(toIndentedString(liabilityShift)).append("\n"); - sb.append(" mcBankNetReferenceNumber: ") - .append(toIndentedString(mcBankNetReferenceNumber)) - .append("\n"); + sb.append(" mcBankNetReferenceNumber: ").append(toIndentedString(mcBankNetReferenceNumber)).append("\n"); sb.append(" merchantAdviceCode: ").append(toIndentedString(merchantAdviceCode)).append("\n"); sb.append(" merchantReference: ").append(toIndentedString(merchantReference)).append("\n"); sb.append(" networkTxReference: ").append(toIndentedString(networkTxReference)).append("\n"); sb.append(" ownerName: ").append(toIndentedString(ownerName)).append("\n"); - sb.append(" paymentAccountReference: ") - .append(toIndentedString(paymentAccountReference)) - .append("\n"); + sb.append(" paymentAccountReference: ").append(toIndentedString(paymentAccountReference)).append("\n"); sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n"); - sb.append(" paymentMethodVariant: ") - .append(toIndentedString(paymentMethodVariant)) - .append("\n"); + sb.append(" paymentMethodVariant: ").append(toIndentedString(paymentMethodVariant)).append("\n"); sb.append(" payoutEligible: ").append(toIndentedString(payoutEligible)).append("\n"); - sb.append(" realtimeAccountUpdaterStatus: ") - .append(toIndentedString(realtimeAccountUpdaterStatus)) - .append("\n"); + sb.append(" realtimeAccountUpdaterStatus: ").append(toIndentedString(realtimeAccountUpdaterStatus)).append("\n"); sb.append(" receiptFreeText: ").append(toIndentedString(receiptFreeText)).append("\n"); - sb.append(" recurringContractTypes: ") - .append(toIndentedString(recurringContractTypes)) - .append("\n"); - sb.append(" recurringFirstPspReference: ") - .append(toIndentedString(recurringFirstPspReference)) - .append("\n"); - sb.append(" recurringRecurringDetailReference: ") - .append(toIndentedString(recurringRecurringDetailReference)) - .append("\n"); - sb.append(" recurringShopperReference: ") - .append(toIndentedString(recurringShopperReference)) - .append("\n"); - sb.append(" recurringProcessingModel: ") - .append(toIndentedString(recurringProcessingModel)) - .append("\n"); + sb.append(" recurringContractTypes: ").append(toIndentedString(recurringContractTypes)).append("\n"); + sb.append(" recurringFirstPspReference: ").append(toIndentedString(recurringFirstPspReference)).append("\n"); + sb.append(" recurringRecurringDetailReference: ").append(toIndentedString(recurringRecurringDetailReference)).append("\n"); + sb.append(" recurringShopperReference: ").append(toIndentedString(recurringShopperReference)).append("\n"); + sb.append(" recurringProcessingModel: ").append(toIndentedString(recurringProcessingModel)).append("\n"); sb.append(" referred: ").append(toIndentedString(referred)).append("\n"); sb.append(" refusalReasonRaw: ").append(toIndentedString(refusalReasonRaw)).append("\n"); sb.append(" requestAmount: ").append(toIndentedString(requestAmount)).append("\n"); - sb.append(" requestCurrencyCode: ") - .append(toIndentedString(requestCurrencyCode)) - .append("\n"); + sb.append(" requestCurrencyCode: ").append(toIndentedString(requestCurrencyCode)).append("\n"); sb.append(" shopperInteraction: ").append(toIndentedString(shopperInteraction)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append(" terminalId: ").append(toIndentedString(terminalId)).append("\n"); - sb.append(" threeDAuthenticated: ") - .append(toIndentedString(threeDAuthenticated)) - .append("\n"); - sb.append(" threeDAuthenticatedResponse: ") - .append(toIndentedString(threeDAuthenticatedResponse)) - .append("\n"); + sb.append(" threeDAuthenticated: ").append(toIndentedString(threeDAuthenticated)).append("\n"); + sb.append(" threeDAuthenticatedResponse: ").append(toIndentedString(threeDAuthenticatedResponse)).append("\n"); sb.append(" threeDOffered: ").append(toIndentedString(threeDOffered)).append("\n"); - sb.append(" threeDOfferedResponse: ") - .append(toIndentedString(threeDOfferedResponse)) - .append("\n"); + sb.append(" threeDOfferedResponse: ").append(toIndentedString(threeDOfferedResponse)).append("\n"); sb.append(" threeDSVersion: ").append(toIndentedString(threeDSVersion)).append("\n"); - sb.append(" tokenizationShopperReference: ") - .append(toIndentedString(tokenizationShopperReference)) - .append("\n"); - sb.append(" tokenizationStoreOperationType: ") - .append(toIndentedString(tokenizationStoreOperationType)) - .append("\n"); - sb.append(" tokenizationStoredPaymentMethodId: ") - .append(toIndentedString(tokenizationStoredPaymentMethodId)) - .append("\n"); + sb.append(" tokenizationShopperReference: ").append(toIndentedString(tokenizationShopperReference)).append("\n"); + sb.append(" tokenizationStoreOperationType: ").append(toIndentedString(tokenizationStoreOperationType)).append("\n"); + sb.append(" tokenizationStoredPaymentMethodId: ").append(toIndentedString(tokenizationStoredPaymentMethodId)).append("\n"); sb.append(" visaTransactionId: ").append(toIndentedString(visaTransactionId)).append("\n"); sb.append(" xid: ").append(toIndentedString(xid)).append("\n"); sb.append("}"); @@ -3268,7 +2648,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -3277,24 +2658,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResponseAdditionalDataCommon given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataCommon - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ResponseAdditionalDataCommon + * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataCommon */ - public static ResponseAdditionalDataCommon fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataCommon fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataCommon.class); } - - /** - * Convert an instance of ResponseAdditionalDataCommon to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResponseAdditionalDataCommon to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataDomesticError.java b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataDomesticError.java index 048a526e7..0678f6634 100644 --- a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataDomesticError.java +++ b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataDomesticError.java @@ -2,26 +2,36 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ResponseAdditionalDataDomesticError */ + +/** + * ResponseAdditionalDataDomesticError + */ @JsonPropertyOrder({ ResponseAdditionalDataDomesticError.JSON_PROPERTY_DOMESTIC_REFUSAL_REASON_RAW, ResponseAdditionalDataDomesticError.JSON_PROPERTY_DOMESTIC_SHOPPER_ADVICE }) + public class ResponseAdditionalDataDomesticError { public static final String JSON_PROPERTY_DOMESTIC_REFUSAL_REASON_RAW = "domesticRefusalReasonRaw"; private String domesticRefusalReasonRaw; @@ -29,29 +39,23 @@ public class ResponseAdditionalDataDomesticError { public static final String JSON_PROPERTY_DOMESTIC_SHOPPER_ADVICE = "domesticShopperAdvice"; private String domesticShopperAdvice; - public ResponseAdditionalDataDomesticError() {} + public ResponseAdditionalDataDomesticError() { + } /** - * The reason the transaction was declined, given by the local issuer. Currently available for - * merchants in Japan. + * The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. * - * @param domesticRefusalReasonRaw The reason the transaction was declined, given by the local - * issuer. Currently available for merchants in Japan. - * @return the current {@code ResponseAdditionalDataDomesticError} instance, allowing for method - * chaining + * @param domesticRefusalReasonRaw The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. + * @return the current {@code ResponseAdditionalDataDomesticError} instance, allowing for method chaining */ - public ResponseAdditionalDataDomesticError domesticRefusalReasonRaw( - String domesticRefusalReasonRaw) { + public ResponseAdditionalDataDomesticError domesticRefusalReasonRaw(String domesticRefusalReasonRaw) { this.domesticRefusalReasonRaw = domesticRefusalReasonRaw; return this; } /** - * The reason the transaction was declined, given by the local issuer. Currently available for - * merchants in Japan. - * - * @return domesticRefusalReasonRaw The reason the transaction was declined, given by the local - * issuer. Currently available for merchants in Japan. + * The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. + * @return domesticRefusalReasonRaw The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. */ @JsonProperty(JSON_PROPERTY_DOMESTIC_REFUSAL_REASON_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,11 +64,9 @@ public String getDomesticRefusalReasonRaw() { } /** - * The reason the transaction was declined, given by the local issuer. Currently available for - * merchants in Japan. + * The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. * - * @param domesticRefusalReasonRaw The reason the transaction was declined, given by the local - * issuer. Currently available for merchants in Japan. + * @param domesticRefusalReasonRaw The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. */ @JsonProperty(JSON_PROPERTY_DOMESTIC_REFUSAL_REASON_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -73,13 +75,10 @@ public void setDomesticRefusalReasonRaw(String domesticRefusalReasonRaw) { } /** - * The action the shopper should take, in a local language. Currently available in Japanese, for - * merchants in Japan. + * The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. * - * @param domesticShopperAdvice The action the shopper should take, in a local language. Currently - * available in Japanese, for merchants in Japan. - * @return the current {@code ResponseAdditionalDataDomesticError} instance, allowing for method - * chaining + * @param domesticShopperAdvice The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. + * @return the current {@code ResponseAdditionalDataDomesticError} instance, allowing for method chaining */ public ResponseAdditionalDataDomesticError domesticShopperAdvice(String domesticShopperAdvice) { this.domesticShopperAdvice = domesticShopperAdvice; @@ -87,11 +86,8 @@ public ResponseAdditionalDataDomesticError domesticShopperAdvice(String domestic } /** - * The action the shopper should take, in a local language. Currently available in Japanese, for - * merchants in Japan. - * - * @return domesticShopperAdvice The action the shopper should take, in a local language. - * Currently available in Japanese, for merchants in Japan. + * The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. + * @return domesticShopperAdvice The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. */ @JsonProperty(JSON_PROPERTY_DOMESTIC_SHOPPER_ADVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,11 +96,9 @@ public String getDomesticShopperAdvice() { } /** - * The action the shopper should take, in a local language. Currently available in Japanese, for - * merchants in Japan. + * The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. * - * @param domesticShopperAdvice The action the shopper should take, in a local language. Currently - * available in Japanese, for merchants in Japan. + * @param domesticShopperAdvice The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. */ @JsonProperty(JSON_PROPERTY_DOMESTIC_SHOPPER_ADVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,7 +106,9 @@ public void setDomesticShopperAdvice(String domesticShopperAdvice) { this.domesticShopperAdvice = domesticShopperAdvice; } - /** Return true if this ResponseAdditionalDataDomesticError object is equal to o. */ + /** + * Return true if this ResponseAdditionalDataDomesticError object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -121,13 +117,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResponseAdditionalDataDomesticError responseAdditionalDataDomesticError = - (ResponseAdditionalDataDomesticError) o; - return Objects.equals( - this.domesticRefusalReasonRaw, - responseAdditionalDataDomesticError.domesticRefusalReasonRaw) - && Objects.equals( - this.domesticShopperAdvice, responseAdditionalDataDomesticError.domesticShopperAdvice); + ResponseAdditionalDataDomesticError responseAdditionalDataDomesticError = (ResponseAdditionalDataDomesticError) o; + return Objects.equals(this.domesticRefusalReasonRaw, responseAdditionalDataDomesticError.domesticRefusalReasonRaw) && + Objects.equals(this.domesticShopperAdvice, responseAdditionalDataDomesticError.domesticShopperAdvice); } @Override @@ -139,18 +131,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataDomesticError {\n"); - sb.append(" domesticRefusalReasonRaw: ") - .append(toIndentedString(domesticRefusalReasonRaw)) - .append("\n"); - sb.append(" domesticShopperAdvice: ") - .append(toIndentedString(domesticShopperAdvice)) - .append("\n"); + sb.append(" domesticRefusalReasonRaw: ").append(toIndentedString(domesticRefusalReasonRaw)).append("\n"); + sb.append(" domesticShopperAdvice: ").append(toIndentedString(domesticShopperAdvice)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -159,24 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResponseAdditionalDataDomesticError given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataDomesticError - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ResponseAdditionalDataDomesticError + * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataDomesticError */ - public static ResponseAdditionalDataDomesticError fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataDomesticError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataDomesticError.class); } - - /** - * Convert an instance of ResponseAdditionalDataDomesticError to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResponseAdditionalDataDomesticError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataInstallments.java b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataInstallments.java index c9c7745c4..3215b47c5 100644 --- a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataInstallments.java +++ b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataInstallments.java @@ -2,121 +2,100 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ResponseAdditionalDataInstallments */ + +/** + * ResponseAdditionalDataInstallments + */ @JsonPropertyOrder({ ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_INSTALLMENT_TYPE, - ResponseAdditionalDataInstallments - .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE, - ResponseAdditionalDataInstallments - .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT, - ResponseAdditionalDataInstallments - .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE, - ResponseAdditionalDataInstallments - .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE, - ResponseAdditionalDataInstallments - .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS, - ResponseAdditionalDataInstallments - .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS, - ResponseAdditionalDataInstallments - .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS, - ResponseAdditionalDataInstallments - .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT, - ResponseAdditionalDataInstallments - .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE, + ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE, + ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT, + ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE, + ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE, + ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS, + ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS, + ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS, + ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT, + ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE, ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_PAYMENT_OPTIONS, ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENTS_VALUE }) + public class ResponseAdditionalDataInstallments { - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_INSTALLMENT_TYPE = - "installmentPaymentData.installmentType"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_INSTALLMENT_TYPE = "installmentPaymentData.installmentType"; private String installmentPaymentDataInstallmentType; - public static final String - JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE = - "installmentPaymentData.option[itemNr].annualPercentageRate"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE = "installmentPaymentData.option[itemNr].annualPercentageRate"; private String installmentPaymentDataOptionItemNrAnnualPercentageRate; - public static final String - JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT = - "installmentPaymentData.option[itemNr].firstInstallmentAmount"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT = "installmentPaymentData.option[itemNr].firstInstallmentAmount"; private String installmentPaymentDataOptionItemNrFirstInstallmentAmount; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE = - "installmentPaymentData.option[itemNr].installmentFee"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE = "installmentPaymentData.option[itemNr].installmentFee"; private String installmentPaymentDataOptionItemNrInstallmentFee; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE = - "installmentPaymentData.option[itemNr].interestRate"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE = "installmentPaymentData.option[itemNr].interestRate"; private String installmentPaymentDataOptionItemNrInterestRate; - public static final String - JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS = - "installmentPaymentData.option[itemNr].maximumNumberOfInstallments"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS = "installmentPaymentData.option[itemNr].maximumNumberOfInstallments"; private String installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; - public static final String - JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS = - "installmentPaymentData.option[itemNr].minimumNumberOfInstallments"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS = "installmentPaymentData.option[itemNr].minimumNumberOfInstallments"; private String installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; - public static final String - JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS = - "installmentPaymentData.option[itemNr].numberOfInstallments"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS = "installmentPaymentData.option[itemNr].numberOfInstallments"; private String installmentPaymentDataOptionItemNrNumberOfInstallments; - public static final String - JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT = - "installmentPaymentData.option[itemNr].subsequentInstallmentAmount"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT = "installmentPaymentData.option[itemNr].subsequentInstallmentAmount"; private String installmentPaymentDataOptionItemNrSubsequentInstallmentAmount; - public static final String - JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE = - "installmentPaymentData.option[itemNr].totalAmountDue"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE = "installmentPaymentData.option[itemNr].totalAmountDue"; private String installmentPaymentDataOptionItemNrTotalAmountDue; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_PAYMENT_OPTIONS = - "installmentPaymentData.paymentOptions"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_PAYMENT_OPTIONS = "installmentPaymentData.paymentOptions"; private String installmentPaymentDataPaymentOptions; public static final String JSON_PROPERTY_INSTALLMENTS_VALUE = "installments.value"; private String installmentsValue; - public ResponseAdditionalDataInstallments() {} + public ResponseAdditionalDataInstallments() { + } /** * Type of installment. The value of `installmentType` should be **IssuerFinanced**. * - * @param installmentPaymentDataInstallmentType Type of installment. The value of - * `installmentType` should be **IssuerFinanced**. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining + * @param installmentPaymentDataInstallmentType Type of installment. The value of `installmentType` should be **IssuerFinanced**. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataInstallmentType( - String installmentPaymentDataInstallmentType) { + public ResponseAdditionalDataInstallments installmentPaymentDataInstallmentType(String installmentPaymentDataInstallmentType) { this.installmentPaymentDataInstallmentType = installmentPaymentDataInstallmentType; return this; } /** * Type of installment. The value of `installmentType` should be **IssuerFinanced**. - * - * @return installmentPaymentDataInstallmentType Type of installment. The value of - * `installmentType` should be **IssuerFinanced**. + * @return installmentPaymentDataInstallmentType Type of installment. The value of `installmentType` should be **IssuerFinanced**. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_INSTALLMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,13 +106,11 @@ public String getInstallmentPaymentDataInstallmentType() { /** * Type of installment. The value of `installmentType` should be **IssuerFinanced**. * - * @param installmentPaymentDataInstallmentType Type of installment. The value of - * `installmentType` should be **IssuerFinanced**. + * @param installmentPaymentDataInstallmentType Type of installment. The value of `installmentType` should be **IssuerFinanced**. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_INSTALLMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataInstallmentType( - String installmentPaymentDataInstallmentType) { + public void setInstallmentPaymentDataInstallmentType(String installmentPaymentDataInstallmentType) { this.installmentPaymentDataInstallmentType = installmentPaymentDataInstallmentType; } @@ -141,19 +118,15 @@ public void setInstallmentPaymentDataInstallmentType( * Annual interest rate. * * @param installmentPaymentDataOptionItemNrAnnualPercentageRate Annual interest rate. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrAnnualPercentageRate( - String installmentPaymentDataOptionItemNrAnnualPercentageRate) { - this.installmentPaymentDataOptionItemNrAnnualPercentageRate = - installmentPaymentDataOptionItemNrAnnualPercentageRate; + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrAnnualPercentageRate(String installmentPaymentDataOptionItemNrAnnualPercentageRate) { + this.installmentPaymentDataOptionItemNrAnnualPercentageRate = installmentPaymentDataOptionItemNrAnnualPercentageRate; return this; } /** * Annual interest rate. - * * @return installmentPaymentDataOptionItemNrAnnualPercentageRate Annual interest rate. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE) @@ -169,33 +142,24 @@ public String getInstallmentPaymentDataOptionItemNrAnnualPercentageRate() { */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrAnnualPercentageRate( - String installmentPaymentDataOptionItemNrAnnualPercentageRate) { - this.installmentPaymentDataOptionItemNrAnnualPercentageRate = - installmentPaymentDataOptionItemNrAnnualPercentageRate; + public void setInstallmentPaymentDataOptionItemNrAnnualPercentageRate(String installmentPaymentDataOptionItemNrAnnualPercentageRate) { + this.installmentPaymentDataOptionItemNrAnnualPercentageRate = installmentPaymentDataOptionItemNrAnnualPercentageRate; } /** * First Installment Amount in minor units. * - * @param installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in - * minor units. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining - */ - public ResponseAdditionalDataInstallments - installmentPaymentDataOptionItemNrFirstInstallmentAmount( - String installmentPaymentDataOptionItemNrFirstInstallmentAmount) { - this.installmentPaymentDataOptionItemNrFirstInstallmentAmount = - installmentPaymentDataOptionItemNrFirstInstallmentAmount; + * @param installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in minor units. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + */ + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrFirstInstallmentAmount(String installmentPaymentDataOptionItemNrFirstInstallmentAmount) { + this.installmentPaymentDataOptionItemNrFirstInstallmentAmount = installmentPaymentDataOptionItemNrFirstInstallmentAmount; return this; } /** * First Installment Amount in minor units. - * - * @return installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in - * minor units. + * @return installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -206,34 +170,27 @@ public String getInstallmentPaymentDataOptionItemNrFirstInstallmentAmount() { /** * First Installment Amount in minor units. * - * @param installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in - * minor units. + * @param installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrFirstInstallmentAmount( - String installmentPaymentDataOptionItemNrFirstInstallmentAmount) { - this.installmentPaymentDataOptionItemNrFirstInstallmentAmount = - installmentPaymentDataOptionItemNrFirstInstallmentAmount; + public void setInstallmentPaymentDataOptionItemNrFirstInstallmentAmount(String installmentPaymentDataOptionItemNrFirstInstallmentAmount) { + this.installmentPaymentDataOptionItemNrFirstInstallmentAmount = installmentPaymentDataOptionItemNrFirstInstallmentAmount; } /** * Installment fee amount in minor units. * * @param installmentPaymentDataOptionItemNrInstallmentFee Installment fee amount in minor units. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrInstallmentFee( - String installmentPaymentDataOptionItemNrInstallmentFee) { - this.installmentPaymentDataOptionItemNrInstallmentFee = - installmentPaymentDataOptionItemNrInstallmentFee; + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrInstallmentFee(String installmentPaymentDataOptionItemNrInstallmentFee) { + this.installmentPaymentDataOptionItemNrInstallmentFee = installmentPaymentDataOptionItemNrInstallmentFee; return this; } /** * Installment fee amount in minor units. - * * @return installmentPaymentDataOptionItemNrInstallmentFee Installment fee amount in minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE) @@ -249,31 +206,24 @@ public String getInstallmentPaymentDataOptionItemNrInstallmentFee() { */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrInstallmentFee( - String installmentPaymentDataOptionItemNrInstallmentFee) { - this.installmentPaymentDataOptionItemNrInstallmentFee = - installmentPaymentDataOptionItemNrInstallmentFee; + public void setInstallmentPaymentDataOptionItemNrInstallmentFee(String installmentPaymentDataOptionItemNrInstallmentFee) { + this.installmentPaymentDataOptionItemNrInstallmentFee = installmentPaymentDataOptionItemNrInstallmentFee; } /** * Interest rate for the installment period. * * @param installmentPaymentDataOptionItemNrInterestRate Interest rate for the installment period. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrInterestRate( - String installmentPaymentDataOptionItemNrInterestRate) { - this.installmentPaymentDataOptionItemNrInterestRate = - installmentPaymentDataOptionItemNrInterestRate; + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrInterestRate(String installmentPaymentDataOptionItemNrInterestRate) { + this.installmentPaymentDataOptionItemNrInterestRate = installmentPaymentDataOptionItemNrInterestRate; return this; } /** * Interest rate for the installment period. - * - * @return installmentPaymentDataOptionItemNrInterestRate Interest rate for the installment - * period. + * @return installmentPaymentDataOptionItemNrInterestRate Interest rate for the installment period. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -288,36 +238,26 @@ public String getInstallmentPaymentDataOptionItemNrInterestRate() { */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrInterestRate( - String installmentPaymentDataOptionItemNrInterestRate) { - this.installmentPaymentDataOptionItemNrInterestRate = - installmentPaymentDataOptionItemNrInterestRate; + public void setInstallmentPaymentDataOptionItemNrInterestRate(String installmentPaymentDataOptionItemNrInterestRate) { + this.installmentPaymentDataOptionItemNrInterestRate = installmentPaymentDataOptionItemNrInterestRate; } /** * Maximum number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of - * installments possible for this payment. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining - */ - public ResponseAdditionalDataInstallments - installmentPaymentDataOptionItemNrMaximumNumberOfInstallments( - String installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments = - installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; + * @param installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of installments possible for this payment. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + */ + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrMaximumNumberOfInstallments(String installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments = installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; return this; } /** * Maximum number of installments possible for this payment. - * - * @return installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of - * installments possible for this payment. + * @return installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of installments possible for this payment. */ - @JsonProperty( - JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS) + @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getInstallmentPaymentDataOptionItemNrMaximumNumberOfInstallments() { return installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; @@ -326,42 +266,30 @@ public String getInstallmentPaymentDataOptionItemNrMaximumNumberOfInstallments() /** * Maximum number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of - * installments possible for this payment. + * @param installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of installments possible for this payment. */ - @JsonProperty( - JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS) + @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrMaximumNumberOfInstallments( - String installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments = - installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; + public void setInstallmentPaymentDataOptionItemNrMaximumNumberOfInstallments(String installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments = installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; } /** * Minimum number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of - * installments possible for this payment. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining - */ - public ResponseAdditionalDataInstallments - installmentPaymentDataOptionItemNrMinimumNumberOfInstallments( - String installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments = - installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; + * @param installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of installments possible for this payment. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + */ + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrMinimumNumberOfInstallments(String installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments = installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; return this; } /** * Minimum number of installments possible for this payment. - * - * @return installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of - * installments possible for this payment. + * @return installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of installments possible for this payment. */ - @JsonProperty( - JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS) + @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getInstallmentPaymentDataOptionItemNrMinimumNumberOfInstallments() { return installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; @@ -370,38 +298,28 @@ public String getInstallmentPaymentDataOptionItemNrMinimumNumberOfInstallments() /** * Minimum number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of - * installments possible for this payment. + * @param installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of installments possible for this payment. */ - @JsonProperty( - JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS) + @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrMinimumNumberOfInstallments( - String installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments = - installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; + public void setInstallmentPaymentDataOptionItemNrMinimumNumberOfInstallments(String installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments = installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; } /** * Total number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments - * possible for this payment. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining - */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrNumberOfInstallments( - String installmentPaymentDataOptionItemNrNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrNumberOfInstallments = - installmentPaymentDataOptionItemNrNumberOfInstallments; + * @param installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments possible for this payment. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + */ + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrNumberOfInstallments(String installmentPaymentDataOptionItemNrNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrNumberOfInstallments = installmentPaymentDataOptionItemNrNumberOfInstallments; return this; } /** * Total number of installments possible for this payment. - * - * @return installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments - * possible for this payment. + * @return installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments possible for this payment. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -412,38 +330,28 @@ public String getInstallmentPaymentDataOptionItemNrNumberOfInstallments() { /** * Total number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments - * possible for this payment. + * @param installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments possible for this payment. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrNumberOfInstallments( - String installmentPaymentDataOptionItemNrNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrNumberOfInstallments = - installmentPaymentDataOptionItemNrNumberOfInstallments; + public void setInstallmentPaymentDataOptionItemNrNumberOfInstallments(String installmentPaymentDataOptionItemNrNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrNumberOfInstallments = installmentPaymentDataOptionItemNrNumberOfInstallments; } /** * Subsequent Installment Amount in minor units. * - * @param installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment - * Amount in minor units. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining - */ - public ResponseAdditionalDataInstallments - installmentPaymentDataOptionItemNrSubsequentInstallmentAmount( - String installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) { - this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount = - installmentPaymentDataOptionItemNrSubsequentInstallmentAmount; + * @param installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment Amount in minor units. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + */ + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrSubsequentInstallmentAmount(String installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) { + this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount = installmentPaymentDataOptionItemNrSubsequentInstallmentAmount; return this; } /** * Subsequent Installment Amount in minor units. - * - * @return installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment - * Amount in minor units. + * @return installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment Amount in minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -454,34 +362,27 @@ public String getInstallmentPaymentDataOptionItemNrSubsequentInstallmentAmount() /** * Subsequent Installment Amount in minor units. * - * @param installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment - * Amount in minor units. + * @param installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment Amount in minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrSubsequentInstallmentAmount( - String installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) { - this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount = - installmentPaymentDataOptionItemNrSubsequentInstallmentAmount; + public void setInstallmentPaymentDataOptionItemNrSubsequentInstallmentAmount(String installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) { + this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount = installmentPaymentDataOptionItemNrSubsequentInstallmentAmount; } /** * Total amount in minor units. * * @param installmentPaymentDataOptionItemNrTotalAmountDue Total amount in minor units. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrTotalAmountDue( - String installmentPaymentDataOptionItemNrTotalAmountDue) { - this.installmentPaymentDataOptionItemNrTotalAmountDue = - installmentPaymentDataOptionItemNrTotalAmountDue; + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrTotalAmountDue(String installmentPaymentDataOptionItemNrTotalAmountDue) { + this.installmentPaymentDataOptionItemNrTotalAmountDue = installmentPaymentDataOptionItemNrTotalAmountDue; return this; } /** * Total amount in minor units. - * * @return installmentPaymentDataOptionItemNrTotalAmountDue Total amount in minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE) @@ -497,31 +398,24 @@ public String getInstallmentPaymentDataOptionItemNrTotalAmountDue() { */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrTotalAmountDue( - String installmentPaymentDataOptionItemNrTotalAmountDue) { - this.installmentPaymentDataOptionItemNrTotalAmountDue = - installmentPaymentDataOptionItemNrTotalAmountDue; + public void setInstallmentPaymentDataOptionItemNrTotalAmountDue(String installmentPaymentDataOptionItemNrTotalAmountDue) { + this.installmentPaymentDataOptionItemNrTotalAmountDue = installmentPaymentDataOptionItemNrTotalAmountDue; } /** * Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments * - * @param installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * - * PayInFullOnly * PayInFullOrInstallments - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining + * @param installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataPaymentOptions( - String installmentPaymentDataPaymentOptions) { + public ResponseAdditionalDataInstallments installmentPaymentDataPaymentOptions(String installmentPaymentDataPaymentOptions) { this.installmentPaymentDataPaymentOptions = installmentPaymentDataPaymentOptions; return this; } /** * Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments - * - * @return installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * - * PayInFullOnly * PayInFullOrInstallments + * @return installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_PAYMENT_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -532,8 +426,7 @@ public String getInstallmentPaymentDataPaymentOptions() { /** * Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments * - * @param installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * - * PayInFullOnly * PayInFullOrInstallments + * @param installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_PAYMENT_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -542,14 +435,10 @@ public void setInstallmentPaymentDataPaymentOptions(String installmentPaymentDat } /** - * The number of installments that the payment amount should be charged with. Example: 5 > Only - * relevant for card payments in countries that support installments. + * The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. * - * @param installmentsValue The number of installments that the payment amount should be charged - * with. Example: 5 > Only relevant for card payments in countries that support - * installments. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method - * chaining + * @param installmentsValue The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining */ public ResponseAdditionalDataInstallments installmentsValue(String installmentsValue) { this.installmentsValue = installmentsValue; @@ -557,12 +446,8 @@ public ResponseAdditionalDataInstallments installmentsValue(String installmentsV } /** - * The number of installments that the payment amount should be charged with. Example: 5 > Only - * relevant for card payments in countries that support installments. - * - * @return installmentsValue The number of installments that the payment amount should be charged - * with. Example: 5 > Only relevant for card payments in countries that support - * installments. + * The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. + * @return installmentsValue The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -571,12 +456,9 @@ public String getInstallmentsValue() { } /** - * The number of installments that the payment amount should be charged with. Example: 5 > Only - * relevant for card payments in countries that support installments. + * The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. * - * @param installmentsValue The number of installments that the payment amount should be charged - * with. Example: 5 > Only relevant for card payments in countries that support - * installments. + * @param installmentsValue The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -584,7 +466,9 @@ public void setInstallmentsValue(String installmentsValue) { this.installmentsValue = installmentsValue; } - /** Return true if this ResponseAdditionalDataInstallments object is equal to o. */ + /** + * Return true if this ResponseAdditionalDataInstallments object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -593,112 +477,49 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResponseAdditionalDataInstallments responseAdditionalDataInstallments = - (ResponseAdditionalDataInstallments) o; - return Objects.equals( - this.installmentPaymentDataInstallmentType, - responseAdditionalDataInstallments.installmentPaymentDataInstallmentType) - && Objects.equals( - this.installmentPaymentDataOptionItemNrAnnualPercentageRate, - responseAdditionalDataInstallments - .installmentPaymentDataOptionItemNrAnnualPercentageRate) - && Objects.equals( - this.installmentPaymentDataOptionItemNrFirstInstallmentAmount, - responseAdditionalDataInstallments - .installmentPaymentDataOptionItemNrFirstInstallmentAmount) - && Objects.equals( - this.installmentPaymentDataOptionItemNrInstallmentFee, - responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrInstallmentFee) - && Objects.equals( - this.installmentPaymentDataOptionItemNrInterestRate, - responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrInterestRate) - && Objects.equals( - this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments, - responseAdditionalDataInstallments - .installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) - && Objects.equals( - this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments, - responseAdditionalDataInstallments - .installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) - && Objects.equals( - this.installmentPaymentDataOptionItemNrNumberOfInstallments, - responseAdditionalDataInstallments - .installmentPaymentDataOptionItemNrNumberOfInstallments) - && Objects.equals( - this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount, - responseAdditionalDataInstallments - .installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) - && Objects.equals( - this.installmentPaymentDataOptionItemNrTotalAmountDue, - responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrTotalAmountDue) - && Objects.equals( - this.installmentPaymentDataPaymentOptions, - responseAdditionalDataInstallments.installmentPaymentDataPaymentOptions) - && Objects.equals( - this.installmentsValue, responseAdditionalDataInstallments.installmentsValue); + ResponseAdditionalDataInstallments responseAdditionalDataInstallments = (ResponseAdditionalDataInstallments) o; + return Objects.equals(this.installmentPaymentDataInstallmentType, responseAdditionalDataInstallments.installmentPaymentDataInstallmentType) && + Objects.equals(this.installmentPaymentDataOptionItemNrAnnualPercentageRate, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrAnnualPercentageRate) && + Objects.equals(this.installmentPaymentDataOptionItemNrFirstInstallmentAmount, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrFirstInstallmentAmount) && + Objects.equals(this.installmentPaymentDataOptionItemNrInstallmentFee, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrInstallmentFee) && + Objects.equals(this.installmentPaymentDataOptionItemNrInterestRate, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrInterestRate) && + Objects.equals(this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) && + Objects.equals(this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) && + Objects.equals(this.installmentPaymentDataOptionItemNrNumberOfInstallments, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrNumberOfInstallments) && + Objects.equals(this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) && + Objects.equals(this.installmentPaymentDataOptionItemNrTotalAmountDue, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrTotalAmountDue) && + Objects.equals(this.installmentPaymentDataPaymentOptions, responseAdditionalDataInstallments.installmentPaymentDataPaymentOptions) && + Objects.equals(this.installmentsValue, responseAdditionalDataInstallments.installmentsValue); } @Override public int hashCode() { - return Objects.hash( - installmentPaymentDataInstallmentType, - installmentPaymentDataOptionItemNrAnnualPercentageRate, - installmentPaymentDataOptionItemNrFirstInstallmentAmount, - installmentPaymentDataOptionItemNrInstallmentFee, - installmentPaymentDataOptionItemNrInterestRate, - installmentPaymentDataOptionItemNrMaximumNumberOfInstallments, - installmentPaymentDataOptionItemNrMinimumNumberOfInstallments, - installmentPaymentDataOptionItemNrNumberOfInstallments, - installmentPaymentDataOptionItemNrSubsequentInstallmentAmount, - installmentPaymentDataOptionItemNrTotalAmountDue, - installmentPaymentDataPaymentOptions, - installmentsValue); + return Objects.hash(installmentPaymentDataInstallmentType, installmentPaymentDataOptionItemNrAnnualPercentageRate, installmentPaymentDataOptionItemNrFirstInstallmentAmount, installmentPaymentDataOptionItemNrInstallmentFee, installmentPaymentDataOptionItemNrInterestRate, installmentPaymentDataOptionItemNrMaximumNumberOfInstallments, installmentPaymentDataOptionItemNrMinimumNumberOfInstallments, installmentPaymentDataOptionItemNrNumberOfInstallments, installmentPaymentDataOptionItemNrSubsequentInstallmentAmount, installmentPaymentDataOptionItemNrTotalAmountDue, installmentPaymentDataPaymentOptions, installmentsValue); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataInstallments {\n"); - sb.append(" installmentPaymentDataInstallmentType: ") - .append(toIndentedString(installmentPaymentDataInstallmentType)) - .append("\n"); - sb.append(" installmentPaymentDataOptionItemNrAnnualPercentageRate: ") - .append(toIndentedString(installmentPaymentDataOptionItemNrAnnualPercentageRate)) - .append("\n"); - sb.append(" installmentPaymentDataOptionItemNrFirstInstallmentAmount: ") - .append(toIndentedString(installmentPaymentDataOptionItemNrFirstInstallmentAmount)) - .append("\n"); - sb.append(" installmentPaymentDataOptionItemNrInstallmentFee: ") - .append(toIndentedString(installmentPaymentDataOptionItemNrInstallmentFee)) - .append("\n"); - sb.append(" installmentPaymentDataOptionItemNrInterestRate: ") - .append(toIndentedString(installmentPaymentDataOptionItemNrInterestRate)) - .append("\n"); - sb.append(" installmentPaymentDataOptionItemNrMaximumNumberOfInstallments: ") - .append(toIndentedString(installmentPaymentDataOptionItemNrMaximumNumberOfInstallments)) - .append("\n"); - sb.append(" installmentPaymentDataOptionItemNrMinimumNumberOfInstallments: ") - .append(toIndentedString(installmentPaymentDataOptionItemNrMinimumNumberOfInstallments)) - .append("\n"); - sb.append(" installmentPaymentDataOptionItemNrNumberOfInstallments: ") - .append(toIndentedString(installmentPaymentDataOptionItemNrNumberOfInstallments)) - .append("\n"); - sb.append(" installmentPaymentDataOptionItemNrSubsequentInstallmentAmount: ") - .append(toIndentedString(installmentPaymentDataOptionItemNrSubsequentInstallmentAmount)) - .append("\n"); - sb.append(" installmentPaymentDataOptionItemNrTotalAmountDue: ") - .append(toIndentedString(installmentPaymentDataOptionItemNrTotalAmountDue)) - .append("\n"); - sb.append(" installmentPaymentDataPaymentOptions: ") - .append(toIndentedString(installmentPaymentDataPaymentOptions)) - .append("\n"); + sb.append(" installmentPaymentDataInstallmentType: ").append(toIndentedString(installmentPaymentDataInstallmentType)).append("\n"); + sb.append(" installmentPaymentDataOptionItemNrAnnualPercentageRate: ").append(toIndentedString(installmentPaymentDataOptionItemNrAnnualPercentageRate)).append("\n"); + sb.append(" installmentPaymentDataOptionItemNrFirstInstallmentAmount: ").append(toIndentedString(installmentPaymentDataOptionItemNrFirstInstallmentAmount)).append("\n"); + sb.append(" installmentPaymentDataOptionItemNrInstallmentFee: ").append(toIndentedString(installmentPaymentDataOptionItemNrInstallmentFee)).append("\n"); + sb.append(" installmentPaymentDataOptionItemNrInterestRate: ").append(toIndentedString(installmentPaymentDataOptionItemNrInterestRate)).append("\n"); + sb.append(" installmentPaymentDataOptionItemNrMaximumNumberOfInstallments: ").append(toIndentedString(installmentPaymentDataOptionItemNrMaximumNumberOfInstallments)).append("\n"); + sb.append(" installmentPaymentDataOptionItemNrMinimumNumberOfInstallments: ").append(toIndentedString(installmentPaymentDataOptionItemNrMinimumNumberOfInstallments)).append("\n"); + sb.append(" installmentPaymentDataOptionItemNrNumberOfInstallments: ").append(toIndentedString(installmentPaymentDataOptionItemNrNumberOfInstallments)).append("\n"); + sb.append(" installmentPaymentDataOptionItemNrSubsequentInstallmentAmount: ").append(toIndentedString(installmentPaymentDataOptionItemNrSubsequentInstallmentAmount)).append("\n"); + sb.append(" installmentPaymentDataOptionItemNrTotalAmountDue: ").append(toIndentedString(installmentPaymentDataOptionItemNrTotalAmountDue)).append("\n"); + sb.append(" installmentPaymentDataPaymentOptions: ").append(toIndentedString(installmentPaymentDataPaymentOptions)).append("\n"); sb.append(" installmentsValue: ").append(toIndentedString(installmentsValue)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -707,24 +528,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResponseAdditionalDataInstallments given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataInstallments - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ResponseAdditionalDataInstallments + * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataInstallments */ - public static ResponseAdditionalDataInstallments fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataInstallments fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataInstallments.class); } - - /** - * Convert an instance of ResponseAdditionalDataInstallments to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResponseAdditionalDataInstallments to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataNetworkTokens.java b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataNetworkTokens.java index 57da253e6..f160fc653 100644 --- a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataNetworkTokens.java +++ b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataNetworkTokens.java @@ -2,27 +2,37 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ResponseAdditionalDataNetworkTokens */ + +/** + * ResponseAdditionalDataNetworkTokens + */ @JsonPropertyOrder({ ResponseAdditionalDataNetworkTokens.JSON_PROPERTY_NETWORK_TOKEN_AVAILABLE, ResponseAdditionalDataNetworkTokens.JSON_PROPERTY_NETWORK_TOKEN_BIN, ResponseAdditionalDataNetworkTokens.JSON_PROPERTY_NETWORK_TOKEN_TOKEN_SUMMARY }) + public class ResponseAdditionalDataNetworkTokens { public static final String JSON_PROPERTY_NETWORK_TOKEN_AVAILABLE = "networkToken.available"; private String networkTokenAvailable; @@ -30,19 +40,17 @@ public class ResponseAdditionalDataNetworkTokens { public static final String JSON_PROPERTY_NETWORK_TOKEN_BIN = "networkToken.bin"; private String networkTokenBin; - public static final String JSON_PROPERTY_NETWORK_TOKEN_TOKEN_SUMMARY = - "networkToken.tokenSummary"; + public static final String JSON_PROPERTY_NETWORK_TOKEN_TOKEN_SUMMARY = "networkToken.tokenSummary"; private String networkTokenTokenSummary; - public ResponseAdditionalDataNetworkTokens() {} + public ResponseAdditionalDataNetworkTokens() { + } /** * Indicates whether a network token is available for the specified card. * - * @param networkTokenAvailable Indicates whether a network token is available for the specified - * card. - * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method - * chaining + * @param networkTokenAvailable Indicates whether a network token is available for the specified card. + * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method chaining */ public ResponseAdditionalDataNetworkTokens networkTokenAvailable(String networkTokenAvailable) { this.networkTokenAvailable = networkTokenAvailable; @@ -51,9 +59,7 @@ public ResponseAdditionalDataNetworkTokens networkTokenAvailable(String networkT /** * Indicates whether a network token is available for the specified card. - * - * @return networkTokenAvailable Indicates whether a network token is available for the specified - * card. + * @return networkTokenAvailable Indicates whether a network token is available for the specified card. */ @JsonProperty(JSON_PROPERTY_NETWORK_TOKEN_AVAILABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,8 +70,7 @@ public String getNetworkTokenAvailable() { /** * Indicates whether a network token is available for the specified card. * - * @param networkTokenAvailable Indicates whether a network token is available for the specified - * card. + * @param networkTokenAvailable Indicates whether a network token is available for the specified card. */ @JsonProperty(JSON_PROPERTY_NETWORK_TOKEN_AVAILABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -74,13 +79,10 @@ public void setNetworkTokenAvailable(String networkTokenAvailable) { } /** - * The Bank Identification Number of a tokenized card, which is the first six digits of a card - * number. + * The Bank Identification Number of a tokenized card, which is the first six digits of a card number. * - * @param networkTokenBin The Bank Identification Number of a tokenized card, which is the first - * six digits of a card number. - * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method - * chaining + * @param networkTokenBin The Bank Identification Number of a tokenized card, which is the first six digits of a card number. + * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method chaining */ public ResponseAdditionalDataNetworkTokens networkTokenBin(String networkTokenBin) { this.networkTokenBin = networkTokenBin; @@ -88,11 +90,8 @@ public ResponseAdditionalDataNetworkTokens networkTokenBin(String networkTokenBi } /** - * The Bank Identification Number of a tokenized card, which is the first six digits of a card - * number. - * - * @return networkTokenBin The Bank Identification Number of a tokenized card, which is the first - * six digits of a card number. + * The Bank Identification Number of a tokenized card, which is the first six digits of a card number. + * @return networkTokenBin The Bank Identification Number of a tokenized card, which is the first six digits of a card number. */ @JsonProperty(JSON_PROPERTY_NETWORK_TOKEN_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,11 +100,9 @@ public String getNetworkTokenBin() { } /** - * The Bank Identification Number of a tokenized card, which is the first six digits of a card - * number. + * The Bank Identification Number of a tokenized card, which is the first six digits of a card number. * - * @param networkTokenBin The Bank Identification Number of a tokenized card, which is the first - * six digits of a card number. + * @param networkTokenBin The Bank Identification Number of a tokenized card, which is the first six digits of a card number. */ @JsonProperty(JSON_PROPERTY_NETWORK_TOKEN_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,18 +114,15 @@ public void setNetworkTokenBin(String networkTokenBin) { * The last four digits of a network token. * * @param networkTokenTokenSummary The last four digits of a network token. - * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method - * chaining + * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method chaining */ - public ResponseAdditionalDataNetworkTokens networkTokenTokenSummary( - String networkTokenTokenSummary) { + public ResponseAdditionalDataNetworkTokens networkTokenTokenSummary(String networkTokenTokenSummary) { this.networkTokenTokenSummary = networkTokenTokenSummary; return this; } /** * The last four digits of a network token. - * * @return networkTokenTokenSummary The last four digits of a network token. */ @JsonProperty(JSON_PROPERTY_NETWORK_TOKEN_TOKEN_SUMMARY) @@ -148,7 +142,9 @@ public void setNetworkTokenTokenSummary(String networkTokenTokenSummary) { this.networkTokenTokenSummary = networkTokenTokenSummary; } - /** Return true if this ResponseAdditionalDataNetworkTokens object is equal to o. */ + /** + * Return true if this ResponseAdditionalDataNetworkTokens object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -157,14 +153,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResponseAdditionalDataNetworkTokens responseAdditionalDataNetworkTokens = - (ResponseAdditionalDataNetworkTokens) o; - return Objects.equals( - this.networkTokenAvailable, responseAdditionalDataNetworkTokens.networkTokenAvailable) - && Objects.equals(this.networkTokenBin, responseAdditionalDataNetworkTokens.networkTokenBin) - && Objects.equals( - this.networkTokenTokenSummary, - responseAdditionalDataNetworkTokens.networkTokenTokenSummary); + ResponseAdditionalDataNetworkTokens responseAdditionalDataNetworkTokens = (ResponseAdditionalDataNetworkTokens) o; + return Objects.equals(this.networkTokenAvailable, responseAdditionalDataNetworkTokens.networkTokenAvailable) && + Objects.equals(this.networkTokenBin, responseAdditionalDataNetworkTokens.networkTokenBin) && + Objects.equals(this.networkTokenTokenSummary, responseAdditionalDataNetworkTokens.networkTokenTokenSummary); } @Override @@ -176,19 +168,16 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataNetworkTokens {\n"); - sb.append(" networkTokenAvailable: ") - .append(toIndentedString(networkTokenAvailable)) - .append("\n"); + sb.append(" networkTokenAvailable: ").append(toIndentedString(networkTokenAvailable)).append("\n"); sb.append(" networkTokenBin: ").append(toIndentedString(networkTokenBin)).append("\n"); - sb.append(" networkTokenTokenSummary: ") - .append(toIndentedString(networkTokenTokenSummary)) - .append("\n"); + sb.append(" networkTokenTokenSummary: ").append(toIndentedString(networkTokenTokenSummary)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -197,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResponseAdditionalDataNetworkTokens given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataNetworkTokens - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ResponseAdditionalDataNetworkTokens + * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataNetworkTokens */ - public static ResponseAdditionalDataNetworkTokens fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataNetworkTokens fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataNetworkTokens.class); } - - /** - * Convert an instance of ResponseAdditionalDataNetworkTokens to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResponseAdditionalDataNetworkTokens to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataOpi.java b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataOpi.java index 093cda90f..145c18119 100644 --- a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataOpi.java +++ b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataOpi.java @@ -2,41 +2,46 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ResponseAdditionalDataOpi */ -@JsonPropertyOrder({ResponseAdditionalDataOpi.JSON_PROPERTY_OPI_TRANS_TOKEN}) + +/** + * ResponseAdditionalDataOpi + */ +@JsonPropertyOrder({ + ResponseAdditionalDataOpi.JSON_PROPERTY_OPI_TRANS_TOKEN +}) + public class ResponseAdditionalDataOpi { public static final String JSON_PROPERTY_OPI_TRANS_TOKEN = "opi.transToken"; private String opiTransToken; - public ResponseAdditionalDataOpi() {} + public ResponseAdditionalDataOpi() { + } /** - * Returned in the response if you included `opi.includeTransToken: true` in an - * ecommerce payment request. This contains an Oracle Payment Interface token that you can store - * in your Oracle Opera database to identify tokenized ecommerce transactions. For more - * information and required settings, see [Oracle - * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). * - * @param opiTransToken Returned in the response if you included `opi.includeTransToken: - * true` in an ecommerce payment request. This contains an Oracle Payment Interface token - * that you can store in your Oracle Opera database to identify tokenized ecommerce - * transactions. For more information and required settings, see [Oracle - * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * @param opiTransToken Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). * @return the current {@code ResponseAdditionalDataOpi} instance, allowing for method chaining */ public ResponseAdditionalDataOpi opiTransToken(String opiTransToken) { @@ -45,17 +50,8 @@ public ResponseAdditionalDataOpi opiTransToken(String opiTransToken) { } /** - * Returned in the response if you included `opi.includeTransToken: true` in an - * ecommerce payment request. This contains an Oracle Payment Interface token that you can store - * in your Oracle Opera database to identify tokenized ecommerce transactions. For more - * information and required settings, see [Oracle - * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). - * - * @return opiTransToken Returned in the response if you included `opi.includeTransToken: - * true` in an ecommerce payment request. This contains an Oracle Payment Interface token - * that you can store in your Oracle Opera database to identify tokenized ecommerce - * transactions. For more information and required settings, see [Oracle - * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * @return opiTransToken Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). */ @JsonProperty(JSON_PROPERTY_OPI_TRANS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,17 +60,9 @@ public String getOpiTransToken() { } /** - * Returned in the response if you included `opi.includeTransToken: true` in an - * ecommerce payment request. This contains an Oracle Payment Interface token that you can store - * in your Oracle Opera database to identify tokenized ecommerce transactions. For more - * information and required settings, see [Oracle - * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). * - * @param opiTransToken Returned in the response if you included `opi.includeTransToken: - * true` in an ecommerce payment request. This contains an Oracle Payment Interface token - * that you can store in your Oracle Opera database to identify tokenized ecommerce - * transactions. For more information and required settings, see [Oracle - * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * @param opiTransToken Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). */ @JsonProperty(JSON_PROPERTY_OPI_TRANS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -82,7 +70,9 @@ public void setOpiTransToken(String opiTransToken) { this.opiTransToken = opiTransToken; } - /** Return true if this ResponseAdditionalDataOpi object is equal to o. */ + /** + * Return true if this ResponseAdditionalDataOpi object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -110,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -119,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResponseAdditionalDataOpi given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataOpi - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ResponseAdditionalDataOpi + * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataOpi */ - public static ResponseAdditionalDataOpi fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataOpi fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataOpi.class); } - - /** - * Convert an instance of ResponseAdditionalDataOpi to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResponseAdditionalDataOpi to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataSepa.java b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataSepa.java index 3c69b1166..f937c3ab5 100644 --- a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataSepa.java +++ b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataSepa.java @@ -2,57 +2,64 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ResponseAdditionalDataSepa */ + +/** + * ResponseAdditionalDataSepa + */ @JsonPropertyOrder({ ResponseAdditionalDataSepa.JSON_PROPERTY_SEPADIRECTDEBIT_DATE_OF_SIGNATURE, ResponseAdditionalDataSepa.JSON_PROPERTY_SEPADIRECTDEBIT_MANDATE_ID, ResponseAdditionalDataSepa.JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE }) + public class ResponseAdditionalDataSepa { - public static final String JSON_PROPERTY_SEPADIRECTDEBIT_DATE_OF_SIGNATURE = - "sepadirectdebit.dateOfSignature"; + public static final String JSON_PROPERTY_SEPADIRECTDEBIT_DATE_OF_SIGNATURE = "sepadirectdebit.dateOfSignature"; private String sepadirectdebitDateOfSignature; public static final String JSON_PROPERTY_SEPADIRECTDEBIT_MANDATE_ID = "sepadirectdebit.mandateId"; private String sepadirectdebitMandateId; - public static final String JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE = - "sepadirectdebit.sequenceType"; + public static final String JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE = "sepadirectdebit.sequenceType"; private String sepadirectdebitSequenceType; - public ResponseAdditionalDataSepa() {} + public ResponseAdditionalDataSepa() { + } /** - * The transaction signature date. Format: yyyy-MM-dd + * The transaction signature date. Format: yyyy-MM-dd * - * @param sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd + * @param sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd * @return the current {@code ResponseAdditionalDataSepa} instance, allowing for method chaining */ - public ResponseAdditionalDataSepa sepadirectdebitDateOfSignature( - String sepadirectdebitDateOfSignature) { + public ResponseAdditionalDataSepa sepadirectdebitDateOfSignature(String sepadirectdebitDateOfSignature) { this.sepadirectdebitDateOfSignature = sepadirectdebitDateOfSignature; return this; } /** - * The transaction signature date. Format: yyyy-MM-dd - * - * @return sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd + * The transaction signature date. Format: yyyy-MM-dd + * @return sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_DATE_OF_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -61,9 +68,9 @@ public String getSepadirectdebitDateOfSignature() { } /** - * The transaction signature date. Format: yyyy-MM-dd + * The transaction signature date. Format: yyyy-MM-dd * - * @param sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd + * @param sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_DATE_OF_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -74,8 +81,7 @@ public void setSepadirectdebitDateOfSignature(String sepadirectdebitDateOfSignat /** * Its value corresponds to the pspReference value of the transaction. * - * @param sepadirectdebitMandateId Its value corresponds to the pspReference value of the - * transaction. + * @param sepadirectdebitMandateId Its value corresponds to the pspReference value of the transaction. * @return the current {@code ResponseAdditionalDataSepa} instance, allowing for method chaining */ public ResponseAdditionalDataSepa sepadirectdebitMandateId(String sepadirectdebitMandateId) { @@ -85,9 +91,7 @@ public ResponseAdditionalDataSepa sepadirectdebitMandateId(String sepadirectdebi /** * Its value corresponds to the pspReference value of the transaction. - * - * @return sepadirectdebitMandateId Its value corresponds to the pspReference value of the - * transaction. + * @return sepadirectdebitMandateId Its value corresponds to the pspReference value of the transaction. */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_MANDATE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -98,8 +102,7 @@ public String getSepadirectdebitMandateId() { /** * Its value corresponds to the pspReference value of the transaction. * - * @param sepadirectdebitMandateId Its value corresponds to the pspReference value of the - * transaction. + * @param sepadirectdebitMandateId Its value corresponds to the pspReference value of the transaction. */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_MANDATE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,39 +111,19 @@ public void setSepadirectdebitMandateId(String sepadirectdebitMandateId) { } /** - * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to - * initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a - * series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out - * regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final - * collection in a series of direct debit instructions. Example: OOFF + * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF * - * @param sepadirectdebitSequenceType This field can take one of the following values: * OneOff: - * (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: - * (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: - * (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by - * the creditor. * Final: (FNAL) Last/final collection in a series of direct debit - * instructions. Example: OOFF + * @param sepadirectdebitSequenceType This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF * @return the current {@code ResponseAdditionalDataSepa} instance, allowing for method chaining */ - public ResponseAdditionalDataSepa sepadirectdebitSequenceType( - String sepadirectdebitSequenceType) { + public ResponseAdditionalDataSepa sepadirectdebitSequenceType(String sepadirectdebitSequenceType) { this.sepadirectdebitSequenceType = sepadirectdebitSequenceType; return this; } /** - * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to - * initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a - * series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out - * regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final - * collection in a series of direct debit instructions. Example: OOFF - * - * @return sepadirectdebitSequenceType This field can take one of the following values: * OneOff: - * (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: - * (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: - * (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by - * the creditor. * Final: (FNAL) Last/final collection in a series of direct debit - * instructions. Example: OOFF + * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF + * @return sepadirectdebitSequenceType This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -149,18 +132,9 @@ public String getSepadirectdebitSequenceType() { } /** - * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to - * initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a - * series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out - * regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final - * collection in a series of direct debit instructions. Example: OOFF + * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF * - * @param sepadirectdebitSequenceType This field can take one of the following values: * OneOff: - * (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: - * (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: - * (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by - * the creditor. * Final: (FNAL) Last/final collection in a series of direct debit - * instructions. Example: OOFF + * @param sepadirectdebitSequenceType This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,7 +142,9 @@ public void setSepadirectdebitSequenceType(String sepadirectdebitSequenceType) { this.sepadirectdebitSequenceType = sepadirectdebitSequenceType; } - /** Return true if this ResponseAdditionalDataSepa object is equal to o. */ + /** + * Return true if this ResponseAdditionalDataSepa object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -178,41 +154,30 @@ public boolean equals(Object o) { return false; } ResponseAdditionalDataSepa responseAdditionalDataSepa = (ResponseAdditionalDataSepa) o; - return Objects.equals( - this.sepadirectdebitDateOfSignature, - responseAdditionalDataSepa.sepadirectdebitDateOfSignature) - && Objects.equals( - this.sepadirectdebitMandateId, responseAdditionalDataSepa.sepadirectdebitMandateId) - && Objects.equals( - this.sepadirectdebitSequenceType, - responseAdditionalDataSepa.sepadirectdebitSequenceType); + return Objects.equals(this.sepadirectdebitDateOfSignature, responseAdditionalDataSepa.sepadirectdebitDateOfSignature) && + Objects.equals(this.sepadirectdebitMandateId, responseAdditionalDataSepa.sepadirectdebitMandateId) && + Objects.equals(this.sepadirectdebitSequenceType, responseAdditionalDataSepa.sepadirectdebitSequenceType); } @Override public int hashCode() { - return Objects.hash( - sepadirectdebitDateOfSignature, sepadirectdebitMandateId, sepadirectdebitSequenceType); + return Objects.hash(sepadirectdebitDateOfSignature, sepadirectdebitMandateId, sepadirectdebitSequenceType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataSepa {\n"); - sb.append(" sepadirectdebitDateOfSignature: ") - .append(toIndentedString(sepadirectdebitDateOfSignature)) - .append("\n"); - sb.append(" sepadirectdebitMandateId: ") - .append(toIndentedString(sepadirectdebitMandateId)) - .append("\n"); - sb.append(" sepadirectdebitSequenceType: ") - .append(toIndentedString(sepadirectdebitSequenceType)) - .append("\n"); + sb.append(" sepadirectdebitDateOfSignature: ").append(toIndentedString(sepadirectdebitDateOfSignature)).append("\n"); + sb.append(" sepadirectdebitMandateId: ").append(toIndentedString(sepadirectdebitMandateId)).append("\n"); + sb.append(" sepadirectdebitSequenceType: ").append(toIndentedString(sepadirectdebitSequenceType)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -221,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResponseAdditionalDataSepa given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataSepa - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ResponseAdditionalDataSepa + * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataSepa */ - public static ResponseAdditionalDataSepa fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataSepa fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataSepa.class); } - - /** - * Convert an instance of ResponseAdditionalDataSepa to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResponseAdditionalDataSepa to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/ServiceError.java b/src/main/java/com/adyen/model/payout/ServiceError.java index 8568af83c..022550e54 100644 --- a/src/main/java/com/adyen/model/payout/ServiceError.java +++ b/src/main/java/com/adyen/model/payout/ServiceError.java @@ -2,24 +2,33 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ServiceError */ +/** + * ServiceError + */ @JsonPropertyOrder({ ServiceError.JSON_PROPERTY_ADDITIONAL_DATA, ServiceError.JSON_PROPERTY_ERROR_CODE, @@ -28,6 +37,7 @@ ServiceError.JSON_PROPERTY_PSP_REFERENCE, ServiceError.JSON_PROPERTY_STATUS }) + public class ServiceError { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -47,15 +57,13 @@ public class ServiceError { public static final String JSON_PROPERTY_STATUS = "status"; private Integer status; - public ServiceError() {} + public ServiceError() { + } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first. Go to **Customer Area** > **Developers** > - * **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. * @return the current {@code ServiceError} instance, allowing for method chaining */ public ServiceError additionalData(Map additionalData) { @@ -72,12 +80,8 @@ public ServiceError putAdditionalDataItem(String key, String additionalDataItem) } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first. Go to **Customer Area** > **Developers** > **Additional data**. - * - * @return additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first. Go to **Customer Area** > **Developers** > - * **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * @return additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -86,12 +90,9 @@ public Map getAdditionalData() { } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first. Go to **Customer Area** > **Developers** > - * **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,7 +113,6 @@ public ServiceError errorCode(String errorCode) { /** * The error code mapped to the error message. - * * @return errorCode The error code mapped to the error message. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -145,7 +145,6 @@ public ServiceError errorType(String errorType) { /** * The category of the error. - * * @return errorType The category of the error. */ @JsonProperty(JSON_PROPERTY_ERROR_TYPE) @@ -178,7 +177,6 @@ public ServiceError message(String message) { /** * A short explanation of the issue. - * * @return message A short explanation of the issue. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -211,7 +209,6 @@ public ServiceError pspReference(String pspReference) { /** * The PSP reference of the payment. - * * @return pspReference The PSP reference of the payment. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -244,7 +241,6 @@ public ServiceError status(Integer status) { /** * The HTTP response status. - * * @return status The HTTP response status. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -264,7 +260,9 @@ public void setStatus(Integer status) { this.status = status; } - /** Return true if this ServiceError object is equal to o. */ + /** + * Return true if this ServiceError object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -274,12 +272,12 @@ public boolean equals(Object o) { return false; } ServiceError serviceError = (ServiceError) o; - return Objects.equals(this.additionalData, serviceError.additionalData) - && Objects.equals(this.errorCode, serviceError.errorCode) - && Objects.equals(this.errorType, serviceError.errorType) - && Objects.equals(this.message, serviceError.message) - && Objects.equals(this.pspReference, serviceError.pspReference) - && Objects.equals(this.status, serviceError.status); + return Objects.equals(this.additionalData, serviceError.additionalData) && + Objects.equals(this.errorCode, serviceError.errorCode) && + Objects.equals(this.errorType, serviceError.errorType) && + Objects.equals(this.message, serviceError.message) && + Objects.equals(this.pspReference, serviceError.pspReference) && + Objects.equals(this.status, serviceError.status); } @Override @@ -302,7 +300,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -311,7 +310,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ServiceError given an JSON string * * @param jsonString JSON string @@ -321,12 +320,11 @@ private String toIndentedString(Object o) { public static ServiceError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } - - /** - * Convert an instance of ServiceError to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ServiceError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/StoreDetailAndSubmitRequest.java b/src/main/java/com/adyen/model/payout/StoreDetailAndSubmitRequest.java index dfb7bac9b..8c46c06b6 100644 --- a/src/main/java/com/adyen/model/payout/StoreDetailAndSubmitRequest.java +++ b/src/main/java/com/adyen/model/payout/StoreDetailAndSubmitRequest.java @@ -2,29 +2,40 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.payout.Address; +import com.adyen.model.payout.Amount; +import com.adyen.model.payout.BankAccount; +import com.adyen.model.payout.Card; +import com.adyen.model.payout.Name; +import com.adyen.model.payout.Recurring; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; -import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** StoreDetailAndSubmitRequest */ + +/** + * StoreDetailAndSubmitRequest + */ @JsonPropertyOrder({ StoreDetailAndSubmitRequest.JSON_PROPERTY_ADDITIONAL_DATA, StoreDetailAndSubmitRequest.JSON_PROPERTY_AMOUNT, @@ -46,6 +57,7 @@ StoreDetailAndSubmitRequest.JSON_PROPERTY_SOCIAL_SECURITY_NUMBER, StoreDetailAndSubmitRequest.JSON_PROPERTY_TELEPHONE_NUMBER }) + public class StoreDetailAndSubmitRequest { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -65,8 +77,11 @@ public class StoreDetailAndSubmitRequest { public static final String JSON_PROPERTY_DATE_OF_BIRTH = "dateOfBirth"; private LocalDate dateOfBirth; - /** The type of the entity the payout is processed for. */ + /** + * The type of the entity the payout is processed for. + */ public enum EntityTypeEnum { + NATURALPERSON(String.valueOf("NaturalPerson")), COMPANY(String.valueOf("Company")); @@ -76,7 +91,7 @@ public enum EntityTypeEnum { private String value; EntityTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -97,11 +112,7 @@ public static EntityTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "EntityTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(EntityTypeEnum.values())); + LOG.warning("EntityTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(EntityTypeEnum.values())); return null; } } @@ -145,13 +156,13 @@ public static EntityTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TELEPHONE_NUMBER = "telephoneNumber"; private String telephoneNumber; - public StoreDetailAndSubmitRequest() {} + public StoreDetailAndSubmitRequest() { + } /** * This field contains additional data, which may be required for a particular request. * - * @param additionalData This field contains additional data, which may be required for a - * particular request. + * @param additionalData This field contains additional data, which may be required for a particular request. * @return the current {@code StoreDetailAndSubmitRequest} instance, allowing for method chaining */ public StoreDetailAndSubmitRequest additionalData(Map additionalData) { @@ -169,9 +180,7 @@ public StoreDetailAndSubmitRequest putAdditionalDataItem(String key, String addi /** * This field contains additional data, which may be required for a particular request. - * - * @return additionalData This field contains additional data, which may be required for a - * particular request. + * @return additionalData This field contains additional data, which may be required for a particular request. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,8 +191,7 @@ public Map getAdditionalData() { /** * This field contains additional data, which may be required for a particular request. * - * @param additionalData This field contains additional data, which may be required for a - * particular request. + * @param additionalData This field contains additional data, which may be required for a particular request. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,7 +202,7 @@ public void setAdditionalData(Map additionalData) { /** * amount * - * @param amount + * @param amount * @return the current {@code StoreDetailAndSubmitRequest} instance, allowing for method chaining */ public StoreDetailAndSubmitRequest amount(Amount amount) { @@ -204,8 +212,7 @@ public StoreDetailAndSubmitRequest amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -216,7 +223,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -227,7 +234,7 @@ public void setAmount(Amount amount) { /** * bank * - * @param bank + * @param bank * @return the current {@code StoreDetailAndSubmitRequest} instance, allowing for method chaining */ public StoreDetailAndSubmitRequest bank(BankAccount bank) { @@ -237,8 +244,7 @@ public StoreDetailAndSubmitRequest bank(BankAccount bank) { /** * Get bank - * - * @return bank + * @return bank */ @JsonProperty(JSON_PROPERTY_BANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -249,7 +255,7 @@ public BankAccount getBank() { /** * bank * - * @param bank + * @param bank */ @JsonProperty(JSON_PROPERTY_BANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -260,7 +266,7 @@ public void setBank(BankAccount bank) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code StoreDetailAndSubmitRequest} instance, allowing for method chaining */ public StoreDetailAndSubmitRequest billingAddress(Address billingAddress) { @@ -270,8 +276,7 @@ public StoreDetailAndSubmitRequest billingAddress(Address billingAddress) { /** * Get billingAddress - * - * @return billingAddress + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -282,7 +287,7 @@ public Address getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -293,7 +298,7 @@ public void setBillingAddress(Address billingAddress) { /** * card * - * @param card + * @param card * @return the current {@code StoreDetailAndSubmitRequest} instance, allowing for method chaining */ public StoreDetailAndSubmitRequest card(Card card) { @@ -303,8 +308,7 @@ public StoreDetailAndSubmitRequest card(Card card) { /** * Get card - * - * @return card + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -315,7 +319,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -324,13 +328,9 @@ public void setCard(Card card) { } /** - * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD - * For Paysafecard it must be the same as used when registering the Paysafecard account. > This - * field is mandatory for natural persons. + * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. * - * @param dateOfBirth The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); - * example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the - * Paysafecard account. > This field is mandatory for natural persons. + * @param dateOfBirth The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. * @return the current {@code StoreDetailAndSubmitRequest} instance, allowing for method chaining */ public StoreDetailAndSubmitRequest dateOfBirth(LocalDate dateOfBirth) { @@ -339,13 +339,8 @@ public StoreDetailAndSubmitRequest dateOfBirth(LocalDate dateOfBirth) { } /** - * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD - * For Paysafecard it must be the same as used when registering the Paysafecard account. > This - * field is mandatory for natural persons. - * - * @return dateOfBirth The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); - * example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the - * Paysafecard account. > This field is mandatory for natural persons. + * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. + * @return dateOfBirth The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -354,13 +349,9 @@ public LocalDate getDateOfBirth() { } /** - * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD - * For Paysafecard it must be the same as used when registering the Paysafecard account. > This - * field is mandatory for natural persons. + * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. * - * @param dateOfBirth The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); - * example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the - * Paysafecard account. > This field is mandatory for natural persons. + * @param dateOfBirth The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -381,7 +372,6 @@ public StoreDetailAndSubmitRequest entityType(EntityTypeEnum entityType) { /** * The type of the entity the payout is processed for. - * * @return entityType The type of the entity the payout is processed for. */ @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) @@ -402,11 +392,9 @@ public void setEntityType(EntityTypeEnum entityType) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or - * negative. + * An integer value that is added to the normal fraud score. The value can be either positive or negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be - * either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. * @return the current {@code StoreDetailAndSubmitRequest} instance, allowing for method chaining */ public StoreDetailAndSubmitRequest fraudOffset(Integer fraudOffset) { @@ -415,11 +403,8 @@ public StoreDetailAndSubmitRequest fraudOffset(Integer fraudOffset) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or - * negative. - * - * @return fraudOffset An integer value that is added to the normal fraud score. The value can be - * either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + * @return fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -428,11 +413,9 @@ public Integer getFraudOffset() { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or - * negative. + * An integer value that is added to the normal fraud score. The value can be either positive or negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be - * either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -443,8 +426,7 @@ public void setFraudOffset(Integer fraudOffset) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. * @return the current {@code StoreDetailAndSubmitRequest} instance, allowing for method chaining */ public StoreDetailAndSubmitRequest merchantAccount(String merchantAccount) { @@ -454,9 +436,7 @@ public StoreDetailAndSubmitRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * - * @return merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @return merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -467,8 +447,7 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -477,11 +456,9 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. - * 'NL'). + * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). * - * @param nationality The shopper's nationality. A valid value is an ISO 2-character country - * code (e.g. 'NL'). + * @param nationality The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). * @return the current {@code StoreDetailAndSubmitRequest} instance, allowing for method chaining */ public StoreDetailAndSubmitRequest nationality(String nationality) { @@ -490,11 +467,8 @@ public StoreDetailAndSubmitRequest nationality(String nationality) { } /** - * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. - * 'NL'). - * - * @return nationality The shopper's nationality. A valid value is an ISO 2-character country - * code (e.g. 'NL'). + * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). + * @return nationality The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). */ @JsonProperty(JSON_PROPERTY_NATIONALITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -503,11 +477,9 @@ public String getNationality() { } /** - * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. - * 'NL'). + * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). * - * @param nationality The shopper's nationality. A valid value is an ISO 2-character country - * code (e.g. 'NL'). + * @param nationality The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). */ @JsonProperty(JSON_PROPERTY_NATIONALITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -518,7 +490,7 @@ public void setNationality(String nationality) { /** * recurring * - * @param recurring + * @param recurring * @return the current {@code StoreDetailAndSubmitRequest} instance, allowing for method chaining */ public StoreDetailAndSubmitRequest recurring(Recurring recurring) { @@ -528,8 +500,7 @@ public StoreDetailAndSubmitRequest recurring(Recurring recurring) { /** * Get recurring - * - * @return recurring + * @return recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -540,7 +511,7 @@ public Recurring getRecurring() { /** * recurring * - * @param recurring + * @param recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -549,13 +520,9 @@ public void setRecurring(Recurring recurring) { } /** - * The merchant reference for this payment. This reference will be used in all communication to - * the merchant about the status of the payout. Although it is a good idea to make sure it is - * unique, this is not a requirement. + * The merchant reference for this payment. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. * - * @param reference The merchant reference for this payment. This reference will be used in all - * communication to the merchant about the status of the payout. Although it is a good idea to - * make sure it is unique, this is not a requirement. + * @param reference The merchant reference for this payment. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. * @return the current {@code StoreDetailAndSubmitRequest} instance, allowing for method chaining */ public StoreDetailAndSubmitRequest reference(String reference) { @@ -564,13 +531,8 @@ public StoreDetailAndSubmitRequest reference(String reference) { } /** - * The merchant reference for this payment. This reference will be used in all communication to - * the merchant about the status of the payout. Although it is a good idea to make sure it is - * unique, this is not a requirement. - * - * @return reference The merchant reference for this payment. This reference will be used in all - * communication to the merchant about the status of the payout. Although it is a good idea to - * make sure it is unique, this is not a requirement. + * The merchant reference for this payment. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. + * @return reference The merchant reference for this payment. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -579,13 +541,9 @@ public String getReference() { } /** - * The merchant reference for this payment. This reference will be used in all communication to - * the merchant about the status of the payout. Although it is a good idea to make sure it is - * unique, this is not a requirement. + * The merchant reference for this payment. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. * - * @param reference The merchant reference for this payment. This reference will be used in all - * communication to the merchant about the status of the payout. Although it is a good idea to - * make sure it is unique, this is not a requirement. + * @param reference The merchant reference for this payment. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -594,11 +552,9 @@ public void setReference(String reference) { } /** - * The name of the brand to make a payout to. For Paysafecard it must be set to - * `paysafecard`. + * The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. * - * @param selectedBrand The name of the brand to make a payout to. For Paysafecard it must be set - * to `paysafecard`. + * @param selectedBrand The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. * @return the current {@code StoreDetailAndSubmitRequest} instance, allowing for method chaining */ public StoreDetailAndSubmitRequest selectedBrand(String selectedBrand) { @@ -607,11 +563,8 @@ public StoreDetailAndSubmitRequest selectedBrand(String selectedBrand) { } /** - * The name of the brand to make a payout to. For Paysafecard it must be set to - * `paysafecard`. - * - * @return selectedBrand The name of the brand to make a payout to. For Paysafecard it must be set - * to `paysafecard`. + * The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. + * @return selectedBrand The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. */ @JsonProperty(JSON_PROPERTY_SELECTED_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -620,11 +573,9 @@ public String getSelectedBrand() { } /** - * The name of the brand to make a payout to. For Paysafecard it must be set to - * `paysafecard`. + * The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. * - * @param selectedBrand The name of the brand to make a payout to. For Paysafecard it must be set - * to `paysafecard`. + * @param selectedBrand The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. */ @JsonProperty(JSON_PROPERTY_SELECTED_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -645,7 +596,6 @@ public StoreDetailAndSubmitRequest shopperEmail(String shopperEmail) { /** * The shopper's email address. - * * @return shopperEmail The shopper's email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -668,7 +618,7 @@ public void setShopperEmail(String shopperEmail) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code StoreDetailAndSubmitRequest} instance, allowing for method chaining */ public StoreDetailAndSubmitRequest shopperName(Name shopperName) { @@ -678,8 +628,7 @@ public StoreDetailAndSubmitRequest shopperName(Name shopperName) { /** * Get shopperName - * - * @return shopperName + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -690,7 +639,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -711,7 +660,6 @@ public StoreDetailAndSubmitRequest shopperReference(String shopperReference) { /** * The shopper's reference for the payment transaction. - * * @return shopperReference The shopper's reference for the payment transaction. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @@ -732,11 +680,9 @@ public void setShopperReference(String shopperReference) { } /** - * The description of this payout. This description is shown on the bank statement of the shopper - * (if this is supported by the chosen payment method). + * The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). * - * @param shopperStatement The description of this payout. This description is shown on the bank - * statement of the shopper (if this is supported by the chosen payment method). + * @param shopperStatement The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). * @return the current {@code StoreDetailAndSubmitRequest} instance, allowing for method chaining */ public StoreDetailAndSubmitRequest shopperStatement(String shopperStatement) { @@ -745,11 +691,8 @@ public StoreDetailAndSubmitRequest shopperStatement(String shopperStatement) { } /** - * The description of this payout. This description is shown on the bank statement of the shopper - * (if this is supported by the chosen payment method). - * - * @return shopperStatement The description of this payout. This description is shown on the bank - * statement of the shopper (if this is supported by the chosen payment method). + * The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). + * @return shopperStatement The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -758,11 +701,9 @@ public String getShopperStatement() { } /** - * The description of this payout. This description is shown on the bank statement of the shopper - * (if this is supported by the chosen payment method). + * The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). * - * @param shopperStatement The description of this payout. This description is shown on the bank - * statement of the shopper (if this is supported by the chosen payment method). + * @param shopperStatement The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -783,7 +724,6 @@ public StoreDetailAndSubmitRequest socialSecurityNumber(String socialSecurityNum /** * The shopper's social security number. - * * @return socialSecurityNumber The shopper's social security number. */ @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER) @@ -816,7 +756,6 @@ public StoreDetailAndSubmitRequest telephoneNumber(String telephoneNumber) { /** * The shopper's phone number. - * * @return telephoneNumber The shopper's phone number. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @@ -836,7 +775,9 @@ public void setTelephoneNumber(String telephoneNumber) { this.telephoneNumber = telephoneNumber; } - /** Return true if this StoreDetailAndSubmitRequest object is equal to o. */ + /** + * Return true if this StoreDetailAndSubmitRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -846,50 +787,30 @@ public boolean equals(Object o) { return false; } StoreDetailAndSubmitRequest storeDetailAndSubmitRequest = (StoreDetailAndSubmitRequest) o; - return Objects.equals(this.additionalData, storeDetailAndSubmitRequest.additionalData) - && Objects.equals(this.amount, storeDetailAndSubmitRequest.amount) - && Objects.equals(this.bank, storeDetailAndSubmitRequest.bank) - && Objects.equals(this.billingAddress, storeDetailAndSubmitRequest.billingAddress) - && Objects.equals(this.card, storeDetailAndSubmitRequest.card) - && Objects.equals(this.dateOfBirth, storeDetailAndSubmitRequest.dateOfBirth) - && Objects.equals(this.entityType, storeDetailAndSubmitRequest.entityType) - && Objects.equals(this.fraudOffset, storeDetailAndSubmitRequest.fraudOffset) - && Objects.equals(this.merchantAccount, storeDetailAndSubmitRequest.merchantAccount) - && Objects.equals(this.nationality, storeDetailAndSubmitRequest.nationality) - && Objects.equals(this.recurring, storeDetailAndSubmitRequest.recurring) - && Objects.equals(this.reference, storeDetailAndSubmitRequest.reference) - && Objects.equals(this.selectedBrand, storeDetailAndSubmitRequest.selectedBrand) - && Objects.equals(this.shopperEmail, storeDetailAndSubmitRequest.shopperEmail) - && Objects.equals(this.shopperName, storeDetailAndSubmitRequest.shopperName) - && Objects.equals(this.shopperReference, storeDetailAndSubmitRequest.shopperReference) - && Objects.equals(this.shopperStatement, storeDetailAndSubmitRequest.shopperStatement) - && Objects.equals( - this.socialSecurityNumber, storeDetailAndSubmitRequest.socialSecurityNumber) - && Objects.equals(this.telephoneNumber, storeDetailAndSubmitRequest.telephoneNumber); + return Objects.equals(this.additionalData, storeDetailAndSubmitRequest.additionalData) && + Objects.equals(this.amount, storeDetailAndSubmitRequest.amount) && + Objects.equals(this.bank, storeDetailAndSubmitRequest.bank) && + Objects.equals(this.billingAddress, storeDetailAndSubmitRequest.billingAddress) && + Objects.equals(this.card, storeDetailAndSubmitRequest.card) && + Objects.equals(this.dateOfBirth, storeDetailAndSubmitRequest.dateOfBirth) && + Objects.equals(this.entityType, storeDetailAndSubmitRequest.entityType) && + Objects.equals(this.fraudOffset, storeDetailAndSubmitRequest.fraudOffset) && + Objects.equals(this.merchantAccount, storeDetailAndSubmitRequest.merchantAccount) && + Objects.equals(this.nationality, storeDetailAndSubmitRequest.nationality) && + Objects.equals(this.recurring, storeDetailAndSubmitRequest.recurring) && + Objects.equals(this.reference, storeDetailAndSubmitRequest.reference) && + Objects.equals(this.selectedBrand, storeDetailAndSubmitRequest.selectedBrand) && + Objects.equals(this.shopperEmail, storeDetailAndSubmitRequest.shopperEmail) && + Objects.equals(this.shopperName, storeDetailAndSubmitRequest.shopperName) && + Objects.equals(this.shopperReference, storeDetailAndSubmitRequest.shopperReference) && + Objects.equals(this.shopperStatement, storeDetailAndSubmitRequest.shopperStatement) && + Objects.equals(this.socialSecurityNumber, storeDetailAndSubmitRequest.socialSecurityNumber) && + Objects.equals(this.telephoneNumber, storeDetailAndSubmitRequest.telephoneNumber); } @Override public int hashCode() { - return Objects.hash( - additionalData, - amount, - bank, - billingAddress, - card, - dateOfBirth, - entityType, - fraudOffset, - merchantAccount, - nationality, - recurring, - reference, - selectedBrand, - shopperEmail, - shopperName, - shopperReference, - shopperStatement, - socialSecurityNumber, - telephoneNumber); + return Objects.hash(additionalData, amount, bank, billingAddress, card, dateOfBirth, entityType, fraudOffset, merchantAccount, nationality, recurring, reference, selectedBrand, shopperEmail, shopperName, shopperReference, shopperStatement, socialSecurityNumber, telephoneNumber); } @Override @@ -913,16 +834,15 @@ public String toString() { sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append(" shopperStatement: ").append(toIndentedString(shopperStatement)).append("\n"); - sb.append(" socialSecurityNumber: ") - .append(toIndentedString(socialSecurityNumber)) - .append("\n"); + sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -931,24 +851,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of StoreDetailAndSubmitRequest given an JSON string * * @param jsonString JSON string * @return An instance of StoreDetailAndSubmitRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoreDetailAndSubmitRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to StoreDetailAndSubmitRequest */ - public static StoreDetailAndSubmitRequest fromJson(String jsonString) - throws JsonProcessingException { + public static StoreDetailAndSubmitRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoreDetailAndSubmitRequest.class); } - - /** - * Convert an instance of StoreDetailAndSubmitRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of StoreDetailAndSubmitRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/StoreDetailAndSubmitResponse.java b/src/main/java/com/adyen/model/payout/StoreDetailAndSubmitResponse.java index 930d3027d..b8b463167 100644 --- a/src/main/java/com/adyen/model/payout/StoreDetailAndSubmitResponse.java +++ b/src/main/java/com/adyen/model/payout/StoreDetailAndSubmitResponse.java @@ -2,30 +2,40 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** StoreDetailAndSubmitResponse */ +/** + * StoreDetailAndSubmitResponse + */ @JsonPropertyOrder({ StoreDetailAndSubmitResponse.JSON_PROPERTY_ADDITIONAL_DATA, StoreDetailAndSubmitResponse.JSON_PROPERTY_PSP_REFERENCE, StoreDetailAndSubmitResponse.JSON_PROPERTY_REFUSAL_REASON, StoreDetailAndSubmitResponse.JSON_PROPERTY_RESULT_CODE }) + public class StoreDetailAndSubmitResponse { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -39,13 +49,13 @@ public class StoreDetailAndSubmitResponse { public static final String JSON_PROPERTY_RESULT_CODE = "resultCode"; private String resultCode; - public StoreDetailAndSubmitResponse() {} + public StoreDetailAndSubmitResponse() { + } /** * This field contains additional data, which may be returned in a particular response. * - * @param additionalData This field contains additional data, which may be returned in a - * particular response. + * @param additionalData This field contains additional data, which may be returned in a particular response. * @return the current {@code StoreDetailAndSubmitResponse} instance, allowing for method chaining */ public StoreDetailAndSubmitResponse additionalData(Map additionalData) { @@ -63,9 +73,7 @@ public StoreDetailAndSubmitResponse putAdditionalDataItem(String key, String add /** * This field contains additional data, which may be returned in a particular response. - * - * @return additionalData This field contains additional data, which may be returned in a - * particular response. + * @return additionalData This field contains additional data, which may be returned in a particular response. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -76,8 +84,7 @@ public Map getAdditionalData() { /** * This field contains additional data, which may be returned in a particular response. * - * @param additionalData This field contains additional data, which may be returned in a - * particular response. + * @param additionalData This field contains additional data, which may be returned in a particular response. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -98,7 +105,6 @@ public StoreDetailAndSubmitResponse pspReference(String pspReference) { /** * A new reference to uniquely identify this request. - * * @return pspReference A new reference to uniquely identify this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -131,7 +137,6 @@ public StoreDetailAndSubmitResponse refusalReason(String refusalReason) { /** * In case of refusal, an informational message for the reason. - * * @return refusalReason In case of refusal, an informational message for the reason. */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @@ -152,11 +157,9 @@ public void setRefusalReason(String refusalReason) { } /** - * The response: * In case of success is payout-submit-received. * In case of an error, an - * informational message is returned. + * The response: * In case of success is payout-submit-received. * In case of an error, an informational message is returned. * - * @param resultCode The response: * In case of success is payout-submit-received. * In case of an - * error, an informational message is returned. + * @param resultCode The response: * In case of success is payout-submit-received. * In case of an error, an informational message is returned. * @return the current {@code StoreDetailAndSubmitResponse} instance, allowing for method chaining */ public StoreDetailAndSubmitResponse resultCode(String resultCode) { @@ -165,11 +168,8 @@ public StoreDetailAndSubmitResponse resultCode(String resultCode) { } /** - * The response: * In case of success is payout-submit-received. * In case of an error, an - * informational message is returned. - * - * @return resultCode The response: * In case of success is payout-submit-received. * In case of - * an error, an informational message is returned. + * The response: * In case of success is payout-submit-received. * In case of an error, an informational message is returned. + * @return resultCode The response: * In case of success is payout-submit-received. * In case of an error, an informational message is returned. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,11 +178,9 @@ public String getResultCode() { } /** - * The response: * In case of success is payout-submit-received. * In case of an error, an - * informational message is returned. + * The response: * In case of success is payout-submit-received. * In case of an error, an informational message is returned. * - * @param resultCode The response: * In case of success is payout-submit-received. * In case of an - * error, an informational message is returned. + * @param resultCode The response: * In case of success is payout-submit-received. * In case of an error, an informational message is returned. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,7 +188,9 @@ public void setResultCode(String resultCode) { this.resultCode = resultCode; } - /** Return true if this StoreDetailAndSubmitResponse object is equal to o. */ + /** + * Return true if this StoreDetailAndSubmitResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -200,10 +200,10 @@ public boolean equals(Object o) { return false; } StoreDetailAndSubmitResponse storeDetailAndSubmitResponse = (StoreDetailAndSubmitResponse) o; - return Objects.equals(this.additionalData, storeDetailAndSubmitResponse.additionalData) - && Objects.equals(this.pspReference, storeDetailAndSubmitResponse.pspReference) - && Objects.equals(this.refusalReason, storeDetailAndSubmitResponse.refusalReason) - && Objects.equals(this.resultCode, storeDetailAndSubmitResponse.resultCode); + return Objects.equals(this.additionalData, storeDetailAndSubmitResponse.additionalData) && + Objects.equals(this.pspReference, storeDetailAndSubmitResponse.pspReference) && + Objects.equals(this.refusalReason, storeDetailAndSubmitResponse.refusalReason) && + Objects.equals(this.resultCode, storeDetailAndSubmitResponse.resultCode); } @Override @@ -224,7 +224,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -233,24 +234,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of StoreDetailAndSubmitResponse given an JSON string * * @param jsonString JSON string * @return An instance of StoreDetailAndSubmitResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoreDetailAndSubmitResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to StoreDetailAndSubmitResponse */ - public static StoreDetailAndSubmitResponse fromJson(String jsonString) - throws JsonProcessingException { + public static StoreDetailAndSubmitResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoreDetailAndSubmitResponse.class); } - - /** - * Convert an instance of StoreDetailAndSubmitResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of StoreDetailAndSubmitResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/StoreDetailRequest.java b/src/main/java/com/adyen/model/payout/StoreDetailRequest.java index 49902cce2..8c5c39bba 100644 --- a/src/main/java/com/adyen/model/payout/StoreDetailRequest.java +++ b/src/main/java/com/adyen/model/payout/StoreDetailRequest.java @@ -2,29 +2,39 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.payout.Address; +import com.adyen.model.payout.BankAccount; +import com.adyen.model.payout.Card; +import com.adyen.model.payout.Name; +import com.adyen.model.payout.Recurring; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; -import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** StoreDetailRequest */ +/** + * StoreDetailRequest + */ @JsonPropertyOrder({ StoreDetailRequest.JSON_PROPERTY_ADDITIONAL_DATA, StoreDetailRequest.JSON_PROPERTY_BANK, @@ -43,6 +53,7 @@ StoreDetailRequest.JSON_PROPERTY_SOCIAL_SECURITY_NUMBER, StoreDetailRequest.JSON_PROPERTY_TELEPHONE_NUMBER }) + public class StoreDetailRequest { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -59,8 +70,11 @@ public class StoreDetailRequest { public static final String JSON_PROPERTY_DATE_OF_BIRTH = "dateOfBirth"; private LocalDate dateOfBirth; - /** The type of the entity the payout is processed for. */ + /** + * The type of the entity the payout is processed for. + */ public enum EntityTypeEnum { + NATURALPERSON(String.valueOf("NaturalPerson")), COMPANY(String.valueOf("Company")); @@ -70,7 +84,7 @@ public enum EntityTypeEnum { private String value; EntityTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -91,11 +105,7 @@ public static EntityTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "EntityTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(EntityTypeEnum.values())); + LOG.warning("EntityTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(EntityTypeEnum.values())); return null; } } @@ -133,13 +143,13 @@ public static EntityTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TELEPHONE_NUMBER = "telephoneNumber"; private String telephoneNumber; - public StoreDetailRequest() {} + public StoreDetailRequest() { + } /** * This field contains additional data, which may be required for a particular request. * - * @param additionalData This field contains additional data, which may be required for a - * particular request. + * @param additionalData This field contains additional data, which may be required for a particular request. * @return the current {@code StoreDetailRequest} instance, allowing for method chaining */ public StoreDetailRequest additionalData(Map additionalData) { @@ -157,9 +167,7 @@ public StoreDetailRequest putAdditionalDataItem(String key, String additionalDat /** * This field contains additional data, which may be required for a particular request. - * - * @return additionalData This field contains additional data, which may be required for a - * particular request. + * @return additionalData This field contains additional data, which may be required for a particular request. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -170,8 +178,7 @@ public Map getAdditionalData() { /** * This field contains additional data, which may be required for a particular request. * - * @param additionalData This field contains additional data, which may be required for a - * particular request. + * @param additionalData This field contains additional data, which may be required for a particular request. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,7 +189,7 @@ public void setAdditionalData(Map additionalData) { /** * bank * - * @param bank + * @param bank * @return the current {@code StoreDetailRequest} instance, allowing for method chaining */ public StoreDetailRequest bank(BankAccount bank) { @@ -192,8 +199,7 @@ public StoreDetailRequest bank(BankAccount bank) { /** * Get bank - * - * @return bank + * @return bank */ @JsonProperty(JSON_PROPERTY_BANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,7 +210,7 @@ public BankAccount getBank() { /** * bank * - * @param bank + * @param bank */ @JsonProperty(JSON_PROPERTY_BANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -215,7 +221,7 @@ public void setBank(BankAccount bank) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code StoreDetailRequest} instance, allowing for method chaining */ public StoreDetailRequest billingAddress(Address billingAddress) { @@ -225,8 +231,7 @@ public StoreDetailRequest billingAddress(Address billingAddress) { /** * Get billingAddress - * - * @return billingAddress + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,7 +242,7 @@ public Address getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -248,7 +253,7 @@ public void setBillingAddress(Address billingAddress) { /** * card * - * @param card + * @param card * @return the current {@code StoreDetailRequest} instance, allowing for method chaining */ public StoreDetailRequest card(Card card) { @@ -258,8 +263,7 @@ public StoreDetailRequest card(Card card) { /** * Get card - * - * @return card + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -270,7 +274,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -279,13 +283,9 @@ public void setCard(Card card) { } /** - * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD - * For Paysafecard it must be the same as used when registering the Paysafecard account. > This - * field is mandatory for natural persons. + * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. * - * @param dateOfBirth The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); - * example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the - * Paysafecard account. > This field is mandatory for natural persons. + * @param dateOfBirth The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. * @return the current {@code StoreDetailRequest} instance, allowing for method chaining */ public StoreDetailRequest dateOfBirth(LocalDate dateOfBirth) { @@ -294,13 +294,8 @@ public StoreDetailRequest dateOfBirth(LocalDate dateOfBirth) { } /** - * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD - * For Paysafecard it must be the same as used when registering the Paysafecard account. > This - * field is mandatory for natural persons. - * - * @return dateOfBirth The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); - * example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the - * Paysafecard account. > This field is mandatory for natural persons. + * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. + * @return dateOfBirth The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -309,13 +304,9 @@ public LocalDate getDateOfBirth() { } /** - * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD - * For Paysafecard it must be the same as used when registering the Paysafecard account. > This - * field is mandatory for natural persons. + * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. * - * @param dateOfBirth The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); - * example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the - * Paysafecard account. > This field is mandatory for natural persons. + * @param dateOfBirth The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -336,7 +327,6 @@ public StoreDetailRequest entityType(EntityTypeEnum entityType) { /** * The type of the entity the payout is processed for. - * * @return entityType The type of the entity the payout is processed for. */ @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) @@ -357,11 +347,9 @@ public void setEntityType(EntityTypeEnum entityType) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or - * negative. + * An integer value that is added to the normal fraud score. The value can be either positive or negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be - * either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. * @return the current {@code StoreDetailRequest} instance, allowing for method chaining */ public StoreDetailRequest fraudOffset(Integer fraudOffset) { @@ -370,11 +358,8 @@ public StoreDetailRequest fraudOffset(Integer fraudOffset) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or - * negative. - * - * @return fraudOffset An integer value that is added to the normal fraud score. The value can be - * either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + * @return fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -383,11 +368,9 @@ public Integer getFraudOffset() { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or - * negative. + * An integer value that is added to the normal fraud score. The value can be either positive or negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be - * either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -398,8 +381,7 @@ public void setFraudOffset(Integer fraudOffset) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. * @return the current {@code StoreDetailRequest} instance, allowing for method chaining */ public StoreDetailRequest merchantAccount(String merchantAccount) { @@ -409,9 +391,7 @@ public StoreDetailRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * - * @return merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @return merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -422,8 +402,7 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -432,11 +411,9 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. - * 'NL'). + * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). * - * @param nationality The shopper's nationality. A valid value is an ISO 2-character country - * code (e.g. 'NL'). + * @param nationality The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). * @return the current {@code StoreDetailRequest} instance, allowing for method chaining */ public StoreDetailRequest nationality(String nationality) { @@ -445,11 +422,8 @@ public StoreDetailRequest nationality(String nationality) { } /** - * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. - * 'NL'). - * - * @return nationality The shopper's nationality. A valid value is an ISO 2-character country - * code (e.g. 'NL'). + * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). + * @return nationality The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). */ @JsonProperty(JSON_PROPERTY_NATIONALITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -458,11 +432,9 @@ public String getNationality() { } /** - * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. - * 'NL'). + * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). * - * @param nationality The shopper's nationality. A valid value is an ISO 2-character country - * code (e.g. 'NL'). + * @param nationality The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). */ @JsonProperty(JSON_PROPERTY_NATIONALITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -473,7 +445,7 @@ public void setNationality(String nationality) { /** * recurring * - * @param recurring + * @param recurring * @return the current {@code StoreDetailRequest} instance, allowing for method chaining */ public StoreDetailRequest recurring(Recurring recurring) { @@ -483,8 +455,7 @@ public StoreDetailRequest recurring(Recurring recurring) { /** * Get recurring - * - * @return recurring + * @return recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -495,7 +466,7 @@ public Recurring getRecurring() { /** * recurring * - * @param recurring + * @param recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -504,11 +475,9 @@ public void setRecurring(Recurring recurring) { } /** - * The name of the brand to make a payout to. For Paysafecard it must be set to - * `paysafecard`. + * The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. * - * @param selectedBrand The name of the brand to make a payout to. For Paysafecard it must be set - * to `paysafecard`. + * @param selectedBrand The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. * @return the current {@code StoreDetailRequest} instance, allowing for method chaining */ public StoreDetailRequest selectedBrand(String selectedBrand) { @@ -517,11 +486,8 @@ public StoreDetailRequest selectedBrand(String selectedBrand) { } /** - * The name of the brand to make a payout to. For Paysafecard it must be set to - * `paysafecard`. - * - * @return selectedBrand The name of the brand to make a payout to. For Paysafecard it must be set - * to `paysafecard`. + * The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. + * @return selectedBrand The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. */ @JsonProperty(JSON_PROPERTY_SELECTED_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -530,11 +496,9 @@ public String getSelectedBrand() { } /** - * The name of the brand to make a payout to. For Paysafecard it must be set to - * `paysafecard`. + * The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. * - * @param selectedBrand The name of the brand to make a payout to. For Paysafecard it must be set - * to `paysafecard`. + * @param selectedBrand The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. */ @JsonProperty(JSON_PROPERTY_SELECTED_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -555,7 +519,6 @@ public StoreDetailRequest shopperEmail(String shopperEmail) { /** * The shopper's email address. - * * @return shopperEmail The shopper's email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -578,7 +541,7 @@ public void setShopperEmail(String shopperEmail) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code StoreDetailRequest} instance, allowing for method chaining */ public StoreDetailRequest shopperName(Name shopperName) { @@ -588,8 +551,7 @@ public StoreDetailRequest shopperName(Name shopperName) { /** * Get shopperName - * - * @return shopperName + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -600,7 +562,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -621,7 +583,6 @@ public StoreDetailRequest shopperReference(String shopperReference) { /** * The shopper's reference for the payment transaction. - * * @return shopperReference The shopper's reference for the payment transaction. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @@ -654,7 +615,6 @@ public StoreDetailRequest socialSecurityNumber(String socialSecurityNumber) { /** * The shopper's social security number. - * * @return socialSecurityNumber The shopper's social security number. */ @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER) @@ -687,7 +647,6 @@ public StoreDetailRequest telephoneNumber(String telephoneNumber) { /** * The shopper's phone number. - * * @return telephoneNumber The shopper's phone number. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @@ -707,7 +666,9 @@ public void setTelephoneNumber(String telephoneNumber) { this.telephoneNumber = telephoneNumber; } - /** Return true if this StoreDetailRequest object is equal to o. */ + /** + * Return true if this StoreDetailRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -717,43 +678,27 @@ public boolean equals(Object o) { return false; } StoreDetailRequest storeDetailRequest = (StoreDetailRequest) o; - return Objects.equals(this.additionalData, storeDetailRequest.additionalData) - && Objects.equals(this.bank, storeDetailRequest.bank) - && Objects.equals(this.billingAddress, storeDetailRequest.billingAddress) - && Objects.equals(this.card, storeDetailRequest.card) - && Objects.equals(this.dateOfBirth, storeDetailRequest.dateOfBirth) - && Objects.equals(this.entityType, storeDetailRequest.entityType) - && Objects.equals(this.fraudOffset, storeDetailRequest.fraudOffset) - && Objects.equals(this.merchantAccount, storeDetailRequest.merchantAccount) - && Objects.equals(this.nationality, storeDetailRequest.nationality) - && Objects.equals(this.recurring, storeDetailRequest.recurring) - && Objects.equals(this.selectedBrand, storeDetailRequest.selectedBrand) - && Objects.equals(this.shopperEmail, storeDetailRequest.shopperEmail) - && Objects.equals(this.shopperName, storeDetailRequest.shopperName) - && Objects.equals(this.shopperReference, storeDetailRequest.shopperReference) - && Objects.equals(this.socialSecurityNumber, storeDetailRequest.socialSecurityNumber) - && Objects.equals(this.telephoneNumber, storeDetailRequest.telephoneNumber); + return Objects.equals(this.additionalData, storeDetailRequest.additionalData) && + Objects.equals(this.bank, storeDetailRequest.bank) && + Objects.equals(this.billingAddress, storeDetailRequest.billingAddress) && + Objects.equals(this.card, storeDetailRequest.card) && + Objects.equals(this.dateOfBirth, storeDetailRequest.dateOfBirth) && + Objects.equals(this.entityType, storeDetailRequest.entityType) && + Objects.equals(this.fraudOffset, storeDetailRequest.fraudOffset) && + Objects.equals(this.merchantAccount, storeDetailRequest.merchantAccount) && + Objects.equals(this.nationality, storeDetailRequest.nationality) && + Objects.equals(this.recurring, storeDetailRequest.recurring) && + Objects.equals(this.selectedBrand, storeDetailRequest.selectedBrand) && + Objects.equals(this.shopperEmail, storeDetailRequest.shopperEmail) && + Objects.equals(this.shopperName, storeDetailRequest.shopperName) && + Objects.equals(this.shopperReference, storeDetailRequest.shopperReference) && + Objects.equals(this.socialSecurityNumber, storeDetailRequest.socialSecurityNumber) && + Objects.equals(this.telephoneNumber, storeDetailRequest.telephoneNumber); } @Override public int hashCode() { - return Objects.hash( - additionalData, - bank, - billingAddress, - card, - dateOfBirth, - entityType, - fraudOffset, - merchantAccount, - nationality, - recurring, - selectedBrand, - shopperEmail, - shopperName, - shopperReference, - socialSecurityNumber, - telephoneNumber); + return Objects.hash(additionalData, bank, billingAddress, card, dateOfBirth, entityType, fraudOffset, merchantAccount, nationality, recurring, selectedBrand, shopperEmail, shopperName, shopperReference, socialSecurityNumber, telephoneNumber); } @Override @@ -774,16 +719,15 @@ public String toString() { sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); - sb.append(" socialSecurityNumber: ") - .append(toIndentedString(socialSecurityNumber)) - .append("\n"); + sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -792,23 +736,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of StoreDetailRequest given an JSON string * * @param jsonString JSON string * @return An instance of StoreDetailRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoreDetailRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to StoreDetailRequest */ public static StoreDetailRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoreDetailRequest.class); } - - /** - * Convert an instance of StoreDetailRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of StoreDetailRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/StoreDetailResponse.java b/src/main/java/com/adyen/model/payout/StoreDetailResponse.java index 613623c40..3af26d41c 100644 --- a/src/main/java/com/adyen/model/payout/StoreDetailResponse.java +++ b/src/main/java/com/adyen/model/payout/StoreDetailResponse.java @@ -2,30 +2,40 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** StoreDetailResponse */ +/** + * StoreDetailResponse + */ @JsonPropertyOrder({ StoreDetailResponse.JSON_PROPERTY_ADDITIONAL_DATA, StoreDetailResponse.JSON_PROPERTY_PSP_REFERENCE, StoreDetailResponse.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, StoreDetailResponse.JSON_PROPERTY_RESULT_CODE }) + public class StoreDetailResponse { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -39,13 +49,13 @@ public class StoreDetailResponse { public static final String JSON_PROPERTY_RESULT_CODE = "resultCode"; private String resultCode; - public StoreDetailResponse() {} + public StoreDetailResponse() { + } /** * This field contains additional data, which may be returned in a particular response. * - * @param additionalData This field contains additional data, which may be returned in a - * particular response. + * @param additionalData This field contains additional data, which may be returned in a particular response. * @return the current {@code StoreDetailResponse} instance, allowing for method chaining */ public StoreDetailResponse additionalData(Map additionalData) { @@ -63,9 +73,7 @@ public StoreDetailResponse putAdditionalDataItem(String key, String additionalDa /** * This field contains additional data, which may be returned in a particular response. - * - * @return additionalData This field contains additional data, which may be returned in a - * particular response. + * @return additionalData This field contains additional data, which may be returned in a particular response. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -76,8 +84,7 @@ public Map getAdditionalData() { /** * This field contains additional data, which may be returned in a particular response. * - * @param additionalData This field contains additional data, which may be returned in a - * particular response. + * @param additionalData This field contains additional data, which may be returned in a particular response. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -98,7 +105,6 @@ public StoreDetailResponse pspReference(String pspReference) { /** * A new reference to uniquely identify this request. - * * @return pspReference A new reference to uniquely identify this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -131,9 +137,7 @@ public StoreDetailResponse recurringDetailReference(String recurringDetailRefere /** * The token which you can use later on for submitting the payout. - * - * @return recurringDetailReference The token which you can use later on for submitting the - * payout. + * @return recurringDetailReference The token which you can use later on for submitting the payout. */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -153,11 +157,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * The result code of the transaction. `Success` indicates that the details were stored - * successfully. + * The result code of the transaction. `Success` indicates that the details were stored successfully. * - * @param resultCode The result code of the transaction. `Success` indicates that the - * details were stored successfully. + * @param resultCode The result code of the transaction. `Success` indicates that the details were stored successfully. * @return the current {@code StoreDetailResponse} instance, allowing for method chaining */ public StoreDetailResponse resultCode(String resultCode) { @@ -166,11 +168,8 @@ public StoreDetailResponse resultCode(String resultCode) { } /** - * The result code of the transaction. `Success` indicates that the details were stored - * successfully. - * - * @return resultCode The result code of the transaction. `Success` indicates that the - * details were stored successfully. + * The result code of the transaction. `Success` indicates that the details were stored successfully. + * @return resultCode The result code of the transaction. `Success` indicates that the details were stored successfully. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,11 +178,9 @@ public String getResultCode() { } /** - * The result code of the transaction. `Success` indicates that the details were stored - * successfully. + * The result code of the transaction. `Success` indicates that the details were stored successfully. * - * @param resultCode The result code of the transaction. `Success` indicates that the - * details were stored successfully. + * @param resultCode The result code of the transaction. `Success` indicates that the details were stored successfully. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,7 +188,9 @@ public void setResultCode(String resultCode) { this.resultCode = resultCode; } - /** Return true if this StoreDetailResponse object is equal to o. */ + /** + * Return true if this StoreDetailResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -201,11 +200,10 @@ public boolean equals(Object o) { return false; } StoreDetailResponse storeDetailResponse = (StoreDetailResponse) o; - return Objects.equals(this.additionalData, storeDetailResponse.additionalData) - && Objects.equals(this.pspReference, storeDetailResponse.pspReference) - && Objects.equals( - this.recurringDetailReference, storeDetailResponse.recurringDetailReference) - && Objects.equals(this.resultCode, storeDetailResponse.resultCode); + return Objects.equals(this.additionalData, storeDetailResponse.additionalData) && + Objects.equals(this.pspReference, storeDetailResponse.pspReference) && + Objects.equals(this.recurringDetailReference, storeDetailResponse.recurringDetailReference) && + Objects.equals(this.resultCode, storeDetailResponse.resultCode); } @Override @@ -219,16 +217,15 @@ public String toString() { sb.append("class StoreDetailResponse {\n"); sb.append(" additionalData: ").append(toIndentedString(additionalData)).append("\n"); sb.append(" pspReference: ").append(toIndentedString(pspReference)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); sb.append(" resultCode: ").append(toIndentedString(resultCode)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -237,23 +234,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of StoreDetailResponse given an JSON string * * @param jsonString JSON string * @return An instance of StoreDetailResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoreDetailResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to StoreDetailResponse */ public static StoreDetailResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoreDetailResponse.class); } - - /** - * Convert an instance of StoreDetailResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of StoreDetailResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/SubmitRequest.java b/src/main/java/com/adyen/model/payout/SubmitRequest.java index 1a16f7af9..fc577c079 100644 --- a/src/main/java/com/adyen/model/payout/SubmitRequest.java +++ b/src/main/java/com/adyen/model/payout/SubmitRequest.java @@ -2,29 +2,37 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payout; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.payout.Amount; +import com.adyen.model.payout.Name; +import com.adyen.model.payout.Recurring; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; -import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** SubmitRequest */ +/** + * SubmitRequest + */ @JsonPropertyOrder({ SubmitRequest.JSON_PROPERTY_ADDITIONAL_DATA, SubmitRequest.JSON_PROPERTY_AMOUNT, @@ -42,6 +50,7 @@ SubmitRequest.JSON_PROPERTY_SHOPPER_STATEMENT, SubmitRequest.JSON_PROPERTY_SOCIAL_SECURITY_NUMBER }) + public class SubmitRequest { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -53,11 +62,10 @@ public class SubmitRequest { private LocalDate dateOfBirth; /** - * The type of the entity the payout is processed for. Allowed values: * NaturalPerson * Company - * > This field is required to update the existing `entityType` that is associated - * with this recurring contract. + * The type of the entity the payout is processed for. Allowed values: * NaturalPerson * Company > This field is required to update the existing `entityType` that is associated with this recurring contract. */ public enum EntityTypeEnum { + NATURALPERSON(String.valueOf("NaturalPerson")), COMPANY(String.valueOf("Company")); @@ -67,7 +75,7 @@ public enum EntityTypeEnum { private String value; EntityTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -88,11 +96,7 @@ public static EntityTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "EntityTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(EntityTypeEnum.values())); + LOG.warning("EntityTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(EntityTypeEnum.values())); return null; } } @@ -115,8 +119,7 @@ public static EntityTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = - "selectedRecurringDetailReference"; + public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = "selectedRecurringDetailReference"; private String selectedRecurringDetailReference; public static final String JSON_PROPERTY_SHOPPER_EMAIL = "shopperEmail"; @@ -134,13 +137,13 @@ public static EntityTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_SOCIAL_SECURITY_NUMBER = "socialSecurityNumber"; private String socialSecurityNumber; - public SubmitRequest() {} + public SubmitRequest() { + } /** * This field contains additional data, which may be required for a particular request. * - * @param additionalData This field contains additional data, which may be required for a - * particular request. + * @param additionalData This field contains additional data, which may be required for a particular request. * @return the current {@code SubmitRequest} instance, allowing for method chaining */ public SubmitRequest additionalData(Map additionalData) { @@ -158,9 +161,7 @@ public SubmitRequest putAdditionalDataItem(String key, String additionalDataItem /** * This field contains additional data, which may be required for a particular request. - * - * @return additionalData This field contains additional data, which may be required for a - * particular request. + * @return additionalData This field contains additional data, which may be required for a particular request. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -171,8 +172,7 @@ public Map getAdditionalData() { /** * This field contains additional data, which may be required for a particular request. * - * @param additionalData This field contains additional data, which may be required for a - * particular request. + * @param additionalData This field contains additional data, which may be required for a particular request. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,7 +183,7 @@ public void setAdditionalData(Map additionalData) { /** * amount * - * @param amount + * @param amount * @return the current {@code SubmitRequest} instance, allowing for method chaining */ public SubmitRequest amount(Amount amount) { @@ -193,8 +193,7 @@ public SubmitRequest amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -205,7 +204,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,15 +213,9 @@ public void setAmount(Amount amount) { } /** - * The date of birth. Format: ISO-8601; example: YYYY-MM-DD For Paysafecard it must be the same as - * used when registering the Paysafecard account. > This field is mandatory for natural - * persons. > This field is required to update the existing `dateOfBirth` that is - * associated with this recurring contract. + * The date of birth. Format: ISO-8601; example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. > This field is required to update the existing `dateOfBirth` that is associated with this recurring contract. * - * @param dateOfBirth The date of birth. Format: ISO-8601; example: YYYY-MM-DD For Paysafecard it - * must be the same as used when registering the Paysafecard account. > This field is - * mandatory for natural persons. > This field is required to update the existing - * `dateOfBirth` that is associated with this recurring contract. + * @param dateOfBirth The date of birth. Format: ISO-8601; example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. > This field is required to update the existing `dateOfBirth` that is associated with this recurring contract. * @return the current {@code SubmitRequest} instance, allowing for method chaining */ public SubmitRequest dateOfBirth(LocalDate dateOfBirth) { @@ -231,15 +224,8 @@ public SubmitRequest dateOfBirth(LocalDate dateOfBirth) { } /** - * The date of birth. Format: ISO-8601; example: YYYY-MM-DD For Paysafecard it must be the same as - * used when registering the Paysafecard account. > This field is mandatory for natural - * persons. > This field is required to update the existing `dateOfBirth` that is - * associated with this recurring contract. - * - * @return dateOfBirth The date of birth. Format: ISO-8601; example: YYYY-MM-DD For Paysafecard it - * must be the same as used when registering the Paysafecard account. > This field is - * mandatory for natural persons. > This field is required to update the existing - * `dateOfBirth` that is associated with this recurring contract. + * The date of birth. Format: ISO-8601; example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. > This field is required to update the existing `dateOfBirth` that is associated with this recurring contract. + * @return dateOfBirth The date of birth. Format: ISO-8601; example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. > This field is required to update the existing `dateOfBirth` that is associated with this recurring contract. */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -248,15 +234,9 @@ public LocalDate getDateOfBirth() { } /** - * The date of birth. Format: ISO-8601; example: YYYY-MM-DD For Paysafecard it must be the same as - * used when registering the Paysafecard account. > This field is mandatory for natural - * persons. > This field is required to update the existing `dateOfBirth` that is - * associated with this recurring contract. + * The date of birth. Format: ISO-8601; example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. > This field is required to update the existing `dateOfBirth` that is associated with this recurring contract. * - * @param dateOfBirth The date of birth. Format: ISO-8601; example: YYYY-MM-DD For Paysafecard it - * must be the same as used when registering the Paysafecard account. > This field is - * mandatory for natural persons. > This field is required to update the existing - * `dateOfBirth` that is associated with this recurring contract. + * @param dateOfBirth The date of birth. Format: ISO-8601; example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. > This field is required to update the existing `dateOfBirth` that is associated with this recurring contract. */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -265,13 +245,9 @@ public void setDateOfBirth(LocalDate dateOfBirth) { } /** - * The type of the entity the payout is processed for. Allowed values: * NaturalPerson * Company - * > This field is required to update the existing `entityType` that is associated - * with this recurring contract. + * The type of the entity the payout is processed for. Allowed values: * NaturalPerson * Company > This field is required to update the existing `entityType` that is associated with this recurring contract. * - * @param entityType The type of the entity the payout is processed for. Allowed values: * - * NaturalPerson * Company > This field is required to update the existing - * `entityType` that is associated with this recurring contract. + * @param entityType The type of the entity the payout is processed for. Allowed values: * NaturalPerson * Company > This field is required to update the existing `entityType` that is associated with this recurring contract. * @return the current {@code SubmitRequest} instance, allowing for method chaining */ public SubmitRequest entityType(EntityTypeEnum entityType) { @@ -280,13 +256,8 @@ public SubmitRequest entityType(EntityTypeEnum entityType) { } /** - * The type of the entity the payout is processed for. Allowed values: * NaturalPerson * Company - * > This field is required to update the existing `entityType` that is associated - * with this recurring contract. - * - * @return entityType The type of the entity the payout is processed for. Allowed values: * - * NaturalPerson * Company > This field is required to update the existing - * `entityType` that is associated with this recurring contract. + * The type of the entity the payout is processed for. Allowed values: * NaturalPerson * Company > This field is required to update the existing `entityType` that is associated with this recurring contract. + * @return entityType The type of the entity the payout is processed for. Allowed values: * NaturalPerson * Company > This field is required to update the existing `entityType` that is associated with this recurring contract. */ @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -295,13 +266,9 @@ public EntityTypeEnum getEntityType() { } /** - * The type of the entity the payout is processed for. Allowed values: * NaturalPerson * Company - * > This field is required to update the existing `entityType` that is associated - * with this recurring contract. + * The type of the entity the payout is processed for. Allowed values: * NaturalPerson * Company > This field is required to update the existing `entityType` that is associated with this recurring contract. * - * @param entityType The type of the entity the payout is processed for. Allowed values: * - * NaturalPerson * Company > This field is required to update the existing - * `entityType` that is associated with this recurring contract. + * @param entityType The type of the entity the payout is processed for. Allowed values: * NaturalPerson * Company > This field is required to update the existing `entityType` that is associated with this recurring contract. */ @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -310,11 +277,9 @@ public void setEntityType(EntityTypeEnum entityType) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or - * negative. + * An integer value that is added to the normal fraud score. The value can be either positive or negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be - * either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. * @return the current {@code SubmitRequest} instance, allowing for method chaining */ public SubmitRequest fraudOffset(Integer fraudOffset) { @@ -323,11 +288,8 @@ public SubmitRequest fraudOffset(Integer fraudOffset) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or - * negative. - * - * @return fraudOffset An integer value that is added to the normal fraud score. The value can be - * either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + * @return fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -336,11 +298,9 @@ public Integer getFraudOffset() { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or - * negative. + * An integer value that is added to the normal fraud score. The value can be either positive or negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be - * either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -351,8 +311,7 @@ public void setFraudOffset(Integer fraudOffset) { /** * The merchant account identifier you want to process the transaction request with. * - * @param merchantAccount The merchant account identifier you want to process the transaction - * request with. + * @param merchantAccount The merchant account identifier you want to process the transaction request with. * @return the current {@code SubmitRequest} instance, allowing for method chaining */ public SubmitRequest merchantAccount(String merchantAccount) { @@ -362,9 +321,7 @@ public SubmitRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier you want to process the transaction request with. - * - * @return merchantAccount The merchant account identifier you want to process the transaction - * request with. + * @return merchantAccount The merchant account identifier you want to process the transaction request with. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -375,8 +332,7 @@ public String getMerchantAccount() { /** * The merchant account identifier you want to process the transaction request with. * - * @param merchantAccount The merchant account identifier you want to process the transaction - * request with. + * @param merchantAccount The merchant account identifier you want to process the transaction request with. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -385,13 +341,9 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. - * 'NL'). > This field is required to update the existing nationality that is - * associated with this recurring contract. + * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). > This field is required to update the existing nationality that is associated with this recurring contract. * - * @param nationality The shopper's nationality. A valid value is an ISO 2-character country - * code (e.g. 'NL'). > This field is required to update the existing nationality - * that is associated with this recurring contract. + * @param nationality The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). > This field is required to update the existing nationality that is associated with this recurring contract. * @return the current {@code SubmitRequest} instance, allowing for method chaining */ public SubmitRequest nationality(String nationality) { @@ -400,13 +352,8 @@ public SubmitRequest nationality(String nationality) { } /** - * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. - * 'NL'). > This field is required to update the existing nationality that is - * associated with this recurring contract. - * - * @return nationality The shopper's nationality. A valid value is an ISO 2-character country - * code (e.g. 'NL'). > This field is required to update the existing nationality - * that is associated with this recurring contract. + * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). > This field is required to update the existing nationality that is associated with this recurring contract. + * @return nationality The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). > This field is required to update the existing nationality that is associated with this recurring contract. */ @JsonProperty(JSON_PROPERTY_NATIONALITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -415,13 +362,9 @@ public String getNationality() { } /** - * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. - * 'NL'). > This field is required to update the existing nationality that is - * associated with this recurring contract. + * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). > This field is required to update the existing nationality that is associated with this recurring contract. * - * @param nationality The shopper's nationality. A valid value is an ISO 2-character country - * code (e.g. 'NL'). > This field is required to update the existing nationality - * that is associated with this recurring contract. + * @param nationality The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). > This field is required to update the existing nationality that is associated with this recurring contract. */ @JsonProperty(JSON_PROPERTY_NATIONALITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -432,7 +375,7 @@ public void setNationality(String nationality) { /** * recurring * - * @param recurring + * @param recurring * @return the current {@code SubmitRequest} instance, allowing for method chaining */ public SubmitRequest recurring(Recurring recurring) { @@ -442,8 +385,7 @@ public SubmitRequest recurring(Recurring recurring) { /** * Get recurring - * - * @return recurring + * @return recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -454,7 +396,7 @@ public Recurring getRecurring() { /** * recurring * - * @param recurring + * @param recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -463,13 +405,9 @@ public void setRecurring(Recurring recurring) { } /** - * The merchant reference for this payout. This reference will be used in all communication to the - * merchant about the status of the payout. Although it is a good idea to make sure it is unique, - * this is not a requirement. + * The merchant reference for this payout. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. * - * @param reference The merchant reference for this payout. This reference will be used in all - * communication to the merchant about the status of the payout. Although it is a good idea to - * make sure it is unique, this is not a requirement. + * @param reference The merchant reference for this payout. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. * @return the current {@code SubmitRequest} instance, allowing for method chaining */ public SubmitRequest reference(String reference) { @@ -478,13 +416,8 @@ public SubmitRequest reference(String reference) { } /** - * The merchant reference for this payout. This reference will be used in all communication to the - * merchant about the status of the payout. Although it is a good idea to make sure it is unique, - * this is not a requirement. - * - * @return reference The merchant reference for this payout. This reference will be used in all - * communication to the merchant about the status of the payout. Although it is a good idea to - * make sure it is unique, this is not a requirement. + * The merchant reference for this payout. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. + * @return reference The merchant reference for this payout. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -493,13 +426,9 @@ public String getReference() { } /** - * The merchant reference for this payout. This reference will be used in all communication to the - * merchant about the status of the payout. Although it is a good idea to make sure it is unique, - * this is not a requirement. + * The merchant reference for this payout. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. * - * @param reference The merchant reference for this payout. This reference will be used in all - * communication to the merchant about the status of the payout. Although it is a good idea to - * make sure it is unique, this is not a requirement. + * @param reference The merchant reference for this payout. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -508,12 +437,9 @@ public void setReference(String reference) { } /** - * This is the `recurringDetailReference` you want to use for this payout. You can use - * the value LATEST to select the most recently used recurring detail. + * This is the `recurringDetailReference` you want to use for this payout. You can use the value LATEST to select the most recently used recurring detail. * - * @param selectedRecurringDetailReference This is the `recurringDetailReference` you - * want to use for this payout. You can use the value LATEST to select the most recently used - * recurring detail. + * @param selectedRecurringDetailReference This is the `recurringDetailReference` you want to use for this payout. You can use the value LATEST to select the most recently used recurring detail. * @return the current {@code SubmitRequest} instance, allowing for method chaining */ public SubmitRequest selectedRecurringDetailReference(String selectedRecurringDetailReference) { @@ -522,12 +448,8 @@ public SubmitRequest selectedRecurringDetailReference(String selectedRecurringDe } /** - * This is the `recurringDetailReference` you want to use for this payout. You can use - * the value LATEST to select the most recently used recurring detail. - * - * @return selectedRecurringDetailReference This is the `recurringDetailReference` you - * want to use for this payout. You can use the value LATEST to select the most recently used - * recurring detail. + * This is the `recurringDetailReference` you want to use for this payout. You can use the value LATEST to select the most recently used recurring detail. + * @return selectedRecurringDetailReference This is the `recurringDetailReference` you want to use for this payout. You can use the value LATEST to select the most recently used recurring detail. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -536,12 +458,9 @@ public String getSelectedRecurringDetailReference() { } /** - * This is the `recurringDetailReference` you want to use for this payout. You can use - * the value LATEST to select the most recently used recurring detail. + * This is the `recurringDetailReference` you want to use for this payout. You can use the value LATEST to select the most recently used recurring detail. * - * @param selectedRecurringDetailReference This is the `recurringDetailReference` you - * want to use for this payout. You can use the value LATEST to select the most recently used - * recurring detail. + * @param selectedRecurringDetailReference This is the `recurringDetailReference` you want to use for this payout. You can use the value LATEST to select the most recently used recurring detail. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -562,7 +481,6 @@ public SubmitRequest shopperEmail(String shopperEmail) { /** * The shopper's email address. - * * @return shopperEmail The shopper's email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -585,7 +503,7 @@ public void setShopperEmail(String shopperEmail) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code SubmitRequest} instance, allowing for method chaining */ public SubmitRequest shopperName(Name shopperName) { @@ -595,8 +513,7 @@ public SubmitRequest shopperName(Name shopperName) { /** * Get shopperName - * - * @return shopperName + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -607,7 +524,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -628,7 +545,6 @@ public SubmitRequest shopperReference(String shopperReference) { /** * The shopper's reference for the payout transaction. - * * @return shopperReference The shopper's reference for the payout transaction. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @@ -649,11 +565,9 @@ public void setShopperReference(String shopperReference) { } /** - * The description of this payout. This description is shown on the bank statement of the shopper - * (if this is supported by the chosen payment method). + * The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). * - * @param shopperStatement The description of this payout. This description is shown on the bank - * statement of the shopper (if this is supported by the chosen payment method). + * @param shopperStatement The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). * @return the current {@code SubmitRequest} instance, allowing for method chaining */ public SubmitRequest shopperStatement(String shopperStatement) { @@ -662,11 +576,8 @@ public SubmitRequest shopperStatement(String shopperStatement) { } /** - * The description of this payout. This description is shown on the bank statement of the shopper - * (if this is supported by the chosen payment method). - * - * @return shopperStatement The description of this payout. This description is shown on the bank - * statement of the shopper (if this is supported by the chosen payment method). + * The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). + * @return shopperStatement The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -675,11 +586,9 @@ public String getShopperStatement() { } /** - * The description of this payout. This description is shown on the bank statement of the shopper - * (if this is supported by the chosen payment method). + * The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). * - * @param shopperStatement The description of this payout. This description is shown on the bank - * statement of the shopper (if this is supported by the chosen payment method). + * @param shopperStatement The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -700,7 +609,6 @@ public SubmitRequest socialSecurityNumber(String socialSecurityNumber) { /** * The shopper's social security number. - * * @return socialSecurityNumber The shopper's social security number. */ @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER) @@ -720,7 +628,9 @@ public void setSocialSecurityNumber(String socialSecurityNumber) { this.socialSecurityNumber = socialSecurityNumber; } - /** Return true if this SubmitRequest object is equal to o. */ + /** + * Return true if this SubmitRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -730,42 +640,26 @@ public boolean equals(Object o) { return false; } SubmitRequest submitRequest = (SubmitRequest) o; - return Objects.equals(this.additionalData, submitRequest.additionalData) - && Objects.equals(this.amount, submitRequest.amount) - && Objects.equals(this.dateOfBirth, submitRequest.dateOfBirth) - && Objects.equals(this.entityType, submitRequest.entityType) - && Objects.equals(this.fraudOffset, submitRequest.fraudOffset) - && Objects.equals(this.merchantAccount, submitRequest.merchantAccount) - && Objects.equals(this.nationality, submitRequest.nationality) - && Objects.equals(this.recurring, submitRequest.recurring) - && Objects.equals(this.reference, submitRequest.reference) - && Objects.equals( - this.selectedRecurringDetailReference, submitRequest.selectedRecurringDetailReference) - && Objects.equals(this.shopperEmail, submitRequest.shopperEmail) - && Objects.equals(this.shopperName, submitRequest.shopperName) - && Objects.equals(this.shopperReference, submitRequest.shopperReference) - && Objects.equals(this.shopperStatement, submitRequest.shopperStatement) - && Objects.equals(this.socialSecurityNumber, submitRequest.socialSecurityNumber); + return Objects.equals(this.additionalData, submitRequest.additionalData) && + Objects.equals(this.amount, submitRequest.amount) && + Objects.equals(this.dateOfBirth, submitRequest.dateOfBirth) && + Objects.equals(this.entityType, submitRequest.entityType) && + Objects.equals(this.fraudOffset, submitRequest.fraudOffset) && + Objects.equals(this.merchantAccount, submitRequest.merchantAccount) && + Objects.equals(this.nationality, submitRequest.nationality) && + Objects.equals(this.recurring, submitRequest.recurring) && + Objects.equals(this.reference, submitRequest.reference) && + Objects.equals(this.selectedRecurringDetailReference, submitRequest.selectedRecurringDetailReference) && + Objects.equals(this.shopperEmail, submitRequest.shopperEmail) && + Objects.equals(this.shopperName, submitRequest.shopperName) && + Objects.equals(this.shopperReference, submitRequest.shopperReference) && + Objects.equals(this.shopperStatement, submitRequest.shopperStatement) && + Objects.equals(this.socialSecurityNumber, submitRequest.socialSecurityNumber); } @Override public int hashCode() { - return Objects.hash( - additionalData, - amount, - dateOfBirth, - entityType, - fraudOffset, - merchantAccount, - nationality, - recurring, - reference, - selectedRecurringDetailReference, - shopperEmail, - shopperName, - shopperReference, - shopperStatement, - socialSecurityNumber); + return Objects.hash(additionalData, amount, dateOfBirth, entityType, fraudOffset, merchantAccount, nationality, recurring, reference, selectedRecurringDetailReference, shopperEmail, shopperName, shopperReference, shopperStatement, socialSecurityNumber); } @Override @@ -781,22 +675,19 @@ public String toString() { sb.append(" nationality: ").append(toIndentedString(nationality)).append("\n"); sb.append(" recurring: ").append(toIndentedString(recurring)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); - sb.append(" selectedRecurringDetailReference: ") - .append(toIndentedString(selectedRecurringDetailReference)) - .append("\n"); + sb.append(" selectedRecurringDetailReference: ").append(toIndentedString(selectedRecurringDetailReference)).append("\n"); sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append(" shopperStatement: ").append(toIndentedString(shopperStatement)).append("\n"); - sb.append(" socialSecurityNumber: ") - .append(toIndentedString(socialSecurityNumber)) - .append("\n"); + sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -805,7 +696,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SubmitRequest given an JSON string * * @param jsonString JSON string @@ -815,12 +706,11 @@ private String toIndentedString(Object o) { public static SubmitRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SubmitRequest.class); } - - /** - * Convert an instance of SubmitRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SubmitRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/SubmitResponse.java b/src/main/java/com/adyen/model/payout/SubmitResponse.java index 5283e7e2a..fc3fdba14 100644 --- a/src/main/java/com/adyen/model/payout/SubmitResponse.java +++ b/src/main/java/com/adyen/model/payout/SubmitResponse.java @@ -2,30 +2,40 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.payout; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** SubmitResponse */ +/** + * SubmitResponse + */ @JsonPropertyOrder({ SubmitResponse.JSON_PROPERTY_ADDITIONAL_DATA, SubmitResponse.JSON_PROPERTY_PSP_REFERENCE, SubmitResponse.JSON_PROPERTY_REFUSAL_REASON, SubmitResponse.JSON_PROPERTY_RESULT_CODE }) + public class SubmitResponse { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -39,13 +49,13 @@ public class SubmitResponse { public static final String JSON_PROPERTY_RESULT_CODE = "resultCode"; private String resultCode; - public SubmitResponse() {} + public SubmitResponse() { + } /** * This field contains additional data, which may be returned in a particular response. * - * @param additionalData This field contains additional data, which may be returned in a - * particular response. + * @param additionalData This field contains additional data, which may be returned in a particular response. * @return the current {@code SubmitResponse} instance, allowing for method chaining */ public SubmitResponse additionalData(Map additionalData) { @@ -63,9 +73,7 @@ public SubmitResponse putAdditionalDataItem(String key, String additionalDataIte /** * This field contains additional data, which may be returned in a particular response. - * - * @return additionalData This field contains additional data, which may be returned in a - * particular response. + * @return additionalData This field contains additional data, which may be returned in a particular response. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -76,8 +84,7 @@ public Map getAdditionalData() { /** * This field contains additional data, which may be returned in a particular response. * - * @param additionalData This field contains additional data, which may be returned in a - * particular response. + * @param additionalData This field contains additional data, which may be returned in a particular response. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -98,7 +105,6 @@ public SubmitResponse pspReference(String pspReference) { /** * A new reference to uniquely identify this request. - * * @return pspReference A new reference to uniquely identify this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -131,7 +137,6 @@ public SubmitResponse refusalReason(String refusalReason) { /** * In case of refusal, an informational message for the reason. - * * @return refusalReason In case of refusal, an informational message for the reason. */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @@ -152,11 +157,9 @@ public void setRefusalReason(String refusalReason) { } /** - * The response: * In case of success, it is `payout-submit-received`. * In case of an - * error, an informational message is returned. + * The response: * In case of success, it is `payout-submit-received`. * In case of an error, an informational message is returned. * - * @param resultCode The response: * In case of success, it is `payout-submit-received`. - * * In case of an error, an informational message is returned. + * @param resultCode The response: * In case of success, it is `payout-submit-received`. * In case of an error, an informational message is returned. * @return the current {@code SubmitResponse} instance, allowing for method chaining */ public SubmitResponse resultCode(String resultCode) { @@ -165,12 +168,8 @@ public SubmitResponse resultCode(String resultCode) { } /** - * The response: * In case of success, it is `payout-submit-received`. * In case of an - * error, an informational message is returned. - * - * @return resultCode The response: * In case of success, it is - * `payout-submit-received`. * In case of an error, an informational message is - * returned. + * The response: * In case of success, it is `payout-submit-received`. * In case of an error, an informational message is returned. + * @return resultCode The response: * In case of success, it is `payout-submit-received`. * In case of an error, an informational message is returned. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,11 +178,9 @@ public String getResultCode() { } /** - * The response: * In case of success, it is `payout-submit-received`. * In case of an - * error, an informational message is returned. + * The response: * In case of success, it is `payout-submit-received`. * In case of an error, an informational message is returned. * - * @param resultCode The response: * In case of success, it is `payout-submit-received`. - * * In case of an error, an informational message is returned. + * @param resultCode The response: * In case of success, it is `payout-submit-received`. * In case of an error, an informational message is returned. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,7 +188,9 @@ public void setResultCode(String resultCode) { this.resultCode = resultCode; } - /** Return true if this SubmitResponse object is equal to o. */ + /** + * Return true if this SubmitResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -201,10 +200,10 @@ public boolean equals(Object o) { return false; } SubmitResponse submitResponse = (SubmitResponse) o; - return Objects.equals(this.additionalData, submitResponse.additionalData) - && Objects.equals(this.pspReference, submitResponse.pspReference) - && Objects.equals(this.refusalReason, submitResponse.refusalReason) - && Objects.equals(this.resultCode, submitResponse.resultCode); + return Objects.equals(this.additionalData, submitResponse.additionalData) && + Objects.equals(this.pspReference, submitResponse.pspReference) && + Objects.equals(this.refusalReason, submitResponse.refusalReason) && + Objects.equals(this.resultCode, submitResponse.resultCode); } @Override @@ -225,7 +224,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -234,7 +234,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SubmitResponse given an JSON string * * @param jsonString JSON string @@ -244,12 +244,11 @@ private String toIndentedString(Object o) { public static SubmitResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SubmitResponse.class); } - - /** - * Convert an instance of SubmitResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SubmitResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/posmobile/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/posmobile/AbstractOpenApiSchema.java index f0e161e97..8960c1bca 100644 --- a/src/main/java/com/adyen/model/posmobile/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/posmobile/AbstractOpenApiSchema.java @@ -2,141 +2,145 @@ * POS Mobile API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.posmobile; -import com.fasterxml.jackson.annotation.JsonValue; -import jakarta.ws.rs.core.GenericType; -import java.util.Map; import java.util.Objects; +import java.util.Map; +import jakarta.ws.rs.core.GenericType; -/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec + */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() { - return instance; - } - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) { - this.instance = instance; - } - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf - * schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); - } else { - return object.getActualInstance(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() {return instance;} + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) {this.instance = instance;} + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); + } else { + return object.getActualInstance(); + } + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) && + Objects.equals(this.isNullable, a.isNullable) && + Objects.equals(this.schemaType, a.schemaType); } - return o.toString().replace("\n", "\n "); - } - public boolean equals(Object o) { - if (this == o) { - return true; + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); } - if (o == null || getClass() != o.getClass()) { - return false; + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) - && Objects.equals(this.isNullable, a.isNullable) - && Objects.equals(this.schemaType, a.schemaType); - } - - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); - } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); - } -} + + + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/posmobile/CreateSessionRequest.java b/src/main/java/com/adyen/model/posmobile/CreateSessionRequest.java index fbf8b1a21..c15d7fa46 100644 --- a/src/main/java/com/adyen/model/posmobile/CreateSessionRequest.java +++ b/src/main/java/com/adyen/model/posmobile/CreateSessionRequest.java @@ -2,27 +2,37 @@ * POS Mobile API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.posmobile; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** CreateSessionRequest */ + +/** + * CreateSessionRequest + */ @JsonPropertyOrder({ CreateSessionRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, CreateSessionRequest.JSON_PROPERTY_SETUP_TOKEN, CreateSessionRequest.JSON_PROPERTY_STORE }) + public class CreateSessionRequest { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; @@ -33,7 +43,8 @@ public class CreateSessionRequest { public static final String JSON_PROPERTY_STORE = "store"; private String store; - public CreateSessionRequest() {} + public CreateSessionRequest() { + } /** * The unique identifier of your merchant account. @@ -48,7 +59,6 @@ public CreateSessionRequest merchantAccount(String merchantAccount) { /** * The unique identifier of your merchant account. - * * @return merchantAccount The unique identifier of your merchant account. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -69,18 +79,9 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The setup token provided by the POS Mobile SDK. - When using the Android POS Mobile SDK, obtain - * the token through the `AuthenticationService.authenticate(setupToken)` callback of - * `AuthenticationService`. - When using the iOS POS Mobile SDK, obtain the token - * through the `PaymentServiceDelegate.register(with:)` callback of - * `PaymentServiceDelegate`. + * The setup token provided by the POS Mobile SDK. - When using the Android POS Mobile SDK, obtain the token through the `AuthenticationService.authenticate(setupToken)` callback of `AuthenticationService`. - When using the iOS POS Mobile SDK, obtain the token through the `PaymentServiceDelegate.register(with:)` callback of `PaymentServiceDelegate`. * - * @param setupToken The setup token provided by the POS Mobile SDK. - When using the Android POS - * Mobile SDK, obtain the token through the - * `AuthenticationService.authenticate(setupToken)` callback of - * `AuthenticationService`. - When using the iOS POS Mobile SDK, obtain the token - * through the `PaymentServiceDelegate.register(with:)` callback of - * `PaymentServiceDelegate`. + * @param setupToken The setup token provided by the POS Mobile SDK. - When using the Android POS Mobile SDK, obtain the token through the `AuthenticationService.authenticate(setupToken)` callback of `AuthenticationService`. - When using the iOS POS Mobile SDK, obtain the token through the `PaymentServiceDelegate.register(with:)` callback of `PaymentServiceDelegate`. * @return the current {@code CreateSessionRequest} instance, allowing for method chaining */ public CreateSessionRequest setupToken(String setupToken) { @@ -89,18 +90,8 @@ public CreateSessionRequest setupToken(String setupToken) { } /** - * The setup token provided by the POS Mobile SDK. - When using the Android POS Mobile SDK, obtain - * the token through the `AuthenticationService.authenticate(setupToken)` callback of - * `AuthenticationService`. - When using the iOS POS Mobile SDK, obtain the token - * through the `PaymentServiceDelegate.register(with:)` callback of - * `PaymentServiceDelegate`. - * - * @return setupToken The setup token provided by the POS Mobile SDK. - When using the Android POS - * Mobile SDK, obtain the token through the - * `AuthenticationService.authenticate(setupToken)` callback of - * `AuthenticationService`. - When using the iOS POS Mobile SDK, obtain the token - * through the `PaymentServiceDelegate.register(with:)` callback of - * `PaymentServiceDelegate`. + * The setup token provided by the POS Mobile SDK. - When using the Android POS Mobile SDK, obtain the token through the `AuthenticationService.authenticate(setupToken)` callback of `AuthenticationService`. - When using the iOS POS Mobile SDK, obtain the token through the `PaymentServiceDelegate.register(with:)` callback of `PaymentServiceDelegate`. + * @return setupToken The setup token provided by the POS Mobile SDK. - When using the Android POS Mobile SDK, obtain the token through the `AuthenticationService.authenticate(setupToken)` callback of `AuthenticationService`. - When using the iOS POS Mobile SDK, obtain the token through the `PaymentServiceDelegate.register(with:)` callback of `PaymentServiceDelegate`. */ @JsonProperty(JSON_PROPERTY_SETUP_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -109,18 +100,9 @@ public String getSetupToken() { } /** - * The setup token provided by the POS Mobile SDK. - When using the Android POS Mobile SDK, obtain - * the token through the `AuthenticationService.authenticate(setupToken)` callback of - * `AuthenticationService`. - When using the iOS POS Mobile SDK, obtain the token - * through the `PaymentServiceDelegate.register(with:)` callback of - * `PaymentServiceDelegate`. + * The setup token provided by the POS Mobile SDK. - When using the Android POS Mobile SDK, obtain the token through the `AuthenticationService.authenticate(setupToken)` callback of `AuthenticationService`. - When using the iOS POS Mobile SDK, obtain the token through the `PaymentServiceDelegate.register(with:)` callback of `PaymentServiceDelegate`. * - * @param setupToken The setup token provided by the POS Mobile SDK. - When using the Android POS - * Mobile SDK, obtain the token through the - * `AuthenticationService.authenticate(setupToken)` callback of - * `AuthenticationService`. - When using the iOS POS Mobile SDK, obtain the token - * through the `PaymentServiceDelegate.register(with:)` callback of - * `PaymentServiceDelegate`. + * @param setupToken The setup token provided by the POS Mobile SDK. - When using the Android POS Mobile SDK, obtain the token through the `AuthenticationService.authenticate(setupToken)` callback of `AuthenticationService`. - When using the iOS POS Mobile SDK, obtain the token through the `PaymentServiceDelegate.register(with:)` callback of `PaymentServiceDelegate`. */ @JsonProperty(JSON_PROPERTY_SETUP_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -141,7 +123,6 @@ public CreateSessionRequest store(String store) { /** * The unique identifier of the store that you want to process transactions for. - * * @return store The unique identifier of the store that you want to process transactions for. */ @JsonProperty(JSON_PROPERTY_STORE) @@ -161,7 +142,9 @@ public void setStore(String store) { this.store = store; } - /** Return true if this CreateSessionRequest object is equal to o. */ + /** + * Return true if this CreateSessionRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -171,9 +154,9 @@ public boolean equals(Object o) { return false; } CreateSessionRequest createSessionRequest = (CreateSessionRequest) o; - return Objects.equals(this.merchantAccount, createSessionRequest.merchantAccount) - && Objects.equals(this.setupToken, createSessionRequest.setupToken) - && Objects.equals(this.store, createSessionRequest.store); + return Objects.equals(this.merchantAccount, createSessionRequest.merchantAccount) && + Objects.equals(this.setupToken, createSessionRequest.setupToken) && + Objects.equals(this.store, createSessionRequest.store); } @Override @@ -193,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -202,23 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CreateSessionRequest given an JSON string * * @param jsonString JSON string * @return An instance of CreateSessionRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreateSessionRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to CreateSessionRequest */ public static CreateSessionRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateSessionRequest.class); } - - /** - * Convert an instance of CreateSessionRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CreateSessionRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/posmobile/CreateSessionResponse.java b/src/main/java/com/adyen/model/posmobile/CreateSessionResponse.java index c1dadc10f..a5171b77f 100644 --- a/src/main/java/com/adyen/model/posmobile/CreateSessionResponse.java +++ b/src/main/java/com/adyen/model/posmobile/CreateSessionResponse.java @@ -2,22 +2,31 @@ * POS Mobile API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.posmobile; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** CreateSessionResponse */ + +/** + * CreateSessionResponse + */ @JsonPropertyOrder({ CreateSessionResponse.JSON_PROPERTY_ID, CreateSessionResponse.JSON_PROPERTY_INSTALLATION_ID, @@ -25,6 +34,7 @@ CreateSessionResponse.JSON_PROPERTY_SDK_DATA, CreateSessionResponse.JSON_PROPERTY_STORE }) + public class CreateSessionResponse { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -41,7 +51,8 @@ public class CreateSessionResponse { public static final String JSON_PROPERTY_STORE = "store"; private String store; - public CreateSessionResponse() {} + public CreateSessionResponse() { + } /** * The unique identifier of the session. @@ -56,7 +67,6 @@ public CreateSessionResponse id(String id) { /** * The unique identifier of the session. - * * @return id The unique identifier of the session. */ @JsonProperty(JSON_PROPERTY_ID) @@ -77,15 +87,9 @@ public void setId(String id) { } /** - * The unique identifier of the SDK installation. If you create the [Terminal - * API](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api/) transaction - * request on your backend, use this as the `POIID` in the `MessageHeader` of - * the request. + * The unique identifier of the SDK installation. If you create the [Terminal API](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api/) transaction request on your backend, use this as the `POIID` in the `MessageHeader` of the request. * - * @param installationId The unique identifier of the SDK installation. If you create the - * [Terminal API](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api/) - * transaction request on your backend, use this as the `POIID` in the - * `MessageHeader` of the request. + * @param installationId The unique identifier of the SDK installation. If you create the [Terminal API](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api/) transaction request on your backend, use this as the `POIID` in the `MessageHeader` of the request. * @return the current {@code CreateSessionResponse} instance, allowing for method chaining */ public CreateSessionResponse installationId(String installationId) { @@ -94,15 +98,8 @@ public CreateSessionResponse installationId(String installationId) { } /** - * The unique identifier of the SDK installation. If you create the [Terminal - * API](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api/) transaction - * request on your backend, use this as the `POIID` in the `MessageHeader` of - * the request. - * - * @return installationId The unique identifier of the SDK installation. If you create the - * [Terminal API](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api/) - * transaction request on your backend, use this as the `POIID` in the - * `MessageHeader` of the request. + * The unique identifier of the SDK installation. If you create the [Terminal API](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api/) transaction request on your backend, use this as the `POIID` in the `MessageHeader` of the request. + * @return installationId The unique identifier of the SDK installation. If you create the [Terminal API](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api/) transaction request on your backend, use this as the `POIID` in the `MessageHeader` of the request. */ @JsonProperty(JSON_PROPERTY_INSTALLATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,15 +108,9 @@ public String getInstallationId() { } /** - * The unique identifier of the SDK installation. If you create the [Terminal - * API](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api/) transaction - * request on your backend, use this as the `POIID` in the `MessageHeader` of - * the request. + * The unique identifier of the SDK installation. If you create the [Terminal API](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api/) transaction request on your backend, use this as the `POIID` in the `MessageHeader` of the request. * - * @param installationId The unique identifier of the SDK installation. If you create the - * [Terminal API](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api/) - * transaction request on your backend, use this as the `POIID` in the - * `MessageHeader` of the request. + * @param installationId The unique identifier of the SDK installation. If you create the [Terminal API](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api/) transaction request on your backend, use this as the `POIID` in the `MessageHeader` of the request. */ @JsonProperty(JSON_PROPERTY_INSTALLATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,7 +131,6 @@ public CreateSessionResponse merchantAccount(String merchantAccount) { /** * The unique identifier of your merchant account. - * * @return merchantAccount The unique identifier of your merchant account. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -161,11 +151,9 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The data that the SDK uses to authenticate responses from the Adyen payments platform. Pass - * this value to your POS app. + * The data that the SDK uses to authenticate responses from the Adyen payments platform. Pass this value to your POS app. * - * @param sdkData The data that the SDK uses to authenticate responses from the Adyen payments - * platform. Pass this value to your POS app. + * @param sdkData The data that the SDK uses to authenticate responses from the Adyen payments platform. Pass this value to your POS app. * @return the current {@code CreateSessionResponse} instance, allowing for method chaining */ public CreateSessionResponse sdkData(String sdkData) { @@ -174,11 +162,8 @@ public CreateSessionResponse sdkData(String sdkData) { } /** - * The data that the SDK uses to authenticate responses from the Adyen payments platform. Pass - * this value to your POS app. - * - * @return sdkData The data that the SDK uses to authenticate responses from the Adyen payments - * platform. Pass this value to your POS app. + * The data that the SDK uses to authenticate responses from the Adyen payments platform. Pass this value to your POS app. + * @return sdkData The data that the SDK uses to authenticate responses from the Adyen payments platform. Pass this value to your POS app. */ @JsonProperty(JSON_PROPERTY_SDK_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,11 +172,9 @@ public String getSdkData() { } /** - * The data that the SDK uses to authenticate responses from the Adyen payments platform. Pass - * this value to your POS app. + * The data that the SDK uses to authenticate responses from the Adyen payments platform. Pass this value to your POS app. * - * @param sdkData The data that the SDK uses to authenticate responses from the Adyen payments - * platform. Pass this value to your POS app. + * @param sdkData The data that the SDK uses to authenticate responses from the Adyen payments platform. Pass this value to your POS app. */ @JsonProperty(JSON_PROPERTY_SDK_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -212,7 +195,6 @@ public CreateSessionResponse store(String store) { /** * The unique identifier of the store that you want to process transactions for. - * * @return store The unique identifier of the store that you want to process transactions for. */ @JsonProperty(JSON_PROPERTY_STORE) @@ -232,7 +214,9 @@ public void setStore(String store) { this.store = store; } - /** Return true if this CreateSessionResponse object is equal to o. */ + /** + * Return true if this CreateSessionResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -242,11 +226,11 @@ public boolean equals(Object o) { return false; } CreateSessionResponse createSessionResponse = (CreateSessionResponse) o; - return Objects.equals(this.id, createSessionResponse.id) - && Objects.equals(this.installationId, createSessionResponse.installationId) - && Objects.equals(this.merchantAccount, createSessionResponse.merchantAccount) - && Objects.equals(this.sdkData, createSessionResponse.sdkData) - && Objects.equals(this.store, createSessionResponse.store); + return Objects.equals(this.id, createSessionResponse.id) && + Objects.equals(this.installationId, createSessionResponse.installationId) && + Objects.equals(this.merchantAccount, createSessionResponse.merchantAccount) && + Objects.equals(this.sdkData, createSessionResponse.sdkData) && + Objects.equals(this.store, createSessionResponse.store); } @Override @@ -268,7 +252,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -277,23 +262,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CreateSessionResponse given an JSON string * * @param jsonString JSON string * @return An instance of CreateSessionResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreateSessionResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to CreateSessionResponse */ public static CreateSessionResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateSessionResponse.class); } - - /** - * Convert an instance of CreateSessionResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CreateSessionResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/posmobile/JSON.java b/src/main/java/com/adyen/model/posmobile/JSON.java index e3f32866b..7e2b8e7d5 100644 --- a/src/main/java/com/adyen/model/posmobile/JSON.java +++ b/src/main/java/com/adyen/model/posmobile/JSON.java @@ -1,18 +1,21 @@ package com.adyen.model.posmobile; -import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; +import com.adyen.serializer.ByteArrayDeserializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; +import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; +import com.adyen.model.posmobile.*; + import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -37,7 +40,6 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. - * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -54,13 +56,11 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { - return mapper; - } + public static ObjectMapper getMapper() { return mapper; } /** - * Returns the target model class that should be used to deserialize the input data. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,7 +73,9 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** Helper class to register the discriminator mappings. */ + /** + * Helper class to register the discriminator mappings. + */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -115,9 +117,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. This - * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -162,14 +164,13 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so - * it's not possible to use the instanceof keyword. + * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, + * so it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf( - Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -193,58 +194,59 @@ public static boolean isInstanceOf( return false; } - /** A map of discriminators for all model classes. */ - private static final Map, ClassDiscriminatorMapping> modelDiscriminators = - new HashMap, ClassDiscriminatorMapping>(); + /** + * A map of discriminators for all model classes. + */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); - /** A map of oneOf/anyOf descendants for each model class. */ + /** + * A map of oneOf/anyOf descendants for each model class. + */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator( - Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = - new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants( - Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants(Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static { + static + { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/recurring/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/recurring/AbstractOpenApiSchema.java index 6adb83f62..75cf2bdea 100644 --- a/src/main/java/com/adyen/model/recurring/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/recurring/AbstractOpenApiSchema.java @@ -2,141 +2,145 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.recurring; -import com.fasterxml.jackson.annotation.JsonValue; -import jakarta.ws.rs.core.GenericType; -import java.util.Map; import java.util.Objects; +import java.util.Map; +import jakarta.ws.rs.core.GenericType; -/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec + */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() { - return instance; - } - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) { - this.instance = instance; - } - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf - * schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); - } else { - return object.getActualInstance(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() {return instance;} + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) {this.instance = instance;} + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); + } else { + return object.getActualInstance(); + } + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) && + Objects.equals(this.isNullable, a.isNullable) && + Objects.equals(this.schemaType, a.schemaType); } - return o.toString().replace("\n", "\n "); - } - public boolean equals(Object o) { - if (this == o) { - return true; + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); } - if (o == null || getClass() != o.getClass()) { - return false; + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) - && Objects.equals(this.isNullable, a.isNullable) - && Objects.equals(this.schemaType, a.schemaType); - } - - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); - } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); - } -} + + + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/recurring/Address.java b/src/main/java/com/adyen/model/recurring/Address.java index ed451b229..ea263c7e7 100644 --- a/src/main/java/com/adyen/model/recurring/Address.java +++ b/src/main/java/com/adyen/model/recurring/Address.java @@ -2,22 +2,31 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.recurring; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Address */ + +/** + * Address + */ @JsonPropertyOrder({ Address.JSON_PROPERTY_CITY, Address.JSON_PROPERTY_COUNTRY, @@ -26,6 +35,7 @@ Address.JSON_PROPERTY_STATE_OR_PROVINCE, Address.JSON_PROPERTY_STREET }) + public class Address { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -45,7 +55,8 @@ public class Address { public static final String JSON_PROPERTY_STREET = "street"; private String street; - public Address() {} + public Address() { + } /** * The name of the city. Maximum length: 3000 characters. @@ -60,7 +71,6 @@ public Address city(String city) { /** * The name of the city. Maximum length: 3000 characters. - * * @return city The name of the city. Maximum length: 3000 characters. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -81,13 +91,9 @@ public void setCity(String city) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't - * know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If - * you don't know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. * @return the current {@code Address} instance, allowing for method chaining */ public Address country(String country) { @@ -96,13 +102,8 @@ public Address country(String country) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't - * know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. - * - * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If - * you don't know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,13 +112,9 @@ public String getCountry() { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't - * know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If - * you don't know the country or are not collecting the country from the shopper, provide - * `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,7 +135,6 @@ public Address houseNumberOrName(String houseNumberOrName) { /** * The number or name of the house. Maximum length: 3000 characters. - * * @return houseNumberOrName The number or name of the house. Maximum length: 3000 characters. */ @JsonProperty(JSON_PROPERTY_HOUSE_NUMBER_OR_NAME) @@ -159,11 +155,9 @@ public void setHouseNumberOrName(String houseNumberOrName) { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an - * address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. * - * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten - * characters for an address in all other countries. + * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. * @return the current {@code Address} instance, allowing for method chaining */ public Address postalCode(String postalCode) { @@ -172,11 +166,8 @@ public Address postalCode(String postalCode) { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an - * address in all other countries. - * - * @return postalCode A maximum of five digits for an address in the US, or a maximum of ten - * characters for an address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * @return postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,11 +176,9 @@ public String getPostalCode() { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an - * address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. * - * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten - * characters for an address in all other countries. + * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,11 +187,9 @@ public void setPostalCode(String postalCode) { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** - * in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. * @return the current {@code Address} instance, allowing for method chaining */ public Address stateOrProvince(String stateOrProvince) { @@ -211,11 +198,8 @@ public Address stateOrProvince(String stateOrProvince) { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. - * - * @return stateOrProvince The two-character ISO 3166-2 state or province code. For example, - * **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * @return stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,11 +208,9 @@ public String getStateOrProvince() { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** - * in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,12 +219,9 @@ public void setStateOrProvince(String stateOrProvince) { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be - * included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. * - * @param street The name of the street. Maximum length: 3000 characters. > The house number - * should not be included in this field; it should be separately provided via - * `houseNumberOrName`. + * @param street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. * @return the current {@code Address} instance, allowing for method chaining */ public Address street(String street) { @@ -251,12 +230,8 @@ public Address street(String street) { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be - * included in this field; it should be separately provided via `houseNumberOrName`. - * - * @return street The name of the street. Maximum length: 3000 characters. > The house number - * should not be included in this field; it should be separately provided via - * `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * @return street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -265,12 +240,9 @@ public String getStreet() { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be - * included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. * - * @param street The name of the street. Maximum length: 3000 characters. > The house number - * should not be included in this field; it should be separately provided via - * `houseNumberOrName`. + * @param street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -278,7 +250,9 @@ public void setStreet(String street) { this.street = street; } - /** Return true if this Address object is equal to o. */ + /** + * Return true if this Address object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -288,12 +262,12 @@ public boolean equals(Object o) { return false; } Address address = (Address) o; - return Objects.equals(this.city, address.city) - && Objects.equals(this.country, address.country) - && Objects.equals(this.houseNumberOrName, address.houseNumberOrName) - && Objects.equals(this.postalCode, address.postalCode) - && Objects.equals(this.stateOrProvince, address.stateOrProvince) - && Objects.equals(this.street, address.street); + return Objects.equals(this.city, address.city) && + Objects.equals(this.country, address.country) && + Objects.equals(this.houseNumberOrName, address.houseNumberOrName) && + Objects.equals(this.postalCode, address.postalCode) && + Objects.equals(this.stateOrProvince, address.stateOrProvince) && + Objects.equals(this.street, address.street); } @Override @@ -316,7 +290,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -325,7 +300,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Address given an JSON string * * @param jsonString JSON string @@ -335,12 +310,11 @@ private String toIndentedString(Object o) { public static Address fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Address.class); } - - /** - * Convert an instance of Address to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Address to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/Amount.java b/src/main/java/com/adyen/model/recurring/Amount.java index 717372349..954b37385 100644 --- a/src/main/java/com/adyen/model/recurring/Amount.java +++ b/src/main/java/com/adyen/model/recurring/Amount.java @@ -2,23 +2,36 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.recurring; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Amount */ -@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) + +/** + * Amount + */ +@JsonPropertyOrder({ + Amount.JSON_PROPERTY_CURRENCY, + Amount.JSON_PROPERTY_VALUE +}) + public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -26,14 +39,13 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() {} + public Amount() { + } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount currency(String currency) { @@ -42,11 +54,8 @@ public Amount currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -55,11 +64,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,11 +75,9 @@ public void setCurrency(String currency) { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount value(Long value) { @@ -81,11 +86,8 @@ public Amount value(Long value) { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). - * - * @return value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @return value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,11 +96,9 @@ public Long getValue() { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,7 +106,9 @@ public void setValue(Long value) { this.value = value; } - /** Return true if this Amount object is equal to o. */ + /** + * Return true if this Amount object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -116,8 +118,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) - && Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) && + Objects.equals(this.value, amount.value); } @Override @@ -136,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -155,12 +158,11 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } - - /** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/BankAccount.java b/src/main/java/com/adyen/model/recurring/BankAccount.java index 78456adaf..d3057280c 100644 --- a/src/main/java/com/adyen/model/recurring/BankAccount.java +++ b/src/main/java/com/adyen/model/recurring/BankAccount.java @@ -2,22 +2,31 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.recurring; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** BankAccount */ + +/** + * BankAccount + */ @JsonPropertyOrder({ BankAccount.JSON_PROPERTY_BANK_ACCOUNT_NUMBER, BankAccount.JSON_PROPERTY_BANK_CITY, @@ -29,6 +38,7 @@ BankAccount.JSON_PROPERTY_OWNER_NAME, BankAccount.JSON_PROPERTY_TAX_ID }) + public class BankAccount { public static final String JSON_PROPERTY_BANK_ACCOUNT_NUMBER = "bankAccountNumber"; private String bankAccountNumber; @@ -57,7 +67,8 @@ public class BankAccount { public static final String JSON_PROPERTY_TAX_ID = "taxId"; private String taxId; - public BankAccount() {} + public BankAccount() { + } /** * The bank account number (without separators). @@ -72,7 +83,6 @@ public BankAccount bankAccountNumber(String bankAccountNumber) { /** * The bank account number (without separators). - * * @return bankAccountNumber The bank account number (without separators). */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_NUMBER) @@ -105,7 +115,6 @@ public BankAccount bankCity(String bankCity) { /** * The bank city. - * * @return bankCity The bank city. */ @JsonProperty(JSON_PROPERTY_BANK_CITY) @@ -128,8 +137,7 @@ public void setBankCity(String bankCity) { /** * The location id of the bank. The field value is `nil` in most cases. * - * @param bankLocationId The location id of the bank. The field value is `nil` in most - * cases. + * @param bankLocationId The location id of the bank. The field value is `nil` in most cases. * @return the current {@code BankAccount} instance, allowing for method chaining */ public BankAccount bankLocationId(String bankLocationId) { @@ -139,9 +147,7 @@ public BankAccount bankLocationId(String bankLocationId) { /** * The location id of the bank. The field value is `nil` in most cases. - * - * @return bankLocationId The location id of the bank. The field value is `nil` in most - * cases. + * @return bankLocationId The location id of the bank. The field value is `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_BANK_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,8 +158,7 @@ public String getBankLocationId() { /** * The location id of the bank. The field value is `nil` in most cases. * - * @param bankLocationId The location id of the bank. The field value is `nil` in most - * cases. + * @param bankLocationId The location id of the bank. The field value is `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_BANK_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -174,7 +179,6 @@ public BankAccount bankName(String bankName) { /** * The name of the bank. - * * @return bankName The name of the bank. */ @JsonProperty(JSON_PROPERTY_BANK_NAME) @@ -195,11 +199,9 @@ public void setBankName(String bankName) { } /** - * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT - * address assigned to a bank. The field value is `nil` in most cases. + * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. * - * @param bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the - * SWIFT address assigned to a bank. The field value is `nil` in most cases. + * @param bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. * @return the current {@code BankAccount} instance, allowing for method chaining */ public BankAccount bic(String bic) { @@ -208,11 +210,8 @@ public BankAccount bic(String bic) { } /** - * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT - * address assigned to a bank. The field value is `nil` in most cases. - * - * @return bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the - * SWIFT address assigned to a bank. The field value is `nil` in most cases. + * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. + * @return bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_BIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,11 +220,9 @@ public String getBic() { } /** - * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT - * address assigned to a bank. The field value is `nil` in most cases. + * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. * - * @param bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the - * SWIFT address assigned to a bank. The field value is `nil` in most cases. + * @param bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_BIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -234,11 +231,9 @@ public void setBic(String bic) { } /** - * Country code where the bank is located. A valid value is an ISO two-character country code - * (e.g. 'NL'). + * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). * - * @param countryCode Country code where the bank is located. A valid value is an ISO - * two-character country code (e.g. 'NL'). + * @param countryCode Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). * @return the current {@code BankAccount} instance, allowing for method chaining */ public BankAccount countryCode(String countryCode) { @@ -247,11 +242,8 @@ public BankAccount countryCode(String countryCode) { } /** - * Country code where the bank is located. A valid value is an ISO two-character country code - * (e.g. 'NL'). - * - * @return countryCode Country code where the bank is located. A valid value is an ISO - * two-character country code (e.g. 'NL'). + * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). + * @return countryCode Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -260,11 +252,9 @@ public String getCountryCode() { } /** - * Country code where the bank is located. A valid value is an ISO two-character country code - * (e.g. 'NL'). + * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). * - * @param countryCode Country code where the bank is located. A valid value is an ISO - * two-character country code (e.g. 'NL'). + * @param countryCode Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -273,11 +263,9 @@ public void setCountryCode(String countryCode) { } /** - * The [International Bank Account - * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). * - * @param iban The [International Bank Account - * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * @param iban The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). * @return the current {@code BankAccount} instance, allowing for method chaining */ public BankAccount iban(String iban) { @@ -286,11 +274,8 @@ public BankAccount iban(String iban) { } /** - * The [International Bank Account - * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). - * - * @return iban The [International Bank Account - * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * @return iban The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -299,11 +284,9 @@ public String getIban() { } /** - * The [International Bank Account - * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). * - * @param iban The [International Bank Account - * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * @param iban The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -312,25 +295,9 @@ public void setIban(String iban) { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we - * automatically replace some of them with corresponding Latin characters to meet the FATF - * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter - * Møller is converted to Peter Mller, because banks don't accept 'ø'. After - * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), - * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - - * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details - * don't match the required format, the response returns the error message: 203 'Invalid - * bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. * - * @param ownerName The name of the bank account holder. If you submit a name with non-Latin - * characters, we automatically replace some of them with corresponding Latin characters to - * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted - * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept - * 'ø'. After replacement, the ownerName must have at least three alphanumeric - * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, - * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - - * allowed. > If provided details don't match the required format, the response returns - * the error message: 203 'Invalid bank account holder name'. + * @param ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. * @return the current {@code BankAccount} instance, allowing for method chaining */ public BankAccount ownerName(String ownerName) { @@ -339,25 +306,8 @@ public BankAccount ownerName(String ownerName) { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we - * automatically replace some of them with corresponding Latin characters to meet the FATF - * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter - * Møller is converted to Peter Mller, because banks don't accept 'ø'. After - * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), - * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - - * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details - * don't match the required format, the response returns the error message: 203 'Invalid - * bank account holder name'. - * - * @return ownerName The name of the bank account holder. If you submit a name with non-Latin - * characters, we automatically replace some of them with corresponding Latin characters to - * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted - * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept - * 'ø'. After replacement, the ownerName must have at least three alphanumeric - * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, - * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - - * allowed. > If provided details don't match the required format, the response returns - * the error message: 203 'Invalid bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * @return ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -366,25 +316,9 @@ public String getOwnerName() { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we - * automatically replace some of them with corresponding Latin characters to meet the FATF - * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter - * Møller is converted to Peter Mller, because banks don't accept 'ø'. After - * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), - * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - - * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details - * don't match the required format, the response returns the error message: 203 'Invalid - * bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. * - * @param ownerName The name of the bank account holder. If you submit a name with non-Latin - * characters, we automatically replace some of them with corresponding Latin characters to - * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted - * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept - * 'ø'. After replacement, the ownerName must have at least three alphanumeric - * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, - * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - - * allowed. > If provided details don't match the required format, the response returns - * the error message: 203 'Invalid bank account holder name'. + * @param ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -405,7 +339,6 @@ public BankAccount taxId(String taxId) { /** * The bank account holder's tax ID. - * * @return taxId The bank account holder's tax ID. */ @JsonProperty(JSON_PROPERTY_TAX_ID) @@ -425,7 +358,9 @@ public void setTaxId(String taxId) { this.taxId = taxId; } - /** Return true if this BankAccount object is equal to o. */ + /** + * Return true if this BankAccount object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -435,29 +370,20 @@ public boolean equals(Object o) { return false; } BankAccount bankAccount = (BankAccount) o; - return Objects.equals(this.bankAccountNumber, bankAccount.bankAccountNumber) - && Objects.equals(this.bankCity, bankAccount.bankCity) - && Objects.equals(this.bankLocationId, bankAccount.bankLocationId) - && Objects.equals(this.bankName, bankAccount.bankName) - && Objects.equals(this.bic, bankAccount.bic) - && Objects.equals(this.countryCode, bankAccount.countryCode) - && Objects.equals(this.iban, bankAccount.iban) - && Objects.equals(this.ownerName, bankAccount.ownerName) - && Objects.equals(this.taxId, bankAccount.taxId); + return Objects.equals(this.bankAccountNumber, bankAccount.bankAccountNumber) && + Objects.equals(this.bankCity, bankAccount.bankCity) && + Objects.equals(this.bankLocationId, bankAccount.bankLocationId) && + Objects.equals(this.bankName, bankAccount.bankName) && + Objects.equals(this.bic, bankAccount.bic) && + Objects.equals(this.countryCode, bankAccount.countryCode) && + Objects.equals(this.iban, bankAccount.iban) && + Objects.equals(this.ownerName, bankAccount.ownerName) && + Objects.equals(this.taxId, bankAccount.taxId); } @Override public int hashCode() { - return Objects.hash( - bankAccountNumber, - bankCity, - bankLocationId, - bankName, - bic, - countryCode, - iban, - ownerName, - taxId); + return Objects.hash(bankAccountNumber, bankCity, bankLocationId, bankName, bic, countryCode, iban, ownerName, taxId); } @Override @@ -478,7 +404,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -487,7 +414,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BankAccount given an JSON string * * @param jsonString JSON string @@ -497,12 +424,11 @@ private String toIndentedString(Object o) { public static BankAccount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankAccount.class); } - - /** - * Convert an instance of BankAccount to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BankAccount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/Card.java b/src/main/java/com/adyen/model/recurring/Card.java index 6230d58d6..8b82fa84b 100644 --- a/src/main/java/com/adyen/model/recurring/Card.java +++ b/src/main/java/com/adyen/model/recurring/Card.java @@ -2,22 +2,31 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.recurring; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Card */ + +/** + * Card + */ @JsonPropertyOrder({ Card.JSON_PROPERTY_CVC, Card.JSON_PROPERTY_EXPIRY_MONTH, @@ -28,6 +37,7 @@ Card.JSON_PROPERTY_START_MONTH, Card.JSON_PROPERTY_START_YEAR }) + public class Card { public static final String JSON_PROPERTY_CVC = "cvc"; private String cvc; @@ -53,28 +63,13 @@ public class Card { public static final String JSON_PROPERTY_START_YEAR = "startYear"; private String startYear; - public Card() {} + public Card() { + } /** - * The [card verification - * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) - * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 - * digits * CID – length: 4 digits > If you are using [Client-Side - * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code - * is present in the encrypted data. You must never post the card details to the server. > This - * field must be always present in a [one-click payment - * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value - * is returned in a response, it is always empty because it is not stored. + * The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. * - * @param cvc The [card verification - * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) - * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: - * 3 digits * CID – length: 4 digits > If you are using [Client-Side - * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC - * code is present in the encrypted data. You must never post the card details to the server. - * > This field must be always present in a [one-click payment - * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this - * value is returned in a response, it is always empty because it is not stored. + * @param cvc The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. * @return the current {@code Card} instance, allowing for method chaining */ public Card cvc(String cvc) { @@ -83,25 +78,8 @@ public Card cvc(String cvc) { } /** - * The [card verification - * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) - * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 - * digits * CID – length: 4 digits > If you are using [Client-Side - * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code - * is present in the encrypted data. You must never post the card details to the server. > This - * field must be always present in a [one-click payment - * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value - * is returned in a response, it is always empty because it is not stored. - * - * @return cvc The [card verification - * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) - * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: - * 3 digits * CID – length: 4 digits > If you are using [Client-Side - * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC - * code is present in the encrypted data. You must never post the card details to the server. - * > This field must be always present in a [one-click payment - * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this - * value is returned in a response, it is always empty because it is not stored. + * The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. + * @return cvc The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,25 +88,9 @@ public String getCvc() { } /** - * The [card verification - * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) - * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 - * digits * CID – length: 4 digits > If you are using [Client-Side - * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code - * is present in the encrypted data. You must never post the card details to the server. > This - * field must be always present in a [one-click payment - * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value - * is returned in a response, it is always empty because it is not stored. + * The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. * - * @param cvc The [card verification - * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) - * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: - * 3 digits * CID – length: 4 digits > If you are using [Client-Side - * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC - * code is present in the encrypted data. You must never post the card details to the server. - * > This field must be always present in a [one-click payment - * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this - * value is returned in a response, it is always empty because it is not stored. + * @param cvc The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,11 +99,9 @@ public void setCvc(String cvc) { } /** - * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 - * = March * 11 = November + * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November * - * @param expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For - * example: * 03 = March * 11 = November + * @param expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November * @return the current {@code Card} instance, allowing for method chaining */ public Card expiryMonth(String expiryMonth) { @@ -150,11 +110,8 @@ public Card expiryMonth(String expiryMonth) { } /** - * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 - * = March * 11 = November - * - * @return expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For - * example: * 03 = March * 11 = November + * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November + * @return expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,11 +120,9 @@ public String getExpiryMonth() { } /** - * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 - * = March * 11 = November + * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November * - * @param expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For - * example: * 03 = March * 11 = November + * @param expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,7 +143,6 @@ public Card expiryYear(String expiryYear) { /** * The card expiry year. Format: 4 digits. For example: 2020 - * * @return expiryYear The card expiry year. Format: 4 digits. For example: 2020 */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @@ -221,7 +175,6 @@ public Card holderName(String holderName) { /** * The name of the cardholder, as printed on the card. - * * @return holderName The name of the cardholder, as printed on the card. */ @JsonProperty(JSON_PROPERTY_HOLDER_NAME) @@ -254,7 +207,6 @@ public Card issueNumber(String issueNumber) { /** * The issue number of the card (for some UK debit cards only). - * * @return issueNumber The issue number of the card (for some UK debit cards only). */ @JsonProperty(JSON_PROPERTY_ISSUE_NUMBER) @@ -275,11 +227,9 @@ public void setIssueNumber(String issueNumber) { } /** - * The card number (4-19 characters). Do not use any separators. When this value is returned in a - * response, only the last 4 digits of the card number are returned. + * The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. * - * @param number The card number (4-19 characters). Do not use any separators. When this value is - * returned in a response, only the last 4 digits of the card number are returned. + * @param number The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. * @return the current {@code Card} instance, allowing for method chaining */ public Card number(String number) { @@ -288,11 +238,8 @@ public Card number(String number) { } /** - * The card number (4-19 characters). Do not use any separators. When this value is returned in a - * response, only the last 4 digits of the card number are returned. - * - * @return number The card number (4-19 characters). Do not use any separators. When this value is - * returned in a response, only the last 4 digits of the card number are returned. + * The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. + * @return number The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -301,11 +248,9 @@ public String getNumber() { } /** - * The card number (4-19 characters). Do not use any separators. When this value is returned in a - * response, only the last 4 digits of the card number are returned. + * The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. * - * @param number The card number (4-19 characters). Do not use any separators. When this value is - * returned in a response, only the last 4 digits of the card number are returned. + * @param number The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -326,7 +271,6 @@ public Card startMonth(String startMonth) { /** * The month component of the start date (for some UK debit cards only). - * * @return startMonth The month component of the start date (for some UK debit cards only). */ @JsonProperty(JSON_PROPERTY_START_MONTH) @@ -359,7 +303,6 @@ public Card startYear(String startYear) { /** * The year component of the start date (for some UK debit cards only). - * * @return startYear The year component of the start date (for some UK debit cards only). */ @JsonProperty(JSON_PROPERTY_START_YEAR) @@ -379,7 +322,9 @@ public void setStartYear(String startYear) { this.startYear = startYear; } - /** Return true if this Card object is equal to o. */ + /** + * Return true if this Card object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -389,20 +334,19 @@ public boolean equals(Object o) { return false; } Card card = (Card) o; - return Objects.equals(this.cvc, card.cvc) - && Objects.equals(this.expiryMonth, card.expiryMonth) - && Objects.equals(this.expiryYear, card.expiryYear) - && Objects.equals(this.holderName, card.holderName) - && Objects.equals(this.issueNumber, card.issueNumber) - && Objects.equals(this.number, card.number) - && Objects.equals(this.startMonth, card.startMonth) - && Objects.equals(this.startYear, card.startYear); + return Objects.equals(this.cvc, card.cvc) && + Objects.equals(this.expiryMonth, card.expiryMonth) && + Objects.equals(this.expiryYear, card.expiryYear) && + Objects.equals(this.holderName, card.holderName) && + Objects.equals(this.issueNumber, card.issueNumber) && + Objects.equals(this.number, card.number) && + Objects.equals(this.startMonth, card.startMonth) && + Objects.equals(this.startYear, card.startYear); } @Override public int hashCode() { - return Objects.hash( - cvc, expiryMonth, expiryYear, holderName, issueNumber, number, startMonth, startYear); + return Objects.hash(cvc, expiryMonth, expiryYear, holderName, issueNumber, number, startMonth, startYear); } @Override @@ -422,7 +366,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -431,7 +376,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Card given an JSON string * * @param jsonString JSON string @@ -441,12 +386,11 @@ private String toIndentedString(Object o) { public static Card fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Card.class); } - - /** - * Convert an instance of Card to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Card to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/CreatePermitRequest.java b/src/main/java/com/adyen/model/recurring/CreatePermitRequest.java index f66a074ba..66155a471 100644 --- a/src/main/java/com/adyen/model/recurring/CreatePermitRequest.java +++ b/src/main/java/com/adyen/model/recurring/CreatePermitRequest.java @@ -2,30 +2,41 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.recurring; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.recurring.Permit; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CreatePermitRequest */ +/** + * CreatePermitRequest + */ @JsonPropertyOrder({ CreatePermitRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, CreatePermitRequest.JSON_PROPERTY_PERMITS, CreatePermitRequest.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, CreatePermitRequest.JSON_PROPERTY_SHOPPER_REFERENCE }) + public class CreatePermitRequest { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; @@ -39,13 +50,13 @@ public class CreatePermitRequest { public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference"; private String shopperReference; - public CreatePermitRequest() {} + public CreatePermitRequest() { + } /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. * @return the current {@code CreatePermitRequest} instance, allowing for method chaining */ public CreatePermitRequest merchantAccount(String merchantAccount) { @@ -55,9 +66,7 @@ public CreatePermitRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * - * @return merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @return merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,8 +77,7 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -98,7 +106,6 @@ public CreatePermitRequest addPermitsItem(Permit permitsItem) { /** * The permits to create for this recurring contract. - * * @return permits The permits to create for this recurring contract. */ @JsonProperty(JSON_PROPERTY_PERMITS) @@ -131,7 +138,6 @@ public CreatePermitRequest recurringDetailReference(String recurringDetailRefere /** * The recurring contract the new permits will use. - * * @return recurringDetailReference The recurring contract the new permits will use. */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -154,8 +160,7 @@ public void setRecurringDetailReference(String recurringDetailReference) { /** * The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). * - * @param shopperReference The shopper's reference to uniquely identify this shopper (e.g. - * user ID or account ID). + * @param shopperReference The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). * @return the current {@code CreatePermitRequest} instance, allowing for method chaining */ public CreatePermitRequest shopperReference(String shopperReference) { @@ -165,9 +170,7 @@ public CreatePermitRequest shopperReference(String shopperReference) { /** * The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). - * - * @return shopperReference The shopper's reference to uniquely identify this shopper (e.g. - * user ID or account ID). + * @return shopperReference The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,8 +181,7 @@ public String getShopperReference() { /** * The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). * - * @param shopperReference The shopper's reference to uniquely identify this shopper (e.g. - * user ID or account ID). + * @param shopperReference The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,7 +189,9 @@ public void setShopperReference(String shopperReference) { this.shopperReference = shopperReference; } - /** Return true if this CreatePermitRequest object is equal to o. */ + /** + * Return true if this CreatePermitRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -197,11 +201,10 @@ public boolean equals(Object o) { return false; } CreatePermitRequest createPermitRequest = (CreatePermitRequest) o; - return Objects.equals(this.merchantAccount, createPermitRequest.merchantAccount) - && Objects.equals(this.permits, createPermitRequest.permits) - && Objects.equals( - this.recurringDetailReference, createPermitRequest.recurringDetailReference) - && Objects.equals(this.shopperReference, createPermitRequest.shopperReference); + return Objects.equals(this.merchantAccount, createPermitRequest.merchantAccount) && + Objects.equals(this.permits, createPermitRequest.permits) && + Objects.equals(this.recurringDetailReference, createPermitRequest.recurringDetailReference) && + Objects.equals(this.shopperReference, createPermitRequest.shopperReference); } @Override @@ -215,16 +218,15 @@ public String toString() { sb.append("class CreatePermitRequest {\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" permits: ").append(toIndentedString(permits)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -233,23 +235,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CreatePermitRequest given an JSON string * * @param jsonString JSON string * @return An instance of CreatePermitRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreatePermitRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to CreatePermitRequest */ public static CreatePermitRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreatePermitRequest.class); } - - /** - * Convert an instance of CreatePermitRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CreatePermitRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/CreatePermitResult.java b/src/main/java/com/adyen/model/recurring/CreatePermitResult.java index 9f7bddc93..9253f4e05 100644 --- a/src/main/java/com/adyen/model/recurring/CreatePermitResult.java +++ b/src/main/java/com/adyen/model/recurring/CreatePermitResult.java @@ -2,28 +2,39 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.recurring; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.recurring.PermitResult; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CreatePermitResult */ +/** + * CreatePermitResult + */ @JsonPropertyOrder({ CreatePermitResult.JSON_PROPERTY_PERMIT_RESULT_LIST, CreatePermitResult.JSON_PROPERTY_PSP_REFERENCE }) + public class CreatePermitResult { public static final String JSON_PROPERTY_PERMIT_RESULT_LIST = "permitResultList"; private List permitResultList; @@ -31,7 +42,8 @@ public class CreatePermitResult { public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference"; private String pspReference; - public CreatePermitResult() {} + public CreatePermitResult() { + } /** * List of new permits. @@ -54,7 +66,6 @@ public CreatePermitResult addPermitResultListItem(PermitResult permitResultListI /** * List of new permits. - * * @return permitResultList List of new permits. */ @JsonProperty(JSON_PROPERTY_PERMIT_RESULT_LIST) @@ -75,11 +86,9 @@ public void setPermitResultList(List permitResultList) { } /** - * A unique reference associated with the request. This value is globally unique; quote it when - * communicating with us about this request. + * A unique reference associated with the request. This value is globally unique; quote it when communicating with us about this request. * - * @param pspReference A unique reference associated with the request. This value is globally - * unique; quote it when communicating with us about this request. + * @param pspReference A unique reference associated with the request. This value is globally unique; quote it when communicating with us about this request. * @return the current {@code CreatePermitResult} instance, allowing for method chaining */ public CreatePermitResult pspReference(String pspReference) { @@ -88,11 +97,8 @@ public CreatePermitResult pspReference(String pspReference) { } /** - * A unique reference associated with the request. This value is globally unique; quote it when - * communicating with us about this request. - * - * @return pspReference A unique reference associated with the request. This value is globally - * unique; quote it when communicating with us about this request. + * A unique reference associated with the request. This value is globally unique; quote it when communicating with us about this request. + * @return pspReference A unique reference associated with the request. This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,11 +107,9 @@ public String getPspReference() { } /** - * A unique reference associated with the request. This value is globally unique; quote it when - * communicating with us about this request. + * A unique reference associated with the request. This value is globally unique; quote it when communicating with us about this request. * - * @param pspReference A unique reference associated with the request. This value is globally - * unique; quote it when communicating with us about this request. + * @param pspReference A unique reference associated with the request. This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,7 +117,9 @@ public void setPspReference(String pspReference) { this.pspReference = pspReference; } - /** Return true if this CreatePermitResult object is equal to o. */ + /** + * Return true if this CreatePermitResult object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -123,8 +129,8 @@ public boolean equals(Object o) { return false; } CreatePermitResult createPermitResult = (CreatePermitResult) o; - return Objects.equals(this.permitResultList, createPermitResult.permitResultList) - && Objects.equals(this.pspReference, createPermitResult.pspReference); + return Objects.equals(this.permitResultList, createPermitResult.permitResultList) && + Objects.equals(this.pspReference, createPermitResult.pspReference); } @Override @@ -143,7 +149,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -152,23 +159,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CreatePermitResult given an JSON string * * @param jsonString JSON string * @return An instance of CreatePermitResult - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreatePermitResult + * @throws JsonProcessingException if the JSON string is invalid with respect to CreatePermitResult */ public static CreatePermitResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreatePermitResult.class); } - - /** - * Convert an instance of CreatePermitResult to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CreatePermitResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/DisablePermitRequest.java b/src/main/java/com/adyen/model/recurring/DisablePermitRequest.java index 8e6830aa3..3dbb769f7 100644 --- a/src/main/java/com/adyen/model/recurring/DisablePermitRequest.java +++ b/src/main/java/com/adyen/model/recurring/DisablePermitRequest.java @@ -2,26 +2,36 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.recurring; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** DisablePermitRequest */ + +/** + * DisablePermitRequest + */ @JsonPropertyOrder({ DisablePermitRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, DisablePermitRequest.JSON_PROPERTY_TOKEN }) + public class DisablePermitRequest { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; @@ -29,13 +39,13 @@ public class DisablePermitRequest { public static final String JSON_PROPERTY_TOKEN = "token"; private String token; - public DisablePermitRequest() {} + public DisablePermitRequest() { + } /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. * @return the current {@code DisablePermitRequest} instance, allowing for method chaining */ public DisablePermitRequest merchantAccount(String merchantAccount) { @@ -45,9 +55,7 @@ public DisablePermitRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * - * @return merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @return merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,8 +66,7 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,7 +87,6 @@ public DisablePermitRequest token(String token) { /** * The permit token to disable. - * * @return token The permit token to disable. */ @JsonProperty(JSON_PROPERTY_TOKEN) @@ -100,7 +106,9 @@ public void setToken(String token) { this.token = token; } - /** Return true if this DisablePermitRequest object is equal to o. */ + /** + * Return true if this DisablePermitRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -110,8 +118,8 @@ public boolean equals(Object o) { return false; } DisablePermitRequest disablePermitRequest = (DisablePermitRequest) o; - return Objects.equals(this.merchantAccount, disablePermitRequest.merchantAccount) - && Objects.equals(this.token, disablePermitRequest.token); + return Objects.equals(this.merchantAccount, disablePermitRequest.merchantAccount) && + Objects.equals(this.token, disablePermitRequest.token); } @Override @@ -130,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -139,23 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DisablePermitRequest given an JSON string * * @param jsonString JSON string * @return An instance of DisablePermitRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DisablePermitRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to DisablePermitRequest */ public static DisablePermitRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DisablePermitRequest.class); } - - /** - * Convert an instance of DisablePermitRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DisablePermitRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/DisablePermitResult.java b/src/main/java/com/adyen/model/recurring/DisablePermitResult.java index ed445bf9c..599ebb780 100644 --- a/src/main/java/com/adyen/model/recurring/DisablePermitResult.java +++ b/src/main/java/com/adyen/model/recurring/DisablePermitResult.java @@ -2,26 +2,36 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.recurring; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** DisablePermitResult */ + +/** + * DisablePermitResult + */ @JsonPropertyOrder({ DisablePermitResult.JSON_PROPERTY_PSP_REFERENCE, DisablePermitResult.JSON_PROPERTY_STATUS }) + public class DisablePermitResult { public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference"; private String pspReference; @@ -29,14 +39,13 @@ public class DisablePermitResult { public static final String JSON_PROPERTY_STATUS = "status"; private String status; - public DisablePermitResult() {} + public DisablePermitResult() { + } /** - * A unique reference associated with the request. This value is globally unique; quote it when - * communicating with us about this request. + * A unique reference associated with the request. This value is globally unique; quote it when communicating with us about this request. * - * @param pspReference A unique reference associated with the request. This value is globally - * unique; quote it when communicating with us about this request. + * @param pspReference A unique reference associated with the request. This value is globally unique; quote it when communicating with us about this request. * @return the current {@code DisablePermitResult} instance, allowing for method chaining */ public DisablePermitResult pspReference(String pspReference) { @@ -45,11 +54,8 @@ public DisablePermitResult pspReference(String pspReference) { } /** - * A unique reference associated with the request. This value is globally unique; quote it when - * communicating with us about this request. - * - * @return pspReference A unique reference associated with the request. This value is globally - * unique; quote it when communicating with us about this request. + * A unique reference associated with the request. This value is globally unique; quote it when communicating with us about this request. + * @return pspReference A unique reference associated with the request. This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,11 +64,9 @@ public String getPspReference() { } /** - * A unique reference associated with the request. This value is globally unique; quote it when - * communicating with us about this request. + * A unique reference associated with the request. This value is globally unique; quote it when communicating with us about this request. * - * @param pspReference A unique reference associated with the request. This value is globally - * unique; quote it when communicating with us about this request. + * @param pspReference A unique reference associated with the request. This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,7 +87,6 @@ public DisablePermitResult status(String status) { /** * Status of the disable request. - * * @return status Status of the disable request. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -103,7 +106,9 @@ public void setStatus(String status) { this.status = status; } - /** Return true if this DisablePermitResult object is equal to o. */ + /** + * Return true if this DisablePermitResult object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -113,8 +118,8 @@ public boolean equals(Object o) { return false; } DisablePermitResult disablePermitResult = (DisablePermitResult) o; - return Objects.equals(this.pspReference, disablePermitResult.pspReference) - && Objects.equals(this.status, disablePermitResult.status); + return Objects.equals(this.pspReference, disablePermitResult.pspReference) && + Objects.equals(this.status, disablePermitResult.status); } @Override @@ -133,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -142,23 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DisablePermitResult given an JSON string * * @param jsonString JSON string * @return An instance of DisablePermitResult - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DisablePermitResult + * @throws JsonProcessingException if the JSON string is invalid with respect to DisablePermitResult */ public static DisablePermitResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DisablePermitResult.class); } - - /** - * Convert an instance of DisablePermitResult to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DisablePermitResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/DisableRequest.java b/src/main/java/com/adyen/model/recurring/DisableRequest.java index d7a11b774..3091ca36f 100644 --- a/src/main/java/com/adyen/model/recurring/DisableRequest.java +++ b/src/main/java/com/adyen/model/recurring/DisableRequest.java @@ -2,28 +2,38 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.recurring; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** DisableRequest */ + +/** + * DisableRequest + */ @JsonPropertyOrder({ DisableRequest.JSON_PROPERTY_CONTRACT, DisableRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, DisableRequest.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, DisableRequest.JSON_PROPERTY_SHOPPER_REFERENCE }) + public class DisableRequest { public static final String JSON_PROPERTY_CONTRACT = "contract"; private String contract; @@ -37,16 +47,13 @@ public class DisableRequest { public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference"; private String shopperReference; - public DisableRequest() {} + public DisableRequest() { + } /** - * Specify the contract if you only want to disable a specific use. This field can be set to one - * of the following values, or to their combination (comma-separated): * ONECLICK * RECURRING * - * PAYOUT + * Specify the contract if you only want to disable a specific use. This field can be set to one of the following values, or to their combination (comma-separated): * ONECLICK * RECURRING * PAYOUT * - * @param contract Specify the contract if you only want to disable a specific use. This field can - * be set to one of the following values, or to their combination (comma-separated): * - * ONECLICK * RECURRING * PAYOUT + * @param contract Specify the contract if you only want to disable a specific use. This field can be set to one of the following values, or to their combination (comma-separated): * ONECLICK * RECURRING * PAYOUT * @return the current {@code DisableRequest} instance, allowing for method chaining */ public DisableRequest contract(String contract) { @@ -55,13 +62,8 @@ public DisableRequest contract(String contract) { } /** - * Specify the contract if you only want to disable a specific use. This field can be set to one - * of the following values, or to their combination (comma-separated): * ONECLICK * RECURRING * - * PAYOUT - * - * @return contract Specify the contract if you only want to disable a specific use. This field - * can be set to one of the following values, or to their combination (comma-separated): * - * ONECLICK * RECURRING * PAYOUT + * Specify the contract if you only want to disable a specific use. This field can be set to one of the following values, or to their combination (comma-separated): * ONECLICK * RECURRING * PAYOUT + * @return contract Specify the contract if you only want to disable a specific use. This field can be set to one of the following values, or to their combination (comma-separated): * ONECLICK * RECURRING * PAYOUT */ @JsonProperty(JSON_PROPERTY_CONTRACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,13 +72,9 @@ public String getContract() { } /** - * Specify the contract if you only want to disable a specific use. This field can be set to one - * of the following values, or to their combination (comma-separated): * ONECLICK * RECURRING * - * PAYOUT + * Specify the contract if you only want to disable a specific use. This field can be set to one of the following values, or to their combination (comma-separated): * ONECLICK * RECURRING * PAYOUT * - * @param contract Specify the contract if you only want to disable a specific use. This field can - * be set to one of the following values, or to their combination (comma-separated): * - * ONECLICK * RECURRING * PAYOUT + * @param contract Specify the contract if you only want to disable a specific use. This field can be set to one of the following values, or to their combination (comma-separated): * ONECLICK * RECURRING * PAYOUT */ @JsonProperty(JSON_PROPERTY_CONTRACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,8 +85,7 @@ public void setContract(String contract) { /** * The merchant account identifier with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier with which you want to process the transaction. * @return the current {@code DisableRequest} instance, allowing for method chaining */ public DisableRequest merchantAccount(String merchantAccount) { @@ -98,9 +95,7 @@ public DisableRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier with which you want to process the transaction. - * - * @return merchantAccount The merchant account identifier with which you want to process the - * transaction. + * @return merchantAccount The merchant account identifier with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,8 +106,7 @@ public String getMerchantAccount() { /** * The merchant account identifier with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,13 +115,9 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The ID that uniquely identifies the recurring detail reference. If it is not provided, the - * whole recurring contract of the `shopperReference` will be disabled, which includes - * all recurring details. + * The ID that uniquely identifies the recurring detail reference. If it is not provided, the whole recurring contract of the `shopperReference` will be disabled, which includes all recurring details. * - * @param recurringDetailReference The ID that uniquely identifies the recurring detail reference. - * If it is not provided, the whole recurring contract of the `shopperReference` - * will be disabled, which includes all recurring details. + * @param recurringDetailReference The ID that uniquely identifies the recurring detail reference. If it is not provided, the whole recurring contract of the `shopperReference` will be disabled, which includes all recurring details. * @return the current {@code DisableRequest} instance, allowing for method chaining */ public DisableRequest recurringDetailReference(String recurringDetailReference) { @@ -136,13 +126,8 @@ public DisableRequest recurringDetailReference(String recurringDetailReference) } /** - * The ID that uniquely identifies the recurring detail reference. If it is not provided, the - * whole recurring contract of the `shopperReference` will be disabled, which includes - * all recurring details. - * - * @return recurringDetailReference The ID that uniquely identifies the recurring detail - * reference. If it is not provided, the whole recurring contract of the - * `shopperReference` will be disabled, which includes all recurring details. + * The ID that uniquely identifies the recurring detail reference. If it is not provided, the whole recurring contract of the `shopperReference` will be disabled, which includes all recurring details. + * @return recurringDetailReference The ID that uniquely identifies the recurring detail reference. If it is not provided, the whole recurring contract of the `shopperReference` will be disabled, which includes all recurring details. */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,13 +136,9 @@ public String getRecurringDetailReference() { } /** - * The ID that uniquely identifies the recurring detail reference. If it is not provided, the - * whole recurring contract of the `shopperReference` will be disabled, which includes - * all recurring details. + * The ID that uniquely identifies the recurring detail reference. If it is not provided, the whole recurring contract of the `shopperReference` will be disabled, which includes all recurring details. * - * @param recurringDetailReference The ID that uniquely identifies the recurring detail reference. - * If it is not provided, the whole recurring contract of the `shopperReference` - * will be disabled, which includes all recurring details. + * @param recurringDetailReference The ID that uniquely identifies the recurring detail reference. If it is not provided, the whole recurring contract of the `shopperReference` will be disabled, which includes all recurring details. */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -166,12 +147,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * The ID that uniquely identifies the shopper. This `shopperReference` must be the same - * as the `shopperReference` used in the initial payment. + * The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment. * - * @param shopperReference The ID that uniquely identifies the shopper. This - * `shopperReference` must be the same as the `shopperReference` used in - * the initial payment. + * @param shopperReference The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment. * @return the current {@code DisableRequest} instance, allowing for method chaining */ public DisableRequest shopperReference(String shopperReference) { @@ -180,12 +158,8 @@ public DisableRequest shopperReference(String shopperReference) { } /** - * The ID that uniquely identifies the shopper. This `shopperReference` must be the same - * as the `shopperReference` used in the initial payment. - * - * @return shopperReference The ID that uniquely identifies the shopper. This - * `shopperReference` must be the same as the `shopperReference` used in - * the initial payment. + * The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment. + * @return shopperReference The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,12 +168,9 @@ public String getShopperReference() { } /** - * The ID that uniquely identifies the shopper. This `shopperReference` must be the same - * as the `shopperReference` used in the initial payment. + * The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment. * - * @param shopperReference The ID that uniquely identifies the shopper. This - * `shopperReference` must be the same as the `shopperReference` used in - * the initial payment. + * @param shopperReference The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -207,7 +178,9 @@ public void setShopperReference(String shopperReference) { this.shopperReference = shopperReference; } - /** Return true if this DisableRequest object is equal to o. */ + /** + * Return true if this DisableRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -217,10 +190,10 @@ public boolean equals(Object o) { return false; } DisableRequest disableRequest = (DisableRequest) o; - return Objects.equals(this.contract, disableRequest.contract) - && Objects.equals(this.merchantAccount, disableRequest.merchantAccount) - && Objects.equals(this.recurringDetailReference, disableRequest.recurringDetailReference) - && Objects.equals(this.shopperReference, disableRequest.shopperReference); + return Objects.equals(this.contract, disableRequest.contract) && + Objects.equals(this.merchantAccount, disableRequest.merchantAccount) && + Objects.equals(this.recurringDetailReference, disableRequest.recurringDetailReference) && + Objects.equals(this.shopperReference, disableRequest.shopperReference); } @Override @@ -234,16 +207,15 @@ public String toString() { sb.append("class DisableRequest {\n"); sb.append(" contract: ").append(toIndentedString(contract)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -252,7 +224,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DisableRequest given an JSON string * * @param jsonString JSON string @@ -262,12 +234,11 @@ private String toIndentedString(Object o) { public static DisableRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DisableRequest.class); } - - /** - * Convert an instance of DisableRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DisableRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/DisableResult.java b/src/main/java/com/adyen/model/recurring/DisableResult.java index 6736e22c0..08d476f7e 100644 --- a/src/main/java/com/adyen/model/recurring/DisableResult.java +++ b/src/main/java/com/adyen/model/recurring/DisableResult.java @@ -2,35 +2,46 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.recurring; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** DisableResult */ -@JsonPropertyOrder({DisableResult.JSON_PROPERTY_RESPONSE}) + +/** + * DisableResult + */ +@JsonPropertyOrder({ + DisableResult.JSON_PROPERTY_RESPONSE +}) + public class DisableResult { public static final String JSON_PROPERTY_RESPONSE = "response"; private String response; - public DisableResult() {} + public DisableResult() { + } /** - * Depending on whether a specific recurring detail was in the request, result is either - * [detail-successfully-disabled] or [all-details-successfully-disabled]. + * Depending on whether a specific recurring detail was in the request, result is either [detail-successfully-disabled] or [all-details-successfully-disabled]. * - * @param response Depending on whether a specific recurring detail was in the request, result is - * either [detail-successfully-disabled] or [all-details-successfully-disabled]. + * @param response Depending on whether a specific recurring detail was in the request, result is either [detail-successfully-disabled] or [all-details-successfully-disabled]. * @return the current {@code DisableResult} instance, allowing for method chaining */ public DisableResult response(String response) { @@ -39,11 +50,8 @@ public DisableResult response(String response) { } /** - * Depending on whether a specific recurring detail was in the request, result is either - * [detail-successfully-disabled] or [all-details-successfully-disabled]. - * - * @return response Depending on whether a specific recurring detail was in the request, result is - * either [detail-successfully-disabled] or [all-details-successfully-disabled]. + * Depending on whether a specific recurring detail was in the request, result is either [detail-successfully-disabled] or [all-details-successfully-disabled]. + * @return response Depending on whether a specific recurring detail was in the request, result is either [detail-successfully-disabled] or [all-details-successfully-disabled]. */ @JsonProperty(JSON_PROPERTY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -52,11 +60,9 @@ public String getResponse() { } /** - * Depending on whether a specific recurring detail was in the request, result is either - * [detail-successfully-disabled] or [all-details-successfully-disabled]. + * Depending on whether a specific recurring detail was in the request, result is either [detail-successfully-disabled] or [all-details-successfully-disabled]. * - * @param response Depending on whether a specific recurring detail was in the request, result is - * either [detail-successfully-disabled] or [all-details-successfully-disabled]. + * @param response Depending on whether a specific recurring detail was in the request, result is either [detail-successfully-disabled] or [all-details-successfully-disabled]. */ @JsonProperty(JSON_PROPERTY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,7 +70,9 @@ public void setResponse(String response) { this.response = response; } - /** Return true if this DisableResult object is equal to o. */ + /** + * Return true if this DisableResult object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -92,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -101,7 +110,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DisableResult given an JSON string * * @param jsonString JSON string @@ -111,12 +120,11 @@ private String toIndentedString(Object o) { public static DisableResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DisableResult.class); } - - /** - * Convert an instance of DisableResult to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DisableResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/JSON.java b/src/main/java/com/adyen/model/recurring/JSON.java index 212414577..9adc47a06 100644 --- a/src/main/java/com/adyen/model/recurring/JSON.java +++ b/src/main/java/com/adyen/model/recurring/JSON.java @@ -1,18 +1,21 @@ package com.adyen.model.recurring; -import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; +import com.adyen.serializer.ByteArrayDeserializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; +import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; +import com.adyen.model.recurring.*; + import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -37,7 +40,6 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. - * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -54,13 +56,11 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { - return mapper; - } + public static ObjectMapper getMapper() { return mapper; } /** - * Returns the target model class that should be used to deserialize the input data. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,7 +73,9 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** Helper class to register the discriminator mappings. */ + /** + * Helper class to register the discriminator mappings. + */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -115,9 +117,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. This - * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -162,14 +164,13 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so - * it's not possible to use the instanceof keyword. + * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, + * so it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf( - Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -193,58 +194,59 @@ public static boolean isInstanceOf( return false; } - /** A map of discriminators for all model classes. */ - private static final Map, ClassDiscriminatorMapping> modelDiscriminators = - new HashMap, ClassDiscriminatorMapping>(); + /** + * A map of discriminators for all model classes. + */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); - /** A map of oneOf/anyOf descendants for each model class. */ + /** + * A map of oneOf/anyOf descendants for each model class. + */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator( - Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = - new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants( - Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants(Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static { + static + { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/recurring/Name.java b/src/main/java/com/adyen/model/recurring/Name.java index 7d5173efc..486ff75f0 100644 --- a/src/main/java/com/adyen/model/recurring/Name.java +++ b/src/main/java/com/adyen/model/recurring/Name.java @@ -2,23 +2,36 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.recurring; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Name */ -@JsonPropertyOrder({Name.JSON_PROPERTY_FIRST_NAME, Name.JSON_PROPERTY_LAST_NAME}) + +/** + * Name + */ +@JsonPropertyOrder({ + Name.JSON_PROPERTY_FIRST_NAME, + Name.JSON_PROPERTY_LAST_NAME +}) + public class Name { public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; private String firstName; @@ -26,7 +39,8 @@ public class Name { public static final String JSON_PROPERTY_LAST_NAME = "lastName"; private String lastName; - public Name() {} + public Name() { + } /** * The first name. @@ -41,7 +55,6 @@ public Name firstName(String firstName) { /** * The first name. - * * @return firstName The first name. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @@ -74,7 +87,6 @@ public Name lastName(String lastName) { /** * The last name. - * * @return lastName The last name. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @@ -94,7 +106,9 @@ public void setLastName(String lastName) { this.lastName = lastName; } - /** Return true if this Name object is equal to o. */ + /** + * Return true if this Name object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -104,8 +118,8 @@ public boolean equals(Object o) { return false; } Name name = (Name) o; - return Objects.equals(this.firstName, name.firstName) - && Objects.equals(this.lastName, name.lastName); + return Objects.equals(this.firstName, name.firstName) && + Objects.equals(this.lastName, name.lastName); } @Override @@ -124,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Name given an JSON string * * @param jsonString JSON string @@ -143,12 +158,11 @@ private String toIndentedString(Object o) { public static Name fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Name.class); } - - /** - * Convert an instance of Name to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Name to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/NotifyShopperRequest.java b/src/main/java/com/adyen/model/recurring/NotifyShopperRequest.java index f08569e1f..5a77d22d2 100644 --- a/src/main/java/com/adyen/model/recurring/NotifyShopperRequest.java +++ b/src/main/java/com/adyen/model/recurring/NotifyShopperRequest.java @@ -2,22 +2,32 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.recurring; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.recurring.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** NotifyShopperRequest */ + +/** + * NotifyShopperRequest + */ @JsonPropertyOrder({ NotifyShopperRequest.JSON_PROPERTY_AMOUNT, NotifyShopperRequest.JSON_PROPERTY_BILLING_DATE, @@ -29,6 +39,7 @@ NotifyShopperRequest.JSON_PROPERTY_SHOPPER_REFERENCE, NotifyShopperRequest.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID }) + public class NotifyShopperRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -57,12 +68,13 @@ public class NotifyShopperRequest { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - public NotifyShopperRequest() {} + public NotifyShopperRequest() { + } /** * amount * - * @param amount + * @param amount * @return the current {@code NotifyShopperRequest} instance, allowing for method chaining */ public NotifyShopperRequest amount(Amount amount) { @@ -72,8 +84,7 @@ public NotifyShopperRequest amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -84,7 +95,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -95,8 +106,7 @@ public void setAmount(Amount amount) { /** * Date on which the subscription amount will be debited from the shopper. In YYYY-MM-DD format * - * @param billingDate Date on which the subscription amount will be debited from the shopper. In - * YYYY-MM-DD format + * @param billingDate Date on which the subscription amount will be debited from the shopper. In YYYY-MM-DD format * @return the current {@code NotifyShopperRequest} instance, allowing for method chaining */ public NotifyShopperRequest billingDate(String billingDate) { @@ -106,9 +116,7 @@ public NotifyShopperRequest billingDate(String billingDate) { /** * Date on which the subscription amount will be debited from the shopper. In YYYY-MM-DD format - * - * @return billingDate Date on which the subscription amount will be debited from the shopper. In - * YYYY-MM-DD format + * @return billingDate Date on which the subscription amount will be debited from the shopper. In YYYY-MM-DD format */ @JsonProperty(JSON_PROPERTY_BILLING_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -119,8 +127,7 @@ public String getBillingDate() { /** * Date on which the subscription amount will be debited from the shopper. In YYYY-MM-DD format * - * @param billingDate Date on which the subscription amount will be debited from the shopper. In - * YYYY-MM-DD format + * @param billingDate Date on which the subscription amount will be debited from the shopper. In YYYY-MM-DD format */ @JsonProperty(JSON_PROPERTY_BILLING_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -131,8 +138,7 @@ public void setBillingDate(String billingDate) { /** * Sequence of the debit. Depends on Frequency and Billing Attempts Rule. * - * @param billingSequenceNumber Sequence of the debit. Depends on Frequency and Billing Attempts - * Rule. + * @param billingSequenceNumber Sequence of the debit. Depends on Frequency and Billing Attempts Rule. * @return the current {@code NotifyShopperRequest} instance, allowing for method chaining */ public NotifyShopperRequest billingSequenceNumber(String billingSequenceNumber) { @@ -142,9 +148,7 @@ public NotifyShopperRequest billingSequenceNumber(String billingSequenceNumber) /** * Sequence of the debit. Depends on Frequency and Billing Attempts Rule. - * - * @return billingSequenceNumber Sequence of the debit. Depends on Frequency and Billing Attempts - * Rule. + * @return billingSequenceNumber Sequence of the debit. Depends on Frequency and Billing Attempts Rule. */ @JsonProperty(JSON_PROPERTY_BILLING_SEQUENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -155,8 +159,7 @@ public String getBillingSequenceNumber() { /** * Sequence of the debit. Depends on Frequency and Billing Attempts Rule. * - * @param billingSequenceNumber Sequence of the debit. Depends on Frequency and Billing Attempts - * Rule. + * @param billingSequenceNumber Sequence of the debit. Depends on Frequency and Billing Attempts Rule. */ @JsonProperty(JSON_PROPERTY_BILLING_SEQUENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -165,11 +168,9 @@ public void setBillingSequenceNumber(String billingSequenceNumber) { } /** - * Reference of Pre-debit notification that is displayed to the shopper. Optional field. Maps to - * reference if missing + * Reference of Pre-debit notification that is displayed to the shopper. Optional field. Maps to reference if missing * - * @param displayedReference Reference of Pre-debit notification that is displayed to the shopper. - * Optional field. Maps to reference if missing + * @param displayedReference Reference of Pre-debit notification that is displayed to the shopper. Optional field. Maps to reference if missing * @return the current {@code NotifyShopperRequest} instance, allowing for method chaining */ public NotifyShopperRequest displayedReference(String displayedReference) { @@ -178,11 +179,8 @@ public NotifyShopperRequest displayedReference(String displayedReference) { } /** - * Reference of Pre-debit notification that is displayed to the shopper. Optional field. Maps to - * reference if missing - * - * @return displayedReference Reference of Pre-debit notification that is displayed to the - * shopper. Optional field. Maps to reference if missing + * Reference of Pre-debit notification that is displayed to the shopper. Optional field. Maps to reference if missing + * @return displayedReference Reference of Pre-debit notification that is displayed to the shopper. Optional field. Maps to reference if missing */ @JsonProperty(JSON_PROPERTY_DISPLAYED_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,11 +189,9 @@ public String getDisplayedReference() { } /** - * Reference of Pre-debit notification that is displayed to the shopper. Optional field. Maps to - * reference if missing + * Reference of Pre-debit notification that is displayed to the shopper. Optional field. Maps to reference if missing * - * @param displayedReference Reference of Pre-debit notification that is displayed to the shopper. - * Optional field. Maps to reference if missing + * @param displayedReference Reference of Pre-debit notification that is displayed to the shopper. Optional field. Maps to reference if missing */ @JsonProperty(JSON_PROPERTY_DISPLAYED_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -206,8 +202,7 @@ public void setDisplayedReference(String displayedReference) { /** * The merchant account identifier with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier with which you want to process the transaction. * @return the current {@code NotifyShopperRequest} instance, allowing for method chaining */ public NotifyShopperRequest merchantAccount(String merchantAccount) { @@ -217,9 +212,7 @@ public NotifyShopperRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier with which you want to process the transaction. - * - * @return merchantAccount The merchant account identifier with which you want to process the - * transaction. + * @return merchantAccount The merchant account identifier with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -230,8 +223,7 @@ public String getMerchantAccount() { /** * The merchant account identifier with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,11 +232,9 @@ public void setMerchantAccount(String merchantAccount) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code NotifyShopperRequest} instance, allowing for method chaining */ public NotifyShopperRequest recurringDetailReference(String recurringDetailReference) { @@ -253,11 +243,8 @@ public NotifyShopperRequest recurringDetailReference(String recurringDetailRefer } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -266,11 +253,9 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in - * the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -281,8 +266,7 @@ public void setRecurringDetailReference(String recurringDetailReference) { /** * Pre-debit notification reference sent by the merchant. This is a mandatory field * - * @param reference Pre-debit notification reference sent by the merchant. This is a mandatory - * field + * @param reference Pre-debit notification reference sent by the merchant. This is a mandatory field * @return the current {@code NotifyShopperRequest} instance, allowing for method chaining */ public NotifyShopperRequest reference(String reference) { @@ -292,9 +276,7 @@ public NotifyShopperRequest reference(String reference) { /** * Pre-debit notification reference sent by the merchant. This is a mandatory field - * - * @return reference Pre-debit notification reference sent by the merchant. This is a mandatory - * field + * @return reference Pre-debit notification reference sent by the merchant. This is a mandatory field */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -305,8 +287,7 @@ public String getReference() { /** * Pre-debit notification reference sent by the merchant. This is a mandatory field * - * @param reference Pre-debit notification reference sent by the merchant. This is a mandatory - * field + * @param reference Pre-debit notification reference sent by the merchant. This is a mandatory field */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -315,12 +296,9 @@ public void setReference(String reference) { } /** - * The ID that uniquely identifies the shopper. This `shopperReference` must be the same - * as the `shopperReference` used in the initial payment. + * The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment. * - * @param shopperReference The ID that uniquely identifies the shopper. This - * `shopperReference` must be the same as the `shopperReference` used in - * the initial payment. + * @param shopperReference The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment. * @return the current {@code NotifyShopperRequest} instance, allowing for method chaining */ public NotifyShopperRequest shopperReference(String shopperReference) { @@ -329,12 +307,8 @@ public NotifyShopperRequest shopperReference(String shopperReference) { } /** - * The ID that uniquely identifies the shopper. This `shopperReference` must be the same - * as the `shopperReference` used in the initial payment. - * - * @return shopperReference The ID that uniquely identifies the shopper. This - * `shopperReference` must be the same as the `shopperReference` used in - * the initial payment. + * The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment. + * @return shopperReference The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -343,12 +317,9 @@ public String getShopperReference() { } /** - * The ID that uniquely identifies the shopper. This `shopperReference` must be the same - * as the `shopperReference` used in the initial payment. + * The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment. * - * @param shopperReference The ID that uniquely identifies the shopper. This - * `shopperReference` must be the same as the `shopperReference` used in - * the initial payment. + * @param shopperReference The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -357,11 +328,9 @@ public void setShopperReference(String shopperReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. * @return the current {@code NotifyShopperRequest} instance, allowing for method chaining */ public NotifyShopperRequest storedPaymentMethodId(String storedPaymentMethodId) { @@ -370,11 +339,8 @@ public NotifyShopperRequest storedPaymentMethodId(String storedPaymentMethodId) } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. - * - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the token. + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -383,11 +349,9 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the - * token. + * This is the `recurringDetailReference` returned in the response when you created the token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the - * response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -395,7 +359,9 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { this.storedPaymentMethodId = storedPaymentMethodId; } - /** Return true if this NotifyShopperRequest object is equal to o. */ + /** + * Return true if this NotifyShopperRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -405,30 +371,20 @@ public boolean equals(Object o) { return false; } NotifyShopperRequest notifyShopperRequest = (NotifyShopperRequest) o; - return Objects.equals(this.amount, notifyShopperRequest.amount) - && Objects.equals(this.billingDate, notifyShopperRequest.billingDate) - && Objects.equals(this.billingSequenceNumber, notifyShopperRequest.billingSequenceNumber) - && Objects.equals(this.displayedReference, notifyShopperRequest.displayedReference) - && Objects.equals(this.merchantAccount, notifyShopperRequest.merchantAccount) - && Objects.equals( - this.recurringDetailReference, notifyShopperRequest.recurringDetailReference) - && Objects.equals(this.reference, notifyShopperRequest.reference) - && Objects.equals(this.shopperReference, notifyShopperRequest.shopperReference) - && Objects.equals(this.storedPaymentMethodId, notifyShopperRequest.storedPaymentMethodId); + return Objects.equals(this.amount, notifyShopperRequest.amount) && + Objects.equals(this.billingDate, notifyShopperRequest.billingDate) && + Objects.equals(this.billingSequenceNumber, notifyShopperRequest.billingSequenceNumber) && + Objects.equals(this.displayedReference, notifyShopperRequest.displayedReference) && + Objects.equals(this.merchantAccount, notifyShopperRequest.merchantAccount) && + Objects.equals(this.recurringDetailReference, notifyShopperRequest.recurringDetailReference) && + Objects.equals(this.reference, notifyShopperRequest.reference) && + Objects.equals(this.shopperReference, notifyShopperRequest.shopperReference) && + Objects.equals(this.storedPaymentMethodId, notifyShopperRequest.storedPaymentMethodId); } @Override public int hashCode() { - return Objects.hash( - amount, - billingDate, - billingSequenceNumber, - displayedReference, - merchantAccount, - recurringDetailReference, - reference, - shopperReference, - storedPaymentMethodId); + return Objects.hash(amount, billingDate, billingSequenceNumber, displayedReference, merchantAccount, recurringDetailReference, reference, shopperReference, storedPaymentMethodId); } @Override @@ -437,25 +393,20 @@ public String toString() { sb.append("class NotifyShopperRequest {\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" billingDate: ").append(toIndentedString(billingDate)).append("\n"); - sb.append(" billingSequenceNumber: ") - .append(toIndentedString(billingSequenceNumber)) - .append("\n"); + sb.append(" billingSequenceNumber: ").append(toIndentedString(billingSequenceNumber)).append("\n"); sb.append(" displayedReference: ").append(toIndentedString(displayedReference)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -464,23 +415,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of NotifyShopperRequest given an JSON string * * @param jsonString JSON string * @return An instance of NotifyShopperRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * NotifyShopperRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to NotifyShopperRequest */ public static NotifyShopperRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NotifyShopperRequest.class); } - - /** - * Convert an instance of NotifyShopperRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of NotifyShopperRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/NotifyShopperResult.java b/src/main/java/com/adyen/model/recurring/NotifyShopperResult.java index e32d50467..300d81d13 100644 --- a/src/main/java/com/adyen/model/recurring/NotifyShopperResult.java +++ b/src/main/java/com/adyen/model/recurring/NotifyShopperResult.java @@ -2,22 +2,31 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.recurring; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** NotifyShopperResult */ + +/** + * NotifyShopperResult + */ @JsonPropertyOrder({ NotifyShopperResult.JSON_PROPERTY_DISPLAYED_REFERENCE, NotifyShopperResult.JSON_PROPERTY_MESSAGE, @@ -27,6 +36,7 @@ NotifyShopperResult.JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE, NotifyShopperResult.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID }) + public class NotifyShopperResult { public static final String JSON_PROPERTY_DISPLAYED_REFERENCE = "displayedReference"; private String displayedReference; @@ -43,14 +53,14 @@ public class NotifyShopperResult { public static final String JSON_PROPERTY_RESULT_CODE = "resultCode"; private String resultCode; - public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE = - "shopperNotificationReference"; + public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE = "shopperNotificationReference"; private String shopperNotificationReference; public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - public NotifyShopperResult() {} + public NotifyShopperResult() { + } /** * Reference of Pre-debit notification that is displayed to the shopper @@ -65,7 +75,6 @@ public NotifyShopperResult displayedReference(String displayedReference) { /** * Reference of Pre-debit notification that is displayed to the shopper - * * @return displayedReference Reference of Pre-debit notification that is displayed to the shopper */ @JsonProperty(JSON_PROPERTY_DISPLAYED_REFERENCE) @@ -98,7 +107,6 @@ public NotifyShopperResult message(String message) { /** * A simple description of the `resultCode`. - * * @return message A simple description of the `resultCode`. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -131,7 +139,6 @@ public NotifyShopperResult pspReference(String pspReference) { /** * The unique reference that is associated with the request. - * * @return pspReference The unique reference that is associated with the request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -164,7 +171,6 @@ public NotifyShopperResult reference(String reference) { /** * Reference of Pre-debit notification sent in my the merchant - * * @return reference Reference of Pre-debit notification sent in my the merchant */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -197,7 +203,6 @@ public NotifyShopperResult resultCode(String resultCode) { /** * The code indicating the status of notification. - * * @return resultCode The code indicating the status of notification. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @@ -230,7 +235,6 @@ public NotifyShopperResult shopperNotificationReference(String shopperNotificati /** * The unique reference for the request sent downstream. - * * @return shopperNotificationReference The unique reference for the request sent downstream. */ @JsonProperty(JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE) @@ -253,8 +257,7 @@ public void setShopperNotificationReference(String shopperNotificationReference) /** * This is the recurringDetailReference returned in the response when token was created * - * @param storedPaymentMethodId This is the recurringDetailReference returned in the response when - * token was created + * @param storedPaymentMethodId This is the recurringDetailReference returned in the response when token was created * @return the current {@code NotifyShopperResult} instance, allowing for method chaining */ public NotifyShopperResult storedPaymentMethodId(String storedPaymentMethodId) { @@ -264,9 +267,7 @@ public NotifyShopperResult storedPaymentMethodId(String storedPaymentMethodId) { /** * This is the recurringDetailReference returned in the response when token was created - * - * @return storedPaymentMethodId This is the recurringDetailReference returned in the response - * when token was created + * @return storedPaymentMethodId This is the recurringDetailReference returned in the response when token was created */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -277,8 +278,7 @@ public String getStoredPaymentMethodId() { /** * This is the recurringDetailReference returned in the response when token was created * - * @param storedPaymentMethodId This is the recurringDetailReference returned in the response when - * token was created + * @param storedPaymentMethodId This is the recurringDetailReference returned in the response when token was created */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -286,7 +286,9 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { this.storedPaymentMethodId = storedPaymentMethodId; } - /** Return true if this NotifyShopperResult object is equal to o. */ + /** + * Return true if this NotifyShopperResult object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -296,26 +298,18 @@ public boolean equals(Object o) { return false; } NotifyShopperResult notifyShopperResult = (NotifyShopperResult) o; - return Objects.equals(this.displayedReference, notifyShopperResult.displayedReference) - && Objects.equals(this.message, notifyShopperResult.message) - && Objects.equals(this.pspReference, notifyShopperResult.pspReference) - && Objects.equals(this.reference, notifyShopperResult.reference) - && Objects.equals(this.resultCode, notifyShopperResult.resultCode) - && Objects.equals( - this.shopperNotificationReference, notifyShopperResult.shopperNotificationReference) - && Objects.equals(this.storedPaymentMethodId, notifyShopperResult.storedPaymentMethodId); + return Objects.equals(this.displayedReference, notifyShopperResult.displayedReference) && + Objects.equals(this.message, notifyShopperResult.message) && + Objects.equals(this.pspReference, notifyShopperResult.pspReference) && + Objects.equals(this.reference, notifyShopperResult.reference) && + Objects.equals(this.resultCode, notifyShopperResult.resultCode) && + Objects.equals(this.shopperNotificationReference, notifyShopperResult.shopperNotificationReference) && + Objects.equals(this.storedPaymentMethodId, notifyShopperResult.storedPaymentMethodId); } @Override public int hashCode() { - return Objects.hash( - displayedReference, - message, - pspReference, - reference, - resultCode, - shopperNotificationReference, - storedPaymentMethodId); + return Objects.hash(displayedReference, message, pspReference, reference, resultCode, shopperNotificationReference, storedPaymentMethodId); } @Override @@ -327,18 +321,15 @@ public String toString() { sb.append(" pspReference: ").append(toIndentedString(pspReference)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" resultCode: ").append(toIndentedString(resultCode)).append("\n"); - sb.append(" shopperNotificationReference: ") - .append(toIndentedString(shopperNotificationReference)) - .append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" shopperNotificationReference: ").append(toIndentedString(shopperNotificationReference)).append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -347,23 +338,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of NotifyShopperResult given an JSON string * * @param jsonString JSON string * @return An instance of NotifyShopperResult - * @throws JsonProcessingException if the JSON string is invalid with respect to - * NotifyShopperResult + * @throws JsonProcessingException if the JSON string is invalid with respect to NotifyShopperResult */ public static NotifyShopperResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NotifyShopperResult.class); } - - /** - * Convert an instance of NotifyShopperResult to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of NotifyShopperResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/Permit.java b/src/main/java/com/adyen/model/recurring/Permit.java index b8eeed1f8..f7ebb6e20 100644 --- a/src/main/java/com/adyen/model/recurring/Permit.java +++ b/src/main/java/com/adyen/model/recurring/Permit.java @@ -2,23 +2,33 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.recurring; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.recurring.PermitRestriction; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.time.OffsetDateTime; -import java.util.*; -/** Permit */ + +/** + * Permit + */ @JsonPropertyOrder({ Permit.JSON_PROPERTY_PARTNER_ID, Permit.JSON_PROPERTY_PROFILE_REFERENCE, @@ -26,6 +36,7 @@ Permit.JSON_PROPERTY_RESULT_KEY, Permit.JSON_PROPERTY_VALID_TILL_DATE }) + public class Permit { public static final String JSON_PROPERTY_PARTNER_ID = "partnerId"; private String partnerId; @@ -42,7 +53,8 @@ public class Permit { public static final String JSON_PROPERTY_VALID_TILL_DATE = "validTillDate"; private OffsetDateTime validTillDate; - public Permit() {} + public Permit() { + } /** * Partner ID (when using the permit-per-partner token sharing model). @@ -57,7 +69,6 @@ public Permit partnerId(String partnerId) { /** * Partner ID (when using the permit-per-partner token sharing model). - * * @return partnerId Partner ID (when using the permit-per-partner token sharing model). */ @JsonProperty(JSON_PROPERTY_PARTNER_ID) @@ -80,8 +91,7 @@ public void setPartnerId(String partnerId) { /** * The profile to apply to this permit (when using the shared permits model). * - * @param profileReference The profile to apply to this permit (when using the shared permits - * model). + * @param profileReference The profile to apply to this permit (when using the shared permits model). * @return the current {@code Permit} instance, allowing for method chaining */ public Permit profileReference(String profileReference) { @@ -91,9 +101,7 @@ public Permit profileReference(String profileReference) { /** * The profile to apply to this permit (when using the shared permits model). - * - * @return profileReference The profile to apply to this permit (when using the shared permits - * model). + * @return profileReference The profile to apply to this permit (when using the shared permits model). */ @JsonProperty(JSON_PROPERTY_PROFILE_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,8 +112,7 @@ public String getProfileReference() { /** * The profile to apply to this permit (when using the shared permits model). * - * @param profileReference The profile to apply to this permit (when using the shared permits - * model). + * @param profileReference The profile to apply to this permit (when using the shared permits model). */ @JsonProperty(JSON_PROPERTY_PROFILE_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,7 +123,7 @@ public void setProfileReference(String profileReference) { /** * restriction * - * @param restriction + * @param restriction * @return the current {@code Permit} instance, allowing for method chaining */ public Permit restriction(PermitRestriction restriction) { @@ -126,8 +133,7 @@ public Permit restriction(PermitRestriction restriction) { /** * Get restriction - * - * @return restriction + * @return restriction */ @JsonProperty(JSON_PROPERTY_RESTRICTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,7 +144,7 @@ public PermitRestriction getRestriction() { /** * restriction * - * @param restriction + * @param restriction */ @JsonProperty(JSON_PROPERTY_RESTRICTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,7 +165,6 @@ public Permit resultKey(String resultKey) { /** * The key to link permit requests to permit results. - * * @return resultKey The key to link permit requests to permit results. */ @JsonProperty(JSON_PROPERTY_RESULT_KEY) @@ -192,7 +197,6 @@ public Permit validTillDate(OffsetDateTime validTillDate) { /** * The expiry date for this permit. - * * @return validTillDate The expiry date for this permit. */ @JsonProperty(JSON_PROPERTY_VALID_TILL_DATE) @@ -212,7 +216,9 @@ public void setValidTillDate(OffsetDateTime validTillDate) { this.validTillDate = validTillDate; } - /** Return true if this Permit object is equal to o. */ + /** + * Return true if this Permit object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -222,11 +228,11 @@ public boolean equals(Object o) { return false; } Permit permit = (Permit) o; - return Objects.equals(this.partnerId, permit.partnerId) - && Objects.equals(this.profileReference, permit.profileReference) - && Objects.equals(this.restriction, permit.restriction) - && Objects.equals(this.resultKey, permit.resultKey) - && Objects.equals(this.validTillDate, permit.validTillDate); + return Objects.equals(this.partnerId, permit.partnerId) && + Objects.equals(this.profileReference, permit.profileReference) && + Objects.equals(this.restriction, permit.restriction) && + Objects.equals(this.resultKey, permit.resultKey) && + Objects.equals(this.validTillDate, permit.validTillDate); } @Override @@ -248,7 +254,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -257,7 +264,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Permit given an JSON string * * @param jsonString JSON string @@ -267,12 +274,11 @@ private String toIndentedString(Object o) { public static Permit fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Permit.class); } - - /** - * Convert an instance of Permit to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Permit to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/PermitRestriction.java b/src/main/java/com/adyen/model/recurring/PermitRestriction.java index b12dad468..aed9cdddc 100644 --- a/src/main/java/com/adyen/model/recurring/PermitRestriction.java +++ b/src/main/java/com/adyen/model/recurring/PermitRestriction.java @@ -2,27 +2,38 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.recurring; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.recurring.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** PermitRestriction */ + +/** + * PermitRestriction + */ @JsonPropertyOrder({ PermitRestriction.JSON_PROPERTY_MAX_AMOUNT, PermitRestriction.JSON_PROPERTY_SINGLE_TRANSACTION_LIMIT, PermitRestriction.JSON_PROPERTY_SINGLE_USE }) + public class PermitRestriction { public static final String JSON_PROPERTY_MAX_AMOUNT = "maxAmount"; private Amount maxAmount; @@ -33,12 +44,13 @@ public class PermitRestriction { public static final String JSON_PROPERTY_SINGLE_USE = "singleUse"; private Boolean singleUse; - public PermitRestriction() {} + public PermitRestriction() { + } /** * maxAmount * - * @param maxAmount + * @param maxAmount * @return the current {@code PermitRestriction} instance, allowing for method chaining */ public PermitRestriction maxAmount(Amount maxAmount) { @@ -48,8 +60,7 @@ public PermitRestriction maxAmount(Amount maxAmount) { /** * Get maxAmount - * - * @return maxAmount + * @return maxAmount */ @JsonProperty(JSON_PROPERTY_MAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,7 +71,7 @@ public Amount getMaxAmount() { /** * maxAmount * - * @param maxAmount + * @param maxAmount */ @JsonProperty(JSON_PROPERTY_MAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,7 +82,7 @@ public void setMaxAmount(Amount maxAmount) { /** * singleTransactionLimit * - * @param singleTransactionLimit + * @param singleTransactionLimit * @return the current {@code PermitRestriction} instance, allowing for method chaining */ public PermitRestriction singleTransactionLimit(Amount singleTransactionLimit) { @@ -81,8 +92,7 @@ public PermitRestriction singleTransactionLimit(Amount singleTransactionLimit) { /** * Get singleTransactionLimit - * - * @return singleTransactionLimit + * @return singleTransactionLimit */ @JsonProperty(JSON_PROPERTY_SINGLE_TRANSACTION_LIMIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -93,7 +103,7 @@ public Amount getSingleTransactionLimit() { /** * singleTransactionLimit * - * @param singleTransactionLimit + * @param singleTransactionLimit */ @JsonProperty(JSON_PROPERTY_SINGLE_TRANSACTION_LIMIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,11 +112,9 @@ public void setSingleTransactionLimit(Amount singleTransactionLimit) { } /** - * Only a single payment can be made using this permit if set to true, otherwise multiple payments - * are allowed. + * Only a single payment can be made using this permit if set to true, otherwise multiple payments are allowed. * - * @param singleUse Only a single payment can be made using this permit if set to true, otherwise - * multiple payments are allowed. + * @param singleUse Only a single payment can be made using this permit if set to true, otherwise multiple payments are allowed. * @return the current {@code PermitRestriction} instance, allowing for method chaining */ public PermitRestriction singleUse(Boolean singleUse) { @@ -115,11 +123,8 @@ public PermitRestriction singleUse(Boolean singleUse) { } /** - * Only a single payment can be made using this permit if set to true, otherwise multiple payments - * are allowed. - * - * @return singleUse Only a single payment can be made using this permit if set to true, otherwise - * multiple payments are allowed. + * Only a single payment can be made using this permit if set to true, otherwise multiple payments are allowed. + * @return singleUse Only a single payment can be made using this permit if set to true, otherwise multiple payments are allowed. */ @JsonProperty(JSON_PROPERTY_SINGLE_USE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,11 +133,9 @@ public Boolean getSingleUse() { } /** - * Only a single payment can be made using this permit if set to true, otherwise multiple payments - * are allowed. + * Only a single payment can be made using this permit if set to true, otherwise multiple payments are allowed. * - * @param singleUse Only a single payment can be made using this permit if set to true, otherwise - * multiple payments are allowed. + * @param singleUse Only a single payment can be made using this permit if set to true, otherwise multiple payments are allowed. */ @JsonProperty(JSON_PROPERTY_SINGLE_USE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,7 +143,9 @@ public void setSingleUse(Boolean singleUse) { this.singleUse = singleUse; } - /** Return true if this PermitRestriction object is equal to o. */ + /** + * Return true if this PermitRestriction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -150,9 +155,9 @@ public boolean equals(Object o) { return false; } PermitRestriction permitRestriction = (PermitRestriction) o; - return Objects.equals(this.maxAmount, permitRestriction.maxAmount) - && Objects.equals(this.singleTransactionLimit, permitRestriction.singleTransactionLimit) - && Objects.equals(this.singleUse, permitRestriction.singleUse); + return Objects.equals(this.maxAmount, permitRestriction.maxAmount) && + Objects.equals(this.singleTransactionLimit, permitRestriction.singleTransactionLimit) && + Objects.equals(this.singleUse, permitRestriction.singleUse); } @Override @@ -165,16 +170,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PermitRestriction {\n"); sb.append(" maxAmount: ").append(toIndentedString(maxAmount)).append("\n"); - sb.append(" singleTransactionLimit: ") - .append(toIndentedString(singleTransactionLimit)) - .append("\n"); + sb.append(" singleTransactionLimit: ").append(toIndentedString(singleTransactionLimit)).append("\n"); sb.append(" singleUse: ").append(toIndentedString(singleUse)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -183,7 +187,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PermitRestriction given an JSON string * * @param jsonString JSON string @@ -193,12 +197,11 @@ private String toIndentedString(Object o) { public static PermitRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PermitRestriction.class); } - - /** - * Convert an instance of PermitRestriction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PermitRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/PermitResult.java b/src/main/java/com/adyen/model/recurring/PermitResult.java index 69b386e20..afeabab9b 100644 --- a/src/main/java/com/adyen/model/recurring/PermitResult.java +++ b/src/main/java/com/adyen/model/recurring/PermitResult.java @@ -2,23 +2,36 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.recurring; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** PermitResult */ -@JsonPropertyOrder({PermitResult.JSON_PROPERTY_RESULT_KEY, PermitResult.JSON_PROPERTY_TOKEN}) + +/** + * PermitResult + */ +@JsonPropertyOrder({ + PermitResult.JSON_PROPERTY_RESULT_KEY, + PermitResult.JSON_PROPERTY_TOKEN +}) + public class PermitResult { public static final String JSON_PROPERTY_RESULT_KEY = "resultKey"; private String resultKey; @@ -26,7 +39,8 @@ public class PermitResult { public static final String JSON_PROPERTY_TOKEN = "token"; private String token; - public PermitResult() {} + public PermitResult() { + } /** * The key to link permit requests to permit results. @@ -41,7 +55,6 @@ public PermitResult resultKey(String resultKey) { /** * The key to link permit requests to permit results. - * * @return resultKey The key to link permit requests to permit results. */ @JsonProperty(JSON_PROPERTY_RESULT_KEY) @@ -74,7 +87,6 @@ public PermitResult token(String token) { /** * The permit token which is used to make payments by the partner company. - * * @return token The permit token which is used to make payments by the partner company. */ @JsonProperty(JSON_PROPERTY_TOKEN) @@ -94,7 +106,9 @@ public void setToken(String token) { this.token = token; } - /** Return true if this PermitResult object is equal to o. */ + /** + * Return true if this PermitResult object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -104,8 +118,8 @@ public boolean equals(Object o) { return false; } PermitResult permitResult = (PermitResult) o; - return Objects.equals(this.resultKey, permitResult.resultKey) - && Objects.equals(this.token, permitResult.token); + return Objects.equals(this.resultKey, permitResult.resultKey) && + Objects.equals(this.token, permitResult.token); } @Override @@ -124,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PermitResult given an JSON string * * @param jsonString JSON string @@ -143,12 +158,11 @@ private String toIndentedString(Object o) { public static PermitResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PermitResult.class); } - - /** - * Convert an instance of PermitResult to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PermitResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/Recurring.java b/src/main/java/com/adyen/model/recurring/Recurring.java index 858a52e3e..45c390ed7 100644 --- a/src/main/java/com/adyen/model/recurring/Recurring.java +++ b/src/main/java/com/adyen/model/recurring/Recurring.java @@ -2,27 +2,32 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.recurring; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** Recurring */ +/** + * Recurring + */ @JsonPropertyOrder({ Recurring.JSON_PROPERTY_CONTRACT, Recurring.JSON_PROPERTY_RECURRING_DETAIL_NAME, @@ -30,20 +35,13 @@ Recurring.JSON_PROPERTY_RECURRING_FREQUENCY, Recurring.JSON_PROPERTY_TOKEN_SERVICE }) + public class Recurring { /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment - * details can be used to initiate a one-click payment, where the shopper enters the [card - * security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a - * payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). */ public enum ContractEnum { + ONECLICK(String.valueOf("ONECLICK")), RECURRING(String.valueOf("RECURRING")), @@ -55,7 +53,7 @@ public enum ContractEnum { private String value; ContractEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -76,11 +74,7 @@ public static ContractEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ContractEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ContractEnum.values())); + LOG.warning("ContractEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ContractEnum.values())); return null; } } @@ -97,8 +91,11 @@ public static ContractEnum fromValue(String value) { public static final String JSON_PROPERTY_RECURRING_FREQUENCY = "recurringFrequency"; private String recurringFrequency; - /** The name of the token service. */ + /** + * The name of the token service. + */ public enum TokenServiceEnum { + VISATOKENSERVICE(String.valueOf("VISATOKENSERVICE")), MCTOKENSERVICE(String.valueOf("MCTOKENSERVICE")), @@ -112,7 +109,7 @@ public enum TokenServiceEnum { private String value; TokenServiceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -133,11 +130,7 @@ public static TokenServiceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TokenServiceEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TokenServiceEnum.values())); + LOG.warning("TokenServiceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TokenServiceEnum.values())); return null; } } @@ -145,30 +138,13 @@ public static TokenServiceEnum fromValue(String value) { public static final String JSON_PROPERTY_TOKEN_SERVICE = "tokenService"; private TokenServiceEnum tokenService; - public Recurring() {} + public Recurring() { + } /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment - * details can be used to initiate a one-click payment, where the shopper enters the [card - * security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a - * payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). * - * @param contract The type of recurring contract to be used. Possible values: * - * `ONECLICK` – Payment details can be used to initiate a one-click payment, where - * the shopper enters the [card security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make - * a payout](https://docs.adyen.com/online-payments/online-payouts). + * @param contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). * @return the current {@code Recurring} instance, allowing for method chaining */ public Recurring contract(ContractEnum contract) { @@ -177,27 +153,8 @@ public Recurring contract(ContractEnum contract) { } /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment - * details can be used to initiate a one-click payment, where the shopper enters the [card - * security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a - * payout](https://docs.adyen.com/online-payments/online-payouts). - * - * @return contract The type of recurring contract to be used. Possible values: * - * `ONECLICK` – Payment details can be used to initiate a one-click payment, where - * the shopper enters the [card security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make - * a payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * @return contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). */ @JsonProperty(JSON_PROPERTY_CONTRACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -206,27 +163,9 @@ public ContractEnum getContract() { } /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment - * details can be used to initiate a one-click payment, where the shopper enters the [card - * security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a - * payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). * - * @param contract The type of recurring contract to be used. Possible values: * - * `ONECLICK` – Payment details can be used to initiate a one-click payment, where - * the shopper enters the [card security code - * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to - * initiate [card-not-present - * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the - * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make - * a payout](https://docs.adyen.com/online-payments/online-payouts). + * @param contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). */ @JsonProperty(JSON_PROPERTY_CONTRACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -247,7 +186,6 @@ public Recurring recurringDetailName(String recurringDetailName) { /** * A descriptive name for this detail. - * * @return recurringDetailName A descriptive name for this detail. */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_NAME) @@ -270,8 +208,7 @@ public void setRecurringDetailName(String recurringDetailName) { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. * - * @param recurringExpiry Date after which no further authorisations shall be performed. Only for - * 3D Secure 2. + * @param recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. * @return the current {@code Recurring} instance, allowing for method chaining */ public Recurring recurringExpiry(OffsetDateTime recurringExpiry) { @@ -281,9 +218,7 @@ public Recurring recurringExpiry(OffsetDateTime recurringExpiry) { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. - * - * @return recurringExpiry Date after which no further authorisations shall be performed. Only for - * 3D Secure 2. + * @return recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -294,8 +229,7 @@ public OffsetDateTime getRecurringExpiry() { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. * - * @param recurringExpiry Date after which no further authorisations shall be performed. Only for - * 3D Secure 2. + * @param recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -316,7 +250,6 @@ public Recurring recurringFrequency(String recurringFrequency) { /** * Minimum number of days between authorisations. Only for 3D Secure 2. - * * @return recurringFrequency Minimum number of days between authorisations. Only for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY) @@ -349,7 +282,6 @@ public Recurring tokenService(TokenServiceEnum tokenService) { /** * The name of the token service. - * * @return tokenService The name of the token service. */ @JsonProperty(JSON_PROPERTY_TOKEN_SERVICE) @@ -369,7 +301,9 @@ public void setTokenService(TokenServiceEnum tokenService) { this.tokenService = tokenService; } - /** Return true if this Recurring object is equal to o. */ + /** + * Return true if this Recurring object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -379,17 +313,16 @@ public boolean equals(Object o) { return false; } Recurring recurring = (Recurring) o; - return Objects.equals(this.contract, recurring.contract) - && Objects.equals(this.recurringDetailName, recurring.recurringDetailName) - && Objects.equals(this.recurringExpiry, recurring.recurringExpiry) - && Objects.equals(this.recurringFrequency, recurring.recurringFrequency) - && Objects.equals(this.tokenService, recurring.tokenService); + return Objects.equals(this.contract, recurring.contract) && + Objects.equals(this.recurringDetailName, recurring.recurringDetailName) && + Objects.equals(this.recurringExpiry, recurring.recurringExpiry) && + Objects.equals(this.recurringFrequency, recurring.recurringFrequency) && + Objects.equals(this.tokenService, recurring.tokenService); } @Override public int hashCode() { - return Objects.hash( - contract, recurringDetailName, recurringExpiry, recurringFrequency, tokenService); + return Objects.hash(contract, recurringDetailName, recurringExpiry, recurringFrequency, tokenService); } @Override @@ -397,9 +330,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Recurring {\n"); sb.append(" contract: ").append(toIndentedString(contract)).append("\n"); - sb.append(" recurringDetailName: ") - .append(toIndentedString(recurringDetailName)) - .append("\n"); + sb.append(" recurringDetailName: ").append(toIndentedString(recurringDetailName)).append("\n"); sb.append(" recurringExpiry: ").append(toIndentedString(recurringExpiry)).append("\n"); sb.append(" recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n"); sb.append(" tokenService: ").append(toIndentedString(tokenService)).append("\n"); @@ -408,7 +339,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -417,7 +349,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Recurring given an JSON string * * @param jsonString JSON string @@ -427,12 +359,11 @@ private String toIndentedString(Object o) { public static Recurring fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Recurring.class); } - - /** - * Convert an instance of Recurring to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Recurring to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/RecurringDetail.java b/src/main/java/com/adyen/model/recurring/RecurringDetail.java index fa094d7a8..d8aba2432 100644 --- a/src/main/java/com/adyen/model/recurring/RecurringDetail.java +++ b/src/main/java/com/adyen/model/recurring/RecurringDetail.java @@ -2,27 +2,41 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.recurring; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.recurring.Address; +import com.adyen.model.recurring.BankAccount; +import com.adyen.model.recurring.Card; +import com.adyen.model.recurring.Name; +import com.adyen.model.recurring.TokenDetails; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; -import java.util.*; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** RecurringDetail */ +/** + * RecurringDetail + */ @JsonPropertyOrder({ RecurringDetail.JSON_PROPERTY_ADDITIONAL_DATA, RecurringDetail.JSON_PROPERTY_ALIAS, @@ -42,6 +56,7 @@ RecurringDetail.JSON_PROPERTY_TOKEN_DETAILS, RecurringDetail.JSON_PROPERTY_VARIANT }) + public class RecurringDetail { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -94,15 +109,13 @@ public class RecurringDetail { public static final String JSON_PROPERTY_VARIANT = "variant"; private String variant; - public RecurringDetail() {} + public RecurringDetail() { + } /** - * This field contains additional data, which may be returned in a particular response. The - * additionalData object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be returned in a particular response. The additionalData object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be returned in a - * particular response. The additionalData object consists of entries, each of which includes - * the key and value. + * @param additionalData This field contains additional data, which may be returned in a particular response. The additionalData object consists of entries, each of which includes the key and value. * @return the current {@code RecurringDetail} instance, allowing for method chaining */ public RecurringDetail additionalData(Map additionalData) { @@ -119,12 +132,8 @@ public RecurringDetail putAdditionalDataItem(String key, String additionalDataIt } /** - * This field contains additional data, which may be returned in a particular response. The - * additionalData object consists of entries, each of which includes the key and value. - * - * @return additionalData This field contains additional data, which may be returned in a - * particular response. The additionalData object consists of entries, each of which includes - * the key and value. + * This field contains additional data, which may be returned in a particular response. The additionalData object consists of entries, each of which includes the key and value. + * @return additionalData This field contains additional data, which may be returned in a particular response. The additionalData object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -133,12 +142,9 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be returned in a particular response. The - * additionalData object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be returned in a particular response. The additionalData object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be returned in a - * particular response. The additionalData object consists of entries, each of which includes - * the key and value. + * @param additionalData This field contains additional data, which may be returned in a particular response. The additionalData object consists of entries, each of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,11 +153,9 @@ public void setAdditionalData(Map additionalData) { } /** - * The alias of the credit card number. Applies only to recurring contracts storing credit card - * details + * The alias of the credit card number. Applies only to recurring contracts storing credit card details * - * @param alias The alias of the credit card number. Applies only to recurring contracts storing - * credit card details + * @param alias The alias of the credit card number. Applies only to recurring contracts storing credit card details * @return the current {@code RecurringDetail} instance, allowing for method chaining */ public RecurringDetail alias(String alias) { @@ -160,11 +164,8 @@ public RecurringDetail alias(String alias) { } /** - * The alias of the credit card number. Applies only to recurring contracts storing credit card - * details - * - * @return alias The alias of the credit card number. Applies only to recurring contracts storing - * credit card details + * The alias of the credit card number. Applies only to recurring contracts storing credit card details + * @return alias The alias of the credit card number. Applies only to recurring contracts storing credit card details */ @JsonProperty(JSON_PROPERTY_ALIAS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,11 +174,9 @@ public String getAlias() { } /** - * The alias of the credit card number. Applies only to recurring contracts storing credit card - * details + * The alias of the credit card number. Applies only to recurring contracts storing credit card details * - * @param alias The alias of the credit card number. Applies only to recurring contracts storing - * credit card details + * @param alias The alias of the credit card number. Applies only to recurring contracts storing credit card details */ @JsonProperty(JSON_PROPERTY_ALIAS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,11 +185,9 @@ public void setAlias(String alias) { } /** - * The alias type of the credit card number. Applies only to recurring contracts storing credit - * card details. + * The alias type of the credit card number. Applies only to recurring contracts storing credit card details. * - * @param aliasType The alias type of the credit card number. Applies only to recurring contracts - * storing credit card details. + * @param aliasType The alias type of the credit card number. Applies only to recurring contracts storing credit card details. * @return the current {@code RecurringDetail} instance, allowing for method chaining */ public RecurringDetail aliasType(String aliasType) { @@ -199,11 +196,8 @@ public RecurringDetail aliasType(String aliasType) { } /** - * The alias type of the credit card number. Applies only to recurring contracts storing credit - * card details. - * - * @return aliasType The alias type of the credit card number. Applies only to recurring contracts - * storing credit card details. + * The alias type of the credit card number. Applies only to recurring contracts storing credit card details. + * @return aliasType The alias type of the credit card number. Applies only to recurring contracts storing credit card details. */ @JsonProperty(JSON_PROPERTY_ALIAS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -212,11 +206,9 @@ public String getAliasType() { } /** - * The alias type of the credit card number. Applies only to recurring contracts storing credit - * card details. + * The alias type of the credit card number. Applies only to recurring contracts storing credit card details. * - * @param aliasType The alias type of the credit card number. Applies only to recurring contracts - * storing credit card details. + * @param aliasType The alias type of the credit card number. Applies only to recurring contracts storing credit card details. */ @JsonProperty(JSON_PROPERTY_ALIAS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -227,7 +219,7 @@ public void setAliasType(String aliasType) { /** * bank * - * @param bank + * @param bank * @return the current {@code RecurringDetail} instance, allowing for method chaining */ public RecurringDetail bank(BankAccount bank) { @@ -237,8 +229,7 @@ public RecurringDetail bank(BankAccount bank) { /** * Get bank - * - * @return bank + * @return bank */ @JsonProperty(JSON_PROPERTY_BANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -249,7 +240,7 @@ public BankAccount getBank() { /** * bank * - * @param bank + * @param bank */ @JsonProperty(JSON_PROPERTY_BANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -260,7 +251,7 @@ public void setBank(BankAccount bank) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code RecurringDetail} instance, allowing for method chaining */ public RecurringDetail billingAddress(Address billingAddress) { @@ -270,8 +261,7 @@ public RecurringDetail billingAddress(Address billingAddress) { /** * Get billingAddress - * - * @return billingAddress + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -282,7 +272,7 @@ public Address getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -293,7 +283,7 @@ public void setBillingAddress(Address billingAddress) { /** * card * - * @param card + * @param card * @return the current {@code RecurringDetail} instance, allowing for method chaining */ public RecurringDetail card(Card card) { @@ -303,8 +293,7 @@ public RecurringDetail card(Card card) { /** * Get card - * - * @return card + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -315,7 +304,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -344,7 +333,6 @@ public RecurringDetail addContractTypesItem(String contractTypesItem) { /** * Types of recurring contracts. - * * @return contractTypes Types of recurring contracts. */ @JsonProperty(JSON_PROPERTY_CONTRACT_TYPES) @@ -377,7 +365,6 @@ public RecurringDetail creationDate(OffsetDateTime creationDate) { /** * The date when the recurring details were created. - * * @return creationDate The date when the recurring details were created. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @@ -400,8 +387,7 @@ public void setCreationDate(OffsetDateTime creationDate) { /** * The `pspReference` of the first recurring payment that created the recurring detail. * - * @param firstPspReference The `pspReference` of the first recurring payment that - * created the recurring detail. + * @param firstPspReference The `pspReference` of the first recurring payment that created the recurring detail. * @return the current {@code RecurringDetail} instance, allowing for method chaining */ public RecurringDetail firstPspReference(String firstPspReference) { @@ -411,9 +397,7 @@ public RecurringDetail firstPspReference(String firstPspReference) { /** * The `pspReference` of the first recurring payment that created the recurring detail. - * - * @return firstPspReference The `pspReference` of the first recurring payment that - * created the recurring detail. + * @return firstPspReference The `pspReference` of the first recurring payment that created the recurring detail. */ @JsonProperty(JSON_PROPERTY_FIRST_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -424,8 +408,7 @@ public String getFirstPspReference() { /** * The `pspReference` of the first recurring payment that created the recurring detail. * - * @param firstPspReference The `pspReference` of the first recurring payment that - * created the recurring detail. + * @param firstPspReference The `pspReference` of the first recurring payment that created the recurring detail. */ @JsonProperty(JSON_PROPERTY_FIRST_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -446,7 +429,6 @@ public RecurringDetail name(String name) { /** * An optional descriptive name for this recurring detail. - * * @return name An optional descriptive name for this recurring detail. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -467,13 +449,9 @@ public void setName(String name) { } /** - * Returned in the response if you are not tokenizing with Adyen and are using the - * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either - * the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. * - * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are - * using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This - * contains either the Mastercard Trace ID or the Visa Transaction ID. + * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. * @return the current {@code RecurringDetail} instance, allowing for method chaining */ public RecurringDetail networkTxReference(String networkTxReference) { @@ -482,13 +460,8 @@ public RecurringDetail networkTxReference(String networkTxReference) { } /** - * Returned in the response if you are not tokenizing with Adyen and are using the - * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either - * the Mastercard Trace ID or the Visa Transaction ID. - * - * @return networkTxReference Returned in the response if you are not tokenizing with Adyen and - * are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This - * contains either the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * @return networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. */ @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -497,13 +470,9 @@ public String getNetworkTxReference() { } /** - * Returned in the response if you are not tokenizing with Adyen and are using the - * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either - * the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. * - * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are - * using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This - * contains either the Mastercard Trace ID or the Visa Transaction ID. + * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. */ @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -512,13 +481,9 @@ public void setNetworkTxReference(String networkTxReference) { } /** - * The type or sub-brand of a payment method used, e.g. Visa Debit, Visa Corporate, etc. For more - * information, refer to - * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). + * The type or sub-brand of a payment method used, e.g. Visa Debit, Visa Corporate, etc. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). * - * @param paymentMethodVariant The type or sub-brand of a payment method used, e.g. Visa Debit, - * Visa Corporate, etc. For more information, refer to - * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). + * @param paymentMethodVariant The type or sub-brand of a payment method used, e.g. Visa Debit, Visa Corporate, etc. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). * @return the current {@code RecurringDetail} instance, allowing for method chaining */ public RecurringDetail paymentMethodVariant(String paymentMethodVariant) { @@ -527,13 +492,8 @@ public RecurringDetail paymentMethodVariant(String paymentMethodVariant) { } /** - * The type or sub-brand of a payment method used, e.g. Visa Debit, Visa Corporate, etc. For more - * information, refer to - * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). - * - * @return paymentMethodVariant The type or sub-brand of a payment method used, e.g. Visa Debit, - * Visa Corporate, etc. For more information, refer to - * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). + * The type or sub-brand of a payment method used, e.g. Visa Debit, Visa Corporate, etc. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). + * @return paymentMethodVariant The type or sub-brand of a payment method used, e.g. Visa Debit, Visa Corporate, etc. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -542,13 +502,9 @@ public String getPaymentMethodVariant() { } /** - * The type or sub-brand of a payment method used, e.g. Visa Debit, Visa Corporate, etc. For more - * information, refer to - * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). + * The type or sub-brand of a payment method used, e.g. Visa Debit, Visa Corporate, etc. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). * - * @param paymentMethodVariant The type or sub-brand of a payment method used, e.g. Visa Debit, - * Visa Corporate, etc. For more information, refer to - * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). + * @param paymentMethodVariant The type or sub-brand of a payment method used, e.g. Visa Debit, Visa Corporate, etc. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -569,7 +525,6 @@ public RecurringDetail recurringDetailReference(String recurringDetailReference) /** * The reference that uniquely identifies the recurring detail. - * * @return recurringDetailReference The reference that uniquely identifies the recurring detail. */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -592,7 +547,7 @@ public void setRecurringDetailReference(String recurringDetailReference) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code RecurringDetail} instance, allowing for method chaining */ public RecurringDetail shopperName(Name shopperName) { @@ -602,8 +557,7 @@ public RecurringDetail shopperName(Name shopperName) { /** * Get shopperName - * - * @return shopperName + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -614,7 +568,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -625,8 +579,7 @@ public void setShopperName(Name shopperName) { /** * A shopper's social security number (only in countries where it is legal to collect). * - * @param socialSecurityNumber A shopper's social security number (only in countries where it - * is legal to collect). + * @param socialSecurityNumber A shopper's social security number (only in countries where it is legal to collect). * @return the current {@code RecurringDetail} instance, allowing for method chaining */ public RecurringDetail socialSecurityNumber(String socialSecurityNumber) { @@ -636,9 +589,7 @@ public RecurringDetail socialSecurityNumber(String socialSecurityNumber) { /** * A shopper's social security number (only in countries where it is legal to collect). - * - * @return socialSecurityNumber A shopper's social security number (only in countries where it - * is legal to collect). + * @return socialSecurityNumber A shopper's social security number (only in countries where it is legal to collect). */ @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -649,8 +600,7 @@ public String getSocialSecurityNumber() { /** * A shopper's social security number (only in countries where it is legal to collect). * - * @param socialSecurityNumber A shopper's social security number (only in countries where it - * is legal to collect). + * @param socialSecurityNumber A shopper's social security number (only in countries where it is legal to collect). */ @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -661,7 +611,7 @@ public void setSocialSecurityNumber(String socialSecurityNumber) { /** * tokenDetails * - * @param tokenDetails + * @param tokenDetails * @return the current {@code RecurringDetail} instance, allowing for method chaining */ public RecurringDetail tokenDetails(TokenDetails tokenDetails) { @@ -671,8 +621,7 @@ public RecurringDetail tokenDetails(TokenDetails tokenDetails) { /** * Get tokenDetails - * - * @return tokenDetails + * @return tokenDetails */ @JsonProperty(JSON_PROPERTY_TOKEN_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -683,7 +632,7 @@ public TokenDetails getTokenDetails() { /** * tokenDetails * - * @param tokenDetails + * @param tokenDetails */ @JsonProperty(JSON_PROPERTY_TOKEN_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -692,11 +641,9 @@ public void setTokenDetails(TokenDetails tokenDetails) { } /** - * The payment method, such as “mc\", \"visa\", \"ideal\", - * \"paypal\". + * The payment method, such as “mc\", \"visa\", \"ideal\", \"paypal\". * - * @param variant The payment method, such as “mc\", \"visa\", \"ideal\", - * \"paypal\". + * @param variant The payment method, such as “mc\", \"visa\", \"ideal\", \"paypal\". * @return the current {@code RecurringDetail} instance, allowing for method chaining */ public RecurringDetail variant(String variant) { @@ -705,11 +652,8 @@ public RecurringDetail variant(String variant) { } /** - * The payment method, such as “mc\", \"visa\", \"ideal\", - * \"paypal\". - * - * @return variant The payment method, such as “mc\", \"visa\", - * \"ideal\", \"paypal\". + * The payment method, such as “mc\", \"visa\", \"ideal\", \"paypal\". + * @return variant The payment method, such as “mc\", \"visa\", \"ideal\", \"paypal\". */ @JsonProperty(JSON_PROPERTY_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -718,11 +662,9 @@ public String getVariant() { } /** - * The payment method, such as “mc\", \"visa\", \"ideal\", - * \"paypal\". + * The payment method, such as “mc\", \"visa\", \"ideal\", \"paypal\". * - * @param variant The payment method, such as “mc\", \"visa\", \"ideal\", - * \"paypal\". + * @param variant The payment method, such as “mc\", \"visa\", \"ideal\", \"paypal\". */ @JsonProperty(JSON_PROPERTY_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -730,7 +672,9 @@ public void setVariant(String variant) { this.variant = variant; } - /** Return true if this RecurringDetail object is equal to o. */ + /** + * Return true if this RecurringDetail object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -740,45 +684,28 @@ public boolean equals(Object o) { return false; } RecurringDetail recurringDetail = (RecurringDetail) o; - return Objects.equals(this.additionalData, recurringDetail.additionalData) - && Objects.equals(this.alias, recurringDetail.alias) - && Objects.equals(this.aliasType, recurringDetail.aliasType) - && Objects.equals(this.bank, recurringDetail.bank) - && Objects.equals(this.billingAddress, recurringDetail.billingAddress) - && Objects.equals(this.card, recurringDetail.card) - && Objects.equals(this.contractTypes, recurringDetail.contractTypes) - && Objects.equals(this.creationDate, recurringDetail.creationDate) - && Objects.equals(this.firstPspReference, recurringDetail.firstPspReference) - && Objects.equals(this.name, recurringDetail.name) - && Objects.equals(this.networkTxReference, recurringDetail.networkTxReference) - && Objects.equals(this.paymentMethodVariant, recurringDetail.paymentMethodVariant) - && Objects.equals(this.recurringDetailReference, recurringDetail.recurringDetailReference) - && Objects.equals(this.shopperName, recurringDetail.shopperName) - && Objects.equals(this.socialSecurityNumber, recurringDetail.socialSecurityNumber) - && Objects.equals(this.tokenDetails, recurringDetail.tokenDetails) - && Objects.equals(this.variant, recurringDetail.variant); + return Objects.equals(this.additionalData, recurringDetail.additionalData) && + Objects.equals(this.alias, recurringDetail.alias) && + Objects.equals(this.aliasType, recurringDetail.aliasType) && + Objects.equals(this.bank, recurringDetail.bank) && + Objects.equals(this.billingAddress, recurringDetail.billingAddress) && + Objects.equals(this.card, recurringDetail.card) && + Objects.equals(this.contractTypes, recurringDetail.contractTypes) && + Objects.equals(this.creationDate, recurringDetail.creationDate) && + Objects.equals(this.firstPspReference, recurringDetail.firstPspReference) && + Objects.equals(this.name, recurringDetail.name) && + Objects.equals(this.networkTxReference, recurringDetail.networkTxReference) && + Objects.equals(this.paymentMethodVariant, recurringDetail.paymentMethodVariant) && + Objects.equals(this.recurringDetailReference, recurringDetail.recurringDetailReference) && + Objects.equals(this.shopperName, recurringDetail.shopperName) && + Objects.equals(this.socialSecurityNumber, recurringDetail.socialSecurityNumber) && + Objects.equals(this.tokenDetails, recurringDetail.tokenDetails) && + Objects.equals(this.variant, recurringDetail.variant); } @Override public int hashCode() { - return Objects.hash( - additionalData, - alias, - aliasType, - bank, - billingAddress, - card, - contractTypes, - creationDate, - firstPspReference, - name, - networkTxReference, - paymentMethodVariant, - recurringDetailReference, - shopperName, - socialSecurityNumber, - tokenDetails, - variant); + return Objects.hash(additionalData, alias, aliasType, bank, billingAddress, card, contractTypes, creationDate, firstPspReference, name, networkTxReference, paymentMethodVariant, recurringDetailReference, shopperName, socialSecurityNumber, tokenDetails, variant); } @Override @@ -796,16 +723,10 @@ public String toString() { sb.append(" firstPspReference: ").append(toIndentedString(firstPspReference)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" networkTxReference: ").append(toIndentedString(networkTxReference)).append("\n"); - sb.append(" paymentMethodVariant: ") - .append(toIndentedString(paymentMethodVariant)) - .append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); + sb.append(" paymentMethodVariant: ").append(toIndentedString(paymentMethodVariant)).append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); - sb.append(" socialSecurityNumber: ") - .append(toIndentedString(socialSecurityNumber)) - .append("\n"); + sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); sb.append(" tokenDetails: ").append(toIndentedString(tokenDetails)).append("\n"); sb.append(" variant: ").append(toIndentedString(variant)).append("\n"); sb.append("}"); @@ -813,7 +734,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -822,7 +744,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RecurringDetail given an JSON string * * @param jsonString JSON string @@ -832,12 +754,11 @@ private String toIndentedString(Object o) { public static RecurringDetail fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RecurringDetail.class); } - - /** - * Convert an instance of RecurringDetail to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RecurringDetail to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/RecurringDetailWrapper.java b/src/main/java/com/adyen/model/recurring/RecurringDetailWrapper.java index 9bd59e10e..4db100fa0 100644 --- a/src/main/java/com/adyen/model/recurring/RecurringDetailWrapper.java +++ b/src/main/java/com/adyen/model/recurring/RecurringDetailWrapper.java @@ -2,33 +2,47 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.recurring; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.recurring.RecurringDetail; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** RecurringDetailWrapper */ -@JsonPropertyOrder({RecurringDetailWrapper.JSON_PROPERTY_RECURRING_DETAIL}) + +/** + * RecurringDetailWrapper + */ +@JsonPropertyOrder({ + RecurringDetailWrapper.JSON_PROPERTY_RECURRING_DETAIL +}) + public class RecurringDetailWrapper { public static final String JSON_PROPERTY_RECURRING_DETAIL = "RecurringDetail"; private RecurringDetail recurringDetail; - public RecurringDetailWrapper() {} + public RecurringDetailWrapper() { + } /** * recurringDetail * - * @param recurringDetail + * @param recurringDetail * @return the current {@code RecurringDetailWrapper} instance, allowing for method chaining */ public RecurringDetailWrapper recurringDetail(RecurringDetail recurringDetail) { @@ -38,8 +52,7 @@ public RecurringDetailWrapper recurringDetail(RecurringDetail recurringDetail) { /** * Get recurringDetail - * - * @return recurringDetail + * @return recurringDetail */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -50,7 +63,7 @@ public RecurringDetail getRecurringDetail() { /** * recurringDetail * - * @param recurringDetail + * @param recurringDetail */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,7 +71,9 @@ public void setRecurringDetail(RecurringDetail recurringDetail) { this.recurringDetail = recurringDetail; } - /** Return true if this RecurringDetailWrapper object is equal to o. */ + /** + * Return true if this RecurringDetailWrapper object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,7 +101,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,23 +111,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RecurringDetailWrapper given an JSON string * * @param jsonString JSON string * @return An instance of RecurringDetailWrapper - * @throws JsonProcessingException if the JSON string is invalid with respect to - * RecurringDetailWrapper + * @throws JsonProcessingException if the JSON string is invalid with respect to RecurringDetailWrapper */ public static RecurringDetailWrapper fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RecurringDetailWrapper.class); } - - /** - * Convert an instance of RecurringDetailWrapper to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RecurringDetailWrapper to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/RecurringDetailsRequest.java b/src/main/java/com/adyen/model/recurring/RecurringDetailsRequest.java index cc4748c33..b7977be88 100644 --- a/src/main/java/com/adyen/model/recurring/RecurringDetailsRequest.java +++ b/src/main/java/com/adyen/model/recurring/RecurringDetailsRequest.java @@ -2,27 +2,38 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.recurring; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.recurring.Recurring; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** RecurringDetailsRequest */ + +/** + * RecurringDetailsRequest + */ @JsonPropertyOrder({ RecurringDetailsRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, RecurringDetailsRequest.JSON_PROPERTY_RECURRING, RecurringDetailsRequest.JSON_PROPERTY_SHOPPER_REFERENCE }) + public class RecurringDetailsRequest { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; @@ -33,13 +44,13 @@ public class RecurringDetailsRequest { public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference"; private String shopperReference; - public RecurringDetailsRequest() {} + public RecurringDetailsRequest() { + } /** * The merchant account identifier you want to process the (transaction) request with. * - * @param merchantAccount The merchant account identifier you want to process the (transaction) - * request with. + * @param merchantAccount The merchant account identifier you want to process the (transaction) request with. * @return the current {@code RecurringDetailsRequest} instance, allowing for method chaining */ public RecurringDetailsRequest merchantAccount(String merchantAccount) { @@ -49,9 +60,7 @@ public RecurringDetailsRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier you want to process the (transaction) request with. - * - * @return merchantAccount The merchant account identifier you want to process the (transaction) - * request with. + * @return merchantAccount The merchant account identifier you want to process the (transaction) request with. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -62,8 +71,7 @@ public String getMerchantAccount() { /** * The merchant account identifier you want to process the (transaction) request with. * - * @param merchantAccount The merchant account identifier you want to process the (transaction) - * request with. + * @param merchantAccount The merchant account identifier you want to process the (transaction) request with. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -74,7 +82,7 @@ public void setMerchantAccount(String merchantAccount) { /** * recurring * - * @param recurring + * @param recurring * @return the current {@code RecurringDetailsRequest} instance, allowing for method chaining */ public RecurringDetailsRequest recurring(Recurring recurring) { @@ -84,8 +92,7 @@ public RecurringDetailsRequest recurring(Recurring recurring) { /** * Get recurring - * - * @return recurring + * @return recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,7 +103,7 @@ public Recurring getRecurring() { /** * recurring * - * @param recurring + * @param recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,8 +114,7 @@ public void setRecurring(Recurring recurring) { /** * The reference you use to uniquely identify the shopper (e.g. user ID or account ID). * - * @param shopperReference The reference you use to uniquely identify the shopper (e.g. user ID or - * account ID). + * @param shopperReference The reference you use to uniquely identify the shopper (e.g. user ID or account ID). * @return the current {@code RecurringDetailsRequest} instance, allowing for method chaining */ public RecurringDetailsRequest shopperReference(String shopperReference) { @@ -118,9 +124,7 @@ public RecurringDetailsRequest shopperReference(String shopperReference) { /** * The reference you use to uniquely identify the shopper (e.g. user ID or account ID). - * - * @return shopperReference The reference you use to uniquely identify the shopper (e.g. user ID - * or account ID). + * @return shopperReference The reference you use to uniquely identify the shopper (e.g. user ID or account ID). */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -131,8 +135,7 @@ public String getShopperReference() { /** * The reference you use to uniquely identify the shopper (e.g. user ID or account ID). * - * @param shopperReference The reference you use to uniquely identify the shopper (e.g. user ID or - * account ID). + * @param shopperReference The reference you use to uniquely identify the shopper (e.g. user ID or account ID). */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,7 +143,9 @@ public void setShopperReference(String shopperReference) { this.shopperReference = shopperReference; } - /** Return true if this RecurringDetailsRequest object is equal to o. */ + /** + * Return true if this RecurringDetailsRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -150,9 +155,9 @@ public boolean equals(Object o) { return false; } RecurringDetailsRequest recurringDetailsRequest = (RecurringDetailsRequest) o; - return Objects.equals(this.merchantAccount, recurringDetailsRequest.merchantAccount) - && Objects.equals(this.recurring, recurringDetailsRequest.recurring) - && Objects.equals(this.shopperReference, recurringDetailsRequest.shopperReference); + return Objects.equals(this.merchantAccount, recurringDetailsRequest.merchantAccount) && + Objects.equals(this.recurring, recurringDetailsRequest.recurring) && + Objects.equals(this.shopperReference, recurringDetailsRequest.shopperReference); } @Override @@ -172,7 +177,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -181,23 +187,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RecurringDetailsRequest given an JSON string * * @param jsonString JSON string * @return An instance of RecurringDetailsRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * RecurringDetailsRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to RecurringDetailsRequest */ public static RecurringDetailsRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RecurringDetailsRequest.class); } - - /** - * Convert an instance of RecurringDetailsRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RecurringDetailsRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/RecurringDetailsResult.java b/src/main/java/com/adyen/model/recurring/RecurringDetailsResult.java index cb9ba821c..d9044dbe7 100644 --- a/src/main/java/com/adyen/model/recurring/RecurringDetailsResult.java +++ b/src/main/java/com/adyen/model/recurring/RecurringDetailsResult.java @@ -2,31 +2,42 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.recurring; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.recurring.RecurringDetailWrapper; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; -import java.util.*; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** RecurringDetailsResult */ +/** + * RecurringDetailsResult + */ @JsonPropertyOrder({ RecurringDetailsResult.JSON_PROPERTY_CREATION_DATE, RecurringDetailsResult.JSON_PROPERTY_DETAILS, RecurringDetailsResult.JSON_PROPERTY_LAST_KNOWN_SHOPPER_EMAIL, RecurringDetailsResult.JSON_PROPERTY_SHOPPER_REFERENCE }) + public class RecurringDetailsResult { public static final String JSON_PROPERTY_CREATION_DATE = "creationDate"; private OffsetDateTime creationDate; @@ -40,7 +51,8 @@ public class RecurringDetailsResult { public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference"; private String shopperReference; - public RecurringDetailsResult() {} + public RecurringDetailsResult() { + } /** * The date when the recurring details were created. @@ -55,7 +67,6 @@ public RecurringDetailsResult creationDate(OffsetDateTime creationDate) { /** * The date when the recurring details were created. - * * @return creationDate The date when the recurring details were created. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @@ -96,7 +107,6 @@ public RecurringDetailsResult addDetailsItem(RecurringDetailWrapper detailsItem) /** * Payment details stored for recurring payments. - * * @return details Payment details stored for recurring payments. */ @JsonProperty(JSON_PROPERTY_DETAILS) @@ -129,7 +139,6 @@ public RecurringDetailsResult lastKnownShopperEmail(String lastKnownShopperEmail /** * The most recent email for this shopper (if available). - * * @return lastKnownShopperEmail The most recent email for this shopper (if available). */ @JsonProperty(JSON_PROPERTY_LAST_KNOWN_SHOPPER_EMAIL) @@ -152,8 +161,7 @@ public void setLastKnownShopperEmail(String lastKnownShopperEmail) { /** * The reference you use to uniquely identify the shopper (e.g. user ID or account ID). * - * @param shopperReference The reference you use to uniquely identify the shopper (e.g. user ID or - * account ID). + * @param shopperReference The reference you use to uniquely identify the shopper (e.g. user ID or account ID). * @return the current {@code RecurringDetailsResult} instance, allowing for method chaining */ public RecurringDetailsResult shopperReference(String shopperReference) { @@ -163,9 +171,7 @@ public RecurringDetailsResult shopperReference(String shopperReference) { /** * The reference you use to uniquely identify the shopper (e.g. user ID or account ID). - * - * @return shopperReference The reference you use to uniquely identify the shopper (e.g. user ID - * or account ID). + * @return shopperReference The reference you use to uniquely identify the shopper (e.g. user ID or account ID). */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,8 +182,7 @@ public String getShopperReference() { /** * The reference you use to uniquely identify the shopper (e.g. user ID or account ID). * - * @param shopperReference The reference you use to uniquely identify the shopper (e.g. user ID or - * account ID). + * @param shopperReference The reference you use to uniquely identify the shopper (e.g. user ID or account ID). */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,7 +190,9 @@ public void setShopperReference(String shopperReference) { this.shopperReference = shopperReference; } - /** Return true if this RecurringDetailsResult object is equal to o. */ + /** + * Return true if this RecurringDetailsResult object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -195,10 +202,10 @@ public boolean equals(Object o) { return false; } RecurringDetailsResult recurringDetailsResult = (RecurringDetailsResult) o; - return Objects.equals(this.creationDate, recurringDetailsResult.creationDate) - && Objects.equals(this.details, recurringDetailsResult.details) - && Objects.equals(this.lastKnownShopperEmail, recurringDetailsResult.lastKnownShopperEmail) - && Objects.equals(this.shopperReference, recurringDetailsResult.shopperReference); + return Objects.equals(this.creationDate, recurringDetailsResult.creationDate) && + Objects.equals(this.details, recurringDetailsResult.details) && + Objects.equals(this.lastKnownShopperEmail, recurringDetailsResult.lastKnownShopperEmail) && + Objects.equals(this.shopperReference, recurringDetailsResult.shopperReference); } @Override @@ -212,16 +219,15 @@ public String toString() { sb.append("class RecurringDetailsResult {\n"); sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n"); sb.append(" details: ").append(toIndentedString(details)).append("\n"); - sb.append(" lastKnownShopperEmail: ") - .append(toIndentedString(lastKnownShopperEmail)) - .append("\n"); + sb.append(" lastKnownShopperEmail: ").append(toIndentedString(lastKnownShopperEmail)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -230,23 +236,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RecurringDetailsResult given an JSON string * * @param jsonString JSON string * @return An instance of RecurringDetailsResult - * @throws JsonProcessingException if the JSON string is invalid with respect to - * RecurringDetailsResult + * @throws JsonProcessingException if the JSON string is invalid with respect to RecurringDetailsResult */ public static RecurringDetailsResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RecurringDetailsResult.class); } - - /** - * Convert an instance of RecurringDetailsResult to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RecurringDetailsResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/ScheduleAccountUpdaterRequest.java b/src/main/java/com/adyen/model/recurring/ScheduleAccountUpdaterRequest.java index 2104dd2d1..20f23380a 100644 --- a/src/main/java/com/adyen/model/recurring/ScheduleAccountUpdaterRequest.java +++ b/src/main/java/com/adyen/model/recurring/ScheduleAccountUpdaterRequest.java @@ -2,24 +2,34 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.recurring; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.recurring.Card; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ScheduleAccountUpdaterRequest */ +/** + * ScheduleAccountUpdaterRequest + */ @JsonPropertyOrder({ ScheduleAccountUpdaterRequest.JSON_PROPERTY_ADDITIONAL_DATA, ScheduleAccountUpdaterRequest.JSON_PROPERTY_CARD, @@ -28,6 +38,7 @@ ScheduleAccountUpdaterRequest.JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE, ScheduleAccountUpdaterRequest.JSON_PROPERTY_SHOPPER_REFERENCE }) + public class ScheduleAccountUpdaterRequest { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -41,30 +52,27 @@ public class ScheduleAccountUpdaterRequest { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = - "selectedRecurringDetailReference"; + public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = "selectedRecurringDetailReference"; private String selectedRecurringDetailReference; public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference"; private String shopperReference; - public ScheduleAccountUpdaterRequest() {} + public ScheduleAccountUpdaterRequest() { + } /** * This field contains additional data, which may be required for a particular request. * - * @param additionalData This field contains additional data, which may be required for a - * particular request. - * @return the current {@code ScheduleAccountUpdaterRequest} instance, allowing for method - * chaining + * @param additionalData This field contains additional data, which may be required for a particular request. + * @return the current {@code ScheduleAccountUpdaterRequest} instance, allowing for method chaining */ public ScheduleAccountUpdaterRequest additionalData(Map additionalData) { this.additionalData = additionalData; return this; } - public ScheduleAccountUpdaterRequest putAdditionalDataItem( - String key, String additionalDataItem) { + public ScheduleAccountUpdaterRequest putAdditionalDataItem(String key, String additionalDataItem) { if (this.additionalData == null) { this.additionalData = new HashMap<>(); } @@ -74,9 +82,7 @@ public ScheduleAccountUpdaterRequest putAdditionalDataItem( /** * This field contains additional data, which may be required for a particular request. - * - * @return additionalData This field contains additional data, which may be required for a - * particular request. + * @return additionalData This field contains additional data, which may be required for a particular request. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,8 +93,7 @@ public Map getAdditionalData() { /** * This field contains additional data, which may be required for a particular request. * - * @param additionalData This field contains additional data, which may be required for a - * particular request. + * @param additionalData This field contains additional data, which may be required for a particular request. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,9 +104,8 @@ public void setAdditionalData(Map additionalData) { /** * card * - * @param card - * @return the current {@code ScheduleAccountUpdaterRequest} instance, allowing for method - * chaining + * @param card + * @return the current {@code ScheduleAccountUpdaterRequest} instance, allowing for method chaining */ public ScheduleAccountUpdaterRequest card(Card card) { this.card = card; @@ -110,8 +114,7 @@ public ScheduleAccountUpdaterRequest card(Card card) { /** * Get card - * - * @return card + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -122,7 +125,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -134,8 +137,7 @@ public void setCard(Card card) { * Account of the merchant. * * @param merchantAccount Account of the merchant. - * @return the current {@code ScheduleAccountUpdaterRequest} instance, allowing for method - * chaining + * @return the current {@code ScheduleAccountUpdaterRequest} instance, allowing for method chaining */ public ScheduleAccountUpdaterRequest merchantAccount(String merchantAccount) { this.merchantAccount = merchantAccount; @@ -144,7 +146,6 @@ public ScheduleAccountUpdaterRequest merchantAccount(String merchantAccount) { /** * Account of the merchant. - * * @return merchantAccount Account of the merchant. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -168,8 +169,7 @@ public void setMerchantAccount(String merchantAccount) { * A reference that merchants can apply for the call. * * @param reference A reference that merchants can apply for the call. - * @return the current {@code ScheduleAccountUpdaterRequest} instance, allowing for method - * chaining + * @return the current {@code ScheduleAccountUpdaterRequest} instance, allowing for method chaining */ public ScheduleAccountUpdaterRequest reference(String reference) { this.reference = reference; @@ -178,7 +178,6 @@ public ScheduleAccountUpdaterRequest reference(String reference) { /** * A reference that merchants can apply for the call. - * * @return reference A reference that merchants can apply for the call. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -199,24 +198,19 @@ public void setReference(String reference) { } /** - * The selected detail recurring reference. Optional if `card` is provided. + * The selected detail recurring reference. Optional if `card` is provided. * - * @param selectedRecurringDetailReference The selected detail recurring reference. Optional if - * `card` is provided. - * @return the current {@code ScheduleAccountUpdaterRequest} instance, allowing for method - * chaining + * @param selectedRecurringDetailReference The selected detail recurring reference. Optional if `card` is provided. + * @return the current {@code ScheduleAccountUpdaterRequest} instance, allowing for method chaining */ - public ScheduleAccountUpdaterRequest selectedRecurringDetailReference( - String selectedRecurringDetailReference) { + public ScheduleAccountUpdaterRequest selectedRecurringDetailReference(String selectedRecurringDetailReference) { this.selectedRecurringDetailReference = selectedRecurringDetailReference; return this; } /** - * The selected detail recurring reference. Optional if `card` is provided. - * - * @return selectedRecurringDetailReference The selected detail recurring reference. Optional if - * `card` is provided. + * The selected detail recurring reference. Optional if `card` is provided. + * @return selectedRecurringDetailReference The selected detail recurring reference. Optional if `card` is provided. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -225,10 +219,9 @@ public String getSelectedRecurringDetailReference() { } /** - * The selected detail recurring reference. Optional if `card` is provided. + * The selected detail recurring reference. Optional if `card` is provided. * - * @param selectedRecurringDetailReference The selected detail recurring reference. Optional if - * `card` is provided. + * @param selectedRecurringDetailReference The selected detail recurring reference. Optional if `card` is provided. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,13 +230,10 @@ public void setSelectedRecurringDetailReference(String selectedRecurringDetailRe } /** - * The reference of the shopper that owns the recurring contract. Optional if `card` is - * provided. + * The reference of the shopper that owns the recurring contract. Optional if `card` is provided. * - * @param shopperReference The reference of the shopper that owns the recurring contract. Optional - * if `card` is provided. - * @return the current {@code ScheduleAccountUpdaterRequest} instance, allowing for method - * chaining + * @param shopperReference The reference of the shopper that owns the recurring contract. Optional if `card` is provided. + * @return the current {@code ScheduleAccountUpdaterRequest} instance, allowing for method chaining */ public ScheduleAccountUpdaterRequest shopperReference(String shopperReference) { this.shopperReference = shopperReference; @@ -251,11 +241,8 @@ public ScheduleAccountUpdaterRequest shopperReference(String shopperReference) { } /** - * The reference of the shopper that owns the recurring contract. Optional if `card` is - * provided. - * - * @return shopperReference The reference of the shopper that owns the recurring contract. - * Optional if `card` is provided. + * The reference of the shopper that owns the recurring contract. Optional if `card` is provided. + * @return shopperReference The reference of the shopper that owns the recurring contract. Optional if `card` is provided. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -264,11 +251,9 @@ public String getShopperReference() { } /** - * The reference of the shopper that owns the recurring contract. Optional if `card` is - * provided. + * The reference of the shopper that owns the recurring contract. Optional if `card` is provided. * - * @param shopperReference The reference of the shopper that owns the recurring contract. Optional - * if `card` is provided. + * @param shopperReference The reference of the shopper that owns the recurring contract. Optional if `card` is provided. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -276,7 +261,9 @@ public void setShopperReference(String shopperReference) { this.shopperReference = shopperReference; } - /** Return true if this ScheduleAccountUpdaterRequest object is equal to o. */ + /** + * Return true if this ScheduleAccountUpdaterRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -286,25 +273,17 @@ public boolean equals(Object o) { return false; } ScheduleAccountUpdaterRequest scheduleAccountUpdaterRequest = (ScheduleAccountUpdaterRequest) o; - return Objects.equals(this.additionalData, scheduleAccountUpdaterRequest.additionalData) - && Objects.equals(this.card, scheduleAccountUpdaterRequest.card) - && Objects.equals(this.merchantAccount, scheduleAccountUpdaterRequest.merchantAccount) - && Objects.equals(this.reference, scheduleAccountUpdaterRequest.reference) - && Objects.equals( - this.selectedRecurringDetailReference, - scheduleAccountUpdaterRequest.selectedRecurringDetailReference) - && Objects.equals(this.shopperReference, scheduleAccountUpdaterRequest.shopperReference); + return Objects.equals(this.additionalData, scheduleAccountUpdaterRequest.additionalData) && + Objects.equals(this.card, scheduleAccountUpdaterRequest.card) && + Objects.equals(this.merchantAccount, scheduleAccountUpdaterRequest.merchantAccount) && + Objects.equals(this.reference, scheduleAccountUpdaterRequest.reference) && + Objects.equals(this.selectedRecurringDetailReference, scheduleAccountUpdaterRequest.selectedRecurringDetailReference) && + Objects.equals(this.shopperReference, scheduleAccountUpdaterRequest.shopperReference); } @Override public int hashCode() { - return Objects.hash( - additionalData, - card, - merchantAccount, - reference, - selectedRecurringDetailReference, - shopperReference); + return Objects.hash(additionalData, card, merchantAccount, reference, selectedRecurringDetailReference, shopperReference); } @Override @@ -315,16 +294,15 @@ public String toString() { sb.append(" card: ").append(toIndentedString(card)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); - sb.append(" selectedRecurringDetailReference: ") - .append(toIndentedString(selectedRecurringDetailReference)) - .append("\n"); + sb.append(" selectedRecurringDetailReference: ").append(toIndentedString(selectedRecurringDetailReference)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -333,24 +311,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ScheduleAccountUpdaterRequest given an JSON string * * @param jsonString JSON string * @return An instance of ScheduleAccountUpdaterRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ScheduleAccountUpdaterRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to ScheduleAccountUpdaterRequest */ - public static ScheduleAccountUpdaterRequest fromJson(String jsonString) - throws JsonProcessingException { + public static ScheduleAccountUpdaterRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ScheduleAccountUpdaterRequest.class); } - - /** - * Convert an instance of ScheduleAccountUpdaterRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ScheduleAccountUpdaterRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/ScheduleAccountUpdaterResult.java b/src/main/java/com/adyen/model/recurring/ScheduleAccountUpdaterResult.java index 18f9911ef..7d124e76d 100644 --- a/src/main/java/com/adyen/model/recurring/ScheduleAccountUpdaterResult.java +++ b/src/main/java/com/adyen/model/recurring/ScheduleAccountUpdaterResult.java @@ -2,26 +2,36 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.recurring; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ScheduleAccountUpdaterResult */ + +/** + * ScheduleAccountUpdaterResult + */ @JsonPropertyOrder({ ScheduleAccountUpdaterResult.JSON_PROPERTY_PSP_REFERENCE, ScheduleAccountUpdaterResult.JSON_PROPERTY_RESULT }) + public class ScheduleAccountUpdaterResult { public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference"; private String pspReference; @@ -29,14 +39,13 @@ public class ScheduleAccountUpdaterResult { public static final String JSON_PROPERTY_RESULT = "result"; private String result; - public ScheduleAccountUpdaterResult() {} + public ScheduleAccountUpdaterResult() { + } /** - * Adyen's 16-character unique reference associated with the transaction. This value is - * globally unique; quote it when communicating with us about this request. + * Adyen's 16-character unique reference associated with the transaction. This value is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character unique reference associated with the transaction. - * This value is globally unique; quote it when communicating with us about this request. + * @param pspReference Adyen's 16-character unique reference associated with the transaction. This value is globally unique; quote it when communicating with us about this request. * @return the current {@code ScheduleAccountUpdaterResult} instance, allowing for method chaining */ public ScheduleAccountUpdaterResult pspReference(String pspReference) { @@ -45,11 +54,8 @@ public ScheduleAccountUpdaterResult pspReference(String pspReference) { } /** - * Adyen's 16-character unique reference associated with the transaction. This value is - * globally unique; quote it when communicating with us about this request. - * - * @return pspReference Adyen's 16-character unique reference associated with the transaction. - * This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character unique reference associated with the transaction. This value is globally unique; quote it when communicating with us about this request. + * @return pspReference Adyen's 16-character unique reference associated with the transaction. This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,11 +64,9 @@ public String getPspReference() { } /** - * Adyen's 16-character unique reference associated with the transaction. This value is - * globally unique; quote it when communicating with us about this request. + * Adyen's 16-character unique reference associated with the transaction. This value is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character unique reference associated with the transaction. - * This value is globally unique; quote it when communicating with us about this request. + * @param pspReference Adyen's 16-character unique reference associated with the transaction. This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,11 +75,9 @@ public void setPspReference(String pspReference) { } /** - * The result of scheduling an Account Updater. If scheduling was successful, this field returns - * **Success**; otherwise it contains the error message. + * The result of scheduling an Account Updater. If scheduling was successful, this field returns **Success**; otherwise it contains the error message. * - * @param result The result of scheduling an Account Updater. If scheduling was successful, this - * field returns **Success**; otherwise it contains the error message. + * @param result The result of scheduling an Account Updater. If scheduling was successful, this field returns **Success**; otherwise it contains the error message. * @return the current {@code ScheduleAccountUpdaterResult} instance, allowing for method chaining */ public ScheduleAccountUpdaterResult result(String result) { @@ -84,11 +86,8 @@ public ScheduleAccountUpdaterResult result(String result) { } /** - * The result of scheduling an Account Updater. If scheduling was successful, this field returns - * **Success**; otherwise it contains the error message. - * - * @return result The result of scheduling an Account Updater. If scheduling was successful, this - * field returns **Success**; otherwise it contains the error message. + * The result of scheduling an Account Updater. If scheduling was successful, this field returns **Success**; otherwise it contains the error message. + * @return result The result of scheduling an Account Updater. If scheduling was successful, this field returns **Success**; otherwise it contains the error message. */ @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,11 +96,9 @@ public String getResult() { } /** - * The result of scheduling an Account Updater. If scheduling was successful, this field returns - * **Success**; otherwise it contains the error message. + * The result of scheduling an Account Updater. If scheduling was successful, this field returns **Success**; otherwise it contains the error message. * - * @param result The result of scheduling an Account Updater. If scheduling was successful, this - * field returns **Success**; otherwise it contains the error message. + * @param result The result of scheduling an Account Updater. If scheduling was successful, this field returns **Success**; otherwise it contains the error message. */ @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -109,7 +106,9 @@ public void setResult(String result) { this.result = result; } - /** Return true if this ScheduleAccountUpdaterResult object is equal to o. */ + /** + * Return true if this ScheduleAccountUpdaterResult object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -119,8 +118,8 @@ public boolean equals(Object o) { return false; } ScheduleAccountUpdaterResult scheduleAccountUpdaterResult = (ScheduleAccountUpdaterResult) o; - return Objects.equals(this.pspReference, scheduleAccountUpdaterResult.pspReference) - && Objects.equals(this.result, scheduleAccountUpdaterResult.result); + return Objects.equals(this.pspReference, scheduleAccountUpdaterResult.pspReference) && + Objects.equals(this.result, scheduleAccountUpdaterResult.result); } @Override @@ -139,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,24 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ScheduleAccountUpdaterResult given an JSON string * * @param jsonString JSON string * @return An instance of ScheduleAccountUpdaterResult - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ScheduleAccountUpdaterResult + * @throws JsonProcessingException if the JSON string is invalid with respect to ScheduleAccountUpdaterResult */ - public static ScheduleAccountUpdaterResult fromJson(String jsonString) - throws JsonProcessingException { + public static ScheduleAccountUpdaterResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ScheduleAccountUpdaterResult.class); } - - /** - * Convert an instance of ScheduleAccountUpdaterResult to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ScheduleAccountUpdaterResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/ServiceError.java b/src/main/java/com/adyen/model/recurring/ServiceError.java index 2e2c3eef5..5d1a14281 100644 --- a/src/main/java/com/adyen/model/recurring/ServiceError.java +++ b/src/main/java/com/adyen/model/recurring/ServiceError.java @@ -2,24 +2,33 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.recurring; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ServiceError */ +/** + * ServiceError + */ @JsonPropertyOrder({ ServiceError.JSON_PROPERTY_ADDITIONAL_DATA, ServiceError.JSON_PROPERTY_ERROR_CODE, @@ -28,6 +37,7 @@ ServiceError.JSON_PROPERTY_PSP_REFERENCE, ServiceError.JSON_PROPERTY_STATUS }) + public class ServiceError { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -47,15 +57,13 @@ public class ServiceError { public static final String JSON_PROPERTY_STATUS = "status"; private Integer status; - public ServiceError() {} + public ServiceError() { + } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first. Go to **Customer Area** > **Developers** > - * **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. * @return the current {@code ServiceError} instance, allowing for method chaining */ public ServiceError additionalData(Map additionalData) { @@ -72,12 +80,8 @@ public ServiceError putAdditionalDataItem(String key, String additionalDataItem) } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first. Go to **Customer Area** > **Developers** > **Additional data**. - * - * @return additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first. Go to **Customer Area** > **Developers** > - * **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * @return additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -86,12 +90,9 @@ public Map getAdditionalData() { } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first. Go to **Customer Area** > **Developers** > - * **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,7 +113,6 @@ public ServiceError errorCode(String errorCode) { /** * The error code mapped to the error message. - * * @return errorCode The error code mapped to the error message. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -145,7 +145,6 @@ public ServiceError errorType(String errorType) { /** * The category of the error. - * * @return errorType The category of the error. */ @JsonProperty(JSON_PROPERTY_ERROR_TYPE) @@ -178,7 +177,6 @@ public ServiceError message(String message) { /** * A short explanation of the issue. - * * @return message A short explanation of the issue. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -211,7 +209,6 @@ public ServiceError pspReference(String pspReference) { /** * The PSP reference of the payment. - * * @return pspReference The PSP reference of the payment. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -244,7 +241,6 @@ public ServiceError status(Integer status) { /** * The HTTP response status. - * * @return status The HTTP response status. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -264,7 +260,9 @@ public void setStatus(Integer status) { this.status = status; } - /** Return true if this ServiceError object is equal to o. */ + /** + * Return true if this ServiceError object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -274,12 +272,12 @@ public boolean equals(Object o) { return false; } ServiceError serviceError = (ServiceError) o; - return Objects.equals(this.additionalData, serviceError.additionalData) - && Objects.equals(this.errorCode, serviceError.errorCode) - && Objects.equals(this.errorType, serviceError.errorType) - && Objects.equals(this.message, serviceError.message) - && Objects.equals(this.pspReference, serviceError.pspReference) - && Objects.equals(this.status, serviceError.status); + return Objects.equals(this.additionalData, serviceError.additionalData) && + Objects.equals(this.errorCode, serviceError.errorCode) && + Objects.equals(this.errorType, serviceError.errorType) && + Objects.equals(this.message, serviceError.message) && + Objects.equals(this.pspReference, serviceError.pspReference) && + Objects.equals(this.status, serviceError.status); } @Override @@ -302,7 +300,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -311,7 +310,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ServiceError given an JSON string * * @param jsonString JSON string @@ -321,12 +320,11 @@ private String toIndentedString(Object o) { public static ServiceError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } - - /** - * Convert an instance of ServiceError to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ServiceError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/TokenDetails.java b/src/main/java/com/adyen/model/recurring/TokenDetails.java index da56a3e0b..493287444 100644 --- a/src/main/java/com/adyen/model/recurring/TokenDetails.java +++ b/src/main/java/com/adyen/model/recurring/TokenDetails.java @@ -2,28 +2,38 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.recurring; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** TokenDetails */ +/** + * TokenDetails + */ @JsonPropertyOrder({ TokenDetails.JSON_PROPERTY_TOKEN_DATA, TokenDetails.JSON_PROPERTY_TOKEN_DATA_TYPE }) + public class TokenDetails { public static final String JSON_PROPERTY_TOKEN_DATA = "tokenData"; private Map tokenData; @@ -31,12 +41,13 @@ public class TokenDetails { public static final String JSON_PROPERTY_TOKEN_DATA_TYPE = "tokenDataType"; private String tokenDataType; - public TokenDetails() {} + public TokenDetails() { + } /** * tokenData * - * @param tokenData + * @param tokenData * @return the current {@code TokenDetails} instance, allowing for method chaining */ public TokenDetails tokenData(Map tokenData) { @@ -54,8 +65,7 @@ public TokenDetails putTokenDataItem(String key, String tokenDataItem) { /** * Get tokenData - * - * @return tokenData + * @return tokenData */ @JsonProperty(JSON_PROPERTY_TOKEN_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -66,7 +76,7 @@ public Map getTokenData() { /** * tokenData * - * @param tokenData + * @param tokenData */ @JsonProperty(JSON_PROPERTY_TOKEN_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -77,7 +87,7 @@ public void setTokenData(Map tokenData) { /** * tokenDataType * - * @param tokenDataType + * @param tokenDataType * @return the current {@code TokenDetails} instance, allowing for method chaining */ public TokenDetails tokenDataType(String tokenDataType) { @@ -87,8 +97,7 @@ public TokenDetails tokenDataType(String tokenDataType) { /** * Get tokenDataType - * - * @return tokenDataType + * @return tokenDataType */ @JsonProperty(JSON_PROPERTY_TOKEN_DATA_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,7 +108,7 @@ public String getTokenDataType() { /** * tokenDataType * - * @param tokenDataType + * @param tokenDataType */ @JsonProperty(JSON_PROPERTY_TOKEN_DATA_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,7 +116,9 @@ public void setTokenDataType(String tokenDataType) { this.tokenDataType = tokenDataType; } - /** Return true if this TokenDetails object is equal to o. */ + /** + * Return true if this TokenDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -117,8 +128,8 @@ public boolean equals(Object o) { return false; } TokenDetails tokenDetails = (TokenDetails) o; - return Objects.equals(this.tokenData, tokenDetails.tokenData) - && Objects.equals(this.tokenDataType, tokenDetails.tokenDataType); + return Objects.equals(this.tokenData, tokenDetails.tokenData) && + Objects.equals(this.tokenDataType, tokenDetails.tokenDataType); } @Override @@ -137,7 +148,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -146,7 +158,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TokenDetails given an JSON string * * @param jsonString JSON string @@ -156,12 +168,11 @@ private String toIndentedString(Object o) { public static TokenDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TokenDetails.class); } - - /** - * Convert an instance of TokenDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TokenDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/reportwebhooks/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/reportwebhooks/AbstractOpenApiSchema.java index 839373b6a..7c4ab1b4d 100644 --- a/src/main/java/com/adyen/model/reportwebhooks/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/reportwebhooks/AbstractOpenApiSchema.java @@ -2,141 +2,145 @@ * Report webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.reportwebhooks; -import com.fasterxml.jackson.annotation.JsonValue; -import jakarta.ws.rs.core.GenericType; -import java.util.Map; import java.util.Objects; +import java.util.Map; +import jakarta.ws.rs.core.GenericType; -/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec + */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() { - return instance; - } - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) { - this.instance = instance; - } - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf - * schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); - } else { - return object.getActualInstance(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() {return instance;} + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) {this.instance = instance;} + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); + } else { + return object.getActualInstance(); + } + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) && + Objects.equals(this.isNullable, a.isNullable) && + Objects.equals(this.schemaType, a.schemaType); } - return o.toString().replace("\n", "\n "); - } - public boolean equals(Object o) { - if (this == o) { - return true; + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); } - if (o == null || getClass() != o.getClass()) { - return false; + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) - && Objects.equals(this.isNullable, a.isNullable) - && Objects.equals(this.schemaType, a.schemaType); - } - - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); - } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); - } -} + + + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/reportwebhooks/BalancePlatformNotificationResponse.java b/src/main/java/com/adyen/model/reportwebhooks/BalancePlatformNotificationResponse.java index ab2375333..48b37503c 100644 --- a/src/main/java/com/adyen/model/reportwebhooks/BalancePlatformNotificationResponse.java +++ b/src/main/java/com/adyen/model/reportwebhooks/BalancePlatformNotificationResponse.java @@ -2,37 +2,47 @@ * Report webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.reportwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** BalancePlatformNotificationResponse */ -@JsonPropertyOrder({BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) + +/** + * BalancePlatformNotificationResponse + */ +@JsonPropertyOrder({ + BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE +}) + public class BalancePlatformNotificationResponse { public static final String JSON_PROPERTY_NOTIFICATION_RESPONSE = "notificationResponse"; private String notificationResponse; - public BalancePlatformNotificationResponse() {} + public BalancePlatformNotificationResponse() { + } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method - * chaining + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method chaining */ public BalancePlatformNotificationResponse notificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; @@ -40,11 +50,8 @@ public BalancePlatformNotificationResponse notificationResponse(String notificat } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * - * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -53,11 +60,9 @@ public String getNotificationResponse() { } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -65,7 +70,9 @@ public void setNotificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; } - /** Return true if this BalancePlatformNotificationResponse object is equal to o. */ + /** + * Return true if this BalancePlatformNotificationResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -74,10 +81,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - BalancePlatformNotificationResponse balancePlatformNotificationResponse = - (BalancePlatformNotificationResponse) o; - return Objects.equals( - this.notificationResponse, balancePlatformNotificationResponse.notificationResponse); + BalancePlatformNotificationResponse balancePlatformNotificationResponse = (BalancePlatformNotificationResponse) o; + return Objects.equals(this.notificationResponse, balancePlatformNotificationResponse.notificationResponse); } @Override @@ -89,15 +94,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BalancePlatformNotificationResponse {\n"); - sb.append(" notificationResponse: ") - .append(toIndentedString(notificationResponse)) - .append("\n"); + sb.append(" notificationResponse: ").append(toIndentedString(notificationResponse)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -106,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BalancePlatformNotificationResponse given an JSON string * * @param jsonString JSON string * @return An instance of BalancePlatformNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BalancePlatformNotificationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to BalancePlatformNotificationResponse */ - public static BalancePlatformNotificationResponse fromJson(String jsonString) - throws JsonProcessingException { + public static BalancePlatformNotificationResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalancePlatformNotificationResponse.class); } - - /** - * Convert an instance of BalancePlatformNotificationResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BalancePlatformNotificationResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/reportwebhooks/JSON.java b/src/main/java/com/adyen/model/reportwebhooks/JSON.java index 5b5159e6c..4fb5e89b6 100644 --- a/src/main/java/com/adyen/model/reportwebhooks/JSON.java +++ b/src/main/java/com/adyen/model/reportwebhooks/JSON.java @@ -1,18 +1,21 @@ package com.adyen.model.reportwebhooks; -import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; +import com.adyen.serializer.ByteArrayDeserializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; +import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; +import com.adyen.model.reportwebhooks.*; + import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -37,7 +40,6 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. - * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -54,13 +56,11 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { - return mapper; - } + public static ObjectMapper getMapper() { return mapper; } /** - * Returns the target model class that should be used to deserialize the input data. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,7 +73,9 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** Helper class to register the discriminator mappings. */ + /** + * Helper class to register the discriminator mappings. + */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -115,9 +117,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. This - * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -162,14 +164,13 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so - * it's not possible to use the instanceof keyword. + * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, + * so it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf( - Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -193,58 +194,59 @@ public static boolean isInstanceOf( return false; } - /** A map of discriminators for all model classes. */ - private static final Map, ClassDiscriminatorMapping> modelDiscriminators = - new HashMap, ClassDiscriminatorMapping>(); + /** + * A map of discriminators for all model classes. + */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); - /** A map of oneOf/anyOf descendants for each model class. */ + /** + * A map of oneOf/anyOf descendants for each model class. + */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator( - Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = - new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants( - Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants(Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static { + static + { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/reportwebhooks/ReportNotificationData.java b/src/main/java/com/adyen/model/reportwebhooks/ReportNotificationData.java index c3b1033a0..5425e77af 100644 --- a/src/main/java/com/adyen/model/reportwebhooks/ReportNotificationData.java +++ b/src/main/java/com/adyen/model/reportwebhooks/ReportNotificationData.java @@ -2,23 +2,33 @@ * Report webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.reportwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.reportwebhooks.ResourceReference; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.time.OffsetDateTime; -import java.util.*; -/** ReportNotificationData */ + +/** + * ReportNotificationData + */ @JsonPropertyOrder({ ReportNotificationData.JSON_PROPERTY_ACCOUNT_HOLDER, ReportNotificationData.JSON_PROPERTY_BALANCE_ACCOUNT, @@ -29,6 +39,7 @@ ReportNotificationData.JSON_PROPERTY_ID, ReportNotificationData.JSON_PROPERTY_REPORT_TYPE }) + public class ReportNotificationData { public static final String JSON_PROPERTY_ACCOUNT_HOLDER = "accountHolder"; private ResourceReference accountHolder; @@ -54,12 +65,13 @@ public class ReportNotificationData { public static final String JSON_PROPERTY_REPORT_TYPE = "reportType"; private String reportType; - public ReportNotificationData() {} + public ReportNotificationData() { + } /** * accountHolder * - * @param accountHolder + * @param accountHolder * @return the current {@code ReportNotificationData} instance, allowing for method chaining */ public ReportNotificationData accountHolder(ResourceReference accountHolder) { @@ -69,8 +81,7 @@ public ReportNotificationData accountHolder(ResourceReference accountHolder) { /** * Get accountHolder - * - * @return accountHolder + * @return accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -81,7 +92,7 @@ public ResourceReference getAccountHolder() { /** * accountHolder * - * @param accountHolder + * @param accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -92,7 +103,7 @@ public void setAccountHolder(ResourceReference accountHolder) { /** * balanceAccount * - * @param balanceAccount + * @param balanceAccount * @return the current {@code ReportNotificationData} instance, allowing for method chaining */ public ReportNotificationData balanceAccount(ResourceReference balanceAccount) { @@ -102,8 +113,7 @@ public ReportNotificationData balanceAccount(ResourceReference balanceAccount) { /** * Get balanceAccount - * - * @return balanceAccount + * @return balanceAccount */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,7 +124,7 @@ public ResourceReference getBalanceAccount() { /** * balanceAccount * - * @param balanceAccount + * @param balanceAccount */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,7 +145,6 @@ public ReportNotificationData balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. - * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -156,11 +165,9 @@ public void setBalancePlatform(String balancePlatform) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code ReportNotificationData} instance, allowing for method chaining */ public ReportNotificationData creationDate(OffsetDateTime creationDate) { @@ -169,11 +176,8 @@ public ReportNotificationData creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. - * - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,11 +186,9 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,13 +197,9 @@ public void setCreationDate(OffsetDateTime creationDate) { } /** - * The URL at which you can download the report. To download, you must authenticate your GET - * request with your [API - * credentials](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/overview). + * The URL at which you can download the report. To download, you must authenticate your GET request with your [API credentials](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/overview). * - * @param downloadUrl The URL at which you can download the report. To download, you must - * authenticate your GET request with your [API - * credentials](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/overview). + * @param downloadUrl The URL at which you can download the report. To download, you must authenticate your GET request with your [API credentials](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/overview). * @return the current {@code ReportNotificationData} instance, allowing for method chaining */ public ReportNotificationData downloadUrl(String downloadUrl) { @@ -210,13 +208,8 @@ public ReportNotificationData downloadUrl(String downloadUrl) { } /** - * The URL at which you can download the report. To download, you must authenticate your GET - * request with your [API - * credentials](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/overview). - * - * @return downloadUrl The URL at which you can download the report. To download, you must - * authenticate your GET request with your [API - * credentials](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/overview). + * The URL at which you can download the report. To download, you must authenticate your GET request with your [API credentials](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/overview). + * @return downloadUrl The URL at which you can download the report. To download, you must authenticate your GET request with your [API credentials](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/overview). */ @JsonProperty(JSON_PROPERTY_DOWNLOAD_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -225,13 +218,9 @@ public String getDownloadUrl() { } /** - * The URL at which you can download the report. To download, you must authenticate your GET - * request with your [API - * credentials](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/overview). + * The URL at which you can download the report. To download, you must authenticate your GET request with your [API credentials](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/overview). * - * @param downloadUrl The URL at which you can download the report. To download, you must - * authenticate your GET request with your [API - * credentials](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/overview). + * @param downloadUrl The URL at which you can download the report. To download, you must authenticate your GET request with your [API credentials](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/overview). */ @JsonProperty(JSON_PROPERTY_DOWNLOAD_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,7 +241,6 @@ public ReportNotificationData fileName(String fileName) { /** * The filename of the report. - * * @return fileName The filename of the report. */ @JsonProperty(JSON_PROPERTY_FILE_NAME) @@ -285,7 +273,6 @@ public ReportNotificationData id(String id) { /** * The ID of the resource. - * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -306,18 +293,9 @@ public void setId(String id) { } /** - * The type of report. Possible values: - - * `balanceplatform_accounting_interactive_report` - - * `balanceplatform_accounting_report` - `balanceplatform_balance_report` - - * `balanceplatform_fee_report` - `balanceplatform_payment_instrument_report` - * - `balanceplatform_payout_report` - `balanceplatform_statement_report` + * The type of report. Possible values: - `balanceplatform_accounting_interactive_report` - `balanceplatform_accounting_report` - `balanceplatform_balance_report` - `balanceplatform_fee_report` - `balanceplatform_payment_instrument_report` - `balanceplatform_payout_report` - `balanceplatform_statement_report` * - * @param reportType The type of report. Possible values: - - * `balanceplatform_accounting_interactive_report` - - * `balanceplatform_accounting_report` - `balanceplatform_balance_report` - * - `balanceplatform_fee_report` - - * `balanceplatform_payment_instrument_report` - - * `balanceplatform_payout_report` - `balanceplatform_statement_report` + * @param reportType The type of report. Possible values: - `balanceplatform_accounting_interactive_report` - `balanceplatform_accounting_report` - `balanceplatform_balance_report` - `balanceplatform_fee_report` - `balanceplatform_payment_instrument_report` - `balanceplatform_payout_report` - `balanceplatform_statement_report` * @return the current {@code ReportNotificationData} instance, allowing for method chaining */ public ReportNotificationData reportType(String reportType) { @@ -326,18 +304,8 @@ public ReportNotificationData reportType(String reportType) { } /** - * The type of report. Possible values: - - * `balanceplatform_accounting_interactive_report` - - * `balanceplatform_accounting_report` - `balanceplatform_balance_report` - - * `balanceplatform_fee_report` - `balanceplatform_payment_instrument_report` - * - `balanceplatform_payout_report` - `balanceplatform_statement_report` - * - * @return reportType The type of report. Possible values: - - * `balanceplatform_accounting_interactive_report` - - * `balanceplatform_accounting_report` - `balanceplatform_balance_report` - * - `balanceplatform_fee_report` - - * `balanceplatform_payment_instrument_report` - - * `balanceplatform_payout_report` - `balanceplatform_statement_report` + * The type of report. Possible values: - `balanceplatform_accounting_interactive_report` - `balanceplatform_accounting_report` - `balanceplatform_balance_report` - `balanceplatform_fee_report` - `balanceplatform_payment_instrument_report` - `balanceplatform_payout_report` - `balanceplatform_statement_report` + * @return reportType The type of report. Possible values: - `balanceplatform_accounting_interactive_report` - `balanceplatform_accounting_report` - `balanceplatform_balance_report` - `balanceplatform_fee_report` - `balanceplatform_payment_instrument_report` - `balanceplatform_payout_report` - `balanceplatform_statement_report` */ @JsonProperty(JSON_PROPERTY_REPORT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -346,18 +314,9 @@ public String getReportType() { } /** - * The type of report. Possible values: - - * `balanceplatform_accounting_interactive_report` - - * `balanceplatform_accounting_report` - `balanceplatform_balance_report` - - * `balanceplatform_fee_report` - `balanceplatform_payment_instrument_report` - * - `balanceplatform_payout_report` - `balanceplatform_statement_report` + * The type of report. Possible values: - `balanceplatform_accounting_interactive_report` - `balanceplatform_accounting_report` - `balanceplatform_balance_report` - `balanceplatform_fee_report` - `balanceplatform_payment_instrument_report` - `balanceplatform_payout_report` - `balanceplatform_statement_report` * - * @param reportType The type of report. Possible values: - - * `balanceplatform_accounting_interactive_report` - - * `balanceplatform_accounting_report` - `balanceplatform_balance_report` - * - `balanceplatform_fee_report` - - * `balanceplatform_payment_instrument_report` - - * `balanceplatform_payout_report` - `balanceplatform_statement_report` + * @param reportType The type of report. Possible values: - `balanceplatform_accounting_interactive_report` - `balanceplatform_accounting_report` - `balanceplatform_balance_report` - `balanceplatform_fee_report` - `balanceplatform_payment_instrument_report` - `balanceplatform_payout_report` - `balanceplatform_statement_report` */ @JsonProperty(JSON_PROPERTY_REPORT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -365,7 +324,9 @@ public void setReportType(String reportType) { this.reportType = reportType; } - /** Return true if this ReportNotificationData object is equal to o. */ + /** + * Return true if this ReportNotificationData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -375,27 +336,19 @@ public boolean equals(Object o) { return false; } ReportNotificationData reportNotificationData = (ReportNotificationData) o; - return Objects.equals(this.accountHolder, reportNotificationData.accountHolder) - && Objects.equals(this.balanceAccount, reportNotificationData.balanceAccount) - && Objects.equals(this.balancePlatform, reportNotificationData.balancePlatform) - && Objects.equals(this.creationDate, reportNotificationData.creationDate) - && Objects.equals(this.downloadUrl, reportNotificationData.downloadUrl) - && Objects.equals(this.fileName, reportNotificationData.fileName) - && Objects.equals(this.id, reportNotificationData.id) - && Objects.equals(this.reportType, reportNotificationData.reportType); + return Objects.equals(this.accountHolder, reportNotificationData.accountHolder) && + Objects.equals(this.balanceAccount, reportNotificationData.balanceAccount) && + Objects.equals(this.balancePlatform, reportNotificationData.balancePlatform) && + Objects.equals(this.creationDate, reportNotificationData.creationDate) && + Objects.equals(this.downloadUrl, reportNotificationData.downloadUrl) && + Objects.equals(this.fileName, reportNotificationData.fileName) && + Objects.equals(this.id, reportNotificationData.id) && + Objects.equals(this.reportType, reportNotificationData.reportType); } @Override public int hashCode() { - return Objects.hash( - accountHolder, - balanceAccount, - balancePlatform, - creationDate, - downloadUrl, - fileName, - id, - reportType); + return Objects.hash(accountHolder, balanceAccount, balancePlatform, creationDate, downloadUrl, fileName, id, reportType); } @Override @@ -415,7 +368,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -424,23 +378,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ReportNotificationData given an JSON string * * @param jsonString JSON string * @return An instance of ReportNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ReportNotificationData + * @throws JsonProcessingException if the JSON string is invalid with respect to ReportNotificationData */ public static ReportNotificationData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ReportNotificationData.class); } - - /** - * Convert an instance of ReportNotificationData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ReportNotificationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/reportwebhooks/ReportNotificationRequest.java b/src/main/java/com/adyen/model/reportwebhooks/ReportNotificationRequest.java index 048d5fc8c..45c6b505a 100644 --- a/src/main/java/com/adyen/model/reportwebhooks/ReportNotificationRequest.java +++ b/src/main/java/com/adyen/model/reportwebhooks/ReportNotificationRequest.java @@ -2,33 +2,40 @@ * Report webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.reportwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.reportwebhooks.ReportNotificationData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** ReportNotificationRequest */ + +/** + * ReportNotificationRequest + */ @JsonPropertyOrder({ ReportNotificationRequest.JSON_PROPERTY_DATA, ReportNotificationRequest.JSON_PROPERTY_ENVIRONMENT, ReportNotificationRequest.JSON_PROPERTY_TIMESTAMP, ReportNotificationRequest.JSON_PROPERTY_TYPE }) + public class ReportNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private ReportNotificationData data; @@ -39,8 +46,11 @@ public class ReportNotificationRequest { public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; private OffsetDateTime timestamp; - /** Type of webhook. */ + /** + * Type of webhook. + */ public enum TypeEnum { + BALANCEPLATFORM_REPORT_CREATED(String.valueOf("balancePlatform.report.created")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +58,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,11 +79,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -81,12 +87,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public ReportNotificationRequest() {} + public ReportNotificationRequest() { + } /** * data * - * @param data + * @param data * @return the current {@code ReportNotificationRequest} instance, allowing for method chaining */ public ReportNotificationRequest data(ReportNotificationData data) { @@ -96,8 +103,7 @@ public ReportNotificationRequest data(ReportNotificationData data) { /** * Get data - * - * @return data + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,7 +114,7 @@ public ReportNotificationData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,10 +123,9 @@ public void setData(ReportNotificationData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. * @return the current {@code ReportNotificationRequest} instance, allowing for method chaining */ public ReportNotificationRequest environment(String environment) { @@ -129,10 +134,8 @@ public ReportNotificationRequest environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * - * @return environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -141,10 +144,9 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -165,7 +167,6 @@ public ReportNotificationRequest timestamp(OffsetDateTime timestamp) { /** * When the event was queued. - * * @return timestamp When the event was queued. */ @JsonProperty(JSON_PROPERTY_TIMESTAMP) @@ -198,7 +199,6 @@ public ReportNotificationRequest type(TypeEnum type) { /** * Type of webhook. - * * @return type Type of webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -218,7 +218,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this ReportNotificationRequest object is equal to o. */ + /** + * Return true if this ReportNotificationRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -228,10 +230,10 @@ public boolean equals(Object o) { return false; } ReportNotificationRequest reportNotificationRequest = (ReportNotificationRequest) o; - return Objects.equals(this.data, reportNotificationRequest.data) - && Objects.equals(this.environment, reportNotificationRequest.environment) - && Objects.equals(this.timestamp, reportNotificationRequest.timestamp) - && Objects.equals(this.type, reportNotificationRequest.type); + return Objects.equals(this.data, reportNotificationRequest.data) && + Objects.equals(this.environment, reportNotificationRequest.environment) && + Objects.equals(this.timestamp, reportNotificationRequest.timestamp) && + Objects.equals(this.type, reportNotificationRequest.type); } @Override @@ -252,7 +254,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -261,24 +264,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ReportNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of ReportNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ReportNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to ReportNotificationRequest */ - public static ReportNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static ReportNotificationRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ReportNotificationRequest.class); } - - /** - * Convert an instance of ReportNotificationRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ReportNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/reportwebhooks/ReportWebhooksHandler.java b/src/main/java/com/adyen/model/reportwebhooks/ReportWebhooksHandler.java index db670fdf9..0d65ad82b 100644 --- a/src/main/java/com/adyen/model/reportwebhooks/ReportWebhooksHandler.java +++ b/src/main/java/com/adyen/model/reportwebhooks/ReportWebhooksHandler.java @@ -2,7 +2,7 @@ * Report webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,62 +16,63 @@ /** * Handler for processing ReportWebhooks. - * - *

This class provides functionality to deserialize the payload of ReportWebhooks events. + *

+ * This class provides functionality to deserialize the payload of ReportWebhooks events. */ public class ReportWebhooksHandler { - private static final Logger LOG = Logger.getLogger(ReportWebhooksHandler.class.getName()); + private static final Logger LOG = Logger.getLogger(ReportWebhooksHandler.class.getName()); - private final String payload; + private final String payload; - /** - * Constructs a new handler for the given webhook payload - * - * @param payload the raw JSON payload from the webhook - */ - public ReportWebhooksHandler(String payload) { - this.payload = payload; - } + /** + * Constructs a new handler for the given webhook payload + * + * @param payload the raw JSON payload from the webhook + */ + public ReportWebhooksHandler(String payload) { + this.payload = payload; + } - /** - * Attempts to deserialize the webhook payload into a ReportNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getReportNotificationRequest() { + /** + * Attempts to deserialize the webhook payload into a ReportNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getReportNotificationRequest() { - var optionalReportNotificationRequest = getOptionalField(ReportNotificationRequest.class); + var optionalReportNotificationRequest = getOptionalField(ReportNotificationRequest.class); - if (optionalReportNotificationRequest.isPresent()) { - // verify event type - for (var value : ReportNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalReportNotificationRequest.get().getType())) { - // found matching event type - return optionalReportNotificationRequest; + if(optionalReportNotificationRequest.isPresent()) { + // verify event type + for (var value : ReportNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalReportNotificationRequest.get().getType())) { + // found matching event type + return optionalReportNotificationRequest; + } + } } - } - } - return Optional.empty(); - } + return Optional.empty(); + } - /** - * Deserializes the payload into the specified class type. - * - * @param clazz the class to deserialize into - * @param the type of the class - * @return an Optional containing the deserialized object, or empty if an error occurs - */ - private Optional getOptionalField(Class clazz) { - try { - T val = JSON.getMapper().readValue(payload, clazz); - return Optional.ofNullable(val); - } catch (Exception e) { - // an error has occurred during deserialization (object not found, deserialization error) - LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); - LOG.warning("Deserialization error: " + e.getMessage()); - return Optional.empty(); + /** + * Deserializes the payload into the specified class type. + * + * @param clazz the class to deserialize into + * @param the type of the class + * @return an Optional containing the deserialized object, or empty if an error occurs + */ + private Optional getOptionalField(Class clazz) { + try { + T val = JSON.getMapper().readValue(payload, clazz); + return Optional.ofNullable(val); + } catch (Exception e) { + // an error has occurred during deserialization (object not found, deserialization error) + LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); + LOG.warning("Deserialization error: " + e.getMessage()); + return Optional.empty(); + } } - } -} + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/reportwebhooks/Resource.java b/src/main/java/com/adyen/model/reportwebhooks/Resource.java index 68ccb752a..e18b70c00 100644 --- a/src/main/java/com/adyen/model/reportwebhooks/Resource.java +++ b/src/main/java/com/adyen/model/reportwebhooks/Resource.java @@ -2,28 +2,38 @@ * Report webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.reportwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.time.OffsetDateTime; -import java.util.*; -/** Resource */ + +/** + * Resource + */ @JsonPropertyOrder({ Resource.JSON_PROPERTY_BALANCE_PLATFORM, Resource.JSON_PROPERTY_CREATION_DATE, Resource.JSON_PROPERTY_ID }) + public class Resource { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; @@ -34,7 +44,8 @@ public class Resource { public static final String JSON_PROPERTY_ID = "id"; private String id; - public Resource() {} + public Resource() { + } /** * The unique identifier of the balance platform. @@ -49,7 +60,6 @@ public Resource balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. - * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -70,11 +80,9 @@ public void setBalancePlatform(String balancePlatform) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code Resource} instance, allowing for method chaining */ public Resource creationDate(OffsetDateTime creationDate) { @@ -83,11 +91,8 @@ public Resource creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. - * - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,11 +101,9 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,7 +124,6 @@ public Resource id(String id) { /** * The ID of the resource. - * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -141,7 +143,9 @@ public void setId(String id) { this.id = id; } - /** Return true if this Resource object is equal to o. */ + /** + * Return true if this Resource object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -151,9 +155,9 @@ public boolean equals(Object o) { return false; } Resource resource = (Resource) o; - return Objects.equals(this.balancePlatform, resource.balancePlatform) - && Objects.equals(this.creationDate, resource.creationDate) - && Objects.equals(this.id, resource.id); + return Objects.equals(this.balancePlatform, resource.balancePlatform) && + Objects.equals(this.creationDate, resource.creationDate) && + Objects.equals(this.id, resource.id); } @Override @@ -173,7 +177,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,7 +187,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Resource given an JSON string * * @param jsonString JSON string @@ -192,12 +197,11 @@ private String toIndentedString(Object o) { public static Resource fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Resource.class); } - - /** - * Convert an instance of Resource to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Resource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/reportwebhooks/ResourceReference.java b/src/main/java/com/adyen/model/reportwebhooks/ResourceReference.java index 23373433d..f3d8f0932 100644 --- a/src/main/java/com/adyen/model/reportwebhooks/ResourceReference.java +++ b/src/main/java/com/adyen/model/reportwebhooks/ResourceReference.java @@ -2,27 +2,37 @@ * Report webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.reportwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ResourceReference */ + +/** + * ResourceReference + */ @JsonPropertyOrder({ ResourceReference.JSON_PROPERTY_DESCRIPTION, ResourceReference.JSON_PROPERTY_ID, ResourceReference.JSON_PROPERTY_REFERENCE }) + public class ResourceReference { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -33,7 +43,8 @@ public class ResourceReference { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public ResourceReference() {} + public ResourceReference() { + } /** * The description of the resource. @@ -48,7 +59,6 @@ public ResourceReference description(String description) { /** * The description of the resource. - * * @return description The description of the resource. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -81,7 +91,6 @@ public ResourceReference id(String id) { /** * The unique identifier of the resource. - * * @return id The unique identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -114,7 +123,6 @@ public ResourceReference reference(String reference) { /** * The reference for the resource. - * * @return reference The reference for the resource. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -134,7 +142,9 @@ public void setReference(String reference) { this.reference = reference; } - /** Return true if this ResourceReference object is equal to o. */ + /** + * Return true if this ResourceReference object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,9 +154,9 @@ public boolean equals(Object o) { return false; } ResourceReference resourceReference = (ResourceReference) o; - return Objects.equals(this.description, resourceReference.description) - && Objects.equals(this.id, resourceReference.id) - && Objects.equals(this.reference, resourceReference.reference); + return Objects.equals(this.description, resourceReference.description) && + Objects.equals(this.id, resourceReference.id) && + Objects.equals(this.reference, resourceReference.reference); } @Override @@ -166,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResourceReference given an JSON string * * @param jsonString JSON string @@ -185,12 +196,11 @@ private String toIndentedString(Object o) { public static ResourceReference fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResourceReference.class); } - - /** - * Convert an instance of ResourceReference to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResourceReference to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/sessionauthentication/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/sessionauthentication/AbstractOpenApiSchema.java index f6d638482..3db1abca7 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/sessionauthentication/AbstractOpenApiSchema.java @@ -2,141 +2,145 @@ * Session authentication API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.sessionauthentication; -import com.fasterxml.jackson.annotation.JsonValue; -import jakarta.ws.rs.core.GenericType; -import java.util.Map; import java.util.Objects; +import java.util.Map; +import jakarta.ws.rs.core.GenericType; -/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec + */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() { - return instance; - } - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) { - this.instance = instance; - } - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf - * schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); - } else { - return object.getActualInstance(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() {return instance;} + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) {this.instance = instance;} + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); + } else { + return object.getActualInstance(); + } + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) && + Objects.equals(this.isNullable, a.isNullable) && + Objects.equals(this.schemaType, a.schemaType); } - return o.toString().replace("\n", "\n "); - } - public boolean equals(Object o) { - if (this == o) { - return true; + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); } - if (o == null || getClass() != o.getClass()) { - return false; + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) - && Objects.equals(this.isNullable, a.isNullable) - && Objects.equals(this.schemaType, a.schemaType); - } - - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); - } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); - } -} + + + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/sessionauthentication/AccountHolderResource.java b/src/main/java/com/adyen/model/sessionauthentication/AccountHolderResource.java index 091c6407b..6066bf472 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/AccountHolderResource.java +++ b/src/main/java/com/adyen/model/sessionauthentication/AccountHolderResource.java @@ -2,50 +2,57 @@ * Session authentication API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.sessionauthentication; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.sessionauthentication.Resource; +import com.adyen.model.sessionauthentication.ResourceType; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AccountHolderResource */ -@JsonPropertyOrder({AccountHolderResource.JSON_PROPERTY_ACCOUNT_HOLDER_ID}) + +/** + * AccountHolderResource + */ +@JsonPropertyOrder({ + AccountHolderResource.JSON_PROPERTY_ACCOUNT_HOLDER_ID +}) + @JsonIgnoreProperties( - value = - "type", // ignore manually set type, it will be automatically generated by Jackson during - // serialization - allowSetters = true // allows the type to be set during deserialization - ) -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - visible = true) + value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization + allowSetters = true // allows the type to be set during deserialization +) +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) + public class AccountHolderResource extends Resource { public static final String JSON_PROPERTY_ACCOUNT_HOLDER_ID = "accountHolderId"; private String accountHolderId; - public AccountHolderResource() {} + public AccountHolderResource() { + } /** - * The unique identifier of the resource connected to the component. For [Platform Experience - * components](https://docs.adyen.com/platforms/build-user-dashboards), this is the account holder - * linked to the balance account shown in the component. + * The unique identifier of the resource connected to the component. For [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the account holder linked to the balance account shown in the component. * - * @param accountHolderId The unique identifier of the resource connected to the component. For - * [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), - * this is the account holder linked to the balance account shown in the component. + * @param accountHolderId The unique identifier of the resource connected to the component. For [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the account holder linked to the balance account shown in the component. * @return the current {@code AccountHolderResource} instance, allowing for method chaining */ public AccountHolderResource accountHolderId(String accountHolderId) { @@ -54,13 +61,8 @@ public AccountHolderResource accountHolderId(String accountHolderId) { } /** - * The unique identifier of the resource connected to the component. For [Platform Experience - * components](https://docs.adyen.com/platforms/build-user-dashboards), this is the account holder - * linked to the balance account shown in the component. - * - * @return accountHolderId The unique identifier of the resource connected to the component. For - * [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), - * this is the account holder linked to the balance account shown in the component. + * The unique identifier of the resource connected to the component. For [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the account holder linked to the balance account shown in the component. + * @return accountHolderId The unique identifier of the resource connected to the component. For [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the account holder linked to the balance account shown in the component. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -69,13 +71,9 @@ public String getAccountHolderId() { } /** - * The unique identifier of the resource connected to the component. For [Platform Experience - * components](https://docs.adyen.com/platforms/build-user-dashboards), this is the account holder - * linked to the balance account shown in the component. + * The unique identifier of the resource connected to the component. For [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the account holder linked to the balance account shown in the component. * - * @param accountHolderId The unique identifier of the resource connected to the component. For - * [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), - * this is the account holder linked to the balance account shown in the component. + * @param accountHolderId The unique identifier of the resource connected to the component. For [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the account holder linked to the balance account shown in the component. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,7 +81,9 @@ public void setAccountHolderId(String accountHolderId) { this.accountHolderId = accountHolderId; } - /** Return true if this AccountHolderResource object is equal to o. */ + /** + * Return true if this AccountHolderResource object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -93,8 +93,8 @@ public boolean equals(Object o) { return false; } AccountHolderResource accountHolderResource = (AccountHolderResource) o; - return Objects.equals(this.accountHolderId, accountHolderResource.accountHolderId) - && super.equals(o); + return Objects.equals(this.accountHolderId, accountHolderResource.accountHolderId) && + super.equals(o); } @Override @@ -113,7 +113,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -128,24 +129,21 @@ private String toIndentedString(Object o) { mappings.put("AccountHolderResource", AccountHolderResource.class); JSON.registerDiscriminator(AccountHolderResource.class, "type", mappings); } - - /** +/** * Create an instance of AccountHolderResource given an JSON string * * @param jsonString JSON string * @return An instance of AccountHolderResource - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AccountHolderResource + * @throws JsonProcessingException if the JSON string is invalid with respect to AccountHolderResource */ public static AccountHolderResource fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountHolderResource.class); } - - /** - * Convert an instance of AccountHolderResource to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AccountHolderResource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/sessionauthentication/AuthenticationSessionRequest.java b/src/main/java/com/adyen/model/sessionauthentication/AuthenticationSessionRequest.java index f03dfab09..e52aa6202 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/AuthenticationSessionRequest.java +++ b/src/main/java/com/adyen/model/sessionauthentication/AuthenticationSessionRequest.java @@ -2,27 +2,39 @@ * Session authentication API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.sessionauthentication; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.sessionauthentication.Policy; +import com.adyen.model.sessionauthentication.ProductType; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AuthenticationSessionRequest */ + +/** + * AuthenticationSessionRequest + */ @JsonPropertyOrder({ AuthenticationSessionRequest.JSON_PROPERTY_ALLOW_ORIGIN, AuthenticationSessionRequest.JSON_PROPERTY_POLICY, AuthenticationSessionRequest.JSON_PROPERTY_PRODUCT }) + public class AuthenticationSessionRequest { public static final String JSON_PROPERTY_ALLOW_ORIGIN = "allowOrigin"; private String allowOrigin; @@ -33,15 +45,13 @@ public class AuthenticationSessionRequest { public static final String JSON_PROPERTY_PRODUCT = "product"; private ProductType product; - public AuthenticationSessionRequest() {} + public AuthenticationSessionRequest() { + } /** - * The URL where the component will appear. In your live environment, you must protect the URL - * with an SSL certificate and ensure that it starts with `https://`. + * The URL where the component will appear. In your live environment, you must protect the URL with an SSL certificate and ensure that it starts with `https://`. * - * @param allowOrigin The URL where the component will appear. In your live environment, you must - * protect the URL with an SSL certificate and ensure that it starts with - * `https://`. + * @param allowOrigin The URL where the component will appear. In your live environment, you must protect the URL with an SSL certificate and ensure that it starts with `https://`. * @return the current {@code AuthenticationSessionRequest} instance, allowing for method chaining */ public AuthenticationSessionRequest allowOrigin(String allowOrigin) { @@ -50,12 +60,8 @@ public AuthenticationSessionRequest allowOrigin(String allowOrigin) { } /** - * The URL where the component will appear. In your live environment, you must protect the URL - * with an SSL certificate and ensure that it starts with `https://`. - * - * @return allowOrigin The URL where the component will appear. In your live environment, you must - * protect the URL with an SSL certificate and ensure that it starts with - * `https://`. + * The URL where the component will appear. In your live environment, you must protect the URL with an SSL certificate and ensure that it starts with `https://`. + * @return allowOrigin The URL where the component will appear. In your live environment, you must protect the URL with an SSL certificate and ensure that it starts with `https://`. */ @JsonProperty(JSON_PROPERTY_ALLOW_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,12 +70,9 @@ public String getAllowOrigin() { } /** - * The URL where the component will appear. In your live environment, you must protect the URL - * with an SSL certificate and ensure that it starts with `https://`. + * The URL where the component will appear. In your live environment, you must protect the URL with an SSL certificate and ensure that it starts with `https://`. * - * @param allowOrigin The URL where the component will appear. In your live environment, you must - * protect the URL with an SSL certificate and ensure that it starts with - * `https://`. + * @param allowOrigin The URL where the component will appear. In your live environment, you must protect the URL with an SSL certificate and ensure that it starts with `https://`. */ @JsonProperty(JSON_PROPERTY_ALLOW_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,7 +83,7 @@ public void setAllowOrigin(String allowOrigin) { /** * policy * - * @param policy + * @param policy * @return the current {@code AuthenticationSessionRequest} instance, allowing for method chaining */ public AuthenticationSessionRequest policy(Policy policy) { @@ -90,8 +93,7 @@ public AuthenticationSessionRequest policy(Policy policy) { /** * Get policy - * - * @return policy + * @return policy */ @JsonProperty(JSON_PROPERTY_POLICY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,7 +104,7 @@ public Policy getPolicy() { /** * policy * - * @param policy + * @param policy */ @JsonProperty(JSON_PROPERTY_POLICY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,7 +115,7 @@ public void setPolicy(Policy policy) { /** * product * - * @param product + * @param product * @return the current {@code AuthenticationSessionRequest} instance, allowing for method chaining */ public AuthenticationSessionRequest product(ProductType product) { @@ -123,8 +125,7 @@ public AuthenticationSessionRequest product(ProductType product) { /** * Get product - * - * @return product + * @return product */ @JsonProperty(JSON_PROPERTY_PRODUCT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,7 +136,7 @@ public ProductType getProduct() { /** * product * - * @param product + * @param product */ @JsonProperty(JSON_PROPERTY_PRODUCT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,7 +144,9 @@ public void setProduct(ProductType product) { this.product = product; } - /** Return true if this AuthenticationSessionRequest object is equal to o. */ + /** + * Return true if this AuthenticationSessionRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -153,9 +156,9 @@ public boolean equals(Object o) { return false; } AuthenticationSessionRequest authenticationSessionRequest = (AuthenticationSessionRequest) o; - return Objects.equals(this.allowOrigin, authenticationSessionRequest.allowOrigin) - && Objects.equals(this.policy, authenticationSessionRequest.policy) - && Objects.equals(this.product, authenticationSessionRequest.product); + return Objects.equals(this.allowOrigin, authenticationSessionRequest.allowOrigin) && + Objects.equals(this.policy, authenticationSessionRequest.policy) && + Objects.equals(this.product, authenticationSessionRequest.product); } @Override @@ -175,7 +178,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -184,24 +188,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AuthenticationSessionRequest given an JSON string * * @param jsonString JSON string * @return An instance of AuthenticationSessionRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AuthenticationSessionRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to AuthenticationSessionRequest */ - public static AuthenticationSessionRequest fromJson(String jsonString) - throws JsonProcessingException { + public static AuthenticationSessionRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AuthenticationSessionRequest.class); } - - /** - * Convert an instance of AuthenticationSessionRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AuthenticationSessionRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/sessionauthentication/AuthenticationSessionResponse.java b/src/main/java/com/adyen/model/sessionauthentication/AuthenticationSessionResponse.java index e014962cc..2d9d90cfa 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/AuthenticationSessionResponse.java +++ b/src/main/java/com/adyen/model/sessionauthentication/AuthenticationSessionResponse.java @@ -2,26 +2,36 @@ * Session authentication API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.sessionauthentication; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** AuthenticationSessionResponse */ + +/** + * AuthenticationSessionResponse + */ @JsonPropertyOrder({ AuthenticationSessionResponse.JSON_PROPERTY_ID, AuthenticationSessionResponse.JSON_PROPERTY_TOKEN }) + public class AuthenticationSessionResponse { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -29,14 +39,14 @@ public class AuthenticationSessionResponse { public static final String JSON_PROPERTY_TOKEN = "token"; private String token; - public AuthenticationSessionResponse() {} + public AuthenticationSessionResponse() { + } /** * The unique identifier of the session. * * @param id The unique identifier of the session. - * @return the current {@code AuthenticationSessionResponse} instance, allowing for method - * chaining + * @return the current {@code AuthenticationSessionResponse} instance, allowing for method chaining */ public AuthenticationSessionResponse id(String id) { this.id = id; @@ -45,7 +55,6 @@ public AuthenticationSessionResponse id(String id) { /** * The unique identifier of the session. - * * @return id The unique identifier of the session. */ @JsonProperty(JSON_PROPERTY_ID) @@ -69,8 +78,7 @@ public void setId(String id) { * The session token created. * * @param token The session token created. - * @return the current {@code AuthenticationSessionResponse} instance, allowing for method - * chaining + * @return the current {@code AuthenticationSessionResponse} instance, allowing for method chaining */ public AuthenticationSessionResponse token(String token) { this.token = token; @@ -79,7 +87,6 @@ public AuthenticationSessionResponse token(String token) { /** * The session token created. - * * @return token The session token created. */ @JsonProperty(JSON_PROPERTY_TOKEN) @@ -99,7 +106,9 @@ public void setToken(String token) { this.token = token; } - /** Return true if this AuthenticationSessionResponse object is equal to o. */ + /** + * Return true if this AuthenticationSessionResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -109,8 +118,8 @@ public boolean equals(Object o) { return false; } AuthenticationSessionResponse authenticationSessionResponse = (AuthenticationSessionResponse) o; - return Objects.equals(this.id, authenticationSessionResponse.id) - && Objects.equals(this.token, authenticationSessionResponse.token); + return Objects.equals(this.id, authenticationSessionResponse.id) && + Objects.equals(this.token, authenticationSessionResponse.token); } @Override @@ -129,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -138,24 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AuthenticationSessionResponse given an JSON string * * @param jsonString JSON string * @return An instance of AuthenticationSessionResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AuthenticationSessionResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to AuthenticationSessionResponse */ - public static AuthenticationSessionResponse fromJson(String jsonString) - throws JsonProcessingException { + public static AuthenticationSessionResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AuthenticationSessionResponse.class); } - - /** - * Convert an instance of AuthenticationSessionResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AuthenticationSessionResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/sessionauthentication/BalanceAccountResource.java b/src/main/java/com/adyen/model/sessionauthentication/BalanceAccountResource.java index 6f38c2ea2..dfa50be4f 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/BalanceAccountResource.java +++ b/src/main/java/com/adyen/model/sessionauthentication/BalanceAccountResource.java @@ -2,46 +2,57 @@ * Session authentication API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.sessionauthentication; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.sessionauthentication.Resource; +import com.adyen.model.sessionauthentication.ResourceType; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** BalanceAccountResource */ -@JsonPropertyOrder({BalanceAccountResource.JSON_PROPERTY_BALANCE_ACCOUNT_ID}) + +/** + * BalanceAccountResource + */ +@JsonPropertyOrder({ + BalanceAccountResource.JSON_PROPERTY_BALANCE_ACCOUNT_ID +}) + @JsonIgnoreProperties( - value = - "type", // ignore manually set type, it will be automatically generated by Jackson during - // serialization - allowSetters = true // allows the type to be set during deserialization - ) -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - visible = true) + value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization + allowSetters = true // allows the type to be set during deserialization +) +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) + public class BalanceAccountResource extends Resource { public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; - public BalanceAccountResource() {} + public BalanceAccountResource() { + } /** * balanceAccountId * - * @param balanceAccountId + * @param balanceAccountId * @return the current {@code BalanceAccountResource} instance, allowing for method chaining */ public BalanceAccountResource balanceAccountId(String balanceAccountId) { @@ -51,8 +62,7 @@ public BalanceAccountResource balanceAccountId(String balanceAccountId) { /** * Get balanceAccountId - * - * @return balanceAccountId + * @return balanceAccountId */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,7 +73,7 @@ public String getBalanceAccountId() { /** * balanceAccountId * - * @param balanceAccountId + * @param balanceAccountId */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,7 +81,9 @@ public void setBalanceAccountId(String balanceAccountId) { this.balanceAccountId = balanceAccountId; } - /** Return true if this BalanceAccountResource object is equal to o. */ + /** + * Return true if this BalanceAccountResource object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -81,8 +93,8 @@ public boolean equals(Object o) { return false; } BalanceAccountResource balanceAccountResource = (BalanceAccountResource) o; - return Objects.equals(this.balanceAccountId, balanceAccountResource.balanceAccountId) - && super.equals(o); + return Objects.equals(this.balanceAccountId, balanceAccountResource.balanceAccountId) && + super.equals(o); } @Override @@ -101,7 +113,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -116,24 +129,21 @@ private String toIndentedString(Object o) { mappings.put("BalanceAccountResource", BalanceAccountResource.class); JSON.registerDiscriminator(BalanceAccountResource.class, "type", mappings); } - - /** +/** * Create an instance of BalanceAccountResource given an JSON string * * @param jsonString JSON string * @return An instance of BalanceAccountResource - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BalanceAccountResource + * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceAccountResource */ public static BalanceAccountResource fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceAccountResource.class); } - - /** - * Convert an instance of BalanceAccountResource to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BalanceAccountResource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/sessionauthentication/DefaultErrorResponseEntity.java b/src/main/java/com/adyen/model/sessionauthentication/DefaultErrorResponseEntity.java index 322bd0309..516409ac6 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/DefaultErrorResponseEntity.java +++ b/src/main/java/com/adyen/model/sessionauthentication/DefaultErrorResponseEntity.java @@ -2,24 +2,34 @@ * Session authentication API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.sessionauthentication; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.sessionauthentication.InvalidField; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** Standardized error response following RFC-7807 format */ +/** + * Standardized error response following RFC-7807 format + */ @JsonPropertyOrder({ DefaultErrorResponseEntity.JSON_PROPERTY_DETAIL, DefaultErrorResponseEntity.JSON_PROPERTY_ERROR_CODE, @@ -30,6 +40,7 @@ DefaultErrorResponseEntity.JSON_PROPERTY_TITLE, DefaultErrorResponseEntity.JSON_PROPERTY_TYPE }) + public class DefaultErrorResponseEntity { public static final String JSON_PROPERTY_DETAIL = "detail"; private String detail; @@ -55,7 +66,8 @@ public class DefaultErrorResponseEntity { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public DefaultErrorResponseEntity() {} + public DefaultErrorResponseEntity() { + } /** * A human-readable explanation specific to this occurrence of the problem. @@ -70,7 +82,6 @@ public DefaultErrorResponseEntity detail(String detail) { /** * A human-readable explanation specific to this occurrence of the problem. - * * @return detail A human-readable explanation specific to this occurrence of the problem. */ @JsonProperty(JSON_PROPERTY_DETAIL) @@ -103,7 +114,6 @@ public DefaultErrorResponseEntity errorCode(String errorCode) { /** * Unique business error code. - * * @return errorCode Unique business error code. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -136,7 +146,6 @@ public DefaultErrorResponseEntity instance(String instance) { /** * A URI that identifies the specific occurrence of the problem if applicable. - * * @return instance A URI that identifies the specific occurrence of the problem if applicable. */ @JsonProperty(JSON_PROPERTY_INSTANCE) @@ -177,7 +186,6 @@ public DefaultErrorResponseEntity addInvalidFieldsItem(InvalidField invalidField /** * Array of fields with validation errors when applicable. - * * @return invalidFields Array of fields with validation errors when applicable. */ @JsonProperty(JSON_PROPERTY_INVALID_FIELDS) @@ -210,7 +218,6 @@ public DefaultErrorResponseEntity requestId(String requestId) { /** * The unique reference for the request. - * * @return requestId The unique reference for the request. */ @JsonProperty(JSON_PROPERTY_REQUEST_ID) @@ -243,7 +250,6 @@ public DefaultErrorResponseEntity status(Integer status) { /** * The HTTP status code. - * * @return status The HTTP status code. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -276,7 +282,6 @@ public DefaultErrorResponseEntity title(String title) { /** * A short, human-readable summary of the problem type. - * * @return title A short, human-readable summary of the problem type. */ @JsonProperty(JSON_PROPERTY_TITLE) @@ -297,11 +302,9 @@ public void setTitle(String title) { } /** - * A URI that identifies the validation error type. It points to human-readable documentation for - * the problem type. + * A URI that identifies the validation error type. It points to human-readable documentation for the problem type. * - * @param type A URI that identifies the validation error type. It points to human-readable - * documentation for the problem type. + * @param type A URI that identifies the validation error type. It points to human-readable documentation for the problem type. * @return the current {@code DefaultErrorResponseEntity} instance, allowing for method chaining */ public DefaultErrorResponseEntity type(String type) { @@ -310,11 +313,8 @@ public DefaultErrorResponseEntity type(String type) { } /** - * A URI that identifies the validation error type. It points to human-readable documentation for - * the problem type. - * - * @return type A URI that identifies the validation error type. It points to human-readable - * documentation for the problem type. + * A URI that identifies the validation error type. It points to human-readable documentation for the problem type. + * @return type A URI that identifies the validation error type. It points to human-readable documentation for the problem type. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -323,11 +323,9 @@ public String getType() { } /** - * A URI that identifies the validation error type. It points to human-readable documentation for - * the problem type. + * A URI that identifies the validation error type. It points to human-readable documentation for the problem type. * - * @param type A URI that identifies the validation error type. It points to human-readable - * documentation for the problem type. + * @param type A URI that identifies the validation error type. It points to human-readable documentation for the problem type. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -335,7 +333,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this DefaultErrorResponseEntity object is equal to o. */ + /** + * Return true if this DefaultErrorResponseEntity object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -345,14 +345,14 @@ public boolean equals(Object o) { return false; } DefaultErrorResponseEntity defaultErrorResponseEntity = (DefaultErrorResponseEntity) o; - return Objects.equals(this.detail, defaultErrorResponseEntity.detail) - && Objects.equals(this.errorCode, defaultErrorResponseEntity.errorCode) - && Objects.equals(this.instance, defaultErrorResponseEntity.instance) - && Objects.equals(this.invalidFields, defaultErrorResponseEntity.invalidFields) - && Objects.equals(this.requestId, defaultErrorResponseEntity.requestId) - && Objects.equals(this.status, defaultErrorResponseEntity.status) - && Objects.equals(this.title, defaultErrorResponseEntity.title) - && Objects.equals(this.type, defaultErrorResponseEntity.type); + return Objects.equals(this.detail, defaultErrorResponseEntity.detail) && + Objects.equals(this.errorCode, defaultErrorResponseEntity.errorCode) && + Objects.equals(this.instance, defaultErrorResponseEntity.instance) && + Objects.equals(this.invalidFields, defaultErrorResponseEntity.invalidFields) && + Objects.equals(this.requestId, defaultErrorResponseEntity.requestId) && + Objects.equals(this.status, defaultErrorResponseEntity.status) && + Objects.equals(this.title, defaultErrorResponseEntity.title) && + Objects.equals(this.type, defaultErrorResponseEntity.type); } @Override @@ -377,7 +377,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -386,24 +387,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DefaultErrorResponseEntity given an JSON string * * @param jsonString JSON string * @return An instance of DefaultErrorResponseEntity - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DefaultErrorResponseEntity + * @throws JsonProcessingException if the JSON string is invalid with respect to DefaultErrorResponseEntity */ - public static DefaultErrorResponseEntity fromJson(String jsonString) - throws JsonProcessingException { + public static DefaultErrorResponseEntity fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DefaultErrorResponseEntity.class); } - - /** - * Convert an instance of DefaultErrorResponseEntity to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DefaultErrorResponseEntity to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/sessionauthentication/InvalidField.java b/src/main/java/com/adyen/model/sessionauthentication/InvalidField.java index 363199846..22e088ef4 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/InvalidField.java +++ b/src/main/java/com/adyen/model/sessionauthentication/InvalidField.java @@ -2,27 +2,37 @@ * Session authentication API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.sessionauthentication; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** InvalidField */ + +/** + * InvalidField + */ @JsonPropertyOrder({ InvalidField.JSON_PROPERTY_NAME, InvalidField.JSON_PROPERTY_VALUE, InvalidField.JSON_PROPERTY_MESSAGE }) + public class InvalidField { public static final String JSON_PROPERTY_NAME = "name"; private String name; @@ -33,7 +43,8 @@ public class InvalidField { public static final String JSON_PROPERTY_MESSAGE = "message"; private String message; - public InvalidField() {} + public InvalidField() { + } /** * The field that has an invalid value. @@ -48,7 +59,6 @@ public InvalidField name(String name) { /** * The field that has an invalid value. - * * @return name The field that has an invalid value. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -81,7 +91,6 @@ public InvalidField value(String value) { /** * The invalid value. - * * @return value The invalid value. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -114,7 +123,6 @@ public InvalidField message(String message) { /** * Description of the validation error. - * * @return message Description of the validation error. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -134,7 +142,9 @@ public void setMessage(String message) { this.message = message; } - /** Return true if this InvalidField object is equal to o. */ + /** + * Return true if this InvalidField object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,9 +154,9 @@ public boolean equals(Object o) { return false; } InvalidField invalidField = (InvalidField) o; - return Objects.equals(this.name, invalidField.name) - && Objects.equals(this.value, invalidField.value) - && Objects.equals(this.message, invalidField.message); + return Objects.equals(this.name, invalidField.name) && + Objects.equals(this.value, invalidField.value) && + Objects.equals(this.message, invalidField.message); } @Override @@ -166,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of InvalidField given an JSON string * * @param jsonString JSON string @@ -185,12 +196,11 @@ private String toIndentedString(Object o) { public static InvalidField fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, InvalidField.class); } - - /** - * Convert an instance of InvalidField to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of InvalidField to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/sessionauthentication/JSON.java b/src/main/java/com/adyen/model/sessionauthentication/JSON.java index c3aafeaa0..e0f340051 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/JSON.java +++ b/src/main/java/com/adyen/model/sessionauthentication/JSON.java @@ -1,18 +1,21 @@ package com.adyen.model.sessionauthentication; -import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; +import com.adyen.serializer.ByteArrayDeserializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; +import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; +import com.adyen.model.sessionauthentication.*; + import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -37,7 +40,6 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. - * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -54,13 +56,11 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { - return mapper; - } + public static ObjectMapper getMapper() { return mapper; } /** - * Returns the target model class that should be used to deserialize the input data. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,7 +73,9 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** Helper class to register the discriminator mappings. */ + /** + * Helper class to register the discriminator mappings. + */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -115,9 +117,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. This - * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -162,14 +164,13 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so - * it's not possible to use the instanceof keyword. + * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, + * so it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf( - Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -193,58 +194,59 @@ public static boolean isInstanceOf( return false; } - /** A map of discriminators for all model classes. */ - private static final Map, ClassDiscriminatorMapping> modelDiscriminators = - new HashMap, ClassDiscriminatorMapping>(); + /** + * A map of discriminators for all model classes. + */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); - /** A map of oneOf/anyOf descendants for each model class. */ + /** + * A map of oneOf/anyOf descendants for each model class. + */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator( - Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = - new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants( - Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants(Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static { + static + { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/sessionauthentication/LegalEntityResource.java b/src/main/java/com/adyen/model/sessionauthentication/LegalEntityResource.java index 9ba2208fb..f36e0c8c8 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/LegalEntityResource.java +++ b/src/main/java/com/adyen/model/sessionauthentication/LegalEntityResource.java @@ -2,55 +2,57 @@ * Session authentication API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.sessionauthentication; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.sessionauthentication.Resource; +import com.adyen.model.sessionauthentication.ResourceType; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** LegalEntityResource */ -@JsonPropertyOrder({LegalEntityResource.JSON_PROPERTY_LEGAL_ENTITY_ID}) + +/** + * LegalEntityResource + */ +@JsonPropertyOrder({ + LegalEntityResource.JSON_PROPERTY_LEGAL_ENTITY_ID +}) + @JsonIgnoreProperties( - value = - "type", // ignore manually set type, it will be automatically generated by Jackson during - // serialization - allowSetters = true // allows the type to be set during deserialization - ) -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - visible = true) + value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization + allowSetters = true // allows the type to be set during deserialization +) +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) + public class LegalEntityResource extends Resource { public static final String JSON_PROPERTY_LEGAL_ENTITY_ID = "legalEntityId"; private String legalEntityId; - public LegalEntityResource() {} + public LegalEntityResource() { + } /** - * The unique identifier of the resource connected to the component. For [Onboarding - * components](https://docs.adyen.com/platforms/onboard-users/components), this is the legal - * entity that has a contractual relationship with your platform and owns the [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). - * For sole proprietorships, this is the legal entity of the individual owner. + * The unique identifier of the resource connected to the component. For [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the legal entity that has a contractual relationship with your platform and owns the [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). For sole proprietorships, this is the legal entity of the individual owner. * - * @param legalEntityId The unique identifier of the resource connected to the component. For - * [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is - * the legal entity that has a contractual relationship with your platform and owns the - * [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). - * For sole proprietorships, this is the legal entity of the individual owner. + * @param legalEntityId The unique identifier of the resource connected to the component. For [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the legal entity that has a contractual relationship with your platform and owns the [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). For sole proprietorships, this is the legal entity of the individual owner. * @return the current {@code LegalEntityResource} instance, allowing for method chaining */ public LegalEntityResource legalEntityId(String legalEntityId) { @@ -59,18 +61,8 @@ public LegalEntityResource legalEntityId(String legalEntityId) { } /** - * The unique identifier of the resource connected to the component. For [Onboarding - * components](https://docs.adyen.com/platforms/onboard-users/components), this is the legal - * entity that has a contractual relationship with your platform and owns the [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). - * For sole proprietorships, this is the legal entity of the individual owner. - * - * @return legalEntityId The unique identifier of the resource connected to the component. For - * [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is - * the legal entity that has a contractual relationship with your platform and owns the - * [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). - * For sole proprietorships, this is the legal entity of the individual owner. + * The unique identifier of the resource connected to the component. For [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the legal entity that has a contractual relationship with your platform and owns the [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). For sole proprietorships, this is the legal entity of the individual owner. + * @return legalEntityId The unique identifier of the resource connected to the component. For [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the legal entity that has a contractual relationship with your platform and owns the [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). For sole proprietorships, this is the legal entity of the individual owner. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,18 +71,9 @@ public String getLegalEntityId() { } /** - * The unique identifier of the resource connected to the component. For [Onboarding - * components](https://docs.adyen.com/platforms/onboard-users/components), this is the legal - * entity that has a contractual relationship with your platform and owns the [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). - * For sole proprietorships, this is the legal entity of the individual owner. + * The unique identifier of the resource connected to the component. For [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the legal entity that has a contractual relationship with your platform and owns the [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). For sole proprietorships, this is the legal entity of the individual owner. * - * @param legalEntityId The unique identifier of the resource connected to the component. For - * [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is - * the legal entity that has a contractual relationship with your platform and owns the - * [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). - * For sole proprietorships, this is the legal entity of the individual owner. + * @param legalEntityId The unique identifier of the resource connected to the component. For [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the legal entity that has a contractual relationship with your platform and owns the [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). For sole proprietorships, this is the legal entity of the individual owner. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -98,7 +81,9 @@ public void setLegalEntityId(String legalEntityId) { this.legalEntityId = legalEntityId; } - /** Return true if this LegalEntityResource object is equal to o. */ + /** + * Return true if this LegalEntityResource object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -108,7 +93,8 @@ public boolean equals(Object o) { return false; } LegalEntityResource legalEntityResource = (LegalEntityResource) o; - return Objects.equals(this.legalEntityId, legalEntityResource.legalEntityId) && super.equals(o); + return Objects.equals(this.legalEntityId, legalEntityResource.legalEntityId) && + super.equals(o); } @Override @@ -127,7 +113,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -142,24 +129,21 @@ private String toIndentedString(Object o) { mappings.put("LegalEntityResource", LegalEntityResource.class); JSON.registerDiscriminator(LegalEntityResource.class, "type", mappings); } - - /** +/** * Create an instance of LegalEntityResource given an JSON string * * @param jsonString JSON string * @return An instance of LegalEntityResource - * @throws JsonProcessingException if the JSON string is invalid with respect to - * LegalEntityResource + * @throws JsonProcessingException if the JSON string is invalid with respect to LegalEntityResource */ public static LegalEntityResource fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, LegalEntityResource.class); } - - /** - * Convert an instance of LegalEntityResource to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of LegalEntityResource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/sessionauthentication/MerchantAccountResource.java b/src/main/java/com/adyen/model/sessionauthentication/MerchantAccountResource.java index 9d9788a9d..bbf5046e8 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/MerchantAccountResource.java +++ b/src/main/java/com/adyen/model/sessionauthentication/MerchantAccountResource.java @@ -2,46 +2,57 @@ * Session authentication API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.sessionauthentication; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.sessionauthentication.Resource; +import com.adyen.model.sessionauthentication.ResourceType; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** MerchantAccountResource */ -@JsonPropertyOrder({MerchantAccountResource.JSON_PROPERTY_MERCHANT_ACCOUNT_CODE}) + +/** + * MerchantAccountResource + */ +@JsonPropertyOrder({ + MerchantAccountResource.JSON_PROPERTY_MERCHANT_ACCOUNT_CODE +}) + @JsonIgnoreProperties( - value = - "type", // ignore manually set type, it will be automatically generated by Jackson during - // serialization - allowSetters = true // allows the type to be set during deserialization - ) -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - visible = true) + value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization + allowSetters = true // allows the type to be set during deserialization +) +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) + public class MerchantAccountResource extends Resource { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT_CODE = "merchantAccountCode"; private String merchantAccountCode; - public MerchantAccountResource() {} + public MerchantAccountResource() { + } /** * merchantAccountCode * - * @param merchantAccountCode + * @param merchantAccountCode * @return the current {@code MerchantAccountResource} instance, allowing for method chaining */ public MerchantAccountResource merchantAccountCode(String merchantAccountCode) { @@ -51,8 +62,7 @@ public MerchantAccountResource merchantAccountCode(String merchantAccountCode) { /** * Get merchantAccountCode - * - * @return merchantAccountCode + * @return merchantAccountCode */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,7 +73,7 @@ public String getMerchantAccountCode() { /** * merchantAccountCode * - * @param merchantAccountCode + * @param merchantAccountCode */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,7 +81,9 @@ public void setMerchantAccountCode(String merchantAccountCode) { this.merchantAccountCode = merchantAccountCode; } - /** Return true if this MerchantAccountResource object is equal to o. */ + /** + * Return true if this MerchantAccountResource object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -81,8 +93,8 @@ public boolean equals(Object o) { return false; } MerchantAccountResource merchantAccountResource = (MerchantAccountResource) o; - return Objects.equals(this.merchantAccountCode, merchantAccountResource.merchantAccountCode) - && super.equals(o); + return Objects.equals(this.merchantAccountCode, merchantAccountResource.merchantAccountCode) && + super.equals(o); } @Override @@ -95,15 +107,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MerchantAccountResource {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" merchantAccountCode: ") - .append(toIndentedString(merchantAccountCode)) - .append("\n"); + sb.append(" merchantAccountCode: ").append(toIndentedString(merchantAccountCode)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -118,24 +129,21 @@ private String toIndentedString(Object o) { mappings.put("MerchantAccountResource", MerchantAccountResource.class); JSON.registerDiscriminator(MerchantAccountResource.class, "type", mappings); } - - /** +/** * Create an instance of MerchantAccountResource given an JSON string * * @param jsonString JSON string * @return An instance of MerchantAccountResource - * @throws JsonProcessingException if the JSON string is invalid with respect to - * MerchantAccountResource + * @throws JsonProcessingException if the JSON string is invalid with respect to MerchantAccountResource */ public static MerchantAccountResource fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MerchantAccountResource.class); } - - /** - * Convert an instance of MerchantAccountResource to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of MerchantAccountResource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/sessionauthentication/PaymentInstrumentResource.java b/src/main/java/com/adyen/model/sessionauthentication/PaymentInstrumentResource.java index d6bfe35a7..1187c64c2 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/PaymentInstrumentResource.java +++ b/src/main/java/com/adyen/model/sessionauthentication/PaymentInstrumentResource.java @@ -2,46 +2,57 @@ * Session authentication API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.sessionauthentication; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.sessionauthentication.Resource; +import com.adyen.model.sessionauthentication.ResourceType; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** PaymentInstrumentResource */ -@JsonPropertyOrder({PaymentInstrumentResource.JSON_PROPERTY_PAYMENT_INSTRUMENT_ID}) + +/** + * PaymentInstrumentResource + */ +@JsonPropertyOrder({ + PaymentInstrumentResource.JSON_PROPERTY_PAYMENT_INSTRUMENT_ID +}) + @JsonIgnoreProperties( - value = - "type", // ignore manually set type, it will be automatically generated by Jackson during - // serialization - allowSetters = true // allows the type to be set during deserialization - ) -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - visible = true) + value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization + allowSetters = true // allows the type to be set during deserialization +) +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) + public class PaymentInstrumentResource extends Resource { public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT_ID = "paymentInstrumentId"; private String paymentInstrumentId; - public PaymentInstrumentResource() {} + public PaymentInstrumentResource() { + } /** * paymentInstrumentId * - * @param paymentInstrumentId + * @param paymentInstrumentId * @return the current {@code PaymentInstrumentResource} instance, allowing for method chaining */ public PaymentInstrumentResource paymentInstrumentId(String paymentInstrumentId) { @@ -51,8 +62,7 @@ public PaymentInstrumentResource paymentInstrumentId(String paymentInstrumentId) /** * Get paymentInstrumentId - * - * @return paymentInstrumentId + * @return paymentInstrumentId */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,7 +73,7 @@ public String getPaymentInstrumentId() { /** * paymentInstrumentId * - * @param paymentInstrumentId + * @param paymentInstrumentId */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,7 +81,9 @@ public void setPaymentInstrumentId(String paymentInstrumentId) { this.paymentInstrumentId = paymentInstrumentId; } - /** Return true if this PaymentInstrumentResource object is equal to o. */ + /** + * Return true if this PaymentInstrumentResource object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -81,8 +93,8 @@ public boolean equals(Object o) { return false; } PaymentInstrumentResource paymentInstrumentResource = (PaymentInstrumentResource) o; - return Objects.equals(this.paymentInstrumentId, paymentInstrumentResource.paymentInstrumentId) - && super.equals(o); + return Objects.equals(this.paymentInstrumentId, paymentInstrumentResource.paymentInstrumentId) && + super.equals(o); } @Override @@ -95,15 +107,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentInstrumentResource {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" paymentInstrumentId: ") - .append(toIndentedString(paymentInstrumentId)) - .append("\n"); + sb.append(" paymentInstrumentId: ").append(toIndentedString(paymentInstrumentId)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -118,25 +129,21 @@ private String toIndentedString(Object o) { mappings.put("PaymentInstrumentResource", PaymentInstrumentResource.class); JSON.registerDiscriminator(PaymentInstrumentResource.class, "type", mappings); } - - /** +/** * Create an instance of PaymentInstrumentResource given an JSON string * * @param jsonString JSON string * @return An instance of PaymentInstrumentResource - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentInstrumentResource + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentInstrumentResource */ - public static PaymentInstrumentResource fromJson(String jsonString) - throws JsonProcessingException { + public static PaymentInstrumentResource fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentInstrumentResource.class); } - - /** - * Convert an instance of PaymentInstrumentResource to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentInstrumentResource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/sessionauthentication/Policy.java b/src/main/java/com/adyen/model/sessionauthentication/Policy.java index 819ad6f7a..889c1e035 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/Policy.java +++ b/src/main/java/com/adyen/model/sessionauthentication/Policy.java @@ -2,26 +2,40 @@ * Session authentication API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.sessionauthentication; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.sessionauthentication.Resource; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import java.util.*; +import java.util.Arrays; import java.util.LinkedHashSet; import java.util.Set; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * Policy + */ +@JsonPropertyOrder({ + Policy.JSON_PROPERTY_RESOURCES, + Policy.JSON_PROPERTY_ROLES +}) -/** Policy */ -@JsonPropertyOrder({Policy.JSON_PROPERTY_RESOURCES, Policy.JSON_PROPERTY_ROLES}) public class Policy { public static final String JSON_PROPERTY_RESOURCES = "resources"; private Set resources; @@ -29,24 +43,13 @@ public class Policy { public static final String JSON_PROPERTY_ROLES = "roles"; private Set roles; - public Policy() {} + public Policy() { + } /** - * An object containing the type and the unique identifier of the user of the component. For - * [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the - * ID of the legal entity that has a contractual relationship with your platform. For sole - * proprietorships, use the ID of the legal entity of the individual owner. For [Platform - * Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the ID - * of the account holder that is associated with the balance account shown in the component. + * An object containing the type and the unique identifier of the user of the component. For [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the ID of the legal entity that has a contractual relationship with your platform. For sole proprietorships, use the ID of the legal entity of the individual owner. For [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the ID of the account holder that is associated with the balance account shown in the component. * - * @param resources An object containing the type and the unique identifier of the user of the - * component. For [Onboarding - * components](https://docs.adyen.com/platforms/onboard-users/components), this is the ID of - * the legal entity that has a contractual relationship with your platform. For sole - * proprietorships, use the ID of the legal entity of the individual owner. For [Platform - * Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the - * ID of the account holder that is associated with the balance account shown in the - * component. + * @param resources An object containing the type and the unique identifier of the user of the component. For [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the ID of the legal entity that has a contractual relationship with your platform. For sole proprietorships, use the ID of the legal entity of the individual owner. For [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the ID of the account holder that is associated with the balance account shown in the component. * @return the current {@code Policy} instance, allowing for method chaining */ public Policy resources(Set resources) { @@ -63,21 +66,8 @@ public Policy addResourcesItem(Resource resourcesItem) { } /** - * An object containing the type and the unique identifier of the user of the component. For - * [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the - * ID of the legal entity that has a contractual relationship with your platform. For sole - * proprietorships, use the ID of the legal entity of the individual owner. For [Platform - * Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the ID - * of the account holder that is associated with the balance account shown in the component. - * - * @return resources An object containing the type and the unique identifier of the user of the - * component. For [Onboarding - * components](https://docs.adyen.com/platforms/onboard-users/components), this is the ID of - * the legal entity that has a contractual relationship with your platform. For sole - * proprietorships, use the ID of the legal entity of the individual owner. For [Platform - * Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the - * ID of the account holder that is associated with the balance account shown in the - * component. + * An object containing the type and the unique identifier of the user of the component. For [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the ID of the legal entity that has a contractual relationship with your platform. For sole proprietorships, use the ID of the legal entity of the individual owner. For [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the ID of the account holder that is associated with the balance account shown in the component. + * @return resources An object containing the type and the unique identifier of the user of the component. For [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the ID of the legal entity that has a contractual relationship with your platform. For sole proprietorships, use the ID of the legal entity of the individual owner. For [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the ID of the account holder that is associated with the balance account shown in the component. */ @JsonProperty(JSON_PROPERTY_RESOURCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -86,21 +76,9 @@ public Set getResources() { } /** - * An object containing the type and the unique identifier of the user of the component. For - * [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the - * ID of the legal entity that has a contractual relationship with your platform. For sole - * proprietorships, use the ID of the legal entity of the individual owner. For [Platform - * Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the ID - * of the account holder that is associated with the balance account shown in the component. + * An object containing the type and the unique identifier of the user of the component. For [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the ID of the legal entity that has a contractual relationship with your platform. For sole proprietorships, use the ID of the legal entity of the individual owner. For [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the ID of the account holder that is associated with the balance account shown in the component. * - * @param resources An object containing the type and the unique identifier of the user of the - * component. For [Onboarding - * components](https://docs.adyen.com/platforms/onboard-users/components), this is the ID of - * the legal entity that has a contractual relationship with your platform. For sole - * proprietorships, use the ID of the legal entity of the individual owner. For [Platform - * Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the - * ID of the account holder that is associated with the balance account shown in the - * component. + * @param resources An object containing the type and the unique identifier of the user of the component. For [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the ID of the legal entity that has a contractual relationship with your platform. For sole proprietorships, use the ID of the legal entity of the individual owner. For [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the ID of the account holder that is associated with the balance account shown in the component. */ @JsonDeserialize(as = LinkedHashSet.class) @JsonProperty(JSON_PROPERTY_RESOURCES) @@ -130,7 +108,6 @@ public Policy addRolesItem(String rolesItem) { /** * The name of the role required to use the component. - * * @return roles The name of the role required to use the component. */ @JsonProperty(JSON_PROPERTY_ROLES) @@ -151,7 +128,9 @@ public void setRoles(Set roles) { this.roles = roles; } - /** Return true if this Policy object is equal to o. */ + /** + * Return true if this Policy object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -161,8 +140,8 @@ public boolean equals(Object o) { return false; } Policy policy = (Policy) o; - return Objects.equals(this.resources, policy.resources) - && Objects.equals(this.roles, policy.roles); + return Objects.equals(this.resources, policy.resources) && + Objects.equals(this.roles, policy.roles); } @Override @@ -181,7 +160,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -190,7 +170,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Policy given an JSON string * * @param jsonString JSON string @@ -200,12 +180,11 @@ private String toIndentedString(Object o) { public static Policy fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Policy.class); } - - /** - * Convert an instance of Policy to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Policy to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/sessionauthentication/ProductType.java b/src/main/java/com/adyen/model/sessionauthentication/ProductType.java index 9784a9393..e1f23af68 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/ProductType.java +++ b/src/main/java/com/adyen/model/sessionauthentication/ProductType.java @@ -2,25 +2,34 @@ * Session authentication API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.sessionauthentication; +import java.util.*; +import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -import java.util.*; -/** Gets or Sets ProductType */ +/** + * Gets or Sets ProductType + */ public enum ProductType { + ONBOARDING("onboarding"), - + PLATFORM("platform"), - + BANK("bank"); private String value; @@ -49,3 +58,4 @@ public static ProductType fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } + diff --git a/src/main/java/com/adyen/model/sessionauthentication/Resource.java b/src/main/java/com/adyen/model/sessionauthentication/Resource.java index 37196efc7..ac420fa5d 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/Resource.java +++ b/src/main/java/com/adyen/model/sessionauthentication/Resource.java @@ -2,37 +2,44 @@ * Session authentication API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.sessionauthentication; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.sessionauthentication.ResourceType; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Resource */ -@JsonPropertyOrder({Resource.JSON_PROPERTY_TYPE}) + +/** + * Resource + */ +@JsonPropertyOrder({ + Resource.JSON_PROPERTY_TYPE +}) + @JsonIgnoreProperties( - value = - "type", // ignore manually set type, it will be automatically generated by Jackson during - // serialization - allowSetters = true // allows the type to be set during deserialization - ) -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - visible = true) + value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization + allowSetters = true // allows the type to be set during deserialization +) +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) @JsonSubTypes({ @JsonSubTypes.Type(value = AccountHolderResource.class, name = "accountHolder"), @JsonSubTypes.Type(value = BalanceAccountResource.class, name = "balanceAccount"), @@ -40,16 +47,18 @@ @JsonSubTypes.Type(value = MerchantAccountResource.class, name = "merchantAccount"), @JsonSubTypes.Type(value = PaymentInstrumentResource.class, name = "paymentInstrument"), }) + public class Resource { public static final String JSON_PROPERTY_TYPE = "type"; private ResourceType type; - public Resource() {} + public Resource() { + } /** * type * - * @param type + * @param type * @return the current {@code Resource} instance, allowing for method chaining */ public Resource type(ResourceType type) { @@ -59,8 +68,7 @@ public Resource type(ResourceType type) { /** * Get type - * - * @return type + * @return type */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,7 +79,7 @@ public ResourceType getType() { /** * type * - * @param type + * @param type */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,7 +87,9 @@ public void setType(ResourceType type) { this.type = type; } - /** Return true if this Resource object is equal to o. */ + /** + * Return true if this Resource object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -107,7 +117,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -127,8 +138,7 @@ private String toIndentedString(Object o) { mappings.put("Resource", Resource.class); JSON.registerDiscriminator(Resource.class, "type", mappings); } - - /** +/** * Create an instance of Resource given an JSON string * * @param jsonString JSON string @@ -138,12 +148,11 @@ private String toIndentedString(Object o) { public static Resource fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Resource.class); } - - /** - * Convert an instance of Resource to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Resource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/sessionauthentication/ResourceType.java b/src/main/java/com/adyen/model/sessionauthentication/ResourceType.java index 3dfe0b78d..7dca8f708 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/ResourceType.java +++ b/src/main/java/com/adyen/model/sessionauthentication/ResourceType.java @@ -2,29 +2,38 @@ * Session authentication API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.sessionauthentication; +import java.util.*; +import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -import java.util.*; -/** Gets or Sets ResourceType */ +/** + * Gets or Sets ResourceType + */ public enum ResourceType { + LEGALENTITY("legalEntity"), - + BALANCEACCOUNT("balanceAccount"), - + ACCOUNTHOLDER("accountHolder"), - + MERCHANTACCOUNT("merchantAccount"), - + PAYMENTINSTRUMENT("paymentInstrument"); private String value; @@ -53,3 +62,4 @@ public static ResourceType fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } + diff --git a/src/main/java/com/adyen/model/storedvalue/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/storedvalue/AbstractOpenApiSchema.java index dd06ee5f2..d67d7c0be 100644 --- a/src/main/java/com/adyen/model/storedvalue/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/storedvalue/AbstractOpenApiSchema.java @@ -2,141 +2,145 @@ * Adyen Stored Value API * * The version of the OpenAPI document: 46 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.storedvalue; -import com.fasterxml.jackson.annotation.JsonValue; -import jakarta.ws.rs.core.GenericType; -import java.util.Map; import java.util.Objects; +import java.util.Map; +import jakarta.ws.rs.core.GenericType; -/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec + */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() { - return instance; - } - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) { - this.instance = instance; - } - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf - * schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); - } else { - return object.getActualInstance(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() {return instance;} + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) {this.instance = instance;} + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); + } else { + return object.getActualInstance(); + } + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) && + Objects.equals(this.isNullable, a.isNullable) && + Objects.equals(this.schemaType, a.schemaType); } - return o.toString().replace("\n", "\n "); - } - public boolean equals(Object o) { - if (this == o) { - return true; + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); } - if (o == null || getClass() != o.getClass()) { - return false; + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) - && Objects.equals(this.isNullable, a.isNullable) - && Objects.equals(this.schemaType, a.schemaType); - } - - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); - } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); - } -} + + + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/storedvalue/Amount.java b/src/main/java/com/adyen/model/storedvalue/Amount.java index d3c6bc931..22b5fdbe9 100644 --- a/src/main/java/com/adyen/model/storedvalue/Amount.java +++ b/src/main/java/com/adyen/model/storedvalue/Amount.java @@ -2,23 +2,36 @@ * Adyen Stored Value API * * The version of the OpenAPI document: 46 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.storedvalue; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Amount */ -@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) + +/** + * Amount + */ +@JsonPropertyOrder({ + Amount.JSON_PROPERTY_CURRENCY, + Amount.JSON_PROPERTY_VALUE +}) + public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -26,14 +39,13 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() {} + public Amount() { + } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount currency(String currency) { @@ -42,11 +54,8 @@ public Amount currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -55,11 +64,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,11 +75,9 @@ public void setCurrency(String currency) { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * @param value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount value(Long value) { @@ -81,11 +86,8 @@ public Amount value(Long value) { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). - * - * @return value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @return value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,11 +96,9 @@ public Long getValue() { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * @param value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes). + * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,7 +106,9 @@ public void setValue(Long value) { this.value = value; } - /** Return true if this Amount object is equal to o. */ + /** + * Return true if this Amount object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -116,8 +118,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) - && Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) && + Objects.equals(this.value, amount.value); } @Override @@ -136,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -155,12 +158,11 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } - - /** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/storedvalue/JSON.java b/src/main/java/com/adyen/model/storedvalue/JSON.java index 37a4e8b50..b3a4872cf 100644 --- a/src/main/java/com/adyen/model/storedvalue/JSON.java +++ b/src/main/java/com/adyen/model/storedvalue/JSON.java @@ -1,18 +1,21 @@ package com.adyen.model.storedvalue; -import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; +import com.adyen.serializer.ByteArrayDeserializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; +import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; +import com.adyen.model.storedvalue.*; + import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -37,7 +40,6 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. - * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -54,13 +56,11 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { - return mapper; - } + public static ObjectMapper getMapper() { return mapper; } /** - * Returns the target model class that should be used to deserialize the input data. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,7 +73,9 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** Helper class to register the discriminator mappings. */ + /** + * Helper class to register the discriminator mappings. + */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -115,9 +117,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. This - * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -162,14 +164,13 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so - * it's not possible to use the instanceof keyword. + * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, + * so it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf( - Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -193,58 +194,59 @@ public static boolean isInstanceOf( return false; } - /** A map of discriminators for all model classes. */ - private static final Map, ClassDiscriminatorMapping> modelDiscriminators = - new HashMap, ClassDiscriminatorMapping>(); + /** + * A map of discriminators for all model classes. + */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); - /** A map of oneOf/anyOf descendants for each model class. */ + /** + * A map of oneOf/anyOf descendants for each model class. + */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator( - Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = - new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants( - Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants(Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static { + static + { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/storedvalue/ServiceError.java b/src/main/java/com/adyen/model/storedvalue/ServiceError.java index 3b3b51dbf..089e8ffac 100644 --- a/src/main/java/com/adyen/model/storedvalue/ServiceError.java +++ b/src/main/java/com/adyen/model/storedvalue/ServiceError.java @@ -2,24 +2,33 @@ * Adyen Stored Value API * * The version of the OpenAPI document: 46 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.storedvalue; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ServiceError */ +/** + * ServiceError + */ @JsonPropertyOrder({ ServiceError.JSON_PROPERTY_ADDITIONAL_DATA, ServiceError.JSON_PROPERTY_ERROR_CODE, @@ -28,6 +37,7 @@ ServiceError.JSON_PROPERTY_PSP_REFERENCE, ServiceError.JSON_PROPERTY_STATUS }) + public class ServiceError { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -47,15 +57,13 @@ public class ServiceError { public static final String JSON_PROPERTY_STATUS = "status"; private Integer status; - public ServiceError() {} + public ServiceError() { + } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first. Go to **Customer Area** > **Developers** > - * **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. * @return the current {@code ServiceError} instance, allowing for method chaining */ public ServiceError additionalData(Map additionalData) { @@ -72,12 +80,8 @@ public ServiceError putAdditionalDataItem(String key, String additionalDataItem) } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first. Go to **Customer Area** > **Developers** > **Additional data**. - * - * @return additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first. Go to **Customer Area** > **Developers** > - * **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * @return additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -86,12 +90,9 @@ public Map getAdditionalData() { } /** - * Contains additional information about the payment. Some data fields are included only if you - * select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are - * included only if you select them first. Go to **Customer Area** > **Developers** > - * **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,7 +113,6 @@ public ServiceError errorCode(String errorCode) { /** * The error code mapped to the error message. - * * @return errorCode The error code mapped to the error message. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -145,7 +145,6 @@ public ServiceError errorType(String errorType) { /** * The category of the error. - * * @return errorType The category of the error. */ @JsonProperty(JSON_PROPERTY_ERROR_TYPE) @@ -178,7 +177,6 @@ public ServiceError message(String message) { /** * A short explanation of the issue. - * * @return message A short explanation of the issue. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -211,7 +209,6 @@ public ServiceError pspReference(String pspReference) { /** * The PSP reference of the payment. - * * @return pspReference The PSP reference of the payment. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -244,7 +241,6 @@ public ServiceError status(Integer status) { /** * The HTTP response status. - * * @return status The HTTP response status. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -264,7 +260,9 @@ public void setStatus(Integer status) { this.status = status; } - /** Return true if this ServiceError object is equal to o. */ + /** + * Return true if this ServiceError object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -274,12 +272,12 @@ public boolean equals(Object o) { return false; } ServiceError serviceError = (ServiceError) o; - return Objects.equals(this.additionalData, serviceError.additionalData) - && Objects.equals(this.errorCode, serviceError.errorCode) - && Objects.equals(this.errorType, serviceError.errorType) - && Objects.equals(this.message, serviceError.message) - && Objects.equals(this.pspReference, serviceError.pspReference) - && Objects.equals(this.status, serviceError.status); + return Objects.equals(this.additionalData, serviceError.additionalData) && + Objects.equals(this.errorCode, serviceError.errorCode) && + Objects.equals(this.errorType, serviceError.errorType) && + Objects.equals(this.message, serviceError.message) && + Objects.equals(this.pspReference, serviceError.pspReference) && + Objects.equals(this.status, serviceError.status); } @Override @@ -302,7 +300,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -311,7 +310,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ServiceError given an JSON string * * @param jsonString JSON string @@ -321,12 +320,11 @@ private String toIndentedString(Object o) { public static ServiceError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } - - /** - * Convert an instance of ServiceError to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ServiceError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceCheckRequest.java b/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceCheckRequest.java index 622733c3a..8f22a9fc5 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceCheckRequest.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceCheckRequest.java @@ -2,28 +2,34 @@ * Adyen Stored Value API * * The version of the OpenAPI document: 46 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.storedvalue; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.storedvalue.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** StoredValueBalanceCheckRequest */ + +/** + * StoredValueBalanceCheckRequest + */ @JsonPropertyOrder({ StoredValueBalanceCheckRequest.JSON_PROPERTY_AMOUNT, StoredValueBalanceCheckRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, @@ -34,6 +40,7 @@ StoredValueBalanceCheckRequest.JSON_PROPERTY_SHOPPER_REFERENCE, StoredValueBalanceCheckRequest.JSON_PROPERTY_STORE }) + public class StoredValueBalanceCheckRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -51,19 +58,10 @@ public class StoredValueBalanceCheckRequest { private String reference; /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ public enum ShopperInteractionEnum { + ECOMMERCE(String.valueOf("Ecommerce")), CONTAUTH(String.valueOf("ContAuth")), @@ -77,7 +75,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -98,11 +96,7 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ShopperInteractionEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -116,14 +110,14 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_STORE = "store"; private String store; - public StoredValueBalanceCheckRequest() {} + public StoredValueBalanceCheckRequest() { + } /** * amount * - * @param amount - * @return the current {@code StoredValueBalanceCheckRequest} instance, allowing for method - * chaining + * @param amount + * @return the current {@code StoredValueBalanceCheckRequest} instance, allowing for method chaining */ public StoredValueBalanceCheckRequest amount(Amount amount) { this.amount = amount; @@ -132,8 +126,7 @@ public StoredValueBalanceCheckRequest amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,7 +137,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -155,10 +148,8 @@ public void setAmount(Amount amount) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. - * @return the current {@code StoredValueBalanceCheckRequest} instance, allowing for method - * chaining + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @return the current {@code StoredValueBalanceCheckRequest} instance, allowing for method chaining */ public StoredValueBalanceCheckRequest merchantAccount(String merchantAccount) { this.merchantAccount = merchantAccount; @@ -167,9 +158,7 @@ public StoredValueBalanceCheckRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * - * @return merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @return merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -180,8 +169,7 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,13 +178,10 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The collection that contains the type of the payment method and its specific information if - * available + * The collection that contains the type of the payment method and its specific information if available * - * @param paymentMethod The collection that contains the type of the payment method and its - * specific information if available - * @return the current {@code StoredValueBalanceCheckRequest} instance, allowing for method - * chaining + * @param paymentMethod The collection that contains the type of the payment method and its specific information if available + * @return the current {@code StoredValueBalanceCheckRequest} instance, allowing for method chaining */ public StoredValueBalanceCheckRequest paymentMethod(Map paymentMethod) { this.paymentMethod = paymentMethod; @@ -212,11 +197,8 @@ public StoredValueBalanceCheckRequest putPaymentMethodItem(String key, String pa } /** - * The collection that contains the type of the payment method and its specific information if - * available - * - * @return paymentMethod The collection that contains the type of the payment method and its - * specific information if available + * The collection that contains the type of the payment method and its specific information if available + * @return paymentMethod The collection that contains the type of the payment method and its specific information if available */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -225,11 +207,9 @@ public Map getPaymentMethod() { } /** - * The collection that contains the type of the payment method and its specific information if - * available + * The collection that contains the type of the payment method and its specific information if available * - * @param paymentMethod The collection that contains the type of the payment method and its - * specific information if available + * @param paymentMethod The collection that contains the type of the payment method and its specific information if available */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,9 +220,8 @@ public void setPaymentMethod(Map paymentMethod) { /** * recurringDetailReference * - * @param recurringDetailReference - * @return the current {@code StoredValueBalanceCheckRequest} instance, allowing for method - * chaining + * @param recurringDetailReference + * @return the current {@code StoredValueBalanceCheckRequest} instance, allowing for method chaining */ public StoredValueBalanceCheckRequest recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; @@ -251,8 +230,7 @@ public StoredValueBalanceCheckRequest recurringDetailReference(String recurringD /** * Get recurringDetailReference - * - * @return recurringDetailReference + * @return recurringDetailReference */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -263,7 +241,7 @@ public String getRecurringDetailReference() { /** * recurringDetailReference * - * @param recurringDetailReference + * @param recurringDetailReference */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -272,17 +250,10 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. - * @return the current {@code StoredValueBalanceCheckRequest} instance, allowing for method - * chaining + * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @return the current {@code StoredValueBalanceCheckRequest} instance, allowing for method chaining */ public StoredValueBalanceCheckRequest reference(String reference) { this.reference = reference; @@ -290,15 +261,8 @@ public StoredValueBalanceCheckRequest reference(String reference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. - * - * @return reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @return reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -307,15 +271,9 @@ public String getReference() { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -324,64 +282,19 @@ public void setReference(String reference) { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. - * @return the current {@code StoredValueBalanceCheckRequest} instance, allowing for method - * chaining + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * @return the current {@code StoredValueBalanceCheckRequest} instance, allowing for method chaining */ - public StoredValueBalanceCheckRequest shopperInteraction( - ShopperInteractionEnum shopperInteraction) { + public StoredValueBalanceCheckRequest shopperInteraction(ShopperInteractionEnum shopperInteraction) { this.shopperInteraction = shopperInteraction; return this; } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. - * - * @return shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * @return shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -390,30 +303,9 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -424,9 +316,8 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { /** * shopperReference * - * @param shopperReference - * @return the current {@code StoredValueBalanceCheckRequest} instance, allowing for method - * chaining + * @param shopperReference + * @return the current {@code StoredValueBalanceCheckRequest} instance, allowing for method chaining */ public StoredValueBalanceCheckRequest shopperReference(String shopperReference) { this.shopperReference = shopperReference; @@ -435,8 +326,7 @@ public StoredValueBalanceCheckRequest shopperReference(String shopperReference) /** * Get shopperReference - * - * @return shopperReference + * @return shopperReference */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -447,7 +337,7 @@ public String getShopperReference() { /** * shopperReference * - * @param shopperReference + * @param shopperReference */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -459,8 +349,7 @@ public void setShopperReference(String shopperReference) { * The physical store, for which this payment is processed. * * @param store The physical store, for which this payment is processed. - * @return the current {@code StoredValueBalanceCheckRequest} instance, allowing for method - * chaining + * @return the current {@code StoredValueBalanceCheckRequest} instance, allowing for method chaining */ public StoredValueBalanceCheckRequest store(String store) { this.store = store; @@ -469,7 +358,6 @@ public StoredValueBalanceCheckRequest store(String store) { /** * The physical store, for which this payment is processed. - * * @return store The physical store, for which this payment is processed. */ @JsonProperty(JSON_PROPERTY_STORE) @@ -489,7 +377,9 @@ public void setStore(String store) { this.store = store; } - /** Return true if this StoredValueBalanceCheckRequest object is equal to o. */ + /** + * Return true if this StoredValueBalanceCheckRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -498,31 +388,20 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - StoredValueBalanceCheckRequest storedValueBalanceCheckRequest = - (StoredValueBalanceCheckRequest) o; - return Objects.equals(this.amount, storedValueBalanceCheckRequest.amount) - && Objects.equals(this.merchantAccount, storedValueBalanceCheckRequest.merchantAccount) - && Objects.equals(this.paymentMethod, storedValueBalanceCheckRequest.paymentMethod) - && Objects.equals( - this.recurringDetailReference, storedValueBalanceCheckRequest.recurringDetailReference) - && Objects.equals(this.reference, storedValueBalanceCheckRequest.reference) - && Objects.equals( - this.shopperInteraction, storedValueBalanceCheckRequest.shopperInteraction) - && Objects.equals(this.shopperReference, storedValueBalanceCheckRequest.shopperReference) - && Objects.equals(this.store, storedValueBalanceCheckRequest.store); + StoredValueBalanceCheckRequest storedValueBalanceCheckRequest = (StoredValueBalanceCheckRequest) o; + return Objects.equals(this.amount, storedValueBalanceCheckRequest.amount) && + Objects.equals(this.merchantAccount, storedValueBalanceCheckRequest.merchantAccount) && + Objects.equals(this.paymentMethod, storedValueBalanceCheckRequest.paymentMethod) && + Objects.equals(this.recurringDetailReference, storedValueBalanceCheckRequest.recurringDetailReference) && + Objects.equals(this.reference, storedValueBalanceCheckRequest.reference) && + Objects.equals(this.shopperInteraction, storedValueBalanceCheckRequest.shopperInteraction) && + Objects.equals(this.shopperReference, storedValueBalanceCheckRequest.shopperReference) && + Objects.equals(this.store, storedValueBalanceCheckRequest.store); } @Override public int hashCode() { - return Objects.hash( - amount, - merchantAccount, - paymentMethod, - recurringDetailReference, - reference, - shopperInteraction, - shopperReference, - store); + return Objects.hash(amount, merchantAccount, paymentMethod, recurringDetailReference, reference, shopperInteraction, shopperReference, store); } @Override @@ -532,9 +411,7 @@ public String toString() { sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" shopperInteraction: ").append(toIndentedString(shopperInteraction)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); @@ -544,7 +421,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -553,24 +431,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of StoredValueBalanceCheckRequest given an JSON string * * @param jsonString JSON string * @return An instance of StoredValueBalanceCheckRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoredValueBalanceCheckRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to StoredValueBalanceCheckRequest */ - public static StoredValueBalanceCheckRequest fromJson(String jsonString) - throws JsonProcessingException { + public static StoredValueBalanceCheckRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoredValueBalanceCheckRequest.class); } - - /** - * Convert an instance of StoredValueBalanceCheckRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of StoredValueBalanceCheckRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceCheckResponse.java b/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceCheckResponse.java index 3a4ce284b..ffd6823aa 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceCheckResponse.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceCheckResponse.java @@ -2,26 +2,32 @@ * Adyen Stored Value API * * The version of the OpenAPI document: 46 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.storedvalue; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.storedvalue.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** StoredValueBalanceCheckResponse */ + +/** + * StoredValueBalanceCheckResponse + */ @JsonPropertyOrder({ StoredValueBalanceCheckResponse.JSON_PROPERTY_CURRENT_BALANCE, StoredValueBalanceCheckResponse.JSON_PROPERTY_PSP_REFERENCE, @@ -29,6 +35,7 @@ StoredValueBalanceCheckResponse.JSON_PROPERTY_RESULT_CODE, StoredValueBalanceCheckResponse.JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON }) + public class StoredValueBalanceCheckResponse { public static final String JSON_PROPERTY_CURRENT_BALANCE = "currentBalance"; private Amount currentBalance; @@ -40,14 +47,10 @@ public class StoredValueBalanceCheckResponse { private String refusalReason; /** - * The result of the payment. Possible values: * **Success** – The operation has been completed - * successfully. * **Refused** – The operation was refused. The reason is given in the - * `refusalReason` field. * **Error** – There was an error when the operation was - * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – - * The amount on the payment method is lower than the amount given in the request. Only applicable - * to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. */ public enum ResultCodeEnum { + SUCCESS(String.valueOf("Success")), REFUSED(String.valueOf("Refused")), @@ -61,7 +64,7 @@ public enum ResultCodeEnum { private String value; ResultCodeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -82,11 +85,7 @@ public static ResultCodeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ResultCodeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ResultCodeEnum.values())); + LOG.warning("ResultCodeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResultCodeEnum.values())); return null; } } @@ -97,14 +96,14 @@ public static ResultCodeEnum fromValue(String value) { public static final String JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON = "thirdPartyRefusalReason"; private String thirdPartyRefusalReason; - public StoredValueBalanceCheckResponse() {} + public StoredValueBalanceCheckResponse() { + } /** * currentBalance * - * @param currentBalance - * @return the current {@code StoredValueBalanceCheckResponse} instance, allowing for method - * chaining + * @param currentBalance + * @return the current {@code StoredValueBalanceCheckResponse} instance, allowing for method chaining */ public StoredValueBalanceCheckResponse currentBalance(Amount currentBalance) { this.currentBalance = currentBalance; @@ -113,8 +112,7 @@ public StoredValueBalanceCheckResponse currentBalance(Amount currentBalance) { /** * Get currentBalance - * - * @return currentBalance + * @return currentBalance */ @JsonProperty(JSON_PROPERTY_CURRENT_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,7 +123,7 @@ public Amount getCurrentBalance() { /** * currentBalance * - * @param currentBalance + * @param currentBalance */ @JsonProperty(JSON_PROPERTY_CURRENT_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -134,14 +132,10 @@ public void setCurrentBalance(Amount currentBalance) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value - * is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character string reference associated with the - * transaction/request. This value is globally unique; quote it when communicating with us - * about this request. - * @return the current {@code StoredValueBalanceCheckResponse} instance, allowing for method - * chaining + * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @return the current {@code StoredValueBalanceCheckResponse} instance, allowing for method chaining */ public StoredValueBalanceCheckResponse pspReference(String pspReference) { this.pspReference = pspReference; @@ -149,12 +143,8 @@ public StoredValueBalanceCheckResponse pspReference(String pspReference) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value - * is globally unique; quote it when communicating with us about this request. - * - * @return pspReference Adyen's 16-character string reference associated with the - * transaction/request. This value is globally unique; quote it when communicating with us - * about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @return pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,12 +153,9 @@ public String getPspReference() { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value - * is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character string reference associated with the - * transaction/request. This value is globally unique; quote it when communicating with us - * about this request. + * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,16 +164,10 @@ public void setPspReference(String pspReference) { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason - * for the refusal or a description of the error. When a transaction fails, the authorisation - * response includes `resultCode` and `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. * - * @param refusalReason If the transaction is refused or an error occurs, this field holds - * Adyen's mapped reason for the refusal or a description of the error. When a transaction - * fails, the authorisation response includes `resultCode` and - * `refusalReason` values. - * @return the current {@code StoredValueBalanceCheckResponse} instance, allowing for method - * chaining + * @param refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * @return the current {@code StoredValueBalanceCheckResponse} instance, allowing for method chaining */ public StoredValueBalanceCheckResponse refusalReason(String refusalReason) { this.refusalReason = refusalReason; @@ -194,14 +175,8 @@ public StoredValueBalanceCheckResponse refusalReason(String refusalReason) { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason - * for the refusal or a description of the error. When a transaction fails, the authorisation - * response includes `resultCode` and `refusalReason` values. - * - * @return refusalReason If the transaction is refused or an error occurs, this field holds - * Adyen's mapped reason for the refusal or a description of the error. When a transaction - * fails, the authorisation response includes `resultCode` and - * `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * @return refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -210,14 +185,9 @@ public String getRefusalReason() { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason - * for the refusal or a description of the error. When a transaction fails, the authorisation - * response includes `resultCode` and `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. * - * @param refusalReason If the transaction is refused or an error occurs, this field holds - * Adyen's mapped reason for the refusal or a description of the error. When a transaction - * fails, the authorisation response includes `resultCode` and - * `refusalReason` values. + * @param refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -226,21 +196,10 @@ public void setRefusalReason(String refusalReason) { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed - * successfully. * **Refused** – The operation was refused. The reason is given in the - * `refusalReason` field. * **Error** – There was an error when the operation was - * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – - * The amount on the payment method is lower than the amount given in the request. Only applicable - * to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. * - * @param resultCode The result of the payment. Possible values: * **Success** – The operation has - * been completed successfully. * **Refused** – The operation was refused. The reason is given - * in the `refusalReason` field. * **Error** – There was an error when the operation - * was processed. The reason is given in the `refusalReason` field. * - * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in - * the request. Only applicable to balance checks. - * @return the current {@code StoredValueBalanceCheckResponse} instance, allowing for method - * chaining + * @param resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * @return the current {@code StoredValueBalanceCheckResponse} instance, allowing for method chaining */ public StoredValueBalanceCheckResponse resultCode(ResultCodeEnum resultCode) { this.resultCode = resultCode; @@ -248,19 +207,8 @@ public StoredValueBalanceCheckResponse resultCode(ResultCodeEnum resultCode) { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed - * successfully. * **Refused** – The operation was refused. The reason is given in the - * `refusalReason` field. * **Error** – There was an error when the operation was - * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – - * The amount on the payment method is lower than the amount given in the request. Only applicable - * to balance checks. - * - * @return resultCode The result of the payment. Possible values: * **Success** – The operation - * has been completed successfully. * **Refused** – The operation was refused. The reason is - * given in the `refusalReason` field. * **Error** – There was an error when the - * operation was processed. The reason is given in the `refusalReason` field. * - * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in - * the request. Only applicable to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * @return resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -269,19 +217,9 @@ public ResultCodeEnum getResultCode() { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed - * successfully. * **Refused** – The operation was refused. The reason is given in the - * `refusalReason` field. * **Error** – There was an error when the operation was - * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – - * The amount on the payment method is lower than the amount given in the request. Only applicable - * to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. * - * @param resultCode The result of the payment. Possible values: * **Success** – The operation has - * been completed successfully. * **Refused** – The operation was refused. The reason is given - * in the `refusalReason` field. * **Error** – There was an error when the operation - * was processed. The reason is given in the `refusalReason` field. * - * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in - * the request. Only applicable to balance checks. + * @param resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -292,10 +230,8 @@ public void setResultCode(ResultCodeEnum resultCode) { /** * Raw refusal reason received from the third party, where available * - * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where - * available - * @return the current {@code StoredValueBalanceCheckResponse} instance, allowing for method - * chaining + * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where available + * @return the current {@code StoredValueBalanceCheckResponse} instance, allowing for method chaining */ public StoredValueBalanceCheckResponse thirdPartyRefusalReason(String thirdPartyRefusalReason) { this.thirdPartyRefusalReason = thirdPartyRefusalReason; @@ -304,9 +240,7 @@ public StoredValueBalanceCheckResponse thirdPartyRefusalReason(String thirdParty /** * Raw refusal reason received from the third party, where available - * - * @return thirdPartyRefusalReason Raw refusal reason received from the third party, where - * available + * @return thirdPartyRefusalReason Raw refusal reason received from the third party, where available */ @JsonProperty(JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -317,8 +251,7 @@ public String getThirdPartyRefusalReason() { /** * Raw refusal reason received from the third party, where available * - * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where - * available + * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where available */ @JsonProperty(JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -326,7 +259,9 @@ public void setThirdPartyRefusalReason(String thirdPartyRefusalReason) { this.thirdPartyRefusalReason = thirdPartyRefusalReason; } - /** Return true if this StoredValueBalanceCheckResponse object is equal to o. */ + /** + * Return true if this StoredValueBalanceCheckResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -335,20 +270,17 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - StoredValueBalanceCheckResponse storedValueBalanceCheckResponse = - (StoredValueBalanceCheckResponse) o; - return Objects.equals(this.currentBalance, storedValueBalanceCheckResponse.currentBalance) - && Objects.equals(this.pspReference, storedValueBalanceCheckResponse.pspReference) - && Objects.equals(this.refusalReason, storedValueBalanceCheckResponse.refusalReason) - && Objects.equals(this.resultCode, storedValueBalanceCheckResponse.resultCode) - && Objects.equals( - this.thirdPartyRefusalReason, storedValueBalanceCheckResponse.thirdPartyRefusalReason); + StoredValueBalanceCheckResponse storedValueBalanceCheckResponse = (StoredValueBalanceCheckResponse) o; + return Objects.equals(this.currentBalance, storedValueBalanceCheckResponse.currentBalance) && + Objects.equals(this.pspReference, storedValueBalanceCheckResponse.pspReference) && + Objects.equals(this.refusalReason, storedValueBalanceCheckResponse.refusalReason) && + Objects.equals(this.resultCode, storedValueBalanceCheckResponse.resultCode) && + Objects.equals(this.thirdPartyRefusalReason, storedValueBalanceCheckResponse.thirdPartyRefusalReason); } @Override public int hashCode() { - return Objects.hash( - currentBalance, pspReference, refusalReason, resultCode, thirdPartyRefusalReason); + return Objects.hash(currentBalance, pspReference, refusalReason, resultCode, thirdPartyRefusalReason); } @Override @@ -359,15 +291,14 @@ public String toString() { sb.append(" pspReference: ").append(toIndentedString(pspReference)).append("\n"); sb.append(" refusalReason: ").append(toIndentedString(refusalReason)).append("\n"); sb.append(" resultCode: ").append(toIndentedString(resultCode)).append("\n"); - sb.append(" thirdPartyRefusalReason: ") - .append(toIndentedString(thirdPartyRefusalReason)) - .append("\n"); + sb.append(" thirdPartyRefusalReason: ").append(toIndentedString(thirdPartyRefusalReason)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -376,24 +307,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of StoredValueBalanceCheckResponse given an JSON string * * @param jsonString JSON string * @return An instance of StoredValueBalanceCheckResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoredValueBalanceCheckResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to StoredValueBalanceCheckResponse */ - public static StoredValueBalanceCheckResponse fromJson(String jsonString) - throws JsonProcessingException { + public static StoredValueBalanceCheckResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoredValueBalanceCheckResponse.class); } - - /** - * Convert an instance of StoredValueBalanceCheckResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of StoredValueBalanceCheckResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceMergeRequest.java b/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceMergeRequest.java index 331ff837a..277b38e88 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceMergeRequest.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceMergeRequest.java @@ -2,28 +2,34 @@ * Adyen Stored Value API * * The version of the OpenAPI document: 46 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.storedvalue; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.storedvalue.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** StoredValueBalanceMergeRequest */ +/** + * StoredValueBalanceMergeRequest + */ @JsonPropertyOrder({ StoredValueBalanceMergeRequest.JSON_PROPERTY_AMOUNT, StoredValueBalanceMergeRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, @@ -35,6 +41,7 @@ StoredValueBalanceMergeRequest.JSON_PROPERTY_SOURCE_PAYMENT_METHOD, StoredValueBalanceMergeRequest.JSON_PROPERTY_STORE }) + public class StoredValueBalanceMergeRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -52,19 +59,10 @@ public class StoredValueBalanceMergeRequest { private String reference; /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ public enum ShopperInteractionEnum { + ECOMMERCE(String.valueOf("Ecommerce")), CONTAUTH(String.valueOf("ContAuth")), @@ -78,7 +76,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -99,11 +97,7 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ShopperInteractionEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -120,14 +114,14 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_STORE = "store"; private String store; - public StoredValueBalanceMergeRequest() {} + public StoredValueBalanceMergeRequest() { + } /** * amount * - * @param amount - * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method - * chaining + * @param amount + * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method chaining */ public StoredValueBalanceMergeRequest amount(Amount amount) { this.amount = amount; @@ -136,8 +130,7 @@ public StoredValueBalanceMergeRequest amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,7 +141,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,10 +152,8 @@ public void setAmount(Amount amount) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. - * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method - * chaining + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method chaining */ public StoredValueBalanceMergeRequest merchantAccount(String merchantAccount) { this.merchantAccount = merchantAccount; @@ -171,9 +162,7 @@ public StoredValueBalanceMergeRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * - * @return merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @return merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -184,8 +173,7 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,13 +182,10 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The collection that contains the type of the payment method and its specific information if - * available + * The collection that contains the type of the payment method and its specific information if available * - * @param paymentMethod The collection that contains the type of the payment method and its - * specific information if available - * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method - * chaining + * @param paymentMethod The collection that contains the type of the payment method and its specific information if available + * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method chaining */ public StoredValueBalanceMergeRequest paymentMethod(Map paymentMethod) { this.paymentMethod = paymentMethod; @@ -216,11 +201,8 @@ public StoredValueBalanceMergeRequest putPaymentMethodItem(String key, String pa } /** - * The collection that contains the type of the payment method and its specific information if - * available - * - * @return paymentMethod The collection that contains the type of the payment method and its - * specific information if available + * The collection that contains the type of the payment method and its specific information if available + * @return paymentMethod The collection that contains the type of the payment method and its specific information if available */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -229,11 +211,9 @@ public Map getPaymentMethod() { } /** - * The collection that contains the type of the payment method and its specific information if - * available + * The collection that contains the type of the payment method and its specific information if available * - * @param paymentMethod The collection that contains the type of the payment method and its - * specific information if available + * @param paymentMethod The collection that contains the type of the payment method and its specific information if available */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,9 +224,8 @@ public void setPaymentMethod(Map paymentMethod) { /** * recurringDetailReference * - * @param recurringDetailReference - * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method - * chaining + * @param recurringDetailReference + * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method chaining */ public StoredValueBalanceMergeRequest recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; @@ -255,8 +234,7 @@ public StoredValueBalanceMergeRequest recurringDetailReference(String recurringD /** * Get recurringDetailReference - * - * @return recurringDetailReference + * @return recurringDetailReference */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -267,7 +245,7 @@ public String getRecurringDetailReference() { /** * recurringDetailReference * - * @param recurringDetailReference + * @param recurringDetailReference */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -276,17 +254,10 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. - * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method - * chaining + * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method chaining */ public StoredValueBalanceMergeRequest reference(String reference) { this.reference = reference; @@ -294,15 +265,8 @@ public StoredValueBalanceMergeRequest reference(String reference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. - * - * @return reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @return reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -311,15 +275,9 @@ public String getReference() { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -328,64 +286,19 @@ public void setReference(String reference) { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. - * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method - * chaining + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method chaining */ - public StoredValueBalanceMergeRequest shopperInteraction( - ShopperInteractionEnum shopperInteraction) { + public StoredValueBalanceMergeRequest shopperInteraction(ShopperInteractionEnum shopperInteraction) { this.shopperInteraction = shopperInteraction; return this; } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. - * - * @return shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * @return shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -394,30 +307,9 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -428,9 +320,8 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { /** * shopperReference * - * @param shopperReference - * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method - * chaining + * @param shopperReference + * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method chaining */ public StoredValueBalanceMergeRequest shopperReference(String shopperReference) { this.shopperReference = shopperReference; @@ -439,8 +330,7 @@ public StoredValueBalanceMergeRequest shopperReference(String shopperReference) /** * Get shopperReference - * - * @return shopperReference + * @return shopperReference */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -451,7 +341,7 @@ public String getShopperReference() { /** * shopperReference * - * @param shopperReference + * @param shopperReference */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -460,24 +350,17 @@ public void setShopperReference(String shopperReference) { } /** - * The collection that contains the source payment method and its specific information if - * available. Note that type should not be included since it is inferred from the (target) payment - * method + * The collection that contains the source payment method and its specific information if available. Note that type should not be included since it is inferred from the (target) payment method * - * @param sourcePaymentMethod The collection that contains the source payment method and its - * specific information if available. Note that type should not be included since it is - * inferred from the (target) payment method - * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method - * chaining + * @param sourcePaymentMethod The collection that contains the source payment method and its specific information if available. Note that type should not be included since it is inferred from the (target) payment method + * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method chaining */ - public StoredValueBalanceMergeRequest sourcePaymentMethod( - Map sourcePaymentMethod) { + public StoredValueBalanceMergeRequest sourcePaymentMethod(Map sourcePaymentMethod) { this.sourcePaymentMethod = sourcePaymentMethod; return this; } - public StoredValueBalanceMergeRequest putSourcePaymentMethodItem( - String key, String sourcePaymentMethodItem) { + public StoredValueBalanceMergeRequest putSourcePaymentMethodItem(String key, String sourcePaymentMethodItem) { if (this.sourcePaymentMethod == null) { this.sourcePaymentMethod = new HashMap<>(); } @@ -486,13 +369,8 @@ public StoredValueBalanceMergeRequest putSourcePaymentMethodItem( } /** - * The collection that contains the source payment method and its specific information if - * available. Note that type should not be included since it is inferred from the (target) payment - * method - * - * @return sourcePaymentMethod The collection that contains the source payment method and its - * specific information if available. Note that type should not be included since it is - * inferred from the (target) payment method + * The collection that contains the source payment method and its specific information if available. Note that type should not be included since it is inferred from the (target) payment method + * @return sourcePaymentMethod The collection that contains the source payment method and its specific information if available. Note that type should not be included since it is inferred from the (target) payment method */ @JsonProperty(JSON_PROPERTY_SOURCE_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -501,13 +379,9 @@ public Map getSourcePaymentMethod() { } /** - * The collection that contains the source payment method and its specific information if - * available. Note that type should not be included since it is inferred from the (target) payment - * method + * The collection that contains the source payment method and its specific information if available. Note that type should not be included since it is inferred from the (target) payment method * - * @param sourcePaymentMethod The collection that contains the source payment method and its - * specific information if available. Note that type should not be included since it is - * inferred from the (target) payment method + * @param sourcePaymentMethod The collection that contains the source payment method and its specific information if available. Note that type should not be included since it is inferred from the (target) payment method */ @JsonProperty(JSON_PROPERTY_SOURCE_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -519,8 +393,7 @@ public void setSourcePaymentMethod(Map sourcePaymentMethod) { * The physical store, for which this payment is processed. * * @param store The physical store, for which this payment is processed. - * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method - * chaining + * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method chaining */ public StoredValueBalanceMergeRequest store(String store) { this.store = store; @@ -529,7 +402,6 @@ public StoredValueBalanceMergeRequest store(String store) { /** * The physical store, for which this payment is processed. - * * @return store The physical store, for which this payment is processed. */ @JsonProperty(JSON_PROPERTY_STORE) @@ -549,7 +421,9 @@ public void setStore(String store) { this.store = store; } - /** Return true if this StoredValueBalanceMergeRequest object is equal to o. */ + /** + * Return true if this StoredValueBalanceMergeRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -558,34 +432,21 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - StoredValueBalanceMergeRequest storedValueBalanceMergeRequest = - (StoredValueBalanceMergeRequest) o; - return Objects.equals(this.amount, storedValueBalanceMergeRequest.amount) - && Objects.equals(this.merchantAccount, storedValueBalanceMergeRequest.merchantAccount) - && Objects.equals(this.paymentMethod, storedValueBalanceMergeRequest.paymentMethod) - && Objects.equals( - this.recurringDetailReference, storedValueBalanceMergeRequest.recurringDetailReference) - && Objects.equals(this.reference, storedValueBalanceMergeRequest.reference) - && Objects.equals( - this.shopperInteraction, storedValueBalanceMergeRequest.shopperInteraction) - && Objects.equals(this.shopperReference, storedValueBalanceMergeRequest.shopperReference) - && Objects.equals( - this.sourcePaymentMethod, storedValueBalanceMergeRequest.sourcePaymentMethod) - && Objects.equals(this.store, storedValueBalanceMergeRequest.store); + StoredValueBalanceMergeRequest storedValueBalanceMergeRequest = (StoredValueBalanceMergeRequest) o; + return Objects.equals(this.amount, storedValueBalanceMergeRequest.amount) && + Objects.equals(this.merchantAccount, storedValueBalanceMergeRequest.merchantAccount) && + Objects.equals(this.paymentMethod, storedValueBalanceMergeRequest.paymentMethod) && + Objects.equals(this.recurringDetailReference, storedValueBalanceMergeRequest.recurringDetailReference) && + Objects.equals(this.reference, storedValueBalanceMergeRequest.reference) && + Objects.equals(this.shopperInteraction, storedValueBalanceMergeRequest.shopperInteraction) && + Objects.equals(this.shopperReference, storedValueBalanceMergeRequest.shopperReference) && + Objects.equals(this.sourcePaymentMethod, storedValueBalanceMergeRequest.sourcePaymentMethod) && + Objects.equals(this.store, storedValueBalanceMergeRequest.store); } @Override public int hashCode() { - return Objects.hash( - amount, - merchantAccount, - paymentMethod, - recurringDetailReference, - reference, - shopperInteraction, - shopperReference, - sourcePaymentMethod, - store); + return Objects.hash(amount, merchantAccount, paymentMethod, recurringDetailReference, reference, shopperInteraction, shopperReference, sourcePaymentMethod, store); } @Override @@ -595,22 +456,19 @@ public String toString() { sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" shopperInteraction: ").append(toIndentedString(shopperInteraction)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); - sb.append(" sourcePaymentMethod: ") - .append(toIndentedString(sourcePaymentMethod)) - .append("\n"); + sb.append(" sourcePaymentMethod: ").append(toIndentedString(sourcePaymentMethod)).append("\n"); sb.append(" store: ").append(toIndentedString(store)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -619,24 +477,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of StoredValueBalanceMergeRequest given an JSON string * * @param jsonString JSON string * @return An instance of StoredValueBalanceMergeRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoredValueBalanceMergeRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to StoredValueBalanceMergeRequest */ - public static StoredValueBalanceMergeRequest fromJson(String jsonString) - throws JsonProcessingException { + public static StoredValueBalanceMergeRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoredValueBalanceMergeRequest.class); } - - /** - * Convert an instance of StoredValueBalanceMergeRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of StoredValueBalanceMergeRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceMergeResponse.java b/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceMergeResponse.java index 3bb2dca33..639e9bf54 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceMergeResponse.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceMergeResponse.java @@ -2,26 +2,32 @@ * Adyen Stored Value API * * The version of the OpenAPI document: 46 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.storedvalue; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.storedvalue.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** StoredValueBalanceMergeResponse */ + +/** + * StoredValueBalanceMergeResponse + */ @JsonPropertyOrder({ StoredValueBalanceMergeResponse.JSON_PROPERTY_AUTH_CODE, StoredValueBalanceMergeResponse.JSON_PROPERTY_CURRENT_BALANCE, @@ -30,6 +36,7 @@ StoredValueBalanceMergeResponse.JSON_PROPERTY_RESULT_CODE, StoredValueBalanceMergeResponse.JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON }) + public class StoredValueBalanceMergeResponse { public static final String JSON_PROPERTY_AUTH_CODE = "authCode"; private String authCode; @@ -44,14 +51,10 @@ public class StoredValueBalanceMergeResponse { private String refusalReason; /** - * The result of the payment. Possible values: * **Success** – The operation has been completed - * successfully. * **Refused** – The operation was refused. The reason is given in the - * `refusalReason` field. * **Error** – There was an error when the operation was - * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – - * The amount on the payment method is lower than the amount given in the request. Only applicable - * to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. */ public enum ResultCodeEnum { + SUCCESS(String.valueOf("Success")), REFUSED(String.valueOf("Refused")), @@ -65,7 +68,7 @@ public enum ResultCodeEnum { private String value; ResultCodeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -86,11 +89,7 @@ public static ResultCodeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ResultCodeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ResultCodeEnum.values())); + LOG.warning("ResultCodeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResultCodeEnum.values())); return null; } } @@ -101,17 +100,14 @@ public static ResultCodeEnum fromValue(String value) { public static final String JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON = "thirdPartyRefusalReason"; private String thirdPartyRefusalReason; - public StoredValueBalanceMergeResponse() {} + public StoredValueBalanceMergeResponse() { + } /** - * Authorisation code: * When the payment is authorised, this field holds the authorisation code - * for the payment. * When the payment is not authorised, this field is empty. + * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. * - * @param authCode Authorisation code: * When the payment is authorised, this field holds the - * authorisation code for the payment. * When the payment is not authorised, this field is - * empty. - * @return the current {@code StoredValueBalanceMergeResponse} instance, allowing for method - * chaining + * @param authCode Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * @return the current {@code StoredValueBalanceMergeResponse} instance, allowing for method chaining */ public StoredValueBalanceMergeResponse authCode(String authCode) { this.authCode = authCode; @@ -119,12 +115,8 @@ public StoredValueBalanceMergeResponse authCode(String authCode) { } /** - * Authorisation code: * When the payment is authorised, this field holds the authorisation code - * for the payment. * When the payment is not authorised, this field is empty. - * - * @return authCode Authorisation code: * When the payment is authorised, this field holds the - * authorisation code for the payment. * When the payment is not authorised, this field is - * empty. + * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * @return authCode Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -133,12 +125,9 @@ public String getAuthCode() { } /** - * Authorisation code: * When the payment is authorised, this field holds the authorisation code - * for the payment. * When the payment is not authorised, this field is empty. + * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. * - * @param authCode Authorisation code: * When the payment is authorised, this field holds the - * authorisation code for the payment. * When the payment is not authorised, this field is - * empty. + * @param authCode Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -149,9 +138,8 @@ public void setAuthCode(String authCode) { /** * currentBalance * - * @param currentBalance - * @return the current {@code StoredValueBalanceMergeResponse} instance, allowing for method - * chaining + * @param currentBalance + * @return the current {@code StoredValueBalanceMergeResponse} instance, allowing for method chaining */ public StoredValueBalanceMergeResponse currentBalance(Amount currentBalance) { this.currentBalance = currentBalance; @@ -160,8 +148,7 @@ public StoredValueBalanceMergeResponse currentBalance(Amount currentBalance) { /** * Get currentBalance - * - * @return currentBalance + * @return currentBalance */ @JsonProperty(JSON_PROPERTY_CURRENT_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,7 +159,7 @@ public Amount getCurrentBalance() { /** * currentBalance * - * @param currentBalance + * @param currentBalance */ @JsonProperty(JSON_PROPERTY_CURRENT_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,14 +168,10 @@ public void setCurrentBalance(Amount currentBalance) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value - * is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character string reference associated with the - * transaction/request. This value is globally unique; quote it when communicating with us - * about this request. - * @return the current {@code StoredValueBalanceMergeResponse} instance, allowing for method - * chaining + * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @return the current {@code StoredValueBalanceMergeResponse} instance, allowing for method chaining */ public StoredValueBalanceMergeResponse pspReference(String pspReference) { this.pspReference = pspReference; @@ -196,12 +179,8 @@ public StoredValueBalanceMergeResponse pspReference(String pspReference) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value - * is globally unique; quote it when communicating with us about this request. - * - * @return pspReference Adyen's 16-character string reference associated with the - * transaction/request. This value is globally unique; quote it when communicating with us - * about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @return pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -210,12 +189,9 @@ public String getPspReference() { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value - * is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character string reference associated with the - * transaction/request. This value is globally unique; quote it when communicating with us - * about this request. + * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,16 +200,10 @@ public void setPspReference(String pspReference) { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason - * for the refusal or a description of the error. When a transaction fails, the authorisation - * response includes `resultCode` and `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. * - * @param refusalReason If the transaction is refused or an error occurs, this field holds - * Adyen's mapped reason for the refusal or a description of the error. When a transaction - * fails, the authorisation response includes `resultCode` and - * `refusalReason` values. - * @return the current {@code StoredValueBalanceMergeResponse} instance, allowing for method - * chaining + * @param refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * @return the current {@code StoredValueBalanceMergeResponse} instance, allowing for method chaining */ public StoredValueBalanceMergeResponse refusalReason(String refusalReason) { this.refusalReason = refusalReason; @@ -241,14 +211,8 @@ public StoredValueBalanceMergeResponse refusalReason(String refusalReason) { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason - * for the refusal or a description of the error. When a transaction fails, the authorisation - * response includes `resultCode` and `refusalReason` values. - * - * @return refusalReason If the transaction is refused or an error occurs, this field holds - * Adyen's mapped reason for the refusal or a description of the error. When a transaction - * fails, the authorisation response includes `resultCode` and - * `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * @return refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -257,14 +221,9 @@ public String getRefusalReason() { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason - * for the refusal or a description of the error. When a transaction fails, the authorisation - * response includes `resultCode` and `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. * - * @param refusalReason If the transaction is refused or an error occurs, this field holds - * Adyen's mapped reason for the refusal or a description of the error. When a transaction - * fails, the authorisation response includes `resultCode` and - * `refusalReason` values. + * @param refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -273,21 +232,10 @@ public void setRefusalReason(String refusalReason) { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed - * successfully. * **Refused** – The operation was refused. The reason is given in the - * `refusalReason` field. * **Error** – There was an error when the operation was - * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – - * The amount on the payment method is lower than the amount given in the request. Only applicable - * to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. * - * @param resultCode The result of the payment. Possible values: * **Success** – The operation has - * been completed successfully. * **Refused** – The operation was refused. The reason is given - * in the `refusalReason` field. * **Error** – There was an error when the operation - * was processed. The reason is given in the `refusalReason` field. * - * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in - * the request. Only applicable to balance checks. - * @return the current {@code StoredValueBalanceMergeResponse} instance, allowing for method - * chaining + * @param resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * @return the current {@code StoredValueBalanceMergeResponse} instance, allowing for method chaining */ public StoredValueBalanceMergeResponse resultCode(ResultCodeEnum resultCode) { this.resultCode = resultCode; @@ -295,19 +243,8 @@ public StoredValueBalanceMergeResponse resultCode(ResultCodeEnum resultCode) { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed - * successfully. * **Refused** – The operation was refused. The reason is given in the - * `refusalReason` field. * **Error** – There was an error when the operation was - * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – - * The amount on the payment method is lower than the amount given in the request. Only applicable - * to balance checks. - * - * @return resultCode The result of the payment. Possible values: * **Success** – The operation - * has been completed successfully. * **Refused** – The operation was refused. The reason is - * given in the `refusalReason` field. * **Error** – There was an error when the - * operation was processed. The reason is given in the `refusalReason` field. * - * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in - * the request. Only applicable to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * @return resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -316,19 +253,9 @@ public ResultCodeEnum getResultCode() { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed - * successfully. * **Refused** – The operation was refused. The reason is given in the - * `refusalReason` field. * **Error** – There was an error when the operation was - * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – - * The amount on the payment method is lower than the amount given in the request. Only applicable - * to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. * - * @param resultCode The result of the payment. Possible values: * **Success** – The operation has - * been completed successfully. * **Refused** – The operation was refused. The reason is given - * in the `refusalReason` field. * **Error** – There was an error when the operation - * was processed. The reason is given in the `refusalReason` field. * - * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in - * the request. Only applicable to balance checks. + * @param resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -339,10 +266,8 @@ public void setResultCode(ResultCodeEnum resultCode) { /** * Raw refusal reason received from the third party, where available * - * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where - * available - * @return the current {@code StoredValueBalanceMergeResponse} instance, allowing for method - * chaining + * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where available + * @return the current {@code StoredValueBalanceMergeResponse} instance, allowing for method chaining */ public StoredValueBalanceMergeResponse thirdPartyRefusalReason(String thirdPartyRefusalReason) { this.thirdPartyRefusalReason = thirdPartyRefusalReason; @@ -351,9 +276,7 @@ public StoredValueBalanceMergeResponse thirdPartyRefusalReason(String thirdParty /** * Raw refusal reason received from the third party, where available - * - * @return thirdPartyRefusalReason Raw refusal reason received from the third party, where - * available + * @return thirdPartyRefusalReason Raw refusal reason received from the third party, where available */ @JsonProperty(JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -364,8 +287,7 @@ public String getThirdPartyRefusalReason() { /** * Raw refusal reason received from the third party, where available * - * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where - * available + * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where available */ @JsonProperty(JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -373,7 +295,9 @@ public void setThirdPartyRefusalReason(String thirdPartyRefusalReason) { this.thirdPartyRefusalReason = thirdPartyRefusalReason; } - /** Return true if this StoredValueBalanceMergeResponse object is equal to o. */ + /** + * Return true if this StoredValueBalanceMergeResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -382,21 +306,18 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - StoredValueBalanceMergeResponse storedValueBalanceMergeResponse = - (StoredValueBalanceMergeResponse) o; - return Objects.equals(this.authCode, storedValueBalanceMergeResponse.authCode) - && Objects.equals(this.currentBalance, storedValueBalanceMergeResponse.currentBalance) - && Objects.equals(this.pspReference, storedValueBalanceMergeResponse.pspReference) - && Objects.equals(this.refusalReason, storedValueBalanceMergeResponse.refusalReason) - && Objects.equals(this.resultCode, storedValueBalanceMergeResponse.resultCode) - && Objects.equals( - this.thirdPartyRefusalReason, storedValueBalanceMergeResponse.thirdPartyRefusalReason); + StoredValueBalanceMergeResponse storedValueBalanceMergeResponse = (StoredValueBalanceMergeResponse) o; + return Objects.equals(this.authCode, storedValueBalanceMergeResponse.authCode) && + Objects.equals(this.currentBalance, storedValueBalanceMergeResponse.currentBalance) && + Objects.equals(this.pspReference, storedValueBalanceMergeResponse.pspReference) && + Objects.equals(this.refusalReason, storedValueBalanceMergeResponse.refusalReason) && + Objects.equals(this.resultCode, storedValueBalanceMergeResponse.resultCode) && + Objects.equals(this.thirdPartyRefusalReason, storedValueBalanceMergeResponse.thirdPartyRefusalReason); } @Override public int hashCode() { - return Objects.hash( - authCode, currentBalance, pspReference, refusalReason, resultCode, thirdPartyRefusalReason); + return Objects.hash(authCode, currentBalance, pspReference, refusalReason, resultCode, thirdPartyRefusalReason); } @Override @@ -408,15 +329,14 @@ public String toString() { sb.append(" pspReference: ").append(toIndentedString(pspReference)).append("\n"); sb.append(" refusalReason: ").append(toIndentedString(refusalReason)).append("\n"); sb.append(" resultCode: ").append(toIndentedString(resultCode)).append("\n"); - sb.append(" thirdPartyRefusalReason: ") - .append(toIndentedString(thirdPartyRefusalReason)) - .append("\n"); + sb.append(" thirdPartyRefusalReason: ").append(toIndentedString(thirdPartyRefusalReason)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -425,24 +345,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of StoredValueBalanceMergeResponse given an JSON string * * @param jsonString JSON string * @return An instance of StoredValueBalanceMergeResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoredValueBalanceMergeResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to StoredValueBalanceMergeResponse */ - public static StoredValueBalanceMergeResponse fromJson(String jsonString) - throws JsonProcessingException { + public static StoredValueBalanceMergeResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoredValueBalanceMergeResponse.class); } - - /** - * Convert an instance of StoredValueBalanceMergeResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of StoredValueBalanceMergeResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueIssueRequest.java b/src/main/java/com/adyen/model/storedvalue/StoredValueIssueRequest.java index 38d80a39f..f917dfa1f 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueIssueRequest.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueIssueRequest.java @@ -2,28 +2,34 @@ * Adyen Stored Value API * * The version of the OpenAPI document: 46 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.storedvalue; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.storedvalue.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** StoredValueIssueRequest */ + +/** + * StoredValueIssueRequest + */ @JsonPropertyOrder({ StoredValueIssueRequest.JSON_PROPERTY_AMOUNT, StoredValueIssueRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, @@ -34,6 +40,7 @@ StoredValueIssueRequest.JSON_PROPERTY_SHOPPER_REFERENCE, StoredValueIssueRequest.JSON_PROPERTY_STORE }) + public class StoredValueIssueRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -51,19 +58,10 @@ public class StoredValueIssueRequest { private String reference; /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ public enum ShopperInteractionEnum { + ECOMMERCE(String.valueOf("Ecommerce")), CONTAUTH(String.valueOf("ContAuth")), @@ -77,7 +75,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -98,11 +96,7 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ShopperInteractionEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -116,12 +110,13 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_STORE = "store"; private String store; - public StoredValueIssueRequest() {} + public StoredValueIssueRequest() { + } /** * amount * - * @param amount + * @param amount * @return the current {@code StoredValueIssueRequest} instance, allowing for method chaining */ public StoredValueIssueRequest amount(Amount amount) { @@ -131,8 +126,7 @@ public StoredValueIssueRequest amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,7 +137,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -154,8 +148,7 @@ public void setAmount(Amount amount) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. * @return the current {@code StoredValueIssueRequest} instance, allowing for method chaining */ public StoredValueIssueRequest merchantAccount(String merchantAccount) { @@ -165,9 +158,7 @@ public StoredValueIssueRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * - * @return merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @return merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,8 +169,7 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,11 +178,9 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The collection that contains the type of the payment method and its specific information if - * available + * The collection that contains the type of the payment method and its specific information if available * - * @param paymentMethod The collection that contains the type of the payment method and its - * specific information if available + * @param paymentMethod The collection that contains the type of the payment method and its specific information if available * @return the current {@code StoredValueIssueRequest} instance, allowing for method chaining */ public StoredValueIssueRequest paymentMethod(Map paymentMethod) { @@ -209,11 +197,8 @@ public StoredValueIssueRequest putPaymentMethodItem(String key, String paymentMe } /** - * The collection that contains the type of the payment method and its specific information if - * available - * - * @return paymentMethod The collection that contains the type of the payment method and its - * specific information if available + * The collection that contains the type of the payment method and its specific information if available + * @return paymentMethod The collection that contains the type of the payment method and its specific information if available */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -222,11 +207,9 @@ public Map getPaymentMethod() { } /** - * The collection that contains the type of the payment method and its specific information if - * available + * The collection that contains the type of the payment method and its specific information if available * - * @param paymentMethod The collection that contains the type of the payment method and its - * specific information if available + * @param paymentMethod The collection that contains the type of the payment method and its specific information if available */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,7 +220,7 @@ public void setPaymentMethod(Map paymentMethod) { /** * recurringDetailReference * - * @param recurringDetailReference + * @param recurringDetailReference * @return the current {@code StoredValueIssueRequest} instance, allowing for method chaining */ public StoredValueIssueRequest recurringDetailReference(String recurringDetailReference) { @@ -247,8 +230,7 @@ public StoredValueIssueRequest recurringDetailReference(String recurringDetailRe /** * Get recurringDetailReference - * - * @return recurringDetailReference + * @return recurringDetailReference */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -259,7 +241,7 @@ public String getRecurringDetailReference() { /** * recurringDetailReference * - * @param recurringDetailReference + * @param recurringDetailReference */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -268,15 +250,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * @return the current {@code StoredValueIssueRequest} instance, allowing for method chaining */ public StoredValueIssueRequest reference(String reference) { @@ -285,15 +261,8 @@ public StoredValueIssueRequest reference(String reference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. - * - * @return reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @return reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -302,15 +271,9 @@ public String getReference() { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -319,30 +282,9 @@ public void setReference(String reference) { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. * @return the current {@code StoredValueIssueRequest} instance, allowing for method chaining */ public StoredValueIssueRequest shopperInteraction(ShopperInteractionEnum shopperInteraction) { @@ -351,30 +293,8 @@ public StoredValueIssueRequest shopperInteraction(ShopperInteractionEnum shopper } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. - * - * @return shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * @return shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -383,30 +303,9 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -417,7 +316,7 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { /** * shopperReference * - * @param shopperReference + * @param shopperReference * @return the current {@code StoredValueIssueRequest} instance, allowing for method chaining */ public StoredValueIssueRequest shopperReference(String shopperReference) { @@ -427,8 +326,7 @@ public StoredValueIssueRequest shopperReference(String shopperReference) { /** * Get shopperReference - * - * @return shopperReference + * @return shopperReference */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -439,7 +337,7 @@ public String getShopperReference() { /** * shopperReference * - * @param shopperReference + * @param shopperReference */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -460,7 +358,6 @@ public StoredValueIssueRequest store(String store) { /** * The physical store, for which this payment is processed. - * * @return store The physical store, for which this payment is processed. */ @JsonProperty(JSON_PROPERTY_STORE) @@ -480,7 +377,9 @@ public void setStore(String store) { this.store = store; } - /** Return true if this StoredValueIssueRequest object is equal to o. */ + /** + * Return true if this StoredValueIssueRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -490,28 +389,19 @@ public boolean equals(Object o) { return false; } StoredValueIssueRequest storedValueIssueRequest = (StoredValueIssueRequest) o; - return Objects.equals(this.amount, storedValueIssueRequest.amount) - && Objects.equals(this.merchantAccount, storedValueIssueRequest.merchantAccount) - && Objects.equals(this.paymentMethod, storedValueIssueRequest.paymentMethod) - && Objects.equals( - this.recurringDetailReference, storedValueIssueRequest.recurringDetailReference) - && Objects.equals(this.reference, storedValueIssueRequest.reference) - && Objects.equals(this.shopperInteraction, storedValueIssueRequest.shopperInteraction) - && Objects.equals(this.shopperReference, storedValueIssueRequest.shopperReference) - && Objects.equals(this.store, storedValueIssueRequest.store); + return Objects.equals(this.amount, storedValueIssueRequest.amount) && + Objects.equals(this.merchantAccount, storedValueIssueRequest.merchantAccount) && + Objects.equals(this.paymentMethod, storedValueIssueRequest.paymentMethod) && + Objects.equals(this.recurringDetailReference, storedValueIssueRequest.recurringDetailReference) && + Objects.equals(this.reference, storedValueIssueRequest.reference) && + Objects.equals(this.shopperInteraction, storedValueIssueRequest.shopperInteraction) && + Objects.equals(this.shopperReference, storedValueIssueRequest.shopperReference) && + Objects.equals(this.store, storedValueIssueRequest.store); } @Override public int hashCode() { - return Objects.hash( - amount, - merchantAccount, - paymentMethod, - recurringDetailReference, - reference, - shopperInteraction, - shopperReference, - store); + return Objects.hash(amount, merchantAccount, paymentMethod, recurringDetailReference, reference, shopperInteraction, shopperReference, store); } @Override @@ -521,9 +411,7 @@ public String toString() { sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" shopperInteraction: ").append(toIndentedString(shopperInteraction)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); @@ -533,7 +421,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -542,23 +431,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of StoredValueIssueRequest given an JSON string * * @param jsonString JSON string * @return An instance of StoredValueIssueRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoredValueIssueRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to StoredValueIssueRequest */ public static StoredValueIssueRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoredValueIssueRequest.class); } - - /** - * Convert an instance of StoredValueIssueRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of StoredValueIssueRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueIssueResponse.java b/src/main/java/com/adyen/model/storedvalue/StoredValueIssueResponse.java index 399fa3820..3ddab7a9a 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueIssueResponse.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueIssueResponse.java @@ -2,28 +2,34 @@ * Adyen Stored Value API * * The version of the OpenAPI document: 46 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.storedvalue; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.storedvalue.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** StoredValueIssueResponse */ + +/** + * StoredValueIssueResponse + */ @JsonPropertyOrder({ StoredValueIssueResponse.JSON_PROPERTY_AUTH_CODE, StoredValueIssueResponse.JSON_PROPERTY_CURRENT_BALANCE, @@ -33,6 +39,7 @@ StoredValueIssueResponse.JSON_PROPERTY_RESULT_CODE, StoredValueIssueResponse.JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON }) + public class StoredValueIssueResponse { public static final String JSON_PROPERTY_AUTH_CODE = "authCode"; private String authCode; @@ -50,14 +57,10 @@ public class StoredValueIssueResponse { private String refusalReason; /** - * The result of the payment. Possible values: * **Success** – The operation has been completed - * successfully. * **Refused** – The operation was refused. The reason is given in the - * `refusalReason` field. * **Error** – There was an error when the operation was - * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – - * The amount on the payment method is lower than the amount given in the request. Only applicable - * to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. */ public enum ResultCodeEnum { + SUCCESS(String.valueOf("Success")), REFUSED(String.valueOf("Refused")), @@ -71,7 +74,7 @@ public enum ResultCodeEnum { private String value; ResultCodeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -92,11 +95,7 @@ public static ResultCodeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ResultCodeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ResultCodeEnum.values())); + LOG.warning("ResultCodeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResultCodeEnum.values())); return null; } } @@ -107,15 +106,13 @@ public static ResultCodeEnum fromValue(String value) { public static final String JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON = "thirdPartyRefusalReason"; private String thirdPartyRefusalReason; - public StoredValueIssueResponse() {} + public StoredValueIssueResponse() { + } /** - * Authorisation code: * When the payment is authorised, this field holds the authorisation code - * for the payment. * When the payment is not authorised, this field is empty. + * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. * - * @param authCode Authorisation code: * When the payment is authorised, this field holds the - * authorisation code for the payment. * When the payment is not authorised, this field is - * empty. + * @param authCode Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. * @return the current {@code StoredValueIssueResponse} instance, allowing for method chaining */ public StoredValueIssueResponse authCode(String authCode) { @@ -124,12 +121,8 @@ public StoredValueIssueResponse authCode(String authCode) { } /** - * Authorisation code: * When the payment is authorised, this field holds the authorisation code - * for the payment. * When the payment is not authorised, this field is empty. - * - * @return authCode Authorisation code: * When the payment is authorised, this field holds the - * authorisation code for the payment. * When the payment is not authorised, this field is - * empty. + * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * @return authCode Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,12 +131,9 @@ public String getAuthCode() { } /** - * Authorisation code: * When the payment is authorised, this field holds the authorisation code - * for the payment. * When the payment is not authorised, this field is empty. + * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. * - * @param authCode Authorisation code: * When the payment is authorised, this field holds the - * authorisation code for the payment. * When the payment is not authorised, this field is - * empty. + * @param authCode Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -154,7 +144,7 @@ public void setAuthCode(String authCode) { /** * currentBalance * - * @param currentBalance + * @param currentBalance * @return the current {@code StoredValueIssueResponse} instance, allowing for method chaining */ public StoredValueIssueResponse currentBalance(Amount currentBalance) { @@ -164,8 +154,7 @@ public StoredValueIssueResponse currentBalance(Amount currentBalance) { /** * Get currentBalance - * - * @return currentBalance + * @return currentBalance */ @JsonProperty(JSON_PROPERTY_CURRENT_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,7 +165,7 @@ public Amount getCurrentBalance() { /** * currentBalance * - * @param currentBalance + * @param currentBalance */ @JsonProperty(JSON_PROPERTY_CURRENT_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,11 +174,9 @@ public void setCurrentBalance(Amount currentBalance) { } /** - * The collection that contains the type of the payment method and its specific information if - * available + * The collection that contains the type of the payment method and its specific information if available * - * @param paymentMethod The collection that contains the type of the payment method and its - * specific information if available + * @param paymentMethod The collection that contains the type of the payment method and its specific information if available * @return the current {@code StoredValueIssueResponse} instance, allowing for method chaining */ public StoredValueIssueResponse paymentMethod(Map paymentMethod) { @@ -206,11 +193,8 @@ public StoredValueIssueResponse putPaymentMethodItem(String key, String paymentM } /** - * The collection that contains the type of the payment method and its specific information if - * available - * - * @return paymentMethod The collection that contains the type of the payment method and its - * specific information if available + * The collection that contains the type of the payment method and its specific information if available + * @return paymentMethod The collection that contains the type of the payment method and its specific information if available */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,11 +203,9 @@ public Map getPaymentMethod() { } /** - * The collection that contains the type of the payment method and its specific information if - * available + * The collection that contains the type of the payment method and its specific information if available * - * @param paymentMethod The collection that contains the type of the payment method and its - * specific information if available + * @param paymentMethod The collection that contains the type of the payment method and its specific information if available */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,12 +214,9 @@ public void setPaymentMethod(Map paymentMethod) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value - * is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character string reference associated with the - * transaction/request. This value is globally unique; quote it when communicating with us - * about this request. + * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. * @return the current {@code StoredValueIssueResponse} instance, allowing for method chaining */ public StoredValueIssueResponse pspReference(String pspReference) { @@ -246,12 +225,8 @@ public StoredValueIssueResponse pspReference(String pspReference) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value - * is globally unique; quote it when communicating with us about this request. - * - * @return pspReference Adyen's 16-character string reference associated with the - * transaction/request. This value is globally unique; quote it when communicating with us - * about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @return pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -260,12 +235,9 @@ public String getPspReference() { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value - * is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character string reference associated with the - * transaction/request. This value is globally unique; quote it when communicating with us - * about this request. + * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -274,14 +246,9 @@ public void setPspReference(String pspReference) { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason - * for the refusal or a description of the error. When a transaction fails, the authorisation - * response includes `resultCode` and `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. * - * @param refusalReason If the transaction is refused or an error occurs, this field holds - * Adyen's mapped reason for the refusal or a description of the error. When a transaction - * fails, the authorisation response includes `resultCode` and - * `refusalReason` values. + * @param refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. * @return the current {@code StoredValueIssueResponse} instance, allowing for method chaining */ public StoredValueIssueResponse refusalReason(String refusalReason) { @@ -290,14 +257,8 @@ public StoredValueIssueResponse refusalReason(String refusalReason) { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason - * for the refusal or a description of the error. When a transaction fails, the authorisation - * response includes `resultCode` and `refusalReason` values. - * - * @return refusalReason If the transaction is refused or an error occurs, this field holds - * Adyen's mapped reason for the refusal or a description of the error. When a transaction - * fails, the authorisation response includes `resultCode` and - * `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * @return refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -306,14 +267,9 @@ public String getRefusalReason() { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason - * for the refusal or a description of the error. When a transaction fails, the authorisation - * response includes `resultCode` and `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. * - * @param refusalReason If the transaction is refused or an error occurs, this field holds - * Adyen's mapped reason for the refusal or a description of the error. When a transaction - * fails, the authorisation response includes `resultCode` and - * `refusalReason` values. + * @param refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -322,19 +278,9 @@ public void setRefusalReason(String refusalReason) { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed - * successfully. * **Refused** – The operation was refused. The reason is given in the - * `refusalReason` field. * **Error** – There was an error when the operation was - * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – - * The amount on the payment method is lower than the amount given in the request. Only applicable - * to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. * - * @param resultCode The result of the payment. Possible values: * **Success** – The operation has - * been completed successfully. * **Refused** – The operation was refused. The reason is given - * in the `refusalReason` field. * **Error** – There was an error when the operation - * was processed. The reason is given in the `refusalReason` field. * - * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in - * the request. Only applicable to balance checks. + * @param resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. * @return the current {@code StoredValueIssueResponse} instance, allowing for method chaining */ public StoredValueIssueResponse resultCode(ResultCodeEnum resultCode) { @@ -343,19 +289,8 @@ public StoredValueIssueResponse resultCode(ResultCodeEnum resultCode) { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed - * successfully. * **Refused** – The operation was refused. The reason is given in the - * `refusalReason` field. * **Error** – There was an error when the operation was - * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – - * The amount on the payment method is lower than the amount given in the request. Only applicable - * to balance checks. - * - * @return resultCode The result of the payment. Possible values: * **Success** – The operation - * has been completed successfully. * **Refused** – The operation was refused. The reason is - * given in the `refusalReason` field. * **Error** – There was an error when the - * operation was processed. The reason is given in the `refusalReason` field. * - * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in - * the request. Only applicable to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * @return resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -364,19 +299,9 @@ public ResultCodeEnum getResultCode() { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed - * successfully. * **Refused** – The operation was refused. The reason is given in the - * `refusalReason` field. * **Error** – There was an error when the operation was - * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – - * The amount on the payment method is lower than the amount given in the request. Only applicable - * to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. * - * @param resultCode The result of the payment. Possible values: * **Success** – The operation has - * been completed successfully. * **Refused** – The operation was refused. The reason is given - * in the `refusalReason` field. * **Error** – There was an error when the operation - * was processed. The reason is given in the `refusalReason` field. * - * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in - * the request. Only applicable to balance checks. + * @param resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -387,8 +312,7 @@ public void setResultCode(ResultCodeEnum resultCode) { /** * Raw refusal reason received from the third party, where available * - * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where - * available + * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where available * @return the current {@code StoredValueIssueResponse} instance, allowing for method chaining */ public StoredValueIssueResponse thirdPartyRefusalReason(String thirdPartyRefusalReason) { @@ -398,9 +322,7 @@ public StoredValueIssueResponse thirdPartyRefusalReason(String thirdPartyRefusal /** * Raw refusal reason received from the third party, where available - * - * @return thirdPartyRefusalReason Raw refusal reason received from the third party, where - * available + * @return thirdPartyRefusalReason Raw refusal reason received from the third party, where available */ @JsonProperty(JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -411,8 +333,7 @@ public String getThirdPartyRefusalReason() { /** * Raw refusal reason received from the third party, where available * - * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where - * available + * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where available */ @JsonProperty(JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -420,7 +341,9 @@ public void setThirdPartyRefusalReason(String thirdPartyRefusalReason) { this.thirdPartyRefusalReason = thirdPartyRefusalReason; } - /** Return true if this StoredValueIssueResponse object is equal to o. */ + /** + * Return true if this StoredValueIssueResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -430,26 +353,18 @@ public boolean equals(Object o) { return false; } StoredValueIssueResponse storedValueIssueResponse = (StoredValueIssueResponse) o; - return Objects.equals(this.authCode, storedValueIssueResponse.authCode) - && Objects.equals(this.currentBalance, storedValueIssueResponse.currentBalance) - && Objects.equals(this.paymentMethod, storedValueIssueResponse.paymentMethod) - && Objects.equals(this.pspReference, storedValueIssueResponse.pspReference) - && Objects.equals(this.refusalReason, storedValueIssueResponse.refusalReason) - && Objects.equals(this.resultCode, storedValueIssueResponse.resultCode) - && Objects.equals( - this.thirdPartyRefusalReason, storedValueIssueResponse.thirdPartyRefusalReason); + return Objects.equals(this.authCode, storedValueIssueResponse.authCode) && + Objects.equals(this.currentBalance, storedValueIssueResponse.currentBalance) && + Objects.equals(this.paymentMethod, storedValueIssueResponse.paymentMethod) && + Objects.equals(this.pspReference, storedValueIssueResponse.pspReference) && + Objects.equals(this.refusalReason, storedValueIssueResponse.refusalReason) && + Objects.equals(this.resultCode, storedValueIssueResponse.resultCode) && + Objects.equals(this.thirdPartyRefusalReason, storedValueIssueResponse.thirdPartyRefusalReason); } @Override public int hashCode() { - return Objects.hash( - authCode, - currentBalance, - paymentMethod, - pspReference, - refusalReason, - resultCode, - thirdPartyRefusalReason); + return Objects.hash(authCode, currentBalance, paymentMethod, pspReference, refusalReason, resultCode, thirdPartyRefusalReason); } @Override @@ -462,15 +377,14 @@ public String toString() { sb.append(" pspReference: ").append(toIndentedString(pspReference)).append("\n"); sb.append(" refusalReason: ").append(toIndentedString(refusalReason)).append("\n"); sb.append(" resultCode: ").append(toIndentedString(resultCode)).append("\n"); - sb.append(" thirdPartyRefusalReason: ") - .append(toIndentedString(thirdPartyRefusalReason)) - .append("\n"); + sb.append(" thirdPartyRefusalReason: ").append(toIndentedString(thirdPartyRefusalReason)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -479,24 +393,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of StoredValueIssueResponse given an JSON string * * @param jsonString JSON string * @return An instance of StoredValueIssueResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoredValueIssueResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to StoredValueIssueResponse */ - public static StoredValueIssueResponse fromJson(String jsonString) - throws JsonProcessingException { + public static StoredValueIssueResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoredValueIssueResponse.class); } - - /** - * Convert an instance of StoredValueIssueResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of StoredValueIssueResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueLoadRequest.java b/src/main/java/com/adyen/model/storedvalue/StoredValueLoadRequest.java index e910c341f..43d4ce9e8 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueLoadRequest.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueLoadRequest.java @@ -2,28 +2,34 @@ * Adyen Stored Value API * * The version of the OpenAPI document: 46 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.storedvalue; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.storedvalue.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** StoredValueLoadRequest */ +/** + * StoredValueLoadRequest + */ @JsonPropertyOrder({ StoredValueLoadRequest.JSON_PROPERTY_AMOUNT, StoredValueLoadRequest.JSON_PROPERTY_LOAD_TYPE, @@ -35,12 +41,16 @@ StoredValueLoadRequest.JSON_PROPERTY_SHOPPER_REFERENCE, StoredValueLoadRequest.JSON_PROPERTY_STORE }) + public class StoredValueLoadRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; - /** The type of load you are trying to do, when absent we default to 'Load' */ + /** + * The type of load you are trying to do, when absent we default to 'Load' + */ public enum LoadTypeEnum { + MERCHANDISERETURN(String.valueOf("merchandiseReturn")), LOAD(String.valueOf("load")); @@ -50,7 +60,7 @@ public enum LoadTypeEnum { private String value; LoadTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -71,11 +81,7 @@ public static LoadTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "LoadTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(LoadTypeEnum.values())); + LOG.warning("LoadTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(LoadTypeEnum.values())); return null; } } @@ -96,19 +102,10 @@ public static LoadTypeEnum fromValue(String value) { private String reference; /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ public enum ShopperInteractionEnum { + ECOMMERCE(String.valueOf("Ecommerce")), CONTAUTH(String.valueOf("ContAuth")), @@ -122,7 +119,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -143,11 +140,7 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ShopperInteractionEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -161,12 +154,13 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_STORE = "store"; private String store; - public StoredValueLoadRequest() {} + public StoredValueLoadRequest() { + } /** * amount * - * @param amount + * @param amount * @return the current {@code StoredValueLoadRequest} instance, allowing for method chaining */ public StoredValueLoadRequest amount(Amount amount) { @@ -176,8 +170,7 @@ public StoredValueLoadRequest amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,7 +181,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -209,9 +202,7 @@ public StoredValueLoadRequest loadType(LoadTypeEnum loadType) { /** * The type of load you are trying to do, when absent we default to 'Load' - * - * @return loadType The type of load you are trying to do, when absent we default to - * 'Load' + * @return loadType The type of load you are trying to do, when absent we default to 'Load' */ @JsonProperty(JSON_PROPERTY_LOAD_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -233,8 +224,7 @@ public void setLoadType(LoadTypeEnum loadType) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. * @return the current {@code StoredValueLoadRequest} instance, allowing for method chaining */ public StoredValueLoadRequest merchantAccount(String merchantAccount) { @@ -244,9 +234,7 @@ public StoredValueLoadRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * - * @return merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @return merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -257,8 +245,7 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -267,11 +254,9 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The collection that contains the type of the payment method and its specific information if - * available + * The collection that contains the type of the payment method and its specific information if available * - * @param paymentMethod The collection that contains the type of the payment method and its - * specific information if available + * @param paymentMethod The collection that contains the type of the payment method and its specific information if available * @return the current {@code StoredValueLoadRequest} instance, allowing for method chaining */ public StoredValueLoadRequest paymentMethod(Map paymentMethod) { @@ -288,11 +273,8 @@ public StoredValueLoadRequest putPaymentMethodItem(String key, String paymentMet } /** - * The collection that contains the type of the payment method and its specific information if - * available - * - * @return paymentMethod The collection that contains the type of the payment method and its - * specific information if available + * The collection that contains the type of the payment method and its specific information if available + * @return paymentMethod The collection that contains the type of the payment method and its specific information if available */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -301,11 +283,9 @@ public Map getPaymentMethod() { } /** - * The collection that contains the type of the payment method and its specific information if - * available + * The collection that contains the type of the payment method and its specific information if available * - * @param paymentMethod The collection that contains the type of the payment method and its - * specific information if available + * @param paymentMethod The collection that contains the type of the payment method and its specific information if available */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -316,7 +296,7 @@ public void setPaymentMethod(Map paymentMethod) { /** * recurringDetailReference * - * @param recurringDetailReference + * @param recurringDetailReference * @return the current {@code StoredValueLoadRequest} instance, allowing for method chaining */ public StoredValueLoadRequest recurringDetailReference(String recurringDetailReference) { @@ -326,8 +306,7 @@ public StoredValueLoadRequest recurringDetailReference(String recurringDetailRef /** * Get recurringDetailReference - * - * @return recurringDetailReference + * @return recurringDetailReference */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -338,7 +317,7 @@ public String getRecurringDetailReference() { /** * recurringDetailReference * - * @param recurringDetailReference + * @param recurringDetailReference */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -347,15 +326,9 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * @return the current {@code StoredValueLoadRequest} instance, allowing for method chaining */ public StoredValueLoadRequest reference(String reference) { @@ -364,15 +337,8 @@ public StoredValueLoadRequest reference(String reference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. - * - * @return reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @return reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -381,15 +347,9 @@ public String getReference() { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -398,30 +358,9 @@ public void setReference(String reference) { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. * @return the current {@code StoredValueLoadRequest} instance, allowing for method chaining */ public StoredValueLoadRequest shopperInteraction(ShopperInteractionEnum shopperInteraction) { @@ -430,30 +369,8 @@ public StoredValueLoadRequest shopperInteraction(ShopperInteractionEnum shopperI } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. - * - * @return shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * @return shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -462,30 +379,9 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -496,7 +392,7 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { /** * shopperReference * - * @param shopperReference + * @param shopperReference * @return the current {@code StoredValueLoadRequest} instance, allowing for method chaining */ public StoredValueLoadRequest shopperReference(String shopperReference) { @@ -506,8 +402,7 @@ public StoredValueLoadRequest shopperReference(String shopperReference) { /** * Get shopperReference - * - * @return shopperReference + * @return shopperReference */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -518,7 +413,7 @@ public String getShopperReference() { /** * shopperReference * - * @param shopperReference + * @param shopperReference */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -539,7 +434,6 @@ public StoredValueLoadRequest store(String store) { /** * The physical store, for which this payment is processed. - * * @return store The physical store, for which this payment is processed. */ @JsonProperty(JSON_PROPERTY_STORE) @@ -559,7 +453,9 @@ public void setStore(String store) { this.store = store; } - /** Return true if this StoredValueLoadRequest object is equal to o. */ + /** + * Return true if this StoredValueLoadRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -569,30 +465,20 @@ public boolean equals(Object o) { return false; } StoredValueLoadRequest storedValueLoadRequest = (StoredValueLoadRequest) o; - return Objects.equals(this.amount, storedValueLoadRequest.amount) - && Objects.equals(this.loadType, storedValueLoadRequest.loadType) - && Objects.equals(this.merchantAccount, storedValueLoadRequest.merchantAccount) - && Objects.equals(this.paymentMethod, storedValueLoadRequest.paymentMethod) - && Objects.equals( - this.recurringDetailReference, storedValueLoadRequest.recurringDetailReference) - && Objects.equals(this.reference, storedValueLoadRequest.reference) - && Objects.equals(this.shopperInteraction, storedValueLoadRequest.shopperInteraction) - && Objects.equals(this.shopperReference, storedValueLoadRequest.shopperReference) - && Objects.equals(this.store, storedValueLoadRequest.store); + return Objects.equals(this.amount, storedValueLoadRequest.amount) && + Objects.equals(this.loadType, storedValueLoadRequest.loadType) && + Objects.equals(this.merchantAccount, storedValueLoadRequest.merchantAccount) && + Objects.equals(this.paymentMethod, storedValueLoadRequest.paymentMethod) && + Objects.equals(this.recurringDetailReference, storedValueLoadRequest.recurringDetailReference) && + Objects.equals(this.reference, storedValueLoadRequest.reference) && + Objects.equals(this.shopperInteraction, storedValueLoadRequest.shopperInteraction) && + Objects.equals(this.shopperReference, storedValueLoadRequest.shopperReference) && + Objects.equals(this.store, storedValueLoadRequest.store); } @Override public int hashCode() { - return Objects.hash( - amount, - loadType, - merchantAccount, - paymentMethod, - recurringDetailReference, - reference, - shopperInteraction, - shopperReference, - store); + return Objects.hash(amount, loadType, merchantAccount, paymentMethod, recurringDetailReference, reference, shopperInteraction, shopperReference, store); } @Override @@ -603,9 +489,7 @@ public String toString() { sb.append(" loadType: ").append(toIndentedString(loadType)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" shopperInteraction: ").append(toIndentedString(shopperInteraction)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); @@ -615,7 +499,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -624,23 +509,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of StoredValueLoadRequest given an JSON string * * @param jsonString JSON string * @return An instance of StoredValueLoadRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoredValueLoadRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to StoredValueLoadRequest */ public static StoredValueLoadRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoredValueLoadRequest.class); } - - /** - * Convert an instance of StoredValueLoadRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of StoredValueLoadRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueLoadResponse.java b/src/main/java/com/adyen/model/storedvalue/StoredValueLoadResponse.java index e28e92922..ea5105fd0 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueLoadResponse.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueLoadResponse.java @@ -2,26 +2,32 @@ * Adyen Stored Value API * * The version of the OpenAPI document: 46 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.storedvalue; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.storedvalue.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** StoredValueLoadResponse */ + +/** + * StoredValueLoadResponse + */ @JsonPropertyOrder({ StoredValueLoadResponse.JSON_PROPERTY_AUTH_CODE, StoredValueLoadResponse.JSON_PROPERTY_CURRENT_BALANCE, @@ -30,6 +36,7 @@ StoredValueLoadResponse.JSON_PROPERTY_RESULT_CODE, StoredValueLoadResponse.JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON }) + public class StoredValueLoadResponse { public static final String JSON_PROPERTY_AUTH_CODE = "authCode"; private String authCode; @@ -44,14 +51,10 @@ public class StoredValueLoadResponse { private String refusalReason; /** - * The result of the payment. Possible values: * **Success** – The operation has been completed - * successfully. * **Refused** – The operation was refused. The reason is given in the - * `refusalReason` field. * **Error** – There was an error when the operation was - * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – - * The amount on the payment method is lower than the amount given in the request. Only applicable - * to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. */ public enum ResultCodeEnum { + SUCCESS(String.valueOf("Success")), REFUSED(String.valueOf("Refused")), @@ -65,7 +68,7 @@ public enum ResultCodeEnum { private String value; ResultCodeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -86,11 +89,7 @@ public static ResultCodeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ResultCodeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ResultCodeEnum.values())); + LOG.warning("ResultCodeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResultCodeEnum.values())); return null; } } @@ -101,15 +100,13 @@ public static ResultCodeEnum fromValue(String value) { public static final String JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON = "thirdPartyRefusalReason"; private String thirdPartyRefusalReason; - public StoredValueLoadResponse() {} + public StoredValueLoadResponse() { + } /** - * Authorisation code: * When the payment is authorised, this field holds the authorisation code - * for the payment. * When the payment is not authorised, this field is empty. + * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. * - * @param authCode Authorisation code: * When the payment is authorised, this field holds the - * authorisation code for the payment. * When the payment is not authorised, this field is - * empty. + * @param authCode Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. * @return the current {@code StoredValueLoadResponse} instance, allowing for method chaining */ public StoredValueLoadResponse authCode(String authCode) { @@ -118,12 +115,8 @@ public StoredValueLoadResponse authCode(String authCode) { } /** - * Authorisation code: * When the payment is authorised, this field holds the authorisation code - * for the payment. * When the payment is not authorised, this field is empty. - * - * @return authCode Authorisation code: * When the payment is authorised, this field holds the - * authorisation code for the payment. * When the payment is not authorised, this field is - * empty. + * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * @return authCode Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,12 +125,9 @@ public String getAuthCode() { } /** - * Authorisation code: * When the payment is authorised, this field holds the authorisation code - * for the payment. * When the payment is not authorised, this field is empty. + * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. * - * @param authCode Authorisation code: * When the payment is authorised, this field holds the - * authorisation code for the payment. * When the payment is not authorised, this field is - * empty. + * @param authCode Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,7 +138,7 @@ public void setAuthCode(String authCode) { /** * currentBalance * - * @param currentBalance + * @param currentBalance * @return the current {@code StoredValueLoadResponse} instance, allowing for method chaining */ public StoredValueLoadResponse currentBalance(Amount currentBalance) { @@ -158,8 +148,7 @@ public StoredValueLoadResponse currentBalance(Amount currentBalance) { /** * Get currentBalance - * - * @return currentBalance + * @return currentBalance */ @JsonProperty(JSON_PROPERTY_CURRENT_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -170,7 +159,7 @@ public Amount getCurrentBalance() { /** * currentBalance * - * @param currentBalance + * @param currentBalance */ @JsonProperty(JSON_PROPERTY_CURRENT_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,12 +168,9 @@ public void setCurrentBalance(Amount currentBalance) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value - * is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character string reference associated with the - * transaction/request. This value is globally unique; quote it when communicating with us - * about this request. + * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. * @return the current {@code StoredValueLoadResponse} instance, allowing for method chaining */ public StoredValueLoadResponse pspReference(String pspReference) { @@ -193,12 +179,8 @@ public StoredValueLoadResponse pspReference(String pspReference) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value - * is globally unique; quote it when communicating with us about this request. - * - * @return pspReference Adyen's 16-character string reference associated with the - * transaction/request. This value is globally unique; quote it when communicating with us - * about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @return pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -207,12 +189,9 @@ public String getPspReference() { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value - * is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character string reference associated with the - * transaction/request. This value is globally unique; quote it when communicating with us - * about this request. + * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,14 +200,9 @@ public void setPspReference(String pspReference) { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason - * for the refusal or a description of the error. When a transaction fails, the authorisation - * response includes `resultCode` and `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. * - * @param refusalReason If the transaction is refused or an error occurs, this field holds - * Adyen's mapped reason for the refusal or a description of the error. When a transaction - * fails, the authorisation response includes `resultCode` and - * `refusalReason` values. + * @param refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. * @return the current {@code StoredValueLoadResponse} instance, allowing for method chaining */ public StoredValueLoadResponse refusalReason(String refusalReason) { @@ -237,14 +211,8 @@ public StoredValueLoadResponse refusalReason(String refusalReason) { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason - * for the refusal or a description of the error. When a transaction fails, the authorisation - * response includes `resultCode` and `refusalReason` values. - * - * @return refusalReason If the transaction is refused or an error occurs, this field holds - * Adyen's mapped reason for the refusal or a description of the error. When a transaction - * fails, the authorisation response includes `resultCode` and - * `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * @return refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -253,14 +221,9 @@ public String getRefusalReason() { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason - * for the refusal or a description of the error. When a transaction fails, the authorisation - * response includes `resultCode` and `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. * - * @param refusalReason If the transaction is refused or an error occurs, this field holds - * Adyen's mapped reason for the refusal or a description of the error. When a transaction - * fails, the authorisation response includes `resultCode` and - * `refusalReason` values. + * @param refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -269,19 +232,9 @@ public void setRefusalReason(String refusalReason) { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed - * successfully. * **Refused** – The operation was refused. The reason is given in the - * `refusalReason` field. * **Error** – There was an error when the operation was - * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – - * The amount on the payment method is lower than the amount given in the request. Only applicable - * to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. * - * @param resultCode The result of the payment. Possible values: * **Success** – The operation has - * been completed successfully. * **Refused** – The operation was refused. The reason is given - * in the `refusalReason` field. * **Error** – There was an error when the operation - * was processed. The reason is given in the `refusalReason` field. * - * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in - * the request. Only applicable to balance checks. + * @param resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. * @return the current {@code StoredValueLoadResponse} instance, allowing for method chaining */ public StoredValueLoadResponse resultCode(ResultCodeEnum resultCode) { @@ -290,19 +243,8 @@ public StoredValueLoadResponse resultCode(ResultCodeEnum resultCode) { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed - * successfully. * **Refused** – The operation was refused. The reason is given in the - * `refusalReason` field. * **Error** – There was an error when the operation was - * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – - * The amount on the payment method is lower than the amount given in the request. Only applicable - * to balance checks. - * - * @return resultCode The result of the payment. Possible values: * **Success** – The operation - * has been completed successfully. * **Refused** – The operation was refused. The reason is - * given in the `refusalReason` field. * **Error** – There was an error when the - * operation was processed. The reason is given in the `refusalReason` field. * - * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in - * the request. Only applicable to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * @return resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -311,19 +253,9 @@ public ResultCodeEnum getResultCode() { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed - * successfully. * **Refused** – The operation was refused. The reason is given in the - * `refusalReason` field. * **Error** – There was an error when the operation was - * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – - * The amount on the payment method is lower than the amount given in the request. Only applicable - * to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. * - * @param resultCode The result of the payment. Possible values: * **Success** – The operation has - * been completed successfully. * **Refused** – The operation was refused. The reason is given - * in the `refusalReason` field. * **Error** – There was an error when the operation - * was processed. The reason is given in the `refusalReason` field. * - * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in - * the request. Only applicable to balance checks. + * @param resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -334,8 +266,7 @@ public void setResultCode(ResultCodeEnum resultCode) { /** * Raw refusal reason received from the third party, where available * - * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where - * available + * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where available * @return the current {@code StoredValueLoadResponse} instance, allowing for method chaining */ public StoredValueLoadResponse thirdPartyRefusalReason(String thirdPartyRefusalReason) { @@ -345,9 +276,7 @@ public StoredValueLoadResponse thirdPartyRefusalReason(String thirdPartyRefusalR /** * Raw refusal reason received from the third party, where available - * - * @return thirdPartyRefusalReason Raw refusal reason received from the third party, where - * available + * @return thirdPartyRefusalReason Raw refusal reason received from the third party, where available */ @JsonProperty(JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -358,8 +287,7 @@ public String getThirdPartyRefusalReason() { /** * Raw refusal reason received from the third party, where available * - * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where - * available + * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where available */ @JsonProperty(JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -367,7 +295,9 @@ public void setThirdPartyRefusalReason(String thirdPartyRefusalReason) { this.thirdPartyRefusalReason = thirdPartyRefusalReason; } - /** Return true if this StoredValueLoadResponse object is equal to o. */ + /** + * Return true if this StoredValueLoadResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -377,19 +307,17 @@ public boolean equals(Object o) { return false; } StoredValueLoadResponse storedValueLoadResponse = (StoredValueLoadResponse) o; - return Objects.equals(this.authCode, storedValueLoadResponse.authCode) - && Objects.equals(this.currentBalance, storedValueLoadResponse.currentBalance) - && Objects.equals(this.pspReference, storedValueLoadResponse.pspReference) - && Objects.equals(this.refusalReason, storedValueLoadResponse.refusalReason) - && Objects.equals(this.resultCode, storedValueLoadResponse.resultCode) - && Objects.equals( - this.thirdPartyRefusalReason, storedValueLoadResponse.thirdPartyRefusalReason); + return Objects.equals(this.authCode, storedValueLoadResponse.authCode) && + Objects.equals(this.currentBalance, storedValueLoadResponse.currentBalance) && + Objects.equals(this.pspReference, storedValueLoadResponse.pspReference) && + Objects.equals(this.refusalReason, storedValueLoadResponse.refusalReason) && + Objects.equals(this.resultCode, storedValueLoadResponse.resultCode) && + Objects.equals(this.thirdPartyRefusalReason, storedValueLoadResponse.thirdPartyRefusalReason); } @Override public int hashCode() { - return Objects.hash( - authCode, currentBalance, pspReference, refusalReason, resultCode, thirdPartyRefusalReason); + return Objects.hash(authCode, currentBalance, pspReference, refusalReason, resultCode, thirdPartyRefusalReason); } @Override @@ -401,15 +329,14 @@ public String toString() { sb.append(" pspReference: ").append(toIndentedString(pspReference)).append("\n"); sb.append(" refusalReason: ").append(toIndentedString(refusalReason)).append("\n"); sb.append(" resultCode: ").append(toIndentedString(resultCode)).append("\n"); - sb.append(" thirdPartyRefusalReason: ") - .append(toIndentedString(thirdPartyRefusalReason)) - .append("\n"); + sb.append(" thirdPartyRefusalReason: ").append(toIndentedString(thirdPartyRefusalReason)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -418,23 +345,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of StoredValueLoadResponse given an JSON string * * @param jsonString JSON string * @return An instance of StoredValueLoadResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoredValueLoadResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to StoredValueLoadResponse */ public static StoredValueLoadResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoredValueLoadResponse.class); } - - /** - * Convert an instance of StoredValueLoadResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of StoredValueLoadResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueStatusChangeRequest.java b/src/main/java/com/adyen/model/storedvalue/StoredValueStatusChangeRequest.java index b7fc03187..197fd2f71 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueStatusChangeRequest.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueStatusChangeRequest.java @@ -2,28 +2,34 @@ * Adyen Stored Value API * * The version of the OpenAPI document: 46 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.storedvalue; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.storedvalue.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** StoredValueStatusChangeRequest */ +/** + * StoredValueStatusChangeRequest + */ @JsonPropertyOrder({ StoredValueStatusChangeRequest.JSON_PROPERTY_AMOUNT, StoredValueStatusChangeRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, @@ -35,6 +41,7 @@ StoredValueStatusChangeRequest.JSON_PROPERTY_STATUS, StoredValueStatusChangeRequest.JSON_PROPERTY_STORE }) + public class StoredValueStatusChangeRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -52,19 +59,10 @@ public class StoredValueStatusChangeRequest { private String reference; /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ public enum ShopperInteractionEnum { + ECOMMERCE(String.valueOf("Ecommerce")), CONTAUTH(String.valueOf("ContAuth")), @@ -78,7 +76,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -99,11 +97,7 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ShopperInteractionEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -114,8 +108,11 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference"; private String shopperReference; - /** The status you want to change to */ + /** + * The status you want to change to + */ public enum StatusEnum { + ACTIVE(String.valueOf("active")), INACTIVE(String.valueOf("inactive")); @@ -125,7 +122,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -146,11 +143,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -161,14 +154,14 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STORE = "store"; private String store; - public StoredValueStatusChangeRequest() {} + public StoredValueStatusChangeRequest() { + } /** * amount * - * @param amount - * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method - * chaining + * @param amount + * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method chaining */ public StoredValueStatusChangeRequest amount(Amount amount) { this.amount = amount; @@ -177,8 +170,7 @@ public StoredValueStatusChangeRequest amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,7 +181,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,10 +192,8 @@ public void setAmount(Amount amount) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. - * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method - * chaining + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method chaining */ public StoredValueStatusChangeRequest merchantAccount(String merchantAccount) { this.merchantAccount = merchantAccount; @@ -212,9 +202,7 @@ public StoredValueStatusChangeRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * - * @return merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @return merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -225,8 +213,7 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -235,13 +222,10 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The collection that contains the type of the payment method and its specific information if - * available + * The collection that contains the type of the payment method and its specific information if available * - * @param paymentMethod The collection that contains the type of the payment method and its - * specific information if available - * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method - * chaining + * @param paymentMethod The collection that contains the type of the payment method and its specific information if available + * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method chaining */ public StoredValueStatusChangeRequest paymentMethod(Map paymentMethod) { this.paymentMethod = paymentMethod; @@ -257,11 +241,8 @@ public StoredValueStatusChangeRequest putPaymentMethodItem(String key, String pa } /** - * The collection that contains the type of the payment method and its specific information if - * available - * - * @return paymentMethod The collection that contains the type of the payment method and its - * specific information if available + * The collection that contains the type of the payment method and its specific information if available + * @return paymentMethod The collection that contains the type of the payment method and its specific information if available */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -270,11 +251,9 @@ public Map getPaymentMethod() { } /** - * The collection that contains the type of the payment method and its specific information if - * available + * The collection that contains the type of the payment method and its specific information if available * - * @param paymentMethod The collection that contains the type of the payment method and its - * specific information if available + * @param paymentMethod The collection that contains the type of the payment method and its specific information if available */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -285,9 +264,8 @@ public void setPaymentMethod(Map paymentMethod) { /** * recurringDetailReference * - * @param recurringDetailReference - * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method - * chaining + * @param recurringDetailReference + * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method chaining */ public StoredValueStatusChangeRequest recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; @@ -296,8 +274,7 @@ public StoredValueStatusChangeRequest recurringDetailReference(String recurringD /** * Get recurringDetailReference - * - * @return recurringDetailReference + * @return recurringDetailReference */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -308,7 +285,7 @@ public String getRecurringDetailReference() { /** * recurringDetailReference * - * @param recurringDetailReference + * @param recurringDetailReference */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -317,17 +294,10 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. - * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method - * chaining + * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method chaining */ public StoredValueStatusChangeRequest reference(String reference) { this.reference = reference; @@ -335,15 +305,8 @@ public StoredValueStatusChangeRequest reference(String reference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. - * - * @return reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @return reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -352,15 +315,9 @@ public String getReference() { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -369,64 +326,19 @@ public void setReference(String reference) { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. - * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method - * chaining - */ - public StoredValueStatusChangeRequest shopperInteraction( - ShopperInteractionEnum shopperInteraction) { + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method chaining + */ + public StoredValueStatusChangeRequest shopperInteraction(ShopperInteractionEnum shopperInteraction) { this.shopperInteraction = shopperInteraction; return this; } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. - * - * @return shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * @return shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -435,30 +347,9 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether - * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper - * interaction by default. This field has the following possible values: * `Ecommerce` - - * Online transactions where the cardholder is present (online). For better authorisation rates, - * we recommend sending the card security code (CSC) along with the request. * - * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is - * known to the merchant (returning customer). If the shopper is present (online), you can supply - * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and - * telephone-order transactions where the shopper is in contact with the merchant via email or - * telephone. * `POS` - Point-of-sale transactions where the shopper is physically - * present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their - * card details, and whether the shopper is a returning customer. For the web service API, - * Adyen assumes Ecommerce shopper interaction by default. This field has the following - * possible values: * `Ecommerce` - Online transactions where the cardholder is - * present (online). For better authorisation rates, we recommend sending the card security - * code (CSC) along with the request. * `ContAuth` - Card on file and/or - * subscription transactions, where the cardholder is known to the merchant (returning - * customer). If the shopper is present (online), you can supply also the CSC to improve - * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order - * transactions where the shopper is in contact with the merchant via email or telephone. * - * `POS` - Point-of-sale transactions where the shopper is physically present to - * make a payment using a secure payment terminal. + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -469,9 +360,8 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { /** * shopperReference * - * @param shopperReference - * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method - * chaining + * @param shopperReference + * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method chaining */ public StoredValueStatusChangeRequest shopperReference(String shopperReference) { this.shopperReference = shopperReference; @@ -480,8 +370,7 @@ public StoredValueStatusChangeRequest shopperReference(String shopperReference) /** * Get shopperReference - * - * @return shopperReference + * @return shopperReference */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -492,7 +381,7 @@ public String getShopperReference() { /** * shopperReference * - * @param shopperReference + * @param shopperReference */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -504,8 +393,7 @@ public void setShopperReference(String shopperReference) { * The status you want to change to * * @param status The status you want to change to - * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method - * chaining + * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method chaining */ public StoredValueStatusChangeRequest status(StatusEnum status) { this.status = status; @@ -514,7 +402,6 @@ public StoredValueStatusChangeRequest status(StatusEnum status) { /** * The status you want to change to - * * @return status The status you want to change to */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -538,8 +425,7 @@ public void setStatus(StatusEnum status) { * The physical store, for which this payment is processed. * * @param store The physical store, for which this payment is processed. - * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method - * chaining + * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method chaining */ public StoredValueStatusChangeRequest store(String store) { this.store = store; @@ -548,7 +434,6 @@ public StoredValueStatusChangeRequest store(String store) { /** * The physical store, for which this payment is processed. - * * @return store The physical store, for which this payment is processed. */ @JsonProperty(JSON_PROPERTY_STORE) @@ -568,7 +453,9 @@ public void setStore(String store) { this.store = store; } - /** Return true if this StoredValueStatusChangeRequest object is equal to o. */ + /** + * Return true if this StoredValueStatusChangeRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -577,33 +464,21 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - StoredValueStatusChangeRequest storedValueStatusChangeRequest = - (StoredValueStatusChangeRequest) o; - return Objects.equals(this.amount, storedValueStatusChangeRequest.amount) - && Objects.equals(this.merchantAccount, storedValueStatusChangeRequest.merchantAccount) - && Objects.equals(this.paymentMethod, storedValueStatusChangeRequest.paymentMethod) - && Objects.equals( - this.recurringDetailReference, storedValueStatusChangeRequest.recurringDetailReference) - && Objects.equals(this.reference, storedValueStatusChangeRequest.reference) - && Objects.equals( - this.shopperInteraction, storedValueStatusChangeRequest.shopperInteraction) - && Objects.equals(this.shopperReference, storedValueStatusChangeRequest.shopperReference) - && Objects.equals(this.status, storedValueStatusChangeRequest.status) - && Objects.equals(this.store, storedValueStatusChangeRequest.store); + StoredValueStatusChangeRequest storedValueStatusChangeRequest = (StoredValueStatusChangeRequest) o; + return Objects.equals(this.amount, storedValueStatusChangeRequest.amount) && + Objects.equals(this.merchantAccount, storedValueStatusChangeRequest.merchantAccount) && + Objects.equals(this.paymentMethod, storedValueStatusChangeRequest.paymentMethod) && + Objects.equals(this.recurringDetailReference, storedValueStatusChangeRequest.recurringDetailReference) && + Objects.equals(this.reference, storedValueStatusChangeRequest.reference) && + Objects.equals(this.shopperInteraction, storedValueStatusChangeRequest.shopperInteraction) && + Objects.equals(this.shopperReference, storedValueStatusChangeRequest.shopperReference) && + Objects.equals(this.status, storedValueStatusChangeRequest.status) && + Objects.equals(this.store, storedValueStatusChangeRequest.store); } @Override public int hashCode() { - return Objects.hash( - amount, - merchantAccount, - paymentMethod, - recurringDetailReference, - reference, - shopperInteraction, - shopperReference, - status, - store); + return Objects.hash(amount, merchantAccount, paymentMethod, recurringDetailReference, reference, shopperInteraction, shopperReference, status, store); } @Override @@ -613,9 +488,7 @@ public String toString() { sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n"); - sb.append(" recurringDetailReference: ") - .append(toIndentedString(recurringDetailReference)) - .append("\n"); + sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" shopperInteraction: ").append(toIndentedString(shopperInteraction)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); @@ -626,7 +499,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -635,24 +509,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of StoredValueStatusChangeRequest given an JSON string * * @param jsonString JSON string * @return An instance of StoredValueStatusChangeRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoredValueStatusChangeRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to StoredValueStatusChangeRequest */ - public static StoredValueStatusChangeRequest fromJson(String jsonString) - throws JsonProcessingException { + public static StoredValueStatusChangeRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoredValueStatusChangeRequest.class); } - - /** - * Convert an instance of StoredValueStatusChangeRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of StoredValueStatusChangeRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueStatusChangeResponse.java b/src/main/java/com/adyen/model/storedvalue/StoredValueStatusChangeResponse.java index b319e6432..1d20f37b5 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueStatusChangeResponse.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueStatusChangeResponse.java @@ -2,26 +2,32 @@ * Adyen Stored Value API * * The version of the OpenAPI document: 46 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.storedvalue; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.storedvalue.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** StoredValueStatusChangeResponse */ + +/** + * StoredValueStatusChangeResponse + */ @JsonPropertyOrder({ StoredValueStatusChangeResponse.JSON_PROPERTY_AUTH_CODE, StoredValueStatusChangeResponse.JSON_PROPERTY_CURRENT_BALANCE, @@ -30,6 +36,7 @@ StoredValueStatusChangeResponse.JSON_PROPERTY_RESULT_CODE, StoredValueStatusChangeResponse.JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON }) + public class StoredValueStatusChangeResponse { public static final String JSON_PROPERTY_AUTH_CODE = "authCode"; private String authCode; @@ -44,14 +51,10 @@ public class StoredValueStatusChangeResponse { private String refusalReason; /** - * The result of the payment. Possible values: * **Success** – The operation has been completed - * successfully. * **Refused** – The operation was refused. The reason is given in the - * `refusalReason` field. * **Error** – There was an error when the operation was - * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – - * The amount on the payment method is lower than the amount given in the request. Only applicable - * to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. */ public enum ResultCodeEnum { + SUCCESS(String.valueOf("Success")), REFUSED(String.valueOf("Refused")), @@ -65,7 +68,7 @@ public enum ResultCodeEnum { private String value; ResultCodeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -86,11 +89,7 @@ public static ResultCodeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ResultCodeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ResultCodeEnum.values())); + LOG.warning("ResultCodeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResultCodeEnum.values())); return null; } } @@ -101,17 +100,14 @@ public static ResultCodeEnum fromValue(String value) { public static final String JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON = "thirdPartyRefusalReason"; private String thirdPartyRefusalReason; - public StoredValueStatusChangeResponse() {} + public StoredValueStatusChangeResponse() { + } /** - * Authorisation code: * When the payment is authorised, this field holds the authorisation code - * for the payment. * When the payment is not authorised, this field is empty. + * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. * - * @param authCode Authorisation code: * When the payment is authorised, this field holds the - * authorisation code for the payment. * When the payment is not authorised, this field is - * empty. - * @return the current {@code StoredValueStatusChangeResponse} instance, allowing for method - * chaining + * @param authCode Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * @return the current {@code StoredValueStatusChangeResponse} instance, allowing for method chaining */ public StoredValueStatusChangeResponse authCode(String authCode) { this.authCode = authCode; @@ -119,12 +115,8 @@ public StoredValueStatusChangeResponse authCode(String authCode) { } /** - * Authorisation code: * When the payment is authorised, this field holds the authorisation code - * for the payment. * When the payment is not authorised, this field is empty. - * - * @return authCode Authorisation code: * When the payment is authorised, this field holds the - * authorisation code for the payment. * When the payment is not authorised, this field is - * empty. + * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * @return authCode Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -133,12 +125,9 @@ public String getAuthCode() { } /** - * Authorisation code: * When the payment is authorised, this field holds the authorisation code - * for the payment. * When the payment is not authorised, this field is empty. + * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. * - * @param authCode Authorisation code: * When the payment is authorised, this field holds the - * authorisation code for the payment. * When the payment is not authorised, this field is - * empty. + * @param authCode Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -149,9 +138,8 @@ public void setAuthCode(String authCode) { /** * currentBalance * - * @param currentBalance - * @return the current {@code StoredValueStatusChangeResponse} instance, allowing for method - * chaining + * @param currentBalance + * @return the current {@code StoredValueStatusChangeResponse} instance, allowing for method chaining */ public StoredValueStatusChangeResponse currentBalance(Amount currentBalance) { this.currentBalance = currentBalance; @@ -160,8 +148,7 @@ public StoredValueStatusChangeResponse currentBalance(Amount currentBalance) { /** * Get currentBalance - * - * @return currentBalance + * @return currentBalance */ @JsonProperty(JSON_PROPERTY_CURRENT_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,7 +159,7 @@ public Amount getCurrentBalance() { /** * currentBalance * - * @param currentBalance + * @param currentBalance */ @JsonProperty(JSON_PROPERTY_CURRENT_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,14 +168,10 @@ public void setCurrentBalance(Amount currentBalance) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value - * is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character string reference associated with the - * transaction/request. This value is globally unique; quote it when communicating with us - * about this request. - * @return the current {@code StoredValueStatusChangeResponse} instance, allowing for method - * chaining + * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @return the current {@code StoredValueStatusChangeResponse} instance, allowing for method chaining */ public StoredValueStatusChangeResponse pspReference(String pspReference) { this.pspReference = pspReference; @@ -196,12 +179,8 @@ public StoredValueStatusChangeResponse pspReference(String pspReference) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value - * is globally unique; quote it when communicating with us about this request. - * - * @return pspReference Adyen's 16-character string reference associated with the - * transaction/request. This value is globally unique; quote it when communicating with us - * about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @return pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -210,12 +189,9 @@ public String getPspReference() { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value - * is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character string reference associated with the - * transaction/request. This value is globally unique; quote it when communicating with us - * about this request. + * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,16 +200,10 @@ public void setPspReference(String pspReference) { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason - * for the refusal or a description of the error. When a transaction fails, the authorisation - * response includes `resultCode` and `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. * - * @param refusalReason If the transaction is refused or an error occurs, this field holds - * Adyen's mapped reason for the refusal or a description of the error. When a transaction - * fails, the authorisation response includes `resultCode` and - * `refusalReason` values. - * @return the current {@code StoredValueStatusChangeResponse} instance, allowing for method - * chaining + * @param refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * @return the current {@code StoredValueStatusChangeResponse} instance, allowing for method chaining */ public StoredValueStatusChangeResponse refusalReason(String refusalReason) { this.refusalReason = refusalReason; @@ -241,14 +211,8 @@ public StoredValueStatusChangeResponse refusalReason(String refusalReason) { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason - * for the refusal or a description of the error. When a transaction fails, the authorisation - * response includes `resultCode` and `refusalReason` values. - * - * @return refusalReason If the transaction is refused or an error occurs, this field holds - * Adyen's mapped reason for the refusal or a description of the error. When a transaction - * fails, the authorisation response includes `resultCode` and - * `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * @return refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -257,14 +221,9 @@ public String getRefusalReason() { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason - * for the refusal or a description of the error. When a transaction fails, the authorisation - * response includes `resultCode` and `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. * - * @param refusalReason If the transaction is refused or an error occurs, this field holds - * Adyen's mapped reason for the refusal or a description of the error. When a transaction - * fails, the authorisation response includes `resultCode` and - * `refusalReason` values. + * @param refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -273,21 +232,10 @@ public void setRefusalReason(String refusalReason) { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed - * successfully. * **Refused** – The operation was refused. The reason is given in the - * `refusalReason` field. * **Error** – There was an error when the operation was - * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – - * The amount on the payment method is lower than the amount given in the request. Only applicable - * to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. * - * @param resultCode The result of the payment. Possible values: * **Success** – The operation has - * been completed successfully. * **Refused** – The operation was refused. The reason is given - * in the `refusalReason` field. * **Error** – There was an error when the operation - * was processed. The reason is given in the `refusalReason` field. * - * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in - * the request. Only applicable to balance checks. - * @return the current {@code StoredValueStatusChangeResponse} instance, allowing for method - * chaining + * @param resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * @return the current {@code StoredValueStatusChangeResponse} instance, allowing for method chaining */ public StoredValueStatusChangeResponse resultCode(ResultCodeEnum resultCode) { this.resultCode = resultCode; @@ -295,19 +243,8 @@ public StoredValueStatusChangeResponse resultCode(ResultCodeEnum resultCode) { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed - * successfully. * **Refused** – The operation was refused. The reason is given in the - * `refusalReason` field. * **Error** – There was an error when the operation was - * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – - * The amount on the payment method is lower than the amount given in the request. Only applicable - * to balance checks. - * - * @return resultCode The result of the payment. Possible values: * **Success** – The operation - * has been completed successfully. * **Refused** – The operation was refused. The reason is - * given in the `refusalReason` field. * **Error** – There was an error when the - * operation was processed. The reason is given in the `refusalReason` field. * - * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in - * the request. Only applicable to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * @return resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -316,19 +253,9 @@ public ResultCodeEnum getResultCode() { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed - * successfully. * **Refused** – The operation was refused. The reason is given in the - * `refusalReason` field. * **Error** – There was an error when the operation was - * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – - * The amount on the payment method is lower than the amount given in the request. Only applicable - * to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. * - * @param resultCode The result of the payment. Possible values: * **Success** – The operation has - * been completed successfully. * **Refused** – The operation was refused. The reason is given - * in the `refusalReason` field. * **Error** – There was an error when the operation - * was processed. The reason is given in the `refusalReason` field. * - * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in - * the request. Only applicable to balance checks. + * @param resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -339,10 +266,8 @@ public void setResultCode(ResultCodeEnum resultCode) { /** * Raw refusal reason received from the third party, where available * - * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where - * available - * @return the current {@code StoredValueStatusChangeResponse} instance, allowing for method - * chaining + * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where available + * @return the current {@code StoredValueStatusChangeResponse} instance, allowing for method chaining */ public StoredValueStatusChangeResponse thirdPartyRefusalReason(String thirdPartyRefusalReason) { this.thirdPartyRefusalReason = thirdPartyRefusalReason; @@ -351,9 +276,7 @@ public StoredValueStatusChangeResponse thirdPartyRefusalReason(String thirdParty /** * Raw refusal reason received from the third party, where available - * - * @return thirdPartyRefusalReason Raw refusal reason received from the third party, where - * available + * @return thirdPartyRefusalReason Raw refusal reason received from the third party, where available */ @JsonProperty(JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -364,8 +287,7 @@ public String getThirdPartyRefusalReason() { /** * Raw refusal reason received from the third party, where available * - * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where - * available + * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where available */ @JsonProperty(JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -373,7 +295,9 @@ public void setThirdPartyRefusalReason(String thirdPartyRefusalReason) { this.thirdPartyRefusalReason = thirdPartyRefusalReason; } - /** Return true if this StoredValueStatusChangeResponse object is equal to o. */ + /** + * Return true if this StoredValueStatusChangeResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -382,21 +306,18 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - StoredValueStatusChangeResponse storedValueStatusChangeResponse = - (StoredValueStatusChangeResponse) o; - return Objects.equals(this.authCode, storedValueStatusChangeResponse.authCode) - && Objects.equals(this.currentBalance, storedValueStatusChangeResponse.currentBalance) - && Objects.equals(this.pspReference, storedValueStatusChangeResponse.pspReference) - && Objects.equals(this.refusalReason, storedValueStatusChangeResponse.refusalReason) - && Objects.equals(this.resultCode, storedValueStatusChangeResponse.resultCode) - && Objects.equals( - this.thirdPartyRefusalReason, storedValueStatusChangeResponse.thirdPartyRefusalReason); + StoredValueStatusChangeResponse storedValueStatusChangeResponse = (StoredValueStatusChangeResponse) o; + return Objects.equals(this.authCode, storedValueStatusChangeResponse.authCode) && + Objects.equals(this.currentBalance, storedValueStatusChangeResponse.currentBalance) && + Objects.equals(this.pspReference, storedValueStatusChangeResponse.pspReference) && + Objects.equals(this.refusalReason, storedValueStatusChangeResponse.refusalReason) && + Objects.equals(this.resultCode, storedValueStatusChangeResponse.resultCode) && + Objects.equals(this.thirdPartyRefusalReason, storedValueStatusChangeResponse.thirdPartyRefusalReason); } @Override public int hashCode() { - return Objects.hash( - authCode, currentBalance, pspReference, refusalReason, resultCode, thirdPartyRefusalReason); + return Objects.hash(authCode, currentBalance, pspReference, refusalReason, resultCode, thirdPartyRefusalReason); } @Override @@ -408,15 +329,14 @@ public String toString() { sb.append(" pspReference: ").append(toIndentedString(pspReference)).append("\n"); sb.append(" refusalReason: ").append(toIndentedString(refusalReason)).append("\n"); sb.append(" resultCode: ").append(toIndentedString(resultCode)).append("\n"); - sb.append(" thirdPartyRefusalReason: ") - .append(toIndentedString(thirdPartyRefusalReason)) - .append("\n"); + sb.append(" thirdPartyRefusalReason: ").append(toIndentedString(thirdPartyRefusalReason)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -425,24 +345,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of StoredValueStatusChangeResponse given an JSON string * * @param jsonString JSON string * @return An instance of StoredValueStatusChangeResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoredValueStatusChangeResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to StoredValueStatusChangeResponse */ - public static StoredValueStatusChangeResponse fromJson(String jsonString) - throws JsonProcessingException { + public static StoredValueStatusChangeResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoredValueStatusChangeResponse.class); } - - /** - * Convert an instance of StoredValueStatusChangeResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of StoredValueStatusChangeResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueVoidRequest.java b/src/main/java/com/adyen/model/storedvalue/StoredValueVoidRequest.java index fa42095bc..bbd98ebe3 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueVoidRequest.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueVoidRequest.java @@ -2,22 +2,31 @@ * Adyen Stored Value API * * The version of the OpenAPI document: 46 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.storedvalue; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** StoredValueVoidRequest */ + +/** + * StoredValueVoidRequest + */ @JsonPropertyOrder({ StoredValueVoidRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, StoredValueVoidRequest.JSON_PROPERTY_ORIGINAL_REFERENCE, @@ -26,6 +35,7 @@ StoredValueVoidRequest.JSON_PROPERTY_TENDER_REFERENCE, StoredValueVoidRequest.JSON_PROPERTY_UNIQUE_TERMINAL_ID }) + public class StoredValueVoidRequest { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; @@ -45,13 +55,13 @@ public class StoredValueVoidRequest { public static final String JSON_PROPERTY_UNIQUE_TERMINAL_ID = "uniqueTerminalId"; private String uniqueTerminalId; - public StoredValueVoidRequest() {} + public StoredValueVoidRequest() { + } /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. * @return the current {@code StoredValueVoidRequest} instance, allowing for method chaining */ public StoredValueVoidRequest merchantAccount(String merchantAccount) { @@ -61,9 +71,7 @@ public StoredValueVoidRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * - * @return merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @return merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -74,8 +82,7 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the - * transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,7 +103,6 @@ public StoredValueVoidRequest originalReference(String originalReference) { /** * The original pspReference of the payment to modify. - * * @return originalReference The original pspReference of the payment to modify. */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @@ -117,11 +123,9 @@ public void setOriginalReference(String originalReference) { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in - * reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in - * Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. * @return the current {@code StoredValueVoidRequest} instance, allowing for method chaining */ public StoredValueVoidRequest reference(String reference) { @@ -130,11 +134,8 @@ public StoredValueVoidRequest reference(String reference) { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in - * reports. Maximum length: 80 characters. - * - * @return reference Your reference for the payment modification. This reference is visible in - * Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * @return reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,11 +144,9 @@ public String getReference() { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in - * reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in - * Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,7 +167,6 @@ public StoredValueVoidRequest store(String store) { /** * The physical store, for which this payment is processed. - * * @return store The physical store, for which this payment is processed. */ @JsonProperty(JSON_PROPERTY_STORE) @@ -201,7 +199,6 @@ public StoredValueVoidRequest tenderReference(String tenderReference) { /** * The reference of the tender. - * * @return tenderReference The reference of the tender. */ @JsonProperty(JSON_PROPERTY_TENDER_REFERENCE) @@ -234,7 +231,6 @@ public StoredValueVoidRequest uniqueTerminalId(String uniqueTerminalId) { /** * The unique ID of a POS terminal. - * * @return uniqueTerminalId The unique ID of a POS terminal. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @@ -254,7 +250,9 @@ public void setUniqueTerminalId(String uniqueTerminalId) { this.uniqueTerminalId = uniqueTerminalId; } - /** Return true if this StoredValueVoidRequest object is equal to o. */ + /** + * Return true if this StoredValueVoidRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -264,18 +262,17 @@ public boolean equals(Object o) { return false; } StoredValueVoidRequest storedValueVoidRequest = (StoredValueVoidRequest) o; - return Objects.equals(this.merchantAccount, storedValueVoidRequest.merchantAccount) - && Objects.equals(this.originalReference, storedValueVoidRequest.originalReference) - && Objects.equals(this.reference, storedValueVoidRequest.reference) - && Objects.equals(this.store, storedValueVoidRequest.store) - && Objects.equals(this.tenderReference, storedValueVoidRequest.tenderReference) - && Objects.equals(this.uniqueTerminalId, storedValueVoidRequest.uniqueTerminalId); + return Objects.equals(this.merchantAccount, storedValueVoidRequest.merchantAccount) && + Objects.equals(this.originalReference, storedValueVoidRequest.originalReference) && + Objects.equals(this.reference, storedValueVoidRequest.reference) && + Objects.equals(this.store, storedValueVoidRequest.store) && + Objects.equals(this.tenderReference, storedValueVoidRequest.tenderReference) && + Objects.equals(this.uniqueTerminalId, storedValueVoidRequest.uniqueTerminalId); } @Override public int hashCode() { - return Objects.hash( - merchantAccount, originalReference, reference, store, tenderReference, uniqueTerminalId); + return Objects.hash(merchantAccount, originalReference, reference, store, tenderReference, uniqueTerminalId); } @Override @@ -293,7 +290,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -302,23 +300,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of StoredValueVoidRequest given an JSON string * * @param jsonString JSON string * @return An instance of StoredValueVoidRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoredValueVoidRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to StoredValueVoidRequest */ public static StoredValueVoidRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoredValueVoidRequest.class); } - - /** - * Convert an instance of StoredValueVoidRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of StoredValueVoidRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueVoidResponse.java b/src/main/java/com/adyen/model/storedvalue/StoredValueVoidResponse.java index 72d4252f8..ac027dead 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueVoidResponse.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueVoidResponse.java @@ -2,26 +2,32 @@ * Adyen Stored Value API * * The version of the OpenAPI document: 46 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.storedvalue; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.storedvalue.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** StoredValueVoidResponse */ + +/** + * StoredValueVoidResponse + */ @JsonPropertyOrder({ StoredValueVoidResponse.JSON_PROPERTY_CURRENT_BALANCE, StoredValueVoidResponse.JSON_PROPERTY_PSP_REFERENCE, @@ -29,6 +35,7 @@ StoredValueVoidResponse.JSON_PROPERTY_RESULT_CODE, StoredValueVoidResponse.JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON }) + public class StoredValueVoidResponse { public static final String JSON_PROPERTY_CURRENT_BALANCE = "currentBalance"; private Amount currentBalance; @@ -40,14 +47,10 @@ public class StoredValueVoidResponse { private String refusalReason; /** - * The result of the payment. Possible values: * **Success** – The operation has been completed - * successfully. * **Refused** – The operation was refused. The reason is given in the - * `refusalReason` field. * **Error** – There was an error when the operation was - * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – - * The amount on the payment method is lower than the amount given in the request. Only applicable - * to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. */ public enum ResultCodeEnum { + SUCCESS(String.valueOf("Success")), REFUSED(String.valueOf("Refused")), @@ -61,7 +64,7 @@ public enum ResultCodeEnum { private String value; ResultCodeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -82,11 +85,7 @@ public static ResultCodeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ResultCodeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ResultCodeEnum.values())); + LOG.warning("ResultCodeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResultCodeEnum.values())); return null; } } @@ -97,12 +96,13 @@ public static ResultCodeEnum fromValue(String value) { public static final String JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON = "thirdPartyRefusalReason"; private String thirdPartyRefusalReason; - public StoredValueVoidResponse() {} + public StoredValueVoidResponse() { + } /** * currentBalance * - * @param currentBalance + * @param currentBalance * @return the current {@code StoredValueVoidResponse} instance, allowing for method chaining */ public StoredValueVoidResponse currentBalance(Amount currentBalance) { @@ -112,8 +112,7 @@ public StoredValueVoidResponse currentBalance(Amount currentBalance) { /** * Get currentBalance - * - * @return currentBalance + * @return currentBalance */ @JsonProperty(JSON_PROPERTY_CURRENT_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,7 +123,7 @@ public Amount getCurrentBalance() { /** * currentBalance * - * @param currentBalance + * @param currentBalance */ @JsonProperty(JSON_PROPERTY_CURRENT_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -133,12 +132,9 @@ public void setCurrentBalance(Amount currentBalance) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value - * is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character string reference associated with the - * transaction/request. This value is globally unique; quote it when communicating with us - * about this request. + * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. * @return the current {@code StoredValueVoidResponse} instance, allowing for method chaining */ public StoredValueVoidResponse pspReference(String pspReference) { @@ -147,12 +143,8 @@ public StoredValueVoidResponse pspReference(String pspReference) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value - * is globally unique; quote it when communicating with us about this request. - * - * @return pspReference Adyen's 16-character string reference associated with the - * transaction/request. This value is globally unique; quote it when communicating with us - * about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @return pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,12 +153,9 @@ public String getPspReference() { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value - * is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character string reference associated with the - * transaction/request. This value is globally unique; quote it when communicating with us - * about this request. + * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -175,14 +164,9 @@ public void setPspReference(String pspReference) { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason - * for the refusal or a description of the error. When a transaction fails, the authorisation - * response includes `resultCode` and `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. * - * @param refusalReason If the transaction is refused or an error occurs, this field holds - * Adyen's mapped reason for the refusal or a description of the error. When a transaction - * fails, the authorisation response includes `resultCode` and - * `refusalReason` values. + * @param refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. * @return the current {@code StoredValueVoidResponse} instance, allowing for method chaining */ public StoredValueVoidResponse refusalReason(String refusalReason) { @@ -191,14 +175,8 @@ public StoredValueVoidResponse refusalReason(String refusalReason) { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason - * for the refusal or a description of the error. When a transaction fails, the authorisation - * response includes `resultCode` and `refusalReason` values. - * - * @return refusalReason If the transaction is refused or an error occurs, this field holds - * Adyen's mapped reason for the refusal or a description of the error. When a transaction - * fails, the authorisation response includes `resultCode` and - * `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * @return refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -207,14 +185,9 @@ public String getRefusalReason() { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason - * for the refusal or a description of the error. When a transaction fails, the authorisation - * response includes `resultCode` and `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. * - * @param refusalReason If the transaction is refused or an error occurs, this field holds - * Adyen's mapped reason for the refusal or a description of the error. When a transaction - * fails, the authorisation response includes `resultCode` and - * `refusalReason` values. + * @param refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,19 +196,9 @@ public void setRefusalReason(String refusalReason) { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed - * successfully. * **Refused** – The operation was refused. The reason is given in the - * `refusalReason` field. * **Error** – There was an error when the operation was - * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – - * The amount on the payment method is lower than the amount given in the request. Only applicable - * to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. * - * @param resultCode The result of the payment. Possible values: * **Success** – The operation has - * been completed successfully. * **Refused** – The operation was refused. The reason is given - * in the `refusalReason` field. * **Error** – There was an error when the operation - * was processed. The reason is given in the `refusalReason` field. * - * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in - * the request. Only applicable to balance checks. + * @param resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. * @return the current {@code StoredValueVoidResponse} instance, allowing for method chaining */ public StoredValueVoidResponse resultCode(ResultCodeEnum resultCode) { @@ -244,19 +207,8 @@ public StoredValueVoidResponse resultCode(ResultCodeEnum resultCode) { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed - * successfully. * **Refused** – The operation was refused. The reason is given in the - * `refusalReason` field. * **Error** – There was an error when the operation was - * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – - * The amount on the payment method is lower than the amount given in the request. Only applicable - * to balance checks. - * - * @return resultCode The result of the payment. Possible values: * **Success** – The operation - * has been completed successfully. * **Refused** – The operation was refused. The reason is - * given in the `refusalReason` field. * **Error** – There was an error when the - * operation was processed. The reason is given in the `refusalReason` field. * - * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in - * the request. Only applicable to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * @return resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -265,19 +217,9 @@ public ResultCodeEnum getResultCode() { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed - * successfully. * **Refused** – The operation was refused. The reason is given in the - * `refusalReason` field. * **Error** – There was an error when the operation was - * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – - * The amount on the payment method is lower than the amount given in the request. Only applicable - * to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. * - * @param resultCode The result of the payment. Possible values: * **Success** – The operation has - * been completed successfully. * **Refused** – The operation was refused. The reason is given - * in the `refusalReason` field. * **Error** – There was an error when the operation - * was processed. The reason is given in the `refusalReason` field. * - * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in - * the request. Only applicable to balance checks. + * @param resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -288,8 +230,7 @@ public void setResultCode(ResultCodeEnum resultCode) { /** * Raw refusal reason received from the third party, where available * - * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where - * available + * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where available * @return the current {@code StoredValueVoidResponse} instance, allowing for method chaining */ public StoredValueVoidResponse thirdPartyRefusalReason(String thirdPartyRefusalReason) { @@ -299,9 +240,7 @@ public StoredValueVoidResponse thirdPartyRefusalReason(String thirdPartyRefusalR /** * Raw refusal reason received from the third party, where available - * - * @return thirdPartyRefusalReason Raw refusal reason received from the third party, where - * available + * @return thirdPartyRefusalReason Raw refusal reason received from the third party, where available */ @JsonProperty(JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -312,8 +251,7 @@ public String getThirdPartyRefusalReason() { /** * Raw refusal reason received from the third party, where available * - * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where - * available + * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where available */ @JsonProperty(JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -321,7 +259,9 @@ public void setThirdPartyRefusalReason(String thirdPartyRefusalReason) { this.thirdPartyRefusalReason = thirdPartyRefusalReason; } - /** Return true if this StoredValueVoidResponse object is equal to o. */ + /** + * Return true if this StoredValueVoidResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -331,18 +271,16 @@ public boolean equals(Object o) { return false; } StoredValueVoidResponse storedValueVoidResponse = (StoredValueVoidResponse) o; - return Objects.equals(this.currentBalance, storedValueVoidResponse.currentBalance) - && Objects.equals(this.pspReference, storedValueVoidResponse.pspReference) - && Objects.equals(this.refusalReason, storedValueVoidResponse.refusalReason) - && Objects.equals(this.resultCode, storedValueVoidResponse.resultCode) - && Objects.equals( - this.thirdPartyRefusalReason, storedValueVoidResponse.thirdPartyRefusalReason); + return Objects.equals(this.currentBalance, storedValueVoidResponse.currentBalance) && + Objects.equals(this.pspReference, storedValueVoidResponse.pspReference) && + Objects.equals(this.refusalReason, storedValueVoidResponse.refusalReason) && + Objects.equals(this.resultCode, storedValueVoidResponse.resultCode) && + Objects.equals(this.thirdPartyRefusalReason, storedValueVoidResponse.thirdPartyRefusalReason); } @Override public int hashCode() { - return Objects.hash( - currentBalance, pspReference, refusalReason, resultCode, thirdPartyRefusalReason); + return Objects.hash(currentBalance, pspReference, refusalReason, resultCode, thirdPartyRefusalReason); } @Override @@ -353,15 +291,14 @@ public String toString() { sb.append(" pspReference: ").append(toIndentedString(pspReference)).append("\n"); sb.append(" refusalReason: ").append(toIndentedString(refusalReason)).append("\n"); sb.append(" resultCode: ").append(toIndentedString(resultCode)).append("\n"); - sb.append(" thirdPartyRefusalReason: ") - .append(toIndentedString(thirdPartyRefusalReason)) - .append("\n"); + sb.append(" thirdPartyRefusalReason: ").append(toIndentedString(thirdPartyRefusalReason)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -370,23 +307,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of StoredValueVoidResponse given an JSON string * * @param jsonString JSON string * @return An instance of StoredValueVoidResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoredValueVoidResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to StoredValueVoidResponse */ public static StoredValueVoidResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoredValueVoidResponse.class); } - - /** - * Convert an instance of StoredValueVoidResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of StoredValueVoidResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/tokenizationwebhooks/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/tokenizationwebhooks/AbstractOpenApiSchema.java index f7361bb8c..f0da495a9 100644 --- a/src/main/java/com/adyen/model/tokenizationwebhooks/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/tokenizationwebhooks/AbstractOpenApiSchema.java @@ -2,141 +2,145 @@ * Tokenization webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.tokenizationwebhooks; -import com.fasterxml.jackson.annotation.JsonValue; -import jakarta.ws.rs.core.GenericType; -import java.util.Map; import java.util.Objects; +import java.util.Map; +import jakarta.ws.rs.core.GenericType; -/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec + */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() { - return instance; - } - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) { - this.instance = instance; - } - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf - * schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); - } else { - return object.getActualInstance(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() {return instance;} + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) {this.instance = instance;} + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); + } else { + return object.getActualInstance(); + } + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) && + Objects.equals(this.isNullable, a.isNullable) && + Objects.equals(this.schemaType, a.schemaType); } - return o.toString().replace("\n", "\n "); - } - public boolean equals(Object o) { - if (this == o) { - return true; + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); } - if (o == null || getClass() != o.getClass()) { - return false; + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) - && Objects.equals(this.isNullable, a.isNullable) - && Objects.equals(this.schemaType, a.schemaType); - } - - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); - } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); - } -} + + + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/tokenizationwebhooks/JSON.java b/src/main/java/com/adyen/model/tokenizationwebhooks/JSON.java index 56f45af8e..4b173f9d0 100644 --- a/src/main/java/com/adyen/model/tokenizationwebhooks/JSON.java +++ b/src/main/java/com/adyen/model/tokenizationwebhooks/JSON.java @@ -1,18 +1,21 @@ package com.adyen.model.tokenizationwebhooks; -import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; +import com.adyen.serializer.ByteArrayDeserializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; +import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; +import com.adyen.model.tokenizationwebhooks.*; + import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -37,7 +40,6 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. - * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -54,13 +56,11 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { - return mapper; - } + public static ObjectMapper getMapper() { return mapper; } /** - * Returns the target model class that should be used to deserialize the input data. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,7 +73,9 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** Helper class to register the discriminator mappings. */ + /** + * Helper class to register the discriminator mappings. + */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -115,9 +117,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. This - * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -162,14 +164,13 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so - * it's not possible to use the instanceof keyword. + * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, + * so it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf( - Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -193,58 +194,59 @@ public static boolean isInstanceOf( return false; } - /** A map of discriminators for all model classes. */ - private static final Map, ClassDiscriminatorMapping> modelDiscriminators = - new HashMap, ClassDiscriminatorMapping>(); + /** + * A map of discriminators for all model classes. + */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); - /** A map of oneOf/anyOf descendants for each model class. */ + /** + * A map of oneOf/anyOf descendants for each model class. + */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator( - Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = - new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants( - Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants(Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static { + static + { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/tokenizationwebhooks/RecurringToken.java b/src/main/java/com/adyen/model/tokenizationwebhooks/RecurringToken.java index ac1530659..df913d390 100644 --- a/src/main/java/com/adyen/model/tokenizationwebhooks/RecurringToken.java +++ b/src/main/java/com/adyen/model/tokenizationwebhooks/RecurringToken.java @@ -2,28 +2,38 @@ * Tokenization webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.tokenizationwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** RecurringToken */ + +/** + * RecurringToken + */ @JsonPropertyOrder({ RecurringToken.JSON_PROPERTY_MERCHANT_ACCOUNT, RecurringToken.JSON_PROPERTY_SHOPPER_REFERENCE, RecurringToken.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, RecurringToken.JSON_PROPERTY_TYPE }) + public class RecurringToken { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; @@ -37,13 +47,13 @@ public class RecurringToken { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public RecurringToken() {} + public RecurringToken() { + } /** * The identifier of the merchant account related to the event that triggered the webhook. * - * @param merchantAccount The identifier of the merchant account related to the event that - * triggered the webhook. + * @param merchantAccount The identifier of the merchant account related to the event that triggered the webhook. * @return the current {@code RecurringToken} instance, allowing for method chaining */ public RecurringToken merchantAccount(String merchantAccount) { @@ -53,9 +63,7 @@ public RecurringToken merchantAccount(String merchantAccount) { /** * The identifier of the merchant account related to the event that triggered the webhook. - * - * @return merchantAccount The identifier of the merchant account related to the event that - * triggered the webhook. + * @return merchantAccount The identifier of the merchant account related to the event that triggered the webhook. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -66,8 +74,7 @@ public String getMerchantAccount() { /** * The identifier of the merchant account related to the event that triggered the webhook. * - * @param merchantAccount The identifier of the merchant account related to the event that - * triggered the webhook. + * @param merchantAccount The identifier of the merchant account related to the event that triggered the webhook. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -78,8 +85,7 @@ public void setMerchantAccount(String merchantAccount) { /** * Your unique shopper reference that is associated with the `storedPaymentMethodId`. * - * @param shopperReference Your unique shopper reference that is associated with the - * `storedPaymentMethodId`. + * @param shopperReference Your unique shopper reference that is associated with the `storedPaymentMethodId`. * @return the current {@code RecurringToken} instance, allowing for method chaining */ public RecurringToken shopperReference(String shopperReference) { @@ -89,9 +95,7 @@ public RecurringToken shopperReference(String shopperReference) { /** * Your unique shopper reference that is associated with the `storedPaymentMethodId`. - * - * @return shopperReference Your unique shopper reference that is associated with the - * `storedPaymentMethodId`. + * @return shopperReference Your unique shopper reference that is associated with the `storedPaymentMethodId`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,8 +106,7 @@ public String getShopperReference() { /** * Your unique shopper reference that is associated with the `storedPaymentMethodId`. * - * @param shopperReference Your unique shopper reference that is associated with the - * `storedPaymentMethodId`. + * @param shopperReference Your unique shopper reference that is associated with the `storedPaymentMethodId`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,7 +127,6 @@ public RecurringToken storedPaymentMethodId(String storedPaymentMethodId) { /** * The ID of the token. - * * @return storedPaymentMethodId The ID of the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @@ -157,7 +159,6 @@ public RecurringToken type(String type) { /** * The type of the payment method. - * * @return type The type of the payment method. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -177,7 +178,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this RecurringToken object is equal to o. */ + /** + * Return true if this RecurringToken object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -187,10 +190,10 @@ public boolean equals(Object o) { return false; } RecurringToken recurringToken = (RecurringToken) o; - return Objects.equals(this.merchantAccount, recurringToken.merchantAccount) - && Objects.equals(this.shopperReference, recurringToken.shopperReference) - && Objects.equals(this.storedPaymentMethodId, recurringToken.storedPaymentMethodId) - && Objects.equals(this.type, recurringToken.type); + return Objects.equals(this.merchantAccount, recurringToken.merchantAccount) && + Objects.equals(this.shopperReference, recurringToken.shopperReference) && + Objects.equals(this.storedPaymentMethodId, recurringToken.storedPaymentMethodId) && + Objects.equals(this.type, recurringToken.type); } @Override @@ -204,16 +207,15 @@ public String toString() { sb.append("class RecurringToken {\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -222,7 +224,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RecurringToken given an JSON string * * @param jsonString JSON string @@ -232,12 +234,11 @@ private String toIndentedString(Object o) { public static RecurringToken fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RecurringToken.class); } - - /** - * Convert an instance of RecurringToken to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RecurringToken to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/tokenizationwebhooks/RecurringTokenStoreOperation.java b/src/main/java/com/adyen/model/tokenizationwebhooks/RecurringTokenStoreOperation.java index 36dc749db..0ef7c3638 100644 --- a/src/main/java/com/adyen/model/tokenizationwebhooks/RecurringTokenStoreOperation.java +++ b/src/main/java/com/adyen/model/tokenizationwebhooks/RecurringTokenStoreOperation.java @@ -2,22 +2,31 @@ * Tokenization webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.tokenizationwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** RecurringTokenStoreOperation */ + +/** + * RecurringTokenStoreOperation + */ @JsonPropertyOrder({ RecurringTokenStoreOperation.JSON_PROPERTY_MERCHANT_ACCOUNT, RecurringTokenStoreOperation.JSON_PROPERTY_OPERATION, @@ -25,6 +34,7 @@ RecurringTokenStoreOperation.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, RecurringTokenStoreOperation.JSON_PROPERTY_TYPE }) + public class RecurringTokenStoreOperation { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; @@ -41,13 +51,13 @@ public class RecurringTokenStoreOperation { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public RecurringTokenStoreOperation() {} + public RecurringTokenStoreOperation() { + } /** * The identifier of the merchant account related to the event that triggered the webhook. * - * @param merchantAccount The identifier of the merchant account related to the event that - * triggered the webhook. + * @param merchantAccount The identifier of the merchant account related to the event that triggered the webhook. * @return the current {@code RecurringTokenStoreOperation} instance, allowing for method chaining */ public RecurringTokenStoreOperation merchantAccount(String merchantAccount) { @@ -57,9 +67,7 @@ public RecurringTokenStoreOperation merchantAccount(String merchantAccount) { /** * The identifier of the merchant account related to the event that triggered the webhook. - * - * @return merchantAccount The identifier of the merchant account related to the event that - * triggered the webhook. + * @return merchantAccount The identifier of the merchant account related to the event that triggered the webhook. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,8 +78,7 @@ public String getMerchantAccount() { /** * The identifier of the merchant account related to the event that triggered the webhook. * - * @param merchantAccount The identifier of the merchant account related to the event that - * triggered the webhook. + * @param merchantAccount The identifier of the merchant account related to the event that triggered the webhook. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -82,8 +89,7 @@ public void setMerchantAccount(String merchantAccount) { /** * A text description that provides details about the operation, intended for audit purposes. * - * @param operation A text description that provides details about the operation, intended for - * audit purposes. + * @param operation A text description that provides details about the operation, intended for audit purposes. * @return the current {@code RecurringTokenStoreOperation} instance, allowing for method chaining */ public RecurringTokenStoreOperation operation(String operation) { @@ -93,9 +99,7 @@ public RecurringTokenStoreOperation operation(String operation) { /** * A text description that provides details about the operation, intended for audit purposes. - * - * @return operation A text description that provides details about the operation, intended for - * audit purposes. + * @return operation A text description that provides details about the operation, intended for audit purposes. */ @JsonProperty(JSON_PROPERTY_OPERATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,8 +110,7 @@ public String getOperation() { /** * A text description that provides details about the operation, intended for audit purposes. * - * @param operation A text description that provides details about the operation, intended for - * audit purposes. + * @param operation A text description that provides details about the operation, intended for audit purposes. */ @JsonProperty(JSON_PROPERTY_OPERATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,8 +121,7 @@ public void setOperation(String operation) { /** * Your unique shopper reference that is associated with the `storedPaymentMethodId`. * - * @param shopperReference Your unique shopper reference that is associated with the - * `storedPaymentMethodId`. + * @param shopperReference Your unique shopper reference that is associated with the `storedPaymentMethodId`. * @return the current {@code RecurringTokenStoreOperation} instance, allowing for method chaining */ public RecurringTokenStoreOperation shopperReference(String shopperReference) { @@ -129,9 +131,7 @@ public RecurringTokenStoreOperation shopperReference(String shopperReference) { /** * Your unique shopper reference that is associated with the `storedPaymentMethodId`. - * - * @return shopperReference Your unique shopper reference that is associated with the - * `storedPaymentMethodId`. + * @return shopperReference Your unique shopper reference that is associated with the `storedPaymentMethodId`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,8 +142,7 @@ public String getShopperReference() { /** * Your unique shopper reference that is associated with the `storedPaymentMethodId`. * - * @param shopperReference Your unique shopper reference that is associated with the - * `storedPaymentMethodId`. + * @param shopperReference Your unique shopper reference that is associated with the `storedPaymentMethodId`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -164,7 +163,6 @@ public RecurringTokenStoreOperation storedPaymentMethodId(String storedPaymentMe /** * The ID of the token. - * * @return storedPaymentMethodId The ID of the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @@ -197,7 +195,6 @@ public RecurringTokenStoreOperation type(String type) { /** * The type of the payment method. - * * @return type The type of the payment method. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -217,7 +214,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this RecurringTokenStoreOperation object is equal to o. */ + /** + * Return true if this RecurringTokenStoreOperation object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -227,12 +226,11 @@ public boolean equals(Object o) { return false; } RecurringTokenStoreOperation recurringTokenStoreOperation = (RecurringTokenStoreOperation) o; - return Objects.equals(this.merchantAccount, recurringTokenStoreOperation.merchantAccount) - && Objects.equals(this.operation, recurringTokenStoreOperation.operation) - && Objects.equals(this.shopperReference, recurringTokenStoreOperation.shopperReference) - && Objects.equals( - this.storedPaymentMethodId, recurringTokenStoreOperation.storedPaymentMethodId) - && Objects.equals(this.type, recurringTokenStoreOperation.type); + return Objects.equals(this.merchantAccount, recurringTokenStoreOperation.merchantAccount) && + Objects.equals(this.operation, recurringTokenStoreOperation.operation) && + Objects.equals(this.shopperReference, recurringTokenStoreOperation.shopperReference) && + Objects.equals(this.storedPaymentMethodId, recurringTokenStoreOperation.storedPaymentMethodId) && + Objects.equals(this.type, recurringTokenStoreOperation.type); } @Override @@ -247,16 +245,15 @@ public String toString() { sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" operation: ").append(toIndentedString(operation)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -265,24 +262,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RecurringTokenStoreOperation given an JSON string * * @param jsonString JSON string * @return An instance of RecurringTokenStoreOperation - * @throws JsonProcessingException if the JSON string is invalid with respect to - * RecurringTokenStoreOperation + * @throws JsonProcessingException if the JSON string is invalid with respect to RecurringTokenStoreOperation */ - public static RecurringTokenStoreOperation fromJson(String jsonString) - throws JsonProcessingException { + public static RecurringTokenStoreOperation fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RecurringTokenStoreOperation.class); } - - /** - * Convert an instance of RecurringTokenStoreOperation to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RecurringTokenStoreOperation to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationAlreadyExistingDetailsNotificationRequest.java b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationAlreadyExistingDetailsNotificationRequest.java index 7b2892b57..7de757569 100644 --- a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationAlreadyExistingDetailsNotificationRequest.java +++ b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationAlreadyExistingDetailsNotificationRequest.java @@ -2,27 +2,33 @@ * Tokenization webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.tokenizationwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.tokenizationwebhooks.RecurringTokenStoreOperation; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** TokenizationAlreadyExistingDetailsNotificationRequest */ +/** + * TokenizationAlreadyExistingDetailsNotificationRequest + */ @JsonPropertyOrder({ TokenizationAlreadyExistingDetailsNotificationRequest.JSON_PROPERTY_CREATED_AT, TokenizationAlreadyExistingDetailsNotificationRequest.JSON_PROPERTY_DATA, @@ -31,6 +37,7 @@ TokenizationAlreadyExistingDetailsNotificationRequest.JSON_PROPERTY_TYPE, TokenizationAlreadyExistingDetailsNotificationRequest.JSON_PROPERTY_VERSION }) + public class TokenizationAlreadyExistingDetailsNotificationRequest { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -38,8 +45,11 @@ public class TokenizationAlreadyExistingDetailsNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private RecurringTokenStoreOperation data; - /** The environment from which the webhook originated. Possible values: **test**, **live**. */ + /** + * The environment from which the webhook originated. Possible values: **test**, **live**. + */ public enum EnvironmentEnum { + TEST(String.valueOf("test")), LIVE(String.valueOf("live")); @@ -49,7 +59,7 @@ public enum EnvironmentEnum { private String value; EnvironmentEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -70,11 +80,7 @@ public static EnvironmentEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "EnvironmentEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(EnvironmentEnum.values())); + LOG.warning("EnvironmentEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(EnvironmentEnum.values())); return null; } } @@ -85,8 +91,11 @@ public static EnvironmentEnum fromValue(String value) { public static final String JSON_PROPERTY_EVENT_ID = "eventId"; private String eventId; - /** The type of webhook. */ + /** + * The type of webhook. + */ public enum TypeEnum { + RECURRING_TOKEN_ALREADYEXISTING(String.valueOf("recurring.token.alreadyExisting")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -94,7 +103,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -115,11 +124,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -130,14 +135,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VERSION = "version"; private String version; - public TokenizationAlreadyExistingDetailsNotificationRequest() {} + public TokenizationAlreadyExistingDetailsNotificationRequest() { + } /** * The date and time when the event happened, in ISO 8601 extended format. * * @param createdAt The date and time when the event happened, in ISO 8601 extended format. - * @return the current {@code TokenizationAlreadyExistingDetailsNotificationRequest} instance, - * allowing for method chaining + * @return the current {@code TokenizationAlreadyExistingDetailsNotificationRequest} instance, allowing for method chaining */ public TokenizationAlreadyExistingDetailsNotificationRequest createdAt(OffsetDateTime createdAt) { this.createdAt = createdAt; @@ -146,7 +151,6 @@ public TokenizationAlreadyExistingDetailsNotificationRequest createdAt(OffsetDat /** * The date and time when the event happened, in ISO 8601 extended format. - * * @return createdAt The date and time when the event happened, in ISO 8601 extended format. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @@ -169,20 +173,17 @@ public void setCreatedAt(OffsetDateTime createdAt) { /** * data * - * @param data - * @return the current {@code TokenizationAlreadyExistingDetailsNotificationRequest} instance, - * allowing for method chaining + * @param data + * @return the current {@code TokenizationAlreadyExistingDetailsNotificationRequest} instance, allowing for method chaining */ - public TokenizationAlreadyExistingDetailsNotificationRequest data( - RecurringTokenStoreOperation data) { + public TokenizationAlreadyExistingDetailsNotificationRequest data(RecurringTokenStoreOperation data) { this.data = data; return this; } /** * Get data - * - * @return data + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,7 +194,7 @@ public RecurringTokenStoreOperation getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -202,24 +203,19 @@ public void setData(RecurringTokenStoreOperation data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. - * @return the current {@code TokenizationAlreadyExistingDetailsNotificationRequest} instance, - * allowing for method chaining + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @return the current {@code TokenizationAlreadyExistingDetailsNotificationRequest} instance, allowing for method chaining */ - public TokenizationAlreadyExistingDetailsNotificationRequest environment( - EnvironmentEnum environment) { + public TokenizationAlreadyExistingDetailsNotificationRequest environment(EnvironmentEnum environment) { this.environment = environment; return this; } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * - * @return environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -228,10 +224,9 @@ public EnvironmentEnum getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -243,8 +238,7 @@ public void setEnvironment(EnvironmentEnum environment) { * The PSP reference of the event that triggered the webhook. * * @param eventId The PSP reference of the event that triggered the webhook. - * @return the current {@code TokenizationAlreadyExistingDetailsNotificationRequest} instance, - * allowing for method chaining + * @return the current {@code TokenizationAlreadyExistingDetailsNotificationRequest} instance, allowing for method chaining */ public TokenizationAlreadyExistingDetailsNotificationRequest eventId(String eventId) { this.eventId = eventId; @@ -253,7 +247,6 @@ public TokenizationAlreadyExistingDetailsNotificationRequest eventId(String even /** * The PSP reference of the event that triggered the webhook. - * * @return eventId The PSP reference of the event that triggered the webhook. */ @JsonProperty(JSON_PROPERTY_EVENT_ID) @@ -277,8 +270,7 @@ public void setEventId(String eventId) { * The type of webhook. * * @param type The type of webhook. - * @return the current {@code TokenizationAlreadyExistingDetailsNotificationRequest} instance, - * allowing for method chaining + * @return the current {@code TokenizationAlreadyExistingDetailsNotificationRequest} instance, allowing for method chaining */ public TokenizationAlreadyExistingDetailsNotificationRequest type(TypeEnum type) { this.type = type; @@ -287,7 +279,6 @@ public TokenizationAlreadyExistingDetailsNotificationRequest type(TypeEnum type) /** * The type of webhook. - * * @return type The type of webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -311,8 +302,7 @@ public void setType(TypeEnum type) { * The version of this entity. * * @param version The version of this entity. - * @return the current {@code TokenizationAlreadyExistingDetailsNotificationRequest} instance, - * allowing for method chaining + * @return the current {@code TokenizationAlreadyExistingDetailsNotificationRequest} instance, allowing for method chaining */ public TokenizationAlreadyExistingDetailsNotificationRequest version(String version) { this.version = version; @@ -321,7 +311,6 @@ public TokenizationAlreadyExistingDetailsNotificationRequest version(String vers /** * The version of this entity. - * * @return version The version of this entity. */ @JsonProperty(JSON_PROPERTY_VERSION) @@ -352,19 +341,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TokenizationAlreadyExistingDetailsNotificationRequest - tokenizationAlreadyExistingDetailsNotificationRequest = - (TokenizationAlreadyExistingDetailsNotificationRequest) o; - return Objects.equals( - this.createdAt, tokenizationAlreadyExistingDetailsNotificationRequest.createdAt) - && Objects.equals(this.data, tokenizationAlreadyExistingDetailsNotificationRequest.data) - && Objects.equals( - this.environment, tokenizationAlreadyExistingDetailsNotificationRequest.environment) - && Objects.equals( - this.eventId, tokenizationAlreadyExistingDetailsNotificationRequest.eventId) - && Objects.equals(this.type, tokenizationAlreadyExistingDetailsNotificationRequest.type) - && Objects.equals( - this.version, tokenizationAlreadyExistingDetailsNotificationRequest.version); + TokenizationAlreadyExistingDetailsNotificationRequest tokenizationAlreadyExistingDetailsNotificationRequest = (TokenizationAlreadyExistingDetailsNotificationRequest) o; + return Objects.equals(this.createdAt, tokenizationAlreadyExistingDetailsNotificationRequest.createdAt) && + Objects.equals(this.data, tokenizationAlreadyExistingDetailsNotificationRequest.data) && + Objects.equals(this.environment, tokenizationAlreadyExistingDetailsNotificationRequest.environment) && + Objects.equals(this.eventId, tokenizationAlreadyExistingDetailsNotificationRequest.eventId) && + Objects.equals(this.type, tokenizationAlreadyExistingDetailsNotificationRequest.type) && + Objects.equals(this.version, tokenizationAlreadyExistingDetailsNotificationRequest.version); } @Override @@ -387,7 +370,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -396,26 +380,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create an instance of TokenizationAlreadyExistingDetailsNotificationRequest given an JSON - * string +/** + * Create an instance of TokenizationAlreadyExistingDetailsNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of TokenizationAlreadyExistingDetailsNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TokenizationAlreadyExistingDetailsNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to TokenizationAlreadyExistingDetailsNotificationRequest */ - public static TokenizationAlreadyExistingDetailsNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { - return JSON.getMapper() - .readValue(jsonString, TokenizationAlreadyExistingDetailsNotificationRequest.class); + public static TokenizationAlreadyExistingDetailsNotificationRequest fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, TokenizationAlreadyExistingDetailsNotificationRequest.class); } - - /** - * Convert an instance of TokenizationAlreadyExistingDetailsNotificationRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TokenizationAlreadyExistingDetailsNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationCreatedDetailsNotificationRequest.java b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationCreatedDetailsNotificationRequest.java index f104f3526..724df81d1 100644 --- a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationCreatedDetailsNotificationRequest.java +++ b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationCreatedDetailsNotificationRequest.java @@ -2,27 +2,33 @@ * Tokenization webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.tokenizationwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.tokenizationwebhooks.RecurringTokenStoreOperation; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** TokenizationCreatedDetailsNotificationRequest */ + +/** + * TokenizationCreatedDetailsNotificationRequest + */ @JsonPropertyOrder({ TokenizationCreatedDetailsNotificationRequest.JSON_PROPERTY_CREATED_AT, TokenizationCreatedDetailsNotificationRequest.JSON_PROPERTY_DATA, @@ -31,6 +37,7 @@ TokenizationCreatedDetailsNotificationRequest.JSON_PROPERTY_TYPE, TokenizationCreatedDetailsNotificationRequest.JSON_PROPERTY_VERSION }) + public class TokenizationCreatedDetailsNotificationRequest { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -38,8 +45,11 @@ public class TokenizationCreatedDetailsNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private RecurringTokenStoreOperation data; - /** The environment from which the webhook originated. Possible values: **test**, **live**. */ + /** + * The environment from which the webhook originated. Possible values: **test**, **live**. + */ public enum EnvironmentEnum { + TEST(String.valueOf("test")), LIVE(String.valueOf("live")); @@ -49,7 +59,7 @@ public enum EnvironmentEnum { private String value; EnvironmentEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -70,11 +80,7 @@ public static EnvironmentEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "EnvironmentEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(EnvironmentEnum.values())); + LOG.warning("EnvironmentEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(EnvironmentEnum.values())); return null; } } @@ -85,8 +91,11 @@ public static EnvironmentEnum fromValue(String value) { public static final String JSON_PROPERTY_EVENT_ID = "eventId"; private String eventId; - /** The type of webhook. */ + /** + * The type of webhook. + */ public enum TypeEnum { + RECURRING_TOKEN_CREATED(String.valueOf("recurring.token.created")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -94,7 +103,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -115,11 +124,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -130,14 +135,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VERSION = "version"; private String version; - public TokenizationCreatedDetailsNotificationRequest() {} + public TokenizationCreatedDetailsNotificationRequest() { + } /** * The date and time when the event happened, in ISO 8601 extended format. * * @param createdAt The date and time when the event happened, in ISO 8601 extended format. - * @return the current {@code TokenizationCreatedDetailsNotificationRequest} instance, allowing - * for method chaining + * @return the current {@code TokenizationCreatedDetailsNotificationRequest} instance, allowing for method chaining */ public TokenizationCreatedDetailsNotificationRequest createdAt(OffsetDateTime createdAt) { this.createdAt = createdAt; @@ -146,7 +151,6 @@ public TokenizationCreatedDetailsNotificationRequest createdAt(OffsetDateTime cr /** * The date and time when the event happened, in ISO 8601 extended format. - * * @return createdAt The date and time when the event happened, in ISO 8601 extended format. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @@ -169,9 +173,8 @@ public void setCreatedAt(OffsetDateTime createdAt) { /** * data * - * @param data - * @return the current {@code TokenizationCreatedDetailsNotificationRequest} instance, allowing - * for method chaining + * @param data + * @return the current {@code TokenizationCreatedDetailsNotificationRequest} instance, allowing for method chaining */ public TokenizationCreatedDetailsNotificationRequest data(RecurringTokenStoreOperation data) { this.data = data; @@ -180,8 +183,7 @@ public TokenizationCreatedDetailsNotificationRequest data(RecurringTokenStoreOpe /** * Get data - * - * @return data + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,7 +194,7 @@ public RecurringTokenStoreOperation getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -201,12 +203,10 @@ public void setData(RecurringTokenStoreOperation data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. - * @return the current {@code TokenizationCreatedDetailsNotificationRequest} instance, allowing - * for method chaining + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @return the current {@code TokenizationCreatedDetailsNotificationRequest} instance, allowing for method chaining */ public TokenizationCreatedDetailsNotificationRequest environment(EnvironmentEnum environment) { this.environment = environment; @@ -214,10 +214,8 @@ public TokenizationCreatedDetailsNotificationRequest environment(EnvironmentEnum } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * - * @return environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -226,10 +224,9 @@ public EnvironmentEnum getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -241,8 +238,7 @@ public void setEnvironment(EnvironmentEnum environment) { * The PSP reference of the event that triggered the webhook. * * @param eventId The PSP reference of the event that triggered the webhook. - * @return the current {@code TokenizationCreatedDetailsNotificationRequest} instance, allowing - * for method chaining + * @return the current {@code TokenizationCreatedDetailsNotificationRequest} instance, allowing for method chaining */ public TokenizationCreatedDetailsNotificationRequest eventId(String eventId) { this.eventId = eventId; @@ -251,7 +247,6 @@ public TokenizationCreatedDetailsNotificationRequest eventId(String eventId) { /** * The PSP reference of the event that triggered the webhook. - * * @return eventId The PSP reference of the event that triggered the webhook. */ @JsonProperty(JSON_PROPERTY_EVENT_ID) @@ -275,8 +270,7 @@ public void setEventId(String eventId) { * The type of webhook. * * @param type The type of webhook. - * @return the current {@code TokenizationCreatedDetailsNotificationRequest} instance, allowing - * for method chaining + * @return the current {@code TokenizationCreatedDetailsNotificationRequest} instance, allowing for method chaining */ public TokenizationCreatedDetailsNotificationRequest type(TypeEnum type) { this.type = type; @@ -285,7 +279,6 @@ public TokenizationCreatedDetailsNotificationRequest type(TypeEnum type) { /** * The type of webhook. - * * @return type The type of webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -309,8 +302,7 @@ public void setType(TypeEnum type) { * The version of this entity. * * @param version The version of this entity. - * @return the current {@code TokenizationCreatedDetailsNotificationRequest} instance, allowing - * for method chaining + * @return the current {@code TokenizationCreatedDetailsNotificationRequest} instance, allowing for method chaining */ public TokenizationCreatedDetailsNotificationRequest version(String version) { this.version = version; @@ -319,7 +311,6 @@ public TokenizationCreatedDetailsNotificationRequest version(String version) { /** * The version of this entity. - * * @return version The version of this entity. */ @JsonProperty(JSON_PROPERTY_VERSION) @@ -339,7 +330,9 @@ public void setVersion(String version) { this.version = version; } - /** Return true if this TokenizationCreatedDetailsNotificationRequest object is equal to o. */ + /** + * Return true if this TokenizationCreatedDetailsNotificationRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -348,15 +341,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TokenizationCreatedDetailsNotificationRequest tokenizationCreatedDetailsNotificationRequest = - (TokenizationCreatedDetailsNotificationRequest) o; - return Objects.equals(this.createdAt, tokenizationCreatedDetailsNotificationRequest.createdAt) - && Objects.equals(this.data, tokenizationCreatedDetailsNotificationRequest.data) - && Objects.equals( - this.environment, tokenizationCreatedDetailsNotificationRequest.environment) - && Objects.equals(this.eventId, tokenizationCreatedDetailsNotificationRequest.eventId) - && Objects.equals(this.type, tokenizationCreatedDetailsNotificationRequest.type) - && Objects.equals(this.version, tokenizationCreatedDetailsNotificationRequest.version); + TokenizationCreatedDetailsNotificationRequest tokenizationCreatedDetailsNotificationRequest = (TokenizationCreatedDetailsNotificationRequest) o; + return Objects.equals(this.createdAt, tokenizationCreatedDetailsNotificationRequest.createdAt) && + Objects.equals(this.data, tokenizationCreatedDetailsNotificationRequest.data) && + Objects.equals(this.environment, tokenizationCreatedDetailsNotificationRequest.environment) && + Objects.equals(this.eventId, tokenizationCreatedDetailsNotificationRequest.eventId) && + Objects.equals(this.type, tokenizationCreatedDetailsNotificationRequest.type) && + Objects.equals(this.version, tokenizationCreatedDetailsNotificationRequest.version); } @Override @@ -379,7 +370,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -388,25 +380,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TokenizationCreatedDetailsNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of TokenizationCreatedDetailsNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TokenizationCreatedDetailsNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to TokenizationCreatedDetailsNotificationRequest */ - public static TokenizationCreatedDetailsNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { - return JSON.getMapper() - .readValue(jsonString, TokenizationCreatedDetailsNotificationRequest.class); + public static TokenizationCreatedDetailsNotificationRequest fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, TokenizationCreatedDetailsNotificationRequest.class); } - - /** - * Convert an instance of TokenizationCreatedDetailsNotificationRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TokenizationCreatedDetailsNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationDisabledDetailsNotificationRequest.java b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationDisabledDetailsNotificationRequest.java index ef9974e36..5b201a1de 100644 --- a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationDisabledDetailsNotificationRequest.java +++ b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationDisabledDetailsNotificationRequest.java @@ -2,27 +2,33 @@ * Tokenization webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.tokenizationwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.tokenizationwebhooks.RecurringToken; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** TokenizationDisabledDetailsNotificationRequest */ + +/** + * TokenizationDisabledDetailsNotificationRequest + */ @JsonPropertyOrder({ TokenizationDisabledDetailsNotificationRequest.JSON_PROPERTY_CREATED_AT, TokenizationDisabledDetailsNotificationRequest.JSON_PROPERTY_DATA, @@ -31,6 +37,7 @@ TokenizationDisabledDetailsNotificationRequest.JSON_PROPERTY_TYPE, TokenizationDisabledDetailsNotificationRequest.JSON_PROPERTY_VERSION }) + public class TokenizationDisabledDetailsNotificationRequest { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -38,8 +45,11 @@ public class TokenizationDisabledDetailsNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private RecurringToken data; - /** The environment from which the webhook originated. Possible values: **test**, **live**. */ + /** + * The environment from which the webhook originated. Possible values: **test**, **live**. + */ public enum EnvironmentEnum { + TEST(String.valueOf("test")), LIVE(String.valueOf("live")); @@ -49,7 +59,7 @@ public enum EnvironmentEnum { private String value; EnvironmentEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -70,11 +80,7 @@ public static EnvironmentEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "EnvironmentEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(EnvironmentEnum.values())); + LOG.warning("EnvironmentEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(EnvironmentEnum.values())); return null; } } @@ -85,8 +91,11 @@ public static EnvironmentEnum fromValue(String value) { public static final String JSON_PROPERTY_EVENT_ID = "eventId"; private String eventId; - /** The type of webhook. */ + /** + * The type of webhook. + */ public enum TypeEnum { + RECURRING_TOKEN_DISABLED(String.valueOf("recurring.token.disabled")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -94,7 +103,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -115,11 +124,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -130,14 +135,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VERSION = "version"; private String version; - public TokenizationDisabledDetailsNotificationRequest() {} + public TokenizationDisabledDetailsNotificationRequest() { + } /** * The date and time when the event happened, in ISO 8601 extended format. * * @param createdAt The date and time when the event happened, in ISO 8601 extended format. - * @return the current {@code TokenizationDisabledDetailsNotificationRequest} instance, allowing - * for method chaining + * @return the current {@code TokenizationDisabledDetailsNotificationRequest} instance, allowing for method chaining */ public TokenizationDisabledDetailsNotificationRequest createdAt(OffsetDateTime createdAt) { this.createdAt = createdAt; @@ -146,7 +151,6 @@ public TokenizationDisabledDetailsNotificationRequest createdAt(OffsetDateTime c /** * The date and time when the event happened, in ISO 8601 extended format. - * * @return createdAt The date and time when the event happened, in ISO 8601 extended format. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @@ -169,9 +173,8 @@ public void setCreatedAt(OffsetDateTime createdAt) { /** * data * - * @param data - * @return the current {@code TokenizationDisabledDetailsNotificationRequest} instance, allowing - * for method chaining + * @param data + * @return the current {@code TokenizationDisabledDetailsNotificationRequest} instance, allowing for method chaining */ public TokenizationDisabledDetailsNotificationRequest data(RecurringToken data) { this.data = data; @@ -180,8 +183,7 @@ public TokenizationDisabledDetailsNotificationRequest data(RecurringToken data) /** * Get data - * - * @return data + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,7 +194,7 @@ public RecurringToken getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -201,12 +203,10 @@ public void setData(RecurringToken data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. - * @return the current {@code TokenizationDisabledDetailsNotificationRequest} instance, allowing - * for method chaining + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @return the current {@code TokenizationDisabledDetailsNotificationRequest} instance, allowing for method chaining */ public TokenizationDisabledDetailsNotificationRequest environment(EnvironmentEnum environment) { this.environment = environment; @@ -214,10 +214,8 @@ public TokenizationDisabledDetailsNotificationRequest environment(EnvironmentEnu } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * - * @return environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -226,10 +224,9 @@ public EnvironmentEnum getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -241,8 +238,7 @@ public void setEnvironment(EnvironmentEnum environment) { * The PSP reference of the event that triggered the webhook. * * @param eventId The PSP reference of the event that triggered the webhook. - * @return the current {@code TokenizationDisabledDetailsNotificationRequest} instance, allowing - * for method chaining + * @return the current {@code TokenizationDisabledDetailsNotificationRequest} instance, allowing for method chaining */ public TokenizationDisabledDetailsNotificationRequest eventId(String eventId) { this.eventId = eventId; @@ -251,7 +247,6 @@ public TokenizationDisabledDetailsNotificationRequest eventId(String eventId) { /** * The PSP reference of the event that triggered the webhook. - * * @return eventId The PSP reference of the event that triggered the webhook. */ @JsonProperty(JSON_PROPERTY_EVENT_ID) @@ -275,8 +270,7 @@ public void setEventId(String eventId) { * The type of webhook. * * @param type The type of webhook. - * @return the current {@code TokenizationDisabledDetailsNotificationRequest} instance, allowing - * for method chaining + * @return the current {@code TokenizationDisabledDetailsNotificationRequest} instance, allowing for method chaining */ public TokenizationDisabledDetailsNotificationRequest type(TypeEnum type) { this.type = type; @@ -285,7 +279,6 @@ public TokenizationDisabledDetailsNotificationRequest type(TypeEnum type) { /** * The type of webhook. - * * @return type The type of webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -309,8 +302,7 @@ public void setType(TypeEnum type) { * The version of this entity. * * @param version The version of this entity. - * @return the current {@code TokenizationDisabledDetailsNotificationRequest} instance, allowing - * for method chaining + * @return the current {@code TokenizationDisabledDetailsNotificationRequest} instance, allowing for method chaining */ public TokenizationDisabledDetailsNotificationRequest version(String version) { this.version = version; @@ -319,7 +311,6 @@ public TokenizationDisabledDetailsNotificationRequest version(String version) { /** * The version of this entity. - * * @return version The version of this entity. */ @JsonProperty(JSON_PROPERTY_VERSION) @@ -339,7 +330,9 @@ public void setVersion(String version) { this.version = version; } - /** Return true if this TokenizationDisabledDetailsNotificationRequest object is equal to o. */ + /** + * Return true if this TokenizationDisabledDetailsNotificationRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -348,15 +341,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TokenizationDisabledDetailsNotificationRequest tokenizationDisabledDetailsNotificationRequest = - (TokenizationDisabledDetailsNotificationRequest) o; - return Objects.equals(this.createdAt, tokenizationDisabledDetailsNotificationRequest.createdAt) - && Objects.equals(this.data, tokenizationDisabledDetailsNotificationRequest.data) - && Objects.equals( - this.environment, tokenizationDisabledDetailsNotificationRequest.environment) - && Objects.equals(this.eventId, tokenizationDisabledDetailsNotificationRequest.eventId) - && Objects.equals(this.type, tokenizationDisabledDetailsNotificationRequest.type) - && Objects.equals(this.version, tokenizationDisabledDetailsNotificationRequest.version); + TokenizationDisabledDetailsNotificationRequest tokenizationDisabledDetailsNotificationRequest = (TokenizationDisabledDetailsNotificationRequest) o; + return Objects.equals(this.createdAt, tokenizationDisabledDetailsNotificationRequest.createdAt) && + Objects.equals(this.data, tokenizationDisabledDetailsNotificationRequest.data) && + Objects.equals(this.environment, tokenizationDisabledDetailsNotificationRequest.environment) && + Objects.equals(this.eventId, tokenizationDisabledDetailsNotificationRequest.eventId) && + Objects.equals(this.type, tokenizationDisabledDetailsNotificationRequest.type) && + Objects.equals(this.version, tokenizationDisabledDetailsNotificationRequest.version); } @Override @@ -379,7 +370,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -388,25 +380,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TokenizationDisabledDetailsNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of TokenizationDisabledDetailsNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TokenizationDisabledDetailsNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to TokenizationDisabledDetailsNotificationRequest */ - public static TokenizationDisabledDetailsNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { - return JSON.getMapper() - .readValue(jsonString, TokenizationDisabledDetailsNotificationRequest.class); + public static TokenizationDisabledDetailsNotificationRequest fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, TokenizationDisabledDetailsNotificationRequest.class); } - - /** - * Convert an instance of TokenizationDisabledDetailsNotificationRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TokenizationDisabledDetailsNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationNotificationResponse.java b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationNotificationResponse.java index e47741c80..0978f7026 100644 --- a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationNotificationResponse.java +++ b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationNotificationResponse.java @@ -2,37 +2,47 @@ * Tokenization webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.tokenizationwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TokenizationNotificationResponse */ -@JsonPropertyOrder({TokenizationNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) + +/** + * TokenizationNotificationResponse + */ +@JsonPropertyOrder({ + TokenizationNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE +}) + public class TokenizationNotificationResponse { public static final String JSON_PROPERTY_NOTIFICATION_RESPONSE = "notificationResponse"; private String notificationResponse; - public TokenizationNotificationResponse() {} + public TokenizationNotificationResponse() { + } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return the current {@code TokenizationNotificationResponse} instance, allowing for method - * chaining + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return the current {@code TokenizationNotificationResponse} instance, allowing for method chaining */ public TokenizationNotificationResponse notificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; @@ -40,11 +50,8 @@ public TokenizationNotificationResponse notificationResponse(String notification } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * - * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -53,11 +60,9 @@ public String getNotificationResponse() { } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -65,7 +70,9 @@ public void setNotificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; } - /** Return true if this TokenizationNotificationResponse object is equal to o. */ + /** + * Return true if this TokenizationNotificationResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -74,10 +81,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TokenizationNotificationResponse tokenizationNotificationResponse = - (TokenizationNotificationResponse) o; - return Objects.equals( - this.notificationResponse, tokenizationNotificationResponse.notificationResponse); + TokenizationNotificationResponse tokenizationNotificationResponse = (TokenizationNotificationResponse) o; + return Objects.equals(this.notificationResponse, tokenizationNotificationResponse.notificationResponse); } @Override @@ -89,15 +94,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TokenizationNotificationResponse {\n"); - sb.append(" notificationResponse: ") - .append(toIndentedString(notificationResponse)) - .append("\n"); + sb.append(" notificationResponse: ").append(toIndentedString(notificationResponse)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -106,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TokenizationNotificationResponse given an JSON string * * @param jsonString JSON string * @return An instance of TokenizationNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TokenizationNotificationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to TokenizationNotificationResponse */ - public static TokenizationNotificationResponse fromJson(String jsonString) - throws JsonProcessingException { + public static TokenizationNotificationResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TokenizationNotificationResponse.class); } - - /** - * Convert an instance of TokenizationNotificationResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TokenizationNotificationResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationUpdatedDetailsNotificationRequest.java b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationUpdatedDetailsNotificationRequest.java index 09cc67bbb..71973de13 100644 --- a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationUpdatedDetailsNotificationRequest.java +++ b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationUpdatedDetailsNotificationRequest.java @@ -2,27 +2,33 @@ * Tokenization webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.tokenizationwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.tokenizationwebhooks.RecurringTokenStoreOperation; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** TokenizationUpdatedDetailsNotificationRequest */ + +/** + * TokenizationUpdatedDetailsNotificationRequest + */ @JsonPropertyOrder({ TokenizationUpdatedDetailsNotificationRequest.JSON_PROPERTY_CREATED_AT, TokenizationUpdatedDetailsNotificationRequest.JSON_PROPERTY_DATA, @@ -31,6 +37,7 @@ TokenizationUpdatedDetailsNotificationRequest.JSON_PROPERTY_TYPE, TokenizationUpdatedDetailsNotificationRequest.JSON_PROPERTY_VERSION }) + public class TokenizationUpdatedDetailsNotificationRequest { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -38,8 +45,11 @@ public class TokenizationUpdatedDetailsNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private RecurringTokenStoreOperation data; - /** The environment from which the webhook originated. Possible values: **test**, **live**. */ + /** + * The environment from which the webhook originated. Possible values: **test**, **live**. + */ public enum EnvironmentEnum { + TEST(String.valueOf("test")), LIVE(String.valueOf("live")); @@ -49,7 +59,7 @@ public enum EnvironmentEnum { private String value; EnvironmentEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -70,11 +80,7 @@ public static EnvironmentEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "EnvironmentEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(EnvironmentEnum.values())); + LOG.warning("EnvironmentEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(EnvironmentEnum.values())); return null; } } @@ -85,8 +91,11 @@ public static EnvironmentEnum fromValue(String value) { public static final String JSON_PROPERTY_EVENT_ID = "eventId"; private String eventId; - /** The type of webhook. */ + /** + * The type of webhook. + */ public enum TypeEnum { + RECURRING_TOKEN_UPDATED(String.valueOf("recurring.token.updated")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -94,7 +103,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -115,11 +124,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -130,14 +135,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VERSION = "version"; private String version; - public TokenizationUpdatedDetailsNotificationRequest() {} + public TokenizationUpdatedDetailsNotificationRequest() { + } /** * The date and time when the event happened, in ISO 8601 extended format. * * @param createdAt The date and time when the event happened, in ISO 8601 extended format. - * @return the current {@code TokenizationUpdatedDetailsNotificationRequest} instance, allowing - * for method chaining + * @return the current {@code TokenizationUpdatedDetailsNotificationRequest} instance, allowing for method chaining */ public TokenizationUpdatedDetailsNotificationRequest createdAt(OffsetDateTime createdAt) { this.createdAt = createdAt; @@ -146,7 +151,6 @@ public TokenizationUpdatedDetailsNotificationRequest createdAt(OffsetDateTime cr /** * The date and time when the event happened, in ISO 8601 extended format. - * * @return createdAt The date and time when the event happened, in ISO 8601 extended format. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @@ -169,9 +173,8 @@ public void setCreatedAt(OffsetDateTime createdAt) { /** * data * - * @param data - * @return the current {@code TokenizationUpdatedDetailsNotificationRequest} instance, allowing - * for method chaining + * @param data + * @return the current {@code TokenizationUpdatedDetailsNotificationRequest} instance, allowing for method chaining */ public TokenizationUpdatedDetailsNotificationRequest data(RecurringTokenStoreOperation data) { this.data = data; @@ -180,8 +183,7 @@ public TokenizationUpdatedDetailsNotificationRequest data(RecurringTokenStoreOpe /** * Get data - * - * @return data + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,7 +194,7 @@ public RecurringTokenStoreOperation getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -201,12 +203,10 @@ public void setData(RecurringTokenStoreOperation data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. - * @return the current {@code TokenizationUpdatedDetailsNotificationRequest} instance, allowing - * for method chaining + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @return the current {@code TokenizationUpdatedDetailsNotificationRequest} instance, allowing for method chaining */ public TokenizationUpdatedDetailsNotificationRequest environment(EnvironmentEnum environment) { this.environment = environment; @@ -214,10 +214,8 @@ public TokenizationUpdatedDetailsNotificationRequest environment(EnvironmentEnum } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * - * @return environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -226,10 +224,9 @@ public EnvironmentEnum getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -241,8 +238,7 @@ public void setEnvironment(EnvironmentEnum environment) { * The PSP reference of the event that triggered the webhook. * * @param eventId The PSP reference of the event that triggered the webhook. - * @return the current {@code TokenizationUpdatedDetailsNotificationRequest} instance, allowing - * for method chaining + * @return the current {@code TokenizationUpdatedDetailsNotificationRequest} instance, allowing for method chaining */ public TokenizationUpdatedDetailsNotificationRequest eventId(String eventId) { this.eventId = eventId; @@ -251,7 +247,6 @@ public TokenizationUpdatedDetailsNotificationRequest eventId(String eventId) { /** * The PSP reference of the event that triggered the webhook. - * * @return eventId The PSP reference of the event that triggered the webhook. */ @JsonProperty(JSON_PROPERTY_EVENT_ID) @@ -275,8 +270,7 @@ public void setEventId(String eventId) { * The type of webhook. * * @param type The type of webhook. - * @return the current {@code TokenizationUpdatedDetailsNotificationRequest} instance, allowing - * for method chaining + * @return the current {@code TokenizationUpdatedDetailsNotificationRequest} instance, allowing for method chaining */ public TokenizationUpdatedDetailsNotificationRequest type(TypeEnum type) { this.type = type; @@ -285,7 +279,6 @@ public TokenizationUpdatedDetailsNotificationRequest type(TypeEnum type) { /** * The type of webhook. - * * @return type The type of webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -309,8 +302,7 @@ public void setType(TypeEnum type) { * The version of this entity. * * @param version The version of this entity. - * @return the current {@code TokenizationUpdatedDetailsNotificationRequest} instance, allowing - * for method chaining + * @return the current {@code TokenizationUpdatedDetailsNotificationRequest} instance, allowing for method chaining */ public TokenizationUpdatedDetailsNotificationRequest version(String version) { this.version = version; @@ -319,7 +311,6 @@ public TokenizationUpdatedDetailsNotificationRequest version(String version) { /** * The version of this entity. - * * @return version The version of this entity. */ @JsonProperty(JSON_PROPERTY_VERSION) @@ -339,7 +330,9 @@ public void setVersion(String version) { this.version = version; } - /** Return true if this TokenizationUpdatedDetailsNotificationRequest object is equal to o. */ + /** + * Return true if this TokenizationUpdatedDetailsNotificationRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -348,15 +341,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TokenizationUpdatedDetailsNotificationRequest tokenizationUpdatedDetailsNotificationRequest = - (TokenizationUpdatedDetailsNotificationRequest) o; - return Objects.equals(this.createdAt, tokenizationUpdatedDetailsNotificationRequest.createdAt) - && Objects.equals(this.data, tokenizationUpdatedDetailsNotificationRequest.data) - && Objects.equals( - this.environment, tokenizationUpdatedDetailsNotificationRequest.environment) - && Objects.equals(this.eventId, tokenizationUpdatedDetailsNotificationRequest.eventId) - && Objects.equals(this.type, tokenizationUpdatedDetailsNotificationRequest.type) - && Objects.equals(this.version, tokenizationUpdatedDetailsNotificationRequest.version); + TokenizationUpdatedDetailsNotificationRequest tokenizationUpdatedDetailsNotificationRequest = (TokenizationUpdatedDetailsNotificationRequest) o; + return Objects.equals(this.createdAt, tokenizationUpdatedDetailsNotificationRequest.createdAt) && + Objects.equals(this.data, tokenizationUpdatedDetailsNotificationRequest.data) && + Objects.equals(this.environment, tokenizationUpdatedDetailsNotificationRequest.environment) && + Objects.equals(this.eventId, tokenizationUpdatedDetailsNotificationRequest.eventId) && + Objects.equals(this.type, tokenizationUpdatedDetailsNotificationRequest.type) && + Objects.equals(this.version, tokenizationUpdatedDetailsNotificationRequest.version); } @Override @@ -379,7 +370,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -388,25 +380,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TokenizationUpdatedDetailsNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of TokenizationUpdatedDetailsNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TokenizationUpdatedDetailsNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to TokenizationUpdatedDetailsNotificationRequest */ - public static TokenizationUpdatedDetailsNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { - return JSON.getMapper() - .readValue(jsonString, TokenizationUpdatedDetailsNotificationRequest.class); + public static TokenizationUpdatedDetailsNotificationRequest fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, TokenizationUpdatedDetailsNotificationRequest.class); } - - /** - * Convert an instance of TokenizationUpdatedDetailsNotificationRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TokenizationUpdatedDetailsNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationWebhooksHandler.java b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationWebhooksHandler.java index aaa897550..26c981acc 100644 --- a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationWebhooksHandler.java +++ b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationWebhooksHandler.java @@ -2,7 +2,7 @@ * Tokenization webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,141 +16,129 @@ /** * Handler for processing TokenizationWebhooks. - * - *

This class provides functionality to deserialize the payload of TokenizationWebhooks events. + *

+ * This class provides functionality to deserialize the payload of TokenizationWebhooks events. */ public class TokenizationWebhooksHandler { - private static final Logger LOG = Logger.getLogger(TokenizationWebhooksHandler.class.getName()); - - private final String payload; - - /** - * Constructs a new handler for the given webhook payload - * - * @param payload the raw JSON payload from the webhook - */ - public TokenizationWebhooksHandler(String payload) { - this.payload = payload; - } - - /** - * Attempts to deserialize the webhook payload into a - * TokenizationAlreadyExistingDetailsNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional - getTokenizationAlreadyExistingDetailsNotificationRequest() { - - var optionalTokenizationAlreadyExistingDetailsNotificationRequest = - getOptionalField(TokenizationAlreadyExistingDetailsNotificationRequest.class); - - if (optionalTokenizationAlreadyExistingDetailsNotificationRequest.isPresent()) { - // verify event type - for (var value : TokenizationAlreadyExistingDetailsNotificationRequest.TypeEnum.values()) { - if (value.equals( - optionalTokenizationAlreadyExistingDetailsNotificationRequest.get().getType())) { - // found matching event type - return optionalTokenizationAlreadyExistingDetailsNotificationRequest; + private static final Logger LOG = Logger.getLogger(TokenizationWebhooksHandler.class.getName()); + + private final String payload; + + /** + * Constructs a new handler for the given webhook payload + * + * @param payload the raw JSON payload from the webhook + */ + public TokenizationWebhooksHandler(String payload) { + this.payload = payload; + } + + /** + * Attempts to deserialize the webhook payload into a TokenizationAlreadyExistingDetailsNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getTokenizationAlreadyExistingDetailsNotificationRequest() { + + var optionalTokenizationAlreadyExistingDetailsNotificationRequest = getOptionalField(TokenizationAlreadyExistingDetailsNotificationRequest.class); + + if(optionalTokenizationAlreadyExistingDetailsNotificationRequest.isPresent()) { + // verify event type + for (var value : TokenizationAlreadyExistingDetailsNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalTokenizationAlreadyExistingDetailsNotificationRequest.get().getType())) { + // found matching event type + return optionalTokenizationAlreadyExistingDetailsNotificationRequest; + } + } } - } + + return Optional.empty(); } - return Optional.empty(); - } - - /** - * Attempts to deserialize the webhook payload into a - * TokenizationCreatedDetailsNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional - getTokenizationCreatedDetailsNotificationRequest() { - - var optionalTokenizationCreatedDetailsNotificationRequest = - getOptionalField(TokenizationCreatedDetailsNotificationRequest.class); - - if (optionalTokenizationCreatedDetailsNotificationRequest.isPresent()) { - // verify event type - for (var value : TokenizationCreatedDetailsNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalTokenizationCreatedDetailsNotificationRequest.get().getType())) { - // found matching event type - return optionalTokenizationCreatedDetailsNotificationRequest; + /** + * Attempts to deserialize the webhook payload into a TokenizationCreatedDetailsNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getTokenizationCreatedDetailsNotificationRequest() { + + var optionalTokenizationCreatedDetailsNotificationRequest = getOptionalField(TokenizationCreatedDetailsNotificationRequest.class); + + if(optionalTokenizationCreatedDetailsNotificationRequest.isPresent()) { + // verify event type + for (var value : TokenizationCreatedDetailsNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalTokenizationCreatedDetailsNotificationRequest.get().getType())) { + // found matching event type + return optionalTokenizationCreatedDetailsNotificationRequest; + } + } } - } + + return Optional.empty(); } - return Optional.empty(); - } - - /** - * Attempts to deserialize the webhook payload into a - * TokenizationDisabledDetailsNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional - getTokenizationDisabledDetailsNotificationRequest() { - - var optionalTokenizationDisabledDetailsNotificationRequest = - getOptionalField(TokenizationDisabledDetailsNotificationRequest.class); - - if (optionalTokenizationDisabledDetailsNotificationRequest.isPresent()) { - // verify event type - for (var value : TokenizationDisabledDetailsNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalTokenizationDisabledDetailsNotificationRequest.get().getType())) { - // found matching event type - return optionalTokenizationDisabledDetailsNotificationRequest; + /** + * Attempts to deserialize the webhook payload into a TokenizationDisabledDetailsNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getTokenizationDisabledDetailsNotificationRequest() { + + var optionalTokenizationDisabledDetailsNotificationRequest = getOptionalField(TokenizationDisabledDetailsNotificationRequest.class); + + if(optionalTokenizationDisabledDetailsNotificationRequest.isPresent()) { + // verify event type + for (var value : TokenizationDisabledDetailsNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalTokenizationDisabledDetailsNotificationRequest.get().getType())) { + // found matching event type + return optionalTokenizationDisabledDetailsNotificationRequest; + } + } } - } + + return Optional.empty(); } - return Optional.empty(); - } - - /** - * Attempts to deserialize the webhook payload into a - * TokenizationUpdatedDetailsNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional - getTokenizationUpdatedDetailsNotificationRequest() { - - var optionalTokenizationUpdatedDetailsNotificationRequest = - getOptionalField(TokenizationUpdatedDetailsNotificationRequest.class); - - if (optionalTokenizationUpdatedDetailsNotificationRequest.isPresent()) { - // verify event type - for (var value : TokenizationUpdatedDetailsNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalTokenizationUpdatedDetailsNotificationRequest.get().getType())) { - // found matching event type - return optionalTokenizationUpdatedDetailsNotificationRequest; + /** + * Attempts to deserialize the webhook payload into a TokenizationUpdatedDetailsNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getTokenizationUpdatedDetailsNotificationRequest() { + + var optionalTokenizationUpdatedDetailsNotificationRequest = getOptionalField(TokenizationUpdatedDetailsNotificationRequest.class); + + if(optionalTokenizationUpdatedDetailsNotificationRequest.isPresent()) { + // verify event type + for (var value : TokenizationUpdatedDetailsNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalTokenizationUpdatedDetailsNotificationRequest.get().getType())) { + // found matching event type + return optionalTokenizationUpdatedDetailsNotificationRequest; + } + } } - } + + return Optional.empty(); } - return Optional.empty(); - } - - /** - * Deserializes the payload into the specified class type. - * - * @param clazz the class to deserialize into - * @param the type of the class - * @return an Optional containing the deserialized object, or empty if an error occurs - */ - private Optional getOptionalField(Class clazz) { - try { - T val = JSON.getMapper().readValue(payload, clazz); - return Optional.ofNullable(val); - } catch (Exception e) { - // an error has occurred during deserialization (object not found, deserialization error) - LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); - LOG.warning("Deserialization error: " + e.getMessage()); - return Optional.empty(); + /** + * Deserializes the payload into the specified class type. + * + * @param clazz the class to deserialize into + * @param the type of the class + * @return an Optional containing the deserialized object, or empty if an error occurs + */ + private Optional getOptionalField(Class clazz) { + try { + T val = JSON.getMapper().readValue(payload, clazz); + return Optional.ofNullable(val); + } catch (Exception e) { + // an error has occurred during deserialization (object not found, deserialization error) + LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); + LOG.warning("Deserialization error: " + e.getMessage()); + return Optional.empty(); + } } - } -} + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/transactionwebhooks/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/transactionwebhooks/AbstractOpenApiSchema.java index e707b4965..c43a77db8 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/AbstractOpenApiSchema.java @@ -2,141 +2,145 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transactionwebhooks; -import com.fasterxml.jackson.annotation.JsonValue; -import jakarta.ws.rs.core.GenericType; -import java.util.Map; import java.util.Objects; +import java.util.Map; +import jakarta.ws.rs.core.GenericType; -/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec + */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() { - return instance; - } - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) { - this.instance = instance; - } - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf - * schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); - } else { - return object.getActualInstance(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() {return instance;} + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) {this.instance = instance;} + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); + } else { + return object.getActualInstance(); + } + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) && + Objects.equals(this.isNullable, a.isNullable) && + Objects.equals(this.schemaType, a.schemaType); } - return o.toString().replace("\n", "\n "); - } - public boolean equals(Object o) { - if (this == o) { - return true; + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); } - if (o == null || getClass() != o.getClass()) { - return false; + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) - && Objects.equals(this.isNullable, a.isNullable) - && Objects.equals(this.schemaType, a.schemaType); - } - - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); - } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); - } -} + + + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/transactionwebhooks/Amount.java b/src/main/java/com/adyen/model/transactionwebhooks/Amount.java index 5081ada76..9da66f9c4 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/Amount.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/Amount.java @@ -2,23 +2,36 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transactionwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Amount */ -@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) + +/** + * Amount + */ +@JsonPropertyOrder({ + Amount.JSON_PROPERTY_CURRENCY, + Amount.JSON_PROPERTY_VALUE +}) + public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -26,14 +39,13 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() {} + public Amount() { + } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount currency(String currency) { @@ -42,11 +54,8 @@ public Amount currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -55,11 +64,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,11 +75,9 @@ public void setCurrency(String currency) { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount value(Long value) { @@ -81,11 +86,8 @@ public Amount value(Long value) { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). - * - * @return value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @return value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,11 +96,9 @@ public Long getValue() { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,7 +106,9 @@ public void setValue(Long value) { this.value = value; } - /** Return true if this Amount object is equal to o. */ + /** + * Return true if this Amount object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -116,8 +118,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) - && Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) && + Objects.equals(this.value, amount.value); } @Override @@ -136,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -155,12 +158,11 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } - - /** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/BalancePlatformNotificationResponse.java b/src/main/java/com/adyen/model/transactionwebhooks/BalancePlatformNotificationResponse.java index 639e14f1e..968478e8e 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/BalancePlatformNotificationResponse.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/BalancePlatformNotificationResponse.java @@ -2,37 +2,47 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transactionwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** BalancePlatformNotificationResponse */ -@JsonPropertyOrder({BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) + +/** + * BalancePlatformNotificationResponse + */ +@JsonPropertyOrder({ + BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE +}) + public class BalancePlatformNotificationResponse { public static final String JSON_PROPERTY_NOTIFICATION_RESPONSE = "notificationResponse"; private String notificationResponse; - public BalancePlatformNotificationResponse() {} + public BalancePlatformNotificationResponse() { + } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method - * chaining + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method chaining */ public BalancePlatformNotificationResponse notificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; @@ -40,11 +50,8 @@ public BalancePlatformNotificationResponse notificationResponse(String notificat } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * - * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -53,11 +60,9 @@ public String getNotificationResponse() { } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -65,7 +70,9 @@ public void setNotificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; } - /** Return true if this BalancePlatformNotificationResponse object is equal to o. */ + /** + * Return true if this BalancePlatformNotificationResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -74,10 +81,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - BalancePlatformNotificationResponse balancePlatformNotificationResponse = - (BalancePlatformNotificationResponse) o; - return Objects.equals( - this.notificationResponse, balancePlatformNotificationResponse.notificationResponse); + BalancePlatformNotificationResponse balancePlatformNotificationResponse = (BalancePlatformNotificationResponse) o; + return Objects.equals(this.notificationResponse, balancePlatformNotificationResponse.notificationResponse); } @Override @@ -89,15 +94,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BalancePlatformNotificationResponse {\n"); - sb.append(" notificationResponse: ") - .append(toIndentedString(notificationResponse)) - .append("\n"); + sb.append(" notificationResponse: ").append(toIndentedString(notificationResponse)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -106,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BalancePlatformNotificationResponse given an JSON string * * @param jsonString JSON string * @return An instance of BalancePlatformNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BalancePlatformNotificationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to BalancePlatformNotificationResponse */ - public static BalancePlatformNotificationResponse fromJson(String jsonString) - throws JsonProcessingException { + public static BalancePlatformNotificationResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalancePlatformNotificationResponse.class); } - - /** - * Convert an instance of BalancePlatformNotificationResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BalancePlatformNotificationResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/BankCategoryData.java b/src/main/java/com/adyen/model/transactionwebhooks/BankCategoryData.java index ca0ad9e60..6c740d2fe 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/BankCategoryData.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/BankCategoryData.java @@ -2,42 +2,42 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transactionwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * BankCategoryData + */ +@JsonPropertyOrder({ + BankCategoryData.JSON_PROPERTY_PRIORITY, + BankCategoryData.JSON_PROPERTY_TYPE +}) -/** BankCategoryData */ -@JsonPropertyOrder({BankCategoryData.JSON_PROPERTY_PRIORITY, BankCategoryData.JSON_PROPERTY_TYPE}) public class BankCategoryData { /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the - * fees that you have to pay. Required for transfers with `category` **bank**. Possible - * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer - * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * - * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the - * United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). */ public enum PriorityEnum { + CROSSBORDER(String.valueOf("crossBorder")), FAST(String.valueOf("fast")), @@ -55,7 +55,7 @@ public enum PriorityEnum { private String value; PriorityEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -76,11 +76,7 @@ public static PriorityEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PriorityEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PriorityEnum.values())); + LOG.warning("PriorityEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PriorityEnum.values())); return null; } } @@ -88,8 +84,11 @@ public static PriorityEnum fromValue(String value) { public static final String JSON_PROPERTY_PRIORITY = "priority"; private PriorityEnum priority; - /** **bank** */ + /** + * **bank** + */ public enum TypeEnum { + BANK(String.valueOf("bank")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -97,7 +96,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -118,11 +117,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -130,32 +125,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public BankCategoryData() {} + public BankCategoryData() { + } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the - * fees that you have to pay. Required for transfers with `category` **bank**. Possible - * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer - * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * - * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the - * United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). * - * @param priority The priority for the bank transfer. This sets the speed at which the transfer - * is sent and the fees that you have to pay. Required for transfers with `category` - * **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a - * faster way to transfer funds, but the fees are higher. Recommended for high-priority, - * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the - * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for - * instant funds transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * @param priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). * @return the current {@code BankCategoryData} instance, allowing for method chaining */ public BankCategoryData priority(PriorityEnum priority) { @@ -164,29 +140,8 @@ public BankCategoryData priority(PriorityEnum priority) { } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the - * fees that you have to pay. Required for transfers with `category` **bank**. Possible - * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer - * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * - * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the - * United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). - * - * @return priority The priority for the bank transfer. This sets the speed at which the transfer - * is sent and the fees that you have to pay. Required for transfers with `category` - * **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a - * faster way to transfer funds, but the fees are higher. Recommended for high-priority, - * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the - * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for - * instant funds transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * @return priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). */ @JsonProperty(JSON_PROPERTY_PRIORITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,29 +150,9 @@ public PriorityEnum getPriority() { } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the - * fees that you have to pay. Required for transfers with `category` **bank**. Possible - * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer - * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * - * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the - * United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). * - * @param priority The priority for the bank transfer. This sets the speed at which the transfer - * is sent and the fees that you have to pay. Required for transfers with `category` - * **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a - * faster way to transfer funds, but the fees are higher. Recommended for high-priority, - * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the - * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for - * instant funds transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * @param priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). */ @JsonProperty(JSON_PROPERTY_PRIORITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -238,7 +173,6 @@ public BankCategoryData type(TypeEnum type) { /** * **bank** - * * @return type **bank** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -258,7 +192,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this BankCategoryData object is equal to o. */ + /** + * Return true if this BankCategoryData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -268,8 +204,8 @@ public boolean equals(Object o) { return false; } BankCategoryData bankCategoryData = (BankCategoryData) o; - return Objects.equals(this.priority, bankCategoryData.priority) - && Objects.equals(this.type, bankCategoryData.type); + return Objects.equals(this.priority, bankCategoryData.priority) && + Objects.equals(this.type, bankCategoryData.type); } @Override @@ -288,7 +224,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -297,7 +234,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BankCategoryData given an JSON string * * @param jsonString JSON string @@ -307,12 +244,11 @@ private String toIndentedString(Object o) { public static BankCategoryData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankCategoryData.class); } - - /** - * Convert an instance of BankCategoryData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BankCategoryData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/InternalCategoryData.java b/src/main/java/com/adyen/model/transactionwebhooks/InternalCategoryData.java index 73fed0ff6..5ff97d647 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/InternalCategoryData.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/InternalCategoryData.java @@ -2,41 +2,49 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transactionwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** InternalCategoryData */ + +/** + * InternalCategoryData + */ @JsonPropertyOrder({ InternalCategoryData.JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE, InternalCategoryData.JSON_PROPERTY_MODIFICATION_PSP_REFERENCE, InternalCategoryData.JSON_PROPERTY_TYPE }) + public class InternalCategoryData { - public static final String JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE = - "modificationMerchantReference"; + public static final String JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE = "modificationMerchantReference"; private String modificationMerchantReference; public static final String JSON_PROPERTY_MODIFICATION_PSP_REFERENCE = "modificationPspReference"; private String modificationPspReference; - /** **internal** */ + /** + * **internal** + */ public enum TypeEnum { + INTERNAL(String.valueOf("internal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -44,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -65,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -77,13 +81,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public InternalCategoryData() {} + public InternalCategoryData() { + } /** * The capture's merchant reference included in the transfer. * - * @param modificationMerchantReference The capture's merchant reference included in the - * transfer. + * @param modificationMerchantReference The capture's merchant reference included in the transfer. * @return the current {@code InternalCategoryData} instance, allowing for method chaining */ public InternalCategoryData modificationMerchantReference(String modificationMerchantReference) { @@ -93,9 +97,7 @@ public InternalCategoryData modificationMerchantReference(String modificationMer /** * The capture's merchant reference included in the transfer. - * - * @return modificationMerchantReference The capture's merchant reference included in the - * transfer. + * @return modificationMerchantReference The capture's merchant reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,8 +108,7 @@ public String getModificationMerchantReference() { /** * The capture's merchant reference included in the transfer. * - * @param modificationMerchantReference The capture's merchant reference included in the - * transfer. + * @param modificationMerchantReference The capture's merchant reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,7 +129,6 @@ public InternalCategoryData modificationPspReference(String modificationPspRefer /** * The capture reference included in the transfer. - * * @return modificationPspReference The capture reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_PSP_REFERENCE) @@ -161,7 +161,6 @@ public InternalCategoryData type(TypeEnum type) { /** * **internal** - * * @return type **internal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -181,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this InternalCategoryData object is equal to o. */ + /** + * Return true if this InternalCategoryData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -191,11 +192,9 @@ public boolean equals(Object o) { return false; } InternalCategoryData internalCategoryData = (InternalCategoryData) o; - return Objects.equals( - this.modificationMerchantReference, internalCategoryData.modificationMerchantReference) - && Objects.equals( - this.modificationPspReference, internalCategoryData.modificationPspReference) - && Objects.equals(this.type, internalCategoryData.type); + return Objects.equals(this.modificationMerchantReference, internalCategoryData.modificationMerchantReference) && + Objects.equals(this.modificationPspReference, internalCategoryData.modificationPspReference) && + Objects.equals(this.type, internalCategoryData.type); } @Override @@ -207,19 +206,16 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InternalCategoryData {\n"); - sb.append(" modificationMerchantReference: ") - .append(toIndentedString(modificationMerchantReference)) - .append("\n"); - sb.append(" modificationPspReference: ") - .append(toIndentedString(modificationPspReference)) - .append("\n"); + sb.append(" modificationMerchantReference: ").append(toIndentedString(modificationMerchantReference)).append("\n"); + sb.append(" modificationPspReference: ").append(toIndentedString(modificationPspReference)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -228,23 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of InternalCategoryData given an JSON string * * @param jsonString JSON string * @return An instance of InternalCategoryData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * InternalCategoryData + * @throws JsonProcessingException if the JSON string is invalid with respect to InternalCategoryData */ public static InternalCategoryData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, InternalCategoryData.class); } - - /** - * Convert an instance of InternalCategoryData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of InternalCategoryData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/IssuedCard.java b/src/main/java/com/adyen/model/transactionwebhooks/IssuedCard.java index 4be8f2aae..1956f360e 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/IssuedCard.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/IssuedCard.java @@ -2,28 +2,36 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transactionwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transactionwebhooks.RelayedAuthorisationData; +import com.adyen.model.transactionwebhooks.ThreeDSecure; +import com.adyen.model.transactionwebhooks.TransferNotificationValidationFact; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** IssuedCard */ +/** + * IssuedCard + */ @JsonPropertyOrder({ IssuedCard.JSON_PROPERTY_AUTHORISATION_TYPE, IssuedCard.JSON_PROPERTY_PAN_ENTRY_MODE, @@ -35,15 +43,16 @@ IssuedCard.JSON_PROPERTY_TYPE, IssuedCard.JSON_PROPERTY_VALIDATION_FACTS }) + public class IssuedCard { public static final String JSON_PROPERTY_AUTHORISATION_TYPE = "authorisationType"; private String authorisationType; /** - * Indicates the method used for entering the PAN to initiate a transaction. Possible values: - * **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + * Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. */ public enum PanEntryModeEnum { + CHIP(String.valueOf("chip")), COF(String.valueOf("cof")), @@ -63,7 +72,7 @@ public enum PanEntryModeEnum { private String value; PanEntryModeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -84,11 +93,7 @@ public static PanEntryModeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PanEntryModeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PanEntryModeEnum.values())); + LOG.warning("PanEntryModeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PanEntryModeEnum.values())); return null; } } @@ -97,10 +102,10 @@ public static PanEntryModeEnum fromValue(String value) { private PanEntryModeEnum panEntryMode; /** - * Contains information about how the payment was processed. For example, **ecommerce** for online - * or **pos** for in-person payments. + * Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. */ public enum ProcessingTypeEnum { + ATMWITHDRAW(String.valueOf("atmWithdraw")), BALANCEINQUIRY(String.valueOf("balanceInquiry")), @@ -122,7 +127,7 @@ public enum ProcessingTypeEnum { private String value; ProcessingTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -143,11 +148,7 @@ public static ProcessingTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ProcessingTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ProcessingTypeEnum.values())); + LOG.warning("ProcessingTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ProcessingTypeEnum.values())); return null; } } @@ -161,15 +162,17 @@ public static ProcessingTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_SCHEME_TRACE_ID = "schemeTraceId"; private String schemeTraceId; - public static final String JSON_PROPERTY_SCHEME_UNIQUE_TRANSACTION_ID = - "schemeUniqueTransactionId"; + public static final String JSON_PROPERTY_SCHEME_UNIQUE_TRANSACTION_ID = "schemeUniqueTransactionId"; private String schemeUniqueTransactionId; public static final String JSON_PROPERTY_THREE_D_SECURE = "threeDSecure"; private ThreeDSecure threeDSecure; - /** **issuedCard** */ + /** + * **issuedCard** + */ public enum TypeEnum { + ISSUEDCARD(String.valueOf("issuedCard")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -177,7 +180,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -198,11 +201,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -213,14 +212,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VALIDATION_FACTS = "validationFacts"; private List validationFacts; - public IssuedCard() {} + public IssuedCard() { + } /** - * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, - * **finalAuthorisation** + * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** * - * @param authorisationType The authorisation type. For example, **defaultAuthorisation**, - * **preAuthorisation**, **finalAuthorisation** + * @param authorisationType The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard authorisationType(String authorisationType) { @@ -229,11 +227,8 @@ public IssuedCard authorisationType(String authorisationType) { } /** - * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, - * **finalAuthorisation** - * - * @return authorisationType The authorisation type. For example, **defaultAuthorisation**, - * **preAuthorisation**, **finalAuthorisation** + * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** + * @return authorisationType The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** */ @JsonProperty(JSON_PROPERTY_AUTHORISATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,11 +237,9 @@ public String getAuthorisationType() { } /** - * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, - * **finalAuthorisation** + * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** * - * @param authorisationType The authorisation type. For example, **defaultAuthorisation**, - * **preAuthorisation**, **finalAuthorisation** + * @param authorisationType The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** */ @JsonProperty(JSON_PROPERTY_AUTHORISATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -255,12 +248,9 @@ public void setAuthorisationType(String authorisationType) { } /** - * Indicates the method used for entering the PAN to initiate a transaction. Possible values: - * **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + * Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. * - * @param panEntryMode Indicates the method used for entering the PAN to initiate a transaction. - * Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, - * **ecommerce**, **token**. + * @param panEntryMode Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard panEntryMode(PanEntryModeEnum panEntryMode) { @@ -269,12 +259,8 @@ public IssuedCard panEntryMode(PanEntryModeEnum panEntryMode) { } /** - * Indicates the method used for entering the PAN to initiate a transaction. Possible values: - * **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. - * - * @return panEntryMode Indicates the method used for entering the PAN to initiate a transaction. - * Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, - * **ecommerce**, **token**. + * Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + * @return panEntryMode Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. */ @JsonProperty(JSON_PROPERTY_PAN_ENTRY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -283,12 +269,9 @@ public PanEntryModeEnum getPanEntryMode() { } /** - * Indicates the method used for entering the PAN to initiate a transaction. Possible values: - * **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + * Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. * - * @param panEntryMode Indicates the method used for entering the PAN to initiate a transaction. - * Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, - * **ecommerce**, **token**. + * @param panEntryMode Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. */ @JsonProperty(JSON_PROPERTY_PAN_ENTRY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -297,11 +280,9 @@ public void setPanEntryMode(PanEntryModeEnum panEntryMode) { } /** - * Contains information about how the payment was processed. For example, **ecommerce** for online - * or **pos** for in-person payments. + * Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. * - * @param processingType Contains information about how the payment was processed. For example, - * **ecommerce** for online or **pos** for in-person payments. + * @param processingType Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard processingType(ProcessingTypeEnum processingType) { @@ -310,11 +291,8 @@ public IssuedCard processingType(ProcessingTypeEnum processingType) { } /** - * Contains information about how the payment was processed. For example, **ecommerce** for online - * or **pos** for in-person payments. - * - * @return processingType Contains information about how the payment was processed. For example, - * **ecommerce** for online or **pos** for in-person payments. + * Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. + * @return processingType Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. */ @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -323,11 +301,9 @@ public ProcessingTypeEnum getProcessingType() { } /** - * Contains information about how the payment was processed. For example, **ecommerce** for online - * or **pos** for in-person payments. + * Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. * - * @param processingType Contains information about how the payment was processed. For example, - * **ecommerce** for online or **pos** for in-person payments. + * @param processingType Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. */ @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -338,7 +314,7 @@ public void setProcessingType(ProcessingTypeEnum processingType) { /** * relayedAuthorisationData * - * @param relayedAuthorisationData + * @param relayedAuthorisationData * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard relayedAuthorisationData(RelayedAuthorisationData relayedAuthorisationData) { @@ -348,8 +324,7 @@ public IssuedCard relayedAuthorisationData(RelayedAuthorisationData relayedAutho /** * Get relayedAuthorisationData - * - * @return relayedAuthorisationData + * @return relayedAuthorisationData */ @JsonProperty(JSON_PROPERTY_RELAYED_AUTHORISATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -360,7 +335,7 @@ public RelayedAuthorisationData getRelayedAuthorisationData() { /** * relayedAuthorisationData * - * @param relayedAuthorisationData + * @param relayedAuthorisationData */ @JsonProperty(JSON_PROPERTY_RELAYED_AUTHORISATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -369,17 +344,9 @@ public void setRelayedAuthorisationData(RelayedAuthorisationData relayedAuthoris } /** - * The identifier of the original payment. This ID is provided by the scheme and can be - * alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to - * an original `schemeUniqueTransactionID` provided in an earlier payment (not - * necessarily processed by Adyen). A `schemeTraceId` is typically available for - * authorization adjustments or recurring payments. + * The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. * - * @param schemeTraceId The identifier of the original payment. This ID is provided by the scheme - * and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` - * should refer to an original `schemeUniqueTransactionID` provided in an earlier - * payment (not necessarily processed by Adyen). A `schemeTraceId` is typically - * available for authorization adjustments or recurring payments. + * @param schemeTraceId The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard schemeTraceId(String schemeTraceId) { @@ -388,17 +355,8 @@ public IssuedCard schemeTraceId(String schemeTraceId) { } /** - * The identifier of the original payment. This ID is provided by the scheme and can be - * alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to - * an original `schemeUniqueTransactionID` provided in an earlier payment (not - * necessarily processed by Adyen). A `schemeTraceId` is typically available for - * authorization adjustments or recurring payments. - * - * @return schemeTraceId The identifier of the original payment. This ID is provided by the scheme - * and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` - * should refer to an original `schemeUniqueTransactionID` provided in an earlier - * payment (not necessarily processed by Adyen). A `schemeTraceId` is typically - * available for authorization adjustments or recurring payments. + * The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. + * @return schemeTraceId The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. */ @JsonProperty(JSON_PROPERTY_SCHEME_TRACE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -407,17 +365,9 @@ public String getSchemeTraceId() { } /** - * The identifier of the original payment. This ID is provided by the scheme and can be - * alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to - * an original `schemeUniqueTransactionID` provided in an earlier payment (not - * necessarily processed by Adyen). A `schemeTraceId` is typically available for - * authorization adjustments or recurring payments. + * The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. * - * @param schemeTraceId The identifier of the original payment. This ID is provided by the scheme - * and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` - * should refer to an original `schemeUniqueTransactionID` provided in an earlier - * payment (not necessarily processed by Adyen). A `schemeTraceId` is typically - * available for authorization adjustments or recurring payments. + * @param schemeTraceId The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. */ @JsonProperty(JSON_PROPERTY_SCHEME_TRACE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -426,11 +376,9 @@ public void setSchemeTraceId(String schemeTraceId) { } /** - * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending - * on the scheme. + * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. * - * @param schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be - * alphanumeric or numeric depending on the scheme. + * @param schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard schemeUniqueTransactionId(String schemeUniqueTransactionId) { @@ -439,11 +387,8 @@ public IssuedCard schemeUniqueTransactionId(String schemeUniqueTransactionId) { } /** - * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending - * on the scheme. - * - * @return schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be - * alphanumeric or numeric depending on the scheme. + * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. + * @return schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. */ @JsonProperty(JSON_PROPERTY_SCHEME_UNIQUE_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -452,11 +397,9 @@ public String getSchemeUniqueTransactionId() { } /** - * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending - * on the scheme. + * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. * - * @param schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be - * alphanumeric or numeric depending on the scheme. + * @param schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. */ @JsonProperty(JSON_PROPERTY_SCHEME_UNIQUE_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -467,7 +410,7 @@ public void setSchemeUniqueTransactionId(String schemeUniqueTransactionId) { /** * threeDSecure * - * @param threeDSecure + * @param threeDSecure * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard threeDSecure(ThreeDSecure threeDSecure) { @@ -477,8 +420,7 @@ public IssuedCard threeDSecure(ThreeDSecure threeDSecure) { /** * Get threeDSecure - * - * @return threeDSecure + * @return threeDSecure */ @JsonProperty(JSON_PROPERTY_THREE_D_SECURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -489,7 +431,7 @@ public ThreeDSecure getThreeDSecure() { /** * threeDSecure * - * @param threeDSecure + * @param threeDSecure */ @JsonProperty(JSON_PROPERTY_THREE_D_SECURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -510,7 +452,6 @@ public IssuedCard type(TypeEnum type) { /** * **issuedCard** - * * @return type **issuedCard** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -531,11 +472,9 @@ public void setType(TypeEnum type) { } /** - * The evaluation of the validation facts. See [validation - * checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. * - * @param validationFacts The evaluation of the validation facts. See [validation - * checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * @param validationFacts The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard validationFacts(List validationFacts) { @@ -552,11 +491,8 @@ public IssuedCard addValidationFactsItem(TransferNotificationValidationFact vali } /** - * The evaluation of the validation facts. See [validation - * checks](https://docs.adyen.com/issuing/validation-checks) for more information. - * - * @return validationFacts The evaluation of the validation facts. See [validation - * checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * @return validationFacts The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. */ @JsonProperty(JSON_PROPERTY_VALIDATION_FACTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -565,11 +501,9 @@ public List getValidationFacts() { } /** - * The evaluation of the validation facts. See [validation - * checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. * - * @param validationFacts The evaluation of the validation facts. See [validation - * checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * @param validationFacts The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. */ @JsonProperty(JSON_PROPERTY_VALIDATION_FACTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -577,7 +511,9 @@ public void setValidationFacts(List validati this.validationFacts = validationFacts; } - /** Return true if this IssuedCard object is equal to o. */ + /** + * Return true if this IssuedCard object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -587,29 +523,20 @@ public boolean equals(Object o) { return false; } IssuedCard issuedCard = (IssuedCard) o; - return Objects.equals(this.authorisationType, issuedCard.authorisationType) - && Objects.equals(this.panEntryMode, issuedCard.panEntryMode) - && Objects.equals(this.processingType, issuedCard.processingType) - && Objects.equals(this.relayedAuthorisationData, issuedCard.relayedAuthorisationData) - && Objects.equals(this.schemeTraceId, issuedCard.schemeTraceId) - && Objects.equals(this.schemeUniqueTransactionId, issuedCard.schemeUniqueTransactionId) - && Objects.equals(this.threeDSecure, issuedCard.threeDSecure) - && Objects.equals(this.type, issuedCard.type) - && Objects.equals(this.validationFacts, issuedCard.validationFacts); + return Objects.equals(this.authorisationType, issuedCard.authorisationType) && + Objects.equals(this.panEntryMode, issuedCard.panEntryMode) && + Objects.equals(this.processingType, issuedCard.processingType) && + Objects.equals(this.relayedAuthorisationData, issuedCard.relayedAuthorisationData) && + Objects.equals(this.schemeTraceId, issuedCard.schemeTraceId) && + Objects.equals(this.schemeUniqueTransactionId, issuedCard.schemeUniqueTransactionId) && + Objects.equals(this.threeDSecure, issuedCard.threeDSecure) && + Objects.equals(this.type, issuedCard.type) && + Objects.equals(this.validationFacts, issuedCard.validationFacts); } @Override public int hashCode() { - return Objects.hash( - authorisationType, - panEntryMode, - processingType, - relayedAuthorisationData, - schemeTraceId, - schemeUniqueTransactionId, - threeDSecure, - type, - validationFacts); + return Objects.hash(authorisationType, panEntryMode, processingType, relayedAuthorisationData, schemeTraceId, schemeUniqueTransactionId, threeDSecure, type, validationFacts); } @Override @@ -619,13 +546,9 @@ public String toString() { sb.append(" authorisationType: ").append(toIndentedString(authorisationType)).append("\n"); sb.append(" panEntryMode: ").append(toIndentedString(panEntryMode)).append("\n"); sb.append(" processingType: ").append(toIndentedString(processingType)).append("\n"); - sb.append(" relayedAuthorisationData: ") - .append(toIndentedString(relayedAuthorisationData)) - .append("\n"); + sb.append(" relayedAuthorisationData: ").append(toIndentedString(relayedAuthorisationData)).append("\n"); sb.append(" schemeTraceId: ").append(toIndentedString(schemeTraceId)).append("\n"); - sb.append(" schemeUniqueTransactionId: ") - .append(toIndentedString(schemeUniqueTransactionId)) - .append("\n"); + sb.append(" schemeUniqueTransactionId: ").append(toIndentedString(schemeUniqueTransactionId)).append("\n"); sb.append(" threeDSecure: ").append(toIndentedString(threeDSecure)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" validationFacts: ").append(toIndentedString(validationFacts)).append("\n"); @@ -634,7 +557,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -643,7 +567,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of IssuedCard given an JSON string * * @param jsonString JSON string @@ -653,12 +577,11 @@ private String toIndentedString(Object o) { public static IssuedCard fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, IssuedCard.class); } - - /** - * Convert an instance of IssuedCard to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of IssuedCard to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/JSON.java b/src/main/java/com/adyen/model/transactionwebhooks/JSON.java index 2dd25328b..5c91cb868 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/JSON.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/JSON.java @@ -1,18 +1,21 @@ package com.adyen.model.transactionwebhooks; -import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; +import com.adyen.serializer.ByteArrayDeserializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; +import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; +import com.adyen.model.transactionwebhooks.*; + import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -37,7 +40,6 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. - * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -54,13 +56,11 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { - return mapper; - } + public static ObjectMapper getMapper() { return mapper; } /** - * Returns the target model class that should be used to deserialize the input data. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,7 +73,9 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** Helper class to register the discriminator mappings. */ + /** + * Helper class to register the discriminator mappings. + */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -115,9 +117,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. This - * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -162,14 +164,13 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so - * it's not possible to use the instanceof keyword. + * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, + * so it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf( - Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -193,58 +194,59 @@ public static boolean isInstanceOf( return false; } - /** A map of discriminators for all model classes. */ - private static final Map, ClassDiscriminatorMapping> modelDiscriminators = - new HashMap, ClassDiscriminatorMapping>(); + /** + * A map of discriminators for all model classes. + */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); - /** A map of oneOf/anyOf descendants for each model class. */ + /** + * A map of oneOf/anyOf descendants for each model class. + */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator( - Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = - new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants( - Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants(Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static { + static + { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/PaymentInstrument.java b/src/main/java/com/adyen/model/transactionwebhooks/PaymentInstrument.java index ad51ffa3c..aa84a43d4 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/PaymentInstrument.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/PaymentInstrument.java @@ -2,28 +2,38 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transactionwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** PaymentInstrument */ + +/** + * PaymentInstrument + */ @JsonPropertyOrder({ PaymentInstrument.JSON_PROPERTY_DESCRIPTION, PaymentInstrument.JSON_PROPERTY_ID, PaymentInstrument.JSON_PROPERTY_REFERENCE, PaymentInstrument.JSON_PROPERTY_TOKEN_TYPE }) + public class PaymentInstrument { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -37,7 +47,8 @@ public class PaymentInstrument { public static final String JSON_PROPERTY_TOKEN_TYPE = "tokenType"; private String tokenType; - public PaymentInstrument() {} + public PaymentInstrument() { + } /** * The description of the resource. @@ -52,7 +63,6 @@ public PaymentInstrument description(String description) { /** * The description of the resource. - * * @return description The description of the resource. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -85,7 +95,6 @@ public PaymentInstrument id(String id) { /** * The unique identifier of the resource. - * * @return id The unique identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -118,7 +127,6 @@ public PaymentInstrument reference(String reference) { /** * The reference for the resource. - * * @return reference The reference for the resource. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -151,7 +159,6 @@ public PaymentInstrument tokenType(String tokenType) { /** * The type of wallet that the network token is associated with. - * * @return tokenType The type of wallet that the network token is associated with. */ @JsonProperty(JSON_PROPERTY_TOKEN_TYPE) @@ -171,7 +178,9 @@ public void setTokenType(String tokenType) { this.tokenType = tokenType; } - /** Return true if this PaymentInstrument object is equal to o. */ + /** + * Return true if this PaymentInstrument object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -181,10 +190,10 @@ public boolean equals(Object o) { return false; } PaymentInstrument paymentInstrument = (PaymentInstrument) o; - return Objects.equals(this.description, paymentInstrument.description) - && Objects.equals(this.id, paymentInstrument.id) - && Objects.equals(this.reference, paymentInstrument.reference) - && Objects.equals(this.tokenType, paymentInstrument.tokenType); + return Objects.equals(this.description, paymentInstrument.description) && + Objects.equals(this.id, paymentInstrument.id) && + Objects.equals(this.reference, paymentInstrument.reference) && + Objects.equals(this.tokenType, paymentInstrument.tokenType); } @Override @@ -205,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -214,7 +224,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentInstrument given an JSON string * * @param jsonString JSON string @@ -224,12 +234,11 @@ private String toIndentedString(Object o) { public static PaymentInstrument fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentInstrument.class); } - - /** - * Convert an instance of PaymentInstrument to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentInstrument to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/PlatformPayment.java b/src/main/java/com/adyen/model/transactionwebhooks/PlatformPayment.java index f13b20b98..7ff66d726 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/PlatformPayment.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/PlatformPayment.java @@ -2,26 +2,31 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transactionwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PlatformPayment */ +/** + * PlatformPayment + */ @JsonPropertyOrder({ PlatformPayment.JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE, PlatformPayment.JSON_PROPERTY_MODIFICATION_PSP_REFERENCE, @@ -30,9 +35,9 @@ PlatformPayment.JSON_PROPERTY_PSP_PAYMENT_REFERENCE, PlatformPayment.JSON_PROPERTY_TYPE }) + public class PlatformPayment { - public static final String JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE = - "modificationMerchantReference"; + public static final String JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE = "modificationMerchantReference"; private String modificationMerchantReference; public static final String JSON_PROPERTY_MODIFICATION_PSP_REFERENCE = "modificationPspReference"; @@ -42,28 +47,10 @@ public class PlatformPayment { private String paymentMerchantReference; /** - * Specifies the nature of the transfer. This parameter helps categorize transfers so you can - * reconcile transactions at a later time, using the Balance Platform Accounting Report for - * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) - * or - * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). - * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * - * **AdyenCommission**: for the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). - * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's - * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen - * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale - * amount of a transaction. * **Commission**: for your platform's commission on a transaction. - * * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * - * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * - * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount - * after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This - * is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge - * paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * - * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for - * the Value Added Tax. + * Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. */ public enum PlatformPaymentTypeEnum { + ACQUIRINGFEES(String.valueOf("AcquiringFees")), ADYENCOMMISSION(String.valueOf("AdyenCommission")), @@ -103,7 +90,7 @@ public enum PlatformPaymentTypeEnum { private String value; PlatformPaymentTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -124,11 +111,7 @@ public static PlatformPaymentTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PlatformPaymentTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PlatformPaymentTypeEnum.values())); + LOG.warning("PlatformPaymentTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PlatformPaymentTypeEnum.values())); return null; } } @@ -139,8 +122,11 @@ public static PlatformPaymentTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_PSP_PAYMENT_REFERENCE = "pspPaymentReference"; private String pspPaymentReference; - /** **platformPayment** */ + /** + * **platformPayment** + */ public enum TypeEnum { + PLATFORMPAYMENT(String.valueOf("platformPayment")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -148,7 +134,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -169,11 +155,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -181,13 +163,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PlatformPayment() {} + public PlatformPayment() { + } /** * The capture's merchant reference included in the transfer. * - * @param modificationMerchantReference The capture's merchant reference included in the - * transfer. + * @param modificationMerchantReference The capture's merchant reference included in the transfer. * @return the current {@code PlatformPayment} instance, allowing for method chaining */ public PlatformPayment modificationMerchantReference(String modificationMerchantReference) { @@ -197,9 +179,7 @@ public PlatformPayment modificationMerchantReference(String modificationMerchant /** * The capture's merchant reference included in the transfer. - * - * @return modificationMerchantReference The capture's merchant reference included in the - * transfer. + * @return modificationMerchantReference The capture's merchant reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -210,8 +190,7 @@ public String getModificationMerchantReference() { /** * The capture's merchant reference included in the transfer. * - * @param modificationMerchantReference The capture's merchant reference included in the - * transfer. + * @param modificationMerchantReference The capture's merchant reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,7 +211,6 @@ public PlatformPayment modificationPspReference(String modificationPspReference) /** * The capture reference included in the transfer. - * * @return modificationPspReference The capture reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_PSP_REFERENCE) @@ -265,7 +243,6 @@ public PlatformPayment paymentMerchantReference(String paymentMerchantReference) /** * The payment's merchant reference included in the transfer. - * * @return paymentMerchantReference The payment's merchant reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_PAYMENT_MERCHANT_REFERENCE) @@ -286,48 +263,9 @@ public void setPaymentMerchantReference(String paymentMerchantReference) { } /** - * Specifies the nature of the transfer. This parameter helps categorize transfers so you can - * reconcile transactions at a later time, using the Balance Platform Accounting Report for - * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) - * or - * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). - * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * - * **AdyenCommission**: for the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). - * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's - * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen - * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale - * amount of a transaction. * **Commission**: for your platform's commission on a transaction. - * * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * - * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * - * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount - * after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This - * is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge - * paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * - * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for - * the Value Added Tax. + * Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. * - * @param platformPaymentType Specifies the nature of the transfer. This parameter helps - * categorize transfers so you can reconcile transactions at a later time, using the Balance - * Platform Accounting Report for - * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) - * or - * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). - * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * - * **AdyenCommission**: for the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). - * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's - * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen - * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the - * sale amount of a transaction. * **Commission**: for your platform's commission on a - * transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a - * transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred - * on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for - * the left over amount after currency conversion. * **SchemeFee**: for the scheme fee - * incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. - * * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for - * the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your - * user's balance account. * **VAT**: for the Value Added Tax. + * @param platformPaymentType Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. * @return the current {@code PlatformPayment} instance, allowing for method chaining */ public PlatformPayment platformPaymentType(PlatformPaymentTypeEnum platformPaymentType) { @@ -336,48 +274,8 @@ public PlatformPayment platformPaymentType(PlatformPaymentTypeEnum platformPayme } /** - * Specifies the nature of the transfer. This parameter helps categorize transfers so you can - * reconcile transactions at a later time, using the Balance Platform Accounting Report for - * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) - * or - * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). - * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * - * **AdyenCommission**: for the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). - * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's - * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen - * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale - * amount of a transaction. * **Commission**: for your platform's commission on a transaction. - * * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * - * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * - * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount - * after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This - * is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge - * paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * - * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for - * the Value Added Tax. - * - * @return platformPaymentType Specifies the nature of the transfer. This parameter helps - * categorize transfers so you can reconcile transactions at a later time, using the Balance - * Platform Accounting Report for - * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) - * or - * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). - * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * - * **AdyenCommission**: for the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). - * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's - * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen - * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the - * sale amount of a transaction. * **Commission**: for your platform's commission on a - * transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a - * transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred - * on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for - * the left over amount after currency conversion. * **SchemeFee**: for the scheme fee - * incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. - * * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for - * the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your - * user's balance account. * **VAT**: for the Value Added Tax. + * Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. + * @return platformPaymentType Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. */ @JsonProperty(JSON_PROPERTY_PLATFORM_PAYMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -386,48 +284,9 @@ public PlatformPaymentTypeEnum getPlatformPaymentType() { } /** - * Specifies the nature of the transfer. This parameter helps categorize transfers so you can - * reconcile transactions at a later time, using the Balance Platform Accounting Report for - * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) - * or - * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). - * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * - * **AdyenCommission**: for the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). - * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's - * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen - * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale - * amount of a transaction. * **Commission**: for your platform's commission on a transaction. - * * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * - * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * - * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount - * after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This - * is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge - * paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * - * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for - * the Value Added Tax. + * Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. * - * @param platformPaymentType Specifies the nature of the transfer. This parameter helps - * categorize transfers so you can reconcile transactions at a later time, using the Balance - * Platform Accounting Report for - * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) - * or - * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). - * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * - * **AdyenCommission**: for the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). - * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's - * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen - * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the - * sale amount of a transaction. * **Commission**: for your platform's commission on a - * transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a - * transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred - * on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for - * the left over amount after currency conversion. * **SchemeFee**: for the scheme fee - * incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. - * * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for - * the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your - * user's balance account. * **VAT**: for the Value Added Tax. + * @param platformPaymentType Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. */ @JsonProperty(JSON_PROPERTY_PLATFORM_PAYMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -448,7 +307,6 @@ public PlatformPayment pspPaymentReference(String pspPaymentReference) { /** * The payment reference included in the transfer. - * * @return pspPaymentReference The payment reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_PSP_PAYMENT_REFERENCE) @@ -481,7 +339,6 @@ public PlatformPayment type(TypeEnum type) { /** * **platformPayment** - * * @return type **platformPayment** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -501,7 +358,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this PlatformPayment object is equal to o. */ + /** + * Return true if this PlatformPayment object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -511,52 +370,36 @@ public boolean equals(Object o) { return false; } PlatformPayment platformPayment = (PlatformPayment) o; - return Objects.equals( - this.modificationMerchantReference, platformPayment.modificationMerchantReference) - && Objects.equals(this.modificationPspReference, platformPayment.modificationPspReference) - && Objects.equals(this.paymentMerchantReference, platformPayment.paymentMerchantReference) - && Objects.equals(this.platformPaymentType, platformPayment.platformPaymentType) - && Objects.equals(this.pspPaymentReference, platformPayment.pspPaymentReference) - && Objects.equals(this.type, platformPayment.type); + return Objects.equals(this.modificationMerchantReference, platformPayment.modificationMerchantReference) && + Objects.equals(this.modificationPspReference, platformPayment.modificationPspReference) && + Objects.equals(this.paymentMerchantReference, platformPayment.paymentMerchantReference) && + Objects.equals(this.platformPaymentType, platformPayment.platformPaymentType) && + Objects.equals(this.pspPaymentReference, platformPayment.pspPaymentReference) && + Objects.equals(this.type, platformPayment.type); } @Override public int hashCode() { - return Objects.hash( - modificationMerchantReference, - modificationPspReference, - paymentMerchantReference, - platformPaymentType, - pspPaymentReference, - type); + return Objects.hash(modificationMerchantReference, modificationPspReference, paymentMerchantReference, platformPaymentType, pspPaymentReference, type); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PlatformPayment {\n"); - sb.append(" modificationMerchantReference: ") - .append(toIndentedString(modificationMerchantReference)) - .append("\n"); - sb.append(" modificationPspReference: ") - .append(toIndentedString(modificationPspReference)) - .append("\n"); - sb.append(" paymentMerchantReference: ") - .append(toIndentedString(paymentMerchantReference)) - .append("\n"); - sb.append(" platformPaymentType: ") - .append(toIndentedString(platformPaymentType)) - .append("\n"); - sb.append(" pspPaymentReference: ") - .append(toIndentedString(pspPaymentReference)) - .append("\n"); + sb.append(" modificationMerchantReference: ").append(toIndentedString(modificationMerchantReference)).append("\n"); + sb.append(" modificationPspReference: ").append(toIndentedString(modificationPspReference)).append("\n"); + sb.append(" paymentMerchantReference: ").append(toIndentedString(paymentMerchantReference)).append("\n"); + sb.append(" platformPaymentType: ").append(toIndentedString(platformPaymentType)).append("\n"); + sb.append(" pspPaymentReference: ").append(toIndentedString(pspPaymentReference)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -565,7 +408,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PlatformPayment given an JSON string * * @param jsonString JSON string @@ -575,12 +418,11 @@ private String toIndentedString(Object o) { public static PlatformPayment fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PlatformPayment.class); } - - /** - * Convert an instance of PlatformPayment to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PlatformPayment to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/RelayedAuthorisationData.java b/src/main/java/com/adyen/model/transactionwebhooks/RelayedAuthorisationData.java index 00a7565d7..809774abb 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/RelayedAuthorisationData.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/RelayedAuthorisationData.java @@ -2,28 +2,38 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transactionwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** RelayedAuthorisationData */ +/** + * RelayedAuthorisationData + */ @JsonPropertyOrder({ RelayedAuthorisationData.JSON_PROPERTY_METADATA, RelayedAuthorisationData.JSON_PROPERTY_REFERENCE }) + public class RelayedAuthorisationData { public static final String JSON_PROPERTY_METADATA = "metadata"; private Map metadata; @@ -31,14 +41,13 @@ public class RelayedAuthorisationData { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public RelayedAuthorisationData() {} + public RelayedAuthorisationData() { + } /** - * Contains key-value pairs of your references and descriptions, for example, - * `customId`:`your-own-custom-field-12345`. + * Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. * - * @param metadata Contains key-value pairs of your references and descriptions, for example, - * `customId`:`your-own-custom-field-12345`. + * @param metadata Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. * @return the current {@code RelayedAuthorisationData} instance, allowing for method chaining */ public RelayedAuthorisationData metadata(Map metadata) { @@ -55,11 +64,8 @@ public RelayedAuthorisationData putMetadataItem(String key, String metadataItem) } /** - * Contains key-value pairs of your references and descriptions, for example, - * `customId`:`your-own-custom-field-12345`. - * - * @return metadata Contains key-value pairs of your references and descriptions, for example, - * `customId`:`your-own-custom-field-12345`. + * Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. + * @return metadata Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,11 +74,9 @@ public Map getMetadata() { } /** - * Contains key-value pairs of your references and descriptions, for example, - * `customId`:`your-own-custom-field-12345`. + * Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. * - * @param metadata Contains key-value pairs of your references and descriptions, for example, - * `customId`:`your-own-custom-field-12345`. + * @param metadata Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -93,7 +97,6 @@ public RelayedAuthorisationData reference(String reference) { /** * Your reference for the relayed authorisation data. - * * @return reference Your reference for the relayed authorisation data. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -113,7 +116,9 @@ public void setReference(String reference) { this.reference = reference; } - /** Return true if this RelayedAuthorisationData object is equal to o. */ + /** + * Return true if this RelayedAuthorisationData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -123,8 +128,8 @@ public boolean equals(Object o) { return false; } RelayedAuthorisationData relayedAuthorisationData = (RelayedAuthorisationData) o; - return Objects.equals(this.metadata, relayedAuthorisationData.metadata) - && Objects.equals(this.reference, relayedAuthorisationData.reference); + return Objects.equals(this.metadata, relayedAuthorisationData.metadata) && + Objects.equals(this.reference, relayedAuthorisationData.reference); } @Override @@ -143,7 +148,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -152,24 +158,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RelayedAuthorisationData given an JSON string * * @param jsonString JSON string * @return An instance of RelayedAuthorisationData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * RelayedAuthorisationData + * @throws JsonProcessingException if the JSON string is invalid with respect to RelayedAuthorisationData */ - public static RelayedAuthorisationData fromJson(String jsonString) - throws JsonProcessingException { + public static RelayedAuthorisationData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RelayedAuthorisationData.class); } - - /** - * Convert an instance of RelayedAuthorisationData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RelayedAuthorisationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/Resource.java b/src/main/java/com/adyen/model/transactionwebhooks/Resource.java index 925b9380f..231d80d6f 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/Resource.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/Resource.java @@ -2,28 +2,38 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transactionwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.time.OffsetDateTime; -import java.util.*; -/** Resource */ + +/** + * Resource + */ @JsonPropertyOrder({ Resource.JSON_PROPERTY_BALANCE_PLATFORM, Resource.JSON_PROPERTY_CREATION_DATE, Resource.JSON_PROPERTY_ID }) + public class Resource { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; @@ -34,7 +44,8 @@ public class Resource { public static final String JSON_PROPERTY_ID = "id"; private String id; - public Resource() {} + public Resource() { + } /** * The unique identifier of the balance platform. @@ -49,7 +60,6 @@ public Resource balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. - * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -70,11 +80,9 @@ public void setBalancePlatform(String balancePlatform) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code Resource} instance, allowing for method chaining */ public Resource creationDate(OffsetDateTime creationDate) { @@ -83,11 +91,8 @@ public Resource creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. - * - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,11 +101,9 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,7 +124,6 @@ public Resource id(String id) { /** * The ID of the resource. - * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -141,7 +143,9 @@ public void setId(String id) { this.id = id; } - /** Return true if this Resource object is equal to o. */ + /** + * Return true if this Resource object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -151,9 +155,9 @@ public boolean equals(Object o) { return false; } Resource resource = (Resource) o; - return Objects.equals(this.balancePlatform, resource.balancePlatform) - && Objects.equals(this.creationDate, resource.creationDate) - && Objects.equals(this.id, resource.id); + return Objects.equals(this.balancePlatform, resource.balancePlatform) && + Objects.equals(this.creationDate, resource.creationDate) && + Objects.equals(this.id, resource.id); } @Override @@ -173,7 +177,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,7 +187,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Resource given an JSON string * * @param jsonString JSON string @@ -192,12 +197,11 @@ private String toIndentedString(Object o) { public static Resource fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Resource.class); } - - /** - * Convert an instance of Resource to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Resource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/ResourceReference.java b/src/main/java/com/adyen/model/transactionwebhooks/ResourceReference.java index da124b0c4..d71ad181e 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/ResourceReference.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/ResourceReference.java @@ -2,27 +2,37 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transactionwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ResourceReference */ + +/** + * ResourceReference + */ @JsonPropertyOrder({ ResourceReference.JSON_PROPERTY_DESCRIPTION, ResourceReference.JSON_PROPERTY_ID, ResourceReference.JSON_PROPERTY_REFERENCE }) + public class ResourceReference { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -33,7 +43,8 @@ public class ResourceReference { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public ResourceReference() {} + public ResourceReference() { + } /** * The description of the resource. @@ -48,7 +59,6 @@ public ResourceReference description(String description) { /** * The description of the resource. - * * @return description The description of the resource. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -81,7 +91,6 @@ public ResourceReference id(String id) { /** * The unique identifier of the resource. - * * @return id The unique identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -114,7 +123,6 @@ public ResourceReference reference(String reference) { /** * The reference for the resource. - * * @return reference The reference for the resource. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -134,7 +142,9 @@ public void setReference(String reference) { this.reference = reference; } - /** Return true if this ResourceReference object is equal to o. */ + /** + * Return true if this ResourceReference object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,9 +154,9 @@ public boolean equals(Object o) { return false; } ResourceReference resourceReference = (ResourceReference) o; - return Objects.equals(this.description, resourceReference.description) - && Objects.equals(this.id, resourceReference.id) - && Objects.equals(this.reference, resourceReference.reference); + return Objects.equals(this.description, resourceReference.description) && + Objects.equals(this.id, resourceReference.id) && + Objects.equals(this.reference, resourceReference.reference); } @Override @@ -166,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResourceReference given an JSON string * * @param jsonString JSON string @@ -185,12 +196,11 @@ private String toIndentedString(Object o) { public static ResourceReference fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResourceReference.class); } - - /** - * Convert an instance of ResourceReference to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResourceReference to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/ThreeDSecure.java b/src/main/java/com/adyen/model/transactionwebhooks/ThreeDSecure.java index 1754e5771..56385b16b 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/ThreeDSecure.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/ThreeDSecure.java @@ -2,28 +2,41 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transactionwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ThreeDSecure */ -@JsonPropertyOrder({ThreeDSecure.JSON_PROPERTY_ACS_TRANSACTION_ID}) + +/** + * ThreeDSecure + */ +@JsonPropertyOrder({ + ThreeDSecure.JSON_PROPERTY_ACS_TRANSACTION_ID +}) + public class ThreeDSecure { public static final String JSON_PROPERTY_ACS_TRANSACTION_ID = "acsTransactionId"; private String acsTransactionId; - public ThreeDSecure() {} + public ThreeDSecure() { + } /** * The transaction identifier for the Access Control Server @@ -38,7 +51,6 @@ public ThreeDSecure acsTransactionId(String acsTransactionId) { /** * The transaction identifier for the Access Control Server - * * @return acsTransactionId The transaction identifier for the Access Control Server */ @JsonProperty(JSON_PROPERTY_ACS_TRANSACTION_ID) @@ -58,7 +70,9 @@ public void setAcsTransactionId(String acsTransactionId) { this.acsTransactionId = acsTransactionId; } - /** Return true if this ThreeDSecure object is equal to o. */ + /** + * Return true if this ThreeDSecure object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,7 +110,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ThreeDSecure given an JSON string * * @param jsonString JSON string @@ -105,12 +120,11 @@ private String toIndentedString(Object o) { public static ThreeDSecure fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDSecure.class); } - - /** - * Convert an instance of ThreeDSecure to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ThreeDSecure to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/Transaction.java b/src/main/java/com/adyen/model/transactionwebhooks/Transaction.java index e583a0cdc..c8683c342 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/Transaction.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/Transaction.java @@ -2,27 +2,36 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transactionwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transactionwebhooks.Amount; +import com.adyen.model.transactionwebhooks.PaymentInstrument; +import com.adyen.model.transactionwebhooks.ResourceReference; +import com.adyen.model.transactionwebhooks.TransferView; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** Transaction */ +/** + * Transaction + */ @JsonPropertyOrder({ Transaction.JSON_PROPERTY_ACCOUNT_HOLDER, Transaction.JSON_PROPERTY_AMOUNT, @@ -38,6 +47,7 @@ Transaction.JSON_PROPERTY_TRANSFER, Transaction.JSON_PROPERTY_VALUE_DATE }) + public class Transaction { public static final String JSON_PROPERTY_ACCOUNT_HOLDER = "accountHolder"; private ResourceReference accountHolder; @@ -70,10 +80,10 @@ public class Transaction { private String referenceForBeneficiary; /** - * The status of the transaction. Possible values: * **pending**: The transaction is still - * pending. * **booked**: The transaction has been booked to the balance account. + * The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. */ public enum StatusEnum { + BOOKED(String.valueOf("booked")), PENDING(String.valueOf("pending")); @@ -83,7 +93,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -104,11 +114,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -122,12 +128,13 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUE_DATE = "valueDate"; private OffsetDateTime valueDate; - public Transaction() {} + public Transaction() { + } /** * accountHolder * - * @param accountHolder + * @param accountHolder * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction accountHolder(ResourceReference accountHolder) { @@ -137,8 +144,7 @@ public Transaction accountHolder(ResourceReference accountHolder) { /** * Get accountHolder - * - * @return accountHolder + * @return accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -149,7 +155,7 @@ public ResourceReference getAccountHolder() { /** * accountHolder * - * @param accountHolder + * @param accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,7 +166,7 @@ public void setAccountHolder(ResourceReference accountHolder) { /** * amount * - * @param amount + * @param amount * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction amount(Amount amount) { @@ -170,8 +176,7 @@ public Transaction amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,7 +187,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,7 +198,7 @@ public void setAmount(Amount amount) { /** * balanceAccount * - * @param balanceAccount + * @param balanceAccount * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction balanceAccount(ResourceReference balanceAccount) { @@ -203,8 +208,7 @@ public Transaction balanceAccount(ResourceReference balanceAccount) { /** * Get balanceAccount - * - * @return balanceAccount + * @return balanceAccount */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -215,7 +219,7 @@ public ResourceReference getBalanceAccount() { /** * balanceAccount * - * @param balanceAccount + * @param balanceAccount */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -236,7 +240,6 @@ public Transaction balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. - * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -269,7 +272,6 @@ public Transaction bookingDate(OffsetDateTime bookingDate) { /** * The date the transaction was booked into the balance account. - * * @return bookingDate The date the transaction was booked into the balance account. */ @JsonProperty(JSON_PROPERTY_BOOKING_DATE) @@ -290,11 +292,9 @@ public void setBookingDate(OffsetDateTime bookingDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction creationDate(OffsetDateTime creationDate) { @@ -303,11 +303,8 @@ public Transaction creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. - * - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -316,11 +313,9 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -341,7 +336,6 @@ public Transaction description(String description) { /** * The `description` from the `/transfers` request. - * * @return description The `description` from the `/transfers` request. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -374,7 +368,6 @@ public Transaction id(String id) { /** * The unique identifier of the transaction. - * * @return id The unique identifier of the transaction. */ @JsonProperty(JSON_PROPERTY_ID) @@ -397,7 +390,7 @@ public void setId(String id) { /** * paymentInstrument * - * @param paymentInstrument + * @param paymentInstrument * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction paymentInstrument(PaymentInstrument paymentInstrument) { @@ -407,8 +400,7 @@ public Transaction paymentInstrument(PaymentInstrument paymentInstrument) { /** * Get paymentInstrument - * - * @return paymentInstrument + * @return paymentInstrument */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -419,7 +411,7 @@ public PaymentInstrument getPaymentInstrument() { /** * paymentInstrument * - * @param paymentInstrument + * @param paymentInstrument */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -428,18 +420,9 @@ public void setPaymentInstrument(PaymentInstrument paymentInstrument) { } /** - * The reference sent to or received from the counterparty. * For outgoing funds, this is the - * [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) - * from the - * [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) - * request. * For incoming funds, this is the reference from the sender. + * The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender. * - * @param referenceForBeneficiary The reference sent to or received from the counterparty. * For - * outgoing funds, this is the - * [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) - * from the - * [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) - * request. * For incoming funds, this is the reference from the sender. + * @param referenceForBeneficiary The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender. * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction referenceForBeneficiary(String referenceForBeneficiary) { @@ -448,18 +431,8 @@ public Transaction referenceForBeneficiary(String referenceForBeneficiary) { } /** - * The reference sent to or received from the counterparty. * For outgoing funds, this is the - * [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) - * from the - * [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) - * request. * For incoming funds, this is the reference from the sender. - * - * @return referenceForBeneficiary The reference sent to or received from the counterparty. * For - * outgoing funds, this is the - * [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) - * from the - * [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) - * request. * For incoming funds, this is the reference from the sender. + * The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender. + * @return referenceForBeneficiary The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -468,18 +441,9 @@ public String getReferenceForBeneficiary() { } /** - * The reference sent to or received from the counterparty. * For outgoing funds, this is the - * [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) - * from the - * [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) - * request. * For incoming funds, this is the reference from the sender. + * The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender. * - * @param referenceForBeneficiary The reference sent to or received from the counterparty. * For - * outgoing funds, this is the - * [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) - * from the - * [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) - * request. * For incoming funds, this is the reference from the sender. + * @param referenceForBeneficiary The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -488,11 +452,9 @@ public void setReferenceForBeneficiary(String referenceForBeneficiary) { } /** - * The status of the transaction. Possible values: * **pending**: The transaction is still - * pending. * **booked**: The transaction has been booked to the balance account. + * The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. * - * @param status The status of the transaction. Possible values: * **pending**: The transaction is - * still pending. * **booked**: The transaction has been booked to the balance account. + * @param status The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction status(StatusEnum status) { @@ -501,11 +463,8 @@ public Transaction status(StatusEnum status) { } /** - * The status of the transaction. Possible values: * **pending**: The transaction is still - * pending. * **booked**: The transaction has been booked to the balance account. - * - * @return status The status of the transaction. Possible values: * **pending**: The transaction - * is still pending. * **booked**: The transaction has been booked to the balance account. + * The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. + * @return status The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -514,11 +473,9 @@ public StatusEnum getStatus() { } /** - * The status of the transaction. Possible values: * **pending**: The transaction is still - * pending. * **booked**: The transaction has been booked to the balance account. + * The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. * - * @param status The status of the transaction. Possible values: * **pending**: The transaction is - * still pending. * **booked**: The transaction has been booked to the balance account. + * @param status The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -529,7 +486,7 @@ public void setStatus(StatusEnum status) { /** * transfer * - * @param transfer + * @param transfer * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction transfer(TransferView transfer) { @@ -539,8 +496,7 @@ public Transaction transfer(TransferView transfer) { /** * Get transfer - * - * @return transfer + * @return transfer */ @JsonProperty(JSON_PROPERTY_TRANSFER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -551,7 +507,7 @@ public TransferView getTransfer() { /** * transfer * - * @param transfer + * @param transfer */ @JsonProperty(JSON_PROPERTY_TRANSFER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -572,7 +528,6 @@ public Transaction valueDate(OffsetDateTime valueDate) { /** * The date the transfer amount becomes available in the balance account. - * * @return valueDate The date the transfer amount becomes available in the balance account. */ @JsonProperty(JSON_PROPERTY_VALUE_DATE) @@ -592,7 +547,9 @@ public void setValueDate(OffsetDateTime valueDate) { this.valueDate = valueDate; } - /** Return true if this Transaction object is equal to o. */ + /** + * Return true if this Transaction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -602,37 +559,24 @@ public boolean equals(Object o) { return false; } Transaction transaction = (Transaction) o; - return Objects.equals(this.accountHolder, transaction.accountHolder) - && Objects.equals(this.amount, transaction.amount) - && Objects.equals(this.balanceAccount, transaction.balanceAccount) - && Objects.equals(this.balancePlatform, transaction.balancePlatform) - && Objects.equals(this.bookingDate, transaction.bookingDate) - && Objects.equals(this.creationDate, transaction.creationDate) - && Objects.equals(this.description, transaction.description) - && Objects.equals(this.id, transaction.id) - && Objects.equals(this.paymentInstrument, transaction.paymentInstrument) - && Objects.equals(this.referenceForBeneficiary, transaction.referenceForBeneficiary) - && Objects.equals(this.status, transaction.status) - && Objects.equals(this.transfer, transaction.transfer) - && Objects.equals(this.valueDate, transaction.valueDate); + return Objects.equals(this.accountHolder, transaction.accountHolder) && + Objects.equals(this.amount, transaction.amount) && + Objects.equals(this.balanceAccount, transaction.balanceAccount) && + Objects.equals(this.balancePlatform, transaction.balancePlatform) && + Objects.equals(this.bookingDate, transaction.bookingDate) && + Objects.equals(this.creationDate, transaction.creationDate) && + Objects.equals(this.description, transaction.description) && + Objects.equals(this.id, transaction.id) && + Objects.equals(this.paymentInstrument, transaction.paymentInstrument) && + Objects.equals(this.referenceForBeneficiary, transaction.referenceForBeneficiary) && + Objects.equals(this.status, transaction.status) && + Objects.equals(this.transfer, transaction.transfer) && + Objects.equals(this.valueDate, transaction.valueDate); } @Override public int hashCode() { - return Objects.hash( - accountHolder, - amount, - balanceAccount, - balancePlatform, - bookingDate, - creationDate, - description, - id, - paymentInstrument, - referenceForBeneficiary, - status, - transfer, - valueDate); + return Objects.hash(accountHolder, amount, balanceAccount, balancePlatform, bookingDate, creationDate, description, id, paymentInstrument, referenceForBeneficiary, status, transfer, valueDate); } @Override @@ -648,9 +592,7 @@ public String toString() { sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" paymentInstrument: ").append(toIndentedString(paymentInstrument)).append("\n"); - sb.append(" referenceForBeneficiary: ") - .append(toIndentedString(referenceForBeneficiary)) - .append("\n"); + sb.append(" referenceForBeneficiary: ").append(toIndentedString(referenceForBeneficiary)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" transfer: ").append(toIndentedString(transfer)).append("\n"); sb.append(" valueDate: ").append(toIndentedString(valueDate)).append("\n"); @@ -659,7 +601,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -668,7 +611,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Transaction given an JSON string * * @param jsonString JSON string @@ -678,12 +621,11 @@ private String toIndentedString(Object o) { public static Transaction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Transaction.class); } - - /** - * Convert an instance of Transaction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Transaction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/TransactionNotificationRequestV4.java b/src/main/java/com/adyen/model/transactionwebhooks/TransactionNotificationRequestV4.java index 0caf28581..31c3f9e7c 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/TransactionNotificationRequestV4.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/TransactionNotificationRequestV4.java @@ -2,33 +2,40 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transactionwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transactionwebhooks.Transaction; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** TransactionNotificationRequestV4 */ + +/** + * TransactionNotificationRequestV4 + */ @JsonPropertyOrder({ TransactionNotificationRequestV4.JSON_PROPERTY_DATA, TransactionNotificationRequestV4.JSON_PROPERTY_ENVIRONMENT, TransactionNotificationRequestV4.JSON_PROPERTY_TIMESTAMP, TransactionNotificationRequestV4.JSON_PROPERTY_TYPE }) + public class TransactionNotificationRequestV4 { public static final String JSON_PROPERTY_DATA = "data"; private Transaction data; @@ -39,8 +46,11 @@ public class TransactionNotificationRequestV4 { public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; private OffsetDateTime timestamp; - /** Type of the webhook. */ + /** + * Type of the webhook. + */ public enum TypeEnum { + BALANCEPLATFORM_TRANSACTION_CREATED(String.valueOf("balancePlatform.transaction.created")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +58,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,11 +79,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -81,14 +87,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public TransactionNotificationRequestV4() {} + public TransactionNotificationRequestV4() { + } /** * data * - * @param data - * @return the current {@code TransactionNotificationRequestV4} instance, allowing for method - * chaining + * @param data + * @return the current {@code TransactionNotificationRequestV4} instance, allowing for method chaining */ public TransactionNotificationRequestV4 data(Transaction data) { this.data = data; @@ -97,8 +103,7 @@ public TransactionNotificationRequestV4 data(Transaction data) { /** * Get data - * - * @return data + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -109,7 +114,7 @@ public Transaction getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,12 +123,10 @@ public void setData(Transaction data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. - * @return the current {@code TransactionNotificationRequestV4} instance, allowing for method - * chaining + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @return the current {@code TransactionNotificationRequestV4} instance, allowing for method chaining */ public TransactionNotificationRequestV4 environment(String environment) { this.environment = environment; @@ -131,10 +134,8 @@ public TransactionNotificationRequestV4 environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * - * @return environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,10 +144,9 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,8 +158,7 @@ public void setEnvironment(String environment) { * When the event was queued. * * @param timestamp When the event was queued. - * @return the current {@code TransactionNotificationRequestV4} instance, allowing for method - * chaining + * @return the current {@code TransactionNotificationRequestV4} instance, allowing for method chaining */ public TransactionNotificationRequestV4 timestamp(OffsetDateTime timestamp) { this.timestamp = timestamp; @@ -168,7 +167,6 @@ public TransactionNotificationRequestV4 timestamp(OffsetDateTime timestamp) { /** * When the event was queued. - * * @return timestamp When the event was queued. */ @JsonProperty(JSON_PROPERTY_TIMESTAMP) @@ -192,8 +190,7 @@ public void setTimestamp(OffsetDateTime timestamp) { * Type of the webhook. * * @param type Type of the webhook. - * @return the current {@code TransactionNotificationRequestV4} instance, allowing for method - * chaining + * @return the current {@code TransactionNotificationRequestV4} instance, allowing for method chaining */ public TransactionNotificationRequestV4 type(TypeEnum type) { this.type = type; @@ -202,7 +199,6 @@ public TransactionNotificationRequestV4 type(TypeEnum type) { /** * Type of the webhook. - * * @return type Type of the webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -222,7 +218,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this TransactionNotificationRequestV4 object is equal to o. */ + /** + * Return true if this TransactionNotificationRequestV4 object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -231,12 +229,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TransactionNotificationRequestV4 transactionNotificationRequestV4 = - (TransactionNotificationRequestV4) o; - return Objects.equals(this.data, transactionNotificationRequestV4.data) - && Objects.equals(this.environment, transactionNotificationRequestV4.environment) - && Objects.equals(this.timestamp, transactionNotificationRequestV4.timestamp) - && Objects.equals(this.type, transactionNotificationRequestV4.type); + TransactionNotificationRequestV4 transactionNotificationRequestV4 = (TransactionNotificationRequestV4) o; + return Objects.equals(this.data, transactionNotificationRequestV4.data) && + Objects.equals(this.environment, transactionNotificationRequestV4.environment) && + Objects.equals(this.timestamp, transactionNotificationRequestV4.timestamp) && + Objects.equals(this.type, transactionNotificationRequestV4.type); } @Override @@ -257,7 +254,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -266,24 +264,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransactionNotificationRequestV4 given an JSON string * * @param jsonString JSON string * @return An instance of TransactionNotificationRequestV4 - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionNotificationRequestV4 + * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionNotificationRequestV4 */ - public static TransactionNotificationRequestV4 fromJson(String jsonString) - throws JsonProcessingException { + public static TransactionNotificationRequestV4 fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionNotificationRequestV4.class); } - - /** - * Convert an instance of TransactionNotificationRequestV4 to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransactionNotificationRequestV4 to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/TransactionWebhooksHandler.java b/src/main/java/com/adyen/model/transactionwebhooks/TransactionWebhooksHandler.java index 082072fa5..ad00b0153 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/TransactionWebhooksHandler.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/TransactionWebhooksHandler.java @@ -2,7 +2,7 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,63 +16,63 @@ /** * Handler for processing TransactionWebhooks. - * - *

This class provides functionality to deserialize the payload of TransactionWebhooks events. + *

+ * This class provides functionality to deserialize the payload of TransactionWebhooks events. */ public class TransactionWebhooksHandler { - private static final Logger LOG = Logger.getLogger(TransactionWebhooksHandler.class.getName()); + private static final Logger LOG = Logger.getLogger(TransactionWebhooksHandler.class.getName()); - private final String payload; + private final String payload; - /** - * Constructs a new handler for the given webhook payload - * - * @param payload the raw JSON payload from the webhook - */ - public TransactionWebhooksHandler(String payload) { - this.payload = payload; - } + /** + * Constructs a new handler for the given webhook payload + * + * @param payload the raw JSON payload from the webhook + */ + public TransactionWebhooksHandler(String payload) { + this.payload = payload; + } - /** - * Attempts to deserialize the webhook payload into a TransactionNotificationRequestV4 - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getTransactionNotificationRequestV4() { + /** + * Attempts to deserialize the webhook payload into a TransactionNotificationRequestV4 + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getTransactionNotificationRequestV4() { - var optionalTransactionNotificationRequestV4 = - getOptionalField(TransactionNotificationRequestV4.class); + var optionalTransactionNotificationRequestV4 = getOptionalField(TransactionNotificationRequestV4.class); - if (optionalTransactionNotificationRequestV4.isPresent()) { - // verify event type - for (var value : TransactionNotificationRequestV4.TypeEnum.values()) { - if (value.equals(optionalTransactionNotificationRequestV4.get().getType())) { - // found matching event type - return optionalTransactionNotificationRequestV4; + if(optionalTransactionNotificationRequestV4.isPresent()) { + // verify event type + for (var value : TransactionNotificationRequestV4.TypeEnum.values()) { + if (value.equals(optionalTransactionNotificationRequestV4.get().getType())) { + // found matching event type + return optionalTransactionNotificationRequestV4; + } + } } - } - } - return Optional.empty(); - } + return Optional.empty(); + } - /** - * Deserializes the payload into the specified class type. - * - * @param clazz the class to deserialize into - * @param the type of the class - * @return an Optional containing the deserialized object, or empty if an error occurs - */ - private Optional getOptionalField(Class clazz) { - try { - T val = JSON.getMapper().readValue(payload, clazz); - return Optional.ofNullable(val); - } catch (Exception e) { - // an error has occurred during deserialization (object not found, deserialization error) - LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); - LOG.warning("Deserialization error: " + e.getMessage()); - return Optional.empty(); + /** + * Deserializes the payload into the specified class type. + * + * @param clazz the class to deserialize into + * @param the type of the class + * @return an Optional containing the deserialized object, or empty if an error occurs + */ + private Optional getOptionalField(Class clazz) { + try { + T val = JSON.getMapper().readValue(payload, clazz); + return Optional.ofNullable(val); + } catch (Exception e) { + // an error has occurred during deserialization (object not found, deserialization error) + LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); + LOG.warning("Deserialization error: " + e.getMessage()); + return Optional.empty(); + } } - } -} + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/transactionwebhooks/TransferNotificationValidationFact.java b/src/main/java/com/adyen/model/transactionwebhooks/TransferNotificationValidationFact.java index f12636eac..03030dda2 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/TransferNotificationValidationFact.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/TransferNotificationValidationFact.java @@ -2,26 +2,36 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transactionwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TransferNotificationValidationFact */ + +/** + * TransferNotificationValidationFact + */ @JsonPropertyOrder({ TransferNotificationValidationFact.JSON_PROPERTY_RESULT, TransferNotificationValidationFact.JSON_PROPERTY_TYPE }) + public class TransferNotificationValidationFact { public static final String JSON_PROPERTY_RESULT = "result"; private String result; @@ -29,14 +39,14 @@ public class TransferNotificationValidationFact { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public TransferNotificationValidationFact() {} + public TransferNotificationValidationFact() { + } /** * The evaluation result of the validation fact. * * @param result The evaluation result of the validation fact. - * @return the current {@code TransferNotificationValidationFact} instance, allowing for method - * chaining + * @return the current {@code TransferNotificationValidationFact} instance, allowing for method chaining */ public TransferNotificationValidationFact result(String result) { this.result = result; @@ -45,7 +55,6 @@ public TransferNotificationValidationFact result(String result) { /** * The evaluation result of the validation fact. - * * @return result The evaluation result of the validation fact. */ @JsonProperty(JSON_PROPERTY_RESULT) @@ -69,8 +78,7 @@ public void setResult(String result) { * The type of the validation fact. * * @param type The type of the validation fact. - * @return the current {@code TransferNotificationValidationFact} instance, allowing for method - * chaining + * @return the current {@code TransferNotificationValidationFact} instance, allowing for method chaining */ public TransferNotificationValidationFact type(String type) { this.type = type; @@ -79,7 +87,6 @@ public TransferNotificationValidationFact type(String type) { /** * The type of the validation fact. - * * @return type The type of the validation fact. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -99,7 +106,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this TransferNotificationValidationFact object is equal to o. */ + /** + * Return true if this TransferNotificationValidationFact object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -108,10 +117,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TransferNotificationValidationFact transferNotificationValidationFact = - (TransferNotificationValidationFact) o; - return Objects.equals(this.result, transferNotificationValidationFact.result) - && Objects.equals(this.type, transferNotificationValidationFact.type); + TransferNotificationValidationFact transferNotificationValidationFact = (TransferNotificationValidationFact) o; + return Objects.equals(this.result, transferNotificationValidationFact.result) && + Objects.equals(this.type, transferNotificationValidationFact.type); } @Override @@ -130,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -139,24 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransferNotificationValidationFact given an JSON string * * @param jsonString JSON string * @return An instance of TransferNotificationValidationFact - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransferNotificationValidationFact + * @throws JsonProcessingException if the JSON string is invalid with respect to TransferNotificationValidationFact */ - public static TransferNotificationValidationFact fromJson(String jsonString) - throws JsonProcessingException { + public static TransferNotificationValidationFact fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferNotificationValidationFact.class); } - - /** - * Convert an instance of TransferNotificationValidationFact to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransferNotificationValidationFact to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/TransferView.java b/src/main/java/com/adyen/model/transactionwebhooks/TransferView.java index dfb76fec0..c0d49f592 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/TransferView.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/TransferView.java @@ -2,27 +2,38 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transactionwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transactionwebhooks.TransferViewCategoryData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TransferView */ + +/** + * TransferView + */ @JsonPropertyOrder({ TransferView.JSON_PROPERTY_CATEGORY_DATA, TransferView.JSON_PROPERTY_ID, TransferView.JSON_PROPERTY_REFERENCE }) + public class TransferView { public static final String JSON_PROPERTY_CATEGORY_DATA = "categoryData"; private TransferViewCategoryData categoryData; @@ -33,12 +44,13 @@ public class TransferView { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public TransferView() {} + public TransferView() { + } /** * categoryData * - * @param categoryData + * @param categoryData * @return the current {@code TransferView} instance, allowing for method chaining */ public TransferView categoryData(TransferViewCategoryData categoryData) { @@ -48,8 +60,7 @@ public TransferView categoryData(TransferViewCategoryData categoryData) { /** * Get categoryData - * - * @return categoryData + * @return categoryData */ @JsonProperty(JSON_PROPERTY_CATEGORY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,7 +71,7 @@ public TransferViewCategoryData getCategoryData() { /** * categoryData * - * @param categoryData + * @param categoryData */ @JsonProperty(JSON_PROPERTY_CATEGORY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -81,7 +92,6 @@ public TransferView id(String id) { /** * The ID of the resource. - * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -102,15 +112,9 @@ public void setId(String id) { } /** - * The - * [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) - * from the `/transfers` request. If you haven't provided any, Adyen generates a - * unique reference. + * The [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) from the `/transfers` request. If you haven't provided any, Adyen generates a unique reference. * - * @param reference The - * [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) - * from the `/transfers` request. If you haven't provided any, Adyen generates a - * unique reference. + * @param reference The [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) from the `/transfers` request. If you haven't provided any, Adyen generates a unique reference. * @return the current {@code TransferView} instance, allowing for method chaining */ public TransferView reference(String reference) { @@ -119,15 +123,8 @@ public TransferView reference(String reference) { } /** - * The - * [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) - * from the `/transfers` request. If you haven't provided any, Adyen generates a - * unique reference. - * - * @return reference The - * [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) - * from the `/transfers` request. If you haven't provided any, Adyen generates a - * unique reference. + * The [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) from the `/transfers` request. If you haven't provided any, Adyen generates a unique reference. + * @return reference The [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) from the `/transfers` request. If you haven't provided any, Adyen generates a unique reference. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,15 +133,9 @@ public String getReference() { } /** - * The - * [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) - * from the `/transfers` request. If you haven't provided any, Adyen generates a - * unique reference. + * The [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) from the `/transfers` request. If you haven't provided any, Adyen generates a unique reference. * - * @param reference The - * [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) - * from the `/transfers` request. If you haven't provided any, Adyen generates a - * unique reference. + * @param reference The [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) from the `/transfers` request. If you haven't provided any, Adyen generates a unique reference. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,7 +143,9 @@ public void setReference(String reference) { this.reference = reference; } - /** Return true if this TransferView object is equal to o. */ + /** + * Return true if this TransferView object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -162,9 +155,9 @@ public boolean equals(Object o) { return false; } TransferView transferView = (TransferView) o; - return Objects.equals(this.categoryData, transferView.categoryData) - && Objects.equals(this.id, transferView.id) - && Objects.equals(this.reference, transferView.reference); + return Objects.equals(this.categoryData, transferView.categoryData) && + Objects.equals(this.id, transferView.id) && + Objects.equals(this.reference, transferView.reference); } @Override @@ -184,7 +177,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -193,7 +187,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransferView given an JSON string * * @param jsonString JSON string @@ -203,12 +197,11 @@ private String toIndentedString(Object o) { public static TransferView fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferView.class); } - - /** - * Convert an instance of TransferView to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransferView to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/TransferViewCategoryData.java b/src/main/java/com/adyen/model/transactionwebhooks/TransferViewCategoryData.java index 5773a5ecb..06962fc99 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/TransferViewCategoryData.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/TransferViewCategoryData.java @@ -2,19 +2,52 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transactionwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transactionwebhooks.BankCategoryData; +import com.adyen.model.transactionwebhooks.InternalCategoryData; +import com.adyen.model.transactionwebhooks.IssuedCard; +import com.adyen.model.transactionwebhooks.PlatformPayment; +import com.adyen.model.transactionwebhooks.RelayedAuthorisationData; +import com.adyen.model.transactionwebhooks.ThreeDSecure; +import com.adyen.model.transactionwebhooks.TransferNotificationValidationFact; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + +import com.fasterxml.jackson.core.type.TypeReference; + +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.Response; +import java.io.IOException; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; + import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; +import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -24,326 +57,308 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import jakarta.ws.rs.core.GenericType; -import java.io.IOException; -import java.util.*; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashSet; -import java.util.logging.Level; -import java.util.logging.Logger; + @JsonDeserialize(using = TransferViewCategoryData.TransferViewCategoryDataDeserializer.class) @JsonSerialize(using = TransferViewCategoryData.TransferViewCategoryDataSerializer.class) public class TransferViewCategoryData extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(TransferViewCategoryData.class.getName()); + private static final Logger log = Logger.getLogger(TransferViewCategoryData.class.getName()); + + public static class TransferViewCategoryDataSerializer extends StdSerializer { + public TransferViewCategoryDataSerializer(Class t) { + super(t); + } - public static class TransferViewCategoryDataSerializer - extends StdSerializer { - public TransferViewCategoryDataSerializer(Class t) { - super(t); + public TransferViewCategoryDataSerializer() { + this(null); + } + + @Override + public void serialize(TransferViewCategoryData value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); + } } - public TransferViewCategoryDataSerializer() { - this(null); + public static class TransferViewCategoryDataDeserializer extends StdDeserializer { + public TransferViewCategoryDataDeserializer() { + this(TransferViewCategoryData.class); + } + + public TransferViewCategoryDataDeserializer(Class vc) { + super(vc); + } + + @Override + public TransferViewCategoryData deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize BankCategoryData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(BankCategoryData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(BankCategoryData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'BankCategoryData'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'BankCategoryData'", e); + } + + // deserialize InternalCategoryData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(InternalCategoryData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(InternalCategoryData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'InternalCategoryData'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'InternalCategoryData'", e); + } + + // deserialize IssuedCard + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(IssuedCard.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(IssuedCard.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'IssuedCard'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'IssuedCard'", e); + } + + // deserialize PlatformPayment + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(PlatformPayment.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PlatformPayment.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PlatformPayment'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PlatformPayment'", e); + } + + if (match == 1) { + TransferViewCategoryData ret = new TransferViewCategoryData(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException(String.format("Failed deserialization for TransferViewCategoryData: %d classes match result, expected 1", match)); + } + + /** + * Handle deserialization of the 'null' value. + */ + @Override + public TransferViewCategoryData getNullValue(DeserializationContext ctxt) throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "TransferViewCategoryData cannot be null"); + } } - @Override - public void serialize( - TransferViewCategoryData value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public TransferViewCategoryData() { + super("oneOf", Boolean.FALSE); + } + + public TransferViewCategoryData(BankCategoryData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferViewCategoryData(InternalCategoryData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferViewCategoryData(IssuedCard o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferViewCategoryData(PlatformPayment o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } - } - public static class TransferViewCategoryDataDeserializer - extends StdDeserializer { - public TransferViewCategoryDataDeserializer() { - this(TransferViewCategoryData.class); + static { + schemas.put("BankCategoryData", new GenericType() { + }); + schemas.put("InternalCategoryData", new GenericType() { + }); + schemas.put("IssuedCard", new GenericType() { + }); + schemas.put("PlatformPayment", new GenericType() { + }); + JSON.registerDescendants(TransferViewCategoryData.class, Collections.unmodifiableMap(schemas)); } - public TransferViewCategoryDataDeserializer(Class vc) { - super(vc); + @Override + public Map> getSchemas() { + return TransferViewCategoryData.schemas; } + /** + * Set the instance that matches the oneOf child schema, check + * the instance parameter is valid against the oneOf child schemas: + * BankCategoryData, InternalCategoryData, IssuedCard, PlatformPayment + * + * It could be an instance of the 'oneOf' schemas. + * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). + */ @Override - public TransferViewCategoryData deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize BankCategoryData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(BankCategoryData.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(BankCategoryData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'BankCategoryData'"); - } + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(BankCategoryData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'BankCategoryData'", e); - } - - // deserialize InternalCategoryData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(InternalCategoryData.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(InternalCategoryData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'InternalCategoryData'"); - } + + if (JSON.isInstanceOf(InternalCategoryData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'InternalCategoryData'", e); - } - - // deserialize IssuedCard - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(IssuedCard.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(IssuedCard.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'IssuedCard'"); - } + + if (JSON.isInstanceOf(IssuedCard.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'IssuedCard'", e); - } - - // deserialize PlatformPayment - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(PlatformPayment.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PlatformPayment.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PlatformPayment'"); - } + + if (JSON.isInstanceOf(PlatformPayment.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PlatformPayment'", e); - } - - if (match == 1) { - TransferViewCategoryData ret = new TransferViewCategoryData(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for TransferViewCategoryData: %d classes match result, expected 1", - match)); + + throw new RuntimeException("Invalid instance type. Must be BankCategoryData, InternalCategoryData, IssuedCard, PlatformPayment"); } - /** Handle deserialization of the 'null' value. */ + /** + * Get the actual instance, which can be the following: + * BankCategoryData, InternalCategoryData, IssuedCard, PlatformPayment + * + * @return The actual instance (BankCategoryData, InternalCategoryData, IssuedCard, PlatformPayment) + */ @Override - public TransferViewCategoryData getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "TransferViewCategoryData cannot be null"); + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `BankCategoryData`. If the actual instance is not `BankCategoryData`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `BankCategoryData` + * @throws ClassCastException if the instance is not `BankCategoryData` + */ + public BankCategoryData getBankCategoryData() throws ClassCastException { + return (BankCategoryData)super.getActualInstance(); } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public TransferViewCategoryData() { - super("oneOf", Boolean.FALSE); - } - - public TransferViewCategoryData(BankCategoryData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferViewCategoryData(InternalCategoryData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferViewCategoryData(IssuedCard o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferViewCategoryData(PlatformPayment o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("BankCategoryData", new GenericType() {}); - schemas.put("InternalCategoryData", new GenericType() {}); - schemas.put("IssuedCard", new GenericType() {}); - schemas.put("PlatformPayment", new GenericType() {}); - JSON.registerDescendants(TransferViewCategoryData.class, Collections.unmodifiableMap(schemas)); - } - - @Override - public Map> getSchemas() { - return TransferViewCategoryData.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: BankCategoryData, InternalCategoryData, IssuedCard, - * PlatformPayment - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a - * composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(BankCategoryData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + + /** + * Get the actual instance of `InternalCategoryData`. If the actual instance is not `InternalCategoryData`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `InternalCategoryData` + * @throws ClassCastException if the instance is not `InternalCategoryData` + */ + public InternalCategoryData getInternalCategoryData() throws ClassCastException { + return (InternalCategoryData)super.getActualInstance(); } - if (JSON.isInstanceOf(InternalCategoryData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `IssuedCard`. If the actual instance is not `IssuedCard`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `IssuedCard` + * @throws ClassCastException if the instance is not `IssuedCard` + */ + public IssuedCard getIssuedCard() throws ClassCastException { + return (IssuedCard)super.getActualInstance(); } - if (JSON.isInstanceOf(IssuedCard.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `PlatformPayment`. If the actual instance is not `PlatformPayment`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `PlatformPayment` + * @throws ClassCastException if the instance is not `PlatformPayment` + */ + public PlatformPayment getPlatformPayment() throws ClassCastException { + return (PlatformPayment)super.getActualInstance(); + } + + + /** + * Create an instance of TransferViewCategoryData given an JSON string + * + * @param jsonString JSON string + * @return An instance of TransferViewCategoryData + * @throws IOException if the JSON string is invalid with respect to TransferViewCategoryData + */ + public static TransferViewCategoryData fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, TransferViewCategoryData.class); } - if (JSON.isInstanceOf(PlatformPayment.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Convert an instance of TransferViewCategoryData to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); } - throw new RuntimeException( - "Invalid instance type. Must be BankCategoryData, InternalCategoryData, IssuedCard, PlatformPayment"); - } - - /** - * Get the actual instance, which can be the following: BankCategoryData, InternalCategoryData, - * IssuedCard, PlatformPayment - * - * @return The actual instance (BankCategoryData, InternalCategoryData, IssuedCard, - * PlatformPayment) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `BankCategoryData`. If the actual instance is not - * `BankCategoryData`, the ClassCastException will be thrown. - * - * @return The actual instance of `BankCategoryData` - * @throws ClassCastException if the instance is not `BankCategoryData` - */ - public BankCategoryData getBankCategoryData() throws ClassCastException { - return (BankCategoryData) super.getActualInstance(); - } - - /** - * Get the actual instance of `InternalCategoryData`. If the actual instance is not - * `InternalCategoryData`, the ClassCastException will be thrown. - * - * @return The actual instance of `InternalCategoryData` - * @throws ClassCastException if the instance is not `InternalCategoryData` - */ - public InternalCategoryData getInternalCategoryData() throws ClassCastException { - return (InternalCategoryData) super.getActualInstance(); - } - - /** - * Get the actual instance of `IssuedCard`. If the actual instance is not `IssuedCard`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `IssuedCard` - * @throws ClassCastException if the instance is not `IssuedCard` - */ - public IssuedCard getIssuedCard() throws ClassCastException { - return (IssuedCard) super.getActualInstance(); - } - - /** - * Get the actual instance of `PlatformPayment`. If the actual instance is not `PlatformPayment`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PlatformPayment` - * @throws ClassCastException if the instance is not `PlatformPayment` - */ - public PlatformPayment getPlatformPayment() throws ClassCastException { - return (PlatformPayment) super.getActualInstance(); - } - - /** - * Create an instance of TransferViewCategoryData given an JSON string - * - * @param jsonString JSON string - * @return An instance of TransferViewCategoryData - * @throws IOException if the JSON string is invalid with respect to TransferViewCategoryData - */ - public static TransferViewCategoryData fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, TransferViewCategoryData.class); - } - - /** - * Convert an instance of TransferViewCategoryData to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); - } } diff --git a/src/main/java/com/adyen/model/transfers/AULocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/AULocalAccountIdentification.java index 7783e05a6..ce78adcf4 100644 --- a/src/main/java/com/adyen/model/transfers/AULocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/AULocalAccountIdentification.java @@ -2,31 +2,37 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** AULocalAccountIdentification */ + +/** + * AULocalAccountIdentification + */ @JsonPropertyOrder({ AULocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, AULocalAccountIdentification.JSON_PROPERTY_BSB_CODE, AULocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class AULocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -34,8 +40,11 @@ public class AULocalAccountIdentification { public static final String JSON_PROPERTY_BSB_CODE = "bsbCode"; private String bsbCode; - /** **auLocal** */ + /** + * **auLocal** + */ public enum TypeEnum { + AULOCAL(String.valueOf("auLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -43,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -76,7 +81,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AULocalAccountIdentification() {} + public AULocalAccountIdentification() { + } /** * The bank account number, without separators or whitespace. @@ -91,7 +97,6 @@ public AULocalAccountIdentification accountNumber(String accountNumber) { /** * The bank account number, without separators or whitespace. - * * @return accountNumber The bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -112,11 +117,9 @@ public void setAccountNumber(String accountNumber) { } /** - * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), - * without separators or whitespace. + * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. * - * @param bsbCode The 6-digit [Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * @param bsbCode The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. * @return the current {@code AULocalAccountIdentification} instance, allowing for method chaining */ public AULocalAccountIdentification bsbCode(String bsbCode) { @@ -125,11 +128,8 @@ public AULocalAccountIdentification bsbCode(String bsbCode) { } /** - * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), - * without separators or whitespace. - * - * @return bsbCode The 6-digit [Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * @return bsbCode The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_BSB_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,11 +138,9 @@ public String getBsbCode() { } /** - * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), - * without separators or whitespace. + * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. * - * @param bsbCode The 6-digit [Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * @param bsbCode The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_BSB_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,7 +161,6 @@ public AULocalAccountIdentification type(TypeEnum type) { /** * **auLocal** - * * @return type **auLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -183,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this AULocalAccountIdentification object is equal to o. */ + /** + * Return true if this AULocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -193,9 +192,9 @@ public boolean equals(Object o) { return false; } AULocalAccountIdentification auLocalAccountIdentification = (AULocalAccountIdentification) o; - return Objects.equals(this.accountNumber, auLocalAccountIdentification.accountNumber) - && Objects.equals(this.bsbCode, auLocalAccountIdentification.bsbCode) - && Objects.equals(this.type, auLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, auLocalAccountIdentification.accountNumber) && + Objects.equals(this.bsbCode, auLocalAccountIdentification.bsbCode) && + Objects.equals(this.type, auLocalAccountIdentification.type); } @Override @@ -215,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,24 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AULocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of AULocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AULocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to AULocalAccountIdentification */ - public static AULocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static AULocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AULocalAccountIdentification.class); } - - /** - * Convert an instance of AULocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AULocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/transfers/AbstractOpenApiSchema.java index 05a25e27a..1538d58b3 100644 --- a/src/main/java/com/adyen/model/transfers/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/transfers/AbstractOpenApiSchema.java @@ -2,141 +2,145 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonValue; -import jakarta.ws.rs.core.GenericType; -import java.util.Map; import java.util.Objects; +import java.util.Map; +import jakarta.ws.rs.core.GenericType; -/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec + */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() { - return instance; - } - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) { - this.instance = instance; - } - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf - * schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); - } else { - return object.getActualInstance(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() {return instance;} + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) {this.instance = instance;} + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); + } else { + return object.getActualInstance(); + } + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) && + Objects.equals(this.isNullable, a.isNullable) && + Objects.equals(this.schemaType, a.schemaType); } - return o.toString().replace("\n", "\n "); - } - public boolean equals(Object o) { - if (this == o) { - return true; + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); } - if (o == null || getClass() != o.getClass()) { - return false; + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) - && Objects.equals(this.isNullable, a.isNullable) - && Objects.equals(this.schemaType, a.schemaType); - } - - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); - } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); - } -} + + + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/transfers/AdditionalBankIdentification.java b/src/main/java/com/adyen/model/transfers/AdditionalBankIdentification.java index e04fa046c..286276b7b 100644 --- a/src/main/java/com/adyen/model/transfers/AdditionalBankIdentification.java +++ b/src/main/java/com/adyen/model/transfers/AdditionalBankIdentification.java @@ -2,47 +2,45 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** AdditionalBankIdentification */ +/** + * AdditionalBankIdentification + */ @JsonPropertyOrder({ AdditionalBankIdentification.JSON_PROPERTY_CODE, AdditionalBankIdentification.JSON_PROPERTY_TYPE }) + public class AdditionalBankIdentification { public static final String JSON_PROPERTY_CODE = "code"; private String code; /** - * The type of additional bank identification, depending on the country. Possible values: * - * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * - * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. + * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. */ public enum TypeEnum { + AUBSBCODE(String.valueOf("auBsbCode")), CAROUTINGNUMBER(String.valueOf("caRoutingNumber")), @@ -56,7 +54,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -77,11 +75,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -89,7 +83,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AdditionalBankIdentification() {} + public AdditionalBankIdentification() { + } /** * The value of the additional bank identification. @@ -104,7 +99,6 @@ public AdditionalBankIdentification code(String code) { /** * The value of the additional bank identification. - * * @return code The value of the additional bank identification. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -125,27 +119,9 @@ public void setCode(String code) { } /** - * The type of additional bank identification, depending on the country. Possible values: * - * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * - * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. + * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. * - * @param type The type of additional bank identification, depending on the country. Possible - * values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * - * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. + * @param type The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. * @return the current {@code AdditionalBankIdentification} instance, allowing for method chaining */ public AdditionalBankIdentification type(TypeEnum type) { @@ -154,27 +130,8 @@ public AdditionalBankIdentification type(TypeEnum type) { } /** - * The type of additional bank identification, depending on the country. Possible values: * - * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * - * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. - * - * @return type The type of additional bank identification, depending on the country. Possible - * values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * - * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. + * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * @return type The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,27 +140,9 @@ public TypeEnum getType() { } /** - * The type of additional bank identification, depending on the country. Possible values: * - * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * - * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. + * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. * - * @param type The type of additional bank identification, depending on the country. Possible - * values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * - * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. + * @param type The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,7 +150,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this AdditionalBankIdentification object is equal to o. */ + /** + * Return true if this AdditionalBankIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -221,8 +162,8 @@ public boolean equals(Object o) { return false; } AdditionalBankIdentification additionalBankIdentification = (AdditionalBankIdentification) o; - return Objects.equals(this.code, additionalBankIdentification.code) - && Objects.equals(this.type, additionalBankIdentification.type); + return Objects.equals(this.code, additionalBankIdentification.code) && + Objects.equals(this.type, additionalBankIdentification.type); } @Override @@ -241,7 +182,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -250,24 +192,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalBankIdentification given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalBankIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalBankIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalBankIdentification */ - public static AdditionalBankIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static AdditionalBankIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalBankIdentification.class); } - - /** - * Convert an instance of AdditionalBankIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalBankIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/Address.java b/src/main/java/com/adyen/model/transfers/Address.java index 91636b973..4e56d413c 100644 --- a/src/main/java/com/adyen/model/transfers/Address.java +++ b/src/main/java/com/adyen/model/transfers/Address.java @@ -2,22 +2,31 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Address */ + +/** + * Address + */ @JsonPropertyOrder({ Address.JSON_PROPERTY_CITY, Address.JSON_PROPERTY_COUNTRY, @@ -26,6 +35,7 @@ Address.JSON_PROPERTY_POSTAL_CODE, Address.JSON_PROPERTY_STATE_OR_PROVINCE }) + public class Address { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -45,14 +55,13 @@ public class Address { public static final String JSON_PROPERTY_STATE_OR_PROVINCE = "stateOrProvince"; private String stateOrProvince; - public Address() {} + public Address() { + } /** - * The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] - * & \\ |** and Space. > Required when the `category` is **card**. + * The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. * - * @param city The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) - * : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * @param city The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. * @return the current {@code Address} instance, allowing for method chaining */ public Address city(String city) { @@ -61,11 +70,8 @@ public Address city(String city) { } /** - * The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] - * & \\ |** and Space. > Required when the `category` is **card**. - * - * @return city The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( - * ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * @return city The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. */ @JsonProperty(JSON_PROPERTY_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -74,11 +80,9 @@ public String getCity() { } /** - * The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] - * & \\ |** and Space. > Required when the `category` is **card**. + * The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. * - * @param city The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) - * : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * @param city The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. */ @JsonProperty(JSON_PROPERTY_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -89,8 +93,7 @@ public void setCity(String city) { /** * The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, or **GB**. * - * @param country The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, - * or **GB**. + * @param country The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, or **GB**. * @return the current {@code Address} instance, allowing for method chaining */ public Address country(String country) { @@ -100,9 +103,7 @@ public Address country(String country) { /** * The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, or **GB**. - * - * @return country The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, - * or **GB**. + * @return country The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, or **GB**. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,8 +114,7 @@ public String getCountry() { /** * The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, or **GB**. * - * @param country The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, - * or **GB**. + * @param country The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, or **GB**. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,12 +123,9 @@ public void setCountry(String country) { } /** - * The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° - * ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. * - * @param line1 The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - * - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the - * `category` is **card**. + * @param line1 The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. * @return the current {@code Address} instance, allowing for method chaining */ public Address line1(String line1) { @@ -137,12 +134,8 @@ public Address line1(String line1) { } /** - * The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° - * ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. - * - * @return line1 The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - * - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the - * `category` is **card**. + * The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * @return line1 The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. */ @JsonProperty(JSON_PROPERTY_LINE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,12 +144,9 @@ public String getLine1() { } /** - * The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° - * ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. * - * @param line1 The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - * - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the - * `category` is **card**. + * @param line1 The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. */ @JsonProperty(JSON_PROPERTY_LINE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -165,12 +155,9 @@ public void setLine1(String line1) { } /** - * The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ - * ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. * - * @param line2 The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - * - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the - * `category` is **card**. + * @param line2 The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. * @return the current {@code Address} instance, allowing for method chaining */ public Address line2(String line2) { @@ -179,12 +166,8 @@ public Address line2(String line2) { } /** - * The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ - * ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. - * - * @return line2 The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] - * . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the - * `category` is **card**. + * The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * @return line2 The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. */ @JsonProperty(JSON_PROPERTY_LINE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,12 +176,9 @@ public String getLine2() { } /** - * The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ - * ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. * - * @param line2 The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - * - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the - * `category` is **card**. + * @param line2 The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. */ @JsonProperty(JSON_PROPERTY_LINE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -207,13 +187,9 @@ public void setLine2(String line2) { } /** - * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an - * address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > - * Required for addresses in the US. + * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > Required for addresses in the US. * - * @param postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 - * characters for an address in all other countries. Supported characters: **[a-z] [A-Z] - * [0-9]** and Space. > Required for addresses in the US. + * @param postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > Required for addresses in the US. * @return the current {@code Address} instance, allowing for method chaining */ public Address postalCode(String postalCode) { @@ -222,13 +198,8 @@ public Address postalCode(String postalCode) { } /** - * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an - * address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > - * Required for addresses in the US. - * - * @return postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 - * characters for an address in all other countries. Supported characters: **[a-z] [A-Z] - * [0-9]** and Space. > Required for addresses in the US. + * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > Required for addresses in the US. + * @return postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > Required for addresses in the US. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,13 +208,9 @@ public String getPostalCode() { } /** - * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an - * address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > - * Required for addresses in the US. + * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > Required for addresses in the US. * - * @param postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 - * characters for an address in all other countries. Supported characters: **[a-z] [A-Z] - * [0-9]** and Space. > Required for addresses in the US. + * @param postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > Required for addresses in the US. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,11 +219,9 @@ public void setPostalCode(String postalCode) { } /** - * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. + * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in - * the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. * @return the current {@code Address} instance, allowing for method chaining */ public Address stateOrProvince(String stateOrProvince) { @@ -265,11 +230,8 @@ public Address stateOrProvince(String stateOrProvince) { } /** - * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. - * - * @return stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** - * in the US or **ON** in Canada. > Required for the US and Canada. + * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * @return stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -278,11 +240,9 @@ public String getStateOrProvince() { } /** - * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. + * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in - * the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -290,7 +250,9 @@ public void setStateOrProvince(String stateOrProvince) { this.stateOrProvince = stateOrProvince; } - /** Return true if this Address object is equal to o. */ + /** + * Return true if this Address object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -300,12 +262,12 @@ public boolean equals(Object o) { return false; } Address address = (Address) o; - return Objects.equals(this.city, address.city) - && Objects.equals(this.country, address.country) - && Objects.equals(this.line1, address.line1) - && Objects.equals(this.line2, address.line2) - && Objects.equals(this.postalCode, address.postalCode) - && Objects.equals(this.stateOrProvince, address.stateOrProvince); + return Objects.equals(this.city, address.city) && + Objects.equals(this.country, address.country) && + Objects.equals(this.line1, address.line1) && + Objects.equals(this.line2, address.line2) && + Objects.equals(this.postalCode, address.postalCode) && + Objects.equals(this.stateOrProvince, address.stateOrProvince); } @Override @@ -328,7 +290,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -337,7 +300,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Address given an JSON string * * @param jsonString JSON string @@ -347,12 +310,11 @@ private String toIndentedString(Object o) { public static Address fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Address.class); } - - /** - * Convert an instance of Address to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Address to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/Airline.java b/src/main/java/com/adyen/model/transfers/Airline.java index 6c8b03983..4bf6a1ece 100644 --- a/src/main/java/com/adyen/model/transfers/Airline.java +++ b/src/main/java/com/adyen/model/transfers/Airline.java @@ -2,25 +2,39 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.Leg; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * Airline + */ +@JsonPropertyOrder({ + Airline.JSON_PROPERTY_LEGS, + Airline.JSON_PROPERTY_TICKET_NUMBER +}) -/** Airline */ -@JsonPropertyOrder({Airline.JSON_PROPERTY_LEGS, Airline.JSON_PROPERTY_TICKET_NUMBER}) public class Airline { public static final String JSON_PROPERTY_LEGS = "legs"; private List legs; @@ -28,7 +42,8 @@ public class Airline { public static final String JSON_PROPERTY_TICKET_NUMBER = "ticketNumber"; private String ticketNumber; - public Airline() {} + public Airline() { + } /** * Details about the flight legs for this ticket. @@ -51,7 +66,6 @@ public Airline addLegsItem(Leg legsItem) { /** * Details about the flight legs for this ticket. - * * @return legs Details about the flight legs for this ticket. */ @JsonProperty(JSON_PROPERTY_LEGS) @@ -84,7 +98,6 @@ public Airline ticketNumber(String ticketNumber) { /** * The ticket's unique identifier - * * @return ticketNumber The ticket's unique identifier */ @JsonProperty(JSON_PROPERTY_TICKET_NUMBER) @@ -104,7 +117,9 @@ public void setTicketNumber(String ticketNumber) { this.ticketNumber = ticketNumber; } - /** Return true if this Airline object is equal to o. */ + /** + * Return true if this Airline object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -114,8 +129,8 @@ public boolean equals(Object o) { return false; } Airline airline = (Airline) o; - return Objects.equals(this.legs, airline.legs) - && Objects.equals(this.ticketNumber, airline.ticketNumber); + return Objects.equals(this.legs, airline.legs) && + Objects.equals(this.ticketNumber, airline.ticketNumber); } @Override @@ -134,7 +149,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -143,7 +159,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Airline given an JSON string * * @param jsonString JSON string @@ -153,12 +169,11 @@ private String toIndentedString(Object o) { public static Airline fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Airline.class); } - - /** - * Convert an instance of Airline to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Airline to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/Amount.java b/src/main/java/com/adyen/model/transfers/Amount.java index 530fab926..a8455385c 100644 --- a/src/main/java/com/adyen/model/transfers/Amount.java +++ b/src/main/java/com/adyen/model/transfers/Amount.java @@ -2,23 +2,36 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Amount */ -@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) + +/** + * Amount + */ +@JsonPropertyOrder({ + Amount.JSON_PROPERTY_CURRENCY, + Amount.JSON_PROPERTY_VALUE +}) + public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -26,14 +39,13 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() {} + public Amount() { + } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount currency(String currency) { @@ -42,11 +54,8 @@ public Amount currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -55,11 +64,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,11 +75,9 @@ public void setCurrency(String currency) { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount value(Long value) { @@ -81,11 +86,8 @@ public Amount value(Long value) { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). - * - * @return value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @return value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,11 +96,9 @@ public Long getValue() { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,7 +106,9 @@ public void setValue(Long value) { this.value = value; } - /** Return true if this Amount object is equal to o. */ + /** + * Return true if this Amount object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -116,8 +118,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) - && Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) && + Objects.equals(this.value, amount.value); } @Override @@ -136,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -155,12 +158,11 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } - - /** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/AmountAdjustment.java b/src/main/java/com/adyen/model/transfers/AmountAdjustment.java index 03b2df268..1b0c418c6 100644 --- a/src/main/java/com/adyen/model/transfers/AmountAdjustment.java +++ b/src/main/java/com/adyen/model/transfers/AmountAdjustment.java @@ -2,40 +2,47 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** AmountAdjustment */ +/** + * AmountAdjustment + */ @JsonPropertyOrder({ AmountAdjustment.JSON_PROPERTY_AMOUNT, AmountAdjustment.JSON_PROPERTY_AMOUNT_ADJUSTMENT_TYPE, AmountAdjustment.JSON_PROPERTY_BASEPOINTS }) + public class AmountAdjustment { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; /** - * The type of markup that is applied to an authorised payment. Possible values: **exchange**, - * **forexMarkup**, **authHoldReserve**, **atmMarkup**. + * The type of markup that is applied to an authorised payment. Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. */ public enum AmountAdjustmentTypeEnum { + ATMMARKUP(String.valueOf("atmMarkup")), AUTHHOLDRESERVE(String.valueOf("authHoldReserve")), @@ -49,7 +56,7 @@ public enum AmountAdjustmentTypeEnum { private String value; AmountAdjustmentTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -70,11 +77,7 @@ public static AmountAdjustmentTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AmountAdjustmentTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AmountAdjustmentTypeEnum.values())); + LOG.warning("AmountAdjustmentTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AmountAdjustmentTypeEnum.values())); return null; } } @@ -85,12 +88,13 @@ public static AmountAdjustmentTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_BASEPOINTS = "basepoints"; private Integer basepoints; - public AmountAdjustment() {} + public AmountAdjustment() { + } /** * amount * - * @param amount + * @param amount * @return the current {@code AmountAdjustment} instance, allowing for method chaining */ public AmountAdjustment amount(Amount amount) { @@ -100,8 +104,7 @@ public AmountAdjustment amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,7 +115,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,11 +124,9 @@ public void setAmount(Amount amount) { } /** - * The type of markup that is applied to an authorised payment. Possible values: **exchange**, - * **forexMarkup**, **authHoldReserve**, **atmMarkup**. + * The type of markup that is applied to an authorised payment. Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. * - * @param amountAdjustmentType The type of markup that is applied to an authorised payment. - * Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. + * @param amountAdjustmentType The type of markup that is applied to an authorised payment. Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. * @return the current {@code AmountAdjustment} instance, allowing for method chaining */ public AmountAdjustment amountAdjustmentType(AmountAdjustmentTypeEnum amountAdjustmentType) { @@ -134,11 +135,8 @@ public AmountAdjustment amountAdjustmentType(AmountAdjustmentTypeEnum amountAdju } /** - * The type of markup that is applied to an authorised payment. Possible values: **exchange**, - * **forexMarkup**, **authHoldReserve**, **atmMarkup**. - * - * @return amountAdjustmentType The type of markup that is applied to an authorised payment. - * Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. + * The type of markup that is applied to an authorised payment. Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. + * @return amountAdjustmentType The type of markup that is applied to an authorised payment. Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. */ @JsonProperty(JSON_PROPERTY_AMOUNT_ADJUSTMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,11 +145,9 @@ public AmountAdjustmentTypeEnum getAmountAdjustmentType() { } /** - * The type of markup that is applied to an authorised payment. Possible values: **exchange**, - * **forexMarkup**, **authHoldReserve**, **atmMarkup**. + * The type of markup that is applied to an authorised payment. Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. * - * @param amountAdjustmentType The type of markup that is applied to an authorised payment. - * Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. + * @param amountAdjustmentType The type of markup that is applied to an authorised payment. Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. */ @JsonProperty(JSON_PROPERTY_AMOUNT_ADJUSTMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,7 +168,6 @@ public AmountAdjustment basepoints(Integer basepoints) { /** * The basepoints associated with the applied markup. - * * @return basepoints The basepoints associated with the applied markup. */ @JsonProperty(JSON_PROPERTY_BASEPOINTS) @@ -192,7 +187,9 @@ public void setBasepoints(Integer basepoints) { this.basepoints = basepoints; } - /** Return true if this AmountAdjustment object is equal to o. */ + /** + * Return true if this AmountAdjustment object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -202,9 +199,9 @@ public boolean equals(Object o) { return false; } AmountAdjustment amountAdjustment = (AmountAdjustment) o; - return Objects.equals(this.amount, amountAdjustment.amount) - && Objects.equals(this.amountAdjustmentType, amountAdjustment.amountAdjustmentType) - && Objects.equals(this.basepoints, amountAdjustment.basepoints); + return Objects.equals(this.amount, amountAdjustment.amount) && + Objects.equals(this.amountAdjustmentType, amountAdjustment.amountAdjustmentType) && + Objects.equals(this.basepoints, amountAdjustment.basepoints); } @Override @@ -217,16 +214,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AmountAdjustment {\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append(" amountAdjustmentType: ") - .append(toIndentedString(amountAdjustmentType)) - .append("\n"); + sb.append(" amountAdjustmentType: ").append(toIndentedString(amountAdjustmentType)).append("\n"); sb.append(" basepoints: ").append(toIndentedString(basepoints)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -235,7 +231,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AmountAdjustment given an JSON string * * @param jsonString JSON string @@ -245,12 +241,11 @@ private String toIndentedString(Object o) { public static AmountAdjustment fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AmountAdjustment.class); } - - /** - * Convert an instance of AmountAdjustment to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AmountAdjustment to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/ApproveTransfersRequest.java b/src/main/java/com/adyen/model/transfers/ApproveTransfersRequest.java index a8c71d092..3b690f089 100644 --- a/src/main/java/com/adyen/model/transfers/ApproveTransfersRequest.java +++ b/src/main/java/com/adyen/model/transfers/ApproveTransfersRequest.java @@ -2,30 +2,43 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * ApproveTransfersRequest + */ +@JsonPropertyOrder({ + ApproveTransfersRequest.JSON_PROPERTY_TRANSFER_IDS +}) -/** ApproveTransfersRequest */ -@JsonPropertyOrder({ApproveTransfersRequest.JSON_PROPERTY_TRANSFER_IDS}) public class ApproveTransfersRequest { public static final String JSON_PROPERTY_TRANSFER_IDS = "transferIds"; private List transferIds; - public ApproveTransfersRequest() {} + public ApproveTransfersRequest() { + } /** * Contains the unique identifiers of the transfers that you want to approve. @@ -48,7 +61,6 @@ public ApproveTransfersRequest addTransferIdsItem(String transferIdsItem) { /** * Contains the unique identifiers of the transfers that you want to approve. - * * @return transferIds Contains the unique identifiers of the transfers that you want to approve. */ @JsonProperty(JSON_PROPERTY_TRANSFER_IDS) @@ -68,7 +80,9 @@ public void setTransferIds(List transferIds) { this.transferIds = transferIds; } - /** Return true if this ApproveTransfersRequest object is equal to o. */ + /** + * Return true if this ApproveTransfersRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -96,7 +110,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -105,23 +120,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ApproveTransfersRequest given an JSON string * * @param jsonString JSON string * @return An instance of ApproveTransfersRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ApproveTransfersRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to ApproveTransfersRequest */ public static ApproveTransfersRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ApproveTransfersRequest.class); } - - /** - * Convert an instance of ApproveTransfersRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ApproveTransfersRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/BRLocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/BRLocalAccountIdentification.java index 728d4dff6..4b26c2c5c 100644 --- a/src/main/java/com/adyen/model/transfers/BRLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/BRLocalAccountIdentification.java @@ -2,26 +2,31 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** BRLocalAccountIdentification */ + +/** + * BRLocalAccountIdentification + */ @JsonPropertyOrder({ BRLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, BRLocalAccountIdentification.JSON_PROPERTY_BANK_CODE, @@ -29,6 +34,7 @@ BRLocalAccountIdentification.JSON_PROPERTY_ISPB, BRLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class BRLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -42,8 +48,11 @@ public class BRLocalAccountIdentification { public static final String JSON_PROPERTY_ISPB = "ispb"; private String ispb; - /** **brLocal** */ + /** + * **brLocal** + */ public enum TypeEnum { + BRLOCAL(String.valueOf("brLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -51,7 +60,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -72,11 +81,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -84,7 +89,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public BRLocalAccountIdentification() {} + public BRLocalAccountIdentification() { + } /** * The bank account number, without separators or whitespace. @@ -99,7 +105,6 @@ public BRLocalAccountIdentification accountNumber(String accountNumber) { /** * The bank account number, without separators or whitespace. - * * @return accountNumber The bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -132,7 +137,6 @@ public BRLocalAccountIdentification bankCode(String bankCode) { /** * The 3-digit bank code, with leading zeros. - * * @return bankCode The 3-digit bank code, with leading zeros. */ @JsonProperty(JSON_PROPERTY_BANK_CODE) @@ -165,7 +169,6 @@ public BRLocalAccountIdentification branchNumber(String branchNumber) { /** * The bank account branch number, without separators or whitespace. - * * @return branchNumber The bank account branch number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_BRANCH_NUMBER) @@ -198,7 +201,6 @@ public BRLocalAccountIdentification ispb(String ispb) { /** * The 8-digit ISPB, with leading zeros. - * * @return ispb The 8-digit ISPB, with leading zeros. */ @JsonProperty(JSON_PROPERTY_ISPB) @@ -231,7 +233,6 @@ public BRLocalAccountIdentification type(TypeEnum type) { /** * **brLocal** - * * @return type **brLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -251,7 +252,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this BRLocalAccountIdentification object is equal to o. */ + /** + * Return true if this BRLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -261,11 +264,11 @@ public boolean equals(Object o) { return false; } BRLocalAccountIdentification brLocalAccountIdentification = (BRLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, brLocalAccountIdentification.accountNumber) - && Objects.equals(this.bankCode, brLocalAccountIdentification.bankCode) - && Objects.equals(this.branchNumber, brLocalAccountIdentification.branchNumber) - && Objects.equals(this.ispb, brLocalAccountIdentification.ispb) - && Objects.equals(this.type, brLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, brLocalAccountIdentification.accountNumber) && + Objects.equals(this.bankCode, brLocalAccountIdentification.bankCode) && + Objects.equals(this.branchNumber, brLocalAccountIdentification.branchNumber) && + Objects.equals(this.ispb, brLocalAccountIdentification.ispb) && + Objects.equals(this.type, brLocalAccountIdentification.type); } @Override @@ -287,7 +290,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -296,24 +300,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BRLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of BRLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BRLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to BRLocalAccountIdentification */ - public static BRLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static BRLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BRLocalAccountIdentification.class); } - - /** - * Convert an instance of BRLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BRLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/BalanceMutation.java b/src/main/java/com/adyen/model/transfers/BalanceMutation.java index 2514bdce2..ea06f8fe1 100644 --- a/src/main/java/com/adyen/model/transfers/BalanceMutation.java +++ b/src/main/java/com/adyen/model/transfers/BalanceMutation.java @@ -2,28 +2,38 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** BalanceMutation */ + +/** + * BalanceMutation + */ @JsonPropertyOrder({ BalanceMutation.JSON_PROPERTY_BALANCE, BalanceMutation.JSON_PROPERTY_CURRENCY, BalanceMutation.JSON_PROPERTY_RECEIVED, BalanceMutation.JSON_PROPERTY_RESERVED }) + public class BalanceMutation { public static final String JSON_PROPERTY_BALANCE = "balance"; private Long balance; @@ -37,14 +47,13 @@ public class BalanceMutation { public static final String JSON_PROPERTY_RESERVED = "reserved"; private Long reserved; - public BalanceMutation() {} + public BalanceMutation() { + } /** - * The amount in the payment's currency that is debited or credited on the balance accounting - * register. + * The amount in the payment's currency that is debited or credited on the balance accounting register. * - * @param balance The amount in the payment's currency that is debited or credited on the - * balance accounting register. + * @param balance The amount in the payment's currency that is debited or credited on the balance accounting register. * @return the current {@code BalanceMutation} instance, allowing for method chaining */ public BalanceMutation balance(Long balance) { @@ -53,11 +62,8 @@ public BalanceMutation balance(Long balance) { } /** - * The amount in the payment's currency that is debited or credited on the balance accounting - * register. - * - * @return balance The amount in the payment's currency that is debited or credited on the - * balance accounting register. + * The amount in the payment's currency that is debited or credited on the balance accounting register. + * @return balance The amount in the payment's currency that is debited or credited on the balance accounting register. */ @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -66,11 +72,9 @@ public Long getBalance() { } /** - * The amount in the payment's currency that is debited or credited on the balance accounting - * register. + * The amount in the payment's currency that is debited or credited on the balance accounting register. * - * @param balance The amount in the payment's currency that is debited or credited on the - * balance accounting register. + * @param balance The amount in the payment's currency that is debited or credited on the balance accounting register. */ @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,11 +83,9 @@ public void setBalance(Long balance) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code BalanceMutation} instance, allowing for method chaining */ public BalanceMutation currency(String currency) { @@ -92,11 +94,8 @@ public BalanceMutation currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,11 +104,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,11 +115,9 @@ public void setCurrency(String currency) { } /** - * The amount in the payment's currency that is debited or credited on the received accounting - * register. + * The amount in the payment's currency that is debited or credited on the received accounting register. * - * @param received The amount in the payment's currency that is debited or credited on the - * received accounting register. + * @param received The amount in the payment's currency that is debited or credited on the received accounting register. * @return the current {@code BalanceMutation} instance, allowing for method chaining */ public BalanceMutation received(Long received) { @@ -131,11 +126,8 @@ public BalanceMutation received(Long received) { } /** - * The amount in the payment's currency that is debited or credited on the received accounting - * register. - * - * @return received The amount in the payment's currency that is debited or credited on the - * received accounting register. + * The amount in the payment's currency that is debited or credited on the received accounting register. + * @return received The amount in the payment's currency that is debited or credited on the received accounting register. */ @JsonProperty(JSON_PROPERTY_RECEIVED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,11 +136,9 @@ public Long getReceived() { } /** - * The amount in the payment's currency that is debited or credited on the received accounting - * register. + * The amount in the payment's currency that is debited or credited on the received accounting register. * - * @param received The amount in the payment's currency that is debited or credited on the - * received accounting register. + * @param received The amount in the payment's currency that is debited or credited on the received accounting register. */ @JsonProperty(JSON_PROPERTY_RECEIVED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -157,11 +147,9 @@ public void setReceived(Long received) { } /** - * The amount in the payment's currency that is debited or credited on the reserved accounting - * register. + * The amount in the payment's currency that is debited or credited on the reserved accounting register. * - * @param reserved The amount in the payment's currency that is debited or credited on the - * reserved accounting register. + * @param reserved The amount in the payment's currency that is debited or credited on the reserved accounting register. * @return the current {@code BalanceMutation} instance, allowing for method chaining */ public BalanceMutation reserved(Long reserved) { @@ -170,11 +158,8 @@ public BalanceMutation reserved(Long reserved) { } /** - * The amount in the payment's currency that is debited or credited on the reserved accounting - * register. - * - * @return reserved The amount in the payment's currency that is debited or credited on the - * reserved accounting register. + * The amount in the payment's currency that is debited or credited on the reserved accounting register. + * @return reserved The amount in the payment's currency that is debited or credited on the reserved accounting register. */ @JsonProperty(JSON_PROPERTY_RESERVED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,11 +168,9 @@ public Long getReserved() { } /** - * The amount in the payment's currency that is debited or credited on the reserved accounting - * register. + * The amount in the payment's currency that is debited or credited on the reserved accounting register. * - * @param reserved The amount in the payment's currency that is debited or credited on the - * reserved accounting register. + * @param reserved The amount in the payment's currency that is debited or credited on the reserved accounting register. */ @JsonProperty(JSON_PROPERTY_RESERVED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,7 +178,9 @@ public void setReserved(Long reserved) { this.reserved = reserved; } - /** Return true if this BalanceMutation object is equal to o. */ + /** + * Return true if this BalanceMutation object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -205,10 +190,10 @@ public boolean equals(Object o) { return false; } BalanceMutation balanceMutation = (BalanceMutation) o; - return Objects.equals(this.balance, balanceMutation.balance) - && Objects.equals(this.currency, balanceMutation.currency) - && Objects.equals(this.received, balanceMutation.received) - && Objects.equals(this.reserved, balanceMutation.reserved); + return Objects.equals(this.balance, balanceMutation.balance) && + Objects.equals(this.currency, balanceMutation.currency) && + Objects.equals(this.received, balanceMutation.received) && + Objects.equals(this.reserved, balanceMutation.reserved); } @Override @@ -229,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -238,7 +224,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BalanceMutation given an JSON string * * @param jsonString JSON string @@ -248,12 +234,11 @@ private String toIndentedString(Object o) { public static BalanceMutation fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceMutation.class); } - - /** - * Convert an instance of BalanceMutation to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BalanceMutation to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/BankAccountV3.java b/src/main/java/com/adyen/model/transfers/BankAccountV3.java index 3d1a99a35..83833ca9e 100644 --- a/src/main/java/com/adyen/model/transfers/BankAccountV3.java +++ b/src/main/java/com/adyen/model/transfers/BankAccountV3.java @@ -2,26 +2,38 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.BankAccountV3AccountIdentification; +import com.adyen.model.transfers.PartyIdentification; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** BankAccountV3 */ + +/** + * BankAccountV3 + */ @JsonPropertyOrder({ BankAccountV3.JSON_PROPERTY_ACCOUNT_HOLDER, BankAccountV3.JSON_PROPERTY_ACCOUNT_IDENTIFICATION }) + public class BankAccountV3 { public static final String JSON_PROPERTY_ACCOUNT_HOLDER = "accountHolder"; private PartyIdentification accountHolder; @@ -29,12 +41,13 @@ public class BankAccountV3 { public static final String JSON_PROPERTY_ACCOUNT_IDENTIFICATION = "accountIdentification"; private BankAccountV3AccountIdentification accountIdentification; - public BankAccountV3() {} + public BankAccountV3() { + } /** * accountHolder * - * @param accountHolder + * @param accountHolder * @return the current {@code BankAccountV3} instance, allowing for method chaining */ public BankAccountV3 accountHolder(PartyIdentification accountHolder) { @@ -44,8 +57,7 @@ public BankAccountV3 accountHolder(PartyIdentification accountHolder) { /** * Get accountHolder - * - * @return accountHolder + * @return accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -56,7 +68,7 @@ public PartyIdentification getAccountHolder() { /** * accountHolder * - * @param accountHolder + * @param accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -67,19 +79,17 @@ public void setAccountHolder(PartyIdentification accountHolder) { /** * accountIdentification * - * @param accountIdentification + * @param accountIdentification * @return the current {@code BankAccountV3} instance, allowing for method chaining */ - public BankAccountV3 accountIdentification( - BankAccountV3AccountIdentification accountIdentification) { + public BankAccountV3 accountIdentification(BankAccountV3AccountIdentification accountIdentification) { this.accountIdentification = accountIdentification; return this; } /** * Get accountIdentification - * - * @return accountIdentification + * @return accountIdentification */ @JsonProperty(JSON_PROPERTY_ACCOUNT_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -90,7 +100,7 @@ public BankAccountV3AccountIdentification getAccountIdentification() { /** * accountIdentification * - * @param accountIdentification + * @param accountIdentification */ @JsonProperty(JSON_PROPERTY_ACCOUNT_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -98,7 +108,9 @@ public void setAccountIdentification(BankAccountV3AccountIdentification accountI this.accountIdentification = accountIdentification; } - /** Return true if this BankAccountV3 object is equal to o. */ + /** + * Return true if this BankAccountV3 object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -108,8 +120,8 @@ public boolean equals(Object o) { return false; } BankAccountV3 bankAccountV3 = (BankAccountV3) o; - return Objects.equals(this.accountHolder, bankAccountV3.accountHolder) - && Objects.equals(this.accountIdentification, bankAccountV3.accountIdentification); + return Objects.equals(this.accountHolder, bankAccountV3.accountHolder) && + Objects.equals(this.accountIdentification, bankAccountV3.accountIdentification); } @Override @@ -122,15 +134,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BankAccountV3 {\n"); sb.append(" accountHolder: ").append(toIndentedString(accountHolder)).append("\n"); - sb.append(" accountIdentification: ") - .append(toIndentedString(accountIdentification)) - .append("\n"); + sb.append(" accountIdentification: ").append(toIndentedString(accountIdentification)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -139,7 +150,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BankAccountV3 given an JSON string * * @param jsonString JSON string @@ -149,12 +160,11 @@ private String toIndentedString(Object o) { public static BankAccountV3 fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankAccountV3.class); } - - /** - * Convert an instance of BankAccountV3 to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BankAccountV3 to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/BankAccountV3AccountIdentification.java b/src/main/java/com/adyen/model/transfers/BankAccountV3AccountIdentification.java index fedff8f80..f7d411f0a 100644 --- a/src/main/java/com/adyen/model/transfers/BankAccountV3AccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/BankAccountV3AccountIdentification.java @@ -2,19 +2,60 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.AULocalAccountIdentification; +import com.adyen.model.transfers.AdditionalBankIdentification; +import com.adyen.model.transfers.BRLocalAccountIdentification; +import com.adyen.model.transfers.CALocalAccountIdentification; +import com.adyen.model.transfers.CZLocalAccountIdentification; +import com.adyen.model.transfers.DKLocalAccountIdentification; +import com.adyen.model.transfers.HKLocalAccountIdentification; +import com.adyen.model.transfers.HULocalAccountIdentification; +import com.adyen.model.transfers.IbanAccountIdentification; +import com.adyen.model.transfers.NOLocalAccountIdentification; +import com.adyen.model.transfers.NZLocalAccountIdentification; +import com.adyen.model.transfers.NumberAndBicAccountIdentification; +import com.adyen.model.transfers.PLLocalAccountIdentification; +import com.adyen.model.transfers.SELocalAccountIdentification; +import com.adyen.model.transfers.SGLocalAccountIdentification; +import com.adyen.model.transfers.UKLocalAccountIdentification; +import com.adyen.model.transfers.USLocalAccountIdentification; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + +import com.fasterxml.jackson.core.type.TypeReference; + +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.Response; +import java.io.IOException; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; + import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; +import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -24,942 +65,872 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import jakarta.ws.rs.core.GenericType; -import java.io.IOException; -import java.util.*; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashSet; -import java.util.logging.Level; -import java.util.logging.Logger; -@JsonDeserialize( - using = BankAccountV3AccountIdentification.BankAccountV3AccountIdentificationDeserializer.class) -@JsonSerialize( - using = BankAccountV3AccountIdentification.BankAccountV3AccountIdentificationSerializer.class) + +@JsonDeserialize(using = BankAccountV3AccountIdentification.BankAccountV3AccountIdentificationDeserializer.class) +@JsonSerialize(using = BankAccountV3AccountIdentification.BankAccountV3AccountIdentificationSerializer.class) public class BankAccountV3AccountIdentification extends AbstractOpenApiSchema { - private static final Logger log = - Logger.getLogger(BankAccountV3AccountIdentification.class.getName()); + private static final Logger log = Logger.getLogger(BankAccountV3AccountIdentification.class.getName()); - public static class BankAccountV3AccountIdentificationSerializer - extends StdSerializer { - public BankAccountV3AccountIdentificationSerializer( - Class t) { - super(t); + public static class BankAccountV3AccountIdentificationSerializer extends StdSerializer { + public BankAccountV3AccountIdentificationSerializer(Class t) { + super(t); + } + + public BankAccountV3AccountIdentificationSerializer() { + this(null); + } + + @Override + public void serialize(BankAccountV3AccountIdentification value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); + } } - public BankAccountV3AccountIdentificationSerializer() { - this(null); + public static class BankAccountV3AccountIdentificationDeserializer extends StdDeserializer { + public BankAccountV3AccountIdentificationDeserializer() { + this(BankAccountV3AccountIdentification.class); + } + + public BankAccountV3AccountIdentificationDeserializer(Class vc) { + super(vc); + } + + @Override + public BankAccountV3AccountIdentification deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize AULocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(AULocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(AULocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'AULocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'AULocalAccountIdentification'", e); + } + + // deserialize BRLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(BRLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(BRLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'BRLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'BRLocalAccountIdentification'", e); + } + + // deserialize CALocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(CALocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CALocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CALocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CALocalAccountIdentification'", e); + } + + // deserialize CZLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(CZLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CZLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CZLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CZLocalAccountIdentification'", e); + } + + // deserialize DKLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(DKLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(DKLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'DKLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'DKLocalAccountIdentification'", e); + } + + // deserialize HKLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(HKLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(HKLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'HKLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'HKLocalAccountIdentification'", e); + } + + // deserialize HULocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(HULocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(HULocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'HULocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'HULocalAccountIdentification'", e); + } + + // deserialize IbanAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(IbanAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'IbanAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'IbanAccountIdentification'", e); + } + + // deserialize NOLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(NOLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(NOLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'NOLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'NOLocalAccountIdentification'", e); + } + + // deserialize NZLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(NZLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(NZLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'NZLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'NZLocalAccountIdentification'", e); + } + + // deserialize NumberAndBicAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(NumberAndBicAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(NumberAndBicAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'NumberAndBicAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'NumberAndBicAccountIdentification'", e); + } + + // deserialize PLLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(PLLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PLLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PLLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PLLocalAccountIdentification'", e); + } + + // deserialize SELocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(SELocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(SELocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'SELocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'SELocalAccountIdentification'", e); + } + + // deserialize SGLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(SGLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(SGLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'SGLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'SGLocalAccountIdentification'", e); + } + + // deserialize UKLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(UKLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(UKLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'UKLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'UKLocalAccountIdentification'", e); + } + + // deserialize USLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(USLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(USLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'USLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'USLocalAccountIdentification'", e); + } + + if (match == 1) { + BankAccountV3AccountIdentification ret = new BankAccountV3AccountIdentification(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException(String.format("Failed deserialization for BankAccountV3AccountIdentification: %d classes match result, expected 1", match)); + } + + /** + * Handle deserialization of the 'null' value. + */ + @Override + public BankAccountV3AccountIdentification getNullValue(DeserializationContext ctxt) throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "BankAccountV3AccountIdentification cannot be null"); + } } - @Override - public void serialize( - BankAccountV3AccountIdentification value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public BankAccountV3AccountIdentification() { + super("oneOf", Boolean.FALSE); + } + + public BankAccountV3AccountIdentification(AULocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(BRLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(CALocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(CZLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(DKLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(HKLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(HULocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(IbanAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(NOLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(NZLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(NumberAndBicAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(PLLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(SELocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(SGLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(UKLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(USLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } - } - public static class BankAccountV3AccountIdentificationDeserializer - extends StdDeserializer { - public BankAccountV3AccountIdentificationDeserializer() { - this(BankAccountV3AccountIdentification.class); + static { + schemas.put("AULocalAccountIdentification", new GenericType() { + }); + schemas.put("BRLocalAccountIdentification", new GenericType() { + }); + schemas.put("CALocalAccountIdentification", new GenericType() { + }); + schemas.put("CZLocalAccountIdentification", new GenericType() { + }); + schemas.put("DKLocalAccountIdentification", new GenericType() { + }); + schemas.put("HKLocalAccountIdentification", new GenericType() { + }); + schemas.put("HULocalAccountIdentification", new GenericType() { + }); + schemas.put("IbanAccountIdentification", new GenericType() { + }); + schemas.put("NOLocalAccountIdentification", new GenericType() { + }); + schemas.put("NZLocalAccountIdentification", new GenericType() { + }); + schemas.put("NumberAndBicAccountIdentification", new GenericType() { + }); + schemas.put("PLLocalAccountIdentification", new GenericType() { + }); + schemas.put("SELocalAccountIdentification", new GenericType() { + }); + schemas.put("SGLocalAccountIdentification", new GenericType() { + }); + schemas.put("UKLocalAccountIdentification", new GenericType() { + }); + schemas.put("USLocalAccountIdentification", new GenericType() { + }); + JSON.registerDescendants(BankAccountV3AccountIdentification.class, Collections.unmodifiableMap(schemas)); } - public BankAccountV3AccountIdentificationDeserializer(Class vc) { - super(vc); + @Override + public Map> getSchemas() { + return BankAccountV3AccountIdentification.schemas; } + /** + * Set the instance that matches the oneOf child schema, check + * the instance parameter is valid against the oneOf child schemas: + * AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification + * + * It could be an instance of the 'oneOf' schemas. + * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). + */ @Override - public BankAccountV3AccountIdentification deserialize( - JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize AULocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(AULocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(AULocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AULocalAccountIdentification'"); - } + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(AULocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AULocalAccountIdentification'", e); - } - - // deserialize BRLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(BRLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(BRLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'BRLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(BRLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'BRLocalAccountIdentification'", e); - } - - // deserialize CALocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(CALocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(CALocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CALocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(CALocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CALocalAccountIdentification'", e); - } - - // deserialize CZLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(CZLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(CZLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CZLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(CZLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CZLocalAccountIdentification'", e); - } - - // deserialize DKLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(DKLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(DKLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'DKLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(DKLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'DKLocalAccountIdentification'", e); - } - - // deserialize HKLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(HKLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(HKLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'HKLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(HKLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'HKLocalAccountIdentification'", e); - } - - // deserialize HULocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(HULocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(HULocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'HULocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(HULocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'HULocalAccountIdentification'", e); - } - - // deserialize IbanAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(IbanAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'IbanAccountIdentification'"); - } + + if (JSON.isInstanceOf(IbanAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'IbanAccountIdentification'", e); - } - - // deserialize NOLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(NOLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(NOLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'NOLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(NOLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'NOLocalAccountIdentification'", e); - } - - // deserialize NZLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(NZLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(NZLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'NZLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(NZLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'NZLocalAccountIdentification'", e); - } - - // deserialize NumberAndBicAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(NumberAndBicAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(NumberAndBicAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'NumberAndBicAccountIdentification'"); - } + + if (JSON.isInstanceOf(NumberAndBicAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, "Input data does not match schema 'NumberAndBicAccountIdentification'", e); - } - - // deserialize PLLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(PLLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(PLLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PLLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(PLLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PLLocalAccountIdentification'", e); - } - - // deserialize SELocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(SELocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(SELocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SELocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(SELocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'SELocalAccountIdentification'", e); - } - - // deserialize SGLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(SGLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(SGLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SGLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(SGLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'SGLocalAccountIdentification'", e); - } - - // deserialize UKLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(UKLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(UKLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'UKLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(UKLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'UKLocalAccountIdentification'", e); - } - - // deserialize USLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(USLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(USLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'USLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(USLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'USLocalAccountIdentification'", e); - } - - if (match == 1) { - BankAccountV3AccountIdentification ret = new BankAccountV3AccountIdentification(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for BankAccountV3AccountIdentification: %d classes match result, expected 1", - match)); - } - - /** Handle deserialization of the 'null' value. */ + + throw new RuntimeException("Invalid instance type. Must be AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification"); + } + + /** + * Get the actual instance, which can be the following: + * AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification + * + * @return The actual instance (AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification) + */ @Override - public BankAccountV3AccountIdentification getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "BankAccountV3AccountIdentification cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public BankAccountV3AccountIdentification() { - super("oneOf", Boolean.FALSE); - } - - public BankAccountV3AccountIdentification(AULocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(BRLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(CALocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(CZLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(DKLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(HKLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(HULocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(IbanAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(NOLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(NZLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(NumberAndBicAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(PLLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(SELocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(SGLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(UKLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(USLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("AULocalAccountIdentification", new GenericType() {}); - schemas.put("BRLocalAccountIdentification", new GenericType() {}); - schemas.put("CALocalAccountIdentification", new GenericType() {}); - schemas.put("CZLocalAccountIdentification", new GenericType() {}); - schemas.put("DKLocalAccountIdentification", new GenericType() {}); - schemas.put("HKLocalAccountIdentification", new GenericType() {}); - schemas.put("HULocalAccountIdentification", new GenericType() {}); - schemas.put("IbanAccountIdentification", new GenericType() {}); - schemas.put("NOLocalAccountIdentification", new GenericType() {}); - schemas.put("NZLocalAccountIdentification", new GenericType() {}); - schemas.put( - "NumberAndBicAccountIdentification", - new GenericType() {}); - schemas.put("PLLocalAccountIdentification", new GenericType() {}); - schemas.put("SELocalAccountIdentification", new GenericType() {}); - schemas.put("SGLocalAccountIdentification", new GenericType() {}); - schemas.put("UKLocalAccountIdentification", new GenericType() {}); - schemas.put("USLocalAccountIdentification", new GenericType() {}); - JSON.registerDescendants( - BankAccountV3AccountIdentification.class, Collections.unmodifiableMap(schemas)); - } + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `AULocalAccountIdentification`. If the actual instance is not `AULocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `AULocalAccountIdentification` + * @throws ClassCastException if the instance is not `AULocalAccountIdentification` + */ + public AULocalAccountIdentification getAULocalAccountIdentification() throws ClassCastException { + return (AULocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `BRLocalAccountIdentification`. If the actual instance is not `BRLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `BRLocalAccountIdentification` + * @throws ClassCastException if the instance is not `BRLocalAccountIdentification` + */ + public BRLocalAccountIdentification getBRLocalAccountIdentification() throws ClassCastException { + return (BRLocalAccountIdentification)super.getActualInstance(); + } - @Override - public Map> getSchemas() { - return BankAccountV3AccountIdentification.schemas; - } + /** + * Get the actual instance of `CALocalAccountIdentification`. If the actual instance is not `CALocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CALocalAccountIdentification` + * @throws ClassCastException if the instance is not `CALocalAccountIdentification` + */ + public CALocalAccountIdentification getCALocalAccountIdentification() throws ClassCastException { + return (CALocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `CZLocalAccountIdentification`. If the actual instance is not `CZLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CZLocalAccountIdentification` + * @throws ClassCastException if the instance is not `CZLocalAccountIdentification` + */ + public CZLocalAccountIdentification getCZLocalAccountIdentification() throws ClassCastException { + return (CZLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `DKLocalAccountIdentification`. If the actual instance is not `DKLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `DKLocalAccountIdentification` + * @throws ClassCastException if the instance is not `DKLocalAccountIdentification` + */ + public DKLocalAccountIdentification getDKLocalAccountIdentification() throws ClassCastException { + return (DKLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `HKLocalAccountIdentification`. If the actual instance is not `HKLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `HKLocalAccountIdentification` + * @throws ClassCastException if the instance is not `HKLocalAccountIdentification` + */ + public HKLocalAccountIdentification getHKLocalAccountIdentification() throws ClassCastException { + return (HKLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `HULocalAccountIdentification`. If the actual instance is not `HULocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `HULocalAccountIdentification` + * @throws ClassCastException if the instance is not `HULocalAccountIdentification` + */ + public HULocalAccountIdentification getHULocalAccountIdentification() throws ClassCastException { + return (HULocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `IbanAccountIdentification`. If the actual instance is not `IbanAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `IbanAccountIdentification` + * @throws ClassCastException if the instance is not `IbanAccountIdentification` + */ + public IbanAccountIdentification getIbanAccountIdentification() throws ClassCastException { + return (IbanAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `NOLocalAccountIdentification`. If the actual instance is not `NOLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `NOLocalAccountIdentification` + * @throws ClassCastException if the instance is not `NOLocalAccountIdentification` + */ + public NOLocalAccountIdentification getNOLocalAccountIdentification() throws ClassCastException { + return (NOLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `NZLocalAccountIdentification`. If the actual instance is not `NZLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `NZLocalAccountIdentification` + * @throws ClassCastException if the instance is not `NZLocalAccountIdentification` + */ + public NZLocalAccountIdentification getNZLocalAccountIdentification() throws ClassCastException { + return (NZLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `NumberAndBicAccountIdentification`. If the actual instance is not `NumberAndBicAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `NumberAndBicAccountIdentification` + * @throws ClassCastException if the instance is not `NumberAndBicAccountIdentification` + */ + public NumberAndBicAccountIdentification getNumberAndBicAccountIdentification() throws ClassCastException { + return (NumberAndBicAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `PLLocalAccountIdentification`. If the actual instance is not `PLLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `PLLocalAccountIdentification` + * @throws ClassCastException if the instance is not `PLLocalAccountIdentification` + */ + public PLLocalAccountIdentification getPLLocalAccountIdentification() throws ClassCastException { + return (PLLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `SELocalAccountIdentification`. If the actual instance is not `SELocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `SELocalAccountIdentification` + * @throws ClassCastException if the instance is not `SELocalAccountIdentification` + */ + public SELocalAccountIdentification getSELocalAccountIdentification() throws ClassCastException { + return (SELocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `SGLocalAccountIdentification`. If the actual instance is not `SGLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `SGLocalAccountIdentification` + * @throws ClassCastException if the instance is not `SGLocalAccountIdentification` + */ + public SGLocalAccountIdentification getSGLocalAccountIdentification() throws ClassCastException { + return (SGLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `UKLocalAccountIdentification`. If the actual instance is not `UKLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `UKLocalAccountIdentification` + * @throws ClassCastException if the instance is not `UKLocalAccountIdentification` + */ + public UKLocalAccountIdentification getUKLocalAccountIdentification() throws ClassCastException { + return (UKLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `USLocalAccountIdentification`. If the actual instance is not `USLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `USLocalAccountIdentification` + * @throws ClassCastException if the instance is not `USLocalAccountIdentification` + */ + public USLocalAccountIdentification getUSLocalAccountIdentification() throws ClassCastException { + return (USLocalAccountIdentification)super.getActualInstance(); + } + + + /** + * Create an instance of BankAccountV3AccountIdentification given an JSON string + * + * @param jsonString JSON string + * @return An instance of BankAccountV3AccountIdentification + * @throws IOException if the JSON string is invalid with respect to BankAccountV3AccountIdentification + */ + public static BankAccountV3AccountIdentification fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, BankAccountV3AccountIdentification.class); + } + + /** + * Convert an instance of BankAccountV3AccountIdentification to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: AULocalAccountIdentification, BRLocalAccountIdentification, - * CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, - * HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, - * NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, - * PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, - * UKLocalAccountIdentification, USLocalAccountIdentification - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a - * composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(AULocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(BRLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(CALocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(CZLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(DKLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(HKLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(HULocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(IbanAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(NOLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(NZLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(NumberAndBicAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(PLLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(SELocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(SGLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(UKLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(USLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException( - "Invalid instance type. Must be AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification"); - } - - /** - * Get the actual instance, which can be the following: AULocalAccountIdentification, - * BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, - * DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, - * IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, - * NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, - * SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification - * - * @return The actual instance (AULocalAccountIdentification, BRLocalAccountIdentification, - * CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, - * HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, - * NOLocalAccountIdentification, NZLocalAccountIdentification, - * NumberAndBicAccountIdentification, PLLocalAccountIdentification, - * SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, - * USLocalAccountIdentification) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `AULocalAccountIdentification`. If the actual instance is not - * `AULocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `AULocalAccountIdentification` - * @throws ClassCastException if the instance is not `AULocalAccountIdentification` - */ - public AULocalAccountIdentification getAULocalAccountIdentification() throws ClassCastException { - return (AULocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `BRLocalAccountIdentification`. If the actual instance is not - * `BRLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `BRLocalAccountIdentification` - * @throws ClassCastException if the instance is not `BRLocalAccountIdentification` - */ - public BRLocalAccountIdentification getBRLocalAccountIdentification() throws ClassCastException { - return (BRLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `CALocalAccountIdentification`. If the actual instance is not - * `CALocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `CALocalAccountIdentification` - * @throws ClassCastException if the instance is not `CALocalAccountIdentification` - */ - public CALocalAccountIdentification getCALocalAccountIdentification() throws ClassCastException { - return (CALocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `CZLocalAccountIdentification`. If the actual instance is not - * `CZLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `CZLocalAccountIdentification` - * @throws ClassCastException if the instance is not `CZLocalAccountIdentification` - */ - public CZLocalAccountIdentification getCZLocalAccountIdentification() throws ClassCastException { - return (CZLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `DKLocalAccountIdentification`. If the actual instance is not - * `DKLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `DKLocalAccountIdentification` - * @throws ClassCastException if the instance is not `DKLocalAccountIdentification` - */ - public DKLocalAccountIdentification getDKLocalAccountIdentification() throws ClassCastException { - return (DKLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `HKLocalAccountIdentification`. If the actual instance is not - * `HKLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `HKLocalAccountIdentification` - * @throws ClassCastException if the instance is not `HKLocalAccountIdentification` - */ - public HKLocalAccountIdentification getHKLocalAccountIdentification() throws ClassCastException { - return (HKLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `HULocalAccountIdentification`. If the actual instance is not - * `HULocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `HULocalAccountIdentification` - * @throws ClassCastException if the instance is not `HULocalAccountIdentification` - */ - public HULocalAccountIdentification getHULocalAccountIdentification() throws ClassCastException { - return (HULocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `IbanAccountIdentification`. If the actual instance is not - * `IbanAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `IbanAccountIdentification` - * @throws ClassCastException if the instance is not `IbanAccountIdentification` - */ - public IbanAccountIdentification getIbanAccountIdentification() throws ClassCastException { - return (IbanAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `NOLocalAccountIdentification`. If the actual instance is not - * `NOLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `NOLocalAccountIdentification` - * @throws ClassCastException if the instance is not `NOLocalAccountIdentification` - */ - public NOLocalAccountIdentification getNOLocalAccountIdentification() throws ClassCastException { - return (NOLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `NZLocalAccountIdentification`. If the actual instance is not - * `NZLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `NZLocalAccountIdentification` - * @throws ClassCastException if the instance is not `NZLocalAccountIdentification` - */ - public NZLocalAccountIdentification getNZLocalAccountIdentification() throws ClassCastException { - return (NZLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `NumberAndBicAccountIdentification`. If the actual instance is not - * `NumberAndBicAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `NumberAndBicAccountIdentification` - * @throws ClassCastException if the instance is not `NumberAndBicAccountIdentification` - */ - public NumberAndBicAccountIdentification getNumberAndBicAccountIdentification() - throws ClassCastException { - return (NumberAndBicAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `PLLocalAccountIdentification`. If the actual instance is not - * `PLLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `PLLocalAccountIdentification` - * @throws ClassCastException if the instance is not `PLLocalAccountIdentification` - */ - public PLLocalAccountIdentification getPLLocalAccountIdentification() throws ClassCastException { - return (PLLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `SELocalAccountIdentification`. If the actual instance is not - * `SELocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `SELocalAccountIdentification` - * @throws ClassCastException if the instance is not `SELocalAccountIdentification` - */ - public SELocalAccountIdentification getSELocalAccountIdentification() throws ClassCastException { - return (SELocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `SGLocalAccountIdentification`. If the actual instance is not - * `SGLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `SGLocalAccountIdentification` - * @throws ClassCastException if the instance is not `SGLocalAccountIdentification` - */ - public SGLocalAccountIdentification getSGLocalAccountIdentification() throws ClassCastException { - return (SGLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `UKLocalAccountIdentification`. If the actual instance is not - * `UKLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `UKLocalAccountIdentification` - * @throws ClassCastException if the instance is not `UKLocalAccountIdentification` - */ - public UKLocalAccountIdentification getUKLocalAccountIdentification() throws ClassCastException { - return (UKLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `USLocalAccountIdentification`. If the actual instance is not - * `USLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `USLocalAccountIdentification` - * @throws ClassCastException if the instance is not `USLocalAccountIdentification` - */ - public USLocalAccountIdentification getUSLocalAccountIdentification() throws ClassCastException { - return (USLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Create an instance of BankAccountV3AccountIdentification given an JSON string - * - * @param jsonString JSON string - * @return An instance of BankAccountV3AccountIdentification - * @throws IOException if the JSON string is invalid with respect to - * BankAccountV3AccountIdentification - */ - public static BankAccountV3AccountIdentification fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, BankAccountV3AccountIdentification.class); - } - - /** - * Convert an instance of BankAccountV3AccountIdentification to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); - } } diff --git a/src/main/java/com/adyen/model/transfers/BankCategoryData.java b/src/main/java/com/adyen/model/transfers/BankCategoryData.java index cbd1399b2..f271d6e26 100644 --- a/src/main/java/com/adyen/model/transfers/BankCategoryData.java +++ b/src/main/java/com/adyen/model/transfers/BankCategoryData.java @@ -2,42 +2,42 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * BankCategoryData + */ +@JsonPropertyOrder({ + BankCategoryData.JSON_PROPERTY_PRIORITY, + BankCategoryData.JSON_PROPERTY_TYPE +}) -/** BankCategoryData */ -@JsonPropertyOrder({BankCategoryData.JSON_PROPERTY_PRIORITY, BankCategoryData.JSON_PROPERTY_TYPE}) public class BankCategoryData { /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the - * fees that you have to pay. Required for transfers with `category` **bank**. Possible - * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer - * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * - * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the - * United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). */ public enum PriorityEnum { + CROSSBORDER(String.valueOf("crossBorder")), FAST(String.valueOf("fast")), @@ -55,7 +55,7 @@ public enum PriorityEnum { private String value; PriorityEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -76,11 +76,7 @@ public static PriorityEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PriorityEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PriorityEnum.values())); + LOG.warning("PriorityEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PriorityEnum.values())); return null; } } @@ -88,8 +84,11 @@ public static PriorityEnum fromValue(String value) { public static final String JSON_PROPERTY_PRIORITY = "priority"; private PriorityEnum priority; - /** **bank** */ + /** + * **bank** + */ public enum TypeEnum { + BANK(String.valueOf("bank")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -97,7 +96,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -118,11 +117,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -130,32 +125,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public BankCategoryData() {} + public BankCategoryData() { + } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the - * fees that you have to pay. Required for transfers with `category` **bank**. Possible - * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer - * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * - * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the - * United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). * - * @param priority The priority for the bank transfer. This sets the speed at which the transfer - * is sent and the fees that you have to pay. Required for transfers with `category` - * **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a - * faster way to transfer funds, but the fees are higher. Recommended for high-priority, - * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the - * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for - * instant funds transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * @param priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). * @return the current {@code BankCategoryData} instance, allowing for method chaining */ public BankCategoryData priority(PriorityEnum priority) { @@ -164,29 +140,8 @@ public BankCategoryData priority(PriorityEnum priority) { } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the - * fees that you have to pay. Required for transfers with `category` **bank**. Possible - * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer - * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * - * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the - * United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). - * - * @return priority The priority for the bank transfer. This sets the speed at which the transfer - * is sent and the fees that you have to pay. Required for transfers with `category` - * **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a - * faster way to transfer funds, but the fees are higher. Recommended for high-priority, - * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the - * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for - * instant funds transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * @return priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). */ @JsonProperty(JSON_PROPERTY_PRIORITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,29 +150,9 @@ public PriorityEnum getPriority() { } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the - * fees that you have to pay. Required for transfers with `category` **bank**. Possible - * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer - * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * - * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the - * United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). * - * @param priority The priority for the bank transfer. This sets the speed at which the transfer - * is sent and the fees that you have to pay. Required for transfers with `category` - * **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a - * faster way to transfer funds, but the fees are higher. Recommended for high-priority, - * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the - * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for - * instant funds transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * @param priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). */ @JsonProperty(JSON_PROPERTY_PRIORITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -238,7 +173,6 @@ public BankCategoryData type(TypeEnum type) { /** * **bank** - * * @return type **bank** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -258,7 +192,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this BankCategoryData object is equal to o. */ + /** + * Return true if this BankCategoryData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -268,8 +204,8 @@ public boolean equals(Object o) { return false; } BankCategoryData bankCategoryData = (BankCategoryData) o; - return Objects.equals(this.priority, bankCategoryData.priority) - && Objects.equals(this.type, bankCategoryData.type); + return Objects.equals(this.priority, bankCategoryData.priority) && + Objects.equals(this.type, bankCategoryData.type); } @Override @@ -288,7 +224,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -297,7 +234,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BankCategoryData given an JSON string * * @param jsonString JSON string @@ -307,12 +244,11 @@ private String toIndentedString(Object o) { public static BankCategoryData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankCategoryData.class); } - - /** - * Convert an instance of BankCategoryData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BankCategoryData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/CALocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/CALocalAccountIdentification.java index 648bb2325..fd22bc860 100644 --- a/src/main/java/com/adyen/model/transfers/CALocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/CALocalAccountIdentification.java @@ -2,26 +2,31 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CALocalAccountIdentification */ +/** + * CALocalAccountIdentification + */ @JsonPropertyOrder({ CALocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, CALocalAccountIdentification.JSON_PROPERTY_ACCOUNT_TYPE, @@ -29,14 +34,16 @@ CALocalAccountIdentification.JSON_PROPERTY_TRANSIT_NUMBER, CALocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class CALocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ public enum AccountTypeEnum { + CHECKING(String.valueOf("checking")), SAVINGS(String.valueOf("savings")); @@ -46,7 +53,7 @@ public enum AccountTypeEnum { private String value; AccountTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -67,11 +74,7 @@ public static AccountTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AccountTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AccountTypeEnum.values())); + LOG.warning("AccountTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AccountTypeEnum.values())); return null; } } @@ -85,8 +88,11 @@ public static AccountTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANSIT_NUMBER = "transitNumber"; private String transitNumber; - /** **caLocal** */ + /** + * **caLocal** + */ public enum TypeEnum { + CALOCAL(String.valueOf("caLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -94,7 +100,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -115,11 +121,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -127,7 +129,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CALocalAccountIdentification() {} + public CALocalAccountIdentification() { + } /** * The 5- to 12-digit bank account number, without separators or whitespace. @@ -142,7 +145,6 @@ public CALocalAccountIdentification accountNumber(String accountNumber) { /** * The 5- to 12-digit bank account number, without separators or whitespace. - * * @return accountNumber The 5- to 12-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -163,10 +165,9 @@ public void setAccountNumber(String accountNumber) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. - * Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * @return the current {@code CALocalAccountIdentification} instance, allowing for method chaining */ public CALocalAccountIdentification accountType(AccountTypeEnum accountType) { @@ -175,10 +176,8 @@ public CALocalAccountIdentification accountType(AccountTypeEnum accountType) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. - * - * @return accountType The bank account type. Possible values: **checking** or **savings**. - * Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * @return accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,10 +186,9 @@ public AccountTypeEnum getAccountType() { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. - * Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,7 +209,6 @@ public CALocalAccountIdentification institutionNumber(String institutionNumber) /** * The 3-digit institution number, without separators or whitespace. - * * @return institutionNumber The 3-digit institution number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_INSTITUTION_NUMBER) @@ -244,7 +241,6 @@ public CALocalAccountIdentification transitNumber(String transitNumber) { /** * The 5-digit transit number, without separators or whitespace. - * * @return transitNumber The 5-digit transit number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_TRANSIT_NUMBER) @@ -277,7 +273,6 @@ public CALocalAccountIdentification type(TypeEnum type) { /** * **caLocal** - * * @return type **caLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -297,7 +292,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this CALocalAccountIdentification object is equal to o. */ + /** + * Return true if this CALocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -307,11 +304,11 @@ public boolean equals(Object o) { return false; } CALocalAccountIdentification caLocalAccountIdentification = (CALocalAccountIdentification) o; - return Objects.equals(this.accountNumber, caLocalAccountIdentification.accountNumber) - && Objects.equals(this.accountType, caLocalAccountIdentification.accountType) - && Objects.equals(this.institutionNumber, caLocalAccountIdentification.institutionNumber) - && Objects.equals(this.transitNumber, caLocalAccountIdentification.transitNumber) - && Objects.equals(this.type, caLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, caLocalAccountIdentification.accountNumber) && + Objects.equals(this.accountType, caLocalAccountIdentification.accountType) && + Objects.equals(this.institutionNumber, caLocalAccountIdentification.institutionNumber) && + Objects.equals(this.transitNumber, caLocalAccountIdentification.transitNumber) && + Objects.equals(this.type, caLocalAccountIdentification.type); } @Override @@ -333,7 +330,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -342,24 +340,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CALocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of CALocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CALocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to CALocalAccountIdentification */ - public static CALocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static CALocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CALocalAccountIdentification.class); } - - /** - * Convert an instance of CALocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CALocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/CZLocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/CZLocalAccountIdentification.java index b07f74868..0b2d54924 100644 --- a/src/main/java/com/adyen/model/transfers/CZLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/CZLocalAccountIdentification.java @@ -2,31 +2,37 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** CZLocalAccountIdentification */ + +/** + * CZLocalAccountIdentification + */ @JsonPropertyOrder({ CZLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, CZLocalAccountIdentification.JSON_PROPERTY_BANK_CODE, CZLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class CZLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -34,8 +40,11 @@ public class CZLocalAccountIdentification { public static final String JSON_PROPERTY_BANK_CODE = "bankCode"; private String bankCode; - /** **czLocal** */ + /** + * **czLocal** + */ public enum TypeEnum { + CZLOCAL(String.valueOf("czLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -43,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -76,20 +81,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CZLocalAccountIdentification() {} + public CZLocalAccountIdentification() { + } /** - * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional - * prefix (předčíslí). - The required second part (základní část) which must be at least two - * non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - - * **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, - * normalized) + * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) * - * @param accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following - * format: - The optional prefix (předčíslí). - The required second part (základní část) which - * must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** - * (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** - * (without prefix, normalized) + * @param accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) * @return the current {@code CZLocalAccountIdentification} instance, allowing for method chaining */ public CZLocalAccountIdentification accountNumber(String accountNumber) { @@ -98,17 +96,8 @@ public CZLocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional - * prefix (předčíslí). - The required second part (základní část) which must be at least two - * non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - - * **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, - * normalized) - * - * @return accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following - * format: - The optional prefix (předčíslí). - The required second part (základní část) which - * must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** - * (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** - * (without prefix, normalized) + * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) + * @return accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,17 +106,9 @@ public String getAccountNumber() { } /** - * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional - * prefix (předčíslí). - The required second part (základní část) which must be at least two - * non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - - * **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, - * normalized) + * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) * - * @param accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following - * format: - The optional prefix (předčíslí). - The required second part (základní část) which - * must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** - * (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** - * (without prefix, normalized) + * @param accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,7 +129,6 @@ public CZLocalAccountIdentification bankCode(String bankCode) { /** * The 4-digit bank code (Kód banky), without separators or whitespace. - * * @return bankCode The 4-digit bank code (Kód banky), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_BANK_CODE) @@ -181,7 +161,6 @@ public CZLocalAccountIdentification type(TypeEnum type) { /** * **czLocal** - * * @return type **czLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -201,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this CZLocalAccountIdentification object is equal to o. */ + /** + * Return true if this CZLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -211,9 +192,9 @@ public boolean equals(Object o) { return false; } CZLocalAccountIdentification czLocalAccountIdentification = (CZLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, czLocalAccountIdentification.accountNumber) - && Objects.equals(this.bankCode, czLocalAccountIdentification.bankCode) - && Objects.equals(this.type, czLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, czLocalAccountIdentification.accountNumber) && + Objects.equals(this.bankCode, czLocalAccountIdentification.bankCode) && + Objects.equals(this.type, czLocalAccountIdentification.type); } @Override @@ -233,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -242,24 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CZLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of CZLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CZLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to CZLocalAccountIdentification */ - public static CZLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static CZLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CZLocalAccountIdentification.class); } - - /** - * Convert an instance of CZLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CZLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/CancelTransfersRequest.java b/src/main/java/com/adyen/model/transfers/CancelTransfersRequest.java index 86903a5b6..f758c6c66 100644 --- a/src/main/java/com/adyen/model/transfers/CancelTransfersRequest.java +++ b/src/main/java/com/adyen/model/transfers/CancelTransfersRequest.java @@ -2,30 +2,43 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * CancelTransfersRequest + */ +@JsonPropertyOrder({ + CancelTransfersRequest.JSON_PROPERTY_TRANSFER_IDS +}) -/** CancelTransfersRequest */ -@JsonPropertyOrder({CancelTransfersRequest.JSON_PROPERTY_TRANSFER_IDS}) public class CancelTransfersRequest { public static final String JSON_PROPERTY_TRANSFER_IDS = "transferIds"; private List transferIds; - public CancelTransfersRequest() {} + public CancelTransfersRequest() { + } /** * Contains the unique identifiers of the transfers that you want to cancel. @@ -48,7 +61,6 @@ public CancelTransfersRequest addTransferIdsItem(String transferIdsItem) { /** * Contains the unique identifiers of the transfers that you want to cancel. - * * @return transferIds Contains the unique identifiers of the transfers that you want to cancel. */ @JsonProperty(JSON_PROPERTY_TRANSFER_IDS) @@ -68,7 +80,9 @@ public void setTransferIds(List transferIds) { this.transferIds = transferIds; } - /** Return true if this CancelTransfersRequest object is equal to o. */ + /** + * Return true if this CancelTransfersRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -96,7 +110,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -105,23 +120,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CancelTransfersRequest given an JSON string * * @param jsonString JSON string * @return An instance of CancelTransfersRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CancelTransfersRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to CancelTransfersRequest */ public static CancelTransfersRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CancelTransfersRequest.class); } - - /** - * Convert an instance of CancelTransfersRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CancelTransfersRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/CapitalBalance.java b/src/main/java/com/adyen/model/transfers/CapitalBalance.java index c8fe68990..c2f7efbb2 100644 --- a/src/main/java/com/adyen/model/transfers/CapitalBalance.java +++ b/src/main/java/com/adyen/model/transfers/CapitalBalance.java @@ -2,28 +2,38 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** CapitalBalance */ + +/** + * CapitalBalance + */ @JsonPropertyOrder({ CapitalBalance.JSON_PROPERTY_CURRENCY, CapitalBalance.JSON_PROPERTY_FEE, CapitalBalance.JSON_PROPERTY_PRINCIPAL, CapitalBalance.JSON_PROPERTY_TOTAL }) + public class CapitalBalance { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -37,14 +47,13 @@ public class CapitalBalance { public static final String JSON_PROPERTY_TOTAL = "total"; private Long total; - public CapitalBalance() {} + public CapitalBalance() { + } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code CapitalBalance} instance, allowing for method chaining */ public CapitalBalance currency(String currency) { @@ -53,11 +62,8 @@ public CapitalBalance currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -66,11 +72,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -91,7 +95,6 @@ public CapitalBalance fee(Long fee) { /** * Fee amount. - * * @return fee Fee amount. */ @JsonProperty(JSON_PROPERTY_FEE) @@ -124,7 +127,6 @@ public CapitalBalance principal(Long principal) { /** * Principal amount. - * * @return principal Principal amount. */ @JsonProperty(JSON_PROPERTY_PRINCIPAL) @@ -157,7 +159,6 @@ public CapitalBalance total(Long total) { /** * Total amount. A sum of principal amount and fee amount. - * * @return total Total amount. A sum of principal amount and fee amount. */ @JsonProperty(JSON_PROPERTY_TOTAL) @@ -177,7 +178,9 @@ public void setTotal(Long total) { this.total = total; } - /** Return true if this CapitalBalance object is equal to o. */ + /** + * Return true if this CapitalBalance object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -187,10 +190,10 @@ public boolean equals(Object o) { return false; } CapitalBalance capitalBalance = (CapitalBalance) o; - return Objects.equals(this.currency, capitalBalance.currency) - && Objects.equals(this.fee, capitalBalance.fee) - && Objects.equals(this.principal, capitalBalance.principal) - && Objects.equals(this.total, capitalBalance.total); + return Objects.equals(this.currency, capitalBalance.currency) && + Objects.equals(this.fee, capitalBalance.fee) && + Objects.equals(this.principal, capitalBalance.principal) && + Objects.equals(this.total, capitalBalance.total); } @Override @@ -211,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -220,7 +224,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CapitalBalance given an JSON string * * @param jsonString JSON string @@ -230,12 +234,11 @@ private String toIndentedString(Object o) { public static CapitalBalance fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapitalBalance.class); } - - /** - * Convert an instance of CapitalBalance to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CapitalBalance to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/CapitalGrant.java b/src/main/java/com/adyen/model/transfers/CapitalGrant.java index 898c8a4d4..c83f3ffa5 100644 --- a/src/main/java/com/adyen/model/transfers/CapitalGrant.java +++ b/src/main/java/com/adyen/model/transfers/CapitalGrant.java @@ -2,26 +2,36 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.Amount; +import com.adyen.model.transfers.CapitalBalance; +import com.adyen.model.transfers.Counterparty; +import com.adyen.model.transfers.Fee; +import com.adyen.model.transfers.Repayment; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CapitalGrant */ +/** + * CapitalGrant + */ @JsonPropertyOrder({ CapitalGrant.JSON_PROPERTY_AMOUNT, CapitalGrant.JSON_PROPERTY_BALANCES, @@ -33,6 +43,7 @@ CapitalGrant.JSON_PROPERTY_REPAYMENT, CapitalGrant.JSON_PROPERTY_STATUS }) + public class CapitalGrant { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -59,10 +70,10 @@ public class CapitalGrant { private Repayment repayment; /** - * The current status of the grant. Possible values: **Pending**, **Active**, **Repaid**, - * **WrittenOff**, **Failed**, **Revoked**. + * The current status of the grant. Possible values: **Pending**, **Active**, **Repaid**, **WrittenOff**, **Failed**, **Revoked**. */ public enum StatusEnum { + PENDING(String.valueOf("Pending")), ACTIVE(String.valueOf("Active")), @@ -80,7 +91,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -101,11 +112,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -113,12 +120,13 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; - public CapitalGrant() {} + public CapitalGrant() { + } /** * amount * - * @param amount + * @param amount * @return the current {@code CapitalGrant} instance, allowing for method chaining */ public CapitalGrant amount(Amount amount) { @@ -128,8 +136,7 @@ public CapitalGrant amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,7 +147,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,7 +158,7 @@ public void setAmount(Amount amount) { /** * balances * - * @param balances + * @param balances * @return the current {@code CapitalGrant} instance, allowing for method chaining */ public CapitalGrant balances(CapitalBalance balances) { @@ -161,8 +168,7 @@ public CapitalGrant balances(CapitalBalance balances) { /** * Get balances - * - * @return balances + * @return balances */ @JsonProperty(JSON_PROPERTY_BALANCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,7 +179,7 @@ public CapitalBalance getBalances() { /** * balances * - * @param balances + * @param balances */ @JsonProperty(JSON_PROPERTY_BALANCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -184,7 +190,7 @@ public void setBalances(CapitalBalance balances) { /** * counterparty * - * @param counterparty + * @param counterparty * @return the current {@code CapitalGrant} instance, allowing for method chaining */ public CapitalGrant counterparty(Counterparty counterparty) { @@ -194,8 +200,7 @@ public CapitalGrant counterparty(Counterparty counterparty) { /** * Get counterparty - * - * @return counterparty + * @return counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -206,7 +211,7 @@ public Counterparty getCounterparty() { /** * counterparty * - * @param counterparty + * @param counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -217,7 +222,7 @@ public void setCounterparty(Counterparty counterparty) { /** * fee * - * @param fee + * @param fee * @return the current {@code CapitalGrant} instance, allowing for method chaining */ public CapitalGrant fee(Fee fee) { @@ -227,8 +232,7 @@ public CapitalGrant fee(Fee fee) { /** * Get fee - * - * @return fee + * @return fee */ @JsonProperty(JSON_PROPERTY_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -239,7 +243,7 @@ public Fee getFee() { /** * fee * - * @param fee + * @param fee */ @JsonProperty(JSON_PROPERTY_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -260,7 +264,6 @@ public CapitalGrant grantAccountId(String grantAccountId) { /** * The identifier of the grant account used for the grant. - * * @return grantAccountId The identifier of the grant account used for the grant. */ @JsonProperty(JSON_PROPERTY_GRANT_ACCOUNT_ID) @@ -281,11 +284,9 @@ public void setGrantAccountId(String grantAccountId) { } /** - * The identifier of the grant offer that has been selected and from which the grant details will - * be used. + * The identifier of the grant offer that has been selected and from which the grant details will be used. * - * @param grantOfferId The identifier of the grant offer that has been selected and from which the - * grant details will be used. + * @param grantOfferId The identifier of the grant offer that has been selected and from which the grant details will be used. * @return the current {@code CapitalGrant} instance, allowing for method chaining */ public CapitalGrant grantOfferId(String grantOfferId) { @@ -294,11 +295,8 @@ public CapitalGrant grantOfferId(String grantOfferId) { } /** - * The identifier of the grant offer that has been selected and from which the grant details will - * be used. - * - * @return grantOfferId The identifier of the grant offer that has been selected and from which - * the grant details will be used. + * The identifier of the grant offer that has been selected and from which the grant details will be used. + * @return grantOfferId The identifier of the grant offer that has been selected and from which the grant details will be used. */ @JsonProperty(JSON_PROPERTY_GRANT_OFFER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -307,11 +305,9 @@ public String getGrantOfferId() { } /** - * The identifier of the grant offer that has been selected and from which the grant details will - * be used. + * The identifier of the grant offer that has been selected and from which the grant details will be used. * - * @param grantOfferId The identifier of the grant offer that has been selected and from which the - * grant details will be used. + * @param grantOfferId The identifier of the grant offer that has been selected and from which the grant details will be used. */ @JsonProperty(JSON_PROPERTY_GRANT_OFFER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -332,7 +328,6 @@ public CapitalGrant id(String id) { /** * The identifier of the grant reference. - * * @return id The identifier of the grant reference. */ @JsonProperty(JSON_PROPERTY_ID) @@ -355,7 +350,7 @@ public void setId(String id) { /** * repayment * - * @param repayment + * @param repayment * @return the current {@code CapitalGrant} instance, allowing for method chaining */ public CapitalGrant repayment(Repayment repayment) { @@ -365,8 +360,7 @@ public CapitalGrant repayment(Repayment repayment) { /** * Get repayment - * - * @return repayment + * @return repayment */ @JsonProperty(JSON_PROPERTY_REPAYMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -377,7 +371,7 @@ public Repayment getRepayment() { /** * repayment * - * @param repayment + * @param repayment */ @JsonProperty(JSON_PROPERTY_REPAYMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -386,11 +380,9 @@ public void setRepayment(Repayment repayment) { } /** - * The current status of the grant. Possible values: **Pending**, **Active**, **Repaid**, - * **WrittenOff**, **Failed**, **Revoked**. + * The current status of the grant. Possible values: **Pending**, **Active**, **Repaid**, **WrittenOff**, **Failed**, **Revoked**. * - * @param status The current status of the grant. Possible values: **Pending**, **Active**, - * **Repaid**, **WrittenOff**, **Failed**, **Revoked**. + * @param status The current status of the grant. Possible values: **Pending**, **Active**, **Repaid**, **WrittenOff**, **Failed**, **Revoked**. * @return the current {@code CapitalGrant} instance, allowing for method chaining */ public CapitalGrant status(StatusEnum status) { @@ -399,11 +391,8 @@ public CapitalGrant status(StatusEnum status) { } /** - * The current status of the grant. Possible values: **Pending**, **Active**, **Repaid**, - * **WrittenOff**, **Failed**, **Revoked**. - * - * @return status The current status of the grant. Possible values: **Pending**, **Active**, - * **Repaid**, **WrittenOff**, **Failed**, **Revoked**. + * The current status of the grant. Possible values: **Pending**, **Active**, **Repaid**, **WrittenOff**, **Failed**, **Revoked**. + * @return status The current status of the grant. Possible values: **Pending**, **Active**, **Repaid**, **WrittenOff**, **Failed**, **Revoked**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -412,11 +401,9 @@ public StatusEnum getStatus() { } /** - * The current status of the grant. Possible values: **Pending**, **Active**, **Repaid**, - * **WrittenOff**, **Failed**, **Revoked**. + * The current status of the grant. Possible values: **Pending**, **Active**, **Repaid**, **WrittenOff**, **Failed**, **Revoked**. * - * @param status The current status of the grant. Possible values: **Pending**, **Active**, - * **Repaid**, **WrittenOff**, **Failed**, **Revoked**. + * @param status The current status of the grant. Possible values: **Pending**, **Active**, **Repaid**, **WrittenOff**, **Failed**, **Revoked**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -424,7 +411,9 @@ public void setStatus(StatusEnum status) { this.status = status; } - /** Return true if this CapitalGrant object is equal to o. */ + /** + * Return true if this CapitalGrant object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -434,21 +423,20 @@ public boolean equals(Object o) { return false; } CapitalGrant capitalGrant = (CapitalGrant) o; - return Objects.equals(this.amount, capitalGrant.amount) - && Objects.equals(this.balances, capitalGrant.balances) - && Objects.equals(this.counterparty, capitalGrant.counterparty) - && Objects.equals(this.fee, capitalGrant.fee) - && Objects.equals(this.grantAccountId, capitalGrant.grantAccountId) - && Objects.equals(this.grantOfferId, capitalGrant.grantOfferId) - && Objects.equals(this.id, capitalGrant.id) - && Objects.equals(this.repayment, capitalGrant.repayment) - && Objects.equals(this.status, capitalGrant.status); + return Objects.equals(this.amount, capitalGrant.amount) && + Objects.equals(this.balances, capitalGrant.balances) && + Objects.equals(this.counterparty, capitalGrant.counterparty) && + Objects.equals(this.fee, capitalGrant.fee) && + Objects.equals(this.grantAccountId, capitalGrant.grantAccountId) && + Objects.equals(this.grantOfferId, capitalGrant.grantOfferId) && + Objects.equals(this.id, capitalGrant.id) && + Objects.equals(this.repayment, capitalGrant.repayment) && + Objects.equals(this.status, capitalGrant.status); } @Override public int hashCode() { - return Objects.hash( - amount, balances, counterparty, fee, grantAccountId, grantOfferId, id, repayment, status); + return Objects.hash(amount, balances, counterparty, fee, grantAccountId, grantOfferId, id, repayment, status); } @Override @@ -469,7 +457,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -478,7 +467,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CapitalGrant given an JSON string * * @param jsonString JSON string @@ -488,12 +477,11 @@ private String toIndentedString(Object o) { public static CapitalGrant fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapitalGrant.class); } - - /** - * Convert an instance of CapitalGrant to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CapitalGrant to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/CapitalGrantInfo.java b/src/main/java/com/adyen/model/transfers/CapitalGrantInfo.java index 2ba854c7f..4a8626b01 100644 --- a/src/main/java/com/adyen/model/transfers/CapitalGrantInfo.java +++ b/src/main/java/com/adyen/model/transfers/CapitalGrantInfo.java @@ -2,27 +2,38 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.Counterparty; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** CapitalGrantInfo */ + +/** + * CapitalGrantInfo + */ @JsonPropertyOrder({ CapitalGrantInfo.JSON_PROPERTY_COUNTERPARTY, CapitalGrantInfo.JSON_PROPERTY_GRANT_ACCOUNT_ID, CapitalGrantInfo.JSON_PROPERTY_GRANT_OFFER_ID }) + public class CapitalGrantInfo { public static final String JSON_PROPERTY_COUNTERPARTY = "counterparty"; private Counterparty counterparty; @@ -33,12 +44,13 @@ public class CapitalGrantInfo { public static final String JSON_PROPERTY_GRANT_OFFER_ID = "grantOfferId"; private String grantOfferId; - public CapitalGrantInfo() {} + public CapitalGrantInfo() { + } /** * counterparty * - * @param counterparty + * @param counterparty * @return the current {@code CapitalGrantInfo} instance, allowing for method chaining */ public CapitalGrantInfo counterparty(Counterparty counterparty) { @@ -48,8 +60,7 @@ public CapitalGrantInfo counterparty(Counterparty counterparty) { /** * Get counterparty - * - * @return counterparty + * @return counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,7 +71,7 @@ public Counterparty getCounterparty() { /** * counterparty * - * @param counterparty + * @param counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -81,7 +92,6 @@ public CapitalGrantInfo grantAccountId(String grantAccountId) { /** * The identifier of the grant account used for the grant. - * * @return grantAccountId The identifier of the grant account used for the grant. */ @JsonProperty(JSON_PROPERTY_GRANT_ACCOUNT_ID) @@ -102,11 +112,9 @@ public void setGrantAccountId(String grantAccountId) { } /** - * The identifier of the grant offer that has been selected and from which the grant details will - * be used. + * The identifier of the grant offer that has been selected and from which the grant details will be used. * - * @param grantOfferId The identifier of the grant offer that has been selected and from which the - * grant details will be used. + * @param grantOfferId The identifier of the grant offer that has been selected and from which the grant details will be used. * @return the current {@code CapitalGrantInfo} instance, allowing for method chaining */ public CapitalGrantInfo grantOfferId(String grantOfferId) { @@ -115,11 +123,8 @@ public CapitalGrantInfo grantOfferId(String grantOfferId) { } /** - * The identifier of the grant offer that has been selected and from which the grant details will - * be used. - * - * @return grantOfferId The identifier of the grant offer that has been selected and from which - * the grant details will be used. + * The identifier of the grant offer that has been selected and from which the grant details will be used. + * @return grantOfferId The identifier of the grant offer that has been selected and from which the grant details will be used. */ @JsonProperty(JSON_PROPERTY_GRANT_OFFER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,11 +133,9 @@ public String getGrantOfferId() { } /** - * The identifier of the grant offer that has been selected and from which the grant details will - * be used. + * The identifier of the grant offer that has been selected and from which the grant details will be used. * - * @param grantOfferId The identifier of the grant offer that has been selected and from which the - * grant details will be used. + * @param grantOfferId The identifier of the grant offer that has been selected and from which the grant details will be used. */ @JsonProperty(JSON_PROPERTY_GRANT_OFFER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,7 +143,9 @@ public void setGrantOfferId(String grantOfferId) { this.grantOfferId = grantOfferId; } - /** Return true if this CapitalGrantInfo object is equal to o. */ + /** + * Return true if this CapitalGrantInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -150,9 +155,9 @@ public boolean equals(Object o) { return false; } CapitalGrantInfo capitalGrantInfo = (CapitalGrantInfo) o; - return Objects.equals(this.counterparty, capitalGrantInfo.counterparty) - && Objects.equals(this.grantAccountId, capitalGrantInfo.grantAccountId) - && Objects.equals(this.grantOfferId, capitalGrantInfo.grantOfferId); + return Objects.equals(this.counterparty, capitalGrantInfo.counterparty) && + Objects.equals(this.grantAccountId, capitalGrantInfo.grantAccountId) && + Objects.equals(this.grantOfferId, capitalGrantInfo.grantOfferId); } @Override @@ -172,7 +177,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -181,7 +187,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CapitalGrantInfo given an JSON string * * @param jsonString JSON string @@ -191,12 +197,11 @@ private String toIndentedString(Object o) { public static CapitalGrantInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapitalGrantInfo.class); } - - /** - * Convert an instance of CapitalGrantInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CapitalGrantInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/CapitalGrants.java b/src/main/java/com/adyen/model/transfers/CapitalGrants.java index d3587db82..040e0cbe7 100644 --- a/src/main/java/com/adyen/model/transfers/CapitalGrants.java +++ b/src/main/java/com/adyen/model/transfers/CapitalGrants.java @@ -2,30 +2,44 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.CapitalGrant; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * CapitalGrants + */ +@JsonPropertyOrder({ + CapitalGrants.JSON_PROPERTY_GRANTS +}) -/** CapitalGrants */ -@JsonPropertyOrder({CapitalGrants.JSON_PROPERTY_GRANTS}) public class CapitalGrants { public static final String JSON_PROPERTY_GRANTS = "grants"; private List grants; - public CapitalGrants() {} + public CapitalGrants() { + } /** * The unique identifier of the grant. @@ -48,7 +62,6 @@ public CapitalGrants addGrantsItem(CapitalGrant grantsItem) { /** * The unique identifier of the grant. - * * @return grants The unique identifier of the grant. */ @JsonProperty(JSON_PROPERTY_GRANTS) @@ -68,7 +81,9 @@ public void setGrants(List grants) { this.grants = grants; } - /** Return true if this CapitalGrants object is equal to o. */ + /** + * Return true if this CapitalGrants object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -96,7 +111,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -105,7 +121,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CapitalGrants given an JSON string * * @param jsonString JSON string @@ -115,12 +131,11 @@ private String toIndentedString(Object o) { public static CapitalGrants fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapitalGrants.class); } - - /** - * Convert an instance of CapitalGrants to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CapitalGrants to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/Card.java b/src/main/java/com/adyen/model/transfers/Card.java index cc75ab40a..97fe04079 100644 --- a/src/main/java/com/adyen/model/transfers/Card.java +++ b/src/main/java/com/adyen/model/transfers/Card.java @@ -2,23 +2,38 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.CardIdentification; +import com.adyen.model.transfers.PartyIdentification; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Card */ -@JsonPropertyOrder({Card.JSON_PROPERTY_CARD_HOLDER, Card.JSON_PROPERTY_CARD_IDENTIFICATION}) + +/** + * Card + */ +@JsonPropertyOrder({ + Card.JSON_PROPERTY_CARD_HOLDER, + Card.JSON_PROPERTY_CARD_IDENTIFICATION +}) + public class Card { public static final String JSON_PROPERTY_CARD_HOLDER = "cardHolder"; private PartyIdentification cardHolder; @@ -26,12 +41,13 @@ public class Card { public static final String JSON_PROPERTY_CARD_IDENTIFICATION = "cardIdentification"; private CardIdentification cardIdentification; - public Card() {} + public Card() { + } /** * cardHolder * - * @param cardHolder + * @param cardHolder * @return the current {@code Card} instance, allowing for method chaining */ public Card cardHolder(PartyIdentification cardHolder) { @@ -41,8 +57,7 @@ public Card cardHolder(PartyIdentification cardHolder) { /** * Get cardHolder - * - * @return cardHolder + * @return cardHolder */ @JsonProperty(JSON_PROPERTY_CARD_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -53,7 +68,7 @@ public PartyIdentification getCardHolder() { /** * cardHolder * - * @param cardHolder + * @param cardHolder */ @JsonProperty(JSON_PROPERTY_CARD_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,7 +79,7 @@ public void setCardHolder(PartyIdentification cardHolder) { /** * cardIdentification * - * @param cardIdentification + * @param cardIdentification * @return the current {@code Card} instance, allowing for method chaining */ public Card cardIdentification(CardIdentification cardIdentification) { @@ -74,8 +89,7 @@ public Card cardIdentification(CardIdentification cardIdentification) { /** * Get cardIdentification - * - * @return cardIdentification + * @return cardIdentification */ @JsonProperty(JSON_PROPERTY_CARD_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -86,7 +100,7 @@ public CardIdentification getCardIdentification() { /** * cardIdentification * - * @param cardIdentification + * @param cardIdentification */ @JsonProperty(JSON_PROPERTY_CARD_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,7 +108,9 @@ public void setCardIdentification(CardIdentification cardIdentification) { this.cardIdentification = cardIdentification; } - /** Return true if this Card object is equal to o. */ + /** + * Return true if this Card object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -104,8 +120,8 @@ public boolean equals(Object o) { return false; } Card card = (Card) o; - return Objects.equals(this.cardHolder, card.cardHolder) - && Objects.equals(this.cardIdentification, card.cardIdentification); + return Objects.equals(this.cardHolder, card.cardHolder) && + Objects.equals(this.cardIdentification, card.cardIdentification); } @Override @@ -124,7 +140,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,7 +150,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Card given an JSON string * * @param jsonString JSON string @@ -143,12 +160,11 @@ private String toIndentedString(Object o) { public static Card fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Card.class); } - - /** - * Convert an instance of Card to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Card to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/CardIdentification.java b/src/main/java/com/adyen/model/transfers/CardIdentification.java index 01ae824fd..a7c24750d 100644 --- a/src/main/java/com/adyen/model/transfers/CardIdentification.java +++ b/src/main/java/com/adyen/model/transfers/CardIdentification.java @@ -2,22 +2,31 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** CardIdentification */ + +/** + * CardIdentification + */ @JsonPropertyOrder({ CardIdentification.JSON_PROPERTY_EXPIRY_MONTH, CardIdentification.JSON_PROPERTY_EXPIRY_YEAR, @@ -27,6 +36,7 @@ CardIdentification.JSON_PROPERTY_START_YEAR, CardIdentification.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID }) + public class CardIdentification { public static final String JSON_PROPERTY_EXPIRY_MONTH = "expiryMonth"; private String expiryMonth; @@ -49,14 +59,13 @@ public class CardIdentification { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - public CardIdentification() {} + public CardIdentification() { + } /** - * The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. - * For example: * 03 = March * 11 = November + * The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November * - * @param expiryMonth The expiry month of the card. Format: two digits. Add a leading zero for - * single-digit months. For example: * 03 = March * 11 = November + * @param expiryMonth The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November * @return the current {@code CardIdentification} instance, allowing for method chaining */ public CardIdentification expiryMonth(String expiryMonth) { @@ -65,11 +74,8 @@ public CardIdentification expiryMonth(String expiryMonth) { } /** - * The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. - * For example: * 03 = March * 11 = November - * - * @return expiryMonth The expiry month of the card. Format: two digits. Add a leading zero for - * single-digit months. For example: * 03 = March * 11 = November + * The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November + * @return expiryMonth The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -78,11 +84,9 @@ public String getExpiryMonth() { } /** - * The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. - * For example: * 03 = March * 11 = November + * The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November * - * @param expiryMonth The expiry month of the card. Format: two digits. Add a leading zero for - * single-digit months. For example: * 03 = March * 11 = November + * @param expiryMonth The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -91,9 +95,9 @@ public void setExpiryMonth(String expiryMonth) { } /** - * The expiry year of the card. Format: four digits. For example: 2020 + * The expiry year of the card. Format: four digits. For example: 2020 * - * @param expiryYear The expiry year of the card. Format: four digits. For example: 2020 + * @param expiryYear The expiry year of the card. Format: four digits. For example: 2020 * @return the current {@code CardIdentification} instance, allowing for method chaining */ public CardIdentification expiryYear(String expiryYear) { @@ -102,9 +106,8 @@ public CardIdentification expiryYear(String expiryYear) { } /** - * The expiry year of the card. Format: four digits. For example: 2020 - * - * @return expiryYear The expiry year of the card. Format: four digits. For example: 2020 + * The expiry year of the card. Format: four digits. For example: 2020 + * @return expiryYear The expiry year of the card. Format: four digits. For example: 2020 */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,9 +116,9 @@ public String getExpiryYear() { } /** - * The expiry year of the card. Format: four digits. For example: 2020 + * The expiry year of the card. Format: four digits. For example: 2020 * - * @param expiryYear The expiry year of the card. Format: four digits. For example: 2020 + * @param expiryYear The expiry year of the card. Format: four digits. For example: 2020 */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,7 +139,6 @@ public CardIdentification issueNumber(String issueNumber) { /** * The issue number of the card. Applies only to some UK debit cards. - * * @return issueNumber The issue number of the card. Applies only to some UK debit cards. */ @JsonProperty(JSON_PROPERTY_ISSUE_NUMBER) @@ -157,11 +159,9 @@ public void setIssueNumber(String issueNumber) { } /** - * The card number without any separators. For security, the response only includes the last four - * digits of the card number. + * The card number without any separators. For security, the response only includes the last four digits of the card number. * - * @param number The card number without any separators. For security, the response only includes - * the last four digits of the card number. + * @param number The card number without any separators. For security, the response only includes the last four digits of the card number. * @return the current {@code CardIdentification} instance, allowing for method chaining */ public CardIdentification number(String number) { @@ -170,11 +170,8 @@ public CardIdentification number(String number) { } /** - * The card number without any separators. For security, the response only includes the last four - * digits of the card number. - * - * @return number The card number without any separators. For security, the response only includes - * the last four digits of the card number. + * The card number without any separators. For security, the response only includes the last four digits of the card number. + * @return number The card number without any separators. For security, the response only includes the last four digits of the card number. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,11 +180,9 @@ public String getNumber() { } /** - * The card number without any separators. For security, the response only includes the last four - * digits of the card number. + * The card number without any separators. For security, the response only includes the last four digits of the card number. * - * @param number The card number without any separators. For security, the response only includes - * the last four digits of the card number. + * @param number The card number without any separators. For security, the response only includes the last four digits of the card number. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -196,12 +191,9 @@ public void setNumber(String number) { } /** - * The month when the card was issued. Applies only to some UK debit cards. Format: two digits. - * Add a leading zero for single-digit months. For example: * 03 = March * 11 = November + * The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November * - * @param startMonth The month when the card was issued. Applies only to some UK debit cards. - * Format: two digits. Add a leading zero for single-digit months. For example: * 03 = - * March * 11 = November + * @param startMonth The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November * @return the current {@code CardIdentification} instance, allowing for method chaining */ public CardIdentification startMonth(String startMonth) { @@ -210,12 +202,8 @@ public CardIdentification startMonth(String startMonth) { } /** - * The month when the card was issued. Applies only to some UK debit cards. Format: two digits. - * Add a leading zero for single-digit months. For example: * 03 = March * 11 = November - * - * @return startMonth The month when the card was issued. Applies only to some UK debit cards. - * Format: two digits. Add a leading zero for single-digit months. For example: * 03 = - * March * 11 = November + * The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November + * @return startMonth The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November */ @JsonProperty(JSON_PROPERTY_START_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,12 +212,9 @@ public String getStartMonth() { } /** - * The month when the card was issued. Applies only to some UK debit cards. Format: two digits. - * Add a leading zero for single-digit months. For example: * 03 = March * 11 = November + * The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November * - * @param startMonth The month when the card was issued. Applies only to some UK debit cards. - * Format: two digits. Add a leading zero for single-digit months. For example: * 03 = - * March * 11 = November + * @param startMonth The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November */ @JsonProperty(JSON_PROPERTY_START_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -238,11 +223,9 @@ public void setStartMonth(String startMonth) { } /** - * The year when the card was issued. Applies only to some UK debit cards. Format: four digits. - * For example: 2020 + * The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020 * - * @param startYear The year when the card was issued. Applies only to some UK debit cards. - * Format: four digits. For example: 2020 + * @param startYear The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020 * @return the current {@code CardIdentification} instance, allowing for method chaining */ public CardIdentification startYear(String startYear) { @@ -251,11 +234,8 @@ public CardIdentification startYear(String startYear) { } /** - * The year when the card was issued. Applies only to some UK debit cards. Format: four digits. - * For example: 2020 - * - * @return startYear The year when the card was issued. Applies only to some UK debit cards. - * Format: four digits. For example: 2020 + * The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020 + * @return startYear The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020 */ @JsonProperty(JSON_PROPERTY_START_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -264,11 +244,9 @@ public String getStartYear() { } /** - * The year when the card was issued. Applies only to some UK debit cards. Format: four digits. - * For example: 2020 + * The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020 * - * @param startYear The year when the card was issued. Applies only to some UK debit cards. - * Format: four digits. For example: 2020 + * @param startYear The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020 */ @JsonProperty(JSON_PROPERTY_START_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -277,13 +255,9 @@ public void setStartYear(String startYear) { } /** - * The unique - * [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) - * created to identify the counterparty. + * The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty. * - * @param storedPaymentMethodId The unique - * [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) - * created to identify the counterparty. + * @param storedPaymentMethodId The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty. * @return the current {@code CardIdentification} instance, allowing for method chaining */ public CardIdentification storedPaymentMethodId(String storedPaymentMethodId) { @@ -292,13 +266,8 @@ public CardIdentification storedPaymentMethodId(String storedPaymentMethodId) { } /** - * The unique - * [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) - * created to identify the counterparty. - * - * @return storedPaymentMethodId The unique - * [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) - * created to identify the counterparty. + * The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty. + * @return storedPaymentMethodId The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -307,13 +276,9 @@ public String getStoredPaymentMethodId() { } /** - * The unique - * [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) - * created to identify the counterparty. + * The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty. * - * @param storedPaymentMethodId The unique - * [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) - * created to identify the counterparty. + * @param storedPaymentMethodId The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -321,7 +286,9 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { this.storedPaymentMethodId = storedPaymentMethodId; } - /** Return true if this CardIdentification object is equal to o. */ + /** + * Return true if this CardIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -331,19 +298,18 @@ public boolean equals(Object o) { return false; } CardIdentification cardIdentification = (CardIdentification) o; - return Objects.equals(this.expiryMonth, cardIdentification.expiryMonth) - && Objects.equals(this.expiryYear, cardIdentification.expiryYear) - && Objects.equals(this.issueNumber, cardIdentification.issueNumber) - && Objects.equals(this.number, cardIdentification.number) - && Objects.equals(this.startMonth, cardIdentification.startMonth) - && Objects.equals(this.startYear, cardIdentification.startYear) - && Objects.equals(this.storedPaymentMethodId, cardIdentification.storedPaymentMethodId); + return Objects.equals(this.expiryMonth, cardIdentification.expiryMonth) && + Objects.equals(this.expiryYear, cardIdentification.expiryYear) && + Objects.equals(this.issueNumber, cardIdentification.issueNumber) && + Objects.equals(this.number, cardIdentification.number) && + Objects.equals(this.startMonth, cardIdentification.startMonth) && + Objects.equals(this.startYear, cardIdentification.startYear) && + Objects.equals(this.storedPaymentMethodId, cardIdentification.storedPaymentMethodId); } @Override public int hashCode() { - return Objects.hash( - expiryMonth, expiryYear, issueNumber, number, startMonth, startYear, storedPaymentMethodId); + return Objects.hash(expiryMonth, expiryYear, issueNumber, number, startMonth, startYear, storedPaymentMethodId); } @Override @@ -356,15 +322,14 @@ public String toString() { sb.append(" number: ").append(toIndentedString(number)).append("\n"); sb.append(" startMonth: ").append(toIndentedString(startMonth)).append("\n"); sb.append(" startYear: ").append(toIndentedString(startYear)).append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -373,23 +338,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CardIdentification given an JSON string * * @param jsonString JSON string * @return An instance of CardIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CardIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to CardIdentification */ public static CardIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardIdentification.class); } - - /** - * Convert an instance of CardIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CardIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/ConfirmationTrackingData.java b/src/main/java/com/adyen/model/transfers/ConfirmationTrackingData.java index 85941cad7..f1e680fd9 100644 --- a/src/main/java/com/adyen/model/transfers/ConfirmationTrackingData.java +++ b/src/main/java/com/adyen/model/transfers/ConfirmationTrackingData.java @@ -2,36 +2,42 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ConfirmationTrackingData */ +/** + * ConfirmationTrackingData + */ @JsonPropertyOrder({ ConfirmationTrackingData.JSON_PROPERTY_STATUS, ConfirmationTrackingData.JSON_PROPERTY_TYPE }) + public class ConfirmationTrackingData { /** - * The status of the transfer. Possible values: - **credited**: the funds are credited to your - * user's transfer instrument or bank account. + * The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. */ public enum StatusEnum { + CREDITED(String.valueOf("credited")); private static final Logger LOG = Logger.getLogger(StatusEnum.class.getName()); @@ -39,7 +45,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +66,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -73,10 +75,10 @@ public static StatusEnum fromValue(String value) { private StatusEnum status; /** - * The type of the tracking event. Possible values: - **confirmation**: the transfer passed - * Adyen's internal review. + * The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. */ public enum TypeEnum { + CONFIRMATION(String.valueOf("confirmation")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -84,7 +86,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -105,11 +107,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -117,14 +115,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public ConfirmationTrackingData() {} + public ConfirmationTrackingData() { + } /** - * The status of the transfer. Possible values: - **credited**: the funds are credited to your - * user's transfer instrument or bank account. + * The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. * - * @param status The status of the transfer. Possible values: - **credited**: the funds are - * credited to your user's transfer instrument or bank account. + * @param status The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. * @return the current {@code ConfirmationTrackingData} instance, allowing for method chaining */ public ConfirmationTrackingData status(StatusEnum status) { @@ -133,11 +130,8 @@ public ConfirmationTrackingData status(StatusEnum status) { } /** - * The status of the transfer. Possible values: - **credited**: the funds are credited to your - * user's transfer instrument or bank account. - * - * @return status The status of the transfer. Possible values: - **credited**: the funds are - * credited to your user's transfer instrument or bank account. + * The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. + * @return status The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,11 +140,9 @@ public StatusEnum getStatus() { } /** - * The status of the transfer. Possible values: - **credited**: the funds are credited to your - * user's transfer instrument or bank account. + * The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. * - * @param status The status of the transfer. Possible values: - **credited**: the funds are - * credited to your user's transfer instrument or bank account. + * @param status The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,11 +151,9 @@ public void setStatus(StatusEnum status) { } /** - * The type of the tracking event. Possible values: - **confirmation**: the transfer passed - * Adyen's internal review. + * The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. * - * @param type The type of the tracking event. Possible values: - **confirmation**: the transfer - * passed Adyen's internal review. + * @param type The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. * @return the current {@code ConfirmationTrackingData} instance, allowing for method chaining */ public ConfirmationTrackingData type(TypeEnum type) { @@ -172,11 +162,8 @@ public ConfirmationTrackingData type(TypeEnum type) { } /** - * The type of the tracking event. Possible values: - **confirmation**: the transfer passed - * Adyen's internal review. - * - * @return type The type of the tracking event. Possible values: - **confirmation**: the transfer - * passed Adyen's internal review. + * The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. + * @return type The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,11 +172,9 @@ public TypeEnum getType() { } /** - * The type of the tracking event. Possible values: - **confirmation**: the transfer passed - * Adyen's internal review. + * The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. * - * @param type The type of the tracking event. Possible values: - **confirmation**: the transfer - * passed Adyen's internal review. + * @param type The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -197,7 +182,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this ConfirmationTrackingData object is equal to o. */ + /** + * Return true if this ConfirmationTrackingData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -207,8 +194,8 @@ public boolean equals(Object o) { return false; } ConfirmationTrackingData confirmationTrackingData = (ConfirmationTrackingData) o; - return Objects.equals(this.status, confirmationTrackingData.status) - && Objects.equals(this.type, confirmationTrackingData.type); + return Objects.equals(this.status, confirmationTrackingData.status) && + Objects.equals(this.type, confirmationTrackingData.type); } @Override @@ -227,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -236,24 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ConfirmationTrackingData given an JSON string * * @param jsonString JSON string * @return An instance of ConfirmationTrackingData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ConfirmationTrackingData + * @throws JsonProcessingException if the JSON string is invalid with respect to ConfirmationTrackingData */ - public static ConfirmationTrackingData fromJson(String jsonString) - throws JsonProcessingException { + public static ConfirmationTrackingData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ConfirmationTrackingData.class); } - - /** - * Convert an instance of ConfirmationTrackingData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ConfirmationTrackingData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/Counterparty.java b/src/main/java/com/adyen/model/transfers/Counterparty.java index d7776c09c..e19c9d660 100644 --- a/src/main/java/com/adyen/model/transfers/Counterparty.java +++ b/src/main/java/com/adyen/model/transfers/Counterparty.java @@ -2,27 +2,37 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Counterparty */ + +/** + * Counterparty + */ @JsonPropertyOrder({ Counterparty.JSON_PROPERTY_ACCOUNT_HOLDER_ID, Counterparty.JSON_PROPERTY_BALANCE_ACCOUNT_ID, Counterparty.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID }) + public class Counterparty { public static final String JSON_PROPERTY_ACCOUNT_HOLDER_ID = "accountHolderId"; private String accountHolderId; @@ -33,15 +43,13 @@ public class Counterparty { public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_ID = "transferInstrumentId"; private String transferInstrumentId; - public Counterparty() {} + public Counterparty() { + } /** - * The identifier of the receiving account holder. The payout will default to the primary balance - * account of this account holder if no `balanceAccountId` is provided. + * The identifier of the receiving account holder. The payout will default to the primary balance account of this account holder if no `balanceAccountId` is provided. * - * @param accountHolderId The identifier of the receiving account holder. The payout will default - * to the primary balance account of this account holder if no `balanceAccountId` is - * provided. + * @param accountHolderId The identifier of the receiving account holder. The payout will default to the primary balance account of this account holder if no `balanceAccountId` is provided. * @return the current {@code Counterparty} instance, allowing for method chaining */ public Counterparty accountHolderId(String accountHolderId) { @@ -50,12 +58,8 @@ public Counterparty accountHolderId(String accountHolderId) { } /** - * The identifier of the receiving account holder. The payout will default to the primary balance - * account of this account holder if no `balanceAccountId` is provided. - * - * @return accountHolderId The identifier of the receiving account holder. The payout will default - * to the primary balance account of this account holder if no `balanceAccountId` is - * provided. + * The identifier of the receiving account holder. The payout will default to the primary balance account of this account holder if no `balanceAccountId` is provided. + * @return accountHolderId The identifier of the receiving account holder. The payout will default to the primary balance account of this account holder if no `balanceAccountId` is provided. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,12 +68,9 @@ public String getAccountHolderId() { } /** - * The identifier of the receiving account holder. The payout will default to the primary balance - * account of this account holder if no `balanceAccountId` is provided. + * The identifier of the receiving account holder. The payout will default to the primary balance account of this account holder if no `balanceAccountId` is provided. * - * @param accountHolderId The identifier of the receiving account holder. The payout will default - * to the primary balance account of this account holder if no `balanceAccountId` is - * provided. + * @param accountHolderId The identifier of the receiving account holder. The payout will default to the primary balance account of this account holder if no `balanceAccountId` is provided. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,8 +81,7 @@ public void setAccountHolderId(String accountHolderId) { /** * The identifier of the balance account that belongs to the receiving account holder. * - * @param balanceAccountId The identifier of the balance account that belongs to the receiving - * account holder. + * @param balanceAccountId The identifier of the balance account that belongs to the receiving account holder. * @return the current {@code Counterparty} instance, allowing for method chaining */ public Counterparty balanceAccountId(String balanceAccountId) { @@ -91,9 +91,7 @@ public Counterparty balanceAccountId(String balanceAccountId) { /** * The identifier of the balance account that belongs to the receiving account holder. - * - * @return balanceAccountId The identifier of the balance account that belongs to the receiving - * account holder. + * @return balanceAccountId The identifier of the balance account that belongs to the receiving account holder. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,8 +102,7 @@ public String getBalanceAccountId() { /** * The identifier of the balance account that belongs to the receiving account holder. * - * @param balanceAccountId The identifier of the balance account that belongs to the receiving - * account holder. + * @param balanceAccountId The identifier of the balance account that belongs to the receiving account holder. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,11 +111,9 @@ public void setBalanceAccountId(String balanceAccountId) { } /** - * The identifier of the transfer instrument that belongs to the legal entity of the account - * holder. + * The identifier of the transfer instrument that belongs to the legal entity of the account holder. * - * @param transferInstrumentId The identifier of the transfer instrument that belongs to the legal - * entity of the account holder. + * @param transferInstrumentId The identifier of the transfer instrument that belongs to the legal entity of the account holder. * @return the current {@code Counterparty} instance, allowing for method chaining */ public Counterparty transferInstrumentId(String transferInstrumentId) { @@ -127,11 +122,8 @@ public Counterparty transferInstrumentId(String transferInstrumentId) { } /** - * The identifier of the transfer instrument that belongs to the legal entity of the account - * holder. - * - * @return transferInstrumentId The identifier of the transfer instrument that belongs to the - * legal entity of the account holder. + * The identifier of the transfer instrument that belongs to the legal entity of the account holder. + * @return transferInstrumentId The identifier of the transfer instrument that belongs to the legal entity of the account holder. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,11 +132,9 @@ public String getTransferInstrumentId() { } /** - * The identifier of the transfer instrument that belongs to the legal entity of the account - * holder. + * The identifier of the transfer instrument that belongs to the legal entity of the account holder. * - * @param transferInstrumentId The identifier of the transfer instrument that belongs to the legal - * entity of the account holder. + * @param transferInstrumentId The identifier of the transfer instrument that belongs to the legal entity of the account holder. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,7 +142,9 @@ public void setTransferInstrumentId(String transferInstrumentId) { this.transferInstrumentId = transferInstrumentId; } - /** Return true if this Counterparty object is equal to o. */ + /** + * Return true if this Counterparty object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -162,9 +154,9 @@ public boolean equals(Object o) { return false; } Counterparty counterparty = (Counterparty) o; - return Objects.equals(this.accountHolderId, counterparty.accountHolderId) - && Objects.equals(this.balanceAccountId, counterparty.balanceAccountId) - && Objects.equals(this.transferInstrumentId, counterparty.transferInstrumentId); + return Objects.equals(this.accountHolderId, counterparty.accountHolderId) && + Objects.equals(this.balanceAccountId, counterparty.balanceAccountId) && + Objects.equals(this.transferInstrumentId, counterparty.transferInstrumentId); } @Override @@ -178,15 +170,14 @@ public String toString() { sb.append("class Counterparty {\n"); sb.append(" accountHolderId: ").append(toIndentedString(accountHolderId)).append("\n"); sb.append(" balanceAccountId: ").append(toIndentedString(balanceAccountId)).append("\n"); - sb.append(" transferInstrumentId: ") - .append(toIndentedString(transferInstrumentId)) - .append("\n"); + sb.append(" transferInstrumentId: ").append(toIndentedString(transferInstrumentId)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -195,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Counterparty given an JSON string * * @param jsonString JSON string @@ -205,12 +196,11 @@ private String toIndentedString(Object o) { public static Counterparty fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Counterparty.class); } - - /** - * Convert an instance of Counterparty to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Counterparty to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/CounterpartyInfoV3.java b/src/main/java/com/adyen/model/transfers/CounterpartyInfoV3.java index ab07377da..9125176af 100644 --- a/src/main/java/com/adyen/model/transfers/CounterpartyInfoV3.java +++ b/src/main/java/com/adyen/model/transfers/CounterpartyInfoV3.java @@ -2,28 +2,40 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.BankAccountV3; +import com.adyen.model.transfers.Card; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** CounterpartyInfoV3 */ + +/** + * CounterpartyInfoV3 + */ @JsonPropertyOrder({ CounterpartyInfoV3.JSON_PROPERTY_BALANCE_ACCOUNT_ID, CounterpartyInfoV3.JSON_PROPERTY_BANK_ACCOUNT, CounterpartyInfoV3.JSON_PROPERTY_CARD, CounterpartyInfoV3.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID }) + public class CounterpartyInfoV3 { public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; @@ -37,14 +49,13 @@ public class CounterpartyInfoV3 { public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_ID = "transferInstrumentId"; private String transferInstrumentId; - public CounterpartyInfoV3() {} + public CounterpartyInfoV3() { + } /** - * The unique identifier of the counterparty [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). * - * @param balanceAccountId The unique identifier of the counterparty [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * @param balanceAccountId The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). * @return the current {@code CounterpartyInfoV3} instance, allowing for method chaining */ public CounterpartyInfoV3 balanceAccountId(String balanceAccountId) { @@ -53,11 +64,8 @@ public CounterpartyInfoV3 balanceAccountId(String balanceAccountId) { } /** - * The unique identifier of the counterparty [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). - * - * @return balanceAccountId The unique identifier of the counterparty [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * @return balanceAccountId The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -66,11 +74,9 @@ public String getBalanceAccountId() { } /** - * The unique identifier of the counterparty [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). * - * @param balanceAccountId The unique identifier of the counterparty [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * @param balanceAccountId The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -81,7 +87,7 @@ public void setBalanceAccountId(String balanceAccountId) { /** * bankAccount * - * @param bankAccount + * @param bankAccount * @return the current {@code CounterpartyInfoV3} instance, allowing for method chaining */ public CounterpartyInfoV3 bankAccount(BankAccountV3 bankAccount) { @@ -91,8 +97,7 @@ public CounterpartyInfoV3 bankAccount(BankAccountV3 bankAccount) { /** * Get bankAccount - * - * @return bankAccount + * @return bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -103,7 +108,7 @@ public BankAccountV3 getBankAccount() { /** * bankAccount * - * @param bankAccount + * @param bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,7 +119,7 @@ public void setBankAccount(BankAccountV3 bankAccount) { /** * card * - * @param card + * @param card * @return the current {@code CounterpartyInfoV3} instance, allowing for method chaining */ public CounterpartyInfoV3 card(Card card) { @@ -124,8 +129,7 @@ public CounterpartyInfoV3 card(Card card) { /** * Get card - * - * @return card + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,7 +140,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,11 +149,9 @@ public void setCard(Card card) { } /** - * The unique identifier of the counterparty [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). * - * @param transferInstrumentId The unique identifier of the counterparty [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * @param transferInstrumentId The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). * @return the current {@code CounterpartyInfoV3} instance, allowing for method chaining */ public CounterpartyInfoV3 transferInstrumentId(String transferInstrumentId) { @@ -158,11 +160,8 @@ public CounterpartyInfoV3 transferInstrumentId(String transferInstrumentId) { } /** - * The unique identifier of the counterparty [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). - * - * @return transferInstrumentId The unique identifier of the counterparty [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * @return transferInstrumentId The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -171,11 +170,9 @@ public String getTransferInstrumentId() { } /** - * The unique identifier of the counterparty [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). * - * @param transferInstrumentId The unique identifier of the counterparty [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * @param transferInstrumentId The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,7 +180,9 @@ public void setTransferInstrumentId(String transferInstrumentId) { this.transferInstrumentId = transferInstrumentId; } - /** Return true if this CounterpartyInfoV3 object is equal to o. */ + /** + * Return true if this CounterpartyInfoV3 object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -193,10 +192,10 @@ public boolean equals(Object o) { return false; } CounterpartyInfoV3 counterpartyInfoV3 = (CounterpartyInfoV3) o; - return Objects.equals(this.balanceAccountId, counterpartyInfoV3.balanceAccountId) - && Objects.equals(this.bankAccount, counterpartyInfoV3.bankAccount) - && Objects.equals(this.card, counterpartyInfoV3.card) - && Objects.equals(this.transferInstrumentId, counterpartyInfoV3.transferInstrumentId); + return Objects.equals(this.balanceAccountId, counterpartyInfoV3.balanceAccountId) && + Objects.equals(this.bankAccount, counterpartyInfoV3.bankAccount) && + Objects.equals(this.card, counterpartyInfoV3.card) && + Objects.equals(this.transferInstrumentId, counterpartyInfoV3.transferInstrumentId); } @Override @@ -211,15 +210,14 @@ public String toString() { sb.append(" balanceAccountId: ").append(toIndentedString(balanceAccountId)).append("\n"); sb.append(" bankAccount: ").append(toIndentedString(bankAccount)).append("\n"); sb.append(" card: ").append(toIndentedString(card)).append("\n"); - sb.append(" transferInstrumentId: ") - .append(toIndentedString(transferInstrumentId)) - .append("\n"); + sb.append(" transferInstrumentId: ").append(toIndentedString(transferInstrumentId)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -228,23 +226,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CounterpartyInfoV3 given an JSON string * * @param jsonString JSON string * @return An instance of CounterpartyInfoV3 - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CounterpartyInfoV3 + * @throws JsonProcessingException if the JSON string is invalid with respect to CounterpartyInfoV3 */ public static CounterpartyInfoV3 fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CounterpartyInfoV3.class); } - - /** - * Convert an instance of CounterpartyInfoV3 to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CounterpartyInfoV3 to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/CounterpartyV3.java b/src/main/java/com/adyen/model/transfers/CounterpartyV3.java index e9fb906e3..9c7671c4c 100644 --- a/src/main/java/com/adyen/model/transfers/CounterpartyV3.java +++ b/src/main/java/com/adyen/model/transfers/CounterpartyV3.java @@ -2,22 +2,34 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.BankAccountV3; +import com.adyen.model.transfers.Card; +import com.adyen.model.transfers.MerchantData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** CounterpartyV3 */ + +/** + * CounterpartyV3 + */ @JsonPropertyOrder({ CounterpartyV3.JSON_PROPERTY_BALANCE_ACCOUNT_ID, CounterpartyV3.JSON_PROPERTY_BANK_ACCOUNT, @@ -25,6 +37,7 @@ CounterpartyV3.JSON_PROPERTY_MERCHANT, CounterpartyV3.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID }) + public class CounterpartyV3 { public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; @@ -41,14 +54,13 @@ public class CounterpartyV3 { public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_ID = "transferInstrumentId"; private String transferInstrumentId; - public CounterpartyV3() {} + public CounterpartyV3() { + } /** - * The unique identifier of the counterparty [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). * - * @param balanceAccountId The unique identifier of the counterparty [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * @param balanceAccountId The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). * @return the current {@code CounterpartyV3} instance, allowing for method chaining */ public CounterpartyV3 balanceAccountId(String balanceAccountId) { @@ -57,11 +69,8 @@ public CounterpartyV3 balanceAccountId(String balanceAccountId) { } /** - * The unique identifier of the counterparty [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). - * - * @return balanceAccountId The unique identifier of the counterparty [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * @return balanceAccountId The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,11 +79,9 @@ public String getBalanceAccountId() { } /** - * The unique identifier of the counterparty [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). * - * @param balanceAccountId The unique identifier of the counterparty [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * @param balanceAccountId The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -85,7 +92,7 @@ public void setBalanceAccountId(String balanceAccountId) { /** * bankAccount * - * @param bankAccount + * @param bankAccount * @return the current {@code CounterpartyV3} instance, allowing for method chaining */ public CounterpartyV3 bankAccount(BankAccountV3 bankAccount) { @@ -95,8 +102,7 @@ public CounterpartyV3 bankAccount(BankAccountV3 bankAccount) { /** * Get bankAccount - * - * @return bankAccount + * @return bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,7 +113,7 @@ public BankAccountV3 getBankAccount() { /** * bankAccount * - * @param bankAccount + * @param bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,7 +124,7 @@ public void setBankAccount(BankAccountV3 bankAccount) { /** * card * - * @param card + * @param card * @return the current {@code CounterpartyV3} instance, allowing for method chaining */ public CounterpartyV3 card(Card card) { @@ -128,8 +134,7 @@ public CounterpartyV3 card(Card card) { /** * Get card - * - * @return card + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,7 +145,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,7 +156,7 @@ public void setCard(Card card) { /** * merchant * - * @param merchant + * @param merchant * @return the current {@code CounterpartyV3} instance, allowing for method chaining */ public CounterpartyV3 merchant(MerchantData merchant) { @@ -161,8 +166,7 @@ public CounterpartyV3 merchant(MerchantData merchant) { /** * Get merchant - * - * @return merchant + * @return merchant */ @JsonProperty(JSON_PROPERTY_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,7 +177,7 @@ public MerchantData getMerchant() { /** * merchant * - * @param merchant + * @param merchant */ @JsonProperty(JSON_PROPERTY_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,11 +186,9 @@ public void setMerchant(MerchantData merchant) { } /** - * The unique identifier of the counterparty [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). * - * @param transferInstrumentId The unique identifier of the counterparty [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * @param transferInstrumentId The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). * @return the current {@code CounterpartyV3} instance, allowing for method chaining */ public CounterpartyV3 transferInstrumentId(String transferInstrumentId) { @@ -195,11 +197,8 @@ public CounterpartyV3 transferInstrumentId(String transferInstrumentId) { } /** - * The unique identifier of the counterparty [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). - * - * @return transferInstrumentId The unique identifier of the counterparty [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * @return transferInstrumentId The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,11 +207,9 @@ public String getTransferInstrumentId() { } /** - * The unique identifier of the counterparty [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). * - * @param transferInstrumentId The unique identifier of the counterparty [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * @param transferInstrumentId The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -220,7 +217,9 @@ public void setTransferInstrumentId(String transferInstrumentId) { this.transferInstrumentId = transferInstrumentId; } - /** Return true if this CounterpartyV3 object is equal to o. */ + /** + * Return true if this CounterpartyV3 object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -230,11 +229,11 @@ public boolean equals(Object o) { return false; } CounterpartyV3 counterpartyV3 = (CounterpartyV3) o; - return Objects.equals(this.balanceAccountId, counterpartyV3.balanceAccountId) - && Objects.equals(this.bankAccount, counterpartyV3.bankAccount) - && Objects.equals(this.card, counterpartyV3.card) - && Objects.equals(this.merchant, counterpartyV3.merchant) - && Objects.equals(this.transferInstrumentId, counterpartyV3.transferInstrumentId); + return Objects.equals(this.balanceAccountId, counterpartyV3.balanceAccountId) && + Objects.equals(this.bankAccount, counterpartyV3.bankAccount) && + Objects.equals(this.card, counterpartyV3.card) && + Objects.equals(this.merchant, counterpartyV3.merchant) && + Objects.equals(this.transferInstrumentId, counterpartyV3.transferInstrumentId); } @Override @@ -250,15 +249,14 @@ public String toString() { sb.append(" bankAccount: ").append(toIndentedString(bankAccount)).append("\n"); sb.append(" card: ").append(toIndentedString(card)).append("\n"); sb.append(" merchant: ").append(toIndentedString(merchant)).append("\n"); - sb.append(" transferInstrumentId: ") - .append(toIndentedString(transferInstrumentId)) - .append("\n"); + sb.append(" transferInstrumentId: ").append(toIndentedString(transferInstrumentId)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -267,7 +265,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CounterpartyV3 given an JSON string * * @param jsonString JSON string @@ -277,12 +275,11 @@ private String toIndentedString(Object o) { public static CounterpartyV3 fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CounterpartyV3.class); } - - /** - * Convert an instance of CounterpartyV3 to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CounterpartyV3 to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/DKLocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/DKLocalAccountIdentification.java index 1531d3128..e61a25e89 100644 --- a/src/main/java/com/adyen/model/transfers/DKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/DKLocalAccountIdentification.java @@ -2,31 +2,37 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** DKLocalAccountIdentification */ + +/** + * DKLocalAccountIdentification + */ @JsonPropertyOrder({ DKLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, DKLocalAccountIdentification.JSON_PROPERTY_BANK_CODE, DKLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class DKLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -34,8 +40,11 @@ public class DKLocalAccountIdentification { public static final String JSON_PROPERTY_BANK_CODE = "bankCode"; private String bankCode; - /** **dkLocal** */ + /** + * **dkLocal** + */ public enum TypeEnum { + DKLOCAL(String.valueOf("dkLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -43,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -76,13 +81,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public DKLocalAccountIdentification() {} + public DKLocalAccountIdentification() { + } /** * The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). * - * @param accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or - * whitespace). + * @param accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). * @return the current {@code DKLocalAccountIdentification} instance, allowing for method chaining */ public DKLocalAccountIdentification accountNumber(String accountNumber) { @@ -92,9 +97,7 @@ public DKLocalAccountIdentification accountNumber(String accountNumber) { /** * The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). - * - * @return accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or - * whitespace). + * @return accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,8 +108,7 @@ public String getAccountNumber() { /** * The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). * - * @param accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or - * whitespace). + * @param accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,9 +129,7 @@ public DKLocalAccountIdentification bankCode(String bankCode) { /** * The 4-digit bank code (Registreringsnummer) (without separators or whitespace). - * - * @return bankCode The 4-digit bank code (Registreringsnummer) (without separators or - * whitespace). + * @return bankCode The 4-digit bank code (Registreringsnummer) (without separators or whitespace). */ @JsonProperty(JSON_PROPERTY_BANK_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,7 +161,6 @@ public DKLocalAccountIdentification type(TypeEnum type) { /** * **dkLocal** - * * @return type **dkLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -181,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this DKLocalAccountIdentification object is equal to o. */ + /** + * Return true if this DKLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -191,9 +192,9 @@ public boolean equals(Object o) { return false; } DKLocalAccountIdentification dkLocalAccountIdentification = (DKLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, dkLocalAccountIdentification.accountNumber) - && Objects.equals(this.bankCode, dkLocalAccountIdentification.bankCode) - && Objects.equals(this.type, dkLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, dkLocalAccountIdentification.accountNumber) && + Objects.equals(this.bankCode, dkLocalAccountIdentification.bankCode) && + Objects.equals(this.type, dkLocalAccountIdentification.type); } @Override @@ -213,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -222,24 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DKLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of DKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DKLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to DKLocalAccountIdentification */ - public static DKLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static DKLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DKLocalAccountIdentification.class); } - - /** - * Convert an instance of DKLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DKLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/DirectDebitInformation.java b/src/main/java/com/adyen/model/transfers/DirectDebitInformation.java index 957c0e11a..0560c1894 100644 --- a/src/main/java/com/adyen/model/transfers/DirectDebitInformation.java +++ b/src/main/java/com/adyen/model/transfers/DirectDebitInformation.java @@ -2,29 +2,39 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.time.OffsetDateTime; -import java.util.*; -/** DirectDebitInformation */ + +/** + * DirectDebitInformation + */ @JsonPropertyOrder({ DirectDebitInformation.JSON_PROPERTY_DATE_OF_SIGNATURE, DirectDebitInformation.JSON_PROPERTY_DUE_DATE, DirectDebitInformation.JSON_PROPERTY_MANDATE_ID, DirectDebitInformation.JSON_PROPERTY_SEQUENCE_TYPE }) + public class DirectDebitInformation { public static final String JSON_PROPERTY_DATE_OF_SIGNATURE = "dateOfSignature"; private OffsetDateTime dateOfSignature; @@ -38,14 +48,13 @@ public class DirectDebitInformation { public static final String JSON_PROPERTY_SEQUENCE_TYPE = "sequenceType"; private String sequenceType; - public DirectDebitInformation() {} + public DirectDebitInformation() { + } /** - * The date when the direct debit mandate was accepted by your user, in - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + * The date when the direct debit mandate was accepted by your user, in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. * - * @param dateOfSignature The date when the direct debit mandate was accepted by your user, in - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + * @param dateOfSignature The date when the direct debit mandate was accepted by your user, in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. * @return the current {@code DirectDebitInformation} instance, allowing for method chaining */ public DirectDebitInformation dateOfSignature(OffsetDateTime dateOfSignature) { @@ -54,11 +63,8 @@ public DirectDebitInformation dateOfSignature(OffsetDateTime dateOfSignature) { } /** - * The date when the direct debit mandate was accepted by your user, in - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. - * - * @return dateOfSignature The date when the direct debit mandate was accepted by your user, in - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + * The date when the direct debit mandate was accepted by your user, in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + * @return dateOfSignature The date when the direct debit mandate was accepted by your user, in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. */ @JsonProperty(JSON_PROPERTY_DATE_OF_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -67,11 +73,9 @@ public OffsetDateTime getDateOfSignature() { } /** - * The date when the direct debit mandate was accepted by your user, in - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + * The date when the direct debit mandate was accepted by your user, in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. * - * @param dateOfSignature The date when the direct debit mandate was accepted by your user, in - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + * @param dateOfSignature The date when the direct debit mandate was accepted by your user, in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. */ @JsonProperty(JSON_PROPERTY_DATE_OF_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -92,7 +96,6 @@ public DirectDebitInformation dueDate(OffsetDateTime dueDate) { /** * The date when the funds are deducted from your user's balance account. - * * @return dueDate The date when the funds are deducted from your user's balance account. */ @JsonProperty(JSON_PROPERTY_DUE_DATE) @@ -125,7 +128,6 @@ public DirectDebitInformation mandateId(String mandateId) { /** * Your unique identifier for the direct debit mandate. - * * @return mandateId Your unique identifier for the direct debit mandate. */ @JsonProperty(JSON_PROPERTY_MANDATE_ID) @@ -146,11 +148,9 @@ public void setMandateId(String mandateId) { } /** - * Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, - * **Recurring**, **Final**. + * Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, **Recurring**, **Final**. * - * @param sequenceType Identifies the direct debit transfer's type. Possible values: - * **OneOff**, **First**, **Recurring**, **Final**. + * @param sequenceType Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, **Recurring**, **Final**. * @return the current {@code DirectDebitInformation} instance, allowing for method chaining */ public DirectDebitInformation sequenceType(String sequenceType) { @@ -159,11 +159,8 @@ public DirectDebitInformation sequenceType(String sequenceType) { } /** - * Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, - * **Recurring**, **Final**. - * - * @return sequenceType Identifies the direct debit transfer's type. Possible values: - * **OneOff**, **First**, **Recurring**, **Final**. + * Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, **Recurring**, **Final**. + * @return sequenceType Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, **Recurring**, **Final**. */ @JsonProperty(JSON_PROPERTY_SEQUENCE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,11 +169,9 @@ public String getSequenceType() { } /** - * Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, - * **Recurring**, **Final**. + * Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, **Recurring**, **Final**. * - * @param sequenceType Identifies the direct debit transfer's type. Possible values: - * **OneOff**, **First**, **Recurring**, **Final**. + * @param sequenceType Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, **Recurring**, **Final**. */ @JsonProperty(JSON_PROPERTY_SEQUENCE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -184,7 +179,9 @@ public void setSequenceType(String sequenceType) { this.sequenceType = sequenceType; } - /** Return true if this DirectDebitInformation object is equal to o. */ + /** + * Return true if this DirectDebitInformation object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -194,10 +191,10 @@ public boolean equals(Object o) { return false; } DirectDebitInformation directDebitInformation = (DirectDebitInformation) o; - return Objects.equals(this.dateOfSignature, directDebitInformation.dateOfSignature) - && Objects.equals(this.dueDate, directDebitInformation.dueDate) - && Objects.equals(this.mandateId, directDebitInformation.mandateId) - && Objects.equals(this.sequenceType, directDebitInformation.sequenceType); + return Objects.equals(this.dateOfSignature, directDebitInformation.dateOfSignature) && + Objects.equals(this.dueDate, directDebitInformation.dueDate) && + Objects.equals(this.mandateId, directDebitInformation.mandateId) && + Objects.equals(this.sequenceType, directDebitInformation.sequenceType); } @Override @@ -218,7 +215,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -227,23 +225,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DirectDebitInformation given an JSON string * * @param jsonString JSON string * @return An instance of DirectDebitInformation - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DirectDebitInformation + * @throws JsonProcessingException if the JSON string is invalid with respect to DirectDebitInformation */ public static DirectDebitInformation fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DirectDebitInformation.class); } - - /** - * Convert an instance of DirectDebitInformation to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DirectDebitInformation to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/EstimationTrackingData.java b/src/main/java/com/adyen/model/transfers/EstimationTrackingData.java index f6242456e..e8cf0f7ff 100644 --- a/src/main/java/com/adyen/model/transfers/EstimationTrackingData.java +++ b/src/main/java/com/adyen/model/transfers/EstimationTrackingData.java @@ -2,40 +2,46 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** EstimationTrackingData */ +/** + * EstimationTrackingData + */ @JsonPropertyOrder({ EstimationTrackingData.JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME, EstimationTrackingData.JSON_PROPERTY_TYPE }) + public class EstimationTrackingData { public static final String JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME = "estimatedArrivalTime"; private OffsetDateTime estimatedArrivalTime; /** - * The type of tracking event. Possible values: - **estimation**: the estimated date and time of - * when the funds will be credited has been determined. + * The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. */ public enum TypeEnum { + ESTIMATION(String.valueOf("estimation")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -43,7 +49,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +70,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -76,7 +78,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public EstimationTrackingData() {} + public EstimationTrackingData() { + } /** * The estimated time the beneficiary should have access to the funds. @@ -91,9 +94,7 @@ public EstimationTrackingData estimatedArrivalTime(OffsetDateTime estimatedArriv /** * The estimated time the beneficiary should have access to the funds. - * - * @return estimatedArrivalTime The estimated time the beneficiary should have access to the - * funds. + * @return estimatedArrivalTime The estimated time the beneficiary should have access to the funds. */ @JsonProperty(JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,11 +114,9 @@ public void setEstimatedArrivalTime(OffsetDateTime estimatedArrivalTime) { } /** - * The type of tracking event. Possible values: - **estimation**: the estimated date and time of - * when the funds will be credited has been determined. + * The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. * - * @param type The type of tracking event. Possible values: - **estimation**: the estimated date - * and time of when the funds will be credited has been determined. + * @param type The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. * @return the current {@code EstimationTrackingData} instance, allowing for method chaining */ public EstimationTrackingData type(TypeEnum type) { @@ -126,11 +125,8 @@ public EstimationTrackingData type(TypeEnum type) { } /** - * The type of tracking event. Possible values: - **estimation**: the estimated date and time of - * when the funds will be credited has been determined. - * - * @return type The type of tracking event. Possible values: - **estimation**: the estimated date - * and time of when the funds will be credited has been determined. + * The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. + * @return type The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,11 +135,9 @@ public TypeEnum getType() { } /** - * The type of tracking event. Possible values: - **estimation**: the estimated date and time of - * when the funds will be credited has been determined. + * The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. * - * @param type The type of tracking event. Possible values: - **estimation**: the estimated date - * and time of when the funds will be credited has been determined. + * @param type The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,7 +145,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this EstimationTrackingData object is equal to o. */ + /** + * Return true if this EstimationTrackingData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -161,8 +157,8 @@ public boolean equals(Object o) { return false; } EstimationTrackingData estimationTrackingData = (EstimationTrackingData) o; - return Objects.equals(this.estimatedArrivalTime, estimationTrackingData.estimatedArrivalTime) - && Objects.equals(this.type, estimationTrackingData.type); + return Objects.equals(this.estimatedArrivalTime, estimationTrackingData.estimatedArrivalTime) && + Objects.equals(this.type, estimationTrackingData.type); } @Override @@ -174,16 +170,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class EstimationTrackingData {\n"); - sb.append(" estimatedArrivalTime: ") - .append(toIndentedString(estimatedArrivalTime)) - .append("\n"); + sb.append(" estimatedArrivalTime: ").append(toIndentedString(estimatedArrivalTime)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -192,23 +187,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of EstimationTrackingData given an JSON string * * @param jsonString JSON string * @return An instance of EstimationTrackingData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * EstimationTrackingData + * @throws JsonProcessingException if the JSON string is invalid with respect to EstimationTrackingData */ public static EstimationTrackingData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, EstimationTrackingData.class); } - - /** - * Convert an instance of EstimationTrackingData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of EstimationTrackingData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/ExecutionDate.java b/src/main/java/com/adyen/model/transfers/ExecutionDate.java index 7ad4cb2eb..eef76e023 100644 --- a/src/main/java/com/adyen/model/transfers/ExecutionDate.java +++ b/src/main/java/com/adyen/model/transfers/ExecutionDate.java @@ -2,24 +2,37 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.LocalDate; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.time.LocalDate; -import java.util.*; -/** ExecutionDate */ -@JsonPropertyOrder({ExecutionDate.JSON_PROPERTY_DATE, ExecutionDate.JSON_PROPERTY_TIMEZONE}) + +/** + * ExecutionDate + */ +@JsonPropertyOrder({ + ExecutionDate.JSON_PROPERTY_DATE, + ExecutionDate.JSON_PROPERTY_TIMEZONE +}) + public class ExecutionDate { public static final String JSON_PROPERTY_DATE = "date"; private LocalDate date; @@ -27,18 +40,13 @@ public class ExecutionDate { public static final String JSON_PROPERTY_TIMEZONE = "timezone"; private String timezone; - public ExecutionDate() {} + public ExecutionDate() { + } /** - * The date when the transfer will be processed. This date must be: * Within 30 days of the - * current date. * In the [ISO 8601 - * format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: - * 2025-01-31 + * The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31 * - * @param date The date when the transfer will be processed. This date must be: * Within 30 days - * of the current date. * In the [ISO 8601 - * format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For - * example: 2025-01-31 + * @param date The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31 * @return the current {@code ExecutionDate} instance, allowing for method chaining */ public ExecutionDate date(LocalDate date) { @@ -47,15 +55,8 @@ public ExecutionDate date(LocalDate date) { } /** - * The date when the transfer will be processed. This date must be: * Within 30 days of the - * current date. * In the [ISO 8601 - * format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: - * 2025-01-31 - * - * @return date The date when the transfer will be processed. This date must be: * Within 30 days - * of the current date. * In the [ISO 8601 - * format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For - * example: 2025-01-31 + * The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31 + * @return date The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31 */ @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,15 +65,9 @@ public LocalDate getDate() { } /** - * The date when the transfer will be processed. This date must be: * Within 30 days of the - * current date. * In the [ISO 8601 - * format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: - * 2025-01-31 + * The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31 * - * @param date The date when the transfer will be processed. This date must be: * Within 30 days - * of the current date. * In the [ISO 8601 - * format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For - * example: 2025-01-31 + * @param date The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31 */ @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -81,13 +76,9 @@ public void setDate(LocalDate date) { } /** - * The timezone that applies to the execution date. Use a timezone identifier from the [tz - * database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: - * **America/Los_Angeles**. Default value: **Europe/Amsterdam**. + * The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**. * - * @param timezone The timezone that applies to the execution date. Use a timezone identifier from - * the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: - * **America/Los_Angeles**. Default value: **Europe/Amsterdam**. + * @param timezone The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**. * @return the current {@code ExecutionDate} instance, allowing for method chaining */ public ExecutionDate timezone(String timezone) { @@ -96,13 +87,8 @@ public ExecutionDate timezone(String timezone) { } /** - * The timezone that applies to the execution date. Use a timezone identifier from the [tz - * database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: - * **America/Los_Angeles**. Default value: **Europe/Amsterdam**. - * - * @return timezone The timezone that applies to the execution date. Use a timezone identifier - * from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). - * Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**. + * The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**. + * @return timezone The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIMEZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,13 +97,9 @@ public String getTimezone() { } /** - * The timezone that applies to the execution date. Use a timezone identifier from the [tz - * database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: - * **America/Los_Angeles**. Default value: **Europe/Amsterdam**. + * The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**. * - * @param timezone The timezone that applies to the execution date. Use a timezone identifier from - * the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: - * **America/Los_Angeles**. Default value: **Europe/Amsterdam**. + * @param timezone The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIMEZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,7 +107,9 @@ public void setTimezone(String timezone) { this.timezone = timezone; } - /** Return true if this ExecutionDate object is equal to o. */ + /** + * Return true if this ExecutionDate object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -135,8 +119,8 @@ public boolean equals(Object o) { return false; } ExecutionDate executionDate = (ExecutionDate) o; - return Objects.equals(this.date, executionDate.date) - && Objects.equals(this.timezone, executionDate.timezone); + return Objects.equals(this.date, executionDate.date) && + Objects.equals(this.timezone, executionDate.timezone); } @Override @@ -155,7 +139,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -164,7 +149,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ExecutionDate given an JSON string * * @param jsonString JSON string @@ -174,12 +159,11 @@ private String toIndentedString(Object o) { public static ExecutionDate fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ExecutionDate.class); } - - /** - * Convert an instance of ExecutionDate to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ExecutionDate to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/ExternalReason.java b/src/main/java/com/adyen/model/transfers/ExternalReason.java index 24ddccc88..172668717 100644 --- a/src/main/java/com/adyen/model/transfers/ExternalReason.java +++ b/src/main/java/com/adyen/model/transfers/ExternalReason.java @@ -2,27 +2,37 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ExternalReason */ + +/** + * ExternalReason + */ @JsonPropertyOrder({ ExternalReason.JSON_PROPERTY_CODE, ExternalReason.JSON_PROPERTY_DESCRIPTION, ExternalReason.JSON_PROPERTY_NAMESPACE }) + public class ExternalReason { public static final String JSON_PROPERTY_CODE = "code"; private String code; @@ -33,7 +43,8 @@ public class ExternalReason { public static final String JSON_PROPERTY_NAMESPACE = "namespace"; private String namespace; - public ExternalReason() {} + public ExternalReason() { + } /** * The reason code. @@ -48,7 +59,6 @@ public ExternalReason code(String code) { /** * The reason code. - * * @return code The reason code. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -81,7 +91,6 @@ public ExternalReason description(String description) { /** * The description of the reason code. - * * @return description The description of the reason code. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -114,7 +123,6 @@ public ExternalReason namespace(String namespace) { /** * The namespace for the reason code. - * * @return namespace The namespace for the reason code. */ @JsonProperty(JSON_PROPERTY_NAMESPACE) @@ -134,7 +142,9 @@ public void setNamespace(String namespace) { this.namespace = namespace; } - /** Return true if this ExternalReason object is equal to o. */ + /** + * Return true if this ExternalReason object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,9 +154,9 @@ public boolean equals(Object o) { return false; } ExternalReason externalReason = (ExternalReason) o; - return Objects.equals(this.code, externalReason.code) - && Objects.equals(this.description, externalReason.description) - && Objects.equals(this.namespace, externalReason.namespace); + return Objects.equals(this.code, externalReason.code) && + Objects.equals(this.description, externalReason.description) && + Objects.equals(this.namespace, externalReason.namespace); } @Override @@ -166,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ExternalReason given an JSON string * * @param jsonString JSON string @@ -185,12 +196,11 @@ private String toIndentedString(Object o) { public static ExternalReason fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ExternalReason.class); } - - /** - * Convert an instance of ExternalReason to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ExternalReason to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/Fee.java b/src/main/java/com/adyen/model/transfers/Fee.java index f02f6f94b..d6b679326 100644 --- a/src/main/java/com/adyen/model/transfers/Fee.java +++ b/src/main/java/com/adyen/model/transfers/Fee.java @@ -2,33 +2,47 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Fee */ -@JsonPropertyOrder({Fee.JSON_PROPERTY_AMOUNT}) + +/** + * Fee + */ +@JsonPropertyOrder({ + Fee.JSON_PROPERTY_AMOUNT +}) + public class Fee { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; - public Fee() {} + public Fee() { + } /** * amount * - * @param amount + * @param amount * @return the current {@code Fee} instance, allowing for method chaining */ public Fee amount(Amount amount) { @@ -38,8 +52,7 @@ public Fee amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -50,7 +63,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,7 +71,9 @@ public void setAmount(Amount amount) { this.amount = amount; } - /** Return true if this Fee object is equal to o. */ + /** + * Return true if this Fee object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,7 +101,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,7 +111,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Fee given an JSON string * * @param jsonString JSON string @@ -105,12 +121,11 @@ private String toIndentedString(Object o) { public static Fee fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Fee.class); } - - /** - * Convert an instance of Fee to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Fee to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/FindTransfersResponse.java b/src/main/java/com/adyen/model/transfers/FindTransfersResponse.java index 3f5c2509c..d45c30201 100644 --- a/src/main/java/com/adyen/model/transfers/FindTransfersResponse.java +++ b/src/main/java/com/adyen/model/transfers/FindTransfersResponse.java @@ -2,28 +2,40 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.Links; +import com.adyen.model.transfers.TransferData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** FindTransfersResponse */ +/** + * FindTransfersResponse + */ @JsonPropertyOrder({ FindTransfersResponse.JSON_PROPERTY_LINKS, FindTransfersResponse.JSON_PROPERTY_DATA }) + public class FindTransfersResponse { public static final String JSON_PROPERTY_LINKS = "_links"; private Links links; @@ -31,12 +43,13 @@ public class FindTransfersResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; - public FindTransfersResponse() {} + public FindTransfersResponse() { + } /** * links * - * @param links + * @param links * @return the current {@code FindTransfersResponse} instance, allowing for method chaining */ public FindTransfersResponse links(Links links) { @@ -46,8 +59,7 @@ public FindTransfersResponse links(Links links) { /** * Get links - * - * @return links + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,7 +70,7 @@ public Links getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,7 +99,6 @@ public FindTransfersResponse addDataItem(TransferData dataItem) { /** * Contains the transfers that match the query parameters. - * * @return data Contains the transfers that match the query parameters. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -107,7 +118,9 @@ public void setData(List data) { this.data = data; } - /** Return true if this FindTransfersResponse object is equal to o. */ + /** + * Return true if this FindTransfersResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -117,8 +130,8 @@ public boolean equals(Object o) { return false; } FindTransfersResponse findTransfersResponse = (FindTransfersResponse) o; - return Objects.equals(this.links, findTransfersResponse.links) - && Objects.equals(this.data, findTransfersResponse.data); + return Objects.equals(this.links, findTransfersResponse.links) && + Objects.equals(this.data, findTransfersResponse.data); } @Override @@ -137,7 +150,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -146,23 +160,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of FindTransfersResponse given an JSON string * * @param jsonString JSON string * @return An instance of FindTransfersResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * FindTransfersResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to FindTransfersResponse */ public static FindTransfersResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, FindTransfersResponse.class); } - - /** - * Convert an instance of FindTransfersResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of FindTransfersResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/HKLocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/HKLocalAccountIdentification.java index cf29af7d8..2a506ebf0 100644 --- a/src/main/java/com/adyen/model/transfers/HKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/HKLocalAccountIdentification.java @@ -2,31 +2,37 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** HKLocalAccountIdentification */ + +/** + * HKLocalAccountIdentification + */ @JsonPropertyOrder({ HKLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, HKLocalAccountIdentification.JSON_PROPERTY_CLEARING_CODE, HKLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class HKLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -34,8 +40,11 @@ public class HKLocalAccountIdentification { public static final String JSON_PROPERTY_CLEARING_CODE = "clearingCode"; private String clearingCode; - /** **hkLocal** */ + /** + * **hkLocal** + */ public enum TypeEnum { + HKLOCAL(String.valueOf("hkLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -43,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -76,14 +81,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public HKLocalAccountIdentification() {} + public HKLocalAccountIdentification() { + } /** - * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. - * Starts with the 3-digit branch code. + * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. * - * @param accountNumber The 9- to 15-character bank account number (alphanumeric), without - * separators or whitespace. Starts with the 3-digit branch code. + * @param accountNumber The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. * @return the current {@code HKLocalAccountIdentification} instance, allowing for method chaining */ public HKLocalAccountIdentification accountNumber(String accountNumber) { @@ -92,11 +96,8 @@ public HKLocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. - * Starts with the 3-digit branch code. - * - * @return accountNumber The 9- to 15-character bank account number (alphanumeric), without - * separators or whitespace. Starts with the 3-digit branch code. + * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. + * @return accountNumber The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,11 +106,9 @@ public String getAccountNumber() { } /** - * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. - * Starts with the 3-digit branch code. + * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. * - * @param accountNumber The 9- to 15-character bank account number (alphanumeric), without - * separators or whitespace. Starts with the 3-digit branch code. + * @param accountNumber The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -130,7 +129,6 @@ public HKLocalAccountIdentification clearingCode(String clearingCode) { /** * The 3-digit clearing code, without separators or whitespace. - * * @return clearingCode The 3-digit clearing code, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_CLEARING_CODE) @@ -163,7 +161,6 @@ public HKLocalAccountIdentification type(TypeEnum type) { /** * **hkLocal** - * * @return type **hkLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -183,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this HKLocalAccountIdentification object is equal to o. */ + /** + * Return true if this HKLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -193,9 +192,9 @@ public boolean equals(Object o) { return false; } HKLocalAccountIdentification hkLocalAccountIdentification = (HKLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, hkLocalAccountIdentification.accountNumber) - && Objects.equals(this.clearingCode, hkLocalAccountIdentification.clearingCode) - && Objects.equals(this.type, hkLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, hkLocalAccountIdentification.accountNumber) && + Objects.equals(this.clearingCode, hkLocalAccountIdentification.clearingCode) && + Objects.equals(this.type, hkLocalAccountIdentification.type); } @Override @@ -215,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,24 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of HKLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of HKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * HKLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to HKLocalAccountIdentification */ - public static HKLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static HKLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, HKLocalAccountIdentification.class); } - - /** - * Convert an instance of HKLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of HKLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/HULocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/HULocalAccountIdentification.java index 4af658eaa..fe0da2472 100644 --- a/src/main/java/com/adyen/model/transfers/HULocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/HULocalAccountIdentification.java @@ -2,36 +2,45 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** HULocalAccountIdentification */ + +/** + * HULocalAccountIdentification + */ @JsonPropertyOrder({ HULocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, HULocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class HULocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - /** **huLocal** */ + /** + * **huLocal** + */ public enum TypeEnum { + HULOCAL(String.valueOf("huLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -39,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -72,7 +77,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public HULocalAccountIdentification() {} + public HULocalAccountIdentification() { + } /** * The 24-digit bank account number, without separators or whitespace. @@ -87,7 +93,6 @@ public HULocalAccountIdentification accountNumber(String accountNumber) { /** * The 24-digit bank account number, without separators or whitespace. - * * @return accountNumber The 24-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -120,7 +125,6 @@ public HULocalAccountIdentification type(TypeEnum type) { /** * **huLocal** - * * @return type **huLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -140,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this HULocalAccountIdentification object is equal to o. */ + /** + * Return true if this HULocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -150,8 +156,8 @@ public boolean equals(Object o) { return false; } HULocalAccountIdentification huLocalAccountIdentification = (HULocalAccountIdentification) o; - return Objects.equals(this.accountNumber, huLocalAccountIdentification.accountNumber) - && Objects.equals(this.type, huLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, huLocalAccountIdentification.accountNumber) && + Objects.equals(this.type, huLocalAccountIdentification.type); } @Override @@ -170,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -179,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of HULocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of HULocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * HULocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to HULocalAccountIdentification */ - public static HULocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static HULocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, HULocalAccountIdentification.class); } - - /** - * Convert an instance of HULocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of HULocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/IbanAccountIdentification.java b/src/main/java/com/adyen/model/transfers/IbanAccountIdentification.java index c31dce55f..4ed79dad5 100644 --- a/src/main/java/com/adyen/model/transfers/IbanAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/IbanAccountIdentification.java @@ -2,36 +2,45 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** IbanAccountIdentification */ + +/** + * IbanAccountIdentification + */ @JsonPropertyOrder({ IbanAccountIdentification.JSON_PROPERTY_IBAN, IbanAccountIdentification.JSON_PROPERTY_TYPE }) + public class IbanAccountIdentification { public static final String JSON_PROPERTY_IBAN = "iban"; private String iban; - /** **iban** */ + /** + * **iban** + */ public enum TypeEnum { + IBAN(String.valueOf("iban")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -39,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -72,14 +77,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public IbanAccountIdentification() {} + public IbanAccountIdentification() { + } /** - * The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. * - * @param iban The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @param iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. * @return the current {@code IbanAccountIdentification} instance, allowing for method chaining */ public IbanAccountIdentification iban(String iban) { @@ -88,11 +92,8 @@ public IbanAccountIdentification iban(String iban) { } /** - * The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. - * - * @return iban The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @return iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,11 +102,9 @@ public String getIban() { } /** - * The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. * - * @param iban The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @param iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,7 +125,6 @@ public IbanAccountIdentification type(TypeEnum type) { /** * **iban** - * * @return type **iban** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -146,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this IbanAccountIdentification object is equal to o. */ + /** + * Return true if this IbanAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +156,8 @@ public boolean equals(Object o) { return false; } IbanAccountIdentification ibanAccountIdentification = (IbanAccountIdentification) o; - return Objects.equals(this.iban, ibanAccountIdentification.iban) - && Objects.equals(this.type, ibanAccountIdentification.type); + return Objects.equals(this.iban, ibanAccountIdentification.iban) && + Objects.equals(this.type, ibanAccountIdentification.type); } @Override @@ -176,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -185,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of IbanAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of IbanAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * IbanAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to IbanAccountIdentification */ - public static IbanAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static IbanAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, IbanAccountIdentification.class); } - - /** - * Convert an instance of IbanAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of IbanAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/InternalCategoryData.java b/src/main/java/com/adyen/model/transfers/InternalCategoryData.java index e6957c996..70f88e0a7 100644 --- a/src/main/java/com/adyen/model/transfers/InternalCategoryData.java +++ b/src/main/java/com/adyen/model/transfers/InternalCategoryData.java @@ -2,41 +2,49 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** InternalCategoryData */ + +/** + * InternalCategoryData + */ @JsonPropertyOrder({ InternalCategoryData.JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE, InternalCategoryData.JSON_PROPERTY_MODIFICATION_PSP_REFERENCE, InternalCategoryData.JSON_PROPERTY_TYPE }) + public class InternalCategoryData { - public static final String JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE = - "modificationMerchantReference"; + public static final String JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE = "modificationMerchantReference"; private String modificationMerchantReference; public static final String JSON_PROPERTY_MODIFICATION_PSP_REFERENCE = "modificationPspReference"; private String modificationPspReference; - /** **internal** */ + /** + * **internal** + */ public enum TypeEnum { + INTERNAL(String.valueOf("internal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -44,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -65,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -77,13 +81,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public InternalCategoryData() {} + public InternalCategoryData() { + } /** * The capture's merchant reference included in the transfer. * - * @param modificationMerchantReference The capture's merchant reference included in the - * transfer. + * @param modificationMerchantReference The capture's merchant reference included in the transfer. * @return the current {@code InternalCategoryData} instance, allowing for method chaining */ public InternalCategoryData modificationMerchantReference(String modificationMerchantReference) { @@ -93,9 +97,7 @@ public InternalCategoryData modificationMerchantReference(String modificationMer /** * The capture's merchant reference included in the transfer. - * - * @return modificationMerchantReference The capture's merchant reference included in the - * transfer. + * @return modificationMerchantReference The capture's merchant reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,8 +108,7 @@ public String getModificationMerchantReference() { /** * The capture's merchant reference included in the transfer. * - * @param modificationMerchantReference The capture's merchant reference included in the - * transfer. + * @param modificationMerchantReference The capture's merchant reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,7 +129,6 @@ public InternalCategoryData modificationPspReference(String modificationPspRefer /** * The capture reference included in the transfer. - * * @return modificationPspReference The capture reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_PSP_REFERENCE) @@ -161,7 +161,6 @@ public InternalCategoryData type(TypeEnum type) { /** * **internal** - * * @return type **internal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -181,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this InternalCategoryData object is equal to o. */ + /** + * Return true if this InternalCategoryData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -191,11 +192,9 @@ public boolean equals(Object o) { return false; } InternalCategoryData internalCategoryData = (InternalCategoryData) o; - return Objects.equals( - this.modificationMerchantReference, internalCategoryData.modificationMerchantReference) - && Objects.equals( - this.modificationPspReference, internalCategoryData.modificationPspReference) - && Objects.equals(this.type, internalCategoryData.type); + return Objects.equals(this.modificationMerchantReference, internalCategoryData.modificationMerchantReference) && + Objects.equals(this.modificationPspReference, internalCategoryData.modificationPspReference) && + Objects.equals(this.type, internalCategoryData.type); } @Override @@ -207,19 +206,16 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InternalCategoryData {\n"); - sb.append(" modificationMerchantReference: ") - .append(toIndentedString(modificationMerchantReference)) - .append("\n"); - sb.append(" modificationPspReference: ") - .append(toIndentedString(modificationPspReference)) - .append("\n"); + sb.append(" modificationMerchantReference: ").append(toIndentedString(modificationMerchantReference)).append("\n"); + sb.append(" modificationPspReference: ").append(toIndentedString(modificationPspReference)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -228,23 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of InternalCategoryData given an JSON string * * @param jsonString JSON string * @return An instance of InternalCategoryData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * InternalCategoryData + * @throws JsonProcessingException if the JSON string is invalid with respect to InternalCategoryData */ public static InternalCategoryData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, InternalCategoryData.class); } - - /** - * Convert an instance of InternalCategoryData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of InternalCategoryData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/InternalReviewTrackingData.java b/src/main/java/com/adyen/model/transfers/InternalReviewTrackingData.java index a8b36278a..425cb3e87 100644 --- a/src/main/java/com/adyen/model/transfers/InternalReviewTrackingData.java +++ b/src/main/java/com/adyen/model/transfers/InternalReviewTrackingData.java @@ -2,38 +2,43 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** InternalReviewTrackingData */ + +/** + * InternalReviewTrackingData + */ @JsonPropertyOrder({ InternalReviewTrackingData.JSON_PROPERTY_REASON, InternalReviewTrackingData.JSON_PROPERTY_STATUS, InternalReviewTrackingData.JSON_PROPERTY_TYPE }) + public class InternalReviewTrackingData { /** - * The reason why the transfer failed Adyen's internal review. Possible values: - - * **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For - * more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). + * The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). */ public enum ReasonEnum { + REFUSEDFORREGULATORYREASONS(String.valueOf("refusedForRegulatoryReasons")); private static final Logger LOG = Logger.getLogger(ReasonEnum.class.getName()); @@ -41,7 +46,7 @@ public enum ReasonEnum { private String value; ReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -62,11 +67,7 @@ public static ReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ReasonEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ReasonEnum.values())); + LOG.warning("ReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ReasonEnum.values())); return null; } } @@ -75,11 +76,10 @@ public static ReasonEnum fromValue(String value) { private ReasonEnum reason; /** - * The status of the transfer. Possible values: - **pending**: the transfer is under internal - * review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, - * see `reason`. + * The status of the transfer. Possible values: - **pending**: the transfer is under internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. */ public enum StatusEnum { + PENDING(String.valueOf("pending")), FAILED(String.valueOf("failed")); @@ -89,7 +89,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -110,11 +110,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -123,10 +119,10 @@ public static StatusEnum fromValue(String value) { private StatusEnum status; /** - * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged - * because it does not comply with Adyen's risk policy. + * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. */ public enum TypeEnum { + INTERNALREVIEW(String.valueOf("internalReview")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -134,7 +130,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -155,11 +151,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -167,17 +159,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public InternalReviewTrackingData() {} + public InternalReviewTrackingData() { + } /** - * The reason why the transfer failed Adyen's internal review. Possible values: - - * **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For - * more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). + * The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). * - * @param reason The reason why the transfer failed Adyen's internal review. Possible values: - * - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk - * policy. For more information, [contact the Support - * Team](https://www.adyen.help/hc/en-us/requests/new). + * @param reason The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). * @return the current {@code InternalReviewTrackingData} instance, allowing for method chaining */ public InternalReviewTrackingData reason(ReasonEnum reason) { @@ -186,14 +174,8 @@ public InternalReviewTrackingData reason(ReasonEnum reason) { } /** - * The reason why the transfer failed Adyen's internal review. Possible values: - - * **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For - * more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). - * - * @return reason The reason why the transfer failed Adyen's internal review. Possible values: - * - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk - * policy. For more information, [contact the Support - * Team](https://www.adyen.help/hc/en-us/requests/new). + * The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). + * @return reason The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -202,14 +184,9 @@ public ReasonEnum getReason() { } /** - * The reason why the transfer failed Adyen's internal review. Possible values: - - * **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For - * more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). + * The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). * - * @param reason The reason why the transfer failed Adyen's internal review. Possible values: - * - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk - * policy. For more information, [contact the Support - * Team](https://www.adyen.help/hc/en-us/requests/new). + * @param reason The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -218,13 +195,9 @@ public void setReason(ReasonEnum reason) { } /** - * The status of the transfer. Possible values: - **pending**: the transfer is under internal - * review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, - * see `reason`. + * The status of the transfer. Possible values: - **pending**: the transfer is under internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. * - * @param status The status of the transfer. Possible values: - **pending**: the transfer is under - * internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. - * For details, see `reason`. + * @param status The status of the transfer. Possible values: - **pending**: the transfer is under internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. * @return the current {@code InternalReviewTrackingData} instance, allowing for method chaining */ public InternalReviewTrackingData status(StatusEnum status) { @@ -233,13 +206,8 @@ public InternalReviewTrackingData status(StatusEnum status) { } /** - * The status of the transfer. Possible values: - **pending**: the transfer is under internal - * review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, - * see `reason`. - * - * @return status The status of the transfer. Possible values: - **pending**: the transfer is - * under internal review by Adyen. - **failed**: the transfer failed Adyen's internal - * review. For details, see `reason`. + * The status of the transfer. Possible values: - **pending**: the transfer is under internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. + * @return status The status of the transfer. Possible values: - **pending**: the transfer is under internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -248,13 +216,9 @@ public StatusEnum getStatus() { } /** - * The status of the transfer. Possible values: - **pending**: the transfer is under internal - * review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, - * see `reason`. + * The status of the transfer. Possible values: - **pending**: the transfer is under internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. * - * @param status The status of the transfer. Possible values: - **pending**: the transfer is under - * internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. - * For details, see `reason`. + * @param status The status of the transfer. Possible values: - **pending**: the transfer is under internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -263,11 +227,9 @@ public void setStatus(StatusEnum status) { } /** - * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged - * because it does not comply with Adyen's risk policy. + * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. * - * @param type The type of tracking event. Possible values: - **internalReview**: the transfer was - * flagged because it does not comply with Adyen's risk policy. + * @param type The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. * @return the current {@code InternalReviewTrackingData} instance, allowing for method chaining */ public InternalReviewTrackingData type(TypeEnum type) { @@ -276,11 +238,8 @@ public InternalReviewTrackingData type(TypeEnum type) { } /** - * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged - * because it does not comply with Adyen's risk policy. - * - * @return type The type of tracking event. Possible values: - **internalReview**: the transfer - * was flagged because it does not comply with Adyen's risk policy. + * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. + * @return type The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -289,11 +248,9 @@ public TypeEnum getType() { } /** - * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged - * because it does not comply with Adyen's risk policy. + * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. * - * @param type The type of tracking event. Possible values: - **internalReview**: the transfer was - * flagged because it does not comply with Adyen's risk policy. + * @param type The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -301,7 +258,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this InternalReviewTrackingData object is equal to o. */ + /** + * Return true if this InternalReviewTrackingData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -311,9 +270,9 @@ public boolean equals(Object o) { return false; } InternalReviewTrackingData internalReviewTrackingData = (InternalReviewTrackingData) o; - return Objects.equals(this.reason, internalReviewTrackingData.reason) - && Objects.equals(this.status, internalReviewTrackingData.status) - && Objects.equals(this.type, internalReviewTrackingData.type); + return Objects.equals(this.reason, internalReviewTrackingData.reason) && + Objects.equals(this.status, internalReviewTrackingData.status) && + Objects.equals(this.type, internalReviewTrackingData.type); } @Override @@ -333,7 +292,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -342,24 +302,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of InternalReviewTrackingData given an JSON string * * @param jsonString JSON string * @return An instance of InternalReviewTrackingData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * InternalReviewTrackingData + * @throws JsonProcessingException if the JSON string is invalid with respect to InternalReviewTrackingData */ - public static InternalReviewTrackingData fromJson(String jsonString) - throws JsonProcessingException { + public static InternalReviewTrackingData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, InternalReviewTrackingData.class); } - - /** - * Convert an instance of InternalReviewTrackingData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of InternalReviewTrackingData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/InvalidField.java b/src/main/java/com/adyen/model/transfers/InvalidField.java index 59b4a67d9..91a6c96a4 100644 --- a/src/main/java/com/adyen/model/transfers/InvalidField.java +++ b/src/main/java/com/adyen/model/transfers/InvalidField.java @@ -2,27 +2,37 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** InvalidField */ + +/** + * InvalidField + */ @JsonPropertyOrder({ InvalidField.JSON_PROPERTY_MESSAGE, InvalidField.JSON_PROPERTY_NAME, InvalidField.JSON_PROPERTY_VALUE }) + public class InvalidField { public static final String JSON_PROPERTY_MESSAGE = "message"; private String message; @@ -33,7 +43,8 @@ public class InvalidField { public static final String JSON_PROPERTY_VALUE = "value"; private String value; - public InvalidField() {} + public InvalidField() { + } /** * Description of the validation error. @@ -48,7 +59,6 @@ public InvalidField message(String message) { /** * Description of the validation error. - * * @return message Description of the validation error. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -81,7 +91,6 @@ public InvalidField name(String name) { /** * The field that has an invalid value. - * * @return name The field that has an invalid value. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -114,7 +123,6 @@ public InvalidField value(String value) { /** * The invalid value. - * * @return value The invalid value. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -134,7 +142,9 @@ public void setValue(String value) { this.value = value; } - /** Return true if this InvalidField object is equal to o. */ + /** + * Return true if this InvalidField object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,9 +154,9 @@ public boolean equals(Object o) { return false; } InvalidField invalidField = (InvalidField) o; - return Objects.equals(this.message, invalidField.message) - && Objects.equals(this.name, invalidField.name) - && Objects.equals(this.value, invalidField.value); + return Objects.equals(this.message, invalidField.message) && + Objects.equals(this.name, invalidField.name) && + Objects.equals(this.value, invalidField.value); } @Override @@ -166,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of InvalidField given an JSON string * * @param jsonString JSON string @@ -185,12 +196,11 @@ private String toIndentedString(Object o) { public static InvalidField fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, InvalidField.class); } - - /** - * Convert an instance of InvalidField to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of InvalidField to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/IssuedCard.java b/src/main/java/com/adyen/model/transfers/IssuedCard.java index 4b1703e41..63b2a13bb 100644 --- a/src/main/java/com/adyen/model/transfers/IssuedCard.java +++ b/src/main/java/com/adyen/model/transfers/IssuedCard.java @@ -2,28 +2,36 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.RelayedAuthorisationData; +import com.adyen.model.transfers.ThreeDSecure; +import com.adyen.model.transfers.TransferNotificationValidationFact; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** IssuedCard */ +/** + * IssuedCard + */ @JsonPropertyOrder({ IssuedCard.JSON_PROPERTY_AUTHORISATION_TYPE, IssuedCard.JSON_PROPERTY_PAN_ENTRY_MODE, @@ -35,15 +43,16 @@ IssuedCard.JSON_PROPERTY_TYPE, IssuedCard.JSON_PROPERTY_VALIDATION_FACTS }) + public class IssuedCard { public static final String JSON_PROPERTY_AUTHORISATION_TYPE = "authorisationType"; private String authorisationType; /** - * Indicates the method used for entering the PAN to initiate a transaction. Possible values: - * **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + * Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. */ public enum PanEntryModeEnum { + CHIP(String.valueOf("chip")), COF(String.valueOf("cof")), @@ -63,7 +72,7 @@ public enum PanEntryModeEnum { private String value; PanEntryModeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -84,11 +93,7 @@ public static PanEntryModeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PanEntryModeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PanEntryModeEnum.values())); + LOG.warning("PanEntryModeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PanEntryModeEnum.values())); return null; } } @@ -97,10 +102,10 @@ public static PanEntryModeEnum fromValue(String value) { private PanEntryModeEnum panEntryMode; /** - * Contains information about how the payment was processed. For example, **ecommerce** for online - * or **pos** for in-person payments. + * Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. */ public enum ProcessingTypeEnum { + ATMWITHDRAW(String.valueOf("atmWithdraw")), BALANCEINQUIRY(String.valueOf("balanceInquiry")), @@ -122,7 +127,7 @@ public enum ProcessingTypeEnum { private String value; ProcessingTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -143,11 +148,7 @@ public static ProcessingTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ProcessingTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ProcessingTypeEnum.values())); + LOG.warning("ProcessingTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ProcessingTypeEnum.values())); return null; } } @@ -161,15 +162,17 @@ public static ProcessingTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_SCHEME_TRACE_ID = "schemeTraceId"; private String schemeTraceId; - public static final String JSON_PROPERTY_SCHEME_UNIQUE_TRANSACTION_ID = - "schemeUniqueTransactionId"; + public static final String JSON_PROPERTY_SCHEME_UNIQUE_TRANSACTION_ID = "schemeUniqueTransactionId"; private String schemeUniqueTransactionId; public static final String JSON_PROPERTY_THREE_D_SECURE = "threeDSecure"; private ThreeDSecure threeDSecure; - /** **issuedCard** */ + /** + * **issuedCard** + */ public enum TypeEnum { + ISSUEDCARD(String.valueOf("issuedCard")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -177,7 +180,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -198,11 +201,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -213,14 +212,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VALIDATION_FACTS = "validationFacts"; private List validationFacts; - public IssuedCard() {} + public IssuedCard() { + } /** - * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, - * **finalAuthorisation** + * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** * - * @param authorisationType The authorisation type. For example, **defaultAuthorisation**, - * **preAuthorisation**, **finalAuthorisation** + * @param authorisationType The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard authorisationType(String authorisationType) { @@ -229,11 +227,8 @@ public IssuedCard authorisationType(String authorisationType) { } /** - * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, - * **finalAuthorisation** - * - * @return authorisationType The authorisation type. For example, **defaultAuthorisation**, - * **preAuthorisation**, **finalAuthorisation** + * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** + * @return authorisationType The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** */ @JsonProperty(JSON_PROPERTY_AUTHORISATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,11 +237,9 @@ public String getAuthorisationType() { } /** - * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, - * **finalAuthorisation** + * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** * - * @param authorisationType The authorisation type. For example, **defaultAuthorisation**, - * **preAuthorisation**, **finalAuthorisation** + * @param authorisationType The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** */ @JsonProperty(JSON_PROPERTY_AUTHORISATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -255,12 +248,9 @@ public void setAuthorisationType(String authorisationType) { } /** - * Indicates the method used for entering the PAN to initiate a transaction. Possible values: - * **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + * Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. * - * @param panEntryMode Indicates the method used for entering the PAN to initiate a transaction. - * Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, - * **ecommerce**, **token**. + * @param panEntryMode Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard panEntryMode(PanEntryModeEnum panEntryMode) { @@ -269,12 +259,8 @@ public IssuedCard panEntryMode(PanEntryModeEnum panEntryMode) { } /** - * Indicates the method used for entering the PAN to initiate a transaction. Possible values: - * **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. - * - * @return panEntryMode Indicates the method used for entering the PAN to initiate a transaction. - * Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, - * **ecommerce**, **token**. + * Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + * @return panEntryMode Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. */ @JsonProperty(JSON_PROPERTY_PAN_ENTRY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -283,12 +269,9 @@ public PanEntryModeEnum getPanEntryMode() { } /** - * Indicates the method used for entering the PAN to initiate a transaction. Possible values: - * **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + * Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. * - * @param panEntryMode Indicates the method used for entering the PAN to initiate a transaction. - * Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, - * **ecommerce**, **token**. + * @param panEntryMode Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. */ @JsonProperty(JSON_PROPERTY_PAN_ENTRY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -297,11 +280,9 @@ public void setPanEntryMode(PanEntryModeEnum panEntryMode) { } /** - * Contains information about how the payment was processed. For example, **ecommerce** for online - * or **pos** for in-person payments. + * Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. * - * @param processingType Contains information about how the payment was processed. For example, - * **ecommerce** for online or **pos** for in-person payments. + * @param processingType Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard processingType(ProcessingTypeEnum processingType) { @@ -310,11 +291,8 @@ public IssuedCard processingType(ProcessingTypeEnum processingType) { } /** - * Contains information about how the payment was processed. For example, **ecommerce** for online - * or **pos** for in-person payments. - * - * @return processingType Contains information about how the payment was processed. For example, - * **ecommerce** for online or **pos** for in-person payments. + * Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. + * @return processingType Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. */ @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -323,11 +301,9 @@ public ProcessingTypeEnum getProcessingType() { } /** - * Contains information about how the payment was processed. For example, **ecommerce** for online - * or **pos** for in-person payments. + * Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. * - * @param processingType Contains information about how the payment was processed. For example, - * **ecommerce** for online or **pos** for in-person payments. + * @param processingType Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. */ @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -338,7 +314,7 @@ public void setProcessingType(ProcessingTypeEnum processingType) { /** * relayedAuthorisationData * - * @param relayedAuthorisationData + * @param relayedAuthorisationData * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard relayedAuthorisationData(RelayedAuthorisationData relayedAuthorisationData) { @@ -348,8 +324,7 @@ public IssuedCard relayedAuthorisationData(RelayedAuthorisationData relayedAutho /** * Get relayedAuthorisationData - * - * @return relayedAuthorisationData + * @return relayedAuthorisationData */ @JsonProperty(JSON_PROPERTY_RELAYED_AUTHORISATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -360,7 +335,7 @@ public RelayedAuthorisationData getRelayedAuthorisationData() { /** * relayedAuthorisationData * - * @param relayedAuthorisationData + * @param relayedAuthorisationData */ @JsonProperty(JSON_PROPERTY_RELAYED_AUTHORISATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -369,17 +344,9 @@ public void setRelayedAuthorisationData(RelayedAuthorisationData relayedAuthoris } /** - * The identifier of the original payment. This ID is provided by the scheme and can be - * alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to - * an original `schemeUniqueTransactionID` provided in an earlier payment (not - * necessarily processed by Adyen). A `schemeTraceId` is typically available for - * authorization adjustments or recurring payments. + * The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. * - * @param schemeTraceId The identifier of the original payment. This ID is provided by the scheme - * and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` - * should refer to an original `schemeUniqueTransactionID` provided in an earlier - * payment (not necessarily processed by Adyen). A `schemeTraceId` is typically - * available for authorization adjustments or recurring payments. + * @param schemeTraceId The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard schemeTraceId(String schemeTraceId) { @@ -388,17 +355,8 @@ public IssuedCard schemeTraceId(String schemeTraceId) { } /** - * The identifier of the original payment. This ID is provided by the scheme and can be - * alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to - * an original `schemeUniqueTransactionID` provided in an earlier payment (not - * necessarily processed by Adyen). A `schemeTraceId` is typically available for - * authorization adjustments or recurring payments. - * - * @return schemeTraceId The identifier of the original payment. This ID is provided by the scheme - * and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` - * should refer to an original `schemeUniqueTransactionID` provided in an earlier - * payment (not necessarily processed by Adyen). A `schemeTraceId` is typically - * available for authorization adjustments or recurring payments. + * The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. + * @return schemeTraceId The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. */ @JsonProperty(JSON_PROPERTY_SCHEME_TRACE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -407,17 +365,9 @@ public String getSchemeTraceId() { } /** - * The identifier of the original payment. This ID is provided by the scheme and can be - * alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to - * an original `schemeUniqueTransactionID` provided in an earlier payment (not - * necessarily processed by Adyen). A `schemeTraceId` is typically available for - * authorization adjustments or recurring payments. + * The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. * - * @param schemeTraceId The identifier of the original payment. This ID is provided by the scheme - * and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` - * should refer to an original `schemeUniqueTransactionID` provided in an earlier - * payment (not necessarily processed by Adyen). A `schemeTraceId` is typically - * available for authorization adjustments or recurring payments. + * @param schemeTraceId The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. */ @JsonProperty(JSON_PROPERTY_SCHEME_TRACE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -426,11 +376,9 @@ public void setSchemeTraceId(String schemeTraceId) { } /** - * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending - * on the scheme. + * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. * - * @param schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be - * alphanumeric or numeric depending on the scheme. + * @param schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard schemeUniqueTransactionId(String schemeUniqueTransactionId) { @@ -439,11 +387,8 @@ public IssuedCard schemeUniqueTransactionId(String schemeUniqueTransactionId) { } /** - * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending - * on the scheme. - * - * @return schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be - * alphanumeric or numeric depending on the scheme. + * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. + * @return schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. */ @JsonProperty(JSON_PROPERTY_SCHEME_UNIQUE_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -452,11 +397,9 @@ public String getSchemeUniqueTransactionId() { } /** - * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending - * on the scheme. + * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. * - * @param schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be - * alphanumeric or numeric depending on the scheme. + * @param schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. */ @JsonProperty(JSON_PROPERTY_SCHEME_UNIQUE_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -467,7 +410,7 @@ public void setSchemeUniqueTransactionId(String schemeUniqueTransactionId) { /** * threeDSecure * - * @param threeDSecure + * @param threeDSecure * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard threeDSecure(ThreeDSecure threeDSecure) { @@ -477,8 +420,7 @@ public IssuedCard threeDSecure(ThreeDSecure threeDSecure) { /** * Get threeDSecure - * - * @return threeDSecure + * @return threeDSecure */ @JsonProperty(JSON_PROPERTY_THREE_D_SECURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -489,7 +431,7 @@ public ThreeDSecure getThreeDSecure() { /** * threeDSecure * - * @param threeDSecure + * @param threeDSecure */ @JsonProperty(JSON_PROPERTY_THREE_D_SECURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -510,7 +452,6 @@ public IssuedCard type(TypeEnum type) { /** * **issuedCard** - * * @return type **issuedCard** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -531,11 +472,9 @@ public void setType(TypeEnum type) { } /** - * The evaluation of the validation facts. See [validation - * checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. * - * @param validationFacts The evaluation of the validation facts. See [validation - * checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * @param validationFacts The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard validationFacts(List validationFacts) { @@ -552,11 +491,8 @@ public IssuedCard addValidationFactsItem(TransferNotificationValidationFact vali } /** - * The evaluation of the validation facts. See [validation - * checks](https://docs.adyen.com/issuing/validation-checks) for more information. - * - * @return validationFacts The evaluation of the validation facts. See [validation - * checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * @return validationFacts The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. */ @JsonProperty(JSON_PROPERTY_VALIDATION_FACTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -565,11 +501,9 @@ public List getValidationFacts() { } /** - * The evaluation of the validation facts. See [validation - * checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. * - * @param validationFacts The evaluation of the validation facts. See [validation - * checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * @param validationFacts The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. */ @JsonProperty(JSON_PROPERTY_VALIDATION_FACTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -577,7 +511,9 @@ public void setValidationFacts(List validati this.validationFacts = validationFacts; } - /** Return true if this IssuedCard object is equal to o. */ + /** + * Return true if this IssuedCard object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -587,29 +523,20 @@ public boolean equals(Object o) { return false; } IssuedCard issuedCard = (IssuedCard) o; - return Objects.equals(this.authorisationType, issuedCard.authorisationType) - && Objects.equals(this.panEntryMode, issuedCard.panEntryMode) - && Objects.equals(this.processingType, issuedCard.processingType) - && Objects.equals(this.relayedAuthorisationData, issuedCard.relayedAuthorisationData) - && Objects.equals(this.schemeTraceId, issuedCard.schemeTraceId) - && Objects.equals(this.schemeUniqueTransactionId, issuedCard.schemeUniqueTransactionId) - && Objects.equals(this.threeDSecure, issuedCard.threeDSecure) - && Objects.equals(this.type, issuedCard.type) - && Objects.equals(this.validationFacts, issuedCard.validationFacts); + return Objects.equals(this.authorisationType, issuedCard.authorisationType) && + Objects.equals(this.panEntryMode, issuedCard.panEntryMode) && + Objects.equals(this.processingType, issuedCard.processingType) && + Objects.equals(this.relayedAuthorisationData, issuedCard.relayedAuthorisationData) && + Objects.equals(this.schemeTraceId, issuedCard.schemeTraceId) && + Objects.equals(this.schemeUniqueTransactionId, issuedCard.schemeUniqueTransactionId) && + Objects.equals(this.threeDSecure, issuedCard.threeDSecure) && + Objects.equals(this.type, issuedCard.type) && + Objects.equals(this.validationFacts, issuedCard.validationFacts); } @Override public int hashCode() { - return Objects.hash( - authorisationType, - panEntryMode, - processingType, - relayedAuthorisationData, - schemeTraceId, - schemeUniqueTransactionId, - threeDSecure, - type, - validationFacts); + return Objects.hash(authorisationType, panEntryMode, processingType, relayedAuthorisationData, schemeTraceId, schemeUniqueTransactionId, threeDSecure, type, validationFacts); } @Override @@ -619,13 +546,9 @@ public String toString() { sb.append(" authorisationType: ").append(toIndentedString(authorisationType)).append("\n"); sb.append(" panEntryMode: ").append(toIndentedString(panEntryMode)).append("\n"); sb.append(" processingType: ").append(toIndentedString(processingType)).append("\n"); - sb.append(" relayedAuthorisationData: ") - .append(toIndentedString(relayedAuthorisationData)) - .append("\n"); + sb.append(" relayedAuthorisationData: ").append(toIndentedString(relayedAuthorisationData)).append("\n"); sb.append(" schemeTraceId: ").append(toIndentedString(schemeTraceId)).append("\n"); - sb.append(" schemeUniqueTransactionId: ") - .append(toIndentedString(schemeUniqueTransactionId)) - .append("\n"); + sb.append(" schemeUniqueTransactionId: ").append(toIndentedString(schemeUniqueTransactionId)).append("\n"); sb.append(" threeDSecure: ").append(toIndentedString(threeDSecure)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" validationFacts: ").append(toIndentedString(validationFacts)).append("\n"); @@ -634,7 +557,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -643,7 +567,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of IssuedCard given an JSON string * * @param jsonString JSON string @@ -653,12 +577,11 @@ private String toIndentedString(Object o) { public static IssuedCard fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, IssuedCard.class); } - - /** - * Convert an instance of IssuedCard to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of IssuedCard to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/IssuingTransactionData.java b/src/main/java/com/adyen/model/transfers/IssuingTransactionData.java index cc29e4052..416038452 100644 --- a/src/main/java/com/adyen/model/transfers/IssuingTransactionData.java +++ b/src/main/java/com/adyen/model/transfers/IssuingTransactionData.java @@ -2,39 +2,45 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** IssuingTransactionData */ +/** + * IssuingTransactionData + */ @JsonPropertyOrder({ IssuingTransactionData.JSON_PROPERTY_CAPTURE_CYCLE_ID, IssuingTransactionData.JSON_PROPERTY_TYPE }) + public class IssuingTransactionData { public static final String JSON_PROPERTY_CAPTURE_CYCLE_ID = "captureCycleId"; private String captureCycleId; /** - * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction - * data + * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction data */ public enum TypeEnum { + ISSUINGTRANSACTIONDATA(String.valueOf("issuingTransactionData")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -42,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -63,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -75,7 +77,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public IssuingTransactionData() {} + public IssuingTransactionData() { + } /** * captureCycleId associated with transfer event. @@ -90,7 +93,6 @@ public IssuingTransactionData captureCycleId(String captureCycleId) { /** * captureCycleId associated with transfer event. - * * @return captureCycleId captureCycleId associated with transfer event. */ @JsonProperty(JSON_PROPERTY_CAPTURE_CYCLE_ID) @@ -111,11 +113,9 @@ public void setCaptureCycleId(String captureCycleId) { } /** - * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction - * data + * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction data * - * @param type The type of events data. Possible values: - **issuingTransactionData**: issuing - * transaction data + * @param type The type of events data. Possible values: - **issuingTransactionData**: issuing transaction data * @return the current {@code IssuingTransactionData} instance, allowing for method chaining */ public IssuingTransactionData type(TypeEnum type) { @@ -124,11 +124,8 @@ public IssuingTransactionData type(TypeEnum type) { } /** - * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction - * data - * - * @return type The type of events data. Possible values: - **issuingTransactionData**: issuing - * transaction data + * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction data + * @return type The type of events data. Possible values: - **issuingTransactionData**: issuing transaction data */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,11 +134,9 @@ public TypeEnum getType() { } /** - * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction - * data + * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction data * - * @param type The type of events data. Possible values: - **issuingTransactionData**: issuing - * transaction data + * @param type The type of events data. Possible values: - **issuingTransactionData**: issuing transaction data */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -149,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this IssuingTransactionData object is equal to o. */ + /** + * Return true if this IssuingTransactionData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -159,8 +156,8 @@ public boolean equals(Object o) { return false; } IssuingTransactionData issuingTransactionData = (IssuingTransactionData) o; - return Objects.equals(this.captureCycleId, issuingTransactionData.captureCycleId) - && Objects.equals(this.type, issuingTransactionData.type); + return Objects.equals(this.captureCycleId, issuingTransactionData.captureCycleId) && + Objects.equals(this.type, issuingTransactionData.type); } @Override @@ -179,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -188,23 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of IssuingTransactionData given an JSON string * * @param jsonString JSON string * @return An instance of IssuingTransactionData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * IssuingTransactionData + * @throws JsonProcessingException if the JSON string is invalid with respect to IssuingTransactionData */ public static IssuingTransactionData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, IssuingTransactionData.class); } - - /** - * Convert an instance of IssuingTransactionData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of IssuingTransactionData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/JSON.java b/src/main/java/com/adyen/model/transfers/JSON.java index a2553c3ed..547fc7ca8 100644 --- a/src/main/java/com/adyen/model/transfers/JSON.java +++ b/src/main/java/com/adyen/model/transfers/JSON.java @@ -1,18 +1,21 @@ package com.adyen.model.transfers; -import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; +import com.adyen.serializer.ByteArrayDeserializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; +import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; +import com.adyen.model.transfers.*; + import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -37,7 +40,6 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. - * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -54,13 +56,11 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { - return mapper; - } + public static ObjectMapper getMapper() { return mapper; } /** - * Returns the target model class that should be used to deserialize the input data. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,7 +73,9 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** Helper class to register the discriminator mappings. */ + /** + * Helper class to register the discriminator mappings. + */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -115,9 +117,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. This - * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -162,14 +164,13 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so - * it's not possible to use the instanceof keyword. + * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, + * so it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf( - Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -193,58 +194,59 @@ public static boolean isInstanceOf( return false; } - /** A map of discriminators for all model classes. */ - private static final Map, ClassDiscriminatorMapping> modelDiscriminators = - new HashMap, ClassDiscriminatorMapping>(); + /** + * A map of discriminators for all model classes. + */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); - /** A map of oneOf/anyOf descendants for each model class. */ + /** + * A map of oneOf/anyOf descendants for each model class. + */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator( - Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = - new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants( - Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants(Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static { + static + { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/transfers/Leg.java b/src/main/java/com/adyen/model/transfers/Leg.java index 071f3c00e..489203317 100644 --- a/src/main/java/com/adyen/model/transfers/Leg.java +++ b/src/main/java/com/adyen/model/transfers/Leg.java @@ -2,22 +2,31 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Leg */ + +/** + * Leg + */ @JsonPropertyOrder({ Leg.JSON_PROPERTY_ARRIVAL_AIRPORT_CODE, Leg.JSON_PROPERTY_BASIC_FARE_CODE, @@ -26,6 +35,7 @@ Leg.JSON_PROPERTY_DEPARTURE_DATE, Leg.JSON_PROPERTY_FLIGHT_NUMBER }) + public class Leg { public static final String JSON_PROPERTY_ARRIVAL_AIRPORT_CODE = "arrivalAirportCode"; private String arrivalAirportCode; @@ -45,14 +55,13 @@ public class Leg { public static final String JSON_PROPERTY_FLIGHT_NUMBER = "flightNumber"; private String flightNumber; - public Leg() {} + public Leg() { + } /** - * The IATA 3-letter airport code of the destination airport. This field is required if the - * airline data includes leg details. + * The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * - * @param arrivalAirportCode The IATA 3-letter airport code of the destination airport. This field - * is required if the airline data includes leg details. + * @param arrivalAirportCode The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * @return the current {@code Leg} instance, allowing for method chaining */ public Leg arrivalAirportCode(String arrivalAirportCode) { @@ -61,11 +70,8 @@ public Leg arrivalAirportCode(String arrivalAirportCode) { } /** - * The IATA 3-letter airport code of the destination airport. This field is required if the - * airline data includes leg details. - * - * @return arrivalAirportCode The IATA 3-letter airport code of the destination airport. This - * field is required if the airline data includes leg details. + * The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. + * @return arrivalAirportCode The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. */ @JsonProperty(JSON_PROPERTY_ARRIVAL_AIRPORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -74,11 +80,9 @@ public String getArrivalAirportCode() { } /** - * The IATA 3-letter airport code of the destination airport. This field is required if the - * airline data includes leg details. + * The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * - * @param arrivalAirportCode The IATA 3-letter airport code of the destination airport. This field - * is required if the airline data includes leg details. + * @param arrivalAirportCode The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. */ @JsonProperty(JSON_PROPERTY_ARRIVAL_AIRPORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,7 +103,6 @@ public Leg basicFareCode(String basicFareCode) { /** * The basic fare code for this leg. - * * @return basicFareCode The basic fare code for this leg. */ @JsonProperty(JSON_PROPERTY_BASIC_FARE_CODE) @@ -132,7 +135,6 @@ public Leg carrierCode(String carrierCode) { /** * IATA code of the carrier operating the flight. - * * @return carrierCode IATA code of the carrier operating the flight. */ @JsonProperty(JSON_PROPERTY_CARRIER_CODE) @@ -153,11 +155,9 @@ public void setCarrierCode(String carrierCode) { } /** - * The IATA three-letter airport code of the departure airport. This field is required if the - * airline data includes leg details + * The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details * - * @param departureAirportCode The IATA three-letter airport code of the departure airport. This - * field is required if the airline data includes leg details + * @param departureAirportCode The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details * @return the current {@code Leg} instance, allowing for method chaining */ public Leg departureAirportCode(String departureAirportCode) { @@ -166,11 +166,8 @@ public Leg departureAirportCode(String departureAirportCode) { } /** - * The IATA three-letter airport code of the departure airport. This field is required if the - * airline data includes leg details - * - * @return departureAirportCode The IATA three-letter airport code of the departure airport. This - * field is required if the airline data includes leg details + * The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details + * @return departureAirportCode The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details */ @JsonProperty(JSON_PROPERTY_DEPARTURE_AIRPORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,11 +176,9 @@ public String getDepartureAirportCode() { } /** - * The IATA three-letter airport code of the departure airport. This field is required if the - * airline data includes leg details + * The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details * - * @param departureAirportCode The IATA three-letter airport code of the departure airport. This - * field is required if the airline data includes leg details + * @param departureAirportCode The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details */ @JsonProperty(JSON_PROPERTY_DEPARTURE_AIRPORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,7 +199,6 @@ public Leg departureDate(String departureDate) { /** * The flight departure date. - * * @return departureDate The flight departure date. */ @JsonProperty(JSON_PROPERTY_DEPARTURE_DATE) @@ -237,7 +231,6 @@ public Leg flightNumber(String flightNumber) { /** * The flight identifier. - * * @return flightNumber The flight identifier. */ @JsonProperty(JSON_PROPERTY_FLIGHT_NUMBER) @@ -257,7 +250,9 @@ public void setFlightNumber(String flightNumber) { this.flightNumber = flightNumber; } - /** Return true if this Leg object is equal to o. */ + /** + * Return true if this Leg object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -267,23 +262,17 @@ public boolean equals(Object o) { return false; } Leg leg = (Leg) o; - return Objects.equals(this.arrivalAirportCode, leg.arrivalAirportCode) - && Objects.equals(this.basicFareCode, leg.basicFareCode) - && Objects.equals(this.carrierCode, leg.carrierCode) - && Objects.equals(this.departureAirportCode, leg.departureAirportCode) - && Objects.equals(this.departureDate, leg.departureDate) - && Objects.equals(this.flightNumber, leg.flightNumber); + return Objects.equals(this.arrivalAirportCode, leg.arrivalAirportCode) && + Objects.equals(this.basicFareCode, leg.basicFareCode) && + Objects.equals(this.carrierCode, leg.carrierCode) && + Objects.equals(this.departureAirportCode, leg.departureAirportCode) && + Objects.equals(this.departureDate, leg.departureDate) && + Objects.equals(this.flightNumber, leg.flightNumber); } @Override public int hashCode() { - return Objects.hash( - arrivalAirportCode, - basicFareCode, - carrierCode, - departureAirportCode, - departureDate, - flightNumber); + return Objects.hash(arrivalAirportCode, basicFareCode, carrierCode, departureAirportCode, departureDate, flightNumber); } @Override @@ -293,9 +282,7 @@ public String toString() { sb.append(" arrivalAirportCode: ").append(toIndentedString(arrivalAirportCode)).append("\n"); sb.append(" basicFareCode: ").append(toIndentedString(basicFareCode)).append("\n"); sb.append(" carrierCode: ").append(toIndentedString(carrierCode)).append("\n"); - sb.append(" departureAirportCode: ") - .append(toIndentedString(departureAirportCode)) - .append("\n"); + sb.append(" departureAirportCode: ").append(toIndentedString(departureAirportCode)).append("\n"); sb.append(" departureDate: ").append(toIndentedString(departureDate)).append("\n"); sb.append(" flightNumber: ").append(toIndentedString(flightNumber)).append("\n"); sb.append("}"); @@ -303,7 +290,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -312,7 +300,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Leg given an JSON string * * @param jsonString JSON string @@ -322,12 +310,11 @@ private String toIndentedString(Object o) { public static Leg fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Leg.class); } - - /** - * Convert an instance of Leg to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Leg to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/Link.java b/src/main/java/com/adyen/model/transfers/Link.java index 592e82816..28f04adb9 100644 --- a/src/main/java/com/adyen/model/transfers/Link.java +++ b/src/main/java/com/adyen/model/transfers/Link.java @@ -2,28 +2,41 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Link */ -@JsonPropertyOrder({Link.JSON_PROPERTY_HREF}) + +/** + * Link + */ +@JsonPropertyOrder({ + Link.JSON_PROPERTY_HREF +}) + public class Link { public static final String JSON_PROPERTY_HREF = "href"; private String href; - public Link() {} + public Link() { + } /** * The link to the resource. @@ -38,7 +51,6 @@ public Link href(String href) { /** * The link to the resource. - * * @return href The link to the resource. */ @JsonProperty(JSON_PROPERTY_HREF) @@ -58,7 +70,9 @@ public void setHref(String href) { this.href = href; } - /** Return true if this Link object is equal to o. */ + /** + * Return true if this Link object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,7 +110,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Link given an JSON string * * @param jsonString JSON string @@ -105,12 +120,11 @@ private String toIndentedString(Object o) { public static Link fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Link.class); } - - /** - * Convert an instance of Link to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Link to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/Links.java b/src/main/java/com/adyen/model/transfers/Links.java index c1bf6d0d9..d84e88245 100644 --- a/src/main/java/com/adyen/model/transfers/Links.java +++ b/src/main/java/com/adyen/model/transfers/Links.java @@ -2,23 +2,37 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.Link; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Links */ -@JsonPropertyOrder({Links.JSON_PROPERTY_NEXT, Links.JSON_PROPERTY_PREV}) + +/** + * Links + */ +@JsonPropertyOrder({ + Links.JSON_PROPERTY_NEXT, + Links.JSON_PROPERTY_PREV +}) + public class Links { public static final String JSON_PROPERTY_NEXT = "next"; private Link next; @@ -26,12 +40,13 @@ public class Links { public static final String JSON_PROPERTY_PREV = "prev"; private Link prev; - public Links() {} + public Links() { + } /** * next * - * @param next + * @param next * @return the current {@code Links} instance, allowing for method chaining */ public Links next(Link next) { @@ -41,8 +56,7 @@ public Links next(Link next) { /** * Get next - * - * @return next + * @return next */ @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -53,7 +67,7 @@ public Link getNext() { /** * next * - * @param next + * @param next */ @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,7 +78,7 @@ public void setNext(Link next) { /** * prev * - * @param prev + * @param prev * @return the current {@code Links} instance, allowing for method chaining */ public Links prev(Link prev) { @@ -74,8 +88,7 @@ public Links prev(Link prev) { /** * Get prev - * - * @return prev + * @return prev */ @JsonProperty(JSON_PROPERTY_PREV) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -86,7 +99,7 @@ public Link getPrev() { /** * prev * - * @param prev + * @param prev */ @JsonProperty(JSON_PROPERTY_PREV) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,7 +107,9 @@ public void setPrev(Link prev) { this.prev = prev; } - /** Return true if this Links object is equal to o. */ + /** + * Return true if this Links object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -104,7 +119,8 @@ public boolean equals(Object o) { return false; } Links links = (Links) o; - return Objects.equals(this.next, links.next) && Objects.equals(this.prev, links.prev); + return Objects.equals(this.next, links.next) && + Objects.equals(this.prev, links.prev); } @Override @@ -123,7 +139,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -132,7 +149,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Links given an JSON string * * @param jsonString JSON string @@ -142,12 +159,11 @@ private String toIndentedString(Object o) { public static Links fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Links.class); } - - /** - * Convert an instance of Links to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Links to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/Lodging.java b/src/main/java/com/adyen/model/transfers/Lodging.java index 8016fcb7e..0052ae50c 100644 --- a/src/main/java/com/adyen/model/transfers/Lodging.java +++ b/src/main/java/com/adyen/model/transfers/Lodging.java @@ -2,23 +2,36 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Lodging */ -@JsonPropertyOrder({Lodging.JSON_PROPERTY_CHECK_IN_DATE, Lodging.JSON_PROPERTY_NUMBER_OF_NIGHTS}) + +/** + * Lodging + */ +@JsonPropertyOrder({ + Lodging.JSON_PROPERTY_CHECK_IN_DATE, + Lodging.JSON_PROPERTY_NUMBER_OF_NIGHTS +}) + public class Lodging { public static final String JSON_PROPERTY_CHECK_IN_DATE = "checkInDate"; private String checkInDate; @@ -26,7 +39,8 @@ public class Lodging { public static final String JSON_PROPERTY_NUMBER_OF_NIGHTS = "numberOfNights"; private Integer numberOfNights; - public Lodging() {} + public Lodging() { + } /** * The check-in date. @@ -41,7 +55,6 @@ public Lodging checkInDate(String checkInDate) { /** * The check-in date. - * * @return checkInDate The check-in date. */ @JsonProperty(JSON_PROPERTY_CHECK_IN_DATE) @@ -74,7 +87,6 @@ public Lodging numberOfNights(Integer numberOfNights) { /** * The total number of nights the room is booked for. - * * @return numberOfNights The total number of nights the room is booked for. */ @JsonProperty(JSON_PROPERTY_NUMBER_OF_NIGHTS) @@ -94,7 +106,9 @@ public void setNumberOfNights(Integer numberOfNights) { this.numberOfNights = numberOfNights; } - /** Return true if this Lodging object is equal to o. */ + /** + * Return true if this Lodging object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -104,8 +118,8 @@ public boolean equals(Object o) { return false; } Lodging lodging = (Lodging) o; - return Objects.equals(this.checkInDate, lodging.checkInDate) - && Objects.equals(this.numberOfNights, lodging.numberOfNights); + return Objects.equals(this.checkInDate, lodging.checkInDate) && + Objects.equals(this.numberOfNights, lodging.numberOfNights); } @Override @@ -124,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Lodging given an JSON string * * @param jsonString JSON string @@ -143,12 +158,11 @@ private String toIndentedString(Object o) { public static Lodging fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Lodging.class); } - - /** - * Convert an instance of Lodging to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Lodging to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/MerchantData.java b/src/main/java/com/adyen/model/transfers/MerchantData.java index 7882d73b7..41f070b0b 100644 --- a/src/main/java/com/adyen/model/transfers/MerchantData.java +++ b/src/main/java/com/adyen/model/transfers/MerchantData.java @@ -2,22 +2,32 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.NameLocation; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** MerchantData */ + +/** + * MerchantData + */ @JsonPropertyOrder({ MerchantData.JSON_PROPERTY_ACQUIRER_ID, MerchantData.JSON_PROPERTY_MCC, @@ -25,6 +35,7 @@ MerchantData.JSON_PROPERTY_NAME_LOCATION, MerchantData.JSON_PROPERTY_POSTAL_CODE }) + public class MerchantData { public static final String JSON_PROPERTY_ACQUIRER_ID = "acquirerId"; private String acquirerId; @@ -41,7 +52,8 @@ public class MerchantData { public static final String JSON_PROPERTY_POSTAL_CODE = "postalCode"; private String postalCode; - public MerchantData() {} + public MerchantData() { + } /** * The unique identifier of the merchant's acquirer. @@ -56,7 +68,6 @@ public MerchantData acquirerId(String acquirerId) { /** * The unique identifier of the merchant's acquirer. - * * @return acquirerId The unique identifier of the merchant's acquirer. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_ID) @@ -89,7 +100,6 @@ public MerchantData mcc(String mcc) { /** * The merchant category code. - * * @return mcc The merchant category code. */ @JsonProperty(JSON_PROPERTY_MCC) @@ -122,7 +132,6 @@ public MerchantData merchantId(String merchantId) { /** * The unique identifier of the merchant. - * * @return merchantId The unique identifier of the merchant. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @@ -145,7 +154,7 @@ public void setMerchantId(String merchantId) { /** * nameLocation * - * @param nameLocation + * @param nameLocation * @return the current {@code MerchantData} instance, allowing for method chaining */ public MerchantData nameLocation(NameLocation nameLocation) { @@ -155,8 +164,7 @@ public MerchantData nameLocation(NameLocation nameLocation) { /** * Get nameLocation - * - * @return nameLocation + * @return nameLocation */ @JsonProperty(JSON_PROPERTY_NAME_LOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,7 +175,7 @@ public NameLocation getNameLocation() { /** * nameLocation * - * @param nameLocation + * @param nameLocation */ @JsonProperty(JSON_PROPERTY_NAME_LOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,7 +196,6 @@ public MerchantData postalCode(String postalCode) { /** * The postal code of the merchant. - * * @return postalCode The postal code of the merchant. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @@ -208,7 +215,9 @@ public void setPostalCode(String postalCode) { this.postalCode = postalCode; } - /** Return true if this MerchantData object is equal to o. */ + /** + * Return true if this MerchantData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -218,11 +227,11 @@ public boolean equals(Object o) { return false; } MerchantData merchantData = (MerchantData) o; - return Objects.equals(this.acquirerId, merchantData.acquirerId) - && Objects.equals(this.mcc, merchantData.mcc) - && Objects.equals(this.merchantId, merchantData.merchantId) - && Objects.equals(this.nameLocation, merchantData.nameLocation) - && Objects.equals(this.postalCode, merchantData.postalCode); + return Objects.equals(this.acquirerId, merchantData.acquirerId) && + Objects.equals(this.mcc, merchantData.mcc) && + Objects.equals(this.merchantId, merchantData.merchantId) && + Objects.equals(this.nameLocation, merchantData.nameLocation) && + Objects.equals(this.postalCode, merchantData.postalCode); } @Override @@ -244,7 +253,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -253,7 +263,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of MerchantData given an JSON string * * @param jsonString JSON string @@ -263,12 +273,11 @@ private String toIndentedString(Object o) { public static MerchantData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MerchantData.class); } - - /** - * Convert an instance of MerchantData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of MerchantData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/MerchantPurchaseData.java b/src/main/java/com/adyen/model/transfers/MerchantPurchaseData.java index 0346fb7a5..7c38f3159 100644 --- a/src/main/java/com/adyen/model/transfers/MerchantPurchaseData.java +++ b/src/main/java/com/adyen/model/transfers/MerchantPurchaseData.java @@ -2,33 +2,41 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.Airline; +import com.adyen.model.transfers.Lodging; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** MerchantPurchaseData */ +/** + * MerchantPurchaseData + */ @JsonPropertyOrder({ MerchantPurchaseData.JSON_PROPERTY_AIRLINE, MerchantPurchaseData.JSON_PROPERTY_LODGING, MerchantPurchaseData.JSON_PROPERTY_TYPE }) + public class MerchantPurchaseData { public static final String JSON_PROPERTY_AIRLINE = "airline"; private Airline airline; @@ -37,9 +45,10 @@ public class MerchantPurchaseData { private List lodging; /** - * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data + * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data */ public enum TypeEnum { + MERCHANTPURCHASEDATA(String.valueOf("merchantPurchaseData")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -47,7 +56,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -68,11 +77,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -80,12 +85,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public MerchantPurchaseData() {} + public MerchantPurchaseData() { + } /** * airline * - * @param airline + * @param airline * @return the current {@code MerchantPurchaseData} instance, allowing for method chaining */ public MerchantPurchaseData airline(Airline airline) { @@ -95,8 +101,7 @@ public MerchantPurchaseData airline(Airline airline) { /** * Get airline - * - * @return airline + * @return airline */ @JsonProperty(JSON_PROPERTY_AIRLINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,7 +112,7 @@ public Airline getAirline() { /** * airline * - * @param airline + * @param airline */ @JsonProperty(JSON_PROPERTY_AIRLINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,7 +141,6 @@ public MerchantPurchaseData addLodgingItem(Lodging lodgingItem) { /** * Lodging information. - * * @return lodging Lodging information. */ @JsonProperty(JSON_PROPERTY_LODGING) @@ -157,10 +161,9 @@ public void setLodging(List lodging) { } /** - * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data + * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data * - * @param type The type of events data. Possible values: - **merchantPurchaseData**: merchant - * purchase data + * @param type The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data * @return the current {@code MerchantPurchaseData} instance, allowing for method chaining */ public MerchantPurchaseData type(TypeEnum type) { @@ -169,10 +172,8 @@ public MerchantPurchaseData type(TypeEnum type) { } /** - * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data - * - * @return type The type of events data. Possible values: - **merchantPurchaseData**: merchant - * purchase data + * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data + * @return type The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,10 +182,9 @@ public TypeEnum getType() { } /** - * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data + * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data * - * @param type The type of events data. Possible values: - **merchantPurchaseData**: merchant - * purchase data + * @param type The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,7 +192,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this MerchantPurchaseData object is equal to o. */ + /** + * Return true if this MerchantPurchaseData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -202,9 +204,9 @@ public boolean equals(Object o) { return false; } MerchantPurchaseData merchantPurchaseData = (MerchantPurchaseData) o; - return Objects.equals(this.airline, merchantPurchaseData.airline) - && Objects.equals(this.lodging, merchantPurchaseData.lodging) - && Objects.equals(this.type, merchantPurchaseData.type); + return Objects.equals(this.airline, merchantPurchaseData.airline) && + Objects.equals(this.lodging, merchantPurchaseData.lodging) && + Objects.equals(this.type, merchantPurchaseData.type); } @Override @@ -224,7 +226,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -233,23 +236,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of MerchantPurchaseData given an JSON string * * @param jsonString JSON string * @return An instance of MerchantPurchaseData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * MerchantPurchaseData + * @throws JsonProcessingException if the JSON string is invalid with respect to MerchantPurchaseData */ public static MerchantPurchaseData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MerchantPurchaseData.class); } - - /** - * Convert an instance of MerchantPurchaseData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of MerchantPurchaseData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/Modification.java b/src/main/java/com/adyen/model/transfers/Modification.java index 8a9da3129..e5e4b9ab9 100644 --- a/src/main/java/com/adyen/model/transfers/Modification.java +++ b/src/main/java/com/adyen/model/transfers/Modification.java @@ -2,26 +2,31 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** Modification */ + +/** + * Modification + */ @JsonPropertyOrder({ Modification.JSON_PROPERTY_DIRECTION, Modification.JSON_PROPERTY_ID, @@ -29,6 +34,7 @@ Modification.JSON_PROPERTY_STATUS, Modification.JSON_PROPERTY_TYPE }) + public class Modification { public static final String JSON_PROPERTY_DIRECTION = "direction"; private String direction; @@ -39,8 +45,11 @@ public class Modification { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - /** The status of the transfer event. */ + /** + * The status of the transfer event. + */ public enum StatusEnum { + APPROVALPENDING(String.valueOf("approvalPending")), ATMWITHDRAWAL(String.valueOf("atmWithdrawal")), @@ -180,7 +189,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -201,11 +210,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -216,7 +221,8 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public Modification() {} + public Modification() { + } /** * The direction of the money movement. @@ -231,7 +237,6 @@ public Modification direction(String direction) { /** * The direction of the money movement. - * * @return direction The direction of the money movement. */ @JsonProperty(JSON_PROPERTY_DIRECTION) @@ -264,7 +269,6 @@ public Modification id(String id) { /** * Our reference for the modification. - * * @return id Our reference for the modification. */ @JsonProperty(JSON_PROPERTY_ID) @@ -297,7 +301,6 @@ public Modification reference(String reference) { /** * Your reference for the modification, used internally within your platform. - * * @return reference Your reference for the modification, used internally within your platform. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -330,7 +333,6 @@ public Modification status(StatusEnum status) { /** * The status of the transfer event. - * * @return status The status of the transfer event. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -363,7 +365,6 @@ public Modification type(String type) { /** * The type of transfer modification. - * * @return type The type of transfer modification. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -383,7 +384,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this Modification object is equal to o. */ + /** + * Return true if this Modification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -393,11 +396,11 @@ public boolean equals(Object o) { return false; } Modification modification = (Modification) o; - return Objects.equals(this.direction, modification.direction) - && Objects.equals(this.id, modification.id) - && Objects.equals(this.reference, modification.reference) - && Objects.equals(this.status, modification.status) - && Objects.equals(this.type, modification.type); + return Objects.equals(this.direction, modification.direction) && + Objects.equals(this.id, modification.id) && + Objects.equals(this.reference, modification.reference) && + Objects.equals(this.status, modification.status) && + Objects.equals(this.type, modification.type); } @Override @@ -419,7 +422,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -428,7 +432,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Modification given an JSON string * * @param jsonString JSON string @@ -438,12 +442,11 @@ private String toIndentedString(Object o) { public static Modification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Modification.class); } - - /** - * Convert an instance of Modification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Modification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/NOLocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/NOLocalAccountIdentification.java index 747425477..ce84c54fd 100644 --- a/src/main/java/com/adyen/model/transfers/NOLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/NOLocalAccountIdentification.java @@ -2,36 +2,45 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** NOLocalAccountIdentification */ + +/** + * NOLocalAccountIdentification + */ @JsonPropertyOrder({ NOLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, NOLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class NOLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - /** **noLocal** */ + /** + * **noLocal** + */ public enum TypeEnum { + NOLOCAL(String.valueOf("noLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -39,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -72,7 +77,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public NOLocalAccountIdentification() {} + public NOLocalAccountIdentification() { + } /** * The 11-digit bank account number, without separators or whitespace. @@ -87,7 +93,6 @@ public NOLocalAccountIdentification accountNumber(String accountNumber) { /** * The 11-digit bank account number, without separators or whitespace. - * * @return accountNumber The 11-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -120,7 +125,6 @@ public NOLocalAccountIdentification type(TypeEnum type) { /** * **noLocal** - * * @return type **noLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -140,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this NOLocalAccountIdentification object is equal to o. */ + /** + * Return true if this NOLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -150,8 +156,8 @@ public boolean equals(Object o) { return false; } NOLocalAccountIdentification noLocalAccountIdentification = (NOLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, noLocalAccountIdentification.accountNumber) - && Objects.equals(this.type, noLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, noLocalAccountIdentification.accountNumber) && + Objects.equals(this.type, noLocalAccountIdentification.type); } @Override @@ -170,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -179,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of NOLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of NOLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * NOLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to NOLocalAccountIdentification */ - public static NOLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static NOLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NOLocalAccountIdentification.class); } - - /** - * Convert an instance of NOLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of NOLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/NZLocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/NZLocalAccountIdentification.java index 645db8365..1574141ae 100644 --- a/src/main/java/com/adyen/model/transfers/NZLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/NZLocalAccountIdentification.java @@ -2,36 +2,45 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** NZLocalAccountIdentification */ + +/** + * NZLocalAccountIdentification + */ @JsonPropertyOrder({ NZLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, NZLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class NZLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - /** **nzLocal** */ + /** + * **nzLocal** + */ public enum TypeEnum { + NZLOCAL(String.valueOf("nzLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -39,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -72,16 +77,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public NZLocalAccountIdentification() {} + public NZLocalAccountIdentification() { + } /** - * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits - * are the branch number, the next 7 digits are the account number, and the final 2-3 digits are - * the suffix. + * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. * - * @param accountNumber The 15-16 digit bank account number. The first 2 digits are the bank - * number, the next 4 digits are the branch number, the next 7 digits are the account number, - * and the final 2-3 digits are the suffix. + * @param accountNumber The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. * @return the current {@code NZLocalAccountIdentification} instance, allowing for method chaining */ public NZLocalAccountIdentification accountNumber(String accountNumber) { @@ -90,13 +92,8 @@ public NZLocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits - * are the branch number, the next 7 digits are the account number, and the final 2-3 digits are - * the suffix. - * - * @return accountNumber The 15-16 digit bank account number. The first 2 digits are the bank - * number, the next 4 digits are the branch number, the next 7 digits are the account number, - * and the final 2-3 digits are the suffix. + * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. + * @return accountNumber The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,13 +102,9 @@ public String getAccountNumber() { } /** - * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits - * are the branch number, the next 7 digits are the account number, and the final 2-3 digits are - * the suffix. + * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. * - * @param accountNumber The 15-16 digit bank account number. The first 2 digits are the bank - * number, the next 4 digits are the branch number, the next 7 digits are the account number, - * and the final 2-3 digits are the suffix. + * @param accountNumber The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,7 +125,6 @@ public NZLocalAccountIdentification type(TypeEnum type) { /** * **nzLocal** - * * @return type **nzLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -152,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this NZLocalAccountIdentification object is equal to o. */ + /** + * Return true if this NZLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -162,8 +156,8 @@ public boolean equals(Object o) { return false; } NZLocalAccountIdentification nzLocalAccountIdentification = (NZLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, nzLocalAccountIdentification.accountNumber) - && Objects.equals(this.type, nzLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, nzLocalAccountIdentification.accountNumber) && + Objects.equals(this.type, nzLocalAccountIdentification.type); } @Override @@ -182,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -191,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of NZLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of NZLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * NZLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to NZLocalAccountIdentification */ - public static NZLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static NZLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NZLocalAccountIdentification.class); } - - /** - * Convert an instance of NZLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of NZLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/NameLocation.java b/src/main/java/com/adyen/model/transfers/NameLocation.java index b353fe954..86f9df50e 100644 --- a/src/main/java/com/adyen/model/transfers/NameLocation.java +++ b/src/main/java/com/adyen/model/transfers/NameLocation.java @@ -2,22 +2,31 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** NameLocation */ + +/** + * NameLocation + */ @JsonPropertyOrder({ NameLocation.JSON_PROPERTY_CITY, NameLocation.JSON_PROPERTY_COUNTRY, @@ -26,6 +35,7 @@ NameLocation.JSON_PROPERTY_RAW_DATA, NameLocation.JSON_PROPERTY_STATE }) + public class NameLocation { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -45,7 +55,8 @@ public class NameLocation { public static final String JSON_PROPERTY_STATE = "state"; private String state; - public NameLocation() {} + public NameLocation() { + } /** * The city where the merchant is located. @@ -60,7 +71,6 @@ public NameLocation city(String city) { /** * The city where the merchant is located. - * * @return city The city where the merchant is located. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -81,11 +91,9 @@ public void setCity(String city) { } /** - * The country where the merchant is located in [three-letter country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. + * The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. * - * @param country The country where the merchant is located in [three-letter country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. + * @param country The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. * @return the current {@code NameLocation} instance, allowing for method chaining */ public NameLocation country(String country) { @@ -94,11 +102,8 @@ public NameLocation country(String country) { } /** - * The country where the merchant is located in [three-letter country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. - * - * @return country The country where the merchant is located in [three-letter country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. + * The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. + * @return country The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,11 +112,9 @@ public String getCountry() { } /** - * The country where the merchant is located in [three-letter country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. + * The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. * - * @param country The country where the merchant is located in [three-letter country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. + * @param country The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -120,13 +123,9 @@ public void setCountry(String country) { } /** - * The home country in [three-digit country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled - * merchants such as embassies. + * The home country in [three-digit country code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled merchants such as embassies. * - * @param countryOfOrigin The home country in [three-digit country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for - * government-controlled merchants such as embassies. + * @param countryOfOrigin The home country in [three-digit country code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled merchants such as embassies. * @return the current {@code NameLocation} instance, allowing for method chaining */ public NameLocation countryOfOrigin(String countryOfOrigin) { @@ -135,13 +134,8 @@ public NameLocation countryOfOrigin(String countryOfOrigin) { } /** - * The home country in [three-digit country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled - * merchants such as embassies. - * - * @return countryOfOrigin The home country in [three-digit country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for - * government-controlled merchants such as embassies. + * The home country in [three-digit country code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled merchants such as embassies. + * @return countryOfOrigin The home country in [three-digit country code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled merchants such as embassies. */ @JsonProperty(JSON_PROPERTY_COUNTRY_OF_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,13 +144,9 @@ public String getCountryOfOrigin() { } /** - * The home country in [three-digit country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled - * merchants such as embassies. + * The home country in [three-digit country code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled merchants such as embassies. * - * @param countryOfOrigin The home country in [three-digit country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for - * government-controlled merchants such as embassies. + * @param countryOfOrigin The home country in [three-digit country code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled merchants such as embassies. */ @JsonProperty(JSON_PROPERTY_COUNTRY_OF_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,7 +167,6 @@ public NameLocation name(String name) { /** * The name of the merchant's shop or service. - * * @return name The name of the merchant's shop or service. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -210,7 +199,6 @@ public NameLocation rawData(String rawData) { /** * The raw data. - * * @return rawData The raw data. */ @JsonProperty(JSON_PROPERTY_RAW_DATA) @@ -243,7 +231,6 @@ public NameLocation state(String state) { /** * The state where the merchant is located. - * * @return state The state where the merchant is located. */ @JsonProperty(JSON_PROPERTY_STATE) @@ -263,7 +250,9 @@ public void setState(String state) { this.state = state; } - /** Return true if this NameLocation object is equal to o. */ + /** + * Return true if this NameLocation object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -273,12 +262,12 @@ public boolean equals(Object o) { return false; } NameLocation nameLocation = (NameLocation) o; - return Objects.equals(this.city, nameLocation.city) - && Objects.equals(this.country, nameLocation.country) - && Objects.equals(this.countryOfOrigin, nameLocation.countryOfOrigin) - && Objects.equals(this.name, nameLocation.name) - && Objects.equals(this.rawData, nameLocation.rawData) - && Objects.equals(this.state, nameLocation.state); + return Objects.equals(this.city, nameLocation.city) && + Objects.equals(this.country, nameLocation.country) && + Objects.equals(this.countryOfOrigin, nameLocation.countryOfOrigin) && + Objects.equals(this.name, nameLocation.name) && + Objects.equals(this.rawData, nameLocation.rawData) && + Objects.equals(this.state, nameLocation.state); } @Override @@ -301,7 +290,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -310,7 +300,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of NameLocation given an JSON string * * @param jsonString JSON string @@ -320,12 +310,11 @@ private String toIndentedString(Object o) { public static NameLocation fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NameLocation.class); } - - /** - * Convert an instance of NameLocation to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of NameLocation to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/NumberAndBicAccountIdentification.java b/src/main/java/com/adyen/model/transfers/NumberAndBicAccountIdentification.java index 79037ee5e..398f34b3a 100644 --- a/src/main/java/com/adyen/model/transfers/NumberAndBicAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/NumberAndBicAccountIdentification.java @@ -2,45 +2,54 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.AdditionalBankIdentification; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** NumberAndBicAccountIdentification */ + +/** + * NumberAndBicAccountIdentification + */ @JsonPropertyOrder({ NumberAndBicAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, NumberAndBicAccountIdentification.JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION, NumberAndBicAccountIdentification.JSON_PROPERTY_BIC, NumberAndBicAccountIdentification.JSON_PROPERTY_TYPE }) + public class NumberAndBicAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - public static final String JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION = - "additionalBankIdentification"; + public static final String JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION = "additionalBankIdentification"; private AdditionalBankIdentification additionalBankIdentification; public static final String JSON_PROPERTY_BIC = "bic"; private String bic; - /** **numberAndBic** */ + /** + * **numberAndBic** + */ public enum TypeEnum { + NUMBERANDBIC(String.valueOf("numberAndBic")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +57,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,11 +78,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -81,16 +86,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public NumberAndBicAccountIdentification() {} + public NumberAndBicAccountIdentification() { + } /** - * The bank account number, without separators or whitespace. The length and format depends on the - * bank or country. + * The bank account number, without separators or whitespace. The length and format depends on the bank or country. * - * @param accountNumber The bank account number, without separators or whitespace. The length and - * format depends on the bank or country. - * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method - * chaining + * @param accountNumber The bank account number, without separators or whitespace. The length and format depends on the bank or country. + * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method chaining */ public NumberAndBicAccountIdentification accountNumber(String accountNumber) { this.accountNumber = accountNumber; @@ -98,11 +101,8 @@ public NumberAndBicAccountIdentification accountNumber(String accountNumber) { } /** - * The bank account number, without separators or whitespace. The length and format depends on the - * bank or country. - * - * @return accountNumber The bank account number, without separators or whitespace. The length and - * format depends on the bank or country. + * The bank account number, without separators or whitespace. The length and format depends on the bank or country. + * @return accountNumber The bank account number, without separators or whitespace. The length and format depends on the bank or country. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,11 +111,9 @@ public String getAccountNumber() { } /** - * The bank account number, without separators or whitespace. The length and format depends on the - * bank or country. + * The bank account number, without separators or whitespace. The length and format depends on the bank or country. * - * @param accountNumber The bank account number, without separators or whitespace. The length and - * format depends on the bank or country. + * @param accountNumber The bank account number, without separators or whitespace. The length and format depends on the bank or country. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,20 +124,17 @@ public void setAccountNumber(String accountNumber) { /** * additionalBankIdentification * - * @param additionalBankIdentification - * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method - * chaining + * @param additionalBankIdentification + * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method chaining */ - public NumberAndBicAccountIdentification additionalBankIdentification( - AdditionalBankIdentification additionalBankIdentification) { + public NumberAndBicAccountIdentification additionalBankIdentification(AdditionalBankIdentification additionalBankIdentification) { this.additionalBankIdentification = additionalBankIdentification; return this; } /** * Get additionalBankIdentification - * - * @return additionalBankIdentification + * @return additionalBankIdentification */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,12 +145,11 @@ public AdditionalBankIdentification getAdditionalBankIdentification() { /** * additionalBankIdentification * - * @param additionalBankIdentification + * @param additionalBankIdentification */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAdditionalBankIdentification( - AdditionalBankIdentification additionalBankIdentification) { + public void setAdditionalBankIdentification(AdditionalBankIdentification additionalBankIdentification) { this.additionalBankIdentification = additionalBankIdentification; } @@ -163,8 +157,7 @@ public void setAdditionalBankIdentification( * The bank's 8- or 11-character BIC or SWIFT code. * * @param bic The bank's 8- or 11-character BIC or SWIFT code. - * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method - * chaining + * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method chaining */ public NumberAndBicAccountIdentification bic(String bic) { this.bic = bic; @@ -173,7 +166,6 @@ public NumberAndBicAccountIdentification bic(String bic) { /** * The bank's 8- or 11-character BIC or SWIFT code. - * * @return bic The bank's 8- or 11-character BIC or SWIFT code. */ @JsonProperty(JSON_PROPERTY_BIC) @@ -197,8 +189,7 @@ public void setBic(String bic) { * **numberAndBic** * * @param type **numberAndBic** - * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method - * chaining + * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method chaining */ public NumberAndBicAccountIdentification type(TypeEnum type) { this.type = type; @@ -207,7 +198,6 @@ public NumberAndBicAccountIdentification type(TypeEnum type) { /** * **numberAndBic** - * * @return type **numberAndBic** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -227,7 +217,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this NumberAndBicAccountIdentification object is equal to o. */ + /** + * Return true if this NumberAndBicAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -236,14 +228,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - NumberAndBicAccountIdentification numberAndBicAccountIdentification = - (NumberAndBicAccountIdentification) o; - return Objects.equals(this.accountNumber, numberAndBicAccountIdentification.accountNumber) - && Objects.equals( - this.additionalBankIdentification, - numberAndBicAccountIdentification.additionalBankIdentification) - && Objects.equals(this.bic, numberAndBicAccountIdentification.bic) - && Objects.equals(this.type, numberAndBicAccountIdentification.type); + NumberAndBicAccountIdentification numberAndBicAccountIdentification = (NumberAndBicAccountIdentification) o; + return Objects.equals(this.accountNumber, numberAndBicAccountIdentification.accountNumber) && + Objects.equals(this.additionalBankIdentification, numberAndBicAccountIdentification.additionalBankIdentification) && + Objects.equals(this.bic, numberAndBicAccountIdentification.bic) && + Objects.equals(this.type, numberAndBicAccountIdentification.type); } @Override @@ -256,9 +245,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NumberAndBicAccountIdentification {\n"); sb.append(" accountNumber: ").append(toIndentedString(accountNumber)).append("\n"); - sb.append(" additionalBankIdentification: ") - .append(toIndentedString(additionalBankIdentification)) - .append("\n"); + sb.append(" additionalBankIdentification: ").append(toIndentedString(additionalBankIdentification)).append("\n"); sb.append(" bic: ").append(toIndentedString(bic)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -266,7 +253,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -275,24 +263,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of NumberAndBicAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of NumberAndBicAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * NumberAndBicAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to NumberAndBicAccountIdentification */ - public static NumberAndBicAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static NumberAndBicAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NumberAndBicAccountIdentification.class); } - - /** - * Convert an instance of NumberAndBicAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of NumberAndBicAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/PLLocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/PLLocalAccountIdentification.java index 3158ffe10..7b0717a4d 100644 --- a/src/main/java/com/adyen/model/transfers/PLLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/PLLocalAccountIdentification.java @@ -2,36 +2,45 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** PLLocalAccountIdentification */ + +/** + * PLLocalAccountIdentification + */ @JsonPropertyOrder({ PLLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, PLLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class PLLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - /** **plLocal** */ + /** + * **plLocal** + */ public enum TypeEnum { + PLLOCAL(String.valueOf("plLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -39,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -72,16 +77,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PLLocalAccountIdentification() {} + public PLLocalAccountIdentification() { + } /** - * The 26-digit bank account number ([Numer - * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or - * whitespace. + * The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. * - * @param accountNumber The 26-digit bank account number ([Numer - * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or - * whitespace. + * @param accountNumber The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. * @return the current {@code PLLocalAccountIdentification} instance, allowing for method chaining */ public PLLocalAccountIdentification accountNumber(String accountNumber) { @@ -90,13 +92,8 @@ public PLLocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 26-digit bank account number ([Numer - * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or - * whitespace. - * - * @return accountNumber The 26-digit bank account number ([Numer - * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or - * whitespace. + * The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. + * @return accountNumber The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,13 +102,9 @@ public String getAccountNumber() { } /** - * The 26-digit bank account number ([Numer - * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or - * whitespace. + * The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. * - * @param accountNumber The 26-digit bank account number ([Numer - * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or - * whitespace. + * @param accountNumber The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,7 +125,6 @@ public PLLocalAccountIdentification type(TypeEnum type) { /** * **plLocal** - * * @return type **plLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -152,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this PLLocalAccountIdentification object is equal to o. */ + /** + * Return true if this PLLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -162,8 +156,8 @@ public boolean equals(Object o) { return false; } PLLocalAccountIdentification plLocalAccountIdentification = (PLLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, plLocalAccountIdentification.accountNumber) - && Objects.equals(this.type, plLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, plLocalAccountIdentification.accountNumber) && + Objects.equals(this.type, plLocalAccountIdentification.type); } @Override @@ -182,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -191,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PLLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of PLLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PLLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to PLLocalAccountIdentification */ - public static PLLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static PLLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PLLocalAccountIdentification.class); } - - /** - * Convert an instance of PLLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PLLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/PartyIdentification.java b/src/main/java/com/adyen/model/transfers/PartyIdentification.java index f7150a348..e847d549a 100644 --- a/src/main/java/com/adyen/model/transfers/PartyIdentification.java +++ b/src/main/java/com/adyen/model/transfers/PartyIdentification.java @@ -2,27 +2,33 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.Address; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PartyIdentification */ +/** + * PartyIdentification + */ @JsonPropertyOrder({ PartyIdentification.JSON_PROPERTY_ADDRESS, PartyIdentification.JSON_PROPERTY_DATE_OF_BIRTH, @@ -34,6 +40,7 @@ PartyIdentification.JSON_PROPERTY_TYPE, PartyIdentification.JSON_PROPERTY_URL }) + public class PartyIdentification { public static final String JSON_PROPERTY_ADDRESS = "address"; private Address address; @@ -57,11 +64,10 @@ public class PartyIdentification { private String reference; /** - * The type of entity that owns the bank account or card. Possible values: **individual**, - * **organization**, or **unknown**. Required when `category` is **card**. In this case, - * the value must be **individual**. + * The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. */ public enum TypeEnum { + INDIVIDUAL(String.valueOf("individual")), ORGANIZATION(String.valueOf("organization")), @@ -73,7 +79,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -94,11 +100,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -109,12 +111,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_URL = "url"; private String url; - public PartyIdentification() {} + public PartyIdentification() { + } /** * address * - * @param address + * @param address * @return the current {@code PartyIdentification} instance, allowing for method chaining */ public PartyIdentification address(Address address) { @@ -124,8 +127,7 @@ public PartyIdentification address(Address address) { /** * Get address - * - * @return address + * @return address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,7 +138,7 @@ public Address getAddress() { /** * address * - * @param address + * @param address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,12 +147,9 @@ public void setAddress(Address address) { } /** - * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. - * For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. + * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. * - * @param dateOfBirth The date of birth of the individual in - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. - * Allowed only when `type` is **individual**. + * @param dateOfBirth The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. * @return the current {@code PartyIdentification} instance, allowing for method chaining */ public PartyIdentification dateOfBirth(LocalDate dateOfBirth) { @@ -159,12 +158,8 @@ public PartyIdentification dateOfBirth(LocalDate dateOfBirth) { } /** - * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. - * For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. - * - * @return dateOfBirth The date of birth of the individual in - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. - * Allowed only when `type` is **individual**. + * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. + * @return dateOfBirth The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,12 +168,9 @@ public LocalDate getDateOfBirth() { } /** - * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. - * For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. + * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. * - * @param dateOfBirth The date of birth of the individual in - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. - * Allowed only when `type` is **individual**. + * @param dateOfBirth The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,8 +181,7 @@ public void setDateOfBirth(LocalDate dateOfBirth) { /** * The email address of the organization or individual. Maximum length: 254 characters. * - * @param email The email address of the organization or individual. Maximum length: 254 - * characters. + * @param email The email address of the organization or individual. Maximum length: 254 characters. * @return the current {@code PartyIdentification} instance, allowing for method chaining */ public PartyIdentification email(String email) { @@ -200,9 +191,7 @@ public PartyIdentification email(String email) { /** * The email address of the organization or individual. Maximum length: 254 characters. - * - * @return email The email address of the organization or individual. Maximum length: 254 - * characters. + * @return email The email address of the organization or individual. Maximum length: 254 characters. */ @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -213,8 +202,7 @@ public String getEmail() { /** * The email address of the organization or individual. Maximum length: 254 characters. * - * @param email The email address of the organization or individual. Maximum length: 254 - * characters. + * @param email The email address of the organization or individual. Maximum length: 254 characters. */ @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,13 +211,9 @@ public void setEmail(String email) { } /** - * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This - * parameter is: - Allowed only when `type` is **individual**. - Required when - * `category` is **card**. + * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. * - * @param firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — - * and space. This parameter is: - Allowed only when `type` is **individual**. - - * Required when `category` is **card**. + * @param firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. * @return the current {@code PartyIdentification} instance, allowing for method chaining */ public PartyIdentification firstName(String firstName) { @@ -238,13 +222,8 @@ public PartyIdentification firstName(String firstName) { } /** - * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This - * parameter is: - Allowed only when `type` is **individual**. - Required when - * `category` is **card**. - * - * @return firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — - * and space. This parameter is: - Allowed only when `type` is **individual**. - - * Required when `category` is **card**. + * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * @return firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -253,13 +232,9 @@ public String getFirstName() { } /** - * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This - * parameter is: - Allowed only when `type` is **individual**. - Required when - * `category` is **card**. + * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. * - * @param firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — - * and space. This parameter is: - Allowed only when `type` is **individual**. - - * Required when `category` is **card**. + * @param firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -268,13 +243,9 @@ public void setFirstName(String firstName) { } /** - * The full name of the entity that owns the bank account or card. Supported characters: [a-z] - * [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when - * `category` is **bank**. + * The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. * - * @param fullName The full name of the entity that owns the bank account or card. Supported - * characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. - * Required when `category` is **bank**. + * @param fullName The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. * @return the current {@code PartyIdentification} instance, allowing for method chaining */ public PartyIdentification fullName(String fullName) { @@ -283,13 +254,8 @@ public PartyIdentification fullName(String fullName) { } /** - * The full name of the entity that owns the bank account or card. Supported characters: [a-z] - * [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when - * `category` is **bank**. - * - * @return fullName The full name of the entity that owns the bank account or card. Supported - * characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. - * Required when `category` is **bank**. + * The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. + * @return fullName The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. */ @JsonProperty(JSON_PROPERTY_FULL_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -298,13 +264,9 @@ public String getFullName() { } /** - * The full name of the entity that owns the bank account or card. Supported characters: [a-z] - * [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when - * `category` is **bank**. + * The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. * - * @param fullName The full name of the entity that owns the bank account or card. Supported - * characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. - * Required when `category` is **bank**. + * @param fullName The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. */ @JsonProperty(JSON_PROPERTY_FULL_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -313,13 +275,9 @@ public void setFullName(String fullName) { } /** - * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This - * parameter is: - Allowed only when `type` is **individual**. - Required when - * `category` is **card**. + * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. * - * @param lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and - * space. This parameter is: - Allowed only when `type` is **individual**. - - * Required when `category` is **card**. + * @param lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. * @return the current {@code PartyIdentification} instance, allowing for method chaining */ public PartyIdentification lastName(String lastName) { @@ -328,13 +286,8 @@ public PartyIdentification lastName(String lastName) { } /** - * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This - * parameter is: - Allowed only when `type` is **individual**. - Required when - * `category` is **card**. - * - * @return lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and - * space. This parameter is: - Allowed only when `type` is **individual**. - - * Required when `category` is **card**. + * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * @return lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -343,13 +296,9 @@ public String getLastName() { } /** - * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This - * parameter is: - Allowed only when `type` is **individual**. - Required when - * `category` is **card**. + * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. * - * @param lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and - * space. This parameter is: - Allowed only when `type` is **individual**. - - * Required when `category` is **card**. + * @param lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -358,13 +307,9 @@ public void setLastName(String lastName) { } /** - * A unique reference to identify the party or counterparty involved in the transfer. For example, - * your client's unique wallet or payee ID. Required when you include - * `cardIdentification.storedPaymentMethodId`. + * A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. * - * @param reference A unique reference to identify the party or counterparty involved in the - * transfer. For example, your client's unique wallet or payee ID. Required when you - * include `cardIdentification.storedPaymentMethodId`. + * @param reference A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. * @return the current {@code PartyIdentification} instance, allowing for method chaining */ public PartyIdentification reference(String reference) { @@ -373,13 +318,8 @@ public PartyIdentification reference(String reference) { } /** - * A unique reference to identify the party or counterparty involved in the transfer. For example, - * your client's unique wallet or payee ID. Required when you include - * `cardIdentification.storedPaymentMethodId`. - * - * @return reference A unique reference to identify the party or counterparty involved in the - * transfer. For example, your client's unique wallet or payee ID. Required when you - * include `cardIdentification.storedPaymentMethodId`. + * A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. + * @return reference A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -388,13 +328,9 @@ public String getReference() { } /** - * A unique reference to identify the party or counterparty involved in the transfer. For example, - * your client's unique wallet or payee ID. Required when you include - * `cardIdentification.storedPaymentMethodId`. + * A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. * - * @param reference A unique reference to identify the party or counterparty involved in the - * transfer. For example, your client's unique wallet or payee ID. Required when you - * include `cardIdentification.storedPaymentMethodId`. + * @param reference A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -403,13 +339,9 @@ public void setReference(String reference) { } /** - * The type of entity that owns the bank account or card. Possible values: **individual**, - * **organization**, or **unknown**. Required when `category` is **card**. In this case, - * the value must be **individual**. + * The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. * - * @param type The type of entity that owns the bank account or card. Possible values: - * **individual**, **organization**, or **unknown**. Required when `category` is - * **card**. In this case, the value must be **individual**. + * @param type The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. * @return the current {@code PartyIdentification} instance, allowing for method chaining */ public PartyIdentification type(TypeEnum type) { @@ -418,13 +350,8 @@ public PartyIdentification type(TypeEnum type) { } /** - * The type of entity that owns the bank account or card. Possible values: **individual**, - * **organization**, or **unknown**. Required when `category` is **card**. In this case, - * the value must be **individual**. - * - * @return type The type of entity that owns the bank account or card. Possible values: - * **individual**, **organization**, or **unknown**. Required when `category` is - * **card**. In this case, the value must be **individual**. + * The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. + * @return type The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -433,13 +360,9 @@ public TypeEnum getType() { } /** - * The type of entity that owns the bank account or card. Possible values: **individual**, - * **organization**, or **unknown**. Required when `category` is **card**. In this case, - * the value must be **individual**. + * The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. * - * @param type The type of entity that owns the bank account or card. Possible values: - * **individual**, **organization**, or **unknown**. Required when `category` is - * **card**. In this case, the value must be **individual**. + * @param type The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -460,7 +383,6 @@ public PartyIdentification url(String url) { /** * The URL of the organization or individual. Maximum length: 255 characters. - * * @return url The URL of the organization or individual. Maximum length: 255 characters. */ @JsonProperty(JSON_PROPERTY_URL) @@ -480,7 +402,9 @@ public void setUrl(String url) { this.url = url; } - /** Return true if this PartyIdentification object is equal to o. */ + /** + * Return true if this PartyIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -490,21 +414,20 @@ public boolean equals(Object o) { return false; } PartyIdentification partyIdentification = (PartyIdentification) o; - return Objects.equals(this.address, partyIdentification.address) - && Objects.equals(this.dateOfBirth, partyIdentification.dateOfBirth) - && Objects.equals(this.email, partyIdentification.email) - && Objects.equals(this.firstName, partyIdentification.firstName) - && Objects.equals(this.fullName, partyIdentification.fullName) - && Objects.equals(this.lastName, partyIdentification.lastName) - && Objects.equals(this.reference, partyIdentification.reference) - && Objects.equals(this.type, partyIdentification.type) - && Objects.equals(this.url, partyIdentification.url); + return Objects.equals(this.address, partyIdentification.address) && + Objects.equals(this.dateOfBirth, partyIdentification.dateOfBirth) && + Objects.equals(this.email, partyIdentification.email) && + Objects.equals(this.firstName, partyIdentification.firstName) && + Objects.equals(this.fullName, partyIdentification.fullName) && + Objects.equals(this.lastName, partyIdentification.lastName) && + Objects.equals(this.reference, partyIdentification.reference) && + Objects.equals(this.type, partyIdentification.type) && + Objects.equals(this.url, partyIdentification.url); } @Override public int hashCode() { - return Objects.hash( - address, dateOfBirth, email, firstName, fullName, lastName, reference, type, url); + return Objects.hash(address, dateOfBirth, email, firstName, fullName, lastName, reference, type, url); } @Override @@ -525,7 +448,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -534,23 +458,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PartyIdentification given an JSON string * * @param jsonString JSON string * @return An instance of PartyIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PartyIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to PartyIdentification */ public static PartyIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PartyIdentification.class); } - - /** - * Convert an instance of PartyIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PartyIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/PaymentInstrument.java b/src/main/java/com/adyen/model/transfers/PaymentInstrument.java index 6912fc42a..e1c6affe0 100644 --- a/src/main/java/com/adyen/model/transfers/PaymentInstrument.java +++ b/src/main/java/com/adyen/model/transfers/PaymentInstrument.java @@ -2,28 +2,38 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** PaymentInstrument */ + +/** + * PaymentInstrument + */ @JsonPropertyOrder({ PaymentInstrument.JSON_PROPERTY_DESCRIPTION, PaymentInstrument.JSON_PROPERTY_ID, PaymentInstrument.JSON_PROPERTY_REFERENCE, PaymentInstrument.JSON_PROPERTY_TOKEN_TYPE }) + public class PaymentInstrument { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -37,7 +47,8 @@ public class PaymentInstrument { public static final String JSON_PROPERTY_TOKEN_TYPE = "tokenType"; private String tokenType; - public PaymentInstrument() {} + public PaymentInstrument() { + } /** * The description of the resource. @@ -52,7 +63,6 @@ public PaymentInstrument description(String description) { /** * The description of the resource. - * * @return description The description of the resource. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -85,7 +95,6 @@ public PaymentInstrument id(String id) { /** * The unique identifier of the resource. - * * @return id The unique identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -118,7 +127,6 @@ public PaymentInstrument reference(String reference) { /** * The reference for the resource. - * * @return reference The reference for the resource. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -151,7 +159,6 @@ public PaymentInstrument tokenType(String tokenType) { /** * The type of wallet that the network token is associated with. - * * @return tokenType The type of wallet that the network token is associated with. */ @JsonProperty(JSON_PROPERTY_TOKEN_TYPE) @@ -171,7 +178,9 @@ public void setTokenType(String tokenType) { this.tokenType = tokenType; } - /** Return true if this PaymentInstrument object is equal to o. */ + /** + * Return true if this PaymentInstrument object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -181,10 +190,10 @@ public boolean equals(Object o) { return false; } PaymentInstrument paymentInstrument = (PaymentInstrument) o; - return Objects.equals(this.description, paymentInstrument.description) - && Objects.equals(this.id, paymentInstrument.id) - && Objects.equals(this.reference, paymentInstrument.reference) - && Objects.equals(this.tokenType, paymentInstrument.tokenType); + return Objects.equals(this.description, paymentInstrument.description) && + Objects.equals(this.id, paymentInstrument.id) && + Objects.equals(this.reference, paymentInstrument.reference) && + Objects.equals(this.tokenType, paymentInstrument.tokenType); } @Override @@ -205,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -214,7 +224,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentInstrument given an JSON string * * @param jsonString JSON string @@ -224,12 +234,11 @@ private String toIndentedString(Object o) { public static PaymentInstrument fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentInstrument.class); } - - /** - * Convert an instance of PaymentInstrument to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentInstrument to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/PlatformPayment.java b/src/main/java/com/adyen/model/transfers/PlatformPayment.java index fab1d8ee9..f1ab1c246 100644 --- a/src/main/java/com/adyen/model/transfers/PlatformPayment.java +++ b/src/main/java/com/adyen/model/transfers/PlatformPayment.java @@ -2,26 +2,31 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PlatformPayment */ +/** + * PlatformPayment + */ @JsonPropertyOrder({ PlatformPayment.JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE, PlatformPayment.JSON_PROPERTY_MODIFICATION_PSP_REFERENCE, @@ -30,9 +35,9 @@ PlatformPayment.JSON_PROPERTY_PSP_PAYMENT_REFERENCE, PlatformPayment.JSON_PROPERTY_TYPE }) + public class PlatformPayment { - public static final String JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE = - "modificationMerchantReference"; + public static final String JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE = "modificationMerchantReference"; private String modificationMerchantReference; public static final String JSON_PROPERTY_MODIFICATION_PSP_REFERENCE = "modificationPspReference"; @@ -42,28 +47,10 @@ public class PlatformPayment { private String paymentMerchantReference; /** - * Specifies the nature of the transfer. This parameter helps categorize transfers so you can - * reconcile transactions at a later time, using the Balance Platform Accounting Report for - * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) - * or - * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). - * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * - * **AdyenCommission**: for the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). - * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's - * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen - * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale - * amount of a transaction. * **Commission**: for your platform's commission on a transaction. - * * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * - * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * - * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount - * after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This - * is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge - * paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * - * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for - * the Value Added Tax. + * Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. */ public enum PlatformPaymentTypeEnum { + ACQUIRINGFEES(String.valueOf("AcquiringFees")), ADYENCOMMISSION(String.valueOf("AdyenCommission")), @@ -103,7 +90,7 @@ public enum PlatformPaymentTypeEnum { private String value; PlatformPaymentTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -124,11 +111,7 @@ public static PlatformPaymentTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PlatformPaymentTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PlatformPaymentTypeEnum.values())); + LOG.warning("PlatformPaymentTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PlatformPaymentTypeEnum.values())); return null; } } @@ -139,8 +122,11 @@ public static PlatformPaymentTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_PSP_PAYMENT_REFERENCE = "pspPaymentReference"; private String pspPaymentReference; - /** **platformPayment** */ + /** + * **platformPayment** + */ public enum TypeEnum { + PLATFORMPAYMENT(String.valueOf("platformPayment")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -148,7 +134,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -169,11 +155,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -181,13 +163,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PlatformPayment() {} + public PlatformPayment() { + } /** * The capture's merchant reference included in the transfer. * - * @param modificationMerchantReference The capture's merchant reference included in the - * transfer. + * @param modificationMerchantReference The capture's merchant reference included in the transfer. * @return the current {@code PlatformPayment} instance, allowing for method chaining */ public PlatformPayment modificationMerchantReference(String modificationMerchantReference) { @@ -197,9 +179,7 @@ public PlatformPayment modificationMerchantReference(String modificationMerchant /** * The capture's merchant reference included in the transfer. - * - * @return modificationMerchantReference The capture's merchant reference included in the - * transfer. + * @return modificationMerchantReference The capture's merchant reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -210,8 +190,7 @@ public String getModificationMerchantReference() { /** * The capture's merchant reference included in the transfer. * - * @param modificationMerchantReference The capture's merchant reference included in the - * transfer. + * @param modificationMerchantReference The capture's merchant reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,7 +211,6 @@ public PlatformPayment modificationPspReference(String modificationPspReference) /** * The capture reference included in the transfer. - * * @return modificationPspReference The capture reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_PSP_REFERENCE) @@ -265,7 +243,6 @@ public PlatformPayment paymentMerchantReference(String paymentMerchantReference) /** * The payment's merchant reference included in the transfer. - * * @return paymentMerchantReference The payment's merchant reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_PAYMENT_MERCHANT_REFERENCE) @@ -286,48 +263,9 @@ public void setPaymentMerchantReference(String paymentMerchantReference) { } /** - * Specifies the nature of the transfer. This parameter helps categorize transfers so you can - * reconcile transactions at a later time, using the Balance Platform Accounting Report for - * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) - * or - * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). - * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * - * **AdyenCommission**: for the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). - * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's - * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen - * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale - * amount of a transaction. * **Commission**: for your platform's commission on a transaction. - * * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * - * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * - * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount - * after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This - * is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge - * paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * - * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for - * the Value Added Tax. + * Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. * - * @param platformPaymentType Specifies the nature of the transfer. This parameter helps - * categorize transfers so you can reconcile transactions at a later time, using the Balance - * Platform Accounting Report for - * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) - * or - * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). - * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * - * **AdyenCommission**: for the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). - * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's - * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen - * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the - * sale amount of a transaction. * **Commission**: for your platform's commission on a - * transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a - * transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred - * on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for - * the left over amount after currency conversion. * **SchemeFee**: for the scheme fee - * incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. - * * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for - * the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your - * user's balance account. * **VAT**: for the Value Added Tax. + * @param platformPaymentType Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. * @return the current {@code PlatformPayment} instance, allowing for method chaining */ public PlatformPayment platformPaymentType(PlatformPaymentTypeEnum platformPaymentType) { @@ -336,48 +274,8 @@ public PlatformPayment platformPaymentType(PlatformPaymentTypeEnum platformPayme } /** - * Specifies the nature of the transfer. This parameter helps categorize transfers so you can - * reconcile transactions at a later time, using the Balance Platform Accounting Report for - * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) - * or - * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). - * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * - * **AdyenCommission**: for the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). - * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's - * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen - * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale - * amount of a transaction. * **Commission**: for your platform's commission on a transaction. - * * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * - * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * - * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount - * after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This - * is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge - * paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * - * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for - * the Value Added Tax. - * - * @return platformPaymentType Specifies the nature of the transfer. This parameter helps - * categorize transfers so you can reconcile transactions at a later time, using the Balance - * Platform Accounting Report for - * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) - * or - * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). - * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * - * **AdyenCommission**: for the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). - * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's - * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen - * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the - * sale amount of a transaction. * **Commission**: for your platform's commission on a - * transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a - * transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred - * on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for - * the left over amount after currency conversion. * **SchemeFee**: for the scheme fee - * incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. - * * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for - * the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your - * user's balance account. * **VAT**: for the Value Added Tax. + * Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. + * @return platformPaymentType Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. */ @JsonProperty(JSON_PROPERTY_PLATFORM_PAYMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -386,48 +284,9 @@ public PlatformPaymentTypeEnum getPlatformPaymentType() { } /** - * Specifies the nature of the transfer. This parameter helps categorize transfers so you can - * reconcile transactions at a later time, using the Balance Platform Accounting Report for - * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) - * or - * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). - * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * - * **AdyenCommission**: for the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). - * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's - * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen - * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale - * amount of a transaction. * **Commission**: for your platform's commission on a transaction. - * * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * - * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * - * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount - * after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This - * is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge - * paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * - * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for - * the Value Added Tax. + * Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. * - * @param platformPaymentType Specifies the nature of the transfer. This parameter helps - * categorize transfers so you can reconcile transactions at a later time, using the Balance - * Platform Accounting Report for - * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) - * or - * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). - * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * - * **AdyenCommission**: for the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). - * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's - * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen - * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the - * sale amount of a transaction. * **Commission**: for your platform's commission on a - * transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a - * transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred - * on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for - * the left over amount after currency conversion. * **SchemeFee**: for the scheme fee - * incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. - * * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for - * the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your - * user's balance account. * **VAT**: for the Value Added Tax. + * @param platformPaymentType Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. */ @JsonProperty(JSON_PROPERTY_PLATFORM_PAYMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -448,7 +307,6 @@ public PlatformPayment pspPaymentReference(String pspPaymentReference) { /** * The payment reference included in the transfer. - * * @return pspPaymentReference The payment reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_PSP_PAYMENT_REFERENCE) @@ -481,7 +339,6 @@ public PlatformPayment type(TypeEnum type) { /** * **platformPayment** - * * @return type **platformPayment** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -501,7 +358,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this PlatformPayment object is equal to o. */ + /** + * Return true if this PlatformPayment object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -511,52 +370,36 @@ public boolean equals(Object o) { return false; } PlatformPayment platformPayment = (PlatformPayment) o; - return Objects.equals( - this.modificationMerchantReference, platformPayment.modificationMerchantReference) - && Objects.equals(this.modificationPspReference, platformPayment.modificationPspReference) - && Objects.equals(this.paymentMerchantReference, platformPayment.paymentMerchantReference) - && Objects.equals(this.platformPaymentType, platformPayment.platformPaymentType) - && Objects.equals(this.pspPaymentReference, platformPayment.pspPaymentReference) - && Objects.equals(this.type, platformPayment.type); + return Objects.equals(this.modificationMerchantReference, platformPayment.modificationMerchantReference) && + Objects.equals(this.modificationPspReference, platformPayment.modificationPspReference) && + Objects.equals(this.paymentMerchantReference, platformPayment.paymentMerchantReference) && + Objects.equals(this.platformPaymentType, platformPayment.platformPaymentType) && + Objects.equals(this.pspPaymentReference, platformPayment.pspPaymentReference) && + Objects.equals(this.type, platformPayment.type); } @Override public int hashCode() { - return Objects.hash( - modificationMerchantReference, - modificationPspReference, - paymentMerchantReference, - platformPaymentType, - pspPaymentReference, - type); + return Objects.hash(modificationMerchantReference, modificationPspReference, paymentMerchantReference, platformPaymentType, pspPaymentReference, type); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PlatformPayment {\n"); - sb.append(" modificationMerchantReference: ") - .append(toIndentedString(modificationMerchantReference)) - .append("\n"); - sb.append(" modificationPspReference: ") - .append(toIndentedString(modificationPspReference)) - .append("\n"); - sb.append(" paymentMerchantReference: ") - .append(toIndentedString(paymentMerchantReference)) - .append("\n"); - sb.append(" platformPaymentType: ") - .append(toIndentedString(platformPaymentType)) - .append("\n"); - sb.append(" pspPaymentReference: ") - .append(toIndentedString(pspPaymentReference)) - .append("\n"); + sb.append(" modificationMerchantReference: ").append(toIndentedString(modificationMerchantReference)).append("\n"); + sb.append(" modificationPspReference: ").append(toIndentedString(modificationPspReference)).append("\n"); + sb.append(" paymentMerchantReference: ").append(toIndentedString(paymentMerchantReference)).append("\n"); + sb.append(" platformPaymentType: ").append(toIndentedString(platformPaymentType)).append("\n"); + sb.append(" pspPaymentReference: ").append(toIndentedString(pspPaymentReference)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -565,7 +408,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PlatformPayment given an JSON string * * @param jsonString JSON string @@ -575,12 +418,11 @@ private String toIndentedString(Object o) { public static PlatformPayment fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PlatformPayment.class); } - - /** - * Convert an instance of PlatformPayment to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PlatformPayment to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/RelayedAuthorisationData.java b/src/main/java/com/adyen/model/transfers/RelayedAuthorisationData.java index 518283c4c..78dfbd584 100644 --- a/src/main/java/com/adyen/model/transfers/RelayedAuthorisationData.java +++ b/src/main/java/com/adyen/model/transfers/RelayedAuthorisationData.java @@ -2,28 +2,38 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** RelayedAuthorisationData */ +/** + * RelayedAuthorisationData + */ @JsonPropertyOrder({ RelayedAuthorisationData.JSON_PROPERTY_METADATA, RelayedAuthorisationData.JSON_PROPERTY_REFERENCE }) + public class RelayedAuthorisationData { public static final String JSON_PROPERTY_METADATA = "metadata"; private Map metadata; @@ -31,14 +41,13 @@ public class RelayedAuthorisationData { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public RelayedAuthorisationData() {} + public RelayedAuthorisationData() { + } /** - * Contains key-value pairs of your references and descriptions, for example, - * `customId`:`your-own-custom-field-12345`. + * Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. * - * @param metadata Contains key-value pairs of your references and descriptions, for example, - * `customId`:`your-own-custom-field-12345`. + * @param metadata Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. * @return the current {@code RelayedAuthorisationData} instance, allowing for method chaining */ public RelayedAuthorisationData metadata(Map metadata) { @@ -55,11 +64,8 @@ public RelayedAuthorisationData putMetadataItem(String key, String metadataItem) } /** - * Contains key-value pairs of your references and descriptions, for example, - * `customId`:`your-own-custom-field-12345`. - * - * @return metadata Contains key-value pairs of your references and descriptions, for example, - * `customId`:`your-own-custom-field-12345`. + * Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. + * @return metadata Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,11 +74,9 @@ public Map getMetadata() { } /** - * Contains key-value pairs of your references and descriptions, for example, - * `customId`:`your-own-custom-field-12345`. + * Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. * - * @param metadata Contains key-value pairs of your references and descriptions, for example, - * `customId`:`your-own-custom-field-12345`. + * @param metadata Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -93,7 +97,6 @@ public RelayedAuthorisationData reference(String reference) { /** * Your reference for the relayed authorisation data. - * * @return reference Your reference for the relayed authorisation data. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -113,7 +116,9 @@ public void setReference(String reference) { this.reference = reference; } - /** Return true if this RelayedAuthorisationData object is equal to o. */ + /** + * Return true if this RelayedAuthorisationData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -123,8 +128,8 @@ public boolean equals(Object o) { return false; } RelayedAuthorisationData relayedAuthorisationData = (RelayedAuthorisationData) o; - return Objects.equals(this.metadata, relayedAuthorisationData.metadata) - && Objects.equals(this.reference, relayedAuthorisationData.reference); + return Objects.equals(this.metadata, relayedAuthorisationData.metadata) && + Objects.equals(this.reference, relayedAuthorisationData.reference); } @Override @@ -143,7 +148,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -152,24 +158,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RelayedAuthorisationData given an JSON string * * @param jsonString JSON string * @return An instance of RelayedAuthorisationData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * RelayedAuthorisationData + * @throws JsonProcessingException if the JSON string is invalid with respect to RelayedAuthorisationData */ - public static RelayedAuthorisationData fromJson(String jsonString) - throws JsonProcessingException { + public static RelayedAuthorisationData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RelayedAuthorisationData.class); } - - /** - * Convert an instance of RelayedAuthorisationData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RelayedAuthorisationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/Repayment.java b/src/main/java/com/adyen/model/transfers/Repayment.java index d75ec5fbe..aa6786ccb 100644 --- a/src/main/java/com/adyen/model/transfers/Repayment.java +++ b/src/main/java/com/adyen/model/transfers/Repayment.java @@ -2,27 +2,39 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.RepaymentTerm; +import com.adyen.model.transfers.ThresholdRepayment; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Repayment */ + +/** + * Repayment + */ @JsonPropertyOrder({ Repayment.JSON_PROPERTY_BASIS_POINTS, Repayment.JSON_PROPERTY_TERM, Repayment.JSON_PROPERTY_THRESHOLD }) + public class Repayment { public static final String JSON_PROPERTY_BASIS_POINTS = "basisPoints"; private Integer basisPoints; @@ -33,14 +45,13 @@ public class Repayment { public static final String JSON_PROPERTY_THRESHOLD = "threshold"; private ThresholdRepayment threshold; - public Repayment() {} + public Repayment() { + } /** - * The repayment that is deducted daily from incoming net volume, in [basis - * points](https://www.investopedia.com/terms/b/basispoint.asp). + * The repayment that is deducted daily from incoming net volume, in [basis points](https://www.investopedia.com/terms/b/basispoint.asp). * - * @param basisPoints The repayment that is deducted daily from incoming net volume, in [basis - * points](https://www.investopedia.com/terms/b/basispoint.asp). + * @param basisPoints The repayment that is deducted daily from incoming net volume, in [basis points](https://www.investopedia.com/terms/b/basispoint.asp). * @return the current {@code Repayment} instance, allowing for method chaining */ public Repayment basisPoints(Integer basisPoints) { @@ -49,11 +60,8 @@ public Repayment basisPoints(Integer basisPoints) { } /** - * The repayment that is deducted daily from incoming net volume, in [basis - * points](https://www.investopedia.com/terms/b/basispoint.asp). - * - * @return basisPoints The repayment that is deducted daily from incoming net volume, in [basis - * points](https://www.investopedia.com/terms/b/basispoint.asp). + * The repayment that is deducted daily from incoming net volume, in [basis points](https://www.investopedia.com/terms/b/basispoint.asp). + * @return basisPoints The repayment that is deducted daily from incoming net volume, in [basis points](https://www.investopedia.com/terms/b/basispoint.asp). */ @JsonProperty(JSON_PROPERTY_BASIS_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -62,11 +70,9 @@ public Integer getBasisPoints() { } /** - * The repayment that is deducted daily from incoming net volume, in [basis - * points](https://www.investopedia.com/terms/b/basispoint.asp). + * The repayment that is deducted daily from incoming net volume, in [basis points](https://www.investopedia.com/terms/b/basispoint.asp). * - * @param basisPoints The repayment that is deducted daily from incoming net volume, in [basis - * points](https://www.investopedia.com/terms/b/basispoint.asp). + * @param basisPoints The repayment that is deducted daily from incoming net volume, in [basis points](https://www.investopedia.com/terms/b/basispoint.asp). */ @JsonProperty(JSON_PROPERTY_BASIS_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -77,7 +83,7 @@ public void setBasisPoints(Integer basisPoints) { /** * term * - * @param term + * @param term * @return the current {@code Repayment} instance, allowing for method chaining */ public Repayment term(RepaymentTerm term) { @@ -87,8 +93,7 @@ public Repayment term(RepaymentTerm term) { /** * Get term - * - * @return term + * @return term */ @JsonProperty(JSON_PROPERTY_TERM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,7 +104,7 @@ public RepaymentTerm getTerm() { /** * term * - * @param term + * @param term */ @JsonProperty(JSON_PROPERTY_TERM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,7 +115,7 @@ public void setTerm(RepaymentTerm term) { /** * threshold * - * @param threshold + * @param threshold * @return the current {@code Repayment} instance, allowing for method chaining */ public Repayment threshold(ThresholdRepayment threshold) { @@ -120,8 +125,7 @@ public Repayment threshold(ThresholdRepayment threshold) { /** * Get threshold - * - * @return threshold + * @return threshold */ @JsonProperty(JSON_PROPERTY_THRESHOLD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,7 +136,7 @@ public ThresholdRepayment getThreshold() { /** * threshold * - * @param threshold + * @param threshold */ @JsonProperty(JSON_PROPERTY_THRESHOLD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,7 +144,9 @@ public void setThreshold(ThresholdRepayment threshold) { this.threshold = threshold; } - /** Return true if this Repayment object is equal to o. */ + /** + * Return true if this Repayment object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -150,9 +156,9 @@ public boolean equals(Object o) { return false; } Repayment repayment = (Repayment) o; - return Objects.equals(this.basisPoints, repayment.basisPoints) - && Objects.equals(this.term, repayment.term) - && Objects.equals(this.threshold, repayment.threshold); + return Objects.equals(this.basisPoints, repayment.basisPoints) && + Objects.equals(this.term, repayment.term) && + Objects.equals(this.threshold, repayment.threshold); } @Override @@ -172,7 +178,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -181,7 +188,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Repayment given an JSON string * * @param jsonString JSON string @@ -191,12 +198,11 @@ private String toIndentedString(Object o) { public static Repayment fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Repayment.class); } - - /** - * Convert an instance of Repayment to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Repayment to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/RepaymentTerm.java b/src/main/java/com/adyen/model/transfers/RepaymentTerm.java index 1e06dc2ff..efbe3e2d1 100644 --- a/src/main/java/com/adyen/model/transfers/RepaymentTerm.java +++ b/src/main/java/com/adyen/model/transfers/RepaymentTerm.java @@ -2,26 +2,36 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** RepaymentTerm */ + +/** + * RepaymentTerm + */ @JsonPropertyOrder({ RepaymentTerm.JSON_PROPERTY_ESTIMATED_DAYS, RepaymentTerm.JSON_PROPERTY_MAXIMUM_DAYS }) + public class RepaymentTerm { public static final String JSON_PROPERTY_ESTIMATED_DAYS = "estimatedDays"; private Integer estimatedDays; @@ -29,7 +39,8 @@ public class RepaymentTerm { public static final String JSON_PROPERTY_MAXIMUM_DAYS = "maximumDays"; private Integer maximumDays; - public RepaymentTerm() {} + public RepaymentTerm() { + } /** * The estimated term for repaying the grant, in days. @@ -44,7 +55,6 @@ public RepaymentTerm estimatedDays(Integer estimatedDays) { /** * The estimated term for repaying the grant, in days. - * * @return estimatedDays The estimated term for repaying the grant, in days. */ @JsonProperty(JSON_PROPERTY_ESTIMATED_DAYS) @@ -65,11 +75,9 @@ public void setEstimatedDays(Integer estimatedDays) { } /** - * The maximum term for repaying the grant, in days. Only applies when `contractType` is - * **loan**. + * The maximum term for repaying the grant, in days. Only applies when `contractType` is **loan**. * - * @param maximumDays The maximum term for repaying the grant, in days. Only applies when - * `contractType` is **loan**. + * @param maximumDays The maximum term for repaying the grant, in days. Only applies when `contractType` is **loan**. * @return the current {@code RepaymentTerm} instance, allowing for method chaining */ public RepaymentTerm maximumDays(Integer maximumDays) { @@ -78,11 +86,8 @@ public RepaymentTerm maximumDays(Integer maximumDays) { } /** - * The maximum term for repaying the grant, in days. Only applies when `contractType` is - * **loan**. - * - * @return maximumDays The maximum term for repaying the grant, in days. Only applies when - * `contractType` is **loan**. + * The maximum term for repaying the grant, in days. Only applies when `contractType` is **loan**. + * @return maximumDays The maximum term for repaying the grant, in days. Only applies when `contractType` is **loan**. */ @JsonProperty(JSON_PROPERTY_MAXIMUM_DAYS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -91,11 +96,9 @@ public Integer getMaximumDays() { } /** - * The maximum term for repaying the grant, in days. Only applies when `contractType` is - * **loan**. + * The maximum term for repaying the grant, in days. Only applies when `contractType` is **loan**. * - * @param maximumDays The maximum term for repaying the grant, in days. Only applies when - * `contractType` is **loan**. + * @param maximumDays The maximum term for repaying the grant, in days. Only applies when `contractType` is **loan**. */ @JsonProperty(JSON_PROPERTY_MAXIMUM_DAYS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -103,7 +106,9 @@ public void setMaximumDays(Integer maximumDays) { this.maximumDays = maximumDays; } - /** Return true if this RepaymentTerm object is equal to o. */ + /** + * Return true if this RepaymentTerm object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -113,8 +118,8 @@ public boolean equals(Object o) { return false; } RepaymentTerm repaymentTerm = (RepaymentTerm) o; - return Objects.equals(this.estimatedDays, repaymentTerm.estimatedDays) - && Objects.equals(this.maximumDays, repaymentTerm.maximumDays); + return Objects.equals(this.estimatedDays, repaymentTerm.estimatedDays) && + Objects.equals(this.maximumDays, repaymentTerm.maximumDays); } @Override @@ -133,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -142,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RepaymentTerm given an JSON string * * @param jsonString JSON string @@ -152,12 +158,11 @@ private String toIndentedString(Object o) { public static RepaymentTerm fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RepaymentTerm.class); } - - /** - * Convert an instance of RepaymentTerm to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RepaymentTerm to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/ResourceReference.java b/src/main/java/com/adyen/model/transfers/ResourceReference.java index e25f2a5fc..86ca23f88 100644 --- a/src/main/java/com/adyen/model/transfers/ResourceReference.java +++ b/src/main/java/com/adyen/model/transfers/ResourceReference.java @@ -2,27 +2,37 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ResourceReference */ + +/** + * ResourceReference + */ @JsonPropertyOrder({ ResourceReference.JSON_PROPERTY_DESCRIPTION, ResourceReference.JSON_PROPERTY_ID, ResourceReference.JSON_PROPERTY_REFERENCE }) + public class ResourceReference { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -33,7 +43,8 @@ public class ResourceReference { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public ResourceReference() {} + public ResourceReference() { + } /** * The description of the resource. @@ -48,7 +59,6 @@ public ResourceReference description(String description) { /** * The description of the resource. - * * @return description The description of the resource. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -81,7 +91,6 @@ public ResourceReference id(String id) { /** * The unique identifier of the resource. - * * @return id The unique identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -114,7 +123,6 @@ public ResourceReference reference(String reference) { /** * The reference for the resource. - * * @return reference The reference for the resource. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -134,7 +142,9 @@ public void setReference(String reference) { this.reference = reference; } - /** Return true if this ResourceReference object is equal to o. */ + /** + * Return true if this ResourceReference object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,9 +154,9 @@ public boolean equals(Object o) { return false; } ResourceReference resourceReference = (ResourceReference) o; - return Objects.equals(this.description, resourceReference.description) - && Objects.equals(this.id, resourceReference.id) - && Objects.equals(this.reference, resourceReference.reference); + return Objects.equals(this.description, resourceReference.description) && + Objects.equals(this.id, resourceReference.id) && + Objects.equals(this.reference, resourceReference.reference); } @Override @@ -166,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResourceReference given an JSON string * * @param jsonString JSON string @@ -185,12 +196,11 @@ private String toIndentedString(Object o) { public static ResourceReference fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResourceReference.class); } - - /** - * Convert an instance of ResourceReference to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResourceReference to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/RestServiceError.java b/src/main/java/com/adyen/model/transfers/RestServiceError.java index 703e3d346..ea412a746 100644 --- a/src/main/java/com/adyen/model/transfers/RestServiceError.java +++ b/src/main/java/com/adyen/model/transfers/RestServiceError.java @@ -2,24 +2,34 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.InvalidField; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** RestServiceError */ +/** + * RestServiceError + */ @JsonPropertyOrder({ RestServiceError.JSON_PROPERTY_DETAIL, RestServiceError.JSON_PROPERTY_ERROR_CODE, @@ -31,6 +41,7 @@ RestServiceError.JSON_PROPERTY_TITLE, RestServiceError.JSON_PROPERTY_TYPE }) + public class RestServiceError { public static final String JSON_PROPERTY_DETAIL = "detail"; private String detail; @@ -59,7 +70,8 @@ public class RestServiceError { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public RestServiceError() {} + public RestServiceError() { + } /** * A human-readable explanation specific to this occurrence of the problem. @@ -74,7 +86,6 @@ public RestServiceError detail(String detail) { /** * A human-readable explanation specific to this occurrence of the problem. - * * @return detail A human-readable explanation specific to this occurrence of the problem. */ @JsonProperty(JSON_PROPERTY_DETAIL) @@ -107,7 +118,6 @@ public RestServiceError errorCode(String errorCode) { /** * A code that identifies the problem type. - * * @return errorCode A code that identifies the problem type. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -140,7 +150,6 @@ public RestServiceError instance(String instance) { /** * A unique URI that identifies the specific occurrence of the problem. - * * @return instance A unique URI that identifies the specific occurrence of the problem. */ @JsonProperty(JSON_PROPERTY_INSTANCE) @@ -181,7 +190,6 @@ public RestServiceError addInvalidFieldsItem(InvalidField invalidFieldsItem) { /** * Detailed explanation of each validation error, when applicable. - * * @return invalidFields Detailed explanation of each validation error, when applicable. */ @JsonProperty(JSON_PROPERTY_INVALID_FIELDS) @@ -204,8 +212,7 @@ public void setInvalidFields(List invalidFields) { /** * A unique reference for the request, essentially the same as `pspReference`. * - * @param requestId A unique reference for the request, essentially the same as - * `pspReference`. + * @param requestId A unique reference for the request, essentially the same as `pspReference`. * @return the current {@code RestServiceError} instance, allowing for method chaining */ public RestServiceError requestId(String requestId) { @@ -215,9 +222,7 @@ public RestServiceError requestId(String requestId) { /** * A unique reference for the request, essentially the same as `pspReference`. - * - * @return requestId A unique reference for the request, essentially the same as - * `pspReference`. + * @return requestId A unique reference for the request, essentially the same as `pspReference`. */ @JsonProperty(JSON_PROPERTY_REQUEST_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -228,8 +233,7 @@ public String getRequestId() { /** * A unique reference for the request, essentially the same as `pspReference`. * - * @param requestId A unique reference for the request, essentially the same as - * `pspReference`. + * @param requestId A unique reference for the request, essentially the same as `pspReference`. */ @JsonProperty(JSON_PROPERTY_REQUEST_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,7 +244,7 @@ public void setRequestId(String requestId) { /** * response * - * @param response + * @param response * @return the current {@code RestServiceError} instance, allowing for method chaining */ public RestServiceError response(Object response) { @@ -250,8 +254,7 @@ public RestServiceError response(Object response) { /** * Get response - * - * @return response + * @return response */ @JsonProperty(JSON_PROPERTY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -262,7 +265,7 @@ public Object getResponse() { /** * response * - * @param response + * @param response */ @JsonProperty(JSON_PROPERTY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -283,7 +286,6 @@ public RestServiceError status(Integer status) { /** * The HTTP status code. - * * @return status The HTTP status code. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -316,7 +318,6 @@ public RestServiceError title(String title) { /** * A short, human-readable summary of the problem type. - * * @return title A short, human-readable summary of the problem type. */ @JsonProperty(JSON_PROPERTY_TITLE) @@ -337,11 +338,9 @@ public void setTitle(String title) { } /** - * A URI that identifies the problem type, pointing to human-readable documentation on this - * problem type. + * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. * - * @param type A URI that identifies the problem type, pointing to human-readable documentation on - * this problem type. + * @param type A URI that identifies the problem type, pointing to human-readable documentation on this problem type. * @return the current {@code RestServiceError} instance, allowing for method chaining */ public RestServiceError type(String type) { @@ -350,11 +349,8 @@ public RestServiceError type(String type) { } /** - * A URI that identifies the problem type, pointing to human-readable documentation on this - * problem type. - * - * @return type A URI that identifies the problem type, pointing to human-readable documentation - * on this problem type. + * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. + * @return type A URI that identifies the problem type, pointing to human-readable documentation on this problem type. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -363,11 +359,9 @@ public String getType() { } /** - * A URI that identifies the problem type, pointing to human-readable documentation on this - * problem type. + * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. * - * @param type A URI that identifies the problem type, pointing to human-readable documentation on - * this problem type. + * @param type A URI that identifies the problem type, pointing to human-readable documentation on this problem type. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -375,7 +369,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this RestServiceError object is equal to o. */ + /** + * Return true if this RestServiceError object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -385,21 +381,20 @@ public boolean equals(Object o) { return false; } RestServiceError restServiceError = (RestServiceError) o; - return Objects.equals(this.detail, restServiceError.detail) - && Objects.equals(this.errorCode, restServiceError.errorCode) - && Objects.equals(this.instance, restServiceError.instance) - && Objects.equals(this.invalidFields, restServiceError.invalidFields) - && Objects.equals(this.requestId, restServiceError.requestId) - && Objects.equals(this.response, restServiceError.response) - && Objects.equals(this.status, restServiceError.status) - && Objects.equals(this.title, restServiceError.title) - && Objects.equals(this.type, restServiceError.type); + return Objects.equals(this.detail, restServiceError.detail) && + Objects.equals(this.errorCode, restServiceError.errorCode) && + Objects.equals(this.instance, restServiceError.instance) && + Objects.equals(this.invalidFields, restServiceError.invalidFields) && + Objects.equals(this.requestId, restServiceError.requestId) && + Objects.equals(this.response, restServiceError.response) && + Objects.equals(this.status, restServiceError.status) && + Objects.equals(this.title, restServiceError.title) && + Objects.equals(this.type, restServiceError.type); } @Override public int hashCode() { - return Objects.hash( - detail, errorCode, instance, invalidFields, requestId, response, status, title, type); + return Objects.hash(detail, errorCode, instance, invalidFields, requestId, response, status, title, type); } @Override @@ -420,7 +415,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -429,7 +425,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RestServiceError given an JSON string * * @param jsonString JSON string @@ -439,12 +435,11 @@ private String toIndentedString(Object o) { public static RestServiceError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RestServiceError.class); } - - /** - * Convert an instance of RestServiceError to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RestServiceError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/ReturnTransferRequest.java b/src/main/java/com/adyen/model/transfers/ReturnTransferRequest.java index 1164e492a..5d9105deb 100644 --- a/src/main/java/com/adyen/model/transfers/ReturnTransferRequest.java +++ b/src/main/java/com/adyen/model/transfers/ReturnTransferRequest.java @@ -2,26 +2,37 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ReturnTransferRequest */ + +/** + * ReturnTransferRequest + */ @JsonPropertyOrder({ ReturnTransferRequest.JSON_PROPERTY_AMOUNT, ReturnTransferRequest.JSON_PROPERTY_REFERENCE }) + public class ReturnTransferRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -29,12 +40,13 @@ public class ReturnTransferRequest { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public ReturnTransferRequest() {} + public ReturnTransferRequest() { + } /** * amount * - * @param amount + * @param amount * @return the current {@code ReturnTransferRequest} instance, allowing for method chaining */ public ReturnTransferRequest amount(Amount amount) { @@ -44,8 +56,7 @@ public ReturnTransferRequest amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -56,7 +67,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -65,16 +76,9 @@ public void setAmount(Amount amount) { } /** - * Your internal reference for the return. If you don't provide this in the request, Adyen - * generates a unique reference. This reference is used in all communication with you about the - * instruction status. We recommend using a unique value per instruction. If you need to provide - * multiple references for a transaction, separate them with hyphens (\"-\"). + * Your internal reference for the return. If you don't provide this in the request, Adyen generates a unique reference. This reference is used in all communication with you about the instruction status. We recommend using a unique value per instruction. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). * - * @param reference Your internal reference for the return. If you don't provide this in the - * request, Adyen generates a unique reference. This reference is used in all communication - * with you about the instruction status. We recommend using a unique value per instruction. - * If you need to provide multiple references for a transaction, separate them with hyphens - * (\"-\"). + * @param reference Your internal reference for the return. If you don't provide this in the request, Adyen generates a unique reference. This reference is used in all communication with you about the instruction status. We recommend using a unique value per instruction. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). * @return the current {@code ReturnTransferRequest} instance, allowing for method chaining */ public ReturnTransferRequest reference(String reference) { @@ -83,16 +87,8 @@ public ReturnTransferRequest reference(String reference) { } /** - * Your internal reference for the return. If you don't provide this in the request, Adyen - * generates a unique reference. This reference is used in all communication with you about the - * instruction status. We recommend using a unique value per instruction. If you need to provide - * multiple references for a transaction, separate them with hyphens (\"-\"). - * - * @return reference Your internal reference for the return. If you don't provide this in the - * request, Adyen generates a unique reference. This reference is used in all communication - * with you about the instruction status. We recommend using a unique value per instruction. - * If you need to provide multiple references for a transaction, separate them with hyphens - * (\"-\"). + * Your internal reference for the return. If you don't provide this in the request, Adyen generates a unique reference. This reference is used in all communication with you about the instruction status. We recommend using a unique value per instruction. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). + * @return reference Your internal reference for the return. If you don't provide this in the request, Adyen generates a unique reference. This reference is used in all communication with you about the instruction status. We recommend using a unique value per instruction. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,16 +97,9 @@ public String getReference() { } /** - * Your internal reference for the return. If you don't provide this in the request, Adyen - * generates a unique reference. This reference is used in all communication with you about the - * instruction status. We recommend using a unique value per instruction. If you need to provide - * multiple references for a transaction, separate them with hyphens (\"-\"). + * Your internal reference for the return. If you don't provide this in the request, Adyen generates a unique reference. This reference is used in all communication with you about the instruction status. We recommend using a unique value per instruction. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). * - * @param reference Your internal reference for the return. If you don't provide this in the - * request, Adyen generates a unique reference. This reference is used in all communication - * with you about the instruction status. We recommend using a unique value per instruction. - * If you need to provide multiple references for a transaction, separate them with hyphens - * (\"-\"). + * @param reference Your internal reference for the return. If you don't provide this in the request, Adyen generates a unique reference. This reference is used in all communication with you about the instruction status. We recommend using a unique value per instruction. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,7 +107,9 @@ public void setReference(String reference) { this.reference = reference; } - /** Return true if this ReturnTransferRequest object is equal to o. */ + /** + * Return true if this ReturnTransferRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -128,8 +119,8 @@ public boolean equals(Object o) { return false; } ReturnTransferRequest returnTransferRequest = (ReturnTransferRequest) o; - return Objects.equals(this.amount, returnTransferRequest.amount) - && Objects.equals(this.reference, returnTransferRequest.reference); + return Objects.equals(this.amount, returnTransferRequest.amount) && + Objects.equals(this.reference, returnTransferRequest.reference); } @Override @@ -148,7 +139,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -157,23 +149,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ReturnTransferRequest given an JSON string * * @param jsonString JSON string * @return An instance of ReturnTransferRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ReturnTransferRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to ReturnTransferRequest */ public static ReturnTransferRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ReturnTransferRequest.class); } - - /** - * Convert an instance of ReturnTransferRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ReturnTransferRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/ReturnTransferResponse.java b/src/main/java/com/adyen/model/transfers/ReturnTransferResponse.java index 1ef2b0bb6..10c9458bb 100644 --- a/src/main/java/com/adyen/model/transfers/ReturnTransferResponse.java +++ b/src/main/java/com/adyen/model/transfers/ReturnTransferResponse.java @@ -2,32 +2,38 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** ReturnTransferResponse */ + +/** + * ReturnTransferResponse + */ @JsonPropertyOrder({ ReturnTransferResponse.JSON_PROPERTY_ID, ReturnTransferResponse.JSON_PROPERTY_REFERENCE, ReturnTransferResponse.JSON_PROPERTY_STATUS, ReturnTransferResponse.JSON_PROPERTY_TRANSFER_ID }) + public class ReturnTransferResponse { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -35,8 +41,11 @@ public class ReturnTransferResponse { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - /** The resulting status of the return. Possible values: **Authorised**, **Declined**. */ + /** + * The resulting status of the return. Possible values: **Authorised**, **Declined**. + */ public enum StatusEnum { + AUTHORISED(String.valueOf("Authorised")), DECLINED(String.valueOf("Declined")); @@ -46,7 +55,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -67,11 +76,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -82,7 +87,8 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANSFER_ID = "transferId"; private String transferId; - public ReturnTransferResponse() {} + public ReturnTransferResponse() { + } /** * The unique identifier of the return. @@ -97,7 +103,6 @@ public ReturnTransferResponse id(String id) { /** * The unique identifier of the return. - * * @return id The unique identifier of the return. */ @JsonProperty(JSON_PROPERTY_ID) @@ -130,7 +135,6 @@ public ReturnTransferResponse reference(String reference) { /** * Your internal reference for the return. - * * @return reference Your internal reference for the return. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -151,10 +155,9 @@ public void setReference(String reference) { } /** - * The resulting status of the return. Possible values: **Authorised**, **Declined**. + * The resulting status of the return. Possible values: **Authorised**, **Declined**. * - * @param status The resulting status of the return. Possible values: **Authorised**, - * **Declined**. + * @param status The resulting status of the return. Possible values: **Authorised**, **Declined**. * @return the current {@code ReturnTransferResponse} instance, allowing for method chaining */ public ReturnTransferResponse status(StatusEnum status) { @@ -163,10 +166,8 @@ public ReturnTransferResponse status(StatusEnum status) { } /** - * The resulting status of the return. Possible values: **Authorised**, **Declined**. - * - * @return status The resulting status of the return. Possible values: **Authorised**, - * **Declined**. + * The resulting status of the return. Possible values: **Authorised**, **Declined**. + * @return status The resulting status of the return. Possible values: **Authorised**, **Declined**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -175,10 +176,9 @@ public StatusEnum getStatus() { } /** - * The resulting status of the return. Possible values: **Authorised**, **Declined**. + * The resulting status of the return. Possible values: **Authorised**, **Declined**. * - * @param status The resulting status of the return. Possible values: **Authorised**, - * **Declined**. + * @param status The resulting status of the return. Possible values: **Authorised**, **Declined**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -199,7 +199,6 @@ public ReturnTransferResponse transferId(String transferId) { /** * The unique identifier of the original transfer. - * * @return transferId The unique identifier of the original transfer. */ @JsonProperty(JSON_PROPERTY_TRANSFER_ID) @@ -219,7 +218,9 @@ public void setTransferId(String transferId) { this.transferId = transferId; } - /** Return true if this ReturnTransferResponse object is equal to o. */ + /** + * Return true if this ReturnTransferResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -229,10 +230,10 @@ public boolean equals(Object o) { return false; } ReturnTransferResponse returnTransferResponse = (ReturnTransferResponse) o; - return Objects.equals(this.id, returnTransferResponse.id) - && Objects.equals(this.reference, returnTransferResponse.reference) - && Objects.equals(this.status, returnTransferResponse.status) - && Objects.equals(this.transferId, returnTransferResponse.transferId); + return Objects.equals(this.id, returnTransferResponse.id) && + Objects.equals(this.reference, returnTransferResponse.reference) && + Objects.equals(this.status, returnTransferResponse.status) && + Objects.equals(this.transferId, returnTransferResponse.transferId); } @Override @@ -253,7 +254,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -262,23 +264,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ReturnTransferResponse given an JSON string * * @param jsonString JSON string * @return An instance of ReturnTransferResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ReturnTransferResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to ReturnTransferResponse */ public static ReturnTransferResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ReturnTransferResponse.class); } - - /** - * Convert an instance of ReturnTransferResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ReturnTransferResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/RoutingDetails.java b/src/main/java/com/adyen/model/transfers/RoutingDetails.java index 52e94e611..2ec9dc2fb 100644 --- a/src/main/java/com/adyen/model/transfers/RoutingDetails.java +++ b/src/main/java/com/adyen/model/transfers/RoutingDetails.java @@ -2,32 +2,38 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** RoutingDetails */ +/** + * RoutingDetails + */ @JsonPropertyOrder({ RoutingDetails.JSON_PROPERTY_DETAIL, RoutingDetails.JSON_PROPERTY_ERROR_CODE, RoutingDetails.JSON_PROPERTY_PRIORITY, RoutingDetails.JSON_PROPERTY_TITLE }) + public class RoutingDetails { public static final String JSON_PROPERTY_DETAIL = "detail"; private String detail; @@ -36,19 +42,10 @@ public class RoutingDetails { private String errorCode; /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the - * fees that you have to pay. Required for transfers with `category` **bank**. Possible - * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer - * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * - * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the - * United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). */ public enum PriorityEnum { + CROSSBORDER(String.valueOf("crossBorder")), FAST(String.valueOf("fast")), @@ -66,7 +63,7 @@ public enum PriorityEnum { private String value; PriorityEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -87,11 +84,7 @@ public static PriorityEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PriorityEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PriorityEnum.values())); + LOG.warning("PriorityEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PriorityEnum.values())); return null; } } @@ -102,7 +95,8 @@ public static PriorityEnum fromValue(String value) { public static final String JSON_PROPERTY_TITLE = "title"; private String title; - public RoutingDetails() {} + public RoutingDetails() { + } /** * A human-readable explanation specific to this occurrence of the problem. @@ -117,7 +111,6 @@ public RoutingDetails detail(String detail) { /** * A human-readable explanation specific to this occurrence of the problem. - * * @return detail A human-readable explanation specific to this occurrence of the problem. */ @JsonProperty(JSON_PROPERTY_DETAIL) @@ -150,7 +143,6 @@ public RoutingDetails errorCode(String errorCode) { /** * A code that identifies the problem type. - * * @return errorCode A code that identifies the problem type. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -171,29 +163,9 @@ public void setErrorCode(String errorCode) { } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the - * fees that you have to pay. Required for transfers with `category` **bank**. Possible - * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer - * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * - * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the - * United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). * - * @param priority The priority for the bank transfer. This sets the speed at which the transfer - * is sent and the fees that you have to pay. Required for transfers with `category` - * **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a - * faster way to transfer funds, but the fees are higher. Recommended for high-priority, - * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the - * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for - * instant funds transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * @param priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). * @return the current {@code RoutingDetails} instance, allowing for method chaining */ public RoutingDetails priority(PriorityEnum priority) { @@ -202,29 +174,8 @@ public RoutingDetails priority(PriorityEnum priority) { } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the - * fees that you have to pay. Required for transfers with `category` **bank**. Possible - * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer - * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * - * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the - * United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). - * - * @return priority The priority for the bank transfer. This sets the speed at which the transfer - * is sent and the fees that you have to pay. Required for transfers with `category` - * **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a - * faster way to transfer funds, but the fees are higher. Recommended for high-priority, - * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the - * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for - * instant funds transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * @return priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). */ @JsonProperty(JSON_PROPERTY_PRIORITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -233,29 +184,9 @@ public PriorityEnum getPriority() { } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the - * fees that you have to pay. Required for transfers with `category` **bank**. Possible - * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer - * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * - * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the - * United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). * - * @param priority The priority for the bank transfer. This sets the speed at which the transfer - * is sent and the fees that you have to pay. Required for transfers with `category` - * **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a - * faster way to transfer funds, but the fees are higher. Recommended for high-priority, - * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the - * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for - * instant funds transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * @param priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). */ @JsonProperty(JSON_PROPERTY_PRIORITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -276,7 +207,6 @@ public RoutingDetails title(String title) { /** * A short, human-readable summary of the problem type. - * * @return title A short, human-readable summary of the problem type. */ @JsonProperty(JSON_PROPERTY_TITLE) @@ -296,7 +226,9 @@ public void setTitle(String title) { this.title = title; } - /** Return true if this RoutingDetails object is equal to o. */ + /** + * Return true if this RoutingDetails object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -306,10 +238,10 @@ public boolean equals(Object o) { return false; } RoutingDetails routingDetails = (RoutingDetails) o; - return Objects.equals(this.detail, routingDetails.detail) - && Objects.equals(this.errorCode, routingDetails.errorCode) - && Objects.equals(this.priority, routingDetails.priority) - && Objects.equals(this.title, routingDetails.title); + return Objects.equals(this.detail, routingDetails.detail) && + Objects.equals(this.errorCode, routingDetails.errorCode) && + Objects.equals(this.priority, routingDetails.priority) && + Objects.equals(this.title, routingDetails.title); } @Override @@ -330,7 +262,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -339,7 +272,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RoutingDetails given an JSON string * * @param jsonString JSON string @@ -349,12 +282,11 @@ private String toIndentedString(Object o) { public static RoutingDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RoutingDetails.class); } - - /** - * Convert an instance of RoutingDetails to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RoutingDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/SELocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/SELocalAccountIdentification.java index 23be7c97b..4b57de7a1 100644 --- a/src/main/java/com/adyen/model/transfers/SELocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/SELocalAccountIdentification.java @@ -2,31 +2,37 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** SELocalAccountIdentification */ + +/** + * SELocalAccountIdentification + */ @JsonPropertyOrder({ SELocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, SELocalAccountIdentification.JSON_PROPERTY_CLEARING_NUMBER, SELocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class SELocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -34,8 +40,11 @@ public class SELocalAccountIdentification { public static final String JSON_PROPERTY_CLEARING_NUMBER = "clearingNumber"; private String clearingNumber; - /** **seLocal** */ + /** + * **seLocal** + */ public enum TypeEnum { + SELOCAL(String.valueOf("seLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -43,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -76,16 +81,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public SELocalAccountIdentification() {} + public SELocalAccountIdentification() { + } /** - * The 7- to 10-digit bank account number - * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, - * separators, or whitespace. + * The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. * - * @param accountNumber The 7- to 10-digit bank account number - * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, - * separators, or whitespace. + * @param accountNumber The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. * @return the current {@code SELocalAccountIdentification} instance, allowing for method chaining */ public SELocalAccountIdentification accountNumber(String accountNumber) { @@ -94,13 +96,8 @@ public SELocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 7- to 10-digit bank account number - * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, - * separators, or whitespace. - * - * @return accountNumber The 7- to 10-digit bank account number - * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, - * separators, or whitespace. + * The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. + * @return accountNumber The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -109,13 +106,9 @@ public String getAccountNumber() { } /** - * The 7- to 10-digit bank account number - * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, - * separators, or whitespace. + * The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. * - * @param accountNumber The 7- to 10-digit bank account number - * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, - * separators, or whitespace. + * @param accountNumber The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,13 +117,9 @@ public void setAccountNumber(String accountNumber) { } /** - * The 4- to 5-digit clearing number - * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or - * whitespace. + * The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. * - * @param clearingNumber The 4- to 5-digit clearing number - * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or - * whitespace. + * @param clearingNumber The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. * @return the current {@code SELocalAccountIdentification} instance, allowing for method chaining */ public SELocalAccountIdentification clearingNumber(String clearingNumber) { @@ -139,13 +128,8 @@ public SELocalAccountIdentification clearingNumber(String clearingNumber) { } /** - * The 4- to 5-digit clearing number - * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or - * whitespace. - * - * @return clearingNumber The 4- to 5-digit clearing number - * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or - * whitespace. + * The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. + * @return clearingNumber The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_CLEARING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -154,13 +138,9 @@ public String getClearingNumber() { } /** - * The 4- to 5-digit clearing number - * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or - * whitespace. + * The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. * - * @param clearingNumber The 4- to 5-digit clearing number - * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or - * whitespace. + * @param clearingNumber The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_CLEARING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,7 +161,6 @@ public SELocalAccountIdentification type(TypeEnum type) { /** * **seLocal** - * * @return type **seLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -201,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this SELocalAccountIdentification object is equal to o. */ + /** + * Return true if this SELocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -211,9 +192,9 @@ public boolean equals(Object o) { return false; } SELocalAccountIdentification seLocalAccountIdentification = (SELocalAccountIdentification) o; - return Objects.equals(this.accountNumber, seLocalAccountIdentification.accountNumber) - && Objects.equals(this.clearingNumber, seLocalAccountIdentification.clearingNumber) - && Objects.equals(this.type, seLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, seLocalAccountIdentification.accountNumber) && + Objects.equals(this.clearingNumber, seLocalAccountIdentification.clearingNumber) && + Objects.equals(this.type, seLocalAccountIdentification.type); } @Override @@ -233,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -242,24 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SELocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of SELocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SELocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to SELocalAccountIdentification */ - public static SELocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static SELocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SELocalAccountIdentification.class); } - - /** - * Convert an instance of SELocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SELocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/SGLocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/SGLocalAccountIdentification.java index fca6b4551..2a27dfc81 100644 --- a/src/main/java/com/adyen/model/transfers/SGLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/SGLocalAccountIdentification.java @@ -2,31 +2,37 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** SGLocalAccountIdentification */ + +/** + * SGLocalAccountIdentification + */ @JsonPropertyOrder({ SGLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, SGLocalAccountIdentification.JSON_PROPERTY_BIC, SGLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class SGLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -34,8 +40,11 @@ public class SGLocalAccountIdentification { public static final String JSON_PROPERTY_BIC = "bic"; private String bic; - /** **sgLocal** */ + /** + * **sgLocal** + */ public enum TypeEnum { + SGLOCAL(String.valueOf("sgLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -43,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -76,7 +81,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public SGLocalAccountIdentification() {} + public SGLocalAccountIdentification() { + } /** * The 4- to 19-digit bank account number, without separators or whitespace. @@ -91,7 +97,6 @@ public SGLocalAccountIdentification accountNumber(String accountNumber) { /** * The 4- to 19-digit bank account number, without separators or whitespace. - * * @return accountNumber The 4- to 19-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -124,7 +129,6 @@ public SGLocalAccountIdentification bic(String bic) { /** * The bank's 8- or 11-character BIC or SWIFT code. - * * @return bic The bank's 8- or 11-character BIC or SWIFT code. */ @JsonProperty(JSON_PROPERTY_BIC) @@ -157,7 +161,6 @@ public SGLocalAccountIdentification type(TypeEnum type) { /** * **sgLocal** - * * @return type **sgLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -177,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this SGLocalAccountIdentification object is equal to o. */ + /** + * Return true if this SGLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -187,9 +192,9 @@ public boolean equals(Object o) { return false; } SGLocalAccountIdentification sgLocalAccountIdentification = (SGLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, sgLocalAccountIdentification.accountNumber) - && Objects.equals(this.bic, sgLocalAccountIdentification.bic) - && Objects.equals(this.type, sgLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, sgLocalAccountIdentification.accountNumber) && + Objects.equals(this.bic, sgLocalAccountIdentification.bic) && + Objects.equals(this.type, sgLocalAccountIdentification.type); } @Override @@ -209,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -218,24 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SGLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of SGLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SGLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to SGLocalAccountIdentification */ - public static SGLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static SGLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SGLocalAccountIdentification.class); } - - /** - * Convert an instance of SGLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SGLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/ServiceError.java b/src/main/java/com/adyen/model/transfers/ServiceError.java index f16e39b25..30438a736 100644 --- a/src/main/java/com/adyen/model/transfers/ServiceError.java +++ b/src/main/java/com/adyen/model/transfers/ServiceError.java @@ -2,22 +2,31 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ServiceError */ + +/** + * ServiceError + */ @JsonPropertyOrder({ ServiceError.JSON_PROPERTY_ERROR_CODE, ServiceError.JSON_PROPERTY_ERROR_TYPE, @@ -25,6 +34,7 @@ ServiceError.JSON_PROPERTY_PSP_REFERENCE, ServiceError.JSON_PROPERTY_STATUS }) + public class ServiceError { public static final String JSON_PROPERTY_ERROR_CODE = "errorCode"; private String errorCode; @@ -41,7 +51,8 @@ public class ServiceError { public static final String JSON_PROPERTY_STATUS = "status"; private Integer status; - public ServiceError() {} + public ServiceError() { + } /** * The error code mapped to the error message. @@ -56,7 +67,6 @@ public ServiceError errorCode(String errorCode) { /** * The error code mapped to the error message. - * * @return errorCode The error code mapped to the error message. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -89,7 +99,6 @@ public ServiceError errorType(String errorType) { /** * The category of the error. - * * @return errorType The category of the error. */ @JsonProperty(JSON_PROPERTY_ERROR_TYPE) @@ -122,7 +131,6 @@ public ServiceError message(String message) { /** * A short explanation of the issue. - * * @return message A short explanation of the issue. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -155,7 +163,6 @@ public ServiceError pspReference(String pspReference) { /** * The PSP reference of the payment. - * * @return pspReference The PSP reference of the payment. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -188,7 +195,6 @@ public ServiceError status(Integer status) { /** * The HTTP response status. - * * @return status The HTTP response status. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -208,7 +214,9 @@ public void setStatus(Integer status) { this.status = status; } - /** Return true if this ServiceError object is equal to o. */ + /** + * Return true if this ServiceError object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -218,11 +226,11 @@ public boolean equals(Object o) { return false; } ServiceError serviceError = (ServiceError) o; - return Objects.equals(this.errorCode, serviceError.errorCode) - && Objects.equals(this.errorType, serviceError.errorType) - && Objects.equals(this.message, serviceError.message) - && Objects.equals(this.pspReference, serviceError.pspReference) - && Objects.equals(this.status, serviceError.status); + return Objects.equals(this.errorCode, serviceError.errorCode) && + Objects.equals(this.errorType, serviceError.errorType) && + Objects.equals(this.message, serviceError.message) && + Objects.equals(this.pspReference, serviceError.pspReference) && + Objects.equals(this.status, serviceError.status); } @Override @@ -244,7 +252,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -253,7 +262,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ServiceError given an JSON string * * @param jsonString JSON string @@ -263,12 +272,11 @@ private String toIndentedString(Object o) { public static ServiceError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } - - /** - * Convert an instance of ServiceError to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ServiceError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/ThreeDSecure.java b/src/main/java/com/adyen/model/transfers/ThreeDSecure.java index 57100877c..a8fa2ff33 100644 --- a/src/main/java/com/adyen/model/transfers/ThreeDSecure.java +++ b/src/main/java/com/adyen/model/transfers/ThreeDSecure.java @@ -2,28 +2,41 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ThreeDSecure */ -@JsonPropertyOrder({ThreeDSecure.JSON_PROPERTY_ACS_TRANSACTION_ID}) + +/** + * ThreeDSecure + */ +@JsonPropertyOrder({ + ThreeDSecure.JSON_PROPERTY_ACS_TRANSACTION_ID +}) + public class ThreeDSecure { public static final String JSON_PROPERTY_ACS_TRANSACTION_ID = "acsTransactionId"; private String acsTransactionId; - public ThreeDSecure() {} + public ThreeDSecure() { + } /** * The transaction identifier for the Access Control Server @@ -38,7 +51,6 @@ public ThreeDSecure acsTransactionId(String acsTransactionId) { /** * The transaction identifier for the Access Control Server - * * @return acsTransactionId The transaction identifier for the Access Control Server */ @JsonProperty(JSON_PROPERTY_ACS_TRANSACTION_ID) @@ -58,7 +70,9 @@ public void setAcsTransactionId(String acsTransactionId) { this.acsTransactionId = acsTransactionId; } - /** Return true if this ThreeDSecure object is equal to o. */ + /** + * Return true if this ThreeDSecure object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,7 +110,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ThreeDSecure given an JSON string * * @param jsonString JSON string @@ -105,12 +120,11 @@ private String toIndentedString(Object o) { public static ThreeDSecure fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDSecure.class); } - - /** - * Convert an instance of ThreeDSecure to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ThreeDSecure to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/ThresholdRepayment.java b/src/main/java/com/adyen/model/transfers/ThresholdRepayment.java index da5c340a2..a2a2b30dc 100644 --- a/src/main/java/com/adyen/model/transfers/ThresholdRepayment.java +++ b/src/main/java/com/adyen/model/transfers/ThresholdRepayment.java @@ -2,33 +2,47 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ThresholdRepayment */ -@JsonPropertyOrder({ThresholdRepayment.JSON_PROPERTY_AMOUNT}) + +/** + * ThresholdRepayment + */ +@JsonPropertyOrder({ + ThresholdRepayment.JSON_PROPERTY_AMOUNT +}) + public class ThresholdRepayment { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; - public ThresholdRepayment() {} + public ThresholdRepayment() { + } /** * amount * - * @param amount + * @param amount * @return the current {@code ThresholdRepayment} instance, allowing for method chaining */ public ThresholdRepayment amount(Amount amount) { @@ -38,8 +52,7 @@ public ThresholdRepayment amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -50,7 +63,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,7 +71,9 @@ public void setAmount(Amount amount) { this.amount = amount; } - /** Return true if this ThresholdRepayment object is equal to o. */ + /** + * Return true if this ThresholdRepayment object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,7 +101,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,23 +111,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ThresholdRepayment given an JSON string * * @param jsonString JSON string * @return An instance of ThresholdRepayment - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ThresholdRepayment + * @throws JsonProcessingException if the JSON string is invalid with respect to ThresholdRepayment */ public static ThresholdRepayment fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThresholdRepayment.class); } - - /** - * Convert an instance of ThresholdRepayment to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ThresholdRepayment to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/Transaction.java b/src/main/java/com/adyen/model/transfers/Transaction.java index e2d17457e..36cbbf10b 100644 --- a/src/main/java/com/adyen/model/transfers/Transaction.java +++ b/src/main/java/com/adyen/model/transfers/Transaction.java @@ -2,27 +2,36 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.Amount; +import com.adyen.model.transfers.PaymentInstrument; +import com.adyen.model.transfers.ResourceReference; +import com.adyen.model.transfers.TransferView; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** Transaction */ +/** + * Transaction + */ @JsonPropertyOrder({ Transaction.JSON_PROPERTY_ACCOUNT_HOLDER, Transaction.JSON_PROPERTY_AMOUNT, @@ -38,6 +47,7 @@ Transaction.JSON_PROPERTY_TRANSFER, Transaction.JSON_PROPERTY_VALUE_DATE }) + public class Transaction { public static final String JSON_PROPERTY_ACCOUNT_HOLDER = "accountHolder"; private ResourceReference accountHolder; @@ -70,10 +80,10 @@ public class Transaction { private String referenceForBeneficiary; /** - * The status of the transaction. Possible values: * **pending**: The transaction is still - * pending. * **booked**: The transaction has been booked to the balance account. + * The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. */ public enum StatusEnum { + BOOKED(String.valueOf("booked")), PENDING(String.valueOf("pending")); @@ -83,7 +93,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -104,11 +114,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -122,12 +128,13 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUE_DATE = "valueDate"; private OffsetDateTime valueDate; - public Transaction() {} + public Transaction() { + } /** * accountHolder * - * @param accountHolder + * @param accountHolder * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction accountHolder(ResourceReference accountHolder) { @@ -137,8 +144,7 @@ public Transaction accountHolder(ResourceReference accountHolder) { /** * Get accountHolder - * - * @return accountHolder + * @return accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -149,7 +155,7 @@ public ResourceReference getAccountHolder() { /** * accountHolder * - * @param accountHolder + * @param accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,7 +166,7 @@ public void setAccountHolder(ResourceReference accountHolder) { /** * amount * - * @param amount + * @param amount * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction amount(Amount amount) { @@ -170,8 +176,7 @@ public Transaction amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,7 +187,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,7 +198,7 @@ public void setAmount(Amount amount) { /** * balanceAccount * - * @param balanceAccount + * @param balanceAccount * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction balanceAccount(ResourceReference balanceAccount) { @@ -203,8 +208,7 @@ public Transaction balanceAccount(ResourceReference balanceAccount) { /** * Get balanceAccount - * - * @return balanceAccount + * @return balanceAccount */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -215,7 +219,7 @@ public ResourceReference getBalanceAccount() { /** * balanceAccount * - * @param balanceAccount + * @param balanceAccount */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -236,7 +240,6 @@ public Transaction balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. - * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -269,7 +272,6 @@ public Transaction bookingDate(OffsetDateTime bookingDate) { /** * The date the transaction was booked into the balance account. - * * @return bookingDate The date the transaction was booked into the balance account. */ @JsonProperty(JSON_PROPERTY_BOOKING_DATE) @@ -290,11 +292,9 @@ public void setBookingDate(OffsetDateTime bookingDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction creationDate(OffsetDateTime creationDate) { @@ -303,11 +303,8 @@ public Transaction creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. - * - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -316,11 +313,9 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -341,7 +336,6 @@ public Transaction description(String description) { /** * The `description` from the `/transfers` request. - * * @return description The `description` from the `/transfers` request. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -374,7 +368,6 @@ public Transaction id(String id) { /** * The unique identifier of the transaction. - * * @return id The unique identifier of the transaction. */ @JsonProperty(JSON_PROPERTY_ID) @@ -397,7 +390,7 @@ public void setId(String id) { /** * paymentInstrument * - * @param paymentInstrument + * @param paymentInstrument * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction paymentInstrument(PaymentInstrument paymentInstrument) { @@ -407,8 +400,7 @@ public Transaction paymentInstrument(PaymentInstrument paymentInstrument) { /** * Get paymentInstrument - * - * @return paymentInstrument + * @return paymentInstrument */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -419,7 +411,7 @@ public PaymentInstrument getPaymentInstrument() { /** * paymentInstrument * - * @param paymentInstrument + * @param paymentInstrument */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -428,18 +420,9 @@ public void setPaymentInstrument(PaymentInstrument paymentInstrument) { } /** - * The reference sent to or received from the counterparty. * For outgoing funds, this is the - * [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) - * from the - * [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) - * request. * For incoming funds, this is the reference from the sender. + * The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender. * - * @param referenceForBeneficiary The reference sent to or received from the counterparty. * For - * outgoing funds, this is the - * [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) - * from the - * [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) - * request. * For incoming funds, this is the reference from the sender. + * @param referenceForBeneficiary The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender. * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction referenceForBeneficiary(String referenceForBeneficiary) { @@ -448,18 +431,8 @@ public Transaction referenceForBeneficiary(String referenceForBeneficiary) { } /** - * The reference sent to or received from the counterparty. * For outgoing funds, this is the - * [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) - * from the - * [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) - * request. * For incoming funds, this is the reference from the sender. - * - * @return referenceForBeneficiary The reference sent to or received from the counterparty. * For - * outgoing funds, this is the - * [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) - * from the - * [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) - * request. * For incoming funds, this is the reference from the sender. + * The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender. + * @return referenceForBeneficiary The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -468,18 +441,9 @@ public String getReferenceForBeneficiary() { } /** - * The reference sent to or received from the counterparty. * For outgoing funds, this is the - * [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) - * from the - * [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) - * request. * For incoming funds, this is the reference from the sender. + * The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender. * - * @param referenceForBeneficiary The reference sent to or received from the counterparty. * For - * outgoing funds, this is the - * [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) - * from the - * [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) - * request. * For incoming funds, this is the reference from the sender. + * @param referenceForBeneficiary The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -488,11 +452,9 @@ public void setReferenceForBeneficiary(String referenceForBeneficiary) { } /** - * The status of the transaction. Possible values: * **pending**: The transaction is still - * pending. * **booked**: The transaction has been booked to the balance account. + * The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. * - * @param status The status of the transaction. Possible values: * **pending**: The transaction is - * still pending. * **booked**: The transaction has been booked to the balance account. + * @param status The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction status(StatusEnum status) { @@ -501,11 +463,8 @@ public Transaction status(StatusEnum status) { } /** - * The status of the transaction. Possible values: * **pending**: The transaction is still - * pending. * **booked**: The transaction has been booked to the balance account. - * - * @return status The status of the transaction. Possible values: * **pending**: The transaction - * is still pending. * **booked**: The transaction has been booked to the balance account. + * The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. + * @return status The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -514,11 +473,9 @@ public StatusEnum getStatus() { } /** - * The status of the transaction. Possible values: * **pending**: The transaction is still - * pending. * **booked**: The transaction has been booked to the balance account. + * The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. * - * @param status The status of the transaction. Possible values: * **pending**: The transaction is - * still pending. * **booked**: The transaction has been booked to the balance account. + * @param status The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -529,7 +486,7 @@ public void setStatus(StatusEnum status) { /** * transfer * - * @param transfer + * @param transfer * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction transfer(TransferView transfer) { @@ -539,8 +496,7 @@ public Transaction transfer(TransferView transfer) { /** * Get transfer - * - * @return transfer + * @return transfer */ @JsonProperty(JSON_PROPERTY_TRANSFER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -551,7 +507,7 @@ public TransferView getTransfer() { /** * transfer * - * @param transfer + * @param transfer */ @JsonProperty(JSON_PROPERTY_TRANSFER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -572,7 +528,6 @@ public Transaction valueDate(OffsetDateTime valueDate) { /** * The date the transfer amount becomes available in the balance account. - * * @return valueDate The date the transfer amount becomes available in the balance account. */ @JsonProperty(JSON_PROPERTY_VALUE_DATE) @@ -592,7 +547,9 @@ public void setValueDate(OffsetDateTime valueDate) { this.valueDate = valueDate; } - /** Return true if this Transaction object is equal to o. */ + /** + * Return true if this Transaction object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -602,37 +559,24 @@ public boolean equals(Object o) { return false; } Transaction transaction = (Transaction) o; - return Objects.equals(this.accountHolder, transaction.accountHolder) - && Objects.equals(this.amount, transaction.amount) - && Objects.equals(this.balanceAccount, transaction.balanceAccount) - && Objects.equals(this.balancePlatform, transaction.balancePlatform) - && Objects.equals(this.bookingDate, transaction.bookingDate) - && Objects.equals(this.creationDate, transaction.creationDate) - && Objects.equals(this.description, transaction.description) - && Objects.equals(this.id, transaction.id) - && Objects.equals(this.paymentInstrument, transaction.paymentInstrument) - && Objects.equals(this.referenceForBeneficiary, transaction.referenceForBeneficiary) - && Objects.equals(this.status, transaction.status) - && Objects.equals(this.transfer, transaction.transfer) - && Objects.equals(this.valueDate, transaction.valueDate); + return Objects.equals(this.accountHolder, transaction.accountHolder) && + Objects.equals(this.amount, transaction.amount) && + Objects.equals(this.balanceAccount, transaction.balanceAccount) && + Objects.equals(this.balancePlatform, transaction.balancePlatform) && + Objects.equals(this.bookingDate, transaction.bookingDate) && + Objects.equals(this.creationDate, transaction.creationDate) && + Objects.equals(this.description, transaction.description) && + Objects.equals(this.id, transaction.id) && + Objects.equals(this.paymentInstrument, transaction.paymentInstrument) && + Objects.equals(this.referenceForBeneficiary, transaction.referenceForBeneficiary) && + Objects.equals(this.status, transaction.status) && + Objects.equals(this.transfer, transaction.transfer) && + Objects.equals(this.valueDate, transaction.valueDate); } @Override public int hashCode() { - return Objects.hash( - accountHolder, - amount, - balanceAccount, - balancePlatform, - bookingDate, - creationDate, - description, - id, - paymentInstrument, - referenceForBeneficiary, - status, - transfer, - valueDate); + return Objects.hash(accountHolder, amount, balanceAccount, balancePlatform, bookingDate, creationDate, description, id, paymentInstrument, referenceForBeneficiary, status, transfer, valueDate); } @Override @@ -648,9 +592,7 @@ public String toString() { sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" paymentInstrument: ").append(toIndentedString(paymentInstrument)).append("\n"); - sb.append(" referenceForBeneficiary: ") - .append(toIndentedString(referenceForBeneficiary)) - .append("\n"); + sb.append(" referenceForBeneficiary: ").append(toIndentedString(referenceForBeneficiary)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" transfer: ").append(toIndentedString(transfer)).append("\n"); sb.append(" valueDate: ").append(toIndentedString(valueDate)).append("\n"); @@ -659,7 +601,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -668,7 +611,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Transaction given an JSON string * * @param jsonString JSON string @@ -678,12 +621,11 @@ private String toIndentedString(Object o) { public static Transaction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Transaction.class); } - - /** - * Convert an instance of Transaction to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Transaction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/TransactionEventViolation.java b/src/main/java/com/adyen/model/transfers/TransactionEventViolation.java index fdafd0c06..069de2e42 100644 --- a/src/main/java/com/adyen/model/transfers/TransactionEventViolation.java +++ b/src/main/java/com/adyen/model/transfers/TransactionEventViolation.java @@ -2,27 +2,39 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.TransactionRuleReference; +import com.adyen.model.transfers.TransactionRuleSource; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TransactionEventViolation */ + +/** + * TransactionEventViolation + */ @JsonPropertyOrder({ TransactionEventViolation.JSON_PROPERTY_REASON, TransactionEventViolation.JSON_PROPERTY_TRANSACTION_RULE, TransactionEventViolation.JSON_PROPERTY_TRANSACTION_RULE_SOURCE }) + public class TransactionEventViolation { public static final String JSON_PROPERTY_REASON = "reason"; private String reason; @@ -33,7 +45,8 @@ public class TransactionEventViolation { public static final String JSON_PROPERTY_TRANSACTION_RULE_SOURCE = "transactionRuleSource"; private TransactionRuleSource transactionRuleSource; - public TransactionEventViolation() {} + public TransactionEventViolation() { + } /** * An explanation about why the transaction rule failed. @@ -48,7 +61,6 @@ public TransactionEventViolation reason(String reason) { /** * An explanation about why the transaction rule failed. - * * @return reason An explanation about why the transaction rule failed. */ @JsonProperty(JSON_PROPERTY_REASON) @@ -71,7 +83,7 @@ public void setReason(String reason) { /** * transactionRule * - * @param transactionRule + * @param transactionRule * @return the current {@code TransactionEventViolation} instance, allowing for method chaining */ public TransactionEventViolation transactionRule(TransactionRuleReference transactionRule) { @@ -81,8 +93,7 @@ public TransactionEventViolation transactionRule(TransactionRuleReference transa /** * Get transactionRule - * - * @return transactionRule + * @return transactionRule */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -93,7 +104,7 @@ public TransactionRuleReference getTransactionRule() { /** * transactionRule * - * @param transactionRule + * @param transactionRule */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,19 +115,17 @@ public void setTransactionRule(TransactionRuleReference transactionRule) { /** * transactionRuleSource * - * @param transactionRuleSource + * @param transactionRuleSource * @return the current {@code TransactionEventViolation} instance, allowing for method chaining */ - public TransactionEventViolation transactionRuleSource( - TransactionRuleSource transactionRuleSource) { + public TransactionEventViolation transactionRuleSource(TransactionRuleSource transactionRuleSource) { this.transactionRuleSource = transactionRuleSource; return this; } /** * Get transactionRuleSource - * - * @return transactionRuleSource + * @return transactionRuleSource */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULE_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,7 +136,7 @@ public TransactionRuleSource getTransactionRuleSource() { /** * transactionRuleSource * - * @param transactionRuleSource + * @param transactionRuleSource */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULE_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,7 +144,9 @@ public void setTransactionRuleSource(TransactionRuleSource transactionRuleSource this.transactionRuleSource = transactionRuleSource; } - /** Return true if this TransactionEventViolation object is equal to o. */ + /** + * Return true if this TransactionEventViolation object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -145,10 +156,9 @@ public boolean equals(Object o) { return false; } TransactionEventViolation transactionEventViolation = (TransactionEventViolation) o; - return Objects.equals(this.reason, transactionEventViolation.reason) - && Objects.equals(this.transactionRule, transactionEventViolation.transactionRule) - && Objects.equals( - this.transactionRuleSource, transactionEventViolation.transactionRuleSource); + return Objects.equals(this.reason, transactionEventViolation.reason) && + Objects.equals(this.transactionRule, transactionEventViolation.transactionRule) && + Objects.equals(this.transactionRuleSource, transactionEventViolation.transactionRuleSource); } @Override @@ -162,15 +172,14 @@ public String toString() { sb.append("class TransactionEventViolation {\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" transactionRule: ").append(toIndentedString(transactionRule)).append("\n"); - sb.append(" transactionRuleSource: ") - .append(toIndentedString(transactionRuleSource)) - .append("\n"); + sb.append(" transactionRuleSource: ").append(toIndentedString(transactionRuleSource)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -179,24 +188,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransactionEventViolation given an JSON string * * @param jsonString JSON string * @return An instance of TransactionEventViolation - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionEventViolation + * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionEventViolation */ - public static TransactionEventViolation fromJson(String jsonString) - throws JsonProcessingException { + public static TransactionEventViolation fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionEventViolation.class); } - - /** - * Convert an instance of TransactionEventViolation to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransactionEventViolation to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/TransactionRuleReference.java b/src/main/java/com/adyen/model/transfers/TransactionRuleReference.java index 4863931e3..071efac1d 100644 --- a/src/main/java/com/adyen/model/transfers/TransactionRuleReference.java +++ b/src/main/java/com/adyen/model/transfers/TransactionRuleReference.java @@ -2,22 +2,31 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TransactionRuleReference */ + +/** + * TransactionRuleReference + */ @JsonPropertyOrder({ TransactionRuleReference.JSON_PROPERTY_DESCRIPTION, TransactionRuleReference.JSON_PROPERTY_ID, @@ -25,6 +34,7 @@ TransactionRuleReference.JSON_PROPERTY_REFERENCE, TransactionRuleReference.JSON_PROPERTY_SCORE }) + public class TransactionRuleReference { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -41,7 +51,8 @@ public class TransactionRuleReference { public static final String JSON_PROPERTY_SCORE = "score"; private Integer score; - public TransactionRuleReference() {} + public TransactionRuleReference() { + } /** * The description of the resource. @@ -56,7 +67,6 @@ public TransactionRuleReference description(String description) { /** * The description of the resource. - * * @return description The description of the resource. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -89,7 +99,6 @@ public TransactionRuleReference id(String id) { /** * The unique identifier of the resource. - * * @return id The unique identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -122,7 +131,6 @@ public TransactionRuleReference outcomeType(String outcomeType) { /** * The outcome type of the rule. - * * @return outcomeType The outcome type of the rule. */ @JsonProperty(JSON_PROPERTY_OUTCOME_TYPE) @@ -155,7 +163,6 @@ public TransactionRuleReference reference(String reference) { /** * The reference for the resource. - * * @return reference The reference for the resource. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -176,11 +183,9 @@ public void setReference(String reference) { } /** - * The transaction score determined by the rule. Returned only when `outcomeType` is - * **scoreBased**. + * The transaction score determined by the rule. Returned only when `outcomeType` is **scoreBased**. * - * @param score The transaction score determined by the rule. Returned only when - * `outcomeType` is **scoreBased**. + * @param score The transaction score determined by the rule. Returned only when `outcomeType` is **scoreBased**. * @return the current {@code TransactionRuleReference} instance, allowing for method chaining */ public TransactionRuleReference score(Integer score) { @@ -189,11 +194,8 @@ public TransactionRuleReference score(Integer score) { } /** - * The transaction score determined by the rule. Returned only when `outcomeType` is - * **scoreBased**. - * - * @return score The transaction score determined by the rule. Returned only when - * `outcomeType` is **scoreBased**. + * The transaction score determined by the rule. Returned only when `outcomeType` is **scoreBased**. + * @return score The transaction score determined by the rule. Returned only when `outcomeType` is **scoreBased**. */ @JsonProperty(JSON_PROPERTY_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -202,11 +204,9 @@ public Integer getScore() { } /** - * The transaction score determined by the rule. Returned only when `outcomeType` is - * **scoreBased**. + * The transaction score determined by the rule. Returned only when `outcomeType` is **scoreBased**. * - * @param score The transaction score determined by the rule. Returned only when - * `outcomeType` is **scoreBased**. + * @param score The transaction score determined by the rule. Returned only when `outcomeType` is **scoreBased**. */ @JsonProperty(JSON_PROPERTY_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,7 +214,9 @@ public void setScore(Integer score) { this.score = score; } - /** Return true if this TransactionRuleReference object is equal to o. */ + /** + * Return true if this TransactionRuleReference object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -224,11 +226,11 @@ public boolean equals(Object o) { return false; } TransactionRuleReference transactionRuleReference = (TransactionRuleReference) o; - return Objects.equals(this.description, transactionRuleReference.description) - && Objects.equals(this.id, transactionRuleReference.id) - && Objects.equals(this.outcomeType, transactionRuleReference.outcomeType) - && Objects.equals(this.reference, transactionRuleReference.reference) - && Objects.equals(this.score, transactionRuleReference.score); + return Objects.equals(this.description, transactionRuleReference.description) && + Objects.equals(this.id, transactionRuleReference.id) && + Objects.equals(this.outcomeType, transactionRuleReference.outcomeType) && + Objects.equals(this.reference, transactionRuleReference.reference) && + Objects.equals(this.score, transactionRuleReference.score); } @Override @@ -250,7 +252,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -259,24 +262,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransactionRuleReference given an JSON string * * @param jsonString JSON string * @return An instance of TransactionRuleReference - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionRuleReference + * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionRuleReference */ - public static TransactionRuleReference fromJson(String jsonString) - throws JsonProcessingException { + public static TransactionRuleReference fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionRuleReference.class); } - - /** - * Convert an instance of TransactionRuleReference to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransactionRuleReference to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/TransactionRuleSource.java b/src/main/java/com/adyen/model/transfers/TransactionRuleSource.java index 4b0a7e173..71e622d9a 100644 --- a/src/main/java/com/adyen/model/transfers/TransactionRuleSource.java +++ b/src/main/java/com/adyen/model/transfers/TransactionRuleSource.java @@ -2,26 +2,36 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TransactionRuleSource */ + +/** + * TransactionRuleSource + */ @JsonPropertyOrder({ TransactionRuleSource.JSON_PROPERTY_ID, TransactionRuleSource.JSON_PROPERTY_TYPE }) + public class TransactionRuleSource { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -29,7 +39,8 @@ public class TransactionRuleSource { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public TransactionRuleSource() {} + public TransactionRuleSource() { + } /** * ID of the resource, when applicable. @@ -44,7 +55,6 @@ public TransactionRuleSource id(String id) { /** * ID of the resource, when applicable. - * * @return id ID of the resource, when applicable. */ @JsonProperty(JSON_PROPERTY_ID) @@ -65,15 +75,9 @@ public void setId(String id) { } /** - * Indicates the type of resource for which the transaction rule is defined. Possible values: * - * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * - * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule - * imposed by Adyen. + * Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. * - * @param type Indicates the type of resource for which the transaction rule is defined. Possible - * values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * - * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide - * rule imposed by Adyen. + * @param type Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. * @return the current {@code TransactionRuleSource} instance, allowing for method chaining */ public TransactionRuleSource type(String type) { @@ -82,15 +86,8 @@ public TransactionRuleSource type(String type) { } /** - * Indicates the type of resource for which the transaction rule is defined. Possible values: * - * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * - * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule - * imposed by Adyen. - * - * @return type Indicates the type of resource for which the transaction rule is defined. Possible - * values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * - * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide - * rule imposed by Adyen. + * Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. + * @return type Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,15 +96,9 @@ public String getType() { } /** - * Indicates the type of resource for which the transaction rule is defined. Possible values: * - * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * - * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule - * imposed by Adyen. + * Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. * - * @param type Indicates the type of resource for which the transaction rule is defined. Possible - * values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * - * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide - * rule imposed by Adyen. + * @param type Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,7 +106,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this TransactionRuleSource object is equal to o. */ + /** + * Return true if this TransactionRuleSource object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -125,8 +118,8 @@ public boolean equals(Object o) { return false; } TransactionRuleSource transactionRuleSource = (TransactionRuleSource) o; - return Objects.equals(this.id, transactionRuleSource.id) - && Objects.equals(this.type, transactionRuleSource.type); + return Objects.equals(this.id, transactionRuleSource.id) && + Objects.equals(this.type, transactionRuleSource.type); } @Override @@ -145,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -154,23 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransactionRuleSource given an JSON string * * @param jsonString JSON string * @return An instance of TransactionRuleSource - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionRuleSource + * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionRuleSource */ public static TransactionRuleSource fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionRuleSource.class); } - - /** - * Convert an instance of TransactionRuleSource to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransactionRuleSource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/TransactionRulesResult.java b/src/main/java/com/adyen/model/transfers/TransactionRulesResult.java index ec5f302c8..fcc503da8 100644 --- a/src/main/java/com/adyen/model/transfers/TransactionRulesResult.java +++ b/src/main/java/com/adyen/model/transfers/TransactionRulesResult.java @@ -2,30 +2,41 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.TransactionEventViolation; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** TransactionRulesResult */ +/** + * TransactionRulesResult + */ @JsonPropertyOrder({ TransactionRulesResult.JSON_PROPERTY_ADVICE, TransactionRulesResult.JSON_PROPERTY_ALL_HARD_BLOCK_RULES_PASSED, TransactionRulesResult.JSON_PROPERTY_SCORE, TransactionRulesResult.JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES }) + public class TransactionRulesResult { public static final String JSON_PROPERTY_ADVICE = "advice"; private String advice; @@ -36,11 +47,11 @@ public class TransactionRulesResult { public static final String JSON_PROPERTY_SCORE = "score"; private Integer score; - public static final String JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES = - "triggeredTransactionRules"; + public static final String JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES = "triggeredTransactionRules"; private List triggeredTransactionRules; - public TransactionRulesResult() {} + public TransactionRulesResult() { + } /** * The advice given by the Risk analysis. @@ -55,7 +66,6 @@ public TransactionRulesResult advice(String advice) { /** * The advice given by the Risk analysis. - * * @return advice The advice given by the Risk analysis. */ @JsonProperty(JSON_PROPERTY_ADVICE) @@ -78,8 +88,7 @@ public void setAdvice(String advice) { /** * Indicates whether the transaction passed the evaluation for all hardblock rules * - * @param allHardBlockRulesPassed Indicates whether the transaction passed the evaluation for all - * hardblock rules + * @param allHardBlockRulesPassed Indicates whether the transaction passed the evaluation for all hardblock rules * @return the current {@code TransactionRulesResult} instance, allowing for method chaining */ public TransactionRulesResult allHardBlockRulesPassed(Boolean allHardBlockRulesPassed) { @@ -89,9 +98,7 @@ public TransactionRulesResult allHardBlockRulesPassed(Boolean allHardBlockRulesP /** * Indicates whether the transaction passed the evaluation for all hardblock rules - * - * @return allHardBlockRulesPassed Indicates whether the transaction passed the evaluation for all - * hardblock rules + * @return allHardBlockRulesPassed Indicates whether the transaction passed the evaluation for all hardblock rules */ @JsonProperty(JSON_PROPERTY_ALL_HARD_BLOCK_RULES_PASSED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,8 +109,7 @@ public Boolean getAllHardBlockRulesPassed() { /** * Indicates whether the transaction passed the evaluation for all hardblock rules * - * @param allHardBlockRulesPassed Indicates whether the transaction passed the evaluation for all - * hardblock rules + * @param allHardBlockRulesPassed Indicates whether the transaction passed the evaluation for all hardblock rules */ @JsonProperty(JSON_PROPERTY_ALL_HARD_BLOCK_RULES_PASSED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,7 +130,6 @@ public TransactionRulesResult score(Integer score) { /** * The score of the Risk analysis. - * * @return score The score of the Risk analysis. */ @JsonProperty(JSON_PROPERTY_SCORE) @@ -147,18 +152,15 @@ public void setScore(Integer score) { /** * Array containing all the transaction rules that the transaction triggered. * - * @param triggeredTransactionRules Array containing all the transaction rules that the - * transaction triggered. + * @param triggeredTransactionRules Array containing all the transaction rules that the transaction triggered. * @return the current {@code TransactionRulesResult} instance, allowing for method chaining */ - public TransactionRulesResult triggeredTransactionRules( - List triggeredTransactionRules) { + public TransactionRulesResult triggeredTransactionRules(List triggeredTransactionRules) { this.triggeredTransactionRules = triggeredTransactionRules; return this; } - public TransactionRulesResult addTriggeredTransactionRulesItem( - TransactionEventViolation triggeredTransactionRulesItem) { + public TransactionRulesResult addTriggeredTransactionRulesItem(TransactionEventViolation triggeredTransactionRulesItem) { if (this.triggeredTransactionRules == null) { this.triggeredTransactionRules = new ArrayList<>(); } @@ -168,9 +170,7 @@ public TransactionRulesResult addTriggeredTransactionRulesItem( /** * Array containing all the transaction rules that the transaction triggered. - * - * @return triggeredTransactionRules Array containing all the transaction rules that the - * transaction triggered. + * @return triggeredTransactionRules Array containing all the transaction rules that the transaction triggered. */ @JsonProperty(JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,17 +181,17 @@ public List getTriggeredTransactionRules() { /** * Array containing all the transaction rules that the transaction triggered. * - * @param triggeredTransactionRules Array containing all the transaction rules that the - * transaction triggered. + * @param triggeredTransactionRules Array containing all the transaction rules that the transaction triggered. */ @JsonProperty(JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTriggeredTransactionRules( - List triggeredTransactionRules) { + public void setTriggeredTransactionRules(List triggeredTransactionRules) { this.triggeredTransactionRules = triggeredTransactionRules; } - /** Return true if this TransactionRulesResult object is equal to o. */ + /** + * Return true if this TransactionRulesResult object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -201,12 +201,10 @@ public boolean equals(Object o) { return false; } TransactionRulesResult transactionRulesResult = (TransactionRulesResult) o; - return Objects.equals(this.advice, transactionRulesResult.advice) - && Objects.equals( - this.allHardBlockRulesPassed, transactionRulesResult.allHardBlockRulesPassed) - && Objects.equals(this.score, transactionRulesResult.score) - && Objects.equals( - this.triggeredTransactionRules, transactionRulesResult.triggeredTransactionRules); + return Objects.equals(this.advice, transactionRulesResult.advice) && + Objects.equals(this.allHardBlockRulesPassed, transactionRulesResult.allHardBlockRulesPassed) && + Objects.equals(this.score, transactionRulesResult.score) && + Objects.equals(this.triggeredTransactionRules, transactionRulesResult.triggeredTransactionRules); } @Override @@ -219,19 +217,16 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TransactionRulesResult {\n"); sb.append(" advice: ").append(toIndentedString(advice)).append("\n"); - sb.append(" allHardBlockRulesPassed: ") - .append(toIndentedString(allHardBlockRulesPassed)) - .append("\n"); + sb.append(" allHardBlockRulesPassed: ").append(toIndentedString(allHardBlockRulesPassed)).append("\n"); sb.append(" score: ").append(toIndentedString(score)).append("\n"); - sb.append(" triggeredTransactionRules: ") - .append(toIndentedString(triggeredTransactionRules)) - .append("\n"); + sb.append(" triggeredTransactionRules: ").append(toIndentedString(triggeredTransactionRules)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -240,23 +235,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransactionRulesResult given an JSON string * * @param jsonString JSON string * @return An instance of TransactionRulesResult - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionRulesResult + * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionRulesResult */ public static TransactionRulesResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionRulesResult.class); } - - /** - * Convert an instance of TransactionRulesResult to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransactionRulesResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/TransactionSearchResponse.java b/src/main/java/com/adyen/model/transfers/TransactionSearchResponse.java index 7f4e62408..9f5d21dc6 100644 --- a/src/main/java/com/adyen/model/transfers/TransactionSearchResponse.java +++ b/src/main/java/com/adyen/model/transfers/TransactionSearchResponse.java @@ -2,28 +2,40 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.Links; +import com.adyen.model.transfers.Transaction; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** TransactionSearchResponse */ +/** + * TransactionSearchResponse + */ @JsonPropertyOrder({ TransactionSearchResponse.JSON_PROPERTY_LINKS, TransactionSearchResponse.JSON_PROPERTY_DATA }) + public class TransactionSearchResponse { public static final String JSON_PROPERTY_LINKS = "_links"; private Links links; @@ -31,12 +43,13 @@ public class TransactionSearchResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; - public TransactionSearchResponse() {} + public TransactionSearchResponse() { + } /** * links * - * @param links + * @param links * @return the current {@code TransactionSearchResponse} instance, allowing for method chaining */ public TransactionSearchResponse links(Links links) { @@ -46,8 +59,7 @@ public TransactionSearchResponse links(Links links) { /** * Get links - * - * @return links + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -58,7 +70,7 @@ public Links getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,7 +99,6 @@ public TransactionSearchResponse addDataItem(Transaction dataItem) { /** * Contains the transactions that match the query parameters. - * * @return data Contains the transactions that match the query parameters. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -107,7 +118,9 @@ public void setData(List data) { this.data = data; } - /** Return true if this TransactionSearchResponse object is equal to o. */ + /** + * Return true if this TransactionSearchResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -117,8 +130,8 @@ public boolean equals(Object o) { return false; } TransactionSearchResponse transactionSearchResponse = (TransactionSearchResponse) o; - return Objects.equals(this.links, transactionSearchResponse.links) - && Objects.equals(this.data, transactionSearchResponse.data); + return Objects.equals(this.links, transactionSearchResponse.links) && + Objects.equals(this.data, transactionSearchResponse.data); } @Override @@ -137,7 +150,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -146,24 +160,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransactionSearchResponse given an JSON string * * @param jsonString JSON string * @return An instance of TransactionSearchResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionSearchResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionSearchResponse */ - public static TransactionSearchResponse fromJson(String jsonString) - throws JsonProcessingException { + public static TransactionSearchResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionSearchResponse.class); } - - /** - * Convert an instance of TransactionSearchResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransactionSearchResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/Transfer.java b/src/main/java/com/adyen/model/transfers/Transfer.java index 6d7ee7e5f..8a21ce90f 100644 --- a/src/main/java/com/adyen/model/transfers/Transfer.java +++ b/src/main/java/com/adyen/model/transfers/Transfer.java @@ -2,27 +2,40 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.Amount; +import com.adyen.model.transfers.CounterpartyV3; +import com.adyen.model.transfers.DirectDebitInformation; +import com.adyen.model.transfers.ExecutionDate; +import com.adyen.model.transfers.PaymentInstrument; +import com.adyen.model.transfers.ResourceReference; +import com.adyen.model.transfers.TransferCategoryData; +import com.adyen.model.transfers.TransferReview; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** Transfer */ +/** + * Transfer + */ @JsonPropertyOrder({ Transfer.JSON_PROPERTY_ACCOUNT_HOLDER, Transfer.JSON_PROPERTY_AMOUNT, @@ -45,6 +58,7 @@ Transfer.JSON_PROPERTY_STATUS, Transfer.JSON_PROPERTY_TYPE }) + public class Transfer { public static final String JSON_PROPERTY_ACCOUNT_HOLDER = "accountHolder"; private ResourceReference accountHolder; @@ -56,16 +70,10 @@ public class Transfer { private ResourceReference balanceAccount; /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a - * transfer between [balance - * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - - * **platformPayment**: funds movements related to payments that are acquired for your users. - - * **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. */ public enum CategoryEnum { + BANK(String.valueOf("bank")), CARD(String.valueOf("card")), @@ -83,7 +91,7 @@ public enum CategoryEnum { private String value; CategoryEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -104,11 +112,7 @@ public static CategoryEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "CategoryEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(CategoryEnum.values())); + LOG.warning("CategoryEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CategoryEnum.values())); return null; } } @@ -135,8 +139,11 @@ public static CategoryEnum fromValue(String value) { public static final String JSON_PROPERTY_DIRECT_DEBIT_INFORMATION = "directDebitInformation"; private DirectDebitInformation directDebitInformation; - /** The direction of the transfer. Possible values: **incoming**, **outgoing**. */ + /** + * The direction of the transfer. Possible values: **incoming**, **outgoing**. + */ public enum DirectionEnum { + INCOMING(String.valueOf("incoming")), OUTGOING(String.valueOf("outgoing")); @@ -146,7 +153,7 @@ public enum DirectionEnum { private String value; DirectionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -167,11 +174,7 @@ public static DirectionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "DirectionEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(DirectionEnum.values())); + LOG.warning("DirectionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(DirectionEnum.values())); return null; } } @@ -188,8 +191,11 @@ public static DirectionEnum fromValue(String value) { public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT = "paymentInstrument"; private PaymentInstrument paymentInstrument; - /** Additional information about the status of the transfer. */ + /** + * Additional information about the status of the transfer. + */ public enum ReasonEnum { + ACCOUNTHIERARCHYNOTACTIVE(String.valueOf("accountHierarchyNotActive")), AMOUNTLIMITEXCEEDED(String.valueOf("amountLimitExceeded")), @@ -198,8 +204,7 @@ public enum ReasonEnum { APPROVED(String.valueOf("approved")), - BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE( - String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), + BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE(String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), COUNTERPARTYACCOUNTBLOCKED(String.valueOf("counterpartyAccountBlocked")), @@ -246,7 +251,7 @@ public enum ReasonEnum { private String value; ReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -267,11 +272,7 @@ public static ReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ReasonEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ReasonEnum.values())); + LOG.warning("ReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ReasonEnum.values())); return null; } } @@ -289,13 +290,10 @@ public static ReasonEnum fromValue(String value) { private TransferReview review; /** - * The result of the transfer. For example: - **received**: an outgoing transfer request is - * created. - **authorised**: the transfer request is authorized and the funds are reserved. - - * **booked**: the funds are deducted from your user's balance account. - **failed**: the - * transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned - * by the counterparty's bank. + * The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. */ public enum StatusEnum { + APPROVALPENDING(String.valueOf("approvalPending")), ATMWITHDRAWAL(String.valueOf("atmWithdrawal")), @@ -435,7 +433,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -456,11 +454,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -469,10 +463,10 @@ public static StatusEnum fromValue(String value) { private StatusEnum status; /** - * The type of transfer or transaction. For example, **refund**, **payment**, - * **internalTransfer**, **bankTransfer**. + * The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. */ public enum TypeEnum { + PAYMENT(String.valueOf("payment")), CAPTURE(String.valueOf("capture")), @@ -554,7 +548,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -575,11 +569,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -587,12 +577,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public Transfer() {} + public Transfer() { + } /** * accountHolder * - * @param accountHolder + * @param accountHolder * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer accountHolder(ResourceReference accountHolder) { @@ -602,8 +593,7 @@ public Transfer accountHolder(ResourceReference accountHolder) { /** * Get accountHolder - * - * @return accountHolder + * @return accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -614,7 +604,7 @@ public ResourceReference getAccountHolder() { /** * accountHolder * - * @param accountHolder + * @param accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -625,7 +615,7 @@ public void setAccountHolder(ResourceReference accountHolder) { /** * amount * - * @param amount + * @param amount * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer amount(Amount amount) { @@ -635,8 +625,7 @@ public Transfer amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -647,7 +636,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -658,7 +647,7 @@ public void setAmount(Amount amount) { /** * balanceAccount * - * @param balanceAccount + * @param balanceAccount * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer balanceAccount(ResourceReference balanceAccount) { @@ -668,8 +657,7 @@ public Transfer balanceAccount(ResourceReference balanceAccount) { /** * Get balanceAccount - * - * @return balanceAccount + * @return balanceAccount */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -680,7 +668,7 @@ public ResourceReference getBalanceAccount() { /** * balanceAccount * - * @param balanceAccount + * @param balanceAccount */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -689,24 +677,9 @@ public void setBalanceAccount(ResourceReference balanceAccount) { } /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a - * transfer between [balance - * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - - * **platformPayment**: funds movements related to payments that are acquired for your users. - - * **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. * - * @param category The category of the transfer. Possible values: - **bank**: a transfer involving - * a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a - * transfer between [balance - * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - - * **platformPayment**: funds movements related to payments that are acquired for your users. - * - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * @param category The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer category(CategoryEnum category) { @@ -715,24 +688,8 @@ public Transfer category(CategoryEnum category) { } /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a - * transfer between [balance - * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - - * **platformPayment**: funds movements related to payments that are acquired for your users. - - * **topUp**: an incoming transfer initiated by your user to top up their balance account. - * - * @return category The category of the transfer. Possible values: - **bank**: a transfer - * involving a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a - * transfer between [balance - * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - - * **platformPayment**: funds movements related to payments that are acquired for your users. - * - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * @return category The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -741,24 +698,9 @@ public CategoryEnum getCategory() { } /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a - * transfer between [balance - * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - - * **platformPayment**: funds movements related to payments that are acquired for your users. - - * **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. * - * @param category The category of the transfer. Possible values: - **bank**: a transfer involving - * a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a - * transfer between [balance - * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - - * **platformPayment**: funds movements related to payments that are acquired for your users. - * - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * @param category The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -769,7 +711,7 @@ public void setCategory(CategoryEnum category) { /** * categoryData * - * @param categoryData + * @param categoryData * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer categoryData(TransferCategoryData categoryData) { @@ -779,8 +721,7 @@ public Transfer categoryData(TransferCategoryData categoryData) { /** * Get categoryData - * - * @return categoryData + * @return categoryData */ @JsonProperty(JSON_PROPERTY_CATEGORY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -791,7 +732,7 @@ public TransferCategoryData getCategoryData() { /** * categoryData * - * @param categoryData + * @param categoryData */ @JsonProperty(JSON_PROPERTY_CATEGORY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -802,7 +743,7 @@ public void setCategoryData(TransferCategoryData categoryData) { /** * counterparty * - * @param counterparty + * @param counterparty * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer counterparty(CounterpartyV3 counterparty) { @@ -812,8 +753,7 @@ public Transfer counterparty(CounterpartyV3 counterparty) { /** * Get counterparty - * - * @return counterparty + * @return counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -824,7 +764,7 @@ public CounterpartyV3 getCounterparty() { /** * counterparty * - * @param counterparty + * @param counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -833,11 +773,9 @@ public void setCounterparty(CounterpartyV3 counterparty) { } /** - * The date and time when the transfer was created, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. * - * @param createdAt The date and time when the transfer was created, in ISO 8601 extended format. - * For example, **2020-12-18T10:15:30+01:00**. + * @param createdAt The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer createdAt(OffsetDateTime createdAt) { @@ -846,11 +784,8 @@ public Transfer createdAt(OffsetDateTime createdAt) { } /** - * The date and time when the transfer was created, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. - * - * @return createdAt The date and time when the transfer was created, in ISO 8601 extended format. - * For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * @return createdAt The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -859,11 +794,9 @@ public OffsetDateTime getCreatedAt() { } /** - * The date and time when the transfer was created, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. * - * @param createdAt The date and time when the transfer was created, in ISO 8601 extended format. - * For example, **2020-12-18T10:15:30+01:00**. + * @param createdAt The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -872,13 +805,13 @@ public void setCreatedAt(OffsetDateTime createdAt) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. * @return the current {@code Transfer} instance, allowing for method chaining - * @deprecated since Transfers API v3 Use createdAt or updatedAt + * + * @deprecated since Transfers API v3 + * Use createdAt or updatedAt */ @Deprecated // deprecated since Transfers API v3: Use createdAt or updatedAt public Transfer creationDate(OffsetDateTime creationDate) { @@ -887,11 +820,8 @@ public Transfer creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. - * - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. * @deprecated // deprecated since Transfers API v3: Use createdAt or updatedAt */ @Deprecated // deprecated since Transfers API v3: Use createdAt or updatedAt @@ -902,12 +832,12 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. - * @deprecated since Transfers API v3 Use createdAt or updatedAt + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * + * @deprecated since Transfers API v3 + * Use createdAt or updatedAt */ @Deprecated // deprecated since Transfers API v3: Use createdAt or updatedAt @JsonProperty(JSON_PROPERTY_CREATION_DATE) @@ -917,17 +847,9 @@ public void setCreationDate(OffsetDateTime creationDate) { } /** - * Your description for the transfer. It is used by most banks as the transfer description. We - * recommend sending a maximum of 140 characters, otherwise the description may be truncated. - * Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported - * characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] - * & $ % # @** **~ = + - _ ' \" ! ?** + * Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** * - * @param description Your description for the transfer. It is used by most banks as the transfer - * description. We recommend sending a maximum of 140 characters, otherwise the description - * may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + - * Space** Supported characters for **regular** and **fast** transfers to a US counterparty: - * **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * @param description Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer description(String description) { @@ -936,17 +858,8 @@ public Transfer description(String description) { } /** - * Your description for the transfer. It is used by most banks as the transfer description. We - * recommend sending a maximum of 140 characters, otherwise the description may be truncated. - * Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported - * characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] - * & $ % # @** **~ = + - _ ' \" ! ?** - * - * @return description Your description for the transfer. It is used by most banks as the transfer - * description. We recommend sending a maximum of 140 characters, otherwise the description - * may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + - * Space** Supported characters for **regular** and **fast** transfers to a US counterparty: - * **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * @return description Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -955,17 +868,9 @@ public String getDescription() { } /** - * Your description for the transfer. It is used by most banks as the transfer description. We - * recommend sending a maximum of 140 characters, otherwise the description may be truncated. - * Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported - * characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] - * & $ % # @** **~ = + - _ ' \" ! ?** + * Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** * - * @param description Your description for the transfer. It is used by most banks as the transfer - * description. We recommend sending a maximum of 140 characters, otherwise the description - * may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + - * Space** Supported characters for **regular** and **fast** transfers to a US counterparty: - * **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * @param description Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -976,7 +881,7 @@ public void setDescription(String description) { /** * directDebitInformation * - * @param directDebitInformation + * @param directDebitInformation * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer directDebitInformation(DirectDebitInformation directDebitInformation) { @@ -986,8 +891,7 @@ public Transfer directDebitInformation(DirectDebitInformation directDebitInforma /** * Get directDebitInformation - * - * @return directDebitInformation + * @return directDebitInformation */ @JsonProperty(JSON_PROPERTY_DIRECT_DEBIT_INFORMATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -998,7 +902,7 @@ public DirectDebitInformation getDirectDebitInformation() { /** * directDebitInformation * - * @param directDebitInformation + * @param directDebitInformation */ @JsonProperty(JSON_PROPERTY_DIRECT_DEBIT_INFORMATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1007,9 +911,9 @@ public void setDirectDebitInformation(DirectDebitInformation directDebitInformat } /** - * The direction of the transfer. Possible values: **incoming**, **outgoing**. + * The direction of the transfer. Possible values: **incoming**, **outgoing**. * - * @param direction The direction of the transfer. Possible values: **incoming**, **outgoing**. + * @param direction The direction of the transfer. Possible values: **incoming**, **outgoing**. * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer direction(DirectionEnum direction) { @@ -1018,9 +922,8 @@ public Transfer direction(DirectionEnum direction) { } /** - * The direction of the transfer. Possible values: **incoming**, **outgoing**. - * - * @return direction The direction of the transfer. Possible values: **incoming**, **outgoing**. + * The direction of the transfer. Possible values: **incoming**, **outgoing**. + * @return direction The direction of the transfer. Possible values: **incoming**, **outgoing**. */ @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1029,9 +932,9 @@ public DirectionEnum getDirection() { } /** - * The direction of the transfer. Possible values: **incoming**, **outgoing**. + * The direction of the transfer. Possible values: **incoming**, **outgoing**. * - * @param direction The direction of the transfer. Possible values: **incoming**, **outgoing**. + * @param direction The direction of the transfer. Possible values: **incoming**, **outgoing**. */ @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1042,7 +945,7 @@ public void setDirection(DirectionEnum direction) { /** * executionDate * - * @param executionDate + * @param executionDate * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer executionDate(ExecutionDate executionDate) { @@ -1052,8 +955,7 @@ public Transfer executionDate(ExecutionDate executionDate) { /** * Get executionDate - * - * @return executionDate + * @return executionDate */ @JsonProperty(JSON_PROPERTY_EXECUTION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1064,7 +966,7 @@ public ExecutionDate getExecutionDate() { /** * executionDate * - * @param executionDate + * @param executionDate */ @JsonProperty(JSON_PROPERTY_EXECUTION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1085,7 +987,6 @@ public Transfer id(String id) { /** * The ID of the resource. - * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -1108,7 +1009,7 @@ public void setId(String id) { /** * paymentInstrument * - * @param paymentInstrument + * @param paymentInstrument * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer paymentInstrument(PaymentInstrument paymentInstrument) { @@ -1118,8 +1019,7 @@ public Transfer paymentInstrument(PaymentInstrument paymentInstrument) { /** * Get paymentInstrument - * - * @return paymentInstrument + * @return paymentInstrument */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1130,7 +1030,7 @@ public PaymentInstrument getPaymentInstrument() { /** * paymentInstrument * - * @param paymentInstrument + * @param paymentInstrument */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1151,7 +1051,6 @@ public Transfer reason(ReasonEnum reason) { /** * Additional information about the status of the transfer. - * * @return reason Additional information about the status of the transfer. */ @JsonProperty(JSON_PROPERTY_REASON) @@ -1172,11 +1071,9 @@ public void setReason(ReasonEnum reason) { } /** - * Your reference for the transfer, used internally within your platform. If you don't provide - * this in the request, Adyen generates a unique reference. + * Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. * - * @param reference Your reference for the transfer, used internally within your platform. If you - * don't provide this in the request, Adyen generates a unique reference. + * @param reference Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer reference(String reference) { @@ -1185,11 +1082,8 @@ public Transfer reference(String reference) { } /** - * Your reference for the transfer, used internally within your platform. If you don't provide - * this in the request, Adyen generates a unique reference. - * - * @return reference Your reference for the transfer, used internally within your platform. If you - * don't provide this in the request, Adyen generates a unique reference. + * Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. + * @return reference Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1198,11 +1092,9 @@ public String getReference() { } /** - * Your reference for the transfer, used internally within your platform. If you don't provide - * this in the request, Adyen generates a unique reference. + * Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. * - * @param reference Your reference for the transfer, used internally within your platform. If you - * don't provide this in the request, Adyen generates a unique reference. + * @param reference Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1211,17 +1103,9 @@ public void setReference(String reference) { } /** - * A reference that is sent to the recipient. This reference is also sent in all webhooks related - * to the transfer, so you can use it to track statuses for both the source and recipient of - * funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the - * `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring - * to an IBAN, 15 characters for others. + * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. * - * @param referenceForBeneficiary A reference that is sent to the recipient. This reference is - * also sent in all webhooks related to the transfer, so you can use it to track statuses for - * both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The - * maximum length depends on the `category`. - **internal**: 80 characters - - * **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * @param referenceForBeneficiary A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer referenceForBeneficiary(String referenceForBeneficiary) { @@ -1230,17 +1114,8 @@ public Transfer referenceForBeneficiary(String referenceForBeneficiary) { } /** - * A reference that is sent to the recipient. This reference is also sent in all webhooks related - * to the transfer, so you can use it to track statuses for both the source and recipient of - * funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the - * `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring - * to an IBAN, 15 characters for others. - * - * @return referenceForBeneficiary A reference that is sent to the recipient. This reference is - * also sent in all webhooks related to the transfer, so you can use it to track statuses for - * both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The - * maximum length depends on the `category`. - **internal**: 80 characters - - * **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * @return referenceForBeneficiary A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1249,17 +1124,9 @@ public String getReferenceForBeneficiary() { } /** - * A reference that is sent to the recipient. This reference is also sent in all webhooks related - * to the transfer, so you can use it to track statuses for both the source and recipient of - * funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the - * `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring - * to an IBAN, 15 characters for others. + * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. * - * @param referenceForBeneficiary A reference that is sent to the recipient. This reference is - * also sent in all webhooks related to the transfer, so you can use it to track statuses for - * both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The - * maximum length depends on the `category`. - **internal**: 80 characters - - * **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * @param referenceForBeneficiary A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1270,7 +1137,7 @@ public void setReferenceForBeneficiary(String referenceForBeneficiary) { /** * review * - * @param review + * @param review * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer review(TransferReview review) { @@ -1280,8 +1147,7 @@ public Transfer review(TransferReview review) { /** * Get review - * - * @return review + * @return review */ @JsonProperty(JSON_PROPERTY_REVIEW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1292,7 +1158,7 @@ public TransferReview getReview() { /** * review * - * @param review + * @param review */ @JsonProperty(JSON_PROPERTY_REVIEW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1301,17 +1167,9 @@ public void setReview(TransferReview review) { } /** - * The result of the transfer. For example: - **received**: an outgoing transfer request is - * created. - **authorised**: the transfer request is authorized and the funds are reserved. - - * **booked**: the funds are deducted from your user's balance account. - **failed**: the - * transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned - * by the counterparty's bank. + * The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. * - * @param status The result of the transfer. For example: - **received**: an outgoing transfer - * request is created. - **authorised**: the transfer request is authorized and the funds are - * reserved. - **booked**: the funds are deducted from your user's balance account. - - * **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the - * transfer is returned by the counterparty's bank. + * @param status The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer status(StatusEnum status) { @@ -1320,17 +1178,8 @@ public Transfer status(StatusEnum status) { } /** - * The result of the transfer. For example: - **received**: an outgoing transfer request is - * created. - **authorised**: the transfer request is authorized and the funds are reserved. - - * **booked**: the funds are deducted from your user's balance account. - **failed**: the - * transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned - * by the counterparty's bank. - * - * @return status The result of the transfer. For example: - **received**: an outgoing transfer - * request is created. - **authorised**: the transfer request is authorized and the funds are - * reserved. - **booked**: the funds are deducted from your user's balance account. - - * **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the - * transfer is returned by the counterparty's bank. + * The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. + * @return status The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1339,17 +1188,9 @@ public StatusEnum getStatus() { } /** - * The result of the transfer. For example: - **received**: an outgoing transfer request is - * created. - **authorised**: the transfer request is authorized and the funds are reserved. - - * **booked**: the funds are deducted from your user's balance account. - **failed**: the - * transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned - * by the counterparty's bank. + * The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. * - * @param status The result of the transfer. For example: - **received**: an outgoing transfer - * request is created. - **authorised**: the transfer request is authorized and the funds are - * reserved. - **booked**: the funds are deducted from your user's balance account. - - * **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the - * transfer is returned by the counterparty's bank. + * @param status The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1358,11 +1199,9 @@ public void setStatus(StatusEnum status) { } /** - * The type of transfer or transaction. For example, **refund**, **payment**, - * **internalTransfer**, **bankTransfer**. + * The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. * - * @param type The type of transfer or transaction. For example, **refund**, **payment**, - * **internalTransfer**, **bankTransfer**. + * @param type The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer type(TypeEnum type) { @@ -1371,11 +1210,8 @@ public Transfer type(TypeEnum type) { } /** - * The type of transfer or transaction. For example, **refund**, **payment**, - * **internalTransfer**, **bankTransfer**. - * - * @return type The type of transfer or transaction. For example, **refund**, **payment**, - * **internalTransfer**, **bankTransfer**. + * The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. + * @return type The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1384,11 +1220,9 @@ public TypeEnum getType() { } /** - * The type of transfer or transaction. For example, **refund**, **payment**, - * **internalTransfer**, **bankTransfer**. + * The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. * - * @param type The type of transfer or transaction. For example, **refund**, **payment**, - * **internalTransfer**, **bankTransfer**. + * @param type The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1396,7 +1230,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this Transfer object is equal to o. */ + /** + * Return true if this Transfer object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -1406,51 +1242,31 @@ public boolean equals(Object o) { return false; } Transfer transfer = (Transfer) o; - return Objects.equals(this.accountHolder, transfer.accountHolder) - && Objects.equals(this.amount, transfer.amount) - && Objects.equals(this.balanceAccount, transfer.balanceAccount) - && Objects.equals(this.category, transfer.category) - && Objects.equals(this.categoryData, transfer.categoryData) - && Objects.equals(this.counterparty, transfer.counterparty) - && Objects.equals(this.createdAt, transfer.createdAt) - && Objects.equals(this.creationDate, transfer.creationDate) - && Objects.equals(this.description, transfer.description) - && Objects.equals(this.directDebitInformation, transfer.directDebitInformation) - && Objects.equals(this.direction, transfer.direction) - && Objects.equals(this.executionDate, transfer.executionDate) - && Objects.equals(this.id, transfer.id) - && Objects.equals(this.paymentInstrument, transfer.paymentInstrument) - && Objects.equals(this.reason, transfer.reason) - && Objects.equals(this.reference, transfer.reference) - && Objects.equals(this.referenceForBeneficiary, transfer.referenceForBeneficiary) - && Objects.equals(this.review, transfer.review) - && Objects.equals(this.status, transfer.status) - && Objects.equals(this.type, transfer.type); + return Objects.equals(this.accountHolder, transfer.accountHolder) && + Objects.equals(this.amount, transfer.amount) && + Objects.equals(this.balanceAccount, transfer.balanceAccount) && + Objects.equals(this.category, transfer.category) && + Objects.equals(this.categoryData, transfer.categoryData) && + Objects.equals(this.counterparty, transfer.counterparty) && + Objects.equals(this.createdAt, transfer.createdAt) && + Objects.equals(this.creationDate, transfer.creationDate) && + Objects.equals(this.description, transfer.description) && + Objects.equals(this.directDebitInformation, transfer.directDebitInformation) && + Objects.equals(this.direction, transfer.direction) && + Objects.equals(this.executionDate, transfer.executionDate) && + Objects.equals(this.id, transfer.id) && + Objects.equals(this.paymentInstrument, transfer.paymentInstrument) && + Objects.equals(this.reason, transfer.reason) && + Objects.equals(this.reference, transfer.reference) && + Objects.equals(this.referenceForBeneficiary, transfer.referenceForBeneficiary) && + Objects.equals(this.review, transfer.review) && + Objects.equals(this.status, transfer.status) && + Objects.equals(this.type, transfer.type); } @Override public int hashCode() { - return Objects.hash( - accountHolder, - amount, - balanceAccount, - category, - categoryData, - counterparty, - createdAt, - creationDate, - description, - directDebitInformation, - direction, - executionDate, - id, - paymentInstrument, - reason, - reference, - referenceForBeneficiary, - review, - status, - type); + return Objects.hash(accountHolder, amount, balanceAccount, category, categoryData, counterparty, createdAt, creationDate, description, directDebitInformation, direction, executionDate, id, paymentInstrument, reason, reference, referenceForBeneficiary, review, status, type); } @Override @@ -1466,18 +1282,14 @@ public String toString() { sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" directDebitInformation: ") - .append(toIndentedString(directDebitInformation)) - .append("\n"); + sb.append(" directDebitInformation: ").append(toIndentedString(directDebitInformation)).append("\n"); sb.append(" direction: ").append(toIndentedString(direction)).append("\n"); sb.append(" executionDate: ").append(toIndentedString(executionDate)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" paymentInstrument: ").append(toIndentedString(paymentInstrument)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); - sb.append(" referenceForBeneficiary: ") - .append(toIndentedString(referenceForBeneficiary)) - .append("\n"); + sb.append(" referenceForBeneficiary: ").append(toIndentedString(referenceForBeneficiary)).append("\n"); sb.append(" review: ").append(toIndentedString(review)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); @@ -1486,7 +1298,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1495,7 +1308,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Transfer given an JSON string * * @param jsonString JSON string @@ -1505,12 +1318,11 @@ private String toIndentedString(Object o) { public static Transfer fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Transfer.class); } - - /** - * Convert an instance of Transfer to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Transfer to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/TransferCategoryData.java b/src/main/java/com/adyen/model/transfers/TransferCategoryData.java index 7b9ba6d8c..60b300798 100644 --- a/src/main/java/com/adyen/model/transfers/TransferCategoryData.java +++ b/src/main/java/com/adyen/model/transfers/TransferCategoryData.java @@ -2,19 +2,52 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.BankCategoryData; +import com.adyen.model.transfers.InternalCategoryData; +import com.adyen.model.transfers.IssuedCard; +import com.adyen.model.transfers.PlatformPayment; +import com.adyen.model.transfers.RelayedAuthorisationData; +import com.adyen.model.transfers.ThreeDSecure; +import com.adyen.model.transfers.TransferNotificationValidationFact; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + +import com.fasterxml.jackson.core.type.TypeReference; + +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.Response; +import java.io.IOException; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; + import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; +import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -24,325 +57,308 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import jakarta.ws.rs.core.GenericType; -import java.io.IOException; -import java.util.*; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashSet; -import java.util.logging.Level; -import java.util.logging.Logger; + @JsonDeserialize(using = TransferCategoryData.TransferCategoryDataDeserializer.class) @JsonSerialize(using = TransferCategoryData.TransferCategoryDataSerializer.class) public class TransferCategoryData extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(TransferCategoryData.class.getName()); + private static final Logger log = Logger.getLogger(TransferCategoryData.class.getName()); + + public static class TransferCategoryDataSerializer extends StdSerializer { + public TransferCategoryDataSerializer(Class t) { + super(t); + } - public static class TransferCategoryDataSerializer extends StdSerializer { - public TransferCategoryDataSerializer(Class t) { - super(t); + public TransferCategoryDataSerializer() { + this(null); + } + + @Override + public void serialize(TransferCategoryData value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); + } } - public TransferCategoryDataSerializer() { - this(null); + public static class TransferCategoryDataDeserializer extends StdDeserializer { + public TransferCategoryDataDeserializer() { + this(TransferCategoryData.class); + } + + public TransferCategoryDataDeserializer(Class vc) { + super(vc); + } + + @Override + public TransferCategoryData deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize BankCategoryData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(BankCategoryData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(BankCategoryData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'BankCategoryData'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'BankCategoryData'", e); + } + + // deserialize InternalCategoryData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(InternalCategoryData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(InternalCategoryData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'InternalCategoryData'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'InternalCategoryData'", e); + } + + // deserialize IssuedCard + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(IssuedCard.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(IssuedCard.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'IssuedCard'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'IssuedCard'", e); + } + + // deserialize PlatformPayment + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(PlatformPayment.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PlatformPayment.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PlatformPayment'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PlatformPayment'", e); + } + + if (match == 1) { + TransferCategoryData ret = new TransferCategoryData(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException(String.format("Failed deserialization for TransferCategoryData: %d classes match result, expected 1", match)); + } + + /** + * Handle deserialization of the 'null' value. + */ + @Override + public TransferCategoryData getNullValue(DeserializationContext ctxt) throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "TransferCategoryData cannot be null"); + } } - @Override - public void serialize( - TransferCategoryData value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public TransferCategoryData() { + super("oneOf", Boolean.FALSE); + } + + public TransferCategoryData(BankCategoryData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferCategoryData(InternalCategoryData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferCategoryData(IssuedCard o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferCategoryData(PlatformPayment o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } - } - public static class TransferCategoryDataDeserializer - extends StdDeserializer { - public TransferCategoryDataDeserializer() { - this(TransferCategoryData.class); + static { + schemas.put("BankCategoryData", new GenericType() { + }); + schemas.put("InternalCategoryData", new GenericType() { + }); + schemas.put("IssuedCard", new GenericType() { + }); + schemas.put("PlatformPayment", new GenericType() { + }); + JSON.registerDescendants(TransferCategoryData.class, Collections.unmodifiableMap(schemas)); } - public TransferCategoryDataDeserializer(Class vc) { - super(vc); + @Override + public Map> getSchemas() { + return TransferCategoryData.schemas; } + /** + * Set the instance that matches the oneOf child schema, check + * the instance parameter is valid against the oneOf child schemas: + * BankCategoryData, InternalCategoryData, IssuedCard, PlatformPayment + * + * It could be an instance of the 'oneOf' schemas. + * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). + */ @Override - public TransferCategoryData deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize BankCategoryData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(BankCategoryData.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(BankCategoryData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'BankCategoryData'"); - } + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(BankCategoryData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'BankCategoryData'", e); - } - - // deserialize InternalCategoryData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(InternalCategoryData.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(InternalCategoryData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'InternalCategoryData'"); - } + + if (JSON.isInstanceOf(InternalCategoryData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'InternalCategoryData'", e); - } - - // deserialize IssuedCard - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(IssuedCard.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(IssuedCard.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'IssuedCard'"); - } + + if (JSON.isInstanceOf(IssuedCard.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'IssuedCard'", e); - } - - // deserialize PlatformPayment - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(PlatformPayment.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PlatformPayment.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PlatformPayment'"); - } + + if (JSON.isInstanceOf(PlatformPayment.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PlatformPayment'", e); - } - - if (match == 1) { - TransferCategoryData ret = new TransferCategoryData(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for TransferCategoryData: %d classes match result, expected 1", - match)); + + throw new RuntimeException("Invalid instance type. Must be BankCategoryData, InternalCategoryData, IssuedCard, PlatformPayment"); } - /** Handle deserialization of the 'null' value. */ + /** + * Get the actual instance, which can be the following: + * BankCategoryData, InternalCategoryData, IssuedCard, PlatformPayment + * + * @return The actual instance (BankCategoryData, InternalCategoryData, IssuedCard, PlatformPayment) + */ @Override - public TransferCategoryData getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "TransferCategoryData cannot be null"); + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `BankCategoryData`. If the actual instance is not `BankCategoryData`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `BankCategoryData` + * @throws ClassCastException if the instance is not `BankCategoryData` + */ + public BankCategoryData getBankCategoryData() throws ClassCastException { + return (BankCategoryData)super.getActualInstance(); } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public TransferCategoryData() { - super("oneOf", Boolean.FALSE); - } - - public TransferCategoryData(BankCategoryData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferCategoryData(InternalCategoryData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferCategoryData(IssuedCard o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferCategoryData(PlatformPayment o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("BankCategoryData", new GenericType() {}); - schemas.put("InternalCategoryData", new GenericType() {}); - schemas.put("IssuedCard", new GenericType() {}); - schemas.put("PlatformPayment", new GenericType() {}); - JSON.registerDescendants(TransferCategoryData.class, Collections.unmodifiableMap(schemas)); - } - - @Override - public Map> getSchemas() { - return TransferCategoryData.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: BankCategoryData, InternalCategoryData, IssuedCard, - * PlatformPayment - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a - * composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(BankCategoryData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + + /** + * Get the actual instance of `InternalCategoryData`. If the actual instance is not `InternalCategoryData`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `InternalCategoryData` + * @throws ClassCastException if the instance is not `InternalCategoryData` + */ + public InternalCategoryData getInternalCategoryData() throws ClassCastException { + return (InternalCategoryData)super.getActualInstance(); } - if (JSON.isInstanceOf(InternalCategoryData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `IssuedCard`. If the actual instance is not `IssuedCard`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `IssuedCard` + * @throws ClassCastException if the instance is not `IssuedCard` + */ + public IssuedCard getIssuedCard() throws ClassCastException { + return (IssuedCard)super.getActualInstance(); } - if (JSON.isInstanceOf(IssuedCard.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `PlatformPayment`. If the actual instance is not `PlatformPayment`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `PlatformPayment` + * @throws ClassCastException if the instance is not `PlatformPayment` + */ + public PlatformPayment getPlatformPayment() throws ClassCastException { + return (PlatformPayment)super.getActualInstance(); + } + + + /** + * Create an instance of TransferCategoryData given an JSON string + * + * @param jsonString JSON string + * @return An instance of TransferCategoryData + * @throws IOException if the JSON string is invalid with respect to TransferCategoryData + */ + public static TransferCategoryData fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, TransferCategoryData.class); } - if (JSON.isInstanceOf(PlatformPayment.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Convert an instance of TransferCategoryData to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); } - throw new RuntimeException( - "Invalid instance type. Must be BankCategoryData, InternalCategoryData, IssuedCard, PlatformPayment"); - } - - /** - * Get the actual instance, which can be the following: BankCategoryData, InternalCategoryData, - * IssuedCard, PlatformPayment - * - * @return The actual instance (BankCategoryData, InternalCategoryData, IssuedCard, - * PlatformPayment) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `BankCategoryData`. If the actual instance is not - * `BankCategoryData`, the ClassCastException will be thrown. - * - * @return The actual instance of `BankCategoryData` - * @throws ClassCastException if the instance is not `BankCategoryData` - */ - public BankCategoryData getBankCategoryData() throws ClassCastException { - return (BankCategoryData) super.getActualInstance(); - } - - /** - * Get the actual instance of `InternalCategoryData`. If the actual instance is not - * `InternalCategoryData`, the ClassCastException will be thrown. - * - * @return The actual instance of `InternalCategoryData` - * @throws ClassCastException if the instance is not `InternalCategoryData` - */ - public InternalCategoryData getInternalCategoryData() throws ClassCastException { - return (InternalCategoryData) super.getActualInstance(); - } - - /** - * Get the actual instance of `IssuedCard`. If the actual instance is not `IssuedCard`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `IssuedCard` - * @throws ClassCastException if the instance is not `IssuedCard` - */ - public IssuedCard getIssuedCard() throws ClassCastException { - return (IssuedCard) super.getActualInstance(); - } - - /** - * Get the actual instance of `PlatformPayment`. If the actual instance is not `PlatformPayment`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PlatformPayment` - * @throws ClassCastException if the instance is not `PlatformPayment` - */ - public PlatformPayment getPlatformPayment() throws ClassCastException { - return (PlatformPayment) super.getActualInstance(); - } - - /** - * Create an instance of TransferCategoryData given an JSON string - * - * @param jsonString JSON string - * @return An instance of TransferCategoryData - * @throws IOException if the JSON string is invalid with respect to TransferCategoryData - */ - public static TransferCategoryData fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, TransferCategoryData.class); - } - - /** - * Convert an instance of TransferCategoryData to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); - } } diff --git a/src/main/java/com/adyen/model/transfers/TransferData.java b/src/main/java/com/adyen/model/transfers/TransferData.java index 5fdf4cfd3..b4146ebb3 100644 --- a/src/main/java/com/adyen/model/transfers/TransferData.java +++ b/src/main/java/com/adyen/model/transfers/TransferData.java @@ -2,29 +2,47 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.Amount; +import com.adyen.model.transfers.BalanceMutation; +import com.adyen.model.transfers.DirectDebitInformation; +import com.adyen.model.transfers.ExecutionDate; +import com.adyen.model.transfers.ExternalReason; +import com.adyen.model.transfers.PaymentInstrument; +import com.adyen.model.transfers.ResourceReference; +import com.adyen.model.transfers.TransactionRulesResult; +import com.adyen.model.transfers.TransferCategoryData; +import com.adyen.model.transfers.TransferDataTracking; +import com.adyen.model.transfers.TransferEvent; +import com.adyen.model.transfers.TransferNotificationCounterParty; +import com.adyen.model.transfers.TransferReview; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** TransferData */ + +/** + * TransferData + */ @JsonPropertyOrder({ TransferData.JSON_PROPERTY_ACCOUNT_HOLDER, TransferData.JSON_PROPERTY_AMOUNT, @@ -56,6 +74,7 @@ TransferData.JSON_PROPERTY_TYPE, TransferData.JSON_PROPERTY_UPDATED_AT }) + public class TransferData { public static final String JSON_PROPERTY_ACCOUNT_HOLDER = "accountHolder"; private ResourceReference accountHolder; @@ -73,16 +92,10 @@ public class TransferData { private List balances; /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a - * transfer between [balance - * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - - * **platformPayment**: funds movements related to payments that are acquired for your users. - - * **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. */ public enum CategoryEnum { + BANK(String.valueOf("bank")), CARD(String.valueOf("card")), @@ -100,7 +113,7 @@ public enum CategoryEnum { private String value; CategoryEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -121,11 +134,7 @@ public static CategoryEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "CategoryEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(CategoryEnum.values())); + LOG.warning("CategoryEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CategoryEnum.values())); return null; } } @@ -152,8 +161,11 @@ public static CategoryEnum fromValue(String value) { public static final String JSON_PROPERTY_DIRECT_DEBIT_INFORMATION = "directDebitInformation"; private DirectDebitInformation directDebitInformation; - /** The direction of the transfer. Possible values: **incoming**, **outgoing**. */ + /** + * The direction of the transfer. Possible values: **incoming**, **outgoing**. + */ public enum DirectionEnum { + INCOMING(String.valueOf("incoming")), OUTGOING(String.valueOf("outgoing")); @@ -163,7 +175,7 @@ public enum DirectionEnum { private String value; DirectionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -184,11 +196,7 @@ public static DirectionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "DirectionEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(DirectionEnum.values())); + LOG.warning("DirectionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(DirectionEnum.values())); return null; } } @@ -214,8 +222,11 @@ public static DirectionEnum fromValue(String value) { public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT = "paymentInstrument"; private PaymentInstrument paymentInstrument; - /** Additional information about the status of the transfer. */ + /** + * Additional information about the status of the transfer. + */ public enum ReasonEnum { + ACCOUNTHIERARCHYNOTACTIVE(String.valueOf("accountHierarchyNotActive")), AMOUNTLIMITEXCEEDED(String.valueOf("amountLimitExceeded")), @@ -224,8 +235,7 @@ public enum ReasonEnum { APPROVED(String.valueOf("approved")), - BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE( - String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), + BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE(String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), COUNTERPARTYACCOUNTBLOCKED(String.valueOf("counterpartyAccountBlocked")), @@ -272,7 +282,7 @@ public enum ReasonEnum { private String value; ReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -293,11 +303,7 @@ public static ReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ReasonEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ReasonEnum.values())); + LOG.warning("ReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ReasonEnum.values())); return null; } } @@ -318,13 +324,10 @@ public static ReasonEnum fromValue(String value) { private Integer sequenceNumber; /** - * The result of the transfer. For example: - **received**: an outgoing transfer request is - * created. - **authorised**: the transfer request is authorized and the funds are reserved. - - * **booked**: the funds are deducted from your user's balance account. - **failed**: the - * transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned - * by the counterparty's bank. + * The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. */ public enum StatusEnum { + APPROVALPENDING(String.valueOf("approvalPending")), ATMWITHDRAWAL(String.valueOf("atmWithdrawal")), @@ -464,7 +467,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -485,11 +488,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -504,10 +503,10 @@ public static StatusEnum fromValue(String value) { private TransactionRulesResult transactionRulesResult; /** - * The type of transfer or transaction. For example, **refund**, **payment**, - * **internalTransfer**, **bankTransfer**. + * The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. */ public enum TypeEnum { + PAYMENT(String.valueOf("payment")), CAPTURE(String.valueOf("capture")), @@ -589,7 +588,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -610,11 +609,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -625,12 +620,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt"; private OffsetDateTime updatedAt; - public TransferData() {} + public TransferData() { + } /** * accountHolder * - * @param accountHolder + * @param accountHolder * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData accountHolder(ResourceReference accountHolder) { @@ -640,8 +636,7 @@ public TransferData accountHolder(ResourceReference accountHolder) { /** * Get accountHolder - * - * @return accountHolder + * @return accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -652,7 +647,7 @@ public ResourceReference getAccountHolder() { /** * accountHolder * - * @param accountHolder + * @param accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -663,7 +658,7 @@ public void setAccountHolder(ResourceReference accountHolder) { /** * amount * - * @param amount + * @param amount * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData amount(Amount amount) { @@ -673,8 +668,7 @@ public TransferData amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -685,7 +679,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -696,7 +690,7 @@ public void setAmount(Amount amount) { /** * balanceAccount * - * @param balanceAccount + * @param balanceAccount * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData balanceAccount(ResourceReference balanceAccount) { @@ -706,8 +700,7 @@ public TransferData balanceAccount(ResourceReference balanceAccount) { /** * Get balanceAccount - * - * @return balanceAccount + * @return balanceAccount */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -718,7 +711,7 @@ public ResourceReference getBalanceAccount() { /** * balanceAccount * - * @param balanceAccount + * @param balanceAccount */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -739,7 +732,6 @@ public TransferData balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. - * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -780,7 +772,6 @@ public TransferData addBalancesItem(BalanceMutation balancesItem) { /** * The list of the latest balance statuses in the transfer. - * * @return balances The list of the latest balance statuses in the transfer. */ @JsonProperty(JSON_PROPERTY_BALANCES) @@ -801,24 +792,9 @@ public void setBalances(List balances) { } /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a - * transfer between [balance - * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - - * **platformPayment**: funds movements related to payments that are acquired for your users. - - * **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. * - * @param category The category of the transfer. Possible values: - **bank**: a transfer involving - * a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a - * transfer between [balance - * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - - * **platformPayment**: funds movements related to payments that are acquired for your users. - * - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * @param category The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData category(CategoryEnum category) { @@ -827,24 +803,8 @@ public TransferData category(CategoryEnum category) { } /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a - * transfer between [balance - * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - - * **platformPayment**: funds movements related to payments that are acquired for your users. - - * **topUp**: an incoming transfer initiated by your user to top up their balance account. - * - * @return category The category of the transfer. Possible values: - **bank**: a transfer - * involving a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a - * transfer between [balance - * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - - * **platformPayment**: funds movements related to payments that are acquired for your users. - * - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * @return category The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -853,24 +813,9 @@ public CategoryEnum getCategory() { } /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a - * transfer between [balance - * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - - * **platformPayment**: funds movements related to payments that are acquired for your users. - - * **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. * - * @param category The category of the transfer. Possible values: - **bank**: a transfer involving - * a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a - * transfer between [balance - * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - - * **platformPayment**: funds movements related to payments that are acquired for your users. - * - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * @param category The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -881,7 +826,7 @@ public void setCategory(CategoryEnum category) { /** * categoryData * - * @param categoryData + * @param categoryData * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData categoryData(TransferCategoryData categoryData) { @@ -891,8 +836,7 @@ public TransferData categoryData(TransferCategoryData categoryData) { /** * Get categoryData - * - * @return categoryData + * @return categoryData */ @JsonProperty(JSON_PROPERTY_CATEGORY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -903,7 +847,7 @@ public TransferCategoryData getCategoryData() { /** * categoryData * - * @param categoryData + * @param categoryData */ @JsonProperty(JSON_PROPERTY_CATEGORY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -914,7 +858,7 @@ public void setCategoryData(TransferCategoryData categoryData) { /** * counterparty * - * @param counterparty + * @param counterparty * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData counterparty(TransferNotificationCounterParty counterparty) { @@ -924,8 +868,7 @@ public TransferData counterparty(TransferNotificationCounterParty counterparty) /** * Get counterparty - * - * @return counterparty + * @return counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -936,7 +879,7 @@ public TransferNotificationCounterParty getCounterparty() { /** * counterparty * - * @param counterparty + * @param counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -945,11 +888,9 @@ public void setCounterparty(TransferNotificationCounterParty counterparty) { } /** - * The date and time when the transfer was created, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. * - * @param createdAt The date and time when the transfer was created, in ISO 8601 extended format. - * For example, **2020-12-18T10:15:30+01:00**. + * @param createdAt The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData createdAt(OffsetDateTime createdAt) { @@ -958,11 +899,8 @@ public TransferData createdAt(OffsetDateTime createdAt) { } /** - * The date and time when the transfer was created, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. - * - * @return createdAt The date and time when the transfer was created, in ISO 8601 extended format. - * For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * @return createdAt The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -971,11 +909,9 @@ public OffsetDateTime getCreatedAt() { } /** - * The date and time when the transfer was created, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. * - * @param createdAt The date and time when the transfer was created, in ISO 8601 extended format. - * For example, **2020-12-18T10:15:30+01:00**. + * @param createdAt The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -984,13 +920,13 @@ public void setCreatedAt(OffsetDateTime createdAt) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. * @return the current {@code TransferData} instance, allowing for method chaining - * @deprecated since Transfers API v3 Use createdAt or updatedAt + * + * @deprecated since Transfers API v3 + * Use createdAt or updatedAt */ @Deprecated // deprecated since Transfers API v3: Use createdAt or updatedAt public TransferData creationDate(OffsetDateTime creationDate) { @@ -999,11 +935,8 @@ public TransferData creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. - * - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. * @deprecated // deprecated since Transfers API v3: Use createdAt or updatedAt */ @Deprecated // deprecated since Transfers API v3: Use createdAt or updatedAt @@ -1014,12 +947,12 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. - * @deprecated since Transfers API v3 Use createdAt or updatedAt + * @deprecated since Transfers API v3 + * Use createdAt or updatedAt */ @Deprecated // deprecated since Transfers API v3: Use createdAt or updatedAt @JsonProperty(JSON_PROPERTY_CREATION_DATE) @@ -1029,17 +962,9 @@ public void setCreationDate(OffsetDateTime creationDate) { } /** - * Your description for the transfer. It is used by most banks as the transfer description. We - * recommend sending a maximum of 140 characters, otherwise the description may be truncated. - * Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported - * characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] - * & $ % # @** **~ = + - _ ' \" ! ?** + * Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** * - * @param description Your description for the transfer. It is used by most banks as the transfer - * description. We recommend sending a maximum of 140 characters, otherwise the description - * may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + - * Space** Supported characters for **regular** and **fast** transfers to a US counterparty: - * **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * @param description Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData description(String description) { @@ -1048,17 +973,8 @@ public TransferData description(String description) { } /** - * Your description for the transfer. It is used by most banks as the transfer description. We - * recommend sending a maximum of 140 characters, otherwise the description may be truncated. - * Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported - * characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] - * & $ % # @** **~ = + - _ ' \" ! ?** - * - * @return description Your description for the transfer. It is used by most banks as the transfer - * description. We recommend sending a maximum of 140 characters, otherwise the description - * may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + - * Space** Supported characters for **regular** and **fast** transfers to a US counterparty: - * **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * @return description Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1067,17 +983,9 @@ public String getDescription() { } /** - * Your description for the transfer. It is used by most banks as the transfer description. We - * recommend sending a maximum of 140 characters, otherwise the description may be truncated. - * Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported - * characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] - * & $ % # @** **~ = + - _ ' \" ! ?** + * Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** * - * @param description Your description for the transfer. It is used by most banks as the transfer - * description. We recommend sending a maximum of 140 characters, otherwise the description - * may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + - * Space** Supported characters for **regular** and **fast** transfers to a US counterparty: - * **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * @param description Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1088,7 +996,7 @@ public void setDescription(String description) { /** * directDebitInformation * - * @param directDebitInformation + * @param directDebitInformation * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData directDebitInformation(DirectDebitInformation directDebitInformation) { @@ -1098,8 +1006,7 @@ public TransferData directDebitInformation(DirectDebitInformation directDebitInf /** * Get directDebitInformation - * - * @return directDebitInformation + * @return directDebitInformation */ @JsonProperty(JSON_PROPERTY_DIRECT_DEBIT_INFORMATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1110,7 +1017,7 @@ public DirectDebitInformation getDirectDebitInformation() { /** * directDebitInformation * - * @param directDebitInformation + * @param directDebitInformation */ @JsonProperty(JSON_PROPERTY_DIRECT_DEBIT_INFORMATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1119,9 +1026,9 @@ public void setDirectDebitInformation(DirectDebitInformation directDebitInformat } /** - * The direction of the transfer. Possible values: **incoming**, **outgoing**. + * The direction of the transfer. Possible values: **incoming**, **outgoing**. * - * @param direction The direction of the transfer. Possible values: **incoming**, **outgoing**. + * @param direction The direction of the transfer. Possible values: **incoming**, **outgoing**. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData direction(DirectionEnum direction) { @@ -1130,9 +1037,8 @@ public TransferData direction(DirectionEnum direction) { } /** - * The direction of the transfer. Possible values: **incoming**, **outgoing**. - * - * @return direction The direction of the transfer. Possible values: **incoming**, **outgoing**. + * The direction of the transfer. Possible values: **incoming**, **outgoing**. + * @return direction The direction of the transfer. Possible values: **incoming**, **outgoing**. */ @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1141,9 +1047,9 @@ public DirectionEnum getDirection() { } /** - * The direction of the transfer. Possible values: **incoming**, **outgoing**. + * The direction of the transfer. Possible values: **incoming**, **outgoing**. * - * @param direction The direction of the transfer. Possible values: **incoming**, **outgoing**. + * @param direction The direction of the transfer. Possible values: **incoming**, **outgoing**. */ @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1152,11 +1058,9 @@ public void setDirection(DirectionEnum direction) { } /** - * The unique identifier of the latest transfer event. Included only when the `category` - * is **issuedCard**. + * The unique identifier of the latest transfer event. Included only when the `category` is **issuedCard**. * - * @param eventId The unique identifier of the latest transfer event. Included only when the - * `category` is **issuedCard**. + * @param eventId The unique identifier of the latest transfer event. Included only when the `category` is **issuedCard**. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData eventId(String eventId) { @@ -1165,11 +1069,8 @@ public TransferData eventId(String eventId) { } /** - * The unique identifier of the latest transfer event. Included only when the `category` - * is **issuedCard**. - * - * @return eventId The unique identifier of the latest transfer event. Included only when the - * `category` is **issuedCard**. + * The unique identifier of the latest transfer event. Included only when the `category` is **issuedCard**. + * @return eventId The unique identifier of the latest transfer event. Included only when the `category` is **issuedCard**. */ @JsonProperty(JSON_PROPERTY_EVENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1178,11 +1079,9 @@ public String getEventId() { } /** - * The unique identifier of the latest transfer event. Included only when the `category` - * is **issuedCard**. + * The unique identifier of the latest transfer event. Included only when the `category` is **issuedCard**. * - * @param eventId The unique identifier of the latest transfer event. Included only when the - * `category` is **issuedCard**. + * @param eventId The unique identifier of the latest transfer event. Included only when the `category` is **issuedCard**. */ @JsonProperty(JSON_PROPERTY_EVENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1211,7 +1110,6 @@ public TransferData addEventsItem(TransferEvent eventsItem) { /** * The list of events leading up to the current status of the transfer. - * * @return events The list of events leading up to the current status of the transfer. */ @JsonProperty(JSON_PROPERTY_EVENTS) @@ -1234,7 +1132,7 @@ public void setEvents(List events) { /** * executionDate * - * @param executionDate + * @param executionDate * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData executionDate(ExecutionDate executionDate) { @@ -1244,8 +1142,7 @@ public TransferData executionDate(ExecutionDate executionDate) { /** * Get executionDate - * - * @return executionDate + * @return executionDate */ @JsonProperty(JSON_PROPERTY_EXECUTION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1256,7 +1153,7 @@ public ExecutionDate getExecutionDate() { /** * executionDate * - * @param executionDate + * @param executionDate */ @JsonProperty(JSON_PROPERTY_EXECUTION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1267,7 +1164,7 @@ public void setExecutionDate(ExecutionDate executionDate) { /** * externalReason * - * @param externalReason + * @param externalReason * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData externalReason(ExternalReason externalReason) { @@ -1277,8 +1174,7 @@ public TransferData externalReason(ExternalReason externalReason) { /** * Get externalReason - * - * @return externalReason + * @return externalReason */ @JsonProperty(JSON_PROPERTY_EXTERNAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1289,7 +1185,7 @@ public ExternalReason getExternalReason() { /** * externalReason * - * @param externalReason + * @param externalReason */ @JsonProperty(JSON_PROPERTY_EXTERNAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1310,7 +1206,6 @@ public TransferData id(String id) { /** * The ID of the resource. - * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -1333,7 +1228,7 @@ public void setId(String id) { /** * paymentInstrument * - * @param paymentInstrument + * @param paymentInstrument * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData paymentInstrument(PaymentInstrument paymentInstrument) { @@ -1343,8 +1238,7 @@ public TransferData paymentInstrument(PaymentInstrument paymentInstrument) { /** * Get paymentInstrument - * - * @return paymentInstrument + * @return paymentInstrument */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1355,7 +1249,7 @@ public PaymentInstrument getPaymentInstrument() { /** * paymentInstrument * - * @param paymentInstrument + * @param paymentInstrument */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1376,7 +1270,6 @@ public TransferData reason(ReasonEnum reason) { /** * Additional information about the status of the transfer. - * * @return reason Additional information about the status of the transfer. */ @JsonProperty(JSON_PROPERTY_REASON) @@ -1397,11 +1290,9 @@ public void setReason(ReasonEnum reason) { } /** - * Your reference for the transfer, used internally within your platform. If you don't provide - * this in the request, Adyen generates a unique reference. + * Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. * - * @param reference Your reference for the transfer, used internally within your platform. If you - * don't provide this in the request, Adyen generates a unique reference. + * @param reference Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData reference(String reference) { @@ -1410,11 +1301,8 @@ public TransferData reference(String reference) { } /** - * Your reference for the transfer, used internally within your platform. If you don't provide - * this in the request, Adyen generates a unique reference. - * - * @return reference Your reference for the transfer, used internally within your platform. If you - * don't provide this in the request, Adyen generates a unique reference. + * Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. + * @return reference Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1423,11 +1311,9 @@ public String getReference() { } /** - * Your reference for the transfer, used internally within your platform. If you don't provide - * this in the request, Adyen generates a unique reference. + * Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. * - * @param reference Your reference for the transfer, used internally within your platform. If you - * don't provide this in the request, Adyen generates a unique reference. + * @param reference Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1436,17 +1322,9 @@ public void setReference(String reference) { } /** - * A reference that is sent to the recipient. This reference is also sent in all webhooks related - * to the transfer, so you can use it to track statuses for both the source and recipient of - * funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the - * `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring - * to an IBAN, 15 characters for others. + * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. * - * @param referenceForBeneficiary A reference that is sent to the recipient. This reference is - * also sent in all webhooks related to the transfer, so you can use it to track statuses for - * both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The - * maximum length depends on the `category`. - **internal**: 80 characters - - * **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * @param referenceForBeneficiary A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData referenceForBeneficiary(String referenceForBeneficiary) { @@ -1455,17 +1333,8 @@ public TransferData referenceForBeneficiary(String referenceForBeneficiary) { } /** - * A reference that is sent to the recipient. This reference is also sent in all webhooks related - * to the transfer, so you can use it to track statuses for both the source and recipient of - * funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the - * `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring - * to an IBAN, 15 characters for others. - * - * @return referenceForBeneficiary A reference that is sent to the recipient. This reference is - * also sent in all webhooks related to the transfer, so you can use it to track statuses for - * both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The - * maximum length depends on the `category`. - **internal**: 80 characters - - * **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * @return referenceForBeneficiary A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1474,17 +1343,9 @@ public String getReferenceForBeneficiary() { } /** - * A reference that is sent to the recipient. This reference is also sent in all webhooks related - * to the transfer, so you can use it to track statuses for both the source and recipient of - * funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the - * `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring - * to an IBAN, 15 characters for others. + * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. * - * @param referenceForBeneficiary A reference that is sent to the recipient. This reference is - * also sent in all webhooks related to the transfer, so you can use it to track statuses for - * both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The - * maximum length depends on the `category`. - **internal**: 80 characters - - * **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * @param referenceForBeneficiary A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1495,7 +1356,7 @@ public void setReferenceForBeneficiary(String referenceForBeneficiary) { /** * review * - * @param review + * @param review * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData review(TransferReview review) { @@ -1505,8 +1366,7 @@ public TransferData review(TransferReview review) { /** * Get review - * - * @return review + * @return review */ @JsonProperty(JSON_PROPERTY_REVIEW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1517,7 +1377,7 @@ public TransferReview getReview() { /** * review * - * @param review + * @param review */ @JsonProperty(JSON_PROPERTY_REVIEW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1526,13 +1386,9 @@ public void setReview(TransferReview review) { } /** - * The sequence number of the transfer webhook. The numbers start from 1 and increase with each - * new webhook for a specific transfer. The sequence number can help you restore the correct - * sequence of events even if they arrive out of order. + * The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. * - * @param sequenceNumber The sequence number of the transfer webhook. The numbers start from 1 and - * increase with each new webhook for a specific transfer. The sequence number can help you - * restore the correct sequence of events even if they arrive out of order. + * @param sequenceNumber The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData sequenceNumber(Integer sequenceNumber) { @@ -1541,13 +1397,8 @@ public TransferData sequenceNumber(Integer sequenceNumber) { } /** - * The sequence number of the transfer webhook. The numbers start from 1 and increase with each - * new webhook for a specific transfer. The sequence number can help you restore the correct - * sequence of events even if they arrive out of order. - * - * @return sequenceNumber The sequence number of the transfer webhook. The numbers start from 1 - * and increase with each new webhook for a specific transfer. The sequence number can help - * you restore the correct sequence of events even if they arrive out of order. + * The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. + * @return sequenceNumber The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. */ @JsonProperty(JSON_PROPERTY_SEQUENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1556,13 +1407,9 @@ public Integer getSequenceNumber() { } /** - * The sequence number of the transfer webhook. The numbers start from 1 and increase with each - * new webhook for a specific transfer. The sequence number can help you restore the correct - * sequence of events even if they arrive out of order. + * The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. * - * @param sequenceNumber The sequence number of the transfer webhook. The numbers start from 1 and - * increase with each new webhook for a specific transfer. The sequence number can help you - * restore the correct sequence of events even if they arrive out of order. + * @param sequenceNumber The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. */ @JsonProperty(JSON_PROPERTY_SEQUENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1571,17 +1418,9 @@ public void setSequenceNumber(Integer sequenceNumber) { } /** - * The result of the transfer. For example: - **received**: an outgoing transfer request is - * created. - **authorised**: the transfer request is authorized and the funds are reserved. - - * **booked**: the funds are deducted from your user's balance account. - **failed**: the - * transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned - * by the counterparty's bank. + * The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. * - * @param status The result of the transfer. For example: - **received**: an outgoing transfer - * request is created. - **authorised**: the transfer request is authorized and the funds are - * reserved. - **booked**: the funds are deducted from your user's balance account. - - * **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the - * transfer is returned by the counterparty's bank. + * @param status The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData status(StatusEnum status) { @@ -1590,17 +1429,8 @@ public TransferData status(StatusEnum status) { } /** - * The result of the transfer. For example: - **received**: an outgoing transfer request is - * created. - **authorised**: the transfer request is authorized and the funds are reserved. - - * **booked**: the funds are deducted from your user's balance account. - **failed**: the - * transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned - * by the counterparty's bank. - * - * @return status The result of the transfer. For example: - **received**: an outgoing transfer - * request is created. - **authorised**: the transfer request is authorized and the funds are - * reserved. - **booked**: the funds are deducted from your user's balance account. - - * **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the - * transfer is returned by the counterparty's bank. + * The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. + * @return status The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1609,17 +1439,9 @@ public StatusEnum getStatus() { } /** - * The result of the transfer. For example: - **received**: an outgoing transfer request is - * created. - **authorised**: the transfer request is authorized and the funds are reserved. - - * **booked**: the funds are deducted from your user's balance account. - **failed**: the - * transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned - * by the counterparty's bank. + * The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. * - * @param status The result of the transfer. For example: - **received**: an outgoing transfer - * request is created. - **authorised**: the transfer request is authorized and the funds are - * reserved. - **booked**: the funds are deducted from your user's balance account. - - * **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the - * transfer is returned by the counterparty's bank. + * @param status The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1630,7 +1452,7 @@ public void setStatus(StatusEnum status) { /** * tracking * - * @param tracking + * @param tracking * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData tracking(TransferDataTracking tracking) { @@ -1640,8 +1462,7 @@ public TransferData tracking(TransferDataTracking tracking) { /** * Get tracking - * - * @return tracking + * @return tracking */ @JsonProperty(JSON_PROPERTY_TRACKING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1652,7 +1473,7 @@ public TransferDataTracking getTracking() { /** * tracking * - * @param tracking + * @param tracking */ @JsonProperty(JSON_PROPERTY_TRACKING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1663,7 +1484,7 @@ public void setTracking(TransferDataTracking tracking) { /** * transactionRulesResult * - * @param transactionRulesResult + * @param transactionRulesResult * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData transactionRulesResult(TransactionRulesResult transactionRulesResult) { @@ -1673,8 +1494,7 @@ public TransferData transactionRulesResult(TransactionRulesResult transactionRul /** * Get transactionRulesResult - * - * @return transactionRulesResult + * @return transactionRulesResult */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULES_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1685,7 +1505,7 @@ public TransactionRulesResult getTransactionRulesResult() { /** * transactionRulesResult * - * @param transactionRulesResult + * @param transactionRulesResult */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULES_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1694,11 +1514,9 @@ public void setTransactionRulesResult(TransactionRulesResult transactionRulesRes } /** - * The type of transfer or transaction. For example, **refund**, **payment**, - * **internalTransfer**, **bankTransfer**. + * The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. * - * @param type The type of transfer or transaction. For example, **refund**, **payment**, - * **internalTransfer**, **bankTransfer**. + * @param type The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData type(TypeEnum type) { @@ -1707,11 +1525,8 @@ public TransferData type(TypeEnum type) { } /** - * The type of transfer or transaction. For example, **refund**, **payment**, - * **internalTransfer**, **bankTransfer**. - * - * @return type The type of transfer or transaction. For example, **refund**, **payment**, - * **internalTransfer**, **bankTransfer**. + * The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. + * @return type The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1720,11 +1535,9 @@ public TypeEnum getType() { } /** - * The type of transfer or transaction. For example, **refund**, **payment**, - * **internalTransfer**, **bankTransfer**. + * The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. * - * @param type The type of transfer or transaction. For example, **refund**, **payment**, - * **internalTransfer**, **bankTransfer**. + * @param type The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1733,11 +1546,9 @@ public void setType(TypeEnum type) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. * - * @param updatedAt The date and time when the event was triggered, in ISO 8601 extended format. - * For example, **2020-12-18T10:15:30+01:00**. + * @param updatedAt The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData updatedAt(OffsetDateTime updatedAt) { @@ -1746,11 +1557,8 @@ public TransferData updatedAt(OffsetDateTime updatedAt) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. - * - * @return updatedAt The date and time when the event was triggered, in ISO 8601 extended format. - * For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * @return updatedAt The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1759,11 +1567,9 @@ public OffsetDateTime getUpdatedAt() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. * - * @param updatedAt The date and time when the event was triggered, in ISO 8601 extended format. - * For example, **2020-12-18T10:15:30+01:00**. + * @param updatedAt The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1771,7 +1577,9 @@ public void setUpdatedAt(OffsetDateTime updatedAt) { this.updatedAt = updatedAt; } - /** Return true if this TransferData object is equal to o. */ + /** + * Return true if this TransferData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -1781,69 +1589,40 @@ public boolean equals(Object o) { return false; } TransferData transferData = (TransferData) o; - return Objects.equals(this.accountHolder, transferData.accountHolder) - && Objects.equals(this.amount, transferData.amount) - && Objects.equals(this.balanceAccount, transferData.balanceAccount) - && Objects.equals(this.balancePlatform, transferData.balancePlatform) - && Objects.equals(this.balances, transferData.balances) - && Objects.equals(this.category, transferData.category) - && Objects.equals(this.categoryData, transferData.categoryData) - && Objects.equals(this.counterparty, transferData.counterparty) - && Objects.equals(this.createdAt, transferData.createdAt) - && Objects.equals(this.creationDate, transferData.creationDate) - && Objects.equals(this.description, transferData.description) - && Objects.equals(this.directDebitInformation, transferData.directDebitInformation) - && Objects.equals(this.direction, transferData.direction) - && Objects.equals(this.eventId, transferData.eventId) - && Objects.equals(this.events, transferData.events) - && Objects.equals(this.executionDate, transferData.executionDate) - && Objects.equals(this.externalReason, transferData.externalReason) - && Objects.equals(this.id, transferData.id) - && Objects.equals(this.paymentInstrument, transferData.paymentInstrument) - && Objects.equals(this.reason, transferData.reason) - && Objects.equals(this.reference, transferData.reference) - && Objects.equals(this.referenceForBeneficiary, transferData.referenceForBeneficiary) - && Objects.equals(this.review, transferData.review) - && Objects.equals(this.sequenceNumber, transferData.sequenceNumber) - && Objects.equals(this.status, transferData.status) - && Objects.equals(this.tracking, transferData.tracking) - && Objects.equals(this.transactionRulesResult, transferData.transactionRulesResult) - && Objects.equals(this.type, transferData.type) - && Objects.equals(this.updatedAt, transferData.updatedAt); + return Objects.equals(this.accountHolder, transferData.accountHolder) && + Objects.equals(this.amount, transferData.amount) && + Objects.equals(this.balanceAccount, transferData.balanceAccount) && + Objects.equals(this.balancePlatform, transferData.balancePlatform) && + Objects.equals(this.balances, transferData.balances) && + Objects.equals(this.category, transferData.category) && + Objects.equals(this.categoryData, transferData.categoryData) && + Objects.equals(this.counterparty, transferData.counterparty) && + Objects.equals(this.createdAt, transferData.createdAt) && + Objects.equals(this.creationDate, transferData.creationDate) && + Objects.equals(this.description, transferData.description) && + Objects.equals(this.directDebitInformation, transferData.directDebitInformation) && + Objects.equals(this.direction, transferData.direction) && + Objects.equals(this.eventId, transferData.eventId) && + Objects.equals(this.events, transferData.events) && + Objects.equals(this.executionDate, transferData.executionDate) && + Objects.equals(this.externalReason, transferData.externalReason) && + Objects.equals(this.id, transferData.id) && + Objects.equals(this.paymentInstrument, transferData.paymentInstrument) && + Objects.equals(this.reason, transferData.reason) && + Objects.equals(this.reference, transferData.reference) && + Objects.equals(this.referenceForBeneficiary, transferData.referenceForBeneficiary) && + Objects.equals(this.review, transferData.review) && + Objects.equals(this.sequenceNumber, transferData.sequenceNumber) && + Objects.equals(this.status, transferData.status) && + Objects.equals(this.tracking, transferData.tracking) && + Objects.equals(this.transactionRulesResult, transferData.transactionRulesResult) && + Objects.equals(this.type, transferData.type) && + Objects.equals(this.updatedAt, transferData.updatedAt); } @Override public int hashCode() { - return Objects.hash( - accountHolder, - amount, - balanceAccount, - balancePlatform, - balances, - category, - categoryData, - counterparty, - createdAt, - creationDate, - description, - directDebitInformation, - direction, - eventId, - events, - executionDate, - externalReason, - id, - paymentInstrument, - reason, - reference, - referenceForBeneficiary, - review, - sequenceNumber, - status, - tracking, - transactionRulesResult, - type, - updatedAt); + return Objects.hash(accountHolder, amount, balanceAccount, balancePlatform, balances, category, categoryData, counterparty, createdAt, creationDate, description, directDebitInformation, direction, eventId, events, executionDate, externalReason, id, paymentInstrument, reason, reference, referenceForBeneficiary, review, sequenceNumber, status, tracking, transactionRulesResult, type, updatedAt); } @Override @@ -1861,9 +1640,7 @@ public String toString() { sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" directDebitInformation: ") - .append(toIndentedString(directDebitInformation)) - .append("\n"); + sb.append(" directDebitInformation: ").append(toIndentedString(directDebitInformation)).append("\n"); sb.append(" direction: ").append(toIndentedString(direction)).append("\n"); sb.append(" eventId: ").append(toIndentedString(eventId)).append("\n"); sb.append(" events: ").append(toIndentedString(events)).append("\n"); @@ -1873,16 +1650,12 @@ public String toString() { sb.append(" paymentInstrument: ").append(toIndentedString(paymentInstrument)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); - sb.append(" referenceForBeneficiary: ") - .append(toIndentedString(referenceForBeneficiary)) - .append("\n"); + sb.append(" referenceForBeneficiary: ").append(toIndentedString(referenceForBeneficiary)).append("\n"); sb.append(" review: ").append(toIndentedString(review)).append("\n"); sb.append(" sequenceNumber: ").append(toIndentedString(sequenceNumber)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" tracking: ").append(toIndentedString(tracking)).append("\n"); - sb.append(" transactionRulesResult: ") - .append(toIndentedString(transactionRulesResult)) - .append("\n"); + sb.append(" transactionRulesResult: ").append(toIndentedString(transactionRulesResult)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); sb.append("}"); @@ -1890,7 +1663,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1899,7 +1673,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransferData given an JSON string * * @param jsonString JSON string @@ -1909,12 +1683,11 @@ private String toIndentedString(Object o) { public static TransferData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferData.class); } - - /** - * Convert an instance of TransferData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransferData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/TransferDataTracking.java b/src/main/java/com/adyen/model/transfers/TransferDataTracking.java index 1feb2c1d1..e19ae2985 100644 --- a/src/main/java/com/adyen/model/transfers/TransferDataTracking.java +++ b/src/main/java/com/adyen/model/transfers/TransferDataTracking.java @@ -2,19 +2,47 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.ConfirmationTrackingData; +import com.adyen.model.transfers.EstimationTrackingData; +import com.adyen.model.transfers.InternalReviewTrackingData; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + +import com.fasterxml.jackson.core.type.TypeReference; + +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.Response; +import java.io.IOException; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; + import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; +import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -24,278 +52,261 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import jakarta.ws.rs.core.GenericType; -import java.io.IOException; -import java.util.*; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashSet; -import java.util.logging.Level; -import java.util.logging.Logger; + @JsonDeserialize(using = TransferDataTracking.TransferDataTrackingDeserializer.class) @JsonSerialize(using = TransferDataTracking.TransferDataTrackingSerializer.class) public class TransferDataTracking extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(TransferDataTracking.class.getName()); + private static final Logger log = Logger.getLogger(TransferDataTracking.class.getName()); + + public static class TransferDataTrackingSerializer extends StdSerializer { + public TransferDataTrackingSerializer(Class t) { + super(t); + } + + public TransferDataTrackingSerializer() { + this(null); + } + + @Override + public void serialize(TransferDataTracking value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); + } + } + + public static class TransferDataTrackingDeserializer extends StdDeserializer { + public TransferDataTrackingDeserializer() { + this(TransferDataTracking.class); + } + + public TransferDataTrackingDeserializer(Class vc) { + super(vc); + } + + @Override + public TransferDataTracking deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize ConfirmationTrackingData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(ConfirmationTrackingData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(ConfirmationTrackingData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'ConfirmationTrackingData'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'ConfirmationTrackingData'", e); + } + + // deserialize EstimationTrackingData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(EstimationTrackingData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(EstimationTrackingData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'EstimationTrackingData'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'EstimationTrackingData'", e); + } + + // deserialize InternalReviewTrackingData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(InternalReviewTrackingData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(InternalReviewTrackingData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'InternalReviewTrackingData'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'InternalReviewTrackingData'", e); + } + + if (match == 1) { + TransferDataTracking ret = new TransferDataTracking(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException(String.format("Failed deserialization for TransferDataTracking: %d classes match result, expected 1", match)); + } - public static class TransferDataTrackingSerializer extends StdSerializer { - public TransferDataTrackingSerializer(Class t) { - super(t); + /** + * Handle deserialization of the 'null' value. + */ + @Override + public TransferDataTracking getNullValue(DeserializationContext ctxt) throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "TransferDataTracking cannot be null"); + } } - public TransferDataTrackingSerializer() { - this(null); + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public TransferDataTracking() { + super("oneOf", Boolean.FALSE); } - @Override - public void serialize( - TransferDataTracking value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + public TransferDataTracking(ConfirmationTrackingData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } - } - public static class TransferDataTrackingDeserializer - extends StdDeserializer { - public TransferDataTrackingDeserializer() { - this(TransferDataTracking.class); + public TransferDataTracking(EstimationTrackingData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } - public TransferDataTrackingDeserializer(Class vc) { - super(vc); + public TransferDataTracking(InternalReviewTrackingData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } + static { + schemas.put("ConfirmationTrackingData", new GenericType() { + }); + schemas.put("EstimationTrackingData", new GenericType() { + }); + schemas.put("InternalReviewTrackingData", new GenericType() { + }); + JSON.registerDescendants(TransferDataTracking.class, Collections.unmodifiableMap(schemas)); + } + + @Override + public Map> getSchemas() { + return TransferDataTracking.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check + * the instance parameter is valid against the oneOf child schemas: + * ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData + * + * It could be an instance of the 'oneOf' schemas. + * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). + */ @Override - public TransferDataTracking deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize ConfirmationTrackingData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(ConfirmationTrackingData.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(ConfirmationTrackingData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'ConfirmationTrackingData'"); - } + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(ConfirmationTrackingData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'ConfirmationTrackingData'", e); - } - - // deserialize EstimationTrackingData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(EstimationTrackingData.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(EstimationTrackingData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'EstimationTrackingData'"); - } + + if (JSON.isInstanceOf(EstimationTrackingData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'EstimationTrackingData'", e); - } - - // deserialize InternalReviewTrackingData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(InternalReviewTrackingData.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(InternalReviewTrackingData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'InternalReviewTrackingData'"); - } + + if (JSON.isInstanceOf(InternalReviewTrackingData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'InternalReviewTrackingData'", e); - } - - if (match == 1) { - TransferDataTracking ret = new TransferDataTracking(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for TransferDataTracking: %d classes match result, expected 1", - match)); + + throw new RuntimeException("Invalid instance type. Must be ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData"); } - /** Handle deserialization of the 'null' value. */ + /** + * Get the actual instance, which can be the following: + * ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData + * + * @return The actual instance (ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData) + */ @Override - public TransferDataTracking getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "TransferDataTracking cannot be null"); + public Object getActualInstance() { + return super.getActualInstance(); } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public TransferDataTracking() { - super("oneOf", Boolean.FALSE); - } - - public TransferDataTracking(ConfirmationTrackingData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferDataTracking(EstimationTrackingData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferDataTracking(InternalReviewTrackingData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("ConfirmationTrackingData", new GenericType() {}); - schemas.put("EstimationTrackingData", new GenericType() {}); - schemas.put("InternalReviewTrackingData", new GenericType() {}); - JSON.registerDescendants(TransferDataTracking.class, Collections.unmodifiableMap(schemas)); - } - - @Override - public Map> getSchemas() { - return TransferDataTracking.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: ConfirmationTrackingData, EstimationTrackingData, - * InternalReviewTrackingData - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a - * composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(ConfirmationTrackingData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + + /** + * Get the actual instance of `ConfirmationTrackingData`. If the actual instance is not `ConfirmationTrackingData`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `ConfirmationTrackingData` + * @throws ClassCastException if the instance is not `ConfirmationTrackingData` + */ + public ConfirmationTrackingData getConfirmationTrackingData() throws ClassCastException { + return (ConfirmationTrackingData)super.getActualInstance(); + } + + /** + * Get the actual instance of `EstimationTrackingData`. If the actual instance is not `EstimationTrackingData`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `EstimationTrackingData` + * @throws ClassCastException if the instance is not `EstimationTrackingData` + */ + public EstimationTrackingData getEstimationTrackingData() throws ClassCastException { + return (EstimationTrackingData)super.getActualInstance(); } - if (JSON.isInstanceOf(EstimationTrackingData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `InternalReviewTrackingData`. If the actual instance is not `InternalReviewTrackingData`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `InternalReviewTrackingData` + * @throws ClassCastException if the instance is not `InternalReviewTrackingData` + */ + public InternalReviewTrackingData getInternalReviewTrackingData() throws ClassCastException { + return (InternalReviewTrackingData)super.getActualInstance(); + } + + + /** + * Create an instance of TransferDataTracking given an JSON string + * + * @param jsonString JSON string + * @return An instance of TransferDataTracking + * @throws IOException if the JSON string is invalid with respect to TransferDataTracking + */ + public static TransferDataTracking fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, TransferDataTracking.class); } - if (JSON.isInstanceOf(InternalReviewTrackingData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Convert an instance of TransferDataTracking to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); } - throw new RuntimeException( - "Invalid instance type. Must be ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData"); - } - - /** - * Get the actual instance, which can be the following: ConfirmationTrackingData, - * EstimationTrackingData, InternalReviewTrackingData - * - * @return The actual instance (ConfirmationTrackingData, EstimationTrackingData, - * InternalReviewTrackingData) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `ConfirmationTrackingData`. If the actual instance is not - * `ConfirmationTrackingData`, the ClassCastException will be thrown. - * - * @return The actual instance of `ConfirmationTrackingData` - * @throws ClassCastException if the instance is not `ConfirmationTrackingData` - */ - public ConfirmationTrackingData getConfirmationTrackingData() throws ClassCastException { - return (ConfirmationTrackingData) super.getActualInstance(); - } - - /** - * Get the actual instance of `EstimationTrackingData`. If the actual instance is not - * `EstimationTrackingData`, the ClassCastException will be thrown. - * - * @return The actual instance of `EstimationTrackingData` - * @throws ClassCastException if the instance is not `EstimationTrackingData` - */ - public EstimationTrackingData getEstimationTrackingData() throws ClassCastException { - return (EstimationTrackingData) super.getActualInstance(); - } - - /** - * Get the actual instance of `InternalReviewTrackingData`. If the actual instance is not - * `InternalReviewTrackingData`, the ClassCastException will be thrown. - * - * @return The actual instance of `InternalReviewTrackingData` - * @throws ClassCastException if the instance is not `InternalReviewTrackingData` - */ - public InternalReviewTrackingData getInternalReviewTrackingData() throws ClassCastException { - return (InternalReviewTrackingData) super.getActualInstance(); - } - - /** - * Create an instance of TransferDataTracking given an JSON string - * - * @param jsonString JSON string - * @return An instance of TransferDataTracking - * @throws IOException if the JSON string is invalid with respect to TransferDataTracking - */ - public static TransferDataTracking fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, TransferDataTracking.class); - } - - /** - * Convert an instance of TransferDataTracking to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); - } } diff --git a/src/main/java/com/adyen/model/transfers/TransferEvent.java b/src/main/java/com/adyen/model/transfers/TransferEvent.java index cfba03bb6..0b6839bbe 100644 --- a/src/main/java/com/adyen/model/transfers/TransferEvent.java +++ b/src/main/java/com/adyen/model/transfers/TransferEvent.java @@ -2,29 +2,41 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.Amount; +import com.adyen.model.transfers.AmountAdjustment; +import com.adyen.model.transfers.BalanceMutation; +import com.adyen.model.transfers.ExternalReason; +import com.adyen.model.transfers.Modification; +import com.adyen.model.transfers.TransferEventEventsDataInner; +import com.adyen.model.transfers.TransferEventTrackingData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** TransferEvent */ +/** + * TransferEvent + */ @JsonPropertyOrder({ TransferEvent.JSON_PROPERTY_AMOUNT, TransferEvent.JSON_PROPERTY_AMOUNT_ADJUSTMENTS, @@ -45,6 +57,7 @@ TransferEvent.JSON_PROPERTY_UPDATE_DATE, TransferEvent.JSON_PROPERTY_VALUE_DATE }) + public class TransferEvent { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -79,8 +92,11 @@ public class TransferEvent { public static final String JSON_PROPERTY_ORIGINAL_AMOUNT = "originalAmount"; private Amount originalAmount; - /** The reason for the transfer status. */ + /** + * The reason for the transfer status. + */ public enum ReasonEnum { + ACCOUNTHIERARCHYNOTACTIVE(String.valueOf("accountHierarchyNotActive")), AMOUNTLIMITEXCEEDED(String.valueOf("amountLimitExceeded")), @@ -89,8 +105,7 @@ public enum ReasonEnum { APPROVED(String.valueOf("approved")), - BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE( - String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), + BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE(String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), COUNTERPARTYACCOUNTBLOCKED(String.valueOf("counterpartyAccountBlocked")), @@ -137,7 +152,7 @@ public enum ReasonEnum { private String value; ReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -158,11 +173,7 @@ public static ReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ReasonEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ReasonEnum.values())); + LOG.warning("ReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ReasonEnum.values())); return null; } } @@ -170,8 +181,11 @@ public static ReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_REASON = "reason"; private ReasonEnum reason; - /** The status of the transfer event. */ + /** + * The status of the transfer event. + */ public enum StatusEnum { + APPROVALPENDING(String.valueOf("approvalPending")), ATMWITHDRAWAL(String.valueOf("atmWithdrawal")), @@ -311,7 +325,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -332,11 +346,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -350,8 +360,11 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANSACTION_ID = "transactionId"; private String transactionId; - /** The type of the transfer event. Possible values: **accounting**, **tracking**. */ + /** + * The type of the transfer event. Possible values: **accounting**, **tracking**. + */ public enum TypeEnum { + ACCOUNTING(String.valueOf("accounting")), TRACKING(String.valueOf("tracking")); @@ -361,7 +374,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -382,11 +395,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -400,12 +409,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUE_DATE = "valueDate"; private OffsetDateTime valueDate; - public TransferEvent() {} + public TransferEvent() { + } /** * amount * - * @param amount + * @param amount * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent amount(Amount amount) { @@ -415,8 +425,7 @@ public TransferEvent amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -427,7 +436,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -436,11 +445,9 @@ public void setAmount(Amount amount) { } /** - * The amount adjustments in this transfer. Only applicable for - * [issuing](https://docs.adyen.com/issuing/) integrations. + * The amount adjustments in this transfer. Only applicable for [issuing](https://docs.adyen.com/issuing/) integrations. * - * @param amountAdjustments The amount adjustments in this transfer. Only applicable for - * [issuing](https://docs.adyen.com/issuing/) integrations. + * @param amountAdjustments The amount adjustments in this transfer. Only applicable for [issuing](https://docs.adyen.com/issuing/) integrations. * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent amountAdjustments(List amountAdjustments) { @@ -457,11 +464,8 @@ public TransferEvent addAmountAdjustmentsItem(AmountAdjustment amountAdjustments } /** - * The amount adjustments in this transfer. Only applicable for - * [issuing](https://docs.adyen.com/issuing/) integrations. - * - * @return amountAdjustments The amount adjustments in this transfer. Only applicable for - * [issuing](https://docs.adyen.com/issuing/) integrations. + * The amount adjustments in this transfer. Only applicable for [issuing](https://docs.adyen.com/issuing/) integrations. + * @return amountAdjustments The amount adjustments in this transfer. Only applicable for [issuing](https://docs.adyen.com/issuing/) integrations. */ @JsonProperty(JSON_PROPERTY_AMOUNT_ADJUSTMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -470,11 +474,9 @@ public List getAmountAdjustments() { } /** - * The amount adjustments in this transfer. Only applicable for - * [issuing](https://docs.adyen.com/issuing/) integrations. + * The amount adjustments in this transfer. Only applicable for [issuing](https://docs.adyen.com/issuing/) integrations. * - * @param amountAdjustments The amount adjustments in this transfer. Only applicable for - * [issuing](https://docs.adyen.com/issuing/) integrations. + * @param amountAdjustments The amount adjustments in this transfer. Only applicable for [issuing](https://docs.adyen.com/issuing/) integrations. */ @JsonProperty(JSON_PROPERTY_AMOUNT_ADJUSTMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -495,9 +497,7 @@ public TransferEvent arn(String arn) { /** * Scheme unique arn identifier useful for tracing captures, chargebacks, refunds, etc. - * - * @return arn Scheme unique arn identifier useful for tracing captures, chargebacks, refunds, - * etc. + * @return arn Scheme unique arn identifier useful for tracing captures, chargebacks, refunds, etc. */ @JsonProperty(JSON_PROPERTY_ARN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -529,7 +529,6 @@ public TransferEvent bookingDate(OffsetDateTime bookingDate) { /** * The date when the transfer request was sent. - * * @return bookingDate The date when the transfer request was sent. */ @JsonProperty(JSON_PROPERTY_BOOKING_DATE) @@ -552,8 +551,7 @@ public void setBookingDate(OffsetDateTime bookingDate) { /** * The estimated time when the beneficiary should have access to the funds. * - * @param estimatedArrivalTime The estimated time when the beneficiary should have access to the - * funds. + * @param estimatedArrivalTime The estimated time when the beneficiary should have access to the funds. * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent estimatedArrivalTime(OffsetDateTime estimatedArrivalTime) { @@ -563,9 +561,7 @@ public TransferEvent estimatedArrivalTime(OffsetDateTime estimatedArrivalTime) { /** * The estimated time when the beneficiary should have access to the funds. - * - * @return estimatedArrivalTime The estimated time when the beneficiary should have access to the - * funds. + * @return estimatedArrivalTime The estimated time when the beneficiary should have access to the funds. */ @JsonProperty(JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -576,8 +572,7 @@ public OffsetDateTime getEstimatedArrivalTime() { /** * The estimated time when the beneficiary should have access to the funds. * - * @param estimatedArrivalTime The estimated time when the beneficiary should have access to the - * funds. + * @param estimatedArrivalTime The estimated time when the beneficiary should have access to the funds. */ @JsonProperty(JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -606,7 +601,6 @@ public TransferEvent addEventsDataItem(TransferEventEventsDataInner eventsDataIt /** * A list of event data. - * * @return eventsData A list of event data. */ @JsonProperty(JSON_PROPERTY_EVENTS_DATA) @@ -629,7 +623,7 @@ public void setEventsData(List eventsData) { /** * externalReason * - * @param externalReason + * @param externalReason * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent externalReason(ExternalReason externalReason) { @@ -639,8 +633,7 @@ public TransferEvent externalReason(ExternalReason externalReason) { /** * Get externalReason - * - * @return externalReason + * @return externalReason */ @JsonProperty(JSON_PROPERTY_EXTERNAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -651,7 +644,7 @@ public ExternalReason getExternalReason() { /** * externalReason * - * @param externalReason + * @param externalReason */ @JsonProperty(JSON_PROPERTY_EXTERNAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -672,7 +665,6 @@ public TransferEvent id(String id) { /** * The unique identifier of the transfer event. - * * @return id The unique identifier of the transfer event. */ @JsonProperty(JSON_PROPERTY_ID) @@ -695,7 +687,7 @@ public void setId(String id) { /** * modification * - * @param modification + * @param modification * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent modification(Modification modification) { @@ -705,8 +697,7 @@ public TransferEvent modification(Modification modification) { /** * Get modification - * - * @return modification + * @return modification */ @JsonProperty(JSON_PROPERTY_MODIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -717,7 +708,7 @@ public Modification getModification() { /** * modification * - * @param modification + * @param modification */ @JsonProperty(JSON_PROPERTY_MODIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -746,7 +737,6 @@ public TransferEvent addMutationsItem(BalanceMutation mutationsItem) { /** * The list of balance mutations per event. - * * @return mutations The list of balance mutations per event. */ @JsonProperty(JSON_PROPERTY_MUTATIONS) @@ -769,7 +759,7 @@ public void setMutations(List mutations) { /** * originalAmount * - * @param originalAmount + * @param originalAmount * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent originalAmount(Amount originalAmount) { @@ -779,8 +769,7 @@ public TransferEvent originalAmount(Amount originalAmount) { /** * Get originalAmount - * - * @return originalAmount + * @return originalAmount */ @JsonProperty(JSON_PROPERTY_ORIGINAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -791,7 +780,7 @@ public Amount getOriginalAmount() { /** * originalAmount * - * @param originalAmount + * @param originalAmount */ @JsonProperty(JSON_PROPERTY_ORIGINAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -812,7 +801,6 @@ public TransferEvent reason(ReasonEnum reason) { /** * The reason for the transfer status. - * * @return reason The reason for the transfer status. */ @JsonProperty(JSON_PROPERTY_REASON) @@ -845,7 +833,6 @@ public TransferEvent status(StatusEnum status) { /** * The status of the transfer event. - * * @return status The status of the transfer event. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -868,7 +855,7 @@ public void setStatus(StatusEnum status) { /** * trackingData * - * @param trackingData + * @param trackingData * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent trackingData(TransferEventTrackingData trackingData) { @@ -878,8 +865,7 @@ public TransferEvent trackingData(TransferEventTrackingData trackingData) { /** * Get trackingData - * - * @return trackingData + * @return trackingData */ @JsonProperty(JSON_PROPERTY_TRACKING_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -890,7 +876,7 @@ public TransferEventTrackingData getTrackingData() { /** * trackingData * - * @param trackingData + * @param trackingData */ @JsonProperty(JSON_PROPERTY_TRACKING_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -899,11 +885,9 @@ public void setTrackingData(TransferEventTrackingData trackingData) { } /** - * The id of the transaction that is related to this accounting event. Only sent for events of - * type **accounting** where the balance changes. + * The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes. * - * @param transactionId The id of the transaction that is related to this accounting event. Only - * sent for events of type **accounting** where the balance changes. + * @param transactionId The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes. * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent transactionId(String transactionId) { @@ -912,11 +896,8 @@ public TransferEvent transactionId(String transactionId) { } /** - * The id of the transaction that is related to this accounting event. Only sent for events of - * type **accounting** where the balance changes. - * - * @return transactionId The id of the transaction that is related to this accounting event. Only - * sent for events of type **accounting** where the balance changes. + * The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes. + * @return transactionId The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes. */ @JsonProperty(JSON_PROPERTY_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -925,11 +906,9 @@ public String getTransactionId() { } /** - * The id of the transaction that is related to this accounting event. Only sent for events of - * type **accounting** where the balance changes. + * The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes. * - * @param transactionId The id of the transaction that is related to this accounting event. Only - * sent for events of type **accounting** where the balance changes. + * @param transactionId The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes. */ @JsonProperty(JSON_PROPERTY_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -950,7 +929,6 @@ public TransferEvent type(TypeEnum type) { /** * The type of the transfer event. Possible values: **accounting**, **tracking**. - * * @return type The type of the transfer event. Possible values: **accounting**, **tracking**. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -983,7 +961,6 @@ public TransferEvent updateDate(OffsetDateTime updateDate) { /** * The date when the tracking status was updated. - * * @return updateDate The date when the tracking status was updated. */ @JsonProperty(JSON_PROPERTY_UPDATE_DATE) @@ -1004,11 +981,9 @@ public void setUpdateDate(OffsetDateTime updateDate) { } /** - * The date when the funds are expected to be deducted from or credited to the balance account. - * This date can be in either the past or future. + * The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future. * - * @param valueDate The date when the funds are expected to be deducted from or credited to the - * balance account. This date can be in either the past or future. + * @param valueDate The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future. * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent valueDate(OffsetDateTime valueDate) { @@ -1017,11 +992,8 @@ public TransferEvent valueDate(OffsetDateTime valueDate) { } /** - * The date when the funds are expected to be deducted from or credited to the balance account. - * This date can be in either the past or future. - * - * @return valueDate The date when the funds are expected to be deducted from or credited to the - * balance account. This date can be in either the past or future. + * The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future. + * @return valueDate The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future. */ @JsonProperty(JSON_PROPERTY_VALUE_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1030,11 +1002,9 @@ public OffsetDateTime getValueDate() { } /** - * The date when the funds are expected to be deducted from or credited to the balance account. - * This date can be in either the past or future. + * The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future. * - * @param valueDate The date when the funds are expected to be deducted from or credited to the - * balance account. This date can be in either the past or future. + * @param valueDate The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future. */ @JsonProperty(JSON_PROPERTY_VALUE_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1042,7 +1012,9 @@ public void setValueDate(OffsetDateTime valueDate) { this.valueDate = valueDate; } - /** Return true if this TransferEvent object is equal to o. */ + /** + * Return true if this TransferEvent object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -1052,47 +1024,29 @@ public boolean equals(Object o) { return false; } TransferEvent transferEvent = (TransferEvent) o; - return Objects.equals(this.amount, transferEvent.amount) - && Objects.equals(this.amountAdjustments, transferEvent.amountAdjustments) - && Objects.equals(this.arn, transferEvent.arn) - && Objects.equals(this.bookingDate, transferEvent.bookingDate) - && Objects.equals(this.estimatedArrivalTime, transferEvent.estimatedArrivalTime) - && Objects.equals(this.eventsData, transferEvent.eventsData) - && Objects.equals(this.externalReason, transferEvent.externalReason) - && Objects.equals(this.id, transferEvent.id) - && Objects.equals(this.modification, transferEvent.modification) - && Objects.equals(this.mutations, transferEvent.mutations) - && Objects.equals(this.originalAmount, transferEvent.originalAmount) - && Objects.equals(this.reason, transferEvent.reason) - && Objects.equals(this.status, transferEvent.status) - && Objects.equals(this.trackingData, transferEvent.trackingData) - && Objects.equals(this.transactionId, transferEvent.transactionId) - && Objects.equals(this.type, transferEvent.type) - && Objects.equals(this.updateDate, transferEvent.updateDate) - && Objects.equals(this.valueDate, transferEvent.valueDate); + return Objects.equals(this.amount, transferEvent.amount) && + Objects.equals(this.amountAdjustments, transferEvent.amountAdjustments) && + Objects.equals(this.arn, transferEvent.arn) && + Objects.equals(this.bookingDate, transferEvent.bookingDate) && + Objects.equals(this.estimatedArrivalTime, transferEvent.estimatedArrivalTime) && + Objects.equals(this.eventsData, transferEvent.eventsData) && + Objects.equals(this.externalReason, transferEvent.externalReason) && + Objects.equals(this.id, transferEvent.id) && + Objects.equals(this.modification, transferEvent.modification) && + Objects.equals(this.mutations, transferEvent.mutations) && + Objects.equals(this.originalAmount, transferEvent.originalAmount) && + Objects.equals(this.reason, transferEvent.reason) && + Objects.equals(this.status, transferEvent.status) && + Objects.equals(this.trackingData, transferEvent.trackingData) && + Objects.equals(this.transactionId, transferEvent.transactionId) && + Objects.equals(this.type, transferEvent.type) && + Objects.equals(this.updateDate, transferEvent.updateDate) && + Objects.equals(this.valueDate, transferEvent.valueDate); } @Override public int hashCode() { - return Objects.hash( - amount, - amountAdjustments, - arn, - bookingDate, - estimatedArrivalTime, - eventsData, - externalReason, - id, - modification, - mutations, - originalAmount, - reason, - status, - trackingData, - transactionId, - type, - updateDate, - valueDate); + return Objects.hash(amount, amountAdjustments, arn, bookingDate, estimatedArrivalTime, eventsData, externalReason, id, modification, mutations, originalAmount, reason, status, trackingData, transactionId, type, updateDate, valueDate); } @Override @@ -1103,9 +1057,7 @@ public String toString() { sb.append(" amountAdjustments: ").append(toIndentedString(amountAdjustments)).append("\n"); sb.append(" arn: ").append(toIndentedString(arn)).append("\n"); sb.append(" bookingDate: ").append(toIndentedString(bookingDate)).append("\n"); - sb.append(" estimatedArrivalTime: ") - .append(toIndentedString(estimatedArrivalTime)) - .append("\n"); + sb.append(" estimatedArrivalTime: ").append(toIndentedString(estimatedArrivalTime)).append("\n"); sb.append(" eventsData: ").append(toIndentedString(eventsData)).append("\n"); sb.append(" externalReason: ").append(toIndentedString(externalReason)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); @@ -1124,7 +1076,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1133,7 +1086,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransferEvent given an JSON string * * @param jsonString JSON string @@ -1143,12 +1096,11 @@ private String toIndentedString(Object o) { public static TransferEvent fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferEvent.class); } - - /** - * Convert an instance of TransferEvent to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransferEvent to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/TransferEventEventsDataInner.java b/src/main/java/com/adyen/model/transfers/TransferEventEventsDataInner.java index 732f81f28..c02ca628f 100644 --- a/src/main/java/com/adyen/model/transfers/TransferEventEventsDataInner.java +++ b/src/main/java/com/adyen/model/transfers/TransferEventEventsDataInner.java @@ -2,19 +2,49 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.Airline; +import com.adyen.model.transfers.IssuingTransactionData; +import com.adyen.model.transfers.Lodging; +import com.adyen.model.transfers.MerchantPurchaseData; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + +import com.fasterxml.jackson.core.type.TypeReference; + +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.Response; +import java.io.IOException; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; + import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; +import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -24,231 +54,214 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import jakarta.ws.rs.core.GenericType; -import java.io.IOException; -import java.util.*; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashSet; -import java.util.logging.Level; -import java.util.logging.Logger; -@JsonDeserialize( - using = TransferEventEventsDataInner.TransferEventEventsDataInnerDeserializer.class) + +@JsonDeserialize(using = TransferEventEventsDataInner.TransferEventEventsDataInnerDeserializer.class) @JsonSerialize(using = TransferEventEventsDataInner.TransferEventEventsDataInnerSerializer.class) public class TransferEventEventsDataInner extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(TransferEventEventsDataInner.class.getName()); + private static final Logger log = Logger.getLogger(TransferEventEventsDataInner.class.getName()); + + public static class TransferEventEventsDataInnerSerializer extends StdSerializer { + public TransferEventEventsDataInnerSerializer(Class t) { + super(t); + } + + public TransferEventEventsDataInnerSerializer() { + this(null); + } - public static class TransferEventEventsDataInnerSerializer - extends StdSerializer { - public TransferEventEventsDataInnerSerializer(Class t) { - super(t); + @Override + public void serialize(TransferEventEventsDataInner value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); + } } - public TransferEventEventsDataInnerSerializer() { - this(null); + public static class TransferEventEventsDataInnerDeserializer extends StdDeserializer { + public TransferEventEventsDataInnerDeserializer() { + this(TransferEventEventsDataInner.class); + } + + public TransferEventEventsDataInnerDeserializer(Class vc) { + super(vc); + } + + @Override + public TransferEventEventsDataInner deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize IssuingTransactionData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(IssuingTransactionData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(IssuingTransactionData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'IssuingTransactionData'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'IssuingTransactionData'", e); + } + + // deserialize MerchantPurchaseData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(MerchantPurchaseData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(MerchantPurchaseData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'MerchantPurchaseData'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'MerchantPurchaseData'", e); + } + + if (match == 1) { + TransferEventEventsDataInner ret = new TransferEventEventsDataInner(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException(String.format("Failed deserialization for TransferEventEventsDataInner: %d classes match result, expected 1", match)); + } + + /** + * Handle deserialization of the 'null' value. + */ + @Override + public TransferEventEventsDataInner getNullValue(DeserializationContext ctxt) throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "TransferEventEventsDataInner cannot be null"); + } } - @Override - public void serialize( - TransferEventEventsDataInner value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public TransferEventEventsDataInner() { + super("oneOf", Boolean.FALSE); } - } - public static class TransferEventEventsDataInnerDeserializer - extends StdDeserializer { - public TransferEventEventsDataInnerDeserializer() { - this(TransferEventEventsDataInner.class); + public TransferEventEventsDataInner(IssuingTransactionData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } - public TransferEventEventsDataInnerDeserializer(Class vc) { - super(vc); + public TransferEventEventsDataInner(MerchantPurchaseData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("IssuingTransactionData", new GenericType() { + }); + schemas.put("MerchantPurchaseData", new GenericType() { + }); + JSON.registerDescendants(TransferEventEventsDataInner.class, Collections.unmodifiableMap(schemas)); } @Override - public TransferEventEventsDataInner deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize IssuingTransactionData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(IssuingTransactionData.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(IssuingTransactionData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'IssuingTransactionData'"); - } + public Map> getSchemas() { + return TransferEventEventsDataInner.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check + * the instance parameter is valid against the oneOf child schemas: + * IssuingTransactionData, MerchantPurchaseData + * + * It could be an instance of the 'oneOf' schemas. + * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(IssuingTransactionData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'IssuingTransactionData'", e); - } - - // deserialize MerchantPurchaseData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(MerchantPurchaseData.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(MerchantPurchaseData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'MerchantPurchaseData'"); - } + + if (JSON.isInstanceOf(MerchantPurchaseData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'MerchantPurchaseData'", e); - } - - if (match == 1) { - TransferEventEventsDataInner ret = new TransferEventEventsDataInner(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for TransferEventEventsDataInner: %d classes match result, expected 1", - match)); + + throw new RuntimeException("Invalid instance type. Must be IssuingTransactionData, MerchantPurchaseData"); } - /** Handle deserialization of the 'null' value. */ + /** + * Get the actual instance, which can be the following: + * IssuingTransactionData, MerchantPurchaseData + * + * @return The actual instance (IssuingTransactionData, MerchantPurchaseData) + */ @Override - public TransferEventEventsDataInner getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "TransferEventEventsDataInner cannot be null"); + public Object getActualInstance() { + return super.getActualInstance(); } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public TransferEventEventsDataInner() { - super("oneOf", Boolean.FALSE); - } - - public TransferEventEventsDataInner(IssuingTransactionData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferEventEventsDataInner(MerchantPurchaseData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("IssuingTransactionData", new GenericType() {}); - schemas.put("MerchantPurchaseData", new GenericType() {}); - JSON.registerDescendants( - TransferEventEventsDataInner.class, Collections.unmodifiableMap(schemas)); - } - - @Override - public Map> getSchemas() { - return TransferEventEventsDataInner.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: IssuingTransactionData, MerchantPurchaseData - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a - * composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(IssuingTransactionData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + + /** + * Get the actual instance of `IssuingTransactionData`. If the actual instance is not `IssuingTransactionData`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `IssuingTransactionData` + * @throws ClassCastException if the instance is not `IssuingTransactionData` + */ + public IssuingTransactionData getIssuingTransactionData() throws ClassCastException { + return (IssuingTransactionData)super.getActualInstance(); + } + + /** + * Get the actual instance of `MerchantPurchaseData`. If the actual instance is not `MerchantPurchaseData`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `MerchantPurchaseData` + * @throws ClassCastException if the instance is not `MerchantPurchaseData` + */ + public MerchantPurchaseData getMerchantPurchaseData() throws ClassCastException { + return (MerchantPurchaseData)super.getActualInstance(); + } + + + /** + * Create an instance of TransferEventEventsDataInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of TransferEventEventsDataInner + * @throws IOException if the JSON string is invalid with respect to TransferEventEventsDataInner + */ + public static TransferEventEventsDataInner fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, TransferEventEventsDataInner.class); } - if (JSON.isInstanceOf(MerchantPurchaseData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Convert an instance of TransferEventEventsDataInner to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); } - throw new RuntimeException( - "Invalid instance type. Must be IssuingTransactionData, MerchantPurchaseData"); - } - - /** - * Get the actual instance, which can be the following: IssuingTransactionData, - * MerchantPurchaseData - * - * @return The actual instance (IssuingTransactionData, MerchantPurchaseData) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `IssuingTransactionData`. If the actual instance is not - * `IssuingTransactionData`, the ClassCastException will be thrown. - * - * @return The actual instance of `IssuingTransactionData` - * @throws ClassCastException if the instance is not `IssuingTransactionData` - */ - public IssuingTransactionData getIssuingTransactionData() throws ClassCastException { - return (IssuingTransactionData) super.getActualInstance(); - } - - /** - * Get the actual instance of `MerchantPurchaseData`. If the actual instance is not - * `MerchantPurchaseData`, the ClassCastException will be thrown. - * - * @return The actual instance of `MerchantPurchaseData` - * @throws ClassCastException if the instance is not `MerchantPurchaseData` - */ - public MerchantPurchaseData getMerchantPurchaseData() throws ClassCastException { - return (MerchantPurchaseData) super.getActualInstance(); - } - - /** - * Create an instance of TransferEventEventsDataInner given an JSON string - * - * @param jsonString JSON string - * @return An instance of TransferEventEventsDataInner - * @throws IOException if the JSON string is invalid with respect to TransferEventEventsDataInner - */ - public static TransferEventEventsDataInner fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, TransferEventEventsDataInner.class); - } - - /** - * Convert an instance of TransferEventEventsDataInner to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); - } } diff --git a/src/main/java/com/adyen/model/transfers/TransferEventTrackingData.java b/src/main/java/com/adyen/model/transfers/TransferEventTrackingData.java index 90f80c6e2..355ca8096 100644 --- a/src/main/java/com/adyen/model/transfers/TransferEventTrackingData.java +++ b/src/main/java/com/adyen/model/transfers/TransferEventTrackingData.java @@ -2,19 +2,47 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.ConfirmationTrackingData; +import com.adyen.model.transfers.EstimationTrackingData; +import com.adyen.model.transfers.InternalReviewTrackingData; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + +import com.fasterxml.jackson.core.type.TypeReference; + +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.Response; +import java.io.IOException; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; + import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; +import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -24,279 +52,261 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import jakarta.ws.rs.core.GenericType; -import java.io.IOException; -import java.util.*; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashSet; -import java.util.logging.Level; -import java.util.logging.Logger; + @JsonDeserialize(using = TransferEventTrackingData.TransferEventTrackingDataDeserializer.class) @JsonSerialize(using = TransferEventTrackingData.TransferEventTrackingDataSerializer.class) public class TransferEventTrackingData extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(TransferEventTrackingData.class.getName()); + private static final Logger log = Logger.getLogger(TransferEventTrackingData.class.getName()); + + public static class TransferEventTrackingDataSerializer extends StdSerializer { + public TransferEventTrackingDataSerializer(Class t) { + super(t); + } + + public TransferEventTrackingDataSerializer() { + this(null); + } + + @Override + public void serialize(TransferEventTrackingData value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); + } + } + + public static class TransferEventTrackingDataDeserializer extends StdDeserializer { + public TransferEventTrackingDataDeserializer() { + this(TransferEventTrackingData.class); + } + + public TransferEventTrackingDataDeserializer(Class vc) { + super(vc); + } + + @Override + public TransferEventTrackingData deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize ConfirmationTrackingData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(ConfirmationTrackingData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(ConfirmationTrackingData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'ConfirmationTrackingData'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'ConfirmationTrackingData'", e); + } + + // deserialize EstimationTrackingData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(EstimationTrackingData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(EstimationTrackingData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'EstimationTrackingData'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'EstimationTrackingData'", e); + } + + // deserialize InternalReviewTrackingData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(InternalReviewTrackingData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(InternalReviewTrackingData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'InternalReviewTrackingData'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'InternalReviewTrackingData'", e); + } + + if (match == 1) { + TransferEventTrackingData ret = new TransferEventTrackingData(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException(String.format("Failed deserialization for TransferEventTrackingData: %d classes match result, expected 1", match)); + } - public static class TransferEventTrackingDataSerializer - extends StdSerializer { - public TransferEventTrackingDataSerializer(Class t) { - super(t); + /** + * Handle deserialization of the 'null' value. + */ + @Override + public TransferEventTrackingData getNullValue(DeserializationContext ctxt) throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "TransferEventTrackingData cannot be null"); + } } - public TransferEventTrackingDataSerializer() { - this(null); + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public TransferEventTrackingData() { + super("oneOf", Boolean.FALSE); } - @Override - public void serialize( - TransferEventTrackingData value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + public TransferEventTrackingData(ConfirmationTrackingData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } - } - public static class TransferEventTrackingDataDeserializer - extends StdDeserializer { - public TransferEventTrackingDataDeserializer() { - this(TransferEventTrackingData.class); + public TransferEventTrackingData(EstimationTrackingData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } - public TransferEventTrackingDataDeserializer(Class vc) { - super(vc); + public TransferEventTrackingData(InternalReviewTrackingData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } + static { + schemas.put("ConfirmationTrackingData", new GenericType() { + }); + schemas.put("EstimationTrackingData", new GenericType() { + }); + schemas.put("InternalReviewTrackingData", new GenericType() { + }); + JSON.registerDescendants(TransferEventTrackingData.class, Collections.unmodifiableMap(schemas)); + } + + @Override + public Map> getSchemas() { + return TransferEventTrackingData.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check + * the instance parameter is valid against the oneOf child schemas: + * ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData + * + * It could be an instance of the 'oneOf' schemas. + * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). + */ @Override - public TransferEventTrackingData deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize ConfirmationTrackingData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(ConfirmationTrackingData.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(ConfirmationTrackingData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'ConfirmationTrackingData'"); - } + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(ConfirmationTrackingData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'ConfirmationTrackingData'", e); - } - - // deserialize EstimationTrackingData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(EstimationTrackingData.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(EstimationTrackingData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'EstimationTrackingData'"); - } + + if (JSON.isInstanceOf(EstimationTrackingData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'EstimationTrackingData'", e); - } - - // deserialize InternalReviewTrackingData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(InternalReviewTrackingData.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(InternalReviewTrackingData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'InternalReviewTrackingData'"); - } + + if (JSON.isInstanceOf(InternalReviewTrackingData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'InternalReviewTrackingData'", e); - } - - if (match == 1) { - TransferEventTrackingData ret = new TransferEventTrackingData(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for TransferEventTrackingData: %d classes match result, expected 1", - match)); + + throw new RuntimeException("Invalid instance type. Must be ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData"); } - /** Handle deserialization of the 'null' value. */ + /** + * Get the actual instance, which can be the following: + * ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData + * + * @return The actual instance (ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData) + */ @Override - public TransferEventTrackingData getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "TransferEventTrackingData cannot be null"); + public Object getActualInstance() { + return super.getActualInstance(); } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public TransferEventTrackingData() { - super("oneOf", Boolean.FALSE); - } - - public TransferEventTrackingData(ConfirmationTrackingData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferEventTrackingData(EstimationTrackingData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferEventTrackingData(InternalReviewTrackingData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("ConfirmationTrackingData", new GenericType() {}); - schemas.put("EstimationTrackingData", new GenericType() {}); - schemas.put("InternalReviewTrackingData", new GenericType() {}); - JSON.registerDescendants(TransferEventTrackingData.class, Collections.unmodifiableMap(schemas)); - } - - @Override - public Map> getSchemas() { - return TransferEventTrackingData.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: ConfirmationTrackingData, EstimationTrackingData, - * InternalReviewTrackingData - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a - * composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(ConfirmationTrackingData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + + /** + * Get the actual instance of `ConfirmationTrackingData`. If the actual instance is not `ConfirmationTrackingData`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `ConfirmationTrackingData` + * @throws ClassCastException if the instance is not `ConfirmationTrackingData` + */ + public ConfirmationTrackingData getConfirmationTrackingData() throws ClassCastException { + return (ConfirmationTrackingData)super.getActualInstance(); + } + + /** + * Get the actual instance of `EstimationTrackingData`. If the actual instance is not `EstimationTrackingData`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `EstimationTrackingData` + * @throws ClassCastException if the instance is not `EstimationTrackingData` + */ + public EstimationTrackingData getEstimationTrackingData() throws ClassCastException { + return (EstimationTrackingData)super.getActualInstance(); } - if (JSON.isInstanceOf(EstimationTrackingData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `InternalReviewTrackingData`. If the actual instance is not `InternalReviewTrackingData`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `InternalReviewTrackingData` + * @throws ClassCastException if the instance is not `InternalReviewTrackingData` + */ + public InternalReviewTrackingData getInternalReviewTrackingData() throws ClassCastException { + return (InternalReviewTrackingData)super.getActualInstance(); + } + + + /** + * Create an instance of TransferEventTrackingData given an JSON string + * + * @param jsonString JSON string + * @return An instance of TransferEventTrackingData + * @throws IOException if the JSON string is invalid with respect to TransferEventTrackingData + */ + public static TransferEventTrackingData fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, TransferEventTrackingData.class); } - if (JSON.isInstanceOf(InternalReviewTrackingData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Convert an instance of TransferEventTrackingData to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); } - throw new RuntimeException( - "Invalid instance type. Must be ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData"); - } - - /** - * Get the actual instance, which can be the following: ConfirmationTrackingData, - * EstimationTrackingData, InternalReviewTrackingData - * - * @return The actual instance (ConfirmationTrackingData, EstimationTrackingData, - * InternalReviewTrackingData) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `ConfirmationTrackingData`. If the actual instance is not - * `ConfirmationTrackingData`, the ClassCastException will be thrown. - * - * @return The actual instance of `ConfirmationTrackingData` - * @throws ClassCastException if the instance is not `ConfirmationTrackingData` - */ - public ConfirmationTrackingData getConfirmationTrackingData() throws ClassCastException { - return (ConfirmationTrackingData) super.getActualInstance(); - } - - /** - * Get the actual instance of `EstimationTrackingData`. If the actual instance is not - * `EstimationTrackingData`, the ClassCastException will be thrown. - * - * @return The actual instance of `EstimationTrackingData` - * @throws ClassCastException if the instance is not `EstimationTrackingData` - */ - public EstimationTrackingData getEstimationTrackingData() throws ClassCastException { - return (EstimationTrackingData) super.getActualInstance(); - } - - /** - * Get the actual instance of `InternalReviewTrackingData`. If the actual instance is not - * `InternalReviewTrackingData`, the ClassCastException will be thrown. - * - * @return The actual instance of `InternalReviewTrackingData` - * @throws ClassCastException if the instance is not `InternalReviewTrackingData` - */ - public InternalReviewTrackingData getInternalReviewTrackingData() throws ClassCastException { - return (InternalReviewTrackingData) super.getActualInstance(); - } - - /** - * Create an instance of TransferEventTrackingData given an JSON string - * - * @param jsonString JSON string - * @return An instance of TransferEventTrackingData - * @throws IOException if the JSON string is invalid with respect to TransferEventTrackingData - */ - public static TransferEventTrackingData fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, TransferEventTrackingData.class); - } - - /** - * Convert an instance of TransferEventTrackingData to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); - } } diff --git a/src/main/java/com/adyen/model/transfers/TransferInfo.java b/src/main/java/com/adyen/model/transfers/TransferInfo.java index fbe0e636d..02fa2e884 100644 --- a/src/main/java/com/adyen/model/transfers/TransferInfo.java +++ b/src/main/java/com/adyen/model/transfers/TransferInfo.java @@ -2,28 +2,38 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.Amount; +import com.adyen.model.transfers.CounterpartyInfoV3; +import com.adyen.model.transfers.ExecutionDate; +import com.adyen.model.transfers.TransferRequestReview; +import com.adyen.model.transfers.UltimatePartyIdentification; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** TransferInfo */ +/** + * TransferInfo + */ @JsonPropertyOrder({ TransferInfo.JSON_PROPERTY_AMOUNT, TransferInfo.JSON_PROPERTY_BALANCE_ACCOUNT_ID, @@ -40,6 +50,7 @@ TransferInfo.JSON_PROPERTY_TYPE, TransferInfo.JSON_PROPERTY_ULTIMATE_PARTY }) + public class TransferInfo { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -48,16 +59,10 @@ public class TransferInfo { private String balanceAccountId; /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a - * transfer between [balance - * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - - * **platformPayment**: funds movements related to payments that are acquired for your users. - - * **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. */ public enum CategoryEnum { + BANK(String.valueOf("bank")), CARD(String.valueOf("card")), @@ -75,7 +80,7 @@ public enum CategoryEnum { private String value; CategoryEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -96,11 +101,7 @@ public static CategoryEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "CategoryEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(CategoryEnum.values())); + LOG.warning("CategoryEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CategoryEnum.values())); return null; } } @@ -120,8 +121,11 @@ public static CategoryEnum fromValue(String value) { public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT_ID = "paymentInstrumentId"; private String paymentInstrumentId; - /** Gets or Sets priorities */ + /** + * Gets or Sets priorities + */ public enum PrioritiesEnum { + CROSSBORDER(String.valueOf("crossBorder")), FAST(String.valueOf("fast")), @@ -139,7 +143,7 @@ public enum PrioritiesEnum { private String value; PrioritiesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -160,11 +164,7 @@ public static PrioritiesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PrioritiesEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PrioritiesEnum.values())); + LOG.warning("PrioritiesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PrioritiesEnum.values())); return null; } } @@ -173,19 +173,10 @@ public static PrioritiesEnum fromValue(String value) { private List priorities; /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the - * fees that you have to pay. Required for transfers with `category` **bank**. Possible - * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer - * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * - * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the - * United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). */ public enum PriorityEnum { + CROSSBORDER(String.valueOf("crossBorder")), FAST(String.valueOf("fast")), @@ -203,7 +194,7 @@ public enum PriorityEnum { private String value; PriorityEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -224,11 +215,7 @@ public static PriorityEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PriorityEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PriorityEnum.values())); + LOG.warning("PriorityEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PriorityEnum.values())); return null; } } @@ -246,13 +233,10 @@ public static PriorityEnum fromValue(String value) { private TransferRequestReview review; /** - * The type of transfer. Possible values: - **bankTransfer**: for push transfers to a transfer - * instrument or a bank account. The `category` must be **bank**. - - * **internalTransfer**: for push transfers between balance accounts. The `category` - * must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between - * balance accounts. The `category` must be **internal**. + * The type of transfer. Possible values: - **bankTransfer**: for push transfers to a transfer instrument or a bank account. The `category` must be **bank**. - **internalTransfer**: for push transfers between balance accounts. The `category` must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between balance accounts. The `category` must be **internal**. */ public enum TypeEnum { + BANKTRANSFER(String.valueOf("bankTransfer")), INTERNALTRANSFER(String.valueOf("internalTransfer")), @@ -264,7 +248,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -285,11 +269,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -300,12 +280,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_ULTIMATE_PARTY = "ultimateParty"; private UltimatePartyIdentification ultimateParty; - public TransferInfo() {} + public TransferInfo() { + } /** * amount * - * @param amount + * @param amount * @return the current {@code TransferInfo} instance, allowing for method chaining */ public TransferInfo amount(Amount amount) { @@ -315,8 +296,7 @@ public TransferInfo amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -327,7 +307,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -336,22 +316,9 @@ public void setAmount(Amount amount) { } /** - * The unique identifier of the source [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). - * If you want to make a transfer using a **virtual** **bankAccount** assigned to the balance - * account, you must specify the [payment instrument - * ID](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id) - * of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the - * default **physical** **bankAccount** payment instrument assigned to the balance account. + * The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). If you want to make a transfer using a **virtual** **bankAccount** assigned to the balance account, you must specify the [payment instrument ID](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id) of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account. * - * @param balanceAccountId The unique identifier of the source [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). - * If you want to make a transfer using a **virtual** **bankAccount** assigned to the balance - * account, you must specify the [payment instrument - * ID](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id) - * of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses - * the default **physical** **bankAccount** payment instrument assigned to the balance - * account. + * @param balanceAccountId The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). If you want to make a transfer using a **virtual** **bankAccount** assigned to the balance account, you must specify the [payment instrument ID](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id) of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account. * @return the current {@code TransferInfo} instance, allowing for method chaining */ public TransferInfo balanceAccountId(String balanceAccountId) { @@ -360,22 +327,8 @@ public TransferInfo balanceAccountId(String balanceAccountId) { } /** - * The unique identifier of the source [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). - * If you want to make a transfer using a **virtual** **bankAccount** assigned to the balance - * account, you must specify the [payment instrument - * ID](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id) - * of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the - * default **physical** **bankAccount** payment instrument assigned to the balance account. - * - * @return balanceAccountId The unique identifier of the source [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). - * If you want to make a transfer using a **virtual** **bankAccount** assigned to the balance - * account, you must specify the [payment instrument - * ID](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id) - * of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses - * the default **physical** **bankAccount** payment instrument assigned to the balance - * account. + * The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). If you want to make a transfer using a **virtual** **bankAccount** assigned to the balance account, you must specify the [payment instrument ID](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id) of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account. + * @return balanceAccountId The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). If you want to make a transfer using a **virtual** **bankAccount** assigned to the balance account, you must specify the [payment instrument ID](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id) of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -384,22 +337,9 @@ public String getBalanceAccountId() { } /** - * The unique identifier of the source [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). - * If you want to make a transfer using a **virtual** **bankAccount** assigned to the balance - * account, you must specify the [payment instrument - * ID](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id) - * of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the - * default **physical** **bankAccount** payment instrument assigned to the balance account. + * The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). If you want to make a transfer using a **virtual** **bankAccount** assigned to the balance account, you must specify the [payment instrument ID](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id) of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account. * - * @param balanceAccountId The unique identifier of the source [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). - * If you want to make a transfer using a **virtual** **bankAccount** assigned to the balance - * account, you must specify the [payment instrument - * ID](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id) - * of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses - * the default **physical** **bankAccount** payment instrument assigned to the balance - * account. + * @param balanceAccountId The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). If you want to make a transfer using a **virtual** **bankAccount** assigned to the balance account, you must specify the [payment instrument ID](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id) of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -408,24 +348,9 @@ public void setBalanceAccountId(String balanceAccountId) { } /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a - * transfer between [balance - * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - - * **platformPayment**: funds movements related to payments that are acquired for your users. - - * **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. * - * @param category The category of the transfer. Possible values: - **bank**: a transfer involving - * a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a - * transfer between [balance - * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - - * **platformPayment**: funds movements related to payments that are acquired for your users. - * - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * @param category The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. * @return the current {@code TransferInfo} instance, allowing for method chaining */ public TransferInfo category(CategoryEnum category) { @@ -434,24 +359,8 @@ public TransferInfo category(CategoryEnum category) { } /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a - * transfer between [balance - * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - - * **platformPayment**: funds movements related to payments that are acquired for your users. - - * **topUp**: an incoming transfer initiated by your user to top up their balance account. - * - * @return category The category of the transfer. Possible values: - **bank**: a transfer - * involving a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a - * transfer between [balance - * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - - * **platformPayment**: funds movements related to payments that are acquired for your users. - * - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * @return category The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -460,24 +369,9 @@ public CategoryEnum getCategory() { } /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a - * transfer between [balance - * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - - * **platformPayment**: funds movements related to payments that are acquired for your users. - - * **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. * - * @param category The category of the transfer. Possible values: - **bank**: a transfer involving - * a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a - * transfer between [balance - * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - - * **platformPayment**: funds movements related to payments that are acquired for your users. - * - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * @param category The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -488,7 +382,7 @@ public void setCategory(CategoryEnum category) { /** * counterparty * - * @param counterparty + * @param counterparty * @return the current {@code TransferInfo} instance, allowing for method chaining */ public TransferInfo counterparty(CounterpartyInfoV3 counterparty) { @@ -498,8 +392,7 @@ public TransferInfo counterparty(CounterpartyInfoV3 counterparty) { /** * Get counterparty - * - * @return counterparty + * @return counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -510,7 +403,7 @@ public CounterpartyInfoV3 getCounterparty() { /** * counterparty * - * @param counterparty + * @param counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -519,17 +412,9 @@ public void setCounterparty(CounterpartyInfoV3 counterparty) { } /** - * Your description for the transfer. It is used by most banks as the transfer description. We - * recommend sending a maximum of 140 characters, otherwise the description may be truncated. - * Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported - * characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] - * & $ % # @** **~ = + - _ ' \" ! ?** + * Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** * - * @param description Your description for the transfer. It is used by most banks as the transfer - * description. We recommend sending a maximum of 140 characters, otherwise the description - * may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + - * Space** Supported characters for **regular** and **fast** transfers to a US counterparty: - * **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * @param description Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** * @return the current {@code TransferInfo} instance, allowing for method chaining */ public TransferInfo description(String description) { @@ -538,17 +423,8 @@ public TransferInfo description(String description) { } /** - * Your description for the transfer. It is used by most banks as the transfer description. We - * recommend sending a maximum of 140 characters, otherwise the description may be truncated. - * Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported - * characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] - * & $ % # @** **~ = + - _ ' \" ! ?** - * - * @return description Your description for the transfer. It is used by most banks as the transfer - * description. We recommend sending a maximum of 140 characters, otherwise the description - * may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + - * Space** Supported characters for **regular** and **fast** transfers to a US counterparty: - * **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * @return description Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -557,17 +433,9 @@ public String getDescription() { } /** - * Your description for the transfer. It is used by most banks as the transfer description. We - * recommend sending a maximum of 140 characters, otherwise the description may be truncated. - * Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported - * characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] - * & $ % # @** **~ = + - _ ' \" ! ?** + * Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** * - * @param description Your description for the transfer. It is used by most banks as the transfer - * description. We recommend sending a maximum of 140 characters, otherwise the description - * may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + - * Space** Supported characters for **regular** and **fast** transfers to a US counterparty: - * **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * @param description Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -578,7 +446,7 @@ public void setDescription(String description) { /** * executionDate * - * @param executionDate + * @param executionDate * @return the current {@code TransferInfo} instance, allowing for method chaining */ public TransferInfo executionDate(ExecutionDate executionDate) { @@ -588,8 +456,7 @@ public TransferInfo executionDate(ExecutionDate executionDate) { /** * Get executionDate - * - * @return executionDate + * @return executionDate */ @JsonProperty(JSON_PROPERTY_EXECUTION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -600,7 +467,7 @@ public ExecutionDate getExecutionDate() { /** * executionDate * - * @param executionDate + * @param executionDate */ @JsonProperty(JSON_PROPERTY_EXECUTION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -609,19 +476,9 @@ public void setExecutionDate(ExecutionDate executionDate) { } /** - * The unique identifier of the source [payment - * instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id). - * If you want to make a transfer using a **virtual** **bankAccount**, you must specify the - * payment instrument ID of the **virtual** **bankAccount**. If you only specify a balance account - * ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the - * balance account. + * The unique identifier of the source [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id). If you want to make a transfer using a **virtual** **bankAccount**, you must specify the payment instrument ID of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account. * - * @param paymentInstrumentId The unique identifier of the source [payment - * instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id). - * If you want to make a transfer using a **virtual** **bankAccount**, you must specify the - * payment instrument ID of the **virtual** **bankAccount**. If you only specify a balance - * account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned - * to the balance account. + * @param paymentInstrumentId The unique identifier of the source [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id). If you want to make a transfer using a **virtual** **bankAccount**, you must specify the payment instrument ID of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account. * @return the current {@code TransferInfo} instance, allowing for method chaining */ public TransferInfo paymentInstrumentId(String paymentInstrumentId) { @@ -630,19 +487,8 @@ public TransferInfo paymentInstrumentId(String paymentInstrumentId) { } /** - * The unique identifier of the source [payment - * instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id). - * If you want to make a transfer using a **virtual** **bankAccount**, you must specify the - * payment instrument ID of the **virtual** **bankAccount**. If you only specify a balance account - * ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the - * balance account. - * - * @return paymentInstrumentId The unique identifier of the source [payment - * instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id). - * If you want to make a transfer using a **virtual** **bankAccount**, you must specify the - * payment instrument ID of the **virtual** **bankAccount**. If you only specify a balance - * account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned - * to the balance account. + * The unique identifier of the source [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id). If you want to make a transfer using a **virtual** **bankAccount**, you must specify the payment instrument ID of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account. + * @return paymentInstrumentId The unique identifier of the source [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id). If you want to make a transfer using a **virtual** **bankAccount**, you must specify the payment instrument ID of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -651,19 +497,9 @@ public String getPaymentInstrumentId() { } /** - * The unique identifier of the source [payment - * instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id). - * If you want to make a transfer using a **virtual** **bankAccount**, you must specify the - * payment instrument ID of the **virtual** **bankAccount**. If you only specify a balance account - * ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the - * balance account. + * The unique identifier of the source [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id). If you want to make a transfer using a **virtual** **bankAccount**, you must specify the payment instrument ID of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account. * - * @param paymentInstrumentId The unique identifier of the source [payment - * instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id). - * If you want to make a transfer using a **virtual** **bankAccount**, you must specify the - * payment instrument ID of the **virtual** **bankAccount**. If you only specify a balance - * account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned - * to the balance account. + * @param paymentInstrumentId The unique identifier of the source [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id). If you want to make a transfer using a **virtual** **bankAccount**, you must specify the payment instrument ID of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -672,36 +508,9 @@ public void setPaymentInstrumentId(String paymentInstrumentId) { } /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent - * and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay - * out using the priority you list first. If that's not possible, it moves on to the next - * option in the order of your provided priorities. Possible values: * **regular**: for normal, - * low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. - * Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer - * funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * - * **instant**: for instant funds transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). Required for transfers with `category` **bank**. For more details, see - * [fallback - * priorities](https://docs.adyen.com/payouts/payout-service/payout-to-users/#fallback-priorities). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Required for transfers with `category` **bank**. For more details, see [fallback priorities](https://docs.adyen.com/payouts/payout-service/payout-to-users/#fallback-priorities). * - * @param priorities The list of priorities for the bank transfer. This sets the speed at which - * the transfer is sent and the fees that you have to pay. You can provide multiple - * priorities. Adyen will try to pay out using the priority you list first. If that's not - * possible, it moves on to the next option in the order of your provided priorities. Possible - * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to - * transfer funds, but the fees are higher. Recommended for high-priority, low-value - * transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. - * Recommended for high-priority, high-value transactions. * **instant**: for instant funds - * transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). Required for transfers with `category` **bank**. For more details, - * see [fallback - * priorities](https://docs.adyen.com/payouts/payout-service/payout-to-users/#fallback-priorities). + * @param priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Required for transfers with `category` **bank**. For more details, see [fallback priorities](https://docs.adyen.com/payouts/payout-service/payout-to-users/#fallback-priorities). * @return the current {@code TransferInfo} instance, allowing for method chaining */ public TransferInfo priorities(List priorities) { @@ -718,36 +527,8 @@ public TransferInfo addPrioritiesItem(PrioritiesEnum prioritiesItem) { } /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent - * and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay - * out using the priority you list first. If that's not possible, it moves on to the next - * option in the order of your provided priorities. Possible values: * **regular**: for normal, - * low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. - * Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer - * funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * - * **instant**: for instant funds transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). Required for transfers with `category` **bank**. For more details, see - * [fallback - * priorities](https://docs.adyen.com/payouts/payout-service/payout-to-users/#fallback-priorities). - * - * @return priorities The list of priorities for the bank transfer. This sets the speed at which - * the transfer is sent and the fees that you have to pay. You can provide multiple - * priorities. Adyen will try to pay out using the priority you list first. If that's not - * possible, it moves on to the next option in the order of your provided priorities. Possible - * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to - * transfer funds, but the fees are higher. Recommended for high-priority, low-value - * transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. - * Recommended for high-priority, high-value transactions. * **instant**: for instant funds - * transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). Required for transfers with `category` **bank**. For more details, - * see [fallback - * priorities](https://docs.adyen.com/payouts/payout-service/payout-to-users/#fallback-priorities). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Required for transfers with `category` **bank**. For more details, see [fallback priorities](https://docs.adyen.com/payouts/payout-service/payout-to-users/#fallback-priorities). + * @return priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Required for transfers with `category` **bank**. For more details, see [fallback priorities](https://docs.adyen.com/payouts/payout-service/payout-to-users/#fallback-priorities). */ @JsonProperty(JSON_PROPERTY_PRIORITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -756,36 +537,9 @@ public List getPriorities() { } /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent - * and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay - * out using the priority you list first. If that's not possible, it moves on to the next - * option in the order of your provided priorities. Possible values: * **regular**: for normal, - * low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. - * Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer - * funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * - * **instant**: for instant funds transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). Required for transfers with `category` **bank**. For more details, see - * [fallback - * priorities](https://docs.adyen.com/payouts/payout-service/payout-to-users/#fallback-priorities). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Required for transfers with `category` **bank**. For more details, see [fallback priorities](https://docs.adyen.com/payouts/payout-service/payout-to-users/#fallback-priorities). * - * @param priorities The list of priorities for the bank transfer. This sets the speed at which - * the transfer is sent and the fees that you have to pay. You can provide multiple - * priorities. Adyen will try to pay out using the priority you list first. If that's not - * possible, it moves on to the next option in the order of your provided priorities. Possible - * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to - * transfer funds, but the fees are higher. Recommended for high-priority, low-value - * transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. - * Recommended for high-priority, high-value transactions. * **instant**: for instant funds - * transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). Required for transfers with `category` **bank**. For more details, - * see [fallback - * priorities](https://docs.adyen.com/payouts/payout-service/payout-to-users/#fallback-priorities). + * @param priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Required for transfers with `category` **bank**. For more details, see [fallback priorities](https://docs.adyen.com/payouts/payout-service/payout-to-users/#fallback-priorities). */ @JsonProperty(JSON_PROPERTY_PRIORITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -794,29 +548,9 @@ public void setPriorities(List priorities) { } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the - * fees that you have to pay. Required for transfers with `category` **bank**. Possible - * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer - * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * - * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the - * United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). * - * @param priority The priority for the bank transfer. This sets the speed at which the transfer - * is sent and the fees that you have to pay. Required for transfers with `category` - * **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a - * faster way to transfer funds, but the fees are higher. Recommended for high-priority, - * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the - * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for - * instant funds transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * @param priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). * @return the current {@code TransferInfo} instance, allowing for method chaining */ public TransferInfo priority(PriorityEnum priority) { @@ -825,29 +559,8 @@ public TransferInfo priority(PriorityEnum priority) { } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the - * fees that you have to pay. Required for transfers with `category` **bank**. Possible - * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer - * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * - * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the - * United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). - * - * @return priority The priority for the bank transfer. This sets the speed at which the transfer - * is sent and the fees that you have to pay. Required for transfers with `category` - * **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a - * faster way to transfer funds, but the fees are higher. Recommended for high-priority, - * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the - * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for - * instant funds transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * @return priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). */ @JsonProperty(JSON_PROPERTY_PRIORITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -856,29 +569,9 @@ public PriorityEnum getPriority() { } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the - * fees that you have to pay. Required for transfers with `category` **bank**. Possible - * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer - * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * - * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the - * United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). * - * @param priority The priority for the bank transfer. This sets the speed at which the transfer - * is sent and the fees that you have to pay. Required for transfers with `category` - * **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a - * faster way to transfer funds, but the fees are higher. Recommended for high-priority, - * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the - * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for - * instant funds transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * @param priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). */ @JsonProperty(JSON_PROPERTY_PRIORITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -887,11 +580,9 @@ public void setPriority(PriorityEnum priority) { } /** - * Your reference for the transfer, used internally within your platform. If you don't provide - * this in the request, Adyen generates a unique reference. + * Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. * - * @param reference Your reference for the transfer, used internally within your platform. If you - * don't provide this in the request, Adyen generates a unique reference. + * @param reference Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. * @return the current {@code TransferInfo} instance, allowing for method chaining */ public TransferInfo reference(String reference) { @@ -900,11 +591,8 @@ public TransferInfo reference(String reference) { } /** - * Your reference for the transfer, used internally within your platform. If you don't provide - * this in the request, Adyen generates a unique reference. - * - * @return reference Your reference for the transfer, used internally within your platform. If you - * don't provide this in the request, Adyen generates a unique reference. + * Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. + * @return reference Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -913,11 +601,9 @@ public String getReference() { } /** - * Your reference for the transfer, used internally within your platform. If you don't provide - * this in the request, Adyen generates a unique reference. + * Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. * - * @param reference Your reference for the transfer, used internally within your platform. If you - * don't provide this in the request, Adyen generates a unique reference. + * @param reference Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -926,18 +612,9 @@ public void setReference(String reference) { } /** - * A reference that is sent to the recipient. This reference is also sent in all webhooks related - * to the transfer, so you can use it to track statuses for both parties involved in the funds - * movement. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the - * `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring - * to an IBAN, 15 characters for others. + * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both parties involved in the funds movement. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. * - * @param referenceForBeneficiary A reference that is sent to the recipient. This reference is - * also sent in all webhooks related to the transfer, so you can use it to track statuses for - * both parties involved in the funds movement. Supported characters: **a-z**, **A-Z**, - * **0-9**. The maximum length depends on the `category`. - **internal**: 80 - * characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for - * others. + * @param referenceForBeneficiary A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both parties involved in the funds movement. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. * @return the current {@code TransferInfo} instance, allowing for method chaining */ public TransferInfo referenceForBeneficiary(String referenceForBeneficiary) { @@ -946,18 +623,8 @@ public TransferInfo referenceForBeneficiary(String referenceForBeneficiary) { } /** - * A reference that is sent to the recipient. This reference is also sent in all webhooks related - * to the transfer, so you can use it to track statuses for both parties involved in the funds - * movement. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the - * `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring - * to an IBAN, 15 characters for others. - * - * @return referenceForBeneficiary A reference that is sent to the recipient. This reference is - * also sent in all webhooks related to the transfer, so you can use it to track statuses for - * both parties involved in the funds movement. Supported characters: **a-z**, **A-Z**, - * **0-9**. The maximum length depends on the `category`. - **internal**: 80 - * characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for - * others. + * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both parties involved in the funds movement. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * @return referenceForBeneficiary A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both parties involved in the funds movement. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -966,18 +633,9 @@ public String getReferenceForBeneficiary() { } /** - * A reference that is sent to the recipient. This reference is also sent in all webhooks related - * to the transfer, so you can use it to track statuses for both parties involved in the funds - * movement. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the - * `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring - * to an IBAN, 15 characters for others. + * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both parties involved in the funds movement. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. * - * @param referenceForBeneficiary A reference that is sent to the recipient. This reference is - * also sent in all webhooks related to the transfer, so you can use it to track statuses for - * both parties involved in the funds movement. Supported characters: **a-z**, **A-Z**, - * **0-9**. The maximum length depends on the `category`. - **internal**: 80 - * characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for - * others. + * @param referenceForBeneficiary A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both parties involved in the funds movement. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -988,7 +646,7 @@ public void setReferenceForBeneficiary(String referenceForBeneficiary) { /** * review * - * @param review + * @param review * @return the current {@code TransferInfo} instance, allowing for method chaining */ public TransferInfo review(TransferRequestReview review) { @@ -998,8 +656,7 @@ public TransferInfo review(TransferRequestReview review) { /** * Get review - * - * @return review + * @return review */ @JsonProperty(JSON_PROPERTY_REVIEW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1010,7 +667,7 @@ public TransferRequestReview getReview() { /** * review * - * @param review + * @param review */ @JsonProperty(JSON_PROPERTY_REVIEW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1019,17 +676,9 @@ public void setReview(TransferRequestReview review) { } /** - * The type of transfer. Possible values: - **bankTransfer**: for push transfers to a transfer - * instrument or a bank account. The `category` must be **bank**. - - * **internalTransfer**: for push transfers between balance accounts. The `category` - * must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between - * balance accounts. The `category` must be **internal**. + * The type of transfer. Possible values: - **bankTransfer**: for push transfers to a transfer instrument or a bank account. The `category` must be **bank**. - **internalTransfer**: for push transfers between balance accounts. The `category` must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between balance accounts. The `category` must be **internal**. * - * @param type The type of transfer. Possible values: - **bankTransfer**: for push transfers to a - * transfer instrument or a bank account. The `category` must be **bank**. - - * **internalTransfer**: for push transfers between balance accounts. The `category` - * must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between - * balance accounts. The `category` must be **internal**. + * @param type The type of transfer. Possible values: - **bankTransfer**: for push transfers to a transfer instrument or a bank account. The `category` must be **bank**. - **internalTransfer**: for push transfers between balance accounts. The `category` must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between balance accounts. The `category` must be **internal**. * @return the current {@code TransferInfo} instance, allowing for method chaining */ public TransferInfo type(TypeEnum type) { @@ -1038,17 +687,8 @@ public TransferInfo type(TypeEnum type) { } /** - * The type of transfer. Possible values: - **bankTransfer**: for push transfers to a transfer - * instrument or a bank account. The `category` must be **bank**. - - * **internalTransfer**: for push transfers between balance accounts. The `category` - * must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between - * balance accounts. The `category` must be **internal**. - * - * @return type The type of transfer. Possible values: - **bankTransfer**: for push transfers to a - * transfer instrument or a bank account. The `category` must be **bank**. - - * **internalTransfer**: for push transfers between balance accounts. The `category` - * must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between - * balance accounts. The `category` must be **internal**. + * The type of transfer. Possible values: - **bankTransfer**: for push transfers to a transfer instrument or a bank account. The `category` must be **bank**. - **internalTransfer**: for push transfers between balance accounts. The `category` must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between balance accounts. The `category` must be **internal**. + * @return type The type of transfer. Possible values: - **bankTransfer**: for push transfers to a transfer instrument or a bank account. The `category` must be **bank**. - **internalTransfer**: for push transfers between balance accounts. The `category` must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between balance accounts. The `category` must be **internal**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1057,17 +697,9 @@ public TypeEnum getType() { } /** - * The type of transfer. Possible values: - **bankTransfer**: for push transfers to a transfer - * instrument or a bank account. The `category` must be **bank**. - - * **internalTransfer**: for push transfers between balance accounts. The `category` - * must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between - * balance accounts. The `category` must be **internal**. + * The type of transfer. Possible values: - **bankTransfer**: for push transfers to a transfer instrument or a bank account. The `category` must be **bank**. - **internalTransfer**: for push transfers between balance accounts. The `category` must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between balance accounts. The `category` must be **internal**. * - * @param type The type of transfer. Possible values: - **bankTransfer**: for push transfers to a - * transfer instrument or a bank account. The `category` must be **bank**. - - * **internalTransfer**: for push transfers between balance accounts. The `category` - * must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between - * balance accounts. The `category` must be **internal**. + * @param type The type of transfer. Possible values: - **bankTransfer**: for push transfers to a transfer instrument or a bank account. The `category` must be **bank**. - **internalTransfer**: for push transfers between balance accounts. The `category` must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between balance accounts. The `category` must be **internal**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1078,7 +710,7 @@ public void setType(TypeEnum type) { /** * ultimateParty * - * @param ultimateParty + * @param ultimateParty * @return the current {@code TransferInfo} instance, allowing for method chaining */ public TransferInfo ultimateParty(UltimatePartyIdentification ultimateParty) { @@ -1088,8 +720,7 @@ public TransferInfo ultimateParty(UltimatePartyIdentification ultimateParty) { /** * Get ultimateParty - * - * @return ultimateParty + * @return ultimateParty */ @JsonProperty(JSON_PROPERTY_ULTIMATE_PARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1100,7 +731,7 @@ public UltimatePartyIdentification getUltimateParty() { /** * ultimateParty * - * @param ultimateParty + * @param ultimateParty */ @JsonProperty(JSON_PROPERTY_ULTIMATE_PARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1108,7 +739,9 @@ public void setUltimateParty(UltimatePartyIdentification ultimateParty) { this.ultimateParty = ultimateParty; } - /** Return true if this TransferInfo object is equal to o. */ + /** + * Return true if this TransferInfo object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -1118,39 +751,25 @@ public boolean equals(Object o) { return false; } TransferInfo transferInfo = (TransferInfo) o; - return Objects.equals(this.amount, transferInfo.amount) - && Objects.equals(this.balanceAccountId, transferInfo.balanceAccountId) - && Objects.equals(this.category, transferInfo.category) - && Objects.equals(this.counterparty, transferInfo.counterparty) - && Objects.equals(this.description, transferInfo.description) - && Objects.equals(this.executionDate, transferInfo.executionDate) - && Objects.equals(this.paymentInstrumentId, transferInfo.paymentInstrumentId) - && Objects.equals(this.priorities, transferInfo.priorities) - && Objects.equals(this.priority, transferInfo.priority) - && Objects.equals(this.reference, transferInfo.reference) - && Objects.equals(this.referenceForBeneficiary, transferInfo.referenceForBeneficiary) - && Objects.equals(this.review, transferInfo.review) - && Objects.equals(this.type, transferInfo.type) - && Objects.equals(this.ultimateParty, transferInfo.ultimateParty); + return Objects.equals(this.amount, transferInfo.amount) && + Objects.equals(this.balanceAccountId, transferInfo.balanceAccountId) && + Objects.equals(this.category, transferInfo.category) && + Objects.equals(this.counterparty, transferInfo.counterparty) && + Objects.equals(this.description, transferInfo.description) && + Objects.equals(this.executionDate, transferInfo.executionDate) && + Objects.equals(this.paymentInstrumentId, transferInfo.paymentInstrumentId) && + Objects.equals(this.priorities, transferInfo.priorities) && + Objects.equals(this.priority, transferInfo.priority) && + Objects.equals(this.reference, transferInfo.reference) && + Objects.equals(this.referenceForBeneficiary, transferInfo.referenceForBeneficiary) && + Objects.equals(this.review, transferInfo.review) && + Objects.equals(this.type, transferInfo.type) && + Objects.equals(this.ultimateParty, transferInfo.ultimateParty); } @Override public int hashCode() { - return Objects.hash( - amount, - balanceAccountId, - category, - counterparty, - description, - executionDate, - paymentInstrumentId, - priorities, - priority, - reference, - referenceForBeneficiary, - review, - type, - ultimateParty); + return Objects.hash(amount, balanceAccountId, category, counterparty, description, executionDate, paymentInstrumentId, priorities, priority, reference, referenceForBeneficiary, review, type, ultimateParty); } @Override @@ -1163,15 +782,11 @@ public String toString() { sb.append(" counterparty: ").append(toIndentedString(counterparty)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" executionDate: ").append(toIndentedString(executionDate)).append("\n"); - sb.append(" paymentInstrumentId: ") - .append(toIndentedString(paymentInstrumentId)) - .append("\n"); + sb.append(" paymentInstrumentId: ").append(toIndentedString(paymentInstrumentId)).append("\n"); sb.append(" priorities: ").append(toIndentedString(priorities)).append("\n"); sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); - sb.append(" referenceForBeneficiary: ") - .append(toIndentedString(referenceForBeneficiary)) - .append("\n"); + sb.append(" referenceForBeneficiary: ").append(toIndentedString(referenceForBeneficiary)).append("\n"); sb.append(" review: ").append(toIndentedString(review)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" ultimateParty: ").append(toIndentedString(ultimateParty)).append("\n"); @@ -1180,7 +795,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1189,7 +805,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransferInfo given an JSON string * * @param jsonString JSON string @@ -1199,12 +815,11 @@ private String toIndentedString(Object o) { public static TransferInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferInfo.class); } - - /** - * Convert an instance of TransferInfo to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransferInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/TransferNotificationCounterParty.java b/src/main/java/com/adyen/model/transfers/TransferNotificationCounterParty.java index f2baaae5d..99473e94b 100644 --- a/src/main/java/com/adyen/model/transfers/TransferNotificationCounterParty.java +++ b/src/main/java/com/adyen/model/transfers/TransferNotificationCounterParty.java @@ -2,22 +2,34 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.BankAccountV3; +import com.adyen.model.transfers.Card; +import com.adyen.model.transfers.TransferNotificationMerchantData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TransferNotificationCounterParty */ + +/** + * TransferNotificationCounterParty + */ @JsonPropertyOrder({ TransferNotificationCounterParty.JSON_PROPERTY_BALANCE_ACCOUNT_ID, TransferNotificationCounterParty.JSON_PROPERTY_BANK_ACCOUNT, @@ -25,6 +37,7 @@ TransferNotificationCounterParty.JSON_PROPERTY_MERCHANT, TransferNotificationCounterParty.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID }) + public class TransferNotificationCounterParty { public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; @@ -41,16 +54,14 @@ public class TransferNotificationCounterParty { public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_ID = "transferInstrumentId"; private String transferInstrumentId; - public TransferNotificationCounterParty() {} + public TransferNotificationCounterParty() { + } /** - * The unique identifier of the counterparty [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). * - * @param balanceAccountId The unique identifier of the counterparty [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). - * @return the current {@code TransferNotificationCounterParty} instance, allowing for method - * chaining + * @param balanceAccountId The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * @return the current {@code TransferNotificationCounterParty} instance, allowing for method chaining */ public TransferNotificationCounterParty balanceAccountId(String balanceAccountId) { this.balanceAccountId = balanceAccountId; @@ -58,11 +69,8 @@ public TransferNotificationCounterParty balanceAccountId(String balanceAccountId } /** - * The unique identifier of the counterparty [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). - * - * @return balanceAccountId The unique identifier of the counterparty [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * @return balanceAccountId The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,11 +79,9 @@ public String getBalanceAccountId() { } /** - * The unique identifier of the counterparty [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). * - * @param balanceAccountId The unique identifier of the counterparty [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * @param balanceAccountId The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -86,9 +92,8 @@ public void setBalanceAccountId(String balanceAccountId) { /** * bankAccount * - * @param bankAccount - * @return the current {@code TransferNotificationCounterParty} instance, allowing for method - * chaining + * @param bankAccount + * @return the current {@code TransferNotificationCounterParty} instance, allowing for method chaining */ public TransferNotificationCounterParty bankAccount(BankAccountV3 bankAccount) { this.bankAccount = bankAccount; @@ -97,8 +102,7 @@ public TransferNotificationCounterParty bankAccount(BankAccountV3 bankAccount) { /** * Get bankAccount - * - * @return bankAccount + * @return bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -109,7 +113,7 @@ public BankAccountV3 getBankAccount() { /** * bankAccount * - * @param bankAccount + * @param bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -120,9 +124,8 @@ public void setBankAccount(BankAccountV3 bankAccount) { /** * card * - * @param card - * @return the current {@code TransferNotificationCounterParty} instance, allowing for method - * chaining + * @param card + * @return the current {@code TransferNotificationCounterParty} instance, allowing for method chaining */ public TransferNotificationCounterParty card(Card card) { this.card = card; @@ -131,8 +134,7 @@ public TransferNotificationCounterParty card(Card card) { /** * Get card - * - * @return card + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,7 +145,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -154,9 +156,8 @@ public void setCard(Card card) { /** * merchant * - * @param merchant - * @return the current {@code TransferNotificationCounterParty} instance, allowing for method - * chaining + * @param merchant + * @return the current {@code TransferNotificationCounterParty} instance, allowing for method chaining */ public TransferNotificationCounterParty merchant(TransferNotificationMerchantData merchant) { this.merchant = merchant; @@ -165,8 +166,7 @@ public TransferNotificationCounterParty merchant(TransferNotificationMerchantDat /** * Get merchant - * - * @return merchant + * @return merchant */ @JsonProperty(JSON_PROPERTY_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,7 +177,7 @@ public TransferNotificationMerchantData getMerchant() { /** * merchant * - * @param merchant + * @param merchant */ @JsonProperty(JSON_PROPERTY_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,13 +186,10 @@ public void setMerchant(TransferNotificationMerchantData merchant) { } /** - * The unique identifier of the counterparty [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). * - * @param transferInstrumentId The unique identifier of the counterparty [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). - * @return the current {@code TransferNotificationCounterParty} instance, allowing for method - * chaining + * @param transferInstrumentId The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * @return the current {@code TransferNotificationCounterParty} instance, allowing for method chaining */ public TransferNotificationCounterParty transferInstrumentId(String transferInstrumentId) { this.transferInstrumentId = transferInstrumentId; @@ -200,11 +197,8 @@ public TransferNotificationCounterParty transferInstrumentId(String transferInst } /** - * The unique identifier of the counterparty [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). - * - * @return transferInstrumentId The unique identifier of the counterparty [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * @return transferInstrumentId The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -213,11 +207,9 @@ public String getTransferInstrumentId() { } /** - * The unique identifier of the counterparty [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). * - * @param transferInstrumentId The unique identifier of the counterparty [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * @param transferInstrumentId The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -225,7 +217,9 @@ public void setTransferInstrumentId(String transferInstrumentId) { this.transferInstrumentId = transferInstrumentId; } - /** Return true if this TransferNotificationCounterParty object is equal to o. */ + /** + * Return true if this TransferNotificationCounterParty object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -234,14 +228,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TransferNotificationCounterParty transferNotificationCounterParty = - (TransferNotificationCounterParty) o; - return Objects.equals(this.balanceAccountId, transferNotificationCounterParty.balanceAccountId) - && Objects.equals(this.bankAccount, transferNotificationCounterParty.bankAccount) - && Objects.equals(this.card, transferNotificationCounterParty.card) - && Objects.equals(this.merchant, transferNotificationCounterParty.merchant) - && Objects.equals( - this.transferInstrumentId, transferNotificationCounterParty.transferInstrumentId); + TransferNotificationCounterParty transferNotificationCounterParty = (TransferNotificationCounterParty) o; + return Objects.equals(this.balanceAccountId, transferNotificationCounterParty.balanceAccountId) && + Objects.equals(this.bankAccount, transferNotificationCounterParty.bankAccount) && + Objects.equals(this.card, transferNotificationCounterParty.card) && + Objects.equals(this.merchant, transferNotificationCounterParty.merchant) && + Objects.equals(this.transferInstrumentId, transferNotificationCounterParty.transferInstrumentId); } @Override @@ -257,15 +249,14 @@ public String toString() { sb.append(" bankAccount: ").append(toIndentedString(bankAccount)).append("\n"); sb.append(" card: ").append(toIndentedString(card)).append("\n"); sb.append(" merchant: ").append(toIndentedString(merchant)).append("\n"); - sb.append(" transferInstrumentId: ") - .append(toIndentedString(transferInstrumentId)) - .append("\n"); + sb.append(" transferInstrumentId: ").append(toIndentedString(transferInstrumentId)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -274,24 +265,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransferNotificationCounterParty given an JSON string * * @param jsonString JSON string * @return An instance of TransferNotificationCounterParty - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransferNotificationCounterParty + * @throws JsonProcessingException if the JSON string is invalid with respect to TransferNotificationCounterParty */ - public static TransferNotificationCounterParty fromJson(String jsonString) - throws JsonProcessingException { + public static TransferNotificationCounterParty fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferNotificationCounterParty.class); } - - /** - * Convert an instance of TransferNotificationCounterParty to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransferNotificationCounterParty to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/TransferNotificationMerchantData.java b/src/main/java/com/adyen/model/transfers/TransferNotificationMerchantData.java index e2df93fe4..f5df2027a 100644 --- a/src/main/java/com/adyen/model/transfers/TransferNotificationMerchantData.java +++ b/src/main/java/com/adyen/model/transfers/TransferNotificationMerchantData.java @@ -2,22 +2,31 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TransferNotificationMerchantData */ + +/** + * TransferNotificationMerchantData + */ @JsonPropertyOrder({ TransferNotificationMerchantData.JSON_PROPERTY_ACQUIRER_ID, TransferNotificationMerchantData.JSON_PROPERTY_CITY, @@ -27,6 +36,7 @@ TransferNotificationMerchantData.JSON_PROPERTY_NAME, TransferNotificationMerchantData.JSON_PROPERTY_POSTAL_CODE }) + public class TransferNotificationMerchantData { public static final String JSON_PROPERTY_ACQUIRER_ID = "acquirerId"; private String acquirerId; @@ -49,14 +59,14 @@ public class TransferNotificationMerchantData { public static final String JSON_PROPERTY_POSTAL_CODE = "postalCode"; private String postalCode; - public TransferNotificationMerchantData() {} + public TransferNotificationMerchantData() { + } /** * The unique identifier of the merchant's acquirer. * * @param acquirerId The unique identifier of the merchant's acquirer. - * @return the current {@code TransferNotificationMerchantData} instance, allowing for method - * chaining + * @return the current {@code TransferNotificationMerchantData} instance, allowing for method chaining */ public TransferNotificationMerchantData acquirerId(String acquirerId) { this.acquirerId = acquirerId; @@ -65,7 +75,6 @@ public TransferNotificationMerchantData acquirerId(String acquirerId) { /** * The unique identifier of the merchant's acquirer. - * * @return acquirerId The unique identifier of the merchant's acquirer. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_ID) @@ -89,8 +98,7 @@ public void setAcquirerId(String acquirerId) { * The city where the merchant is located. * * @param city The city where the merchant is located. - * @return the current {@code TransferNotificationMerchantData} instance, allowing for method - * chaining + * @return the current {@code TransferNotificationMerchantData} instance, allowing for method chaining */ public TransferNotificationMerchantData city(String city) { this.city = city; @@ -99,7 +107,6 @@ public TransferNotificationMerchantData city(String city) { /** * The city where the merchant is located. - * * @return city The city where the merchant is located. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -123,8 +130,7 @@ public void setCity(String city) { * The country where the merchant is located. * * @param country The country where the merchant is located. - * @return the current {@code TransferNotificationMerchantData} instance, allowing for method - * chaining + * @return the current {@code TransferNotificationMerchantData} instance, allowing for method chaining */ public TransferNotificationMerchantData country(String country) { this.country = country; @@ -133,7 +139,6 @@ public TransferNotificationMerchantData country(String country) { /** * The country where the merchant is located. - * * @return country The country where the merchant is located. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @@ -157,8 +162,7 @@ public void setCountry(String country) { * The merchant category code. * * @param mcc The merchant category code. - * @return the current {@code TransferNotificationMerchantData} instance, allowing for method - * chaining + * @return the current {@code TransferNotificationMerchantData} instance, allowing for method chaining */ public TransferNotificationMerchantData mcc(String mcc) { this.mcc = mcc; @@ -167,7 +171,6 @@ public TransferNotificationMerchantData mcc(String mcc) { /** * The merchant category code. - * * @return mcc The merchant category code. */ @JsonProperty(JSON_PROPERTY_MCC) @@ -191,8 +194,7 @@ public void setMcc(String mcc) { * The unique identifier of the merchant. * * @param merchantId The unique identifier of the merchant. - * @return the current {@code TransferNotificationMerchantData} instance, allowing for method - * chaining + * @return the current {@code TransferNotificationMerchantData} instance, allowing for method chaining */ public TransferNotificationMerchantData merchantId(String merchantId) { this.merchantId = merchantId; @@ -201,7 +203,6 @@ public TransferNotificationMerchantData merchantId(String merchantId) { /** * The unique identifier of the merchant. - * * @return merchantId The unique identifier of the merchant. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @@ -225,8 +226,7 @@ public void setMerchantId(String merchantId) { * The name of the merchant's shop or service. * * @param name The name of the merchant's shop or service. - * @return the current {@code TransferNotificationMerchantData} instance, allowing for method - * chaining + * @return the current {@code TransferNotificationMerchantData} instance, allowing for method chaining */ public TransferNotificationMerchantData name(String name) { this.name = name; @@ -235,7 +235,6 @@ public TransferNotificationMerchantData name(String name) { /** * The name of the merchant's shop or service. - * * @return name The name of the merchant's shop or service. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -259,8 +258,7 @@ public void setName(String name) { * The postal code of the merchant. * * @param postalCode The postal code of the merchant. - * @return the current {@code TransferNotificationMerchantData} instance, allowing for method - * chaining + * @return the current {@code TransferNotificationMerchantData} instance, allowing for method chaining */ public TransferNotificationMerchantData postalCode(String postalCode) { this.postalCode = postalCode; @@ -269,7 +267,6 @@ public TransferNotificationMerchantData postalCode(String postalCode) { /** * The postal code of the merchant. - * * @return postalCode The postal code of the merchant. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @@ -289,7 +286,9 @@ public void setPostalCode(String postalCode) { this.postalCode = postalCode; } - /** Return true if this TransferNotificationMerchantData object is equal to o. */ + /** + * Return true if this TransferNotificationMerchantData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -298,15 +297,14 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TransferNotificationMerchantData transferNotificationMerchantData = - (TransferNotificationMerchantData) o; - return Objects.equals(this.acquirerId, transferNotificationMerchantData.acquirerId) - && Objects.equals(this.city, transferNotificationMerchantData.city) - && Objects.equals(this.country, transferNotificationMerchantData.country) - && Objects.equals(this.mcc, transferNotificationMerchantData.mcc) - && Objects.equals(this.merchantId, transferNotificationMerchantData.merchantId) - && Objects.equals(this.name, transferNotificationMerchantData.name) - && Objects.equals(this.postalCode, transferNotificationMerchantData.postalCode); + TransferNotificationMerchantData transferNotificationMerchantData = (TransferNotificationMerchantData) o; + return Objects.equals(this.acquirerId, transferNotificationMerchantData.acquirerId) && + Objects.equals(this.city, transferNotificationMerchantData.city) && + Objects.equals(this.country, transferNotificationMerchantData.country) && + Objects.equals(this.mcc, transferNotificationMerchantData.mcc) && + Objects.equals(this.merchantId, transferNotificationMerchantData.merchantId) && + Objects.equals(this.name, transferNotificationMerchantData.name) && + Objects.equals(this.postalCode, transferNotificationMerchantData.postalCode); } @Override @@ -330,7 +328,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -339,24 +338,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransferNotificationMerchantData given an JSON string * * @param jsonString JSON string * @return An instance of TransferNotificationMerchantData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransferNotificationMerchantData + * @throws JsonProcessingException if the JSON string is invalid with respect to TransferNotificationMerchantData */ - public static TransferNotificationMerchantData fromJson(String jsonString) - throws JsonProcessingException { + public static TransferNotificationMerchantData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferNotificationMerchantData.class); } - - /** - * Convert an instance of TransferNotificationMerchantData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransferNotificationMerchantData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/TransferNotificationValidationFact.java b/src/main/java/com/adyen/model/transfers/TransferNotificationValidationFact.java index 39470d60c..39b8915c2 100644 --- a/src/main/java/com/adyen/model/transfers/TransferNotificationValidationFact.java +++ b/src/main/java/com/adyen/model/transfers/TransferNotificationValidationFact.java @@ -2,26 +2,36 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TransferNotificationValidationFact */ + +/** + * TransferNotificationValidationFact + */ @JsonPropertyOrder({ TransferNotificationValidationFact.JSON_PROPERTY_RESULT, TransferNotificationValidationFact.JSON_PROPERTY_TYPE }) + public class TransferNotificationValidationFact { public static final String JSON_PROPERTY_RESULT = "result"; private String result; @@ -29,14 +39,14 @@ public class TransferNotificationValidationFact { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public TransferNotificationValidationFact() {} + public TransferNotificationValidationFact() { + } /** * The evaluation result of the validation fact. * * @param result The evaluation result of the validation fact. - * @return the current {@code TransferNotificationValidationFact} instance, allowing for method - * chaining + * @return the current {@code TransferNotificationValidationFact} instance, allowing for method chaining */ public TransferNotificationValidationFact result(String result) { this.result = result; @@ -45,7 +55,6 @@ public TransferNotificationValidationFact result(String result) { /** * The evaluation result of the validation fact. - * * @return result The evaluation result of the validation fact. */ @JsonProperty(JSON_PROPERTY_RESULT) @@ -69,8 +78,7 @@ public void setResult(String result) { * The type of the validation fact. * * @param type The type of the validation fact. - * @return the current {@code TransferNotificationValidationFact} instance, allowing for method - * chaining + * @return the current {@code TransferNotificationValidationFact} instance, allowing for method chaining */ public TransferNotificationValidationFact type(String type) { this.type = type; @@ -79,7 +87,6 @@ public TransferNotificationValidationFact type(String type) { /** * The type of the validation fact. - * * @return type The type of the validation fact. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -99,7 +106,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this TransferNotificationValidationFact object is equal to o. */ + /** + * Return true if this TransferNotificationValidationFact object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -108,10 +117,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TransferNotificationValidationFact transferNotificationValidationFact = - (TransferNotificationValidationFact) o; - return Objects.equals(this.result, transferNotificationValidationFact.result) - && Objects.equals(this.type, transferNotificationValidationFact.type); + TransferNotificationValidationFact transferNotificationValidationFact = (TransferNotificationValidationFact) o; + return Objects.equals(this.result, transferNotificationValidationFact.result) && + Objects.equals(this.type, transferNotificationValidationFact.type); } @Override @@ -130,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -139,24 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransferNotificationValidationFact given an JSON string * * @param jsonString JSON string * @return An instance of TransferNotificationValidationFact - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransferNotificationValidationFact + * @throws JsonProcessingException if the JSON string is invalid with respect to TransferNotificationValidationFact */ - public static TransferNotificationValidationFact fromJson(String jsonString) - throws JsonProcessingException { + public static TransferNotificationValidationFact fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferNotificationValidationFact.class); } - - /** - * Convert an instance of TransferNotificationValidationFact to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransferNotificationValidationFact to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/TransferRequestReview.java b/src/main/java/com/adyen/model/transfers/TransferRequestReview.java index dc0e34813..5136c9d2d 100644 --- a/src/main/java/com/adyen/model/transfers/TransferRequestReview.java +++ b/src/main/java/com/adyen/model/transfers/TransferRequestReview.java @@ -2,44 +2,50 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TransferRequestReview */ + +/** + * TransferRequestReview + */ @JsonPropertyOrder({ TransferRequestReview.JSON_PROPERTY_NUMBER_OF_APPROVALS_REQUIRED, TransferRequestReview.JSON_PROPERTY_SCA_ON_APPROVAL }) + public class TransferRequestReview { - public static final String JSON_PROPERTY_NUMBER_OF_APPROVALS_REQUIRED = - "numberOfApprovalsRequired"; + public static final String JSON_PROPERTY_NUMBER_OF_APPROVALS_REQUIRED = "numberOfApprovalsRequired"; private Integer numberOfApprovalsRequired; public static final String JSON_PROPERTY_SCA_ON_APPROVAL = "scaOnApproval"; private Boolean scaOnApproval; - public TransferRequestReview() {} + public TransferRequestReview() { + } /** - * Specifies the number of - * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) - * required to process the transfer. + * Specifies the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. * - * @param numberOfApprovalsRequired Specifies the number of - * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) - * required to process the transfer. + * @param numberOfApprovalsRequired Specifies the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. * @return the current {@code TransferRequestReview} instance, allowing for method chaining */ public TransferRequestReview numberOfApprovalsRequired(Integer numberOfApprovalsRequired) { @@ -48,13 +54,8 @@ public TransferRequestReview numberOfApprovalsRequired(Integer numberOfApprovals } /** - * Specifies the number of - * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) - * required to process the transfer. - * - * @return numberOfApprovalsRequired Specifies the number of - * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) - * required to process the transfer. + * Specifies the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. + * @return numberOfApprovalsRequired Specifies the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. */ @JsonProperty(JSON_PROPERTY_NUMBER_OF_APPROVALS_REQUIRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,13 +64,9 @@ public Integer getNumberOfApprovalsRequired() { } /** - * Specifies the number of - * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) - * required to process the transfer. + * Specifies the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. * - * @param numberOfApprovalsRequired Specifies the number of - * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) - * required to process the transfer. + * @param numberOfApprovalsRequired Specifies the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. */ @JsonProperty(JSON_PROPERTY_NUMBER_OF_APPROVALS_REQUIRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -78,16 +75,9 @@ public void setNumberOfApprovalsRequired(Integer numberOfApprovalsRequired) { } /** - * Specifies whether you will initiate Strong Customer Authentication (SCA) in thePOST - * [/transfers/approve](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) - * request. Only applies to transfers made with an Adyen [business - * account](https://docs.adyen.com/platforms/business-accounts). + * Specifies whether you will initiate Strong Customer Authentication (SCA) in thePOST [/transfers/approve](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) request. Only applies to transfers made with an Adyen [business account](https://docs.adyen.com/platforms/business-accounts). * - * @param scaOnApproval Specifies whether you will initiate Strong Customer Authentication (SCA) - * in thePOST - * [/transfers/approve](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) - * request. Only applies to transfers made with an Adyen [business - * account](https://docs.adyen.com/platforms/business-accounts). + * @param scaOnApproval Specifies whether you will initiate Strong Customer Authentication (SCA) in thePOST [/transfers/approve](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) request. Only applies to transfers made with an Adyen [business account](https://docs.adyen.com/platforms/business-accounts). * @return the current {@code TransferRequestReview} instance, allowing for method chaining */ public TransferRequestReview scaOnApproval(Boolean scaOnApproval) { @@ -96,16 +86,8 @@ public TransferRequestReview scaOnApproval(Boolean scaOnApproval) { } /** - * Specifies whether you will initiate Strong Customer Authentication (SCA) in thePOST - * [/transfers/approve](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) - * request. Only applies to transfers made with an Adyen [business - * account](https://docs.adyen.com/platforms/business-accounts). - * - * @return scaOnApproval Specifies whether you will initiate Strong Customer Authentication (SCA) - * in thePOST - * [/transfers/approve](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) - * request. Only applies to transfers made with an Adyen [business - * account](https://docs.adyen.com/platforms/business-accounts). + * Specifies whether you will initiate Strong Customer Authentication (SCA) in thePOST [/transfers/approve](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) request. Only applies to transfers made with an Adyen [business account](https://docs.adyen.com/platforms/business-accounts). + * @return scaOnApproval Specifies whether you will initiate Strong Customer Authentication (SCA) in thePOST [/transfers/approve](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) request. Only applies to transfers made with an Adyen [business account](https://docs.adyen.com/platforms/business-accounts). */ @JsonProperty(JSON_PROPERTY_SCA_ON_APPROVAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,16 +96,9 @@ public Boolean getScaOnApproval() { } /** - * Specifies whether you will initiate Strong Customer Authentication (SCA) in thePOST - * [/transfers/approve](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) - * request. Only applies to transfers made with an Adyen [business - * account](https://docs.adyen.com/platforms/business-accounts). + * Specifies whether you will initiate Strong Customer Authentication (SCA) in thePOST [/transfers/approve](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) request. Only applies to transfers made with an Adyen [business account](https://docs.adyen.com/platforms/business-accounts). * - * @param scaOnApproval Specifies whether you will initiate Strong Customer Authentication (SCA) - * in thePOST - * [/transfers/approve](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) - * request. Only applies to transfers made with an Adyen [business - * account](https://docs.adyen.com/platforms/business-accounts). + * @param scaOnApproval Specifies whether you will initiate Strong Customer Authentication (SCA) in thePOST [/transfers/approve](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) request. Only applies to transfers made with an Adyen [business account](https://docs.adyen.com/platforms/business-accounts). */ @JsonProperty(JSON_PROPERTY_SCA_ON_APPROVAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -131,7 +106,9 @@ public void setScaOnApproval(Boolean scaOnApproval) { this.scaOnApproval = scaOnApproval; } - /** Return true if this TransferRequestReview object is equal to o. */ + /** + * Return true if this TransferRequestReview object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -141,9 +118,8 @@ public boolean equals(Object o) { return false; } TransferRequestReview transferRequestReview = (TransferRequestReview) o; - return Objects.equals( - this.numberOfApprovalsRequired, transferRequestReview.numberOfApprovalsRequired) - && Objects.equals(this.scaOnApproval, transferRequestReview.scaOnApproval); + return Objects.equals(this.numberOfApprovalsRequired, transferRequestReview.numberOfApprovalsRequired) && + Objects.equals(this.scaOnApproval, transferRequestReview.scaOnApproval); } @Override @@ -155,16 +131,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TransferRequestReview {\n"); - sb.append(" numberOfApprovalsRequired: ") - .append(toIndentedString(numberOfApprovalsRequired)) - .append("\n"); + sb.append(" numberOfApprovalsRequired: ").append(toIndentedString(numberOfApprovalsRequired)).append("\n"); sb.append(" scaOnApproval: ").append(toIndentedString(scaOnApproval)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,23 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransferRequestReview given an JSON string * * @param jsonString JSON string * @return An instance of TransferRequestReview - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransferRequestReview + * @throws JsonProcessingException if the JSON string is invalid with respect to TransferRequestReview */ public static TransferRequestReview fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferRequestReview.class); } - - /** - * Convert an instance of TransferRequestReview to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransferRequestReview to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/TransferReview.java b/src/main/java/com/adyen/model/transfers/TransferReview.java index 686389247..800c20747 100644 --- a/src/main/java/com/adyen/model/transfers/TransferReview.java +++ b/src/main/java/com/adyen/model/transfers/TransferReview.java @@ -2,40 +2,45 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** TransferReview */ +/** + * TransferReview + */ @JsonPropertyOrder({ TransferReview.JSON_PROPERTY_NUMBER_OF_APPROVALS_REQUIRED, TransferReview.JSON_PROPERTY_SCA_ON_APPROVAL }) + public class TransferReview { - public static final String JSON_PROPERTY_NUMBER_OF_APPROVALS_REQUIRED = - "numberOfApprovalsRequired"; + public static final String JSON_PROPERTY_NUMBER_OF_APPROVALS_REQUIRED = "numberOfApprovalsRequired"; private Integer numberOfApprovalsRequired; /** - * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: - * **required**, **notApplicable**. + * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **notApplicable**. */ public enum ScaOnApprovalEnum { + COMPLETED(String.valueOf("completed")), NOTAPPLICABLE(String.valueOf("notApplicable")), @@ -47,7 +52,7 @@ public enum ScaOnApprovalEnum { private String value; ScaOnApprovalEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -68,11 +73,7 @@ public static ScaOnApprovalEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ScaOnApprovalEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ScaOnApprovalEnum.values())); + LOG.warning("ScaOnApprovalEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ScaOnApprovalEnum.values())); return null; } } @@ -80,16 +81,13 @@ public static ScaOnApprovalEnum fromValue(String value) { public static final String JSON_PROPERTY_SCA_ON_APPROVAL = "scaOnApproval"; private ScaOnApprovalEnum scaOnApproval; - public TransferReview() {} + public TransferReview() { + } /** - * Shows the number of - * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) - * required to process the transfer. + * Shows the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. * - * @param numberOfApprovalsRequired Shows the number of - * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) - * required to process the transfer. + * @param numberOfApprovalsRequired Shows the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. * @return the current {@code TransferReview} instance, allowing for method chaining */ public TransferReview numberOfApprovalsRequired(Integer numberOfApprovalsRequired) { @@ -98,13 +96,8 @@ public TransferReview numberOfApprovalsRequired(Integer numberOfApprovalsRequire } /** - * Shows the number of - * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) - * required to process the transfer. - * - * @return numberOfApprovalsRequired Shows the number of - * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) - * required to process the transfer. + * Shows the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. + * @return numberOfApprovalsRequired Shows the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. */ @JsonProperty(JSON_PROPERTY_NUMBER_OF_APPROVALS_REQUIRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,13 +106,9 @@ public Integer getNumberOfApprovalsRequired() { } /** - * Shows the number of - * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) - * required to process the transfer. + * Shows the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. * - * @param numberOfApprovalsRequired Shows the number of - * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) - * required to process the transfer. + * @param numberOfApprovalsRequired Shows the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. */ @JsonProperty(JSON_PROPERTY_NUMBER_OF_APPROVALS_REQUIRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,11 +117,9 @@ public void setNumberOfApprovalsRequired(Integer numberOfApprovalsRequired) { } /** - * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: - * **required**, **notApplicable**. + * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **notApplicable**. * - * @param scaOnApproval Shows the status of the Strong Customer Authentication (SCA) process. - * Possible values: **required**, **notApplicable**. + * @param scaOnApproval Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **notApplicable**. * @return the current {@code TransferReview} instance, allowing for method chaining */ public TransferReview scaOnApproval(ScaOnApprovalEnum scaOnApproval) { @@ -141,11 +128,8 @@ public TransferReview scaOnApproval(ScaOnApprovalEnum scaOnApproval) { } /** - * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: - * **required**, **notApplicable**. - * - * @return scaOnApproval Shows the status of the Strong Customer Authentication (SCA) process. - * Possible values: **required**, **notApplicable**. + * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **notApplicable**. + * @return scaOnApproval Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **notApplicable**. */ @JsonProperty(JSON_PROPERTY_SCA_ON_APPROVAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -154,11 +138,9 @@ public ScaOnApprovalEnum getScaOnApproval() { } /** - * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: - * **required**, **notApplicable**. + * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **notApplicable**. * - * @param scaOnApproval Shows the status of the Strong Customer Authentication (SCA) process. - * Possible values: **required**, **notApplicable**. + * @param scaOnApproval Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **notApplicable**. */ @JsonProperty(JSON_PROPERTY_SCA_ON_APPROVAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -166,7 +148,9 @@ public void setScaOnApproval(ScaOnApprovalEnum scaOnApproval) { this.scaOnApproval = scaOnApproval; } - /** Return true if this TransferReview object is equal to o. */ + /** + * Return true if this TransferReview object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -176,8 +160,8 @@ public boolean equals(Object o) { return false; } TransferReview transferReview = (TransferReview) o; - return Objects.equals(this.numberOfApprovalsRequired, transferReview.numberOfApprovalsRequired) - && Objects.equals(this.scaOnApproval, transferReview.scaOnApproval); + return Objects.equals(this.numberOfApprovalsRequired, transferReview.numberOfApprovalsRequired) && + Objects.equals(this.scaOnApproval, transferReview.scaOnApproval); } @Override @@ -189,16 +173,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TransferReview {\n"); - sb.append(" numberOfApprovalsRequired: ") - .append(toIndentedString(numberOfApprovalsRequired)) - .append("\n"); + sb.append(" numberOfApprovalsRequired: ").append(toIndentedString(numberOfApprovalsRequired)).append("\n"); sb.append(" scaOnApproval: ").append(toIndentedString(scaOnApproval)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -207,7 +190,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransferReview given an JSON string * * @param jsonString JSON string @@ -217,12 +200,11 @@ private String toIndentedString(Object o) { public static TransferReview fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferReview.class); } - - /** - * Convert an instance of TransferReview to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransferReview to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/TransferServiceRestServiceError.java b/src/main/java/com/adyen/model/transfers/TransferServiceRestServiceError.java index 5a9123bab..c13d087fb 100644 --- a/src/main/java/com/adyen/model/transfers/TransferServiceRestServiceError.java +++ b/src/main/java/com/adyen/model/transfers/TransferServiceRestServiceError.java @@ -2,24 +2,35 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.InvalidField; +import com.adyen.model.transfers.RoutingDetails; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** TransferServiceRestServiceError */ + +/** + * TransferServiceRestServiceError + */ @JsonPropertyOrder({ TransferServiceRestServiceError.JSON_PROPERTY_DETAIL, TransferServiceRestServiceError.JSON_PROPERTY_ERROR_CODE, @@ -32,6 +43,7 @@ TransferServiceRestServiceError.JSON_PROPERTY_TITLE, TransferServiceRestServiceError.JSON_PROPERTY_TYPE }) + public class TransferServiceRestServiceError { public static final String JSON_PROPERTY_DETAIL = "detail"; private String detail; @@ -63,14 +75,14 @@ public class TransferServiceRestServiceError { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public TransferServiceRestServiceError() {} + public TransferServiceRestServiceError() { + } /** * A human-readable explanation specific to this occurrence of the problem. * * @param detail A human-readable explanation specific to this occurrence of the problem. - * @return the current {@code TransferServiceRestServiceError} instance, allowing for method - * chaining + * @return the current {@code TransferServiceRestServiceError} instance, allowing for method chaining */ public TransferServiceRestServiceError detail(String detail) { this.detail = detail; @@ -79,7 +91,6 @@ public TransferServiceRestServiceError detail(String detail) { /** * A human-readable explanation specific to this occurrence of the problem. - * * @return detail A human-readable explanation specific to this occurrence of the problem. */ @JsonProperty(JSON_PROPERTY_DETAIL) @@ -103,8 +114,7 @@ public void setDetail(String detail) { * A code that identifies the problem type. * * @param errorCode A code that identifies the problem type. - * @return the current {@code TransferServiceRestServiceError} instance, allowing for method - * chaining + * @return the current {@code TransferServiceRestServiceError} instance, allowing for method chaining */ public TransferServiceRestServiceError errorCode(String errorCode) { this.errorCode = errorCode; @@ -113,7 +123,6 @@ public TransferServiceRestServiceError errorCode(String errorCode) { /** * A code that identifies the problem type. - * * @return errorCode A code that identifies the problem type. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -137,8 +146,7 @@ public void setErrorCode(String errorCode) { * A unique URI that identifies the specific occurrence of the problem. * * @param instance A unique URI that identifies the specific occurrence of the problem. - * @return the current {@code TransferServiceRestServiceError} instance, allowing for method - * chaining + * @return the current {@code TransferServiceRestServiceError} instance, allowing for method chaining */ public TransferServiceRestServiceError instance(String instance) { this.instance = instance; @@ -147,7 +155,6 @@ public TransferServiceRestServiceError instance(String instance) { /** * A unique URI that identifies the specific occurrence of the problem. - * * @return instance A unique URI that identifies the specific occurrence of the problem. */ @JsonProperty(JSON_PROPERTY_INSTANCE) @@ -171,8 +178,7 @@ public void setInstance(String instance) { * Detailed explanation of each validation error, when applicable. * * @param invalidFields Detailed explanation of each validation error, when applicable. - * @return the current {@code TransferServiceRestServiceError} instance, allowing for method - * chaining + * @return the current {@code TransferServiceRestServiceError} instance, allowing for method chaining */ public TransferServiceRestServiceError invalidFields(List invalidFields) { this.invalidFields = invalidFields; @@ -189,7 +195,6 @@ public TransferServiceRestServiceError addInvalidFieldsItem(InvalidField invalid /** * Detailed explanation of each validation error, when applicable. - * * @return invalidFields Detailed explanation of each validation error, when applicable. */ @JsonProperty(JSON_PROPERTY_INVALID_FIELDS) @@ -212,10 +217,8 @@ public void setInvalidFields(List invalidFields) { /** * A unique reference for the request, essentially the same as `pspReference`. * - * @param requestId A unique reference for the request, essentially the same as - * `pspReference`. - * @return the current {@code TransferServiceRestServiceError} instance, allowing for method - * chaining + * @param requestId A unique reference for the request, essentially the same as `pspReference`. + * @return the current {@code TransferServiceRestServiceError} instance, allowing for method chaining */ public TransferServiceRestServiceError requestId(String requestId) { this.requestId = requestId; @@ -224,9 +227,7 @@ public TransferServiceRestServiceError requestId(String requestId) { /** * A unique reference for the request, essentially the same as `pspReference`. - * - * @return requestId A unique reference for the request, essentially the same as - * `pspReference`. + * @return requestId A unique reference for the request, essentially the same as `pspReference`. */ @JsonProperty(JSON_PROPERTY_REQUEST_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,8 +238,7 @@ public String getRequestId() { /** * A unique reference for the request, essentially the same as `pspReference`. * - * @param requestId A unique reference for the request, essentially the same as - * `pspReference`. + * @param requestId A unique reference for the request, essentially the same as `pspReference`. */ @JsonProperty(JSON_PROPERTY_REQUEST_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -249,9 +249,8 @@ public void setRequestId(String requestId) { /** * response * - * @param response - * @return the current {@code TransferServiceRestServiceError} instance, allowing for method - * chaining + * @param response + * @return the current {@code TransferServiceRestServiceError} instance, allowing for method chaining */ public TransferServiceRestServiceError response(Object response) { this.response = response; @@ -260,8 +259,7 @@ public TransferServiceRestServiceError response(Object response) { /** * Get response - * - * @return response + * @return response */ @JsonProperty(JSON_PROPERTY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -272,7 +270,7 @@ public Object getResponse() { /** * response * - * @param response + * @param response */ @JsonProperty(JSON_PROPERTY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -281,13 +279,10 @@ public void setResponse(Object response) { } /** - * Detailed explanation of each attempt to route the transfer with the priorities from the - * request. + * Detailed explanation of each attempt to route the transfer with the priorities from the request. * - * @param routingDetails Detailed explanation of each attempt to route the transfer with the - * priorities from the request. - * @return the current {@code TransferServiceRestServiceError} instance, allowing for method - * chaining + * @param routingDetails Detailed explanation of each attempt to route the transfer with the priorities from the request. + * @return the current {@code TransferServiceRestServiceError} instance, allowing for method chaining */ public TransferServiceRestServiceError routingDetails(List routingDetails) { this.routingDetails = routingDetails; @@ -303,11 +298,8 @@ public TransferServiceRestServiceError addRoutingDetailsItem(RoutingDetails rout } /** - * Detailed explanation of each attempt to route the transfer with the priorities from the - * request. - * - * @return routingDetails Detailed explanation of each attempt to route the transfer with the - * priorities from the request. + * Detailed explanation of each attempt to route the transfer with the priorities from the request. + * @return routingDetails Detailed explanation of each attempt to route the transfer with the priorities from the request. */ @JsonProperty(JSON_PROPERTY_ROUTING_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -316,11 +308,9 @@ public List getRoutingDetails() { } /** - * Detailed explanation of each attempt to route the transfer with the priorities from the - * request. + * Detailed explanation of each attempt to route the transfer with the priorities from the request. * - * @param routingDetails Detailed explanation of each attempt to route the transfer with the - * priorities from the request. + * @param routingDetails Detailed explanation of each attempt to route the transfer with the priorities from the request. */ @JsonProperty(JSON_PROPERTY_ROUTING_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -332,8 +322,7 @@ public void setRoutingDetails(List routingDetails) { * The HTTP status code. * * @param status The HTTP status code. - * @return the current {@code TransferServiceRestServiceError} instance, allowing for method - * chaining + * @return the current {@code TransferServiceRestServiceError} instance, allowing for method chaining */ public TransferServiceRestServiceError status(Integer status) { this.status = status; @@ -342,7 +331,6 @@ public TransferServiceRestServiceError status(Integer status) { /** * The HTTP status code. - * * @return status The HTTP status code. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -366,8 +354,7 @@ public void setStatus(Integer status) { * A short, human-readable summary of the problem type. * * @param title A short, human-readable summary of the problem type. - * @return the current {@code TransferServiceRestServiceError} instance, allowing for method - * chaining + * @return the current {@code TransferServiceRestServiceError} instance, allowing for method chaining */ public TransferServiceRestServiceError title(String title) { this.title = title; @@ -376,7 +363,6 @@ public TransferServiceRestServiceError title(String title) { /** * A short, human-readable summary of the problem type. - * * @return title A short, human-readable summary of the problem type. */ @JsonProperty(JSON_PROPERTY_TITLE) @@ -397,13 +383,10 @@ public void setTitle(String title) { } /** - * A URI that identifies the problem type, pointing to human-readable documentation on this - * problem type. + * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. * - * @param type A URI that identifies the problem type, pointing to human-readable documentation on - * this problem type. - * @return the current {@code TransferServiceRestServiceError} instance, allowing for method - * chaining + * @param type A URI that identifies the problem type, pointing to human-readable documentation on this problem type. + * @return the current {@code TransferServiceRestServiceError} instance, allowing for method chaining */ public TransferServiceRestServiceError type(String type) { this.type = type; @@ -411,11 +394,8 @@ public TransferServiceRestServiceError type(String type) { } /** - * A URI that identifies the problem type, pointing to human-readable documentation on this - * problem type. - * - * @return type A URI that identifies the problem type, pointing to human-readable documentation - * on this problem type. + * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. + * @return type A URI that identifies the problem type, pointing to human-readable documentation on this problem type. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -424,11 +404,9 @@ public String getType() { } /** - * A URI that identifies the problem type, pointing to human-readable documentation on this - * problem type. + * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. * - * @param type A URI that identifies the problem type, pointing to human-readable documentation on - * this problem type. + * @param type A URI that identifies the problem type, pointing to human-readable documentation on this problem type. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -436,7 +414,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this TransferServiceRestServiceError object is equal to o. */ + /** + * Return true if this TransferServiceRestServiceError object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -445,33 +425,22 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TransferServiceRestServiceError transferServiceRestServiceError = - (TransferServiceRestServiceError) o; - return Objects.equals(this.detail, transferServiceRestServiceError.detail) - && Objects.equals(this.errorCode, transferServiceRestServiceError.errorCode) - && Objects.equals(this.instance, transferServiceRestServiceError.instance) - && Objects.equals(this.invalidFields, transferServiceRestServiceError.invalidFields) - && Objects.equals(this.requestId, transferServiceRestServiceError.requestId) - && Objects.equals(this.response, transferServiceRestServiceError.response) - && Objects.equals(this.routingDetails, transferServiceRestServiceError.routingDetails) - && Objects.equals(this.status, transferServiceRestServiceError.status) - && Objects.equals(this.title, transferServiceRestServiceError.title) - && Objects.equals(this.type, transferServiceRestServiceError.type); + TransferServiceRestServiceError transferServiceRestServiceError = (TransferServiceRestServiceError) o; + return Objects.equals(this.detail, transferServiceRestServiceError.detail) && + Objects.equals(this.errorCode, transferServiceRestServiceError.errorCode) && + Objects.equals(this.instance, transferServiceRestServiceError.instance) && + Objects.equals(this.invalidFields, transferServiceRestServiceError.invalidFields) && + Objects.equals(this.requestId, transferServiceRestServiceError.requestId) && + Objects.equals(this.response, transferServiceRestServiceError.response) && + Objects.equals(this.routingDetails, transferServiceRestServiceError.routingDetails) && + Objects.equals(this.status, transferServiceRestServiceError.status) && + Objects.equals(this.title, transferServiceRestServiceError.title) && + Objects.equals(this.type, transferServiceRestServiceError.type); } @Override public int hashCode() { - return Objects.hash( - detail, - errorCode, - instance, - invalidFields, - requestId, - response, - routingDetails, - status, - title, - type); + return Objects.hash(detail, errorCode, instance, invalidFields, requestId, response, routingDetails, status, title, type); } @Override @@ -493,7 +462,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -502,24 +472,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransferServiceRestServiceError given an JSON string * * @param jsonString JSON string * @return An instance of TransferServiceRestServiceError - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransferServiceRestServiceError + * @throws JsonProcessingException if the JSON string is invalid with respect to TransferServiceRestServiceError */ - public static TransferServiceRestServiceError fromJson(String jsonString) - throws JsonProcessingException { + public static TransferServiceRestServiceError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferServiceRestServiceError.class); } - - /** - * Convert an instance of TransferServiceRestServiceError to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransferServiceRestServiceError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/TransferView.java b/src/main/java/com/adyen/model/transfers/TransferView.java index 14b147cea..833ac74b3 100644 --- a/src/main/java/com/adyen/model/transfers/TransferView.java +++ b/src/main/java/com/adyen/model/transfers/TransferView.java @@ -2,27 +2,38 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.TransferCategoryData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TransferView */ + +/** + * TransferView + */ @JsonPropertyOrder({ TransferView.JSON_PROPERTY_CATEGORY_DATA, TransferView.JSON_PROPERTY_ID, TransferView.JSON_PROPERTY_REFERENCE }) + public class TransferView { public static final String JSON_PROPERTY_CATEGORY_DATA = "categoryData"; private TransferCategoryData categoryData; @@ -33,12 +44,13 @@ public class TransferView { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public TransferView() {} + public TransferView() { + } /** * categoryData * - * @param categoryData + * @param categoryData * @return the current {@code TransferView} instance, allowing for method chaining */ public TransferView categoryData(TransferCategoryData categoryData) { @@ -48,8 +60,7 @@ public TransferView categoryData(TransferCategoryData categoryData) { /** * Get categoryData - * - * @return categoryData + * @return categoryData */ @JsonProperty(JSON_PROPERTY_CATEGORY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,7 +71,7 @@ public TransferCategoryData getCategoryData() { /** * categoryData * - * @param categoryData + * @param categoryData */ @JsonProperty(JSON_PROPERTY_CATEGORY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -81,7 +92,6 @@ public TransferView id(String id) { /** * The ID of the resource. - * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -102,15 +112,9 @@ public void setId(String id) { } /** - * The - * [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) - * from the `/transfers` request. If you haven't provided any, Adyen generates a - * unique reference. + * The [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) from the `/transfers` request. If you haven't provided any, Adyen generates a unique reference. * - * @param reference The - * [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) - * from the `/transfers` request. If you haven't provided any, Adyen generates a - * unique reference. + * @param reference The [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) from the `/transfers` request. If you haven't provided any, Adyen generates a unique reference. * @return the current {@code TransferView} instance, allowing for method chaining */ public TransferView reference(String reference) { @@ -119,15 +123,8 @@ public TransferView reference(String reference) { } /** - * The - * [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) - * from the `/transfers` request. If you haven't provided any, Adyen generates a - * unique reference. - * - * @return reference The - * [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) - * from the `/transfers` request. If you haven't provided any, Adyen generates a - * unique reference. + * The [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) from the `/transfers` request. If you haven't provided any, Adyen generates a unique reference. + * @return reference The [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) from the `/transfers` request. If you haven't provided any, Adyen generates a unique reference. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,15 +133,9 @@ public String getReference() { } /** - * The - * [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) - * from the `/transfers` request. If you haven't provided any, Adyen generates a - * unique reference. + * The [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) from the `/transfers` request. If you haven't provided any, Adyen generates a unique reference. * - * @param reference The - * [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) - * from the `/transfers` request. If you haven't provided any, Adyen generates a - * unique reference. + * @param reference The [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) from the `/transfers` request. If you haven't provided any, Adyen generates a unique reference. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,7 +143,9 @@ public void setReference(String reference) { this.reference = reference; } - /** Return true if this TransferView object is equal to o. */ + /** + * Return true if this TransferView object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -162,9 +155,9 @@ public boolean equals(Object o) { return false; } TransferView transferView = (TransferView) o; - return Objects.equals(this.categoryData, transferView.categoryData) - && Objects.equals(this.id, transferView.id) - && Objects.equals(this.reference, transferView.reference); + return Objects.equals(this.categoryData, transferView.categoryData) && + Objects.equals(this.id, transferView.id) && + Objects.equals(this.reference, transferView.reference); } @Override @@ -184,7 +177,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -193,7 +187,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransferView given an JSON string * * @param jsonString JSON string @@ -203,12 +197,11 @@ private String toIndentedString(Object o) { public static TransferView fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferView.class); } - - /** - * Convert an instance of TransferView to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransferView to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/UKLocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/UKLocalAccountIdentification.java index 6da2ae26f..eb50a89ab 100644 --- a/src/main/java/com/adyen/model/transfers/UKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/UKLocalAccountIdentification.java @@ -2,31 +2,37 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** UKLocalAccountIdentification */ + +/** + * UKLocalAccountIdentification + */ @JsonPropertyOrder({ UKLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, UKLocalAccountIdentification.JSON_PROPERTY_SORT_CODE, UKLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class UKLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -34,8 +40,11 @@ public class UKLocalAccountIdentification { public static final String JSON_PROPERTY_SORT_CODE = "sortCode"; private String sortCode; - /** **ukLocal** */ + /** + * **ukLocal** + */ public enum TypeEnum { + UKLOCAL(String.valueOf("ukLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -43,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -76,7 +81,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public UKLocalAccountIdentification() {} + public UKLocalAccountIdentification() { + } /** * The 8-digit bank account number, without separators or whitespace. @@ -91,7 +97,6 @@ public UKLocalAccountIdentification accountNumber(String accountNumber) { /** * The 8-digit bank account number, without separators or whitespace. - * * @return accountNumber The 8-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -112,11 +117,9 @@ public void setAccountNumber(String accountNumber) { } /** - * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or - * whitespace. + * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. * - * @param sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without - * separators or whitespace. + * @param sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. * @return the current {@code UKLocalAccountIdentification} instance, allowing for method chaining */ public UKLocalAccountIdentification sortCode(String sortCode) { @@ -125,11 +128,8 @@ public UKLocalAccountIdentification sortCode(String sortCode) { } /** - * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or - * whitespace. - * - * @return sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without - * separators or whitespace. + * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. + * @return sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_SORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,11 +138,9 @@ public String getSortCode() { } /** - * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or - * whitespace. + * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. * - * @param sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without - * separators or whitespace. + * @param sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_SORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,7 +161,6 @@ public UKLocalAccountIdentification type(TypeEnum type) { /** * **ukLocal** - * * @return type **ukLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -183,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this UKLocalAccountIdentification object is equal to o. */ + /** + * Return true if this UKLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -193,9 +192,9 @@ public boolean equals(Object o) { return false; } UKLocalAccountIdentification ukLocalAccountIdentification = (UKLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, ukLocalAccountIdentification.accountNumber) - && Objects.equals(this.sortCode, ukLocalAccountIdentification.sortCode) - && Objects.equals(this.type, ukLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, ukLocalAccountIdentification.accountNumber) && + Objects.equals(this.sortCode, ukLocalAccountIdentification.sortCode) && + Objects.equals(this.type, ukLocalAccountIdentification.type); } @Override @@ -215,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,24 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of UKLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of UKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UKLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to UKLocalAccountIdentification */ - public static UKLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static UKLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UKLocalAccountIdentification.class); } - - /** - * Convert an instance of UKLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of UKLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/USLocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/USLocalAccountIdentification.java index 0753bffab..4e5b0060b 100644 --- a/src/main/java/com/adyen/model/transfers/USLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/USLocalAccountIdentification.java @@ -2,40 +2,47 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** USLocalAccountIdentification */ + +/** + * USLocalAccountIdentification + */ @JsonPropertyOrder({ USLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, USLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_TYPE, USLocalAccountIdentification.JSON_PROPERTY_ROUTING_NUMBER, USLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class USLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ public enum AccountTypeEnum { + CHECKING(String.valueOf("checking")), SAVINGS(String.valueOf("savings")); @@ -45,7 +52,7 @@ public enum AccountTypeEnum { private String value; AccountTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -66,11 +73,7 @@ public static AccountTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AccountTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AccountTypeEnum.values())); + LOG.warning("AccountTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AccountTypeEnum.values())); return null; } } @@ -81,8 +84,11 @@ public static AccountTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_ROUTING_NUMBER = "routingNumber"; private String routingNumber; - /** **usLocal** */ + /** + * **usLocal** + */ public enum TypeEnum { + USLOCAL(String.valueOf("usLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -90,7 +96,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -111,11 +117,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -123,7 +125,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public USLocalAccountIdentification() {} + public USLocalAccountIdentification() { + } /** * The bank account number, without separators or whitespace. @@ -138,7 +141,6 @@ public USLocalAccountIdentification accountNumber(String accountNumber) { /** * The bank account number, without separators or whitespace. - * * @return accountNumber The bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -159,10 +161,9 @@ public void setAccountNumber(String accountNumber) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. - * Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * @return the current {@code USLocalAccountIdentification} instance, allowing for method chaining */ public USLocalAccountIdentification accountType(AccountTypeEnum accountType) { @@ -171,10 +172,8 @@ public USLocalAccountIdentification accountType(AccountTypeEnum accountType) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. - * - * @return accountType The bank account type. Possible values: **checking** or **savings**. - * Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * @return accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,10 +182,9 @@ public AccountTypeEnum getAccountType() { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. - * Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,12 +193,9 @@ public void setAccountType(AccountTypeEnum accountType) { } /** - * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without - * separators or whitespace. + * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. * - * @param routingNumber The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * whitespace. + * @param routingNumber The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. * @return the current {@code USLocalAccountIdentification} instance, allowing for method chaining */ public USLocalAccountIdentification routingNumber(String routingNumber) { @@ -209,12 +204,8 @@ public USLocalAccountIdentification routingNumber(String routingNumber) { } /** - * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without - * separators or whitespace. - * - * @return routingNumber The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * whitespace. + * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * @return routingNumber The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,12 +214,9 @@ public String getRoutingNumber() { } /** - * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without - * separators or whitespace. + * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. * - * @param routingNumber The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * whitespace. + * @param routingNumber The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -249,7 +237,6 @@ public USLocalAccountIdentification type(TypeEnum type) { /** * **usLocal** - * * @return type **usLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -269,7 +256,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this USLocalAccountIdentification object is equal to o. */ + /** + * Return true if this USLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -279,10 +268,10 @@ public boolean equals(Object o) { return false; } USLocalAccountIdentification usLocalAccountIdentification = (USLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, usLocalAccountIdentification.accountNumber) - && Objects.equals(this.accountType, usLocalAccountIdentification.accountType) - && Objects.equals(this.routingNumber, usLocalAccountIdentification.routingNumber) - && Objects.equals(this.type, usLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, usLocalAccountIdentification.accountNumber) && + Objects.equals(this.accountType, usLocalAccountIdentification.accountType) && + Objects.equals(this.routingNumber, usLocalAccountIdentification.routingNumber) && + Objects.equals(this.type, usLocalAccountIdentification.type); } @Override @@ -303,7 +292,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -312,24 +302,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of USLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of USLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * USLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to USLocalAccountIdentification */ - public static USLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static USLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, USLocalAccountIdentification.class); } - - /** - * Convert an instance of USLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of USLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/UltimatePartyIdentification.java b/src/main/java/com/adyen/model/transfers/UltimatePartyIdentification.java index 1b8cbaeee..95e887209 100644 --- a/src/main/java/com/adyen/model/transfers/UltimatePartyIdentification.java +++ b/src/main/java/com/adyen/model/transfers/UltimatePartyIdentification.java @@ -2,27 +2,33 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transfers; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transfers.Address; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** UltimatePartyIdentification */ +/** + * UltimatePartyIdentification + */ @JsonPropertyOrder({ UltimatePartyIdentification.JSON_PROPERTY_ADDRESS, UltimatePartyIdentification.JSON_PROPERTY_DATE_OF_BIRTH, @@ -34,6 +40,7 @@ UltimatePartyIdentification.JSON_PROPERTY_TYPE, UltimatePartyIdentification.JSON_PROPERTY_URL }) + public class UltimatePartyIdentification { public static final String JSON_PROPERTY_ADDRESS = "address"; private Address address; @@ -57,11 +64,10 @@ public class UltimatePartyIdentification { private String reference; /** - * The type of entity that owns the bank account or card. Possible values: **individual**, - * **organization**, or **unknown**. Required when `category` is **card**. In this case, - * the value must be **individual**. + * The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. */ public enum TypeEnum { + INDIVIDUAL(String.valueOf("individual")), ORGANIZATION(String.valueOf("organization")), @@ -73,7 +79,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -94,11 +100,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -109,12 +111,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_URL = "url"; private String url; - public UltimatePartyIdentification() {} + public UltimatePartyIdentification() { + } /** * address * - * @param address + * @param address * @return the current {@code UltimatePartyIdentification} instance, allowing for method chaining */ public UltimatePartyIdentification address(Address address) { @@ -124,8 +127,7 @@ public UltimatePartyIdentification address(Address address) { /** * Get address - * - * @return address + * @return address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,7 +138,7 @@ public Address getAddress() { /** * address * - * @param address + * @param address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,12 +147,9 @@ public void setAddress(Address address) { } /** - * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. - * For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. + * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. * - * @param dateOfBirth The date of birth of the individual in - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. - * Allowed only when `type` is **individual**. + * @param dateOfBirth The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. * @return the current {@code UltimatePartyIdentification} instance, allowing for method chaining */ public UltimatePartyIdentification dateOfBirth(LocalDate dateOfBirth) { @@ -159,12 +158,8 @@ public UltimatePartyIdentification dateOfBirth(LocalDate dateOfBirth) { } /** - * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. - * For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. - * - * @return dateOfBirth The date of birth of the individual in - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. - * Allowed only when `type` is **individual**. + * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. + * @return dateOfBirth The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,12 +168,9 @@ public LocalDate getDateOfBirth() { } /** - * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. - * For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. + * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. * - * @param dateOfBirth The date of birth of the individual in - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. - * Allowed only when `type` is **individual**. + * @param dateOfBirth The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,8 +181,7 @@ public void setDateOfBirth(LocalDate dateOfBirth) { /** * The email address of the organization or individual. Maximum length: 254 characters. * - * @param email The email address of the organization or individual. Maximum length: 254 - * characters. + * @param email The email address of the organization or individual. Maximum length: 254 characters. * @return the current {@code UltimatePartyIdentification} instance, allowing for method chaining */ public UltimatePartyIdentification email(String email) { @@ -200,9 +191,7 @@ public UltimatePartyIdentification email(String email) { /** * The email address of the organization or individual. Maximum length: 254 characters. - * - * @return email The email address of the organization or individual. Maximum length: 254 - * characters. + * @return email The email address of the organization or individual. Maximum length: 254 characters. */ @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -213,8 +202,7 @@ public String getEmail() { /** * The email address of the organization or individual. Maximum length: 254 characters. * - * @param email The email address of the organization or individual. Maximum length: 254 - * characters. + * @param email The email address of the organization or individual. Maximum length: 254 characters. */ @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,13 +211,9 @@ public void setEmail(String email) { } /** - * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This - * parameter is: - Allowed only when `type` is **individual**. - Required when - * `category` is **card**. + * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. * - * @param firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — - * and space. This parameter is: - Allowed only when `type` is **individual**. - - * Required when `category` is **card**. + * @param firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. * @return the current {@code UltimatePartyIdentification} instance, allowing for method chaining */ public UltimatePartyIdentification firstName(String firstName) { @@ -238,13 +222,8 @@ public UltimatePartyIdentification firstName(String firstName) { } /** - * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This - * parameter is: - Allowed only when `type` is **individual**. - Required when - * `category` is **card**. - * - * @return firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — - * and space. This parameter is: - Allowed only when `type` is **individual**. - - * Required when `category` is **card**. + * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * @return firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -253,13 +232,9 @@ public String getFirstName() { } /** - * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This - * parameter is: - Allowed only when `type` is **individual**. - Required when - * `category` is **card**. + * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. * - * @param firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — - * and space. This parameter is: - Allowed only when `type` is **individual**. - - * Required when `category` is **card**. + * @param firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -268,13 +243,9 @@ public void setFirstName(String firstName) { } /** - * The full name of the entity that owns the bank account or card. Supported characters: [a-z] - * [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when - * `category` is **bank**. + * The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. * - * @param fullName The full name of the entity that owns the bank account or card. Supported - * characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. - * Required when `category` is **bank**. + * @param fullName The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. * @return the current {@code UltimatePartyIdentification} instance, allowing for method chaining */ public UltimatePartyIdentification fullName(String fullName) { @@ -283,13 +254,8 @@ public UltimatePartyIdentification fullName(String fullName) { } /** - * The full name of the entity that owns the bank account or card. Supported characters: [a-z] - * [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when - * `category` is **bank**. - * - * @return fullName The full name of the entity that owns the bank account or card. Supported - * characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. - * Required when `category` is **bank**. + * The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. + * @return fullName The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. */ @JsonProperty(JSON_PROPERTY_FULL_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -298,13 +264,9 @@ public String getFullName() { } /** - * The full name of the entity that owns the bank account or card. Supported characters: [a-z] - * [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when - * `category` is **bank**. + * The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. * - * @param fullName The full name of the entity that owns the bank account or card. Supported - * characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. - * Required when `category` is **bank**. + * @param fullName The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. */ @JsonProperty(JSON_PROPERTY_FULL_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -313,13 +275,9 @@ public void setFullName(String fullName) { } /** - * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This - * parameter is: - Allowed only when `type` is **individual**. - Required when - * `category` is **card**. + * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. * - * @param lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and - * space. This parameter is: - Allowed only when `type` is **individual**. - - * Required when `category` is **card**. + * @param lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. * @return the current {@code UltimatePartyIdentification} instance, allowing for method chaining */ public UltimatePartyIdentification lastName(String lastName) { @@ -328,13 +286,8 @@ public UltimatePartyIdentification lastName(String lastName) { } /** - * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This - * parameter is: - Allowed only when `type` is **individual**. - Required when - * `category` is **card**. - * - * @return lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and - * space. This parameter is: - Allowed only when `type` is **individual**. - - * Required when `category` is **card**. + * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * @return lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -343,13 +296,9 @@ public String getLastName() { } /** - * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This - * parameter is: - Allowed only when `type` is **individual**. - Required when - * `category` is **card**. + * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. * - * @param lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and - * space. This parameter is: - Allowed only when `type` is **individual**. - - * Required when `category` is **card**. + * @param lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -358,13 +307,9 @@ public void setLastName(String lastName) { } /** - * A unique reference to identify the party or counterparty involved in the transfer. For example, - * your client's unique wallet or payee ID. Required when you include - * `cardIdentification.storedPaymentMethodId`. + * A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. * - * @param reference A unique reference to identify the party or counterparty involved in the - * transfer. For example, your client's unique wallet or payee ID. Required when you - * include `cardIdentification.storedPaymentMethodId`. + * @param reference A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. * @return the current {@code UltimatePartyIdentification} instance, allowing for method chaining */ public UltimatePartyIdentification reference(String reference) { @@ -373,13 +318,8 @@ public UltimatePartyIdentification reference(String reference) { } /** - * A unique reference to identify the party or counterparty involved in the transfer. For example, - * your client's unique wallet or payee ID. Required when you include - * `cardIdentification.storedPaymentMethodId`. - * - * @return reference A unique reference to identify the party or counterparty involved in the - * transfer. For example, your client's unique wallet or payee ID. Required when you - * include `cardIdentification.storedPaymentMethodId`. + * A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. + * @return reference A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -388,13 +328,9 @@ public String getReference() { } /** - * A unique reference to identify the party or counterparty involved in the transfer. For example, - * your client's unique wallet or payee ID. Required when you include - * `cardIdentification.storedPaymentMethodId`. + * A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. * - * @param reference A unique reference to identify the party or counterparty involved in the - * transfer. For example, your client's unique wallet or payee ID. Required when you - * include `cardIdentification.storedPaymentMethodId`. + * @param reference A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -403,13 +339,9 @@ public void setReference(String reference) { } /** - * The type of entity that owns the bank account or card. Possible values: **individual**, - * **organization**, or **unknown**. Required when `category` is **card**. In this case, - * the value must be **individual**. + * The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. * - * @param type The type of entity that owns the bank account or card. Possible values: - * **individual**, **organization**, or **unknown**. Required when `category` is - * **card**. In this case, the value must be **individual**. + * @param type The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. * @return the current {@code UltimatePartyIdentification} instance, allowing for method chaining */ public UltimatePartyIdentification type(TypeEnum type) { @@ -418,13 +350,8 @@ public UltimatePartyIdentification type(TypeEnum type) { } /** - * The type of entity that owns the bank account or card. Possible values: **individual**, - * **organization**, or **unknown**. Required when `category` is **card**. In this case, - * the value must be **individual**. - * - * @return type The type of entity that owns the bank account or card. Possible values: - * **individual**, **organization**, or **unknown**. Required when `category` is - * **card**. In this case, the value must be **individual**. + * The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. + * @return type The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -433,13 +360,9 @@ public TypeEnum getType() { } /** - * The type of entity that owns the bank account or card. Possible values: **individual**, - * **organization**, or **unknown**. Required when `category` is **card**. In this case, - * the value must be **individual**. + * The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. * - * @param type The type of entity that owns the bank account or card. Possible values: - * **individual**, **organization**, or **unknown**. Required when `category` is - * **card**. In this case, the value must be **individual**. + * @param type The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -460,7 +383,6 @@ public UltimatePartyIdentification url(String url) { /** * The URL of the organization or individual. Maximum length: 255 characters. - * * @return url The URL of the organization or individual. Maximum length: 255 characters. */ @JsonProperty(JSON_PROPERTY_URL) @@ -480,7 +402,9 @@ public void setUrl(String url) { this.url = url; } - /** Return true if this UltimatePartyIdentification object is equal to o. */ + /** + * Return true if this UltimatePartyIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -490,21 +414,20 @@ public boolean equals(Object o) { return false; } UltimatePartyIdentification ultimatePartyIdentification = (UltimatePartyIdentification) o; - return Objects.equals(this.address, ultimatePartyIdentification.address) - && Objects.equals(this.dateOfBirth, ultimatePartyIdentification.dateOfBirth) - && Objects.equals(this.email, ultimatePartyIdentification.email) - && Objects.equals(this.firstName, ultimatePartyIdentification.firstName) - && Objects.equals(this.fullName, ultimatePartyIdentification.fullName) - && Objects.equals(this.lastName, ultimatePartyIdentification.lastName) - && Objects.equals(this.reference, ultimatePartyIdentification.reference) - && Objects.equals(this.type, ultimatePartyIdentification.type) - && Objects.equals(this.url, ultimatePartyIdentification.url); + return Objects.equals(this.address, ultimatePartyIdentification.address) && + Objects.equals(this.dateOfBirth, ultimatePartyIdentification.dateOfBirth) && + Objects.equals(this.email, ultimatePartyIdentification.email) && + Objects.equals(this.firstName, ultimatePartyIdentification.firstName) && + Objects.equals(this.fullName, ultimatePartyIdentification.fullName) && + Objects.equals(this.lastName, ultimatePartyIdentification.lastName) && + Objects.equals(this.reference, ultimatePartyIdentification.reference) && + Objects.equals(this.type, ultimatePartyIdentification.type) && + Objects.equals(this.url, ultimatePartyIdentification.url); } @Override public int hashCode() { - return Objects.hash( - address, dateOfBirth, email, firstName, fullName, lastName, reference, type, url); + return Objects.hash(address, dateOfBirth, email, firstName, fullName, lastName, reference, type, url); } @Override @@ -525,7 +448,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -534,24 +458,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of UltimatePartyIdentification given an JSON string * * @param jsonString JSON string * @return An instance of UltimatePartyIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UltimatePartyIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to UltimatePartyIdentification */ - public static UltimatePartyIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static UltimatePartyIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UltimatePartyIdentification.class); } - - /** - * Convert an instance of UltimatePartyIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of UltimatePartyIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/AULocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/AULocalAccountIdentification.java index 840af2718..c7f9b2e00 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/AULocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/AULocalAccountIdentification.java @@ -2,31 +2,37 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** AULocalAccountIdentification */ + +/** + * AULocalAccountIdentification + */ @JsonPropertyOrder({ AULocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, AULocalAccountIdentification.JSON_PROPERTY_BSB_CODE, AULocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class AULocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -34,8 +40,11 @@ public class AULocalAccountIdentification { public static final String JSON_PROPERTY_BSB_CODE = "bsbCode"; private String bsbCode; - /** **auLocal** */ + /** + * **auLocal** + */ public enum TypeEnum { + AULOCAL(String.valueOf("auLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -43,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -76,7 +81,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AULocalAccountIdentification() {} + public AULocalAccountIdentification() { + } /** * The bank account number, without separators or whitespace. @@ -91,7 +97,6 @@ public AULocalAccountIdentification accountNumber(String accountNumber) { /** * The bank account number, without separators or whitespace. - * * @return accountNumber The bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -112,11 +117,9 @@ public void setAccountNumber(String accountNumber) { } /** - * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), - * without separators or whitespace. + * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. * - * @param bsbCode The 6-digit [Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * @param bsbCode The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. * @return the current {@code AULocalAccountIdentification} instance, allowing for method chaining */ public AULocalAccountIdentification bsbCode(String bsbCode) { @@ -125,11 +128,8 @@ public AULocalAccountIdentification bsbCode(String bsbCode) { } /** - * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), - * without separators or whitespace. - * - * @return bsbCode The 6-digit [Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * @return bsbCode The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_BSB_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,11 +138,9 @@ public String getBsbCode() { } /** - * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), - * without separators or whitespace. + * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. * - * @param bsbCode The 6-digit [Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * @param bsbCode The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_BSB_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,7 +161,6 @@ public AULocalAccountIdentification type(TypeEnum type) { /** * **auLocal** - * * @return type **auLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -183,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this AULocalAccountIdentification object is equal to o. */ + /** + * Return true if this AULocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -193,9 +192,9 @@ public boolean equals(Object o) { return false; } AULocalAccountIdentification auLocalAccountIdentification = (AULocalAccountIdentification) o; - return Objects.equals(this.accountNumber, auLocalAccountIdentification.accountNumber) - && Objects.equals(this.bsbCode, auLocalAccountIdentification.bsbCode) - && Objects.equals(this.type, auLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, auLocalAccountIdentification.accountNumber) && + Objects.equals(this.bsbCode, auLocalAccountIdentification.bsbCode) && + Objects.equals(this.type, auLocalAccountIdentification.type); } @Override @@ -215,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,24 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AULocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of AULocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AULocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to AULocalAccountIdentification */ - public static AULocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static AULocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AULocalAccountIdentification.class); } - - /** - * Convert an instance of AULocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AULocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/transferwebhooks/AbstractOpenApiSchema.java index 5fdd90656..554e61d45 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/transferwebhooks/AbstractOpenApiSchema.java @@ -2,141 +2,145 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonValue; -import jakarta.ws.rs.core.GenericType; -import java.util.Map; import java.util.Objects; +import java.util.Map; +import jakarta.ws.rs.core.GenericType; -/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec + */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() { - return instance; - } - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) { - this.instance = instance; - } - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf - * schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); - } else { - return object.getActualInstance(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() {return instance;} + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) {this.instance = instance;} + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); + } else { + return object.getActualInstance(); + } + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) && + Objects.equals(this.isNullable, a.isNullable) && + Objects.equals(this.schemaType, a.schemaType); } - return o.toString().replace("\n", "\n "); - } - public boolean equals(Object o) { - if (this == o) { - return true; + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); } - if (o == null || getClass() != o.getClass()) { - return false; + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) - && Objects.equals(this.isNullable, a.isNullable) - && Objects.equals(this.schemaType, a.schemaType); - } - - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); - } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); - } -} + + + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/transferwebhooks/AdditionalBankIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/AdditionalBankIdentification.java index 2cd17d0bb..8cb73b31c 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/AdditionalBankIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/AdditionalBankIdentification.java @@ -2,47 +2,45 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** AdditionalBankIdentification */ +/** + * AdditionalBankIdentification + */ @JsonPropertyOrder({ AdditionalBankIdentification.JSON_PROPERTY_CODE, AdditionalBankIdentification.JSON_PROPERTY_TYPE }) + public class AdditionalBankIdentification { public static final String JSON_PROPERTY_CODE = "code"; private String code; /** - * The type of additional bank identification, depending on the country. Possible values: * - * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * - * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. + * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. */ public enum TypeEnum { + AUBSBCODE(String.valueOf("auBsbCode")), CAROUTINGNUMBER(String.valueOf("caRoutingNumber")), @@ -56,7 +54,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -77,11 +75,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -89,7 +83,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AdditionalBankIdentification() {} + public AdditionalBankIdentification() { + } /** * The value of the additional bank identification. @@ -104,7 +99,6 @@ public AdditionalBankIdentification code(String code) { /** * The value of the additional bank identification. - * * @return code The value of the additional bank identification. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -125,27 +119,9 @@ public void setCode(String code) { } /** - * The type of additional bank identification, depending on the country. Possible values: * - * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * - * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. + * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. * - * @param type The type of additional bank identification, depending on the country. Possible - * values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * - * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. + * @param type The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. * @return the current {@code AdditionalBankIdentification} instance, allowing for method chaining */ public AdditionalBankIdentification type(TypeEnum type) { @@ -154,27 +130,8 @@ public AdditionalBankIdentification type(TypeEnum type) { } /** - * The type of additional bank identification, depending on the country. Possible values: * - * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * - * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. - * - * @return type The type of additional bank identification, depending on the country. Possible - * values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * - * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. + * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * @return type The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,27 +140,9 @@ public TypeEnum getType() { } /** - * The type of additional bank identification, depending on the country. Possible values: * - * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * - * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. + * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. * - * @param type The type of additional bank identification, depending on the country. Possible - * values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) - * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * - * **caRoutingNumber**: The 9-digit [Canadian routing - * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without - * separators or spaces. * **gbSortCode**: The 6-digit [UK sort - * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * - * **usRoutingNumber**: The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * spaces. + * @param type The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,7 +150,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this AdditionalBankIdentification object is equal to o. */ + /** + * Return true if this AdditionalBankIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -221,8 +162,8 @@ public boolean equals(Object o) { return false; } AdditionalBankIdentification additionalBankIdentification = (AdditionalBankIdentification) o; - return Objects.equals(this.code, additionalBankIdentification.code) - && Objects.equals(this.type, additionalBankIdentification.type); + return Objects.equals(this.code, additionalBankIdentification.code) && + Objects.equals(this.type, additionalBankIdentification.type); } @Override @@ -241,7 +182,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -250,24 +192,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AdditionalBankIdentification given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalBankIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalBankIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalBankIdentification */ - public static AdditionalBankIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static AdditionalBankIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalBankIdentification.class); } - - /** - * Convert an instance of AdditionalBankIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AdditionalBankIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/Address.java b/src/main/java/com/adyen/model/transferwebhooks/Address.java index d7ed7cc91..6b7ad1778 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/Address.java +++ b/src/main/java/com/adyen/model/transferwebhooks/Address.java @@ -2,22 +2,31 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Address */ + +/** + * Address + */ @JsonPropertyOrder({ Address.JSON_PROPERTY_CITY, Address.JSON_PROPERTY_COUNTRY, @@ -26,6 +35,7 @@ Address.JSON_PROPERTY_POSTAL_CODE, Address.JSON_PROPERTY_STATE_OR_PROVINCE }) + public class Address { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -45,14 +55,13 @@ public class Address { public static final String JSON_PROPERTY_STATE_OR_PROVINCE = "stateOrProvince"; private String stateOrProvince; - public Address() {} + public Address() { + } /** - * The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] - * & \\ |** and Space. > Required when the `category` is **card**. + * The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. * - * @param city The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) - * : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * @param city The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. * @return the current {@code Address} instance, allowing for method chaining */ public Address city(String city) { @@ -61,11 +70,8 @@ public Address city(String city) { } /** - * The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] - * & \\ |** and Space. > Required when the `category` is **card**. - * - * @return city The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( - * ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * @return city The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. */ @JsonProperty(JSON_PROPERTY_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -74,11 +80,9 @@ public String getCity() { } /** - * The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] - * & \\ |** and Space. > Required when the `category` is **card**. + * The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. * - * @param city The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) - * : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * @param city The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. */ @JsonProperty(JSON_PROPERTY_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -89,8 +93,7 @@ public void setCity(String city) { /** * The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, or **GB**. * - * @param country The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, - * or **GB**. + * @param country The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, or **GB**. * @return the current {@code Address} instance, allowing for method chaining */ public Address country(String country) { @@ -100,9 +103,7 @@ public Address country(String country) { /** * The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, or **GB**. - * - * @return country The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, - * or **GB**. + * @return country The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, or **GB**. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,8 +114,7 @@ public String getCountry() { /** * The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, or **GB**. * - * @param country The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, - * or **GB**. + * @param country The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, or **GB**. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,12 +123,9 @@ public void setCountry(String country) { } /** - * The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° - * ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. * - * @param line1 The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - * - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the - * `category` is **card**. + * @param line1 The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. * @return the current {@code Address} instance, allowing for method chaining */ public Address line1(String line1) { @@ -137,12 +134,8 @@ public Address line1(String line1) { } /** - * The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° - * ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. - * - * @return line1 The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - * - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the - * `category` is **card**. + * The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * @return line1 The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. */ @JsonProperty(JSON_PROPERTY_LINE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,12 +144,9 @@ public String getLine1() { } /** - * The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° - * ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. * - * @param line1 The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - * - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the - * `category` is **card**. + * @param line1 The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. */ @JsonProperty(JSON_PROPERTY_LINE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -165,12 +155,9 @@ public void setLine1(String line1) { } /** - * The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ - * ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. * - * @param line2 The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - * - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the - * `category` is **card**. + * @param line2 The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. * @return the current {@code Address} instance, allowing for method chaining */ public Address line2(String line2) { @@ -179,12 +166,8 @@ public Address line2(String line2) { } /** - * The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ - * ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. - * - * @return line2 The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] - * . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the - * `category` is **card**. + * The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * @return line2 The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. */ @JsonProperty(JSON_PROPERTY_LINE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,12 +176,9 @@ public String getLine2() { } /** - * The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ - * ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. * - * @param line2 The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - * - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the - * `category` is **card**. + * @param line2 The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. */ @JsonProperty(JSON_PROPERTY_LINE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -207,13 +187,9 @@ public void setLine2(String line2) { } /** - * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an - * address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > - * Required for addresses in the US. + * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > Required for addresses in the US. * - * @param postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 - * characters for an address in all other countries. Supported characters: **[a-z] [A-Z] - * [0-9]** and Space. > Required for addresses in the US. + * @param postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > Required for addresses in the US. * @return the current {@code Address} instance, allowing for method chaining */ public Address postalCode(String postalCode) { @@ -222,13 +198,8 @@ public Address postalCode(String postalCode) { } /** - * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an - * address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > - * Required for addresses in the US. - * - * @return postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 - * characters for an address in all other countries. Supported characters: **[a-z] [A-Z] - * [0-9]** and Space. > Required for addresses in the US. + * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > Required for addresses in the US. + * @return postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > Required for addresses in the US. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,13 +208,9 @@ public String getPostalCode() { } /** - * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an - * address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > - * Required for addresses in the US. + * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > Required for addresses in the US. * - * @param postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 - * characters for an address in all other countries. Supported characters: **[a-z] [A-Z] - * [0-9]** and Space. > Required for addresses in the US. + * @param postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > Required for addresses in the US. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,11 +219,9 @@ public void setPostalCode(String postalCode) { } /** - * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. + * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in - * the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. * @return the current {@code Address} instance, allowing for method chaining */ public Address stateOrProvince(String stateOrProvince) { @@ -265,11 +230,8 @@ public Address stateOrProvince(String stateOrProvince) { } /** - * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. - * - * @return stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** - * in the US or **ON** in Canada. > Required for the US and Canada. + * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * @return stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -278,11 +240,9 @@ public String getStateOrProvince() { } /** - * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. + * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in - * the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -290,7 +250,9 @@ public void setStateOrProvince(String stateOrProvince) { this.stateOrProvince = stateOrProvince; } - /** Return true if this Address object is equal to o. */ + /** + * Return true if this Address object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -300,12 +262,12 @@ public boolean equals(Object o) { return false; } Address address = (Address) o; - return Objects.equals(this.city, address.city) - && Objects.equals(this.country, address.country) - && Objects.equals(this.line1, address.line1) - && Objects.equals(this.line2, address.line2) - && Objects.equals(this.postalCode, address.postalCode) - && Objects.equals(this.stateOrProvince, address.stateOrProvince); + return Objects.equals(this.city, address.city) && + Objects.equals(this.country, address.country) && + Objects.equals(this.line1, address.line1) && + Objects.equals(this.line2, address.line2) && + Objects.equals(this.postalCode, address.postalCode) && + Objects.equals(this.stateOrProvince, address.stateOrProvince); } @Override @@ -328,7 +290,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -337,7 +300,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Address given an JSON string * * @param jsonString JSON string @@ -347,12 +310,11 @@ private String toIndentedString(Object o) { public static Address fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Address.class); } - - /** - * Convert an instance of Address to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Address to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/Airline.java b/src/main/java/com/adyen/model/transferwebhooks/Airline.java index bfe6ad80c..cf93622f0 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/Airline.java +++ b/src/main/java/com/adyen/model/transferwebhooks/Airline.java @@ -2,25 +2,39 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transferwebhooks.Leg; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * Airline + */ +@JsonPropertyOrder({ + Airline.JSON_PROPERTY_LEGS, + Airline.JSON_PROPERTY_TICKET_NUMBER +}) -/** Airline */ -@JsonPropertyOrder({Airline.JSON_PROPERTY_LEGS, Airline.JSON_PROPERTY_TICKET_NUMBER}) public class Airline { public static final String JSON_PROPERTY_LEGS = "legs"; private List legs; @@ -28,7 +42,8 @@ public class Airline { public static final String JSON_PROPERTY_TICKET_NUMBER = "ticketNumber"; private String ticketNumber; - public Airline() {} + public Airline() { + } /** * Details about the flight legs for this ticket. @@ -51,7 +66,6 @@ public Airline addLegsItem(Leg legsItem) { /** * Details about the flight legs for this ticket. - * * @return legs Details about the flight legs for this ticket. */ @JsonProperty(JSON_PROPERTY_LEGS) @@ -84,7 +98,6 @@ public Airline ticketNumber(String ticketNumber) { /** * The ticket's unique identifier - * * @return ticketNumber The ticket's unique identifier */ @JsonProperty(JSON_PROPERTY_TICKET_NUMBER) @@ -104,7 +117,9 @@ public void setTicketNumber(String ticketNumber) { this.ticketNumber = ticketNumber; } - /** Return true if this Airline object is equal to o. */ + /** + * Return true if this Airline object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -114,8 +129,8 @@ public boolean equals(Object o) { return false; } Airline airline = (Airline) o; - return Objects.equals(this.legs, airline.legs) - && Objects.equals(this.ticketNumber, airline.ticketNumber); + return Objects.equals(this.legs, airline.legs) && + Objects.equals(this.ticketNumber, airline.ticketNumber); } @Override @@ -134,7 +149,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -143,7 +159,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Airline given an JSON string * * @param jsonString JSON string @@ -153,12 +169,11 @@ private String toIndentedString(Object o) { public static Airline fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Airline.class); } - - /** - * Convert an instance of Airline to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Airline to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/Amount.java b/src/main/java/com/adyen/model/transferwebhooks/Amount.java index 63f056c5b..02fd7a8f9 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/Amount.java +++ b/src/main/java/com/adyen/model/transferwebhooks/Amount.java @@ -2,23 +2,36 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Amount */ -@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) + +/** + * Amount + */ +@JsonPropertyOrder({ + Amount.JSON_PROPERTY_CURRENCY, + Amount.JSON_PROPERTY_VALUE +}) + public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -26,14 +39,13 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() {} + public Amount() { + } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount currency(String currency) { @@ -42,11 +54,8 @@ public Amount currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -55,11 +64,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,11 +75,9 @@ public void setCurrency(String currency) { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount value(Long value) { @@ -81,11 +86,8 @@ public Amount value(Long value) { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). - * - * @return value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @return value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,11 +96,9 @@ public Long getValue() { } /** - * The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor - * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,7 +106,9 @@ public void setValue(Long value) { this.value = value; } - /** Return true if this Amount object is equal to o. */ + /** + * Return true if this Amount object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -116,8 +118,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) - && Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) && + Objects.equals(this.value, amount.value); } @Override @@ -136,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -155,12 +158,11 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } - - /** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/AmountAdjustment.java b/src/main/java/com/adyen/model/transferwebhooks/AmountAdjustment.java index 00fff8f3a..2128c46d1 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/AmountAdjustment.java +++ b/src/main/java/com/adyen/model/transferwebhooks/AmountAdjustment.java @@ -2,40 +2,47 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transferwebhooks.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** AmountAdjustment */ +/** + * AmountAdjustment + */ @JsonPropertyOrder({ AmountAdjustment.JSON_PROPERTY_AMOUNT, AmountAdjustment.JSON_PROPERTY_AMOUNT_ADJUSTMENT_TYPE, AmountAdjustment.JSON_PROPERTY_BASEPOINTS }) + public class AmountAdjustment { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; /** - * The type of markup that is applied to an authorised payment. Possible values: **exchange**, - * **forexMarkup**, **authHoldReserve**, **atmMarkup**. + * The type of markup that is applied to an authorised payment. Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. */ public enum AmountAdjustmentTypeEnum { + ATMMARKUP(String.valueOf("atmMarkup")), AUTHHOLDRESERVE(String.valueOf("authHoldReserve")), @@ -49,7 +56,7 @@ public enum AmountAdjustmentTypeEnum { private String value; AmountAdjustmentTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -70,11 +77,7 @@ public static AmountAdjustmentTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AmountAdjustmentTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AmountAdjustmentTypeEnum.values())); + LOG.warning("AmountAdjustmentTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AmountAdjustmentTypeEnum.values())); return null; } } @@ -85,12 +88,13 @@ public static AmountAdjustmentTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_BASEPOINTS = "basepoints"; private Integer basepoints; - public AmountAdjustment() {} + public AmountAdjustment() { + } /** * amount * - * @param amount + * @param amount * @return the current {@code AmountAdjustment} instance, allowing for method chaining */ public AmountAdjustment amount(Amount amount) { @@ -100,8 +104,7 @@ public AmountAdjustment amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,7 +115,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,11 +124,9 @@ public void setAmount(Amount amount) { } /** - * The type of markup that is applied to an authorised payment. Possible values: **exchange**, - * **forexMarkup**, **authHoldReserve**, **atmMarkup**. + * The type of markup that is applied to an authorised payment. Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. * - * @param amountAdjustmentType The type of markup that is applied to an authorised payment. - * Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. + * @param amountAdjustmentType The type of markup that is applied to an authorised payment. Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. * @return the current {@code AmountAdjustment} instance, allowing for method chaining */ public AmountAdjustment amountAdjustmentType(AmountAdjustmentTypeEnum amountAdjustmentType) { @@ -134,11 +135,8 @@ public AmountAdjustment amountAdjustmentType(AmountAdjustmentTypeEnum amountAdju } /** - * The type of markup that is applied to an authorised payment. Possible values: **exchange**, - * **forexMarkup**, **authHoldReserve**, **atmMarkup**. - * - * @return amountAdjustmentType The type of markup that is applied to an authorised payment. - * Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. + * The type of markup that is applied to an authorised payment. Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. + * @return amountAdjustmentType The type of markup that is applied to an authorised payment. Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. */ @JsonProperty(JSON_PROPERTY_AMOUNT_ADJUSTMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,11 +145,9 @@ public AmountAdjustmentTypeEnum getAmountAdjustmentType() { } /** - * The type of markup that is applied to an authorised payment. Possible values: **exchange**, - * **forexMarkup**, **authHoldReserve**, **atmMarkup**. + * The type of markup that is applied to an authorised payment. Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. * - * @param amountAdjustmentType The type of markup that is applied to an authorised payment. - * Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. + * @param amountAdjustmentType The type of markup that is applied to an authorised payment. Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. */ @JsonProperty(JSON_PROPERTY_AMOUNT_ADJUSTMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,7 +168,6 @@ public AmountAdjustment basepoints(Integer basepoints) { /** * The basepoints associated with the applied markup. - * * @return basepoints The basepoints associated with the applied markup. */ @JsonProperty(JSON_PROPERTY_BASEPOINTS) @@ -192,7 +187,9 @@ public void setBasepoints(Integer basepoints) { this.basepoints = basepoints; } - /** Return true if this AmountAdjustment object is equal to o. */ + /** + * Return true if this AmountAdjustment object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -202,9 +199,9 @@ public boolean equals(Object o) { return false; } AmountAdjustment amountAdjustment = (AmountAdjustment) o; - return Objects.equals(this.amount, amountAdjustment.amount) - && Objects.equals(this.amountAdjustmentType, amountAdjustment.amountAdjustmentType) - && Objects.equals(this.basepoints, amountAdjustment.basepoints); + return Objects.equals(this.amount, amountAdjustment.amount) && + Objects.equals(this.amountAdjustmentType, amountAdjustment.amountAdjustmentType) && + Objects.equals(this.basepoints, amountAdjustment.basepoints); } @Override @@ -217,16 +214,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AmountAdjustment {\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append(" amountAdjustmentType: ") - .append(toIndentedString(amountAdjustmentType)) - .append("\n"); + sb.append(" amountAdjustmentType: ").append(toIndentedString(amountAdjustmentType)).append("\n"); sb.append(" basepoints: ").append(toIndentedString(basepoints)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -235,7 +231,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of AmountAdjustment given an JSON string * * @param jsonString JSON string @@ -245,12 +241,11 @@ private String toIndentedString(Object o) { public static AmountAdjustment fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AmountAdjustment.class); } - - /** - * Convert an instance of AmountAdjustment to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of AmountAdjustment to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/BRLocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/BRLocalAccountIdentification.java index 12730df5f..7aaea75a0 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/BRLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/BRLocalAccountIdentification.java @@ -2,26 +2,31 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** BRLocalAccountIdentification */ + +/** + * BRLocalAccountIdentification + */ @JsonPropertyOrder({ BRLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, BRLocalAccountIdentification.JSON_PROPERTY_BANK_CODE, @@ -29,6 +34,7 @@ BRLocalAccountIdentification.JSON_PROPERTY_ISPB, BRLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class BRLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -42,8 +48,11 @@ public class BRLocalAccountIdentification { public static final String JSON_PROPERTY_ISPB = "ispb"; private String ispb; - /** **brLocal** */ + /** + * **brLocal** + */ public enum TypeEnum { + BRLOCAL(String.valueOf("brLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -51,7 +60,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -72,11 +81,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -84,7 +89,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public BRLocalAccountIdentification() {} + public BRLocalAccountIdentification() { + } /** * The bank account number, without separators or whitespace. @@ -99,7 +105,6 @@ public BRLocalAccountIdentification accountNumber(String accountNumber) { /** * The bank account number, without separators or whitespace. - * * @return accountNumber The bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -132,7 +137,6 @@ public BRLocalAccountIdentification bankCode(String bankCode) { /** * The 3-digit bank code, with leading zeros. - * * @return bankCode The 3-digit bank code, with leading zeros. */ @JsonProperty(JSON_PROPERTY_BANK_CODE) @@ -165,7 +169,6 @@ public BRLocalAccountIdentification branchNumber(String branchNumber) { /** * The bank account branch number, without separators or whitespace. - * * @return branchNumber The bank account branch number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_BRANCH_NUMBER) @@ -198,7 +201,6 @@ public BRLocalAccountIdentification ispb(String ispb) { /** * The 8-digit ISPB, with leading zeros. - * * @return ispb The 8-digit ISPB, with leading zeros. */ @JsonProperty(JSON_PROPERTY_ISPB) @@ -231,7 +233,6 @@ public BRLocalAccountIdentification type(TypeEnum type) { /** * **brLocal** - * * @return type **brLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -251,7 +252,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this BRLocalAccountIdentification object is equal to o. */ + /** + * Return true if this BRLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -261,11 +264,11 @@ public boolean equals(Object o) { return false; } BRLocalAccountIdentification brLocalAccountIdentification = (BRLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, brLocalAccountIdentification.accountNumber) - && Objects.equals(this.bankCode, brLocalAccountIdentification.bankCode) - && Objects.equals(this.branchNumber, brLocalAccountIdentification.branchNumber) - && Objects.equals(this.ispb, brLocalAccountIdentification.ispb) - && Objects.equals(this.type, brLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, brLocalAccountIdentification.accountNumber) && + Objects.equals(this.bankCode, brLocalAccountIdentification.bankCode) && + Objects.equals(this.branchNumber, brLocalAccountIdentification.branchNumber) && + Objects.equals(this.ispb, brLocalAccountIdentification.ispb) && + Objects.equals(this.type, brLocalAccountIdentification.type); } @Override @@ -287,7 +290,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -296,24 +300,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BRLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of BRLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BRLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to BRLocalAccountIdentification */ - public static BRLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static BRLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BRLocalAccountIdentification.class); } - - /** - * Convert an instance of BRLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BRLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/BalanceMutation.java b/src/main/java/com/adyen/model/transferwebhooks/BalanceMutation.java index a23e484bf..5f743ef28 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/BalanceMutation.java +++ b/src/main/java/com/adyen/model/transferwebhooks/BalanceMutation.java @@ -2,28 +2,38 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** BalanceMutation */ + +/** + * BalanceMutation + */ @JsonPropertyOrder({ BalanceMutation.JSON_PROPERTY_BALANCE, BalanceMutation.JSON_PROPERTY_CURRENCY, BalanceMutation.JSON_PROPERTY_RECEIVED, BalanceMutation.JSON_PROPERTY_RESERVED }) + public class BalanceMutation { public static final String JSON_PROPERTY_BALANCE = "balance"; private Long balance; @@ -37,14 +47,13 @@ public class BalanceMutation { public static final String JSON_PROPERTY_RESERVED = "reserved"; private Long reserved; - public BalanceMutation() {} + public BalanceMutation() { + } /** - * The amount in the payment's currency that is debited or credited on the balance accounting - * register. + * The amount in the payment's currency that is debited or credited on the balance accounting register. * - * @param balance The amount in the payment's currency that is debited or credited on the - * balance accounting register. + * @param balance The amount in the payment's currency that is debited or credited on the balance accounting register. * @return the current {@code BalanceMutation} instance, allowing for method chaining */ public BalanceMutation balance(Long balance) { @@ -53,11 +62,8 @@ public BalanceMutation balance(Long balance) { } /** - * The amount in the payment's currency that is debited or credited on the balance accounting - * register. - * - * @return balance The amount in the payment's currency that is debited or credited on the - * balance accounting register. + * The amount in the payment's currency that is debited or credited on the balance accounting register. + * @return balance The amount in the payment's currency that is debited or credited on the balance accounting register. */ @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -66,11 +72,9 @@ public Long getBalance() { } /** - * The amount in the payment's currency that is debited or credited on the balance accounting - * register. + * The amount in the payment's currency that is debited or credited on the balance accounting register. * - * @param balance The amount in the payment's currency that is debited or credited on the - * balance accounting register. + * @param balance The amount in the payment's currency that is debited or credited on the balance accounting register. */ @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,11 +83,9 @@ public void setBalance(Long balance) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code BalanceMutation} instance, allowing for method chaining */ public BalanceMutation currency(String currency) { @@ -92,11 +94,8 @@ public BalanceMutation currency(String currency) { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). - * - * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,11 +104,9 @@ public String getCurrency() { } /** - * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes). + * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,11 +115,9 @@ public void setCurrency(String currency) { } /** - * The amount in the payment's currency that is debited or credited on the received accounting - * register. + * The amount in the payment's currency that is debited or credited on the received accounting register. * - * @param received The amount in the payment's currency that is debited or credited on the - * received accounting register. + * @param received The amount in the payment's currency that is debited or credited on the received accounting register. * @return the current {@code BalanceMutation} instance, allowing for method chaining */ public BalanceMutation received(Long received) { @@ -131,11 +126,8 @@ public BalanceMutation received(Long received) { } /** - * The amount in the payment's currency that is debited or credited on the received accounting - * register. - * - * @return received The amount in the payment's currency that is debited or credited on the - * received accounting register. + * The amount in the payment's currency that is debited or credited on the received accounting register. + * @return received The amount in the payment's currency that is debited or credited on the received accounting register. */ @JsonProperty(JSON_PROPERTY_RECEIVED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,11 +136,9 @@ public Long getReceived() { } /** - * The amount in the payment's currency that is debited or credited on the received accounting - * register. + * The amount in the payment's currency that is debited or credited on the received accounting register. * - * @param received The amount in the payment's currency that is debited or credited on the - * received accounting register. + * @param received The amount in the payment's currency that is debited or credited on the received accounting register. */ @JsonProperty(JSON_PROPERTY_RECEIVED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -157,11 +147,9 @@ public void setReceived(Long received) { } /** - * The amount in the payment's currency that is debited or credited on the reserved accounting - * register. + * The amount in the payment's currency that is debited or credited on the reserved accounting register. * - * @param reserved The amount in the payment's currency that is debited or credited on the - * reserved accounting register. + * @param reserved The amount in the payment's currency that is debited or credited on the reserved accounting register. * @return the current {@code BalanceMutation} instance, allowing for method chaining */ public BalanceMutation reserved(Long reserved) { @@ -170,11 +158,8 @@ public BalanceMutation reserved(Long reserved) { } /** - * The amount in the payment's currency that is debited or credited on the reserved accounting - * register. - * - * @return reserved The amount in the payment's currency that is debited or credited on the - * reserved accounting register. + * The amount in the payment's currency that is debited or credited on the reserved accounting register. + * @return reserved The amount in the payment's currency that is debited or credited on the reserved accounting register. */ @JsonProperty(JSON_PROPERTY_RESERVED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,11 +168,9 @@ public Long getReserved() { } /** - * The amount in the payment's currency that is debited or credited on the reserved accounting - * register. + * The amount in the payment's currency that is debited or credited on the reserved accounting register. * - * @param reserved The amount in the payment's currency that is debited or credited on the - * reserved accounting register. + * @param reserved The amount in the payment's currency that is debited or credited on the reserved accounting register. */ @JsonProperty(JSON_PROPERTY_RESERVED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,7 +178,9 @@ public void setReserved(Long reserved) { this.reserved = reserved; } - /** Return true if this BalanceMutation object is equal to o. */ + /** + * Return true if this BalanceMutation object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -205,10 +190,10 @@ public boolean equals(Object o) { return false; } BalanceMutation balanceMutation = (BalanceMutation) o; - return Objects.equals(this.balance, balanceMutation.balance) - && Objects.equals(this.currency, balanceMutation.currency) - && Objects.equals(this.received, balanceMutation.received) - && Objects.equals(this.reserved, balanceMutation.reserved); + return Objects.equals(this.balance, balanceMutation.balance) && + Objects.equals(this.currency, balanceMutation.currency) && + Objects.equals(this.received, balanceMutation.received) && + Objects.equals(this.reserved, balanceMutation.reserved); } @Override @@ -229,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -238,7 +224,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BalanceMutation given an JSON string * * @param jsonString JSON string @@ -248,12 +234,11 @@ private String toIndentedString(Object o) { public static BalanceMutation fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceMutation.class); } - - /** - * Convert an instance of BalanceMutation to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BalanceMutation to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/BalancePlatformNotificationResponse.java b/src/main/java/com/adyen/model/transferwebhooks/BalancePlatformNotificationResponse.java index 6f13538f7..85261eb0a 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/BalancePlatformNotificationResponse.java +++ b/src/main/java/com/adyen/model/transferwebhooks/BalancePlatformNotificationResponse.java @@ -2,37 +2,47 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** BalancePlatformNotificationResponse */ -@JsonPropertyOrder({BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) + +/** + * BalancePlatformNotificationResponse + */ +@JsonPropertyOrder({ + BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE +}) + public class BalancePlatformNotificationResponse { public static final String JSON_PROPERTY_NOTIFICATION_RESPONSE = "notificationResponse"; private String notificationResponse; - public BalancePlatformNotificationResponse() {} + public BalancePlatformNotificationResponse() { + } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method - * chaining + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method chaining */ public BalancePlatformNotificationResponse notificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; @@ -40,11 +50,8 @@ public BalancePlatformNotificationResponse notificationResponse(String notificat } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * - * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -53,11 +60,9 @@ public String getNotificationResponse() { } /** - * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -65,7 +70,9 @@ public void setNotificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; } - /** Return true if this BalancePlatformNotificationResponse object is equal to o. */ + /** + * Return true if this BalancePlatformNotificationResponse object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -74,10 +81,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - BalancePlatformNotificationResponse balancePlatformNotificationResponse = - (BalancePlatformNotificationResponse) o; - return Objects.equals( - this.notificationResponse, balancePlatformNotificationResponse.notificationResponse); + BalancePlatformNotificationResponse balancePlatformNotificationResponse = (BalancePlatformNotificationResponse) o; + return Objects.equals(this.notificationResponse, balancePlatformNotificationResponse.notificationResponse); } @Override @@ -89,15 +94,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BalancePlatformNotificationResponse {\n"); - sb.append(" notificationResponse: ") - .append(toIndentedString(notificationResponse)) - .append("\n"); + sb.append(" notificationResponse: ").append(toIndentedString(notificationResponse)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -106,24 +110,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BalancePlatformNotificationResponse given an JSON string * * @param jsonString JSON string * @return An instance of BalancePlatformNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BalancePlatformNotificationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to BalancePlatformNotificationResponse */ - public static BalancePlatformNotificationResponse fromJson(String jsonString) - throws JsonProcessingException { + public static BalancePlatformNotificationResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalancePlatformNotificationResponse.class); } - - /** - * Convert an instance of BalancePlatformNotificationResponse to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BalancePlatformNotificationResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/BankAccountV3.java b/src/main/java/com/adyen/model/transferwebhooks/BankAccountV3.java index 5d6020d39..11668bf85 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/BankAccountV3.java +++ b/src/main/java/com/adyen/model/transferwebhooks/BankAccountV3.java @@ -2,26 +2,38 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transferwebhooks.BankAccountV3AccountIdentification; +import com.adyen.model.transferwebhooks.PartyIdentification; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** BankAccountV3 */ + +/** + * BankAccountV3 + */ @JsonPropertyOrder({ BankAccountV3.JSON_PROPERTY_ACCOUNT_HOLDER, BankAccountV3.JSON_PROPERTY_ACCOUNT_IDENTIFICATION }) + public class BankAccountV3 { public static final String JSON_PROPERTY_ACCOUNT_HOLDER = "accountHolder"; private PartyIdentification accountHolder; @@ -29,12 +41,13 @@ public class BankAccountV3 { public static final String JSON_PROPERTY_ACCOUNT_IDENTIFICATION = "accountIdentification"; private BankAccountV3AccountIdentification accountIdentification; - public BankAccountV3() {} + public BankAccountV3() { + } /** * accountHolder * - * @param accountHolder + * @param accountHolder * @return the current {@code BankAccountV3} instance, allowing for method chaining */ public BankAccountV3 accountHolder(PartyIdentification accountHolder) { @@ -44,8 +57,7 @@ public BankAccountV3 accountHolder(PartyIdentification accountHolder) { /** * Get accountHolder - * - * @return accountHolder + * @return accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -56,7 +68,7 @@ public PartyIdentification getAccountHolder() { /** * accountHolder * - * @param accountHolder + * @param accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -67,19 +79,17 @@ public void setAccountHolder(PartyIdentification accountHolder) { /** * accountIdentification * - * @param accountIdentification + * @param accountIdentification * @return the current {@code BankAccountV3} instance, allowing for method chaining */ - public BankAccountV3 accountIdentification( - BankAccountV3AccountIdentification accountIdentification) { + public BankAccountV3 accountIdentification(BankAccountV3AccountIdentification accountIdentification) { this.accountIdentification = accountIdentification; return this; } /** * Get accountIdentification - * - * @return accountIdentification + * @return accountIdentification */ @JsonProperty(JSON_PROPERTY_ACCOUNT_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -90,7 +100,7 @@ public BankAccountV3AccountIdentification getAccountIdentification() { /** * accountIdentification * - * @param accountIdentification + * @param accountIdentification */ @JsonProperty(JSON_PROPERTY_ACCOUNT_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -98,7 +108,9 @@ public void setAccountIdentification(BankAccountV3AccountIdentification accountI this.accountIdentification = accountIdentification; } - /** Return true if this BankAccountV3 object is equal to o. */ + /** + * Return true if this BankAccountV3 object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -108,8 +120,8 @@ public boolean equals(Object o) { return false; } BankAccountV3 bankAccountV3 = (BankAccountV3) o; - return Objects.equals(this.accountHolder, bankAccountV3.accountHolder) - && Objects.equals(this.accountIdentification, bankAccountV3.accountIdentification); + return Objects.equals(this.accountHolder, bankAccountV3.accountHolder) && + Objects.equals(this.accountIdentification, bankAccountV3.accountIdentification); } @Override @@ -122,15 +134,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BankAccountV3 {\n"); sb.append(" accountHolder: ").append(toIndentedString(accountHolder)).append("\n"); - sb.append(" accountIdentification: ") - .append(toIndentedString(accountIdentification)) - .append("\n"); + sb.append(" accountIdentification: ").append(toIndentedString(accountIdentification)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -139,7 +150,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BankAccountV3 given an JSON string * * @param jsonString JSON string @@ -149,12 +160,11 @@ private String toIndentedString(Object o) { public static BankAccountV3 fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankAccountV3.class); } - - /** - * Convert an instance of BankAccountV3 to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BankAccountV3 to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/BankAccountV3AccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/BankAccountV3AccountIdentification.java index 8b8a56abf..0b836bdf8 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/BankAccountV3AccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/BankAccountV3AccountIdentification.java @@ -2,19 +2,60 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transferwebhooks.AULocalAccountIdentification; +import com.adyen.model.transferwebhooks.AdditionalBankIdentification; +import com.adyen.model.transferwebhooks.BRLocalAccountIdentification; +import com.adyen.model.transferwebhooks.CALocalAccountIdentification; +import com.adyen.model.transferwebhooks.CZLocalAccountIdentification; +import com.adyen.model.transferwebhooks.DKLocalAccountIdentification; +import com.adyen.model.transferwebhooks.HKLocalAccountIdentification; +import com.adyen.model.transferwebhooks.HULocalAccountIdentification; +import com.adyen.model.transferwebhooks.IbanAccountIdentification; +import com.adyen.model.transferwebhooks.NOLocalAccountIdentification; +import com.adyen.model.transferwebhooks.NZLocalAccountIdentification; +import com.adyen.model.transferwebhooks.NumberAndBicAccountIdentification; +import com.adyen.model.transferwebhooks.PLLocalAccountIdentification; +import com.adyen.model.transferwebhooks.SELocalAccountIdentification; +import com.adyen.model.transferwebhooks.SGLocalAccountIdentification; +import com.adyen.model.transferwebhooks.UKLocalAccountIdentification; +import com.adyen.model.transferwebhooks.USLocalAccountIdentification; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + +import com.fasterxml.jackson.core.type.TypeReference; + +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.Response; +import java.io.IOException; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; + import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; +import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -24,942 +65,872 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import jakarta.ws.rs.core.GenericType; -import java.io.IOException; -import java.util.*; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashSet; -import java.util.logging.Level; -import java.util.logging.Logger; -@JsonDeserialize( - using = BankAccountV3AccountIdentification.BankAccountV3AccountIdentificationDeserializer.class) -@JsonSerialize( - using = BankAccountV3AccountIdentification.BankAccountV3AccountIdentificationSerializer.class) + +@JsonDeserialize(using = BankAccountV3AccountIdentification.BankAccountV3AccountIdentificationDeserializer.class) +@JsonSerialize(using = BankAccountV3AccountIdentification.BankAccountV3AccountIdentificationSerializer.class) public class BankAccountV3AccountIdentification extends AbstractOpenApiSchema { - private static final Logger log = - Logger.getLogger(BankAccountV3AccountIdentification.class.getName()); + private static final Logger log = Logger.getLogger(BankAccountV3AccountIdentification.class.getName()); - public static class BankAccountV3AccountIdentificationSerializer - extends StdSerializer { - public BankAccountV3AccountIdentificationSerializer( - Class t) { - super(t); + public static class BankAccountV3AccountIdentificationSerializer extends StdSerializer { + public BankAccountV3AccountIdentificationSerializer(Class t) { + super(t); + } + + public BankAccountV3AccountIdentificationSerializer() { + this(null); + } + + @Override + public void serialize(BankAccountV3AccountIdentification value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); + } } - public BankAccountV3AccountIdentificationSerializer() { - this(null); + public static class BankAccountV3AccountIdentificationDeserializer extends StdDeserializer { + public BankAccountV3AccountIdentificationDeserializer() { + this(BankAccountV3AccountIdentification.class); + } + + public BankAccountV3AccountIdentificationDeserializer(Class vc) { + super(vc); + } + + @Override + public BankAccountV3AccountIdentification deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize AULocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(AULocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(AULocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'AULocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'AULocalAccountIdentification'", e); + } + + // deserialize BRLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(BRLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(BRLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'BRLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'BRLocalAccountIdentification'", e); + } + + // deserialize CALocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(CALocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CALocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CALocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CALocalAccountIdentification'", e); + } + + // deserialize CZLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(CZLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CZLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CZLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CZLocalAccountIdentification'", e); + } + + // deserialize DKLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(DKLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(DKLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'DKLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'DKLocalAccountIdentification'", e); + } + + // deserialize HKLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(HKLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(HKLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'HKLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'HKLocalAccountIdentification'", e); + } + + // deserialize HULocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(HULocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(HULocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'HULocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'HULocalAccountIdentification'", e); + } + + // deserialize IbanAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(IbanAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'IbanAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'IbanAccountIdentification'", e); + } + + // deserialize NOLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(NOLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(NOLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'NOLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'NOLocalAccountIdentification'", e); + } + + // deserialize NZLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(NZLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(NZLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'NZLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'NZLocalAccountIdentification'", e); + } + + // deserialize NumberAndBicAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(NumberAndBicAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(NumberAndBicAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'NumberAndBicAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'NumberAndBicAccountIdentification'", e); + } + + // deserialize PLLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(PLLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PLLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PLLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PLLocalAccountIdentification'", e); + } + + // deserialize SELocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(SELocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(SELocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'SELocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'SELocalAccountIdentification'", e); + } + + // deserialize SGLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(SGLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(SGLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'SGLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'SGLocalAccountIdentification'", e); + } + + // deserialize UKLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(UKLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(UKLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'UKLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'UKLocalAccountIdentification'", e); + } + + // deserialize USLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(USLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(USLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'USLocalAccountIdentification'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'USLocalAccountIdentification'", e); + } + + if (match == 1) { + BankAccountV3AccountIdentification ret = new BankAccountV3AccountIdentification(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException(String.format("Failed deserialization for BankAccountV3AccountIdentification: %d classes match result, expected 1", match)); + } + + /** + * Handle deserialization of the 'null' value. + */ + @Override + public BankAccountV3AccountIdentification getNullValue(DeserializationContext ctxt) throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "BankAccountV3AccountIdentification cannot be null"); + } } - @Override - public void serialize( - BankAccountV3AccountIdentification value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public BankAccountV3AccountIdentification() { + super("oneOf", Boolean.FALSE); + } + + public BankAccountV3AccountIdentification(AULocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(BRLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(CALocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(CZLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(DKLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(HKLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(HULocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(IbanAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(NOLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(NZLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(NumberAndBicAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(PLLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(SELocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(SGLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(UKLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(USLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } - } - public static class BankAccountV3AccountIdentificationDeserializer - extends StdDeserializer { - public BankAccountV3AccountIdentificationDeserializer() { - this(BankAccountV3AccountIdentification.class); + static { + schemas.put("AULocalAccountIdentification", new GenericType() { + }); + schemas.put("BRLocalAccountIdentification", new GenericType() { + }); + schemas.put("CALocalAccountIdentification", new GenericType() { + }); + schemas.put("CZLocalAccountIdentification", new GenericType() { + }); + schemas.put("DKLocalAccountIdentification", new GenericType() { + }); + schemas.put("HKLocalAccountIdentification", new GenericType() { + }); + schemas.put("HULocalAccountIdentification", new GenericType() { + }); + schemas.put("IbanAccountIdentification", new GenericType() { + }); + schemas.put("NOLocalAccountIdentification", new GenericType() { + }); + schemas.put("NZLocalAccountIdentification", new GenericType() { + }); + schemas.put("NumberAndBicAccountIdentification", new GenericType() { + }); + schemas.put("PLLocalAccountIdentification", new GenericType() { + }); + schemas.put("SELocalAccountIdentification", new GenericType() { + }); + schemas.put("SGLocalAccountIdentification", new GenericType() { + }); + schemas.put("UKLocalAccountIdentification", new GenericType() { + }); + schemas.put("USLocalAccountIdentification", new GenericType() { + }); + JSON.registerDescendants(BankAccountV3AccountIdentification.class, Collections.unmodifiableMap(schemas)); } - public BankAccountV3AccountIdentificationDeserializer(Class vc) { - super(vc); + @Override + public Map> getSchemas() { + return BankAccountV3AccountIdentification.schemas; } + /** + * Set the instance that matches the oneOf child schema, check + * the instance parameter is valid against the oneOf child schemas: + * AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification + * + * It could be an instance of the 'oneOf' schemas. + * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). + */ @Override - public BankAccountV3AccountIdentification deserialize( - JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize AULocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(AULocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(AULocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AULocalAccountIdentification'"); - } + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(AULocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AULocalAccountIdentification'", e); - } - - // deserialize BRLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(BRLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(BRLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'BRLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(BRLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'BRLocalAccountIdentification'", e); - } - - // deserialize CALocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(CALocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(CALocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CALocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(CALocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CALocalAccountIdentification'", e); - } - - // deserialize CZLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(CZLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(CZLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CZLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(CZLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CZLocalAccountIdentification'", e); - } - - // deserialize DKLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(DKLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(DKLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'DKLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(DKLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'DKLocalAccountIdentification'", e); - } - - // deserialize HKLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(HKLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(HKLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'HKLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(HKLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'HKLocalAccountIdentification'", e); - } - - // deserialize HULocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(HULocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(HULocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'HULocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(HULocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'HULocalAccountIdentification'", e); - } - - // deserialize IbanAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(IbanAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'IbanAccountIdentification'"); - } + + if (JSON.isInstanceOf(IbanAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'IbanAccountIdentification'", e); - } - - // deserialize NOLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(NOLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(NOLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'NOLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(NOLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'NOLocalAccountIdentification'", e); - } - - // deserialize NZLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(NZLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(NZLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'NZLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(NZLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'NZLocalAccountIdentification'", e); - } - - // deserialize NumberAndBicAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(NumberAndBicAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(NumberAndBicAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'NumberAndBicAccountIdentification'"); - } + + if (JSON.isInstanceOf(NumberAndBicAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, "Input data does not match schema 'NumberAndBicAccountIdentification'", e); - } - - // deserialize PLLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(PLLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(PLLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PLLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(PLLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PLLocalAccountIdentification'", e); - } - - // deserialize SELocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(SELocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(SELocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SELocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(SELocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'SELocalAccountIdentification'", e); - } - - // deserialize SGLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(SGLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(SGLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SGLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(SGLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'SGLocalAccountIdentification'", e); - } - - // deserialize UKLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(UKLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(UKLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'UKLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(UKLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'UKLocalAccountIdentification'", e); - } - - // deserialize USLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(USLocalAccountIdentification.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(USLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'USLocalAccountIdentification'"); - } + + if (JSON.isInstanceOf(USLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'USLocalAccountIdentification'", e); - } - - if (match == 1) { - BankAccountV3AccountIdentification ret = new BankAccountV3AccountIdentification(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for BankAccountV3AccountIdentification: %d classes match result, expected 1", - match)); - } - - /** Handle deserialization of the 'null' value. */ + + throw new RuntimeException("Invalid instance type. Must be AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification"); + } + + /** + * Get the actual instance, which can be the following: + * AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification + * + * @return The actual instance (AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification) + */ @Override - public BankAccountV3AccountIdentification getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "BankAccountV3AccountIdentification cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public BankAccountV3AccountIdentification() { - super("oneOf", Boolean.FALSE); - } - - public BankAccountV3AccountIdentification(AULocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(BRLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(CALocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(CZLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(DKLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(HKLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(HULocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(IbanAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(NOLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(NZLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(NumberAndBicAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(PLLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(SELocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(SGLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(UKLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(USLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("AULocalAccountIdentification", new GenericType() {}); - schemas.put("BRLocalAccountIdentification", new GenericType() {}); - schemas.put("CALocalAccountIdentification", new GenericType() {}); - schemas.put("CZLocalAccountIdentification", new GenericType() {}); - schemas.put("DKLocalAccountIdentification", new GenericType() {}); - schemas.put("HKLocalAccountIdentification", new GenericType() {}); - schemas.put("HULocalAccountIdentification", new GenericType() {}); - schemas.put("IbanAccountIdentification", new GenericType() {}); - schemas.put("NOLocalAccountIdentification", new GenericType() {}); - schemas.put("NZLocalAccountIdentification", new GenericType() {}); - schemas.put( - "NumberAndBicAccountIdentification", - new GenericType() {}); - schemas.put("PLLocalAccountIdentification", new GenericType() {}); - schemas.put("SELocalAccountIdentification", new GenericType() {}); - schemas.put("SGLocalAccountIdentification", new GenericType() {}); - schemas.put("UKLocalAccountIdentification", new GenericType() {}); - schemas.put("USLocalAccountIdentification", new GenericType() {}); - JSON.registerDescendants( - BankAccountV3AccountIdentification.class, Collections.unmodifiableMap(schemas)); - } + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `AULocalAccountIdentification`. If the actual instance is not `AULocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `AULocalAccountIdentification` + * @throws ClassCastException if the instance is not `AULocalAccountIdentification` + */ + public AULocalAccountIdentification getAULocalAccountIdentification() throws ClassCastException { + return (AULocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `BRLocalAccountIdentification`. If the actual instance is not `BRLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `BRLocalAccountIdentification` + * @throws ClassCastException if the instance is not `BRLocalAccountIdentification` + */ + public BRLocalAccountIdentification getBRLocalAccountIdentification() throws ClassCastException { + return (BRLocalAccountIdentification)super.getActualInstance(); + } - @Override - public Map> getSchemas() { - return BankAccountV3AccountIdentification.schemas; - } + /** + * Get the actual instance of `CALocalAccountIdentification`. If the actual instance is not `CALocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CALocalAccountIdentification` + * @throws ClassCastException if the instance is not `CALocalAccountIdentification` + */ + public CALocalAccountIdentification getCALocalAccountIdentification() throws ClassCastException { + return (CALocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `CZLocalAccountIdentification`. If the actual instance is not `CZLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CZLocalAccountIdentification` + * @throws ClassCastException if the instance is not `CZLocalAccountIdentification` + */ + public CZLocalAccountIdentification getCZLocalAccountIdentification() throws ClassCastException { + return (CZLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `DKLocalAccountIdentification`. If the actual instance is not `DKLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `DKLocalAccountIdentification` + * @throws ClassCastException if the instance is not `DKLocalAccountIdentification` + */ + public DKLocalAccountIdentification getDKLocalAccountIdentification() throws ClassCastException { + return (DKLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `HKLocalAccountIdentification`. If the actual instance is not `HKLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `HKLocalAccountIdentification` + * @throws ClassCastException if the instance is not `HKLocalAccountIdentification` + */ + public HKLocalAccountIdentification getHKLocalAccountIdentification() throws ClassCastException { + return (HKLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `HULocalAccountIdentification`. If the actual instance is not `HULocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `HULocalAccountIdentification` + * @throws ClassCastException if the instance is not `HULocalAccountIdentification` + */ + public HULocalAccountIdentification getHULocalAccountIdentification() throws ClassCastException { + return (HULocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `IbanAccountIdentification`. If the actual instance is not `IbanAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `IbanAccountIdentification` + * @throws ClassCastException if the instance is not `IbanAccountIdentification` + */ + public IbanAccountIdentification getIbanAccountIdentification() throws ClassCastException { + return (IbanAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `NOLocalAccountIdentification`. If the actual instance is not `NOLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `NOLocalAccountIdentification` + * @throws ClassCastException if the instance is not `NOLocalAccountIdentification` + */ + public NOLocalAccountIdentification getNOLocalAccountIdentification() throws ClassCastException { + return (NOLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `NZLocalAccountIdentification`. If the actual instance is not `NZLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `NZLocalAccountIdentification` + * @throws ClassCastException if the instance is not `NZLocalAccountIdentification` + */ + public NZLocalAccountIdentification getNZLocalAccountIdentification() throws ClassCastException { + return (NZLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `NumberAndBicAccountIdentification`. If the actual instance is not `NumberAndBicAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `NumberAndBicAccountIdentification` + * @throws ClassCastException if the instance is not `NumberAndBicAccountIdentification` + */ + public NumberAndBicAccountIdentification getNumberAndBicAccountIdentification() throws ClassCastException { + return (NumberAndBicAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `PLLocalAccountIdentification`. If the actual instance is not `PLLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `PLLocalAccountIdentification` + * @throws ClassCastException if the instance is not `PLLocalAccountIdentification` + */ + public PLLocalAccountIdentification getPLLocalAccountIdentification() throws ClassCastException { + return (PLLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `SELocalAccountIdentification`. If the actual instance is not `SELocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `SELocalAccountIdentification` + * @throws ClassCastException if the instance is not `SELocalAccountIdentification` + */ + public SELocalAccountIdentification getSELocalAccountIdentification() throws ClassCastException { + return (SELocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `SGLocalAccountIdentification`. If the actual instance is not `SGLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `SGLocalAccountIdentification` + * @throws ClassCastException if the instance is not `SGLocalAccountIdentification` + */ + public SGLocalAccountIdentification getSGLocalAccountIdentification() throws ClassCastException { + return (SGLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `UKLocalAccountIdentification`. If the actual instance is not `UKLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `UKLocalAccountIdentification` + * @throws ClassCastException if the instance is not `UKLocalAccountIdentification` + */ + public UKLocalAccountIdentification getUKLocalAccountIdentification() throws ClassCastException { + return (UKLocalAccountIdentification)super.getActualInstance(); + } + + /** + * Get the actual instance of `USLocalAccountIdentification`. If the actual instance is not `USLocalAccountIdentification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `USLocalAccountIdentification` + * @throws ClassCastException if the instance is not `USLocalAccountIdentification` + */ + public USLocalAccountIdentification getUSLocalAccountIdentification() throws ClassCastException { + return (USLocalAccountIdentification)super.getActualInstance(); + } + + + /** + * Create an instance of BankAccountV3AccountIdentification given an JSON string + * + * @param jsonString JSON string + * @return An instance of BankAccountV3AccountIdentification + * @throws IOException if the JSON string is invalid with respect to BankAccountV3AccountIdentification + */ + public static BankAccountV3AccountIdentification fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, BankAccountV3AccountIdentification.class); + } + + /** + * Convert an instance of BankAccountV3AccountIdentification to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: AULocalAccountIdentification, BRLocalAccountIdentification, - * CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, - * HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, - * NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, - * PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, - * UKLocalAccountIdentification, USLocalAccountIdentification - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a - * composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(AULocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(BRLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(CALocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(CZLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(DKLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(HKLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(HULocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(IbanAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(NOLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(NZLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(NumberAndBicAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(PLLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(SELocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(SGLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(UKLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(USLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException( - "Invalid instance type. Must be AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification"); - } - - /** - * Get the actual instance, which can be the following: AULocalAccountIdentification, - * BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, - * DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, - * IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, - * NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, - * SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification - * - * @return The actual instance (AULocalAccountIdentification, BRLocalAccountIdentification, - * CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, - * HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, - * NOLocalAccountIdentification, NZLocalAccountIdentification, - * NumberAndBicAccountIdentification, PLLocalAccountIdentification, - * SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, - * USLocalAccountIdentification) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `AULocalAccountIdentification`. If the actual instance is not - * `AULocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `AULocalAccountIdentification` - * @throws ClassCastException if the instance is not `AULocalAccountIdentification` - */ - public AULocalAccountIdentification getAULocalAccountIdentification() throws ClassCastException { - return (AULocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `BRLocalAccountIdentification`. If the actual instance is not - * `BRLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `BRLocalAccountIdentification` - * @throws ClassCastException if the instance is not `BRLocalAccountIdentification` - */ - public BRLocalAccountIdentification getBRLocalAccountIdentification() throws ClassCastException { - return (BRLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `CALocalAccountIdentification`. If the actual instance is not - * `CALocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `CALocalAccountIdentification` - * @throws ClassCastException if the instance is not `CALocalAccountIdentification` - */ - public CALocalAccountIdentification getCALocalAccountIdentification() throws ClassCastException { - return (CALocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `CZLocalAccountIdentification`. If the actual instance is not - * `CZLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `CZLocalAccountIdentification` - * @throws ClassCastException if the instance is not `CZLocalAccountIdentification` - */ - public CZLocalAccountIdentification getCZLocalAccountIdentification() throws ClassCastException { - return (CZLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `DKLocalAccountIdentification`. If the actual instance is not - * `DKLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `DKLocalAccountIdentification` - * @throws ClassCastException if the instance is not `DKLocalAccountIdentification` - */ - public DKLocalAccountIdentification getDKLocalAccountIdentification() throws ClassCastException { - return (DKLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `HKLocalAccountIdentification`. If the actual instance is not - * `HKLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `HKLocalAccountIdentification` - * @throws ClassCastException if the instance is not `HKLocalAccountIdentification` - */ - public HKLocalAccountIdentification getHKLocalAccountIdentification() throws ClassCastException { - return (HKLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `HULocalAccountIdentification`. If the actual instance is not - * `HULocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `HULocalAccountIdentification` - * @throws ClassCastException if the instance is not `HULocalAccountIdentification` - */ - public HULocalAccountIdentification getHULocalAccountIdentification() throws ClassCastException { - return (HULocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `IbanAccountIdentification`. If the actual instance is not - * `IbanAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `IbanAccountIdentification` - * @throws ClassCastException if the instance is not `IbanAccountIdentification` - */ - public IbanAccountIdentification getIbanAccountIdentification() throws ClassCastException { - return (IbanAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `NOLocalAccountIdentification`. If the actual instance is not - * `NOLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `NOLocalAccountIdentification` - * @throws ClassCastException if the instance is not `NOLocalAccountIdentification` - */ - public NOLocalAccountIdentification getNOLocalAccountIdentification() throws ClassCastException { - return (NOLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `NZLocalAccountIdentification`. If the actual instance is not - * `NZLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `NZLocalAccountIdentification` - * @throws ClassCastException if the instance is not `NZLocalAccountIdentification` - */ - public NZLocalAccountIdentification getNZLocalAccountIdentification() throws ClassCastException { - return (NZLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `NumberAndBicAccountIdentification`. If the actual instance is not - * `NumberAndBicAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `NumberAndBicAccountIdentification` - * @throws ClassCastException if the instance is not `NumberAndBicAccountIdentification` - */ - public NumberAndBicAccountIdentification getNumberAndBicAccountIdentification() - throws ClassCastException { - return (NumberAndBicAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `PLLocalAccountIdentification`. If the actual instance is not - * `PLLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `PLLocalAccountIdentification` - * @throws ClassCastException if the instance is not `PLLocalAccountIdentification` - */ - public PLLocalAccountIdentification getPLLocalAccountIdentification() throws ClassCastException { - return (PLLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `SELocalAccountIdentification`. If the actual instance is not - * `SELocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `SELocalAccountIdentification` - * @throws ClassCastException if the instance is not `SELocalAccountIdentification` - */ - public SELocalAccountIdentification getSELocalAccountIdentification() throws ClassCastException { - return (SELocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `SGLocalAccountIdentification`. If the actual instance is not - * `SGLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `SGLocalAccountIdentification` - * @throws ClassCastException if the instance is not `SGLocalAccountIdentification` - */ - public SGLocalAccountIdentification getSGLocalAccountIdentification() throws ClassCastException { - return (SGLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `UKLocalAccountIdentification`. If the actual instance is not - * `UKLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `UKLocalAccountIdentification` - * @throws ClassCastException if the instance is not `UKLocalAccountIdentification` - */ - public UKLocalAccountIdentification getUKLocalAccountIdentification() throws ClassCastException { - return (UKLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `USLocalAccountIdentification`. If the actual instance is not - * `USLocalAccountIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `USLocalAccountIdentification` - * @throws ClassCastException if the instance is not `USLocalAccountIdentification` - */ - public USLocalAccountIdentification getUSLocalAccountIdentification() throws ClassCastException { - return (USLocalAccountIdentification) super.getActualInstance(); - } - - /** - * Create an instance of BankAccountV3AccountIdentification given an JSON string - * - * @param jsonString JSON string - * @return An instance of BankAccountV3AccountIdentification - * @throws IOException if the JSON string is invalid with respect to - * BankAccountV3AccountIdentification - */ - public static BankAccountV3AccountIdentification fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, BankAccountV3AccountIdentification.class); - } - - /** - * Convert an instance of BankAccountV3AccountIdentification to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); - } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/BankCategoryData.java b/src/main/java/com/adyen/model/transferwebhooks/BankCategoryData.java index 12d2f75db..236a253fd 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/BankCategoryData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/BankCategoryData.java @@ -2,42 +2,42 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * BankCategoryData + */ +@JsonPropertyOrder({ + BankCategoryData.JSON_PROPERTY_PRIORITY, + BankCategoryData.JSON_PROPERTY_TYPE +}) -/** BankCategoryData */ -@JsonPropertyOrder({BankCategoryData.JSON_PROPERTY_PRIORITY, BankCategoryData.JSON_PROPERTY_TYPE}) public class BankCategoryData { /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the - * fees that you have to pay. Required for transfers with `category` **bank**. Possible - * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer - * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * - * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the - * United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). */ public enum PriorityEnum { + CROSSBORDER(String.valueOf("crossBorder")), FAST(String.valueOf("fast")), @@ -55,7 +55,7 @@ public enum PriorityEnum { private String value; PriorityEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -76,11 +76,7 @@ public static PriorityEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PriorityEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PriorityEnum.values())); + LOG.warning("PriorityEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PriorityEnum.values())); return null; } } @@ -88,8 +84,11 @@ public static PriorityEnum fromValue(String value) { public static final String JSON_PROPERTY_PRIORITY = "priority"; private PriorityEnum priority; - /** **bank** */ + /** + * **bank** + */ public enum TypeEnum { + BANK(String.valueOf("bank")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -97,7 +96,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -118,11 +117,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -130,32 +125,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public BankCategoryData() {} + public BankCategoryData() { + } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the - * fees that you have to pay. Required for transfers with `category` **bank**. Possible - * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer - * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * - * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the - * United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). * - * @param priority The priority for the bank transfer. This sets the speed at which the transfer - * is sent and the fees that you have to pay. Required for transfers with `category` - * **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a - * faster way to transfer funds, but the fees are higher. Recommended for high-priority, - * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the - * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for - * instant funds transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * @param priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). * @return the current {@code BankCategoryData} instance, allowing for method chaining */ public BankCategoryData priority(PriorityEnum priority) { @@ -164,29 +140,8 @@ public BankCategoryData priority(PriorityEnum priority) { } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the - * fees that you have to pay. Required for transfers with `category` **bank**. Possible - * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer - * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * - * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the - * United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). - * - * @return priority The priority for the bank transfer. This sets the speed at which the transfer - * is sent and the fees that you have to pay. Required for transfers with `category` - * **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a - * faster way to transfer funds, but the fees are higher. Recommended for high-priority, - * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the - * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for - * instant funds transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * @return priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). */ @JsonProperty(JSON_PROPERTY_PRIORITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,29 +150,9 @@ public PriorityEnum getPriority() { } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the - * fees that you have to pay. Required for transfers with `category` **bank**. Possible - * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer - * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * - * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the - * United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). * - * @param priority The priority for the bank transfer. This sets the speed at which the transfer - * is sent and the fees that you have to pay. Required for transfers with `category` - * **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a - * faster way to transfer funds, but the fees are higher. Recommended for high-priority, - * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the - * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for - * instant funds transfers within the United States and in [SEPA - * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account - * number/IBAN). + * @param priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). */ @JsonProperty(JSON_PROPERTY_PRIORITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -238,7 +173,6 @@ public BankCategoryData type(TypeEnum type) { /** * **bank** - * * @return type **bank** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -258,7 +192,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this BankCategoryData object is equal to o. */ + /** + * Return true if this BankCategoryData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -268,8 +204,8 @@ public boolean equals(Object o) { return false; } BankCategoryData bankCategoryData = (BankCategoryData) o; - return Objects.equals(this.priority, bankCategoryData.priority) - && Objects.equals(this.type, bankCategoryData.type); + return Objects.equals(this.priority, bankCategoryData.priority) && + Objects.equals(this.type, bankCategoryData.type); } @Override @@ -288,7 +224,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -297,7 +234,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of BankCategoryData given an JSON string * * @param jsonString JSON string @@ -307,12 +244,11 @@ private String toIndentedString(Object o) { public static BankCategoryData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankCategoryData.class); } - - /** - * Convert an instance of BankCategoryData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of BankCategoryData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/CALocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/CALocalAccountIdentification.java index e1c0ce47d..b3c87f808 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/CALocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/CALocalAccountIdentification.java @@ -2,26 +2,31 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** CALocalAccountIdentification */ +/** + * CALocalAccountIdentification + */ @JsonPropertyOrder({ CALocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, CALocalAccountIdentification.JSON_PROPERTY_ACCOUNT_TYPE, @@ -29,14 +34,16 @@ CALocalAccountIdentification.JSON_PROPERTY_TRANSIT_NUMBER, CALocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class CALocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ public enum AccountTypeEnum { + CHECKING(String.valueOf("checking")), SAVINGS(String.valueOf("savings")); @@ -46,7 +53,7 @@ public enum AccountTypeEnum { private String value; AccountTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -67,11 +74,7 @@ public static AccountTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AccountTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AccountTypeEnum.values())); + LOG.warning("AccountTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AccountTypeEnum.values())); return null; } } @@ -85,8 +88,11 @@ public static AccountTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANSIT_NUMBER = "transitNumber"; private String transitNumber; - /** **caLocal** */ + /** + * **caLocal** + */ public enum TypeEnum { + CALOCAL(String.valueOf("caLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -94,7 +100,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -115,11 +121,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -127,7 +129,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CALocalAccountIdentification() {} + public CALocalAccountIdentification() { + } /** * The 5- to 12-digit bank account number, without separators or whitespace. @@ -142,7 +145,6 @@ public CALocalAccountIdentification accountNumber(String accountNumber) { /** * The 5- to 12-digit bank account number, without separators or whitespace. - * * @return accountNumber The 5- to 12-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -163,10 +165,9 @@ public void setAccountNumber(String accountNumber) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. - * Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * @return the current {@code CALocalAccountIdentification} instance, allowing for method chaining */ public CALocalAccountIdentification accountType(AccountTypeEnum accountType) { @@ -175,10 +176,8 @@ public CALocalAccountIdentification accountType(AccountTypeEnum accountType) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. - * - * @return accountType The bank account type. Possible values: **checking** or **savings**. - * Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * @return accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,10 +186,9 @@ public AccountTypeEnum getAccountType() { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. - * Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,7 +209,6 @@ public CALocalAccountIdentification institutionNumber(String institutionNumber) /** * The 3-digit institution number, without separators or whitespace. - * * @return institutionNumber The 3-digit institution number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_INSTITUTION_NUMBER) @@ -244,7 +241,6 @@ public CALocalAccountIdentification transitNumber(String transitNumber) { /** * The 5-digit transit number, without separators or whitespace. - * * @return transitNumber The 5-digit transit number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_TRANSIT_NUMBER) @@ -277,7 +273,6 @@ public CALocalAccountIdentification type(TypeEnum type) { /** * **caLocal** - * * @return type **caLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -297,7 +292,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this CALocalAccountIdentification object is equal to o. */ + /** + * Return true if this CALocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -307,11 +304,11 @@ public boolean equals(Object o) { return false; } CALocalAccountIdentification caLocalAccountIdentification = (CALocalAccountIdentification) o; - return Objects.equals(this.accountNumber, caLocalAccountIdentification.accountNumber) - && Objects.equals(this.accountType, caLocalAccountIdentification.accountType) - && Objects.equals(this.institutionNumber, caLocalAccountIdentification.institutionNumber) - && Objects.equals(this.transitNumber, caLocalAccountIdentification.transitNumber) - && Objects.equals(this.type, caLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, caLocalAccountIdentification.accountNumber) && + Objects.equals(this.accountType, caLocalAccountIdentification.accountType) && + Objects.equals(this.institutionNumber, caLocalAccountIdentification.institutionNumber) && + Objects.equals(this.transitNumber, caLocalAccountIdentification.transitNumber) && + Objects.equals(this.type, caLocalAccountIdentification.type); } @Override @@ -333,7 +330,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -342,24 +340,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CALocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of CALocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CALocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to CALocalAccountIdentification */ - public static CALocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static CALocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CALocalAccountIdentification.class); } - - /** - * Convert an instance of CALocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CALocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/CZLocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/CZLocalAccountIdentification.java index a46f58f0b..08a7516f7 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/CZLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/CZLocalAccountIdentification.java @@ -2,31 +2,37 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** CZLocalAccountIdentification */ + +/** + * CZLocalAccountIdentification + */ @JsonPropertyOrder({ CZLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, CZLocalAccountIdentification.JSON_PROPERTY_BANK_CODE, CZLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class CZLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -34,8 +40,11 @@ public class CZLocalAccountIdentification { public static final String JSON_PROPERTY_BANK_CODE = "bankCode"; private String bankCode; - /** **czLocal** */ + /** + * **czLocal** + */ public enum TypeEnum { + CZLOCAL(String.valueOf("czLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -43,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -76,20 +81,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CZLocalAccountIdentification() {} + public CZLocalAccountIdentification() { + } /** - * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional - * prefix (předčíslí). - The required second part (základní část) which must be at least two - * non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - - * **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, - * normalized) + * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) * - * @param accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following - * format: - The optional prefix (předčíslí). - The required second part (základní část) which - * must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** - * (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** - * (without prefix, normalized) + * @param accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) * @return the current {@code CZLocalAccountIdentification} instance, allowing for method chaining */ public CZLocalAccountIdentification accountNumber(String accountNumber) { @@ -98,17 +96,8 @@ public CZLocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional - * prefix (předčíslí). - The required second part (základní část) which must be at least two - * non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - - * **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, - * normalized) - * - * @return accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following - * format: - The optional prefix (předčíslí). - The required second part (základní část) which - * must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** - * (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** - * (without prefix, normalized) + * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) + * @return accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,17 +106,9 @@ public String getAccountNumber() { } /** - * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional - * prefix (předčíslí). - The required second part (základní část) which must be at least two - * non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - - * **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, - * normalized) + * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) * - * @param accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following - * format: - The optional prefix (předčíslí). - The required second part (základní část) which - * must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** - * (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** - * (without prefix, normalized) + * @param accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,7 +129,6 @@ public CZLocalAccountIdentification bankCode(String bankCode) { /** * The 4-digit bank code (Kód banky), without separators or whitespace. - * * @return bankCode The 4-digit bank code (Kód banky), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_BANK_CODE) @@ -181,7 +161,6 @@ public CZLocalAccountIdentification type(TypeEnum type) { /** * **czLocal** - * * @return type **czLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -201,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this CZLocalAccountIdentification object is equal to o. */ + /** + * Return true if this CZLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -211,9 +192,9 @@ public boolean equals(Object o) { return false; } CZLocalAccountIdentification czLocalAccountIdentification = (CZLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, czLocalAccountIdentification.accountNumber) - && Objects.equals(this.bankCode, czLocalAccountIdentification.bankCode) - && Objects.equals(this.type, czLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, czLocalAccountIdentification.accountNumber) && + Objects.equals(this.bankCode, czLocalAccountIdentification.bankCode) && + Objects.equals(this.type, czLocalAccountIdentification.type); } @Override @@ -233,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -242,24 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CZLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of CZLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CZLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to CZLocalAccountIdentification */ - public static CZLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static CZLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CZLocalAccountIdentification.class); } - - /** - * Convert an instance of CZLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CZLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/Card.java b/src/main/java/com/adyen/model/transferwebhooks/Card.java index f7fe6a73b..2f4a5472f 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/Card.java +++ b/src/main/java/com/adyen/model/transferwebhooks/Card.java @@ -2,23 +2,38 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transferwebhooks.CardIdentification; +import com.adyen.model.transferwebhooks.PartyIdentification; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Card */ -@JsonPropertyOrder({Card.JSON_PROPERTY_CARD_HOLDER, Card.JSON_PROPERTY_CARD_IDENTIFICATION}) + +/** + * Card + */ +@JsonPropertyOrder({ + Card.JSON_PROPERTY_CARD_HOLDER, + Card.JSON_PROPERTY_CARD_IDENTIFICATION +}) + public class Card { public static final String JSON_PROPERTY_CARD_HOLDER = "cardHolder"; private PartyIdentification cardHolder; @@ -26,12 +41,13 @@ public class Card { public static final String JSON_PROPERTY_CARD_IDENTIFICATION = "cardIdentification"; private CardIdentification cardIdentification; - public Card() {} + public Card() { + } /** * cardHolder * - * @param cardHolder + * @param cardHolder * @return the current {@code Card} instance, allowing for method chaining */ public Card cardHolder(PartyIdentification cardHolder) { @@ -41,8 +57,7 @@ public Card cardHolder(PartyIdentification cardHolder) { /** * Get cardHolder - * - * @return cardHolder + * @return cardHolder */ @JsonProperty(JSON_PROPERTY_CARD_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -53,7 +68,7 @@ public PartyIdentification getCardHolder() { /** * cardHolder * - * @param cardHolder + * @param cardHolder */ @JsonProperty(JSON_PROPERTY_CARD_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,7 +79,7 @@ public void setCardHolder(PartyIdentification cardHolder) { /** * cardIdentification * - * @param cardIdentification + * @param cardIdentification * @return the current {@code Card} instance, allowing for method chaining */ public Card cardIdentification(CardIdentification cardIdentification) { @@ -74,8 +89,7 @@ public Card cardIdentification(CardIdentification cardIdentification) { /** * Get cardIdentification - * - * @return cardIdentification + * @return cardIdentification */ @JsonProperty(JSON_PROPERTY_CARD_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -86,7 +100,7 @@ public CardIdentification getCardIdentification() { /** * cardIdentification * - * @param cardIdentification + * @param cardIdentification */ @JsonProperty(JSON_PROPERTY_CARD_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,7 +108,9 @@ public void setCardIdentification(CardIdentification cardIdentification) { this.cardIdentification = cardIdentification; } - /** Return true if this Card object is equal to o. */ + /** + * Return true if this Card object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -104,8 +120,8 @@ public boolean equals(Object o) { return false; } Card card = (Card) o; - return Objects.equals(this.cardHolder, card.cardHolder) - && Objects.equals(this.cardIdentification, card.cardIdentification); + return Objects.equals(this.cardHolder, card.cardHolder) && + Objects.equals(this.cardIdentification, card.cardIdentification); } @Override @@ -124,7 +140,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,7 +150,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Card given an JSON string * * @param jsonString JSON string @@ -143,12 +160,11 @@ private String toIndentedString(Object o) { public static Card fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Card.class); } - - /** - * Convert an instance of Card to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Card to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/CardIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/CardIdentification.java index 5b6e43a02..0f39df3b4 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/CardIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/CardIdentification.java @@ -2,22 +2,31 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** CardIdentification */ + +/** + * CardIdentification + */ @JsonPropertyOrder({ CardIdentification.JSON_PROPERTY_EXPIRY_MONTH, CardIdentification.JSON_PROPERTY_EXPIRY_YEAR, @@ -27,6 +36,7 @@ CardIdentification.JSON_PROPERTY_START_YEAR, CardIdentification.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID }) + public class CardIdentification { public static final String JSON_PROPERTY_EXPIRY_MONTH = "expiryMonth"; private String expiryMonth; @@ -49,14 +59,13 @@ public class CardIdentification { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - public CardIdentification() {} + public CardIdentification() { + } /** - * The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. - * For example: * 03 = March * 11 = November + * The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November * - * @param expiryMonth The expiry month of the card. Format: two digits. Add a leading zero for - * single-digit months. For example: * 03 = March * 11 = November + * @param expiryMonth The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November * @return the current {@code CardIdentification} instance, allowing for method chaining */ public CardIdentification expiryMonth(String expiryMonth) { @@ -65,11 +74,8 @@ public CardIdentification expiryMonth(String expiryMonth) { } /** - * The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. - * For example: * 03 = March * 11 = November - * - * @return expiryMonth The expiry month of the card. Format: two digits. Add a leading zero for - * single-digit months. For example: * 03 = March * 11 = November + * The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November + * @return expiryMonth The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -78,11 +84,9 @@ public String getExpiryMonth() { } /** - * The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. - * For example: * 03 = March * 11 = November + * The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November * - * @param expiryMonth The expiry month of the card. Format: two digits. Add a leading zero for - * single-digit months. For example: * 03 = March * 11 = November + * @param expiryMonth The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -91,9 +95,9 @@ public void setExpiryMonth(String expiryMonth) { } /** - * The expiry year of the card. Format: four digits. For example: 2020 + * The expiry year of the card. Format: four digits. For example: 2020 * - * @param expiryYear The expiry year of the card. Format: four digits. For example: 2020 + * @param expiryYear The expiry year of the card. Format: four digits. For example: 2020 * @return the current {@code CardIdentification} instance, allowing for method chaining */ public CardIdentification expiryYear(String expiryYear) { @@ -102,9 +106,8 @@ public CardIdentification expiryYear(String expiryYear) { } /** - * The expiry year of the card. Format: four digits. For example: 2020 - * - * @return expiryYear The expiry year of the card. Format: four digits. For example: 2020 + * The expiry year of the card. Format: four digits. For example: 2020 + * @return expiryYear The expiry year of the card. Format: four digits. For example: 2020 */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,9 +116,9 @@ public String getExpiryYear() { } /** - * The expiry year of the card. Format: four digits. For example: 2020 + * The expiry year of the card. Format: four digits. For example: 2020 * - * @param expiryYear The expiry year of the card. Format: four digits. For example: 2020 + * @param expiryYear The expiry year of the card. Format: four digits. For example: 2020 */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,7 +139,6 @@ public CardIdentification issueNumber(String issueNumber) { /** * The issue number of the card. Applies only to some UK debit cards. - * * @return issueNumber The issue number of the card. Applies only to some UK debit cards. */ @JsonProperty(JSON_PROPERTY_ISSUE_NUMBER) @@ -157,11 +159,9 @@ public void setIssueNumber(String issueNumber) { } /** - * The card number without any separators. For security, the response only includes the last four - * digits of the card number. + * The card number without any separators. For security, the response only includes the last four digits of the card number. * - * @param number The card number without any separators. For security, the response only includes - * the last four digits of the card number. + * @param number The card number without any separators. For security, the response only includes the last four digits of the card number. * @return the current {@code CardIdentification} instance, allowing for method chaining */ public CardIdentification number(String number) { @@ -170,11 +170,8 @@ public CardIdentification number(String number) { } /** - * The card number without any separators. For security, the response only includes the last four - * digits of the card number. - * - * @return number The card number without any separators. For security, the response only includes - * the last four digits of the card number. + * The card number without any separators. For security, the response only includes the last four digits of the card number. + * @return number The card number without any separators. For security, the response only includes the last four digits of the card number. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,11 +180,9 @@ public String getNumber() { } /** - * The card number without any separators. For security, the response only includes the last four - * digits of the card number. + * The card number without any separators. For security, the response only includes the last four digits of the card number. * - * @param number The card number without any separators. For security, the response only includes - * the last four digits of the card number. + * @param number The card number without any separators. For security, the response only includes the last four digits of the card number. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -196,12 +191,9 @@ public void setNumber(String number) { } /** - * The month when the card was issued. Applies only to some UK debit cards. Format: two digits. - * Add a leading zero for single-digit months. For example: * 03 = March * 11 = November + * The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November * - * @param startMonth The month when the card was issued. Applies only to some UK debit cards. - * Format: two digits. Add a leading zero for single-digit months. For example: * 03 = - * March * 11 = November + * @param startMonth The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November * @return the current {@code CardIdentification} instance, allowing for method chaining */ public CardIdentification startMonth(String startMonth) { @@ -210,12 +202,8 @@ public CardIdentification startMonth(String startMonth) { } /** - * The month when the card was issued. Applies only to some UK debit cards. Format: two digits. - * Add a leading zero for single-digit months. For example: * 03 = March * 11 = November - * - * @return startMonth The month when the card was issued. Applies only to some UK debit cards. - * Format: two digits. Add a leading zero for single-digit months. For example: * 03 = - * March * 11 = November + * The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November + * @return startMonth The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November */ @JsonProperty(JSON_PROPERTY_START_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,12 +212,9 @@ public String getStartMonth() { } /** - * The month when the card was issued. Applies only to some UK debit cards. Format: two digits. - * Add a leading zero for single-digit months. For example: * 03 = March * 11 = November + * The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November * - * @param startMonth The month when the card was issued. Applies only to some UK debit cards. - * Format: two digits. Add a leading zero for single-digit months. For example: * 03 = - * March * 11 = November + * @param startMonth The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November */ @JsonProperty(JSON_PROPERTY_START_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -238,11 +223,9 @@ public void setStartMonth(String startMonth) { } /** - * The year when the card was issued. Applies only to some UK debit cards. Format: four digits. - * For example: 2020 + * The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020 * - * @param startYear The year when the card was issued. Applies only to some UK debit cards. - * Format: four digits. For example: 2020 + * @param startYear The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020 * @return the current {@code CardIdentification} instance, allowing for method chaining */ public CardIdentification startYear(String startYear) { @@ -251,11 +234,8 @@ public CardIdentification startYear(String startYear) { } /** - * The year when the card was issued. Applies only to some UK debit cards. Format: four digits. - * For example: 2020 - * - * @return startYear The year when the card was issued. Applies only to some UK debit cards. - * Format: four digits. For example: 2020 + * The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020 + * @return startYear The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020 */ @JsonProperty(JSON_PROPERTY_START_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -264,11 +244,9 @@ public String getStartYear() { } /** - * The year when the card was issued. Applies only to some UK debit cards. Format: four digits. - * For example: 2020 + * The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020 * - * @param startYear The year when the card was issued. Applies only to some UK debit cards. - * Format: four digits. For example: 2020 + * @param startYear The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020 */ @JsonProperty(JSON_PROPERTY_START_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -277,13 +255,9 @@ public void setStartYear(String startYear) { } /** - * The unique - * [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) - * created to identify the counterparty. + * The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty. * - * @param storedPaymentMethodId The unique - * [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) - * created to identify the counterparty. + * @param storedPaymentMethodId The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty. * @return the current {@code CardIdentification} instance, allowing for method chaining */ public CardIdentification storedPaymentMethodId(String storedPaymentMethodId) { @@ -292,13 +266,8 @@ public CardIdentification storedPaymentMethodId(String storedPaymentMethodId) { } /** - * The unique - * [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) - * created to identify the counterparty. - * - * @return storedPaymentMethodId The unique - * [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) - * created to identify the counterparty. + * The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty. + * @return storedPaymentMethodId The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -307,13 +276,9 @@ public String getStoredPaymentMethodId() { } /** - * The unique - * [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) - * created to identify the counterparty. + * The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty. * - * @param storedPaymentMethodId The unique - * [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) - * created to identify the counterparty. + * @param storedPaymentMethodId The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -321,7 +286,9 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { this.storedPaymentMethodId = storedPaymentMethodId; } - /** Return true if this CardIdentification object is equal to o. */ + /** + * Return true if this CardIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -331,19 +298,18 @@ public boolean equals(Object o) { return false; } CardIdentification cardIdentification = (CardIdentification) o; - return Objects.equals(this.expiryMonth, cardIdentification.expiryMonth) - && Objects.equals(this.expiryYear, cardIdentification.expiryYear) - && Objects.equals(this.issueNumber, cardIdentification.issueNumber) - && Objects.equals(this.number, cardIdentification.number) - && Objects.equals(this.startMonth, cardIdentification.startMonth) - && Objects.equals(this.startYear, cardIdentification.startYear) - && Objects.equals(this.storedPaymentMethodId, cardIdentification.storedPaymentMethodId); + return Objects.equals(this.expiryMonth, cardIdentification.expiryMonth) && + Objects.equals(this.expiryYear, cardIdentification.expiryYear) && + Objects.equals(this.issueNumber, cardIdentification.issueNumber) && + Objects.equals(this.number, cardIdentification.number) && + Objects.equals(this.startMonth, cardIdentification.startMonth) && + Objects.equals(this.startYear, cardIdentification.startYear) && + Objects.equals(this.storedPaymentMethodId, cardIdentification.storedPaymentMethodId); } @Override public int hashCode() { - return Objects.hash( - expiryMonth, expiryYear, issueNumber, number, startMonth, startYear, storedPaymentMethodId); + return Objects.hash(expiryMonth, expiryYear, issueNumber, number, startMonth, startYear, storedPaymentMethodId); } @Override @@ -356,15 +322,14 @@ public String toString() { sb.append(" number: ").append(toIndentedString(number)).append("\n"); sb.append(" startMonth: ").append(toIndentedString(startMonth)).append("\n"); sb.append(" startYear: ").append(toIndentedString(startYear)).append("\n"); - sb.append(" storedPaymentMethodId: ") - .append(toIndentedString(storedPaymentMethodId)) - .append("\n"); + sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -373,23 +338,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CardIdentification given an JSON string * * @param jsonString JSON string * @return An instance of CardIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CardIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to CardIdentification */ public static CardIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardIdentification.class); } - - /** - * Convert an instance of CardIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CardIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/ConfirmationTrackingData.java b/src/main/java/com/adyen/model/transferwebhooks/ConfirmationTrackingData.java index 9cd799310..7e718096b 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/ConfirmationTrackingData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/ConfirmationTrackingData.java @@ -2,36 +2,42 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** ConfirmationTrackingData */ +/** + * ConfirmationTrackingData + */ @JsonPropertyOrder({ ConfirmationTrackingData.JSON_PROPERTY_STATUS, ConfirmationTrackingData.JSON_PROPERTY_TYPE }) + public class ConfirmationTrackingData { /** - * The status of the transfer. Possible values: - **credited**: the funds are credited to your - * user's transfer instrument or bank account. + * The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. */ public enum StatusEnum { + CREDITED(String.valueOf("credited")); private static final Logger LOG = Logger.getLogger(StatusEnum.class.getName()); @@ -39,7 +45,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +66,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -73,10 +75,10 @@ public static StatusEnum fromValue(String value) { private StatusEnum status; /** - * The type of the tracking event. Possible values: - **confirmation**: the transfer passed - * Adyen's internal review. + * The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. */ public enum TypeEnum { + CONFIRMATION(String.valueOf("confirmation")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -84,7 +86,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -105,11 +107,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -117,14 +115,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public ConfirmationTrackingData() {} + public ConfirmationTrackingData() { + } /** - * The status of the transfer. Possible values: - **credited**: the funds are credited to your - * user's transfer instrument or bank account. + * The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. * - * @param status The status of the transfer. Possible values: - **credited**: the funds are - * credited to your user's transfer instrument or bank account. + * @param status The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. * @return the current {@code ConfirmationTrackingData} instance, allowing for method chaining */ public ConfirmationTrackingData status(StatusEnum status) { @@ -133,11 +130,8 @@ public ConfirmationTrackingData status(StatusEnum status) { } /** - * The status of the transfer. Possible values: - **credited**: the funds are credited to your - * user's transfer instrument or bank account. - * - * @return status The status of the transfer. Possible values: - **credited**: the funds are - * credited to your user's transfer instrument or bank account. + * The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. + * @return status The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,11 +140,9 @@ public StatusEnum getStatus() { } /** - * The status of the transfer. Possible values: - **credited**: the funds are credited to your - * user's transfer instrument or bank account. + * The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. * - * @param status The status of the transfer. Possible values: - **credited**: the funds are - * credited to your user's transfer instrument or bank account. + * @param status The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,11 +151,9 @@ public void setStatus(StatusEnum status) { } /** - * The type of the tracking event. Possible values: - **confirmation**: the transfer passed - * Adyen's internal review. + * The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. * - * @param type The type of the tracking event. Possible values: - **confirmation**: the transfer - * passed Adyen's internal review. + * @param type The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. * @return the current {@code ConfirmationTrackingData} instance, allowing for method chaining */ public ConfirmationTrackingData type(TypeEnum type) { @@ -172,11 +162,8 @@ public ConfirmationTrackingData type(TypeEnum type) { } /** - * The type of the tracking event. Possible values: - **confirmation**: the transfer passed - * Adyen's internal review. - * - * @return type The type of the tracking event. Possible values: - **confirmation**: the transfer - * passed Adyen's internal review. + * The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. + * @return type The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,11 +172,9 @@ public TypeEnum getType() { } /** - * The type of the tracking event. Possible values: - **confirmation**: the transfer passed - * Adyen's internal review. + * The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. * - * @param type The type of the tracking event. Possible values: - **confirmation**: the transfer - * passed Adyen's internal review. + * @param type The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -197,7 +182,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this ConfirmationTrackingData object is equal to o. */ + /** + * Return true if this ConfirmationTrackingData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -207,8 +194,8 @@ public boolean equals(Object o) { return false; } ConfirmationTrackingData confirmationTrackingData = (ConfirmationTrackingData) o; - return Objects.equals(this.status, confirmationTrackingData.status) - && Objects.equals(this.type, confirmationTrackingData.type); + return Objects.equals(this.status, confirmationTrackingData.status) && + Objects.equals(this.type, confirmationTrackingData.type); } @Override @@ -227,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -236,24 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ConfirmationTrackingData given an JSON string * * @param jsonString JSON string * @return An instance of ConfirmationTrackingData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ConfirmationTrackingData + * @throws JsonProcessingException if the JSON string is invalid with respect to ConfirmationTrackingData */ - public static ConfirmationTrackingData fromJson(String jsonString) - throws JsonProcessingException { + public static ConfirmationTrackingData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ConfirmationTrackingData.class); } - - /** - * Convert an instance of ConfirmationTrackingData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ConfirmationTrackingData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/CounterpartyV3.java b/src/main/java/com/adyen/model/transferwebhooks/CounterpartyV3.java index bb8a1a793..e8d76c303 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/CounterpartyV3.java +++ b/src/main/java/com/adyen/model/transferwebhooks/CounterpartyV3.java @@ -2,22 +2,34 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transferwebhooks.BankAccountV3; +import com.adyen.model.transferwebhooks.Card; +import com.adyen.model.transferwebhooks.MerchantData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** CounterpartyV3 */ + +/** + * CounterpartyV3 + */ @JsonPropertyOrder({ CounterpartyV3.JSON_PROPERTY_BALANCE_ACCOUNT_ID, CounterpartyV3.JSON_PROPERTY_BANK_ACCOUNT, @@ -25,6 +37,7 @@ CounterpartyV3.JSON_PROPERTY_MERCHANT, CounterpartyV3.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID }) + public class CounterpartyV3 { public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; @@ -41,14 +54,13 @@ public class CounterpartyV3 { public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_ID = "transferInstrumentId"; private String transferInstrumentId; - public CounterpartyV3() {} + public CounterpartyV3() { + } /** - * The unique identifier of the counterparty [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). * - * @param balanceAccountId The unique identifier of the counterparty [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * @param balanceAccountId The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). * @return the current {@code CounterpartyV3} instance, allowing for method chaining */ public CounterpartyV3 balanceAccountId(String balanceAccountId) { @@ -57,11 +69,8 @@ public CounterpartyV3 balanceAccountId(String balanceAccountId) { } /** - * The unique identifier of the counterparty [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). - * - * @return balanceAccountId The unique identifier of the counterparty [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * @return balanceAccountId The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,11 +79,9 @@ public String getBalanceAccountId() { } /** - * The unique identifier of the counterparty [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). * - * @param balanceAccountId The unique identifier of the counterparty [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * @param balanceAccountId The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -85,7 +92,7 @@ public void setBalanceAccountId(String balanceAccountId) { /** * bankAccount * - * @param bankAccount + * @param bankAccount * @return the current {@code CounterpartyV3} instance, allowing for method chaining */ public CounterpartyV3 bankAccount(BankAccountV3 bankAccount) { @@ -95,8 +102,7 @@ public CounterpartyV3 bankAccount(BankAccountV3 bankAccount) { /** * Get bankAccount - * - * @return bankAccount + * @return bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,7 +113,7 @@ public BankAccountV3 getBankAccount() { /** * bankAccount * - * @param bankAccount + * @param bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,7 +124,7 @@ public void setBankAccount(BankAccountV3 bankAccount) { /** * card * - * @param card + * @param card * @return the current {@code CounterpartyV3} instance, allowing for method chaining */ public CounterpartyV3 card(Card card) { @@ -128,8 +134,7 @@ public CounterpartyV3 card(Card card) { /** * Get card - * - * @return card + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,7 +145,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,7 +156,7 @@ public void setCard(Card card) { /** * merchant * - * @param merchant + * @param merchant * @return the current {@code CounterpartyV3} instance, allowing for method chaining */ public CounterpartyV3 merchant(MerchantData merchant) { @@ -161,8 +166,7 @@ public CounterpartyV3 merchant(MerchantData merchant) { /** * Get merchant - * - * @return merchant + * @return merchant */ @JsonProperty(JSON_PROPERTY_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,7 +177,7 @@ public MerchantData getMerchant() { /** * merchant * - * @param merchant + * @param merchant */ @JsonProperty(JSON_PROPERTY_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,11 +186,9 @@ public void setMerchant(MerchantData merchant) { } /** - * The unique identifier of the counterparty [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). * - * @param transferInstrumentId The unique identifier of the counterparty [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * @param transferInstrumentId The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). * @return the current {@code CounterpartyV3} instance, allowing for method chaining */ public CounterpartyV3 transferInstrumentId(String transferInstrumentId) { @@ -195,11 +197,8 @@ public CounterpartyV3 transferInstrumentId(String transferInstrumentId) { } /** - * The unique identifier of the counterparty [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). - * - * @return transferInstrumentId The unique identifier of the counterparty [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * @return transferInstrumentId The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,11 +207,9 @@ public String getTransferInstrumentId() { } /** - * The unique identifier of the counterparty [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). * - * @param transferInstrumentId The unique identifier of the counterparty [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * @param transferInstrumentId The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -220,7 +217,9 @@ public void setTransferInstrumentId(String transferInstrumentId) { this.transferInstrumentId = transferInstrumentId; } - /** Return true if this CounterpartyV3 object is equal to o. */ + /** + * Return true if this CounterpartyV3 object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -230,11 +229,11 @@ public boolean equals(Object o) { return false; } CounterpartyV3 counterpartyV3 = (CounterpartyV3) o; - return Objects.equals(this.balanceAccountId, counterpartyV3.balanceAccountId) - && Objects.equals(this.bankAccount, counterpartyV3.bankAccount) - && Objects.equals(this.card, counterpartyV3.card) - && Objects.equals(this.merchant, counterpartyV3.merchant) - && Objects.equals(this.transferInstrumentId, counterpartyV3.transferInstrumentId); + return Objects.equals(this.balanceAccountId, counterpartyV3.balanceAccountId) && + Objects.equals(this.bankAccount, counterpartyV3.bankAccount) && + Objects.equals(this.card, counterpartyV3.card) && + Objects.equals(this.merchant, counterpartyV3.merchant) && + Objects.equals(this.transferInstrumentId, counterpartyV3.transferInstrumentId); } @Override @@ -250,15 +249,14 @@ public String toString() { sb.append(" bankAccount: ").append(toIndentedString(bankAccount)).append("\n"); sb.append(" card: ").append(toIndentedString(card)).append("\n"); sb.append(" merchant: ").append(toIndentedString(merchant)).append("\n"); - sb.append(" transferInstrumentId: ") - .append(toIndentedString(transferInstrumentId)) - .append("\n"); + sb.append(" transferInstrumentId: ").append(toIndentedString(transferInstrumentId)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -267,7 +265,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of CounterpartyV3 given an JSON string * * @param jsonString JSON string @@ -277,12 +275,11 @@ private String toIndentedString(Object o) { public static CounterpartyV3 fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CounterpartyV3.class); } - - /** - * Convert an instance of CounterpartyV3 to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of CounterpartyV3 to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/DKLocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/DKLocalAccountIdentification.java index 86a651b02..31ada413c 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/DKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/DKLocalAccountIdentification.java @@ -2,31 +2,37 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** DKLocalAccountIdentification */ + +/** + * DKLocalAccountIdentification + */ @JsonPropertyOrder({ DKLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, DKLocalAccountIdentification.JSON_PROPERTY_BANK_CODE, DKLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class DKLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -34,8 +40,11 @@ public class DKLocalAccountIdentification { public static final String JSON_PROPERTY_BANK_CODE = "bankCode"; private String bankCode; - /** **dkLocal** */ + /** + * **dkLocal** + */ public enum TypeEnum { + DKLOCAL(String.valueOf("dkLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -43,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -76,13 +81,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public DKLocalAccountIdentification() {} + public DKLocalAccountIdentification() { + } /** * The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). * - * @param accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or - * whitespace). + * @param accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). * @return the current {@code DKLocalAccountIdentification} instance, allowing for method chaining */ public DKLocalAccountIdentification accountNumber(String accountNumber) { @@ -92,9 +97,7 @@ public DKLocalAccountIdentification accountNumber(String accountNumber) { /** * The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). - * - * @return accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or - * whitespace). + * @return accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,8 +108,7 @@ public String getAccountNumber() { /** * The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). * - * @param accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or - * whitespace). + * @param accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,9 +129,7 @@ public DKLocalAccountIdentification bankCode(String bankCode) { /** * The 4-digit bank code (Registreringsnummer) (without separators or whitespace). - * - * @return bankCode The 4-digit bank code (Registreringsnummer) (without separators or - * whitespace). + * @return bankCode The 4-digit bank code (Registreringsnummer) (without separators or whitespace). */ @JsonProperty(JSON_PROPERTY_BANK_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,7 +161,6 @@ public DKLocalAccountIdentification type(TypeEnum type) { /** * **dkLocal** - * * @return type **dkLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -181,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this DKLocalAccountIdentification object is equal to o. */ + /** + * Return true if this DKLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -191,9 +192,9 @@ public boolean equals(Object o) { return false; } DKLocalAccountIdentification dkLocalAccountIdentification = (DKLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, dkLocalAccountIdentification.accountNumber) - && Objects.equals(this.bankCode, dkLocalAccountIdentification.bankCode) - && Objects.equals(this.type, dkLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, dkLocalAccountIdentification.accountNumber) && + Objects.equals(this.bankCode, dkLocalAccountIdentification.bankCode) && + Objects.equals(this.type, dkLocalAccountIdentification.type); } @Override @@ -213,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -222,24 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DKLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of DKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DKLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to DKLocalAccountIdentification */ - public static DKLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static DKLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DKLocalAccountIdentification.class); } - - /** - * Convert an instance of DKLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DKLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/DirectDebitInformation.java b/src/main/java/com/adyen/model/transferwebhooks/DirectDebitInformation.java index c4944dac4..9e7627fa5 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/DirectDebitInformation.java +++ b/src/main/java/com/adyen/model/transferwebhooks/DirectDebitInformation.java @@ -2,29 +2,39 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.time.OffsetDateTime; -import java.util.*; -/** DirectDebitInformation */ + +/** + * DirectDebitInformation + */ @JsonPropertyOrder({ DirectDebitInformation.JSON_PROPERTY_DATE_OF_SIGNATURE, DirectDebitInformation.JSON_PROPERTY_DUE_DATE, DirectDebitInformation.JSON_PROPERTY_MANDATE_ID, DirectDebitInformation.JSON_PROPERTY_SEQUENCE_TYPE }) + public class DirectDebitInformation { public static final String JSON_PROPERTY_DATE_OF_SIGNATURE = "dateOfSignature"; private OffsetDateTime dateOfSignature; @@ -38,14 +48,13 @@ public class DirectDebitInformation { public static final String JSON_PROPERTY_SEQUENCE_TYPE = "sequenceType"; private String sequenceType; - public DirectDebitInformation() {} + public DirectDebitInformation() { + } /** - * The date when the direct debit mandate was accepted by your user, in - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + * The date when the direct debit mandate was accepted by your user, in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. * - * @param dateOfSignature The date when the direct debit mandate was accepted by your user, in - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + * @param dateOfSignature The date when the direct debit mandate was accepted by your user, in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. * @return the current {@code DirectDebitInformation} instance, allowing for method chaining */ public DirectDebitInformation dateOfSignature(OffsetDateTime dateOfSignature) { @@ -54,11 +63,8 @@ public DirectDebitInformation dateOfSignature(OffsetDateTime dateOfSignature) { } /** - * The date when the direct debit mandate was accepted by your user, in - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. - * - * @return dateOfSignature The date when the direct debit mandate was accepted by your user, in - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + * The date when the direct debit mandate was accepted by your user, in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + * @return dateOfSignature The date when the direct debit mandate was accepted by your user, in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. */ @JsonProperty(JSON_PROPERTY_DATE_OF_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -67,11 +73,9 @@ public OffsetDateTime getDateOfSignature() { } /** - * The date when the direct debit mandate was accepted by your user, in - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + * The date when the direct debit mandate was accepted by your user, in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. * - * @param dateOfSignature The date when the direct debit mandate was accepted by your user, in - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + * @param dateOfSignature The date when the direct debit mandate was accepted by your user, in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. */ @JsonProperty(JSON_PROPERTY_DATE_OF_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -92,7 +96,6 @@ public DirectDebitInformation dueDate(OffsetDateTime dueDate) { /** * The date when the funds are deducted from your user's balance account. - * * @return dueDate The date when the funds are deducted from your user's balance account. */ @JsonProperty(JSON_PROPERTY_DUE_DATE) @@ -125,7 +128,6 @@ public DirectDebitInformation mandateId(String mandateId) { /** * Your unique identifier for the direct debit mandate. - * * @return mandateId Your unique identifier for the direct debit mandate. */ @JsonProperty(JSON_PROPERTY_MANDATE_ID) @@ -146,11 +148,9 @@ public void setMandateId(String mandateId) { } /** - * Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, - * **Recurring**, **Final**. + * Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, **Recurring**, **Final**. * - * @param sequenceType Identifies the direct debit transfer's type. Possible values: - * **OneOff**, **First**, **Recurring**, **Final**. + * @param sequenceType Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, **Recurring**, **Final**. * @return the current {@code DirectDebitInformation} instance, allowing for method chaining */ public DirectDebitInformation sequenceType(String sequenceType) { @@ -159,11 +159,8 @@ public DirectDebitInformation sequenceType(String sequenceType) { } /** - * Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, - * **Recurring**, **Final**. - * - * @return sequenceType Identifies the direct debit transfer's type. Possible values: - * **OneOff**, **First**, **Recurring**, **Final**. + * Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, **Recurring**, **Final**. + * @return sequenceType Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, **Recurring**, **Final**. */ @JsonProperty(JSON_PROPERTY_SEQUENCE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,11 +169,9 @@ public String getSequenceType() { } /** - * Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, - * **Recurring**, **Final**. + * Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, **Recurring**, **Final**. * - * @param sequenceType Identifies the direct debit transfer's type. Possible values: - * **OneOff**, **First**, **Recurring**, **Final**. + * @param sequenceType Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, **Recurring**, **Final**. */ @JsonProperty(JSON_PROPERTY_SEQUENCE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -184,7 +179,9 @@ public void setSequenceType(String sequenceType) { this.sequenceType = sequenceType; } - /** Return true if this DirectDebitInformation object is equal to o. */ + /** + * Return true if this DirectDebitInformation object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -194,10 +191,10 @@ public boolean equals(Object o) { return false; } DirectDebitInformation directDebitInformation = (DirectDebitInformation) o; - return Objects.equals(this.dateOfSignature, directDebitInformation.dateOfSignature) - && Objects.equals(this.dueDate, directDebitInformation.dueDate) - && Objects.equals(this.mandateId, directDebitInformation.mandateId) - && Objects.equals(this.sequenceType, directDebitInformation.sequenceType); + return Objects.equals(this.dateOfSignature, directDebitInformation.dateOfSignature) && + Objects.equals(this.dueDate, directDebitInformation.dueDate) && + Objects.equals(this.mandateId, directDebitInformation.mandateId) && + Objects.equals(this.sequenceType, directDebitInformation.sequenceType); } @Override @@ -218,7 +215,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -227,23 +225,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of DirectDebitInformation given an JSON string * * @param jsonString JSON string * @return An instance of DirectDebitInformation - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DirectDebitInformation + * @throws JsonProcessingException if the JSON string is invalid with respect to DirectDebitInformation */ public static DirectDebitInformation fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DirectDebitInformation.class); } - - /** - * Convert an instance of DirectDebitInformation to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of DirectDebitInformation to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/EstimationTrackingData.java b/src/main/java/com/adyen/model/transferwebhooks/EstimationTrackingData.java index 15e7f11e8..42f154f14 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/EstimationTrackingData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/EstimationTrackingData.java @@ -2,40 +2,46 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** EstimationTrackingData */ +/** + * EstimationTrackingData + */ @JsonPropertyOrder({ EstimationTrackingData.JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME, EstimationTrackingData.JSON_PROPERTY_TYPE }) + public class EstimationTrackingData { public static final String JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME = "estimatedArrivalTime"; private OffsetDateTime estimatedArrivalTime; /** - * The type of tracking event. Possible values: - **estimation**: the estimated date and time of - * when the funds will be credited has been determined. + * The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. */ public enum TypeEnum { + ESTIMATION(String.valueOf("estimation")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -43,7 +49,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +70,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -76,7 +78,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public EstimationTrackingData() {} + public EstimationTrackingData() { + } /** * The estimated time the beneficiary should have access to the funds. @@ -91,9 +94,7 @@ public EstimationTrackingData estimatedArrivalTime(OffsetDateTime estimatedArriv /** * The estimated time the beneficiary should have access to the funds. - * - * @return estimatedArrivalTime The estimated time the beneficiary should have access to the - * funds. + * @return estimatedArrivalTime The estimated time the beneficiary should have access to the funds. */ @JsonProperty(JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,11 +114,9 @@ public void setEstimatedArrivalTime(OffsetDateTime estimatedArrivalTime) { } /** - * The type of tracking event. Possible values: - **estimation**: the estimated date and time of - * when the funds will be credited has been determined. + * The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. * - * @param type The type of tracking event. Possible values: - **estimation**: the estimated date - * and time of when the funds will be credited has been determined. + * @param type The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. * @return the current {@code EstimationTrackingData} instance, allowing for method chaining */ public EstimationTrackingData type(TypeEnum type) { @@ -126,11 +125,8 @@ public EstimationTrackingData type(TypeEnum type) { } /** - * The type of tracking event. Possible values: - **estimation**: the estimated date and time of - * when the funds will be credited has been determined. - * - * @return type The type of tracking event. Possible values: - **estimation**: the estimated date - * and time of when the funds will be credited has been determined. + * The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. + * @return type The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,11 +135,9 @@ public TypeEnum getType() { } /** - * The type of tracking event. Possible values: - **estimation**: the estimated date and time of - * when the funds will be credited has been determined. + * The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. * - * @param type The type of tracking event. Possible values: - **estimation**: the estimated date - * and time of when the funds will be credited has been determined. + * @param type The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,7 +145,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this EstimationTrackingData object is equal to o. */ + /** + * Return true if this EstimationTrackingData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -161,8 +157,8 @@ public boolean equals(Object o) { return false; } EstimationTrackingData estimationTrackingData = (EstimationTrackingData) o; - return Objects.equals(this.estimatedArrivalTime, estimationTrackingData.estimatedArrivalTime) - && Objects.equals(this.type, estimationTrackingData.type); + return Objects.equals(this.estimatedArrivalTime, estimationTrackingData.estimatedArrivalTime) && + Objects.equals(this.type, estimationTrackingData.type); } @Override @@ -174,16 +170,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class EstimationTrackingData {\n"); - sb.append(" estimatedArrivalTime: ") - .append(toIndentedString(estimatedArrivalTime)) - .append("\n"); + sb.append(" estimatedArrivalTime: ").append(toIndentedString(estimatedArrivalTime)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -192,23 +187,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of EstimationTrackingData given an JSON string * * @param jsonString JSON string * @return An instance of EstimationTrackingData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * EstimationTrackingData + * @throws JsonProcessingException if the JSON string is invalid with respect to EstimationTrackingData */ public static EstimationTrackingData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, EstimationTrackingData.class); } - - /** - * Convert an instance of EstimationTrackingData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of EstimationTrackingData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/ExecutionDate.java b/src/main/java/com/adyen/model/transferwebhooks/ExecutionDate.java index 7590e2320..c1a7d4708 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/ExecutionDate.java +++ b/src/main/java/com/adyen/model/transferwebhooks/ExecutionDate.java @@ -2,24 +2,37 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.LocalDate; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.time.LocalDate; -import java.util.*; -/** ExecutionDate */ -@JsonPropertyOrder({ExecutionDate.JSON_PROPERTY_DATE, ExecutionDate.JSON_PROPERTY_TIMEZONE}) + +/** + * ExecutionDate + */ +@JsonPropertyOrder({ + ExecutionDate.JSON_PROPERTY_DATE, + ExecutionDate.JSON_PROPERTY_TIMEZONE +}) + public class ExecutionDate { public static final String JSON_PROPERTY_DATE = "date"; private LocalDate date; @@ -27,18 +40,13 @@ public class ExecutionDate { public static final String JSON_PROPERTY_TIMEZONE = "timezone"; private String timezone; - public ExecutionDate() {} + public ExecutionDate() { + } /** - * The date when the transfer will be processed. This date must be: * Within 30 days of the - * current date. * In the [ISO 8601 - * format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: - * 2025-01-31 + * The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31 * - * @param date The date when the transfer will be processed. This date must be: * Within 30 days - * of the current date. * In the [ISO 8601 - * format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For - * example: 2025-01-31 + * @param date The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31 * @return the current {@code ExecutionDate} instance, allowing for method chaining */ public ExecutionDate date(LocalDate date) { @@ -47,15 +55,8 @@ public ExecutionDate date(LocalDate date) { } /** - * The date when the transfer will be processed. This date must be: * Within 30 days of the - * current date. * In the [ISO 8601 - * format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: - * 2025-01-31 - * - * @return date The date when the transfer will be processed. This date must be: * Within 30 days - * of the current date. * In the [ISO 8601 - * format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For - * example: 2025-01-31 + * The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31 + * @return date The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31 */ @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,15 +65,9 @@ public LocalDate getDate() { } /** - * The date when the transfer will be processed. This date must be: * Within 30 days of the - * current date. * In the [ISO 8601 - * format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: - * 2025-01-31 + * The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31 * - * @param date The date when the transfer will be processed. This date must be: * Within 30 days - * of the current date. * In the [ISO 8601 - * format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For - * example: 2025-01-31 + * @param date The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31 */ @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -81,13 +76,9 @@ public void setDate(LocalDate date) { } /** - * The timezone that applies to the execution date. Use a timezone identifier from the [tz - * database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: - * **America/Los_Angeles**. Default value: **Europe/Amsterdam**. + * The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**. * - * @param timezone The timezone that applies to the execution date. Use a timezone identifier from - * the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: - * **America/Los_Angeles**. Default value: **Europe/Amsterdam**. + * @param timezone The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**. * @return the current {@code ExecutionDate} instance, allowing for method chaining */ public ExecutionDate timezone(String timezone) { @@ -96,13 +87,8 @@ public ExecutionDate timezone(String timezone) { } /** - * The timezone that applies to the execution date. Use a timezone identifier from the [tz - * database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: - * **America/Los_Angeles**. Default value: **Europe/Amsterdam**. - * - * @return timezone The timezone that applies to the execution date. Use a timezone identifier - * from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). - * Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**. + * The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**. + * @return timezone The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIMEZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,13 +97,9 @@ public String getTimezone() { } /** - * The timezone that applies to the execution date. Use a timezone identifier from the [tz - * database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: - * **America/Los_Angeles**. Default value: **Europe/Amsterdam**. + * The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**. * - * @param timezone The timezone that applies to the execution date. Use a timezone identifier from - * the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: - * **America/Los_Angeles**. Default value: **Europe/Amsterdam**. + * @param timezone The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIMEZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,7 +107,9 @@ public void setTimezone(String timezone) { this.timezone = timezone; } - /** Return true if this ExecutionDate object is equal to o. */ + /** + * Return true if this ExecutionDate object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -135,8 +119,8 @@ public boolean equals(Object o) { return false; } ExecutionDate executionDate = (ExecutionDate) o; - return Objects.equals(this.date, executionDate.date) - && Objects.equals(this.timezone, executionDate.timezone); + return Objects.equals(this.date, executionDate.date) && + Objects.equals(this.timezone, executionDate.timezone); } @Override @@ -155,7 +139,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -164,7 +149,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ExecutionDate given an JSON string * * @param jsonString JSON string @@ -174,12 +159,11 @@ private String toIndentedString(Object o) { public static ExecutionDate fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ExecutionDate.class); } - - /** - * Convert an instance of ExecutionDate to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ExecutionDate to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/ExternalReason.java b/src/main/java/com/adyen/model/transferwebhooks/ExternalReason.java index 23eb589fe..d68325720 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/ExternalReason.java +++ b/src/main/java/com/adyen/model/transferwebhooks/ExternalReason.java @@ -2,27 +2,37 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ExternalReason */ + +/** + * ExternalReason + */ @JsonPropertyOrder({ ExternalReason.JSON_PROPERTY_CODE, ExternalReason.JSON_PROPERTY_DESCRIPTION, ExternalReason.JSON_PROPERTY_NAMESPACE }) + public class ExternalReason { public static final String JSON_PROPERTY_CODE = "code"; private String code; @@ -33,7 +43,8 @@ public class ExternalReason { public static final String JSON_PROPERTY_NAMESPACE = "namespace"; private String namespace; - public ExternalReason() {} + public ExternalReason() { + } /** * The reason code. @@ -48,7 +59,6 @@ public ExternalReason code(String code) { /** * The reason code. - * * @return code The reason code. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -81,7 +91,6 @@ public ExternalReason description(String description) { /** * The description of the reason code. - * * @return description The description of the reason code. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -114,7 +123,6 @@ public ExternalReason namespace(String namespace) { /** * The namespace for the reason code. - * * @return namespace The namespace for the reason code. */ @JsonProperty(JSON_PROPERTY_NAMESPACE) @@ -134,7 +142,9 @@ public void setNamespace(String namespace) { this.namespace = namespace; } - /** Return true if this ExternalReason object is equal to o. */ + /** + * Return true if this ExternalReason object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,9 +154,9 @@ public boolean equals(Object o) { return false; } ExternalReason externalReason = (ExternalReason) o; - return Objects.equals(this.code, externalReason.code) - && Objects.equals(this.description, externalReason.description) - && Objects.equals(this.namespace, externalReason.namespace); + return Objects.equals(this.code, externalReason.code) && + Objects.equals(this.description, externalReason.description) && + Objects.equals(this.namespace, externalReason.namespace); } @Override @@ -166,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ExternalReason given an JSON string * * @param jsonString JSON string @@ -185,12 +196,11 @@ private String toIndentedString(Object o) { public static ExternalReason fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ExternalReason.class); } - - /** - * Convert an instance of ExternalReason to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ExternalReason to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/HKLocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/HKLocalAccountIdentification.java index 7a46cb962..5a46f09c6 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/HKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/HKLocalAccountIdentification.java @@ -2,31 +2,37 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** HKLocalAccountIdentification */ + +/** + * HKLocalAccountIdentification + */ @JsonPropertyOrder({ HKLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, HKLocalAccountIdentification.JSON_PROPERTY_CLEARING_CODE, HKLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class HKLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -34,8 +40,11 @@ public class HKLocalAccountIdentification { public static final String JSON_PROPERTY_CLEARING_CODE = "clearingCode"; private String clearingCode; - /** **hkLocal** */ + /** + * **hkLocal** + */ public enum TypeEnum { + HKLOCAL(String.valueOf("hkLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -43,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -76,14 +81,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public HKLocalAccountIdentification() {} + public HKLocalAccountIdentification() { + } /** - * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. - * Starts with the 3-digit branch code. + * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. * - * @param accountNumber The 9- to 15-character bank account number (alphanumeric), without - * separators or whitespace. Starts with the 3-digit branch code. + * @param accountNumber The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. * @return the current {@code HKLocalAccountIdentification} instance, allowing for method chaining */ public HKLocalAccountIdentification accountNumber(String accountNumber) { @@ -92,11 +96,8 @@ public HKLocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. - * Starts with the 3-digit branch code. - * - * @return accountNumber The 9- to 15-character bank account number (alphanumeric), without - * separators or whitespace. Starts with the 3-digit branch code. + * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. + * @return accountNumber The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,11 +106,9 @@ public String getAccountNumber() { } /** - * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. - * Starts with the 3-digit branch code. + * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. * - * @param accountNumber The 9- to 15-character bank account number (alphanumeric), without - * separators or whitespace. Starts with the 3-digit branch code. + * @param accountNumber The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -130,7 +129,6 @@ public HKLocalAccountIdentification clearingCode(String clearingCode) { /** * The 3-digit clearing code, without separators or whitespace. - * * @return clearingCode The 3-digit clearing code, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_CLEARING_CODE) @@ -163,7 +161,6 @@ public HKLocalAccountIdentification type(TypeEnum type) { /** * **hkLocal** - * * @return type **hkLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -183,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this HKLocalAccountIdentification object is equal to o. */ + /** + * Return true if this HKLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -193,9 +192,9 @@ public boolean equals(Object o) { return false; } HKLocalAccountIdentification hkLocalAccountIdentification = (HKLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, hkLocalAccountIdentification.accountNumber) - && Objects.equals(this.clearingCode, hkLocalAccountIdentification.clearingCode) - && Objects.equals(this.type, hkLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, hkLocalAccountIdentification.accountNumber) && + Objects.equals(this.clearingCode, hkLocalAccountIdentification.clearingCode) && + Objects.equals(this.type, hkLocalAccountIdentification.type); } @Override @@ -215,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,24 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of HKLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of HKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * HKLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to HKLocalAccountIdentification */ - public static HKLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static HKLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, HKLocalAccountIdentification.class); } - - /** - * Convert an instance of HKLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of HKLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/HULocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/HULocalAccountIdentification.java index fccfad5ec..1a9c341cf 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/HULocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/HULocalAccountIdentification.java @@ -2,36 +2,45 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** HULocalAccountIdentification */ + +/** + * HULocalAccountIdentification + */ @JsonPropertyOrder({ HULocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, HULocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class HULocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - /** **huLocal** */ + /** + * **huLocal** + */ public enum TypeEnum { + HULOCAL(String.valueOf("huLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -39,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -72,7 +77,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public HULocalAccountIdentification() {} + public HULocalAccountIdentification() { + } /** * The 24-digit bank account number, without separators or whitespace. @@ -87,7 +93,6 @@ public HULocalAccountIdentification accountNumber(String accountNumber) { /** * The 24-digit bank account number, without separators or whitespace. - * * @return accountNumber The 24-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -120,7 +125,6 @@ public HULocalAccountIdentification type(TypeEnum type) { /** * **huLocal** - * * @return type **huLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -140,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this HULocalAccountIdentification object is equal to o. */ + /** + * Return true if this HULocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -150,8 +156,8 @@ public boolean equals(Object o) { return false; } HULocalAccountIdentification huLocalAccountIdentification = (HULocalAccountIdentification) o; - return Objects.equals(this.accountNumber, huLocalAccountIdentification.accountNumber) - && Objects.equals(this.type, huLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, huLocalAccountIdentification.accountNumber) && + Objects.equals(this.type, huLocalAccountIdentification.type); } @Override @@ -170,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -179,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of HULocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of HULocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * HULocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to HULocalAccountIdentification */ - public static HULocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static HULocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, HULocalAccountIdentification.class); } - - /** - * Convert an instance of HULocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of HULocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/IbanAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/IbanAccountIdentification.java index 3d44f7cc4..119355d3f 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/IbanAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/IbanAccountIdentification.java @@ -2,36 +2,45 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** IbanAccountIdentification */ + +/** + * IbanAccountIdentification + */ @JsonPropertyOrder({ IbanAccountIdentification.JSON_PROPERTY_IBAN, IbanAccountIdentification.JSON_PROPERTY_TYPE }) + public class IbanAccountIdentification { public static final String JSON_PROPERTY_IBAN = "iban"; private String iban; - /** **iban** */ + /** + * **iban** + */ public enum TypeEnum { + IBAN(String.valueOf("iban")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -39,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -72,14 +77,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public IbanAccountIdentification() {} + public IbanAccountIdentification() { + } /** - * The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. * - * @param iban The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @param iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. * @return the current {@code IbanAccountIdentification} instance, allowing for method chaining */ public IbanAccountIdentification iban(String iban) { @@ -88,11 +92,8 @@ public IbanAccountIdentification iban(String iban) { } /** - * The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. - * - * @return iban The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @return iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,11 +102,9 @@ public String getIban() { } /** - * The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. * - * @param iban The international bank account number as defined in the - * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @param iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,7 +125,6 @@ public IbanAccountIdentification type(TypeEnum type) { /** * **iban** - * * @return type **iban** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -146,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this IbanAccountIdentification object is equal to o. */ + /** + * Return true if this IbanAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +156,8 @@ public boolean equals(Object o) { return false; } IbanAccountIdentification ibanAccountIdentification = (IbanAccountIdentification) o; - return Objects.equals(this.iban, ibanAccountIdentification.iban) - && Objects.equals(this.type, ibanAccountIdentification.type); + return Objects.equals(this.iban, ibanAccountIdentification.iban) && + Objects.equals(this.type, ibanAccountIdentification.type); } @Override @@ -176,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -185,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of IbanAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of IbanAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * IbanAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to IbanAccountIdentification */ - public static IbanAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static IbanAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, IbanAccountIdentification.class); } - - /** - * Convert an instance of IbanAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of IbanAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/InternalCategoryData.java b/src/main/java/com/adyen/model/transferwebhooks/InternalCategoryData.java index 3139106aa..910f8ee6e 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/InternalCategoryData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/InternalCategoryData.java @@ -2,41 +2,49 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** InternalCategoryData */ + +/** + * InternalCategoryData + */ @JsonPropertyOrder({ InternalCategoryData.JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE, InternalCategoryData.JSON_PROPERTY_MODIFICATION_PSP_REFERENCE, InternalCategoryData.JSON_PROPERTY_TYPE }) + public class InternalCategoryData { - public static final String JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE = - "modificationMerchantReference"; + public static final String JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE = "modificationMerchantReference"; private String modificationMerchantReference; public static final String JSON_PROPERTY_MODIFICATION_PSP_REFERENCE = "modificationPspReference"; private String modificationPspReference; - /** **internal** */ + /** + * **internal** + */ public enum TypeEnum { + INTERNAL(String.valueOf("internal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -44,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -65,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -77,13 +81,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public InternalCategoryData() {} + public InternalCategoryData() { + } /** * The capture's merchant reference included in the transfer. * - * @param modificationMerchantReference The capture's merchant reference included in the - * transfer. + * @param modificationMerchantReference The capture's merchant reference included in the transfer. * @return the current {@code InternalCategoryData} instance, allowing for method chaining */ public InternalCategoryData modificationMerchantReference(String modificationMerchantReference) { @@ -93,9 +97,7 @@ public InternalCategoryData modificationMerchantReference(String modificationMer /** * The capture's merchant reference included in the transfer. - * - * @return modificationMerchantReference The capture's merchant reference included in the - * transfer. + * @return modificationMerchantReference The capture's merchant reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,8 +108,7 @@ public String getModificationMerchantReference() { /** * The capture's merchant reference included in the transfer. * - * @param modificationMerchantReference The capture's merchant reference included in the - * transfer. + * @param modificationMerchantReference The capture's merchant reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,7 +129,6 @@ public InternalCategoryData modificationPspReference(String modificationPspRefer /** * The capture reference included in the transfer. - * * @return modificationPspReference The capture reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_PSP_REFERENCE) @@ -161,7 +161,6 @@ public InternalCategoryData type(TypeEnum type) { /** * **internal** - * * @return type **internal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -181,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this InternalCategoryData object is equal to o. */ + /** + * Return true if this InternalCategoryData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -191,11 +192,9 @@ public boolean equals(Object o) { return false; } InternalCategoryData internalCategoryData = (InternalCategoryData) o; - return Objects.equals( - this.modificationMerchantReference, internalCategoryData.modificationMerchantReference) - && Objects.equals( - this.modificationPspReference, internalCategoryData.modificationPspReference) - && Objects.equals(this.type, internalCategoryData.type); + return Objects.equals(this.modificationMerchantReference, internalCategoryData.modificationMerchantReference) && + Objects.equals(this.modificationPspReference, internalCategoryData.modificationPspReference) && + Objects.equals(this.type, internalCategoryData.type); } @Override @@ -207,19 +206,16 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InternalCategoryData {\n"); - sb.append(" modificationMerchantReference: ") - .append(toIndentedString(modificationMerchantReference)) - .append("\n"); - sb.append(" modificationPspReference: ") - .append(toIndentedString(modificationPspReference)) - .append("\n"); + sb.append(" modificationMerchantReference: ").append(toIndentedString(modificationMerchantReference)).append("\n"); + sb.append(" modificationPspReference: ").append(toIndentedString(modificationPspReference)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -228,23 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of InternalCategoryData given an JSON string * * @param jsonString JSON string * @return An instance of InternalCategoryData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * InternalCategoryData + * @throws JsonProcessingException if the JSON string is invalid with respect to InternalCategoryData */ public static InternalCategoryData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, InternalCategoryData.class); } - - /** - * Convert an instance of InternalCategoryData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of InternalCategoryData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/InternalReviewTrackingData.java b/src/main/java/com/adyen/model/transferwebhooks/InternalReviewTrackingData.java index a67616193..7365b03e7 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/InternalReviewTrackingData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/InternalReviewTrackingData.java @@ -2,38 +2,43 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** InternalReviewTrackingData */ + +/** + * InternalReviewTrackingData + */ @JsonPropertyOrder({ InternalReviewTrackingData.JSON_PROPERTY_REASON, InternalReviewTrackingData.JSON_PROPERTY_STATUS, InternalReviewTrackingData.JSON_PROPERTY_TYPE }) + public class InternalReviewTrackingData { /** - * The reason why the transfer failed Adyen's internal review. Possible values: - - * **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For - * more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). + * The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). */ public enum ReasonEnum { + REFUSEDFORREGULATORYREASONS(String.valueOf("refusedForRegulatoryReasons")); private static final Logger LOG = Logger.getLogger(ReasonEnum.class.getName()); @@ -41,7 +46,7 @@ public enum ReasonEnum { private String value; ReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -62,11 +67,7 @@ public static ReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ReasonEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ReasonEnum.values())); + LOG.warning("ReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ReasonEnum.values())); return null; } } @@ -75,11 +76,10 @@ public static ReasonEnum fromValue(String value) { private ReasonEnum reason; /** - * The status of the transfer. Possible values: - **pending**: the transfer is under internal - * review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, - * see `reason`. + * The status of the transfer. Possible values: - **pending**: the transfer is under internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. */ public enum StatusEnum { + PENDING(String.valueOf("pending")), FAILED(String.valueOf("failed")); @@ -89,7 +89,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -110,11 +110,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -123,10 +119,10 @@ public static StatusEnum fromValue(String value) { private StatusEnum status; /** - * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged - * because it does not comply with Adyen's risk policy. + * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. */ public enum TypeEnum { + INTERNALREVIEW(String.valueOf("internalReview")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -134,7 +130,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -155,11 +151,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -167,17 +159,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public InternalReviewTrackingData() {} + public InternalReviewTrackingData() { + } /** - * The reason why the transfer failed Adyen's internal review. Possible values: - - * **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For - * more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). + * The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). * - * @param reason The reason why the transfer failed Adyen's internal review. Possible values: - * - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk - * policy. For more information, [contact the Support - * Team](https://www.adyen.help/hc/en-us/requests/new). + * @param reason The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). * @return the current {@code InternalReviewTrackingData} instance, allowing for method chaining */ public InternalReviewTrackingData reason(ReasonEnum reason) { @@ -186,14 +174,8 @@ public InternalReviewTrackingData reason(ReasonEnum reason) { } /** - * The reason why the transfer failed Adyen's internal review. Possible values: - - * **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For - * more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). - * - * @return reason The reason why the transfer failed Adyen's internal review. Possible values: - * - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk - * policy. For more information, [contact the Support - * Team](https://www.adyen.help/hc/en-us/requests/new). + * The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). + * @return reason The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -202,14 +184,9 @@ public ReasonEnum getReason() { } /** - * The reason why the transfer failed Adyen's internal review. Possible values: - - * **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For - * more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). + * The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). * - * @param reason The reason why the transfer failed Adyen's internal review. Possible values: - * - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk - * policy. For more information, [contact the Support - * Team](https://www.adyen.help/hc/en-us/requests/new). + * @param reason The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -218,13 +195,9 @@ public void setReason(ReasonEnum reason) { } /** - * The status of the transfer. Possible values: - **pending**: the transfer is under internal - * review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, - * see `reason`. + * The status of the transfer. Possible values: - **pending**: the transfer is under internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. * - * @param status The status of the transfer. Possible values: - **pending**: the transfer is under - * internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. - * For details, see `reason`. + * @param status The status of the transfer. Possible values: - **pending**: the transfer is under internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. * @return the current {@code InternalReviewTrackingData} instance, allowing for method chaining */ public InternalReviewTrackingData status(StatusEnum status) { @@ -233,13 +206,8 @@ public InternalReviewTrackingData status(StatusEnum status) { } /** - * The status of the transfer. Possible values: - **pending**: the transfer is under internal - * review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, - * see `reason`. - * - * @return status The status of the transfer. Possible values: - **pending**: the transfer is - * under internal review by Adyen. - **failed**: the transfer failed Adyen's internal - * review. For details, see `reason`. + * The status of the transfer. Possible values: - **pending**: the transfer is under internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. + * @return status The status of the transfer. Possible values: - **pending**: the transfer is under internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -248,13 +216,9 @@ public StatusEnum getStatus() { } /** - * The status of the transfer. Possible values: - **pending**: the transfer is under internal - * review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, - * see `reason`. + * The status of the transfer. Possible values: - **pending**: the transfer is under internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. * - * @param status The status of the transfer. Possible values: - **pending**: the transfer is under - * internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. - * For details, see `reason`. + * @param status The status of the transfer. Possible values: - **pending**: the transfer is under internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -263,11 +227,9 @@ public void setStatus(StatusEnum status) { } /** - * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged - * because it does not comply with Adyen's risk policy. + * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. * - * @param type The type of tracking event. Possible values: - **internalReview**: the transfer was - * flagged because it does not comply with Adyen's risk policy. + * @param type The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. * @return the current {@code InternalReviewTrackingData} instance, allowing for method chaining */ public InternalReviewTrackingData type(TypeEnum type) { @@ -276,11 +238,8 @@ public InternalReviewTrackingData type(TypeEnum type) { } /** - * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged - * because it does not comply with Adyen's risk policy. - * - * @return type The type of tracking event. Possible values: - **internalReview**: the transfer - * was flagged because it does not comply with Adyen's risk policy. + * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. + * @return type The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -289,11 +248,9 @@ public TypeEnum getType() { } /** - * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged - * because it does not comply with Adyen's risk policy. + * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. * - * @param type The type of tracking event. Possible values: - **internalReview**: the transfer was - * flagged because it does not comply with Adyen's risk policy. + * @param type The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -301,7 +258,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this InternalReviewTrackingData object is equal to o. */ + /** + * Return true if this InternalReviewTrackingData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -311,9 +270,9 @@ public boolean equals(Object o) { return false; } InternalReviewTrackingData internalReviewTrackingData = (InternalReviewTrackingData) o; - return Objects.equals(this.reason, internalReviewTrackingData.reason) - && Objects.equals(this.status, internalReviewTrackingData.status) - && Objects.equals(this.type, internalReviewTrackingData.type); + return Objects.equals(this.reason, internalReviewTrackingData.reason) && + Objects.equals(this.status, internalReviewTrackingData.status) && + Objects.equals(this.type, internalReviewTrackingData.type); } @Override @@ -333,7 +292,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -342,24 +302,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of InternalReviewTrackingData given an JSON string * * @param jsonString JSON string * @return An instance of InternalReviewTrackingData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * InternalReviewTrackingData + * @throws JsonProcessingException if the JSON string is invalid with respect to InternalReviewTrackingData */ - public static InternalReviewTrackingData fromJson(String jsonString) - throws JsonProcessingException { + public static InternalReviewTrackingData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, InternalReviewTrackingData.class); } - - /** - * Convert an instance of InternalReviewTrackingData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of InternalReviewTrackingData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/IssuedCard.java b/src/main/java/com/adyen/model/transferwebhooks/IssuedCard.java index b464f625f..5c97a136a 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/IssuedCard.java +++ b/src/main/java/com/adyen/model/transferwebhooks/IssuedCard.java @@ -2,28 +2,36 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transferwebhooks.RelayedAuthorisationData; +import com.adyen.model.transferwebhooks.ThreeDSecure; +import com.adyen.model.transferwebhooks.TransferNotificationValidationFact; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** IssuedCard */ +/** + * IssuedCard + */ @JsonPropertyOrder({ IssuedCard.JSON_PROPERTY_AUTHORISATION_TYPE, IssuedCard.JSON_PROPERTY_PAN_ENTRY_MODE, @@ -35,15 +43,16 @@ IssuedCard.JSON_PROPERTY_TYPE, IssuedCard.JSON_PROPERTY_VALIDATION_FACTS }) + public class IssuedCard { public static final String JSON_PROPERTY_AUTHORISATION_TYPE = "authorisationType"; private String authorisationType; /** - * Indicates the method used for entering the PAN to initiate a transaction. Possible values: - * **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + * Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. */ public enum PanEntryModeEnum { + CHIP(String.valueOf("chip")), COF(String.valueOf("cof")), @@ -63,7 +72,7 @@ public enum PanEntryModeEnum { private String value; PanEntryModeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -84,11 +93,7 @@ public static PanEntryModeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PanEntryModeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PanEntryModeEnum.values())); + LOG.warning("PanEntryModeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PanEntryModeEnum.values())); return null; } } @@ -97,10 +102,10 @@ public static PanEntryModeEnum fromValue(String value) { private PanEntryModeEnum panEntryMode; /** - * Contains information about how the payment was processed. For example, **ecommerce** for online - * or **pos** for in-person payments. + * Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. */ public enum ProcessingTypeEnum { + ATMWITHDRAW(String.valueOf("atmWithdraw")), BALANCEINQUIRY(String.valueOf("balanceInquiry")), @@ -122,7 +127,7 @@ public enum ProcessingTypeEnum { private String value; ProcessingTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -143,11 +148,7 @@ public static ProcessingTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ProcessingTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ProcessingTypeEnum.values())); + LOG.warning("ProcessingTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ProcessingTypeEnum.values())); return null; } } @@ -161,15 +162,17 @@ public static ProcessingTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_SCHEME_TRACE_ID = "schemeTraceId"; private String schemeTraceId; - public static final String JSON_PROPERTY_SCHEME_UNIQUE_TRANSACTION_ID = - "schemeUniqueTransactionId"; + public static final String JSON_PROPERTY_SCHEME_UNIQUE_TRANSACTION_ID = "schemeUniqueTransactionId"; private String schemeUniqueTransactionId; public static final String JSON_PROPERTY_THREE_D_SECURE = "threeDSecure"; private ThreeDSecure threeDSecure; - /** **issuedCard** */ + /** + * **issuedCard** + */ public enum TypeEnum { + ISSUEDCARD(String.valueOf("issuedCard")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -177,7 +180,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -198,11 +201,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -213,14 +212,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VALIDATION_FACTS = "validationFacts"; private List validationFacts; - public IssuedCard() {} + public IssuedCard() { + } /** - * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, - * **finalAuthorisation** + * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** * - * @param authorisationType The authorisation type. For example, **defaultAuthorisation**, - * **preAuthorisation**, **finalAuthorisation** + * @param authorisationType The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard authorisationType(String authorisationType) { @@ -229,11 +227,8 @@ public IssuedCard authorisationType(String authorisationType) { } /** - * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, - * **finalAuthorisation** - * - * @return authorisationType The authorisation type. For example, **defaultAuthorisation**, - * **preAuthorisation**, **finalAuthorisation** + * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** + * @return authorisationType The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** */ @JsonProperty(JSON_PROPERTY_AUTHORISATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,11 +237,9 @@ public String getAuthorisationType() { } /** - * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, - * **finalAuthorisation** + * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** * - * @param authorisationType The authorisation type. For example, **defaultAuthorisation**, - * **preAuthorisation**, **finalAuthorisation** + * @param authorisationType The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** */ @JsonProperty(JSON_PROPERTY_AUTHORISATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -255,12 +248,9 @@ public void setAuthorisationType(String authorisationType) { } /** - * Indicates the method used for entering the PAN to initiate a transaction. Possible values: - * **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + * Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. * - * @param panEntryMode Indicates the method used for entering the PAN to initiate a transaction. - * Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, - * **ecommerce**, **token**. + * @param panEntryMode Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard panEntryMode(PanEntryModeEnum panEntryMode) { @@ -269,12 +259,8 @@ public IssuedCard panEntryMode(PanEntryModeEnum panEntryMode) { } /** - * Indicates the method used for entering the PAN to initiate a transaction. Possible values: - * **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. - * - * @return panEntryMode Indicates the method used for entering the PAN to initiate a transaction. - * Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, - * **ecommerce**, **token**. + * Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + * @return panEntryMode Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. */ @JsonProperty(JSON_PROPERTY_PAN_ENTRY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -283,12 +269,9 @@ public PanEntryModeEnum getPanEntryMode() { } /** - * Indicates the method used for entering the PAN to initiate a transaction. Possible values: - * **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + * Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. * - * @param panEntryMode Indicates the method used for entering the PAN to initiate a transaction. - * Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, - * **ecommerce**, **token**. + * @param panEntryMode Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. */ @JsonProperty(JSON_PROPERTY_PAN_ENTRY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -297,11 +280,9 @@ public void setPanEntryMode(PanEntryModeEnum panEntryMode) { } /** - * Contains information about how the payment was processed. For example, **ecommerce** for online - * or **pos** for in-person payments. + * Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. * - * @param processingType Contains information about how the payment was processed. For example, - * **ecommerce** for online or **pos** for in-person payments. + * @param processingType Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard processingType(ProcessingTypeEnum processingType) { @@ -310,11 +291,8 @@ public IssuedCard processingType(ProcessingTypeEnum processingType) { } /** - * Contains information about how the payment was processed. For example, **ecommerce** for online - * or **pos** for in-person payments. - * - * @return processingType Contains information about how the payment was processed. For example, - * **ecommerce** for online or **pos** for in-person payments. + * Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. + * @return processingType Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. */ @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -323,11 +301,9 @@ public ProcessingTypeEnum getProcessingType() { } /** - * Contains information about how the payment was processed. For example, **ecommerce** for online - * or **pos** for in-person payments. + * Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. * - * @param processingType Contains information about how the payment was processed. For example, - * **ecommerce** for online or **pos** for in-person payments. + * @param processingType Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. */ @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -338,7 +314,7 @@ public void setProcessingType(ProcessingTypeEnum processingType) { /** * relayedAuthorisationData * - * @param relayedAuthorisationData + * @param relayedAuthorisationData * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard relayedAuthorisationData(RelayedAuthorisationData relayedAuthorisationData) { @@ -348,8 +324,7 @@ public IssuedCard relayedAuthorisationData(RelayedAuthorisationData relayedAutho /** * Get relayedAuthorisationData - * - * @return relayedAuthorisationData + * @return relayedAuthorisationData */ @JsonProperty(JSON_PROPERTY_RELAYED_AUTHORISATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -360,7 +335,7 @@ public RelayedAuthorisationData getRelayedAuthorisationData() { /** * relayedAuthorisationData * - * @param relayedAuthorisationData + * @param relayedAuthorisationData */ @JsonProperty(JSON_PROPERTY_RELAYED_AUTHORISATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -369,17 +344,9 @@ public void setRelayedAuthorisationData(RelayedAuthorisationData relayedAuthoris } /** - * The identifier of the original payment. This ID is provided by the scheme and can be - * alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to - * an original `schemeUniqueTransactionID` provided in an earlier payment (not - * necessarily processed by Adyen). A `schemeTraceId` is typically available for - * authorization adjustments or recurring payments. + * The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. * - * @param schemeTraceId The identifier of the original payment. This ID is provided by the scheme - * and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` - * should refer to an original `schemeUniqueTransactionID` provided in an earlier - * payment (not necessarily processed by Adyen). A `schemeTraceId` is typically - * available for authorization adjustments or recurring payments. + * @param schemeTraceId The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard schemeTraceId(String schemeTraceId) { @@ -388,17 +355,8 @@ public IssuedCard schemeTraceId(String schemeTraceId) { } /** - * The identifier of the original payment. This ID is provided by the scheme and can be - * alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to - * an original `schemeUniqueTransactionID` provided in an earlier payment (not - * necessarily processed by Adyen). A `schemeTraceId` is typically available for - * authorization adjustments or recurring payments. - * - * @return schemeTraceId The identifier of the original payment. This ID is provided by the scheme - * and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` - * should refer to an original `schemeUniqueTransactionID` provided in an earlier - * payment (not necessarily processed by Adyen). A `schemeTraceId` is typically - * available for authorization adjustments or recurring payments. + * The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. + * @return schemeTraceId The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. */ @JsonProperty(JSON_PROPERTY_SCHEME_TRACE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -407,17 +365,9 @@ public String getSchemeTraceId() { } /** - * The identifier of the original payment. This ID is provided by the scheme and can be - * alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to - * an original `schemeUniqueTransactionID` provided in an earlier payment (not - * necessarily processed by Adyen). A `schemeTraceId` is typically available for - * authorization adjustments or recurring payments. + * The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. * - * @param schemeTraceId The identifier of the original payment. This ID is provided by the scheme - * and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` - * should refer to an original `schemeUniqueTransactionID` provided in an earlier - * payment (not necessarily processed by Adyen). A `schemeTraceId` is typically - * available for authorization adjustments or recurring payments. + * @param schemeTraceId The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. */ @JsonProperty(JSON_PROPERTY_SCHEME_TRACE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -426,11 +376,9 @@ public void setSchemeTraceId(String schemeTraceId) { } /** - * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending - * on the scheme. + * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. * - * @param schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be - * alphanumeric or numeric depending on the scheme. + * @param schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard schemeUniqueTransactionId(String schemeUniqueTransactionId) { @@ -439,11 +387,8 @@ public IssuedCard schemeUniqueTransactionId(String schemeUniqueTransactionId) { } /** - * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending - * on the scheme. - * - * @return schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be - * alphanumeric or numeric depending on the scheme. + * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. + * @return schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. */ @JsonProperty(JSON_PROPERTY_SCHEME_UNIQUE_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -452,11 +397,9 @@ public String getSchemeUniqueTransactionId() { } /** - * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending - * on the scheme. + * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. * - * @param schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be - * alphanumeric or numeric depending on the scheme. + * @param schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. */ @JsonProperty(JSON_PROPERTY_SCHEME_UNIQUE_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -467,7 +410,7 @@ public void setSchemeUniqueTransactionId(String schemeUniqueTransactionId) { /** * threeDSecure * - * @param threeDSecure + * @param threeDSecure * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard threeDSecure(ThreeDSecure threeDSecure) { @@ -477,8 +420,7 @@ public IssuedCard threeDSecure(ThreeDSecure threeDSecure) { /** * Get threeDSecure - * - * @return threeDSecure + * @return threeDSecure */ @JsonProperty(JSON_PROPERTY_THREE_D_SECURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -489,7 +431,7 @@ public ThreeDSecure getThreeDSecure() { /** * threeDSecure * - * @param threeDSecure + * @param threeDSecure */ @JsonProperty(JSON_PROPERTY_THREE_D_SECURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -510,7 +452,6 @@ public IssuedCard type(TypeEnum type) { /** * **issuedCard** - * * @return type **issuedCard** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -531,11 +472,9 @@ public void setType(TypeEnum type) { } /** - * The evaluation of the validation facts. See [validation - * checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. * - * @param validationFacts The evaluation of the validation facts. See [validation - * checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * @param validationFacts The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard validationFacts(List validationFacts) { @@ -552,11 +491,8 @@ public IssuedCard addValidationFactsItem(TransferNotificationValidationFact vali } /** - * The evaluation of the validation facts. See [validation - * checks](https://docs.adyen.com/issuing/validation-checks) for more information. - * - * @return validationFacts The evaluation of the validation facts. See [validation - * checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * @return validationFacts The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. */ @JsonProperty(JSON_PROPERTY_VALIDATION_FACTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -565,11 +501,9 @@ public List getValidationFacts() { } /** - * The evaluation of the validation facts. See [validation - * checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. * - * @param validationFacts The evaluation of the validation facts. See [validation - * checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * @param validationFacts The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. */ @JsonProperty(JSON_PROPERTY_VALIDATION_FACTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -577,7 +511,9 @@ public void setValidationFacts(List validati this.validationFacts = validationFacts; } - /** Return true if this IssuedCard object is equal to o. */ + /** + * Return true if this IssuedCard object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -587,29 +523,20 @@ public boolean equals(Object o) { return false; } IssuedCard issuedCard = (IssuedCard) o; - return Objects.equals(this.authorisationType, issuedCard.authorisationType) - && Objects.equals(this.panEntryMode, issuedCard.panEntryMode) - && Objects.equals(this.processingType, issuedCard.processingType) - && Objects.equals(this.relayedAuthorisationData, issuedCard.relayedAuthorisationData) - && Objects.equals(this.schemeTraceId, issuedCard.schemeTraceId) - && Objects.equals(this.schemeUniqueTransactionId, issuedCard.schemeUniqueTransactionId) - && Objects.equals(this.threeDSecure, issuedCard.threeDSecure) - && Objects.equals(this.type, issuedCard.type) - && Objects.equals(this.validationFacts, issuedCard.validationFacts); + return Objects.equals(this.authorisationType, issuedCard.authorisationType) && + Objects.equals(this.panEntryMode, issuedCard.panEntryMode) && + Objects.equals(this.processingType, issuedCard.processingType) && + Objects.equals(this.relayedAuthorisationData, issuedCard.relayedAuthorisationData) && + Objects.equals(this.schemeTraceId, issuedCard.schemeTraceId) && + Objects.equals(this.schemeUniqueTransactionId, issuedCard.schemeUniqueTransactionId) && + Objects.equals(this.threeDSecure, issuedCard.threeDSecure) && + Objects.equals(this.type, issuedCard.type) && + Objects.equals(this.validationFacts, issuedCard.validationFacts); } @Override public int hashCode() { - return Objects.hash( - authorisationType, - panEntryMode, - processingType, - relayedAuthorisationData, - schemeTraceId, - schemeUniqueTransactionId, - threeDSecure, - type, - validationFacts); + return Objects.hash(authorisationType, panEntryMode, processingType, relayedAuthorisationData, schemeTraceId, schemeUniqueTransactionId, threeDSecure, type, validationFacts); } @Override @@ -619,13 +546,9 @@ public String toString() { sb.append(" authorisationType: ").append(toIndentedString(authorisationType)).append("\n"); sb.append(" panEntryMode: ").append(toIndentedString(panEntryMode)).append("\n"); sb.append(" processingType: ").append(toIndentedString(processingType)).append("\n"); - sb.append(" relayedAuthorisationData: ") - .append(toIndentedString(relayedAuthorisationData)) - .append("\n"); + sb.append(" relayedAuthorisationData: ").append(toIndentedString(relayedAuthorisationData)).append("\n"); sb.append(" schemeTraceId: ").append(toIndentedString(schemeTraceId)).append("\n"); - sb.append(" schemeUniqueTransactionId: ") - .append(toIndentedString(schemeUniqueTransactionId)) - .append("\n"); + sb.append(" schemeUniqueTransactionId: ").append(toIndentedString(schemeUniqueTransactionId)).append("\n"); sb.append(" threeDSecure: ").append(toIndentedString(threeDSecure)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" validationFacts: ").append(toIndentedString(validationFacts)).append("\n"); @@ -634,7 +557,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -643,7 +567,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of IssuedCard given an JSON string * * @param jsonString JSON string @@ -653,12 +577,11 @@ private String toIndentedString(Object o) { public static IssuedCard fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, IssuedCard.class); } - - /** - * Convert an instance of IssuedCard to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of IssuedCard to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/IssuingTransactionData.java b/src/main/java/com/adyen/model/transferwebhooks/IssuingTransactionData.java index f290bcec6..e75f41dc0 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/IssuingTransactionData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/IssuingTransactionData.java @@ -2,39 +2,45 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** IssuingTransactionData */ +/** + * IssuingTransactionData + */ @JsonPropertyOrder({ IssuingTransactionData.JSON_PROPERTY_CAPTURE_CYCLE_ID, IssuingTransactionData.JSON_PROPERTY_TYPE }) + public class IssuingTransactionData { public static final String JSON_PROPERTY_CAPTURE_CYCLE_ID = "captureCycleId"; private String captureCycleId; /** - * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction - * data + * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction data */ public enum TypeEnum { + ISSUINGTRANSACTIONDATA(String.valueOf("issuingTransactionData")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -42,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -63,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -75,7 +77,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public IssuingTransactionData() {} + public IssuingTransactionData() { + } /** * captureCycleId associated with transfer event. @@ -90,7 +93,6 @@ public IssuingTransactionData captureCycleId(String captureCycleId) { /** * captureCycleId associated with transfer event. - * * @return captureCycleId captureCycleId associated with transfer event. */ @JsonProperty(JSON_PROPERTY_CAPTURE_CYCLE_ID) @@ -111,11 +113,9 @@ public void setCaptureCycleId(String captureCycleId) { } /** - * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction - * data + * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction data * - * @param type The type of events data. Possible values: - **issuingTransactionData**: issuing - * transaction data + * @param type The type of events data. Possible values: - **issuingTransactionData**: issuing transaction data * @return the current {@code IssuingTransactionData} instance, allowing for method chaining */ public IssuingTransactionData type(TypeEnum type) { @@ -124,11 +124,8 @@ public IssuingTransactionData type(TypeEnum type) { } /** - * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction - * data - * - * @return type The type of events data. Possible values: - **issuingTransactionData**: issuing - * transaction data + * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction data + * @return type The type of events data. Possible values: - **issuingTransactionData**: issuing transaction data */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,11 +134,9 @@ public TypeEnum getType() { } /** - * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction - * data + * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction data * - * @param type The type of events data. Possible values: - **issuingTransactionData**: issuing - * transaction data + * @param type The type of events data. Possible values: - **issuingTransactionData**: issuing transaction data */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -149,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this IssuingTransactionData object is equal to o. */ + /** + * Return true if this IssuingTransactionData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -159,8 +156,8 @@ public boolean equals(Object o) { return false; } IssuingTransactionData issuingTransactionData = (IssuingTransactionData) o; - return Objects.equals(this.captureCycleId, issuingTransactionData.captureCycleId) - && Objects.equals(this.type, issuingTransactionData.type); + return Objects.equals(this.captureCycleId, issuingTransactionData.captureCycleId) && + Objects.equals(this.type, issuingTransactionData.type); } @Override @@ -179,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -188,23 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of IssuingTransactionData given an JSON string * * @param jsonString JSON string * @return An instance of IssuingTransactionData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * IssuingTransactionData + * @throws JsonProcessingException if the JSON string is invalid with respect to IssuingTransactionData */ public static IssuingTransactionData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, IssuingTransactionData.class); } - - /** - * Convert an instance of IssuingTransactionData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of IssuingTransactionData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/JSON.java b/src/main/java/com/adyen/model/transferwebhooks/JSON.java index 96b83a20b..52e040da1 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/JSON.java +++ b/src/main/java/com/adyen/model/transferwebhooks/JSON.java @@ -1,18 +1,21 @@ package com.adyen.model.transferwebhooks; -import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; +import com.adyen.serializer.ByteArrayDeserializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; +import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; +import com.adyen.model.transferwebhooks.*; + import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -37,7 +40,6 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. - * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -54,13 +56,11 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { - return mapper; - } + public static ObjectMapper getMapper() { return mapper; } /** - * Returns the target model class that should be used to deserialize the input data. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,7 +73,9 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** Helper class to register the discriminator mappings. */ + /** + * Helper class to register the discriminator mappings. + */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -115,9 +117,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. This - * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The - * discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. + * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. + * The discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -162,14 +164,13 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so - * it's not possible to use the instanceof keyword. + * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, + * so it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf( - Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -193,58 +194,59 @@ public static boolean isInstanceOf( return false; } - /** A map of discriminators for all model classes. */ - private static final Map, ClassDiscriminatorMapping> modelDiscriminators = - new HashMap, ClassDiscriminatorMapping>(); + /** + * A map of discriminators for all model classes. + */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); - /** A map of oneOf/anyOf descendants for each model class. */ + /** + * A map of oneOf/anyOf descendants for each model class. + */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator( - Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = - new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants( - Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants(Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static { + static + { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/transferwebhooks/Leg.java b/src/main/java/com/adyen/model/transferwebhooks/Leg.java index 01040e074..769546e65 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/Leg.java +++ b/src/main/java/com/adyen/model/transferwebhooks/Leg.java @@ -2,22 +2,31 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Leg */ + +/** + * Leg + */ @JsonPropertyOrder({ Leg.JSON_PROPERTY_ARRIVAL_AIRPORT_CODE, Leg.JSON_PROPERTY_BASIC_FARE_CODE, @@ -26,6 +35,7 @@ Leg.JSON_PROPERTY_DEPARTURE_DATE, Leg.JSON_PROPERTY_FLIGHT_NUMBER }) + public class Leg { public static final String JSON_PROPERTY_ARRIVAL_AIRPORT_CODE = "arrivalAirportCode"; private String arrivalAirportCode; @@ -45,14 +55,13 @@ public class Leg { public static final String JSON_PROPERTY_FLIGHT_NUMBER = "flightNumber"; private String flightNumber; - public Leg() {} + public Leg() { + } /** - * The IATA 3-letter airport code of the destination airport. This field is required if the - * airline data includes leg details. + * The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * - * @param arrivalAirportCode The IATA 3-letter airport code of the destination airport. This field - * is required if the airline data includes leg details. + * @param arrivalAirportCode The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * @return the current {@code Leg} instance, allowing for method chaining */ public Leg arrivalAirportCode(String arrivalAirportCode) { @@ -61,11 +70,8 @@ public Leg arrivalAirportCode(String arrivalAirportCode) { } /** - * The IATA 3-letter airport code of the destination airport. This field is required if the - * airline data includes leg details. - * - * @return arrivalAirportCode The IATA 3-letter airport code of the destination airport. This - * field is required if the airline data includes leg details. + * The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. + * @return arrivalAirportCode The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. */ @JsonProperty(JSON_PROPERTY_ARRIVAL_AIRPORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -74,11 +80,9 @@ public String getArrivalAirportCode() { } /** - * The IATA 3-letter airport code of the destination airport. This field is required if the - * airline data includes leg details. + * The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * - * @param arrivalAirportCode The IATA 3-letter airport code of the destination airport. This field - * is required if the airline data includes leg details. + * @param arrivalAirportCode The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. */ @JsonProperty(JSON_PROPERTY_ARRIVAL_AIRPORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,7 +103,6 @@ public Leg basicFareCode(String basicFareCode) { /** * The basic fare code for this leg. - * * @return basicFareCode The basic fare code for this leg. */ @JsonProperty(JSON_PROPERTY_BASIC_FARE_CODE) @@ -132,7 +135,6 @@ public Leg carrierCode(String carrierCode) { /** * IATA code of the carrier operating the flight. - * * @return carrierCode IATA code of the carrier operating the flight. */ @JsonProperty(JSON_PROPERTY_CARRIER_CODE) @@ -153,11 +155,9 @@ public void setCarrierCode(String carrierCode) { } /** - * The IATA three-letter airport code of the departure airport. This field is required if the - * airline data includes leg details + * The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details * - * @param departureAirportCode The IATA three-letter airport code of the departure airport. This - * field is required if the airline data includes leg details + * @param departureAirportCode The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details * @return the current {@code Leg} instance, allowing for method chaining */ public Leg departureAirportCode(String departureAirportCode) { @@ -166,11 +166,8 @@ public Leg departureAirportCode(String departureAirportCode) { } /** - * The IATA three-letter airport code of the departure airport. This field is required if the - * airline data includes leg details - * - * @return departureAirportCode The IATA three-letter airport code of the departure airport. This - * field is required if the airline data includes leg details + * The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details + * @return departureAirportCode The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details */ @JsonProperty(JSON_PROPERTY_DEPARTURE_AIRPORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,11 +176,9 @@ public String getDepartureAirportCode() { } /** - * The IATA three-letter airport code of the departure airport. This field is required if the - * airline data includes leg details + * The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details * - * @param departureAirportCode The IATA three-letter airport code of the departure airport. This - * field is required if the airline data includes leg details + * @param departureAirportCode The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details */ @JsonProperty(JSON_PROPERTY_DEPARTURE_AIRPORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,7 +199,6 @@ public Leg departureDate(String departureDate) { /** * The flight departure date. - * * @return departureDate The flight departure date. */ @JsonProperty(JSON_PROPERTY_DEPARTURE_DATE) @@ -237,7 +231,6 @@ public Leg flightNumber(String flightNumber) { /** * The flight identifier. - * * @return flightNumber The flight identifier. */ @JsonProperty(JSON_PROPERTY_FLIGHT_NUMBER) @@ -257,7 +250,9 @@ public void setFlightNumber(String flightNumber) { this.flightNumber = flightNumber; } - /** Return true if this Leg object is equal to o. */ + /** + * Return true if this Leg object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -267,23 +262,17 @@ public boolean equals(Object o) { return false; } Leg leg = (Leg) o; - return Objects.equals(this.arrivalAirportCode, leg.arrivalAirportCode) - && Objects.equals(this.basicFareCode, leg.basicFareCode) - && Objects.equals(this.carrierCode, leg.carrierCode) - && Objects.equals(this.departureAirportCode, leg.departureAirportCode) - && Objects.equals(this.departureDate, leg.departureDate) - && Objects.equals(this.flightNumber, leg.flightNumber); + return Objects.equals(this.arrivalAirportCode, leg.arrivalAirportCode) && + Objects.equals(this.basicFareCode, leg.basicFareCode) && + Objects.equals(this.carrierCode, leg.carrierCode) && + Objects.equals(this.departureAirportCode, leg.departureAirportCode) && + Objects.equals(this.departureDate, leg.departureDate) && + Objects.equals(this.flightNumber, leg.flightNumber); } @Override public int hashCode() { - return Objects.hash( - arrivalAirportCode, - basicFareCode, - carrierCode, - departureAirportCode, - departureDate, - flightNumber); + return Objects.hash(arrivalAirportCode, basicFareCode, carrierCode, departureAirportCode, departureDate, flightNumber); } @Override @@ -293,9 +282,7 @@ public String toString() { sb.append(" arrivalAirportCode: ").append(toIndentedString(arrivalAirportCode)).append("\n"); sb.append(" basicFareCode: ").append(toIndentedString(basicFareCode)).append("\n"); sb.append(" carrierCode: ").append(toIndentedString(carrierCode)).append("\n"); - sb.append(" departureAirportCode: ") - .append(toIndentedString(departureAirportCode)) - .append("\n"); + sb.append(" departureAirportCode: ").append(toIndentedString(departureAirportCode)).append("\n"); sb.append(" departureDate: ").append(toIndentedString(departureDate)).append("\n"); sb.append(" flightNumber: ").append(toIndentedString(flightNumber)).append("\n"); sb.append("}"); @@ -303,7 +290,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -312,7 +300,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Leg given an JSON string * * @param jsonString JSON string @@ -322,12 +310,11 @@ private String toIndentedString(Object o) { public static Leg fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Leg.class); } - - /** - * Convert an instance of Leg to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Leg to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/Lodging.java b/src/main/java/com/adyen/model/transferwebhooks/Lodging.java index c007d2416..7d3cc468e 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/Lodging.java +++ b/src/main/java/com/adyen/model/transferwebhooks/Lodging.java @@ -2,23 +2,36 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** Lodging */ -@JsonPropertyOrder({Lodging.JSON_PROPERTY_CHECK_IN_DATE, Lodging.JSON_PROPERTY_NUMBER_OF_NIGHTS}) + +/** + * Lodging + */ +@JsonPropertyOrder({ + Lodging.JSON_PROPERTY_CHECK_IN_DATE, + Lodging.JSON_PROPERTY_NUMBER_OF_NIGHTS +}) + public class Lodging { public static final String JSON_PROPERTY_CHECK_IN_DATE = "checkInDate"; private String checkInDate; @@ -26,7 +39,8 @@ public class Lodging { public static final String JSON_PROPERTY_NUMBER_OF_NIGHTS = "numberOfNights"; private Integer numberOfNights; - public Lodging() {} + public Lodging() { + } /** * The check-in date. @@ -41,7 +55,6 @@ public Lodging checkInDate(String checkInDate) { /** * The check-in date. - * * @return checkInDate The check-in date. */ @JsonProperty(JSON_PROPERTY_CHECK_IN_DATE) @@ -74,7 +87,6 @@ public Lodging numberOfNights(Integer numberOfNights) { /** * The total number of nights the room is booked for. - * * @return numberOfNights The total number of nights the room is booked for. */ @JsonProperty(JSON_PROPERTY_NUMBER_OF_NIGHTS) @@ -94,7 +106,9 @@ public void setNumberOfNights(Integer numberOfNights) { this.numberOfNights = numberOfNights; } - /** Return true if this Lodging object is equal to o. */ + /** + * Return true if this Lodging object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -104,8 +118,8 @@ public boolean equals(Object o) { return false; } Lodging lodging = (Lodging) o; - return Objects.equals(this.checkInDate, lodging.checkInDate) - && Objects.equals(this.numberOfNights, lodging.numberOfNights); + return Objects.equals(this.checkInDate, lodging.checkInDate) && + Objects.equals(this.numberOfNights, lodging.numberOfNights); } @Override @@ -124,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,7 +148,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Lodging given an JSON string * * @param jsonString JSON string @@ -143,12 +158,11 @@ private String toIndentedString(Object o) { public static Lodging fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Lodging.class); } - - /** - * Convert an instance of Lodging to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Lodging to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/MerchantData.java b/src/main/java/com/adyen/model/transferwebhooks/MerchantData.java index cae5b9a6d..bb50a6ac9 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/MerchantData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/MerchantData.java @@ -2,22 +2,32 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transferwebhooks.NameLocation; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** MerchantData */ + +/** + * MerchantData + */ @JsonPropertyOrder({ MerchantData.JSON_PROPERTY_ACQUIRER_ID, MerchantData.JSON_PROPERTY_MCC, @@ -25,6 +35,7 @@ MerchantData.JSON_PROPERTY_NAME_LOCATION, MerchantData.JSON_PROPERTY_POSTAL_CODE }) + public class MerchantData { public static final String JSON_PROPERTY_ACQUIRER_ID = "acquirerId"; private String acquirerId; @@ -41,7 +52,8 @@ public class MerchantData { public static final String JSON_PROPERTY_POSTAL_CODE = "postalCode"; private String postalCode; - public MerchantData() {} + public MerchantData() { + } /** * The unique identifier of the merchant's acquirer. @@ -56,7 +68,6 @@ public MerchantData acquirerId(String acquirerId) { /** * The unique identifier of the merchant's acquirer. - * * @return acquirerId The unique identifier of the merchant's acquirer. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_ID) @@ -89,7 +100,6 @@ public MerchantData mcc(String mcc) { /** * The merchant category code. - * * @return mcc The merchant category code. */ @JsonProperty(JSON_PROPERTY_MCC) @@ -122,7 +132,6 @@ public MerchantData merchantId(String merchantId) { /** * The unique identifier of the merchant. - * * @return merchantId The unique identifier of the merchant. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @@ -145,7 +154,7 @@ public void setMerchantId(String merchantId) { /** * nameLocation * - * @param nameLocation + * @param nameLocation * @return the current {@code MerchantData} instance, allowing for method chaining */ public MerchantData nameLocation(NameLocation nameLocation) { @@ -155,8 +164,7 @@ public MerchantData nameLocation(NameLocation nameLocation) { /** * Get nameLocation - * - * @return nameLocation + * @return nameLocation */ @JsonProperty(JSON_PROPERTY_NAME_LOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,7 +175,7 @@ public NameLocation getNameLocation() { /** * nameLocation * - * @param nameLocation + * @param nameLocation */ @JsonProperty(JSON_PROPERTY_NAME_LOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,7 +196,6 @@ public MerchantData postalCode(String postalCode) { /** * The postal code of the merchant. - * * @return postalCode The postal code of the merchant. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @@ -208,7 +215,9 @@ public void setPostalCode(String postalCode) { this.postalCode = postalCode; } - /** Return true if this MerchantData object is equal to o. */ + /** + * Return true if this MerchantData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -218,11 +227,11 @@ public boolean equals(Object o) { return false; } MerchantData merchantData = (MerchantData) o; - return Objects.equals(this.acquirerId, merchantData.acquirerId) - && Objects.equals(this.mcc, merchantData.mcc) - && Objects.equals(this.merchantId, merchantData.merchantId) - && Objects.equals(this.nameLocation, merchantData.nameLocation) - && Objects.equals(this.postalCode, merchantData.postalCode); + return Objects.equals(this.acquirerId, merchantData.acquirerId) && + Objects.equals(this.mcc, merchantData.mcc) && + Objects.equals(this.merchantId, merchantData.merchantId) && + Objects.equals(this.nameLocation, merchantData.nameLocation) && + Objects.equals(this.postalCode, merchantData.postalCode); } @Override @@ -244,7 +253,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -253,7 +263,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of MerchantData given an JSON string * * @param jsonString JSON string @@ -263,12 +273,11 @@ private String toIndentedString(Object o) { public static MerchantData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MerchantData.class); } - - /** - * Convert an instance of MerchantData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of MerchantData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/MerchantPurchaseData.java b/src/main/java/com/adyen/model/transferwebhooks/MerchantPurchaseData.java index 52c0ae910..68b06d537 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/MerchantPurchaseData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/MerchantPurchaseData.java @@ -2,33 +2,41 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transferwebhooks.Airline; +import com.adyen.model.transferwebhooks.Lodging; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** MerchantPurchaseData */ +/** + * MerchantPurchaseData + */ @JsonPropertyOrder({ MerchantPurchaseData.JSON_PROPERTY_AIRLINE, MerchantPurchaseData.JSON_PROPERTY_LODGING, MerchantPurchaseData.JSON_PROPERTY_TYPE }) + public class MerchantPurchaseData { public static final String JSON_PROPERTY_AIRLINE = "airline"; private Airline airline; @@ -37,9 +45,10 @@ public class MerchantPurchaseData { private List lodging; /** - * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data + * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data */ public enum TypeEnum { + MERCHANTPURCHASEDATA(String.valueOf("merchantPurchaseData")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -47,7 +56,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -68,11 +77,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -80,12 +85,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public MerchantPurchaseData() {} + public MerchantPurchaseData() { + } /** * airline * - * @param airline + * @param airline * @return the current {@code MerchantPurchaseData} instance, allowing for method chaining */ public MerchantPurchaseData airline(Airline airline) { @@ -95,8 +101,7 @@ public MerchantPurchaseData airline(Airline airline) { /** * Get airline - * - * @return airline + * @return airline */ @JsonProperty(JSON_PROPERTY_AIRLINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,7 +112,7 @@ public Airline getAirline() { /** * airline * - * @param airline + * @param airline */ @JsonProperty(JSON_PROPERTY_AIRLINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,7 +141,6 @@ public MerchantPurchaseData addLodgingItem(Lodging lodgingItem) { /** * Lodging information. - * * @return lodging Lodging information. */ @JsonProperty(JSON_PROPERTY_LODGING) @@ -157,10 +161,9 @@ public void setLodging(List lodging) { } /** - * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data + * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data * - * @param type The type of events data. Possible values: - **merchantPurchaseData**: merchant - * purchase data + * @param type The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data * @return the current {@code MerchantPurchaseData} instance, allowing for method chaining */ public MerchantPurchaseData type(TypeEnum type) { @@ -169,10 +172,8 @@ public MerchantPurchaseData type(TypeEnum type) { } /** - * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data - * - * @return type The type of events data. Possible values: - **merchantPurchaseData**: merchant - * purchase data + * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data + * @return type The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,10 +182,9 @@ public TypeEnum getType() { } /** - * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data + * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data * - * @param type The type of events data. Possible values: - **merchantPurchaseData**: merchant - * purchase data + * @param type The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,7 +192,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this MerchantPurchaseData object is equal to o. */ + /** + * Return true if this MerchantPurchaseData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -202,9 +204,9 @@ public boolean equals(Object o) { return false; } MerchantPurchaseData merchantPurchaseData = (MerchantPurchaseData) o; - return Objects.equals(this.airline, merchantPurchaseData.airline) - && Objects.equals(this.lodging, merchantPurchaseData.lodging) - && Objects.equals(this.type, merchantPurchaseData.type); + return Objects.equals(this.airline, merchantPurchaseData.airline) && + Objects.equals(this.lodging, merchantPurchaseData.lodging) && + Objects.equals(this.type, merchantPurchaseData.type); } @Override @@ -224,7 +226,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -233,23 +236,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of MerchantPurchaseData given an JSON string * * @param jsonString JSON string * @return An instance of MerchantPurchaseData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * MerchantPurchaseData + * @throws JsonProcessingException if the JSON string is invalid with respect to MerchantPurchaseData */ public static MerchantPurchaseData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MerchantPurchaseData.class); } - - /** - * Convert an instance of MerchantPurchaseData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of MerchantPurchaseData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/Modification.java b/src/main/java/com/adyen/model/transferwebhooks/Modification.java index f7a96dd05..58675a424 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/Modification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/Modification.java @@ -2,26 +2,31 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** Modification */ + +/** + * Modification + */ @JsonPropertyOrder({ Modification.JSON_PROPERTY_DIRECTION, Modification.JSON_PROPERTY_ID, @@ -29,6 +34,7 @@ Modification.JSON_PROPERTY_STATUS, Modification.JSON_PROPERTY_TYPE }) + public class Modification { public static final String JSON_PROPERTY_DIRECTION = "direction"; private String direction; @@ -39,8 +45,11 @@ public class Modification { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - /** The status of the transfer event. */ + /** + * The status of the transfer event. + */ public enum StatusEnum { + APPROVALPENDING(String.valueOf("approvalPending")), ATMWITHDRAWAL(String.valueOf("atmWithdrawal")), @@ -180,7 +189,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -201,11 +210,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -216,7 +221,8 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public Modification() {} + public Modification() { + } /** * The direction of the money movement. @@ -231,7 +237,6 @@ public Modification direction(String direction) { /** * The direction of the money movement. - * * @return direction The direction of the money movement. */ @JsonProperty(JSON_PROPERTY_DIRECTION) @@ -264,7 +269,6 @@ public Modification id(String id) { /** * Our reference for the modification. - * * @return id Our reference for the modification. */ @JsonProperty(JSON_PROPERTY_ID) @@ -297,7 +301,6 @@ public Modification reference(String reference) { /** * Your reference for the modification, used internally within your platform. - * * @return reference Your reference for the modification, used internally within your platform. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -330,7 +333,6 @@ public Modification status(StatusEnum status) { /** * The status of the transfer event. - * * @return status The status of the transfer event. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -363,7 +365,6 @@ public Modification type(String type) { /** * The type of transfer modification. - * * @return type The type of transfer modification. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -383,7 +384,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this Modification object is equal to o. */ + /** + * Return true if this Modification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -393,11 +396,11 @@ public boolean equals(Object o) { return false; } Modification modification = (Modification) o; - return Objects.equals(this.direction, modification.direction) - && Objects.equals(this.id, modification.id) - && Objects.equals(this.reference, modification.reference) - && Objects.equals(this.status, modification.status) - && Objects.equals(this.type, modification.type); + return Objects.equals(this.direction, modification.direction) && + Objects.equals(this.id, modification.id) && + Objects.equals(this.reference, modification.reference) && + Objects.equals(this.status, modification.status) && + Objects.equals(this.type, modification.type); } @Override @@ -419,7 +422,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -428,7 +432,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Modification given an JSON string * * @param jsonString JSON string @@ -438,12 +442,11 @@ private String toIndentedString(Object o) { public static Modification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Modification.class); } - - /** - * Convert an instance of Modification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Modification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/NOLocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/NOLocalAccountIdentification.java index 250b05d9b..600c94835 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/NOLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/NOLocalAccountIdentification.java @@ -2,36 +2,45 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** NOLocalAccountIdentification */ + +/** + * NOLocalAccountIdentification + */ @JsonPropertyOrder({ NOLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, NOLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class NOLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - /** **noLocal** */ + /** + * **noLocal** + */ public enum TypeEnum { + NOLOCAL(String.valueOf("noLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -39,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -72,7 +77,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public NOLocalAccountIdentification() {} + public NOLocalAccountIdentification() { + } /** * The 11-digit bank account number, without separators or whitespace. @@ -87,7 +93,6 @@ public NOLocalAccountIdentification accountNumber(String accountNumber) { /** * The 11-digit bank account number, without separators or whitespace. - * * @return accountNumber The 11-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -120,7 +125,6 @@ public NOLocalAccountIdentification type(TypeEnum type) { /** * **noLocal** - * * @return type **noLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -140,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this NOLocalAccountIdentification object is equal to o. */ + /** + * Return true if this NOLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -150,8 +156,8 @@ public boolean equals(Object o) { return false; } NOLocalAccountIdentification noLocalAccountIdentification = (NOLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, noLocalAccountIdentification.accountNumber) - && Objects.equals(this.type, noLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, noLocalAccountIdentification.accountNumber) && + Objects.equals(this.type, noLocalAccountIdentification.type); } @Override @@ -170,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -179,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of NOLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of NOLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * NOLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to NOLocalAccountIdentification */ - public static NOLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static NOLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NOLocalAccountIdentification.class); } - - /** - * Convert an instance of NOLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of NOLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/NZLocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/NZLocalAccountIdentification.java index 14798f3aa..3192cc305 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/NZLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/NZLocalAccountIdentification.java @@ -2,36 +2,45 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** NZLocalAccountIdentification */ + +/** + * NZLocalAccountIdentification + */ @JsonPropertyOrder({ NZLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, NZLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class NZLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - /** **nzLocal** */ + /** + * **nzLocal** + */ public enum TypeEnum { + NZLOCAL(String.valueOf("nzLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -39,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -72,16 +77,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public NZLocalAccountIdentification() {} + public NZLocalAccountIdentification() { + } /** - * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits - * are the branch number, the next 7 digits are the account number, and the final 2-3 digits are - * the suffix. + * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. * - * @param accountNumber The 15-16 digit bank account number. The first 2 digits are the bank - * number, the next 4 digits are the branch number, the next 7 digits are the account number, - * and the final 2-3 digits are the suffix. + * @param accountNumber The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. * @return the current {@code NZLocalAccountIdentification} instance, allowing for method chaining */ public NZLocalAccountIdentification accountNumber(String accountNumber) { @@ -90,13 +92,8 @@ public NZLocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits - * are the branch number, the next 7 digits are the account number, and the final 2-3 digits are - * the suffix. - * - * @return accountNumber The 15-16 digit bank account number. The first 2 digits are the bank - * number, the next 4 digits are the branch number, the next 7 digits are the account number, - * and the final 2-3 digits are the suffix. + * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. + * @return accountNumber The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,13 +102,9 @@ public String getAccountNumber() { } /** - * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits - * are the branch number, the next 7 digits are the account number, and the final 2-3 digits are - * the suffix. + * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. * - * @param accountNumber The 15-16 digit bank account number. The first 2 digits are the bank - * number, the next 4 digits are the branch number, the next 7 digits are the account number, - * and the final 2-3 digits are the suffix. + * @param accountNumber The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,7 +125,6 @@ public NZLocalAccountIdentification type(TypeEnum type) { /** * **nzLocal** - * * @return type **nzLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -152,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this NZLocalAccountIdentification object is equal to o. */ + /** + * Return true if this NZLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -162,8 +156,8 @@ public boolean equals(Object o) { return false; } NZLocalAccountIdentification nzLocalAccountIdentification = (NZLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, nzLocalAccountIdentification.accountNumber) - && Objects.equals(this.type, nzLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, nzLocalAccountIdentification.accountNumber) && + Objects.equals(this.type, nzLocalAccountIdentification.type); } @Override @@ -182,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -191,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of NZLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of NZLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * NZLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to NZLocalAccountIdentification */ - public static NZLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static NZLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NZLocalAccountIdentification.class); } - - /** - * Convert an instance of NZLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of NZLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/NameLocation.java b/src/main/java/com/adyen/model/transferwebhooks/NameLocation.java index dcd9872ea..a9d1d0534 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/NameLocation.java +++ b/src/main/java/com/adyen/model/transferwebhooks/NameLocation.java @@ -2,22 +2,31 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** NameLocation */ + +/** + * NameLocation + */ @JsonPropertyOrder({ NameLocation.JSON_PROPERTY_CITY, NameLocation.JSON_PROPERTY_COUNTRY, @@ -26,6 +35,7 @@ NameLocation.JSON_PROPERTY_RAW_DATA, NameLocation.JSON_PROPERTY_STATE }) + public class NameLocation { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -45,7 +55,8 @@ public class NameLocation { public static final String JSON_PROPERTY_STATE = "state"; private String state; - public NameLocation() {} + public NameLocation() { + } /** * The city where the merchant is located. @@ -60,7 +71,6 @@ public NameLocation city(String city) { /** * The city where the merchant is located. - * * @return city The city where the merchant is located. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -81,11 +91,9 @@ public void setCity(String city) { } /** - * The country where the merchant is located in [three-letter country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. + * The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. * - * @param country The country where the merchant is located in [three-letter country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. + * @param country The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. * @return the current {@code NameLocation} instance, allowing for method chaining */ public NameLocation country(String country) { @@ -94,11 +102,8 @@ public NameLocation country(String country) { } /** - * The country where the merchant is located in [three-letter country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. - * - * @return country The country where the merchant is located in [three-letter country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. + * The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. + * @return country The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,11 +112,9 @@ public String getCountry() { } /** - * The country where the merchant is located in [three-letter country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. + * The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. * - * @param country The country where the merchant is located in [three-letter country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. + * @param country The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -120,13 +123,9 @@ public void setCountry(String country) { } /** - * The home country in [three-digit country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled - * merchants such as embassies. + * The home country in [three-digit country code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled merchants such as embassies. * - * @param countryOfOrigin The home country in [three-digit country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for - * government-controlled merchants such as embassies. + * @param countryOfOrigin The home country in [three-digit country code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled merchants such as embassies. * @return the current {@code NameLocation} instance, allowing for method chaining */ public NameLocation countryOfOrigin(String countryOfOrigin) { @@ -135,13 +134,8 @@ public NameLocation countryOfOrigin(String countryOfOrigin) { } /** - * The home country in [three-digit country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled - * merchants such as embassies. - * - * @return countryOfOrigin The home country in [three-digit country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for - * government-controlled merchants such as embassies. + * The home country in [three-digit country code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled merchants such as embassies. + * @return countryOfOrigin The home country in [three-digit country code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled merchants such as embassies. */ @JsonProperty(JSON_PROPERTY_COUNTRY_OF_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,13 +144,9 @@ public String getCountryOfOrigin() { } /** - * The home country in [three-digit country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled - * merchants such as embassies. + * The home country in [three-digit country code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled merchants such as embassies. * - * @param countryOfOrigin The home country in [three-digit country - * code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for - * government-controlled merchants such as embassies. + * @param countryOfOrigin The home country in [three-digit country code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled merchants such as embassies. */ @JsonProperty(JSON_PROPERTY_COUNTRY_OF_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,7 +167,6 @@ public NameLocation name(String name) { /** * The name of the merchant's shop or service. - * * @return name The name of the merchant's shop or service. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -210,7 +199,6 @@ public NameLocation rawData(String rawData) { /** * The raw data. - * * @return rawData The raw data. */ @JsonProperty(JSON_PROPERTY_RAW_DATA) @@ -243,7 +231,6 @@ public NameLocation state(String state) { /** * The state where the merchant is located. - * * @return state The state where the merchant is located. */ @JsonProperty(JSON_PROPERTY_STATE) @@ -263,7 +250,9 @@ public void setState(String state) { this.state = state; } - /** Return true if this NameLocation object is equal to o. */ + /** + * Return true if this NameLocation object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -273,12 +262,12 @@ public boolean equals(Object o) { return false; } NameLocation nameLocation = (NameLocation) o; - return Objects.equals(this.city, nameLocation.city) - && Objects.equals(this.country, nameLocation.country) - && Objects.equals(this.countryOfOrigin, nameLocation.countryOfOrigin) - && Objects.equals(this.name, nameLocation.name) - && Objects.equals(this.rawData, nameLocation.rawData) - && Objects.equals(this.state, nameLocation.state); + return Objects.equals(this.city, nameLocation.city) && + Objects.equals(this.country, nameLocation.country) && + Objects.equals(this.countryOfOrigin, nameLocation.countryOfOrigin) && + Objects.equals(this.name, nameLocation.name) && + Objects.equals(this.rawData, nameLocation.rawData) && + Objects.equals(this.state, nameLocation.state); } @Override @@ -301,7 +290,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -310,7 +300,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of NameLocation given an JSON string * * @param jsonString JSON string @@ -320,12 +310,11 @@ private String toIndentedString(Object o) { public static NameLocation fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NameLocation.class); } - - /** - * Convert an instance of NameLocation to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of NameLocation to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/NumberAndBicAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/NumberAndBicAccountIdentification.java index 49ad71cb7..4885c8b26 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/NumberAndBicAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/NumberAndBicAccountIdentification.java @@ -2,45 +2,54 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transferwebhooks.AdditionalBankIdentification; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** NumberAndBicAccountIdentification */ + +/** + * NumberAndBicAccountIdentification + */ @JsonPropertyOrder({ NumberAndBicAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, NumberAndBicAccountIdentification.JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION, NumberAndBicAccountIdentification.JSON_PROPERTY_BIC, NumberAndBicAccountIdentification.JSON_PROPERTY_TYPE }) + public class NumberAndBicAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - public static final String JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION = - "additionalBankIdentification"; + public static final String JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION = "additionalBankIdentification"; private AdditionalBankIdentification additionalBankIdentification; public static final String JSON_PROPERTY_BIC = "bic"; private String bic; - /** **numberAndBic** */ + /** + * **numberAndBic** + */ public enum TypeEnum { + NUMBERANDBIC(String.valueOf("numberAndBic")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +57,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,11 +78,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -81,16 +86,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public NumberAndBicAccountIdentification() {} + public NumberAndBicAccountIdentification() { + } /** - * The bank account number, without separators or whitespace. The length and format depends on the - * bank or country. + * The bank account number, without separators or whitespace. The length and format depends on the bank or country. * - * @param accountNumber The bank account number, without separators or whitespace. The length and - * format depends on the bank or country. - * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method - * chaining + * @param accountNumber The bank account number, without separators or whitespace. The length and format depends on the bank or country. + * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method chaining */ public NumberAndBicAccountIdentification accountNumber(String accountNumber) { this.accountNumber = accountNumber; @@ -98,11 +101,8 @@ public NumberAndBicAccountIdentification accountNumber(String accountNumber) { } /** - * The bank account number, without separators or whitespace. The length and format depends on the - * bank or country. - * - * @return accountNumber The bank account number, without separators or whitespace. The length and - * format depends on the bank or country. + * The bank account number, without separators or whitespace. The length and format depends on the bank or country. + * @return accountNumber The bank account number, without separators or whitespace. The length and format depends on the bank or country. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,11 +111,9 @@ public String getAccountNumber() { } /** - * The bank account number, without separators or whitespace. The length and format depends on the - * bank or country. + * The bank account number, without separators or whitespace. The length and format depends on the bank or country. * - * @param accountNumber The bank account number, without separators or whitespace. The length and - * format depends on the bank or country. + * @param accountNumber The bank account number, without separators or whitespace. The length and format depends on the bank or country. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,20 +124,17 @@ public void setAccountNumber(String accountNumber) { /** * additionalBankIdentification * - * @param additionalBankIdentification - * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method - * chaining + * @param additionalBankIdentification + * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method chaining */ - public NumberAndBicAccountIdentification additionalBankIdentification( - AdditionalBankIdentification additionalBankIdentification) { + public NumberAndBicAccountIdentification additionalBankIdentification(AdditionalBankIdentification additionalBankIdentification) { this.additionalBankIdentification = additionalBankIdentification; return this; } /** * Get additionalBankIdentification - * - * @return additionalBankIdentification + * @return additionalBankIdentification */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,12 +145,11 @@ public AdditionalBankIdentification getAdditionalBankIdentification() { /** * additionalBankIdentification * - * @param additionalBankIdentification + * @param additionalBankIdentification */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAdditionalBankIdentification( - AdditionalBankIdentification additionalBankIdentification) { + public void setAdditionalBankIdentification(AdditionalBankIdentification additionalBankIdentification) { this.additionalBankIdentification = additionalBankIdentification; } @@ -163,8 +157,7 @@ public void setAdditionalBankIdentification( * The bank's 8- or 11-character BIC or SWIFT code. * * @param bic The bank's 8- or 11-character BIC or SWIFT code. - * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method - * chaining + * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method chaining */ public NumberAndBicAccountIdentification bic(String bic) { this.bic = bic; @@ -173,7 +166,6 @@ public NumberAndBicAccountIdentification bic(String bic) { /** * The bank's 8- or 11-character BIC or SWIFT code. - * * @return bic The bank's 8- or 11-character BIC or SWIFT code. */ @JsonProperty(JSON_PROPERTY_BIC) @@ -197,8 +189,7 @@ public void setBic(String bic) { * **numberAndBic** * * @param type **numberAndBic** - * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method - * chaining + * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method chaining */ public NumberAndBicAccountIdentification type(TypeEnum type) { this.type = type; @@ -207,7 +198,6 @@ public NumberAndBicAccountIdentification type(TypeEnum type) { /** * **numberAndBic** - * * @return type **numberAndBic** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -227,7 +217,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this NumberAndBicAccountIdentification object is equal to o. */ + /** + * Return true if this NumberAndBicAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -236,14 +228,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - NumberAndBicAccountIdentification numberAndBicAccountIdentification = - (NumberAndBicAccountIdentification) o; - return Objects.equals(this.accountNumber, numberAndBicAccountIdentification.accountNumber) - && Objects.equals( - this.additionalBankIdentification, - numberAndBicAccountIdentification.additionalBankIdentification) - && Objects.equals(this.bic, numberAndBicAccountIdentification.bic) - && Objects.equals(this.type, numberAndBicAccountIdentification.type); + NumberAndBicAccountIdentification numberAndBicAccountIdentification = (NumberAndBicAccountIdentification) o; + return Objects.equals(this.accountNumber, numberAndBicAccountIdentification.accountNumber) && + Objects.equals(this.additionalBankIdentification, numberAndBicAccountIdentification.additionalBankIdentification) && + Objects.equals(this.bic, numberAndBicAccountIdentification.bic) && + Objects.equals(this.type, numberAndBicAccountIdentification.type); } @Override @@ -256,9 +245,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NumberAndBicAccountIdentification {\n"); sb.append(" accountNumber: ").append(toIndentedString(accountNumber)).append("\n"); - sb.append(" additionalBankIdentification: ") - .append(toIndentedString(additionalBankIdentification)) - .append("\n"); + sb.append(" additionalBankIdentification: ").append(toIndentedString(additionalBankIdentification)).append("\n"); sb.append(" bic: ").append(toIndentedString(bic)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -266,7 +253,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -275,24 +263,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of NumberAndBicAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of NumberAndBicAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * NumberAndBicAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to NumberAndBicAccountIdentification */ - public static NumberAndBicAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static NumberAndBicAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NumberAndBicAccountIdentification.class); } - - /** - * Convert an instance of NumberAndBicAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of NumberAndBicAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/PLLocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/PLLocalAccountIdentification.java index 5cc7835eb..0e9a3c4ab 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/PLLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/PLLocalAccountIdentification.java @@ -2,36 +2,45 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** PLLocalAccountIdentification */ + +/** + * PLLocalAccountIdentification + */ @JsonPropertyOrder({ PLLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, PLLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class PLLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - /** **plLocal** */ + /** + * **plLocal** + */ public enum TypeEnum { + PLLOCAL(String.valueOf("plLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -39,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -60,11 +69,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -72,16 +77,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PLLocalAccountIdentification() {} + public PLLocalAccountIdentification() { + } /** - * The 26-digit bank account number ([Numer - * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or - * whitespace. + * The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. * - * @param accountNumber The 26-digit bank account number ([Numer - * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or - * whitespace. + * @param accountNumber The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. * @return the current {@code PLLocalAccountIdentification} instance, allowing for method chaining */ public PLLocalAccountIdentification accountNumber(String accountNumber) { @@ -90,13 +92,8 @@ public PLLocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 26-digit bank account number ([Numer - * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or - * whitespace. - * - * @return accountNumber The 26-digit bank account number ([Numer - * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or - * whitespace. + * The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. + * @return accountNumber The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,13 +102,9 @@ public String getAccountNumber() { } /** - * The 26-digit bank account number ([Numer - * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or - * whitespace. + * The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. * - * @param accountNumber The 26-digit bank account number ([Numer - * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or - * whitespace. + * @param accountNumber The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,7 +125,6 @@ public PLLocalAccountIdentification type(TypeEnum type) { /** * **plLocal** - * * @return type **plLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -152,7 +144,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this PLLocalAccountIdentification object is equal to o. */ + /** + * Return true if this PLLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -162,8 +156,8 @@ public boolean equals(Object o) { return false; } PLLocalAccountIdentification plLocalAccountIdentification = (PLLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, plLocalAccountIdentification.accountNumber) - && Objects.equals(this.type, plLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, plLocalAccountIdentification.accountNumber) && + Objects.equals(this.type, plLocalAccountIdentification.type); } @Override @@ -182,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -191,24 +186,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PLLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of PLLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PLLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to PLLocalAccountIdentification */ - public static PLLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static PLLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PLLocalAccountIdentification.class); } - - /** - * Convert an instance of PLLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PLLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/PartyIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/PartyIdentification.java index f4f324c6d..e01181401 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/PartyIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/PartyIdentification.java @@ -2,27 +2,33 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transferwebhooks.Address; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PartyIdentification */ +/** + * PartyIdentification + */ @JsonPropertyOrder({ PartyIdentification.JSON_PROPERTY_ADDRESS, PartyIdentification.JSON_PROPERTY_DATE_OF_BIRTH, @@ -34,6 +40,7 @@ PartyIdentification.JSON_PROPERTY_TYPE, PartyIdentification.JSON_PROPERTY_URL }) + public class PartyIdentification { public static final String JSON_PROPERTY_ADDRESS = "address"; private Address address; @@ -57,11 +64,10 @@ public class PartyIdentification { private String reference; /** - * The type of entity that owns the bank account or card. Possible values: **individual**, - * **organization**, or **unknown**. Required when `category` is **card**. In this case, - * the value must be **individual**. + * The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. */ public enum TypeEnum { + INDIVIDUAL(String.valueOf("individual")), ORGANIZATION(String.valueOf("organization")), @@ -73,7 +79,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -94,11 +100,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -109,12 +111,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_URL = "url"; private String url; - public PartyIdentification() {} + public PartyIdentification() { + } /** * address * - * @param address + * @param address * @return the current {@code PartyIdentification} instance, allowing for method chaining */ public PartyIdentification address(Address address) { @@ -124,8 +127,7 @@ public PartyIdentification address(Address address) { /** * Get address - * - * @return address + * @return address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,7 +138,7 @@ public Address getAddress() { /** * address * - * @param address + * @param address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,12 +147,9 @@ public void setAddress(Address address) { } /** - * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. - * For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. + * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. * - * @param dateOfBirth The date of birth of the individual in - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. - * Allowed only when `type` is **individual**. + * @param dateOfBirth The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. * @return the current {@code PartyIdentification} instance, allowing for method chaining */ public PartyIdentification dateOfBirth(LocalDate dateOfBirth) { @@ -159,12 +158,8 @@ public PartyIdentification dateOfBirth(LocalDate dateOfBirth) { } /** - * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. - * For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. - * - * @return dateOfBirth The date of birth of the individual in - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. - * Allowed only when `type` is **individual**. + * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. + * @return dateOfBirth The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,12 +168,9 @@ public LocalDate getDateOfBirth() { } /** - * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. - * For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. + * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. * - * @param dateOfBirth The date of birth of the individual in - * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. - * Allowed only when `type` is **individual**. + * @param dateOfBirth The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,8 +181,7 @@ public void setDateOfBirth(LocalDate dateOfBirth) { /** * The email address of the organization or individual. Maximum length: 254 characters. * - * @param email The email address of the organization or individual. Maximum length: 254 - * characters. + * @param email The email address of the organization or individual. Maximum length: 254 characters. * @return the current {@code PartyIdentification} instance, allowing for method chaining */ public PartyIdentification email(String email) { @@ -200,9 +191,7 @@ public PartyIdentification email(String email) { /** * The email address of the organization or individual. Maximum length: 254 characters. - * - * @return email The email address of the organization or individual. Maximum length: 254 - * characters. + * @return email The email address of the organization or individual. Maximum length: 254 characters. */ @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -213,8 +202,7 @@ public String getEmail() { /** * The email address of the organization or individual. Maximum length: 254 characters. * - * @param email The email address of the organization or individual. Maximum length: 254 - * characters. + * @param email The email address of the organization or individual. Maximum length: 254 characters. */ @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,13 +211,9 @@ public void setEmail(String email) { } /** - * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This - * parameter is: - Allowed only when `type` is **individual**. - Required when - * `category` is **card**. + * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. * - * @param firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — - * and space. This parameter is: - Allowed only when `type` is **individual**. - - * Required when `category` is **card**. + * @param firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. * @return the current {@code PartyIdentification} instance, allowing for method chaining */ public PartyIdentification firstName(String firstName) { @@ -238,13 +222,8 @@ public PartyIdentification firstName(String firstName) { } /** - * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This - * parameter is: - Allowed only when `type` is **individual**. - Required when - * `category` is **card**. - * - * @return firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — - * and space. This parameter is: - Allowed only when `type` is **individual**. - - * Required when `category` is **card**. + * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * @return firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -253,13 +232,9 @@ public String getFirstName() { } /** - * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This - * parameter is: - Allowed only when `type` is **individual**. - Required when - * `category` is **card**. + * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. * - * @param firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — - * and space. This parameter is: - Allowed only when `type` is **individual**. - - * Required when `category` is **card**. + * @param firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -268,13 +243,9 @@ public void setFirstName(String firstName) { } /** - * The full name of the entity that owns the bank account or card. Supported characters: [a-z] - * [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when - * `category` is **bank**. + * The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. * - * @param fullName The full name of the entity that owns the bank account or card. Supported - * characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. - * Required when `category` is **bank**. + * @param fullName The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. * @return the current {@code PartyIdentification} instance, allowing for method chaining */ public PartyIdentification fullName(String fullName) { @@ -283,13 +254,8 @@ public PartyIdentification fullName(String fullName) { } /** - * The full name of the entity that owns the bank account or card. Supported characters: [a-z] - * [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when - * `category` is **bank**. - * - * @return fullName The full name of the entity that owns the bank account or card. Supported - * characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. - * Required when `category` is **bank**. + * The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. + * @return fullName The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. */ @JsonProperty(JSON_PROPERTY_FULL_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -298,13 +264,9 @@ public String getFullName() { } /** - * The full name of the entity that owns the bank account or card. Supported characters: [a-z] - * [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when - * `category` is **bank**. + * The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. * - * @param fullName The full name of the entity that owns the bank account or card. Supported - * characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. - * Required when `category` is **bank**. + * @param fullName The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. */ @JsonProperty(JSON_PROPERTY_FULL_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -313,13 +275,9 @@ public void setFullName(String fullName) { } /** - * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This - * parameter is: - Allowed only when `type` is **individual**. - Required when - * `category` is **card**. + * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. * - * @param lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and - * space. This parameter is: - Allowed only when `type` is **individual**. - - * Required when `category` is **card**. + * @param lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. * @return the current {@code PartyIdentification} instance, allowing for method chaining */ public PartyIdentification lastName(String lastName) { @@ -328,13 +286,8 @@ public PartyIdentification lastName(String lastName) { } /** - * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This - * parameter is: - Allowed only when `type` is **individual**. - Required when - * `category` is **card**. - * - * @return lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and - * space. This parameter is: - Allowed only when `type` is **individual**. - - * Required when `category` is **card**. + * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * @return lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -343,13 +296,9 @@ public String getLastName() { } /** - * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This - * parameter is: - Allowed only when `type` is **individual**. - Required when - * `category` is **card**. + * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. * - * @param lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and - * space. This parameter is: - Allowed only when `type` is **individual**. - - * Required when `category` is **card**. + * @param lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -358,13 +307,9 @@ public void setLastName(String lastName) { } /** - * A unique reference to identify the party or counterparty involved in the transfer. For example, - * your client's unique wallet or payee ID. Required when you include - * `cardIdentification.storedPaymentMethodId`. + * A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. * - * @param reference A unique reference to identify the party or counterparty involved in the - * transfer. For example, your client's unique wallet or payee ID. Required when you - * include `cardIdentification.storedPaymentMethodId`. + * @param reference A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. * @return the current {@code PartyIdentification} instance, allowing for method chaining */ public PartyIdentification reference(String reference) { @@ -373,13 +318,8 @@ public PartyIdentification reference(String reference) { } /** - * A unique reference to identify the party or counterparty involved in the transfer. For example, - * your client's unique wallet or payee ID. Required when you include - * `cardIdentification.storedPaymentMethodId`. - * - * @return reference A unique reference to identify the party or counterparty involved in the - * transfer. For example, your client's unique wallet or payee ID. Required when you - * include `cardIdentification.storedPaymentMethodId`. + * A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. + * @return reference A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -388,13 +328,9 @@ public String getReference() { } /** - * A unique reference to identify the party or counterparty involved in the transfer. For example, - * your client's unique wallet or payee ID. Required when you include - * `cardIdentification.storedPaymentMethodId`. + * A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. * - * @param reference A unique reference to identify the party or counterparty involved in the - * transfer. For example, your client's unique wallet or payee ID. Required when you - * include `cardIdentification.storedPaymentMethodId`. + * @param reference A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -403,13 +339,9 @@ public void setReference(String reference) { } /** - * The type of entity that owns the bank account or card. Possible values: **individual**, - * **organization**, or **unknown**. Required when `category` is **card**. In this case, - * the value must be **individual**. + * The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. * - * @param type The type of entity that owns the bank account or card. Possible values: - * **individual**, **organization**, or **unknown**. Required when `category` is - * **card**. In this case, the value must be **individual**. + * @param type The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. * @return the current {@code PartyIdentification} instance, allowing for method chaining */ public PartyIdentification type(TypeEnum type) { @@ -418,13 +350,8 @@ public PartyIdentification type(TypeEnum type) { } /** - * The type of entity that owns the bank account or card. Possible values: **individual**, - * **organization**, or **unknown**. Required when `category` is **card**. In this case, - * the value must be **individual**. - * - * @return type The type of entity that owns the bank account or card. Possible values: - * **individual**, **organization**, or **unknown**. Required when `category` is - * **card**. In this case, the value must be **individual**. + * The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. + * @return type The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -433,13 +360,9 @@ public TypeEnum getType() { } /** - * The type of entity that owns the bank account or card. Possible values: **individual**, - * **organization**, or **unknown**. Required when `category` is **card**. In this case, - * the value must be **individual**. + * The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. * - * @param type The type of entity that owns the bank account or card. Possible values: - * **individual**, **organization**, or **unknown**. Required when `category` is - * **card**. In this case, the value must be **individual**. + * @param type The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -460,7 +383,6 @@ public PartyIdentification url(String url) { /** * The URL of the organization or individual. Maximum length: 255 characters. - * * @return url The URL of the organization or individual. Maximum length: 255 characters. */ @JsonProperty(JSON_PROPERTY_URL) @@ -480,7 +402,9 @@ public void setUrl(String url) { this.url = url; } - /** Return true if this PartyIdentification object is equal to o. */ + /** + * Return true if this PartyIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -490,21 +414,20 @@ public boolean equals(Object o) { return false; } PartyIdentification partyIdentification = (PartyIdentification) o; - return Objects.equals(this.address, partyIdentification.address) - && Objects.equals(this.dateOfBirth, partyIdentification.dateOfBirth) - && Objects.equals(this.email, partyIdentification.email) - && Objects.equals(this.firstName, partyIdentification.firstName) - && Objects.equals(this.fullName, partyIdentification.fullName) - && Objects.equals(this.lastName, partyIdentification.lastName) - && Objects.equals(this.reference, partyIdentification.reference) - && Objects.equals(this.type, partyIdentification.type) - && Objects.equals(this.url, partyIdentification.url); + return Objects.equals(this.address, partyIdentification.address) && + Objects.equals(this.dateOfBirth, partyIdentification.dateOfBirth) && + Objects.equals(this.email, partyIdentification.email) && + Objects.equals(this.firstName, partyIdentification.firstName) && + Objects.equals(this.fullName, partyIdentification.fullName) && + Objects.equals(this.lastName, partyIdentification.lastName) && + Objects.equals(this.reference, partyIdentification.reference) && + Objects.equals(this.type, partyIdentification.type) && + Objects.equals(this.url, partyIdentification.url); } @Override public int hashCode() { - return Objects.hash( - address, dateOfBirth, email, firstName, fullName, lastName, reference, type, url); + return Objects.hash(address, dateOfBirth, email, firstName, fullName, lastName, reference, type, url); } @Override @@ -525,7 +448,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -534,23 +458,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PartyIdentification given an JSON string * * @param jsonString JSON string * @return An instance of PartyIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PartyIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to PartyIdentification */ public static PartyIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PartyIdentification.class); } - - /** - * Convert an instance of PartyIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PartyIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/PaymentInstrument.java b/src/main/java/com/adyen/model/transferwebhooks/PaymentInstrument.java index 0a21fdd52..d50e85961 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/PaymentInstrument.java +++ b/src/main/java/com/adyen/model/transferwebhooks/PaymentInstrument.java @@ -2,28 +2,38 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** PaymentInstrument */ + +/** + * PaymentInstrument + */ @JsonPropertyOrder({ PaymentInstrument.JSON_PROPERTY_DESCRIPTION, PaymentInstrument.JSON_PROPERTY_ID, PaymentInstrument.JSON_PROPERTY_REFERENCE, PaymentInstrument.JSON_PROPERTY_TOKEN_TYPE }) + public class PaymentInstrument { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -37,7 +47,8 @@ public class PaymentInstrument { public static final String JSON_PROPERTY_TOKEN_TYPE = "tokenType"; private String tokenType; - public PaymentInstrument() {} + public PaymentInstrument() { + } /** * The description of the resource. @@ -52,7 +63,6 @@ public PaymentInstrument description(String description) { /** * The description of the resource. - * * @return description The description of the resource. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -85,7 +95,6 @@ public PaymentInstrument id(String id) { /** * The unique identifier of the resource. - * * @return id The unique identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -118,7 +127,6 @@ public PaymentInstrument reference(String reference) { /** * The reference for the resource. - * * @return reference The reference for the resource. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -151,7 +159,6 @@ public PaymentInstrument tokenType(String tokenType) { /** * The type of wallet that the network token is associated with. - * * @return tokenType The type of wallet that the network token is associated with. */ @JsonProperty(JSON_PROPERTY_TOKEN_TYPE) @@ -171,7 +178,9 @@ public void setTokenType(String tokenType) { this.tokenType = tokenType; } - /** Return true if this PaymentInstrument object is equal to o. */ + /** + * Return true if this PaymentInstrument object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -181,10 +190,10 @@ public boolean equals(Object o) { return false; } PaymentInstrument paymentInstrument = (PaymentInstrument) o; - return Objects.equals(this.description, paymentInstrument.description) - && Objects.equals(this.id, paymentInstrument.id) - && Objects.equals(this.reference, paymentInstrument.reference) - && Objects.equals(this.tokenType, paymentInstrument.tokenType); + return Objects.equals(this.description, paymentInstrument.description) && + Objects.equals(this.id, paymentInstrument.id) && + Objects.equals(this.reference, paymentInstrument.reference) && + Objects.equals(this.tokenType, paymentInstrument.tokenType); } @Override @@ -205,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -214,7 +224,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PaymentInstrument given an JSON string * * @param jsonString JSON string @@ -224,12 +234,11 @@ private String toIndentedString(Object o) { public static PaymentInstrument fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentInstrument.class); } - - /** - * Convert an instance of PaymentInstrument to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PaymentInstrument to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/PlatformPayment.java b/src/main/java/com/adyen/model/transferwebhooks/PlatformPayment.java index 73a4ed23e..93debabf2 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/PlatformPayment.java +++ b/src/main/java/com/adyen/model/transferwebhooks/PlatformPayment.java @@ -2,26 +2,31 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** PlatformPayment */ +/** + * PlatformPayment + */ @JsonPropertyOrder({ PlatformPayment.JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE, PlatformPayment.JSON_PROPERTY_MODIFICATION_PSP_REFERENCE, @@ -30,9 +35,9 @@ PlatformPayment.JSON_PROPERTY_PSP_PAYMENT_REFERENCE, PlatformPayment.JSON_PROPERTY_TYPE }) + public class PlatformPayment { - public static final String JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE = - "modificationMerchantReference"; + public static final String JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE = "modificationMerchantReference"; private String modificationMerchantReference; public static final String JSON_PROPERTY_MODIFICATION_PSP_REFERENCE = "modificationPspReference"; @@ -42,28 +47,10 @@ public class PlatformPayment { private String paymentMerchantReference; /** - * Specifies the nature of the transfer. This parameter helps categorize transfers so you can - * reconcile transactions at a later time, using the Balance Platform Accounting Report for - * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) - * or - * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). - * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * - * **AdyenCommission**: for the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). - * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's - * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen - * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale - * amount of a transaction. * **Commission**: for your platform's commission on a transaction. - * * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * - * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * - * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount - * after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This - * is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge - * paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * - * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for - * the Value Added Tax. + * Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. */ public enum PlatformPaymentTypeEnum { + ACQUIRINGFEES(String.valueOf("AcquiringFees")), ADYENCOMMISSION(String.valueOf("AdyenCommission")), @@ -103,7 +90,7 @@ public enum PlatformPaymentTypeEnum { private String value; PlatformPaymentTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -124,11 +111,7 @@ public static PlatformPaymentTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "PlatformPaymentTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(PlatformPaymentTypeEnum.values())); + LOG.warning("PlatformPaymentTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PlatformPaymentTypeEnum.values())); return null; } } @@ -139,8 +122,11 @@ public static PlatformPaymentTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_PSP_PAYMENT_REFERENCE = "pspPaymentReference"; private String pspPaymentReference; - /** **platformPayment** */ + /** + * **platformPayment** + */ public enum TypeEnum { + PLATFORMPAYMENT(String.valueOf("platformPayment")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -148,7 +134,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -169,11 +155,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -181,13 +163,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PlatformPayment() {} + public PlatformPayment() { + } /** * The capture's merchant reference included in the transfer. * - * @param modificationMerchantReference The capture's merchant reference included in the - * transfer. + * @param modificationMerchantReference The capture's merchant reference included in the transfer. * @return the current {@code PlatformPayment} instance, allowing for method chaining */ public PlatformPayment modificationMerchantReference(String modificationMerchantReference) { @@ -197,9 +179,7 @@ public PlatformPayment modificationMerchantReference(String modificationMerchant /** * The capture's merchant reference included in the transfer. - * - * @return modificationMerchantReference The capture's merchant reference included in the - * transfer. + * @return modificationMerchantReference The capture's merchant reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -210,8 +190,7 @@ public String getModificationMerchantReference() { /** * The capture's merchant reference included in the transfer. * - * @param modificationMerchantReference The capture's merchant reference included in the - * transfer. + * @param modificationMerchantReference The capture's merchant reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,7 +211,6 @@ public PlatformPayment modificationPspReference(String modificationPspReference) /** * The capture reference included in the transfer. - * * @return modificationPspReference The capture reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_PSP_REFERENCE) @@ -265,7 +243,6 @@ public PlatformPayment paymentMerchantReference(String paymentMerchantReference) /** * The payment's merchant reference included in the transfer. - * * @return paymentMerchantReference The payment's merchant reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_PAYMENT_MERCHANT_REFERENCE) @@ -286,48 +263,9 @@ public void setPaymentMerchantReference(String paymentMerchantReference) { } /** - * Specifies the nature of the transfer. This parameter helps categorize transfers so you can - * reconcile transactions at a later time, using the Balance Platform Accounting Report for - * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) - * or - * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). - * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * - * **AdyenCommission**: for the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). - * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's - * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen - * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale - * amount of a transaction. * **Commission**: for your platform's commission on a transaction. - * * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * - * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * - * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount - * after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This - * is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge - * paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * - * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for - * the Value Added Tax. + * Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. * - * @param platformPaymentType Specifies the nature of the transfer. This parameter helps - * categorize transfers so you can reconcile transactions at a later time, using the Balance - * Platform Accounting Report for - * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) - * or - * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). - * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * - * **AdyenCommission**: for the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). - * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's - * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen - * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the - * sale amount of a transaction. * **Commission**: for your platform's commission on a - * transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a - * transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred - * on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for - * the left over amount after currency conversion. * **SchemeFee**: for the scheme fee - * incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. - * * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for - * the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your - * user's balance account. * **VAT**: for the Value Added Tax. + * @param platformPaymentType Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. * @return the current {@code PlatformPayment} instance, allowing for method chaining */ public PlatformPayment platformPaymentType(PlatformPaymentTypeEnum platformPaymentType) { @@ -336,48 +274,8 @@ public PlatformPayment platformPaymentType(PlatformPaymentTypeEnum platformPayme } /** - * Specifies the nature of the transfer. This parameter helps categorize transfers so you can - * reconcile transactions at a later time, using the Balance Platform Accounting Report for - * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) - * or - * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). - * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * - * **AdyenCommission**: for the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). - * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's - * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen - * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale - * amount of a transaction. * **Commission**: for your platform's commission on a transaction. - * * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * - * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * - * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount - * after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This - * is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge - * paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * - * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for - * the Value Added Tax. - * - * @return platformPaymentType Specifies the nature of the transfer. This parameter helps - * categorize transfers so you can reconcile transactions at a later time, using the Balance - * Platform Accounting Report for - * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) - * or - * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). - * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * - * **AdyenCommission**: for the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). - * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's - * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen - * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the - * sale amount of a transaction. * **Commission**: for your platform's commission on a - * transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a - * transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred - * on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for - * the left over amount after currency conversion. * **SchemeFee**: for the scheme fee - * incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. - * * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for - * the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your - * user's balance account. * **VAT**: for the Value Added Tax. + * Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. + * @return platformPaymentType Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. */ @JsonProperty(JSON_PROPERTY_PLATFORM_PAYMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -386,48 +284,9 @@ public PlatformPaymentTypeEnum getPlatformPaymentType() { } /** - * Specifies the nature of the transfer. This parameter helps categorize transfers so you can - * reconcile transactions at a later time, using the Balance Platform Accounting Report for - * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) - * or - * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). - * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * - * **AdyenCommission**: for the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). - * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's - * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen - * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale - * amount of a transaction. * **Commission**: for your platform's commission on a transaction. - * * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * - * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * - * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount - * after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This - * is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge - * paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * - * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for - * the Value Added Tax. + * Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. * - * @param platformPaymentType Specifies the nature of the transfer. This parameter helps - * categorize transfers so you can reconcile transactions at a later time, using the Balance - * Platform Accounting Report for - * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) - * or - * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). - * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * - * **AdyenCommission**: for the transaction fee due to Adyen under [blended - * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). - * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's - * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen - * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the - * sale amount of a transaction. * **Commission**: for your platform's commission on a - * transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a - * transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred - * on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for - * the left over amount after currency conversion. * **SchemeFee**: for the scheme fee - * incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. - * * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for - * the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your - * user's balance account. * **VAT**: for the Value Added Tax. + * @param platformPaymentType Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. */ @JsonProperty(JSON_PROPERTY_PLATFORM_PAYMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -448,7 +307,6 @@ public PlatformPayment pspPaymentReference(String pspPaymentReference) { /** * The payment reference included in the transfer. - * * @return pspPaymentReference The payment reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_PSP_PAYMENT_REFERENCE) @@ -481,7 +339,6 @@ public PlatformPayment type(TypeEnum type) { /** * **platformPayment** - * * @return type **platformPayment** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -501,7 +358,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this PlatformPayment object is equal to o. */ + /** + * Return true if this PlatformPayment object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -511,52 +370,36 @@ public boolean equals(Object o) { return false; } PlatformPayment platformPayment = (PlatformPayment) o; - return Objects.equals( - this.modificationMerchantReference, platformPayment.modificationMerchantReference) - && Objects.equals(this.modificationPspReference, platformPayment.modificationPspReference) - && Objects.equals(this.paymentMerchantReference, platformPayment.paymentMerchantReference) - && Objects.equals(this.platformPaymentType, platformPayment.platformPaymentType) - && Objects.equals(this.pspPaymentReference, platformPayment.pspPaymentReference) - && Objects.equals(this.type, platformPayment.type); + return Objects.equals(this.modificationMerchantReference, platformPayment.modificationMerchantReference) && + Objects.equals(this.modificationPspReference, platformPayment.modificationPspReference) && + Objects.equals(this.paymentMerchantReference, platformPayment.paymentMerchantReference) && + Objects.equals(this.platformPaymentType, platformPayment.platformPaymentType) && + Objects.equals(this.pspPaymentReference, platformPayment.pspPaymentReference) && + Objects.equals(this.type, platformPayment.type); } @Override public int hashCode() { - return Objects.hash( - modificationMerchantReference, - modificationPspReference, - paymentMerchantReference, - platformPaymentType, - pspPaymentReference, - type); + return Objects.hash(modificationMerchantReference, modificationPspReference, paymentMerchantReference, platformPaymentType, pspPaymentReference, type); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PlatformPayment {\n"); - sb.append(" modificationMerchantReference: ") - .append(toIndentedString(modificationMerchantReference)) - .append("\n"); - sb.append(" modificationPspReference: ") - .append(toIndentedString(modificationPspReference)) - .append("\n"); - sb.append(" paymentMerchantReference: ") - .append(toIndentedString(paymentMerchantReference)) - .append("\n"); - sb.append(" platformPaymentType: ") - .append(toIndentedString(platformPaymentType)) - .append("\n"); - sb.append(" pspPaymentReference: ") - .append(toIndentedString(pspPaymentReference)) - .append("\n"); + sb.append(" modificationMerchantReference: ").append(toIndentedString(modificationMerchantReference)).append("\n"); + sb.append(" modificationPspReference: ").append(toIndentedString(modificationPspReference)).append("\n"); + sb.append(" paymentMerchantReference: ").append(toIndentedString(paymentMerchantReference)).append("\n"); + sb.append(" platformPaymentType: ").append(toIndentedString(platformPaymentType)).append("\n"); + sb.append(" pspPaymentReference: ").append(toIndentedString(pspPaymentReference)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -565,7 +408,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of PlatformPayment given an JSON string * * @param jsonString JSON string @@ -575,12 +418,11 @@ private String toIndentedString(Object o) { public static PlatformPayment fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PlatformPayment.class); } - - /** - * Convert an instance of PlatformPayment to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of PlatformPayment to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/RelayedAuthorisationData.java b/src/main/java/com/adyen/model/transferwebhooks/RelayedAuthorisationData.java index ddc54408d..476b6a96c 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/RelayedAuthorisationData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/RelayedAuthorisationData.java @@ -2,28 +2,38 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** RelayedAuthorisationData */ +/** + * RelayedAuthorisationData + */ @JsonPropertyOrder({ RelayedAuthorisationData.JSON_PROPERTY_METADATA, RelayedAuthorisationData.JSON_PROPERTY_REFERENCE }) + public class RelayedAuthorisationData { public static final String JSON_PROPERTY_METADATA = "metadata"; private Map metadata; @@ -31,14 +41,13 @@ public class RelayedAuthorisationData { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public RelayedAuthorisationData() {} + public RelayedAuthorisationData() { + } /** - * Contains key-value pairs of your references and descriptions, for example, - * `customId`:`your-own-custom-field-12345`. + * Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. * - * @param metadata Contains key-value pairs of your references and descriptions, for example, - * `customId`:`your-own-custom-field-12345`. + * @param metadata Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. * @return the current {@code RelayedAuthorisationData} instance, allowing for method chaining */ public RelayedAuthorisationData metadata(Map metadata) { @@ -55,11 +64,8 @@ public RelayedAuthorisationData putMetadataItem(String key, String metadataItem) } /** - * Contains key-value pairs of your references and descriptions, for example, - * `customId`:`your-own-custom-field-12345`. - * - * @return metadata Contains key-value pairs of your references and descriptions, for example, - * `customId`:`your-own-custom-field-12345`. + * Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. + * @return metadata Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,11 +74,9 @@ public Map getMetadata() { } /** - * Contains key-value pairs of your references and descriptions, for example, - * `customId`:`your-own-custom-field-12345`. + * Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. * - * @param metadata Contains key-value pairs of your references and descriptions, for example, - * `customId`:`your-own-custom-field-12345`. + * @param metadata Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -93,7 +97,6 @@ public RelayedAuthorisationData reference(String reference) { /** * Your reference for the relayed authorisation data. - * * @return reference Your reference for the relayed authorisation data. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -113,7 +116,9 @@ public void setReference(String reference) { this.reference = reference; } - /** Return true if this RelayedAuthorisationData object is equal to o. */ + /** + * Return true if this RelayedAuthorisationData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -123,8 +128,8 @@ public boolean equals(Object o) { return false; } RelayedAuthorisationData relayedAuthorisationData = (RelayedAuthorisationData) o; - return Objects.equals(this.metadata, relayedAuthorisationData.metadata) - && Objects.equals(this.reference, relayedAuthorisationData.reference); + return Objects.equals(this.metadata, relayedAuthorisationData.metadata) && + Objects.equals(this.reference, relayedAuthorisationData.reference); } @Override @@ -143,7 +148,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -152,24 +158,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of RelayedAuthorisationData given an JSON string * * @param jsonString JSON string * @return An instance of RelayedAuthorisationData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * RelayedAuthorisationData + * @throws JsonProcessingException if the JSON string is invalid with respect to RelayedAuthorisationData */ - public static RelayedAuthorisationData fromJson(String jsonString) - throws JsonProcessingException { + public static RelayedAuthorisationData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RelayedAuthorisationData.class); } - - /** - * Convert an instance of RelayedAuthorisationData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of RelayedAuthorisationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/Resource.java b/src/main/java/com/adyen/model/transferwebhooks/Resource.java index 960a64abd..bdfadb689 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/Resource.java +++ b/src/main/java/com/adyen/model/transferwebhooks/Resource.java @@ -2,28 +2,38 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.time.OffsetDateTime; -import java.util.*; -/** Resource */ + +/** + * Resource + */ @JsonPropertyOrder({ Resource.JSON_PROPERTY_BALANCE_PLATFORM, Resource.JSON_PROPERTY_CREATION_DATE, Resource.JSON_PROPERTY_ID }) + public class Resource { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; @@ -34,7 +44,8 @@ public class Resource { public static final String JSON_PROPERTY_ID = "id"; private String id; - public Resource() {} + public Resource() { + } /** * The unique identifier of the balance platform. @@ -49,7 +60,6 @@ public Resource balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. - * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -70,11 +80,9 @@ public void setBalancePlatform(String balancePlatform) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code Resource} instance, allowing for method chaining */ public Resource creationDate(OffsetDateTime creationDate) { @@ -83,11 +91,8 @@ public Resource creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. - * - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,11 +101,9 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,7 +124,6 @@ public Resource id(String id) { /** * The ID of the resource. - * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -141,7 +143,9 @@ public void setId(String id) { this.id = id; } - /** Return true if this Resource object is equal to o. */ + /** + * Return true if this Resource object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -151,9 +155,9 @@ public boolean equals(Object o) { return false; } Resource resource = (Resource) o; - return Objects.equals(this.balancePlatform, resource.balancePlatform) - && Objects.equals(this.creationDate, resource.creationDate) - && Objects.equals(this.id, resource.id); + return Objects.equals(this.balancePlatform, resource.balancePlatform) && + Objects.equals(this.creationDate, resource.creationDate) && + Objects.equals(this.id, resource.id); } @Override @@ -173,7 +177,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,7 +187,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of Resource given an JSON string * * @param jsonString JSON string @@ -192,12 +197,11 @@ private String toIndentedString(Object o) { public static Resource fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Resource.class); } - - /** - * Convert an instance of Resource to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of Resource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/ResourceReference.java b/src/main/java/com/adyen/model/transferwebhooks/ResourceReference.java index b3fe1de89..17554f633 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/ResourceReference.java +++ b/src/main/java/com/adyen/model/transferwebhooks/ResourceReference.java @@ -2,27 +2,37 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ResourceReference */ + +/** + * ResourceReference + */ @JsonPropertyOrder({ ResourceReference.JSON_PROPERTY_DESCRIPTION, ResourceReference.JSON_PROPERTY_ID, ResourceReference.JSON_PROPERTY_REFERENCE }) + public class ResourceReference { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -33,7 +43,8 @@ public class ResourceReference { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public ResourceReference() {} + public ResourceReference() { + } /** * The description of the resource. @@ -48,7 +59,6 @@ public ResourceReference description(String description) { /** * The description of the resource. - * * @return description The description of the resource. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -81,7 +91,6 @@ public ResourceReference id(String id) { /** * The unique identifier of the resource. - * * @return id The unique identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -114,7 +123,6 @@ public ResourceReference reference(String reference) { /** * The reference for the resource. - * * @return reference The reference for the resource. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -134,7 +142,9 @@ public void setReference(String reference) { this.reference = reference; } - /** Return true if this ResourceReference object is equal to o. */ + /** + * Return true if this ResourceReference object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,9 +154,9 @@ public boolean equals(Object o) { return false; } ResourceReference resourceReference = (ResourceReference) o; - return Objects.equals(this.description, resourceReference.description) - && Objects.equals(this.id, resourceReference.id) - && Objects.equals(this.reference, resourceReference.reference); + return Objects.equals(this.description, resourceReference.description) && + Objects.equals(this.id, resourceReference.id) && + Objects.equals(this.reference, resourceReference.reference); } @Override @@ -166,7 +176,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ResourceReference given an JSON string * * @param jsonString JSON string @@ -185,12 +196,11 @@ private String toIndentedString(Object o) { public static ResourceReference fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResourceReference.class); } - - /** - * Convert an instance of ResourceReference to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ResourceReference to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/SELocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/SELocalAccountIdentification.java index cbebe8b71..8ad6ff3d6 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/SELocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/SELocalAccountIdentification.java @@ -2,31 +2,37 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** SELocalAccountIdentification */ + +/** + * SELocalAccountIdentification + */ @JsonPropertyOrder({ SELocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, SELocalAccountIdentification.JSON_PROPERTY_CLEARING_NUMBER, SELocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class SELocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -34,8 +40,11 @@ public class SELocalAccountIdentification { public static final String JSON_PROPERTY_CLEARING_NUMBER = "clearingNumber"; private String clearingNumber; - /** **seLocal** */ + /** + * **seLocal** + */ public enum TypeEnum { + SELOCAL(String.valueOf("seLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -43,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -76,16 +81,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public SELocalAccountIdentification() {} + public SELocalAccountIdentification() { + } /** - * The 7- to 10-digit bank account number - * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, - * separators, or whitespace. + * The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. * - * @param accountNumber The 7- to 10-digit bank account number - * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, - * separators, or whitespace. + * @param accountNumber The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. * @return the current {@code SELocalAccountIdentification} instance, allowing for method chaining */ public SELocalAccountIdentification accountNumber(String accountNumber) { @@ -94,13 +96,8 @@ public SELocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 7- to 10-digit bank account number - * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, - * separators, or whitespace. - * - * @return accountNumber The 7- to 10-digit bank account number - * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, - * separators, or whitespace. + * The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. + * @return accountNumber The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -109,13 +106,9 @@ public String getAccountNumber() { } /** - * The 7- to 10-digit bank account number - * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, - * separators, or whitespace. + * The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. * - * @param accountNumber The 7- to 10-digit bank account number - * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, - * separators, or whitespace. + * @param accountNumber The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,13 +117,9 @@ public void setAccountNumber(String accountNumber) { } /** - * The 4- to 5-digit clearing number - * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or - * whitespace. + * The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. * - * @param clearingNumber The 4- to 5-digit clearing number - * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or - * whitespace. + * @param clearingNumber The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. * @return the current {@code SELocalAccountIdentification} instance, allowing for method chaining */ public SELocalAccountIdentification clearingNumber(String clearingNumber) { @@ -139,13 +128,8 @@ public SELocalAccountIdentification clearingNumber(String clearingNumber) { } /** - * The 4- to 5-digit clearing number - * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or - * whitespace. - * - * @return clearingNumber The 4- to 5-digit clearing number - * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or - * whitespace. + * The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. + * @return clearingNumber The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_CLEARING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -154,13 +138,9 @@ public String getClearingNumber() { } /** - * The 4- to 5-digit clearing number - * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or - * whitespace. + * The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. * - * @param clearingNumber The 4- to 5-digit clearing number - * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or - * whitespace. + * @param clearingNumber The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_CLEARING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,7 +161,6 @@ public SELocalAccountIdentification type(TypeEnum type) { /** * **seLocal** - * * @return type **seLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -201,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this SELocalAccountIdentification object is equal to o. */ + /** + * Return true if this SELocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -211,9 +192,9 @@ public boolean equals(Object o) { return false; } SELocalAccountIdentification seLocalAccountIdentification = (SELocalAccountIdentification) o; - return Objects.equals(this.accountNumber, seLocalAccountIdentification.accountNumber) - && Objects.equals(this.clearingNumber, seLocalAccountIdentification.clearingNumber) - && Objects.equals(this.type, seLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, seLocalAccountIdentification.accountNumber) && + Objects.equals(this.clearingNumber, seLocalAccountIdentification.clearingNumber) && + Objects.equals(this.type, seLocalAccountIdentification.type); } @Override @@ -233,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -242,24 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SELocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of SELocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SELocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to SELocalAccountIdentification */ - public static SELocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static SELocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SELocalAccountIdentification.class); } - - /** - * Convert an instance of SELocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SELocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/SGLocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/SGLocalAccountIdentification.java index 1d088d87f..77f78bffa 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/SGLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/SGLocalAccountIdentification.java @@ -2,31 +2,37 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** SGLocalAccountIdentification */ + +/** + * SGLocalAccountIdentification + */ @JsonPropertyOrder({ SGLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, SGLocalAccountIdentification.JSON_PROPERTY_BIC, SGLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class SGLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -34,8 +40,11 @@ public class SGLocalAccountIdentification { public static final String JSON_PROPERTY_BIC = "bic"; private String bic; - /** **sgLocal** */ + /** + * **sgLocal** + */ public enum TypeEnum { + SGLOCAL(String.valueOf("sgLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -43,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -76,7 +81,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public SGLocalAccountIdentification() {} + public SGLocalAccountIdentification() { + } /** * The 4- to 19-digit bank account number, without separators or whitespace. @@ -91,7 +97,6 @@ public SGLocalAccountIdentification accountNumber(String accountNumber) { /** * The 4- to 19-digit bank account number, without separators or whitespace. - * * @return accountNumber The 4- to 19-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -124,7 +129,6 @@ public SGLocalAccountIdentification bic(String bic) { /** * The bank's 8- or 11-character BIC or SWIFT code. - * * @return bic The bank's 8- or 11-character BIC or SWIFT code. */ @JsonProperty(JSON_PROPERTY_BIC) @@ -157,7 +161,6 @@ public SGLocalAccountIdentification type(TypeEnum type) { /** * **sgLocal** - * * @return type **sgLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -177,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this SGLocalAccountIdentification object is equal to o. */ + /** + * Return true if this SGLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -187,9 +192,9 @@ public boolean equals(Object o) { return false; } SGLocalAccountIdentification sgLocalAccountIdentification = (SGLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, sgLocalAccountIdentification.accountNumber) - && Objects.equals(this.bic, sgLocalAccountIdentification.bic) - && Objects.equals(this.type, sgLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, sgLocalAccountIdentification.accountNumber) && + Objects.equals(this.bic, sgLocalAccountIdentification.bic) && + Objects.equals(this.type, sgLocalAccountIdentification.type); } @Override @@ -209,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -218,24 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of SGLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of SGLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SGLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to SGLocalAccountIdentification */ - public static SGLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static SGLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SGLocalAccountIdentification.class); } - - /** - * Convert an instance of SGLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of SGLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/ThreeDSecure.java b/src/main/java/com/adyen/model/transferwebhooks/ThreeDSecure.java index bda7e6d8f..aebc2b7d0 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/ThreeDSecure.java +++ b/src/main/java/com/adyen/model/transferwebhooks/ThreeDSecure.java @@ -2,28 +2,41 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** ThreeDSecure */ -@JsonPropertyOrder({ThreeDSecure.JSON_PROPERTY_ACS_TRANSACTION_ID}) + +/** + * ThreeDSecure + */ +@JsonPropertyOrder({ + ThreeDSecure.JSON_PROPERTY_ACS_TRANSACTION_ID +}) + public class ThreeDSecure { public static final String JSON_PROPERTY_ACS_TRANSACTION_ID = "acsTransactionId"; private String acsTransactionId; - public ThreeDSecure() {} + public ThreeDSecure() { + } /** * The transaction identifier for the Access Control Server @@ -38,7 +51,6 @@ public ThreeDSecure acsTransactionId(String acsTransactionId) { /** * The transaction identifier for the Access Control Server - * * @return acsTransactionId The transaction identifier for the Access Control Server */ @JsonProperty(JSON_PROPERTY_ACS_TRANSACTION_ID) @@ -58,7 +70,9 @@ public void setAcsTransactionId(String acsTransactionId) { this.acsTransactionId = acsTransactionId; } - /** Return true if this ThreeDSecure object is equal to o. */ + /** + * Return true if this ThreeDSecure object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -86,7 +100,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -95,7 +110,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of ThreeDSecure given an JSON string * * @param jsonString JSON string @@ -105,12 +120,11 @@ private String toIndentedString(Object o) { public static ThreeDSecure fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDSecure.class); } - - /** - * Convert an instance of ThreeDSecure to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of ThreeDSecure to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransactionEventViolation.java b/src/main/java/com/adyen/model/transferwebhooks/TransactionEventViolation.java index bf42d1869..a2815f4ab 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransactionEventViolation.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransactionEventViolation.java @@ -2,27 +2,39 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transferwebhooks.TransactionRuleReference; +import com.adyen.model.transferwebhooks.TransactionRuleSource; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TransactionEventViolation */ + +/** + * TransactionEventViolation + */ @JsonPropertyOrder({ TransactionEventViolation.JSON_PROPERTY_REASON, TransactionEventViolation.JSON_PROPERTY_TRANSACTION_RULE, TransactionEventViolation.JSON_PROPERTY_TRANSACTION_RULE_SOURCE }) + public class TransactionEventViolation { public static final String JSON_PROPERTY_REASON = "reason"; private String reason; @@ -33,7 +45,8 @@ public class TransactionEventViolation { public static final String JSON_PROPERTY_TRANSACTION_RULE_SOURCE = "transactionRuleSource"; private TransactionRuleSource transactionRuleSource; - public TransactionEventViolation() {} + public TransactionEventViolation() { + } /** * An explanation about why the transaction rule failed. @@ -48,7 +61,6 @@ public TransactionEventViolation reason(String reason) { /** * An explanation about why the transaction rule failed. - * * @return reason An explanation about why the transaction rule failed. */ @JsonProperty(JSON_PROPERTY_REASON) @@ -71,7 +83,7 @@ public void setReason(String reason) { /** * transactionRule * - * @param transactionRule + * @param transactionRule * @return the current {@code TransactionEventViolation} instance, allowing for method chaining */ public TransactionEventViolation transactionRule(TransactionRuleReference transactionRule) { @@ -81,8 +93,7 @@ public TransactionEventViolation transactionRule(TransactionRuleReference transa /** * Get transactionRule - * - * @return transactionRule + * @return transactionRule */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -93,7 +104,7 @@ public TransactionRuleReference getTransactionRule() { /** * transactionRule * - * @param transactionRule + * @param transactionRule */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,19 +115,17 @@ public void setTransactionRule(TransactionRuleReference transactionRule) { /** * transactionRuleSource * - * @param transactionRuleSource + * @param transactionRuleSource * @return the current {@code TransactionEventViolation} instance, allowing for method chaining */ - public TransactionEventViolation transactionRuleSource( - TransactionRuleSource transactionRuleSource) { + public TransactionEventViolation transactionRuleSource(TransactionRuleSource transactionRuleSource) { this.transactionRuleSource = transactionRuleSource; return this; } /** * Get transactionRuleSource - * - * @return transactionRuleSource + * @return transactionRuleSource */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULE_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,7 +136,7 @@ public TransactionRuleSource getTransactionRuleSource() { /** * transactionRuleSource * - * @param transactionRuleSource + * @param transactionRuleSource */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULE_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,7 +144,9 @@ public void setTransactionRuleSource(TransactionRuleSource transactionRuleSource this.transactionRuleSource = transactionRuleSource; } - /** Return true if this TransactionEventViolation object is equal to o. */ + /** + * Return true if this TransactionEventViolation object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -145,10 +156,9 @@ public boolean equals(Object o) { return false; } TransactionEventViolation transactionEventViolation = (TransactionEventViolation) o; - return Objects.equals(this.reason, transactionEventViolation.reason) - && Objects.equals(this.transactionRule, transactionEventViolation.transactionRule) - && Objects.equals( - this.transactionRuleSource, transactionEventViolation.transactionRuleSource); + return Objects.equals(this.reason, transactionEventViolation.reason) && + Objects.equals(this.transactionRule, transactionEventViolation.transactionRule) && + Objects.equals(this.transactionRuleSource, transactionEventViolation.transactionRuleSource); } @Override @@ -162,15 +172,14 @@ public String toString() { sb.append("class TransactionEventViolation {\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" transactionRule: ").append(toIndentedString(transactionRule)).append("\n"); - sb.append(" transactionRuleSource: ") - .append(toIndentedString(transactionRuleSource)) - .append("\n"); + sb.append(" transactionRuleSource: ").append(toIndentedString(transactionRuleSource)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -179,24 +188,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransactionEventViolation given an JSON string * * @param jsonString JSON string * @return An instance of TransactionEventViolation - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionEventViolation + * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionEventViolation */ - public static TransactionEventViolation fromJson(String jsonString) - throws JsonProcessingException { + public static TransactionEventViolation fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionEventViolation.class); } - - /** - * Convert an instance of TransactionEventViolation to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransactionEventViolation to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransactionRuleReference.java b/src/main/java/com/adyen/model/transferwebhooks/TransactionRuleReference.java index 73caf743b..3782b01f6 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransactionRuleReference.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransactionRuleReference.java @@ -2,22 +2,31 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TransactionRuleReference */ + +/** + * TransactionRuleReference + */ @JsonPropertyOrder({ TransactionRuleReference.JSON_PROPERTY_DESCRIPTION, TransactionRuleReference.JSON_PROPERTY_ID, @@ -25,6 +34,7 @@ TransactionRuleReference.JSON_PROPERTY_REFERENCE, TransactionRuleReference.JSON_PROPERTY_SCORE }) + public class TransactionRuleReference { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -41,7 +51,8 @@ public class TransactionRuleReference { public static final String JSON_PROPERTY_SCORE = "score"; private Integer score; - public TransactionRuleReference() {} + public TransactionRuleReference() { + } /** * The description of the resource. @@ -56,7 +67,6 @@ public TransactionRuleReference description(String description) { /** * The description of the resource. - * * @return description The description of the resource. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -89,7 +99,6 @@ public TransactionRuleReference id(String id) { /** * The unique identifier of the resource. - * * @return id The unique identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -122,7 +131,6 @@ public TransactionRuleReference outcomeType(String outcomeType) { /** * The outcome type of the rule. - * * @return outcomeType The outcome type of the rule. */ @JsonProperty(JSON_PROPERTY_OUTCOME_TYPE) @@ -155,7 +163,6 @@ public TransactionRuleReference reference(String reference) { /** * The reference for the resource. - * * @return reference The reference for the resource. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -176,11 +183,9 @@ public void setReference(String reference) { } /** - * The transaction score determined by the rule. Returned only when `outcomeType` is - * **scoreBased**. + * The transaction score determined by the rule. Returned only when `outcomeType` is **scoreBased**. * - * @param score The transaction score determined by the rule. Returned only when - * `outcomeType` is **scoreBased**. + * @param score The transaction score determined by the rule. Returned only when `outcomeType` is **scoreBased**. * @return the current {@code TransactionRuleReference} instance, allowing for method chaining */ public TransactionRuleReference score(Integer score) { @@ -189,11 +194,8 @@ public TransactionRuleReference score(Integer score) { } /** - * The transaction score determined by the rule. Returned only when `outcomeType` is - * **scoreBased**. - * - * @return score The transaction score determined by the rule. Returned only when - * `outcomeType` is **scoreBased**. + * The transaction score determined by the rule. Returned only when `outcomeType` is **scoreBased**. + * @return score The transaction score determined by the rule. Returned only when `outcomeType` is **scoreBased**. */ @JsonProperty(JSON_PROPERTY_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -202,11 +204,9 @@ public Integer getScore() { } /** - * The transaction score determined by the rule. Returned only when `outcomeType` is - * **scoreBased**. + * The transaction score determined by the rule. Returned only when `outcomeType` is **scoreBased**. * - * @param score The transaction score determined by the rule. Returned only when - * `outcomeType` is **scoreBased**. + * @param score The transaction score determined by the rule. Returned only when `outcomeType` is **scoreBased**. */ @JsonProperty(JSON_PROPERTY_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,7 +214,9 @@ public void setScore(Integer score) { this.score = score; } - /** Return true if this TransactionRuleReference object is equal to o. */ + /** + * Return true if this TransactionRuleReference object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -224,11 +226,11 @@ public boolean equals(Object o) { return false; } TransactionRuleReference transactionRuleReference = (TransactionRuleReference) o; - return Objects.equals(this.description, transactionRuleReference.description) - && Objects.equals(this.id, transactionRuleReference.id) - && Objects.equals(this.outcomeType, transactionRuleReference.outcomeType) - && Objects.equals(this.reference, transactionRuleReference.reference) - && Objects.equals(this.score, transactionRuleReference.score); + return Objects.equals(this.description, transactionRuleReference.description) && + Objects.equals(this.id, transactionRuleReference.id) && + Objects.equals(this.outcomeType, transactionRuleReference.outcomeType) && + Objects.equals(this.reference, transactionRuleReference.reference) && + Objects.equals(this.score, transactionRuleReference.score); } @Override @@ -250,7 +252,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -259,24 +262,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransactionRuleReference given an JSON string * * @param jsonString JSON string * @return An instance of TransactionRuleReference - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionRuleReference + * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionRuleReference */ - public static TransactionRuleReference fromJson(String jsonString) - throws JsonProcessingException { + public static TransactionRuleReference fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionRuleReference.class); } - - /** - * Convert an instance of TransactionRuleReference to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransactionRuleReference to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransactionRuleSource.java b/src/main/java/com/adyen/model/transferwebhooks/TransactionRuleSource.java index 73cab0fca..b658fc674 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransactionRuleSource.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransactionRuleSource.java @@ -2,26 +2,36 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TransactionRuleSource */ + +/** + * TransactionRuleSource + */ @JsonPropertyOrder({ TransactionRuleSource.JSON_PROPERTY_ID, TransactionRuleSource.JSON_PROPERTY_TYPE }) + public class TransactionRuleSource { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -29,7 +39,8 @@ public class TransactionRuleSource { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public TransactionRuleSource() {} + public TransactionRuleSource() { + } /** * ID of the resource, when applicable. @@ -44,7 +55,6 @@ public TransactionRuleSource id(String id) { /** * ID of the resource, when applicable. - * * @return id ID of the resource, when applicable. */ @JsonProperty(JSON_PROPERTY_ID) @@ -65,15 +75,9 @@ public void setId(String id) { } /** - * Indicates the type of resource for which the transaction rule is defined. Possible values: * - * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * - * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule - * imposed by Adyen. + * Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. * - * @param type Indicates the type of resource for which the transaction rule is defined. Possible - * values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * - * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide - * rule imposed by Adyen. + * @param type Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. * @return the current {@code TransactionRuleSource} instance, allowing for method chaining */ public TransactionRuleSource type(String type) { @@ -82,15 +86,8 @@ public TransactionRuleSource type(String type) { } /** - * Indicates the type of resource for which the transaction rule is defined. Possible values: * - * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * - * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule - * imposed by Adyen. - * - * @return type Indicates the type of resource for which the transaction rule is defined. Possible - * values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * - * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide - * rule imposed by Adyen. + * Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. + * @return type Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,15 +96,9 @@ public String getType() { } /** - * Indicates the type of resource for which the transaction rule is defined. Possible values: * - * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * - * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule - * imposed by Adyen. + * Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. * - * @param type Indicates the type of resource for which the transaction rule is defined. Possible - * values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * - * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide - * rule imposed by Adyen. + * @param type Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,7 +106,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this TransactionRuleSource object is equal to o. */ + /** + * Return true if this TransactionRuleSource object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -125,8 +118,8 @@ public boolean equals(Object o) { return false; } TransactionRuleSource transactionRuleSource = (TransactionRuleSource) o; - return Objects.equals(this.id, transactionRuleSource.id) - && Objects.equals(this.type, transactionRuleSource.type); + return Objects.equals(this.id, transactionRuleSource.id) && + Objects.equals(this.type, transactionRuleSource.type); } @Override @@ -145,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -154,23 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransactionRuleSource given an JSON string * * @param jsonString JSON string * @return An instance of TransactionRuleSource - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionRuleSource + * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionRuleSource */ public static TransactionRuleSource fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionRuleSource.class); } - - /** - * Convert an instance of TransactionRuleSource to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransactionRuleSource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransactionRulesResult.java b/src/main/java/com/adyen/model/transferwebhooks/TransactionRulesResult.java index 8a6be6073..466fe6897 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransactionRulesResult.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransactionRulesResult.java @@ -2,30 +2,41 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transferwebhooks.TransactionEventViolation; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** TransactionRulesResult */ +/** + * TransactionRulesResult + */ @JsonPropertyOrder({ TransactionRulesResult.JSON_PROPERTY_ADVICE, TransactionRulesResult.JSON_PROPERTY_ALL_HARD_BLOCK_RULES_PASSED, TransactionRulesResult.JSON_PROPERTY_SCORE, TransactionRulesResult.JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES }) + public class TransactionRulesResult { public static final String JSON_PROPERTY_ADVICE = "advice"; private String advice; @@ -36,11 +47,11 @@ public class TransactionRulesResult { public static final String JSON_PROPERTY_SCORE = "score"; private Integer score; - public static final String JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES = - "triggeredTransactionRules"; + public static final String JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES = "triggeredTransactionRules"; private List triggeredTransactionRules; - public TransactionRulesResult() {} + public TransactionRulesResult() { + } /** * The advice given by the Risk analysis. @@ -55,7 +66,6 @@ public TransactionRulesResult advice(String advice) { /** * The advice given by the Risk analysis. - * * @return advice The advice given by the Risk analysis. */ @JsonProperty(JSON_PROPERTY_ADVICE) @@ -78,8 +88,7 @@ public void setAdvice(String advice) { /** * Indicates whether the transaction passed the evaluation for all hardblock rules * - * @param allHardBlockRulesPassed Indicates whether the transaction passed the evaluation for all - * hardblock rules + * @param allHardBlockRulesPassed Indicates whether the transaction passed the evaluation for all hardblock rules * @return the current {@code TransactionRulesResult} instance, allowing for method chaining */ public TransactionRulesResult allHardBlockRulesPassed(Boolean allHardBlockRulesPassed) { @@ -89,9 +98,7 @@ public TransactionRulesResult allHardBlockRulesPassed(Boolean allHardBlockRulesP /** * Indicates whether the transaction passed the evaluation for all hardblock rules - * - * @return allHardBlockRulesPassed Indicates whether the transaction passed the evaluation for all - * hardblock rules + * @return allHardBlockRulesPassed Indicates whether the transaction passed the evaluation for all hardblock rules */ @JsonProperty(JSON_PROPERTY_ALL_HARD_BLOCK_RULES_PASSED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,8 +109,7 @@ public Boolean getAllHardBlockRulesPassed() { /** * Indicates whether the transaction passed the evaluation for all hardblock rules * - * @param allHardBlockRulesPassed Indicates whether the transaction passed the evaluation for all - * hardblock rules + * @param allHardBlockRulesPassed Indicates whether the transaction passed the evaluation for all hardblock rules */ @JsonProperty(JSON_PROPERTY_ALL_HARD_BLOCK_RULES_PASSED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,7 +130,6 @@ public TransactionRulesResult score(Integer score) { /** * The score of the Risk analysis. - * * @return score The score of the Risk analysis. */ @JsonProperty(JSON_PROPERTY_SCORE) @@ -147,18 +152,15 @@ public void setScore(Integer score) { /** * Array containing all the transaction rules that the transaction triggered. * - * @param triggeredTransactionRules Array containing all the transaction rules that the - * transaction triggered. + * @param triggeredTransactionRules Array containing all the transaction rules that the transaction triggered. * @return the current {@code TransactionRulesResult} instance, allowing for method chaining */ - public TransactionRulesResult triggeredTransactionRules( - List triggeredTransactionRules) { + public TransactionRulesResult triggeredTransactionRules(List triggeredTransactionRules) { this.triggeredTransactionRules = triggeredTransactionRules; return this; } - public TransactionRulesResult addTriggeredTransactionRulesItem( - TransactionEventViolation triggeredTransactionRulesItem) { + public TransactionRulesResult addTriggeredTransactionRulesItem(TransactionEventViolation triggeredTransactionRulesItem) { if (this.triggeredTransactionRules == null) { this.triggeredTransactionRules = new ArrayList<>(); } @@ -168,9 +170,7 @@ public TransactionRulesResult addTriggeredTransactionRulesItem( /** * Array containing all the transaction rules that the transaction triggered. - * - * @return triggeredTransactionRules Array containing all the transaction rules that the - * transaction triggered. + * @return triggeredTransactionRules Array containing all the transaction rules that the transaction triggered. */ @JsonProperty(JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,17 +181,17 @@ public List getTriggeredTransactionRules() { /** * Array containing all the transaction rules that the transaction triggered. * - * @param triggeredTransactionRules Array containing all the transaction rules that the - * transaction triggered. + * @param triggeredTransactionRules Array containing all the transaction rules that the transaction triggered. */ @JsonProperty(JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTriggeredTransactionRules( - List triggeredTransactionRules) { + public void setTriggeredTransactionRules(List triggeredTransactionRules) { this.triggeredTransactionRules = triggeredTransactionRules; } - /** Return true if this TransactionRulesResult object is equal to o. */ + /** + * Return true if this TransactionRulesResult object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -201,12 +201,10 @@ public boolean equals(Object o) { return false; } TransactionRulesResult transactionRulesResult = (TransactionRulesResult) o; - return Objects.equals(this.advice, transactionRulesResult.advice) - && Objects.equals( - this.allHardBlockRulesPassed, transactionRulesResult.allHardBlockRulesPassed) - && Objects.equals(this.score, transactionRulesResult.score) - && Objects.equals( - this.triggeredTransactionRules, transactionRulesResult.triggeredTransactionRules); + return Objects.equals(this.advice, transactionRulesResult.advice) && + Objects.equals(this.allHardBlockRulesPassed, transactionRulesResult.allHardBlockRulesPassed) && + Objects.equals(this.score, transactionRulesResult.score) && + Objects.equals(this.triggeredTransactionRules, transactionRulesResult.triggeredTransactionRules); } @Override @@ -219,19 +217,16 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TransactionRulesResult {\n"); sb.append(" advice: ").append(toIndentedString(advice)).append("\n"); - sb.append(" allHardBlockRulesPassed: ") - .append(toIndentedString(allHardBlockRulesPassed)) - .append("\n"); + sb.append(" allHardBlockRulesPassed: ").append(toIndentedString(allHardBlockRulesPassed)).append("\n"); sb.append(" score: ").append(toIndentedString(score)).append("\n"); - sb.append(" triggeredTransactionRules: ") - .append(toIndentedString(triggeredTransactionRules)) - .append("\n"); + sb.append(" triggeredTransactionRules: ").append(toIndentedString(triggeredTransactionRules)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -240,23 +235,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransactionRulesResult given an JSON string * * @param jsonString JSON string * @return An instance of TransactionRulesResult - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionRulesResult + * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionRulesResult */ public static TransactionRulesResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionRulesResult.class); } - - /** - * Convert an instance of TransactionRulesResult to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransactionRulesResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferData.java b/src/main/java/com/adyen/model/transferwebhooks/TransferData.java index 5fc6b8a7f..dccb11ed1 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferData.java @@ -2,29 +2,47 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transferwebhooks.Amount; +import com.adyen.model.transferwebhooks.BalanceMutation; +import com.adyen.model.transferwebhooks.DirectDebitInformation; +import com.adyen.model.transferwebhooks.ExecutionDate; +import com.adyen.model.transferwebhooks.ExternalReason; +import com.adyen.model.transferwebhooks.PaymentInstrument; +import com.adyen.model.transferwebhooks.ResourceReference; +import com.adyen.model.transferwebhooks.TransactionRulesResult; +import com.adyen.model.transferwebhooks.TransferDataCategoryData; +import com.adyen.model.transferwebhooks.TransferDataTracking; +import com.adyen.model.transferwebhooks.TransferEvent; +import com.adyen.model.transferwebhooks.TransferNotificationCounterParty; +import com.adyen.model.transferwebhooks.TransferReview; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** TransferData */ + +/** + * TransferData + */ @JsonPropertyOrder({ TransferData.JSON_PROPERTY_ACCOUNT_HOLDER, TransferData.JSON_PROPERTY_AMOUNT, @@ -56,6 +74,7 @@ TransferData.JSON_PROPERTY_TYPE, TransferData.JSON_PROPERTY_UPDATED_AT }) + public class TransferData { public static final String JSON_PROPERTY_ACCOUNT_HOLDER = "accountHolder"; private ResourceReference accountHolder; @@ -73,16 +92,10 @@ public class TransferData { private List balances; /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a - * transfer between [balance - * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - - * **platformPayment**: funds movements related to payments that are acquired for your users. - - * **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. */ public enum CategoryEnum { + BANK(String.valueOf("bank")), CARD(String.valueOf("card")), @@ -100,7 +113,7 @@ public enum CategoryEnum { private String value; CategoryEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -121,11 +134,7 @@ public static CategoryEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "CategoryEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(CategoryEnum.values())); + LOG.warning("CategoryEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CategoryEnum.values())); return null; } } @@ -152,8 +161,11 @@ public static CategoryEnum fromValue(String value) { public static final String JSON_PROPERTY_DIRECT_DEBIT_INFORMATION = "directDebitInformation"; private DirectDebitInformation directDebitInformation; - /** The direction of the transfer. Possible values: **incoming**, **outgoing**. */ + /** + * The direction of the transfer. Possible values: **incoming**, **outgoing**. + */ public enum DirectionEnum { + INCOMING(String.valueOf("incoming")), OUTGOING(String.valueOf("outgoing")); @@ -163,7 +175,7 @@ public enum DirectionEnum { private String value; DirectionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -184,11 +196,7 @@ public static DirectionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "DirectionEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(DirectionEnum.values())); + LOG.warning("DirectionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(DirectionEnum.values())); return null; } } @@ -214,8 +222,11 @@ public static DirectionEnum fromValue(String value) { public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT = "paymentInstrument"; private PaymentInstrument paymentInstrument; - /** Additional information about the status of the transfer. */ + /** + * Additional information about the status of the transfer. + */ public enum ReasonEnum { + ACCOUNTHIERARCHYNOTACTIVE(String.valueOf("accountHierarchyNotActive")), AMOUNTLIMITEXCEEDED(String.valueOf("amountLimitExceeded")), @@ -224,8 +235,7 @@ public enum ReasonEnum { APPROVED(String.valueOf("approved")), - BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE( - String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), + BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE(String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), COUNTERPARTYACCOUNTBLOCKED(String.valueOf("counterpartyAccountBlocked")), @@ -272,7 +282,7 @@ public enum ReasonEnum { private String value; ReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -293,11 +303,7 @@ public static ReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ReasonEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ReasonEnum.values())); + LOG.warning("ReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ReasonEnum.values())); return null; } } @@ -318,13 +324,10 @@ public static ReasonEnum fromValue(String value) { private Integer sequenceNumber; /** - * The result of the transfer. For example: - **received**: an outgoing transfer request is - * created. - **authorised**: the transfer request is authorized and the funds are reserved. - - * **booked**: the funds are deducted from your user's balance account. - **failed**: the - * transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned - * by the counterparty's bank. + * The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. */ public enum StatusEnum { + APPROVALPENDING(String.valueOf("approvalPending")), ATMWITHDRAWAL(String.valueOf("atmWithdrawal")), @@ -464,7 +467,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -485,11 +488,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -504,10 +503,10 @@ public static StatusEnum fromValue(String value) { private TransactionRulesResult transactionRulesResult; /** - * The type of transfer or transaction. For example, **refund**, **payment**, - * **internalTransfer**, **bankTransfer**. + * The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. */ public enum TypeEnum { + PAYMENT(String.valueOf("payment")), CAPTURE(String.valueOf("capture")), @@ -589,7 +588,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -610,11 +609,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -625,12 +620,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt"; private OffsetDateTime updatedAt; - public TransferData() {} + public TransferData() { + } /** * accountHolder * - * @param accountHolder + * @param accountHolder * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData accountHolder(ResourceReference accountHolder) { @@ -640,8 +636,7 @@ public TransferData accountHolder(ResourceReference accountHolder) { /** * Get accountHolder - * - * @return accountHolder + * @return accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -652,7 +647,7 @@ public ResourceReference getAccountHolder() { /** * accountHolder * - * @param accountHolder + * @param accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -663,7 +658,7 @@ public void setAccountHolder(ResourceReference accountHolder) { /** * amount * - * @param amount + * @param amount * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData amount(Amount amount) { @@ -673,8 +668,7 @@ public TransferData amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -685,7 +679,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -696,7 +690,7 @@ public void setAmount(Amount amount) { /** * balanceAccount * - * @param balanceAccount + * @param balanceAccount * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData balanceAccount(ResourceReference balanceAccount) { @@ -706,8 +700,7 @@ public TransferData balanceAccount(ResourceReference balanceAccount) { /** * Get balanceAccount - * - * @return balanceAccount + * @return balanceAccount */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -718,7 +711,7 @@ public ResourceReference getBalanceAccount() { /** * balanceAccount * - * @param balanceAccount + * @param balanceAccount */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -739,7 +732,6 @@ public TransferData balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. - * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -780,7 +772,6 @@ public TransferData addBalancesItem(BalanceMutation balancesItem) { /** * The list of the latest balance statuses in the transfer. - * * @return balances The list of the latest balance statuses in the transfer. */ @JsonProperty(JSON_PROPERTY_BALANCES) @@ -801,24 +792,9 @@ public void setBalances(List balances) { } /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a - * transfer between [balance - * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - - * **platformPayment**: funds movements related to payments that are acquired for your users. - - * **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. * - * @param category The category of the transfer. Possible values: - **bank**: a transfer involving - * a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a - * transfer between [balance - * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - - * **platformPayment**: funds movements related to payments that are acquired for your users. - * - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * @param category The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData category(CategoryEnum category) { @@ -827,24 +803,8 @@ public TransferData category(CategoryEnum category) { } /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a - * transfer between [balance - * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - - * **platformPayment**: funds movements related to payments that are acquired for your users. - - * **topUp**: an incoming transfer initiated by your user to top up their balance account. - * - * @return category The category of the transfer. Possible values: - **bank**: a transfer - * involving a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a - * transfer between [balance - * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - - * **platformPayment**: funds movements related to payments that are acquired for your users. - * - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * @return category The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -853,24 +813,9 @@ public CategoryEnum getCategory() { } /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a - * transfer between [balance - * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - - * **platformPayment**: funds movements related to payments that are acquired for your users. - - * **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. * - * @param category The category of the transfer. Possible values: - **bank**: a transfer involving - * a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a - * transfer between [balance - * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - - * **platformPayment**: funds movements related to payments that are acquired for your users. - * - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * @param category The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -881,7 +826,7 @@ public void setCategory(CategoryEnum category) { /** * categoryData * - * @param categoryData + * @param categoryData * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData categoryData(TransferDataCategoryData categoryData) { @@ -891,8 +836,7 @@ public TransferData categoryData(TransferDataCategoryData categoryData) { /** * Get categoryData - * - * @return categoryData + * @return categoryData */ @JsonProperty(JSON_PROPERTY_CATEGORY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -903,7 +847,7 @@ public TransferDataCategoryData getCategoryData() { /** * categoryData * - * @param categoryData + * @param categoryData */ @JsonProperty(JSON_PROPERTY_CATEGORY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -914,7 +858,7 @@ public void setCategoryData(TransferDataCategoryData categoryData) { /** * counterparty * - * @param counterparty + * @param counterparty * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData counterparty(TransferNotificationCounterParty counterparty) { @@ -924,8 +868,7 @@ public TransferData counterparty(TransferNotificationCounterParty counterparty) /** * Get counterparty - * - * @return counterparty + * @return counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -936,7 +879,7 @@ public TransferNotificationCounterParty getCounterparty() { /** * counterparty * - * @param counterparty + * @param counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -945,11 +888,9 @@ public void setCounterparty(TransferNotificationCounterParty counterparty) { } /** - * The date and time when the transfer was created, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. * - * @param createdAt The date and time when the transfer was created, in ISO 8601 extended format. - * For example, **2020-12-18T10:15:30+01:00**. + * @param createdAt The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData createdAt(OffsetDateTime createdAt) { @@ -958,11 +899,8 @@ public TransferData createdAt(OffsetDateTime createdAt) { } /** - * The date and time when the transfer was created, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. - * - * @return createdAt The date and time when the transfer was created, in ISO 8601 extended format. - * For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * @return createdAt The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -971,11 +909,9 @@ public OffsetDateTime getCreatedAt() { } /** - * The date and time when the transfer was created, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. * - * @param createdAt The date and time when the transfer was created, in ISO 8601 extended format. - * For example, **2020-12-18T10:15:30+01:00**. + * @param createdAt The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -984,13 +920,13 @@ public void setCreatedAt(OffsetDateTime createdAt) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. * @return the current {@code TransferData} instance, allowing for method chaining - * @deprecated since Transfer webhooks v3 Use createdAt or updatedAt + * + * @deprecated since Transfer webhooks v3 + * Use createdAt or updatedAt */ @Deprecated // deprecated since Transfer webhooks v3: Use createdAt or updatedAt public TransferData creationDate(OffsetDateTime creationDate) { @@ -999,11 +935,8 @@ public TransferData creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. - * - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. * @deprecated // deprecated since Transfer webhooks v3: Use createdAt or updatedAt */ @Deprecated // deprecated since Transfer webhooks v3: Use createdAt or updatedAt @@ -1014,12 +947,12 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. - * @deprecated since Transfer webhooks v3 Use createdAt or updatedAt + * @deprecated since Transfer webhooks v3 + * Use createdAt or updatedAt */ @Deprecated // deprecated since Transfer webhooks v3: Use createdAt or updatedAt @JsonProperty(JSON_PROPERTY_CREATION_DATE) @@ -1029,17 +962,9 @@ public void setCreationDate(OffsetDateTime creationDate) { } /** - * Your description for the transfer. It is used by most banks as the transfer description. We - * recommend sending a maximum of 140 characters, otherwise the description may be truncated. - * Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported - * characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] - * & $ % # @** **~ = + - _ ' \" ! ?** + * Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** * - * @param description Your description for the transfer. It is used by most banks as the transfer - * description. We recommend sending a maximum of 140 characters, otherwise the description - * may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + - * Space** Supported characters for **regular** and **fast** transfers to a US counterparty: - * **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * @param description Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData description(String description) { @@ -1048,17 +973,8 @@ public TransferData description(String description) { } /** - * Your description for the transfer. It is used by most banks as the transfer description. We - * recommend sending a maximum of 140 characters, otherwise the description may be truncated. - * Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported - * characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] - * & $ % # @** **~ = + - _ ' \" ! ?** - * - * @return description Your description for the transfer. It is used by most banks as the transfer - * description. We recommend sending a maximum of 140 characters, otherwise the description - * may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + - * Space** Supported characters for **regular** and **fast** transfers to a US counterparty: - * **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * @return description Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1067,17 +983,9 @@ public String getDescription() { } /** - * Your description for the transfer. It is used by most banks as the transfer description. We - * recommend sending a maximum of 140 characters, otherwise the description may be truncated. - * Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported - * characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] - * & $ % # @** **~ = + - _ ' \" ! ?** + * Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** * - * @param description Your description for the transfer. It is used by most banks as the transfer - * description. We recommend sending a maximum of 140 characters, otherwise the description - * may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + - * Space** Supported characters for **regular** and **fast** transfers to a US counterparty: - * **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * @param description Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1088,7 +996,7 @@ public void setDescription(String description) { /** * directDebitInformation * - * @param directDebitInformation + * @param directDebitInformation * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData directDebitInformation(DirectDebitInformation directDebitInformation) { @@ -1098,8 +1006,7 @@ public TransferData directDebitInformation(DirectDebitInformation directDebitInf /** * Get directDebitInformation - * - * @return directDebitInformation + * @return directDebitInformation */ @JsonProperty(JSON_PROPERTY_DIRECT_DEBIT_INFORMATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1110,7 +1017,7 @@ public DirectDebitInformation getDirectDebitInformation() { /** * directDebitInformation * - * @param directDebitInformation + * @param directDebitInformation */ @JsonProperty(JSON_PROPERTY_DIRECT_DEBIT_INFORMATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1119,9 +1026,9 @@ public void setDirectDebitInformation(DirectDebitInformation directDebitInformat } /** - * The direction of the transfer. Possible values: **incoming**, **outgoing**. + * The direction of the transfer. Possible values: **incoming**, **outgoing**. * - * @param direction The direction of the transfer. Possible values: **incoming**, **outgoing**. + * @param direction The direction of the transfer. Possible values: **incoming**, **outgoing**. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData direction(DirectionEnum direction) { @@ -1130,9 +1037,8 @@ public TransferData direction(DirectionEnum direction) { } /** - * The direction of the transfer. Possible values: **incoming**, **outgoing**. - * - * @return direction The direction of the transfer. Possible values: **incoming**, **outgoing**. + * The direction of the transfer. Possible values: **incoming**, **outgoing**. + * @return direction The direction of the transfer. Possible values: **incoming**, **outgoing**. */ @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1141,9 +1047,9 @@ public DirectionEnum getDirection() { } /** - * The direction of the transfer. Possible values: **incoming**, **outgoing**. + * The direction of the transfer. Possible values: **incoming**, **outgoing**. * - * @param direction The direction of the transfer. Possible values: **incoming**, **outgoing**. + * @param direction The direction of the transfer. Possible values: **incoming**, **outgoing**. */ @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1152,11 +1058,9 @@ public void setDirection(DirectionEnum direction) { } /** - * The unique identifier of the latest transfer event. Included only when the `category` - * is **issuedCard**. + * The unique identifier of the latest transfer event. Included only when the `category` is **issuedCard**. * - * @param eventId The unique identifier of the latest transfer event. Included only when the - * `category` is **issuedCard**. + * @param eventId The unique identifier of the latest transfer event. Included only when the `category` is **issuedCard**. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData eventId(String eventId) { @@ -1165,11 +1069,8 @@ public TransferData eventId(String eventId) { } /** - * The unique identifier of the latest transfer event. Included only when the `category` - * is **issuedCard**. - * - * @return eventId The unique identifier of the latest transfer event. Included only when the - * `category` is **issuedCard**. + * The unique identifier of the latest transfer event. Included only when the `category` is **issuedCard**. + * @return eventId The unique identifier of the latest transfer event. Included only when the `category` is **issuedCard**. */ @JsonProperty(JSON_PROPERTY_EVENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1178,11 +1079,9 @@ public String getEventId() { } /** - * The unique identifier of the latest transfer event. Included only when the `category` - * is **issuedCard**. + * The unique identifier of the latest transfer event. Included only when the `category` is **issuedCard**. * - * @param eventId The unique identifier of the latest transfer event. Included only when the - * `category` is **issuedCard**. + * @param eventId The unique identifier of the latest transfer event. Included only when the `category` is **issuedCard**. */ @JsonProperty(JSON_PROPERTY_EVENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1211,7 +1110,6 @@ public TransferData addEventsItem(TransferEvent eventsItem) { /** * The list of events leading up to the current status of the transfer. - * * @return events The list of events leading up to the current status of the transfer. */ @JsonProperty(JSON_PROPERTY_EVENTS) @@ -1234,7 +1132,7 @@ public void setEvents(List events) { /** * executionDate * - * @param executionDate + * @param executionDate * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData executionDate(ExecutionDate executionDate) { @@ -1244,8 +1142,7 @@ public TransferData executionDate(ExecutionDate executionDate) { /** * Get executionDate - * - * @return executionDate + * @return executionDate */ @JsonProperty(JSON_PROPERTY_EXECUTION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1256,7 +1153,7 @@ public ExecutionDate getExecutionDate() { /** * executionDate * - * @param executionDate + * @param executionDate */ @JsonProperty(JSON_PROPERTY_EXECUTION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1267,7 +1164,7 @@ public void setExecutionDate(ExecutionDate executionDate) { /** * externalReason * - * @param externalReason + * @param externalReason * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData externalReason(ExternalReason externalReason) { @@ -1277,8 +1174,7 @@ public TransferData externalReason(ExternalReason externalReason) { /** * Get externalReason - * - * @return externalReason + * @return externalReason */ @JsonProperty(JSON_PROPERTY_EXTERNAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1289,7 +1185,7 @@ public ExternalReason getExternalReason() { /** * externalReason * - * @param externalReason + * @param externalReason */ @JsonProperty(JSON_PROPERTY_EXTERNAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1310,7 +1206,6 @@ public TransferData id(String id) { /** * The ID of the resource. - * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -1333,7 +1228,7 @@ public void setId(String id) { /** * paymentInstrument * - * @param paymentInstrument + * @param paymentInstrument * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData paymentInstrument(PaymentInstrument paymentInstrument) { @@ -1343,8 +1238,7 @@ public TransferData paymentInstrument(PaymentInstrument paymentInstrument) { /** * Get paymentInstrument - * - * @return paymentInstrument + * @return paymentInstrument */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1355,7 +1249,7 @@ public PaymentInstrument getPaymentInstrument() { /** * paymentInstrument * - * @param paymentInstrument + * @param paymentInstrument */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1376,7 +1270,6 @@ public TransferData reason(ReasonEnum reason) { /** * Additional information about the status of the transfer. - * * @return reason Additional information about the status of the transfer. */ @JsonProperty(JSON_PROPERTY_REASON) @@ -1397,11 +1290,9 @@ public void setReason(ReasonEnum reason) { } /** - * Your reference for the transfer, used internally within your platform. If you don't provide - * this in the request, Adyen generates a unique reference. + * Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. * - * @param reference Your reference for the transfer, used internally within your platform. If you - * don't provide this in the request, Adyen generates a unique reference. + * @param reference Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData reference(String reference) { @@ -1410,11 +1301,8 @@ public TransferData reference(String reference) { } /** - * Your reference for the transfer, used internally within your platform. If you don't provide - * this in the request, Adyen generates a unique reference. - * - * @return reference Your reference for the transfer, used internally within your platform. If you - * don't provide this in the request, Adyen generates a unique reference. + * Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. + * @return reference Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1423,11 +1311,9 @@ public String getReference() { } /** - * Your reference for the transfer, used internally within your platform. If you don't provide - * this in the request, Adyen generates a unique reference. + * Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. * - * @param reference Your reference for the transfer, used internally within your platform. If you - * don't provide this in the request, Adyen generates a unique reference. + * @param reference Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1436,17 +1322,9 @@ public void setReference(String reference) { } /** - * A reference that is sent to the recipient. This reference is also sent in all webhooks related - * to the transfer, so you can use it to track statuses for both the source and recipient of - * funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the - * `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring - * to an IBAN, 15 characters for others. + * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. * - * @param referenceForBeneficiary A reference that is sent to the recipient. This reference is - * also sent in all webhooks related to the transfer, so you can use it to track statuses for - * both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The - * maximum length depends on the `category`. - **internal**: 80 characters - - * **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * @param referenceForBeneficiary A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData referenceForBeneficiary(String referenceForBeneficiary) { @@ -1455,17 +1333,8 @@ public TransferData referenceForBeneficiary(String referenceForBeneficiary) { } /** - * A reference that is sent to the recipient. This reference is also sent in all webhooks related - * to the transfer, so you can use it to track statuses for both the source and recipient of - * funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the - * `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring - * to an IBAN, 15 characters for others. - * - * @return referenceForBeneficiary A reference that is sent to the recipient. This reference is - * also sent in all webhooks related to the transfer, so you can use it to track statuses for - * both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The - * maximum length depends on the `category`. - **internal**: 80 characters - - * **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * @return referenceForBeneficiary A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1474,17 +1343,9 @@ public String getReferenceForBeneficiary() { } /** - * A reference that is sent to the recipient. This reference is also sent in all webhooks related - * to the transfer, so you can use it to track statuses for both the source and recipient of - * funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the - * `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring - * to an IBAN, 15 characters for others. + * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. * - * @param referenceForBeneficiary A reference that is sent to the recipient. This reference is - * also sent in all webhooks related to the transfer, so you can use it to track statuses for - * both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The - * maximum length depends on the `category`. - **internal**: 80 characters - - * **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * @param referenceForBeneficiary A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1495,7 +1356,7 @@ public void setReferenceForBeneficiary(String referenceForBeneficiary) { /** * review * - * @param review + * @param review * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData review(TransferReview review) { @@ -1505,8 +1366,7 @@ public TransferData review(TransferReview review) { /** * Get review - * - * @return review + * @return review */ @JsonProperty(JSON_PROPERTY_REVIEW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1517,7 +1377,7 @@ public TransferReview getReview() { /** * review * - * @param review + * @param review */ @JsonProperty(JSON_PROPERTY_REVIEW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1526,13 +1386,9 @@ public void setReview(TransferReview review) { } /** - * The sequence number of the transfer webhook. The numbers start from 1 and increase with each - * new webhook for a specific transfer. The sequence number can help you restore the correct - * sequence of events even if they arrive out of order. + * The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. * - * @param sequenceNumber The sequence number of the transfer webhook. The numbers start from 1 and - * increase with each new webhook for a specific transfer. The sequence number can help you - * restore the correct sequence of events even if they arrive out of order. + * @param sequenceNumber The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData sequenceNumber(Integer sequenceNumber) { @@ -1541,13 +1397,8 @@ public TransferData sequenceNumber(Integer sequenceNumber) { } /** - * The sequence number of the transfer webhook. The numbers start from 1 and increase with each - * new webhook for a specific transfer. The sequence number can help you restore the correct - * sequence of events even if they arrive out of order. - * - * @return sequenceNumber The sequence number of the transfer webhook. The numbers start from 1 - * and increase with each new webhook for a specific transfer. The sequence number can help - * you restore the correct sequence of events even if they arrive out of order. + * The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. + * @return sequenceNumber The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. */ @JsonProperty(JSON_PROPERTY_SEQUENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1556,13 +1407,9 @@ public Integer getSequenceNumber() { } /** - * The sequence number of the transfer webhook. The numbers start from 1 and increase with each - * new webhook for a specific transfer. The sequence number can help you restore the correct - * sequence of events even if they arrive out of order. + * The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. * - * @param sequenceNumber The sequence number of the transfer webhook. The numbers start from 1 and - * increase with each new webhook for a specific transfer. The sequence number can help you - * restore the correct sequence of events even if they arrive out of order. + * @param sequenceNumber The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. */ @JsonProperty(JSON_PROPERTY_SEQUENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1571,17 +1418,9 @@ public void setSequenceNumber(Integer sequenceNumber) { } /** - * The result of the transfer. For example: - **received**: an outgoing transfer request is - * created. - **authorised**: the transfer request is authorized and the funds are reserved. - - * **booked**: the funds are deducted from your user's balance account. - **failed**: the - * transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned - * by the counterparty's bank. + * The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. * - * @param status The result of the transfer. For example: - **received**: an outgoing transfer - * request is created. - **authorised**: the transfer request is authorized and the funds are - * reserved. - **booked**: the funds are deducted from your user's balance account. - - * **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the - * transfer is returned by the counterparty's bank. + * @param status The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData status(StatusEnum status) { @@ -1590,17 +1429,8 @@ public TransferData status(StatusEnum status) { } /** - * The result of the transfer. For example: - **received**: an outgoing transfer request is - * created. - **authorised**: the transfer request is authorized and the funds are reserved. - - * **booked**: the funds are deducted from your user's balance account. - **failed**: the - * transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned - * by the counterparty's bank. - * - * @return status The result of the transfer. For example: - **received**: an outgoing transfer - * request is created. - **authorised**: the transfer request is authorized and the funds are - * reserved. - **booked**: the funds are deducted from your user's balance account. - - * **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the - * transfer is returned by the counterparty's bank. + * The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. + * @return status The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1609,17 +1439,9 @@ public StatusEnum getStatus() { } /** - * The result of the transfer. For example: - **received**: an outgoing transfer request is - * created. - **authorised**: the transfer request is authorized and the funds are reserved. - - * **booked**: the funds are deducted from your user's balance account. - **failed**: the - * transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned - * by the counterparty's bank. + * The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. * - * @param status The result of the transfer. For example: - **received**: an outgoing transfer - * request is created. - **authorised**: the transfer request is authorized and the funds are - * reserved. - **booked**: the funds are deducted from your user's balance account. - - * **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the - * transfer is returned by the counterparty's bank. + * @param status The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1630,7 +1452,7 @@ public void setStatus(StatusEnum status) { /** * tracking * - * @param tracking + * @param tracking * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData tracking(TransferDataTracking tracking) { @@ -1640,8 +1462,7 @@ public TransferData tracking(TransferDataTracking tracking) { /** * Get tracking - * - * @return tracking + * @return tracking */ @JsonProperty(JSON_PROPERTY_TRACKING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1652,7 +1473,7 @@ public TransferDataTracking getTracking() { /** * tracking * - * @param tracking + * @param tracking */ @JsonProperty(JSON_PROPERTY_TRACKING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1663,7 +1484,7 @@ public void setTracking(TransferDataTracking tracking) { /** * transactionRulesResult * - * @param transactionRulesResult + * @param transactionRulesResult * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData transactionRulesResult(TransactionRulesResult transactionRulesResult) { @@ -1673,8 +1494,7 @@ public TransferData transactionRulesResult(TransactionRulesResult transactionRul /** * Get transactionRulesResult - * - * @return transactionRulesResult + * @return transactionRulesResult */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULES_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1685,7 +1505,7 @@ public TransactionRulesResult getTransactionRulesResult() { /** * transactionRulesResult * - * @param transactionRulesResult + * @param transactionRulesResult */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULES_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1694,11 +1514,9 @@ public void setTransactionRulesResult(TransactionRulesResult transactionRulesRes } /** - * The type of transfer or transaction. For example, **refund**, **payment**, - * **internalTransfer**, **bankTransfer**. + * The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. * - * @param type The type of transfer or transaction. For example, **refund**, **payment**, - * **internalTransfer**, **bankTransfer**. + * @param type The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData type(TypeEnum type) { @@ -1707,11 +1525,8 @@ public TransferData type(TypeEnum type) { } /** - * The type of transfer or transaction. For example, **refund**, **payment**, - * **internalTransfer**, **bankTransfer**. - * - * @return type The type of transfer or transaction. For example, **refund**, **payment**, - * **internalTransfer**, **bankTransfer**. + * The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. + * @return type The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1720,11 +1535,9 @@ public TypeEnum getType() { } /** - * The type of transfer or transaction. For example, **refund**, **payment**, - * **internalTransfer**, **bankTransfer**. + * The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. * - * @param type The type of transfer or transaction. For example, **refund**, **payment**, - * **internalTransfer**, **bankTransfer**. + * @param type The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1733,11 +1546,9 @@ public void setType(TypeEnum type) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. * - * @param updatedAt The date and time when the event was triggered, in ISO 8601 extended format. - * For example, **2020-12-18T10:15:30+01:00**. + * @param updatedAt The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData updatedAt(OffsetDateTime updatedAt) { @@ -1746,11 +1557,8 @@ public TransferData updatedAt(OffsetDateTime updatedAt) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. - * - * @return updatedAt The date and time when the event was triggered, in ISO 8601 extended format. - * For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * @return updatedAt The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1759,11 +1567,9 @@ public OffsetDateTime getUpdatedAt() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. * - * @param updatedAt The date and time when the event was triggered, in ISO 8601 extended format. - * For example, **2020-12-18T10:15:30+01:00**. + * @param updatedAt The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1771,7 +1577,9 @@ public void setUpdatedAt(OffsetDateTime updatedAt) { this.updatedAt = updatedAt; } - /** Return true if this TransferData object is equal to o. */ + /** + * Return true if this TransferData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -1781,69 +1589,40 @@ public boolean equals(Object o) { return false; } TransferData transferData = (TransferData) o; - return Objects.equals(this.accountHolder, transferData.accountHolder) - && Objects.equals(this.amount, transferData.amount) - && Objects.equals(this.balanceAccount, transferData.balanceAccount) - && Objects.equals(this.balancePlatform, transferData.balancePlatform) - && Objects.equals(this.balances, transferData.balances) - && Objects.equals(this.category, transferData.category) - && Objects.equals(this.categoryData, transferData.categoryData) - && Objects.equals(this.counterparty, transferData.counterparty) - && Objects.equals(this.createdAt, transferData.createdAt) - && Objects.equals(this.creationDate, transferData.creationDate) - && Objects.equals(this.description, transferData.description) - && Objects.equals(this.directDebitInformation, transferData.directDebitInformation) - && Objects.equals(this.direction, transferData.direction) - && Objects.equals(this.eventId, transferData.eventId) - && Objects.equals(this.events, transferData.events) - && Objects.equals(this.executionDate, transferData.executionDate) - && Objects.equals(this.externalReason, transferData.externalReason) - && Objects.equals(this.id, transferData.id) - && Objects.equals(this.paymentInstrument, transferData.paymentInstrument) - && Objects.equals(this.reason, transferData.reason) - && Objects.equals(this.reference, transferData.reference) - && Objects.equals(this.referenceForBeneficiary, transferData.referenceForBeneficiary) - && Objects.equals(this.review, transferData.review) - && Objects.equals(this.sequenceNumber, transferData.sequenceNumber) - && Objects.equals(this.status, transferData.status) - && Objects.equals(this.tracking, transferData.tracking) - && Objects.equals(this.transactionRulesResult, transferData.transactionRulesResult) - && Objects.equals(this.type, transferData.type) - && Objects.equals(this.updatedAt, transferData.updatedAt); + return Objects.equals(this.accountHolder, transferData.accountHolder) && + Objects.equals(this.amount, transferData.amount) && + Objects.equals(this.balanceAccount, transferData.balanceAccount) && + Objects.equals(this.balancePlatform, transferData.balancePlatform) && + Objects.equals(this.balances, transferData.balances) && + Objects.equals(this.category, transferData.category) && + Objects.equals(this.categoryData, transferData.categoryData) && + Objects.equals(this.counterparty, transferData.counterparty) && + Objects.equals(this.createdAt, transferData.createdAt) && + Objects.equals(this.creationDate, transferData.creationDate) && + Objects.equals(this.description, transferData.description) && + Objects.equals(this.directDebitInformation, transferData.directDebitInformation) && + Objects.equals(this.direction, transferData.direction) && + Objects.equals(this.eventId, transferData.eventId) && + Objects.equals(this.events, transferData.events) && + Objects.equals(this.executionDate, transferData.executionDate) && + Objects.equals(this.externalReason, transferData.externalReason) && + Objects.equals(this.id, transferData.id) && + Objects.equals(this.paymentInstrument, transferData.paymentInstrument) && + Objects.equals(this.reason, transferData.reason) && + Objects.equals(this.reference, transferData.reference) && + Objects.equals(this.referenceForBeneficiary, transferData.referenceForBeneficiary) && + Objects.equals(this.review, transferData.review) && + Objects.equals(this.sequenceNumber, transferData.sequenceNumber) && + Objects.equals(this.status, transferData.status) && + Objects.equals(this.tracking, transferData.tracking) && + Objects.equals(this.transactionRulesResult, transferData.transactionRulesResult) && + Objects.equals(this.type, transferData.type) && + Objects.equals(this.updatedAt, transferData.updatedAt); } @Override public int hashCode() { - return Objects.hash( - accountHolder, - amount, - balanceAccount, - balancePlatform, - balances, - category, - categoryData, - counterparty, - createdAt, - creationDate, - description, - directDebitInformation, - direction, - eventId, - events, - executionDate, - externalReason, - id, - paymentInstrument, - reason, - reference, - referenceForBeneficiary, - review, - sequenceNumber, - status, - tracking, - transactionRulesResult, - type, - updatedAt); + return Objects.hash(accountHolder, amount, balanceAccount, balancePlatform, balances, category, categoryData, counterparty, createdAt, creationDate, description, directDebitInformation, direction, eventId, events, executionDate, externalReason, id, paymentInstrument, reason, reference, referenceForBeneficiary, review, sequenceNumber, status, tracking, transactionRulesResult, type, updatedAt); } @Override @@ -1861,9 +1640,7 @@ public String toString() { sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" directDebitInformation: ") - .append(toIndentedString(directDebitInformation)) - .append("\n"); + sb.append(" directDebitInformation: ").append(toIndentedString(directDebitInformation)).append("\n"); sb.append(" direction: ").append(toIndentedString(direction)).append("\n"); sb.append(" eventId: ").append(toIndentedString(eventId)).append("\n"); sb.append(" events: ").append(toIndentedString(events)).append("\n"); @@ -1873,16 +1650,12 @@ public String toString() { sb.append(" paymentInstrument: ").append(toIndentedString(paymentInstrument)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); - sb.append(" referenceForBeneficiary: ") - .append(toIndentedString(referenceForBeneficiary)) - .append("\n"); + sb.append(" referenceForBeneficiary: ").append(toIndentedString(referenceForBeneficiary)).append("\n"); sb.append(" review: ").append(toIndentedString(review)).append("\n"); sb.append(" sequenceNumber: ").append(toIndentedString(sequenceNumber)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" tracking: ").append(toIndentedString(tracking)).append("\n"); - sb.append(" transactionRulesResult: ") - .append(toIndentedString(transactionRulesResult)) - .append("\n"); + sb.append(" transactionRulesResult: ").append(toIndentedString(transactionRulesResult)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); sb.append("}"); @@ -1890,7 +1663,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1899,7 +1673,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransferData given an JSON string * * @param jsonString JSON string @@ -1909,12 +1683,11 @@ private String toIndentedString(Object o) { public static TransferData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferData.class); } - - /** - * Convert an instance of TransferData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransferData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferDataCategoryData.java b/src/main/java/com/adyen/model/transferwebhooks/TransferDataCategoryData.java index e8dc4fa80..1a7c96511 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferDataCategoryData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferDataCategoryData.java @@ -2,19 +2,52 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transferwebhooks.BankCategoryData; +import com.adyen.model.transferwebhooks.InternalCategoryData; +import com.adyen.model.transferwebhooks.IssuedCard; +import com.adyen.model.transferwebhooks.PlatformPayment; +import com.adyen.model.transferwebhooks.RelayedAuthorisationData; +import com.adyen.model.transferwebhooks.ThreeDSecure; +import com.adyen.model.transferwebhooks.TransferNotificationValidationFact; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + +import com.fasterxml.jackson.core.type.TypeReference; + +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.Response; +import java.io.IOException; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; + import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; +import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -24,326 +57,308 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import jakarta.ws.rs.core.GenericType; -import java.io.IOException; -import java.util.*; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashSet; -import java.util.logging.Level; -import java.util.logging.Logger; + @JsonDeserialize(using = TransferDataCategoryData.TransferDataCategoryDataDeserializer.class) @JsonSerialize(using = TransferDataCategoryData.TransferDataCategoryDataSerializer.class) public class TransferDataCategoryData extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(TransferDataCategoryData.class.getName()); + private static final Logger log = Logger.getLogger(TransferDataCategoryData.class.getName()); + + public static class TransferDataCategoryDataSerializer extends StdSerializer { + public TransferDataCategoryDataSerializer(Class t) { + super(t); + } - public static class TransferDataCategoryDataSerializer - extends StdSerializer { - public TransferDataCategoryDataSerializer(Class t) { - super(t); + public TransferDataCategoryDataSerializer() { + this(null); + } + + @Override + public void serialize(TransferDataCategoryData value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); + } } - public TransferDataCategoryDataSerializer() { - this(null); + public static class TransferDataCategoryDataDeserializer extends StdDeserializer { + public TransferDataCategoryDataDeserializer() { + this(TransferDataCategoryData.class); + } + + public TransferDataCategoryDataDeserializer(Class vc) { + super(vc); + } + + @Override + public TransferDataCategoryData deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize BankCategoryData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(BankCategoryData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(BankCategoryData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'BankCategoryData'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'BankCategoryData'", e); + } + + // deserialize InternalCategoryData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(InternalCategoryData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(InternalCategoryData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'InternalCategoryData'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'InternalCategoryData'", e); + } + + // deserialize IssuedCard + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(IssuedCard.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(IssuedCard.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'IssuedCard'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'IssuedCard'", e); + } + + // deserialize PlatformPayment + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(PlatformPayment.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PlatformPayment.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PlatformPayment'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PlatformPayment'", e); + } + + if (match == 1) { + TransferDataCategoryData ret = new TransferDataCategoryData(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException(String.format("Failed deserialization for TransferDataCategoryData: %d classes match result, expected 1", match)); + } + + /** + * Handle deserialization of the 'null' value. + */ + @Override + public TransferDataCategoryData getNullValue(DeserializationContext ctxt) throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "TransferDataCategoryData cannot be null"); + } } - @Override - public void serialize( - TransferDataCategoryData value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public TransferDataCategoryData() { + super("oneOf", Boolean.FALSE); + } + + public TransferDataCategoryData(BankCategoryData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferDataCategoryData(InternalCategoryData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferDataCategoryData(IssuedCard o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferDataCategoryData(PlatformPayment o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } - } - public static class TransferDataCategoryDataDeserializer - extends StdDeserializer { - public TransferDataCategoryDataDeserializer() { - this(TransferDataCategoryData.class); + static { + schemas.put("BankCategoryData", new GenericType() { + }); + schemas.put("InternalCategoryData", new GenericType() { + }); + schemas.put("IssuedCard", new GenericType() { + }); + schemas.put("PlatformPayment", new GenericType() { + }); + JSON.registerDescendants(TransferDataCategoryData.class, Collections.unmodifiableMap(schemas)); } - public TransferDataCategoryDataDeserializer(Class vc) { - super(vc); + @Override + public Map> getSchemas() { + return TransferDataCategoryData.schemas; } + /** + * Set the instance that matches the oneOf child schema, check + * the instance parameter is valid against the oneOf child schemas: + * BankCategoryData, InternalCategoryData, IssuedCard, PlatformPayment + * + * It could be an instance of the 'oneOf' schemas. + * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). + */ @Override - public TransferDataCategoryData deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize BankCategoryData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(BankCategoryData.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(BankCategoryData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'BankCategoryData'"); - } + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(BankCategoryData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'BankCategoryData'", e); - } - - // deserialize InternalCategoryData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(InternalCategoryData.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(InternalCategoryData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'InternalCategoryData'"); - } + + if (JSON.isInstanceOf(InternalCategoryData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'InternalCategoryData'", e); - } - - // deserialize IssuedCard - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(IssuedCard.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(IssuedCard.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'IssuedCard'"); - } + + if (JSON.isInstanceOf(IssuedCard.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'IssuedCard'", e); - } - - // deserialize PlatformPayment - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(PlatformPayment.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PlatformPayment.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PlatformPayment'"); - } + + if (JSON.isInstanceOf(PlatformPayment.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PlatformPayment'", e); - } - - if (match == 1) { - TransferDataCategoryData ret = new TransferDataCategoryData(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for TransferDataCategoryData: %d classes match result, expected 1", - match)); + + throw new RuntimeException("Invalid instance type. Must be BankCategoryData, InternalCategoryData, IssuedCard, PlatformPayment"); } - /** Handle deserialization of the 'null' value. */ + /** + * Get the actual instance, which can be the following: + * BankCategoryData, InternalCategoryData, IssuedCard, PlatformPayment + * + * @return The actual instance (BankCategoryData, InternalCategoryData, IssuedCard, PlatformPayment) + */ @Override - public TransferDataCategoryData getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "TransferDataCategoryData cannot be null"); + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `BankCategoryData`. If the actual instance is not `BankCategoryData`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `BankCategoryData` + * @throws ClassCastException if the instance is not `BankCategoryData` + */ + public BankCategoryData getBankCategoryData() throws ClassCastException { + return (BankCategoryData)super.getActualInstance(); } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public TransferDataCategoryData() { - super("oneOf", Boolean.FALSE); - } - - public TransferDataCategoryData(BankCategoryData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferDataCategoryData(InternalCategoryData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferDataCategoryData(IssuedCard o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferDataCategoryData(PlatformPayment o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("BankCategoryData", new GenericType() {}); - schemas.put("InternalCategoryData", new GenericType() {}); - schemas.put("IssuedCard", new GenericType() {}); - schemas.put("PlatformPayment", new GenericType() {}); - JSON.registerDescendants(TransferDataCategoryData.class, Collections.unmodifiableMap(schemas)); - } - - @Override - public Map> getSchemas() { - return TransferDataCategoryData.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: BankCategoryData, InternalCategoryData, IssuedCard, - * PlatformPayment - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a - * composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(BankCategoryData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + + /** + * Get the actual instance of `InternalCategoryData`. If the actual instance is not `InternalCategoryData`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `InternalCategoryData` + * @throws ClassCastException if the instance is not `InternalCategoryData` + */ + public InternalCategoryData getInternalCategoryData() throws ClassCastException { + return (InternalCategoryData)super.getActualInstance(); } - if (JSON.isInstanceOf(InternalCategoryData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `IssuedCard`. If the actual instance is not `IssuedCard`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `IssuedCard` + * @throws ClassCastException if the instance is not `IssuedCard` + */ + public IssuedCard getIssuedCard() throws ClassCastException { + return (IssuedCard)super.getActualInstance(); } - if (JSON.isInstanceOf(IssuedCard.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `PlatformPayment`. If the actual instance is not `PlatformPayment`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `PlatformPayment` + * @throws ClassCastException if the instance is not `PlatformPayment` + */ + public PlatformPayment getPlatformPayment() throws ClassCastException { + return (PlatformPayment)super.getActualInstance(); + } + + + /** + * Create an instance of TransferDataCategoryData given an JSON string + * + * @param jsonString JSON string + * @return An instance of TransferDataCategoryData + * @throws IOException if the JSON string is invalid with respect to TransferDataCategoryData + */ + public static TransferDataCategoryData fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, TransferDataCategoryData.class); } - if (JSON.isInstanceOf(PlatformPayment.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Convert an instance of TransferDataCategoryData to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); } - throw new RuntimeException( - "Invalid instance type. Must be BankCategoryData, InternalCategoryData, IssuedCard, PlatformPayment"); - } - - /** - * Get the actual instance, which can be the following: BankCategoryData, InternalCategoryData, - * IssuedCard, PlatformPayment - * - * @return The actual instance (BankCategoryData, InternalCategoryData, IssuedCard, - * PlatformPayment) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `BankCategoryData`. If the actual instance is not - * `BankCategoryData`, the ClassCastException will be thrown. - * - * @return The actual instance of `BankCategoryData` - * @throws ClassCastException if the instance is not `BankCategoryData` - */ - public BankCategoryData getBankCategoryData() throws ClassCastException { - return (BankCategoryData) super.getActualInstance(); - } - - /** - * Get the actual instance of `InternalCategoryData`. If the actual instance is not - * `InternalCategoryData`, the ClassCastException will be thrown. - * - * @return The actual instance of `InternalCategoryData` - * @throws ClassCastException if the instance is not `InternalCategoryData` - */ - public InternalCategoryData getInternalCategoryData() throws ClassCastException { - return (InternalCategoryData) super.getActualInstance(); - } - - /** - * Get the actual instance of `IssuedCard`. If the actual instance is not `IssuedCard`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `IssuedCard` - * @throws ClassCastException if the instance is not `IssuedCard` - */ - public IssuedCard getIssuedCard() throws ClassCastException { - return (IssuedCard) super.getActualInstance(); - } - - /** - * Get the actual instance of `PlatformPayment`. If the actual instance is not `PlatformPayment`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PlatformPayment` - * @throws ClassCastException if the instance is not `PlatformPayment` - */ - public PlatformPayment getPlatformPayment() throws ClassCastException { - return (PlatformPayment) super.getActualInstance(); - } - - /** - * Create an instance of TransferDataCategoryData given an JSON string - * - * @param jsonString JSON string - * @return An instance of TransferDataCategoryData - * @throws IOException if the JSON string is invalid with respect to TransferDataCategoryData - */ - public static TransferDataCategoryData fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, TransferDataCategoryData.class); - } - - /** - * Convert an instance of TransferDataCategoryData to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); - } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferDataTracking.java b/src/main/java/com/adyen/model/transferwebhooks/TransferDataTracking.java index 452eb8c73..d58975b7d 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferDataTracking.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferDataTracking.java @@ -2,19 +2,47 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transferwebhooks.ConfirmationTrackingData; +import com.adyen.model.transferwebhooks.EstimationTrackingData; +import com.adyen.model.transferwebhooks.InternalReviewTrackingData; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + +import com.fasterxml.jackson.core.type.TypeReference; + +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.Response; +import java.io.IOException; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; + import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; +import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -24,278 +52,261 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import jakarta.ws.rs.core.GenericType; -import java.io.IOException; -import java.util.*; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashSet; -import java.util.logging.Level; -import java.util.logging.Logger; + @JsonDeserialize(using = TransferDataTracking.TransferDataTrackingDeserializer.class) @JsonSerialize(using = TransferDataTracking.TransferDataTrackingSerializer.class) public class TransferDataTracking extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(TransferDataTracking.class.getName()); + private static final Logger log = Logger.getLogger(TransferDataTracking.class.getName()); + + public static class TransferDataTrackingSerializer extends StdSerializer { + public TransferDataTrackingSerializer(Class t) { + super(t); + } + + public TransferDataTrackingSerializer() { + this(null); + } + + @Override + public void serialize(TransferDataTracking value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); + } + } + + public static class TransferDataTrackingDeserializer extends StdDeserializer { + public TransferDataTrackingDeserializer() { + this(TransferDataTracking.class); + } + + public TransferDataTrackingDeserializer(Class vc) { + super(vc); + } + + @Override + public TransferDataTracking deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize ConfirmationTrackingData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(ConfirmationTrackingData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(ConfirmationTrackingData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'ConfirmationTrackingData'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'ConfirmationTrackingData'", e); + } + + // deserialize EstimationTrackingData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(EstimationTrackingData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(EstimationTrackingData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'EstimationTrackingData'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'EstimationTrackingData'", e); + } + + // deserialize InternalReviewTrackingData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(InternalReviewTrackingData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(InternalReviewTrackingData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'InternalReviewTrackingData'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'InternalReviewTrackingData'", e); + } + + if (match == 1) { + TransferDataTracking ret = new TransferDataTracking(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException(String.format("Failed deserialization for TransferDataTracking: %d classes match result, expected 1", match)); + } - public static class TransferDataTrackingSerializer extends StdSerializer { - public TransferDataTrackingSerializer(Class t) { - super(t); + /** + * Handle deserialization of the 'null' value. + */ + @Override + public TransferDataTracking getNullValue(DeserializationContext ctxt) throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "TransferDataTracking cannot be null"); + } } - public TransferDataTrackingSerializer() { - this(null); + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public TransferDataTracking() { + super("oneOf", Boolean.FALSE); } - @Override - public void serialize( - TransferDataTracking value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + public TransferDataTracking(ConfirmationTrackingData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } - } - public static class TransferDataTrackingDeserializer - extends StdDeserializer { - public TransferDataTrackingDeserializer() { - this(TransferDataTracking.class); + public TransferDataTracking(EstimationTrackingData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } - public TransferDataTrackingDeserializer(Class vc) { - super(vc); + public TransferDataTracking(InternalReviewTrackingData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } + static { + schemas.put("ConfirmationTrackingData", new GenericType() { + }); + schemas.put("EstimationTrackingData", new GenericType() { + }); + schemas.put("InternalReviewTrackingData", new GenericType() { + }); + JSON.registerDescendants(TransferDataTracking.class, Collections.unmodifiableMap(schemas)); + } + + @Override + public Map> getSchemas() { + return TransferDataTracking.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check + * the instance parameter is valid against the oneOf child schemas: + * ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData + * + * It could be an instance of the 'oneOf' schemas. + * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). + */ @Override - public TransferDataTracking deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize ConfirmationTrackingData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(ConfirmationTrackingData.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(ConfirmationTrackingData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'ConfirmationTrackingData'"); - } + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(ConfirmationTrackingData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'ConfirmationTrackingData'", e); - } - - // deserialize EstimationTrackingData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(EstimationTrackingData.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(EstimationTrackingData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'EstimationTrackingData'"); - } + + if (JSON.isInstanceOf(EstimationTrackingData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'EstimationTrackingData'", e); - } - - // deserialize InternalReviewTrackingData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(InternalReviewTrackingData.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(InternalReviewTrackingData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'InternalReviewTrackingData'"); - } + + if (JSON.isInstanceOf(InternalReviewTrackingData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'InternalReviewTrackingData'", e); - } - - if (match == 1) { - TransferDataTracking ret = new TransferDataTracking(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for TransferDataTracking: %d classes match result, expected 1", - match)); + + throw new RuntimeException("Invalid instance type. Must be ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData"); } - /** Handle deserialization of the 'null' value. */ + /** + * Get the actual instance, which can be the following: + * ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData + * + * @return The actual instance (ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData) + */ @Override - public TransferDataTracking getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "TransferDataTracking cannot be null"); + public Object getActualInstance() { + return super.getActualInstance(); } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public TransferDataTracking() { - super("oneOf", Boolean.FALSE); - } - - public TransferDataTracking(ConfirmationTrackingData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferDataTracking(EstimationTrackingData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferDataTracking(InternalReviewTrackingData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("ConfirmationTrackingData", new GenericType() {}); - schemas.put("EstimationTrackingData", new GenericType() {}); - schemas.put("InternalReviewTrackingData", new GenericType() {}); - JSON.registerDescendants(TransferDataTracking.class, Collections.unmodifiableMap(schemas)); - } - - @Override - public Map> getSchemas() { - return TransferDataTracking.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: ConfirmationTrackingData, EstimationTrackingData, - * InternalReviewTrackingData - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a - * composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(ConfirmationTrackingData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + + /** + * Get the actual instance of `ConfirmationTrackingData`. If the actual instance is not `ConfirmationTrackingData`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `ConfirmationTrackingData` + * @throws ClassCastException if the instance is not `ConfirmationTrackingData` + */ + public ConfirmationTrackingData getConfirmationTrackingData() throws ClassCastException { + return (ConfirmationTrackingData)super.getActualInstance(); + } + + /** + * Get the actual instance of `EstimationTrackingData`. If the actual instance is not `EstimationTrackingData`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `EstimationTrackingData` + * @throws ClassCastException if the instance is not `EstimationTrackingData` + */ + public EstimationTrackingData getEstimationTrackingData() throws ClassCastException { + return (EstimationTrackingData)super.getActualInstance(); } - if (JSON.isInstanceOf(EstimationTrackingData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `InternalReviewTrackingData`. If the actual instance is not `InternalReviewTrackingData`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `InternalReviewTrackingData` + * @throws ClassCastException if the instance is not `InternalReviewTrackingData` + */ + public InternalReviewTrackingData getInternalReviewTrackingData() throws ClassCastException { + return (InternalReviewTrackingData)super.getActualInstance(); + } + + + /** + * Create an instance of TransferDataTracking given an JSON string + * + * @param jsonString JSON string + * @return An instance of TransferDataTracking + * @throws IOException if the JSON string is invalid with respect to TransferDataTracking + */ + public static TransferDataTracking fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, TransferDataTracking.class); } - if (JSON.isInstanceOf(InternalReviewTrackingData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Convert an instance of TransferDataTracking to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); } - throw new RuntimeException( - "Invalid instance type. Must be ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData"); - } - - /** - * Get the actual instance, which can be the following: ConfirmationTrackingData, - * EstimationTrackingData, InternalReviewTrackingData - * - * @return The actual instance (ConfirmationTrackingData, EstimationTrackingData, - * InternalReviewTrackingData) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `ConfirmationTrackingData`. If the actual instance is not - * `ConfirmationTrackingData`, the ClassCastException will be thrown. - * - * @return The actual instance of `ConfirmationTrackingData` - * @throws ClassCastException if the instance is not `ConfirmationTrackingData` - */ - public ConfirmationTrackingData getConfirmationTrackingData() throws ClassCastException { - return (ConfirmationTrackingData) super.getActualInstance(); - } - - /** - * Get the actual instance of `EstimationTrackingData`. If the actual instance is not - * `EstimationTrackingData`, the ClassCastException will be thrown. - * - * @return The actual instance of `EstimationTrackingData` - * @throws ClassCastException if the instance is not `EstimationTrackingData` - */ - public EstimationTrackingData getEstimationTrackingData() throws ClassCastException { - return (EstimationTrackingData) super.getActualInstance(); - } - - /** - * Get the actual instance of `InternalReviewTrackingData`. If the actual instance is not - * `InternalReviewTrackingData`, the ClassCastException will be thrown. - * - * @return The actual instance of `InternalReviewTrackingData` - * @throws ClassCastException if the instance is not `InternalReviewTrackingData` - */ - public InternalReviewTrackingData getInternalReviewTrackingData() throws ClassCastException { - return (InternalReviewTrackingData) super.getActualInstance(); - } - - /** - * Create an instance of TransferDataTracking given an JSON string - * - * @param jsonString JSON string - * @return An instance of TransferDataTracking - * @throws IOException if the JSON string is invalid with respect to TransferDataTracking - */ - public static TransferDataTracking fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, TransferDataTracking.class); - } - - /** - * Convert an instance of TransferDataTracking to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); - } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferEvent.java b/src/main/java/com/adyen/model/transferwebhooks/TransferEvent.java index 8e00640c8..4bf9a8fcb 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferEvent.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferEvent.java @@ -2,29 +2,41 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transferwebhooks.Amount; +import com.adyen.model.transferwebhooks.AmountAdjustment; +import com.adyen.model.transferwebhooks.BalanceMutation; +import com.adyen.model.transferwebhooks.ExternalReason; +import com.adyen.model.transferwebhooks.Modification; +import com.adyen.model.transferwebhooks.TransferEventEventsDataInner; +import com.adyen.model.transferwebhooks.TransferEventTrackingData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** TransferEvent */ +/** + * TransferEvent + */ @JsonPropertyOrder({ TransferEvent.JSON_PROPERTY_AMOUNT, TransferEvent.JSON_PROPERTY_AMOUNT_ADJUSTMENTS, @@ -45,6 +57,7 @@ TransferEvent.JSON_PROPERTY_UPDATE_DATE, TransferEvent.JSON_PROPERTY_VALUE_DATE }) + public class TransferEvent { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -79,8 +92,11 @@ public class TransferEvent { public static final String JSON_PROPERTY_ORIGINAL_AMOUNT = "originalAmount"; private Amount originalAmount; - /** The reason for the transfer status. */ + /** + * The reason for the transfer status. + */ public enum ReasonEnum { + ACCOUNTHIERARCHYNOTACTIVE(String.valueOf("accountHierarchyNotActive")), AMOUNTLIMITEXCEEDED(String.valueOf("amountLimitExceeded")), @@ -89,8 +105,7 @@ public enum ReasonEnum { APPROVED(String.valueOf("approved")), - BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE( - String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), + BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE(String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), COUNTERPARTYACCOUNTBLOCKED(String.valueOf("counterpartyAccountBlocked")), @@ -137,7 +152,7 @@ public enum ReasonEnum { private String value; ReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -158,11 +173,7 @@ public static ReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ReasonEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ReasonEnum.values())); + LOG.warning("ReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ReasonEnum.values())); return null; } } @@ -170,8 +181,11 @@ public static ReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_REASON = "reason"; private ReasonEnum reason; - /** The status of the transfer event. */ + /** + * The status of the transfer event. + */ public enum StatusEnum { + APPROVALPENDING(String.valueOf("approvalPending")), ATMWITHDRAWAL(String.valueOf("atmWithdrawal")), @@ -311,7 +325,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -332,11 +346,7 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "StatusEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(StatusEnum.values())); + LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); return null; } } @@ -350,8 +360,11 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANSACTION_ID = "transactionId"; private String transactionId; - /** The type of the transfer event. Possible values: **accounting**, **tracking**. */ + /** + * The type of the transfer event. Possible values: **accounting**, **tracking**. + */ public enum TypeEnum { + ACCOUNTING(String.valueOf("accounting")), TRACKING(String.valueOf("tracking")); @@ -361,7 +374,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -382,11 +395,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -400,12 +409,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUE_DATE = "valueDate"; private OffsetDateTime valueDate; - public TransferEvent() {} + public TransferEvent() { + } /** * amount * - * @param amount + * @param amount * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent amount(Amount amount) { @@ -415,8 +425,7 @@ public TransferEvent amount(Amount amount) { /** * Get amount - * - * @return amount + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -427,7 +436,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -436,11 +445,9 @@ public void setAmount(Amount amount) { } /** - * The amount adjustments in this transfer. Only applicable for - * [issuing](https://docs.adyen.com/issuing/) integrations. + * The amount adjustments in this transfer. Only applicable for [issuing](https://docs.adyen.com/issuing/) integrations. * - * @param amountAdjustments The amount adjustments in this transfer. Only applicable for - * [issuing](https://docs.adyen.com/issuing/) integrations. + * @param amountAdjustments The amount adjustments in this transfer. Only applicable for [issuing](https://docs.adyen.com/issuing/) integrations. * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent amountAdjustments(List amountAdjustments) { @@ -457,11 +464,8 @@ public TransferEvent addAmountAdjustmentsItem(AmountAdjustment amountAdjustments } /** - * The amount adjustments in this transfer. Only applicable for - * [issuing](https://docs.adyen.com/issuing/) integrations. - * - * @return amountAdjustments The amount adjustments in this transfer. Only applicable for - * [issuing](https://docs.adyen.com/issuing/) integrations. + * The amount adjustments in this transfer. Only applicable for [issuing](https://docs.adyen.com/issuing/) integrations. + * @return amountAdjustments The amount adjustments in this transfer. Only applicable for [issuing](https://docs.adyen.com/issuing/) integrations. */ @JsonProperty(JSON_PROPERTY_AMOUNT_ADJUSTMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -470,11 +474,9 @@ public List getAmountAdjustments() { } /** - * The amount adjustments in this transfer. Only applicable for - * [issuing](https://docs.adyen.com/issuing/) integrations. + * The amount adjustments in this transfer. Only applicable for [issuing](https://docs.adyen.com/issuing/) integrations. * - * @param amountAdjustments The amount adjustments in this transfer. Only applicable for - * [issuing](https://docs.adyen.com/issuing/) integrations. + * @param amountAdjustments The amount adjustments in this transfer. Only applicable for [issuing](https://docs.adyen.com/issuing/) integrations. */ @JsonProperty(JSON_PROPERTY_AMOUNT_ADJUSTMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -495,9 +497,7 @@ public TransferEvent arn(String arn) { /** * Scheme unique arn identifier useful for tracing captures, chargebacks, refunds, etc. - * - * @return arn Scheme unique arn identifier useful for tracing captures, chargebacks, refunds, - * etc. + * @return arn Scheme unique arn identifier useful for tracing captures, chargebacks, refunds, etc. */ @JsonProperty(JSON_PROPERTY_ARN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -529,7 +529,6 @@ public TransferEvent bookingDate(OffsetDateTime bookingDate) { /** * The date when the transfer request was sent. - * * @return bookingDate The date when the transfer request was sent. */ @JsonProperty(JSON_PROPERTY_BOOKING_DATE) @@ -552,8 +551,7 @@ public void setBookingDate(OffsetDateTime bookingDate) { /** * The estimated time when the beneficiary should have access to the funds. * - * @param estimatedArrivalTime The estimated time when the beneficiary should have access to the - * funds. + * @param estimatedArrivalTime The estimated time when the beneficiary should have access to the funds. * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent estimatedArrivalTime(OffsetDateTime estimatedArrivalTime) { @@ -563,9 +561,7 @@ public TransferEvent estimatedArrivalTime(OffsetDateTime estimatedArrivalTime) { /** * The estimated time when the beneficiary should have access to the funds. - * - * @return estimatedArrivalTime The estimated time when the beneficiary should have access to the - * funds. + * @return estimatedArrivalTime The estimated time when the beneficiary should have access to the funds. */ @JsonProperty(JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -576,8 +572,7 @@ public OffsetDateTime getEstimatedArrivalTime() { /** * The estimated time when the beneficiary should have access to the funds. * - * @param estimatedArrivalTime The estimated time when the beneficiary should have access to the - * funds. + * @param estimatedArrivalTime The estimated time when the beneficiary should have access to the funds. */ @JsonProperty(JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -606,7 +601,6 @@ public TransferEvent addEventsDataItem(TransferEventEventsDataInner eventsDataIt /** * A list of event data. - * * @return eventsData A list of event data. */ @JsonProperty(JSON_PROPERTY_EVENTS_DATA) @@ -629,7 +623,7 @@ public void setEventsData(List eventsData) { /** * externalReason * - * @param externalReason + * @param externalReason * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent externalReason(ExternalReason externalReason) { @@ -639,8 +633,7 @@ public TransferEvent externalReason(ExternalReason externalReason) { /** * Get externalReason - * - * @return externalReason + * @return externalReason */ @JsonProperty(JSON_PROPERTY_EXTERNAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -651,7 +644,7 @@ public ExternalReason getExternalReason() { /** * externalReason * - * @param externalReason + * @param externalReason */ @JsonProperty(JSON_PROPERTY_EXTERNAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -672,7 +665,6 @@ public TransferEvent id(String id) { /** * The unique identifier of the transfer event. - * * @return id The unique identifier of the transfer event. */ @JsonProperty(JSON_PROPERTY_ID) @@ -695,7 +687,7 @@ public void setId(String id) { /** * modification * - * @param modification + * @param modification * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent modification(Modification modification) { @@ -705,8 +697,7 @@ public TransferEvent modification(Modification modification) { /** * Get modification - * - * @return modification + * @return modification */ @JsonProperty(JSON_PROPERTY_MODIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -717,7 +708,7 @@ public Modification getModification() { /** * modification * - * @param modification + * @param modification */ @JsonProperty(JSON_PROPERTY_MODIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -746,7 +737,6 @@ public TransferEvent addMutationsItem(BalanceMutation mutationsItem) { /** * The list of balance mutations per event. - * * @return mutations The list of balance mutations per event. */ @JsonProperty(JSON_PROPERTY_MUTATIONS) @@ -769,7 +759,7 @@ public void setMutations(List mutations) { /** * originalAmount * - * @param originalAmount + * @param originalAmount * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent originalAmount(Amount originalAmount) { @@ -779,8 +769,7 @@ public TransferEvent originalAmount(Amount originalAmount) { /** * Get originalAmount - * - * @return originalAmount + * @return originalAmount */ @JsonProperty(JSON_PROPERTY_ORIGINAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -791,7 +780,7 @@ public Amount getOriginalAmount() { /** * originalAmount * - * @param originalAmount + * @param originalAmount */ @JsonProperty(JSON_PROPERTY_ORIGINAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -812,7 +801,6 @@ public TransferEvent reason(ReasonEnum reason) { /** * The reason for the transfer status. - * * @return reason The reason for the transfer status. */ @JsonProperty(JSON_PROPERTY_REASON) @@ -845,7 +833,6 @@ public TransferEvent status(StatusEnum status) { /** * The status of the transfer event. - * * @return status The status of the transfer event. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -868,7 +855,7 @@ public void setStatus(StatusEnum status) { /** * trackingData * - * @param trackingData + * @param trackingData * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent trackingData(TransferEventTrackingData trackingData) { @@ -878,8 +865,7 @@ public TransferEvent trackingData(TransferEventTrackingData trackingData) { /** * Get trackingData - * - * @return trackingData + * @return trackingData */ @JsonProperty(JSON_PROPERTY_TRACKING_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -890,7 +876,7 @@ public TransferEventTrackingData getTrackingData() { /** * trackingData * - * @param trackingData + * @param trackingData */ @JsonProperty(JSON_PROPERTY_TRACKING_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -899,11 +885,9 @@ public void setTrackingData(TransferEventTrackingData trackingData) { } /** - * The id of the transaction that is related to this accounting event. Only sent for events of - * type **accounting** where the balance changes. + * The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes. * - * @param transactionId The id of the transaction that is related to this accounting event. Only - * sent for events of type **accounting** where the balance changes. + * @param transactionId The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes. * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent transactionId(String transactionId) { @@ -912,11 +896,8 @@ public TransferEvent transactionId(String transactionId) { } /** - * The id of the transaction that is related to this accounting event. Only sent for events of - * type **accounting** where the balance changes. - * - * @return transactionId The id of the transaction that is related to this accounting event. Only - * sent for events of type **accounting** where the balance changes. + * The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes. + * @return transactionId The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes. */ @JsonProperty(JSON_PROPERTY_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -925,11 +906,9 @@ public String getTransactionId() { } /** - * The id of the transaction that is related to this accounting event. Only sent for events of - * type **accounting** where the balance changes. + * The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes. * - * @param transactionId The id of the transaction that is related to this accounting event. Only - * sent for events of type **accounting** where the balance changes. + * @param transactionId The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes. */ @JsonProperty(JSON_PROPERTY_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -950,7 +929,6 @@ public TransferEvent type(TypeEnum type) { /** * The type of the transfer event. Possible values: **accounting**, **tracking**. - * * @return type The type of the transfer event. Possible values: **accounting**, **tracking**. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -983,7 +961,6 @@ public TransferEvent updateDate(OffsetDateTime updateDate) { /** * The date when the tracking status was updated. - * * @return updateDate The date when the tracking status was updated. */ @JsonProperty(JSON_PROPERTY_UPDATE_DATE) @@ -1004,11 +981,9 @@ public void setUpdateDate(OffsetDateTime updateDate) { } /** - * The date when the funds are expected to be deducted from or credited to the balance account. - * This date can be in either the past or future. + * The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future. * - * @param valueDate The date when the funds are expected to be deducted from or credited to the - * balance account. This date can be in either the past or future. + * @param valueDate The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future. * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent valueDate(OffsetDateTime valueDate) { @@ -1017,11 +992,8 @@ public TransferEvent valueDate(OffsetDateTime valueDate) { } /** - * The date when the funds are expected to be deducted from or credited to the balance account. - * This date can be in either the past or future. - * - * @return valueDate The date when the funds are expected to be deducted from or credited to the - * balance account. This date can be in either the past or future. + * The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future. + * @return valueDate The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future. */ @JsonProperty(JSON_PROPERTY_VALUE_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1030,11 +1002,9 @@ public OffsetDateTime getValueDate() { } /** - * The date when the funds are expected to be deducted from or credited to the balance account. - * This date can be in either the past or future. + * The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future. * - * @param valueDate The date when the funds are expected to be deducted from or credited to the - * balance account. This date can be in either the past or future. + * @param valueDate The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future. */ @JsonProperty(JSON_PROPERTY_VALUE_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1042,7 +1012,9 @@ public void setValueDate(OffsetDateTime valueDate) { this.valueDate = valueDate; } - /** Return true if this TransferEvent object is equal to o. */ + /** + * Return true if this TransferEvent object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -1052,47 +1024,29 @@ public boolean equals(Object o) { return false; } TransferEvent transferEvent = (TransferEvent) o; - return Objects.equals(this.amount, transferEvent.amount) - && Objects.equals(this.amountAdjustments, transferEvent.amountAdjustments) - && Objects.equals(this.arn, transferEvent.arn) - && Objects.equals(this.bookingDate, transferEvent.bookingDate) - && Objects.equals(this.estimatedArrivalTime, transferEvent.estimatedArrivalTime) - && Objects.equals(this.eventsData, transferEvent.eventsData) - && Objects.equals(this.externalReason, transferEvent.externalReason) - && Objects.equals(this.id, transferEvent.id) - && Objects.equals(this.modification, transferEvent.modification) - && Objects.equals(this.mutations, transferEvent.mutations) - && Objects.equals(this.originalAmount, transferEvent.originalAmount) - && Objects.equals(this.reason, transferEvent.reason) - && Objects.equals(this.status, transferEvent.status) - && Objects.equals(this.trackingData, transferEvent.trackingData) - && Objects.equals(this.transactionId, transferEvent.transactionId) - && Objects.equals(this.type, transferEvent.type) - && Objects.equals(this.updateDate, transferEvent.updateDate) - && Objects.equals(this.valueDate, transferEvent.valueDate); + return Objects.equals(this.amount, transferEvent.amount) && + Objects.equals(this.amountAdjustments, transferEvent.amountAdjustments) && + Objects.equals(this.arn, transferEvent.arn) && + Objects.equals(this.bookingDate, transferEvent.bookingDate) && + Objects.equals(this.estimatedArrivalTime, transferEvent.estimatedArrivalTime) && + Objects.equals(this.eventsData, transferEvent.eventsData) && + Objects.equals(this.externalReason, transferEvent.externalReason) && + Objects.equals(this.id, transferEvent.id) && + Objects.equals(this.modification, transferEvent.modification) && + Objects.equals(this.mutations, transferEvent.mutations) && + Objects.equals(this.originalAmount, transferEvent.originalAmount) && + Objects.equals(this.reason, transferEvent.reason) && + Objects.equals(this.status, transferEvent.status) && + Objects.equals(this.trackingData, transferEvent.trackingData) && + Objects.equals(this.transactionId, transferEvent.transactionId) && + Objects.equals(this.type, transferEvent.type) && + Objects.equals(this.updateDate, transferEvent.updateDate) && + Objects.equals(this.valueDate, transferEvent.valueDate); } @Override public int hashCode() { - return Objects.hash( - amount, - amountAdjustments, - arn, - bookingDate, - estimatedArrivalTime, - eventsData, - externalReason, - id, - modification, - mutations, - originalAmount, - reason, - status, - trackingData, - transactionId, - type, - updateDate, - valueDate); + return Objects.hash(amount, amountAdjustments, arn, bookingDate, estimatedArrivalTime, eventsData, externalReason, id, modification, mutations, originalAmount, reason, status, trackingData, transactionId, type, updateDate, valueDate); } @Override @@ -1103,9 +1057,7 @@ public String toString() { sb.append(" amountAdjustments: ").append(toIndentedString(amountAdjustments)).append("\n"); sb.append(" arn: ").append(toIndentedString(arn)).append("\n"); sb.append(" bookingDate: ").append(toIndentedString(bookingDate)).append("\n"); - sb.append(" estimatedArrivalTime: ") - .append(toIndentedString(estimatedArrivalTime)) - .append("\n"); + sb.append(" estimatedArrivalTime: ").append(toIndentedString(estimatedArrivalTime)).append("\n"); sb.append(" eventsData: ").append(toIndentedString(eventsData)).append("\n"); sb.append(" externalReason: ").append(toIndentedString(externalReason)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); @@ -1124,7 +1076,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1133,7 +1086,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransferEvent given an JSON string * * @param jsonString JSON string @@ -1143,12 +1096,11 @@ private String toIndentedString(Object o) { public static TransferEvent fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferEvent.class); } - - /** - * Convert an instance of TransferEvent to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransferEvent to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferEventEventsDataInner.java b/src/main/java/com/adyen/model/transferwebhooks/TransferEventEventsDataInner.java index 9f8c0aa2b..243074be1 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferEventEventsDataInner.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferEventEventsDataInner.java @@ -2,19 +2,49 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transferwebhooks.Airline; +import com.adyen.model.transferwebhooks.IssuingTransactionData; +import com.adyen.model.transferwebhooks.Lodging; +import com.adyen.model.transferwebhooks.MerchantPurchaseData; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + +import com.fasterxml.jackson.core.type.TypeReference; + +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.Response; +import java.io.IOException; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; + import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; +import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -24,231 +54,214 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import jakarta.ws.rs.core.GenericType; -import java.io.IOException; -import java.util.*; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashSet; -import java.util.logging.Level; -import java.util.logging.Logger; -@JsonDeserialize( - using = TransferEventEventsDataInner.TransferEventEventsDataInnerDeserializer.class) + +@JsonDeserialize(using = TransferEventEventsDataInner.TransferEventEventsDataInnerDeserializer.class) @JsonSerialize(using = TransferEventEventsDataInner.TransferEventEventsDataInnerSerializer.class) public class TransferEventEventsDataInner extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(TransferEventEventsDataInner.class.getName()); + private static final Logger log = Logger.getLogger(TransferEventEventsDataInner.class.getName()); + + public static class TransferEventEventsDataInnerSerializer extends StdSerializer { + public TransferEventEventsDataInnerSerializer(Class t) { + super(t); + } + + public TransferEventEventsDataInnerSerializer() { + this(null); + } - public static class TransferEventEventsDataInnerSerializer - extends StdSerializer { - public TransferEventEventsDataInnerSerializer(Class t) { - super(t); + @Override + public void serialize(TransferEventEventsDataInner value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); + } } - public TransferEventEventsDataInnerSerializer() { - this(null); + public static class TransferEventEventsDataInnerDeserializer extends StdDeserializer { + public TransferEventEventsDataInnerDeserializer() { + this(TransferEventEventsDataInner.class); + } + + public TransferEventEventsDataInnerDeserializer(Class vc) { + super(vc); + } + + @Override + public TransferEventEventsDataInner deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize IssuingTransactionData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(IssuingTransactionData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(IssuingTransactionData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'IssuingTransactionData'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'IssuingTransactionData'", e); + } + + // deserialize MerchantPurchaseData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(MerchantPurchaseData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(MerchantPurchaseData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'MerchantPurchaseData'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'MerchantPurchaseData'", e); + } + + if (match == 1) { + TransferEventEventsDataInner ret = new TransferEventEventsDataInner(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException(String.format("Failed deserialization for TransferEventEventsDataInner: %d classes match result, expected 1", match)); + } + + /** + * Handle deserialization of the 'null' value. + */ + @Override + public TransferEventEventsDataInner getNullValue(DeserializationContext ctxt) throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "TransferEventEventsDataInner cannot be null"); + } } - @Override - public void serialize( - TransferEventEventsDataInner value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public TransferEventEventsDataInner() { + super("oneOf", Boolean.FALSE); } - } - public static class TransferEventEventsDataInnerDeserializer - extends StdDeserializer { - public TransferEventEventsDataInnerDeserializer() { - this(TransferEventEventsDataInner.class); + public TransferEventEventsDataInner(IssuingTransactionData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } - public TransferEventEventsDataInnerDeserializer(Class vc) { - super(vc); + public TransferEventEventsDataInner(MerchantPurchaseData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("IssuingTransactionData", new GenericType() { + }); + schemas.put("MerchantPurchaseData", new GenericType() { + }); + JSON.registerDescendants(TransferEventEventsDataInner.class, Collections.unmodifiableMap(schemas)); } @Override - public TransferEventEventsDataInner deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize IssuingTransactionData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(IssuingTransactionData.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(IssuingTransactionData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'IssuingTransactionData'"); - } + public Map> getSchemas() { + return TransferEventEventsDataInner.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check + * the instance parameter is valid against the oneOf child schemas: + * IssuingTransactionData, MerchantPurchaseData + * + * It could be an instance of the 'oneOf' schemas. + * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(IssuingTransactionData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'IssuingTransactionData'", e); - } - - // deserialize MerchantPurchaseData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(MerchantPurchaseData.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(MerchantPurchaseData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'MerchantPurchaseData'"); - } + + if (JSON.isInstanceOf(MerchantPurchaseData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'MerchantPurchaseData'", e); - } - - if (match == 1) { - TransferEventEventsDataInner ret = new TransferEventEventsDataInner(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for TransferEventEventsDataInner: %d classes match result, expected 1", - match)); + + throw new RuntimeException("Invalid instance type. Must be IssuingTransactionData, MerchantPurchaseData"); } - /** Handle deserialization of the 'null' value. */ + /** + * Get the actual instance, which can be the following: + * IssuingTransactionData, MerchantPurchaseData + * + * @return The actual instance (IssuingTransactionData, MerchantPurchaseData) + */ @Override - public TransferEventEventsDataInner getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "TransferEventEventsDataInner cannot be null"); + public Object getActualInstance() { + return super.getActualInstance(); } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public TransferEventEventsDataInner() { - super("oneOf", Boolean.FALSE); - } - - public TransferEventEventsDataInner(IssuingTransactionData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferEventEventsDataInner(MerchantPurchaseData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("IssuingTransactionData", new GenericType() {}); - schemas.put("MerchantPurchaseData", new GenericType() {}); - JSON.registerDescendants( - TransferEventEventsDataInner.class, Collections.unmodifiableMap(schemas)); - } - - @Override - public Map> getSchemas() { - return TransferEventEventsDataInner.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: IssuingTransactionData, MerchantPurchaseData - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a - * composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(IssuingTransactionData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + + /** + * Get the actual instance of `IssuingTransactionData`. If the actual instance is not `IssuingTransactionData`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `IssuingTransactionData` + * @throws ClassCastException if the instance is not `IssuingTransactionData` + */ + public IssuingTransactionData getIssuingTransactionData() throws ClassCastException { + return (IssuingTransactionData)super.getActualInstance(); + } + + /** + * Get the actual instance of `MerchantPurchaseData`. If the actual instance is not `MerchantPurchaseData`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `MerchantPurchaseData` + * @throws ClassCastException if the instance is not `MerchantPurchaseData` + */ + public MerchantPurchaseData getMerchantPurchaseData() throws ClassCastException { + return (MerchantPurchaseData)super.getActualInstance(); + } + + + /** + * Create an instance of TransferEventEventsDataInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of TransferEventEventsDataInner + * @throws IOException if the JSON string is invalid with respect to TransferEventEventsDataInner + */ + public static TransferEventEventsDataInner fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, TransferEventEventsDataInner.class); } - if (JSON.isInstanceOf(MerchantPurchaseData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Convert an instance of TransferEventEventsDataInner to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); } - throw new RuntimeException( - "Invalid instance type. Must be IssuingTransactionData, MerchantPurchaseData"); - } - - /** - * Get the actual instance, which can be the following: IssuingTransactionData, - * MerchantPurchaseData - * - * @return The actual instance (IssuingTransactionData, MerchantPurchaseData) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `IssuingTransactionData`. If the actual instance is not - * `IssuingTransactionData`, the ClassCastException will be thrown. - * - * @return The actual instance of `IssuingTransactionData` - * @throws ClassCastException if the instance is not `IssuingTransactionData` - */ - public IssuingTransactionData getIssuingTransactionData() throws ClassCastException { - return (IssuingTransactionData) super.getActualInstance(); - } - - /** - * Get the actual instance of `MerchantPurchaseData`. If the actual instance is not - * `MerchantPurchaseData`, the ClassCastException will be thrown. - * - * @return The actual instance of `MerchantPurchaseData` - * @throws ClassCastException if the instance is not `MerchantPurchaseData` - */ - public MerchantPurchaseData getMerchantPurchaseData() throws ClassCastException { - return (MerchantPurchaseData) super.getActualInstance(); - } - - /** - * Create an instance of TransferEventEventsDataInner given an JSON string - * - * @param jsonString JSON string - * @return An instance of TransferEventEventsDataInner - * @throws IOException if the JSON string is invalid with respect to TransferEventEventsDataInner - */ - public static TransferEventEventsDataInner fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, TransferEventEventsDataInner.class); - } - - /** - * Convert an instance of TransferEventEventsDataInner to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); - } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferEventTrackingData.java b/src/main/java/com/adyen/model/transferwebhooks/TransferEventTrackingData.java index c775beac7..c782d6865 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferEventTrackingData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferEventTrackingData.java @@ -2,19 +2,47 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transferwebhooks.ConfirmationTrackingData; +import com.adyen.model.transferwebhooks.EstimationTrackingData; +import com.adyen.model.transferwebhooks.InternalReviewTrackingData; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + +import com.fasterxml.jackson.core.type.TypeReference; + +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.Response; +import java.io.IOException; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; + import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; +import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -24,279 +52,261 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import jakarta.ws.rs.core.GenericType; -import java.io.IOException; -import java.util.*; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashSet; -import java.util.logging.Level; -import java.util.logging.Logger; + @JsonDeserialize(using = TransferEventTrackingData.TransferEventTrackingDataDeserializer.class) @JsonSerialize(using = TransferEventTrackingData.TransferEventTrackingDataSerializer.class) public class TransferEventTrackingData extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(TransferEventTrackingData.class.getName()); + private static final Logger log = Logger.getLogger(TransferEventTrackingData.class.getName()); + + public static class TransferEventTrackingDataSerializer extends StdSerializer { + public TransferEventTrackingDataSerializer(Class t) { + super(t); + } + + public TransferEventTrackingDataSerializer() { + this(null); + } + + @Override + public void serialize(TransferEventTrackingData value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); + } + } + + public static class TransferEventTrackingDataDeserializer extends StdDeserializer { + public TransferEventTrackingDataDeserializer() { + this(TransferEventTrackingData.class); + } + + public TransferEventTrackingDataDeserializer(Class vc) { + super(vc); + } + + @Override + public TransferEventTrackingData deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize ConfirmationTrackingData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(ConfirmationTrackingData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(ConfirmationTrackingData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'ConfirmationTrackingData'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'ConfirmationTrackingData'", e); + } + + // deserialize EstimationTrackingData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(EstimationTrackingData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(EstimationTrackingData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'EstimationTrackingData'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'EstimationTrackingData'", e); + } + + // deserialize InternalReviewTrackingData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if(tree.findValue("type") != null) { + typeMatch = Arrays.stream(InternalReviewTrackingData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if(typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(InternalReviewTrackingData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'InternalReviewTrackingData'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'InternalReviewTrackingData'", e); + } + + if (match == 1) { + TransferEventTrackingData ret = new TransferEventTrackingData(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException(String.format("Failed deserialization for TransferEventTrackingData: %d classes match result, expected 1", match)); + } - public static class TransferEventTrackingDataSerializer - extends StdSerializer { - public TransferEventTrackingDataSerializer(Class t) { - super(t); + /** + * Handle deserialization of the 'null' value. + */ + @Override + public TransferEventTrackingData getNullValue(DeserializationContext ctxt) throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "TransferEventTrackingData cannot be null"); + } } - public TransferEventTrackingDataSerializer() { - this(null); + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public TransferEventTrackingData() { + super("oneOf", Boolean.FALSE); } - @Override - public void serialize( - TransferEventTrackingData value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + public TransferEventTrackingData(ConfirmationTrackingData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } - } - public static class TransferEventTrackingDataDeserializer - extends StdDeserializer { - public TransferEventTrackingDataDeserializer() { - this(TransferEventTrackingData.class); + public TransferEventTrackingData(EstimationTrackingData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } - public TransferEventTrackingDataDeserializer(Class vc) { - super(vc); + public TransferEventTrackingData(InternalReviewTrackingData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); } + static { + schemas.put("ConfirmationTrackingData", new GenericType() { + }); + schemas.put("EstimationTrackingData", new GenericType() { + }); + schemas.put("InternalReviewTrackingData", new GenericType() { + }); + JSON.registerDescendants(TransferEventTrackingData.class, Collections.unmodifiableMap(schemas)); + } + + @Override + public Map> getSchemas() { + return TransferEventTrackingData.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check + * the instance parameter is valid against the oneOf child schemas: + * ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData + * + * It could be an instance of the 'oneOf' schemas. + * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). + */ @Override - public TransferEventTrackingData deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize ConfirmationTrackingData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(ConfirmationTrackingData.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(ConfirmationTrackingData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'ConfirmationTrackingData'"); - } + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(ConfirmationTrackingData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'ConfirmationTrackingData'", e); - } - - // deserialize EstimationTrackingData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(EstimationTrackingData.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(EstimationTrackingData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'EstimationTrackingData'"); - } + + if (JSON.isInstanceOf(EstimationTrackingData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'EstimationTrackingData'", e); - } - - // deserialize InternalReviewTrackingData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if (tree.findValue("type") != null) { - typeMatch = - Arrays.stream(InternalReviewTrackingData.TypeEnum.values()) - .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(InternalReviewTrackingData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'InternalReviewTrackingData'"); - } + + if (JSON.isInstanceOf(InternalReviewTrackingData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'InternalReviewTrackingData'", e); - } - - if (match == 1) { - TransferEventTrackingData ret = new TransferEventTrackingData(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for TransferEventTrackingData: %d classes match result, expected 1", - match)); + + throw new RuntimeException("Invalid instance type. Must be ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData"); } - /** Handle deserialization of the 'null' value. */ + /** + * Get the actual instance, which can be the following: + * ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData + * + * @return The actual instance (ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData) + */ @Override - public TransferEventTrackingData getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "TransferEventTrackingData cannot be null"); + public Object getActualInstance() { + return super.getActualInstance(); } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public TransferEventTrackingData() { - super("oneOf", Boolean.FALSE); - } - - public TransferEventTrackingData(ConfirmationTrackingData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferEventTrackingData(EstimationTrackingData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferEventTrackingData(InternalReviewTrackingData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("ConfirmationTrackingData", new GenericType() {}); - schemas.put("EstimationTrackingData", new GenericType() {}); - schemas.put("InternalReviewTrackingData", new GenericType() {}); - JSON.registerDescendants(TransferEventTrackingData.class, Collections.unmodifiableMap(schemas)); - } - - @Override - public Map> getSchemas() { - return TransferEventTrackingData.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: ConfirmationTrackingData, EstimationTrackingData, - * InternalReviewTrackingData - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a - * composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(ConfirmationTrackingData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + + /** + * Get the actual instance of `ConfirmationTrackingData`. If the actual instance is not `ConfirmationTrackingData`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `ConfirmationTrackingData` + * @throws ClassCastException if the instance is not `ConfirmationTrackingData` + */ + public ConfirmationTrackingData getConfirmationTrackingData() throws ClassCastException { + return (ConfirmationTrackingData)super.getActualInstance(); + } + + /** + * Get the actual instance of `EstimationTrackingData`. If the actual instance is not `EstimationTrackingData`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `EstimationTrackingData` + * @throws ClassCastException if the instance is not `EstimationTrackingData` + */ + public EstimationTrackingData getEstimationTrackingData() throws ClassCastException { + return (EstimationTrackingData)super.getActualInstance(); } - if (JSON.isInstanceOf(EstimationTrackingData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `InternalReviewTrackingData`. If the actual instance is not `InternalReviewTrackingData`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `InternalReviewTrackingData` + * @throws ClassCastException if the instance is not `InternalReviewTrackingData` + */ + public InternalReviewTrackingData getInternalReviewTrackingData() throws ClassCastException { + return (InternalReviewTrackingData)super.getActualInstance(); + } + + + /** + * Create an instance of TransferEventTrackingData given an JSON string + * + * @param jsonString JSON string + * @return An instance of TransferEventTrackingData + * @throws IOException if the JSON string is invalid with respect to TransferEventTrackingData + */ + public static TransferEventTrackingData fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, TransferEventTrackingData.class); } - if (JSON.isInstanceOf(InternalReviewTrackingData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + /** + * Convert an instance of TransferEventTrackingData to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); } - throw new RuntimeException( - "Invalid instance type. Must be ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData"); - } - - /** - * Get the actual instance, which can be the following: ConfirmationTrackingData, - * EstimationTrackingData, InternalReviewTrackingData - * - * @return The actual instance (ConfirmationTrackingData, EstimationTrackingData, - * InternalReviewTrackingData) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `ConfirmationTrackingData`. If the actual instance is not - * `ConfirmationTrackingData`, the ClassCastException will be thrown. - * - * @return The actual instance of `ConfirmationTrackingData` - * @throws ClassCastException if the instance is not `ConfirmationTrackingData` - */ - public ConfirmationTrackingData getConfirmationTrackingData() throws ClassCastException { - return (ConfirmationTrackingData) super.getActualInstance(); - } - - /** - * Get the actual instance of `EstimationTrackingData`. If the actual instance is not - * `EstimationTrackingData`, the ClassCastException will be thrown. - * - * @return The actual instance of `EstimationTrackingData` - * @throws ClassCastException if the instance is not `EstimationTrackingData` - */ - public EstimationTrackingData getEstimationTrackingData() throws ClassCastException { - return (EstimationTrackingData) super.getActualInstance(); - } - - /** - * Get the actual instance of `InternalReviewTrackingData`. If the actual instance is not - * `InternalReviewTrackingData`, the ClassCastException will be thrown. - * - * @return The actual instance of `InternalReviewTrackingData` - * @throws ClassCastException if the instance is not `InternalReviewTrackingData` - */ - public InternalReviewTrackingData getInternalReviewTrackingData() throws ClassCastException { - return (InternalReviewTrackingData) super.getActualInstance(); - } - - /** - * Create an instance of TransferEventTrackingData given an JSON string - * - * @param jsonString JSON string - * @return An instance of TransferEventTrackingData - * @throws IOException if the JSON string is invalid with respect to TransferEventTrackingData - */ - public static TransferEventTrackingData fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, TransferEventTrackingData.class); - } - - /** - * Convert an instance of TransferEventTrackingData to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); - } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationCounterParty.java b/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationCounterParty.java index cb9c7a255..d85fe227a 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationCounterParty.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationCounterParty.java @@ -2,22 +2,34 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transferwebhooks.BankAccountV3; +import com.adyen.model.transferwebhooks.Card; +import com.adyen.model.transferwebhooks.TransferNotificationMerchantData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TransferNotificationCounterParty */ + +/** + * TransferNotificationCounterParty + */ @JsonPropertyOrder({ TransferNotificationCounterParty.JSON_PROPERTY_BALANCE_ACCOUNT_ID, TransferNotificationCounterParty.JSON_PROPERTY_BANK_ACCOUNT, @@ -25,6 +37,7 @@ TransferNotificationCounterParty.JSON_PROPERTY_MERCHANT, TransferNotificationCounterParty.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID }) + public class TransferNotificationCounterParty { public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; @@ -41,16 +54,14 @@ public class TransferNotificationCounterParty { public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_ID = "transferInstrumentId"; private String transferInstrumentId; - public TransferNotificationCounterParty() {} + public TransferNotificationCounterParty() { + } /** - * The unique identifier of the counterparty [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). * - * @param balanceAccountId The unique identifier of the counterparty [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). - * @return the current {@code TransferNotificationCounterParty} instance, allowing for method - * chaining + * @param balanceAccountId The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * @return the current {@code TransferNotificationCounterParty} instance, allowing for method chaining */ public TransferNotificationCounterParty balanceAccountId(String balanceAccountId) { this.balanceAccountId = balanceAccountId; @@ -58,11 +69,8 @@ public TransferNotificationCounterParty balanceAccountId(String balanceAccountId } /** - * The unique identifier of the counterparty [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). - * - * @return balanceAccountId The unique identifier of the counterparty [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * @return balanceAccountId The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,11 +79,9 @@ public String getBalanceAccountId() { } /** - * The unique identifier of the counterparty [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). * - * @param balanceAccountId The unique identifier of the counterparty [balance - * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * @param balanceAccountId The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -86,9 +92,8 @@ public void setBalanceAccountId(String balanceAccountId) { /** * bankAccount * - * @param bankAccount - * @return the current {@code TransferNotificationCounterParty} instance, allowing for method - * chaining + * @param bankAccount + * @return the current {@code TransferNotificationCounterParty} instance, allowing for method chaining */ public TransferNotificationCounterParty bankAccount(BankAccountV3 bankAccount) { this.bankAccount = bankAccount; @@ -97,8 +102,7 @@ public TransferNotificationCounterParty bankAccount(BankAccountV3 bankAccount) { /** * Get bankAccount - * - * @return bankAccount + * @return bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -109,7 +113,7 @@ public BankAccountV3 getBankAccount() { /** * bankAccount * - * @param bankAccount + * @param bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -120,9 +124,8 @@ public void setBankAccount(BankAccountV3 bankAccount) { /** * card * - * @param card - * @return the current {@code TransferNotificationCounterParty} instance, allowing for method - * chaining + * @param card + * @return the current {@code TransferNotificationCounterParty} instance, allowing for method chaining */ public TransferNotificationCounterParty card(Card card) { this.card = card; @@ -131,8 +134,7 @@ public TransferNotificationCounterParty card(Card card) { /** * Get card - * - * @return card + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,7 +145,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -154,9 +156,8 @@ public void setCard(Card card) { /** * merchant * - * @param merchant - * @return the current {@code TransferNotificationCounterParty} instance, allowing for method - * chaining + * @param merchant + * @return the current {@code TransferNotificationCounterParty} instance, allowing for method chaining */ public TransferNotificationCounterParty merchant(TransferNotificationMerchantData merchant) { this.merchant = merchant; @@ -165,8 +166,7 @@ public TransferNotificationCounterParty merchant(TransferNotificationMerchantDat /** * Get merchant - * - * @return merchant + * @return merchant */ @JsonProperty(JSON_PROPERTY_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,7 +177,7 @@ public TransferNotificationMerchantData getMerchant() { /** * merchant * - * @param merchant + * @param merchant */ @JsonProperty(JSON_PROPERTY_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,13 +186,10 @@ public void setMerchant(TransferNotificationMerchantData merchant) { } /** - * The unique identifier of the counterparty [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). * - * @param transferInstrumentId The unique identifier of the counterparty [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). - * @return the current {@code TransferNotificationCounterParty} instance, allowing for method - * chaining + * @param transferInstrumentId The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * @return the current {@code TransferNotificationCounterParty} instance, allowing for method chaining */ public TransferNotificationCounterParty transferInstrumentId(String transferInstrumentId) { this.transferInstrumentId = transferInstrumentId; @@ -200,11 +197,8 @@ public TransferNotificationCounterParty transferInstrumentId(String transferInst } /** - * The unique identifier of the counterparty [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). - * - * @return transferInstrumentId The unique identifier of the counterparty [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * @return transferInstrumentId The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -213,11 +207,9 @@ public String getTransferInstrumentId() { } /** - * The unique identifier of the counterparty [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). * - * @param transferInstrumentId The unique identifier of the counterparty [transfer - * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * @param transferInstrumentId The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -225,7 +217,9 @@ public void setTransferInstrumentId(String transferInstrumentId) { this.transferInstrumentId = transferInstrumentId; } - /** Return true if this TransferNotificationCounterParty object is equal to o. */ + /** + * Return true if this TransferNotificationCounterParty object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -234,14 +228,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TransferNotificationCounterParty transferNotificationCounterParty = - (TransferNotificationCounterParty) o; - return Objects.equals(this.balanceAccountId, transferNotificationCounterParty.balanceAccountId) - && Objects.equals(this.bankAccount, transferNotificationCounterParty.bankAccount) - && Objects.equals(this.card, transferNotificationCounterParty.card) - && Objects.equals(this.merchant, transferNotificationCounterParty.merchant) - && Objects.equals( - this.transferInstrumentId, transferNotificationCounterParty.transferInstrumentId); + TransferNotificationCounterParty transferNotificationCounterParty = (TransferNotificationCounterParty) o; + return Objects.equals(this.balanceAccountId, transferNotificationCounterParty.balanceAccountId) && + Objects.equals(this.bankAccount, transferNotificationCounterParty.bankAccount) && + Objects.equals(this.card, transferNotificationCounterParty.card) && + Objects.equals(this.merchant, transferNotificationCounterParty.merchant) && + Objects.equals(this.transferInstrumentId, transferNotificationCounterParty.transferInstrumentId); } @Override @@ -257,15 +249,14 @@ public String toString() { sb.append(" bankAccount: ").append(toIndentedString(bankAccount)).append("\n"); sb.append(" card: ").append(toIndentedString(card)).append("\n"); sb.append(" merchant: ").append(toIndentedString(merchant)).append("\n"); - sb.append(" transferInstrumentId: ") - .append(toIndentedString(transferInstrumentId)) - .append("\n"); + sb.append(" transferInstrumentId: ").append(toIndentedString(transferInstrumentId)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -274,24 +265,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransferNotificationCounterParty given an JSON string * * @param jsonString JSON string * @return An instance of TransferNotificationCounterParty - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransferNotificationCounterParty + * @throws JsonProcessingException if the JSON string is invalid with respect to TransferNotificationCounterParty */ - public static TransferNotificationCounterParty fromJson(String jsonString) - throws JsonProcessingException { + public static TransferNotificationCounterParty fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferNotificationCounterParty.class); } - - /** - * Convert an instance of TransferNotificationCounterParty to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransferNotificationCounterParty to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationMerchantData.java b/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationMerchantData.java index 1595c6a5b..1d3911889 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationMerchantData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationMerchantData.java @@ -2,22 +2,31 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TransferNotificationMerchantData */ + +/** + * TransferNotificationMerchantData + */ @JsonPropertyOrder({ TransferNotificationMerchantData.JSON_PROPERTY_ACQUIRER_ID, TransferNotificationMerchantData.JSON_PROPERTY_CITY, @@ -27,6 +36,7 @@ TransferNotificationMerchantData.JSON_PROPERTY_NAME, TransferNotificationMerchantData.JSON_PROPERTY_POSTAL_CODE }) + public class TransferNotificationMerchantData { public static final String JSON_PROPERTY_ACQUIRER_ID = "acquirerId"; private String acquirerId; @@ -49,14 +59,14 @@ public class TransferNotificationMerchantData { public static final String JSON_PROPERTY_POSTAL_CODE = "postalCode"; private String postalCode; - public TransferNotificationMerchantData() {} + public TransferNotificationMerchantData() { + } /** * The unique identifier of the merchant's acquirer. * * @param acquirerId The unique identifier of the merchant's acquirer. - * @return the current {@code TransferNotificationMerchantData} instance, allowing for method - * chaining + * @return the current {@code TransferNotificationMerchantData} instance, allowing for method chaining */ public TransferNotificationMerchantData acquirerId(String acquirerId) { this.acquirerId = acquirerId; @@ -65,7 +75,6 @@ public TransferNotificationMerchantData acquirerId(String acquirerId) { /** * The unique identifier of the merchant's acquirer. - * * @return acquirerId The unique identifier of the merchant's acquirer. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_ID) @@ -89,8 +98,7 @@ public void setAcquirerId(String acquirerId) { * The city where the merchant is located. * * @param city The city where the merchant is located. - * @return the current {@code TransferNotificationMerchantData} instance, allowing for method - * chaining + * @return the current {@code TransferNotificationMerchantData} instance, allowing for method chaining */ public TransferNotificationMerchantData city(String city) { this.city = city; @@ -99,7 +107,6 @@ public TransferNotificationMerchantData city(String city) { /** * The city where the merchant is located. - * * @return city The city where the merchant is located. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -123,8 +130,7 @@ public void setCity(String city) { * The country where the merchant is located. * * @param country The country where the merchant is located. - * @return the current {@code TransferNotificationMerchantData} instance, allowing for method - * chaining + * @return the current {@code TransferNotificationMerchantData} instance, allowing for method chaining */ public TransferNotificationMerchantData country(String country) { this.country = country; @@ -133,7 +139,6 @@ public TransferNotificationMerchantData country(String country) { /** * The country where the merchant is located. - * * @return country The country where the merchant is located. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @@ -157,8 +162,7 @@ public void setCountry(String country) { * The merchant category code. * * @param mcc The merchant category code. - * @return the current {@code TransferNotificationMerchantData} instance, allowing for method - * chaining + * @return the current {@code TransferNotificationMerchantData} instance, allowing for method chaining */ public TransferNotificationMerchantData mcc(String mcc) { this.mcc = mcc; @@ -167,7 +171,6 @@ public TransferNotificationMerchantData mcc(String mcc) { /** * The merchant category code. - * * @return mcc The merchant category code. */ @JsonProperty(JSON_PROPERTY_MCC) @@ -191,8 +194,7 @@ public void setMcc(String mcc) { * The unique identifier of the merchant. * * @param merchantId The unique identifier of the merchant. - * @return the current {@code TransferNotificationMerchantData} instance, allowing for method - * chaining + * @return the current {@code TransferNotificationMerchantData} instance, allowing for method chaining */ public TransferNotificationMerchantData merchantId(String merchantId) { this.merchantId = merchantId; @@ -201,7 +203,6 @@ public TransferNotificationMerchantData merchantId(String merchantId) { /** * The unique identifier of the merchant. - * * @return merchantId The unique identifier of the merchant. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @@ -225,8 +226,7 @@ public void setMerchantId(String merchantId) { * The name of the merchant's shop or service. * * @param name The name of the merchant's shop or service. - * @return the current {@code TransferNotificationMerchantData} instance, allowing for method - * chaining + * @return the current {@code TransferNotificationMerchantData} instance, allowing for method chaining */ public TransferNotificationMerchantData name(String name) { this.name = name; @@ -235,7 +235,6 @@ public TransferNotificationMerchantData name(String name) { /** * The name of the merchant's shop or service. - * * @return name The name of the merchant's shop or service. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -259,8 +258,7 @@ public void setName(String name) { * The postal code of the merchant. * * @param postalCode The postal code of the merchant. - * @return the current {@code TransferNotificationMerchantData} instance, allowing for method - * chaining + * @return the current {@code TransferNotificationMerchantData} instance, allowing for method chaining */ public TransferNotificationMerchantData postalCode(String postalCode) { this.postalCode = postalCode; @@ -269,7 +267,6 @@ public TransferNotificationMerchantData postalCode(String postalCode) { /** * The postal code of the merchant. - * * @return postalCode The postal code of the merchant. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @@ -289,7 +286,9 @@ public void setPostalCode(String postalCode) { this.postalCode = postalCode; } - /** Return true if this TransferNotificationMerchantData object is equal to o. */ + /** + * Return true if this TransferNotificationMerchantData object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -298,15 +297,14 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TransferNotificationMerchantData transferNotificationMerchantData = - (TransferNotificationMerchantData) o; - return Objects.equals(this.acquirerId, transferNotificationMerchantData.acquirerId) - && Objects.equals(this.city, transferNotificationMerchantData.city) - && Objects.equals(this.country, transferNotificationMerchantData.country) - && Objects.equals(this.mcc, transferNotificationMerchantData.mcc) - && Objects.equals(this.merchantId, transferNotificationMerchantData.merchantId) - && Objects.equals(this.name, transferNotificationMerchantData.name) - && Objects.equals(this.postalCode, transferNotificationMerchantData.postalCode); + TransferNotificationMerchantData transferNotificationMerchantData = (TransferNotificationMerchantData) o; + return Objects.equals(this.acquirerId, transferNotificationMerchantData.acquirerId) && + Objects.equals(this.city, transferNotificationMerchantData.city) && + Objects.equals(this.country, transferNotificationMerchantData.country) && + Objects.equals(this.mcc, transferNotificationMerchantData.mcc) && + Objects.equals(this.merchantId, transferNotificationMerchantData.merchantId) && + Objects.equals(this.name, transferNotificationMerchantData.name) && + Objects.equals(this.postalCode, transferNotificationMerchantData.postalCode); } @Override @@ -330,7 +328,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -339,24 +338,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransferNotificationMerchantData given an JSON string * * @param jsonString JSON string * @return An instance of TransferNotificationMerchantData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransferNotificationMerchantData + * @throws JsonProcessingException if the JSON string is invalid with respect to TransferNotificationMerchantData */ - public static TransferNotificationMerchantData fromJson(String jsonString) - throws JsonProcessingException { + public static TransferNotificationMerchantData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferNotificationMerchantData.class); } - - /** - * Convert an instance of TransferNotificationMerchantData to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransferNotificationMerchantData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationRequest.java b/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationRequest.java index 3807a8fb1..b3bb31354 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationRequest.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationRequest.java @@ -2,33 +2,40 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; +import com.adyen.model.transferwebhooks.TransferData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** TransferNotificationRequest */ + +/** + * TransferNotificationRequest + */ @JsonPropertyOrder({ TransferNotificationRequest.JSON_PROPERTY_DATA, TransferNotificationRequest.JSON_PROPERTY_ENVIRONMENT, TransferNotificationRequest.JSON_PROPERTY_TIMESTAMP, TransferNotificationRequest.JSON_PROPERTY_TYPE }) + public class TransferNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private TransferData data; @@ -39,8 +46,11 @@ public class TransferNotificationRequest { public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; private OffsetDateTime timestamp; - /** The type of webhook. */ + /** + * The type of webhook. + */ public enum TypeEnum { + BALANCEPLATFORM_TRANSFER_CREATED(String.valueOf("balancePlatform.transfer.created")), BALANCEPLATFORM_TRANSFER_UPDATED(String.valueOf("balancePlatform.transfer.updated")); @@ -50,7 +60,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -71,11 +81,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -83,12 +89,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public TransferNotificationRequest() {} + public TransferNotificationRequest() { + } /** * data * - * @param data + * @param data * @return the current {@code TransferNotificationRequest} instance, allowing for method chaining */ public TransferNotificationRequest data(TransferData data) { @@ -98,8 +105,7 @@ public TransferNotificationRequest data(TransferData data) { /** * Get data - * - * @return data + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,7 +116,7 @@ public TransferData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -119,10 +125,9 @@ public void setData(TransferData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. * @return the current {@code TransferNotificationRequest} instance, allowing for method chaining */ public TransferNotificationRequest environment(String environment) { @@ -131,10 +136,8 @@ public TransferNotificationRequest environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * - * @return environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,10 +146,9 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: - * **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,7 +169,6 @@ public TransferNotificationRequest timestamp(OffsetDateTime timestamp) { /** * When the event was queued. - * * @return timestamp When the event was queued. */ @JsonProperty(JSON_PROPERTY_TIMESTAMP) @@ -200,7 +201,6 @@ public TransferNotificationRequest type(TypeEnum type) { /** * The type of webhook. - * * @return type The type of webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -220,7 +220,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this TransferNotificationRequest object is equal to o. */ + /** + * Return true if this TransferNotificationRequest object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -230,10 +232,10 @@ public boolean equals(Object o) { return false; } TransferNotificationRequest transferNotificationRequest = (TransferNotificationRequest) o; - return Objects.equals(this.data, transferNotificationRequest.data) - && Objects.equals(this.environment, transferNotificationRequest.environment) - && Objects.equals(this.timestamp, transferNotificationRequest.timestamp) - && Objects.equals(this.type, transferNotificationRequest.type); + return Objects.equals(this.data, transferNotificationRequest.data) && + Objects.equals(this.environment, transferNotificationRequest.environment) && + Objects.equals(this.timestamp, transferNotificationRequest.timestamp) && + Objects.equals(this.type, transferNotificationRequest.type); } @Override @@ -254,7 +256,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -263,24 +266,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransferNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of TransferNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransferNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to TransferNotificationRequest */ - public static TransferNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static TransferNotificationRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferNotificationRequest.class); } - - /** - * Convert an instance of TransferNotificationRequest to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransferNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationValidationFact.java b/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationValidationFact.java index efaaecffd..85e27e7bc 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationValidationFact.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationValidationFact.java @@ -2,26 +2,36 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; -/** TransferNotificationValidationFact */ + +/** + * TransferNotificationValidationFact + */ @JsonPropertyOrder({ TransferNotificationValidationFact.JSON_PROPERTY_RESULT, TransferNotificationValidationFact.JSON_PROPERTY_TYPE }) + public class TransferNotificationValidationFact { public static final String JSON_PROPERTY_RESULT = "result"; private String result; @@ -29,14 +39,14 @@ public class TransferNotificationValidationFact { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public TransferNotificationValidationFact() {} + public TransferNotificationValidationFact() { + } /** * The evaluation result of the validation fact. * * @param result The evaluation result of the validation fact. - * @return the current {@code TransferNotificationValidationFact} instance, allowing for method - * chaining + * @return the current {@code TransferNotificationValidationFact} instance, allowing for method chaining */ public TransferNotificationValidationFact result(String result) { this.result = result; @@ -45,7 +55,6 @@ public TransferNotificationValidationFact result(String result) { /** * The evaluation result of the validation fact. - * * @return result The evaluation result of the validation fact. */ @JsonProperty(JSON_PROPERTY_RESULT) @@ -69,8 +78,7 @@ public void setResult(String result) { * The type of the validation fact. * * @param type The type of the validation fact. - * @return the current {@code TransferNotificationValidationFact} instance, allowing for method - * chaining + * @return the current {@code TransferNotificationValidationFact} instance, allowing for method chaining */ public TransferNotificationValidationFact type(String type) { this.type = type; @@ -79,7 +87,6 @@ public TransferNotificationValidationFact type(String type) { /** * The type of the validation fact. - * * @return type The type of the validation fact. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -99,7 +106,9 @@ public void setType(String type) { this.type = type; } - /** Return true if this TransferNotificationValidationFact object is equal to o. */ + /** + * Return true if this TransferNotificationValidationFact object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -108,10 +117,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TransferNotificationValidationFact transferNotificationValidationFact = - (TransferNotificationValidationFact) o; - return Objects.equals(this.result, transferNotificationValidationFact.result) - && Objects.equals(this.type, transferNotificationValidationFact.type); + TransferNotificationValidationFact transferNotificationValidationFact = (TransferNotificationValidationFact) o; + return Objects.equals(this.result, transferNotificationValidationFact.result) && + Objects.equals(this.type, transferNotificationValidationFact.type); } @Override @@ -130,7 +138,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -139,24 +148,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransferNotificationValidationFact given an JSON string * * @param jsonString JSON string * @return An instance of TransferNotificationValidationFact - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransferNotificationValidationFact + * @throws JsonProcessingException if the JSON string is invalid with respect to TransferNotificationValidationFact */ - public static TransferNotificationValidationFact fromJson(String jsonString) - throws JsonProcessingException { + public static TransferNotificationValidationFact fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferNotificationValidationFact.class); } - - /** - * Convert an instance of TransferNotificationValidationFact to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransferNotificationValidationFact to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferReview.java b/src/main/java/com/adyen/model/transferwebhooks/TransferReview.java index 6d8f4bd11..260e344a7 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferReview.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferReview.java @@ -2,40 +2,45 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + -/** TransferReview */ +/** + * TransferReview + */ @JsonPropertyOrder({ TransferReview.JSON_PROPERTY_NUMBER_OF_APPROVALS_REQUIRED, TransferReview.JSON_PROPERTY_SCA_ON_APPROVAL }) + public class TransferReview { - public static final String JSON_PROPERTY_NUMBER_OF_APPROVALS_REQUIRED = - "numberOfApprovalsRequired"; + public static final String JSON_PROPERTY_NUMBER_OF_APPROVALS_REQUIRED = "numberOfApprovalsRequired"; private Integer numberOfApprovalsRequired; /** - * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: - * **required**, **notApplicable**. + * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **notApplicable**. */ public enum ScaOnApprovalEnum { + COMPLETED(String.valueOf("completed")), NOTAPPLICABLE(String.valueOf("notApplicable")), @@ -47,7 +52,7 @@ public enum ScaOnApprovalEnum { private String value; ScaOnApprovalEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -68,11 +73,7 @@ public static ScaOnApprovalEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "ScaOnApprovalEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(ScaOnApprovalEnum.values())); + LOG.warning("ScaOnApprovalEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ScaOnApprovalEnum.values())); return null; } } @@ -80,16 +81,13 @@ public static ScaOnApprovalEnum fromValue(String value) { public static final String JSON_PROPERTY_SCA_ON_APPROVAL = "scaOnApproval"; private ScaOnApprovalEnum scaOnApproval; - public TransferReview() {} + public TransferReview() { + } /** - * Shows the number of - * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) - * required to process the transfer. + * Shows the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. * - * @param numberOfApprovalsRequired Shows the number of - * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) - * required to process the transfer. + * @param numberOfApprovalsRequired Shows the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. * @return the current {@code TransferReview} instance, allowing for method chaining */ public TransferReview numberOfApprovalsRequired(Integer numberOfApprovalsRequired) { @@ -98,13 +96,8 @@ public TransferReview numberOfApprovalsRequired(Integer numberOfApprovalsRequire } /** - * Shows the number of - * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) - * required to process the transfer. - * - * @return numberOfApprovalsRequired Shows the number of - * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) - * required to process the transfer. + * Shows the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. + * @return numberOfApprovalsRequired Shows the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. */ @JsonProperty(JSON_PROPERTY_NUMBER_OF_APPROVALS_REQUIRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,13 +106,9 @@ public Integer getNumberOfApprovalsRequired() { } /** - * Shows the number of - * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) - * required to process the transfer. + * Shows the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. * - * @param numberOfApprovalsRequired Shows the number of - * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) - * required to process the transfer. + * @param numberOfApprovalsRequired Shows the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. */ @JsonProperty(JSON_PROPERTY_NUMBER_OF_APPROVALS_REQUIRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,11 +117,9 @@ public void setNumberOfApprovalsRequired(Integer numberOfApprovalsRequired) { } /** - * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: - * **required**, **notApplicable**. + * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **notApplicable**. * - * @param scaOnApproval Shows the status of the Strong Customer Authentication (SCA) process. - * Possible values: **required**, **notApplicable**. + * @param scaOnApproval Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **notApplicable**. * @return the current {@code TransferReview} instance, allowing for method chaining */ public TransferReview scaOnApproval(ScaOnApprovalEnum scaOnApproval) { @@ -141,11 +128,8 @@ public TransferReview scaOnApproval(ScaOnApprovalEnum scaOnApproval) { } /** - * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: - * **required**, **notApplicable**. - * - * @return scaOnApproval Shows the status of the Strong Customer Authentication (SCA) process. - * Possible values: **required**, **notApplicable**. + * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **notApplicable**. + * @return scaOnApproval Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **notApplicable**. */ @JsonProperty(JSON_PROPERTY_SCA_ON_APPROVAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -154,11 +138,9 @@ public ScaOnApprovalEnum getScaOnApproval() { } /** - * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: - * **required**, **notApplicable**. + * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **notApplicable**. * - * @param scaOnApproval Shows the status of the Strong Customer Authentication (SCA) process. - * Possible values: **required**, **notApplicable**. + * @param scaOnApproval Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **notApplicable**. */ @JsonProperty(JSON_PROPERTY_SCA_ON_APPROVAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -166,7 +148,9 @@ public void setScaOnApproval(ScaOnApprovalEnum scaOnApproval) { this.scaOnApproval = scaOnApproval; } - /** Return true if this TransferReview object is equal to o. */ + /** + * Return true if this TransferReview object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -176,8 +160,8 @@ public boolean equals(Object o) { return false; } TransferReview transferReview = (TransferReview) o; - return Objects.equals(this.numberOfApprovalsRequired, transferReview.numberOfApprovalsRequired) - && Objects.equals(this.scaOnApproval, transferReview.scaOnApproval); + return Objects.equals(this.numberOfApprovalsRequired, transferReview.numberOfApprovalsRequired) && + Objects.equals(this.scaOnApproval, transferReview.scaOnApproval); } @Override @@ -189,16 +173,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TransferReview {\n"); - sb.append(" numberOfApprovalsRequired: ") - .append(toIndentedString(numberOfApprovalsRequired)) - .append("\n"); + sb.append(" numberOfApprovalsRequired: ").append(toIndentedString(numberOfApprovalsRequired)).append("\n"); sb.append(" scaOnApproval: ").append(toIndentedString(scaOnApproval)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -207,7 +190,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of TransferReview given an JSON string * * @param jsonString JSON string @@ -217,12 +200,11 @@ private String toIndentedString(Object o) { public static TransferReview fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferReview.class); } - - /** - * Convert an instance of TransferReview to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of TransferReview to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferWebhooksHandler.java b/src/main/java/com/adyen/model/transferwebhooks/TransferWebhooksHandler.java index 0002b5b71..97be46cab 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferWebhooksHandler.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferWebhooksHandler.java @@ -2,7 +2,7 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,62 +16,63 @@ /** * Handler for processing TransferWebhooks. - * - *

This class provides functionality to deserialize the payload of TransferWebhooks events. + *

+ * This class provides functionality to deserialize the payload of TransferWebhooks events. */ public class TransferWebhooksHandler { - private static final Logger LOG = Logger.getLogger(TransferWebhooksHandler.class.getName()); + private static final Logger LOG = Logger.getLogger(TransferWebhooksHandler.class.getName()); - private final String payload; + private final String payload; - /** - * Constructs a new handler for the given webhook payload - * - * @param payload the raw JSON payload from the webhook - */ - public TransferWebhooksHandler(String payload) { - this.payload = payload; - } + /** + * Constructs a new handler for the given webhook payload + * + * @param payload the raw JSON payload from the webhook + */ + public TransferWebhooksHandler(String payload) { + this.payload = payload; + } - /** - * Attempts to deserialize the webhook payload into a TransferNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getTransferNotificationRequest() { + /** + * Attempts to deserialize the webhook payload into a TransferNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getTransferNotificationRequest() { - var optionalTransferNotificationRequest = getOptionalField(TransferNotificationRequest.class); + var optionalTransferNotificationRequest = getOptionalField(TransferNotificationRequest.class); - if (optionalTransferNotificationRequest.isPresent()) { - // verify event type - for (var value : TransferNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalTransferNotificationRequest.get().getType())) { - // found matching event type - return optionalTransferNotificationRequest; + if(optionalTransferNotificationRequest.isPresent()) { + // verify event type + for (var value : TransferNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalTransferNotificationRequest.get().getType())) { + // found matching event type + return optionalTransferNotificationRequest; + } + } } - } - } - return Optional.empty(); - } + return Optional.empty(); + } - /** - * Deserializes the payload into the specified class type. - * - * @param clazz the class to deserialize into - * @param the type of the class - * @return an Optional containing the deserialized object, or empty if an error occurs - */ - private Optional getOptionalField(Class clazz) { - try { - T val = JSON.getMapper().readValue(payload, clazz); - return Optional.ofNullable(val); - } catch (Exception e) { - // an error has occurred during deserialization (object not found, deserialization error) - LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); - LOG.warning("Deserialization error: " + e.getMessage()); - return Optional.empty(); + /** + * Deserializes the payload into the specified class type. + * + * @param clazz the class to deserialize into + * @param the type of the class + * @return an Optional containing the deserialized object, or empty if an error occurs + */ + private Optional getOptionalField(Class clazz) { + try { + T val = JSON.getMapper().readValue(payload, clazz); + return Optional.ofNullable(val); + } catch (Exception e) { + // an error has occurred during deserialization (object not found, deserialization error) + LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); + LOG.warning("Deserialization error: " + e.getMessage()); + return Optional.empty(); + } } - } -} + +} \ No newline at end of file diff --git a/src/main/java/com/adyen/model/transferwebhooks/UKLocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/UKLocalAccountIdentification.java index 726a08c59..cea1b4348 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/UKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/UKLocalAccountIdentification.java @@ -2,31 +2,37 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** UKLocalAccountIdentification */ + +/** + * UKLocalAccountIdentification + */ @JsonPropertyOrder({ UKLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, UKLocalAccountIdentification.JSON_PROPERTY_SORT_CODE, UKLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class UKLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -34,8 +40,11 @@ public class UKLocalAccountIdentification { public static final String JSON_PROPERTY_SORT_CODE = "sortCode"; private String sortCode; - /** **ukLocal** */ + /** + * **ukLocal** + */ public enum TypeEnum { + UKLOCAL(String.valueOf("ukLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -43,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -64,11 +73,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -76,7 +81,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public UKLocalAccountIdentification() {} + public UKLocalAccountIdentification() { + } /** * The 8-digit bank account number, without separators or whitespace. @@ -91,7 +97,6 @@ public UKLocalAccountIdentification accountNumber(String accountNumber) { /** * The 8-digit bank account number, without separators or whitespace. - * * @return accountNumber The 8-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -112,11 +117,9 @@ public void setAccountNumber(String accountNumber) { } /** - * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or - * whitespace. + * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. * - * @param sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without - * separators or whitespace. + * @param sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. * @return the current {@code UKLocalAccountIdentification} instance, allowing for method chaining */ public UKLocalAccountIdentification sortCode(String sortCode) { @@ -125,11 +128,8 @@ public UKLocalAccountIdentification sortCode(String sortCode) { } /** - * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or - * whitespace. - * - * @return sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without - * separators or whitespace. + * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. + * @return sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_SORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,11 +138,9 @@ public String getSortCode() { } /** - * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or - * whitespace. + * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. * - * @param sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without - * separators or whitespace. + * @param sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_SORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,7 +161,6 @@ public UKLocalAccountIdentification type(TypeEnum type) { /** * **ukLocal** - * * @return type **ukLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -183,7 +180,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this UKLocalAccountIdentification object is equal to o. */ + /** + * Return true if this UKLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -193,9 +192,9 @@ public boolean equals(Object o) { return false; } UKLocalAccountIdentification ukLocalAccountIdentification = (UKLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, ukLocalAccountIdentification.accountNumber) - && Objects.equals(this.sortCode, ukLocalAccountIdentification.sortCode) - && Objects.equals(this.type, ukLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, ukLocalAccountIdentification.accountNumber) && + Objects.equals(this.sortCode, ukLocalAccountIdentification.sortCode) && + Objects.equals(this.type, ukLocalAccountIdentification.type); } @Override @@ -215,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,24 +224,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of UKLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of UKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UKLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to UKLocalAccountIdentification */ - public static UKLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static UKLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UKLocalAccountIdentification.class); } - - /** - * Convert an instance of UKLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of UKLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/USLocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/USLocalAccountIdentification.java index d11a9c0a2..efad3bb76 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/USLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/USLocalAccountIdentification.java @@ -2,40 +2,47 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.*; +import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; -import java.util.*; import java.util.Arrays; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; -/** USLocalAccountIdentification */ + +/** + * USLocalAccountIdentification + */ @JsonPropertyOrder({ USLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, USLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_TYPE, USLocalAccountIdentification.JSON_PROPERTY_ROUTING_NUMBER, USLocalAccountIdentification.JSON_PROPERTY_TYPE }) + public class USLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ public enum AccountTypeEnum { + CHECKING(String.valueOf("checking")), SAVINGS(String.valueOf("savings")); @@ -45,7 +52,7 @@ public enum AccountTypeEnum { private String value; AccountTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -66,11 +73,7 @@ public static AccountTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "AccountTypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(AccountTypeEnum.values())); + LOG.warning("AccountTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AccountTypeEnum.values())); return null; } } @@ -81,8 +84,11 @@ public static AccountTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_ROUTING_NUMBER = "routingNumber"; private String routingNumber; - /** **usLocal** */ + /** + * **usLocal** + */ public enum TypeEnum { + USLOCAL(String.valueOf("usLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -90,7 +96,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -111,11 +117,7 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning( - "TypeEnum: unexpected enum value '" - + value - + "' - Supported values are " - + Arrays.toString(TypeEnum.values())); + LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); return null; } } @@ -123,7 +125,8 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public USLocalAccountIdentification() {} + public USLocalAccountIdentification() { + } /** * The bank account number, without separators or whitespace. @@ -138,7 +141,6 @@ public USLocalAccountIdentification accountNumber(String accountNumber) { /** * The bank account number, without separators or whitespace. - * * @return accountNumber The bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -159,10 +161,9 @@ public void setAccountNumber(String accountNumber) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. - * Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * @return the current {@code USLocalAccountIdentification} instance, allowing for method chaining */ public USLocalAccountIdentification accountType(AccountTypeEnum accountType) { @@ -171,10 +172,8 @@ public USLocalAccountIdentification accountType(AccountTypeEnum accountType) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. - * - * @return accountType The bank account type. Possible values: **checking** or **savings**. - * Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * @return accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,10 +182,9 @@ public AccountTypeEnum getAccountType() { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. - * Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,12 +193,9 @@ public void setAccountType(AccountTypeEnum accountType) { } /** - * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without - * separators or whitespace. + * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. * - * @param routingNumber The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * whitespace. + * @param routingNumber The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. * @return the current {@code USLocalAccountIdentification} instance, allowing for method chaining */ public USLocalAccountIdentification routingNumber(String routingNumber) { @@ -209,12 +204,8 @@ public USLocalAccountIdentification routingNumber(String routingNumber) { } /** - * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without - * separators or whitespace. - * - * @return routingNumber The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * whitespace. + * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * @return routingNumber The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,12 +214,9 @@ public String getRoutingNumber() { } /** - * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without - * separators or whitespace. + * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. * - * @param routingNumber The 9-digit [routing - * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or - * whitespace. + * @param routingNumber The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -249,7 +237,6 @@ public USLocalAccountIdentification type(TypeEnum type) { /** * **usLocal** - * * @return type **usLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -269,7 +256,9 @@ public void setType(TypeEnum type) { this.type = type; } - /** Return true if this USLocalAccountIdentification object is equal to o. */ + /** + * Return true if this USLocalAccountIdentification object is equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -279,10 +268,10 @@ public boolean equals(Object o) { return false; } USLocalAccountIdentification usLocalAccountIdentification = (USLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, usLocalAccountIdentification.accountNumber) - && Objects.equals(this.accountType, usLocalAccountIdentification.accountType) - && Objects.equals(this.routingNumber, usLocalAccountIdentification.routingNumber) - && Objects.equals(this.type, usLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, usLocalAccountIdentification.accountNumber) && + Objects.equals(this.accountType, usLocalAccountIdentification.accountType) && + Objects.equals(this.routingNumber, usLocalAccountIdentification.routingNumber) && + Objects.equals(this.type, usLocalAccountIdentification.type); } @Override @@ -303,7 +292,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -312,24 +302,21 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - /** +/** * Create an instance of USLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of USLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * USLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to USLocalAccountIdentification */ - public static USLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static USLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, USLocalAccountIdentification.class); } - - /** - * Convert an instance of USLocalAccountIdentification to an JSON string - * - * @return JSON string - */ +/** + * Convert an instance of USLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/service/balancecontrol/BalanceControlApi.java b/src/main/java/com/adyen/service/balancecontrol/BalanceControlApi.java index 301c1ebce..a2ce6bf4d 100644 --- a/src/main/java/com/adyen/service/balancecontrol/BalanceControlApi.java +++ b/src/main/java/com/adyen/service/balancecontrol/BalanceControlApi.java @@ -2,7 +2,7 @@ * Adyen Balance Control API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,74 +14,69 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.balancecontrol.BalanceTransferRequest; import com.adyen.model.balancecontrol.BalanceTransferResponse; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; +import java.util.HashMap; +import java.util.Map; public class BalanceControlApi extends Service { - public static final String API_VERSION = "1"; + public static final String API_VERSION = "1"; - protected String baseURL; + protected String baseURL; - /** - * BalanceControl constructor in {@link com.adyen.service.balancecontrol package}. - * - * @param client {@link Client } (required) - */ - public BalanceControlApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/BalanceControl/v1"); - } + /** + * BalanceControl constructor in {@link com.adyen.service.balancecontrol package}. + * @param client {@link Client } (required) + */ + public BalanceControlApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/BalanceControl/v1"); + } - /** - * BalanceControl constructor in {@link com.adyen.service.balancecontrol package}. Please use this - * constructor only if you would like to pass along your own url for routing or testing purposes. - * The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public BalanceControlApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * BalanceControl constructor in {@link com.adyen.service.balancecontrol package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public BalanceControlApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Start a balance transfer - * - * @param balanceTransferRequest {@link BalanceTransferRequest } (required) - * @return {@link BalanceTransferResponse } - * @throws ApiException if fails to make API call - * @deprecated since Adyen Balance Control API v1 - */ - @Deprecated - public BalanceTransferResponse balanceTransfer(BalanceTransferRequest balanceTransferRequest) - throws ApiException, IOException { - return balanceTransfer(balanceTransferRequest, null); - } + /** + * Start a balance transfer + * + * @param balanceTransferRequest {@link BalanceTransferRequest } (required) + * @return {@link BalanceTransferResponse } + * @throws ApiException if fails to make API call + * @deprecated since Adyen Balance Control API v1 + */ + @Deprecated + public BalanceTransferResponse balanceTransfer(BalanceTransferRequest balanceTransferRequest) throws ApiException, IOException { + return balanceTransfer(balanceTransferRequest, null); + } - /** - * Start a balance transfer - * - * @param balanceTransferRequest {@link BalanceTransferRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link BalanceTransferResponse } - * @throws ApiException if fails to make API call - * @deprecated since Adyen Balance Control API v1 - */ - @Deprecated - public BalanceTransferResponse balanceTransfer( - BalanceTransferRequest balanceTransferRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = balanceTransferRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/balanceTransfer", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return BalanceTransferResponse.fromJson(jsonResult); - } + /** + * Start a balance transfer + * + * @param balanceTransferRequest {@link BalanceTransferRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link BalanceTransferResponse } + * @throws ApiException if fails to make API call + * @deprecated since Adyen Balance Control API v1 + */ + @Deprecated + public BalanceTransferResponse balanceTransfer(BalanceTransferRequest balanceTransferRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = balanceTransferRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/balanceTransfer", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return BalanceTransferResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/balanceplatform/AccountHoldersApi.java b/src/main/java/com/adyen/service/balanceplatform/AccountHoldersApi.java index bc0f5be77..e88690c05 100644 --- a/src/main/java/com/adyen/service/balanceplatform/AccountHoldersApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/AccountHoldersApi.java @@ -2,7 +2,7 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,306 +14,265 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.balanceplatform.AccountHolder; import com.adyen.model.balanceplatform.AccountHolderInfo; import com.adyen.model.balanceplatform.AccountHolderUpdateRequest; import com.adyen.model.balanceplatform.GetTaxFormResponse; import com.adyen.model.balanceplatform.PaginatedBalanceAccountsResponse; +import com.adyen.model.balanceplatform.RestServiceError; import com.adyen.model.balanceplatform.TransactionRulesResponse; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class AccountHoldersApi extends Service { - public static final String API_VERSION = "2"; - - protected String baseURL; + public static final String API_VERSION = "2"; - /** - * Account holders constructor in {@link com.adyen.service.balanceplatform package}. - * - * @param client {@link Client } (required) - */ - public AccountHoldersApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); - } + protected String baseURL; - /** - * Account holders constructor in {@link com.adyen.service.balanceplatform package}. Please use - * this constructor only if you would like to pass along your own url for routing or testing - * purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public AccountHoldersApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Create an account holder - * - * @param accountHolderInfo {@link AccountHolderInfo } (required) - * @return {@link AccountHolder } - * @throws ApiException if fails to make API call - */ - public AccountHolder createAccountHolder(AccountHolderInfo accountHolderInfo) - throws ApiException, IOException { - return createAccountHolder(accountHolderInfo, null); - } + /** + * Account holders constructor in {@link com.adyen.service.balanceplatform package}. + * @param client {@link Client } (required) + */ + public AccountHoldersApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); + } - /** - * Create an account holder - * - * @param accountHolderInfo {@link AccountHolderInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link AccountHolder } - * @throws ApiException if fails to make API call - */ - public AccountHolder createAccountHolder( - AccountHolderInfo accountHolderInfo, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = accountHolderInfo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/accountHolders", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return AccountHolder.fromJson(jsonResult); - } + /** + * Account holders constructor in {@link com.adyen.service.balanceplatform package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public AccountHoldersApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Get an account holder - * - * @param id {@link String } The unique identifier of the account holder. (required) - * @return {@link AccountHolder } - * @throws ApiException if fails to make API call - */ - public AccountHolder getAccountHolder(String id) throws ApiException, IOException { - return getAccountHolder(id, null); - } + /** + * Create an account holder + * + * @param accountHolderInfo {@link AccountHolderInfo } (required) + * @return {@link AccountHolder } + * @throws ApiException if fails to make API call + */ + public AccountHolder createAccountHolder(AccountHolderInfo accountHolderInfo) throws ApiException, IOException { + return createAccountHolder(accountHolderInfo, null); + } - /** - * Get an account holder - * - * @param id {@link String } The unique identifier of the account holder. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link AccountHolder } - * @throws ApiException if fails to make API call - */ - public AccountHolder getAccountHolder(String id, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + /** + * Create an account holder + * + * @param accountHolderInfo {@link AccountHolderInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link AccountHolder } + * @throws ApiException if fails to make API call + */ + public AccountHolder createAccountHolder(AccountHolderInfo accountHolderInfo, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = accountHolderInfo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/accountHolders", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return AccountHolder.fromJson(jsonResult); } - pathParams.put("id", id); - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/accountHolders/{id}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return AccountHolder.fromJson(jsonResult); - } + /** + * Get an account holder + * + * @param id {@link String } The unique identifier of the account holder. (required) + * @return {@link AccountHolder } + * @throws ApiException if fails to make API call + */ + public AccountHolder getAccountHolder(String id) throws ApiException, IOException { + return getAccountHolder(id, null); + } - /** - * Get all balance accounts of an account holder - * - * @param id {@link String } The unique identifier of the account holder. (required) - * @return {@link PaginatedBalanceAccountsResponse } - * @throws ApiException if fails to make API call - */ - public PaginatedBalanceAccountsResponse getAllBalanceAccountsOfAccountHolder(String id) - throws ApiException, IOException { - return getAllBalanceAccountsOfAccountHolder(id, null, null, null); - } + /** + * Get an account holder + * + * @param id {@link String } The unique identifier of the account holder. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link AccountHolder } + * @throws ApiException if fails to make API call + */ + public AccountHolder getAccountHolder(String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); - /** - * Get all balance accounts of an account holder - * - * @param id {@link String } The unique identifier of the account holder. (required) - * @param offset {@link Integer } Query: The number of items that you want to skip. (optional) - * @param limit {@link Integer } Query: The number of items returned per page, maximum 100 items. - * By default, the response returns 10 items per page. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PaginatedBalanceAccountsResponse } - * @throws ApiException if fails to make API call - */ - public PaginatedBalanceAccountsResponse getAllBalanceAccountsOfAccountHolder( - String id, Integer offset, Integer limit, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/accountHolders/{id}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return AccountHolder.fromJson(jsonResult); } - pathParams.put("id", id); - // Add query params - Map queryParams = new HashMap<>(); - if (offset != null) { - queryParams.put("offset", offset.toString()); - } - if (limit != null) { - queryParams.put("limit", limit.toString()); + /** + * Get all balance accounts of an account holder + * + * @param id {@link String } The unique identifier of the account holder. (required) + * @return {@link PaginatedBalanceAccountsResponse } + * @throws ApiException if fails to make API call + */ + public PaginatedBalanceAccountsResponse getAllBalanceAccountsOfAccountHolder(String id) throws ApiException, IOException { + return getAllBalanceAccountsOfAccountHolder(id, null, null, null); } - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/accountHolders/{id}/balanceAccounts", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return PaginatedBalanceAccountsResponse.fromJson(jsonResult); - } + /** + * Get all balance accounts of an account holder + * + * @param id {@link String } The unique identifier of the account holder. (required) + * @param offset {@link Integer } Query: The number of items that you want to skip. (optional) + * @param limit {@link Integer } Query: The number of items returned per page, maximum 100 items. By default, the response returns 10 items per page. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PaginatedBalanceAccountsResponse } + * @throws ApiException if fails to make API call + */ + public PaginatedBalanceAccountsResponse getAllBalanceAccountsOfAccountHolder(String id, Integer offset, Integer limit, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); - /** - * Get all transaction rules for an account holder - * - * @param id {@link String } The unique identifier of the account holder. (required) - * @return {@link TransactionRulesResponse } - * @throws ApiException if fails to make API call - */ - public TransactionRulesResponse getAllTransactionRulesForAccountHolder(String id) - throws ApiException, IOException { - return getAllTransactionRulesForAccountHolder(id, null); - } + //Add query params + Map queryParams = new HashMap<>(); + if (offset != null) { + queryParams.put("offset", offset.toString()); + } + if (limit != null) { + queryParams.put("limit", limit.toString()); + } - /** - * Get all transaction rules for an account holder - * - * @param id {@link String } The unique identifier of the account holder. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TransactionRulesResponse } - * @throws ApiException if fails to make API call - */ - public TransactionRulesResponse getAllTransactionRulesForAccountHolder( - String id, RequestOptions requestOptions) throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/accountHolders/{id}/balanceAccounts", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return PaginatedBalanceAccountsResponse.fromJson(jsonResult); } - pathParams.put("id", id); - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/accountHolders/{id}/transactionRules", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TransactionRulesResponse.fromJson(jsonResult); - } + /** + * Get all transaction rules for an account holder + * + * @param id {@link String } The unique identifier of the account holder. (required) + * @return {@link TransactionRulesResponse } + * @throws ApiException if fails to make API call + */ + public TransactionRulesResponse getAllTransactionRulesForAccountHolder(String id) throws ApiException, IOException { + return getAllTransactionRulesForAccountHolder(id, null); + } - /** - * Get a tax form - * - * @param id {@link String } The unique identifier of the account holder. (required) - * @param formType {@link String } The type of tax form you want to retrieve. Accepted values are - * **US1099k** and **US1099nec** (required) - * @param year {@link Integer } The tax year in YYYY format for the tax form you want to retrieve - * (required) - * @return {@link GetTaxFormResponse } - * @throws ApiException if fails to make API call - */ - public GetTaxFormResponse getTaxForm(String id, String formType, Integer year) - throws ApiException, IOException { - return getTaxForm(id, formType, year, null, null); - } + /** + * Get all transaction rules for an account holder + * + * @param id {@link String } The unique identifier of the account holder. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TransactionRulesResponse } + * @throws ApiException if fails to make API call + */ + public TransactionRulesResponse getAllTransactionRulesForAccountHolder(String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); - /** - * Get a tax form - * - * @param id {@link String } The unique identifier of the account holder. (required) - * @param formType {@link String } Query: The type of tax form you want to retrieve. Accepted - * values are **US1099k** and **US1099nec** (required) - * @param year {@link Integer } Query: The tax year in YYYY format for the tax form you want to - * retrieve (required) - * @param legalEntityId {@link String } Query: The legal entity reference whose tax form you want - * to retrieve (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link GetTaxFormResponse } - * @throws ApiException if fails to make API call - */ - public GetTaxFormResponse getTaxForm( - String id, String formType, Integer year, String legalEntityId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/accountHolders/{id}/transactionRules", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TransactionRulesResponse.fromJson(jsonResult); } - pathParams.put("id", id); - // Add query params - Map queryParams = new HashMap<>(); - if (formType != null) { - queryParams.put("formType", formType); - } - if (year != null) { - queryParams.put("year", year.toString()); - } - if (legalEntityId != null) { - queryParams.put("legalEntityId", legalEntityId); + /** + * Get a tax form + * + * @param id {@link String } The unique identifier of the account holder. (required) + * @param formType {@link String } The type of tax form you want to retrieve. Accepted values are **US1099k** and **US1099nec** (required) + * @param year {@link Integer } The tax year in YYYY format for the tax form you want to retrieve (required) + * @return {@link GetTaxFormResponse } + * @throws ApiException if fails to make API call + */ + public GetTaxFormResponse getTaxForm(String id, String formType, Integer year) throws ApiException, IOException { + return getTaxForm(id, formType, year, null, null); } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/accountHolders/{id}/taxForms", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return GetTaxFormResponse.fromJson(jsonResult); - } + /** + * Get a tax form + * + * @param id {@link String } The unique identifier of the account holder. (required) + * @param formType {@link String } Query: The type of tax form you want to retrieve. Accepted values are **US1099k** and **US1099nec** (required) + * @param year {@link Integer } Query: The tax year in YYYY format for the tax form you want to retrieve (required) + * @param legalEntityId {@link String } Query: The legal entity reference whose tax form you want to retrieve (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link GetTaxFormResponse } + * @throws ApiException if fails to make API call + */ + public GetTaxFormResponse getTaxForm(String id, String formType, Integer year, String legalEntityId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); - /** - * Update an account holder - * - * @param id {@link String } The unique identifier of the account holder. (required) - * @param accountHolderUpdateRequest {@link AccountHolderUpdateRequest } (required) - * @return {@link AccountHolder } - * @throws ApiException if fails to make API call - */ - public AccountHolder updateAccountHolder( - String id, AccountHolderUpdateRequest accountHolderUpdateRequest) - throws ApiException, IOException { - return updateAccountHolder(id, accountHolderUpdateRequest, null); - } + //Add query params + Map queryParams = new HashMap<>(); + if (formType != null) { + queryParams.put("formType", formType); + } + if (year != null) { + queryParams.put("year", year.toString()); + } + if (legalEntityId != null) { + queryParams.put("legalEntityId", legalEntityId); + } - /** - * Update an account holder - * - * @param id {@link String } The unique identifier of the account holder. (required) - * @param accountHolderUpdateRequest {@link AccountHolderUpdateRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link AccountHolder } - * @throws ApiException if fails to make API call - */ - public AccountHolder updateAccountHolder( - String id, - AccountHolderUpdateRequest accountHolderUpdateRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/accountHolders/{id}/taxForms", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return GetTaxFormResponse.fromJson(jsonResult); } - pathParams.put("id", id); - String requestBody = accountHolderUpdateRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/accountHolders/{id}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return AccountHolder.fromJson(jsonResult); - } + /** + * Update an account holder + * + * @param id {@link String } The unique identifier of the account holder. (required) + * @param accountHolderUpdateRequest {@link AccountHolderUpdateRequest } (required) + * @return {@link AccountHolder } + * @throws ApiException if fails to make API call + */ + public AccountHolder updateAccountHolder(String id, AccountHolderUpdateRequest accountHolderUpdateRequest) throws ApiException, IOException { + return updateAccountHolder(id, accountHolderUpdateRequest, null); + } + + /** + * Update an account holder + * + * @param id {@link String } The unique identifier of the account holder. (required) + * @param accountHolderUpdateRequest {@link AccountHolderUpdateRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link AccountHolder } + * @throws ApiException if fails to make API call + */ + public AccountHolder updateAccountHolder(String id, AccountHolderUpdateRequest accountHolderUpdateRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = accountHolderUpdateRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/accountHolders/{id}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return AccountHolder.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/balanceplatform/AuthorizedCardUsersApi.java b/src/main/java/com/adyen/service/balanceplatform/AuthorizedCardUsersApi.java index 8dd66cc10..9027cd25b 100644 --- a/src/main/java/com/adyen/service/balanceplatform/AuthorizedCardUsersApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/AuthorizedCardUsersApi.java @@ -2,7 +2,7 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,206 +14,168 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.balanceplatform.AuthorisedCardUsers; +import com.adyen.model.balanceplatform.DefaultErrorResponseEntity; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class AuthorizedCardUsersApi extends Service { - public static final String API_VERSION = "2"; - - protected String baseURL; - - /** - * Authorized card users constructor in {@link com.adyen.service.balanceplatform package}. - * - * @param client {@link Client } (required) - */ - public AuthorizedCardUsersApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); - } - - /** - * Authorized card users constructor in {@link com.adyen.service.balanceplatform package}. Please - * use this constructor only if you would like to pass along your own url for routing or testing - * purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public AuthorizedCardUsersApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Create authorized users for a card. - * - * @param paymentInstrumentId {@link String } (required) - * @param authorisedCardUsers {@link AuthorisedCardUsers } (required) - * @param authorisedCardUsers {@link AuthorisedCardUsers } (required) - * @throws ApiException if fails to make API call - */ - public void createAuthorisedCardUsers( - String paymentInstrumentId, AuthorisedCardUsers authorisedCardUsers) - throws ApiException, IOException { - createAuthorisedCardUsers(paymentInstrumentId, authorisedCardUsers, null); - } - - /** - * Create authorized users for a card. - * - * @param paymentInstrumentId {@link String } (required) - * @param authorisedCardUsers {@link AuthorisedCardUsers } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void createAuthorisedCardUsers( - String paymentInstrumentId, - AuthorisedCardUsers authorisedCardUsers, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (paymentInstrumentId == null) { - throw new IllegalArgumentException("Please provide the paymentInstrumentId path parameter"); + public static final String API_VERSION = "2"; + + protected String baseURL; + + /** + * Authorized card users constructor in {@link com.adyen.service.balanceplatform package}. + * @param client {@link Client } (required) + */ + public AuthorizedCardUsersApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); } - pathParams.put("paymentInstrumentId", paymentInstrumentId); - - String requestBody = authorisedCardUsers.toJson(); - Resource resource = - new Resource( - this, - this.baseURL + "/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers", - null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - } - - /** - * Delete the authorized users for a card. - * - * @param paymentInstrumentId {@link String } (required) - * @throws ApiException if fails to make API call - */ - public void deleteAuthorisedCardUsers(String paymentInstrumentId) - throws ApiException, IOException { - deleteAuthorisedCardUsers(paymentInstrumentId, null); - } - - /** - * Delete the authorized users for a card. - * - * @param paymentInstrumentId {@link String } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void deleteAuthorisedCardUsers(String paymentInstrumentId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (paymentInstrumentId == null) { - throw new IllegalArgumentException("Please provide the paymentInstrumentId path parameter"); + + /** + * Authorized card users constructor in {@link com.adyen.service.balanceplatform package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public AuthorizedCardUsersApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - pathParams.put("paymentInstrumentId", paymentInstrumentId); - - String requestBody = null; - Resource resource = - new Resource( - this, - this.baseURL + "/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers", - null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); - } - - /** - * Get authorized users for a card. - * - * @param paymentInstrumentId {@link String } (required) - * @return {@link AuthorisedCardUsers } - * @throws ApiException if fails to make API call - */ - public AuthorisedCardUsers getAllAuthorisedCardUsers(String paymentInstrumentId) - throws ApiException, IOException { - return getAllAuthorisedCardUsers(paymentInstrumentId, null); - } - - /** - * Get authorized users for a card. - * - * @param paymentInstrumentId {@link String } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link AuthorisedCardUsers } - * @throws ApiException if fails to make API call - */ - public AuthorisedCardUsers getAllAuthorisedCardUsers( - String paymentInstrumentId, RequestOptions requestOptions) throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (paymentInstrumentId == null) { - throw new IllegalArgumentException("Please provide the paymentInstrumentId path parameter"); + + /** + * Create authorized users for a card. + * + * @param paymentInstrumentId {@link String } (required) + * @param authorisedCardUsers {@link AuthorisedCardUsers } (required) + * @param authorisedCardUsers {@link AuthorisedCardUsers } (required) + * @throws ApiException if fails to make API call + */ + public void createAuthorisedCardUsers(String paymentInstrumentId, AuthorisedCardUsers authorisedCardUsers) throws ApiException, IOException { + createAuthorisedCardUsers(paymentInstrumentId, authorisedCardUsers, null); } - pathParams.put("paymentInstrumentId", paymentInstrumentId); - - String requestBody = null; - Resource resource = - new Resource( - this, - this.baseURL + "/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers", - null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return AuthorisedCardUsers.fromJson(jsonResult); - } - - /** - * Update the authorized users for a card. - * - * @param paymentInstrumentId {@link String } (required) - * @param authorisedCardUsers {@link AuthorisedCardUsers } (required) - * @param authorisedCardUsers {@link AuthorisedCardUsers } (required) - * @throws ApiException if fails to make API call - */ - public void updateAuthorisedCardUsers( - String paymentInstrumentId, AuthorisedCardUsers authorisedCardUsers) - throws ApiException, IOException { - updateAuthorisedCardUsers(paymentInstrumentId, authorisedCardUsers, null); - } - - /** - * Update the authorized users for a card. - * - * @param paymentInstrumentId {@link String } (required) - * @param authorisedCardUsers {@link AuthorisedCardUsers } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void updateAuthorisedCardUsers( - String paymentInstrumentId, - AuthorisedCardUsers authorisedCardUsers, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (paymentInstrumentId == null) { - throw new IllegalArgumentException("Please provide the paymentInstrumentId path parameter"); + + /** + * Create authorized users for a card. + * + * @param paymentInstrumentId {@link String } (required) + * @param authorisedCardUsers {@link AuthorisedCardUsers } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void createAuthorisedCardUsers(String paymentInstrumentId, AuthorisedCardUsers authorisedCardUsers, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (paymentInstrumentId == null) { + throw new IllegalArgumentException("Please provide the paymentInstrumentId path parameter"); + } + pathParams.put("paymentInstrumentId", paymentInstrumentId); + + String requestBody = authorisedCardUsers.toJson(); + Resource resource = new Resource(this, this.baseURL + "/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + } + + /** + * Delete the authorized users for a card. + * + * @param paymentInstrumentId {@link String } (required) + * @throws ApiException if fails to make API call + */ + public void deleteAuthorisedCardUsers(String paymentInstrumentId) throws ApiException, IOException { + deleteAuthorisedCardUsers(paymentInstrumentId, null); + } + + /** + * Delete the authorized users for a card. + * + * @param paymentInstrumentId {@link String } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void deleteAuthorisedCardUsers(String paymentInstrumentId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (paymentInstrumentId == null) { + throw new IllegalArgumentException("Please provide the paymentInstrumentId path parameter"); + } + pathParams.put("paymentInstrumentId", paymentInstrumentId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); + } + + /** + * Get authorized users for a card. + * + * @param paymentInstrumentId {@link String } (required) + * @return {@link AuthorisedCardUsers } + * @throws ApiException if fails to make API call + */ + public AuthorisedCardUsers getAllAuthorisedCardUsers(String paymentInstrumentId) throws ApiException, IOException { + return getAllAuthorisedCardUsers(paymentInstrumentId, null); + } + + /** + * Get authorized users for a card. + * + * @param paymentInstrumentId {@link String } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link AuthorisedCardUsers } + * @throws ApiException if fails to make API call + */ + public AuthorisedCardUsers getAllAuthorisedCardUsers(String paymentInstrumentId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (paymentInstrumentId == null) { + throw new IllegalArgumentException("Please provide the paymentInstrumentId path parameter"); + } + pathParams.put("paymentInstrumentId", paymentInstrumentId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return AuthorisedCardUsers.fromJson(jsonResult); + } + + /** + * Update the authorized users for a card. + * + * @param paymentInstrumentId {@link String } (required) + * @param authorisedCardUsers {@link AuthorisedCardUsers } (required) + * @param authorisedCardUsers {@link AuthorisedCardUsers } (required) + * @throws ApiException if fails to make API call + */ + public void updateAuthorisedCardUsers(String paymentInstrumentId, AuthorisedCardUsers authorisedCardUsers) throws ApiException, IOException { + updateAuthorisedCardUsers(paymentInstrumentId, authorisedCardUsers, null); + } + + /** + * Update the authorized users for a card. + * + * @param paymentInstrumentId {@link String } (required) + * @param authorisedCardUsers {@link AuthorisedCardUsers } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void updateAuthorisedCardUsers(String paymentInstrumentId, AuthorisedCardUsers authorisedCardUsers, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (paymentInstrumentId == null) { + throw new IllegalArgumentException("Please provide the paymentInstrumentId path parameter"); + } + pathParams.put("paymentInstrumentId", paymentInstrumentId); + + String requestBody = authorisedCardUsers.toJson(); + Resource resource = new Resource(this, this.baseURL + "/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); } - pathParams.put("paymentInstrumentId", paymentInstrumentId); - - String requestBody = authorisedCardUsers.toJson(); - Resource resource = - new Resource( - this, - this.baseURL + "/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers", - null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - } } diff --git a/src/main/java/com/adyen/service/balanceplatform/BalanceAccountsApi.java b/src/main/java/com/adyen/service/balanceplatform/BalanceAccountsApi.java index 174cf04d4..5547f1193 100644 --- a/src/main/java/com/adyen/service/balanceplatform/BalanceAccountsApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/BalanceAccountsApi.java @@ -2,7 +2,7 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,500 +14,417 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.balanceplatform.BalanceAccount; import com.adyen.model.balanceplatform.BalanceAccountInfo; import com.adyen.model.balanceplatform.BalanceAccountUpdateRequest; import com.adyen.model.balanceplatform.BalanceSweepConfigurationsResponse; import com.adyen.model.balanceplatform.CreateSweepConfigurationV2; import com.adyen.model.balanceplatform.PaginatedPaymentInstrumentsResponse; +import com.adyen.model.balanceplatform.RestServiceError; import com.adyen.model.balanceplatform.SweepConfigurationV2; import com.adyen.model.balanceplatform.TransactionRulesResponse; import com.adyen.model.balanceplatform.UpdateSweepConfigurationV2; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class BalanceAccountsApi extends Service { - public static final String API_VERSION = "2"; - - protected String baseURL; - - /** - * Balance accounts constructor in {@link com.adyen.service.balanceplatform package}. - * - * @param client {@link Client } (required) - */ - public BalanceAccountsApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); - } - - /** - * Balance accounts constructor in {@link com.adyen.service.balanceplatform package}. Please use - * this constructor only if you would like to pass along your own url for routing or testing - * purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public BalanceAccountsApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Create a balance account - * - * @param balanceAccountInfo {@link BalanceAccountInfo } (required) - * @return {@link BalanceAccount } - * @throws ApiException if fails to make API call - */ - public BalanceAccount createBalanceAccount(BalanceAccountInfo balanceAccountInfo) - throws ApiException, IOException { - return createBalanceAccount(balanceAccountInfo, null); - } - - /** - * Create a balance account - * - * @param balanceAccountInfo {@link BalanceAccountInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link BalanceAccount } - * @throws ApiException if fails to make API call - */ - public BalanceAccount createBalanceAccount( - BalanceAccountInfo balanceAccountInfo, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = balanceAccountInfo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/balanceAccounts", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return BalanceAccount.fromJson(jsonResult); - } - - /** - * Create a sweep - * - * @param balanceAccountId {@link String } The unique identifier of the balance account. - * (required) - * @param createSweepConfigurationV2 {@link CreateSweepConfigurationV2 } (required) - * @return {@link SweepConfigurationV2 } - * @throws ApiException if fails to make API call - */ - public SweepConfigurationV2 createSweep( - String balanceAccountId, CreateSweepConfigurationV2 createSweepConfigurationV2) - throws ApiException, IOException { - return createSweep(balanceAccountId, createSweepConfigurationV2, null); - } - - /** - * Create a sweep - * - * @param balanceAccountId {@link String } The unique identifier of the balance account. - * (required) - * @param createSweepConfigurationV2 {@link CreateSweepConfigurationV2 } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link SweepConfigurationV2 } - * @throws ApiException if fails to make API call - */ - public SweepConfigurationV2 createSweep( - String balanceAccountId, - CreateSweepConfigurationV2 createSweepConfigurationV2, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (balanceAccountId == null) { - throw new IllegalArgumentException("Please provide the balanceAccountId path parameter"); + public static final String API_VERSION = "2"; + + protected String baseURL; + + /** + * Balance accounts constructor in {@link com.adyen.service.balanceplatform package}. + * @param client {@link Client } (required) + */ + public BalanceAccountsApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); + } + + /** + * Balance accounts constructor in {@link com.adyen.service.balanceplatform package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public BalanceAccountsApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Create a balance account + * + * @param balanceAccountInfo {@link BalanceAccountInfo } (required) + * @return {@link BalanceAccount } + * @throws ApiException if fails to make API call + */ + public BalanceAccount createBalanceAccount(BalanceAccountInfo balanceAccountInfo) throws ApiException, IOException { + return createBalanceAccount(balanceAccountInfo, null); + } + + /** + * Create a balance account + * + * @param balanceAccountInfo {@link BalanceAccountInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link BalanceAccount } + * @throws ApiException if fails to make API call + */ + public BalanceAccount createBalanceAccount(BalanceAccountInfo balanceAccountInfo, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = balanceAccountInfo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/balanceAccounts", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return BalanceAccount.fromJson(jsonResult); + } + + /** + * Create a sweep + * + * @param balanceAccountId {@link String } The unique identifier of the balance account. (required) + * @param createSweepConfigurationV2 {@link CreateSweepConfigurationV2 } (required) + * @return {@link SweepConfigurationV2 } + * @throws ApiException if fails to make API call + */ + public SweepConfigurationV2 createSweep(String balanceAccountId, CreateSweepConfigurationV2 createSweepConfigurationV2) throws ApiException, IOException { + return createSweep(balanceAccountId, createSweepConfigurationV2, null); } - pathParams.put("balanceAccountId", balanceAccountId); - - String requestBody = createSweepConfigurationV2.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/balanceAccounts/{balanceAccountId}/sweeps", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return SweepConfigurationV2.fromJson(jsonResult); - } - - /** - * Delete a sweep - * - * @param balanceAccountId {@link String } The unique identifier of the balance account. - * (required) - * @param sweepId {@link String } The unique identifier of the sweep. (required) - * @throws ApiException if fails to make API call - */ - public void deleteSweep(String balanceAccountId, String sweepId) - throws ApiException, IOException { - deleteSweep(balanceAccountId, sweepId, null); - } - - /** - * Delete a sweep - * - * @param balanceAccountId {@link String } The unique identifier of the balance account. - * (required) - * @param sweepId {@link String } The unique identifier of the sweep. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void deleteSweep(String balanceAccountId, String sweepId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (balanceAccountId == null) { - throw new IllegalArgumentException("Please provide the balanceAccountId path parameter"); + + /** + * Create a sweep + * + * @param balanceAccountId {@link String } The unique identifier of the balance account. (required) + * @param createSweepConfigurationV2 {@link CreateSweepConfigurationV2 } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link SweepConfigurationV2 } + * @throws ApiException if fails to make API call + */ + public SweepConfigurationV2 createSweep(String balanceAccountId, CreateSweepConfigurationV2 createSweepConfigurationV2, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (balanceAccountId == null) { + throw new IllegalArgumentException("Please provide the balanceAccountId path parameter"); + } + pathParams.put("balanceAccountId", balanceAccountId); + + String requestBody = createSweepConfigurationV2.toJson(); + Resource resource = new Resource(this, this.baseURL + "/balanceAccounts/{balanceAccountId}/sweeps", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return SweepConfigurationV2.fromJson(jsonResult); } - pathParams.put("balanceAccountId", balanceAccountId); - if (sweepId == null) { - throw new IllegalArgumentException("Please provide the sweepId path parameter"); + + /** + * Delete a sweep + * + * @param balanceAccountId {@link String } The unique identifier of the balance account. (required) + * @param sweepId {@link String } The unique identifier of the sweep. (required) + * @throws ApiException if fails to make API call + */ + public void deleteSweep(String balanceAccountId, String sweepId) throws ApiException, IOException { + deleteSweep(balanceAccountId, sweepId, null); } - pathParams.put("sweepId", sweepId); - - String requestBody = null; - Resource resource = - new Resource( - this, this.baseURL + "/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); - } - - /** - * Get all sweeps for a balance account - * - * @param balanceAccountId {@link String } The unique identifier of the balance account. - * (required) - * @return {@link BalanceSweepConfigurationsResponse } - * @throws ApiException if fails to make API call - */ - public BalanceSweepConfigurationsResponse getAllSweepsForBalanceAccount(String balanceAccountId) - throws ApiException, IOException { - return getAllSweepsForBalanceAccount(balanceAccountId, null, null, null); - } - - /** - * Get all sweeps for a balance account - * - * @param balanceAccountId {@link String } The unique identifier of the balance account. - * (required) - * @param offset {@link Integer } Query: The number of items that you want to skip. (optional) - * @param limit {@link Integer } Query: The number of items returned per page, maximum 100 items. - * By default, the response returns 10 items per page. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link BalanceSweepConfigurationsResponse } - * @throws ApiException if fails to make API call - */ - public BalanceSweepConfigurationsResponse getAllSweepsForBalanceAccount( - String balanceAccountId, Integer offset, Integer limit, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (balanceAccountId == null) { - throw new IllegalArgumentException("Please provide the balanceAccountId path parameter"); + + /** + * Delete a sweep + * + * @param balanceAccountId {@link String } The unique identifier of the balance account. (required) + * @param sweepId {@link String } The unique identifier of the sweep. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void deleteSweep(String balanceAccountId, String sweepId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (balanceAccountId == null) { + throw new IllegalArgumentException("Please provide the balanceAccountId path parameter"); + } + pathParams.put("balanceAccountId", balanceAccountId); + if (sweepId == null) { + throw new IllegalArgumentException("Please provide the sweepId path parameter"); + } + pathParams.put("sweepId", sweepId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); } - pathParams.put("balanceAccountId", balanceAccountId); - // Add query params - Map queryParams = new HashMap<>(); - if (offset != null) { - queryParams.put("offset", offset.toString()); + /** + * Get all sweeps for a balance account + * + * @param balanceAccountId {@link String } The unique identifier of the balance account. (required) + * @return {@link BalanceSweepConfigurationsResponse } + * @throws ApiException if fails to make API call + */ + public BalanceSweepConfigurationsResponse getAllSweepsForBalanceAccount(String balanceAccountId) throws ApiException, IOException { + return getAllSweepsForBalanceAccount(balanceAccountId, null, null, null); } - if (limit != null) { - queryParams.put("limit", limit.toString()); + + /** + * Get all sweeps for a balance account + * + * @param balanceAccountId {@link String } The unique identifier of the balance account. (required) + * @param offset {@link Integer } Query: The number of items that you want to skip. (optional) + * @param limit {@link Integer } Query: The number of items returned per page, maximum 100 items. By default, the response returns 10 items per page. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link BalanceSweepConfigurationsResponse } + * @throws ApiException if fails to make API call + */ + public BalanceSweepConfigurationsResponse getAllSweepsForBalanceAccount(String balanceAccountId, Integer offset, Integer limit, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (balanceAccountId == null) { + throw new IllegalArgumentException("Please provide the balanceAccountId path parameter"); + } + pathParams.put("balanceAccountId", balanceAccountId); + + //Add query params + Map queryParams = new HashMap<>(); + if (offset != null) { + queryParams.put("offset", offset.toString()); + } + if (limit != null) { + queryParams.put("limit", limit.toString()); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/balanceAccounts/{balanceAccountId}/sweeps", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return BalanceSweepConfigurationsResponse.fromJson(jsonResult); } - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/balanceAccounts/{balanceAccountId}/sweeps", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return BalanceSweepConfigurationsResponse.fromJson(jsonResult); - } - - /** - * Get all transaction rules for a balance account - * - * @param id {@link String } The unique identifier of the balance account. (required) - * @return {@link TransactionRulesResponse } - * @throws ApiException if fails to make API call - */ - public TransactionRulesResponse getAllTransactionRulesForBalanceAccount(String id) - throws ApiException, IOException { - return getAllTransactionRulesForBalanceAccount(id, null); - } - - /** - * Get all transaction rules for a balance account - * - * @param id {@link String } The unique identifier of the balance account. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TransactionRulesResponse } - * @throws ApiException if fails to make API call - */ - public TransactionRulesResponse getAllTransactionRulesForBalanceAccount( - String id, RequestOptions requestOptions) throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + /** + * Get all transaction rules for a balance account + * + * @param id {@link String } The unique identifier of the balance account. (required) + * @return {@link TransactionRulesResponse } + * @throws ApiException if fails to make API call + */ + public TransactionRulesResponse getAllTransactionRulesForBalanceAccount(String id) throws ApiException, IOException { + return getAllTransactionRulesForBalanceAccount(id, null); } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/balanceAccounts/{id}/transactionRules", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TransactionRulesResponse.fromJson(jsonResult); - } - - /** - * Get a balance account - * - * @param id {@link String } The unique identifier of the balance account. (required) - * @return {@link BalanceAccount } - * @throws ApiException if fails to make API call - */ - public BalanceAccount getBalanceAccount(String id) throws ApiException, IOException { - return getBalanceAccount(id, null); - } - - /** - * Get a balance account - * - * @param id {@link String } The unique identifier of the balance account. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link BalanceAccount } - * @throws ApiException if fails to make API call - */ - public BalanceAccount getBalanceAccount(String id, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + + /** + * Get all transaction rules for a balance account + * + * @param id {@link String } The unique identifier of the balance account. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TransactionRulesResponse } + * @throws ApiException if fails to make API call + */ + public TransactionRulesResponse getAllTransactionRulesForBalanceAccount(String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/balanceAccounts/{id}/transactionRules", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TransactionRulesResponse.fromJson(jsonResult); + } + + /** + * Get a balance account + * + * @param id {@link String } The unique identifier of the balance account. (required) + * @return {@link BalanceAccount } + * @throws ApiException if fails to make API call + */ + public BalanceAccount getBalanceAccount(String id) throws ApiException, IOException { + return getBalanceAccount(id, null); } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/balanceAccounts/{id}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return BalanceAccount.fromJson(jsonResult); - } - - /** - * Get payment instruments linked to a balance account - * - * @param id {@link String } The unique identifier of the balance account. (required) - * @return {@link PaginatedPaymentInstrumentsResponse } - * @throws ApiException if fails to make API call - */ - public PaginatedPaymentInstrumentsResponse getPaymentInstrumentsLinkedToBalanceAccount(String id) - throws ApiException, IOException { - return getPaymentInstrumentsLinkedToBalanceAccount(id, null, null, null, null); - } - - /** - * Get payment instruments linked to a balance account - * - * @param id {@link String } The unique identifier of the balance account. (required) - * @param offset {@link Integer } Query: The number of items that you want to skip. (optional) - * @param limit {@link Integer } Query: The number of items returned per page, maximum 100 items. - * By default, the response returns 10 items per page. (optional) - * @param status {@link String } Query: The status of the payment instruments that you want to - * get. By default, the response includes payment instruments with any status. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PaginatedPaymentInstrumentsResponse } - * @throws ApiException if fails to make API call - */ - public PaginatedPaymentInstrumentsResponse getPaymentInstrumentsLinkedToBalanceAccount( - String id, Integer offset, Integer limit, String status, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + + /** + * Get a balance account + * + * @param id {@link String } The unique identifier of the balance account. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link BalanceAccount } + * @throws ApiException if fails to make API call + */ + public BalanceAccount getBalanceAccount(String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/balanceAccounts/{id}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return BalanceAccount.fromJson(jsonResult); } - pathParams.put("id", id); - // Add query params - Map queryParams = new HashMap<>(); - if (offset != null) { - queryParams.put("offset", offset.toString()); + /** + * Get payment instruments linked to a balance account + * + * @param id {@link String } The unique identifier of the balance account. (required) + * @return {@link PaginatedPaymentInstrumentsResponse } + * @throws ApiException if fails to make API call + */ + public PaginatedPaymentInstrumentsResponse getPaymentInstrumentsLinkedToBalanceAccount(String id) throws ApiException, IOException { + return getPaymentInstrumentsLinkedToBalanceAccount(id, null, null, null, null); } - if (limit != null) { - queryParams.put("limit", limit.toString()); + + /** + * Get payment instruments linked to a balance account + * + * @param id {@link String } The unique identifier of the balance account. (required) + * @param offset {@link Integer } Query: The number of items that you want to skip. (optional) + * @param limit {@link Integer } Query: The number of items returned per page, maximum 100 items. By default, the response returns 10 items per page. (optional) + * @param status {@link String } Query: The status of the payment instruments that you want to get. By default, the response includes payment instruments with any status. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PaginatedPaymentInstrumentsResponse } + * @throws ApiException if fails to make API call + */ + public PaginatedPaymentInstrumentsResponse getPaymentInstrumentsLinkedToBalanceAccount(String id, Integer offset, Integer limit, String status, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + //Add query params + Map queryParams = new HashMap<>(); + if (offset != null) { + queryParams.put("offset", offset.toString()); + } + if (limit != null) { + queryParams.put("limit", limit.toString()); + } + if (status != null) { + queryParams.put("status", status); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/balanceAccounts/{id}/paymentInstruments", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return PaginatedPaymentInstrumentsResponse.fromJson(jsonResult); } - if (status != null) { - queryParams.put("status", status); + + /** + * Get a sweep + * + * @param balanceAccountId {@link String } The unique identifier of the balance account. (required) + * @param sweepId {@link String } The unique identifier of the sweep. (required) + * @return {@link SweepConfigurationV2 } + * @throws ApiException if fails to make API call + */ + public SweepConfigurationV2 getSweep(String balanceAccountId, String sweepId) throws ApiException, IOException { + return getSweep(balanceAccountId, sweepId, null); } - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/balanceAccounts/{id}/paymentInstruments", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return PaginatedPaymentInstrumentsResponse.fromJson(jsonResult); - } - - /** - * Get a sweep - * - * @param balanceAccountId {@link String } The unique identifier of the balance account. - * (required) - * @param sweepId {@link String } The unique identifier of the sweep. (required) - * @return {@link SweepConfigurationV2 } - * @throws ApiException if fails to make API call - */ - public SweepConfigurationV2 getSweep(String balanceAccountId, String sweepId) - throws ApiException, IOException { - return getSweep(balanceAccountId, sweepId, null); - } - - /** - * Get a sweep - * - * @param balanceAccountId {@link String } The unique identifier of the balance account. - * (required) - * @param sweepId {@link String } The unique identifier of the sweep. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link SweepConfigurationV2 } - * @throws ApiException if fails to make API call - */ - public SweepConfigurationV2 getSweep( - String balanceAccountId, String sweepId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (balanceAccountId == null) { - throw new IllegalArgumentException("Please provide the balanceAccountId path parameter"); + /** + * Get a sweep + * + * @param balanceAccountId {@link String } The unique identifier of the balance account. (required) + * @param sweepId {@link String } The unique identifier of the sweep. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link SweepConfigurationV2 } + * @throws ApiException if fails to make API call + */ + public SweepConfigurationV2 getSweep(String balanceAccountId, String sweepId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (balanceAccountId == null) { + throw new IllegalArgumentException("Please provide the balanceAccountId path parameter"); + } + pathParams.put("balanceAccountId", balanceAccountId); + if (sweepId == null) { + throw new IllegalArgumentException("Please provide the sweepId path parameter"); + } + pathParams.put("sweepId", sweepId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return SweepConfigurationV2.fromJson(jsonResult); } - pathParams.put("balanceAccountId", balanceAccountId); - if (sweepId == null) { - throw new IllegalArgumentException("Please provide the sweepId path parameter"); + + /** + * Update a balance account + * + * @param id {@link String } The unique identifier of the balance account. (required) + * @param balanceAccountUpdateRequest {@link BalanceAccountUpdateRequest } (required) + * @return {@link BalanceAccount } + * @throws ApiException if fails to make API call + */ + public BalanceAccount updateBalanceAccount(String id, BalanceAccountUpdateRequest balanceAccountUpdateRequest) throws ApiException, IOException { + return updateBalanceAccount(id, balanceAccountUpdateRequest, null); } - pathParams.put("sweepId", sweepId); - - String requestBody = null; - Resource resource = - new Resource( - this, this.baseURL + "/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return SweepConfigurationV2.fromJson(jsonResult); - } - - /** - * Update a balance account - * - * @param id {@link String } The unique identifier of the balance account. (required) - * @param balanceAccountUpdateRequest {@link BalanceAccountUpdateRequest } (required) - * @return {@link BalanceAccount } - * @throws ApiException if fails to make API call - */ - public BalanceAccount updateBalanceAccount( - String id, BalanceAccountUpdateRequest balanceAccountUpdateRequest) - throws ApiException, IOException { - return updateBalanceAccount(id, balanceAccountUpdateRequest, null); - } - - /** - * Update a balance account - * - * @param id {@link String } The unique identifier of the balance account. (required) - * @param balanceAccountUpdateRequest {@link BalanceAccountUpdateRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link BalanceAccount } - * @throws ApiException if fails to make API call - */ - public BalanceAccount updateBalanceAccount( - String id, - BalanceAccountUpdateRequest balanceAccountUpdateRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + + /** + * Update a balance account + * + * @param id {@link String } The unique identifier of the balance account. (required) + * @param balanceAccountUpdateRequest {@link BalanceAccountUpdateRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link BalanceAccount } + * @throws ApiException if fails to make API call + */ + public BalanceAccount updateBalanceAccount(String id, BalanceAccountUpdateRequest balanceAccountUpdateRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = balanceAccountUpdateRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/balanceAccounts/{id}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return BalanceAccount.fromJson(jsonResult); } - pathParams.put("id", id); - - String requestBody = balanceAccountUpdateRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/balanceAccounts/{id}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return BalanceAccount.fromJson(jsonResult); - } - - /** - * Update a sweep - * - * @param balanceAccountId {@link String } The unique identifier of the balance account. - * (required) - * @param sweepId {@link String } The unique identifier of the sweep. (required) - * @param updateSweepConfigurationV2 {@link UpdateSweepConfigurationV2 } (required) - * @return {@link SweepConfigurationV2 } - * @throws ApiException if fails to make API call - */ - public SweepConfigurationV2 updateSweep( - String balanceAccountId, - String sweepId, - UpdateSweepConfigurationV2 updateSweepConfigurationV2) - throws ApiException, IOException { - return updateSweep(balanceAccountId, sweepId, updateSweepConfigurationV2, null); - } - - /** - * Update a sweep - * - * @param balanceAccountId {@link String } The unique identifier of the balance account. - * (required) - * @param sweepId {@link String } The unique identifier of the sweep. (required) - * @param updateSweepConfigurationV2 {@link UpdateSweepConfigurationV2 } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link SweepConfigurationV2 } - * @throws ApiException if fails to make API call - */ - public SweepConfigurationV2 updateSweep( - String balanceAccountId, - String sweepId, - UpdateSweepConfigurationV2 updateSweepConfigurationV2, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (balanceAccountId == null) { - throw new IllegalArgumentException("Please provide the balanceAccountId path parameter"); + + /** + * Update a sweep + * + * @param balanceAccountId {@link String } The unique identifier of the balance account. (required) + * @param sweepId {@link String } The unique identifier of the sweep. (required) + * @param updateSweepConfigurationV2 {@link UpdateSweepConfigurationV2 } (required) + * @return {@link SweepConfigurationV2 } + * @throws ApiException if fails to make API call + */ + public SweepConfigurationV2 updateSweep(String balanceAccountId, String sweepId, UpdateSweepConfigurationV2 updateSweepConfigurationV2) throws ApiException, IOException { + return updateSweep(balanceAccountId, sweepId, updateSweepConfigurationV2, null); } - pathParams.put("balanceAccountId", balanceAccountId); - if (sweepId == null) { - throw new IllegalArgumentException("Please provide the sweepId path parameter"); + + /** + * Update a sweep + * + * @param balanceAccountId {@link String } The unique identifier of the balance account. (required) + * @param sweepId {@link String } The unique identifier of the sweep. (required) + * @param updateSweepConfigurationV2 {@link UpdateSweepConfigurationV2 } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link SweepConfigurationV2 } + * @throws ApiException if fails to make API call + */ + public SweepConfigurationV2 updateSweep(String balanceAccountId, String sweepId, UpdateSweepConfigurationV2 updateSweepConfigurationV2, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (balanceAccountId == null) { + throw new IllegalArgumentException("Please provide the balanceAccountId path parameter"); + } + pathParams.put("balanceAccountId", balanceAccountId); + if (sweepId == null) { + throw new IllegalArgumentException("Please provide the sweepId path parameter"); + } + pathParams.put("sweepId", sweepId); + + String requestBody = updateSweepConfigurationV2.toJson(); + Resource resource = new Resource(this, this.baseURL + "/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return SweepConfigurationV2.fromJson(jsonResult); } - pathParams.put("sweepId", sweepId); - - String requestBody = updateSweepConfigurationV2.toJson(); - Resource resource = - new Resource( - this, this.baseURL + "/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return SweepConfigurationV2.fromJson(jsonResult); - } } diff --git a/src/main/java/com/adyen/service/balanceplatform/BalancesApi.java b/src/main/java/com/adyen/service/balanceplatform/BalancesApi.java index 6d93ac065..5b858f29d 100644 --- a/src/main/java/com/adyen/service/balanceplatform/BalancesApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/BalancesApi.java @@ -2,7 +2,7 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,338 +14,258 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.balanceplatform.BalanceWebhookSettingInfo; import com.adyen.model.balanceplatform.BalanceWebhookSettingInfoUpdate; +import com.adyen.model.balanceplatform.DefaultErrorResponseEntity; import com.adyen.model.balanceplatform.WebhookSetting; import com.adyen.model.balanceplatform.WebhookSettings; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class BalancesApi extends Service { - public static final String API_VERSION = "2"; - - protected String baseURL; - - /** - * Balances constructor in {@link com.adyen.service.balanceplatform package}. - * - * @param client {@link Client } (required) - */ - public BalancesApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); - } + public static final String API_VERSION = "2"; - /** - * Balances constructor in {@link com.adyen.service.balanceplatform package}. Please use this - * constructor only if you would like to pass along your own url for routing or testing purposes. - * The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public BalancesApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + protected String baseURL; - /** - * Create a balance webhook setting - * - * @param balancePlatformId {@link String } The unique identifier of the balance platform. - * (required) - * @param webhookId {@link String } The unique identifier of the balance webhook. (required) - * @param balanceWebhookSettingInfo {@link BalanceWebhookSettingInfo } (required) - * @param balanceWebhookSettingInfo {@link BalanceWebhookSettingInfo } (required) - * @return {@link WebhookSetting } - * @throws ApiException if fails to make API call - */ - public WebhookSetting createWebhookSetting( - String balancePlatformId, - String webhookId, - BalanceWebhookSettingInfo balanceWebhookSettingInfo) - throws ApiException, IOException { - return createWebhookSetting(balancePlatformId, webhookId, balanceWebhookSettingInfo, null); - } - - /** - * Create a balance webhook setting - * - * @param balancePlatformId {@link String } The unique identifier of the balance platform. - * (required) - * @param webhookId {@link String } The unique identifier of the balance webhook. (required) - * @param balanceWebhookSettingInfo {@link BalanceWebhookSettingInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link WebhookSetting } - * @throws ApiException if fails to make API call - */ - public WebhookSetting createWebhookSetting( - String balancePlatformId, - String webhookId, - BalanceWebhookSettingInfo balanceWebhookSettingInfo, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (balancePlatformId == null) { - throw new IllegalArgumentException("Please provide the balancePlatformId path parameter"); + /** + * Balances constructor in {@link com.adyen.service.balanceplatform package}. + * @param client {@link Client } (required) + */ + public BalancesApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); } - pathParams.put("balancePlatformId", balancePlatformId); - if (webhookId == null) { - throw new IllegalArgumentException("Please provide the webhookId path parameter"); + + /** + * Balances constructor in {@link com.adyen.service.balanceplatform package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public BalancesApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - pathParams.put("webhookId", webhookId); - String requestBody = balanceWebhookSettingInfo.toJson(); - Resource resource = - new Resource( - this, - this.baseURL + "/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings", - null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return WebhookSetting.fromJson(jsonResult); - } + /** + * Create a balance webhook setting + * + * @param balancePlatformId {@link String } The unique identifier of the balance platform. (required) + * @param webhookId {@link String } The unique identifier of the balance webhook. (required) + * @param balanceWebhookSettingInfo {@link BalanceWebhookSettingInfo } (required) + * @param balanceWebhookSettingInfo {@link BalanceWebhookSettingInfo } (required) + * @return {@link WebhookSetting } + * @throws ApiException if fails to make API call + */ + public WebhookSetting createWebhookSetting(String balancePlatformId, String webhookId, BalanceWebhookSettingInfo balanceWebhookSettingInfo) throws ApiException, IOException { + return createWebhookSetting(balancePlatformId, webhookId, balanceWebhookSettingInfo, null); + } - /** - * Delete a balance webhook setting by id - * - * @param balancePlatformId {@link String } The unique identifier of the balance platform. - * (required) - * @param webhookId {@link String } The unique identifier of the balance webhook. (required) - * @param settingId {@link String } The unique identifier of the balance webhook setting. - * (required) - * @throws ApiException if fails to make API call - */ - public void deleteWebhookSetting(String balancePlatformId, String webhookId, String settingId) - throws ApiException, IOException { - deleteWebhookSetting(balancePlatformId, webhookId, settingId, null); - } + /** + * Create a balance webhook setting + * + * @param balancePlatformId {@link String } The unique identifier of the balance platform. (required) + * @param webhookId {@link String } The unique identifier of the balance webhook. (required) + * @param balanceWebhookSettingInfo {@link BalanceWebhookSettingInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link WebhookSetting } + * @throws ApiException if fails to make API call + */ + public WebhookSetting createWebhookSetting(String balancePlatformId, String webhookId, BalanceWebhookSettingInfo balanceWebhookSettingInfo, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (balancePlatformId == null) { + throw new IllegalArgumentException("Please provide the balancePlatformId path parameter"); + } + pathParams.put("balancePlatformId", balancePlatformId); + if (webhookId == null) { + throw new IllegalArgumentException("Please provide the webhookId path parameter"); + } + pathParams.put("webhookId", webhookId); - /** - * Delete a balance webhook setting by id - * - * @param balancePlatformId {@link String } The unique identifier of the balance platform. - * (required) - * @param webhookId {@link String } The unique identifier of the balance webhook. (required) - * @param settingId {@link String } The unique identifier of the balance webhook setting. - * (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void deleteWebhookSetting( - String balancePlatformId, String webhookId, String settingId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (balancePlatformId == null) { - throw new IllegalArgumentException("Please provide the balancePlatformId path parameter"); - } - pathParams.put("balancePlatformId", balancePlatformId); - if (webhookId == null) { - throw new IllegalArgumentException("Please provide the webhookId path parameter"); - } - pathParams.put("webhookId", webhookId); - if (settingId == null) { - throw new IllegalArgumentException("Please provide the settingId path parameter"); + String requestBody = balanceWebhookSettingInfo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return WebhookSetting.fromJson(jsonResult); } - pathParams.put("settingId", settingId); - String requestBody = null; - Resource resource = - new Resource( - this, - this.baseURL - + "/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings/{settingId}", - null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); - } + /** + * Delete a balance webhook setting by id + * + * @param balancePlatformId {@link String } The unique identifier of the balance platform. (required) + * @param webhookId {@link String } The unique identifier of the balance webhook. (required) + * @param settingId {@link String } The unique identifier of the balance webhook setting. (required) + * @throws ApiException if fails to make API call + */ + public void deleteWebhookSetting(String balancePlatformId, String webhookId, String settingId) throws ApiException, IOException { + deleteWebhookSetting(balancePlatformId, webhookId, settingId, null); + } - /** - * Get all balance webhook settings - * - * @param balancePlatformId {@link String } The unique identifier of the balance platform. - * (required) - * @param webhookId {@link String } The unique identifier of the balance webhook. (required) - * @return {@link WebhookSettings } - * @throws ApiException if fails to make API call - */ - public WebhookSettings getAllWebhookSettings(String balancePlatformId, String webhookId) - throws ApiException, IOException { - return getAllWebhookSettings(balancePlatformId, webhookId, null); - } + /** + * Delete a balance webhook setting by id + * + * @param balancePlatformId {@link String } The unique identifier of the balance platform. (required) + * @param webhookId {@link String } The unique identifier of the balance webhook. (required) + * @param settingId {@link String } The unique identifier of the balance webhook setting. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void deleteWebhookSetting(String balancePlatformId, String webhookId, String settingId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (balancePlatformId == null) { + throw new IllegalArgumentException("Please provide the balancePlatformId path parameter"); + } + pathParams.put("balancePlatformId", balancePlatformId); + if (webhookId == null) { + throw new IllegalArgumentException("Please provide the webhookId path parameter"); + } + pathParams.put("webhookId", webhookId); + if (settingId == null) { + throw new IllegalArgumentException("Please provide the settingId path parameter"); + } + pathParams.put("settingId", settingId); - /** - * Get all balance webhook settings - * - * @param balancePlatformId {@link String } The unique identifier of the balance platform. - * (required) - * @param webhookId {@link String } The unique identifier of the balance webhook. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link WebhookSettings } - * @throws ApiException if fails to make API call - */ - public WebhookSettings getAllWebhookSettings( - String balancePlatformId, String webhookId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (balancePlatformId == null) { - throw new IllegalArgumentException("Please provide the balancePlatformId path parameter"); - } - pathParams.put("balancePlatformId", balancePlatformId); - if (webhookId == null) { - throw new IllegalArgumentException("Please provide the webhookId path parameter"); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings/{settingId}", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); } - pathParams.put("webhookId", webhookId); - String requestBody = null; - Resource resource = - new Resource( - this, - this.baseURL + "/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings", - null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return WebhookSettings.fromJson(jsonResult); - } + /** + * Get all balance webhook settings + * + * @param balancePlatformId {@link String } The unique identifier of the balance platform. (required) + * @param webhookId {@link String } The unique identifier of the balance webhook. (required) + * @return {@link WebhookSettings } + * @throws ApiException if fails to make API call + */ + public WebhookSettings getAllWebhookSettings(String balancePlatformId, String webhookId) throws ApiException, IOException { + return getAllWebhookSettings(balancePlatformId, webhookId, null); + } - /** - * Get a balance webhook setting by id - * - * @param balancePlatformId {@link String } The unique identifier of the balance platform. - * (required) - * @param webhookId {@link String } The unique identifier of the balance webhook. (required) - * @param settingId {@link String } The unique identifier of the balance webhook setting. - * (required) - * @return {@link WebhookSetting } - * @throws ApiException if fails to make API call - */ - public WebhookSetting getWebhookSetting( - String balancePlatformId, String webhookId, String settingId) - throws ApiException, IOException { - return getWebhookSetting(balancePlatformId, webhookId, settingId, null); - } + /** + * Get all balance webhook settings + * + * @param balancePlatformId {@link String } The unique identifier of the balance platform. (required) + * @param webhookId {@link String } The unique identifier of the balance webhook. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link WebhookSettings } + * @throws ApiException if fails to make API call + */ + public WebhookSettings getAllWebhookSettings(String balancePlatformId, String webhookId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (balancePlatformId == null) { + throw new IllegalArgumentException("Please provide the balancePlatformId path parameter"); + } + pathParams.put("balancePlatformId", balancePlatformId); + if (webhookId == null) { + throw new IllegalArgumentException("Please provide the webhookId path parameter"); + } + pathParams.put("webhookId", webhookId); - /** - * Get a balance webhook setting by id - * - * @param balancePlatformId {@link String } The unique identifier of the balance platform. - * (required) - * @param webhookId {@link String } The unique identifier of the balance webhook. (required) - * @param settingId {@link String } The unique identifier of the balance webhook setting. - * (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link WebhookSetting } - * @throws ApiException if fails to make API call - */ - public WebhookSetting getWebhookSetting( - String balancePlatformId, String webhookId, String settingId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (balancePlatformId == null) { - throw new IllegalArgumentException("Please provide the balancePlatformId path parameter"); - } - pathParams.put("balancePlatformId", balancePlatformId); - if (webhookId == null) { - throw new IllegalArgumentException("Please provide the webhookId path parameter"); - } - pathParams.put("webhookId", webhookId); - if (settingId == null) { - throw new IllegalArgumentException("Please provide the settingId path parameter"); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return WebhookSettings.fromJson(jsonResult); } - pathParams.put("settingId", settingId); - String requestBody = null; - Resource resource = - new Resource( - this, - this.baseURL - + "/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings/{settingId}", - null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return WebhookSetting.fromJson(jsonResult); - } + /** + * Get a balance webhook setting by id + * + * @param balancePlatformId {@link String } The unique identifier of the balance platform. (required) + * @param webhookId {@link String } The unique identifier of the balance webhook. (required) + * @param settingId {@link String } The unique identifier of the balance webhook setting. (required) + * @return {@link WebhookSetting } + * @throws ApiException if fails to make API call + */ + public WebhookSetting getWebhookSetting(String balancePlatformId, String webhookId, String settingId) throws ApiException, IOException { + return getWebhookSetting(balancePlatformId, webhookId, settingId, null); + } - /** - * Update a balance webhook setting by id - * - * @param balancePlatformId {@link String } The unique identifier of the balance platform. - * (required) - * @param webhookId {@link String } The unique identifier of the balance webhook. (required) - * @param settingId {@link String } The unique identifier of the balance webhook setting. - * (required) - * @param balanceWebhookSettingInfoUpdate {@link BalanceWebhookSettingInfoUpdate } (required) - * @param balanceWebhookSettingInfoUpdate {@link BalanceWebhookSettingInfoUpdate } (required) - * @return {@link WebhookSetting } - * @throws ApiException if fails to make API call - */ - public WebhookSetting updateWebhookSetting( - String balancePlatformId, - String webhookId, - String settingId, - BalanceWebhookSettingInfoUpdate balanceWebhookSettingInfoUpdate) - throws ApiException, IOException { - return updateWebhookSetting( - balancePlatformId, webhookId, settingId, balanceWebhookSettingInfoUpdate, null); - } + /** + * Get a balance webhook setting by id + * + * @param balancePlatformId {@link String } The unique identifier of the balance platform. (required) + * @param webhookId {@link String } The unique identifier of the balance webhook. (required) + * @param settingId {@link String } The unique identifier of the balance webhook setting. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link WebhookSetting } + * @throws ApiException if fails to make API call + */ + public WebhookSetting getWebhookSetting(String balancePlatformId, String webhookId, String settingId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (balancePlatformId == null) { + throw new IllegalArgumentException("Please provide the balancePlatformId path parameter"); + } + pathParams.put("balancePlatformId", balancePlatformId); + if (webhookId == null) { + throw new IllegalArgumentException("Please provide the webhookId path parameter"); + } + pathParams.put("webhookId", webhookId); + if (settingId == null) { + throw new IllegalArgumentException("Please provide the settingId path parameter"); + } + pathParams.put("settingId", settingId); - /** - * Update a balance webhook setting by id - * - * @param balancePlatformId {@link String } The unique identifier of the balance platform. - * (required) - * @param webhookId {@link String } The unique identifier of the balance webhook. (required) - * @param settingId {@link String } The unique identifier of the balance webhook setting. - * (required) - * @param balanceWebhookSettingInfoUpdate {@link BalanceWebhookSettingInfoUpdate } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link WebhookSetting } - * @throws ApiException if fails to make API call - */ - public WebhookSetting updateWebhookSetting( - String balancePlatformId, - String webhookId, - String settingId, - BalanceWebhookSettingInfoUpdate balanceWebhookSettingInfoUpdate, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (balancePlatformId == null) { - throw new IllegalArgumentException("Please provide the balancePlatformId path parameter"); - } - pathParams.put("balancePlatformId", balancePlatformId); - if (webhookId == null) { - throw new IllegalArgumentException("Please provide the webhookId path parameter"); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings/{settingId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return WebhookSetting.fromJson(jsonResult); } - pathParams.put("webhookId", webhookId); - if (settingId == null) { - throw new IllegalArgumentException("Please provide the settingId path parameter"); + + /** + * Update a balance webhook setting by id + * + * @param balancePlatformId {@link String } The unique identifier of the balance platform. (required) + * @param webhookId {@link String } The unique identifier of the balance webhook. (required) + * @param settingId {@link String } The unique identifier of the balance webhook setting. (required) + * @param balanceWebhookSettingInfoUpdate {@link BalanceWebhookSettingInfoUpdate } (required) + * @param balanceWebhookSettingInfoUpdate {@link BalanceWebhookSettingInfoUpdate } (required) + * @return {@link WebhookSetting } + * @throws ApiException if fails to make API call + */ + public WebhookSetting updateWebhookSetting(String balancePlatformId, String webhookId, String settingId, BalanceWebhookSettingInfoUpdate balanceWebhookSettingInfoUpdate) throws ApiException, IOException { + return updateWebhookSetting(balancePlatformId, webhookId, settingId, balanceWebhookSettingInfoUpdate, null); } - pathParams.put("settingId", settingId); - String requestBody = balanceWebhookSettingInfoUpdate.toJson(); - Resource resource = - new Resource( - this, - this.baseURL - + "/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings/{settingId}", - null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return WebhookSetting.fromJson(jsonResult); - } + /** + * Update a balance webhook setting by id + * + * @param balancePlatformId {@link String } The unique identifier of the balance platform. (required) + * @param webhookId {@link String } The unique identifier of the balance webhook. (required) + * @param settingId {@link String } The unique identifier of the balance webhook setting. (required) + * @param balanceWebhookSettingInfoUpdate {@link BalanceWebhookSettingInfoUpdate } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link WebhookSetting } + * @throws ApiException if fails to make API call + */ + public WebhookSetting updateWebhookSetting(String balancePlatformId, String webhookId, String settingId, BalanceWebhookSettingInfoUpdate balanceWebhookSettingInfoUpdate, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (balancePlatformId == null) { + throw new IllegalArgumentException("Please provide the balancePlatformId path parameter"); + } + pathParams.put("balancePlatformId", balancePlatformId); + if (webhookId == null) { + throw new IllegalArgumentException("Please provide the webhookId path parameter"); + } + pathParams.put("webhookId", webhookId); + if (settingId == null) { + throw new IllegalArgumentException("Please provide the settingId path parameter"); + } + pathParams.put("settingId", settingId); + + String requestBody = balanceWebhookSettingInfoUpdate.toJson(); + Resource resource = new Resource(this, this.baseURL + "/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings/{settingId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return WebhookSetting.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/balanceplatform/BankAccountValidationApi.java b/src/main/java/com/adyen/service/balanceplatform/BankAccountValidationApi.java index 1de08d0ff..91ff06c40 100644 --- a/src/main/java/com/adyen/service/balanceplatform/BankAccountValidationApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/BankAccountValidationApi.java @@ -2,7 +2,7 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,70 +14,62 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.balanceplatform.BankAccountIdentificationValidationRequest; +import com.adyen.model.balanceplatform.RestServiceError; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; +import java.util.HashMap; +import java.util.Map; public class BankAccountValidationApi extends Service { - public static final String API_VERSION = "2"; + public static final String API_VERSION = "2"; - protected String baseURL; + protected String baseURL; - /** - * Bank account validation constructor in {@link com.adyen.service.balanceplatform package}. - * - * @param client {@link Client } (required) - */ - public BankAccountValidationApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); - } + /** + * Bank account validation constructor in {@link com.adyen.service.balanceplatform package}. + * @param client {@link Client } (required) + */ + public BankAccountValidationApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); + } - /** - * Bank account validation constructor in {@link com.adyen.service.balanceplatform package}. - * Please use this constructor only if you would like to pass along your own url for routing or - * testing purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public BankAccountValidationApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Bank account validation constructor in {@link com.adyen.service.balanceplatform package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public BankAccountValidationApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Validate a bank account - * - * @param bankAccountIdentificationValidationRequest {@link - * BankAccountIdentificationValidationRequest } (required) - * @throws ApiException if fails to make API call - */ - public void validateBankAccountIdentification( - BankAccountIdentificationValidationRequest bankAccountIdentificationValidationRequest) - throws ApiException, IOException { - validateBankAccountIdentification(bankAccountIdentificationValidationRequest, null); - } + /** + * Validate a bank account + * + * @param bankAccountIdentificationValidationRequest {@link BankAccountIdentificationValidationRequest } (required) + * @throws ApiException if fails to make API call + */ + public void validateBankAccountIdentification(BankAccountIdentificationValidationRequest bankAccountIdentificationValidationRequest) throws ApiException, IOException { + validateBankAccountIdentification(bankAccountIdentificationValidationRequest, null); + } - /** - * Validate a bank account - * - * @param bankAccountIdentificationValidationRequest {@link - * BankAccountIdentificationValidationRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void validateBankAccountIdentification( - BankAccountIdentificationValidationRequest bankAccountIdentificationValidationRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = bankAccountIdentificationValidationRequest.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/validateBankAccountIdentification", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - } + /** + * Validate a bank account + * + * @param bankAccountIdentificationValidationRequest {@link BankAccountIdentificationValidationRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void validateBankAccountIdentification(BankAccountIdentificationValidationRequest bankAccountIdentificationValidationRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = bankAccountIdentificationValidationRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/validateBankAccountIdentification", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + } } diff --git a/src/main/java/com/adyen/service/balanceplatform/CardOrdersApi.java b/src/main/java/com/adyen/service/balanceplatform/CardOrdersApi.java index 8790a51de..e7188f640 100644 --- a/src/main/java/com/adyen/service/balanceplatform/CardOrdersApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/CardOrdersApi.java @@ -2,7 +2,7 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,198 +14,156 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; +import java.time.OffsetDateTime; import com.adyen.model.balanceplatform.PaginatedGetCardOrderItemResponse; import com.adyen.model.balanceplatform.PaginatedGetCardOrderResponse; +import com.adyen.model.balanceplatform.RestServiceError; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; -import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; public class CardOrdersApi extends Service { - public static final String API_VERSION = "2"; + public static final String API_VERSION = "2"; - protected String baseURL; + protected String baseURL; - /** - * Card orders constructor in {@link com.adyen.service.balanceplatform package}. - * - * @param client {@link Client } (required) - */ - public CardOrdersApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); - } - - /** - * Card orders constructor in {@link com.adyen.service.balanceplatform package}. Please use this - * constructor only if you would like to pass along your own url for routing or testing purposes. - * The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public CardOrdersApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Get card order items - * - * @param id {@link String } The unique identifier of the card order. (required) - * @return {@link PaginatedGetCardOrderItemResponse } - * @throws ApiException if fails to make API call - */ - public PaginatedGetCardOrderItemResponse getCardOrderItems(String id) - throws ApiException, IOException { - return getCardOrderItems(id, null, null, null); - } - - /** - * Get card order items - * - * @param id {@link String } The unique identifier of the card order. (required) - * @param offset {@link Integer } Query: Specifies the position of an element in a list of card - * orders. The response includes a list of card order items that starts at the specified - * offset. **Default:** 0, which means that the response contains all the elements in the list - * of card order items. (optional) - * @param limit {@link Integer } Query: The number of card order items returned per page. - * **Default:** 10. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PaginatedGetCardOrderItemResponse } - * @throws ApiException if fails to make API call - */ - public PaginatedGetCardOrderItemResponse getCardOrderItems( - String id, Integer offset, Integer limit, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + /** + * Card orders constructor in {@link com.adyen.service.balanceplatform package}. + * @param client {@link Client } (required) + */ + public CardOrdersApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); } - pathParams.put("id", id); - // Add query params - Map queryParams = new HashMap<>(); - if (offset != null) { - queryParams.put("offset", offset.toString()); + /** + * Card orders constructor in {@link com.adyen.service.balanceplatform package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public CardOrdersApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - if (limit != null) { - queryParams.put("limit", limit.toString()); + + /** + * Get card order items + * + * @param id {@link String } The unique identifier of the card order. (required) + * @return {@link PaginatedGetCardOrderItemResponse } + * @throws ApiException if fails to make API call + */ + public PaginatedGetCardOrderItemResponse getCardOrderItems(String id) throws ApiException, IOException { + return getCardOrderItems(id, null, null, null); } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/cardorders/{id}/items", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return PaginatedGetCardOrderItemResponse.fromJson(jsonResult); - } + /** + * Get card order items + * + * @param id {@link String } The unique identifier of the card order. (required) + * @param offset {@link Integer } Query: Specifies the position of an element in a list of card orders. The response includes a list of card order items that starts at the specified offset. **Default:** 0, which means that the response contains all the elements in the list of card order items. (optional) + * @param limit {@link Integer } Query: The number of card order items returned per page. **Default:** 10. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PaginatedGetCardOrderItemResponse } + * @throws ApiException if fails to make API call + */ + public PaginatedGetCardOrderItemResponse getCardOrderItems(String id, Integer offset, Integer limit, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); - /** - * Get a list of card orders - * - * @return {@link PaginatedGetCardOrderResponse } - * @throws ApiException if fails to make API call - */ - public PaginatedGetCardOrderResponse listCardOrders() throws ApiException, IOException { - return listCardOrders(null, null, null, null, null, null, null, null, null, null, null, null); - } + //Add query params + Map queryParams = new HashMap<>(); + if (offset != null) { + queryParams.put("offset", offset.toString()); + } + if (limit != null) { + queryParams.put("limit", limit.toString()); + } - /** - * Get a list of card orders - * - * @param id {@link String } Query: The unique identifier of the card order. (optional) - * @param cardManufacturingProfileId {@link String } Query: The unique identifier of the card - * manufacturer profile. (optional) - * @param status {@link String } Query: The status of the card order. (optional) - * @param txVariantCode {@link String } Query: The unique code of the card manufacturer profile. - * Possible values: **mcmaestro**, **mc**, **visa**, **mcdebit**. (optional) - * @param createdSince {@link OffsetDateTime } Query: Only include card orders that have been - * created on or after this point in time. The value must be in ISO 8601 format. For example, - * **2021-05-30T15:07:40Z**. (optional) - * @param createdUntil {@link OffsetDateTime } Query: Only include card orders that have been - * created on or before this point in time. The value must be in ISO 8601 format. For example, - * **2021-05-30T15:07:40Z**. (optional) - * @param lockedSince {@link OffsetDateTime } Query: Only include card orders that have been - * locked on or after this point in time. The value must be in ISO 8601 format. For example, - * **2021-05-30T15:07:40Z**. (optional) - * @param lockedUntil {@link OffsetDateTime } Query: Only include card orders that have been - * locked on or before this point in time. The value must be in ISO 8601 format. For example, - * **2021-05-30T15:07:40Z**. (optional) - * @param serviceCenter {@link String } Query: The service center at which the card is issued. The - * value is case-sensitive. (optional) - * @param offset {@link Integer } Query: Specifies the position of an element in a list of card - * orders. The response includes a list of card orders that starts at the specified offset. - * **Default:** 0, which means that the response contains all the elements in the list of card - * orders. (optional) - * @param limit {@link Integer } Query: The number of card orders returned per page. **Default:** - * 10. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PaginatedGetCardOrderResponse } - * @throws ApiException if fails to make API call - */ - public PaginatedGetCardOrderResponse listCardOrders( - String id, - String cardManufacturingProfileId, - String status, - String txVariantCode, - OffsetDateTime createdSince, - OffsetDateTime createdUntil, - OffsetDateTime lockedSince, - OffsetDateTime lockedUntil, - String serviceCenter, - Integer offset, - Integer limit, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add query params - Map queryParams = new HashMap<>(); - if (id != null) { - queryParams.put("id", id); - } - if (cardManufacturingProfileId != null) { - queryParams.put("cardManufacturingProfileId", cardManufacturingProfileId); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/cardorders/{id}/items", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return PaginatedGetCardOrderItemResponse.fromJson(jsonResult); } - if (status != null) { - queryParams.put("status", status); - } - if (txVariantCode != null) { - queryParams.put("txVariantCode", txVariantCode); - } - if (createdSince != null) { - queryParams.put("createdSince", createdSince.toString()); - } - if (createdUntil != null) { - queryParams.put("createdUntil", createdUntil.toString()); - } - if (lockedSince != null) { - queryParams.put("lockedSince", lockedSince.toString()); - } - if (lockedUntil != null) { - queryParams.put("lockedUntil", lockedUntil.toString()); - } - if (serviceCenter != null) { - queryParams.put("serviceCenter", serviceCenter); - } - if (offset != null) { - queryParams.put("offset", offset.toString()); - } - if (limit != null) { - queryParams.put("limit", limit.toString()); + + /** + * Get a list of card orders + * + * @return {@link PaginatedGetCardOrderResponse } + * @throws ApiException if fails to make API call + */ + public PaginatedGetCardOrderResponse listCardOrders() throws ApiException, IOException { + return listCardOrders(null, null, null, null, null, null, null, null, null, null, null, null); } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/cardorders", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); - return PaginatedGetCardOrderResponse.fromJson(jsonResult); - } + /** + * Get a list of card orders + * + * @param id {@link String } Query: The unique identifier of the card order. (optional) + * @param cardManufacturingProfileId {@link String } Query: The unique identifier of the card manufacturer profile. (optional) + * @param status {@link String } Query: The status of the card order. (optional) + * @param txVariantCode {@link String } Query: The unique code of the card manufacturer profile. Possible values: **mcmaestro**, **mc**, **visa**, **mcdebit**. (optional) + * @param createdSince {@link OffsetDateTime } Query: Only include card orders that have been created on or after this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**. (optional) + * @param createdUntil {@link OffsetDateTime } Query: Only include card orders that have been created on or before this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**. (optional) + * @param lockedSince {@link OffsetDateTime } Query: Only include card orders that have been locked on or after this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**. (optional) + * @param lockedUntil {@link OffsetDateTime } Query: Only include card orders that have been locked on or before this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**. (optional) + * @param serviceCenter {@link String } Query: The service center at which the card is issued. The value is case-sensitive. (optional) + * @param offset {@link Integer } Query: Specifies the position of an element in a list of card orders. The response includes a list of card orders that starts at the specified offset. **Default:** 0, which means that the response contains all the elements in the list of card orders. (optional) + * @param limit {@link Integer } Query: The number of card orders returned per page. **Default:** 10. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PaginatedGetCardOrderResponse } + * @throws ApiException if fails to make API call + */ + public PaginatedGetCardOrderResponse listCardOrders(String id, String cardManufacturingProfileId, String status, String txVariantCode, OffsetDateTime createdSince, OffsetDateTime createdUntil, OffsetDateTime lockedSince, OffsetDateTime lockedUntil, String serviceCenter, Integer offset, Integer limit, RequestOptions requestOptions) throws ApiException, IOException { + //Add query params + Map queryParams = new HashMap<>(); + if (id != null) { + queryParams.put("id", id); + } + if (cardManufacturingProfileId != null) { + queryParams.put("cardManufacturingProfileId", cardManufacturingProfileId); + } + if (status != null) { + queryParams.put("status", status); + } + if (txVariantCode != null) { + queryParams.put("txVariantCode", txVariantCode); + } + if (createdSince != null) { + queryParams.put("createdSince", createdSince.toString()); + } + if (createdUntil != null) { + queryParams.put("createdUntil", createdUntil.toString()); + } + if (lockedSince != null) { + queryParams.put("lockedSince", lockedSince.toString()); + } + if (lockedUntil != null) { + queryParams.put("lockedUntil", lockedUntil.toString()); + } + if (serviceCenter != null) { + queryParams.put("serviceCenter", serviceCenter); + } + if (offset != null) { + queryParams.put("offset", offset.toString()); + } + if (limit != null) { + queryParams.put("limit", limit.toString()); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/cardorders", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); + return PaginatedGetCardOrderResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/balanceplatform/GrantAccountsApi.java b/src/main/java/com/adyen/service/balanceplatform/GrantAccountsApi.java index 9ff3c47eb..79c449375 100644 --- a/src/main/java/com/adyen/service/balanceplatform/GrantAccountsApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/GrantAccountsApi.java @@ -2,7 +2,7 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,82 +14,78 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.balanceplatform.CapitalGrantAccount; +import com.adyen.model.balanceplatform.RestServiceError; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class GrantAccountsApi extends Service { - public static final String API_VERSION = "2"; - - protected String baseURL; + public static final String API_VERSION = "2"; - /** - * Grant accounts constructor in {@link com.adyen.service.balanceplatform package}. - * - * @param client {@link Client } (required) - */ - public GrantAccountsApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); - } + protected String baseURL; - /** - * Grant accounts constructor in {@link com.adyen.service.balanceplatform package}. Please use - * this constructor only if you would like to pass along your own url for routing or testing - * purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public GrantAccountsApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Grant accounts constructor in {@link com.adyen.service.balanceplatform package}. + * @param client {@link Client } (required) + */ + public GrantAccountsApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); + } - /** - * Get a grant account - * - * @param id {@link String } The unique identifier of the grant account. (required) - * @return {@link CapitalGrantAccount } - * @throws ApiException if fails to make API call - * @deprecated since Configuration API v2 Use the `/grantAccounts/{id}` endpoint from the [Capital - * API](https://docs.adyen.com/api-explorer/capital/latest/get/grantAccounts/(id)) instead. - */ - @Deprecated - public CapitalGrantAccount getGrantAccount(String id) throws ApiException, IOException { - return getGrantAccount(id, null); - } + /** + * Grant accounts constructor in {@link com.adyen.service.balanceplatform package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public GrantAccountsApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Get a grant account - * - * @param id {@link String } The unique identifier of the grant account. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link CapitalGrantAccount } - * @throws ApiException if fails to make API call - * @deprecated since Configuration API v2 Use the `/grantAccounts/{id}` endpoint from the [Capital - * API](https://docs.adyen.com/api-explorer/capital/latest/get/grantAccounts/(id)) instead. - */ - @Deprecated - public CapitalGrantAccount getGrantAccount(String id, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + /** + * Get a grant account + * + * @param id {@link String } The unique identifier of the grant account. (required) + * @return {@link CapitalGrantAccount } + * @throws ApiException if fails to make API call + * @deprecated since Configuration API v2 + * Use the `/grantAccounts/{id}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantAccounts/(id)) instead. + */ + @Deprecated + public CapitalGrantAccount getGrantAccount(String id) throws ApiException, IOException { + return getGrantAccount(id, null); } - pathParams.put("id", id); - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/grantAccounts/{id}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return CapitalGrantAccount.fromJson(jsonResult); - } + /** + * Get a grant account + * + * @param id {@link String } The unique identifier of the grant account. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link CapitalGrantAccount } + * @throws ApiException if fails to make API call + * @deprecated since Configuration API v2 + * Use the `/grantAccounts/{id}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantAccounts/(id)) instead. + */ + @Deprecated + public CapitalGrantAccount getGrantAccount(String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/grantAccounts/{id}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return CapitalGrantAccount.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/balanceplatform/GrantOffersApi.java b/src/main/java/com/adyen/service/balanceplatform/GrantOffersApi.java index 2c932c4f3..ef6deb842 100644 --- a/src/main/java/com/adyen/service/balanceplatform/GrantOffersApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/GrantOffersApi.java @@ -2,7 +2,7 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,127 +14,117 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.balanceplatform.GrantOffer; import com.adyen.model.balanceplatform.GrantOffers; +import com.adyen.model.balanceplatform.RestServiceError; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class GrantOffersApi extends Service { - public static final String API_VERSION = "2"; - - protected String baseURL; + public static final String API_VERSION = "2"; - /** - * Grant offers constructor in {@link com.adyen.service.balanceplatform package}. - * - * @param client {@link Client } (required) - */ - public GrantOffersApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); - } + protected String baseURL; - /** - * Grant offers constructor in {@link com.adyen.service.balanceplatform package}. Please use this - * constructor only if you would like to pass along your own url for routing or testing purposes. - * The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public GrantOffersApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Grant offers constructor in {@link com.adyen.service.balanceplatform package}. + * @param client {@link Client } (required) + */ + public GrantOffersApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); + } - /** - * Get all available grant offers - * - * @param accountHolderId {@link String } The unique identifier of the grant account. (required) - * @return {@link GrantOffers } - * @throws ApiException if fails to make API call - * @deprecated since Configuration API v2 Use the `/grantOffers` endpoint from the [Capital - * API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers) instead. - */ - @Deprecated - public GrantOffers getAllAvailableGrantOffers(String accountHolderId) - throws ApiException, IOException { - return getAllAvailableGrantOffers(accountHolderId, null); - } + /** + * Grant offers constructor in {@link com.adyen.service.balanceplatform package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public GrantOffersApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Get all available grant offers - * - * @param accountHolderId {@link String } Query: The unique identifier of the grant account. - * (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link GrantOffers } - * @throws ApiException if fails to make API call - * @deprecated since Configuration API v2 Use the `/grantOffers` endpoint from the [Capital - * API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers) instead. - */ - @Deprecated - public GrantOffers getAllAvailableGrantOffers( - String accountHolderId, RequestOptions requestOptions) throws ApiException, IOException { - // Add query params - Map queryParams = new HashMap<>(); - if (accountHolderId != null) { - queryParams.put("accountHolderId", accountHolderId); + /** + * Get all available grant offers + * + * @param accountHolderId {@link String } The unique identifier of the grant account. (required) + * @return {@link GrantOffers } + * @throws ApiException if fails to make API call + * @deprecated since Configuration API v2 + * Use the `/grantOffers` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers) instead. + */ + @Deprecated + public GrantOffers getAllAvailableGrantOffers(String accountHolderId) throws ApiException, IOException { + return getAllAvailableGrantOffers(accountHolderId, null); } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/grantOffers", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); - return GrantOffers.fromJson(jsonResult); - } + /** + * Get all available grant offers + * + * @param accountHolderId {@link String } Query: The unique identifier of the grant account. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link GrantOffers } + * @throws ApiException if fails to make API call + * @deprecated since Configuration API v2 + * Use the `/grantOffers` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers) instead. + */ + @Deprecated + public GrantOffers getAllAvailableGrantOffers(String accountHolderId, RequestOptions requestOptions) throws ApiException, IOException { + //Add query params + Map queryParams = new HashMap<>(); + if (accountHolderId != null) { + queryParams.put("accountHolderId", accountHolderId); + } - /** - * Get a grant offer - * - * @param grantOfferId {@link String } The unique identifier of the grant offer. (required) - * @return {@link GrantOffer } - * @throws ApiException if fails to make API call - * @deprecated since Configuration API v2 Use the `/grantOffers/{id}` endpoint from the [Capital - * API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers/(id)) instead. - */ - @Deprecated - public GrantOffer getGrantOffer(String grantOfferId) throws ApiException, IOException { - return getGrantOffer(grantOfferId, null); - } + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/grantOffers", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); + return GrantOffers.fromJson(jsonResult); + } - /** - * Get a grant offer - * - * @param grantOfferId {@link String } The unique identifier of the grant offer. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link GrantOffer } - * @throws ApiException if fails to make API call - * @deprecated since Configuration API v2 Use the `/grantOffers/{id}` endpoint from the [Capital - * API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers/(id)) instead. - */ - @Deprecated - public GrantOffer getGrantOffer(String grantOfferId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (grantOfferId == null) { - throw new IllegalArgumentException("Please provide the grantOfferId path parameter"); + /** + * Get a grant offer + * + * @param grantOfferId {@link String } The unique identifier of the grant offer. (required) + * @return {@link GrantOffer } + * @throws ApiException if fails to make API call + * @deprecated since Configuration API v2 + * Use the `/grantOffers/{id}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers/(id)) instead. + */ + @Deprecated + public GrantOffer getGrantOffer(String grantOfferId) throws ApiException, IOException { + return getGrantOffer(grantOfferId, null); } - pathParams.put("grantOfferId", grantOfferId); - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/grantOffers/{grantOfferId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return GrantOffer.fromJson(jsonResult); - } + /** + * Get a grant offer + * + * @param grantOfferId {@link String } The unique identifier of the grant offer. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link GrantOffer } + * @throws ApiException if fails to make API call + * @deprecated since Configuration API v2 + * Use the `/grantOffers/{id}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers/(id)) instead. + */ + @Deprecated + public GrantOffer getGrantOffer(String grantOfferId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (grantOfferId == null) { + throw new IllegalArgumentException("Please provide the grantOfferId path parameter"); + } + pathParams.put("grantOfferId", grantOfferId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/grantOffers/{grantOfferId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return GrantOffer.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/balanceplatform/ManageCardPinApi.java b/src/main/java/com/adyen/service/balanceplatform/ManageCardPinApi.java index b880ede5e..30e6e1d7e 100644 --- a/src/main/java/com/adyen/service/balanceplatform/ManageCardPinApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/ManageCardPinApi.java @@ -2,7 +2,7 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,147 +14,130 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.balanceplatform.PinChangeRequest; import com.adyen.model.balanceplatform.PinChangeResponse; import com.adyen.model.balanceplatform.PublicKeyResponse; +import com.adyen.model.balanceplatform.RestServiceError; import com.adyen.model.balanceplatform.RevealPinRequest; import com.adyen.model.balanceplatform.RevealPinResponse; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class ManageCardPinApi extends Service { - public static final String API_VERSION = "2"; + public static final String API_VERSION = "2"; - protected String baseURL; + protected String baseURL; - /** - * Manage card PIN constructor in {@link com.adyen.service.balanceplatform package}. - * - * @param client {@link Client } (required) - */ - public ManageCardPinApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); - } - - /** - * Manage card PIN constructor in {@link com.adyen.service.balanceplatform package}. Please use - * this constructor only if you would like to pass along your own url for routing or testing - * purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public ManageCardPinApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Change a card PIN - * - * @param pinChangeRequest {@link PinChangeRequest } (required) - * @return {@link PinChangeResponse } - * @throws ApiException if fails to make API call - */ - public PinChangeResponse changeCardPin(PinChangeRequest pinChangeRequest) - throws ApiException, IOException { - return changeCardPin(pinChangeRequest, null); - } + /** + * Manage card PIN constructor in {@link com.adyen.service.balanceplatform package}. + * @param client {@link Client } (required) + */ + public ManageCardPinApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); + } - /** - * Change a card PIN - * - * @param pinChangeRequest {@link PinChangeRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PinChangeResponse } - * @throws ApiException if fails to make API call - */ - public PinChangeResponse changeCardPin( - PinChangeRequest pinChangeRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = pinChangeRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/pins/change", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return PinChangeResponse.fromJson(jsonResult); - } + /** + * Manage card PIN constructor in {@link com.adyen.service.balanceplatform package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public ManageCardPinApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Get an RSA public key - * - * @return {@link PublicKeyResponse } - * @throws ApiException if fails to make API call - */ - public PublicKeyResponse publicKey() throws ApiException, IOException { - return publicKey(null, null, null); - } + /** + * Change a card PIN + * + * @param pinChangeRequest {@link PinChangeRequest } (required) + * @return {@link PinChangeResponse } + * @throws ApiException if fails to make API call + */ + public PinChangeResponse changeCardPin(PinChangeRequest pinChangeRequest) throws ApiException, IOException { + return changeCardPin(pinChangeRequest, null); + } - /** - * Get an RSA public key - * - * @param purpose {@link String } Query: The purpose of the public key. Possible values: - * **pinChange**, **pinReveal**, **panReveal**. Default value: **pinReveal**. (optional) - * @param format {@link String } Query: The encoding format of public key. Possible values: - * **jwk**, **pem**. Default value: **pem**. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PublicKeyResponse } - * @throws ApiException if fails to make API call - */ - public PublicKeyResponse publicKey(String purpose, String format, RequestOptions requestOptions) - throws ApiException, IOException { - // Add query params - Map queryParams = new HashMap<>(); - if (purpose != null) { - queryParams.put("purpose", purpose); + /** + * Change a card PIN + * + * @param pinChangeRequest {@link PinChangeRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PinChangeResponse } + * @throws ApiException if fails to make API call + */ + public PinChangeResponse changeCardPin(PinChangeRequest pinChangeRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = pinChangeRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/pins/change", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return PinChangeResponse.fromJson(jsonResult); } - if (format != null) { - queryParams.put("format", format); + + /** + * Get an RSA public key + * + * @return {@link PublicKeyResponse } + * @throws ApiException if fails to make API call + */ + public PublicKeyResponse publicKey() throws ApiException, IOException { + return publicKey(null, null, null); } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/publicKey", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); - return PublicKeyResponse.fromJson(jsonResult); - } + /** + * Get an RSA public key + * + * @param purpose {@link String } Query: The purpose of the public key. Possible values: **pinChange**, **pinReveal**, **panReveal**. Default value: **pinReveal**. (optional) + * @param format {@link String } Query: The encoding format of public key. Possible values: **jwk**, **pem**. Default value: **pem**. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PublicKeyResponse } + * @throws ApiException if fails to make API call + */ + public PublicKeyResponse publicKey(String purpose, String format, RequestOptions requestOptions) throws ApiException, IOException { + //Add query params + Map queryParams = new HashMap<>(); + if (purpose != null) { + queryParams.put("purpose", purpose); + } + if (format != null) { + queryParams.put("format", format); + } - /** - * Reveal a card PIN - * - * @param revealPinRequest {@link RevealPinRequest } (required) - * @return {@link RevealPinResponse } - * @throws ApiException if fails to make API call - */ - public RevealPinResponse revealCardPin(RevealPinRequest revealPinRequest) - throws ApiException, IOException { - return revealCardPin(revealPinRequest, null); - } + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/publicKey", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); + return PublicKeyResponse.fromJson(jsonResult); + } - /** - * Reveal a card PIN - * - * @param revealPinRequest {@link RevealPinRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link RevealPinResponse } - * @throws ApiException if fails to make API call - */ - public RevealPinResponse revealCardPin( - RevealPinRequest revealPinRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = revealPinRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/pins/reveal", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return RevealPinResponse.fromJson(jsonResult); - } + /** + * Reveal a card PIN + * + * @param revealPinRequest {@link RevealPinRequest } (required) + * @return {@link RevealPinResponse } + * @throws ApiException if fails to make API call + */ + public RevealPinResponse revealCardPin(RevealPinRequest revealPinRequest) throws ApiException, IOException { + return revealCardPin(revealPinRequest, null); + } + + /** + * Reveal a card PIN + * + * @param revealPinRequest {@link RevealPinRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link RevealPinResponse } + * @throws ApiException if fails to make API call + */ + public RevealPinResponse revealCardPin(RevealPinRequest revealPinRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = revealPinRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/pins/reveal", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return RevealPinResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/balanceplatform/ManageScaDevicesApi.java b/src/main/java/com/adyen/service/balanceplatform/ManageScaDevicesApi.java index 801fa11bc..0f6a33983 100644 --- a/src/main/java/com/adyen/service/balanceplatform/ManageScaDevicesApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/ManageScaDevicesApi.java @@ -2,7 +2,7 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,7 +14,6 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.balanceplatform.AssociationFinaliseRequest; import com.adyen.model.balanceplatform.AssociationFinaliseResponse; import com.adyen.model.balanceplatform.AssociationInitiateRequest; @@ -22,309 +21,248 @@ import com.adyen.model.balanceplatform.RegisterSCAFinalResponse; import com.adyen.model.balanceplatform.RegisterSCARequest; import com.adyen.model.balanceplatform.RegisterSCAResponse; +import com.adyen.model.balanceplatform.RestServiceError; import com.adyen.model.balanceplatform.SearchRegisteredDevicesResponse; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class ManageScaDevicesApi extends Service { - public static final String API_VERSION = "2"; + public static final String API_VERSION = "2"; - protected String baseURL; + protected String baseURL; - /** - * Manage SCA devices constructor in {@link com.adyen.service.balanceplatform package}. - * - * @param client {@link Client } (required) - */ - public ManageScaDevicesApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); - } - - /** - * Manage SCA devices constructor in {@link com.adyen.service.balanceplatform package}. Please use - * this constructor only if you would like to pass along your own url for routing or testing - * purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public ManageScaDevicesApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Complete an association between an SCA device and a resource - * - * @param deviceId {@link String } The unique identifier of the SCA device that you are - * associating with a resource. (required) - * @param associationFinaliseRequest {@link AssociationFinaliseRequest } (required) - * @return {@link AssociationFinaliseResponse } - * @throws ApiException if fails to make API call - */ - public AssociationFinaliseResponse completeAssociationBetweenScaDeviceAndResource( - String deviceId, AssociationFinaliseRequest associationFinaliseRequest) - throws ApiException, IOException { - return completeAssociationBetweenScaDeviceAndResource( - deviceId, associationFinaliseRequest, null); - } + /** + * Manage SCA devices constructor in {@link com.adyen.service.balanceplatform package}. + * @param client {@link Client } (required) + */ + public ManageScaDevicesApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); + } - /** - * Complete an association between an SCA device and a resource - * - * @param deviceId {@link String } The unique identifier of the SCA device that you are - * associating with a resource. (required) - * @param associationFinaliseRequest {@link AssociationFinaliseRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link AssociationFinaliseResponse } - * @throws ApiException if fails to make API call - */ - public AssociationFinaliseResponse completeAssociationBetweenScaDeviceAndResource( - String deviceId, - AssociationFinaliseRequest associationFinaliseRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (deviceId == null) { - throw new IllegalArgumentException("Please provide the deviceId path parameter"); + /** + * Manage SCA devices constructor in {@link com.adyen.service.balanceplatform package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public ManageScaDevicesApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - pathParams.put("deviceId", deviceId); - String requestBody = associationFinaliseRequest.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/registeredDevices/{deviceId}/associations", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return AssociationFinaliseResponse.fromJson(jsonResult); - } + /** + * Complete an association between an SCA device and a resource + * + * @param deviceId {@link String } The unique identifier of the SCA device that you are associating with a resource. (required) + * @param associationFinaliseRequest {@link AssociationFinaliseRequest } (required) + * @return {@link AssociationFinaliseResponse } + * @throws ApiException if fails to make API call + */ + public AssociationFinaliseResponse completeAssociationBetweenScaDeviceAndResource(String deviceId, AssociationFinaliseRequest associationFinaliseRequest) throws ApiException, IOException { + return completeAssociationBetweenScaDeviceAndResource(deviceId, associationFinaliseRequest, null); + } - /** - * Complete the registration of an SCA device - * - * @param id {@link String } The unique identifier of the SCA device. You obtain this - * `id` in the response of a - * POST&nbsp;[/registeredDevices](https://docs.adyen.com/api-explorer/balanceplatform/2/post/registeredDevices#responses-200-id) - * request. (required) - * @param registerSCARequest {@link RegisterSCARequest } (required) - * @return {@link RegisterSCAFinalResponse } - * @throws ApiException if fails to make API call - */ - public RegisterSCAFinalResponse completeRegistrationOfScaDevice( - String id, RegisterSCARequest registerSCARequest) throws ApiException, IOException { - return completeRegistrationOfScaDevice(id, registerSCARequest, null); - } + /** + * Complete an association between an SCA device and a resource + * + * @param deviceId {@link String } The unique identifier of the SCA device that you are associating with a resource. (required) + * @param associationFinaliseRequest {@link AssociationFinaliseRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link AssociationFinaliseResponse } + * @throws ApiException if fails to make API call + */ + public AssociationFinaliseResponse completeAssociationBetweenScaDeviceAndResource(String deviceId, AssociationFinaliseRequest associationFinaliseRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (deviceId == null) { + throw new IllegalArgumentException("Please provide the deviceId path parameter"); + } + pathParams.put("deviceId", deviceId); - /** - * Complete the registration of an SCA device - * - * @param id {@link String } The unique identifier of the SCA device. You obtain this - * `id` in the response of a - * POST&nbsp;[/registeredDevices](https://docs.adyen.com/api-explorer/balanceplatform/2/post/registeredDevices#responses-200-id) - * request. (required) - * @param registerSCARequest {@link RegisterSCARequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link RegisterSCAFinalResponse } - * @throws ApiException if fails to make API call - */ - public RegisterSCAFinalResponse completeRegistrationOfScaDevice( - String id, RegisterSCARequest registerSCARequest, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + String requestBody = associationFinaliseRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/registeredDevices/{deviceId}/associations", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return AssociationFinaliseResponse.fromJson(jsonResult); } - pathParams.put("id", id); - String requestBody = registerSCARequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/registeredDevices/{id}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return RegisterSCAFinalResponse.fromJson(jsonResult); - } + /** + * Complete the registration of an SCA device + * + * @param id {@link String } The unique identifier of the SCA device. You obtain this `id` in the response of a POST&nbsp;[/registeredDevices](https://docs.adyen.com/api-explorer/balanceplatform/2/post/registeredDevices#responses-200-id) request. (required) + * @param registerSCARequest {@link RegisterSCARequest } (required) + * @return {@link RegisterSCAFinalResponse } + * @throws ApiException if fails to make API call + */ + public RegisterSCAFinalResponse completeRegistrationOfScaDevice(String id, RegisterSCARequest registerSCARequest) throws ApiException, IOException { + return completeRegistrationOfScaDevice(id, registerSCARequest, null); + } - /** - * Delete a registration of an SCA device - * - * @param id {@link String } The unique identifier of the SCA device. (required) - * @param paymentInstrumentId {@link String } The unique identifier of the payment instrument - * linked to the SCA device. (required) - * @throws ApiException if fails to make API call - */ - public void deleteRegistrationOfScaDevice(String id, String paymentInstrumentId) - throws ApiException, IOException { - deleteRegistrationOfScaDevice(id, paymentInstrumentId, null); - } + /** + * Complete the registration of an SCA device + * + * @param id {@link String } The unique identifier of the SCA device. You obtain this `id` in the response of a POST&nbsp;[/registeredDevices](https://docs.adyen.com/api-explorer/balanceplatform/2/post/registeredDevices#responses-200-id) request. (required) + * @param registerSCARequest {@link RegisterSCARequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link RegisterSCAFinalResponse } + * @throws ApiException if fails to make API call + */ + public RegisterSCAFinalResponse completeRegistrationOfScaDevice(String id, RegisterSCARequest registerSCARequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); - /** - * Delete a registration of an SCA device - * - * @param id {@link String } The unique identifier of the SCA device. (required) - * @param paymentInstrumentId {@link String } Query: The unique identifier of the payment - * instrument linked to the SCA device. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void deleteRegistrationOfScaDevice( - String id, String paymentInstrumentId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + String requestBody = registerSCARequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/registeredDevices/{id}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return RegisterSCAFinalResponse.fromJson(jsonResult); } - pathParams.put("id", id); - // Add query params - Map queryParams = new HashMap<>(); - if (paymentInstrumentId != null) { - queryParams.put("paymentInstrumentId", paymentInstrumentId); + /** + * Delete a registration of an SCA device + * + * @param id {@link String } The unique identifier of the SCA device. (required) + * @param paymentInstrumentId {@link String } The unique identifier of the payment instrument linked to the SCA device. (required) + * @throws ApiException if fails to make API call + */ + public void deleteRegistrationOfScaDevice(String id, String paymentInstrumentId) throws ApiException, IOException { + deleteRegistrationOfScaDevice(id, paymentInstrumentId, null); } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/registeredDevices/{id}", null); - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams, queryParams); - } + /** + * Delete a registration of an SCA device + * + * @param id {@link String } The unique identifier of the SCA device. (required) + * @param paymentInstrumentId {@link String } Query: The unique identifier of the payment instrument linked to the SCA device. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void deleteRegistrationOfScaDevice(String id, String paymentInstrumentId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); - /** - * Initiate an association between an SCA device and a resource - * - * @param deviceId {@link String } The unique identifier of the SCA device that you are - * associating with a resource. (required) - * @param associationInitiateRequest {@link AssociationInitiateRequest } (required) - * @return {@link AssociationInitiateResponse } - * @throws ApiException if fails to make API call - */ - public AssociationInitiateResponse initiateAssociationBetweenScaDeviceAndResource( - String deviceId, AssociationInitiateRequest associationInitiateRequest) - throws ApiException, IOException { - return initiateAssociationBetweenScaDeviceAndResource( - deviceId, associationInitiateRequest, null); - } + //Add query params + Map queryParams = new HashMap<>(); + if (paymentInstrumentId != null) { + queryParams.put("paymentInstrumentId", paymentInstrumentId); + } - /** - * Initiate an association between an SCA device and a resource - * - * @param deviceId {@link String } The unique identifier of the SCA device that you are - * associating with a resource. (required) - * @param associationInitiateRequest {@link AssociationInitiateRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link AssociationInitiateResponse } - * @throws ApiException if fails to make API call - */ - public AssociationInitiateResponse initiateAssociationBetweenScaDeviceAndResource( - String deviceId, - AssociationInitiateRequest associationInitiateRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (deviceId == null) { - throw new IllegalArgumentException("Please provide the deviceId path parameter"); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/registeredDevices/{id}", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams, queryParams); } - pathParams.put("deviceId", deviceId); - - String requestBody = associationInitiateRequest.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/registeredDevices/{deviceId}/associations", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return AssociationInitiateResponse.fromJson(jsonResult); - } - /** - * Initiate the registration of an SCA device - * - * @param registerSCARequest {@link RegisterSCARequest } (required) - * @return {@link RegisterSCAResponse } - * @throws ApiException if fails to make API call - */ - public RegisterSCAResponse initiateRegistrationOfScaDevice(RegisterSCARequest registerSCARequest) - throws ApiException, IOException { - return initiateRegistrationOfScaDevice(registerSCARequest, null); - } + /** + * Initiate an association between an SCA device and a resource + * + * @param deviceId {@link String } The unique identifier of the SCA device that you are associating with a resource. (required) + * @param associationInitiateRequest {@link AssociationInitiateRequest } (required) + * @return {@link AssociationInitiateResponse } + * @throws ApiException if fails to make API call + */ + public AssociationInitiateResponse initiateAssociationBetweenScaDeviceAndResource(String deviceId, AssociationInitiateRequest associationInitiateRequest) throws ApiException, IOException { + return initiateAssociationBetweenScaDeviceAndResource(deviceId, associationInitiateRequest, null); + } - /** - * Initiate the registration of an SCA device - * - * @param registerSCARequest {@link RegisterSCARequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link RegisterSCAResponse } - * @throws ApiException if fails to make API call - */ - public RegisterSCAResponse initiateRegistrationOfScaDevice( - RegisterSCARequest registerSCARequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = registerSCARequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/registeredDevices", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return RegisterSCAResponse.fromJson(jsonResult); - } + /** + * Initiate an association between an SCA device and a resource + * + * @param deviceId {@link String } The unique identifier of the SCA device that you are associating with a resource. (required) + * @param associationInitiateRequest {@link AssociationInitiateRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link AssociationInitiateResponse } + * @throws ApiException if fails to make API call + */ + public AssociationInitiateResponse initiateAssociationBetweenScaDeviceAndResource(String deviceId, AssociationInitiateRequest associationInitiateRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (deviceId == null) { + throw new IllegalArgumentException("Please provide the deviceId path parameter"); + } + pathParams.put("deviceId", deviceId); - /** - * Get a list of registered SCA devices - * - * @param paymentInstrumentId {@link String } The unique identifier of a payment instrument. It - * limits the returned list to SCA devices associated to this payment instrument. (required) - * @return {@link SearchRegisteredDevicesResponse } - * @throws ApiException if fails to make API call - */ - public SearchRegisteredDevicesResponse listRegisteredScaDevices(String paymentInstrumentId) - throws ApiException, IOException { - return listRegisteredScaDevices(paymentInstrumentId, null, null, null); - } + String requestBody = associationInitiateRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/registeredDevices/{deviceId}/associations", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return AssociationInitiateResponse.fromJson(jsonResult); + } - /** - * Get a list of registered SCA devices - * - * @param paymentInstrumentId {@link String } Query: The unique identifier of a payment - * instrument. It limits the returned list to SCA devices associated to this payment - * instrument. (required) - * @param pageNumber {@link Integer } Query: The index of the page to retrieve. The index of the - * first page is 0 (zero). Default: 0. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page. Default: 20. - * Maximum: 100. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link SearchRegisteredDevicesResponse } - * @throws ApiException if fails to make API call - */ - public SearchRegisteredDevicesResponse listRegisteredScaDevices( - String paymentInstrumentId, - Integer pageNumber, - Integer pageSize, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add query params - Map queryParams = new HashMap<>(); - if (paymentInstrumentId != null) { - queryParams.put("paymentInstrumentId", paymentInstrumentId); + /** + * Initiate the registration of an SCA device + * + * @param registerSCARequest {@link RegisterSCARequest } (required) + * @return {@link RegisterSCAResponse } + * @throws ApiException if fails to make API call + */ + public RegisterSCAResponse initiateRegistrationOfScaDevice(RegisterSCARequest registerSCARequest) throws ApiException, IOException { + return initiateRegistrationOfScaDevice(registerSCARequest, null); } - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); + + /** + * Initiate the registration of an SCA device + * + * @param registerSCARequest {@link RegisterSCARequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link RegisterSCAResponse } + * @throws ApiException if fails to make API call + */ + public RegisterSCAResponse initiateRegistrationOfScaDevice(RegisterSCARequest registerSCARequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = registerSCARequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/registeredDevices", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return RegisterSCAResponse.fromJson(jsonResult); } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); + + /** + * Get a list of registered SCA devices + * + * @param paymentInstrumentId {@link String } The unique identifier of a payment instrument. It limits the returned list to SCA devices associated to this payment instrument. (required) + * @return {@link SearchRegisteredDevicesResponse } + * @throws ApiException if fails to make API call + */ + public SearchRegisteredDevicesResponse listRegisteredScaDevices(String paymentInstrumentId) throws ApiException, IOException { + return listRegisteredScaDevices(paymentInstrumentId, null, null, null); } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/registeredDevices", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); - return SearchRegisteredDevicesResponse.fromJson(jsonResult); - } + /** + * Get a list of registered SCA devices + * + * @param paymentInstrumentId {@link String } Query: The unique identifier of a payment instrument. It limits the returned list to SCA devices associated to this payment instrument. (required) + * @param pageNumber {@link Integer } Query: The index of the page to retrieve. The index of the first page is 0 (zero). Default: 0. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page. Default: 20. Maximum: 100. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link SearchRegisteredDevicesResponse } + * @throws ApiException if fails to make API call + */ + public SearchRegisteredDevicesResponse listRegisteredScaDevices(String paymentInstrumentId, Integer pageNumber, Integer pageSize, RequestOptions requestOptions) throws ApiException, IOException { + //Add query params + Map queryParams = new HashMap<>(); + if (paymentInstrumentId != null) { + queryParams.put("paymentInstrumentId", paymentInstrumentId); + } + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); + } + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/registeredDevices", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); + return SearchRegisteredDevicesResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/balanceplatform/NetworkTokensApi.java b/src/main/java/com/adyen/service/balanceplatform/NetworkTokensApi.java index 208ab9982..7940478f2 100644 --- a/src/main/java/com/adyen/service/balanceplatform/NetworkTokensApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/NetworkTokensApi.java @@ -2,7 +2,7 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,117 +14,105 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.balanceplatform.GetNetworkTokenResponse; +import com.adyen.model.balanceplatform.RestServiceError; import com.adyen.model.balanceplatform.UpdateNetworkTokenRequest; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class NetworkTokensApi extends Service { - public static final String API_VERSION = "2"; - - protected String baseURL; + public static final String API_VERSION = "2"; - /** - * Network tokens constructor in {@link com.adyen.service.balanceplatform package}. - * - * @param client {@link Client } (required) - */ - public NetworkTokensApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); - } + protected String baseURL; - /** - * Network tokens constructor in {@link com.adyen.service.balanceplatform package}. Please use - * this constructor only if you would like to pass along your own url for routing or testing - * purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public NetworkTokensApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Network tokens constructor in {@link com.adyen.service.balanceplatform package}. + * @param client {@link Client } (required) + */ + public NetworkTokensApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); + } - /** - * Get a network token - * - * @param networkTokenId {@link String } The unique identifier of the network token. (required) - * @return {@link GetNetworkTokenResponse } - * @throws ApiException if fails to make API call - */ - public GetNetworkTokenResponse getNetworkToken(String networkTokenId) - throws ApiException, IOException { - return getNetworkToken(networkTokenId, null); - } + /** + * Network tokens constructor in {@link com.adyen.service.balanceplatform package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public NetworkTokensApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Get a network token - * - * @param networkTokenId {@link String } The unique identifier of the network token. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link GetNetworkTokenResponse } - * @throws ApiException if fails to make API call - */ - public GetNetworkTokenResponse getNetworkToken( - String networkTokenId, RequestOptions requestOptions) throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (networkTokenId == null) { - throw new IllegalArgumentException("Please provide the networkTokenId path parameter"); + /** + * Get a network token + * + * @param networkTokenId {@link String } The unique identifier of the network token. (required) + * @return {@link GetNetworkTokenResponse } + * @throws ApiException if fails to make API call + */ + public GetNetworkTokenResponse getNetworkToken(String networkTokenId) throws ApiException, IOException { + return getNetworkToken(networkTokenId, null); } - pathParams.put("networkTokenId", networkTokenId); - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/networkTokens/{networkTokenId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return GetNetworkTokenResponse.fromJson(jsonResult); - } + /** + * Get a network token + * + * @param networkTokenId {@link String } The unique identifier of the network token. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link GetNetworkTokenResponse } + * @throws ApiException if fails to make API call + */ + public GetNetworkTokenResponse getNetworkToken(String networkTokenId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (networkTokenId == null) { + throw new IllegalArgumentException("Please provide the networkTokenId path parameter"); + } + pathParams.put("networkTokenId", networkTokenId); - /** - * Update a network token - * - * @param networkTokenId {@link String } The unique identifier of the network token. (required) - * @param updateNetworkTokenRequest {@link UpdateNetworkTokenRequest } (required) - * @throws ApiException if fails to make API call - */ - public void updateNetworkToken( - String networkTokenId, UpdateNetworkTokenRequest updateNetworkTokenRequest) - throws ApiException, IOException { - updateNetworkToken(networkTokenId, updateNetworkTokenRequest, null); - } + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/networkTokens/{networkTokenId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return GetNetworkTokenResponse.fromJson(jsonResult); + } - /** - * Update a network token - * - * @param networkTokenId {@link String } The unique identifier of the network token. (required) - * @param updateNetworkTokenRequest {@link UpdateNetworkTokenRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void updateNetworkToken( - String networkTokenId, - UpdateNetworkTokenRequest updateNetworkTokenRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (networkTokenId == null) { - throw new IllegalArgumentException("Please provide the networkTokenId path parameter"); + /** + * Update a network token + * + * @param networkTokenId {@link String } The unique identifier of the network token. (required) + * @param updateNetworkTokenRequest {@link UpdateNetworkTokenRequest } (required) + * @throws ApiException if fails to make API call + */ + public void updateNetworkToken(String networkTokenId, UpdateNetworkTokenRequest updateNetworkTokenRequest) throws ApiException, IOException { + updateNetworkToken(networkTokenId, updateNetworkTokenRequest, null); } - pathParams.put("networkTokenId", networkTokenId); - String requestBody = updateNetworkTokenRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/networkTokens/{networkTokenId}", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - } + /** + * Update a network token + * + * @param networkTokenId {@link String } The unique identifier of the network token. (required) + * @param updateNetworkTokenRequest {@link UpdateNetworkTokenRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void updateNetworkToken(String networkTokenId, UpdateNetworkTokenRequest updateNetworkTokenRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (networkTokenId == null) { + throw new IllegalArgumentException("Please provide the networkTokenId path parameter"); + } + pathParams.put("networkTokenId", networkTokenId); + + String requestBody = updateNetworkTokenRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/networkTokens/{networkTokenId}", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + } } diff --git a/src/main/java/com/adyen/service/balanceplatform/PaymentInstrumentGroupsApi.java b/src/main/java/com/adyen/service/balanceplatform/PaymentInstrumentGroupsApi.java index 6fc87b937..cb3df85b9 100644 --- a/src/main/java/com/adyen/service/balanceplatform/PaymentInstrumentGroupsApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/PaymentInstrumentGroupsApi.java @@ -2,7 +2,7 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,148 +14,133 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.balanceplatform.PaymentInstrumentGroup; import com.adyen.model.balanceplatform.PaymentInstrumentGroupInfo; +import com.adyen.model.balanceplatform.RestServiceError; import com.adyen.model.balanceplatform.TransactionRulesResponse; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class PaymentInstrumentGroupsApi extends Service { - public static final String API_VERSION = "2"; - - protected String baseURL; - - /** - * Payment instrument groups constructor in {@link com.adyen.service.balanceplatform package}. - * - * @param client {@link Client } (required) - */ - public PaymentInstrumentGroupsApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); - } - - /** - * Payment instrument groups constructor in {@link com.adyen.service.balanceplatform package}. - * Please use this constructor only if you would like to pass along your own url for routing or - * testing purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public PaymentInstrumentGroupsApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Create a payment instrument group - * - * @param paymentInstrumentGroupInfo {@link PaymentInstrumentGroupInfo } (required) - * @return {@link PaymentInstrumentGroup } - * @throws ApiException if fails to make API call - */ - public PaymentInstrumentGroup createPaymentInstrumentGroup( - PaymentInstrumentGroupInfo paymentInstrumentGroupInfo) throws ApiException, IOException { - return createPaymentInstrumentGroup(paymentInstrumentGroupInfo, null); - } - - /** - * Create a payment instrument group - * - * @param paymentInstrumentGroupInfo {@link PaymentInstrumentGroupInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PaymentInstrumentGroup } - * @throws ApiException if fails to make API call - */ - public PaymentInstrumentGroup createPaymentInstrumentGroup( - PaymentInstrumentGroupInfo paymentInstrumentGroupInfo, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = paymentInstrumentGroupInfo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/paymentInstrumentGroups", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return PaymentInstrumentGroup.fromJson(jsonResult); - } - - /** - * Get all transaction rules for a payment instrument group - * - * @param id {@link String } The unique identifier of the payment instrument group. (required) - * @return {@link TransactionRulesResponse } - * @throws ApiException if fails to make API call - */ - public TransactionRulesResponse getAllTransactionRulesForPaymentInstrumentGroup(String id) - throws ApiException, IOException { - return getAllTransactionRulesForPaymentInstrumentGroup(id, null); - } - - /** - * Get all transaction rules for a payment instrument group - * - * @param id {@link String } The unique identifier of the payment instrument group. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TransactionRulesResponse } - * @throws ApiException if fails to make API call - */ - public TransactionRulesResponse getAllTransactionRulesForPaymentInstrumentGroup( - String id, RequestOptions requestOptions) throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + public static final String API_VERSION = "2"; + + protected String baseURL; + + /** + * Payment instrument groups constructor in {@link com.adyen.service.balanceplatform package}. + * @param client {@link Client } (required) + */ + public PaymentInstrumentGroupsApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/paymentInstrumentGroups/{id}/transactionRules", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TransactionRulesResponse.fromJson(jsonResult); - } - - /** - * Get a payment instrument group - * - * @param id {@link String } The unique identifier of the payment instrument group. (required) - * @return {@link PaymentInstrumentGroup } - * @throws ApiException if fails to make API call - */ - public PaymentInstrumentGroup getPaymentInstrumentGroup(String id) - throws ApiException, IOException { - return getPaymentInstrumentGroup(id, null); - } - - /** - * Get a payment instrument group - * - * @param id {@link String } The unique identifier of the payment instrument group. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PaymentInstrumentGroup } - * @throws ApiException if fails to make API call - */ - public PaymentInstrumentGroup getPaymentInstrumentGroup(String id, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + + /** + * Payment instrument groups constructor in {@link com.adyen.service.balanceplatform package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public PaymentInstrumentGroupsApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Create a payment instrument group + * + * @param paymentInstrumentGroupInfo {@link PaymentInstrumentGroupInfo } (required) + * @return {@link PaymentInstrumentGroup } + * @throws ApiException if fails to make API call + */ + public PaymentInstrumentGroup createPaymentInstrumentGroup(PaymentInstrumentGroupInfo paymentInstrumentGroupInfo) throws ApiException, IOException { + return createPaymentInstrumentGroup(paymentInstrumentGroupInfo, null); + } + + /** + * Create a payment instrument group + * + * @param paymentInstrumentGroupInfo {@link PaymentInstrumentGroupInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PaymentInstrumentGroup } + * @throws ApiException if fails to make API call + */ + public PaymentInstrumentGroup createPaymentInstrumentGroup(PaymentInstrumentGroupInfo paymentInstrumentGroupInfo, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = paymentInstrumentGroupInfo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/paymentInstrumentGroups", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return PaymentInstrumentGroup.fromJson(jsonResult); + } + + /** + * Get all transaction rules for a payment instrument group + * + * @param id {@link String } The unique identifier of the payment instrument group. (required) + * @return {@link TransactionRulesResponse } + * @throws ApiException if fails to make API call + */ + public TransactionRulesResponse getAllTransactionRulesForPaymentInstrumentGroup(String id) throws ApiException, IOException { + return getAllTransactionRulesForPaymentInstrumentGroup(id, null); + } + + /** + * Get all transaction rules for a payment instrument group + * + * @param id {@link String } The unique identifier of the payment instrument group. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TransactionRulesResponse } + * @throws ApiException if fails to make API call + */ + public TransactionRulesResponse getAllTransactionRulesForPaymentInstrumentGroup(String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/paymentInstrumentGroups/{id}/transactionRules", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TransactionRulesResponse.fromJson(jsonResult); + } + + /** + * Get a payment instrument group + * + * @param id {@link String } The unique identifier of the payment instrument group. (required) + * @return {@link PaymentInstrumentGroup } + * @throws ApiException if fails to make API call + */ + public PaymentInstrumentGroup getPaymentInstrumentGroup(String id) throws ApiException, IOException { + return getPaymentInstrumentGroup(id, null); + } + + /** + * Get a payment instrument group + * + * @param id {@link String } The unique identifier of the payment instrument group. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PaymentInstrumentGroup } + * @throws ApiException if fails to make API call + */ + public PaymentInstrumentGroup getPaymentInstrumentGroup(String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/paymentInstrumentGroups/{id}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return PaymentInstrumentGroup.fromJson(jsonResult); } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/paymentInstrumentGroups/{id}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return PaymentInstrumentGroup.fromJson(jsonResult); - } } diff --git a/src/main/java/com/adyen/service/balanceplatform/PaymentInstrumentsApi.java b/src/main/java/com/adyen/service/balanceplatform/PaymentInstrumentsApi.java index ef2e9446c..02defbd97 100644 --- a/src/main/java/com/adyen/service/balanceplatform/PaymentInstrumentsApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/PaymentInstrumentsApi.java @@ -2,7 +2,7 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,7 +14,6 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.balanceplatform.ListNetworkTokensResponse; import com.adyen.model.balanceplatform.NetworkTokenActivationDataRequest; import com.adyen.model.balanceplatform.NetworkTokenActivationDataResponse; @@ -24,378 +23,327 @@ import com.adyen.model.balanceplatform.PaymentInstrumentRevealRequest; import com.adyen.model.balanceplatform.PaymentInstrumentRevealResponse; import com.adyen.model.balanceplatform.PaymentInstrumentUpdateRequest; +import com.adyen.model.balanceplatform.RestServiceError; import com.adyen.model.balanceplatform.TransactionRulesResponse; import com.adyen.model.balanceplatform.UpdatePaymentInstrument; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class PaymentInstrumentsApi extends Service { - public static final String API_VERSION = "2"; - - protected String baseURL; - - /** - * Payment instruments constructor in {@link com.adyen.service.balanceplatform package}. - * - * @param client {@link Client } (required) - */ - public PaymentInstrumentsApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); - } - - /** - * Payment instruments constructor in {@link com.adyen.service.balanceplatform package}. Please - * use this constructor only if you would like to pass along your own url for routing or testing - * purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public PaymentInstrumentsApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Create network token provisioning data - * - * @param id {@link String } The unique identifier of the payment instrument. (required) - * @param networkTokenActivationDataRequest {@link NetworkTokenActivationDataRequest } (required) - * @return {@link NetworkTokenActivationDataResponse } - * @throws ApiException if fails to make API call - */ - public NetworkTokenActivationDataResponse createNetworkTokenProvisioningData( - String id, NetworkTokenActivationDataRequest networkTokenActivationDataRequest) - throws ApiException, IOException { - return createNetworkTokenProvisioningData(id, networkTokenActivationDataRequest, null); - } - - /** - * Create network token provisioning data - * - * @param id {@link String } The unique identifier of the payment instrument. (required) - * @param networkTokenActivationDataRequest {@link NetworkTokenActivationDataRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link NetworkTokenActivationDataResponse } - * @throws ApiException if fails to make API call - */ - public NetworkTokenActivationDataResponse createNetworkTokenProvisioningData( - String id, - NetworkTokenActivationDataRequest networkTokenActivationDataRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + public static final String API_VERSION = "2"; + + protected String baseURL; + + /** + * Payment instruments constructor in {@link com.adyen.service.balanceplatform package}. + * @param client {@link Client } (required) + */ + public PaymentInstrumentsApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); + } + + /** + * Payment instruments constructor in {@link com.adyen.service.balanceplatform package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public PaymentInstrumentsApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Create network token provisioning data + * + * @param id {@link String } The unique identifier of the payment instrument. (required) + * @param networkTokenActivationDataRequest {@link NetworkTokenActivationDataRequest } (required) + * @return {@link NetworkTokenActivationDataResponse } + * @throws ApiException if fails to make API call + */ + public NetworkTokenActivationDataResponse createNetworkTokenProvisioningData(String id, NetworkTokenActivationDataRequest networkTokenActivationDataRequest) throws ApiException, IOException { + return createNetworkTokenProvisioningData(id, networkTokenActivationDataRequest, null); + } + + /** + * Create network token provisioning data + * + * @param id {@link String } The unique identifier of the payment instrument. (required) + * @param networkTokenActivationDataRequest {@link NetworkTokenActivationDataRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link NetworkTokenActivationDataResponse } + * @throws ApiException if fails to make API call + */ + public NetworkTokenActivationDataResponse createNetworkTokenProvisioningData(String id, NetworkTokenActivationDataRequest networkTokenActivationDataRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = networkTokenActivationDataRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/paymentInstruments/{id}/networkTokenActivationData", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return NetworkTokenActivationDataResponse.fromJson(jsonResult); + } + + /** + * Create a payment instrument + * + * @param paymentInstrumentInfo {@link PaymentInstrumentInfo } (required) + * @return {@link PaymentInstrument } + * @throws ApiException if fails to make API call + */ + public PaymentInstrument createPaymentInstrument(PaymentInstrumentInfo paymentInstrumentInfo) throws ApiException, IOException { + return createPaymentInstrument(paymentInstrumentInfo, null); + } + + /** + * Create a payment instrument + * + * @param paymentInstrumentInfo {@link PaymentInstrumentInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PaymentInstrument } + * @throws ApiException if fails to make API call + */ + public PaymentInstrument createPaymentInstrument(PaymentInstrumentInfo paymentInstrumentInfo, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = paymentInstrumentInfo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/paymentInstruments", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return PaymentInstrument.fromJson(jsonResult); + } + + /** + * Get all transaction rules for a payment instrument + * + * @param id {@link String } The unique identifier of the payment instrument. (required) + * @return {@link TransactionRulesResponse } + * @throws ApiException if fails to make API call + */ + public TransactionRulesResponse getAllTransactionRulesForPaymentInstrument(String id) throws ApiException, IOException { + return getAllTransactionRulesForPaymentInstrument(id, null); + } + + /** + * Get all transaction rules for a payment instrument + * + * @param id {@link String } The unique identifier of the payment instrument. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TransactionRulesResponse } + * @throws ApiException if fails to make API call + */ + public TransactionRulesResponse getAllTransactionRulesForPaymentInstrument(String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/paymentInstruments/{id}/transactionRules", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TransactionRulesResponse.fromJson(jsonResult); + } + + /** + * Get network token activation data + * + * @param id {@link String } The unique identifier of the payment instrument. (required) + * @return {@link NetworkTokenActivationDataResponse } + * @throws ApiException if fails to make API call + */ + public NetworkTokenActivationDataResponse getNetworkTokenActivationData(String id) throws ApiException, IOException { + return getNetworkTokenActivationData(id, null); + } + + /** + * Get network token activation data + * + * @param id {@link String } The unique identifier of the payment instrument. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link NetworkTokenActivationDataResponse } + * @throws ApiException if fails to make API call + */ + public NetworkTokenActivationDataResponse getNetworkTokenActivationData(String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/paymentInstruments/{id}/networkTokenActivationData", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return NetworkTokenActivationDataResponse.fromJson(jsonResult); } - pathParams.put("id", id); - - String requestBody = networkTokenActivationDataRequest.toJson(); - Resource resource = - new Resource( - this, this.baseURL + "/paymentInstruments/{id}/networkTokenActivationData", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return NetworkTokenActivationDataResponse.fromJson(jsonResult); - } - - /** - * Create a payment instrument - * - * @param paymentInstrumentInfo {@link PaymentInstrumentInfo } (required) - * @return {@link PaymentInstrument } - * @throws ApiException if fails to make API call - */ - public PaymentInstrument createPaymentInstrument(PaymentInstrumentInfo paymentInstrumentInfo) - throws ApiException, IOException { - return createPaymentInstrument(paymentInstrumentInfo, null); - } - - /** - * Create a payment instrument - * - * @param paymentInstrumentInfo {@link PaymentInstrumentInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PaymentInstrument } - * @throws ApiException if fails to make API call - */ - public PaymentInstrument createPaymentInstrument( - PaymentInstrumentInfo paymentInstrumentInfo, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = paymentInstrumentInfo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/paymentInstruments", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return PaymentInstrument.fromJson(jsonResult); - } - - /** - * Get all transaction rules for a payment instrument - * - * @param id {@link String } The unique identifier of the payment instrument. (required) - * @return {@link TransactionRulesResponse } - * @throws ApiException if fails to make API call - */ - public TransactionRulesResponse getAllTransactionRulesForPaymentInstrument(String id) - throws ApiException, IOException { - return getAllTransactionRulesForPaymentInstrument(id, null); - } - - /** - * Get all transaction rules for a payment instrument - * - * @param id {@link String } The unique identifier of the payment instrument. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TransactionRulesResponse } - * @throws ApiException if fails to make API call - */ - public TransactionRulesResponse getAllTransactionRulesForPaymentInstrument( - String id, RequestOptions requestOptions) throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + + /** + * Get the PAN of a payment instrument + * + * @param id {@link String } The unique identifier of the payment instrument. (required) + * @return {@link PaymentInstrumentRevealInfo } + * @throws ApiException if fails to make API call + */ + public PaymentInstrumentRevealInfo getPanOfPaymentInstrument(String id) throws ApiException, IOException { + return getPanOfPaymentInstrument(id, null); } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/paymentInstruments/{id}/transactionRules", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TransactionRulesResponse.fromJson(jsonResult); - } - - /** - * Get network token activation data - * - * @param id {@link String } The unique identifier of the payment instrument. (required) - * @return {@link NetworkTokenActivationDataResponse } - * @throws ApiException if fails to make API call - */ - public NetworkTokenActivationDataResponse getNetworkTokenActivationData(String id) - throws ApiException, IOException { - return getNetworkTokenActivationData(id, null); - } - - /** - * Get network token activation data - * - * @param id {@link String } The unique identifier of the payment instrument. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link NetworkTokenActivationDataResponse } - * @throws ApiException if fails to make API call - */ - public NetworkTokenActivationDataResponse getNetworkTokenActivationData( - String id, RequestOptions requestOptions) throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + + /** + * Get the PAN of a payment instrument + * + * @param id {@link String } The unique identifier of the payment instrument. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PaymentInstrumentRevealInfo } + * @throws ApiException if fails to make API call + */ + public PaymentInstrumentRevealInfo getPanOfPaymentInstrument(String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/paymentInstruments/{id}/reveal", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return PaymentInstrumentRevealInfo.fromJson(jsonResult); } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = - new Resource( - this, this.baseURL + "/paymentInstruments/{id}/networkTokenActivationData", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return NetworkTokenActivationDataResponse.fromJson(jsonResult); - } - - /** - * Get the PAN of a payment instrument - * - * @param id {@link String } The unique identifier of the payment instrument. (required) - * @return {@link PaymentInstrumentRevealInfo } - * @throws ApiException if fails to make API call - */ - public PaymentInstrumentRevealInfo getPanOfPaymentInstrument(String id) - throws ApiException, IOException { - return getPanOfPaymentInstrument(id, null); - } - - /** - * Get the PAN of a payment instrument - * - * @param id {@link String } The unique identifier of the payment instrument. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PaymentInstrumentRevealInfo } - * @throws ApiException if fails to make API call - */ - public PaymentInstrumentRevealInfo getPanOfPaymentInstrument( - String id, RequestOptions requestOptions) throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + + /** + * Get a payment instrument + * + * @param id {@link String } The unique identifier of the payment instrument. (required) + * @return {@link PaymentInstrument } + * @throws ApiException if fails to make API call + */ + public PaymentInstrument getPaymentInstrument(String id) throws ApiException, IOException { + return getPaymentInstrument(id, null); } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/paymentInstruments/{id}/reveal", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return PaymentInstrumentRevealInfo.fromJson(jsonResult); - } - - /** - * Get a payment instrument - * - * @param id {@link String } The unique identifier of the payment instrument. (required) - * @return {@link PaymentInstrument } - * @throws ApiException if fails to make API call - */ - public PaymentInstrument getPaymentInstrument(String id) throws ApiException, IOException { - return getPaymentInstrument(id, null); - } - - /** - * Get a payment instrument - * - * @param id {@link String } The unique identifier of the payment instrument. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PaymentInstrument } - * @throws ApiException if fails to make API call - */ - public PaymentInstrument getPaymentInstrument(String id, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + + /** + * Get a payment instrument + * + * @param id {@link String } The unique identifier of the payment instrument. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PaymentInstrument } + * @throws ApiException if fails to make API call + */ + public PaymentInstrument getPaymentInstrument(String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/paymentInstruments/{id}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return PaymentInstrument.fromJson(jsonResult); } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/paymentInstruments/{id}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return PaymentInstrument.fromJson(jsonResult); - } - - /** - * List network tokens - * - * @param id {@link String } The unique identifier of the payment instrument. (required) - * @return {@link ListNetworkTokensResponse } - * @throws ApiException if fails to make API call - */ - public ListNetworkTokensResponse listNetworkTokens(String id) throws ApiException, IOException { - return listNetworkTokens(id, null); - } - - /** - * List network tokens - * - * @param id {@link String } The unique identifier of the payment instrument. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ListNetworkTokensResponse } - * @throws ApiException if fails to make API call - */ - public ListNetworkTokensResponse listNetworkTokens(String id, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + + /** + * List network tokens + * + * @param id {@link String } The unique identifier of the payment instrument. (required) + * @return {@link ListNetworkTokensResponse } + * @throws ApiException if fails to make API call + */ + public ListNetworkTokensResponse listNetworkTokens(String id) throws ApiException, IOException { + return listNetworkTokens(id, null); } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/paymentInstruments/{id}/networkTokens", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return ListNetworkTokensResponse.fromJson(jsonResult); - } - - /** - * Reveal the data of a payment instrument - * - * @param paymentInstrumentRevealRequest {@link PaymentInstrumentRevealRequest } (required) - * @return {@link PaymentInstrumentRevealResponse } - * @throws ApiException if fails to make API call - */ - public PaymentInstrumentRevealResponse revealDataOfPaymentInstrument( - PaymentInstrumentRevealRequest paymentInstrumentRevealRequest) - throws ApiException, IOException { - return revealDataOfPaymentInstrument(paymentInstrumentRevealRequest, null); - } - - /** - * Reveal the data of a payment instrument - * - * @param paymentInstrumentRevealRequest {@link PaymentInstrumentRevealRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PaymentInstrumentRevealResponse } - * @throws ApiException if fails to make API call - */ - public PaymentInstrumentRevealResponse revealDataOfPaymentInstrument( - PaymentInstrumentRevealRequest paymentInstrumentRevealRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = paymentInstrumentRevealRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/paymentInstruments/reveal", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return PaymentInstrumentRevealResponse.fromJson(jsonResult); - } - - /** - * Update a payment instrument - * - * @param id {@link String } The unique identifier of the payment instrument. (required) - * @param paymentInstrumentUpdateRequest {@link PaymentInstrumentUpdateRequest } (required) - * @return {@link UpdatePaymentInstrument } - * @throws ApiException if fails to make API call - */ - public UpdatePaymentInstrument updatePaymentInstrument( - String id, PaymentInstrumentUpdateRequest paymentInstrumentUpdateRequest) - throws ApiException, IOException { - return updatePaymentInstrument(id, paymentInstrumentUpdateRequest, null); - } - - /** - * Update a payment instrument - * - * @param id {@link String } The unique identifier of the payment instrument. (required) - * @param paymentInstrumentUpdateRequest {@link PaymentInstrumentUpdateRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link UpdatePaymentInstrument } - * @throws ApiException if fails to make API call - */ - public UpdatePaymentInstrument updatePaymentInstrument( - String id, - PaymentInstrumentUpdateRequest paymentInstrumentUpdateRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + + /** + * List network tokens + * + * @param id {@link String } The unique identifier of the payment instrument. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ListNetworkTokensResponse } + * @throws ApiException if fails to make API call + */ + public ListNetworkTokensResponse listNetworkTokens(String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/paymentInstruments/{id}/networkTokens", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return ListNetworkTokensResponse.fromJson(jsonResult); + } + + /** + * Reveal the data of a payment instrument + * + * @param paymentInstrumentRevealRequest {@link PaymentInstrumentRevealRequest } (required) + * @return {@link PaymentInstrumentRevealResponse } + * @throws ApiException if fails to make API call + */ + public PaymentInstrumentRevealResponse revealDataOfPaymentInstrument(PaymentInstrumentRevealRequest paymentInstrumentRevealRequest) throws ApiException, IOException { + return revealDataOfPaymentInstrument(paymentInstrumentRevealRequest, null); + } + + /** + * Reveal the data of a payment instrument + * + * @param paymentInstrumentRevealRequest {@link PaymentInstrumentRevealRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PaymentInstrumentRevealResponse } + * @throws ApiException if fails to make API call + */ + public PaymentInstrumentRevealResponse revealDataOfPaymentInstrument(PaymentInstrumentRevealRequest paymentInstrumentRevealRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = paymentInstrumentRevealRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/paymentInstruments/reveal", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return PaymentInstrumentRevealResponse.fromJson(jsonResult); + } + + /** + * Update a payment instrument + * + * @param id {@link String } The unique identifier of the payment instrument. (required) + * @param paymentInstrumentUpdateRequest {@link PaymentInstrumentUpdateRequest } (required) + * @return {@link UpdatePaymentInstrument } + * @throws ApiException if fails to make API call + */ + public UpdatePaymentInstrument updatePaymentInstrument(String id, PaymentInstrumentUpdateRequest paymentInstrumentUpdateRequest) throws ApiException, IOException { + return updatePaymentInstrument(id, paymentInstrumentUpdateRequest, null); + } + + /** + * Update a payment instrument + * + * @param id {@link String } The unique identifier of the payment instrument. (required) + * @param paymentInstrumentUpdateRequest {@link PaymentInstrumentUpdateRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link UpdatePaymentInstrument } + * @throws ApiException if fails to make API call + */ + public UpdatePaymentInstrument updatePaymentInstrument(String id, PaymentInstrumentUpdateRequest paymentInstrumentUpdateRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = paymentInstrumentUpdateRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/paymentInstruments/{id}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return UpdatePaymentInstrument.fromJson(jsonResult); } - pathParams.put("id", id); - - String requestBody = paymentInstrumentUpdateRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/paymentInstruments/{id}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return UpdatePaymentInstrument.fromJson(jsonResult); - } } diff --git a/src/main/java/com/adyen/service/balanceplatform/PlatformApi.java b/src/main/java/com/adyen/service/balanceplatform/PlatformApi.java index 26ecfe117..c019fedf6 100644 --- a/src/main/java/com/adyen/service/balanceplatform/PlatformApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/PlatformApi.java @@ -2,7 +2,7 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,168 +14,151 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.balanceplatform.BalancePlatform; import com.adyen.model.balanceplatform.PaginatedAccountHoldersResponse; +import com.adyen.model.balanceplatform.RestServiceError; import com.adyen.model.balanceplatform.TransactionRulesResponse; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class PlatformApi extends Service { - public static final String API_VERSION = "2"; - - protected String baseURL; - - /** - * Platform constructor in {@link com.adyen.service.balanceplatform package}. - * - * @param client {@link Client } (required) - */ - public PlatformApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); - } - - /** - * Platform constructor in {@link com.adyen.service.balanceplatform package}. Please use this - * constructor only if you would like to pass along your own url for routing or testing purposes. - * The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public PlatformApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Get all account holders under a balance platform - * - * @param id {@link String } The unique identifier of the balance platform. (required) - * @return {@link PaginatedAccountHoldersResponse } - * @throws ApiException if fails to make API call - */ - public PaginatedAccountHoldersResponse getAllAccountHoldersUnderBalancePlatform(String id) - throws ApiException, IOException { - return getAllAccountHoldersUnderBalancePlatform(id, null, null, null); - } - - /** - * Get all account holders under a balance platform - * - * @param id {@link String } The unique identifier of the balance platform. (required) - * @param offset {@link Integer } Query: The number of items that you want to skip. (optional) - * @param limit {@link Integer } Query: The number of items returned per page, maximum 100 items. - * By default, the response returns 10 items per page. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PaginatedAccountHoldersResponse } - * @throws ApiException if fails to make API call - */ - public PaginatedAccountHoldersResponse getAllAccountHoldersUnderBalancePlatform( - String id, Integer offset, Integer limit, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + public static final String API_VERSION = "2"; + + protected String baseURL; + + /** + * Platform constructor in {@link com.adyen.service.balanceplatform package}. + * @param client {@link Client } (required) + */ + public PlatformApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); + } + + /** + * Platform constructor in {@link com.adyen.service.balanceplatform package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public PlatformApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Get all account holders under a balance platform + * + * @param id {@link String } The unique identifier of the balance platform. (required) + * @return {@link PaginatedAccountHoldersResponse } + * @throws ApiException if fails to make API call + */ + public PaginatedAccountHoldersResponse getAllAccountHoldersUnderBalancePlatform(String id) throws ApiException, IOException { + return getAllAccountHoldersUnderBalancePlatform(id, null, null, null); } - pathParams.put("id", id); - // Add query params - Map queryParams = new HashMap<>(); - if (offset != null) { - queryParams.put("offset", offset.toString()); + /** + * Get all account holders under a balance platform + * + * @param id {@link String } The unique identifier of the balance platform. (required) + * @param offset {@link Integer } Query: The number of items that you want to skip. (optional) + * @param limit {@link Integer } Query: The number of items returned per page, maximum 100 items. By default, the response returns 10 items per page. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PaginatedAccountHoldersResponse } + * @throws ApiException if fails to make API call + */ + public PaginatedAccountHoldersResponse getAllAccountHoldersUnderBalancePlatform(String id, Integer offset, Integer limit, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + //Add query params + Map queryParams = new HashMap<>(); + if (offset != null) { + queryParams.put("offset", offset.toString()); + } + if (limit != null) { + queryParams.put("limit", limit.toString()); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/balancePlatforms/{id}/accountHolders", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return PaginatedAccountHoldersResponse.fromJson(jsonResult); } - if (limit != null) { - queryParams.put("limit", limit.toString()); + + /** + * Get all transaction rules for a balance platform + * + * @param id {@link String } The unique identifier of the balance platform. (required) + * @return {@link TransactionRulesResponse } + * @throws ApiException if fails to make API call + */ + public TransactionRulesResponse getAllTransactionRulesForBalancePlatform(String id) throws ApiException, IOException { + return getAllTransactionRulesForBalancePlatform(id, null); } - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/balancePlatforms/{id}/accountHolders", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return PaginatedAccountHoldersResponse.fromJson(jsonResult); - } - - /** - * Get all transaction rules for a balance platform - * - * @param id {@link String } The unique identifier of the balance platform. (required) - * @return {@link TransactionRulesResponse } - * @throws ApiException if fails to make API call - */ - public TransactionRulesResponse getAllTransactionRulesForBalancePlatform(String id) - throws ApiException, IOException { - return getAllTransactionRulesForBalancePlatform(id, null); - } - - /** - * Get all transaction rules for a balance platform - * - * @param id {@link String } The unique identifier of the balance platform. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TransactionRulesResponse } - * @throws ApiException if fails to make API call - */ - public TransactionRulesResponse getAllTransactionRulesForBalancePlatform( - String id, RequestOptions requestOptions) throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + /** + * Get all transaction rules for a balance platform + * + * @param id {@link String } The unique identifier of the balance platform. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TransactionRulesResponse } + * @throws ApiException if fails to make API call + */ + public TransactionRulesResponse getAllTransactionRulesForBalancePlatform(String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/balancePlatforms/{id}/transactionRules", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TransactionRulesResponse.fromJson(jsonResult); } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/balancePlatforms/{id}/transactionRules", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TransactionRulesResponse.fromJson(jsonResult); - } - - /** - * Get a balance platform - * - * @param id {@link String } The unique identifier of the balance platform. (required) - * @return {@link BalancePlatform } - * @throws ApiException if fails to make API call - */ - public BalancePlatform getBalancePlatform(String id) throws ApiException, IOException { - return getBalancePlatform(id, null); - } - - /** - * Get a balance platform - * - * @param id {@link String } The unique identifier of the balance platform. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link BalancePlatform } - * @throws ApiException if fails to make API call - */ - public BalancePlatform getBalancePlatform(String id, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + + /** + * Get a balance platform + * + * @param id {@link String } The unique identifier of the balance platform. (required) + * @return {@link BalancePlatform } + * @throws ApiException if fails to make API call + */ + public BalancePlatform getBalancePlatform(String id) throws ApiException, IOException { + return getBalancePlatform(id, null); + } + + /** + * Get a balance platform + * + * @param id {@link String } The unique identifier of the balance platform. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link BalancePlatform } + * @throws ApiException if fails to make API call + */ + public BalancePlatform getBalancePlatform(String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/balancePlatforms/{id}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return BalancePlatform.fromJson(jsonResult); } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/balancePlatforms/{id}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return BalancePlatform.fromJson(jsonResult); - } } diff --git a/src/main/java/com/adyen/service/balanceplatform/TransactionRulesApi.java b/src/main/java/com/adyen/service/balanceplatform/TransactionRulesApi.java index c1386eaba..afacefd29 100644 --- a/src/main/java/com/adyen/service/balanceplatform/TransactionRulesApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/TransactionRulesApi.java @@ -2,7 +2,7 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,199 +14,168 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; +import com.adyen.model.balanceplatform.RestServiceError; import com.adyen.model.balanceplatform.TransactionRule; import com.adyen.model.balanceplatform.TransactionRuleInfo; import com.adyen.model.balanceplatform.TransactionRuleResponse; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class TransactionRulesApi extends Service { - public static final String API_VERSION = "2"; - - protected String baseURL; - - /** - * Transaction rules constructor in {@link com.adyen.service.balanceplatform package}. - * - * @param client {@link Client } (required) - */ - public TransactionRulesApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); - } - - /** - * Transaction rules constructor in {@link com.adyen.service.balanceplatform package}. Please use - * this constructor only if you would like to pass along your own url for routing or testing - * purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public TransactionRulesApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Create a transaction rule - * - * @param transactionRuleInfo {@link TransactionRuleInfo } (required) - * @return {@link TransactionRule } - * @throws ApiException if fails to make API call - */ - public TransactionRule createTransactionRule(TransactionRuleInfo transactionRuleInfo) - throws ApiException, IOException { - return createTransactionRule(transactionRuleInfo, null); - } - - /** - * Create a transaction rule - * - * @param transactionRuleInfo {@link TransactionRuleInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TransactionRule } - * @throws ApiException if fails to make API call - */ - public TransactionRule createTransactionRule( - TransactionRuleInfo transactionRuleInfo, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = transactionRuleInfo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/transactionRules", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return TransactionRule.fromJson(jsonResult); - } - - /** - * Delete a transaction rule - * - * @param transactionRuleId {@link String } The unique identifier of the transaction rule. - * (required) - * @return {@link TransactionRule } - * @throws ApiException if fails to make API call - */ - public TransactionRule deleteTransactionRule(String transactionRuleId) - throws ApiException, IOException { - return deleteTransactionRule(transactionRuleId, null); - } - - /** - * Delete a transaction rule - * - * @param transactionRuleId {@link String } The unique identifier of the transaction rule. - * (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TransactionRule } - * @throws ApiException if fails to make API call - */ - public TransactionRule deleteTransactionRule( - String transactionRuleId, RequestOptions requestOptions) throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (transactionRuleId == null) { - throw new IllegalArgumentException("Please provide the transactionRuleId path parameter"); + public static final String API_VERSION = "2"; + + protected String baseURL; + + /** + * Transaction rules constructor in {@link com.adyen.service.balanceplatform package}. + * @param client {@link Client } (required) + */ + public TransactionRulesApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); + } + + /** + * Transaction rules constructor in {@link com.adyen.service.balanceplatform package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public TransactionRulesApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Create a transaction rule + * + * @param transactionRuleInfo {@link TransactionRuleInfo } (required) + * @return {@link TransactionRule } + * @throws ApiException if fails to make API call + */ + public TransactionRule createTransactionRule(TransactionRuleInfo transactionRuleInfo) throws ApiException, IOException { + return createTransactionRule(transactionRuleInfo, null); + } + + /** + * Create a transaction rule + * + * @param transactionRuleInfo {@link TransactionRuleInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TransactionRule } + * @throws ApiException if fails to make API call + */ + public TransactionRule createTransactionRule(TransactionRuleInfo transactionRuleInfo, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = transactionRuleInfo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/transactionRules", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return TransactionRule.fromJson(jsonResult); + } + + /** + * Delete a transaction rule + * + * @param transactionRuleId {@link String } The unique identifier of the transaction rule. (required) + * @return {@link TransactionRule } + * @throws ApiException if fails to make API call + */ + public TransactionRule deleteTransactionRule(String transactionRuleId) throws ApiException, IOException { + return deleteTransactionRule(transactionRuleId, null); } - pathParams.put("transactionRuleId", transactionRuleId); - - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/transactionRules/{transactionRuleId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); - return TransactionRule.fromJson(jsonResult); - } - - /** - * Get a transaction rule - * - * @param transactionRuleId {@link String } The unique identifier of the transaction rule. - * (required) - * @return {@link TransactionRuleResponse } - * @throws ApiException if fails to make API call - */ - public TransactionRuleResponse getTransactionRule(String transactionRuleId) - throws ApiException, IOException { - return getTransactionRule(transactionRuleId, null); - } - - /** - * Get a transaction rule - * - * @param transactionRuleId {@link String } The unique identifier of the transaction rule. - * (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TransactionRuleResponse } - * @throws ApiException if fails to make API call - */ - public TransactionRuleResponse getTransactionRule( - String transactionRuleId, RequestOptions requestOptions) throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (transactionRuleId == null) { - throw new IllegalArgumentException("Please provide the transactionRuleId path parameter"); + + /** + * Delete a transaction rule + * + * @param transactionRuleId {@link String } The unique identifier of the transaction rule. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TransactionRule } + * @throws ApiException if fails to make API call + */ + public TransactionRule deleteTransactionRule(String transactionRuleId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (transactionRuleId == null) { + throw new IllegalArgumentException("Please provide the transactionRuleId path parameter"); + } + pathParams.put("transactionRuleId", transactionRuleId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/transactionRules/{transactionRuleId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); + return TransactionRule.fromJson(jsonResult); + } + + /** + * Get a transaction rule + * + * @param transactionRuleId {@link String } The unique identifier of the transaction rule. (required) + * @return {@link TransactionRuleResponse } + * @throws ApiException if fails to make API call + */ + public TransactionRuleResponse getTransactionRule(String transactionRuleId) throws ApiException, IOException { + return getTransactionRule(transactionRuleId, null); } - pathParams.put("transactionRuleId", transactionRuleId); - - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/transactionRules/{transactionRuleId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TransactionRuleResponse.fromJson(jsonResult); - } - - /** - * Update a transaction rule - * - * @param transactionRuleId {@link String } The unique identifier of the transaction rule. - * (required) - * @param transactionRuleInfo {@link TransactionRuleInfo } (required) - * @return {@link TransactionRule } - * @throws ApiException if fails to make API call - */ - public TransactionRule updateTransactionRule( - String transactionRuleId, TransactionRuleInfo transactionRuleInfo) - throws ApiException, IOException { - return updateTransactionRule(transactionRuleId, transactionRuleInfo, null); - } - - /** - * Update a transaction rule - * - * @param transactionRuleId {@link String } The unique identifier of the transaction rule. - * (required) - * @param transactionRuleInfo {@link TransactionRuleInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TransactionRule } - * @throws ApiException if fails to make API call - */ - public TransactionRule updateTransactionRule( - String transactionRuleId, - TransactionRuleInfo transactionRuleInfo, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (transactionRuleId == null) { - throw new IllegalArgumentException("Please provide the transactionRuleId path parameter"); + + /** + * Get a transaction rule + * + * @param transactionRuleId {@link String } The unique identifier of the transaction rule. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TransactionRuleResponse } + * @throws ApiException if fails to make API call + */ + public TransactionRuleResponse getTransactionRule(String transactionRuleId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (transactionRuleId == null) { + throw new IllegalArgumentException("Please provide the transactionRuleId path parameter"); + } + pathParams.put("transactionRuleId", transactionRuleId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/transactionRules/{transactionRuleId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TransactionRuleResponse.fromJson(jsonResult); + } + + /** + * Update a transaction rule + * + * @param transactionRuleId {@link String } The unique identifier of the transaction rule. (required) + * @param transactionRuleInfo {@link TransactionRuleInfo } (required) + * @return {@link TransactionRule } + * @throws ApiException if fails to make API call + */ + public TransactionRule updateTransactionRule(String transactionRuleId, TransactionRuleInfo transactionRuleInfo) throws ApiException, IOException { + return updateTransactionRule(transactionRuleId, transactionRuleInfo, null); + } + + /** + * Update a transaction rule + * + * @param transactionRuleId {@link String } The unique identifier of the transaction rule. (required) + * @param transactionRuleInfo {@link TransactionRuleInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TransactionRule } + * @throws ApiException if fails to make API call + */ + public TransactionRule updateTransactionRule(String transactionRuleId, TransactionRuleInfo transactionRuleInfo, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (transactionRuleId == null) { + throw new IllegalArgumentException("Please provide the transactionRuleId path parameter"); + } + pathParams.put("transactionRuleId", transactionRuleId); + + String requestBody = transactionRuleInfo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/transactionRules/{transactionRuleId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return TransactionRule.fromJson(jsonResult); } - pathParams.put("transactionRuleId", transactionRuleId); - - String requestBody = transactionRuleInfo.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/transactionRules/{transactionRuleId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return TransactionRule.fromJson(jsonResult); - } } diff --git a/src/main/java/com/adyen/service/balanceplatform/TransferRoutesApi.java b/src/main/java/com/adyen/service/balanceplatform/TransferRoutesApi.java index 5de974102..db89c66b5 100644 --- a/src/main/java/com/adyen/service/balanceplatform/TransferRoutesApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/TransferRoutesApi.java @@ -2,7 +2,7 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,70 +14,66 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; +import com.adyen.model.balanceplatform.RestServiceError; import com.adyen.model.balanceplatform.TransferRouteRequest; import com.adyen.model.balanceplatform.TransferRouteResponse; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; +import java.util.HashMap; +import java.util.Map; public class TransferRoutesApi extends Service { - public static final String API_VERSION = "2"; + public static final String API_VERSION = "2"; - protected String baseURL; + protected String baseURL; - /** - * Transfer routes constructor in {@link com.adyen.service.balanceplatform package}. - * - * @param client {@link Client } (required) - */ - public TransferRoutesApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); - } + /** + * Transfer routes constructor in {@link com.adyen.service.balanceplatform package}. + * @param client {@link Client } (required) + */ + public TransferRoutesApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); + } - /** - * Transfer routes constructor in {@link com.adyen.service.balanceplatform package}. Please use - * this constructor only if you would like to pass along your own url for routing or testing - * purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public TransferRoutesApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Transfer routes constructor in {@link com.adyen.service.balanceplatform package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public TransferRoutesApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Calculate transfer routes - * - * @param transferRouteRequest {@link TransferRouteRequest } (required) - * @return {@link TransferRouteResponse } - * @throws ApiException if fails to make API call - */ - public TransferRouteResponse calculateTransferRoutes(TransferRouteRequest transferRouteRequest) - throws ApiException, IOException { - return calculateTransferRoutes(transferRouteRequest, null); - } + /** + * Calculate transfer routes + * + * @param transferRouteRequest {@link TransferRouteRequest } (required) + * @return {@link TransferRouteResponse } + * @throws ApiException if fails to make API call + */ + public TransferRouteResponse calculateTransferRoutes(TransferRouteRequest transferRouteRequest) throws ApiException, IOException { + return calculateTransferRoutes(transferRouteRequest, null); + } - /** - * Calculate transfer routes - * - * @param transferRouteRequest {@link TransferRouteRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TransferRouteResponse } - * @throws ApiException if fails to make API call - */ - public TransferRouteResponse calculateTransferRoutes( - TransferRouteRequest transferRouteRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = transferRouteRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/transferRoutes/calculate", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return TransferRouteResponse.fromJson(jsonResult); - } + /** + * Calculate transfer routes + * + * @param transferRouteRequest {@link TransferRouteRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TransferRouteResponse } + * @throws ApiException if fails to make API call + */ + public TransferRouteResponse calculateTransferRoutes(TransferRouteRequest transferRouteRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = transferRouteRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/transferRoutes/calculate", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return TransferRouteResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/binlookup/BinLookupApi.java b/src/main/java/com/adyen/service/binlookup/BinLookupApi.java index 91c7a1cb3..3e47f53ef 100644 --- a/src/main/java/com/adyen/service/binlookup/BinLookupApi.java +++ b/src/main/java/com/adyen/service/binlookup/BinLookupApi.java @@ -2,7 +2,7 @@ * Adyen BinLookup API * * The version of the OpenAPI document: 54 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,103 +14,94 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.binlookup.CostEstimateRequest; import com.adyen.model.binlookup.CostEstimateResponse; +import com.adyen.model.binlookup.ServiceError; import com.adyen.model.binlookup.ThreeDSAvailabilityRequest; import com.adyen.model.binlookup.ThreeDSAvailabilityResponse; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; +import java.util.HashMap; +import java.util.Map; public class BinLookupApi extends Service { - public static final String API_VERSION = "54"; + public static final String API_VERSION = "54"; - protected String baseURL; + protected String baseURL; - /** - * BinLookup constructor in {@link com.adyen.service.binlookup package}. - * - * @param client {@link Client } (required) - */ - public BinLookupApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/BinLookup/v54"); - } + /** + * BinLookup constructor in {@link com.adyen.service.binlookup package}. + * @param client {@link Client } (required) + */ + public BinLookupApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/BinLookup/v54"); + } - /** - * BinLookup constructor in {@link com.adyen.service.binlookup package}. Please use this - * constructor only if you would like to pass along your own url for routing or testing purposes. - * The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public BinLookupApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * BinLookup constructor in {@link com.adyen.service.binlookup package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public BinLookupApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Check if 3D Secure is available - * - * @param threeDSAvailabilityRequest {@link ThreeDSAvailabilityRequest } (required) - * @return {@link ThreeDSAvailabilityResponse } - * @throws ApiException if fails to make API call - */ - public ThreeDSAvailabilityResponse get3dsAvailability( - ThreeDSAvailabilityRequest threeDSAvailabilityRequest) throws ApiException, IOException { - return get3dsAvailability(threeDSAvailabilityRequest, null); - } + /** + * Check if 3D Secure is available + * + * @param threeDSAvailabilityRequest {@link ThreeDSAvailabilityRequest } (required) + * @return {@link ThreeDSAvailabilityResponse } + * @throws ApiException if fails to make API call + */ + public ThreeDSAvailabilityResponse get3dsAvailability(ThreeDSAvailabilityRequest threeDSAvailabilityRequest) throws ApiException, IOException { + return get3dsAvailability(threeDSAvailabilityRequest, null); + } - /** - * Check if 3D Secure is available - * - * @param threeDSAvailabilityRequest {@link ThreeDSAvailabilityRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ThreeDSAvailabilityResponse } - * @throws ApiException if fails to make API call - */ - public ThreeDSAvailabilityResponse get3dsAvailability( - ThreeDSAvailabilityRequest threeDSAvailabilityRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = threeDSAvailabilityRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/get3dsAvailability", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return ThreeDSAvailabilityResponse.fromJson(jsonResult); - } + /** + * Check if 3D Secure is available + * + * @param threeDSAvailabilityRequest {@link ThreeDSAvailabilityRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ThreeDSAvailabilityResponse } + * @throws ApiException if fails to make API call + */ + public ThreeDSAvailabilityResponse get3dsAvailability(ThreeDSAvailabilityRequest threeDSAvailabilityRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = threeDSAvailabilityRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/get3dsAvailability", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return ThreeDSAvailabilityResponse.fromJson(jsonResult); + } - /** - * Get a fees cost estimate - * - * @param costEstimateRequest {@link CostEstimateRequest } (required) - * @return {@link CostEstimateResponse } - * @throws ApiException if fails to make API call - */ - public CostEstimateResponse getCostEstimate(CostEstimateRequest costEstimateRequest) - throws ApiException, IOException { - return getCostEstimate(costEstimateRequest, null); - } + /** + * Get a fees cost estimate + * + * @param costEstimateRequest {@link CostEstimateRequest } (required) + * @return {@link CostEstimateResponse } + * @throws ApiException if fails to make API call + */ + public CostEstimateResponse getCostEstimate(CostEstimateRequest costEstimateRequest) throws ApiException, IOException { + return getCostEstimate(costEstimateRequest, null); + } - /** - * Get a fees cost estimate - * - * @param costEstimateRequest {@link CostEstimateRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link CostEstimateResponse } - * @throws ApiException if fails to make API call - */ - public CostEstimateResponse getCostEstimate( - CostEstimateRequest costEstimateRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = costEstimateRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/getCostEstimate", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return CostEstimateResponse.fromJson(jsonResult); - } + /** + * Get a fees cost estimate + * + * @param costEstimateRequest {@link CostEstimateRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link CostEstimateResponse } + * @throws ApiException if fails to make API call + */ + public CostEstimateResponse getCostEstimate(CostEstimateRequest costEstimateRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = costEstimateRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/getCostEstimate", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return CostEstimateResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/checkout/DonationsApi.java b/src/main/java/com/adyen/service/checkout/DonationsApi.java index 656f739c6..e40248ce7 100644 --- a/src/main/java/com/adyen/service/checkout/DonationsApi.java +++ b/src/main/java/com/adyen/service/checkout/DonationsApi.java @@ -2,7 +2,7 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,103 +14,94 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.checkout.DonationCampaignsRequest; import com.adyen.model.checkout.DonationCampaignsResponse; import com.adyen.model.checkout.DonationPaymentRequest; import com.adyen.model.checkout.DonationPaymentResponse; +import com.adyen.model.checkout.ServiceError; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; +import java.util.HashMap; +import java.util.Map; public class DonationsApi extends Service { - public static final String API_VERSION = "71"; + public static final String API_VERSION = "71"; - protected String baseURL; + protected String baseURL; - /** - * Donations constructor in {@link com.adyen.service.checkout package}. - * - * @param client {@link Client } (required) - */ - public DonationsApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://checkout-test.adyen.com/v71"); - } + /** + * Donations constructor in {@link com.adyen.service.checkout package}. + * @param client {@link Client } (required) + */ + public DonationsApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://checkout-test.adyen.com/v71"); + } - /** - * Donations constructor in {@link com.adyen.service.checkout package}. Please use this - * constructor only if you would like to pass along your own url for routing or testing purposes. - * The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public DonationsApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Donations constructor in {@link com.adyen.service.checkout package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public DonationsApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Get a list of donation campaigns. - * - * @param donationCampaignsRequest {@link DonationCampaignsRequest } (required) - * @return {@link DonationCampaignsResponse } - * @throws ApiException if fails to make API call - */ - public DonationCampaignsResponse donationCampaigns( - DonationCampaignsRequest donationCampaignsRequest) throws ApiException, IOException { - return donationCampaigns(donationCampaignsRequest, null); - } + /** + * Get a list of donation campaigns. + * + * @param donationCampaignsRequest {@link DonationCampaignsRequest } (required) + * @return {@link DonationCampaignsResponse } + * @throws ApiException if fails to make API call + */ + public DonationCampaignsResponse donationCampaigns(DonationCampaignsRequest donationCampaignsRequest) throws ApiException, IOException { + return donationCampaigns(donationCampaignsRequest, null); + } - /** - * Get a list of donation campaigns. - * - * @param donationCampaignsRequest {@link DonationCampaignsRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link DonationCampaignsResponse } - * @throws ApiException if fails to make API call - */ - public DonationCampaignsResponse donationCampaigns( - DonationCampaignsRequest donationCampaignsRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = donationCampaignsRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/donationCampaigns", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return DonationCampaignsResponse.fromJson(jsonResult); - } + /** + * Get a list of donation campaigns. + * + * @param donationCampaignsRequest {@link DonationCampaignsRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link DonationCampaignsResponse } + * @throws ApiException if fails to make API call + */ + public DonationCampaignsResponse donationCampaigns(DonationCampaignsRequest donationCampaignsRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = donationCampaignsRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/donationCampaigns", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return DonationCampaignsResponse.fromJson(jsonResult); + } - /** - * Start a transaction for donations - * - * @param donationPaymentRequest {@link DonationPaymentRequest } (required) - * @return {@link DonationPaymentResponse } - * @throws ApiException if fails to make API call - */ - public DonationPaymentResponse donations(DonationPaymentRequest donationPaymentRequest) - throws ApiException, IOException { - return donations(donationPaymentRequest, null); - } + /** + * Start a transaction for donations + * + * @param donationPaymentRequest {@link DonationPaymentRequest } (required) + * @return {@link DonationPaymentResponse } + * @throws ApiException if fails to make API call + */ + public DonationPaymentResponse donations(DonationPaymentRequest donationPaymentRequest) throws ApiException, IOException { + return donations(donationPaymentRequest, null); + } - /** - * Start a transaction for donations - * - * @param donationPaymentRequest {@link DonationPaymentRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link DonationPaymentResponse } - * @throws ApiException if fails to make API call - */ - public DonationPaymentResponse donations( - DonationPaymentRequest donationPaymentRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = donationPaymentRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/donations", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return DonationPaymentResponse.fromJson(jsonResult); - } + /** + * Start a transaction for donations + * + * @param donationPaymentRequest {@link DonationPaymentRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link DonationPaymentResponse } + * @throws ApiException if fails to make API call + */ + public DonationPaymentResponse donations(DonationPaymentRequest donationPaymentRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = donationPaymentRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/donations", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return DonationPaymentResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/checkout/ModificationsApi.java b/src/main/java/com/adyen/service/checkout/ModificationsApi.java index d03d414a4..987ac30f9 100644 --- a/src/main/java/com/adyen/service/checkout/ModificationsApi.java +++ b/src/main/java/com/adyen/service/checkout/ModificationsApi.java @@ -2,7 +2,7 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,7 +14,6 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.checkout.PaymentAmountUpdateRequest; import com.adyen.model.checkout.PaymentAmountUpdateResponse; import com.adyen.model.checkout.PaymentCancelRequest; @@ -25,312 +24,241 @@ import com.adyen.model.checkout.PaymentRefundResponse; import com.adyen.model.checkout.PaymentReversalRequest; import com.adyen.model.checkout.PaymentReversalResponse; +import com.adyen.model.checkout.ServiceError; import com.adyen.model.checkout.StandalonePaymentCancelRequest; import com.adyen.model.checkout.StandalonePaymentCancelResponse; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class ModificationsApi extends Service { - public static final String API_VERSION = "71"; + public static final String API_VERSION = "71"; - protected String baseURL; + protected String baseURL; - /** - * Modifications constructor in {@link com.adyen.service.checkout package}. - * - * @param client {@link Client } (required) - */ - public ModificationsApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://checkout-test.adyen.com/v71"); - } - - /** - * Modifications constructor in {@link com.adyen.service.checkout package}. Please use this - * constructor only if you would like to pass along your own url for routing or testing purposes. - * The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public ModificationsApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Modifications constructor in {@link com.adyen.service.checkout package}. + * @param client {@link Client } (required) + */ + public ModificationsApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://checkout-test.adyen.com/v71"); + } - /** - * Cancel an authorised payment - * - * @param standalonePaymentCancelRequest {@link StandalonePaymentCancelRequest } (required) - * @return {@link StandalonePaymentCancelResponse } - * @throws ApiException if fails to make API call - */ - public StandalonePaymentCancelResponse cancelAuthorisedPayment( - StandalonePaymentCancelRequest standalonePaymentCancelRequest) - throws ApiException, IOException { - return cancelAuthorisedPayment(standalonePaymentCancelRequest, null); - } + /** + * Modifications constructor in {@link com.adyen.service.checkout package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public ModificationsApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Cancel an authorised payment - * - * @param standalonePaymentCancelRequest {@link StandalonePaymentCancelRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link StandalonePaymentCancelResponse } - * @throws ApiException if fails to make API call - */ - public StandalonePaymentCancelResponse cancelAuthorisedPayment( - StandalonePaymentCancelRequest standalonePaymentCancelRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = standalonePaymentCancelRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/cancels", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return StandalonePaymentCancelResponse.fromJson(jsonResult); - } + /** + * Cancel an authorised payment + * + * @param standalonePaymentCancelRequest {@link StandalonePaymentCancelRequest } (required) + * @return {@link StandalonePaymentCancelResponse } + * @throws ApiException if fails to make API call + */ + public StandalonePaymentCancelResponse cancelAuthorisedPayment(StandalonePaymentCancelRequest standalonePaymentCancelRequest) throws ApiException, IOException { + return cancelAuthorisedPayment(standalonePaymentCancelRequest, null); + } - /** - * Cancel an authorised payment - * - * @param paymentPspReference {@link String } The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment that you want to cancel. (required) - * @param paymentCancelRequest {@link PaymentCancelRequest } (required) - * @return {@link PaymentCancelResponse } - * @throws ApiException if fails to make API call - */ - public PaymentCancelResponse cancelAuthorisedPaymentByPspReference( - String paymentPspReference, PaymentCancelRequest paymentCancelRequest) - throws ApiException, IOException { - return cancelAuthorisedPaymentByPspReference(paymentPspReference, paymentCancelRequest, null); - } + /** + * Cancel an authorised payment + * + * @param standalonePaymentCancelRequest {@link StandalonePaymentCancelRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link StandalonePaymentCancelResponse } + * @throws ApiException if fails to make API call + */ + public StandalonePaymentCancelResponse cancelAuthorisedPayment(StandalonePaymentCancelRequest standalonePaymentCancelRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = standalonePaymentCancelRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/cancels", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return StandalonePaymentCancelResponse.fromJson(jsonResult); + } - /** - * Cancel an authorised payment - * - * @param paymentPspReference {@link String } The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment that you want to cancel. (required) - * @param paymentCancelRequest {@link PaymentCancelRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PaymentCancelResponse } - * @throws ApiException if fails to make API call - */ - public PaymentCancelResponse cancelAuthorisedPaymentByPspReference( - String paymentPspReference, - PaymentCancelRequest paymentCancelRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (paymentPspReference == null) { - throw new IllegalArgumentException("Please provide the paymentPspReference path parameter"); + /** + * Cancel an authorised payment + * + * @param paymentPspReference {@link String } The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment that you want to cancel. (required) + * @param paymentCancelRequest {@link PaymentCancelRequest } (required) + * @return {@link PaymentCancelResponse } + * @throws ApiException if fails to make API call + */ + public PaymentCancelResponse cancelAuthorisedPaymentByPspReference(String paymentPspReference, PaymentCancelRequest paymentCancelRequest) throws ApiException, IOException { + return cancelAuthorisedPaymentByPspReference(paymentPspReference, paymentCancelRequest, null); } - pathParams.put("paymentPspReference", paymentPspReference); - String requestBody = paymentCancelRequest.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/payments/{paymentPspReference}/cancels", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return PaymentCancelResponse.fromJson(jsonResult); - } + /** + * Cancel an authorised payment + * + * @param paymentPspReference {@link String } The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment that you want to cancel. (required) + * @param paymentCancelRequest {@link PaymentCancelRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PaymentCancelResponse } + * @throws ApiException if fails to make API call + */ + public PaymentCancelResponse cancelAuthorisedPaymentByPspReference(String paymentPspReference, PaymentCancelRequest paymentCancelRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (paymentPspReference == null) { + throw new IllegalArgumentException("Please provide the paymentPspReference path parameter"); + } + pathParams.put("paymentPspReference", paymentPspReference); - /** - * Capture an authorised payment - * - * @param paymentPspReference {@link String } The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment that you want to capture. (required) - * @param paymentCaptureRequest {@link PaymentCaptureRequest } (required) - * @return {@link PaymentCaptureResponse } - * @throws ApiException if fails to make API call - */ - public PaymentCaptureResponse captureAuthorisedPayment( - String paymentPspReference, PaymentCaptureRequest paymentCaptureRequest) - throws ApiException, IOException { - return captureAuthorisedPayment(paymentPspReference, paymentCaptureRequest, null); - } + String requestBody = paymentCancelRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/payments/{paymentPspReference}/cancels", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return PaymentCancelResponse.fromJson(jsonResult); + } - /** - * Capture an authorised payment - * - * @param paymentPspReference {@link String } The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment that you want to capture. (required) - * @param paymentCaptureRequest {@link PaymentCaptureRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PaymentCaptureResponse } - * @throws ApiException if fails to make API call - */ - public PaymentCaptureResponse captureAuthorisedPayment( - String paymentPspReference, - PaymentCaptureRequest paymentCaptureRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (paymentPspReference == null) { - throw new IllegalArgumentException("Please provide the paymentPspReference path parameter"); + /** + * Capture an authorised payment + * + * @param paymentPspReference {@link String } The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment that you want to capture. (required) + * @param paymentCaptureRequest {@link PaymentCaptureRequest } (required) + * @return {@link PaymentCaptureResponse } + * @throws ApiException if fails to make API call + */ + public PaymentCaptureResponse captureAuthorisedPayment(String paymentPspReference, PaymentCaptureRequest paymentCaptureRequest) throws ApiException, IOException { + return captureAuthorisedPayment(paymentPspReference, paymentCaptureRequest, null); } - pathParams.put("paymentPspReference", paymentPspReference); - String requestBody = paymentCaptureRequest.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/payments/{paymentPspReference}/captures", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return PaymentCaptureResponse.fromJson(jsonResult); - } + /** + * Capture an authorised payment + * + * @param paymentPspReference {@link String } The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment that you want to capture. (required) + * @param paymentCaptureRequest {@link PaymentCaptureRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PaymentCaptureResponse } + * @throws ApiException if fails to make API call + */ + public PaymentCaptureResponse captureAuthorisedPayment(String paymentPspReference, PaymentCaptureRequest paymentCaptureRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (paymentPspReference == null) { + throw new IllegalArgumentException("Please provide the paymentPspReference path parameter"); + } + pathParams.put("paymentPspReference", paymentPspReference); - /** - * Refund a captured payment - * - * @param paymentPspReference {@link String } The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment that you want to refund. (required) - * @param paymentRefundRequest {@link PaymentRefundRequest } (required) - * @return {@link PaymentRefundResponse } - * @throws ApiException if fails to make API call - */ - public PaymentRefundResponse refundCapturedPayment( - String paymentPspReference, PaymentRefundRequest paymentRefundRequest) - throws ApiException, IOException { - return refundCapturedPayment(paymentPspReference, paymentRefundRequest, null); - } + String requestBody = paymentCaptureRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/payments/{paymentPspReference}/captures", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return PaymentCaptureResponse.fromJson(jsonResult); + } - /** - * Refund a captured payment - * - * @param paymentPspReference {@link String } The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment that you want to refund. (required) - * @param paymentRefundRequest {@link PaymentRefundRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PaymentRefundResponse } - * @throws ApiException if fails to make API call - */ - public PaymentRefundResponse refundCapturedPayment( - String paymentPspReference, - PaymentRefundRequest paymentRefundRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (paymentPspReference == null) { - throw new IllegalArgumentException("Please provide the paymentPspReference path parameter"); + /** + * Refund a captured payment + * + * @param paymentPspReference {@link String } The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment that you want to refund. (required) + * @param paymentRefundRequest {@link PaymentRefundRequest } (required) + * @return {@link PaymentRefundResponse } + * @throws ApiException if fails to make API call + */ + public PaymentRefundResponse refundCapturedPayment(String paymentPspReference, PaymentRefundRequest paymentRefundRequest) throws ApiException, IOException { + return refundCapturedPayment(paymentPspReference, paymentRefundRequest, null); } - pathParams.put("paymentPspReference", paymentPspReference); - String requestBody = paymentRefundRequest.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/payments/{paymentPspReference}/refunds", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return PaymentRefundResponse.fromJson(jsonResult); - } + /** + * Refund a captured payment + * + * @param paymentPspReference {@link String } The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment that you want to refund. (required) + * @param paymentRefundRequest {@link PaymentRefundRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PaymentRefundResponse } + * @throws ApiException if fails to make API call + */ + public PaymentRefundResponse refundCapturedPayment(String paymentPspReference, PaymentRefundRequest paymentRefundRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (paymentPspReference == null) { + throw new IllegalArgumentException("Please provide the paymentPspReference path parameter"); + } + pathParams.put("paymentPspReference", paymentPspReference); - /** - * Refund or cancel a payment - * - * @param paymentPspReference {@link String } The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment that you want to reverse. (required) - * @param paymentReversalRequest {@link PaymentReversalRequest } (required) - * @return {@link PaymentReversalResponse } - * @throws ApiException if fails to make API call - */ - public PaymentReversalResponse refundOrCancelPayment( - String paymentPspReference, PaymentReversalRequest paymentReversalRequest) - throws ApiException, IOException { - return refundOrCancelPayment(paymentPspReference, paymentReversalRequest, null); - } + String requestBody = paymentRefundRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/payments/{paymentPspReference}/refunds", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return PaymentRefundResponse.fromJson(jsonResult); + } - /** - * Refund or cancel a payment - * - * @param paymentPspReference {@link String } The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment that you want to reverse. (required) - * @param paymentReversalRequest {@link PaymentReversalRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PaymentReversalResponse } - * @throws ApiException if fails to make API call - */ - public PaymentReversalResponse refundOrCancelPayment( - String paymentPspReference, - PaymentReversalRequest paymentReversalRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (paymentPspReference == null) { - throw new IllegalArgumentException("Please provide the paymentPspReference path parameter"); + /** + * Refund or cancel a payment + * + * @param paymentPspReference {@link String } The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment that you want to reverse. (required) + * @param paymentReversalRequest {@link PaymentReversalRequest } (required) + * @return {@link PaymentReversalResponse } + * @throws ApiException if fails to make API call + */ + public PaymentReversalResponse refundOrCancelPayment(String paymentPspReference, PaymentReversalRequest paymentReversalRequest) throws ApiException, IOException { + return refundOrCancelPayment(paymentPspReference, paymentReversalRequest, null); } - pathParams.put("paymentPspReference", paymentPspReference); - String requestBody = paymentReversalRequest.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/payments/{paymentPspReference}/reversals", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return PaymentReversalResponse.fromJson(jsonResult); - } + /** + * Refund or cancel a payment + * + * @param paymentPspReference {@link String } The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment that you want to reverse. (required) + * @param paymentReversalRequest {@link PaymentReversalRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PaymentReversalResponse } + * @throws ApiException if fails to make API call + */ + public PaymentReversalResponse refundOrCancelPayment(String paymentPspReference, PaymentReversalRequest paymentReversalRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (paymentPspReference == null) { + throw new IllegalArgumentException("Please provide the paymentPspReference path parameter"); + } + pathParams.put("paymentPspReference", paymentPspReference); - /** - * Update an authorised amount - * - * @param paymentPspReference {@link String } The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment. (required) - * @param paymentAmountUpdateRequest {@link PaymentAmountUpdateRequest } (required) - * @return {@link PaymentAmountUpdateResponse } - * @throws ApiException if fails to make API call - */ - public PaymentAmountUpdateResponse updateAuthorisedAmount( - String paymentPspReference, PaymentAmountUpdateRequest paymentAmountUpdateRequest) - throws ApiException, IOException { - return updateAuthorisedAmount(paymentPspReference, paymentAmountUpdateRequest, null); - } + String requestBody = paymentReversalRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/payments/{paymentPspReference}/reversals", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return PaymentReversalResponse.fromJson(jsonResult); + } - /** - * Update an authorised amount - * - * @param paymentPspReference {@link String } The - * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) - * of the payment. (required) - * @param paymentAmountUpdateRequest {@link PaymentAmountUpdateRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PaymentAmountUpdateResponse } - * @throws ApiException if fails to make API call - */ - public PaymentAmountUpdateResponse updateAuthorisedAmount( - String paymentPspReference, - PaymentAmountUpdateRequest paymentAmountUpdateRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (paymentPspReference == null) { - throw new IllegalArgumentException("Please provide the paymentPspReference path parameter"); + /** + * Update an authorised amount + * + * @param paymentPspReference {@link String } The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment. (required) + * @param paymentAmountUpdateRequest {@link PaymentAmountUpdateRequest } (required) + * @return {@link PaymentAmountUpdateResponse } + * @throws ApiException if fails to make API call + */ + public PaymentAmountUpdateResponse updateAuthorisedAmount(String paymentPspReference, PaymentAmountUpdateRequest paymentAmountUpdateRequest) throws ApiException, IOException { + return updateAuthorisedAmount(paymentPspReference, paymentAmountUpdateRequest, null); } - pathParams.put("paymentPspReference", paymentPspReference); - String requestBody = paymentAmountUpdateRequest.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/payments/{paymentPspReference}/amountUpdates", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return PaymentAmountUpdateResponse.fromJson(jsonResult); - } + /** + * Update an authorised amount + * + * @param paymentPspReference {@link String } The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment. (required) + * @param paymentAmountUpdateRequest {@link PaymentAmountUpdateRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PaymentAmountUpdateResponse } + * @throws ApiException if fails to make API call + */ + public PaymentAmountUpdateResponse updateAuthorisedAmount(String paymentPspReference, PaymentAmountUpdateRequest paymentAmountUpdateRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (paymentPspReference == null) { + throw new IllegalArgumentException("Please provide the paymentPspReference path parameter"); + } + pathParams.put("paymentPspReference", paymentPspReference); + + String requestBody = paymentAmountUpdateRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/payments/{paymentPspReference}/amountUpdates", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return PaymentAmountUpdateResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/checkout/OrdersApi.java b/src/main/java/com/adyen/service/checkout/OrdersApi.java index e0fe0a0b6..3015fbde8 100644 --- a/src/main/java/com/adyen/service/checkout/OrdersApi.java +++ b/src/main/java/com/adyen/service/checkout/OrdersApi.java @@ -2,7 +2,7 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,136 +14,122 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.checkout.BalanceCheckRequest; import com.adyen.model.checkout.BalanceCheckResponse; import com.adyen.model.checkout.CancelOrderRequest; import com.adyen.model.checkout.CancelOrderResponse; import com.adyen.model.checkout.CreateOrderRequest; import com.adyen.model.checkout.CreateOrderResponse; +import com.adyen.model.checkout.ServiceError; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; +import java.util.HashMap; +import java.util.Map; public class OrdersApi extends Service { - public static final String API_VERSION = "71"; + public static final String API_VERSION = "71"; - protected String baseURL; + protected String baseURL; - /** - * Orders constructor in {@link com.adyen.service.checkout package}. - * - * @param client {@link Client } (required) - */ - public OrdersApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://checkout-test.adyen.com/v71"); - } + /** + * Orders constructor in {@link com.adyen.service.checkout package}. + * @param client {@link Client } (required) + */ + public OrdersApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://checkout-test.adyen.com/v71"); + } - /** - * Orders constructor in {@link com.adyen.service.checkout package}. Please use this constructor - * only if you would like to pass along your own url for routing or testing purposes. The latest - * API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public OrdersApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Orders constructor in {@link com.adyen.service.checkout package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public OrdersApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Cancel an order - * - * @param cancelOrderRequest {@link CancelOrderRequest } (required) - * @return {@link CancelOrderResponse } - * @throws ApiException if fails to make API call - */ - public CancelOrderResponse cancelOrder(CancelOrderRequest cancelOrderRequest) - throws ApiException, IOException { - return cancelOrder(cancelOrderRequest, null); - } + /** + * Cancel an order + * + * @param cancelOrderRequest {@link CancelOrderRequest } (required) + * @return {@link CancelOrderResponse } + * @throws ApiException if fails to make API call + */ + public CancelOrderResponse cancelOrder(CancelOrderRequest cancelOrderRequest) throws ApiException, IOException { + return cancelOrder(cancelOrderRequest, null); + } - /** - * Cancel an order - * - * @param cancelOrderRequest {@link CancelOrderRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link CancelOrderResponse } - * @throws ApiException if fails to make API call - */ - public CancelOrderResponse cancelOrder( - CancelOrderRequest cancelOrderRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = cancelOrderRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/orders/cancel", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return CancelOrderResponse.fromJson(jsonResult); - } + /** + * Cancel an order + * + * @param cancelOrderRequest {@link CancelOrderRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link CancelOrderResponse } + * @throws ApiException if fails to make API call + */ + public CancelOrderResponse cancelOrder(CancelOrderRequest cancelOrderRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = cancelOrderRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/orders/cancel", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return CancelOrderResponse.fromJson(jsonResult); + } - /** - * Get the balance of a gift card - * - * @param balanceCheckRequest {@link BalanceCheckRequest } (required) - * @return {@link BalanceCheckResponse } - * @throws ApiException if fails to make API call - */ - public BalanceCheckResponse getBalanceOfGiftCard(BalanceCheckRequest balanceCheckRequest) - throws ApiException, IOException { - return getBalanceOfGiftCard(balanceCheckRequest, null); - } + /** + * Get the balance of a gift card + * + * @param balanceCheckRequest {@link BalanceCheckRequest } (required) + * @return {@link BalanceCheckResponse } + * @throws ApiException if fails to make API call + */ + public BalanceCheckResponse getBalanceOfGiftCard(BalanceCheckRequest balanceCheckRequest) throws ApiException, IOException { + return getBalanceOfGiftCard(balanceCheckRequest, null); + } - /** - * Get the balance of a gift card - * - * @param balanceCheckRequest {@link BalanceCheckRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link BalanceCheckResponse } - * @throws ApiException if fails to make API call - */ - public BalanceCheckResponse getBalanceOfGiftCard( - BalanceCheckRequest balanceCheckRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = balanceCheckRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/paymentMethods/balance", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return BalanceCheckResponse.fromJson(jsonResult); - } + /** + * Get the balance of a gift card + * + * @param balanceCheckRequest {@link BalanceCheckRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link BalanceCheckResponse } + * @throws ApiException if fails to make API call + */ + public BalanceCheckResponse getBalanceOfGiftCard(BalanceCheckRequest balanceCheckRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = balanceCheckRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/paymentMethods/balance", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return BalanceCheckResponse.fromJson(jsonResult); + } - /** - * Create an order - * - * @param createOrderRequest {@link CreateOrderRequest } (required) - * @return {@link CreateOrderResponse } - * @throws ApiException if fails to make API call - */ - public CreateOrderResponse orders(CreateOrderRequest createOrderRequest) - throws ApiException, IOException { - return orders(createOrderRequest, null); - } + /** + * Create an order + * + * @param createOrderRequest {@link CreateOrderRequest } (required) + * @return {@link CreateOrderResponse } + * @throws ApiException if fails to make API call + */ + public CreateOrderResponse orders(CreateOrderRequest createOrderRequest) throws ApiException, IOException { + return orders(createOrderRequest, null); + } - /** - * Create an order - * - * @param createOrderRequest {@link CreateOrderRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link CreateOrderResponse } - * @throws ApiException if fails to make API call - */ - public CreateOrderResponse orders( - CreateOrderRequest createOrderRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = createOrderRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/orders", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return CreateOrderResponse.fromJson(jsonResult); - } + /** + * Create an order + * + * @param createOrderRequest {@link CreateOrderRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link CreateOrderResponse } + * @throws ApiException if fails to make API call + */ + public CreateOrderResponse orders(CreateOrderRequest createOrderRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = createOrderRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/orders", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return CreateOrderResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/checkout/PaymentLinksApi.java b/src/main/java/com/adyen/service/checkout/PaymentLinksApi.java index 5b8374f8c..033aa3da1 100644 --- a/src/main/java/com/adyen/service/checkout/PaymentLinksApi.java +++ b/src/main/java/com/adyen/service/checkout/PaymentLinksApi.java @@ -2,7 +2,7 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,152 +14,135 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.checkout.PaymentLinkRequest; import com.adyen.model.checkout.PaymentLinkResponse; +import com.adyen.model.checkout.ServiceError; import com.adyen.model.checkout.UpdatePaymentLinkRequest; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class PaymentLinksApi extends Service { - public static final String API_VERSION = "71"; - - protected String baseURL; - - /** - * Payment links constructor in {@link com.adyen.service.checkout package}. - * - * @param client {@link Client } (required) - */ - public PaymentLinksApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://checkout-test.adyen.com/v71"); - } - - /** - * Payment links constructor in {@link com.adyen.service.checkout package}. Please use this - * constructor only if you would like to pass along your own url for routing or testing purposes. - * The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public PaymentLinksApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Get a payment link - * - * @param linkId {@link String } Unique identifier of the payment link. (required) - * @return {@link PaymentLinkResponse } - * @throws ApiException if fails to make API call - */ - public PaymentLinkResponse getPaymentLink(String linkId) throws ApiException, IOException { - return getPaymentLink(linkId, null); - } - - /** - * Get a payment link - * - * @param linkId {@link String } Unique identifier of the payment link. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PaymentLinkResponse } - * @throws ApiException if fails to make API call - */ - public PaymentLinkResponse getPaymentLink(String linkId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (linkId == null) { - throw new IllegalArgumentException("Please provide the linkId path parameter"); + public static final String API_VERSION = "71"; + + protected String baseURL; + + /** + * Payment links constructor in {@link com.adyen.service.checkout package}. + * @param client {@link Client } (required) + */ + public PaymentLinksApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://checkout-test.adyen.com/v71"); } - pathParams.put("linkId", linkId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/paymentLinks/{linkId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return PaymentLinkResponse.fromJson(jsonResult); - } - - /** - * Create a payment link - * - * @param paymentLinkRequest {@link PaymentLinkRequest } (required) - * @return {@link PaymentLinkResponse } - * @throws ApiException if fails to make API call - */ - public PaymentLinkResponse paymentLinks(PaymentLinkRequest paymentLinkRequest) - throws ApiException, IOException { - return paymentLinks(paymentLinkRequest, null); - } - - /** - * Create a payment link - * - * @param paymentLinkRequest {@link PaymentLinkRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PaymentLinkResponse } - * @throws ApiException if fails to make API call - */ - public PaymentLinkResponse paymentLinks( - PaymentLinkRequest paymentLinkRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = paymentLinkRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/paymentLinks", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return PaymentLinkResponse.fromJson(jsonResult); - } - - /** - * Update the status of a payment link - * - * @param linkId {@link String } Unique identifier of the payment link. (required) - * @param updatePaymentLinkRequest {@link UpdatePaymentLinkRequest } (required) - * @return {@link PaymentLinkResponse } - * @throws ApiException if fails to make API call - */ - public PaymentLinkResponse updatePaymentLink( - String linkId, UpdatePaymentLinkRequest updatePaymentLinkRequest) - throws ApiException, IOException { - return updatePaymentLink(linkId, updatePaymentLinkRequest, null); - } - - /** - * Update the status of a payment link - * - * @param linkId {@link String } Unique identifier of the payment link. (required) - * @param updatePaymentLinkRequest {@link UpdatePaymentLinkRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PaymentLinkResponse } - * @throws ApiException if fails to make API call - */ - public PaymentLinkResponse updatePaymentLink( - String linkId, - UpdatePaymentLinkRequest updatePaymentLinkRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (linkId == null) { - throw new IllegalArgumentException("Please provide the linkId path parameter"); + + /** + * Payment links constructor in {@link com.adyen.service.checkout package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public PaymentLinksApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Get a payment link + * + * @param linkId {@link String } Unique identifier of the payment link. (required) + * @return {@link PaymentLinkResponse } + * @throws ApiException if fails to make API call + */ + public PaymentLinkResponse getPaymentLink(String linkId) throws ApiException, IOException { + return getPaymentLink(linkId, null); + } + + /** + * Get a payment link + * + * @param linkId {@link String } Unique identifier of the payment link. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PaymentLinkResponse } + * @throws ApiException if fails to make API call + */ + public PaymentLinkResponse getPaymentLink(String linkId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (linkId == null) { + throw new IllegalArgumentException("Please provide the linkId path parameter"); + } + pathParams.put("linkId", linkId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/paymentLinks/{linkId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return PaymentLinkResponse.fromJson(jsonResult); + } + + /** + * Create a payment link + * + * @param paymentLinkRequest {@link PaymentLinkRequest } (required) + * @return {@link PaymentLinkResponse } + * @throws ApiException if fails to make API call + */ + public PaymentLinkResponse paymentLinks(PaymentLinkRequest paymentLinkRequest) throws ApiException, IOException { + return paymentLinks(paymentLinkRequest, null); + } + + /** + * Create a payment link + * + * @param paymentLinkRequest {@link PaymentLinkRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PaymentLinkResponse } + * @throws ApiException if fails to make API call + */ + public PaymentLinkResponse paymentLinks(PaymentLinkRequest paymentLinkRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = paymentLinkRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/paymentLinks", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return PaymentLinkResponse.fromJson(jsonResult); + } + + /** + * Update the status of a payment link + * + * @param linkId {@link String } Unique identifier of the payment link. (required) + * @param updatePaymentLinkRequest {@link UpdatePaymentLinkRequest } (required) + * @return {@link PaymentLinkResponse } + * @throws ApiException if fails to make API call + */ + public PaymentLinkResponse updatePaymentLink(String linkId, UpdatePaymentLinkRequest updatePaymentLinkRequest) throws ApiException, IOException { + return updatePaymentLink(linkId, updatePaymentLinkRequest, null); + } + + /** + * Update the status of a payment link + * + * @param linkId {@link String } Unique identifier of the payment link. (required) + * @param updatePaymentLinkRequest {@link UpdatePaymentLinkRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PaymentLinkResponse } + * @throws ApiException if fails to make API call + */ + public PaymentLinkResponse updatePaymentLink(String linkId, UpdatePaymentLinkRequest updatePaymentLinkRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (linkId == null) { + throw new IllegalArgumentException("Please provide the linkId path parameter"); + } + pathParams.put("linkId", linkId); + + String requestBody = updatePaymentLinkRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/paymentLinks/{linkId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return PaymentLinkResponse.fromJson(jsonResult); } - pathParams.put("linkId", linkId); - - String requestBody = updatePaymentLinkRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/paymentLinks/{linkId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return PaymentLinkResponse.fromJson(jsonResult); - } } diff --git a/src/main/java/com/adyen/service/checkout/PaymentsApi.java b/src/main/java/com/adyen/service/checkout/PaymentsApi.java index b36341649..52d3038b8 100644 --- a/src/main/java/com/adyen/service/checkout/PaymentsApi.java +++ b/src/main/java/com/adyen/service/checkout/PaymentsApi.java @@ -2,7 +2,7 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,7 +14,6 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.checkout.CardDetailsRequest; import com.adyen.model.checkout.CardDetailsResponse; import com.adyen.model.checkout.CreateCheckoutSessionRequest; @@ -25,241 +24,210 @@ import com.adyen.model.checkout.PaymentMethodsResponse; import com.adyen.model.checkout.PaymentRequest; import com.adyen.model.checkout.PaymentResponse; +import com.adyen.model.checkout.ServiceError; import com.adyen.model.checkout.SessionResultResponse; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class PaymentsApi extends Service { - public static final String API_VERSION = "71"; - - protected String baseURL; + public static final String API_VERSION = "71"; - /** - * Payments constructor in {@link com.adyen.service.checkout package}. - * - * @param client {@link Client } (required) - */ - public PaymentsApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://checkout-test.adyen.com/v71"); - } + protected String baseURL; - /** - * Payments constructor in {@link com.adyen.service.checkout package}. Please use this constructor - * only if you would like to pass along your own url for routing or testing purposes. The latest - * API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public PaymentsApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Get the brands and other details of a card - * - * @param cardDetailsRequest {@link CardDetailsRequest } (required) - * @return {@link CardDetailsResponse } - * @throws ApiException if fails to make API call - */ - public CardDetailsResponse cardDetails(CardDetailsRequest cardDetailsRequest) - throws ApiException, IOException { - return cardDetails(cardDetailsRequest, null); - } + /** + * Payments constructor in {@link com.adyen.service.checkout package}. + * @param client {@link Client } (required) + */ + public PaymentsApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://checkout-test.adyen.com/v71"); + } - /** - * Get the brands and other details of a card - * - * @param cardDetailsRequest {@link CardDetailsRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link CardDetailsResponse } - * @throws ApiException if fails to make API call - */ - public CardDetailsResponse cardDetails( - CardDetailsRequest cardDetailsRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = cardDetailsRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/cardDetails", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return CardDetailsResponse.fromJson(jsonResult); - } + /** + * Payments constructor in {@link com.adyen.service.checkout package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public PaymentsApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Get the result of a payment session - * - * @param sessionId {@link String } A unique identifier of the session. (required) - * @param sessionResult {@link String } The `sessionResult` value from the Drop-in or - * Component. (required) - * @return {@link SessionResultResponse } - * @throws ApiException if fails to make API call - */ - public SessionResultResponse getResultOfPaymentSession(String sessionId, String sessionResult) - throws ApiException, IOException { - return getResultOfPaymentSession(sessionId, sessionResult, null); - } + /** + * Get the brands and other details of a card + * + * @param cardDetailsRequest {@link CardDetailsRequest } (required) + * @return {@link CardDetailsResponse } + * @throws ApiException if fails to make API call + */ + public CardDetailsResponse cardDetails(CardDetailsRequest cardDetailsRequest) throws ApiException, IOException { + return cardDetails(cardDetailsRequest, null); + } - /** - * Get the result of a payment session - * - * @param sessionId {@link String } A unique identifier of the session. (required) - * @param sessionResult {@link String } Query: The `sessionResult` value from the - * Drop-in or Component. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link SessionResultResponse } - * @throws ApiException if fails to make API call - */ - public SessionResultResponse getResultOfPaymentSession( - String sessionId, String sessionResult, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (sessionId == null) { - throw new IllegalArgumentException("Please provide the sessionId path parameter"); + /** + * Get the brands and other details of a card + * + * @param cardDetailsRequest {@link CardDetailsRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link CardDetailsResponse } + * @throws ApiException if fails to make API call + */ + public CardDetailsResponse cardDetails(CardDetailsRequest cardDetailsRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = cardDetailsRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/cardDetails", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return CardDetailsResponse.fromJson(jsonResult); } - pathParams.put("sessionId", sessionId); - // Add query params - Map queryParams = new HashMap<>(); - if (sessionResult != null) { - queryParams.put("sessionResult", sessionResult); + /** + * Get the result of a payment session + * + * @param sessionId {@link String } A unique identifier of the session. (required) + * @param sessionResult {@link String } The `sessionResult` value from the Drop-in or Component. (required) + * @return {@link SessionResultResponse } + * @throws ApiException if fails to make API call + */ + public SessionResultResponse getResultOfPaymentSession(String sessionId, String sessionResult) throws ApiException, IOException { + return getResultOfPaymentSession(sessionId, sessionResult, null); } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/sessions/{sessionId}", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return SessionResultResponse.fromJson(jsonResult); - } + /** + * Get the result of a payment session + * + * @param sessionId {@link String } A unique identifier of the session. (required) + * @param sessionResult {@link String } Query: The `sessionResult` value from the Drop-in or Component. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link SessionResultResponse } + * @throws ApiException if fails to make API call + */ + public SessionResultResponse getResultOfPaymentSession(String sessionId, String sessionResult, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (sessionId == null) { + throw new IllegalArgumentException("Please provide the sessionId path parameter"); + } + pathParams.put("sessionId", sessionId); + + //Add query params + Map queryParams = new HashMap<>(); + if (sessionResult != null) { + queryParams.put("sessionResult", sessionResult); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/sessions/{sessionId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return SessionResultResponse.fromJson(jsonResult); + } - /** - * Get a list of available payment methods - * - * @param paymentMethodsRequest {@link PaymentMethodsRequest } (required) - * @return {@link PaymentMethodsResponse } - * @throws ApiException if fails to make API call - */ - public PaymentMethodsResponse paymentMethods(PaymentMethodsRequest paymentMethodsRequest) - throws ApiException, IOException { - return paymentMethods(paymentMethodsRequest, null); - } + /** + * Get a list of available payment methods + * + * @param paymentMethodsRequest {@link PaymentMethodsRequest } (required) + * @return {@link PaymentMethodsResponse } + * @throws ApiException if fails to make API call + */ + public PaymentMethodsResponse paymentMethods(PaymentMethodsRequest paymentMethodsRequest) throws ApiException, IOException { + return paymentMethods(paymentMethodsRequest, null); + } - /** - * Get a list of available payment methods - * - * @param paymentMethodsRequest {@link PaymentMethodsRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PaymentMethodsResponse } - * @throws ApiException if fails to make API call - */ - public PaymentMethodsResponse paymentMethods( - PaymentMethodsRequest paymentMethodsRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = paymentMethodsRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/paymentMethods", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return PaymentMethodsResponse.fromJson(jsonResult); - } + /** + * Get a list of available payment methods + * + * @param paymentMethodsRequest {@link PaymentMethodsRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PaymentMethodsResponse } + * @throws ApiException if fails to make API call + */ + public PaymentMethodsResponse paymentMethods(PaymentMethodsRequest paymentMethodsRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = paymentMethodsRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/paymentMethods", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return PaymentMethodsResponse.fromJson(jsonResult); + } - /** - * Start a transaction - * - * @param paymentRequest {@link PaymentRequest } (required) - * @return {@link PaymentResponse } - * @throws ApiException if fails to make API call - */ - public PaymentResponse payments(PaymentRequest paymentRequest) throws ApiException, IOException { - return payments(paymentRequest, null); - } + /** + * Start a transaction + * + * @param paymentRequest {@link PaymentRequest } (required) + * @return {@link PaymentResponse } + * @throws ApiException if fails to make API call + */ + public PaymentResponse payments(PaymentRequest paymentRequest) throws ApiException, IOException { + return payments(paymentRequest, null); + } - /** - * Start a transaction - * - * @param paymentRequest {@link PaymentRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PaymentResponse } - * @throws ApiException if fails to make API call - */ - public PaymentResponse payments(PaymentRequest paymentRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = paymentRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/payments", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return PaymentResponse.fromJson(jsonResult); - } + /** + * Start a transaction + * + * @param paymentRequest {@link PaymentRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PaymentResponse } + * @throws ApiException if fails to make API call + */ + public PaymentResponse payments(PaymentRequest paymentRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = paymentRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/payments", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return PaymentResponse.fromJson(jsonResult); + } - /** - * Submit details for a payment - * - * @param paymentDetailsRequest {@link PaymentDetailsRequest } (required) - * @return {@link PaymentDetailsResponse } - * @throws ApiException if fails to make API call - */ - public PaymentDetailsResponse paymentsDetails(PaymentDetailsRequest paymentDetailsRequest) - throws ApiException, IOException { - return paymentsDetails(paymentDetailsRequest, null); - } + /** + * Submit details for a payment + * + * @param paymentDetailsRequest {@link PaymentDetailsRequest } (required) + * @return {@link PaymentDetailsResponse } + * @throws ApiException if fails to make API call + */ + public PaymentDetailsResponse paymentsDetails(PaymentDetailsRequest paymentDetailsRequest) throws ApiException, IOException { + return paymentsDetails(paymentDetailsRequest, null); + } - /** - * Submit details for a payment - * - * @param paymentDetailsRequest {@link PaymentDetailsRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PaymentDetailsResponse } - * @throws ApiException if fails to make API call - */ - public PaymentDetailsResponse paymentsDetails( - PaymentDetailsRequest paymentDetailsRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = paymentDetailsRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/payments/details", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return PaymentDetailsResponse.fromJson(jsonResult); - } + /** + * Submit details for a payment + * + * @param paymentDetailsRequest {@link PaymentDetailsRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PaymentDetailsResponse } + * @throws ApiException if fails to make API call + */ + public PaymentDetailsResponse paymentsDetails(PaymentDetailsRequest paymentDetailsRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = paymentDetailsRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/payments/details", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return PaymentDetailsResponse.fromJson(jsonResult); + } - /** - * Create a payment session - * - * @param createCheckoutSessionRequest {@link CreateCheckoutSessionRequest } (required) - * @return {@link CreateCheckoutSessionResponse } - * @throws ApiException if fails to make API call - */ - public CreateCheckoutSessionResponse sessions( - CreateCheckoutSessionRequest createCheckoutSessionRequest) throws ApiException, IOException { - return sessions(createCheckoutSessionRequest, null); - } + /** + * Create a payment session + * + * @param createCheckoutSessionRequest {@link CreateCheckoutSessionRequest } (required) + * @return {@link CreateCheckoutSessionResponse } + * @throws ApiException if fails to make API call + */ + public CreateCheckoutSessionResponse sessions(CreateCheckoutSessionRequest createCheckoutSessionRequest) throws ApiException, IOException { + return sessions(createCheckoutSessionRequest, null); + } - /** - * Create a payment session - * - * @param createCheckoutSessionRequest {@link CreateCheckoutSessionRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link CreateCheckoutSessionResponse } - * @throws ApiException if fails to make API call - */ - public CreateCheckoutSessionResponse sessions( - CreateCheckoutSessionRequest createCheckoutSessionRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = createCheckoutSessionRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/sessions", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return CreateCheckoutSessionResponse.fromJson(jsonResult); - } + /** + * Create a payment session + * + * @param createCheckoutSessionRequest {@link CreateCheckoutSessionRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link CreateCheckoutSessionResponse } + * @throws ApiException if fails to make API call + */ + public CreateCheckoutSessionResponse sessions(CreateCheckoutSessionRequest createCheckoutSessionRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = createCheckoutSessionRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/sessions", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return CreateCheckoutSessionResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/checkout/RecurringApi.java b/src/main/java/com/adyen/service/checkout/RecurringApi.java index 7b8276b56..714b154cb 100644 --- a/src/main/java/com/adyen/service/checkout/RecurringApi.java +++ b/src/main/java/com/adyen/service/checkout/RecurringApi.java @@ -2,7 +2,7 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,177 +14,144 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.checkout.ListStoredPaymentMethodsResponse; import com.adyen.model.checkout.StoredPaymentMethodRequest; import com.adyen.model.checkout.StoredPaymentMethodResource; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class RecurringApi extends Service { - public static final String API_VERSION = "71"; - - protected String baseURL; - - /** - * Recurring constructor in {@link com.adyen.service.checkout package}. - * - * @param client {@link Client } (required) - */ - public RecurringApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://checkout-test.adyen.com/v71"); - } - - /** - * Recurring constructor in {@link com.adyen.service.checkout package}. Please use this - * constructor only if you would like to pass along your own url for routing or testing purposes. - * The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public RecurringApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Delete a token for stored payment details - * - * @param storedPaymentMethodId {@link String } The unique identifier of the token. (required) - * @param shopperReference {@link String } Your reference to uniquely identify this shopper, for - * example user ID or account ID. Minimum length: 3 characters. > Your reference must not - * include personally identifiable information (PII), for example name or email address. - * (required) - * @param merchantAccount {@link String } Your merchant account. (required) - * @throws ApiException if fails to make API call - */ - public void deleteTokenForStoredPaymentDetails( - String storedPaymentMethodId, String shopperReference, String merchantAccount) - throws ApiException, IOException { - deleteTokenForStoredPaymentDetails( - storedPaymentMethodId, shopperReference, merchantAccount, null); - } - - /** - * Delete a token for stored payment details - * - * @param storedPaymentMethodId {@link String } The unique identifier of the token. (required) - * @param shopperReference {@link String } Query: Your reference to uniquely identify this - * shopper, for example user ID or account ID. Minimum length: 3 characters. > Your - * reference must not include personally identifiable information (PII), for example name or - * email address. (required) - * @param merchantAccount {@link String } Query: Your merchant account. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void deleteTokenForStoredPaymentDetails( - String storedPaymentMethodId, - String shopperReference, - String merchantAccount, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (storedPaymentMethodId == null) { - throw new IllegalArgumentException("Please provide the storedPaymentMethodId path parameter"); + public static final String API_VERSION = "71"; + + protected String baseURL; + + /** + * Recurring constructor in {@link com.adyen.service.checkout package}. + * @param client {@link Client } (required) + */ + public RecurringApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://checkout-test.adyen.com/v71"); } - pathParams.put("storedPaymentMethodId", storedPaymentMethodId); - // Add query params - Map queryParams = new HashMap<>(); - if (shopperReference != null) { - queryParams.put("shopperReference", shopperReference); + /** + * Recurring constructor in {@link com.adyen.service.checkout package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public RecurringApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - if (merchantAccount != null) { - queryParams.put("merchantAccount", merchantAccount); + + /** + * Delete a token for stored payment details + * + * @param storedPaymentMethodId {@link String } The unique identifier of the token. (required) + * @param shopperReference {@link String } Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. (required) + * @param merchantAccount {@link String } Your merchant account. (required) + * @throws ApiException if fails to make API call + */ + public void deleteTokenForStoredPaymentDetails(String storedPaymentMethodId, String shopperReference, String merchantAccount) throws ApiException, IOException { + deleteTokenForStoredPaymentDetails(storedPaymentMethodId, shopperReference, merchantAccount, null); } - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/storedPaymentMethods/{storedPaymentMethodId}", null); - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams, queryParams); - } - - /** - * Get tokens for stored payment details - * - * @return {@link ListStoredPaymentMethodsResponse } - * @throws ApiException if fails to make API call - */ - public ListStoredPaymentMethodsResponse getTokensForStoredPaymentDetails() - throws ApiException, IOException { - return getTokensForStoredPaymentDetails(null, null, null); - } - - /** - * Get tokens for stored payment details - * - * @param shopperReference {@link String } Query: Your reference to uniquely identify this - * shopper, for example user ID or account ID. Minimum length: 3 characters. > Your - * reference must not include personally identifiable information (PII), for example name or - * email address. (optional) - * @param merchantAccount {@link String } Query: Your merchant account. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ListStoredPaymentMethodsResponse } - * @throws ApiException if fails to make API call - */ - public ListStoredPaymentMethodsResponse getTokensForStoredPaymentDetails( - String shopperReference, String merchantAccount, RequestOptions requestOptions) - throws ApiException, IOException { - // Add query params - Map queryParams = new HashMap<>(); - if (shopperReference != null) { - queryParams.put("shopperReference", shopperReference); + /** + * Delete a token for stored payment details + * + * @param storedPaymentMethodId {@link String } The unique identifier of the token. (required) + * @param shopperReference {@link String } Query: Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. (required) + * @param merchantAccount {@link String } Query: Your merchant account. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void deleteTokenForStoredPaymentDetails(String storedPaymentMethodId, String shopperReference, String merchantAccount, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (storedPaymentMethodId == null) { + throw new IllegalArgumentException("Please provide the storedPaymentMethodId path parameter"); + } + pathParams.put("storedPaymentMethodId", storedPaymentMethodId); + + //Add query params + Map queryParams = new HashMap<>(); + if (shopperReference != null) { + queryParams.put("shopperReference", shopperReference); + } + if (merchantAccount != null) { + queryParams.put("merchantAccount", merchantAccount); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/storedPaymentMethods/{storedPaymentMethodId}", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams, queryParams); } - if (merchantAccount != null) { - queryParams.put("merchantAccount", merchantAccount); + + /** + * Get tokens for stored payment details + * + * @return {@link ListStoredPaymentMethodsResponse } + * @throws ApiException if fails to make API call + */ + public ListStoredPaymentMethodsResponse getTokensForStoredPaymentDetails() throws ApiException, IOException { + return getTokensForStoredPaymentDetails(null, null, null); + } + + /** + * Get tokens for stored payment details + * + * @param shopperReference {@link String } Query: Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. (optional) + * @param merchantAccount {@link String } Query: Your merchant account. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ListStoredPaymentMethodsResponse } + * @throws ApiException if fails to make API call + */ + public ListStoredPaymentMethodsResponse getTokensForStoredPaymentDetails(String shopperReference, String merchantAccount, RequestOptions requestOptions) throws ApiException, IOException { + //Add query params + Map queryParams = new HashMap<>(); + if (shopperReference != null) { + queryParams.put("shopperReference", shopperReference); + } + if (merchantAccount != null) { + queryParams.put("merchantAccount", merchantAccount); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/storedPaymentMethods", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); + return ListStoredPaymentMethodsResponse.fromJson(jsonResult); } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/storedPaymentMethods", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); - return ListStoredPaymentMethodsResponse.fromJson(jsonResult); - } - - /** - * Create a token to store payment details - * - * @param storedPaymentMethodRequest {@link StoredPaymentMethodRequest } (required) - * @return {@link StoredPaymentMethodResource } - * @throws ApiException if fails to make API call - */ - public StoredPaymentMethodResource storedPaymentMethods( - StoredPaymentMethodRequest storedPaymentMethodRequest) throws ApiException, IOException { - return storedPaymentMethods(storedPaymentMethodRequest, null); - } - - /** - * Create a token to store payment details - * - * @param storedPaymentMethodRequest {@link StoredPaymentMethodRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link StoredPaymentMethodResource } - * @throws ApiException if fails to make API call - */ - public StoredPaymentMethodResource storedPaymentMethods( - StoredPaymentMethodRequest storedPaymentMethodRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = storedPaymentMethodRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/storedPaymentMethods", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return StoredPaymentMethodResource.fromJson(jsonResult); - } + /** + * Create a token to store payment details + * + * @param storedPaymentMethodRequest {@link StoredPaymentMethodRequest } (required) + * @return {@link StoredPaymentMethodResource } + * @throws ApiException if fails to make API call + */ + public StoredPaymentMethodResource storedPaymentMethods(StoredPaymentMethodRequest storedPaymentMethodRequest) throws ApiException, IOException { + return storedPaymentMethods(storedPaymentMethodRequest, null); + } + + /** + * Create a token to store payment details + * + * @param storedPaymentMethodRequest {@link StoredPaymentMethodRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link StoredPaymentMethodResource } + * @throws ApiException if fails to make API call + */ + public StoredPaymentMethodResource storedPaymentMethods(StoredPaymentMethodRequest storedPaymentMethodRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = storedPaymentMethodRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/storedPaymentMethods", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return StoredPaymentMethodResource.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/checkout/UtilityApi.java b/src/main/java/com/adyen/service/checkout/UtilityApi.java index de0624206..e3e8ce426 100644 --- a/src/main/java/com/adyen/service/checkout/UtilityApi.java +++ b/src/main/java/com/adyen/service/checkout/UtilityApi.java @@ -2,7 +2,7 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,173 +14,156 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.checkout.ApplePaySessionRequest; import com.adyen.model.checkout.ApplePaySessionResponse; +import com.adyen.model.checkout.DefaultErrorResponseEntity; import com.adyen.model.checkout.PaypalUpdateOrderRequest; import com.adyen.model.checkout.PaypalUpdateOrderResponse; +import com.adyen.model.checkout.ServiceError; import com.adyen.model.checkout.UtilityRequest; import com.adyen.model.checkout.UtilityResponse; import com.adyen.model.checkout.ValidateShopperIdRequest; import com.adyen.model.checkout.ValidateShopperIdResponse; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; +import java.util.HashMap; +import java.util.Map; public class UtilityApi extends Service { - public static final String API_VERSION = "71"; - - protected String baseURL; - - /** - * Utility constructor in {@link com.adyen.service.checkout package}. - * - * @param client {@link Client } (required) - */ - public UtilityApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://checkout-test.adyen.com/v71"); - } - - /** - * Utility constructor in {@link com.adyen.service.checkout package}. Please use this constructor - * only if you would like to pass along your own url for routing or testing purposes. The latest - * API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public UtilityApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Get an Apple Pay session - * - * @param applePaySessionRequest {@link ApplePaySessionRequest } (required) - * @return {@link ApplePaySessionResponse } - * @throws ApiException if fails to make API call - */ - public ApplePaySessionResponse getApplePaySession(ApplePaySessionRequest applePaySessionRequest) - throws ApiException, IOException { - return getApplePaySession(applePaySessionRequest, null); - } - - /** - * Get an Apple Pay session - * - * @param applePaySessionRequest {@link ApplePaySessionRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ApplePaySessionResponse } - * @throws ApiException if fails to make API call - */ - public ApplePaySessionResponse getApplePaySession( - ApplePaySessionRequest applePaySessionRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = applePaySessionRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/applePay/sessions", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return ApplePaySessionResponse.fromJson(jsonResult); - } - - /** - * Create originKey values for domains - * - * @param utilityRequest {@link UtilityRequest } (required) - * @return {@link UtilityResponse } - * @throws ApiException if fails to make API call - * @deprecated since Adyen Checkout API v67 - */ - @Deprecated - public UtilityResponse originKeys(UtilityRequest utilityRequest) - throws ApiException, IOException { - return originKeys(utilityRequest, null); - } - - /** - * Create originKey values for domains - * - * @param utilityRequest {@link UtilityRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link UtilityResponse } - * @throws ApiException if fails to make API call - * @deprecated since Adyen Checkout API v67 - */ - @Deprecated - public UtilityResponse originKeys(UtilityRequest utilityRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = utilityRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/originKeys", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return UtilityResponse.fromJson(jsonResult); - } - - /** - * Updates the order for PayPal Express Checkout - * - * @param paypalUpdateOrderRequest {@link PaypalUpdateOrderRequest } (required) - * @return {@link PaypalUpdateOrderResponse } - * @throws ApiException if fails to make API call - */ - public PaypalUpdateOrderResponse updatesOrderForPaypalExpressCheckout( - PaypalUpdateOrderRequest paypalUpdateOrderRequest) throws ApiException, IOException { - return updatesOrderForPaypalExpressCheckout(paypalUpdateOrderRequest, null); - } - - /** - * Updates the order for PayPal Express Checkout - * - * @param paypalUpdateOrderRequest {@link PaypalUpdateOrderRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PaypalUpdateOrderResponse } - * @throws ApiException if fails to make API call - */ - public PaypalUpdateOrderResponse updatesOrderForPaypalExpressCheckout( - PaypalUpdateOrderRequest paypalUpdateOrderRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = paypalUpdateOrderRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/paypal/updateOrder", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return PaypalUpdateOrderResponse.fromJson(jsonResult); - } - - /** - * Validates shopper Id - * - * @param validateShopperIdRequest {@link ValidateShopperIdRequest } (required) - * @param validateShopperIdRequest {@link ValidateShopperIdRequest } (required) - * @return {@link ValidateShopperIdResponse } - * @throws ApiException if fails to make API call - */ - public ValidateShopperIdResponse validateShopperId( - ValidateShopperIdRequest validateShopperIdRequest) throws ApiException, IOException { - return validateShopperId(validateShopperIdRequest, null); - } - - /** - * Validates shopper Id - * - * @param validateShopperIdRequest {@link ValidateShopperIdRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ValidateShopperIdResponse } - * @throws ApiException if fails to make API call - */ - public ValidateShopperIdResponse validateShopperId( - ValidateShopperIdRequest validateShopperIdRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = validateShopperIdRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/validateShopperId", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return ValidateShopperIdResponse.fromJson(jsonResult); - } + public static final String API_VERSION = "71"; + + protected String baseURL; + + /** + * Utility constructor in {@link com.adyen.service.checkout package}. + * @param client {@link Client } (required) + */ + public UtilityApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://checkout-test.adyen.com/v71"); + } + + /** + * Utility constructor in {@link com.adyen.service.checkout package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public UtilityApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Get an Apple Pay session + * + * @param applePaySessionRequest {@link ApplePaySessionRequest } (required) + * @return {@link ApplePaySessionResponse } + * @throws ApiException if fails to make API call + */ + public ApplePaySessionResponse getApplePaySession(ApplePaySessionRequest applePaySessionRequest) throws ApiException, IOException { + return getApplePaySession(applePaySessionRequest, null); + } + + /** + * Get an Apple Pay session + * + * @param applePaySessionRequest {@link ApplePaySessionRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ApplePaySessionResponse } + * @throws ApiException if fails to make API call + */ + public ApplePaySessionResponse getApplePaySession(ApplePaySessionRequest applePaySessionRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = applePaySessionRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/applePay/sessions", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return ApplePaySessionResponse.fromJson(jsonResult); + } + + /** + * Create originKey values for domains + * + * @param utilityRequest {@link UtilityRequest } (required) + * @return {@link UtilityResponse } + * @throws ApiException if fails to make API call + * @deprecated since Adyen Checkout API v67 + */ + @Deprecated + public UtilityResponse originKeys(UtilityRequest utilityRequest) throws ApiException, IOException { + return originKeys(utilityRequest, null); + } + + /** + * Create originKey values for domains + * + * @param utilityRequest {@link UtilityRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link UtilityResponse } + * @throws ApiException if fails to make API call + * @deprecated since Adyen Checkout API v67 + */ + @Deprecated + public UtilityResponse originKeys(UtilityRequest utilityRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = utilityRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/originKeys", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return UtilityResponse.fromJson(jsonResult); + } + + /** + * Updates the order for PayPal Express Checkout + * + * @param paypalUpdateOrderRequest {@link PaypalUpdateOrderRequest } (required) + * @return {@link PaypalUpdateOrderResponse } + * @throws ApiException if fails to make API call + */ + public PaypalUpdateOrderResponse updatesOrderForPaypalExpressCheckout(PaypalUpdateOrderRequest paypalUpdateOrderRequest) throws ApiException, IOException { + return updatesOrderForPaypalExpressCheckout(paypalUpdateOrderRequest, null); + } + + /** + * Updates the order for PayPal Express Checkout + * + * @param paypalUpdateOrderRequest {@link PaypalUpdateOrderRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PaypalUpdateOrderResponse } + * @throws ApiException if fails to make API call + */ + public PaypalUpdateOrderResponse updatesOrderForPaypalExpressCheckout(PaypalUpdateOrderRequest paypalUpdateOrderRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = paypalUpdateOrderRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/paypal/updateOrder", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return PaypalUpdateOrderResponse.fromJson(jsonResult); + } + + /** + * Validates shopper Id + * + * @param validateShopperIdRequest {@link ValidateShopperIdRequest } (required) + * @param validateShopperIdRequest {@link ValidateShopperIdRequest } (required) + * @return {@link ValidateShopperIdResponse } + * @throws ApiException if fails to make API call + */ + public ValidateShopperIdResponse validateShopperId(ValidateShopperIdRequest validateShopperIdRequest) throws ApiException, IOException { + return validateShopperId(validateShopperIdRequest, null); + } + + /** + * Validates shopper Id + * + * @param validateShopperIdRequest {@link ValidateShopperIdRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ValidateShopperIdResponse } + * @throws ApiException if fails to make API call + */ + public ValidateShopperIdResponse validateShopperId(ValidateShopperIdRequest validateShopperIdRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = validateShopperIdRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/validateShopperId", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return ValidateShopperIdResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/dataprotection/DataProtectionApi.java b/src/main/java/com/adyen/service/dataprotection/DataProtectionApi.java index 1ccbef138..94c332c22 100644 --- a/src/main/java/com/adyen/service/dataprotection/DataProtectionApi.java +++ b/src/main/java/com/adyen/service/dataprotection/DataProtectionApi.java @@ -2,7 +2,7 @@ * Adyen Data Protection API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,74 +14,66 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; +import com.adyen.model.dataprotection.ServiceError; import com.adyen.model.dataprotection.SubjectErasureByPspReferenceRequest; import com.adyen.model.dataprotection.SubjectErasureResponse; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; +import java.util.HashMap; +import java.util.Map; public class DataProtectionApi extends Service { - public static final String API_VERSION = "1"; + public static final String API_VERSION = "1"; - protected String baseURL; + protected String baseURL; - /** - * DataProtection constructor in {@link com.adyen.service.dataprotection package}. - * - * @param client {@link Client } (required) - */ - public DataProtectionApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://ca-test.adyen.com/ca/services/DataProtectionService/v1"); - } + /** + * DataProtection constructor in {@link com.adyen.service.dataprotection package}. + * @param client {@link Client } (required) + */ + public DataProtectionApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://ca-test.adyen.com/ca/services/DataProtectionService/v1"); + } - /** - * DataProtection constructor in {@link com.adyen.service.dataprotection package}. Please use this - * constructor only if you would like to pass along your own url for routing or testing purposes. - * The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public DataProtectionApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * DataProtection constructor in {@link com.adyen.service.dataprotection package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public DataProtectionApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Submit a Subject Erasure Request. - * - * @param subjectErasureByPspReferenceRequest {@link SubjectErasureByPspReferenceRequest } - * (required) - * @return {@link SubjectErasureResponse } - * @throws ApiException if fails to make API call - */ - public SubjectErasureResponse requestSubjectErasure( - SubjectErasureByPspReferenceRequest subjectErasureByPspReferenceRequest) - throws ApiException, IOException { - return requestSubjectErasure(subjectErasureByPspReferenceRequest, null); - } + /** + * Submit a Subject Erasure Request. + * + * @param subjectErasureByPspReferenceRequest {@link SubjectErasureByPspReferenceRequest } (required) + * @return {@link SubjectErasureResponse } + * @throws ApiException if fails to make API call + */ + public SubjectErasureResponse requestSubjectErasure(SubjectErasureByPspReferenceRequest subjectErasureByPspReferenceRequest) throws ApiException, IOException { + return requestSubjectErasure(subjectErasureByPspReferenceRequest, null); + } - /** - * Submit a Subject Erasure Request. - * - * @param subjectErasureByPspReferenceRequest {@link SubjectErasureByPspReferenceRequest } - * (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link SubjectErasureResponse } - * @throws ApiException if fails to make API call - */ - public SubjectErasureResponse requestSubjectErasure( - SubjectErasureByPspReferenceRequest subjectErasureByPspReferenceRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = subjectErasureByPspReferenceRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/requestSubjectErasure", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return SubjectErasureResponse.fromJson(jsonResult); - } + /** + * Submit a Subject Erasure Request. + * + * @param subjectErasureByPspReferenceRequest {@link SubjectErasureByPspReferenceRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link SubjectErasureResponse } + * @throws ApiException if fails to make API call + */ + public SubjectErasureResponse requestSubjectErasure(SubjectErasureByPspReferenceRequest subjectErasureByPspReferenceRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = subjectErasureByPspReferenceRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/requestSubjectErasure", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return SubjectErasureResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/disputes/DisputesApi.java b/src/main/java/com/adyen/service/disputes/DisputesApi.java index b48101adc..cddd27d0b 100644 --- a/src/main/java/com/adyen/service/disputes/DisputesApi.java +++ b/src/main/java/com/adyen/service/disputes/DisputesApi.java @@ -2,7 +2,7 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,7 +14,6 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.disputes.AcceptDisputeRequest; import com.adyen.model.disputes.AcceptDisputeResponse; import com.adyen.model.disputes.DefendDisputeRequest; @@ -23,194 +22,170 @@ import com.adyen.model.disputes.DefenseReasonsResponse; import com.adyen.model.disputes.DeleteDefenseDocumentRequest; import com.adyen.model.disputes.DeleteDefenseDocumentResponse; +import com.adyen.model.disputes.ServiceError; import com.adyen.model.disputes.SupplyDefenseDocumentRequest; import com.adyen.model.disputes.SupplyDefenseDocumentResponse; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; +import java.util.HashMap; +import java.util.Map; public class DisputesApi extends Service { - public static final String API_VERSION = "30"; - - protected String baseURL; - - /** - * Disputes constructor in {@link com.adyen.service.disputes package}. - * - * @param client {@link Client } (required) - */ - public DisputesApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://ca-test.adyen.com/ca/services/DisputeService/v30"); - } - - /** - * Disputes constructor in {@link com.adyen.service.disputes package}. Please use this constructor - * only if you would like to pass along your own url for routing or testing purposes. The latest - * API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public DisputesApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Accept a dispute - * - * @param acceptDisputeRequest {@link AcceptDisputeRequest } (required) - * @return {@link AcceptDisputeResponse } - * @throws ApiException if fails to make API call - */ - public AcceptDisputeResponse acceptDispute(AcceptDisputeRequest acceptDisputeRequest) - throws ApiException, IOException { - return acceptDispute(acceptDisputeRequest, null); - } - - /** - * Accept a dispute - * - * @param acceptDisputeRequest {@link AcceptDisputeRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link AcceptDisputeResponse } - * @throws ApiException if fails to make API call - */ - public AcceptDisputeResponse acceptDispute( - AcceptDisputeRequest acceptDisputeRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = acceptDisputeRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/acceptDispute", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return AcceptDisputeResponse.fromJson(jsonResult); - } - - /** - * Defend a dispute - * - * @param defendDisputeRequest {@link DefendDisputeRequest } (required) - * @return {@link DefendDisputeResponse } - * @throws ApiException if fails to make API call - */ - public DefendDisputeResponse defendDispute(DefendDisputeRequest defendDisputeRequest) - throws ApiException, IOException { - return defendDispute(defendDisputeRequest, null); - } - - /** - * Defend a dispute - * - * @param defendDisputeRequest {@link DefendDisputeRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link DefendDisputeResponse } - * @throws ApiException if fails to make API call - */ - public DefendDisputeResponse defendDispute( - DefendDisputeRequest defendDisputeRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = defendDisputeRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/defendDispute", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return DefendDisputeResponse.fromJson(jsonResult); - } - - /** - * Delete a defense document - * - * @param deleteDefenseDocumentRequest {@link DeleteDefenseDocumentRequest } (required) - * @return {@link DeleteDefenseDocumentResponse } - * @throws ApiException if fails to make API call - */ - public DeleteDefenseDocumentResponse deleteDisputeDefenseDocument( - DeleteDefenseDocumentRequest deleteDefenseDocumentRequest) throws ApiException, IOException { - return deleteDisputeDefenseDocument(deleteDefenseDocumentRequest, null); - } - - /** - * Delete a defense document - * - * @param deleteDefenseDocumentRequest {@link DeleteDefenseDocumentRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link DeleteDefenseDocumentResponse } - * @throws ApiException if fails to make API call - */ - public DeleteDefenseDocumentResponse deleteDisputeDefenseDocument( - DeleteDefenseDocumentRequest deleteDefenseDocumentRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = deleteDefenseDocumentRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/deleteDisputeDefenseDocument", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return DeleteDefenseDocumentResponse.fromJson(jsonResult); - } - - /** - * Get applicable defense reasons - * - * @param defenseReasonsRequest {@link DefenseReasonsRequest } (required) - * @return {@link DefenseReasonsResponse } - * @throws ApiException if fails to make API call - */ - public DefenseReasonsResponse retrieveApplicableDefenseReasons( - DefenseReasonsRequest defenseReasonsRequest) throws ApiException, IOException { - return retrieveApplicableDefenseReasons(defenseReasonsRequest, null); - } - - /** - * Get applicable defense reasons - * - * @param defenseReasonsRequest {@link DefenseReasonsRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link DefenseReasonsResponse } - * @throws ApiException if fails to make API call - */ - public DefenseReasonsResponse retrieveApplicableDefenseReasons( - DefenseReasonsRequest defenseReasonsRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = defenseReasonsRequest.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/retrieveApplicableDefenseReasons", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return DefenseReasonsResponse.fromJson(jsonResult); - } - - /** - * Supply a defense document - * - * @param supplyDefenseDocumentRequest {@link SupplyDefenseDocumentRequest } (required) - * @return {@link SupplyDefenseDocumentResponse } - * @throws ApiException if fails to make API call - */ - public SupplyDefenseDocumentResponse supplyDefenseDocument( - SupplyDefenseDocumentRequest supplyDefenseDocumentRequest) throws ApiException, IOException { - return supplyDefenseDocument(supplyDefenseDocumentRequest, null); - } - - /** - * Supply a defense document - * - * @param supplyDefenseDocumentRequest {@link SupplyDefenseDocumentRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link SupplyDefenseDocumentResponse } - * @throws ApiException if fails to make API call - */ - public SupplyDefenseDocumentResponse supplyDefenseDocument( - SupplyDefenseDocumentRequest supplyDefenseDocumentRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = supplyDefenseDocumentRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/supplyDefenseDocument", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return SupplyDefenseDocumentResponse.fromJson(jsonResult); - } + public static final String API_VERSION = "30"; + + protected String baseURL; + + /** + * Disputes constructor in {@link com.adyen.service.disputes package}. + * @param client {@link Client } (required) + */ + public DisputesApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://ca-test.adyen.com/ca/services/DisputeService/v30"); + } + + /** + * Disputes constructor in {@link com.adyen.service.disputes package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public DisputesApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Accept a dispute + * + * @param acceptDisputeRequest {@link AcceptDisputeRequest } (required) + * @return {@link AcceptDisputeResponse } + * @throws ApiException if fails to make API call + */ + public AcceptDisputeResponse acceptDispute(AcceptDisputeRequest acceptDisputeRequest) throws ApiException, IOException { + return acceptDispute(acceptDisputeRequest, null); + } + + /** + * Accept a dispute + * + * @param acceptDisputeRequest {@link AcceptDisputeRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link AcceptDisputeResponse } + * @throws ApiException if fails to make API call + */ + public AcceptDisputeResponse acceptDispute(AcceptDisputeRequest acceptDisputeRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = acceptDisputeRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/acceptDispute", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return AcceptDisputeResponse.fromJson(jsonResult); + } + + /** + * Defend a dispute + * + * @param defendDisputeRequest {@link DefendDisputeRequest } (required) + * @return {@link DefendDisputeResponse } + * @throws ApiException if fails to make API call + */ + public DefendDisputeResponse defendDispute(DefendDisputeRequest defendDisputeRequest) throws ApiException, IOException { + return defendDispute(defendDisputeRequest, null); + } + + /** + * Defend a dispute + * + * @param defendDisputeRequest {@link DefendDisputeRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link DefendDisputeResponse } + * @throws ApiException if fails to make API call + */ + public DefendDisputeResponse defendDispute(DefendDisputeRequest defendDisputeRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = defendDisputeRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/defendDispute", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return DefendDisputeResponse.fromJson(jsonResult); + } + + /** + * Delete a defense document + * + * @param deleteDefenseDocumentRequest {@link DeleteDefenseDocumentRequest } (required) + * @return {@link DeleteDefenseDocumentResponse } + * @throws ApiException if fails to make API call + */ + public DeleteDefenseDocumentResponse deleteDisputeDefenseDocument(DeleteDefenseDocumentRequest deleteDefenseDocumentRequest) throws ApiException, IOException { + return deleteDisputeDefenseDocument(deleteDefenseDocumentRequest, null); + } + + /** + * Delete a defense document + * + * @param deleteDefenseDocumentRequest {@link DeleteDefenseDocumentRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link DeleteDefenseDocumentResponse } + * @throws ApiException if fails to make API call + */ + public DeleteDefenseDocumentResponse deleteDisputeDefenseDocument(DeleteDefenseDocumentRequest deleteDefenseDocumentRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = deleteDefenseDocumentRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/deleteDisputeDefenseDocument", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return DeleteDefenseDocumentResponse.fromJson(jsonResult); + } + + /** + * Get applicable defense reasons + * + * @param defenseReasonsRequest {@link DefenseReasonsRequest } (required) + * @return {@link DefenseReasonsResponse } + * @throws ApiException if fails to make API call + */ + public DefenseReasonsResponse retrieveApplicableDefenseReasons(DefenseReasonsRequest defenseReasonsRequest) throws ApiException, IOException { + return retrieveApplicableDefenseReasons(defenseReasonsRequest, null); + } + + /** + * Get applicable defense reasons + * + * @param defenseReasonsRequest {@link DefenseReasonsRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link DefenseReasonsResponse } + * @throws ApiException if fails to make API call + */ + public DefenseReasonsResponse retrieveApplicableDefenseReasons(DefenseReasonsRequest defenseReasonsRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = defenseReasonsRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/retrieveApplicableDefenseReasons", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return DefenseReasonsResponse.fromJson(jsonResult); + } + + /** + * Supply a defense document + * + * @param supplyDefenseDocumentRequest {@link SupplyDefenseDocumentRequest } (required) + * @return {@link SupplyDefenseDocumentResponse } + * @throws ApiException if fails to make API call + */ + public SupplyDefenseDocumentResponse supplyDefenseDocument(SupplyDefenseDocumentRequest supplyDefenseDocumentRequest) throws ApiException, IOException { + return supplyDefenseDocument(supplyDefenseDocumentRequest, null); + } + + /** + * Supply a defense document + * + * @param supplyDefenseDocumentRequest {@link SupplyDefenseDocumentRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link SupplyDefenseDocumentResponse } + * @throws ApiException if fails to make API call + */ + public SupplyDefenseDocumentResponse supplyDefenseDocument(SupplyDefenseDocumentRequest supplyDefenseDocumentRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = supplyDefenseDocumentRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/supplyDefenseDocument", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return SupplyDefenseDocumentResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/legalentitymanagement/BusinessLinesApi.java b/src/main/java/com/adyen/service/legalentitymanagement/BusinessLinesApi.java index 9d8fd6abd..5ef161922 100644 --- a/src/main/java/com/adyen/service/legalentitymanagement/BusinessLinesApi.java +++ b/src/main/java/com/adyen/service/legalentitymanagement/BusinessLinesApi.java @@ -2,7 +2,7 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,181 +14,165 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.legalentitymanagement.BusinessLine; import com.adyen.model.legalentitymanagement.BusinessLineInfo; import com.adyen.model.legalentitymanagement.BusinessLineInfoUpdate; +import com.adyen.model.legalentitymanagement.ServiceError; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class BusinessLinesApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * Business lines constructor in {@link com.adyen.service.legalentitymanagement package}. - * - * @param client {@link Client } (required) - */ - public BusinessLinesApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://kyc-test.adyen.com/lem/v3"); - } - - /** - * Business lines constructor in {@link com.adyen.service.legalentitymanagement package}. Please - * use this constructor only if you would like to pass along your own url for routing or testing - * purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public BusinessLinesApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Create a business line - * - * @param businessLineInfo {@link BusinessLineInfo } (required) - * @return {@link BusinessLine } - * @throws ApiException if fails to make API call - */ - public BusinessLine createBusinessLine(BusinessLineInfo businessLineInfo) - throws ApiException, IOException { - return createBusinessLine(businessLineInfo, null); - } - - /** - * Create a business line - * - * @param businessLineInfo {@link BusinessLineInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link BusinessLine } - * @throws ApiException if fails to make API call - */ - public BusinessLine createBusinessLine( - BusinessLineInfo businessLineInfo, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = businessLineInfo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/businessLines", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return BusinessLine.fromJson(jsonResult); - } - - /** - * Delete a business line - * - * @param id {@link String } The unique identifier of the business line to be deleted. (required) - * @throws ApiException if fails to make API call - */ - public void deleteBusinessLine(String id) throws ApiException, IOException { - deleteBusinessLine(id, null); - } - - /** - * Delete a business line - * - * @param id {@link String } The unique identifier of the business line to be deleted. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void deleteBusinessLine(String id, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * Business lines constructor in {@link com.adyen.service.legalentitymanagement package}. + * @param client {@link Client } (required) + */ + public BusinessLinesApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://kyc-test.adyen.com/lem/v3"); + } + + /** + * Business lines constructor in {@link com.adyen.service.legalentitymanagement package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public BusinessLinesApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Create a business line + * + * @param businessLineInfo {@link BusinessLineInfo } (required) + * @return {@link BusinessLine } + * @throws ApiException if fails to make API call + */ + public BusinessLine createBusinessLine(BusinessLineInfo businessLineInfo) throws ApiException, IOException { + return createBusinessLine(businessLineInfo, null); + } + + /** + * Create a business line + * + * @param businessLineInfo {@link BusinessLineInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link BusinessLine } + * @throws ApiException if fails to make API call + */ + public BusinessLine createBusinessLine(BusinessLineInfo businessLineInfo, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = businessLineInfo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/businessLines", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return BusinessLine.fromJson(jsonResult); + } + + /** + * Delete a business line + * + * @param id {@link String } The unique identifier of the business line to be deleted. (required) + * @throws ApiException if fails to make API call + */ + public void deleteBusinessLine(String id) throws ApiException, IOException { + deleteBusinessLine(id, null); } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/businessLines/{id}", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); - } - - /** - * Get a business line - * - * @param id {@link String } The unique identifier of the business line. (required) - * @return {@link BusinessLine } - * @throws ApiException if fails to make API call - */ - public BusinessLine getBusinessLine(String id) throws ApiException, IOException { - return getBusinessLine(id, null); - } - - /** - * Get a business line - * - * @param id {@link String } The unique identifier of the business line. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link BusinessLine } - * @throws ApiException if fails to make API call - */ - public BusinessLine getBusinessLine(String id, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + + /** + * Delete a business line + * + * @param id {@link String } The unique identifier of the business line to be deleted. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void deleteBusinessLine(String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/businessLines/{id}", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); + } + + /** + * Get a business line + * + * @param id {@link String } The unique identifier of the business line. (required) + * @return {@link BusinessLine } + * @throws ApiException if fails to make API call + */ + public BusinessLine getBusinessLine(String id) throws ApiException, IOException { + return getBusinessLine(id, null); } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/businessLines/{id}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return BusinessLine.fromJson(jsonResult); - } - - /** - * Update a business line - * - * @param id {@link String } The unique identifier of the business line. (required) - * @param businessLineInfoUpdate {@link BusinessLineInfoUpdate } (required) - * @return {@link BusinessLine } - * @throws ApiException if fails to make API call - */ - public BusinessLine updateBusinessLine(String id, BusinessLineInfoUpdate businessLineInfoUpdate) - throws ApiException, IOException { - return updateBusinessLine(id, businessLineInfoUpdate, null); - } - - /** - * Update a business line - * - * @param id {@link String } The unique identifier of the business line. (required) - * @param businessLineInfoUpdate {@link BusinessLineInfoUpdate } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link BusinessLine } - * @throws ApiException if fails to make API call - */ - public BusinessLine updateBusinessLine( - String id, BusinessLineInfoUpdate businessLineInfoUpdate, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + + /** + * Get a business line + * + * @param id {@link String } The unique identifier of the business line. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link BusinessLine } + * @throws ApiException if fails to make API call + */ + public BusinessLine getBusinessLine(String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/businessLines/{id}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return BusinessLine.fromJson(jsonResult); + } + + /** + * Update a business line + * + * @param id {@link String } The unique identifier of the business line. (required) + * @param businessLineInfoUpdate {@link BusinessLineInfoUpdate } (required) + * @return {@link BusinessLine } + * @throws ApiException if fails to make API call + */ + public BusinessLine updateBusinessLine(String id, BusinessLineInfoUpdate businessLineInfoUpdate) throws ApiException, IOException { + return updateBusinessLine(id, businessLineInfoUpdate, null); + } + + /** + * Update a business line + * + * @param id {@link String } The unique identifier of the business line. (required) + * @param businessLineInfoUpdate {@link BusinessLineInfoUpdate } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link BusinessLine } + * @throws ApiException if fails to make API call + */ + public BusinessLine updateBusinessLine(String id, BusinessLineInfoUpdate businessLineInfoUpdate, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = businessLineInfoUpdate.toJson(); + Resource resource = new Resource(this, this.baseURL + "/businessLines/{id}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return BusinessLine.fromJson(jsonResult); } - pathParams.put("id", id); - - String requestBody = businessLineInfoUpdate.toJson(); - Resource resource = new Resource(this, this.baseURL + "/businessLines/{id}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return BusinessLine.fromJson(jsonResult); - } } diff --git a/src/main/java/com/adyen/service/legalentitymanagement/DocumentsApi.java b/src/main/java/com/adyen/service/legalentitymanagement/DocumentsApi.java index 3e1c289ec..08b9b7b9f 100644 --- a/src/main/java/com/adyen/service/legalentitymanagement/DocumentsApi.java +++ b/src/main/java/com/adyen/service/legalentitymanagement/DocumentsApi.java @@ -2,7 +2,7 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,185 +14,170 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.legalentitymanagement.Document; +import com.adyen.model.legalentitymanagement.ServiceError; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class DocumentsApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * Documents constructor in {@link com.adyen.service.legalentitymanagement package}. - * - * @param client {@link Client } (required) - */ - public DocumentsApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://kyc-test.adyen.com/lem/v3"); - } - - /** - * Documents constructor in {@link com.adyen.service.legalentitymanagement package}. Please use - * this constructor only if you would like to pass along your own url for routing or testing - * purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public DocumentsApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Delete a document - * - * @param id {@link String } The unique identifier of the document to be deleted. (required) - * @throws ApiException if fails to make API call - */ - public void deleteDocument(String id) throws ApiException, IOException { - deleteDocument(id, null); - } - - /** - * Delete a document - * - * @param id {@link String } The unique identifier of the document to be deleted. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void deleteDocument(String id, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * Documents constructor in {@link com.adyen.service.legalentitymanagement package}. + * @param client {@link Client } (required) + */ + public DocumentsApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://kyc-test.adyen.com/lem/v3"); + } + + /** + * Documents constructor in {@link com.adyen.service.legalentitymanagement package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public DocumentsApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Delete a document + * + * @param id {@link String } The unique identifier of the document to be deleted. (required) + * @throws ApiException if fails to make API call + */ + public void deleteDocument(String id) throws ApiException, IOException { + deleteDocument(id, null); } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/documents/{id}", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); - } - - /** - * Get a document - * - * @param id {@link String } The unique identifier of the document. (required) - * @return {@link Document } - * @throws ApiException if fails to make API call - */ - public Document getDocument(String id) throws ApiException, IOException { - return getDocument(id, null, null); - } - - /** - * Get a document - * - * @param id {@link String } The unique identifier of the document. (required) - * @param skipContent {@link Boolean } Query: Do not load document content while fetching the - * document. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link Document } - * @throws ApiException if fails to make API call - */ - public Document getDocument(String id, Boolean skipContent, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + + /** + * Delete a document + * + * @param id {@link String } The unique identifier of the document to be deleted. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void deleteDocument(String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/documents/{id}", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); + } + + /** + * Get a document + * + * @param id {@link String } The unique identifier of the document. (required) + * @return {@link Document } + * @throws ApiException if fails to make API call + */ + public Document getDocument(String id) throws ApiException, IOException { + return getDocument(id, null, null); + } + + /** + * Get a document + * + * @param id {@link String } The unique identifier of the document. (required) + * @param skipContent {@link Boolean } Query: Do not load document content while fetching the document. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link Document } + * @throws ApiException if fails to make API call + */ + public Document getDocument(String id, Boolean skipContent, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + //Add query params + Map queryParams = new HashMap<>(); + if (skipContent != null) { + queryParams.put("skipContent", skipContent.toString()); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/documents/{id}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return Document.fromJson(jsonResult); + } + + /** + * Update a document + * + * @param id {@link String } The unique identifier of the document to be updated. (required) + * @param document {@link Document } (required) + * @return {@link Document } + * @throws ApiException if fails to make API call + */ + public Document updateDocument(String id, Document document) throws ApiException, IOException { + return updateDocument(id, document, null); + } + + /** + * Update a document + * + * @param id {@link String } The unique identifier of the document to be updated. (required) + * @param document {@link Document } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link Document } + * @throws ApiException if fails to make API call + */ + public Document updateDocument(String id, Document document, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = document.toJson(); + Resource resource = new Resource(this, this.baseURL + "/documents/{id}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return Document.fromJson(jsonResult); } - pathParams.put("id", id); - // Add query params - Map queryParams = new HashMap<>(); - if (skipContent != null) { - queryParams.put("skipContent", skipContent.toString()); + /** + * Upload a document for verification checks + * + * @param document {@link Document } (required) + * @return {@link Document } + * @throws ApiException if fails to make API call + */ + public Document uploadDocumentForVerificationChecks(Document document) throws ApiException, IOException { + return uploadDocumentForVerificationChecks(document, null); } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/documents/{id}", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return Document.fromJson(jsonResult); - } - - /** - * Update a document - * - * @param id {@link String } The unique identifier of the document to be updated. (required) - * @param document {@link Document } (required) - * @return {@link Document } - * @throws ApiException if fails to make API call - */ - public Document updateDocument(String id, Document document) throws ApiException, IOException { - return updateDocument(id, document, null); - } - - /** - * Update a document - * - * @param id {@link String } The unique identifier of the document to be updated. (required) - * @param document {@link Document } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link Document } - * @throws ApiException if fails to make API call - */ - public Document updateDocument(String id, Document document, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + /** + * Upload a document for verification checks + * + * @param document {@link Document } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link Document } + * @throws ApiException if fails to make API call + */ + public Document uploadDocumentForVerificationChecks(Document document, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = document.toJson(); + Resource resource = new Resource(this, this.baseURL + "/documents", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return Document.fromJson(jsonResult); } - pathParams.put("id", id); - - String requestBody = document.toJson(); - Resource resource = new Resource(this, this.baseURL + "/documents/{id}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return Document.fromJson(jsonResult); - } - - /** - * Upload a document for verification checks - * - * @param document {@link Document } (required) - * @return {@link Document } - * @throws ApiException if fails to make API call - */ - public Document uploadDocumentForVerificationChecks(Document document) - throws ApiException, IOException { - return uploadDocumentForVerificationChecks(document, null); - } - - /** - * Upload a document for verification checks - * - * @param document {@link Document } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link Document } - * @throws ApiException if fails to make API call - */ - public Document uploadDocumentForVerificationChecks( - Document document, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = document.toJson(); - Resource resource = new Resource(this, this.baseURL + "/documents", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return Document.fromJson(jsonResult); - } } diff --git a/src/main/java/com/adyen/service/legalentitymanagement/HostedOnboardingApi.java b/src/main/java/com/adyen/service/legalentitymanagement/HostedOnboardingApi.java index dbe900695..7b91a14ae 100644 --- a/src/main/java/com/adyen/service/legalentitymanagement/HostedOnboardingApi.java +++ b/src/main/java/com/adyen/service/legalentitymanagement/HostedOnboardingApi.java @@ -2,7 +2,7 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,147 +14,134 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.legalentitymanagement.OnboardingLink; import com.adyen.model.legalentitymanagement.OnboardingLinkInfo; import com.adyen.model.legalentitymanagement.OnboardingTheme; import com.adyen.model.legalentitymanagement.OnboardingThemes; +import com.adyen.model.legalentitymanagement.ServiceError; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class HostedOnboardingApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * Hosted Onboarding constructor in {@link com.adyen.service.legalentitymanagement package}. - * - * @param client {@link Client } (required) - */ - public HostedOnboardingApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://kyc-test.adyen.com/lem/v3"); - } - - /** - * Hosted Onboarding constructor in {@link com.adyen.service.legalentitymanagement package}. - * Please use this constructor only if you would like to pass along your own url for routing or - * testing purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public HostedOnboardingApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Get a link to an Adyen-hosted onboarding page - * - * @param id {@link String } The unique identifier of the legal entity (required) - * @param onboardingLinkInfo {@link OnboardingLinkInfo } (required) - * @return {@link OnboardingLink } - * @throws ApiException if fails to make API call - */ - public OnboardingLink getLinkToAdyenhostedOnboardingPage( - String id, OnboardingLinkInfo onboardingLinkInfo) throws ApiException, IOException { - return getLinkToAdyenhostedOnboardingPage(id, onboardingLinkInfo, null); - } - - /** - * Get a link to an Adyen-hosted onboarding page - * - * @param id {@link String } The unique identifier of the legal entity (required) - * @param onboardingLinkInfo {@link OnboardingLinkInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link OnboardingLink } - * @throws ApiException if fails to make API call - */ - public OnboardingLink getLinkToAdyenhostedOnboardingPage( - String id, OnboardingLinkInfo onboardingLinkInfo, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * Hosted Onboarding constructor in {@link com.adyen.service.legalentitymanagement package}. + * @param client {@link Client } (required) + */ + public HostedOnboardingApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://kyc-test.adyen.com/lem/v3"); } - pathParams.put("id", id); - - String requestBody = onboardingLinkInfo.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/legalEntities/{id}/onboardingLinks", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return OnboardingLink.fromJson(jsonResult); - } - - /** - * Get an onboarding link theme - * - * @param id {@link String } The unique identifier of the theme (required) - * @return {@link OnboardingTheme } - * @throws ApiException if fails to make API call - */ - public OnboardingTheme getOnboardingLinkTheme(String id) throws ApiException, IOException { - return getOnboardingLinkTheme(id, null); - } - - /** - * Get an onboarding link theme - * - * @param id {@link String } The unique identifier of the theme (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link OnboardingTheme } - * @throws ApiException if fails to make API call - */ - public OnboardingTheme getOnboardingLinkTheme(String id, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + + /** + * Hosted Onboarding constructor in {@link com.adyen.service.legalentitymanagement package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public HostedOnboardingApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Get a link to an Adyen-hosted onboarding page + * + * @param id {@link String } The unique identifier of the legal entity (required) + * @param onboardingLinkInfo {@link OnboardingLinkInfo } (required) + * @return {@link OnboardingLink } + * @throws ApiException if fails to make API call + */ + public OnboardingLink getLinkToAdyenhostedOnboardingPage(String id, OnboardingLinkInfo onboardingLinkInfo) throws ApiException, IOException { + return getLinkToAdyenhostedOnboardingPage(id, onboardingLinkInfo, null); + } + + /** + * Get a link to an Adyen-hosted onboarding page + * + * @param id {@link String } The unique identifier of the legal entity (required) + * @param onboardingLinkInfo {@link OnboardingLinkInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link OnboardingLink } + * @throws ApiException if fails to make API call + */ + public OnboardingLink getLinkToAdyenhostedOnboardingPage(String id, OnboardingLinkInfo onboardingLinkInfo, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = onboardingLinkInfo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}/onboardingLinks", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return OnboardingLink.fromJson(jsonResult); + } + + /** + * Get an onboarding link theme + * + * @param id {@link String } The unique identifier of the theme (required) + * @return {@link OnboardingTheme } + * @throws ApiException if fails to make API call + */ + public OnboardingTheme getOnboardingLinkTheme(String id) throws ApiException, IOException { + return getOnboardingLinkTheme(id, null); + } + + /** + * Get an onboarding link theme + * + * @param id {@link String } The unique identifier of the theme (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link OnboardingTheme } + * @throws ApiException if fails to make API call + */ + public OnboardingTheme getOnboardingLinkTheme(String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/themes/{id}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return OnboardingTheme.fromJson(jsonResult); + } + + /** + * Get a list of hosted onboarding page themes + * + * @return {@link OnboardingThemes } + * @throws ApiException if fails to make API call + */ + public OnboardingThemes listHostedOnboardingPageThemes() throws ApiException, IOException { + return listHostedOnboardingPageThemes(null); + } + + /** + * Get a list of hosted onboarding page themes + * + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link OnboardingThemes } + * @throws ApiException if fails to make API call + */ + public OnboardingThemes listHostedOnboardingPageThemes(RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/themes", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null); + return OnboardingThemes.fromJson(jsonResult); } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/themes/{id}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return OnboardingTheme.fromJson(jsonResult); - } - - /** - * Get a list of hosted onboarding page themes - * - * @return {@link OnboardingThemes } - * @throws ApiException if fails to make API call - */ - public OnboardingThemes listHostedOnboardingPageThemes() throws ApiException, IOException { - return listHostedOnboardingPageThemes(null); - } - - /** - * Get a list of hosted onboarding page themes - * - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link OnboardingThemes } - * @throws ApiException if fails to make API call - */ - public OnboardingThemes listHostedOnboardingPageThemes(RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/themes", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null); - return OnboardingThemes.fromJson(jsonResult); - } } diff --git a/src/main/java/com/adyen/service/legalentitymanagement/LegalEntitiesApi.java b/src/main/java/com/adyen/service/legalentitymanagement/LegalEntitiesApi.java index 70dc02e68..df2011173 100644 --- a/src/main/java/com/adyen/service/legalentitymanagement/LegalEntitiesApi.java +++ b/src/main/java/com/adyen/service/legalentitymanagement/LegalEntitiesApi.java @@ -2,7 +2,7 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,266 +14,237 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.legalentitymanagement.BusinessLines; import com.adyen.model.legalentitymanagement.DataReviewConfirmationResponse; import com.adyen.model.legalentitymanagement.LegalEntity; import com.adyen.model.legalentitymanagement.LegalEntityInfo; import com.adyen.model.legalentitymanagement.LegalEntityInfoRequiredType; +import com.adyen.model.legalentitymanagement.ServiceError; import com.adyen.model.legalentitymanagement.VerificationErrors; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class LegalEntitiesApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; + public static final String API_VERSION = "3"; - /** - * Legal entities constructor in {@link com.adyen.service.legalentitymanagement package}. - * - * @param client {@link Client } (required) - */ - public LegalEntitiesApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://kyc-test.adyen.com/lem/v3"); - } + protected String baseURL; - /** - * Legal entities constructor in {@link com.adyen.service.legalentitymanagement package}. Please - * use this constructor only if you would like to pass along your own url for routing or testing - * purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public LegalEntitiesApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Check a legal entity's verification errors - * - * @param id {@link String } The unique identifier of the legal entity. (required) - * @return {@link VerificationErrors } - * @throws ApiException if fails to make API call - */ - public VerificationErrors checkLegalEntitysVerificationErrors(String id) - throws ApiException, IOException { - return checkLegalEntitysVerificationErrors(id, null); - } - - /** - * Check a legal entity's verification errors - * - * @param id {@link String } The unique identifier of the legal entity. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link VerificationErrors } - * @throws ApiException if fails to make API call - */ - public VerificationErrors checkLegalEntitysVerificationErrors( - String id, RequestOptions requestOptions) throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + /** + * Legal entities constructor in {@link com.adyen.service.legalentitymanagement package}. + * @param client {@link Client } (required) + */ + public LegalEntitiesApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://kyc-test.adyen.com/lem/v3"); } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/legalEntities/{id}/checkVerificationErrors", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return VerificationErrors.fromJson(jsonResult); - } - - /** - * Confirm data review - * - * @param id {@link String } The unique identifier of the legal entity. (required) - * @return {@link DataReviewConfirmationResponse } - * @throws ApiException if fails to make API call - */ - public DataReviewConfirmationResponse confirmDataReview(String id) - throws ApiException, IOException { - return confirmDataReview(id, null); - } - /** - * Confirm data review - * - * @param id {@link String } The unique identifier of the legal entity. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link DataReviewConfirmationResponse } - * @throws ApiException if fails to make API call - */ - public DataReviewConfirmationResponse confirmDataReview(String id, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + /** + * Legal entities constructor in {@link com.adyen.service.legalentitymanagement package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public LegalEntitiesApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - pathParams.put("id", id); - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/legalEntities/{id}/confirmDataReview", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return DataReviewConfirmationResponse.fromJson(jsonResult); - } + /** + * Check a legal entity's verification errors + * + * @param id {@link String } The unique identifier of the legal entity. (required) + * @return {@link VerificationErrors } + * @throws ApiException if fails to make API call + */ + public VerificationErrors checkLegalEntitysVerificationErrors(String id) throws ApiException, IOException { + return checkLegalEntitysVerificationErrors(id, null); + } - /** - * Create a legal entity - * - * @param legalEntityInfoRequiredType {@link LegalEntityInfoRequiredType } (required) - * @return {@link LegalEntity } - * @throws ApiException if fails to make API call - */ - public LegalEntity createLegalEntity(LegalEntityInfoRequiredType legalEntityInfoRequiredType) - throws ApiException, IOException { - return createLegalEntity(legalEntityInfoRequiredType, null); - } + /** + * Check a legal entity's verification errors + * + * @param id {@link String } The unique identifier of the legal entity. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link VerificationErrors } + * @throws ApiException if fails to make API call + */ + public VerificationErrors checkLegalEntitysVerificationErrors(String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}/checkVerificationErrors", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return VerificationErrors.fromJson(jsonResult); + } - /** - * Create a legal entity - * - * @param legalEntityInfoRequiredType {@link LegalEntityInfoRequiredType } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link LegalEntity } - * @throws ApiException if fails to make API call - */ - public LegalEntity createLegalEntity( - LegalEntityInfoRequiredType legalEntityInfoRequiredType, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = legalEntityInfoRequiredType.toJson(); - Resource resource = new Resource(this, this.baseURL + "/legalEntities", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return LegalEntity.fromJson(jsonResult); - } + /** + * Confirm data review + * + * @param id {@link String } The unique identifier of the legal entity. (required) + * @return {@link DataReviewConfirmationResponse } + * @throws ApiException if fails to make API call + */ + public DataReviewConfirmationResponse confirmDataReview(String id) throws ApiException, IOException { + return confirmDataReview(id, null); + } - /** - * Get all business lines under a legal entity - * - * @param id {@link String } The unique identifier of the legal entity. (required) - * @return {@link BusinessLines } - * @throws ApiException if fails to make API call - */ - public BusinessLines getAllBusinessLinesUnderLegalEntity(String id) - throws ApiException, IOException { - return getAllBusinessLinesUnderLegalEntity(id, null); - } + /** + * Confirm data review + * + * @param id {@link String } The unique identifier of the legal entity. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link DataReviewConfirmationResponse } + * @throws ApiException if fails to make API call + */ + public DataReviewConfirmationResponse confirmDataReview(String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}/confirmDataReview", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return DataReviewConfirmationResponse.fromJson(jsonResult); + } - /** - * Get all business lines under a legal entity - * - * @param id {@link String } The unique identifier of the legal entity. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link BusinessLines } - * @throws ApiException if fails to make API call - */ - public BusinessLines getAllBusinessLinesUnderLegalEntity(String id, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + /** + * Create a legal entity + * + * @param legalEntityInfoRequiredType {@link LegalEntityInfoRequiredType } (required) + * @return {@link LegalEntity } + * @throws ApiException if fails to make API call + */ + public LegalEntity createLegalEntity(LegalEntityInfoRequiredType legalEntityInfoRequiredType) throws ApiException, IOException { + return createLegalEntity(legalEntityInfoRequiredType, null); } - pathParams.put("id", id); - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/legalEntities/{id}/businessLines", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return BusinessLines.fromJson(jsonResult); - } + /** + * Create a legal entity + * + * @param legalEntityInfoRequiredType {@link LegalEntityInfoRequiredType } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link LegalEntity } + * @throws ApiException if fails to make API call + */ + public LegalEntity createLegalEntity(LegalEntityInfoRequiredType legalEntityInfoRequiredType, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = legalEntityInfoRequiredType.toJson(); + Resource resource = new Resource(this, this.baseURL + "/legalEntities", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return LegalEntity.fromJson(jsonResult); + } - /** - * Get a legal entity - * - * @param id {@link String } The unique identifier of the legal entity. (required) - * @return {@link LegalEntity } - * @throws ApiException if fails to make API call - */ - public LegalEntity getLegalEntity(String id) throws ApiException, IOException { - return getLegalEntity(id, null); - } + /** + * Get all business lines under a legal entity + * + * @param id {@link String } The unique identifier of the legal entity. (required) + * @return {@link BusinessLines } + * @throws ApiException if fails to make API call + */ + public BusinessLines getAllBusinessLinesUnderLegalEntity(String id) throws ApiException, IOException { + return getAllBusinessLinesUnderLegalEntity(id, null); + } - /** - * Get a legal entity - * - * @param id {@link String } The unique identifier of the legal entity. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link LegalEntity } - * @throws ApiException if fails to make API call - */ - public LegalEntity getLegalEntity(String id, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + /** + * Get all business lines under a legal entity + * + * @param id {@link String } The unique identifier of the legal entity. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link BusinessLines } + * @throws ApiException if fails to make API call + */ + public BusinessLines getAllBusinessLinesUnderLegalEntity(String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}/businessLines", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return BusinessLines.fromJson(jsonResult); } - pathParams.put("id", id); - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return LegalEntity.fromJson(jsonResult); - } + /** + * Get a legal entity + * + * @param id {@link String } The unique identifier of the legal entity. (required) + * @return {@link LegalEntity } + * @throws ApiException if fails to make API call + */ + public LegalEntity getLegalEntity(String id) throws ApiException, IOException { + return getLegalEntity(id, null); + } - /** - * Update a legal entity - * - * @param id {@link String } The unique identifier of the legal entity. (required) - * @param legalEntityInfo {@link LegalEntityInfo } (required) - * @return {@link LegalEntity } - * @throws ApiException if fails to make API call - */ - public LegalEntity updateLegalEntity(String id, LegalEntityInfo legalEntityInfo) - throws ApiException, IOException { - return updateLegalEntity(id, legalEntityInfo, null); - } + /** + * Get a legal entity + * + * @param id {@link String } The unique identifier of the legal entity. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link LegalEntity } + * @throws ApiException if fails to make API call + */ + public LegalEntity getLegalEntity(String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return LegalEntity.fromJson(jsonResult); + } - /** - * Update a legal entity - * - * @param id {@link String } The unique identifier of the legal entity. (required) - * @param legalEntityInfo {@link LegalEntityInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link LegalEntity } - * @throws ApiException if fails to make API call - */ - public LegalEntity updateLegalEntity( - String id, LegalEntityInfo legalEntityInfo, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + /** + * Update a legal entity + * + * @param id {@link String } The unique identifier of the legal entity. (required) + * @param legalEntityInfo {@link LegalEntityInfo } (required) + * @return {@link LegalEntity } + * @throws ApiException if fails to make API call + */ + public LegalEntity updateLegalEntity(String id, LegalEntityInfo legalEntityInfo) throws ApiException, IOException { + return updateLegalEntity(id, legalEntityInfo, null); } - pathParams.put("id", id); - String requestBody = legalEntityInfo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return LegalEntity.fromJson(jsonResult); - } + /** + * Update a legal entity + * + * @param id {@link String } The unique identifier of the legal entity. (required) + * @param legalEntityInfo {@link LegalEntityInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link LegalEntity } + * @throws ApiException if fails to make API call + */ + public LegalEntity updateLegalEntity(String id, LegalEntityInfo legalEntityInfo, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = legalEntityInfo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return LegalEntity.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/legalentitymanagement/PciQuestionnairesApi.java b/src/main/java/com/adyen/service/legalentitymanagement/PciQuestionnairesApi.java index a89b0288d..e9e7b2d1e 100644 --- a/src/main/java/com/adyen/service/legalentitymanagement/PciQuestionnairesApi.java +++ b/src/main/java/com/adyen/service/legalentitymanagement/PciQuestionnairesApi.java @@ -2,7 +2,7 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,7 +14,6 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.legalentitymanagement.CalculatePciStatusRequest; import com.adyen.model.legalentitymanagement.CalculatePciStatusResponse; import com.adyen.model.legalentitymanagement.GeneratePciDescriptionRequest; @@ -23,262 +22,215 @@ import com.adyen.model.legalentitymanagement.GetPciQuestionnaireResponse; import com.adyen.model.legalentitymanagement.PciSigningRequest; import com.adyen.model.legalentitymanagement.PciSigningResponse; +import com.adyen.model.legalentitymanagement.ServiceError; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class PciQuestionnairesApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; + public static final String API_VERSION = "3"; - /** - * PCI questionnaires constructor in {@link com.adyen.service.legalentitymanagement package}. - * - * @param client {@link Client } (required) - */ - public PciQuestionnairesApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://kyc-test.adyen.com/lem/v3"); - } + protected String baseURL; - /** - * PCI questionnaires constructor in {@link com.adyen.service.legalentitymanagement package}. - * Please use this constructor only if you would like to pass along your own url for routing or - * testing purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public PciQuestionnairesApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Calculate PCI status of a legal entity - * - * @param id {@link String } The unique identifier of the legal entity to calculate PCI status. - * (required) - * @param calculatePciStatusRequest {@link CalculatePciStatusRequest } (required) - * @return {@link CalculatePciStatusResponse } - * @throws ApiException if fails to make API call - */ - public CalculatePciStatusResponse calculatePciStatusOfLegalEntity( - String id, CalculatePciStatusRequest calculatePciStatusRequest) - throws ApiException, IOException { - return calculatePciStatusOfLegalEntity(id, calculatePciStatusRequest, null); - } - - /** - * Calculate PCI status of a legal entity - * - * @param id {@link String } The unique identifier of the legal entity to calculate PCI status. - * (required) - * @param calculatePciStatusRequest {@link CalculatePciStatusRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link CalculatePciStatusResponse } - * @throws ApiException if fails to make API call - */ - public CalculatePciStatusResponse calculatePciStatusOfLegalEntity( - String id, CalculatePciStatusRequest calculatePciStatusRequest, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + /** + * PCI questionnaires constructor in {@link com.adyen.service.legalentitymanagement package}. + * @param client {@link Client } (required) + */ + public PciQuestionnairesApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://kyc-test.adyen.com/lem/v3"); } - pathParams.put("id", id); - - String requestBody = calculatePciStatusRequest.toJson(); - Resource resource = - new Resource( - this, this.baseURL + "/legalEntities/{id}/pciQuestionnaires/signingRequired", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return CalculatePciStatusResponse.fromJson(jsonResult); - } - - /** - * Generate PCI questionnaire - * - * @param id {@link String } The unique identifier of the legal entity to get PCI questionnaire - * information. (required) - * @param generatePciDescriptionRequest {@link GeneratePciDescriptionRequest } (required) - * @return {@link GeneratePciDescriptionResponse } - * @throws ApiException if fails to make API call - */ - public GeneratePciDescriptionResponse generatePciQuestionnaire( - String id, GeneratePciDescriptionRequest generatePciDescriptionRequest) - throws ApiException, IOException { - return generatePciQuestionnaire(id, generatePciDescriptionRequest, null); - } - /** - * Generate PCI questionnaire - * - * @param id {@link String } The unique identifier of the legal entity to get PCI questionnaire - * information. (required) - * @param generatePciDescriptionRequest {@link GeneratePciDescriptionRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link GeneratePciDescriptionResponse } - * @throws ApiException if fails to make API call - */ - public GeneratePciDescriptionResponse generatePciQuestionnaire( - String id, - GeneratePciDescriptionRequest generatePciDescriptionRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + /** + * PCI questionnaires constructor in {@link com.adyen.service.legalentitymanagement package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public PciQuestionnairesApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - pathParams.put("id", id); - String requestBody = generatePciDescriptionRequest.toJson(); - Resource resource = - new Resource( - this, - this.baseURL + "/legalEntities/{id}/pciQuestionnaires/generatePciTemplates", - null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return GeneratePciDescriptionResponse.fromJson(jsonResult); - } - - /** - * Get PCI questionnaire - * - * @param id {@link String } The legal entity ID of the individual who signed the PCI - * questionnaire. (required) - * @param pciid {@link String } The unique identifier of the signed PCI questionnaire. (required) - * @return {@link GetPciQuestionnaireResponse } - * @throws ApiException if fails to make API call - */ - public GetPciQuestionnaireResponse getPciQuestionnaire(String id, String pciid) - throws ApiException, IOException { - return getPciQuestionnaire(id, pciid, null); - } + /** + * Calculate PCI status of a legal entity + * + * @param id {@link String } The unique identifier of the legal entity to calculate PCI status. (required) + * @param calculatePciStatusRequest {@link CalculatePciStatusRequest } (required) + * @return {@link CalculatePciStatusResponse } + * @throws ApiException if fails to make API call + */ + public CalculatePciStatusResponse calculatePciStatusOfLegalEntity(String id, CalculatePciStatusRequest calculatePciStatusRequest) throws ApiException, IOException { + return calculatePciStatusOfLegalEntity(id, calculatePciStatusRequest, null); + } - /** - * Get PCI questionnaire - * - * @param id {@link String } The legal entity ID of the individual who signed the PCI - * questionnaire. (required) - * @param pciid {@link String } The unique identifier of the signed PCI questionnaire. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link GetPciQuestionnaireResponse } - * @throws ApiException if fails to make API call - */ - public GetPciQuestionnaireResponse getPciQuestionnaire( - String id, String pciid, RequestOptions requestOptions) throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + /** + * Calculate PCI status of a legal entity + * + * @param id {@link String } The unique identifier of the legal entity to calculate PCI status. (required) + * @param calculatePciStatusRequest {@link CalculatePciStatusRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link CalculatePciStatusResponse } + * @throws ApiException if fails to make API call + */ + public CalculatePciStatusResponse calculatePciStatusOfLegalEntity(String id, CalculatePciStatusRequest calculatePciStatusRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = calculatePciStatusRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}/pciQuestionnaires/signingRequired", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return CalculatePciStatusResponse.fromJson(jsonResult); } - pathParams.put("id", id); - if (pciid == null) { - throw new IllegalArgumentException("Please provide the pciid path parameter"); + + /** + * Generate PCI questionnaire + * + * @param id {@link String } The unique identifier of the legal entity to get PCI questionnaire information. (required) + * @param generatePciDescriptionRequest {@link GeneratePciDescriptionRequest } (required) + * @return {@link GeneratePciDescriptionResponse } + * @throws ApiException if fails to make API call + */ + public GeneratePciDescriptionResponse generatePciQuestionnaire(String id, GeneratePciDescriptionRequest generatePciDescriptionRequest) throws ApiException, IOException { + return generatePciQuestionnaire(id, generatePciDescriptionRequest, null); } - pathParams.put("pciid", pciid); - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/legalEntities/{id}/pciQuestionnaires/{pciid}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return GetPciQuestionnaireResponse.fromJson(jsonResult); - } + /** + * Generate PCI questionnaire + * + * @param id {@link String } The unique identifier of the legal entity to get PCI questionnaire information. (required) + * @param generatePciDescriptionRequest {@link GeneratePciDescriptionRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link GeneratePciDescriptionResponse } + * @throws ApiException if fails to make API call + */ + public GeneratePciDescriptionResponse generatePciQuestionnaire(String id, GeneratePciDescriptionRequest generatePciDescriptionRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = generatePciDescriptionRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}/pciQuestionnaires/generatePciTemplates", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return GeneratePciDescriptionResponse.fromJson(jsonResult); + } - /** - * Get PCI questionnaire details - * - * @param id {@link String } The unique identifier of the legal entity to get PCI questionnaire - * information. (required) - * @return {@link GetPciQuestionnaireInfosResponse } - * @throws ApiException if fails to make API call - */ - public GetPciQuestionnaireInfosResponse getPciQuestionnaireDetails(String id) - throws ApiException, IOException { - return getPciQuestionnaireDetails(id, null); - } + /** + * Get PCI questionnaire + * + * @param id {@link String } The legal entity ID of the individual who signed the PCI questionnaire. (required) + * @param pciid {@link String } The unique identifier of the signed PCI questionnaire. (required) + * @return {@link GetPciQuestionnaireResponse } + * @throws ApiException if fails to make API call + */ + public GetPciQuestionnaireResponse getPciQuestionnaire(String id, String pciid) throws ApiException, IOException { + return getPciQuestionnaire(id, pciid, null); + } - /** - * Get PCI questionnaire details - * - * @param id {@link String } The unique identifier of the legal entity to get PCI questionnaire - * information. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link GetPciQuestionnaireInfosResponse } - * @throws ApiException if fails to make API call - */ - public GetPciQuestionnaireInfosResponse getPciQuestionnaireDetails( - String id, RequestOptions requestOptions) throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + /** + * Get PCI questionnaire + * + * @param id {@link String } The legal entity ID of the individual who signed the PCI questionnaire. (required) + * @param pciid {@link String } The unique identifier of the signed PCI questionnaire. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link GetPciQuestionnaireResponse } + * @throws ApiException if fails to make API call + */ + public GetPciQuestionnaireResponse getPciQuestionnaire(String id, String pciid, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + if (pciid == null) { + throw new IllegalArgumentException("Please provide the pciid path parameter"); + } + pathParams.put("pciid", pciid); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}/pciQuestionnaires/{pciid}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return GetPciQuestionnaireResponse.fromJson(jsonResult); } - pathParams.put("id", id); - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/legalEntities/{id}/pciQuestionnaires", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return GetPciQuestionnaireInfosResponse.fromJson(jsonResult); - } + /** + * Get PCI questionnaire details + * + * @param id {@link String } The unique identifier of the legal entity to get PCI questionnaire information. (required) + * @return {@link GetPciQuestionnaireInfosResponse } + * @throws ApiException if fails to make API call + */ + public GetPciQuestionnaireInfosResponse getPciQuestionnaireDetails(String id) throws ApiException, IOException { + return getPciQuestionnaireDetails(id, null); + } - /** - * Sign PCI questionnaire - * - * @param id {@link String } The legal entity ID of the user that has a contractual relationship - * with your platform. (required) - * @param pciSigningRequest {@link PciSigningRequest } (required) - * @return {@link PciSigningResponse } - * @throws ApiException if fails to make API call - */ - public PciSigningResponse signPciQuestionnaire(String id, PciSigningRequest pciSigningRequest) - throws ApiException, IOException { - return signPciQuestionnaire(id, pciSigningRequest, null); - } + /** + * Get PCI questionnaire details + * + * @param id {@link String } The unique identifier of the legal entity to get PCI questionnaire information. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link GetPciQuestionnaireInfosResponse } + * @throws ApiException if fails to make API call + */ + public GetPciQuestionnaireInfosResponse getPciQuestionnaireDetails(String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}/pciQuestionnaires", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return GetPciQuestionnaireInfosResponse.fromJson(jsonResult); + } - /** - * Sign PCI questionnaire - * - * @param id {@link String } The legal entity ID of the user that has a contractual relationship - * with your platform. (required) - * @param pciSigningRequest {@link PciSigningRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PciSigningResponse } - * @throws ApiException if fails to make API call - */ - public PciSigningResponse signPciQuestionnaire( - String id, PciSigningRequest pciSigningRequest, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + /** + * Sign PCI questionnaire + * + * @param id {@link String } The legal entity ID of the user that has a contractual relationship with your platform. (required) + * @param pciSigningRequest {@link PciSigningRequest } (required) + * @return {@link PciSigningResponse } + * @throws ApiException if fails to make API call + */ + public PciSigningResponse signPciQuestionnaire(String id, PciSigningRequest pciSigningRequest) throws ApiException, IOException { + return signPciQuestionnaire(id, pciSigningRequest, null); } - pathParams.put("id", id); - String requestBody = pciSigningRequest.toJson(); - Resource resource = - new Resource( - this, this.baseURL + "/legalEntities/{id}/pciQuestionnaires/signPciTemplates", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return PciSigningResponse.fromJson(jsonResult); - } + /** + * Sign PCI questionnaire + * + * @param id {@link String } The legal entity ID of the user that has a contractual relationship with your platform. (required) + * @param pciSigningRequest {@link PciSigningRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PciSigningResponse } + * @throws ApiException if fails to make API call + */ + public PciSigningResponse signPciQuestionnaire(String id, PciSigningRequest pciSigningRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = pciSigningRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}/pciQuestionnaires/signPciTemplates", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return PciSigningResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/legalentitymanagement/TaxEDeliveryConsentApi.java b/src/main/java/com/adyen/service/legalentitymanagement/TaxEDeliveryConsentApi.java index caf3daad4..6c4d19eef 100644 --- a/src/main/java/com/adyen/service/legalentitymanagement/TaxEDeliveryConsentApi.java +++ b/src/main/java/com/adyen/service/legalentitymanagement/TaxEDeliveryConsentApi.java @@ -2,7 +2,7 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,134 +14,105 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.legalentitymanagement.CheckTaxElectronicDeliveryConsentResponse; +import com.adyen.model.legalentitymanagement.ServiceError; import com.adyen.model.legalentitymanagement.SetTaxElectronicDeliveryConsentRequest; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class TaxEDeliveryConsentApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; + public static final String API_VERSION = "3"; - /** - * Tax eDelivery consent constructor in {@link com.adyen.service.legalentitymanagement package}. - * - * @param client {@link Client } (required) - */ - public TaxEDeliveryConsentApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://kyc-test.adyen.com/lem/v3"); - } + protected String baseURL; - /** - * Tax eDelivery consent constructor in {@link com.adyen.service.legalentitymanagement package}. - * Please use this constructor only if you would like to pass along your own url for routing or - * testing purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public TaxEDeliveryConsentApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Tax eDelivery consent constructor in {@link com.adyen.service.legalentitymanagement package}. + * @param client {@link Client } (required) + */ + public TaxEDeliveryConsentApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://kyc-test.adyen.com/lem/v3"); + } - /** - * Check the status of consent for electronic delivery of tax forms - * - * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, - * this is the individual legal entity ID of the owner. For organizations, this is the ID of - * the organization. (required) - * @return {@link CheckTaxElectronicDeliveryConsentResponse } - * @throws ApiException if fails to make API call - */ - public CheckTaxElectronicDeliveryConsentResponse - checkStatusOfConsentForElectronicDeliveryOfTaxForms(String id) - throws ApiException, IOException { - return checkStatusOfConsentForElectronicDeliveryOfTaxForms(id, null); - } + /** + * Tax eDelivery consent constructor in {@link com.adyen.service.legalentitymanagement package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public TaxEDeliveryConsentApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Check the status of consent for electronic delivery of tax forms - * - * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, - * this is the individual legal entity ID of the owner. For organizations, this is the ID of - * the organization. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link CheckTaxElectronicDeliveryConsentResponse } - * @throws ApiException if fails to make API call - */ - public CheckTaxElectronicDeliveryConsentResponse - checkStatusOfConsentForElectronicDeliveryOfTaxForms(String id, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + /** + * Check the status of consent for electronic delivery of tax forms + * + * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization. (required) + * @return {@link CheckTaxElectronicDeliveryConsentResponse } + * @throws ApiException if fails to make API call + */ + public CheckTaxElectronicDeliveryConsentResponse checkStatusOfConsentForElectronicDeliveryOfTaxForms(String id) throws ApiException, IOException { + return checkStatusOfConsentForElectronicDeliveryOfTaxForms(id, null); } - pathParams.put("id", id); - String requestBody = null; - Resource resource = - new Resource( - this, this.baseURL + "/legalEntities/{id}/checkTaxElectronicDeliveryConsent", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return CheckTaxElectronicDeliveryConsentResponse.fromJson(jsonResult); - } + /** + * Check the status of consent for electronic delivery of tax forms + * + * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link CheckTaxElectronicDeliveryConsentResponse } + * @throws ApiException if fails to make API call + */ + public CheckTaxElectronicDeliveryConsentResponse checkStatusOfConsentForElectronicDeliveryOfTaxForms(String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); - /** - * Set the consent status for electronic delivery of tax forms - * - * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, - * this is the individual legal entity ID of the owner. For organizations, this is the ID of - * the organization. (required) - * @param setTaxElectronicDeliveryConsentRequest {@link SetTaxElectronicDeliveryConsentRequest } - * (required) - * @throws ApiException if fails to make API call - */ - public void setConsentStatusForElectronicDeliveryOfTaxForms( - String id, SetTaxElectronicDeliveryConsentRequest setTaxElectronicDeliveryConsentRequest) - throws ApiException, IOException { - setConsentStatusForElectronicDeliveryOfTaxForms( - id, setTaxElectronicDeliveryConsentRequest, null); - } + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}/checkTaxElectronicDeliveryConsent", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return CheckTaxElectronicDeliveryConsentResponse.fromJson(jsonResult); + } - /** - * Set the consent status for electronic delivery of tax forms - * - * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, - * this is the individual legal entity ID of the owner. For organizations, this is the ID of - * the organization. (required) - * @param setTaxElectronicDeliveryConsentRequest {@link SetTaxElectronicDeliveryConsentRequest } - * (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void setConsentStatusForElectronicDeliveryOfTaxForms( - String id, - SetTaxElectronicDeliveryConsentRequest setTaxElectronicDeliveryConsentRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + /** + * Set the consent status for electronic delivery of tax forms + * + * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization. (required) + * @param setTaxElectronicDeliveryConsentRequest {@link SetTaxElectronicDeliveryConsentRequest } (required) + * @throws ApiException if fails to make API call + */ + public void setConsentStatusForElectronicDeliveryOfTaxForms(String id, SetTaxElectronicDeliveryConsentRequest setTaxElectronicDeliveryConsentRequest) throws ApiException, IOException { + setConsentStatusForElectronicDeliveryOfTaxForms(id, setTaxElectronicDeliveryConsentRequest, null); } - pathParams.put("id", id); - String requestBody = setTaxElectronicDeliveryConsentRequest.toJson(); - Resource resource = - new Resource( - this, this.baseURL + "/legalEntities/{id}/setTaxElectronicDeliveryConsent", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - } + /** + * Set the consent status for electronic delivery of tax forms + * + * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization. (required) + * @param setTaxElectronicDeliveryConsentRequest {@link SetTaxElectronicDeliveryConsentRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void setConsentStatusForElectronicDeliveryOfTaxForms(String id, SetTaxElectronicDeliveryConsentRequest setTaxElectronicDeliveryConsentRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = setTaxElectronicDeliveryConsentRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}/setTaxElectronicDeliveryConsent", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + } } diff --git a/src/main/java/com/adyen/service/legalentitymanagement/TermsOfServiceApi.java b/src/main/java/com/adyen/service/legalentitymanagement/TermsOfServiceApi.java index cceadbc9b..af06008f2 100644 --- a/src/main/java/com/adyen/service/legalentitymanagement/TermsOfServiceApi.java +++ b/src/main/java/com/adyen/service/legalentitymanagement/TermsOfServiceApi.java @@ -2,7 +2,7 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,7 +14,6 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.legalentitymanagement.AcceptTermsOfServiceRequest; import com.adyen.model.legalentitymanagement.AcceptTermsOfServiceResponse; import com.adyen.model.legalentitymanagement.CalculateTermsOfServiceStatusResponse; @@ -22,304 +21,226 @@ import com.adyen.model.legalentitymanagement.GetTermsOfServiceAcceptanceInfosResponse; import com.adyen.model.legalentitymanagement.GetTermsOfServiceDocumentRequest; import com.adyen.model.legalentitymanagement.GetTermsOfServiceDocumentResponse; +import com.adyen.model.legalentitymanagement.ServiceError; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class TermsOfServiceApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; + public static final String API_VERSION = "3"; - /** - * Terms of Service constructor in {@link com.adyen.service.legalentitymanagement package}. - * - * @param client {@link Client } (required) - */ - public TermsOfServiceApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://kyc-test.adyen.com/lem/v3"); - } + protected String baseURL; - /** - * Terms of Service constructor in {@link com.adyen.service.legalentitymanagement package}. Please - * use this constructor only if you would like to pass along your own url for routing or testing - * purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public TermsOfServiceApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Accept Terms of Service - * - * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, - * this is the individual legal entity ID of the owner. For organizations, this is the ID of - * the organization. For legal representatives of individuals, this is the ID of the - * individual. (required) - * @param termsofservicedocumentid {@link String } The unique identifier of the Terms of Service - * document. (required) - * @param acceptTermsOfServiceRequest {@link AcceptTermsOfServiceRequest } (required) - * @return {@link AcceptTermsOfServiceResponse } - * @throws ApiException if fails to make API call - */ - public AcceptTermsOfServiceResponse acceptTermsOfService( - String id, - String termsofservicedocumentid, - AcceptTermsOfServiceRequest acceptTermsOfServiceRequest) - throws ApiException, IOException { - return acceptTermsOfService(id, termsofservicedocumentid, acceptTermsOfServiceRequest, null); - } - - /** - * Accept Terms of Service - * - * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, - * this is the individual legal entity ID of the owner. For organizations, this is the ID of - * the organization. For legal representatives of individuals, this is the ID of the - * individual. (required) - * @param termsofservicedocumentid {@link String } The unique identifier of the Terms of Service - * document. (required) - * @param acceptTermsOfServiceRequest {@link AcceptTermsOfServiceRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link AcceptTermsOfServiceResponse } - * @throws ApiException if fails to make API call - */ - public AcceptTermsOfServiceResponse acceptTermsOfService( - String id, - String termsofservicedocumentid, - AcceptTermsOfServiceRequest acceptTermsOfServiceRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + /** + * Terms of Service constructor in {@link com.adyen.service.legalentitymanagement package}. + * @param client {@link Client } (required) + */ + public TermsOfServiceApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://kyc-test.adyen.com/lem/v3"); } - pathParams.put("id", id); - if (termsofservicedocumentid == null) { - throw new IllegalArgumentException( - "Please provide the termsofservicedocumentid path parameter"); - } - pathParams.put("termsofservicedocumentid", termsofservicedocumentid); - - String requestBody = acceptTermsOfServiceRequest.toJson(); - Resource resource = - new Resource( - this, - this.baseURL + "/legalEntities/{id}/termsOfService/{termsofservicedocumentid}", - null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return AcceptTermsOfServiceResponse.fromJson(jsonResult); - } - /** - * Get accepted Terms of Service document - * - * @param id {@link String } The unique identifier of the legal entity. For sole proprietorship, - * this is the individual legal entity ID of the owner. For organizations, this is the ID of - * the organization. (required) - * @param termsofserviceacceptancereference {@link String } An Adyen-generated reference for the - * accepted Terms of Service. (required) - * @return {@link GetAcceptedTermsOfServiceDocumentResponse } - * @throws ApiException if fails to make API call - */ - public GetAcceptedTermsOfServiceDocumentResponse getAcceptedTermsOfServiceDocument( - String id, String termsofserviceacceptancereference) throws ApiException, IOException { - return getAcceptedTermsOfServiceDocument(id, termsofserviceacceptancereference, null, null); - } - - /** - * Get accepted Terms of Service document - * - * @param id {@link String } The unique identifier of the legal entity. For sole proprietorship, - * this is the individual legal entity ID of the owner. For organizations, this is the ID of - * the organization. (required) - * @param termsofserviceacceptancereference {@link String } An Adyen-generated reference for the - * accepted Terms of Service. (required) - * @param termsOfServiceDocumentFormat {@link String } Query: The format of the Terms of Service - * document. Possible values: **JSON**, **PDF**, or **TXT** (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link GetAcceptedTermsOfServiceDocumentResponse } - * @throws ApiException if fails to make API call - */ - public GetAcceptedTermsOfServiceDocumentResponse getAcceptedTermsOfServiceDocument( - String id, - String termsofserviceacceptancereference, - String termsOfServiceDocumentFormat, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - if (termsofserviceacceptancereference == null) { - throw new IllegalArgumentException( - "Please provide the termsofserviceacceptancereference path parameter"); + /** + * Terms of Service constructor in {@link com.adyen.service.legalentitymanagement package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public TermsOfServiceApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - pathParams.put("termsofserviceacceptancereference", termsofserviceacceptancereference); - // Add query params - Map queryParams = new HashMap<>(); - if (termsOfServiceDocumentFormat != null) { - queryParams.put("termsOfServiceDocumentFormat", termsOfServiceDocumentFormat); + /** + * Accept Terms of Service + * + * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization. For legal representatives of individuals, this is the ID of the individual. (required) + * @param termsofservicedocumentid {@link String } The unique identifier of the Terms of Service document. (required) + * @param acceptTermsOfServiceRequest {@link AcceptTermsOfServiceRequest } (required) + * @return {@link AcceptTermsOfServiceResponse } + * @throws ApiException if fails to make API call + */ + public AcceptTermsOfServiceResponse acceptTermsOfService(String id, String termsofservicedocumentid, AcceptTermsOfServiceRequest acceptTermsOfServiceRequest) throws ApiException, IOException { + return acceptTermsOfService(id, termsofservicedocumentid, acceptTermsOfServiceRequest, null); } - String requestBody = null; - Resource resource = - new Resource( - this, - this.baseURL - + "/legalEntities/{id}/acceptedTermsOfServiceDocument/{termsofserviceacceptancereference}", - null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return GetAcceptedTermsOfServiceDocumentResponse.fromJson(jsonResult); - } - - /** - * Get Terms of Service document - * - * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, - * this is the individual legal entity ID of the owner. For organizations, this is the ID of - * the organization. (required) - * @param getTermsOfServiceDocumentRequest {@link GetTermsOfServiceDocumentRequest } (required) - * @return {@link GetTermsOfServiceDocumentResponse } - * @throws ApiException if fails to make API call - */ - public GetTermsOfServiceDocumentResponse getTermsOfServiceDocument( - String id, GetTermsOfServiceDocumentRequest getTermsOfServiceDocumentRequest) - throws ApiException, IOException { - return getTermsOfServiceDocument(id, getTermsOfServiceDocumentRequest, null); - } + /** + * Accept Terms of Service + * + * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization. For legal representatives of individuals, this is the ID of the individual. (required) + * @param termsofservicedocumentid {@link String } The unique identifier of the Terms of Service document. (required) + * @param acceptTermsOfServiceRequest {@link AcceptTermsOfServiceRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link AcceptTermsOfServiceResponse } + * @throws ApiException if fails to make API call + */ + public AcceptTermsOfServiceResponse acceptTermsOfService(String id, String termsofservicedocumentid, AcceptTermsOfServiceRequest acceptTermsOfServiceRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + if (termsofservicedocumentid == null) { + throw new IllegalArgumentException("Please provide the termsofservicedocumentid path parameter"); + } + pathParams.put("termsofservicedocumentid", termsofservicedocumentid); + + String requestBody = acceptTermsOfServiceRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}/termsOfService/{termsofservicedocumentid}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return AcceptTermsOfServiceResponse.fromJson(jsonResult); + } - /** - * Get Terms of Service document - * - * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, - * this is the individual legal entity ID of the owner. For organizations, this is the ID of - * the organization. (required) - * @param getTermsOfServiceDocumentRequest {@link GetTermsOfServiceDocumentRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link GetTermsOfServiceDocumentResponse } - * @throws ApiException if fails to make API call - */ - public GetTermsOfServiceDocumentResponse getTermsOfServiceDocument( - String id, - GetTermsOfServiceDocumentRequest getTermsOfServiceDocumentRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + /** + * Get accepted Terms of Service document + * + * @param id {@link String } The unique identifier of the legal entity. For sole proprietorship, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization. (required) + * @param termsofserviceacceptancereference {@link String } An Adyen-generated reference for the accepted Terms of Service. (required) + * @return {@link GetAcceptedTermsOfServiceDocumentResponse } + * @throws ApiException if fails to make API call + */ + public GetAcceptedTermsOfServiceDocumentResponse getAcceptedTermsOfServiceDocument(String id, String termsofserviceacceptancereference) throws ApiException, IOException { + return getAcceptedTermsOfServiceDocument(id, termsofserviceacceptancereference, null, null); } - pathParams.put("id", id); - String requestBody = getTermsOfServiceDocumentRequest.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/legalEntities/{id}/termsOfService", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return GetTermsOfServiceDocumentResponse.fromJson(jsonResult); - } + /** + * Get accepted Terms of Service document + * + * @param id {@link String } The unique identifier of the legal entity. For sole proprietorship, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization. (required) + * @param termsofserviceacceptancereference {@link String } An Adyen-generated reference for the accepted Terms of Service. (required) + * @param termsOfServiceDocumentFormat {@link String } Query: The format of the Terms of Service document. Possible values: **JSON**, **PDF**, or **TXT** (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link GetAcceptedTermsOfServiceDocumentResponse } + * @throws ApiException if fails to make API call + */ + public GetAcceptedTermsOfServiceDocumentResponse getAcceptedTermsOfServiceDocument(String id, String termsofserviceacceptancereference, String termsOfServiceDocumentFormat, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + if (termsofserviceacceptancereference == null) { + throw new IllegalArgumentException("Please provide the termsofserviceacceptancereference path parameter"); + } + pathParams.put("termsofserviceacceptancereference", termsofserviceacceptancereference); + + //Add query params + Map queryParams = new HashMap<>(); + if (termsOfServiceDocumentFormat != null) { + queryParams.put("termsOfServiceDocumentFormat", termsOfServiceDocumentFormat); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}/acceptedTermsOfServiceDocument/{termsofserviceacceptancereference}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return GetAcceptedTermsOfServiceDocumentResponse.fromJson(jsonResult); + } - /** - * Get Terms of Service information for a legal entity - * - * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, - * this is the individual legal entity ID of the owner. For organizations, this is the ID of - * the organization. (required) - * @return {@link GetTermsOfServiceAcceptanceInfosResponse } - * @throws ApiException if fails to make API call - */ - public GetTermsOfServiceAcceptanceInfosResponse getTermsOfServiceInformationForLegalEntity( - String id) throws ApiException, IOException { - return getTermsOfServiceInformationForLegalEntity(id, null); - } + /** + * Get Terms of Service document + * + * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization. (required) + * @param getTermsOfServiceDocumentRequest {@link GetTermsOfServiceDocumentRequest } (required) + * @return {@link GetTermsOfServiceDocumentResponse } + * @throws ApiException if fails to make API call + */ + public GetTermsOfServiceDocumentResponse getTermsOfServiceDocument(String id, GetTermsOfServiceDocumentRequest getTermsOfServiceDocumentRequest) throws ApiException, IOException { + return getTermsOfServiceDocument(id, getTermsOfServiceDocumentRequest, null); + } - /** - * Get Terms of Service information for a legal entity - * - * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, - * this is the individual legal entity ID of the owner. For organizations, this is the ID of - * the organization. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link GetTermsOfServiceAcceptanceInfosResponse } - * @throws ApiException if fails to make API call - */ - public GetTermsOfServiceAcceptanceInfosResponse getTermsOfServiceInformationForLegalEntity( - String id, RequestOptions requestOptions) throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + /** + * Get Terms of Service document + * + * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization. (required) + * @param getTermsOfServiceDocumentRequest {@link GetTermsOfServiceDocumentRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link GetTermsOfServiceDocumentResponse } + * @throws ApiException if fails to make API call + */ + public GetTermsOfServiceDocumentResponse getTermsOfServiceDocument(String id, GetTermsOfServiceDocumentRequest getTermsOfServiceDocumentRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = getTermsOfServiceDocumentRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}/termsOfService", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return GetTermsOfServiceDocumentResponse.fromJson(jsonResult); } - pathParams.put("id", id); - String requestBody = null; - Resource resource = - new Resource( - this, this.baseURL + "/legalEntities/{id}/termsOfServiceAcceptanceInfos", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return GetTermsOfServiceAcceptanceInfosResponse.fromJson(jsonResult); - } + /** + * Get Terms of Service information for a legal entity + * + * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization. (required) + * @return {@link GetTermsOfServiceAcceptanceInfosResponse } + * @throws ApiException if fails to make API call + */ + public GetTermsOfServiceAcceptanceInfosResponse getTermsOfServiceInformationForLegalEntity(String id) throws ApiException, IOException { + return getTermsOfServiceInformationForLegalEntity(id, null); + } - /** - * Get Terms of Service status - * - * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, - * this is the individual legal entity ID of the owner. For organizations, this is the ID of - * the organization. (required) - * @return {@link CalculateTermsOfServiceStatusResponse } - * @throws ApiException if fails to make API call - */ - public CalculateTermsOfServiceStatusResponse getTermsOfServiceStatus(String id) - throws ApiException, IOException { - return getTermsOfServiceStatus(id, null); - } + /** + * Get Terms of Service information for a legal entity + * + * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link GetTermsOfServiceAcceptanceInfosResponse } + * @throws ApiException if fails to make API call + */ + public GetTermsOfServiceAcceptanceInfosResponse getTermsOfServiceInformationForLegalEntity(String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}/termsOfServiceAcceptanceInfos", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return GetTermsOfServiceAcceptanceInfosResponse.fromJson(jsonResult); + } - /** - * Get Terms of Service status - * - * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, - * this is the individual legal entity ID of the owner. For organizations, this is the ID of - * the organization. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link CalculateTermsOfServiceStatusResponse } - * @throws ApiException if fails to make API call - */ - public CalculateTermsOfServiceStatusResponse getTermsOfServiceStatus( - String id, RequestOptions requestOptions) throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + /** + * Get Terms of Service status + * + * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization. (required) + * @return {@link CalculateTermsOfServiceStatusResponse } + * @throws ApiException if fails to make API call + */ + public CalculateTermsOfServiceStatusResponse getTermsOfServiceStatus(String id) throws ApiException, IOException { + return getTermsOfServiceStatus(id, null); } - pathParams.put("id", id); - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/legalEntities/{id}/termsOfServiceStatus", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return CalculateTermsOfServiceStatusResponse.fromJson(jsonResult); - } + /** + * Get Terms of Service status + * + * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link CalculateTermsOfServiceStatusResponse } + * @throws ApiException if fails to make API call + */ + public CalculateTermsOfServiceStatusResponse getTermsOfServiceStatus(String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}/termsOfServiceStatus", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return CalculateTermsOfServiceStatusResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/legalentitymanagement/TransferInstrumentsApi.java b/src/main/java/com/adyen/service/legalentitymanagement/TransferInstrumentsApi.java index 26ab79350..4ef11c340 100644 --- a/src/main/java/com/adyen/service/legalentitymanagement/TransferInstrumentsApi.java +++ b/src/main/java/com/adyen/service/legalentitymanagement/TransferInstrumentsApi.java @@ -2,7 +2,7 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,182 +14,164 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; +import com.adyen.model.legalentitymanagement.ServiceError; import com.adyen.model.legalentitymanagement.TransferInstrument; import com.adyen.model.legalentitymanagement.TransferInstrumentInfo; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class TransferInstrumentsApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * Transfer instruments constructor in {@link com.adyen.service.legalentitymanagement package}. - * - * @param client {@link Client } (required) - */ - public TransferInstrumentsApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://kyc-test.adyen.com/lem/v3"); - } - - /** - * Transfer instruments constructor in {@link com.adyen.service.legalentitymanagement package}. - * Please use this constructor only if you would like to pass along your own url for routing or - * testing purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public TransferInstrumentsApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Create a transfer instrument - * - * @param transferInstrumentInfo {@link TransferInstrumentInfo } (required) - * @return {@link TransferInstrument } - * @throws ApiException if fails to make API call - */ - public TransferInstrument createTransferInstrument(TransferInstrumentInfo transferInstrumentInfo) - throws ApiException, IOException { - return createTransferInstrument(transferInstrumentInfo, null); - } - - /** - * Create a transfer instrument - * - * @param transferInstrumentInfo {@link TransferInstrumentInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TransferInstrument } - * @throws ApiException if fails to make API call - */ - public TransferInstrument createTransferInstrument( - TransferInstrumentInfo transferInstrumentInfo, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = transferInstrumentInfo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/transferInstruments", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return TransferInstrument.fromJson(jsonResult); - } - - /** - * Delete a transfer instrument - * - * @param id {@link String } The unique identifier of the transfer instrument to be deleted. - * (required) - * @throws ApiException if fails to make API call - */ - public void deleteTransferInstrument(String id) throws ApiException, IOException { - deleteTransferInstrument(id, null); - } - - /** - * Delete a transfer instrument - * - * @param id {@link String } The unique identifier of the transfer instrument to be deleted. - * (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void deleteTransferInstrument(String id, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * Transfer instruments constructor in {@link com.adyen.service.legalentitymanagement package}. + * @param client {@link Client } (required) + */ + public TransferInstrumentsApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://kyc-test.adyen.com/lem/v3"); + } + + /** + * Transfer instruments constructor in {@link com.adyen.service.legalentitymanagement package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public TransferInstrumentsApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Create a transfer instrument + * + * @param transferInstrumentInfo {@link TransferInstrumentInfo } (required) + * @return {@link TransferInstrument } + * @throws ApiException if fails to make API call + */ + public TransferInstrument createTransferInstrument(TransferInstrumentInfo transferInstrumentInfo) throws ApiException, IOException { + return createTransferInstrument(transferInstrumentInfo, null); + } + + /** + * Create a transfer instrument + * + * @param transferInstrumentInfo {@link TransferInstrumentInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TransferInstrument } + * @throws ApiException if fails to make API call + */ + public TransferInstrument createTransferInstrument(TransferInstrumentInfo transferInstrumentInfo, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = transferInstrumentInfo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/transferInstruments", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return TransferInstrument.fromJson(jsonResult); + } + + /** + * Delete a transfer instrument + * + * @param id {@link String } The unique identifier of the transfer instrument to be deleted. (required) + * @throws ApiException if fails to make API call + */ + public void deleteTransferInstrument(String id) throws ApiException, IOException { + deleteTransferInstrument(id, null); } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/transferInstruments/{id}", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); - } - - /** - * Get a transfer instrument - * - * @param id {@link String } The unique identifier of the transfer instrument. (required) - * @return {@link TransferInstrument } - * @throws ApiException if fails to make API call - */ - public TransferInstrument getTransferInstrument(String id) throws ApiException, IOException { - return getTransferInstrument(id, null); - } - - /** - * Get a transfer instrument - * - * @param id {@link String } The unique identifier of the transfer instrument. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TransferInstrument } - * @throws ApiException if fails to make API call - */ - public TransferInstrument getTransferInstrument(String id, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + + /** + * Delete a transfer instrument + * + * @param id {@link String } The unique identifier of the transfer instrument to be deleted. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void deleteTransferInstrument(String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/transferInstruments/{id}", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); + } + + /** + * Get a transfer instrument + * + * @param id {@link String } The unique identifier of the transfer instrument. (required) + * @return {@link TransferInstrument } + * @throws ApiException if fails to make API call + */ + public TransferInstrument getTransferInstrument(String id) throws ApiException, IOException { + return getTransferInstrument(id, null); } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/transferInstruments/{id}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TransferInstrument.fromJson(jsonResult); - } - - /** - * Update a transfer instrument - * - * @param id {@link String } The unique identifier of the transfer instrument. (required) - * @param transferInstrumentInfo {@link TransferInstrumentInfo } (required) - * @return {@link TransferInstrument } - * @throws ApiException if fails to make API call - */ - public TransferInstrument updateTransferInstrument( - String id, TransferInstrumentInfo transferInstrumentInfo) throws ApiException, IOException { - return updateTransferInstrument(id, transferInstrumentInfo, null); - } - - /** - * Update a transfer instrument - * - * @param id {@link String } The unique identifier of the transfer instrument. (required) - * @param transferInstrumentInfo {@link TransferInstrumentInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TransferInstrument } - * @throws ApiException if fails to make API call - */ - public TransferInstrument updateTransferInstrument( - String id, TransferInstrumentInfo transferInstrumentInfo, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + + /** + * Get a transfer instrument + * + * @param id {@link String } The unique identifier of the transfer instrument. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TransferInstrument } + * @throws ApiException if fails to make API call + */ + public TransferInstrument getTransferInstrument(String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/transferInstruments/{id}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TransferInstrument.fromJson(jsonResult); + } + + /** + * Update a transfer instrument + * + * @param id {@link String } The unique identifier of the transfer instrument. (required) + * @param transferInstrumentInfo {@link TransferInstrumentInfo } (required) + * @return {@link TransferInstrument } + * @throws ApiException if fails to make API call + */ + public TransferInstrument updateTransferInstrument(String id, TransferInstrumentInfo transferInstrumentInfo) throws ApiException, IOException { + return updateTransferInstrument(id, transferInstrumentInfo, null); + } + + /** + * Update a transfer instrument + * + * @param id {@link String } The unique identifier of the transfer instrument. (required) + * @param transferInstrumentInfo {@link TransferInstrumentInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TransferInstrument } + * @throws ApiException if fails to make API call + */ + public TransferInstrument updateTransferInstrument(String id, TransferInstrumentInfo transferInstrumentInfo, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = transferInstrumentInfo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/transferInstruments/{id}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return TransferInstrument.fromJson(jsonResult); } - pathParams.put("id", id); - - String requestBody = transferInstrumentInfo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/transferInstruments/{id}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return TransferInstrument.fromJson(jsonResult); - } } diff --git a/src/main/java/com/adyen/service/management/AccountCompanyLevelApi.java b/src/main/java/com/adyen/service/management/AccountCompanyLevelApi.java index 116e8c62c..8379a9d7b 100644 --- a/src/main/java/com/adyen/service/management/AccountCompanyLevelApi.java +++ b/src/main/java/com/adyen/service/management/AccountCompanyLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,170 +14,153 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.management.Company; import com.adyen.model.management.ListCompanyResponse; import com.adyen.model.management.ListMerchantResponse; +import com.adyen.model.management.RestServiceError; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class AccountCompanyLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * Account - company level constructor in {@link com.adyen.service.management package}. - * - * @param client {@link Client } (required) - */ - public AccountCompanyLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } - - /** - * Account - company level constructor in {@link com.adyen.service.management package}. Please use - * this constructor only if you would like to pass along your own url for routing or testing - * purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public AccountCompanyLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Get a company account - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @return {@link Company } - * @throws ApiException if fails to make API call - */ - public Company getCompanyAccount(String companyId) throws ApiException, IOException { - return getCompanyAccount(companyId, null); - } - - /** - * Get a company account - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link Company } - * @throws ApiException if fails to make API call - */ - public Company getCompanyAccount(String companyId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * Account - company level constructor in {@link com.adyen.service.management package}. + * @param client {@link Client } (required) + */ + public AccountCompanyLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); } - pathParams.put("companyId", companyId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return Company.fromJson(jsonResult); - } - - /** - * Get a list of company accounts - * - * @return {@link ListCompanyResponse } - * @throws ApiException if fails to make API call - */ - public ListCompanyResponse listCompanyAccounts() throws ApiException, IOException { - return listCompanyAccounts(null, null, null); - } - - /** - * Get a list of company accounts - * - * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The - * default is 10 items on a page. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ListCompanyResponse } - * @throws ApiException if fails to make API call - */ - public ListCompanyResponse listCompanyAccounts( - Integer pageNumber, Integer pageSize, RequestOptions requestOptions) - throws ApiException, IOException { - // Add query params - Map queryParams = new HashMap<>(); - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); + + /** + * Account - company level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public AccountCompanyLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Get a company account + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @return {@link Company } + * @throws ApiException if fails to make API call + */ + public Company getCompanyAccount(String companyId) throws ApiException, IOException { + return getCompanyAccount(companyId, null); } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); + + /** + * Get a company account + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link Company } + * @throws ApiException if fails to make API call + */ + public Company getCompanyAccount(String companyId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return Company.fromJson(jsonResult); } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); - return ListCompanyResponse.fromJson(jsonResult); - } - - /** - * Get a list of merchant accounts - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @return {@link ListMerchantResponse } - * @throws ApiException if fails to make API call - */ - public ListMerchantResponse listMerchantAccounts(String companyId) - throws ApiException, IOException { - return listMerchantAccounts(companyId, null, null, null); - } - - /** - * Get a list of merchant accounts - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The - * default is 10 items on a page. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ListMerchantResponse } - * @throws ApiException if fails to make API call - */ - public ListMerchantResponse listMerchantAccounts( - String companyId, Integer pageNumber, Integer pageSize, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + /** + * Get a list of company accounts + * + * @return {@link ListCompanyResponse } + * @throws ApiException if fails to make API call + */ + public ListCompanyResponse listCompanyAccounts() throws ApiException, IOException { + return listCompanyAccounts(null, null, null); } - pathParams.put("companyId", companyId); - // Add query params - Map queryParams = new HashMap<>(); - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); + /** + * Get a list of company accounts + * + * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The default is 10 items on a page. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ListCompanyResponse } + * @throws ApiException if fails to make API call + */ + public ListCompanyResponse listCompanyAccounts(Integer pageNumber, Integer pageSize, RequestOptions requestOptions) throws ApiException, IOException { + //Add query params + Map queryParams = new HashMap<>(); + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); + } + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); + return ListCompanyResponse.fromJson(jsonResult); } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); + + /** + * Get a list of merchant accounts + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @return {@link ListMerchantResponse } + * @throws ApiException if fails to make API call + */ + public ListMerchantResponse listMerchantAccounts(String companyId) throws ApiException, IOException { + return listMerchantAccounts(companyId, null, null, null); } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/merchants", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return ListMerchantResponse.fromJson(jsonResult); - } + /** + * Get a list of merchant accounts + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The default is 10 items on a page. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ListMerchantResponse } + * @throws ApiException if fails to make API call + */ + public ListMerchantResponse listMerchantAccounts(String companyId, Integer pageNumber, Integer pageSize, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + + //Add query params + Map queryParams = new HashMap<>(); + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); + } + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/merchants", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return ListMerchantResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/AccountMerchantLevelApi.java b/src/main/java/com/adyen/service/management/AccountMerchantLevelApi.java index 758098446..84648afdf 100644 --- a/src/main/java/com/adyen/service/management/AccountMerchantLevelApi.java +++ b/src/main/java/com/adyen/service/management/AccountMerchantLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,189 +14,170 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.management.CreateMerchantRequest; import com.adyen.model.management.CreateMerchantResponse; import com.adyen.model.management.ListMerchantResponse; import com.adyen.model.management.Merchant; import com.adyen.model.management.RequestActivationResponse; +import com.adyen.model.management.RestServiceError; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class AccountMerchantLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * Account - merchant level constructor in {@link com.adyen.service.management package}. - * - * @param client {@link Client } (required) - */ - public AccountMerchantLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } - - /** - * Account - merchant level constructor in {@link com.adyen.service.management package}. Please - * use this constructor only if you would like to pass along your own url for routing or testing - * purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public AccountMerchantLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Create a merchant account - * - * @param createMerchantRequest {@link CreateMerchantRequest } (required) - * @return {@link CreateMerchantResponse } - * @throws ApiException if fails to make API call - */ - public CreateMerchantResponse createMerchantAccount(CreateMerchantRequest createMerchantRequest) - throws ApiException, IOException { - return createMerchantAccount(createMerchantRequest, null); - } - - /** - * Create a merchant account - * - * @param createMerchantRequest {@link CreateMerchantRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link CreateMerchantResponse } - * @throws ApiException if fails to make API call - */ - public CreateMerchantResponse createMerchantAccount( - CreateMerchantRequest createMerchantRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = createMerchantRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return CreateMerchantResponse.fromJson(jsonResult); - } - - /** - * Get a merchant account - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @return {@link Merchant } - * @throws ApiException if fails to make API call - */ - public Merchant getMerchantAccount(String merchantId) throws ApiException, IOException { - return getMerchantAccount(merchantId, null); - } - - /** - * Get a merchant account - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link Merchant } - * @throws ApiException if fails to make API call - */ - public Merchant getMerchantAccount(String merchantId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * Account - merchant level constructor in {@link com.adyen.service.management package}. + * @param client {@link Client } (required) + */ + public AccountMerchantLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } + + /** + * Account - merchant level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public AccountMerchantLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Create a merchant account + * + * @param createMerchantRequest {@link CreateMerchantRequest } (required) + * @return {@link CreateMerchantResponse } + * @throws ApiException if fails to make API call + */ + public CreateMerchantResponse createMerchantAccount(CreateMerchantRequest createMerchantRequest) throws ApiException, IOException { + return createMerchantAccount(createMerchantRequest, null); } - pathParams.put("merchantId", merchantId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return Merchant.fromJson(jsonResult); - } - - /** - * Get a list of merchant accounts - * - * @return {@link ListMerchantResponse } - * @throws ApiException if fails to make API call - */ - public ListMerchantResponse listMerchantAccounts() throws ApiException, IOException { - return listMerchantAccounts(null, null, null); - } - - /** - * Get a list of merchant accounts - * - * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The - * default is 10 items on a page. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ListMerchantResponse } - * @throws ApiException if fails to make API call - */ - public ListMerchantResponse listMerchantAccounts( - Integer pageNumber, Integer pageSize, RequestOptions requestOptions) - throws ApiException, IOException { - // Add query params - Map queryParams = new HashMap<>(); - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); + + /** + * Create a merchant account + * + * @param createMerchantRequest {@link CreateMerchantRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link CreateMerchantResponse } + * @throws ApiException if fails to make API call + */ + public CreateMerchantResponse createMerchantAccount(CreateMerchantRequest createMerchantRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = createMerchantRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return CreateMerchantResponse.fromJson(jsonResult); + } + + /** + * Get a merchant account + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @return {@link Merchant } + * @throws ApiException if fails to make API call + */ + public Merchant getMerchantAccount(String merchantId) throws ApiException, IOException { + return getMerchantAccount(merchantId, null); + } + + /** + * Get a merchant account + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link Merchant } + * @throws ApiException if fails to make API call + */ + public Merchant getMerchantAccount(String merchantId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return Merchant.fromJson(jsonResult); } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); + + /** + * Get a list of merchant accounts + * + * @return {@link ListMerchantResponse } + * @throws ApiException if fails to make API call + */ + public ListMerchantResponse listMerchantAccounts() throws ApiException, IOException { + return listMerchantAccounts(null, null, null); + } + + /** + * Get a list of merchant accounts + * + * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The default is 10 items on a page. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ListMerchantResponse } + * @throws ApiException if fails to make API call + */ + public ListMerchantResponse listMerchantAccounts(Integer pageNumber, Integer pageSize, RequestOptions requestOptions) throws ApiException, IOException { + //Add query params + Map queryParams = new HashMap<>(); + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); + } + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); + return ListMerchantResponse.fromJson(jsonResult); + } + + /** + * Request to activate a merchant account + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @return {@link RequestActivationResponse } + * @throws ApiException if fails to make API call + */ + public RequestActivationResponse requestToActivateMerchantAccount(String merchantId) throws ApiException, IOException { + return requestToActivateMerchantAccount(merchantId, null); } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); - return ListMerchantResponse.fromJson(jsonResult); - } - - /** - * Request to activate a merchant account - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @return {@link RequestActivationResponse } - * @throws ApiException if fails to make API call - */ - public RequestActivationResponse requestToActivateMerchantAccount(String merchantId) - throws ApiException, IOException { - return requestToActivateMerchantAccount(merchantId, null); - } - - /** - * Request to activate a merchant account - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link RequestActivationResponse } - * @throws ApiException if fails to make API call - */ - public RequestActivationResponse requestToActivateMerchantAccount( - String merchantId, RequestOptions requestOptions) throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + /** + * Request to activate a merchant account + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link RequestActivationResponse } + * @throws ApiException if fails to make API call + */ + public RequestActivationResponse requestToActivateMerchantAccount(String merchantId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/activate", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return RequestActivationResponse.fromJson(jsonResult); } - pathParams.put("merchantId", merchantId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/activate", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return RequestActivationResponse.fromJson(jsonResult); - } } diff --git a/src/main/java/com/adyen/service/management/AccountStoreLevelApi.java b/src/main/java/com/adyen/service/management/AccountStoreLevelApi.java index 6b32bcc40..73e2de199 100644 --- a/src/main/java/com/adyen/service/management/AccountStoreLevelApi.java +++ b/src/main/java/com/adyen/service/management/AccountStoreLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,401 +14,343 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.management.ListStoresResponse; +import com.adyen.model.management.RestServiceError; import com.adyen.model.management.Store; import com.adyen.model.management.StoreCreationRequest; import com.adyen.model.management.StoreCreationWithMerchantCodeRequest; import com.adyen.model.management.UpdateStoreRequest; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class AccountStoreLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * Account - store level constructor in {@link com.adyen.service.management package}. - * - * @param client {@link Client } (required) - */ - public AccountStoreLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } - - /** - * Account - store level constructor in {@link com.adyen.service.management package}. Please use - * this constructor only if you would like to pass along your own url for routing or testing - * purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public AccountStoreLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Create a store - * - * @param storeCreationWithMerchantCodeRequest {@link StoreCreationWithMerchantCodeRequest } - * (required) - * @return {@link Store } - * @throws ApiException if fails to make API call - */ - public Store createStore( - StoreCreationWithMerchantCodeRequest storeCreationWithMerchantCodeRequest) - throws ApiException, IOException { - return createStore(storeCreationWithMerchantCodeRequest, null); - } - - /** - * Create a store - * - * @param storeCreationWithMerchantCodeRequest {@link StoreCreationWithMerchantCodeRequest } - * (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link Store } - * @throws ApiException if fails to make API call - */ - public Store createStore( - StoreCreationWithMerchantCodeRequest storeCreationWithMerchantCodeRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = storeCreationWithMerchantCodeRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/stores", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return Store.fromJson(jsonResult); - } - - /** - * Create a store - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param storeCreationRequest {@link StoreCreationRequest } (required) - * @return {@link Store } - * @throws ApiException if fails to make API call - */ - public Store createStoreByMerchantId(String merchantId, StoreCreationRequest storeCreationRequest) - throws ApiException, IOException { - return createStoreByMerchantId(merchantId, storeCreationRequest, null); - } - - /** - * Create a store - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param storeCreationRequest {@link StoreCreationRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link Store } - * @throws ApiException if fails to make API call - */ - public Store createStoreByMerchantId( - String merchantId, StoreCreationRequest storeCreationRequest, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * Account - store level constructor in {@link com.adyen.service.management package}. + * @param client {@link Client } (required) + */ + public AccountStoreLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); } - pathParams.put("merchantId", merchantId); - - String requestBody = storeCreationRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/stores", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return Store.fromJson(jsonResult); - } - - /** - * Get a store - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param storeId {@link String } The unique identifier of the store. (required) - * @return {@link Store } - * @throws ApiException if fails to make API call - */ - public Store getStore(String merchantId, String storeId) throws ApiException, IOException { - return getStore(merchantId, storeId, null); - } - - /** - * Get a store - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param storeId {@link String } The unique identifier of the store. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link Store } - * @throws ApiException if fails to make API call - */ - public Store getStore(String merchantId, String storeId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + + /** + * Account - store level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public AccountStoreLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - pathParams.put("merchantId", merchantId); - if (storeId == null) { - throw new IllegalArgumentException("Please provide the storeId path parameter"); + + /** + * Create a store + * + * @param storeCreationWithMerchantCodeRequest {@link StoreCreationWithMerchantCodeRequest } (required) + * @return {@link Store } + * @throws ApiException if fails to make API call + */ + public Store createStore(StoreCreationWithMerchantCodeRequest storeCreationWithMerchantCodeRequest) throws ApiException, IOException { + return createStore(storeCreationWithMerchantCodeRequest, null); } - pathParams.put("storeId", storeId); - - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/merchants/{merchantId}/stores/{storeId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return Store.fromJson(jsonResult); - } - - /** - * Get a store - * - * @param storeId {@link String } The unique identifier of the store. (required) - * @return {@link Store } - * @throws ApiException if fails to make API call - */ - public Store getStoreById(String storeId) throws ApiException, IOException { - return getStoreById(storeId, null); - } - - /** - * Get a store - * - * @param storeId {@link String } The unique identifier of the store. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link Store } - * @throws ApiException if fails to make API call - */ - public Store getStoreById(String storeId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (storeId == null) { - throw new IllegalArgumentException("Please provide the storeId path parameter"); + + /** + * Create a store + * + * @param storeCreationWithMerchantCodeRequest {@link StoreCreationWithMerchantCodeRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link Store } + * @throws ApiException if fails to make API call + */ + public Store createStore(StoreCreationWithMerchantCodeRequest storeCreationWithMerchantCodeRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = storeCreationWithMerchantCodeRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/stores", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return Store.fromJson(jsonResult); } - pathParams.put("storeId", storeId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/stores/{storeId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return Store.fromJson(jsonResult); - } - - /** - * Get a list of stores - * - * @return {@link ListStoresResponse } - * @throws ApiException if fails to make API call - */ - public ListStoresResponse listStores() throws ApiException, IOException { - return listStores(null, null, null, null, null); - } - - /** - * Get a list of stores - * - * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The - * default is 10 items on a page. (optional) - * @param reference {@link String } Query: The reference of the store. (optional) - * @param merchantId {@link String } Query: The unique identifier of the merchant account. - * (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ListStoresResponse } - * @throws ApiException if fails to make API call - */ - public ListStoresResponse listStores( - Integer pageNumber, - Integer pageSize, - String reference, - String merchantId, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add query params - Map queryParams = new HashMap<>(); - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); + + /** + * Create a store + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param storeCreationRequest {@link StoreCreationRequest } (required) + * @return {@link Store } + * @throws ApiException if fails to make API call + */ + public Store createStoreByMerchantId(String merchantId, StoreCreationRequest storeCreationRequest) throws ApiException, IOException { + return createStoreByMerchantId(merchantId, storeCreationRequest, null); } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); + + /** + * Create a store + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param storeCreationRequest {@link StoreCreationRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link Store } + * @throws ApiException if fails to make API call + */ + public Store createStoreByMerchantId(String merchantId, StoreCreationRequest storeCreationRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + + String requestBody = storeCreationRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/stores", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return Store.fromJson(jsonResult); } - if (reference != null) { - queryParams.put("reference", reference); + + /** + * Get a store + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param storeId {@link String } The unique identifier of the store. (required) + * @return {@link Store } + * @throws ApiException if fails to make API call + */ + public Store getStore(String merchantId, String storeId) throws ApiException, IOException { + return getStore(merchantId, storeId, null); } - if (merchantId != null) { - queryParams.put("merchantId", merchantId); + + /** + * Get a store + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param storeId {@link String } The unique identifier of the store. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link Store } + * @throws ApiException if fails to make API call + */ + public Store getStore(String merchantId, String storeId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (storeId == null) { + throw new IllegalArgumentException("Please provide the storeId path parameter"); + } + pathParams.put("storeId", storeId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/stores/{storeId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return Store.fromJson(jsonResult); } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/stores", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); - return ListStoresResponse.fromJson(jsonResult); - } - - /** - * Get a list of stores - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @return {@link ListStoresResponse } - * @throws ApiException if fails to make API call - */ - public ListStoresResponse listStoresByMerchantId(String merchantId) - throws ApiException, IOException { - return listStoresByMerchantId(merchantId, null, null, null, null); - } - - /** - * Get a list of stores - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The - * default is 10 items on a page. (optional) - * @param reference {@link String } Query: The reference of the store. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ListStoresResponse } - * @throws ApiException if fails to make API call - */ - public ListStoresResponse listStoresByMerchantId( - String merchantId, - Integer pageNumber, - Integer pageSize, - String reference, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + /** + * Get a store + * + * @param storeId {@link String } The unique identifier of the store. (required) + * @return {@link Store } + * @throws ApiException if fails to make API call + */ + public Store getStoreById(String storeId) throws ApiException, IOException { + return getStoreById(storeId, null); } - pathParams.put("merchantId", merchantId); - // Add query params - Map queryParams = new HashMap<>(); - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); + /** + * Get a store + * + * @param storeId {@link String } The unique identifier of the store. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link Store } + * @throws ApiException if fails to make API call + */ + public Store getStoreById(String storeId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (storeId == null) { + throw new IllegalArgumentException("Please provide the storeId path parameter"); + } + pathParams.put("storeId", storeId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/stores/{storeId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return Store.fromJson(jsonResult); } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); + + /** + * Get a list of stores + * + * @return {@link ListStoresResponse } + * @throws ApiException if fails to make API call + */ + public ListStoresResponse listStores() throws ApiException, IOException { + return listStores(null, null, null, null, null); + } + + /** + * Get a list of stores + * + * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The default is 10 items on a page. (optional) + * @param reference {@link String } Query: The reference of the store. (optional) + * @param merchantId {@link String } Query: The unique identifier of the merchant account. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ListStoresResponse } + * @throws ApiException if fails to make API call + */ + public ListStoresResponse listStores(Integer pageNumber, Integer pageSize, String reference, String merchantId, RequestOptions requestOptions) throws ApiException, IOException { + //Add query params + Map queryParams = new HashMap<>(); + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); + } + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); + } + if (reference != null) { + queryParams.put("reference", reference); + } + if (merchantId != null) { + queryParams.put("merchantId", merchantId); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/stores", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); + return ListStoresResponse.fromJson(jsonResult); } - if (reference != null) { - queryParams.put("reference", reference); + + /** + * Get a list of stores + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @return {@link ListStoresResponse } + * @throws ApiException if fails to make API call + */ + public ListStoresResponse listStoresByMerchantId(String merchantId) throws ApiException, IOException { + return listStoresByMerchantId(merchantId, null, null, null, null); } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/stores", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return ListStoresResponse.fromJson(jsonResult); - } - - /** - * Update a store - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param storeId {@link String } The unique identifier of the store. (required) - * @param updateStoreRequest {@link UpdateStoreRequest } (required) - * @return {@link Store } - * @throws ApiException if fails to make API call - */ - public Store updateStore(String merchantId, String storeId, UpdateStoreRequest updateStoreRequest) - throws ApiException, IOException { - return updateStore(merchantId, storeId, updateStoreRequest, null); - } - - /** - * Update a store - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param storeId {@link String } The unique identifier of the store. (required) - * @param updateStoreRequest {@link UpdateStoreRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link Store } - * @throws ApiException if fails to make API call - */ - public Store updateStore( - String merchantId, - String storeId, - UpdateStoreRequest updateStoreRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + /** + * Get a list of stores + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The default is 10 items on a page. (optional) + * @param reference {@link String } Query: The reference of the store. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ListStoresResponse } + * @throws ApiException if fails to make API call + */ + public ListStoresResponse listStoresByMerchantId(String merchantId, Integer pageNumber, Integer pageSize, String reference, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + + //Add query params + Map queryParams = new HashMap<>(); + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); + } + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); + } + if (reference != null) { + queryParams.put("reference", reference); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/stores", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return ListStoresResponse.fromJson(jsonResult); } - pathParams.put("merchantId", merchantId); - if (storeId == null) { - throw new IllegalArgumentException("Please provide the storeId path parameter"); + + /** + * Update a store + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param storeId {@link String } The unique identifier of the store. (required) + * @param updateStoreRequest {@link UpdateStoreRequest } (required) + * @return {@link Store } + * @throws ApiException if fails to make API call + */ + public Store updateStore(String merchantId, String storeId, UpdateStoreRequest updateStoreRequest) throws ApiException, IOException { + return updateStore(merchantId, storeId, updateStoreRequest, null); } - pathParams.put("storeId", storeId); - - String requestBody = updateStoreRequest.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/merchants/{merchantId}/stores/{storeId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return Store.fromJson(jsonResult); - } - - /** - * Update a store - * - * @param storeId {@link String } The unique identifier of the store. (required) - * @param updateStoreRequest {@link UpdateStoreRequest } (required) - * @return {@link Store } - * @throws ApiException if fails to make API call - */ - public Store updateStoreById(String storeId, UpdateStoreRequest updateStoreRequest) - throws ApiException, IOException { - return updateStoreById(storeId, updateStoreRequest, null); - } - - /** - * Update a store - * - * @param storeId {@link String } The unique identifier of the store. (required) - * @param updateStoreRequest {@link UpdateStoreRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link Store } - * @throws ApiException if fails to make API call - */ - public Store updateStoreById( - String storeId, UpdateStoreRequest updateStoreRequest, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (storeId == null) { - throw new IllegalArgumentException("Please provide the storeId path parameter"); + + /** + * Update a store + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param storeId {@link String } The unique identifier of the store. (required) + * @param updateStoreRequest {@link UpdateStoreRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link Store } + * @throws ApiException if fails to make API call + */ + public Store updateStore(String merchantId, String storeId, UpdateStoreRequest updateStoreRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (storeId == null) { + throw new IllegalArgumentException("Please provide the storeId path parameter"); + } + pathParams.put("storeId", storeId); + + String requestBody = updateStoreRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/stores/{storeId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return Store.fromJson(jsonResult); + } + + /** + * Update a store + * + * @param storeId {@link String } The unique identifier of the store. (required) + * @param updateStoreRequest {@link UpdateStoreRequest } (required) + * @return {@link Store } + * @throws ApiException if fails to make API call + */ + public Store updateStoreById(String storeId, UpdateStoreRequest updateStoreRequest) throws ApiException, IOException { + return updateStoreById(storeId, updateStoreRequest, null); + } + + /** + * Update a store + * + * @param storeId {@link String } The unique identifier of the store. (required) + * @param updateStoreRequest {@link UpdateStoreRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link Store } + * @throws ApiException if fails to make API call + */ + public Store updateStoreById(String storeId, UpdateStoreRequest updateStoreRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (storeId == null) { + throw new IllegalArgumentException("Please provide the storeId path parameter"); + } + pathParams.put("storeId", storeId); + + String requestBody = updateStoreRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/stores/{storeId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return Store.fromJson(jsonResult); } - pathParams.put("storeId", storeId); - - String requestBody = updateStoreRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/stores/{storeId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return Store.fromJson(jsonResult); - } } diff --git a/src/main/java/com/adyen/service/management/AllowedOriginsCompanyLevelApi.java b/src/main/java/com/adyen/service/management/AllowedOriginsCompanyLevelApi.java index 6178ff1b6..94bd3a336 100644 --- a/src/main/java/com/adyen/service/management/AllowedOriginsCompanyLevelApi.java +++ b/src/main/java/com/adyen/service/management/AllowedOriginsCompanyLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,249 +14,207 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.management.AllowedOrigin; import com.adyen.model.management.AllowedOriginsResponse; +import com.adyen.model.management.RestServiceError; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class AllowedOriginsCompanyLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; + public static final String API_VERSION = "3"; - /** - * Allowed origins - company level constructor in {@link com.adyen.service.management package}. - * - * @param client {@link Client } (required) - */ - public AllowedOriginsCompanyLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } + protected String baseURL; - /** - * Allowed origins - company level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or - * testing purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public AllowedOriginsCompanyLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Create an allowed origin - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param allowedOrigin {@link AllowedOrigin } (required) - * @return {@link AllowedOrigin } - * @throws ApiException if fails to make API call - */ - public AllowedOrigin createAllowedOrigin( - String companyId, String apiCredentialId, AllowedOrigin allowedOrigin) - throws ApiException, IOException { - return createAllowedOrigin(companyId, apiCredentialId, allowedOrigin, null); - } - - /** - * Create an allowed origin - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param allowedOrigin {@link AllowedOrigin } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link AllowedOrigin } - * @throws ApiException if fails to make API call - */ - public AllowedOrigin createAllowedOrigin( - String companyId, - String apiCredentialId, - AllowedOrigin allowedOrigin, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - if (apiCredentialId == null) { - throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + /** + * Allowed origins - company level constructor in {@link com.adyen.service.management package}. + * @param client {@link Client } (required) + */ + public AllowedOriginsCompanyLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); } - pathParams.put("apiCredentialId", apiCredentialId); - - String requestBody = allowedOrigin.toJson(); - Resource resource = - new Resource( - this, - this.baseURL + "/companies/{companyId}/apiCredentials/{apiCredentialId}/allowedOrigins", - null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return AllowedOrigin.fromJson(jsonResult); - } - - /** - * Delete an allowed origin - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param originId {@link String } Unique identifier of the allowed origin. (required) - * @throws ApiException if fails to make API call - */ - public void deleteAllowedOrigin(String companyId, String apiCredentialId, String originId) - throws ApiException, IOException { - deleteAllowedOrigin(companyId, apiCredentialId, originId, null); - } - /** - * Delete an allowed origin - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param originId {@link String } Unique identifier of the allowed origin. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void deleteAllowedOrigin( - String companyId, String apiCredentialId, String originId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + /** + * Allowed origins - company level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public AllowedOriginsCompanyLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - pathParams.put("companyId", companyId); - if (apiCredentialId == null) { - throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); - } - pathParams.put("apiCredentialId", apiCredentialId); - if (originId == null) { - throw new IllegalArgumentException("Please provide the originId path parameter"); - } - pathParams.put("originId", originId); - - String requestBody = null; - Resource resource = - new Resource( - this, - this.baseURL - + "/companies/{companyId}/apiCredentials/{apiCredentialId}/allowedOrigins/{originId}", - null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); - } - /** - * Get an allowed origin - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param originId {@link String } Unique identifier of the allowed origin. (required) - * @return {@link AllowedOrigin } - * @throws ApiException if fails to make API call - */ - public AllowedOrigin getAllowedOrigin(String companyId, String apiCredentialId, String originId) - throws ApiException, IOException { - return getAllowedOrigin(companyId, apiCredentialId, originId, null); - } - - /** - * Get an allowed origin - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param originId {@link String } Unique identifier of the allowed origin. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link AllowedOrigin } - * @throws ApiException if fails to make API call - */ - public AllowedOrigin getAllowedOrigin( - String companyId, String apiCredentialId, String originId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + /** + * Create an allowed origin + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param allowedOrigin {@link AllowedOrigin } (required) + * @return {@link AllowedOrigin } + * @throws ApiException if fails to make API call + */ + public AllowedOrigin createAllowedOrigin(String companyId, String apiCredentialId, AllowedOrigin allowedOrigin) throws ApiException, IOException { + return createAllowedOrigin(companyId, apiCredentialId, allowedOrigin, null); } - pathParams.put("companyId", companyId); - if (apiCredentialId == null) { - throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + + /** + * Create an allowed origin + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param allowedOrigin {@link AllowedOrigin } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link AllowedOrigin } + * @throws ApiException if fails to make API call + */ + public AllowedOrigin createAllowedOrigin(String companyId, String apiCredentialId, AllowedOrigin allowedOrigin, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + if (apiCredentialId == null) { + throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + } + pathParams.put("apiCredentialId", apiCredentialId); + + String requestBody = allowedOrigin.toJson(); + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/apiCredentials/{apiCredentialId}/allowedOrigins", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return AllowedOrigin.fromJson(jsonResult); } - pathParams.put("apiCredentialId", apiCredentialId); - if (originId == null) { - throw new IllegalArgumentException("Please provide the originId path parameter"); + + /** + * Delete an allowed origin + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param originId {@link String } Unique identifier of the allowed origin. (required) + * @throws ApiException if fails to make API call + */ + public void deleteAllowedOrigin(String companyId, String apiCredentialId, String originId) throws ApiException, IOException { + deleteAllowedOrigin(companyId, apiCredentialId, originId, null); } - pathParams.put("originId", originId); - String requestBody = null; - Resource resource = - new Resource( - this, - this.baseURL - + "/companies/{companyId}/apiCredentials/{apiCredentialId}/allowedOrigins/{originId}", - null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return AllowedOrigin.fromJson(jsonResult); - } + /** + * Delete an allowed origin + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param originId {@link String } Unique identifier of the allowed origin. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void deleteAllowedOrigin(String companyId, String apiCredentialId, String originId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + if (apiCredentialId == null) { + throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + } + pathParams.put("apiCredentialId", apiCredentialId); + if (originId == null) { + throw new IllegalArgumentException("Please provide the originId path parameter"); + } + pathParams.put("originId", originId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/apiCredentials/{apiCredentialId}/allowedOrigins/{originId}", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); + } - /** - * Get a list of allowed origins - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @return {@link AllowedOriginsResponse } - * @throws ApiException if fails to make API call - */ - public AllowedOriginsResponse listAllowedOrigins(String companyId, String apiCredentialId) - throws ApiException, IOException { - return listAllowedOrigins(companyId, apiCredentialId, null); - } + /** + * Get an allowed origin + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param originId {@link String } Unique identifier of the allowed origin. (required) + * @return {@link AllowedOrigin } + * @throws ApiException if fails to make API call + */ + public AllowedOrigin getAllowedOrigin(String companyId, String apiCredentialId, String originId) throws ApiException, IOException { + return getAllowedOrigin(companyId, apiCredentialId, originId, null); + } - /** - * Get a list of allowed origins - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link AllowedOriginsResponse } - * @throws ApiException if fails to make API call - */ - public AllowedOriginsResponse listAllowedOrigins( - String companyId, String apiCredentialId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + /** + * Get an allowed origin + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param originId {@link String } Unique identifier of the allowed origin. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link AllowedOrigin } + * @throws ApiException if fails to make API call + */ + public AllowedOrigin getAllowedOrigin(String companyId, String apiCredentialId, String originId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + if (apiCredentialId == null) { + throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + } + pathParams.put("apiCredentialId", apiCredentialId); + if (originId == null) { + throw new IllegalArgumentException("Please provide the originId path parameter"); + } + pathParams.put("originId", originId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/apiCredentials/{apiCredentialId}/allowedOrigins/{originId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return AllowedOrigin.fromJson(jsonResult); } - pathParams.put("companyId", companyId); - if (apiCredentialId == null) { - throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + + /** + * Get a list of allowed origins + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @return {@link AllowedOriginsResponse } + * @throws ApiException if fails to make API call + */ + public AllowedOriginsResponse listAllowedOrigins(String companyId, String apiCredentialId) throws ApiException, IOException { + return listAllowedOrigins(companyId, apiCredentialId, null); } - pathParams.put("apiCredentialId", apiCredentialId); - String requestBody = null; - Resource resource = - new Resource( - this, - this.baseURL + "/companies/{companyId}/apiCredentials/{apiCredentialId}/allowedOrigins", - null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return AllowedOriginsResponse.fromJson(jsonResult); - } + /** + * Get a list of allowed origins + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link AllowedOriginsResponse } + * @throws ApiException if fails to make API call + */ + public AllowedOriginsResponse listAllowedOrigins(String companyId, String apiCredentialId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + if (apiCredentialId == null) { + throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + } + pathParams.put("apiCredentialId", apiCredentialId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/apiCredentials/{apiCredentialId}/allowedOrigins", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return AllowedOriginsResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/AllowedOriginsMerchantLevelApi.java b/src/main/java/com/adyen/service/management/AllowedOriginsMerchantLevelApi.java index 70bd9fe7e..72d863e32 100644 --- a/src/main/java/com/adyen/service/management/AllowedOriginsMerchantLevelApi.java +++ b/src/main/java/com/adyen/service/management/AllowedOriginsMerchantLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,251 +14,207 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.management.AllowedOrigin; import com.adyen.model.management.AllowedOriginsResponse; +import com.adyen.model.management.RestServiceError; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class AllowedOriginsMerchantLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; + public static final String API_VERSION = "3"; - /** - * Allowed origins - merchant level constructor in {@link com.adyen.service.management package}. - * - * @param client {@link Client } (required) - */ - public AllowedOriginsMerchantLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } + protected String baseURL; - /** - * Allowed origins - merchant level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or - * testing purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public AllowedOriginsMerchantLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Create an allowed origin - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param allowedOrigin {@link AllowedOrigin } (required) - * @return {@link AllowedOrigin } - * @throws ApiException if fails to make API call - */ - public AllowedOrigin createAllowedOrigin( - String merchantId, String apiCredentialId, AllowedOrigin allowedOrigin) - throws ApiException, IOException { - return createAllowedOrigin(merchantId, apiCredentialId, allowedOrigin, null); - } - - /** - * Create an allowed origin - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param allowedOrigin {@link AllowedOrigin } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link AllowedOrigin } - * @throws ApiException if fails to make API call - */ - public AllowedOrigin createAllowedOrigin( - String merchantId, - String apiCredentialId, - AllowedOrigin allowedOrigin, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (apiCredentialId == null) { - throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + /** + * Allowed origins - merchant level constructor in {@link com.adyen.service.management package}. + * @param client {@link Client } (required) + */ + public AllowedOriginsMerchantLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); } - pathParams.put("apiCredentialId", apiCredentialId); - - String requestBody = allowedOrigin.toJson(); - Resource resource = - new Resource( - this, - this.baseURL - + "/merchants/{merchantId}/apiCredentials/{apiCredentialId}/allowedOrigins", - null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return AllowedOrigin.fromJson(jsonResult); - } - - /** - * Delete an allowed origin - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param originId {@link String } Unique identifier of the allowed origin. (required) - * @throws ApiException if fails to make API call - */ - public void deleteAllowedOrigin(String merchantId, String apiCredentialId, String originId) - throws ApiException, IOException { - deleteAllowedOrigin(merchantId, apiCredentialId, originId, null); - } - /** - * Delete an allowed origin - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param originId {@link String } Unique identifier of the allowed origin. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void deleteAllowedOrigin( - String merchantId, String apiCredentialId, String originId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + /** + * Allowed origins - merchant level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public AllowedOriginsMerchantLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - pathParams.put("merchantId", merchantId); - if (apiCredentialId == null) { - throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); - } - pathParams.put("apiCredentialId", apiCredentialId); - if (originId == null) { - throw new IllegalArgumentException("Please provide the originId path parameter"); - } - pathParams.put("originId", originId); - - String requestBody = null; - Resource resource = - new Resource( - this, - this.baseURL - + "/merchants/{merchantId}/apiCredentials/{apiCredentialId}/allowedOrigins/{originId}", - null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); - } - /** - * Get an allowed origin - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param originId {@link String } Unique identifier of the allowed origin. (required) - * @return {@link AllowedOrigin } - * @throws ApiException if fails to make API call - */ - public AllowedOrigin getAllowedOrigin(String merchantId, String apiCredentialId, String originId) - throws ApiException, IOException { - return getAllowedOrigin(merchantId, apiCredentialId, originId, null); - } - - /** - * Get an allowed origin - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param originId {@link String } Unique identifier of the allowed origin. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link AllowedOrigin } - * @throws ApiException if fails to make API call - */ - public AllowedOrigin getAllowedOrigin( - String merchantId, String apiCredentialId, String originId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + /** + * Create an allowed origin + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param allowedOrigin {@link AllowedOrigin } (required) + * @return {@link AllowedOrigin } + * @throws ApiException if fails to make API call + */ + public AllowedOrigin createAllowedOrigin(String merchantId, String apiCredentialId, AllowedOrigin allowedOrigin) throws ApiException, IOException { + return createAllowedOrigin(merchantId, apiCredentialId, allowedOrigin, null); } - pathParams.put("merchantId", merchantId); - if (apiCredentialId == null) { - throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + + /** + * Create an allowed origin + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param allowedOrigin {@link AllowedOrigin } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link AllowedOrigin } + * @throws ApiException if fails to make API call + */ + public AllowedOrigin createAllowedOrigin(String merchantId, String apiCredentialId, AllowedOrigin allowedOrigin, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (apiCredentialId == null) { + throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + } + pathParams.put("apiCredentialId", apiCredentialId); + + String requestBody = allowedOrigin.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/apiCredentials/{apiCredentialId}/allowedOrigins", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return AllowedOrigin.fromJson(jsonResult); } - pathParams.put("apiCredentialId", apiCredentialId); - if (originId == null) { - throw new IllegalArgumentException("Please provide the originId path parameter"); + + /** + * Delete an allowed origin + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param originId {@link String } Unique identifier of the allowed origin. (required) + * @throws ApiException if fails to make API call + */ + public void deleteAllowedOrigin(String merchantId, String apiCredentialId, String originId) throws ApiException, IOException { + deleteAllowedOrigin(merchantId, apiCredentialId, originId, null); } - pathParams.put("originId", originId); - String requestBody = null; - Resource resource = - new Resource( - this, - this.baseURL - + "/merchants/{merchantId}/apiCredentials/{apiCredentialId}/allowedOrigins/{originId}", - null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return AllowedOrigin.fromJson(jsonResult); - } + /** + * Delete an allowed origin + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param originId {@link String } Unique identifier of the allowed origin. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void deleteAllowedOrigin(String merchantId, String apiCredentialId, String originId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (apiCredentialId == null) { + throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + } + pathParams.put("apiCredentialId", apiCredentialId); + if (originId == null) { + throw new IllegalArgumentException("Please provide the originId path parameter"); + } + pathParams.put("originId", originId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/apiCredentials/{apiCredentialId}/allowedOrigins/{originId}", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); + } - /** - * Get a list of allowed origins - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @return {@link AllowedOriginsResponse } - * @throws ApiException if fails to make API call - */ - public AllowedOriginsResponse listAllowedOrigins(String merchantId, String apiCredentialId) - throws ApiException, IOException { - return listAllowedOrigins(merchantId, apiCredentialId, null); - } + /** + * Get an allowed origin + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param originId {@link String } Unique identifier of the allowed origin. (required) + * @return {@link AllowedOrigin } + * @throws ApiException if fails to make API call + */ + public AllowedOrigin getAllowedOrigin(String merchantId, String apiCredentialId, String originId) throws ApiException, IOException { + return getAllowedOrigin(merchantId, apiCredentialId, originId, null); + } - /** - * Get a list of allowed origins - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link AllowedOriginsResponse } - * @throws ApiException if fails to make API call - */ - public AllowedOriginsResponse listAllowedOrigins( - String merchantId, String apiCredentialId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + /** + * Get an allowed origin + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param originId {@link String } Unique identifier of the allowed origin. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link AllowedOrigin } + * @throws ApiException if fails to make API call + */ + public AllowedOrigin getAllowedOrigin(String merchantId, String apiCredentialId, String originId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (apiCredentialId == null) { + throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + } + pathParams.put("apiCredentialId", apiCredentialId); + if (originId == null) { + throw new IllegalArgumentException("Please provide the originId path parameter"); + } + pathParams.put("originId", originId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/apiCredentials/{apiCredentialId}/allowedOrigins/{originId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return AllowedOrigin.fromJson(jsonResult); } - pathParams.put("merchantId", merchantId); - if (apiCredentialId == null) { - throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + + /** + * Get a list of allowed origins + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @return {@link AllowedOriginsResponse } + * @throws ApiException if fails to make API call + */ + public AllowedOriginsResponse listAllowedOrigins(String merchantId, String apiCredentialId) throws ApiException, IOException { + return listAllowedOrigins(merchantId, apiCredentialId, null); } - pathParams.put("apiCredentialId", apiCredentialId); - String requestBody = null; - Resource resource = - new Resource( - this, - this.baseURL - + "/merchants/{merchantId}/apiCredentials/{apiCredentialId}/allowedOrigins", - null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return AllowedOriginsResponse.fromJson(jsonResult); - } + /** + * Get a list of allowed origins + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link AllowedOriginsResponse } + * @throws ApiException if fails to make API call + */ + public AllowedOriginsResponse listAllowedOrigins(String merchantId, String apiCredentialId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (apiCredentialId == null) { + throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + } + pathParams.put("apiCredentialId", apiCredentialId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/apiCredentials/{apiCredentialId}/allowedOrigins", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return AllowedOriginsResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/AndroidFilesCompanyLevelApi.java b/src/main/java/com/adyen/service/management/AndroidFilesCompanyLevelApi.java index f853b9638..e437c9488 100644 --- a/src/main/java/com/adyen/service/management/AndroidFilesCompanyLevelApi.java +++ b/src/main/java/com/adyen/service/management/AndroidFilesCompanyLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,333 +14,288 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.management.AndroidApp; import com.adyen.model.management.AndroidAppsResponse; import com.adyen.model.management.AndroidCertificatesResponse; import com.adyen.model.management.ReprocessAndroidAppResponse; +import com.adyen.model.management.RestServiceError; import com.adyen.model.management.UploadAndroidAppResponse; import com.adyen.model.management.UploadAndroidCertificateResponse; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class AndroidFilesCompanyLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; + public static final String API_VERSION = "3"; - /** - * Android files - company level constructor in {@link com.adyen.service.management package}. - * - * @param client {@link Client } (required) - */ - public AndroidFilesCompanyLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } + protected String baseURL; - /** - * Android files - company level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or - * testing purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public AndroidFilesCompanyLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Get Android app - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param id {@link String } The unique identifier of the app. (required) - * @return {@link AndroidApp } - * @throws ApiException if fails to make API call - */ - public AndroidApp getAndroidApp(String companyId, String id) throws ApiException, IOException { - return getAndroidApp(companyId, id, null); - } - - /** - * Get Android app - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param id {@link String } The unique identifier of the app. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link AndroidApp } - * @throws ApiException if fails to make API call - */ - public AndroidApp getAndroidApp(String companyId, String id, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + /** + * Android files - company level constructor in {@link com.adyen.service.management package}. + * @param client {@link Client } (required) + */ + public AndroidFilesCompanyLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); } - pathParams.put("companyId", companyId); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + + /** + * Android files - company level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public AndroidFilesCompanyLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - pathParams.put("id", id); - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/companies/{companyId}/androidApps/{id}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return AndroidApp.fromJson(jsonResult); - } + /** + * Get Android app + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param id {@link String } The unique identifier of the app. (required) + * @return {@link AndroidApp } + * @throws ApiException if fails to make API call + */ + public AndroidApp getAndroidApp(String companyId, String id) throws ApiException, IOException { + return getAndroidApp(companyId, id, null); + } - /** - * Get a list of Android apps - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @return {@link AndroidAppsResponse } - * @throws ApiException if fails to make API call - */ - public AndroidAppsResponse listAndroidApps(String companyId) throws ApiException, IOException { - return listAndroidApps(companyId, null, null, null, null, null); - } + /** + * Get Android app + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param id {@link String } The unique identifier of the app. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link AndroidApp } + * @throws ApiException if fails to make API call + */ + public AndroidApp getAndroidApp(String companyId, String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); - /** - * Get a list of Android apps - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The - * default is 20 items on a page. (optional) - * @param packageName {@link String } Query: The package name that uniquely identifies the Android - * app. (optional) - * @param versionCode {@link Integer } Query: The version number of the app. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link AndroidAppsResponse } - * @throws ApiException if fails to make API call - */ - public AndroidAppsResponse listAndroidApps( - String companyId, - Integer pageNumber, - Integer pageSize, - String packageName, - Integer versionCode, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/androidApps/{id}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return AndroidApp.fromJson(jsonResult); } - pathParams.put("companyId", companyId); - // Add query params - Map queryParams = new HashMap<>(); - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); - } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); - } - if (packageName != null) { - queryParams.put("packageName", packageName); - } - if (versionCode != null) { - queryParams.put("versionCode", versionCode.toString()); + /** + * Get a list of Android apps + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @return {@link AndroidAppsResponse } + * @throws ApiException if fails to make API call + */ + public AndroidAppsResponse listAndroidApps(String companyId) throws ApiException, IOException { + return listAndroidApps(companyId, null, null, null, null, null); } - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/companies/{companyId}/androidApps", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return AndroidAppsResponse.fromJson(jsonResult); - } + /** + * Get a list of Android apps + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The default is 20 items on a page. (optional) + * @param packageName {@link String } Query: The package name that uniquely identifies the Android app. (optional) + * @param versionCode {@link Integer } Query: The version number of the app. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link AndroidAppsResponse } + * @throws ApiException if fails to make API call + */ + public AndroidAppsResponse listAndroidApps(String companyId, Integer pageNumber, Integer pageSize, String packageName, Integer versionCode, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); - /** - * Get a list of Android certificates - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @return {@link AndroidCertificatesResponse } - * @throws ApiException if fails to make API call - */ - public AndroidCertificatesResponse listAndroidCertificates(String companyId) - throws ApiException, IOException { - return listAndroidCertificates(companyId, null, null, null, null); - } + //Add query params + Map queryParams = new HashMap<>(); + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); + } + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); + } + if (packageName != null) { + queryParams.put("packageName", packageName); + } + if (versionCode != null) { + queryParams.put("versionCode", versionCode.toString()); + } - /** - * Get a list of Android certificates - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The - * default is 20 items on a page. (optional) - * @param certificateName {@link String } Query: The name of the certificate. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link AndroidCertificatesResponse } - * @throws ApiException if fails to make API call - */ - public AndroidCertificatesResponse listAndroidCertificates( - String companyId, - Integer pageNumber, - Integer pageSize, - String certificateName, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/androidApps", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return AndroidAppsResponse.fromJson(jsonResult); } - pathParams.put("companyId", companyId); - // Add query params - Map queryParams = new HashMap<>(); - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); - } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); - } - if (certificateName != null) { - queryParams.put("certificateName", certificateName); + /** + * Get a list of Android certificates + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @return {@link AndroidCertificatesResponse } + * @throws ApiException if fails to make API call + */ + public AndroidCertificatesResponse listAndroidCertificates(String companyId) throws ApiException, IOException { + return listAndroidCertificates(companyId, null, null, null, null); } - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/companies/{companyId}/androidCertificates", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return AndroidCertificatesResponse.fromJson(jsonResult); - } + /** + * Get a list of Android certificates + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The default is 20 items on a page. (optional) + * @param certificateName {@link String } Query: The name of the certificate. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link AndroidCertificatesResponse } + * @throws ApiException if fails to make API call + */ + public AndroidCertificatesResponse listAndroidCertificates(String companyId, Integer pageNumber, Integer pageSize, String certificateName, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); - /** - * Reprocess Android App - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param id {@link String } The unique identifier of the app. (required) - * @return {@link ReprocessAndroidAppResponse } - * @throws ApiException if fails to make API call - */ - public ReprocessAndroidAppResponse reprocessAndroidApp(String companyId, String id) - throws ApiException, IOException { - return reprocessAndroidApp(companyId, id, null); - } + //Add query params + Map queryParams = new HashMap<>(); + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); + } + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); + } + if (certificateName != null) { + queryParams.put("certificateName", certificateName); + } - /** - * Reprocess Android App - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param id {@link String } The unique identifier of the app. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ReprocessAndroidAppResponse } - * @throws ApiException if fails to make API call - */ - public ReprocessAndroidAppResponse reprocessAndroidApp( - String companyId, String id, RequestOptions requestOptions) throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/androidCertificates", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return AndroidCertificatesResponse.fromJson(jsonResult); } - pathParams.put("companyId", companyId); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + + /** + * Reprocess Android App + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param id {@link String } The unique identifier of the app. (required) + * @return {@link ReprocessAndroidAppResponse } + * @throws ApiException if fails to make API call + */ + public ReprocessAndroidAppResponse reprocessAndroidApp(String companyId, String id) throws ApiException, IOException { + return reprocessAndroidApp(companyId, id, null); } - pathParams.put("id", id); - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/companies/{companyId}/androidApps/{id}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return ReprocessAndroidAppResponse.fromJson(jsonResult); - } + /** + * Reprocess Android App + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param id {@link String } The unique identifier of the app. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ReprocessAndroidAppResponse } + * @throws ApiException if fails to make API call + */ + public ReprocessAndroidAppResponse reprocessAndroidApp(String companyId, String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); - /** - * Upload Android App - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @return {@link UploadAndroidAppResponse } - * @throws ApiException if fails to make API call - */ - public UploadAndroidAppResponse uploadAndroidApp(String companyId) - throws ApiException, IOException { - return uploadAndroidApp(companyId, null); - } + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/androidApps/{id}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return ReprocessAndroidAppResponse.fromJson(jsonResult); + } - /** - * Upload Android App - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link UploadAndroidAppResponse } - * @throws ApiException if fails to make API call - */ - public UploadAndroidAppResponse uploadAndroidApp(String companyId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + /** + * Upload Android App + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @return {@link UploadAndroidAppResponse } + * @throws ApiException if fails to make API call + */ + public UploadAndroidAppResponse uploadAndroidApp(String companyId) throws ApiException, IOException { + return uploadAndroidApp(companyId, null); } - pathParams.put("companyId", companyId); - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/companies/{companyId}/androidApps", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return UploadAndroidAppResponse.fromJson(jsonResult); - } + /** + * Upload Android App + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link UploadAndroidAppResponse } + * @throws ApiException if fails to make API call + */ + public UploadAndroidAppResponse uploadAndroidApp(String companyId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); - /** - * Upload Android Certificate - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @return {@link UploadAndroidCertificateResponse } - * @throws ApiException if fails to make API call - */ - public UploadAndroidCertificateResponse uploadAndroidCertificate(String companyId) - throws ApiException, IOException { - return uploadAndroidCertificate(companyId, null); - } + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/androidApps", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return UploadAndroidAppResponse.fromJson(jsonResult); + } - /** - * Upload Android Certificate - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link UploadAndroidCertificateResponse } - * @throws ApiException if fails to make API call - */ - public UploadAndroidCertificateResponse uploadAndroidCertificate( - String companyId, RequestOptions requestOptions) throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + /** + * Upload Android Certificate + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @return {@link UploadAndroidCertificateResponse } + * @throws ApiException if fails to make API call + */ + public UploadAndroidCertificateResponse uploadAndroidCertificate(String companyId) throws ApiException, IOException { + return uploadAndroidCertificate(companyId, null); } - pathParams.put("companyId", companyId); - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/companies/{companyId}/androidCertificates", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return UploadAndroidCertificateResponse.fromJson(jsonResult); - } + /** + * Upload Android Certificate + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link UploadAndroidCertificateResponse } + * @throws ApiException if fails to make API call + */ + public UploadAndroidCertificateResponse uploadAndroidCertificate(String companyId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/androidCertificates", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return UploadAndroidCertificateResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/ApiCredentialsCompanyLevelApi.java b/src/main/java/com/adyen/service/management/ApiCredentialsCompanyLevelApi.java index 076c9d9ff..414713a73 100644 --- a/src/main/java/com/adyen/service/management/ApiCredentialsCompanyLevelApi.java +++ b/src/main/java/com/adyen/service/management/ApiCredentialsCompanyLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,240 +14,202 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.management.CompanyApiCredential; import com.adyen.model.management.CreateCompanyApiCredentialRequest; import com.adyen.model.management.CreateCompanyApiCredentialResponse; import com.adyen.model.management.ListCompanyApiCredentialsResponse; +import com.adyen.model.management.RestServiceError; import com.adyen.model.management.UpdateCompanyApiCredentialRequest; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class ApiCredentialsCompanyLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * API credentials - company level constructor in {@link com.adyen.service.management package}. - * - * @param client {@link Client } (required) - */ - public ApiCredentialsCompanyLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } - - /** - * API credentials - company level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or - * testing purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public ApiCredentialsCompanyLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Create an API credential. - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param createCompanyApiCredentialRequest {@link CreateCompanyApiCredentialRequest } (required) - * @return {@link CreateCompanyApiCredentialResponse } - * @throws ApiException if fails to make API call - */ - public CreateCompanyApiCredentialResponse createApiCredential( - String companyId, CreateCompanyApiCredentialRequest createCompanyApiCredentialRequest) - throws ApiException, IOException { - return createApiCredential(companyId, createCompanyApiCredentialRequest, null); - } - - /** - * Create an API credential. - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param createCompanyApiCredentialRequest {@link CreateCompanyApiCredentialRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link CreateCompanyApiCredentialResponse } - * @throws ApiException if fails to make API call - */ - public CreateCompanyApiCredentialResponse createApiCredential( - String companyId, - CreateCompanyApiCredentialRequest createCompanyApiCredentialRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * API credentials - company level constructor in {@link com.adyen.service.management package}. + * @param client {@link Client } (required) + */ + public ApiCredentialsCompanyLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); } - pathParams.put("companyId", companyId); - - String requestBody = createCompanyApiCredentialRequest.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/companies/{companyId}/apiCredentials", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return CreateCompanyApiCredentialResponse.fromJson(jsonResult); - } - - /** - * Get an API credential - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @return {@link CompanyApiCredential } - * @throws ApiException if fails to make API call - */ - public CompanyApiCredential getApiCredential(String companyId, String apiCredentialId) - throws ApiException, IOException { - return getApiCredential(companyId, apiCredentialId, null); - } - - /** - * Get an API credential - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link CompanyApiCredential } - * @throws ApiException if fails to make API call - */ - public CompanyApiCredential getApiCredential( - String companyId, String apiCredentialId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + + /** + * API credentials - company level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public ApiCredentialsCompanyLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - pathParams.put("companyId", companyId); - if (apiCredentialId == null) { - throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + + /** + * Create an API credential. + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param createCompanyApiCredentialRequest {@link CreateCompanyApiCredentialRequest } (required) + * @return {@link CreateCompanyApiCredentialResponse } + * @throws ApiException if fails to make API call + */ + public CreateCompanyApiCredentialResponse createApiCredential(String companyId, CreateCompanyApiCredentialRequest createCompanyApiCredentialRequest) throws ApiException, IOException { + return createApiCredential(companyId, createCompanyApiCredentialRequest, null); } - pathParams.put("apiCredentialId", apiCredentialId); - - String requestBody = null; - Resource resource = - new Resource( - this, this.baseURL + "/companies/{companyId}/apiCredentials/{apiCredentialId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return CompanyApiCredential.fromJson(jsonResult); - } - - /** - * Get a list of API credentials - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @return {@link ListCompanyApiCredentialsResponse } - * @throws ApiException if fails to make API call - */ - public ListCompanyApiCredentialsResponse listApiCredentials(String companyId) - throws ApiException, IOException { - return listApiCredentials(companyId, null, null, null); - } - - /** - * Get a list of API credentials - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The - * default is 10 items on a page. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ListCompanyApiCredentialsResponse } - * @throws ApiException if fails to make API call - */ - public ListCompanyApiCredentialsResponse listApiCredentials( - String companyId, Integer pageNumber, Integer pageSize, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + + /** + * Create an API credential. + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param createCompanyApiCredentialRequest {@link CreateCompanyApiCredentialRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link CreateCompanyApiCredentialResponse } + * @throws ApiException if fails to make API call + */ + public CreateCompanyApiCredentialResponse createApiCredential(String companyId, CreateCompanyApiCredentialRequest createCompanyApiCredentialRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + + String requestBody = createCompanyApiCredentialRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/apiCredentials", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return CreateCompanyApiCredentialResponse.fromJson(jsonResult); + } + + /** + * Get an API credential + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @return {@link CompanyApiCredential } + * @throws ApiException if fails to make API call + */ + public CompanyApiCredential getApiCredential(String companyId, String apiCredentialId) throws ApiException, IOException { + return getApiCredential(companyId, apiCredentialId, null); } - pathParams.put("companyId", companyId); - // Add query params - Map queryParams = new HashMap<>(); - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); + /** + * Get an API credential + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link CompanyApiCredential } + * @throws ApiException if fails to make API call + */ + public CompanyApiCredential getApiCredential(String companyId, String apiCredentialId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + if (apiCredentialId == null) { + throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + } + pathParams.put("apiCredentialId", apiCredentialId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/apiCredentials/{apiCredentialId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return CompanyApiCredential.fromJson(jsonResult); } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); + + /** + * Get a list of API credentials + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @return {@link ListCompanyApiCredentialsResponse } + * @throws ApiException if fails to make API call + */ + public ListCompanyApiCredentialsResponse listApiCredentials(String companyId) throws ApiException, IOException { + return listApiCredentials(companyId, null, null, null); } - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/companies/{companyId}/apiCredentials", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return ListCompanyApiCredentialsResponse.fromJson(jsonResult); - } - - /** - * Update an API credential. - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param updateCompanyApiCredentialRequest {@link UpdateCompanyApiCredentialRequest } (required) - * @return {@link CompanyApiCredential } - * @throws ApiException if fails to make API call - */ - public CompanyApiCredential updateApiCredential( - String companyId, - String apiCredentialId, - UpdateCompanyApiCredentialRequest updateCompanyApiCredentialRequest) - throws ApiException, IOException { - return updateApiCredential(companyId, apiCredentialId, updateCompanyApiCredentialRequest, null); - } - - /** - * Update an API credential. - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param updateCompanyApiCredentialRequest {@link UpdateCompanyApiCredentialRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link CompanyApiCredential } - * @throws ApiException if fails to make API call - */ - public CompanyApiCredential updateApiCredential( - String companyId, - String apiCredentialId, - UpdateCompanyApiCredentialRequest updateCompanyApiCredentialRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + /** + * Get a list of API credentials + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The default is 10 items on a page. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ListCompanyApiCredentialsResponse } + * @throws ApiException if fails to make API call + */ + public ListCompanyApiCredentialsResponse listApiCredentials(String companyId, Integer pageNumber, Integer pageSize, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + + //Add query params + Map queryParams = new HashMap<>(); + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); + } + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/apiCredentials", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return ListCompanyApiCredentialsResponse.fromJson(jsonResult); } - pathParams.put("companyId", companyId); - if (apiCredentialId == null) { - throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + + /** + * Update an API credential. + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param updateCompanyApiCredentialRequest {@link UpdateCompanyApiCredentialRequest } (required) + * @return {@link CompanyApiCredential } + * @throws ApiException if fails to make API call + */ + public CompanyApiCredential updateApiCredential(String companyId, String apiCredentialId, UpdateCompanyApiCredentialRequest updateCompanyApiCredentialRequest) throws ApiException, IOException { + return updateApiCredential(companyId, apiCredentialId, updateCompanyApiCredentialRequest, null); + } + + /** + * Update an API credential. + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param updateCompanyApiCredentialRequest {@link UpdateCompanyApiCredentialRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link CompanyApiCredential } + * @throws ApiException if fails to make API call + */ + public CompanyApiCredential updateApiCredential(String companyId, String apiCredentialId, UpdateCompanyApiCredentialRequest updateCompanyApiCredentialRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + if (apiCredentialId == null) { + throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + } + pathParams.put("apiCredentialId", apiCredentialId); + + String requestBody = updateCompanyApiCredentialRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/apiCredentials/{apiCredentialId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return CompanyApiCredential.fromJson(jsonResult); } - pathParams.put("apiCredentialId", apiCredentialId); - - String requestBody = updateCompanyApiCredentialRequest.toJson(); - Resource resource = - new Resource( - this, this.baseURL + "/companies/{companyId}/apiCredentials/{apiCredentialId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return CompanyApiCredential.fromJson(jsonResult); - } } diff --git a/src/main/java/com/adyen/service/management/ApiCredentialsMerchantLevelApi.java b/src/main/java/com/adyen/service/management/ApiCredentialsMerchantLevelApi.java index f31481c58..39210e7c4 100644 --- a/src/main/java/com/adyen/service/management/ApiCredentialsMerchantLevelApi.java +++ b/src/main/java/com/adyen/service/management/ApiCredentialsMerchantLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,245 +14,202 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.management.ApiCredential; import com.adyen.model.management.CreateApiCredentialResponse; import com.adyen.model.management.CreateMerchantApiCredentialRequest; import com.adyen.model.management.ListMerchantApiCredentialsResponse; +import com.adyen.model.management.RestServiceError; import com.adyen.model.management.UpdateMerchantApiCredentialRequest; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class ApiCredentialsMerchantLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; + public static final String API_VERSION = "3"; - /** - * API credentials - merchant level constructor in {@link com.adyen.service.management package}. - * - * @param client {@link Client } (required) - */ - public ApiCredentialsMerchantLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } + protected String baseURL; - /** - * API credentials - merchant level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or - * testing purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public ApiCredentialsMerchantLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Create an API credential - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param createMerchantApiCredentialRequest {@link CreateMerchantApiCredentialRequest } - * (required) - * @return {@link CreateApiCredentialResponse } - * @throws ApiException if fails to make API call - */ - public CreateApiCredentialResponse createApiCredential( - String merchantId, CreateMerchantApiCredentialRequest createMerchantApiCredentialRequest) - throws ApiException, IOException { - return createApiCredential(merchantId, createMerchantApiCredentialRequest, null); - } - - /** - * Create an API credential - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param createMerchantApiCredentialRequest {@link CreateMerchantApiCredentialRequest } - * (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link CreateApiCredentialResponse } - * @throws ApiException if fails to make API call - */ - public CreateApiCredentialResponse createApiCredential( - String merchantId, - CreateMerchantApiCredentialRequest createMerchantApiCredentialRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + /** + * API credentials - merchant level constructor in {@link com.adyen.service.management package}. + * @param client {@link Client } (required) + */ + public ApiCredentialsMerchantLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); } - pathParams.put("merchantId", merchantId); - - String requestBody = createMerchantApiCredentialRequest.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/merchants/{merchantId}/apiCredentials", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return CreateApiCredentialResponse.fromJson(jsonResult); - } - - /** - * Get an API credential - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @return {@link ApiCredential } - * @throws ApiException if fails to make API call - */ - public ApiCredential getApiCredential(String merchantId, String apiCredentialId) - throws ApiException, IOException { - return getApiCredential(merchantId, apiCredentialId, null); - } - /** - * Get an API credential - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ApiCredential } - * @throws ApiException if fails to make API call - */ - public ApiCredential getApiCredential( - String merchantId, String apiCredentialId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + /** + * API credentials - merchant level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public ApiCredentialsMerchantLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - pathParams.put("merchantId", merchantId); - if (apiCredentialId == null) { - throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); - } - pathParams.put("apiCredentialId", apiCredentialId); - - String requestBody = null; - Resource resource = - new Resource( - this, this.baseURL + "/merchants/{merchantId}/apiCredentials/{apiCredentialId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return ApiCredential.fromJson(jsonResult); - } - /** - * Get a list of API credentials - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @return {@link ListMerchantApiCredentialsResponse } - * @throws ApiException if fails to make API call - */ - public ListMerchantApiCredentialsResponse listApiCredentials(String merchantId) - throws ApiException, IOException { - return listApiCredentials(merchantId, null, null, null); - } - - /** - * Get a list of API credentials - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The - * default is 10 items on a page. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ListMerchantApiCredentialsResponse } - * @throws ApiException if fails to make API call - */ - public ListMerchantApiCredentialsResponse listApiCredentials( - String merchantId, Integer pageNumber, Integer pageSize, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + /** + * Create an API credential + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param createMerchantApiCredentialRequest {@link CreateMerchantApiCredentialRequest } (required) + * @return {@link CreateApiCredentialResponse } + * @throws ApiException if fails to make API call + */ + public CreateApiCredentialResponse createApiCredential(String merchantId, CreateMerchantApiCredentialRequest createMerchantApiCredentialRequest) throws ApiException, IOException { + return createApiCredential(merchantId, createMerchantApiCredentialRequest, null); } - pathParams.put("merchantId", merchantId); - // Add query params - Map queryParams = new HashMap<>(); - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); + /** + * Create an API credential + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param createMerchantApiCredentialRequest {@link CreateMerchantApiCredentialRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link CreateApiCredentialResponse } + * @throws ApiException if fails to make API call + */ + public CreateApiCredentialResponse createApiCredential(String merchantId, CreateMerchantApiCredentialRequest createMerchantApiCredentialRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + + String requestBody = createMerchantApiCredentialRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/apiCredentials", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return CreateApiCredentialResponse.fromJson(jsonResult); } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); + + /** + * Get an API credential + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @return {@link ApiCredential } + * @throws ApiException if fails to make API call + */ + public ApiCredential getApiCredential(String merchantId, String apiCredentialId) throws ApiException, IOException { + return getApiCredential(merchantId, apiCredentialId, null); } - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/merchants/{merchantId}/apiCredentials", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return ListMerchantApiCredentialsResponse.fromJson(jsonResult); - } + /** + * Get an API credential + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ApiCredential } + * @throws ApiException if fails to make API call + */ + public ApiCredential getApiCredential(String merchantId, String apiCredentialId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (apiCredentialId == null) { + throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + } + pathParams.put("apiCredentialId", apiCredentialId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/apiCredentials/{apiCredentialId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return ApiCredential.fromJson(jsonResult); + } - /** - * Update an API credential - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param updateMerchantApiCredentialRequest {@link UpdateMerchantApiCredentialRequest } - * (required) - * @return {@link ApiCredential } - * @throws ApiException if fails to make API call - */ - public ApiCredential updateApiCredential( - String merchantId, - String apiCredentialId, - UpdateMerchantApiCredentialRequest updateMerchantApiCredentialRequest) - throws ApiException, IOException { - return updateApiCredential( - merchantId, apiCredentialId, updateMerchantApiCredentialRequest, null); - } + /** + * Get a list of API credentials + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @return {@link ListMerchantApiCredentialsResponse } + * @throws ApiException if fails to make API call + */ + public ListMerchantApiCredentialsResponse listApiCredentials(String merchantId) throws ApiException, IOException { + return listApiCredentials(merchantId, null, null, null); + } - /** - * Update an API credential - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param updateMerchantApiCredentialRequest {@link UpdateMerchantApiCredentialRequest } - * (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ApiCredential } - * @throws ApiException if fails to make API call - */ - public ApiCredential updateApiCredential( - String merchantId, - String apiCredentialId, - UpdateMerchantApiCredentialRequest updateMerchantApiCredentialRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + /** + * Get a list of API credentials + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The default is 10 items on a page. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ListMerchantApiCredentialsResponse } + * @throws ApiException if fails to make API call + */ + public ListMerchantApiCredentialsResponse listApiCredentials(String merchantId, Integer pageNumber, Integer pageSize, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + + //Add query params + Map queryParams = new HashMap<>(); + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); + } + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/apiCredentials", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return ListMerchantApiCredentialsResponse.fromJson(jsonResult); } - pathParams.put("merchantId", merchantId); - if (apiCredentialId == null) { - throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + + /** + * Update an API credential + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param updateMerchantApiCredentialRequest {@link UpdateMerchantApiCredentialRequest } (required) + * @return {@link ApiCredential } + * @throws ApiException if fails to make API call + */ + public ApiCredential updateApiCredential(String merchantId, String apiCredentialId, UpdateMerchantApiCredentialRequest updateMerchantApiCredentialRequest) throws ApiException, IOException { + return updateApiCredential(merchantId, apiCredentialId, updateMerchantApiCredentialRequest, null); } - pathParams.put("apiCredentialId", apiCredentialId); - String requestBody = updateMerchantApiCredentialRequest.toJson(); - Resource resource = - new Resource( - this, this.baseURL + "/merchants/{merchantId}/apiCredentials/{apiCredentialId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return ApiCredential.fromJson(jsonResult); - } + /** + * Update an API credential + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param updateMerchantApiCredentialRequest {@link UpdateMerchantApiCredentialRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ApiCredential } + * @throws ApiException if fails to make API call + */ + public ApiCredential updateApiCredential(String merchantId, String apiCredentialId, UpdateMerchantApiCredentialRequest updateMerchantApiCredentialRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (apiCredentialId == null) { + throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + } + pathParams.put("apiCredentialId", apiCredentialId); + + String requestBody = updateMerchantApiCredentialRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/apiCredentials/{apiCredentialId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return ApiCredential.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/ApiKeyCompanyLevelApi.java b/src/main/java/com/adyen/service/management/ApiKeyCompanyLevelApi.java index 3a3463785..dc179ffdc 100644 --- a/src/main/java/com/adyen/service/management/ApiKeyCompanyLevelApi.java +++ b/src/main/java/com/adyen/service/management/ApiKeyCompanyLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,88 +14,78 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.management.GenerateApiKeyResponse; +import com.adyen.model.management.RestServiceError; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class ApiKeyCompanyLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; + public static final String API_VERSION = "3"; - /** - * API key - company level constructor in {@link com.adyen.service.management package}. - * - * @param client {@link Client } (required) - */ - public ApiKeyCompanyLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } + protected String baseURL; - /** - * API key - company level constructor in {@link com.adyen.service.management package}. Please use - * this constructor only if you would like to pass along your own url for routing or testing - * purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public ApiKeyCompanyLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Generate new API key - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @return {@link GenerateApiKeyResponse } - * @throws ApiException if fails to make API call - */ - public GenerateApiKeyResponse generateNewApiKey(String companyId, String apiCredentialId) - throws ApiException, IOException { - return generateNewApiKey(companyId, apiCredentialId, null); - } + /** + * API key - company level constructor in {@link com.adyen.service.management package}. + * @param client {@link Client } (required) + */ + public ApiKeyCompanyLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } - /** - * Generate new API key - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link GenerateApiKeyResponse } - * @throws ApiException if fails to make API call - */ - public GenerateApiKeyResponse generateNewApiKey( - String companyId, String apiCredentialId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + /** + * API key - company level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public ApiKeyCompanyLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - pathParams.put("companyId", companyId); - if (apiCredentialId == null) { - throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + + /** + * Generate new API key + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @return {@link GenerateApiKeyResponse } + * @throws ApiException if fails to make API call + */ + public GenerateApiKeyResponse generateNewApiKey(String companyId, String apiCredentialId) throws ApiException, IOException { + return generateNewApiKey(companyId, apiCredentialId, null); } - pathParams.put("apiCredentialId", apiCredentialId); - String requestBody = null; - Resource resource = - new Resource( - this, - this.baseURL + "/companies/{companyId}/apiCredentials/{apiCredentialId}/generateApiKey", - null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return GenerateApiKeyResponse.fromJson(jsonResult); - } + /** + * Generate new API key + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link GenerateApiKeyResponse } + * @throws ApiException if fails to make API call + */ + public GenerateApiKeyResponse generateNewApiKey(String companyId, String apiCredentialId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + if (apiCredentialId == null) { + throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + } + pathParams.put("apiCredentialId", apiCredentialId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/apiCredentials/{apiCredentialId}/generateApiKey", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return GenerateApiKeyResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/ApiKeyMerchantLevelApi.java b/src/main/java/com/adyen/service/management/ApiKeyMerchantLevelApi.java index f6beeaebf..491caa8dd 100644 --- a/src/main/java/com/adyen/service/management/ApiKeyMerchantLevelApi.java +++ b/src/main/java/com/adyen/service/management/ApiKeyMerchantLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,89 +14,78 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.management.GenerateApiKeyResponse; +import com.adyen.model.management.RestServiceError; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class ApiKeyMerchantLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; + public static final String API_VERSION = "3"; - /** - * API key - merchant level constructor in {@link com.adyen.service.management package}. - * - * @param client {@link Client } (required) - */ - public ApiKeyMerchantLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } + protected String baseURL; - /** - * API key - merchant level constructor in {@link com.adyen.service.management package}. Please - * use this constructor only if you would like to pass along your own url for routing or testing - * purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public ApiKeyMerchantLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Generate new API key - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @return {@link GenerateApiKeyResponse } - * @throws ApiException if fails to make API call - */ - public GenerateApiKeyResponse generateNewApiKey(String merchantId, String apiCredentialId) - throws ApiException, IOException { - return generateNewApiKey(merchantId, apiCredentialId, null); - } + /** + * API key - merchant level constructor in {@link com.adyen.service.management package}. + * @param client {@link Client } (required) + */ + public ApiKeyMerchantLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } - /** - * Generate new API key - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link GenerateApiKeyResponse } - * @throws ApiException if fails to make API call - */ - public GenerateApiKeyResponse generateNewApiKey( - String merchantId, String apiCredentialId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + /** + * API key - merchant level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public ApiKeyMerchantLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - pathParams.put("merchantId", merchantId); - if (apiCredentialId == null) { - throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + + /** + * Generate new API key + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @return {@link GenerateApiKeyResponse } + * @throws ApiException if fails to make API call + */ + public GenerateApiKeyResponse generateNewApiKey(String merchantId, String apiCredentialId) throws ApiException, IOException { + return generateNewApiKey(merchantId, apiCredentialId, null); } - pathParams.put("apiCredentialId", apiCredentialId); - String requestBody = null; - Resource resource = - new Resource( - this, - this.baseURL - + "/merchants/{merchantId}/apiCredentials/{apiCredentialId}/generateApiKey", - null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return GenerateApiKeyResponse.fromJson(jsonResult); - } + /** + * Generate new API key + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link GenerateApiKeyResponse } + * @throws ApiException if fails to make API call + */ + public GenerateApiKeyResponse generateNewApiKey(String merchantId, String apiCredentialId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (apiCredentialId == null) { + throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + } + pathParams.put("apiCredentialId", apiCredentialId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/apiCredentials/{apiCredentialId}/generateApiKey", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return GenerateApiKeyResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/ClientKeyCompanyLevelApi.java b/src/main/java/com/adyen/service/management/ClientKeyCompanyLevelApi.java index fc06fedfd..fcb2a2ba5 100644 --- a/src/main/java/com/adyen/service/management/ClientKeyCompanyLevelApi.java +++ b/src/main/java/com/adyen/service/management/ClientKeyCompanyLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,89 +14,78 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.management.GenerateClientKeyResponse; +import com.adyen.model.management.RestServiceError; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class ClientKeyCompanyLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; + public static final String API_VERSION = "3"; - /** - * Client key - company level constructor in {@link com.adyen.service.management package}. - * - * @param client {@link Client } (required) - */ - public ClientKeyCompanyLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } + protected String baseURL; - /** - * Client key - company level constructor in {@link com.adyen.service.management package}. Please - * use this constructor only if you would like to pass along your own url for routing or testing - * purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public ClientKeyCompanyLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Generate new client key - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @return {@link GenerateClientKeyResponse } - * @throws ApiException if fails to make API call - */ - public GenerateClientKeyResponse generateNewClientKey(String companyId, String apiCredentialId) - throws ApiException, IOException { - return generateNewClientKey(companyId, apiCredentialId, null); - } + /** + * Client key - company level constructor in {@link com.adyen.service.management package}. + * @param client {@link Client } (required) + */ + public ClientKeyCompanyLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } - /** - * Generate new client key - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link GenerateClientKeyResponse } - * @throws ApiException if fails to make API call - */ - public GenerateClientKeyResponse generateNewClientKey( - String companyId, String apiCredentialId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + /** + * Client key - company level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public ClientKeyCompanyLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - pathParams.put("companyId", companyId); - if (apiCredentialId == null) { - throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + + /** + * Generate new client key + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @return {@link GenerateClientKeyResponse } + * @throws ApiException if fails to make API call + */ + public GenerateClientKeyResponse generateNewClientKey(String companyId, String apiCredentialId) throws ApiException, IOException { + return generateNewClientKey(companyId, apiCredentialId, null); } - pathParams.put("apiCredentialId", apiCredentialId); - String requestBody = null; - Resource resource = - new Resource( - this, - this.baseURL - + "/companies/{companyId}/apiCredentials/{apiCredentialId}/generateClientKey", - null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return GenerateClientKeyResponse.fromJson(jsonResult); - } + /** + * Generate new client key + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link GenerateClientKeyResponse } + * @throws ApiException if fails to make API call + */ + public GenerateClientKeyResponse generateNewClientKey(String companyId, String apiCredentialId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + if (apiCredentialId == null) { + throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + } + pathParams.put("apiCredentialId", apiCredentialId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/apiCredentials/{apiCredentialId}/generateClientKey", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return GenerateClientKeyResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/ClientKeyMerchantLevelApi.java b/src/main/java/com/adyen/service/management/ClientKeyMerchantLevelApi.java index 7069b3af3..09f1d8ba2 100644 --- a/src/main/java/com/adyen/service/management/ClientKeyMerchantLevelApi.java +++ b/src/main/java/com/adyen/service/management/ClientKeyMerchantLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,89 +14,78 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.management.GenerateClientKeyResponse; +import com.adyen.model.management.RestServiceError; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class ClientKeyMerchantLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; + public static final String API_VERSION = "3"; - /** - * Client key - merchant level constructor in {@link com.adyen.service.management package}. - * - * @param client {@link Client } (required) - */ - public ClientKeyMerchantLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } + protected String baseURL; - /** - * Client key - merchant level constructor in {@link com.adyen.service.management package}. Please - * use this constructor only if you would like to pass along your own url for routing or testing - * purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public ClientKeyMerchantLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Generate new client key - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @return {@link GenerateClientKeyResponse } - * @throws ApiException if fails to make API call - */ - public GenerateClientKeyResponse generateNewClientKey(String merchantId, String apiCredentialId) - throws ApiException, IOException { - return generateNewClientKey(merchantId, apiCredentialId, null); - } + /** + * Client key - merchant level constructor in {@link com.adyen.service.management package}. + * @param client {@link Client } (required) + */ + public ClientKeyMerchantLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } - /** - * Generate new client key - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link GenerateClientKeyResponse } - * @throws ApiException if fails to make API call - */ - public GenerateClientKeyResponse generateNewClientKey( - String merchantId, String apiCredentialId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + /** + * Client key - merchant level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public ClientKeyMerchantLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - pathParams.put("merchantId", merchantId); - if (apiCredentialId == null) { - throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + + /** + * Generate new client key + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @return {@link GenerateClientKeyResponse } + * @throws ApiException if fails to make API call + */ + public GenerateClientKeyResponse generateNewClientKey(String merchantId, String apiCredentialId) throws ApiException, IOException { + return generateNewClientKey(merchantId, apiCredentialId, null); } - pathParams.put("apiCredentialId", apiCredentialId); - String requestBody = null; - Resource resource = - new Resource( - this, - this.baseURL - + "/merchants/{merchantId}/apiCredentials/{apiCredentialId}/generateClientKey", - null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return GenerateClientKeyResponse.fromJson(jsonResult); - } + /** + * Generate new client key + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link GenerateClientKeyResponse } + * @throws ApiException if fails to make API call + */ + public GenerateClientKeyResponse generateNewClientKey(String merchantId, String apiCredentialId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (apiCredentialId == null) { + throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + } + pathParams.put("apiCredentialId", apiCredentialId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/apiCredentials/{apiCredentialId}/generateClientKey", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return GenerateClientKeyResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/MyApiCredentialApi.java b/src/main/java/com/adyen/service/management/MyApiCredentialApi.java index 7ace2dc82..43c750bc9 100644 --- a/src/main/java/com/adyen/service/management/MyApiCredentialApi.java +++ b/src/main/java/com/adyen/service/management/MyApiCredentialApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,224 +14,204 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.management.AllowedOrigin; import com.adyen.model.management.AllowedOriginsResponse; import com.adyen.model.management.CreateAllowedOriginRequest; import com.adyen.model.management.GenerateClientKeyResponse; import com.adyen.model.management.MeApiCredential; +import com.adyen.model.management.RestServiceError; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class MyApiCredentialApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * My API credential constructor in {@link com.adyen.service.management package}. - * - * @param client {@link Client } (required) - */ - public MyApiCredentialApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } - - /** - * My API credential constructor in {@link com.adyen.service.management package}. Please use this - * constructor only if you would like to pass along your own url for routing or testing purposes. - * The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public MyApiCredentialApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Add allowed origin - * - * @param createAllowedOriginRequest {@link CreateAllowedOriginRequest } (required) - * @return {@link AllowedOrigin } - * @throws ApiException if fails to make API call - */ - public AllowedOrigin addAllowedOrigin(CreateAllowedOriginRequest createAllowedOriginRequest) - throws ApiException, IOException { - return addAllowedOrigin(createAllowedOriginRequest, null); - } - - /** - * Add allowed origin - * - * @param createAllowedOriginRequest {@link CreateAllowedOriginRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link AllowedOrigin } - * @throws ApiException if fails to make API call - */ - public AllowedOrigin addAllowedOrigin( - CreateAllowedOriginRequest createAllowedOriginRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = createAllowedOriginRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/me/allowedOrigins", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return AllowedOrigin.fromJson(jsonResult); - } - - /** - * Generate a client key - * - * @return {@link GenerateClientKeyResponse } - * @throws ApiException if fails to make API call - */ - public GenerateClientKeyResponse generateClientKey() throws ApiException, IOException { - return generateClientKey(null); - } - - /** - * Generate a client key - * - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link GenerateClientKeyResponse } - * @throws ApiException if fails to make API call - */ - public GenerateClientKeyResponse generateClientKey(RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/me/generateClientKey", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return GenerateClientKeyResponse.fromJson(jsonResult); - } - - /** - * Get allowed origin details - * - * @param originId {@link String } Unique identifier of the allowed origin. (required) - * @return {@link AllowedOrigin } - * @throws ApiException if fails to make API call - */ - public AllowedOrigin getAllowedOriginDetails(String originId) throws ApiException, IOException { - return getAllowedOriginDetails(originId, null); - } - - /** - * Get allowed origin details - * - * @param originId {@link String } Unique identifier of the allowed origin. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link AllowedOrigin } - * @throws ApiException if fails to make API call - */ - public AllowedOrigin getAllowedOriginDetails(String originId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (originId == null) { - throw new IllegalArgumentException("Please provide the originId path parameter"); + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * My API credential constructor in {@link com.adyen.service.management package}. + * @param client {@link Client } (required) + */ + public MyApiCredentialApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } + + /** + * My API credential constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public MyApiCredentialApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Add allowed origin + * + * @param createAllowedOriginRequest {@link CreateAllowedOriginRequest } (required) + * @return {@link AllowedOrigin } + * @throws ApiException if fails to make API call + */ + public AllowedOrigin addAllowedOrigin(CreateAllowedOriginRequest createAllowedOriginRequest) throws ApiException, IOException { + return addAllowedOrigin(createAllowedOriginRequest, null); + } + + /** + * Add allowed origin + * + * @param createAllowedOriginRequest {@link CreateAllowedOriginRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link AllowedOrigin } + * @throws ApiException if fails to make API call + */ + public AllowedOrigin addAllowedOrigin(CreateAllowedOriginRequest createAllowedOriginRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = createAllowedOriginRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/me/allowedOrigins", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return AllowedOrigin.fromJson(jsonResult); + } + + /** + * Generate a client key + * + * @return {@link GenerateClientKeyResponse } + * @throws ApiException if fails to make API call + */ + public GenerateClientKeyResponse generateClientKey() throws ApiException, IOException { + return generateClientKey(null); + } + + /** + * Generate a client key + * + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link GenerateClientKeyResponse } + * @throws ApiException if fails to make API call + */ + public GenerateClientKeyResponse generateClientKey(RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/me/generateClientKey", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return GenerateClientKeyResponse.fromJson(jsonResult); + } + + /** + * Get allowed origin details + * + * @param originId {@link String } Unique identifier of the allowed origin. (required) + * @return {@link AllowedOrigin } + * @throws ApiException if fails to make API call + */ + public AllowedOrigin getAllowedOriginDetails(String originId) throws ApiException, IOException { + return getAllowedOriginDetails(originId, null); + } + + /** + * Get allowed origin details + * + * @param originId {@link String } Unique identifier of the allowed origin. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link AllowedOrigin } + * @throws ApiException if fails to make API call + */ + public AllowedOrigin getAllowedOriginDetails(String originId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (originId == null) { + throw new IllegalArgumentException("Please provide the originId path parameter"); + } + pathParams.put("originId", originId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/me/allowedOrigins/{originId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return AllowedOrigin.fromJson(jsonResult); + } + + /** + * Get allowed origins + * + * @return {@link AllowedOriginsResponse } + * @throws ApiException if fails to make API call + */ + public AllowedOriginsResponse getAllowedOrigins() throws ApiException, IOException { + return getAllowedOrigins(null); } - pathParams.put("originId", originId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/me/allowedOrigins/{originId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return AllowedOrigin.fromJson(jsonResult); - } - - /** - * Get allowed origins - * - * @return {@link AllowedOriginsResponse } - * @throws ApiException if fails to make API call - */ - public AllowedOriginsResponse getAllowedOrigins() throws ApiException, IOException { - return getAllowedOrigins(null); - } - - /** - * Get allowed origins - * - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link AllowedOriginsResponse } - * @throws ApiException if fails to make API call - */ - public AllowedOriginsResponse getAllowedOrigins(RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/me/allowedOrigins", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null); - return AllowedOriginsResponse.fromJson(jsonResult); - } - - /** - * Get API credential details - * - * @return {@link MeApiCredential } - * @throws ApiException if fails to make API call - */ - public MeApiCredential getApiCredentialDetails() throws ApiException, IOException { - return getApiCredentialDetails(null); - } - - /** - * Get API credential details - * - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link MeApiCredential } - * @throws ApiException if fails to make API call - */ - public MeApiCredential getApiCredentialDetails(RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/me", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null); - return MeApiCredential.fromJson(jsonResult); - } - - /** - * Remove allowed origin - * - * @param originId {@link String } Unique identifier of the allowed origin. (required) - * @throws ApiException if fails to make API call - */ - public void removeAllowedOrigin(String originId) throws ApiException, IOException { - removeAllowedOrigin(originId, null); - } - - /** - * Remove allowed origin - * - * @param originId {@link String } Unique identifier of the allowed origin. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void removeAllowedOrigin(String originId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (originId == null) { - throw new IllegalArgumentException("Please provide the originId path parameter"); + + /** + * Get allowed origins + * + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link AllowedOriginsResponse } + * @throws ApiException if fails to make API call + */ + public AllowedOriginsResponse getAllowedOrigins(RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/me/allowedOrigins", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null); + return AllowedOriginsResponse.fromJson(jsonResult); } - pathParams.put("originId", originId); - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/me/allowedOrigins/{originId}", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); - } + /** + * Get API credential details + * + * @return {@link MeApiCredential } + * @throws ApiException if fails to make API call + */ + public MeApiCredential getApiCredentialDetails() throws ApiException, IOException { + return getApiCredentialDetails(null); + } + + /** + * Get API credential details + * + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link MeApiCredential } + * @throws ApiException if fails to make API call + */ + public MeApiCredential getApiCredentialDetails(RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/me", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null); + return MeApiCredential.fromJson(jsonResult); + } + + /** + * Remove allowed origin + * + * @param originId {@link String } Unique identifier of the allowed origin. (required) + * @throws ApiException if fails to make API call + */ + public void removeAllowedOrigin(String originId) throws ApiException, IOException { + removeAllowedOrigin(originId, null); + } + + /** + * Remove allowed origin + * + * @param originId {@link String } Unique identifier of the allowed origin. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void removeAllowedOrigin(String originId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (originId == null) { + throw new IllegalArgumentException("Please provide the originId path parameter"); + } + pathParams.put("originId", originId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/me/allowedOrigins/{originId}", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); + } } diff --git a/src/main/java/com/adyen/service/management/PaymentMethodsMerchantLevelApi.java b/src/main/java/com/adyen/service/management/PaymentMethodsMerchantLevelApi.java index 2c79f81d7..2ee0eb33f 100644 --- a/src/main/java/com/adyen/service/management/PaymentMethodsMerchantLevelApi.java +++ b/src/main/java/com/adyen/service/management/PaymentMethodsMerchantLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,357 +14,287 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.management.ApplePayInfo; import com.adyen.model.management.PaymentMethod; import com.adyen.model.management.PaymentMethodResponse; import com.adyen.model.management.PaymentMethodSetupInfo; +import com.adyen.model.management.RestServiceError; import com.adyen.model.management.UpdatePaymentMethodInfo; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class PaymentMethodsMerchantLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * Payment methods - merchant level constructor in {@link com.adyen.service.management package}. - * - * @param client {@link Client } (required) - */ - public PaymentMethodsMerchantLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } + public static final String API_VERSION = "3"; - /** - * Payment methods - merchant level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or - * testing purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public PaymentMethodsMerchantLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + protected String baseURL; - /** - * Add an Apple Pay domain - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param paymentMethodId {@link String } The unique identifier of the payment method. (required) - * @param applePayInfo {@link ApplePayInfo } (required) - * @throws ApiException if fails to make API call - */ - public void addApplePayDomain( - String merchantId, String paymentMethodId, ApplePayInfo applePayInfo) - throws ApiException, IOException { - addApplePayDomain(merchantId, paymentMethodId, applePayInfo, null); - } - - /** - * Add an Apple Pay domain - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param paymentMethodId {@link String } The unique identifier of the payment method. (required) - * @param applePayInfo {@link ApplePayInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void addApplePayDomain( - String merchantId, - String paymentMethodId, - ApplePayInfo applePayInfo, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + /** + * Payment methods - merchant level constructor in {@link com.adyen.service.management package}. + * @param client {@link Client } (required) + */ + public PaymentMethodsMerchantLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); } - pathParams.put("merchantId", merchantId); - if (paymentMethodId == null) { - throw new IllegalArgumentException("Please provide the paymentMethodId path parameter"); + + /** + * Payment methods - merchant level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public PaymentMethodsMerchantLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - pathParams.put("paymentMethodId", paymentMethodId); - String requestBody = applePayInfo.toJson(); - Resource resource = - new Resource( - this, - this.baseURL - + "/merchants/{merchantId}/paymentMethodSettings/{paymentMethodId}/addApplePayDomains", - null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - } + /** + * Add an Apple Pay domain + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param paymentMethodId {@link String } The unique identifier of the payment method. (required) + * @param applePayInfo {@link ApplePayInfo } (required) + * @throws ApiException if fails to make API call + */ + public void addApplePayDomain(String merchantId, String paymentMethodId, ApplePayInfo applePayInfo) throws ApiException, IOException { + addApplePayDomain(merchantId, paymentMethodId, applePayInfo, null); + } - /** - * Get all payment methods - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @return {@link PaymentMethodResponse } - * @throws ApiException if fails to make API call - */ - public PaymentMethodResponse getAllPaymentMethods(String merchantId) - throws ApiException, IOException { - return getAllPaymentMethods(merchantId, null, null, null, null, null); - } + /** + * Add an Apple Pay domain + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param paymentMethodId {@link String } The unique identifier of the payment method. (required) + * @param applePayInfo {@link ApplePayInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void addApplePayDomain(String merchantId, String paymentMethodId, ApplePayInfo applePayInfo, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (paymentMethodId == null) { + throw new IllegalArgumentException("Please provide the paymentMethodId path parameter"); + } + pathParams.put("paymentMethodId", paymentMethodId); - /** - * Get all payment methods - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param storeId {@link String } Query: The unique identifier of the store for which to return - * the payment methods. (optional) - * @param businessLineId {@link String } Query: The unique identifier of the Business Line for - * which to return the payment methods. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The - * default is 10 items on a page. (optional) - * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PaymentMethodResponse } - * @throws ApiException if fails to make API call - */ - public PaymentMethodResponse getAllPaymentMethods( - String merchantId, - String storeId, - String businessLineId, - Integer pageSize, - Integer pageNumber, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + String requestBody = applePayInfo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/paymentMethodSettings/{paymentMethodId}/addApplePayDomains", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); } - pathParams.put("merchantId", merchantId); - // Add query params - Map queryParams = new HashMap<>(); - if (storeId != null) { - queryParams.put("storeId", storeId); - } - if (businessLineId != null) { - queryParams.put("businessLineId", businessLineId); - } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); - } - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); + /** + * Get all payment methods + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @return {@link PaymentMethodResponse } + * @throws ApiException if fails to make API call + */ + public PaymentMethodResponse getAllPaymentMethods(String merchantId) throws ApiException, IOException { + return getAllPaymentMethods(merchantId, null, null, null, null, null); } - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/merchants/{merchantId}/paymentMethodSettings", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return PaymentMethodResponse.fromJson(jsonResult); - } + /** + * Get all payment methods + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param storeId {@link String } Query: The unique identifier of the store for which to return the payment methods. (optional) + * @param businessLineId {@link String } Query: The unique identifier of the Business Line for which to return the payment methods. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The default is 10 items on a page. (optional) + * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PaymentMethodResponse } + * @throws ApiException if fails to make API call + */ + public PaymentMethodResponse getAllPaymentMethods(String merchantId, String storeId, String businessLineId, Integer pageSize, Integer pageNumber, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); - /** - * Get Apple Pay domains - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param paymentMethodId {@link String } The unique identifier of the payment method. (required) - * @return {@link ApplePayInfo } - * @throws ApiException if fails to make API call - */ - public ApplePayInfo getApplePayDomains(String merchantId, String paymentMethodId) - throws ApiException, IOException { - return getApplePayDomains(merchantId, paymentMethodId, null); - } + //Add query params + Map queryParams = new HashMap<>(); + if (storeId != null) { + queryParams.put("storeId", storeId); + } + if (businessLineId != null) { + queryParams.put("businessLineId", businessLineId); + } + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); + } + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); + } - /** - * Get Apple Pay domains - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param paymentMethodId {@link String } The unique identifier of the payment method. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ApplePayInfo } - * @throws ApiException if fails to make API call - */ - public ApplePayInfo getApplePayDomains( - String merchantId, String paymentMethodId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (paymentMethodId == null) { - throw new IllegalArgumentException("Please provide the paymentMethodId path parameter"); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/paymentMethodSettings", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return PaymentMethodResponse.fromJson(jsonResult); } - pathParams.put("paymentMethodId", paymentMethodId); - String requestBody = null; - Resource resource = - new Resource( - this, - this.baseURL - + "/merchants/{merchantId}/paymentMethodSettings/{paymentMethodId}/getApplePayDomains", - null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return ApplePayInfo.fromJson(jsonResult); - } + /** + * Get Apple Pay domains + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param paymentMethodId {@link String } The unique identifier of the payment method. (required) + * @return {@link ApplePayInfo } + * @throws ApiException if fails to make API call + */ + public ApplePayInfo getApplePayDomains(String merchantId, String paymentMethodId) throws ApiException, IOException { + return getApplePayDomains(merchantId, paymentMethodId, null); + } - /** - * Get payment method details - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param paymentMethodId {@link String } The unique identifier of the payment method. (required) - * @return {@link PaymentMethod } - * @throws ApiException if fails to make API call - */ - public PaymentMethod getPaymentMethodDetails(String merchantId, String paymentMethodId) - throws ApiException, IOException { - return getPaymentMethodDetails(merchantId, paymentMethodId, null); - } + /** + * Get Apple Pay domains + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param paymentMethodId {@link String } The unique identifier of the payment method. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ApplePayInfo } + * @throws ApiException if fails to make API call + */ + public ApplePayInfo getApplePayDomains(String merchantId, String paymentMethodId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (paymentMethodId == null) { + throw new IllegalArgumentException("Please provide the paymentMethodId path parameter"); + } + pathParams.put("paymentMethodId", paymentMethodId); - /** - * Get payment method details - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param paymentMethodId {@link String } The unique identifier of the payment method. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PaymentMethod } - * @throws ApiException if fails to make API call - */ - public PaymentMethod getPaymentMethodDetails( - String merchantId, String paymentMethodId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (paymentMethodId == null) { - throw new IllegalArgumentException("Please provide the paymentMethodId path parameter"); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/paymentMethodSettings/{paymentMethodId}/getApplePayDomains", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return ApplePayInfo.fromJson(jsonResult); } - pathParams.put("paymentMethodId", paymentMethodId); - String requestBody = null; - Resource resource = - new Resource( - this, - this.baseURL + "/merchants/{merchantId}/paymentMethodSettings/{paymentMethodId}", - null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return PaymentMethod.fromJson(jsonResult); - } + /** + * Get payment method details + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param paymentMethodId {@link String } The unique identifier of the payment method. (required) + * @return {@link PaymentMethod } + * @throws ApiException if fails to make API call + */ + public PaymentMethod getPaymentMethodDetails(String merchantId, String paymentMethodId) throws ApiException, IOException { + return getPaymentMethodDetails(merchantId, paymentMethodId, null); + } - /** - * Request a payment method - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param paymentMethodSetupInfo {@link PaymentMethodSetupInfo } (required) - * @return {@link PaymentMethod } - * @throws ApiException if fails to make API call - */ - public PaymentMethod requestPaymentMethod( - String merchantId, PaymentMethodSetupInfo paymentMethodSetupInfo) - throws ApiException, IOException { - return requestPaymentMethod(merchantId, paymentMethodSetupInfo, null); - } + /** + * Get payment method details + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param paymentMethodId {@link String } The unique identifier of the payment method. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PaymentMethod } + * @throws ApiException if fails to make API call + */ + public PaymentMethod getPaymentMethodDetails(String merchantId, String paymentMethodId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (paymentMethodId == null) { + throw new IllegalArgumentException("Please provide the paymentMethodId path parameter"); + } + pathParams.put("paymentMethodId", paymentMethodId); - /** - * Request a payment method - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param paymentMethodSetupInfo {@link PaymentMethodSetupInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PaymentMethod } - * @throws ApiException if fails to make API call - */ - public PaymentMethod requestPaymentMethod( - String merchantId, - PaymentMethodSetupInfo paymentMethodSetupInfo, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/paymentMethodSettings/{paymentMethodId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return PaymentMethod.fromJson(jsonResult); } - pathParams.put("merchantId", merchantId); - String requestBody = paymentMethodSetupInfo.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/merchants/{merchantId}/paymentMethodSettings", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return PaymentMethod.fromJson(jsonResult); - } + /** + * Request a payment method + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param paymentMethodSetupInfo {@link PaymentMethodSetupInfo } (required) + * @return {@link PaymentMethod } + * @throws ApiException if fails to make API call + */ + public PaymentMethod requestPaymentMethod(String merchantId, PaymentMethodSetupInfo paymentMethodSetupInfo) throws ApiException, IOException { + return requestPaymentMethod(merchantId, paymentMethodSetupInfo, null); + } - /** - * Update a payment method - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param paymentMethodId {@link String } The unique identifier of the payment method. (required) - * @param updatePaymentMethodInfo {@link UpdatePaymentMethodInfo } (required) - * @return {@link PaymentMethod } - * @throws ApiException if fails to make API call - */ - public PaymentMethod updatePaymentMethod( - String merchantId, String paymentMethodId, UpdatePaymentMethodInfo updatePaymentMethodInfo) - throws ApiException, IOException { - return updatePaymentMethod(merchantId, paymentMethodId, updatePaymentMethodInfo, null); - } + /** + * Request a payment method + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param paymentMethodSetupInfo {@link PaymentMethodSetupInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PaymentMethod } + * @throws ApiException if fails to make API call + */ + public PaymentMethod requestPaymentMethod(String merchantId, PaymentMethodSetupInfo paymentMethodSetupInfo, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); - /** - * Update a payment method - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param paymentMethodId {@link String } The unique identifier of the payment method. (required) - * @param updatePaymentMethodInfo {@link UpdatePaymentMethodInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PaymentMethod } - * @throws ApiException if fails to make API call - */ - public PaymentMethod updatePaymentMethod( - String merchantId, - String paymentMethodId, - UpdatePaymentMethodInfo updatePaymentMethodInfo, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + String requestBody = paymentMethodSetupInfo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/paymentMethodSettings", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return PaymentMethod.fromJson(jsonResult); } - pathParams.put("merchantId", merchantId); - if (paymentMethodId == null) { - throw new IllegalArgumentException("Please provide the paymentMethodId path parameter"); + + /** + * Update a payment method + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param paymentMethodId {@link String } The unique identifier of the payment method. (required) + * @param updatePaymentMethodInfo {@link UpdatePaymentMethodInfo } (required) + * @return {@link PaymentMethod } + * @throws ApiException if fails to make API call + */ + public PaymentMethod updatePaymentMethod(String merchantId, String paymentMethodId, UpdatePaymentMethodInfo updatePaymentMethodInfo) throws ApiException, IOException { + return updatePaymentMethod(merchantId, paymentMethodId, updatePaymentMethodInfo, null); } - pathParams.put("paymentMethodId", paymentMethodId); - String requestBody = updatePaymentMethodInfo.toJson(); - Resource resource = - new Resource( - this, - this.baseURL + "/merchants/{merchantId}/paymentMethodSettings/{paymentMethodId}", - null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return PaymentMethod.fromJson(jsonResult); - } + /** + * Update a payment method + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param paymentMethodId {@link String } The unique identifier of the payment method. (required) + * @param updatePaymentMethodInfo {@link UpdatePaymentMethodInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PaymentMethod } + * @throws ApiException if fails to make API call + */ + public PaymentMethod updatePaymentMethod(String merchantId, String paymentMethodId, UpdatePaymentMethodInfo updatePaymentMethodInfo, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (paymentMethodId == null) { + throw new IllegalArgumentException("Please provide the paymentMethodId path parameter"); + } + pathParams.put("paymentMethodId", paymentMethodId); + + String requestBody = updatePaymentMethodInfo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/paymentMethodSettings/{paymentMethodId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return PaymentMethod.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/PayoutSettingsMerchantLevelApi.java b/src/main/java/com/adyen/service/management/PayoutSettingsMerchantLevelApi.java index 9683792cb..34b42867f 100644 --- a/src/main/java/com/adyen/service/management/PayoutSettingsMerchantLevelApi.java +++ b/src/main/java/com/adyen/service/management/PayoutSettingsMerchantLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,265 +14,226 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.management.PayoutSettings; import com.adyen.model.management.PayoutSettingsRequest; import com.adyen.model.management.PayoutSettingsResponse; +import com.adyen.model.management.RestServiceError; import com.adyen.model.management.UpdatePayoutSettingsRequest; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class PayoutSettingsMerchantLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; + public static final String API_VERSION = "3"; - /** - * Payout settings - merchant level constructor in {@link com.adyen.service.management package}. - * - * @param client {@link Client } (required) - */ - public PayoutSettingsMerchantLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } + protected String baseURL; - /** - * Payout settings - merchant level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or - * testing purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public PayoutSettingsMerchantLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Add a payout setting - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param payoutSettingsRequest {@link PayoutSettingsRequest } (required) - * @return {@link PayoutSettings } - * @throws ApiException if fails to make API call - */ - public PayoutSettings addPayoutSetting( - String merchantId, PayoutSettingsRequest payoutSettingsRequest) - throws ApiException, IOException { - return addPayoutSetting(merchantId, payoutSettingsRequest, null); - } - - /** - * Add a payout setting - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param payoutSettingsRequest {@link PayoutSettingsRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PayoutSettings } - * @throws ApiException if fails to make API call - */ - public PayoutSettings addPayoutSetting( - String merchantId, PayoutSettingsRequest payoutSettingsRequest, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + /** + * Payout settings - merchant level constructor in {@link com.adyen.service.management package}. + * @param client {@link Client } (required) + */ + public PayoutSettingsMerchantLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); } - pathParams.put("merchantId", merchantId); - - String requestBody = payoutSettingsRequest.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/merchants/{merchantId}/payoutSettings", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return PayoutSettings.fromJson(jsonResult); - } - /** - * Delete a payout setting - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param payoutSettingsId {@link String } The unique identifier of the payout setting. (required) - * @throws ApiException if fails to make API call - */ - public void deletePayoutSetting(String merchantId, String payoutSettingsId) - throws ApiException, IOException { - deletePayoutSetting(merchantId, payoutSettingsId, null); - } - - /** - * Delete a payout setting - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param payoutSettingsId {@link String } The unique identifier of the payout setting. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void deletePayoutSetting( - String merchantId, String payoutSettingsId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (payoutSettingsId == null) { - throw new IllegalArgumentException("Please provide the payoutSettingsId path parameter"); + /** + * Payout settings - merchant level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public PayoutSettingsMerchantLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - pathParams.put("payoutSettingsId", payoutSettingsId); - String requestBody = null; - Resource resource = - new Resource( - this, this.baseURL + "/merchants/{merchantId}/payoutSettings/{payoutSettingsId}", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); - } - - /** - * Get a payout setting - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param payoutSettingsId {@link String } The unique identifier of the payout setting. (required) - * @return {@link PayoutSettings } - * @throws ApiException if fails to make API call - */ - public PayoutSettings getPayoutSetting(String merchantId, String payoutSettingsId) - throws ApiException, IOException { - return getPayoutSetting(merchantId, payoutSettingsId, null); - } - - /** - * Get a payout setting - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param payoutSettingsId {@link String } The unique identifier of the payout setting. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PayoutSettings } - * @throws ApiException if fails to make API call - */ - public PayoutSettings getPayoutSetting( - String merchantId, String payoutSettingsId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + /** + * Add a payout setting + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param payoutSettingsRequest {@link PayoutSettingsRequest } (required) + * @return {@link PayoutSettings } + * @throws ApiException if fails to make API call + */ + public PayoutSettings addPayoutSetting(String merchantId, PayoutSettingsRequest payoutSettingsRequest) throws ApiException, IOException { + return addPayoutSetting(merchantId, payoutSettingsRequest, null); } - pathParams.put("merchantId", merchantId); - if (payoutSettingsId == null) { - throw new IllegalArgumentException("Please provide the payoutSettingsId path parameter"); + + /** + * Add a payout setting + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param payoutSettingsRequest {@link PayoutSettingsRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PayoutSettings } + * @throws ApiException if fails to make API call + */ + public PayoutSettings addPayoutSetting(String merchantId, PayoutSettingsRequest payoutSettingsRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + + String requestBody = payoutSettingsRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/payoutSettings", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return PayoutSettings.fromJson(jsonResult); } - pathParams.put("payoutSettingsId", payoutSettingsId); - String requestBody = null; - Resource resource = - new Resource( - this, this.baseURL + "/merchants/{merchantId}/payoutSettings/{payoutSettingsId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return PayoutSettings.fromJson(jsonResult); - } + /** + * Delete a payout setting + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param payoutSettingsId {@link String } The unique identifier of the payout setting. (required) + * @throws ApiException if fails to make API call + */ + public void deletePayoutSetting(String merchantId, String payoutSettingsId) throws ApiException, IOException { + deletePayoutSetting(merchantId, payoutSettingsId, null); + } - /** - * Get a list of payout settings - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @return {@link PayoutSettingsResponse } - * @throws ApiException if fails to make API call - */ - public PayoutSettingsResponse listPayoutSettings(String merchantId) - throws ApiException, IOException { - return listPayoutSettings(merchantId, null); - } + /** + * Delete a payout setting + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param payoutSettingsId {@link String } The unique identifier of the payout setting. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void deletePayoutSetting(String merchantId, String payoutSettingsId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (payoutSettingsId == null) { + throw new IllegalArgumentException("Please provide the payoutSettingsId path parameter"); + } + pathParams.put("payoutSettingsId", payoutSettingsId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/payoutSettings/{payoutSettingsId}", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); + } - /** - * Get a list of payout settings - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PayoutSettingsResponse } - * @throws ApiException if fails to make API call - */ - public PayoutSettingsResponse listPayoutSettings(String merchantId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + /** + * Get a payout setting + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param payoutSettingsId {@link String } The unique identifier of the payout setting. (required) + * @return {@link PayoutSettings } + * @throws ApiException if fails to make API call + */ + public PayoutSettings getPayoutSetting(String merchantId, String payoutSettingsId) throws ApiException, IOException { + return getPayoutSetting(merchantId, payoutSettingsId, null); } - pathParams.put("merchantId", merchantId); - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/merchants/{merchantId}/payoutSettings", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return PayoutSettingsResponse.fromJson(jsonResult); - } + /** + * Get a payout setting + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param payoutSettingsId {@link String } The unique identifier of the payout setting. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PayoutSettings } + * @throws ApiException if fails to make API call + */ + public PayoutSettings getPayoutSetting(String merchantId, String payoutSettingsId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (payoutSettingsId == null) { + throw new IllegalArgumentException("Please provide the payoutSettingsId path parameter"); + } + pathParams.put("payoutSettingsId", payoutSettingsId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/payoutSettings/{payoutSettingsId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return PayoutSettings.fromJson(jsonResult); + } - /** - * Update a payout setting - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param payoutSettingsId {@link String } The unique identifier of the payout setting. (required) - * @param updatePayoutSettingsRequest {@link UpdatePayoutSettingsRequest } (required) - * @return {@link PayoutSettings } - * @throws ApiException if fails to make API call - */ - public PayoutSettings updatePayoutSetting( - String merchantId, - String payoutSettingsId, - UpdatePayoutSettingsRequest updatePayoutSettingsRequest) - throws ApiException, IOException { - return updatePayoutSetting(merchantId, payoutSettingsId, updatePayoutSettingsRequest, null); - } + /** + * Get a list of payout settings + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @return {@link PayoutSettingsResponse } + * @throws ApiException if fails to make API call + */ + public PayoutSettingsResponse listPayoutSettings(String merchantId) throws ApiException, IOException { + return listPayoutSettings(merchantId, null); + } - /** - * Update a payout setting - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param payoutSettingsId {@link String } The unique identifier of the payout setting. (required) - * @param updatePayoutSettingsRequest {@link UpdatePayoutSettingsRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PayoutSettings } - * @throws ApiException if fails to make API call - */ - public PayoutSettings updatePayoutSetting( - String merchantId, - String payoutSettingsId, - UpdatePayoutSettingsRequest updatePayoutSettingsRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + /** + * Get a list of payout settings + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PayoutSettingsResponse } + * @throws ApiException if fails to make API call + */ + public PayoutSettingsResponse listPayoutSettings(String merchantId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/payoutSettings", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return PayoutSettingsResponse.fromJson(jsonResult); } - pathParams.put("merchantId", merchantId); - if (payoutSettingsId == null) { - throw new IllegalArgumentException("Please provide the payoutSettingsId path parameter"); + + /** + * Update a payout setting + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param payoutSettingsId {@link String } The unique identifier of the payout setting. (required) + * @param updatePayoutSettingsRequest {@link UpdatePayoutSettingsRequest } (required) + * @return {@link PayoutSettings } + * @throws ApiException if fails to make API call + */ + public PayoutSettings updatePayoutSetting(String merchantId, String payoutSettingsId, UpdatePayoutSettingsRequest updatePayoutSettingsRequest) throws ApiException, IOException { + return updatePayoutSetting(merchantId, payoutSettingsId, updatePayoutSettingsRequest, null); } - pathParams.put("payoutSettingsId", payoutSettingsId); - String requestBody = updatePayoutSettingsRequest.toJson(); - Resource resource = - new Resource( - this, this.baseURL + "/merchants/{merchantId}/payoutSettings/{payoutSettingsId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return PayoutSettings.fromJson(jsonResult); - } + /** + * Update a payout setting + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param payoutSettingsId {@link String } The unique identifier of the payout setting. (required) + * @param updatePayoutSettingsRequest {@link UpdatePayoutSettingsRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PayoutSettings } + * @throws ApiException if fails to make API call + */ + public PayoutSettings updatePayoutSetting(String merchantId, String payoutSettingsId, UpdatePayoutSettingsRequest updatePayoutSettingsRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (payoutSettingsId == null) { + throw new IllegalArgumentException("Please provide the payoutSettingsId path parameter"); + } + pathParams.put("payoutSettingsId", payoutSettingsId); + + String requestBody = updatePayoutSettingsRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/payoutSettings/{payoutSettingsId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return PayoutSettings.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/SplitConfigurationMerchantLevelApi.java b/src/main/java/com/adyen/service/management/SplitConfigurationMerchantLevelApi.java index 0713c7378..e9f365af9 100644 --- a/src/main/java/com/adyen/service/management/SplitConfigurationMerchantLevelApi.java +++ b/src/main/java/com/adyen/service/management/SplitConfigurationMerchantLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,553 +14,417 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; +import com.adyen.model.management.RestServiceError; import com.adyen.model.management.SplitConfiguration; import com.adyen.model.management.SplitConfigurationList; import com.adyen.model.management.SplitConfigurationRule; import com.adyen.model.management.UpdateSplitConfigurationLogicRequest; import com.adyen.model.management.UpdateSplitConfigurationRequest; import com.adyen.model.management.UpdateSplitConfigurationRuleRequest; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class SplitConfigurationMerchantLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * Split configuration - merchant level constructor in {@link com.adyen.service.management - * package}. - * - * @param client {@link Client } (required) - */ - public SplitConfigurationMerchantLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } - - /** - * Split configuration - merchant level constructor in {@link com.adyen.service.management - * package}. Please use this constructor only if you would like to pass along your own url for - * routing or testing purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public SplitConfigurationMerchantLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Create a rule - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param splitConfigurationId {@link String } The unique identifier of the split configuration. - * (required) - * @param splitConfigurationRule {@link SplitConfigurationRule } (required) - * @return {@link SplitConfiguration } - * @throws ApiException if fails to make API call - */ - public SplitConfiguration createRule( - String merchantId, String splitConfigurationId, SplitConfigurationRule splitConfigurationRule) - throws ApiException, IOException { - return createRule(merchantId, splitConfigurationId, splitConfigurationRule, null); - } - - /** - * Create a rule - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param splitConfigurationId {@link String } The unique identifier of the split configuration. - * (required) - * @param splitConfigurationRule {@link SplitConfigurationRule } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link SplitConfiguration } - * @throws ApiException if fails to make API call - */ - public SplitConfiguration createRule( - String merchantId, - String splitConfigurationId, - SplitConfigurationRule splitConfigurationRule, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * Split configuration - merchant level constructor in {@link com.adyen.service.management package}. + * @param client {@link Client } (required) + */ + public SplitConfigurationMerchantLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); } - pathParams.put("merchantId", merchantId); - if (splitConfigurationId == null) { - throw new IllegalArgumentException("Please provide the splitConfigurationId path parameter"); + + /** + * Split configuration - merchant level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public SplitConfigurationMerchantLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - pathParams.put("splitConfigurationId", splitConfigurationId); - - String requestBody = splitConfigurationRule.toJson(); - Resource resource = - new Resource( - this, - this.baseURL + "/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}", - null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return SplitConfiguration.fromJson(jsonResult); - } - - /** - * Create a split configuration - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param splitConfiguration {@link SplitConfiguration } (required) - * @return {@link SplitConfiguration } - * @throws ApiException if fails to make API call - */ - public SplitConfiguration createSplitConfiguration( - String merchantId, SplitConfiguration splitConfiguration) throws ApiException, IOException { - return createSplitConfiguration(merchantId, splitConfiguration, null); - } - - /** - * Create a split configuration - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param splitConfiguration {@link SplitConfiguration } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link SplitConfiguration } - * @throws ApiException if fails to make API call - */ - public SplitConfiguration createSplitConfiguration( - String merchantId, SplitConfiguration splitConfiguration, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + + /** + * Create a rule + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param splitConfigurationId {@link String } The unique identifier of the split configuration. (required) + * @param splitConfigurationRule {@link SplitConfigurationRule } (required) + * @return {@link SplitConfiguration } + * @throws ApiException if fails to make API call + */ + public SplitConfiguration createRule(String merchantId, String splitConfigurationId, SplitConfigurationRule splitConfigurationRule) throws ApiException, IOException { + return createRule(merchantId, splitConfigurationId, splitConfigurationRule, null); } - pathParams.put("merchantId", merchantId); - - String requestBody = splitConfiguration.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/merchants/{merchantId}/splitConfigurations", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return SplitConfiguration.fromJson(jsonResult); - } - - /** - * Delete a split configuration - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param splitConfigurationId {@link String } The unique identifier of the split configuration. - * (required) - * @return {@link SplitConfiguration } - * @throws ApiException if fails to make API call - */ - public SplitConfiguration deleteSplitConfiguration(String merchantId, String splitConfigurationId) - throws ApiException, IOException { - return deleteSplitConfiguration(merchantId, splitConfigurationId, null); - } - - /** - * Delete a split configuration - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param splitConfigurationId {@link String } The unique identifier of the split configuration. - * (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link SplitConfiguration } - * @throws ApiException if fails to make API call - */ - public SplitConfiguration deleteSplitConfiguration( - String merchantId, String splitConfigurationId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + + /** + * Create a rule + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param splitConfigurationId {@link String } The unique identifier of the split configuration. (required) + * @param splitConfigurationRule {@link SplitConfigurationRule } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link SplitConfiguration } + * @throws ApiException if fails to make API call + */ + public SplitConfiguration createRule(String merchantId, String splitConfigurationId, SplitConfigurationRule splitConfigurationRule, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (splitConfigurationId == null) { + throw new IllegalArgumentException("Please provide the splitConfigurationId path parameter"); + } + pathParams.put("splitConfigurationId", splitConfigurationId); + + String requestBody = splitConfigurationRule.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return SplitConfiguration.fromJson(jsonResult); } - pathParams.put("merchantId", merchantId); - if (splitConfigurationId == null) { - throw new IllegalArgumentException("Please provide the splitConfigurationId path parameter"); + + /** + * Create a split configuration + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param splitConfiguration {@link SplitConfiguration } (required) + * @return {@link SplitConfiguration } + * @throws ApiException if fails to make API call + */ + public SplitConfiguration createSplitConfiguration(String merchantId, SplitConfiguration splitConfiguration) throws ApiException, IOException { + return createSplitConfiguration(merchantId, splitConfiguration, null); } - pathParams.put("splitConfigurationId", splitConfigurationId); - - String requestBody = null; - Resource resource = - new Resource( - this, - this.baseURL + "/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}", - null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); - return SplitConfiguration.fromJson(jsonResult); - } - - /** - * Delete a split configuration rule - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param splitConfigurationId {@link String } The unique identifier of the split configuration. - * (required) - * @param ruleId {@link String } (required) - * @return {@link SplitConfiguration } - * @throws ApiException if fails to make API call - */ - public SplitConfiguration deleteSplitConfigurationRule( - String merchantId, String splitConfigurationId, String ruleId) - throws ApiException, IOException { - return deleteSplitConfigurationRule(merchantId, splitConfigurationId, ruleId, null); - } - - /** - * Delete a split configuration rule - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param splitConfigurationId {@link String } The unique identifier of the split configuration. - * (required) - * @param ruleId {@link String } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link SplitConfiguration } - * @throws ApiException if fails to make API call - */ - public SplitConfiguration deleteSplitConfigurationRule( - String merchantId, String splitConfigurationId, String ruleId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + + /** + * Create a split configuration + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param splitConfiguration {@link SplitConfiguration } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link SplitConfiguration } + * @throws ApiException if fails to make API call + */ + public SplitConfiguration createSplitConfiguration(String merchantId, SplitConfiguration splitConfiguration, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + + String requestBody = splitConfiguration.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/splitConfigurations", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return SplitConfiguration.fromJson(jsonResult); } - pathParams.put("merchantId", merchantId); - if (splitConfigurationId == null) { - throw new IllegalArgumentException("Please provide the splitConfigurationId path parameter"); + + /** + * Delete a split configuration + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param splitConfigurationId {@link String } The unique identifier of the split configuration. (required) + * @return {@link SplitConfiguration } + * @throws ApiException if fails to make API call + */ + public SplitConfiguration deleteSplitConfiguration(String merchantId, String splitConfigurationId) throws ApiException, IOException { + return deleteSplitConfiguration(merchantId, splitConfigurationId, null); } - pathParams.put("splitConfigurationId", splitConfigurationId); - if (ruleId == null) { - throw new IllegalArgumentException("Please provide the ruleId path parameter"); + + /** + * Delete a split configuration + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param splitConfigurationId {@link String } The unique identifier of the split configuration. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link SplitConfiguration } + * @throws ApiException if fails to make API call + */ + public SplitConfiguration deleteSplitConfiguration(String merchantId, String splitConfigurationId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (splitConfigurationId == null) { + throw new IllegalArgumentException("Please provide the splitConfigurationId path parameter"); + } + pathParams.put("splitConfigurationId", splitConfigurationId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); + return SplitConfiguration.fromJson(jsonResult); } - pathParams.put("ruleId", ruleId); - - String requestBody = null; - Resource resource = - new Resource( - this, - this.baseURL - + "/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}/rules/{ruleId}", - null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); - return SplitConfiguration.fromJson(jsonResult); - } - - /** - * Get a split configuration - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param splitConfigurationId {@link String } The unique identifier of the split configuration. - * (required) - * @return {@link SplitConfiguration } - * @throws ApiException if fails to make API call - */ - public SplitConfiguration getSplitConfiguration(String merchantId, String splitConfigurationId) - throws ApiException, IOException { - return getSplitConfiguration(merchantId, splitConfigurationId, null); - } - - /** - * Get a split configuration - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param splitConfigurationId {@link String } The unique identifier of the split configuration. - * (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link SplitConfiguration } - * @throws ApiException if fails to make API call - */ - public SplitConfiguration getSplitConfiguration( - String merchantId, String splitConfigurationId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + + /** + * Delete a split configuration rule + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param splitConfigurationId {@link String } The unique identifier of the split configuration. (required) + * @param ruleId {@link String } (required) + * @return {@link SplitConfiguration } + * @throws ApiException if fails to make API call + */ + public SplitConfiguration deleteSplitConfigurationRule(String merchantId, String splitConfigurationId, String ruleId) throws ApiException, IOException { + return deleteSplitConfigurationRule(merchantId, splitConfigurationId, ruleId, null); } - pathParams.put("merchantId", merchantId); - if (splitConfigurationId == null) { - throw new IllegalArgumentException("Please provide the splitConfigurationId path parameter"); + + /** + * Delete a split configuration rule + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param splitConfigurationId {@link String } The unique identifier of the split configuration. (required) + * @param ruleId {@link String } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link SplitConfiguration } + * @throws ApiException if fails to make API call + */ + public SplitConfiguration deleteSplitConfigurationRule(String merchantId, String splitConfigurationId, String ruleId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (splitConfigurationId == null) { + throw new IllegalArgumentException("Please provide the splitConfigurationId path parameter"); + } + pathParams.put("splitConfigurationId", splitConfigurationId); + if (ruleId == null) { + throw new IllegalArgumentException("Please provide the ruleId path parameter"); + } + pathParams.put("ruleId", ruleId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}/rules/{ruleId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); + return SplitConfiguration.fromJson(jsonResult); } - pathParams.put("splitConfigurationId", splitConfigurationId); - - String requestBody = null; - Resource resource = - new Resource( - this, - this.baseURL + "/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}", - null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return SplitConfiguration.fromJson(jsonResult); - } - - /** - * Get a list of split configurations - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @return {@link SplitConfigurationList } - * @throws ApiException if fails to make API call - */ - public SplitConfigurationList listSplitConfigurations(String merchantId) - throws ApiException, IOException { - return listSplitConfigurations(merchantId, null); - } - - /** - * Get a list of split configurations - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link SplitConfigurationList } - * @throws ApiException if fails to make API call - */ - public SplitConfigurationList listSplitConfigurations( - String merchantId, RequestOptions requestOptions) throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + + /** + * Get a split configuration + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param splitConfigurationId {@link String } The unique identifier of the split configuration. (required) + * @return {@link SplitConfiguration } + * @throws ApiException if fails to make API call + */ + public SplitConfiguration getSplitConfiguration(String merchantId, String splitConfigurationId) throws ApiException, IOException { + return getSplitConfiguration(merchantId, splitConfigurationId, null); } - pathParams.put("merchantId", merchantId); - - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/merchants/{merchantId}/splitConfigurations", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return SplitConfigurationList.fromJson(jsonResult); - } - - /** - * Update split conditions - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param splitConfigurationId {@link String } The identifier of the split configuration. - * (required) - * @param ruleId {@link String } The unique identifier of the split configuration rule. (required) - * @param updateSplitConfigurationRuleRequest {@link UpdateSplitConfigurationRuleRequest } - * (required) - * @return {@link SplitConfiguration } - * @throws ApiException if fails to make API call - */ - public SplitConfiguration updateSplitConditions( - String merchantId, - String splitConfigurationId, - String ruleId, - UpdateSplitConfigurationRuleRequest updateSplitConfigurationRuleRequest) - throws ApiException, IOException { - return updateSplitConditions( - merchantId, splitConfigurationId, ruleId, updateSplitConfigurationRuleRequest, null); - } - - /** - * Update split conditions - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param splitConfigurationId {@link String } The identifier of the split configuration. - * (required) - * @param ruleId {@link String } The unique identifier of the split configuration rule. (required) - * @param updateSplitConfigurationRuleRequest {@link UpdateSplitConfigurationRuleRequest } - * (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link SplitConfiguration } - * @throws ApiException if fails to make API call - */ - public SplitConfiguration updateSplitConditions( - String merchantId, - String splitConfigurationId, - String ruleId, - UpdateSplitConfigurationRuleRequest updateSplitConfigurationRuleRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + + /** + * Get a split configuration + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param splitConfigurationId {@link String } The unique identifier of the split configuration. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link SplitConfiguration } + * @throws ApiException if fails to make API call + */ + public SplitConfiguration getSplitConfiguration(String merchantId, String splitConfigurationId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (splitConfigurationId == null) { + throw new IllegalArgumentException("Please provide the splitConfigurationId path parameter"); + } + pathParams.put("splitConfigurationId", splitConfigurationId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return SplitConfiguration.fromJson(jsonResult); } - pathParams.put("merchantId", merchantId); - if (splitConfigurationId == null) { - throw new IllegalArgumentException("Please provide the splitConfigurationId path parameter"); + + /** + * Get a list of split configurations + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @return {@link SplitConfigurationList } + * @throws ApiException if fails to make API call + */ + public SplitConfigurationList listSplitConfigurations(String merchantId) throws ApiException, IOException { + return listSplitConfigurations(merchantId, null); } - pathParams.put("splitConfigurationId", splitConfigurationId); - if (ruleId == null) { - throw new IllegalArgumentException("Please provide the ruleId path parameter"); + + /** + * Get a list of split configurations + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link SplitConfigurationList } + * @throws ApiException if fails to make API call + */ + public SplitConfigurationList listSplitConfigurations(String merchantId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/splitConfigurations", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return SplitConfigurationList.fromJson(jsonResult); } - pathParams.put("ruleId", ruleId); - - String requestBody = updateSplitConfigurationRuleRequest.toJson(); - Resource resource = - new Resource( - this, - this.baseURL - + "/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}/rules/{ruleId}", - null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return SplitConfiguration.fromJson(jsonResult); - } - - /** - * Update split configuration description - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param splitConfigurationId {@link String } The unique identifier of the split configuration. - * (required) - * @param updateSplitConfigurationRequest {@link UpdateSplitConfigurationRequest } (required) - * @return {@link SplitConfiguration } - * @throws ApiException if fails to make API call - */ - public SplitConfiguration updateSplitConfigurationDescription( - String merchantId, - String splitConfigurationId, - UpdateSplitConfigurationRequest updateSplitConfigurationRequest) - throws ApiException, IOException { - return updateSplitConfigurationDescription( - merchantId, splitConfigurationId, updateSplitConfigurationRequest, null); - } - - /** - * Update split configuration description - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param splitConfigurationId {@link String } The unique identifier of the split configuration. - * (required) - * @param updateSplitConfigurationRequest {@link UpdateSplitConfigurationRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link SplitConfiguration } - * @throws ApiException if fails to make API call - */ - public SplitConfiguration updateSplitConfigurationDescription( - String merchantId, - String splitConfigurationId, - UpdateSplitConfigurationRequest updateSplitConfigurationRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + + /** + * Update split conditions + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param splitConfigurationId {@link String } The identifier of the split configuration. (required) + * @param ruleId {@link String } The unique identifier of the split configuration rule. (required) + * @param updateSplitConfigurationRuleRequest {@link UpdateSplitConfigurationRuleRequest } (required) + * @return {@link SplitConfiguration } + * @throws ApiException if fails to make API call + */ + public SplitConfiguration updateSplitConditions(String merchantId, String splitConfigurationId, String ruleId, UpdateSplitConfigurationRuleRequest updateSplitConfigurationRuleRequest) throws ApiException, IOException { + return updateSplitConditions(merchantId, splitConfigurationId, ruleId, updateSplitConfigurationRuleRequest, null); } - pathParams.put("merchantId", merchantId); - if (splitConfigurationId == null) { - throw new IllegalArgumentException("Please provide the splitConfigurationId path parameter"); + + /** + * Update split conditions + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param splitConfigurationId {@link String } The identifier of the split configuration. (required) + * @param ruleId {@link String } The unique identifier of the split configuration rule. (required) + * @param updateSplitConfigurationRuleRequest {@link UpdateSplitConfigurationRuleRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link SplitConfiguration } + * @throws ApiException if fails to make API call + */ + public SplitConfiguration updateSplitConditions(String merchantId, String splitConfigurationId, String ruleId, UpdateSplitConfigurationRuleRequest updateSplitConfigurationRuleRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (splitConfigurationId == null) { + throw new IllegalArgumentException("Please provide the splitConfigurationId path parameter"); + } + pathParams.put("splitConfigurationId", splitConfigurationId); + if (ruleId == null) { + throw new IllegalArgumentException("Please provide the ruleId path parameter"); + } + pathParams.put("ruleId", ruleId); + + String requestBody = updateSplitConfigurationRuleRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}/rules/{ruleId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return SplitConfiguration.fromJson(jsonResult); } - pathParams.put("splitConfigurationId", splitConfigurationId); - - String requestBody = updateSplitConfigurationRequest.toJson(); - Resource resource = - new Resource( - this, - this.baseURL + "/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}", - null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return SplitConfiguration.fromJson(jsonResult); - } - - /** - * Update the split logic - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param splitConfigurationId {@link String } The unique identifier of the split configuration. - * (required) - * @param ruleId {@link String } The unique identifier of the split configuration rule. (required) - * @param splitLogicId {@link String } The unique identifier of the split configuration split. - * (required) - * @param updateSplitConfigurationLogicRequest {@link UpdateSplitConfigurationLogicRequest } - * (required) - * @return {@link SplitConfiguration } - * @throws ApiException if fails to make API call - */ - public SplitConfiguration updateSplitLogic( - String merchantId, - String splitConfigurationId, - String ruleId, - String splitLogicId, - UpdateSplitConfigurationLogicRequest updateSplitConfigurationLogicRequest) - throws ApiException, IOException { - return updateSplitLogic( - merchantId, - splitConfigurationId, - ruleId, - splitLogicId, - updateSplitConfigurationLogicRequest, - null); - } - - /** - * Update the split logic - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param splitConfigurationId {@link String } The unique identifier of the split configuration. - * (required) - * @param ruleId {@link String } The unique identifier of the split configuration rule. (required) - * @param splitLogicId {@link String } The unique identifier of the split configuration split. - * (required) - * @param updateSplitConfigurationLogicRequest {@link UpdateSplitConfigurationLogicRequest } - * (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link SplitConfiguration } - * @throws ApiException if fails to make API call - */ - public SplitConfiguration updateSplitLogic( - String merchantId, - String splitConfigurationId, - String ruleId, - String splitLogicId, - UpdateSplitConfigurationLogicRequest updateSplitConfigurationLogicRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + + /** + * Update split configuration description + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param splitConfigurationId {@link String } The unique identifier of the split configuration. (required) + * @param updateSplitConfigurationRequest {@link UpdateSplitConfigurationRequest } (required) + * @return {@link SplitConfiguration } + * @throws ApiException if fails to make API call + */ + public SplitConfiguration updateSplitConfigurationDescription(String merchantId, String splitConfigurationId, UpdateSplitConfigurationRequest updateSplitConfigurationRequest) throws ApiException, IOException { + return updateSplitConfigurationDescription(merchantId, splitConfigurationId, updateSplitConfigurationRequest, null); } - pathParams.put("merchantId", merchantId); - if (splitConfigurationId == null) { - throw new IllegalArgumentException("Please provide the splitConfigurationId path parameter"); + + /** + * Update split configuration description + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param splitConfigurationId {@link String } The unique identifier of the split configuration. (required) + * @param updateSplitConfigurationRequest {@link UpdateSplitConfigurationRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link SplitConfiguration } + * @throws ApiException if fails to make API call + */ + public SplitConfiguration updateSplitConfigurationDescription(String merchantId, String splitConfigurationId, UpdateSplitConfigurationRequest updateSplitConfigurationRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (splitConfigurationId == null) { + throw new IllegalArgumentException("Please provide the splitConfigurationId path parameter"); + } + pathParams.put("splitConfigurationId", splitConfigurationId); + + String requestBody = updateSplitConfigurationRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return SplitConfiguration.fromJson(jsonResult); } - pathParams.put("splitConfigurationId", splitConfigurationId); - if (ruleId == null) { - throw new IllegalArgumentException("Please provide the ruleId path parameter"); + + /** + * Update the split logic + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param splitConfigurationId {@link String } The unique identifier of the split configuration. (required) + * @param ruleId {@link String } The unique identifier of the split configuration rule. (required) + * @param splitLogicId {@link String } The unique identifier of the split configuration split. (required) + * @param updateSplitConfigurationLogicRequest {@link UpdateSplitConfigurationLogicRequest } (required) + * @return {@link SplitConfiguration } + * @throws ApiException if fails to make API call + */ + public SplitConfiguration updateSplitLogic(String merchantId, String splitConfigurationId, String ruleId, String splitLogicId, UpdateSplitConfigurationLogicRequest updateSplitConfigurationLogicRequest) throws ApiException, IOException { + return updateSplitLogic(merchantId, splitConfigurationId, ruleId, splitLogicId, updateSplitConfigurationLogicRequest, null); } - pathParams.put("ruleId", ruleId); - if (splitLogicId == null) { - throw new IllegalArgumentException("Please provide the splitLogicId path parameter"); + + /** + * Update the split logic + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param splitConfigurationId {@link String } The unique identifier of the split configuration. (required) + * @param ruleId {@link String } The unique identifier of the split configuration rule. (required) + * @param splitLogicId {@link String } The unique identifier of the split configuration split. (required) + * @param updateSplitConfigurationLogicRequest {@link UpdateSplitConfigurationLogicRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link SplitConfiguration } + * @throws ApiException if fails to make API call + */ + public SplitConfiguration updateSplitLogic(String merchantId, String splitConfigurationId, String ruleId, String splitLogicId, UpdateSplitConfigurationLogicRequest updateSplitConfigurationLogicRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (splitConfigurationId == null) { + throw new IllegalArgumentException("Please provide the splitConfigurationId path parameter"); + } + pathParams.put("splitConfigurationId", splitConfigurationId); + if (ruleId == null) { + throw new IllegalArgumentException("Please provide the ruleId path parameter"); + } + pathParams.put("ruleId", ruleId); + if (splitLogicId == null) { + throw new IllegalArgumentException("Please provide the splitLogicId path parameter"); + } + pathParams.put("splitLogicId", splitLogicId); + + String requestBody = updateSplitConfigurationLogicRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}/rules/{ruleId}/splitLogic/{splitLogicId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return SplitConfiguration.fromJson(jsonResult); } - pathParams.put("splitLogicId", splitLogicId); - - String requestBody = updateSplitConfigurationLogicRequest.toJson(); - Resource resource = - new Resource( - this, - this.baseURL - + "/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}/rules/{ruleId}/splitLogic/{splitLogicId}", - null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return SplitConfiguration.fromJson(jsonResult); - } } diff --git a/src/main/java/com/adyen/service/management/TerminalActionsCompanyLevelApi.java b/src/main/java/com/adyen/service/management/TerminalActionsCompanyLevelApi.java index ce4bc0026..72f5ba3e0 100644 --- a/src/main/java/com/adyen/service/management/TerminalActionsCompanyLevelApi.java +++ b/src/main/java/com/adyen/service/management/TerminalActionsCompanyLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,156 +14,131 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.management.ExternalTerminalAction; import com.adyen.model.management.ListExternalTerminalActionsResponse; +import com.adyen.model.management.RestServiceError; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class TerminalActionsCompanyLevelApi extends Service { - public static final String API_VERSION = "3"; + public static final String API_VERSION = "3"; - protected String baseURL; + protected String baseURL; - /** - * Terminal actions - company level constructor in {@link com.adyen.service.management package}. - * - * @param client {@link Client } (required) - */ - public TerminalActionsCompanyLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } - - /** - * Terminal actions - company level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or - * testing purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public TerminalActionsCompanyLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Get terminal action - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param actionId {@link String } The unique identifier of the terminal action. (required) - * @return {@link ExternalTerminalAction } - * @throws ApiException if fails to make API call - */ - public ExternalTerminalAction getTerminalAction(String companyId, String actionId) - throws ApiException, IOException { - return getTerminalAction(companyId, actionId, null); - } - - /** - * Get terminal action - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param actionId {@link String } The unique identifier of the terminal action. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ExternalTerminalAction } - * @throws ApiException if fails to make API call - */ - public ExternalTerminalAction getTerminalAction( - String companyId, String actionId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + /** + * Terminal actions - company level constructor in {@link com.adyen.service.management package}. + * @param client {@link Client } (required) + */ + public TerminalActionsCompanyLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); } - pathParams.put("companyId", companyId); - if (actionId == null) { - throw new IllegalArgumentException("Please provide the actionId path parameter"); + + /** + * Terminal actions - company level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public TerminalActionsCompanyLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - pathParams.put("actionId", actionId); - String requestBody = null; - Resource resource = - new Resource( - this, this.baseURL + "/companies/{companyId}/terminalActions/{actionId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return ExternalTerminalAction.fromJson(jsonResult); - } + /** + * Get terminal action + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param actionId {@link String } The unique identifier of the terminal action. (required) + * @return {@link ExternalTerminalAction } + * @throws ApiException if fails to make API call + */ + public ExternalTerminalAction getTerminalAction(String companyId, String actionId) throws ApiException, IOException { + return getTerminalAction(companyId, actionId, null); + } - /** - * Get a list of terminal actions - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @return {@link ListExternalTerminalActionsResponse } - * @throws ApiException if fails to make API call - */ - public ListExternalTerminalActionsResponse listTerminalActions(String companyId) - throws ApiException, IOException { - return listTerminalActions(companyId, null, null, null, null, null); - } + /** + * Get terminal action + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param actionId {@link String } The unique identifier of the terminal action. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ExternalTerminalAction } + * @throws ApiException if fails to make API call + */ + public ExternalTerminalAction getTerminalAction(String companyId, String actionId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + if (actionId == null) { + throw new IllegalArgumentException("Please provide the actionId path parameter"); + } + pathParams.put("actionId", actionId); - /** - * Get a list of terminal actions - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The - * default is 20 items on a page. (optional) - * @param status {@link String } Query: Returns terminal actions with the specified status. - * Allowed values: **pending**, **successful**, **failed**, **cancelled**, **tryLater**. - * (optional) - * @param type {@link String } Query: Returns terminal actions of the specified type. Allowed - * values: **InstallAndroidApp**, **UninstallAndroidApp**, **InstallAndroidCertificate**, - * **UninstallAndroidCertificate**. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ListExternalTerminalActionsResponse } - * @throws ApiException if fails to make API call - */ - public ListExternalTerminalActionsResponse listTerminalActions( - String companyId, - Integer pageNumber, - Integer pageSize, - String status, - String type, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/terminalActions/{actionId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return ExternalTerminalAction.fromJson(jsonResult); } - pathParams.put("companyId", companyId); - // Add query params - Map queryParams = new HashMap<>(); - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); - } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); - } - if (status != null) { - queryParams.put("status", status); - } - if (type != null) { - queryParams.put("type", type); + /** + * Get a list of terminal actions + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @return {@link ListExternalTerminalActionsResponse } + * @throws ApiException if fails to make API call + */ + public ListExternalTerminalActionsResponse listTerminalActions(String companyId) throws ApiException, IOException { + return listTerminalActions(companyId, null, null, null, null, null); } - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/companies/{companyId}/terminalActions", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return ListExternalTerminalActionsResponse.fromJson(jsonResult); - } + /** + * Get a list of terminal actions + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The default is 20 items on a page. (optional) + * @param status {@link String } Query: Returns terminal actions with the specified status. Allowed values: **pending**, **successful**, **failed**, **cancelled**, **tryLater**. (optional) + * @param type {@link String } Query: Returns terminal actions of the specified type. Allowed values: **InstallAndroidApp**, **UninstallAndroidApp**, **InstallAndroidCertificate**, **UninstallAndroidCertificate**. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ListExternalTerminalActionsResponse } + * @throws ApiException if fails to make API call + */ + public ListExternalTerminalActionsResponse listTerminalActions(String companyId, Integer pageNumber, Integer pageSize, String status, String type, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + + //Add query params + Map queryParams = new HashMap<>(); + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); + } + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); + } + if (status != null) { + queryParams.put("status", status); + } + if (type != null) { + queryParams.put("type", type); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/terminalActions", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return ListExternalTerminalActionsResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/TerminalActionsTerminalLevelApi.java b/src/main/java/com/adyen/service/management/TerminalActionsTerminalLevelApi.java index c16269281..9ab09e324 100644 --- a/src/main/java/com/adyen/service/management/TerminalActionsTerminalLevelApi.java +++ b/src/main/java/com/adyen/service/management/TerminalActionsTerminalLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,71 +14,66 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; +import com.adyen.model.management.RestServiceError; import com.adyen.model.management.ScheduleTerminalActionsRequest; import com.adyen.model.management.ScheduleTerminalActionsResponse; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; +import java.util.HashMap; +import java.util.Map; public class TerminalActionsTerminalLevelApi extends Service { - public static final String API_VERSION = "3"; + public static final String API_VERSION = "3"; - protected String baseURL; + protected String baseURL; - /** - * Terminal actions - terminal level constructor in {@link com.adyen.service.management package}. - * - * @param client {@link Client } (required) - */ - public TerminalActionsTerminalLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } + /** + * Terminal actions - terminal level constructor in {@link com.adyen.service.management package}. + * @param client {@link Client } (required) + */ + public TerminalActionsTerminalLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } - /** - * Terminal actions - terminal level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or - * testing purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public TerminalActionsTerminalLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Terminal actions - terminal level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public TerminalActionsTerminalLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Create a terminal action - * - * @param scheduleTerminalActionsRequest {@link ScheduleTerminalActionsRequest } (required) - * @return {@link ScheduleTerminalActionsResponse } - * @throws ApiException if fails to make API call - */ - public ScheduleTerminalActionsResponse createTerminalAction( - ScheduleTerminalActionsRequest scheduleTerminalActionsRequest) - throws ApiException, IOException { - return createTerminalAction(scheduleTerminalActionsRequest, null); - } + /** + * Create a terminal action + * + * @param scheduleTerminalActionsRequest {@link ScheduleTerminalActionsRequest } (required) + * @return {@link ScheduleTerminalActionsResponse } + * @throws ApiException if fails to make API call + */ + public ScheduleTerminalActionsResponse createTerminalAction(ScheduleTerminalActionsRequest scheduleTerminalActionsRequest) throws ApiException, IOException { + return createTerminalAction(scheduleTerminalActionsRequest, null); + } - /** - * Create a terminal action - * - * @param scheduleTerminalActionsRequest {@link ScheduleTerminalActionsRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ScheduleTerminalActionsResponse } - * @throws ApiException if fails to make API call - */ - public ScheduleTerminalActionsResponse createTerminalAction( - ScheduleTerminalActionsRequest scheduleTerminalActionsRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = scheduleTerminalActionsRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/terminals/scheduleActions", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return ScheduleTerminalActionsResponse.fromJson(jsonResult); - } + /** + * Create a terminal action + * + * @param scheduleTerminalActionsRequest {@link ScheduleTerminalActionsRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ScheduleTerminalActionsResponse } + * @throws ApiException if fails to make API call + */ + public ScheduleTerminalActionsResponse createTerminalAction(ScheduleTerminalActionsRequest scheduleTerminalActionsRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = scheduleTerminalActionsRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/terminals/scheduleActions", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return ScheduleTerminalActionsResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/TerminalOrdersCompanyLevelApi.java b/src/main/java/com/adyen/service/management/TerminalOrdersCompanyLevelApi.java index 5072c16a6..5b529e1d7 100644 --- a/src/main/java/com/adyen/service/management/TerminalOrdersCompanyLevelApi.java +++ b/src/main/java/com/adyen/service/management/TerminalOrdersCompanyLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,8 +14,8 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.management.BillingEntitiesResponse; +import com.adyen.model.management.RestServiceError; import com.adyen.model.management.ShippingLocation; import com.adyen.model.management.ShippingLocationsResponse; import com.adyen.model.management.TerminalModelsResponse; @@ -23,535 +23,452 @@ import com.adyen.model.management.TerminalOrderRequest; import com.adyen.model.management.TerminalOrdersResponse; import com.adyen.model.management.TerminalProductsResponse; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class TerminalOrdersCompanyLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * Terminal orders - company level constructor in {@link com.adyen.service.management package}. - * - * @param client {@link Client } (required) - */ - public TerminalOrdersCompanyLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } - - /** - * Terminal orders - company level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or - * testing purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public TerminalOrdersCompanyLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Cancel an order - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param orderId {@link String } The unique identifier of the order. (required) - * @return {@link TerminalOrder } - * @throws ApiException if fails to make API call - */ - public TerminalOrder cancelOrder(String companyId, String orderId) - throws ApiException, IOException { - return cancelOrder(companyId, orderId, null); - } - - /** - * Cancel an order - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param orderId {@link String } The unique identifier of the order. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TerminalOrder } - * @throws ApiException if fails to make API call - */ - public TerminalOrder cancelOrder(String companyId, String orderId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - if (orderId == null) { - throw new IllegalArgumentException("Please provide the orderId path parameter"); - } - pathParams.put("orderId", orderId); - - String requestBody = null; - Resource resource = - new Resource( - this, this.baseURL + "/companies/{companyId}/terminalOrders/{orderId}/cancel", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return TerminalOrder.fromJson(jsonResult); - } - - /** - * Create an order - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param terminalOrderRequest {@link TerminalOrderRequest } (required) - * @return {@link TerminalOrder } - * @throws ApiException if fails to make API call - */ - public TerminalOrder createOrder(String companyId, TerminalOrderRequest terminalOrderRequest) - throws ApiException, IOException { - return createOrder(companyId, terminalOrderRequest, null); - } - - /** - * Create an order - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param terminalOrderRequest {@link TerminalOrderRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TerminalOrder } - * @throws ApiException if fails to make API call - */ - public TerminalOrder createOrder( - String companyId, TerminalOrderRequest terminalOrderRequest, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - - String requestBody = terminalOrderRequest.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/companies/{companyId}/terminalOrders", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return TerminalOrder.fromJson(jsonResult); - } - - /** - * Create a shipping location - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param shippingLocation {@link ShippingLocation } (required) - * @return {@link ShippingLocation } - * @throws ApiException if fails to make API call - */ - public ShippingLocation createShippingLocation( - String companyId, ShippingLocation shippingLocation) throws ApiException, IOException { - return createShippingLocation(companyId, shippingLocation, null); - } - - /** - * Create a shipping location - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param shippingLocation {@link ShippingLocation } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ShippingLocation } - * @throws ApiException if fails to make API call - */ - public ShippingLocation createShippingLocation( - String companyId, ShippingLocation shippingLocation, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * Terminal orders - company level constructor in {@link com.adyen.service.management package}. + * @param client {@link Client } (required) + */ + public TerminalOrdersCompanyLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); } - pathParams.put("companyId", companyId); - - String requestBody = shippingLocation.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/companies/{companyId}/shippingLocations", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return ShippingLocation.fromJson(jsonResult); - } - - /** - * Get an order - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param orderId {@link String } The unique identifier of the order. (required) - * @return {@link TerminalOrder } - * @throws ApiException if fails to make API call - */ - public TerminalOrder getOrder(String companyId, String orderId) throws ApiException, IOException { - return getOrder(companyId, orderId, null); - } - - /** - * Get an order - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param orderId {@link String } The unique identifier of the order. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TerminalOrder } - * @throws ApiException if fails to make API call - */ - public TerminalOrder getOrder(String companyId, String orderId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + + /** + * Terminal orders - company level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public TerminalOrdersCompanyLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - pathParams.put("companyId", companyId); - if (orderId == null) { - throw new IllegalArgumentException("Please provide the orderId path parameter"); + + /** + * Cancel an order + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param orderId {@link String } The unique identifier of the order. (required) + * @return {@link TerminalOrder } + * @throws ApiException if fails to make API call + */ + public TerminalOrder cancelOrder(String companyId, String orderId) throws ApiException, IOException { + return cancelOrder(companyId, orderId, null); } - pathParams.put("orderId", orderId); - - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/companies/{companyId}/terminalOrders/{orderId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TerminalOrder.fromJson(jsonResult); - } - - /** - * Get a list of billing entities - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @return {@link BillingEntitiesResponse } - * @throws ApiException if fails to make API call - */ - public BillingEntitiesResponse listBillingEntities(String companyId) - throws ApiException, IOException { - return listBillingEntities(companyId, null, null); - } - - /** - * Get a list of billing entities - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param name {@link String } Query: The name of the billing entity. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link BillingEntitiesResponse } - * @throws ApiException if fails to make API call - */ - public BillingEntitiesResponse listBillingEntities( - String companyId, String name, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + + /** + * Cancel an order + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param orderId {@link String } The unique identifier of the order. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TerminalOrder } + * @throws ApiException if fails to make API call + */ + public TerminalOrder cancelOrder(String companyId, String orderId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + if (orderId == null) { + throw new IllegalArgumentException("Please provide the orderId path parameter"); + } + pathParams.put("orderId", orderId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/terminalOrders/{orderId}/cancel", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return TerminalOrder.fromJson(jsonResult); } - pathParams.put("companyId", companyId); - // Add query params - Map queryParams = new HashMap<>(); - if (name != null) { - queryParams.put("name", name); + /** + * Create an order + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param terminalOrderRequest {@link TerminalOrderRequest } (required) + * @return {@link TerminalOrder } + * @throws ApiException if fails to make API call + */ + public TerminalOrder createOrder(String companyId, TerminalOrderRequest terminalOrderRequest) throws ApiException, IOException { + return createOrder(companyId, terminalOrderRequest, null); } - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/companies/{companyId}/billingEntities", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return BillingEntitiesResponse.fromJson(jsonResult); - } - - /** - * Get a list of orders - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @return {@link TerminalOrdersResponse } - * @throws ApiException if fails to make API call - */ - public TerminalOrdersResponse listOrders(String companyId) throws ApiException, IOException { - return listOrders(companyId, null, null, null, null, null); - } - - /** - * Get a list of orders - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param customerOrderReference {@link String } Query: Your purchase order number. (optional) - * @param status {@link String } Query: The order status. Possible values (not case-sensitive): - * Placed, Confirmed, Cancelled, Shipped, Delivered. (optional) - * @param offset {@link Integer } Query: The number of orders to skip. (optional) - * @param limit {@link Integer } Query: The number of orders to return. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TerminalOrdersResponse } - * @throws ApiException if fails to make API call - */ - public TerminalOrdersResponse listOrders( - String companyId, - String customerOrderReference, - String status, - Integer offset, - Integer limit, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + /** + * Create an order + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param terminalOrderRequest {@link TerminalOrderRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TerminalOrder } + * @throws ApiException if fails to make API call + */ + public TerminalOrder createOrder(String companyId, TerminalOrderRequest terminalOrderRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + + String requestBody = terminalOrderRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/terminalOrders", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return TerminalOrder.fromJson(jsonResult); } - pathParams.put("companyId", companyId); - // Add query params - Map queryParams = new HashMap<>(); - if (customerOrderReference != null) { - queryParams.put("customerOrderReference", customerOrderReference); + /** + * Create a shipping location + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param shippingLocation {@link ShippingLocation } (required) + * @return {@link ShippingLocation } + * @throws ApiException if fails to make API call + */ + public ShippingLocation createShippingLocation(String companyId, ShippingLocation shippingLocation) throws ApiException, IOException { + return createShippingLocation(companyId, shippingLocation, null); } - if (status != null) { - queryParams.put("status", status); + + /** + * Create a shipping location + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param shippingLocation {@link ShippingLocation } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ShippingLocation } + * @throws ApiException if fails to make API call + */ + public ShippingLocation createShippingLocation(String companyId, ShippingLocation shippingLocation, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + + String requestBody = shippingLocation.toJson(); + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/shippingLocations", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return ShippingLocation.fromJson(jsonResult); } - if (offset != null) { - queryParams.put("offset", offset.toString()); + + /** + * Get an order + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param orderId {@link String } The unique identifier of the order. (required) + * @return {@link TerminalOrder } + * @throws ApiException if fails to make API call + */ + public TerminalOrder getOrder(String companyId, String orderId) throws ApiException, IOException { + return getOrder(companyId, orderId, null); } - if (limit != null) { - queryParams.put("limit", limit.toString()); + + /** + * Get an order + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param orderId {@link String } The unique identifier of the order. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TerminalOrder } + * @throws ApiException if fails to make API call + */ + public TerminalOrder getOrder(String companyId, String orderId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + if (orderId == null) { + throw new IllegalArgumentException("Please provide the orderId path parameter"); + } + pathParams.put("orderId", orderId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/terminalOrders/{orderId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TerminalOrder.fromJson(jsonResult); } - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/companies/{companyId}/terminalOrders", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return TerminalOrdersResponse.fromJson(jsonResult); - } - - /** - * Get a list of shipping locations - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @return {@link ShippingLocationsResponse } - * @throws ApiException if fails to make API call - */ - public ShippingLocationsResponse listShippingLocations(String companyId) - throws ApiException, IOException { - return listShippingLocations(companyId, null, null, null, null); - } - - /** - * Get a list of shipping locations - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param name {@link String } Query: The name of the shipping location. (optional) - * @param offset {@link Integer } Query: The number of locations to skip. (optional) - * @param limit {@link Integer } Query: The number of locations to return. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ShippingLocationsResponse } - * @throws ApiException if fails to make API call - */ - public ShippingLocationsResponse listShippingLocations( - String companyId, String name, Integer offset, Integer limit, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + /** + * Get a list of billing entities + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @return {@link BillingEntitiesResponse } + * @throws ApiException if fails to make API call + */ + public BillingEntitiesResponse listBillingEntities(String companyId) throws ApiException, IOException { + return listBillingEntities(companyId, null, null); } - pathParams.put("companyId", companyId); - // Add query params - Map queryParams = new HashMap<>(); - if (name != null) { - queryParams.put("name", name); + /** + * Get a list of billing entities + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param name {@link String } Query: The name of the billing entity. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link BillingEntitiesResponse } + * @throws ApiException if fails to make API call + */ + public BillingEntitiesResponse listBillingEntities(String companyId, String name, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + + //Add query params + Map queryParams = new HashMap<>(); + if (name != null) { + queryParams.put("name", name); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/billingEntities", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return BillingEntitiesResponse.fromJson(jsonResult); } - if (offset != null) { - queryParams.put("offset", offset.toString()); + + /** + * Get a list of orders + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @return {@link TerminalOrdersResponse } + * @throws ApiException if fails to make API call + */ + public TerminalOrdersResponse listOrders(String companyId) throws ApiException, IOException { + return listOrders(companyId, null, null, null, null, null); } - if (limit != null) { - queryParams.put("limit", limit.toString()); + + /** + * Get a list of orders + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param customerOrderReference {@link String } Query: Your purchase order number. (optional) + * @param status {@link String } Query: The order status. Possible values (not case-sensitive): Placed, Confirmed, Cancelled, Shipped, Delivered. (optional) + * @param offset {@link Integer } Query: The number of orders to skip. (optional) + * @param limit {@link Integer } Query: The number of orders to return. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TerminalOrdersResponse } + * @throws ApiException if fails to make API call + */ + public TerminalOrdersResponse listOrders(String companyId, String customerOrderReference, String status, Integer offset, Integer limit, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + + //Add query params + Map queryParams = new HashMap<>(); + if (customerOrderReference != null) { + queryParams.put("customerOrderReference", customerOrderReference); + } + if (status != null) { + queryParams.put("status", status); + } + if (offset != null) { + queryParams.put("offset", offset.toString()); + } + if (limit != null) { + queryParams.put("limit", limit.toString()); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/terminalOrders", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return TerminalOrdersResponse.fromJson(jsonResult); } - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/companies/{companyId}/shippingLocations", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return ShippingLocationsResponse.fromJson(jsonResult); - } - - /** - * Get a list of terminal models - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @return {@link TerminalModelsResponse } - * @throws ApiException if fails to make API call - */ - public TerminalModelsResponse listTerminalModels(String companyId) - throws ApiException, IOException { - return listTerminalModels(companyId, null); - } - - /** - * Get a list of terminal models - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TerminalModelsResponse } - * @throws ApiException if fails to make API call - */ - public TerminalModelsResponse listTerminalModels(String companyId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + /** + * Get a list of shipping locations + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @return {@link ShippingLocationsResponse } + * @throws ApiException if fails to make API call + */ + public ShippingLocationsResponse listShippingLocations(String companyId) throws ApiException, IOException { + return listShippingLocations(companyId, null, null, null, null); } - pathParams.put("companyId", companyId); - - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/companies/{companyId}/terminalModels", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TerminalModelsResponse.fromJson(jsonResult); - } - - /** - * Get a list of terminal products - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param country {@link String } The country to return products for, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. For example, **US** - * (required) - * @return {@link TerminalProductsResponse } - * @throws ApiException if fails to make API call - */ - public TerminalProductsResponse listTerminalProducts(String companyId, String country) - throws ApiException, IOException { - return listTerminalProducts(companyId, country, null, null, null, null); - } - - /** - * Get a list of terminal products - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param country {@link String } Query: The country to return products for, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. For example, **US** - * (required) - * @param terminalModelId {@link String } Query: The terminal model to return products for. Use - * the ID returned in the [GET - * `/terminalModels`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/companies/{companyId}/terminalModels) - * response. For example, **Verifone.M400** (optional) - * @param offset {@link Integer } Query: The number of products to skip. (optional) - * @param limit {@link Integer } Query: The number of products to return. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TerminalProductsResponse } - * @throws ApiException if fails to make API call - */ - public TerminalProductsResponse listTerminalProducts( - String companyId, - String country, - String terminalModelId, - Integer offset, - Integer limit, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + + /** + * Get a list of shipping locations + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param name {@link String } Query: The name of the shipping location. (optional) + * @param offset {@link Integer } Query: The number of locations to skip. (optional) + * @param limit {@link Integer } Query: The number of locations to return. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ShippingLocationsResponse } + * @throws ApiException if fails to make API call + */ + public ShippingLocationsResponse listShippingLocations(String companyId, String name, Integer offset, Integer limit, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + + //Add query params + Map queryParams = new HashMap<>(); + if (name != null) { + queryParams.put("name", name); + } + if (offset != null) { + queryParams.put("offset", offset.toString()); + } + if (limit != null) { + queryParams.put("limit", limit.toString()); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/shippingLocations", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return ShippingLocationsResponse.fromJson(jsonResult); } - pathParams.put("companyId", companyId); - // Add query params - Map queryParams = new HashMap<>(); - if (country != null) { - queryParams.put("country", country); + /** + * Get a list of terminal models + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @return {@link TerminalModelsResponse } + * @throws ApiException if fails to make API call + */ + public TerminalModelsResponse listTerminalModels(String companyId) throws ApiException, IOException { + return listTerminalModels(companyId, null); } - if (terminalModelId != null) { - queryParams.put("terminalModelId", terminalModelId); + + /** + * Get a list of terminal models + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TerminalModelsResponse } + * @throws ApiException if fails to make API call + */ + public TerminalModelsResponse listTerminalModels(String companyId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/terminalModels", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TerminalModelsResponse.fromJson(jsonResult); } - if (offset != null) { - queryParams.put("offset", offset.toString()); + + /** + * Get a list of terminal products + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param country {@link String } The country to return products for, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. For example, **US** (required) + * @return {@link TerminalProductsResponse } + * @throws ApiException if fails to make API call + */ + public TerminalProductsResponse listTerminalProducts(String companyId, String country) throws ApiException, IOException { + return listTerminalProducts(companyId, country, null, null, null, null); } - if (limit != null) { - queryParams.put("limit", limit.toString()); + + /** + * Get a list of terminal products + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param country {@link String } Query: The country to return products for, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. For example, **US** (required) + * @param terminalModelId {@link String } Query: The terminal model to return products for. Use the ID returned in the [GET `/terminalModels`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/companies/{companyId}/terminalModels) response. For example, **Verifone.M400** (optional) + * @param offset {@link Integer } Query: The number of products to skip. (optional) + * @param limit {@link Integer } Query: The number of products to return. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TerminalProductsResponse } + * @throws ApiException if fails to make API call + */ + public TerminalProductsResponse listTerminalProducts(String companyId, String country, String terminalModelId, Integer offset, Integer limit, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + + //Add query params + Map queryParams = new HashMap<>(); + if (country != null) { + queryParams.put("country", country); + } + if (terminalModelId != null) { + queryParams.put("terminalModelId", terminalModelId); + } + if (offset != null) { + queryParams.put("offset", offset.toString()); + } + if (limit != null) { + queryParams.put("limit", limit.toString()); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/terminalProducts", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return TerminalProductsResponse.fromJson(jsonResult); } - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/companies/{companyId}/terminalProducts", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return TerminalProductsResponse.fromJson(jsonResult); - } - - /** - * Update an order - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param orderId {@link String } The unique identifier of the order. (required) - * @param terminalOrderRequest {@link TerminalOrderRequest } (required) - * @return {@link TerminalOrder } - * @throws ApiException if fails to make API call - */ - public TerminalOrder updateOrder( - String companyId, String orderId, TerminalOrderRequest terminalOrderRequest) - throws ApiException, IOException { - return updateOrder(companyId, orderId, terminalOrderRequest, null); - } - - /** - * Update an order - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param orderId {@link String } The unique identifier of the order. (required) - * @param terminalOrderRequest {@link TerminalOrderRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TerminalOrder } - * @throws ApiException if fails to make API call - */ - public TerminalOrder updateOrder( - String companyId, - String orderId, - TerminalOrderRequest terminalOrderRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + /** + * Update an order + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param orderId {@link String } The unique identifier of the order. (required) + * @param terminalOrderRequest {@link TerminalOrderRequest } (required) + * @return {@link TerminalOrder } + * @throws ApiException if fails to make API call + */ + public TerminalOrder updateOrder(String companyId, String orderId, TerminalOrderRequest terminalOrderRequest) throws ApiException, IOException { + return updateOrder(companyId, orderId, terminalOrderRequest, null); } - pathParams.put("companyId", companyId); - if (orderId == null) { - throw new IllegalArgumentException("Please provide the orderId path parameter"); + + /** + * Update an order + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param orderId {@link String } The unique identifier of the order. (required) + * @param terminalOrderRequest {@link TerminalOrderRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TerminalOrder } + * @throws ApiException if fails to make API call + */ + public TerminalOrder updateOrder(String companyId, String orderId, TerminalOrderRequest terminalOrderRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + if (orderId == null) { + throw new IllegalArgumentException("Please provide the orderId path parameter"); + } + pathParams.put("orderId", orderId); + + String requestBody = terminalOrderRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/terminalOrders/{orderId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return TerminalOrder.fromJson(jsonResult); } - pathParams.put("orderId", orderId); - - String requestBody = terminalOrderRequest.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/companies/{companyId}/terminalOrders/{orderId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return TerminalOrder.fromJson(jsonResult); - } } diff --git a/src/main/java/com/adyen/service/management/TerminalOrdersMerchantLevelApi.java b/src/main/java/com/adyen/service/management/TerminalOrdersMerchantLevelApi.java index e21949e16..f0f0f289b 100644 --- a/src/main/java/com/adyen/service/management/TerminalOrdersMerchantLevelApi.java +++ b/src/main/java/com/adyen/service/management/TerminalOrdersMerchantLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,8 +14,8 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.management.BillingEntitiesResponse; +import com.adyen.model.management.RestServiceError; import com.adyen.model.management.ShippingLocation; import com.adyen.model.management.ShippingLocationsResponse; import com.adyen.model.management.TerminalModelsResponse; @@ -23,536 +23,452 @@ import com.adyen.model.management.TerminalOrderRequest; import com.adyen.model.management.TerminalOrdersResponse; import com.adyen.model.management.TerminalProductsResponse; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class TerminalOrdersMerchantLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * Terminal orders - merchant level constructor in {@link com.adyen.service.management package}. - * - * @param client {@link Client } (required) - */ - public TerminalOrdersMerchantLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } - - /** - * Terminal orders - merchant level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or - * testing purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public TerminalOrdersMerchantLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Cancel an order - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param orderId {@link String } The unique identifier of the order. (required) - * @return {@link TerminalOrder } - * @throws ApiException if fails to make API call - */ - public TerminalOrder cancelOrder(String merchantId, String orderId) - throws ApiException, IOException { - return cancelOrder(merchantId, orderId, null); - } - - /** - * Cancel an order - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param orderId {@link String } The unique identifier of the order. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TerminalOrder } - * @throws ApiException if fails to make API call - */ - public TerminalOrder cancelOrder(String merchantId, String orderId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (orderId == null) { - throw new IllegalArgumentException("Please provide the orderId path parameter"); - } - pathParams.put("orderId", orderId); - - String requestBody = null; - Resource resource = - new Resource( - this, this.baseURL + "/merchants/{merchantId}/terminalOrders/{orderId}/cancel", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return TerminalOrder.fromJson(jsonResult); - } - - /** - * Create an order - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param terminalOrderRequest {@link TerminalOrderRequest } (required) - * @return {@link TerminalOrder } - * @throws ApiException if fails to make API call - */ - public TerminalOrder createOrder(String merchantId, TerminalOrderRequest terminalOrderRequest) - throws ApiException, IOException { - return createOrder(merchantId, terminalOrderRequest, null); - } - - /** - * Create an order - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param terminalOrderRequest {@link TerminalOrderRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TerminalOrder } - * @throws ApiException if fails to make API call - */ - public TerminalOrder createOrder( - String merchantId, TerminalOrderRequest terminalOrderRequest, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - - String requestBody = terminalOrderRequest.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalOrders", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return TerminalOrder.fromJson(jsonResult); - } - - /** - * Create a shipping location - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param shippingLocation {@link ShippingLocation } (required) - * @return {@link ShippingLocation } - * @throws ApiException if fails to make API call - */ - public ShippingLocation createShippingLocation( - String merchantId, ShippingLocation shippingLocation) throws ApiException, IOException { - return createShippingLocation(merchantId, shippingLocation, null); - } - - /** - * Create a shipping location - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param shippingLocation {@link ShippingLocation } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ShippingLocation } - * @throws ApiException if fails to make API call - */ - public ShippingLocation createShippingLocation( - String merchantId, ShippingLocation shippingLocation, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * Terminal orders - merchant level constructor in {@link com.adyen.service.management package}. + * @param client {@link Client } (required) + */ + public TerminalOrdersMerchantLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); } - pathParams.put("merchantId", merchantId); - - String requestBody = shippingLocation.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/merchants/{merchantId}/shippingLocations", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return ShippingLocation.fromJson(jsonResult); - } - - /** - * Get an order - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param orderId {@link String } The unique identifier of the order. (required) - * @return {@link TerminalOrder } - * @throws ApiException if fails to make API call - */ - public TerminalOrder getOrder(String merchantId, String orderId) - throws ApiException, IOException { - return getOrder(merchantId, orderId, null); - } - - /** - * Get an order - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param orderId {@link String } The unique identifier of the order. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TerminalOrder } - * @throws ApiException if fails to make API call - */ - public TerminalOrder getOrder(String merchantId, String orderId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + + /** + * Terminal orders - merchant level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public TerminalOrdersMerchantLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - pathParams.put("merchantId", merchantId); - if (orderId == null) { - throw new IllegalArgumentException("Please provide the orderId path parameter"); + + /** + * Cancel an order + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param orderId {@link String } The unique identifier of the order. (required) + * @return {@link TerminalOrder } + * @throws ApiException if fails to make API call + */ + public TerminalOrder cancelOrder(String merchantId, String orderId) throws ApiException, IOException { + return cancelOrder(merchantId, orderId, null); } - pathParams.put("orderId", orderId); - - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalOrders/{orderId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TerminalOrder.fromJson(jsonResult); - } - - /** - * Get a list of billing entities - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @return {@link BillingEntitiesResponse } - * @throws ApiException if fails to make API call - */ - public BillingEntitiesResponse listBillingEntities(String merchantId) - throws ApiException, IOException { - return listBillingEntities(merchantId, null, null); - } - - /** - * Get a list of billing entities - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param name {@link String } Query: The name of the billing entity. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link BillingEntitiesResponse } - * @throws ApiException if fails to make API call - */ - public BillingEntitiesResponse listBillingEntities( - String merchantId, String name, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + + /** + * Cancel an order + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param orderId {@link String } The unique identifier of the order. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TerminalOrder } + * @throws ApiException if fails to make API call + */ + public TerminalOrder cancelOrder(String merchantId, String orderId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (orderId == null) { + throw new IllegalArgumentException("Please provide the orderId path parameter"); + } + pathParams.put("orderId", orderId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalOrders/{orderId}/cancel", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return TerminalOrder.fromJson(jsonResult); } - pathParams.put("merchantId", merchantId); - // Add query params - Map queryParams = new HashMap<>(); - if (name != null) { - queryParams.put("name", name); + /** + * Create an order + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param terminalOrderRequest {@link TerminalOrderRequest } (required) + * @return {@link TerminalOrder } + * @throws ApiException if fails to make API call + */ + public TerminalOrder createOrder(String merchantId, TerminalOrderRequest terminalOrderRequest) throws ApiException, IOException { + return createOrder(merchantId, terminalOrderRequest, null); } - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/merchants/{merchantId}/billingEntities", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return BillingEntitiesResponse.fromJson(jsonResult); - } - - /** - * Get a list of orders - * - * @param merchantId {@link String } (required) - * @return {@link TerminalOrdersResponse } - * @throws ApiException if fails to make API call - */ - public TerminalOrdersResponse listOrders(String merchantId) throws ApiException, IOException { - return listOrders(merchantId, null, null, null, null, null); - } - - /** - * Get a list of orders - * - * @param merchantId {@link String } (required) - * @param customerOrderReference {@link String } Query: Your purchase order number. (optional) - * @param status {@link String } Query: The order status. Possible values (not case-sensitive): - * Placed, Confirmed, Cancelled, Shipped, Delivered. (optional) - * @param offset {@link Integer } Query: The number of orders to skip. (optional) - * @param limit {@link Integer } Query: The number of orders to return. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TerminalOrdersResponse } - * @throws ApiException if fails to make API call - */ - public TerminalOrdersResponse listOrders( - String merchantId, - String customerOrderReference, - String status, - Integer offset, - Integer limit, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + /** + * Create an order + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param terminalOrderRequest {@link TerminalOrderRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TerminalOrder } + * @throws ApiException if fails to make API call + */ + public TerminalOrder createOrder(String merchantId, TerminalOrderRequest terminalOrderRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + + String requestBody = terminalOrderRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalOrders", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return TerminalOrder.fromJson(jsonResult); } - pathParams.put("merchantId", merchantId); - // Add query params - Map queryParams = new HashMap<>(); - if (customerOrderReference != null) { - queryParams.put("customerOrderReference", customerOrderReference); + /** + * Create a shipping location + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param shippingLocation {@link ShippingLocation } (required) + * @return {@link ShippingLocation } + * @throws ApiException if fails to make API call + */ + public ShippingLocation createShippingLocation(String merchantId, ShippingLocation shippingLocation) throws ApiException, IOException { + return createShippingLocation(merchantId, shippingLocation, null); } - if (status != null) { - queryParams.put("status", status); + + /** + * Create a shipping location + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param shippingLocation {@link ShippingLocation } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ShippingLocation } + * @throws ApiException if fails to make API call + */ + public ShippingLocation createShippingLocation(String merchantId, ShippingLocation shippingLocation, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + + String requestBody = shippingLocation.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/shippingLocations", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return ShippingLocation.fromJson(jsonResult); } - if (offset != null) { - queryParams.put("offset", offset.toString()); + + /** + * Get an order + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param orderId {@link String } The unique identifier of the order. (required) + * @return {@link TerminalOrder } + * @throws ApiException if fails to make API call + */ + public TerminalOrder getOrder(String merchantId, String orderId) throws ApiException, IOException { + return getOrder(merchantId, orderId, null); } - if (limit != null) { - queryParams.put("limit", limit.toString()); + + /** + * Get an order + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param orderId {@link String } The unique identifier of the order. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TerminalOrder } + * @throws ApiException if fails to make API call + */ + public TerminalOrder getOrder(String merchantId, String orderId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (orderId == null) { + throw new IllegalArgumentException("Please provide the orderId path parameter"); + } + pathParams.put("orderId", orderId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalOrders/{orderId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TerminalOrder.fromJson(jsonResult); } - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalOrders", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return TerminalOrdersResponse.fromJson(jsonResult); - } - - /** - * Get a list of shipping locations - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @return {@link ShippingLocationsResponse } - * @throws ApiException if fails to make API call - */ - public ShippingLocationsResponse listShippingLocations(String merchantId) - throws ApiException, IOException { - return listShippingLocations(merchantId, null, null, null, null); - } - - /** - * Get a list of shipping locations - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param name {@link String } Query: The name of the shipping location. (optional) - * @param offset {@link Integer } Query: The number of locations to skip. (optional) - * @param limit {@link Integer } Query: The number of locations to return. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ShippingLocationsResponse } - * @throws ApiException if fails to make API call - */ - public ShippingLocationsResponse listShippingLocations( - String merchantId, String name, Integer offset, Integer limit, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + /** + * Get a list of billing entities + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @return {@link BillingEntitiesResponse } + * @throws ApiException if fails to make API call + */ + public BillingEntitiesResponse listBillingEntities(String merchantId) throws ApiException, IOException { + return listBillingEntities(merchantId, null, null); } - pathParams.put("merchantId", merchantId); - // Add query params - Map queryParams = new HashMap<>(); - if (name != null) { - queryParams.put("name", name); + /** + * Get a list of billing entities + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param name {@link String } Query: The name of the billing entity. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link BillingEntitiesResponse } + * @throws ApiException if fails to make API call + */ + public BillingEntitiesResponse listBillingEntities(String merchantId, String name, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + + //Add query params + Map queryParams = new HashMap<>(); + if (name != null) { + queryParams.put("name", name); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/billingEntities", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return BillingEntitiesResponse.fromJson(jsonResult); } - if (offset != null) { - queryParams.put("offset", offset.toString()); + + /** + * Get a list of orders + * + * @param merchantId {@link String } (required) + * @return {@link TerminalOrdersResponse } + * @throws ApiException if fails to make API call + */ + public TerminalOrdersResponse listOrders(String merchantId) throws ApiException, IOException { + return listOrders(merchantId, null, null, null, null, null); } - if (limit != null) { - queryParams.put("limit", limit.toString()); + + /** + * Get a list of orders + * + * @param merchantId {@link String } (required) + * @param customerOrderReference {@link String } Query: Your purchase order number. (optional) + * @param status {@link String } Query: The order status. Possible values (not case-sensitive): Placed, Confirmed, Cancelled, Shipped, Delivered. (optional) + * @param offset {@link Integer } Query: The number of orders to skip. (optional) + * @param limit {@link Integer } Query: The number of orders to return. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TerminalOrdersResponse } + * @throws ApiException if fails to make API call + */ + public TerminalOrdersResponse listOrders(String merchantId, String customerOrderReference, String status, Integer offset, Integer limit, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + + //Add query params + Map queryParams = new HashMap<>(); + if (customerOrderReference != null) { + queryParams.put("customerOrderReference", customerOrderReference); + } + if (status != null) { + queryParams.put("status", status); + } + if (offset != null) { + queryParams.put("offset", offset.toString()); + } + if (limit != null) { + queryParams.put("limit", limit.toString()); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalOrders", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return TerminalOrdersResponse.fromJson(jsonResult); } - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/merchants/{merchantId}/shippingLocations", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return ShippingLocationsResponse.fromJson(jsonResult); - } - - /** - * Get a list of terminal models - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @return {@link TerminalModelsResponse } - * @throws ApiException if fails to make API call - */ - public TerminalModelsResponse listTerminalModels(String merchantId) - throws ApiException, IOException { - return listTerminalModels(merchantId, null); - } - - /** - * Get a list of terminal models - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TerminalModelsResponse } - * @throws ApiException if fails to make API call - */ - public TerminalModelsResponse listTerminalModels(String merchantId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + /** + * Get a list of shipping locations + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @return {@link ShippingLocationsResponse } + * @throws ApiException if fails to make API call + */ + public ShippingLocationsResponse listShippingLocations(String merchantId) throws ApiException, IOException { + return listShippingLocations(merchantId, null, null, null, null); } - pathParams.put("merchantId", merchantId); - - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalModels", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TerminalModelsResponse.fromJson(jsonResult); - } - - /** - * Get a list of terminal products - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param country {@link String } The country to return products for, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. For example, **US** - * (required) - * @return {@link TerminalProductsResponse } - * @throws ApiException if fails to make API call - */ - public TerminalProductsResponse listTerminalProducts(String merchantId, String country) - throws ApiException, IOException { - return listTerminalProducts(merchantId, country, null, null, null, null); - } - - /** - * Get a list of terminal products - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param country {@link String } Query: The country to return products for, in [ISO 3166-1 - * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. For example, **US** - * (required) - * @param terminalModelId {@link String } Query: The terminal model to return products for. Use - * the ID returned in the [GET - * `/terminalModels`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/merchants/{merchantId}/terminalModels) - * response. For example, **Verifone.M400** (optional) - * @param offset {@link Integer } Query: The number of products to skip. (optional) - * @param limit {@link Integer } Query: The number of products to return. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TerminalProductsResponse } - * @throws ApiException if fails to make API call - */ - public TerminalProductsResponse listTerminalProducts( - String merchantId, - String country, - String terminalModelId, - Integer offset, - Integer limit, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + + /** + * Get a list of shipping locations + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param name {@link String } Query: The name of the shipping location. (optional) + * @param offset {@link Integer } Query: The number of locations to skip. (optional) + * @param limit {@link Integer } Query: The number of locations to return. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ShippingLocationsResponse } + * @throws ApiException if fails to make API call + */ + public ShippingLocationsResponse listShippingLocations(String merchantId, String name, Integer offset, Integer limit, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + + //Add query params + Map queryParams = new HashMap<>(); + if (name != null) { + queryParams.put("name", name); + } + if (offset != null) { + queryParams.put("offset", offset.toString()); + } + if (limit != null) { + queryParams.put("limit", limit.toString()); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/shippingLocations", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return ShippingLocationsResponse.fromJson(jsonResult); } - pathParams.put("merchantId", merchantId); - // Add query params - Map queryParams = new HashMap<>(); - if (country != null) { - queryParams.put("country", country); + /** + * Get a list of terminal models + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @return {@link TerminalModelsResponse } + * @throws ApiException if fails to make API call + */ + public TerminalModelsResponse listTerminalModels(String merchantId) throws ApiException, IOException { + return listTerminalModels(merchantId, null); } - if (terminalModelId != null) { - queryParams.put("terminalModelId", terminalModelId); + + /** + * Get a list of terminal models + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TerminalModelsResponse } + * @throws ApiException if fails to make API call + */ + public TerminalModelsResponse listTerminalModels(String merchantId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalModels", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TerminalModelsResponse.fromJson(jsonResult); } - if (offset != null) { - queryParams.put("offset", offset.toString()); + + /** + * Get a list of terminal products + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param country {@link String } The country to return products for, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. For example, **US** (required) + * @return {@link TerminalProductsResponse } + * @throws ApiException if fails to make API call + */ + public TerminalProductsResponse listTerminalProducts(String merchantId, String country) throws ApiException, IOException { + return listTerminalProducts(merchantId, country, null, null, null, null); } - if (limit != null) { - queryParams.put("limit", limit.toString()); + + /** + * Get a list of terminal products + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param country {@link String } Query: The country to return products for, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. For example, **US** (required) + * @param terminalModelId {@link String } Query: The terminal model to return products for. Use the ID returned in the [GET `/terminalModels`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/merchants/{merchantId}/terminalModels) response. For example, **Verifone.M400** (optional) + * @param offset {@link Integer } Query: The number of products to skip. (optional) + * @param limit {@link Integer } Query: The number of products to return. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TerminalProductsResponse } + * @throws ApiException if fails to make API call + */ + public TerminalProductsResponse listTerminalProducts(String merchantId, String country, String terminalModelId, Integer offset, Integer limit, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + + //Add query params + Map queryParams = new HashMap<>(); + if (country != null) { + queryParams.put("country", country); + } + if (terminalModelId != null) { + queryParams.put("terminalModelId", terminalModelId); + } + if (offset != null) { + queryParams.put("offset", offset.toString()); + } + if (limit != null) { + queryParams.put("limit", limit.toString()); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalProducts", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return TerminalProductsResponse.fromJson(jsonResult); } - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalProducts", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return TerminalProductsResponse.fromJson(jsonResult); - } - - /** - * Update an order - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param orderId {@link String } The unique identifier of the order. (required) - * @param terminalOrderRequest {@link TerminalOrderRequest } (required) - * @return {@link TerminalOrder } - * @throws ApiException if fails to make API call - */ - public TerminalOrder updateOrder( - String merchantId, String orderId, TerminalOrderRequest terminalOrderRequest) - throws ApiException, IOException { - return updateOrder(merchantId, orderId, terminalOrderRequest, null); - } - - /** - * Update an order - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param orderId {@link String } The unique identifier of the order. (required) - * @param terminalOrderRequest {@link TerminalOrderRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TerminalOrder } - * @throws ApiException if fails to make API call - */ - public TerminalOrder updateOrder( - String merchantId, - String orderId, - TerminalOrderRequest terminalOrderRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + /** + * Update an order + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param orderId {@link String } The unique identifier of the order. (required) + * @param terminalOrderRequest {@link TerminalOrderRequest } (required) + * @return {@link TerminalOrder } + * @throws ApiException if fails to make API call + */ + public TerminalOrder updateOrder(String merchantId, String orderId, TerminalOrderRequest terminalOrderRequest) throws ApiException, IOException { + return updateOrder(merchantId, orderId, terminalOrderRequest, null); } - pathParams.put("merchantId", merchantId); - if (orderId == null) { - throw new IllegalArgumentException("Please provide the orderId path parameter"); + + /** + * Update an order + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param orderId {@link String } The unique identifier of the order. (required) + * @param terminalOrderRequest {@link TerminalOrderRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TerminalOrder } + * @throws ApiException if fails to make API call + */ + public TerminalOrder updateOrder(String merchantId, String orderId, TerminalOrderRequest terminalOrderRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (orderId == null) { + throw new IllegalArgumentException("Please provide the orderId path parameter"); + } + pathParams.put("orderId", orderId); + + String requestBody = terminalOrderRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalOrders/{orderId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return TerminalOrder.fromJson(jsonResult); } - pathParams.put("orderId", orderId); - - String requestBody = terminalOrderRequest.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalOrders/{orderId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return TerminalOrder.fromJson(jsonResult); - } } diff --git a/src/main/java/com/adyen/service/management/TerminalSettingsCompanyLevelApi.java b/src/main/java/com/adyen/service/management/TerminalSettingsCompanyLevelApi.java index c06f7035b..362399990 100644 --- a/src/main/java/com/adyen/service/management/TerminalSettingsCompanyLevelApi.java +++ b/src/main/java/com/adyen/service/management/TerminalSettingsCompanyLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,223 +14,192 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.management.Logo; +import com.adyen.model.management.RestServiceError; import com.adyen.model.management.TerminalSettings; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class TerminalSettingsCompanyLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * Terminal settings - company level constructor in {@link com.adyen.service.management package}. - * - * @param client {@link Client } (required) - */ - public TerminalSettingsCompanyLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } - - /** - * Terminal settings - company level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or - * testing purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public TerminalSettingsCompanyLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Get the terminal logo - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param model {@link String } The terminal model. Possible values: E355, VX675WIFIBT, VX680, - * VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, - * V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo getTerminalLogo(String companyId, String model) throws ApiException, IOException { - return getTerminalLogo(companyId, model, null); - } - - /** - * Get the terminal logo - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param model {@link String } Query: The terminal model. Possible values: E355, VX675WIFIBT, - * VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, - * V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo getTerminalLogo(String companyId, String model, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * Terminal settings - company level constructor in {@link com.adyen.service.management package}. + * @param client {@link Client } (required) + */ + public TerminalSettingsCompanyLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } + + /** + * Terminal settings - company level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public TerminalSettingsCompanyLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - pathParams.put("companyId", companyId); - // Add query params - Map queryParams = new HashMap<>(); - if (model != null) { - queryParams.put("model", model); + /** + * Get the terminal logo + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param model {@link String } The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo getTerminalLogo(String companyId, String model) throws ApiException, IOException { + return getTerminalLogo(companyId, model, null); } - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/companies/{companyId}/terminalLogos", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return Logo.fromJson(jsonResult); - } - - /** - * Get terminal settings - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings getTerminalSettings(String companyId) throws ApiException, IOException { - return getTerminalSettings(companyId, null); - } - - /** - * Get terminal settings - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings getTerminalSettings(String companyId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + /** + * Get the terminal logo + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param model {@link String } Query: The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo getTerminalLogo(String companyId, String model, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + + //Add query params + Map queryParams = new HashMap<>(); + if (model != null) { + queryParams.put("model", model); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/terminalLogos", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return Logo.fromJson(jsonResult); } - pathParams.put("companyId", companyId); - - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/companies/{companyId}/terminalSettings", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TerminalSettings.fromJson(jsonResult); - } - - /** - * Update the terminal logo - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param model {@link String } The terminal model. Possible values: E355, VX675WIFIBT, VX680, - * VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, - * V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) - * @param logo {@link Logo } (required) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo updateTerminalLogo(String companyId, String model, Logo logo) - throws ApiException, IOException { - return updateTerminalLogo(companyId, model, logo, null); - } - - /** - * Update the terminal logo - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param logo {@link Logo } (required) - * @param model {@link String } Query: The terminal model. Possible values: E355, VX675WIFIBT, - * VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, - * V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo updateTerminalLogo( - String companyId, String model, Logo logo, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + + /** + * Get terminal settings + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings getTerminalSettings(String companyId) throws ApiException, IOException { + return getTerminalSettings(companyId, null); + } + + /** + * Get terminal settings + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings getTerminalSettings(String companyId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/terminalSettings", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TerminalSettings.fromJson(jsonResult); + } + + /** + * Update the terminal logo + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param model {@link String } The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) + * @param logo {@link Logo } (required) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo updateTerminalLogo(String companyId, String model, Logo logo) throws ApiException, IOException { + return updateTerminalLogo(companyId, model, logo, null); + } + + /** + * Update the terminal logo + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param logo {@link Logo } (required) + * @param model {@link String } Query: The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo updateTerminalLogo(String companyId, String model, Logo logo, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + + //Add query params + Map queryParams = new HashMap<>(); + if (model != null) { + queryParams.put("model", model); + } + + String requestBody = logo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/terminalLogos", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams, queryParams); + return Logo.fromJson(jsonResult); } - pathParams.put("companyId", companyId); - // Add query params - Map queryParams = new HashMap<>(); - if (model != null) { - queryParams.put("model", model); + /** + * Update terminal settings + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param terminalSettings {@link TerminalSettings } (required) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings updateTerminalSettings(String companyId, TerminalSettings terminalSettings) throws ApiException, IOException { + return updateTerminalSettings(companyId, terminalSettings, null); } - String requestBody = logo.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/companies/{companyId}/terminalLogos", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams, queryParams); - return Logo.fromJson(jsonResult); - } - - /** - * Update terminal settings - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param terminalSettings {@link TerminalSettings } (required) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings updateTerminalSettings( - String companyId, TerminalSettings terminalSettings) throws ApiException, IOException { - return updateTerminalSettings(companyId, terminalSettings, null); - } - - /** - * Update terminal settings - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param terminalSettings {@link TerminalSettings } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings updateTerminalSettings( - String companyId, TerminalSettings terminalSettings, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + /** + * Update terminal settings + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param terminalSettings {@link TerminalSettings } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings updateTerminalSettings(String companyId, TerminalSettings terminalSettings, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + + String requestBody = terminalSettings.toJson(); + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/terminalSettings", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return TerminalSettings.fromJson(jsonResult); } - pathParams.put("companyId", companyId); - - String requestBody = terminalSettings.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/companies/{companyId}/terminalSettings", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return TerminalSettings.fromJson(jsonResult); - } } diff --git a/src/main/java/com/adyen/service/management/TerminalSettingsMerchantLevelApi.java b/src/main/java/com/adyen/service/management/TerminalSettingsMerchantLevelApi.java index e895dc3ad..3ce854e9c 100644 --- a/src/main/java/com/adyen/service/management/TerminalSettingsMerchantLevelApi.java +++ b/src/main/java/com/adyen/service/management/TerminalSettingsMerchantLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,223 +14,192 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.management.Logo; +import com.adyen.model.management.RestServiceError; import com.adyen.model.management.TerminalSettings; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class TerminalSettingsMerchantLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * Terminal settings - merchant level constructor in {@link com.adyen.service.management package}. - * - * @param client {@link Client } (required) - */ - public TerminalSettingsMerchantLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } - - /** - * Terminal settings - merchant level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or - * testing purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public TerminalSettingsMerchantLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Get the terminal logo - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param model {@link String } The terminal model. Possible values: E355, VX675WIFIBT, VX680, - * VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, - * V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo getTerminalLogo(String merchantId, String model) throws ApiException, IOException { - return getTerminalLogo(merchantId, model, null); - } - - /** - * Get the terminal logo - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param model {@link String } Query: The terminal model. Possible values: E355, VX675WIFIBT, - * VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, - * V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo getTerminalLogo(String merchantId, String model, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * Terminal settings - merchant level constructor in {@link com.adyen.service.management package}. + * @param client {@link Client } (required) + */ + public TerminalSettingsMerchantLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } + + /** + * Terminal settings - merchant level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public TerminalSettingsMerchantLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - pathParams.put("merchantId", merchantId); - // Add query params - Map queryParams = new HashMap<>(); - if (model != null) { - queryParams.put("model", model); + /** + * Get the terminal logo + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param model {@link String } The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo getTerminalLogo(String merchantId, String model) throws ApiException, IOException { + return getTerminalLogo(merchantId, model, null); } - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalLogos", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return Logo.fromJson(jsonResult); - } - - /** - * Get terminal settings - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings getTerminalSettings(String merchantId) throws ApiException, IOException { - return getTerminalSettings(merchantId, null); - } - - /** - * Get terminal settings - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings getTerminalSettings(String merchantId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + /** + * Get the terminal logo + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param model {@link String } Query: The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo getTerminalLogo(String merchantId, String model, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + + //Add query params + Map queryParams = new HashMap<>(); + if (model != null) { + queryParams.put("model", model); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalLogos", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return Logo.fromJson(jsonResult); } - pathParams.put("merchantId", merchantId); - - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalSettings", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TerminalSettings.fromJson(jsonResult); - } - - /** - * Update the terminal logo - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param model {@link String } The terminal model. Allowed values: E355, VX675WIFIBT, VX680, - * VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, - * V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) - * @param logo {@link Logo } (required) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo updateTerminalLogo(String merchantId, String model, Logo logo) - throws ApiException, IOException { - return updateTerminalLogo(merchantId, model, logo, null); - } - - /** - * Update the terminal logo - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param logo {@link Logo } (required) - * @param model {@link String } Query: The terminal model. Allowed values: E355, VX675WIFIBT, - * VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, - * V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo updateTerminalLogo( - String merchantId, String model, Logo logo, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + + /** + * Get terminal settings + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings getTerminalSettings(String merchantId) throws ApiException, IOException { + return getTerminalSettings(merchantId, null); + } + + /** + * Get terminal settings + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings getTerminalSettings(String merchantId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalSettings", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TerminalSettings.fromJson(jsonResult); + } + + /** + * Update the terminal logo + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param model {@link String } The terminal model. Allowed values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) + * @param logo {@link Logo } (required) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo updateTerminalLogo(String merchantId, String model, Logo logo) throws ApiException, IOException { + return updateTerminalLogo(merchantId, model, logo, null); + } + + /** + * Update the terminal logo + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param logo {@link Logo } (required) + * @param model {@link String } Query: The terminal model. Allowed values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo updateTerminalLogo(String merchantId, String model, Logo logo, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + + //Add query params + Map queryParams = new HashMap<>(); + if (model != null) { + queryParams.put("model", model); + } + + String requestBody = logo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalLogos", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams, queryParams); + return Logo.fromJson(jsonResult); } - pathParams.put("merchantId", merchantId); - // Add query params - Map queryParams = new HashMap<>(); - if (model != null) { - queryParams.put("model", model); + /** + * Update terminal settings + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param terminalSettings {@link TerminalSettings } (required) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings updateTerminalSettings(String merchantId, TerminalSettings terminalSettings) throws ApiException, IOException { + return updateTerminalSettings(merchantId, terminalSettings, null); } - String requestBody = logo.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalLogos", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams, queryParams); - return Logo.fromJson(jsonResult); - } - - /** - * Update terminal settings - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param terminalSettings {@link TerminalSettings } (required) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings updateTerminalSettings( - String merchantId, TerminalSettings terminalSettings) throws ApiException, IOException { - return updateTerminalSettings(merchantId, terminalSettings, null); - } - - /** - * Update terminal settings - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param terminalSettings {@link TerminalSettings } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings updateTerminalSettings( - String merchantId, TerminalSettings terminalSettings, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + /** + * Update terminal settings + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param terminalSettings {@link TerminalSettings } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings updateTerminalSettings(String merchantId, TerminalSettings terminalSettings, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + + String requestBody = terminalSettings.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalSettings", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return TerminalSettings.fromJson(jsonResult); } - pathParams.put("merchantId", merchantId); - - String requestBody = terminalSettings.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalSettings", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return TerminalSettings.fromJson(jsonResult); - } } diff --git a/src/main/java/com/adyen/service/management/TerminalSettingsStoreLevelApi.java b/src/main/java/com/adyen/service/management/TerminalSettingsStoreLevelApi.java index bb32d49bd..51ad0e494 100644 --- a/src/main/java/com/adyen/service/management/TerminalSettingsStoreLevelApi.java +++ b/src/main/java/com/adyen/service/management/TerminalSettingsStoreLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,445 +14,368 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.management.Logo; +import com.adyen.model.management.RestServiceError; import com.adyen.model.management.TerminalSettings; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class TerminalSettingsStoreLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * Terminal settings - store level constructor in {@link com.adyen.service.management package}. - * - * @param client {@link Client } (required) - */ - public TerminalSettingsStoreLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } - - /** - * Terminal settings - store level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or - * testing purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public TerminalSettingsStoreLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Get the terminal logo - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param reference {@link String } The reference that identifies the store. (required) - * @param model {@link String } The terminal model. Possible values: E355, VX675WIFIBT, VX680, - * VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, - * V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo getTerminalLogo(String merchantId, String reference, String model) - throws ApiException, IOException { - return getTerminalLogo(merchantId, reference, model, null); - } - - /** - * Get the terminal logo - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param reference {@link String } The reference that identifies the store. (required) - * @param model {@link String } Query: The terminal model. Possible values: E355, VX675WIFIBT, - * VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, - * V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo getTerminalLogo( - String merchantId, String reference, String model, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * Terminal settings - store level constructor in {@link com.adyen.service.management package}. + * @param client {@link Client } (required) + */ + public TerminalSettingsStoreLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); } - pathParams.put("merchantId", merchantId); - if (reference == null) { - throw new IllegalArgumentException("Please provide the reference path parameter"); + + /** + * Terminal settings - store level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public TerminalSettingsStoreLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - pathParams.put("reference", reference); - // Add query params - Map queryParams = new HashMap<>(); - if (model != null) { - queryParams.put("model", model); + /** + * Get the terminal logo + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param reference {@link String } The reference that identifies the store. (required) + * @param model {@link String } The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo getTerminalLogo(String merchantId, String reference, String model) throws ApiException, IOException { + return getTerminalLogo(merchantId, reference, model, null); } - String requestBody = null; - Resource resource = - new Resource( - this, this.baseURL + "/merchants/{merchantId}/stores/{reference}/terminalLogos", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return Logo.fromJson(jsonResult); - } - - /** - * Get the terminal logo - * - * @param storeId {@link String } The unique identifier of the store. (required) - * @param model {@link String } The terminal model. Possible values: E355, VX675WIFIBT, VX680, - * VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, - * V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo getTerminalLogoByStoreId(String storeId, String model) - throws ApiException, IOException { - return getTerminalLogoByStoreId(storeId, model, null); - } - - /** - * Get the terminal logo - * - * @param storeId {@link String } The unique identifier of the store. (required) - * @param model {@link String } Query: The terminal model. Possible values: E355, VX675WIFIBT, - * VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, - * V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo getTerminalLogoByStoreId(String storeId, String model, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (storeId == null) { - throw new IllegalArgumentException("Please provide the storeId path parameter"); + /** + * Get the terminal logo + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param reference {@link String } The reference that identifies the store. (required) + * @param model {@link String } Query: The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo getTerminalLogo(String merchantId, String reference, String model, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (reference == null) { + throw new IllegalArgumentException("Please provide the reference path parameter"); + } + pathParams.put("reference", reference); + + //Add query params + Map queryParams = new HashMap<>(); + if (model != null) { + queryParams.put("model", model); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/stores/{reference}/terminalLogos", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return Logo.fromJson(jsonResult); } - pathParams.put("storeId", storeId); - // Add query params - Map queryParams = new HashMap<>(); - if (model != null) { - queryParams.put("model", model); + /** + * Get the terminal logo + * + * @param storeId {@link String } The unique identifier of the store. (required) + * @param model {@link String } The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo getTerminalLogoByStoreId(String storeId, String model) throws ApiException, IOException { + return getTerminalLogoByStoreId(storeId, model, null); } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/stores/{storeId}/terminalLogos", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return Logo.fromJson(jsonResult); - } - - /** - * Get terminal settings - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param reference {@link String } The reference that identifies the store. (required) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings getTerminalSettings(String merchantId, String reference) - throws ApiException, IOException { - return getTerminalSettings(merchantId, reference, null); - } - - /** - * Get terminal settings - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param reference {@link String } The reference that identifies the store. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings getTerminalSettings( - String merchantId, String reference, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + /** + * Get the terminal logo + * + * @param storeId {@link String } The unique identifier of the store. (required) + * @param model {@link String } Query: The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo getTerminalLogoByStoreId(String storeId, String model, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (storeId == null) { + throw new IllegalArgumentException("Please provide the storeId path parameter"); + } + pathParams.put("storeId", storeId); + + //Add query params + Map queryParams = new HashMap<>(); + if (model != null) { + queryParams.put("model", model); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/stores/{storeId}/terminalLogos", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return Logo.fromJson(jsonResult); } - pathParams.put("merchantId", merchantId); - if (reference == null) { - throw new IllegalArgumentException("Please provide the reference path parameter"); + + /** + * Get terminal settings + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param reference {@link String } The reference that identifies the store. (required) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings getTerminalSettings(String merchantId, String reference) throws ApiException, IOException { + return getTerminalSettings(merchantId, reference, null); } - pathParams.put("reference", reference); - - String requestBody = null; - Resource resource = - new Resource( - this, - this.baseURL + "/merchants/{merchantId}/stores/{reference}/terminalSettings", - null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TerminalSettings.fromJson(jsonResult); - } - - /** - * Get terminal settings - * - * @param storeId {@link String } The unique identifier of the store. (required) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings getTerminalSettingsByStoreId(String storeId) - throws ApiException, IOException { - return getTerminalSettingsByStoreId(storeId, null); - } - - /** - * Get terminal settings - * - * @param storeId {@link String } The unique identifier of the store. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings getTerminalSettingsByStoreId( - String storeId, RequestOptions requestOptions) throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (storeId == null) { - throw new IllegalArgumentException("Please provide the storeId path parameter"); + + /** + * Get terminal settings + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param reference {@link String } The reference that identifies the store. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings getTerminalSettings(String merchantId, String reference, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (reference == null) { + throw new IllegalArgumentException("Please provide the reference path parameter"); + } + pathParams.put("reference", reference); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/stores/{reference}/terminalSettings", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TerminalSettings.fromJson(jsonResult); } - pathParams.put("storeId", storeId); - - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/stores/{storeId}/terminalSettings", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TerminalSettings.fromJson(jsonResult); - } - - /** - * Update the terminal logo - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param reference {@link String } The reference that identifies the store. (required) - * @param model {@link String } The terminal model. Possible values: E355, VX675WIFIBT, VX680, - * VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, - * V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T (required) - * @param logo {@link Logo } (required) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo updateTerminalLogo(String merchantId, String reference, String model, Logo logo) - throws ApiException, IOException { - return updateTerminalLogo(merchantId, reference, model, logo, null); - } - - /** - * Update the terminal logo - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param reference {@link String } The reference that identifies the store. (required) - * @param logo {@link Logo } (required) - * @param model {@link String } Query: The terminal model. Possible values: E355, VX675WIFIBT, - * VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, - * V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo updateTerminalLogo( - String merchantId, String reference, String model, Logo logo, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + + /** + * Get terminal settings + * + * @param storeId {@link String } The unique identifier of the store. (required) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings getTerminalSettingsByStoreId(String storeId) throws ApiException, IOException { + return getTerminalSettingsByStoreId(storeId, null); + } + + /** + * Get terminal settings + * + * @param storeId {@link String } The unique identifier of the store. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings getTerminalSettingsByStoreId(String storeId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (storeId == null) { + throw new IllegalArgumentException("Please provide the storeId path parameter"); + } + pathParams.put("storeId", storeId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/stores/{storeId}/terminalSettings", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TerminalSettings.fromJson(jsonResult); + } + + /** + * Update the terminal logo + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param reference {@link String } The reference that identifies the store. (required) + * @param model {@link String } The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T (required) + * @param logo {@link Logo } (required) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo updateTerminalLogo(String merchantId, String reference, String model, Logo logo) throws ApiException, IOException { + return updateTerminalLogo(merchantId, reference, model, logo, null); } - pathParams.put("merchantId", merchantId); - if (reference == null) { - throw new IllegalArgumentException("Please provide the reference path parameter"); + + /** + * Update the terminal logo + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param reference {@link String } The reference that identifies the store. (required) + * @param logo {@link Logo } (required) + * @param model {@link String } Query: The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo updateTerminalLogo(String merchantId, String reference, String model, Logo logo, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (reference == null) { + throw new IllegalArgumentException("Please provide the reference path parameter"); + } + pathParams.put("reference", reference); + + //Add query params + Map queryParams = new HashMap<>(); + if (model != null) { + queryParams.put("model", model); + } + + String requestBody = logo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/stores/{reference}/terminalLogos", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams, queryParams); + return Logo.fromJson(jsonResult); } - pathParams.put("reference", reference); - // Add query params - Map queryParams = new HashMap<>(); - if (model != null) { - queryParams.put("model", model); + /** + * Update the terminal logo + * + * @param storeId {@link String } The unique identifier of the store. (required) + * @param model {@link String } The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) + * @param logo {@link Logo } (required) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo updateTerminalLogoByStoreId(String storeId, String model, Logo logo) throws ApiException, IOException { + return updateTerminalLogoByStoreId(storeId, model, logo, null); } - String requestBody = logo.toJson(); - Resource resource = - new Resource( - this, this.baseURL + "/merchants/{merchantId}/stores/{reference}/terminalLogos", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams, queryParams); - return Logo.fromJson(jsonResult); - } - - /** - * Update the terminal logo - * - * @param storeId {@link String } The unique identifier of the store. (required) - * @param model {@link String } The terminal model. Possible values: E355, VX675WIFIBT, VX680, - * VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, - * V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) - * @param logo {@link Logo } (required) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo updateTerminalLogoByStoreId(String storeId, String model, Logo logo) - throws ApiException, IOException { - return updateTerminalLogoByStoreId(storeId, model, logo, null); - } - - /** - * Update the terminal logo - * - * @param storeId {@link String } The unique identifier of the store. (required) - * @param logo {@link Logo } (required) - * @param model {@link String } Query: The terminal model. Possible values: E355, VX675WIFIBT, - * VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, - * V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo updateTerminalLogoByStoreId( - String storeId, String model, Logo logo, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (storeId == null) { - throw new IllegalArgumentException("Please provide the storeId path parameter"); + /** + * Update the terminal logo + * + * @param storeId {@link String } The unique identifier of the store. (required) + * @param logo {@link Logo } (required) + * @param model {@link String } Query: The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo updateTerminalLogoByStoreId(String storeId, String model, Logo logo, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (storeId == null) { + throw new IllegalArgumentException("Please provide the storeId path parameter"); + } + pathParams.put("storeId", storeId); + + //Add query params + Map queryParams = new HashMap<>(); + if (model != null) { + queryParams.put("model", model); + } + + String requestBody = logo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/stores/{storeId}/terminalLogos", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams, queryParams); + return Logo.fromJson(jsonResult); } - pathParams.put("storeId", storeId); - // Add query params - Map queryParams = new HashMap<>(); - if (model != null) { - queryParams.put("model", model); + /** + * Update terminal settings + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param reference {@link String } The reference that identifies the store. (required) + * @param terminalSettings {@link TerminalSettings } (required) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings updateTerminalSettings(String merchantId, String reference, TerminalSettings terminalSettings) throws ApiException, IOException { + return updateTerminalSettings(merchantId, reference, terminalSettings, null); } - String requestBody = logo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/stores/{storeId}/terminalLogos", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams, queryParams); - return Logo.fromJson(jsonResult); - } - - /** - * Update terminal settings - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param reference {@link String } The reference that identifies the store. (required) - * @param terminalSettings {@link TerminalSettings } (required) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings updateTerminalSettings( - String merchantId, String reference, TerminalSettings terminalSettings) - throws ApiException, IOException { - return updateTerminalSettings(merchantId, reference, terminalSettings, null); - } - - /** - * Update terminal settings - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param reference {@link String } The reference that identifies the store. (required) - * @param terminalSettings {@link TerminalSettings } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings updateTerminalSettings( - String merchantId, - String reference, - TerminalSettings terminalSettings, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + /** + * Update terminal settings + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param reference {@link String } The reference that identifies the store. (required) + * @param terminalSettings {@link TerminalSettings } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings updateTerminalSettings(String merchantId, String reference, TerminalSettings terminalSettings, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (reference == null) { + throw new IllegalArgumentException("Please provide the reference path parameter"); + } + pathParams.put("reference", reference); + + String requestBody = terminalSettings.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/stores/{reference}/terminalSettings", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return TerminalSettings.fromJson(jsonResult); } - pathParams.put("merchantId", merchantId); - if (reference == null) { - throw new IllegalArgumentException("Please provide the reference path parameter"); + + /** + * Update terminal settings + * + * @param storeId {@link String } The unique identifier of the store. (required) + * @param terminalSettings {@link TerminalSettings } (required) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings updateTerminalSettingsByStoreId(String storeId, TerminalSettings terminalSettings) throws ApiException, IOException { + return updateTerminalSettingsByStoreId(storeId, terminalSettings, null); } - pathParams.put("reference", reference); - - String requestBody = terminalSettings.toJson(); - Resource resource = - new Resource( - this, - this.baseURL + "/merchants/{merchantId}/stores/{reference}/terminalSettings", - null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return TerminalSettings.fromJson(jsonResult); - } - - /** - * Update terminal settings - * - * @param storeId {@link String } The unique identifier of the store. (required) - * @param terminalSettings {@link TerminalSettings } (required) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings updateTerminalSettingsByStoreId( - String storeId, TerminalSettings terminalSettings) throws ApiException, IOException { - return updateTerminalSettingsByStoreId(storeId, terminalSettings, null); - } - - /** - * Update terminal settings - * - * @param storeId {@link String } The unique identifier of the store. (required) - * @param terminalSettings {@link TerminalSettings } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings updateTerminalSettingsByStoreId( - String storeId, TerminalSettings terminalSettings, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (storeId == null) { - throw new IllegalArgumentException("Please provide the storeId path parameter"); + + /** + * Update terminal settings + * + * @param storeId {@link String } The unique identifier of the store. (required) + * @param terminalSettings {@link TerminalSettings } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings updateTerminalSettingsByStoreId(String storeId, TerminalSettings terminalSettings, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (storeId == null) { + throw new IllegalArgumentException("Please provide the storeId path parameter"); + } + pathParams.put("storeId", storeId); + + String requestBody = terminalSettings.toJson(); + Resource resource = new Resource(this, this.baseURL + "/stores/{storeId}/terminalSettings", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return TerminalSettings.fromJson(jsonResult); } - pathParams.put("storeId", storeId); - - String requestBody = terminalSettings.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/stores/{storeId}/terminalSettings", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return TerminalSettings.fromJson(jsonResult); - } } diff --git a/src/main/java/com/adyen/service/management/TerminalSettingsTerminalLevelApi.java b/src/main/java/com/adyen/service/management/TerminalSettingsTerminalLevelApi.java index 83a167b33..6ae415012 100644 --- a/src/main/java/com/adyen/service/management/TerminalSettingsTerminalLevelApi.java +++ b/src/main/java/com/adyen/service/management/TerminalSettingsTerminalLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,195 +14,176 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.management.Logo; +import com.adyen.model.management.RestServiceError; import com.adyen.model.management.TerminalSettings; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class TerminalSettingsTerminalLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * Terminal settings - terminal level constructor in {@link com.adyen.service.management package}. - * - * @param client {@link Client } (required) - */ - public TerminalSettingsTerminalLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } - - /** - * Terminal settings - terminal level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or - * testing purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public TerminalSettingsTerminalLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Get the terminal logo - * - * @param terminalId {@link String } The unique identifier of the payment terminal. (required) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo getTerminalLogo(String terminalId) throws ApiException, IOException { - return getTerminalLogo(terminalId, null); - } - - /** - * Get the terminal logo - * - * @param terminalId {@link String } The unique identifier of the payment terminal. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo getTerminalLogo(String terminalId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (terminalId == null) { - throw new IllegalArgumentException("Please provide the terminalId path parameter"); + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * Terminal settings - terminal level constructor in {@link com.adyen.service.management package}. + * @param client {@link Client } (required) + */ + public TerminalSettingsTerminalLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); } - pathParams.put("terminalId", terminalId); - - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/terminals/{terminalId}/terminalLogos", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return Logo.fromJson(jsonResult); - } - - /** - * Get terminal settings - * - * @param terminalId {@link String } The unique identifier of the payment terminal. (required) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings getTerminalSettings(String terminalId) throws ApiException, IOException { - return getTerminalSettings(terminalId, null); - } - - /** - * Get terminal settings - * - * @param terminalId {@link String } The unique identifier of the payment terminal. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings getTerminalSettings(String terminalId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (terminalId == null) { - throw new IllegalArgumentException("Please provide the terminalId path parameter"); + + /** + * Terminal settings - terminal level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public TerminalSettingsTerminalLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - pathParams.put("terminalId", terminalId); - - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/terminals/{terminalId}/terminalSettings", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TerminalSettings.fromJson(jsonResult); - } - - /** - * Update the logo - * - * @param terminalId {@link String } The unique identifier of the payment terminal. (required) - * @param logo {@link Logo } (required) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo updateLogo(String terminalId, Logo logo) throws ApiException, IOException { - return updateLogo(terminalId, logo, null); - } - - /** - * Update the logo - * - * @param terminalId {@link String } The unique identifier of the payment terminal. (required) - * @param logo {@link Logo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo updateLogo(String terminalId, Logo logo, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (terminalId == null) { - throw new IllegalArgumentException("Please provide the terminalId path parameter"); + + /** + * Get the terminal logo + * + * @param terminalId {@link String } The unique identifier of the payment terminal. (required) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo getTerminalLogo(String terminalId) throws ApiException, IOException { + return getTerminalLogo(terminalId, null); } - pathParams.put("terminalId", terminalId); - - String requestBody = logo.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/terminals/{terminalId}/terminalLogos", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return Logo.fromJson(jsonResult); - } - - /** - * Update terminal settings - * - * @param terminalId {@link String } The unique identifier of the payment terminal. (required) - * @param terminalSettings {@link TerminalSettings } (required) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings updateTerminalSettings( - String terminalId, TerminalSettings terminalSettings) throws ApiException, IOException { - return updateTerminalSettings(terminalId, terminalSettings, null); - } - - /** - * Update terminal settings - * - * @param terminalId {@link String } The unique identifier of the payment terminal. (required) - * @param terminalSettings {@link TerminalSettings } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings updateTerminalSettings( - String terminalId, TerminalSettings terminalSettings, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (terminalId == null) { - throw new IllegalArgumentException("Please provide the terminalId path parameter"); + + /** + * Get the terminal logo + * + * @param terminalId {@link String } The unique identifier of the payment terminal. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo getTerminalLogo(String terminalId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (terminalId == null) { + throw new IllegalArgumentException("Please provide the terminalId path parameter"); + } + pathParams.put("terminalId", terminalId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/terminals/{terminalId}/terminalLogos", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return Logo.fromJson(jsonResult); + } + + /** + * Get terminal settings + * + * @param terminalId {@link String } The unique identifier of the payment terminal. (required) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings getTerminalSettings(String terminalId) throws ApiException, IOException { + return getTerminalSettings(terminalId, null); + } + + /** + * Get terminal settings + * + * @param terminalId {@link String } The unique identifier of the payment terminal. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings getTerminalSettings(String terminalId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (terminalId == null) { + throw new IllegalArgumentException("Please provide the terminalId path parameter"); + } + pathParams.put("terminalId", terminalId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/terminals/{terminalId}/terminalSettings", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TerminalSettings.fromJson(jsonResult); + } + + /** + * Update the logo + * + * @param terminalId {@link String } The unique identifier of the payment terminal. (required) + * @param logo {@link Logo } (required) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo updateLogo(String terminalId, Logo logo) throws ApiException, IOException { + return updateLogo(terminalId, logo, null); + } + + /** + * Update the logo + * + * @param terminalId {@link String } The unique identifier of the payment terminal. (required) + * @param logo {@link Logo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo updateLogo(String terminalId, Logo logo, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (terminalId == null) { + throw new IllegalArgumentException("Please provide the terminalId path parameter"); + } + pathParams.put("terminalId", terminalId); + + String requestBody = logo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/terminals/{terminalId}/terminalLogos", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return Logo.fromJson(jsonResult); + } + + /** + * Update terminal settings + * + * @param terminalId {@link String } The unique identifier of the payment terminal. (required) + * @param terminalSettings {@link TerminalSettings } (required) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings updateTerminalSettings(String terminalId, TerminalSettings terminalSettings) throws ApiException, IOException { + return updateTerminalSettings(terminalId, terminalSettings, null); + } + + /** + * Update terminal settings + * + * @param terminalId {@link String } The unique identifier of the payment terminal. (required) + * @param terminalSettings {@link TerminalSettings } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings updateTerminalSettings(String terminalId, TerminalSettings terminalSettings, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (terminalId == null) { + throw new IllegalArgumentException("Please provide the terminalId path parameter"); + } + pathParams.put("terminalId", terminalId); + + String requestBody = terminalSettings.toJson(); + Resource resource = new Resource(this, this.baseURL + "/terminals/{terminalId}/terminalSettings", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return TerminalSettings.fromJson(jsonResult); } - pathParams.put("terminalId", terminalId); - - String requestBody = terminalSettings.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/terminals/{terminalId}/terminalSettings", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return TerminalSettings.fromJson(jsonResult); - } } diff --git a/src/main/java/com/adyen/service/management/TerminalsTerminalLevelApi.java b/src/main/java/com/adyen/service/management/TerminalsTerminalLevelApi.java index 7b877311b..619cbe6bf 100644 --- a/src/main/java/com/adyen/service/management/TerminalsTerminalLevelApi.java +++ b/src/main/java/com/adyen/service/management/TerminalsTerminalLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,163 +14,131 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.management.ListTerminalsResponse; +import com.adyen.model.management.RestServiceError; import com.adyen.model.management.TerminalReassignmentRequest; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class TerminalsTerminalLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; + public static final String API_VERSION = "3"; - /** - * Terminals - terminal level constructor in {@link com.adyen.service.management package}. - * - * @param client {@link Client } (required) - */ - public TerminalsTerminalLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } + protected String baseURL; - /** - * Terminals - terminal level constructor in {@link com.adyen.service.management package}. Please - * use this constructor only if you would like to pass along your own url for routing or testing - * purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public TerminalsTerminalLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Get a list of terminals - * - * @return {@link ListTerminalsResponse } - * @throws ApiException if fails to make API call - */ - public ListTerminalsResponse listTerminals() throws ApiException, IOException { - return listTerminals(null, null, null, null, null, null, null, null, null); - } - - /** - * Get a list of terminals - * - * @param searchQuery {@link String } Query: Returns terminals with an ID that contains the - * specified string. If present, other query parameters are ignored. (optional) - * @param otpQuery {@link String } Query: Returns one or more terminals associated with the - * one-time passwords specified in the request. If this query parameter is used, other query - * parameters are ignored. (optional) - * @param countries {@link String } Query: Returns terminals located in the countries specified by - * their [two-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). - * (optional) - * @param merchantIds {@link String } Query: Returns terminals that belong to the merchant - * accounts specified by their unique merchant account ID. (optional) - * @param storeIds {@link String } Query: Returns terminals that are assigned to the - * [stores](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores) - * specified by their unique store ID. (optional) - * @param brandModels {@link String } Query: Returns terminals of the - * [models](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/companies/{companyId}/terminalModels) - * specified in the format *brand.model*. (optional) - * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The - * default is 20 items on a page. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ListTerminalsResponse } - * @throws ApiException if fails to make API call - */ - public ListTerminalsResponse listTerminals( - String searchQuery, - String otpQuery, - String countries, - String merchantIds, - String storeIds, - String brandModels, - Integer pageNumber, - Integer pageSize, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add query params - Map queryParams = new HashMap<>(); - if (searchQuery != null) { - queryParams.put("searchQuery", searchQuery); - } - if (otpQuery != null) { - queryParams.put("otpQuery", otpQuery); - } - if (countries != null) { - queryParams.put("countries", countries); + /** + * Terminals - terminal level constructor in {@link com.adyen.service.management package}. + * @param client {@link Client } (required) + */ + public TerminalsTerminalLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); } - if (merchantIds != null) { - queryParams.put("merchantIds", merchantIds); - } - if (storeIds != null) { - queryParams.put("storeIds", storeIds); - } - if (brandModels != null) { - queryParams.put("brandModels", brandModels); - } - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); + + /** + * Terminals - terminal level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public TerminalsTerminalLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); + + /** + * Get a list of terminals + * + * @return {@link ListTerminalsResponse } + * @throws ApiException if fails to make API call + */ + public ListTerminalsResponse listTerminals() throws ApiException, IOException { + return listTerminals(null, null, null, null, null, null, null, null, null); } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/terminals", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); - return ListTerminalsResponse.fromJson(jsonResult); - } + /** + * Get a list of terminals + * + * @param searchQuery {@link String } Query: Returns terminals with an ID that contains the specified string. If present, other query parameters are ignored. (optional) + * @param otpQuery {@link String } Query: Returns one or more terminals associated with the one-time passwords specified in the request. If this query parameter is used, other query parameters are ignored. (optional) + * @param countries {@link String } Query: Returns terminals located in the countries specified by their [two-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). (optional) + * @param merchantIds {@link String } Query: Returns terminals that belong to the merchant accounts specified by their unique merchant account ID. (optional) + * @param storeIds {@link String } Query: Returns terminals that are assigned to the [stores](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores) specified by their unique store ID. (optional) + * @param brandModels {@link String } Query: Returns terminals of the [models](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/companies/{companyId}/terminalModels) specified in the format *brand.model*. (optional) + * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The default is 20 items on a page. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ListTerminalsResponse } + * @throws ApiException if fails to make API call + */ + public ListTerminalsResponse listTerminals(String searchQuery, String otpQuery, String countries, String merchantIds, String storeIds, String brandModels, Integer pageNumber, Integer pageSize, RequestOptions requestOptions) throws ApiException, IOException { + //Add query params + Map queryParams = new HashMap<>(); + if (searchQuery != null) { + queryParams.put("searchQuery", searchQuery); + } + if (otpQuery != null) { + queryParams.put("otpQuery", otpQuery); + } + if (countries != null) { + queryParams.put("countries", countries); + } + if (merchantIds != null) { + queryParams.put("merchantIds", merchantIds); + } + if (storeIds != null) { + queryParams.put("storeIds", storeIds); + } + if (brandModels != null) { + queryParams.put("brandModels", brandModels); + } + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); + } + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); + } - /** - * Reassign a terminal - * - * @param terminalId {@link String } The unique identifier of the payment terminal. (required) - * @param terminalReassignmentRequest {@link TerminalReassignmentRequest } (required) - * @throws ApiException if fails to make API call - */ - public void reassignTerminal( - String terminalId, TerminalReassignmentRequest terminalReassignmentRequest) - throws ApiException, IOException { - reassignTerminal(terminalId, terminalReassignmentRequest, null); - } + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/terminals", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); + return ListTerminalsResponse.fromJson(jsonResult); + } - /** - * Reassign a terminal - * - * @param terminalId {@link String } The unique identifier of the payment terminal. (required) - * @param terminalReassignmentRequest {@link TerminalReassignmentRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void reassignTerminal( - String terminalId, - TerminalReassignmentRequest terminalReassignmentRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (terminalId == null) { - throw new IllegalArgumentException("Please provide the terminalId path parameter"); + /** + * Reassign a terminal + * + * @param terminalId {@link String } The unique identifier of the payment terminal. (required) + * @param terminalReassignmentRequest {@link TerminalReassignmentRequest } (required) + * @throws ApiException if fails to make API call + */ + public void reassignTerminal(String terminalId, TerminalReassignmentRequest terminalReassignmentRequest) throws ApiException, IOException { + reassignTerminal(terminalId, terminalReassignmentRequest, null); } - pathParams.put("terminalId", terminalId); - String requestBody = terminalReassignmentRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/terminals/{terminalId}/reassign", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - } + /** + * Reassign a terminal + * + * @param terminalId {@link String } The unique identifier of the payment terminal. (required) + * @param terminalReassignmentRequest {@link TerminalReassignmentRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void reassignTerminal(String terminalId, TerminalReassignmentRequest terminalReassignmentRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (terminalId == null) { + throw new IllegalArgumentException("Please provide the terminalId path parameter"); + } + pathParams.put("terminalId", terminalId); + + String requestBody = terminalReassignmentRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/terminals/{terminalId}/reassign", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + } } diff --git a/src/main/java/com/adyen/service/management/UsersCompanyLevelApi.java b/src/main/java/com/adyen/service/management/UsersCompanyLevelApi.java index 8d96a1d31..c07b49830 100644 --- a/src/main/java/com/adyen/service/management/UsersCompanyLevelApi.java +++ b/src/main/java/com/adyen/service/management/UsersCompanyLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,241 +14,206 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.management.CompanyUser; import com.adyen.model.management.CreateCompanyUserRequest; import com.adyen.model.management.CreateCompanyUserResponse; import com.adyen.model.management.ListCompanyUsersResponse; +import com.adyen.model.management.RestServiceError; import com.adyen.model.management.UpdateCompanyUserRequest; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class UsersCompanyLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * Users - company level constructor in {@link com.adyen.service.management package}. - * - * @param client {@link Client } (required) - */ - public UsersCompanyLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } - - /** - * Users - company level constructor in {@link com.adyen.service.management package}. Please use - * this constructor only if you would like to pass along your own url for routing or testing - * purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public UsersCompanyLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Create a new user - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param createCompanyUserRequest {@link CreateCompanyUserRequest } (required) - * @return {@link CreateCompanyUserResponse } - * @throws ApiException if fails to make API call - */ - public CreateCompanyUserResponse createNewUser( - String companyId, CreateCompanyUserRequest createCompanyUserRequest) - throws ApiException, IOException { - return createNewUser(companyId, createCompanyUserRequest, null); - } - - /** - * Create a new user - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param createCompanyUserRequest {@link CreateCompanyUserRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link CreateCompanyUserResponse } - * @throws ApiException if fails to make API call - */ - public CreateCompanyUserResponse createNewUser( - String companyId, - CreateCompanyUserRequest createCompanyUserRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * Users - company level constructor in {@link com.adyen.service.management package}. + * @param client {@link Client } (required) + */ + public UsersCompanyLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } + + /** + * Users - company level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public UsersCompanyLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - pathParams.put("companyId", companyId); - - String requestBody = createCompanyUserRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/users", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return CreateCompanyUserResponse.fromJson(jsonResult); - } - - /** - * Get user details - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param userId {@link String } The unique identifier of the user. (required) - * @return {@link CompanyUser } - * @throws ApiException if fails to make API call - */ - public CompanyUser getUserDetails(String companyId, String userId) - throws ApiException, IOException { - return getUserDetails(companyId, userId, null); - } - - /** - * Get user details - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param userId {@link String } The unique identifier of the user. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link CompanyUser } - * @throws ApiException if fails to make API call - */ - public CompanyUser getUserDetails(String companyId, String userId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + + /** + * Create a new user + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param createCompanyUserRequest {@link CreateCompanyUserRequest } (required) + * @return {@link CreateCompanyUserResponse } + * @throws ApiException if fails to make API call + */ + public CreateCompanyUserResponse createNewUser(String companyId, CreateCompanyUserRequest createCompanyUserRequest) throws ApiException, IOException { + return createNewUser(companyId, createCompanyUserRequest, null); } - pathParams.put("companyId", companyId); - if (userId == null) { - throw new IllegalArgumentException("Please provide the userId path parameter"); + + /** + * Create a new user + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param createCompanyUserRequest {@link CreateCompanyUserRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link CreateCompanyUserResponse } + * @throws ApiException if fails to make API call + */ + public CreateCompanyUserResponse createNewUser(String companyId, CreateCompanyUserRequest createCompanyUserRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + + String requestBody = createCompanyUserRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/users", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return CreateCompanyUserResponse.fromJson(jsonResult); } - pathParams.put("userId", userId); - - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/companies/{companyId}/users/{userId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return CompanyUser.fromJson(jsonResult); - } - - /** - * Get a list of users - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @return {@link ListCompanyUsersResponse } - * @throws ApiException if fails to make API call - */ - public ListCompanyUsersResponse listUsers(String companyId) throws ApiException, IOException { - return listUsers(companyId, null, null, null, null); - } - - /** - * Get a list of users - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param pageNumber {@link Integer } Query: The number of the page to return. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page. Maximum value is - * **100**. The default is **10** items on a page. (optional) - * @param username {@link String } Query: The partial or complete username to select all users - * that match. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ListCompanyUsersResponse } - * @throws ApiException if fails to make API call - */ - public ListCompanyUsersResponse listUsers( - String companyId, - Integer pageNumber, - Integer pageSize, - String username, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + + /** + * Get user details + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param userId {@link String } The unique identifier of the user. (required) + * @return {@link CompanyUser } + * @throws ApiException if fails to make API call + */ + public CompanyUser getUserDetails(String companyId, String userId) throws ApiException, IOException { + return getUserDetails(companyId, userId, null); } - pathParams.put("companyId", companyId); - // Add query params - Map queryParams = new HashMap<>(); - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); + /** + * Get user details + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param userId {@link String } The unique identifier of the user. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link CompanyUser } + * @throws ApiException if fails to make API call + */ + public CompanyUser getUserDetails(String companyId, String userId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + if (userId == null) { + throw new IllegalArgumentException("Please provide the userId path parameter"); + } + pathParams.put("userId", userId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/users/{userId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return CompanyUser.fromJson(jsonResult); } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); + + /** + * Get a list of users + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @return {@link ListCompanyUsersResponse } + * @throws ApiException if fails to make API call + */ + public ListCompanyUsersResponse listUsers(String companyId) throws ApiException, IOException { + return listUsers(companyId, null, null, null, null); } - if (username != null) { - queryParams.put("username", username); + + /** + * Get a list of users + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param pageNumber {@link Integer } Query: The number of the page to return. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page. Maximum value is **100**. The default is **10** items on a page. (optional) + * @param username {@link String } Query: The partial or complete username to select all users that match. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ListCompanyUsersResponse } + * @throws ApiException if fails to make API call + */ + public ListCompanyUsersResponse listUsers(String companyId, Integer pageNumber, Integer pageSize, String username, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + + //Add query params + Map queryParams = new HashMap<>(); + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); + } + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); + } + if (username != null) { + queryParams.put("username", username); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/users", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return ListCompanyUsersResponse.fromJson(jsonResult); } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/users", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return ListCompanyUsersResponse.fromJson(jsonResult); - } - - /** - * Update user details - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param userId {@link String } The unique identifier of the user. (required) - * @param updateCompanyUserRequest {@link UpdateCompanyUserRequest } (required) - * @return {@link CompanyUser } - * @throws ApiException if fails to make API call - */ - public CompanyUser updateUserDetails( - String companyId, String userId, UpdateCompanyUserRequest updateCompanyUserRequest) - throws ApiException, IOException { - return updateUserDetails(companyId, userId, updateCompanyUserRequest, null); - } - - /** - * Update user details - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param userId {@link String } The unique identifier of the user. (required) - * @param updateCompanyUserRequest {@link UpdateCompanyUserRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link CompanyUser } - * @throws ApiException if fails to make API call - */ - public CompanyUser updateUserDetails( - String companyId, - String userId, - UpdateCompanyUserRequest updateCompanyUserRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + /** + * Update user details + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param userId {@link String } The unique identifier of the user. (required) + * @param updateCompanyUserRequest {@link UpdateCompanyUserRequest } (required) + * @return {@link CompanyUser } + * @throws ApiException if fails to make API call + */ + public CompanyUser updateUserDetails(String companyId, String userId, UpdateCompanyUserRequest updateCompanyUserRequest) throws ApiException, IOException { + return updateUserDetails(companyId, userId, updateCompanyUserRequest, null); } - pathParams.put("companyId", companyId); - if (userId == null) { - throw new IllegalArgumentException("Please provide the userId path parameter"); + + /** + * Update user details + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param userId {@link String } The unique identifier of the user. (required) + * @param updateCompanyUserRequest {@link UpdateCompanyUserRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link CompanyUser } + * @throws ApiException if fails to make API call + */ + public CompanyUser updateUserDetails(String companyId, String userId, UpdateCompanyUserRequest updateCompanyUserRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + if (userId == null) { + throw new IllegalArgumentException("Please provide the userId path parameter"); + } + pathParams.put("userId", userId); + + String requestBody = updateCompanyUserRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/users/{userId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return CompanyUser.fromJson(jsonResult); } - pathParams.put("userId", userId); - - String requestBody = updateCompanyUserRequest.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/companies/{companyId}/users/{userId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return CompanyUser.fromJson(jsonResult); - } } diff --git a/src/main/java/com/adyen/service/management/UsersMerchantLevelApi.java b/src/main/java/com/adyen/service/management/UsersMerchantLevelApi.java index fe5a4e722..d3c4acc2b 100644 --- a/src/main/java/com/adyen/service/management/UsersMerchantLevelApi.java +++ b/src/main/java/com/adyen/service/management/UsersMerchantLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,240 +14,206 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.management.CreateMerchantUserRequest; import com.adyen.model.management.CreateUserResponse; import com.adyen.model.management.ListMerchantUsersResponse; +import com.adyen.model.management.RestServiceError; import com.adyen.model.management.UpdateMerchantUserRequest; import com.adyen.model.management.User; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class UsersMerchantLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * Users - merchant level constructor in {@link com.adyen.service.management package}. - * - * @param client {@link Client } (required) - */ - public UsersMerchantLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } - - /** - * Users - merchant level constructor in {@link com.adyen.service.management package}. Please use - * this constructor only if you would like to pass along your own url for routing or testing - * purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public UsersMerchantLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Create a new user - * - * @param merchantId {@link String } Unique identifier of the merchant. (required) - * @param createMerchantUserRequest {@link CreateMerchantUserRequest } (required) - * @return {@link CreateUserResponse } - * @throws ApiException if fails to make API call - */ - public CreateUserResponse createNewUser( - String merchantId, CreateMerchantUserRequest createMerchantUserRequest) - throws ApiException, IOException { - return createNewUser(merchantId, createMerchantUserRequest, null); - } - - /** - * Create a new user - * - * @param merchantId {@link String } Unique identifier of the merchant. (required) - * @param createMerchantUserRequest {@link CreateMerchantUserRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link CreateUserResponse } - * @throws ApiException if fails to make API call - */ - public CreateUserResponse createNewUser( - String merchantId, - CreateMerchantUserRequest createMerchantUserRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * Users - merchant level constructor in {@link com.adyen.service.management package}. + * @param client {@link Client } (required) + */ + public UsersMerchantLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } + + /** + * Users - merchant level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public UsersMerchantLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - pathParams.put("merchantId", merchantId); - - String requestBody = createMerchantUserRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/users", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return CreateUserResponse.fromJson(jsonResult); - } - - /** - * Get user details - * - * @param merchantId {@link String } Unique identifier of the merchant. (required) - * @param userId {@link String } Unique identifier of the user. (required) - * @return {@link User } - * @throws ApiException if fails to make API call - */ - public User getUserDetails(String merchantId, String userId) throws ApiException, IOException { - return getUserDetails(merchantId, userId, null); - } - - /** - * Get user details - * - * @param merchantId {@link String } Unique identifier of the merchant. (required) - * @param userId {@link String } Unique identifier of the user. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link User } - * @throws ApiException if fails to make API call - */ - public User getUserDetails(String merchantId, String userId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + + /** + * Create a new user + * + * @param merchantId {@link String } Unique identifier of the merchant. (required) + * @param createMerchantUserRequest {@link CreateMerchantUserRequest } (required) + * @return {@link CreateUserResponse } + * @throws ApiException if fails to make API call + */ + public CreateUserResponse createNewUser(String merchantId, CreateMerchantUserRequest createMerchantUserRequest) throws ApiException, IOException { + return createNewUser(merchantId, createMerchantUserRequest, null); } - pathParams.put("merchantId", merchantId); - if (userId == null) { - throw new IllegalArgumentException("Please provide the userId path parameter"); + + /** + * Create a new user + * + * @param merchantId {@link String } Unique identifier of the merchant. (required) + * @param createMerchantUserRequest {@link CreateMerchantUserRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link CreateUserResponse } + * @throws ApiException if fails to make API call + */ + public CreateUserResponse createNewUser(String merchantId, CreateMerchantUserRequest createMerchantUserRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + + String requestBody = createMerchantUserRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/users", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return CreateUserResponse.fromJson(jsonResult); } - pathParams.put("userId", userId); - - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/merchants/{merchantId}/users/{userId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return User.fromJson(jsonResult); - } - - /** - * Get a list of users - * - * @param merchantId {@link String } Unique identifier of the merchant. (required) - * @return {@link ListMerchantUsersResponse } - * @throws ApiException if fails to make API call - */ - public ListMerchantUsersResponse listUsers(String merchantId) throws ApiException, IOException { - return listUsers(merchantId, null, null, null, null); - } - - /** - * Get a list of users - * - * @param merchantId {@link String } Unique identifier of the merchant. (required) - * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page. Maximum value is - * **100**. The default is **10** items on a page. (optional) - * @param username {@link String } Query: The partial or complete username to select all users - * that match. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ListMerchantUsersResponse } - * @throws ApiException if fails to make API call - */ - public ListMerchantUsersResponse listUsers( - String merchantId, - Integer pageNumber, - Integer pageSize, - String username, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + + /** + * Get user details + * + * @param merchantId {@link String } Unique identifier of the merchant. (required) + * @param userId {@link String } Unique identifier of the user. (required) + * @return {@link User } + * @throws ApiException if fails to make API call + */ + public User getUserDetails(String merchantId, String userId) throws ApiException, IOException { + return getUserDetails(merchantId, userId, null); } - pathParams.put("merchantId", merchantId); - // Add query params - Map queryParams = new HashMap<>(); - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); + /** + * Get user details + * + * @param merchantId {@link String } Unique identifier of the merchant. (required) + * @param userId {@link String } Unique identifier of the user. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link User } + * @throws ApiException if fails to make API call + */ + public User getUserDetails(String merchantId, String userId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (userId == null) { + throw new IllegalArgumentException("Please provide the userId path parameter"); + } + pathParams.put("userId", userId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/users/{userId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return User.fromJson(jsonResult); } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); + + /** + * Get a list of users + * + * @param merchantId {@link String } Unique identifier of the merchant. (required) + * @return {@link ListMerchantUsersResponse } + * @throws ApiException if fails to make API call + */ + public ListMerchantUsersResponse listUsers(String merchantId) throws ApiException, IOException { + return listUsers(merchantId, null, null, null, null); } - if (username != null) { - queryParams.put("username", username); + + /** + * Get a list of users + * + * @param merchantId {@link String } Unique identifier of the merchant. (required) + * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page. Maximum value is **100**. The default is **10** items on a page. (optional) + * @param username {@link String } Query: The partial or complete username to select all users that match. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ListMerchantUsersResponse } + * @throws ApiException if fails to make API call + */ + public ListMerchantUsersResponse listUsers(String merchantId, Integer pageNumber, Integer pageSize, String username, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + + //Add query params + Map queryParams = new HashMap<>(); + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); + } + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); + } + if (username != null) { + queryParams.put("username", username); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/users", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return ListMerchantUsersResponse.fromJson(jsonResult); } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/users", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return ListMerchantUsersResponse.fromJson(jsonResult); - } - - /** - * Update a user - * - * @param merchantId {@link String } Unique identifier of the merchant. (required) - * @param userId {@link String } Unique identifier of the user. (required) - * @param updateMerchantUserRequest {@link UpdateMerchantUserRequest } (required) - * @return {@link User } - * @throws ApiException if fails to make API call - */ - public User updateUser( - String merchantId, String userId, UpdateMerchantUserRequest updateMerchantUserRequest) - throws ApiException, IOException { - return updateUser(merchantId, userId, updateMerchantUserRequest, null); - } - - /** - * Update a user - * - * @param merchantId {@link String } Unique identifier of the merchant. (required) - * @param userId {@link String } Unique identifier of the user. (required) - * @param updateMerchantUserRequest {@link UpdateMerchantUserRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link User } - * @throws ApiException if fails to make API call - */ - public User updateUser( - String merchantId, - String userId, - UpdateMerchantUserRequest updateMerchantUserRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + /** + * Update a user + * + * @param merchantId {@link String } Unique identifier of the merchant. (required) + * @param userId {@link String } Unique identifier of the user. (required) + * @param updateMerchantUserRequest {@link UpdateMerchantUserRequest } (required) + * @return {@link User } + * @throws ApiException if fails to make API call + */ + public User updateUser(String merchantId, String userId, UpdateMerchantUserRequest updateMerchantUserRequest) throws ApiException, IOException { + return updateUser(merchantId, userId, updateMerchantUserRequest, null); } - pathParams.put("merchantId", merchantId); - if (userId == null) { - throw new IllegalArgumentException("Please provide the userId path parameter"); + + /** + * Update a user + * + * @param merchantId {@link String } Unique identifier of the merchant. (required) + * @param userId {@link String } Unique identifier of the user. (required) + * @param updateMerchantUserRequest {@link UpdateMerchantUserRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link User } + * @throws ApiException if fails to make API call + */ + public User updateUser(String merchantId, String userId, UpdateMerchantUserRequest updateMerchantUserRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (userId == null) { + throw new IllegalArgumentException("Please provide the userId path parameter"); + } + pathParams.put("userId", userId); + + String requestBody = updateMerchantUserRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/users/{userId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return User.fromJson(jsonResult); } - pathParams.put("userId", userId); - - String requestBody = updateMerchantUserRequest.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/merchants/{merchantId}/users/{userId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return User.fromJson(jsonResult); - } } diff --git a/src/main/java/com/adyen/service/management/WebhooksCompanyLevelApi.java b/src/main/java/com/adyen/service/management/WebhooksCompanyLevelApi.java index 793fb3397..36125628a 100644 --- a/src/main/java/com/adyen/service/management/WebhooksCompanyLevelApi.java +++ b/src/main/java/com/adyen/service/management/WebhooksCompanyLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,375 +14,320 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.management.CreateCompanyWebhookRequest; import com.adyen.model.management.GenerateHmacKeyResponse; import com.adyen.model.management.ListWebhooksResponse; +import com.adyen.model.management.RestServiceError; import com.adyen.model.management.TestCompanyWebhookRequest; import com.adyen.model.management.TestWebhookResponse; import com.adyen.model.management.UpdateCompanyWebhookRequest; import com.adyen.model.management.Webhook; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class WebhooksCompanyLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; + public static final String API_VERSION = "3"; - /** - * Webhooks - company level constructor in {@link com.adyen.service.management package}. - * - * @param client {@link Client } (required) - */ - public WebhooksCompanyLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } + protected String baseURL; - /** - * Webhooks - company level constructor in {@link com.adyen.service.management package}. Please - * use this constructor only if you would like to pass along your own url for routing or testing - * purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public WebhooksCompanyLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Generate an HMAC key - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @return {@link GenerateHmacKeyResponse } - * @throws ApiException if fails to make API call - */ - public GenerateHmacKeyResponse generateHmacKey(String companyId, String webhookId) - throws ApiException, IOException { - return generateHmacKey(companyId, webhookId, null); - } - - /** - * Generate an HMAC key - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link GenerateHmacKeyResponse } - * @throws ApiException if fails to make API call - */ - public GenerateHmacKeyResponse generateHmacKey( - String companyId, String webhookId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + /** + * Webhooks - company level constructor in {@link com.adyen.service.management package}. + * @param client {@link Client } (required) + */ + public WebhooksCompanyLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); } - pathParams.put("companyId", companyId); - if (webhookId == null) { - throw new IllegalArgumentException("Please provide the webhookId path parameter"); + + /** + * Webhooks - company level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public WebhooksCompanyLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - pathParams.put("webhookId", webhookId); - String requestBody = null; - Resource resource = - new Resource( - this, this.baseURL + "/companies/{companyId}/webhooks/{webhookId}/generateHmac", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return GenerateHmacKeyResponse.fromJson(jsonResult); - } + /** + * Generate an HMAC key + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @return {@link GenerateHmacKeyResponse } + * @throws ApiException if fails to make API call + */ + public GenerateHmacKeyResponse generateHmacKey(String companyId, String webhookId) throws ApiException, IOException { + return generateHmacKey(companyId, webhookId, null); + } - /** - * Get a webhook - * - * @param companyId {@link String } Unique identifier of the [company - * account](https://docs.adyen.com/account/account-structure#company-account). (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @return {@link Webhook } - * @throws ApiException if fails to make API call - */ - public Webhook getWebhook(String companyId, String webhookId) throws ApiException, IOException { - return getWebhook(companyId, webhookId, null); - } + /** + * Generate an HMAC key + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link GenerateHmacKeyResponse } + * @throws ApiException if fails to make API call + */ + public GenerateHmacKeyResponse generateHmacKey(String companyId, String webhookId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + if (webhookId == null) { + throw new IllegalArgumentException("Please provide the webhookId path parameter"); + } + pathParams.put("webhookId", webhookId); - /** - * Get a webhook - * - * @param companyId {@link String } Unique identifier of the [company - * account](https://docs.adyen.com/account/account-structure#company-account). (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link Webhook } - * @throws ApiException if fails to make API call - */ - public Webhook getWebhook(String companyId, String webhookId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - if (webhookId == null) { - throw new IllegalArgumentException("Please provide the webhookId path parameter"); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/webhooks/{webhookId}/generateHmac", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return GenerateHmacKeyResponse.fromJson(jsonResult); } - pathParams.put("webhookId", webhookId); - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/companies/{companyId}/webhooks/{webhookId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return Webhook.fromJson(jsonResult); - } + /** + * Get a webhook + * + * @param companyId {@link String } Unique identifier of the [company account](https://docs.adyen.com/account/account-structure#company-account). (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @return {@link Webhook } + * @throws ApiException if fails to make API call + */ + public Webhook getWebhook(String companyId, String webhookId) throws ApiException, IOException { + return getWebhook(companyId, webhookId, null); + } - /** - * List all webhooks - * - * @param companyId {@link String } Unique identifier of the [company - * account](https://docs.adyen.com/account/account-structure#company-account). (required) - * @return {@link ListWebhooksResponse } - * @throws ApiException if fails to make API call - */ - public ListWebhooksResponse listAllWebhooks(String companyId) throws ApiException, IOException { - return listAllWebhooks(companyId, null, null, null); - } + /** + * Get a webhook + * + * @param companyId {@link String } Unique identifier of the [company account](https://docs.adyen.com/account/account-structure#company-account). (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link Webhook } + * @throws ApiException if fails to make API call + */ + public Webhook getWebhook(String companyId, String webhookId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + if (webhookId == null) { + throw new IllegalArgumentException("Please provide the webhookId path parameter"); + } + pathParams.put("webhookId", webhookId); - /** - * List all webhooks - * - * @param companyId {@link String } Unique identifier of the [company - * account](https://docs.adyen.com/account/account-structure#company-account). (required) - * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The - * default is 10 items on a page. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ListWebhooksResponse } - * @throws ApiException if fails to make API call - */ - public ListWebhooksResponse listAllWebhooks( - String companyId, Integer pageNumber, Integer pageSize, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/webhooks/{webhookId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return Webhook.fromJson(jsonResult); } - pathParams.put("companyId", companyId); - // Add query params - Map queryParams = new HashMap<>(); - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); - } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); + /** + * List all webhooks + * + * @param companyId {@link String } Unique identifier of the [company account](https://docs.adyen.com/account/account-structure#company-account). (required) + * @return {@link ListWebhooksResponse } + * @throws ApiException if fails to make API call + */ + public ListWebhooksResponse listAllWebhooks(String companyId) throws ApiException, IOException { + return listAllWebhooks(companyId, null, null, null); } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/webhooks", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return ListWebhooksResponse.fromJson(jsonResult); - } + /** + * List all webhooks + * + * @param companyId {@link String } Unique identifier of the [company account](https://docs.adyen.com/account/account-structure#company-account). (required) + * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The default is 10 items on a page. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ListWebhooksResponse } + * @throws ApiException if fails to make API call + */ + public ListWebhooksResponse listAllWebhooks(String companyId, Integer pageNumber, Integer pageSize, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); - /** - * Remove a webhook - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @throws ApiException if fails to make API call - */ - public void removeWebhook(String companyId, String webhookId) throws ApiException, IOException { - removeWebhook(companyId, webhookId, null); - } + //Add query params + Map queryParams = new HashMap<>(); + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); + } + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); + } - /** - * Remove a webhook - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void removeWebhook(String companyId, String webhookId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - if (webhookId == null) { - throw new IllegalArgumentException("Please provide the webhookId path parameter"); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/webhooks", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return ListWebhooksResponse.fromJson(jsonResult); } - pathParams.put("webhookId", webhookId); - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/companies/{companyId}/webhooks/{webhookId}", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); - } + /** + * Remove a webhook + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @throws ApiException if fails to make API call + */ + public void removeWebhook(String companyId, String webhookId) throws ApiException, IOException { + removeWebhook(companyId, webhookId, null); + } - /** - * Set up a webhook - * - * @param companyId {@link String } Unique identifier of the [company - * account](https://docs.adyen.com/account/account-structure#company-account). (required) - * @param createCompanyWebhookRequest {@link CreateCompanyWebhookRequest } (required) - * @return {@link Webhook } - * @throws ApiException if fails to make API call - */ - public Webhook setUpWebhook( - String companyId, CreateCompanyWebhookRequest createCompanyWebhookRequest) - throws ApiException, IOException { - return setUpWebhook(companyId, createCompanyWebhookRequest, null); - } + /** + * Remove a webhook + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void removeWebhook(String companyId, String webhookId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + if (webhookId == null) { + throw new IllegalArgumentException("Please provide the webhookId path parameter"); + } + pathParams.put("webhookId", webhookId); - /** - * Set up a webhook - * - * @param companyId {@link String } Unique identifier of the [company - * account](https://docs.adyen.com/account/account-structure#company-account). (required) - * @param createCompanyWebhookRequest {@link CreateCompanyWebhookRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link Webhook } - * @throws ApiException if fails to make API call - */ - public Webhook setUpWebhook( - String companyId, - CreateCompanyWebhookRequest createCompanyWebhookRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/webhooks/{webhookId}", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); } - pathParams.put("companyId", companyId); - String requestBody = createCompanyWebhookRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/webhooks", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return Webhook.fromJson(jsonResult); - } + /** + * Set up a webhook + * + * @param companyId {@link String } Unique identifier of the [company account](https://docs.adyen.com/account/account-structure#company-account). (required) + * @param createCompanyWebhookRequest {@link CreateCompanyWebhookRequest } (required) + * @return {@link Webhook } + * @throws ApiException if fails to make API call + */ + public Webhook setUpWebhook(String companyId, CreateCompanyWebhookRequest createCompanyWebhookRequest) throws ApiException, IOException { + return setUpWebhook(companyId, createCompanyWebhookRequest, null); + } - /** - * Test a webhook - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @param testCompanyWebhookRequest {@link TestCompanyWebhookRequest } (required) - * @return {@link TestWebhookResponse } - * @throws ApiException if fails to make API call - */ - public TestWebhookResponse testWebhook( - String companyId, String webhookId, TestCompanyWebhookRequest testCompanyWebhookRequest) - throws ApiException, IOException { - return testWebhook(companyId, webhookId, testCompanyWebhookRequest, null); - } + /** + * Set up a webhook + * + * @param companyId {@link String } Unique identifier of the [company account](https://docs.adyen.com/account/account-structure#company-account). (required) + * @param createCompanyWebhookRequest {@link CreateCompanyWebhookRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link Webhook } + * @throws ApiException if fails to make API call + */ + public Webhook setUpWebhook(String companyId, CreateCompanyWebhookRequest createCompanyWebhookRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); - /** - * Test a webhook - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @param testCompanyWebhookRequest {@link TestCompanyWebhookRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TestWebhookResponse } - * @throws ApiException if fails to make API call - */ - public TestWebhookResponse testWebhook( - String companyId, - String webhookId, - TestCompanyWebhookRequest testCompanyWebhookRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + String requestBody = createCompanyWebhookRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/webhooks", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return Webhook.fromJson(jsonResult); } - pathParams.put("companyId", companyId); - if (webhookId == null) { - throw new IllegalArgumentException("Please provide the webhookId path parameter"); - } - pathParams.put("webhookId", webhookId); - String requestBody = testCompanyWebhookRequest.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/companies/{companyId}/webhooks/{webhookId}/test", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return TestWebhookResponse.fromJson(jsonResult); - } + /** + * Test a webhook + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @param testCompanyWebhookRequest {@link TestCompanyWebhookRequest } (required) + * @return {@link TestWebhookResponse } + * @throws ApiException if fails to make API call + */ + public TestWebhookResponse testWebhook(String companyId, String webhookId, TestCompanyWebhookRequest testCompanyWebhookRequest) throws ApiException, IOException { + return testWebhook(companyId, webhookId, testCompanyWebhookRequest, null); + } - /** - * Update a webhook - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @param updateCompanyWebhookRequest {@link UpdateCompanyWebhookRequest } (required) - * @return {@link Webhook } - * @throws ApiException if fails to make API call - */ - public Webhook updateWebhook( - String companyId, String webhookId, UpdateCompanyWebhookRequest updateCompanyWebhookRequest) - throws ApiException, IOException { - return updateWebhook(companyId, webhookId, updateCompanyWebhookRequest, null); - } + /** + * Test a webhook + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @param testCompanyWebhookRequest {@link TestCompanyWebhookRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TestWebhookResponse } + * @throws ApiException if fails to make API call + */ + public TestWebhookResponse testWebhook(String companyId, String webhookId, TestCompanyWebhookRequest testCompanyWebhookRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + if (webhookId == null) { + throw new IllegalArgumentException("Please provide the webhookId path parameter"); + } + pathParams.put("webhookId", webhookId); - /** - * Update a webhook - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @param updateCompanyWebhookRequest {@link UpdateCompanyWebhookRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link Webhook } - * @throws ApiException if fails to make API call - */ - public Webhook updateWebhook( - String companyId, - String webhookId, - UpdateCompanyWebhookRequest updateCompanyWebhookRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); + String requestBody = testCompanyWebhookRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/webhooks/{webhookId}/test", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return TestWebhookResponse.fromJson(jsonResult); } - pathParams.put("companyId", companyId); - if (webhookId == null) { - throw new IllegalArgumentException("Please provide the webhookId path parameter"); + + /** + * Update a webhook + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @param updateCompanyWebhookRequest {@link UpdateCompanyWebhookRequest } (required) + * @return {@link Webhook } + * @throws ApiException if fails to make API call + */ + public Webhook updateWebhook(String companyId, String webhookId, UpdateCompanyWebhookRequest updateCompanyWebhookRequest) throws ApiException, IOException { + return updateWebhook(companyId, webhookId, updateCompanyWebhookRequest, null); } - pathParams.put("webhookId", webhookId); - String requestBody = updateCompanyWebhookRequest.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/companies/{companyId}/webhooks/{webhookId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return Webhook.fromJson(jsonResult); - } + /** + * Update a webhook + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @param updateCompanyWebhookRequest {@link UpdateCompanyWebhookRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link Webhook } + * @throws ApiException if fails to make API call + */ + public Webhook updateWebhook(String companyId, String webhookId, UpdateCompanyWebhookRequest updateCompanyWebhookRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + if (webhookId == null) { + throw new IllegalArgumentException("Please provide the webhookId path parameter"); + } + pathParams.put("webhookId", webhookId); + + String requestBody = updateCompanyWebhookRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/webhooks/{webhookId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return Webhook.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/WebhooksMerchantLevelApi.java b/src/main/java/com/adyen/service/management/WebhooksMerchantLevelApi.java index d8e2f63be..18a21df0a 100644 --- a/src/main/java/com/adyen/service/management/WebhooksMerchantLevelApi.java +++ b/src/main/java/com/adyen/service/management/WebhooksMerchantLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,372 +14,320 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.management.CreateMerchantWebhookRequest; import com.adyen.model.management.GenerateHmacKeyResponse; import com.adyen.model.management.ListWebhooksResponse; +import com.adyen.model.management.RestServiceError; import com.adyen.model.management.TestWebhookRequest; import com.adyen.model.management.TestWebhookResponse; import com.adyen.model.management.UpdateMerchantWebhookRequest; import com.adyen.model.management.Webhook; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class WebhooksMerchantLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; + public static final String API_VERSION = "3"; - /** - * Webhooks - merchant level constructor in {@link com.adyen.service.management package}. - * - * @param client {@link Client } (required) - */ - public WebhooksMerchantLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } + protected String baseURL; - /** - * Webhooks - merchant level constructor in {@link com.adyen.service.management package}. Please - * use this constructor only if you would like to pass along your own url for routing or testing - * purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public WebhooksMerchantLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Generate an HMAC key - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param webhookId {@link String } (required) - * @return {@link GenerateHmacKeyResponse } - * @throws ApiException if fails to make API call - */ - public GenerateHmacKeyResponse generateHmacKey(String merchantId, String webhookId) - throws ApiException, IOException { - return generateHmacKey(merchantId, webhookId, null); - } - - /** - * Generate an HMAC key - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param webhookId {@link String } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link GenerateHmacKeyResponse } - * @throws ApiException if fails to make API call - */ - public GenerateHmacKeyResponse generateHmacKey( - String merchantId, String webhookId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + /** + * Webhooks - merchant level constructor in {@link com.adyen.service.management package}. + * @param client {@link Client } (required) + */ + public WebhooksMerchantLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); } - pathParams.put("merchantId", merchantId); - if (webhookId == null) { - throw new IllegalArgumentException("Please provide the webhookId path parameter"); + + /** + * Webhooks - merchant level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public WebhooksMerchantLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - pathParams.put("webhookId", webhookId); - String requestBody = null; - Resource resource = - new Resource( - this, this.baseURL + "/merchants/{merchantId}/webhooks/{webhookId}/generateHmac", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return GenerateHmacKeyResponse.fromJson(jsonResult); - } + /** + * Generate an HMAC key + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param webhookId {@link String } (required) + * @return {@link GenerateHmacKeyResponse } + * @throws ApiException if fails to make API call + */ + public GenerateHmacKeyResponse generateHmacKey(String merchantId, String webhookId) throws ApiException, IOException { + return generateHmacKey(merchantId, webhookId, null); + } - /** - * Get a webhook - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @return {@link Webhook } - * @throws ApiException if fails to make API call - */ - public Webhook getWebhook(String merchantId, String webhookId) throws ApiException, IOException { - return getWebhook(merchantId, webhookId, null); - } + /** + * Generate an HMAC key + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param webhookId {@link String } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link GenerateHmacKeyResponse } + * @throws ApiException if fails to make API call + */ + public GenerateHmacKeyResponse generateHmacKey(String merchantId, String webhookId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (webhookId == null) { + throw new IllegalArgumentException("Please provide the webhookId path parameter"); + } + pathParams.put("webhookId", webhookId); - /** - * Get a webhook - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link Webhook } - * @throws ApiException if fails to make API call - */ - public Webhook getWebhook(String merchantId, String webhookId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (webhookId == null) { - throw new IllegalArgumentException("Please provide the webhookId path parameter"); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/webhooks/{webhookId}/generateHmac", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return GenerateHmacKeyResponse.fromJson(jsonResult); } - pathParams.put("webhookId", webhookId); - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/merchants/{merchantId}/webhooks/{webhookId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return Webhook.fromJson(jsonResult); - } + /** + * Get a webhook + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @return {@link Webhook } + * @throws ApiException if fails to make API call + */ + public Webhook getWebhook(String merchantId, String webhookId) throws ApiException, IOException { + return getWebhook(merchantId, webhookId, null); + } - /** - * List all webhooks - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @return {@link ListWebhooksResponse } - * @throws ApiException if fails to make API call - */ - public ListWebhooksResponse listAllWebhooks(String merchantId) throws ApiException, IOException { - return listAllWebhooks(merchantId, null, null, null); - } + /** + * Get a webhook + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link Webhook } + * @throws ApiException if fails to make API call + */ + public Webhook getWebhook(String merchantId, String webhookId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (webhookId == null) { + throw new IllegalArgumentException("Please provide the webhookId path parameter"); + } + pathParams.put("webhookId", webhookId); - /** - * List all webhooks - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The - * default is 10 items on a page. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ListWebhooksResponse } - * @throws ApiException if fails to make API call - */ - public ListWebhooksResponse listAllWebhooks( - String merchantId, Integer pageNumber, Integer pageSize, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/webhooks/{webhookId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return Webhook.fromJson(jsonResult); } - pathParams.put("merchantId", merchantId); - // Add query params - Map queryParams = new HashMap<>(); - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); - } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); + /** + * List all webhooks + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @return {@link ListWebhooksResponse } + * @throws ApiException if fails to make API call + */ + public ListWebhooksResponse listAllWebhooks(String merchantId) throws ApiException, IOException { + return listAllWebhooks(merchantId, null, null, null); } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/webhooks", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return ListWebhooksResponse.fromJson(jsonResult); - } + /** + * List all webhooks + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The default is 10 items on a page. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ListWebhooksResponse } + * @throws ApiException if fails to make API call + */ + public ListWebhooksResponse listAllWebhooks(String merchantId, Integer pageNumber, Integer pageSize, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); - /** - * Remove a webhook - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @throws ApiException if fails to make API call - */ - public void removeWebhook(String merchantId, String webhookId) throws ApiException, IOException { - removeWebhook(merchantId, webhookId, null); - } + //Add query params + Map queryParams = new HashMap<>(); + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); + } + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); + } - /** - * Remove a webhook - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void removeWebhook(String merchantId, String webhookId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (webhookId == null) { - throw new IllegalArgumentException("Please provide the webhookId path parameter"); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/webhooks", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return ListWebhooksResponse.fromJson(jsonResult); } - pathParams.put("webhookId", webhookId); - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/merchants/{merchantId}/webhooks/{webhookId}", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); - } + /** + * Remove a webhook + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @throws ApiException if fails to make API call + */ + public void removeWebhook(String merchantId, String webhookId) throws ApiException, IOException { + removeWebhook(merchantId, webhookId, null); + } - /** - * Set up a webhook - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param createMerchantWebhookRequest {@link CreateMerchantWebhookRequest } (required) - * @return {@link Webhook } - * @throws ApiException if fails to make API call - */ - public Webhook setUpWebhook( - String merchantId, CreateMerchantWebhookRequest createMerchantWebhookRequest) - throws ApiException, IOException { - return setUpWebhook(merchantId, createMerchantWebhookRequest, null); - } + /** + * Remove a webhook + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void removeWebhook(String merchantId, String webhookId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (webhookId == null) { + throw new IllegalArgumentException("Please provide the webhookId path parameter"); + } + pathParams.put("webhookId", webhookId); - /** - * Set up a webhook - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param createMerchantWebhookRequest {@link CreateMerchantWebhookRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link Webhook } - * @throws ApiException if fails to make API call - */ - public Webhook setUpWebhook( - String merchantId, - CreateMerchantWebhookRequest createMerchantWebhookRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/webhooks/{webhookId}", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); } - pathParams.put("merchantId", merchantId); - String requestBody = createMerchantWebhookRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/webhooks", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return Webhook.fromJson(jsonResult); - } + /** + * Set up a webhook + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param createMerchantWebhookRequest {@link CreateMerchantWebhookRequest } (required) + * @return {@link Webhook } + * @throws ApiException if fails to make API call + */ + public Webhook setUpWebhook(String merchantId, CreateMerchantWebhookRequest createMerchantWebhookRequest) throws ApiException, IOException { + return setUpWebhook(merchantId, createMerchantWebhookRequest, null); + } - /** - * Test a webhook - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @param testWebhookRequest {@link TestWebhookRequest } (required) - * @return {@link TestWebhookResponse } - * @throws ApiException if fails to make API call - */ - public TestWebhookResponse testWebhook( - String merchantId, String webhookId, TestWebhookRequest testWebhookRequest) - throws ApiException, IOException { - return testWebhook(merchantId, webhookId, testWebhookRequest, null); - } + /** + * Set up a webhook + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param createMerchantWebhookRequest {@link CreateMerchantWebhookRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link Webhook } + * @throws ApiException if fails to make API call + */ + public Webhook setUpWebhook(String merchantId, CreateMerchantWebhookRequest createMerchantWebhookRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); - /** - * Test a webhook - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @param testWebhookRequest {@link TestWebhookRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TestWebhookResponse } - * @throws ApiException if fails to make API call - */ - public TestWebhookResponse testWebhook( - String merchantId, - String webhookId, - TestWebhookRequest testWebhookRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + String requestBody = createMerchantWebhookRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/webhooks", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return Webhook.fromJson(jsonResult); } - pathParams.put("merchantId", merchantId); - if (webhookId == null) { - throw new IllegalArgumentException("Please provide the webhookId path parameter"); - } - pathParams.put("webhookId", webhookId); - String requestBody = testWebhookRequest.toJson(); - Resource resource = - new Resource( - this, this.baseURL + "/merchants/{merchantId}/webhooks/{webhookId}/test", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return TestWebhookResponse.fromJson(jsonResult); - } + /** + * Test a webhook + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @param testWebhookRequest {@link TestWebhookRequest } (required) + * @return {@link TestWebhookResponse } + * @throws ApiException if fails to make API call + */ + public TestWebhookResponse testWebhook(String merchantId, String webhookId, TestWebhookRequest testWebhookRequest) throws ApiException, IOException { + return testWebhook(merchantId, webhookId, testWebhookRequest, null); + } - /** - * Update a webhook - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @param updateMerchantWebhookRequest {@link UpdateMerchantWebhookRequest } (required) - * @return {@link Webhook } - * @throws ApiException if fails to make API call - */ - public Webhook updateWebhook( - String merchantId, - String webhookId, - UpdateMerchantWebhookRequest updateMerchantWebhookRequest) - throws ApiException, IOException { - return updateWebhook(merchantId, webhookId, updateMerchantWebhookRequest, null); - } + /** + * Test a webhook + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @param testWebhookRequest {@link TestWebhookRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TestWebhookResponse } + * @throws ApiException if fails to make API call + */ + public TestWebhookResponse testWebhook(String merchantId, String webhookId, TestWebhookRequest testWebhookRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (webhookId == null) { + throw new IllegalArgumentException("Please provide the webhookId path parameter"); + } + pathParams.put("webhookId", webhookId); - /** - * Update a webhook - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @param updateMerchantWebhookRequest {@link UpdateMerchantWebhookRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link Webhook } - * @throws ApiException if fails to make API call - */ - public Webhook updateWebhook( - String merchantId, - String webhookId, - UpdateMerchantWebhookRequest updateMerchantWebhookRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + String requestBody = testWebhookRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/webhooks/{webhookId}/test", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return TestWebhookResponse.fromJson(jsonResult); } - pathParams.put("merchantId", merchantId); - if (webhookId == null) { - throw new IllegalArgumentException("Please provide the webhookId path parameter"); + + /** + * Update a webhook + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @param updateMerchantWebhookRequest {@link UpdateMerchantWebhookRequest } (required) + * @return {@link Webhook } + * @throws ApiException if fails to make API call + */ + public Webhook updateWebhook(String merchantId, String webhookId, UpdateMerchantWebhookRequest updateMerchantWebhookRequest) throws ApiException, IOException { + return updateWebhook(merchantId, webhookId, updateMerchantWebhookRequest, null); } - pathParams.put("webhookId", webhookId); - String requestBody = updateMerchantWebhookRequest.toJson(); - Resource resource = - new Resource(this, this.baseURL + "/merchants/{merchantId}/webhooks/{webhookId}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return Webhook.fromJson(jsonResult); - } + /** + * Update a webhook + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @param updateMerchantWebhookRequest {@link UpdateMerchantWebhookRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link Webhook } + * @throws ApiException if fails to make API call + */ + public Webhook updateWebhook(String merchantId, String webhookId, UpdateMerchantWebhookRequest updateMerchantWebhookRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (webhookId == null) { + throw new IllegalArgumentException("Please provide the webhookId path parameter"); + } + pathParams.put("webhookId", webhookId); + + String requestBody = updateMerchantWebhookRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/webhooks/{webhookId}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return Webhook.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/payment/ModificationsApi.java b/src/main/java/com/adyen/service/payment/ModificationsApi.java index 2d039f002..bfb89a9b1 100644 --- a/src/main/java/com/adyen/service/payment/ModificationsApi.java +++ b/src/main/java/com/adyen/service/payment/ModificationsApi.java @@ -2,7 +2,7 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,7 +14,6 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.payment.AdjustAuthorisationRequest; import com.adyen.model.payment.CancelOrRefundRequest; import com.adyen.model.payment.CancelRequest; @@ -22,284 +21,252 @@ import com.adyen.model.payment.DonationRequest; import com.adyen.model.payment.ModificationResult; import com.adyen.model.payment.RefundRequest; +import com.adyen.model.payment.ServiceError; import com.adyen.model.payment.TechnicalCancelRequest; import com.adyen.model.payment.VoidPendingRefundRequest; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; +import java.util.HashMap; +import java.util.Map; public class ModificationsApi extends Service { - public static final String API_VERSION = "68"; + public static final String API_VERSION = "68"; - protected String baseURL; + protected String baseURL; - /** - * Modifications constructor in {@link com.adyen.service.payment package}. - * - * @param client {@link Client } (required) - */ - public ModificationsApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/Payment/v68"); - } + /** + * Modifications constructor in {@link com.adyen.service.payment package}. + * @param client {@link Client } (required) + */ + public ModificationsApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/Payment/v68"); + } - /** - * Modifications constructor in {@link com.adyen.service.payment package}. Please use this - * constructor only if you would like to pass along your own url for routing or testing purposes. - * The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public ModificationsApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Modifications constructor in {@link com.adyen.service.payment package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public ModificationsApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Change the authorised amount - * - * @param adjustAuthorisationRequest {@link AdjustAuthorisationRequest } (required) - * @return {@link ModificationResult } - * @throws ApiException if fails to make API call - */ - public ModificationResult adjustAuthorisation( - AdjustAuthorisationRequest adjustAuthorisationRequest) throws ApiException, IOException { - return adjustAuthorisation(adjustAuthorisationRequest, null); - } + /** + * Change the authorised amount + * + * @param adjustAuthorisationRequest {@link AdjustAuthorisationRequest } (required) + * @return {@link ModificationResult } + * @throws ApiException if fails to make API call + */ + public ModificationResult adjustAuthorisation(AdjustAuthorisationRequest adjustAuthorisationRequest) throws ApiException, IOException { + return adjustAuthorisation(adjustAuthorisationRequest, null); + } - /** - * Change the authorised amount - * - * @param adjustAuthorisationRequest {@link AdjustAuthorisationRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ModificationResult } - * @throws ApiException if fails to make API call - */ - public ModificationResult adjustAuthorisation( - AdjustAuthorisationRequest adjustAuthorisationRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = adjustAuthorisationRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/adjustAuthorisation", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return ModificationResult.fromJson(jsonResult); - } + /** + * Change the authorised amount + * + * @param adjustAuthorisationRequest {@link AdjustAuthorisationRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ModificationResult } + * @throws ApiException if fails to make API call + */ + public ModificationResult adjustAuthorisation(AdjustAuthorisationRequest adjustAuthorisationRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = adjustAuthorisationRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/adjustAuthorisation", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return ModificationResult.fromJson(jsonResult); + } - /** - * Cancel an authorisation - * - * @param cancelRequest {@link CancelRequest } (required) - * @return {@link ModificationResult } - * @throws ApiException if fails to make API call - */ - public ModificationResult cancel(CancelRequest cancelRequest) throws ApiException, IOException { - return cancel(cancelRequest, null); - } + /** + * Cancel an authorisation + * + * @param cancelRequest {@link CancelRequest } (required) + * @return {@link ModificationResult } + * @throws ApiException if fails to make API call + */ + public ModificationResult cancel(CancelRequest cancelRequest) throws ApiException, IOException { + return cancel(cancelRequest, null); + } - /** - * Cancel an authorisation - * - * @param cancelRequest {@link CancelRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ModificationResult } - * @throws ApiException if fails to make API call - */ - public ModificationResult cancel(CancelRequest cancelRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = cancelRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/cancel", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return ModificationResult.fromJson(jsonResult); - } + /** + * Cancel an authorisation + * + * @param cancelRequest {@link CancelRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ModificationResult } + * @throws ApiException if fails to make API call + */ + public ModificationResult cancel(CancelRequest cancelRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = cancelRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/cancel", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return ModificationResult.fromJson(jsonResult); + } - /** - * Cancel or refund a payment - * - * @param cancelOrRefundRequest {@link CancelOrRefundRequest } (required) - * @return {@link ModificationResult } - * @throws ApiException if fails to make API call - */ - public ModificationResult cancelOrRefund(CancelOrRefundRequest cancelOrRefundRequest) - throws ApiException, IOException { - return cancelOrRefund(cancelOrRefundRequest, null); - } + /** + * Cancel or refund a payment + * + * @param cancelOrRefundRequest {@link CancelOrRefundRequest } (required) + * @return {@link ModificationResult } + * @throws ApiException if fails to make API call + */ + public ModificationResult cancelOrRefund(CancelOrRefundRequest cancelOrRefundRequest) throws ApiException, IOException { + return cancelOrRefund(cancelOrRefundRequest, null); + } - /** - * Cancel or refund a payment - * - * @param cancelOrRefundRequest {@link CancelOrRefundRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ModificationResult } - * @throws ApiException if fails to make API call - */ - public ModificationResult cancelOrRefund( - CancelOrRefundRequest cancelOrRefundRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = cancelOrRefundRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/cancelOrRefund", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return ModificationResult.fromJson(jsonResult); - } + /** + * Cancel or refund a payment + * + * @param cancelOrRefundRequest {@link CancelOrRefundRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ModificationResult } + * @throws ApiException if fails to make API call + */ + public ModificationResult cancelOrRefund(CancelOrRefundRequest cancelOrRefundRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = cancelOrRefundRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/cancelOrRefund", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return ModificationResult.fromJson(jsonResult); + } - /** - * Capture an authorisation - * - * @param captureRequest {@link CaptureRequest } (required) - * @return {@link ModificationResult } - * @throws ApiException if fails to make API call - */ - public ModificationResult capture(CaptureRequest captureRequest) - throws ApiException, IOException { - return capture(captureRequest, null); - } + /** + * Capture an authorisation + * + * @param captureRequest {@link CaptureRequest } (required) + * @return {@link ModificationResult } + * @throws ApiException if fails to make API call + */ + public ModificationResult capture(CaptureRequest captureRequest) throws ApiException, IOException { + return capture(captureRequest, null); + } - /** - * Capture an authorisation - * - * @param captureRequest {@link CaptureRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ModificationResult } - * @throws ApiException if fails to make API call - */ - public ModificationResult capture(CaptureRequest captureRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = captureRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/capture", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return ModificationResult.fromJson(jsonResult); - } + /** + * Capture an authorisation + * + * @param captureRequest {@link CaptureRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ModificationResult } + * @throws ApiException if fails to make API call + */ + public ModificationResult capture(CaptureRequest captureRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = captureRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/capture", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return ModificationResult.fromJson(jsonResult); + } - /** - * Create a donation - * - * @param donationRequest {@link DonationRequest } (required) - * @return {@link ModificationResult } - * @throws ApiException if fails to make API call - * @deprecated - */ - @Deprecated - public ModificationResult donate(DonationRequest donationRequest) - throws ApiException, IOException { - return donate(donationRequest, null); - } + /** + * Create a donation + * + * @param donationRequest {@link DonationRequest } (required) + * @return {@link ModificationResult } + * @throws ApiException if fails to make API call + * @deprecated + */ + @Deprecated + public ModificationResult donate(DonationRequest donationRequest) throws ApiException, IOException { + return donate(donationRequest, null); + } - /** - * Create a donation - * - * @param donationRequest {@link DonationRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ModificationResult } - * @throws ApiException if fails to make API call - * @deprecated - */ - @Deprecated - public ModificationResult donate(DonationRequest donationRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = donationRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/donate", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return ModificationResult.fromJson(jsonResult); - } + /** + * Create a donation + * + * @param donationRequest {@link DonationRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ModificationResult } + * @throws ApiException if fails to make API call + * @deprecated + */ + @Deprecated + public ModificationResult donate(DonationRequest donationRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = donationRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/donate", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return ModificationResult.fromJson(jsonResult); + } - /** - * Refund a captured payment - * - * @param refundRequest {@link RefundRequest } (required) - * @return {@link ModificationResult } - * @throws ApiException if fails to make API call - */ - public ModificationResult refund(RefundRequest refundRequest) throws ApiException, IOException { - return refund(refundRequest, null); - } + /** + * Refund a captured payment + * + * @param refundRequest {@link RefundRequest } (required) + * @return {@link ModificationResult } + * @throws ApiException if fails to make API call + */ + public ModificationResult refund(RefundRequest refundRequest) throws ApiException, IOException { + return refund(refundRequest, null); + } - /** - * Refund a captured payment - * - * @param refundRequest {@link RefundRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ModificationResult } - * @throws ApiException if fails to make API call - */ - public ModificationResult refund(RefundRequest refundRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = refundRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/refund", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return ModificationResult.fromJson(jsonResult); - } + /** + * Refund a captured payment + * + * @param refundRequest {@link RefundRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ModificationResult } + * @throws ApiException if fails to make API call + */ + public ModificationResult refund(RefundRequest refundRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = refundRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/refund", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return ModificationResult.fromJson(jsonResult); + } - /** - * Cancel an authorisation using your reference - * - * @param technicalCancelRequest {@link TechnicalCancelRequest } (required) - * @return {@link ModificationResult } - * @throws ApiException if fails to make API call - */ - public ModificationResult technicalCancel(TechnicalCancelRequest technicalCancelRequest) - throws ApiException, IOException { - return technicalCancel(technicalCancelRequest, null); - } + /** + * Cancel an authorisation using your reference + * + * @param technicalCancelRequest {@link TechnicalCancelRequest } (required) + * @return {@link ModificationResult } + * @throws ApiException if fails to make API call + */ + public ModificationResult technicalCancel(TechnicalCancelRequest technicalCancelRequest) throws ApiException, IOException { + return technicalCancel(technicalCancelRequest, null); + } - /** - * Cancel an authorisation using your reference - * - * @param technicalCancelRequest {@link TechnicalCancelRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ModificationResult } - * @throws ApiException if fails to make API call - */ - public ModificationResult technicalCancel( - TechnicalCancelRequest technicalCancelRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = technicalCancelRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/technicalCancel", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return ModificationResult.fromJson(jsonResult); - } + /** + * Cancel an authorisation using your reference + * + * @param technicalCancelRequest {@link TechnicalCancelRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ModificationResult } + * @throws ApiException if fails to make API call + */ + public ModificationResult technicalCancel(TechnicalCancelRequest technicalCancelRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = technicalCancelRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/technicalCancel", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return ModificationResult.fromJson(jsonResult); + } - /** - * Cancel an in-person refund - * - * @param voidPendingRefundRequest {@link VoidPendingRefundRequest } (required) - * @return {@link ModificationResult } - * @throws ApiException if fails to make API call - */ - public ModificationResult voidPendingRefund(VoidPendingRefundRequest voidPendingRefundRequest) - throws ApiException, IOException { - return voidPendingRefund(voidPendingRefundRequest, null); - } + /** + * Cancel an in-person refund + * + * @param voidPendingRefundRequest {@link VoidPendingRefundRequest } (required) + * @return {@link ModificationResult } + * @throws ApiException if fails to make API call + */ + public ModificationResult voidPendingRefund(VoidPendingRefundRequest voidPendingRefundRequest) throws ApiException, IOException { + return voidPendingRefund(voidPendingRefundRequest, null); + } - /** - * Cancel an in-person refund - * - * @param voidPendingRefundRequest {@link VoidPendingRefundRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ModificationResult } - * @throws ApiException if fails to make API call - */ - public ModificationResult voidPendingRefund( - VoidPendingRefundRequest voidPendingRefundRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = voidPendingRefundRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/voidPendingRefund", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return ModificationResult.fromJson(jsonResult); - } + /** + * Cancel an in-person refund + * + * @param voidPendingRefundRequest {@link VoidPendingRefundRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ModificationResult } + * @throws ApiException if fails to make API call + */ + public ModificationResult voidPendingRefund(VoidPendingRefundRequest voidPendingRefundRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = voidPendingRefundRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/voidPendingRefund", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return ModificationResult.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/payment/PaymentsApi.java b/src/main/java/com/adyen/service/payment/PaymentsApi.java index 1c6749d78..72f8bb256 100644 --- a/src/main/java/com/adyen/service/payment/PaymentsApi.java +++ b/src/main/java/com/adyen/service/payment/PaymentsApi.java @@ -2,7 +2,7 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,197 +14,176 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.payment.AuthenticationResultRequest; import com.adyen.model.payment.AuthenticationResultResponse; import com.adyen.model.payment.PaymentRequest; import com.adyen.model.payment.PaymentRequest3d; import com.adyen.model.payment.PaymentRequest3ds2; import com.adyen.model.payment.PaymentResult; +import com.adyen.model.payment.ServiceError; import com.adyen.model.payment.ThreeDS2ResultRequest; import com.adyen.model.payment.ThreeDS2ResultResponse; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; +import java.util.HashMap; +import java.util.Map; public class PaymentsApi extends Service { - public static final String API_VERSION = "68"; - - protected String baseURL; - - /** - * Payments constructor in {@link com.adyen.service.payment package}. - * - * @param client {@link Client } (required) - */ - public PaymentsApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/Payment/v68"); - } - - /** - * Payments constructor in {@link com.adyen.service.payment package}. Please use this constructor - * only if you would like to pass along your own url for routing or testing purposes. The latest - * API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public PaymentsApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Create an authorisation - * - * @param paymentRequest {@link PaymentRequest } (required) - * @return {@link PaymentResult } - * @throws ApiException if fails to make API call - */ - public PaymentResult authorise(PaymentRequest paymentRequest) throws ApiException, IOException { - return authorise(paymentRequest, null); - } - - /** - * Create an authorisation - * - * @param paymentRequest {@link PaymentRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PaymentResult } - * @throws ApiException if fails to make API call - */ - public PaymentResult authorise(PaymentRequest paymentRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = paymentRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/authorise", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return PaymentResult.fromJson(jsonResult); - } - - /** - * Complete a 3DS authorisation - * - * @param paymentRequest3d {@link PaymentRequest3d } (required) - * @return {@link PaymentResult } - * @throws ApiException if fails to make API call - */ - public PaymentResult authorise3d(PaymentRequest3d paymentRequest3d) - throws ApiException, IOException { - return authorise3d(paymentRequest3d, null); - } - - /** - * Complete a 3DS authorisation - * - * @param paymentRequest3d {@link PaymentRequest3d } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PaymentResult } - * @throws ApiException if fails to make API call - */ - public PaymentResult authorise3d(PaymentRequest3d paymentRequest3d, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = paymentRequest3d.toJson(); - Resource resource = new Resource(this, this.baseURL + "/authorise3d", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return PaymentResult.fromJson(jsonResult); - } - - /** - * Complete a 3DS2 authorisation - * - * @param paymentRequest3ds2 {@link PaymentRequest3ds2 } (required) - * @return {@link PaymentResult } - * @throws ApiException if fails to make API call - */ - public PaymentResult authorise3ds2(PaymentRequest3ds2 paymentRequest3ds2) - throws ApiException, IOException { - return authorise3ds2(paymentRequest3ds2, null); - } - - /** - * Complete a 3DS2 authorisation - * - * @param paymentRequest3ds2 {@link PaymentRequest3ds2 } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PaymentResult } - * @throws ApiException if fails to make API call - */ - public PaymentResult authorise3ds2( - PaymentRequest3ds2 paymentRequest3ds2, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = paymentRequest3ds2.toJson(); - Resource resource = new Resource(this, this.baseURL + "/authorise3ds2", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return PaymentResult.fromJson(jsonResult); - } - - /** - * Get the 3DS authentication result - * - * @param authenticationResultRequest {@link AuthenticationResultRequest } (required) - * @return {@link AuthenticationResultResponse } - * @throws ApiException if fails to make API call - */ - public AuthenticationResultResponse getAuthenticationResult( - AuthenticationResultRequest authenticationResultRequest) throws ApiException, IOException { - return getAuthenticationResult(authenticationResultRequest, null); - } - - /** - * Get the 3DS authentication result - * - * @param authenticationResultRequest {@link AuthenticationResultRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link AuthenticationResultResponse } - * @throws ApiException if fails to make API call - */ - public AuthenticationResultResponse getAuthenticationResult( - AuthenticationResultRequest authenticationResultRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = authenticationResultRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/getAuthenticationResult", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return AuthenticationResultResponse.fromJson(jsonResult); - } - - /** - * Get the 3DS2 authentication result - * - * @param threeDS2ResultRequest {@link ThreeDS2ResultRequest } (required) - * @return {@link ThreeDS2ResultResponse } - * @throws ApiException if fails to make API call - */ - public ThreeDS2ResultResponse retrieve3ds2Result(ThreeDS2ResultRequest threeDS2ResultRequest) - throws ApiException, IOException { - return retrieve3ds2Result(threeDS2ResultRequest, null); - } - - /** - * Get the 3DS2 authentication result - * - * @param threeDS2ResultRequest {@link ThreeDS2ResultRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ThreeDS2ResultResponse } - * @throws ApiException if fails to make API call - */ - public ThreeDS2ResultResponse retrieve3ds2Result( - ThreeDS2ResultRequest threeDS2ResultRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = threeDS2ResultRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/retrieve3ds2Result", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return ThreeDS2ResultResponse.fromJson(jsonResult); - } + public static final String API_VERSION = "68"; + + protected String baseURL; + + /** + * Payments constructor in {@link com.adyen.service.payment package}. + * @param client {@link Client } (required) + */ + public PaymentsApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/Payment/v68"); + } + + /** + * Payments constructor in {@link com.adyen.service.payment package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public PaymentsApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Create an authorisation + * + * @param paymentRequest {@link PaymentRequest } (required) + * @return {@link PaymentResult } + * @throws ApiException if fails to make API call + */ + public PaymentResult authorise(PaymentRequest paymentRequest) throws ApiException, IOException { + return authorise(paymentRequest, null); + } + + /** + * Create an authorisation + * + * @param paymentRequest {@link PaymentRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PaymentResult } + * @throws ApiException if fails to make API call + */ + public PaymentResult authorise(PaymentRequest paymentRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = paymentRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/authorise", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return PaymentResult.fromJson(jsonResult); + } + + /** + * Complete a 3DS authorisation + * + * @param paymentRequest3d {@link PaymentRequest3d } (required) + * @return {@link PaymentResult } + * @throws ApiException if fails to make API call + */ + public PaymentResult authorise3d(PaymentRequest3d paymentRequest3d) throws ApiException, IOException { + return authorise3d(paymentRequest3d, null); + } + + /** + * Complete a 3DS authorisation + * + * @param paymentRequest3d {@link PaymentRequest3d } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PaymentResult } + * @throws ApiException if fails to make API call + */ + public PaymentResult authorise3d(PaymentRequest3d paymentRequest3d, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = paymentRequest3d.toJson(); + Resource resource = new Resource(this, this.baseURL + "/authorise3d", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return PaymentResult.fromJson(jsonResult); + } + + /** + * Complete a 3DS2 authorisation + * + * @param paymentRequest3ds2 {@link PaymentRequest3ds2 } (required) + * @return {@link PaymentResult } + * @throws ApiException if fails to make API call + */ + public PaymentResult authorise3ds2(PaymentRequest3ds2 paymentRequest3ds2) throws ApiException, IOException { + return authorise3ds2(paymentRequest3ds2, null); + } + + /** + * Complete a 3DS2 authorisation + * + * @param paymentRequest3ds2 {@link PaymentRequest3ds2 } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PaymentResult } + * @throws ApiException if fails to make API call + */ + public PaymentResult authorise3ds2(PaymentRequest3ds2 paymentRequest3ds2, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = paymentRequest3ds2.toJson(); + Resource resource = new Resource(this, this.baseURL + "/authorise3ds2", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return PaymentResult.fromJson(jsonResult); + } + + /** + * Get the 3DS authentication result + * + * @param authenticationResultRequest {@link AuthenticationResultRequest } (required) + * @return {@link AuthenticationResultResponse } + * @throws ApiException if fails to make API call + */ + public AuthenticationResultResponse getAuthenticationResult(AuthenticationResultRequest authenticationResultRequest) throws ApiException, IOException { + return getAuthenticationResult(authenticationResultRequest, null); + } + + /** + * Get the 3DS authentication result + * + * @param authenticationResultRequest {@link AuthenticationResultRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link AuthenticationResultResponse } + * @throws ApiException if fails to make API call + */ + public AuthenticationResultResponse getAuthenticationResult(AuthenticationResultRequest authenticationResultRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = authenticationResultRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/getAuthenticationResult", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return AuthenticationResultResponse.fromJson(jsonResult); + } + + /** + * Get the 3DS2 authentication result + * + * @param threeDS2ResultRequest {@link ThreeDS2ResultRequest } (required) + * @return {@link ThreeDS2ResultResponse } + * @throws ApiException if fails to make API call + */ + public ThreeDS2ResultResponse retrieve3ds2Result(ThreeDS2ResultRequest threeDS2ResultRequest) throws ApiException, IOException { + return retrieve3ds2Result(threeDS2ResultRequest, null); + } + + /** + * Get the 3DS2 authentication result + * + * @param threeDS2ResultRequest {@link ThreeDS2ResultRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ThreeDS2ResultResponse } + * @throws ApiException if fails to make API call + */ + public ThreeDS2ResultResponse retrieve3ds2Result(ThreeDS2ResultRequest threeDS2ResultRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = threeDS2ResultRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/retrieve3ds2Result", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return ThreeDS2ResultResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/paymentsapp/PaymentsAppApi.java b/src/main/java/com/adyen/service/paymentsapp/PaymentsAppApi.java index 244cc12a4..06157c6b4 100644 --- a/src/main/java/com/adyen/service/paymentsapp/PaymentsAppApi.java +++ b/src/main/java/com/adyen/service/paymentsapp/PaymentsAppApi.java @@ -2,7 +2,7 @@ * Payments App API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,315 +14,257 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.paymentsapp.BoardingTokenRequest; import com.adyen.model.paymentsapp.BoardingTokenResponse; +import com.adyen.model.paymentsapp.DefaultErrorResponseEntity; import com.adyen.model.paymentsapp.PaymentsAppResponse; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class PaymentsAppApi extends Service { - public static final String API_VERSION = "1"; - - protected String baseURL; - - /** - * Payments App constructor in {@link com.adyen.service.paymentsapp package}. - * - * @param client {@link Client } (required) - */ - public PaymentsAppApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-live.adyen.com/v1"); - } + public static final String API_VERSION = "1"; - /** - * Payments App constructor in {@link com.adyen.service.paymentsapp package}. Please use this - * constructor only if you would like to pass along your own url for routing or testing purposes. - * The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public PaymentsAppApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + protected String baseURL; - /** - * Create a boarding token - merchant level - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param boardingTokenRequest {@link BoardingTokenRequest } (required) - * @param boardingTokenRequest {@link BoardingTokenRequest } (required) - * @return {@link BoardingTokenResponse } - * @throws ApiException if fails to make API call - */ - public BoardingTokenResponse generatePaymentsAppBoardingTokenForMerchant( - String merchantId, BoardingTokenRequest boardingTokenRequest) - throws ApiException, IOException { - return generatePaymentsAppBoardingTokenForMerchant(merchantId, boardingTokenRequest, null); - } + /** + * Payments App constructor in {@link com.adyen.service.paymentsapp package}. + * @param client {@link Client } (required) + */ + public PaymentsAppApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-live.adyen.com/v1"); + } - /** - * Create a boarding token - merchant level - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param boardingTokenRequest {@link BoardingTokenRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link BoardingTokenResponse } - * @throws ApiException if fails to make API call - */ - public BoardingTokenResponse generatePaymentsAppBoardingTokenForMerchant( - String merchantId, BoardingTokenRequest boardingTokenRequest, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + /** + * Payments App constructor in {@link com.adyen.service.paymentsapp package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public PaymentsAppApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - pathParams.put("merchantId", merchantId); - String requestBody = boardingTokenRequest.toJson(); - Resource resource = - new Resource( - this, this.baseURL + "/merchants/{merchantId}/generatePaymentsAppBoardingToken", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return BoardingTokenResponse.fromJson(jsonResult); - } + /** + * Create a boarding token - merchant level + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param boardingTokenRequest {@link BoardingTokenRequest } (required) + * @param boardingTokenRequest {@link BoardingTokenRequest } (required) + * @return {@link BoardingTokenResponse } + * @throws ApiException if fails to make API call + */ + public BoardingTokenResponse generatePaymentsAppBoardingTokenForMerchant(String merchantId, BoardingTokenRequest boardingTokenRequest) throws ApiException, IOException { + return generatePaymentsAppBoardingTokenForMerchant(merchantId, boardingTokenRequest, null); + } - /** - * Create a boarding token - store level - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param storeId {@link String } The unique identifier of the store. (required) - * @param boardingTokenRequest {@link BoardingTokenRequest } (required) - * @param boardingTokenRequest {@link BoardingTokenRequest } (required) - * @return {@link BoardingTokenResponse } - * @throws ApiException if fails to make API call - */ - public BoardingTokenResponse generatePaymentsAppBoardingTokenForStore( - String merchantId, String storeId, BoardingTokenRequest boardingTokenRequest) - throws ApiException, IOException { - return generatePaymentsAppBoardingTokenForStore( - merchantId, storeId, boardingTokenRequest, null); - } + /** + * Create a boarding token - merchant level + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param boardingTokenRequest {@link BoardingTokenRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link BoardingTokenResponse } + * @throws ApiException if fails to make API call + */ + public BoardingTokenResponse generatePaymentsAppBoardingTokenForMerchant(String merchantId, BoardingTokenRequest boardingTokenRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); - /** - * Create a boarding token - store level - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param storeId {@link String } The unique identifier of the store. (required) - * @param boardingTokenRequest {@link BoardingTokenRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link BoardingTokenResponse } - * @throws ApiException if fails to make API call - */ - public BoardingTokenResponse generatePaymentsAppBoardingTokenForStore( - String merchantId, - String storeId, - BoardingTokenRequest boardingTokenRequest, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + String requestBody = boardingTokenRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/generatePaymentsAppBoardingToken", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return BoardingTokenResponse.fromJson(jsonResult); } - pathParams.put("merchantId", merchantId); - if (storeId == null) { - throw new IllegalArgumentException("Please provide the storeId path parameter"); - } - pathParams.put("storeId", storeId); - String requestBody = boardingTokenRequest.toJson(); - Resource resource = - new Resource( - this, - this.baseURL - + "/merchants/{merchantId}/stores/{storeId}/generatePaymentsAppBoardingToken", - null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return BoardingTokenResponse.fromJson(jsonResult); - } + /** + * Create a boarding token - store level + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param storeId {@link String } The unique identifier of the store. (required) + * @param boardingTokenRequest {@link BoardingTokenRequest } (required) + * @param boardingTokenRequest {@link BoardingTokenRequest } (required) + * @return {@link BoardingTokenResponse } + * @throws ApiException if fails to make API call + */ + public BoardingTokenResponse generatePaymentsAppBoardingTokenForStore(String merchantId, String storeId, BoardingTokenRequest boardingTokenRequest) throws ApiException, IOException { + return generatePaymentsAppBoardingTokenForStore(merchantId, storeId, boardingTokenRequest, null); + } - /** - * Get a list of Payments Apps - merchant level - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @return {@link PaymentsAppResponse } - * @throws ApiException if fails to make API call - */ - public PaymentsAppResponse listPaymentsAppForMerchant(String merchantId) - throws ApiException, IOException { - return listPaymentsAppForMerchant(merchantId, null, null, null, null); - } + /** + * Create a boarding token - store level + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param storeId {@link String } The unique identifier of the store. (required) + * @param boardingTokenRequest {@link BoardingTokenRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link BoardingTokenResponse } + * @throws ApiException if fails to make API call + */ + public BoardingTokenResponse generatePaymentsAppBoardingTokenForStore(String merchantId, String storeId, BoardingTokenRequest boardingTokenRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (storeId == null) { + throw new IllegalArgumentException("Please provide the storeId path parameter"); + } + pathParams.put("storeId", storeId); - /** - * Get a list of Payments Apps - merchant level - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param statuses {@link String } Query: The status of the Payments App. Comma-separated list of - * one or more values. If no value is provided, the list returns all statuses. Possible - * values: * **BOARDING** * **BOARDED** * **REVOKED** (optional) - * @param limit {@link Integer } Query: The number of items to return. (optional, default to 10) - * @param offset {@link Long } Query: The number of items to skip. (optional, default to 0) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PaymentsAppResponse } - * @throws ApiException if fails to make API call - */ - public PaymentsAppResponse listPaymentsAppForMerchant( - String merchantId, String statuses, Integer limit, Long offset, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + String requestBody = boardingTokenRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/stores/{storeId}/generatePaymentsAppBoardingToken", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return BoardingTokenResponse.fromJson(jsonResult); } - pathParams.put("merchantId", merchantId); - // Add query params - Map queryParams = new HashMap<>(); - if (statuses != null) { - queryParams.put("statuses", statuses); - } - if (limit != null) { - queryParams.put("limit", limit.toString()); - } - if (offset != null) { - queryParams.put("offset", offset.toString()); + /** + * Get a list of Payments Apps - merchant level + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @return {@link PaymentsAppResponse } + * @throws ApiException if fails to make API call + */ + public PaymentsAppResponse listPaymentsAppForMerchant(String merchantId) throws ApiException, IOException { + return listPaymentsAppForMerchant(merchantId, null, null, null, null); } - String requestBody = null; - Resource resource = - new Resource(this, this.baseURL + "/merchants/{merchantId}/paymentsApps", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return PaymentsAppResponse.fromJson(jsonResult); - } + /** + * Get a list of Payments Apps - merchant level + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param statuses {@link String } Query: The status of the Payments App. Comma-separated list of one or more values. If no value is provided, the list returns all statuses. Possible values: * **BOARDING** * **BOARDED** * **REVOKED** (optional) + * @param limit {@link Integer } Query: The number of items to return. (optional, default to 10) + * @param offset {@link Long } Query: The number of items to skip. (optional, default to 0) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PaymentsAppResponse } + * @throws ApiException if fails to make API call + */ + public PaymentsAppResponse listPaymentsAppForMerchant(String merchantId, String statuses, Integer limit, Long offset, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); - /** - * Get a list of Payments Apps - store level - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param storeId {@link String } The unique identifier of the store. (required) - * @return {@link PaymentsAppResponse } - * @throws ApiException if fails to make API call - */ - public PaymentsAppResponse listPaymentsAppForStore(String merchantId, String storeId) - throws ApiException, IOException { - return listPaymentsAppForStore(merchantId, storeId, null, null, null, null); - } + //Add query params + Map queryParams = new HashMap<>(); + if (statuses != null) { + queryParams.put("statuses", statuses); + } + if (limit != null) { + queryParams.put("limit", limit.toString()); + } + if (offset != null) { + queryParams.put("offset", offset.toString()); + } - /** - * Get a list of Payments Apps - store level - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param storeId {@link String } The unique identifier of the store. (required) - * @param statuses {@link String } Query: The status of the Payments App. Comma-separated list of - * one or more values. If no value is provided, the list returns all statuses. Possible - * values: * **BOARDING** * **BOARDED** * **REVOKED** (optional) - * @param limit {@link Integer } Query: The number of items to return. (optional, default to 10) - * @param offset {@link Long } Query: The number of items to skip. (optional, default to 0) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PaymentsAppResponse } - * @throws ApiException if fails to make API call - */ - public PaymentsAppResponse listPaymentsAppForStore( - String merchantId, - String storeId, - String statuses, - Integer limit, - Long offset, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/paymentsApps", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return PaymentsAppResponse.fromJson(jsonResult); } - pathParams.put("merchantId", merchantId); - if (storeId == null) { - throw new IllegalArgumentException("Please provide the storeId path parameter"); - } - pathParams.put("storeId", storeId); - // Add query params - Map queryParams = new HashMap<>(); - if (statuses != null) { - queryParams.put("statuses", statuses); - } - if (limit != null) { - queryParams.put("limit", limit.toString()); - } - if (offset != null) { - queryParams.put("offset", offset.toString()); + /** + * Get a list of Payments Apps - store level + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param storeId {@link String } The unique identifier of the store. (required) + * @return {@link PaymentsAppResponse } + * @throws ApiException if fails to make API call + */ + public PaymentsAppResponse listPaymentsAppForStore(String merchantId, String storeId) throws ApiException, IOException { + return listPaymentsAppForStore(merchantId, storeId, null, null, null, null); } - String requestBody = null; - Resource resource = - new Resource( - this, this.baseURL + "/merchants/{merchantId}/stores/{storeId}/paymentsApps", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return PaymentsAppResponse.fromJson(jsonResult); - } + /** + * Get a list of Payments Apps - store level + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param storeId {@link String } The unique identifier of the store. (required) + * @param statuses {@link String } Query: The status of the Payments App. Comma-separated list of one or more values. If no value is provided, the list returns all statuses. Possible values: * **BOARDING** * **BOARDED** * **REVOKED** (optional) + * @param limit {@link Integer } Query: The number of items to return. (optional, default to 10) + * @param offset {@link Long } Query: The number of items to skip. (optional, default to 0) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PaymentsAppResponse } + * @throws ApiException if fails to make API call + */ + public PaymentsAppResponse listPaymentsAppForStore(String merchantId, String storeId, String statuses, Integer limit, Long offset, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (storeId == null) { + throw new IllegalArgumentException("Please provide the storeId path parameter"); + } + pathParams.put("storeId", storeId); - /** - * Revoke Payments App instance authentication - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param installationId {@link String } The unique identifier of the Payments App instance on a - * device. (required) - * @throws ApiException if fails to make API call - */ - public void revokePaymentsApp(String merchantId, String installationId) - throws ApiException, IOException { - revokePaymentsApp(merchantId, installationId, null); - } + //Add query params + Map queryParams = new HashMap<>(); + if (statuses != null) { + queryParams.put("statuses", statuses); + } + if (limit != null) { + queryParams.put("limit", limit.toString()); + } + if (offset != null) { + queryParams.put("offset", offset.toString()); + } - /** - * Revoke Payments App instance authentication - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param installationId {@link String } The unique identifier of the Payments App instance on a - * device. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void revokePaymentsApp( - String merchantId, String installationId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/stores/{storeId}/paymentsApps", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return PaymentsAppResponse.fromJson(jsonResult); } - pathParams.put("merchantId", merchantId); - if (installationId == null) { - throw new IllegalArgumentException("Please provide the installationId path parameter"); + + /** + * Revoke Payments App instance authentication + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param installationId {@link String } The unique identifier of the Payments App instance on a device. (required) + * @throws ApiException if fails to make API call + */ + public void revokePaymentsApp(String merchantId, String installationId) throws ApiException, IOException { + revokePaymentsApp(merchantId, installationId, null); } - pathParams.put("installationId", installationId); - String requestBody = null; - Resource resource = - new Resource( - this, - this.baseURL + "/merchants/{merchantId}/paymentsApps/{installationId}/revoke", - null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - } + /** + * Revoke Payments App instance authentication + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param installationId {@link String } The unique identifier of the Payments App instance on a device. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void revokePaymentsApp(String merchantId, String installationId, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (installationId == null) { + throw new IllegalArgumentException("Please provide the installationId path parameter"); + } + pathParams.put("installationId", installationId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/paymentsApps/{installationId}/revoke", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + } } diff --git a/src/main/java/com/adyen/service/payout/InitializationApi.java b/src/main/java/com/adyen/service/payout/InitializationApi.java index ca1a4a7eb..63ee985f7 100644 --- a/src/main/java/com/adyen/service/payout/InitializationApi.java +++ b/src/main/java/com/adyen/service/payout/InitializationApi.java @@ -2,7 +2,7 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,135 +14,122 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; +import com.adyen.model.payout.ServiceError; import com.adyen.model.payout.StoreDetailAndSubmitRequest; import com.adyen.model.payout.StoreDetailAndSubmitResponse; import com.adyen.model.payout.StoreDetailRequest; import com.adyen.model.payout.StoreDetailResponse; import com.adyen.model.payout.SubmitRequest; import com.adyen.model.payout.SubmitResponse; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; +import java.util.HashMap; +import java.util.Map; public class InitializationApi extends Service { - public static final String API_VERSION = "68"; + public static final String API_VERSION = "68"; - protected String baseURL; + protected String baseURL; - /** - * Initialization constructor in {@link com.adyen.service.payout package}. - * - * @param client {@link Client } (required) - */ - public InitializationApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/Payout/v68"); - } + /** + * Initialization constructor in {@link com.adyen.service.payout package}. + * @param client {@link Client } (required) + */ + public InitializationApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/Payout/v68"); + } - /** - * Initialization constructor in {@link com.adyen.service.payout package}. Please use this - * constructor only if you would like to pass along your own url for routing or testing purposes. - * The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public InitializationApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Initialization constructor in {@link com.adyen.service.payout package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public InitializationApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Store payout details - * - * @param storeDetailRequest {@link StoreDetailRequest } (required) - * @return {@link StoreDetailResponse } - * @throws ApiException if fails to make API call - */ - public StoreDetailResponse storeDetail(StoreDetailRequest storeDetailRequest) - throws ApiException, IOException { - return storeDetail(storeDetailRequest, null); - } + /** + * Store payout details + * + * @param storeDetailRequest {@link StoreDetailRequest } (required) + * @return {@link StoreDetailResponse } + * @throws ApiException if fails to make API call + */ + public StoreDetailResponse storeDetail(StoreDetailRequest storeDetailRequest) throws ApiException, IOException { + return storeDetail(storeDetailRequest, null); + } - /** - * Store payout details - * - * @param storeDetailRequest {@link StoreDetailRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link StoreDetailResponse } - * @throws ApiException if fails to make API call - */ - public StoreDetailResponse storeDetail( - StoreDetailRequest storeDetailRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = storeDetailRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/storeDetail", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return StoreDetailResponse.fromJson(jsonResult); - } + /** + * Store payout details + * + * @param storeDetailRequest {@link StoreDetailRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link StoreDetailResponse } + * @throws ApiException if fails to make API call + */ + public StoreDetailResponse storeDetail(StoreDetailRequest storeDetailRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = storeDetailRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/storeDetail", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return StoreDetailResponse.fromJson(jsonResult); + } - /** - * Store details and submit a payout - * - * @param storeDetailAndSubmitRequest {@link StoreDetailAndSubmitRequest } (required) - * @return {@link StoreDetailAndSubmitResponse } - * @throws ApiException if fails to make API call - */ - public StoreDetailAndSubmitResponse storeDetailAndSubmitThirdParty( - StoreDetailAndSubmitRequest storeDetailAndSubmitRequest) throws ApiException, IOException { - return storeDetailAndSubmitThirdParty(storeDetailAndSubmitRequest, null); - } + /** + * Store details and submit a payout + * + * @param storeDetailAndSubmitRequest {@link StoreDetailAndSubmitRequest } (required) + * @return {@link StoreDetailAndSubmitResponse } + * @throws ApiException if fails to make API call + */ + public StoreDetailAndSubmitResponse storeDetailAndSubmitThirdParty(StoreDetailAndSubmitRequest storeDetailAndSubmitRequest) throws ApiException, IOException { + return storeDetailAndSubmitThirdParty(storeDetailAndSubmitRequest, null); + } - /** - * Store details and submit a payout - * - * @param storeDetailAndSubmitRequest {@link StoreDetailAndSubmitRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link StoreDetailAndSubmitResponse } - * @throws ApiException if fails to make API call - */ - public StoreDetailAndSubmitResponse storeDetailAndSubmitThirdParty( - StoreDetailAndSubmitRequest storeDetailAndSubmitRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = storeDetailAndSubmitRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/storeDetailAndSubmitThirdParty", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return StoreDetailAndSubmitResponse.fromJson(jsonResult); - } + /** + * Store details and submit a payout + * + * @param storeDetailAndSubmitRequest {@link StoreDetailAndSubmitRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link StoreDetailAndSubmitResponse } + * @throws ApiException if fails to make API call + */ + public StoreDetailAndSubmitResponse storeDetailAndSubmitThirdParty(StoreDetailAndSubmitRequest storeDetailAndSubmitRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = storeDetailAndSubmitRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/storeDetailAndSubmitThirdParty", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return StoreDetailAndSubmitResponse.fromJson(jsonResult); + } - /** - * Submit a payout - * - * @param submitRequest {@link SubmitRequest } (required) - * @return {@link SubmitResponse } - * @throws ApiException if fails to make API call - */ - public SubmitResponse submitThirdParty(SubmitRequest submitRequest) - throws ApiException, IOException { - return submitThirdParty(submitRequest, null); - } + /** + * Submit a payout + * + * @param submitRequest {@link SubmitRequest } (required) + * @return {@link SubmitResponse } + * @throws ApiException if fails to make API call + */ + public SubmitResponse submitThirdParty(SubmitRequest submitRequest) throws ApiException, IOException { + return submitThirdParty(submitRequest, null); + } - /** - * Submit a payout - * - * @param submitRequest {@link SubmitRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link SubmitResponse } - * @throws ApiException if fails to make API call - */ - public SubmitResponse submitThirdParty(SubmitRequest submitRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = submitRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/submitThirdParty", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return SubmitResponse.fromJson(jsonResult); - } + /** + * Submit a payout + * + * @param submitRequest {@link SubmitRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link SubmitResponse } + * @throws ApiException if fails to make API call + */ + public SubmitResponse submitThirdParty(SubmitRequest submitRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = submitRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/submitThirdParty", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return SubmitResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/payout/InstantPayoutsApi.java b/src/main/java/com/adyen/service/payout/InstantPayoutsApi.java index f914092b3..d43f5e567 100644 --- a/src/main/java/com/adyen/service/payout/InstantPayoutsApi.java +++ b/src/main/java/com/adyen/service/payout/InstantPayoutsApi.java @@ -2,7 +2,7 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,68 +14,66 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.payout.PayoutRequest; import com.adyen.model.payout.PayoutResponse; +import com.adyen.model.payout.ServiceError; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; +import java.util.HashMap; +import java.util.Map; public class InstantPayoutsApi extends Service { - public static final String API_VERSION = "68"; + public static final String API_VERSION = "68"; - protected String baseURL; + protected String baseURL; - /** - * Instant payouts constructor in {@link com.adyen.service.payout package}. - * - * @param client {@link Client } (required) - */ - public InstantPayoutsApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/Payout/v68"); - } + /** + * Instant payouts constructor in {@link com.adyen.service.payout package}. + * @param client {@link Client } (required) + */ + public InstantPayoutsApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/Payout/v68"); + } - /** - * Instant payouts constructor in {@link com.adyen.service.payout package}. Please use this - * constructor only if you would like to pass along your own url for routing or testing purposes. - * The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public InstantPayoutsApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Instant payouts constructor in {@link com.adyen.service.payout package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public InstantPayoutsApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Make an instant card payout - * - * @param payoutRequest {@link PayoutRequest } (required) - * @return {@link PayoutResponse } - * @throws ApiException if fails to make API call - */ - public PayoutResponse payout(PayoutRequest payoutRequest) throws ApiException, IOException { - return payout(payoutRequest, null); - } + /** + * Make an instant card payout + * + * @param payoutRequest {@link PayoutRequest } (required) + * @return {@link PayoutResponse } + * @throws ApiException if fails to make API call + */ + public PayoutResponse payout(PayoutRequest payoutRequest) throws ApiException, IOException { + return payout(payoutRequest, null); + } - /** - * Make an instant card payout - * - * @param payoutRequest {@link PayoutRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link PayoutResponse } - * @throws ApiException if fails to make API call - */ - public PayoutResponse payout(PayoutRequest payoutRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = payoutRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/payout", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return PayoutResponse.fromJson(jsonResult); - } + /** + * Make an instant card payout + * + * @param payoutRequest {@link PayoutRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link PayoutResponse } + * @throws ApiException if fails to make API call + */ + public PayoutResponse payout(PayoutRequest payoutRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = payoutRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/payout", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return PayoutResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/payout/ReviewingApi.java b/src/main/java/com/adyen/service/payout/ReviewingApi.java index 7d60f1266..505cc66a7 100644 --- a/src/main/java/com/adyen/service/payout/ReviewingApi.java +++ b/src/main/java/com/adyen/service/payout/ReviewingApi.java @@ -2,7 +2,7 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,99 +14,92 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.payout.ModifyRequest; import com.adyen.model.payout.ModifyResponse; +import com.adyen.model.payout.ServiceError; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; +import java.util.HashMap; +import java.util.Map; public class ReviewingApi extends Service { - public static final String API_VERSION = "68"; + public static final String API_VERSION = "68"; - protected String baseURL; + protected String baseURL; - /** - * Reviewing constructor in {@link com.adyen.service.payout package}. - * - * @param client {@link Client } (required) - */ - public ReviewingApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/Payout/v68"); - } + /** + * Reviewing constructor in {@link com.adyen.service.payout package}. + * @param client {@link Client } (required) + */ + public ReviewingApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/Payout/v68"); + } - /** - * Reviewing constructor in {@link com.adyen.service.payout package}. Please use this constructor - * only if you would like to pass along your own url for routing or testing purposes. The latest - * API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public ReviewingApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Reviewing constructor in {@link com.adyen.service.payout package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public ReviewingApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Confirm a payout - * - * @param modifyRequest {@link ModifyRequest } (required) - * @return {@link ModifyResponse } - * @throws ApiException if fails to make API call - */ - public ModifyResponse confirmThirdParty(ModifyRequest modifyRequest) - throws ApiException, IOException { - return confirmThirdParty(modifyRequest, null); - } + /** + * Confirm a payout + * + * @param modifyRequest {@link ModifyRequest } (required) + * @return {@link ModifyResponse } + * @throws ApiException if fails to make API call + */ + public ModifyResponse confirmThirdParty(ModifyRequest modifyRequest) throws ApiException, IOException { + return confirmThirdParty(modifyRequest, null); + } - /** - * Confirm a payout - * - * @param modifyRequest {@link ModifyRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ModifyResponse } - * @throws ApiException if fails to make API call - */ - public ModifyResponse confirmThirdParty( - ModifyRequest modifyRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = modifyRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/confirmThirdParty", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return ModifyResponse.fromJson(jsonResult); - } + /** + * Confirm a payout + * + * @param modifyRequest {@link ModifyRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ModifyResponse } + * @throws ApiException if fails to make API call + */ + public ModifyResponse confirmThirdParty(ModifyRequest modifyRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = modifyRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/confirmThirdParty", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return ModifyResponse.fromJson(jsonResult); + } - /** - * Cancel a payout - * - * @param modifyRequest {@link ModifyRequest } (required) - * @return {@link ModifyResponse } - * @throws ApiException if fails to make API call - */ - public ModifyResponse declineThirdParty(ModifyRequest modifyRequest) - throws ApiException, IOException { - return declineThirdParty(modifyRequest, null); - } + /** + * Cancel a payout + * + * @param modifyRequest {@link ModifyRequest } (required) + * @return {@link ModifyResponse } + * @throws ApiException if fails to make API call + */ + public ModifyResponse declineThirdParty(ModifyRequest modifyRequest) throws ApiException, IOException { + return declineThirdParty(modifyRequest, null); + } - /** - * Cancel a payout - * - * @param modifyRequest {@link ModifyRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ModifyResponse } - * @throws ApiException if fails to make API call - */ - public ModifyResponse declineThirdParty( - ModifyRequest modifyRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = modifyRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/declineThirdParty", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return ModifyResponse.fromJson(jsonResult); - } + /** + * Cancel a payout + * + * @param modifyRequest {@link ModifyRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ModifyResponse } + * @throws ApiException if fails to make API call + */ + public ModifyResponse declineThirdParty(ModifyRequest modifyRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = modifyRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/declineThirdParty", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return ModifyResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/posmobile/PosMobileApi.java b/src/main/java/com/adyen/service/posmobile/PosMobileApi.java index 7b7d8ce8e..c812f4d89 100644 --- a/src/main/java/com/adyen/service/posmobile/PosMobileApi.java +++ b/src/main/java/com/adyen/service/posmobile/PosMobileApi.java @@ -2,7 +2,7 @@ * POS Mobile API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,70 +14,65 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.posmobile.CreateSessionRequest; import com.adyen.model.posmobile.CreateSessionResponse; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; +import java.util.HashMap; +import java.util.Map; public class PosMobileApi extends Service { - public static final String API_VERSION = "68"; + public static final String API_VERSION = "68"; - protected String baseURL; + protected String baseURL; - /** - * PosMobile constructor in {@link com.adyen.service.posmobile package}. - * - * @param client {@link Client } (required) - */ - public PosMobileApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://checkout-test.adyen.com/checkout/possdk/v68"); - } + /** + * PosMobile constructor in {@link com.adyen.service.posmobile package}. + * @param client {@link Client } (required) + */ + public PosMobileApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://checkout-test.adyen.com/checkout/possdk/v68"); + } - /** - * PosMobile constructor in {@link com.adyen.service.posmobile package}. Please use this - * constructor only if you would like to pass along your own url for routing or testing purposes. - * The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public PosMobileApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * PosMobile constructor in {@link com.adyen.service.posmobile package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public PosMobileApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Create a communication session - * - * @param createSessionRequest {@link CreateSessionRequest } (required) - * @return {@link CreateSessionResponse } - * @throws ApiException if fails to make API call - */ - public CreateSessionResponse createCommunicationSession(CreateSessionRequest createSessionRequest) - throws ApiException, IOException { - return createCommunicationSession(createSessionRequest, null); - } + /** + * Create a communication session + * + * @param createSessionRequest {@link CreateSessionRequest } (required) + * @return {@link CreateSessionResponse } + * @throws ApiException if fails to make API call + */ + public CreateSessionResponse createCommunicationSession(CreateSessionRequest createSessionRequest) throws ApiException, IOException { + return createCommunicationSession(createSessionRequest, null); + } - /** - * Create a communication session - * - * @param createSessionRequest {@link CreateSessionRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link CreateSessionResponse } - * @throws ApiException if fails to make API call - */ - public CreateSessionResponse createCommunicationSession( - CreateSessionRequest createSessionRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = createSessionRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/sessions", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return CreateSessionResponse.fromJson(jsonResult); - } + /** + * Create a communication session + * + * @param createSessionRequest {@link CreateSessionRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link CreateSessionResponse } + * @throws ApiException if fails to make API call + */ + public CreateSessionResponse createCommunicationSession(CreateSessionRequest createSessionRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = createSessionRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/sessions", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return CreateSessionResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/recurring/RecurringApi.java b/src/main/java/com/adyen/service/recurring/RecurringApi.java index 156c369c6..763b59137 100644 --- a/src/main/java/com/adyen/service/recurring/RecurringApi.java +++ b/src/main/java/com/adyen/service/recurring/RecurringApi.java @@ -2,7 +2,7 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,7 +14,6 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.recurring.CreatePermitRequest; import com.adyen.model.recurring.CreatePermitResult; import com.adyen.model.recurring.DisablePermitRequest; @@ -27,245 +26,218 @@ import com.adyen.model.recurring.RecurringDetailsResult; import com.adyen.model.recurring.ScheduleAccountUpdaterRequest; import com.adyen.model.recurring.ScheduleAccountUpdaterResult; +import com.adyen.model.recurring.ServiceError; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; +import java.util.HashMap; +import java.util.Map; public class RecurringApi extends Service { - public static final String API_VERSION = "68"; - - protected String baseURL; - - /** - * Recurring constructor in {@link com.adyen.service.recurring package}. - * - * @param client {@link Client } (required) - */ - public RecurringApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/Recurring/v68"); - } - - /** - * Recurring constructor in {@link com.adyen.service.recurring package}. Please use this - * constructor only if you would like to pass along your own url for routing or testing purposes. - * The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public RecurringApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Create new permits linked to a recurring contract. - * - * @param createPermitRequest {@link CreatePermitRequest } (required) - * @return {@link CreatePermitResult } - * @throws ApiException if fails to make API call - * @deprecated since Adyen Recurring API v68 - */ - @Deprecated - public CreatePermitResult createPermit(CreatePermitRequest createPermitRequest) - throws ApiException, IOException { - return createPermit(createPermitRequest, null); - } - - /** - * Create new permits linked to a recurring contract. - * - * @param createPermitRequest {@link CreatePermitRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link CreatePermitResult } - * @throws ApiException if fails to make API call - * @deprecated since Adyen Recurring API v68 - */ - @Deprecated - public CreatePermitResult createPermit( - CreatePermitRequest createPermitRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = createPermitRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/createPermit", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return CreatePermitResult.fromJson(jsonResult); - } - - /** - * Disable stored payment details - * - * @param disableRequest {@link DisableRequest } (required) - * @return {@link DisableResult } - * @throws ApiException if fails to make API call - * @deprecated since Adyen Recurring API v68 - */ - @Deprecated - public DisableResult disable(DisableRequest disableRequest) throws ApiException, IOException { - return disable(disableRequest, null); - } - - /** - * Disable stored payment details - * - * @param disableRequest {@link DisableRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link DisableResult } - * @throws ApiException if fails to make API call - * @deprecated since Adyen Recurring API v68 - */ - @Deprecated - public DisableResult disable(DisableRequest disableRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = disableRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/disable", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return DisableResult.fromJson(jsonResult); - } - - /** - * Disable an existing permit. - * - * @param disablePermitRequest {@link DisablePermitRequest } (required) - * @return {@link DisablePermitResult } - * @throws ApiException if fails to make API call - * @deprecated since Adyen Recurring API v68 - */ - @Deprecated - public DisablePermitResult disablePermit(DisablePermitRequest disablePermitRequest) - throws ApiException, IOException { - return disablePermit(disablePermitRequest, null); - } - - /** - * Disable an existing permit. - * - * @param disablePermitRequest {@link DisablePermitRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link DisablePermitResult } - * @throws ApiException if fails to make API call - * @deprecated since Adyen Recurring API v68 - */ - @Deprecated - public DisablePermitResult disablePermit( - DisablePermitRequest disablePermitRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = disablePermitRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/disablePermit", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return DisablePermitResult.fromJson(jsonResult); - } - - /** - * Get stored payment details - * - * @param recurringDetailsRequest {@link RecurringDetailsRequest } (required) - * @return {@link RecurringDetailsResult } - * @throws ApiException if fails to make API call - * @deprecated since Adyen Recurring API v68 - */ - @Deprecated - public RecurringDetailsResult listRecurringDetails( - RecurringDetailsRequest recurringDetailsRequest) throws ApiException, IOException { - return listRecurringDetails(recurringDetailsRequest, null); - } - - /** - * Get stored payment details - * - * @param recurringDetailsRequest {@link RecurringDetailsRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link RecurringDetailsResult } - * @throws ApiException if fails to make API call - * @deprecated since Adyen Recurring API v68 - */ - @Deprecated - public RecurringDetailsResult listRecurringDetails( - RecurringDetailsRequest recurringDetailsRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = recurringDetailsRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/listRecurringDetails", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return RecurringDetailsResult.fromJson(jsonResult); - } - - /** - * Ask issuer to notify the shopper - * - * @param notifyShopperRequest {@link NotifyShopperRequest } (required) - * @return {@link NotifyShopperResult } - * @throws ApiException if fails to make API call - * @deprecated since Adyen Recurring API v68 - */ - @Deprecated - public NotifyShopperResult notifyShopper(NotifyShopperRequest notifyShopperRequest) - throws ApiException, IOException { - return notifyShopper(notifyShopperRequest, null); - } - - /** - * Ask issuer to notify the shopper - * - * @param notifyShopperRequest {@link NotifyShopperRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link NotifyShopperResult } - * @throws ApiException if fails to make API call - * @deprecated since Adyen Recurring API v68 - */ - @Deprecated - public NotifyShopperResult notifyShopper( - NotifyShopperRequest notifyShopperRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = notifyShopperRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/notifyShopper", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return NotifyShopperResult.fromJson(jsonResult); - } - - /** - * Schedule running the Account Updater - * - * @param scheduleAccountUpdaterRequest {@link ScheduleAccountUpdaterRequest } (required) - * @return {@link ScheduleAccountUpdaterResult } - * @throws ApiException if fails to make API call - * @deprecated since Adyen Recurring API v68 - */ - @Deprecated - public ScheduleAccountUpdaterResult scheduleAccountUpdater( - ScheduleAccountUpdaterRequest scheduleAccountUpdaterRequest) - throws ApiException, IOException { - return scheduleAccountUpdater(scheduleAccountUpdaterRequest, null); - } - - /** - * Schedule running the Account Updater - * - * @param scheduleAccountUpdaterRequest {@link ScheduleAccountUpdaterRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ScheduleAccountUpdaterResult } - * @throws ApiException if fails to make API call - * @deprecated since Adyen Recurring API v68 - */ - @Deprecated - public ScheduleAccountUpdaterResult scheduleAccountUpdater( - ScheduleAccountUpdaterRequest scheduleAccountUpdaterRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = scheduleAccountUpdaterRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/scheduleAccountUpdater", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return ScheduleAccountUpdaterResult.fromJson(jsonResult); - } + public static final String API_VERSION = "68"; + + protected String baseURL; + + /** + * Recurring constructor in {@link com.adyen.service.recurring package}. + * @param client {@link Client } (required) + */ + public RecurringApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/Recurring/v68"); + } + + /** + * Recurring constructor in {@link com.adyen.service.recurring package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public RecurringApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Create new permits linked to a recurring contract. + * + * @param createPermitRequest {@link CreatePermitRequest } (required) + * @return {@link CreatePermitResult } + * @throws ApiException if fails to make API call + * @deprecated since Adyen Recurring API v68 + */ + @Deprecated + public CreatePermitResult createPermit(CreatePermitRequest createPermitRequest) throws ApiException, IOException { + return createPermit(createPermitRequest, null); + } + + /** + * Create new permits linked to a recurring contract. + * + * @param createPermitRequest {@link CreatePermitRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link CreatePermitResult } + * @throws ApiException if fails to make API call + * @deprecated since Adyen Recurring API v68 + */ + @Deprecated + public CreatePermitResult createPermit(CreatePermitRequest createPermitRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = createPermitRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/createPermit", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return CreatePermitResult.fromJson(jsonResult); + } + + /** + * Disable stored payment details + * + * @param disableRequest {@link DisableRequest } (required) + * @return {@link DisableResult } + * @throws ApiException if fails to make API call + * @deprecated since Adyen Recurring API v68 + */ + @Deprecated + public DisableResult disable(DisableRequest disableRequest) throws ApiException, IOException { + return disable(disableRequest, null); + } + + /** + * Disable stored payment details + * + * @param disableRequest {@link DisableRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link DisableResult } + * @throws ApiException if fails to make API call + * @deprecated since Adyen Recurring API v68 + */ + @Deprecated + public DisableResult disable(DisableRequest disableRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = disableRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/disable", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return DisableResult.fromJson(jsonResult); + } + + /** + * Disable an existing permit. + * + * @param disablePermitRequest {@link DisablePermitRequest } (required) + * @return {@link DisablePermitResult } + * @throws ApiException if fails to make API call + * @deprecated since Adyen Recurring API v68 + */ + @Deprecated + public DisablePermitResult disablePermit(DisablePermitRequest disablePermitRequest) throws ApiException, IOException { + return disablePermit(disablePermitRequest, null); + } + + /** + * Disable an existing permit. + * + * @param disablePermitRequest {@link DisablePermitRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link DisablePermitResult } + * @throws ApiException if fails to make API call + * @deprecated since Adyen Recurring API v68 + */ + @Deprecated + public DisablePermitResult disablePermit(DisablePermitRequest disablePermitRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = disablePermitRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/disablePermit", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return DisablePermitResult.fromJson(jsonResult); + } + + /** + * Get stored payment details + * + * @param recurringDetailsRequest {@link RecurringDetailsRequest } (required) + * @return {@link RecurringDetailsResult } + * @throws ApiException if fails to make API call + * @deprecated since Adyen Recurring API v68 + */ + @Deprecated + public RecurringDetailsResult listRecurringDetails(RecurringDetailsRequest recurringDetailsRequest) throws ApiException, IOException { + return listRecurringDetails(recurringDetailsRequest, null); + } + + /** + * Get stored payment details + * + * @param recurringDetailsRequest {@link RecurringDetailsRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link RecurringDetailsResult } + * @throws ApiException if fails to make API call + * @deprecated since Adyen Recurring API v68 + */ + @Deprecated + public RecurringDetailsResult listRecurringDetails(RecurringDetailsRequest recurringDetailsRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = recurringDetailsRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/listRecurringDetails", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return RecurringDetailsResult.fromJson(jsonResult); + } + + /** + * Ask issuer to notify the shopper + * + * @param notifyShopperRequest {@link NotifyShopperRequest } (required) + * @return {@link NotifyShopperResult } + * @throws ApiException if fails to make API call + * @deprecated since Adyen Recurring API v68 + */ + @Deprecated + public NotifyShopperResult notifyShopper(NotifyShopperRequest notifyShopperRequest) throws ApiException, IOException { + return notifyShopper(notifyShopperRequest, null); + } + + /** + * Ask issuer to notify the shopper + * + * @param notifyShopperRequest {@link NotifyShopperRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link NotifyShopperResult } + * @throws ApiException if fails to make API call + * @deprecated since Adyen Recurring API v68 + */ + @Deprecated + public NotifyShopperResult notifyShopper(NotifyShopperRequest notifyShopperRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = notifyShopperRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/notifyShopper", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return NotifyShopperResult.fromJson(jsonResult); + } + + /** + * Schedule running the Account Updater + * + * @param scheduleAccountUpdaterRequest {@link ScheduleAccountUpdaterRequest } (required) + * @return {@link ScheduleAccountUpdaterResult } + * @throws ApiException if fails to make API call + * @deprecated since Adyen Recurring API v68 + */ + @Deprecated + public ScheduleAccountUpdaterResult scheduleAccountUpdater(ScheduleAccountUpdaterRequest scheduleAccountUpdaterRequest) throws ApiException, IOException { + return scheduleAccountUpdater(scheduleAccountUpdaterRequest, null); + } + + /** + * Schedule running the Account Updater + * + * @param scheduleAccountUpdaterRequest {@link ScheduleAccountUpdaterRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ScheduleAccountUpdaterResult } + * @throws ApiException if fails to make API call + * @deprecated since Adyen Recurring API v68 + */ + @Deprecated + public ScheduleAccountUpdaterResult scheduleAccountUpdater(ScheduleAccountUpdaterRequest scheduleAccountUpdaterRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = scheduleAccountUpdaterRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/scheduleAccountUpdater", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return ScheduleAccountUpdaterResult.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/sessionauthentication/SessionAuthenticationApi.java b/src/main/java/com/adyen/service/sessionauthentication/SessionAuthenticationApi.java index 0d33c9638..bbc5183b8 100644 --- a/src/main/java/com/adyen/service/sessionauthentication/SessionAuthenticationApi.java +++ b/src/main/java/com/adyen/service/sessionauthentication/SessionAuthenticationApi.java @@ -2,7 +2,7 @@ * Session authentication API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,71 +14,67 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.sessionauthentication.AuthenticationSessionRequest; import com.adyen.model.sessionauthentication.AuthenticationSessionResponse; +import com.adyen.model.sessionauthentication.DefaultErrorResponseEntity; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; +import java.util.HashMap; +import java.util.Map; public class SessionAuthenticationApi extends Service { - public static final String API_VERSION = "1"; + public static final String API_VERSION = "1"; - protected String baseURL; + protected String baseURL; - /** - * Session authentication constructor in {@link com.adyen.service.sessionauthentication package}. - * - * @param client {@link Client } (required) - */ - public SessionAuthenticationApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://test.adyen.com/authe/api/v1"); - } + /** + * Session authentication constructor in {@link com.adyen.service.sessionauthentication package}. + * @param client {@link Client } (required) + */ + public SessionAuthenticationApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://test.adyen.com/authe/api/v1"); + } - /** - * Session authentication constructor in {@link com.adyen.service.sessionauthentication package}. - * Please use this constructor only if you would like to pass along your own url for routing or - * testing purposes. The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public SessionAuthenticationApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Session authentication constructor in {@link com.adyen.service.sessionauthentication package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public SessionAuthenticationApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Create a session token - * - * @param authenticationSessionRequest {@link AuthenticationSessionRequest } (required) - * @param authenticationSessionRequest {@link AuthenticationSessionRequest } (required) - * @return {@link AuthenticationSessionResponse } - * @throws ApiException if fails to make API call - */ - public AuthenticationSessionResponse createAuthenticationSession( - AuthenticationSessionRequest authenticationSessionRequest) throws ApiException, IOException { - return createAuthenticationSession(authenticationSessionRequest, null); - } + /** + * Create a session token + * + * @param authenticationSessionRequest {@link AuthenticationSessionRequest } (required) + * @param authenticationSessionRequest {@link AuthenticationSessionRequest } (required) + * @return {@link AuthenticationSessionResponse } + * @throws ApiException if fails to make API call + */ + public AuthenticationSessionResponse createAuthenticationSession(AuthenticationSessionRequest authenticationSessionRequest) throws ApiException, IOException { + return createAuthenticationSession(authenticationSessionRequest, null); + } - /** - * Create a session token - * - * @param authenticationSessionRequest {@link AuthenticationSessionRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link AuthenticationSessionResponse } - * @throws ApiException if fails to make API call - */ - public AuthenticationSessionResponse createAuthenticationSession( - AuthenticationSessionRequest authenticationSessionRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = authenticationSessionRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/sessions", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return AuthenticationSessionResponse.fromJson(jsonResult); - } + /** + * Create a session token + * + * @param authenticationSessionRequest {@link AuthenticationSessionRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link AuthenticationSessionResponse } + * @throws ApiException if fails to make API call + */ + public AuthenticationSessionResponse createAuthenticationSession(AuthenticationSessionRequest authenticationSessionRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = authenticationSessionRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/sessions", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return AuthenticationSessionResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/storedvalue/StoredValueApi.java b/src/main/java/com/adyen/service/storedvalue/StoredValueApi.java index 70fe4d6fd..06502c6b2 100644 --- a/src/main/java/com/adyen/service/storedvalue/StoredValueApi.java +++ b/src/main/java/com/adyen/service/storedvalue/StoredValueApi.java @@ -2,7 +2,7 @@ * Adyen Stored Value API * * The version of the OpenAPI document: 46 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,7 +14,7 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; +import com.adyen.model.storedvalue.ServiceError; import com.adyen.model.storedvalue.StoredValueBalanceCheckRequest; import com.adyen.model.storedvalue.StoredValueBalanceCheckResponse; import com.adyen.model.storedvalue.StoredValueBalanceMergeRequest; @@ -27,225 +27,193 @@ import com.adyen.model.storedvalue.StoredValueStatusChangeResponse; import com.adyen.model.storedvalue.StoredValueVoidRequest; import com.adyen.model.storedvalue.StoredValueVoidResponse; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; +import java.util.HashMap; +import java.util.Map; public class StoredValueApi extends Service { - public static final String API_VERSION = "46"; - - protected String baseURL; - - /** - * StoredValue constructor in {@link com.adyen.service.storedvalue package}. - * - * @param client {@link Client } (required) - */ - public StoredValueApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/StoredValue/v46"); - } - - /** - * StoredValue constructor in {@link com.adyen.service.storedvalue package}. Please use this - * constructor only if you would like to pass along your own url for routing or testing purposes. - * The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public StoredValueApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Changes the status of the payment method. - * - * @param storedValueStatusChangeRequest {@link StoredValueStatusChangeRequest } (required) - * @return {@link StoredValueStatusChangeResponse } - * @throws ApiException if fails to make API call - */ - public StoredValueStatusChangeResponse changeStatus( - StoredValueStatusChangeRequest storedValueStatusChangeRequest) - throws ApiException, IOException { - return changeStatus(storedValueStatusChangeRequest, null); - } - - /** - * Changes the status of the payment method. - * - * @param storedValueStatusChangeRequest {@link StoredValueStatusChangeRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link StoredValueStatusChangeResponse } - * @throws ApiException if fails to make API call - */ - public StoredValueStatusChangeResponse changeStatus( - StoredValueStatusChangeRequest storedValueStatusChangeRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = storedValueStatusChangeRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/changeStatus", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return StoredValueStatusChangeResponse.fromJson(jsonResult); - } - - /** - * Checks the balance. - * - * @param storedValueBalanceCheckRequest {@link StoredValueBalanceCheckRequest } (required) - * @return {@link StoredValueBalanceCheckResponse } - * @throws ApiException if fails to make API call - */ - public StoredValueBalanceCheckResponse checkBalance( - StoredValueBalanceCheckRequest storedValueBalanceCheckRequest) - throws ApiException, IOException { - return checkBalance(storedValueBalanceCheckRequest, null); - } - - /** - * Checks the balance. - * - * @param storedValueBalanceCheckRequest {@link StoredValueBalanceCheckRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link StoredValueBalanceCheckResponse } - * @throws ApiException if fails to make API call - */ - public StoredValueBalanceCheckResponse checkBalance( - StoredValueBalanceCheckRequest storedValueBalanceCheckRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = storedValueBalanceCheckRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/checkBalance", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return StoredValueBalanceCheckResponse.fromJson(jsonResult); - } - - /** - * Issues a new card. - * - * @param storedValueIssueRequest {@link StoredValueIssueRequest } (required) - * @return {@link StoredValueIssueResponse } - * @throws ApiException if fails to make API call - */ - public StoredValueIssueResponse issue(StoredValueIssueRequest storedValueIssueRequest) - throws ApiException, IOException { - return issue(storedValueIssueRequest, null); - } - - /** - * Issues a new card. - * - * @param storedValueIssueRequest {@link StoredValueIssueRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link StoredValueIssueResponse } - * @throws ApiException if fails to make API call - */ - public StoredValueIssueResponse issue( - StoredValueIssueRequest storedValueIssueRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = storedValueIssueRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/issue", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return StoredValueIssueResponse.fromJson(jsonResult); - } - - /** - * Loads the payment method. - * - * @param storedValueLoadRequest {@link StoredValueLoadRequest } (required) - * @return {@link StoredValueLoadResponse } - * @throws ApiException if fails to make API call - */ - public StoredValueLoadResponse load(StoredValueLoadRequest storedValueLoadRequest) - throws ApiException, IOException { - return load(storedValueLoadRequest, null); - } - - /** - * Loads the payment method. - * - * @param storedValueLoadRequest {@link StoredValueLoadRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link StoredValueLoadResponse } - * @throws ApiException if fails to make API call - */ - public StoredValueLoadResponse load( - StoredValueLoadRequest storedValueLoadRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = storedValueLoadRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/load", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return StoredValueLoadResponse.fromJson(jsonResult); - } - - /** - * Merge the balance of two cards. - * - * @param storedValueBalanceMergeRequest {@link StoredValueBalanceMergeRequest } (required) - * @return {@link StoredValueBalanceMergeResponse } - * @throws ApiException if fails to make API call - */ - public StoredValueBalanceMergeResponse mergeBalance( - StoredValueBalanceMergeRequest storedValueBalanceMergeRequest) - throws ApiException, IOException { - return mergeBalance(storedValueBalanceMergeRequest, null); - } - - /** - * Merge the balance of two cards. - * - * @param storedValueBalanceMergeRequest {@link StoredValueBalanceMergeRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link StoredValueBalanceMergeResponse } - * @throws ApiException if fails to make API call - */ - public StoredValueBalanceMergeResponse mergeBalance( - StoredValueBalanceMergeRequest storedValueBalanceMergeRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = storedValueBalanceMergeRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/mergeBalance", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return StoredValueBalanceMergeResponse.fromJson(jsonResult); - } - - /** - * Voids a transaction. - * - * @param storedValueVoidRequest {@link StoredValueVoidRequest } (required) - * @return {@link StoredValueVoidResponse } - * @throws ApiException if fails to make API call - */ - public StoredValueVoidResponse voidTransaction(StoredValueVoidRequest storedValueVoidRequest) - throws ApiException, IOException { - return voidTransaction(storedValueVoidRequest, null); - } - - /** - * Voids a transaction. - * - * @param storedValueVoidRequest {@link StoredValueVoidRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link StoredValueVoidResponse } - * @throws ApiException if fails to make API call - */ - public StoredValueVoidResponse voidTransaction( - StoredValueVoidRequest storedValueVoidRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = storedValueVoidRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/voidTransaction", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return StoredValueVoidResponse.fromJson(jsonResult); - } + public static final String API_VERSION = "46"; + + protected String baseURL; + + /** + * StoredValue constructor in {@link com.adyen.service.storedvalue package}. + * @param client {@link Client } (required) + */ + public StoredValueApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/StoredValue/v46"); + } + + /** + * StoredValue constructor in {@link com.adyen.service.storedvalue package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public StoredValueApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Changes the status of the payment method. + * + * @param storedValueStatusChangeRequest {@link StoredValueStatusChangeRequest } (required) + * @return {@link StoredValueStatusChangeResponse } + * @throws ApiException if fails to make API call + */ + public StoredValueStatusChangeResponse changeStatus(StoredValueStatusChangeRequest storedValueStatusChangeRequest) throws ApiException, IOException { + return changeStatus(storedValueStatusChangeRequest, null); + } + + /** + * Changes the status of the payment method. + * + * @param storedValueStatusChangeRequest {@link StoredValueStatusChangeRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link StoredValueStatusChangeResponse } + * @throws ApiException if fails to make API call + */ + public StoredValueStatusChangeResponse changeStatus(StoredValueStatusChangeRequest storedValueStatusChangeRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = storedValueStatusChangeRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/changeStatus", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return StoredValueStatusChangeResponse.fromJson(jsonResult); + } + + /** + * Checks the balance. + * + * @param storedValueBalanceCheckRequest {@link StoredValueBalanceCheckRequest } (required) + * @return {@link StoredValueBalanceCheckResponse } + * @throws ApiException if fails to make API call + */ + public StoredValueBalanceCheckResponse checkBalance(StoredValueBalanceCheckRequest storedValueBalanceCheckRequest) throws ApiException, IOException { + return checkBalance(storedValueBalanceCheckRequest, null); + } + + /** + * Checks the balance. + * + * @param storedValueBalanceCheckRequest {@link StoredValueBalanceCheckRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link StoredValueBalanceCheckResponse } + * @throws ApiException if fails to make API call + */ + public StoredValueBalanceCheckResponse checkBalance(StoredValueBalanceCheckRequest storedValueBalanceCheckRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = storedValueBalanceCheckRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/checkBalance", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return StoredValueBalanceCheckResponse.fromJson(jsonResult); + } + + /** + * Issues a new card. + * + * @param storedValueIssueRequest {@link StoredValueIssueRequest } (required) + * @return {@link StoredValueIssueResponse } + * @throws ApiException if fails to make API call + */ + public StoredValueIssueResponse issue(StoredValueIssueRequest storedValueIssueRequest) throws ApiException, IOException { + return issue(storedValueIssueRequest, null); + } + + /** + * Issues a new card. + * + * @param storedValueIssueRequest {@link StoredValueIssueRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link StoredValueIssueResponse } + * @throws ApiException if fails to make API call + */ + public StoredValueIssueResponse issue(StoredValueIssueRequest storedValueIssueRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = storedValueIssueRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/issue", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return StoredValueIssueResponse.fromJson(jsonResult); + } + + /** + * Loads the payment method. + * + * @param storedValueLoadRequest {@link StoredValueLoadRequest } (required) + * @return {@link StoredValueLoadResponse } + * @throws ApiException if fails to make API call + */ + public StoredValueLoadResponse load(StoredValueLoadRequest storedValueLoadRequest) throws ApiException, IOException { + return load(storedValueLoadRequest, null); + } + + /** + * Loads the payment method. + * + * @param storedValueLoadRequest {@link StoredValueLoadRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link StoredValueLoadResponse } + * @throws ApiException if fails to make API call + */ + public StoredValueLoadResponse load(StoredValueLoadRequest storedValueLoadRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = storedValueLoadRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/load", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return StoredValueLoadResponse.fromJson(jsonResult); + } + + /** + * Merge the balance of two cards. + * + * @param storedValueBalanceMergeRequest {@link StoredValueBalanceMergeRequest } (required) + * @return {@link StoredValueBalanceMergeResponse } + * @throws ApiException if fails to make API call + */ + public StoredValueBalanceMergeResponse mergeBalance(StoredValueBalanceMergeRequest storedValueBalanceMergeRequest) throws ApiException, IOException { + return mergeBalance(storedValueBalanceMergeRequest, null); + } + + /** + * Merge the balance of two cards. + * + * @param storedValueBalanceMergeRequest {@link StoredValueBalanceMergeRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link StoredValueBalanceMergeResponse } + * @throws ApiException if fails to make API call + */ + public StoredValueBalanceMergeResponse mergeBalance(StoredValueBalanceMergeRequest storedValueBalanceMergeRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = storedValueBalanceMergeRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/mergeBalance", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return StoredValueBalanceMergeResponse.fromJson(jsonResult); + } + + /** + * Voids a transaction. + * + * @param storedValueVoidRequest {@link StoredValueVoidRequest } (required) + * @return {@link StoredValueVoidResponse } + * @throws ApiException if fails to make API call + */ + public StoredValueVoidResponse voidTransaction(StoredValueVoidRequest storedValueVoidRequest) throws ApiException, IOException { + return voidTransaction(storedValueVoidRequest, null); + } + + /** + * Voids a transaction. + * + * @param storedValueVoidRequest {@link StoredValueVoidRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link StoredValueVoidResponse } + * @throws ApiException if fails to make API call + */ + public StoredValueVoidResponse voidTransaction(StoredValueVoidRequest storedValueVoidRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = storedValueVoidRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/voidTransaction", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return StoredValueVoidResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/transfers/CapitalApi.java b/src/main/java/com/adyen/service/transfers/CapitalApi.java index 7b4e25f17..5eb8a9ef4 100644 --- a/src/main/java/com/adyen/service/transfers/CapitalApi.java +++ b/src/main/java/com/adyen/service/transfers/CapitalApi.java @@ -2,7 +2,7 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,164 +14,149 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.transfers.CapitalGrant; import com.adyen.model.transfers.CapitalGrantInfo; import com.adyen.model.transfers.CapitalGrants; +import com.adyen.model.transfers.RestServiceError; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; import java.util.HashMap; import java.util.Map; public class CapitalApi extends Service { - public static final String API_VERSION = "4"; - - protected String baseURL; - - /** - * Capital constructor in {@link com.adyen.service.transfers package}. - * - * @param client {@link Client } (required) - */ - public CapitalApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/btl/v4"); - } - - /** - * Capital constructor in {@link com.adyen.service.transfers package}. Please use this constructor - * only if you would like to pass along your own url for routing or testing purposes. The latest - * API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public CapitalApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Get a capital account - * - * @return {@link CapitalGrants } - * @throws ApiException if fails to make API call - * @deprecated since Transfers API v4 Use the `/grants` endpoint from the [Capital - * API](https://docs.adyen.com/api-explorer/capital/latest/get/grants) instead. - */ - @Deprecated - public CapitalGrants getCapitalAccount() throws ApiException, IOException { - return getCapitalAccount(null, null); - } - - /** - * Get a capital account - * - * @param counterpartyAccountHolderId {@link String } Query: The counterparty account holder id. - * (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link CapitalGrants } - * @throws ApiException if fails to make API call - * @deprecated since Transfers API v4 Use the `/grants` endpoint from the [Capital - * API](https://docs.adyen.com/api-explorer/capital/latest/get/grants) instead. - */ - @Deprecated - public CapitalGrants getCapitalAccount( - String counterpartyAccountHolderId, RequestOptions requestOptions) - throws ApiException, IOException { - // Add query params - Map queryParams = new HashMap<>(); - if (counterpartyAccountHolderId != null) { - queryParams.put("counterpartyAccountHolderId", counterpartyAccountHolderId); + public static final String API_VERSION = "4"; + + protected String baseURL; + + /** + * Capital constructor in {@link com.adyen.service.transfers package}. + * @param client {@link Client } (required) + */ + public CapitalApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/btl/v4"); + } + + /** + * Capital constructor in {@link com.adyen.service.transfers package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public CapitalApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Get a capital account + * + * @return {@link CapitalGrants } + * @throws ApiException if fails to make API call + * @deprecated since Transfers API v4 + * Use the `/grants` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grants) instead. + */ + @Deprecated + public CapitalGrants getCapitalAccount() throws ApiException, IOException { + return getCapitalAccount(null, null); + } + + /** + * Get a capital account + * + * @param counterpartyAccountHolderId {@link String } Query: The counterparty account holder id. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link CapitalGrants } + * @throws ApiException if fails to make API call + * @deprecated since Transfers API v4 + * Use the `/grants` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grants) instead. + */ + @Deprecated + public CapitalGrants getCapitalAccount(String counterpartyAccountHolderId, RequestOptions requestOptions) throws ApiException, IOException { + //Add query params + Map queryParams = new HashMap<>(); + if (counterpartyAccountHolderId != null) { + queryParams.put("counterpartyAccountHolderId", counterpartyAccountHolderId); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/grants", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); + return CapitalGrants.fromJson(jsonResult); + } + + /** + * Get grant reference details + * + * @param id {@link String } The unique identifier of the grant. (required) + * @return {@link CapitalGrant } + * @throws ApiException if fails to make API call + * @deprecated since Transfers API v4 + * Use the `/grants/{grantId}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grants/(grantId)) instead. + */ + @Deprecated + public CapitalGrant getGrantReferenceDetails(String id) throws ApiException, IOException { + return getGrantReferenceDetails(id, null); + } + + /** + * Get grant reference details + * + * @param id {@link String } The unique identifier of the grant. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link CapitalGrant } + * @throws ApiException if fails to make API call + * @deprecated since Transfers API v4 + * Use the `/grants/{grantId}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grants/(grantId)) instead. + */ + @Deprecated + public CapitalGrant getGrantReferenceDetails(String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/grants/{id}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return CapitalGrant.fromJson(jsonResult); + } + + /** + * Request a grant payout + * + * @param capitalGrantInfo {@link CapitalGrantInfo } (required) + * @return {@link CapitalGrant } + * @throws ApiException if fails to make API call + * @deprecated since Transfers API v4 + * Use the `/grants` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/post/grants) instead. + */ + @Deprecated + public CapitalGrant requestGrantPayout(CapitalGrantInfo capitalGrantInfo) throws ApiException, IOException { + return requestGrantPayout(capitalGrantInfo, null); } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/grants", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); - return CapitalGrants.fromJson(jsonResult); - } - - /** - * Get grant reference details - * - * @param id {@link String } The unique identifier of the grant. (required) - * @return {@link CapitalGrant } - * @throws ApiException if fails to make API call - * @deprecated since Transfers API v4 Use the `/grants/{grantId}` endpoint from the [Capital - * API](https://docs.adyen.com/api-explorer/capital/latest/get/grants/(grantId)) instead. - */ - @Deprecated - public CapitalGrant getGrantReferenceDetails(String id) throws ApiException, IOException { - return getGrantReferenceDetails(id, null); - } - - /** - * Get grant reference details - * - * @param id {@link String } The unique identifier of the grant. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link CapitalGrant } - * @throws ApiException if fails to make API call - * @deprecated since Transfers API v4 Use the `/grants/{grantId}` endpoint from the [Capital - * API](https://docs.adyen.com/api-explorer/capital/latest/get/grants/(grantId)) instead. - */ - @Deprecated - public CapitalGrant getGrantReferenceDetails(String id, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + /** + * Request a grant payout + * + * @param capitalGrantInfo {@link CapitalGrantInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link CapitalGrant } + * @throws ApiException if fails to make API call + * @deprecated since Transfers API v4 + * Use the `/grants` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/post/grants) instead. + */ + @Deprecated + public CapitalGrant requestGrantPayout(CapitalGrantInfo capitalGrantInfo, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = capitalGrantInfo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/grants", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return CapitalGrant.fromJson(jsonResult); } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/grants/{id}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return CapitalGrant.fromJson(jsonResult); - } - - /** - * Request a grant payout - * - * @param capitalGrantInfo {@link CapitalGrantInfo } (required) - * @return {@link CapitalGrant } - * @throws ApiException if fails to make API call - * @deprecated since Transfers API v4 Use the `/grants` endpoint from the [Capital - * API](https://docs.adyen.com/api-explorer/capital/latest/post/grants) instead. - */ - @Deprecated - public CapitalGrant requestGrantPayout(CapitalGrantInfo capitalGrantInfo) - throws ApiException, IOException { - return requestGrantPayout(capitalGrantInfo, null); - } - - /** - * Request a grant payout - * - * @param capitalGrantInfo {@link CapitalGrantInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link CapitalGrant } - * @throws ApiException if fails to make API call - * @deprecated since Transfers API v4 Use the `/grants` endpoint from the [Capital - * API](https://docs.adyen.com/api-explorer/capital/latest/post/grants) instead. - */ - @Deprecated - public CapitalGrant requestGrantPayout( - CapitalGrantInfo capitalGrantInfo, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = capitalGrantInfo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/grants", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return CapitalGrant.fromJson(jsonResult); - } } diff --git a/src/main/java/com/adyen/service/transfers/TransactionsApi.java b/src/main/java/com/adyen/service/transfers/TransactionsApi.java index 570a190f1..2e44fa1fe 100644 --- a/src/main/java/com/adyen/service/transfers/TransactionsApi.java +++ b/src/main/java/com/adyen/service/transfers/TransactionsApi.java @@ -2,7 +2,7 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,188 +14,139 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; +import java.time.OffsetDateTime; +import com.adyen.model.transfers.RestServiceError; import com.adyen.model.transfers.Transaction; import com.adyen.model.transfers.TransactionSearchResponse; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; -import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; public class TransactionsApi extends Service { - public static final String API_VERSION = "4"; - - protected String baseURL; - - /** - * Transactions constructor in {@link com.adyen.service.transfers package}. - * - * @param client {@link Client } (required) - */ - public TransactionsApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/btl/v4"); - } + public static final String API_VERSION = "4"; - /** - * Transactions constructor in {@link com.adyen.service.transfers package}. Please use this - * constructor only if you would like to pass along your own url for routing or testing purposes. - * The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public TransactionsApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + protected String baseURL; - /** - * Get all transactions - * - * @param createdSince {@link OffsetDateTime } Only include transactions that have been created on - * or after this point in time. The value must be in ISO 8601 format. For example, - * **2021-05-30T15:07:40Z**. (required) - * @param createdUntil {@link OffsetDateTime } Only include transactions that have been created on - * or before this point in time. The value must be in ISO 8601 format. For example, - * **2021-05-30T15:07:40Z**. (required) - * @return {@link TransactionSearchResponse } - * @throws ApiException if fails to make API call - */ - public TransactionSearchResponse getAllTransactions( - OffsetDateTime createdSince, OffsetDateTime createdUntil) throws ApiException, IOException { - return getAllTransactions( - null, null, null, null, null, createdSince, createdUntil, null, null, null); - } - - /** - * Get all transactions - * - * @param balancePlatform {@link String } Query: The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id). - * Required if you don't provide a `balanceAccountId` or - * `accountHolderId`. (optional) - * @param paymentInstrumentId {@link String } Query: The unique identifier of the [payment - * instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_). - * To use this parameter, you must also provide a `balanceAccountId`, - * `accountHolderId`, or `balancePlatform`. The - * `paymentInstrumentId` must be related to the `balanceAccountId` or - * `accountHolderId` that you provide. (optional) - * @param accountHolderId {@link String } Query: The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/accountHolders/{id}__queryParam_id). - * Required if you don't provide a `balanceAccountId` or - * `balancePlatform`. If you provide a `balanceAccountId`, the - * `accountHolderId` must be related to the `balanceAccountId`. (optional) - * @param balanceAccountId {@link String } Query: The unique identifier of the [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id). - * Required if you don't provide an `accountHolderId` or - * `balancePlatform`. If you provide an `accountHolderId`, the - * `balanceAccountId` must be related to the `accountHolderId`. (optional) - * @param cursor {@link String } Query: The `cursor` returned in the links of the - * previous response. (optional) - * @param createdSince {@link OffsetDateTime } Query: Only include transactions that have been - * created on or after this point in time. The value must be in ISO 8601 format. For example, - * **2021-05-30T15:07:40Z**. (required) - * @param createdUntil {@link OffsetDateTime } Query: Only include transactions that have been - * created on or before this point in time. The value must be in ISO 8601 format. For example, - * **2021-05-30T15:07:40Z**. (required) - * @param sortOrder {@link String } Query: Determines the sort order of the returned transactions. - * The sort order is based on the creation date of the transaction. Possible values: - - * **asc**: Ascending order, from oldest to most recent. - **desc**: Descending order, from - * most recent to oldest. Default value: **asc**. (optional) - * @param limit {@link Integer } Query: The number of items returned per page, maximum of 100 - * items. By default, the response returns 10 items per page. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TransactionSearchResponse } - * @throws ApiException if fails to make API call - */ - public TransactionSearchResponse getAllTransactions( - String balancePlatform, - String paymentInstrumentId, - String accountHolderId, - String balanceAccountId, - String cursor, - OffsetDateTime createdSince, - OffsetDateTime createdUntil, - String sortOrder, - Integer limit, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add query params - Map queryParams = new HashMap<>(); - if (balancePlatform != null) { - queryParams.put("balancePlatform", balancePlatform); - } - if (paymentInstrumentId != null) { - queryParams.put("paymentInstrumentId", paymentInstrumentId); + /** + * Transactions constructor in {@link com.adyen.service.transfers package}. + * @param client {@link Client } (required) + */ + public TransactionsApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/btl/v4"); } - if (accountHolderId != null) { - queryParams.put("accountHolderId", accountHolderId); - } - if (balanceAccountId != null) { - queryParams.put("balanceAccountId", balanceAccountId); - } - if (cursor != null) { - queryParams.put("cursor", cursor); - } - if (createdSince != null) { - queryParams.put("createdSince", createdSince.toString()); - } - if (createdUntil != null) { - queryParams.put("createdUntil", createdUntil.toString()); - } - if (sortOrder != null) { - queryParams.put("sortOrder", sortOrder); + + /** + * Transactions constructor in {@link com.adyen.service.transfers package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public TransactionsApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - if (limit != null) { - queryParams.put("limit", limit.toString()); + + /** + * Get all transactions + * + * @param createdSince {@link OffsetDateTime } Only include transactions that have been created on or after this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**. (required) + * @param createdUntil {@link OffsetDateTime } Only include transactions that have been created on or before this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**. (required) + * @return {@link TransactionSearchResponse } + * @throws ApiException if fails to make API call + */ + public TransactionSearchResponse getAllTransactions(OffsetDateTime createdSince, OffsetDateTime createdUntil) throws ApiException, IOException { + return getAllTransactions(null, null, null, null, null, createdSince, createdUntil, null, null, null); } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/transactions", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); - return TransactionSearchResponse.fromJson(jsonResult); - } + /** + * Get all transactions + * + * @param balancePlatform {@link String } Query: The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id). Required if you don't provide a `balanceAccountId` or `accountHolderId`. (optional) + * @param paymentInstrumentId {@link String } Query: The unique identifier of the [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_). To use this parameter, you must also provide a `balanceAccountId`, `accountHolderId`, or `balancePlatform`. The `paymentInstrumentId` must be related to the `balanceAccountId` or `accountHolderId` that you provide. (optional) + * @param accountHolderId {@link String } Query: The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/accountHolders/{id}__queryParam_id). Required if you don't provide a `balanceAccountId` or `balancePlatform`. If you provide a `balanceAccountId`, the `accountHolderId` must be related to the `balanceAccountId`. (optional) + * @param balanceAccountId {@link String } Query: The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id). Required if you don't provide an `accountHolderId` or `balancePlatform`. If you provide an `accountHolderId`, the `balanceAccountId` must be related to the `accountHolderId`. (optional) + * @param cursor {@link String } Query: The `cursor` returned in the links of the previous response. (optional) + * @param createdSince {@link OffsetDateTime } Query: Only include transactions that have been created on or after this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**. (required) + * @param createdUntil {@link OffsetDateTime } Query: Only include transactions that have been created on or before this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**. (required) + * @param sortOrder {@link String } Query: Determines the sort order of the returned transactions. The sort order is based on the creation date of the transaction. Possible values: - **asc**: Ascending order, from oldest to most recent. - **desc**: Descending order, from most recent to oldest. Default value: **asc**. (optional) + * @param limit {@link Integer } Query: The number of items returned per page, maximum of 100 items. By default, the response returns 10 items per page. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TransactionSearchResponse } + * @throws ApiException if fails to make API call + */ + public TransactionSearchResponse getAllTransactions(String balancePlatform, String paymentInstrumentId, String accountHolderId, String balanceAccountId, String cursor, OffsetDateTime createdSince, OffsetDateTime createdUntil, String sortOrder, Integer limit, RequestOptions requestOptions) throws ApiException, IOException { + //Add query params + Map queryParams = new HashMap<>(); + if (balancePlatform != null) { + queryParams.put("balancePlatform", balancePlatform); + } + if (paymentInstrumentId != null) { + queryParams.put("paymentInstrumentId", paymentInstrumentId); + } + if (accountHolderId != null) { + queryParams.put("accountHolderId", accountHolderId); + } + if (balanceAccountId != null) { + queryParams.put("balanceAccountId", balanceAccountId); + } + if (cursor != null) { + queryParams.put("cursor", cursor); + } + if (createdSince != null) { + queryParams.put("createdSince", createdSince.toString()); + } + if (createdUntil != null) { + queryParams.put("createdUntil", createdUntil.toString()); + } + if (sortOrder != null) { + queryParams.put("sortOrder", sortOrder); + } + if (limit != null) { + queryParams.put("limit", limit.toString()); + } - /** - * Get a transaction - * - * @param id {@link String } The unique identifier of the transaction. (required) - * @return {@link Transaction } - * @throws ApiException if fails to make API call - */ - public Transaction getTransaction(String id) throws ApiException, IOException { - return getTransaction(id, null); - } + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/transactions", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); + return TransactionSearchResponse.fromJson(jsonResult); + } - /** - * Get a transaction - * - * @param id {@link String } The unique identifier of the transaction. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link Transaction } - * @throws ApiException if fails to make API call - */ - public Transaction getTransaction(String id, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + /** + * Get a transaction + * + * @param id {@link String } The unique identifier of the transaction. (required) + * @return {@link Transaction } + * @throws ApiException if fails to make API call + */ + public Transaction getTransaction(String id) throws ApiException, IOException { + return getTransaction(id, null); } - pathParams.put("id", id); - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/transactions/{id}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return Transaction.fromJson(jsonResult); - } + /** + * Get a transaction + * + * @param id {@link String } The unique identifier of the transaction. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link Transaction } + * @throws ApiException if fails to make API call + */ + public Transaction getTransaction(String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/transactions/{id}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return Transaction.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/transfers/TransfersApi.java b/src/main/java/com/adyen/service/transfers/TransfersApi.java index 8b71f26d6..b87c6233c 100644 --- a/src/main/java/com/adyen/service/transfers/TransfersApi.java +++ b/src/main/java/com/adyen/service/transfers/TransfersApi.java @@ -2,7 +2,7 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,342 +14,261 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.RequestOptions; import com.adyen.model.transfers.ApproveTransfersRequest; import com.adyen.model.transfers.CancelTransfersRequest; import com.adyen.model.transfers.FindTransfersResponse; +import java.time.OffsetDateTime; import com.adyen.model.transfers.ReturnTransferRequest; import com.adyen.model.transfers.ReturnTransferResponse; +import com.adyen.model.transfers.ServiceError; import com.adyen.model.transfers.Transfer; import com.adyen.model.transfers.TransferData; import com.adyen.model.transfers.TransferInfo; +import com.adyen.model.transfers.TransferServiceRestServiceError; +import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; + import java.io.IOException; -import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; public class TransfersApi extends Service { - public static final String API_VERSION = "4"; - - protected String baseURL; - - /** - * Transfers constructor in {@link com.adyen.service.transfers package}. - * - * @param client {@link Client } (required) - */ - public TransfersApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/btl/v4"); - } + public static final String API_VERSION = "4"; - /** - * Transfers constructor in {@link com.adyen.service.transfers package}. Please use this - * constructor only if you would like to pass along your own url for routing or testing purposes. - * The latest API version is defined in this class as a constant. - * - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public TransfersApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + protected String baseURL; - /** - * Approve initiated transfers - * - * @param approveTransfersRequest {@link ApproveTransfersRequest } (required) - * @throws ApiException if fails to make API call - */ - public void approveInitiatedTransfers(ApproveTransfersRequest approveTransfersRequest) - throws ApiException, IOException { - approveInitiatedTransfers(approveTransfersRequest, null); - } - - /** - * Approve initiated transfers - * - * @param approveTransfersRequest {@link ApproveTransfersRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void approveInitiatedTransfers( - ApproveTransfersRequest approveTransfersRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = approveTransfersRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/transfers/approve", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - } - - /** - * Cancel initiated transfers - * - * @param cancelTransfersRequest {@link CancelTransfersRequest } (required) - * @throws ApiException if fails to make API call - */ - public void cancelInitiatedTransfers(CancelTransfersRequest cancelTransfersRequest) - throws ApiException, IOException { - cancelInitiatedTransfers(cancelTransfersRequest, null); - } - - /** - * Cancel initiated transfers - * - * @param cancelTransfersRequest {@link CancelTransfersRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void cancelInitiatedTransfers( - CancelTransfersRequest cancelTransfersRequest, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = cancelTransfersRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/transfers/cancel", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - } - - /** - * Get all transfers - * - * @param createdSince {@link OffsetDateTime } Only include transfers that have been created on or - * after this point in time. The value must be in ISO 8601 format and not earlier than 6 - * months before the `createdUntil` date. For example, **2021-05-30T15:07:40Z**. - * (required) - * @param createdUntil {@link OffsetDateTime } Only include transfers that have been created on or - * before this point in time. The value must be in ISO 8601 format and not later than 6 months - * after the `createdSince` date. For example, **2021-05-30T15:07:40Z**. (required) - * @return {@link FindTransfersResponse } - * @throws ApiException if fails to make API call - */ - public FindTransfersResponse getAllTransfers( - OffsetDateTime createdSince, OffsetDateTime createdUntil) throws ApiException, IOException { - return getAllTransfers( - null, null, null, null, null, null, createdSince, createdUntil, null, null, null, null); - } - - /** - * Get all transfers - * - * @param balancePlatform {@link String } Query: The unique identifier of the [balance - * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id). - * Required if you don't provide a `balanceAccountId` or - * `accountHolderId`. (optional) - * @param accountHolderId {@link String } Query: The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/accountHolders/{id}__queryParam_id). - * Required if you don't provide a `balanceAccountId` or - * `balancePlatform`. If you provide a `balanceAccountId`, the - * `accountHolderId` must be related to the `balanceAccountId`. (optional) - * @param balanceAccountId {@link String } Query: The unique identifier of the [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id). - * Required if you don't provide an `accountHolderId` or - * `balancePlatform`. If you provide an `accountHolderId`, the - * `balanceAccountId` must be related to the `accountHolderId`. (optional) - * @param paymentInstrumentId {@link String } Query: The unique identifier of the [payment - * instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_). - * To use this parameter, you must also provide a `balanceAccountId`, - * `accountHolderId`, or `balancePlatform`. The - * `paymentInstrumentId` must be related to the `balanceAccountId` or - * `accountHolderId` that you provide. (optional) - * @param reference {@link String } Query: The reference you provided in the POST - * [/transfers](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers) request - * (optional) - * @param category {@link String } Query: The type of transfer. Possible values: - **bank**: - * Transfer to a [transfer - * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) - * or a bank account. - **internal**: Transfer to another [balance - * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) - * within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - - * **platformPayment**: Fund movements related to payments that are acquired for your users. - * (optional) - * @param createdSince {@link OffsetDateTime } Query: Only include transfers that have been - * created on or after this point in time. The value must be in ISO 8601 format and not - * earlier than 6 months before the `createdUntil` date. For example, - * **2021-05-30T15:07:40Z**. (required) - * @param createdUntil {@link OffsetDateTime } Query: Only include transfers that have been - * created on or before this point in time. The value must be in ISO 8601 format and not later - * than 6 months after the `createdSince` date. For example, - * **2021-05-30T15:07:40Z**. (required) - * @param sortOrder {@link String } Query: Determines the sort order of the returned transfers. - * The sort order is based on the creation date of the transfers. Possible values: - **asc**: - * Ascending order, from oldest to most recent. - **desc**: Descending order, from most recent - * to oldest. Default value: **asc**. (optional) - * @param cursor {@link String } Query: The `cursor` returned in the links of the - * previous response. (optional) - * @param limit {@link Integer } Query: The number of items returned per page, maximum of 100 - * items. By default, the response returns 10 items per page. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link FindTransfersResponse } - * @throws ApiException if fails to make API call - */ - public FindTransfersResponse getAllTransfers( - String balancePlatform, - String accountHolderId, - String balanceAccountId, - String paymentInstrumentId, - String reference, - String category, - OffsetDateTime createdSince, - OffsetDateTime createdUntil, - String sortOrder, - String cursor, - Integer limit, - RequestOptions requestOptions) - throws ApiException, IOException { - // Add query params - Map queryParams = new HashMap<>(); - if (balancePlatform != null) { - queryParams.put("balancePlatform", balancePlatform); - } - if (accountHolderId != null) { - queryParams.put("accountHolderId", accountHolderId); - } - if (balanceAccountId != null) { - queryParams.put("balanceAccountId", balanceAccountId); - } - if (paymentInstrumentId != null) { - queryParams.put("paymentInstrumentId", paymentInstrumentId); + /** + * Transfers constructor in {@link com.adyen.service.transfers package}. + * @param client {@link Client } (required) + */ + public TransfersApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/btl/v4"); } - if (reference != null) { - queryParams.put("reference", reference); - } - if (category != null) { - queryParams.put("category", category); + + /** + * Transfers constructor in {@link com.adyen.service.transfers package}. + * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public TransfersApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; } - if (createdSince != null) { - queryParams.put("createdSince", createdSince.toString()); + + /** + * Approve initiated transfers + * + * @param approveTransfersRequest {@link ApproveTransfersRequest } (required) + * @throws ApiException if fails to make API call + */ + public void approveInitiatedTransfers(ApproveTransfersRequest approveTransfersRequest) throws ApiException, IOException { + approveInitiatedTransfers(approveTransfersRequest, null); } - if (createdUntil != null) { - queryParams.put("createdUntil", createdUntil.toString()); + + /** + * Approve initiated transfers + * + * @param approveTransfersRequest {@link ApproveTransfersRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void approveInitiatedTransfers(ApproveTransfersRequest approveTransfersRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = approveTransfersRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/transfers/approve", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); } - if (sortOrder != null) { - queryParams.put("sortOrder", sortOrder); + + /** + * Cancel initiated transfers + * + * @param cancelTransfersRequest {@link CancelTransfersRequest } (required) + * @throws ApiException if fails to make API call + */ + public void cancelInitiatedTransfers(CancelTransfersRequest cancelTransfersRequest) throws ApiException, IOException { + cancelInitiatedTransfers(cancelTransfersRequest, null); } - if (cursor != null) { - queryParams.put("cursor", cursor); + + /** + * Cancel initiated transfers + * + * @param cancelTransfersRequest {@link CancelTransfersRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void cancelInitiatedTransfers(CancelTransfersRequest cancelTransfersRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = cancelTransfersRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/transfers/cancel", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); } - if (limit != null) { - queryParams.put("limit", limit.toString()); + + /** + * Get all transfers + * + * @param createdSince {@link OffsetDateTime } Only include transfers that have been created on or after this point in time. The value must be in ISO 8601 format and not earlier than 6 months before the `createdUntil` date. For example, **2021-05-30T15:07:40Z**. (required) + * @param createdUntil {@link OffsetDateTime } Only include transfers that have been created on or before this point in time. The value must be in ISO 8601 format and not later than 6 months after the `createdSince` date. For example, **2021-05-30T15:07:40Z**. (required) + * @return {@link FindTransfersResponse } + * @throws ApiException if fails to make API call + */ + public FindTransfersResponse getAllTransfers(OffsetDateTime createdSince, OffsetDateTime createdUntil) throws ApiException, IOException { + return getAllTransfers(null, null, null, null, null, null, createdSince, createdUntil, null, null, null, null); } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/transfers", null); - String jsonResult = - resource.request( - requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); - return FindTransfersResponse.fromJson(jsonResult); - } + /** + * Get all transfers + * + * @param balancePlatform {@link String } Query: The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id). Required if you don't provide a `balanceAccountId` or `accountHolderId`. (optional) + * @param accountHolderId {@link String } Query: The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/accountHolders/{id}__queryParam_id). Required if you don't provide a `balanceAccountId` or `balancePlatform`. If you provide a `balanceAccountId`, the `accountHolderId` must be related to the `balanceAccountId`. (optional) + * @param balanceAccountId {@link String } Query: The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id). Required if you don't provide an `accountHolderId` or `balancePlatform`. If you provide an `accountHolderId`, the `balanceAccountId` must be related to the `accountHolderId`. (optional) + * @param paymentInstrumentId {@link String } Query: The unique identifier of the [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_). To use this parameter, you must also provide a `balanceAccountId`, `accountHolderId`, or `balancePlatform`. The `paymentInstrumentId` must be related to the `balanceAccountId` or `accountHolderId` that you provide. (optional) + * @param reference {@link String } Query: The reference you provided in the POST [/transfers](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers) request (optional) + * @param category {@link String } Query: The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users. (optional) + * @param createdSince {@link OffsetDateTime } Query: Only include transfers that have been created on or after this point in time. The value must be in ISO 8601 format and not earlier than 6 months before the `createdUntil` date. For example, **2021-05-30T15:07:40Z**. (required) + * @param createdUntil {@link OffsetDateTime } Query: Only include transfers that have been created on or before this point in time. The value must be in ISO 8601 format and not later than 6 months after the `createdSince` date. For example, **2021-05-30T15:07:40Z**. (required) + * @param sortOrder {@link String } Query: Determines the sort order of the returned transfers. The sort order is based on the creation date of the transfers. Possible values: - **asc**: Ascending order, from oldest to most recent. - **desc**: Descending order, from most recent to oldest. Default value: **asc**. (optional) + * @param cursor {@link String } Query: The `cursor` returned in the links of the previous response. (optional) + * @param limit {@link Integer } Query: The number of items returned per page, maximum of 100 items. By default, the response returns 10 items per page. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link FindTransfersResponse } + * @throws ApiException if fails to make API call + */ + public FindTransfersResponse getAllTransfers(String balancePlatform, String accountHolderId, String balanceAccountId, String paymentInstrumentId, String reference, String category, OffsetDateTime createdSince, OffsetDateTime createdUntil, String sortOrder, String cursor, Integer limit, RequestOptions requestOptions) throws ApiException, IOException { + //Add query params + Map queryParams = new HashMap<>(); + if (balancePlatform != null) { + queryParams.put("balancePlatform", balancePlatform); + } + if (accountHolderId != null) { + queryParams.put("accountHolderId", accountHolderId); + } + if (balanceAccountId != null) { + queryParams.put("balanceAccountId", balanceAccountId); + } + if (paymentInstrumentId != null) { + queryParams.put("paymentInstrumentId", paymentInstrumentId); + } + if (reference != null) { + queryParams.put("reference", reference); + } + if (category != null) { + queryParams.put("category", category); + } + if (createdSince != null) { + queryParams.put("createdSince", createdSince.toString()); + } + if (createdUntil != null) { + queryParams.put("createdUntil", createdUntil.toString()); + } + if (sortOrder != null) { + queryParams.put("sortOrder", sortOrder); + } + if (cursor != null) { + queryParams.put("cursor", cursor); + } + if (limit != null) { + queryParams.put("limit", limit.toString()); + } - /** - * Get a transfer - * - * @param id {@link String } Unique identifier of the transfer. (required) - * @return {@link TransferData } - * @throws ApiException if fails to make API call - */ - public TransferData getTransfer(String id) throws ApiException, IOException { - return getTransfer(id, null); - } + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/transfers", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); + return FindTransfersResponse.fromJson(jsonResult); + } - /** - * Get a transfer - * - * @param id {@link String } Unique identifier of the transfer. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link TransferData } - * @throws ApiException if fails to make API call - */ - public TransferData getTransfer(String id, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); + /** + * Get a transfer + * + * @param id {@link String } Unique identifier of the transfer. (required) + * @return {@link TransferData } + * @throws ApiException if fails to make API call + */ + public TransferData getTransfer(String id) throws ApiException, IOException { + return getTransfer(id, null); } - pathParams.put("id", id); - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/transfers/{id}", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TransferData.fromJson(jsonResult); - } + /** + * Get a transfer + * + * @param id {@link String } Unique identifier of the transfer. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link TransferData } + * @throws ApiException if fails to make API call + */ + public TransferData getTransfer(String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); - /** - * Return a transfer - * - * @param transferId {@link String } The unique identifier of the transfer to be returned. - * (required) - * @param returnTransferRequest {@link ReturnTransferRequest } (required) - * @return {@link ReturnTransferResponse } - * @throws ApiException if fails to make API call - */ - public ReturnTransferResponse returnTransfer( - String transferId, ReturnTransferRequest returnTransferRequest) - throws ApiException, IOException { - return returnTransfer(transferId, returnTransferRequest, null); - } + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/transfers/{id}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TransferData.fromJson(jsonResult); + } - /** - * Return a transfer - * - * @param transferId {@link String } The unique identifier of the transfer to be returned. - * (required) - * @param returnTransferRequest {@link ReturnTransferRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link ReturnTransferResponse } - * @throws ApiException if fails to make API call - */ - public ReturnTransferResponse returnTransfer( - String transferId, ReturnTransferRequest returnTransferRequest, RequestOptions requestOptions) - throws ApiException, IOException { - // Add path params - Map pathParams = new HashMap<>(); - if (transferId == null) { - throw new IllegalArgumentException("Please provide the transferId path parameter"); + /** + * Return a transfer + * + * @param transferId {@link String } The unique identifier of the transfer to be returned. (required) + * @param returnTransferRequest {@link ReturnTransferRequest } (required) + * @return {@link ReturnTransferResponse } + * @throws ApiException if fails to make API call + */ + public ReturnTransferResponse returnTransfer(String transferId, ReturnTransferRequest returnTransferRequest) throws ApiException, IOException { + return returnTransfer(transferId, returnTransferRequest, null); } - pathParams.put("transferId", transferId); - String requestBody = returnTransferRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/transfers/{transferId}/returns", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return ReturnTransferResponse.fromJson(jsonResult); - } + /** + * Return a transfer + * + * @param transferId {@link String } The unique identifier of the transfer to be returned. (required) + * @param returnTransferRequest {@link ReturnTransferRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ReturnTransferResponse } + * @throws ApiException if fails to make API call + */ + public ReturnTransferResponse returnTransfer(String transferId, ReturnTransferRequest returnTransferRequest, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (transferId == null) { + throw new IllegalArgumentException("Please provide the transferId path parameter"); + } + pathParams.put("transferId", transferId); + + String requestBody = returnTransferRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/transfers/{transferId}/returns", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return ReturnTransferResponse.fromJson(jsonResult); + } - /** - * Transfer funds - * - * @param transferInfo {@link TransferInfo } (required) - * @return {@link Transfer } - * @throws ApiException if fails to make API call - */ - public Transfer transferFunds(TransferInfo transferInfo) throws ApiException, IOException { - return transferFunds(transferInfo, null); - } + /** + * Transfer funds + * + * @param transferInfo {@link TransferInfo } (required) + * @return {@link Transfer } + * @throws ApiException if fails to make API call + */ + public Transfer transferFunds(TransferInfo transferInfo) throws ApiException, IOException { + return transferFunds(transferInfo, null); + } - /** - * Transfer funds - * - * @param transferInfo {@link TransferInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as - * idempotency-keys (optional) - * @return {@link Transfer } - * @throws ApiException if fails to make API call - */ - public Transfer transferFunds(TransferInfo transferInfo, RequestOptions requestOptions) - throws ApiException, IOException { - String requestBody = transferInfo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/transfers", null); - String jsonResult = - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return Transfer.fromJson(jsonResult); - } + /** + * Transfer funds + * + * @param transferInfo {@link TransferInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link Transfer } + * @throws ApiException if fails to make API call + */ + public Transfer transferFunds(TransferInfo transferInfo, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = transferInfo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/transfers", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return Transfer.fromJson(jsonResult); + } } From 5e219aa3a91306639bf887bd5fc04d863ca967cf Mon Sep 17 00:00:00 2001 From: AdyenAutomationBot Date: Wed, 27 Aug 2025 11:52:38 +0000 Subject: [PATCH 2/2] style(fmt): code formatted --- .../acswebhooks/AbstractOpenApiSchema.java | 246 +- .../model/acswebhooks/AcsWebhooksHandler.java | 142 +- .../com/adyen/model/acswebhooks/Amount.java | 86 +- .../acswebhooks/AuthenticationDecision.java | 88 +- .../model/acswebhooks/AuthenticationInfo.java | 499 +- .../AuthenticationNotificationData.java | 132 +- .../AuthenticationNotificationRequest.java | 114 +- .../BalancePlatformNotificationResponse.java | 81 +- .../model/acswebhooks/ChallengeInfo.java | 166 +- .../com/adyen/model/acswebhooks/JSON.java | 96 +- .../com/adyen/model/acswebhooks/Purchase.java | 57 +- .../adyen/model/acswebhooks/PurchaseInfo.java | 55 +- .../RelayedAuthenticationRequest.java | 163 +- .../RelayedAuthenticationResponse.java | 70 +- .../com/adyen/model/acswebhooks/Resource.java | 68 +- .../adyen/model/acswebhooks/ServiceError.java | 54 +- .../balancecontrol/AbstractOpenApiSchema.java | 246 +- .../adyen/model/balancecontrol/Amount.java | 86 +- .../BalanceTransferRequest.java | 158 +- .../BalanceTransferResponse.java | 217 +- .../com/adyen/model/balancecontrol/JSON.java | 96 +- .../AULocalAccountIdentification.java | 89 +- .../AbstractOpenApiSchema.java | 246 +- .../model/balanceplatform/AccountHolder.java | 384 +- .../AccountHolderCapability.java | 267 +- .../balanceplatform/AccountHolderInfo.java | 265 +- .../AccountHolderUpdateRequest.java | 358 +- .../AccountSupportingEntityCapability.java | 234 +- .../ActiveNetworkTokensRestriction.java | 60 +- .../AdditionalBankIdentification.java | 141 +- ...ditionalBankIdentificationRequirement.java | 190 +- .../adyen/model/balanceplatform/Address.java | 138 +- .../balanceplatform/AddressRequirement.java | 91 +- .../adyen/model/balanceplatform/Amount.java | 86 +- .../AmountMinMaxRequirement.java | 71 +- .../AmountNonZeroDecimalsRequirement.java | 98 +- ...ssociationDelegatedAuthenticationData.java | 74 +- .../AssociationFinaliseRequest.java | 128 +- .../AssociationFinaliseResponse.java | 80 +- .../AssociationInitiateRequest.java | 103 +- .../AssociationInitiateResponse.java | 59 +- .../model/balanceplatform/Authentication.java | 85 +- .../balanceplatform/AuthorisedCardUsers.java | 60 +- .../BRLocalAccountIdentification.java | 77 +- .../adyen/model/balanceplatform/Balance.java | 72 +- .../model/balanceplatform/BalanceAccount.java | 286 +- .../balanceplatform/BalanceAccountBase.java | 284 +- .../balanceplatform/BalanceAccountInfo.java | 252 +- .../BalanceAccountUpdateRequest.java | 234 +- .../balanceplatform/BalancePlatform.java | 66 +- .../BalanceSweepConfigurationsResponse.java | 71 +- .../BalanceWebhookSetting.java | 93 +- .../BalanceWebhookSettingInfo.java | 149 +- .../BalanceWebhookSettingInfoUpdate.java | 167 +- .../model/balanceplatform/BankAccount.java | 55 +- .../BankAccountAccountIdentification.java | 1782 +++--- .../balanceplatform/BankAccountDetails.java | 174 +- ...kAccountIdentificationTypeRequirement.java | 150 +- ...ccountIdentificationValidationRequest.java | 76 +- ...alidationRequestAccountIdentification.java | 1822 +++--- .../balanceplatform/BankAccountModel.java | 106 +- .../balanceplatform/BankIdentification.java | 103 +- .../BrandVariantsRestriction.java | 97 +- .../model/balanceplatform/BulkAddress.java | 113 +- .../CALocalAccountIdentification.java | 103 +- .../CZLocalAccountIdentification.java | 107 +- .../balanceplatform/CapabilityProblem.java | 57 +- .../CapabilityProblemEntity.java | 108 +- .../CapabilityProblemEntityRecursive.java | 112 +- .../balanceplatform/CapabilitySettings.java | 138 +- .../model/balanceplatform/CapitalBalance.java | 69 +- .../balanceplatform/CapitalGrantAccount.java | 73 +- .../com/adyen/model/balanceplatform/Card.java | 252 +- .../balanceplatform/CardConfiguration.java | 369 +- .../adyen/model/balanceplatform/CardInfo.java | 196 +- .../model/balanceplatform/CardOrder.java | 133 +- .../model/balanceplatform/CardOrderItem.java | 125 +- .../CardOrderItemDeliveryStatus.java | 71 +- .../model/balanceplatform/Condition.java | 154 +- .../model/balanceplatform/ContactDetails.java | 64 +- .../model/balanceplatform/Counterparty.java | 74 +- .../CounterpartyBankRestriction.java | 56 +- .../CounterpartyTypesRestriction.java | 68 +- .../balanceplatform/CountriesRestriction.java | 70 +- .../CreateSweepConfigurationV2.java | 534 +- .../DKLocalAccountIdentification.java | 83 +- .../balanceplatform/DayOfWeekRestriction.java | 83 +- .../DefaultErrorResponseEntity.java | 92 +- .../DelegatedAuthenticationData.java | 68 +- .../balanceplatform/DeliveryAddress.java | 159 +- .../balanceplatform/DeliveryContact.java | 105 +- .../adyen/model/balanceplatform/Device.java | 111 +- .../model/balanceplatform/DeviceInfo.java | 102 +- .../DifferentCurrenciesRestriction.java | 84 +- .../adyen/model/balanceplatform/Duration.java | 104 +- .../EntryModesRestriction.java | 83 +- .../adyen/model/balanceplatform/Expiry.java | 49 +- .../com/adyen/model/balanceplatform/Fee.java | 51 +- .../GetNetworkTokenResponse.java | 54 +- .../balanceplatform/GetTaxFormResponse.java | 77 +- .../model/balanceplatform/GrantLimit.java | 51 +- .../model/balanceplatform/GrantOffer.java | 113 +- .../model/balanceplatform/GrantOffers.java | 49 +- .../HKLocalAccountIdentification.java | 89 +- .../HULocalAccountIdentification.java | 68 +- .../com/adyen/model/balanceplatform/Href.java | 50 +- .../IbanAccountIdentification.java | 86 +- .../IbanAccountIdentificationRequirement.java | 110 +- .../InternationalTransactionRestriction.java | 84 +- .../model/balanceplatform/InvalidField.java | 48 +- .../com/adyen/model/balanceplatform/JSON.java | 96 +- .../com/adyen/model/balanceplatform/Link.java | 85 +- .../ListNetworkTokensResponse.java | 55 +- .../MatchingTransactionsRestriction.java | 60 +- .../MatchingValuesRestriction.java | 74 +- .../balanceplatform/MccsRestriction.java | 54 +- .../balanceplatform/MerchantAcquirerPair.java | 48 +- .../MerchantNamesRestriction.java | 62 +- .../balanceplatform/MerchantsRestriction.java | 53 +- .../NOLocalAccountIdentification.java | 68 +- .../NZLocalAccountIdentification.java | 92 +- .../com/adyen/model/balanceplatform/Name.java | 50 +- .../model/balanceplatform/NetworkToken.java | 180 +- .../NetworkTokenActivationDataRequest.java | 95 +- .../NetworkTokenActivationDataResponse.java | 98 +- .../NetworkTokenRequestor.java | 48 +- .../NumberAndBicAccountIdentification.java | 129 +- .../PLLocalAccountIdentification.java | 92 +- .../PaginatedAccountHoldersResponse.java | 71 +- .../PaginatedBalanceAccountsResponse.java | 77 +- .../PaginatedGetCardOrderItemResponse.java | 71 +- .../PaginatedGetCardOrderResponse.java | 68 +- .../PaginatedPaymentInstrumentsResponse.java | 78 +- .../balanceplatform/PaymentInstrument.java | 431 +- ...tionalBankAccountIdentificationsInner.java | 348 +- .../PaymentInstrumentGroup.java | 88 +- .../PaymentInstrumentGroupInfo.java | 88 +- .../PaymentInstrumentInfo.java | 342 +- .../PaymentInstrumentRequirement.java | 200 +- .../PaymentInstrumentRevealInfo.java | 61 +- .../PaymentInstrumentRevealRequest.java | 107 +- .../PaymentInstrumentRevealResponse.java | 56 +- .../PaymentInstrumentUpdateRequest.java | 247 +- .../adyen/model/balanceplatform/Phone.java | 99 +- .../model/balanceplatform/PhoneNumber.java | 101 +- .../balanceplatform/PinChangeRequest.java | 106 +- .../balanceplatform/PinChangeResponse.java | 78 +- .../PlatformPaymentConfiguration.java | 106 +- .../ProcessingTypesRestriction.java | 86 +- .../balanceplatform/PublicKeyResponse.java | 49 +- .../RegisterSCAFinalResponse.java | 50 +- .../balanceplatform/RegisterSCARequest.java | 106 +- .../balanceplatform/RegisterSCAResponse.java | 85 +- .../balanceplatform/RemediatingAction.java | 50 +- .../model/balanceplatform/Repayment.java | 80 +- .../model/balanceplatform/RepaymentTerm.java | 63 +- .../balanceplatform/RestServiceError.java | 107 +- .../balanceplatform/RevealPinRequest.java | 91 +- .../balanceplatform/RevealPinResponse.java | 54 +- .../model/balanceplatform/RiskScores.java | 86 +- .../RiskScoresRestriction.java | 55 +- .../SELocalAccountIdentification.java | 119 +- .../SGLocalAccountIdentification.java | 71 +- .../SameAmountRestriction.java | 54 +- .../SameCounterpartyRestriction.java | 57 +- .../SearchRegisteredDevicesResponse.java | 84 +- .../model/balanceplatform/SettingType.java | 16 +- .../SourceAccountTypesRestriction.java | 74 +- .../model/balanceplatform/StringMatch.java | 84 +- .../balanceplatform/SweepConfigurationV2.java | 538 +- .../balanceplatform/SweepCounterparty.java | 172 +- .../model/balanceplatform/SweepSchedule.java | 162 +- .../adyen/model/balanceplatform/Target.java | 122 +- .../model/balanceplatform/TargetUpdate.java | 122 +- .../balanceplatform/ThresholdRepayment.java | 54 +- .../model/balanceplatform/TimeOfDay.java | 86 +- .../balanceplatform/TimeOfDayRestriction.java | 55 +- .../TokenRequestorsRestriction.java | 61 +- .../TotalAmountRestriction.java | 55 +- .../balanceplatform/TransactionRule.java | 436 +- .../TransactionRuleEntityKey.java | 72 +- .../balanceplatform/TransactionRuleInfo.java | 435 +- .../TransactionRuleInterval.java | 264 +- .../TransactionRuleResponse.java | 54 +- .../TransactionRuleRestrictions.java | 420 +- .../TransactionRulesResponse.java | 55 +- .../model/balanceplatform/TransferRoute.java | 242 +- .../balanceplatform/TransferRouteRequest.java | 265 +- .../TransferRouteRequirementsInner.java | 1211 ++-- .../TransferRouteResponse.java | 70 +- .../UKLocalAccountIdentification.java | 89 +- .../USInstantPayoutAddressRequirement.java | 95 +- .../USInternationalAchAddressRequirement.java | 95 +- ...USInternationalAchPriorityRequirement.java | 95 +- .../USLocalAccountIdentification.java | 121 +- .../UpdateNetworkTokenRequest.java | 84 +- .../UpdatePaymentInstrument.java | 435 +- .../UpdateSweepConfigurationV2.java | 541 +- .../balanceplatform/VerificationDeadline.java | 115 +- .../balanceplatform/VerificationError.java | 147 +- .../VerificationErrorRecursive.java | 151 +- ...WalletProviderAccountScoreRestriction.java | 66 +- .../WalletProviderDeviceScore.java | 57 +- .../WalletProviderDeviceType.java | 74 +- .../model/balanceplatform/WebhookSetting.java | 110 +- .../balanceplatform/WebhookSettings.java | 49 +- .../AbstractOpenApiSchema.java | 246 +- ...anceAccountBalanceNotificationRequest.java | 114 +- .../BalanceNotificationData.java | 119 +- .../BalancePlatformNotificationResponse.java | 81 +- .../BalanceWebhooksHandler.java | 99 +- .../adyen/model/balancewebhooks/Balances.java | 51 +- .../com/adyen/model/balancewebhooks/JSON.java | 96 +- .../binlookup/AbstractOpenApiSchema.java | 246 +- .../com/adyen/model/binlookup/Amount.java | 86 +- .../com/adyen/model/binlookup/BinDetail.java | 44 +- .../com/adyen/model/binlookup/CardBin.java | 208 +- .../binlookup/CostEstimateAssumptions.java | 68 +- .../model/binlookup/CostEstimateRequest.java | 345 +- .../model/binlookup/CostEstimateResponse.java | 72 +- .../model/binlookup/DSPublicKeyDetail.java | 112 +- .../java/com/adyen/model/binlookup/JSON.java | 96 +- .../model/binlookup/MerchantDetails.java | 105 +- .../com/adyen/model/binlookup/Recurring.java | 173 +- .../adyen/model/binlookup/ServiceError.java | 82 +- .../binlookup/ThreeDS2CardRangeDetail.java | 109 +- .../binlookup/ThreeDSAvailabilityRequest.java | 113 +- .../ThreeDSAvailabilityResponse.java | 90 +- .../model/checkout/AbstractOpenApiSchema.java | 246 +- .../com/adyen/model/checkout/AccountInfo.java | 475 +- .../com/adyen/model/checkout/AcctInfo.java | 560 +- .../com/adyen/model/checkout/AchDetails.java | 313 +- .../checkout/AdditionalData3DSecure.java | 371 +- .../model/checkout/AdditionalDataAirline.java | 1012 +++- .../checkout/AdditionalDataCarRental.java | 749 ++- .../model/checkout/AdditionalDataCommon.java | 858 ++- .../model/checkout/AdditionalDataLevel23.java | 882 ++- .../model/checkout/AdditionalDataLodging.java | 555 +- .../checkout/AdditionalDataOpenInvoice.java | 595 +- .../model/checkout/AdditionalDataOpi.java | 81 +- .../model/checkout/AdditionalDataRatepay.java | 137 +- .../model/checkout/AdditionalDataRetry.java | 182 +- .../model/checkout/AdditionalDataRisk.java | 587 +- .../AdditionalDataRiskStandalone.java | 249 +- .../checkout/AdditionalDataSubMerchant.java | 533 +- .../AdditionalDataTemporaryServices.java | 359 +- .../model/checkout/AdditionalDataWallets.java | 76 +- .../com/adyen/model/checkout/Address.java | 138 +- .../adyen/model/checkout/AffirmDetails.java | 62 +- .../adyen/model/checkout/AfterpayDetails.java | 138 +- .../java/com/adyen/model/checkout/Agency.java | 86 +- .../com/adyen/model/checkout/Airline.java | 353 +- .../model/checkout/AmazonPayDetails.java | 119 +- .../java/com/adyen/model/checkout/Amount.java | 86 +- .../com/adyen/model/checkout/Amounts.java | 90 +- .../com/adyen/model/checkout/AncvDetails.java | 126 +- .../model/checkout/AndroidPayDetails.java | 62 +- .../adyen/model/checkout/ApplePayDetails.java | 185 +- .../model/checkout/ApplePayDonations.java | 185 +- .../checkout/ApplePaySessionRequest.java | 129 +- .../checkout/ApplePaySessionResponse.java | 65 +- .../adyen/model/checkout/ApplicationInfo.java | 116 +- .../model/checkout/AuthenticationData.java | 154 +- .../checkout/BacsDirectDebitDetails.java | 168 +- .../model/checkout/BalanceCheckRequest.java | 1294 +++-- .../model/checkout/BalanceCheckResponse.java | 223 +- .../adyen/model/checkout/BillDeskDetails.java | 65 +- .../adyen/model/checkout/BillingAddress.java | 138 +- .../com/adyen/model/checkout/BlikDetails.java | 126 +- .../com/adyen/model/checkout/BrowserInfo.java | 155 +- .../model/checkout/CancelOrderRequest.java | 55 +- .../model/checkout/CancelOrderResponse.java | 82 +- .../model/checkout/CardBrandDetails.java | 50 +- .../com/adyen/model/checkout/CardDetails.java | 480 +- .../model/checkout/CardDetailsRequest.java | 170 +- .../model/checkout/CardDetailsResponse.java | 99 +- .../adyen/model/checkout/CardDonations.java | 480 +- .../adyen/model/checkout/CashAppDetails.java | 150 +- .../model/checkout/CellulantDetails.java | 65 +- .../model/checkout/CheckoutAwaitAction.java | 71 +- .../model/checkout/CheckoutBankAccount.java | 224 +- .../checkout/CheckoutBankTransferAction.java | 123 +- ...CheckoutDelegatedAuthenticationAction.java | 103 +- .../CheckoutNativeRedirectAction.java | 107 +- .../model/checkout/CheckoutOrderResponse.java | 73 +- .../model/checkout/CheckoutPaymentMethod.java | 4976 +++++++++-------- .../model/checkout/CheckoutQrCodeAction.java | 77 +- .../checkout/CheckoutRedirectAction.java | 83 +- .../model/checkout/CheckoutSDKAction.java | 71 +- .../CheckoutSessionInstallmentOption.java | 131 +- .../CheckoutSessionThreeDS2RequestData.java | 160 +- .../checkout/CheckoutThreeDS2Action.java | 83 +- .../model/checkout/CheckoutVoucherAction.java | 207 +- .../com/adyen/model/checkout/CommonField.java | 50 +- .../com/adyen/model/checkout/Company.java | 57 +- .../CreateCheckoutSessionRequest.java | 1782 ++++-- .../CreateCheckoutSessionResponse.java | 2014 +++++-- .../model/checkout/CreateOrderRequest.java | 94 +- .../model/checkout/CreateOrderResponse.java | 218 +- .../checkout/DefaultErrorResponseEntity.java | 92 +- .../adyen/model/checkout/DeliveryAddress.java | 159 +- .../adyen/model/checkout/DeliveryMethod.java | 96 +- .../DetailsRequestAuthenticationData.java | 89 +- .../model/checkout/DeviceRenderOptions.java | 96 +- .../com/adyen/model/checkout/DokuDetails.java | 71 +- .../com/adyen/model/checkout/Donation.java | 184 +- .../model/checkout/DonationCampaign.java | 116 +- .../checkout/DonationCampaignsRequest.java | 72 +- .../checkout/DonationCampaignsResponse.java | 58 +- .../model/checkout/DonationPaymentMethod.java | 681 ++- .../checkout/DonationPaymentRequest.java | 1220 ++-- .../checkout/DonationPaymentResponse.java | 174 +- .../model/checkout/DragonpayDetails.java | 86 +- .../checkout/EBankingFinlandDetails.java | 68 +- .../checkout/EcontextVoucherDetails.java | 104 +- .../com/adyen/model/checkout/EftDetails.java | 202 +- .../model/checkout/EncryptedOrderData.java | 48 +- .../model/checkout/EnhancedSchemeData.java | 54 +- .../model/checkout/ExternalPlatform.java | 48 +- .../adyen/model/checkout/FastlaneDetails.java | 126 +- .../com/adyen/model/checkout/ForexQuote.java | 116 +- .../model/checkout/FraudCheckResult.java | 48 +- .../com/adyen/model/checkout/FraudResult.java | 55 +- .../com/adyen/model/checkout/FundOrigin.java | 71 +- .../adyen/model/checkout/FundRecipient.java | 204 +- .../GenericIssuerPaymentMethodDetails.java | 157 +- .../model/checkout/GooglePayDetails.java | 224 +- .../model/checkout/GooglePayDonations.java | 228 +- .../adyen/model/checkout/IdealDetails.java | 144 +- .../adyen/model/checkout/IdealDonations.java | 144 +- .../com/adyen/model/checkout/InputDetail.java | 91 +- .../model/checkout/InstallmentOption.java | 104 +- .../adyen/model/checkout/Installments.java | 157 +- .../adyen/model/checkout/InvalidField.java | 48 +- .../java/com/adyen/model/checkout/Item.java | 49 +- .../java/com/adyen/model/checkout/JSON.java | 96 +- .../adyen/model/checkout/KlarnaDetails.java | 142 +- .../java/com/adyen/model/checkout/Leg.java | 318 +- .../com/adyen/model/checkout/LineItem.java | 126 +- .../ListStoredPaymentMethodsResponse.java | 106 +- .../com/adyen/model/checkout/Mandate.java | 228 +- .../model/checkout/MasterpassDetails.java | 105 +- .../adyen/model/checkout/MbwayDetails.java | 88 +- .../adyen/model/checkout/MerchantDevice.java | 48 +- .../model/checkout/MerchantRiskIndicator.java | 323 +- .../model/checkout/MobilePayDetails.java | 62 +- .../adyen/model/checkout/MolPayDetails.java | 74 +- .../java/com/adyen/model/checkout/Name.java | 50 +- .../model/checkout/OpenInvoiceDetails.java | 142 +- .../com/adyen/model/checkout/Passenger.java | 152 +- .../PayByBankAISDirectDebitDetails.java | 143 +- .../model/checkout/PayByBankDetails.java | 65 +- .../adyen/model/checkout/PayPalDetails.java | 159 +- .../adyen/model/checkout/PayPayDetails.java | 120 +- .../adyen/model/checkout/PayToDetails.java | 143 +- .../model/checkout/PayToPaymentMethod.java | 77 +- .../adyen/model/checkout/PayUUpiDetails.java | 164 +- .../model/checkout/PayWithGoogleDetails.java | 208 +- .../checkout/PayWithGoogleDonations.java | 208 +- .../com/adyen/model/checkout/Payment.java | 134 +- .../checkout/PaymentAmountUpdateRequest.java | 196 +- .../checkout/PaymentAmountUpdateResponse.java | 236 +- .../model/checkout/PaymentCancelRequest.java | 68 +- .../model/checkout/PaymentCancelResponse.java | 102 +- .../model/checkout/PaymentCaptureRequest.java | 183 +- .../checkout/PaymentCaptureResponse.java | 214 +- .../checkout/PaymentCompletionDetails.java | 251 +- .../adyen/model/checkout/PaymentDetails.java | 62 +- .../model/checkout/PaymentDetailsRequest.java | 170 +- .../checkout/PaymentDetailsResponse.java | 490 +- .../PaymentDetailsResponseAction.java | 323 +- .../model/checkout/PaymentLinkRequest.java | 1147 +++- .../model/checkout/PaymentLinkResponse.java | 1244 +++-- .../adyen/model/checkout/PaymentMethod.java | 137 +- .../model/checkout/PaymentMethodGroup.java | 60 +- .../model/checkout/PaymentMethodIssuer.java | 69 +- .../model/checkout/PaymentMethodToStore.java | 180 +- .../model/checkout/PaymentMethodUPIApps.java | 53 +- .../model/checkout/PaymentMethodsRequest.java | 579 +- .../checkout/PaymentMethodsResponse.java | 64 +- .../model/checkout/PaymentRefundRequest.java | 263 +- .../model/checkout/PaymentRefundResponse.java | 277 +- .../adyen/model/checkout/PaymentRequest.java | 1918 +++++-- .../adyen/model/checkout/PaymentResponse.java | 525 +- .../model/checkout/PaymentResponseAction.java | 1061 ++-- .../checkout/PaymentReversalRequest.java | 68 +- .../checkout/PaymentReversalResponse.java | 102 +- .../checkout/PaypalUpdateOrderRequest.java | 109 +- .../checkout/PaypalUpdateOrderResponse.java | 85 +- .../java/com/adyen/model/checkout/Phone.java | 61 +- .../com/adyen/model/checkout/PixDetails.java | 133 +- .../adyen/model/checkout/PixRecurring.java | 220 +- .../checkout/PlatformChargebackLogic.java | 131 +- .../com/adyen/model/checkout/PseDetails.java | 77 +- .../model/checkout/RakutenPayDetails.java | 120 +- .../adyen/model/checkout/RatepayDetails.java | 138 +- .../com/adyen/model/checkout/Recurring.java | 173 +- .../ResponseAdditionalData3DSecure.java | 157 +- .../ResponseAdditionalDataBillingAddress.java | 193 +- .../checkout/ResponseAdditionalDataCard.java | 289 +- .../ResponseAdditionalDataCommon.java | 1518 +++-- .../ResponseAdditionalDataDomesticError.java | 110 +- .../ResponseAdditionalDataInstallments.java | 504 +- .../ResponseAdditionalDataNetworkTokens.java | 110 +- .../checkout/ResponseAdditionalDataOpi.java | 86 +- .../checkout/ResponseAdditionalDataSepa.java | 146 +- .../checkout/ResponseAdditionalDataSwish.java | 50 +- .../model/checkout/ResponsePaymentMethod.java | 66 +- .../java/com/adyen/model/checkout/Result.java | 20 +- .../com/adyen/model/checkout/RiskData.java | 100 +- .../adyen/model/checkout/RivertyDetails.java | 183 +- .../adyen/model/checkout/SDKEphemPubKey.java | 51 +- .../model/checkout/SamsungPayDetails.java | 167 +- .../checkout/SepaDirectDebitDetails.java | 164 +- .../adyen/model/checkout/ServiceError.java | 82 +- .../model/checkout/SessionResultResponse.java | 193 +- .../checkout/ShopperIdPaymentMethod.java | 71 +- .../checkout/ShopperInteractionDevice.java | 54 +- .../java/com/adyen/model/checkout/Split.java | 337 +- .../com/adyen/model/checkout/SplitAmount.java | 92 +- .../StandalonePaymentCancelRequest.java | 120 +- .../StandalonePaymentCancelResponse.java | 119 +- .../model/checkout/StoredPaymentMethod.java | 208 +- .../checkout/StoredPaymentMethodDetails.java | 128 +- .../checkout/StoredPaymentMethodRequest.java | 208 +- .../checkout/StoredPaymentMethodResource.java | 293 +- .../adyen/model/checkout/SubInputDetail.java | 62 +- .../com/adyen/model/checkout/SubMerchant.java | 156 +- .../adyen/model/checkout/SubMerchantInfo.java | 245 +- .../com/adyen/model/checkout/Surcharge.java | 89 +- .../com/adyen/model/checkout/TaxTotal.java | 51 +- .../model/checkout/ThreeDS2RequestData.java | 1063 ++-- .../model/checkout/ThreeDS2RequestFields.java | 964 +++- .../model/checkout/ThreeDS2ResponseData.java | 242 +- .../adyen/model/checkout/ThreeDS2Result.java | 340 +- .../model/checkout/ThreeDSRequestData.java | 220 +- .../ThreeDSRequestorAuthenticationInfo.java | 181 +- ...reeDSRequestorPriorAuthenticationInfo.java | 213 +- .../model/checkout/ThreeDSecureData.java | 288 +- .../java/com/adyen/model/checkout/Ticket.java | 107 +- .../adyen/model/checkout/TravelAgency.java | 95 +- .../adyen/model/checkout/TwintDetails.java | 126 +- .../model/checkout/UPIPaymentMethod.java | 78 +- .../checkout/UpdatePaymentLinkRequest.java | 67 +- .../model/checkout/UpiCollectDetails.java | 193 +- .../model/checkout/UpiIntentDetails.java | 160 +- .../adyen/model/checkout/UtilityRequest.java | 48 +- .../adyen/model/checkout/UtilityResponse.java | 66 +- .../checkout/ValidateShopperIdRequest.java | 94 +- .../checkout/ValidateShopperIdResponse.java | 58 +- .../adyen/model/checkout/VippsDetails.java | 136 +- .../model/checkout/VisaCheckoutDetails.java | 125 +- .../model/checkout/WeChatPayDetails.java | 62 +- .../checkout/WeChatPayMiniProgramDetails.java | 86 +- .../com/adyen/model/checkout/ZipDetails.java | 144 +- .../AbstractOpenApiSchema.java | 246 +- .../configurationwebhooks/AccountHolder.java | 393 +- .../AccountHolderCapability.java | 313 +- .../AccountHolderNotificationData.java | 64 +- .../AccountHolderNotificationRequest.java | 111 +- .../AccountSupportingEntityCapability.java | 286 +- .../model/configurationwebhooks/Address.java | 138 +- .../model/configurationwebhooks/Amount.java | 86 +- .../configurationwebhooks/Authentication.java | 85 +- .../model/configurationwebhooks/Balance.java | 72 +- .../configurationwebhooks/BalanceAccount.java | 288 +- .../BalanceAccountNotificationData.java | 67 +- .../BalanceAccountNotificationRequest.java | 117 +- .../BalancePlatformNotificationResponse.java | 81 +- .../BankAccountDetails.java | 174 +- .../BankScoreSignalTriggeredData.java | 134 +- .../configurationwebhooks/BulkAddress.java | 113 +- .../CapabilityProblem.java | 57 +- .../CapabilityProblemEntity.java | 108 +- .../CapabilityProblemEntityRecursive.java | 112 +- .../CapabilitySettings.java | 138 +- .../model/configurationwebhooks/Card.java | 259 +- .../CardConfiguration.java | 369 +- .../configurationwebhooks/CardOrderItem.java | 119 +- .../CardOrderItemDeliveryStatus.java | 71 +- .../CardOrderNotificationRequest.java | 96 +- .../ConfigurationWebhooksHandler.java | 336 +- .../configurationwebhooks/ContactDetails.java | 64 +- .../DeliveryAddress.java | 159 +- .../DeliveryContact.java | 105 +- .../model/configurationwebhooks/Device.java | 68 +- .../model/configurationwebhooks/Expiry.java | 49 +- .../IbanAccountIdentification.java | 86 +- .../model/configurationwebhooks/JSON.java | 96 +- .../model/configurationwebhooks/Name.java | 50 +- .../NetworkTokenNotificationDataV2.java | 270 +- .../NetworkTokenNotificationRequest.java | 111 +- .../NetworkTokenRequestor.java | 48 +- .../NetworkTokenRiskRuleData.java | 60 +- .../NetworkTokenRiskRuleSource.java | 81 +- .../NetworkTokenTransactionRulesResult.java | 122 +- .../NetworkTokenTriggeredRiskRule.java | 85 +- .../PaymentInstrument.java | 434 +- ...tionalBankAccountIdentificationsInner.java | 348 +- .../PaymentInstrumentNotificationData.java | 68 +- .../PaymentNotificationRequest.java | 102 +- .../model/configurationwebhooks/Phone.java | 99 +- .../configurationwebhooks/PhoneNumber.java | 101 +- .../PlatformPaymentConfiguration.java | 106 +- .../RemediatingAction.java | 50 +- .../model/configurationwebhooks/Resource.java | 68 +- .../ResourceReference.java | 48 +- .../ScoreNotificationRequest.java | 96 +- .../SweepConfigurationNotificationData.java | 82 +- ...SweepConfigurationNotificationRequest.java | 120 +- .../SweepConfigurationV2.java | 528 +- .../SweepCounterparty.java | 172 +- .../configurationwebhooks/SweepSchedule.java | 162 +- .../TokenAuthentication.java | 66 +- .../ValidationFacts.java | 106 +- .../VerificationDeadline.java | 104 +- .../VerificationError.java | 147 +- .../VerificationErrorRecursive.java | 151 +- .../model/configurationwebhooks/Wallet.java | 294 +- .../dataprotection/AbstractOpenApiSchema.java | 246 +- .../com/adyen/model/dataprotection/JSON.java | 96 +- .../model/dataprotection/ServiceError.java | 54 +- .../SubjectErasureByPspReferenceRequest.java | 99 +- .../SubjectErasureResponse.java | 64 +- .../model/disputes/AbstractOpenApiSchema.java | 246 +- .../model/disputes/AcceptDisputeRequest.java | 65 +- .../model/disputes/AcceptDisputeResponse.java | 58 +- .../model/disputes/DefendDisputeRequest.java | 68 +- .../model/disputes/DefendDisputeResponse.java | 58 +- .../adyen/model/disputes/DefenseDocument.java | 53 +- .../model/disputes/DefenseDocumentType.java | 115 +- .../adyen/model/disputes/DefenseReason.java | 78 +- .../model/disputes/DefenseReasonsRequest.java | 65 +- .../disputes/DefenseReasonsResponse.java | 64 +- .../DeleteDefenseDocumentRequest.java | 78 +- .../DeleteDefenseDocumentResponse.java | 70 +- .../model/disputes/DisputeServiceResult.java | 48 +- .../java/com/adyen/model/disputes/JSON.java | 96 +- .../adyen/model/disputes/ServiceError.java | 54 +- .../SupplyDefenseDocumentRequest.java | 81 +- .../SupplyDefenseDocumentResponse.java | 70 +- .../AbstractOpenApiSchema.java | 246 +- .../adyen/model/disputewebhooks/Amount.java | 86 +- .../BalancePlatformNotificationResponse.java | 81 +- .../DisputeEventNotification.java | 156 +- .../DisputeNotificationRequest.java | 75 +- .../DisputeWebhooksHandler.java | 97 +- .../com/adyen/model/disputewebhooks/JSON.java | 96 +- .../AULocalAccountIdentification.java | 89 +- .../AbstractOpenApiSchema.java | 246 +- .../AcceptTermsOfServiceRequest.java | 84 +- .../AcceptTermsOfServiceResponse.java | 148 +- .../AdditionalBankIdentification.java | 141 +- .../model/legalentitymanagement/Address.java | 159 +- .../model/legalentitymanagement/Amount.java | 50 +- .../legalentitymanagement/Attachment.java | 104 +- .../BankAccountInfo.java | 103 +- .../BankAccountInfoAccountIdentification.java | 1694 +++--- .../legalentitymanagement/BirthData.java | 44 +- .../legalentitymanagement/BusinessLine.java | 282 +- .../BusinessLineInfo.java | 268 +- .../BusinessLineInfoUpdate.java | 142 +- .../legalentitymanagement/BusinessLines.java | 49 +- .../CALocalAccountIdentification.java | 103 +- .../CZLocalAccountIdentification.java | 107 +- .../CalculatePciStatusRequest.java | 119 +- .../CalculatePciStatusResponse.java | 68 +- ...CalculateTermsOfServiceStatusResponse.java | 104 +- .../CapabilityProblem.java | 63 +- .../CapabilityProblemEntity.java | 99 +- .../CapabilityProblemEntityRecursive.java | 103 +- .../CapabilitySettings.java | 98 +- ...kTaxElectronicDeliveryConsentResponse.java | 56 +- .../DKLocalAccountIdentification.java | 83 +- .../DataReviewConfirmationResponse.java | 56 +- .../model/legalentitymanagement/Document.java | 273 +- .../legalentitymanagement/DocumentPage.java | 83 +- .../DocumentReference.java | 65 +- .../EntityReference.java | 44 +- .../FinancialReport.java | 82 +- .../GeneratePciDescriptionRequest.java | 142 +- .../GeneratePciDescriptionResponse.java | 116 +- ...cceptedTermsOfServiceDocumentResponse.java | 152 +- .../GetPciQuestionnaireInfosResponse.java | 61 +- .../GetPciQuestionnaireResponse.java | 96 +- ...TermsOfServiceAcceptanceInfosResponse.java | 64 +- .../GetTermsOfServiceDocumentRequest.java | 161 +- .../GetTermsOfServiceDocumentResponse.java | 193 +- .../HKLocalAccountIdentification.java | 89 +- .../HULocalAccountIdentification.java | 68 +- .../IbanAccountIdentification.java | 86 +- .../IdentificationData.java | 175 +- .../legalentitymanagement/Individual.java | 124 +- .../model/legalentitymanagement/JSON.java | 96 +- .../legalentitymanagement/LegalEntity.java | 314 +- .../LegalEntityAssociation.java | 307 +- .../LegalEntityCapability.java | 189 +- .../LegalEntityInfo.java | 234 +- .../LegalEntityInfoRequiredType.java | 250 +- .../NOLocalAccountIdentification.java | 68 +- .../NZLocalAccountIdentification.java | 92 +- .../model/legalentitymanagement/Name.java | 48 +- .../NumberAndBicAccountIdentification.java | 129 +- .../legalentitymanagement/OnboardingLink.java | 68 +- .../OnboardingLinkInfo.java | 118 +- .../OnboardingLinkSettings.java | 577 +- .../OnboardingTheme.java | 58 +- .../OnboardingThemes.java | 53 +- .../legalentitymanagement/Organization.java | 288 +- .../legalentitymanagement/OwnerEntity.java | 100 +- .../PLLocalAccountIdentification.java | 92 +- .../PciDocumentInfo.java | 86 +- .../PciSigningRequest.java | 86 +- .../PciSigningResponse.java | 80 +- .../legalentitymanagement/PhoneNumber.java | 79 +- .../RemediatingAction.java | 62 +- .../SELocalAccountIdentification.java | 119 +- .../SGLocalAccountIdentification.java | 71 +- .../legalentitymanagement/ServiceError.java | 54 +- ...etTaxElectronicDeliveryConsentRequest.java | 56 +- .../SoleProprietorship.java | 184 +- .../legalentitymanagement/SourceOfFunds.java | 150 +- .../legalentitymanagement/StockData.java | 87 +- .../SupportingEntityCapability.java | 102 +- .../legalentitymanagement/TaxInformation.java | 90 +- .../TaxReportingClassification.java | 200 +- .../TermsOfServiceAcceptanceInfo.java | 149 +- .../TransferInstrument.java | 137 +- .../TransferInstrumentInfo.java | 111 +- .../TransferInstrumentReference.java | 104 +- .../model/legalentitymanagement/Trust.java | 241 +- .../UKLocalAccountIdentification.java | 89 +- .../USLocalAccountIdentification.java | 121 +- .../UndefinedBeneficiary.java | 54 +- .../UnincorporatedPartnership.java | 225 +- .../VerificationDeadline.java | 124 +- .../VerificationError.java | 178 +- .../VerificationErrorRecursive.java | 173 +- .../VerificationErrors.java | 52 +- .../model/legalentitymanagement/WebData.java | 56 +- .../WebDataExemption.java | 70 +- .../management/AbstractOpenApiSchema.java | 246 +- .../com/adyen/model/management/AccelInfo.java | 118 +- .../management/AdditionalCommission.java | 60 +- .../model/management/AdditionalSettings.java | 106 +- .../AdditionalSettingsResponse.java | 127 +- .../com/adyen/model/management/Address.java | 108 +- .../adyen/model/management/AffirmInfo.java | 44 +- .../model/management/AfterpayTouchInfo.java | 45 +- .../model/management/AlipayPlusInfo.java | 48 +- .../adyen/model/management/AllowedOrigin.java | 55 +- .../management/AllowedOriginsResponse.java | 52 +- .../com/adyen/model/management/AmexInfo.java | 148 +- .../com/adyen/model/management/Amount.java | 86 +- .../adyen/model/management/AndroidApp.java | 183 +- .../model/management/AndroidAppError.java | 76 +- .../model/management/AndroidAppsResponse.java | 52 +- .../model/management/AndroidCertificate.java | 83 +- .../AndroidCertificatesResponse.java | 55 +- .../adyen/model/management/ApiCredential.java | 221 +- .../model/management/ApiCredentialLinks.java | 97 +- .../adyen/model/management/ApplePayInfo.java | 72 +- .../com/adyen/model/management/BcmcInfo.java | 62 +- .../management/BillingEntitiesResponse.java | 52 +- .../adyen/model/management/BillingEntity.java | 79 +- .../model/management/CardholderReceipt.java | 75 +- .../model/management/CartesBancairesInfo.java | 62 +- .../adyen/model/management/ClearpayInfo.java | 44 +- .../adyen/model/management/Commission.java | 45 +- .../com/adyen/model/management/Company.java | 132 +- .../management/CompanyApiCredential.java | 263 +- .../adyen/model/management/CompanyLinks.java | 76 +- .../adyen/model/management/CompanyUser.java | 176 +- .../adyen/model/management/Connectivity.java | 114 +- .../com/adyen/model/management/Contact.java | 72 +- .../CreateAllowedOriginRequest.java | 61 +- .../CreateApiCredentialResponse.java | 235 +- .../CreateCompanyApiCredentialRequest.java | 151 +- .../CreateCompanyApiCredentialResponse.java | 309 +- .../management/CreateCompanyUserRequest.java | 212 +- .../management/CreateCompanyUserResponse.java | 189 +- .../CreateCompanyWebhookRequest.java | 528 +- .../CreateMerchantApiCredentialRequest.java | 121 +- .../management/CreateMerchantRequest.java | 178 +- .../management/CreateMerchantResponse.java | 147 +- .../management/CreateMerchantUserRequest.java | 161 +- .../CreateMerchantWebhookRequest.java | 408 +- .../model/management/CreateUserResponse.java | 135 +- .../com/adyen/model/management/Currency.java | 123 +- .../model/management/CustomNotification.java | 171 +- .../adyen/model/management/DataCenter.java | 104 +- .../adyen/model/management/DinersInfo.java | 152 +- .../com/adyen/model/management/EventUrl.java | 68 +- .../management/ExternalTerminalAction.java | 107 +- .../management/GenerateApiKeyResponse.java | 47 +- .../management/GenerateClientKeyResponse.java | 50 +- .../management/GenerateHmacKeyResponse.java | 47 +- .../management/GenericPmWithTdiInfo.java | 61 +- .../adyen/model/management/GooglePayInfo.java | 84 +- .../com/adyen/model/management/Gratuity.java | 144 +- .../com/adyen/model/management/Hardware.java | 106 +- .../com/adyen/model/management/IdName.java | 49 +- .../management/InstallAndroidAppDetails.java | 68 +- .../InstallAndroidCertificateDetails.java | 77 +- .../adyen/model/management/InvalidField.java | 48 +- .../com/adyen/model/management/JCBInfo.java | 191 +- .../java/com/adyen/model/management/JSON.java | 96 +- .../java/com/adyen/model/management/Key.java | 102 +- .../adyen/model/management/KlarnaInfo.java | 92 +- .../com/adyen/model/management/Links.java | 51 +- .../adyen/model/management/LinksElement.java | 50 +- .../ListCompanyApiCredentialsResponse.java | 84 +- .../model/management/ListCompanyResponse.java | 66 +- .../management/ListCompanyUsersResponse.java | 69 +- .../ListExternalTerminalActionsResponse.java | 61 +- .../ListMerchantApiCredentialsResponse.java | 84 +- .../management/ListMerchantResponse.java | 66 +- .../management/ListMerchantUsersResponse.java | 69 +- .../model/management/ListStoresResponse.java | 66 +- .../management/ListTerminalsResponse.java | 66 +- .../management/ListWebhooksResponse.java | 69 +- .../adyen/model/management/Localization.java | 48 +- .../java/com/adyen/model/management/Logo.java | 53 +- .../model/management/MeApiCredential.java | 225 +- .../model/management/MealVoucherFRInfo.java | 73 +- .../com/adyen/model/management/Merchant.java | 306 +- .../adyen/model/management/MerchantLinks.java | 76 +- .../management/MinorUnitsMonetaryValue.java | 84 +- .../model/management/ModelConfiguration.java | 97 +- .../com/adyen/model/management/ModelFile.java | 50 +- .../java/com/adyen/model/management/Name.java | 50 +- .../com/adyen/model/management/Name2.java | 50 +- .../java/com/adyen/model/management/Nexo.java | 94 +- .../adyen/model/management/Notification.java | 125 +- .../model/management/NotificationUrl.java | 50 +- .../com/adyen/model/management/NyceInfo.java | 118 +- .../model/management/OfflineProcessing.java | 83 +- .../java/com/adyen/model/management/Opi.java | 52 +- .../com/adyen/model/management/OrderItem.java | 60 +- .../model/management/PaginationLinks.java | 85 +- .../com/adyen/model/management/Passcodes.java | 51 +- .../adyen/model/management/PayAtTable.java | 99 +- .../model/management/PayByBankPlaidInfo.java | 62 +- .../com/adyen/model/management/PayMeInfo.java | 48 +- .../adyen/model/management/PayPalInfo.java | 84 +- .../com/adyen/model/management/PayToInfo.java | 74 +- .../com/adyen/model/management/Payment.java | 99 +- .../adyen/model/management/PaymentMethod.java | 669 ++- .../management/PaymentMethodResponse.java | 91 +- .../management/PaymentMethodSetupInfo.java | 660 ++- .../model/management/PayoutSettings.java | 289 +- .../management/PayoutSettingsRequest.java | 151 +- .../management/PayoutSettingsResponse.java | 52 +- .../com/adyen/model/management/Profile.java | 359 +- .../com/adyen/model/management/PulseInfo.java | 118 +- .../model/management/ReceiptOptions.java | 109 +- .../model/management/ReceiptPrinting.java | 140 +- .../adyen/model/management/Referenced.java | 57 +- .../com/adyen/model/management/Refunds.java | 64 +- .../management/ReleaseUpdateDetails.java | 94 +- .../ReprocessAndroidAppResponse.java | 50 +- .../management/RequestActivationResponse.java | 51 +- .../model/management/RestServiceError.java | 107 +- .../ScheduleTerminalActionsRequest.java | 185 +- ...leTerminalActionsRequestActionDetails.java | 717 +-- .../ScheduleTerminalActionsResponse.java | 248 +- .../model/management/SepaDirectDebitInfo.java | 62 +- .../com/adyen/model/management/Settings.java | 66 +- .../model/management/ShippingLocation.java | 83 +- .../management/ShippingLocationsResponse.java | 55 +- .../com/adyen/model/management/Signature.java | 97 +- .../adyen/model/management/SodexoInfo.java | 48 +- .../adyen/model/management/SofortInfo.java | 50 +- .../model/management/SplitConfiguration.java | 65 +- .../management/SplitConfigurationList.java | 52 +- .../management/SplitConfigurationLogic.java | 781 ++- .../management/SplitConfigurationRule.java | 225 +- .../adyen/model/management/Standalone.java | 84 +- .../com/adyen/model/management/StarInfo.java | 118 +- .../com/adyen/model/management/Store.java | 309 +- .../model/management/StoreAndForward.java | 87 +- .../management/StoreCreationRequest.java | 253 +- .../StoreCreationWithMerchantCodeRequest.java | 301 +- .../adyen/model/management/StoreLocation.java | 105 +- .../management/StoreSplitConfiguration.java | 100 +- .../model/management/SubMerchantData.java | 111 +- .../model/management/SupportedCardTypes.java | 75 +- .../com/adyen/model/management/Surcharge.java | 79 +- .../com/adyen/model/management/SwishInfo.java | 47 +- .../com/adyen/model/management/TapToPay.java | 48 +- .../com/adyen/model/management/Terminal.java | 138 +- .../TerminalActionScheduleDetail.java | 51 +- .../model/management/TerminalAssignment.java | 129 +- .../management/TerminalConnectivity.java | 82 +- .../TerminalConnectivityBluetooth.java | 57 +- .../TerminalConnectivityCellular.java | 121 +- .../TerminalConnectivityEthernet.java | 54 +- .../management/TerminalConnectivityWifi.java | 54 +- .../management/TerminalInstructions.java | 65 +- .../management/TerminalModelsResponse.java | 52 +- .../adyen/model/management/TerminalOrder.java | 126 +- .../management/TerminalOrderRequest.java | 93 +- .../management/TerminalOrdersResponse.java | 52 +- .../model/management/TerminalProduct.java | 65 +- .../management/TerminalProductPrice.java | 66 +- .../management/TerminalProductsResponse.java | 55 +- .../TerminalReassignmentRequest.java | 117 +- .../TerminalReassignmentTarget.java | 105 +- .../model/management/TerminalSettings.java | 306 +- .../management/TestCompanyWebhookRequest.java | 173 +- .../adyen/model/management/TestOutput.java | 231 +- .../model/management/TestWebhookRequest.java | 131 +- .../model/management/TestWebhookResponse.java | 61 +- .../adyen/model/management/TicketInfo.java | 44 +- .../com/adyen/model/management/Timeouts.java | 62 +- .../TransactionDescriptionInfo.java | 175 +- .../com/adyen/model/management/TwintInfo.java | 44 +- .../UninstallAndroidAppDetails.java | 68 +- .../UninstallAndroidCertificateDetails.java | 77 +- .../adyen/model/management/Unreferenced.java | 60 +- .../model/management/UpdatableAddress.java | 84 +- .../UpdateCompanyApiCredentialRequest.java | 157 +- .../management/UpdateCompanyUserRequest.java | 194 +- .../UpdateCompanyWebhookRequest.java | 451 +- .../UpdateMerchantApiCredentialRequest.java | 127 +- .../management/UpdateMerchantUserRequest.java | 143 +- .../UpdateMerchantWebhookRequest.java | 335 +- .../management/UpdatePaymentMethodInfo.java | 361 +- .../UpdatePayoutSettingsRequest.java | 71 +- .../UpdateSplitConfigurationLogicRequest.java | 841 ++- .../UpdateSplitConfigurationRequest.java | 56 +- .../UpdateSplitConfigurationRuleRequest.java | 190 +- .../model/management/UpdateStoreRequest.java | 258 +- .../management/UploadAndroidAppResponse.java | 50 +- .../UploadAndroidCertificateResponse.java | 56 +- .../java/com/adyen/model/management/Url.java | 51 +- .../java/com/adyen/model/management/User.java | 132 +- .../com/adyen/model/management/VippsInfo.java | 72 +- .../adyen/model/management/WeChatPayInfo.java | 45 +- .../model/management/WeChatPayPosInfo.java | 45 +- .../com/adyen/model/management/Webhook.java | 562 +- .../adyen/model/management/WebhookLinks.java | 85 +- .../adyen/model/management/WifiProfiles.java | 62 +- .../AbstractOpenApiSchema.java | 246 +- .../AccountCapabilityData.java | 226 +- .../AccountCreateNotificationData.java | 200 +- .../AccountNotificationResponse.java | 75 +- .../AccountUpdateNotificationData.java | 200 +- .../managementwebhooks/CapabilityProblem.java | 57 +- .../CapabilityProblemEntity.java | 111 +- .../CapabilityProblemEntityRecursive.java | 115 +- .../adyen/model/managementwebhooks/JSON.java | 96 +- .../ManagementWebhooksHandler.java | 348 +- .../MerchantCreatedNotificationRequest.java | 111 +- .../MerchantUpdatedNotificationRequest.java | 111 +- .../MidServiceNotificationData.java | 203 +- ...ymentMethodCreatedNotificationRequest.java | 111 +- .../PaymentMethodNotificationResponse.java | 81 +- ...thodRequestRemovedNotificationRequest.java | 115 +- ...cheduledForRemovalNotificationRequest.java | 116 +- .../managementwebhooks/RemediatingAction.java | 50 +- ...TerminalAssignmentNotificationRequest.java | 93 +- ...erminalAssignmentNotificationResponse.java | 81 +- .../TerminalBoardingData.java | 54 +- .../TerminalBoardingNotificationRequest.java | 111 +- .../TerminalBoardingNotificationResponse.java | 81 +- .../TerminalSettingsData.java | 103 +- .../TerminalSettingsNotificationRequest.java | 111 +- .../TerminalSettingsNotificationResponse.java | 81 +- .../managementwebhooks/VerificationError.java | 90 +- .../VerificationErrorRecursive.java | 94 +- .../AbstractOpenApiSchema.java | 248 +- .../Amount.java | 88 +- .../negativebalancewarningwebhooks/JSON.java | 96 +- ...ceCompensationWarningNotificationData.java | 209 +- ...ompensationWarningNotificationRequest.java | 124 +- ...NegativeBalanceWarningWebhooksHandler.java | 105 +- .../Resource.java | 70 +- .../ResourceReference.java | 50 +- .../model/nexo/PredefinedContentHelper.java | 241 +- .../model/payment/AbstractOpenApiSchema.java | 246 +- .../com/adyen/model/payment/AccountInfo.java | 475 +- .../com/adyen/model/payment/AcctInfo.java | 560 +- .../model/payment/AdditionalData3DSecure.java | 318 +- .../model/payment/AdditionalDataAirline.java | 1012 +++- .../payment/AdditionalDataCarRental.java | 749 ++- .../model/payment/AdditionalDataCommon.java | 858 ++- .../model/payment/AdditionalDataLevel23.java | 882 ++- .../model/payment/AdditionalDataLodging.java | 555 +- .../payment/AdditionalDataModifications.java | 87 +- .../payment/AdditionalDataOpenInvoice.java | 595 +- .../model/payment/AdditionalDataOpi.java | 81 +- .../model/payment/AdditionalDataRatepay.java | 137 +- .../model/payment/AdditionalDataRetry.java | 182 +- .../model/payment/AdditionalDataRisk.java | 587 +- .../payment/AdditionalDataRiskStandalone.java | 249 +- .../payment/AdditionalDataSubMerchant.java | 533 +- .../AdditionalDataTemporaryServices.java | 359 +- .../model/payment/AdditionalDataWallets.java | 76 +- .../java/com/adyen/model/payment/Address.java | 138 +- .../payment/AdjustAuthorisationRequest.java | 244 +- .../java/com/adyen/model/payment/Amount.java | 86 +- .../adyen/model/payment/ApplicationInfo.java | 116 +- .../payment/AuthenticationResultRequest.java | 60 +- .../payment/AuthenticationResultResponse.java | 65 +- .../com/adyen/model/payment/BankAccount.java | 200 +- .../com/adyen/model/payment/BrowserInfo.java | 155 +- .../model/payment/CancelOrRefundRequest.java | 201 +- .../adyen/model/payment/CancelRequest.java | 222 +- .../adyen/model/payment/CaptureRequest.java | 233 +- .../java/com/adyen/model/payment/Card.java | 162 +- .../com/adyen/model/payment/CommonField.java | 50 +- .../model/payment/DeviceRenderOptions.java | 96 +- .../adyen/model/payment/DonationRequest.java | 119 +- .../adyen/model/payment/ExternalPlatform.java | 48 +- .../com/adyen/model/payment/ForexQuote.java | 116 +- .../adyen/model/payment/FraudCheckResult.java | 48 +- .../payment/FraudCheckResultWrapper.java | 54 +- .../com/adyen/model/payment/FraudResult.java | 55 +- .../adyen/model/payment/FundDestination.java | 185 +- .../com/adyen/model/payment/FundSource.java | 94 +- .../com/adyen/model/payment/Installments.java | 157 +- .../java/com/adyen/model/payment/JSON.java | 96 +- .../java/com/adyen/model/payment/Mandate.java | 228 +- .../adyen/model/payment/MerchantDevice.java | 48 +- .../model/payment/MerchantRiskIndicator.java | 323 +- .../model/payment/ModificationResult.java | 107 +- .../java/com/adyen/model/payment/Name.java | 50 +- .../adyen/model/payment/PaymentRequest.java | 1407 +++-- .../adyen/model/payment/PaymentRequest3d.java | 1275 +++-- .../model/payment/PaymentRequest3ds2.java | 1271 +++-- .../adyen/model/payment/PaymentResult.java | 480 +- .../java/com/adyen/model/payment/Phone.java | 61 +- .../payment/PlatformChargebackLogic.java | 131 +- .../com/adyen/model/payment/Recurring.java | 173 +- .../adyen/model/payment/RefundRequest.java | 233 +- .../ResponseAdditionalData3DSecure.java | 157 +- .../ResponseAdditionalDataBillingAddress.java | 193 +- .../payment/ResponseAdditionalDataCard.java | 289 +- .../payment/ResponseAdditionalDataCommon.java | 1518 +++-- .../ResponseAdditionalDataDomesticError.java | 110 +- .../ResponseAdditionalDataInstallments.java | 504 +- .../ResponseAdditionalDataNetworkTokens.java | 110 +- .../payment/ResponseAdditionalDataOpi.java | 86 +- .../payment/ResponseAdditionalDataSepa.java | 146 +- .../adyen/model/payment/SDKEphemPubKey.java | 51 +- .../SecureRemoteCommerceCheckoutData.java | 182 +- .../com/adyen/model/payment/ServiceError.java | 82 +- .../payment/ShopperInteractionDevice.java | 54 +- .../java/com/adyen/model/payment/Split.java | 348 +- .../com/adyen/model/payment/SplitAmount.java | 92 +- .../com/adyen/model/payment/SubMerchant.java | 156 +- .../model/payment/TechnicalCancelRequest.java | 219 +- .../adyen/model/payment/ThreeDS1Result.java | 90 +- .../model/payment/ThreeDS2RequestData.java | 1048 ++-- .../adyen/model/payment/ThreeDS2Result.java | 340 +- .../model/payment/ThreeDS2ResultRequest.java | 57 +- .../model/payment/ThreeDS2ResultResponse.java | 54 +- .../ThreeDSRequestorAuthenticationInfo.java | 181 +- ...reeDSRequestorPriorAuthenticationInfo.java | 213 +- .../adyen/model/payment/ThreeDSecureData.java | 288 +- .../payment/VoidPendingRefundRequest.java | 244 +- .../paymentsapp/AbstractOpenApiSchema.java | 246 +- .../paymentsapp/BoardingTokenRequest.java | 51 +- .../paymentsapp/BoardingTokenResponse.java | 48 +- .../DefaultErrorResponseEntity.java | 92 +- .../adyen/model/paymentsapp/InvalidField.java | 48 +- .../com/adyen/model/paymentsapp/JSON.java | 96 +- .../model/paymentsapp/PaymentsAppDto.java | 55 +- .../paymentsapp/PaymentsAppResponse.java | 52 +- .../model/payout/AbstractOpenApiSchema.java | 246 +- .../java/com/adyen/model/payout/Address.java | 138 +- .../java/com/adyen/model/payout/Amount.java | 86 +- .../com/adyen/model/payout/BankAccount.java | 200 +- .../java/com/adyen/model/payout/Card.java | 162 +- .../adyen/model/payout/FraudCheckResult.java | 48 +- .../model/payout/FraudCheckResultWrapper.java | 54 +- .../com/adyen/model/payout/FraudResult.java | 55 +- .../com/adyen/model/payout/FundSource.java | 94 +- .../java/com/adyen/model/payout/JSON.java | 96 +- .../com/adyen/model/payout/ModifyRequest.java | 79 +- .../adyen/model/payout/ModifyResponse.java | 103 +- .../java/com/adyen/model/payout/Name.java | 50 +- .../com/adyen/model/payout/PayoutRequest.java | 415 +- .../adyen/model/payout/PayoutResponse.java | 480 +- .../com/adyen/model/payout/Recurring.java | 173 +- .../ResponseAdditionalData3DSecure.java | 157 +- .../ResponseAdditionalDataBillingAddress.java | 193 +- .../payout/ResponseAdditionalDataCard.java | 289 +- .../payout/ResponseAdditionalDataCommon.java | 1518 +++-- .../ResponseAdditionalDataDomesticError.java | 110 +- .../ResponseAdditionalDataInstallments.java | 504 +- .../ResponseAdditionalDataNetworkTokens.java | 110 +- .../payout/ResponseAdditionalDataOpi.java | 86 +- .../payout/ResponseAdditionalDataSepa.java | 146 +- .../com/adyen/model/payout/ServiceError.java | 82 +- .../payout/StoreDetailAndSubmitRequest.java | 325 +- .../payout/StoreDetailAndSubmitResponse.java | 88 +- .../model/payout/StoreDetailRequest.java | 260 +- .../model/payout/StoreDetailResponse.java | 93 +- .../com/adyen/model/payout/SubmitRequest.java | 328 +- .../adyen/model/payout/SubmitResponse.java | 83 +- .../posmobile/AbstractOpenApiSchema.java | 246 +- .../model/posmobile/CreateSessionRequest.java | 90 +- .../posmobile/CreateSessionResponse.java | 105 +- .../java/com/adyen/model/posmobile/JSON.java | 96 +- .../recurring/AbstractOpenApiSchema.java | 246 +- .../com/adyen/model/recurring/Address.java | 138 +- .../com/adyen/model/recurring/Amount.java | 86 +- .../adyen/model/recurring/BankAccount.java | 200 +- .../java/com/adyen/model/recurring/Card.java | 162 +- .../model/recurring/CreatePermitRequest.java | 82 +- .../model/recurring/CreatePermitResult.java | 71 +- .../model/recurring/DisablePermitRequest.java | 57 +- .../model/recurring/DisablePermitResult.java | 66 +- .../adyen/model/recurring/DisableRequest.java | 133 +- .../adyen/model/recurring/DisableResult.java | 62 +- .../java/com/adyen/model/recurring/JSON.java | 96 +- .../java/com/adyen/model/recurring/Name.java | 50 +- .../model/recurring/NotifyShopperRequest.java | 211 +- .../model/recurring/NotifyShopperResult.java | 93 +- .../com/adyen/model/recurring/Permit.java | 72 +- .../model/recurring/PermitRestriction.java | 83 +- .../adyen/model/recurring/PermitResult.java | 50 +- .../com/adyen/model/recurring/Recurring.java | 173 +- .../model/recurring/RecurringDetail.java | 301 +- .../recurring/RecurringDetailWrapper.java | 54 +- .../recurring/RecurringDetailsRequest.java | 76 +- .../recurring/RecurringDetailsResult.java | 72 +- .../ScheduleAccountUpdaterRequest.java | 157 +- .../ScheduleAccountUpdaterResult.java | 87 +- .../adyen/model/recurring/ServiceError.java | 82 +- .../adyen/model/recurring/TokenDetails.java | 61 +- .../reportwebhooks/AbstractOpenApiSchema.java | 246 +- .../BalancePlatformNotificationResponse.java | 81 +- .../com/adyen/model/reportwebhooks/JSON.java | 96 +- .../ReportNotificationData.java | 172 +- .../ReportNotificationRequest.java | 96 +- .../reportwebhooks/ReportWebhooksHandler.java | 97 +- .../adyen/model/reportwebhooks/Resource.java | 68 +- .../reportwebhooks/ResourceReference.java | 48 +- .../AbstractOpenApiSchema.java | 246 +- .../AccountHolderResource.java | 96 +- .../AuthenticationSessionRequest.java | 89 +- .../AuthenticationSessionResponse.java | 57 +- .../BalanceAccountResource.java | 78 +- .../DefaultErrorResponseEntity.java | 92 +- .../sessionauthentication/InvalidField.java | 48 +- .../model/sessionauthentication/JSON.java | 96 +- .../LegalEntityResource.java | 110 +- .../MerchantAccountResource.java | 82 +- .../PaymentInstrumentResource.java | 85 +- .../model/sessionauthentication/Policy.java | 103 +- .../sessionauthentication/ProductType.java | 20 +- .../model/sessionauthentication/Resource.java | 69 +- .../sessionauthentication/ResourceType.java | 24 +- .../storedvalue/AbstractOpenApiSchema.java | 246 +- .../com/adyen/model/storedvalue/Amount.java | 86 +- .../com/adyen/model/storedvalue/JSON.java | 96 +- .../adyen/model/storedvalue/ServiceError.java | 82 +- .../StoredValueBalanceCheckRequest.java | 291 +- .../StoredValueBalanceCheckResponse.java | 212 +- .../StoredValueBalanceMergeRequest.java | 333 +- .../StoredValueBalanceMergeResponse.java | 239 +- .../storedvalue/StoredValueIssueRequest.java | 257 +- .../storedvalue/StoredValueIssueResponse.java | 245 +- .../storedvalue/StoredValueLoadRequest.java | 277 +- .../storedvalue/StoredValueLoadResponse.java | 215 +- .../StoredValueStatusChangeRequest.java | 313 +- .../StoredValueStatusChangeResponse.java | 239 +- .../storedvalue/StoredValueVoidRequest.java | 90 +- .../storedvalue/StoredValueVoidResponse.java | 191 +- .../AbstractOpenApiSchema.java | 246 +- .../model/tokenizationwebhooks/JSON.java | 96 +- .../tokenizationwebhooks/RecurringToken.java | 73 +- .../RecurringTokenStoreOperation.java | 92 +- ...adyExistingDetailsNotificationRequest.java | 149 +- ...tionCreatedDetailsNotificationRequest.java | 140 +- ...ionDisabledDetailsNotificationRequest.java | 140 +- .../TokenizationNotificationResponse.java | 81 +- ...tionUpdatedDetailsNotificationRequest.java | 140 +- .../TokenizationWebhooksHandler.java | 234 +- .../AbstractOpenApiSchema.java | 246 +- .../model/transactionwebhooks/Amount.java | 86 +- .../BalancePlatformNotificationResponse.java | 81 +- .../transactionwebhooks/BankCategoryData.java | 160 +- .../InternalCategoryData.java | 90 +- .../model/transactionwebhooks/IssuedCard.java | 273 +- .../adyen/model/transactionwebhooks/JSON.java | 96 +- .../PaymentInstrument.java | 51 +- .../transactionwebhooks/PlatformPayment.java | 274 +- .../RelayedAuthorisationData.java | 73 +- .../model/transactionwebhooks/Resource.java | 68 +- .../ResourceReference.java | 48 +- .../transactionwebhooks/ThreeDSecure.java | 44 +- .../transactionwebhooks/Transaction.java | 222 +- .../TransactionNotificationRequestV4.java | 111 +- .../TransactionWebhooksHandler.java | 98 +- .../TransferNotificationValidationFact.java | 60 +- .../transactionwebhooks/TransferView.java | 85 +- .../TransferViewCategoryData.java | 597 +- .../AULocalAccountIdentification.java | 89 +- .../transfers/AbstractOpenApiSchema.java | 246 +- .../AdditionalBankIdentification.java | 141 +- .../com/adyen/model/transfers/Address.java | 168 +- .../com/adyen/model/transfers/Airline.java | 55 +- .../com/adyen/model/transfers/Amount.java | 86 +- .../model/transfers/AmountAdjustment.java | 93 +- .../transfers/ApproveTransfersRequest.java | 51 +- .../BRLocalAccountIdentification.java | 77 +- .../model/transfers/BalanceMutation.java | 123 +- .../adyen/model/transfers/BankAccountV3.java | 66 +- .../BankAccountV3AccountIdentification.java | 1783 +++--- .../model/transfers/BankCategoryData.java | 160 +- .../CALocalAccountIdentification.java | 103 +- .../CZLocalAccountIdentification.java | 107 +- .../transfers/CancelTransfersRequest.java | 51 +- .../adyen/model/transfers/CapitalBalance.java | 69 +- .../adyen/model/transfers/CapitalGrant.java | 156 +- .../model/transfers/CapitalGrantInfo.java | 73 +- .../adyen/model/transfers/CapitalGrants.java | 49 +- .../java/com/adyen/model/transfers/Card.java | 64 +- .../model/transfers/CardIdentification.java | 181 +- .../transfers/ConfirmationTrackingData.java | 115 +- .../adyen/model/transfers/Counterparty.java | 100 +- .../model/transfers/CounterpartyInfoV3.java | 108 +- .../adyen/model/transfers/CounterpartyV3.java | 115 +- .../DKLocalAccountIdentification.java | 83 +- .../transfers/DirectDebitInformation.java | 92 +- .../transfers/EstimationTrackingData.java | 89 +- .../adyen/model/transfers/ExecutionDate.java | 106 +- .../adyen/model/transfers/ExternalReason.java | 48 +- .../java/com/adyen/model/transfers/Fee.java | 51 +- .../transfers/FindTransfersResponse.java | 60 +- .../HKLocalAccountIdentification.java | 89 +- .../HULocalAccountIdentification.java | 68 +- .../transfers/IbanAccountIdentification.java | 86 +- .../model/transfers/InternalCategoryData.java | 90 +- .../transfers/InternalReviewTrackingData.java | 165 +- .../adyen/model/transfers/InvalidField.java | 48 +- .../com/adyen/model/transfers/IssuedCard.java | 273 +- .../transfers/IssuingTransactionData.java | 82 +- .../java/com/adyen/model/transfers/JSON.java | 96 +- .../java/com/adyen/model/transfers/Leg.java | 105 +- .../java/com/adyen/model/transfers/Link.java | 44 +- .../java/com/adyen/model/transfers/Links.java | 62 +- .../com/adyen/model/transfers/Lodging.java | 50 +- .../adyen/model/transfers/MerchantData.java | 61 +- .../model/transfers/MerchantPurchaseData.java | 89 +- .../adyen/model/transfers/Modification.java | 71 +- .../NOLocalAccountIdentification.java | 68 +- .../NZLocalAccountIdentification.java | 92 +- .../adyen/model/transfers/NameLocation.java | 99 +- .../NumberAndBicAccountIdentification.java | 129 +- .../PLLocalAccountIdentification.java | 92 +- .../model/transfers/PartyIdentification.java | 246 +- .../model/transfers/PaymentInstrument.java | 51 +- .../model/transfers/PlatformPayment.java | 274 +- .../transfers/RelayedAuthorisationData.java | 73 +- .../com/adyen/model/transfers/Repayment.java | 80 +- .../adyen/model/transfers/RepaymentTerm.java | 63 +- .../model/transfers/ResourceReference.java | 48 +- .../model/transfers/RestServiceError.java | 107 +- .../transfers/ReturnTransferRequest.java | 88 +- .../transfers/ReturnTransferResponse.java | 86 +- .../adyen/model/transfers/RoutingDetails.java | 148 +- .../SELocalAccountIdentification.java | 119 +- .../SGLocalAccountIdentification.java | 71 +- .../adyen/model/transfers/ServiceError.java | 54 +- .../adyen/model/transfers/ThreeDSecure.java | 44 +- .../model/transfers/ThresholdRepayment.java | 54 +- .../adyen/model/transfers/Transaction.java | 222 +- .../transfers/TransactionEventViolation.java | 76 +- .../transfers/TransactionRuleReference.java | 78 +- .../transfers/TransactionRuleSource.java | 78 +- .../transfers/TransactionRulesResult.java | 99 +- .../transfers/TransactionSearchResponse.java | 63 +- .../com/adyen/model/transfers/Transfer.java | 526 +- .../model/transfers/TransferCategoryData.java | 596 +- .../adyen/model/transfers/TransferData.java | 649 ++- .../model/transfers/TransferDataTracking.java | 503 +- .../adyen/model/transfers/TransferEvent.java | 266 +- .../TransferEventEventsDataInner.java | 419 +- .../transfers/TransferEventTrackingData.java | 504 +- .../adyen/model/transfers/TransferInfo.java | 655 ++- .../TransferNotificationCounterParty.java | 140 +- .../TransferNotificationMerchantData.java | 90 +- .../TransferNotificationValidationFact.java | 60 +- .../transfers/TransferRequestReview.java | 113 +- .../adyen/model/transfers/TransferReview.java | 110 +- .../TransferServiceRestServiceError.java | 177 +- .../adyen/model/transfers/TransferView.java | 85 +- .../UKLocalAccountIdentification.java | 89 +- .../USLocalAccountIdentification.java | 121 +- .../UltimatePartyIdentification.java | 249 +- .../AULocalAccountIdentification.java | 89 +- .../AbstractOpenApiSchema.java | 246 +- .../AdditionalBankIdentification.java | 141 +- .../adyen/model/transferwebhooks/Address.java | 168 +- .../adyen/model/transferwebhooks/Airline.java | 55 +- .../adyen/model/transferwebhooks/Amount.java | 86 +- .../transferwebhooks/AmountAdjustment.java | 93 +- .../BRLocalAccountIdentification.java | 77 +- .../transferwebhooks/BalanceMutation.java | 123 +- .../BalancePlatformNotificationResponse.java | 81 +- .../model/transferwebhooks/BankAccountV3.java | 66 +- .../BankAccountV3AccountIdentification.java | 1783 +++--- .../transferwebhooks/BankCategoryData.java | 160 +- .../CALocalAccountIdentification.java | 103 +- .../CZLocalAccountIdentification.java | 107 +- .../adyen/model/transferwebhooks/Card.java | 64 +- .../transferwebhooks/CardIdentification.java | 181 +- .../ConfirmationTrackingData.java | 115 +- .../transferwebhooks/CounterpartyV3.java | 115 +- .../DKLocalAccountIdentification.java | 83 +- .../DirectDebitInformation.java | 92 +- .../EstimationTrackingData.java | 89 +- .../model/transferwebhooks/ExecutionDate.java | 106 +- .../transferwebhooks/ExternalReason.java | 48 +- .../HKLocalAccountIdentification.java | 89 +- .../HULocalAccountIdentification.java | 68 +- .../IbanAccountIdentification.java | 86 +- .../InternalCategoryData.java | 90 +- .../InternalReviewTrackingData.java | 165 +- .../model/transferwebhooks/IssuedCard.java | 273 +- .../IssuingTransactionData.java | 82 +- .../adyen/model/transferwebhooks/JSON.java | 96 +- .../com/adyen/model/transferwebhooks/Leg.java | 105 +- .../adyen/model/transferwebhooks/Lodging.java | 50 +- .../model/transferwebhooks/MerchantData.java | 61 +- .../MerchantPurchaseData.java | 89 +- .../model/transferwebhooks/Modification.java | 71 +- .../NOLocalAccountIdentification.java | 68 +- .../NZLocalAccountIdentification.java | 92 +- .../model/transferwebhooks/NameLocation.java | 99 +- .../NumberAndBicAccountIdentification.java | 129 +- .../PLLocalAccountIdentification.java | 92 +- .../transferwebhooks/PartyIdentification.java | 246 +- .../transferwebhooks/PaymentInstrument.java | 51 +- .../transferwebhooks/PlatformPayment.java | 274 +- .../RelayedAuthorisationData.java | 73 +- .../model/transferwebhooks/Resource.java | 68 +- .../transferwebhooks/ResourceReference.java | 48 +- .../SELocalAccountIdentification.java | 119 +- .../SGLocalAccountIdentification.java | 71 +- .../model/transferwebhooks/ThreeDSecure.java | 44 +- .../TransactionEventViolation.java | 76 +- .../TransactionRuleReference.java | 78 +- .../TransactionRuleSource.java | 78 +- .../TransactionRulesResult.java | 99 +- .../model/transferwebhooks/TransferData.java | 649 ++- .../TransferDataCategoryData.java | 597 +- .../TransferDataTracking.java | 503 +- .../model/transferwebhooks/TransferEvent.java | 266 +- .../TransferEventEventsDataInner.java | 419 +- .../TransferEventTrackingData.java | 504 +- .../TransferNotificationCounterParty.java | 140 +- .../TransferNotificationMerchantData.java | 90 +- .../TransferNotificationRequest.java | 96 +- .../TransferNotificationValidationFact.java | 60 +- .../transferwebhooks/TransferReview.java | 110 +- .../TransferWebhooksHandler.java | 97 +- .../UKLocalAccountIdentification.java | 89 +- .../USLocalAccountIdentification.java | 121 +- .../balancecontrol/BalanceControlApi.java | 111 +- .../balanceplatform/AccountHoldersApi.java | 483 +- .../AuthorizedCardUsersApi.java | 342 +- .../balanceplatform/BalanceAccountsApi.java | 835 +-- .../service/balanceplatform/BalancesApi.java | 522 +- .../BankAccountValidationApi.java | 102 +- .../balanceplatform/CardOrdersApi.java | 304 +- .../balanceplatform/GrantAccountsApi.java | 124 +- .../balanceplatform/GrantOffersApi.java | 198 +- .../balanceplatform/ManageCardPinApi.java | 225 +- .../balanceplatform/ManageScaDevicesApi.java | 482 +- .../balanceplatform/NetworkTokensApi.java | 176 +- .../PaymentInstrumentGroupsApi.java | 249 +- .../PaymentInstrumentsApi.java | 666 ++- .../service/balanceplatform/PlatformApi.java | 277 +- .../balanceplatform/TransactionRulesApi.java | 333 +- .../balanceplatform/TransferRoutesApi.java | 104 +- .../adyen/service/binlookup/BinLookupApi.java | 157 +- .../adyen/service/checkout/DonationsApi.java | 157 +- .../service/checkout/ModificationsApi.java | 480 +- .../com/adyen/service/checkout/OrdersApi.java | 210 +- .../service/checkout/PaymentLinksApi.java | 255 +- .../adyen/service/checkout/PaymentsApi.java | 394 +- .../adyen/service/checkout/RecurringApi.java | 277 +- .../adyen/service/checkout/UtilityApi.java | 295 +- .../dataprotection/DataProtectionApi.java | 108 +- .../adyen/service/disputes/DisputesApi.java | 343 +- .../BusinessLinesApi.java | 312 +- .../legalentitymanagement/DocumentsApi.java | 319 +- .../HostedOnboardingApi.java | 247 +- .../LegalEntitiesApi.java | 429 +- .../PciQuestionnairesApi.java | 420 +- .../TaxEDeliveryConsentApi.java | 193 +- .../TermsOfServiceApi.java | 471 +- .../TransferInstrumentsApi.java | 314 +- .../management/AccountCompanyLevelApi.java | 277 +- .../management/AccountMerchantLevelApi.java | 317 +- .../management/AccountStoreLevelApi.java | 676 ++- .../AllowedOriginsCompanyLevelApi.java | 400 +- .../AllowedOriginsMerchantLevelApi.java | 402 +- .../AndroidFilesCompanyLevelApi.java | 527 +- .../ApiCredentialsCompanyLevelApi.java | 390 +- .../ApiCredentialsMerchantLevelApi.java | 383 +- .../management/ApiKeyCompanyLevelApi.java | 130 +- .../management/ApiKeyMerchantLevelApi.java | 131 +- .../management/ClientKeyCompanyLevelApi.java | 131 +- .../management/ClientKeyMerchantLevelApi.java | 131 +- .../management/MyApiCredentialApi.java | 390 +- .../PaymentMethodsMerchantLevelApi.java | 556 +- .../PayoutSettingsMerchantLevelApi.java | 425 +- .../SplitConfigurationMerchantLevelApi.java | 896 +-- .../TerminalActionsCompanyLevelApi.java | 239 +- .../TerminalActionsTerminalLevelApi.java | 105 +- .../TerminalOrdersCompanyLevelApi.java | 907 +-- .../TerminalOrdersMerchantLevelApi.java | 908 +-- .../TerminalSettingsCompanyLevelApi.java | 369 +- .../TerminalSettingsMerchantLevelApi.java | 369 +- .../TerminalSettingsStoreLevelApi.java | 739 +-- .../TerminalSettingsTerminalLevelApi.java | 337 +- .../management/TerminalsTerminalLevelApi.java | 248 +- .../management/UsersCompanyLevelApi.java | 393 +- .../management/UsersMerchantLevelApi.java | 392 +- .../management/WebhooksCompanyLevelApi.java | 595 +- .../management/WebhooksMerchantLevelApi.java | 592 +- .../service/payment/ModificationsApi.java | 477 +- .../adyen/service/payment/PaymentsApi.java | 339 +- .../service/paymentsapp/PaymentsAppApi.java | 492 +- .../service/payout/InitializationApi.java | 209 +- .../service/payout/InstantPayoutsApi.java | 102 +- .../adyen/service/payout/ReviewingApi.java | 155 +- .../adyen/service/posmobile/PosMobileApi.java | 103 +- .../adyen/service/recurring/RecurringApi.java | 446 +- .../SessionAuthenticationApi.java | 106 +- .../service/storedvalue/StoredValueApi.java | 402 +- .../adyen/service/transfers/CapitalApi.java | 279 +- .../service/transfers/TransactionsApi.java | 281 +- .../adyen/service/transfers/TransfersApi.java | 525 +- .../nexo/PredefinedContentHelperTest.java | 178 +- 1342 files changed, 145266 insertions(+), 99555 deletions(-) diff --git a/src/main/java/com/adyen/model/acswebhooks/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/acswebhooks/AbstractOpenApiSchema.java index a6b23ec1d..bbee8bb88 100644 --- a/src/main/java/com/adyen/model/acswebhooks/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/acswebhooks/AbstractOpenApiSchema.java @@ -2,145 +2,141 @@ * Authentication webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.acswebhooks; -import java.util.Objects; -import java.util.Map; -import jakarta.ws.rs.core.GenericType; - import com.fasterxml.jackson.annotation.JsonValue; +import jakarta.ws.rs.core.GenericType; +import java.util.Map; +import java.util.Objects; -/** - * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec - */ +/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() {return instance;} - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) {this.instance = instance;} - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); - } else { - return object.getActualInstance(); - } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() { + return instance; + } + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) { + this.instance = instance; + } + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf + * schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); + } else { + return object.getActualInstance(); } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) && - Objects.equals(this.isNullable, a.isNullable) && - Objects.equals(this.schemaType, a.schemaType); + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; } + return o.toString().replace("\n", "\n "); + } - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); + public boolean equals(Object o) { + if (this == o) { + return true; } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); + if (o == null || getClass() != o.getClass()) { + return false; } - - - -} \ No newline at end of file + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) + && Objects.equals(this.isNullable, a.isNullable) + && Objects.equals(this.schemaType, a.schemaType); + } + + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); + } + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); + } +} diff --git a/src/main/java/com/adyen/model/acswebhooks/AcsWebhooksHandler.java b/src/main/java/com/adyen/model/acswebhooks/AcsWebhooksHandler.java index 19a5e1e96..c716fceef 100644 --- a/src/main/java/com/adyen/model/acswebhooks/AcsWebhooksHandler.java +++ b/src/main/java/com/adyen/model/acswebhooks/AcsWebhooksHandler.java @@ -2,7 +2,7 @@ * Authentication webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,85 +16,85 @@ /** * Handler for processing AcsWebhooks. - *

- * This class provides functionality to deserialize the payload of AcsWebhooks events. + * + *

This class provides functionality to deserialize the payload of AcsWebhooks events. */ public class AcsWebhooksHandler { - private static final Logger LOG = Logger.getLogger(AcsWebhooksHandler.class.getName()); - - private final String payload; - - /** - * Constructs a new handler for the given webhook payload - * - * @param payload the raw JSON payload from the webhook - */ - public AcsWebhooksHandler(String payload) { - this.payload = payload; - } - - /** - * Attempts to deserialize the webhook payload into a AuthenticationNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getAuthenticationNotificationRequest() { - - var optionalAuthenticationNotificationRequest = getOptionalField(AuthenticationNotificationRequest.class); - - if(optionalAuthenticationNotificationRequest.isPresent()) { - // verify event type - for (var value : AuthenticationNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalAuthenticationNotificationRequest.get().getType())) { - // found matching event type - return optionalAuthenticationNotificationRequest; - } - } + private static final Logger LOG = Logger.getLogger(AcsWebhooksHandler.class.getName()); + + private final String payload; + + /** + * Constructs a new handler for the given webhook payload + * + * @param payload the raw JSON payload from the webhook + */ + public AcsWebhooksHandler(String payload) { + this.payload = payload; + } + + /** + * Attempts to deserialize the webhook payload into a AuthenticationNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getAuthenticationNotificationRequest() { + + var optionalAuthenticationNotificationRequest = + getOptionalField(AuthenticationNotificationRequest.class); + + if (optionalAuthenticationNotificationRequest.isPresent()) { + // verify event type + for (var value : AuthenticationNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalAuthenticationNotificationRequest.get().getType())) { + // found matching event type + return optionalAuthenticationNotificationRequest; } - - return Optional.empty(); + } } - /** - * Attempts to deserialize the webhook payload into a RelayedAuthenticationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getRelayedAuthenticationRequest() { - - var optionalRelayedAuthenticationRequest = getOptionalField(RelayedAuthenticationRequest.class); + return Optional.empty(); + } - if(optionalRelayedAuthenticationRequest.isPresent()) { - // verify event type - for (var value : RelayedAuthenticationRequest.TypeEnum.values()) { - if (value.equals(optionalRelayedAuthenticationRequest.get().getType())) { - // found matching event type - return optionalRelayedAuthenticationRequest; - } - } - } + /** + * Attempts to deserialize the webhook payload into a RelayedAuthenticationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getRelayedAuthenticationRequest() { - return Optional.empty(); - } + var optionalRelayedAuthenticationRequest = getOptionalField(RelayedAuthenticationRequest.class); - /** - * Deserializes the payload into the specified class type. - * - * @param clazz the class to deserialize into - * @param the type of the class - * @return an Optional containing the deserialized object, or empty if an error occurs - */ - private Optional getOptionalField(Class clazz) { - try { - T val = JSON.getMapper().readValue(payload, clazz); - return Optional.ofNullable(val); - } catch (Exception e) { - // an error has occurred during deserialization (object not found, deserialization error) - LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); - LOG.warning("Deserialization error: " + e.getMessage()); - return Optional.empty(); + if (optionalRelayedAuthenticationRequest.isPresent()) { + // verify event type + for (var value : RelayedAuthenticationRequest.TypeEnum.values()) { + if (value.equals(optionalRelayedAuthenticationRequest.get().getType())) { + // found matching event type + return optionalRelayedAuthenticationRequest; } + } } -} \ No newline at end of file + return Optional.empty(); + } + + /** + * Deserializes the payload into the specified class type. + * + * @param clazz the class to deserialize into + * @param the type of the class + * @return an Optional containing the deserialized object, or empty if an error occurs + */ + private Optional getOptionalField(Class clazz) { + try { + T val = JSON.getMapper().readValue(payload, clazz); + return Optional.ofNullable(val); + } catch (Exception e) { + // an error has occurred during deserialization (object not found, deserialization error) + LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); + LOG.warning("Deserialization error: " + e.getMessage()); + return Optional.empty(); + } + } +} diff --git a/src/main/java/com/adyen/model/acswebhooks/Amount.java b/src/main/java/com/adyen/model/acswebhooks/Amount.java index a698387ea..1266aa4d6 100644 --- a/src/main/java/com/adyen/model/acswebhooks/Amount.java +++ b/src/main/java/com/adyen/model/acswebhooks/Amount.java @@ -2,36 +2,23 @@ * Authentication webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.acswebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Amount - */ -@JsonPropertyOrder({ - Amount.JSON_PROPERTY_CURRENCY, - Amount.JSON_PROPERTY_VALUE -}) - +/** Amount */ +@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -39,13 +26,14 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() { - } + public Amount() {} /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount currency(String currency) { @@ -54,8 +42,11 @@ public Amount currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +55,11 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,9 +68,11 @@ public void setCurrency(String currency) { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount value(Long value) { @@ -86,8 +81,11 @@ public Amount value(Long value) { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). - * @return value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * + * @return value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +94,11 @@ public Long getValue() { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +106,7 @@ public void setValue(Long value) { this.value = value; } - /** - * Return true if this Amount object is equal to o. - */ + /** Return true if this Amount object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +116,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) && - Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) + && Objects.equals(this.value, amount.value); } @Override @@ -138,8 +136,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +145,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -158,11 +155,12 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } -/** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/acswebhooks/AuthenticationDecision.java b/src/main/java/com/adyen/model/acswebhooks/AuthenticationDecision.java index e77a07e21..78d30b6d5 100644 --- a/src/main/java/com/adyen/model/acswebhooks/AuthenticationDecision.java +++ b/src/main/java/com/adyen/model/acswebhooks/AuthenticationDecision.java @@ -2,41 +2,34 @@ * Authentication webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.acswebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * AuthenticationDecision - */ -@JsonPropertyOrder({ - AuthenticationDecision.JSON_PROPERTY_STATUS -}) - +/** AuthenticationDecision */ +@JsonPropertyOrder({AuthenticationDecision.JSON_PROPERTY_STATUS}) public class AuthenticationDecision { /** - * The status of the authentication. Possible values: * **refused** * **proceed** For more information, refer to [Authenticate cardholders using the Authentication SDK](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/authenticate-cardholders/). + * The status of the authentication. Possible values: * **refused** * **proceed** For more + * information, refer to [Authenticate cardholders using the Authentication + * SDK](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/authenticate-cardholders/). */ public enum StatusEnum { - PROCEED(String.valueOf("proceed")), REFUSED(String.valueOf("refused")); @@ -46,7 +39,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -67,7 +60,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -75,13 +72,16 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; - public AuthenticationDecision() { - } + public AuthenticationDecision() {} /** - * The status of the authentication. Possible values: * **refused** * **proceed** For more information, refer to [Authenticate cardholders using the Authentication SDK](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/authenticate-cardholders/). + * The status of the authentication. Possible values: * **refused** * **proceed** For more + * information, refer to [Authenticate cardholders using the Authentication + * SDK](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/authenticate-cardholders/). * - * @param status The status of the authentication. Possible values: * **refused** * **proceed** For more information, refer to [Authenticate cardholders using the Authentication SDK](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/authenticate-cardholders/). + * @param status The status of the authentication. Possible values: * **refused** * **proceed** + * For more information, refer to [Authenticate cardholders using the Authentication + * SDK](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/authenticate-cardholders/). * @return the current {@code AuthenticationDecision} instance, allowing for method chaining */ public AuthenticationDecision status(StatusEnum status) { @@ -90,8 +90,13 @@ public AuthenticationDecision status(StatusEnum status) { } /** - * The status of the authentication. Possible values: * **refused** * **proceed** For more information, refer to [Authenticate cardholders using the Authentication SDK](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/authenticate-cardholders/). - * @return status The status of the authentication. Possible values: * **refused** * **proceed** For more information, refer to [Authenticate cardholders using the Authentication SDK](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/authenticate-cardholders/). + * The status of the authentication. Possible values: * **refused** * **proceed** For more + * information, refer to [Authenticate cardholders using the Authentication + * SDK](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/authenticate-cardholders/). + * + * @return status The status of the authentication. Possible values: * **refused** * **proceed** + * For more information, refer to [Authenticate cardholders using the Authentication + * SDK](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/authenticate-cardholders/). */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,9 +105,13 @@ public StatusEnum getStatus() { } /** - * The status of the authentication. Possible values: * **refused** * **proceed** For more information, refer to [Authenticate cardholders using the Authentication SDK](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/authenticate-cardholders/). + * The status of the authentication. Possible values: * **refused** * **proceed** For more + * information, refer to [Authenticate cardholders using the Authentication + * SDK](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/authenticate-cardholders/). * - * @param status The status of the authentication. Possible values: * **refused** * **proceed** For more information, refer to [Authenticate cardholders using the Authentication SDK](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/authenticate-cardholders/). + * @param status The status of the authentication. Possible values: * **refused** * **proceed** + * For more information, refer to [Authenticate cardholders using the Authentication + * SDK](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/authenticate-cardholders/). */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,9 +119,7 @@ public void setStatus(StatusEnum status) { this.status = status; } - /** - * Return true if this AuthenticationDecision object is equal to o. - */ + /** Return true if this AuthenticationDecision object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -140,8 +147,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -150,21 +156,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AuthenticationDecision given an JSON string * * @param jsonString JSON string * @return An instance of AuthenticationDecision - * @throws JsonProcessingException if the JSON string is invalid with respect to AuthenticationDecision + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AuthenticationDecision */ public static AuthenticationDecision fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AuthenticationDecision.class); } -/** - * Convert an instance of AuthenticationDecision to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AuthenticationDecision to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/acswebhooks/AuthenticationInfo.java b/src/main/java/com/adyen/model/acswebhooks/AuthenticationInfo.java index fba7c930f..612f7db9c 100644 --- a/src/main/java/com/adyen/model/acswebhooks/AuthenticationInfo.java +++ b/src/main/java/com/adyen/model/acswebhooks/AuthenticationInfo.java @@ -2,33 +2,27 @@ * Authentication webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.acswebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.acswebhooks.ChallengeInfo; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * AuthenticationInfo - */ +/** AuthenticationInfo */ @JsonPropertyOrder({ AuthenticationInfo.JSON_PROPERTY_ACS_TRANS_ID, AuthenticationInfo.JSON_PROPERTY_CHALLENGE, @@ -46,7 +40,6 @@ AuthenticationInfo.JSON_PROPERTY_TRANS_STATUS_REASON, AuthenticationInfo.JSON_PROPERTY_TYPE }) - public class AuthenticationInfo { public static final String JSON_PROPERTY_ACS_TRANS_ID = "acsTransId"; private String acsTransId; @@ -55,10 +48,16 @@ public class AuthenticationInfo { private ChallengeInfo challenge; /** - * Specifies a preference for receiving a challenge. Possible values: * **01**: No preference * **02**: No challenge requested * **03**: Challenge requested (preference) * **04**: Challenge requested (mandate) * **05**: No challenge requested (transactional risk analysis is already performed) * **07**: No challenge requested (SCA is already performed) * **08**: No challenge requested (trusted beneficiaries exemption of no challenge required) * **09**: Challenge requested (trusted beneficiaries prompt requested if challenge required) * **80**: No challenge requested (secure corporate payment with Mastercard) * **82**: No challenge requested (secure corporate payment with Visa) + * Specifies a preference for receiving a challenge. Possible values: * **01**: No preference * + * **02**: No challenge requested * **03**: Challenge requested (preference) * **04**: Challenge + * requested (mandate) * **05**: No challenge requested (transactional risk analysis is already + * performed) * **07**: No challenge requested (SCA is already performed) * **08**: No challenge + * requested (trusted beneficiaries exemption of no challenge required) * **09**: Challenge + * requested (trusted beneficiaries prompt requested if challenge required) * **80**: No challenge + * requested (secure corporate payment with Mastercard) * **82**: No challenge requested (secure + * corporate payment with Visa) */ public enum ChallengeIndicatorEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -84,7 +83,7 @@ public enum ChallengeIndicatorEnum { private String value; ChallengeIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -105,7 +104,11 @@ public static ChallengeIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ChallengeIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChallengeIndicatorEnum.values())); + LOG.warning( + "ChallengeIndicatorEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ChallengeIndicatorEnum.values())); return null; } } @@ -117,10 +120,11 @@ public static ChallengeIndicatorEnum fromValue(String value) { private OffsetDateTime createdAt; /** - * Indicates the type of channel interface being used to initiate the transaction. Possible values: * **app** * **browser** * **3DSRequestorInitiated** (initiated by a merchant when the cardholder is not available) + * Indicates the type of channel interface being used to initiate the transaction. Possible + * values: * **app** * **browser** * **3DSRequestorInitiated** (initiated by a merchant when the + * cardholder is not available) */ public enum DeviceChannelEnum { - APP(String.valueOf("app")), BROWSER(String.valueOf("browser")), @@ -132,7 +136,7 @@ public enum DeviceChannelEnum { private String value; DeviceChannelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -153,7 +157,11 @@ public static DeviceChannelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("DeviceChannelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(DeviceChannelEnum.values())); + LOG.warning( + "DeviceChannelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(DeviceChannelEnum.values())); return null; } } @@ -165,10 +173,12 @@ public static DeviceChannelEnum fromValue(String value) { private String dsTransID; /** - * Indicates the exemption type that was applied to the authentication by the issuer, if exemption applied. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * **acquirerExemption** * **noExemptionApplied** * **visaDAFExemption** + * Indicates the exemption type that was applied to the authentication by the issuer, if exemption + * applied. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * + * **transactionRiskAnalysis** * **acquirerExemption** * **noExemptionApplied** * + * **visaDAFExemption** */ public enum ExemptionIndicatorEnum { - LOWVALUE(String.valueOf("lowValue")), SECURECORPORATE(String.valueOf("secureCorporate")), @@ -188,7 +198,7 @@ public enum ExemptionIndicatorEnum { private String value; ExemptionIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -209,7 +219,11 @@ public static ExemptionIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ExemptionIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ExemptionIndicatorEnum.values())); + LOG.warning( + "ExemptionIndicatorEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ExemptionIndicatorEnum.values())); return null; } } @@ -221,10 +235,10 @@ public static ExemptionIndicatorEnum fromValue(String value) { private Boolean inPSD2Scope; /** - * Identifies the category of the message for a specific use case. Possible values: * **payment** * **nonPayment** + * Identifies the category of the message for a specific use case. Possible values: * **payment** + * * **nonPayment** */ public enum MessageCategoryEnum { - PAYMENT(String.valueOf("payment")), NONPAYMENT(String.valueOf("nonPayment")); @@ -234,7 +248,7 @@ public enum MessageCategoryEnum { private String value; MessageCategoryEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -255,7 +269,11 @@ public static MessageCategoryEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("MessageCategoryEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(MessageCategoryEnum.values())); + LOG.warning( + "MessageCategoryEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(MessageCategoryEnum.values())); return null; } } @@ -273,10 +291,13 @@ public static MessageCategoryEnum fromValue(String value) { private String threeDSServerTransID; /** - * The `transStatus` value as defined in the 3D Secure 2 specification. Possible values: * **Y**: Authentication / Account verification successful. * **N**: Not Authenticated / Account not verified. Transaction denied. * **U**: Authentication / Account verification could not be performed. * **I**: Informational Only / 3D Secure Requestor challenge preference acknowledged. * **R**: Authentication / Account verification rejected by the Issuer. + * The `transStatus` value as defined in the 3D Secure 2 specification. Possible values: + * * **Y**: Authentication / Account verification successful. * **N**: Not Authenticated / Account + * not verified. Transaction denied. * **U**: Authentication / Account verification could not be + * performed. * **I**: Informational Only / 3D Secure Requestor challenge preference acknowledged. + * * **R**: Authentication / Account verification rejected by the Issuer. */ public enum TransStatusEnum { - Y(String.valueOf("Y")), N(String.valueOf("N")), @@ -292,7 +313,7 @@ public enum TransStatusEnum { private String value; TransStatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -313,7 +334,11 @@ public static TransStatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TransStatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TransStatusEnum.values())); + LOG.warning( + "TransStatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TransStatusEnum.values())); return null; } } @@ -322,10 +347,11 @@ public static TransStatusEnum fromValue(String value) { private TransStatusEnum transStatus; /** - * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * Provides information on why the `transStatus` field has the specified value. For + * possible values, refer to [our + * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). */ public enum TransStatusReasonEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -401,7 +427,7 @@ public enum TransStatusReasonEnum { private String value; TransStatusReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -422,7 +448,11 @@ public static TransStatusReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TransStatusReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TransStatusReasonEnum.values())); + LOG.warning( + "TransStatusReasonEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TransStatusReasonEnum.values())); return null; } } @@ -430,11 +460,8 @@ public static TransStatusReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANS_STATUS_REASON = "transStatusReason"; private TransStatusReasonEnum transStatusReason; - /** - * The type of authentication performed. Possible values: * **frictionless** * **challenge** - */ + /** The type of authentication performed. Possible values: * **frictionless** * **challenge** */ public enum TypeEnum { - FRICTIONLESS(String.valueOf("frictionless")), CHALLENGE(String.valueOf("challenge")); @@ -444,7 +471,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -465,7 +492,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -473,13 +504,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AuthenticationInfo() { - } + public AuthenticationInfo() {} /** - * Universally unique transaction identifier assigned by the Access Control Server (ACS) to identify a single transaction. + * Universally unique transaction identifier assigned by the Access Control Server (ACS) to + * identify a single transaction. * - * @param acsTransId Universally unique transaction identifier assigned by the Access Control Server (ACS) to identify a single transaction. + * @param acsTransId Universally unique transaction identifier assigned by the Access Control + * Server (ACS) to identify a single transaction. * @return the current {@code AuthenticationInfo} instance, allowing for method chaining */ public AuthenticationInfo acsTransId(String acsTransId) { @@ -488,8 +520,11 @@ public AuthenticationInfo acsTransId(String acsTransId) { } /** - * Universally unique transaction identifier assigned by the Access Control Server (ACS) to identify a single transaction. - * @return acsTransId Universally unique transaction identifier assigned by the Access Control Server (ACS) to identify a single transaction. + * Universally unique transaction identifier assigned by the Access Control Server (ACS) to + * identify a single transaction. + * + * @return acsTransId Universally unique transaction identifier assigned by the Access Control + * Server (ACS) to identify a single transaction. */ @JsonProperty(JSON_PROPERTY_ACS_TRANS_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -498,9 +533,11 @@ public String getAcsTransId() { } /** - * Universally unique transaction identifier assigned by the Access Control Server (ACS) to identify a single transaction. + * Universally unique transaction identifier assigned by the Access Control Server (ACS) to + * identify a single transaction. * - * @param acsTransId Universally unique transaction identifier assigned by the Access Control Server (ACS) to identify a single transaction. + * @param acsTransId Universally unique transaction identifier assigned by the Access Control + * Server (ACS) to identify a single transaction. */ @JsonProperty(JSON_PROPERTY_ACS_TRANS_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -511,7 +548,7 @@ public void setAcsTransId(String acsTransId) { /** * challenge * - * @param challenge + * @param challenge * @return the current {@code AuthenticationInfo} instance, allowing for method chaining */ public AuthenticationInfo challenge(ChallengeInfo challenge) { @@ -521,7 +558,8 @@ public AuthenticationInfo challenge(ChallengeInfo challenge) { /** * Get challenge - * @return challenge + * + * @return challenge */ @JsonProperty(JSON_PROPERTY_CHALLENGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -532,7 +570,7 @@ public ChallengeInfo getChallenge() { /** * challenge * - * @param challenge + * @param challenge */ @JsonProperty(JSON_PROPERTY_CHALLENGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -541,9 +579,23 @@ public void setChallenge(ChallengeInfo challenge) { } /** - * Specifies a preference for receiving a challenge. Possible values: * **01**: No preference * **02**: No challenge requested * **03**: Challenge requested (preference) * **04**: Challenge requested (mandate) * **05**: No challenge requested (transactional risk analysis is already performed) * **07**: No challenge requested (SCA is already performed) * **08**: No challenge requested (trusted beneficiaries exemption of no challenge required) * **09**: Challenge requested (trusted beneficiaries prompt requested if challenge required) * **80**: No challenge requested (secure corporate payment with Mastercard) * **82**: No challenge requested (secure corporate payment with Visa) + * Specifies a preference for receiving a challenge. Possible values: * **01**: No preference * + * **02**: No challenge requested * **03**: Challenge requested (preference) * **04**: Challenge + * requested (mandate) * **05**: No challenge requested (transactional risk analysis is already + * performed) * **07**: No challenge requested (SCA is already performed) * **08**: No challenge + * requested (trusted beneficiaries exemption of no challenge required) * **09**: Challenge + * requested (trusted beneficiaries prompt requested if challenge required) * **80**: No challenge + * requested (secure corporate payment with Mastercard) * **82**: No challenge requested (secure + * corporate payment with Visa) * - * @param challengeIndicator Specifies a preference for receiving a challenge. Possible values: * **01**: No preference * **02**: No challenge requested * **03**: Challenge requested (preference) * **04**: Challenge requested (mandate) * **05**: No challenge requested (transactional risk analysis is already performed) * **07**: No challenge requested (SCA is already performed) * **08**: No challenge requested (trusted beneficiaries exemption of no challenge required) * **09**: Challenge requested (trusted beneficiaries prompt requested if challenge required) * **80**: No challenge requested (secure corporate payment with Mastercard) * **82**: No challenge requested (secure corporate payment with Visa) + * @param challengeIndicator Specifies a preference for receiving a challenge. Possible values: * + * **01**: No preference * **02**: No challenge requested * **03**: Challenge requested + * (preference) * **04**: Challenge requested (mandate) * **05**: No challenge requested + * (transactional risk analysis is already performed) * **07**: No challenge requested (SCA is + * already performed) * **08**: No challenge requested (trusted beneficiaries exemption of no + * challenge required) * **09**: Challenge requested (trusted beneficiaries prompt requested + * if challenge required) * **80**: No challenge requested (secure corporate payment with + * Mastercard) * **82**: No challenge requested (secure corporate payment with Visa) * @return the current {@code AuthenticationInfo} instance, allowing for method chaining */ public AuthenticationInfo challengeIndicator(ChallengeIndicatorEnum challengeIndicator) { @@ -552,8 +604,23 @@ public AuthenticationInfo challengeIndicator(ChallengeIndicatorEnum challengeInd } /** - * Specifies a preference for receiving a challenge. Possible values: * **01**: No preference * **02**: No challenge requested * **03**: Challenge requested (preference) * **04**: Challenge requested (mandate) * **05**: No challenge requested (transactional risk analysis is already performed) * **07**: No challenge requested (SCA is already performed) * **08**: No challenge requested (trusted beneficiaries exemption of no challenge required) * **09**: Challenge requested (trusted beneficiaries prompt requested if challenge required) * **80**: No challenge requested (secure corporate payment with Mastercard) * **82**: No challenge requested (secure corporate payment with Visa) - * @return challengeIndicator Specifies a preference for receiving a challenge. Possible values: * **01**: No preference * **02**: No challenge requested * **03**: Challenge requested (preference) * **04**: Challenge requested (mandate) * **05**: No challenge requested (transactional risk analysis is already performed) * **07**: No challenge requested (SCA is already performed) * **08**: No challenge requested (trusted beneficiaries exemption of no challenge required) * **09**: Challenge requested (trusted beneficiaries prompt requested if challenge required) * **80**: No challenge requested (secure corporate payment with Mastercard) * **82**: No challenge requested (secure corporate payment with Visa) + * Specifies a preference for receiving a challenge. Possible values: * **01**: No preference * + * **02**: No challenge requested * **03**: Challenge requested (preference) * **04**: Challenge + * requested (mandate) * **05**: No challenge requested (transactional risk analysis is already + * performed) * **07**: No challenge requested (SCA is already performed) * **08**: No challenge + * requested (trusted beneficiaries exemption of no challenge required) * **09**: Challenge + * requested (trusted beneficiaries prompt requested if challenge required) * **80**: No challenge + * requested (secure corporate payment with Mastercard) * **82**: No challenge requested (secure + * corporate payment with Visa) + * + * @return challengeIndicator Specifies a preference for receiving a challenge. Possible values: * + * **01**: No preference * **02**: No challenge requested * **03**: Challenge requested + * (preference) * **04**: Challenge requested (mandate) * **05**: No challenge requested + * (transactional risk analysis is already performed) * **07**: No challenge requested (SCA is + * already performed) * **08**: No challenge requested (trusted beneficiaries exemption of no + * challenge required) * **09**: Challenge requested (trusted beneficiaries prompt requested + * if challenge required) * **80**: No challenge requested (secure corporate payment with + * Mastercard) * **82**: No challenge requested (secure corporate payment with Visa) */ @JsonProperty(JSON_PROPERTY_CHALLENGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -562,9 +629,23 @@ public ChallengeIndicatorEnum getChallengeIndicator() { } /** - * Specifies a preference for receiving a challenge. Possible values: * **01**: No preference * **02**: No challenge requested * **03**: Challenge requested (preference) * **04**: Challenge requested (mandate) * **05**: No challenge requested (transactional risk analysis is already performed) * **07**: No challenge requested (SCA is already performed) * **08**: No challenge requested (trusted beneficiaries exemption of no challenge required) * **09**: Challenge requested (trusted beneficiaries prompt requested if challenge required) * **80**: No challenge requested (secure corporate payment with Mastercard) * **82**: No challenge requested (secure corporate payment with Visa) + * Specifies a preference for receiving a challenge. Possible values: * **01**: No preference * + * **02**: No challenge requested * **03**: Challenge requested (preference) * **04**: Challenge + * requested (mandate) * **05**: No challenge requested (transactional risk analysis is already + * performed) * **07**: No challenge requested (SCA is already performed) * **08**: No challenge + * requested (trusted beneficiaries exemption of no challenge required) * **09**: Challenge + * requested (trusted beneficiaries prompt requested if challenge required) * **80**: No challenge + * requested (secure corporate payment with Mastercard) * **82**: No challenge requested (secure + * corporate payment with Visa) * - * @param challengeIndicator Specifies a preference for receiving a challenge. Possible values: * **01**: No preference * **02**: No challenge requested * **03**: Challenge requested (preference) * **04**: Challenge requested (mandate) * **05**: No challenge requested (transactional risk analysis is already performed) * **07**: No challenge requested (SCA is already performed) * **08**: No challenge requested (trusted beneficiaries exemption of no challenge required) * **09**: Challenge requested (trusted beneficiaries prompt requested if challenge required) * **80**: No challenge requested (secure corporate payment with Mastercard) * **82**: No challenge requested (secure corporate payment with Visa) + * @param challengeIndicator Specifies a preference for receiving a challenge. Possible values: * + * **01**: No preference * **02**: No challenge requested * **03**: Challenge requested + * (preference) * **04**: Challenge requested (mandate) * **05**: No challenge requested + * (transactional risk analysis is already performed) * **07**: No challenge requested (SCA is + * already performed) * **08**: No challenge requested (trusted beneficiaries exemption of no + * challenge required) * **09**: Challenge requested (trusted beneficiaries prompt requested + * if challenge required) * **80**: No challenge requested (secure corporate payment with + * Mastercard) * **82**: No challenge requested (secure corporate payment with Visa) */ @JsonProperty(JSON_PROPERTY_CHALLENGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -573,9 +654,13 @@ public void setChallengeIndicator(ChallengeIndicatorEnum challengeIndicator) { } /** - * Date and time in UTC of the cardholder authentication. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * Date and time in UTC of the cardholder authentication. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. * - * @param createdAt Date and time in UTC of the cardholder authentication. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * @param createdAt Date and time in UTC of the cardholder authentication. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. * @return the current {@code AuthenticationInfo} instance, allowing for method chaining */ public AuthenticationInfo createdAt(OffsetDateTime createdAt) { @@ -584,8 +669,13 @@ public AuthenticationInfo createdAt(OffsetDateTime createdAt) { } /** - * Date and time in UTC of the cardholder authentication. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. - * @return createdAt Date and time in UTC of the cardholder authentication. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * Date and time in UTC of the cardholder authentication. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. + * + * @return createdAt Date and time in UTC of the cardholder authentication. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -594,9 +684,13 @@ public OffsetDateTime getCreatedAt() { } /** - * Date and time in UTC of the cardholder authentication. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * Date and time in UTC of the cardholder authentication. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. * - * @param createdAt Date and time in UTC of the cardholder authentication. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * @param createdAt Date and time in UTC of the cardholder authentication. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -605,9 +699,13 @@ public void setCreatedAt(OffsetDateTime createdAt) { } /** - * Indicates the type of channel interface being used to initiate the transaction. Possible values: * **app** * **browser** * **3DSRequestorInitiated** (initiated by a merchant when the cardholder is not available) + * Indicates the type of channel interface being used to initiate the transaction. Possible + * values: * **app** * **browser** * **3DSRequestorInitiated** (initiated by a merchant when the + * cardholder is not available) * - * @param deviceChannel Indicates the type of channel interface being used to initiate the transaction. Possible values: * **app** * **browser** * **3DSRequestorInitiated** (initiated by a merchant when the cardholder is not available) + * @param deviceChannel Indicates the type of channel interface being used to initiate the + * transaction. Possible values: * **app** * **browser** * **3DSRequestorInitiated** + * (initiated by a merchant when the cardholder is not available) * @return the current {@code AuthenticationInfo} instance, allowing for method chaining */ public AuthenticationInfo deviceChannel(DeviceChannelEnum deviceChannel) { @@ -616,8 +714,13 @@ public AuthenticationInfo deviceChannel(DeviceChannelEnum deviceChannel) { } /** - * Indicates the type of channel interface being used to initiate the transaction. Possible values: * **app** * **browser** * **3DSRequestorInitiated** (initiated by a merchant when the cardholder is not available) - * @return deviceChannel Indicates the type of channel interface being used to initiate the transaction. Possible values: * **app** * **browser** * **3DSRequestorInitiated** (initiated by a merchant when the cardholder is not available) + * Indicates the type of channel interface being used to initiate the transaction. Possible + * values: * **app** * **browser** * **3DSRequestorInitiated** (initiated by a merchant when the + * cardholder is not available) + * + * @return deviceChannel Indicates the type of channel interface being used to initiate the + * transaction. Possible values: * **app** * **browser** * **3DSRequestorInitiated** + * (initiated by a merchant when the cardholder is not available) */ @JsonProperty(JSON_PROPERTY_DEVICE_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -626,9 +729,13 @@ public DeviceChannelEnum getDeviceChannel() { } /** - * Indicates the type of channel interface being used to initiate the transaction. Possible values: * **app** * **browser** * **3DSRequestorInitiated** (initiated by a merchant when the cardholder is not available) + * Indicates the type of channel interface being used to initiate the transaction. Possible + * values: * **app** * **browser** * **3DSRequestorInitiated** (initiated by a merchant when the + * cardholder is not available) * - * @param deviceChannel Indicates the type of channel interface being used to initiate the transaction. Possible values: * **app** * **browser** * **3DSRequestorInitiated** (initiated by a merchant when the cardholder is not available) + * @param deviceChannel Indicates the type of channel interface being used to initiate the + * transaction. Possible values: * **app** * **browser** * **3DSRequestorInitiated** + * (initiated by a merchant when the cardholder is not available) */ @JsonProperty(JSON_PROPERTY_DEVICE_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -637,9 +744,11 @@ public void setDeviceChannel(DeviceChannelEnum deviceChannel) { } /** - * Universally unique transaction identifier assigned by the DS (card scheme) to identify a single transaction. + * Universally unique transaction identifier assigned by the DS (card scheme) to identify a single + * transaction. * - * @param dsTransID Universally unique transaction identifier assigned by the DS (card scheme) to identify a single transaction. + * @param dsTransID Universally unique transaction identifier assigned by the DS (card scheme) to + * identify a single transaction. * @return the current {@code AuthenticationInfo} instance, allowing for method chaining */ public AuthenticationInfo dsTransID(String dsTransID) { @@ -648,8 +757,11 @@ public AuthenticationInfo dsTransID(String dsTransID) { } /** - * Universally unique transaction identifier assigned by the DS (card scheme) to identify a single transaction. - * @return dsTransID Universally unique transaction identifier assigned by the DS (card scheme) to identify a single transaction. + * Universally unique transaction identifier assigned by the DS (card scheme) to identify a single + * transaction. + * + * @return dsTransID Universally unique transaction identifier assigned by the DS (card scheme) to + * identify a single transaction. */ @JsonProperty(JSON_PROPERTY_DS_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -658,9 +770,11 @@ public String getDsTransID() { } /** - * Universally unique transaction identifier assigned by the DS (card scheme) to identify a single transaction. + * Universally unique transaction identifier assigned by the DS (card scheme) to identify a single + * transaction. * - * @param dsTransID Universally unique transaction identifier assigned by the DS (card scheme) to identify a single transaction. + * @param dsTransID Universally unique transaction identifier assigned by the DS (card scheme) to + * identify a single transaction. */ @JsonProperty(JSON_PROPERTY_DS_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -669,9 +783,15 @@ public void setDsTransID(String dsTransID) { } /** - * Indicates the exemption type that was applied to the authentication by the issuer, if exemption applied. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * **acquirerExemption** * **noExemptionApplied** * **visaDAFExemption** + * Indicates the exemption type that was applied to the authentication by the issuer, if exemption + * applied. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * + * **transactionRiskAnalysis** * **acquirerExemption** * **noExemptionApplied** * + * **visaDAFExemption** * - * @param exemptionIndicator Indicates the exemption type that was applied to the authentication by the issuer, if exemption applied. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * **acquirerExemption** * **noExemptionApplied** * **visaDAFExemption** + * @param exemptionIndicator Indicates the exemption type that was applied to the authentication + * by the issuer, if exemption applied. Possible values: * **lowValue** * **secureCorporate** + * * **trustedBeneficiary** * **transactionRiskAnalysis** * **acquirerExemption** * + * **noExemptionApplied** * **visaDAFExemption** * @return the current {@code AuthenticationInfo} instance, allowing for method chaining */ public AuthenticationInfo exemptionIndicator(ExemptionIndicatorEnum exemptionIndicator) { @@ -680,8 +800,15 @@ public AuthenticationInfo exemptionIndicator(ExemptionIndicatorEnum exemptionInd } /** - * Indicates the exemption type that was applied to the authentication by the issuer, if exemption applied. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * **acquirerExemption** * **noExemptionApplied** * **visaDAFExemption** - * @return exemptionIndicator Indicates the exemption type that was applied to the authentication by the issuer, if exemption applied. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * **acquirerExemption** * **noExemptionApplied** * **visaDAFExemption** + * Indicates the exemption type that was applied to the authentication by the issuer, if exemption + * applied. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * + * **transactionRiskAnalysis** * **acquirerExemption** * **noExemptionApplied** * + * **visaDAFExemption** + * + * @return exemptionIndicator Indicates the exemption type that was applied to the authentication + * by the issuer, if exemption applied. Possible values: * **lowValue** * **secureCorporate** + * * **trustedBeneficiary** * **transactionRiskAnalysis** * **acquirerExemption** * + * **noExemptionApplied** * **visaDAFExemption** */ @JsonProperty(JSON_PROPERTY_EXEMPTION_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -690,9 +817,15 @@ public ExemptionIndicatorEnum getExemptionIndicator() { } /** - * Indicates the exemption type that was applied to the authentication by the issuer, if exemption applied. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * **acquirerExemption** * **noExemptionApplied** * **visaDAFExemption** + * Indicates the exemption type that was applied to the authentication by the issuer, if exemption + * applied. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * + * **transactionRiskAnalysis** * **acquirerExemption** * **noExemptionApplied** * + * **visaDAFExemption** * - * @param exemptionIndicator Indicates the exemption type that was applied to the authentication by the issuer, if exemption applied. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * **acquirerExemption** * **noExemptionApplied** * **visaDAFExemption** + * @param exemptionIndicator Indicates the exemption type that was applied to the authentication + * by the issuer, if exemption applied. Possible values: * **lowValue** * **secureCorporate** + * * **trustedBeneficiary** * **transactionRiskAnalysis** * **acquirerExemption** * + * **noExemptionApplied** * **visaDAFExemption** */ @JsonProperty(JSON_PROPERTY_EXEMPTION_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -713,6 +846,7 @@ public AuthenticationInfo inPSD2Scope(Boolean inPSD2Scope) { /** * Indicates if the purchase was in the PSD2 scope. + * * @return inPSD2Scope Indicates if the purchase was in the PSD2 scope. */ @JsonProperty(JSON_PROPERTY_IN_P_S_D2_SCOPE) @@ -733,9 +867,11 @@ public void setInPSD2Scope(Boolean inPSD2Scope) { } /** - * Identifies the category of the message for a specific use case. Possible values: * **payment** * **nonPayment** + * Identifies the category of the message for a specific use case. Possible values: * **payment** + * * **nonPayment** * - * @param messageCategory Identifies the category of the message for a specific use case. Possible values: * **payment** * **nonPayment** + * @param messageCategory Identifies the category of the message for a specific use case. Possible + * values: * **payment** * **nonPayment** * @return the current {@code AuthenticationInfo} instance, allowing for method chaining */ public AuthenticationInfo messageCategory(MessageCategoryEnum messageCategory) { @@ -744,8 +880,11 @@ public AuthenticationInfo messageCategory(MessageCategoryEnum messageCategory) { } /** - * Identifies the category of the message for a specific use case. Possible values: * **payment** * **nonPayment** - * @return messageCategory Identifies the category of the message for a specific use case. Possible values: * **payment** * **nonPayment** + * Identifies the category of the message for a specific use case. Possible values: * **payment** + * * **nonPayment** + * + * @return messageCategory Identifies the category of the message for a specific use case. + * Possible values: * **payment** * **nonPayment** */ @JsonProperty(JSON_PROPERTY_MESSAGE_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -754,9 +893,11 @@ public MessageCategoryEnum getMessageCategory() { } /** - * Identifies the category of the message for a specific use case. Possible values: * **payment** * **nonPayment** + * Identifies the category of the message for a specific use case. Possible values: * **payment** + * * **nonPayment** * - * @param messageCategory Identifies the category of the message for a specific use case. Possible values: * **payment** * **nonPayment** + * @param messageCategory Identifies the category of the message for a specific use case. Possible + * values: * **payment** * **nonPayment** */ @JsonProperty(JSON_PROPERTY_MESSAGE_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -767,7 +908,8 @@ public void setMessageCategory(MessageCategoryEnum messageCategory) { /** * The `messageVersion` value as defined in the 3D Secure 2 specification. * - * @param messageVersion The `messageVersion` value as defined in the 3D Secure 2 specification. + * @param messageVersion The `messageVersion` value as defined in the 3D Secure 2 + * specification. * @return the current {@code AuthenticationInfo} instance, allowing for method chaining */ public AuthenticationInfo messageVersion(String messageVersion) { @@ -777,7 +919,9 @@ public AuthenticationInfo messageVersion(String messageVersion) { /** * The `messageVersion` value as defined in the 3D Secure 2 specification. - * @return messageVersion The `messageVersion` value as defined in the 3D Secure 2 specification. + * + * @return messageVersion The `messageVersion` value as defined in the 3D Secure 2 + * specification. */ @JsonProperty(JSON_PROPERTY_MESSAGE_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -788,7 +932,8 @@ public String getMessageVersion() { /** * The `messageVersion` value as defined in the 3D Secure 2 specification. * - * @param messageVersion The `messageVersion` value as defined in the 3D Secure 2 specification. + * @param messageVersion The `messageVersion` value as defined in the 3D Secure 2 + * specification. */ @JsonProperty(JSON_PROPERTY_MESSAGE_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -809,6 +954,7 @@ public AuthenticationInfo riskScore(Integer riskScore) { /** * Risk score calculated from the transaction rules. + * * @return riskScore Risk score calculated from the transaction rules. */ @JsonProperty(JSON_PROPERTY_RISK_SCORE) @@ -831,7 +977,8 @@ public void setRiskScore(Integer riskScore) { /** * The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. * - * @param threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. + * @param threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D + * Secure 2 specification. * @return the current {@code AuthenticationInfo} instance, allowing for method chaining */ public AuthenticationInfo threeDSServerTransID(String threeDSServerTransID) { @@ -841,7 +988,9 @@ public AuthenticationInfo threeDSServerTransID(String threeDSServerTransID) { /** * The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. - * @return threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. + * + * @return threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D + * Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_SERVER_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -852,7 +1001,8 @@ public String getThreeDSServerTransID() { /** * The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. * - * @param threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. + * @param threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D + * Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_SERVER_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -861,9 +1011,18 @@ public void setThreeDSServerTransID(String threeDSServerTransID) { } /** - * The `transStatus` value as defined in the 3D Secure 2 specification. Possible values: * **Y**: Authentication / Account verification successful. * **N**: Not Authenticated / Account not verified. Transaction denied. * **U**: Authentication / Account verification could not be performed. * **I**: Informational Only / 3D Secure Requestor challenge preference acknowledged. * **R**: Authentication / Account verification rejected by the Issuer. + * The `transStatus` value as defined in the 3D Secure 2 specification. Possible values: + * * **Y**: Authentication / Account verification successful. * **N**: Not Authenticated / Account + * not verified. Transaction denied. * **U**: Authentication / Account verification could not be + * performed. * **I**: Informational Only / 3D Secure Requestor challenge preference acknowledged. + * * **R**: Authentication / Account verification rejected by the Issuer. * - * @param transStatus The `transStatus` value as defined in the 3D Secure 2 specification. Possible values: * **Y**: Authentication / Account verification successful. * **N**: Not Authenticated / Account not verified. Transaction denied. * **U**: Authentication / Account verification could not be performed. * **I**: Informational Only / 3D Secure Requestor challenge preference acknowledged. * **R**: Authentication / Account verification rejected by the Issuer. + * @param transStatus The `transStatus` value as defined in the 3D Secure 2 + * specification. Possible values: * **Y**: Authentication / Account verification successful. + * * **N**: Not Authenticated / Account not verified. Transaction denied. * **U**: + * Authentication / Account verification could not be performed. * **I**: Informational Only / + * 3D Secure Requestor challenge preference acknowledged. * **R**: Authentication / Account + * verification rejected by the Issuer. * @return the current {@code AuthenticationInfo} instance, allowing for method chaining */ public AuthenticationInfo transStatus(TransStatusEnum transStatus) { @@ -872,8 +1031,18 @@ public AuthenticationInfo transStatus(TransStatusEnum transStatus) { } /** - * The `transStatus` value as defined in the 3D Secure 2 specification. Possible values: * **Y**: Authentication / Account verification successful. * **N**: Not Authenticated / Account not verified. Transaction denied. * **U**: Authentication / Account verification could not be performed. * **I**: Informational Only / 3D Secure Requestor challenge preference acknowledged. * **R**: Authentication / Account verification rejected by the Issuer. - * @return transStatus The `transStatus` value as defined in the 3D Secure 2 specification. Possible values: * **Y**: Authentication / Account verification successful. * **N**: Not Authenticated / Account not verified. Transaction denied. * **U**: Authentication / Account verification could not be performed. * **I**: Informational Only / 3D Secure Requestor challenge preference acknowledged. * **R**: Authentication / Account verification rejected by the Issuer. + * The `transStatus` value as defined in the 3D Secure 2 specification. Possible values: + * * **Y**: Authentication / Account verification successful. * **N**: Not Authenticated / Account + * not verified. Transaction denied. * **U**: Authentication / Account verification could not be + * performed. * **I**: Informational Only / 3D Secure Requestor challenge preference acknowledged. + * * **R**: Authentication / Account verification rejected by the Issuer. + * + * @return transStatus The `transStatus` value as defined in the 3D Secure 2 + * specification. Possible values: * **Y**: Authentication / Account verification successful. + * * **N**: Not Authenticated / Account not verified. Transaction denied. * **U**: + * Authentication / Account verification could not be performed. * **I**: Informational Only / + * 3D Secure Requestor challenge preference acknowledged. * **R**: Authentication / Account + * verification rejected by the Issuer. */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -882,9 +1051,18 @@ public TransStatusEnum getTransStatus() { } /** - * The `transStatus` value as defined in the 3D Secure 2 specification. Possible values: * **Y**: Authentication / Account verification successful. * **N**: Not Authenticated / Account not verified. Transaction denied. * **U**: Authentication / Account verification could not be performed. * **I**: Informational Only / 3D Secure Requestor challenge preference acknowledged. * **R**: Authentication / Account verification rejected by the Issuer. + * The `transStatus` value as defined in the 3D Secure 2 specification. Possible values: + * * **Y**: Authentication / Account verification successful. * **N**: Not Authenticated / Account + * not verified. Transaction denied. * **U**: Authentication / Account verification could not be + * performed. * **I**: Informational Only / 3D Secure Requestor challenge preference acknowledged. + * * **R**: Authentication / Account verification rejected by the Issuer. * - * @param transStatus The `transStatus` value as defined in the 3D Secure 2 specification. Possible values: * **Y**: Authentication / Account verification successful. * **N**: Not Authenticated / Account not verified. Transaction denied. * **U**: Authentication / Account verification could not be performed. * **I**: Informational Only / 3D Secure Requestor challenge preference acknowledged. * **R**: Authentication / Account verification rejected by the Issuer. + * @param transStatus The `transStatus` value as defined in the 3D Secure 2 + * specification. Possible values: * **Y**: Authentication / Account verification successful. + * * **N**: Not Authenticated / Account not verified. Transaction denied. * **U**: + * Authentication / Account verification could not be performed. * **I**: Informational Only / + * 3D Secure Requestor challenge preference acknowledged. * **R**: Authentication / Account + * verification rejected by the Issuer. */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -893,9 +1071,13 @@ public void setTransStatus(TransStatusEnum transStatus) { } /** - * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * Provides information on why the `transStatus` field has the specified value. For + * possible values, refer to [our + * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). * - * @param transStatusReason Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * @param transStatusReason Provides information on why the `transStatus` field has the + * specified value. For possible values, refer to [our + * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). * @return the current {@code AuthenticationInfo} instance, allowing for method chaining */ public AuthenticationInfo transStatusReason(TransStatusReasonEnum transStatusReason) { @@ -904,8 +1086,13 @@ public AuthenticationInfo transStatusReason(TransStatusReasonEnum transStatusRea } /** - * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). - * @return transStatusReason Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * Provides information on why the `transStatus` field has the specified value. For + * possible values, refer to [our + * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * + * @return transStatusReason Provides information on why the `transStatus` field has the + * specified value. For possible values, refer to [our + * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -914,9 +1101,13 @@ public TransStatusReasonEnum getTransStatusReason() { } /** - * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * Provides information on why the `transStatus` field has the specified value. For + * possible values, refer to [our + * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). * - * @param transStatusReason Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * @param transStatusReason Provides information on why the `transStatus` field has the + * specified value. For possible values, refer to [our + * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -925,9 +1116,10 @@ public void setTransStatusReason(TransStatusReasonEnum transStatusReason) { } /** - * The type of authentication performed. Possible values: * **frictionless** * **challenge** + * The type of authentication performed. Possible values: * **frictionless** * **challenge** * - * @param type The type of authentication performed. Possible values: * **frictionless** * **challenge** + * @param type The type of authentication performed. Possible values: * **frictionless** * + * **challenge** * @return the current {@code AuthenticationInfo} instance, allowing for method chaining */ public AuthenticationInfo type(TypeEnum type) { @@ -936,8 +1128,10 @@ public AuthenticationInfo type(TypeEnum type) { } /** - * The type of authentication performed. Possible values: * **frictionless** * **challenge** - * @return type The type of authentication performed. Possible values: * **frictionless** * **challenge** + * The type of authentication performed. Possible values: * **frictionless** * **challenge** + * + * @return type The type of authentication performed. Possible values: * **frictionless** * + * **challenge** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -946,9 +1140,10 @@ public TypeEnum getType() { } /** - * The type of authentication performed. Possible values: * **frictionless** * **challenge** + * The type of authentication performed. Possible values: * **frictionless** * **challenge** * - * @param type The type of authentication performed. Possible values: * **frictionless** * **challenge** + * @param type The type of authentication performed. Possible values: * **frictionless** * + * **challenge** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -956,9 +1151,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this AuthenticationInfo object is equal to o. - */ + /** Return true if this AuthenticationInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -968,26 +1161,41 @@ public boolean equals(Object o) { return false; } AuthenticationInfo authenticationInfo = (AuthenticationInfo) o; - return Objects.equals(this.acsTransId, authenticationInfo.acsTransId) && - Objects.equals(this.challenge, authenticationInfo.challenge) && - Objects.equals(this.challengeIndicator, authenticationInfo.challengeIndicator) && - Objects.equals(this.createdAt, authenticationInfo.createdAt) && - Objects.equals(this.deviceChannel, authenticationInfo.deviceChannel) && - Objects.equals(this.dsTransID, authenticationInfo.dsTransID) && - Objects.equals(this.exemptionIndicator, authenticationInfo.exemptionIndicator) && - Objects.equals(this.inPSD2Scope, authenticationInfo.inPSD2Scope) && - Objects.equals(this.messageCategory, authenticationInfo.messageCategory) && - Objects.equals(this.messageVersion, authenticationInfo.messageVersion) && - Objects.equals(this.riskScore, authenticationInfo.riskScore) && - Objects.equals(this.threeDSServerTransID, authenticationInfo.threeDSServerTransID) && - Objects.equals(this.transStatus, authenticationInfo.transStatus) && - Objects.equals(this.transStatusReason, authenticationInfo.transStatusReason) && - Objects.equals(this.type, authenticationInfo.type); + return Objects.equals(this.acsTransId, authenticationInfo.acsTransId) + && Objects.equals(this.challenge, authenticationInfo.challenge) + && Objects.equals(this.challengeIndicator, authenticationInfo.challengeIndicator) + && Objects.equals(this.createdAt, authenticationInfo.createdAt) + && Objects.equals(this.deviceChannel, authenticationInfo.deviceChannel) + && Objects.equals(this.dsTransID, authenticationInfo.dsTransID) + && Objects.equals(this.exemptionIndicator, authenticationInfo.exemptionIndicator) + && Objects.equals(this.inPSD2Scope, authenticationInfo.inPSD2Scope) + && Objects.equals(this.messageCategory, authenticationInfo.messageCategory) + && Objects.equals(this.messageVersion, authenticationInfo.messageVersion) + && Objects.equals(this.riskScore, authenticationInfo.riskScore) + && Objects.equals(this.threeDSServerTransID, authenticationInfo.threeDSServerTransID) + && Objects.equals(this.transStatus, authenticationInfo.transStatus) + && Objects.equals(this.transStatusReason, authenticationInfo.transStatusReason) + && Objects.equals(this.type, authenticationInfo.type); } @Override public int hashCode() { - return Objects.hash(acsTransId, challenge, challengeIndicator, createdAt, deviceChannel, dsTransID, exemptionIndicator, inPSD2Scope, messageCategory, messageVersion, riskScore, threeDSServerTransID, transStatus, transStatusReason, type); + return Objects.hash( + acsTransId, + challenge, + challengeIndicator, + createdAt, + deviceChannel, + dsTransID, + exemptionIndicator, + inPSD2Scope, + messageCategory, + messageVersion, + riskScore, + threeDSServerTransID, + transStatus, + transStatusReason, + type); } @Override @@ -1005,7 +1213,9 @@ public String toString() { sb.append(" messageCategory: ").append(toIndentedString(messageCategory)).append("\n"); sb.append(" messageVersion: ").append(toIndentedString(messageVersion)).append("\n"); sb.append(" riskScore: ").append(toIndentedString(riskScore)).append("\n"); - sb.append(" threeDSServerTransID: ").append(toIndentedString(threeDSServerTransID)).append("\n"); + sb.append(" threeDSServerTransID: ") + .append(toIndentedString(threeDSServerTransID)) + .append("\n"); sb.append(" transStatus: ").append(toIndentedString(transStatus)).append("\n"); sb.append(" transStatusReason: ").append(toIndentedString(transStatusReason)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); @@ -1014,8 +1224,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1024,21 +1233,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AuthenticationInfo given an JSON string * * @param jsonString JSON string * @return An instance of AuthenticationInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to AuthenticationInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AuthenticationInfo */ public static AuthenticationInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AuthenticationInfo.class); } -/** - * Convert an instance of AuthenticationInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AuthenticationInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/acswebhooks/AuthenticationNotificationData.java b/src/main/java/com/adyen/model/acswebhooks/AuthenticationNotificationData.java index acf61bd5b..d7acf3076 100644 --- a/src/main/java/com/adyen/model/acswebhooks/AuthenticationNotificationData.java +++ b/src/main/java/com/adyen/model/acswebhooks/AuthenticationNotificationData.java @@ -2,33 +2,26 @@ * Authentication webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.acswebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.acswebhooks.AuthenticationInfo; -import com.adyen.model.acswebhooks.PurchaseInfo; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * AuthenticationNotificationData - */ +/** AuthenticationNotificationData */ @JsonPropertyOrder({ AuthenticationNotificationData.JSON_PROPERTY_AUTHENTICATION, AuthenticationNotificationData.JSON_PROPERTY_BALANCE_PLATFORM, @@ -37,7 +30,6 @@ AuthenticationNotificationData.JSON_PROPERTY_PURCHASE, AuthenticationNotificationData.JSON_PROPERTY_STATUS }) - public class AuthenticationNotificationData { public static final String JSON_PROPERTY_AUTHENTICATION = "authentication"; private AuthenticationInfo authentication; @@ -54,11 +46,8 @@ public class AuthenticationNotificationData { public static final String JSON_PROPERTY_PURCHASE = "purchase"; private PurchaseInfo purchase; - /** - * Outcome of the authentication. Allowed values: * authenticated * rejected * error - */ + /** Outcome of the authentication. Allowed values: * authenticated * rejected * error */ public enum StatusEnum { - AUTHENTICATED(String.valueOf("authenticated")), REJECTED(String.valueOf("rejected")), @@ -70,7 +59,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -91,7 +80,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -99,14 +92,14 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; - public AuthenticationNotificationData() { - } + public AuthenticationNotificationData() {} /** * authentication * - * @param authentication - * @return the current {@code AuthenticationNotificationData} instance, allowing for method chaining + * @param authentication + * @return the current {@code AuthenticationNotificationData} instance, allowing for method + * chaining */ public AuthenticationNotificationData authentication(AuthenticationInfo authentication) { this.authentication = authentication; @@ -115,7 +108,8 @@ public AuthenticationNotificationData authentication(AuthenticationInfo authenti /** * Get authentication - * @return authentication + * + * @return authentication */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,7 +120,7 @@ public AuthenticationInfo getAuthentication() { /** * authentication * - * @param authentication + * @param authentication */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,7 +132,8 @@ public void setAuthentication(AuthenticationInfo authentication) { * The unique identifier of the balance platform. * * @param balancePlatform The unique identifier of the balance platform. - * @return the current {@code AuthenticationNotificationData} instance, allowing for method chaining + * @return the current {@code AuthenticationNotificationData} instance, allowing for method + * chaining */ public AuthenticationNotificationData balancePlatform(String balancePlatform) { this.balancePlatform = balancePlatform; @@ -147,6 +142,7 @@ public AuthenticationNotificationData balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. + * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -170,7 +166,8 @@ public void setBalancePlatform(String balancePlatform) { * The unique identifier of the authentication. * * @param id The unique identifier of the authentication. - * @return the current {@code AuthenticationNotificationData} instance, allowing for method chaining + * @return the current {@code AuthenticationNotificationData} instance, allowing for method + * chaining */ public AuthenticationNotificationData id(String id) { this.id = id; @@ -179,6 +176,7 @@ public AuthenticationNotificationData id(String id) { /** * The unique identifier of the authentication. + * * @return id The unique identifier of the authentication. */ @JsonProperty(JSON_PROPERTY_ID) @@ -201,8 +199,10 @@ public void setId(String id) { /** * The unique identifier of the payment instrument that was used for the authentication. * - * @param paymentInstrumentId The unique identifier of the payment instrument that was used for the authentication. - * @return the current {@code AuthenticationNotificationData} instance, allowing for method chaining + * @param paymentInstrumentId The unique identifier of the payment instrument that was used for + * the authentication. + * @return the current {@code AuthenticationNotificationData} instance, allowing for method + * chaining */ public AuthenticationNotificationData paymentInstrumentId(String paymentInstrumentId) { this.paymentInstrumentId = paymentInstrumentId; @@ -211,7 +211,9 @@ public AuthenticationNotificationData paymentInstrumentId(String paymentInstrume /** * The unique identifier of the payment instrument that was used for the authentication. - * @return paymentInstrumentId The unique identifier of the payment instrument that was used for the authentication. + * + * @return paymentInstrumentId The unique identifier of the payment instrument that was used for + * the authentication. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -222,7 +224,8 @@ public String getPaymentInstrumentId() { /** * The unique identifier of the payment instrument that was used for the authentication. * - * @param paymentInstrumentId The unique identifier of the payment instrument that was used for the authentication. + * @param paymentInstrumentId The unique identifier of the payment instrument that was used for + * the authentication. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -233,8 +236,9 @@ public void setPaymentInstrumentId(String paymentInstrumentId) { /** * purchase * - * @param purchase - * @return the current {@code AuthenticationNotificationData} instance, allowing for method chaining + * @param purchase + * @return the current {@code AuthenticationNotificationData} instance, allowing for method + * chaining */ public AuthenticationNotificationData purchase(PurchaseInfo purchase) { this.purchase = purchase; @@ -243,7 +247,8 @@ public AuthenticationNotificationData purchase(PurchaseInfo purchase) { /** * Get purchase - * @return purchase + * + * @return purchase */ @JsonProperty(JSON_PROPERTY_PURCHASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -254,7 +259,7 @@ public PurchaseInfo getPurchase() { /** * purchase * - * @param purchase + * @param purchase */ @JsonProperty(JSON_PROPERTY_PURCHASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -266,7 +271,8 @@ public void setPurchase(PurchaseInfo purchase) { * Outcome of the authentication. Allowed values: * authenticated * rejected * error * * @param status Outcome of the authentication. Allowed values: * authenticated * rejected * error - * @return the current {@code AuthenticationNotificationData} instance, allowing for method chaining + * @return the current {@code AuthenticationNotificationData} instance, allowing for method + * chaining */ public AuthenticationNotificationData status(StatusEnum status) { this.status = status; @@ -275,7 +281,9 @@ public AuthenticationNotificationData status(StatusEnum status) { /** * Outcome of the authentication. Allowed values: * authenticated * rejected * error - * @return status Outcome of the authentication. Allowed values: * authenticated * rejected * error + * + * @return status Outcome of the authentication. Allowed values: * authenticated * rejected * + * error */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -294,9 +302,7 @@ public void setStatus(StatusEnum status) { this.status = status; } - /** - * Return true if this AuthenticationNotificationData object is equal to o. - */ + /** Return true if this AuthenticationNotificationData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -305,13 +311,15 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AuthenticationNotificationData authenticationNotificationData = (AuthenticationNotificationData) o; - return Objects.equals(this.authentication, authenticationNotificationData.authentication) && - Objects.equals(this.balancePlatform, authenticationNotificationData.balancePlatform) && - Objects.equals(this.id, authenticationNotificationData.id) && - Objects.equals(this.paymentInstrumentId, authenticationNotificationData.paymentInstrumentId) && - Objects.equals(this.purchase, authenticationNotificationData.purchase) && - Objects.equals(this.status, authenticationNotificationData.status); + AuthenticationNotificationData authenticationNotificationData = + (AuthenticationNotificationData) o; + return Objects.equals(this.authentication, authenticationNotificationData.authentication) + && Objects.equals(this.balancePlatform, authenticationNotificationData.balancePlatform) + && Objects.equals(this.id, authenticationNotificationData.id) + && Objects.equals( + this.paymentInstrumentId, authenticationNotificationData.paymentInstrumentId) + && Objects.equals(this.purchase, authenticationNotificationData.purchase) + && Objects.equals(this.status, authenticationNotificationData.status); } @Override @@ -326,7 +334,9 @@ public String toString() { sb.append(" authentication: ").append(toIndentedString(authentication)).append("\n"); sb.append(" balancePlatform: ").append(toIndentedString(balancePlatform)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" paymentInstrumentId: ").append(toIndentedString(paymentInstrumentId)).append("\n"); + sb.append(" paymentInstrumentId: ") + .append(toIndentedString(paymentInstrumentId)) + .append("\n"); sb.append(" purchase: ").append(toIndentedString(purchase)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append("}"); @@ -334,8 +344,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -344,21 +353,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AuthenticationNotificationData given an JSON string * * @param jsonString JSON string * @return An instance of AuthenticationNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to AuthenticationNotificationData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AuthenticationNotificationData */ - public static AuthenticationNotificationData fromJson(String jsonString) throws JsonProcessingException { + public static AuthenticationNotificationData fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AuthenticationNotificationData.class); } -/** - * Convert an instance of AuthenticationNotificationData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AuthenticationNotificationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/acswebhooks/AuthenticationNotificationRequest.java b/src/main/java/com/adyen/model/acswebhooks/AuthenticationNotificationRequest.java index 8d24c3121..076294fdf 100644 --- a/src/main/java/com/adyen/model/acswebhooks/AuthenticationNotificationRequest.java +++ b/src/main/java/com/adyen/model/acswebhooks/AuthenticationNotificationRequest.java @@ -2,40 +2,33 @@ * Authentication webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.acswebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.acswebhooks.AuthenticationNotificationData; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * AuthenticationNotificationRequest - */ +/** AuthenticationNotificationRequest */ @JsonPropertyOrder({ AuthenticationNotificationRequest.JSON_PROPERTY_DATA, AuthenticationNotificationRequest.JSON_PROPERTY_ENVIRONMENT, AuthenticationNotificationRequest.JSON_PROPERTY_TIMESTAMP, AuthenticationNotificationRequest.JSON_PROPERTY_TYPE }) - public class AuthenticationNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private AuthenticationNotificationData data; @@ -46,19 +39,17 @@ public class AuthenticationNotificationRequest { public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; private OffsetDateTime timestamp; - /** - * Type of notification. - */ + /** Type of notification. */ public enum TypeEnum { - - BALANCEPLATFORM_AUTHENTICATION_CREATED(String.valueOf("balancePlatform.authentication.created")); + BALANCEPLATFORM_AUTHENTICATION_CREATED( + String.valueOf("balancePlatform.authentication.created")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -79,7 +70,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -87,14 +82,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AuthenticationNotificationRequest() { - } + public AuthenticationNotificationRequest() {} /** * data * - * @param data - * @return the current {@code AuthenticationNotificationRequest} instance, allowing for method chaining + * @param data + * @return the current {@code AuthenticationNotificationRequest} instance, allowing for method + * chaining */ public AuthenticationNotificationRequest data(AuthenticationNotificationData data) { this.data = data; @@ -103,7 +98,8 @@ public AuthenticationNotificationRequest data(AuthenticationNotificationData dat /** * Get data - * @return data + * + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,7 +110,7 @@ public AuthenticationNotificationData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,10 +119,12 @@ public void setData(AuthenticationNotificationData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. - * @return the current {@code AuthenticationNotificationRequest} instance, allowing for method chaining + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. + * @return the current {@code AuthenticationNotificationRequest} instance, allowing for method + * chaining */ public AuthenticationNotificationRequest environment(String environment) { this.environment = environment; @@ -134,8 +132,10 @@ public AuthenticationNotificationRequest environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * + * @return environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,9 +144,10 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,7 +159,8 @@ public void setEnvironment(String environment) { * When the event was queued. * * @param timestamp When the event was queued. - * @return the current {@code AuthenticationNotificationRequest} instance, allowing for method chaining + * @return the current {@code AuthenticationNotificationRequest} instance, allowing for method + * chaining */ public AuthenticationNotificationRequest timestamp(OffsetDateTime timestamp) { this.timestamp = timestamp; @@ -167,6 +169,7 @@ public AuthenticationNotificationRequest timestamp(OffsetDateTime timestamp) { /** * When the event was queued. + * * @return timestamp When the event was queued. */ @JsonProperty(JSON_PROPERTY_TIMESTAMP) @@ -190,7 +193,8 @@ public void setTimestamp(OffsetDateTime timestamp) { * Type of notification. * * @param type Type of notification. - * @return the current {@code AuthenticationNotificationRequest} instance, allowing for method chaining + * @return the current {@code AuthenticationNotificationRequest} instance, allowing for method + * chaining */ public AuthenticationNotificationRequest type(TypeEnum type) { this.type = type; @@ -199,6 +203,7 @@ public AuthenticationNotificationRequest type(TypeEnum type) { /** * Type of notification. + * * @return type Type of notification. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -218,9 +223,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this AuthenticationNotificationRequest object is equal to o. - */ + /** Return true if this AuthenticationNotificationRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -229,11 +232,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AuthenticationNotificationRequest authenticationNotificationRequest = (AuthenticationNotificationRequest) o; - return Objects.equals(this.data, authenticationNotificationRequest.data) && - Objects.equals(this.environment, authenticationNotificationRequest.environment) && - Objects.equals(this.timestamp, authenticationNotificationRequest.timestamp) && - Objects.equals(this.type, authenticationNotificationRequest.type); + AuthenticationNotificationRequest authenticationNotificationRequest = + (AuthenticationNotificationRequest) o; + return Objects.equals(this.data, authenticationNotificationRequest.data) + && Objects.equals(this.environment, authenticationNotificationRequest.environment) + && Objects.equals(this.timestamp, authenticationNotificationRequest.timestamp) + && Objects.equals(this.type, authenticationNotificationRequest.type); } @Override @@ -254,8 +258,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -264,21 +267,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AuthenticationNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of AuthenticationNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to AuthenticationNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AuthenticationNotificationRequest */ - public static AuthenticationNotificationRequest fromJson(String jsonString) throws JsonProcessingException { + public static AuthenticationNotificationRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AuthenticationNotificationRequest.class); } -/** - * Convert an instance of AuthenticationNotificationRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AuthenticationNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/acswebhooks/BalancePlatformNotificationResponse.java b/src/main/java/com/adyen/model/acswebhooks/BalancePlatformNotificationResponse.java index 1dce9e75b..88b15bd90 100644 --- a/src/main/java/com/adyen/model/acswebhooks/BalancePlatformNotificationResponse.java +++ b/src/main/java/com/adyen/model/acswebhooks/BalancePlatformNotificationResponse.java @@ -2,47 +2,37 @@ * Authentication webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.acswebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * BalancePlatformNotificationResponse - */ -@JsonPropertyOrder({ - BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE -}) - +/** BalancePlatformNotificationResponse */ +@JsonPropertyOrder({BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) public class BalancePlatformNotificationResponse { public static final String JSON_PROPERTY_NOTIFICATION_RESPONSE = "notificationResponse"; private String notificationResponse; - public BalancePlatformNotificationResponse() { - } + public BalancePlatformNotificationResponse() {} /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method chaining + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method + * chaining */ public BalancePlatformNotificationResponse notificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; @@ -50,8 +40,11 @@ public BalancePlatformNotificationResponse notificationResponse(String notificat } /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * + * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,9 +53,11 @@ public String getNotificationResponse() { } /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +65,7 @@ public void setNotificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; } - /** - * Return true if this BalancePlatformNotificationResponse object is equal to o. - */ + /** Return true if this BalancePlatformNotificationResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -81,8 +74,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - BalancePlatformNotificationResponse balancePlatformNotificationResponse = (BalancePlatformNotificationResponse) o; - return Objects.equals(this.notificationResponse, balancePlatformNotificationResponse.notificationResponse); + BalancePlatformNotificationResponse balancePlatformNotificationResponse = + (BalancePlatformNotificationResponse) o; + return Objects.equals( + this.notificationResponse, balancePlatformNotificationResponse.notificationResponse); } @Override @@ -94,14 +89,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BalancePlatformNotificationResponse {\n"); - sb.append(" notificationResponse: ").append(toIndentedString(notificationResponse)).append("\n"); + sb.append(" notificationResponse: ") + .append(toIndentedString(notificationResponse)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +106,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BalancePlatformNotificationResponse given an JSON string * * @param jsonString JSON string * @return An instance of BalancePlatformNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to BalancePlatformNotificationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BalancePlatformNotificationResponse */ - public static BalancePlatformNotificationResponse fromJson(String jsonString) throws JsonProcessingException { + public static BalancePlatformNotificationResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalancePlatformNotificationResponse.class); } -/** - * Convert an instance of BalancePlatformNotificationResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BalancePlatformNotificationResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/acswebhooks/ChallengeInfo.java b/src/main/java/com/adyen/model/acswebhooks/ChallengeInfo.java index 703c221bf..65f350b04 100644 --- a/src/main/java/com/adyen/model/acswebhooks/ChallengeInfo.java +++ b/src/main/java/com/adyen/model/acswebhooks/ChallengeInfo.java @@ -2,32 +2,27 @@ * Authentication webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.acswebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * ChallengeInfo - */ +/** ChallengeInfo */ @JsonPropertyOrder({ ChallengeInfo.JSON_PROPERTY_CHALLENGE_CANCEL, ChallengeInfo.JSON_PROPERTY_FLOW, @@ -36,13 +31,17 @@ ChallengeInfo.JSON_PROPERTY_RESENDS, ChallengeInfo.JSON_PROPERTY_RETRIES }) - public class ChallengeInfo { /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. Possible values: * **00**: Data element is absent or value has been sent back with the key `challengeCancel`. * **01**: Cardholder selected **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * **03**: Transaction abandoned. * **04**: Transaction timed out at ACS — other timeouts. * **05**: Transaction timed out at ACS — first CReq not received by ACS. * **06**: Transaction error. * **07**: Unknown. * **08**: Transaction time out at SDK. + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the + * authentication has been cancelled. Possible values: * **00**: Data element is absent or value + * has been sent back with the key `challengeCancel`. * **01**: Cardholder selected + * **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * **03**: Transaction abandoned. + * * **04**: Transaction timed out at ACS — other timeouts. * **05**: Transaction timed out at ACS + * — first CReq not received by ACS. * **06**: Transaction error. * **07**: Unknown. * **08**: + * Transaction time out at SDK. */ public enum ChallengeCancelEnum { - _00(String.valueOf("00")), _01(String.valueOf("01")), @@ -66,7 +65,7 @@ public enum ChallengeCancelEnum { private String value; ChallengeCancelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -87,7 +86,11 @@ public static ChallengeCancelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ChallengeCancelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChallengeCancelEnum.values())); + LOG.warning( + "ChallengeCancelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ChallengeCancelEnum.values())); return null; } } @@ -96,10 +99,11 @@ public static ChallengeCancelEnum fromValue(String value) { private ChallengeCancelEnum challengeCancel; /** - * The flow used in the challenge. Possible values: * **PWD_OTP_PHONE_FL**: one-time password (OTP) flow via SMS * **PWD_OTP_EMAIL_FL**: one-time password (OTP) flow via email * **OOB_TRIGGER_FL**: out-of-band (OOB) flow + * The flow used in the challenge. Possible values: * **PWD_OTP_PHONE_FL**: one-time password + * (OTP) flow via SMS * **PWD_OTP_EMAIL_FL**: one-time password (OTP) flow via email * + * **OOB_TRIGGER_FL**: out-of-band (OOB) flow */ public enum FlowEnum { - PWD_OTP_PHONE_FL(String.valueOf("PWD_OTP_PHONE_FL")), PWD_OTP_EMAIL_FL(String.valueOf("PWD_OTP_EMAIL_FL")), @@ -111,7 +115,7 @@ public enum FlowEnum { private String value; FlowEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -132,7 +136,11 @@ public static FlowEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FlowEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FlowEnum.values())); + LOG.warning( + "FlowEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FlowEnum.values())); return null; } } @@ -152,13 +160,24 @@ public static FlowEnum fromValue(String value) { public static final String JSON_PROPERTY_RETRIES = "retries"; private Integer retries; - public ChallengeInfo() { - } + public ChallengeInfo() {} /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. Possible values: * **00**: Data element is absent or value has been sent back with the key `challengeCancel`. * **01**: Cardholder selected **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * **03**: Transaction abandoned. * **04**: Transaction timed out at ACS — other timeouts. * **05**: Transaction timed out at ACS — first CReq not received by ACS. * **06**: Transaction error. * **07**: Unknown. * **08**: Transaction time out at SDK. + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the + * authentication has been cancelled. Possible values: * **00**: Data element is absent or value + * has been sent back with the key `challengeCancel`. * **01**: Cardholder selected + * **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * **03**: Transaction abandoned. + * * **04**: Transaction timed out at ACS — other timeouts. * **05**: Transaction timed out at ACS + * — first CReq not received by ACS. * **06**: Transaction error. * **07**: Unknown. * **08**: + * Transaction time out at SDK. * - * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. Possible values: * **00**: Data element is absent or value has been sent back with the key `challengeCancel`. * **01**: Cardholder selected **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * **03**: Transaction abandoned. * **04**: Transaction timed out at ACS — other timeouts. * **05**: Transaction timed out at ACS — first CReq not received by ACS. * **06**: Transaction error. * **07**: Unknown. * **08**: Transaction time out at SDK. + * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory + * Server (DS) that the authentication has been cancelled. Possible values: * **00**: Data + * element is absent or value has been sent back with the key `challengeCancel`. * + * **01**: Cardholder selected **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * + * **03**: Transaction abandoned. * **04**: Transaction timed out at ACS — other timeouts. * + * **05**: Transaction timed out at ACS — first CReq not received by ACS. * **06**: + * Transaction error. * **07**: Unknown. * **08**: Transaction time out at SDK. * @return the current {@code ChallengeInfo} instance, allowing for method chaining */ public ChallengeInfo challengeCancel(ChallengeCancelEnum challengeCancel) { @@ -167,8 +186,21 @@ public ChallengeInfo challengeCancel(ChallengeCancelEnum challengeCancel) { } /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. Possible values: * **00**: Data element is absent or value has been sent back with the key `challengeCancel`. * **01**: Cardholder selected **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * **03**: Transaction abandoned. * **04**: Transaction timed out at ACS — other timeouts. * **05**: Transaction timed out at ACS — first CReq not received by ACS. * **06**: Transaction error. * **07**: Unknown. * **08**: Transaction time out at SDK. - * @return challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. Possible values: * **00**: Data element is absent or value has been sent back with the key `challengeCancel`. * **01**: Cardholder selected **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * **03**: Transaction abandoned. * **04**: Transaction timed out at ACS — other timeouts. * **05**: Transaction timed out at ACS — first CReq not received by ACS. * **06**: Transaction error. * **07**: Unknown. * **08**: Transaction time out at SDK. + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the + * authentication has been cancelled. Possible values: * **00**: Data element is absent or value + * has been sent back with the key `challengeCancel`. * **01**: Cardholder selected + * **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * **03**: Transaction abandoned. + * * **04**: Transaction timed out at ACS — other timeouts. * **05**: Transaction timed out at ACS + * — first CReq not received by ACS. * **06**: Transaction error. * **07**: Unknown. * **08**: + * Transaction time out at SDK. + * + * @return challengeCancel Indicator informing the Access Control Server (ACS) and the Directory + * Server (DS) that the authentication has been cancelled. Possible values: * **00**: Data + * element is absent or value has been sent back with the key `challengeCancel`. * + * **01**: Cardholder selected **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * + * **03**: Transaction abandoned. * **04**: Transaction timed out at ACS — other timeouts. * + * **05**: Transaction timed out at ACS — first CReq not received by ACS. * **06**: + * Transaction error. * **07**: Unknown. * **08**: Transaction time out at SDK. */ @JsonProperty(JSON_PROPERTY_CHALLENGE_CANCEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,9 +209,21 @@ public ChallengeCancelEnum getChallengeCancel() { } /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. Possible values: * **00**: Data element is absent or value has been sent back with the key `challengeCancel`. * **01**: Cardholder selected **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * **03**: Transaction abandoned. * **04**: Transaction timed out at ACS — other timeouts. * **05**: Transaction timed out at ACS — first CReq not received by ACS. * **06**: Transaction error. * **07**: Unknown. * **08**: Transaction time out at SDK. + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the + * authentication has been cancelled. Possible values: * **00**: Data element is absent or value + * has been sent back with the key `challengeCancel`. * **01**: Cardholder selected + * **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * **03**: Transaction abandoned. + * * **04**: Transaction timed out at ACS — other timeouts. * **05**: Transaction timed out at ACS + * — first CReq not received by ACS. * **06**: Transaction error. * **07**: Unknown. * **08**: + * Transaction time out at SDK. * - * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. Possible values: * **00**: Data element is absent or value has been sent back with the key `challengeCancel`. * **01**: Cardholder selected **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * **03**: Transaction abandoned. * **04**: Transaction timed out at ACS — other timeouts. * **05**: Transaction timed out at ACS — first CReq not received by ACS. * **06**: Transaction error. * **07**: Unknown. * **08**: Transaction time out at SDK. + * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory + * Server (DS) that the authentication has been cancelled. Possible values: * **00**: Data + * element is absent or value has been sent back with the key `challengeCancel`. * + * **01**: Cardholder selected **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * + * **03**: Transaction abandoned. * **04**: Transaction timed out at ACS — other timeouts. * + * **05**: Transaction timed out at ACS — first CReq not received by ACS. * **06**: + * Transaction error. * **07**: Unknown. * **08**: Transaction time out at SDK. */ @JsonProperty(JSON_PROPERTY_CHALLENGE_CANCEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,9 +232,13 @@ public void setChallengeCancel(ChallengeCancelEnum challengeCancel) { } /** - * The flow used in the challenge. Possible values: * **PWD_OTP_PHONE_FL**: one-time password (OTP) flow via SMS * **PWD_OTP_EMAIL_FL**: one-time password (OTP) flow via email * **OOB_TRIGGER_FL**: out-of-band (OOB) flow + * The flow used in the challenge. Possible values: * **PWD_OTP_PHONE_FL**: one-time password + * (OTP) flow via SMS * **PWD_OTP_EMAIL_FL**: one-time password (OTP) flow via email * + * **OOB_TRIGGER_FL**: out-of-band (OOB) flow * - * @param flow The flow used in the challenge. Possible values: * **PWD_OTP_PHONE_FL**: one-time password (OTP) flow via SMS * **PWD_OTP_EMAIL_FL**: one-time password (OTP) flow via email * **OOB_TRIGGER_FL**: out-of-band (OOB) flow + * @param flow The flow used in the challenge. Possible values: * **PWD_OTP_PHONE_FL**: one-time + * password (OTP) flow via SMS * **PWD_OTP_EMAIL_FL**: one-time password (OTP) flow via email + * * **OOB_TRIGGER_FL**: out-of-band (OOB) flow * @return the current {@code ChallengeInfo} instance, allowing for method chaining */ public ChallengeInfo flow(FlowEnum flow) { @@ -199,8 +247,13 @@ public ChallengeInfo flow(FlowEnum flow) { } /** - * The flow used in the challenge. Possible values: * **PWD_OTP_PHONE_FL**: one-time password (OTP) flow via SMS * **PWD_OTP_EMAIL_FL**: one-time password (OTP) flow via email * **OOB_TRIGGER_FL**: out-of-band (OOB) flow - * @return flow The flow used in the challenge. Possible values: * **PWD_OTP_PHONE_FL**: one-time password (OTP) flow via SMS * **PWD_OTP_EMAIL_FL**: one-time password (OTP) flow via email * **OOB_TRIGGER_FL**: out-of-band (OOB) flow + * The flow used in the challenge. Possible values: * **PWD_OTP_PHONE_FL**: one-time password + * (OTP) flow via SMS * **PWD_OTP_EMAIL_FL**: one-time password (OTP) flow via email * + * **OOB_TRIGGER_FL**: out-of-band (OOB) flow + * + * @return flow The flow used in the challenge. Possible values: * **PWD_OTP_PHONE_FL**: one-time + * password (OTP) flow via SMS * **PWD_OTP_EMAIL_FL**: one-time password (OTP) flow via email + * * **OOB_TRIGGER_FL**: out-of-band (OOB) flow */ @JsonProperty(JSON_PROPERTY_FLOW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -209,9 +262,13 @@ public FlowEnum getFlow() { } /** - * The flow used in the challenge. Possible values: * **PWD_OTP_PHONE_FL**: one-time password (OTP) flow via SMS * **PWD_OTP_EMAIL_FL**: one-time password (OTP) flow via email * **OOB_TRIGGER_FL**: out-of-band (OOB) flow + * The flow used in the challenge. Possible values: * **PWD_OTP_PHONE_FL**: one-time password + * (OTP) flow via SMS * **PWD_OTP_EMAIL_FL**: one-time password (OTP) flow via email * + * **OOB_TRIGGER_FL**: out-of-band (OOB) flow * - * @param flow The flow used in the challenge. Possible values: * **PWD_OTP_PHONE_FL**: one-time password (OTP) flow via SMS * **PWD_OTP_EMAIL_FL**: one-time password (OTP) flow via email * **OOB_TRIGGER_FL**: out-of-band (OOB) flow + * @param flow The flow used in the challenge. Possible values: * **PWD_OTP_PHONE_FL**: one-time + * password (OTP) flow via SMS * **PWD_OTP_EMAIL_FL**: one-time password (OTP) flow via email + * * **OOB_TRIGGER_FL**: out-of-band (OOB) flow */ @JsonProperty(JSON_PROPERTY_FLOW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,6 +289,7 @@ public ChallengeInfo lastInteraction(OffsetDateTime lastInteraction) { /** * The last time of interaction with the challenge. + * * @return lastInteraction The last time of interaction with the challenge. */ @JsonProperty(JSON_PROPERTY_LAST_INTERACTION) @@ -264,6 +322,7 @@ public ChallengeInfo phoneNumber(String phoneNumber) { /** * The last four digits of the phone number used in the challenge. + * * @return phoneNumber The last four digits of the phone number used in the challenge. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @@ -296,7 +355,9 @@ public ChallengeInfo resends(Integer resends) { /** * The number of times the one-time password (OTP) was resent during the challenge. - * @return resends The number of times the one-time password (OTP) was resent during the challenge. + * + * @return resends The number of times the one-time password (OTP) was resent during the + * challenge. */ @JsonProperty(JSON_PROPERTY_RESENDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -328,6 +389,7 @@ public ChallengeInfo retries(Integer retries) { /** * The number of retries used in the challenge. + * * @return retries The number of retries used in the challenge. */ @JsonProperty(JSON_PROPERTY_RETRIES) @@ -347,9 +409,7 @@ public void setRetries(Integer retries) { this.retries = retries; } - /** - * Return true if this ChallengeInfo object is equal to o. - */ + /** Return true if this ChallengeInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -359,12 +419,12 @@ public boolean equals(Object o) { return false; } ChallengeInfo challengeInfo = (ChallengeInfo) o; - return Objects.equals(this.challengeCancel, challengeInfo.challengeCancel) && - Objects.equals(this.flow, challengeInfo.flow) && - Objects.equals(this.lastInteraction, challengeInfo.lastInteraction) && - Objects.equals(this.phoneNumber, challengeInfo.phoneNumber) && - Objects.equals(this.resends, challengeInfo.resends) && - Objects.equals(this.retries, challengeInfo.retries); + return Objects.equals(this.challengeCancel, challengeInfo.challengeCancel) + && Objects.equals(this.flow, challengeInfo.flow) + && Objects.equals(this.lastInteraction, challengeInfo.lastInteraction) + && Objects.equals(this.phoneNumber, challengeInfo.phoneNumber) + && Objects.equals(this.resends, challengeInfo.resends) + && Objects.equals(this.retries, challengeInfo.retries); } @Override @@ -387,8 +447,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -397,7 +456,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ChallengeInfo given an JSON string * * @param jsonString JSON string @@ -407,11 +466,12 @@ private String toIndentedString(Object o) { public static ChallengeInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ChallengeInfo.class); } -/** - * Convert an instance of ChallengeInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ChallengeInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/acswebhooks/JSON.java b/src/main/java/com/adyen/model/acswebhooks/JSON.java index 875b24ea7..5b711524c 100644 --- a/src/main/java/com/adyen/model/acswebhooks/JSON.java +++ b/src/main/java/com/adyen/model/acswebhooks/JSON.java @@ -1,21 +1,18 @@ package com.adyen.model.acswebhooks; -import com.adyen.serializer.ByteArraySerializer; import com.adyen.serializer.ByteArrayDeserializer; +import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import com.adyen.model.acswebhooks.*; - +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -40,6 +37,7 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. + * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -56,11 +54,13 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { return mapper; } + public static ObjectMapper getMapper() { + return mapper; + } /** - * Returns the target model class that should be used to deserialize the input data. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,9 +73,7 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** - * Helper class to register the discriminator mappings. - */ + /** Helper class to register the discriminator mappings. */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -117,9 +115,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. - * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. This + * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -164,13 +162,14 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, - * so it's not possible to use the instanceof keyword. + *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so + * it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf( + Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -194,59 +193,58 @@ public static boolean isInstanceOf(Class modelClass, Object inst, Set, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); + /** A map of discriminators for all model classes. */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = + new HashMap, ClassDiscriminatorMapping>(); - /** - * A map of oneOf/anyOf descendants for each model class. - */ + /** A map of oneOf/anyOf descendants for each model class. */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator( + Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = + new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants(Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants( + Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static - { + static { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/acswebhooks/Purchase.java b/src/main/java/com/adyen/model/acswebhooks/Purchase.java index b4db1bba4..f3d4e8ca9 100644 --- a/src/main/java/com/adyen/model/acswebhooks/Purchase.java +++ b/src/main/java/com/adyen/model/acswebhooks/Purchase.java @@ -2,39 +2,28 @@ * Authentication webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.acswebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.acswebhooks.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.time.OffsetDateTime; +import java.util.*; - -/** - * Purchase - */ +/** Purchase */ @JsonPropertyOrder({ Purchase.JSON_PROPERTY_DATE, Purchase.JSON_PROPERTY_MERCHANT_NAME, Purchase.JSON_PROPERTY_ORIGINAL_AMOUNT }) - public class Purchase { public static final String JSON_PROPERTY_DATE = "date"; private OffsetDateTime date; @@ -45,8 +34,7 @@ public class Purchase { public static final String JSON_PROPERTY_ORIGINAL_AMOUNT = "originalAmount"; private Amount originalAmount; - public Purchase() { - } + public Purchase() {} /** * The time of the purchase. @@ -61,6 +49,7 @@ public Purchase date(OffsetDateTime date) { /** * The time of the purchase. + * * @return date The time of the purchase. */ @JsonProperty(JSON_PROPERTY_DATE) @@ -93,6 +82,7 @@ public Purchase merchantName(String merchantName) { /** * The name of the merchant. + * * @return merchantName The name of the merchant. */ @JsonProperty(JSON_PROPERTY_MERCHANT_NAME) @@ -115,7 +105,7 @@ public void setMerchantName(String merchantName) { /** * originalAmount * - * @param originalAmount + * @param originalAmount * @return the current {@code Purchase} instance, allowing for method chaining */ public Purchase originalAmount(Amount originalAmount) { @@ -125,7 +115,8 @@ public Purchase originalAmount(Amount originalAmount) { /** * Get originalAmount - * @return originalAmount + * + * @return originalAmount */ @JsonProperty(JSON_PROPERTY_ORIGINAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,7 +127,7 @@ public Amount getOriginalAmount() { /** * originalAmount * - * @param originalAmount + * @param originalAmount */ @JsonProperty(JSON_PROPERTY_ORIGINAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,9 +135,7 @@ public void setOriginalAmount(Amount originalAmount) { this.originalAmount = originalAmount; } - /** - * Return true if this Purchase object is equal to o. - */ + /** Return true if this Purchase object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,9 +145,9 @@ public boolean equals(Object o) { return false; } Purchase purchase = (Purchase) o; - return Objects.equals(this.date, purchase.date) && - Objects.equals(this.merchantName, purchase.merchantName) && - Objects.equals(this.originalAmount, purchase.originalAmount); + return Objects.equals(this.date, purchase.date) + && Objects.equals(this.merchantName, purchase.merchantName) + && Objects.equals(this.originalAmount, purchase.originalAmount); } @Override @@ -178,8 +167,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -188,7 +176,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Purchase given an JSON string * * @param jsonString JSON string @@ -198,11 +186,12 @@ private String toIndentedString(Object o) { public static Purchase fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Purchase.class); } -/** - * Convert an instance of Purchase to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Purchase to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/acswebhooks/PurchaseInfo.java b/src/main/java/com/adyen/model/acswebhooks/PurchaseInfo.java index ef3ed187c..640bb6338 100644 --- a/src/main/java/com/adyen/model/acswebhooks/PurchaseInfo.java +++ b/src/main/java/com/adyen/model/acswebhooks/PurchaseInfo.java @@ -2,38 +2,27 @@ * Authentication webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.acswebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.acswebhooks.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * PurchaseInfo - */ +/** PurchaseInfo */ @JsonPropertyOrder({ PurchaseInfo.JSON_PROPERTY_DATE, PurchaseInfo.JSON_PROPERTY_MERCHANT_NAME, PurchaseInfo.JSON_PROPERTY_ORIGINAL_AMOUNT }) - public class PurchaseInfo { public static final String JSON_PROPERTY_DATE = "date"; private String date; @@ -44,8 +33,7 @@ public class PurchaseInfo { public static final String JSON_PROPERTY_ORIGINAL_AMOUNT = "originalAmount"; private Amount originalAmount; - public PurchaseInfo() { - } + public PurchaseInfo() {} /** * The date of the purchase. @@ -60,6 +48,7 @@ public PurchaseInfo date(String date) { /** * The date of the purchase. + * * @return date The date of the purchase. */ @JsonProperty(JSON_PROPERTY_DATE) @@ -92,6 +81,7 @@ public PurchaseInfo merchantName(String merchantName) { /** * The name of the business that the cardholder purchased from. + * * @return merchantName The name of the business that the cardholder purchased from. */ @JsonProperty(JSON_PROPERTY_MERCHANT_NAME) @@ -114,7 +104,7 @@ public void setMerchantName(String merchantName) { /** * originalAmount * - * @param originalAmount + * @param originalAmount * @return the current {@code PurchaseInfo} instance, allowing for method chaining */ public PurchaseInfo originalAmount(Amount originalAmount) { @@ -124,7 +114,8 @@ public PurchaseInfo originalAmount(Amount originalAmount) { /** * Get originalAmount - * @return originalAmount + * + * @return originalAmount */ @JsonProperty(JSON_PROPERTY_ORIGINAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,7 +126,7 @@ public Amount getOriginalAmount() { /** * originalAmount * - * @param originalAmount + * @param originalAmount */ @JsonProperty(JSON_PROPERTY_ORIGINAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,9 +134,7 @@ public void setOriginalAmount(Amount originalAmount) { this.originalAmount = originalAmount; } - /** - * Return true if this PurchaseInfo object is equal to o. - */ + /** Return true if this PurchaseInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -155,9 +144,9 @@ public boolean equals(Object o) { return false; } PurchaseInfo purchaseInfo = (PurchaseInfo) o; - return Objects.equals(this.date, purchaseInfo.date) && - Objects.equals(this.merchantName, purchaseInfo.merchantName) && - Objects.equals(this.originalAmount, purchaseInfo.originalAmount); + return Objects.equals(this.date, purchaseInfo.date) + && Objects.equals(this.merchantName, purchaseInfo.merchantName) + && Objects.equals(this.originalAmount, purchaseInfo.originalAmount); } @Override @@ -177,8 +166,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -187,7 +175,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PurchaseInfo given an JSON string * * @param jsonString JSON string @@ -197,11 +185,12 @@ private String toIndentedString(Object o) { public static PurchaseInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PurchaseInfo.class); } -/** - * Convert an instance of PurchaseInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PurchaseInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/acswebhooks/RelayedAuthenticationRequest.java b/src/main/java/com/adyen/model/acswebhooks/RelayedAuthenticationRequest.java index c05e77478..87f6ce555 100644 --- a/src/main/java/com/adyen/model/acswebhooks/RelayedAuthenticationRequest.java +++ b/src/main/java/com/adyen/model/acswebhooks/RelayedAuthenticationRequest.java @@ -2,33 +2,27 @@ * Authentication webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.acswebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.acswebhooks.Purchase; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * RelayedAuthenticationRequest - */ +/** RelayedAuthenticationRequest */ @JsonPropertyOrder({ RelayedAuthenticationRequest.JSON_PROPERTY_ENVIRONMENT, RelayedAuthenticationRequest.JSON_PROPERTY_ID, @@ -38,7 +32,6 @@ RelayedAuthenticationRequest.JSON_PROPERTY_TIMESTAMP, RelayedAuthenticationRequest.JSON_PROPERTY_TYPE }) - public class RelayedAuthenticationRequest { public static final String JSON_PROPERTY_ENVIRONMENT = "environment"; private String environment; @@ -58,19 +51,17 @@ public class RelayedAuthenticationRequest { public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; private OffsetDateTime timestamp; - /** - * Type of notification. - */ + /** Type of notification. */ public enum TypeEnum { - - BALANCEPLATFORM_AUTHENTICATION_RELAYED(String.valueOf("balancePlatform.authentication.relayed")); + BALANCEPLATFORM_AUTHENTICATION_RELAYED( + String.valueOf("balancePlatform.authentication.relayed")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -91,7 +82,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -99,13 +94,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public RelayedAuthenticationRequest() { - } + public RelayedAuthenticationRequest() {} /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. * @return the current {@code RelayedAuthenticationRequest} instance, allowing for method chaining */ public RelayedAuthenticationRequest environment(String environment) { @@ -114,8 +109,10 @@ public RelayedAuthenticationRequest environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * + * @return environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,9 +121,10 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,6 +145,7 @@ public RelayedAuthenticationRequest id(String id) { /** * The unique identifier of the challenge. + * * @return id The unique identifier of the challenge. */ @JsonProperty(JSON_PROPERTY_ID) @@ -167,9 +166,13 @@ public void setId(String id) { } /** - * The unique identifier of the [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_) used for the purchase. + * The unique identifier of the [payment + * instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_) + * used for the purchase. * - * @param paymentInstrumentId The unique identifier of the [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_) used for the purchase. + * @param paymentInstrumentId The unique identifier of the [payment + * instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_) + * used for the purchase. * @return the current {@code RelayedAuthenticationRequest} instance, allowing for method chaining */ public RelayedAuthenticationRequest paymentInstrumentId(String paymentInstrumentId) { @@ -178,8 +181,13 @@ public RelayedAuthenticationRequest paymentInstrumentId(String paymentInstrument } /** - * The unique identifier of the [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_) used for the purchase. - * @return paymentInstrumentId The unique identifier of the [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_) used for the purchase. + * The unique identifier of the [payment + * instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_) + * used for the purchase. + * + * @return paymentInstrumentId The unique identifier of the [payment + * instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_) + * used for the purchase. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,9 +196,13 @@ public String getPaymentInstrumentId() { } /** - * The unique identifier of the [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_) used for the purchase. + * The unique identifier of the [payment + * instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_) + * used for the purchase. * - * @param paymentInstrumentId The unique identifier of the [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_) used for the purchase. + * @param paymentInstrumentId The unique identifier of the [payment + * instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_) + * used for the purchase. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -201,7 +213,7 @@ public void setPaymentInstrumentId(String paymentInstrumentId) { /** * purchase * - * @param purchase + * @param purchase * @return the current {@code RelayedAuthenticationRequest} instance, allowing for method chaining */ public RelayedAuthenticationRequest purchase(Purchase purchase) { @@ -211,7 +223,8 @@ public RelayedAuthenticationRequest purchase(Purchase purchase) { /** * Get purchase - * @return purchase + * + * @return purchase */ @JsonProperty(JSON_PROPERTY_PURCHASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -222,7 +235,7 @@ public Purchase getPurchase() { /** * purchase * - * @param purchase + * @param purchase */ @JsonProperty(JSON_PROPERTY_PURCHASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -231,9 +244,11 @@ public void setPurchase(Purchase purchase) { } /** - * URL for auto-switching to the threeDS Requestor App. If not present, the threeDS Requestor App doesn't support auto-switching. + * URL for auto-switching to the threeDS Requestor App. If not present, the threeDS Requestor App + * doesn't support auto-switching. * - * @param threeDSRequestorAppURL URL for auto-switching to the threeDS Requestor App. If not present, the threeDS Requestor App doesn't support auto-switching. + * @param threeDSRequestorAppURL URL for auto-switching to the threeDS Requestor App. If not + * present, the threeDS Requestor App doesn't support auto-switching. * @return the current {@code RelayedAuthenticationRequest} instance, allowing for method chaining */ public RelayedAuthenticationRequest threeDSRequestorAppURL(String threeDSRequestorAppURL) { @@ -242,8 +257,11 @@ public RelayedAuthenticationRequest threeDSRequestorAppURL(String threeDSRequest } /** - * URL for auto-switching to the threeDS Requestor App. If not present, the threeDS Requestor App doesn't support auto-switching. - * @return threeDSRequestorAppURL URL for auto-switching to the threeDS Requestor App. If not present, the threeDS Requestor App doesn't support auto-switching. + * URL for auto-switching to the threeDS Requestor App. If not present, the threeDS Requestor App + * doesn't support auto-switching. + * + * @return threeDSRequestorAppURL URL for auto-switching to the threeDS Requestor App. If not + * present, the threeDS Requestor App doesn't support auto-switching. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_APP_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,9 +270,11 @@ public String getThreeDSRequestorAppURL() { } /** - * URL for auto-switching to the threeDS Requestor App. If not present, the threeDS Requestor App doesn't support auto-switching. + * URL for auto-switching to the threeDS Requestor App. If not present, the threeDS Requestor App + * doesn't support auto-switching. * - * @param threeDSRequestorAppURL URL for auto-switching to the threeDS Requestor App. If not present, the threeDS Requestor App doesn't support auto-switching. + * @param threeDSRequestorAppURL URL for auto-switching to the threeDS Requestor App. If not + * present, the threeDS Requestor App doesn't support auto-switching. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_APP_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -275,6 +295,7 @@ public RelayedAuthenticationRequest timestamp(OffsetDateTime timestamp) { /** * When the event was queued. + * * @return timestamp When the event was queued. */ @JsonProperty(JSON_PROPERTY_TIMESTAMP) @@ -307,6 +328,7 @@ public RelayedAuthenticationRequest type(TypeEnum type) { /** * Type of notification. + * * @return type Type of notification. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -326,9 +348,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this RelayedAuthenticationRequest object is equal to o. - */ + /** Return true if this RelayedAuthenticationRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -338,18 +358,21 @@ public boolean equals(Object o) { return false; } RelayedAuthenticationRequest relayedAuthenticationRequest = (RelayedAuthenticationRequest) o; - return Objects.equals(this.environment, relayedAuthenticationRequest.environment) && - Objects.equals(this.id, relayedAuthenticationRequest.id) && - Objects.equals(this.paymentInstrumentId, relayedAuthenticationRequest.paymentInstrumentId) && - Objects.equals(this.purchase, relayedAuthenticationRequest.purchase) && - Objects.equals(this.threeDSRequestorAppURL, relayedAuthenticationRequest.threeDSRequestorAppURL) && - Objects.equals(this.timestamp, relayedAuthenticationRequest.timestamp) && - Objects.equals(this.type, relayedAuthenticationRequest.type); + return Objects.equals(this.environment, relayedAuthenticationRequest.environment) + && Objects.equals(this.id, relayedAuthenticationRequest.id) + && Objects.equals( + this.paymentInstrumentId, relayedAuthenticationRequest.paymentInstrumentId) + && Objects.equals(this.purchase, relayedAuthenticationRequest.purchase) + && Objects.equals( + this.threeDSRequestorAppURL, relayedAuthenticationRequest.threeDSRequestorAppURL) + && Objects.equals(this.timestamp, relayedAuthenticationRequest.timestamp) + && Objects.equals(this.type, relayedAuthenticationRequest.type); } @Override public int hashCode() { - return Objects.hash(environment, id, paymentInstrumentId, purchase, threeDSRequestorAppURL, timestamp, type); + return Objects.hash( + environment, id, paymentInstrumentId, purchase, threeDSRequestorAppURL, timestamp, type); } @Override @@ -358,9 +381,13 @@ public String toString() { sb.append("class RelayedAuthenticationRequest {\n"); sb.append(" environment: ").append(toIndentedString(environment)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" paymentInstrumentId: ").append(toIndentedString(paymentInstrumentId)).append("\n"); + sb.append(" paymentInstrumentId: ") + .append(toIndentedString(paymentInstrumentId)) + .append("\n"); sb.append(" purchase: ").append(toIndentedString(purchase)).append("\n"); - sb.append(" threeDSRequestorAppURL: ").append(toIndentedString(threeDSRequestorAppURL)).append("\n"); + sb.append(" threeDSRequestorAppURL: ") + .append(toIndentedString(threeDSRequestorAppURL)) + .append("\n"); sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -368,8 +395,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -378,21 +404,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RelayedAuthenticationRequest given an JSON string * * @param jsonString JSON string * @return An instance of RelayedAuthenticationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to RelayedAuthenticationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * RelayedAuthenticationRequest */ - public static RelayedAuthenticationRequest fromJson(String jsonString) throws JsonProcessingException { + public static RelayedAuthenticationRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RelayedAuthenticationRequest.class); } -/** - * Convert an instance of RelayedAuthenticationRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RelayedAuthenticationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/acswebhooks/RelayedAuthenticationResponse.java b/src/main/java/com/adyen/model/acswebhooks/RelayedAuthenticationResponse.java index 5f6f695fa..edb1533bf 100644 --- a/src/main/java/com/adyen/model/acswebhooks/RelayedAuthenticationResponse.java +++ b/src/main/java/com/adyen/model/acswebhooks/RelayedAuthenticationResponse.java @@ -2,57 +2,46 @@ * Authentication webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.acswebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.acswebhooks.AuthenticationDecision; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * RelayedAuthenticationResponse - */ -@JsonPropertyOrder({ - RelayedAuthenticationResponse.JSON_PROPERTY_AUTHENTICATION_DECISION -}) - +/** RelayedAuthenticationResponse */ +@JsonPropertyOrder({RelayedAuthenticationResponse.JSON_PROPERTY_AUTHENTICATION_DECISION}) public class RelayedAuthenticationResponse { public static final String JSON_PROPERTY_AUTHENTICATION_DECISION = "authenticationDecision"; private AuthenticationDecision authenticationDecision; - public RelayedAuthenticationResponse() { - } + public RelayedAuthenticationResponse() {} /** * authenticationDecision * - * @param authenticationDecision - * @return the current {@code RelayedAuthenticationResponse} instance, allowing for method chaining + * @param authenticationDecision + * @return the current {@code RelayedAuthenticationResponse} instance, allowing for method + * chaining */ - public RelayedAuthenticationResponse authenticationDecision(AuthenticationDecision authenticationDecision) { + public RelayedAuthenticationResponse authenticationDecision( + AuthenticationDecision authenticationDecision) { this.authenticationDecision = authenticationDecision; return this; } /** * Get authenticationDecision - * @return authenticationDecision + * + * @return authenticationDecision */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_DECISION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,7 +52,7 @@ public AuthenticationDecision getAuthenticationDecision() { /** * authenticationDecision * - * @param authenticationDecision + * @param authenticationDecision */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_DECISION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,9 +60,7 @@ public void setAuthenticationDecision(AuthenticationDecision authenticationDecis this.authenticationDecision = authenticationDecision; } - /** - * Return true if this RelayedAuthenticationResponse object is equal to o. - */ + /** Return true if this RelayedAuthenticationResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -83,7 +70,8 @@ public boolean equals(Object o) { return false; } RelayedAuthenticationResponse relayedAuthenticationResponse = (RelayedAuthenticationResponse) o; - return Objects.equals(this.authenticationDecision, relayedAuthenticationResponse.authenticationDecision); + return Objects.equals( + this.authenticationDecision, relayedAuthenticationResponse.authenticationDecision); } @Override @@ -95,14 +83,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RelayedAuthenticationResponse {\n"); - sb.append(" authenticationDecision: ").append(toIndentedString(authenticationDecision)).append("\n"); + sb.append(" authenticationDecision: ") + .append(toIndentedString(authenticationDecision)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -111,21 +100,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RelayedAuthenticationResponse given an JSON string * * @param jsonString JSON string * @return An instance of RelayedAuthenticationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to RelayedAuthenticationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * RelayedAuthenticationResponse */ - public static RelayedAuthenticationResponse fromJson(String jsonString) throws JsonProcessingException { + public static RelayedAuthenticationResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RelayedAuthenticationResponse.class); } -/** - * Convert an instance of RelayedAuthenticationResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RelayedAuthenticationResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/acswebhooks/Resource.java b/src/main/java/com/adyen/model/acswebhooks/Resource.java index 047d0b2a9..37bb6def5 100644 --- a/src/main/java/com/adyen/model/acswebhooks/Resource.java +++ b/src/main/java/com/adyen/model/acswebhooks/Resource.java @@ -2,38 +2,28 @@ * Authentication webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.acswebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.time.OffsetDateTime; +import java.util.*; - -/** - * Resource - */ +/** Resource */ @JsonPropertyOrder({ Resource.JSON_PROPERTY_BALANCE_PLATFORM, Resource.JSON_PROPERTY_CREATION_DATE, Resource.JSON_PROPERTY_ID }) - public class Resource { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; @@ -44,8 +34,7 @@ public class Resource { public static final String JSON_PROPERTY_ID = "id"; private String id; - public Resource() { - } + public Resource() {} /** * The unique identifier of the balance platform. @@ -60,6 +49,7 @@ public Resource balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. + * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -80,9 +70,11 @@ public void setBalancePlatform(String balancePlatform) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code Resource} instance, allowing for method chaining */ public Resource creationDate(OffsetDateTime creationDate) { @@ -91,8 +83,11 @@ public Resource creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. + * + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,9 +96,11 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,6 +121,7 @@ public Resource id(String id) { /** * The ID of the resource. + * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -143,9 +141,7 @@ public void setId(String id) { this.id = id; } - /** - * Return true if this Resource object is equal to o. - */ + /** Return true if this Resource object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -155,9 +151,9 @@ public boolean equals(Object o) { return false; } Resource resource = (Resource) o; - return Objects.equals(this.balancePlatform, resource.balancePlatform) && - Objects.equals(this.creationDate, resource.creationDate) && - Objects.equals(this.id, resource.id); + return Objects.equals(this.balancePlatform, resource.balancePlatform) + && Objects.equals(this.creationDate, resource.creationDate) + && Objects.equals(this.id, resource.id); } @Override @@ -177,8 +173,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -187,7 +182,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Resource given an JSON string * * @param jsonString JSON string @@ -197,11 +192,12 @@ private String toIndentedString(Object o) { public static Resource fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Resource.class); } -/** - * Convert an instance of Resource to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Resource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/acswebhooks/ServiceError.java b/src/main/java/com/adyen/model/acswebhooks/ServiceError.java index ca40621e4..d70fd8386 100644 --- a/src/main/java/com/adyen/model/acswebhooks/ServiceError.java +++ b/src/main/java/com/adyen/model/acswebhooks/ServiceError.java @@ -2,31 +2,22 @@ * Authentication webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.acswebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ServiceError - */ +/** ServiceError */ @JsonPropertyOrder({ ServiceError.JSON_PROPERTY_ERROR_CODE, ServiceError.JSON_PROPERTY_ERROR_TYPE, @@ -34,7 +25,6 @@ ServiceError.JSON_PROPERTY_PSP_REFERENCE, ServiceError.JSON_PROPERTY_STATUS }) - public class ServiceError { public static final String JSON_PROPERTY_ERROR_CODE = "errorCode"; private String errorCode; @@ -51,8 +41,7 @@ public class ServiceError { public static final String JSON_PROPERTY_STATUS = "status"; private Integer status; - public ServiceError() { - } + public ServiceError() {} /** * The error code mapped to the error message. @@ -67,6 +56,7 @@ public ServiceError errorCode(String errorCode) { /** * The error code mapped to the error message. + * * @return errorCode The error code mapped to the error message. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -99,6 +89,7 @@ public ServiceError errorType(String errorType) { /** * The category of the error. + * * @return errorType The category of the error. */ @JsonProperty(JSON_PROPERTY_ERROR_TYPE) @@ -131,6 +122,7 @@ public ServiceError message(String message) { /** * A short explanation of the issue. + * * @return message A short explanation of the issue. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -163,6 +155,7 @@ public ServiceError pspReference(String pspReference) { /** * The PSP reference of the payment. + * * @return pspReference The PSP reference of the payment. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -195,6 +188,7 @@ public ServiceError status(Integer status) { /** * The HTTP response status. + * * @return status The HTTP response status. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -214,9 +208,7 @@ public void setStatus(Integer status) { this.status = status; } - /** - * Return true if this ServiceError object is equal to o. - */ + /** Return true if this ServiceError object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -226,11 +218,11 @@ public boolean equals(Object o) { return false; } ServiceError serviceError = (ServiceError) o; - return Objects.equals(this.errorCode, serviceError.errorCode) && - Objects.equals(this.errorType, serviceError.errorType) && - Objects.equals(this.message, serviceError.message) && - Objects.equals(this.pspReference, serviceError.pspReference) && - Objects.equals(this.status, serviceError.status); + return Objects.equals(this.errorCode, serviceError.errorCode) + && Objects.equals(this.errorType, serviceError.errorType) + && Objects.equals(this.message, serviceError.message) + && Objects.equals(this.pspReference, serviceError.pspReference) + && Objects.equals(this.status, serviceError.status); } @Override @@ -252,8 +244,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -262,7 +253,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ServiceError given an JSON string * * @param jsonString JSON string @@ -272,11 +263,12 @@ private String toIndentedString(Object o) { public static ServiceError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } -/** - * Convert an instance of ServiceError to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ServiceError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balancecontrol/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/balancecontrol/AbstractOpenApiSchema.java index a44b2774a..16047f516 100644 --- a/src/main/java/com/adyen/model/balancecontrol/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/balancecontrol/AbstractOpenApiSchema.java @@ -2,145 +2,141 @@ * Adyen Balance Control API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balancecontrol; -import java.util.Objects; -import java.util.Map; -import jakarta.ws.rs.core.GenericType; - import com.fasterxml.jackson.annotation.JsonValue; +import jakarta.ws.rs.core.GenericType; +import java.util.Map; +import java.util.Objects; -/** - * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec - */ +/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() {return instance;} - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) {this.instance = instance;} - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); - } else { - return object.getActualInstance(); - } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() { + return instance; + } + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) { + this.instance = instance; + } + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf + * schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); + } else { + return object.getActualInstance(); } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) && - Objects.equals(this.isNullable, a.isNullable) && - Objects.equals(this.schemaType, a.schemaType); + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; } + return o.toString().replace("\n", "\n "); + } - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); + public boolean equals(Object o) { + if (this == o) { + return true; } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); + if (o == null || getClass() != o.getClass()) { + return false; } - - - -} \ No newline at end of file + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) + && Objects.equals(this.isNullable, a.isNullable) + && Objects.equals(this.schemaType, a.schemaType); + } + + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); + } + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); + } +} diff --git a/src/main/java/com/adyen/model/balancecontrol/Amount.java b/src/main/java/com/adyen/model/balancecontrol/Amount.java index 6ed23313a..076c43f80 100644 --- a/src/main/java/com/adyen/model/balancecontrol/Amount.java +++ b/src/main/java/com/adyen/model/balancecontrol/Amount.java @@ -2,36 +2,23 @@ * Adyen Balance Control API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balancecontrol; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Amount - */ -@JsonPropertyOrder({ - Amount.JSON_PROPERTY_CURRENCY, - Amount.JSON_PROPERTY_VALUE -}) - +/** Amount */ +@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -39,13 +26,14 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() { - } + public Amount() {} /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount currency(String currency) { @@ -54,8 +42,11 @@ public Amount currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +55,11 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,9 +68,11 @@ public void setCurrency(String currency) { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount value(Long value) { @@ -86,8 +81,11 @@ public Amount value(Long value) { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). - * @return value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * + * @return value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +94,11 @@ public Long getValue() { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +106,7 @@ public void setValue(Long value) { this.value = value; } - /** - * Return true if this Amount object is equal to o. - */ + /** Return true if this Amount object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +116,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) && - Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) + && Objects.equals(this.value, amount.value); } @Override @@ -138,8 +136,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +145,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -158,11 +155,12 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } -/** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balancecontrol/BalanceTransferRequest.java b/src/main/java/com/adyen/model/balancecontrol/BalanceTransferRequest.java index 09be977a2..a4b8feb0b 100644 --- a/src/main/java/com/adyen/model/balancecontrol/BalanceTransferRequest.java +++ b/src/main/java/com/adyen/model/balancecontrol/BalanceTransferRequest.java @@ -2,32 +2,26 @@ * Adyen Balance Control API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balancecontrol; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balancecontrol.Amount; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * BalanceTransferRequest - */ +/** BalanceTransferRequest */ @JsonPropertyOrder({ BalanceTransferRequest.JSON_PROPERTY_AMOUNT, BalanceTransferRequest.JSON_PROPERTY_DESCRIPTION, @@ -36,7 +30,6 @@ BalanceTransferRequest.JSON_PROPERTY_TO_MERCHANT, BalanceTransferRequest.JSON_PROPERTY_TYPE }) - public class BalanceTransferRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -54,10 +47,10 @@ public class BalanceTransferRequest { private String toMerchant; /** - * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**. + * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, + * **debit**, and **adjustment**. */ public enum TypeEnum { - TAX(String.valueOf("tax")), FEE(String.valueOf("fee")), @@ -75,7 +68,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -96,7 +89,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -104,13 +101,12 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public BalanceTransferRequest() { - } + public BalanceTransferRequest() {} /** * amount * - * @param amount + * @param amount * @return the current {@code BalanceTransferRequest} instance, allowing for method chaining */ public BalanceTransferRequest amount(Amount amount) { @@ -120,7 +116,8 @@ public BalanceTransferRequest amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -131,7 +128,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,9 +137,12 @@ public void setAmount(Amount amount) { } /** - * A human-readable description for the transfer. You can use alphanumeric characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. + * A human-readable description for the transfer. You can use alphanumeric characters and hyphens. + * We recommend sending a maximum of 140 characters, otherwise the description may be truncated. * - * @param description A human-readable description for the transfer. You can use alphanumeric characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. + * @param description A human-readable description for the transfer. You can use alphanumeric + * characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the + * description may be truncated. * @return the current {@code BalanceTransferRequest} instance, allowing for method chaining */ public BalanceTransferRequest description(String description) { @@ -151,8 +151,12 @@ public BalanceTransferRequest description(String description) { } /** - * A human-readable description for the transfer. You can use alphanumeric characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. - * @return description A human-readable description for the transfer. You can use alphanumeric characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. + * A human-readable description for the transfer. You can use alphanumeric characters and hyphens. + * We recommend sending a maximum of 140 characters, otherwise the description may be truncated. + * + * @return description A human-readable description for the transfer. You can use alphanumeric + * characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the + * description may be truncated. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,9 +165,12 @@ public String getDescription() { } /** - * A human-readable description for the transfer. You can use alphanumeric characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. + * A human-readable description for the transfer. You can use alphanumeric characters and hyphens. + * We recommend sending a maximum of 140 characters, otherwise the description may be truncated. * - * @param description A human-readable description for the transfer. You can use alphanumeric characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. + * @param description A human-readable description for the transfer. You can use alphanumeric + * characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the + * description may be truncated. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -174,7 +181,8 @@ public void setDescription(String description) { /** * The unique identifier of the source merchant account from which funds are deducted. * - * @param fromMerchant The unique identifier of the source merchant account from which funds are deducted. + * @param fromMerchant The unique identifier of the source merchant account from which funds are + * deducted. * @return the current {@code BalanceTransferRequest} instance, allowing for method chaining */ public BalanceTransferRequest fromMerchant(String fromMerchant) { @@ -184,7 +192,9 @@ public BalanceTransferRequest fromMerchant(String fromMerchant) { /** * The unique identifier of the source merchant account from which funds are deducted. - * @return fromMerchant The unique identifier of the source merchant account from which funds are deducted. + * + * @return fromMerchant The unique identifier of the source merchant account from which funds are + * deducted. */ @JsonProperty(JSON_PROPERTY_FROM_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,7 +205,8 @@ public String getFromMerchant() { /** * The unique identifier of the source merchant account from which funds are deducted. * - * @param fromMerchant The unique identifier of the source merchant account from which funds are deducted. + * @param fromMerchant The unique identifier of the source merchant account from which funds are + * deducted. */ @JsonProperty(JSON_PROPERTY_FROM_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,9 +215,11 @@ public void setFromMerchant(String fromMerchant) { } /** - * A reference for the balance transfer. If you don't provide this in the request, Adyen generates a unique reference. Maximum length: 80 characters. + * A reference for the balance transfer. If you don't provide this in the request, Adyen + * generates a unique reference. Maximum length: 80 characters. * - * @param reference A reference for the balance transfer. If you don't provide this in the request, Adyen generates a unique reference. Maximum length: 80 characters. + * @param reference A reference for the balance transfer. If you don't provide this in the + * request, Adyen generates a unique reference. Maximum length: 80 characters. * @return the current {@code BalanceTransferRequest} instance, allowing for method chaining */ public BalanceTransferRequest reference(String reference) { @@ -215,8 +228,11 @@ public BalanceTransferRequest reference(String reference) { } /** - * A reference for the balance transfer. If you don't provide this in the request, Adyen generates a unique reference. Maximum length: 80 characters. - * @return reference A reference for the balance transfer. If you don't provide this in the request, Adyen generates a unique reference. Maximum length: 80 characters. + * A reference for the balance transfer. If you don't provide this in the request, Adyen + * generates a unique reference. Maximum length: 80 characters. + * + * @return reference A reference for the balance transfer. If you don't provide this in the + * request, Adyen generates a unique reference. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -225,9 +241,11 @@ public String getReference() { } /** - * A reference for the balance transfer. If you don't provide this in the request, Adyen generates a unique reference. Maximum length: 80 characters. + * A reference for the balance transfer. If you don't provide this in the request, Adyen + * generates a unique reference. Maximum length: 80 characters. * - * @param reference A reference for the balance transfer. If you don't provide this in the request, Adyen generates a unique reference. Maximum length: 80 characters. + * @param reference A reference for the balance transfer. If you don't provide this in the + * request, Adyen generates a unique reference. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -238,7 +256,8 @@ public void setReference(String reference) { /** * The unique identifier of the destination merchant account from which funds are transferred. * - * @param toMerchant The unique identifier of the destination merchant account from which funds are transferred. + * @param toMerchant The unique identifier of the destination merchant account from which funds + * are transferred. * @return the current {@code BalanceTransferRequest} instance, allowing for method chaining */ public BalanceTransferRequest toMerchant(String toMerchant) { @@ -248,7 +267,9 @@ public BalanceTransferRequest toMerchant(String toMerchant) { /** * The unique identifier of the destination merchant account from which funds are transferred. - * @return toMerchant The unique identifier of the destination merchant account from which funds are transferred. + * + * @return toMerchant The unique identifier of the destination merchant account from which funds + * are transferred. */ @JsonProperty(JSON_PROPERTY_TO_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -259,7 +280,8 @@ public String getToMerchant() { /** * The unique identifier of the destination merchant account from which funds are transferred. * - * @param toMerchant The unique identifier of the destination merchant account from which funds are transferred. + * @param toMerchant The unique identifier of the destination merchant account from which funds + * are transferred. */ @JsonProperty(JSON_PROPERTY_TO_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -268,9 +290,11 @@ public void setToMerchant(String toMerchant) { } /** - * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**. + * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, + * **debit**, and **adjustment**. * - * @param type The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**. + * @param type The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, + * **credit**, **debit**, and **adjustment**. * @return the current {@code BalanceTransferRequest} instance, allowing for method chaining */ public BalanceTransferRequest type(TypeEnum type) { @@ -279,8 +303,11 @@ public BalanceTransferRequest type(TypeEnum type) { } /** - * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**. - * @return type The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**. + * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, + * **debit**, and **adjustment**. + * + * @return type The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, + * **credit**, **debit**, and **adjustment**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -289,9 +316,11 @@ public TypeEnum getType() { } /** - * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**. + * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, + * **debit**, and **adjustment**. * - * @param type The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**. + * @param type The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, + * **credit**, **debit**, and **adjustment**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -299,9 +328,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this BalanceTransferRequest object is equal to o. - */ + /** Return true if this BalanceTransferRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -311,12 +338,12 @@ public boolean equals(Object o) { return false; } BalanceTransferRequest balanceTransferRequest = (BalanceTransferRequest) o; - return Objects.equals(this.amount, balanceTransferRequest.amount) && - Objects.equals(this.description, balanceTransferRequest.description) && - Objects.equals(this.fromMerchant, balanceTransferRequest.fromMerchant) && - Objects.equals(this.reference, balanceTransferRequest.reference) && - Objects.equals(this.toMerchant, balanceTransferRequest.toMerchant) && - Objects.equals(this.type, balanceTransferRequest.type); + return Objects.equals(this.amount, balanceTransferRequest.amount) + && Objects.equals(this.description, balanceTransferRequest.description) + && Objects.equals(this.fromMerchant, balanceTransferRequest.fromMerchant) + && Objects.equals(this.reference, balanceTransferRequest.reference) + && Objects.equals(this.toMerchant, balanceTransferRequest.toMerchant) + && Objects.equals(this.type, balanceTransferRequest.type); } @Override @@ -339,8 +366,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -349,21 +375,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BalanceTransferRequest given an JSON string * * @param jsonString JSON string * @return An instance of BalanceTransferRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceTransferRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BalanceTransferRequest */ public static BalanceTransferRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceTransferRequest.class); } -/** - * Convert an instance of BalanceTransferRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BalanceTransferRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balancecontrol/BalanceTransferResponse.java b/src/main/java/com/adyen/model/balancecontrol/BalanceTransferResponse.java index db5a8ed99..e4922ef8a 100644 --- a/src/main/java/com/adyen/model/balancecontrol/BalanceTransferResponse.java +++ b/src/main/java/com/adyen/model/balancecontrol/BalanceTransferResponse.java @@ -2,33 +2,27 @@ * Adyen Balance Control API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balancecontrol; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balancecontrol.Amount; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * BalanceTransferResponse - */ +/** BalanceTransferResponse */ @JsonPropertyOrder({ BalanceTransferResponse.JSON_PROPERTY_AMOUNT, BalanceTransferResponse.JSON_PROPERTY_CREATED_AT, @@ -40,7 +34,6 @@ BalanceTransferResponse.JSON_PROPERTY_TO_MERCHANT, BalanceTransferResponse.JSON_PROPERTY_TYPE }) - public class BalanceTransferResponse { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -61,10 +54,10 @@ public class BalanceTransferResponse { private String reference; /** - * The status of the balance transfer. Possible values: **transferred**, **failed**, **error**, and **notEnoughBalance**. + * The status of the balance transfer. Possible values: **transferred**, **failed**, **error**, + * and **notEnoughBalance**. */ public enum StatusEnum { - ERROR(String.valueOf("error")), FAILED(String.valueOf("failed")), @@ -78,7 +71,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -99,7 +92,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -111,10 +108,10 @@ public static StatusEnum fromValue(String value) { private String toMerchant; /** - * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**. + * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, + * **debit**, and **adjustment**. */ public enum TypeEnum { - TAX(String.valueOf("tax")), FEE(String.valueOf("fee")), @@ -132,7 +129,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -153,7 +150,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -161,13 +162,12 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public BalanceTransferResponse() { - } + public BalanceTransferResponse() {} /** * amount * - * @param amount + * @param amount * @return the current {@code BalanceTransferResponse} instance, allowing for method chaining */ public BalanceTransferResponse amount(Amount amount) { @@ -177,7 +177,8 @@ public BalanceTransferResponse amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,7 +189,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -209,6 +210,7 @@ public BalanceTransferResponse createdAt(OffsetDateTime createdAt) { /** * The date when the balance transfer was requested. + * * @return createdAt The date when the balance transfer was requested. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @@ -229,9 +231,12 @@ public void setCreatedAt(OffsetDateTime createdAt) { } /** - * A human-readable description for the transfer. You can use alphanumeric characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. + * A human-readable description for the transfer. You can use alphanumeric characters and hyphens. + * We recommend sending a maximum of 140 characters, otherwise the description may be truncated. * - * @param description A human-readable description for the transfer. You can use alphanumeric characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. + * @param description A human-readable description for the transfer. You can use alphanumeric + * characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the + * description may be truncated. * @return the current {@code BalanceTransferResponse} instance, allowing for method chaining */ public BalanceTransferResponse description(String description) { @@ -240,8 +245,12 @@ public BalanceTransferResponse description(String description) { } /** - * A human-readable description for the transfer. You can use alphanumeric characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. - * @return description A human-readable description for the transfer. You can use alphanumeric characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. + * A human-readable description for the transfer. You can use alphanumeric characters and hyphens. + * We recommend sending a maximum of 140 characters, otherwise the description may be truncated. + * + * @return description A human-readable description for the transfer. You can use alphanumeric + * characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the + * description may be truncated. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,9 +259,12 @@ public String getDescription() { } /** - * A human-readable description for the transfer. You can use alphanumeric characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. + * A human-readable description for the transfer. You can use alphanumeric characters and hyphens. + * We recommend sending a maximum of 140 characters, otherwise the description may be truncated. * - * @param description A human-readable description for the transfer. You can use alphanumeric characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. + * @param description A human-readable description for the transfer. You can use alphanumeric + * characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the + * description may be truncated. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -263,7 +275,8 @@ public void setDescription(String description) { /** * The unique identifier of the source merchant account from which funds are deducted. * - * @param fromMerchant The unique identifier of the source merchant account from which funds are deducted. + * @param fromMerchant The unique identifier of the source merchant account from which funds are + * deducted. * @return the current {@code BalanceTransferResponse} instance, allowing for method chaining */ public BalanceTransferResponse fromMerchant(String fromMerchant) { @@ -273,7 +286,9 @@ public BalanceTransferResponse fromMerchant(String fromMerchant) { /** * The unique identifier of the source merchant account from which funds are deducted. - * @return fromMerchant The unique identifier of the source merchant account from which funds are deducted. + * + * @return fromMerchant The unique identifier of the source merchant account from which funds are + * deducted. */ @JsonProperty(JSON_PROPERTY_FROM_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,7 +299,8 @@ public String getFromMerchant() { /** * The unique identifier of the source merchant account from which funds are deducted. * - * @param fromMerchant The unique identifier of the source merchant account from which funds are deducted. + * @param fromMerchant The unique identifier of the source merchant account from which funds are + * deducted. */ @JsonProperty(JSON_PROPERTY_FROM_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -295,7 +311,8 @@ public void setFromMerchant(String fromMerchant) { /** * Adyen's 16-character string reference associated with the balance transfer. * - * @param pspReference Adyen's 16-character string reference associated with the balance transfer. + * @param pspReference Adyen's 16-character string reference associated with the balance + * transfer. * @return the current {@code BalanceTransferResponse} instance, allowing for method chaining */ public BalanceTransferResponse pspReference(String pspReference) { @@ -305,7 +322,9 @@ public BalanceTransferResponse pspReference(String pspReference) { /** * Adyen's 16-character string reference associated with the balance transfer. - * @return pspReference Adyen's 16-character string reference associated with the balance transfer. + * + * @return pspReference Adyen's 16-character string reference associated with the balance + * transfer. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -316,7 +335,8 @@ public String getPspReference() { /** * Adyen's 16-character string reference associated with the balance transfer. * - * @param pspReference Adyen's 16-character string reference associated with the balance transfer. + * @param pspReference Adyen's 16-character string reference associated with the balance + * transfer. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -325,9 +345,11 @@ public void setPspReference(String pspReference) { } /** - * A reference for the balance transfer. If you don't provide this in the request, Adyen generates a unique reference. Maximum length: 80 characters. + * A reference for the balance transfer. If you don't provide this in the request, Adyen + * generates a unique reference. Maximum length: 80 characters. * - * @param reference A reference for the balance transfer. If you don't provide this in the request, Adyen generates a unique reference. Maximum length: 80 characters. + * @param reference A reference for the balance transfer. If you don't provide this in the + * request, Adyen generates a unique reference. Maximum length: 80 characters. * @return the current {@code BalanceTransferResponse} instance, allowing for method chaining */ public BalanceTransferResponse reference(String reference) { @@ -336,8 +358,11 @@ public BalanceTransferResponse reference(String reference) { } /** - * A reference for the balance transfer. If you don't provide this in the request, Adyen generates a unique reference. Maximum length: 80 characters. - * @return reference A reference for the balance transfer. If you don't provide this in the request, Adyen generates a unique reference. Maximum length: 80 characters. + * A reference for the balance transfer. If you don't provide this in the request, Adyen + * generates a unique reference. Maximum length: 80 characters. + * + * @return reference A reference for the balance transfer. If you don't provide this in the + * request, Adyen generates a unique reference. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -346,9 +371,11 @@ public String getReference() { } /** - * A reference for the balance transfer. If you don't provide this in the request, Adyen generates a unique reference. Maximum length: 80 characters. + * A reference for the balance transfer. If you don't provide this in the request, Adyen + * generates a unique reference. Maximum length: 80 characters. * - * @param reference A reference for the balance transfer. If you don't provide this in the request, Adyen generates a unique reference. Maximum length: 80 characters. + * @param reference A reference for the balance transfer. If you don't provide this in the + * request, Adyen generates a unique reference. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -357,9 +384,11 @@ public void setReference(String reference) { } /** - * The status of the balance transfer. Possible values: **transferred**, **failed**, **error**, and **notEnoughBalance**. + * The status of the balance transfer. Possible values: **transferred**, **failed**, **error**, + * and **notEnoughBalance**. * - * @param status The status of the balance transfer. Possible values: **transferred**, **failed**, **error**, and **notEnoughBalance**. + * @param status The status of the balance transfer. Possible values: **transferred**, **failed**, + * **error**, and **notEnoughBalance**. * @return the current {@code BalanceTransferResponse} instance, allowing for method chaining */ public BalanceTransferResponse status(StatusEnum status) { @@ -368,8 +397,11 @@ public BalanceTransferResponse status(StatusEnum status) { } /** - * The status of the balance transfer. Possible values: **transferred**, **failed**, **error**, and **notEnoughBalance**. - * @return status The status of the balance transfer. Possible values: **transferred**, **failed**, **error**, and **notEnoughBalance**. + * The status of the balance transfer. Possible values: **transferred**, **failed**, **error**, + * and **notEnoughBalance**. + * + * @return status The status of the balance transfer. Possible values: **transferred**, + * **failed**, **error**, and **notEnoughBalance**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -378,9 +410,11 @@ public StatusEnum getStatus() { } /** - * The status of the balance transfer. Possible values: **transferred**, **failed**, **error**, and **notEnoughBalance**. + * The status of the balance transfer. Possible values: **transferred**, **failed**, **error**, + * and **notEnoughBalance**. * - * @param status The status of the balance transfer. Possible values: **transferred**, **failed**, **error**, and **notEnoughBalance**. + * @param status The status of the balance transfer. Possible values: **transferred**, **failed**, + * **error**, and **notEnoughBalance**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -391,7 +425,8 @@ public void setStatus(StatusEnum status) { /** * The unique identifier of the destination merchant account from which funds are transferred. * - * @param toMerchant The unique identifier of the destination merchant account from which funds are transferred. + * @param toMerchant The unique identifier of the destination merchant account from which funds + * are transferred. * @return the current {@code BalanceTransferResponse} instance, allowing for method chaining */ public BalanceTransferResponse toMerchant(String toMerchant) { @@ -401,7 +436,9 @@ public BalanceTransferResponse toMerchant(String toMerchant) { /** * The unique identifier of the destination merchant account from which funds are transferred. - * @return toMerchant The unique identifier of the destination merchant account from which funds are transferred. + * + * @return toMerchant The unique identifier of the destination merchant account from which funds + * are transferred. */ @JsonProperty(JSON_PROPERTY_TO_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -412,7 +449,8 @@ public String getToMerchant() { /** * The unique identifier of the destination merchant account from which funds are transferred. * - * @param toMerchant The unique identifier of the destination merchant account from which funds are transferred. + * @param toMerchant The unique identifier of the destination merchant account from which funds + * are transferred. */ @JsonProperty(JSON_PROPERTY_TO_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -421,9 +459,11 @@ public void setToMerchant(String toMerchant) { } /** - * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**. + * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, + * **debit**, and **adjustment**. * - * @param type The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**. + * @param type The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, + * **credit**, **debit**, and **adjustment**. * @return the current {@code BalanceTransferResponse} instance, allowing for method chaining */ public BalanceTransferResponse type(TypeEnum type) { @@ -432,8 +472,11 @@ public BalanceTransferResponse type(TypeEnum type) { } /** - * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**. - * @return type The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**. + * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, + * **debit**, and **adjustment**. + * + * @return type The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, + * **credit**, **debit**, and **adjustment**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -442,9 +485,11 @@ public TypeEnum getType() { } /** - * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**. + * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, + * **debit**, and **adjustment**. * - * @param type The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**. + * @param type The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, + * **credit**, **debit**, and **adjustment**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -452,9 +497,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this BalanceTransferResponse object is equal to o. - */ + /** Return true if this BalanceTransferResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -464,20 +507,29 @@ public boolean equals(Object o) { return false; } BalanceTransferResponse balanceTransferResponse = (BalanceTransferResponse) o; - return Objects.equals(this.amount, balanceTransferResponse.amount) && - Objects.equals(this.createdAt, balanceTransferResponse.createdAt) && - Objects.equals(this.description, balanceTransferResponse.description) && - Objects.equals(this.fromMerchant, balanceTransferResponse.fromMerchant) && - Objects.equals(this.pspReference, balanceTransferResponse.pspReference) && - Objects.equals(this.reference, balanceTransferResponse.reference) && - Objects.equals(this.status, balanceTransferResponse.status) && - Objects.equals(this.toMerchant, balanceTransferResponse.toMerchant) && - Objects.equals(this.type, balanceTransferResponse.type); + return Objects.equals(this.amount, balanceTransferResponse.amount) + && Objects.equals(this.createdAt, balanceTransferResponse.createdAt) + && Objects.equals(this.description, balanceTransferResponse.description) + && Objects.equals(this.fromMerchant, balanceTransferResponse.fromMerchant) + && Objects.equals(this.pspReference, balanceTransferResponse.pspReference) + && Objects.equals(this.reference, balanceTransferResponse.reference) + && Objects.equals(this.status, balanceTransferResponse.status) + && Objects.equals(this.toMerchant, balanceTransferResponse.toMerchant) + && Objects.equals(this.type, balanceTransferResponse.type); } @Override public int hashCode() { - return Objects.hash(amount, createdAt, description, fromMerchant, pspReference, reference, status, toMerchant, type); + return Objects.hash( + amount, + createdAt, + description, + fromMerchant, + pspReference, + reference, + status, + toMerchant, + type); } @Override @@ -498,8 +550,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -508,21 +559,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BalanceTransferResponse given an JSON string * * @param jsonString JSON string * @return An instance of BalanceTransferResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceTransferResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BalanceTransferResponse */ public static BalanceTransferResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceTransferResponse.class); } -/** - * Convert an instance of BalanceTransferResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BalanceTransferResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balancecontrol/JSON.java b/src/main/java/com/adyen/model/balancecontrol/JSON.java index 9dee8a946..a93acd72f 100644 --- a/src/main/java/com/adyen/model/balancecontrol/JSON.java +++ b/src/main/java/com/adyen/model/balancecontrol/JSON.java @@ -1,21 +1,18 @@ package com.adyen.model.balancecontrol; -import com.adyen.serializer.ByteArraySerializer; import com.adyen.serializer.ByteArrayDeserializer; +import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import com.adyen.model.balancecontrol.*; - +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -40,6 +37,7 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. + * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -56,11 +54,13 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { return mapper; } + public static ObjectMapper getMapper() { + return mapper; + } /** - * Returns the target model class that should be used to deserialize the input data. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,9 +73,7 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** - * Helper class to register the discriminator mappings. - */ + /** Helper class to register the discriminator mappings. */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -117,9 +115,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. - * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. This + * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -164,13 +162,14 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, - * so it's not possible to use the instanceof keyword. + *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so + * it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf( + Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -194,59 +193,58 @@ public static boolean isInstanceOf(Class modelClass, Object inst, Set, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); + /** A map of discriminators for all model classes. */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = + new HashMap, ClassDiscriminatorMapping>(); - /** - * A map of oneOf/anyOf descendants for each model class. - */ + /** A map of oneOf/anyOf descendants for each model class. */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator( + Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = + new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants(Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants( + Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static - { + static { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/balanceplatform/AULocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/AULocalAccountIdentification.java index e0238cd49..fc9b5cafd 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AULocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/AULocalAccountIdentification.java @@ -2,37 +2,31 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * AULocalAccountIdentification - */ +/** AULocalAccountIdentification */ @JsonPropertyOrder({ AULocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, AULocalAccountIdentification.JSON_PROPERTY_BSB_CODE, AULocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class AULocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -40,11 +34,8 @@ public class AULocalAccountIdentification { public static final String JSON_PROPERTY_BSB_CODE = "bsbCode"; private String bsbCode; - /** - * **auLocal** - */ + /** **auLocal** */ public enum TypeEnum { - AULOCAL(String.valueOf("auLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +43,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +64,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,8 +76,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AULocalAccountIdentification() { - } + public AULocalAccountIdentification() {} /** * The bank account number, without separators or whitespace. @@ -97,6 +91,7 @@ public AULocalAccountIdentification accountNumber(String accountNumber) { /** * The bank account number, without separators or whitespace. + * * @return accountNumber The bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -117,9 +112,11 @@ public void setAccountNumber(String accountNumber) { } /** - * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), + * without separators or whitespace. * - * @param bsbCode The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * @param bsbCode The 6-digit [Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. * @return the current {@code AULocalAccountIdentification} instance, allowing for method chaining */ public AULocalAccountIdentification bsbCode(String bsbCode) { @@ -128,8 +125,11 @@ public AULocalAccountIdentification bsbCode(String bsbCode) { } /** - * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. - * @return bsbCode The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), + * without separators or whitespace. + * + * @return bsbCode The 6-digit [Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_BSB_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,9 +138,11 @@ public String getBsbCode() { } /** - * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), + * without separators or whitespace. * - * @param bsbCode The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * @param bsbCode The 6-digit [Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_BSB_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,6 +163,7 @@ public AULocalAccountIdentification type(TypeEnum type) { /** * **auLocal** + * * @return type **auLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +183,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this AULocalAccountIdentification object is equal to o. - */ + /** Return true if this AULocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +193,9 @@ public boolean equals(Object o) { return false; } AULocalAccountIdentification auLocalAccountIdentification = (AULocalAccountIdentification) o; - return Objects.equals(this.accountNumber, auLocalAccountIdentification.accountNumber) && - Objects.equals(this.bsbCode, auLocalAccountIdentification.bsbCode) && - Objects.equals(this.type, auLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, auLocalAccountIdentification.accountNumber) + && Objects.equals(this.bsbCode, auLocalAccountIdentification.bsbCode) + && Objects.equals(this.type, auLocalAccountIdentification.type); } @Override @@ -214,8 +215,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +224,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AULocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of AULocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to AULocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AULocalAccountIdentification */ - public static AULocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static AULocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AULocalAccountIdentification.class); } -/** - * Convert an instance of AULocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AULocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/balanceplatform/AbstractOpenApiSchema.java index d41c09e3d..6300f20de 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/balanceplatform/AbstractOpenApiSchema.java @@ -2,145 +2,141 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.Objects; -import java.util.Map; -import jakarta.ws.rs.core.GenericType; - import com.fasterxml.jackson.annotation.JsonValue; +import jakarta.ws.rs.core.GenericType; +import java.util.Map; +import java.util.Objects; -/** - * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec - */ +/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() {return instance;} - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) {this.instance = instance;} - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); - } else { - return object.getActualInstance(); - } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() { + return instance; + } + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) { + this.instance = instance; + } + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf + * schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); + } else { + return object.getActualInstance(); } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) && - Objects.equals(this.isNullable, a.isNullable) && - Objects.equals(this.schemaType, a.schemaType); + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; } + return o.toString().replace("\n", "\n "); + } - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); + public boolean equals(Object o) { + if (this == o) { + return true; } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); + if (o == null || getClass() != o.getClass()) { + return false; } - - - -} \ No newline at end of file + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) + && Objects.equals(this.isNullable, a.isNullable) + && Objects.equals(this.schemaType, a.schemaType); + } + + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); + } + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); + } +} diff --git a/src/main/java/com/adyen/model/balanceplatform/AccountHolder.java b/src/main/java/com/adyen/model/balanceplatform/AccountHolder.java index 9bb7c539d..7051c52ce 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AccountHolder.java +++ b/src/main/java/com/adyen/model/balanceplatform/AccountHolder.java @@ -2,38 +2,29 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.AccountHolderCapability; -import com.adyen.model.balanceplatform.ContactDetails; -import com.adyen.model.balanceplatform.VerificationDeadline; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * AccountHolder - */ +/** AccountHolder */ @JsonPropertyOrder({ AccountHolder.JSON_PROPERTY_BALANCE_PLATFORM, AccountHolder.JSON_PROPERTY_CAPABILITIES, @@ -49,7 +40,6 @@ AccountHolder.JSON_PROPERTY_TIME_ZONE, AccountHolder.JSON_PROPERTY_VERIFICATION_DEADLINES }) - public class AccountHolder { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; @@ -58,7 +48,7 @@ public class AccountHolder { private Map capabilities; public static final String JSON_PROPERTY_CONTACT_DETAILS = "contactDetails"; - @Deprecated // deprecated + @Deprecated // deprecated private ContactDetails contactDetails; public static final String JSON_PROPERTY_DESCRIPTION = "description"; @@ -73,7 +63,8 @@ public class AccountHolder { public static final String JSON_PROPERTY_METADATA = "metadata"; private Map metadata; - public static final String JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE = "migratedAccountHolderCode"; + public static final String JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE = + "migratedAccountHolderCode"; private String migratedAccountHolderCode; public static final String JSON_PROPERTY_PRIMARY_BALANCE_ACCOUNT = "primaryBalanceAccount"; @@ -83,10 +74,14 @@ public class AccountHolder { private String reference; /** - * The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. + * The status of the account holder. Possible values: * **active**: The account holder is active + * and allowed to use its capabilities. This is the initial status for account holders and balance + * accounts. You can change this status to **suspended** or **closed**. * **suspended**: The + * account holder is temporarily disabled and payouts are blocked. You can change this status to + * **active** or **closed**. * **closed**: The account holder and all of its capabilities are + * permanently disabled. This is a final status and cannot be changed. */ public enum StatusEnum { - ACTIVE(String.valueOf("active")), CLOSED(String.valueOf("closed")), @@ -98,7 +93,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -119,7 +114,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -133,15 +132,14 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_VERIFICATION_DEADLINES = "verificationDeadlines"; private List verificationDeadlines; - public AccountHolder() { - } + public AccountHolder() {} @JsonCreator public AccountHolder( - @JsonProperty(JSON_PROPERTY_ID) String id, - @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE) String migratedAccountHolderCode, - @JsonProperty(JSON_PROPERTY_VERIFICATION_DEADLINES) List verificationDeadlines - ) { + @JsonProperty(JSON_PROPERTY_ID) String id, + @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE) String migratedAccountHolderCode, + @JsonProperty(JSON_PROPERTY_VERIFICATION_DEADLINES) + List verificationDeadlines) { this(); this.id = id; this.migratedAccountHolderCode = migratedAccountHolderCode; @@ -149,9 +147,15 @@ public AccountHolder( } /** - * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. + * The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the account holder belongs. Required in the request if your API credentials can be + * used for multiple balance platforms. * - * @param balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. + * @param balancePlatform The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the account holder belongs. Required in the request if your API credentials can be + * used for multiple balance platforms. * @return the current {@code AccountHolder} instance, allowing for method chaining */ public AccountHolder balancePlatform(String balancePlatform) { @@ -160,8 +164,15 @@ public AccountHolder balancePlatform(String balancePlatform) { } /** - * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. - * @return balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. + * The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the account holder belongs. Required in the request if your API credentials can be + * used for multiple balance platforms. + * + * @return balancePlatform The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the account holder belongs. Required in the request if your API credentials can be + * used for multiple balance platforms. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -170,9 +181,15 @@ public String getBalancePlatform() { } /** - * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. + * The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the account holder belongs. Required in the request if your API credentials can be + * used for multiple balance platforms. * - * @param balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. + * @param balancePlatform The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the account holder belongs. Required in the request if your API credentials can be + * used for multiple balance platforms. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,9 +198,14 @@ public void setBalancePlatform(String balancePlatform) { } /** - * Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that an account holder can do in your + * platform. The key is a capability required for your integration. For example, **issueCard** for + * Issuing. The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * @param capabilities Contains key-value pairs that specify the actions that an account holder + * can do in your platform. The key is a capability required for your integration. For + * example, **issueCard** for Issuing. The value is an object containing the settings for the + * capability. * @return the current {@code AccountHolder} instance, allowing for method chaining */ public AccountHolder capabilities(Map capabilities) { @@ -200,8 +222,14 @@ public AccountHolder putCapabilitiesItem(String key, AccountHolderCapability cap } /** - * Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. - * @return capabilities Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that an account holder can do in your + * platform. The key is a capability required for your integration. For example, **issueCard** for + * Issuing. The value is an object containing the settings for the capability. + * + * @return capabilities Contains key-value pairs that specify the actions that an account holder + * can do in your platform. The key is a capability required for your integration. For + * example, **issueCard** for Issuing. The value is an object containing the settings for the + * capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -210,9 +238,14 @@ public Map getCapabilities() { } /** - * Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that an account holder can do in your + * platform. The key is a capability required for your integration. For example, **issueCard** for + * Issuing. The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * @param capabilities Contains key-value pairs that specify the actions that an account holder + * can do in your platform. The key is a capability required for your integration. For + * example, **issueCard** for Issuing. The value is an object containing the settings for the + * capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,12 +256,11 @@ public void setCapabilities(Map capabilities) { /** * contactDetails * - * @param contactDetails + * @param contactDetails * @return the current {@code AccountHolder} instance, allowing for method chaining - * - * @deprecated + * @deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated public AccountHolder contactDetails(ContactDetails contactDetails) { this.contactDetails = contactDetails; return this; @@ -236,10 +268,11 @@ public AccountHolder contactDetails(ContactDetails contactDetails) { /** * Get contactDetails - * @return contactDetails - * @deprecated // deprecated + * + * @return contactDetails + * @deprecated // deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated @JsonProperty(JSON_PROPERTY_CONTACT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ContactDetails getContactDetails() { @@ -249,11 +282,10 @@ public ContactDetails getContactDetails() { /** * contactDetails * - * @param contactDetails - * - * @deprecated + * @param contactDetails + * @deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated @JsonProperty(JSON_PROPERTY_CONTACT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setContactDetails(ContactDetails contactDetails) { @@ -273,6 +305,7 @@ public AccountHolder description(String description) { /** * Your description for the account holder. + * * @return description Your description for the account holder. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -294,6 +327,7 @@ public void setDescription(String description) { /** * The unique identifier of the account holder. + * * @return id The unique identifier of the account holder. */ @JsonProperty(JSON_PROPERTY_ID) @@ -302,11 +336,16 @@ public String getId() { return id; } - /** - * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. + * The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) + * associated with the account holder. Adyen performs a verification process against the legal + * entity of the account holder. * - * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. + * @param legalEntityId The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) + * associated with the account holder. Adyen performs a verification process against the legal + * entity of the account holder. * @return the current {@code AccountHolder} instance, allowing for method chaining */ public AccountHolder legalEntityId(String legalEntityId) { @@ -315,8 +354,15 @@ public AccountHolder legalEntityId(String legalEntityId) { } /** - * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. - * @return legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. + * The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) + * associated with the account holder. Adyen performs a verification process against the legal + * entity of the account holder. + * + * @return legalEntityId The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) + * associated with the account holder. Adyen performs a verification process against the legal + * entity of the account holder. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -325,9 +371,15 @@ public String getLegalEntityId() { } /** - * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. + * The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) + * associated with the account holder. Adyen performs a verification process against the legal + * entity of the account holder. * - * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. + * @param legalEntityId The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) + * associated with the account holder. Adyen performs a verification process against the legal + * entity of the account holder. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -336,9 +388,14 @@ public void setLegalEntityId(String legalEntityId) { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be + * used for storing miscellaneous data as desired. > Note that during an update of metadata, + * the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific + * names and may be used for storing miscellaneous data as desired. > Note that during an + * update of metadata, the omission of existing key-value pairs will result in the deletion of + * those key-value pairs. * @return the current {@code AccountHolder} instance, allowing for method chaining */ public AccountHolder metadata(Map metadata) { @@ -355,8 +412,14 @@ public AccountHolder putMetadataItem(String key, String metadataItem) { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. - * @return metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be + * used for storing miscellaneous data as desired. > Note that during an update of metadata, + * the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * + * @return metadata A set of key and value pairs for general use. The keys do not have specific + * names and may be used for storing miscellaneous data as desired. > Note that during an + * update of metadata, the omission of existing key-value pairs will result in the deletion of + * those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -365,9 +428,14 @@ public Map getMetadata() { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be + * used for storing miscellaneous data as desired. > Note that during an update of metadata, + * the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific + * names and may be used for storing miscellaneous data as desired. > Note that during an + * update of metadata, the omission of existing key-value pairs will result in the deletion of + * those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -377,7 +445,9 @@ public void setMetadata(Map metadata) { /** * The unique identifier of the migrated account holder in the classic integration. - * @return migratedAccountHolderCode The unique identifier of the migrated account holder in the classic integration. + * + * @return migratedAccountHolderCode The unique identifier of the migrated account holder in the + * classic integration. */ @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -385,11 +455,14 @@ public String getMigratedAccountHolderCode() { return migratedAccountHolderCode; } - /** - * The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. + * The ID of the account holder's primary balance account. By default, this is set to the + * first balance account that you create for the account holder. To assign a different balance + * account, send a PATCH request. * - * @param primaryBalanceAccount The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. + * @param primaryBalanceAccount The ID of the account holder's primary balance account. By + * default, this is set to the first balance account that you create for the account holder. + * To assign a different balance account, send a PATCH request. * @return the current {@code AccountHolder} instance, allowing for method chaining */ public AccountHolder primaryBalanceAccount(String primaryBalanceAccount) { @@ -398,8 +471,13 @@ public AccountHolder primaryBalanceAccount(String primaryBalanceAccount) { } /** - * The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. - * @return primaryBalanceAccount The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. + * The ID of the account holder's primary balance account. By default, this is set to the + * first balance account that you create for the account holder. To assign a different balance + * account, send a PATCH request. + * + * @return primaryBalanceAccount The ID of the account holder's primary balance account. By + * default, this is set to the first balance account that you create for the account holder. + * To assign a different balance account, send a PATCH request. */ @JsonProperty(JSON_PROPERTY_PRIMARY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -408,9 +486,13 @@ public String getPrimaryBalanceAccount() { } /** - * The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. + * The ID of the account holder's primary balance account. By default, this is set to the + * first balance account that you create for the account holder. To assign a different balance + * account, send a PATCH request. * - * @param primaryBalanceAccount The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. + * @param primaryBalanceAccount The ID of the account holder's primary balance account. By + * default, this is set to the first balance account that you create for the account holder. + * To assign a different balance account, send a PATCH request. */ @JsonProperty(JSON_PROPERTY_PRIMARY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -431,6 +513,7 @@ public AccountHolder reference(String reference) { /** * Your reference for the account holder. + * * @return reference Your reference for the account holder. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -451,9 +534,20 @@ public void setReference(String reference) { } /** - * The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. + * The status of the account holder. Possible values: * **active**: The account holder is active + * and allowed to use its capabilities. This is the initial status for account holders and balance + * accounts. You can change this status to **suspended** or **closed**. * **suspended**: The + * account holder is temporarily disabled and payouts are blocked. You can change this status to + * **active** or **closed**. * **closed**: The account holder and all of its capabilities are + * permanently disabled. This is a final status and cannot be changed. * - * @param status The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. + * @param status The status of the account holder. Possible values: * **active**: The account + * holder is active and allowed to use its capabilities. This is the initial status for + * account holders and balance accounts. You can change this status to **suspended** or + * **closed**. * **suspended**: The account holder is temporarily disabled and payouts are + * blocked. You can change this status to **active** or **closed**. * **closed**: The account + * holder and all of its capabilities are permanently disabled. This is a final status and + * cannot be changed. * @return the current {@code AccountHolder} instance, allowing for method chaining */ public AccountHolder status(StatusEnum status) { @@ -462,8 +556,20 @@ public AccountHolder status(StatusEnum status) { } /** - * The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. - * @return status The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. + * The status of the account holder. Possible values: * **active**: The account holder is active + * and allowed to use its capabilities. This is the initial status for account holders and balance + * accounts. You can change this status to **suspended** or **closed**. * **suspended**: The + * account holder is temporarily disabled and payouts are blocked. You can change this status to + * **active** or **closed**. * **closed**: The account holder and all of its capabilities are + * permanently disabled. This is a final status and cannot be changed. + * + * @return status The status of the account holder. Possible values: * **active**: The account + * holder is active and allowed to use its capabilities. This is the initial status for + * account holders and balance accounts. You can change this status to **suspended** or + * **closed**. * **suspended**: The account holder is temporarily disabled and payouts are + * blocked. You can change this status to **active** or **closed**. * **closed**: The account + * holder and all of its capabilities are permanently disabled. This is a final status and + * cannot be changed. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -472,9 +578,20 @@ public StatusEnum getStatus() { } /** - * The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. + * The status of the account holder. Possible values: * **active**: The account holder is active + * and allowed to use its capabilities. This is the initial status for account holders and balance + * accounts. You can change this status to **suspended** or **closed**. * **suspended**: The + * account holder is temporarily disabled and payouts are blocked. You can change this status to + * **active** or **closed**. * **closed**: The account holder and all of its capabilities are + * permanently disabled. This is a final status and cannot be changed. * - * @param status The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. + * @param status The status of the account holder. Possible values: * **active**: The account + * holder is active and allowed to use its capabilities. This is the initial status for + * account holders and balance accounts. You can change this status to **suspended** or + * **closed**. * **suspended**: The account holder is temporarily disabled and payouts are + * blocked. You can change this status to **active** or **closed**. * **closed**: The account + * holder and all of its capabilities are permanently disabled. This is a final status and + * cannot be changed. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -483,9 +600,14 @@ public void setStatus(StatusEnum status) { } /** - * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time + * zone of the balance platform if no time zone is set. For possible values, see the [list of time + * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. + * Defaults to the time zone of the balance platform if no time zone is set. For possible + * values, see the [list of time zone + * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * @return the current {@code AccountHolder} instance, allowing for method chaining */ public AccountHolder timeZone(String timeZone) { @@ -494,8 +616,14 @@ public AccountHolder timeZone(String timeZone) { } /** - * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). - * @return timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time + * zone of the balance platform if no time zone is set. For possible values, see the [list of time + * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * + * @return timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. + * Defaults to the time zone of the balance platform if no time zone is set. For possible + * values, see the [list of time zone + * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -504,9 +632,14 @@ public String getTimeZone() { } /** - * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time + * zone of the balance platform if no time zone is set. For possible values, see the [list of time + * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. + * Defaults to the time zone of the balance platform if no time zone is set. For possible + * values, see the [list of time zone + * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -515,8 +648,11 @@ public void setTimeZone(String timeZone) { } /** - * List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. - * @return verificationDeadlines List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. + * List of verification deadlines and the capabilities that will be disallowed if verification + * errors are not resolved. + * + * @return verificationDeadlines List of verification deadlines and the capabilities that will be + * disallowed if verification errors are not resolved. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_DEADLINES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -524,10 +660,7 @@ public List getVerificationDeadlines() { return verificationDeadlines; } - - /** - * Return true if this AccountHolder object is equal to o. - */ + /** Return true if this AccountHolder object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -537,24 +670,37 @@ public boolean equals(Object o) { return false; } AccountHolder accountHolder = (AccountHolder) o; - return Objects.equals(this.balancePlatform, accountHolder.balancePlatform) && - Objects.equals(this.capabilities, accountHolder.capabilities) && - Objects.equals(this.contactDetails, accountHolder.contactDetails) && - Objects.equals(this.description, accountHolder.description) && - Objects.equals(this.id, accountHolder.id) && - Objects.equals(this.legalEntityId, accountHolder.legalEntityId) && - Objects.equals(this.metadata, accountHolder.metadata) && - Objects.equals(this.migratedAccountHolderCode, accountHolder.migratedAccountHolderCode) && - Objects.equals(this.primaryBalanceAccount, accountHolder.primaryBalanceAccount) && - Objects.equals(this.reference, accountHolder.reference) && - Objects.equals(this.status, accountHolder.status) && - Objects.equals(this.timeZone, accountHolder.timeZone) && - Objects.equals(this.verificationDeadlines, accountHolder.verificationDeadlines); + return Objects.equals(this.balancePlatform, accountHolder.balancePlatform) + && Objects.equals(this.capabilities, accountHolder.capabilities) + && Objects.equals(this.contactDetails, accountHolder.contactDetails) + && Objects.equals(this.description, accountHolder.description) + && Objects.equals(this.id, accountHolder.id) + && Objects.equals(this.legalEntityId, accountHolder.legalEntityId) + && Objects.equals(this.metadata, accountHolder.metadata) + && Objects.equals(this.migratedAccountHolderCode, accountHolder.migratedAccountHolderCode) + && Objects.equals(this.primaryBalanceAccount, accountHolder.primaryBalanceAccount) + && Objects.equals(this.reference, accountHolder.reference) + && Objects.equals(this.status, accountHolder.status) + && Objects.equals(this.timeZone, accountHolder.timeZone) + && Objects.equals(this.verificationDeadlines, accountHolder.verificationDeadlines); } @Override public int hashCode() { - return Objects.hash(balancePlatform, capabilities, contactDetails, description, id, legalEntityId, metadata, migratedAccountHolderCode, primaryBalanceAccount, reference, status, timeZone, verificationDeadlines); + return Objects.hash( + balancePlatform, + capabilities, + contactDetails, + description, + id, + legalEntityId, + metadata, + migratedAccountHolderCode, + primaryBalanceAccount, + reference, + status, + timeZone, + verificationDeadlines); } @Override @@ -568,19 +714,24 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" legalEntityId: ").append(toIndentedString(legalEntityId)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" migratedAccountHolderCode: ").append(toIndentedString(migratedAccountHolderCode)).append("\n"); - sb.append(" primaryBalanceAccount: ").append(toIndentedString(primaryBalanceAccount)).append("\n"); + sb.append(" migratedAccountHolderCode: ") + .append(toIndentedString(migratedAccountHolderCode)) + .append("\n"); + sb.append(" primaryBalanceAccount: ") + .append(toIndentedString(primaryBalanceAccount)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); - sb.append(" verificationDeadlines: ").append(toIndentedString(verificationDeadlines)).append("\n"); + sb.append(" verificationDeadlines: ") + .append(toIndentedString(verificationDeadlines)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -589,7 +740,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AccountHolder given an JSON string * * @param jsonString JSON string @@ -599,11 +750,12 @@ private String toIndentedString(Object o) { public static AccountHolder fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountHolder.class); } -/** - * Convert an instance of AccountHolder to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AccountHolder to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/AccountHolderCapability.java b/src/main/java/com/adyen/model/balanceplatform/AccountHolderCapability.java index 048b5a814..4185adeb4 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AccountHolderCapability.java +++ b/src/main/java/com/adyen/model/balanceplatform/AccountHolderCapability.java @@ -2,36 +2,27 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.AccountSupportingEntityCapability; -import com.adyen.model.balanceplatform.CapabilityProblem; -import com.adyen.model.balanceplatform.CapabilitySettings; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * AccountHolderCapability - */ +/** AccountHolderCapability */ @JsonPropertyOrder({ AccountHolderCapability.JSON_PROPERTY_ALLOWED, AccountHolderCapability.JSON_PROPERTY_ALLOWED_LEVEL, @@ -44,16 +35,15 @@ AccountHolderCapability.JSON_PROPERTY_TRANSFER_INSTRUMENTS, AccountHolderCapability.JSON_PROPERTY_VERIFICATION_STATUS }) - public class AccountHolderCapability { public static final String JSON_PROPERTY_ALLOWED = "allowed"; private Boolean allowed; /** - * The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The capability level that is allowed for the account holder. Possible values: + * **notApplicable**, **low**, **medium**, **high**. */ public enum AllowedLevelEnum { - HIGH(String.valueOf("high")), LOW(String.valueOf("low")), @@ -67,7 +57,7 @@ public enum AllowedLevelEnum { private String value; AllowedLevelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -88,7 +78,11 @@ public static AllowedLevelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AllowedLevelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AllowedLevelEnum.values())); + LOG.warning( + "AllowedLevelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AllowedLevelEnum.values())); return null; } } @@ -109,10 +103,12 @@ public static AllowedLevelEnum fromValue(String value) { private Boolean requested; /** - * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The requested level of the capability. Some capabilities, such as those used in [card + * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different + * levels. Levels increase the capability, but also require additional checks and increased + * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. */ public enum RequestedLevelEnum { - HIGH(String.valueOf("high")), LOW(String.valueOf("low")), @@ -126,7 +122,7 @@ public enum RequestedLevelEnum { private String value; RequestedLevelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -147,7 +143,11 @@ public static RequestedLevelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("RequestedLevelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RequestedLevelEnum.values())); + LOG.warning( + "RequestedLevelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(RequestedLevelEnum.values())); return null; } } @@ -162,10 +162,13 @@ public static RequestedLevelEnum fromValue(String value) { private List transferInstruments; /** - * The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. + * The status of the verification checks for the capability. Possible values: * **pending**: Adyen + * is running the verification. * **invalid**: The verification failed. Check if the + * `errors` array contains more information. * **valid**: The verification has been + * successfully completed. * **rejected**: Adyen has verified the information, but found reasons + * to not allow the capability. */ public enum VerificationStatusEnum { - INVALID(String.valueOf("invalid")), PENDING(String.valueOf("pending")), @@ -179,7 +182,7 @@ public enum VerificationStatusEnum { private String value; VerificationStatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -200,7 +203,11 @@ public static VerificationStatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("VerificationStatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(VerificationStatusEnum.values())); + LOG.warning( + "VerificationStatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(VerificationStatusEnum.values())); return null; } } @@ -208,17 +215,16 @@ public static VerificationStatusEnum fromValue(String value) { public static final String JSON_PROPERTY_VERIFICATION_STATUS = "verificationStatus"; private VerificationStatusEnum verificationStatus; - public AccountHolderCapability() { - } + public AccountHolderCapability() {} @JsonCreator public AccountHolderCapability( - @JsonProperty(JSON_PROPERTY_ALLOWED) Boolean allowed, - @JsonProperty(JSON_PROPERTY_ALLOWED_LEVEL) AllowedLevelEnum allowedLevel, - @JsonProperty(JSON_PROPERTY_PROBLEMS) List problems, - @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENTS) List transferInstruments, - @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) VerificationStatusEnum verificationStatus - ) { + @JsonProperty(JSON_PROPERTY_ALLOWED) Boolean allowed, + @JsonProperty(JSON_PROPERTY_ALLOWED_LEVEL) AllowedLevelEnum allowedLevel, + @JsonProperty(JSON_PROPERTY_PROBLEMS) List problems, + @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENTS) + List transferInstruments, + @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) VerificationStatusEnum verificationStatus) { this(); this.allowed = allowed; this.allowedLevel = allowedLevel; @@ -228,8 +234,11 @@ public AccountHolderCapability( } /** - * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. - * @return allowed Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. + * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is + * successful and the account holder is permitted to use the capability. + * + * @return allowed Indicates whether the capability is allowed. Adyen sets this to **true** if the + * verification is successful and the account holder is permitted to use the capability. */ @JsonProperty(JSON_PROPERTY_ALLOWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,10 +246,12 @@ public Boolean getAllowed() { return allowed; } - /** - * The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. - * @return allowedLevel The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The capability level that is allowed for the account holder. Possible values: + * **notApplicable**, **low**, **medium**, **high**. + * + * @return allowedLevel The capability level that is allowed for the account holder. Possible + * values: **notApplicable**, **low**, **medium**, **high**. */ @JsonProperty(JSON_PROPERTY_ALLOWED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -248,11 +259,10 @@ public AllowedLevelEnum getAllowedLevel() { return allowedLevel; } - /** * allowedSettings * - * @param allowedSettings + * @param allowedSettings * @return the current {@code AccountHolderCapability} instance, allowing for method chaining */ public AccountHolderCapability allowedSettings(CapabilitySettings allowedSettings) { @@ -262,7 +272,8 @@ public AccountHolderCapability allowedSettings(CapabilitySettings allowedSetting /** * Get allowedSettings - * @return allowedSettings + * + * @return allowedSettings */ @JsonProperty(JSON_PROPERTY_ALLOWED_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -273,7 +284,7 @@ public CapabilitySettings getAllowedSettings() { /** * allowedSettings * - * @param allowedSettings + * @param allowedSettings */ @JsonProperty(JSON_PROPERTY_ALLOWED_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -282,9 +293,11 @@ public void setAllowedSettings(CapabilitySettings allowedSettings) { } /** - * Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. + * Indicates whether the capability is enabled. If **false**, the capability is temporarily + * disabled for the account holder. * - * @param enabled Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. + * @param enabled Indicates whether the capability is enabled. If **false**, the capability is + * temporarily disabled for the account holder. * @return the current {@code AccountHolderCapability} instance, allowing for method chaining */ public AccountHolderCapability enabled(Boolean enabled) { @@ -293,8 +306,11 @@ public AccountHolderCapability enabled(Boolean enabled) { } /** - * Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. - * @return enabled Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. + * Indicates whether the capability is enabled. If **false**, the capability is temporarily + * disabled for the account holder. + * + * @return enabled Indicates whether the capability is enabled. If **false**, the capability is + * temporarily disabled for the account holder. */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -303,9 +319,11 @@ public Boolean getEnabled() { } /** - * Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. + * Indicates whether the capability is enabled. If **false**, the capability is temporarily + * disabled for the account holder. * - * @param enabled Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. + * @param enabled Indicates whether the capability is enabled. If **false**, the capability is + * temporarily disabled for the account holder. */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -315,7 +333,9 @@ public void setEnabled(Boolean enabled) { /** * Contains verification errors and the actions that you can take to resolve them. - * @return problems Contains verification errors and the actions that you can take to resolve them. + * + * @return problems Contains verification errors and the actions that you can take to resolve + * them. */ @JsonProperty(JSON_PROPERTY_PROBLEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -323,11 +343,12 @@ public List getProblems() { return problems; } - /** - * Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. + * Indicates whether the capability is requested. To check whether the account holder is permitted + * to use the capability, refer to the `allowed` field. * - * @param requested Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. + * @param requested Indicates whether the capability is requested. To check whether the account + * holder is permitted to use the capability, refer to the `allowed` field. * @return the current {@code AccountHolderCapability} instance, allowing for method chaining */ public AccountHolderCapability requested(Boolean requested) { @@ -336,8 +357,11 @@ public AccountHolderCapability requested(Boolean requested) { } /** - * Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. - * @return requested Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. + * Indicates whether the capability is requested. To check whether the account holder is permitted + * to use the capability, refer to the `allowed` field. + * + * @return requested Indicates whether the capability is requested. To check whether the account + * holder is permitted to use the capability, refer to the `allowed` field. */ @JsonProperty(JSON_PROPERTY_REQUESTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -346,9 +370,11 @@ public Boolean getRequested() { } /** - * Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. + * Indicates whether the capability is requested. To check whether the account holder is permitted + * to use the capability, refer to the `allowed` field. * - * @param requested Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. + * @param requested Indicates whether the capability is requested. To check whether the account + * holder is permitted to use the capability, refer to the `allowed` field. */ @JsonProperty(JSON_PROPERTY_REQUESTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -357,9 +383,16 @@ public void setRequested(Boolean requested) { } /** - * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The requested level of the capability. Some capabilities, such as those used in [card + * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different + * levels. Levels increase the capability, but also require additional checks and increased + * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. * - * @param requestedLevel The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * @param requestedLevel The requested level of the capability. Some capabilities, such as those + * used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), + * have different levels. Levels increase the capability, but also require additional checks + * and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, + * **high**. * @return the current {@code AccountHolderCapability} instance, allowing for method chaining */ public AccountHolderCapability requestedLevel(RequestedLevelEnum requestedLevel) { @@ -368,8 +401,16 @@ public AccountHolderCapability requestedLevel(RequestedLevelEnum requestedLevel) } /** - * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. - * @return requestedLevel The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The requested level of the capability. Some capabilities, such as those used in [card + * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different + * levels. Levels increase the capability, but also require additional checks and increased + * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * + * @return requestedLevel The requested level of the capability. Some capabilities, such as those + * used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), + * have different levels. Levels increase the capability, but also require additional checks + * and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, + * **high**. */ @JsonProperty(JSON_PROPERTY_REQUESTED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -378,9 +419,16 @@ public RequestedLevelEnum getRequestedLevel() { } /** - * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The requested level of the capability. Some capabilities, such as those used in [card + * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different + * levels. Levels increase the capability, but also require additional checks and increased + * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. * - * @param requestedLevel The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * @param requestedLevel The requested level of the capability. Some capabilities, such as those + * used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), + * have different levels. Levels increase the capability, but also require additional checks + * and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, + * **high**. */ @JsonProperty(JSON_PROPERTY_REQUESTED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -391,7 +439,7 @@ public void setRequestedLevel(RequestedLevelEnum requestedLevel) { /** * requestedSettings * - * @param requestedSettings + * @param requestedSettings * @return the current {@code AccountHolderCapability} instance, allowing for method chaining */ public AccountHolderCapability requestedSettings(CapabilitySettings requestedSettings) { @@ -401,7 +449,8 @@ public AccountHolderCapability requestedSettings(CapabilitySettings requestedSet /** * Get requestedSettings - * @return requestedSettings + * + * @return requestedSettings */ @JsonProperty(JSON_PROPERTY_REQUESTED_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -412,7 +461,7 @@ public CapabilitySettings getRequestedSettings() { /** * requestedSettings * - * @param requestedSettings + * @param requestedSettings */ @JsonProperty(JSON_PROPERTY_REQUESTED_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -421,8 +470,10 @@ public void setRequestedSettings(CapabilitySettings requestedSettings) { } /** - * Contains the status of the transfer instruments associated with this capability. - * @return transferInstruments Contains the status of the transfer instruments associated with this capability. + * Contains the status of the transfer instruments associated with this capability. + * + * @return transferInstruments Contains the status of the transfer instruments associated with + * this capability. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -430,10 +481,18 @@ public List getTransferInstruments() { return transferInstruments; } - /** - * The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. - * @return verificationStatus The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. + * The status of the verification checks for the capability. Possible values: * **pending**: Adyen + * is running the verification. * **invalid**: The verification failed. Check if the + * `errors` array contains more information. * **valid**: The verification has been + * successfully completed. * **rejected**: Adyen has verified the information, but found reasons + * to not allow the capability. + * + * @return verificationStatus The status of the verification checks for the capability. Possible + * values: * **pending**: Adyen is running the verification. * **invalid**: The verification + * failed. Check if the `errors` array contains more information. * **valid**: The + * verification has been successfully completed. * **rejected**: Adyen has verified the + * information, but found reasons to not allow the capability. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -441,10 +500,7 @@ public VerificationStatusEnum getVerificationStatus() { return verificationStatus; } - - /** - * Return true if this AccountHolderCapability object is equal to o. - */ + /** Return true if this AccountHolderCapability object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -454,21 +510,31 @@ public boolean equals(Object o) { return false; } AccountHolderCapability accountHolderCapability = (AccountHolderCapability) o; - return Objects.equals(this.allowed, accountHolderCapability.allowed) && - Objects.equals(this.allowedLevel, accountHolderCapability.allowedLevel) && - Objects.equals(this.allowedSettings, accountHolderCapability.allowedSettings) && - Objects.equals(this.enabled, accountHolderCapability.enabled) && - Objects.equals(this.problems, accountHolderCapability.problems) && - Objects.equals(this.requested, accountHolderCapability.requested) && - Objects.equals(this.requestedLevel, accountHolderCapability.requestedLevel) && - Objects.equals(this.requestedSettings, accountHolderCapability.requestedSettings) && - Objects.equals(this.transferInstruments, accountHolderCapability.transferInstruments) && - Objects.equals(this.verificationStatus, accountHolderCapability.verificationStatus); + return Objects.equals(this.allowed, accountHolderCapability.allowed) + && Objects.equals(this.allowedLevel, accountHolderCapability.allowedLevel) + && Objects.equals(this.allowedSettings, accountHolderCapability.allowedSettings) + && Objects.equals(this.enabled, accountHolderCapability.enabled) + && Objects.equals(this.problems, accountHolderCapability.problems) + && Objects.equals(this.requested, accountHolderCapability.requested) + && Objects.equals(this.requestedLevel, accountHolderCapability.requestedLevel) + && Objects.equals(this.requestedSettings, accountHolderCapability.requestedSettings) + && Objects.equals(this.transferInstruments, accountHolderCapability.transferInstruments) + && Objects.equals(this.verificationStatus, accountHolderCapability.verificationStatus); } @Override public int hashCode() { - return Objects.hash(allowed, allowedLevel, allowedSettings, enabled, problems, requested, requestedLevel, requestedSettings, transferInstruments, verificationStatus); + return Objects.hash( + allowed, + allowedLevel, + allowedSettings, + enabled, + problems, + requested, + requestedLevel, + requestedSettings, + transferInstruments, + verificationStatus); } @Override @@ -483,15 +549,16 @@ public String toString() { sb.append(" requested: ").append(toIndentedString(requested)).append("\n"); sb.append(" requestedLevel: ").append(toIndentedString(requestedLevel)).append("\n"); sb.append(" requestedSettings: ").append(toIndentedString(requestedSettings)).append("\n"); - sb.append(" transferInstruments: ").append(toIndentedString(transferInstruments)).append("\n"); + sb.append(" transferInstruments: ") + .append(toIndentedString(transferInstruments)) + .append("\n"); sb.append(" verificationStatus: ").append(toIndentedString(verificationStatus)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -500,21 +567,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AccountHolderCapability given an JSON string * * @param jsonString JSON string * @return An instance of AccountHolderCapability - * @throws JsonProcessingException if the JSON string is invalid with respect to AccountHolderCapability + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AccountHolderCapability */ public static AccountHolderCapability fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountHolderCapability.class); } -/** - * Convert an instance of AccountHolderCapability to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AccountHolderCapability to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/AccountHolderInfo.java b/src/main/java/com/adyen/model/balanceplatform/AccountHolderInfo.java index 516af05d0..873291221 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AccountHolderInfo.java +++ b/src/main/java/com/adyen/model/balanceplatform/AccountHolderInfo.java @@ -2,35 +2,25 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.AccountHolderCapability; -import com.adyen.model.balanceplatform.ContactDetails; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.HashMap; +import java.util.Map; - -/** - * AccountHolderInfo - */ +/** AccountHolderInfo */ @JsonPropertyOrder({ AccountHolderInfo.JSON_PROPERTY_BALANCE_PLATFORM, AccountHolderInfo.JSON_PROPERTY_CAPABILITIES, @@ -42,7 +32,6 @@ AccountHolderInfo.JSON_PROPERTY_REFERENCE, AccountHolderInfo.JSON_PROPERTY_TIME_ZONE }) - public class AccountHolderInfo { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; @@ -51,7 +40,7 @@ public class AccountHolderInfo { private Map capabilities; public static final String JSON_PROPERTY_CONTACT_DETAILS = "contactDetails"; - @Deprecated // deprecated + @Deprecated // deprecated private ContactDetails contactDetails; public static final String JSON_PROPERTY_DESCRIPTION = "description"; @@ -63,7 +52,8 @@ public class AccountHolderInfo { public static final String JSON_PROPERTY_METADATA = "metadata"; private Map metadata; - public static final String JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE = "migratedAccountHolderCode"; + public static final String JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE = + "migratedAccountHolderCode"; private String migratedAccountHolderCode; public static final String JSON_PROPERTY_REFERENCE = "reference"; @@ -72,21 +62,25 @@ public class AccountHolderInfo { public static final String JSON_PROPERTY_TIME_ZONE = "timeZone"; private String timeZone; - public AccountHolderInfo() { - } + public AccountHolderInfo() {} @JsonCreator public AccountHolderInfo( - @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE) String migratedAccountHolderCode - ) { + @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE) String migratedAccountHolderCode) { this(); this.migratedAccountHolderCode = migratedAccountHolderCode; } /** - * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. + * The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the account holder belongs. Required in the request if your API credentials can be + * used for multiple balance platforms. * - * @param balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. + * @param balancePlatform The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the account holder belongs. Required in the request if your API credentials can be + * used for multiple balance platforms. * @return the current {@code AccountHolderInfo} instance, allowing for method chaining */ public AccountHolderInfo balancePlatform(String balancePlatform) { @@ -95,8 +89,15 @@ public AccountHolderInfo balancePlatform(String balancePlatform) { } /** - * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. - * @return balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. + * The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the account holder belongs. Required in the request if your API credentials can be + * used for multiple balance platforms. + * + * @return balancePlatform The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the account holder belongs. Required in the request if your API credentials can be + * used for multiple balance platforms. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,9 +106,15 @@ public String getBalancePlatform() { } /** - * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. + * The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the account holder belongs. Required in the request if your API credentials can be + * used for multiple balance platforms. * - * @param balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. + * @param balancePlatform The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the account holder belongs. Required in the request if your API credentials can be + * used for multiple balance platforms. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,9 +123,14 @@ public void setBalancePlatform(String balancePlatform) { } /** - * Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that an account holder can do in your + * platform. The key is a capability required for your integration. For example, **issueCard** for + * Issuing. The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * @param capabilities Contains key-value pairs that specify the actions that an account holder + * can do in your platform. The key is a capability required for your integration. For + * example, **issueCard** for Issuing. The value is an object containing the settings for the + * capability. * @return the current {@code AccountHolderInfo} instance, allowing for method chaining */ public AccountHolderInfo capabilities(Map capabilities) { @@ -126,7 +138,8 @@ public AccountHolderInfo capabilities(Map capab return this; } - public AccountHolderInfo putCapabilitiesItem(String key, AccountHolderCapability capabilitiesItem) { + public AccountHolderInfo putCapabilitiesItem( + String key, AccountHolderCapability capabilitiesItem) { if (this.capabilities == null) { this.capabilities = new HashMap<>(); } @@ -135,8 +148,14 @@ public AccountHolderInfo putCapabilitiesItem(String key, AccountHolderCapability } /** - * Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. - * @return capabilities Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that an account holder can do in your + * platform. The key is a capability required for your integration. For example, **issueCard** for + * Issuing. The value is an object containing the settings for the capability. + * + * @return capabilities Contains key-value pairs that specify the actions that an account holder + * can do in your platform. The key is a capability required for your integration. For + * example, **issueCard** for Issuing. The value is an object containing the settings for the + * capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,9 +164,14 @@ public Map getCapabilities() { } /** - * Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that an account holder can do in your + * platform. The key is a capability required for your integration. For example, **issueCard** for + * Issuing. The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * @param capabilities Contains key-value pairs that specify the actions that an account holder + * can do in your platform. The key is a capability required for your integration. For + * example, **issueCard** for Issuing. The value is an object containing the settings for the + * capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,12 +182,11 @@ public void setCapabilities(Map capabilities) { /** * contactDetails * - * @param contactDetails + * @param contactDetails * @return the current {@code AccountHolderInfo} instance, allowing for method chaining - * - * @deprecated + * @deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated public AccountHolderInfo contactDetails(ContactDetails contactDetails) { this.contactDetails = contactDetails; return this; @@ -171,10 +194,11 @@ public AccountHolderInfo contactDetails(ContactDetails contactDetails) { /** * Get contactDetails - * @return contactDetails - * @deprecated // deprecated + * + * @return contactDetails + * @deprecated // deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated @JsonProperty(JSON_PROPERTY_CONTACT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ContactDetails getContactDetails() { @@ -184,11 +208,10 @@ public ContactDetails getContactDetails() { /** * contactDetails * - * @param contactDetails - * - * @deprecated + * @param contactDetails + * @deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated @JsonProperty(JSON_PROPERTY_CONTACT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setContactDetails(ContactDetails contactDetails) { @@ -208,6 +231,7 @@ public AccountHolderInfo description(String description) { /** * Your description for the account holder. + * * @return description Your description for the account holder. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -228,9 +252,15 @@ public void setDescription(String description) { } /** - * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. + * The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) + * associated with the account holder. Adyen performs a verification process against the legal + * entity of the account holder. * - * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. + * @param legalEntityId The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) + * associated with the account holder. Adyen performs a verification process against the legal + * entity of the account holder. * @return the current {@code AccountHolderInfo} instance, allowing for method chaining */ public AccountHolderInfo legalEntityId(String legalEntityId) { @@ -239,8 +269,15 @@ public AccountHolderInfo legalEntityId(String legalEntityId) { } /** - * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. - * @return legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. + * The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) + * associated with the account holder. Adyen performs a verification process against the legal + * entity of the account holder. + * + * @return legalEntityId The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) + * associated with the account holder. Adyen performs a verification process against the legal + * entity of the account holder. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -249,9 +286,15 @@ public String getLegalEntityId() { } /** - * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. + * The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) + * associated with the account holder. Adyen performs a verification process against the legal + * entity of the account holder. * - * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. + * @param legalEntityId The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) + * associated with the account holder. Adyen performs a verification process against the legal + * entity of the account holder. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -260,9 +303,14 @@ public void setLegalEntityId(String legalEntityId) { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be + * used for storing miscellaneous data as desired. > Note that during an update of metadata, + * the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific + * names and may be used for storing miscellaneous data as desired. > Note that during an + * update of metadata, the omission of existing key-value pairs will result in the deletion of + * those key-value pairs. * @return the current {@code AccountHolderInfo} instance, allowing for method chaining */ public AccountHolderInfo metadata(Map metadata) { @@ -279,8 +327,14 @@ public AccountHolderInfo putMetadataItem(String key, String metadataItem) { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. - * @return metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be + * used for storing miscellaneous data as desired. > Note that during an update of metadata, + * the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * + * @return metadata A set of key and value pairs for general use. The keys do not have specific + * names and may be used for storing miscellaneous data as desired. > Note that during an + * update of metadata, the omission of existing key-value pairs will result in the deletion of + * those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -289,9 +343,14 @@ public Map getMetadata() { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be + * used for storing miscellaneous data as desired. > Note that during an update of metadata, + * the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific + * names and may be used for storing miscellaneous data as desired. > Note that during an + * update of metadata, the omission of existing key-value pairs will result in the deletion of + * those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -301,7 +360,9 @@ public void setMetadata(Map metadata) { /** * The unique identifier of the migrated account holder in the classic integration. - * @return migratedAccountHolderCode The unique identifier of the migrated account holder in the classic integration. + * + * @return migratedAccountHolderCode The unique identifier of the migrated account holder in the + * classic integration. */ @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -309,7 +370,6 @@ public String getMigratedAccountHolderCode() { return migratedAccountHolderCode; } - /** * Your reference for the account holder. * @@ -323,6 +383,7 @@ public AccountHolderInfo reference(String reference) { /** * Your reference for the account holder. + * * @return reference Your reference for the account holder. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -343,9 +404,14 @@ public void setReference(String reference) { } /** - * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time + * zone of the balance platform if no time zone is set. For possible values, see the [list of time + * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. + * Defaults to the time zone of the balance platform if no time zone is set. For possible + * values, see the [list of time zone + * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * @return the current {@code AccountHolderInfo} instance, allowing for method chaining */ public AccountHolderInfo timeZone(String timeZone) { @@ -354,8 +420,14 @@ public AccountHolderInfo timeZone(String timeZone) { } /** - * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). - * @return timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time + * zone of the balance platform if no time zone is set. For possible values, see the [list of time + * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * + * @return timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. + * Defaults to the time zone of the balance platform if no time zone is set. For possible + * values, see the [list of time zone + * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -364,9 +436,14 @@ public String getTimeZone() { } /** - * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time + * zone of the balance platform if no time zone is set. For possible values, see the [list of time + * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. + * Defaults to the time zone of the balance platform if no time zone is set. For possible + * values, see the [list of time zone + * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -374,9 +451,7 @@ public void setTimeZone(String timeZone) { this.timeZone = timeZone; } - /** - * Return true if this AccountHolderInfo object is equal to o. - */ + /** Return true if this AccountHolderInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -386,20 +461,30 @@ public boolean equals(Object o) { return false; } AccountHolderInfo accountHolderInfo = (AccountHolderInfo) o; - return Objects.equals(this.balancePlatform, accountHolderInfo.balancePlatform) && - Objects.equals(this.capabilities, accountHolderInfo.capabilities) && - Objects.equals(this.contactDetails, accountHolderInfo.contactDetails) && - Objects.equals(this.description, accountHolderInfo.description) && - Objects.equals(this.legalEntityId, accountHolderInfo.legalEntityId) && - Objects.equals(this.metadata, accountHolderInfo.metadata) && - Objects.equals(this.migratedAccountHolderCode, accountHolderInfo.migratedAccountHolderCode) && - Objects.equals(this.reference, accountHolderInfo.reference) && - Objects.equals(this.timeZone, accountHolderInfo.timeZone); + return Objects.equals(this.balancePlatform, accountHolderInfo.balancePlatform) + && Objects.equals(this.capabilities, accountHolderInfo.capabilities) + && Objects.equals(this.contactDetails, accountHolderInfo.contactDetails) + && Objects.equals(this.description, accountHolderInfo.description) + && Objects.equals(this.legalEntityId, accountHolderInfo.legalEntityId) + && Objects.equals(this.metadata, accountHolderInfo.metadata) + && Objects.equals( + this.migratedAccountHolderCode, accountHolderInfo.migratedAccountHolderCode) + && Objects.equals(this.reference, accountHolderInfo.reference) + && Objects.equals(this.timeZone, accountHolderInfo.timeZone); } @Override public int hashCode() { - return Objects.hash(balancePlatform, capabilities, contactDetails, description, legalEntityId, metadata, migratedAccountHolderCode, reference, timeZone); + return Objects.hash( + balancePlatform, + capabilities, + contactDetails, + description, + legalEntityId, + metadata, + migratedAccountHolderCode, + reference, + timeZone); } @Override @@ -412,7 +497,9 @@ public String toString() { sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" legalEntityId: ").append(toIndentedString(legalEntityId)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" migratedAccountHolderCode: ").append(toIndentedString(migratedAccountHolderCode)).append("\n"); + sb.append(" migratedAccountHolderCode: ") + .append(toIndentedString(migratedAccountHolderCode)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); sb.append("}"); @@ -420,8 +507,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -430,7 +516,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AccountHolderInfo given an JSON string * * @param jsonString JSON string @@ -440,11 +526,12 @@ private String toIndentedString(Object o) { public static AccountHolderInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountHolderInfo.class); } -/** - * Convert an instance of AccountHolderInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AccountHolderInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/AccountHolderUpdateRequest.java b/src/main/java/com/adyen/model/balanceplatform/AccountHolderUpdateRequest.java index e2118a839..48260784d 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AccountHolderUpdateRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/AccountHolderUpdateRequest.java @@ -2,38 +2,29 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.AccountHolderCapability; -import com.adyen.model.balanceplatform.ContactDetails; -import com.adyen.model.balanceplatform.VerificationDeadline; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * AccountHolderUpdateRequest - */ +/** AccountHolderUpdateRequest */ @JsonPropertyOrder({ AccountHolderUpdateRequest.JSON_PROPERTY_BALANCE_PLATFORM, AccountHolderUpdateRequest.JSON_PROPERTY_CAPABILITIES, @@ -47,7 +38,6 @@ AccountHolderUpdateRequest.JSON_PROPERTY_TIME_ZONE, AccountHolderUpdateRequest.JSON_PROPERTY_VERIFICATION_DEADLINES }) - public class AccountHolderUpdateRequest { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; @@ -56,7 +46,7 @@ public class AccountHolderUpdateRequest { private Map capabilities; public static final String JSON_PROPERTY_CONTACT_DETAILS = "contactDetails"; - @Deprecated // deprecated + @Deprecated // deprecated private ContactDetails contactDetails; public static final String JSON_PROPERTY_DESCRIPTION = "description"; @@ -65,7 +55,8 @@ public class AccountHolderUpdateRequest { public static final String JSON_PROPERTY_METADATA = "metadata"; private Map metadata; - public static final String JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE = "migratedAccountHolderCode"; + public static final String JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE = + "migratedAccountHolderCode"; private String migratedAccountHolderCode; public static final String JSON_PROPERTY_PRIMARY_BALANCE_ACCOUNT = "primaryBalanceAccount"; @@ -75,10 +66,14 @@ public class AccountHolderUpdateRequest { private String reference; /** - * The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. + * The status of the account holder. Possible values: * **active**: The account holder is active + * and allowed to use its capabilities. This is the initial status for account holders and balance + * accounts. You can change this status to **suspended** or **closed**. * **suspended**: The + * account holder is temporarily disabled and payouts are blocked. You can change this status to + * **active** or **closed**. * **closed**: The account holder and all of its capabilities are + * permanently disabled. This is a final status and cannot be changed. */ public enum StatusEnum { - ACTIVE(String.valueOf("active")), CLOSED(String.valueOf("closed")), @@ -90,7 +85,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -111,7 +106,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -125,23 +124,28 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_VERIFICATION_DEADLINES = "verificationDeadlines"; private List verificationDeadlines; - public AccountHolderUpdateRequest() { - } + public AccountHolderUpdateRequest() {} @JsonCreator public AccountHolderUpdateRequest( - @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE) String migratedAccountHolderCode, - @JsonProperty(JSON_PROPERTY_VERIFICATION_DEADLINES) List verificationDeadlines - ) { + @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE) String migratedAccountHolderCode, + @JsonProperty(JSON_PROPERTY_VERIFICATION_DEADLINES) + List verificationDeadlines) { this(); this.migratedAccountHolderCode = migratedAccountHolderCode; this.verificationDeadlines = verificationDeadlines; } /** - * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. + * The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the account holder belongs. Required in the request if your API credentials can be + * used for multiple balance platforms. * - * @param balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. + * @param balancePlatform The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the account holder belongs. Required in the request if your API credentials can be + * used for multiple balance platforms. * @return the current {@code AccountHolderUpdateRequest} instance, allowing for method chaining */ public AccountHolderUpdateRequest balancePlatform(String balancePlatform) { @@ -150,8 +154,15 @@ public AccountHolderUpdateRequest balancePlatform(String balancePlatform) { } /** - * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. - * @return balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. + * The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the account holder belongs. Required in the request if your API credentials can be + * used for multiple balance platforms. + * + * @return balancePlatform The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the account holder belongs. Required in the request if your API credentials can be + * used for multiple balance platforms. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,9 +171,15 @@ public String getBalancePlatform() { } /** - * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. + * The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the account holder belongs. Required in the request if your API credentials can be + * used for multiple balance platforms. * - * @param balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. + * @param balancePlatform The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the account holder belongs. Required in the request if your API credentials can be + * used for multiple balance platforms. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -171,17 +188,24 @@ public void setBalancePlatform(String balancePlatform) { } /** - * Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that an account holder can do in your + * platform. The key is a capability required for your integration. For example, **issueCard** for + * Issuing. The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * @param capabilities Contains key-value pairs that specify the actions that an account holder + * can do in your platform. The key is a capability required for your integration. For + * example, **issueCard** for Issuing. The value is an object containing the settings for the + * capability. * @return the current {@code AccountHolderUpdateRequest} instance, allowing for method chaining */ - public AccountHolderUpdateRequest capabilities(Map capabilities) { + public AccountHolderUpdateRequest capabilities( + Map capabilities) { this.capabilities = capabilities; return this; } - public AccountHolderUpdateRequest putCapabilitiesItem(String key, AccountHolderCapability capabilitiesItem) { + public AccountHolderUpdateRequest putCapabilitiesItem( + String key, AccountHolderCapability capabilitiesItem) { if (this.capabilities == null) { this.capabilities = new HashMap<>(); } @@ -190,8 +214,14 @@ public AccountHolderUpdateRequest putCapabilitiesItem(String key, AccountHolderC } /** - * Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. - * @return capabilities Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that an account holder can do in your + * platform. The key is a capability required for your integration. For example, **issueCard** for + * Issuing. The value is an object containing the settings for the capability. + * + * @return capabilities Contains key-value pairs that specify the actions that an account holder + * can do in your platform. The key is a capability required for your integration. For + * example, **issueCard** for Issuing. The value is an object containing the settings for the + * capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,9 +230,14 @@ public Map getCapabilities() { } /** - * Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that an account holder can do in your + * platform. The key is a capability required for your integration. For example, **issueCard** for + * Issuing. The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * @param capabilities Contains key-value pairs that specify the actions that an account holder + * can do in your platform. The key is a capability required for your integration. For + * example, **issueCard** for Issuing. The value is an object containing the settings for the + * capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -213,12 +248,11 @@ public void setCapabilities(Map capabilities) { /** * contactDetails * - * @param contactDetails + * @param contactDetails * @return the current {@code AccountHolderUpdateRequest} instance, allowing for method chaining - * - * @deprecated + * @deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated public AccountHolderUpdateRequest contactDetails(ContactDetails contactDetails) { this.contactDetails = contactDetails; return this; @@ -226,10 +260,11 @@ public AccountHolderUpdateRequest contactDetails(ContactDetails contactDetails) /** * Get contactDetails - * @return contactDetails - * @deprecated // deprecated + * + * @return contactDetails + * @deprecated // deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated @JsonProperty(JSON_PROPERTY_CONTACT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ContactDetails getContactDetails() { @@ -239,11 +274,10 @@ public ContactDetails getContactDetails() { /** * contactDetails * - * @param contactDetails - * - * @deprecated + * @param contactDetails + * @deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated @JsonProperty(JSON_PROPERTY_CONTACT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setContactDetails(ContactDetails contactDetails) { @@ -263,6 +297,7 @@ public AccountHolderUpdateRequest description(String description) { /** * Your description for the account holder. + * * @return description Your description for the account holder. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -283,9 +318,14 @@ public void setDescription(String description) { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be + * used for storing miscellaneous data as desired. > Note that during an update of metadata, + * the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific + * names and may be used for storing miscellaneous data as desired. > Note that during an + * update of metadata, the omission of existing key-value pairs will result in the deletion of + * those key-value pairs. * @return the current {@code AccountHolderUpdateRequest} instance, allowing for method chaining */ public AccountHolderUpdateRequest metadata(Map metadata) { @@ -302,8 +342,14 @@ public AccountHolderUpdateRequest putMetadataItem(String key, String metadataIte } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. - * @return metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be + * used for storing miscellaneous data as desired. > Note that during an update of metadata, + * the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * + * @return metadata A set of key and value pairs for general use. The keys do not have specific + * names and may be used for storing miscellaneous data as desired. > Note that during an + * update of metadata, the omission of existing key-value pairs will result in the deletion of + * those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -312,9 +358,14 @@ public Map getMetadata() { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be + * used for storing miscellaneous data as desired. > Note that during an update of metadata, + * the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific + * names and may be used for storing miscellaneous data as desired. > Note that during an + * update of metadata, the omission of existing key-value pairs will result in the deletion of + * those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -324,7 +375,9 @@ public void setMetadata(Map metadata) { /** * The unique identifier of the migrated account holder in the classic integration. - * @return migratedAccountHolderCode The unique identifier of the migrated account holder in the classic integration. + * + * @return migratedAccountHolderCode The unique identifier of the migrated account holder in the + * classic integration. */ @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -332,11 +385,14 @@ public String getMigratedAccountHolderCode() { return migratedAccountHolderCode; } - /** - * The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. + * The ID of the account holder's primary balance account. By default, this is set to the + * first balance account that you create for the account holder. To assign a different balance + * account, send a PATCH request. * - * @param primaryBalanceAccount The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. + * @param primaryBalanceAccount The ID of the account holder's primary balance account. By + * default, this is set to the first balance account that you create for the account holder. + * To assign a different balance account, send a PATCH request. * @return the current {@code AccountHolderUpdateRequest} instance, allowing for method chaining */ public AccountHolderUpdateRequest primaryBalanceAccount(String primaryBalanceAccount) { @@ -345,8 +401,13 @@ public AccountHolderUpdateRequest primaryBalanceAccount(String primaryBalanceAcc } /** - * The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. - * @return primaryBalanceAccount The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. + * The ID of the account holder's primary balance account. By default, this is set to the + * first balance account that you create for the account holder. To assign a different balance + * account, send a PATCH request. + * + * @return primaryBalanceAccount The ID of the account holder's primary balance account. By + * default, this is set to the first balance account that you create for the account holder. + * To assign a different balance account, send a PATCH request. */ @JsonProperty(JSON_PROPERTY_PRIMARY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -355,9 +416,13 @@ public String getPrimaryBalanceAccount() { } /** - * The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. + * The ID of the account holder's primary balance account. By default, this is set to the + * first balance account that you create for the account holder. To assign a different balance + * account, send a PATCH request. * - * @param primaryBalanceAccount The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. + * @param primaryBalanceAccount The ID of the account holder's primary balance account. By + * default, this is set to the first balance account that you create for the account holder. + * To assign a different balance account, send a PATCH request. */ @JsonProperty(JSON_PROPERTY_PRIMARY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -378,6 +443,7 @@ public AccountHolderUpdateRequest reference(String reference) { /** * Your reference for the account holder. + * * @return reference Your reference for the account holder. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -398,9 +464,20 @@ public void setReference(String reference) { } /** - * The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. + * The status of the account holder. Possible values: * **active**: The account holder is active + * and allowed to use its capabilities. This is the initial status for account holders and balance + * accounts. You can change this status to **suspended** or **closed**. * **suspended**: The + * account holder is temporarily disabled and payouts are blocked. You can change this status to + * **active** or **closed**. * **closed**: The account holder and all of its capabilities are + * permanently disabled. This is a final status and cannot be changed. * - * @param status The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. + * @param status The status of the account holder. Possible values: * **active**: The account + * holder is active and allowed to use its capabilities. This is the initial status for + * account holders and balance accounts. You can change this status to **suspended** or + * **closed**. * **suspended**: The account holder is temporarily disabled and payouts are + * blocked. You can change this status to **active** or **closed**. * **closed**: The account + * holder and all of its capabilities are permanently disabled. This is a final status and + * cannot be changed. * @return the current {@code AccountHolderUpdateRequest} instance, allowing for method chaining */ public AccountHolderUpdateRequest status(StatusEnum status) { @@ -409,8 +486,20 @@ public AccountHolderUpdateRequest status(StatusEnum status) { } /** - * The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. - * @return status The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. + * The status of the account holder. Possible values: * **active**: The account holder is active + * and allowed to use its capabilities. This is the initial status for account holders and balance + * accounts. You can change this status to **suspended** or **closed**. * **suspended**: The + * account holder is temporarily disabled and payouts are blocked. You can change this status to + * **active** or **closed**. * **closed**: The account holder and all of its capabilities are + * permanently disabled. This is a final status and cannot be changed. + * + * @return status The status of the account holder. Possible values: * **active**: The account + * holder is active and allowed to use its capabilities. This is the initial status for + * account holders and balance accounts. You can change this status to **suspended** or + * **closed**. * **suspended**: The account holder is temporarily disabled and payouts are + * blocked. You can change this status to **active** or **closed**. * **closed**: The account + * holder and all of its capabilities are permanently disabled. This is a final status and + * cannot be changed. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -419,9 +508,20 @@ public StatusEnum getStatus() { } /** - * The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. + * The status of the account holder. Possible values: * **active**: The account holder is active + * and allowed to use its capabilities. This is the initial status for account holders and balance + * accounts. You can change this status to **suspended** or **closed**. * **suspended**: The + * account holder is temporarily disabled and payouts are blocked. You can change this status to + * **active** or **closed**. * **closed**: The account holder and all of its capabilities are + * permanently disabled. This is a final status and cannot be changed. * - * @param status The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. + * @param status The status of the account holder. Possible values: * **active**: The account + * holder is active and allowed to use its capabilities. This is the initial status for + * account holders and balance accounts. You can change this status to **suspended** or + * **closed**. * **suspended**: The account holder is temporarily disabled and payouts are + * blocked. You can change this status to **active** or **closed**. * **closed**: The account + * holder and all of its capabilities are permanently disabled. This is a final status and + * cannot be changed. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -430,9 +530,14 @@ public void setStatus(StatusEnum status) { } /** - * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time + * zone of the balance platform if no time zone is set. For possible values, see the [list of time + * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. + * Defaults to the time zone of the balance platform if no time zone is set. For possible + * values, see the [list of time zone + * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * @return the current {@code AccountHolderUpdateRequest} instance, allowing for method chaining */ public AccountHolderUpdateRequest timeZone(String timeZone) { @@ -441,8 +546,14 @@ public AccountHolderUpdateRequest timeZone(String timeZone) { } /** - * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). - * @return timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time + * zone of the balance platform if no time zone is set. For possible values, see the [list of time + * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * + * @return timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. + * Defaults to the time zone of the balance platform if no time zone is set. For possible + * values, see the [list of time zone + * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -451,9 +562,14 @@ public String getTimeZone() { } /** - * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time + * zone of the balance platform if no time zone is set. For possible values, see the [list of time + * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. + * Defaults to the time zone of the balance platform if no time zone is set. For possible + * values, see the [list of time zone + * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -462,8 +578,11 @@ public void setTimeZone(String timeZone) { } /** - * List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. - * @return verificationDeadlines List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. + * List of verification deadlines and the capabilities that will be disallowed if verification + * errors are not resolved. + * + * @return verificationDeadlines List of verification deadlines and the capabilities that will be + * disallowed if verification errors are not resolved. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_DEADLINES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -471,10 +590,7 @@ public List getVerificationDeadlines() { return verificationDeadlines; } - - /** - * Return true if this AccountHolderUpdateRequest object is equal to o. - */ + /** Return true if this AccountHolderUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -484,22 +600,36 @@ public boolean equals(Object o) { return false; } AccountHolderUpdateRequest accountHolderUpdateRequest = (AccountHolderUpdateRequest) o; - return Objects.equals(this.balancePlatform, accountHolderUpdateRequest.balancePlatform) && - Objects.equals(this.capabilities, accountHolderUpdateRequest.capabilities) && - Objects.equals(this.contactDetails, accountHolderUpdateRequest.contactDetails) && - Objects.equals(this.description, accountHolderUpdateRequest.description) && - Objects.equals(this.metadata, accountHolderUpdateRequest.metadata) && - Objects.equals(this.migratedAccountHolderCode, accountHolderUpdateRequest.migratedAccountHolderCode) && - Objects.equals(this.primaryBalanceAccount, accountHolderUpdateRequest.primaryBalanceAccount) && - Objects.equals(this.reference, accountHolderUpdateRequest.reference) && - Objects.equals(this.status, accountHolderUpdateRequest.status) && - Objects.equals(this.timeZone, accountHolderUpdateRequest.timeZone) && - Objects.equals(this.verificationDeadlines, accountHolderUpdateRequest.verificationDeadlines); + return Objects.equals(this.balancePlatform, accountHolderUpdateRequest.balancePlatform) + && Objects.equals(this.capabilities, accountHolderUpdateRequest.capabilities) + && Objects.equals(this.contactDetails, accountHolderUpdateRequest.contactDetails) + && Objects.equals(this.description, accountHolderUpdateRequest.description) + && Objects.equals(this.metadata, accountHolderUpdateRequest.metadata) + && Objects.equals( + this.migratedAccountHolderCode, accountHolderUpdateRequest.migratedAccountHolderCode) + && Objects.equals( + this.primaryBalanceAccount, accountHolderUpdateRequest.primaryBalanceAccount) + && Objects.equals(this.reference, accountHolderUpdateRequest.reference) + && Objects.equals(this.status, accountHolderUpdateRequest.status) + && Objects.equals(this.timeZone, accountHolderUpdateRequest.timeZone) + && Objects.equals( + this.verificationDeadlines, accountHolderUpdateRequest.verificationDeadlines); } @Override public int hashCode() { - return Objects.hash(balancePlatform, capabilities, contactDetails, description, metadata, migratedAccountHolderCode, primaryBalanceAccount, reference, status, timeZone, verificationDeadlines); + return Objects.hash( + balancePlatform, + capabilities, + contactDetails, + description, + metadata, + migratedAccountHolderCode, + primaryBalanceAccount, + reference, + status, + timeZone, + verificationDeadlines); } @Override @@ -511,19 +641,24 @@ public String toString() { sb.append(" contactDetails: ").append(toIndentedString(contactDetails)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" migratedAccountHolderCode: ").append(toIndentedString(migratedAccountHolderCode)).append("\n"); - sb.append(" primaryBalanceAccount: ").append(toIndentedString(primaryBalanceAccount)).append("\n"); + sb.append(" migratedAccountHolderCode: ") + .append(toIndentedString(migratedAccountHolderCode)) + .append("\n"); + sb.append(" primaryBalanceAccount: ") + .append(toIndentedString(primaryBalanceAccount)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); - sb.append(" verificationDeadlines: ").append(toIndentedString(verificationDeadlines)).append("\n"); + sb.append(" verificationDeadlines: ") + .append(toIndentedString(verificationDeadlines)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -532,21 +667,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AccountHolderUpdateRequest given an JSON string * * @param jsonString JSON string * @return An instance of AccountHolderUpdateRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to AccountHolderUpdateRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AccountHolderUpdateRequest */ - public static AccountHolderUpdateRequest fromJson(String jsonString) throws JsonProcessingException { + public static AccountHolderUpdateRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountHolderUpdateRequest.class); } -/** - * Convert an instance of AccountHolderUpdateRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AccountHolderUpdateRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/AccountSupportingEntityCapability.java b/src/main/java/com/adyen/model/balanceplatform/AccountSupportingEntityCapability.java index d1d795c9b..9344d2af8 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AccountSupportingEntityCapability.java +++ b/src/main/java/com/adyen/model/balanceplatform/AccountSupportingEntityCapability.java @@ -2,31 +2,26 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * AccountSupportingEntityCapability - */ +/** AccountSupportingEntityCapability */ @JsonPropertyOrder({ AccountSupportingEntityCapability.JSON_PROPERTY_ALLOWED, AccountSupportingEntityCapability.JSON_PROPERTY_ALLOWED_LEVEL, @@ -36,16 +31,15 @@ AccountSupportingEntityCapability.JSON_PROPERTY_REQUESTED_LEVEL, AccountSupportingEntityCapability.JSON_PROPERTY_VERIFICATION_STATUS }) - public class AccountSupportingEntityCapability { public static final String JSON_PROPERTY_ALLOWED = "allowed"; private Boolean allowed; /** - * The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The capability level that is allowed for the account holder. Possible values: + * **notApplicable**, **low**, **medium**, **high**. */ public enum AllowedLevelEnum { - HIGH(String.valueOf("high")), LOW(String.valueOf("low")), @@ -59,7 +53,7 @@ public enum AllowedLevelEnum { private String value; AllowedLevelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -80,7 +74,11 @@ public static AllowedLevelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AllowedLevelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AllowedLevelEnum.values())); + LOG.warning( + "AllowedLevelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AllowedLevelEnum.values())); return null; } } @@ -98,10 +96,12 @@ public static AllowedLevelEnum fromValue(String value) { private Boolean requested; /** - * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The requested level of the capability. Some capabilities, such as those used in [card + * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different + * levels. Levels increase the capability, but also require additional checks and increased + * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. */ public enum RequestedLevelEnum { - HIGH(String.valueOf("high")), LOW(String.valueOf("low")), @@ -115,7 +115,7 @@ public enum RequestedLevelEnum { private String value; RequestedLevelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -136,7 +136,11 @@ public static RequestedLevelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("RequestedLevelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RequestedLevelEnum.values())); + LOG.warning( + "RequestedLevelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(RequestedLevelEnum.values())); return null; } } @@ -145,10 +149,13 @@ public static RequestedLevelEnum fromValue(String value) { private RequestedLevelEnum requestedLevel; /** - * The status of the verification checks for the supporting entity capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. + * The status of the verification checks for the supporting entity capability. Possible values: * + * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check + * if the `errors` array contains more information. * **valid**: The verification has + * been successfully completed. * **rejected**: Adyen has verified the information, but found + * reasons to not allow the capability. */ public enum VerificationStatusEnum { - INVALID(String.valueOf("invalid")), PENDING(String.valueOf("pending")), @@ -162,7 +169,7 @@ public enum VerificationStatusEnum { private String value; VerificationStatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -183,7 +190,11 @@ public static VerificationStatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("VerificationStatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(VerificationStatusEnum.values())); + LOG.warning( + "VerificationStatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(VerificationStatusEnum.values())); return null; } } @@ -191,16 +202,14 @@ public static VerificationStatusEnum fromValue(String value) { public static final String JSON_PROPERTY_VERIFICATION_STATUS = "verificationStatus"; private VerificationStatusEnum verificationStatus; - public AccountSupportingEntityCapability() { - } + public AccountSupportingEntityCapability() {} @JsonCreator public AccountSupportingEntityCapability( - @JsonProperty(JSON_PROPERTY_ALLOWED) Boolean allowed, - @JsonProperty(JSON_PROPERTY_ALLOWED_LEVEL) AllowedLevelEnum allowedLevel, - @JsonProperty(JSON_PROPERTY_ID) String id, - @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) VerificationStatusEnum verificationStatus - ) { + @JsonProperty(JSON_PROPERTY_ALLOWED) Boolean allowed, + @JsonProperty(JSON_PROPERTY_ALLOWED_LEVEL) AllowedLevelEnum allowedLevel, + @JsonProperty(JSON_PROPERTY_ID) String id, + @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) VerificationStatusEnum verificationStatus) { this(); this.allowed = allowed; this.allowedLevel = allowedLevel; @@ -209,8 +218,12 @@ public AccountSupportingEntityCapability( } /** - * Indicates whether the supporting entity capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. - * @return allowed Indicates whether the supporting entity capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. + * Indicates whether the supporting entity capability is allowed. Adyen sets this to **true** if + * the verification is successful and the account holder is permitted to use the capability. + * + * @return allowed Indicates whether the supporting entity capability is allowed. Adyen sets this + * to **true** if the verification is successful and the account holder is permitted to use + * the capability. */ @JsonProperty(JSON_PROPERTY_ALLOWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -218,10 +231,12 @@ public Boolean getAllowed() { return allowed; } - /** - * The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. - * @return allowedLevel The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The capability level that is allowed for the account holder. Possible values: + * **notApplicable**, **low**, **medium**, **high**. + * + * @return allowedLevel The capability level that is allowed for the account holder. Possible + * values: **notApplicable**, **low**, **medium**, **high**. */ @JsonProperty(JSON_PROPERTY_ALLOWED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -229,12 +244,14 @@ public AllowedLevelEnum getAllowedLevel() { return allowedLevel; } - /** - * Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. + * Indicates whether the capability is enabled. If **false**, the capability is temporarily + * disabled for the account holder. * - * @param enabled Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. - * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method chaining + * @param enabled Indicates whether the capability is enabled. If **false**, the capability is + * temporarily disabled for the account holder. + * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method + * chaining */ public AccountSupportingEntityCapability enabled(Boolean enabled) { this.enabled = enabled; @@ -242,8 +259,11 @@ public AccountSupportingEntityCapability enabled(Boolean enabled) { } /** - * Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. - * @return enabled Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. + * Indicates whether the capability is enabled. If **false**, the capability is temporarily + * disabled for the account holder. + * + * @return enabled Indicates whether the capability is enabled. If **false**, the capability is + * temporarily disabled for the account holder. */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,9 +272,11 @@ public Boolean getEnabled() { } /** - * Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. + * Indicates whether the capability is enabled. If **false**, the capability is temporarily + * disabled for the account holder. * - * @param enabled Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. + * @param enabled Indicates whether the capability is enabled. If **false**, the capability is + * temporarily disabled for the account holder. */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -264,6 +286,7 @@ public void setEnabled(Boolean enabled) { /** * The ID of the supporting entity. + * * @return id The ID of the supporting entity. */ @JsonProperty(JSON_PROPERTY_ID) @@ -272,12 +295,14 @@ public String getId() { return id; } - /** - * Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. + * Indicates whether the capability is requested. To check whether the account holder is permitted + * to use the capability, refer to the `allowed` field. * - * @param requested Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. - * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method chaining + * @param requested Indicates whether the capability is requested. To check whether the account + * holder is permitted to use the capability, refer to the `allowed` field. + * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method + * chaining */ public AccountSupportingEntityCapability requested(Boolean requested) { this.requested = requested; @@ -285,8 +310,11 @@ public AccountSupportingEntityCapability requested(Boolean requested) { } /** - * Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. - * @return requested Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. + * Indicates whether the capability is requested. To check whether the account holder is permitted + * to use the capability, refer to the `allowed` field. + * + * @return requested Indicates whether the capability is requested. To check whether the account + * holder is permitted to use the capability, refer to the `allowed` field. */ @JsonProperty(JSON_PROPERTY_REQUESTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -295,9 +323,11 @@ public Boolean getRequested() { } /** - * Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. + * Indicates whether the capability is requested. To check whether the account holder is permitted + * to use the capability, refer to the `allowed` field. * - * @param requested Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. + * @param requested Indicates whether the capability is requested. To check whether the account + * holder is permitted to use the capability, refer to the `allowed` field. */ @JsonProperty(JSON_PROPERTY_REQUESTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -306,10 +336,18 @@ public void setRequested(Boolean requested) { } /** - * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The requested level of the capability. Some capabilities, such as those used in [card + * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different + * levels. Levels increase the capability, but also require additional checks and increased + * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. * - * @param requestedLevel The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. - * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method chaining + * @param requestedLevel The requested level of the capability. Some capabilities, such as those + * used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), + * have different levels. Levels increase the capability, but also require additional checks + * and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, + * **high**. + * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method + * chaining */ public AccountSupportingEntityCapability requestedLevel(RequestedLevelEnum requestedLevel) { this.requestedLevel = requestedLevel; @@ -317,8 +355,16 @@ public AccountSupportingEntityCapability requestedLevel(RequestedLevelEnum reque } /** - * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. - * @return requestedLevel The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The requested level of the capability. Some capabilities, such as those used in [card + * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different + * levels. Levels increase the capability, but also require additional checks and increased + * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * + * @return requestedLevel The requested level of the capability. Some capabilities, such as those + * used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), + * have different levels. Levels increase the capability, but also require additional checks + * and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, + * **high**. */ @JsonProperty(JSON_PROPERTY_REQUESTED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -327,9 +373,16 @@ public RequestedLevelEnum getRequestedLevel() { } /** - * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The requested level of the capability. Some capabilities, such as those used in [card + * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different + * levels. Levels increase the capability, but also require additional checks and increased + * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. * - * @param requestedLevel The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * @param requestedLevel The requested level of the capability. Some capabilities, such as those + * used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), + * have different levels. Levels increase the capability, but also require additional checks + * and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, + * **high**. */ @JsonProperty(JSON_PROPERTY_REQUESTED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -338,8 +391,17 @@ public void setRequestedLevel(RequestedLevelEnum requestedLevel) { } /** - * The status of the verification checks for the supporting entity capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. - * @return verificationStatus The status of the verification checks for the supporting entity capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. + * The status of the verification checks for the supporting entity capability. Possible values: * + * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check + * if the `errors` array contains more information. * **valid**: The verification has + * been successfully completed. * **rejected**: Adyen has verified the information, but found + * reasons to not allow the capability. + * + * @return verificationStatus The status of the verification checks for the supporting entity + * capability. Possible values: * **pending**: Adyen is running the verification. * + * **invalid**: The verification failed. Check if the `errors` array contains more + * information. * **valid**: The verification has been successfully completed. * **rejected**: + * Adyen has verified the information, but found reasons to not allow the capability. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -347,10 +409,7 @@ public VerificationStatusEnum getVerificationStatus() { return verificationStatus; } - - /** - * Return true if this AccountSupportingEntityCapability object is equal to o. - */ + /** Return true if this AccountSupportingEntityCapability object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -359,19 +418,22 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AccountSupportingEntityCapability accountSupportingEntityCapability = (AccountSupportingEntityCapability) o; - return Objects.equals(this.allowed, accountSupportingEntityCapability.allowed) && - Objects.equals(this.allowedLevel, accountSupportingEntityCapability.allowedLevel) && - Objects.equals(this.enabled, accountSupportingEntityCapability.enabled) && - Objects.equals(this.id, accountSupportingEntityCapability.id) && - Objects.equals(this.requested, accountSupportingEntityCapability.requested) && - Objects.equals(this.requestedLevel, accountSupportingEntityCapability.requestedLevel) && - Objects.equals(this.verificationStatus, accountSupportingEntityCapability.verificationStatus); + AccountSupportingEntityCapability accountSupportingEntityCapability = + (AccountSupportingEntityCapability) o; + return Objects.equals(this.allowed, accountSupportingEntityCapability.allowed) + && Objects.equals(this.allowedLevel, accountSupportingEntityCapability.allowedLevel) + && Objects.equals(this.enabled, accountSupportingEntityCapability.enabled) + && Objects.equals(this.id, accountSupportingEntityCapability.id) + && Objects.equals(this.requested, accountSupportingEntityCapability.requested) + && Objects.equals(this.requestedLevel, accountSupportingEntityCapability.requestedLevel) + && Objects.equals( + this.verificationStatus, accountSupportingEntityCapability.verificationStatus); } @Override public int hashCode() { - return Objects.hash(allowed, allowedLevel, enabled, id, requested, requestedLevel, verificationStatus); + return Objects.hash( + allowed, allowedLevel, enabled, id, requested, requestedLevel, verificationStatus); } @Override @@ -390,8 +452,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -400,21 +461,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AccountSupportingEntityCapability given an JSON string * * @param jsonString JSON string * @return An instance of AccountSupportingEntityCapability - * @throws JsonProcessingException if the JSON string is invalid with respect to AccountSupportingEntityCapability + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AccountSupportingEntityCapability */ - public static AccountSupportingEntityCapability fromJson(String jsonString) throws JsonProcessingException { + public static AccountSupportingEntityCapability fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountSupportingEntityCapability.class); } -/** - * Convert an instance of AccountSupportingEntityCapability to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AccountSupportingEntityCapability to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/ActiveNetworkTokensRestriction.java b/src/main/java/com/adyen/model/balanceplatform/ActiveNetworkTokensRestriction.java index 3c95de963..6a4f3a8f1 100644 --- a/src/main/java/com/adyen/model/balanceplatform/ActiveNetworkTokensRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/ActiveNetworkTokensRestriction.java @@ -2,36 +2,26 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ActiveNetworkTokensRestriction - */ +/** ActiveNetworkTokensRestriction */ @JsonPropertyOrder({ ActiveNetworkTokensRestriction.JSON_PROPERTY_OPERATION, ActiveNetworkTokensRestriction.JSON_PROPERTY_VALUE }) - public class ActiveNetworkTokensRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -39,14 +29,14 @@ public class ActiveNetworkTokensRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private Integer value; - public ActiveNetworkTokensRestriction() { - } + public ActiveNetworkTokensRestriction() {} /** * Defines how the condition must be evaluated. * * @param operation Defines how the condition must be evaluated. - * @return the current {@code ActiveNetworkTokensRestriction} instance, allowing for method chaining + * @return the current {@code ActiveNetworkTokensRestriction} instance, allowing for method + * chaining */ public ActiveNetworkTokensRestriction operation(String operation) { this.operation = operation; @@ -55,6 +45,7 @@ public ActiveNetworkTokensRestriction operation(String operation) { /** * Defines how the condition must be evaluated. + * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -78,7 +69,8 @@ public void setOperation(String operation) { * The number of tokens. * * @param value The number of tokens. - * @return the current {@code ActiveNetworkTokensRestriction} instance, allowing for method chaining + * @return the current {@code ActiveNetworkTokensRestriction} instance, allowing for method + * chaining */ public ActiveNetworkTokensRestriction value(Integer value) { this.value = value; @@ -87,6 +79,7 @@ public ActiveNetworkTokensRestriction value(Integer value) { /** * The number of tokens. + * * @return value The number of tokens. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -106,9 +99,7 @@ public void setValue(Integer value) { this.value = value; } - /** - * Return true if this ActiveNetworkTokensRestriction object is equal to o. - */ + /** Return true if this ActiveNetworkTokensRestriction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -117,9 +108,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ActiveNetworkTokensRestriction activeNetworkTokensRestriction = (ActiveNetworkTokensRestriction) o; - return Objects.equals(this.operation, activeNetworkTokensRestriction.operation) && - Objects.equals(this.value, activeNetworkTokensRestriction.value); + ActiveNetworkTokensRestriction activeNetworkTokensRestriction = + (ActiveNetworkTokensRestriction) o; + return Objects.equals(this.operation, activeNetworkTokensRestriction.operation) + && Objects.equals(this.value, activeNetworkTokensRestriction.value); } @Override @@ -138,8 +130,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +139,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ActiveNetworkTokensRestriction given an JSON string * * @param jsonString JSON string * @return An instance of ActiveNetworkTokensRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to ActiveNetworkTokensRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ActiveNetworkTokensRestriction */ - public static ActiveNetworkTokensRestriction fromJson(String jsonString) throws JsonProcessingException { + public static ActiveNetworkTokensRestriction fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ActiveNetworkTokensRestriction.class); } -/** - * Convert an instance of ActiveNetworkTokensRestriction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ActiveNetworkTokensRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/AdditionalBankIdentification.java b/src/main/java/com/adyen/model/balanceplatform/AdditionalBankIdentification.java index 934506f00..c28210f8c 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AdditionalBankIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/AdditionalBankIdentification.java @@ -2,45 +2,47 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * AdditionalBankIdentification - */ +/** AdditionalBankIdentification */ @JsonPropertyOrder({ AdditionalBankIdentification.JSON_PROPERTY_CODE, AdditionalBankIdentification.JSON_PROPERTY_TYPE }) - public class AdditionalBankIdentification { public static final String JSON_PROPERTY_CODE = "code"; private String code; /** - * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * The type of additional bank identification, depending on the country. Possible values: * + * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. */ public enum TypeEnum { - AUBSBCODE(String.valueOf("auBsbCode")), CAROUTINGNUMBER(String.valueOf("caRoutingNumber")), @@ -54,7 +56,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -75,7 +77,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -83,8 +89,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AdditionalBankIdentification() { - } + public AdditionalBankIdentification() {} /** * The value of the additional bank identification. @@ -99,6 +104,7 @@ public AdditionalBankIdentification code(String code) { /** * The value of the additional bank identification. + * * @return code The value of the additional bank identification. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -119,9 +125,27 @@ public void setCode(String code) { } /** - * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * The type of additional bank identification, depending on the country. Possible values: * + * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. * - * @param type The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * @param type The type of additional bank identification, depending on the country. Possible + * values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. * @return the current {@code AdditionalBankIdentification} instance, allowing for method chaining */ public AdditionalBankIdentification type(TypeEnum type) { @@ -130,8 +154,27 @@ public AdditionalBankIdentification type(TypeEnum type) { } /** - * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. - * @return type The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * The type of additional bank identification, depending on the country. Possible values: * + * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. + * + * @return type The type of additional bank identification, depending on the country. Possible + * values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,9 +183,27 @@ public TypeEnum getType() { } /** - * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * The type of additional bank identification, depending on the country. Possible values: * + * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. * - * @param type The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * @param type The type of additional bank identification, depending on the country. Possible + * values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,9 +211,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this AdditionalBankIdentification object is equal to o. - */ + /** Return true if this AdditionalBankIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -162,8 +221,8 @@ public boolean equals(Object o) { return false; } AdditionalBankIdentification additionalBankIdentification = (AdditionalBankIdentification) o; - return Objects.equals(this.code, additionalBankIdentification.code) && - Objects.equals(this.type, additionalBankIdentification.type); + return Objects.equals(this.code, additionalBankIdentification.code) + && Objects.equals(this.type, additionalBankIdentification.type); } @Override @@ -182,8 +241,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -192,21 +250,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalBankIdentification given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalBankIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalBankIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalBankIdentification */ - public static AdditionalBankIdentification fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalBankIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalBankIdentification.class); } -/** - * Convert an instance of AdditionalBankIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalBankIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/AdditionalBankIdentificationRequirement.java b/src/main/java/com/adyen/model/balanceplatform/AdditionalBankIdentificationRequirement.java index 2d7440f35..179aea932 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AdditionalBankIdentificationRequirement.java +++ b/src/main/java/com/adyen/model/balanceplatform/AdditionalBankIdentificationRequirement.java @@ -2,43 +2,45 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * AdditionalBankIdentificationRequirement - */ +/** AdditionalBankIdentificationRequirement */ @JsonPropertyOrder({ AdditionalBankIdentificationRequirement.JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION_TYPE, AdditionalBankIdentificationRequirement.JSON_PROPERTY_DESCRIPTION, AdditionalBankIdentificationRequirement.JSON_PROPERTY_TYPE }) - public class AdditionalBankIdentificationRequirement { /** - * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * The type of additional bank identification, depending on the country. Possible values: * + * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. */ public enum AdditionalBankIdentificationTypeEnum { - AUBSBCODE(String.valueOf("auBsbCode")), CAROUTINGNUMBER(String.valueOf("caRoutingNumber")), @@ -47,12 +49,13 @@ public enum AdditionalBankIdentificationTypeEnum { USROUTINGNUMBER(String.valueOf("usRoutingNumber")); - private static final Logger LOG = Logger.getLogger(AdditionalBankIdentificationTypeEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(AdditionalBankIdentificationTypeEnum.class.getName()); private String value; AdditionalBankIdentificationTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,30 +76,33 @@ public static AdditionalBankIdentificationTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AdditionalBankIdentificationTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AdditionalBankIdentificationTypeEnum.values())); + LOG.warning( + "AdditionalBankIdentificationTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AdditionalBankIdentificationTypeEnum.values())); return null; } } - public static final String JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION_TYPE = "additionalBankIdentificationType"; + public static final String JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION_TYPE = + "additionalBankIdentificationType"; private AdditionalBankIdentificationTypeEnum additionalBankIdentificationType; public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; - /** - * **additionalBankIdentificationRequirement** - */ + /** **additionalBankIdentificationRequirement** */ public enum TypeEnum { - - ADDITIONALBANKIDENTIFICATIONREQUIREMENT(String.valueOf("additionalBankIdentificationRequirement")); + ADDITIONALBANKIDENTIFICATIONREQUIREMENT( + String.valueOf("additionalBankIdentificationRequirement")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -117,7 +123,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -125,23 +135,61 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AdditionalBankIdentificationRequirement() { - } + public AdditionalBankIdentificationRequirement() {} /** - * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * The type of additional bank identification, depending on the country. Possible values: * + * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. * - * @param additionalBankIdentificationType The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. - * @return the current {@code AdditionalBankIdentificationRequirement} instance, allowing for method chaining + * @param additionalBankIdentificationType The type of additional bank identification, depending + * on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch + * (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. + * * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. + * @return the current {@code AdditionalBankIdentificationRequirement} instance, allowing for + * method chaining */ - public AdditionalBankIdentificationRequirement additionalBankIdentificationType(AdditionalBankIdentificationTypeEnum additionalBankIdentificationType) { + public AdditionalBankIdentificationRequirement additionalBankIdentificationType( + AdditionalBankIdentificationTypeEnum additionalBankIdentificationType) { this.additionalBankIdentificationType = additionalBankIdentificationType; return this; } /** - * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. - * @return additionalBankIdentificationType The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * The type of additional bank identification, depending on the country. Possible values: * + * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. + * + * @return additionalBankIdentificationType The type of additional bank identification, depending + * on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch + * (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. + * * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,13 +198,32 @@ public AdditionalBankIdentificationTypeEnum getAdditionalBankIdentificationType( } /** - * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * The type of additional bank identification, depending on the country. Possible values: * + * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. * - * @param additionalBankIdentificationType The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * @param additionalBankIdentificationType The type of additional bank identification, depending + * on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch + * (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. + * * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAdditionalBankIdentificationType(AdditionalBankIdentificationTypeEnum additionalBankIdentificationType) { + public void setAdditionalBankIdentificationType( + AdditionalBankIdentificationTypeEnum additionalBankIdentificationType) { this.additionalBankIdentificationType = additionalBankIdentificationType; } @@ -164,7 +231,8 @@ public void setAdditionalBankIdentificationType(AdditionalBankIdentificationType * The description of the additional bank identification requirement. * * @param description The description of the additional bank identification requirement. - * @return the current {@code AdditionalBankIdentificationRequirement} instance, allowing for method chaining + * @return the current {@code AdditionalBankIdentificationRequirement} instance, allowing for + * method chaining */ public AdditionalBankIdentificationRequirement description(String description) { this.description = description; @@ -173,6 +241,7 @@ public AdditionalBankIdentificationRequirement description(String description) { /** * The description of the additional bank identification requirement. + * * @return description The description of the additional bank identification requirement. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -196,7 +265,8 @@ public void setDescription(String description) { * **additionalBankIdentificationRequirement** * * @param type **additionalBankIdentificationRequirement** - * @return the current {@code AdditionalBankIdentificationRequirement} instance, allowing for method chaining + * @return the current {@code AdditionalBankIdentificationRequirement} instance, allowing for + * method chaining */ public AdditionalBankIdentificationRequirement type(TypeEnum type) { this.type = type; @@ -205,6 +275,7 @@ public AdditionalBankIdentificationRequirement type(TypeEnum type) { /** * **additionalBankIdentificationRequirement** + * * @return type **additionalBankIdentificationRequirement** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -224,9 +295,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this AdditionalBankIdentificationRequirement object is equal to o. - */ + /** Return true if this AdditionalBankIdentificationRequirement object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -235,10 +304,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AdditionalBankIdentificationRequirement additionalBankIdentificationRequirement = (AdditionalBankIdentificationRequirement) o; - return Objects.equals(this.additionalBankIdentificationType, additionalBankIdentificationRequirement.additionalBankIdentificationType) && - Objects.equals(this.description, additionalBankIdentificationRequirement.description) && - Objects.equals(this.type, additionalBankIdentificationRequirement.type); + AdditionalBankIdentificationRequirement additionalBankIdentificationRequirement = + (AdditionalBankIdentificationRequirement) o; + return Objects.equals( + this.additionalBankIdentificationType, + additionalBankIdentificationRequirement.additionalBankIdentificationType) + && Objects.equals(this.description, additionalBankIdentificationRequirement.description) + && Objects.equals(this.type, additionalBankIdentificationRequirement.type); } @Override @@ -250,7 +322,9 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalBankIdentificationRequirement {\n"); - sb.append(" additionalBankIdentificationType: ").append(toIndentedString(additionalBankIdentificationType)).append("\n"); + sb.append(" additionalBankIdentificationType: ") + .append(toIndentedString(additionalBankIdentificationType)) + .append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -258,8 +332,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -268,21 +341,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalBankIdentificationRequirement given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalBankIdentificationRequirement - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalBankIdentificationRequirement + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalBankIdentificationRequirement */ - public static AdditionalBankIdentificationRequirement fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalBankIdentificationRequirement fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalBankIdentificationRequirement.class); } -/** - * Convert an instance of AdditionalBankIdentificationRequirement to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalBankIdentificationRequirement to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/Address.java b/src/main/java/com/adyen/model/balanceplatform/Address.java index c5257fdee..314642ec9 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Address.java +++ b/src/main/java/com/adyen/model/balanceplatform/Address.java @@ -2,31 +2,22 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Address - */ +/** Address */ @JsonPropertyOrder({ Address.JSON_PROPERTY_CITY, Address.JSON_PROPERTY_COUNTRY, @@ -35,7 +26,6 @@ Address.JSON_PROPERTY_STATE_OR_PROVINCE, Address.JSON_PROPERTY_STREET }) - public class Address { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -55,8 +45,7 @@ public class Address { public static final String JSON_PROPERTY_STREET = "street"; private String street; - public Address() { - } + public Address() {} /** * The name of the city. Maximum length: 3000 characters. @@ -71,6 +60,7 @@ public Address city(String city) { /** * The name of the city. Maximum length: 3000 characters. + * * @return city The name of the city. Maximum length: 3000 characters. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -91,9 +81,13 @@ public void setCity(String city) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't + * know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If + * you don't know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. * @return the current {@code Address} instance, allowing for method chaining */ public Address country(String country) { @@ -102,8 +96,13 @@ public Address country(String country) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. - * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't + * know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. + * + * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If + * you don't know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,9 +111,13 @@ public String getCountry() { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't + * know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If + * you don't know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,6 +138,7 @@ public Address houseNumberOrName(String houseNumberOrName) { /** * The number or name of the house. Maximum length: 3000 characters. + * * @return houseNumberOrName The number or name of the house. Maximum length: 3000 characters. */ @JsonProperty(JSON_PROPERTY_HOUSE_NUMBER_OR_NAME) @@ -155,9 +159,11 @@ public void setHouseNumberOrName(String houseNumberOrName) { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an + * address in all other countries. * - * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten + * characters for an address in all other countries. * @return the current {@code Address} instance, allowing for method chaining */ public Address postalCode(String postalCode) { @@ -166,8 +172,11 @@ public Address postalCode(String postalCode) { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. - * @return postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an + * address in all other countries. + * + * @return postalCode A maximum of five digits for an address in the US, or a maximum of ten + * characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,9 +185,11 @@ public String getPostalCode() { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an + * address in all other countries. * - * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten + * characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,9 +198,11 @@ public void setPostalCode(String postalCode) { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in + * Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** + * in the US or **ON** in Canada. > Required for the US and Canada. * @return the current {@code Address} instance, allowing for method chaining */ public Address stateOrProvince(String stateOrProvince) { @@ -198,8 +211,11 @@ public Address stateOrProvince(String stateOrProvince) { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. - * @return stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in + * Canada. > Required for the US and Canada. + * + * @return stateOrProvince The two-character ISO 3166-2 state or province code. For example, + * **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,9 +224,11 @@ public String getStateOrProvince() { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in + * Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** + * in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,9 +237,12 @@ public void setStateOrProvince(String stateOrProvince) { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be + * included in this field; it should be separately provided via `houseNumberOrName`. * - * @param street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * @param street The name of the street. Maximum length: 3000 characters. > The house number + * should not be included in this field; it should be separately provided via + * `houseNumberOrName`. * @return the current {@code Address} instance, allowing for method chaining */ public Address street(String street) { @@ -230,8 +251,12 @@ public Address street(String street) { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. - * @return street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be + * included in this field; it should be separately provided via `houseNumberOrName`. + * + * @return street The name of the street. Maximum length: 3000 characters. > The house number + * should not be included in this field; it should be separately provided via + * `houseNumberOrName`. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,9 +265,12 @@ public String getStreet() { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be + * included in this field; it should be separately provided via `houseNumberOrName`. * - * @param street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * @param street The name of the street. Maximum length: 3000 characters. > The house number + * should not be included in this field; it should be separately provided via + * `houseNumberOrName`. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,9 +278,7 @@ public void setStreet(String street) { this.street = street; } - /** - * Return true if this Address object is equal to o. - */ + /** Return true if this Address object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -262,12 +288,12 @@ public boolean equals(Object o) { return false; } Address address = (Address) o; - return Objects.equals(this.city, address.city) && - Objects.equals(this.country, address.country) && - Objects.equals(this.houseNumberOrName, address.houseNumberOrName) && - Objects.equals(this.postalCode, address.postalCode) && - Objects.equals(this.stateOrProvince, address.stateOrProvince) && - Objects.equals(this.street, address.street); + return Objects.equals(this.city, address.city) + && Objects.equals(this.country, address.country) + && Objects.equals(this.houseNumberOrName, address.houseNumberOrName) + && Objects.equals(this.postalCode, address.postalCode) + && Objects.equals(this.stateOrProvince, address.stateOrProvince) + && Objects.equals(this.street, address.street); } @Override @@ -290,8 +316,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -300,7 +325,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Address given an JSON string * * @param jsonString JSON string @@ -310,11 +335,12 @@ private String toIndentedString(Object o) { public static Address fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Address.class); } -/** - * Convert an instance of Address to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Address to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/AddressRequirement.java b/src/main/java/com/adyen/model/balanceplatform/AddressRequirement.java index 799c23468..e5f9be663 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AddressRequirement.java +++ b/src/main/java/com/adyen/model/balanceplatform/AddressRequirement.java @@ -2,48 +2,39 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * AddressRequirement - */ +/** AddressRequirement */ @JsonPropertyOrder({ AddressRequirement.JSON_PROPERTY_DESCRIPTION, AddressRequirement.JSON_PROPERTY_REQUIRED_ADDRESS_FIELDS, AddressRequirement.JSON_PROPERTY_TYPE }) - public class AddressRequirement { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; - /** - * Gets or Sets requiredAddressFields - */ + /** Gets or Sets requiredAddressFields */ public enum RequiredAddressFieldsEnum { - CITY(String.valueOf("city")), COUNTRY(String.valueOf("country")), @@ -59,7 +50,7 @@ public enum RequiredAddressFieldsEnum { private String value; RequiredAddressFieldsEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -80,7 +71,11 @@ public static RequiredAddressFieldsEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("RequiredAddressFieldsEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RequiredAddressFieldsEnum.values())); + LOG.warning( + "RequiredAddressFieldsEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(RequiredAddressFieldsEnum.values())); return null; } } @@ -88,11 +83,8 @@ public static RequiredAddressFieldsEnum fromValue(String value) { public static final String JSON_PROPERTY_REQUIRED_ADDRESS_FIELDS = "requiredAddressFields"; private List requiredAddressFields; - /** - * **addressRequirement** - */ + /** **addressRequirement** */ public enum TypeEnum { - ADDRESSREQUIREMENT(String.valueOf("addressRequirement")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -100,7 +92,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -121,7 +113,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -129,8 +125,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AddressRequirement() { - } + public AddressRequirement() {} /** * Specifies the required address related fields for a particular route. @@ -145,6 +140,7 @@ public AddressRequirement description(String description) { /** * Specifies the required address related fields for a particular route. + * * @return description Specifies the required address related fields for a particular route. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -170,12 +166,14 @@ public void setDescription(String description) { * @param requiredAddressFields List of address fields. * @return the current {@code AddressRequirement} instance, allowing for method chaining */ - public AddressRequirement requiredAddressFields(List requiredAddressFields) { + public AddressRequirement requiredAddressFields( + List requiredAddressFields) { this.requiredAddressFields = requiredAddressFields; return this; } - public AddressRequirement addRequiredAddressFieldsItem(RequiredAddressFieldsEnum requiredAddressFieldsItem) { + public AddressRequirement addRequiredAddressFieldsItem( + RequiredAddressFieldsEnum requiredAddressFieldsItem) { if (this.requiredAddressFields == null) { this.requiredAddressFields = new ArrayList<>(); } @@ -185,6 +183,7 @@ public AddressRequirement addRequiredAddressFieldsItem(RequiredAddressFieldsEnum /** * List of address fields. + * * @return requiredAddressFields List of address fields. */ @JsonProperty(JSON_PROPERTY_REQUIRED_ADDRESS_FIELDS) @@ -217,6 +216,7 @@ public AddressRequirement type(TypeEnum type) { /** * **addressRequirement** + * * @return type **addressRequirement** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -236,9 +236,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this AddressRequirement object is equal to o. - */ + /** Return true if this AddressRequirement object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -248,9 +246,9 @@ public boolean equals(Object o) { return false; } AddressRequirement addressRequirement = (AddressRequirement) o; - return Objects.equals(this.description, addressRequirement.description) && - Objects.equals(this.requiredAddressFields, addressRequirement.requiredAddressFields) && - Objects.equals(this.type, addressRequirement.type); + return Objects.equals(this.description, addressRequirement.description) + && Objects.equals(this.requiredAddressFields, addressRequirement.requiredAddressFields) + && Objects.equals(this.type, addressRequirement.type); } @Override @@ -263,15 +261,16 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AddressRequirement {\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" requiredAddressFields: ").append(toIndentedString(requiredAddressFields)).append("\n"); + sb.append(" requiredAddressFields: ") + .append(toIndentedString(requiredAddressFields)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -280,21 +279,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AddressRequirement given an JSON string * * @param jsonString JSON string * @return An instance of AddressRequirement - * @throws JsonProcessingException if the JSON string is invalid with respect to AddressRequirement + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AddressRequirement */ public static AddressRequirement fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AddressRequirement.class); } -/** - * Convert an instance of AddressRequirement to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AddressRequirement to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/Amount.java b/src/main/java/com/adyen/model/balanceplatform/Amount.java index 9578faf2e..4cad929f3 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Amount.java +++ b/src/main/java/com/adyen/model/balanceplatform/Amount.java @@ -2,36 +2,23 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Amount - */ -@JsonPropertyOrder({ - Amount.JSON_PROPERTY_CURRENCY, - Amount.JSON_PROPERTY_VALUE -}) - +/** Amount */ +@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -39,13 +26,14 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() { - } + public Amount() {} /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount currency(String currency) { @@ -54,8 +42,11 @@ public Amount currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +55,11 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,9 +68,11 @@ public void setCurrency(String currency) { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount value(Long value) { @@ -86,8 +81,11 @@ public Amount value(Long value) { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). - * @return value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * + * @return value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +94,11 @@ public Long getValue() { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +106,7 @@ public void setValue(Long value) { this.value = value; } - /** - * Return true if this Amount object is equal to o. - */ + /** Return true if this Amount object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +116,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) && - Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) + && Objects.equals(this.value, amount.value); } @Override @@ -138,8 +136,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +145,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -158,11 +155,12 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } -/** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/AmountMinMaxRequirement.java b/src/main/java/com/adyen/model/balanceplatform/AmountMinMaxRequirement.java index 8e0a5e279..d46f7786d 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AmountMinMaxRequirement.java +++ b/src/main/java/com/adyen/model/balanceplatform/AmountMinMaxRequirement.java @@ -2,38 +2,32 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * AmountMinMaxRequirement - */ +/** AmountMinMaxRequirement */ @JsonPropertyOrder({ AmountMinMaxRequirement.JSON_PROPERTY_DESCRIPTION, AmountMinMaxRequirement.JSON_PROPERTY_MAX, AmountMinMaxRequirement.JSON_PROPERTY_MIN, AmountMinMaxRequirement.JSON_PROPERTY_TYPE }) - public class AmountMinMaxRequirement { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -44,11 +38,8 @@ public class AmountMinMaxRequirement { public static final String JSON_PROPERTY_MIN = "min"; private Long min; - /** - * **amountMinMaxRequirement** - */ + /** **amountMinMaxRequirement** */ public enum TypeEnum { - AMOUNTMINMAXREQUIREMENT(String.valueOf("amountMinMaxRequirement")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -56,7 +47,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -77,7 +68,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -85,8 +80,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AmountMinMaxRequirement() { - } + public AmountMinMaxRequirement() {} /** * Specifies the eligible amounts for a particular route. @@ -101,6 +95,7 @@ public AmountMinMaxRequirement description(String description) { /** * Specifies the eligible amounts for a particular route. + * * @return description Specifies the eligible amounts for a particular route. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -133,6 +128,7 @@ public AmountMinMaxRequirement max(Long max) { /** * Maximum amount. + * * @return max Maximum amount. */ @JsonProperty(JSON_PROPERTY_MAX) @@ -165,6 +161,7 @@ public AmountMinMaxRequirement min(Long min) { /** * Minimum amount. + * * @return min Minimum amount. */ @JsonProperty(JSON_PROPERTY_MIN) @@ -197,6 +194,7 @@ public AmountMinMaxRequirement type(TypeEnum type) { /** * **amountMinMaxRequirement** + * * @return type **amountMinMaxRequirement** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -216,9 +214,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this AmountMinMaxRequirement object is equal to o. - */ + /** Return true if this AmountMinMaxRequirement object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -228,10 +224,10 @@ public boolean equals(Object o) { return false; } AmountMinMaxRequirement amountMinMaxRequirement = (AmountMinMaxRequirement) o; - return Objects.equals(this.description, amountMinMaxRequirement.description) && - Objects.equals(this.max, amountMinMaxRequirement.max) && - Objects.equals(this.min, amountMinMaxRequirement.min) && - Objects.equals(this.type, amountMinMaxRequirement.type); + return Objects.equals(this.description, amountMinMaxRequirement.description) + && Objects.equals(this.max, amountMinMaxRequirement.max) + && Objects.equals(this.min, amountMinMaxRequirement.min) + && Objects.equals(this.type, amountMinMaxRequirement.type); } @Override @@ -252,8 +248,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -262,21 +257,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AmountMinMaxRequirement given an JSON string * * @param jsonString JSON string * @return An instance of AmountMinMaxRequirement - * @throws JsonProcessingException if the JSON string is invalid with respect to AmountMinMaxRequirement + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AmountMinMaxRequirement */ public static AmountMinMaxRequirement fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AmountMinMaxRequirement.class); } -/** - * Convert an instance of AmountMinMaxRequirement to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AmountMinMaxRequirement to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/AmountNonZeroDecimalsRequirement.java b/src/main/java/com/adyen/model/balanceplatform/AmountNonZeroDecimalsRequirement.java index 774684ab9..935aad63b 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AmountNonZeroDecimalsRequirement.java +++ b/src/main/java/com/adyen/model/balanceplatform/AmountNonZeroDecimalsRequirement.java @@ -2,45 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * AmountNonZeroDecimalsRequirement - */ +/** AmountNonZeroDecimalsRequirement */ @JsonPropertyOrder({ AmountNonZeroDecimalsRequirement.JSON_PROPERTY_DESCRIPTION, AmountNonZeroDecimalsRequirement.JSON_PROPERTY_TYPE }) - public class AmountNonZeroDecimalsRequirement { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; - /** - * **amountNonZeroDecimalsRequirement** - */ + /** **amountNonZeroDecimalsRequirement** */ public enum TypeEnum { - AMOUNTNONZERODECIMALSREQUIREMENT(String.valueOf("amountNonZeroDecimalsRequirement")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +39,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,14 +72,17 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AmountNonZeroDecimalsRequirement() { - } + public AmountNonZeroDecimalsRequirement() {} /** - * Specifies for which routes the amount in a transfer request must have no non-zero decimal places, so the transfer can only be processed if the amount consists of round numbers. + * Specifies for which routes the amount in a transfer request must have no non-zero decimal + * places, so the transfer can only be processed if the amount consists of round numbers. * - * @param description Specifies for which routes the amount in a transfer request must have no non-zero decimal places, so the transfer can only be processed if the amount consists of round numbers. - * @return the current {@code AmountNonZeroDecimalsRequirement} instance, allowing for method chaining + * @param description Specifies for which routes the amount in a transfer request must have no + * non-zero decimal places, so the transfer can only be processed if the amount consists of + * round numbers. + * @return the current {@code AmountNonZeroDecimalsRequirement} instance, allowing for method + * chaining */ public AmountNonZeroDecimalsRequirement description(String description) { this.description = description; @@ -92,8 +90,12 @@ public AmountNonZeroDecimalsRequirement description(String description) { } /** - * Specifies for which routes the amount in a transfer request must have no non-zero decimal places, so the transfer can only be processed if the amount consists of round numbers. - * @return description Specifies for which routes the amount in a transfer request must have no non-zero decimal places, so the transfer can only be processed if the amount consists of round numbers. + * Specifies for which routes the amount in a transfer request must have no non-zero decimal + * places, so the transfer can only be processed if the amount consists of round numbers. + * + * @return description Specifies for which routes the amount in a transfer request must have no + * non-zero decimal places, so the transfer can only be processed if the amount consists of + * round numbers. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,9 +104,12 @@ public String getDescription() { } /** - * Specifies for which routes the amount in a transfer request must have no non-zero decimal places, so the transfer can only be processed if the amount consists of round numbers. + * Specifies for which routes the amount in a transfer request must have no non-zero decimal + * places, so the transfer can only be processed if the amount consists of round numbers. * - * @param description Specifies for which routes the amount in a transfer request must have no non-zero decimal places, so the transfer can only be processed if the amount consists of round numbers. + * @param description Specifies for which routes the amount in a transfer request must have no + * non-zero decimal places, so the transfer can only be processed if the amount consists of + * round numbers. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,7 +121,8 @@ public void setDescription(String description) { * **amountNonZeroDecimalsRequirement** * * @param type **amountNonZeroDecimalsRequirement** - * @return the current {@code AmountNonZeroDecimalsRequirement} instance, allowing for method chaining + * @return the current {@code AmountNonZeroDecimalsRequirement} instance, allowing for method + * chaining */ public AmountNonZeroDecimalsRequirement type(TypeEnum type) { this.type = type; @@ -125,6 +131,7 @@ public AmountNonZeroDecimalsRequirement type(TypeEnum type) { /** * **amountNonZeroDecimalsRequirement** + * * @return type **amountNonZeroDecimalsRequirement** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -144,9 +151,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this AmountNonZeroDecimalsRequirement object is equal to o. - */ + /** Return true if this AmountNonZeroDecimalsRequirement object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -155,9 +160,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AmountNonZeroDecimalsRequirement amountNonZeroDecimalsRequirement = (AmountNonZeroDecimalsRequirement) o; - return Objects.equals(this.description, amountNonZeroDecimalsRequirement.description) && - Objects.equals(this.type, amountNonZeroDecimalsRequirement.type); + AmountNonZeroDecimalsRequirement amountNonZeroDecimalsRequirement = + (AmountNonZeroDecimalsRequirement) o; + return Objects.equals(this.description, amountNonZeroDecimalsRequirement.description) + && Objects.equals(this.type, amountNonZeroDecimalsRequirement.type); } @Override @@ -176,8 +182,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +191,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AmountNonZeroDecimalsRequirement given an JSON string * * @param jsonString JSON string * @return An instance of AmountNonZeroDecimalsRequirement - * @throws JsonProcessingException if the JSON string is invalid with respect to AmountNonZeroDecimalsRequirement + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AmountNonZeroDecimalsRequirement */ - public static AmountNonZeroDecimalsRequirement fromJson(String jsonString) throws JsonProcessingException { + public static AmountNonZeroDecimalsRequirement fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AmountNonZeroDecimalsRequirement.class); } -/** - * Convert an instance of AmountNonZeroDecimalsRequirement to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AmountNonZeroDecimalsRequirement to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/AssociationDelegatedAuthenticationData.java b/src/main/java/com/adyen/model/balanceplatform/AssociationDelegatedAuthenticationData.java index 1f79f0fe0..9110d316e 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AssociationDelegatedAuthenticationData.java +++ b/src/main/java/com/adyen/model/balanceplatform/AssociationDelegatedAuthenticationData.java @@ -2,47 +2,37 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AssociationDelegatedAuthenticationData - */ -@JsonPropertyOrder({ - AssociationDelegatedAuthenticationData.JSON_PROPERTY_SDK_OUTPUT -}) - +/** AssociationDelegatedAuthenticationData */ +@JsonPropertyOrder({AssociationDelegatedAuthenticationData.JSON_PROPERTY_SDK_OUTPUT}) public class AssociationDelegatedAuthenticationData { public static final String JSON_PROPERTY_SDK_OUTPUT = "sdkOutput"; private String sdkOutput; - public AssociationDelegatedAuthenticationData() { - } + public AssociationDelegatedAuthenticationData() {} /** - * A base64-encoded block with the data required to authenticate the request. You obtain this information by using our authentication SDK. + * A base64-encoded block with the data required to authenticate the request. You obtain this + * information by using our authentication SDK. * - * @param sdkOutput A base64-encoded block with the data required to authenticate the request. You obtain this information by using our authentication SDK. - * @return the current {@code AssociationDelegatedAuthenticationData} instance, allowing for method chaining + * @param sdkOutput A base64-encoded block with the data required to authenticate the request. You + * obtain this information by using our authentication SDK. + * @return the current {@code AssociationDelegatedAuthenticationData} instance, allowing for + * method chaining */ public AssociationDelegatedAuthenticationData sdkOutput(String sdkOutput) { this.sdkOutput = sdkOutput; @@ -50,8 +40,11 @@ public AssociationDelegatedAuthenticationData sdkOutput(String sdkOutput) { } /** - * A base64-encoded block with the data required to authenticate the request. You obtain this information by using our authentication SDK. - * @return sdkOutput A base64-encoded block with the data required to authenticate the request. You obtain this information by using our authentication SDK. + * A base64-encoded block with the data required to authenticate the request. You obtain this + * information by using our authentication SDK. + * + * @return sdkOutput A base64-encoded block with the data required to authenticate the request. + * You obtain this information by using our authentication SDK. */ @JsonProperty(JSON_PROPERTY_SDK_OUTPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,9 +53,11 @@ public String getSdkOutput() { } /** - * A base64-encoded block with the data required to authenticate the request. You obtain this information by using our authentication SDK. + * A base64-encoded block with the data required to authenticate the request. You obtain this + * information by using our authentication SDK. * - * @param sdkOutput A base64-encoded block with the data required to authenticate the request. You obtain this information by using our authentication SDK. + * @param sdkOutput A base64-encoded block with the data required to authenticate the request. You + * obtain this information by using our authentication SDK. */ @JsonProperty(JSON_PROPERTY_SDK_OUTPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +65,7 @@ public void setSdkOutput(String sdkOutput) { this.sdkOutput = sdkOutput; } - /** - * Return true if this AssociationDelegatedAuthenticationData object is equal to o. - */ + /** Return true if this AssociationDelegatedAuthenticationData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -81,7 +74,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AssociationDelegatedAuthenticationData associationDelegatedAuthenticationData = (AssociationDelegatedAuthenticationData) o; + AssociationDelegatedAuthenticationData associationDelegatedAuthenticationData = + (AssociationDelegatedAuthenticationData) o; return Objects.equals(this.sdkOutput, associationDelegatedAuthenticationData.sdkOutput); } @@ -100,8 +94,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +103,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AssociationDelegatedAuthenticationData given an JSON string * * @param jsonString JSON string * @return An instance of AssociationDelegatedAuthenticationData - * @throws JsonProcessingException if the JSON string is invalid with respect to AssociationDelegatedAuthenticationData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AssociationDelegatedAuthenticationData */ - public static AssociationDelegatedAuthenticationData fromJson(String jsonString) throws JsonProcessingException { + public static AssociationDelegatedAuthenticationData fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AssociationDelegatedAuthenticationData.class); } -/** - * Convert an instance of AssociationDelegatedAuthenticationData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AssociationDelegatedAuthenticationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/AssociationFinaliseRequest.java b/src/main/java/com/adyen/model/balanceplatform/AssociationFinaliseRequest.java index f292a24e2..a12d143a7 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AssociationFinaliseRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/AssociationFinaliseRequest.java @@ -2,52 +2,46 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.AssociationDelegatedAuthenticationData; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * AssociationFinaliseRequest - */ +/** AssociationFinaliseRequest */ @JsonPropertyOrder({ AssociationFinaliseRequest.JSON_PROPERTY_IDS, AssociationFinaliseRequest.JSON_PROPERTY_STRONG_CUSTOMER_AUTHENTICATION, AssociationFinaliseRequest.JSON_PROPERTY_TYPE }) - public class AssociationFinaliseRequest { public static final String JSON_PROPERTY_IDS = "ids"; private List ids; - public static final String JSON_PROPERTY_STRONG_CUSTOMER_AUTHENTICATION = "strongCustomerAuthentication"; + public static final String JSON_PROPERTY_STRONG_CUSTOMER_AUTHENTICATION = + "strongCustomerAuthentication"; private AssociationDelegatedAuthenticationData strongCustomerAuthentication; /** - * The type of resource that you are associating with the SCA device. Possible value: **PaymentInstrument** + * The type of resource that you are associating with the SCA device. Possible value: + * **PaymentInstrument** */ public enum TypeEnum { - PAYMENTINSTRUMENT(String.valueOf("PaymentInstrument")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -55,7 +49,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -76,7 +70,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -84,13 +82,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AssociationFinaliseRequest() { - } + public AssociationFinaliseRequest() {} /** - * The list of unique identifiers of the resources that you are associating with the SCA device. Maximum: 5 strings. + * The list of unique identifiers of the resources that you are associating with the SCA device. + * Maximum: 5 strings. * - * @param ids The list of unique identifiers of the resources that you are associating with the SCA device. Maximum: 5 strings. + * @param ids The list of unique identifiers of the resources that you are associating with the + * SCA device. Maximum: 5 strings. * @return the current {@code AssociationFinaliseRequest} instance, allowing for method chaining */ public AssociationFinaliseRequest ids(List ids) { @@ -107,8 +106,11 @@ public AssociationFinaliseRequest addIdsItem(String idsItem) { } /** - * The list of unique identifiers of the resources that you are associating with the SCA device. Maximum: 5 strings. - * @return ids The list of unique identifiers of the resources that you are associating with the SCA device. Maximum: 5 strings. + * The list of unique identifiers of the resources that you are associating with the SCA device. + * Maximum: 5 strings. + * + * @return ids The list of unique identifiers of the resources that you are associating with the + * SCA device. Maximum: 5 strings. */ @JsonProperty(JSON_PROPERTY_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,9 +119,11 @@ public List getIds() { } /** - * The list of unique identifiers of the resources that you are associating with the SCA device. Maximum: 5 strings. + * The list of unique identifiers of the resources that you are associating with the SCA device. + * Maximum: 5 strings. * - * @param ids The list of unique identifiers of the resources that you are associating with the SCA device. Maximum: 5 strings. + * @param ids The list of unique identifiers of the resources that you are associating with the + * SCA device. Maximum: 5 strings. */ @JsonProperty(JSON_PROPERTY_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -130,17 +134,19 @@ public void setIds(List ids) { /** * strongCustomerAuthentication * - * @param strongCustomerAuthentication + * @param strongCustomerAuthentication * @return the current {@code AssociationFinaliseRequest} instance, allowing for method chaining */ - public AssociationFinaliseRequest strongCustomerAuthentication(AssociationDelegatedAuthenticationData strongCustomerAuthentication) { + public AssociationFinaliseRequest strongCustomerAuthentication( + AssociationDelegatedAuthenticationData strongCustomerAuthentication) { this.strongCustomerAuthentication = strongCustomerAuthentication; return this; } /** * Get strongCustomerAuthentication - * @return strongCustomerAuthentication + * + * @return strongCustomerAuthentication */ @JsonProperty(JSON_PROPERTY_STRONG_CUSTOMER_AUTHENTICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,18 +157,21 @@ public AssociationDelegatedAuthenticationData getStrongCustomerAuthentication() /** * strongCustomerAuthentication * - * @param strongCustomerAuthentication + * @param strongCustomerAuthentication */ @JsonProperty(JSON_PROPERTY_STRONG_CUSTOMER_AUTHENTICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStrongCustomerAuthentication(AssociationDelegatedAuthenticationData strongCustomerAuthentication) { + public void setStrongCustomerAuthentication( + AssociationDelegatedAuthenticationData strongCustomerAuthentication) { this.strongCustomerAuthentication = strongCustomerAuthentication; } /** - * The type of resource that you are associating with the SCA device. Possible value: **PaymentInstrument** + * The type of resource that you are associating with the SCA device. Possible value: + * **PaymentInstrument** * - * @param type The type of resource that you are associating with the SCA device. Possible value: **PaymentInstrument** + * @param type The type of resource that you are associating with the SCA device. Possible value: + * **PaymentInstrument** * @return the current {@code AssociationFinaliseRequest} instance, allowing for method chaining */ public AssociationFinaliseRequest type(TypeEnum type) { @@ -171,8 +180,11 @@ public AssociationFinaliseRequest type(TypeEnum type) { } /** - * The type of resource that you are associating with the SCA device. Possible value: **PaymentInstrument** - * @return type The type of resource that you are associating with the SCA device. Possible value: **PaymentInstrument** + * The type of resource that you are associating with the SCA device. Possible value: + * **PaymentInstrument** + * + * @return type The type of resource that you are associating with the SCA device. Possible value: + * **PaymentInstrument** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,9 +193,11 @@ public TypeEnum getType() { } /** - * The type of resource that you are associating with the SCA device. Possible value: **PaymentInstrument** + * The type of resource that you are associating with the SCA device. Possible value: + * **PaymentInstrument** * - * @param type The type of resource that you are associating with the SCA device. Possible value: **PaymentInstrument** + * @param type The type of resource that you are associating with the SCA device. Possible value: + * **PaymentInstrument** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,9 +205,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this AssociationFinaliseRequest object is equal to o. - */ + /** Return true if this AssociationFinaliseRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -203,9 +215,11 @@ public boolean equals(Object o) { return false; } AssociationFinaliseRequest associationFinaliseRequest = (AssociationFinaliseRequest) o; - return Objects.equals(this.ids, associationFinaliseRequest.ids) && - Objects.equals(this.strongCustomerAuthentication, associationFinaliseRequest.strongCustomerAuthentication) && - Objects.equals(this.type, associationFinaliseRequest.type); + return Objects.equals(this.ids, associationFinaliseRequest.ids) + && Objects.equals( + this.strongCustomerAuthentication, + associationFinaliseRequest.strongCustomerAuthentication) + && Objects.equals(this.type, associationFinaliseRequest.type); } @Override @@ -218,15 +232,16 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AssociationFinaliseRequest {\n"); sb.append(" ids: ").append(toIndentedString(ids)).append("\n"); - sb.append(" strongCustomerAuthentication: ").append(toIndentedString(strongCustomerAuthentication)).append("\n"); + sb.append(" strongCustomerAuthentication: ") + .append(toIndentedString(strongCustomerAuthentication)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -235,21 +250,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AssociationFinaliseRequest given an JSON string * * @param jsonString JSON string * @return An instance of AssociationFinaliseRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to AssociationFinaliseRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AssociationFinaliseRequest */ - public static AssociationFinaliseRequest fromJson(String jsonString) throws JsonProcessingException { + public static AssociationFinaliseRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AssociationFinaliseRequest.class); } -/** - * Convert an instance of AssociationFinaliseRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AssociationFinaliseRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/AssociationFinaliseResponse.java b/src/main/java/com/adyen/model/balanceplatform/AssociationFinaliseResponse.java index 1426f0b3c..5f88ae408 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AssociationFinaliseResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/AssociationFinaliseResponse.java @@ -2,39 +2,33 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * AssociationFinaliseResponse - */ +/** AssociationFinaliseResponse */ @JsonPropertyOrder({ AssociationFinaliseResponse.JSON_PROPERTY_DEVICE_ID, AssociationFinaliseResponse.JSON_PROPERTY_IDS, AssociationFinaliseResponse.JSON_PROPERTY_TYPE }) - public class AssociationFinaliseResponse { public static final String JSON_PROPERTY_DEVICE_ID = "deviceId"; private String deviceId; @@ -42,11 +36,8 @@ public class AssociationFinaliseResponse { public static final String JSON_PROPERTY_IDS = "ids"; private List ids; - /** - * The type of resource that you associated with the SCA device. - */ + /** The type of resource that you associated with the SCA device. */ public enum TypeEnum { - PAYMENT_INSTRUMENT(String.valueOf("PAYMENT_INSTRUMENT")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -54,7 +45,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -75,7 +66,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -83,8 +78,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AssociationFinaliseResponse() { - } + public AssociationFinaliseResponse() {} /** * The unique identifier of the SCA device you associated with a resource. @@ -99,6 +93,7 @@ public AssociationFinaliseResponse deviceId(String deviceId) { /** * The unique identifier of the SCA device you associated with a resource. + * * @return deviceId The unique identifier of the SCA device you associated with a resource. */ @JsonProperty(JSON_PROPERTY_DEVICE_ID) @@ -121,7 +116,8 @@ public void setDeviceId(String deviceId) { /** * The list of unique identifiers of the resources that you associated with the SCA device. * - * @param ids The list of unique identifiers of the resources that you associated with the SCA device. + * @param ids The list of unique identifiers of the resources that you associated with the SCA + * device. * @return the current {@code AssociationFinaliseResponse} instance, allowing for method chaining */ public AssociationFinaliseResponse ids(List ids) { @@ -139,7 +135,9 @@ public AssociationFinaliseResponse addIdsItem(String idsItem) { /** * The list of unique identifiers of the resources that you associated with the SCA device. - * @return ids The list of unique identifiers of the resources that you associated with the SCA device. + * + * @return ids The list of unique identifiers of the resources that you associated with the SCA + * device. */ @JsonProperty(JSON_PROPERTY_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,7 +148,8 @@ public List getIds() { /** * The list of unique identifiers of the resources that you associated with the SCA device. * - * @param ids The list of unique identifiers of the resources that you associated with the SCA device. + * @param ids The list of unique identifiers of the resources that you associated with the SCA + * device. */ @JsonProperty(JSON_PROPERTY_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -171,6 +170,7 @@ public AssociationFinaliseResponse type(TypeEnum type) { /** * The type of resource that you associated with the SCA device. + * * @return type The type of resource that you associated with the SCA device. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -190,9 +190,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this AssociationFinaliseResponse object is equal to o. - */ + /** Return true if this AssociationFinaliseResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -202,9 +200,9 @@ public boolean equals(Object o) { return false; } AssociationFinaliseResponse associationFinaliseResponse = (AssociationFinaliseResponse) o; - return Objects.equals(this.deviceId, associationFinaliseResponse.deviceId) && - Objects.equals(this.ids, associationFinaliseResponse.ids) && - Objects.equals(this.type, associationFinaliseResponse.type); + return Objects.equals(this.deviceId, associationFinaliseResponse.deviceId) + && Objects.equals(this.ids, associationFinaliseResponse.ids) + && Objects.equals(this.type, associationFinaliseResponse.type); } @Override @@ -224,8 +222,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -234,21 +231,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AssociationFinaliseResponse given an JSON string * * @param jsonString JSON string * @return An instance of AssociationFinaliseResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to AssociationFinaliseResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AssociationFinaliseResponse */ - public static AssociationFinaliseResponse fromJson(String jsonString) throws JsonProcessingException { + public static AssociationFinaliseResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AssociationFinaliseResponse.class); } -/** - * Convert an instance of AssociationFinaliseResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AssociationFinaliseResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/AssociationInitiateRequest.java b/src/main/java/com/adyen/model/balanceplatform/AssociationInitiateRequest.java index 0cda2b56f..848ef857b 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AssociationInitiateRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/AssociationInitiateRequest.java @@ -2,47 +2,41 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * AssociationInitiateRequest - */ +/** AssociationInitiateRequest */ @JsonPropertyOrder({ AssociationInitiateRequest.JSON_PROPERTY_IDS, AssociationInitiateRequest.JSON_PROPERTY_TYPE }) - public class AssociationInitiateRequest { public static final String JSON_PROPERTY_IDS = "ids"; private List ids; /** - * The type of resource that you are associating with the SCA device. Possible value: **PaymentInstrument** + * The type of resource that you are associating with the SCA device. Possible value: + * **PaymentInstrument** */ public enum TypeEnum { - PAYMENTINSTRUMENT(String.valueOf("PaymentInstrument")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -50,7 +44,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -71,7 +65,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -79,13 +77,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AssociationInitiateRequest() { - } + public AssociationInitiateRequest() {} /** - * The list of unique identifiers of the resources that you are associating with the SCA device. Maximum: 5 strings. + * The list of unique identifiers of the resources that you are associating with the SCA device. + * Maximum: 5 strings. * - * @param ids The list of unique identifiers of the resources that you are associating with the SCA device. Maximum: 5 strings. + * @param ids The list of unique identifiers of the resources that you are associating with the + * SCA device. Maximum: 5 strings. * @return the current {@code AssociationInitiateRequest} instance, allowing for method chaining */ public AssociationInitiateRequest ids(List ids) { @@ -102,8 +101,11 @@ public AssociationInitiateRequest addIdsItem(String idsItem) { } /** - * The list of unique identifiers of the resources that you are associating with the SCA device. Maximum: 5 strings. - * @return ids The list of unique identifiers of the resources that you are associating with the SCA device. Maximum: 5 strings. + * The list of unique identifiers of the resources that you are associating with the SCA device. + * Maximum: 5 strings. + * + * @return ids The list of unique identifiers of the resources that you are associating with the + * SCA device. Maximum: 5 strings. */ @JsonProperty(JSON_PROPERTY_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,9 +114,11 @@ public List getIds() { } /** - * The list of unique identifiers of the resources that you are associating with the SCA device. Maximum: 5 strings. + * The list of unique identifiers of the resources that you are associating with the SCA device. + * Maximum: 5 strings. * - * @param ids The list of unique identifiers of the resources that you are associating with the SCA device. Maximum: 5 strings. + * @param ids The list of unique identifiers of the resources that you are associating with the + * SCA device. Maximum: 5 strings. */ @JsonProperty(JSON_PROPERTY_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,9 +127,11 @@ public void setIds(List ids) { } /** - * The type of resource that you are associating with the SCA device. Possible value: **PaymentInstrument** + * The type of resource that you are associating with the SCA device. Possible value: + * **PaymentInstrument** * - * @param type The type of resource that you are associating with the SCA device. Possible value: **PaymentInstrument** + * @param type The type of resource that you are associating with the SCA device. Possible value: + * **PaymentInstrument** * @return the current {@code AssociationInitiateRequest} instance, allowing for method chaining */ public AssociationInitiateRequest type(TypeEnum type) { @@ -134,8 +140,11 @@ public AssociationInitiateRequest type(TypeEnum type) { } /** - * The type of resource that you are associating with the SCA device. Possible value: **PaymentInstrument** - * @return type The type of resource that you are associating with the SCA device. Possible value: **PaymentInstrument** + * The type of resource that you are associating with the SCA device. Possible value: + * **PaymentInstrument** + * + * @return type The type of resource that you are associating with the SCA device. Possible value: + * **PaymentInstrument** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,9 +153,11 @@ public TypeEnum getType() { } /** - * The type of resource that you are associating with the SCA device. Possible value: **PaymentInstrument** + * The type of resource that you are associating with the SCA device. Possible value: + * **PaymentInstrument** * - * @param type The type of resource that you are associating with the SCA device. Possible value: **PaymentInstrument** + * @param type The type of resource that you are associating with the SCA device. Possible value: + * **PaymentInstrument** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -154,9 +165,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this AssociationInitiateRequest object is equal to o. - */ + /** Return true if this AssociationInitiateRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -166,8 +175,8 @@ public boolean equals(Object o) { return false; } AssociationInitiateRequest associationInitiateRequest = (AssociationInitiateRequest) o; - return Objects.equals(this.ids, associationInitiateRequest.ids) && - Objects.equals(this.type, associationInitiateRequest.type); + return Objects.equals(this.ids, associationInitiateRequest.ids) + && Objects.equals(this.type, associationInitiateRequest.type); } @Override @@ -186,8 +195,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -196,21 +204,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AssociationInitiateRequest given an JSON string * * @param jsonString JSON string * @return An instance of AssociationInitiateRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to AssociationInitiateRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AssociationInitiateRequest */ - public static AssociationInitiateRequest fromJson(String jsonString) throws JsonProcessingException { + public static AssociationInitiateRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AssociationInitiateRequest.class); } -/** - * Convert an instance of AssociationInitiateRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AssociationInitiateRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/AssociationInitiateResponse.java b/src/main/java/com/adyen/model/balanceplatform/AssociationInitiateResponse.java index 7ab6f39bc..ed4a2253c 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AssociationInitiateResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/AssociationInitiateResponse.java @@ -2,46 +2,34 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AssociationInitiateResponse - */ -@JsonPropertyOrder({ - AssociationInitiateResponse.JSON_PROPERTY_SDK_INPUT -}) - +/** AssociationInitiateResponse */ +@JsonPropertyOrder({AssociationInitiateResponse.JSON_PROPERTY_SDK_INPUT}) public class AssociationInitiateResponse { public static final String JSON_PROPERTY_SDK_INPUT = "sdkInput"; private String sdkInput; - public AssociationInitiateResponse() { - } + public AssociationInitiateResponse() {} /** * A string that you must pass to the authentication SDK to continue with the association process. * - * @param sdkInput A string that you must pass to the authentication SDK to continue with the association process. + * @param sdkInput A string that you must pass to the authentication SDK to continue with the + * association process. * @return the current {@code AssociationInitiateResponse} instance, allowing for method chaining */ public AssociationInitiateResponse sdkInput(String sdkInput) { @@ -51,7 +39,9 @@ public AssociationInitiateResponse sdkInput(String sdkInput) { /** * A string that you must pass to the authentication SDK to continue with the association process. - * @return sdkInput A string that you must pass to the authentication SDK to continue with the association process. + * + * @return sdkInput A string that you must pass to the authentication SDK to continue with the + * association process. */ @JsonProperty(JSON_PROPERTY_SDK_INPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -62,7 +52,8 @@ public String getSdkInput() { /** * A string that you must pass to the authentication SDK to continue with the association process. * - * @param sdkInput A string that you must pass to the authentication SDK to continue with the association process. + * @param sdkInput A string that you must pass to the authentication SDK to continue with the + * association process. */ @JsonProperty(JSON_PROPERTY_SDK_INPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +61,7 @@ public void setSdkInput(String sdkInput) { this.sdkInput = sdkInput; } - /** - * Return true if this AssociationInitiateResponse object is equal to o. - */ + /** Return true if this AssociationInitiateResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +89,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +98,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AssociationInitiateResponse given an JSON string * * @param jsonString JSON string * @return An instance of AssociationInitiateResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to AssociationInitiateResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AssociationInitiateResponse */ - public static AssociationInitiateResponse fromJson(String jsonString) throws JsonProcessingException { + public static AssociationInitiateResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AssociationInitiateResponse.class); } -/** - * Convert an instance of AssociationInitiateResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AssociationInitiateResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/Authentication.java b/src/main/java/com/adyen/model/balanceplatform/Authentication.java index b5a7c03d6..b1ca55240 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Authentication.java +++ b/src/main/java/com/adyen/model/balanceplatform/Authentication.java @@ -2,38 +2,27 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.Phone; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Authentication - */ +/** Authentication */ @JsonPropertyOrder({ Authentication.JSON_PROPERTY_EMAIL, Authentication.JSON_PROPERTY_PASSWORD, Authentication.JSON_PROPERTY_PHONE }) - public class Authentication { public static final String JSON_PROPERTY_EMAIL = "email"; private String email; @@ -44,8 +33,7 @@ public class Authentication { public static final String JSON_PROPERTY_PHONE = "phone"; private Phone phone; - public Authentication() { - } + public Authentication() {} /** * The email address where the one-time password (OTP) is sent. @@ -60,6 +48,7 @@ public Authentication email(String email) { /** * The email address where the one-time password (OTP) is sent. + * * @return email The email address where the one-time password (OTP) is sent. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -80,9 +69,15 @@ public void setEmail(String email) { } /** - * The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters. * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** + * The password used for 3D Secure password-based authentication. The value must be between 1 to + * 30 characters and must only contain the following supported characters. * Characters between + * **a-z**, **A-Z**, and **0-9** * Special characters: + * **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** * - * @param password The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters. * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** + * @param password The password used for 3D Secure password-based authentication. The value must + * be between 1 to 30 characters and must only contain the following supported characters. * + * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: + * **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** * @return the current {@code Authentication} instance, allowing for method chaining */ public Authentication password(String password) { @@ -91,8 +86,15 @@ public Authentication password(String password) { } /** - * The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters. * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** - * @return password The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters. * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** + * The password used for 3D Secure password-based authentication. The value must be between 1 to + * 30 characters and must only contain the following supported characters. * Characters between + * **a-z**, **A-Z**, and **0-9** * Special characters: + * **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** + * + * @return password The password used for 3D Secure password-based authentication. The value must + * be between 1 to 30 characters and must only contain the following supported characters. * + * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: + * **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** */ @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,9 +103,15 @@ public String getPassword() { } /** - * The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters. * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** + * The password used for 3D Secure password-based authentication. The value must be between 1 to + * 30 characters and must only contain the following supported characters. * Characters between + * **a-z**, **A-Z**, and **0-9** * Special characters: + * **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** * - * @param password The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters. * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** + * @param password The password used for 3D Secure password-based authentication. The value must + * be between 1 to 30 characters and must only contain the following supported characters. * + * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: + * **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** */ @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,7 +122,7 @@ public void setPassword(String password) { /** * phone * - * @param phone + * @param phone * @return the current {@code Authentication} instance, allowing for method chaining */ public Authentication phone(Phone phone) { @@ -124,7 +132,8 @@ public Authentication phone(Phone phone) { /** * Get phone - * @return phone + * + * @return phone */ @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,7 +144,7 @@ public Phone getPhone() { /** * phone * - * @param phone + * @param phone */ @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,9 +152,7 @@ public void setPhone(Phone phone) { this.phone = phone; } - /** - * Return true if this Authentication object is equal to o. - */ + /** Return true if this Authentication object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -155,9 +162,9 @@ public boolean equals(Object o) { return false; } Authentication authentication = (Authentication) o; - return Objects.equals(this.email, authentication.email) && - Objects.equals(this.password, authentication.password) && - Objects.equals(this.phone, authentication.phone); + return Objects.equals(this.email, authentication.email) + && Objects.equals(this.password, authentication.password) + && Objects.equals(this.phone, authentication.phone); } @Override @@ -177,8 +184,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -187,7 +193,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Authentication given an JSON string * * @param jsonString JSON string @@ -197,11 +203,12 @@ private String toIndentedString(Object o) { public static Authentication fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Authentication.class); } -/** - * Convert an instance of Authentication to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Authentication to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/AuthorisedCardUsers.java b/src/main/java/com/adyen/model/balanceplatform/AuthorisedCardUsers.java index b9b64e805..fae830b57 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AuthorisedCardUsers.java +++ b/src/main/java/com/adyen/model/balanceplatform/AuthorisedCardUsers.java @@ -2,48 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * AuthorisedCardUsers - */ -@JsonPropertyOrder({ - AuthorisedCardUsers.JSON_PROPERTY_LEGAL_ENTITY_IDS -}) - +/** AuthorisedCardUsers */ +@JsonPropertyOrder({AuthorisedCardUsers.JSON_PROPERTY_LEGAL_ENTITY_IDS}) public class AuthorisedCardUsers { public static final String JSON_PROPERTY_LEGAL_ENTITY_IDS = "legalEntityIds"; private List legalEntityIds; - public AuthorisedCardUsers() { - } + public AuthorisedCardUsers() {} /** * The legal entity IDs of the authorized card users linked to the specified payment instrument. * - * @param legalEntityIds The legal entity IDs of the authorized card users linked to the specified payment instrument. + * @param legalEntityIds The legal entity IDs of the authorized card users linked to the specified + * payment instrument. * @return the current {@code AuthorisedCardUsers} instance, allowing for method chaining */ public AuthorisedCardUsers legalEntityIds(List legalEntityIds) { @@ -61,7 +49,9 @@ public AuthorisedCardUsers addLegalEntityIdsItem(String legalEntityIdsItem) { /** * The legal entity IDs of the authorized card users linked to the specified payment instrument. - * @return legalEntityIds The legal entity IDs of the authorized card users linked to the specified payment instrument. + * + * @return legalEntityIds The legal entity IDs of the authorized card users linked to the + * specified payment instrument. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -72,7 +62,8 @@ public List getLegalEntityIds() { /** * The legal entity IDs of the authorized card users linked to the specified payment instrument. * - * @param legalEntityIds The legal entity IDs of the authorized card users linked to the specified payment instrument. + * @param legalEntityIds The legal entity IDs of the authorized card users linked to the specified + * payment instrument. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,9 +71,7 @@ public void setLegalEntityIds(List legalEntityIds) { this.legalEntityIds = legalEntityIds; } - /** - * Return true if this AuthorisedCardUsers object is equal to o. - */ + /** Return true if this AuthorisedCardUsers object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -110,8 +99,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -120,21 +108,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AuthorisedCardUsers given an JSON string * * @param jsonString JSON string * @return An instance of AuthorisedCardUsers - * @throws JsonProcessingException if the JSON string is invalid with respect to AuthorisedCardUsers + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AuthorisedCardUsers */ public static AuthorisedCardUsers fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AuthorisedCardUsers.class); } -/** - * Convert an instance of AuthorisedCardUsers to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AuthorisedCardUsers to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BRLocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/BRLocalAccountIdentification.java index d33dfaaaa..163d24a87 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BRLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/BRLocalAccountIdentification.java @@ -2,31 +2,26 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * BRLocalAccountIdentification - */ +/** BRLocalAccountIdentification */ @JsonPropertyOrder({ BRLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, BRLocalAccountIdentification.JSON_PROPERTY_BANK_CODE, @@ -34,7 +29,6 @@ BRLocalAccountIdentification.JSON_PROPERTY_ISPB, BRLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class BRLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -48,11 +42,8 @@ public class BRLocalAccountIdentification { public static final String JSON_PROPERTY_ISPB = "ispb"; private String ispb; - /** - * **brLocal** - */ + /** **brLocal** */ public enum TypeEnum { - BRLOCAL(String.valueOf("brLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -60,7 +51,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -81,7 +72,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -89,8 +84,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public BRLocalAccountIdentification() { - } + public BRLocalAccountIdentification() {} /** * The bank account number, without separators or whitespace. @@ -105,6 +99,7 @@ public BRLocalAccountIdentification accountNumber(String accountNumber) { /** * The bank account number, without separators or whitespace. + * * @return accountNumber The bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -137,6 +132,7 @@ public BRLocalAccountIdentification bankCode(String bankCode) { /** * The 3-digit bank code, with leading zeros. + * * @return bankCode The 3-digit bank code, with leading zeros. */ @JsonProperty(JSON_PROPERTY_BANK_CODE) @@ -169,6 +165,7 @@ public BRLocalAccountIdentification branchNumber(String branchNumber) { /** * The bank account branch number, without separators or whitespace. + * * @return branchNumber The bank account branch number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_BRANCH_NUMBER) @@ -201,6 +198,7 @@ public BRLocalAccountIdentification ispb(String ispb) { /** * The 8-digit ISPB, with leading zeros. + * * @return ispb The 8-digit ISPB, with leading zeros. */ @JsonProperty(JSON_PROPERTY_ISPB) @@ -233,6 +231,7 @@ public BRLocalAccountIdentification type(TypeEnum type) { /** * **brLocal** + * * @return type **brLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -252,9 +251,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this BRLocalAccountIdentification object is equal to o. - */ + /** Return true if this BRLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -264,11 +261,11 @@ public boolean equals(Object o) { return false; } BRLocalAccountIdentification brLocalAccountIdentification = (BRLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, brLocalAccountIdentification.accountNumber) && - Objects.equals(this.bankCode, brLocalAccountIdentification.bankCode) && - Objects.equals(this.branchNumber, brLocalAccountIdentification.branchNumber) && - Objects.equals(this.ispb, brLocalAccountIdentification.ispb) && - Objects.equals(this.type, brLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, brLocalAccountIdentification.accountNumber) + && Objects.equals(this.bankCode, brLocalAccountIdentification.bankCode) + && Objects.equals(this.branchNumber, brLocalAccountIdentification.branchNumber) + && Objects.equals(this.ispb, brLocalAccountIdentification.ispb) + && Objects.equals(this.type, brLocalAccountIdentification.type); } @Override @@ -290,8 +287,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -300,21 +296,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BRLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of BRLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to BRLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BRLocalAccountIdentification */ - public static BRLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static BRLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BRLocalAccountIdentification.class); } -/** - * Convert an instance of BRLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BRLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/Balance.java b/src/main/java/com/adyen/model/balanceplatform/Balance.java index 1b7ed488d..8d4a8c88f 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Balance.java +++ b/src/main/java/com/adyen/model/balanceplatform/Balance.java @@ -2,31 +2,22 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Balance - */ +/** Balance */ @JsonPropertyOrder({ Balance.JSON_PROPERTY_AVAILABLE, Balance.JSON_PROPERTY_BALANCE, @@ -34,7 +25,6 @@ Balance.JSON_PROPERTY_PENDING, Balance.JSON_PROPERTY_RESERVED }) - public class Balance { public static final String JSON_PROPERTY_AVAILABLE = "available"; private Long available; @@ -51,8 +41,7 @@ public class Balance { public static final String JSON_PROPERTY_RESERVED = "reserved"; private Long reserved; - public Balance() { - } + public Balance() {} /** * The balance available for use. @@ -67,6 +56,7 @@ public Balance available(Long available) { /** * The balance available for use. + * * @return available The balance available for use. */ @JsonProperty(JSON_PROPERTY_AVAILABLE) @@ -99,6 +89,7 @@ public Balance balance(Long balance) { /** * The sum of the transactions that have already been settled. + * * @return balance The sum of the transactions that have already been settled. */ @JsonProperty(JSON_PROPERTY_BALANCE) @@ -119,9 +110,11 @@ public void setBalance(Long balance) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. * @return the current {@code Balance} instance, allowing for method chaining */ public Balance currency(String currency) { @@ -130,8 +123,11 @@ public Balance currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,9 +136,11 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,6 +161,7 @@ public Balance pending(Long pending) { /** * The sum of the transactions that will be settled in the future. + * * @return pending The sum of the transactions that will be settled in the future. */ @JsonProperty(JSON_PROPERTY_PENDING) @@ -195,6 +194,7 @@ public Balance reserved(Long reserved) { /** * The balance currently held in reserve. + * * @return reserved The balance currently held in reserve. */ @JsonProperty(JSON_PROPERTY_RESERVED) @@ -214,9 +214,7 @@ public void setReserved(Long reserved) { this.reserved = reserved; } - /** - * Return true if this Balance object is equal to o. - */ + /** Return true if this Balance object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -226,11 +224,11 @@ public boolean equals(Object o) { return false; } Balance balance = (Balance) o; - return Objects.equals(this.available, balance.available) && - Objects.equals(this.balance, balance.balance) && - Objects.equals(this.currency, balance.currency) && - Objects.equals(this.pending, balance.pending) && - Objects.equals(this.reserved, balance.reserved); + return Objects.equals(this.available, balance.available) + && Objects.equals(this.balance, balance.balance) + && Objects.equals(this.currency, balance.currency) + && Objects.equals(this.pending, balance.pending) + && Objects.equals(this.reserved, balance.reserved); } @Override @@ -252,8 +250,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -262,7 +259,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Balance given an JSON string * * @param jsonString JSON string @@ -272,11 +269,12 @@ private String toIndentedString(Object o) { public static Balance fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Balance.class); } -/** - * Convert an instance of Balance to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Balance to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BalanceAccount.java b/src/main/java/com/adyen/model/balanceplatform/BalanceAccount.java index 84e2dc249..61c175894 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalanceAccount.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalanceAccount.java @@ -2,37 +2,30 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.Balance; -import com.adyen.model.balanceplatform.PlatformPaymentConfiguration; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * BalanceAccount - */ +/** BalanceAccount */ @JsonPropertyOrder({ BalanceAccount.JSON_PROPERTY_ACCOUNT_HOLDER_ID, BalanceAccount.JSON_PROPERTY_BALANCES, @@ -46,7 +39,6 @@ BalanceAccount.JSON_PROPERTY_STATUS, BalanceAccount.JSON_PROPERTY_TIME_ZONE }) - public class BalanceAccount { public static final String JSON_PROPERTY_ACCOUNT_HOLDER_ID = "accountHolderId"; private String accountHolderId; @@ -69,17 +61,15 @@ public class BalanceAccount { public static final String JSON_PROPERTY_MIGRATED_ACCOUNT_CODE = "migratedAccountCode"; private String migratedAccountCode; - public static final String JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION = "platformPaymentConfiguration"; + public static final String JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION = + "platformPaymentConfiguration"; private PlatformPaymentConfiguration platformPaymentConfiguration; public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - /** - * The status of the balance account, set to **active** by default. - */ + /** The status of the balance account, set to **active** by default. */ public enum StatusEnum { - ACTIVE(String.valueOf("active")), CLOSED(String.valueOf("closed")), @@ -93,7 +83,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -114,7 +104,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -125,21 +119,23 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_TIME_ZONE = "timeZone"; private String timeZone; - public BalanceAccount() { - } + public BalanceAccount() {} @JsonCreator public BalanceAccount( - @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_CODE) String migratedAccountCode - ) { + @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_CODE) String migratedAccountCode) { this(); this.migratedAccountCode = migratedAccountCode; } /** - * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. + * The unique identifier of the [account + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) + * associated with the balance account. * - * @param accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. + * @param accountHolderId The unique identifier of the [account + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) + * associated with the balance account. * @return the current {@code BalanceAccount} instance, allowing for method chaining */ public BalanceAccount accountHolderId(String accountHolderId) { @@ -148,8 +144,13 @@ public BalanceAccount accountHolderId(String accountHolderId) { } /** - * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. - * @return accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. + * The unique identifier of the [account + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) + * associated with the balance account. + * + * @return accountHolderId The unique identifier of the [account + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) + * associated with the balance account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,9 +159,13 @@ public String getAccountHolderId() { } /** - * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. + * The unique identifier of the [account + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) + * associated with the balance account. * - * @param accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. + * @param accountHolderId The unique identifier of the [account + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) + * associated with the balance account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,6 +194,7 @@ public BalanceAccount addBalancesItem(Balance balancesItem) { /** * List of balances with the amount and currency. + * * @return balances List of balances with the amount and currency. */ @JsonProperty(JSON_PROPERTY_BALANCES) @@ -209,9 +215,17 @@ public void setBalances(List balances) { } /** - * The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. + * The default three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This + * is the currency displayed on the Balance Account overview page in your Customer Area. The + * default value is **EUR**. > After a balance account is created, you cannot change its + * default currency. * - * @param defaultCurrencyCode The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. + * @param defaultCurrencyCode The default three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. + * This is the currency displayed on the Balance Account overview page in your Customer Area. + * The default value is **EUR**. > After a balance account is created, you cannot change + * its default currency. * @return the current {@code BalanceAccount} instance, allowing for method chaining */ public BalanceAccount defaultCurrencyCode(String defaultCurrencyCode) { @@ -220,8 +234,17 @@ public BalanceAccount defaultCurrencyCode(String defaultCurrencyCode) { } /** - * The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. - * @return defaultCurrencyCode The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. + * The default three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This + * is the currency displayed on the Balance Account overview page in your Customer Area. The + * default value is **EUR**. > After a balance account is created, you cannot change its + * default currency. + * + * @return defaultCurrencyCode The default three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. + * This is the currency displayed on the Balance Account overview page in your Customer Area. + * The default value is **EUR**. > After a balance account is created, you cannot change + * its default currency. */ @JsonProperty(JSON_PROPERTY_DEFAULT_CURRENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -230,9 +253,17 @@ public String getDefaultCurrencyCode() { } /** - * The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. + * The default three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This + * is the currency displayed on the Balance Account overview page in your Customer Area. The + * default value is **EUR**. > After a balance account is created, you cannot change its + * default currency. * - * @param defaultCurrencyCode The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. + * @param defaultCurrencyCode The default three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. + * This is the currency displayed on the Balance Account overview page in your Customer Area. + * The default value is **EUR**. > After a balance account is created, you cannot change + * its default currency. */ @JsonProperty(JSON_PROPERTY_DEFAULT_CURRENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -241,9 +272,12 @@ public void setDefaultCurrencyCode(String defaultCurrencyCode) { } /** - * A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. + * A human-readable description of the balance account, maximum 300 characters. You can use this + * parameter to distinguish between multiple balance accounts under an account holder. * - * @param description A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. + * @param description A human-readable description of the balance account, maximum 300 characters. + * You can use this parameter to distinguish between multiple balance accounts under an + * account holder. * @return the current {@code BalanceAccount} instance, allowing for method chaining */ public BalanceAccount description(String description) { @@ -252,8 +286,12 @@ public BalanceAccount description(String description) { } /** - * A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. - * @return description A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. + * A human-readable description of the balance account, maximum 300 characters. You can use this + * parameter to distinguish between multiple balance accounts under an account holder. + * + * @return description A human-readable description of the balance account, maximum 300 + * characters. You can use this parameter to distinguish between multiple balance accounts + * under an account holder. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -262,9 +300,12 @@ public String getDescription() { } /** - * A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. + * A human-readable description of the balance account, maximum 300 characters. You can use this + * parameter to distinguish between multiple balance accounts under an account holder. * - * @param description A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. + * @param description A human-readable description of the balance account, maximum 300 characters. + * You can use this parameter to distinguish between multiple balance accounts under an + * account holder. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -285,6 +326,7 @@ public BalanceAccount id(String id) { /** * The unique identifier of the balance account. + * * @return id The unique identifier of the balance account. */ @JsonProperty(JSON_PROPERTY_ID) @@ -305,9 +347,14 @@ public void setId(String id) { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be + * used for storing miscellaneous data as desired. > Note that during an update of metadata, + * the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific + * names and may be used for storing miscellaneous data as desired. > Note that during an + * update of metadata, the omission of existing key-value pairs will result in the deletion of + * those key-value pairs. * @return the current {@code BalanceAccount} instance, allowing for method chaining */ public BalanceAccount metadata(Map metadata) { @@ -324,8 +371,14 @@ public BalanceAccount putMetadataItem(String key, String metadataItem) { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. - * @return metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be + * used for storing miscellaneous data as desired. > Note that during an update of metadata, + * the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * + * @return metadata A set of key and value pairs for general use. The keys do not have specific + * names and may be used for storing miscellaneous data as desired. > Note that during an + * update of metadata, the omission of existing key-value pairs will result in the deletion of + * those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -334,9 +387,14 @@ public Map getMetadata() { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be + * used for storing miscellaneous data as desired. > Note that during an update of metadata, + * the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific + * names and may be used for storing miscellaneous data as desired. > Note that during an + * update of metadata, the omission of existing key-value pairs will result in the deletion of + * those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -346,7 +404,9 @@ public void setMetadata(Map metadata) { /** * The unique identifier of the account of the migrated account holder in the classic integration. - * @return migratedAccountCode The unique identifier of the account of the migrated account holder in the classic integration. + * + * @return migratedAccountCode The unique identifier of the account of the migrated account holder + * in the classic integration. */ @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -354,21 +414,22 @@ public String getMigratedAccountCode() { return migratedAccountCode; } - /** * platformPaymentConfiguration * - * @param platformPaymentConfiguration + * @param platformPaymentConfiguration * @return the current {@code BalanceAccount} instance, allowing for method chaining */ - public BalanceAccount platformPaymentConfiguration(PlatformPaymentConfiguration platformPaymentConfiguration) { + public BalanceAccount platformPaymentConfiguration( + PlatformPaymentConfiguration platformPaymentConfiguration) { this.platformPaymentConfiguration = platformPaymentConfiguration; return this; } /** * Get platformPaymentConfiguration - * @return platformPaymentConfiguration + * + * @return platformPaymentConfiguration */ @JsonProperty(JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -379,11 +440,12 @@ public PlatformPaymentConfiguration getPlatformPaymentConfiguration() { /** * platformPaymentConfiguration * - * @param platformPaymentConfiguration + * @param platformPaymentConfiguration */ @JsonProperty(JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPlatformPaymentConfiguration(PlatformPaymentConfiguration platformPaymentConfiguration) { + public void setPlatformPaymentConfiguration( + PlatformPaymentConfiguration platformPaymentConfiguration) { this.platformPaymentConfiguration = platformPaymentConfiguration; } @@ -400,6 +462,7 @@ public BalanceAccount reference(String reference) { /** * Your reference for the balance account, maximum 150 characters. + * * @return reference Your reference for the balance account, maximum 150 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -420,9 +483,9 @@ public void setReference(String reference) { } /** - * The status of the balance account, set to **active** by default. + * The status of the balance account, set to **active** by default. * - * @param status The status of the balance account, set to **active** by default. + * @param status The status of the balance account, set to **active** by default. * @return the current {@code BalanceAccount} instance, allowing for method chaining */ public BalanceAccount status(StatusEnum status) { @@ -431,8 +494,9 @@ public BalanceAccount status(StatusEnum status) { } /** - * The status of the balance account, set to **active** by default. - * @return status The status of the balance account, set to **active** by default. + * The status of the balance account, set to **active** by default. + * + * @return status The status of the balance account, set to **active** by default. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -441,9 +505,9 @@ public StatusEnum getStatus() { } /** - * The status of the balance account, set to **active** by default. + * The status of the balance account, set to **active** by default. * - * @param status The status of the balance account, set to **active** by default. + * @param status The status of the balance account, set to **active** by default. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -452,9 +516,14 @@ public void setStatus(StatusEnum status) { } /** - * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time + * zone of the account holder if no time zone is set. For possible values, see the [list of time + * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. + * Defaults to the time zone of the account holder if no time zone is set. For possible + * values, see the [list of time zone + * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * @return the current {@code BalanceAccount} instance, allowing for method chaining */ public BalanceAccount timeZone(String timeZone) { @@ -463,8 +532,14 @@ public BalanceAccount timeZone(String timeZone) { } /** - * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). - * @return timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time + * zone of the account holder if no time zone is set. For possible values, see the [list of time + * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * + * @return timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. + * Defaults to the time zone of the account holder if no time zone is set. For possible + * values, see the [list of time zone + * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -473,9 +548,14 @@ public String getTimeZone() { } /** - * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time + * zone of the account holder if no time zone is set. For possible values, see the [list of time + * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. + * Defaults to the time zone of the account holder if no time zone is set. For possible + * values, see the [list of time zone + * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -483,9 +563,7 @@ public void setTimeZone(String timeZone) { this.timeZone = timeZone; } - /** - * Return true if this BalanceAccount object is equal to o. - */ + /** Return true if this BalanceAccount object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -495,22 +573,34 @@ public boolean equals(Object o) { return false; } BalanceAccount balanceAccount = (BalanceAccount) o; - return Objects.equals(this.accountHolderId, balanceAccount.accountHolderId) && - Objects.equals(this.balances, balanceAccount.balances) && - Objects.equals(this.defaultCurrencyCode, balanceAccount.defaultCurrencyCode) && - Objects.equals(this.description, balanceAccount.description) && - Objects.equals(this.id, balanceAccount.id) && - Objects.equals(this.metadata, balanceAccount.metadata) && - Objects.equals(this.migratedAccountCode, balanceAccount.migratedAccountCode) && - Objects.equals(this.platformPaymentConfiguration, balanceAccount.platformPaymentConfiguration) && - Objects.equals(this.reference, balanceAccount.reference) && - Objects.equals(this.status, balanceAccount.status) && - Objects.equals(this.timeZone, balanceAccount.timeZone); + return Objects.equals(this.accountHolderId, balanceAccount.accountHolderId) + && Objects.equals(this.balances, balanceAccount.balances) + && Objects.equals(this.defaultCurrencyCode, balanceAccount.defaultCurrencyCode) + && Objects.equals(this.description, balanceAccount.description) + && Objects.equals(this.id, balanceAccount.id) + && Objects.equals(this.metadata, balanceAccount.metadata) + && Objects.equals(this.migratedAccountCode, balanceAccount.migratedAccountCode) + && Objects.equals( + this.platformPaymentConfiguration, balanceAccount.platformPaymentConfiguration) + && Objects.equals(this.reference, balanceAccount.reference) + && Objects.equals(this.status, balanceAccount.status) + && Objects.equals(this.timeZone, balanceAccount.timeZone); } @Override public int hashCode() { - return Objects.hash(accountHolderId, balances, defaultCurrencyCode, description, id, metadata, migratedAccountCode, platformPaymentConfiguration, reference, status, timeZone); + return Objects.hash( + accountHolderId, + balances, + defaultCurrencyCode, + description, + id, + metadata, + migratedAccountCode, + platformPaymentConfiguration, + reference, + status, + timeZone); } @Override @@ -519,12 +609,18 @@ public String toString() { sb.append("class BalanceAccount {\n"); sb.append(" accountHolderId: ").append(toIndentedString(accountHolderId)).append("\n"); sb.append(" balances: ").append(toIndentedString(balances)).append("\n"); - sb.append(" defaultCurrencyCode: ").append(toIndentedString(defaultCurrencyCode)).append("\n"); + sb.append(" defaultCurrencyCode: ") + .append(toIndentedString(defaultCurrencyCode)) + .append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" migratedAccountCode: ").append(toIndentedString(migratedAccountCode)).append("\n"); - sb.append(" platformPaymentConfiguration: ").append(toIndentedString(platformPaymentConfiguration)).append("\n"); + sb.append(" migratedAccountCode: ") + .append(toIndentedString(migratedAccountCode)) + .append("\n"); + sb.append(" platformPaymentConfiguration: ") + .append(toIndentedString(platformPaymentConfiguration)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); @@ -533,8 +629,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -543,7 +638,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BalanceAccount given an JSON string * * @param jsonString JSON string @@ -553,11 +648,12 @@ private String toIndentedString(Object o) { public static BalanceAccount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceAccount.class); } -/** - * Convert an instance of BalanceAccount to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BalanceAccount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BalanceAccountBase.java b/src/main/java/com/adyen/model/balanceplatform/BalanceAccountBase.java index 5249572b7..5ffc89b49 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalanceAccountBase.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalanceAccountBase.java @@ -2,34 +2,28 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.PlatformPaymentConfiguration; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * BalanceAccountBase - */ +/** BalanceAccountBase */ @JsonPropertyOrder({ BalanceAccountBase.JSON_PROPERTY_ACCOUNT_HOLDER_ID, BalanceAccountBase.JSON_PROPERTY_DEFAULT_CURRENCY_CODE, @@ -42,7 +36,6 @@ BalanceAccountBase.JSON_PROPERTY_STATUS, BalanceAccountBase.JSON_PROPERTY_TIME_ZONE }) - public class BalanceAccountBase { public static final String JSON_PROPERTY_ACCOUNT_HOLDER_ID = "accountHolderId"; private String accountHolderId; @@ -62,17 +55,15 @@ public class BalanceAccountBase { public static final String JSON_PROPERTY_MIGRATED_ACCOUNT_CODE = "migratedAccountCode"; private String migratedAccountCode; - public static final String JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION = "platformPaymentConfiguration"; + public static final String JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION = + "platformPaymentConfiguration"; private PlatformPaymentConfiguration platformPaymentConfiguration; public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - /** - * The status of the balance account, set to **active** by default. - */ + /** The status of the balance account, set to **active** by default. */ public enum StatusEnum { - ACTIVE(String.valueOf("active")), CLOSED(String.valueOf("closed")), @@ -86,7 +77,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -107,7 +98,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -118,21 +113,23 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_TIME_ZONE = "timeZone"; private String timeZone; - public BalanceAccountBase() { - } + public BalanceAccountBase() {} @JsonCreator public BalanceAccountBase( - @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_CODE) String migratedAccountCode - ) { + @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_CODE) String migratedAccountCode) { this(); this.migratedAccountCode = migratedAccountCode; } /** - * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. + * The unique identifier of the [account + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) + * associated with the balance account. * - * @param accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. + * @param accountHolderId The unique identifier of the [account + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) + * associated with the balance account. * @return the current {@code BalanceAccountBase} instance, allowing for method chaining */ public BalanceAccountBase accountHolderId(String accountHolderId) { @@ -141,8 +138,13 @@ public BalanceAccountBase accountHolderId(String accountHolderId) { } /** - * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. - * @return accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. + * The unique identifier of the [account + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) + * associated with the balance account. + * + * @return accountHolderId The unique identifier of the [account + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) + * associated with the balance account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,9 +153,13 @@ public String getAccountHolderId() { } /** - * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. + * The unique identifier of the [account + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) + * associated with the balance account. * - * @param accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. + * @param accountHolderId The unique identifier of the [account + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) + * associated with the balance account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -162,9 +168,17 @@ public void setAccountHolderId(String accountHolderId) { } /** - * The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. + * The default three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This + * is the currency displayed on the Balance Account overview page in your Customer Area. The + * default value is **EUR**. > After a balance account is created, you cannot change its + * default currency. * - * @param defaultCurrencyCode The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. + * @param defaultCurrencyCode The default three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. + * This is the currency displayed on the Balance Account overview page in your Customer Area. + * The default value is **EUR**. > After a balance account is created, you cannot change + * its default currency. * @return the current {@code BalanceAccountBase} instance, allowing for method chaining */ public BalanceAccountBase defaultCurrencyCode(String defaultCurrencyCode) { @@ -173,8 +187,17 @@ public BalanceAccountBase defaultCurrencyCode(String defaultCurrencyCode) { } /** - * The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. - * @return defaultCurrencyCode The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. + * The default three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This + * is the currency displayed on the Balance Account overview page in your Customer Area. The + * default value is **EUR**. > After a balance account is created, you cannot change its + * default currency. + * + * @return defaultCurrencyCode The default three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. + * This is the currency displayed on the Balance Account overview page in your Customer Area. + * The default value is **EUR**. > After a balance account is created, you cannot change + * its default currency. */ @JsonProperty(JSON_PROPERTY_DEFAULT_CURRENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,9 +206,17 @@ public String getDefaultCurrencyCode() { } /** - * The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. + * The default three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This + * is the currency displayed on the Balance Account overview page in your Customer Area. The + * default value is **EUR**. > After a balance account is created, you cannot change its + * default currency. * - * @param defaultCurrencyCode The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. + * @param defaultCurrencyCode The default three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. + * This is the currency displayed on the Balance Account overview page in your Customer Area. + * The default value is **EUR**. > After a balance account is created, you cannot change + * its default currency. */ @JsonProperty(JSON_PROPERTY_DEFAULT_CURRENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,9 +225,12 @@ public void setDefaultCurrencyCode(String defaultCurrencyCode) { } /** - * A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. + * A human-readable description of the balance account, maximum 300 characters. You can use this + * parameter to distinguish between multiple balance accounts under an account holder. * - * @param description A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. + * @param description A human-readable description of the balance account, maximum 300 characters. + * You can use this parameter to distinguish between multiple balance accounts under an + * account holder. * @return the current {@code BalanceAccountBase} instance, allowing for method chaining */ public BalanceAccountBase description(String description) { @@ -205,8 +239,12 @@ public BalanceAccountBase description(String description) { } /** - * A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. - * @return description A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. + * A human-readable description of the balance account, maximum 300 characters. You can use this + * parameter to distinguish between multiple balance accounts under an account holder. + * + * @return description A human-readable description of the balance account, maximum 300 + * characters. You can use this parameter to distinguish between multiple balance accounts + * under an account holder. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -215,9 +253,12 @@ public String getDescription() { } /** - * A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. + * A human-readable description of the balance account, maximum 300 characters. You can use this + * parameter to distinguish between multiple balance accounts under an account holder. * - * @param description A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. + * @param description A human-readable description of the balance account, maximum 300 characters. + * You can use this parameter to distinguish between multiple balance accounts under an + * account holder. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -238,6 +279,7 @@ public BalanceAccountBase id(String id) { /** * The unique identifier of the balance account. + * * @return id The unique identifier of the balance account. */ @JsonProperty(JSON_PROPERTY_ID) @@ -258,9 +300,14 @@ public void setId(String id) { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be + * used for storing miscellaneous data as desired. > Note that during an update of metadata, + * the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific + * names and may be used for storing miscellaneous data as desired. > Note that during an + * update of metadata, the omission of existing key-value pairs will result in the deletion of + * those key-value pairs. * @return the current {@code BalanceAccountBase} instance, allowing for method chaining */ public BalanceAccountBase metadata(Map metadata) { @@ -277,8 +324,14 @@ public BalanceAccountBase putMetadataItem(String key, String metadataItem) { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. - * @return metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be + * used for storing miscellaneous data as desired. > Note that during an update of metadata, + * the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * + * @return metadata A set of key and value pairs for general use. The keys do not have specific + * names and may be used for storing miscellaneous data as desired. > Note that during an + * update of metadata, the omission of existing key-value pairs will result in the deletion of + * those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -287,9 +340,14 @@ public Map getMetadata() { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be + * used for storing miscellaneous data as desired. > Note that during an update of metadata, + * the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific + * names and may be used for storing miscellaneous data as desired. > Note that during an + * update of metadata, the omission of existing key-value pairs will result in the deletion of + * those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -299,7 +357,9 @@ public void setMetadata(Map metadata) { /** * The unique identifier of the account of the migrated account holder in the classic integration. - * @return migratedAccountCode The unique identifier of the account of the migrated account holder in the classic integration. + * + * @return migratedAccountCode The unique identifier of the account of the migrated account holder + * in the classic integration. */ @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -307,21 +367,22 @@ public String getMigratedAccountCode() { return migratedAccountCode; } - /** * platformPaymentConfiguration * - * @param platformPaymentConfiguration + * @param platformPaymentConfiguration * @return the current {@code BalanceAccountBase} instance, allowing for method chaining */ - public BalanceAccountBase platformPaymentConfiguration(PlatformPaymentConfiguration platformPaymentConfiguration) { + public BalanceAccountBase platformPaymentConfiguration( + PlatformPaymentConfiguration platformPaymentConfiguration) { this.platformPaymentConfiguration = platformPaymentConfiguration; return this; } /** * Get platformPaymentConfiguration - * @return platformPaymentConfiguration + * + * @return platformPaymentConfiguration */ @JsonProperty(JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -332,11 +393,12 @@ public PlatformPaymentConfiguration getPlatformPaymentConfiguration() { /** * platformPaymentConfiguration * - * @param platformPaymentConfiguration + * @param platformPaymentConfiguration */ @JsonProperty(JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPlatformPaymentConfiguration(PlatformPaymentConfiguration platformPaymentConfiguration) { + public void setPlatformPaymentConfiguration( + PlatformPaymentConfiguration platformPaymentConfiguration) { this.platformPaymentConfiguration = platformPaymentConfiguration; } @@ -353,6 +415,7 @@ public BalanceAccountBase reference(String reference) { /** * Your reference for the balance account, maximum 150 characters. + * * @return reference Your reference for the balance account, maximum 150 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -373,9 +436,9 @@ public void setReference(String reference) { } /** - * The status of the balance account, set to **active** by default. + * The status of the balance account, set to **active** by default. * - * @param status The status of the balance account, set to **active** by default. + * @param status The status of the balance account, set to **active** by default. * @return the current {@code BalanceAccountBase} instance, allowing for method chaining */ public BalanceAccountBase status(StatusEnum status) { @@ -384,8 +447,9 @@ public BalanceAccountBase status(StatusEnum status) { } /** - * The status of the balance account, set to **active** by default. - * @return status The status of the balance account, set to **active** by default. + * The status of the balance account, set to **active** by default. + * + * @return status The status of the balance account, set to **active** by default. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -394,9 +458,9 @@ public StatusEnum getStatus() { } /** - * The status of the balance account, set to **active** by default. + * The status of the balance account, set to **active** by default. * - * @param status The status of the balance account, set to **active** by default. + * @param status The status of the balance account, set to **active** by default. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -405,9 +469,14 @@ public void setStatus(StatusEnum status) { } /** - * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time + * zone of the account holder if no time zone is set. For possible values, see the [list of time + * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. + * Defaults to the time zone of the account holder if no time zone is set. For possible + * values, see the [list of time zone + * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * @return the current {@code BalanceAccountBase} instance, allowing for method chaining */ public BalanceAccountBase timeZone(String timeZone) { @@ -416,8 +485,14 @@ public BalanceAccountBase timeZone(String timeZone) { } /** - * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). - * @return timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time + * zone of the account holder if no time zone is set. For possible values, see the [list of time + * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * + * @return timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. + * Defaults to the time zone of the account holder if no time zone is set. For possible + * values, see the [list of time zone + * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -426,9 +501,14 @@ public String getTimeZone() { } /** - * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time + * zone of the account holder if no time zone is set. For possible values, see the [list of time + * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. + * Defaults to the time zone of the account holder if no time zone is set. For possible + * values, see the [list of time zone + * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -436,9 +516,7 @@ public void setTimeZone(String timeZone) { this.timeZone = timeZone; } - /** - * Return true if this BalanceAccountBase object is equal to o. - */ + /** Return true if this BalanceAccountBase object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -448,21 +526,32 @@ public boolean equals(Object o) { return false; } BalanceAccountBase balanceAccountBase = (BalanceAccountBase) o; - return Objects.equals(this.accountHolderId, balanceAccountBase.accountHolderId) && - Objects.equals(this.defaultCurrencyCode, balanceAccountBase.defaultCurrencyCode) && - Objects.equals(this.description, balanceAccountBase.description) && - Objects.equals(this.id, balanceAccountBase.id) && - Objects.equals(this.metadata, balanceAccountBase.metadata) && - Objects.equals(this.migratedAccountCode, balanceAccountBase.migratedAccountCode) && - Objects.equals(this.platformPaymentConfiguration, balanceAccountBase.platformPaymentConfiguration) && - Objects.equals(this.reference, balanceAccountBase.reference) && - Objects.equals(this.status, balanceAccountBase.status) && - Objects.equals(this.timeZone, balanceAccountBase.timeZone); + return Objects.equals(this.accountHolderId, balanceAccountBase.accountHolderId) + && Objects.equals(this.defaultCurrencyCode, balanceAccountBase.defaultCurrencyCode) + && Objects.equals(this.description, balanceAccountBase.description) + && Objects.equals(this.id, balanceAccountBase.id) + && Objects.equals(this.metadata, balanceAccountBase.metadata) + && Objects.equals(this.migratedAccountCode, balanceAccountBase.migratedAccountCode) + && Objects.equals( + this.platformPaymentConfiguration, balanceAccountBase.platformPaymentConfiguration) + && Objects.equals(this.reference, balanceAccountBase.reference) + && Objects.equals(this.status, balanceAccountBase.status) + && Objects.equals(this.timeZone, balanceAccountBase.timeZone); } @Override public int hashCode() { - return Objects.hash(accountHolderId, defaultCurrencyCode, description, id, metadata, migratedAccountCode, platformPaymentConfiguration, reference, status, timeZone); + return Objects.hash( + accountHolderId, + defaultCurrencyCode, + description, + id, + metadata, + migratedAccountCode, + platformPaymentConfiguration, + reference, + status, + timeZone); } @Override @@ -470,12 +559,18 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BalanceAccountBase {\n"); sb.append(" accountHolderId: ").append(toIndentedString(accountHolderId)).append("\n"); - sb.append(" defaultCurrencyCode: ").append(toIndentedString(defaultCurrencyCode)).append("\n"); + sb.append(" defaultCurrencyCode: ") + .append(toIndentedString(defaultCurrencyCode)) + .append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" migratedAccountCode: ").append(toIndentedString(migratedAccountCode)).append("\n"); - sb.append(" platformPaymentConfiguration: ").append(toIndentedString(platformPaymentConfiguration)).append("\n"); + sb.append(" migratedAccountCode: ") + .append(toIndentedString(migratedAccountCode)) + .append("\n"); + sb.append(" platformPaymentConfiguration: ") + .append(toIndentedString(platformPaymentConfiguration)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); @@ -484,8 +579,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -494,21 +588,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BalanceAccountBase given an JSON string * * @param jsonString JSON string * @return An instance of BalanceAccountBase - * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceAccountBase + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BalanceAccountBase */ public static BalanceAccountBase fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceAccountBase.class); } -/** - * Convert an instance of BalanceAccountBase to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BalanceAccountBase to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BalanceAccountInfo.java b/src/main/java/com/adyen/model/balanceplatform/BalanceAccountInfo.java index 7fdea323c..f708e38b7 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalanceAccountInfo.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalanceAccountInfo.java @@ -2,34 +2,25 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.PlatformPaymentConfiguration; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.HashMap; +import java.util.Map; - -/** - * BalanceAccountInfo - */ +/** BalanceAccountInfo */ @JsonPropertyOrder({ BalanceAccountInfo.JSON_PROPERTY_ACCOUNT_HOLDER_ID, BalanceAccountInfo.JSON_PROPERTY_DEFAULT_CURRENCY_CODE, @@ -40,7 +31,6 @@ BalanceAccountInfo.JSON_PROPERTY_REFERENCE, BalanceAccountInfo.JSON_PROPERTY_TIME_ZONE }) - public class BalanceAccountInfo { public static final String JSON_PROPERTY_ACCOUNT_HOLDER_ID = "accountHolderId"; private String accountHolderId; @@ -57,7 +47,8 @@ public class BalanceAccountInfo { public static final String JSON_PROPERTY_MIGRATED_ACCOUNT_CODE = "migratedAccountCode"; private String migratedAccountCode; - public static final String JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION = "platformPaymentConfiguration"; + public static final String JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION = + "platformPaymentConfiguration"; private PlatformPaymentConfiguration platformPaymentConfiguration; public static final String JSON_PROPERTY_REFERENCE = "reference"; @@ -66,21 +57,23 @@ public class BalanceAccountInfo { public static final String JSON_PROPERTY_TIME_ZONE = "timeZone"; private String timeZone; - public BalanceAccountInfo() { - } + public BalanceAccountInfo() {} @JsonCreator public BalanceAccountInfo( - @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_CODE) String migratedAccountCode - ) { + @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_CODE) String migratedAccountCode) { this(); this.migratedAccountCode = migratedAccountCode; } /** - * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. + * The unique identifier of the [account + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) + * associated with the balance account. * - * @param accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. + * @param accountHolderId The unique identifier of the [account + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) + * associated with the balance account. * @return the current {@code BalanceAccountInfo} instance, allowing for method chaining */ public BalanceAccountInfo accountHolderId(String accountHolderId) { @@ -89,8 +82,13 @@ public BalanceAccountInfo accountHolderId(String accountHolderId) { } /** - * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. - * @return accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. + * The unique identifier of the [account + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) + * associated with the balance account. + * + * @return accountHolderId The unique identifier of the [account + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) + * associated with the balance account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,9 +97,13 @@ public String getAccountHolderId() { } /** - * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. + * The unique identifier of the [account + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) + * associated with the balance account. * - * @param accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. + * @param accountHolderId The unique identifier of the [account + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) + * associated with the balance account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,9 +112,17 @@ public void setAccountHolderId(String accountHolderId) { } /** - * The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. + * The default three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This + * is the currency displayed on the Balance Account overview page in your Customer Area. The + * default value is **EUR**. > After a balance account is created, you cannot change its + * default currency. * - * @param defaultCurrencyCode The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. + * @param defaultCurrencyCode The default three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. + * This is the currency displayed on the Balance Account overview page in your Customer Area. + * The default value is **EUR**. > After a balance account is created, you cannot change + * its default currency. * @return the current {@code BalanceAccountInfo} instance, allowing for method chaining */ public BalanceAccountInfo defaultCurrencyCode(String defaultCurrencyCode) { @@ -121,8 +131,17 @@ public BalanceAccountInfo defaultCurrencyCode(String defaultCurrencyCode) { } /** - * The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. - * @return defaultCurrencyCode The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. + * The default three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This + * is the currency displayed on the Balance Account overview page in your Customer Area. The + * default value is **EUR**. > After a balance account is created, you cannot change its + * default currency. + * + * @return defaultCurrencyCode The default three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. + * This is the currency displayed on the Balance Account overview page in your Customer Area. + * The default value is **EUR**. > After a balance account is created, you cannot change + * its default currency. */ @JsonProperty(JSON_PROPERTY_DEFAULT_CURRENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -131,9 +150,17 @@ public String getDefaultCurrencyCode() { } /** - * The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. + * The default three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This + * is the currency displayed on the Balance Account overview page in your Customer Area. The + * default value is **EUR**. > After a balance account is created, you cannot change its + * default currency. * - * @param defaultCurrencyCode The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. + * @param defaultCurrencyCode The default three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. + * This is the currency displayed on the Balance Account overview page in your Customer Area. + * The default value is **EUR**. > After a balance account is created, you cannot change + * its default currency. */ @JsonProperty(JSON_PROPERTY_DEFAULT_CURRENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +169,12 @@ public void setDefaultCurrencyCode(String defaultCurrencyCode) { } /** - * A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. + * A human-readable description of the balance account, maximum 300 characters. You can use this + * parameter to distinguish between multiple balance accounts under an account holder. * - * @param description A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. + * @param description A human-readable description of the balance account, maximum 300 characters. + * You can use this parameter to distinguish between multiple balance accounts under an + * account holder. * @return the current {@code BalanceAccountInfo} instance, allowing for method chaining */ public BalanceAccountInfo description(String description) { @@ -153,8 +183,12 @@ public BalanceAccountInfo description(String description) { } /** - * A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. - * @return description A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. + * A human-readable description of the balance account, maximum 300 characters. You can use this + * parameter to distinguish between multiple balance accounts under an account holder. + * + * @return description A human-readable description of the balance account, maximum 300 + * characters. You can use this parameter to distinguish between multiple balance accounts + * under an account holder. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,9 +197,12 @@ public String getDescription() { } /** - * A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. + * A human-readable description of the balance account, maximum 300 characters. You can use this + * parameter to distinguish between multiple balance accounts under an account holder. * - * @param description A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. + * @param description A human-readable description of the balance account, maximum 300 characters. + * You can use this parameter to distinguish between multiple balance accounts under an + * account holder. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -174,9 +211,14 @@ public void setDescription(String description) { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be + * used for storing miscellaneous data as desired. > Note that during an update of metadata, + * the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific + * names and may be used for storing miscellaneous data as desired. > Note that during an + * update of metadata, the omission of existing key-value pairs will result in the deletion of + * those key-value pairs. * @return the current {@code BalanceAccountInfo} instance, allowing for method chaining */ public BalanceAccountInfo metadata(Map metadata) { @@ -193,8 +235,14 @@ public BalanceAccountInfo putMetadataItem(String key, String metadataItem) { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. - * @return metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be + * used for storing miscellaneous data as desired. > Note that during an update of metadata, + * the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * + * @return metadata A set of key and value pairs for general use. The keys do not have specific + * names and may be used for storing miscellaneous data as desired. > Note that during an + * update of metadata, the omission of existing key-value pairs will result in the deletion of + * those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -203,9 +251,14 @@ public Map getMetadata() { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be + * used for storing miscellaneous data as desired. > Note that during an update of metadata, + * the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific + * names and may be used for storing miscellaneous data as desired. > Note that during an + * update of metadata, the omission of existing key-value pairs will result in the deletion of + * those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -215,7 +268,9 @@ public void setMetadata(Map metadata) { /** * The unique identifier of the account of the migrated account holder in the classic integration. - * @return migratedAccountCode The unique identifier of the account of the migrated account holder in the classic integration. + * + * @return migratedAccountCode The unique identifier of the account of the migrated account holder + * in the classic integration. */ @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,21 +278,22 @@ public String getMigratedAccountCode() { return migratedAccountCode; } - /** * platformPaymentConfiguration * - * @param platformPaymentConfiguration + * @param platformPaymentConfiguration * @return the current {@code BalanceAccountInfo} instance, allowing for method chaining */ - public BalanceAccountInfo platformPaymentConfiguration(PlatformPaymentConfiguration platformPaymentConfiguration) { + public BalanceAccountInfo platformPaymentConfiguration( + PlatformPaymentConfiguration platformPaymentConfiguration) { this.platformPaymentConfiguration = platformPaymentConfiguration; return this; } /** * Get platformPaymentConfiguration - * @return platformPaymentConfiguration + * + * @return platformPaymentConfiguration */ @JsonProperty(JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -248,11 +304,12 @@ public PlatformPaymentConfiguration getPlatformPaymentConfiguration() { /** * platformPaymentConfiguration * - * @param platformPaymentConfiguration + * @param platformPaymentConfiguration */ @JsonProperty(JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPlatformPaymentConfiguration(PlatformPaymentConfiguration platformPaymentConfiguration) { + public void setPlatformPaymentConfiguration( + PlatformPaymentConfiguration platformPaymentConfiguration) { this.platformPaymentConfiguration = platformPaymentConfiguration; } @@ -269,6 +326,7 @@ public BalanceAccountInfo reference(String reference) { /** * Your reference for the balance account, maximum 150 characters. + * * @return reference Your reference for the balance account, maximum 150 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -289,9 +347,14 @@ public void setReference(String reference) { } /** - * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time + * zone of the account holder if no time zone is set. For possible values, see the [list of time + * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. + * Defaults to the time zone of the account holder if no time zone is set. For possible + * values, see the [list of time zone + * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * @return the current {@code BalanceAccountInfo} instance, allowing for method chaining */ public BalanceAccountInfo timeZone(String timeZone) { @@ -300,8 +363,14 @@ public BalanceAccountInfo timeZone(String timeZone) { } /** - * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). - * @return timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time + * zone of the account holder if no time zone is set. For possible values, see the [list of time + * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * + * @return timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. + * Defaults to the time zone of the account holder if no time zone is set. For possible + * values, see the [list of time zone + * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -310,9 +379,14 @@ public String getTimeZone() { } /** - * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time + * zone of the account holder if no time zone is set. For possible values, see the [list of time + * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. + * Defaults to the time zone of the account holder if no time zone is set. For possible + * values, see the [list of time zone + * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -320,9 +394,7 @@ public void setTimeZone(String timeZone) { this.timeZone = timeZone; } - /** - * Return true if this BalanceAccountInfo object is equal to o. - */ + /** Return true if this BalanceAccountInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -332,19 +404,28 @@ public boolean equals(Object o) { return false; } BalanceAccountInfo balanceAccountInfo = (BalanceAccountInfo) o; - return Objects.equals(this.accountHolderId, balanceAccountInfo.accountHolderId) && - Objects.equals(this.defaultCurrencyCode, balanceAccountInfo.defaultCurrencyCode) && - Objects.equals(this.description, balanceAccountInfo.description) && - Objects.equals(this.metadata, balanceAccountInfo.metadata) && - Objects.equals(this.migratedAccountCode, balanceAccountInfo.migratedAccountCode) && - Objects.equals(this.platformPaymentConfiguration, balanceAccountInfo.platformPaymentConfiguration) && - Objects.equals(this.reference, balanceAccountInfo.reference) && - Objects.equals(this.timeZone, balanceAccountInfo.timeZone); + return Objects.equals(this.accountHolderId, balanceAccountInfo.accountHolderId) + && Objects.equals(this.defaultCurrencyCode, balanceAccountInfo.defaultCurrencyCode) + && Objects.equals(this.description, balanceAccountInfo.description) + && Objects.equals(this.metadata, balanceAccountInfo.metadata) + && Objects.equals(this.migratedAccountCode, balanceAccountInfo.migratedAccountCode) + && Objects.equals( + this.platformPaymentConfiguration, balanceAccountInfo.platformPaymentConfiguration) + && Objects.equals(this.reference, balanceAccountInfo.reference) + && Objects.equals(this.timeZone, balanceAccountInfo.timeZone); } @Override public int hashCode() { - return Objects.hash(accountHolderId, defaultCurrencyCode, description, metadata, migratedAccountCode, platformPaymentConfiguration, reference, timeZone); + return Objects.hash( + accountHolderId, + defaultCurrencyCode, + description, + metadata, + migratedAccountCode, + platformPaymentConfiguration, + reference, + timeZone); } @Override @@ -352,11 +433,17 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BalanceAccountInfo {\n"); sb.append(" accountHolderId: ").append(toIndentedString(accountHolderId)).append("\n"); - sb.append(" defaultCurrencyCode: ").append(toIndentedString(defaultCurrencyCode)).append("\n"); + sb.append(" defaultCurrencyCode: ") + .append(toIndentedString(defaultCurrencyCode)) + .append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" migratedAccountCode: ").append(toIndentedString(migratedAccountCode)).append("\n"); - sb.append(" platformPaymentConfiguration: ").append(toIndentedString(platformPaymentConfiguration)).append("\n"); + sb.append(" migratedAccountCode: ") + .append(toIndentedString(migratedAccountCode)) + .append("\n"); + sb.append(" platformPaymentConfiguration: ") + .append(toIndentedString(platformPaymentConfiguration)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); sb.append("}"); @@ -364,8 +451,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -374,21 +460,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BalanceAccountInfo given an JSON string * * @param jsonString JSON string * @return An instance of BalanceAccountInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceAccountInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BalanceAccountInfo */ public static BalanceAccountInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceAccountInfo.class); } -/** - * Convert an instance of BalanceAccountInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BalanceAccountInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BalanceAccountUpdateRequest.java b/src/main/java/com/adyen/model/balanceplatform/BalanceAccountUpdateRequest.java index 74303eba8..5cd3126b2 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalanceAccountUpdateRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalanceAccountUpdateRequest.java @@ -2,34 +2,28 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.PlatformPaymentConfiguration; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * BalanceAccountUpdateRequest - */ +/** BalanceAccountUpdateRequest */ @JsonPropertyOrder({ BalanceAccountUpdateRequest.JSON_PROPERTY_ACCOUNT_HOLDER_ID, BalanceAccountUpdateRequest.JSON_PROPERTY_DESCRIPTION, @@ -39,7 +33,6 @@ BalanceAccountUpdateRequest.JSON_PROPERTY_STATUS, BalanceAccountUpdateRequest.JSON_PROPERTY_TIME_ZONE }) - public class BalanceAccountUpdateRequest { public static final String JSON_PROPERTY_ACCOUNT_HOLDER_ID = "accountHolderId"; private String accountHolderId; @@ -50,17 +43,19 @@ public class BalanceAccountUpdateRequest { public static final String JSON_PROPERTY_METADATA = "metadata"; private Map metadata; - public static final String JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION = "platformPaymentConfiguration"; + public static final String JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION = + "platformPaymentConfiguration"; private PlatformPaymentConfiguration platformPaymentConfiguration; public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; /** - * The status of the balance account. Payment instruments linked to the balance account can only be used if the balance account status is **active**. Possible values: **active**, **closed**, **suspended**. + * The status of the balance account. Payment instruments linked to the balance account can only + * be used if the balance account status is **active**. Possible values: **active**, **closed**, + * **suspended**. */ public enum StatusEnum { - ACTIVE(String.valueOf("active")), CLOSED(String.valueOf("closed")), @@ -74,7 +69,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -95,7 +90,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -106,13 +105,16 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_TIME_ZONE = "timeZone"; private String timeZone; - public BalanceAccountUpdateRequest() { - } + public BalanceAccountUpdateRequest() {} /** - * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. + * The unique identifier of the [account + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) + * associated with the balance account. * - * @param accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. + * @param accountHolderId The unique identifier of the [account + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) + * associated with the balance account. * @return the current {@code BalanceAccountUpdateRequest} instance, allowing for method chaining */ public BalanceAccountUpdateRequest accountHolderId(String accountHolderId) { @@ -121,8 +123,13 @@ public BalanceAccountUpdateRequest accountHolderId(String accountHolderId) { } /** - * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. - * @return accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. + * The unique identifier of the [account + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) + * associated with the balance account. + * + * @return accountHolderId The unique identifier of the [account + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) + * associated with the balance account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -131,9 +138,13 @@ public String getAccountHolderId() { } /** - * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. + * The unique identifier of the [account + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) + * associated with the balance account. * - * @param accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. + * @param accountHolderId The unique identifier of the [account + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) + * associated with the balance account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +153,11 @@ public void setAccountHolderId(String accountHolderId) { } /** - * A human-readable description of the balance account. You can use this parameter to distinguish between multiple balance accounts under an account holder. + * A human-readable description of the balance account. You can use this parameter to distinguish + * between multiple balance accounts under an account holder. * - * @param description A human-readable description of the balance account. You can use this parameter to distinguish between multiple balance accounts under an account holder. + * @param description A human-readable description of the balance account. You can use this + * parameter to distinguish between multiple balance accounts under an account holder. * @return the current {@code BalanceAccountUpdateRequest} instance, allowing for method chaining */ public BalanceAccountUpdateRequest description(String description) { @@ -153,8 +166,11 @@ public BalanceAccountUpdateRequest description(String description) { } /** - * A human-readable description of the balance account. You can use this parameter to distinguish between multiple balance accounts under an account holder. - * @return description A human-readable description of the balance account. You can use this parameter to distinguish between multiple balance accounts under an account holder. + * A human-readable description of the balance account. You can use this parameter to distinguish + * between multiple balance accounts under an account holder. + * + * @return description A human-readable description of the balance account. You can use this + * parameter to distinguish between multiple balance accounts under an account holder. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,9 +179,11 @@ public String getDescription() { } /** - * A human-readable description of the balance account. You can use this parameter to distinguish between multiple balance accounts under an account holder. + * A human-readable description of the balance account. You can use this parameter to distinguish + * between multiple balance accounts under an account holder. * - * @param description A human-readable description of the balance account. You can use this parameter to distinguish between multiple balance accounts under an account holder. + * @param description A human-readable description of the balance account. You can use this + * parameter to distinguish between multiple balance accounts under an account holder. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -174,9 +192,14 @@ public void setDescription(String description) { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be + * used for storing miscellaneous data as desired. > Note that during an update of metadata, + * the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific + * names and may be used for storing miscellaneous data as desired. > Note that during an + * update of metadata, the omission of existing key-value pairs will result in the deletion of + * those key-value pairs. * @return the current {@code BalanceAccountUpdateRequest} instance, allowing for method chaining */ public BalanceAccountUpdateRequest metadata(Map metadata) { @@ -193,8 +216,14 @@ public BalanceAccountUpdateRequest putMetadataItem(String key, String metadataIt } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. - * @return metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be + * used for storing miscellaneous data as desired. > Note that during an update of metadata, + * the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * + * @return metadata A set of key and value pairs for general use. The keys do not have specific + * names and may be used for storing miscellaneous data as desired. > Note that during an + * update of metadata, the omission of existing key-value pairs will result in the deletion of + * those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -203,9 +232,14 @@ public Map getMetadata() { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be + * used for storing miscellaneous data as desired. > Note that during an update of metadata, + * the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific + * names and may be used for storing miscellaneous data as desired. > Note that during an + * update of metadata, the omission of existing key-value pairs will result in the deletion of + * those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -216,17 +250,19 @@ public void setMetadata(Map metadata) { /** * platformPaymentConfiguration * - * @param platformPaymentConfiguration + * @param platformPaymentConfiguration * @return the current {@code BalanceAccountUpdateRequest} instance, allowing for method chaining */ - public BalanceAccountUpdateRequest platformPaymentConfiguration(PlatformPaymentConfiguration platformPaymentConfiguration) { + public BalanceAccountUpdateRequest platformPaymentConfiguration( + PlatformPaymentConfiguration platformPaymentConfiguration) { this.platformPaymentConfiguration = platformPaymentConfiguration; return this; } /** * Get platformPaymentConfiguration - * @return platformPaymentConfiguration + * + * @return platformPaymentConfiguration */ @JsonProperty(JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,11 +273,12 @@ public PlatformPaymentConfiguration getPlatformPaymentConfiguration() { /** * platformPaymentConfiguration * - * @param platformPaymentConfiguration + * @param platformPaymentConfiguration */ @JsonProperty(JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPlatformPaymentConfiguration(PlatformPaymentConfiguration platformPaymentConfiguration) { + public void setPlatformPaymentConfiguration( + PlatformPaymentConfiguration platformPaymentConfiguration) { this.platformPaymentConfiguration = platformPaymentConfiguration; } @@ -258,6 +295,7 @@ public BalanceAccountUpdateRequest reference(String reference) { /** * Your reference to the balance account. + * * @return reference Your reference to the balance account. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -278,9 +316,13 @@ public void setReference(String reference) { } /** - * The status of the balance account. Payment instruments linked to the balance account can only be used if the balance account status is **active**. Possible values: **active**, **closed**, **suspended**. + * The status of the balance account. Payment instruments linked to the balance account can only + * be used if the balance account status is **active**. Possible values: **active**, **closed**, + * **suspended**. * - * @param status The status of the balance account. Payment instruments linked to the balance account can only be used if the balance account status is **active**. Possible values: **active**, **closed**, **suspended**. + * @param status The status of the balance account. Payment instruments linked to the balance + * account can only be used if the balance account status is **active**. Possible values: + * **active**, **closed**, **suspended**. * @return the current {@code BalanceAccountUpdateRequest} instance, allowing for method chaining */ public BalanceAccountUpdateRequest status(StatusEnum status) { @@ -289,8 +331,13 @@ public BalanceAccountUpdateRequest status(StatusEnum status) { } /** - * The status of the balance account. Payment instruments linked to the balance account can only be used if the balance account status is **active**. Possible values: **active**, **closed**, **suspended**. - * @return status The status of the balance account. Payment instruments linked to the balance account can only be used if the balance account status is **active**. Possible values: **active**, **closed**, **suspended**. + * The status of the balance account. Payment instruments linked to the balance account can only + * be used if the balance account status is **active**. Possible values: **active**, **closed**, + * **suspended**. + * + * @return status The status of the balance account. Payment instruments linked to the balance + * account can only be used if the balance account status is **active**. Possible values: + * **active**, **closed**, **suspended**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -299,9 +346,13 @@ public StatusEnum getStatus() { } /** - * The status of the balance account. Payment instruments linked to the balance account can only be used if the balance account status is **active**. Possible values: **active**, **closed**, **suspended**. + * The status of the balance account. Payment instruments linked to the balance account can only + * be used if the balance account status is **active**. Possible values: **active**, **closed**, + * **suspended**. * - * @param status The status of the balance account. Payment instruments linked to the balance account can only be used if the balance account status is **active**. Possible values: **active**, **closed**, **suspended**. + * @param status The status of the balance account. Payment instruments linked to the balance + * account can only be used if the balance account status is **active**. Possible values: + * **active**, **closed**, **suspended**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -310,9 +361,14 @@ public void setStatus(StatusEnum status) { } /** - * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time + * zone of the account holder if no time zone is set. For possible values, see the [list of time + * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. + * Defaults to the time zone of the account holder if no time zone is set. For possible + * values, see the [list of time zone + * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * @return the current {@code BalanceAccountUpdateRequest} instance, allowing for method chaining */ public BalanceAccountUpdateRequest timeZone(String timeZone) { @@ -321,8 +377,14 @@ public BalanceAccountUpdateRequest timeZone(String timeZone) { } /** - * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). - * @return timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time + * zone of the account holder if no time zone is set. For possible values, see the [list of time + * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * + * @return timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. + * Defaults to the time zone of the account holder if no time zone is set. For possible + * values, see the [list of time zone + * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -331,9 +393,14 @@ public String getTimeZone() { } /** - * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time + * zone of the account holder if no time zone is set. For possible values, see the [list of time + * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. + * Defaults to the time zone of the account holder if no time zone is set. For possible + * values, see the [list of time zone + * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -341,9 +408,7 @@ public void setTimeZone(String timeZone) { this.timeZone = timeZone; } - /** - * Return true if this BalanceAccountUpdateRequest object is equal to o. - */ + /** Return true if this BalanceAccountUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -353,18 +418,27 @@ public boolean equals(Object o) { return false; } BalanceAccountUpdateRequest balanceAccountUpdateRequest = (BalanceAccountUpdateRequest) o; - return Objects.equals(this.accountHolderId, balanceAccountUpdateRequest.accountHolderId) && - Objects.equals(this.description, balanceAccountUpdateRequest.description) && - Objects.equals(this.metadata, balanceAccountUpdateRequest.metadata) && - Objects.equals(this.platformPaymentConfiguration, balanceAccountUpdateRequest.platformPaymentConfiguration) && - Objects.equals(this.reference, balanceAccountUpdateRequest.reference) && - Objects.equals(this.status, balanceAccountUpdateRequest.status) && - Objects.equals(this.timeZone, balanceAccountUpdateRequest.timeZone); + return Objects.equals(this.accountHolderId, balanceAccountUpdateRequest.accountHolderId) + && Objects.equals(this.description, balanceAccountUpdateRequest.description) + && Objects.equals(this.metadata, balanceAccountUpdateRequest.metadata) + && Objects.equals( + this.platformPaymentConfiguration, + balanceAccountUpdateRequest.platformPaymentConfiguration) + && Objects.equals(this.reference, balanceAccountUpdateRequest.reference) + && Objects.equals(this.status, balanceAccountUpdateRequest.status) + && Objects.equals(this.timeZone, balanceAccountUpdateRequest.timeZone); } @Override public int hashCode() { - return Objects.hash(accountHolderId, description, metadata, platformPaymentConfiguration, reference, status, timeZone); + return Objects.hash( + accountHolderId, + description, + metadata, + platformPaymentConfiguration, + reference, + status, + timeZone); } @Override @@ -374,7 +448,9 @@ public String toString() { sb.append(" accountHolderId: ").append(toIndentedString(accountHolderId)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" platformPaymentConfiguration: ").append(toIndentedString(platformPaymentConfiguration)).append("\n"); + sb.append(" platformPaymentConfiguration: ") + .append(toIndentedString(platformPaymentConfiguration)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); @@ -383,8 +459,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -393,21 +468,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BalanceAccountUpdateRequest given an JSON string * * @param jsonString JSON string * @return An instance of BalanceAccountUpdateRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceAccountUpdateRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BalanceAccountUpdateRequest */ - public static BalanceAccountUpdateRequest fromJson(String jsonString) throws JsonProcessingException { + public static BalanceAccountUpdateRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceAccountUpdateRequest.class); } -/** - * Convert an instance of BalanceAccountUpdateRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BalanceAccountUpdateRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BalancePlatform.java b/src/main/java/com/adyen/model/balanceplatform/BalancePlatform.java index 2a2ea5932..af312dddc 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalancePlatform.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalancePlatform.java @@ -2,37 +2,27 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * BalancePlatform - */ +/** BalancePlatform */ @JsonPropertyOrder({ BalancePlatform.JSON_PROPERTY_DESCRIPTION, BalancePlatform.JSON_PROPERTY_ID, BalancePlatform.JSON_PROPERTY_STATUS }) - public class BalancePlatform { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -43,8 +33,7 @@ public class BalancePlatform { public static final String JSON_PROPERTY_STATUS = "status"; private String status; - public BalancePlatform() { - } + public BalancePlatform() {} /** * Your description of the balance platform. @@ -59,6 +48,7 @@ public BalancePlatform description(String description) { /** * Your description of the balance platform. + * * @return description Your description of the balance platform. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -91,6 +81,7 @@ public BalancePlatform id(String id) { /** * The unique identifier of the balance platform. + * * @return id The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_ID) @@ -111,9 +102,11 @@ public void setId(String id) { } /** - * The status of the balance platform. Possible values: **Active**, **Inactive**, **Closed**, **Suspended**. + * The status of the balance platform. Possible values: **Active**, **Inactive**, **Closed**, + * **Suspended**. * - * @param status The status of the balance platform. Possible values: **Active**, **Inactive**, **Closed**, **Suspended**. + * @param status The status of the balance platform. Possible values: **Active**, **Inactive**, + * **Closed**, **Suspended**. * @return the current {@code BalancePlatform} instance, allowing for method chaining */ public BalancePlatform status(String status) { @@ -122,8 +115,11 @@ public BalancePlatform status(String status) { } /** - * The status of the balance platform. Possible values: **Active**, **Inactive**, **Closed**, **Suspended**. - * @return status The status of the balance platform. Possible values: **Active**, **Inactive**, **Closed**, **Suspended**. + * The status of the balance platform. Possible values: **Active**, **Inactive**, **Closed**, + * **Suspended**. + * + * @return status The status of the balance platform. Possible values: **Active**, **Inactive**, + * **Closed**, **Suspended**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,9 +128,11 @@ public String getStatus() { } /** - * The status of the balance platform. Possible values: **Active**, **Inactive**, **Closed**, **Suspended**. + * The status of the balance platform. Possible values: **Active**, **Inactive**, **Closed**, + * **Suspended**. * - * @param status The status of the balance platform. Possible values: **Active**, **Inactive**, **Closed**, **Suspended**. + * @param status The status of the balance platform. Possible values: **Active**, **Inactive**, + * **Closed**, **Suspended**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +140,7 @@ public void setStatus(String status) { this.status = status; } - /** - * Return true if this BalancePlatform object is equal to o. - */ + /** Return true if this BalancePlatform object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +150,9 @@ public boolean equals(Object o) { return false; } BalancePlatform balancePlatform = (BalancePlatform) o; - return Objects.equals(this.description, balancePlatform.description) && - Objects.equals(this.id, balancePlatform.id) && - Objects.equals(this.status, balancePlatform.status); + return Objects.equals(this.description, balancePlatform.description) + && Objects.equals(this.id, balancePlatform.id) + && Objects.equals(this.status, balancePlatform.status); } @Override @@ -176,8 +172,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +181,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BalancePlatform given an JSON string * * @param jsonString JSON string @@ -196,11 +191,12 @@ private String toIndentedString(Object o) { public static BalancePlatform fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalancePlatform.class); } -/** - * Convert an instance of BalancePlatform to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BalancePlatform to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BalanceSweepConfigurationsResponse.java b/src/main/java/com/adyen/model/balanceplatform/BalanceSweepConfigurationsResponse.java index 7b8fa9f21..625bfc41b 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalanceSweepConfigurationsResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalanceSweepConfigurationsResponse.java @@ -2,40 +2,29 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.SweepConfigurationV2; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * BalanceSweepConfigurationsResponse - */ +/** BalanceSweepConfigurationsResponse */ @JsonPropertyOrder({ BalanceSweepConfigurationsResponse.JSON_PROPERTY_HAS_NEXT, BalanceSweepConfigurationsResponse.JSON_PROPERTY_HAS_PREVIOUS, BalanceSweepConfigurationsResponse.JSON_PROPERTY_SWEEPS }) - public class BalanceSweepConfigurationsResponse { public static final String JSON_PROPERTY_HAS_NEXT = "hasNext"; private Boolean hasNext; @@ -46,14 +35,14 @@ public class BalanceSweepConfigurationsResponse { public static final String JSON_PROPERTY_SWEEPS = "sweeps"; private List sweeps; - public BalanceSweepConfigurationsResponse() { - } + public BalanceSweepConfigurationsResponse() {} /** * Indicates whether there are more items on the next page. * * @param hasNext Indicates whether there are more items on the next page. - * @return the current {@code BalanceSweepConfigurationsResponse} instance, allowing for method chaining + * @return the current {@code BalanceSweepConfigurationsResponse} instance, allowing for method + * chaining */ public BalanceSweepConfigurationsResponse hasNext(Boolean hasNext) { this.hasNext = hasNext; @@ -62,6 +51,7 @@ public BalanceSweepConfigurationsResponse hasNext(Boolean hasNext) { /** * Indicates whether there are more items on the next page. + * * @return hasNext Indicates whether there are more items on the next page. */ @JsonProperty(JSON_PROPERTY_HAS_NEXT) @@ -85,7 +75,8 @@ public void setHasNext(Boolean hasNext) { * Indicates whether there are more items on the previous page. * * @param hasPrevious Indicates whether there are more items on the previous page. - * @return the current {@code BalanceSweepConfigurationsResponse} instance, allowing for method chaining + * @return the current {@code BalanceSweepConfigurationsResponse} instance, allowing for method + * chaining */ public BalanceSweepConfigurationsResponse hasPrevious(Boolean hasPrevious) { this.hasPrevious = hasPrevious; @@ -94,6 +85,7 @@ public BalanceSweepConfigurationsResponse hasPrevious(Boolean hasPrevious) { /** * Indicates whether there are more items on the previous page. + * * @return hasPrevious Indicates whether there are more items on the previous page. */ @JsonProperty(JSON_PROPERTY_HAS_PREVIOUS) @@ -117,7 +109,8 @@ public void setHasPrevious(Boolean hasPrevious) { * List of sweeps associated with the balance account. * * @param sweeps List of sweeps associated with the balance account. - * @return the current {@code BalanceSweepConfigurationsResponse} instance, allowing for method chaining + * @return the current {@code BalanceSweepConfigurationsResponse} instance, allowing for method + * chaining */ public BalanceSweepConfigurationsResponse sweeps(List sweeps) { this.sweeps = sweeps; @@ -134,6 +127,7 @@ public BalanceSweepConfigurationsResponse addSweepsItem(SweepConfigurationV2 swe /** * List of sweeps associated with the balance account. + * * @return sweeps List of sweeps associated with the balance account. */ @JsonProperty(JSON_PROPERTY_SWEEPS) @@ -153,9 +147,7 @@ public void setSweeps(List sweeps) { this.sweeps = sweeps; } - /** - * Return true if this BalanceSweepConfigurationsResponse object is equal to o. - */ + /** Return true if this BalanceSweepConfigurationsResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -164,10 +156,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - BalanceSweepConfigurationsResponse balanceSweepConfigurationsResponse = (BalanceSweepConfigurationsResponse) o; - return Objects.equals(this.hasNext, balanceSweepConfigurationsResponse.hasNext) && - Objects.equals(this.hasPrevious, balanceSweepConfigurationsResponse.hasPrevious) && - Objects.equals(this.sweeps, balanceSweepConfigurationsResponse.sweeps); + BalanceSweepConfigurationsResponse balanceSweepConfigurationsResponse = + (BalanceSweepConfigurationsResponse) o; + return Objects.equals(this.hasNext, balanceSweepConfigurationsResponse.hasNext) + && Objects.equals(this.hasPrevious, balanceSweepConfigurationsResponse.hasPrevious) + && Objects.equals(this.sweeps, balanceSweepConfigurationsResponse.sweeps); } @Override @@ -187,8 +180,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -197,21 +189,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BalanceSweepConfigurationsResponse given an JSON string * * @param jsonString JSON string * @return An instance of BalanceSweepConfigurationsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceSweepConfigurationsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BalanceSweepConfigurationsResponse */ - public static BalanceSweepConfigurationsResponse fromJson(String jsonString) throws JsonProcessingException { + public static BalanceSweepConfigurationsResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceSweepConfigurationsResponse.class); } -/** - * Convert an instance of BalanceSweepConfigurationsResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BalanceSweepConfigurationsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSetting.java b/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSetting.java index fb795016f..b115c25ff 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSetting.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSetting.java @@ -2,61 +2,50 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.Condition; -import com.adyen.model.balanceplatform.SettingType; -import com.adyen.model.balanceplatform.Target; -import com.adyen.model.balanceplatform.WebhookSetting; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - - -/** - * BalanceWebhookSetting - */ -@JsonPropertyOrder({ - BalanceWebhookSetting.JSON_PROPERTY_CONDITIONS -}) +/** BalanceWebhookSetting */ +@JsonPropertyOrder({BalanceWebhookSetting.JSON_PROPERTY_CONDITIONS}) @JsonIgnoreProperties( - value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization - allowSetters = true // allows the type to be set during deserialization -) -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) - + value = + "type", // ignore manually set type, it will be automatically generated by Jackson during + // serialization + allowSetters = true // allows the type to be set during deserialization + ) +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.PROPERTY, + property = "type", + visible = true) public class BalanceWebhookSetting extends WebhookSetting { public static final String JSON_PROPERTY_CONDITIONS = "conditions"; private List conditions; - public BalanceWebhookSetting() { - } + public BalanceWebhookSetting() {} /** - * The list of settings and criteria for triggering the [balance webhook](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balanceAccount.balance.updated). + * The list of settings and criteria for triggering the [balance + * webhook](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balanceAccount.balance.updated). * - * @param conditions The list of settings and criteria for triggering the [balance webhook](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balanceAccount.balance.updated). + * @param conditions The list of settings and criteria for triggering the [balance + * webhook](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balanceAccount.balance.updated). * @return the current {@code BalanceWebhookSetting} instance, allowing for method chaining */ public BalanceWebhookSetting conditions(List conditions) { @@ -73,8 +62,11 @@ public BalanceWebhookSetting addConditionsItem(Condition conditionsItem) { } /** - * The list of settings and criteria for triggering the [balance webhook](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balanceAccount.balance.updated). - * @return conditions The list of settings and criteria for triggering the [balance webhook](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balanceAccount.balance.updated). + * The list of settings and criteria for triggering the [balance + * webhook](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balanceAccount.balance.updated). + * + * @return conditions The list of settings and criteria for triggering the [balance + * webhook](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balanceAccount.balance.updated). */ @JsonProperty(JSON_PROPERTY_CONDITIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,9 +75,11 @@ public List getConditions() { } /** - * The list of settings and criteria for triggering the [balance webhook](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balanceAccount.balance.updated). + * The list of settings and criteria for triggering the [balance + * webhook](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balanceAccount.balance.updated). * - * @param conditions The list of settings and criteria for triggering the [balance webhook](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balanceAccount.balance.updated). + * @param conditions The list of settings and criteria for triggering the [balance + * webhook](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balanceAccount.balance.updated). */ @JsonProperty(JSON_PROPERTY_CONDITIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -93,9 +87,7 @@ public void setConditions(List conditions) { this.conditions = conditions; } - /** - * Return true if this BalanceWebhookSetting object is equal to o. - */ + /** Return true if this BalanceWebhookSetting object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -105,8 +97,7 @@ public boolean equals(Object o) { return false; } BalanceWebhookSetting balanceWebhookSetting = (BalanceWebhookSetting) o; - return Objects.equals(this.conditions, balanceWebhookSetting.conditions) && - super.equals(o); + return Objects.equals(this.conditions, balanceWebhookSetting.conditions) && super.equals(o); } @Override @@ -125,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -141,21 +131,24 @@ private String toIndentedString(Object o) { mappings.put("BalanceWebhookSetting", BalanceWebhookSetting.class); JSON.registerDiscriminator(BalanceWebhookSetting.class, "type", mappings); } -/** + + /** * Create an instance of BalanceWebhookSetting given an JSON string * * @param jsonString JSON string * @return An instance of BalanceWebhookSetting - * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceWebhookSetting + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BalanceWebhookSetting */ public static BalanceWebhookSetting fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceWebhookSetting.class); } -/** - * Convert an instance of BalanceWebhookSetting to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BalanceWebhookSetting to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSettingInfo.java b/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSettingInfo.java index 0c948f651..5f084f64c 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSettingInfo.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSettingInfo.java @@ -2,35 +2,28 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.Condition; -import com.adyen.model.balanceplatform.Target; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * BalanceWebhookSettingInfo - */ +/** BalanceWebhookSettingInfo */ @JsonPropertyOrder({ BalanceWebhookSettingInfo.JSON_PROPERTY_CONDITIONS, BalanceWebhookSettingInfo.JSON_PROPERTY_CURRENCY, @@ -38,7 +31,6 @@ BalanceWebhookSettingInfo.JSON_PROPERTY_TARGET, BalanceWebhookSettingInfo.JSON_PROPERTY_TYPE }) - public class BalanceWebhookSettingInfo { public static final String JSON_PROPERTY_CONDITIONS = "conditions"; private List conditions; @@ -47,10 +39,11 @@ public class BalanceWebhookSettingInfo { private String currency; /** - * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met. + * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook + * if any of the conditions in this setting are met. * **inactive**: You do not receive a balance + * webhook even if the conditions in this settings are met. */ public enum StatusEnum { - ACTIVE(String.valueOf("active")), INACTIVE(String.valueOf("inactive")); @@ -60,7 +53,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -81,7 +74,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -92,11 +89,8 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_TARGET = "target"; private Target target; - /** - * The type of the webhook you are configuring. Set to **balance**. - */ + /** The type of the webhook you are configuring. Set to **balance**. */ public enum TypeEnum { - BALANCE(String.valueOf("balance")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -104,7 +98,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -125,7 +119,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -133,13 +131,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public BalanceWebhookSettingInfo() { - } + public BalanceWebhookSettingInfo() {} /** * The array of conditions a balance change must meet for Adyen to send the webhook. * - * @param conditions The array of conditions a balance change must meet for Adyen to send the webhook. + * @param conditions The array of conditions a balance change must meet for Adyen to send the + * webhook. * @return the current {@code BalanceWebhookSettingInfo} instance, allowing for method chaining */ public BalanceWebhookSettingInfo conditions(List conditions) { @@ -157,7 +155,9 @@ public BalanceWebhookSettingInfo addConditionsItem(Condition conditionsItem) { /** * The array of conditions a balance change must meet for Adyen to send the webhook. - * @return conditions The array of conditions a balance change must meet for Adyen to send the webhook. + * + * @return conditions The array of conditions a balance change must meet for Adyen to send the + * webhook. */ @JsonProperty(JSON_PROPERTY_CONDITIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,7 +168,8 @@ public List getConditions() { /** * The array of conditions a balance change must meet for Adyen to send the webhook. * - * @param conditions The array of conditions a balance change must meet for Adyen to send the webhook. + * @param conditions The array of conditions a balance change must meet for Adyen to send the + * webhook. */ @JsonProperty(JSON_PROPERTY_CONDITIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,9 +178,11 @@ public void setConditions(List conditions) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. * @return the current {@code BalanceWebhookSettingInfo} instance, allowing for method chaining */ public BalanceWebhookSettingInfo currency(String currency) { @@ -188,8 +191,11 @@ public BalanceWebhookSettingInfo currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,9 +204,11 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -209,9 +217,13 @@ public void setCurrency(String currency) { } /** - * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met. + * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook + * if any of the conditions in this setting are met. * **inactive**: You do not receive a balance + * webhook even if the conditions in this settings are met. * - * @param status The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met. + * @param status The status of the webhook setting. Possible values: * **active**: You receive a + * balance webhook if any of the conditions in this setting are met. * **inactive**: You do + * not receive a balance webhook even if the conditions in this settings are met. * @return the current {@code BalanceWebhookSettingInfo} instance, allowing for method chaining */ public BalanceWebhookSettingInfo status(StatusEnum status) { @@ -220,8 +232,13 @@ public BalanceWebhookSettingInfo status(StatusEnum status) { } /** - * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met. - * @return status The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met. + * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook + * if any of the conditions in this setting are met. * **inactive**: You do not receive a balance + * webhook even if the conditions in this settings are met. + * + * @return status The status of the webhook setting. Possible values: * **active**: You receive a + * balance webhook if any of the conditions in this setting are met. * **inactive**: You do + * not receive a balance webhook even if the conditions in this settings are met. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -230,9 +247,13 @@ public StatusEnum getStatus() { } /** - * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met. + * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook + * if any of the conditions in this setting are met. * **inactive**: You do not receive a balance + * webhook even if the conditions in this settings are met. * - * @param status The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met. + * @param status The status of the webhook setting. Possible values: * **active**: You receive a + * balance webhook if any of the conditions in this setting are met. * **inactive**: You do + * not receive a balance webhook even if the conditions in this settings are met. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -243,7 +264,7 @@ public void setStatus(StatusEnum status) { /** * target * - * @param target + * @param target * @return the current {@code BalanceWebhookSettingInfo} instance, allowing for method chaining */ public BalanceWebhookSettingInfo target(Target target) { @@ -253,7 +274,8 @@ public BalanceWebhookSettingInfo target(Target target) { /** * Get target - * @return target + * + * @return target */ @JsonProperty(JSON_PROPERTY_TARGET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -264,7 +286,7 @@ public Target getTarget() { /** * target * - * @param target + * @param target */ @JsonProperty(JSON_PROPERTY_TARGET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -285,6 +307,7 @@ public BalanceWebhookSettingInfo type(TypeEnum type) { /** * The type of the webhook you are configuring. Set to **balance**. + * * @return type The type of the webhook you are configuring. Set to **balance**. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -304,9 +327,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this BalanceWebhookSettingInfo object is equal to o. - */ + /** Return true if this BalanceWebhookSettingInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -316,11 +337,11 @@ public boolean equals(Object o) { return false; } BalanceWebhookSettingInfo balanceWebhookSettingInfo = (BalanceWebhookSettingInfo) o; - return Objects.equals(this.conditions, balanceWebhookSettingInfo.conditions) && - Objects.equals(this.currency, balanceWebhookSettingInfo.currency) && - Objects.equals(this.status, balanceWebhookSettingInfo.status) && - Objects.equals(this.target, balanceWebhookSettingInfo.target) && - Objects.equals(this.type, balanceWebhookSettingInfo.type); + return Objects.equals(this.conditions, balanceWebhookSettingInfo.conditions) + && Objects.equals(this.currency, balanceWebhookSettingInfo.currency) + && Objects.equals(this.status, balanceWebhookSettingInfo.status) + && Objects.equals(this.target, balanceWebhookSettingInfo.target) + && Objects.equals(this.type, balanceWebhookSettingInfo.type); } @Override @@ -342,8 +363,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -352,21 +372,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BalanceWebhookSettingInfo given an JSON string * * @param jsonString JSON string * @return An instance of BalanceWebhookSettingInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceWebhookSettingInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BalanceWebhookSettingInfo */ - public static BalanceWebhookSettingInfo fromJson(String jsonString) throws JsonProcessingException { + public static BalanceWebhookSettingInfo fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceWebhookSettingInfo.class); } -/** - * Convert an instance of BalanceWebhookSettingInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BalanceWebhookSettingInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSettingInfoUpdate.java b/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSettingInfoUpdate.java index 724a6ba29..dd077c2f3 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSettingInfoUpdate.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSettingInfoUpdate.java @@ -2,35 +2,28 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.Condition; -import com.adyen.model.balanceplatform.TargetUpdate; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * BalanceWebhookSettingInfoUpdate - */ +/** BalanceWebhookSettingInfoUpdate */ @JsonPropertyOrder({ BalanceWebhookSettingInfoUpdate.JSON_PROPERTY_CONDITIONS, BalanceWebhookSettingInfoUpdate.JSON_PROPERTY_CURRENCY, @@ -38,7 +31,6 @@ BalanceWebhookSettingInfoUpdate.JSON_PROPERTY_TARGET, BalanceWebhookSettingInfoUpdate.JSON_PROPERTY_TYPE }) - public class BalanceWebhookSettingInfoUpdate { public static final String JSON_PROPERTY_CONDITIONS = "conditions"; private List conditions; @@ -47,10 +39,11 @@ public class BalanceWebhookSettingInfoUpdate { private String currency; /** - * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met. + * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook + * if any of the conditions in this setting are met. * **inactive**: You do not receive a balance + * webhook even if the conditions in this settings are met. */ public enum StatusEnum { - ACTIVE(String.valueOf("active")), INACTIVE(String.valueOf("inactive")); @@ -60,7 +53,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -81,7 +74,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -92,11 +89,8 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_TARGET = "target"; private TargetUpdate target; - /** - * The type of the webhook you are configuring. Set to **balance**. - */ + /** The type of the webhook you are configuring. Set to **balance**. */ public enum TypeEnum { - BALANCE(String.valueOf("balance")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -104,7 +98,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -125,7 +119,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -133,14 +131,15 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public BalanceWebhookSettingInfoUpdate() { - } + public BalanceWebhookSettingInfoUpdate() {} /** * The array of conditions a balance change must meet for Adyen to send the webhook. * - * @param conditions The array of conditions a balance change must meet for Adyen to send the webhook. - * @return the current {@code BalanceWebhookSettingInfoUpdate} instance, allowing for method chaining + * @param conditions The array of conditions a balance change must meet for Adyen to send the + * webhook. + * @return the current {@code BalanceWebhookSettingInfoUpdate} instance, allowing for method + * chaining */ public BalanceWebhookSettingInfoUpdate conditions(List conditions) { this.conditions = conditions; @@ -157,7 +156,9 @@ public BalanceWebhookSettingInfoUpdate addConditionsItem(Condition conditionsIte /** * The array of conditions a balance change must meet for Adyen to send the webhook. - * @return conditions The array of conditions a balance change must meet for Adyen to send the webhook. + * + * @return conditions The array of conditions a balance change must meet for Adyen to send the + * webhook. */ @JsonProperty(JSON_PROPERTY_CONDITIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,7 +169,8 @@ public List getConditions() { /** * The array of conditions a balance change must meet for Adyen to send the webhook. * - * @param conditions The array of conditions a balance change must meet for Adyen to send the webhook. + * @param conditions The array of conditions a balance change must meet for Adyen to send the + * webhook. */ @JsonProperty(JSON_PROPERTY_CONDITIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,10 +179,13 @@ public void setConditions(List conditions) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. - * @return the current {@code BalanceWebhookSettingInfoUpdate} instance, allowing for method chaining + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * @return the current {@code BalanceWebhookSettingInfoUpdate} instance, allowing for method + * chaining */ public BalanceWebhookSettingInfoUpdate currency(String currency) { this.currency = currency; @@ -188,8 +193,11 @@ public BalanceWebhookSettingInfoUpdate currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,9 +206,11 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -209,10 +219,15 @@ public void setCurrency(String currency) { } /** - * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met. + * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook + * if any of the conditions in this setting are met. * **inactive**: You do not receive a balance + * webhook even if the conditions in this settings are met. * - * @param status The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met. - * @return the current {@code BalanceWebhookSettingInfoUpdate} instance, allowing for method chaining + * @param status The status of the webhook setting. Possible values: * **active**: You receive a + * balance webhook if any of the conditions in this setting are met. * **inactive**: You do + * not receive a balance webhook even if the conditions in this settings are met. + * @return the current {@code BalanceWebhookSettingInfoUpdate} instance, allowing for method + * chaining */ public BalanceWebhookSettingInfoUpdate status(StatusEnum status) { this.status = status; @@ -220,8 +235,13 @@ public BalanceWebhookSettingInfoUpdate status(StatusEnum status) { } /** - * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met. - * @return status The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met. + * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook + * if any of the conditions in this setting are met. * **inactive**: You do not receive a balance + * webhook even if the conditions in this settings are met. + * + * @return status The status of the webhook setting. Possible values: * **active**: You receive a + * balance webhook if any of the conditions in this setting are met. * **inactive**: You do + * not receive a balance webhook even if the conditions in this settings are met. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -230,9 +250,13 @@ public StatusEnum getStatus() { } /** - * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met. + * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook + * if any of the conditions in this setting are met. * **inactive**: You do not receive a balance + * webhook even if the conditions in this settings are met. * - * @param status The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met. + * @param status The status of the webhook setting. Possible values: * **active**: You receive a + * balance webhook if any of the conditions in this setting are met. * **inactive**: You do + * not receive a balance webhook even if the conditions in this settings are met. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -243,8 +267,9 @@ public void setStatus(StatusEnum status) { /** * target * - * @param target - * @return the current {@code BalanceWebhookSettingInfoUpdate} instance, allowing for method chaining + * @param target + * @return the current {@code BalanceWebhookSettingInfoUpdate} instance, allowing for method + * chaining */ public BalanceWebhookSettingInfoUpdate target(TargetUpdate target) { this.target = target; @@ -253,7 +278,8 @@ public BalanceWebhookSettingInfoUpdate target(TargetUpdate target) { /** * Get target - * @return target + * + * @return target */ @JsonProperty(JSON_PROPERTY_TARGET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -264,7 +290,7 @@ public TargetUpdate getTarget() { /** * target * - * @param target + * @param target */ @JsonProperty(JSON_PROPERTY_TARGET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -276,7 +302,8 @@ public void setTarget(TargetUpdate target) { * The type of the webhook you are configuring. Set to **balance**. * * @param type The type of the webhook you are configuring. Set to **balance**. - * @return the current {@code BalanceWebhookSettingInfoUpdate} instance, allowing for method chaining + * @return the current {@code BalanceWebhookSettingInfoUpdate} instance, allowing for method + * chaining */ public BalanceWebhookSettingInfoUpdate type(TypeEnum type) { this.type = type; @@ -285,6 +312,7 @@ public BalanceWebhookSettingInfoUpdate type(TypeEnum type) { /** * The type of the webhook you are configuring. Set to **balance**. + * * @return type The type of the webhook you are configuring. Set to **balance**. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -304,9 +332,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this BalanceWebhookSettingInfoUpdate object is equal to o. - */ + /** Return true if this BalanceWebhookSettingInfoUpdate object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -315,12 +341,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - BalanceWebhookSettingInfoUpdate balanceWebhookSettingInfoUpdate = (BalanceWebhookSettingInfoUpdate) o; - return Objects.equals(this.conditions, balanceWebhookSettingInfoUpdate.conditions) && - Objects.equals(this.currency, balanceWebhookSettingInfoUpdate.currency) && - Objects.equals(this.status, balanceWebhookSettingInfoUpdate.status) && - Objects.equals(this.target, balanceWebhookSettingInfoUpdate.target) && - Objects.equals(this.type, balanceWebhookSettingInfoUpdate.type); + BalanceWebhookSettingInfoUpdate balanceWebhookSettingInfoUpdate = + (BalanceWebhookSettingInfoUpdate) o; + return Objects.equals(this.conditions, balanceWebhookSettingInfoUpdate.conditions) + && Objects.equals(this.currency, balanceWebhookSettingInfoUpdate.currency) + && Objects.equals(this.status, balanceWebhookSettingInfoUpdate.status) + && Objects.equals(this.target, balanceWebhookSettingInfoUpdate.target) + && Objects.equals(this.type, balanceWebhookSettingInfoUpdate.type); } @Override @@ -342,8 +369,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -352,21 +378,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BalanceWebhookSettingInfoUpdate given an JSON string * * @param jsonString JSON string * @return An instance of BalanceWebhookSettingInfoUpdate - * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceWebhookSettingInfoUpdate + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BalanceWebhookSettingInfoUpdate */ - public static BalanceWebhookSettingInfoUpdate fromJson(String jsonString) throws JsonProcessingException { + public static BalanceWebhookSettingInfoUpdate fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceWebhookSettingInfoUpdate.class); } -/** - * Convert an instance of BalanceWebhookSettingInfoUpdate to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BalanceWebhookSettingInfoUpdate to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BankAccount.java b/src/main/java/com/adyen/model/balanceplatform/BankAccount.java index fa5628abf..0e9722170 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BankAccount.java +++ b/src/main/java/com/adyen/model/balanceplatform/BankAccount.java @@ -2,47 +2,33 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.BankAccountAccountIdentification; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * BankAccount - */ -@JsonPropertyOrder({ - BankAccount.JSON_PROPERTY_ACCOUNT_IDENTIFICATION -}) - +/** BankAccount */ +@JsonPropertyOrder({BankAccount.JSON_PROPERTY_ACCOUNT_IDENTIFICATION}) public class BankAccount { public static final String JSON_PROPERTY_ACCOUNT_IDENTIFICATION = "accountIdentification"; private BankAccountAccountIdentification accountIdentification; - public BankAccount() { - } + public BankAccount() {} /** * accountIdentification * - * @param accountIdentification + * @param accountIdentification * @return the current {@code BankAccount} instance, allowing for method chaining */ public BankAccount accountIdentification(BankAccountAccountIdentification accountIdentification) { @@ -52,7 +38,8 @@ public BankAccount accountIdentification(BankAccountAccountIdentification accoun /** * Get accountIdentification - * @return accountIdentification + * + * @return accountIdentification */ @JsonProperty(JSON_PROPERTY_ACCOUNT_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,7 +50,7 @@ public BankAccountAccountIdentification getAccountIdentification() { /** * accountIdentification * - * @param accountIdentification + * @param accountIdentification */ @JsonProperty(JSON_PROPERTY_ACCOUNT_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,9 +58,7 @@ public void setAccountIdentification(BankAccountAccountIdentification accountIde this.accountIdentification = accountIdentification; } - /** - * Return true if this BankAccount object is equal to o. - */ + /** Return true if this BankAccount object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -95,14 +80,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BankAccount {\n"); - sb.append(" accountIdentification: ").append(toIndentedString(accountIdentification)).append("\n"); + sb.append(" accountIdentification: ") + .append(toIndentedString(accountIdentification)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -111,7 +97,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BankAccount given an JSON string * * @param jsonString JSON string @@ -121,11 +107,12 @@ private String toIndentedString(Object o) { public static BankAccount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankAccount.class); } -/** - * Convert an instance of BankAccount to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BankAccount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BankAccountAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/BankAccountAccountIdentification.java index bbad367b5..725aa0b2f 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BankAccountAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/BankAccountAccountIdentification.java @@ -2,60 +2,19 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.AULocalAccountIdentification; -import com.adyen.model.balanceplatform.AdditionalBankIdentification; -import com.adyen.model.balanceplatform.BRLocalAccountIdentification; -import com.adyen.model.balanceplatform.CALocalAccountIdentification; -import com.adyen.model.balanceplatform.CZLocalAccountIdentification; -import com.adyen.model.balanceplatform.DKLocalAccountIdentification; -import com.adyen.model.balanceplatform.HKLocalAccountIdentification; -import com.adyen.model.balanceplatform.HULocalAccountIdentification; -import com.adyen.model.balanceplatform.IbanAccountIdentification; -import com.adyen.model.balanceplatform.NOLocalAccountIdentification; -import com.adyen.model.balanceplatform.NZLocalAccountIdentification; -import com.adyen.model.balanceplatform.NumberAndBicAccountIdentification; -import com.adyen.model.balanceplatform.PLLocalAccountIdentification; -import com.adyen.model.balanceplatform.SELocalAccountIdentification; -import com.adyen.model.balanceplatform.SGLocalAccountIdentification; -import com.adyen.model.balanceplatform.UKLocalAccountIdentification; -import com.adyen.model.balanceplatform.USLocalAccountIdentification; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -import com.fasterxml.jackson.core.type.TypeReference; - -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.core.Response; -import java.io.IOException; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; - import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -65,872 +24,941 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import jakarta.ws.rs.core.GenericType; +import java.io.IOException; +import java.util.*; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.logging.Level; +import java.util.logging.Logger; - -@JsonDeserialize(using = BankAccountAccountIdentification.BankAccountAccountIdentificationDeserializer.class) -@JsonSerialize(using = BankAccountAccountIdentification.BankAccountAccountIdentificationSerializer.class) +@JsonDeserialize( + using = BankAccountAccountIdentification.BankAccountAccountIdentificationDeserializer.class) +@JsonSerialize( + using = BankAccountAccountIdentification.BankAccountAccountIdentificationSerializer.class) public class BankAccountAccountIdentification extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(BankAccountAccountIdentification.class.getName()); - - public static class BankAccountAccountIdentificationSerializer extends StdSerializer { - public BankAccountAccountIdentificationSerializer(Class t) { - super(t); - } - - public BankAccountAccountIdentificationSerializer() { - this(null); - } - - @Override - public void serialize(BankAccountAccountIdentification value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class BankAccountAccountIdentificationDeserializer extends StdDeserializer { - public BankAccountAccountIdentificationDeserializer() { - this(BankAccountAccountIdentification.class); - } - - public BankAccountAccountIdentificationDeserializer(Class vc) { - super(vc); - } - - @Override - public BankAccountAccountIdentification deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize AULocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(AULocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AULocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AULocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AULocalAccountIdentification'", e); - } - - // deserialize BRLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(BRLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(BRLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'BRLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'BRLocalAccountIdentification'", e); - } - - // deserialize CALocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(CALocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CALocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CALocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CALocalAccountIdentification'", e); - } - - // deserialize CZLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(CZLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CZLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CZLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CZLocalAccountIdentification'", e); - } - - // deserialize DKLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(DKLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(DKLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'DKLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'DKLocalAccountIdentification'", e); - } - - // deserialize HKLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(HKLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(HKLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'HKLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'HKLocalAccountIdentification'", e); - } - - // deserialize HULocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(HULocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(HULocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'HULocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'HULocalAccountIdentification'", e); - } - - // deserialize IbanAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(IbanAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'IbanAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'IbanAccountIdentification'", e); - } - - // deserialize NOLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(NOLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(NOLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'NOLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'NOLocalAccountIdentification'", e); - } - - // deserialize NZLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(NZLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(NZLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'NZLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'NZLocalAccountIdentification'", e); - } - - // deserialize NumberAndBicAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(NumberAndBicAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(NumberAndBicAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'NumberAndBicAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'NumberAndBicAccountIdentification'", e); - } - - // deserialize PLLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(PLLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PLLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PLLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PLLocalAccountIdentification'", e); - } - - // deserialize SELocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(SELocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(SELocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SELocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'SELocalAccountIdentification'", e); - } - - // deserialize SGLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(SGLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(SGLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SGLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'SGLocalAccountIdentification'", e); - } - - // deserialize UKLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(UKLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(UKLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'UKLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'UKLocalAccountIdentification'", e); - } - - // deserialize USLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(USLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(USLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'USLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'USLocalAccountIdentification'", e); - } - - if (match == 1) { - BankAccountAccountIdentification ret = new BankAccountAccountIdentification(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException(String.format("Failed deserialization for BankAccountAccountIdentification: %d classes match result, expected 1", match)); - } - - /** - * Handle deserialization of the 'null' value. - */ - @Override - public BankAccountAccountIdentification getNullValue(DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "BankAccountAccountIdentification cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public BankAccountAccountIdentification() { - super("oneOf", Boolean.FALSE); - } - - public BankAccountAccountIdentification(AULocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountAccountIdentification(BRLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountAccountIdentification(CALocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountAccountIdentification(CZLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountAccountIdentification(DKLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountAccountIdentification(HKLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountAccountIdentification(HULocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountAccountIdentification(IbanAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountAccountIdentification(NOLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountAccountIdentification(NZLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } + private static final Logger log = + Logger.getLogger(BankAccountAccountIdentification.class.getName()); - public BankAccountAccountIdentification(NumberAndBicAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + public static class BankAccountAccountIdentificationSerializer + extends StdSerializer { + public BankAccountAccountIdentificationSerializer(Class t) { + super(t); } - public BankAccountAccountIdentification(PLLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + public BankAccountAccountIdentificationSerializer() { + this(null); } - public BankAccountAccountIdentification(SELocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountAccountIdentification(SGLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountAccountIdentification(UKLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountAccountIdentification(USLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + @Override + public void serialize( + BankAccountAccountIdentification value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); } + } - static { - schemas.put("AULocalAccountIdentification", new GenericType() { - }); - schemas.put("BRLocalAccountIdentification", new GenericType() { - }); - schemas.put("CALocalAccountIdentification", new GenericType() { - }); - schemas.put("CZLocalAccountIdentification", new GenericType() { - }); - schemas.put("DKLocalAccountIdentification", new GenericType() { - }); - schemas.put("HKLocalAccountIdentification", new GenericType() { - }); - schemas.put("HULocalAccountIdentification", new GenericType() { - }); - schemas.put("IbanAccountIdentification", new GenericType() { - }); - schemas.put("NOLocalAccountIdentification", new GenericType() { - }); - schemas.put("NZLocalAccountIdentification", new GenericType() { - }); - schemas.put("NumberAndBicAccountIdentification", new GenericType() { - }); - schemas.put("PLLocalAccountIdentification", new GenericType() { - }); - schemas.put("SELocalAccountIdentification", new GenericType() { - }); - schemas.put("SGLocalAccountIdentification", new GenericType() { - }); - schemas.put("UKLocalAccountIdentification", new GenericType() { - }); - schemas.put("USLocalAccountIdentification", new GenericType() { - }); - JSON.registerDescendants(BankAccountAccountIdentification.class, Collections.unmodifiableMap(schemas)); + public static class BankAccountAccountIdentificationDeserializer + extends StdDeserializer { + public BankAccountAccountIdentificationDeserializer() { + this(BankAccountAccountIdentification.class); } - @Override - public Map> getSchemas() { - return BankAccountAccountIdentification.schemas; + public BankAccountAccountIdentificationDeserializer(Class vc) { + super(vc); } - /** - * Set the instance that matches the oneOf child schema, check - * the instance parameter is valid against the oneOf child schemas: - * AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification - * - * It could be an instance of the 'oneOf' schemas. - * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). - */ @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(AULocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + public BankAccountAccountIdentification deserialize(JsonParser jp, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize AULocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(AULocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(AULocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'AULocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(BRLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'AULocalAccountIdentification'", e); + } + + // deserialize BRLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(BRLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(BRLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'BRLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(CALocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'BRLocalAccountIdentification'", e); + } + + // deserialize CALocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(CALocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(CALocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CALocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(CZLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CALocalAccountIdentification'", e); + } + + // deserialize CZLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(CZLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(CZLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CZLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(DKLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CZLocalAccountIdentification'", e); + } + + // deserialize DKLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(DKLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(DKLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'DKLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(HKLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'DKLocalAccountIdentification'", e); + } + + // deserialize HKLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(HKLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(HKLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'HKLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(HULocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'HKLocalAccountIdentification'", e); + } + + // deserialize HULocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(HULocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(HULocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'HULocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(IbanAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'HULocalAccountIdentification'", e); + } + + // deserialize IbanAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(IbanAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'IbanAccountIdentification'"); + } } - - if (JSON.isInstanceOf(NOLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'IbanAccountIdentification'", e); + } + + // deserialize NOLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(NOLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(NOLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'NOLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(NZLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'NOLocalAccountIdentification'", e); + } + + // deserialize NZLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(NZLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(NZLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'NZLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(NumberAndBicAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'NZLocalAccountIdentification'", e); + } + + // deserialize NumberAndBicAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(NumberAndBicAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(NumberAndBicAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'NumberAndBicAccountIdentification'"); + } } - - if (JSON.isInstanceOf(PLLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log( + Level.FINER, "Input data does not match schema 'NumberAndBicAccountIdentification'", e); + } + + // deserialize PLLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(PLLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(PLLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PLLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(SELocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PLLocalAccountIdentification'", e); + } + + // deserialize SELocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(SELocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(SELocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'SELocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(SGLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'SELocalAccountIdentification'", e); + } + + // deserialize SGLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(SGLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(SGLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'SGLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(UKLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'SGLocalAccountIdentification'", e); + } + + // deserialize UKLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(UKLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(UKLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'UKLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(USLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'UKLocalAccountIdentification'", e); + } + + // deserialize USLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(USLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(USLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'USLocalAccountIdentification'"); + } } - - throw new RuntimeException("Invalid instance type. Must be AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification"); - } - - /** - * Get the actual instance, which can be the following: - * AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification - * - * @return The actual instance (AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification) - */ + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'USLocalAccountIdentification'", e); + } + + if (match == 1) { + BankAccountAccountIdentification ret = new BankAccountAccountIdentification(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException( + String.format( + "Failed deserialization for BankAccountAccountIdentification: %d classes match result, expected 1", + match)); + } + + /** Handle deserialization of the 'null' value. */ @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `AULocalAccountIdentification`. If the actual instance is not `AULocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `AULocalAccountIdentification` - * @throws ClassCastException if the instance is not `AULocalAccountIdentification` - */ - public AULocalAccountIdentification getAULocalAccountIdentification() throws ClassCastException { - return (AULocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `BRLocalAccountIdentification`. If the actual instance is not `BRLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `BRLocalAccountIdentification` - * @throws ClassCastException if the instance is not `BRLocalAccountIdentification` - */ - public BRLocalAccountIdentification getBRLocalAccountIdentification() throws ClassCastException { - return (BRLocalAccountIdentification)super.getActualInstance(); - } + public BankAccountAccountIdentification getNullValue(DeserializationContext ctxt) + throws JsonMappingException { + throw new JsonMappingException( + ctxt.getParser(), "BankAccountAccountIdentification cannot be null"); + } + } + + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public BankAccountAccountIdentification() { + super("oneOf", Boolean.FALSE); + } + + public BankAccountAccountIdentification(AULocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountAccountIdentification(BRLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountAccountIdentification(CALocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountAccountIdentification(CZLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountAccountIdentification(DKLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountAccountIdentification(HKLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountAccountIdentification(HULocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountAccountIdentification(IbanAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountAccountIdentification(NOLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountAccountIdentification(NZLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountAccountIdentification(NumberAndBicAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountAccountIdentification(PLLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountAccountIdentification(SELocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountAccountIdentification(SGLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountAccountIdentification(UKLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountAccountIdentification(USLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("AULocalAccountIdentification", new GenericType() {}); + schemas.put("BRLocalAccountIdentification", new GenericType() {}); + schemas.put("CALocalAccountIdentification", new GenericType() {}); + schemas.put("CZLocalAccountIdentification", new GenericType() {}); + schemas.put("DKLocalAccountIdentification", new GenericType() {}); + schemas.put("HKLocalAccountIdentification", new GenericType() {}); + schemas.put("HULocalAccountIdentification", new GenericType() {}); + schemas.put("IbanAccountIdentification", new GenericType() {}); + schemas.put("NOLocalAccountIdentification", new GenericType() {}); + schemas.put("NZLocalAccountIdentification", new GenericType() {}); + schemas.put( + "NumberAndBicAccountIdentification", + new GenericType() {}); + schemas.put("PLLocalAccountIdentification", new GenericType() {}); + schemas.put("SELocalAccountIdentification", new GenericType() {}); + schemas.put("SGLocalAccountIdentification", new GenericType() {}); + schemas.put("UKLocalAccountIdentification", new GenericType() {}); + schemas.put("USLocalAccountIdentification", new GenericType() {}); + JSON.registerDescendants( + BankAccountAccountIdentification.class, Collections.unmodifiableMap(schemas)); + } - /** - * Get the actual instance of `CALocalAccountIdentification`. If the actual instance is not `CALocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CALocalAccountIdentification` - * @throws ClassCastException if the instance is not `CALocalAccountIdentification` - */ - public CALocalAccountIdentification getCALocalAccountIdentification() throws ClassCastException { - return (CALocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `CZLocalAccountIdentification`. If the actual instance is not `CZLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CZLocalAccountIdentification` - * @throws ClassCastException if the instance is not `CZLocalAccountIdentification` - */ - public CZLocalAccountIdentification getCZLocalAccountIdentification() throws ClassCastException { - return (CZLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `DKLocalAccountIdentification`. If the actual instance is not `DKLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `DKLocalAccountIdentification` - * @throws ClassCastException if the instance is not `DKLocalAccountIdentification` - */ - public DKLocalAccountIdentification getDKLocalAccountIdentification() throws ClassCastException { - return (DKLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `HKLocalAccountIdentification`. If the actual instance is not `HKLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `HKLocalAccountIdentification` - * @throws ClassCastException if the instance is not `HKLocalAccountIdentification` - */ - public HKLocalAccountIdentification getHKLocalAccountIdentification() throws ClassCastException { - return (HKLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `HULocalAccountIdentification`. If the actual instance is not `HULocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `HULocalAccountIdentification` - * @throws ClassCastException if the instance is not `HULocalAccountIdentification` - */ - public HULocalAccountIdentification getHULocalAccountIdentification() throws ClassCastException { - return (HULocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `IbanAccountIdentification`. If the actual instance is not `IbanAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `IbanAccountIdentification` - * @throws ClassCastException if the instance is not `IbanAccountIdentification` - */ - public IbanAccountIdentification getIbanAccountIdentification() throws ClassCastException { - return (IbanAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `NOLocalAccountIdentification`. If the actual instance is not `NOLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `NOLocalAccountIdentification` - * @throws ClassCastException if the instance is not `NOLocalAccountIdentification` - */ - public NOLocalAccountIdentification getNOLocalAccountIdentification() throws ClassCastException { - return (NOLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `NZLocalAccountIdentification`. If the actual instance is not `NZLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `NZLocalAccountIdentification` - * @throws ClassCastException if the instance is not `NZLocalAccountIdentification` - */ - public NZLocalAccountIdentification getNZLocalAccountIdentification() throws ClassCastException { - return (NZLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `NumberAndBicAccountIdentification`. If the actual instance is not `NumberAndBicAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `NumberAndBicAccountIdentification` - * @throws ClassCastException if the instance is not `NumberAndBicAccountIdentification` - */ - public NumberAndBicAccountIdentification getNumberAndBicAccountIdentification() throws ClassCastException { - return (NumberAndBicAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `PLLocalAccountIdentification`. If the actual instance is not `PLLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PLLocalAccountIdentification` - * @throws ClassCastException if the instance is not `PLLocalAccountIdentification` - */ - public PLLocalAccountIdentification getPLLocalAccountIdentification() throws ClassCastException { - return (PLLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `SELocalAccountIdentification`. If the actual instance is not `SELocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `SELocalAccountIdentification` - * @throws ClassCastException if the instance is not `SELocalAccountIdentification` - */ - public SELocalAccountIdentification getSELocalAccountIdentification() throws ClassCastException { - return (SELocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `SGLocalAccountIdentification`. If the actual instance is not `SGLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `SGLocalAccountIdentification` - * @throws ClassCastException if the instance is not `SGLocalAccountIdentification` - */ - public SGLocalAccountIdentification getSGLocalAccountIdentification() throws ClassCastException { - return (SGLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `UKLocalAccountIdentification`. If the actual instance is not `UKLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `UKLocalAccountIdentification` - * @throws ClassCastException if the instance is not `UKLocalAccountIdentification` - */ - public UKLocalAccountIdentification getUKLocalAccountIdentification() throws ClassCastException { - return (UKLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `USLocalAccountIdentification`. If the actual instance is not `USLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `USLocalAccountIdentification` - * @throws ClassCastException if the instance is not `USLocalAccountIdentification` - */ - public USLocalAccountIdentification getUSLocalAccountIdentification() throws ClassCastException { - return (USLocalAccountIdentification)super.getActualInstance(); - } - - - /** - * Create an instance of BankAccountAccountIdentification given an JSON string - * - * @param jsonString JSON string - * @return An instance of BankAccountAccountIdentification - * @throws IOException if the JSON string is invalid with respect to BankAccountAccountIdentification - */ - public static BankAccountAccountIdentification fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, BankAccountAccountIdentification.class); - } - - /** - * Convert an instance of BankAccountAccountIdentification to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); - } + @Override + public Map> getSchemas() { + return BankAccountAccountIdentification.schemas; + } + /** + * Set the instance that matches the oneOf child schema, check the instance parameter is valid + * against the oneOf child schemas: AULocalAccountIdentification, BRLocalAccountIdentification, + * CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, + * HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, + * NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, + * PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, + * UKLocalAccountIdentification, USLocalAccountIdentification + * + *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a + * composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(AULocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(BRLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(CALocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(CZLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(DKLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(HKLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(HULocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(IbanAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(NOLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(NZLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(NumberAndBicAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(PLLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(SELocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(SGLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(UKLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(USLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException( + "Invalid instance type. Must be AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification"); + } + + /** + * Get the actual instance, which can be the following: AULocalAccountIdentification, + * BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, + * DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, + * IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, + * NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, + * SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification + * + * @return The actual instance (AULocalAccountIdentification, BRLocalAccountIdentification, + * CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, + * HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, + * NOLocalAccountIdentification, NZLocalAccountIdentification, + * NumberAndBicAccountIdentification, PLLocalAccountIdentification, + * SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, + * USLocalAccountIdentification) + */ + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `AULocalAccountIdentification`. If the actual instance is not + * `AULocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `AULocalAccountIdentification` + * @throws ClassCastException if the instance is not `AULocalAccountIdentification` + */ + public AULocalAccountIdentification getAULocalAccountIdentification() throws ClassCastException { + return (AULocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `BRLocalAccountIdentification`. If the actual instance is not + * `BRLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `BRLocalAccountIdentification` + * @throws ClassCastException if the instance is not `BRLocalAccountIdentification` + */ + public BRLocalAccountIdentification getBRLocalAccountIdentification() throws ClassCastException { + return (BRLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `CALocalAccountIdentification`. If the actual instance is not + * `CALocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `CALocalAccountIdentification` + * @throws ClassCastException if the instance is not `CALocalAccountIdentification` + */ + public CALocalAccountIdentification getCALocalAccountIdentification() throws ClassCastException { + return (CALocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `CZLocalAccountIdentification`. If the actual instance is not + * `CZLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `CZLocalAccountIdentification` + * @throws ClassCastException if the instance is not `CZLocalAccountIdentification` + */ + public CZLocalAccountIdentification getCZLocalAccountIdentification() throws ClassCastException { + return (CZLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `DKLocalAccountIdentification`. If the actual instance is not + * `DKLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `DKLocalAccountIdentification` + * @throws ClassCastException if the instance is not `DKLocalAccountIdentification` + */ + public DKLocalAccountIdentification getDKLocalAccountIdentification() throws ClassCastException { + return (DKLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `HKLocalAccountIdentification`. If the actual instance is not + * `HKLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `HKLocalAccountIdentification` + * @throws ClassCastException if the instance is not `HKLocalAccountIdentification` + */ + public HKLocalAccountIdentification getHKLocalAccountIdentification() throws ClassCastException { + return (HKLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `HULocalAccountIdentification`. If the actual instance is not + * `HULocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `HULocalAccountIdentification` + * @throws ClassCastException if the instance is not `HULocalAccountIdentification` + */ + public HULocalAccountIdentification getHULocalAccountIdentification() throws ClassCastException { + return (HULocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `IbanAccountIdentification`. If the actual instance is not + * `IbanAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `IbanAccountIdentification` + * @throws ClassCastException if the instance is not `IbanAccountIdentification` + */ + public IbanAccountIdentification getIbanAccountIdentification() throws ClassCastException { + return (IbanAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `NOLocalAccountIdentification`. If the actual instance is not + * `NOLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `NOLocalAccountIdentification` + * @throws ClassCastException if the instance is not `NOLocalAccountIdentification` + */ + public NOLocalAccountIdentification getNOLocalAccountIdentification() throws ClassCastException { + return (NOLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `NZLocalAccountIdentification`. If the actual instance is not + * `NZLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `NZLocalAccountIdentification` + * @throws ClassCastException if the instance is not `NZLocalAccountIdentification` + */ + public NZLocalAccountIdentification getNZLocalAccountIdentification() throws ClassCastException { + return (NZLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `NumberAndBicAccountIdentification`. If the actual instance is not + * `NumberAndBicAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `NumberAndBicAccountIdentification` + * @throws ClassCastException if the instance is not `NumberAndBicAccountIdentification` + */ + public NumberAndBicAccountIdentification getNumberAndBicAccountIdentification() + throws ClassCastException { + return (NumberAndBicAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `PLLocalAccountIdentification`. If the actual instance is not + * `PLLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `PLLocalAccountIdentification` + * @throws ClassCastException if the instance is not `PLLocalAccountIdentification` + */ + public PLLocalAccountIdentification getPLLocalAccountIdentification() throws ClassCastException { + return (PLLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `SELocalAccountIdentification`. If the actual instance is not + * `SELocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `SELocalAccountIdentification` + * @throws ClassCastException if the instance is not `SELocalAccountIdentification` + */ + public SELocalAccountIdentification getSELocalAccountIdentification() throws ClassCastException { + return (SELocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `SGLocalAccountIdentification`. If the actual instance is not + * `SGLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `SGLocalAccountIdentification` + * @throws ClassCastException if the instance is not `SGLocalAccountIdentification` + */ + public SGLocalAccountIdentification getSGLocalAccountIdentification() throws ClassCastException { + return (SGLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `UKLocalAccountIdentification`. If the actual instance is not + * `UKLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `UKLocalAccountIdentification` + * @throws ClassCastException if the instance is not `UKLocalAccountIdentification` + */ + public UKLocalAccountIdentification getUKLocalAccountIdentification() throws ClassCastException { + return (UKLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `USLocalAccountIdentification`. If the actual instance is not + * `USLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `USLocalAccountIdentification` + * @throws ClassCastException if the instance is not `USLocalAccountIdentification` + */ + public USLocalAccountIdentification getUSLocalAccountIdentification() throws ClassCastException { + return (USLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Create an instance of BankAccountAccountIdentification given an JSON string + * + * @param jsonString JSON string + * @return An instance of BankAccountAccountIdentification + * @throws IOException if the JSON string is invalid with respect to + * BankAccountAccountIdentification + */ + public static BankAccountAccountIdentification fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, BankAccountAccountIdentification.class); + } + + /** + * Convert an instance of BankAccountAccountIdentification to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } } diff --git a/src/main/java/com/adyen/model/balanceplatform/BankAccountDetails.java b/src/main/java/com/adyen/model/balanceplatform/BankAccountDetails.java index 8f9a46f91..1e2a8749b 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BankAccountDetails.java +++ b/src/main/java/com/adyen/model/balanceplatform/BankAccountDetails.java @@ -2,31 +2,22 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * BankAccountDetails - */ +/** BankAccountDetails */ @JsonPropertyOrder({ BankAccountDetails.JSON_PROPERTY_ACCOUNT_NUMBER, BankAccountDetails.JSON_PROPERTY_ACCOUNT_TYPE, @@ -37,7 +28,6 @@ BankAccountDetails.JSON_PROPERTY_SORT_CODE, BankAccountDetails.JSON_PROPERTY_TYPE }) - public class BankAccountDetails { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -63,8 +53,7 @@ public class BankAccountDetails { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public BankAccountDetails() { - } + public BankAccountDetails() {} /** * The bank account number, without separators or whitespace. @@ -79,6 +68,7 @@ public BankAccountDetails accountNumber(String accountNumber) { /** * The bank account number, without separators or whitespace. + * * @return accountNumber The bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -99,9 +89,10 @@ public void setAccountNumber(String accountNumber) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. + * Defaults to **checking**. * @return the current {@code BankAccountDetails} instance, allowing for method chaining */ public BankAccountDetails accountType(String accountType) { @@ -110,8 +101,10 @@ public BankAccountDetails accountType(String accountType) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. - * @return accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * + * @return accountType The bank account type. Possible values: **checking** or **savings**. + * Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -120,9 +113,10 @@ public String getAccountType() { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. + * Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,6 +137,7 @@ public BankAccountDetails branchNumber(String branchNumber) { /** * The bank account branch number, without separators or whitespace + * * @return branchNumber The bank account branch number, without separators or whitespace */ @JsonProperty(JSON_PROPERTY_BRANCH_NUMBER) @@ -163,9 +158,19 @@ public void setBranchNumber(String branchNumber) { } /** - * Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. + * Business accounts with a `formFactor` value of **physical** are business accounts + * issued under the central bank of that country. The default value is **physical** for NL, US, + * and UK business accounts. Adyen creates a local IBAN for business accounts when the + * `formFactor` value is set to **virtual**. The local IBANs that are supported are for + * DE and FR, which reference a physical NL account, with funds being routed through the central + * bank of NL. * - * @param formFactor Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. + * @param formFactor Business accounts with a `formFactor` value of **physical** are + * business accounts issued under the central bank of that country. The default value is + * **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business + * accounts when the `formFactor` value is set to **virtual**. The local IBANs that + * are supported are for DE and FR, which reference a physical NL account, with funds being + * routed through the central bank of NL. * @return the current {@code BankAccountDetails} instance, allowing for method chaining */ public BankAccountDetails formFactor(String formFactor) { @@ -174,8 +179,19 @@ public BankAccountDetails formFactor(String formFactor) { } /** - * Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. - * @return formFactor Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. + * Business accounts with a `formFactor` value of **physical** are business accounts + * issued under the central bank of that country. The default value is **physical** for NL, US, + * and UK business accounts. Adyen creates a local IBAN for business accounts when the + * `formFactor` value is set to **virtual**. The local IBANs that are supported are for + * DE and FR, which reference a physical NL account, with funds being routed through the central + * bank of NL. + * + * @return formFactor Business accounts with a `formFactor` value of **physical** are + * business accounts issued under the central bank of that country. The default value is + * **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business + * accounts when the `formFactor` value is set to **virtual**. The local IBANs that + * are supported are for DE and FR, which reference a physical NL account, with funds being + * routed through the central bank of NL. */ @JsonProperty(JSON_PROPERTY_FORM_FACTOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -184,9 +200,19 @@ public String getFormFactor() { } /** - * Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. + * Business accounts with a `formFactor` value of **physical** are business accounts + * issued under the central bank of that country. The default value is **physical** for NL, US, + * and UK business accounts. Adyen creates a local IBAN for business accounts when the + * `formFactor` value is set to **virtual**. The local IBANs that are supported are for + * DE and FR, which reference a physical NL account, with funds being routed through the central + * bank of NL. * - * @param formFactor Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. + * @param formFactor Business accounts with a `formFactor` value of **physical** are + * business accounts issued under the central bank of that country. The default value is + * **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business + * accounts when the `formFactor` value is set to **virtual**. The local IBANs that + * are supported are for DE and FR, which reference a physical NL account, with funds being + * routed through the central bank of NL. */ @JsonProperty(JSON_PROPERTY_FORM_FACTOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,9 +221,11 @@ public void setFormFactor(String formFactor) { } /** - * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. * - * @param iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @param iban The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. * @return the current {@code BankAccountDetails} instance, allowing for method chaining */ public BankAccountDetails iban(String iban) { @@ -206,8 +234,11 @@ public BankAccountDetails iban(String iban) { } /** - * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. - * @return iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * + * @return iban The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -216,9 +247,11 @@ public String getIban() { } /** - * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. * - * @param iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @param iban The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -227,9 +260,12 @@ public void setIban(String iban) { } /** - * The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without + * separators or whitespace. * - * @param routingNumber The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * @param routingNumber The [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * whitespace. * @return the current {@code BankAccountDetails} instance, allowing for method chaining */ public BankAccountDetails routingNumber(String routingNumber) { @@ -238,8 +274,12 @@ public BankAccountDetails routingNumber(String routingNumber) { } /** - * The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. - * @return routingNumber The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without + * separators or whitespace. + * + * @return routingNumber The [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * whitespace. */ @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -248,9 +288,12 @@ public String getRoutingNumber() { } /** - * The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without + * separators or whitespace. * - * @param routingNumber The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * @param routingNumber The [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * whitespace. */ @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -261,7 +304,8 @@ public void setRoutingNumber(String routingNumber) { /** * The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. * - * @param sortCode The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. + * @param sortCode The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or + * whitespace. * @return the current {@code BankAccountDetails} instance, allowing for method chaining */ public BankAccountDetails sortCode(String sortCode) { @@ -271,7 +315,9 @@ public BankAccountDetails sortCode(String sortCode) { /** * The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. - * @return sortCode The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. + * + * @return sortCode The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators + * or whitespace. */ @JsonProperty(JSON_PROPERTY_SORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -282,7 +328,8 @@ public String getSortCode() { /** * The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. * - * @param sortCode The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. + * @param sortCode The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or + * whitespace. */ @JsonProperty(JSON_PROPERTY_SORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -303,6 +350,7 @@ public BankAccountDetails type(String type) { /** * **iban** or **usLocal** or **ukLocal** + * * @return type **iban** or **usLocal** or **ukLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -322,9 +370,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this BankAccountDetails object is equal to o. - */ + /** Return true if this BankAccountDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -334,19 +380,20 @@ public boolean equals(Object o) { return false; } BankAccountDetails bankAccountDetails = (BankAccountDetails) o; - return Objects.equals(this.accountNumber, bankAccountDetails.accountNumber) && - Objects.equals(this.accountType, bankAccountDetails.accountType) && - Objects.equals(this.branchNumber, bankAccountDetails.branchNumber) && - Objects.equals(this.formFactor, bankAccountDetails.formFactor) && - Objects.equals(this.iban, bankAccountDetails.iban) && - Objects.equals(this.routingNumber, bankAccountDetails.routingNumber) && - Objects.equals(this.sortCode, bankAccountDetails.sortCode) && - Objects.equals(this.type, bankAccountDetails.type); + return Objects.equals(this.accountNumber, bankAccountDetails.accountNumber) + && Objects.equals(this.accountType, bankAccountDetails.accountType) + && Objects.equals(this.branchNumber, bankAccountDetails.branchNumber) + && Objects.equals(this.formFactor, bankAccountDetails.formFactor) + && Objects.equals(this.iban, bankAccountDetails.iban) + && Objects.equals(this.routingNumber, bankAccountDetails.routingNumber) + && Objects.equals(this.sortCode, bankAccountDetails.sortCode) + && Objects.equals(this.type, bankAccountDetails.type); } @Override public int hashCode() { - return Objects.hash(accountNumber, accountType, branchNumber, formFactor, iban, routingNumber, sortCode, type); + return Objects.hash( + accountNumber, accountType, branchNumber, formFactor, iban, routingNumber, sortCode, type); } @Override @@ -366,8 +413,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -376,21 +422,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BankAccountDetails given an JSON string * * @param jsonString JSON string * @return An instance of BankAccountDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to BankAccountDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BankAccountDetails */ public static BankAccountDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankAccountDetails.class); } -/** - * Convert an instance of BankAccountDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BankAccountDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationTypeRequirement.java b/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationTypeRequirement.java index b4fd915fd..5e2c81059 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationTypeRequirement.java +++ b/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationTypeRequirement.java @@ -2,45 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * BankAccountIdentificationTypeRequirement - */ +/** BankAccountIdentificationTypeRequirement */ @JsonPropertyOrder({ BankAccountIdentificationTypeRequirement.JSON_PROPERTY_BANK_ACCOUNT_IDENTIFICATION_TYPES, BankAccountIdentificationTypeRequirement.JSON_PROPERTY_DESCRIPTION, BankAccountIdentificationTypeRequirement.JSON_PROPERTY_TYPE }) - public class BankAccountIdentificationTypeRequirement { - /** - * Gets or Sets bankAccountIdentificationTypes - */ + /** Gets or Sets bankAccountIdentificationTypes */ public enum BankAccountIdentificationTypesEnum { - AULOCAL(String.valueOf("auLocal")), BRLOCAL(String.valueOf("brLocal")), @@ -75,12 +66,13 @@ public enum BankAccountIdentificationTypesEnum { USLOCAL(String.valueOf("usLocal")); - private static final Logger LOG = Logger.getLogger(BankAccountIdentificationTypesEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(BankAccountIdentificationTypesEnum.class.getName()); private String value; BankAccountIdentificationTypesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -101,30 +93,33 @@ public static BankAccountIdentificationTypesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("BankAccountIdentificationTypesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(BankAccountIdentificationTypesEnum.values())); + LOG.warning( + "BankAccountIdentificationTypesEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(BankAccountIdentificationTypesEnum.values())); return null; } } - public static final String JSON_PROPERTY_BANK_ACCOUNT_IDENTIFICATION_TYPES = "bankAccountIdentificationTypes"; + public static final String JSON_PROPERTY_BANK_ACCOUNT_IDENTIFICATION_TYPES = + "bankAccountIdentificationTypes"; private List bankAccountIdentificationTypes; public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; - /** - * **bankAccountIdentificationTypeRequirement** - */ + /** **bankAccountIdentificationTypeRequirement** */ public enum TypeEnum { - - BANKACCOUNTIDENTIFICATIONTYPEREQUIREMENT(String.valueOf("bankAccountIdentificationTypeRequirement")); + BANKACCOUNTIDENTIFICATIONTYPEREQUIREMENT( + String.valueOf("bankAccountIdentificationTypeRequirement")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -145,7 +140,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -153,21 +152,24 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public BankAccountIdentificationTypeRequirement() { - } + public BankAccountIdentificationTypeRequirement() {} /** * List of bank account identification types: eg.; [iban , numberAndBic] * - * @param bankAccountIdentificationTypes List of bank account identification types: eg.; [iban , numberAndBic] - * @return the current {@code BankAccountIdentificationTypeRequirement} instance, allowing for method chaining + * @param bankAccountIdentificationTypes List of bank account identification types: eg.; [iban , + * numberAndBic] + * @return the current {@code BankAccountIdentificationTypeRequirement} instance, allowing for + * method chaining */ - public BankAccountIdentificationTypeRequirement bankAccountIdentificationTypes(List bankAccountIdentificationTypes) { + public BankAccountIdentificationTypeRequirement bankAccountIdentificationTypes( + List bankAccountIdentificationTypes) { this.bankAccountIdentificationTypes = bankAccountIdentificationTypes; return this; } - public BankAccountIdentificationTypeRequirement addBankAccountIdentificationTypesItem(BankAccountIdentificationTypesEnum bankAccountIdentificationTypesItem) { + public BankAccountIdentificationTypeRequirement addBankAccountIdentificationTypesItem( + BankAccountIdentificationTypesEnum bankAccountIdentificationTypesItem) { if (this.bankAccountIdentificationTypes == null) { this.bankAccountIdentificationTypes = new ArrayList<>(); } @@ -177,7 +179,9 @@ public BankAccountIdentificationTypeRequirement addBankAccountIdentificationType /** * List of bank account identification types: eg.; [iban , numberAndBic] - * @return bankAccountIdentificationTypes List of bank account identification types: eg.; [iban , numberAndBic] + * + * @return bankAccountIdentificationTypes List of bank account identification types: eg.; [iban , + * numberAndBic] */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_IDENTIFICATION_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,19 +192,25 @@ public List getBankAccountIdentificationType /** * List of bank account identification types: eg.; [iban , numberAndBic] * - * @param bankAccountIdentificationTypes List of bank account identification types: eg.; [iban , numberAndBic] + * @param bankAccountIdentificationTypes List of bank account identification types: eg.; [iban , + * numberAndBic] */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_IDENTIFICATION_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBankAccountIdentificationTypes(List bankAccountIdentificationTypes) { + public void setBankAccountIdentificationTypes( + List bankAccountIdentificationTypes) { this.bankAccountIdentificationTypes = bankAccountIdentificationTypes; } /** - * Specifies the bank account details for a particular route per required field in this object depending on the country of the bank account and the currency of the transfer. + * Specifies the bank account details for a particular route per required field in this object + * depending on the country of the bank account and the currency of the transfer. * - * @param description Specifies the bank account details for a particular route per required field in this object depending on the country of the bank account and the currency of the transfer. - * @return the current {@code BankAccountIdentificationTypeRequirement} instance, allowing for method chaining + * @param description Specifies the bank account details for a particular route per required field + * in this object depending on the country of the bank account and the currency of the + * transfer. + * @return the current {@code BankAccountIdentificationTypeRequirement} instance, allowing for + * method chaining */ public BankAccountIdentificationTypeRequirement description(String description) { this.description = description; @@ -208,8 +218,12 @@ public BankAccountIdentificationTypeRequirement description(String description) } /** - * Specifies the bank account details for a particular route per required field in this object depending on the country of the bank account and the currency of the transfer. - * @return description Specifies the bank account details for a particular route per required field in this object depending on the country of the bank account and the currency of the transfer. + * Specifies the bank account details for a particular route per required field in this object + * depending on the country of the bank account and the currency of the transfer. + * + * @return description Specifies the bank account details for a particular route per required + * field in this object depending on the country of the bank account and the currency of the + * transfer. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -218,9 +232,12 @@ public String getDescription() { } /** - * Specifies the bank account details for a particular route per required field in this object depending on the country of the bank account and the currency of the transfer. + * Specifies the bank account details for a particular route per required field in this object + * depending on the country of the bank account and the currency of the transfer. * - * @param description Specifies the bank account details for a particular route per required field in this object depending on the country of the bank account and the currency of the transfer. + * @param description Specifies the bank account details for a particular route per required field + * in this object depending on the country of the bank account and the currency of the + * transfer. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,7 +249,8 @@ public void setDescription(String description) { * **bankAccountIdentificationTypeRequirement** * * @param type **bankAccountIdentificationTypeRequirement** - * @return the current {@code BankAccountIdentificationTypeRequirement} instance, allowing for method chaining + * @return the current {@code BankAccountIdentificationTypeRequirement} instance, allowing for + * method chaining */ public BankAccountIdentificationTypeRequirement type(TypeEnum type) { this.type = type; @@ -241,6 +259,7 @@ public BankAccountIdentificationTypeRequirement type(TypeEnum type) { /** * **bankAccountIdentificationTypeRequirement** + * * @return type **bankAccountIdentificationTypeRequirement** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -260,9 +279,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this BankAccountIdentificationTypeRequirement object is equal to o. - */ + /** Return true if this BankAccountIdentificationTypeRequirement object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -271,10 +288,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - BankAccountIdentificationTypeRequirement bankAccountIdentificationTypeRequirement = (BankAccountIdentificationTypeRequirement) o; - return Objects.equals(this.bankAccountIdentificationTypes, bankAccountIdentificationTypeRequirement.bankAccountIdentificationTypes) && - Objects.equals(this.description, bankAccountIdentificationTypeRequirement.description) && - Objects.equals(this.type, bankAccountIdentificationTypeRequirement.type); + BankAccountIdentificationTypeRequirement bankAccountIdentificationTypeRequirement = + (BankAccountIdentificationTypeRequirement) o; + return Objects.equals( + this.bankAccountIdentificationTypes, + bankAccountIdentificationTypeRequirement.bankAccountIdentificationTypes) + && Objects.equals(this.description, bankAccountIdentificationTypeRequirement.description) + && Objects.equals(this.type, bankAccountIdentificationTypeRequirement.type); } @Override @@ -286,7 +306,9 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BankAccountIdentificationTypeRequirement {\n"); - sb.append(" bankAccountIdentificationTypes: ").append(toIndentedString(bankAccountIdentificationTypes)).append("\n"); + sb.append(" bankAccountIdentificationTypes: ") + .append(toIndentedString(bankAccountIdentificationTypes)) + .append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -294,8 +316,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -304,21 +325,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BankAccountIdentificationTypeRequirement given an JSON string * * @param jsonString JSON string * @return An instance of BankAccountIdentificationTypeRequirement - * @throws JsonProcessingException if the JSON string is invalid with respect to BankAccountIdentificationTypeRequirement + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BankAccountIdentificationTypeRequirement */ - public static BankAccountIdentificationTypeRequirement fromJson(String jsonString) throws JsonProcessingException { + public static BankAccountIdentificationTypeRequirement fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankAccountIdentificationTypeRequirement.class); } -/** - * Convert an instance of BankAccountIdentificationTypeRequirement to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BankAccountIdentificationTypeRequirement to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationValidationRequest.java b/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationValidationRequest.java index 4db549ddf..fbe2d5565 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationValidationRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationValidationRequest.java @@ -2,78 +2,69 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.BankAccountIdentificationValidationRequestAccountIdentification; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * BankAccountIdentificationValidationRequest - */ +/** BankAccountIdentificationValidationRequest */ @JsonPropertyOrder({ BankAccountIdentificationValidationRequest.JSON_PROPERTY_ACCOUNT_IDENTIFICATION }) - public class BankAccountIdentificationValidationRequest { public static final String JSON_PROPERTY_ACCOUNT_IDENTIFICATION = "accountIdentification"; private BankAccountIdentificationValidationRequestAccountIdentification accountIdentification; - public BankAccountIdentificationValidationRequest() { - } + public BankAccountIdentificationValidationRequest() {} /** * accountIdentification * - * @param accountIdentification - * @return the current {@code BankAccountIdentificationValidationRequest} instance, allowing for method chaining + * @param accountIdentification + * @return the current {@code BankAccountIdentificationValidationRequest} instance, allowing for + * method chaining */ - public BankAccountIdentificationValidationRequest accountIdentification(BankAccountIdentificationValidationRequestAccountIdentification accountIdentification) { + public BankAccountIdentificationValidationRequest accountIdentification( + BankAccountIdentificationValidationRequestAccountIdentification accountIdentification) { this.accountIdentification = accountIdentification; return this; } /** * Get accountIdentification - * @return accountIdentification + * + * @return accountIdentification */ @JsonProperty(JSON_PROPERTY_ACCOUNT_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BankAccountIdentificationValidationRequestAccountIdentification getAccountIdentification() { + public BankAccountIdentificationValidationRequestAccountIdentification + getAccountIdentification() { return accountIdentification; } /** * accountIdentification * - * @param accountIdentification + * @param accountIdentification */ @JsonProperty(JSON_PROPERTY_ACCOUNT_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountIdentification(BankAccountIdentificationValidationRequestAccountIdentification accountIdentification) { + public void setAccountIdentification( + BankAccountIdentificationValidationRequestAccountIdentification accountIdentification) { this.accountIdentification = accountIdentification; } - /** - * Return true if this BankAccountIdentificationValidationRequest object is equal to o. - */ + /** Return true if this BankAccountIdentificationValidationRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -82,8 +73,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - BankAccountIdentificationValidationRequest bankAccountIdentificationValidationRequest = (BankAccountIdentificationValidationRequest) o; - return Objects.equals(this.accountIdentification, bankAccountIdentificationValidationRequest.accountIdentification); + BankAccountIdentificationValidationRequest bankAccountIdentificationValidationRequest = + (BankAccountIdentificationValidationRequest) o; + return Objects.equals( + this.accountIdentification, + bankAccountIdentificationValidationRequest.accountIdentification); } @Override @@ -95,14 +89,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BankAccountIdentificationValidationRequest {\n"); - sb.append(" accountIdentification: ").append(toIndentedString(accountIdentification)).append("\n"); + sb.append(" accountIdentification: ") + .append(toIndentedString(accountIdentification)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -111,21 +106,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BankAccountIdentificationValidationRequest given an JSON string * * @param jsonString JSON string * @return An instance of BankAccountIdentificationValidationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to BankAccountIdentificationValidationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BankAccountIdentificationValidationRequest */ - public static BankAccountIdentificationValidationRequest fromJson(String jsonString) throws JsonProcessingException { + public static BankAccountIdentificationValidationRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankAccountIdentificationValidationRequest.class); } -/** - * Convert an instance of BankAccountIdentificationValidationRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BankAccountIdentificationValidationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationValidationRequestAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationValidationRequestAccountIdentification.java index 608017b94..8b130a0b5 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationValidationRequestAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationValidationRequestAccountIdentification.java @@ -2,60 +2,19 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.AULocalAccountIdentification; -import com.adyen.model.balanceplatform.AdditionalBankIdentification; -import com.adyen.model.balanceplatform.BRLocalAccountIdentification; -import com.adyen.model.balanceplatform.CALocalAccountIdentification; -import com.adyen.model.balanceplatform.CZLocalAccountIdentification; -import com.adyen.model.balanceplatform.DKLocalAccountIdentification; -import com.adyen.model.balanceplatform.HKLocalAccountIdentification; -import com.adyen.model.balanceplatform.HULocalAccountIdentification; -import com.adyen.model.balanceplatform.IbanAccountIdentification; -import com.adyen.model.balanceplatform.NOLocalAccountIdentification; -import com.adyen.model.balanceplatform.NZLocalAccountIdentification; -import com.adyen.model.balanceplatform.NumberAndBicAccountIdentification; -import com.adyen.model.balanceplatform.PLLocalAccountIdentification; -import com.adyen.model.balanceplatform.SELocalAccountIdentification; -import com.adyen.model.balanceplatform.SGLocalAccountIdentification; -import com.adyen.model.balanceplatform.UKLocalAccountIdentification; -import com.adyen.model.balanceplatform.USLocalAccountIdentification; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -import com.fasterxml.jackson.core.type.TypeReference; - -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.core.Response; -import java.io.IOException; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; - import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -65,872 +24,975 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import jakarta.ws.rs.core.GenericType; +import java.io.IOException; +import java.util.*; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.logging.Level; +import java.util.logging.Logger; +@JsonDeserialize( + using = + BankAccountIdentificationValidationRequestAccountIdentification + .BankAccountIdentificationValidationRequestAccountIdentificationDeserializer.class) +@JsonSerialize( + using = + BankAccountIdentificationValidationRequestAccountIdentification + .BankAccountIdentificationValidationRequestAccountIdentificationSerializer.class) +public class BankAccountIdentificationValidationRequestAccountIdentification + extends AbstractOpenApiSchema { + private static final Logger log = + Logger.getLogger( + BankAccountIdentificationValidationRequestAccountIdentification.class.getName()); -@JsonDeserialize(using = BankAccountIdentificationValidationRequestAccountIdentification.BankAccountIdentificationValidationRequestAccountIdentificationDeserializer.class) -@JsonSerialize(using = BankAccountIdentificationValidationRequestAccountIdentification.BankAccountIdentificationValidationRequestAccountIdentificationSerializer.class) -public class BankAccountIdentificationValidationRequestAccountIdentification extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(BankAccountIdentificationValidationRequestAccountIdentification.class.getName()); - - public static class BankAccountIdentificationValidationRequestAccountIdentificationSerializer extends StdSerializer { - public BankAccountIdentificationValidationRequestAccountIdentificationSerializer(Class t) { - super(t); - } - - public BankAccountIdentificationValidationRequestAccountIdentificationSerializer() { - this(null); - } - - @Override - public void serialize(BankAccountIdentificationValidationRequestAccountIdentification value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class BankAccountIdentificationValidationRequestAccountIdentificationDeserializer extends StdDeserializer { - public BankAccountIdentificationValidationRequestAccountIdentificationDeserializer() { - this(BankAccountIdentificationValidationRequestAccountIdentification.class); - } - - public BankAccountIdentificationValidationRequestAccountIdentificationDeserializer(Class vc) { - super(vc); - } - - @Override - public BankAccountIdentificationValidationRequestAccountIdentification deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize AULocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(AULocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AULocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AULocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AULocalAccountIdentification'", e); - } - - // deserialize BRLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(BRLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(BRLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'BRLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'BRLocalAccountIdentification'", e); - } - - // deserialize CALocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(CALocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CALocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CALocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CALocalAccountIdentification'", e); - } - - // deserialize CZLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(CZLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CZLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CZLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CZLocalAccountIdentification'", e); - } - - // deserialize DKLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(DKLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(DKLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'DKLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'DKLocalAccountIdentification'", e); - } - - // deserialize HKLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(HKLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(HKLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'HKLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'HKLocalAccountIdentification'", e); - } - - // deserialize HULocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(HULocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(HULocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'HULocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'HULocalAccountIdentification'", e); - } - - // deserialize IbanAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(IbanAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'IbanAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'IbanAccountIdentification'", e); - } - - // deserialize NOLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(NOLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(NOLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'NOLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'NOLocalAccountIdentification'", e); - } - - // deserialize NZLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(NZLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(NZLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'NZLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'NZLocalAccountIdentification'", e); - } - - // deserialize NumberAndBicAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(NumberAndBicAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(NumberAndBicAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'NumberAndBicAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'NumberAndBicAccountIdentification'", e); - } - - // deserialize PLLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(PLLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PLLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PLLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PLLocalAccountIdentification'", e); - } - - // deserialize SELocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(SELocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(SELocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SELocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'SELocalAccountIdentification'", e); - } - - // deserialize SGLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(SGLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(SGLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SGLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'SGLocalAccountIdentification'", e); - } - - // deserialize UKLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(UKLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(UKLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'UKLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'UKLocalAccountIdentification'", e); - } - - // deserialize USLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(USLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(USLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'USLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'USLocalAccountIdentification'", e); - } - - if (match == 1) { - BankAccountIdentificationValidationRequestAccountIdentification ret = new BankAccountIdentificationValidationRequestAccountIdentification(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException(String.format("Failed deserialization for BankAccountIdentificationValidationRequestAccountIdentification: %d classes match result, expected 1", match)); - } - - /** - * Handle deserialization of the 'null' value. - */ - @Override - public BankAccountIdentificationValidationRequestAccountIdentification getNullValue(DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "BankAccountIdentificationValidationRequestAccountIdentification cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public BankAccountIdentificationValidationRequestAccountIdentification() { - super("oneOf", Boolean.FALSE); - } - - public BankAccountIdentificationValidationRequestAccountIdentification(AULocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountIdentificationValidationRequestAccountIdentification(BRLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountIdentificationValidationRequestAccountIdentification(CALocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountIdentificationValidationRequestAccountIdentification(CZLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountIdentificationValidationRequestAccountIdentification(DKLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountIdentificationValidationRequestAccountIdentification(HKLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountIdentificationValidationRequestAccountIdentification(HULocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountIdentificationValidationRequestAccountIdentification(IbanAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountIdentificationValidationRequestAccountIdentification(NOLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountIdentificationValidationRequestAccountIdentification(NZLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountIdentificationValidationRequestAccountIdentification(NumberAndBicAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountIdentificationValidationRequestAccountIdentification(PLLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountIdentificationValidationRequestAccountIdentification(SELocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountIdentificationValidationRequestAccountIdentification(SGLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + public static class BankAccountIdentificationValidationRequestAccountIdentificationSerializer + extends StdSerializer { + public BankAccountIdentificationValidationRequestAccountIdentificationSerializer( + Class t) { + super(t); } - public BankAccountIdentificationValidationRequestAccountIdentification(UKLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + public BankAccountIdentificationValidationRequestAccountIdentificationSerializer() { + this(null); } - public BankAccountIdentificationValidationRequestAccountIdentification(USLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + @Override + public void serialize( + BankAccountIdentificationValidationRequestAccountIdentification value, + JsonGenerator jgen, + SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); } + } - static { - schemas.put("AULocalAccountIdentification", new GenericType() { - }); - schemas.put("BRLocalAccountIdentification", new GenericType() { - }); - schemas.put("CALocalAccountIdentification", new GenericType() { - }); - schemas.put("CZLocalAccountIdentification", new GenericType() { - }); - schemas.put("DKLocalAccountIdentification", new GenericType() { - }); - schemas.put("HKLocalAccountIdentification", new GenericType() { - }); - schemas.put("HULocalAccountIdentification", new GenericType() { - }); - schemas.put("IbanAccountIdentification", new GenericType() { - }); - schemas.put("NOLocalAccountIdentification", new GenericType() { - }); - schemas.put("NZLocalAccountIdentification", new GenericType() { - }); - schemas.put("NumberAndBicAccountIdentification", new GenericType() { - }); - schemas.put("PLLocalAccountIdentification", new GenericType() { - }); - schemas.put("SELocalAccountIdentification", new GenericType() { - }); - schemas.put("SGLocalAccountIdentification", new GenericType() { - }); - schemas.put("UKLocalAccountIdentification", new GenericType() { - }); - schemas.put("USLocalAccountIdentification", new GenericType() { - }); - JSON.registerDescendants(BankAccountIdentificationValidationRequestAccountIdentification.class, Collections.unmodifiableMap(schemas)); + public static class BankAccountIdentificationValidationRequestAccountIdentificationDeserializer + extends StdDeserializer { + public BankAccountIdentificationValidationRequestAccountIdentificationDeserializer() { + this(BankAccountIdentificationValidationRequestAccountIdentification.class); } - @Override - public Map> getSchemas() { - return BankAccountIdentificationValidationRequestAccountIdentification.schemas; + public BankAccountIdentificationValidationRequestAccountIdentificationDeserializer( + Class vc) { + super(vc); } - /** - * Set the instance that matches the oneOf child schema, check - * the instance parameter is valid against the oneOf child schemas: - * AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification - * - * It could be an instance of the 'oneOf' schemas. - * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). - */ @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(AULocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + public BankAccountIdentificationValidationRequestAccountIdentification deserialize( + JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize AULocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(AULocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(AULocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'AULocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(BRLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'AULocalAccountIdentification'", e); + } + + // deserialize BRLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(BRLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(BRLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'BRLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(CALocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'BRLocalAccountIdentification'", e); + } + + // deserialize CALocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(CALocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(CALocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CALocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(CZLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CALocalAccountIdentification'", e); + } + + // deserialize CZLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(CZLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(CZLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CZLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(DKLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CZLocalAccountIdentification'", e); + } + + // deserialize DKLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(DKLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(DKLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'DKLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(HKLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'DKLocalAccountIdentification'", e); + } + + // deserialize HKLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(HKLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(HKLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'HKLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(HULocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'HKLocalAccountIdentification'", e); + } + + // deserialize HULocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(HULocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(HULocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'HULocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(IbanAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'HULocalAccountIdentification'", e); + } + + // deserialize IbanAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(IbanAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'IbanAccountIdentification'"); + } } - - if (JSON.isInstanceOf(NOLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'IbanAccountIdentification'", e); + } + + // deserialize NOLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(NOLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(NOLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'NOLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(NZLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'NOLocalAccountIdentification'", e); + } + + // deserialize NZLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(NZLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(NZLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'NZLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(NumberAndBicAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'NZLocalAccountIdentification'", e); + } + + // deserialize NumberAndBicAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(NumberAndBicAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(NumberAndBicAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'NumberAndBicAccountIdentification'"); + } } - - if (JSON.isInstanceOf(PLLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log( + Level.FINER, "Input data does not match schema 'NumberAndBicAccountIdentification'", e); + } + + // deserialize PLLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(PLLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(PLLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PLLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(SELocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PLLocalAccountIdentification'", e); + } + + // deserialize SELocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(SELocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(SELocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'SELocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(SGLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'SELocalAccountIdentification'", e); + } + + // deserialize SGLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(SGLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(SGLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'SGLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(UKLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'SGLocalAccountIdentification'", e); + } + + // deserialize UKLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(UKLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(UKLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'UKLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(USLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'UKLocalAccountIdentification'", e); + } + + // deserialize USLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(USLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(USLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'USLocalAccountIdentification'"); + } } - - throw new RuntimeException("Invalid instance type. Must be AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification"); - } - - /** - * Get the actual instance, which can be the following: - * AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification - * - * @return The actual instance (AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification) - */ + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'USLocalAccountIdentification'", e); + } + + if (match == 1) { + BankAccountIdentificationValidationRequestAccountIdentification ret = + new BankAccountIdentificationValidationRequestAccountIdentification(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException( + String.format( + "Failed deserialization for BankAccountIdentificationValidationRequestAccountIdentification: %d classes match result, expected 1", + match)); + } + + /** Handle deserialization of the 'null' value. */ @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `AULocalAccountIdentification`. If the actual instance is not `AULocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `AULocalAccountIdentification` - * @throws ClassCastException if the instance is not `AULocalAccountIdentification` - */ - public AULocalAccountIdentification getAULocalAccountIdentification() throws ClassCastException { - return (AULocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `BRLocalAccountIdentification`. If the actual instance is not `BRLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `BRLocalAccountIdentification` - * @throws ClassCastException if the instance is not `BRLocalAccountIdentification` - */ - public BRLocalAccountIdentification getBRLocalAccountIdentification() throws ClassCastException { - return (BRLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `CALocalAccountIdentification`. If the actual instance is not `CALocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CALocalAccountIdentification` - * @throws ClassCastException if the instance is not `CALocalAccountIdentification` - */ - public CALocalAccountIdentification getCALocalAccountIdentification() throws ClassCastException { - return (CALocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `CZLocalAccountIdentification`. If the actual instance is not `CZLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CZLocalAccountIdentification` - * @throws ClassCastException if the instance is not `CZLocalAccountIdentification` - */ - public CZLocalAccountIdentification getCZLocalAccountIdentification() throws ClassCastException { - return (CZLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `DKLocalAccountIdentification`. If the actual instance is not `DKLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `DKLocalAccountIdentification` - * @throws ClassCastException if the instance is not `DKLocalAccountIdentification` - */ - public DKLocalAccountIdentification getDKLocalAccountIdentification() throws ClassCastException { - return (DKLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `HKLocalAccountIdentification`. If the actual instance is not `HKLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `HKLocalAccountIdentification` - * @throws ClassCastException if the instance is not `HKLocalAccountIdentification` - */ - public HKLocalAccountIdentification getHKLocalAccountIdentification() throws ClassCastException { - return (HKLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `HULocalAccountIdentification`. If the actual instance is not `HULocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `HULocalAccountIdentification` - * @throws ClassCastException if the instance is not `HULocalAccountIdentification` - */ - public HULocalAccountIdentification getHULocalAccountIdentification() throws ClassCastException { - return (HULocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `IbanAccountIdentification`. If the actual instance is not `IbanAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `IbanAccountIdentification` - * @throws ClassCastException if the instance is not `IbanAccountIdentification` - */ - public IbanAccountIdentification getIbanAccountIdentification() throws ClassCastException { - return (IbanAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `NOLocalAccountIdentification`. If the actual instance is not `NOLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `NOLocalAccountIdentification` - * @throws ClassCastException if the instance is not `NOLocalAccountIdentification` - */ - public NOLocalAccountIdentification getNOLocalAccountIdentification() throws ClassCastException { - return (NOLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `NZLocalAccountIdentification`. If the actual instance is not `NZLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `NZLocalAccountIdentification` - * @throws ClassCastException if the instance is not `NZLocalAccountIdentification` - */ - public NZLocalAccountIdentification getNZLocalAccountIdentification() throws ClassCastException { - return (NZLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `NumberAndBicAccountIdentification`. If the actual instance is not `NumberAndBicAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `NumberAndBicAccountIdentification` - * @throws ClassCastException if the instance is not `NumberAndBicAccountIdentification` - */ - public NumberAndBicAccountIdentification getNumberAndBicAccountIdentification() throws ClassCastException { - return (NumberAndBicAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `PLLocalAccountIdentification`. If the actual instance is not `PLLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PLLocalAccountIdentification` - * @throws ClassCastException if the instance is not `PLLocalAccountIdentification` - */ - public PLLocalAccountIdentification getPLLocalAccountIdentification() throws ClassCastException { - return (PLLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `SELocalAccountIdentification`. If the actual instance is not `SELocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `SELocalAccountIdentification` - * @throws ClassCastException if the instance is not `SELocalAccountIdentification` - */ - public SELocalAccountIdentification getSELocalAccountIdentification() throws ClassCastException { - return (SELocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `SGLocalAccountIdentification`. If the actual instance is not `SGLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `SGLocalAccountIdentification` - * @throws ClassCastException if the instance is not `SGLocalAccountIdentification` - */ - public SGLocalAccountIdentification getSGLocalAccountIdentification() throws ClassCastException { - return (SGLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `UKLocalAccountIdentification`. If the actual instance is not `UKLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `UKLocalAccountIdentification` - * @throws ClassCastException if the instance is not `UKLocalAccountIdentification` - */ - public UKLocalAccountIdentification getUKLocalAccountIdentification() throws ClassCastException { - return (UKLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `USLocalAccountIdentification`. If the actual instance is not `USLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `USLocalAccountIdentification` - * @throws ClassCastException if the instance is not `USLocalAccountIdentification` - */ - public USLocalAccountIdentification getUSLocalAccountIdentification() throws ClassCastException { - return (USLocalAccountIdentification)super.getActualInstance(); - } - - - /** - * Create an instance of BankAccountIdentificationValidationRequestAccountIdentification given an JSON string - * - * @param jsonString JSON string - * @return An instance of BankAccountIdentificationValidationRequestAccountIdentification - * @throws IOException if the JSON string is invalid with respect to BankAccountIdentificationValidationRequestAccountIdentification - */ - public static BankAccountIdentificationValidationRequestAccountIdentification fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, BankAccountIdentificationValidationRequestAccountIdentification.class); - } - - /** - * Convert an instance of BankAccountIdentificationValidationRequestAccountIdentification to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); - } - + public BankAccountIdentificationValidationRequestAccountIdentification getNullValue( + DeserializationContext ctxt) throws JsonMappingException { + throw new JsonMappingException( + ctxt.getParser(), + "BankAccountIdentificationValidationRequestAccountIdentification cannot be null"); + } + } + + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public BankAccountIdentificationValidationRequestAccountIdentification() { + super("oneOf", Boolean.FALSE); + } + + public BankAccountIdentificationValidationRequestAccountIdentification( + AULocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountIdentificationValidationRequestAccountIdentification( + BRLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountIdentificationValidationRequestAccountIdentification( + CALocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountIdentificationValidationRequestAccountIdentification( + CZLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountIdentificationValidationRequestAccountIdentification( + DKLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountIdentificationValidationRequestAccountIdentification( + HKLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountIdentificationValidationRequestAccountIdentification( + HULocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountIdentificationValidationRequestAccountIdentification( + IbanAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountIdentificationValidationRequestAccountIdentification( + NOLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountIdentificationValidationRequestAccountIdentification( + NZLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountIdentificationValidationRequestAccountIdentification( + NumberAndBicAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountIdentificationValidationRequestAccountIdentification( + PLLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountIdentificationValidationRequestAccountIdentification( + SELocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountIdentificationValidationRequestAccountIdentification( + SGLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountIdentificationValidationRequestAccountIdentification( + UKLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountIdentificationValidationRequestAccountIdentification( + USLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("AULocalAccountIdentification", new GenericType() {}); + schemas.put("BRLocalAccountIdentification", new GenericType() {}); + schemas.put("CALocalAccountIdentification", new GenericType() {}); + schemas.put("CZLocalAccountIdentification", new GenericType() {}); + schemas.put("DKLocalAccountIdentification", new GenericType() {}); + schemas.put("HKLocalAccountIdentification", new GenericType() {}); + schemas.put("HULocalAccountIdentification", new GenericType() {}); + schemas.put("IbanAccountIdentification", new GenericType() {}); + schemas.put("NOLocalAccountIdentification", new GenericType() {}); + schemas.put("NZLocalAccountIdentification", new GenericType() {}); + schemas.put( + "NumberAndBicAccountIdentification", + new GenericType() {}); + schemas.put("PLLocalAccountIdentification", new GenericType() {}); + schemas.put("SELocalAccountIdentification", new GenericType() {}); + schemas.put("SGLocalAccountIdentification", new GenericType() {}); + schemas.put("UKLocalAccountIdentification", new GenericType() {}); + schemas.put("USLocalAccountIdentification", new GenericType() {}); + JSON.registerDescendants( + BankAccountIdentificationValidationRequestAccountIdentification.class, + Collections.unmodifiableMap(schemas)); + } + + @Override + public Map> getSchemas() { + return BankAccountIdentificationValidationRequestAccountIdentification.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check the instance parameter is valid + * against the oneOf child schemas: AULocalAccountIdentification, BRLocalAccountIdentification, + * CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, + * HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, + * NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, + * PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, + * UKLocalAccountIdentification, USLocalAccountIdentification + * + *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a + * composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(AULocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(BRLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(CALocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(CZLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(DKLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(HKLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(HULocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(IbanAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(NOLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(NZLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(NumberAndBicAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(PLLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(SELocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(SGLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(UKLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(USLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException( + "Invalid instance type. Must be AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification"); + } + + /** + * Get the actual instance, which can be the following: AULocalAccountIdentification, + * BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, + * DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, + * IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, + * NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, + * SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification + * + * @return The actual instance (AULocalAccountIdentification, BRLocalAccountIdentification, + * CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, + * HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, + * NOLocalAccountIdentification, NZLocalAccountIdentification, + * NumberAndBicAccountIdentification, PLLocalAccountIdentification, + * SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, + * USLocalAccountIdentification) + */ + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `AULocalAccountIdentification`. If the actual instance is not + * `AULocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `AULocalAccountIdentification` + * @throws ClassCastException if the instance is not `AULocalAccountIdentification` + */ + public AULocalAccountIdentification getAULocalAccountIdentification() throws ClassCastException { + return (AULocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `BRLocalAccountIdentification`. If the actual instance is not + * `BRLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `BRLocalAccountIdentification` + * @throws ClassCastException if the instance is not `BRLocalAccountIdentification` + */ + public BRLocalAccountIdentification getBRLocalAccountIdentification() throws ClassCastException { + return (BRLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `CALocalAccountIdentification`. If the actual instance is not + * `CALocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `CALocalAccountIdentification` + * @throws ClassCastException if the instance is not `CALocalAccountIdentification` + */ + public CALocalAccountIdentification getCALocalAccountIdentification() throws ClassCastException { + return (CALocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `CZLocalAccountIdentification`. If the actual instance is not + * `CZLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `CZLocalAccountIdentification` + * @throws ClassCastException if the instance is not `CZLocalAccountIdentification` + */ + public CZLocalAccountIdentification getCZLocalAccountIdentification() throws ClassCastException { + return (CZLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `DKLocalAccountIdentification`. If the actual instance is not + * `DKLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `DKLocalAccountIdentification` + * @throws ClassCastException if the instance is not `DKLocalAccountIdentification` + */ + public DKLocalAccountIdentification getDKLocalAccountIdentification() throws ClassCastException { + return (DKLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `HKLocalAccountIdentification`. If the actual instance is not + * `HKLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `HKLocalAccountIdentification` + * @throws ClassCastException if the instance is not `HKLocalAccountIdentification` + */ + public HKLocalAccountIdentification getHKLocalAccountIdentification() throws ClassCastException { + return (HKLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `HULocalAccountIdentification`. If the actual instance is not + * `HULocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `HULocalAccountIdentification` + * @throws ClassCastException if the instance is not `HULocalAccountIdentification` + */ + public HULocalAccountIdentification getHULocalAccountIdentification() throws ClassCastException { + return (HULocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `IbanAccountIdentification`. If the actual instance is not + * `IbanAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `IbanAccountIdentification` + * @throws ClassCastException if the instance is not `IbanAccountIdentification` + */ + public IbanAccountIdentification getIbanAccountIdentification() throws ClassCastException { + return (IbanAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `NOLocalAccountIdentification`. If the actual instance is not + * `NOLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `NOLocalAccountIdentification` + * @throws ClassCastException if the instance is not `NOLocalAccountIdentification` + */ + public NOLocalAccountIdentification getNOLocalAccountIdentification() throws ClassCastException { + return (NOLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `NZLocalAccountIdentification`. If the actual instance is not + * `NZLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `NZLocalAccountIdentification` + * @throws ClassCastException if the instance is not `NZLocalAccountIdentification` + */ + public NZLocalAccountIdentification getNZLocalAccountIdentification() throws ClassCastException { + return (NZLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `NumberAndBicAccountIdentification`. If the actual instance is not + * `NumberAndBicAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `NumberAndBicAccountIdentification` + * @throws ClassCastException if the instance is not `NumberAndBicAccountIdentification` + */ + public NumberAndBicAccountIdentification getNumberAndBicAccountIdentification() + throws ClassCastException { + return (NumberAndBicAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `PLLocalAccountIdentification`. If the actual instance is not + * `PLLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `PLLocalAccountIdentification` + * @throws ClassCastException if the instance is not `PLLocalAccountIdentification` + */ + public PLLocalAccountIdentification getPLLocalAccountIdentification() throws ClassCastException { + return (PLLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `SELocalAccountIdentification`. If the actual instance is not + * `SELocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `SELocalAccountIdentification` + * @throws ClassCastException if the instance is not `SELocalAccountIdentification` + */ + public SELocalAccountIdentification getSELocalAccountIdentification() throws ClassCastException { + return (SELocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `SGLocalAccountIdentification`. If the actual instance is not + * `SGLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `SGLocalAccountIdentification` + * @throws ClassCastException if the instance is not `SGLocalAccountIdentification` + */ + public SGLocalAccountIdentification getSGLocalAccountIdentification() throws ClassCastException { + return (SGLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `UKLocalAccountIdentification`. If the actual instance is not + * `UKLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `UKLocalAccountIdentification` + * @throws ClassCastException if the instance is not `UKLocalAccountIdentification` + */ + public UKLocalAccountIdentification getUKLocalAccountIdentification() throws ClassCastException { + return (UKLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `USLocalAccountIdentification`. If the actual instance is not + * `USLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `USLocalAccountIdentification` + * @throws ClassCastException if the instance is not `USLocalAccountIdentification` + */ + public USLocalAccountIdentification getUSLocalAccountIdentification() throws ClassCastException { + return (USLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Create an instance of BankAccountIdentificationValidationRequestAccountIdentification given an + * JSON string + * + * @param jsonString JSON string + * @return An instance of BankAccountIdentificationValidationRequestAccountIdentification + * @throws IOException if the JSON string is invalid with respect to + * BankAccountIdentificationValidationRequestAccountIdentification + */ + public static BankAccountIdentificationValidationRequestAccountIdentification fromJson( + String jsonString) throws IOException { + return JSON.getMapper() + .readValue( + jsonString, BankAccountIdentificationValidationRequestAccountIdentification.class); + } + + /** + * Convert an instance of BankAccountIdentificationValidationRequestAccountIdentification to an + * JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } } diff --git a/src/main/java/com/adyen/model/balanceplatform/BankAccountModel.java b/src/main/java/com/adyen/model/balanceplatform/BankAccountModel.java index 7c0ce1977..821cb6521 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BankAccountModel.java +++ b/src/main/java/com/adyen/model/balanceplatform/BankAccountModel.java @@ -2,41 +2,37 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * BankAccountModel - */ -@JsonPropertyOrder({ - BankAccountModel.JSON_PROPERTY_FORM_FACTOR -}) - +/** BankAccountModel */ +@JsonPropertyOrder({BankAccountModel.JSON_PROPERTY_FORM_FACTOR}) public class BankAccountModel { /** - * Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. + * Business accounts with a `formFactor` value of **physical** are business accounts + * issued under the central bank of that country. The default value is **physical** for NL, US, + * and UK business accounts. Adyen creates a local IBAN for business accounts when the + * `formFactor` value is set to **virtual**. The local IBANs that are supported are for + * DE and FR, which reference a physical NL account, with funds being routed through the central + * bank of NL. */ public enum FormFactorEnum { - PHYSICAL(String.valueOf("physical")), UNKNOWN(String.valueOf("unknown")), @@ -48,7 +44,7 @@ public enum FormFactorEnum { private String value; FormFactorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +65,11 @@ public static FormFactorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FormFactorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FormFactorEnum.values())); + LOG.warning( + "FormFactorEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FormFactorEnum.values())); return null; } } @@ -77,13 +77,22 @@ public static FormFactorEnum fromValue(String value) { public static final String JSON_PROPERTY_FORM_FACTOR = "formFactor"; private FormFactorEnum formFactor; - public BankAccountModel() { - } + public BankAccountModel() {} /** - * Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. + * Business accounts with a `formFactor` value of **physical** are business accounts + * issued under the central bank of that country. The default value is **physical** for NL, US, + * and UK business accounts. Adyen creates a local IBAN for business accounts when the + * `formFactor` value is set to **virtual**. The local IBANs that are supported are for + * DE and FR, which reference a physical NL account, with funds being routed through the central + * bank of NL. * - * @param formFactor Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. + * @param formFactor Business accounts with a `formFactor` value of **physical** are + * business accounts issued under the central bank of that country. The default value is + * **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business + * accounts when the `formFactor` value is set to **virtual**. The local IBANs that + * are supported are for DE and FR, which reference a physical NL account, with funds being + * routed through the central bank of NL. * @return the current {@code BankAccountModel} instance, allowing for method chaining */ public BankAccountModel formFactor(FormFactorEnum formFactor) { @@ -92,8 +101,19 @@ public BankAccountModel formFactor(FormFactorEnum formFactor) { } /** - * Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. - * @return formFactor Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. + * Business accounts with a `formFactor` value of **physical** are business accounts + * issued under the central bank of that country. The default value is **physical** for NL, US, + * and UK business accounts. Adyen creates a local IBAN for business accounts when the + * `formFactor` value is set to **virtual**. The local IBANs that are supported are for + * DE and FR, which reference a physical NL account, with funds being routed through the central + * bank of NL. + * + * @return formFactor Business accounts with a `formFactor` value of **physical** are + * business accounts issued under the central bank of that country. The default value is + * **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business + * accounts when the `formFactor` value is set to **virtual**. The local IBANs that + * are supported are for DE and FR, which reference a physical NL account, with funds being + * routed through the central bank of NL. */ @JsonProperty(JSON_PROPERTY_FORM_FACTOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,9 +122,19 @@ public FormFactorEnum getFormFactor() { } /** - * Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. + * Business accounts with a `formFactor` value of **physical** are business accounts + * issued under the central bank of that country. The default value is **physical** for NL, US, + * and UK business accounts. Adyen creates a local IBAN for business accounts when the + * `formFactor` value is set to **virtual**. The local IBANs that are supported are for + * DE and FR, which reference a physical NL account, with funds being routed through the central + * bank of NL. * - * @param formFactor Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. + * @param formFactor Business accounts with a `formFactor` value of **physical** are + * business accounts issued under the central bank of that country. The default value is + * **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business + * accounts when the `formFactor` value is set to **virtual**. The local IBANs that + * are supported are for DE and FR, which reference a physical NL account, with funds being + * routed through the central bank of NL. */ @JsonProperty(JSON_PROPERTY_FORM_FACTOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,9 +142,7 @@ public void setFormFactor(FormFactorEnum formFactor) { this.formFactor = formFactor; } - /** - * Return true if this BankAccountModel object is equal to o. - */ + /** Return true if this BankAccountModel object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -142,8 +170,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -152,7 +179,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BankAccountModel given an JSON string * * @param jsonString JSON string @@ -162,11 +189,12 @@ private String toIndentedString(Object o) { public static BankAccountModel fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankAccountModel.class); } -/** - * Convert an instance of BankAccountModel to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BankAccountModel to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BankIdentification.java b/src/main/java/com/adyen/model/balanceplatform/BankIdentification.java index a5cf184d4..7c393dbe2 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BankIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/BankIdentification.java @@ -2,37 +2,31 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * BankIdentification - */ +/** BankIdentification */ @JsonPropertyOrder({ BankIdentification.JSON_PROPERTY_COUNTRY, BankIdentification.JSON_PROPERTY_IDENTIFICATION, BankIdentification.JSON_PROPERTY_IDENTIFICATION_TYPE }) - public class BankIdentification { public static final String JSON_PROPERTY_COUNTRY = "country"; private String country; @@ -41,10 +35,10 @@ public class BankIdentification { private String identification; /** - * The type of the identification. Possible values: **iban**, **routingNumber**, **sortCode**, **bic**. + * The type of the identification. Possible values: **iban**, **routingNumber**, **sortCode**, + * **bic**. */ public enum IdentificationTypeEnum { - BIC(String.valueOf("bic")), IBAN(String.valueOf("iban")), @@ -58,7 +52,7 @@ public enum IdentificationTypeEnum { private String value; IdentificationTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -79,7 +73,11 @@ public static IdentificationTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("IdentificationTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(IdentificationTypeEnum.values())); + LOG.warning( + "IdentificationTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(IdentificationTypeEnum.values())); return null; } } @@ -87,13 +85,14 @@ public static IdentificationTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_IDENTIFICATION_TYPE = "identificationType"; private IdentificationTypeEnum identificationType; - public BankIdentification() { - } + public BankIdentification() {} /** - * Two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. + * Two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country + * code. * - * @param country Two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. + * @param country Two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. * @return the current {@code BankIdentification} instance, allowing for method chaining */ public BankIdentification country(String country) { @@ -102,8 +101,11 @@ public BankIdentification country(String country) { } /** - * Two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. - * @return country Two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. + * Two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country + * code. + * + * @return country Two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,9 +114,11 @@ public String getCountry() { } /** - * Two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. + * Two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country + * code. * - * @param country Two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. + * @param country Two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,6 +139,7 @@ public BankIdentification identification(String identification) { /** * The bank identification code. + * * @return identification The bank identification code. */ @JsonProperty(JSON_PROPERTY_IDENTIFICATION) @@ -155,9 +160,11 @@ public void setIdentification(String identification) { } /** - * The type of the identification. Possible values: **iban**, **routingNumber**, **sortCode**, **bic**. + * The type of the identification. Possible values: **iban**, **routingNumber**, **sortCode**, + * **bic**. * - * @param identificationType The type of the identification. Possible values: **iban**, **routingNumber**, **sortCode**, **bic**. + * @param identificationType The type of the identification. Possible values: **iban**, + * **routingNumber**, **sortCode**, **bic**. * @return the current {@code BankIdentification} instance, allowing for method chaining */ public BankIdentification identificationType(IdentificationTypeEnum identificationType) { @@ -166,8 +173,11 @@ public BankIdentification identificationType(IdentificationTypeEnum identificati } /** - * The type of the identification. Possible values: **iban**, **routingNumber**, **sortCode**, **bic**. - * @return identificationType The type of the identification. Possible values: **iban**, **routingNumber**, **sortCode**, **bic**. + * The type of the identification. Possible values: **iban**, **routingNumber**, **sortCode**, + * **bic**. + * + * @return identificationType The type of the identification. Possible values: **iban**, + * **routingNumber**, **sortCode**, **bic**. */ @JsonProperty(JSON_PROPERTY_IDENTIFICATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,9 +186,11 @@ public IdentificationTypeEnum getIdentificationType() { } /** - * The type of the identification. Possible values: **iban**, **routingNumber**, **sortCode**, **bic**. + * The type of the identification. Possible values: **iban**, **routingNumber**, **sortCode**, + * **bic**. * - * @param identificationType The type of the identification. Possible values: **iban**, **routingNumber**, **sortCode**, **bic**. + * @param identificationType The type of the identification. Possible values: **iban**, + * **routingNumber**, **sortCode**, **bic**. */ @JsonProperty(JSON_PROPERTY_IDENTIFICATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,9 +198,7 @@ public void setIdentificationType(IdentificationTypeEnum identificationType) { this.identificationType = identificationType; } - /** - * Return true if this BankIdentification object is equal to o. - */ + /** Return true if this BankIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -198,9 +208,9 @@ public boolean equals(Object o) { return false; } BankIdentification bankIdentification = (BankIdentification) o; - return Objects.equals(this.country, bankIdentification.country) && - Objects.equals(this.identification, bankIdentification.identification) && - Objects.equals(this.identificationType, bankIdentification.identificationType); + return Objects.equals(this.country, bankIdentification.country) + && Objects.equals(this.identification, bankIdentification.identification) + && Objects.equals(this.identificationType, bankIdentification.identificationType); } @Override @@ -220,8 +230,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -230,21 +239,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BankIdentification given an JSON string * * @param jsonString JSON string * @return An instance of BankIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to BankIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BankIdentification */ public static BankIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankIdentification.class); } -/** - * Convert an instance of BankIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BankIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BrandVariantsRestriction.java b/src/main/java/com/adyen/model/balanceplatform/BrandVariantsRestriction.java index 57de76a71..fc760cce2 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BrandVariantsRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/BrandVariantsRestriction.java @@ -2,38 +2,28 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * BrandVariantsRestriction - */ +/** BrandVariantsRestriction */ @JsonPropertyOrder({ BrandVariantsRestriction.JSON_PROPERTY_OPERATION, BrandVariantsRestriction.JSON_PROPERTY_VALUE }) - public class BrandVariantsRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -41,8 +31,7 @@ public class BrandVariantsRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private List value; - public BrandVariantsRestriction() { - } + public BrandVariantsRestriction() {} /** * Defines how the condition must be evaluated. @@ -57,6 +46,7 @@ public BrandVariantsRestriction operation(String operation) { /** * Defines how the condition must be evaluated. + * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -77,9 +67,19 @@ public void setOperation(String operation) { } /** - * List of card brand variants. Possible values: - **mc**, **mccredit**, **mccommercialcredit_b2b**, **mcdebit**, **mcbusinessdebit**, **mcbusinessworlddebit**, **mcprepaid**, **mcmaestro** - **visa**, **visacredit**, **visadebit**, **visaprepaid**. You can specify a rule for a generic variant. For example, to create a rule for all Mastercard payment instruments, use **mc**. The rule is applied to all payment instruments under **mc**, such as **mcbusinessdebit** and **mcdebit**. + * List of card brand variants. Possible values: - **mc**, **mccredit**, + * **mccommercialcredit_b2b**, **mcdebit**, **mcbusinessdebit**, **mcbusinessworlddebit**, + * **mcprepaid**, **mcmaestro** - **visa**, **visacredit**, **visadebit**, **visaprepaid**. You + * can specify a rule for a generic variant. For example, to create a rule for all Mastercard + * payment instruments, use **mc**. The rule is applied to all payment instruments under **mc**, + * such as **mcbusinessdebit** and **mcdebit**. * - * @param value List of card brand variants. Possible values: - **mc**, **mccredit**, **mccommercialcredit_b2b**, **mcdebit**, **mcbusinessdebit**, **mcbusinessworlddebit**, **mcprepaid**, **mcmaestro** - **visa**, **visacredit**, **visadebit**, **visaprepaid**. You can specify a rule for a generic variant. For example, to create a rule for all Mastercard payment instruments, use **mc**. The rule is applied to all payment instruments under **mc**, such as **mcbusinessdebit** and **mcdebit**. + * @param value List of card brand variants. Possible values: - **mc**, **mccredit**, + * **mccommercialcredit_b2b**, **mcdebit**, **mcbusinessdebit**, **mcbusinessworlddebit**, + * **mcprepaid**, **mcmaestro** - **visa**, **visacredit**, **visadebit**, **visaprepaid**. + * You can specify a rule for a generic variant. For example, to create a rule for all + * Mastercard payment instruments, use **mc**. The rule is applied to all payment instruments + * under **mc**, such as **mcbusinessdebit** and **mcdebit**. * @return the current {@code BrandVariantsRestriction} instance, allowing for method chaining */ public BrandVariantsRestriction value(List value) { @@ -96,8 +96,19 @@ public BrandVariantsRestriction addValueItem(String valueItem) { } /** - * List of card brand variants. Possible values: - **mc**, **mccredit**, **mccommercialcredit_b2b**, **mcdebit**, **mcbusinessdebit**, **mcbusinessworlddebit**, **mcprepaid**, **mcmaestro** - **visa**, **visacredit**, **visadebit**, **visaprepaid**. You can specify a rule for a generic variant. For example, to create a rule for all Mastercard payment instruments, use **mc**. The rule is applied to all payment instruments under **mc**, such as **mcbusinessdebit** and **mcdebit**. - * @return value List of card brand variants. Possible values: - **mc**, **mccredit**, **mccommercialcredit_b2b**, **mcdebit**, **mcbusinessdebit**, **mcbusinessworlddebit**, **mcprepaid**, **mcmaestro** - **visa**, **visacredit**, **visadebit**, **visaprepaid**. You can specify a rule for a generic variant. For example, to create a rule for all Mastercard payment instruments, use **mc**. The rule is applied to all payment instruments under **mc**, such as **mcbusinessdebit** and **mcdebit**. + * List of card brand variants. Possible values: - **mc**, **mccredit**, + * **mccommercialcredit_b2b**, **mcdebit**, **mcbusinessdebit**, **mcbusinessworlddebit**, + * **mcprepaid**, **mcmaestro** - **visa**, **visacredit**, **visadebit**, **visaprepaid**. You + * can specify a rule for a generic variant. For example, to create a rule for all Mastercard + * payment instruments, use **mc**. The rule is applied to all payment instruments under **mc**, + * such as **mcbusinessdebit** and **mcdebit**. + * + * @return value List of card brand variants. Possible values: - **mc**, **mccredit**, + * **mccommercialcredit_b2b**, **mcdebit**, **mcbusinessdebit**, **mcbusinessworlddebit**, + * **mcprepaid**, **mcmaestro** - **visa**, **visacredit**, **visadebit**, **visaprepaid**. + * You can specify a rule for a generic variant. For example, to create a rule for all + * Mastercard payment instruments, use **mc**. The rule is applied to all payment instruments + * under **mc**, such as **mcbusinessdebit** and **mcdebit**. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +117,19 @@ public List getValue() { } /** - * List of card brand variants. Possible values: - **mc**, **mccredit**, **mccommercialcredit_b2b**, **mcdebit**, **mcbusinessdebit**, **mcbusinessworlddebit**, **mcprepaid**, **mcmaestro** - **visa**, **visacredit**, **visadebit**, **visaprepaid**. You can specify a rule for a generic variant. For example, to create a rule for all Mastercard payment instruments, use **mc**. The rule is applied to all payment instruments under **mc**, such as **mcbusinessdebit** and **mcdebit**. + * List of card brand variants. Possible values: - **mc**, **mccredit**, + * **mccommercialcredit_b2b**, **mcdebit**, **mcbusinessdebit**, **mcbusinessworlddebit**, + * **mcprepaid**, **mcmaestro** - **visa**, **visacredit**, **visadebit**, **visaprepaid**. You + * can specify a rule for a generic variant. For example, to create a rule for all Mastercard + * payment instruments, use **mc**. The rule is applied to all payment instruments under **mc**, + * such as **mcbusinessdebit** and **mcdebit**. * - * @param value List of card brand variants. Possible values: - **mc**, **mccredit**, **mccommercialcredit_b2b**, **mcdebit**, **mcbusinessdebit**, **mcbusinessworlddebit**, **mcprepaid**, **mcmaestro** - **visa**, **visacredit**, **visadebit**, **visaprepaid**. You can specify a rule for a generic variant. For example, to create a rule for all Mastercard payment instruments, use **mc**. The rule is applied to all payment instruments under **mc**, such as **mcbusinessdebit** and **mcdebit**. + * @param value List of card brand variants. Possible values: - **mc**, **mccredit**, + * **mccommercialcredit_b2b**, **mcdebit**, **mcbusinessdebit**, **mcbusinessworlddebit**, + * **mcprepaid**, **mcmaestro** - **visa**, **visacredit**, **visadebit**, **visaprepaid**. + * You can specify a rule for a generic variant. For example, to create a rule for all + * Mastercard payment instruments, use **mc**. The rule is applied to all payment instruments + * under **mc**, such as **mcbusinessdebit** and **mcdebit**. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,9 +137,7 @@ public void setValue(List value) { this.value = value; } - /** - * Return true if this BrandVariantsRestriction object is equal to o. - */ + /** Return true if this BrandVariantsRestriction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -128,8 +147,8 @@ public boolean equals(Object o) { return false; } BrandVariantsRestriction brandVariantsRestriction = (BrandVariantsRestriction) o; - return Objects.equals(this.operation, brandVariantsRestriction.operation) && - Objects.equals(this.value, brandVariantsRestriction.value); + return Objects.equals(this.operation, brandVariantsRestriction.operation) + && Objects.equals(this.value, brandVariantsRestriction.value); } @Override @@ -148,8 +167,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -158,21 +176,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BrandVariantsRestriction given an JSON string * * @param jsonString JSON string * @return An instance of BrandVariantsRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to BrandVariantsRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BrandVariantsRestriction */ - public static BrandVariantsRestriction fromJson(String jsonString) throws JsonProcessingException { + public static BrandVariantsRestriction fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BrandVariantsRestriction.class); } -/** - * Convert an instance of BrandVariantsRestriction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BrandVariantsRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/BulkAddress.java b/src/main/java/com/adyen/model/balanceplatform/BulkAddress.java index fcd29d1b0..aafa0ef66 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BulkAddress.java +++ b/src/main/java/com/adyen/model/balanceplatform/BulkAddress.java @@ -2,31 +2,22 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * BulkAddress - */ +/** BulkAddress */ @JsonPropertyOrder({ BulkAddress.JSON_PROPERTY_CITY, BulkAddress.JSON_PROPERTY_COMPANY, @@ -38,7 +29,6 @@ BulkAddress.JSON_PROPERTY_STATE_OR_PROVINCE, BulkAddress.JSON_PROPERTY_STREET }) - public class BulkAddress { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -67,8 +57,7 @@ public class BulkAddress { public static final String JSON_PROPERTY_STREET = "street"; private String street; - public BulkAddress() { - } + public BulkAddress() {} /** * The name of the city. @@ -83,6 +72,7 @@ public BulkAddress city(String city) { /** * The name of the city. + * * @return city The name of the city. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -115,6 +105,7 @@ public BulkAddress company(String company) { /** * The name of the company. + * * @return company The name of the company. */ @JsonProperty(JSON_PROPERTY_COMPANY) @@ -147,6 +138,7 @@ public BulkAddress country(String country) { /** * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. + * * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @@ -179,6 +171,7 @@ public BulkAddress email(String email) { /** * The email address. + * * @return email The email address. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -211,6 +204,7 @@ public BulkAddress houseNumberOrName(String houseNumberOrName) { /** * The house number or name. + * * @return houseNumberOrName The house number or name. */ @JsonProperty(JSON_PROPERTY_HOUSE_NUMBER_OR_NAME) @@ -243,6 +237,7 @@ public BulkAddress mobile(String mobile) { /** * The full telephone number. + * * @return mobile The full telephone number. */ @JsonProperty(JSON_PROPERTY_MOBILE) @@ -263,9 +258,11 @@ public void setMobile(String mobile) { } /** - * The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries. + * The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all + * other countries. * - * @param postalCode The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries. + * @param postalCode The postal code. Maximum length: * 5 digits for addresses in the US. * 10 + * characters for all other countries. * @return the current {@code BulkAddress} instance, allowing for method chaining */ public BulkAddress postalCode(String postalCode) { @@ -274,8 +271,11 @@ public BulkAddress postalCode(String postalCode) { } /** - * The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries. - * @return postalCode The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries. + * The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all + * other countries. + * + * @return postalCode The postal code. Maximum length: * 5 digits for addresses in the US. * 10 + * characters for all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,9 +284,11 @@ public String getPostalCode() { } /** - * The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries. + * The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all + * other countries. * - * @param postalCode The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries. + * @param postalCode The postal code. Maximum length: * 5 digits for addresses in the US. * 10 + * characters for all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -295,9 +297,11 @@ public void setPostalCode(String postalCode) { } /** - * The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in the US. + * The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in + * the US. * - * @param stateOrProvince The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in the US. + * @param stateOrProvince The two-letter ISO 3166-2 state or province code. Maximum length: 2 + * characters for addresses in the US. * @return the current {@code BulkAddress} instance, allowing for method chaining */ public BulkAddress stateOrProvince(String stateOrProvince) { @@ -306,8 +310,11 @@ public BulkAddress stateOrProvince(String stateOrProvince) { } /** - * The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in the US. - * @return stateOrProvince The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in the US. + * The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in + * the US. + * + * @return stateOrProvince The two-letter ISO 3166-2 state or province code. Maximum length: 2 + * characters for addresses in the US. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -316,9 +323,11 @@ public String getStateOrProvince() { } /** - * The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in the US. + * The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in + * the US. * - * @param stateOrProvince The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in the US. + * @param stateOrProvince The two-letter ISO 3166-2 state or province code. Maximum length: 2 + * characters for addresses in the US. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -339,6 +348,7 @@ public BulkAddress street(String street) { /** * The streetname of the house. + * * @return street The streetname of the house. */ @JsonProperty(JSON_PROPERTY_STREET) @@ -358,9 +368,7 @@ public void setStreet(String street) { this.street = street; } - /** - * Return true if this BulkAddress object is equal to o. - */ + /** Return true if this BulkAddress object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -370,20 +378,29 @@ public boolean equals(Object o) { return false; } BulkAddress bulkAddress = (BulkAddress) o; - return Objects.equals(this.city, bulkAddress.city) && - Objects.equals(this.company, bulkAddress.company) && - Objects.equals(this.country, bulkAddress.country) && - Objects.equals(this.email, bulkAddress.email) && - Objects.equals(this.houseNumberOrName, bulkAddress.houseNumberOrName) && - Objects.equals(this.mobile, bulkAddress.mobile) && - Objects.equals(this.postalCode, bulkAddress.postalCode) && - Objects.equals(this.stateOrProvince, bulkAddress.stateOrProvince) && - Objects.equals(this.street, bulkAddress.street); + return Objects.equals(this.city, bulkAddress.city) + && Objects.equals(this.company, bulkAddress.company) + && Objects.equals(this.country, bulkAddress.country) + && Objects.equals(this.email, bulkAddress.email) + && Objects.equals(this.houseNumberOrName, bulkAddress.houseNumberOrName) + && Objects.equals(this.mobile, bulkAddress.mobile) + && Objects.equals(this.postalCode, bulkAddress.postalCode) + && Objects.equals(this.stateOrProvince, bulkAddress.stateOrProvince) + && Objects.equals(this.street, bulkAddress.street); } @Override public int hashCode() { - return Objects.hash(city, company, country, email, houseNumberOrName, mobile, postalCode, stateOrProvince, street); + return Objects.hash( + city, + company, + country, + email, + houseNumberOrName, + mobile, + postalCode, + stateOrProvince, + street); } @Override @@ -404,8 +421,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -414,7 +430,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BulkAddress given an JSON string * * @param jsonString JSON string @@ -424,11 +440,12 @@ private String toIndentedString(Object o) { public static BulkAddress fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BulkAddress.class); } -/** - * Convert an instance of BulkAddress to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BulkAddress to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CALocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/CALocalAccountIdentification.java index a2eaa1a94..9f3813481 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CALocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/CALocalAccountIdentification.java @@ -2,31 +2,26 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * CALocalAccountIdentification - */ +/** CALocalAccountIdentification */ @JsonPropertyOrder({ CALocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, CALocalAccountIdentification.JSON_PROPERTY_ACCOUNT_TYPE, @@ -34,16 +29,14 @@ CALocalAccountIdentification.JSON_PROPERTY_TRANSIT_NUMBER, CALocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class CALocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ public enum AccountTypeEnum { - CHECKING(String.valueOf("checking")), SAVINGS(String.valueOf("savings")); @@ -53,7 +46,7 @@ public enum AccountTypeEnum { private String value; AccountTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -74,7 +67,11 @@ public static AccountTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AccountTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AccountTypeEnum.values())); + LOG.warning( + "AccountTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AccountTypeEnum.values())); return null; } } @@ -88,11 +85,8 @@ public static AccountTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANSIT_NUMBER = "transitNumber"; private String transitNumber; - /** - * **caLocal** - */ + /** **caLocal** */ public enum TypeEnum { - CALOCAL(String.valueOf("caLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -100,7 +94,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -121,7 +115,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -129,8 +127,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CALocalAccountIdentification() { - } + public CALocalAccountIdentification() {} /** * The 5- to 12-digit bank account number, without separators or whitespace. @@ -145,6 +142,7 @@ public CALocalAccountIdentification accountNumber(String accountNumber) { /** * The 5- to 12-digit bank account number, without separators or whitespace. + * * @return accountNumber The 5- to 12-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -165,9 +163,10 @@ public void setAccountNumber(String accountNumber) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. + * Defaults to **checking**. * @return the current {@code CALocalAccountIdentification} instance, allowing for method chaining */ public CALocalAccountIdentification accountType(AccountTypeEnum accountType) { @@ -176,8 +175,10 @@ public CALocalAccountIdentification accountType(AccountTypeEnum accountType) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. - * @return accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * + * @return accountType The bank account type. Possible values: **checking** or **savings**. + * Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,9 +187,10 @@ public AccountTypeEnum getAccountType() { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. + * Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -209,6 +211,7 @@ public CALocalAccountIdentification institutionNumber(String institutionNumber) /** * The 3-digit institution number, without separators or whitespace. + * * @return institutionNumber The 3-digit institution number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_INSTITUTION_NUMBER) @@ -241,6 +244,7 @@ public CALocalAccountIdentification transitNumber(String transitNumber) { /** * The 5-digit transit number, without separators or whitespace. + * * @return transitNumber The 5-digit transit number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_TRANSIT_NUMBER) @@ -273,6 +277,7 @@ public CALocalAccountIdentification type(TypeEnum type) { /** * **caLocal** + * * @return type **caLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -292,9 +297,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this CALocalAccountIdentification object is equal to o. - */ + /** Return true if this CALocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -304,11 +307,11 @@ public boolean equals(Object o) { return false; } CALocalAccountIdentification caLocalAccountIdentification = (CALocalAccountIdentification) o; - return Objects.equals(this.accountNumber, caLocalAccountIdentification.accountNumber) && - Objects.equals(this.accountType, caLocalAccountIdentification.accountType) && - Objects.equals(this.institutionNumber, caLocalAccountIdentification.institutionNumber) && - Objects.equals(this.transitNumber, caLocalAccountIdentification.transitNumber) && - Objects.equals(this.type, caLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, caLocalAccountIdentification.accountNumber) + && Objects.equals(this.accountType, caLocalAccountIdentification.accountType) + && Objects.equals(this.institutionNumber, caLocalAccountIdentification.institutionNumber) + && Objects.equals(this.transitNumber, caLocalAccountIdentification.transitNumber) + && Objects.equals(this.type, caLocalAccountIdentification.type); } @Override @@ -330,8 +333,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -340,21 +342,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CALocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of CALocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to CALocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CALocalAccountIdentification */ - public static CALocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static CALocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CALocalAccountIdentification.class); } -/** - * Convert an instance of CALocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CALocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CZLocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/CZLocalAccountIdentification.java index 7ebb93a66..ede24669a 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CZLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/CZLocalAccountIdentification.java @@ -2,37 +2,31 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * CZLocalAccountIdentification - */ +/** CZLocalAccountIdentification */ @JsonPropertyOrder({ CZLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, CZLocalAccountIdentification.JSON_PROPERTY_BANK_CODE, CZLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class CZLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -40,11 +34,8 @@ public class CZLocalAccountIdentification { public static final String JSON_PROPERTY_BANK_CODE = "bankCode"; private String bankCode; - /** - * **czLocal** - */ + /** **czLocal** */ public enum TypeEnum { - CZLOCAL(String.valueOf("czLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +43,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +64,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,13 +76,20 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CZLocalAccountIdentification() { - } + public CZLocalAccountIdentification() {} /** - * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) + * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional + * prefix (předčíslí). - The required second part (základní část) which must be at least two + * non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - + * **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, + * normalized) * - * @param accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) + * @param accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following + * format: - The optional prefix (předčíslí). - The required second part (základní část) which + * must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** + * (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** + * (without prefix, normalized) * @return the current {@code CZLocalAccountIdentification} instance, allowing for method chaining */ public CZLocalAccountIdentification accountNumber(String accountNumber) { @@ -96,8 +98,17 @@ public CZLocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) - * @return accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) + * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional + * prefix (předčíslí). - The required second part (základní část) which must be at least two + * non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - + * **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, + * normalized) + * + * @return accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following + * format: - The optional prefix (předčíslí). - The required second part (základní část) which + * must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** + * (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** + * (without prefix, normalized) */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +117,17 @@ public String getAccountNumber() { } /** - * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) + * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional + * prefix (předčíslí). - The required second part (základní část) which must be at least two + * non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - + * **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, + * normalized) * - * @param accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) + * @param accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following + * format: - The optional prefix (předčíslí). - The required second part (základní část) which + * must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** + * (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** + * (without prefix, normalized) */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,6 +148,7 @@ public CZLocalAccountIdentification bankCode(String bankCode) { /** * The 4-digit bank code (Kód banky), without separators or whitespace. + * * @return bankCode The 4-digit bank code (Kód banky), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_BANK_CODE) @@ -161,6 +181,7 @@ public CZLocalAccountIdentification type(TypeEnum type) { /** * **czLocal** + * * @return type **czLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +201,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this CZLocalAccountIdentification object is equal to o. - */ + /** Return true if this CZLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +211,9 @@ public boolean equals(Object o) { return false; } CZLocalAccountIdentification czLocalAccountIdentification = (CZLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, czLocalAccountIdentification.accountNumber) && - Objects.equals(this.bankCode, czLocalAccountIdentification.bankCode) && - Objects.equals(this.type, czLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, czLocalAccountIdentification.accountNumber) + && Objects.equals(this.bankCode, czLocalAccountIdentification.bankCode) + && Objects.equals(this.type, czLocalAccountIdentification.type); } @Override @@ -214,8 +233,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +242,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CZLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of CZLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to CZLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CZLocalAccountIdentification */ - public static CZLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static CZLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CZLocalAccountIdentification.class); } -/** - * Convert an instance of CZLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CZLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CapabilityProblem.java b/src/main/java/com/adyen/model/balanceplatform/CapabilityProblem.java index 9624c1841..e2ad5d9a4 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CapabilityProblem.java +++ b/src/main/java/com/adyen/model/balanceplatform/CapabilityProblem.java @@ -2,40 +2,28 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.CapabilityProblemEntity; -import com.adyen.model.balanceplatform.VerificationError; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * CapabilityProblem - */ +/** CapabilityProblem */ @JsonPropertyOrder({ CapabilityProblem.JSON_PROPERTY_ENTITY, CapabilityProblem.JSON_PROPERTY_VERIFICATION_ERRORS }) - public class CapabilityProblem { public static final String JSON_PROPERTY_ENTITY = "entity"; private CapabilityProblemEntity entity; @@ -43,13 +31,12 @@ public class CapabilityProblem { public static final String JSON_PROPERTY_VERIFICATION_ERRORS = "verificationErrors"; private List verificationErrors; - public CapabilityProblem() { - } + public CapabilityProblem() {} /** * entity * - * @param entity + * @param entity * @return the current {@code CapabilityProblem} instance, allowing for method chaining */ public CapabilityProblem entity(CapabilityProblemEntity entity) { @@ -59,7 +46,8 @@ public CapabilityProblem entity(CapabilityProblemEntity entity) { /** * Get entity - * @return entity + * + * @return entity */ @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,7 +58,7 @@ public CapabilityProblemEntity getEntity() { /** * entity * - * @param entity + * @param entity */ @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,6 +87,7 @@ public CapabilityProblem addVerificationErrorsItem(VerificationError verificatio /** * Contains information about the verification error. + * * @return verificationErrors Contains information about the verification error. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_ERRORS) @@ -118,9 +107,7 @@ public void setVerificationErrors(List verificationErrors) { this.verificationErrors = verificationErrors; } - /** - * Return true if this CapabilityProblem object is equal to o. - */ + /** Return true if this CapabilityProblem object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -130,8 +117,8 @@ public boolean equals(Object o) { return false; } CapabilityProblem capabilityProblem = (CapabilityProblem) o; - return Objects.equals(this.entity, capabilityProblem.entity) && - Objects.equals(this.verificationErrors, capabilityProblem.verificationErrors); + return Objects.equals(this.entity, capabilityProblem.entity) + && Objects.equals(this.verificationErrors, capabilityProblem.verificationErrors); } @Override @@ -150,8 +137,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -160,7 +146,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CapabilityProblem given an JSON string * * @param jsonString JSON string @@ -170,11 +156,12 @@ private String toIndentedString(Object o) { public static CapabilityProblem fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapabilityProblem.class); } -/** - * Convert an instance of CapabilityProblem to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CapabilityProblem to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CapabilityProblemEntity.java b/src/main/java/com/adyen/model/balanceplatform/CapabilityProblemEntity.java index 422308015..d57710394 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CapabilityProblemEntity.java +++ b/src/main/java/com/adyen/model/balanceplatform/CapabilityProblemEntity.java @@ -2,41 +2,34 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.CapabilityProblemEntityRecursive; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * CapabilityProblemEntity - */ +/** CapabilityProblemEntity */ @JsonPropertyOrder({ CapabilityProblemEntity.JSON_PROPERTY_DOCUMENTS, CapabilityProblemEntity.JSON_PROPERTY_ID, CapabilityProblemEntity.JSON_PROPERTY_OWNER, CapabilityProblemEntity.JSON_PROPERTY_TYPE }) - public class CapabilityProblemEntity { public static final String JSON_PROPERTY_DOCUMENTS = "documents"; private List documents; @@ -47,11 +40,8 @@ public class CapabilityProblemEntity { public static final String JSON_PROPERTY_OWNER = "owner"; private CapabilityProblemEntityRecursive owner; - /** - * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. - */ + /** Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. */ public enum TypeEnum { - BANKACCOUNT(String.valueOf("BankAccount")), DOCUMENT(String.valueOf("Document")), @@ -63,7 +53,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -84,7 +74,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -92,13 +86,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CapabilityProblemEntity() { - } + public CapabilityProblemEntity() {} /** - * List of document IDs to which the verification errors related to the capabilities correspond to. + * List of document IDs to which the verification errors related to the capabilities correspond + * to. * - * @param documents List of document IDs to which the verification errors related to the capabilities correspond to. + * @param documents List of document IDs to which the verification errors related to the + * capabilities correspond to. * @return the current {@code CapabilityProblemEntity} instance, allowing for method chaining */ public CapabilityProblemEntity documents(List documents) { @@ -115,8 +110,11 @@ public CapabilityProblemEntity addDocumentsItem(String documentsItem) { } /** - * List of document IDs to which the verification errors related to the capabilities correspond to. - * @return documents List of document IDs to which the verification errors related to the capabilities correspond to. + * List of document IDs to which the verification errors related to the capabilities correspond + * to. + * + * @return documents List of document IDs to which the verification errors related to the + * capabilities correspond to. */ @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,9 +123,11 @@ public List getDocuments() { } /** - * List of document IDs to which the verification errors related to the capabilities correspond to. + * List of document IDs to which the verification errors related to the capabilities correspond + * to. * - * @param documents List of document IDs to which the verification errors related to the capabilities correspond to. + * @param documents List of document IDs to which the verification errors related to the + * capabilities correspond to. */ @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,6 +148,7 @@ public CapabilityProblemEntity id(String id) { /** * The ID of the entity. + * * @return id The ID of the entity. */ @JsonProperty(JSON_PROPERTY_ID) @@ -170,7 +171,7 @@ public void setId(String id) { /** * owner * - * @param owner + * @param owner * @return the current {@code CapabilityProblemEntity} instance, allowing for method chaining */ public CapabilityProblemEntity owner(CapabilityProblemEntityRecursive owner) { @@ -180,7 +181,8 @@ public CapabilityProblemEntity owner(CapabilityProblemEntityRecursive owner) { /** * Get owner - * @return owner + * + * @return owner */ @JsonProperty(JSON_PROPERTY_OWNER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,7 +193,7 @@ public CapabilityProblemEntityRecursive getOwner() { /** * owner * - * @param owner + * @param owner */ @JsonProperty(JSON_PROPERTY_OWNER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,9 +202,9 @@ public void setOwner(CapabilityProblemEntityRecursive owner) { } /** - * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. * - * @param type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * @param type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. * @return the current {@code CapabilityProblemEntity} instance, allowing for method chaining */ public CapabilityProblemEntity type(TypeEnum type) { @@ -211,8 +213,9 @@ public CapabilityProblemEntity type(TypeEnum type) { } /** - * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. - * @return type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * + * @return type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,9 +224,9 @@ public TypeEnum getType() { } /** - * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. * - * @param type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * @param type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -231,9 +234,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this CapabilityProblemEntity object is equal to o. - */ + /** Return true if this CapabilityProblemEntity object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -243,10 +244,10 @@ public boolean equals(Object o) { return false; } CapabilityProblemEntity capabilityProblemEntity = (CapabilityProblemEntity) o; - return Objects.equals(this.documents, capabilityProblemEntity.documents) && - Objects.equals(this.id, capabilityProblemEntity.id) && - Objects.equals(this.owner, capabilityProblemEntity.owner) && - Objects.equals(this.type, capabilityProblemEntity.type); + return Objects.equals(this.documents, capabilityProblemEntity.documents) + && Objects.equals(this.id, capabilityProblemEntity.id) + && Objects.equals(this.owner, capabilityProblemEntity.owner) + && Objects.equals(this.type, capabilityProblemEntity.type); } @Override @@ -267,8 +268,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -277,21 +277,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CapabilityProblemEntity given an JSON string * * @param jsonString JSON string * @return An instance of CapabilityProblemEntity - * @throws JsonProcessingException if the JSON string is invalid with respect to CapabilityProblemEntity + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CapabilityProblemEntity */ public static CapabilityProblemEntity fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapabilityProblemEntity.class); } -/** - * Convert an instance of CapabilityProblemEntity to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CapabilityProblemEntity to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CapabilityProblemEntityRecursive.java b/src/main/java/com/adyen/model/balanceplatform/CapabilityProblemEntityRecursive.java index 02f14b2c1..d7acf7623 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CapabilityProblemEntityRecursive.java +++ b/src/main/java/com/adyen/model/balanceplatform/CapabilityProblemEntityRecursive.java @@ -2,40 +2,35 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * CapabilityProblemEntityRecursive - */ +/** CapabilityProblemEntityRecursive */ @JsonPropertyOrder({ CapabilityProblemEntityRecursive.JSON_PROPERTY_DOCUMENTS, CapabilityProblemEntityRecursive.JSON_PROPERTY_ID, CapabilityProblemEntityRecursive.JSON_PROPERTY_TYPE }) @JsonTypeName("CapabilityProblemEntity-recursive") - public class CapabilityProblemEntityRecursive { public static final String JSON_PROPERTY_DOCUMENTS = "documents"; private List documents; @@ -43,11 +38,8 @@ public class CapabilityProblemEntityRecursive { public static final String JSON_PROPERTY_ID = "id"; private String id; - /** - * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. - */ + /** Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. */ public enum TypeEnum { - BANKACCOUNT(String.valueOf("BankAccount")), DOCUMENT(String.valueOf("Document")), @@ -59,7 +51,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -80,7 +72,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -88,14 +84,16 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CapabilityProblemEntityRecursive() { - } + public CapabilityProblemEntityRecursive() {} /** - * List of document IDs to which the verification errors related to the capabilities correspond to. + * List of document IDs to which the verification errors related to the capabilities correspond + * to. * - * @param documents List of document IDs to which the verification errors related to the capabilities correspond to. - * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method chaining + * @param documents List of document IDs to which the verification errors related to the + * capabilities correspond to. + * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method + * chaining */ public CapabilityProblemEntityRecursive documents(List documents) { this.documents = documents; @@ -111,8 +109,11 @@ public CapabilityProblemEntityRecursive addDocumentsItem(String documentsItem) { } /** - * List of document IDs to which the verification errors related to the capabilities correspond to. - * @return documents List of document IDs to which the verification errors related to the capabilities correspond to. + * List of document IDs to which the verification errors related to the capabilities correspond + * to. + * + * @return documents List of document IDs to which the verification errors related to the + * capabilities correspond to. */ @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,9 +122,11 @@ public List getDocuments() { } /** - * List of document IDs to which the verification errors related to the capabilities correspond to. + * List of document IDs to which the verification errors related to the capabilities correspond + * to. * - * @param documents List of document IDs to which the verification errors related to the capabilities correspond to. + * @param documents List of document IDs to which the verification errors related to the + * capabilities correspond to. */ @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,7 +138,8 @@ public void setDocuments(List documents) { * The ID of the entity. * * @param id The ID of the entity. - * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method chaining + * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method + * chaining */ public CapabilityProblemEntityRecursive id(String id) { this.id = id; @@ -144,6 +148,7 @@ public CapabilityProblemEntityRecursive id(String id) { /** * The ID of the entity. + * * @return id The ID of the entity. */ @JsonProperty(JSON_PROPERTY_ID) @@ -164,10 +169,11 @@ public void setId(String id) { } /** - * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. * - * @param type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. - * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method chaining + * @param type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method + * chaining */ public CapabilityProblemEntityRecursive type(TypeEnum type) { this.type = type; @@ -175,8 +181,9 @@ public CapabilityProblemEntityRecursive type(TypeEnum type) { } /** - * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. - * @return type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * + * @return type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,9 +192,9 @@ public TypeEnum getType() { } /** - * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. * - * @param type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * @param type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,9 +202,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this CapabilityProblemEntity-recursive object is equal to o. - */ + /** Return true if this CapabilityProblemEntity-recursive object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -206,10 +211,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CapabilityProblemEntityRecursive capabilityProblemEntityRecursive = (CapabilityProblemEntityRecursive) o; - return Objects.equals(this.documents, capabilityProblemEntityRecursive.documents) && - Objects.equals(this.id, capabilityProblemEntityRecursive.id) && - Objects.equals(this.type, capabilityProblemEntityRecursive.type); + CapabilityProblemEntityRecursive capabilityProblemEntityRecursive = + (CapabilityProblemEntityRecursive) o; + return Objects.equals(this.documents, capabilityProblemEntityRecursive.documents) + && Objects.equals(this.id, capabilityProblemEntityRecursive.id) + && Objects.equals(this.type, capabilityProblemEntityRecursive.type); } @Override @@ -229,8 +235,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -239,21 +244,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CapabilityProblemEntityRecursive given an JSON string * * @param jsonString JSON string * @return An instance of CapabilityProblemEntityRecursive - * @throws JsonProcessingException if the JSON string is invalid with respect to CapabilityProblemEntityRecursive + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CapabilityProblemEntityRecursive */ - public static CapabilityProblemEntityRecursive fromJson(String jsonString) throws JsonProcessingException { + public static CapabilityProblemEntityRecursive fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapabilityProblemEntityRecursive.class); } -/** - * Convert an instance of CapabilityProblemEntityRecursive to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CapabilityProblemEntityRecursive to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CapabilitySettings.java b/src/main/java/com/adyen/model/balanceplatform/CapabilitySettings.java index 1995a6c6f..7d5db1da1 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CapabilitySettings.java +++ b/src/main/java/com/adyen/model/balanceplatform/CapabilitySettings.java @@ -2,36 +2,30 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.Amount; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * CapabilitySettings - */ +/** CapabilitySettings */ @JsonPropertyOrder({ CapabilitySettings.JSON_PROPERTY_AMOUNT_PER_INDUSTRY, CapabilitySettings.JSON_PROPERTY_AUTHORIZED_CARD_USERS, @@ -39,7 +33,6 @@ CapabilitySettings.JSON_PROPERTY_INTERVAL, CapabilitySettings.JSON_PROPERTY_MAX_AMOUNT }) - public class CapabilitySettings { public static final String JSON_PROPERTY_AMOUNT_PER_INDUSTRY = "amountPerIndustry"; private Map amountPerIndustry; @@ -47,11 +40,8 @@ public class CapabilitySettings { public static final String JSON_PROPERTY_AUTHORIZED_CARD_USERS = "authorizedCardUsers"; private Boolean authorizedCardUsers; - /** - * Gets or Sets fundingSource - */ + /** Gets or Sets fundingSource */ public enum FundingSourceEnum { - CREDIT(String.valueOf("credit")), DEBIT(String.valueOf("debit")), @@ -63,7 +53,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -84,7 +74,11 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); + LOG.warning( + "FundingSourceEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -92,11 +86,8 @@ public static FundingSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_FUNDING_SOURCE = "fundingSource"; private List fundingSource; - /** - * - */ + /** */ public enum IntervalEnum { - DAILY(String.valueOf("daily")), MONTHLY(String.valueOf("monthly")), @@ -108,7 +99,7 @@ public enum IntervalEnum { private String value; IntervalEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -129,7 +120,11 @@ public static IntervalEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("IntervalEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(IntervalEnum.values())); + LOG.warning( + "IntervalEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(IntervalEnum.values())); return null; } } @@ -140,13 +135,10 @@ public static IntervalEnum fromValue(String value) { public static final String JSON_PROPERTY_MAX_AMOUNT = "maxAmount"; private Amount maxAmount; - public CapabilitySettings() { - } + public CapabilitySettings() {} /** - * - * - * @param amountPerIndustry + * @param amountPerIndustry * @return the current {@code CapabilitySettings} instance, allowing for method chaining */ public CapabilitySettings amountPerIndustry(Map amountPerIndustry) { @@ -163,8 +155,7 @@ public CapabilitySettings putAmountPerIndustryItem(String key, Amount amountPerI } /** - * - * @return amountPerIndustry + * @return amountPerIndustry */ @JsonProperty(JSON_PROPERTY_AMOUNT_PER_INDUSTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,9 +164,7 @@ public Map getAmountPerIndustry() { } /** - * - * - * @param amountPerIndustry + * @param amountPerIndustry */ @JsonProperty(JSON_PROPERTY_AMOUNT_PER_INDUSTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -184,9 +173,7 @@ public void setAmountPerIndustry(Map amountPerIndustry) { } /** - * - * - * @param authorizedCardUsers + * @param authorizedCardUsers * @return the current {@code CapabilitySettings} instance, allowing for method chaining */ public CapabilitySettings authorizedCardUsers(Boolean authorizedCardUsers) { @@ -195,8 +182,7 @@ public CapabilitySettings authorizedCardUsers(Boolean authorizedCardUsers) { } /** - * - * @return authorizedCardUsers + * @return authorizedCardUsers */ @JsonProperty(JSON_PROPERTY_AUTHORIZED_CARD_USERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -205,9 +191,7 @@ public Boolean getAuthorizedCardUsers() { } /** - * - * - * @param authorizedCardUsers + * @param authorizedCardUsers */ @JsonProperty(JSON_PROPERTY_AUTHORIZED_CARD_USERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -216,9 +200,7 @@ public void setAuthorizedCardUsers(Boolean authorizedCardUsers) { } /** - * - * - * @param fundingSource + * @param fundingSource * @return the current {@code CapabilitySettings} instance, allowing for method chaining */ public CapabilitySettings fundingSource(List fundingSource) { @@ -235,8 +217,7 @@ public CapabilitySettings addFundingSourceItem(FundingSourceEnum fundingSourceIt } /** - * - * @return fundingSource + * @return fundingSource */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -245,9 +226,7 @@ public List getFundingSource() { } /** - * - * - * @param fundingSource + * @param fundingSource */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -256,9 +235,7 @@ public void setFundingSource(List fundingSource) { } /** - * - * - * @param interval + * @param interval * @return the current {@code CapabilitySettings} instance, allowing for method chaining */ public CapabilitySettings interval(IntervalEnum interval) { @@ -267,8 +244,7 @@ public CapabilitySettings interval(IntervalEnum interval) { } /** - * - * @return interval + * @return interval */ @JsonProperty(JSON_PROPERTY_INTERVAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -277,9 +253,7 @@ public IntervalEnum getInterval() { } /** - * - * - * @param interval + * @param interval */ @JsonProperty(JSON_PROPERTY_INTERVAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -290,7 +264,7 @@ public void setInterval(IntervalEnum interval) { /** * maxAmount * - * @param maxAmount + * @param maxAmount * @return the current {@code CapabilitySettings} instance, allowing for method chaining */ public CapabilitySettings maxAmount(Amount maxAmount) { @@ -300,7 +274,8 @@ public CapabilitySettings maxAmount(Amount maxAmount) { /** * Get maxAmount - * @return maxAmount + * + * @return maxAmount */ @JsonProperty(JSON_PROPERTY_MAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -311,7 +286,7 @@ public Amount getMaxAmount() { /** * maxAmount * - * @param maxAmount + * @param maxAmount */ @JsonProperty(JSON_PROPERTY_MAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -319,9 +294,7 @@ public void setMaxAmount(Amount maxAmount) { this.maxAmount = maxAmount; } - /** - * Return true if this CapabilitySettings object is equal to o. - */ + /** Return true if this CapabilitySettings object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -331,11 +304,11 @@ public boolean equals(Object o) { return false; } CapabilitySettings capabilitySettings = (CapabilitySettings) o; - return Objects.equals(this.amountPerIndustry, capabilitySettings.amountPerIndustry) && - Objects.equals(this.authorizedCardUsers, capabilitySettings.authorizedCardUsers) && - Objects.equals(this.fundingSource, capabilitySettings.fundingSource) && - Objects.equals(this.interval, capabilitySettings.interval) && - Objects.equals(this.maxAmount, capabilitySettings.maxAmount); + return Objects.equals(this.amountPerIndustry, capabilitySettings.amountPerIndustry) + && Objects.equals(this.authorizedCardUsers, capabilitySettings.authorizedCardUsers) + && Objects.equals(this.fundingSource, capabilitySettings.fundingSource) + && Objects.equals(this.interval, capabilitySettings.interval) + && Objects.equals(this.maxAmount, capabilitySettings.maxAmount); } @Override @@ -348,7 +321,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CapabilitySettings {\n"); sb.append(" amountPerIndustry: ").append(toIndentedString(amountPerIndustry)).append("\n"); - sb.append(" authorizedCardUsers: ").append(toIndentedString(authorizedCardUsers)).append("\n"); + sb.append(" authorizedCardUsers: ") + .append(toIndentedString(authorizedCardUsers)) + .append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); sb.append(" interval: ").append(toIndentedString(interval)).append("\n"); sb.append(" maxAmount: ").append(toIndentedString(maxAmount)).append("\n"); @@ -357,8 +332,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -367,21 +341,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CapabilitySettings given an JSON string * * @param jsonString JSON string * @return An instance of CapabilitySettings - * @throws JsonProcessingException if the JSON string is invalid with respect to CapabilitySettings + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CapabilitySettings */ public static CapabilitySettings fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapabilitySettings.class); } -/** - * Convert an instance of CapabilitySettings to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CapabilitySettings to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CapitalBalance.java b/src/main/java/com/adyen/model/balanceplatform/CapitalBalance.java index 378e808b6..a506efb74 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CapitalBalance.java +++ b/src/main/java/com/adyen/model/balanceplatform/CapitalBalance.java @@ -2,38 +2,28 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * CapitalBalance - */ +/** CapitalBalance */ @JsonPropertyOrder({ CapitalBalance.JSON_PROPERTY_CURRENCY, CapitalBalance.JSON_PROPERTY_FEE, CapitalBalance.JSON_PROPERTY_PRINCIPAL, CapitalBalance.JSON_PROPERTY_TOTAL }) - public class CapitalBalance { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -47,13 +37,14 @@ public class CapitalBalance { public static final String JSON_PROPERTY_TOTAL = "total"; private Long total; - public CapitalBalance() { - } + public CapitalBalance() {} /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code CapitalBalance} instance, allowing for method chaining */ public CapitalBalance currency(String currency) { @@ -62,8 +53,11 @@ public CapitalBalance currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -72,9 +66,11 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -95,6 +91,7 @@ public CapitalBalance fee(Long fee) { /** * Fee amount. + * * @return fee Fee amount. */ @JsonProperty(JSON_PROPERTY_FEE) @@ -127,6 +124,7 @@ public CapitalBalance principal(Long principal) { /** * Principal amount. + * * @return principal Principal amount. */ @JsonProperty(JSON_PROPERTY_PRINCIPAL) @@ -159,6 +157,7 @@ public CapitalBalance total(Long total) { /** * Total amount. A sum of principal amount and fee amount. + * * @return total Total amount. A sum of principal amount and fee amount. */ @JsonProperty(JSON_PROPERTY_TOTAL) @@ -178,9 +177,7 @@ public void setTotal(Long total) { this.total = total; } - /** - * Return true if this CapitalBalance object is equal to o. - */ + /** Return true if this CapitalBalance object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -190,10 +187,10 @@ public boolean equals(Object o) { return false; } CapitalBalance capitalBalance = (CapitalBalance) o; - return Objects.equals(this.currency, capitalBalance.currency) && - Objects.equals(this.fee, capitalBalance.fee) && - Objects.equals(this.principal, capitalBalance.principal) && - Objects.equals(this.total, capitalBalance.total); + return Objects.equals(this.currency, capitalBalance.currency) + && Objects.equals(this.fee, capitalBalance.fee) + && Objects.equals(this.principal, capitalBalance.principal) + && Objects.equals(this.total, capitalBalance.total); } @Override @@ -214,8 +211,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,7 +220,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CapitalBalance given an JSON string * * @param jsonString JSON string @@ -234,11 +230,12 @@ private String toIndentedString(Object o) { public static CapitalBalance fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapitalBalance.class); } -/** - * Convert an instance of CapitalBalance to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CapitalBalance to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CapitalGrantAccount.java b/src/main/java/com/adyen/model/balanceplatform/CapitalGrantAccount.java index f03a11222..53c3fcdce 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CapitalGrantAccount.java +++ b/src/main/java/com/adyen/model/balanceplatform/CapitalGrantAccount.java @@ -2,42 +2,30 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.CapitalBalance; -import com.adyen.model.balanceplatform.GrantLimit; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * CapitalGrantAccount - */ +/** CapitalGrantAccount */ @JsonPropertyOrder({ CapitalGrantAccount.JSON_PROPERTY_BALANCES, CapitalGrantAccount.JSON_PROPERTY_FUNDING_BALANCE_ACCOUNT_ID, CapitalGrantAccount.JSON_PROPERTY_ID, CapitalGrantAccount.JSON_PROPERTY_LIMITS }) - public class CapitalGrantAccount { public static final String JSON_PROPERTY_BALANCES = "balances"; private List balances; @@ -51,8 +39,7 @@ public class CapitalGrantAccount { public static final String JSON_PROPERTY_LIMITS = "limits"; private List limits; - public CapitalGrantAccount() { - } + public CapitalGrantAccount() {} /** * The balances of the grant account. @@ -75,6 +62,7 @@ public CapitalGrantAccount addBalancesItem(CapitalBalance balancesItem) { /** * The balances of the grant account. + * * @return balances The balances of the grant account. */ @JsonProperty(JSON_PROPERTY_BALANCES) @@ -97,7 +85,8 @@ public void setBalances(List balances) { /** * The unique identifier of the balance account used to fund the grant. * - * @param fundingBalanceAccountId The unique identifier of the balance account used to fund the grant. + * @param fundingBalanceAccountId The unique identifier of the balance account used to fund the + * grant. * @return the current {@code CapitalGrantAccount} instance, allowing for method chaining */ public CapitalGrantAccount fundingBalanceAccountId(String fundingBalanceAccountId) { @@ -107,7 +96,9 @@ public CapitalGrantAccount fundingBalanceAccountId(String fundingBalanceAccountI /** * The unique identifier of the balance account used to fund the grant. - * @return fundingBalanceAccountId The unique identifier of the balance account used to fund the grant. + * + * @return fundingBalanceAccountId The unique identifier of the balance account used to fund the + * grant. */ @JsonProperty(JSON_PROPERTY_FUNDING_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,7 +109,8 @@ public String getFundingBalanceAccountId() { /** * The unique identifier of the balance account used to fund the grant. * - * @param fundingBalanceAccountId The unique identifier of the balance account used to fund the grant. + * @param fundingBalanceAccountId The unique identifier of the balance account used to fund the + * grant. */ @JsonProperty(JSON_PROPERTY_FUNDING_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,6 +131,7 @@ public CapitalGrantAccount id(String id) { /** * The identifier of the grant account. + * * @return id The identifier of the grant account. */ @JsonProperty(JSON_PROPERTY_ID) @@ -179,6 +172,7 @@ public CapitalGrantAccount addLimitsItem(GrantLimit limitsItem) { /** * The limits of the grant account. + * * @return limits The limits of the grant account. */ @JsonProperty(JSON_PROPERTY_LIMITS) @@ -198,9 +192,7 @@ public void setLimits(List limits) { this.limits = limits; } - /** - * Return true if this CapitalGrantAccount object is equal to o. - */ + /** Return true if this CapitalGrantAccount object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -210,10 +202,10 @@ public boolean equals(Object o) { return false; } CapitalGrantAccount capitalGrantAccount = (CapitalGrantAccount) o; - return Objects.equals(this.balances, capitalGrantAccount.balances) && - Objects.equals(this.fundingBalanceAccountId, capitalGrantAccount.fundingBalanceAccountId) && - Objects.equals(this.id, capitalGrantAccount.id) && - Objects.equals(this.limits, capitalGrantAccount.limits); + return Objects.equals(this.balances, capitalGrantAccount.balances) + && Objects.equals(this.fundingBalanceAccountId, capitalGrantAccount.fundingBalanceAccountId) + && Objects.equals(this.id, capitalGrantAccount.id) + && Objects.equals(this.limits, capitalGrantAccount.limits); } @Override @@ -226,7 +218,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CapitalGrantAccount {\n"); sb.append(" balances: ").append(toIndentedString(balances)).append("\n"); - sb.append(" fundingBalanceAccountId: ").append(toIndentedString(fundingBalanceAccountId)).append("\n"); + sb.append(" fundingBalanceAccountId: ") + .append(toIndentedString(fundingBalanceAccountId)) + .append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" limits: ").append(toIndentedString(limits)).append("\n"); sb.append("}"); @@ -234,8 +228,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -244,21 +237,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CapitalGrantAccount given an JSON string * * @param jsonString JSON string * @return An instance of CapitalGrantAccount - * @throws JsonProcessingException if the JSON string is invalid with respect to CapitalGrantAccount + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CapitalGrantAccount */ public static CapitalGrantAccount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapitalGrantAccount.class); } -/** - * Convert an instance of CapitalGrantAccount to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CapitalGrantAccount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/Card.java b/src/main/java/com/adyen/model/balanceplatform/Card.java index a254af774..c80794462 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Card.java +++ b/src/main/java/com/adyen/model/balanceplatform/Card.java @@ -2,35 +2,26 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.Authentication; -import com.adyen.model.balanceplatform.CardConfiguration; -import com.adyen.model.balanceplatform.DeliveryContact; -import com.adyen.model.balanceplatform.Expiry; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * Card - */ +/** Card */ @JsonPropertyOrder({ Card.JSON_PROPERTY_AUTHENTICATION, Card.JSON_PROPERTY_BIN, @@ -47,7 +38,6 @@ Card.JSON_PROPERTY_THREE_D_SECURE, Card.JSON_PROPERTY_USAGE }) - public class Card { public static final String JSON_PROPERTY_AUTHENTICATION = "authentication"; private Authentication authentication; @@ -76,11 +66,8 @@ public class Card { public static final String JSON_PROPERTY_EXPIRATION = "expiration"; private Expiry expiration; - /** - * The form factor of the card. Possible values: **virtual**, **physical**. - */ + /** The form factor of the card. Possible values: **virtual**, **physical**. */ public enum FormFactorEnum { - PHYSICAL(String.valueOf("physical")), UNKNOWN(String.valueOf("unknown")), @@ -92,7 +79,7 @@ public enum FormFactorEnum { private String value; FormFactorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -113,7 +100,11 @@ public static FormFactorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FormFactorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FormFactorEnum.values())); + LOG.warning( + "FormFactorEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FormFactorEnum.values())); return null; } } @@ -133,13 +124,10 @@ public static FormFactorEnum fromValue(String value) { public static final String JSON_PROPERTY_USAGE = "usage"; private String usage; - public Card() { - } + public Card() {} @JsonCreator - public Card( - @JsonProperty(JSON_PROPERTY_NUMBER) String number - ) { + public Card(@JsonProperty(JSON_PROPERTY_NUMBER) String number) { this(); this.number = number; } @@ -147,7 +135,7 @@ public Card( /** * authentication * - * @param authentication + * @param authentication * @return the current {@code Card} instance, allowing for method chaining */ public Card authentication(Authentication authentication) { @@ -157,7 +145,8 @@ public Card authentication(Authentication authentication) { /** * Get authentication - * @return authentication + * + * @return authentication */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,7 +157,7 @@ public Authentication getAuthentication() { /** * authentication * - * @param authentication + * @param authentication */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,6 +178,7 @@ public Card bin(String bin) { /** * The bank identification number (BIN) of the card number. + * * @return bin The bank identification number (BIN) of the card number. */ @JsonProperty(JSON_PROPERTY_BIN) @@ -221,6 +211,7 @@ public Card brand(String brand) { /** * The brand of the physical or the virtual card. Possible values: **visa**, **mc**. + * * @return brand The brand of the physical or the virtual card. Possible values: **visa**, **mc**. */ @JsonProperty(JSON_PROPERTY_BRAND) @@ -241,9 +232,13 @@ public void setBrand(String brand) { } /** - * The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. + * The brand variant of the physical or the virtual card. For example, **visadebit** or + * **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your + * integration. * - * @param brandVariant The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. + * @param brandVariant The brand variant of the physical or the virtual card. For example, + * **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values + * relevant for your integration. * @return the current {@code Card} instance, allowing for method chaining */ public Card brandVariant(String brandVariant) { @@ -252,8 +247,13 @@ public Card brandVariant(String brandVariant) { } /** - * The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. - * @return brandVariant The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. + * The brand variant of the physical or the virtual card. For example, **visadebit** or + * **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your + * integration. + * + * @return brandVariant The brand variant of the physical or the virtual card. For example, + * **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values + * relevant for your integration. */ @JsonProperty(JSON_PROPERTY_BRAND_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -262,9 +262,13 @@ public String getBrandVariant() { } /** - * The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. + * The brand variant of the physical or the virtual card. For example, **visadebit** or + * **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your + * integration. * - * @param brandVariant The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. + * @param brandVariant The brand variant of the physical or the virtual card. For example, + * **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values + * relevant for your integration. */ @JsonProperty(JSON_PROPERTY_BRAND_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -273,9 +277,9 @@ public void setBrandVariant(String brandVariant) { } /** - * The name of the cardholder. Maximum length: 26 characters. + * The name of the cardholder. Maximum length: 26 characters. * - * @param cardholderName The name of the cardholder. Maximum length: 26 characters. + * @param cardholderName The name of the cardholder. Maximum length: 26 characters. * @return the current {@code Card} instance, allowing for method chaining */ public Card cardholderName(String cardholderName) { @@ -284,8 +288,9 @@ public Card cardholderName(String cardholderName) { } /** - * The name of the cardholder. Maximum length: 26 characters. - * @return cardholderName The name of the cardholder. Maximum length: 26 characters. + * The name of the cardholder. Maximum length: 26 characters. + * + * @return cardholderName The name of the cardholder. Maximum length: 26 characters. */ @JsonProperty(JSON_PROPERTY_CARDHOLDER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -294,9 +299,9 @@ public String getCardholderName() { } /** - * The name of the cardholder. Maximum length: 26 characters. + * The name of the cardholder. Maximum length: 26 characters. * - * @param cardholderName The name of the cardholder. Maximum length: 26 characters. + * @param cardholderName The name of the cardholder. Maximum length: 26 characters. */ @JsonProperty(JSON_PROPERTY_CARDHOLDER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -307,7 +312,7 @@ public void setCardholderName(String cardholderName) { /** * configuration * - * @param configuration + * @param configuration * @return the current {@code Card} instance, allowing for method chaining */ public Card configuration(CardConfiguration configuration) { @@ -317,7 +322,8 @@ public Card configuration(CardConfiguration configuration) { /** * Get configuration - * @return configuration + * + * @return configuration */ @JsonProperty(JSON_PROPERTY_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -328,7 +334,7 @@ public CardConfiguration getConfiguration() { /** * configuration * - * @param configuration + * @param configuration */ @JsonProperty(JSON_PROPERTY_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -337,9 +343,11 @@ public void setConfiguration(CardConfiguration configuration) { } /** - * The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards. + * The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the + * `POST` response for single-use virtual cards. * - * @param cvc The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards. + * @param cvc The CVC2 value of the card. > The CVC2 is not sent by default. This is only + * returned in the `POST` response for single-use virtual cards. * @return the current {@code Card} instance, allowing for method chaining */ public Card cvc(String cvc) { @@ -348,8 +356,11 @@ public Card cvc(String cvc) { } /** - * The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards. - * @return cvc The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards. + * The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the + * `POST` response for single-use virtual cards. + * + * @return cvc The CVC2 value of the card. > The CVC2 is not sent by default. This is only + * returned in the `POST` response for single-use virtual cards. */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -358,9 +369,11 @@ public String getCvc() { } /** - * The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards. + * The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the + * `POST` response for single-use virtual cards. * - * @param cvc The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards. + * @param cvc The CVC2 value of the card. > The CVC2 is not sent by default. This is only + * returned in the `POST` response for single-use virtual cards. */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -371,7 +384,7 @@ public void setCvc(String cvc) { /** * deliveryContact * - * @param deliveryContact + * @param deliveryContact * @return the current {@code Card} instance, allowing for method chaining */ public Card deliveryContact(DeliveryContact deliveryContact) { @@ -381,7 +394,8 @@ public Card deliveryContact(DeliveryContact deliveryContact) { /** * Get deliveryContact - * @return deliveryContact + * + * @return deliveryContact */ @JsonProperty(JSON_PROPERTY_DELIVERY_CONTACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -392,7 +406,7 @@ public DeliveryContact getDeliveryContact() { /** * deliveryContact * - * @param deliveryContact + * @param deliveryContact */ @JsonProperty(JSON_PROPERTY_DELIVERY_CONTACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -403,7 +417,7 @@ public void setDeliveryContact(DeliveryContact deliveryContact) { /** * expiration * - * @param expiration + * @param expiration * @return the current {@code Card} instance, allowing for method chaining */ public Card expiration(Expiry expiration) { @@ -413,7 +427,8 @@ public Card expiration(Expiry expiration) { /** * Get expiration - * @return expiration + * + * @return expiration */ @JsonProperty(JSON_PROPERTY_EXPIRATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -424,7 +439,7 @@ public Expiry getExpiration() { /** * expiration * - * @param expiration + * @param expiration */ @JsonProperty(JSON_PROPERTY_EXPIRATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -445,6 +460,7 @@ public Card formFactor(FormFactorEnum formFactor) { /** * The form factor of the card. Possible values: **virtual**, **physical**. + * * @return formFactor The form factor of the card. Possible values: **virtual**, **physical**. */ @JsonProperty(JSON_PROPERTY_FORM_FACTOR) @@ -477,6 +493,7 @@ public Card lastFour(String lastFour) { /** * Last last four digits of the card number. + * * @return lastFour Last last four digits of the card number. */ @JsonProperty(JSON_PROPERTY_LAST_FOUR) @@ -497,8 +514,11 @@ public void setLastFour(String lastFour) { } /** - * The primary account number (PAN) of the card. > The PAN is masked by default and returned only for single-use virtual cards. - * @return number The primary account number (PAN) of the card. > The PAN is masked by default and returned only for single-use virtual cards. + * The primary account number (PAN) of the card. > The PAN is masked by default and returned + * only for single-use virtual cards. + * + * @return number The primary account number (PAN) of the card. > The PAN is masked by default + * and returned only for single-use virtual cards. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -506,11 +526,14 @@ public String getNumber() { return number; } - /** - * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. + * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, + * **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your + * integration. * - * @param threeDSecure The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. + * @param threeDSecure The 3DS configuration of the physical or the virtual card. Possible values: + * **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the + * values relevant for your integration. * @return the current {@code Card} instance, allowing for method chaining */ public Card threeDSecure(String threeDSecure) { @@ -519,8 +542,13 @@ public Card threeDSecure(String threeDSecure) { } /** - * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. - * @return threeDSecure The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. + * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, + * **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your + * integration. + * + * @return threeDSecure The 3DS configuration of the physical or the virtual card. Possible + * values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to + * get the values relevant for your integration. */ @JsonProperty(JSON_PROPERTY_THREE_D_SECURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -529,9 +557,13 @@ public String getThreeDSecure() { } /** - * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. + * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, + * **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your + * integration. * - * @param threeDSecure The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. + * @param threeDSecure The 3DS configuration of the physical or the virtual card. Possible values: + * **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the + * values relevant for your integration. */ @JsonProperty(JSON_PROPERTY_THREE_D_SECURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -540,9 +572,12 @@ public void setThreeDSecure(String threeDSecure) { } /** - * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. + * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. + * > Reach out to your Adyen contact to determine the value relevant for your integration. * - * @param usage Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. + * @param usage Specifies how many times the card can be used. Possible values: **singleUse**, + * **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your + * integration. * @return the current {@code Card} instance, allowing for method chaining */ public Card usage(String usage) { @@ -551,8 +586,12 @@ public Card usage(String usage) { } /** - * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. - * @return usage Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. + * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. + * > Reach out to your Adyen contact to determine the value relevant for your integration. + * + * @return usage Specifies how many times the card can be used. Possible values: **singleUse**, + * **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your + * integration. */ @JsonProperty(JSON_PROPERTY_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -561,9 +600,12 @@ public String getUsage() { } /** - * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. + * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. + * > Reach out to your Adyen contact to determine the value relevant for your integration. * - * @param usage Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. + * @param usage Specifies how many times the card can be used. Possible values: **singleUse**, + * **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your + * integration. */ @JsonProperty(JSON_PROPERTY_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -571,9 +613,7 @@ public void setUsage(String usage) { this.usage = usage; } - /** - * Return true if this Card object is equal to o. - */ + /** Return true if this Card object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -583,25 +623,39 @@ public boolean equals(Object o) { return false; } Card card = (Card) o; - return Objects.equals(this.authentication, card.authentication) && - Objects.equals(this.bin, card.bin) && - Objects.equals(this.brand, card.brand) && - Objects.equals(this.brandVariant, card.brandVariant) && - Objects.equals(this.cardholderName, card.cardholderName) && - Objects.equals(this.configuration, card.configuration) && - Objects.equals(this.cvc, card.cvc) && - Objects.equals(this.deliveryContact, card.deliveryContact) && - Objects.equals(this.expiration, card.expiration) && - Objects.equals(this.formFactor, card.formFactor) && - Objects.equals(this.lastFour, card.lastFour) && - Objects.equals(this.number, card.number) && - Objects.equals(this.threeDSecure, card.threeDSecure) && - Objects.equals(this.usage, card.usage); + return Objects.equals(this.authentication, card.authentication) + && Objects.equals(this.bin, card.bin) + && Objects.equals(this.brand, card.brand) + && Objects.equals(this.brandVariant, card.brandVariant) + && Objects.equals(this.cardholderName, card.cardholderName) + && Objects.equals(this.configuration, card.configuration) + && Objects.equals(this.cvc, card.cvc) + && Objects.equals(this.deliveryContact, card.deliveryContact) + && Objects.equals(this.expiration, card.expiration) + && Objects.equals(this.formFactor, card.formFactor) + && Objects.equals(this.lastFour, card.lastFour) + && Objects.equals(this.number, card.number) + && Objects.equals(this.threeDSecure, card.threeDSecure) + && Objects.equals(this.usage, card.usage); } @Override public int hashCode() { - return Objects.hash(authentication, bin, brand, brandVariant, cardholderName, configuration, cvc, deliveryContact, expiration, formFactor, lastFour, number, threeDSecure, usage); + return Objects.hash( + authentication, + bin, + brand, + brandVariant, + cardholderName, + configuration, + cvc, + deliveryContact, + expiration, + formFactor, + lastFour, + number, + threeDSecure, + usage); } @Override @@ -627,8 +681,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -637,7 +690,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Card given an JSON string * * @param jsonString JSON string @@ -647,11 +700,12 @@ private String toIndentedString(Object o) { public static Card fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Card.class); } -/** - * Convert an instance of Card to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Card to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CardConfiguration.java b/src/main/java/com/adyen/model/balanceplatform/CardConfiguration.java index 2decffd89..d448ec323 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CardConfiguration.java +++ b/src/main/java/com/adyen/model/balanceplatform/CardConfiguration.java @@ -2,32 +2,22 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.BulkAddress; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * CardConfiguration - */ +/** CardConfiguration */ @JsonPropertyOrder({ CardConfiguration.JSON_PROPERTY_ACTIVATION, CardConfiguration.JSON_PROPERTY_ACTIVATION_URL, @@ -44,7 +34,6 @@ CardConfiguration.JSON_PROPERTY_PIN_MAILER, CardConfiguration.JSON_PROPERTY_SHIPMENT_METHOD }) - public class CardConfiguration { public static final String JSON_PROPERTY_ACTIVATION = "activation"; private String activation; @@ -88,13 +77,15 @@ public class CardConfiguration { public static final String JSON_PROPERTY_SHIPMENT_METHOD = "shipmentMethod"; private String shipmentMethod; - public CardConfiguration() { - } + public CardConfiguration() {} /** - * Overrides the activation label design ID defined in the `configurationProfileId`. The activation label is attached to the card and contains the activation instructions. + * Overrides the activation label design ID defined in the `configurationProfileId`. The + * activation label is attached to the card and contains the activation instructions. * - * @param activation Overrides the activation label design ID defined in the `configurationProfileId`. The activation label is attached to the card and contains the activation instructions. + * @param activation Overrides the activation label design ID defined in the + * `configurationProfileId`. The activation label is attached to the card and + * contains the activation instructions. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration activation(String activation) { @@ -103,8 +94,12 @@ public CardConfiguration activation(String activation) { } /** - * Overrides the activation label design ID defined in the `configurationProfileId`. The activation label is attached to the card and contains the activation instructions. - * @return activation Overrides the activation label design ID defined in the `configurationProfileId`. The activation label is attached to the card and contains the activation instructions. + * Overrides the activation label design ID defined in the `configurationProfileId`. The + * activation label is attached to the card and contains the activation instructions. + * + * @return activation Overrides the activation label design ID defined in the + * `configurationProfileId`. The activation label is attached to the card and + * contains the activation instructions. */ @JsonProperty(JSON_PROPERTY_ACTIVATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,9 +108,12 @@ public String getActivation() { } /** - * Overrides the activation label design ID defined in the `configurationProfileId`. The activation label is attached to the card and contains the activation instructions. + * Overrides the activation label design ID defined in the `configurationProfileId`. The + * activation label is attached to the card and contains the activation instructions. * - * @param activation Overrides the activation label design ID defined in the `configurationProfileId`. The activation label is attached to the card and contains the activation instructions. + * @param activation Overrides the activation label design ID defined in the + * `configurationProfileId`. The activation label is attached to the card and + * contains the activation instructions. */ @JsonProperty(JSON_PROPERTY_ACTIVATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,9 +122,15 @@ public void setActivation(String activation) { } /** - * Your app's URL, if you want to activate cards through your app. For example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR code process. Maximum length: 255 characters. + * Your app's URL, if you want to activate cards through your app. For example, + * **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the + * carrier. Before you use this field, reach out to your Adyen contact to set up the QR code + * process. Maximum length: 255 characters. * - * @param activationUrl Your app's URL, if you want to activate cards through your app. For example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR code process. Maximum length: 255 characters. + * @param activationUrl Your app's URL, if you want to activate cards through your app. For + * example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included + * in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR + * code process. Maximum length: 255 characters. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration activationUrl(String activationUrl) { @@ -135,8 +139,15 @@ public CardConfiguration activationUrl(String activationUrl) { } /** - * Your app's URL, if you want to activate cards through your app. For example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR code process. Maximum length: 255 characters. - * @return activationUrl Your app's URL, if you want to activate cards through your app. For example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR code process. Maximum length: 255 characters. + * Your app's URL, if you want to activate cards through your app. For example, + * **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the + * carrier. Before you use this field, reach out to your Adyen contact to set up the QR code + * process. Maximum length: 255 characters. + * + * @return activationUrl Your app's URL, if you want to activate cards through your app. For + * example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included + * in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR + * code process. Maximum length: 255 characters. */ @JsonProperty(JSON_PROPERTY_ACTIVATION_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,9 +156,15 @@ public String getActivationUrl() { } /** - * Your app's URL, if you want to activate cards through your app. For example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR code process. Maximum length: 255 characters. + * Your app's URL, if you want to activate cards through your app. For example, + * **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the + * carrier. Before you use this field, reach out to your Adyen contact to set up the QR code + * process. Maximum length: 255 characters. * - * @param activationUrl Your app's URL, if you want to activate cards through your app. For example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR code process. Maximum length: 255 characters. + * @param activationUrl Your app's URL, if you want to activate cards through your app. For + * example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included + * in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR + * code process. Maximum length: 255 characters. */ @JsonProperty(JSON_PROPERTY_ACTIVATION_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,7 +175,7 @@ public void setActivationUrl(String activationUrl) { /** * bulkAddress * - * @param bulkAddress + * @param bulkAddress * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration bulkAddress(BulkAddress bulkAddress) { @@ -168,7 +185,8 @@ public CardConfiguration bulkAddress(BulkAddress bulkAddress) { /** * Get bulkAddress - * @return bulkAddress + * + * @return bulkAddress */ @JsonProperty(JSON_PROPERTY_BULK_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,7 +197,7 @@ public BulkAddress getBulkAddress() { /** * bulkAddress * - * @param bulkAddress + * @param bulkAddress */ @JsonProperty(JSON_PROPERTY_BULK_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,7 +208,8 @@ public void setBulkAddress(BulkAddress bulkAddress) { /** * The ID of the card image. This is the image that will be printed on the full front of the card. * - * @param cardImageId The ID of the card image. This is the image that will be printed on the full front of the card. + * @param cardImageId The ID of the card image. This is the image that will be printed on the full + * front of the card. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration cardImageId(String cardImageId) { @@ -200,7 +219,9 @@ public CardConfiguration cardImageId(String cardImageId) { /** * The ID of the card image. This is the image that will be printed on the full front of the card. - * @return cardImageId The ID of the card image. This is the image that will be printed on the full front of the card. + * + * @return cardImageId The ID of the card image. This is the image that will be printed on the + * full front of the card. */ @JsonProperty(JSON_PROPERTY_CARD_IMAGE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,7 +232,8 @@ public String getCardImageId() { /** * The ID of the card image. This is the image that will be printed on the full front of the card. * - * @param cardImageId The ID of the card image. This is the image that will be printed on the full front of the card. + * @param cardImageId The ID of the card image. This is the image that will be printed on the full + * front of the card. */ @JsonProperty(JSON_PROPERTY_CARD_IMAGE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -220,9 +242,12 @@ public void setCardImageId(String cardImageId) { } /** - * Overrides the carrier design ID defined in the `configurationProfileId`. The carrier is the letter or packaging to which the card is attached. + * Overrides the carrier design ID defined in the `configurationProfileId`. The carrier + * is the letter or packaging to which the card is attached. * - * @param carrier Overrides the carrier design ID defined in the `configurationProfileId`. The carrier is the letter or packaging to which the card is attached. + * @param carrier Overrides the carrier design ID defined in the + * `configurationProfileId`. The carrier is the letter or packaging to which the + * card is attached. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration carrier(String carrier) { @@ -231,8 +256,12 @@ public CardConfiguration carrier(String carrier) { } /** - * Overrides the carrier design ID defined in the `configurationProfileId`. The carrier is the letter or packaging to which the card is attached. - * @return carrier Overrides the carrier design ID defined in the `configurationProfileId`. The carrier is the letter or packaging to which the card is attached. + * Overrides the carrier design ID defined in the `configurationProfileId`. The carrier + * is the letter or packaging to which the card is attached. + * + * @return carrier Overrides the carrier design ID defined in the + * `configurationProfileId`. The carrier is the letter or packaging to which the + * card is attached. */ @JsonProperty(JSON_PROPERTY_CARRIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -241,9 +270,12 @@ public String getCarrier() { } /** - * Overrides the carrier design ID defined in the `configurationProfileId`. The carrier is the letter or packaging to which the card is attached. + * Overrides the carrier design ID defined in the `configurationProfileId`. The carrier + * is the letter or packaging to which the card is attached. * - * @param carrier Overrides the carrier design ID defined in the `configurationProfileId`. The carrier is the letter or packaging to which the card is attached. + * @param carrier Overrides the carrier design ID defined in the + * `configurationProfileId`. The carrier is the letter or packaging to which the + * card is attached. */ @JsonProperty(JSON_PROPERTY_CARRIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,9 +284,11 @@ public void setCarrier(String carrier) { } /** - * The ID of the carrier image. This is the image that will printed on the letter to which the card is attached. + * The ID of the carrier image. This is the image that will printed on the letter to which the + * card is attached. * - * @param carrierImageId The ID of the carrier image. This is the image that will printed on the letter to which the card is attached. + * @param carrierImageId The ID of the carrier image. This is the image that will printed on the + * letter to which the card is attached. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration carrierImageId(String carrierImageId) { @@ -263,8 +297,11 @@ public CardConfiguration carrierImageId(String carrierImageId) { } /** - * The ID of the carrier image. This is the image that will printed on the letter to which the card is attached. - * @return carrierImageId The ID of the carrier image. This is the image that will printed on the letter to which the card is attached. + * The ID of the carrier image. This is the image that will printed on the letter to which the + * card is attached. + * + * @return carrierImageId The ID of the carrier image. This is the image that will printed on the + * letter to which the card is attached. */ @JsonProperty(JSON_PROPERTY_CARRIER_IMAGE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -273,9 +310,11 @@ public String getCarrierImageId() { } /** - * The ID of the carrier image. This is the image that will printed on the letter to which the card is attached. + * The ID of the carrier image. This is the image that will printed on the letter to which the + * card is attached. * - * @param carrierImageId The ID of the carrier image. This is the image that will printed on the letter to which the card is attached. + * @param carrierImageId The ID of the carrier image. This is the image that will printed on the + * letter to which the card is attached. */ @JsonProperty(JSON_PROPERTY_CARRIER_IMAGE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,9 +323,18 @@ public void setCarrierImageId(String carrierImageId) { } /** - * The ID of the card configuration profile that contains the settings of the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. All the settings in the profile are applied to the card, unless you provide other fields to override them. For example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile. + * The ID of the card configuration profile that contains the settings of the card. For example, + * the envelope and PIN mailer designs or the logistics company handling the shipment. All the + * settings in the profile are applied to the card, unless you provide other fields to override + * them. For example, send the `shipmentMethod` to override the logistics company + * defined in the card configuration profile. * - * @param configurationProfileId The ID of the card configuration profile that contains the settings of the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. All the settings in the profile are applied to the card, unless you provide other fields to override them. For example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile. + * @param configurationProfileId The ID of the card configuration profile that contains the + * settings of the card. For example, the envelope and PIN mailer designs or the logistics + * company handling the shipment. All the settings in the profile are applied to the card, + * unless you provide other fields to override them. For example, send the + * `shipmentMethod` to override the logistics company defined in the card + * configuration profile. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration configurationProfileId(String configurationProfileId) { @@ -295,8 +343,18 @@ public CardConfiguration configurationProfileId(String configurationProfileId) { } /** - * The ID of the card configuration profile that contains the settings of the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. All the settings in the profile are applied to the card, unless you provide other fields to override them. For example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile. - * @return configurationProfileId The ID of the card configuration profile that contains the settings of the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. All the settings in the profile are applied to the card, unless you provide other fields to override them. For example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile. + * The ID of the card configuration profile that contains the settings of the card. For example, + * the envelope and PIN mailer designs or the logistics company handling the shipment. All the + * settings in the profile are applied to the card, unless you provide other fields to override + * them. For example, send the `shipmentMethod` to override the logistics company + * defined in the card configuration profile. + * + * @return configurationProfileId The ID of the card configuration profile that contains the + * settings of the card. For example, the envelope and PIN mailer designs or the logistics + * company handling the shipment. All the settings in the profile are applied to the card, + * unless you provide other fields to override them. For example, send the + * `shipmentMethod` to override the logistics company defined in the card + * configuration profile. */ @JsonProperty(JSON_PROPERTY_CONFIGURATION_PROFILE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -305,9 +363,18 @@ public String getConfigurationProfileId() { } /** - * The ID of the card configuration profile that contains the settings of the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. All the settings in the profile are applied to the card, unless you provide other fields to override them. For example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile. + * The ID of the card configuration profile that contains the settings of the card. For example, + * the envelope and PIN mailer designs or the logistics company handling the shipment. All the + * settings in the profile are applied to the card, unless you provide other fields to override + * them. For example, send the `shipmentMethod` to override the logistics company + * defined in the card configuration profile. * - * @param configurationProfileId The ID of the card configuration profile that contains the settings of the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. All the settings in the profile are applied to the card, unless you provide other fields to override them. For example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile. + * @param configurationProfileId The ID of the card configuration profile that contains the + * settings of the card. For example, the envelope and PIN mailer designs or the logistics + * company handling the shipment. All the settings in the profile are applied to the card, + * unless you provide other fields to override them. For example, send the + * `shipmentMethod` to override the logistics company defined in the card + * configuration profile. */ @JsonProperty(JSON_PROPERTY_CONFIGURATION_PROFILE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -316,9 +383,11 @@ public void setConfigurationProfileId(String configurationProfileId) { } /** - * The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. + * The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. + * For example, **EUR**. * - * @param currency The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. + * @param currency The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency + * code of the card. For example, **EUR**. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration currency(String currency) { @@ -327,8 +396,11 @@ public CardConfiguration currency(String currency) { } /** - * The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. - * @return currency The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. + * The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. + * For example, **EUR**. + * + * @return currency The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency + * code of the card. For example, **EUR**. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -337,9 +409,11 @@ public String getCurrency() { } /** - * The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. + * The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. + * For example, **EUR**. * - * @param currency The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. + * @param currency The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency + * code of the card. For example, **EUR**. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -348,9 +422,10 @@ public void setCurrency(String currency) { } /** - * Overrides the envelope design ID defined in the `configurationProfileId`. + * Overrides the envelope design ID defined in the `configurationProfileId`. * - * @param envelope Overrides the envelope design ID defined in the `configurationProfileId`. + * @param envelope Overrides the envelope design ID defined in the + * `configurationProfileId`. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration envelope(String envelope) { @@ -359,8 +434,10 @@ public CardConfiguration envelope(String envelope) { } /** - * Overrides the envelope design ID defined in the `configurationProfileId`. - * @return envelope Overrides the envelope design ID defined in the `configurationProfileId`. + * Overrides the envelope design ID defined in the `configurationProfileId`. + * + * @return envelope Overrides the envelope design ID defined in the + * `configurationProfileId`. */ @JsonProperty(JSON_PROPERTY_ENVELOPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -369,9 +446,10 @@ public String getEnvelope() { } /** - * Overrides the envelope design ID defined in the `configurationProfileId`. + * Overrides the envelope design ID defined in the `configurationProfileId`. * - * @param envelope Overrides the envelope design ID defined in the `configurationProfileId`. + * @param envelope Overrides the envelope design ID defined in the + * `configurationProfileId`. */ @JsonProperty(JSON_PROPERTY_ENVELOPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -380,9 +458,12 @@ public void setEnvelope(String envelope) { } /** - * Overrides the insert design ID defined in the `configurationProfileId`. An insert is any additional material, such as marketing materials, that are shipped together with the card. + * Overrides the insert design ID defined in the `configurationProfileId`. An insert is + * any additional material, such as marketing materials, that are shipped together with the card. * - * @param insert Overrides the insert design ID defined in the `configurationProfileId`. An insert is any additional material, such as marketing materials, that are shipped together with the card. + * @param insert Overrides the insert design ID defined in the `configurationProfileId`. + * An insert is any additional material, such as marketing materials, that are shipped + * together with the card. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration insert(String insert) { @@ -391,8 +472,12 @@ public CardConfiguration insert(String insert) { } /** - * Overrides the insert design ID defined in the `configurationProfileId`. An insert is any additional material, such as marketing materials, that are shipped together with the card. - * @return insert Overrides the insert design ID defined in the `configurationProfileId`. An insert is any additional material, such as marketing materials, that are shipped together with the card. + * Overrides the insert design ID defined in the `configurationProfileId`. An insert is + * any additional material, such as marketing materials, that are shipped together with the card. + * + * @return insert Overrides the insert design ID defined in the + * `configurationProfileId`. An insert is any additional material, such as marketing + * materials, that are shipped together with the card. */ @JsonProperty(JSON_PROPERTY_INSERT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -401,9 +486,12 @@ public String getInsert() { } /** - * Overrides the insert design ID defined in the `configurationProfileId`. An insert is any additional material, such as marketing materials, that are shipped together with the card. + * Overrides the insert design ID defined in the `configurationProfileId`. An insert is + * any additional material, such as marketing materials, that are shipped together with the card. * - * @param insert Overrides the insert design ID defined in the `configurationProfileId`. An insert is any additional material, such as marketing materials, that are shipped together with the card. + * @param insert Overrides the insert design ID defined in the `configurationProfileId`. + * An insert is any additional material, such as marketing materials, that are shipped + * together with the card. */ @JsonProperty(JSON_PROPERTY_INSERT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -412,9 +500,12 @@ public void setInsert(String insert) { } /** - * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the card. For example, **en**. + * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code + * of the card. For example, **en**. * - * @param language The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the card. For example, **en**. + * @param language The two-letter + * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the + * card. For example, **en**. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration language(String language) { @@ -423,8 +514,12 @@ public CardConfiguration language(String language) { } /** - * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the card. For example, **en**. - * @return language The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the card. For example, **en**. + * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code + * of the card. For example, **en**. + * + * @return language The two-letter + * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the + * card. For example, **en**. */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -433,9 +528,12 @@ public String getLanguage() { } /** - * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the card. For example, **en**. + * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code + * of the card. For example, **en**. * - * @param language The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the card. For example, **en**. + * @param language The two-letter + * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the + * card. For example, **en**. */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -444,9 +542,11 @@ public void setLanguage(String language) { } /** - * The ID of the logo image. This is the image that will be printed on the partial front of the card, such as a logo on the upper right corner. + * The ID of the logo image. This is the image that will be printed on the partial front of the + * card, such as a logo on the upper right corner. * - * @param logoImageId The ID of the logo image. This is the image that will be printed on the partial front of the card, such as a logo on the upper right corner. + * @param logoImageId The ID of the logo image. This is the image that will be printed on the + * partial front of the card, such as a logo on the upper right corner. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration logoImageId(String logoImageId) { @@ -455,8 +555,11 @@ public CardConfiguration logoImageId(String logoImageId) { } /** - * The ID of the logo image. This is the image that will be printed on the partial front of the card, such as a logo on the upper right corner. - * @return logoImageId The ID of the logo image. This is the image that will be printed on the partial front of the card, such as a logo on the upper right corner. + * The ID of the logo image. This is the image that will be printed on the partial front of the + * card, such as a logo on the upper right corner. + * + * @return logoImageId The ID of the logo image. This is the image that will be printed on the + * partial front of the card, such as a logo on the upper right corner. */ @JsonProperty(JSON_PROPERTY_LOGO_IMAGE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -465,9 +568,11 @@ public String getLogoImageId() { } /** - * The ID of the logo image. This is the image that will be printed on the partial front of the card, such as a logo on the upper right corner. + * The ID of the logo image. This is the image that will be printed on the partial front of the + * card, such as a logo on the upper right corner. * - * @param logoImageId The ID of the logo image. This is the image that will be printed on the partial front of the card, such as a logo on the upper right corner. + * @param logoImageId The ID of the logo image. This is the image that will be printed on the + * partial front of the card, such as a logo on the upper right corner. */ @JsonProperty(JSON_PROPERTY_LOGO_IMAGE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -476,9 +581,12 @@ public void setLogoImageId(String logoImageId) { } /** - * Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN mailer is the letter on which the PIN is printed. + * Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN + * mailer is the letter on which the PIN is printed. * - * @param pinMailer Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN mailer is the letter on which the PIN is printed. + * @param pinMailer Overrides the PIN mailer design ID defined in the + * `configurationProfileId`. The PIN mailer is the letter on which the PIN is + * printed. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration pinMailer(String pinMailer) { @@ -487,8 +595,12 @@ public CardConfiguration pinMailer(String pinMailer) { } /** - * Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN mailer is the letter on which the PIN is printed. - * @return pinMailer Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN mailer is the letter on which the PIN is printed. + * Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN + * mailer is the letter on which the PIN is printed. + * + * @return pinMailer Overrides the PIN mailer design ID defined in the + * `configurationProfileId`. The PIN mailer is the letter on which the PIN is + * printed. */ @JsonProperty(JSON_PROPERTY_PIN_MAILER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -497,9 +609,12 @@ public String getPinMailer() { } /** - * Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN mailer is the letter on which the PIN is printed. + * Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN + * mailer is the letter on which the PIN is printed. * - * @param pinMailer Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN mailer is the letter on which the PIN is printed. + * @param pinMailer Overrides the PIN mailer design ID defined in the + * `configurationProfileId`. The PIN mailer is the letter on which the PIN is + * printed. */ @JsonProperty(JSON_PROPERTY_PIN_MAILER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -510,7 +625,8 @@ public void setPinMailer(String pinMailer) { /** * Overrides the logistics company defined in the `configurationProfileId`. * - * @param shipmentMethod Overrides the logistics company defined in the `configurationProfileId`. + * @param shipmentMethod Overrides the logistics company defined in the + * `configurationProfileId`. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration shipmentMethod(String shipmentMethod) { @@ -520,7 +636,9 @@ public CardConfiguration shipmentMethod(String shipmentMethod) { /** * Overrides the logistics company defined in the `configurationProfileId`. - * @return shipmentMethod Overrides the logistics company defined in the `configurationProfileId`. + * + * @return shipmentMethod Overrides the logistics company defined in the + * `configurationProfileId`. */ @JsonProperty(JSON_PROPERTY_SHIPMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -531,7 +649,8 @@ public String getShipmentMethod() { /** * Overrides the logistics company defined in the `configurationProfileId`. * - * @param shipmentMethod Overrides the logistics company defined in the `configurationProfileId`. + * @param shipmentMethod Overrides the logistics company defined in the + * `configurationProfileId`. */ @JsonProperty(JSON_PROPERTY_SHIPMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -539,9 +658,7 @@ public void setShipmentMethod(String shipmentMethod) { this.shipmentMethod = shipmentMethod; } - /** - * Return true if this CardConfiguration object is equal to o. - */ + /** Return true if this CardConfiguration object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -551,25 +668,39 @@ public boolean equals(Object o) { return false; } CardConfiguration cardConfiguration = (CardConfiguration) o; - return Objects.equals(this.activation, cardConfiguration.activation) && - Objects.equals(this.activationUrl, cardConfiguration.activationUrl) && - Objects.equals(this.bulkAddress, cardConfiguration.bulkAddress) && - Objects.equals(this.cardImageId, cardConfiguration.cardImageId) && - Objects.equals(this.carrier, cardConfiguration.carrier) && - Objects.equals(this.carrierImageId, cardConfiguration.carrierImageId) && - Objects.equals(this.configurationProfileId, cardConfiguration.configurationProfileId) && - Objects.equals(this.currency, cardConfiguration.currency) && - Objects.equals(this.envelope, cardConfiguration.envelope) && - Objects.equals(this.insert, cardConfiguration.insert) && - Objects.equals(this.language, cardConfiguration.language) && - Objects.equals(this.logoImageId, cardConfiguration.logoImageId) && - Objects.equals(this.pinMailer, cardConfiguration.pinMailer) && - Objects.equals(this.shipmentMethod, cardConfiguration.shipmentMethod); + return Objects.equals(this.activation, cardConfiguration.activation) + && Objects.equals(this.activationUrl, cardConfiguration.activationUrl) + && Objects.equals(this.bulkAddress, cardConfiguration.bulkAddress) + && Objects.equals(this.cardImageId, cardConfiguration.cardImageId) + && Objects.equals(this.carrier, cardConfiguration.carrier) + && Objects.equals(this.carrierImageId, cardConfiguration.carrierImageId) + && Objects.equals(this.configurationProfileId, cardConfiguration.configurationProfileId) + && Objects.equals(this.currency, cardConfiguration.currency) + && Objects.equals(this.envelope, cardConfiguration.envelope) + && Objects.equals(this.insert, cardConfiguration.insert) + && Objects.equals(this.language, cardConfiguration.language) + && Objects.equals(this.logoImageId, cardConfiguration.logoImageId) + && Objects.equals(this.pinMailer, cardConfiguration.pinMailer) + && Objects.equals(this.shipmentMethod, cardConfiguration.shipmentMethod); } @Override public int hashCode() { - return Objects.hash(activation, activationUrl, bulkAddress, cardImageId, carrier, carrierImageId, configurationProfileId, currency, envelope, insert, language, logoImageId, pinMailer, shipmentMethod); + return Objects.hash( + activation, + activationUrl, + bulkAddress, + cardImageId, + carrier, + carrierImageId, + configurationProfileId, + currency, + envelope, + insert, + language, + logoImageId, + pinMailer, + shipmentMethod); } @Override @@ -582,7 +713,9 @@ public String toString() { sb.append(" cardImageId: ").append(toIndentedString(cardImageId)).append("\n"); sb.append(" carrier: ").append(toIndentedString(carrier)).append("\n"); sb.append(" carrierImageId: ").append(toIndentedString(carrierImageId)).append("\n"); - sb.append(" configurationProfileId: ").append(toIndentedString(configurationProfileId)).append("\n"); + sb.append(" configurationProfileId: ") + .append(toIndentedString(configurationProfileId)) + .append("\n"); sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); sb.append(" envelope: ").append(toIndentedString(envelope)).append("\n"); sb.append(" insert: ").append(toIndentedString(insert)).append("\n"); @@ -595,8 +728,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -605,7 +737,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CardConfiguration given an JSON string * * @param jsonString JSON string @@ -615,11 +747,12 @@ private String toIndentedString(Object o) { public static CardConfiguration fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardConfiguration.class); } -/** - * Convert an instance of CardConfiguration to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CardConfiguration to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CardInfo.java b/src/main/java/com/adyen/model/balanceplatform/CardInfo.java index 0ace6086c..672469bfb 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CardInfo.java +++ b/src/main/java/com/adyen/model/balanceplatform/CardInfo.java @@ -2,34 +2,26 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.Authentication; -import com.adyen.model.balanceplatform.CardConfiguration; -import com.adyen.model.balanceplatform.DeliveryContact; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * CardInfo - */ +/** CardInfo */ @JsonPropertyOrder({ CardInfo.JSON_PROPERTY_AUTHENTICATION, CardInfo.JSON_PROPERTY_BRAND, @@ -41,7 +33,6 @@ CardInfo.JSON_PROPERTY_THREE_D_SECURE, CardInfo.JSON_PROPERTY_USAGE }) - public class CardInfo { public static final String JSON_PROPERTY_AUTHENTICATION = "authentication"; private Authentication authentication; @@ -61,11 +52,8 @@ public class CardInfo { public static final String JSON_PROPERTY_DELIVERY_CONTACT = "deliveryContact"; private DeliveryContact deliveryContact; - /** - * The form factor of the card. Possible values: **virtual**, **physical**. - */ + /** The form factor of the card. Possible values: **virtual**, **physical**. */ public enum FormFactorEnum { - PHYSICAL(String.valueOf("physical")), UNKNOWN(String.valueOf("unknown")), @@ -77,7 +65,7 @@ public enum FormFactorEnum { private String value; FormFactorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -98,7 +86,11 @@ public static FormFactorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FormFactorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FormFactorEnum.values())); + LOG.warning( + "FormFactorEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FormFactorEnum.values())); return null; } } @@ -112,13 +104,12 @@ public static FormFactorEnum fromValue(String value) { public static final String JSON_PROPERTY_USAGE = "usage"; private String usage; - public CardInfo() { - } + public CardInfo() {} /** * authentication * - * @param authentication + * @param authentication * @return the current {@code CardInfo} instance, allowing for method chaining */ public CardInfo authentication(Authentication authentication) { @@ -128,7 +119,8 @@ public CardInfo authentication(Authentication authentication) { /** * Get authentication - * @return authentication + * + * @return authentication */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,7 +131,7 @@ public Authentication getAuthentication() { /** * authentication * - * @param authentication + * @param authentication */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,6 +152,7 @@ public CardInfo brand(String brand) { /** * The brand of the physical or the virtual card. Possible values: **visa**, **mc**. + * * @return brand The brand of the physical or the virtual card. Possible values: **visa**, **mc**. */ @JsonProperty(JSON_PROPERTY_BRAND) @@ -180,9 +173,13 @@ public void setBrand(String brand) { } /** - * The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. + * The brand variant of the physical or the virtual card. For example, **visadebit** or + * **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your + * integration. * - * @param brandVariant The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. + * @param brandVariant The brand variant of the physical or the virtual card. For example, + * **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values + * relevant for your integration. * @return the current {@code CardInfo} instance, allowing for method chaining */ public CardInfo brandVariant(String brandVariant) { @@ -191,8 +188,13 @@ public CardInfo brandVariant(String brandVariant) { } /** - * The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. - * @return brandVariant The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. + * The brand variant of the physical or the virtual card. For example, **visadebit** or + * **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your + * integration. + * + * @return brandVariant The brand variant of the physical or the virtual card. For example, + * **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values + * relevant for your integration. */ @JsonProperty(JSON_PROPERTY_BRAND_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -201,9 +203,13 @@ public String getBrandVariant() { } /** - * The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. + * The brand variant of the physical or the virtual card. For example, **visadebit** or + * **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your + * integration. * - * @param brandVariant The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. + * @param brandVariant The brand variant of the physical or the virtual card. For example, + * **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values + * relevant for your integration. */ @JsonProperty(JSON_PROPERTY_BRAND_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -212,9 +218,9 @@ public void setBrandVariant(String brandVariant) { } /** - * The name of the cardholder. Maximum length: 26 characters. + * The name of the cardholder. Maximum length: 26 characters. * - * @param cardholderName The name of the cardholder. Maximum length: 26 characters. + * @param cardholderName The name of the cardholder. Maximum length: 26 characters. * @return the current {@code CardInfo} instance, allowing for method chaining */ public CardInfo cardholderName(String cardholderName) { @@ -223,8 +229,9 @@ public CardInfo cardholderName(String cardholderName) { } /** - * The name of the cardholder. Maximum length: 26 characters. - * @return cardholderName The name of the cardholder. Maximum length: 26 characters. + * The name of the cardholder. Maximum length: 26 characters. + * + * @return cardholderName The name of the cardholder. Maximum length: 26 characters. */ @JsonProperty(JSON_PROPERTY_CARDHOLDER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -233,9 +240,9 @@ public String getCardholderName() { } /** - * The name of the cardholder. Maximum length: 26 characters. + * The name of the cardholder. Maximum length: 26 characters. * - * @param cardholderName The name of the cardholder. Maximum length: 26 characters. + * @param cardholderName The name of the cardholder. Maximum length: 26 characters. */ @JsonProperty(JSON_PROPERTY_CARDHOLDER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -246,7 +253,7 @@ public void setCardholderName(String cardholderName) { /** * configuration * - * @param configuration + * @param configuration * @return the current {@code CardInfo} instance, allowing for method chaining */ public CardInfo configuration(CardConfiguration configuration) { @@ -256,7 +263,8 @@ public CardInfo configuration(CardConfiguration configuration) { /** * Get configuration - * @return configuration + * + * @return configuration */ @JsonProperty(JSON_PROPERTY_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -267,7 +275,7 @@ public CardConfiguration getConfiguration() { /** * configuration * - * @param configuration + * @param configuration */ @JsonProperty(JSON_PROPERTY_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -278,7 +286,7 @@ public void setConfiguration(CardConfiguration configuration) { /** * deliveryContact * - * @param deliveryContact + * @param deliveryContact * @return the current {@code CardInfo} instance, allowing for method chaining */ public CardInfo deliveryContact(DeliveryContact deliveryContact) { @@ -288,7 +296,8 @@ public CardInfo deliveryContact(DeliveryContact deliveryContact) { /** * Get deliveryContact - * @return deliveryContact + * + * @return deliveryContact */ @JsonProperty(JSON_PROPERTY_DELIVERY_CONTACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -299,7 +308,7 @@ public DeliveryContact getDeliveryContact() { /** * deliveryContact * - * @param deliveryContact + * @param deliveryContact */ @JsonProperty(JSON_PROPERTY_DELIVERY_CONTACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -320,6 +329,7 @@ public CardInfo formFactor(FormFactorEnum formFactor) { /** * The form factor of the card. Possible values: **virtual**, **physical**. + * * @return formFactor The form factor of the card. Possible values: **virtual**, **physical**. */ @JsonProperty(JSON_PROPERTY_FORM_FACTOR) @@ -340,9 +350,13 @@ public void setFormFactor(FormFactorEnum formFactor) { } /** - * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. + * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, + * **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your + * integration. * - * @param threeDSecure The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. + * @param threeDSecure The 3DS configuration of the physical or the virtual card. Possible values: + * **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the + * values relevant for your integration. * @return the current {@code CardInfo} instance, allowing for method chaining */ public CardInfo threeDSecure(String threeDSecure) { @@ -351,8 +365,13 @@ public CardInfo threeDSecure(String threeDSecure) { } /** - * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. - * @return threeDSecure The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. + * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, + * **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your + * integration. + * + * @return threeDSecure The 3DS configuration of the physical or the virtual card. Possible + * values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to + * get the values relevant for your integration. */ @JsonProperty(JSON_PROPERTY_THREE_D_SECURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -361,9 +380,13 @@ public String getThreeDSecure() { } /** - * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. + * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, + * **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your + * integration. * - * @param threeDSecure The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. + * @param threeDSecure The 3DS configuration of the physical or the virtual card. Possible values: + * **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the + * values relevant for your integration. */ @JsonProperty(JSON_PROPERTY_THREE_D_SECURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -372,9 +395,12 @@ public void setThreeDSecure(String threeDSecure) { } /** - * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. + * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. + * > Reach out to your Adyen contact to determine the value relevant for your integration. * - * @param usage Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. + * @param usage Specifies how many times the card can be used. Possible values: **singleUse**, + * **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your + * integration. * @return the current {@code CardInfo} instance, allowing for method chaining */ public CardInfo usage(String usage) { @@ -383,8 +409,12 @@ public CardInfo usage(String usage) { } /** - * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. - * @return usage Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. + * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. + * > Reach out to your Adyen contact to determine the value relevant for your integration. + * + * @return usage Specifies how many times the card can be used. Possible values: **singleUse**, + * **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your + * integration. */ @JsonProperty(JSON_PROPERTY_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -393,9 +423,12 @@ public String getUsage() { } /** - * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. + * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. + * > Reach out to your Adyen contact to determine the value relevant for your integration. * - * @param usage Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. + * @param usage Specifies how many times the card can be used. Possible values: **singleUse**, + * **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your + * integration. */ @JsonProperty(JSON_PROPERTY_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -403,9 +436,7 @@ public void setUsage(String usage) { this.usage = usage; } - /** - * Return true if this CardInfo object is equal to o. - */ + /** Return true if this CardInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -415,20 +446,29 @@ public boolean equals(Object o) { return false; } CardInfo cardInfo = (CardInfo) o; - return Objects.equals(this.authentication, cardInfo.authentication) && - Objects.equals(this.brand, cardInfo.brand) && - Objects.equals(this.brandVariant, cardInfo.brandVariant) && - Objects.equals(this.cardholderName, cardInfo.cardholderName) && - Objects.equals(this.configuration, cardInfo.configuration) && - Objects.equals(this.deliveryContact, cardInfo.deliveryContact) && - Objects.equals(this.formFactor, cardInfo.formFactor) && - Objects.equals(this.threeDSecure, cardInfo.threeDSecure) && - Objects.equals(this.usage, cardInfo.usage); + return Objects.equals(this.authentication, cardInfo.authentication) + && Objects.equals(this.brand, cardInfo.brand) + && Objects.equals(this.brandVariant, cardInfo.brandVariant) + && Objects.equals(this.cardholderName, cardInfo.cardholderName) + && Objects.equals(this.configuration, cardInfo.configuration) + && Objects.equals(this.deliveryContact, cardInfo.deliveryContact) + && Objects.equals(this.formFactor, cardInfo.formFactor) + && Objects.equals(this.threeDSecure, cardInfo.threeDSecure) + && Objects.equals(this.usage, cardInfo.usage); } @Override public int hashCode() { - return Objects.hash(authentication, brand, brandVariant, cardholderName, configuration, deliveryContact, formFactor, threeDSecure, usage); + return Objects.hash( + authentication, + brand, + brandVariant, + cardholderName, + configuration, + deliveryContact, + formFactor, + threeDSecure, + usage); } @Override @@ -449,8 +489,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -459,7 +498,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CardInfo given an JSON string * * @param jsonString JSON string @@ -469,11 +508,12 @@ private String toIndentedString(Object o) { public static CardInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardInfo.class); } -/** - * Convert an instance of CardInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CardInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CardOrder.java b/src/main/java/com/adyen/model/balanceplatform/CardOrder.java index 6cab6776a..92fc351c6 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CardOrder.java +++ b/src/main/java/com/adyen/model/balanceplatform/CardOrder.java @@ -2,32 +2,27 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * CardOrder - */ +/** CardOrder */ @JsonPropertyOrder({ CardOrder.JSON_PROPERTY_BEGIN_DATE, CardOrder.JSON_PROPERTY_CARD_MANUFACTURING_PROFILE_ID, @@ -38,12 +33,12 @@ CardOrder.JSON_PROPERTY_SERVICE_CENTER, CardOrder.JSON_PROPERTY_STATUS }) - public class CardOrder { public static final String JSON_PROPERTY_BEGIN_DATE = "beginDate"; private OffsetDateTime beginDate; - public static final String JSON_PROPERTY_CARD_MANUFACTURING_PROFILE_ID = "cardManufacturingProfileId"; + public static final String JSON_PROPERTY_CARD_MANUFACTURING_PROFILE_ID = + "cardManufacturingProfileId"; private String cardManufacturingProfileId; public static final String JSON_PROPERTY_CLOSED_DATE = "closedDate"; @@ -61,11 +56,8 @@ public class CardOrder { public static final String JSON_PROPERTY_SERVICE_CENTER = "serviceCenter"; private String serviceCenter; - /** - * The status of the card order. Possible values: **Open**, **Closed**. - */ + /** The status of the card order. Possible values: **Open**, **Closed**. */ public enum StatusEnum { - CLOSED(String.valueOf("closed")), OPEN(String.valueOf("open")); @@ -75,7 +67,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -96,7 +88,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -104,8 +100,7 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; - public CardOrder() { - } + public CardOrder() {} /** * The date when the card order is created. @@ -120,6 +115,7 @@ public CardOrder beginDate(OffsetDateTime beginDate) { /** * The date when the card order is created. + * * @return beginDate The date when the card order is created. */ @JsonProperty(JSON_PROPERTY_BEGIN_DATE) @@ -152,6 +148,7 @@ public CardOrder cardManufacturingProfileId(String cardManufacturingProfileId) { /** * The unique identifier of the card manufacturer profile. + * * @return cardManufacturingProfileId The unique identifier of the card manufacturer profile. */ @JsonProperty(JSON_PROPERTY_CARD_MANUFACTURING_PROFILE_ID) @@ -184,6 +181,7 @@ public CardOrder closedDate(OffsetDateTime closedDate) { /** * The date when the card order processing ends. + * * @return closedDate The date when the card order processing ends. */ @JsonProperty(JSON_PROPERTY_CLOSED_DATE) @@ -204,9 +202,13 @@ public void setClosedDate(OffsetDateTime closedDate) { } /** - * The date when you manually closed the card order. Card orders are automatically closed by the end of the day it was created. If you manually closed it beforehand, the closing date is shown as the `endDate`. + * The date when you manually closed the card order. Card orders are automatically closed by the + * end of the day it was created. If you manually closed it beforehand, the closing date is shown + * as the `endDate`. * - * @param endDate The date when you manually closed the card order. Card orders are automatically closed by the end of the day it was created. If you manually closed it beforehand, the closing date is shown as the `endDate`. + * @param endDate The date when you manually closed the card order. Card orders are automatically + * closed by the end of the day it was created. If you manually closed it beforehand, the + * closing date is shown as the `endDate`. * @return the current {@code CardOrder} instance, allowing for method chaining */ public CardOrder endDate(OffsetDateTime endDate) { @@ -215,8 +217,13 @@ public CardOrder endDate(OffsetDateTime endDate) { } /** - * The date when you manually closed the card order. Card orders are automatically closed by the end of the day it was created. If you manually closed it beforehand, the closing date is shown as the `endDate`. - * @return endDate The date when you manually closed the card order. Card orders are automatically closed by the end of the day it was created. If you manually closed it beforehand, the closing date is shown as the `endDate`. + * The date when you manually closed the card order. Card orders are automatically closed by the + * end of the day it was created. If you manually closed it beforehand, the closing date is shown + * as the `endDate`. + * + * @return endDate The date when you manually closed the card order. Card orders are automatically + * closed by the end of the day it was created. If you manually closed it beforehand, the + * closing date is shown as the `endDate`. */ @JsonProperty(JSON_PROPERTY_END_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -225,9 +232,13 @@ public OffsetDateTime getEndDate() { } /** - * The date when you manually closed the card order. Card orders are automatically closed by the end of the day it was created. If you manually closed it beforehand, the closing date is shown as the `endDate`. + * The date when you manually closed the card order. Card orders are automatically closed by the + * end of the day it was created. If you manually closed it beforehand, the closing date is shown + * as the `endDate`. * - * @param endDate The date when you manually closed the card order. Card orders are automatically closed by the end of the day it was created. If you manually closed it beforehand, the closing date is shown as the `endDate`. + * @param endDate The date when you manually closed the card order. Card orders are automatically + * closed by the end of the day it was created. If you manually closed it beforehand, the + * closing date is shown as the `endDate`. */ @JsonProperty(JSON_PROPERTY_END_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -248,6 +259,7 @@ public CardOrder id(String id) { /** * The unique identifier of the card order. + * * @return id The unique identifier of the card order. */ @JsonProperty(JSON_PROPERTY_ID) @@ -280,6 +292,7 @@ public CardOrder lockDate(OffsetDateTime lockDate) { /** * The date when the card order processing begins. + * * @return lockDate The date when the card order processing begins. */ @JsonProperty(JSON_PROPERTY_LOCK_DATE) @@ -312,6 +325,7 @@ public CardOrder serviceCenter(String serviceCenter) { /** * The service center. + * * @return serviceCenter The service center. */ @JsonProperty(JSON_PROPERTY_SERVICE_CENTER) @@ -332,9 +346,9 @@ public void setServiceCenter(String serviceCenter) { } /** - * The status of the card order. Possible values: **Open**, **Closed**. + * The status of the card order. Possible values: **Open**, **Closed**. * - * @param status The status of the card order. Possible values: **Open**, **Closed**. + * @param status The status of the card order. Possible values: **Open**, **Closed**. * @return the current {@code CardOrder} instance, allowing for method chaining */ public CardOrder status(StatusEnum status) { @@ -343,8 +357,9 @@ public CardOrder status(StatusEnum status) { } /** - * The status of the card order. Possible values: **Open**, **Closed**. - * @return status The status of the card order. Possible values: **Open**, **Closed**. + * The status of the card order. Possible values: **Open**, **Closed**. + * + * @return status The status of the card order. Possible values: **Open**, **Closed**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -353,9 +368,9 @@ public StatusEnum getStatus() { } /** - * The status of the card order. Possible values: **Open**, **Closed**. + * The status of the card order. Possible values: **Open**, **Closed**. * - * @param status The status of the card order. Possible values: **Open**, **Closed**. + * @param status The status of the card order. Possible values: **Open**, **Closed**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -363,9 +378,7 @@ public void setStatus(StatusEnum status) { this.status = status; } - /** - * Return true if this CardOrder object is equal to o. - */ + /** Return true if this CardOrder object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -375,19 +388,27 @@ public boolean equals(Object o) { return false; } CardOrder cardOrder = (CardOrder) o; - return Objects.equals(this.beginDate, cardOrder.beginDate) && - Objects.equals(this.cardManufacturingProfileId, cardOrder.cardManufacturingProfileId) && - Objects.equals(this.closedDate, cardOrder.closedDate) && - Objects.equals(this.endDate, cardOrder.endDate) && - Objects.equals(this.id, cardOrder.id) && - Objects.equals(this.lockDate, cardOrder.lockDate) && - Objects.equals(this.serviceCenter, cardOrder.serviceCenter) && - Objects.equals(this.status, cardOrder.status); + return Objects.equals(this.beginDate, cardOrder.beginDate) + && Objects.equals(this.cardManufacturingProfileId, cardOrder.cardManufacturingProfileId) + && Objects.equals(this.closedDate, cardOrder.closedDate) + && Objects.equals(this.endDate, cardOrder.endDate) + && Objects.equals(this.id, cardOrder.id) + && Objects.equals(this.lockDate, cardOrder.lockDate) + && Objects.equals(this.serviceCenter, cardOrder.serviceCenter) + && Objects.equals(this.status, cardOrder.status); } @Override public int hashCode() { - return Objects.hash(beginDate, cardManufacturingProfileId, closedDate, endDate, id, lockDate, serviceCenter, status); + return Objects.hash( + beginDate, + cardManufacturingProfileId, + closedDate, + endDate, + id, + lockDate, + serviceCenter, + status); } @Override @@ -395,7 +416,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CardOrder {\n"); sb.append(" beginDate: ").append(toIndentedString(beginDate)).append("\n"); - sb.append(" cardManufacturingProfileId: ").append(toIndentedString(cardManufacturingProfileId)).append("\n"); + sb.append(" cardManufacturingProfileId: ") + .append(toIndentedString(cardManufacturingProfileId)) + .append("\n"); sb.append(" closedDate: ").append(toIndentedString(closedDate)).append("\n"); sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); @@ -407,8 +430,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -417,7 +439,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CardOrder given an JSON string * * @param jsonString JSON string @@ -427,11 +449,12 @@ private String toIndentedString(Object o) { public static CardOrder fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardOrder.class); } -/** - * Convert an instance of CardOrder to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CardOrder to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CardOrderItem.java b/src/main/java/com/adyen/model/balanceplatform/CardOrderItem.java index 2a54e5749..94ea7a405 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CardOrderItem.java +++ b/src/main/java/com/adyen/model/balanceplatform/CardOrderItem.java @@ -2,33 +2,24 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.CardOrderItemDeliveryStatus; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.time.OffsetDateTime; +import java.util.*; - -/** - * CardOrderItem - */ +/** CardOrderItem */ @JsonPropertyOrder({ CardOrderItem.JSON_PROPERTY_BALANCE_PLATFORM, CardOrderItem.JSON_PROPERTY_CARD, @@ -39,7 +30,6 @@ CardOrderItem.JSON_PROPERTY_PIN, CardOrderItem.JSON_PROPERTY_SHIPPING_METHOD }) - public class CardOrderItem { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; @@ -65,13 +55,10 @@ public class CardOrderItem { public static final String JSON_PROPERTY_SHIPPING_METHOD = "shippingMethod"; private String shippingMethod; - public CardOrderItem() { - } + public CardOrderItem() {} @JsonCreator - public CardOrderItem( - @JsonProperty(JSON_PROPERTY_ID) String id - ) { + public CardOrderItem(@JsonProperty(JSON_PROPERTY_ID) String id) { this(); this.id = id; } @@ -89,6 +76,7 @@ public CardOrderItem balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. + * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -111,7 +99,7 @@ public void setBalancePlatform(String balancePlatform) { /** * card * - * @param card + * @param card * @return the current {@code CardOrderItem} instance, allowing for method chaining */ public CardOrderItem card(CardOrderItemDeliveryStatus card) { @@ -121,7 +109,8 @@ public CardOrderItem card(CardOrderItemDeliveryStatus card) { /** * Get card - * @return card + * + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,7 +121,7 @@ public CardOrderItemDeliveryStatus getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -153,6 +142,7 @@ public CardOrderItem cardOrderItemId(String cardOrderItemId) { /** * The unique identifier of the card order item. + * * @return cardOrderItemId The unique identifier of the card order item. */ @JsonProperty(JSON_PROPERTY_CARD_ORDER_ITEM_ID) @@ -173,9 +163,11 @@ public void setCardOrderItemId(String cardOrderItemId) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code CardOrderItem} instance, allowing for method chaining */ public CardOrderItem creationDate(OffsetDateTime creationDate) { @@ -184,8 +176,11 @@ public CardOrderItem creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. + * + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,9 +189,11 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -206,6 +203,7 @@ public void setCreationDate(OffsetDateTime creationDate) { /** * The ID of the resource. + * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -214,11 +212,11 @@ public String getId() { return id; } - /** * The unique identifier of the payment instrument related to the card order item. * - * @param paymentInstrumentId The unique identifier of the payment instrument related to the card order item. + * @param paymentInstrumentId The unique identifier of the payment instrument related to the card + * order item. * @return the current {@code CardOrderItem} instance, allowing for method chaining */ public CardOrderItem paymentInstrumentId(String paymentInstrumentId) { @@ -228,7 +226,9 @@ public CardOrderItem paymentInstrumentId(String paymentInstrumentId) { /** * The unique identifier of the payment instrument related to the card order item. - * @return paymentInstrumentId The unique identifier of the payment instrument related to the card order item. + * + * @return paymentInstrumentId The unique identifier of the payment instrument related to the card + * order item. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -239,7 +239,8 @@ public String getPaymentInstrumentId() { /** * The unique identifier of the payment instrument related to the card order item. * - * @param paymentInstrumentId The unique identifier of the payment instrument related to the card order item. + * @param paymentInstrumentId The unique identifier of the payment instrument related to the card + * order item. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,7 +251,7 @@ public void setPaymentInstrumentId(String paymentInstrumentId) { /** * pin * - * @param pin + * @param pin * @return the current {@code CardOrderItem} instance, allowing for method chaining */ public CardOrderItem pin(CardOrderItemDeliveryStatus pin) { @@ -260,7 +261,8 @@ public CardOrderItem pin(CardOrderItemDeliveryStatus pin) { /** * Get pin - * @return pin + * + * @return pin */ @JsonProperty(JSON_PROPERTY_PIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -271,7 +273,7 @@ public CardOrderItemDeliveryStatus getPin() { /** * pin * - * @param pin + * @param pin */ @JsonProperty(JSON_PROPERTY_PIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -292,6 +294,7 @@ public CardOrderItem shippingMethod(String shippingMethod) { /** * The shipping method used to deliver the card or the PIN. + * * @return shippingMethod The shipping method used to deliver the card or the PIN. */ @JsonProperty(JSON_PROPERTY_SHIPPING_METHOD) @@ -311,9 +314,7 @@ public void setShippingMethod(String shippingMethod) { this.shippingMethod = shippingMethod; } - /** - * Return true if this CardOrderItem object is equal to o. - */ + /** Return true if this CardOrderItem object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -323,19 +324,27 @@ public boolean equals(Object o) { return false; } CardOrderItem cardOrderItem = (CardOrderItem) o; - return Objects.equals(this.balancePlatform, cardOrderItem.balancePlatform) && - Objects.equals(this.card, cardOrderItem.card) && - Objects.equals(this.cardOrderItemId, cardOrderItem.cardOrderItemId) && - Objects.equals(this.creationDate, cardOrderItem.creationDate) && - Objects.equals(this.id, cardOrderItem.id) && - Objects.equals(this.paymentInstrumentId, cardOrderItem.paymentInstrumentId) && - Objects.equals(this.pin, cardOrderItem.pin) && - Objects.equals(this.shippingMethod, cardOrderItem.shippingMethod); + return Objects.equals(this.balancePlatform, cardOrderItem.balancePlatform) + && Objects.equals(this.card, cardOrderItem.card) + && Objects.equals(this.cardOrderItemId, cardOrderItem.cardOrderItemId) + && Objects.equals(this.creationDate, cardOrderItem.creationDate) + && Objects.equals(this.id, cardOrderItem.id) + && Objects.equals(this.paymentInstrumentId, cardOrderItem.paymentInstrumentId) + && Objects.equals(this.pin, cardOrderItem.pin) + && Objects.equals(this.shippingMethod, cardOrderItem.shippingMethod); } @Override public int hashCode() { - return Objects.hash(balancePlatform, card, cardOrderItemId, creationDate, id, paymentInstrumentId, pin, shippingMethod); + return Objects.hash( + balancePlatform, + card, + cardOrderItemId, + creationDate, + id, + paymentInstrumentId, + pin, + shippingMethod); } @Override @@ -347,7 +356,9 @@ public String toString() { sb.append(" cardOrderItemId: ").append(toIndentedString(cardOrderItemId)).append("\n"); sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" paymentInstrumentId: ").append(toIndentedString(paymentInstrumentId)).append("\n"); + sb.append(" paymentInstrumentId: ") + .append(toIndentedString(paymentInstrumentId)) + .append("\n"); sb.append(" pin: ").append(toIndentedString(pin)).append("\n"); sb.append(" shippingMethod: ").append(toIndentedString(shippingMethod)).append("\n"); sb.append("}"); @@ -355,8 +366,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -365,7 +375,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CardOrderItem given an JSON string * * @param jsonString JSON string @@ -375,11 +385,12 @@ private String toIndentedString(Object o) { public static CardOrderItem fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardOrderItem.class); } -/** - * Convert an instance of CardOrderItem to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CardOrderItem to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CardOrderItemDeliveryStatus.java b/src/main/java/com/adyen/model/balanceplatform/CardOrderItemDeliveryStatus.java index 8fe150299..325c4e3e2 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CardOrderItemDeliveryStatus.java +++ b/src/main/java/com/adyen/model/balanceplatform/CardOrderItemDeliveryStatus.java @@ -2,46 +2,37 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * CardOrderItemDeliveryStatus - */ +/** CardOrderItemDeliveryStatus */ @JsonPropertyOrder({ CardOrderItemDeliveryStatus.JSON_PROPERTY_ERROR_MESSAGE, CardOrderItemDeliveryStatus.JSON_PROPERTY_STATUS, CardOrderItemDeliveryStatus.JSON_PROPERTY_TRACKING_NUMBER }) - public class CardOrderItemDeliveryStatus { public static final String JSON_PROPERTY_ERROR_MESSAGE = "errorMessage"; private String errorMessage; - /** - * The status of the PIN delivery. - */ + /** The status of the PIN delivery. */ public enum StatusEnum { - CREATED(String.valueOf("created")), DELIVERED(String.valueOf("delivered")), @@ -63,7 +54,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -84,7 +75,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -95,8 +90,7 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_TRACKING_NUMBER = "trackingNumber"; private String trackingNumber; - public CardOrderItemDeliveryStatus() { - } + public CardOrderItemDeliveryStatus() {} /** * An error message. @@ -111,6 +105,7 @@ public CardOrderItemDeliveryStatus errorMessage(String errorMessage) { /** * An error message. + * * @return errorMessage An error message. */ @JsonProperty(JSON_PROPERTY_ERROR_MESSAGE) @@ -143,6 +138,7 @@ public CardOrderItemDeliveryStatus status(StatusEnum status) { /** * The status of the PIN delivery. + * * @return status The status of the PIN delivery. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -175,6 +171,7 @@ public CardOrderItemDeliveryStatus trackingNumber(String trackingNumber) { /** * The tracking number of the PIN delivery. + * * @return trackingNumber The tracking number of the PIN delivery. */ @JsonProperty(JSON_PROPERTY_TRACKING_NUMBER) @@ -194,9 +191,7 @@ public void setTrackingNumber(String trackingNumber) { this.trackingNumber = trackingNumber; } - /** - * Return true if this CardOrderItemDeliveryStatus object is equal to o. - */ + /** Return true if this CardOrderItemDeliveryStatus object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -206,9 +201,9 @@ public boolean equals(Object o) { return false; } CardOrderItemDeliveryStatus cardOrderItemDeliveryStatus = (CardOrderItemDeliveryStatus) o; - return Objects.equals(this.errorMessage, cardOrderItemDeliveryStatus.errorMessage) && - Objects.equals(this.status, cardOrderItemDeliveryStatus.status) && - Objects.equals(this.trackingNumber, cardOrderItemDeliveryStatus.trackingNumber); + return Objects.equals(this.errorMessage, cardOrderItemDeliveryStatus.errorMessage) + && Objects.equals(this.status, cardOrderItemDeliveryStatus.status) + && Objects.equals(this.trackingNumber, cardOrderItemDeliveryStatus.trackingNumber); } @Override @@ -228,8 +223,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -238,21 +232,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CardOrderItemDeliveryStatus given an JSON string * * @param jsonString JSON string * @return An instance of CardOrderItemDeliveryStatus - * @throws JsonProcessingException if the JSON string is invalid with respect to CardOrderItemDeliveryStatus + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CardOrderItemDeliveryStatus */ - public static CardOrderItemDeliveryStatus fromJson(String jsonString) throws JsonProcessingException { + public static CardOrderItemDeliveryStatus fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardOrderItemDeliveryStatus.class); } -/** - * Convert an instance of CardOrderItemDeliveryStatus to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CardOrderItemDeliveryStatus to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/Condition.java b/src/main/java/com/adyen/model/balanceplatform/Condition.java index ba448c212..413cfa8b5 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Condition.java +++ b/src/main/java/com/adyen/model/balanceplatform/Condition.java @@ -2,43 +2,39 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * Condition - */ +/** Condition */ @JsonPropertyOrder({ Condition.JSON_PROPERTY_BALANCE_TYPE, Condition.JSON_PROPERTY_CONDITION_TYPE, Condition.JSON_PROPERTY_VALUE }) - public class Condition { /** - * Define the type of balance about which you want to get notified. Possible values: * **available**: the balance available for use. * **balance**: the sum of transactions that have already been settled. * **pending**: the sum of transactions that will be settled in the future. * **reserved**: the balance currently held in reserve. + * Define the type of balance about which you want to get notified. Possible values: * + * **available**: the balance available for use. * **balance**: the sum of transactions that have + * already been settled. * **pending**: the sum of transactions that will be settled in the + * future. * **reserved**: the balance currently held in reserve. */ public enum BalanceTypeEnum { - BALANCE(String.valueOf("balance")), AVAILABLE(String.valueOf("available")), @@ -52,7 +48,7 @@ public enum BalanceTypeEnum { private String value; BalanceTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +69,11 @@ public static BalanceTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("BalanceTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(BalanceTypeEnum.values())); + LOG.warning( + "BalanceTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(BalanceTypeEnum.values())); return null; } } @@ -82,10 +82,14 @@ public static BalanceTypeEnum fromValue(String value) { private BalanceTypeEnum balanceType; /** - * Define when you want to get notified about a balance change. Possible values: * **greaterThan**: the balance in the account(s) exceeds the specified `value`. * **greaterThanOrEqual**: the balance in the account(s) reaches or exceeds the specified `value`. * **lessThan**: the balance in the account(s) drops below the specified `value`. * **lessThanOrEqual**: the balance in the account(s) reaches to drops below the specified `value`. + * Define when you want to get notified about a balance change. Possible values: * + * **greaterThan**: the balance in the account(s) exceeds the specified `value`. * + * **greaterThanOrEqual**: the balance in the account(s) reaches or exceeds the specified + * `value`. * **lessThan**: the balance in the account(s) drops below the specified + * `value`. * **lessThanOrEqual**: the balance in the account(s) reaches to drops below + * the specified `value`. */ public enum ConditionTypeEnum { - GREATERTHAN(String.valueOf("greaterThan")), GREATERTHANOREQUAL(String.valueOf("greaterThanOrEqual")), @@ -99,7 +103,7 @@ public enum ConditionTypeEnum { private String value; ConditionTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -120,7 +124,11 @@ public static ConditionTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ConditionTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ConditionTypeEnum.values())); + LOG.warning( + "ConditionTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ConditionTypeEnum.values())); return null; } } @@ -131,13 +139,18 @@ public static ConditionTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Condition() { - } + public Condition() {} /** - * Define the type of balance about which you want to get notified. Possible values: * **available**: the balance available for use. * **balance**: the sum of transactions that have already been settled. * **pending**: the sum of transactions that will be settled in the future. * **reserved**: the balance currently held in reserve. + * Define the type of balance about which you want to get notified. Possible values: * + * **available**: the balance available for use. * **balance**: the sum of transactions that have + * already been settled. * **pending**: the sum of transactions that will be settled in the + * future. * **reserved**: the balance currently held in reserve. * - * @param balanceType Define the type of balance about which you want to get notified. Possible values: * **available**: the balance available for use. * **balance**: the sum of transactions that have already been settled. * **pending**: the sum of transactions that will be settled in the future. * **reserved**: the balance currently held in reserve. + * @param balanceType Define the type of balance about which you want to get notified. Possible + * values: * **available**: the balance available for use. * **balance**: the sum of + * transactions that have already been settled. * **pending**: the sum of transactions that + * will be settled in the future. * **reserved**: the balance currently held in reserve. * @return the current {@code Condition} instance, allowing for method chaining */ public Condition balanceType(BalanceTypeEnum balanceType) { @@ -146,8 +159,15 @@ public Condition balanceType(BalanceTypeEnum balanceType) { } /** - * Define the type of balance about which you want to get notified. Possible values: * **available**: the balance available for use. * **balance**: the sum of transactions that have already been settled. * **pending**: the sum of transactions that will be settled in the future. * **reserved**: the balance currently held in reserve. - * @return balanceType Define the type of balance about which you want to get notified. Possible values: * **available**: the balance available for use. * **balance**: the sum of transactions that have already been settled. * **pending**: the sum of transactions that will be settled in the future. * **reserved**: the balance currently held in reserve. + * Define the type of balance about which you want to get notified. Possible values: * + * **available**: the balance available for use. * **balance**: the sum of transactions that have + * already been settled. * **pending**: the sum of transactions that will be settled in the + * future. * **reserved**: the balance currently held in reserve. + * + * @return balanceType Define the type of balance about which you want to get notified. Possible + * values: * **available**: the balance available for use. * **balance**: the sum of + * transactions that have already been settled. * **pending**: the sum of transactions that + * will be settled in the future. * **reserved**: the balance currently held in reserve. */ @JsonProperty(JSON_PROPERTY_BALANCE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,9 +176,15 @@ public BalanceTypeEnum getBalanceType() { } /** - * Define the type of balance about which you want to get notified. Possible values: * **available**: the balance available for use. * **balance**: the sum of transactions that have already been settled. * **pending**: the sum of transactions that will be settled in the future. * **reserved**: the balance currently held in reserve. + * Define the type of balance about which you want to get notified. Possible values: * + * **available**: the balance available for use. * **balance**: the sum of transactions that have + * already been settled. * **pending**: the sum of transactions that will be settled in the + * future. * **reserved**: the balance currently held in reserve. * - * @param balanceType Define the type of balance about which you want to get notified. Possible values: * **available**: the balance available for use. * **balance**: the sum of transactions that have already been settled. * **pending**: the sum of transactions that will be settled in the future. * **reserved**: the balance currently held in reserve. + * @param balanceType Define the type of balance about which you want to get notified. Possible + * values: * **available**: the balance available for use. * **balance**: the sum of + * transactions that have already been settled. * **pending**: the sum of transactions that + * will be settled in the future. * **reserved**: the balance currently held in reserve. */ @JsonProperty(JSON_PROPERTY_BALANCE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,9 +193,19 @@ public void setBalanceType(BalanceTypeEnum balanceType) { } /** - * Define when you want to get notified about a balance change. Possible values: * **greaterThan**: the balance in the account(s) exceeds the specified `value`. * **greaterThanOrEqual**: the balance in the account(s) reaches or exceeds the specified `value`. * **lessThan**: the balance in the account(s) drops below the specified `value`. * **lessThanOrEqual**: the balance in the account(s) reaches to drops below the specified `value`. + * Define when you want to get notified about a balance change. Possible values: * + * **greaterThan**: the balance in the account(s) exceeds the specified `value`. * + * **greaterThanOrEqual**: the balance in the account(s) reaches or exceeds the specified + * `value`. * **lessThan**: the balance in the account(s) drops below the specified + * `value`. * **lessThanOrEqual**: the balance in the account(s) reaches to drops below + * the specified `value`. * - * @param conditionType Define when you want to get notified about a balance change. Possible values: * **greaterThan**: the balance in the account(s) exceeds the specified `value`. * **greaterThanOrEqual**: the balance in the account(s) reaches or exceeds the specified `value`. * **lessThan**: the balance in the account(s) drops below the specified `value`. * **lessThanOrEqual**: the balance in the account(s) reaches to drops below the specified `value`. + * @param conditionType Define when you want to get notified about a balance change. Possible + * values: * **greaterThan**: the balance in the account(s) exceeds the specified + * `value`. * **greaterThanOrEqual**: the balance in the account(s) reaches or + * exceeds the specified `value`. * **lessThan**: the balance in the account(s) + * drops below the specified `value`. * **lessThanOrEqual**: the balance in the + * account(s) reaches to drops below the specified `value`. * @return the current {@code Condition} instance, allowing for method chaining */ public Condition conditionType(ConditionTypeEnum conditionType) { @@ -178,8 +214,19 @@ public Condition conditionType(ConditionTypeEnum conditionType) { } /** - * Define when you want to get notified about a balance change. Possible values: * **greaterThan**: the balance in the account(s) exceeds the specified `value`. * **greaterThanOrEqual**: the balance in the account(s) reaches or exceeds the specified `value`. * **lessThan**: the balance in the account(s) drops below the specified `value`. * **lessThanOrEqual**: the balance in the account(s) reaches to drops below the specified `value`. - * @return conditionType Define when you want to get notified about a balance change. Possible values: * **greaterThan**: the balance in the account(s) exceeds the specified `value`. * **greaterThanOrEqual**: the balance in the account(s) reaches or exceeds the specified `value`. * **lessThan**: the balance in the account(s) drops below the specified `value`. * **lessThanOrEqual**: the balance in the account(s) reaches to drops below the specified `value`. + * Define when you want to get notified about a balance change. Possible values: * + * **greaterThan**: the balance in the account(s) exceeds the specified `value`. * + * **greaterThanOrEqual**: the balance in the account(s) reaches or exceeds the specified + * `value`. * **lessThan**: the balance in the account(s) drops below the specified + * `value`. * **lessThanOrEqual**: the balance in the account(s) reaches to drops below + * the specified `value`. + * + * @return conditionType Define when you want to get notified about a balance change. Possible + * values: * **greaterThan**: the balance in the account(s) exceeds the specified + * `value`. * **greaterThanOrEqual**: the balance in the account(s) reaches or + * exceeds the specified `value`. * **lessThan**: the balance in the account(s) + * drops below the specified `value`. * **lessThanOrEqual**: the balance in the + * account(s) reaches to drops below the specified `value`. */ @JsonProperty(JSON_PROPERTY_CONDITION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,9 +235,19 @@ public ConditionTypeEnum getConditionType() { } /** - * Define when you want to get notified about a balance change. Possible values: * **greaterThan**: the balance in the account(s) exceeds the specified `value`. * **greaterThanOrEqual**: the balance in the account(s) reaches or exceeds the specified `value`. * **lessThan**: the balance in the account(s) drops below the specified `value`. * **lessThanOrEqual**: the balance in the account(s) reaches to drops below the specified `value`. + * Define when you want to get notified about a balance change. Possible values: * + * **greaterThan**: the balance in the account(s) exceeds the specified `value`. * + * **greaterThanOrEqual**: the balance in the account(s) reaches or exceeds the specified + * `value`. * **lessThan**: the balance in the account(s) drops below the specified + * `value`. * **lessThanOrEqual**: the balance in the account(s) reaches to drops below + * the specified `value`. * - * @param conditionType Define when you want to get notified about a balance change. Possible values: * **greaterThan**: the balance in the account(s) exceeds the specified `value`. * **greaterThanOrEqual**: the balance in the account(s) reaches or exceeds the specified `value`. * **lessThan**: the balance in the account(s) drops below the specified `value`. * **lessThanOrEqual**: the balance in the account(s) reaches to drops below the specified `value`. + * @param conditionType Define when you want to get notified about a balance change. Possible + * values: * **greaterThan**: the balance in the account(s) exceeds the specified + * `value`. * **greaterThanOrEqual**: the balance in the account(s) reaches or + * exceeds the specified `value`. * **lessThan**: the balance in the account(s) + * drops below the specified `value`. * **lessThanOrEqual**: the balance in the + * account(s) reaches to drops below the specified `value`. */ @JsonProperty(JSON_PROPERTY_CONDITION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,6 +268,7 @@ public Condition value(Long value) { /** * The value limit in the specified balance type and currency, in minor units. + * * @return value The value limit in the specified balance type and currency, in minor units. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -230,9 +288,7 @@ public void setValue(Long value) { this.value = value; } - /** - * Return true if this Condition object is equal to o. - */ + /** Return true if this Condition object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -242,9 +298,9 @@ public boolean equals(Object o) { return false; } Condition condition = (Condition) o; - return Objects.equals(this.balanceType, condition.balanceType) && - Objects.equals(this.conditionType, condition.conditionType) && - Objects.equals(this.value, condition.value); + return Objects.equals(this.balanceType, condition.balanceType) + && Objects.equals(this.conditionType, condition.conditionType) + && Objects.equals(this.value, condition.value); } @Override @@ -264,8 +320,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -274,7 +329,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Condition given an JSON string * * @param jsonString JSON string @@ -284,11 +339,12 @@ private String toIndentedString(Object o) { public static Condition fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Condition.class); } -/** - * Convert an instance of Condition to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Condition to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/ContactDetails.java b/src/main/java/com/adyen/model/balanceplatform/ContactDetails.java index 8df8338db..fcfef740d 100644 --- a/src/main/java/com/adyen/model/balanceplatform/ContactDetails.java +++ b/src/main/java/com/adyen/model/balanceplatform/ContactDetails.java @@ -2,33 +2,25 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.Address; -import com.adyen.model.balanceplatform.Phone; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.*; /** * ContactDetails - * @deprecated + * + * @deprecated */ @Deprecated @JsonPropertyOrder({ @@ -37,7 +29,6 @@ ContactDetails.JSON_PROPERTY_PHONE, ContactDetails.JSON_PROPERTY_WEB_ADDRESS }) - public class ContactDetails { public static final String JSON_PROPERTY_ADDRESS = "address"; private Address address; @@ -51,13 +42,12 @@ public class ContactDetails { public static final String JSON_PROPERTY_WEB_ADDRESS = "webAddress"; private String webAddress; - public ContactDetails() { - } + public ContactDetails() {} /** * address * - * @param address + * @param address * @return the current {@code ContactDetails} instance, allowing for method chaining */ public ContactDetails address(Address address) { @@ -67,7 +57,8 @@ public ContactDetails address(Address address) { /** * Get address - * @return address + * + * @return address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -78,7 +69,7 @@ public Address getAddress() { /** * address * - * @param address + * @param address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,6 +90,7 @@ public ContactDetails email(String email) { /** * The email address of the account holder. + * * @return email The email address of the account holder. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -121,7 +113,7 @@ public void setEmail(String email) { /** * phone * - * @param phone + * @param phone * @return the current {@code ContactDetails} instance, allowing for method chaining */ public ContactDetails phone(Phone phone) { @@ -131,7 +123,8 @@ public ContactDetails phone(Phone phone) { /** * Get phone - * @return phone + * + * @return phone */ @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,7 +135,7 @@ public Phone getPhone() { /** * phone * - * @param phone + * @param phone */ @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,6 +156,7 @@ public ContactDetails webAddress(String webAddress) { /** * The URL of the account holder's website. + * * @return webAddress The URL of the account holder's website. */ @JsonProperty(JSON_PROPERTY_WEB_ADDRESS) @@ -182,9 +176,7 @@ public void setWebAddress(String webAddress) { this.webAddress = webAddress; } - /** - * Return true if this ContactDetails object is equal to o. - */ + /** Return true if this ContactDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -194,10 +186,10 @@ public boolean equals(Object o) { return false; } ContactDetails contactDetails = (ContactDetails) o; - return Objects.equals(this.address, contactDetails.address) && - Objects.equals(this.email, contactDetails.email) && - Objects.equals(this.phone, contactDetails.phone) && - Objects.equals(this.webAddress, contactDetails.webAddress); + return Objects.equals(this.address, contactDetails.address) + && Objects.equals(this.email, contactDetails.email) + && Objects.equals(this.phone, contactDetails.phone) + && Objects.equals(this.webAddress, contactDetails.webAddress); } @Override @@ -218,8 +210,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -228,7 +219,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ContactDetails given an JSON string * * @param jsonString JSON string @@ -238,11 +229,12 @@ private String toIndentedString(Object o) { public static ContactDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ContactDetails.class); } -/** - * Convert an instance of ContactDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ContactDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/Counterparty.java b/src/main/java/com/adyen/model/balanceplatform/Counterparty.java index 8a95f33a7..9cf7780d1 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Counterparty.java +++ b/src/main/java/com/adyen/model/balanceplatform/Counterparty.java @@ -2,37 +2,26 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.BankAccount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Counterparty - */ +/** Counterparty */ @JsonPropertyOrder({ Counterparty.JSON_PROPERTY_BANK_ACCOUNT, Counterparty.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID }) - public class Counterparty { public static final String JSON_PROPERTY_BANK_ACCOUNT = "bankAccount"; private BankAccount bankAccount; @@ -40,13 +29,12 @@ public class Counterparty { public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_ID = "transferInstrumentId"; private String transferInstrumentId; - public Counterparty() { - } + public Counterparty() {} /** * bankAccount * - * @param bankAccount + * @param bankAccount * @return the current {@code Counterparty} instance, allowing for method chaining */ public Counterparty bankAccount(BankAccount bankAccount) { @@ -56,7 +44,8 @@ public Counterparty bankAccount(BankAccount bankAccount) { /** * Get bankAccount - * @return bankAccount + * + * @return bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -67,7 +56,7 @@ public BankAccount getBankAccount() { /** * bankAccount * - * @param bankAccount + * @param bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -76,9 +65,11 @@ public void setBankAccount(BankAccount bankAccount) { } /** - * The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * The unique identifier of the [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). * - * @param transferInstrumentId The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * @param transferInstrumentId The unique identifier of the [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). * @return the current {@code Counterparty} instance, allowing for method chaining */ public Counterparty transferInstrumentId(String transferInstrumentId) { @@ -87,8 +78,11 @@ public Counterparty transferInstrumentId(String transferInstrumentId) { } /** - * The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - * @return transferInstrumentId The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * The unique identifier of the [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * + * @return transferInstrumentId The unique identifier of the [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,9 +91,11 @@ public String getTransferInstrumentId() { } /** - * The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * The unique identifier of the [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). * - * @param transferInstrumentId The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * @param transferInstrumentId The unique identifier of the [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,9 +103,7 @@ public void setTransferInstrumentId(String transferInstrumentId) { this.transferInstrumentId = transferInstrumentId; } - /** - * Return true if this Counterparty object is equal to o. - */ + /** Return true if this Counterparty object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -119,8 +113,8 @@ public boolean equals(Object o) { return false; } Counterparty counterparty = (Counterparty) o; - return Objects.equals(this.bankAccount, counterparty.bankAccount) && - Objects.equals(this.transferInstrumentId, counterparty.transferInstrumentId); + return Objects.equals(this.bankAccount, counterparty.bankAccount) + && Objects.equals(this.transferInstrumentId, counterparty.transferInstrumentId); } @Override @@ -133,14 +127,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Counterparty {\n"); sb.append(" bankAccount: ").append(toIndentedString(bankAccount)).append("\n"); - sb.append(" transferInstrumentId: ").append(toIndentedString(transferInstrumentId)).append("\n"); + sb.append(" transferInstrumentId: ") + .append(toIndentedString(transferInstrumentId)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -149,7 +144,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Counterparty given an JSON string * * @param jsonString JSON string @@ -159,11 +154,12 @@ private String toIndentedString(Object o) { public static Counterparty fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Counterparty.class); } -/** - * Convert an instance of Counterparty to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Counterparty to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CounterpartyBankRestriction.java b/src/main/java/com/adyen/model/balanceplatform/CounterpartyBankRestriction.java index 6e15e96ab..e42dbdcd9 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CounterpartyBankRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/CounterpartyBankRestriction.java @@ -2,39 +2,28 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.BankIdentification; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * CounterpartyBankRestriction - */ +/** CounterpartyBankRestriction */ @JsonPropertyOrder({ CounterpartyBankRestriction.JSON_PROPERTY_OPERATION, CounterpartyBankRestriction.JSON_PROPERTY_VALUE }) - public class CounterpartyBankRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -42,8 +31,7 @@ public class CounterpartyBankRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private List value; - public CounterpartyBankRestriction() { - } + public CounterpartyBankRestriction() {} /** * Defines how the condition must be evaluated. @@ -58,6 +46,7 @@ public CounterpartyBankRestriction operation(String operation) { /** * Defines how the condition must be evaluated. + * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -98,6 +87,7 @@ public CounterpartyBankRestriction addValueItem(BankIdentification valueItem) { /** * The list of counterparty bank institutions to be evaluated. + * * @return value The list of counterparty bank institutions to be evaluated. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -117,9 +107,7 @@ public void setValue(List value) { this.value = value; } - /** - * Return true if this CounterpartyBankRestriction object is equal to o. - */ + /** Return true if this CounterpartyBankRestriction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -129,8 +117,8 @@ public boolean equals(Object o) { return false; } CounterpartyBankRestriction counterpartyBankRestriction = (CounterpartyBankRestriction) o; - return Objects.equals(this.operation, counterpartyBankRestriction.operation) && - Objects.equals(this.value, counterpartyBankRestriction.value); + return Objects.equals(this.operation, counterpartyBankRestriction.operation) + && Objects.equals(this.value, counterpartyBankRestriction.value); } @Override @@ -149,8 +137,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -159,21 +146,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CounterpartyBankRestriction given an JSON string * * @param jsonString JSON string * @return An instance of CounterpartyBankRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to CounterpartyBankRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CounterpartyBankRestriction */ - public static CounterpartyBankRestriction fromJson(String jsonString) throws JsonProcessingException { + public static CounterpartyBankRestriction fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CounterpartyBankRestriction.class); } -/** - * Convert an instance of CounterpartyBankRestriction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CounterpartyBankRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CounterpartyTypesRestriction.java b/src/main/java/com/adyen/model/balanceplatform/CounterpartyTypesRestriction.java index c5188cba2..19e5a61a3 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CounterpartyTypesRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/CounterpartyTypesRestriction.java @@ -2,47 +2,38 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * CounterpartyTypesRestriction - */ +/** CounterpartyTypesRestriction */ @JsonPropertyOrder({ CounterpartyTypesRestriction.JSON_PROPERTY_OPERATION, CounterpartyTypesRestriction.JSON_PROPERTY_VALUE }) - public class CounterpartyTypesRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; - /** - * Gets or Sets value - */ + /** Gets or Sets value */ public enum ValueEnum { - BALANCEACCOUNT(String.valueOf("balanceAccount")), BANKACCOUNT(String.valueOf("bankAccount")), @@ -56,7 +47,7 @@ public enum ValueEnum { private String value; ValueEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -77,7 +68,11 @@ public static ValueEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ValueEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ValueEnum.values())); + LOG.warning( + "ValueEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ValueEnum.values())); return null; } } @@ -85,8 +80,7 @@ public static ValueEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUE = "value"; private List value; - public CounterpartyTypesRestriction() { - } + public CounterpartyTypesRestriction() {} /** * Defines how the condition must be evaluated. @@ -101,6 +95,7 @@ public CounterpartyTypesRestriction operation(String operation) { /** * Defines how the condition must be evaluated. + * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -141,6 +136,7 @@ public CounterpartyTypesRestriction addValueItem(ValueEnum valueItem) { /** * The list of counterparty types to be evaluated. + * * @return value The list of counterparty types to be evaluated. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -160,9 +156,7 @@ public void setValue(List value) { this.value = value; } - /** - * Return true if this CounterpartyTypesRestriction object is equal to o. - */ + /** Return true if this CounterpartyTypesRestriction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -172,8 +166,8 @@ public boolean equals(Object o) { return false; } CounterpartyTypesRestriction counterpartyTypesRestriction = (CounterpartyTypesRestriction) o; - return Objects.equals(this.operation, counterpartyTypesRestriction.operation) && - Objects.equals(this.value, counterpartyTypesRestriction.value); + return Objects.equals(this.operation, counterpartyTypesRestriction.operation) + && Objects.equals(this.value, counterpartyTypesRestriction.value); } @Override @@ -192,8 +186,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -202,21 +195,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CounterpartyTypesRestriction given an JSON string * * @param jsonString JSON string * @return An instance of CounterpartyTypesRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to CounterpartyTypesRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CounterpartyTypesRestriction */ - public static CounterpartyTypesRestriction fromJson(String jsonString) throws JsonProcessingException { + public static CounterpartyTypesRestriction fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CounterpartyTypesRestriction.class); } -/** - * Convert an instance of CounterpartyTypesRestriction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CounterpartyTypesRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CountriesRestriction.java b/src/main/java/com/adyen/model/balanceplatform/CountriesRestriction.java index ec02aeb68..78d780e09 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CountriesRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/CountriesRestriction.java @@ -2,38 +2,28 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * CountriesRestriction - */ +/** CountriesRestriction */ @JsonPropertyOrder({ CountriesRestriction.JSON_PROPERTY_OPERATION, CountriesRestriction.JSON_PROPERTY_VALUE }) - public class CountriesRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -41,8 +31,7 @@ public class CountriesRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private List value; - public CountriesRestriction() { - } + public CountriesRestriction() {} /** * Defines how the condition must be evaluated. @@ -57,6 +46,7 @@ public CountriesRestriction operation(String operation) { /** * Defines how the condition must be evaluated. + * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -77,9 +67,11 @@ public void setOperation(String operation) { } /** - * List of two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. + * List of two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country codes. * - * @param value List of two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. + * @param value List of two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. * @return the current {@code CountriesRestriction} instance, allowing for method chaining */ public CountriesRestriction value(List value) { @@ -96,8 +88,11 @@ public CountriesRestriction addValueItem(String valueItem) { } /** - * List of two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. - * @return value List of two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. + * List of two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country codes. + * + * @return value List of two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +101,11 @@ public List getValue() { } /** - * List of two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. + * List of two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country codes. * - * @param value List of two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. + * @param value List of two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,9 +113,7 @@ public void setValue(List value) { this.value = value; } - /** - * Return true if this CountriesRestriction object is equal to o. - */ + /** Return true if this CountriesRestriction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -128,8 +123,8 @@ public boolean equals(Object o) { return false; } CountriesRestriction countriesRestriction = (CountriesRestriction) o; - return Objects.equals(this.operation, countriesRestriction.operation) && - Objects.equals(this.value, countriesRestriction.value); + return Objects.equals(this.operation, countriesRestriction.operation) + && Objects.equals(this.value, countriesRestriction.value); } @Override @@ -148,8 +143,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -158,21 +152,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CountriesRestriction given an JSON string * * @param jsonString JSON string * @return An instance of CountriesRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to CountriesRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CountriesRestriction */ public static CountriesRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CountriesRestriction.class); } -/** - * Convert an instance of CountriesRestriction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CountriesRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CreateSweepConfigurationV2.java b/src/main/java/com/adyen/model/balanceplatform/CreateSweepConfigurationV2.java index 84064147e..216b62e90 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CreateSweepConfigurationV2.java +++ b/src/main/java/com/adyen/model/balanceplatform/CreateSweepConfigurationV2.java @@ -2,36 +2,28 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.Amount; -import com.adyen.model.balanceplatform.SweepCounterparty; -import com.adyen.model.balanceplatform.SweepSchedule; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * CreateSweepConfigurationV2 - */ +/** CreateSweepConfigurationV2 */ @JsonPropertyOrder({ CreateSweepConfigurationV2.JSON_PROPERTY_CATEGORY, CreateSweepConfigurationV2.JSON_PROPERTY_COUNTERPARTY, @@ -49,13 +41,16 @@ CreateSweepConfigurationV2.JSON_PROPERTY_TRIGGER_AMOUNT, CreateSweepConfigurationV2.JSON_PROPERTY_TYPE }) - public class CreateSweepConfigurationV2 { /** - * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. + * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a + * [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * - **internal**: Transfer to another [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. Required when setting `priorities`. */ public enum CategoryEnum { - BANK(String.valueOf("bank")), INTERNAL(String.valueOf("internal")), @@ -67,7 +62,7 @@ public enum CategoryEnum { private String value; CategoryEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -88,7 +83,11 @@ public static CategoryEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("CategoryEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CategoryEnum.values())); + LOG.warning( + "CategoryEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(CategoryEnum.values())); return null; } } @@ -105,11 +104,8 @@ public static CategoryEnum fromValue(String value) { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; - /** - * Gets or Sets priorities - */ + /** Gets or Sets priorities */ public enum PrioritiesEnum { - CROSSBORDER(String.valueOf("crossBorder")), FAST(String.valueOf("fast")), @@ -127,7 +123,7 @@ public enum PrioritiesEnum { private String value; PrioritiesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -148,7 +144,11 @@ public static PrioritiesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PrioritiesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PrioritiesEnum.values())); + LOG.warning( + "PrioritiesEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PrioritiesEnum.values())); return null; } } @@ -156,11 +156,8 @@ public static PrioritiesEnum fromValue(String value) { public static final String JSON_PROPERTY_PRIORITIES = "priorities"; private List priorities; - /** - * The reason for disabling the sweep. - */ + /** The reason for disabling the sweep. */ public enum ReasonEnum { - ACCOUNTHIERARCHYNOTACTIVE(String.valueOf("accountHierarchyNotActive")), AMOUNTLIMITEXCEEDED(String.valueOf("amountLimitExceeded")), @@ -169,7 +166,8 @@ public enum ReasonEnum { APPROVED(String.valueOf("approved")), - BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE(String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), + BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE( + String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), COUNTERPARTYACCOUNTBLOCKED(String.valueOf("counterpartyAccountBlocked")), @@ -216,7 +214,7 @@ public enum ReasonEnum { private String value; ReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -237,7 +235,11 @@ public static ReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ReasonEnum.values())); + LOG.warning( + "ReasonEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ReasonEnum.values())); return null; } } @@ -258,10 +260,11 @@ public static ReasonEnum fromValue(String value) { private SweepSchedule schedule; /** - * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * The status of the sweep. If not provided, by default, this is set to **active**. Possible + * values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on + * the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. */ public enum StatusEnum { - ACTIVE(String.valueOf("active")), INACTIVE(String.valueOf("inactive")); @@ -271,7 +274,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -292,7 +295,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -310,10 +317,12 @@ public static StatusEnum fromValue(String value) { private Amount triggerAmount; /** - * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. + * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not + * provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to + * a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source + * merchant account, transfer instrument, or balance account. */ public enum TypeEnum { - PULL(String.valueOf("pull")), PUSH(String.valueOf("push")); @@ -323,7 +332,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -344,7 +353,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -352,23 +365,31 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CreateSweepConfigurationV2() { - } + public CreateSweepConfigurationV2() {} @JsonCreator public CreateSweepConfigurationV2( - @JsonProperty(JSON_PROPERTY_REASON) ReasonEnum reason, - @JsonProperty(JSON_PROPERTY_REASON_DETAIL) String reasonDetail - ) { + @JsonProperty(JSON_PROPERTY_REASON) ReasonEnum reason, + @JsonProperty(JSON_PROPERTY_REASON_DETAIL) String reasonDetail) { this(); this.reason = reason; this.reasonDetail = reasonDetail; } /** - * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. + * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a + * [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * - **internal**: Transfer to another [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. Required when setting `priorities`. * - * @param category The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. + * @param category The type of transfer that results from the sweep. Possible values: - **bank**: + * Sweep to a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * - **internal**: Transfer to another [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. Required when setting `priorities`. * @return the current {@code CreateSweepConfigurationV2} instance, allowing for method chaining */ public CreateSweepConfigurationV2 category(CategoryEnum category) { @@ -377,8 +398,19 @@ public CreateSweepConfigurationV2 category(CategoryEnum category) { } /** - * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. - * @return category The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. + * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a + * [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * - **internal**: Transfer to another [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. Required when setting `priorities`. + * + * @return category The type of transfer that results from the sweep. Possible values: - **bank**: + * Sweep to a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * - **internal**: Transfer to another [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. Required when setting `priorities`. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -387,9 +419,19 @@ public CategoryEnum getCategory() { } /** - * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. + * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a + * [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * - **internal**: Transfer to another [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. Required when setting `priorities`. * - * @param category The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. + * @param category The type of transfer that results from the sweep. Possible values: - **bank**: + * Sweep to a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * - **internal**: Transfer to another [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. Required when setting `priorities`. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -400,7 +442,7 @@ public void setCategory(CategoryEnum category) { /** * counterparty * - * @param counterparty + * @param counterparty * @return the current {@code CreateSweepConfigurationV2} instance, allowing for method chaining */ public CreateSweepConfigurationV2 counterparty(SweepCounterparty counterparty) { @@ -410,7 +452,8 @@ public CreateSweepConfigurationV2 counterparty(SweepCounterparty counterparty) { /** * Get counterparty - * @return counterparty + * + * @return counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -421,7 +464,7 @@ public SweepCounterparty getCounterparty() { /** * counterparty * - * @param counterparty + * @param counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -430,9 +473,15 @@ public void setCounterparty(SweepCounterparty counterparty) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, + * **EUR**. The sweep currency must match any of the [balances + * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For + * example, **EUR**. The sweep currency must match any of the [balances + * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). * @return the current {@code CreateSweepConfigurationV2} instance, allowing for method chaining */ public CreateSweepConfigurationV2 currency(String currency) { @@ -441,8 +490,15 @@ public CreateSweepConfigurationV2 currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, + * **EUR**. The sweep currency must match any of the [balances + * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For + * example, **EUR**. The sweep currency must match any of the [balances + * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -451,9 +507,15 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, + * **EUR**. The sweep currency must match any of the [balances + * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For + * example, **EUR**. The sweep currency must match any of the [balances + * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -462,9 +524,13 @@ public void setCurrency(String currency) { } /** - * The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. + * The message that will be used in the sweep transfer's description body with a maximum + * length of 140 characters. If the message is longer after replacing placeholders, the message + * will be cut off at 140 characters. * - * @param description The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. + * @param description The message that will be used in the sweep transfer's description body + * with a maximum length of 140 characters. If the message is longer after replacing + * placeholders, the message will be cut off at 140 characters. * @return the current {@code CreateSweepConfigurationV2} instance, allowing for method chaining */ public CreateSweepConfigurationV2 description(String description) { @@ -473,8 +539,13 @@ public CreateSweepConfigurationV2 description(String description) { } /** - * The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. - * @return description The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. + * The message that will be used in the sweep transfer's description body with a maximum + * length of 140 characters. If the message is longer after replacing placeholders, the message + * will be cut off at 140 characters. + * + * @return description The message that will be used in the sweep transfer's description body + * with a maximum length of 140 characters. If the message is longer after replacing + * placeholders, the message will be cut off at 140 characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -483,9 +554,13 @@ public String getDescription() { } /** - * The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. + * The message that will be used in the sweep transfer's description body with a maximum + * length of 140 characters. If the message is longer after replacing placeholders, the message + * will be cut off at 140 characters. * - * @param description The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. + * @param description The message that will be used in the sweep transfer's description body + * with a maximum length of 140 characters. If the message is longer after replacing + * placeholders, the message will be cut off at 140 characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -494,9 +569,50 @@ public void setDescription(String description) { } /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent + * and the fees that you have to pay. You can provide multiple priorities, ordered by your + * preference. Adyen will try to pay out using the priorities in the given order. If the first + * priority is not currently supported or enabled for your platform, the system will try the next + * one, and so on. The request will be accepted as long as **at least one** of the provided + * priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if + * you provide `[\"wire\",\"regular\"]`, and `wire` is not + * supported but `regular` is, the request will still be accepted and processed. + * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to + * transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. + * * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). Set `category` to **bank**. For more details, see optional priorities + * setup for + * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) + * or + * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). * - * @param priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * @param priorities The list of priorities for the bank transfer. This sets the speed at which + * the transfer is sent and the fees that you have to pay. You can provide multiple + * priorities, ordered by your preference. Adyen will try to pay out using the priorities in + * the given order. If the first priority is not currently supported or enabled for your + * platform, the system will try the next one, and so on. The request will be accepted as long + * as **at least one** of the provided priorities is valid (i.e., supported by Adyen and + * activated for your platform). For example, if you provide + * `[\"wire\",\"regular\"]`, and `wire` is not + * supported but `regular` is, the request will still be accepted and processed. + * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster + * way to transfer funds, but the fees are higher. Recommended for high-priority, low-value + * transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. + * Recommended for high-priority, high-value transactions. * **instant**: for instant funds + * transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). Set `category` to **bank**. For more details, see optional + * priorities setup for + * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) + * or + * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). * @return the current {@code CreateSweepConfigurationV2} instance, allowing for method chaining */ public CreateSweepConfigurationV2 priorities(List priorities) { @@ -513,8 +629,50 @@ public CreateSweepConfigurationV2 addPrioritiesItem(PrioritiesEnum prioritiesIte } /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). - * @return priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent + * and the fees that you have to pay. You can provide multiple priorities, ordered by your + * preference. Adyen will try to pay out using the priorities in the given order. If the first + * priority is not currently supported or enabled for your platform, the system will try the next + * one, and so on. The request will be accepted as long as **at least one** of the provided + * priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if + * you provide `[\"wire\",\"regular\"]`, and `wire` is not + * supported but `regular` is, the request will still be accepted and processed. + * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to + * transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. + * * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). Set `category` to **bank**. For more details, see optional priorities + * setup for + * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) + * or + * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * + * @return priorities The list of priorities for the bank transfer. This sets the speed at which + * the transfer is sent and the fees that you have to pay. You can provide multiple + * priorities, ordered by your preference. Adyen will try to pay out using the priorities in + * the given order. If the first priority is not currently supported or enabled for your + * platform, the system will try the next one, and so on. The request will be accepted as long + * as **at least one** of the provided priorities is valid (i.e., supported by Adyen and + * activated for your platform). For example, if you provide + * `[\"wire\",\"regular\"]`, and `wire` is not + * supported but `regular` is, the request will still be accepted and processed. + * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster + * way to transfer funds, but the fees are higher. Recommended for high-priority, low-value + * transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. + * Recommended for high-priority, high-value transactions. * **instant**: for instant funds + * transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). Set `category` to **bank**. For more details, see optional + * priorities setup for + * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) + * or + * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). */ @JsonProperty(JSON_PROPERTY_PRIORITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -523,9 +681,50 @@ public List getPriorities() { } /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent + * and the fees that you have to pay. You can provide multiple priorities, ordered by your + * preference. Adyen will try to pay out using the priorities in the given order. If the first + * priority is not currently supported or enabled for your platform, the system will try the next + * one, and so on. The request will be accepted as long as **at least one** of the provided + * priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if + * you provide `[\"wire\",\"regular\"]`, and `wire` is not + * supported but `regular` is, the request will still be accepted and processed. + * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to + * transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. + * * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). Set `category` to **bank**. For more details, see optional priorities + * setup for + * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) + * or + * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). * - * @param priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * @param priorities The list of priorities for the bank transfer. This sets the speed at which + * the transfer is sent and the fees that you have to pay. You can provide multiple + * priorities, ordered by your preference. Adyen will try to pay out using the priorities in + * the given order. If the first priority is not currently supported or enabled for your + * platform, the system will try the next one, and so on. The request will be accepted as long + * as **at least one** of the provided priorities is valid (i.e., supported by Adyen and + * activated for your platform). For example, if you provide + * `[\"wire\",\"regular\"]`, and `wire` is not + * supported but `regular` is, the request will still be accepted and processed. + * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster + * way to transfer funds, but the fees are higher. Recommended for high-priority, low-value + * transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. + * Recommended for high-priority, high-value transactions. * **instant**: for instant funds + * transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). Set `category` to **bank**. For more details, see optional + * priorities setup for + * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) + * or + * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). */ @JsonProperty(JSON_PROPERTY_PRIORITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -535,6 +734,7 @@ public void setPriorities(List priorities) { /** * The reason for disabling the sweep. + * * @return reason The reason for disabling the sweep. */ @JsonProperty(JSON_PROPERTY_REASON) @@ -543,9 +743,9 @@ public ReasonEnum getReason() { return reason; } - /** * The human readable reason for disabling the sweep. + * * @return reasonDetail The human readable reason for disabling the sweep. */ @JsonProperty(JSON_PROPERTY_REASON_DETAIL) @@ -554,7 +754,6 @@ public String getReasonDetail() { return reasonDetail; } - /** * Your reference for the sweep configuration. * @@ -568,6 +767,7 @@ public CreateSweepConfigurationV2 reference(String reference) { /** * Your reference for the sweep configuration. + * * @return reference Your reference for the sweep configuration. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -588,9 +788,11 @@ public void setReference(String reference) { } /** - * The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. + * The reference sent to or received from the counterparty. Only alphanumeric characters are + * allowed. * - * @param referenceForBeneficiary The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. + * @param referenceForBeneficiary The reference sent to or received from the counterparty. Only + * alphanumeric characters are allowed. * @return the current {@code CreateSweepConfigurationV2} instance, allowing for method chaining */ public CreateSweepConfigurationV2 referenceForBeneficiary(String referenceForBeneficiary) { @@ -599,8 +801,11 @@ public CreateSweepConfigurationV2 referenceForBeneficiary(String referenceForBen } /** - * The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. - * @return referenceForBeneficiary The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. + * The reference sent to or received from the counterparty. Only alphanumeric characters are + * allowed. + * + * @return referenceForBeneficiary The reference sent to or received from the counterparty. Only + * alphanumeric characters are allowed. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -609,9 +814,11 @@ public String getReferenceForBeneficiary() { } /** - * The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. + * The reference sent to or received from the counterparty. Only alphanumeric characters are + * allowed. * - * @param referenceForBeneficiary The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. + * @param referenceForBeneficiary The reference sent to or received from the counterparty. Only + * alphanumeric characters are allowed. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -622,7 +829,7 @@ public void setReferenceForBeneficiary(String referenceForBeneficiary) { /** * schedule * - * @param schedule + * @param schedule * @return the current {@code CreateSweepConfigurationV2} instance, allowing for method chaining */ public CreateSweepConfigurationV2 schedule(SweepSchedule schedule) { @@ -632,7 +839,8 @@ public CreateSweepConfigurationV2 schedule(SweepSchedule schedule) { /** * Get schedule - * @return schedule + * + * @return schedule */ @JsonProperty(JSON_PROPERTY_SCHEDULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -643,7 +851,7 @@ public SweepSchedule getSchedule() { /** * schedule * - * @param schedule + * @param schedule */ @JsonProperty(JSON_PROPERTY_SCHEDULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -652,9 +860,14 @@ public void setSchedule(SweepSchedule schedule) { } /** - * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * The status of the sweep. If not provided, by default, this is set to **active**. Possible + * values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on + * the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. * - * @param status The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * @param status The status of the sweep. If not provided, by default, this is set to **active**. + * Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed + * out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be + * triggered. * @return the current {@code CreateSweepConfigurationV2} instance, allowing for method chaining */ public CreateSweepConfigurationV2 status(StatusEnum status) { @@ -663,8 +876,14 @@ public CreateSweepConfigurationV2 status(StatusEnum status) { } /** - * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. - * @return status The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * The status of the sweep. If not provided, by default, this is set to **active**. Possible + * values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on + * the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * + * @return status The status of the sweep. If not provided, by default, this is set to **active**. + * Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed + * out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be + * triggered. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -673,9 +892,14 @@ public StatusEnum getStatus() { } /** - * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * The status of the sweep. If not provided, by default, this is set to **active**. Possible + * values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on + * the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. * - * @param status The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * @param status The status of the sweep. If not provided, by default, this is set to **active**. + * Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed + * out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be + * triggered. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -686,7 +910,7 @@ public void setStatus(StatusEnum status) { /** * sweepAmount * - * @param sweepAmount + * @param sweepAmount * @return the current {@code CreateSweepConfigurationV2} instance, allowing for method chaining */ public CreateSweepConfigurationV2 sweepAmount(Amount sweepAmount) { @@ -696,7 +920,8 @@ public CreateSweepConfigurationV2 sweepAmount(Amount sweepAmount) { /** * Get sweepAmount - * @return sweepAmount + * + * @return sweepAmount */ @JsonProperty(JSON_PROPERTY_SWEEP_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -707,7 +932,7 @@ public Amount getSweepAmount() { /** * sweepAmount * - * @param sweepAmount + * @param sweepAmount */ @JsonProperty(JSON_PROPERTY_SWEEP_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -718,7 +943,7 @@ public void setSweepAmount(Amount sweepAmount) { /** * targetAmount * - * @param targetAmount + * @param targetAmount * @return the current {@code CreateSweepConfigurationV2} instance, allowing for method chaining */ public CreateSweepConfigurationV2 targetAmount(Amount targetAmount) { @@ -728,7 +953,8 @@ public CreateSweepConfigurationV2 targetAmount(Amount targetAmount) { /** * Get targetAmount - * @return targetAmount + * + * @return targetAmount */ @JsonProperty(JSON_PROPERTY_TARGET_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -739,7 +965,7 @@ public Amount getTargetAmount() { /** * targetAmount * - * @param targetAmount + * @param targetAmount */ @JsonProperty(JSON_PROPERTY_TARGET_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -750,7 +976,7 @@ public void setTargetAmount(Amount targetAmount) { /** * triggerAmount * - * @param triggerAmount + * @param triggerAmount * @return the current {@code CreateSweepConfigurationV2} instance, allowing for method chaining */ public CreateSweepConfigurationV2 triggerAmount(Amount triggerAmount) { @@ -760,7 +986,8 @@ public CreateSweepConfigurationV2 triggerAmount(Amount triggerAmount) { /** * Get triggerAmount - * @return triggerAmount + * + * @return triggerAmount */ @JsonProperty(JSON_PROPERTY_TRIGGER_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -771,7 +998,7 @@ public Amount getTriggerAmount() { /** * triggerAmount * - * @param triggerAmount + * @param triggerAmount */ @JsonProperty(JSON_PROPERTY_TRIGGER_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -780,9 +1007,15 @@ public void setTriggerAmount(Amount triggerAmount) { } /** - * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. + * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not + * provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to + * a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source + * merchant account, transfer instrument, or balance account. * - * @param type The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. + * @param type The direction of sweep, whether pushing out or pulling in funds to the balance + * account. If not provided, by default, this is set to **push**. Possible values: * **push**: + * _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull + * in funds_ from a source merchant account, transfer instrument, or balance account. * @return the current {@code CreateSweepConfigurationV2} instance, allowing for method chaining */ public CreateSweepConfigurationV2 type(TypeEnum type) { @@ -791,8 +1024,15 @@ public CreateSweepConfigurationV2 type(TypeEnum type) { } /** - * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. - * @return type The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. + * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not + * provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to + * a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source + * merchant account, transfer instrument, or balance account. + * + * @return type The direction of sweep, whether pushing out or pulling in funds to the balance + * account. If not provided, by default, this is set to **push**. Possible values: * **push**: + * _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull + * in funds_ from a source merchant account, transfer instrument, or balance account. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -801,9 +1041,15 @@ public TypeEnum getType() { } /** - * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. + * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not + * provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to + * a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source + * merchant account, transfer instrument, or balance account. * - * @param type The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. + * @param type The direction of sweep, whether pushing out or pulling in funds to the balance + * account. If not provided, by default, this is set to **push**. Possible values: * **push**: + * _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull + * in funds_ from a source merchant account, transfer instrument, or balance account. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -811,9 +1057,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this CreateSweepConfigurationV2 object is equal to o. - */ + /** Return true if this CreateSweepConfigurationV2 object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -823,26 +1067,42 @@ public boolean equals(Object o) { return false; } CreateSweepConfigurationV2 createSweepConfigurationV2 = (CreateSweepConfigurationV2) o; - return Objects.equals(this.category, createSweepConfigurationV2.category) && - Objects.equals(this.counterparty, createSweepConfigurationV2.counterparty) && - Objects.equals(this.currency, createSweepConfigurationV2.currency) && - Objects.equals(this.description, createSweepConfigurationV2.description) && - Objects.equals(this.priorities, createSweepConfigurationV2.priorities) && - Objects.equals(this.reason, createSweepConfigurationV2.reason) && - Objects.equals(this.reasonDetail, createSweepConfigurationV2.reasonDetail) && - Objects.equals(this.reference, createSweepConfigurationV2.reference) && - Objects.equals(this.referenceForBeneficiary, createSweepConfigurationV2.referenceForBeneficiary) && - Objects.equals(this.schedule, createSweepConfigurationV2.schedule) && - Objects.equals(this.status, createSweepConfigurationV2.status) && - Objects.equals(this.sweepAmount, createSweepConfigurationV2.sweepAmount) && - Objects.equals(this.targetAmount, createSweepConfigurationV2.targetAmount) && - Objects.equals(this.triggerAmount, createSweepConfigurationV2.triggerAmount) && - Objects.equals(this.type, createSweepConfigurationV2.type); + return Objects.equals(this.category, createSweepConfigurationV2.category) + && Objects.equals(this.counterparty, createSweepConfigurationV2.counterparty) + && Objects.equals(this.currency, createSweepConfigurationV2.currency) + && Objects.equals(this.description, createSweepConfigurationV2.description) + && Objects.equals(this.priorities, createSweepConfigurationV2.priorities) + && Objects.equals(this.reason, createSweepConfigurationV2.reason) + && Objects.equals(this.reasonDetail, createSweepConfigurationV2.reasonDetail) + && Objects.equals(this.reference, createSweepConfigurationV2.reference) + && Objects.equals( + this.referenceForBeneficiary, createSweepConfigurationV2.referenceForBeneficiary) + && Objects.equals(this.schedule, createSweepConfigurationV2.schedule) + && Objects.equals(this.status, createSweepConfigurationV2.status) + && Objects.equals(this.sweepAmount, createSweepConfigurationV2.sweepAmount) + && Objects.equals(this.targetAmount, createSweepConfigurationV2.targetAmount) + && Objects.equals(this.triggerAmount, createSweepConfigurationV2.triggerAmount) + && Objects.equals(this.type, createSweepConfigurationV2.type); } @Override public int hashCode() { - return Objects.hash(category, counterparty, currency, description, priorities, reason, reasonDetail, reference, referenceForBeneficiary, schedule, status, sweepAmount, targetAmount, triggerAmount, type); + return Objects.hash( + category, + counterparty, + currency, + description, + priorities, + reason, + reasonDetail, + reference, + referenceForBeneficiary, + schedule, + status, + sweepAmount, + targetAmount, + triggerAmount, + type); } @Override @@ -857,7 +1117,9 @@ public String toString() { sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" reasonDetail: ").append(toIndentedString(reasonDetail)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); - sb.append(" referenceForBeneficiary: ").append(toIndentedString(referenceForBeneficiary)).append("\n"); + sb.append(" referenceForBeneficiary: ") + .append(toIndentedString(referenceForBeneficiary)) + .append("\n"); sb.append(" schedule: ").append(toIndentedString(schedule)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" sweepAmount: ").append(toIndentedString(sweepAmount)).append("\n"); @@ -869,8 +1131,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -879,21 +1140,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CreateSweepConfigurationV2 given an JSON string * * @param jsonString JSON string * @return An instance of CreateSweepConfigurationV2 - * @throws JsonProcessingException if the JSON string is invalid with respect to CreateSweepConfigurationV2 + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CreateSweepConfigurationV2 */ - public static CreateSweepConfigurationV2 fromJson(String jsonString) throws JsonProcessingException { + public static CreateSweepConfigurationV2 fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateSweepConfigurationV2.class); } -/** - * Convert an instance of CreateSweepConfigurationV2 to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CreateSweepConfigurationV2 to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/DKLocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/DKLocalAccountIdentification.java index 3be11e816..d71699bac 100644 --- a/src/main/java/com/adyen/model/balanceplatform/DKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/DKLocalAccountIdentification.java @@ -2,37 +2,31 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * DKLocalAccountIdentification - */ +/** DKLocalAccountIdentification */ @JsonPropertyOrder({ DKLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, DKLocalAccountIdentification.JSON_PROPERTY_BANK_CODE, DKLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class DKLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -40,11 +34,8 @@ public class DKLocalAccountIdentification { public static final String JSON_PROPERTY_BANK_CODE = "bankCode"; private String bankCode; - /** - * **dkLocal** - */ + /** **dkLocal** */ public enum TypeEnum { - DKLOCAL(String.valueOf("dkLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +43,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +64,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,13 +76,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public DKLocalAccountIdentification() { - } + public DKLocalAccountIdentification() {} /** * The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). * - * @param accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). + * @param accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or + * whitespace). * @return the current {@code DKLocalAccountIdentification} instance, allowing for method chaining */ public DKLocalAccountIdentification accountNumber(String accountNumber) { @@ -97,7 +92,9 @@ public DKLocalAccountIdentification accountNumber(String accountNumber) { /** * The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). - * @return accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). + * + * @return accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or + * whitespace). */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,7 +105,8 @@ public String getAccountNumber() { /** * The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). * - * @param accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). + * @param accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or + * whitespace). */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,7 +127,9 @@ public DKLocalAccountIdentification bankCode(String bankCode) { /** * The 4-digit bank code (Registreringsnummer) (without separators or whitespace). - * @return bankCode The 4-digit bank code (Registreringsnummer) (without separators or whitespace). + * + * @return bankCode The 4-digit bank code (Registreringsnummer) (without separators or + * whitespace). */ @JsonProperty(JSON_PROPERTY_BANK_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,6 +161,7 @@ public DKLocalAccountIdentification type(TypeEnum type) { /** * **dkLocal** + * * @return type **dkLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +181,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this DKLocalAccountIdentification object is equal to o. - */ + /** Return true if this DKLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +191,9 @@ public boolean equals(Object o) { return false; } DKLocalAccountIdentification dkLocalAccountIdentification = (DKLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, dkLocalAccountIdentification.accountNumber) && - Objects.equals(this.bankCode, dkLocalAccountIdentification.bankCode) && - Objects.equals(this.type, dkLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, dkLocalAccountIdentification.accountNumber) + && Objects.equals(this.bankCode, dkLocalAccountIdentification.bankCode) + && Objects.equals(this.type, dkLocalAccountIdentification.type); } @Override @@ -214,8 +213,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +222,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DKLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of DKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to DKLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DKLocalAccountIdentification */ - public static DKLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static DKLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DKLocalAccountIdentification.class); } -/** - * Convert an instance of DKLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DKLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/DayOfWeekRestriction.java b/src/main/java/com/adyen/model/balanceplatform/DayOfWeekRestriction.java index 7c312efa6..175e26def 100644 --- a/src/main/java/com/adyen/model/balanceplatform/DayOfWeekRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/DayOfWeekRestriction.java @@ -2,47 +2,38 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * DayOfWeekRestriction - */ +/** DayOfWeekRestriction */ @JsonPropertyOrder({ DayOfWeekRestriction.JSON_PROPERTY_OPERATION, DayOfWeekRestriction.JSON_PROPERTY_VALUE }) - public class DayOfWeekRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; - /** - * Gets or Sets value - */ + /** Gets or Sets value */ public enum ValueEnum { - FRIDAY(String.valueOf("friday")), MONDAY(String.valueOf("monday")), @@ -62,7 +53,7 @@ public enum ValueEnum { private String value; ValueEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -83,7 +74,11 @@ public static ValueEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ValueEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ValueEnum.values())); + LOG.warning( + "ValueEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ValueEnum.values())); return null; } } @@ -91,8 +86,7 @@ public static ValueEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUE = "value"; private List value; - public DayOfWeekRestriction() { - } + public DayOfWeekRestriction() {} /** * Defines how the condition must be evaluated. @@ -107,6 +101,7 @@ public DayOfWeekRestriction operation(String operation) { /** * Defines how the condition must be evaluated. + * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -127,9 +122,11 @@ public void setOperation(String operation) { } /** - * List of days of the week. Possible values: **monday**, **tuesday**, **wednesday**, **thursday**, **friday**, **saturday**, **sunday**. + * List of days of the week. Possible values: **monday**, **tuesday**, **wednesday**, + * **thursday**, **friday**, **saturday**, **sunday**. * - * @param value List of days of the week. Possible values: **monday**, **tuesday**, **wednesday**, **thursday**, **friday**, **saturday**, **sunday**. + * @param value List of days of the week. Possible values: **monday**, **tuesday**, **wednesday**, + * **thursday**, **friday**, **saturday**, **sunday**. * @return the current {@code DayOfWeekRestriction} instance, allowing for method chaining */ public DayOfWeekRestriction value(List value) { @@ -146,8 +143,11 @@ public DayOfWeekRestriction addValueItem(ValueEnum valueItem) { } /** - * List of days of the week. Possible values: **monday**, **tuesday**, **wednesday**, **thursday**, **friday**, **saturday**, **sunday**. - * @return value List of days of the week. Possible values: **monday**, **tuesday**, **wednesday**, **thursday**, **friday**, **saturday**, **sunday**. + * List of days of the week. Possible values: **monday**, **tuesday**, **wednesday**, + * **thursday**, **friday**, **saturday**, **sunday**. + * + * @return value List of days of the week. Possible values: **monday**, **tuesday**, + * **wednesday**, **thursday**, **friday**, **saturday**, **sunday**. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,9 +156,11 @@ public List getValue() { } /** - * List of days of the week. Possible values: **monday**, **tuesday**, **wednesday**, **thursday**, **friday**, **saturday**, **sunday**. + * List of days of the week. Possible values: **monday**, **tuesday**, **wednesday**, + * **thursday**, **friday**, **saturday**, **sunday**. * - * @param value List of days of the week. Possible values: **monday**, **tuesday**, **wednesday**, **thursday**, **friday**, **saturday**, **sunday**. + * @param value List of days of the week. Possible values: **monday**, **tuesday**, **wednesday**, + * **thursday**, **friday**, **saturday**, **sunday**. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -166,9 +168,7 @@ public void setValue(List value) { this.value = value; } - /** - * Return true if this DayOfWeekRestriction object is equal to o. - */ + /** Return true if this DayOfWeekRestriction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -178,8 +178,8 @@ public boolean equals(Object o) { return false; } DayOfWeekRestriction dayOfWeekRestriction = (DayOfWeekRestriction) o; - return Objects.equals(this.operation, dayOfWeekRestriction.operation) && - Objects.equals(this.value, dayOfWeekRestriction.value); + return Objects.equals(this.operation, dayOfWeekRestriction.operation) + && Objects.equals(this.value, dayOfWeekRestriction.value); } @Override @@ -198,8 +198,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -208,21 +207,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DayOfWeekRestriction given an JSON string * * @param jsonString JSON string * @return An instance of DayOfWeekRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to DayOfWeekRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DayOfWeekRestriction */ public static DayOfWeekRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DayOfWeekRestriction.class); } -/** - * Convert an instance of DayOfWeekRestriction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DayOfWeekRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/DefaultErrorResponseEntity.java b/src/main/java/com/adyen/model/balanceplatform/DefaultErrorResponseEntity.java index 5c26c14f3..a83760921 100644 --- a/src/main/java/com/adyen/model/balanceplatform/DefaultErrorResponseEntity.java +++ b/src/main/java/com/adyen/model/balanceplatform/DefaultErrorResponseEntity.java @@ -2,34 +2,24 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.InvalidField; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * Standardized error response following RFC-7807 format - */ +/** Standardized error response following RFC-7807 format */ @JsonPropertyOrder({ DefaultErrorResponseEntity.JSON_PROPERTY_DETAIL, DefaultErrorResponseEntity.JSON_PROPERTY_ERROR_CODE, @@ -40,7 +30,6 @@ DefaultErrorResponseEntity.JSON_PROPERTY_TITLE, DefaultErrorResponseEntity.JSON_PROPERTY_TYPE }) - public class DefaultErrorResponseEntity { public static final String JSON_PROPERTY_DETAIL = "detail"; private String detail; @@ -66,8 +55,7 @@ public class DefaultErrorResponseEntity { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public DefaultErrorResponseEntity() { - } + public DefaultErrorResponseEntity() {} /** * A human-readable explanation specific to this occurrence of the problem. @@ -82,6 +70,7 @@ public DefaultErrorResponseEntity detail(String detail) { /** * A human-readable explanation specific to this occurrence of the problem. + * * @return detail A human-readable explanation specific to this occurrence of the problem. */ @JsonProperty(JSON_PROPERTY_DETAIL) @@ -114,6 +103,7 @@ public DefaultErrorResponseEntity errorCode(String errorCode) { /** * Unique business error code. + * * @return errorCode Unique business error code. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -146,6 +136,7 @@ public DefaultErrorResponseEntity instance(String instance) { /** * A URI that identifies the specific occurrence of the problem if applicable. + * * @return instance A URI that identifies the specific occurrence of the problem if applicable. */ @JsonProperty(JSON_PROPERTY_INSTANCE) @@ -186,6 +177,7 @@ public DefaultErrorResponseEntity addInvalidFieldsItem(InvalidField invalidField /** * Array of fields with validation errors when applicable. + * * @return invalidFields Array of fields with validation errors when applicable. */ @JsonProperty(JSON_PROPERTY_INVALID_FIELDS) @@ -218,6 +210,7 @@ public DefaultErrorResponseEntity requestId(String requestId) { /** * The unique reference for the request. + * * @return requestId The unique reference for the request. */ @JsonProperty(JSON_PROPERTY_REQUEST_ID) @@ -250,6 +243,7 @@ public DefaultErrorResponseEntity status(Integer status) { /** * The HTTP status code. + * * @return status The HTTP status code. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -282,6 +276,7 @@ public DefaultErrorResponseEntity title(String title) { /** * A short, human-readable summary of the problem type. + * * @return title A short, human-readable summary of the problem type. */ @JsonProperty(JSON_PROPERTY_TITLE) @@ -302,9 +297,11 @@ public void setTitle(String title) { } /** - * A URI that identifies the validation error type. It points to human-readable documentation for the problem type. + * A URI that identifies the validation error type. It points to human-readable documentation for + * the problem type. * - * @param type A URI that identifies the validation error type. It points to human-readable documentation for the problem type. + * @param type A URI that identifies the validation error type. It points to human-readable + * documentation for the problem type. * @return the current {@code DefaultErrorResponseEntity} instance, allowing for method chaining */ public DefaultErrorResponseEntity type(String type) { @@ -313,8 +310,11 @@ public DefaultErrorResponseEntity type(String type) { } /** - * A URI that identifies the validation error type. It points to human-readable documentation for the problem type. - * @return type A URI that identifies the validation error type. It points to human-readable documentation for the problem type. + * A URI that identifies the validation error type. It points to human-readable documentation for + * the problem type. + * + * @return type A URI that identifies the validation error type. It points to human-readable + * documentation for the problem type. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -323,9 +323,11 @@ public String getType() { } /** - * A URI that identifies the validation error type. It points to human-readable documentation for the problem type. + * A URI that identifies the validation error type. It points to human-readable documentation for + * the problem type. * - * @param type A URI that identifies the validation error type. It points to human-readable documentation for the problem type. + * @param type A URI that identifies the validation error type. It points to human-readable + * documentation for the problem type. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -333,9 +335,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this DefaultErrorResponseEntity object is equal to o. - */ + /** Return true if this DefaultErrorResponseEntity object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -345,14 +345,14 @@ public boolean equals(Object o) { return false; } DefaultErrorResponseEntity defaultErrorResponseEntity = (DefaultErrorResponseEntity) o; - return Objects.equals(this.detail, defaultErrorResponseEntity.detail) && - Objects.equals(this.errorCode, defaultErrorResponseEntity.errorCode) && - Objects.equals(this.instance, defaultErrorResponseEntity.instance) && - Objects.equals(this.invalidFields, defaultErrorResponseEntity.invalidFields) && - Objects.equals(this.requestId, defaultErrorResponseEntity.requestId) && - Objects.equals(this.status, defaultErrorResponseEntity.status) && - Objects.equals(this.title, defaultErrorResponseEntity.title) && - Objects.equals(this.type, defaultErrorResponseEntity.type); + return Objects.equals(this.detail, defaultErrorResponseEntity.detail) + && Objects.equals(this.errorCode, defaultErrorResponseEntity.errorCode) + && Objects.equals(this.instance, defaultErrorResponseEntity.instance) + && Objects.equals(this.invalidFields, defaultErrorResponseEntity.invalidFields) + && Objects.equals(this.requestId, defaultErrorResponseEntity.requestId) + && Objects.equals(this.status, defaultErrorResponseEntity.status) + && Objects.equals(this.title, defaultErrorResponseEntity.title) + && Objects.equals(this.type, defaultErrorResponseEntity.type); } @Override @@ -377,8 +377,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -387,21 +386,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DefaultErrorResponseEntity given an JSON string * * @param jsonString JSON string * @return An instance of DefaultErrorResponseEntity - * @throws JsonProcessingException if the JSON string is invalid with respect to DefaultErrorResponseEntity + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DefaultErrorResponseEntity */ - public static DefaultErrorResponseEntity fromJson(String jsonString) throws JsonProcessingException { + public static DefaultErrorResponseEntity fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DefaultErrorResponseEntity.class); } -/** - * Convert an instance of DefaultErrorResponseEntity to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DefaultErrorResponseEntity to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/DelegatedAuthenticationData.java b/src/main/java/com/adyen/model/balanceplatform/DelegatedAuthenticationData.java index a999cfb66..eea5efe3a 100644 --- a/src/main/java/com/adyen/model/balanceplatform/DelegatedAuthenticationData.java +++ b/src/main/java/com/adyen/model/balanceplatform/DelegatedAuthenticationData.java @@ -2,46 +2,35 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * DelegatedAuthenticationData - */ -@JsonPropertyOrder({ - DelegatedAuthenticationData.JSON_PROPERTY_SDK_OUTPUT -}) - +/** DelegatedAuthenticationData */ +@JsonPropertyOrder({DelegatedAuthenticationData.JSON_PROPERTY_SDK_OUTPUT}) public class DelegatedAuthenticationData { public static final String JSON_PROPERTY_SDK_OUTPUT = "sdkOutput"; private String sdkOutput; - public DelegatedAuthenticationData() { - } + public DelegatedAuthenticationData() {} /** - * A base64-encoded block with the data required to register the SCA device. You obtain this information by using our authentication SDK. + * A base64-encoded block with the data required to register the SCA device. You obtain this + * information by using our authentication SDK. * - * @param sdkOutput A base64-encoded block with the data required to register the SCA device. You obtain this information by using our authentication SDK. + * @param sdkOutput A base64-encoded block with the data required to register the SCA device. You + * obtain this information by using our authentication SDK. * @return the current {@code DelegatedAuthenticationData} instance, allowing for method chaining */ public DelegatedAuthenticationData sdkOutput(String sdkOutput) { @@ -50,8 +39,11 @@ public DelegatedAuthenticationData sdkOutput(String sdkOutput) { } /** - * A base64-encoded block with the data required to register the SCA device. You obtain this information by using our authentication SDK. - * @return sdkOutput A base64-encoded block with the data required to register the SCA device. You obtain this information by using our authentication SDK. + * A base64-encoded block with the data required to register the SCA device. You obtain this + * information by using our authentication SDK. + * + * @return sdkOutput A base64-encoded block with the data required to register the SCA device. You + * obtain this information by using our authentication SDK. */ @JsonProperty(JSON_PROPERTY_SDK_OUTPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,9 +52,11 @@ public String getSdkOutput() { } /** - * A base64-encoded block with the data required to register the SCA device. You obtain this information by using our authentication SDK. + * A base64-encoded block with the data required to register the SCA device. You obtain this + * information by using our authentication SDK. * - * @param sdkOutput A base64-encoded block with the data required to register the SCA device. You obtain this information by using our authentication SDK. + * @param sdkOutput A base64-encoded block with the data required to register the SCA device. You + * obtain this information by using our authentication SDK. */ @JsonProperty(JSON_PROPERTY_SDK_OUTPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +64,7 @@ public void setSdkOutput(String sdkOutput) { this.sdkOutput = sdkOutput; } - /** - * Return true if this DelegatedAuthenticationData object is equal to o. - */ + /** Return true if this DelegatedAuthenticationData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +92,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +101,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DelegatedAuthenticationData given an JSON string * * @param jsonString JSON string * @return An instance of DelegatedAuthenticationData - * @throws JsonProcessingException if the JSON string is invalid with respect to DelegatedAuthenticationData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DelegatedAuthenticationData */ - public static DelegatedAuthenticationData fromJson(String jsonString) throws JsonProcessingException { + public static DelegatedAuthenticationData fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DelegatedAuthenticationData.class); } -/** - * Convert an instance of DelegatedAuthenticationData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DelegatedAuthenticationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/DeliveryAddress.java b/src/main/java/com/adyen/model/balanceplatform/DeliveryAddress.java index a32a72678..a83f678b9 100644 --- a/src/main/java/com/adyen/model/balanceplatform/DeliveryAddress.java +++ b/src/main/java/com/adyen/model/balanceplatform/DeliveryAddress.java @@ -2,31 +2,22 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * DeliveryAddress - */ +/** DeliveryAddress */ @JsonPropertyOrder({ DeliveryAddress.JSON_PROPERTY_CITY, DeliveryAddress.JSON_PROPERTY_COUNTRY, @@ -36,7 +27,6 @@ DeliveryAddress.JSON_PROPERTY_POSTAL_CODE, DeliveryAddress.JSON_PROPERTY_STATE_OR_PROVINCE }) - public class DeliveryAddress { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -59,8 +49,7 @@ public class DeliveryAddress { public static final String JSON_PROPERTY_STATE_OR_PROVINCE = "stateOrProvince"; private String stateOrProvince; - public DeliveryAddress() { - } + public DeliveryAddress() {} /** * The name of the city. @@ -75,6 +64,7 @@ public DeliveryAddress city(String city) { /** * The name of the city. + * * @return city The name of the city. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -95,9 +85,13 @@ public void setCity(String city) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't + * know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If + * you don't know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress country(String country) { @@ -106,8 +100,13 @@ public DeliveryAddress country(String country) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. - * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't + * know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. + * + * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If + * you don't know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,9 +115,13 @@ public String getCountry() { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't + * know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If + * you don't know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,9 +130,11 @@ public void setCountry(String country) { } /** - * The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. + * The name of the street. Do not include the number of the building. For example, if the address + * is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. * - * @param line1 The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. + * @param line1 The name of the street. Do not include the number of the building. For example, if + * the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress line1(String line1) { @@ -138,8 +143,11 @@ public DeliveryAddress line1(String line1) { } /** - * The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. - * @return line1 The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. + * The name of the street. Do not include the number of the building. For example, if the address + * is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. + * + * @return line1 The name of the street. Do not include the number of the building. For example, + * if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. */ @JsonProperty(JSON_PROPERTY_LINE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,9 +156,11 @@ public String getLine1() { } /** - * The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. + * The name of the street. Do not include the number of the building. For example, if the address + * is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. * - * @param line1 The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. + * @param line1 The name of the street. Do not include the number of the building. For example, if + * the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. */ @JsonProperty(JSON_PROPERTY_LINE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,9 +169,11 @@ public void setLine1(String line1) { } /** - * The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**. + * The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide + * **6-50**. * - * @param line2 The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**. + * @param line2 The number of the building. For example, if the address is Simon Carmiggeltstraat + * 6-50, provide **6-50**. * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress line2(String line2) { @@ -170,8 +182,11 @@ public DeliveryAddress line2(String line2) { } /** - * The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**. - * @return line2 The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**. + * The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide + * **6-50**. + * + * @return line2 The number of the building. For example, if the address is Simon Carmiggeltstraat + * 6-50, provide **6-50**. */ @JsonProperty(JSON_PROPERTY_LINE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -180,9 +195,11 @@ public String getLine2() { } /** - * The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**. + * The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide + * **6-50**. * - * @param line2 The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**. + * @param line2 The number of the building. For example, if the address is Simon Carmiggeltstraat + * 6-50, provide **6-50**. */ @JsonProperty(JSON_PROPERTY_LINE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -203,6 +220,7 @@ public DeliveryAddress line3(String line3) { /** * Additional information about the delivery address. + * * @return line3 Additional information about the delivery address. */ @JsonProperty(JSON_PROPERTY_LINE3) @@ -223,9 +241,11 @@ public void setLine3(String line3) { } /** - * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. + * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an + * address in all other countries. * - * @param postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. + * @param postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 + * characters for an address in all other countries. * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress postalCode(String postalCode) { @@ -234,8 +254,11 @@ public DeliveryAddress postalCode(String postalCode) { } /** - * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. - * @return postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. + * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an + * address in all other countries. + * + * @return postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 + * characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,9 +267,11 @@ public String getPostalCode() { } /** - * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. + * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an + * address in all other countries. * - * @param postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. + * @param postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 + * characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -255,9 +280,12 @@ public void setPostalCode(String postalCode) { } /** - * The state or province code, maximum 3 characters. For example, **CA** for California in the US or **ON** for Ontario in Canada. > Required for the US and Canada. + * The state or province code, maximum 3 characters. For example, **CA** for California in the US + * or **ON** for Ontario in Canada. > Required for the US and Canada. * - * @param stateOrProvince The state or province code, maximum 3 characters. For example, **CA** for California in the US or **ON** for Ontario in Canada. > Required for the US and Canada. + * @param stateOrProvince The state or province code, maximum 3 characters. For example, **CA** + * for California in the US or **ON** for Ontario in Canada. > Required for the US and + * Canada. * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress stateOrProvince(String stateOrProvince) { @@ -266,8 +294,12 @@ public DeliveryAddress stateOrProvince(String stateOrProvince) { } /** - * The state or province code, maximum 3 characters. For example, **CA** for California in the US or **ON** for Ontario in Canada. > Required for the US and Canada. - * @return stateOrProvince The state or province code, maximum 3 characters. For example, **CA** for California in the US or **ON** for Ontario in Canada. > Required for the US and Canada. + * The state or province code, maximum 3 characters. For example, **CA** for California in the US + * or **ON** for Ontario in Canada. > Required for the US and Canada. + * + * @return stateOrProvince The state or province code, maximum 3 characters. For example, **CA** + * for California in the US or **ON** for Ontario in Canada. > Required for the US and + * Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -276,9 +308,12 @@ public String getStateOrProvince() { } /** - * The state or province code, maximum 3 characters. For example, **CA** for California in the US or **ON** for Ontario in Canada. > Required for the US and Canada. + * The state or province code, maximum 3 characters. For example, **CA** for California in the US + * or **ON** for Ontario in Canada. > Required for the US and Canada. * - * @param stateOrProvince The state or province code, maximum 3 characters. For example, **CA** for California in the US or **ON** for Ontario in Canada. > Required for the US and Canada. + * @param stateOrProvince The state or province code, maximum 3 characters. For example, **CA** + * for California in the US or **ON** for Ontario in Canada. > Required for the US and + * Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -286,9 +321,7 @@ public void setStateOrProvince(String stateOrProvince) { this.stateOrProvince = stateOrProvince; } - /** - * Return true if this DeliveryAddress object is equal to o. - */ + /** Return true if this DeliveryAddress object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -298,13 +331,13 @@ public boolean equals(Object o) { return false; } DeliveryAddress deliveryAddress = (DeliveryAddress) o; - return Objects.equals(this.city, deliveryAddress.city) && - Objects.equals(this.country, deliveryAddress.country) && - Objects.equals(this.line1, deliveryAddress.line1) && - Objects.equals(this.line2, deliveryAddress.line2) && - Objects.equals(this.line3, deliveryAddress.line3) && - Objects.equals(this.postalCode, deliveryAddress.postalCode) && - Objects.equals(this.stateOrProvince, deliveryAddress.stateOrProvince); + return Objects.equals(this.city, deliveryAddress.city) + && Objects.equals(this.country, deliveryAddress.country) + && Objects.equals(this.line1, deliveryAddress.line1) + && Objects.equals(this.line2, deliveryAddress.line2) + && Objects.equals(this.line3, deliveryAddress.line3) + && Objects.equals(this.postalCode, deliveryAddress.postalCode) + && Objects.equals(this.stateOrProvince, deliveryAddress.stateOrProvince); } @Override @@ -328,8 +361,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -338,7 +370,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DeliveryAddress given an JSON string * * @param jsonString JSON string @@ -348,11 +380,12 @@ private String toIndentedString(Object o) { public static DeliveryAddress fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DeliveryAddress.class); } -/** - * Convert an instance of DeliveryAddress to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DeliveryAddress to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/DeliveryContact.java b/src/main/java/com/adyen/model/balanceplatform/DeliveryContact.java index e47e2061a..2060508f9 100644 --- a/src/main/java/com/adyen/model/balanceplatform/DeliveryContact.java +++ b/src/main/java/com/adyen/model/balanceplatform/DeliveryContact.java @@ -2,34 +2,22 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.DeliveryAddress; -import com.adyen.model.balanceplatform.Name; -import com.adyen.model.balanceplatform.PhoneNumber; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * DeliveryContact - */ +/** DeliveryContact */ @JsonPropertyOrder({ DeliveryContact.JSON_PROPERTY_ADDRESS, DeliveryContact.JSON_PROPERTY_COMPANY, @@ -39,7 +27,6 @@ DeliveryContact.JSON_PROPERTY_PHONE_NUMBER, DeliveryContact.JSON_PROPERTY_WEB_ADDRESS }) - public class DeliveryContact { public static final String JSON_PROPERTY_ADDRESS = "address"; private DeliveryAddress address; @@ -62,13 +49,12 @@ public class DeliveryContact { public static final String JSON_PROPERTY_WEB_ADDRESS = "webAddress"; private String webAddress; - public DeliveryContact() { - } + public DeliveryContact() {} /** * address * - * @param address + * @param address * @return the current {@code DeliveryContact} instance, allowing for method chaining */ public DeliveryContact address(DeliveryAddress address) { @@ -78,7 +64,8 @@ public DeliveryContact address(DeliveryAddress address) { /** * Get address - * @return address + * + * @return address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -89,7 +76,7 @@ public DeliveryAddress getAddress() { /** * address * - * @param address + * @param address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,6 +97,7 @@ public DeliveryContact company(String company) { /** * The company name of the contact. + * * @return company The company name of the contact. */ @JsonProperty(JSON_PROPERTY_COMPANY) @@ -142,6 +130,7 @@ public DeliveryContact email(String email) { /** * The email address of the contact. + * * @return email The email address of the contact. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -162,9 +151,13 @@ public void setEmail(String email) { } /** - * The full phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\" + * The full phone number of the contact provided as a single string. It will be handled as a + * landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", + * \"(0031) 611223344\" * - * @param fullPhoneNumber The full phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\" + * @param fullPhoneNumber The full phone number of the contact provided as a single string. It + * will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", + * \"+316/1122-3344\", \"(0031) 611223344\" * @return the current {@code DeliveryContact} instance, allowing for method chaining */ public DeliveryContact fullPhoneNumber(String fullPhoneNumber) { @@ -173,8 +166,13 @@ public DeliveryContact fullPhoneNumber(String fullPhoneNumber) { } /** - * The full phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\" - * @return fullPhoneNumber The full phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\" + * The full phone number of the contact provided as a single string. It will be handled as a + * landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", + * \"(0031) 611223344\" + * + * @return fullPhoneNumber The full phone number of the contact provided as a single string. It + * will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", + * \"+316/1122-3344\", \"(0031) 611223344\" */ @JsonProperty(JSON_PROPERTY_FULL_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,9 +181,13 @@ public String getFullPhoneNumber() { } /** - * The full phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\" + * The full phone number of the contact provided as a single string. It will be handled as a + * landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", + * \"(0031) 611223344\" * - * @param fullPhoneNumber The full phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\" + * @param fullPhoneNumber The full phone number of the contact provided as a single string. It + * will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", + * \"+316/1122-3344\", \"(0031) 611223344\" */ @JsonProperty(JSON_PROPERTY_FULL_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -196,7 +198,7 @@ public void setFullPhoneNumber(String fullPhoneNumber) { /** * name * - * @param name + * @param name * @return the current {@code DeliveryContact} instance, allowing for method chaining */ public DeliveryContact name(Name name) { @@ -206,7 +208,8 @@ public DeliveryContact name(Name name) { /** * Get name - * @return name + * + * @return name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -217,7 +220,7 @@ public Name getName() { /** * name * - * @param name + * @param name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -228,7 +231,7 @@ public void setName(Name name) { /** * phoneNumber * - * @param phoneNumber + * @param phoneNumber * @return the current {@code DeliveryContact} instance, allowing for method chaining */ public DeliveryContact phoneNumber(PhoneNumber phoneNumber) { @@ -238,7 +241,8 @@ public DeliveryContact phoneNumber(PhoneNumber phoneNumber) { /** * Get phoneNumber - * @return phoneNumber + * + * @return phoneNumber */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -249,7 +253,7 @@ public PhoneNumber getPhoneNumber() { /** * phoneNumber * - * @param phoneNumber + * @param phoneNumber */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -270,6 +274,7 @@ public DeliveryContact webAddress(String webAddress) { /** * The URL of the contact's website. + * * @return webAddress The URL of the contact's website. */ @JsonProperty(JSON_PROPERTY_WEB_ADDRESS) @@ -289,9 +294,7 @@ public void setWebAddress(String webAddress) { this.webAddress = webAddress; } - /** - * Return true if this DeliveryContact object is equal to o. - */ + /** Return true if this DeliveryContact object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -301,13 +304,13 @@ public boolean equals(Object o) { return false; } DeliveryContact deliveryContact = (DeliveryContact) o; - return Objects.equals(this.address, deliveryContact.address) && - Objects.equals(this.company, deliveryContact.company) && - Objects.equals(this.email, deliveryContact.email) && - Objects.equals(this.fullPhoneNumber, deliveryContact.fullPhoneNumber) && - Objects.equals(this.name, deliveryContact.name) && - Objects.equals(this.phoneNumber, deliveryContact.phoneNumber) && - Objects.equals(this.webAddress, deliveryContact.webAddress); + return Objects.equals(this.address, deliveryContact.address) + && Objects.equals(this.company, deliveryContact.company) + && Objects.equals(this.email, deliveryContact.email) + && Objects.equals(this.fullPhoneNumber, deliveryContact.fullPhoneNumber) + && Objects.equals(this.name, deliveryContact.name) + && Objects.equals(this.phoneNumber, deliveryContact.phoneNumber) + && Objects.equals(this.webAddress, deliveryContact.webAddress); } @Override @@ -331,8 +334,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -341,7 +343,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DeliveryContact given an JSON string * * @param jsonString JSON string @@ -351,11 +353,12 @@ private String toIndentedString(Object o) { public static DeliveryContact fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DeliveryContact.class); } -/** - * Convert an instance of DeliveryContact to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DeliveryContact to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/Device.java b/src/main/java/com/adyen/model/balanceplatform/Device.java index 5f9b8603a..6ccc17a0d 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Device.java +++ b/src/main/java/com/adyen/model/balanceplatform/Device.java @@ -2,38 +2,32 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * Device - */ +/** Device */ @JsonPropertyOrder({ Device.JSON_PROPERTY_ID, Device.JSON_PROPERTY_NAME, Device.JSON_PROPERTY_PAYMENT_INSTRUMENT_ID, Device.JSON_PROPERTY_TYPE }) - public class Device { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -44,11 +38,8 @@ public class Device { public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT_ID = "paymentInstrumentId"; private String paymentInstrumentId; - /** - * The type of device. Possible values: **ios**, **android**, **browser**. - */ + /** The type of device. Possible values: **ios**, **android**, **browser**. */ public enum TypeEnum { - IOS(String.valueOf("ios")), ANDROID(String.valueOf("android")), @@ -60,7 +51,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -81,7 +72,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -89,8 +84,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public Device() { - } + public Device() {} /** * The unique identifier of the SCA device. @@ -105,6 +99,7 @@ public Device id(String id) { /** * The unique identifier of the SCA device. + * * @return id The unique identifier of the SCA device. */ @JsonProperty(JSON_PROPERTY_ID) @@ -125,9 +120,11 @@ public void setId(String id) { } /** - * The name of the SCA device. You can show this name to your user to help them identify the device. + * The name of the SCA device. You can show this name to your user to help them identify the + * device. * - * @param name The name of the SCA device. You can show this name to your user to help them identify the device. + * @param name The name of the SCA device. You can show this name to your user to help them + * identify the device. * @return the current {@code Device} instance, allowing for method chaining */ public Device name(String name) { @@ -136,8 +133,11 @@ public Device name(String name) { } /** - * The name of the SCA device. You can show this name to your user to help them identify the device. - * @return name The name of the SCA device. You can show this name to your user to help them identify the device. + * The name of the SCA device. You can show this name to your user to help them identify the + * device. + * + * @return name The name of the SCA device. You can show this name to your user to help them + * identify the device. */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,9 +146,11 @@ public String getName() { } /** - * The name of the SCA device. You can show this name to your user to help them identify the device. + * The name of the SCA device. You can show this name to your user to help them identify the + * device. * - * @param name The name of the SCA device. You can show this name to your user to help them identify the device. + * @param name The name of the SCA device. You can show this name to your user to help them + * identify the device. */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,7 +161,8 @@ public void setName(String name) { /** * The unique identifier of the payment instrument that is associated with the SCA device. * - * @param paymentInstrumentId The unique identifier of the payment instrument that is associated with the SCA device. + * @param paymentInstrumentId The unique identifier of the payment instrument that is associated + * with the SCA device. * @return the current {@code Device} instance, allowing for method chaining */ public Device paymentInstrumentId(String paymentInstrumentId) { @@ -169,7 +172,9 @@ public Device paymentInstrumentId(String paymentInstrumentId) { /** * The unique identifier of the payment instrument that is associated with the SCA device. - * @return paymentInstrumentId The unique identifier of the payment instrument that is associated with the SCA device. + * + * @return paymentInstrumentId The unique identifier of the payment instrument that is associated + * with the SCA device. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -180,7 +185,8 @@ public String getPaymentInstrumentId() { /** * The unique identifier of the payment instrument that is associated with the SCA device. * - * @param paymentInstrumentId The unique identifier of the payment instrument that is associated with the SCA device. + * @param paymentInstrumentId The unique identifier of the payment instrument that is associated + * with the SCA device. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,9 +195,9 @@ public void setPaymentInstrumentId(String paymentInstrumentId) { } /** - * The type of device. Possible values: **ios**, **android**, **browser**. + * The type of device. Possible values: **ios**, **android**, **browser**. * - * @param type The type of device. Possible values: **ios**, **android**, **browser**. + * @param type The type of device. Possible values: **ios**, **android**, **browser**. * @return the current {@code Device} instance, allowing for method chaining */ public Device type(TypeEnum type) { @@ -200,8 +206,9 @@ public Device type(TypeEnum type) { } /** - * The type of device. Possible values: **ios**, **android**, **browser**. - * @return type The type of device. Possible values: **ios**, **android**, **browser**. + * The type of device. Possible values: **ios**, **android**, **browser**. + * + * @return type The type of device. Possible values: **ios**, **android**, **browser**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -210,9 +217,9 @@ public TypeEnum getType() { } /** - * The type of device. Possible values: **ios**, **android**, **browser**. + * The type of device. Possible values: **ios**, **android**, **browser**. * - * @param type The type of device. Possible values: **ios**, **android**, **browser**. + * @param type The type of device. Possible values: **ios**, **android**, **browser**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -220,9 +227,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this Device object is equal to o. - */ + /** Return true if this Device object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -232,10 +237,10 @@ public boolean equals(Object o) { return false; } Device device = (Device) o; - return Objects.equals(this.id, device.id) && - Objects.equals(this.name, device.name) && - Objects.equals(this.paymentInstrumentId, device.paymentInstrumentId) && - Objects.equals(this.type, device.type); + return Objects.equals(this.id, device.id) + && Objects.equals(this.name, device.name) + && Objects.equals(this.paymentInstrumentId, device.paymentInstrumentId) + && Objects.equals(this.type, device.type); } @Override @@ -249,15 +254,16 @@ public String toString() { sb.append("class Device {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" paymentInstrumentId: ").append(toIndentedString(paymentInstrumentId)).append("\n"); + sb.append(" paymentInstrumentId: ") + .append(toIndentedString(paymentInstrumentId)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -266,7 +272,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Device given an JSON string * * @param jsonString JSON string @@ -276,11 +282,12 @@ private String toIndentedString(Object o) { public static Device fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Device.class); } -/** - * Convert an instance of Device to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Device to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/DeviceInfo.java b/src/main/java/com/adyen/model/balanceplatform/DeviceInfo.java index bf5e1e135..720a344a6 100644 --- a/src/main/java/com/adyen/model/balanceplatform/DeviceInfo.java +++ b/src/main/java/com/adyen/model/balanceplatform/DeviceInfo.java @@ -2,33 +2,24 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * DeviceInfo - */ +/** DeviceInfo */ @JsonPropertyOrder({ DeviceInfo.JSON_PROPERTY_CARD_CAPTURE_TECHNOLOGY, DeviceInfo.JSON_PROPERTY_DEVICE_NAME, @@ -42,7 +33,6 @@ DeviceInfo.JSON_PROPERTY_SERIAL_NUMBER, DeviceInfo.JSON_PROPERTY_STORAGE_TECHNOLOGY }) - public class DeviceInfo { public static final String JSON_PROPERTY_CARD_CAPTURE_TECHNOLOGY = "cardCaptureTechnology"; private String cardCaptureTechnology; @@ -77,8 +67,7 @@ public class DeviceInfo { public static final String JSON_PROPERTY_STORAGE_TECHNOLOGY = "storageTechnology"; private String storageTechnology; - public DeviceInfo() { - } + public DeviceInfo() {} /** * The technology used to capture the card details. @@ -93,6 +82,7 @@ public DeviceInfo cardCaptureTechnology(String cardCaptureTechnology) { /** * The technology used to capture the card details. + * * @return cardCaptureTechnology The technology used to capture the card details. */ @JsonProperty(JSON_PROPERTY_CARD_CAPTURE_TECHNOLOGY) @@ -125,6 +115,7 @@ public DeviceInfo deviceName(String deviceName) { /** * The name of the device. + * * @return deviceName The name of the device. */ @JsonProperty(JSON_PROPERTY_DEVICE_NAME) @@ -157,6 +148,7 @@ public DeviceInfo formFactor(String formFactor) { /** * The form factor of the device to be provisioned. + * * @return formFactor The form factor of the device to be provisioned. */ @JsonProperty(JSON_PROPERTY_FORM_FACTOR) @@ -189,6 +181,7 @@ public DeviceInfo imei(String imei) { /** * The IMEI number of the device being provisioned. + * * @return imei The IMEI number of the device being provisioned. */ @JsonProperty(JSON_PROPERTY_IMEI) @@ -211,7 +204,8 @@ public void setImei(String imei) { /** * The 2-digit device type provided on the ISO messages that the token is being provisioned to. * - * @param isoDeviceType The 2-digit device type provided on the ISO messages that the token is being provisioned to. + * @param isoDeviceType The 2-digit device type provided on the ISO messages that the token is + * being provisioned to. * @return the current {@code DeviceInfo} instance, allowing for method chaining */ public DeviceInfo isoDeviceType(String isoDeviceType) { @@ -221,7 +215,9 @@ public DeviceInfo isoDeviceType(String isoDeviceType) { /** * The 2-digit device type provided on the ISO messages that the token is being provisioned to. - * @return isoDeviceType The 2-digit device type provided on the ISO messages that the token is being provisioned to. + * + * @return isoDeviceType The 2-digit device type provided on the ISO messages that the token is + * being provisioned to. */ @JsonProperty(JSON_PROPERTY_ISO_DEVICE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,7 +228,8 @@ public String getIsoDeviceType() { /** * The 2-digit device type provided on the ISO messages that the token is being provisioned to. * - * @param isoDeviceType The 2-digit device type provided on the ISO messages that the token is being provisioned to. + * @param isoDeviceType The 2-digit device type provided on the ISO messages that the token is + * being provisioned to. */ @JsonProperty(JSON_PROPERTY_ISO_DEVICE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -253,6 +250,7 @@ public DeviceInfo msisdn(String msisdn) { /** * The MSISDN of the device being provisioned. + * * @return msisdn The MSISDN of the device being provisioned. */ @JsonProperty(JSON_PROPERTY_MSISDN) @@ -285,6 +283,7 @@ public DeviceInfo osName(String osName) { /** * The name of the device operating system. + * * @return osName The name of the device operating system. */ @JsonProperty(JSON_PROPERTY_OS_NAME) @@ -317,6 +316,7 @@ public DeviceInfo osVersion(String osVersion) { /** * The version of the device operating system. + * * @return osVersion The version of the device operating system. */ @JsonProperty(JSON_PROPERTY_OS_VERSION) @@ -357,6 +357,7 @@ public DeviceInfo addPaymentTypesItem(String paymentTypesItem) { /** * Different types of payments supported for the network token. + * * @return paymentTypes Different types of payments supported for the network token. */ @JsonProperty(JSON_PROPERTY_PAYMENT_TYPES) @@ -389,6 +390,7 @@ public DeviceInfo serialNumber(String serialNumber) { /** * The serial number of the device. + * * @return serialNumber The serial number of the device. */ @JsonProperty(JSON_PROPERTY_SERIAL_NUMBER) @@ -421,6 +423,7 @@ public DeviceInfo storageTechnology(String storageTechnology) { /** * The architecture or technology used for network token storage. + * * @return storageTechnology The architecture or technology used for network token storage. */ @JsonProperty(JSON_PROPERTY_STORAGE_TECHNOLOGY) @@ -440,9 +443,7 @@ public void setStorageTechnology(String storageTechnology) { this.storageTechnology = storageTechnology; } - /** - * Return true if this DeviceInfo object is equal to o. - */ + /** Return true if this DeviceInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -452,29 +453,42 @@ public boolean equals(Object o) { return false; } DeviceInfo deviceInfo = (DeviceInfo) o; - return Objects.equals(this.cardCaptureTechnology, deviceInfo.cardCaptureTechnology) && - Objects.equals(this.deviceName, deviceInfo.deviceName) && - Objects.equals(this.formFactor, deviceInfo.formFactor) && - Objects.equals(this.imei, deviceInfo.imei) && - Objects.equals(this.isoDeviceType, deviceInfo.isoDeviceType) && - Objects.equals(this.msisdn, deviceInfo.msisdn) && - Objects.equals(this.osName, deviceInfo.osName) && - Objects.equals(this.osVersion, deviceInfo.osVersion) && - Objects.equals(this.paymentTypes, deviceInfo.paymentTypes) && - Objects.equals(this.serialNumber, deviceInfo.serialNumber) && - Objects.equals(this.storageTechnology, deviceInfo.storageTechnology); + return Objects.equals(this.cardCaptureTechnology, deviceInfo.cardCaptureTechnology) + && Objects.equals(this.deviceName, deviceInfo.deviceName) + && Objects.equals(this.formFactor, deviceInfo.formFactor) + && Objects.equals(this.imei, deviceInfo.imei) + && Objects.equals(this.isoDeviceType, deviceInfo.isoDeviceType) + && Objects.equals(this.msisdn, deviceInfo.msisdn) + && Objects.equals(this.osName, deviceInfo.osName) + && Objects.equals(this.osVersion, deviceInfo.osVersion) + && Objects.equals(this.paymentTypes, deviceInfo.paymentTypes) + && Objects.equals(this.serialNumber, deviceInfo.serialNumber) + && Objects.equals(this.storageTechnology, deviceInfo.storageTechnology); } @Override public int hashCode() { - return Objects.hash(cardCaptureTechnology, deviceName, formFactor, imei, isoDeviceType, msisdn, osName, osVersion, paymentTypes, serialNumber, storageTechnology); + return Objects.hash( + cardCaptureTechnology, + deviceName, + formFactor, + imei, + isoDeviceType, + msisdn, + osName, + osVersion, + paymentTypes, + serialNumber, + storageTechnology); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeviceInfo {\n"); - sb.append(" cardCaptureTechnology: ").append(toIndentedString(cardCaptureTechnology)).append("\n"); + sb.append(" cardCaptureTechnology: ") + .append(toIndentedString(cardCaptureTechnology)) + .append("\n"); sb.append(" deviceName: ").append(toIndentedString(deviceName)).append("\n"); sb.append(" formFactor: ").append(toIndentedString(formFactor)).append("\n"); sb.append(" imei: ").append(toIndentedString(imei)).append("\n"); @@ -490,8 +504,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -500,7 +513,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DeviceInfo given an JSON string * * @param jsonString JSON string @@ -510,11 +523,12 @@ private String toIndentedString(Object o) { public static DeviceInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DeviceInfo.class); } -/** - * Convert an instance of DeviceInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DeviceInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/DifferentCurrenciesRestriction.java b/src/main/java/com/adyen/model/balanceplatform/DifferentCurrenciesRestriction.java index 137a32ffe..a20738a43 100644 --- a/src/main/java/com/adyen/model/balanceplatform/DifferentCurrenciesRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/DifferentCurrenciesRestriction.java @@ -2,36 +2,26 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * DifferentCurrenciesRestriction - */ +/** DifferentCurrenciesRestriction */ @JsonPropertyOrder({ DifferentCurrenciesRestriction.JSON_PROPERTY_OPERATION, DifferentCurrenciesRestriction.JSON_PROPERTY_VALUE }) - public class DifferentCurrenciesRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -39,14 +29,14 @@ public class DifferentCurrenciesRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private Boolean value; - public DifferentCurrenciesRestriction() { - } + public DifferentCurrenciesRestriction() {} /** * Defines how the condition must be evaluated. * * @param operation Defines how the condition must be evaluated. - * @return the current {@code DifferentCurrenciesRestriction} instance, allowing for method chaining + * @return the current {@code DifferentCurrenciesRestriction} instance, allowing for method + * chaining */ public DifferentCurrenciesRestriction operation(String operation) { this.operation = operation; @@ -55,6 +45,7 @@ public DifferentCurrenciesRestriction operation(String operation) { /** * Defines how the condition must be evaluated. + * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -75,10 +66,15 @@ public void setOperation(String operation) { } /** - * Checks the currency of the payment against the currency of the payment instrument. Possible values: - **true**: The currency of the payment is different from the currency of the payment instrument. - **false**: The currencies are the same. + * Checks the currency of the payment against the currency of the payment instrument. Possible + * values: - **true**: The currency of the payment is different from the currency of the payment + * instrument. - **false**: The currencies are the same. * - * @param value Checks the currency of the payment against the currency of the payment instrument. Possible values: - **true**: The currency of the payment is different from the currency of the payment instrument. - **false**: The currencies are the same. - * @return the current {@code DifferentCurrenciesRestriction} instance, allowing for method chaining + * @param value Checks the currency of the payment against the currency of the payment instrument. + * Possible values: - **true**: The currency of the payment is different from the currency of + * the payment instrument. - **false**: The currencies are the same. + * @return the current {@code DifferentCurrenciesRestriction} instance, allowing for method + * chaining */ public DifferentCurrenciesRestriction value(Boolean value) { this.value = value; @@ -86,8 +82,13 @@ public DifferentCurrenciesRestriction value(Boolean value) { } /** - * Checks the currency of the payment against the currency of the payment instrument. Possible values: - **true**: The currency of the payment is different from the currency of the payment instrument. - **false**: The currencies are the same. - * @return value Checks the currency of the payment against the currency of the payment instrument. Possible values: - **true**: The currency of the payment is different from the currency of the payment instrument. - **false**: The currencies are the same. + * Checks the currency of the payment against the currency of the payment instrument. Possible + * values: - **true**: The currency of the payment is different from the currency of the payment + * instrument. - **false**: The currencies are the same. + * + * @return value Checks the currency of the payment against the currency of the payment + * instrument. Possible values: - **true**: The currency of the payment is different from the + * currency of the payment instrument. - **false**: The currencies are the same. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +97,13 @@ public Boolean getValue() { } /** - * Checks the currency of the payment against the currency of the payment instrument. Possible values: - **true**: The currency of the payment is different from the currency of the payment instrument. - **false**: The currencies are the same. + * Checks the currency of the payment against the currency of the payment instrument. Possible + * values: - **true**: The currency of the payment is different from the currency of the payment + * instrument. - **false**: The currencies are the same. * - * @param value Checks the currency of the payment against the currency of the payment instrument. Possible values: - **true**: The currency of the payment is different from the currency of the payment instrument. - **false**: The currencies are the same. + * @param value Checks the currency of the payment against the currency of the payment instrument. + * Possible values: - **true**: The currency of the payment is different from the currency of + * the payment instrument. - **false**: The currencies are the same. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +111,7 @@ public void setValue(Boolean value) { this.value = value; } - /** - * Return true if this DifferentCurrenciesRestriction object is equal to o. - */ + /** Return true if this DifferentCurrenciesRestriction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -117,9 +120,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - DifferentCurrenciesRestriction differentCurrenciesRestriction = (DifferentCurrenciesRestriction) o; - return Objects.equals(this.operation, differentCurrenciesRestriction.operation) && - Objects.equals(this.value, differentCurrenciesRestriction.value); + DifferentCurrenciesRestriction differentCurrenciesRestriction = + (DifferentCurrenciesRestriction) o; + return Objects.equals(this.operation, differentCurrenciesRestriction.operation) + && Objects.equals(this.value, differentCurrenciesRestriction.value); } @Override @@ -138,8 +142,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +151,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DifferentCurrenciesRestriction given an JSON string * * @param jsonString JSON string * @return An instance of DifferentCurrenciesRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to DifferentCurrenciesRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DifferentCurrenciesRestriction */ - public static DifferentCurrenciesRestriction fromJson(String jsonString) throws JsonProcessingException { + public static DifferentCurrenciesRestriction fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DifferentCurrenciesRestriction.class); } -/** - * Convert an instance of DifferentCurrenciesRestriction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DifferentCurrenciesRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/Duration.java b/src/main/java/com/adyen/model/balanceplatform/Duration.java index 529f97782..67087e9a8 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Duration.java +++ b/src/main/java/com/adyen/model/balanceplatform/Duration.java @@ -2,42 +2,33 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * Duration - */ -@JsonPropertyOrder({ - Duration.JSON_PROPERTY_UNIT, - Duration.JSON_PROPERTY_VALUE -}) - +/** Duration */ +@JsonPropertyOrder({Duration.JSON_PROPERTY_UNIT, Duration.JSON_PROPERTY_VALUE}) public class Duration { /** - * The unit of time. You can only use **minutes** and **hours** if the `interval.type` is **sliding**. Possible values: **minutes**, **hours**, **days**, **weeks**, or **months** + * The unit of time. You can only use **minutes** and **hours** if the `interval.type` + * is **sliding**. Possible values: **minutes**, **hours**, **days**, **weeks**, or **months** */ public enum UnitEnum { - DAYS(String.valueOf("days")), HOURS(String.valueOf("hours")), @@ -53,7 +44,7 @@ public enum UnitEnum { private String value; UnitEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -74,7 +65,11 @@ public static UnitEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("UnitEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(UnitEnum.values())); + LOG.warning( + "UnitEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(UnitEnum.values())); return null; } } @@ -85,13 +80,15 @@ public static UnitEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUE = "value"; private Integer value; - public Duration() { - } + public Duration() {} /** - * The unit of time. You can only use **minutes** and **hours** if the `interval.type` is **sliding**. Possible values: **minutes**, **hours**, **days**, **weeks**, or **months** + * The unit of time. You can only use **minutes** and **hours** if the `interval.type` + * is **sliding**. Possible values: **minutes**, **hours**, **days**, **weeks**, or **months** * - * @param unit The unit of time. You can only use **minutes** and **hours** if the `interval.type` is **sliding**. Possible values: **minutes**, **hours**, **days**, **weeks**, or **months** + * @param unit The unit of time. You can only use **minutes** and **hours** if the + * `interval.type` is **sliding**. Possible values: **minutes**, **hours**, + * **days**, **weeks**, or **months** * @return the current {@code Duration} instance, allowing for method chaining */ public Duration unit(UnitEnum unit) { @@ -100,8 +97,12 @@ public Duration unit(UnitEnum unit) { } /** - * The unit of time. You can only use **minutes** and **hours** if the `interval.type` is **sliding**. Possible values: **minutes**, **hours**, **days**, **weeks**, or **months** - * @return unit The unit of time. You can only use **minutes** and **hours** if the `interval.type` is **sliding**. Possible values: **minutes**, **hours**, **days**, **weeks**, or **months** + * The unit of time. You can only use **minutes** and **hours** if the `interval.type` + * is **sliding**. Possible values: **minutes**, **hours**, **days**, **weeks**, or **months** + * + * @return unit The unit of time. You can only use **minutes** and **hours** if the + * `interval.type` is **sliding**. Possible values: **minutes**, **hours**, + * **days**, **weeks**, or **months** */ @JsonProperty(JSON_PROPERTY_UNIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,9 +111,12 @@ public UnitEnum getUnit() { } /** - * The unit of time. You can only use **minutes** and **hours** if the `interval.type` is **sliding**. Possible values: **minutes**, **hours**, **days**, **weeks**, or **months** + * The unit of time. You can only use **minutes** and **hours** if the `interval.type` + * is **sliding**. Possible values: **minutes**, **hours**, **days**, **weeks**, or **months** * - * @param unit The unit of time. You can only use **minutes** and **hours** if the `interval.type` is **sliding**. Possible values: **minutes**, **hours**, **days**, **weeks**, or **months** + * @param unit The unit of time. You can only use **minutes** and **hours** if the + * `interval.type` is **sliding**. Possible values: **minutes**, **hours**, + * **days**, **weeks**, or **months** */ @JsonProperty(JSON_PROPERTY_UNIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,9 +125,11 @@ public void setUnit(UnitEnum unit) { } /** - * The length of time by the unit. For example, 5 days. The maximum duration is 90 days or an equivalent in other units. For example, 3 months. + * The length of time by the unit. For example, 5 days. The maximum duration is 90 days or an + * equivalent in other units. For example, 3 months. * - * @param value The length of time by the unit. For example, 5 days. The maximum duration is 90 days or an equivalent in other units. For example, 3 months. + * @param value The length of time by the unit. For example, 5 days. The maximum duration is 90 + * days or an equivalent in other units. For example, 3 months. * @return the current {@code Duration} instance, allowing for method chaining */ public Duration value(Integer value) { @@ -132,8 +138,11 @@ public Duration value(Integer value) { } /** - * The length of time by the unit. For example, 5 days. The maximum duration is 90 days or an equivalent in other units. For example, 3 months. - * @return value The length of time by the unit. For example, 5 days. The maximum duration is 90 days or an equivalent in other units. For example, 3 months. + * The length of time by the unit. For example, 5 days. The maximum duration is 90 days or an + * equivalent in other units. For example, 3 months. + * + * @return value The length of time by the unit. For example, 5 days. The maximum duration is 90 + * days or an equivalent in other units. For example, 3 months. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +151,11 @@ public Integer getValue() { } /** - * The length of time by the unit. For example, 5 days. The maximum duration is 90 days or an equivalent in other units. For example, 3 months. + * The length of time by the unit. For example, 5 days. The maximum duration is 90 days or an + * equivalent in other units. For example, 3 months. * - * @param value The length of time by the unit. For example, 5 days. The maximum duration is 90 days or an equivalent in other units. For example, 3 months. + * @param value The length of time by the unit. For example, 5 days. The maximum duration is 90 + * days or an equivalent in other units. For example, 3 months. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,9 +163,7 @@ public void setValue(Integer value) { this.value = value; } - /** - * Return true if this Duration object is equal to o. - */ + /** Return true if this Duration object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -164,8 +173,7 @@ public boolean equals(Object o) { return false; } Duration duration = (Duration) o; - return Objects.equals(this.unit, duration.unit) && - Objects.equals(this.value, duration.value); + return Objects.equals(this.unit, duration.unit) && Objects.equals(this.value, duration.value); } @Override @@ -184,8 +192,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -194,7 +201,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Duration given an JSON string * * @param jsonString JSON string @@ -204,11 +211,12 @@ private String toIndentedString(Object o) { public static Duration fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Duration.class); } -/** - * Convert an instance of Duration to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Duration to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/EntryModesRestriction.java b/src/main/java/com/adyen/model/balanceplatform/EntryModesRestriction.java index e10234796..989e79ce3 100644 --- a/src/main/java/com/adyen/model/balanceplatform/EntryModesRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/EntryModesRestriction.java @@ -2,47 +2,38 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * EntryModesRestriction - */ +/** EntryModesRestriction */ @JsonPropertyOrder({ EntryModesRestriction.JSON_PROPERTY_OPERATION, EntryModesRestriction.JSON_PROPERTY_VALUE }) - public class EntryModesRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; - /** - * Gets or Sets value - */ + /** Gets or Sets value */ public enum ValueEnum { - BARCODE(String.valueOf("barcode")), CHIP(String.valueOf("chip")), @@ -66,7 +57,7 @@ public enum ValueEnum { private String value; ValueEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -87,7 +78,11 @@ public static ValueEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ValueEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ValueEnum.values())); + LOG.warning( + "ValueEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ValueEnum.values())); return null; } } @@ -95,8 +90,7 @@ public static ValueEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUE = "value"; private List value; - public EntryModesRestriction() { - } + public EntryModesRestriction() {} /** * Defines how the condition must be evaluated. @@ -111,6 +105,7 @@ public EntryModesRestriction operation(String operation) { /** * Defines how the condition must be evaluated. + * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -131,9 +126,11 @@ public void setOperation(String operation) { } /** - * List of point-of-sale entry modes. Possible values: **barcode**, **chip**, **cof**, **contactless**, **magstripe**, **manual**, **ocr**, **server**. + * List of point-of-sale entry modes. Possible values: **barcode**, **chip**, **cof**, + * **contactless**, **magstripe**, **manual**, **ocr**, **server**. * - * @param value List of point-of-sale entry modes. Possible values: **barcode**, **chip**, **cof**, **contactless**, **magstripe**, **manual**, **ocr**, **server**. + * @param value List of point-of-sale entry modes. Possible values: **barcode**, **chip**, + * **cof**, **contactless**, **magstripe**, **manual**, **ocr**, **server**. * @return the current {@code EntryModesRestriction} instance, allowing for method chaining */ public EntryModesRestriction value(List value) { @@ -150,8 +147,11 @@ public EntryModesRestriction addValueItem(ValueEnum valueItem) { } /** - * List of point-of-sale entry modes. Possible values: **barcode**, **chip**, **cof**, **contactless**, **magstripe**, **manual**, **ocr**, **server**. - * @return value List of point-of-sale entry modes. Possible values: **barcode**, **chip**, **cof**, **contactless**, **magstripe**, **manual**, **ocr**, **server**. + * List of point-of-sale entry modes. Possible values: **barcode**, **chip**, **cof**, + * **contactless**, **magstripe**, **manual**, **ocr**, **server**. + * + * @return value List of point-of-sale entry modes. Possible values: **barcode**, **chip**, + * **cof**, **contactless**, **magstripe**, **manual**, **ocr**, **server**. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,9 +160,11 @@ public List getValue() { } /** - * List of point-of-sale entry modes. Possible values: **barcode**, **chip**, **cof**, **contactless**, **magstripe**, **manual**, **ocr**, **server**. + * List of point-of-sale entry modes. Possible values: **barcode**, **chip**, **cof**, + * **contactless**, **magstripe**, **manual**, **ocr**, **server**. * - * @param value List of point-of-sale entry modes. Possible values: **barcode**, **chip**, **cof**, **contactless**, **magstripe**, **manual**, **ocr**, **server**. + * @param value List of point-of-sale entry modes. Possible values: **barcode**, **chip**, + * **cof**, **contactless**, **magstripe**, **manual**, **ocr**, **server**. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -170,9 +172,7 @@ public void setValue(List value) { this.value = value; } - /** - * Return true if this EntryModesRestriction object is equal to o. - */ + /** Return true if this EntryModesRestriction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -182,8 +182,8 @@ public boolean equals(Object o) { return false; } EntryModesRestriction entryModesRestriction = (EntryModesRestriction) o; - return Objects.equals(this.operation, entryModesRestriction.operation) && - Objects.equals(this.value, entryModesRestriction.value); + return Objects.equals(this.operation, entryModesRestriction.operation) + && Objects.equals(this.value, entryModesRestriction.value); } @Override @@ -202,8 +202,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -212,21 +211,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of EntryModesRestriction given an JSON string * * @param jsonString JSON string * @return An instance of EntryModesRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to EntryModesRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to + * EntryModesRestriction */ public static EntryModesRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, EntryModesRestriction.class); } -/** - * Convert an instance of EntryModesRestriction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of EntryModesRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/Expiry.java b/src/main/java/com/adyen/model/balanceplatform/Expiry.java index f7d4d14d7..ad0235bcc 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Expiry.java +++ b/src/main/java/com/adyen/model/balanceplatform/Expiry.java @@ -2,36 +2,23 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Expiry - */ -@JsonPropertyOrder({ - Expiry.JSON_PROPERTY_MONTH, - Expiry.JSON_PROPERTY_YEAR -}) - +/** Expiry */ +@JsonPropertyOrder({Expiry.JSON_PROPERTY_MONTH, Expiry.JSON_PROPERTY_YEAR}) public class Expiry { public static final String JSON_PROPERTY_MONTH = "month"; private String month; @@ -39,8 +26,7 @@ public class Expiry { public static final String JSON_PROPERTY_YEAR = "year"; private String year; - public Expiry() { - } + public Expiry() {} /** * The month in which the card will expire. @@ -55,6 +41,7 @@ public Expiry month(String month) { /** * The month in which the card will expire. + * * @return month The month in which the card will expire. */ @JsonProperty(JSON_PROPERTY_MONTH) @@ -87,6 +74,7 @@ public Expiry year(String year) { /** * The year in which the card will expire. + * * @return year The year in which the card will expire. */ @JsonProperty(JSON_PROPERTY_YEAR) @@ -106,9 +94,7 @@ public void setYear(String year) { this.year = year; } - /** - * Return true if this Expiry object is equal to o. - */ + /** Return true if this Expiry object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +104,7 @@ public boolean equals(Object o) { return false; } Expiry expiry = (Expiry) o; - return Objects.equals(this.month, expiry.month) && - Objects.equals(this.year, expiry.year); + return Objects.equals(this.month, expiry.month) && Objects.equals(this.year, expiry.year); } @Override @@ -138,8 +123,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +132,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Expiry given an JSON string * * @param jsonString JSON string @@ -158,11 +142,12 @@ private String toIndentedString(Object o) { public static Expiry fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Expiry.class); } -/** - * Convert an instance of Expiry to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Expiry to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/Fee.java b/src/main/java/com/adyen/model/balanceplatform/Fee.java index 308d855a3..160316204 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Fee.java +++ b/src/main/java/com/adyen/model/balanceplatform/Fee.java @@ -2,47 +2,33 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Fee - */ -@JsonPropertyOrder({ - Fee.JSON_PROPERTY_AMOUNT -}) - +/** Fee */ +@JsonPropertyOrder({Fee.JSON_PROPERTY_AMOUNT}) public class Fee { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; - public Fee() { - } + public Fee() {} /** * amount * - * @param amount + * @param amount * @return the current {@code Fee} instance, allowing for method chaining */ public Fee amount(Amount amount) { @@ -52,7 +38,8 @@ public Fee amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,7 +50,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,9 +58,7 @@ public void setAmount(Amount amount) { this.amount = amount; } - /** - * Return true if this Fee object is equal to o. - */ + /** Return true if this Fee object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -101,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -111,7 +95,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Fee given an JSON string * * @param jsonString JSON string @@ -121,11 +105,12 @@ private String toIndentedString(Object o) { public static Fee fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Fee.class); } -/** - * Convert an instance of Fee to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Fee to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/GetNetworkTokenResponse.java b/src/main/java/com/adyen/model/balanceplatform/GetNetworkTokenResponse.java index 5b3d50238..a5b7260ca 100644 --- a/src/main/java/com/adyen/model/balanceplatform/GetNetworkTokenResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/GetNetworkTokenResponse.java @@ -2,47 +2,33 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.NetworkToken; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * GetNetworkTokenResponse - */ -@JsonPropertyOrder({ - GetNetworkTokenResponse.JSON_PROPERTY_TOKEN -}) - +/** GetNetworkTokenResponse */ +@JsonPropertyOrder({GetNetworkTokenResponse.JSON_PROPERTY_TOKEN}) public class GetNetworkTokenResponse { public static final String JSON_PROPERTY_TOKEN = "token"; private NetworkToken token; - public GetNetworkTokenResponse() { - } + public GetNetworkTokenResponse() {} /** * token * - * @param token + * @param token * @return the current {@code GetNetworkTokenResponse} instance, allowing for method chaining */ public GetNetworkTokenResponse token(NetworkToken token) { @@ -52,7 +38,8 @@ public GetNetworkTokenResponse token(NetworkToken token) { /** * Get token - * @return token + * + * @return token */ @JsonProperty(JSON_PROPERTY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,7 +50,7 @@ public NetworkToken getToken() { /** * token * - * @param token + * @param token */ @JsonProperty(JSON_PROPERTY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,9 +58,7 @@ public void setToken(NetworkToken token) { this.token = token; } - /** - * Return true if this GetNetworkTokenResponse object is equal to o. - */ + /** Return true if this GetNetworkTokenResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -101,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -111,21 +95,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of GetNetworkTokenResponse given an JSON string * * @param jsonString JSON string * @return An instance of GetNetworkTokenResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to GetNetworkTokenResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * GetNetworkTokenResponse */ public static GetNetworkTokenResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GetNetworkTokenResponse.class); } -/** - * Convert an instance of GetNetworkTokenResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of GetNetworkTokenResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/GetTaxFormResponse.java b/src/main/java/com/adyen/model/balanceplatform/GetTaxFormResponse.java index 042275103..3a8702c6c 100644 --- a/src/main/java/com/adyen/model/balanceplatform/GetTaxFormResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/GetTaxFormResponse.java @@ -2,45 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * GetTaxFormResponse - */ +/** GetTaxFormResponse */ @JsonPropertyOrder({ GetTaxFormResponse.JSON_PROPERTY_CONTENT, GetTaxFormResponse.JSON_PROPERTY_CONTENT_TYPE }) - public class GetTaxFormResponse { public static final String JSON_PROPERTY_CONTENT = "content"; private byte[] content; - /** - * The content type of the tax form. Possible values: * **application/pdf** - */ + /** The content type of the tax form. Possible values: * **application/pdf** */ public enum ContentTypeEnum { - APPLICATION_PDF(String.valueOf("application/pdf")); private static final Logger LOG = Logger.getLogger(ContentTypeEnum.class.getName()); @@ -48,7 +39,7 @@ public enum ContentTypeEnum { private String value; ContentTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static ContentTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ContentTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ContentTypeEnum.values())); + LOG.warning( + "ContentTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ContentTypeEnum.values())); return null; } } @@ -77,8 +72,7 @@ public static ContentTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_CONTENT_TYPE = "contentType"; private ContentTypeEnum contentType; - public GetTaxFormResponse() { - } + public GetTaxFormResponse() {} /** * The content of the tax form in Base64 format. @@ -93,6 +87,7 @@ public GetTaxFormResponse content(byte[] content) { /** * The content of the tax form in Base64 format. + * * @return content The content of the tax form in Base64 format. */ @JsonProperty(JSON_PROPERTY_CONTENT) @@ -113,9 +108,9 @@ public void setContent(byte[] content) { } /** - * The content type of the tax form. Possible values: * **application/pdf** + * The content type of the tax form. Possible values: * **application/pdf** * - * @param contentType The content type of the tax form. Possible values: * **application/pdf** + * @param contentType The content type of the tax form. Possible values: * **application/pdf** * @return the current {@code GetTaxFormResponse} instance, allowing for method chaining */ public GetTaxFormResponse contentType(ContentTypeEnum contentType) { @@ -124,8 +119,9 @@ public GetTaxFormResponse contentType(ContentTypeEnum contentType) { } /** - * The content type of the tax form. Possible values: * **application/pdf** - * @return contentType The content type of the tax form. Possible values: * **application/pdf** + * The content type of the tax form. Possible values: * **application/pdf** + * + * @return contentType The content type of the tax form. Possible values: * **application/pdf** */ @JsonProperty(JSON_PROPERTY_CONTENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -134,9 +130,9 @@ public ContentTypeEnum getContentType() { } /** - * The content type of the tax form. Possible values: * **application/pdf** + * The content type of the tax form. Possible values: * **application/pdf** * - * @param contentType The content type of the tax form. Possible values: * **application/pdf** + * @param contentType The content type of the tax form. Possible values: * **application/pdf** */ @JsonProperty(JSON_PROPERTY_CONTENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,9 +140,7 @@ public void setContentType(ContentTypeEnum contentType) { this.contentType = contentType; } - /** - * Return true if this GetTaxFormResponse object is equal to o. - */ + /** Return true if this GetTaxFormResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +150,8 @@ public boolean equals(Object o) { return false; } GetTaxFormResponse getTaxFormResponse = (GetTaxFormResponse) o; - return Arrays.equals(this.content, getTaxFormResponse.content) && - Objects.equals(this.contentType, getTaxFormResponse.contentType); + return Arrays.equals(this.content, getTaxFormResponse.content) + && Objects.equals(this.contentType, getTaxFormResponse.contentType); } @Override @@ -176,8 +170,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +179,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of GetTaxFormResponse given an JSON string * * @param jsonString JSON string * @return An instance of GetTaxFormResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to GetTaxFormResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * GetTaxFormResponse */ public static GetTaxFormResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GetTaxFormResponse.class); } -/** - * Convert an instance of GetTaxFormResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of GetTaxFormResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/GrantLimit.java b/src/main/java/com/adyen/model/balanceplatform/GrantLimit.java index 11d54f67e..3ca21beb3 100644 --- a/src/main/java/com/adyen/model/balanceplatform/GrantLimit.java +++ b/src/main/java/com/adyen/model/balanceplatform/GrantLimit.java @@ -2,47 +2,33 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * GrantLimit - */ -@JsonPropertyOrder({ - GrantLimit.JSON_PROPERTY_AMOUNT -}) - +/** GrantLimit */ +@JsonPropertyOrder({GrantLimit.JSON_PROPERTY_AMOUNT}) public class GrantLimit { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; - public GrantLimit() { - } + public GrantLimit() {} /** * amount * - * @param amount + * @param amount * @return the current {@code GrantLimit} instance, allowing for method chaining */ public GrantLimit amount(Amount amount) { @@ -52,7 +38,8 @@ public GrantLimit amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,7 +50,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,9 +58,7 @@ public void setAmount(Amount amount) { this.amount = amount; } - /** - * Return true if this GrantLimit object is equal to o. - */ + /** Return true if this GrantLimit object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -101,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -111,7 +95,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of GrantLimit given an JSON string * * @param jsonString JSON string @@ -121,11 +105,12 @@ private String toIndentedString(Object o) { public static GrantLimit fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GrantLimit.class); } -/** - * Convert an instance of GrantLimit to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of GrantLimit to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/GrantOffer.java b/src/main/java/com/adyen/model/balanceplatform/GrantOffer.java index 5c2ca4013..533556a4b 100644 --- a/src/main/java/com/adyen/model/balanceplatform/GrantOffer.java +++ b/src/main/java/com/adyen/model/balanceplatform/GrantOffer.java @@ -2,35 +2,27 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.Amount; -import com.adyen.model.balanceplatform.Fee; -import com.adyen.model.balanceplatform.Repayment; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * GrantOffer - */ +/** GrantOffer */ @JsonPropertyOrder({ GrantOffer.JSON_PROPERTY_ACCOUNT_HOLDER_ID, GrantOffer.JSON_PROPERTY_AMOUNT, @@ -41,7 +33,6 @@ GrantOffer.JSON_PROPERTY_REPAYMENT, GrantOffer.JSON_PROPERTY_STARTS_AT }) - public class GrantOffer { public static final String JSON_PROPERTY_ACCOUNT_HOLDER_ID = "accountHolderId"; private String accountHolderId; @@ -49,11 +40,8 @@ public class GrantOffer { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; - /** - * The contract type of the grant offer. Possible value: **cashAdvance**, **loan**. - */ + /** The contract type of the grant offer. Possible value: **cashAdvance**, **loan**. */ public enum ContractTypeEnum { - CASHADVANCE(String.valueOf("cashAdvance")), LOAN(String.valueOf("loan")); @@ -63,7 +51,7 @@ public enum ContractTypeEnum { private String value; ContractTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -84,7 +72,11 @@ public static ContractTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ContractTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ContractTypeEnum.values())); + LOG.warning( + "ContractTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ContractTypeEnum.values())); return null; } } @@ -107,8 +99,7 @@ public static ContractTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_STARTS_AT = "startsAt"; private OffsetDateTime startsAt; - public GrantOffer() { - } + public GrantOffer() {} /** * The identifier of the account holder to which the grant is offered. @@ -123,6 +114,7 @@ public GrantOffer accountHolderId(String accountHolderId) { /** * The identifier of the account holder to which the grant is offered. + * * @return accountHolderId The identifier of the account holder to which the grant is offered. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @@ -145,7 +137,7 @@ public void setAccountHolderId(String accountHolderId) { /** * amount * - * @param amount + * @param amount * @return the current {@code GrantOffer} instance, allowing for method chaining */ public GrantOffer amount(Amount amount) { @@ -155,7 +147,8 @@ public GrantOffer amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -166,7 +159,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,7 +170,8 @@ public void setAmount(Amount amount) { /** * The contract type of the grant offer. Possible value: **cashAdvance**, **loan**. * - * @param contractType The contract type of the grant offer. Possible value: **cashAdvance**, **loan**. + * @param contractType The contract type of the grant offer. Possible value: **cashAdvance**, + * **loan**. * @return the current {@code GrantOffer} instance, allowing for method chaining */ public GrantOffer contractType(ContractTypeEnum contractType) { @@ -187,7 +181,9 @@ public GrantOffer contractType(ContractTypeEnum contractType) { /** * The contract type of the grant offer. Possible value: **cashAdvance**, **loan**. - * @return contractType The contract type of the grant offer. Possible value: **cashAdvance**, **loan**. + * + * @return contractType The contract type of the grant offer. Possible value: **cashAdvance**, + * **loan**. */ @JsonProperty(JSON_PROPERTY_CONTRACT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,7 +194,8 @@ public ContractTypeEnum getContractType() { /** * The contract type of the grant offer. Possible value: **cashAdvance**, **loan**. * - * @param contractType The contract type of the grant offer. Possible value: **cashAdvance**, **loan**. + * @param contractType The contract type of the grant offer. Possible value: **cashAdvance**, + * **loan**. */ @JsonProperty(JSON_PROPERTY_CONTRACT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,6 +216,7 @@ public GrantOffer expiresAt(OffsetDateTime expiresAt) { /** * The end date of the grant offer validity period. + * * @return expiresAt The end date of the grant offer validity period. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @@ -241,7 +239,7 @@ public void setExpiresAt(OffsetDateTime expiresAt) { /** * fee * - * @param fee + * @param fee * @return the current {@code GrantOffer} instance, allowing for method chaining */ public GrantOffer fee(Fee fee) { @@ -251,7 +249,8 @@ public GrantOffer fee(Fee fee) { /** * Get fee - * @return fee + * + * @return fee */ @JsonProperty(JSON_PROPERTY_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -262,7 +261,7 @@ public Fee getFee() { /** * fee * - * @param fee + * @param fee */ @JsonProperty(JSON_PROPERTY_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -283,6 +282,7 @@ public GrantOffer id(String id) { /** * The unique identifier of the grant offer. + * * @return id The unique identifier of the grant offer. */ @JsonProperty(JSON_PROPERTY_ID) @@ -305,7 +305,7 @@ public void setId(String id) { /** * repayment * - * @param repayment + * @param repayment * @return the current {@code GrantOffer} instance, allowing for method chaining */ public GrantOffer repayment(Repayment repayment) { @@ -315,7 +315,8 @@ public GrantOffer repayment(Repayment repayment) { /** * Get repayment - * @return repayment + * + * @return repayment */ @JsonProperty(JSON_PROPERTY_REPAYMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -326,7 +327,7 @@ public Repayment getRepayment() { /** * repayment * - * @param repayment + * @param repayment */ @JsonProperty(JSON_PROPERTY_REPAYMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -347,6 +348,7 @@ public GrantOffer startsAt(OffsetDateTime startsAt) { /** * The starting date of the grant offer validity period. + * * @return startsAt The starting date of the grant offer validity period. */ @JsonProperty(JSON_PROPERTY_STARTS_AT) @@ -366,9 +368,7 @@ public void setStartsAt(OffsetDateTime startsAt) { this.startsAt = startsAt; } - /** - * Return true if this GrantOffer object is equal to o. - */ + /** Return true if this GrantOffer object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -378,19 +378,20 @@ public boolean equals(Object o) { return false; } GrantOffer grantOffer = (GrantOffer) o; - return Objects.equals(this.accountHolderId, grantOffer.accountHolderId) && - Objects.equals(this.amount, grantOffer.amount) && - Objects.equals(this.contractType, grantOffer.contractType) && - Objects.equals(this.expiresAt, grantOffer.expiresAt) && - Objects.equals(this.fee, grantOffer.fee) && - Objects.equals(this.id, grantOffer.id) && - Objects.equals(this.repayment, grantOffer.repayment) && - Objects.equals(this.startsAt, grantOffer.startsAt); + return Objects.equals(this.accountHolderId, grantOffer.accountHolderId) + && Objects.equals(this.amount, grantOffer.amount) + && Objects.equals(this.contractType, grantOffer.contractType) + && Objects.equals(this.expiresAt, grantOffer.expiresAt) + && Objects.equals(this.fee, grantOffer.fee) + && Objects.equals(this.id, grantOffer.id) + && Objects.equals(this.repayment, grantOffer.repayment) + && Objects.equals(this.startsAt, grantOffer.startsAt); } @Override public int hashCode() { - return Objects.hash(accountHolderId, amount, contractType, expiresAt, fee, id, repayment, startsAt); + return Objects.hash( + accountHolderId, amount, contractType, expiresAt, fee, id, repayment, startsAt); } @Override @@ -410,8 +411,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -420,7 +420,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of GrantOffer given an JSON string * * @param jsonString JSON string @@ -430,11 +430,12 @@ private String toIndentedString(Object o) { public static GrantOffer fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GrantOffer.class); } -/** - * Convert an instance of GrantOffer to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of GrantOffer to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/GrantOffers.java b/src/main/java/com/adyen/model/balanceplatform/GrantOffers.java index 4b882c105..31a8f8664 100644 --- a/src/main/java/com/adyen/model/balanceplatform/GrantOffers.java +++ b/src/main/java/com/adyen/model/balanceplatform/GrantOffers.java @@ -2,44 +2,30 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.GrantOffer; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * GrantOffers - */ -@JsonPropertyOrder({ - GrantOffers.JSON_PROPERTY_GRANT_OFFERS -}) - +/** GrantOffers */ +@JsonPropertyOrder({GrantOffers.JSON_PROPERTY_GRANT_OFFERS}) public class GrantOffers { public static final String JSON_PROPERTY_GRANT_OFFERS = "grantOffers"; private List grantOffers; - public GrantOffers() { - } + public GrantOffers() {} /** * A list of available grant offers. @@ -62,6 +48,7 @@ public GrantOffers addGrantOffersItem(GrantOffer grantOffersItem) { /** * A list of available grant offers. + * * @return grantOffers A list of available grant offers. */ @JsonProperty(JSON_PROPERTY_GRANT_OFFERS) @@ -81,9 +68,7 @@ public void setGrantOffers(List grantOffers) { this.grantOffers = grantOffers; } - /** - * Return true if this GrantOffers object is equal to o. - */ + /** Return true if this GrantOffers object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -111,8 +96,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -121,7 +105,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of GrantOffers given an JSON string * * @param jsonString JSON string @@ -131,11 +115,12 @@ private String toIndentedString(Object o) { public static GrantOffers fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GrantOffers.class); } -/** - * Convert an instance of GrantOffers to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of GrantOffers to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/HKLocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/HKLocalAccountIdentification.java index 44c04873c..c8915897e 100644 --- a/src/main/java/com/adyen/model/balanceplatform/HKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/HKLocalAccountIdentification.java @@ -2,37 +2,31 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * HKLocalAccountIdentification - */ +/** HKLocalAccountIdentification */ @JsonPropertyOrder({ HKLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, HKLocalAccountIdentification.JSON_PROPERTY_CLEARING_CODE, HKLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class HKLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -40,11 +34,8 @@ public class HKLocalAccountIdentification { public static final String JSON_PROPERTY_CLEARING_CODE = "clearingCode"; private String clearingCode; - /** - * **hkLocal** - */ + /** **hkLocal** */ public enum TypeEnum { - HKLOCAL(String.valueOf("hkLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +43,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +64,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,13 +76,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public HKLocalAccountIdentification() { - } + public HKLocalAccountIdentification() {} /** - * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. + * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. + * Starts with the 3-digit branch code. * - * @param accountNumber The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. + * @param accountNumber The 9- to 15-character bank account number (alphanumeric), without + * separators or whitespace. Starts with the 3-digit branch code. * @return the current {@code HKLocalAccountIdentification} instance, allowing for method chaining */ public HKLocalAccountIdentification accountNumber(String accountNumber) { @@ -96,8 +92,11 @@ public HKLocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. - * @return accountNumber The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. + * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. + * Starts with the 3-digit branch code. + * + * @return accountNumber The 9- to 15-character bank account number (alphanumeric), without + * separators or whitespace. Starts with the 3-digit branch code. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +105,11 @@ public String getAccountNumber() { } /** - * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. + * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. + * Starts with the 3-digit branch code. * - * @param accountNumber The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. + * @param accountNumber The 9- to 15-character bank account number (alphanumeric), without + * separators or whitespace. Starts with the 3-digit branch code. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,6 +130,7 @@ public HKLocalAccountIdentification clearingCode(String clearingCode) { /** * The 3-digit clearing code, without separators or whitespace. + * * @return clearingCode The 3-digit clearing code, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_CLEARING_CODE) @@ -161,6 +163,7 @@ public HKLocalAccountIdentification type(TypeEnum type) { /** * **hkLocal** + * * @return type **hkLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +183,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this HKLocalAccountIdentification object is equal to o. - */ + /** Return true if this HKLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +193,9 @@ public boolean equals(Object o) { return false; } HKLocalAccountIdentification hkLocalAccountIdentification = (HKLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, hkLocalAccountIdentification.accountNumber) && - Objects.equals(this.clearingCode, hkLocalAccountIdentification.clearingCode) && - Objects.equals(this.type, hkLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, hkLocalAccountIdentification.accountNumber) + && Objects.equals(this.clearingCode, hkLocalAccountIdentification.clearingCode) + && Objects.equals(this.type, hkLocalAccountIdentification.type); } @Override @@ -214,8 +215,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +224,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of HKLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of HKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to HKLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * HKLocalAccountIdentification */ - public static HKLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static HKLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, HKLocalAccountIdentification.class); } -/** - * Convert an instance of HKLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of HKLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/HULocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/HULocalAccountIdentification.java index 5ca0e924b..5683cbc72 100644 --- a/src/main/java/com/adyen/model/balanceplatform/HULocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/HULocalAccountIdentification.java @@ -2,45 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * HULocalAccountIdentification - */ +/** HULocalAccountIdentification */ @JsonPropertyOrder({ HULocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, HULocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class HULocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - /** - * **huLocal** - */ + /** **huLocal** */ public enum TypeEnum { - HULOCAL(String.valueOf("huLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +39,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,8 +72,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public HULocalAccountIdentification() { - } + public HULocalAccountIdentification() {} /** * The 24-digit bank account number, without separators or whitespace. @@ -93,6 +87,7 @@ public HULocalAccountIdentification accountNumber(String accountNumber) { /** * The 24-digit bank account number, without separators or whitespace. + * * @return accountNumber The 24-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -125,6 +120,7 @@ public HULocalAccountIdentification type(TypeEnum type) { /** * **huLocal** + * * @return type **huLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -144,9 +140,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this HULocalAccountIdentification object is equal to o. - */ + /** Return true if this HULocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +150,8 @@ public boolean equals(Object o) { return false; } HULocalAccountIdentification huLocalAccountIdentification = (HULocalAccountIdentification) o; - return Objects.equals(this.accountNumber, huLocalAccountIdentification.accountNumber) && - Objects.equals(this.type, huLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, huLocalAccountIdentification.accountNumber) + && Objects.equals(this.type, huLocalAccountIdentification.type); } @Override @@ -176,8 +170,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +179,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of HULocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of HULocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to HULocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * HULocalAccountIdentification */ - public static HULocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static HULocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, HULocalAccountIdentification.class); } -/** - * Convert an instance of HULocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of HULocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/Href.java b/src/main/java/com/adyen/model/balanceplatform/Href.java index 80c4d51b2..c228ee0e0 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Href.java +++ b/src/main/java/com/adyen/model/balanceplatform/Href.java @@ -2,46 +2,33 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Href - */ -@JsonPropertyOrder({ - Href.JSON_PROPERTY_HREF -}) - +/** Href */ +@JsonPropertyOrder({Href.JSON_PROPERTY_HREF}) public class Href { public static final String JSON_PROPERTY_HREF = "href"; private String href; - public Href() { - } + public Href() {} /** * href * - * @param href + * @param href * @return the current {@code Href} instance, allowing for method chaining */ public Href href(String href) { @@ -51,7 +38,8 @@ public Href href(String href) { /** * Get href - * @return href + * + * @return href */ @JsonProperty(JSON_PROPERTY_HREF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -62,7 +50,7 @@ public String getHref() { /** * href * - * @param href + * @param href */ @JsonProperty(JSON_PROPERTY_HREF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +58,7 @@ public void setHref(String href) { this.href = href; } - /** - * Return true if this Href object is equal to o. - */ + /** Return true if this Href object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,7 +95,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Href given an JSON string * * @param jsonString JSON string @@ -120,11 +105,12 @@ private String toIndentedString(Object o) { public static Href fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Href.class); } -/** - * Convert an instance of Href to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Href to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/IbanAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/IbanAccountIdentification.java index d0ec8f95d..19889943a 100644 --- a/src/main/java/com/adyen/model/balanceplatform/IbanAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/IbanAccountIdentification.java @@ -2,45 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * IbanAccountIdentification - */ +/** IbanAccountIdentification */ @JsonPropertyOrder({ IbanAccountIdentification.JSON_PROPERTY_IBAN, IbanAccountIdentification.JSON_PROPERTY_TYPE }) - public class IbanAccountIdentification { public static final String JSON_PROPERTY_IBAN = "iban"; private String iban; - /** - * **iban** - */ + /** **iban** */ public enum TypeEnum { - IBAN(String.valueOf("iban")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +39,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,13 +72,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public IbanAccountIdentification() { - } + public IbanAccountIdentification() {} /** - * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. * - * @param iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @param iban The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. * @return the current {@code IbanAccountIdentification} instance, allowing for method chaining */ public IbanAccountIdentification iban(String iban) { @@ -92,8 +88,11 @@ public IbanAccountIdentification iban(String iban) { } /** - * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. - * @return iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * + * @return iban The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,9 +101,11 @@ public String getIban() { } /** - * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. * - * @param iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @param iban The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,6 +126,7 @@ public IbanAccountIdentification type(TypeEnum type) { /** * **iban** + * * @return type **iban** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -144,9 +146,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this IbanAccountIdentification object is equal to o. - */ + /** Return true if this IbanAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +156,8 @@ public boolean equals(Object o) { return false; } IbanAccountIdentification ibanAccountIdentification = (IbanAccountIdentification) o; - return Objects.equals(this.iban, ibanAccountIdentification.iban) && - Objects.equals(this.type, ibanAccountIdentification.type); + return Objects.equals(this.iban, ibanAccountIdentification.iban) + && Objects.equals(this.type, ibanAccountIdentification.type); } @Override @@ -176,8 +176,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +185,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of IbanAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of IbanAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to IbanAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * IbanAccountIdentification */ - public static IbanAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static IbanAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, IbanAccountIdentification.class); } -/** - * Convert an instance of IbanAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of IbanAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/IbanAccountIdentificationRequirement.java b/src/main/java/com/adyen/model/balanceplatform/IbanAccountIdentificationRequirement.java index e1a6f0825..f0747e208 100644 --- a/src/main/java/com/adyen/model/balanceplatform/IbanAccountIdentificationRequirement.java +++ b/src/main/java/com/adyen/model/balanceplatform/IbanAccountIdentificationRequirement.java @@ -2,39 +2,33 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * IbanAccountIdentificationRequirement - */ +/** IbanAccountIdentificationRequirement */ @JsonPropertyOrder({ IbanAccountIdentificationRequirement.JSON_PROPERTY_DESCRIPTION, IbanAccountIdentificationRequirement.JSON_PROPERTY_IBAN_PREFIXES, IbanAccountIdentificationRequirement.JSON_PROPERTY_TYPE }) - public class IbanAccountIdentificationRequirement { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -42,11 +36,8 @@ public class IbanAccountIdentificationRequirement { public static final String JSON_PROPERTY_IBAN_PREFIXES = "ibanPrefixes"; private List ibanPrefixes; - /** - * **ibanAccountIdentificationRequirement** - */ + /** **ibanAccountIdentificationRequirement** */ public enum TypeEnum { - IBANACCOUNTIDENTIFICATIONREQUIREMENT(String.valueOf("ibanAccountIdentificationRequirement")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -54,7 +45,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -75,7 +66,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -83,14 +78,16 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public IbanAccountIdentificationRequirement() { - } + public IbanAccountIdentificationRequirement() {} /** - * Specifies the allowed prefixes for the international bank account number as defined in the ISO-13616 standard. + * Specifies the allowed prefixes for the international bank account number as defined in the + * ISO-13616 standard. * - * @param description Specifies the allowed prefixes for the international bank account number as defined in the ISO-13616 standard. - * @return the current {@code IbanAccountIdentificationRequirement} instance, allowing for method chaining + * @param description Specifies the allowed prefixes for the international bank account number as + * defined in the ISO-13616 standard. + * @return the current {@code IbanAccountIdentificationRequirement} instance, allowing for method + * chaining */ public IbanAccountIdentificationRequirement description(String description) { this.description = description; @@ -98,8 +95,11 @@ public IbanAccountIdentificationRequirement description(String description) { } /** - * Specifies the allowed prefixes for the international bank account number as defined in the ISO-13616 standard. - * @return description Specifies the allowed prefixes for the international bank account number as defined in the ISO-13616 standard. + * Specifies the allowed prefixes for the international bank account number as defined in the + * ISO-13616 standard. + * + * @return description Specifies the allowed prefixes for the international bank account number as + * defined in the ISO-13616 standard. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,9 +108,11 @@ public String getDescription() { } /** - * Specifies the allowed prefixes for the international bank account number as defined in the ISO-13616 standard. + * Specifies the allowed prefixes for the international bank account number as defined in the + * ISO-13616 standard. * - * @param description Specifies the allowed prefixes for the international bank account number as defined in the ISO-13616 standard. + * @param description Specifies the allowed prefixes for the international bank account number as + * defined in the ISO-13616 standard. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,8 +123,10 @@ public void setDescription(String description) { /** * Contains the list of allowed prefixes for international bank accounts. For example: NL, US, UK. * - * @param ibanPrefixes Contains the list of allowed prefixes for international bank accounts. For example: NL, US, UK. - * @return the current {@code IbanAccountIdentificationRequirement} instance, allowing for method chaining + * @param ibanPrefixes Contains the list of allowed prefixes for international bank accounts. For + * example: NL, US, UK. + * @return the current {@code IbanAccountIdentificationRequirement} instance, allowing for method + * chaining */ public IbanAccountIdentificationRequirement ibanPrefixes(List ibanPrefixes) { this.ibanPrefixes = ibanPrefixes; @@ -139,7 +143,9 @@ public IbanAccountIdentificationRequirement addIbanPrefixesItem(String ibanPrefi /** * Contains the list of allowed prefixes for international bank accounts. For example: NL, US, UK. - * @return ibanPrefixes Contains the list of allowed prefixes for international bank accounts. For example: NL, US, UK. + * + * @return ibanPrefixes Contains the list of allowed prefixes for international bank accounts. For + * example: NL, US, UK. */ @JsonProperty(JSON_PROPERTY_IBAN_PREFIXES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,7 +156,8 @@ public List getIbanPrefixes() { /** * Contains the list of allowed prefixes for international bank accounts. For example: NL, US, UK. * - * @param ibanPrefixes Contains the list of allowed prefixes for international bank accounts. For example: NL, US, UK. + * @param ibanPrefixes Contains the list of allowed prefixes for international bank accounts. For + * example: NL, US, UK. */ @JsonProperty(JSON_PROPERTY_IBAN_PREFIXES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -162,7 +169,8 @@ public void setIbanPrefixes(List ibanPrefixes) { * **ibanAccountIdentificationRequirement** * * @param type **ibanAccountIdentificationRequirement** - * @return the current {@code IbanAccountIdentificationRequirement} instance, allowing for method chaining + * @return the current {@code IbanAccountIdentificationRequirement} instance, allowing for method + * chaining */ public IbanAccountIdentificationRequirement type(TypeEnum type) { this.type = type; @@ -171,6 +179,7 @@ public IbanAccountIdentificationRequirement type(TypeEnum type) { /** * **ibanAccountIdentificationRequirement** + * * @return type **ibanAccountIdentificationRequirement** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -190,9 +199,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this IbanAccountIdentificationRequirement object is equal to o. - */ + /** Return true if this IbanAccountIdentificationRequirement object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -201,10 +208,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - IbanAccountIdentificationRequirement ibanAccountIdentificationRequirement = (IbanAccountIdentificationRequirement) o; - return Objects.equals(this.description, ibanAccountIdentificationRequirement.description) && - Objects.equals(this.ibanPrefixes, ibanAccountIdentificationRequirement.ibanPrefixes) && - Objects.equals(this.type, ibanAccountIdentificationRequirement.type); + IbanAccountIdentificationRequirement ibanAccountIdentificationRequirement = + (IbanAccountIdentificationRequirement) o; + return Objects.equals(this.description, ibanAccountIdentificationRequirement.description) + && Objects.equals(this.ibanPrefixes, ibanAccountIdentificationRequirement.ibanPrefixes) + && Objects.equals(this.type, ibanAccountIdentificationRequirement.type); } @Override @@ -224,8 +232,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -234,21 +241,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of IbanAccountIdentificationRequirement given an JSON string * * @param jsonString JSON string * @return An instance of IbanAccountIdentificationRequirement - * @throws JsonProcessingException if the JSON string is invalid with respect to IbanAccountIdentificationRequirement + * @throws JsonProcessingException if the JSON string is invalid with respect to + * IbanAccountIdentificationRequirement */ - public static IbanAccountIdentificationRequirement fromJson(String jsonString) throws JsonProcessingException { + public static IbanAccountIdentificationRequirement fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, IbanAccountIdentificationRequirement.class); } -/** - * Convert an instance of IbanAccountIdentificationRequirement to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of IbanAccountIdentificationRequirement to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/InternationalTransactionRestriction.java b/src/main/java/com/adyen/model/balanceplatform/InternationalTransactionRestriction.java index 48d84ce0e..00236b240 100644 --- a/src/main/java/com/adyen/model/balanceplatform/InternationalTransactionRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/InternationalTransactionRestriction.java @@ -2,36 +2,26 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * InternationalTransactionRestriction - */ +/** InternationalTransactionRestriction */ @JsonPropertyOrder({ InternationalTransactionRestriction.JSON_PROPERTY_OPERATION, InternationalTransactionRestriction.JSON_PROPERTY_VALUE }) - public class InternationalTransactionRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -39,14 +29,14 @@ public class InternationalTransactionRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private Boolean value; - public InternationalTransactionRestriction() { - } + public InternationalTransactionRestriction() {} /** * Defines how the condition must be evaluated. * * @param operation Defines how the condition must be evaluated. - * @return the current {@code InternationalTransactionRestriction} instance, allowing for method chaining + * @return the current {@code InternationalTransactionRestriction} instance, allowing for method + * chaining */ public InternationalTransactionRestriction operation(String operation) { this.operation = operation; @@ -55,6 +45,7 @@ public InternationalTransactionRestriction operation(String operation) { /** * Defines how the condition must be evaluated. + * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -75,10 +66,15 @@ public void setOperation(String operation) { } /** - * Boolean indicating whether transaction is an international transaction. Possible values: - **true**: The transaction is an international transaction. - **false**: The transaction is a domestic transaction. + * Boolean indicating whether transaction is an international transaction. Possible values: - + * **true**: The transaction is an international transaction. - **false**: The transaction is a + * domestic transaction. * - * @param value Boolean indicating whether transaction is an international transaction. Possible values: - **true**: The transaction is an international transaction. - **false**: The transaction is a domestic transaction. - * @return the current {@code InternationalTransactionRestriction} instance, allowing for method chaining + * @param value Boolean indicating whether transaction is an international transaction. Possible + * values: - **true**: The transaction is an international transaction. - **false**: The + * transaction is a domestic transaction. + * @return the current {@code InternationalTransactionRestriction} instance, allowing for method + * chaining */ public InternationalTransactionRestriction value(Boolean value) { this.value = value; @@ -86,8 +82,13 @@ public InternationalTransactionRestriction value(Boolean value) { } /** - * Boolean indicating whether transaction is an international transaction. Possible values: - **true**: The transaction is an international transaction. - **false**: The transaction is a domestic transaction. - * @return value Boolean indicating whether transaction is an international transaction. Possible values: - **true**: The transaction is an international transaction. - **false**: The transaction is a domestic transaction. + * Boolean indicating whether transaction is an international transaction. Possible values: - + * **true**: The transaction is an international transaction. - **false**: The transaction is a + * domestic transaction. + * + * @return value Boolean indicating whether transaction is an international transaction. Possible + * values: - **true**: The transaction is an international transaction. - **false**: The + * transaction is a domestic transaction. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +97,13 @@ public Boolean getValue() { } /** - * Boolean indicating whether transaction is an international transaction. Possible values: - **true**: The transaction is an international transaction. - **false**: The transaction is a domestic transaction. + * Boolean indicating whether transaction is an international transaction. Possible values: - + * **true**: The transaction is an international transaction. - **false**: The transaction is a + * domestic transaction. * - * @param value Boolean indicating whether transaction is an international transaction. Possible values: - **true**: The transaction is an international transaction. - **false**: The transaction is a domestic transaction. + * @param value Boolean indicating whether transaction is an international transaction. Possible + * values: - **true**: The transaction is an international transaction. - **false**: The + * transaction is a domestic transaction. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +111,7 @@ public void setValue(Boolean value) { this.value = value; } - /** - * Return true if this InternationalTransactionRestriction object is equal to o. - */ + /** Return true if this InternationalTransactionRestriction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -117,9 +120,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InternationalTransactionRestriction internationalTransactionRestriction = (InternationalTransactionRestriction) o; - return Objects.equals(this.operation, internationalTransactionRestriction.operation) && - Objects.equals(this.value, internationalTransactionRestriction.value); + InternationalTransactionRestriction internationalTransactionRestriction = + (InternationalTransactionRestriction) o; + return Objects.equals(this.operation, internationalTransactionRestriction.operation) + && Objects.equals(this.value, internationalTransactionRestriction.value); } @Override @@ -138,8 +142,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +151,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of InternationalTransactionRestriction given an JSON string * * @param jsonString JSON string * @return An instance of InternationalTransactionRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to InternationalTransactionRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to + * InternationalTransactionRestriction */ - public static InternationalTransactionRestriction fromJson(String jsonString) throws JsonProcessingException { + public static InternationalTransactionRestriction fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, InternationalTransactionRestriction.class); } -/** - * Convert an instance of InternationalTransactionRestriction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of InternationalTransactionRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/InvalidField.java b/src/main/java/com/adyen/model/balanceplatform/InvalidField.java index c487d3f7a..3d7f8e77f 100644 --- a/src/main/java/com/adyen/model/balanceplatform/InvalidField.java +++ b/src/main/java/com/adyen/model/balanceplatform/InvalidField.java @@ -2,37 +2,27 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * InvalidField - */ +/** InvalidField */ @JsonPropertyOrder({ InvalidField.JSON_PROPERTY_NAME, InvalidField.JSON_PROPERTY_VALUE, InvalidField.JSON_PROPERTY_MESSAGE }) - public class InvalidField { public static final String JSON_PROPERTY_NAME = "name"; private String name; @@ -43,8 +33,7 @@ public class InvalidField { public static final String JSON_PROPERTY_MESSAGE = "message"; private String message; - public InvalidField() { - } + public InvalidField() {} /** * The field that has an invalid value. @@ -59,6 +48,7 @@ public InvalidField name(String name) { /** * The field that has an invalid value. + * * @return name The field that has an invalid value. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -91,6 +81,7 @@ public InvalidField value(String value) { /** * The invalid value. + * * @return value The invalid value. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -123,6 +114,7 @@ public InvalidField message(String message) { /** * Description of the validation error. + * * @return message Description of the validation error. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -142,9 +134,7 @@ public void setMessage(String message) { this.message = message; } - /** - * Return true if this InvalidField object is equal to o. - */ + /** Return true if this InvalidField object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +144,9 @@ public boolean equals(Object o) { return false; } InvalidField invalidField = (InvalidField) o; - return Objects.equals(this.name, invalidField.name) && - Objects.equals(this.value, invalidField.value) && - Objects.equals(this.message, invalidField.message); + return Objects.equals(this.name, invalidField.name) + && Objects.equals(this.value, invalidField.value) + && Objects.equals(this.message, invalidField.message); } @Override @@ -176,8 +166,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +175,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of InvalidField given an JSON string * * @param jsonString JSON string @@ -196,11 +185,12 @@ private String toIndentedString(Object o) { public static InvalidField fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, InvalidField.class); } -/** - * Convert an instance of InvalidField to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of InvalidField to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/JSON.java b/src/main/java/com/adyen/model/balanceplatform/JSON.java index e76bd8d16..ee05bfaec 100644 --- a/src/main/java/com/adyen/model/balanceplatform/JSON.java +++ b/src/main/java/com/adyen/model/balanceplatform/JSON.java @@ -1,21 +1,18 @@ package com.adyen.model.balanceplatform; -import com.adyen.serializer.ByteArraySerializer; import com.adyen.serializer.ByteArrayDeserializer; +import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import com.adyen.model.balanceplatform.*; - +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -40,6 +37,7 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. + * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -56,11 +54,13 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { return mapper; } + public static ObjectMapper getMapper() { + return mapper; + } /** - * Returns the target model class that should be used to deserialize the input data. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,9 +73,7 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** - * Helper class to register the discriminator mappings. - */ + /** Helper class to register the discriminator mappings. */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -117,9 +115,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. - * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. This + * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -164,13 +162,14 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, - * so it's not possible to use the instanceof keyword. + *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so + * it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf( + Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -194,59 +193,58 @@ public static boolean isInstanceOf(Class modelClass, Object inst, Set, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); + /** A map of discriminators for all model classes. */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = + new HashMap, ClassDiscriminatorMapping>(); - /** - * A map of oneOf/anyOf descendants for each model class. - */ + /** A map of oneOf/anyOf descendants for each model class. */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator( + Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = + new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants(Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants( + Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static - { + static { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/balanceplatform/Link.java b/src/main/java/com/adyen/model/balanceplatform/Link.java index 63a92b632..b8be30eab 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Link.java +++ b/src/main/java/com/adyen/model/balanceplatform/Link.java @@ -2,32 +2,22 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.Href; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Link - */ +/** Link */ @JsonPropertyOrder({ Link.JSON_PROPERTY_FIRST, Link.JSON_PROPERTY_LAST, @@ -35,7 +25,6 @@ Link.JSON_PROPERTY_PREVIOUS, Link.JSON_PROPERTY_SELF }) - public class Link { public static final String JSON_PROPERTY_FIRST = "first"; private Href first; @@ -52,13 +41,12 @@ public class Link { public static final String JSON_PROPERTY_SELF = "self"; private Href self; - public Link() { - } + public Link() {} /** * first * - * @param first + * @param first * @return the current {@code Link} instance, allowing for method chaining */ public Link first(Href first) { @@ -68,7 +56,8 @@ public Link first(Href first) { /** * Get first - * @return first + * + * @return first */ @JsonProperty(JSON_PROPERTY_FIRST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,7 +68,7 @@ public Href getFirst() { /** * first * - * @param first + * @param first */ @JsonProperty(JSON_PROPERTY_FIRST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -90,7 +79,7 @@ public void setFirst(Href first) { /** * last * - * @param last + * @param last * @return the current {@code Link} instance, allowing for method chaining */ public Link last(Href last) { @@ -100,7 +89,8 @@ public Link last(Href last) { /** * Get last - * @return last + * + * @return last */ @JsonProperty(JSON_PROPERTY_LAST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,7 +101,7 @@ public Href getLast() { /** * last * - * @param last + * @param last */ @JsonProperty(JSON_PROPERTY_LAST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -122,7 +112,7 @@ public void setLast(Href last) { /** * next * - * @param next + * @param next * @return the current {@code Link} instance, allowing for method chaining */ public Link next(Href next) { @@ -132,7 +122,8 @@ public Link next(Href next) { /** * Get next - * @return next + * + * @return next */ @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,7 +134,7 @@ public Href getNext() { /** * next * - * @param next + * @param next */ @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -154,7 +145,7 @@ public void setNext(Href next) { /** * previous * - * @param previous + * @param previous * @return the current {@code Link} instance, allowing for method chaining */ public Link previous(Href previous) { @@ -164,7 +155,8 @@ public Link previous(Href previous) { /** * Get previous - * @return previous + * + * @return previous */ @JsonProperty(JSON_PROPERTY_PREVIOUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -175,7 +167,7 @@ public Href getPrevious() { /** * previous * - * @param previous + * @param previous */ @JsonProperty(JSON_PROPERTY_PREVIOUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,7 +178,7 @@ public void setPrevious(Href previous) { /** * self * - * @param self + * @param self * @return the current {@code Link} instance, allowing for method chaining */ public Link self(Href self) { @@ -196,7 +188,8 @@ public Link self(Href self) { /** * Get self - * @return self + * + * @return self */ @JsonProperty(JSON_PROPERTY_SELF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -207,7 +200,7 @@ public Href getSelf() { /** * self * - * @param self + * @param self */ @JsonProperty(JSON_PROPERTY_SELF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -215,9 +208,7 @@ public void setSelf(Href self) { this.self = self; } - /** - * Return true if this Link object is equal to o. - */ + /** Return true if this Link object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -227,11 +218,11 @@ public boolean equals(Object o) { return false; } Link link = (Link) o; - return Objects.equals(this.first, link.first) && - Objects.equals(this.last, link.last) && - Objects.equals(this.next, link.next) && - Objects.equals(this.previous, link.previous) && - Objects.equals(this.self, link.self); + return Objects.equals(this.first, link.first) + && Objects.equals(this.last, link.last) + && Objects.equals(this.next, link.next) + && Objects.equals(this.previous, link.previous) + && Objects.equals(this.self, link.self); } @Override @@ -253,8 +244,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -263,7 +253,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Link given an JSON string * * @param jsonString JSON string @@ -273,11 +263,12 @@ private String toIndentedString(Object o) { public static Link fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Link.class); } -/** - * Convert an instance of Link to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Link to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/ListNetworkTokensResponse.java b/src/main/java/com/adyen/model/balanceplatform/ListNetworkTokensResponse.java index c3558506c..fb3fe0ebb 100644 --- a/src/main/java/com/adyen/model/balanceplatform/ListNetworkTokensResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/ListNetworkTokensResponse.java @@ -2,44 +2,30 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.NetworkToken; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * ListNetworkTokensResponse - */ -@JsonPropertyOrder({ - ListNetworkTokensResponse.JSON_PROPERTY_NETWORK_TOKENS -}) - +/** ListNetworkTokensResponse */ +@JsonPropertyOrder({ListNetworkTokensResponse.JSON_PROPERTY_NETWORK_TOKENS}) public class ListNetworkTokensResponse { public static final String JSON_PROPERTY_NETWORK_TOKENS = "networkTokens"; private List networkTokens; - public ListNetworkTokensResponse() { - } + public ListNetworkTokensResponse() {} /** * List of network tokens. @@ -62,6 +48,7 @@ public ListNetworkTokensResponse addNetworkTokensItem(NetworkToken networkTokens /** * List of network tokens. + * * @return networkTokens List of network tokens. */ @JsonProperty(JSON_PROPERTY_NETWORK_TOKENS) @@ -81,9 +68,7 @@ public void setNetworkTokens(List networkTokens) { this.networkTokens = networkTokens; } - /** - * Return true if this ListNetworkTokensResponse object is equal to o. - */ + /** Return true if this ListNetworkTokensResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -111,8 +96,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -121,21 +105,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ListNetworkTokensResponse given an JSON string * * @param jsonString JSON string * @return An instance of ListNetworkTokensResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to ListNetworkTokensResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ListNetworkTokensResponse */ - public static ListNetworkTokensResponse fromJson(String jsonString) throws JsonProcessingException { + public static ListNetworkTokensResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ListNetworkTokensResponse.class); } -/** - * Convert an instance of ListNetworkTokensResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ListNetworkTokensResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/MatchingTransactionsRestriction.java b/src/main/java/com/adyen/model/balanceplatform/MatchingTransactionsRestriction.java index 49cf44a40..afe47fe42 100644 --- a/src/main/java/com/adyen/model/balanceplatform/MatchingTransactionsRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/MatchingTransactionsRestriction.java @@ -2,36 +2,26 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * MatchingTransactionsRestriction - */ +/** MatchingTransactionsRestriction */ @JsonPropertyOrder({ MatchingTransactionsRestriction.JSON_PROPERTY_OPERATION, MatchingTransactionsRestriction.JSON_PROPERTY_VALUE }) - public class MatchingTransactionsRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -39,14 +29,14 @@ public class MatchingTransactionsRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private Integer value; - public MatchingTransactionsRestriction() { - } + public MatchingTransactionsRestriction() {} /** * Defines how the condition must be evaluated. * * @param operation Defines how the condition must be evaluated. - * @return the current {@code MatchingTransactionsRestriction} instance, allowing for method chaining + * @return the current {@code MatchingTransactionsRestriction} instance, allowing for method + * chaining */ public MatchingTransactionsRestriction operation(String operation) { this.operation = operation; @@ -55,6 +45,7 @@ public MatchingTransactionsRestriction operation(String operation) { /** * Defines how the condition must be evaluated. + * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -78,7 +69,8 @@ public void setOperation(String operation) { * The number of transactions. * * @param value The number of transactions. - * @return the current {@code MatchingTransactionsRestriction} instance, allowing for method chaining + * @return the current {@code MatchingTransactionsRestriction} instance, allowing for method + * chaining */ public MatchingTransactionsRestriction value(Integer value) { this.value = value; @@ -87,6 +79,7 @@ public MatchingTransactionsRestriction value(Integer value) { /** * The number of transactions. + * * @return value The number of transactions. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -106,9 +99,7 @@ public void setValue(Integer value) { this.value = value; } - /** - * Return true if this MatchingTransactionsRestriction object is equal to o. - */ + /** Return true if this MatchingTransactionsRestriction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -117,9 +108,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - MatchingTransactionsRestriction matchingTransactionsRestriction = (MatchingTransactionsRestriction) o; - return Objects.equals(this.operation, matchingTransactionsRestriction.operation) && - Objects.equals(this.value, matchingTransactionsRestriction.value); + MatchingTransactionsRestriction matchingTransactionsRestriction = + (MatchingTransactionsRestriction) o; + return Objects.equals(this.operation, matchingTransactionsRestriction.operation) + && Objects.equals(this.value, matchingTransactionsRestriction.value); } @Override @@ -138,8 +130,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +139,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of MatchingTransactionsRestriction given an JSON string * * @param jsonString JSON string * @return An instance of MatchingTransactionsRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to MatchingTransactionsRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to + * MatchingTransactionsRestriction */ - public static MatchingTransactionsRestriction fromJson(String jsonString) throws JsonProcessingException { + public static MatchingTransactionsRestriction fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MatchingTransactionsRestriction.class); } -/** - * Convert an instance of MatchingTransactionsRestriction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of MatchingTransactionsRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/MatchingValuesRestriction.java b/src/main/java/com/adyen/model/balanceplatform/MatchingValuesRestriction.java index b1d6dba6e..fead0fb06 100644 --- a/src/main/java/com/adyen/model/balanceplatform/MatchingValuesRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/MatchingValuesRestriction.java @@ -2,47 +2,38 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * MatchingValuesRestriction - */ +/** MatchingValuesRestriction */ @JsonPropertyOrder({ MatchingValuesRestriction.JSON_PROPERTY_OPERATION, MatchingValuesRestriction.JSON_PROPERTY_VALUE }) - public class MatchingValuesRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; - /** - * Gets or Sets value - */ + /** Gets or Sets value */ public enum ValueEnum { - ACQUIRERID(String.valueOf("acquirerId")), AMOUNT(String.valueOf("amount")), @@ -58,7 +49,7 @@ public enum ValueEnum { private String value; ValueEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -79,7 +70,11 @@ public static ValueEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ValueEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ValueEnum.values())); + LOG.warning( + "ValueEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ValueEnum.values())); return null; } } @@ -87,8 +82,7 @@ public static ValueEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUE = "value"; private List value; - public MatchingValuesRestriction() { - } + public MatchingValuesRestriction() {} /** * Defines how the condition must be evaluated. @@ -103,6 +97,7 @@ public MatchingValuesRestriction operation(String operation) { /** * Defines how the condition must be evaluated. + * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -125,7 +120,7 @@ public void setOperation(String operation) { /** * value * - * @param value + * @param value * @return the current {@code MatchingValuesRestriction} instance, allowing for method chaining */ public MatchingValuesRestriction value(List value) { @@ -143,7 +138,8 @@ public MatchingValuesRestriction addValueItem(ValueEnum valueItem) { /** * Get value - * @return value + * + * @return value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -154,7 +150,7 @@ public List getValue() { /** * value * - * @param value + * @param value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -162,9 +158,7 @@ public void setValue(List value) { this.value = value; } - /** - * Return true if this MatchingValuesRestriction object is equal to o. - */ + /** Return true if this MatchingValuesRestriction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -174,8 +168,8 @@ public boolean equals(Object o) { return false; } MatchingValuesRestriction matchingValuesRestriction = (MatchingValuesRestriction) o; - return Objects.equals(this.operation, matchingValuesRestriction.operation) && - Objects.equals(this.value, matchingValuesRestriction.value); + return Objects.equals(this.operation, matchingValuesRestriction.operation) + && Objects.equals(this.value, matchingValuesRestriction.value); } @Override @@ -194,8 +188,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -204,21 +197,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of MatchingValuesRestriction given an JSON string * * @param jsonString JSON string * @return An instance of MatchingValuesRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to MatchingValuesRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to + * MatchingValuesRestriction */ - public static MatchingValuesRestriction fromJson(String jsonString) throws JsonProcessingException { + public static MatchingValuesRestriction fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MatchingValuesRestriction.class); } -/** - * Convert an instance of MatchingValuesRestriction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of MatchingValuesRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/MccsRestriction.java b/src/main/java/com/adyen/model/balanceplatform/MccsRestriction.java index 3da4cfb42..ad2ef17c7 100644 --- a/src/main/java/com/adyen/model/balanceplatform/MccsRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/MccsRestriction.java @@ -2,38 +2,25 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * MccsRestriction - */ -@JsonPropertyOrder({ - MccsRestriction.JSON_PROPERTY_OPERATION, - MccsRestriction.JSON_PROPERTY_VALUE -}) - +/** MccsRestriction */ +@JsonPropertyOrder({MccsRestriction.JSON_PROPERTY_OPERATION, MccsRestriction.JSON_PROPERTY_VALUE}) public class MccsRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -41,8 +28,7 @@ public class MccsRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private List value; - public MccsRestriction() { - } + public MccsRestriction() {} /** * Defines how the condition must be evaluated. @@ -57,6 +43,7 @@ public MccsRestriction operation(String operation) { /** * Defines how the condition must be evaluated. + * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -97,6 +84,7 @@ public MccsRestriction addValueItem(String valueItem) { /** * List of merchant category codes (MCCs). + * * @return value List of merchant category codes (MCCs). */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -116,9 +104,7 @@ public void setValue(List value) { this.value = value; } - /** - * Return true if this MccsRestriction object is equal to o. - */ + /** Return true if this MccsRestriction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -128,8 +114,8 @@ public boolean equals(Object o) { return false; } MccsRestriction mccsRestriction = (MccsRestriction) o; - return Objects.equals(this.operation, mccsRestriction.operation) && - Objects.equals(this.value, mccsRestriction.value); + return Objects.equals(this.operation, mccsRestriction.operation) + && Objects.equals(this.value, mccsRestriction.value); } @Override @@ -148,8 +134,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -158,7 +143,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of MccsRestriction given an JSON string * * @param jsonString JSON string @@ -168,11 +153,12 @@ private String toIndentedString(Object o) { public static MccsRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MccsRestriction.class); } -/** - * Convert an instance of MccsRestriction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of MccsRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/MerchantAcquirerPair.java b/src/main/java/com/adyen/model/balanceplatform/MerchantAcquirerPair.java index 376053541..96533ff3e 100644 --- a/src/main/java/com/adyen/model/balanceplatform/MerchantAcquirerPair.java +++ b/src/main/java/com/adyen/model/balanceplatform/MerchantAcquirerPair.java @@ -2,36 +2,26 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * MerchantAcquirerPair - */ +/** MerchantAcquirerPair */ @JsonPropertyOrder({ MerchantAcquirerPair.JSON_PROPERTY_ACQUIRER_ID, MerchantAcquirerPair.JSON_PROPERTY_MERCHANT_ID }) - public class MerchantAcquirerPair { public static final String JSON_PROPERTY_ACQUIRER_ID = "acquirerId"; private String acquirerId; @@ -39,8 +29,7 @@ public class MerchantAcquirerPair { public static final String JSON_PROPERTY_MERCHANT_ID = "merchantId"; private String merchantId; - public MerchantAcquirerPair() { - } + public MerchantAcquirerPair() {} /** * The acquirer ID. @@ -55,6 +44,7 @@ public MerchantAcquirerPair acquirerId(String acquirerId) { /** * The acquirer ID. + * * @return acquirerId The acquirer ID. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_ID) @@ -87,6 +77,7 @@ public MerchantAcquirerPair merchantId(String merchantId) { /** * The merchant identification number (MID). + * * @return merchantId The merchant identification number (MID). */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @@ -106,9 +97,7 @@ public void setMerchantId(String merchantId) { this.merchantId = merchantId; } - /** - * Return true if this MerchantAcquirerPair object is equal to o. - */ + /** Return true if this MerchantAcquirerPair object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +107,8 @@ public boolean equals(Object o) { return false; } MerchantAcquirerPair merchantAcquirerPair = (MerchantAcquirerPair) o; - return Objects.equals(this.acquirerId, merchantAcquirerPair.acquirerId) && - Objects.equals(this.merchantId, merchantAcquirerPair.merchantId); + return Objects.equals(this.acquirerId, merchantAcquirerPair.acquirerId) + && Objects.equals(this.merchantId, merchantAcquirerPair.merchantId); } @Override @@ -138,8 +127,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +136,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of MerchantAcquirerPair given an JSON string * * @param jsonString JSON string * @return An instance of MerchantAcquirerPair - * @throws JsonProcessingException if the JSON string is invalid with respect to MerchantAcquirerPair + * @throws JsonProcessingException if the JSON string is invalid with respect to + * MerchantAcquirerPair */ public static MerchantAcquirerPair fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MerchantAcquirerPair.class); } -/** - * Convert an instance of MerchantAcquirerPair to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of MerchantAcquirerPair to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/MerchantNamesRestriction.java b/src/main/java/com/adyen/model/balanceplatform/MerchantNamesRestriction.java index 74b9c829c..c9224bdac 100644 --- a/src/main/java/com/adyen/model/balanceplatform/MerchantNamesRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/MerchantNamesRestriction.java @@ -2,39 +2,28 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.StringMatch; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * MerchantNamesRestriction - */ +/** MerchantNamesRestriction */ @JsonPropertyOrder({ MerchantNamesRestriction.JSON_PROPERTY_OPERATION, MerchantNamesRestriction.JSON_PROPERTY_VALUE }) - public class MerchantNamesRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -42,8 +31,7 @@ public class MerchantNamesRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private List value; - public MerchantNamesRestriction() { - } + public MerchantNamesRestriction() {} /** * Defines how the condition must be evaluated. @@ -58,6 +46,7 @@ public MerchantNamesRestriction operation(String operation) { /** * Defines how the condition must be evaluated. + * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -80,7 +69,7 @@ public void setOperation(String operation) { /** * value * - * @param value + * @param value * @return the current {@code MerchantNamesRestriction} instance, allowing for method chaining */ public MerchantNamesRestriction value(List value) { @@ -98,7 +87,8 @@ public MerchantNamesRestriction addValueItem(StringMatch valueItem) { /** * Get value - * @return value + * + * @return value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -109,7 +99,7 @@ public List getValue() { /** * value * - * @param value + * @param value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,9 +107,7 @@ public void setValue(List value) { this.value = value; } - /** - * Return true if this MerchantNamesRestriction object is equal to o. - */ + /** Return true if this MerchantNamesRestriction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -129,8 +117,8 @@ public boolean equals(Object o) { return false; } MerchantNamesRestriction merchantNamesRestriction = (MerchantNamesRestriction) o; - return Objects.equals(this.operation, merchantNamesRestriction.operation) && - Objects.equals(this.value, merchantNamesRestriction.value); + return Objects.equals(this.operation, merchantNamesRestriction.operation) + && Objects.equals(this.value, merchantNamesRestriction.value); } @Override @@ -149,8 +137,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -159,21 +146,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of MerchantNamesRestriction given an JSON string * * @param jsonString JSON string * @return An instance of MerchantNamesRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to MerchantNamesRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to + * MerchantNamesRestriction */ - public static MerchantNamesRestriction fromJson(String jsonString) throws JsonProcessingException { + public static MerchantNamesRestriction fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MerchantNamesRestriction.class); } -/** - * Convert an instance of MerchantNamesRestriction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of MerchantNamesRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/MerchantsRestriction.java b/src/main/java/com/adyen/model/balanceplatform/MerchantsRestriction.java index b60e89675..b65cbd58d 100644 --- a/src/main/java/com/adyen/model/balanceplatform/MerchantsRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/MerchantsRestriction.java @@ -2,39 +2,28 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.MerchantAcquirerPair; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * MerchantsRestriction - */ +/** MerchantsRestriction */ @JsonPropertyOrder({ MerchantsRestriction.JSON_PROPERTY_OPERATION, MerchantsRestriction.JSON_PROPERTY_VALUE }) - public class MerchantsRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -42,8 +31,7 @@ public class MerchantsRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private List value; - public MerchantsRestriction() { - } + public MerchantsRestriction() {} /** * Defines how the condition must be evaluated. @@ -58,6 +46,7 @@ public MerchantsRestriction operation(String operation) { /** * Defines how the condition must be evaluated. + * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -98,6 +87,7 @@ public MerchantsRestriction addValueItem(MerchantAcquirerPair valueItem) { /** * List of merchant ID and acquirer ID pairs. + * * @return value List of merchant ID and acquirer ID pairs. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -117,9 +107,7 @@ public void setValue(List value) { this.value = value; } - /** - * Return true if this MerchantsRestriction object is equal to o. - */ + /** Return true if this MerchantsRestriction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -129,8 +117,8 @@ public boolean equals(Object o) { return false; } MerchantsRestriction merchantsRestriction = (MerchantsRestriction) o; - return Objects.equals(this.operation, merchantsRestriction.operation) && - Objects.equals(this.value, merchantsRestriction.value); + return Objects.equals(this.operation, merchantsRestriction.operation) + && Objects.equals(this.value, merchantsRestriction.value); } @Override @@ -149,8 +137,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -159,21 +146,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of MerchantsRestriction given an JSON string * * @param jsonString JSON string * @return An instance of MerchantsRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to MerchantsRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to + * MerchantsRestriction */ public static MerchantsRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MerchantsRestriction.class); } -/** - * Convert an instance of MerchantsRestriction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of MerchantsRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/NOLocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/NOLocalAccountIdentification.java index e01dbd9a2..764bfed0a 100644 --- a/src/main/java/com/adyen/model/balanceplatform/NOLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/NOLocalAccountIdentification.java @@ -2,45 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * NOLocalAccountIdentification - */ +/** NOLocalAccountIdentification */ @JsonPropertyOrder({ NOLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, NOLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class NOLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - /** - * **noLocal** - */ + /** **noLocal** */ public enum TypeEnum { - NOLOCAL(String.valueOf("noLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +39,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,8 +72,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public NOLocalAccountIdentification() { - } + public NOLocalAccountIdentification() {} /** * The 11-digit bank account number, without separators or whitespace. @@ -93,6 +87,7 @@ public NOLocalAccountIdentification accountNumber(String accountNumber) { /** * The 11-digit bank account number, without separators or whitespace. + * * @return accountNumber The 11-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -125,6 +120,7 @@ public NOLocalAccountIdentification type(TypeEnum type) { /** * **noLocal** + * * @return type **noLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -144,9 +140,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this NOLocalAccountIdentification object is equal to o. - */ + /** Return true if this NOLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +150,8 @@ public boolean equals(Object o) { return false; } NOLocalAccountIdentification noLocalAccountIdentification = (NOLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, noLocalAccountIdentification.accountNumber) && - Objects.equals(this.type, noLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, noLocalAccountIdentification.accountNumber) + && Objects.equals(this.type, noLocalAccountIdentification.type); } @Override @@ -176,8 +170,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +179,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of NOLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of NOLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to NOLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * NOLocalAccountIdentification */ - public static NOLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static NOLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NOLocalAccountIdentification.class); } -/** - * Convert an instance of NOLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of NOLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/NZLocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/NZLocalAccountIdentification.java index 2f3864296..83606b6c9 100644 --- a/src/main/java/com/adyen/model/balanceplatform/NZLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/NZLocalAccountIdentification.java @@ -2,45 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * NZLocalAccountIdentification - */ +/** NZLocalAccountIdentification */ @JsonPropertyOrder({ NZLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, NZLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class NZLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - /** - * **nzLocal** - */ + /** **nzLocal** */ public enum TypeEnum { - NZLOCAL(String.valueOf("nzLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +39,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,13 +72,16 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public NZLocalAccountIdentification() { - } + public NZLocalAccountIdentification() {} /** - * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. + * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits + * are the branch number, the next 7 digits are the account number, and the final 2-3 digits are + * the suffix. * - * @param accountNumber The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. + * @param accountNumber The 15-16 digit bank account number. The first 2 digits are the bank + * number, the next 4 digits are the branch number, the next 7 digits are the account number, + * and the final 2-3 digits are the suffix. * @return the current {@code NZLocalAccountIdentification} instance, allowing for method chaining */ public NZLocalAccountIdentification accountNumber(String accountNumber) { @@ -92,8 +90,13 @@ public NZLocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. - * @return accountNumber The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. + * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits + * are the branch number, the next 7 digits are the account number, and the final 2-3 digits are + * the suffix. + * + * @return accountNumber The 15-16 digit bank account number. The first 2 digits are the bank + * number, the next 4 digits are the branch number, the next 7 digits are the account number, + * and the final 2-3 digits are the suffix. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,9 +105,13 @@ public String getAccountNumber() { } /** - * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. + * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits + * are the branch number, the next 7 digits are the account number, and the final 2-3 digits are + * the suffix. * - * @param accountNumber The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. + * @param accountNumber The 15-16 digit bank account number. The first 2 digits are the bank + * number, the next 4 digits are the branch number, the next 7 digits are the account number, + * and the final 2-3 digits are the suffix. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,6 +132,7 @@ public NZLocalAccountIdentification type(TypeEnum type) { /** * **nzLocal** + * * @return type **nzLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -144,9 +152,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this NZLocalAccountIdentification object is equal to o. - */ + /** Return true if this NZLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +162,8 @@ public boolean equals(Object o) { return false; } NZLocalAccountIdentification nzLocalAccountIdentification = (NZLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, nzLocalAccountIdentification.accountNumber) && - Objects.equals(this.type, nzLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, nzLocalAccountIdentification.accountNumber) + && Objects.equals(this.type, nzLocalAccountIdentification.type); } @Override @@ -176,8 +182,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +191,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of NZLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of NZLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to NZLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * NZLocalAccountIdentification */ - public static NZLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static NZLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NZLocalAccountIdentification.class); } -/** - * Convert an instance of NZLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of NZLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/Name.java b/src/main/java/com/adyen/model/balanceplatform/Name.java index ff11847f4..66e9d37aa 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Name.java +++ b/src/main/java/com/adyen/model/balanceplatform/Name.java @@ -2,36 +2,23 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Name - */ -@JsonPropertyOrder({ - Name.JSON_PROPERTY_FIRST_NAME, - Name.JSON_PROPERTY_LAST_NAME -}) - +/** Name */ +@JsonPropertyOrder({Name.JSON_PROPERTY_FIRST_NAME, Name.JSON_PROPERTY_LAST_NAME}) public class Name { public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; private String firstName; @@ -39,8 +26,7 @@ public class Name { public static final String JSON_PROPERTY_LAST_NAME = "lastName"; private String lastName; - public Name() { - } + public Name() {} /** * The first name. @@ -55,6 +41,7 @@ public Name firstName(String firstName) { /** * The first name. + * * @return firstName The first name. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @@ -87,6 +74,7 @@ public Name lastName(String lastName) { /** * The last name. + * * @return lastName The last name. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @@ -106,9 +94,7 @@ public void setLastName(String lastName) { this.lastName = lastName; } - /** - * Return true if this Name object is equal to o. - */ + /** Return true if this Name object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +104,8 @@ public boolean equals(Object o) { return false; } Name name = (Name) o; - return Objects.equals(this.firstName, name.firstName) && - Objects.equals(this.lastName, name.lastName); + return Objects.equals(this.firstName, name.firstName) + && Objects.equals(this.lastName, name.lastName); } @Override @@ -138,8 +124,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +133,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Name given an JSON string * * @param jsonString JSON string @@ -158,11 +143,12 @@ private String toIndentedString(Object o) { public static Name fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Name.class); } -/** - * Convert an instance of Name to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Name to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/NetworkToken.java b/src/main/java/com/adyen/model/balanceplatform/NetworkToken.java index b56da6f79..10a5f39d0 100644 --- a/src/main/java/com/adyen/model/balanceplatform/NetworkToken.java +++ b/src/main/java/com/adyen/model/balanceplatform/NetworkToken.java @@ -2,34 +2,27 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.DeviceInfo; -import com.adyen.model.balanceplatform.NetworkTokenRequestor; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * NetworkToken - */ +/** NetworkToken */ @JsonPropertyOrder({ NetworkToken.JSON_PROPERTY_BRAND_VARIANT, NetworkToken.JSON_PROPERTY_CREATION_DATE, @@ -41,7 +34,6 @@ NetworkToken.JSON_PROPERTY_TOKEN_REQUESTOR, NetworkToken.JSON_PROPERTY_TYPE }) - public class NetworkToken { public static final String JSON_PROPERTY_BRAND_VARIANT = "brandVariant"; private String brandVariant; @@ -59,10 +51,10 @@ public class NetworkToken { private String paymentInstrumentId; /** - * The status of the network token. Possible values: **active**, **inactive**, **suspended**, **closed**. + * The status of the network token. Possible values: **active**, **inactive**, **suspended**, + * **closed**. */ public enum StatusEnum { - ACTIVE(String.valueOf("active")), INACTIVE(String.valueOf("inactive")), @@ -76,7 +68,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -97,7 +89,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -114,13 +110,14 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public NetworkToken() { - } + public NetworkToken() {} /** - * The card brand variant of the payment instrument associated with the network token. For example, **mc_prepaid_mrw**. + * The card brand variant of the payment instrument associated with the network token. For + * example, **mc_prepaid_mrw**. * - * @param brandVariant The card brand variant of the payment instrument associated with the network token. For example, **mc_prepaid_mrw**. + * @param brandVariant The card brand variant of the payment instrument associated with the + * network token. For example, **mc_prepaid_mrw**. * @return the current {@code NetworkToken} instance, allowing for method chaining */ public NetworkToken brandVariant(String brandVariant) { @@ -129,8 +126,11 @@ public NetworkToken brandVariant(String brandVariant) { } /** - * The card brand variant of the payment instrument associated with the network token. For example, **mc_prepaid_mrw**. - * @return brandVariant The card brand variant of the payment instrument associated with the network token. For example, **mc_prepaid_mrw**. + * The card brand variant of the payment instrument associated with the network token. For + * example, **mc_prepaid_mrw**. + * + * @return brandVariant The card brand variant of the payment instrument associated with the + * network token. For example, **mc_prepaid_mrw**. */ @JsonProperty(JSON_PROPERTY_BRAND_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,9 +139,11 @@ public String getBrandVariant() { } /** - * The card brand variant of the payment instrument associated with the network token. For example, **mc_prepaid_mrw**. + * The card brand variant of the payment instrument associated with the network token. For + * example, **mc_prepaid_mrw**. * - * @param brandVariant The card brand variant of the payment instrument associated with the network token. For example, **mc_prepaid_mrw**. + * @param brandVariant The card brand variant of the payment instrument associated with the + * network token. For example, **mc_prepaid_mrw**. */ @JsonProperty(JSON_PROPERTY_BRAND_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,9 +152,13 @@ public void setBrandVariant(String brandVariant) { } /** - * Date and time when the network token was created, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, **2025-03-19T10:15:30+01:00**.. + * Date and time when the network token was created, in [ISO + * 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, + * **2025-03-19T10:15:30+01:00**.. * - * @param creationDate Date and time when the network token was created, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, **2025-03-19T10:15:30+01:00**.. + * @param creationDate Date and time when the network token was created, in [ISO + * 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, + * **2025-03-19T10:15:30+01:00**.. * @return the current {@code NetworkToken} instance, allowing for method chaining */ public NetworkToken creationDate(OffsetDateTime creationDate) { @@ -161,8 +167,13 @@ public NetworkToken creationDate(OffsetDateTime creationDate) { } /** - * Date and time when the network token was created, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, **2025-03-19T10:15:30+01:00**.. - * @return creationDate Date and time when the network token was created, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, **2025-03-19T10:15:30+01:00**.. + * Date and time when the network token was created, in [ISO + * 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, + * **2025-03-19T10:15:30+01:00**.. + * + * @return creationDate Date and time when the network token was created, in [ISO + * 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, + * **2025-03-19T10:15:30+01:00**.. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -171,9 +182,13 @@ public OffsetDateTime getCreationDate() { } /** - * Date and time when the network token was created, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, **2025-03-19T10:15:30+01:00**.. + * Date and time when the network token was created, in [ISO + * 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, + * **2025-03-19T10:15:30+01:00**.. * - * @param creationDate Date and time when the network token was created, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, **2025-03-19T10:15:30+01:00**.. + * @param creationDate Date and time when the network token was created, in [ISO + * 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, + * **2025-03-19T10:15:30+01:00**.. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -184,7 +199,7 @@ public void setCreationDate(OffsetDateTime creationDate) { /** * device * - * @param device + * @param device * @return the current {@code NetworkToken} instance, allowing for method chaining */ public NetworkToken device(DeviceInfo device) { @@ -194,7 +209,8 @@ public NetworkToken device(DeviceInfo device) { /** * Get device - * @return device + * + * @return device */ @JsonProperty(JSON_PROPERTY_DEVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -205,7 +221,7 @@ public DeviceInfo getDevice() { /** * device * - * @param device + * @param device */ @JsonProperty(JSON_PROPERTY_DEVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -226,6 +242,7 @@ public NetworkToken id(String id) { /** * The unique identifier of the network token. + * * @return id The unique identifier of the network token. */ @JsonProperty(JSON_PROPERTY_ID) @@ -248,7 +265,8 @@ public void setId(String id) { /** * The unique identifier of the payment instrument to which this network token belongs to. * - * @param paymentInstrumentId The unique identifier of the payment instrument to which this network token belongs to. + * @param paymentInstrumentId The unique identifier of the payment instrument to which this + * network token belongs to. * @return the current {@code NetworkToken} instance, allowing for method chaining */ public NetworkToken paymentInstrumentId(String paymentInstrumentId) { @@ -258,7 +276,9 @@ public NetworkToken paymentInstrumentId(String paymentInstrumentId) { /** * The unique identifier of the payment instrument to which this network token belongs to. - * @return paymentInstrumentId The unique identifier of the payment instrument to which this network token belongs to. + * + * @return paymentInstrumentId The unique identifier of the payment instrument to which this + * network token belongs to. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -269,7 +289,8 @@ public String getPaymentInstrumentId() { /** * The unique identifier of the payment instrument to which this network token belongs to. * - * @param paymentInstrumentId The unique identifier of the payment instrument to which this network token belongs to. + * @param paymentInstrumentId The unique identifier of the payment instrument to which this + * network token belongs to. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -278,9 +299,11 @@ public void setPaymentInstrumentId(String paymentInstrumentId) { } /** - * The status of the network token. Possible values: **active**, **inactive**, **suspended**, **closed**. + * The status of the network token. Possible values: **active**, **inactive**, **suspended**, + * **closed**. * - * @param status The status of the network token. Possible values: **active**, **inactive**, **suspended**, **closed**. + * @param status The status of the network token. Possible values: **active**, **inactive**, + * **suspended**, **closed**. * @return the current {@code NetworkToken} instance, allowing for method chaining */ public NetworkToken status(StatusEnum status) { @@ -289,8 +312,11 @@ public NetworkToken status(StatusEnum status) { } /** - * The status of the network token. Possible values: **active**, **inactive**, **suspended**, **closed**. - * @return status The status of the network token. Possible values: **active**, **inactive**, **suspended**, **closed**. + * The status of the network token. Possible values: **active**, **inactive**, **suspended**, + * **closed**. + * + * @return status The status of the network token. Possible values: **active**, **inactive**, + * **suspended**, **closed**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -299,9 +325,11 @@ public StatusEnum getStatus() { } /** - * The status of the network token. Possible values: **active**, **inactive**, **suspended**, **closed**. + * The status of the network token. Possible values: **active**, **inactive**, **suspended**, + * **closed**. * - * @param status The status of the network token. Possible values: **active**, **inactive**, **suspended**, **closed**. + * @param status The status of the network token. Possible values: **active**, **inactive**, + * **suspended**, **closed**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -322,6 +350,7 @@ public NetworkToken tokenLastFour(String tokenLastFour) { /** * The last four digits of the network token `id`. + * * @return tokenLastFour The last four digits of the network token `id`. */ @JsonProperty(JSON_PROPERTY_TOKEN_LAST_FOUR) @@ -344,7 +373,7 @@ public void setTokenLastFour(String tokenLastFour) { /** * tokenRequestor * - * @param tokenRequestor + * @param tokenRequestor * @return the current {@code NetworkToken} instance, allowing for method chaining */ public NetworkToken tokenRequestor(NetworkTokenRequestor tokenRequestor) { @@ -354,7 +383,8 @@ public NetworkToken tokenRequestor(NetworkTokenRequestor tokenRequestor) { /** * Get tokenRequestor - * @return tokenRequestor + * + * @return tokenRequestor */ @JsonProperty(JSON_PROPERTY_TOKEN_REQUESTOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -365,7 +395,7 @@ public NetworkTokenRequestor getTokenRequestor() { /** * tokenRequestor * - * @param tokenRequestor + * @param tokenRequestor */ @JsonProperty(JSON_PROPERTY_TOKEN_REQUESTOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -386,6 +416,7 @@ public NetworkToken type(String type) { /** * The type of network token. For example, **wallet**, **cof**. + * * @return type The type of network token. For example, **wallet**, **cof**. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -405,9 +436,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this NetworkToken object is equal to o. - */ + /** Return true if this NetworkToken object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -417,20 +446,29 @@ public boolean equals(Object o) { return false; } NetworkToken networkToken = (NetworkToken) o; - return Objects.equals(this.brandVariant, networkToken.brandVariant) && - Objects.equals(this.creationDate, networkToken.creationDate) && - Objects.equals(this.device, networkToken.device) && - Objects.equals(this.id, networkToken.id) && - Objects.equals(this.paymentInstrumentId, networkToken.paymentInstrumentId) && - Objects.equals(this.status, networkToken.status) && - Objects.equals(this.tokenLastFour, networkToken.tokenLastFour) && - Objects.equals(this.tokenRequestor, networkToken.tokenRequestor) && - Objects.equals(this.type, networkToken.type); + return Objects.equals(this.brandVariant, networkToken.brandVariant) + && Objects.equals(this.creationDate, networkToken.creationDate) + && Objects.equals(this.device, networkToken.device) + && Objects.equals(this.id, networkToken.id) + && Objects.equals(this.paymentInstrumentId, networkToken.paymentInstrumentId) + && Objects.equals(this.status, networkToken.status) + && Objects.equals(this.tokenLastFour, networkToken.tokenLastFour) + && Objects.equals(this.tokenRequestor, networkToken.tokenRequestor) + && Objects.equals(this.type, networkToken.type); } @Override public int hashCode() { - return Objects.hash(brandVariant, creationDate, device, id, paymentInstrumentId, status, tokenLastFour, tokenRequestor, type); + return Objects.hash( + brandVariant, + creationDate, + device, + id, + paymentInstrumentId, + status, + tokenLastFour, + tokenRequestor, + type); } @Override @@ -441,7 +479,9 @@ public String toString() { sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n"); sb.append(" device: ").append(toIndentedString(device)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" paymentInstrumentId: ").append(toIndentedString(paymentInstrumentId)).append("\n"); + sb.append(" paymentInstrumentId: ") + .append(toIndentedString(paymentInstrumentId)) + .append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" tokenLastFour: ").append(toIndentedString(tokenLastFour)).append("\n"); sb.append(" tokenRequestor: ").append(toIndentedString(tokenRequestor)).append("\n"); @@ -451,8 +491,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -461,7 +500,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of NetworkToken given an JSON string * * @param jsonString JSON string @@ -471,11 +510,12 @@ private String toIndentedString(Object o) { public static NetworkToken fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NetworkToken.class); } -/** - * Convert an instance of NetworkToken to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of NetworkToken to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/NetworkTokenActivationDataRequest.java b/src/main/java/com/adyen/model/balanceplatform/NetworkTokenActivationDataRequest.java index fb8a8e8f9..33a0c67e4 100644 --- a/src/main/java/com/adyen/model/balanceplatform/NetworkTokenActivationDataRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/NetworkTokenActivationDataRequest.java @@ -2,47 +2,44 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * NetworkTokenActivationDataRequest - */ -@JsonPropertyOrder({ - NetworkTokenActivationDataRequest.JSON_PROPERTY_SDK_OUTPUT -}) - +/** NetworkTokenActivationDataRequest */ +@JsonPropertyOrder({NetworkTokenActivationDataRequest.JSON_PROPERTY_SDK_OUTPUT}) public class NetworkTokenActivationDataRequest { public static final String JSON_PROPERTY_SDK_OUTPUT = "sdkOutput"; private String sdkOutput; - public NetworkTokenActivationDataRequest() { - } + public NetworkTokenActivationDataRequest() {} /** - * A block of data automatically generated by Adyen's SDK for network token provisioning. This `sdkOutput` is required to create provisioning data for the network token. For more information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) + * A block of data automatically generated by Adyen's SDK for network token provisioning. This + * `sdkOutput` is required to create provisioning data for the network token. For more + * information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen + * Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * + * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) * - * @param sdkOutput A block of data automatically generated by Adyen's SDK for network token provisioning. This `sdkOutput` is required to create provisioning data for the network token. For more information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) - * @return the current {@code NetworkTokenActivationDataRequest} instance, allowing for method chaining + * @param sdkOutput A block of data automatically generated by Adyen's SDK for network token + * provisioning. This `sdkOutput` is required to create provisioning data for the + * network token. For more information, see the repositories for Adyen's SDKs for network + * token provisioning: * [Adyen Apple Pay Provisioning + * SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet + * Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) + * @return the current {@code NetworkTokenActivationDataRequest} instance, allowing for method + * chaining */ public NetworkTokenActivationDataRequest sdkOutput(String sdkOutput) { this.sdkOutput = sdkOutput; @@ -50,8 +47,18 @@ public NetworkTokenActivationDataRequest sdkOutput(String sdkOutput) { } /** - * A block of data automatically generated by Adyen's SDK for network token provisioning. This `sdkOutput` is required to create provisioning data for the network token. For more information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) - * @return sdkOutput A block of data automatically generated by Adyen's SDK for network token provisioning. This `sdkOutput` is required to create provisioning data for the network token. For more information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) + * A block of data automatically generated by Adyen's SDK for network token provisioning. This + * `sdkOutput` is required to create provisioning data for the network token. For more + * information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen + * Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * + * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) + * + * @return sdkOutput A block of data automatically generated by Adyen's SDK for network token + * provisioning. This `sdkOutput` is required to create provisioning data for the + * network token. For more information, see the repositories for Adyen's SDKs for network + * token provisioning: * [Adyen Apple Pay Provisioning + * SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet + * Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) */ @JsonProperty(JSON_PROPERTY_SDK_OUTPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,9 +67,18 @@ public String getSdkOutput() { } /** - * A block of data automatically generated by Adyen's SDK for network token provisioning. This `sdkOutput` is required to create provisioning data for the network token. For more information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) + * A block of data automatically generated by Adyen's SDK for network token provisioning. This + * `sdkOutput` is required to create provisioning data for the network token. For more + * information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen + * Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * + * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) * - * @param sdkOutput A block of data automatically generated by Adyen's SDK for network token provisioning. This `sdkOutput` is required to create provisioning data for the network token. For more information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) + * @param sdkOutput A block of data automatically generated by Adyen's SDK for network token + * provisioning. This `sdkOutput` is required to create provisioning data for the + * network token. For more information, see the repositories for Adyen's SDKs for network + * token provisioning: * [Adyen Apple Pay Provisioning + * SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet + * Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) */ @JsonProperty(JSON_PROPERTY_SDK_OUTPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +86,7 @@ public void setSdkOutput(String sdkOutput) { this.sdkOutput = sdkOutput; } - /** - * Return true if this NetworkTokenActivationDataRequest object is equal to o. - */ + /** Return true if this NetworkTokenActivationDataRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -81,7 +95,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - NetworkTokenActivationDataRequest networkTokenActivationDataRequest = (NetworkTokenActivationDataRequest) o; + NetworkTokenActivationDataRequest networkTokenActivationDataRequest = + (NetworkTokenActivationDataRequest) o; return Objects.equals(this.sdkOutput, networkTokenActivationDataRequest.sdkOutput); } @@ -100,8 +115,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +124,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of NetworkTokenActivationDataRequest given an JSON string * * @param jsonString JSON string * @return An instance of NetworkTokenActivationDataRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to NetworkTokenActivationDataRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * NetworkTokenActivationDataRequest */ - public static NetworkTokenActivationDataRequest fromJson(String jsonString) throws JsonProcessingException { + public static NetworkTokenActivationDataRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NetworkTokenActivationDataRequest.class); } -/** - * Convert an instance of NetworkTokenActivationDataRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of NetworkTokenActivationDataRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/NetworkTokenActivationDataResponse.java b/src/main/java/com/adyen/model/balanceplatform/NetworkTokenActivationDataResponse.java index fc21f39e3..27bd58cba 100644 --- a/src/main/java/com/adyen/model/balanceplatform/NetworkTokenActivationDataResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/NetworkTokenActivationDataResponse.java @@ -2,47 +2,45 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * NetworkTokenActivationDataResponse - */ -@JsonPropertyOrder({ - NetworkTokenActivationDataResponse.JSON_PROPERTY_SDK_INPUT -}) - +/** NetworkTokenActivationDataResponse */ +@JsonPropertyOrder({NetworkTokenActivationDataResponse.JSON_PROPERTY_SDK_INPUT}) public class NetworkTokenActivationDataResponse { public static final String JSON_PROPERTY_SDK_INPUT = "sdkInput"; private String sdkInput; - public NetworkTokenActivationDataResponse() { - } + public NetworkTokenActivationDataResponse() {} /** - * A block of data that contains the activation data for a network token. This `sdkInput` is required to initialize Adyen's SDK for network token provisioning. For more information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) + * A block of data that contains the activation data for a network token. This + * `sdkInput` is required to initialize Adyen's SDK for network token provisioning. + * For more information, see the repositories for Adyen's SDKs for network token provisioning: + * * [Adyen Apple Pay Provisioning + * SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet + * Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) * - * @param sdkInput A block of data that contains the activation data for a network token. This `sdkInput` is required to initialize Adyen's SDK for network token provisioning. For more information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) - * @return the current {@code NetworkTokenActivationDataResponse} instance, allowing for method chaining + * @param sdkInput A block of data that contains the activation data for a network token. This + * `sdkInput` is required to initialize Adyen's SDK for network token + * provisioning. For more information, see the repositories for Adyen's SDKs for network + * token provisioning: * [Adyen Apple Pay Provisioning + * SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet + * Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) + * @return the current {@code NetworkTokenActivationDataResponse} instance, allowing for method + * chaining */ public NetworkTokenActivationDataResponse sdkInput(String sdkInput) { this.sdkInput = sdkInput; @@ -50,8 +48,19 @@ public NetworkTokenActivationDataResponse sdkInput(String sdkInput) { } /** - * A block of data that contains the activation data for a network token. This `sdkInput` is required to initialize Adyen's SDK for network token provisioning. For more information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) - * @return sdkInput A block of data that contains the activation data for a network token. This `sdkInput` is required to initialize Adyen's SDK for network token provisioning. For more information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) + * A block of data that contains the activation data for a network token. This + * `sdkInput` is required to initialize Adyen's SDK for network token provisioning. + * For more information, see the repositories for Adyen's SDKs for network token provisioning: + * * [Adyen Apple Pay Provisioning + * SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet + * Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) + * + * @return sdkInput A block of data that contains the activation data for a network token. This + * `sdkInput` is required to initialize Adyen's SDK for network token + * provisioning. For more information, see the repositories for Adyen's SDKs for network + * token provisioning: * [Adyen Apple Pay Provisioning + * SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet + * Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) */ @JsonProperty(JSON_PROPERTY_SDK_INPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,9 +69,19 @@ public String getSdkInput() { } /** - * A block of data that contains the activation data for a network token. This `sdkInput` is required to initialize Adyen's SDK for network token provisioning. For more information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) + * A block of data that contains the activation data for a network token. This + * `sdkInput` is required to initialize Adyen's SDK for network token provisioning. + * For more information, see the repositories for Adyen's SDKs for network token provisioning: + * * [Adyen Apple Pay Provisioning + * SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet + * Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) * - * @param sdkInput A block of data that contains the activation data for a network token. This `sdkInput` is required to initialize Adyen's SDK for network token provisioning. For more information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) + * @param sdkInput A block of data that contains the activation data for a network token. This + * `sdkInput` is required to initialize Adyen's SDK for network token + * provisioning. For more information, see the repositories for Adyen's SDKs for network + * token provisioning: * [Adyen Apple Pay Provisioning + * SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet + * Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) */ @JsonProperty(JSON_PROPERTY_SDK_INPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +89,7 @@ public void setSdkInput(String sdkInput) { this.sdkInput = sdkInput; } - /** - * Return true if this NetworkTokenActivationDataResponse object is equal to o. - */ + /** Return true if this NetworkTokenActivationDataResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -81,7 +98,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - NetworkTokenActivationDataResponse networkTokenActivationDataResponse = (NetworkTokenActivationDataResponse) o; + NetworkTokenActivationDataResponse networkTokenActivationDataResponse = + (NetworkTokenActivationDataResponse) o; return Objects.equals(this.sdkInput, networkTokenActivationDataResponse.sdkInput); } @@ -100,8 +118,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +127,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of NetworkTokenActivationDataResponse given an JSON string * * @param jsonString JSON string * @return An instance of NetworkTokenActivationDataResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to NetworkTokenActivationDataResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * NetworkTokenActivationDataResponse */ - public static NetworkTokenActivationDataResponse fromJson(String jsonString) throws JsonProcessingException { + public static NetworkTokenActivationDataResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NetworkTokenActivationDataResponse.class); } -/** - * Convert an instance of NetworkTokenActivationDataResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of NetworkTokenActivationDataResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/NetworkTokenRequestor.java b/src/main/java/com/adyen/model/balanceplatform/NetworkTokenRequestor.java index ef48e19dc..0949bb0a0 100644 --- a/src/main/java/com/adyen/model/balanceplatform/NetworkTokenRequestor.java +++ b/src/main/java/com/adyen/model/balanceplatform/NetworkTokenRequestor.java @@ -2,36 +2,26 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * NetworkTokenRequestor - */ +/** NetworkTokenRequestor */ @JsonPropertyOrder({ NetworkTokenRequestor.JSON_PROPERTY_ID, NetworkTokenRequestor.JSON_PROPERTY_NAME }) - public class NetworkTokenRequestor { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -39,8 +29,7 @@ public class NetworkTokenRequestor { public static final String JSON_PROPERTY_NAME = "name"; private String name; - public NetworkTokenRequestor() { - } + public NetworkTokenRequestor() {} /** * The id of the network token requestor. @@ -55,6 +44,7 @@ public NetworkTokenRequestor id(String id) { /** * The id of the network token requestor. + * * @return id The id of the network token requestor. */ @JsonProperty(JSON_PROPERTY_ID) @@ -87,6 +77,7 @@ public NetworkTokenRequestor name(String name) { /** * The name of the network token requestor. + * * @return name The name of the network token requestor. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -106,9 +97,7 @@ public void setName(String name) { this.name = name; } - /** - * Return true if this NetworkTokenRequestor object is equal to o. - */ + /** Return true if this NetworkTokenRequestor object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +107,8 @@ public boolean equals(Object o) { return false; } NetworkTokenRequestor networkTokenRequestor = (NetworkTokenRequestor) o; - return Objects.equals(this.id, networkTokenRequestor.id) && - Objects.equals(this.name, networkTokenRequestor.name); + return Objects.equals(this.id, networkTokenRequestor.id) + && Objects.equals(this.name, networkTokenRequestor.name); } @Override @@ -138,8 +127,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +136,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of NetworkTokenRequestor given an JSON string * * @param jsonString JSON string * @return An instance of NetworkTokenRequestor - * @throws JsonProcessingException if the JSON string is invalid with respect to NetworkTokenRequestor + * @throws JsonProcessingException if the JSON string is invalid with respect to + * NetworkTokenRequestor */ public static NetworkTokenRequestor fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NetworkTokenRequestor.class); } -/** - * Convert an instance of NetworkTokenRequestor to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of NetworkTokenRequestor to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/NumberAndBicAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/NumberAndBicAccountIdentification.java index 24b4de15e..fba8b6740 100644 --- a/src/main/java/com/adyen/model/balanceplatform/NumberAndBicAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/NumberAndBicAccountIdentification.java @@ -2,54 +2,45 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.AdditionalBankIdentification; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * NumberAndBicAccountIdentification - */ +/** NumberAndBicAccountIdentification */ @JsonPropertyOrder({ NumberAndBicAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, NumberAndBicAccountIdentification.JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION, NumberAndBicAccountIdentification.JSON_PROPERTY_BIC, NumberAndBicAccountIdentification.JSON_PROPERTY_TYPE }) - public class NumberAndBicAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - public static final String JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION = "additionalBankIdentification"; + public static final String JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION = + "additionalBankIdentification"; private AdditionalBankIdentification additionalBankIdentification; public static final String JSON_PROPERTY_BIC = "bic"; private String bic; - /** - * **numberAndBic** - */ + /** **numberAndBic** */ public enum TypeEnum { - NUMBERANDBIC(String.valueOf("numberAndBic")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -57,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -78,7 +69,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -86,14 +81,16 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public NumberAndBicAccountIdentification() { - } + public NumberAndBicAccountIdentification() {} /** - * The bank account number, without separators or whitespace. The length and format depends on the bank or country. + * The bank account number, without separators or whitespace. The length and format depends on the + * bank or country. * - * @param accountNumber The bank account number, without separators or whitespace. The length and format depends on the bank or country. - * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method chaining + * @param accountNumber The bank account number, without separators or whitespace. The length and + * format depends on the bank or country. + * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method + * chaining */ public NumberAndBicAccountIdentification accountNumber(String accountNumber) { this.accountNumber = accountNumber; @@ -101,8 +98,11 @@ public NumberAndBicAccountIdentification accountNumber(String accountNumber) { } /** - * The bank account number, without separators or whitespace. The length and format depends on the bank or country. - * @return accountNumber The bank account number, without separators or whitespace. The length and format depends on the bank or country. + * The bank account number, without separators or whitespace. The length and format depends on the + * bank or country. + * + * @return accountNumber The bank account number, without separators or whitespace. The length and + * format depends on the bank or country. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,9 +111,11 @@ public String getAccountNumber() { } /** - * The bank account number, without separators or whitespace. The length and format depends on the bank or country. + * The bank account number, without separators or whitespace. The length and format depends on the + * bank or country. * - * @param accountNumber The bank account number, without separators or whitespace. The length and format depends on the bank or country. + * @param accountNumber The bank account number, without separators or whitespace. The length and + * format depends on the bank or country. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,17 +126,20 @@ public void setAccountNumber(String accountNumber) { /** * additionalBankIdentification * - * @param additionalBankIdentification - * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method chaining + * @param additionalBankIdentification + * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method + * chaining */ - public NumberAndBicAccountIdentification additionalBankIdentification(AdditionalBankIdentification additionalBankIdentification) { + public NumberAndBicAccountIdentification additionalBankIdentification( + AdditionalBankIdentification additionalBankIdentification) { this.additionalBankIdentification = additionalBankIdentification; return this; } /** * Get additionalBankIdentification - * @return additionalBankIdentification + * + * @return additionalBankIdentification */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,11 +150,12 @@ public AdditionalBankIdentification getAdditionalBankIdentification() { /** * additionalBankIdentification * - * @param additionalBankIdentification + * @param additionalBankIdentification */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAdditionalBankIdentification(AdditionalBankIdentification additionalBankIdentification) { + public void setAdditionalBankIdentification( + AdditionalBankIdentification additionalBankIdentification) { this.additionalBankIdentification = additionalBankIdentification; } @@ -157,7 +163,8 @@ public void setAdditionalBankIdentification(AdditionalBankIdentification additio * The bank's 8- or 11-character BIC or SWIFT code. * * @param bic The bank's 8- or 11-character BIC or SWIFT code. - * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method chaining + * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method + * chaining */ public NumberAndBicAccountIdentification bic(String bic) { this.bic = bic; @@ -166,6 +173,7 @@ public NumberAndBicAccountIdentification bic(String bic) { /** * The bank's 8- or 11-character BIC or SWIFT code. + * * @return bic The bank's 8- or 11-character BIC or SWIFT code. */ @JsonProperty(JSON_PROPERTY_BIC) @@ -189,7 +197,8 @@ public void setBic(String bic) { * **numberAndBic** * * @param type **numberAndBic** - * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method chaining + * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method + * chaining */ public NumberAndBicAccountIdentification type(TypeEnum type) { this.type = type; @@ -198,6 +207,7 @@ public NumberAndBicAccountIdentification type(TypeEnum type) { /** * **numberAndBic** + * * @return type **numberAndBic** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -217,9 +227,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this NumberAndBicAccountIdentification object is equal to o. - */ + /** Return true if this NumberAndBicAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -228,11 +236,14 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - NumberAndBicAccountIdentification numberAndBicAccountIdentification = (NumberAndBicAccountIdentification) o; - return Objects.equals(this.accountNumber, numberAndBicAccountIdentification.accountNumber) && - Objects.equals(this.additionalBankIdentification, numberAndBicAccountIdentification.additionalBankIdentification) && - Objects.equals(this.bic, numberAndBicAccountIdentification.bic) && - Objects.equals(this.type, numberAndBicAccountIdentification.type); + NumberAndBicAccountIdentification numberAndBicAccountIdentification = + (NumberAndBicAccountIdentification) o; + return Objects.equals(this.accountNumber, numberAndBicAccountIdentification.accountNumber) + && Objects.equals( + this.additionalBankIdentification, + numberAndBicAccountIdentification.additionalBankIdentification) + && Objects.equals(this.bic, numberAndBicAccountIdentification.bic) + && Objects.equals(this.type, numberAndBicAccountIdentification.type); } @Override @@ -245,7 +256,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NumberAndBicAccountIdentification {\n"); sb.append(" accountNumber: ").append(toIndentedString(accountNumber)).append("\n"); - sb.append(" additionalBankIdentification: ").append(toIndentedString(additionalBankIdentification)).append("\n"); + sb.append(" additionalBankIdentification: ") + .append(toIndentedString(additionalBankIdentification)) + .append("\n"); sb.append(" bic: ").append(toIndentedString(bic)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -253,8 +266,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -263,21 +275,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of NumberAndBicAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of NumberAndBicAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to NumberAndBicAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * NumberAndBicAccountIdentification */ - public static NumberAndBicAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static NumberAndBicAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NumberAndBicAccountIdentification.class); } -/** - * Convert an instance of NumberAndBicAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of NumberAndBicAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PLLocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/PLLocalAccountIdentification.java index 7ae759832..fb7880c65 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PLLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/PLLocalAccountIdentification.java @@ -2,45 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * PLLocalAccountIdentification - */ +/** PLLocalAccountIdentification */ @JsonPropertyOrder({ PLLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, PLLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class PLLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - /** - * **plLocal** - */ + /** **plLocal** */ public enum TypeEnum { - PLLOCAL(String.valueOf("plLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +39,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,13 +72,16 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PLLocalAccountIdentification() { - } + public PLLocalAccountIdentification() {} /** - * The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. + * The 26-digit bank account number ([Numer + * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or + * whitespace. * - * @param accountNumber The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. + * @param accountNumber The 26-digit bank account number ([Numer + * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or + * whitespace. * @return the current {@code PLLocalAccountIdentification} instance, allowing for method chaining */ public PLLocalAccountIdentification accountNumber(String accountNumber) { @@ -92,8 +90,13 @@ public PLLocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. - * @return accountNumber The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. + * The 26-digit bank account number ([Numer + * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or + * whitespace. + * + * @return accountNumber The 26-digit bank account number ([Numer + * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or + * whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,9 +105,13 @@ public String getAccountNumber() { } /** - * The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. + * The 26-digit bank account number ([Numer + * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or + * whitespace. * - * @param accountNumber The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. + * @param accountNumber The 26-digit bank account number ([Numer + * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or + * whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,6 +132,7 @@ public PLLocalAccountIdentification type(TypeEnum type) { /** * **plLocal** + * * @return type **plLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -144,9 +152,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this PLLocalAccountIdentification object is equal to o. - */ + /** Return true if this PLLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +162,8 @@ public boolean equals(Object o) { return false; } PLLocalAccountIdentification plLocalAccountIdentification = (PLLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, plLocalAccountIdentification.accountNumber) && - Objects.equals(this.type, plLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, plLocalAccountIdentification.accountNumber) + && Objects.equals(this.type, plLocalAccountIdentification.type); } @Override @@ -176,8 +182,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +191,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PLLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of PLLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to PLLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PLLocalAccountIdentification */ - public static PLLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static PLLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PLLocalAccountIdentification.class); } -/** - * Convert an instance of PLLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PLLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaginatedAccountHoldersResponse.java b/src/main/java/com/adyen/model/balanceplatform/PaginatedAccountHoldersResponse.java index 8d8ba1343..9453624ea 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaginatedAccountHoldersResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaginatedAccountHoldersResponse.java @@ -2,40 +2,29 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.AccountHolder; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * PaginatedAccountHoldersResponse - */ +/** PaginatedAccountHoldersResponse */ @JsonPropertyOrder({ PaginatedAccountHoldersResponse.JSON_PROPERTY_ACCOUNT_HOLDERS, PaginatedAccountHoldersResponse.JSON_PROPERTY_HAS_NEXT, PaginatedAccountHoldersResponse.JSON_PROPERTY_HAS_PREVIOUS }) - public class PaginatedAccountHoldersResponse { public static final String JSON_PROPERTY_ACCOUNT_HOLDERS = "accountHolders"; private List accountHolders; @@ -46,14 +35,14 @@ public class PaginatedAccountHoldersResponse { public static final String JSON_PROPERTY_HAS_PREVIOUS = "hasPrevious"; private Boolean hasPrevious; - public PaginatedAccountHoldersResponse() { - } + public PaginatedAccountHoldersResponse() {} /** * List of account holders. * * @param accountHolders List of account holders. - * @return the current {@code PaginatedAccountHoldersResponse} instance, allowing for method chaining + * @return the current {@code PaginatedAccountHoldersResponse} instance, allowing for method + * chaining */ public PaginatedAccountHoldersResponse accountHolders(List accountHolders) { this.accountHolders = accountHolders; @@ -70,6 +59,7 @@ public PaginatedAccountHoldersResponse addAccountHoldersItem(AccountHolder accou /** * List of account holders. + * * @return accountHolders List of account holders. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDERS) @@ -93,7 +83,8 @@ public void setAccountHolders(List accountHolders) { * Indicates whether there are more items on the next page. * * @param hasNext Indicates whether there are more items on the next page. - * @return the current {@code PaginatedAccountHoldersResponse} instance, allowing for method chaining + * @return the current {@code PaginatedAccountHoldersResponse} instance, allowing for method + * chaining */ public PaginatedAccountHoldersResponse hasNext(Boolean hasNext) { this.hasNext = hasNext; @@ -102,6 +93,7 @@ public PaginatedAccountHoldersResponse hasNext(Boolean hasNext) { /** * Indicates whether there are more items on the next page. + * * @return hasNext Indicates whether there are more items on the next page. */ @JsonProperty(JSON_PROPERTY_HAS_NEXT) @@ -125,7 +117,8 @@ public void setHasNext(Boolean hasNext) { * Indicates whether there are more items on the previous page. * * @param hasPrevious Indicates whether there are more items on the previous page. - * @return the current {@code PaginatedAccountHoldersResponse} instance, allowing for method chaining + * @return the current {@code PaginatedAccountHoldersResponse} instance, allowing for method + * chaining */ public PaginatedAccountHoldersResponse hasPrevious(Boolean hasPrevious) { this.hasPrevious = hasPrevious; @@ -134,6 +127,7 @@ public PaginatedAccountHoldersResponse hasPrevious(Boolean hasPrevious) { /** * Indicates whether there are more items on the previous page. + * * @return hasPrevious Indicates whether there are more items on the previous page. */ @JsonProperty(JSON_PROPERTY_HAS_PREVIOUS) @@ -153,9 +147,7 @@ public void setHasPrevious(Boolean hasPrevious) { this.hasPrevious = hasPrevious; } - /** - * Return true if this PaginatedAccountHoldersResponse object is equal to o. - */ + /** Return true if this PaginatedAccountHoldersResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -164,10 +156,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaginatedAccountHoldersResponse paginatedAccountHoldersResponse = (PaginatedAccountHoldersResponse) o; - return Objects.equals(this.accountHolders, paginatedAccountHoldersResponse.accountHolders) && - Objects.equals(this.hasNext, paginatedAccountHoldersResponse.hasNext) && - Objects.equals(this.hasPrevious, paginatedAccountHoldersResponse.hasPrevious); + PaginatedAccountHoldersResponse paginatedAccountHoldersResponse = + (PaginatedAccountHoldersResponse) o; + return Objects.equals(this.accountHolders, paginatedAccountHoldersResponse.accountHolders) + && Objects.equals(this.hasNext, paginatedAccountHoldersResponse.hasNext) + && Objects.equals(this.hasPrevious, paginatedAccountHoldersResponse.hasPrevious); } @Override @@ -187,8 +180,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -197,21 +189,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaginatedAccountHoldersResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaginatedAccountHoldersResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to PaginatedAccountHoldersResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaginatedAccountHoldersResponse */ - public static PaginatedAccountHoldersResponse fromJson(String jsonString) throws JsonProcessingException { + public static PaginatedAccountHoldersResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaginatedAccountHoldersResponse.class); } -/** - * Convert an instance of PaginatedAccountHoldersResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaginatedAccountHoldersResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaginatedBalanceAccountsResponse.java b/src/main/java/com/adyen/model/balanceplatform/PaginatedBalanceAccountsResponse.java index 8d5ac8f9a..34c37f969 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaginatedBalanceAccountsResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaginatedBalanceAccountsResponse.java @@ -2,40 +2,29 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.BalanceAccountBase; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * PaginatedBalanceAccountsResponse - */ +/** PaginatedBalanceAccountsResponse */ @JsonPropertyOrder({ PaginatedBalanceAccountsResponse.JSON_PROPERTY_BALANCE_ACCOUNTS, PaginatedBalanceAccountsResponse.JSON_PROPERTY_HAS_NEXT, PaginatedBalanceAccountsResponse.JSON_PROPERTY_HAS_PREVIOUS }) - public class PaginatedBalanceAccountsResponse { public static final String JSON_PROPERTY_BALANCE_ACCOUNTS = "balanceAccounts"; private List balanceAccounts; @@ -46,21 +35,23 @@ public class PaginatedBalanceAccountsResponse { public static final String JSON_PROPERTY_HAS_PREVIOUS = "hasPrevious"; private Boolean hasPrevious; - public PaginatedBalanceAccountsResponse() { - } + public PaginatedBalanceAccountsResponse() {} /** * List of balance accounts. * * @param balanceAccounts List of balance accounts. - * @return the current {@code PaginatedBalanceAccountsResponse} instance, allowing for method chaining + * @return the current {@code PaginatedBalanceAccountsResponse} instance, allowing for method + * chaining */ - public PaginatedBalanceAccountsResponse balanceAccounts(List balanceAccounts) { + public PaginatedBalanceAccountsResponse balanceAccounts( + List balanceAccounts) { this.balanceAccounts = balanceAccounts; return this; } - public PaginatedBalanceAccountsResponse addBalanceAccountsItem(BalanceAccountBase balanceAccountsItem) { + public PaginatedBalanceAccountsResponse addBalanceAccountsItem( + BalanceAccountBase balanceAccountsItem) { if (this.balanceAccounts == null) { this.balanceAccounts = new ArrayList<>(); } @@ -70,6 +61,7 @@ public PaginatedBalanceAccountsResponse addBalanceAccountsItem(BalanceAccountBas /** * List of balance accounts. + * * @return balanceAccounts List of balance accounts. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNTS) @@ -93,7 +85,8 @@ public void setBalanceAccounts(List balanceAccounts) { * Indicates whether there are more items on the next page. * * @param hasNext Indicates whether there are more items on the next page. - * @return the current {@code PaginatedBalanceAccountsResponse} instance, allowing for method chaining + * @return the current {@code PaginatedBalanceAccountsResponse} instance, allowing for method + * chaining */ public PaginatedBalanceAccountsResponse hasNext(Boolean hasNext) { this.hasNext = hasNext; @@ -102,6 +95,7 @@ public PaginatedBalanceAccountsResponse hasNext(Boolean hasNext) { /** * Indicates whether there are more items on the next page. + * * @return hasNext Indicates whether there are more items on the next page. */ @JsonProperty(JSON_PROPERTY_HAS_NEXT) @@ -125,7 +119,8 @@ public void setHasNext(Boolean hasNext) { * Indicates whether there are more items on the previous page. * * @param hasPrevious Indicates whether there are more items on the previous page. - * @return the current {@code PaginatedBalanceAccountsResponse} instance, allowing for method chaining + * @return the current {@code PaginatedBalanceAccountsResponse} instance, allowing for method + * chaining */ public PaginatedBalanceAccountsResponse hasPrevious(Boolean hasPrevious) { this.hasPrevious = hasPrevious; @@ -134,6 +129,7 @@ public PaginatedBalanceAccountsResponse hasPrevious(Boolean hasPrevious) { /** * Indicates whether there are more items on the previous page. + * * @return hasPrevious Indicates whether there are more items on the previous page. */ @JsonProperty(JSON_PROPERTY_HAS_PREVIOUS) @@ -153,9 +149,7 @@ public void setHasPrevious(Boolean hasPrevious) { this.hasPrevious = hasPrevious; } - /** - * Return true if this PaginatedBalanceAccountsResponse object is equal to o. - */ + /** Return true if this PaginatedBalanceAccountsResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -164,10 +158,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaginatedBalanceAccountsResponse paginatedBalanceAccountsResponse = (PaginatedBalanceAccountsResponse) o; - return Objects.equals(this.balanceAccounts, paginatedBalanceAccountsResponse.balanceAccounts) && - Objects.equals(this.hasNext, paginatedBalanceAccountsResponse.hasNext) && - Objects.equals(this.hasPrevious, paginatedBalanceAccountsResponse.hasPrevious); + PaginatedBalanceAccountsResponse paginatedBalanceAccountsResponse = + (PaginatedBalanceAccountsResponse) o; + return Objects.equals(this.balanceAccounts, paginatedBalanceAccountsResponse.balanceAccounts) + && Objects.equals(this.hasNext, paginatedBalanceAccountsResponse.hasNext) + && Objects.equals(this.hasPrevious, paginatedBalanceAccountsResponse.hasPrevious); } @Override @@ -187,8 +182,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -197,21 +191,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaginatedBalanceAccountsResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaginatedBalanceAccountsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to PaginatedBalanceAccountsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaginatedBalanceAccountsResponse */ - public static PaginatedBalanceAccountsResponse fromJson(String jsonString) throws JsonProcessingException { + public static PaginatedBalanceAccountsResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaginatedBalanceAccountsResponse.class); } -/** - * Convert an instance of PaginatedBalanceAccountsResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaginatedBalanceAccountsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaginatedGetCardOrderItemResponse.java b/src/main/java/com/adyen/model/balanceplatform/PaginatedGetCardOrderItemResponse.java index 3dbead8d1..3c817d137 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaginatedGetCardOrderItemResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaginatedGetCardOrderItemResponse.java @@ -2,40 +2,29 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.CardOrderItem; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * PaginatedGetCardOrderItemResponse - */ +/** PaginatedGetCardOrderItemResponse */ @JsonPropertyOrder({ PaginatedGetCardOrderItemResponse.JSON_PROPERTY_DATA, PaginatedGetCardOrderItemResponse.JSON_PROPERTY_HAS_NEXT, PaginatedGetCardOrderItemResponse.JSON_PROPERTY_HAS_PREVIOUS }) - public class PaginatedGetCardOrderItemResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; @@ -46,14 +35,14 @@ public class PaginatedGetCardOrderItemResponse { public static final String JSON_PROPERTY_HAS_PREVIOUS = "hasPrevious"; private Boolean hasPrevious; - public PaginatedGetCardOrderItemResponse() { - } + public PaginatedGetCardOrderItemResponse() {} /** * List of card order items in the card order batch. * * @param data List of card order items in the card order batch. - * @return the current {@code PaginatedGetCardOrderItemResponse} instance, allowing for method chaining + * @return the current {@code PaginatedGetCardOrderItemResponse} instance, allowing for method + * chaining */ public PaginatedGetCardOrderItemResponse data(List data) { this.data = data; @@ -70,6 +59,7 @@ public PaginatedGetCardOrderItemResponse addDataItem(CardOrderItem dataItem) { /** * List of card order items in the card order batch. + * * @return data List of card order items in the card order batch. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -93,7 +83,8 @@ public void setData(List data) { * Indicates whether there are more items on the next page. * * @param hasNext Indicates whether there are more items on the next page. - * @return the current {@code PaginatedGetCardOrderItemResponse} instance, allowing for method chaining + * @return the current {@code PaginatedGetCardOrderItemResponse} instance, allowing for method + * chaining */ public PaginatedGetCardOrderItemResponse hasNext(Boolean hasNext) { this.hasNext = hasNext; @@ -102,6 +93,7 @@ public PaginatedGetCardOrderItemResponse hasNext(Boolean hasNext) { /** * Indicates whether there are more items on the next page. + * * @return hasNext Indicates whether there are more items on the next page. */ @JsonProperty(JSON_PROPERTY_HAS_NEXT) @@ -125,7 +117,8 @@ public void setHasNext(Boolean hasNext) { * Indicates whether there are more items on the previous page. * * @param hasPrevious Indicates whether there are more items on the previous page. - * @return the current {@code PaginatedGetCardOrderItemResponse} instance, allowing for method chaining + * @return the current {@code PaginatedGetCardOrderItemResponse} instance, allowing for method + * chaining */ public PaginatedGetCardOrderItemResponse hasPrevious(Boolean hasPrevious) { this.hasPrevious = hasPrevious; @@ -134,6 +127,7 @@ public PaginatedGetCardOrderItemResponse hasPrevious(Boolean hasPrevious) { /** * Indicates whether there are more items on the previous page. + * * @return hasPrevious Indicates whether there are more items on the previous page. */ @JsonProperty(JSON_PROPERTY_HAS_PREVIOUS) @@ -153,9 +147,7 @@ public void setHasPrevious(Boolean hasPrevious) { this.hasPrevious = hasPrevious; } - /** - * Return true if this PaginatedGetCardOrderItemResponse object is equal to o. - */ + /** Return true if this PaginatedGetCardOrderItemResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -164,10 +156,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaginatedGetCardOrderItemResponse paginatedGetCardOrderItemResponse = (PaginatedGetCardOrderItemResponse) o; - return Objects.equals(this.data, paginatedGetCardOrderItemResponse.data) && - Objects.equals(this.hasNext, paginatedGetCardOrderItemResponse.hasNext) && - Objects.equals(this.hasPrevious, paginatedGetCardOrderItemResponse.hasPrevious); + PaginatedGetCardOrderItemResponse paginatedGetCardOrderItemResponse = + (PaginatedGetCardOrderItemResponse) o; + return Objects.equals(this.data, paginatedGetCardOrderItemResponse.data) + && Objects.equals(this.hasNext, paginatedGetCardOrderItemResponse.hasNext) + && Objects.equals(this.hasPrevious, paginatedGetCardOrderItemResponse.hasPrevious); } @Override @@ -187,8 +180,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -197,21 +189,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaginatedGetCardOrderItemResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaginatedGetCardOrderItemResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to PaginatedGetCardOrderItemResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaginatedGetCardOrderItemResponse */ - public static PaginatedGetCardOrderItemResponse fromJson(String jsonString) throws JsonProcessingException { + public static PaginatedGetCardOrderItemResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaginatedGetCardOrderItemResponse.class); } -/** - * Convert an instance of PaginatedGetCardOrderItemResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaginatedGetCardOrderItemResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaginatedGetCardOrderResponse.java b/src/main/java/com/adyen/model/balanceplatform/PaginatedGetCardOrderResponse.java index 973eda716..ef97d58f7 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaginatedGetCardOrderResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaginatedGetCardOrderResponse.java @@ -2,40 +2,29 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.CardOrder; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * PaginatedGetCardOrderResponse - */ +/** PaginatedGetCardOrderResponse */ @JsonPropertyOrder({ PaginatedGetCardOrderResponse.JSON_PROPERTY_CARD_ORDERS, PaginatedGetCardOrderResponse.JSON_PROPERTY_HAS_NEXT, PaginatedGetCardOrderResponse.JSON_PROPERTY_HAS_PREVIOUS }) - public class PaginatedGetCardOrderResponse { public static final String JSON_PROPERTY_CARD_ORDERS = "cardOrders"; private List cardOrders; @@ -46,14 +35,14 @@ public class PaginatedGetCardOrderResponse { public static final String JSON_PROPERTY_HAS_PREVIOUS = "hasPrevious"; private Boolean hasPrevious; - public PaginatedGetCardOrderResponse() { - } + public PaginatedGetCardOrderResponse() {} /** * Contains objects with information about card orders. * * @param cardOrders Contains objects with information about card orders. - * @return the current {@code PaginatedGetCardOrderResponse} instance, allowing for method chaining + * @return the current {@code PaginatedGetCardOrderResponse} instance, allowing for method + * chaining */ public PaginatedGetCardOrderResponse cardOrders(List cardOrders) { this.cardOrders = cardOrders; @@ -70,6 +59,7 @@ public PaginatedGetCardOrderResponse addCardOrdersItem(CardOrder cardOrdersItem) /** * Contains objects with information about card orders. + * * @return cardOrders Contains objects with information about card orders. */ @JsonProperty(JSON_PROPERTY_CARD_ORDERS) @@ -93,7 +83,8 @@ public void setCardOrders(List cardOrders) { * Indicates whether there are more items on the next page. * * @param hasNext Indicates whether there are more items on the next page. - * @return the current {@code PaginatedGetCardOrderResponse} instance, allowing for method chaining + * @return the current {@code PaginatedGetCardOrderResponse} instance, allowing for method + * chaining */ public PaginatedGetCardOrderResponse hasNext(Boolean hasNext) { this.hasNext = hasNext; @@ -102,6 +93,7 @@ public PaginatedGetCardOrderResponse hasNext(Boolean hasNext) { /** * Indicates whether there are more items on the next page. + * * @return hasNext Indicates whether there are more items on the next page. */ @JsonProperty(JSON_PROPERTY_HAS_NEXT) @@ -125,7 +117,8 @@ public void setHasNext(Boolean hasNext) { * Indicates whether there are more items on the previous page. * * @param hasPrevious Indicates whether there are more items on the previous page. - * @return the current {@code PaginatedGetCardOrderResponse} instance, allowing for method chaining + * @return the current {@code PaginatedGetCardOrderResponse} instance, allowing for method + * chaining */ public PaginatedGetCardOrderResponse hasPrevious(Boolean hasPrevious) { this.hasPrevious = hasPrevious; @@ -134,6 +127,7 @@ public PaginatedGetCardOrderResponse hasPrevious(Boolean hasPrevious) { /** * Indicates whether there are more items on the previous page. + * * @return hasPrevious Indicates whether there are more items on the previous page. */ @JsonProperty(JSON_PROPERTY_HAS_PREVIOUS) @@ -153,9 +147,7 @@ public void setHasPrevious(Boolean hasPrevious) { this.hasPrevious = hasPrevious; } - /** - * Return true if this PaginatedGetCardOrderResponse object is equal to o. - */ + /** Return true if this PaginatedGetCardOrderResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -165,9 +157,9 @@ public boolean equals(Object o) { return false; } PaginatedGetCardOrderResponse paginatedGetCardOrderResponse = (PaginatedGetCardOrderResponse) o; - return Objects.equals(this.cardOrders, paginatedGetCardOrderResponse.cardOrders) && - Objects.equals(this.hasNext, paginatedGetCardOrderResponse.hasNext) && - Objects.equals(this.hasPrevious, paginatedGetCardOrderResponse.hasPrevious); + return Objects.equals(this.cardOrders, paginatedGetCardOrderResponse.cardOrders) + && Objects.equals(this.hasNext, paginatedGetCardOrderResponse.hasNext) + && Objects.equals(this.hasPrevious, paginatedGetCardOrderResponse.hasPrevious); } @Override @@ -187,8 +179,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -197,21 +188,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaginatedGetCardOrderResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaginatedGetCardOrderResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to PaginatedGetCardOrderResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaginatedGetCardOrderResponse */ - public static PaginatedGetCardOrderResponse fromJson(String jsonString) throws JsonProcessingException { + public static PaginatedGetCardOrderResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaginatedGetCardOrderResponse.class); } -/** - * Convert an instance of PaginatedGetCardOrderResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaginatedGetCardOrderResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaginatedPaymentInstrumentsResponse.java b/src/main/java/com/adyen/model/balanceplatform/PaginatedPaymentInstrumentsResponse.java index 5dce5ffd8..96ec52439 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaginatedPaymentInstrumentsResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaginatedPaymentInstrumentsResponse.java @@ -2,40 +2,29 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.PaymentInstrument; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * PaginatedPaymentInstrumentsResponse - */ +/** PaginatedPaymentInstrumentsResponse */ @JsonPropertyOrder({ PaginatedPaymentInstrumentsResponse.JSON_PROPERTY_HAS_NEXT, PaginatedPaymentInstrumentsResponse.JSON_PROPERTY_HAS_PREVIOUS, PaginatedPaymentInstrumentsResponse.JSON_PROPERTY_PAYMENT_INSTRUMENTS }) - public class PaginatedPaymentInstrumentsResponse { public static final String JSON_PROPERTY_HAS_NEXT = "hasNext"; private Boolean hasNext; @@ -46,14 +35,14 @@ public class PaginatedPaymentInstrumentsResponse { public static final String JSON_PROPERTY_PAYMENT_INSTRUMENTS = "paymentInstruments"; private List paymentInstruments; - public PaginatedPaymentInstrumentsResponse() { - } + public PaginatedPaymentInstrumentsResponse() {} /** * Indicates whether there are more items on the next page. * * @param hasNext Indicates whether there are more items on the next page. - * @return the current {@code PaginatedPaymentInstrumentsResponse} instance, allowing for method chaining + * @return the current {@code PaginatedPaymentInstrumentsResponse} instance, allowing for method + * chaining */ public PaginatedPaymentInstrumentsResponse hasNext(Boolean hasNext) { this.hasNext = hasNext; @@ -62,6 +51,7 @@ public PaginatedPaymentInstrumentsResponse hasNext(Boolean hasNext) { /** * Indicates whether there are more items on the next page. + * * @return hasNext Indicates whether there are more items on the next page. */ @JsonProperty(JSON_PROPERTY_HAS_NEXT) @@ -85,7 +75,8 @@ public void setHasNext(Boolean hasNext) { * Indicates whether there are more items on the previous page. * * @param hasPrevious Indicates whether there are more items on the previous page. - * @return the current {@code PaginatedPaymentInstrumentsResponse} instance, allowing for method chaining + * @return the current {@code PaginatedPaymentInstrumentsResponse} instance, allowing for method + * chaining */ public PaginatedPaymentInstrumentsResponse hasPrevious(Boolean hasPrevious) { this.hasPrevious = hasPrevious; @@ -94,6 +85,7 @@ public PaginatedPaymentInstrumentsResponse hasPrevious(Boolean hasPrevious) { /** * Indicates whether there are more items on the previous page. + * * @return hasPrevious Indicates whether there are more items on the previous page. */ @JsonProperty(JSON_PROPERTY_HAS_PREVIOUS) @@ -117,14 +109,17 @@ public void setHasPrevious(Boolean hasPrevious) { * List of payment instruments associated with the balance account. * * @param paymentInstruments List of payment instruments associated with the balance account. - * @return the current {@code PaginatedPaymentInstrumentsResponse} instance, allowing for method chaining + * @return the current {@code PaginatedPaymentInstrumentsResponse} instance, allowing for method + * chaining */ - public PaginatedPaymentInstrumentsResponse paymentInstruments(List paymentInstruments) { + public PaginatedPaymentInstrumentsResponse paymentInstruments( + List paymentInstruments) { this.paymentInstruments = paymentInstruments; return this; } - public PaginatedPaymentInstrumentsResponse addPaymentInstrumentsItem(PaymentInstrument paymentInstrumentsItem) { + public PaginatedPaymentInstrumentsResponse addPaymentInstrumentsItem( + PaymentInstrument paymentInstrumentsItem) { if (this.paymentInstruments == null) { this.paymentInstruments = new ArrayList<>(); } @@ -134,6 +129,7 @@ public PaginatedPaymentInstrumentsResponse addPaymentInstrumentsItem(PaymentInst /** * List of payment instruments associated with the balance account. + * * @return paymentInstruments List of payment instruments associated with the balance account. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENTS) @@ -153,9 +149,7 @@ public void setPaymentInstruments(List paymentInstruments) { this.paymentInstruments = paymentInstruments; } - /** - * Return true if this PaginatedPaymentInstrumentsResponse object is equal to o. - */ + /** Return true if this PaginatedPaymentInstrumentsResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -164,10 +158,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaginatedPaymentInstrumentsResponse paginatedPaymentInstrumentsResponse = (PaginatedPaymentInstrumentsResponse) o; - return Objects.equals(this.hasNext, paginatedPaymentInstrumentsResponse.hasNext) && - Objects.equals(this.hasPrevious, paginatedPaymentInstrumentsResponse.hasPrevious) && - Objects.equals(this.paymentInstruments, paginatedPaymentInstrumentsResponse.paymentInstruments); + PaginatedPaymentInstrumentsResponse paginatedPaymentInstrumentsResponse = + (PaginatedPaymentInstrumentsResponse) o; + return Objects.equals(this.hasNext, paginatedPaymentInstrumentsResponse.hasNext) + && Objects.equals(this.hasPrevious, paginatedPaymentInstrumentsResponse.hasPrevious) + && Objects.equals( + this.paymentInstruments, paginatedPaymentInstrumentsResponse.paymentInstruments); } @Override @@ -187,8 +183,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -197,21 +192,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaginatedPaymentInstrumentsResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaginatedPaymentInstrumentsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to PaginatedPaymentInstrumentsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaginatedPaymentInstrumentsResponse */ - public static PaginatedPaymentInstrumentsResponse fromJson(String jsonString) throws JsonProcessingException { + public static PaginatedPaymentInstrumentsResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaginatedPaymentInstrumentsResponse.class); } -/** - * Convert an instance of PaginatedPaymentInstrumentsResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaginatedPaymentInstrumentsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrument.java b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrument.java index 6d17102ed..dd614b16b 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrument.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrument.java @@ -2,36 +2,28 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.BankAccountDetails; -import com.adyen.model.balanceplatform.Card; -import com.adyen.model.balanceplatform.PaymentInstrumentAdditionalBankAccountIdentificationsInner; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * PaymentInstrument - */ +/** PaymentInstrument */ @JsonPropertyOrder({ PaymentInstrument.JSON_PROPERTY_ADDITIONAL_BANK_ACCOUNT_IDENTIFICATIONS, PaymentInstrument.JSON_PROPERTY_BALANCE_ACCOUNT_ID, @@ -49,11 +41,12 @@ PaymentInstrument.JSON_PROPERTY_STATUS_REASON, PaymentInstrument.JSON_PROPERTY_TYPE }) - public class PaymentInstrument { - public static final String JSON_PROPERTY_ADDITIONAL_BANK_ACCOUNT_IDENTIFICATIONS = "additionalBankAccountIdentifications"; + public static final String JSON_PROPERTY_ADDITIONAL_BANK_ACCOUNT_IDENTIFICATIONS = + "additionalBankAccountIdentifications"; @Deprecated // deprecated since Configuration API v2: Please use `bankAccount` object instead - private List additionalBankAccountIdentifications; + private List + additionalBankAccountIdentifications; public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; @@ -86,10 +79,16 @@ public class PaymentInstrument { private String replacementOfId; /** - * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment + * instrument, it is set to **active** by default. However, there can be exceptions for cards + * based on the `card.formFactor` and the `issuingCountryCode`. For example, + * when issuing physical cards in the US, the default status is **inactive**. Possible values: * + * **active**: The payment instrument is active and can be used to make payments. * **inactive**: + * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The + * payment instrument is suspended, either because it was stolen or lost. * **closed**: The + * payment instrument is permanently closed. This action cannot be undone. */ public enum StatusEnum { - ACTIVE(String.valueOf("active")), CLOSED(String.valueOf("closed")), @@ -103,7 +102,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -124,7 +123,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -136,10 +139,12 @@ public static StatusEnum fromValue(String value) { private String statusComment; /** - * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * The reason for the status of the payment instrument. Possible values: **accountClosure**, + * **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, + * **transactionRule**, **other**. If the reason is **other**, you must also send the + * `statusComment` parameter describing the status change. */ public enum StatusReasonEnum { - ACCOUNTCLOSURE(String.valueOf("accountClosure")), DAMAGED(String.valueOf("damaged")), @@ -163,7 +168,7 @@ public enum StatusReasonEnum { private String value; StatusReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -184,7 +189,11 @@ public static StatusReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusReasonEnum.values())); + LOG.warning( + "StatusReasonEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusReasonEnum.values())); return null; } } @@ -192,11 +201,8 @@ public static StatusReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS_REASON = "statusReason"; private StatusReasonEnum statusReason; - /** - * The type of payment instrument. Possible values: **card**, **bankAccount**. - */ + /** The type of payment instrument. Possible values: **card**, **bankAccount**. */ public enum TypeEnum { - BANKACCOUNT(String.valueOf("bankAccount")), CARD(String.valueOf("card")); @@ -206,7 +212,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -227,7 +233,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -235,25 +245,29 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PaymentInstrument() { - } + public PaymentInstrument() {} /** - * Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. + * Contains optional, additional business account details. Returned when you create a payment + * instrument with `type` **bankAccount**. * - * @param additionalBankAccountIdentifications Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. + * @param additionalBankAccountIdentifications Contains optional, additional business account + * details. Returned when you create a payment instrument with `type` + * **bankAccount**. * @return the current {@code PaymentInstrument} instance, allowing for method chaining - * - * @deprecated since Configuration API v2 - * Please use `bankAccount` object instead + * @deprecated since Configuration API v2 Please use `bankAccount` object instead */ @Deprecated // deprecated since Configuration API v2: Please use `bankAccount` object instead - public PaymentInstrument additionalBankAccountIdentifications(List additionalBankAccountIdentifications) { + public PaymentInstrument additionalBankAccountIdentifications( + List + additionalBankAccountIdentifications) { this.additionalBankAccountIdentifications = additionalBankAccountIdentifications; return this; } - public PaymentInstrument addAdditionalBankAccountIdentificationsItem(PaymentInstrumentAdditionalBankAccountIdentificationsInner additionalBankAccountIdentificationsItem) { + public PaymentInstrument addAdditionalBankAccountIdentificationsItem( + PaymentInstrumentAdditionalBankAccountIdentificationsInner + additionalBankAccountIdentificationsItem) { if (this.additionalBankAccountIdentifications == null) { this.additionalBankAccountIdentifications = new ArrayList<>(); } @@ -262,36 +276,48 @@ public PaymentInstrument addAdditionalBankAccountIdentificationsItem(PaymentInst } /** - * Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. - * @return additionalBankAccountIdentifications Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. + * Contains optional, additional business account details. Returned when you create a payment + * instrument with `type` **bankAccount**. + * + * @return additionalBankAccountIdentifications Contains optional, additional business account + * details. Returned when you create a payment instrument with `type` + * **bankAccount**. * @deprecated // deprecated since Configuration API v2: Please use `bankAccount` object instead */ @Deprecated // deprecated since Configuration API v2: Please use `bankAccount` object instead @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_ACCOUNT_IDENTIFICATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getAdditionalBankAccountIdentifications() { + public List + getAdditionalBankAccountIdentifications() { return additionalBankAccountIdentifications; } /** - * Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. + * Contains optional, additional business account details. Returned when you create a payment + * instrument with `type` **bankAccount**. * - * @param additionalBankAccountIdentifications Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. - * - * @deprecated since Configuration API v2 - * Please use `bankAccount` object instead + * @param additionalBankAccountIdentifications Contains optional, additional business account + * details. Returned when you create a payment instrument with `type` + * **bankAccount**. + * @deprecated since Configuration API v2 Please use `bankAccount` object instead */ @Deprecated // deprecated since Configuration API v2: Please use `bankAccount` object instead @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_ACCOUNT_IDENTIFICATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAdditionalBankAccountIdentifications(List additionalBankAccountIdentifications) { + public void setAdditionalBankAccountIdentifications( + List + additionalBankAccountIdentifications) { this.additionalBankAccountIdentifications = additionalBankAccountIdentifications; } /** - * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. + * The unique identifier of the [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) + * associated with the payment instrument. * - * @param balanceAccountId The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. + * @param balanceAccountId The unique identifier of the [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) + * associated with the payment instrument. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument balanceAccountId(String balanceAccountId) { @@ -300,8 +326,13 @@ public PaymentInstrument balanceAccountId(String balanceAccountId) { } /** - * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. - * @return balanceAccountId The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. + * The unique identifier of the [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) + * associated with the payment instrument. + * + * @return balanceAccountId The unique identifier of the [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) + * associated with the payment instrument. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -310,9 +341,13 @@ public String getBalanceAccountId() { } /** - * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. + * The unique identifier of the [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) + * associated with the payment instrument. * - * @param balanceAccountId The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. + * @param balanceAccountId The unique identifier of the [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) + * associated with the payment instrument. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -323,7 +358,7 @@ public void setBalanceAccountId(String balanceAccountId) { /** * bankAccount * - * @param bankAccount + * @param bankAccount * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument bankAccount(BankAccountDetails bankAccount) { @@ -333,7 +368,8 @@ public PaymentInstrument bankAccount(BankAccountDetails bankAccount) { /** * Get bankAccount - * @return bankAccount + * + * @return bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -344,7 +380,7 @@ public BankAccountDetails getBankAccount() { /** * bankAccount * - * @param bankAccount + * @param bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -355,7 +391,7 @@ public void setBankAccount(BankAccountDetails bankAccount) { /** * card * - * @param card + * @param card * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument card(Card card) { @@ -365,7 +401,8 @@ public PaymentInstrument card(Card card) { /** * Get card - * @return card + * + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -376,7 +413,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -397,6 +434,7 @@ public PaymentInstrument description(String description) { /** * Your description for the payment instrument, maximum 300 characters. + * * @return description Your description for the payment instrument, maximum 300 characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -429,6 +467,7 @@ public PaymentInstrument id(String id) { /** * The unique identifier of the payment instrument. + * * @return id The unique identifier of the payment instrument. */ @JsonProperty(JSON_PROPERTY_ID) @@ -449,9 +488,12 @@ public void setId(String id) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code where the payment instrument is issued. For example, **NL** or **US**. * - * @param issuingCountryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. + * @param issuingCountryCode The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment + * instrument is issued. For example, **NL** or **US**. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument issuingCountryCode(String issuingCountryCode) { @@ -460,8 +502,12 @@ public PaymentInstrument issuingCountryCode(String issuingCountryCode) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. - * @return issuingCountryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code where the payment instrument is issued. For example, **NL** or **US**. + * + * @return issuingCountryCode The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment + * instrument is issued. For example, **NL** or **US**. */ @JsonProperty(JSON_PROPERTY_ISSUING_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -470,9 +516,12 @@ public String getIssuingCountryCode() { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code where the payment instrument is issued. For example, **NL** or **US**. * - * @param issuingCountryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. + * @param issuingCountryCode The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment + * instrument is issued. For example, **NL** or **US**. */ @JsonProperty(JSON_PROPERTY_ISSUING_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -481,9 +530,13 @@ public void setIssuingCountryCode(String issuingCountryCode) { } /** - * The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. + * The unique identifier of the [payment instrument + * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) + * to which the payment instrument belongs. * - * @param paymentInstrumentGroupId The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. + * @param paymentInstrumentGroupId The unique identifier of the [payment instrument + * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) + * to which the payment instrument belongs. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument paymentInstrumentGroupId(String paymentInstrumentGroupId) { @@ -492,8 +545,13 @@ public PaymentInstrument paymentInstrumentGroupId(String paymentInstrumentGroupI } /** - * The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. - * @return paymentInstrumentGroupId The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. + * The unique identifier of the [payment instrument + * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) + * to which the payment instrument belongs. + * + * @return paymentInstrumentGroupId The unique identifier of the [payment instrument + * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) + * to which the payment instrument belongs. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_GROUP_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -502,9 +560,13 @@ public String getPaymentInstrumentGroupId() { } /** - * The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. + * The unique identifier of the [payment instrument + * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) + * to which the payment instrument belongs. * - * @param paymentInstrumentGroupId The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. + * @param paymentInstrumentGroupId The unique identifier of the [payment instrument + * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) + * to which the payment instrument belongs. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_GROUP_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -525,6 +587,7 @@ public PaymentInstrument reference(String reference) { /** * Your reference for the payment instrument, maximum 150 characters. + * * @return reference Your reference for the payment instrument, maximum 150 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -547,7 +610,8 @@ public void setReference(String reference) { /** * The unique identifier of the payment instrument that replaced this payment instrument. * - * @param replacedById The unique identifier of the payment instrument that replaced this payment instrument. + * @param replacedById The unique identifier of the payment instrument that replaced this payment + * instrument. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument replacedById(String replacedById) { @@ -557,7 +621,9 @@ public PaymentInstrument replacedById(String replacedById) { /** * The unique identifier of the payment instrument that replaced this payment instrument. - * @return replacedById The unique identifier of the payment instrument that replaced this payment instrument. + * + * @return replacedById The unique identifier of the payment instrument that replaced this payment + * instrument. */ @JsonProperty(JSON_PROPERTY_REPLACED_BY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -568,7 +634,8 @@ public String getReplacedById() { /** * The unique identifier of the payment instrument that replaced this payment instrument. * - * @param replacedById The unique identifier of the payment instrument that replaced this payment instrument. + * @param replacedById The unique identifier of the payment instrument that replaced this payment + * instrument. */ @JsonProperty(JSON_PROPERTY_REPLACED_BY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -579,7 +646,8 @@ public void setReplacedById(String replacedById) { /** * The unique identifier of the payment instrument that is replaced by this payment instrument. * - * @param replacementOfId The unique identifier of the payment instrument that is replaced by this payment instrument. + * @param replacementOfId The unique identifier of the payment instrument that is replaced by this + * payment instrument. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument replacementOfId(String replacementOfId) { @@ -589,7 +657,9 @@ public PaymentInstrument replacementOfId(String replacementOfId) { /** * The unique identifier of the payment instrument that is replaced by this payment instrument. - * @return replacementOfId The unique identifier of the payment instrument that is replaced by this payment instrument. + * + * @return replacementOfId The unique identifier of the payment instrument that is replaced by + * this payment instrument. */ @JsonProperty(JSON_PROPERTY_REPLACEMENT_OF_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -600,7 +670,8 @@ public String getReplacementOfId() { /** * The unique identifier of the payment instrument that is replaced by this payment instrument. * - * @param replacementOfId The unique identifier of the payment instrument that is replaced by this payment instrument. + * @param replacementOfId The unique identifier of the payment instrument that is replaced by this + * payment instrument. */ @JsonProperty(JSON_PROPERTY_REPLACEMENT_OF_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -609,9 +680,24 @@ public void setReplacementOfId(String replacementOfId) { } /** - * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. - * - * @param status The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment + * instrument, it is set to **active** by default. However, there can be exceptions for cards + * based on the `card.formFactor` and the `issuingCountryCode`. For example, + * when issuing physical cards in the US, the default status is **inactive**. Possible values: * + * **active**: The payment instrument is active and can be used to make payments. * **inactive**: + * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The + * payment instrument is suspended, either because it was stolen or lost. * **closed**: The + * payment instrument is permanently closed. This action cannot be undone. + * + * @param status The status of the payment instrument. If a status is not specified when creating + * a payment instrument, it is set to **active** by default. However, there can be exceptions + * for cards based on the `card.formFactor` and the `issuingCountryCode`. + * For example, when issuing physical cards in the US, the default status is **inactive**. + * Possible values: * **active**: The payment instrument is active and can be used to make + * payments. * **inactive**: The payment instrument is inactive and cannot be used to make + * payments. * **suspended**: The payment instrument is suspended, either because it was + * stolen or lost. * **closed**: The payment instrument is permanently closed. This action + * cannot be undone. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument status(StatusEnum status) { @@ -620,8 +706,24 @@ public PaymentInstrument status(StatusEnum status) { } /** - * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. - * @return status The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment + * instrument, it is set to **active** by default. However, there can be exceptions for cards + * based on the `card.formFactor` and the `issuingCountryCode`. For example, + * when issuing physical cards in the US, the default status is **inactive**. Possible values: * + * **active**: The payment instrument is active and can be used to make payments. * **inactive**: + * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The + * payment instrument is suspended, either because it was stolen or lost. * **closed**: The + * payment instrument is permanently closed. This action cannot be undone. + * + * @return status The status of the payment instrument. If a status is not specified when creating + * a payment instrument, it is set to **active** by default. However, there can be exceptions + * for cards based on the `card.formFactor` and the `issuingCountryCode`. + * For example, when issuing physical cards in the US, the default status is **inactive**. + * Possible values: * **active**: The payment instrument is active and can be used to make + * payments. * **inactive**: The payment instrument is inactive and cannot be used to make + * payments. * **suspended**: The payment instrument is suspended, either because it was + * stolen or lost. * **closed**: The payment instrument is permanently closed. This action + * cannot be undone. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -630,9 +732,24 @@ public StatusEnum getStatus() { } /** - * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment + * instrument, it is set to **active** by default. However, there can be exceptions for cards + * based on the `card.formFactor` and the `issuingCountryCode`. For example, + * when issuing physical cards in the US, the default status is **inactive**. Possible values: * + * **active**: The payment instrument is active and can be used to make payments. * **inactive**: + * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The + * payment instrument is suspended, either because it was stolen or lost. * **closed**: The + * payment instrument is permanently closed. This action cannot be undone. * - * @param status The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * @param status The status of the payment instrument. If a status is not specified when creating + * a payment instrument, it is set to **active** by default. However, there can be exceptions + * for cards based on the `card.formFactor` and the `issuingCountryCode`. + * For example, when issuing physical cards in the US, the default status is **inactive**. + * Possible values: * **active**: The payment instrument is active and can be used to make + * payments. * **inactive**: The payment instrument is inactive and cannot be used to make + * payments. * **suspended**: The payment instrument is suspended, either because it was + * stolen or lost. * **closed**: The payment instrument is permanently closed. This action + * cannot be undone. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -641,9 +758,11 @@ public void setStatus(StatusEnum status) { } /** - * The status comment provides additional information for the statusReason of the payment instrument. + * The status comment provides additional information for the statusReason of the payment + * instrument. * - * @param statusComment The status comment provides additional information for the statusReason of the payment instrument. + * @param statusComment The status comment provides additional information for the statusReason of + * the payment instrument. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument statusComment(String statusComment) { @@ -652,8 +771,11 @@ public PaymentInstrument statusComment(String statusComment) { } /** - * The status comment provides additional information for the statusReason of the payment instrument. - * @return statusComment The status comment provides additional information for the statusReason of the payment instrument. + * The status comment provides additional information for the statusReason of the payment + * instrument. + * + * @return statusComment The status comment provides additional information for the statusReason + * of the payment instrument. */ @JsonProperty(JSON_PROPERTY_STATUS_COMMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -662,9 +784,11 @@ public String getStatusComment() { } /** - * The status comment provides additional information for the statusReason of the payment instrument. + * The status comment provides additional information for the statusReason of the payment + * instrument. * - * @param statusComment The status comment provides additional information for the statusReason of the payment instrument. + * @param statusComment The status comment provides additional information for the statusReason of + * the payment instrument. */ @JsonProperty(JSON_PROPERTY_STATUS_COMMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -673,9 +797,15 @@ public void setStatusComment(String statusComment) { } /** - * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * The reason for the status of the payment instrument. Possible values: **accountClosure**, + * **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, + * **transactionRule**, **other**. If the reason is **other**, you must also send the + * `statusComment` parameter describing the status change. * - * @param statusReason The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * @param statusReason The reason for the status of the payment instrument. Possible values: + * **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, + * **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must + * also send the `statusComment` parameter describing the status change. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument statusReason(StatusReasonEnum statusReason) { @@ -684,8 +814,15 @@ public PaymentInstrument statusReason(StatusReasonEnum statusReason) { } /** - * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. - * @return statusReason The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * The reason for the status of the payment instrument. Possible values: **accountClosure**, + * **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, + * **transactionRule**, **other**. If the reason is **other**, you must also send the + * `statusComment` parameter describing the status change. + * + * @return statusReason The reason for the status of the payment instrument. Possible values: + * **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, + * **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must + * also send the `statusComment` parameter describing the status change. */ @JsonProperty(JSON_PROPERTY_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -694,9 +831,15 @@ public StatusReasonEnum getStatusReason() { } /** - * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * The reason for the status of the payment instrument. Possible values: **accountClosure**, + * **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, + * **transactionRule**, **other**. If the reason is **other**, you must also send the + * `statusComment` parameter describing the status change. * - * @param statusReason The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * @param statusReason The reason for the status of the payment instrument. Possible values: + * **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, + * **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must + * also send the `statusComment` parameter describing the status change. */ @JsonProperty(JSON_PROPERTY_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -705,9 +848,9 @@ public void setStatusReason(StatusReasonEnum statusReason) { } /** - * The type of payment instrument. Possible values: **card**, **bankAccount**. + * The type of payment instrument. Possible values: **card**, **bankAccount**. * - * @param type The type of payment instrument. Possible values: **card**, **bankAccount**. + * @param type The type of payment instrument. Possible values: **card**, **bankAccount**. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument type(TypeEnum type) { @@ -716,8 +859,9 @@ public PaymentInstrument type(TypeEnum type) { } /** - * The type of payment instrument. Possible values: **card**, **bankAccount**. - * @return type The type of payment instrument. Possible values: **card**, **bankAccount**. + * The type of payment instrument. Possible values: **card**, **bankAccount**. + * + * @return type The type of payment instrument. Possible values: **card**, **bankAccount**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -726,9 +870,9 @@ public TypeEnum getType() { } /** - * The type of payment instrument. Possible values: **card**, **bankAccount**. + * The type of payment instrument. Possible values: **card**, **bankAccount**. * - * @param type The type of payment instrument. Possible values: **card**, **bankAccount**. + * @param type The type of payment instrument. Possible values: **card**, **bankAccount**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -736,9 +880,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this PaymentInstrument object is equal to o. - */ + /** Return true if this PaymentInstrument object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -748,40 +890,61 @@ public boolean equals(Object o) { return false; } PaymentInstrument paymentInstrument = (PaymentInstrument) o; - return Objects.equals(this.additionalBankAccountIdentifications, paymentInstrument.additionalBankAccountIdentifications) && - Objects.equals(this.balanceAccountId, paymentInstrument.balanceAccountId) && - Objects.equals(this.bankAccount, paymentInstrument.bankAccount) && - Objects.equals(this.card, paymentInstrument.card) && - Objects.equals(this.description, paymentInstrument.description) && - Objects.equals(this.id, paymentInstrument.id) && - Objects.equals(this.issuingCountryCode, paymentInstrument.issuingCountryCode) && - Objects.equals(this.paymentInstrumentGroupId, paymentInstrument.paymentInstrumentGroupId) && - Objects.equals(this.reference, paymentInstrument.reference) && - Objects.equals(this.replacedById, paymentInstrument.replacedById) && - Objects.equals(this.replacementOfId, paymentInstrument.replacementOfId) && - Objects.equals(this.status, paymentInstrument.status) && - Objects.equals(this.statusComment, paymentInstrument.statusComment) && - Objects.equals(this.statusReason, paymentInstrument.statusReason) && - Objects.equals(this.type, paymentInstrument.type); + return Objects.equals( + this.additionalBankAccountIdentifications, + paymentInstrument.additionalBankAccountIdentifications) + && Objects.equals(this.balanceAccountId, paymentInstrument.balanceAccountId) + && Objects.equals(this.bankAccount, paymentInstrument.bankAccount) + && Objects.equals(this.card, paymentInstrument.card) + && Objects.equals(this.description, paymentInstrument.description) + && Objects.equals(this.id, paymentInstrument.id) + && Objects.equals(this.issuingCountryCode, paymentInstrument.issuingCountryCode) + && Objects.equals(this.paymentInstrumentGroupId, paymentInstrument.paymentInstrumentGroupId) + && Objects.equals(this.reference, paymentInstrument.reference) + && Objects.equals(this.replacedById, paymentInstrument.replacedById) + && Objects.equals(this.replacementOfId, paymentInstrument.replacementOfId) + && Objects.equals(this.status, paymentInstrument.status) + && Objects.equals(this.statusComment, paymentInstrument.statusComment) + && Objects.equals(this.statusReason, paymentInstrument.statusReason) + && Objects.equals(this.type, paymentInstrument.type); } @Override public int hashCode() { - return Objects.hash(additionalBankAccountIdentifications, balanceAccountId, bankAccount, card, description, id, issuingCountryCode, paymentInstrumentGroupId, reference, replacedById, replacementOfId, status, statusComment, statusReason, type); + return Objects.hash( + additionalBankAccountIdentifications, + balanceAccountId, + bankAccount, + card, + description, + id, + issuingCountryCode, + paymentInstrumentGroupId, + reference, + replacedById, + replacementOfId, + status, + statusComment, + statusReason, + type); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentInstrument {\n"); - sb.append(" additionalBankAccountIdentifications: ").append(toIndentedString(additionalBankAccountIdentifications)).append("\n"); + sb.append(" additionalBankAccountIdentifications: ") + .append(toIndentedString(additionalBankAccountIdentifications)) + .append("\n"); sb.append(" balanceAccountId: ").append(toIndentedString(balanceAccountId)).append("\n"); sb.append(" bankAccount: ").append(toIndentedString(bankAccount)).append("\n"); sb.append(" card: ").append(toIndentedString(card)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" issuingCountryCode: ").append(toIndentedString(issuingCountryCode)).append("\n"); - sb.append(" paymentInstrumentGroupId: ").append(toIndentedString(paymentInstrumentGroupId)).append("\n"); + sb.append(" paymentInstrumentGroupId: ") + .append(toIndentedString(paymentInstrumentGroupId)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" replacedById: ").append(toIndentedString(replacedById)).append("\n"); sb.append(" replacementOfId: ").append(toIndentedString(replacementOfId)).append("\n"); @@ -794,8 +957,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -804,7 +966,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentInstrument given an JSON string * * @param jsonString JSON string @@ -814,11 +976,12 @@ private String toIndentedString(Object o) { public static PaymentInstrument fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentInstrument.class); } -/** - * Convert an instance of PaymentInstrument to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentInstrument to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java index 3d7938c18..e851b6972 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java @@ -2,44 +2,19 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.IbanAccountIdentification; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -import com.fasterxml.jackson.core.type.TypeReference; - -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.core.Response; -import java.io.IOException; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; - import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -49,167 +24,200 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import jakarta.ws.rs.core.GenericType; +import java.io.IOException; +import java.util.*; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.logging.Level; +import java.util.logging.Logger; - -@JsonDeserialize(using = PaymentInstrumentAdditionalBankAccountIdentificationsInner.PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer.class) -@JsonSerialize(using = PaymentInstrumentAdditionalBankAccountIdentificationsInner.PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer.class) -public class PaymentInstrumentAdditionalBankAccountIdentificationsInner extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(PaymentInstrumentAdditionalBankAccountIdentificationsInner.class.getName()); - - public static class PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer extends StdSerializer { - public PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer(Class t) { - super(t); - } - - public PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer() { - this(null); - } - - @Override - public void serialize(PaymentInstrumentAdditionalBankAccountIdentificationsInner value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer extends StdDeserializer { - public PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer() { - this(PaymentInstrumentAdditionalBankAccountIdentificationsInner.class); - } - - public PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer(Class vc) { - super(vc); - } - - @Override - public PaymentInstrumentAdditionalBankAccountIdentificationsInner deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize IbanAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(IbanAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'IbanAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'IbanAccountIdentification'", e); - } - - if (match == 1) { - PaymentInstrumentAdditionalBankAccountIdentificationsInner ret = new PaymentInstrumentAdditionalBankAccountIdentificationsInner(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException(String.format("Failed deserialization for PaymentInstrumentAdditionalBankAccountIdentificationsInner: %d classes match result, expected 1", match)); - } - - /** - * Handle deserialization of the 'null' value. - */ - @Override - public PaymentInstrumentAdditionalBankAccountIdentificationsInner getNullValue(DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "PaymentInstrumentAdditionalBankAccountIdentificationsInner cannot be null"); - } +@JsonDeserialize( + using = + PaymentInstrumentAdditionalBankAccountIdentificationsInner + .PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer.class) +@JsonSerialize( + using = + PaymentInstrumentAdditionalBankAccountIdentificationsInner + .PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer.class) +public class PaymentInstrumentAdditionalBankAccountIdentificationsInner + extends AbstractOpenApiSchema { + private static final Logger log = + Logger.getLogger(PaymentInstrumentAdditionalBankAccountIdentificationsInner.class.getName()); + + public static class PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer + extends StdSerializer { + public PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer( + Class t) { + super(t); } - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public PaymentInstrumentAdditionalBankAccountIdentificationsInner() { - super("oneOf", Boolean.FALSE); + public PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer() { + this(null); } - public PaymentInstrumentAdditionalBankAccountIdentificationsInner(IbanAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + @Override + public void serialize( + PaymentInstrumentAdditionalBankAccountIdentificationsInner value, + JsonGenerator jgen, + SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); } + } - static { - schemas.put("IbanAccountIdentification", new GenericType() { - }); - JSON.registerDescendants(PaymentInstrumentAdditionalBankAccountIdentificationsInner.class, Collections.unmodifiableMap(schemas)); + public static class PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer + extends StdDeserializer { + public PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer() { + this(PaymentInstrumentAdditionalBankAccountIdentificationsInner.class); } - @Override - public Map> getSchemas() { - return PaymentInstrumentAdditionalBankAccountIdentificationsInner.schemas; + public PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer(Class vc) { + super(vc); } - /** - * Set the instance that matches the oneOf child schema, check - * the instance parameter is valid against the oneOf child schemas: - * IbanAccountIdentification - * - * It could be an instance of the 'oneOf' schemas. - * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). - */ @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(IbanAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + public PaymentInstrumentAdditionalBankAccountIdentificationsInner deserialize( + JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize IbanAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(IbanAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'IbanAccountIdentification'"); + } } - - throw new RuntimeException("Invalid instance type. Must be IbanAccountIdentification"); + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'IbanAccountIdentification'", e); + } + + if (match == 1) { + PaymentInstrumentAdditionalBankAccountIdentificationsInner ret = + new PaymentInstrumentAdditionalBankAccountIdentificationsInner(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException( + String.format( + "Failed deserialization for PaymentInstrumentAdditionalBankAccountIdentificationsInner: %d classes match result, expected 1", + match)); } - /** - * Get the actual instance, which can be the following: - * IbanAccountIdentification - * - * @return The actual instance (IbanAccountIdentification) - */ + /** Handle deserialization of the 'null' value. */ @Override - public Object getActualInstance() { - return super.getActualInstance(); + public PaymentInstrumentAdditionalBankAccountIdentificationsInner getNullValue( + DeserializationContext ctxt) throws JsonMappingException { + throw new JsonMappingException( + ctxt.getParser(), + "PaymentInstrumentAdditionalBankAccountIdentificationsInner cannot be null"); } - - /** - * Get the actual instance of `IbanAccountIdentification`. If the actual instance is not `IbanAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `IbanAccountIdentification` - * @throws ClassCastException if the instance is not `IbanAccountIdentification` - */ - public IbanAccountIdentification getIbanAccountIdentification() throws ClassCastException { - return (IbanAccountIdentification)super.getActualInstance(); - } - - - /** - * Create an instance of PaymentInstrumentAdditionalBankAccountIdentificationsInner given an JSON string - * - * @param jsonString JSON string - * @return An instance of PaymentInstrumentAdditionalBankAccountIdentificationsInner - * @throws IOException if the JSON string is invalid with respect to PaymentInstrumentAdditionalBankAccountIdentificationsInner - */ - public static PaymentInstrumentAdditionalBankAccountIdentificationsInner fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, PaymentInstrumentAdditionalBankAccountIdentificationsInner.class); - } - - /** - * Convert an instance of PaymentInstrumentAdditionalBankAccountIdentificationsInner to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); + } + + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public PaymentInstrumentAdditionalBankAccountIdentificationsInner() { + super("oneOf", Boolean.FALSE); + } + + public PaymentInstrumentAdditionalBankAccountIdentificationsInner(IbanAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("IbanAccountIdentification", new GenericType() {}); + JSON.registerDescendants( + PaymentInstrumentAdditionalBankAccountIdentificationsInner.class, + Collections.unmodifiableMap(schemas)); + } + + @Override + public Map> getSchemas() { + return PaymentInstrumentAdditionalBankAccountIdentificationsInner.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check the instance parameter is valid + * against the oneOf child schemas: IbanAccountIdentification + * + *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a + * composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(IbanAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } + throw new RuntimeException("Invalid instance type. Must be IbanAccountIdentification"); + } + + /** + * Get the actual instance, which can be the following: IbanAccountIdentification + * + * @return The actual instance (IbanAccountIdentification) + */ + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `IbanAccountIdentification`. If the actual instance is not + * `IbanAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `IbanAccountIdentification` + * @throws ClassCastException if the instance is not `IbanAccountIdentification` + */ + public IbanAccountIdentification getIbanAccountIdentification() throws ClassCastException { + return (IbanAccountIdentification) super.getActualInstance(); + } + + /** + * Create an instance of PaymentInstrumentAdditionalBankAccountIdentificationsInner given an JSON + * string + * + * @param jsonString JSON string + * @return An instance of PaymentInstrumentAdditionalBankAccountIdentificationsInner + * @throws IOException if the JSON string is invalid with respect to + * PaymentInstrumentAdditionalBankAccountIdentificationsInner + */ + public static PaymentInstrumentAdditionalBankAccountIdentificationsInner fromJson( + String jsonString) throws IOException { + return JSON.getMapper() + .readValue(jsonString, PaymentInstrumentAdditionalBankAccountIdentificationsInner.class); + } + + /** + * Convert an instance of PaymentInstrumentAdditionalBankAccountIdentificationsInner to an JSON + * string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentGroup.java b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentGroup.java index 1de7d2d1f..04a81415a 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentGroup.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentGroup.java @@ -2,33 +2,24 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.HashMap; +import java.util.Map; - -/** - * PaymentInstrumentGroup - */ +/** PaymentInstrumentGroup */ @JsonPropertyOrder({ PaymentInstrumentGroup.JSON_PROPERTY_BALANCE_PLATFORM, PaymentInstrumentGroup.JSON_PROPERTY_DESCRIPTION, @@ -37,7 +28,6 @@ PaymentInstrumentGroup.JSON_PROPERTY_REFERENCE, PaymentInstrumentGroup.JSON_PROPERTY_TX_VARIANT }) - public class PaymentInstrumentGroup { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; @@ -57,13 +47,16 @@ public class PaymentInstrumentGroup { public static final String JSON_PROPERTY_TX_VARIANT = "txVariant"; private String txVariant; - public PaymentInstrumentGroup() { - } + public PaymentInstrumentGroup() {} /** - * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs. + * The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the payment instrument group belongs. * - * @param balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs. + * @param balancePlatform The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the payment instrument group belongs. * @return the current {@code PaymentInstrumentGroup} instance, allowing for method chaining */ public PaymentInstrumentGroup balancePlatform(String balancePlatform) { @@ -72,8 +65,13 @@ public PaymentInstrumentGroup balancePlatform(String balancePlatform) { } /** - * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs. - * @return balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs. + * The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the payment instrument group belongs. + * + * @return balancePlatform The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the payment instrument group belongs. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -82,9 +80,13 @@ public String getBalancePlatform() { } /** - * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs. + * The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the payment instrument group belongs. * - * @param balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs. + * @param balancePlatform The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the payment instrument group belongs. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,6 +107,7 @@ public PaymentInstrumentGroup description(String description) { /** * Your description for the payment instrument group. + * * @return description Your description for the payment instrument group. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -137,6 +140,7 @@ public PaymentInstrumentGroup id(String id) { /** * The unique identifier of the payment instrument group. + * * @return id The unique identifier of the payment instrument group. */ @JsonProperty(JSON_PROPERTY_ID) @@ -177,6 +181,7 @@ public PaymentInstrumentGroup putPropertiesItem(String key, String propertiesIte /** * Properties of the payment instrument group. + * * @return properties Properties of the payment instrument group. */ @JsonProperty(JSON_PROPERTY_PROPERTIES) @@ -209,6 +214,7 @@ public PaymentInstrumentGroup reference(String reference) { /** * Your reference for the payment instrument group. + * * @return reference Your reference for the payment instrument group. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -241,6 +247,7 @@ public PaymentInstrumentGroup txVariant(String txVariant) { /** * The tx variant of the payment instrument group. + * * @return txVariant The tx variant of the payment instrument group. */ @JsonProperty(JSON_PROPERTY_TX_VARIANT) @@ -260,9 +267,7 @@ public void setTxVariant(String txVariant) { this.txVariant = txVariant; } - /** - * Return true if this PaymentInstrumentGroup object is equal to o. - */ + /** Return true if this PaymentInstrumentGroup object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -272,12 +277,12 @@ public boolean equals(Object o) { return false; } PaymentInstrumentGroup paymentInstrumentGroup = (PaymentInstrumentGroup) o; - return Objects.equals(this.balancePlatform, paymentInstrumentGroup.balancePlatform) && - Objects.equals(this.description, paymentInstrumentGroup.description) && - Objects.equals(this.id, paymentInstrumentGroup.id) && - Objects.equals(this.properties, paymentInstrumentGroup.properties) && - Objects.equals(this.reference, paymentInstrumentGroup.reference) && - Objects.equals(this.txVariant, paymentInstrumentGroup.txVariant); + return Objects.equals(this.balancePlatform, paymentInstrumentGroup.balancePlatform) + && Objects.equals(this.description, paymentInstrumentGroup.description) + && Objects.equals(this.id, paymentInstrumentGroup.id) + && Objects.equals(this.properties, paymentInstrumentGroup.properties) + && Objects.equals(this.reference, paymentInstrumentGroup.reference) + && Objects.equals(this.txVariant, paymentInstrumentGroup.txVariant); } @Override @@ -300,8 +305,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -310,21 +314,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentInstrumentGroup given an JSON string * * @param jsonString JSON string * @return An instance of PaymentInstrumentGroup - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentInstrumentGroup + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentInstrumentGroup */ public static PaymentInstrumentGroup fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentInstrumentGroup.class); } -/** - * Convert an instance of PaymentInstrumentGroup to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentInstrumentGroup to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentGroupInfo.java b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentGroupInfo.java index 6e8dbe1e4..fdbe8a44f 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentGroupInfo.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentGroupInfo.java @@ -2,33 +2,24 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.HashMap; +import java.util.Map; - -/** - * PaymentInstrumentGroupInfo - */ +/** PaymentInstrumentGroupInfo */ @JsonPropertyOrder({ PaymentInstrumentGroupInfo.JSON_PROPERTY_BALANCE_PLATFORM, PaymentInstrumentGroupInfo.JSON_PROPERTY_DESCRIPTION, @@ -36,7 +27,6 @@ PaymentInstrumentGroupInfo.JSON_PROPERTY_REFERENCE, PaymentInstrumentGroupInfo.JSON_PROPERTY_TX_VARIANT }) - public class PaymentInstrumentGroupInfo { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; @@ -53,13 +43,16 @@ public class PaymentInstrumentGroupInfo { public static final String JSON_PROPERTY_TX_VARIANT = "txVariant"; private String txVariant; - public PaymentInstrumentGroupInfo() { - } + public PaymentInstrumentGroupInfo() {} /** - * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs. + * The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the payment instrument group belongs. * - * @param balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs. + * @param balancePlatform The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the payment instrument group belongs. * @return the current {@code PaymentInstrumentGroupInfo} instance, allowing for method chaining */ public PaymentInstrumentGroupInfo balancePlatform(String balancePlatform) { @@ -68,8 +61,13 @@ public PaymentInstrumentGroupInfo balancePlatform(String balancePlatform) { } /** - * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs. - * @return balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs. + * The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the payment instrument group belongs. + * + * @return balancePlatform The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the payment instrument group belongs. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -78,9 +76,13 @@ public String getBalancePlatform() { } /** - * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs. + * The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the payment instrument group belongs. * - * @param balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs. + * @param balancePlatform The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the payment instrument group belongs. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,6 +103,7 @@ public PaymentInstrumentGroupInfo description(String description) { /** * Your description for the payment instrument group. + * * @return description Your description for the payment instrument group. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -141,6 +144,7 @@ public PaymentInstrumentGroupInfo putPropertiesItem(String key, String propertie /** * Properties of the payment instrument group. + * * @return properties Properties of the payment instrument group. */ @JsonProperty(JSON_PROPERTY_PROPERTIES) @@ -173,6 +177,7 @@ public PaymentInstrumentGroupInfo reference(String reference) { /** * Your reference for the payment instrument group. + * * @return reference Your reference for the payment instrument group. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -205,6 +210,7 @@ public PaymentInstrumentGroupInfo txVariant(String txVariant) { /** * The tx variant of the payment instrument group. + * * @return txVariant The tx variant of the payment instrument group. */ @JsonProperty(JSON_PROPERTY_TX_VARIANT) @@ -224,9 +230,7 @@ public void setTxVariant(String txVariant) { this.txVariant = txVariant; } - /** - * Return true if this PaymentInstrumentGroupInfo object is equal to o. - */ + /** Return true if this PaymentInstrumentGroupInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -236,11 +240,11 @@ public boolean equals(Object o) { return false; } PaymentInstrumentGroupInfo paymentInstrumentGroupInfo = (PaymentInstrumentGroupInfo) o; - return Objects.equals(this.balancePlatform, paymentInstrumentGroupInfo.balancePlatform) && - Objects.equals(this.description, paymentInstrumentGroupInfo.description) && - Objects.equals(this.properties, paymentInstrumentGroupInfo.properties) && - Objects.equals(this.reference, paymentInstrumentGroupInfo.reference) && - Objects.equals(this.txVariant, paymentInstrumentGroupInfo.txVariant); + return Objects.equals(this.balancePlatform, paymentInstrumentGroupInfo.balancePlatform) + && Objects.equals(this.description, paymentInstrumentGroupInfo.description) + && Objects.equals(this.properties, paymentInstrumentGroupInfo.properties) + && Objects.equals(this.reference, paymentInstrumentGroupInfo.reference) + && Objects.equals(this.txVariant, paymentInstrumentGroupInfo.txVariant); } @Override @@ -262,8 +266,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -272,21 +275,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentInstrumentGroupInfo given an JSON string * * @param jsonString JSON string * @return An instance of PaymentInstrumentGroupInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentInstrumentGroupInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentInstrumentGroupInfo */ - public static PaymentInstrumentGroupInfo fromJson(String jsonString) throws JsonProcessingException { + public static PaymentInstrumentGroupInfo fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentInstrumentGroupInfo.class); } -/** - * Convert an instance of PaymentInstrumentGroupInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentInstrumentGroupInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentInfo.java b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentInfo.java index e80814dec..8b24392cf 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentInfo.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentInfo.java @@ -2,33 +2,26 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.BankAccountModel; -import com.adyen.model.balanceplatform.CardInfo; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * PaymentInstrumentInfo - */ +/** PaymentInstrumentInfo */ @JsonPropertyOrder({ PaymentInstrumentInfo.JSON_PROPERTY_BALANCE_ACCOUNT_ID, PaymentInstrumentInfo.JSON_PROPERTY_BANK_ACCOUNT, @@ -42,7 +35,6 @@ PaymentInstrumentInfo.JSON_PROPERTY_STATUS_REASON, PaymentInstrumentInfo.JSON_PROPERTY_TYPE }) - public class PaymentInstrumentInfo { public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; @@ -66,10 +58,16 @@ public class PaymentInstrumentInfo { private String reference; /** - * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment + * instrument, it is set to **active** by default. However, there can be exceptions for cards + * based on the `card.formFactor` and the `issuingCountryCode`. For example, + * when issuing physical cards in the US, the default status is **inactive**. Possible values: * + * **active**: The payment instrument is active and can be used to make payments. * **inactive**: + * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The + * payment instrument is suspended, either because it was stolen or lost. * **closed**: The + * payment instrument is permanently closed. This action cannot be undone. */ public enum StatusEnum { - ACTIVE(String.valueOf("active")), CLOSED(String.valueOf("closed")), @@ -83,7 +81,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -104,7 +102,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -116,10 +118,12 @@ public static StatusEnum fromValue(String value) { private String statusComment; /** - * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * The reason for the status of the payment instrument. Possible values: **accountClosure**, + * **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, + * **transactionRule**, **other**. If the reason is **other**, you must also send the + * `statusComment` parameter describing the status change. */ public enum StatusReasonEnum { - ACCOUNTCLOSURE(String.valueOf("accountClosure")), DAMAGED(String.valueOf("damaged")), @@ -143,7 +147,7 @@ public enum StatusReasonEnum { private String value; StatusReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -164,7 +168,11 @@ public static StatusReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusReasonEnum.values())); + LOG.warning( + "StatusReasonEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusReasonEnum.values())); return null; } } @@ -172,11 +180,8 @@ public static StatusReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS_REASON = "statusReason"; private StatusReasonEnum statusReason; - /** - * The type of payment instrument. Possible values: **card**, **bankAccount**. - */ + /** The type of payment instrument. Possible values: **card**, **bankAccount**. */ public enum TypeEnum { - BANKACCOUNT(String.valueOf("bankAccount")), CARD(String.valueOf("card")); @@ -186,7 +191,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -207,7 +212,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -215,13 +224,16 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PaymentInstrumentInfo() { - } + public PaymentInstrumentInfo() {} /** - * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. + * The unique identifier of the [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) + * associated with the payment instrument. * - * @param balanceAccountId The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. + * @param balanceAccountId The unique identifier of the [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) + * associated with the payment instrument. * @return the current {@code PaymentInstrumentInfo} instance, allowing for method chaining */ public PaymentInstrumentInfo balanceAccountId(String balanceAccountId) { @@ -230,8 +242,13 @@ public PaymentInstrumentInfo balanceAccountId(String balanceAccountId) { } /** - * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. - * @return balanceAccountId The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. + * The unique identifier of the [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) + * associated with the payment instrument. + * + * @return balanceAccountId The unique identifier of the [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) + * associated with the payment instrument. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,9 +257,13 @@ public String getBalanceAccountId() { } /** - * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. + * The unique identifier of the [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) + * associated with the payment instrument. * - * @param balanceAccountId The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. + * @param balanceAccountId The unique identifier of the [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) + * associated with the payment instrument. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -253,7 +274,7 @@ public void setBalanceAccountId(String balanceAccountId) { /** * bankAccount * - * @param bankAccount + * @param bankAccount * @return the current {@code PaymentInstrumentInfo} instance, allowing for method chaining */ public PaymentInstrumentInfo bankAccount(BankAccountModel bankAccount) { @@ -263,7 +284,8 @@ public PaymentInstrumentInfo bankAccount(BankAccountModel bankAccount) { /** * Get bankAccount - * @return bankAccount + * + * @return bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -274,7 +296,7 @@ public BankAccountModel getBankAccount() { /** * bankAccount * - * @param bankAccount + * @param bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -285,7 +307,7 @@ public void setBankAccount(BankAccountModel bankAccount) { /** * card * - * @param card + * @param card * @return the current {@code PaymentInstrumentInfo} instance, allowing for method chaining */ public PaymentInstrumentInfo card(CardInfo card) { @@ -295,7 +317,8 @@ public PaymentInstrumentInfo card(CardInfo card) { /** * Get card - * @return card + * + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -306,7 +329,7 @@ public CardInfo getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -327,6 +350,7 @@ public PaymentInstrumentInfo description(String description) { /** * Your description for the payment instrument, maximum 300 characters. + * * @return description Your description for the payment instrument, maximum 300 characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -347,9 +371,12 @@ public void setDescription(String description) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code where the payment instrument is issued. For example, **NL** or **US**. * - * @param issuingCountryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. + * @param issuingCountryCode The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment + * instrument is issued. For example, **NL** or **US**. * @return the current {@code PaymentInstrumentInfo} instance, allowing for method chaining */ public PaymentInstrumentInfo issuingCountryCode(String issuingCountryCode) { @@ -358,8 +385,12 @@ public PaymentInstrumentInfo issuingCountryCode(String issuingCountryCode) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. - * @return issuingCountryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code where the payment instrument is issued. For example, **NL** or **US**. + * + * @return issuingCountryCode The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment + * instrument is issued. For example, **NL** or **US**. */ @JsonProperty(JSON_PROPERTY_ISSUING_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -368,9 +399,12 @@ public String getIssuingCountryCode() { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code where the payment instrument is issued. For example, **NL** or **US**. * - * @param issuingCountryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. + * @param issuingCountryCode The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment + * instrument is issued. For example, **NL** or **US**. */ @JsonProperty(JSON_PROPERTY_ISSUING_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -379,9 +413,13 @@ public void setIssuingCountryCode(String issuingCountryCode) { } /** - * The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. + * The unique identifier of the [payment instrument + * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) + * to which the payment instrument belongs. * - * @param paymentInstrumentGroupId The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. + * @param paymentInstrumentGroupId The unique identifier of the [payment instrument + * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) + * to which the payment instrument belongs. * @return the current {@code PaymentInstrumentInfo} instance, allowing for method chaining */ public PaymentInstrumentInfo paymentInstrumentGroupId(String paymentInstrumentGroupId) { @@ -390,8 +428,13 @@ public PaymentInstrumentInfo paymentInstrumentGroupId(String paymentInstrumentGr } /** - * The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. - * @return paymentInstrumentGroupId The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. + * The unique identifier of the [payment instrument + * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) + * to which the payment instrument belongs. + * + * @return paymentInstrumentGroupId The unique identifier of the [payment instrument + * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) + * to which the payment instrument belongs. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_GROUP_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -400,9 +443,13 @@ public String getPaymentInstrumentGroupId() { } /** - * The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. + * The unique identifier of the [payment instrument + * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) + * to which the payment instrument belongs. * - * @param paymentInstrumentGroupId The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. + * @param paymentInstrumentGroupId The unique identifier of the [payment instrument + * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) + * to which the payment instrument belongs. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_GROUP_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -423,6 +470,7 @@ public PaymentInstrumentInfo reference(String reference) { /** * Your reference for the payment instrument, maximum 150 characters. + * * @return reference Your reference for the payment instrument, maximum 150 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -443,9 +491,24 @@ public void setReference(String reference) { } /** - * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment + * instrument, it is set to **active** by default. However, there can be exceptions for cards + * based on the `card.formFactor` and the `issuingCountryCode`. For example, + * when issuing physical cards in the US, the default status is **inactive**. Possible values: * + * **active**: The payment instrument is active and can be used to make payments. * **inactive**: + * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The + * payment instrument is suspended, either because it was stolen or lost. * **closed**: The + * payment instrument is permanently closed. This action cannot be undone. * - * @param status The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * @param status The status of the payment instrument. If a status is not specified when creating + * a payment instrument, it is set to **active** by default. However, there can be exceptions + * for cards based on the `card.formFactor` and the `issuingCountryCode`. + * For example, when issuing physical cards in the US, the default status is **inactive**. + * Possible values: * **active**: The payment instrument is active and can be used to make + * payments. * **inactive**: The payment instrument is inactive and cannot be used to make + * payments. * **suspended**: The payment instrument is suspended, either because it was + * stolen or lost. * **closed**: The payment instrument is permanently closed. This action + * cannot be undone. * @return the current {@code PaymentInstrumentInfo} instance, allowing for method chaining */ public PaymentInstrumentInfo status(StatusEnum status) { @@ -454,8 +517,24 @@ public PaymentInstrumentInfo status(StatusEnum status) { } /** - * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. - * @return status The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment + * instrument, it is set to **active** by default. However, there can be exceptions for cards + * based on the `card.formFactor` and the `issuingCountryCode`. For example, + * when issuing physical cards in the US, the default status is **inactive**. Possible values: * + * **active**: The payment instrument is active and can be used to make payments. * **inactive**: + * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The + * payment instrument is suspended, either because it was stolen or lost. * **closed**: The + * payment instrument is permanently closed. This action cannot be undone. + * + * @return status The status of the payment instrument. If a status is not specified when creating + * a payment instrument, it is set to **active** by default. However, there can be exceptions + * for cards based on the `card.formFactor` and the `issuingCountryCode`. + * For example, when issuing physical cards in the US, the default status is **inactive**. + * Possible values: * **active**: The payment instrument is active and can be used to make + * payments. * **inactive**: The payment instrument is inactive and cannot be used to make + * payments. * **suspended**: The payment instrument is suspended, either because it was + * stolen or lost. * **closed**: The payment instrument is permanently closed. This action + * cannot be undone. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -464,9 +543,24 @@ public StatusEnum getStatus() { } /** - * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment + * instrument, it is set to **active** by default. However, there can be exceptions for cards + * based on the `card.formFactor` and the `issuingCountryCode`. For example, + * when issuing physical cards in the US, the default status is **inactive**. Possible values: * + * **active**: The payment instrument is active and can be used to make payments. * **inactive**: + * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The + * payment instrument is suspended, either because it was stolen or lost. * **closed**: The + * payment instrument is permanently closed. This action cannot be undone. * - * @param status The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * @param status The status of the payment instrument. If a status is not specified when creating + * a payment instrument, it is set to **active** by default. However, there can be exceptions + * for cards based on the `card.formFactor` and the `issuingCountryCode`. + * For example, when issuing physical cards in the US, the default status is **inactive**. + * Possible values: * **active**: The payment instrument is active and can be used to make + * payments. * **inactive**: The payment instrument is inactive and cannot be used to make + * payments. * **suspended**: The payment instrument is suspended, either because it was + * stolen or lost. * **closed**: The payment instrument is permanently closed. This action + * cannot be undone. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -475,9 +569,11 @@ public void setStatus(StatusEnum status) { } /** - * The status comment provides additional information for the statusReason of the payment instrument. + * The status comment provides additional information for the statusReason of the payment + * instrument. * - * @param statusComment The status comment provides additional information for the statusReason of the payment instrument. + * @param statusComment The status comment provides additional information for the statusReason of + * the payment instrument. * @return the current {@code PaymentInstrumentInfo} instance, allowing for method chaining */ public PaymentInstrumentInfo statusComment(String statusComment) { @@ -486,8 +582,11 @@ public PaymentInstrumentInfo statusComment(String statusComment) { } /** - * The status comment provides additional information for the statusReason of the payment instrument. - * @return statusComment The status comment provides additional information for the statusReason of the payment instrument. + * The status comment provides additional information for the statusReason of the payment + * instrument. + * + * @return statusComment The status comment provides additional information for the statusReason + * of the payment instrument. */ @JsonProperty(JSON_PROPERTY_STATUS_COMMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -496,9 +595,11 @@ public String getStatusComment() { } /** - * The status comment provides additional information for the statusReason of the payment instrument. + * The status comment provides additional information for the statusReason of the payment + * instrument. * - * @param statusComment The status comment provides additional information for the statusReason of the payment instrument. + * @param statusComment The status comment provides additional information for the statusReason of + * the payment instrument. */ @JsonProperty(JSON_PROPERTY_STATUS_COMMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -507,9 +608,15 @@ public void setStatusComment(String statusComment) { } /** - * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * The reason for the status of the payment instrument. Possible values: **accountClosure**, + * **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, + * **transactionRule**, **other**. If the reason is **other**, you must also send the + * `statusComment` parameter describing the status change. * - * @param statusReason The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * @param statusReason The reason for the status of the payment instrument. Possible values: + * **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, + * **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must + * also send the `statusComment` parameter describing the status change. * @return the current {@code PaymentInstrumentInfo} instance, allowing for method chaining */ public PaymentInstrumentInfo statusReason(StatusReasonEnum statusReason) { @@ -518,8 +625,15 @@ public PaymentInstrumentInfo statusReason(StatusReasonEnum statusReason) { } /** - * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. - * @return statusReason The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * The reason for the status of the payment instrument. Possible values: **accountClosure**, + * **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, + * **transactionRule**, **other**. If the reason is **other**, you must also send the + * `statusComment` parameter describing the status change. + * + * @return statusReason The reason for the status of the payment instrument. Possible values: + * **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, + * **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must + * also send the `statusComment` parameter describing the status change. */ @JsonProperty(JSON_PROPERTY_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -528,9 +642,15 @@ public StatusReasonEnum getStatusReason() { } /** - * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * The reason for the status of the payment instrument. Possible values: **accountClosure**, + * **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, + * **transactionRule**, **other**. If the reason is **other**, you must also send the + * `statusComment` parameter describing the status change. * - * @param statusReason The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * @param statusReason The reason for the status of the payment instrument. Possible values: + * **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, + * **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must + * also send the `statusComment` parameter describing the status change. */ @JsonProperty(JSON_PROPERTY_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -539,9 +659,9 @@ public void setStatusReason(StatusReasonEnum statusReason) { } /** - * The type of payment instrument. Possible values: **card**, **bankAccount**. + * The type of payment instrument. Possible values: **card**, **bankAccount**. * - * @param type The type of payment instrument. Possible values: **card**, **bankAccount**. + * @param type The type of payment instrument. Possible values: **card**, **bankAccount**. * @return the current {@code PaymentInstrumentInfo} instance, allowing for method chaining */ public PaymentInstrumentInfo type(TypeEnum type) { @@ -550,8 +670,9 @@ public PaymentInstrumentInfo type(TypeEnum type) { } /** - * The type of payment instrument. Possible values: **card**, **bankAccount**. - * @return type The type of payment instrument. Possible values: **card**, **bankAccount**. + * The type of payment instrument. Possible values: **card**, **bankAccount**. + * + * @return type The type of payment instrument. Possible values: **card**, **bankAccount**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -560,9 +681,9 @@ public TypeEnum getType() { } /** - * The type of payment instrument. Possible values: **card**, **bankAccount**. + * The type of payment instrument. Possible values: **card**, **bankAccount**. * - * @param type The type of payment instrument. Possible values: **card**, **bankAccount**. + * @param type The type of payment instrument. Possible values: **card**, **bankAccount**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -570,9 +691,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this PaymentInstrumentInfo object is equal to o. - */ + /** Return true if this PaymentInstrumentInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -582,22 +701,34 @@ public boolean equals(Object o) { return false; } PaymentInstrumentInfo paymentInstrumentInfo = (PaymentInstrumentInfo) o; - return Objects.equals(this.balanceAccountId, paymentInstrumentInfo.balanceAccountId) && - Objects.equals(this.bankAccount, paymentInstrumentInfo.bankAccount) && - Objects.equals(this.card, paymentInstrumentInfo.card) && - Objects.equals(this.description, paymentInstrumentInfo.description) && - Objects.equals(this.issuingCountryCode, paymentInstrumentInfo.issuingCountryCode) && - Objects.equals(this.paymentInstrumentGroupId, paymentInstrumentInfo.paymentInstrumentGroupId) && - Objects.equals(this.reference, paymentInstrumentInfo.reference) && - Objects.equals(this.status, paymentInstrumentInfo.status) && - Objects.equals(this.statusComment, paymentInstrumentInfo.statusComment) && - Objects.equals(this.statusReason, paymentInstrumentInfo.statusReason) && - Objects.equals(this.type, paymentInstrumentInfo.type); + return Objects.equals(this.balanceAccountId, paymentInstrumentInfo.balanceAccountId) + && Objects.equals(this.bankAccount, paymentInstrumentInfo.bankAccount) + && Objects.equals(this.card, paymentInstrumentInfo.card) + && Objects.equals(this.description, paymentInstrumentInfo.description) + && Objects.equals(this.issuingCountryCode, paymentInstrumentInfo.issuingCountryCode) + && Objects.equals( + this.paymentInstrumentGroupId, paymentInstrumentInfo.paymentInstrumentGroupId) + && Objects.equals(this.reference, paymentInstrumentInfo.reference) + && Objects.equals(this.status, paymentInstrumentInfo.status) + && Objects.equals(this.statusComment, paymentInstrumentInfo.statusComment) + && Objects.equals(this.statusReason, paymentInstrumentInfo.statusReason) + && Objects.equals(this.type, paymentInstrumentInfo.type); } @Override public int hashCode() { - return Objects.hash(balanceAccountId, bankAccount, card, description, issuingCountryCode, paymentInstrumentGroupId, reference, status, statusComment, statusReason, type); + return Objects.hash( + balanceAccountId, + bankAccount, + card, + description, + issuingCountryCode, + paymentInstrumentGroupId, + reference, + status, + statusComment, + statusReason, + type); } @Override @@ -609,7 +740,9 @@ public String toString() { sb.append(" card: ").append(toIndentedString(card)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" issuingCountryCode: ").append(toIndentedString(issuingCountryCode)).append("\n"); - sb.append(" paymentInstrumentGroupId: ").append(toIndentedString(paymentInstrumentGroupId)).append("\n"); + sb.append(" paymentInstrumentGroupId: ") + .append(toIndentedString(paymentInstrumentGroupId)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" statusComment: ").append(toIndentedString(statusComment)).append("\n"); @@ -620,8 +753,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -630,21 +762,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentInstrumentInfo given an JSON string * * @param jsonString JSON string * @return An instance of PaymentInstrumentInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentInstrumentInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentInstrumentInfo */ public static PaymentInstrumentInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentInstrumentInfo.class); } -/** - * Convert an instance of PaymentInstrumentInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentInstrumentInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRequirement.java b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRequirement.java index 91033c7a9..60fb0e6b3 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRequirement.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRequirement.java @@ -2,33 +2,28 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * PaymentInstrumentRequirement - */ +/** PaymentInstrumentRequirement */ @JsonPropertyOrder({ PaymentInstrumentRequirement.JSON_PROPERTY_DESCRIPTION, PaymentInstrumentRequirement.JSON_PROPERTY_ISSUING_COUNTRY_CODE, @@ -37,7 +32,6 @@ PaymentInstrumentRequirement.JSON_PROPERTY_PAYMENT_INSTRUMENT_TYPE, PaymentInstrumentRequirement.JSON_PROPERTY_TYPE }) - public class PaymentInstrumentRequirement { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -48,14 +42,15 @@ public class PaymentInstrumentRequirement { public static final String JSON_PROPERTY_ISSUING_COUNTRY_CODES = "issuingCountryCodes"; private List issuingCountryCodes; - public static final String JSON_PROPERTY_ONLY_FOR_CROSS_BALANCE_PLATFORM = "onlyForCrossBalancePlatform"; + public static final String JSON_PROPERTY_ONLY_FOR_CROSS_BALANCE_PLATFORM = + "onlyForCrossBalancePlatform"; private Boolean onlyForCrossBalancePlatform; /** - * The type of the payment instrument. For example, \"BankAccount\" or \"Card\". + * The type of the payment instrument. For example, \"BankAccount\" or + * \"Card\". */ public enum PaymentInstrumentTypeEnum { - BANKACCOUNT(String.valueOf("BankAccount")), CARD(String.valueOf("Card")); @@ -65,7 +60,7 @@ public enum PaymentInstrumentTypeEnum { private String value; PaymentInstrumentTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -86,7 +81,11 @@ public static PaymentInstrumentTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PaymentInstrumentTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PaymentInstrumentTypeEnum.values())); + LOG.warning( + "PaymentInstrumentTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PaymentInstrumentTypeEnum.values())); return null; } } @@ -94,11 +93,8 @@ public static PaymentInstrumentTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT_TYPE = "paymentInstrumentType"; private PaymentInstrumentTypeEnum paymentInstrumentType; - /** - * **paymentInstrumentRequirement** - */ + /** **paymentInstrumentRequirement** */ public enum TypeEnum { - PAYMENTINSTRUMENTREQUIREMENT(String.valueOf("paymentInstrumentRequirement")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -106,7 +102,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -127,7 +123,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -135,13 +135,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PaymentInstrumentRequirement() { - } + public PaymentInstrumentRequirement() {} /** - * Specifies the requirements for the payment instrument that need to be included in the request for a particular route. + * Specifies the requirements for the payment instrument that need to be included in the request + * for a particular route. * - * @param description Specifies the requirements for the payment instrument that need to be included in the request for a particular route. + * @param description Specifies the requirements for the payment instrument that need to be + * included in the request for a particular route. * @return the current {@code PaymentInstrumentRequirement} instance, allowing for method chaining */ public PaymentInstrumentRequirement description(String description) { @@ -150,8 +151,11 @@ public PaymentInstrumentRequirement description(String description) { } /** - * Specifies the requirements for the payment instrument that need to be included in the request for a particular route. - * @return description Specifies the requirements for the payment instrument that need to be included in the request for a particular route. + * Specifies the requirements for the payment instrument that need to be included in the request + * for a particular route. + * + * @return description Specifies the requirements for the payment instrument that need to be + * included in the request for a particular route. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,9 +164,11 @@ public String getDescription() { } /** - * Specifies the requirements for the payment instrument that need to be included in the request for a particular route. + * Specifies the requirements for the payment instrument that need to be included in the request + * for a particular route. * - * @param description Specifies the requirements for the payment instrument that need to be included in the request for a particular route. + * @param description Specifies the requirements for the payment instrument that need to be + * included in the request for a particular route. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -171,9 +177,12 @@ public void setDescription(String description) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code where the payment instrument is issued. For example, **NL** or **US**. * - * @param issuingCountryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. + * @param issuingCountryCode The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment + * instrument is issued. For example, **NL** or **US**. * @return the current {@code PaymentInstrumentRequirement} instance, allowing for method chaining */ public PaymentInstrumentRequirement issuingCountryCode(String issuingCountryCode) { @@ -182,8 +191,12 @@ public PaymentInstrumentRequirement issuingCountryCode(String issuingCountryCode } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. - * @return issuingCountryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code where the payment instrument is issued. For example, **NL** or **US**. + * + * @return issuingCountryCode The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment + * instrument is issued. For example, **NL** or **US**. */ @JsonProperty(JSON_PROPERTY_ISSUING_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,9 +205,12 @@ public String getIssuingCountryCode() { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code where the payment instrument is issued. For example, **NL** or **US**. * - * @param issuingCountryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. + * @param issuingCountryCode The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment + * instrument is issued. For example, **NL** or **US**. */ @JsonProperty(JSON_PROPERTY_ISSUING_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -205,7 +221,8 @@ public void setIssuingCountryCode(String issuingCountryCode) { /** * The two-character ISO-3166-1 alpha-2 country code list for payment instruments. * - * @param issuingCountryCodes The two-character ISO-3166-1 alpha-2 country code list for payment instruments. + * @param issuingCountryCodes The two-character ISO-3166-1 alpha-2 country code list for payment + * instruments. * @return the current {@code PaymentInstrumentRequirement} instance, allowing for method chaining */ public PaymentInstrumentRequirement issuingCountryCodes(List issuingCountryCodes) { @@ -223,7 +240,9 @@ public PaymentInstrumentRequirement addIssuingCountryCodesItem(String issuingCou /** * The two-character ISO-3166-1 alpha-2 country code list for payment instruments. - * @return issuingCountryCodes The two-character ISO-3166-1 alpha-2 country code list for payment instruments. + * + * @return issuingCountryCodes The two-character ISO-3166-1 alpha-2 country code list for payment + * instruments. */ @JsonProperty(JSON_PROPERTY_ISSUING_COUNTRY_CODES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -234,7 +253,8 @@ public List getIssuingCountryCodes() { /** * The two-character ISO-3166-1 alpha-2 country code list for payment instruments. * - * @param issuingCountryCodes The two-character ISO-3166-1 alpha-2 country code list for payment instruments. + * @param issuingCountryCodes The two-character ISO-3166-1 alpha-2 country code list for payment + * instruments. */ @JsonProperty(JSON_PROPERTY_ISSUING_COUNTRY_CODES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -245,17 +265,21 @@ public void setIssuingCountryCodes(List issuingCountryCodes) { /** * Specifies if the requirement only applies to transfers to another balance platform. * - * @param onlyForCrossBalancePlatform Specifies if the requirement only applies to transfers to another balance platform. + * @param onlyForCrossBalancePlatform Specifies if the requirement only applies to transfers to + * another balance platform. * @return the current {@code PaymentInstrumentRequirement} instance, allowing for method chaining */ - public PaymentInstrumentRequirement onlyForCrossBalancePlatform(Boolean onlyForCrossBalancePlatform) { + public PaymentInstrumentRequirement onlyForCrossBalancePlatform( + Boolean onlyForCrossBalancePlatform) { this.onlyForCrossBalancePlatform = onlyForCrossBalancePlatform; return this; } /** * Specifies if the requirement only applies to transfers to another balance platform. - * @return onlyForCrossBalancePlatform Specifies if the requirement only applies to transfers to another balance platform. + * + * @return onlyForCrossBalancePlatform Specifies if the requirement only applies to transfers to + * another balance platform. */ @JsonProperty(JSON_PROPERTY_ONLY_FOR_CROSS_BALANCE_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -266,7 +290,8 @@ public Boolean getOnlyForCrossBalancePlatform() { /** * Specifies if the requirement only applies to transfers to another balance platform. * - * @param onlyForCrossBalancePlatform Specifies if the requirement only applies to transfers to another balance platform. + * @param onlyForCrossBalancePlatform Specifies if the requirement only applies to transfers to + * another balance platform. */ @JsonProperty(JSON_PROPERTY_ONLY_FOR_CROSS_BALANCE_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -275,19 +300,25 @@ public void setOnlyForCrossBalancePlatform(Boolean onlyForCrossBalancePlatform) } /** - * The type of the payment instrument. For example, \"BankAccount\" or \"Card\". + * The type of the payment instrument. For example, \"BankAccount\" or + * \"Card\". * - * @param paymentInstrumentType The type of the payment instrument. For example, \"BankAccount\" or \"Card\". + * @param paymentInstrumentType The type of the payment instrument. For example, + * \"BankAccount\" or \"Card\". * @return the current {@code PaymentInstrumentRequirement} instance, allowing for method chaining */ - public PaymentInstrumentRequirement paymentInstrumentType(PaymentInstrumentTypeEnum paymentInstrumentType) { + public PaymentInstrumentRequirement paymentInstrumentType( + PaymentInstrumentTypeEnum paymentInstrumentType) { this.paymentInstrumentType = paymentInstrumentType; return this; } /** - * The type of the payment instrument. For example, \"BankAccount\" or \"Card\". - * @return paymentInstrumentType The type of the payment instrument. For example, \"BankAccount\" or \"Card\". + * The type of the payment instrument. For example, \"BankAccount\" or + * \"Card\". + * + * @return paymentInstrumentType The type of the payment instrument. For example, + * \"BankAccount\" or \"Card\". */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -296,9 +327,11 @@ public PaymentInstrumentTypeEnum getPaymentInstrumentType() { } /** - * The type of the payment instrument. For example, \"BankAccount\" or \"Card\". + * The type of the payment instrument. For example, \"BankAccount\" or + * \"Card\". * - * @param paymentInstrumentType The type of the payment instrument. For example, \"BankAccount\" or \"Card\". + * @param paymentInstrumentType The type of the payment instrument. For example, + * \"BankAccount\" or \"Card\". */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -319,6 +352,7 @@ public PaymentInstrumentRequirement type(TypeEnum type) { /** * **paymentInstrumentRequirement** + * * @return type **paymentInstrumentRequirement** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -338,9 +372,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this PaymentInstrumentRequirement object is equal to o. - */ + /** Return true if this PaymentInstrumentRequirement object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -350,17 +382,27 @@ public boolean equals(Object o) { return false; } PaymentInstrumentRequirement paymentInstrumentRequirement = (PaymentInstrumentRequirement) o; - return Objects.equals(this.description, paymentInstrumentRequirement.description) && - Objects.equals(this.issuingCountryCode, paymentInstrumentRequirement.issuingCountryCode) && - Objects.equals(this.issuingCountryCodes, paymentInstrumentRequirement.issuingCountryCodes) && - Objects.equals(this.onlyForCrossBalancePlatform, paymentInstrumentRequirement.onlyForCrossBalancePlatform) && - Objects.equals(this.paymentInstrumentType, paymentInstrumentRequirement.paymentInstrumentType) && - Objects.equals(this.type, paymentInstrumentRequirement.type); + return Objects.equals(this.description, paymentInstrumentRequirement.description) + && Objects.equals(this.issuingCountryCode, paymentInstrumentRequirement.issuingCountryCode) + && Objects.equals( + this.issuingCountryCodes, paymentInstrumentRequirement.issuingCountryCodes) + && Objects.equals( + this.onlyForCrossBalancePlatform, + paymentInstrumentRequirement.onlyForCrossBalancePlatform) + && Objects.equals( + this.paymentInstrumentType, paymentInstrumentRequirement.paymentInstrumentType) + && Objects.equals(this.type, paymentInstrumentRequirement.type); } @Override public int hashCode() { - return Objects.hash(description, issuingCountryCode, issuingCountryCodes, onlyForCrossBalancePlatform, paymentInstrumentType, type); + return Objects.hash( + description, + issuingCountryCode, + issuingCountryCodes, + onlyForCrossBalancePlatform, + paymentInstrumentType, + type); } @Override @@ -369,17 +411,22 @@ public String toString() { sb.append("class PaymentInstrumentRequirement {\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" issuingCountryCode: ").append(toIndentedString(issuingCountryCode)).append("\n"); - sb.append(" issuingCountryCodes: ").append(toIndentedString(issuingCountryCodes)).append("\n"); - sb.append(" onlyForCrossBalancePlatform: ").append(toIndentedString(onlyForCrossBalancePlatform)).append("\n"); - sb.append(" paymentInstrumentType: ").append(toIndentedString(paymentInstrumentType)).append("\n"); + sb.append(" issuingCountryCodes: ") + .append(toIndentedString(issuingCountryCodes)) + .append("\n"); + sb.append(" onlyForCrossBalancePlatform: ") + .append(toIndentedString(onlyForCrossBalancePlatform)) + .append("\n"); + sb.append(" paymentInstrumentType: ") + .append(toIndentedString(paymentInstrumentType)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -388,21 +435,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentInstrumentRequirement given an JSON string * * @param jsonString JSON string * @return An instance of PaymentInstrumentRequirement - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentInstrumentRequirement + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentInstrumentRequirement */ - public static PaymentInstrumentRequirement fromJson(String jsonString) throws JsonProcessingException { + public static PaymentInstrumentRequirement fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentInstrumentRequirement.class); } -/** - * Convert an instance of PaymentInstrumentRequirement to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentInstrumentRequirement to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealInfo.java b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealInfo.java index a527c6132..3772295b1 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealInfo.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealInfo.java @@ -2,38 +2,27 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.Expiry; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * PaymentInstrumentRevealInfo - */ +/** PaymentInstrumentRevealInfo */ @JsonPropertyOrder({ PaymentInstrumentRevealInfo.JSON_PROPERTY_CVC, PaymentInstrumentRevealInfo.JSON_PROPERTY_EXPIRATION, PaymentInstrumentRevealInfo.JSON_PROPERTY_PAN }) - public class PaymentInstrumentRevealInfo { public static final String JSON_PROPERTY_CVC = "cvc"; private String cvc; @@ -44,8 +33,7 @@ public class PaymentInstrumentRevealInfo { public static final String JSON_PROPERTY_PAN = "pan"; private String pan; - public PaymentInstrumentRevealInfo() { - } + public PaymentInstrumentRevealInfo() {} /** * The CVC2 value of the card. @@ -60,6 +48,7 @@ public PaymentInstrumentRevealInfo cvc(String cvc) { /** * The CVC2 value of the card. + * * @return cvc The CVC2 value of the card. */ @JsonProperty(JSON_PROPERTY_CVC) @@ -82,7 +71,7 @@ public void setCvc(String cvc) { /** * expiration * - * @param expiration + * @param expiration * @return the current {@code PaymentInstrumentRevealInfo} instance, allowing for method chaining */ public PaymentInstrumentRevealInfo expiration(Expiry expiration) { @@ -92,7 +81,8 @@ public PaymentInstrumentRevealInfo expiration(Expiry expiration) { /** * Get expiration - * @return expiration + * + * @return expiration */ @JsonProperty(JSON_PROPERTY_EXPIRATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -103,7 +93,7 @@ public Expiry getExpiration() { /** * expiration * - * @param expiration + * @param expiration */ @JsonProperty(JSON_PROPERTY_EXPIRATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,6 +114,7 @@ public PaymentInstrumentRevealInfo pan(String pan) { /** * The primary account number (PAN) of the card. + * * @return pan The primary account number (PAN) of the card. */ @JsonProperty(JSON_PROPERTY_PAN) @@ -143,9 +134,7 @@ public void setPan(String pan) { this.pan = pan; } - /** - * Return true if this PaymentInstrumentRevealInfo object is equal to o. - */ + /** Return true if this PaymentInstrumentRevealInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -155,9 +144,9 @@ public boolean equals(Object o) { return false; } PaymentInstrumentRevealInfo paymentInstrumentRevealInfo = (PaymentInstrumentRevealInfo) o; - return Objects.equals(this.cvc, paymentInstrumentRevealInfo.cvc) && - Objects.equals(this.expiration, paymentInstrumentRevealInfo.expiration) && - Objects.equals(this.pan, paymentInstrumentRevealInfo.pan); + return Objects.equals(this.cvc, paymentInstrumentRevealInfo.cvc) + && Objects.equals(this.expiration, paymentInstrumentRevealInfo.expiration) + && Objects.equals(this.pan, paymentInstrumentRevealInfo.pan); } @Override @@ -177,8 +166,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -187,21 +175,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentInstrumentRevealInfo given an JSON string * * @param jsonString JSON string * @return An instance of PaymentInstrumentRevealInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentInstrumentRevealInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentInstrumentRevealInfo */ - public static PaymentInstrumentRevealInfo fromJson(String jsonString) throws JsonProcessingException { + public static PaymentInstrumentRevealInfo fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentInstrumentRevealInfo.class); } -/** - * Convert an instance of PaymentInstrumentRevealInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentInstrumentRevealInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealRequest.java b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealRequest.java index 3ddf1c350..600da23f1 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealRequest.java @@ -2,36 +2,26 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * PaymentInstrumentRevealRequest - */ +/** PaymentInstrumentRevealRequest */ @JsonPropertyOrder({ PaymentInstrumentRevealRequest.JSON_PROPERTY_ENCRYPTED_KEY, PaymentInstrumentRevealRequest.JSON_PROPERTY_PAYMENT_INSTRUMENT_ID }) - public class PaymentInstrumentRevealRequest { public static final String JSON_PROPERTY_ENCRYPTED_KEY = "encryptedKey"; private String encryptedKey; @@ -39,14 +29,18 @@ public class PaymentInstrumentRevealRequest { public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT_ID = "paymentInstrumentId"; private String paymentInstrumentId; - public PaymentInstrumentRevealRequest() { - } + public PaymentInstrumentRevealRequest() {} /** - * The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. + * The symmetric session key that you encrypted with the [public + * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received + * from Adyen. * - * @param encryptedKey The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. - * @return the current {@code PaymentInstrumentRevealRequest} instance, allowing for method chaining + * @param encryptedKey The symmetric session key that you encrypted with the [public + * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received + * from Adyen. + * @return the current {@code PaymentInstrumentRevealRequest} instance, allowing for method + * chaining */ public PaymentInstrumentRevealRequest encryptedKey(String encryptedKey) { this.encryptedKey = encryptedKey; @@ -54,8 +48,13 @@ public PaymentInstrumentRevealRequest encryptedKey(String encryptedKey) { } /** - * The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. - * @return encryptedKey The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. + * The symmetric session key that you encrypted with the [public + * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received + * from Adyen. + * + * @return encryptedKey The symmetric session key that you encrypted with the [public + * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received + * from Adyen. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +63,13 @@ public String getEncryptedKey() { } /** - * The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. + * The symmetric session key that you encrypted with the [public + * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received + * from Adyen. * - * @param encryptedKey The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. + * @param encryptedKey The symmetric session key that you encrypted with the [public + * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received + * from Adyen. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,10 +78,13 @@ public void setEncryptedKey(String encryptedKey) { } /** - * The unique identifier of the payment instrument, which is the card for which you are managing the PIN. + * The unique identifier of the payment instrument, which is the card for which you are managing + * the PIN. * - * @param paymentInstrumentId The unique identifier of the payment instrument, which is the card for which you are managing the PIN. - * @return the current {@code PaymentInstrumentRevealRequest} instance, allowing for method chaining + * @param paymentInstrumentId The unique identifier of the payment instrument, which is the card + * for which you are managing the PIN. + * @return the current {@code PaymentInstrumentRevealRequest} instance, allowing for method + * chaining */ public PaymentInstrumentRevealRequest paymentInstrumentId(String paymentInstrumentId) { this.paymentInstrumentId = paymentInstrumentId; @@ -86,8 +92,11 @@ public PaymentInstrumentRevealRequest paymentInstrumentId(String paymentInstrume } /** - * The unique identifier of the payment instrument, which is the card for which you are managing the PIN. - * @return paymentInstrumentId The unique identifier of the payment instrument, which is the card for which you are managing the PIN. + * The unique identifier of the payment instrument, which is the card for which you are managing + * the PIN. + * + * @return paymentInstrumentId The unique identifier of the payment instrument, which is the card + * for which you are managing the PIN. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +105,11 @@ public String getPaymentInstrumentId() { } /** - * The unique identifier of the payment instrument, which is the card for which you are managing the PIN. + * The unique identifier of the payment instrument, which is the card for which you are managing + * the PIN. * - * @param paymentInstrumentId The unique identifier of the payment instrument, which is the card for which you are managing the PIN. + * @param paymentInstrumentId The unique identifier of the payment instrument, which is the card + * for which you are managing the PIN. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +117,7 @@ public void setPaymentInstrumentId(String paymentInstrumentId) { this.paymentInstrumentId = paymentInstrumentId; } - /** - * Return true if this PaymentInstrumentRevealRequest object is equal to o. - */ + /** Return true if this PaymentInstrumentRevealRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -117,9 +126,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaymentInstrumentRevealRequest paymentInstrumentRevealRequest = (PaymentInstrumentRevealRequest) o; - return Objects.equals(this.encryptedKey, paymentInstrumentRevealRequest.encryptedKey) && - Objects.equals(this.paymentInstrumentId, paymentInstrumentRevealRequest.paymentInstrumentId); + PaymentInstrumentRevealRequest paymentInstrumentRevealRequest = + (PaymentInstrumentRevealRequest) o; + return Objects.equals(this.encryptedKey, paymentInstrumentRevealRequest.encryptedKey) + && Objects.equals( + this.paymentInstrumentId, paymentInstrumentRevealRequest.paymentInstrumentId); } @Override @@ -132,14 +143,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentInstrumentRevealRequest {\n"); sb.append(" encryptedKey: ").append(toIndentedString(encryptedKey)).append("\n"); - sb.append(" paymentInstrumentId: ").append(toIndentedString(paymentInstrumentId)).append("\n"); + sb.append(" paymentInstrumentId: ") + .append(toIndentedString(paymentInstrumentId)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +160,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentInstrumentRevealRequest given an JSON string * * @param jsonString JSON string * @return An instance of PaymentInstrumentRevealRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentInstrumentRevealRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentInstrumentRevealRequest */ - public static PaymentInstrumentRevealRequest fromJson(String jsonString) throws JsonProcessingException { + public static PaymentInstrumentRevealRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentInstrumentRevealRequest.class); } -/** - * Convert an instance of PaymentInstrumentRevealRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentInstrumentRevealRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealResponse.java b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealResponse.java index d67be13e8..960d44b62 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealResponse.java @@ -2,47 +2,35 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * PaymentInstrumentRevealResponse - */ -@JsonPropertyOrder({ - PaymentInstrumentRevealResponse.JSON_PROPERTY_ENCRYPTED_DATA -}) - +/** PaymentInstrumentRevealResponse */ +@JsonPropertyOrder({PaymentInstrumentRevealResponse.JSON_PROPERTY_ENCRYPTED_DATA}) public class PaymentInstrumentRevealResponse { public static final String JSON_PROPERTY_ENCRYPTED_DATA = "encryptedData"; private String encryptedData; - public PaymentInstrumentRevealResponse() { - } + public PaymentInstrumentRevealResponse() {} /** * The data encrypted using the `encryptedKey`. * * @param encryptedData The data encrypted using the `encryptedKey`. - * @return the current {@code PaymentInstrumentRevealResponse} instance, allowing for method chaining + * @return the current {@code PaymentInstrumentRevealResponse} instance, allowing for method + * chaining */ public PaymentInstrumentRevealResponse encryptedData(String encryptedData) { this.encryptedData = encryptedData; @@ -51,6 +39,7 @@ public PaymentInstrumentRevealResponse encryptedData(String encryptedData) { /** * The data encrypted using the `encryptedKey`. + * * @return encryptedData The data encrypted using the `encryptedKey`. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_DATA) @@ -70,9 +59,7 @@ public void setEncryptedData(String encryptedData) { this.encryptedData = encryptedData; } - /** - * Return true if this PaymentInstrumentRevealResponse object is equal to o. - */ + /** Return true if this PaymentInstrumentRevealResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -81,7 +68,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaymentInstrumentRevealResponse paymentInstrumentRevealResponse = (PaymentInstrumentRevealResponse) o; + PaymentInstrumentRevealResponse paymentInstrumentRevealResponse = + (PaymentInstrumentRevealResponse) o; return Objects.equals(this.encryptedData, paymentInstrumentRevealResponse.encryptedData); } @@ -100,8 +88,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +97,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentInstrumentRevealResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaymentInstrumentRevealResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentInstrumentRevealResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentInstrumentRevealResponse */ - public static PaymentInstrumentRevealResponse fromJson(String jsonString) throws JsonProcessingException { + public static PaymentInstrumentRevealResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentInstrumentRevealResponse.class); } -/** - * Convert an instance of PaymentInstrumentRevealResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentInstrumentRevealResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentUpdateRequest.java b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentUpdateRequest.java index 6d6885f66..20cb3a261 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentUpdateRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentUpdateRequest.java @@ -2,32 +2,26 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.CardInfo; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * PaymentInstrumentUpdateRequest - */ +/** PaymentInstrumentUpdateRequest */ @JsonPropertyOrder({ PaymentInstrumentUpdateRequest.JSON_PROPERTY_BALANCE_ACCOUNT_ID, PaymentInstrumentUpdateRequest.JSON_PROPERTY_CARD, @@ -35,7 +29,6 @@ PaymentInstrumentUpdateRequest.JSON_PROPERTY_STATUS_COMMENT, PaymentInstrumentUpdateRequest.JSON_PROPERTY_STATUS_REASON }) - public class PaymentInstrumentUpdateRequest { public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; @@ -44,10 +37,16 @@ public class PaymentInstrumentUpdateRequest { private CardInfo card; /** - * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment + * instrument, it is set to **active** by default. However, there can be exceptions for cards + * based on the `card.formFactor` and the `issuingCountryCode`. For example, + * when issuing physical cards in the US, the default status is **inactive**. Possible values: * + * **active**: The payment instrument is active and can be used to make payments. * **inactive**: + * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The + * payment instrument is suspended, either because it was stolen or lost. * **closed**: The + * payment instrument is permanently closed. This action cannot be undone. */ public enum StatusEnum { - ACTIVE(String.valueOf("active")), CLOSED(String.valueOf("closed")), @@ -61,7 +60,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -82,7 +81,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -94,10 +97,12 @@ public static StatusEnum fromValue(String value) { private String statusComment; /** - * The reason for updating the status of the payment instrument. Possible values: **lost**, **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, **accountClosure**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * The reason for updating the status of the payment instrument. Possible values: **lost**, + * **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, **accountClosure**, + * **other**. If the reason is **other**, you must also send the `statusComment` + * parameter describing the status change. */ public enum StatusReasonEnum { - ACCOUNTCLOSURE(String.valueOf("accountClosure")), DAMAGED(String.valueOf("damaged")), @@ -121,7 +126,7 @@ public enum StatusReasonEnum { private String value; StatusReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -142,7 +147,11 @@ public static StatusReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusReasonEnum.values())); + LOG.warning( + "StatusReasonEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusReasonEnum.values())); return null; } } @@ -150,14 +159,17 @@ public static StatusReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS_REASON = "statusReason"; private StatusReasonEnum statusReason; - public PaymentInstrumentUpdateRequest() { - } + public PaymentInstrumentUpdateRequest() {} /** - * The unique identifier of the balance account associated with this payment instrument. >You can only change the balance account ID if the payment instrument has **inactive** status. + * The unique identifier of the balance account associated with this payment instrument. >You + * can only change the balance account ID if the payment instrument has **inactive** status. * - * @param balanceAccountId The unique identifier of the balance account associated with this payment instrument. >You can only change the balance account ID if the payment instrument has **inactive** status. - * @return the current {@code PaymentInstrumentUpdateRequest} instance, allowing for method chaining + * @param balanceAccountId The unique identifier of the balance account associated with this + * payment instrument. >You can only change the balance account ID if the payment + * instrument has **inactive** status. + * @return the current {@code PaymentInstrumentUpdateRequest} instance, allowing for method + * chaining */ public PaymentInstrumentUpdateRequest balanceAccountId(String balanceAccountId) { this.balanceAccountId = balanceAccountId; @@ -165,8 +177,12 @@ public PaymentInstrumentUpdateRequest balanceAccountId(String balanceAccountId) } /** - * The unique identifier of the balance account associated with this payment instrument. >You can only change the balance account ID if the payment instrument has **inactive** status. - * @return balanceAccountId The unique identifier of the balance account associated with this payment instrument. >You can only change the balance account ID if the payment instrument has **inactive** status. + * The unique identifier of the balance account associated with this payment instrument. >You + * can only change the balance account ID if the payment instrument has **inactive** status. + * + * @return balanceAccountId The unique identifier of the balance account associated with this + * payment instrument. >You can only change the balance account ID if the payment + * instrument has **inactive** status. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -175,9 +191,12 @@ public String getBalanceAccountId() { } /** - * The unique identifier of the balance account associated with this payment instrument. >You can only change the balance account ID if the payment instrument has **inactive** status. + * The unique identifier of the balance account associated with this payment instrument. >You + * can only change the balance account ID if the payment instrument has **inactive** status. * - * @param balanceAccountId The unique identifier of the balance account associated with this payment instrument. >You can only change the balance account ID if the payment instrument has **inactive** status. + * @param balanceAccountId The unique identifier of the balance account associated with this + * payment instrument. >You can only change the balance account ID if the payment + * instrument has **inactive** status. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,8 +207,9 @@ public void setBalanceAccountId(String balanceAccountId) { /** * card * - * @param card - * @return the current {@code PaymentInstrumentUpdateRequest} instance, allowing for method chaining + * @param card + * @return the current {@code PaymentInstrumentUpdateRequest} instance, allowing for method + * chaining */ public PaymentInstrumentUpdateRequest card(CardInfo card) { this.card = card; @@ -198,7 +218,8 @@ public PaymentInstrumentUpdateRequest card(CardInfo card) { /** * Get card - * @return card + * + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -209,7 +230,7 @@ public CardInfo getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -218,10 +239,26 @@ public void setCard(CardInfo card) { } /** - * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment + * instrument, it is set to **active** by default. However, there can be exceptions for cards + * based on the `card.formFactor` and the `issuingCountryCode`. For example, + * when issuing physical cards in the US, the default status is **inactive**. Possible values: * + * **active**: The payment instrument is active and can be used to make payments. * **inactive**: + * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The + * payment instrument is suspended, either because it was stolen or lost. * **closed**: The + * payment instrument is permanently closed. This action cannot be undone. * - * @param status The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. - * @return the current {@code PaymentInstrumentUpdateRequest} instance, allowing for method chaining + * @param status The status of the payment instrument. If a status is not specified when creating + * a payment instrument, it is set to **active** by default. However, there can be exceptions + * for cards based on the `card.formFactor` and the `issuingCountryCode`. + * For example, when issuing physical cards in the US, the default status is **inactive**. + * Possible values: * **active**: The payment instrument is active and can be used to make + * payments. * **inactive**: The payment instrument is inactive and cannot be used to make + * payments. * **suspended**: The payment instrument is suspended, either because it was + * stolen or lost. * **closed**: The payment instrument is permanently closed. This action + * cannot be undone. + * @return the current {@code PaymentInstrumentUpdateRequest} instance, allowing for method + * chaining */ public PaymentInstrumentUpdateRequest status(StatusEnum status) { this.status = status; @@ -229,8 +266,24 @@ public PaymentInstrumentUpdateRequest status(StatusEnum status) { } /** - * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. - * @return status The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment + * instrument, it is set to **active** by default. However, there can be exceptions for cards + * based on the `card.formFactor` and the `issuingCountryCode`. For example, + * when issuing physical cards in the US, the default status is **inactive**. Possible values: * + * **active**: The payment instrument is active and can be used to make payments. * **inactive**: + * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The + * payment instrument is suspended, either because it was stolen or lost. * **closed**: The + * payment instrument is permanently closed. This action cannot be undone. + * + * @return status The status of the payment instrument. If a status is not specified when creating + * a payment instrument, it is set to **active** by default. However, there can be exceptions + * for cards based on the `card.formFactor` and the `issuingCountryCode`. + * For example, when issuing physical cards in the US, the default status is **inactive**. + * Possible values: * **active**: The payment instrument is active and can be used to make + * payments. * **inactive**: The payment instrument is inactive and cannot be used to make + * payments. * **suspended**: The payment instrument is suspended, either because it was + * stolen or lost. * **closed**: The payment instrument is permanently closed. This action + * cannot be undone. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -239,9 +292,24 @@ public StatusEnum getStatus() { } /** - * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment + * instrument, it is set to **active** by default. However, there can be exceptions for cards + * based on the `card.formFactor` and the `issuingCountryCode`. For example, + * when issuing physical cards in the US, the default status is **inactive**. Possible values: * + * **active**: The payment instrument is active and can be used to make payments. * **inactive**: + * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The + * payment instrument is suspended, either because it was stolen or lost. * **closed**: The + * payment instrument is permanently closed. This action cannot be undone. * - * @param status The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * @param status The status of the payment instrument. If a status is not specified when creating + * a payment instrument, it is set to **active** by default. However, there can be exceptions + * for cards based on the `card.formFactor` and the `issuingCountryCode`. + * For example, when issuing physical cards in the US, the default status is **inactive**. + * Possible values: * **active**: The payment instrument is active and can be used to make + * payments. * **inactive**: The payment instrument is inactive and cannot be used to make + * payments. * **suspended**: The payment instrument is suspended, either because it was + * stolen or lost. * **closed**: The payment instrument is permanently closed. This action + * cannot be undone. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,10 +318,13 @@ public void setStatus(StatusEnum status) { } /** - * Comment for the status of the payment instrument. Required if `statusReason` is **other**. + * Comment for the status of the payment instrument. Required if `statusReason` is + * **other**. * - * @param statusComment Comment for the status of the payment instrument. Required if `statusReason` is **other**. - * @return the current {@code PaymentInstrumentUpdateRequest} instance, allowing for method chaining + * @param statusComment Comment for the status of the payment instrument. Required if + * `statusReason` is **other**. + * @return the current {@code PaymentInstrumentUpdateRequest} instance, allowing for method + * chaining */ public PaymentInstrumentUpdateRequest statusComment(String statusComment) { this.statusComment = statusComment; @@ -261,8 +332,11 @@ public PaymentInstrumentUpdateRequest statusComment(String statusComment) { } /** - * Comment for the status of the payment instrument. Required if `statusReason` is **other**. - * @return statusComment Comment for the status of the payment instrument. Required if `statusReason` is **other**. + * Comment for the status of the payment instrument. Required if `statusReason` is + * **other**. + * + * @return statusComment Comment for the status of the payment instrument. Required if + * `statusReason` is **other**. */ @JsonProperty(JSON_PROPERTY_STATUS_COMMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -271,9 +345,11 @@ public String getStatusComment() { } /** - * Comment for the status of the payment instrument. Required if `statusReason` is **other**. + * Comment for the status of the payment instrument. Required if `statusReason` is + * **other**. * - * @param statusComment Comment for the status of the payment instrument. Required if `statusReason` is **other**. + * @param statusComment Comment for the status of the payment instrument. Required if + * `statusReason` is **other**. */ @JsonProperty(JSON_PROPERTY_STATUS_COMMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -282,10 +358,17 @@ public void setStatusComment(String statusComment) { } /** - * The reason for updating the status of the payment instrument. Possible values: **lost**, **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, **accountClosure**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * The reason for updating the status of the payment instrument. Possible values: **lost**, + * **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, **accountClosure**, + * **other**. If the reason is **other**, you must also send the `statusComment` + * parameter describing the status change. * - * @param statusReason The reason for updating the status of the payment instrument. Possible values: **lost**, **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, **accountClosure**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. - * @return the current {@code PaymentInstrumentUpdateRequest} instance, allowing for method chaining + * @param statusReason The reason for updating the status of the payment instrument. Possible + * values: **lost**, **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, + * **accountClosure**, **other**. If the reason is **other**, you must also send the + * `statusComment` parameter describing the status change. + * @return the current {@code PaymentInstrumentUpdateRequest} instance, allowing for method + * chaining */ public PaymentInstrumentUpdateRequest statusReason(StatusReasonEnum statusReason) { this.statusReason = statusReason; @@ -293,8 +376,15 @@ public PaymentInstrumentUpdateRequest statusReason(StatusReasonEnum statusReason } /** - * The reason for updating the status of the payment instrument. Possible values: **lost**, **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, **accountClosure**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. - * @return statusReason The reason for updating the status of the payment instrument. Possible values: **lost**, **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, **accountClosure**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * The reason for updating the status of the payment instrument. Possible values: **lost**, + * **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, **accountClosure**, + * **other**. If the reason is **other**, you must also send the `statusComment` + * parameter describing the status change. + * + * @return statusReason The reason for updating the status of the payment instrument. Possible + * values: **lost**, **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, + * **accountClosure**, **other**. If the reason is **other**, you must also send the + * `statusComment` parameter describing the status change. */ @JsonProperty(JSON_PROPERTY_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -303,9 +393,15 @@ public StatusReasonEnum getStatusReason() { } /** - * The reason for updating the status of the payment instrument. Possible values: **lost**, **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, **accountClosure**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * The reason for updating the status of the payment instrument. Possible values: **lost**, + * **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, **accountClosure**, + * **other**. If the reason is **other**, you must also send the `statusComment` + * parameter describing the status change. * - * @param statusReason The reason for updating the status of the payment instrument. Possible values: **lost**, **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, **accountClosure**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * @param statusReason The reason for updating the status of the payment instrument. Possible + * values: **lost**, **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, + * **accountClosure**, **other**. If the reason is **other**, you must also send the + * `statusComment` parameter describing the status change. */ @JsonProperty(JSON_PROPERTY_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -313,9 +409,7 @@ public void setStatusReason(StatusReasonEnum statusReason) { this.statusReason = statusReason; } - /** - * Return true if this PaymentInstrumentUpdateRequest object is equal to o. - */ + /** Return true if this PaymentInstrumentUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -324,12 +418,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaymentInstrumentUpdateRequest paymentInstrumentUpdateRequest = (PaymentInstrumentUpdateRequest) o; - return Objects.equals(this.balanceAccountId, paymentInstrumentUpdateRequest.balanceAccountId) && - Objects.equals(this.card, paymentInstrumentUpdateRequest.card) && - Objects.equals(this.status, paymentInstrumentUpdateRequest.status) && - Objects.equals(this.statusComment, paymentInstrumentUpdateRequest.statusComment) && - Objects.equals(this.statusReason, paymentInstrumentUpdateRequest.statusReason); + PaymentInstrumentUpdateRequest paymentInstrumentUpdateRequest = + (PaymentInstrumentUpdateRequest) o; + return Objects.equals(this.balanceAccountId, paymentInstrumentUpdateRequest.balanceAccountId) + && Objects.equals(this.card, paymentInstrumentUpdateRequest.card) + && Objects.equals(this.status, paymentInstrumentUpdateRequest.status) + && Objects.equals(this.statusComment, paymentInstrumentUpdateRequest.statusComment) + && Objects.equals(this.statusReason, paymentInstrumentUpdateRequest.statusReason); } @Override @@ -351,8 +446,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -361,21 +455,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentInstrumentUpdateRequest given an JSON string * * @param jsonString JSON string * @return An instance of PaymentInstrumentUpdateRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentInstrumentUpdateRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentInstrumentUpdateRequest */ - public static PaymentInstrumentUpdateRequest fromJson(String jsonString) throws JsonProcessingException { + public static PaymentInstrumentUpdateRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentInstrumentUpdateRequest.class); } -/** - * Convert an instance of PaymentInstrumentUpdateRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentInstrumentUpdateRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/Phone.java b/src/main/java/com/adyen/model/balanceplatform/Phone.java index 0b108334c..6d10d0f8e 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Phone.java +++ b/src/main/java/com/adyen/model/balanceplatform/Phone.java @@ -2,45 +2,33 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * Phone - */ -@JsonPropertyOrder({ - Phone.JSON_PROPERTY_NUMBER, - Phone.JSON_PROPERTY_TYPE -}) - +/** Phone */ +@JsonPropertyOrder({Phone.JSON_PROPERTY_NUMBER, Phone.JSON_PROPERTY_TYPE}) public class Phone { public static final String JSON_PROPERTY_NUMBER = "number"; private String number; - /** - * Type of phone number. Possible values: **Landline**, **Mobile**. - */ + /** Type of phone number. Possible values: **Landline**, **Mobile**. */ public enum TypeEnum { - LANDLINE(String.valueOf("landline")), MOBILE(String.valueOf("mobile")); @@ -50,7 +38,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -71,7 +59,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -79,13 +71,15 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public Phone() { - } + public Phone() {} /** - * The full phone number provided as a single string. For example, **\"0031 6 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. + * The full phone number provided as a single string. For example, **\"0031 6 11 22 33 + * 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. * - * @param number The full phone number provided as a single string. For example, **\"0031 6 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. + * @param number The full phone number provided as a single string. For example, **\"0031 6 + * 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) + * 611223344\"**. * @return the current {@code Phone} instance, allowing for method chaining */ public Phone number(String number) { @@ -94,8 +88,12 @@ public Phone number(String number) { } /** - * The full phone number provided as a single string. For example, **\"0031 6 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. - * @return number The full phone number provided as a single string. For example, **\"0031 6 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. + * The full phone number provided as a single string. For example, **\"0031 6 11 22 33 + * 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. + * + * @return number The full phone number provided as a single string. For example, **\"0031 6 + * 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) + * 611223344\"**. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,9 +102,12 @@ public String getNumber() { } /** - * The full phone number provided as a single string. For example, **\"0031 6 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. + * The full phone number provided as a single string. For example, **\"0031 6 11 22 33 + * 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. * - * @param number The full phone number provided as a single string. For example, **\"0031 6 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. + * @param number The full phone number provided as a single string. For example, **\"0031 6 + * 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) + * 611223344\"**. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,9 +116,9 @@ public void setNumber(String number) { } /** - * Type of phone number. Possible values: **Landline**, **Mobile**. + * Type of phone number. Possible values: **Landline**, **Mobile**. * - * @param type Type of phone number. Possible values: **Landline**, **Mobile**. + * @param type Type of phone number. Possible values: **Landline**, **Mobile**. * @return the current {@code Phone} instance, allowing for method chaining */ public Phone type(TypeEnum type) { @@ -126,8 +127,9 @@ public Phone type(TypeEnum type) { } /** - * Type of phone number. Possible values: **Landline**, **Mobile**. - * @return type Type of phone number. Possible values: **Landline**, **Mobile**. + * Type of phone number. Possible values: **Landline**, **Mobile**. + * + * @return type Type of phone number. Possible values: **Landline**, **Mobile**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,9 +138,9 @@ public TypeEnum getType() { } /** - * Type of phone number. Possible values: **Landline**, **Mobile**. + * Type of phone number. Possible values: **Landline**, **Mobile**. * - * @param type Type of phone number. Possible values: **Landline**, **Mobile**. + * @param type Type of phone number. Possible values: **Landline**, **Mobile**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,9 +148,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this Phone object is equal to o. - */ + /** Return true if this Phone object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -158,8 +158,7 @@ public boolean equals(Object o) { return false; } Phone phone = (Phone) o; - return Objects.equals(this.number, phone.number) && - Objects.equals(this.type, phone.type); + return Objects.equals(this.number, phone.number) && Objects.equals(this.type, phone.type); } @Override @@ -178,8 +177,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -188,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Phone given an JSON string * * @param jsonString JSON string @@ -198,11 +196,12 @@ private String toIndentedString(Object o) { public static Phone fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Phone.class); } -/** - * Convert an instance of Phone to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Phone to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PhoneNumber.java b/src/main/java/com/adyen/model/balanceplatform/PhoneNumber.java index 164230b31..cdc93e935 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PhoneNumber.java +++ b/src/main/java/com/adyen/model/balanceplatform/PhoneNumber.java @@ -2,37 +2,31 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * PhoneNumber - */ +/** PhoneNumber */ @JsonPropertyOrder({ PhoneNumber.JSON_PROPERTY_PHONE_COUNTRY_CODE, PhoneNumber.JSON_PROPERTY_PHONE_NUMBER, PhoneNumber.JSON_PROPERTY_PHONE_TYPE }) - public class PhoneNumber { public static final String JSON_PROPERTY_PHONE_COUNTRY_CODE = "phoneCountryCode"; private String phoneCountryCode; @@ -40,11 +34,8 @@ public class PhoneNumber { public static final String JSON_PROPERTY_PHONE_NUMBER = "phoneNumber"; private String phoneNumber; - /** - * The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. - */ + /** The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. */ public enum PhoneTypeEnum { - FAX(String.valueOf("Fax")), LANDLINE(String.valueOf("Landline")), @@ -58,7 +49,7 @@ public enum PhoneTypeEnum { private String value; PhoneTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -79,7 +70,11 @@ public static PhoneTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PhoneTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PhoneTypeEnum.values())); + LOG.warning( + "PhoneTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PhoneTypeEnum.values())); return null; } } @@ -87,13 +82,14 @@ public static PhoneTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_PHONE_TYPE = "phoneType"; private PhoneTypeEnum phoneType; - public PhoneNumber() { - } + public PhoneNumber() {} /** - * The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or **NL**. + * The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or + * **NL**. * - * @param phoneCountryCode The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or **NL**. + * @param phoneCountryCode The two-character ISO-3166-1 alpha-2 country code of the phone number. + * For example, **US** or **NL**. * @return the current {@code PhoneNumber} instance, allowing for method chaining */ public PhoneNumber phoneCountryCode(String phoneCountryCode) { @@ -102,8 +98,11 @@ public PhoneNumber phoneCountryCode(String phoneCountryCode) { } /** - * The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or **NL**. - * @return phoneCountryCode The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or **NL**. + * The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or + * **NL**. + * + * @return phoneCountryCode The two-character ISO-3166-1 alpha-2 country code of the phone number. + * For example, **US** or **NL**. */ @JsonProperty(JSON_PROPERTY_PHONE_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,9 +111,11 @@ public String getPhoneCountryCode() { } /** - * The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or **NL**. + * The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or + * **NL**. * - * @param phoneCountryCode The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or **NL**. + * @param phoneCountryCode The two-character ISO-3166-1 alpha-2 country code of the phone number. + * For example, **US** or **NL**. */ @JsonProperty(JSON_PROPERTY_PHONE_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,7 +126,8 @@ public void setPhoneCountryCode(String phoneCountryCode) { /** * The phone number. The inclusion of the phone number country code is not necessary. * - * @param phoneNumber The phone number. The inclusion of the phone number country code is not necessary. + * @param phoneNumber The phone number. The inclusion of the phone number country code is not + * necessary. * @return the current {@code PhoneNumber} instance, allowing for method chaining */ public PhoneNumber phoneNumber(String phoneNumber) { @@ -135,7 +137,9 @@ public PhoneNumber phoneNumber(String phoneNumber) { /** * The phone number. The inclusion of the phone number country code is not necessary. - * @return phoneNumber The phone number. The inclusion of the phone number country code is not necessary. + * + * @return phoneNumber The phone number. The inclusion of the phone number country code is not + * necessary. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,7 +150,8 @@ public String getPhoneNumber() { /** * The phone number. The inclusion of the phone number country code is not necessary. * - * @param phoneNumber The phone number. The inclusion of the phone number country code is not necessary. + * @param phoneNumber The phone number. The inclusion of the phone number country code is not + * necessary. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -157,7 +162,8 @@ public void setPhoneNumber(String phoneNumber) { /** * The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. * - * @param phoneType The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. + * @param phoneType The type of the phone number. Possible values: **Landline**, **Mobile**, + * **SIP**, **Fax**. * @return the current {@code PhoneNumber} instance, allowing for method chaining */ public PhoneNumber phoneType(PhoneTypeEnum phoneType) { @@ -167,7 +173,9 @@ public PhoneNumber phoneType(PhoneTypeEnum phoneType) { /** * The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. - * @return phoneType The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. + * + * @return phoneType The type of the phone number. Possible values: **Landline**, **Mobile**, + * **SIP**, **Fax**. */ @JsonProperty(JSON_PROPERTY_PHONE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,7 +186,8 @@ public PhoneTypeEnum getPhoneType() { /** * The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. * - * @param phoneType The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. + * @param phoneType The type of the phone number. Possible values: **Landline**, **Mobile**, + * **SIP**, **Fax**. */ @JsonProperty(JSON_PROPERTY_PHONE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,9 +195,7 @@ public void setPhoneType(PhoneTypeEnum phoneType) { this.phoneType = phoneType; } - /** - * Return true if this PhoneNumber object is equal to o. - */ + /** Return true if this PhoneNumber object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -198,9 +205,9 @@ public boolean equals(Object o) { return false; } PhoneNumber phoneNumber = (PhoneNumber) o; - return Objects.equals(this.phoneCountryCode, phoneNumber.phoneCountryCode) && - Objects.equals(this.phoneNumber, phoneNumber.phoneNumber) && - Objects.equals(this.phoneType, phoneNumber.phoneType); + return Objects.equals(this.phoneCountryCode, phoneNumber.phoneCountryCode) + && Objects.equals(this.phoneNumber, phoneNumber.phoneNumber) + && Objects.equals(this.phoneType, phoneNumber.phoneType); } @Override @@ -220,8 +227,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -230,7 +236,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PhoneNumber given an JSON string * * @param jsonString JSON string @@ -240,11 +246,12 @@ private String toIndentedString(Object o) { public static PhoneNumber fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PhoneNumber.class); } -/** - * Convert an instance of PhoneNumber to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PhoneNumber to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PinChangeRequest.java b/src/main/java/com/adyen/model/balanceplatform/PinChangeRequest.java index 7bdf8df19..ccc1df0a2 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PinChangeRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/PinChangeRequest.java @@ -2,38 +2,28 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * PinChangeRequest - */ +/** PinChangeRequest */ @JsonPropertyOrder({ PinChangeRequest.JSON_PROPERTY_ENCRYPTED_KEY, PinChangeRequest.JSON_PROPERTY_ENCRYPTED_PIN_BLOCK, PinChangeRequest.JSON_PROPERTY_PAYMENT_INSTRUMENT_ID, PinChangeRequest.JSON_PROPERTY_TOKEN }) - public class PinChangeRequest { public static final String JSON_PROPERTY_ENCRYPTED_KEY = "encryptedKey"; private String encryptedKey; @@ -47,13 +37,16 @@ public class PinChangeRequest { public static final String JSON_PROPERTY_TOKEN = "token"; private String token; - public PinChangeRequest() { - } + public PinChangeRequest() {} /** - * The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. + * The symmetric session key that you encrypted with the [public + * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received + * from Adyen. * - * @param encryptedKey The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. + * @param encryptedKey The symmetric session key that you encrypted with the [public + * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received + * from Adyen. * @return the current {@code PinChangeRequest} instance, allowing for method chaining */ public PinChangeRequest encryptedKey(String encryptedKey) { @@ -62,8 +55,13 @@ public PinChangeRequest encryptedKey(String encryptedKey) { } /** - * The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. - * @return encryptedKey The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. + * The symmetric session key that you encrypted with the [public + * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received + * from Adyen. + * + * @return encryptedKey The symmetric session key that you encrypted with the [public + * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received + * from Adyen. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -72,9 +70,13 @@ public String getEncryptedKey() { } /** - * The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. + * The symmetric session key that you encrypted with the [public + * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received + * from Adyen. * - * @param encryptedKey The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. + * @param encryptedKey The symmetric session key that you encrypted with the [public + * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received + * from Adyen. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -85,7 +87,8 @@ public void setEncryptedKey(String encryptedKey) { /** * The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block). * - * @param encryptedPinBlock The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block). + * @param encryptedPinBlock The encrypted [PIN + * block](https://www.pcisecuritystandards.org/glossary/pin-block). * @return the current {@code PinChangeRequest} instance, allowing for method chaining */ public PinChangeRequest encryptedPinBlock(String encryptedPinBlock) { @@ -95,7 +98,9 @@ public PinChangeRequest encryptedPinBlock(String encryptedPinBlock) { /** * The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block). - * @return encryptedPinBlock The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block). + * + * @return encryptedPinBlock The encrypted [PIN + * block](https://www.pcisecuritystandards.org/glossary/pin-block). */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_PIN_BLOCK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,7 +111,8 @@ public String getEncryptedPinBlock() { /** * The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block). * - * @param encryptedPinBlock The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block). + * @param encryptedPinBlock The encrypted [PIN + * block](https://www.pcisecuritystandards.org/glossary/pin-block). */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_PIN_BLOCK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,9 +121,11 @@ public void setEncryptedPinBlock(String encryptedPinBlock) { } /** - * The unique identifier of the payment instrument, which is the card for which you are managing the PIN. + * The unique identifier of the payment instrument, which is the card for which you are managing + * the PIN. * - * @param paymentInstrumentId The unique identifier of the payment instrument, which is the card for which you are managing the PIN. + * @param paymentInstrumentId The unique identifier of the payment instrument, which is the card + * for which you are managing the PIN. * @return the current {@code PinChangeRequest} instance, allowing for method chaining */ public PinChangeRequest paymentInstrumentId(String paymentInstrumentId) { @@ -126,8 +134,11 @@ public PinChangeRequest paymentInstrumentId(String paymentInstrumentId) { } /** - * The unique identifier of the payment instrument, which is the card for which you are managing the PIN. - * @return paymentInstrumentId The unique identifier of the payment instrument, which is the card for which you are managing the PIN. + * The unique identifier of the payment instrument, which is the card for which you are managing + * the PIN. + * + * @return paymentInstrumentId The unique identifier of the payment instrument, which is the card + * for which you are managing the PIN. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,9 +147,11 @@ public String getPaymentInstrumentId() { } /** - * The unique identifier of the payment instrument, which is the card for which you are managing the PIN. + * The unique identifier of the payment instrument, which is the card for which you are managing + * the PIN. * - * @param paymentInstrumentId The unique identifier of the payment instrument, which is the card for which you are managing the PIN. + * @param paymentInstrumentId The unique identifier of the payment instrument, which is the card + * for which you are managing the PIN. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,6 +172,7 @@ public PinChangeRequest token(String token) { /** * The 16-digit token that you used to generate the `encryptedPinBlock`. + * * @return token The 16-digit token that you used to generate the `encryptedPinBlock`. */ @JsonProperty(JSON_PROPERTY_TOKEN) @@ -178,9 +192,7 @@ public void setToken(String token) { this.token = token; } - /** - * Return true if this PinChangeRequest object is equal to o. - */ + /** Return true if this PinChangeRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -190,10 +202,10 @@ public boolean equals(Object o) { return false; } PinChangeRequest pinChangeRequest = (PinChangeRequest) o; - return Objects.equals(this.encryptedKey, pinChangeRequest.encryptedKey) && - Objects.equals(this.encryptedPinBlock, pinChangeRequest.encryptedPinBlock) && - Objects.equals(this.paymentInstrumentId, pinChangeRequest.paymentInstrumentId) && - Objects.equals(this.token, pinChangeRequest.token); + return Objects.equals(this.encryptedKey, pinChangeRequest.encryptedKey) + && Objects.equals(this.encryptedPinBlock, pinChangeRequest.encryptedPinBlock) + && Objects.equals(this.paymentInstrumentId, pinChangeRequest.paymentInstrumentId) + && Objects.equals(this.token, pinChangeRequest.token); } @Override @@ -207,15 +219,16 @@ public String toString() { sb.append("class PinChangeRequest {\n"); sb.append(" encryptedKey: ").append(toIndentedString(encryptedKey)).append("\n"); sb.append(" encryptedPinBlock: ").append(toIndentedString(encryptedPinBlock)).append("\n"); - sb.append(" paymentInstrumentId: ").append(toIndentedString(paymentInstrumentId)).append("\n"); + sb.append(" paymentInstrumentId: ") + .append(toIndentedString(paymentInstrumentId)) + .append("\n"); sb.append(" token: ").append(toIndentedString(token)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,7 +237,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PinChangeRequest given an JSON string * * @param jsonString JSON string @@ -234,11 +247,12 @@ private String toIndentedString(Object o) { public static PinChangeRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PinChangeRequest.class); } -/** - * Convert an instance of PinChangeRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PinChangeRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PinChangeResponse.java b/src/main/java/com/adyen/model/balanceplatform/PinChangeResponse.java index 343dba9bf..e917de51c 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PinChangeResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/PinChangeResponse.java @@ -2,41 +2,33 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * PinChangeResponse - */ -@JsonPropertyOrder({ - PinChangeResponse.JSON_PROPERTY_STATUS -}) - +/** PinChangeResponse */ +@JsonPropertyOrder({PinChangeResponse.JSON_PROPERTY_STATUS}) public class PinChangeResponse { /** - * The status of the request for PIN change. Possible values: **completed**, **pending**, **unavailable**. + * The status of the request for PIN change. Possible values: **completed**, **pending**, + * **unavailable**. */ public enum StatusEnum { - COMPLETED(String.valueOf("completed")), PENDING(String.valueOf("pending")), @@ -48,7 +40,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +61,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -77,13 +73,14 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; - public PinChangeResponse() { - } + public PinChangeResponse() {} /** - * The status of the request for PIN change. Possible values: **completed**, **pending**, **unavailable**. + * The status of the request for PIN change. Possible values: **completed**, **pending**, + * **unavailable**. * - * @param status The status of the request for PIN change. Possible values: **completed**, **pending**, **unavailable**. + * @param status The status of the request for PIN change. Possible values: **completed**, + * **pending**, **unavailable**. * @return the current {@code PinChangeResponse} instance, allowing for method chaining */ public PinChangeResponse status(StatusEnum status) { @@ -92,8 +89,11 @@ public PinChangeResponse status(StatusEnum status) { } /** - * The status of the request for PIN change. Possible values: **completed**, **pending**, **unavailable**. - * @return status The status of the request for PIN change. Possible values: **completed**, **pending**, **unavailable**. + * The status of the request for PIN change. Possible values: **completed**, **pending**, + * **unavailable**. + * + * @return status The status of the request for PIN change. Possible values: **completed**, + * **pending**, **unavailable**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,9 +102,11 @@ public StatusEnum getStatus() { } /** - * The status of the request for PIN change. Possible values: **completed**, **pending**, **unavailable**. + * The status of the request for PIN change. Possible values: **completed**, **pending**, + * **unavailable**. * - * @param status The status of the request for PIN change. Possible values: **completed**, **pending**, **unavailable**. + * @param status The status of the request for PIN change. Possible values: **completed**, + * **pending**, **unavailable**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,9 +114,7 @@ public void setStatus(StatusEnum status) { this.status = status; } - /** - * Return true if this PinChangeResponse object is equal to o. - */ + /** Return true if this PinChangeResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -142,8 +142,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -152,7 +151,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PinChangeResponse given an JSON string * * @param jsonString JSON string @@ -162,11 +161,12 @@ private String toIndentedString(Object o) { public static PinChangeResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PinChangeResponse.class); } -/** - * Convert an instance of PinChangeResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PinChangeResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PlatformPaymentConfiguration.java b/src/main/java/com/adyen/model/balanceplatform/PlatformPaymentConfiguration.java index 3188d3202..b4cc3b6e1 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PlatformPaymentConfiguration.java +++ b/src/main/java/com/adyen/model/balanceplatform/PlatformPaymentConfiguration.java @@ -2,36 +2,26 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * PlatformPaymentConfiguration - */ +/** PlatformPaymentConfiguration */ @JsonPropertyOrder({ PlatformPaymentConfiguration.JSON_PROPERTY_SALES_DAY_CLOSING_TIME, PlatformPaymentConfiguration.JSON_PROPERTY_SETTLEMENT_DELAY_DAYS }) - public class PlatformPaymentConfiguration { public static final String JSON_PROPERTY_SALES_DAY_CLOSING_TIME = "salesDayClosingTime"; private String salesDayClosingTime; @@ -39,13 +29,16 @@ public class PlatformPaymentConfiguration { public static final String JSON_PROPERTY_SETTLEMENT_DELAY_DAYS = "settlementDelayDays"; private Integer settlementDelayDays; - public PlatformPaymentConfiguration() { - } + public PlatformPaymentConfiguration() {} /** - * Specifies at what time a sales day ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**. + * Specifies at what time a sales day ends for this account. Possible values: Time in + * **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. + * Default value: **\"00:00\"**. * - * @param salesDayClosingTime Specifies at what time a sales day ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**. + * @param salesDayClosingTime Specifies at what time a sales day ends for this account. Possible + * values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** + * must be **00**. Default value: **\"00:00\"**. * @return the current {@code PlatformPaymentConfiguration} instance, allowing for method chaining */ public PlatformPaymentConfiguration salesDayClosingTime(String salesDayClosingTime) { @@ -54,8 +47,13 @@ public PlatformPaymentConfiguration salesDayClosingTime(String salesDayClosingTi } /** - * Specifies at what time a sales day ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**. - * @return salesDayClosingTime Specifies at what time a sales day ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**. + * Specifies at what time a sales day ends for this account. Possible values: Time in + * **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. + * Default value: **\"00:00\"**. + * + * @return salesDayClosingTime Specifies at what time a sales day ends for this account. Possible + * values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** + * must be **00**. Default value: **\"00:00\"**. */ @JsonProperty(JSON_PROPERTY_SALES_DAY_CLOSING_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +62,13 @@ public String getSalesDayClosingTime() { } /** - * Specifies at what time a sales day ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**. + * Specifies at what time a sales day ends for this account. Possible values: Time in + * **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. + * Default value: **\"00:00\"**. * - * @param salesDayClosingTime Specifies at what time a sales day ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**. + * @param salesDayClosingTime Specifies at what time a sales day ends for this account. Possible + * values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** + * must be **00**. Default value: **\"00:00\"**. */ @JsonProperty(JSON_PROPERTY_SALES_DAY_CLOSING_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,9 +77,12 @@ public void setSalesDayClosingTime(String salesDayClosingTime) { } /** - * Specifies after how many business days the funds in a settlement batch are made available in this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. + * Specifies after how many business days the funds in a settlement batch are made available in + * this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. * - * @param settlementDelayDays Specifies after how many business days the funds in a settlement batch are made available in this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. + * @param settlementDelayDays Specifies after how many business days the funds in a settlement + * batch are made available in this balance account. Possible values: **1** to **20**, or + * **null**. Default value: **null**. * @return the current {@code PlatformPaymentConfiguration} instance, allowing for method chaining */ public PlatformPaymentConfiguration settlementDelayDays(Integer settlementDelayDays) { @@ -86,8 +91,12 @@ public PlatformPaymentConfiguration settlementDelayDays(Integer settlementDelayD } /** - * Specifies after how many business days the funds in a settlement batch are made available in this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. - * @return settlementDelayDays Specifies after how many business days the funds in a settlement batch are made available in this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. + * Specifies after how many business days the funds in a settlement batch are made available in + * this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. + * + * @return settlementDelayDays Specifies after how many business days the funds in a settlement + * batch are made available in this balance account. Possible values: **1** to **20**, or + * **null**. Default value: **null**. */ @JsonProperty(JSON_PROPERTY_SETTLEMENT_DELAY_DAYS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +105,12 @@ public Integer getSettlementDelayDays() { } /** - * Specifies after how many business days the funds in a settlement batch are made available in this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. + * Specifies after how many business days the funds in a settlement batch are made available in + * this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. * - * @param settlementDelayDays Specifies after how many business days the funds in a settlement batch are made available in this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. + * @param settlementDelayDays Specifies after how many business days the funds in a settlement + * batch are made available in this balance account. Possible values: **1** to **20**, or + * **null**. Default value: **null**. */ @JsonProperty(JSON_PROPERTY_SETTLEMENT_DELAY_DAYS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +118,7 @@ public void setSettlementDelayDays(Integer settlementDelayDays) { this.settlementDelayDays = settlementDelayDays; } - /** - * Return true if this PlatformPaymentConfiguration object is equal to o. - */ + /** Return true if this PlatformPaymentConfiguration object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +128,10 @@ public boolean equals(Object o) { return false; } PlatformPaymentConfiguration platformPaymentConfiguration = (PlatformPaymentConfiguration) o; - return Objects.equals(this.salesDayClosingTime, platformPaymentConfiguration.salesDayClosingTime) && - Objects.equals(this.settlementDelayDays, platformPaymentConfiguration.settlementDelayDays); + return Objects.equals( + this.salesDayClosingTime, platformPaymentConfiguration.salesDayClosingTime) + && Objects.equals( + this.settlementDelayDays, platformPaymentConfiguration.settlementDelayDays); } @Override @@ -131,15 +143,18 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PlatformPaymentConfiguration {\n"); - sb.append(" salesDayClosingTime: ").append(toIndentedString(salesDayClosingTime)).append("\n"); - sb.append(" settlementDelayDays: ").append(toIndentedString(settlementDelayDays)).append("\n"); + sb.append(" salesDayClosingTime: ") + .append(toIndentedString(salesDayClosingTime)) + .append("\n"); + sb.append(" settlementDelayDays: ") + .append(toIndentedString(settlementDelayDays)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +163,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PlatformPaymentConfiguration given an JSON string * * @param jsonString JSON string * @return An instance of PlatformPaymentConfiguration - * @throws JsonProcessingException if the JSON string is invalid with respect to PlatformPaymentConfiguration + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PlatformPaymentConfiguration */ - public static PlatformPaymentConfiguration fromJson(String jsonString) throws JsonProcessingException { + public static PlatformPaymentConfiguration fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PlatformPaymentConfiguration.class); } -/** - * Convert an instance of PlatformPaymentConfiguration to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PlatformPaymentConfiguration to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/ProcessingTypesRestriction.java b/src/main/java/com/adyen/model/balanceplatform/ProcessingTypesRestriction.java index c015844bf..c51b0478d 100644 --- a/src/main/java/com/adyen/model/balanceplatform/ProcessingTypesRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/ProcessingTypesRestriction.java @@ -2,47 +2,38 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * ProcessingTypesRestriction - */ +/** ProcessingTypesRestriction */ @JsonPropertyOrder({ ProcessingTypesRestriction.JSON_PROPERTY_OPERATION, ProcessingTypesRestriction.JSON_PROPERTY_VALUE }) - public class ProcessingTypesRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; - /** - * Gets or Sets value - */ + /** Gets or Sets value */ public enum ValueEnum { - ATMWITHDRAW(String.valueOf("atmWithdraw")), BALANCEINQUIRY(String.valueOf("balanceInquiry")), @@ -64,7 +55,7 @@ public enum ValueEnum { private String value; ValueEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -85,7 +76,11 @@ public static ValueEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ValueEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ValueEnum.values())); + LOG.warning( + "ValueEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ValueEnum.values())); return null; } } @@ -93,8 +88,7 @@ public static ValueEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUE = "value"; private List value; - public ProcessingTypesRestriction() { - } + public ProcessingTypesRestriction() {} /** * Defines how the condition must be evaluated. @@ -109,6 +103,7 @@ public ProcessingTypesRestriction operation(String operation) { /** * Defines how the condition must be evaluated. + * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -129,9 +124,11 @@ public void setOperation(String operation) { } /** - * List of processing types. Possible values: **atmWithdraw**, **balanceInquiry**, **ecommerce**, **moto**, **pos**, **recurring**, **token**. + * List of processing types. Possible values: **atmWithdraw**, **balanceInquiry**, **ecommerce**, + * **moto**, **pos**, **recurring**, **token**. * - * @param value List of processing types. Possible values: **atmWithdraw**, **balanceInquiry**, **ecommerce**, **moto**, **pos**, **recurring**, **token**. + * @param value List of processing types. Possible values: **atmWithdraw**, **balanceInquiry**, + * **ecommerce**, **moto**, **pos**, **recurring**, **token**. * @return the current {@code ProcessingTypesRestriction} instance, allowing for method chaining */ public ProcessingTypesRestriction value(List value) { @@ -148,8 +145,11 @@ public ProcessingTypesRestriction addValueItem(ValueEnum valueItem) { } /** - * List of processing types. Possible values: **atmWithdraw**, **balanceInquiry**, **ecommerce**, **moto**, **pos**, **recurring**, **token**. - * @return value List of processing types. Possible values: **atmWithdraw**, **balanceInquiry**, **ecommerce**, **moto**, **pos**, **recurring**, **token**. + * List of processing types. Possible values: **atmWithdraw**, **balanceInquiry**, **ecommerce**, + * **moto**, **pos**, **recurring**, **token**. + * + * @return value List of processing types. Possible values: **atmWithdraw**, **balanceInquiry**, + * **ecommerce**, **moto**, **pos**, **recurring**, **token**. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,9 +158,11 @@ public List getValue() { } /** - * List of processing types. Possible values: **atmWithdraw**, **balanceInquiry**, **ecommerce**, **moto**, **pos**, **recurring**, **token**. + * List of processing types. Possible values: **atmWithdraw**, **balanceInquiry**, **ecommerce**, + * **moto**, **pos**, **recurring**, **token**. * - * @param value List of processing types. Possible values: **atmWithdraw**, **balanceInquiry**, **ecommerce**, **moto**, **pos**, **recurring**, **token**. + * @param value List of processing types. Possible values: **atmWithdraw**, **balanceInquiry**, + * **ecommerce**, **moto**, **pos**, **recurring**, **token**. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,9 +170,7 @@ public void setValue(List value) { this.value = value; } - /** - * Return true if this ProcessingTypesRestriction object is equal to o. - */ + /** Return true if this ProcessingTypesRestriction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -180,8 +180,8 @@ public boolean equals(Object o) { return false; } ProcessingTypesRestriction processingTypesRestriction = (ProcessingTypesRestriction) o; - return Objects.equals(this.operation, processingTypesRestriction.operation) && - Objects.equals(this.value, processingTypesRestriction.value); + return Objects.equals(this.operation, processingTypesRestriction.operation) + && Objects.equals(this.value, processingTypesRestriction.value); } @Override @@ -200,8 +200,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -210,21 +209,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ProcessingTypesRestriction given an JSON string * * @param jsonString JSON string * @return An instance of ProcessingTypesRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to ProcessingTypesRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ProcessingTypesRestriction */ - public static ProcessingTypesRestriction fromJson(String jsonString) throws JsonProcessingException { + public static ProcessingTypesRestriction fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ProcessingTypesRestriction.class); } -/** - * Convert an instance of ProcessingTypesRestriction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ProcessingTypesRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/PublicKeyResponse.java b/src/main/java/com/adyen/model/balanceplatform/PublicKeyResponse.java index 53607c762..1e4eccac7 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PublicKeyResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/PublicKeyResponse.java @@ -2,36 +2,26 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * PublicKeyResponse - */ +/** PublicKeyResponse */ @JsonPropertyOrder({ PublicKeyResponse.JSON_PROPERTY_PUBLIC_KEY, PublicKeyResponse.JSON_PROPERTY_PUBLIC_KEY_EXPIRY_DATE }) - public class PublicKeyResponse { public static final String JSON_PROPERTY_PUBLIC_KEY = "publicKey"; private String publicKey; @@ -39,8 +29,7 @@ public class PublicKeyResponse { public static final String JSON_PROPERTY_PUBLIC_KEY_EXPIRY_DATE = "publicKeyExpiryDate"; private String publicKeyExpiryDate; - public PublicKeyResponse() { - } + public PublicKeyResponse() {} /** * The public key you need for encrypting a symmetric session key. @@ -55,6 +44,7 @@ public PublicKeyResponse publicKey(String publicKey) { /** * The public key you need for encrypting a symmetric session key. + * * @return publicKey The public key you need for encrypting a symmetric session key. */ @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) @@ -87,6 +77,7 @@ public PublicKeyResponse publicKeyExpiryDate(String publicKeyExpiryDate) { /** * The expiry date of the public key. + * * @return publicKeyExpiryDate The expiry date of the public key. */ @JsonProperty(JSON_PROPERTY_PUBLIC_KEY_EXPIRY_DATE) @@ -106,9 +97,7 @@ public void setPublicKeyExpiryDate(String publicKeyExpiryDate) { this.publicKeyExpiryDate = publicKeyExpiryDate; } - /** - * Return true if this PublicKeyResponse object is equal to o. - */ + /** Return true if this PublicKeyResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +107,8 @@ public boolean equals(Object o) { return false; } PublicKeyResponse publicKeyResponse = (PublicKeyResponse) o; - return Objects.equals(this.publicKey, publicKeyResponse.publicKey) && - Objects.equals(this.publicKeyExpiryDate, publicKeyResponse.publicKeyExpiryDate); + return Objects.equals(this.publicKey, publicKeyResponse.publicKey) + && Objects.equals(this.publicKeyExpiryDate, publicKeyResponse.publicKeyExpiryDate); } @Override @@ -132,14 +121,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PublicKeyResponse {\n"); sb.append(" publicKey: ").append(toIndentedString(publicKey)).append("\n"); - sb.append(" publicKeyExpiryDate: ").append(toIndentedString(publicKeyExpiryDate)).append("\n"); + sb.append(" publicKeyExpiryDate: ") + .append(toIndentedString(publicKeyExpiryDate)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +138,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PublicKeyResponse given an JSON string * * @param jsonString JSON string @@ -158,11 +148,12 @@ private String toIndentedString(Object o) { public static PublicKeyResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PublicKeyResponse.class); } -/** - * Convert an instance of PublicKeyResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PublicKeyResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/RegisterSCAFinalResponse.java b/src/main/java/com/adyen/model/balanceplatform/RegisterSCAFinalResponse.java index ac4c3c6e1..564b53724 100644 --- a/src/main/java/com/adyen/model/balanceplatform/RegisterSCAFinalResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/RegisterSCAFinalResponse.java @@ -2,41 +2,28 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * RegisterSCAFinalResponse - */ -@JsonPropertyOrder({ - RegisterSCAFinalResponse.JSON_PROPERTY_SUCCESS -}) - +/** RegisterSCAFinalResponse */ +@JsonPropertyOrder({RegisterSCAFinalResponse.JSON_PROPERTY_SUCCESS}) public class RegisterSCAFinalResponse { public static final String JSON_PROPERTY_SUCCESS = "success"; private Boolean success; - public RegisterSCAFinalResponse() { - } + public RegisterSCAFinalResponse() {} /** * Specifies if the registration was initiated successfully. @@ -51,6 +38,7 @@ public RegisterSCAFinalResponse success(Boolean success) { /** * Specifies if the registration was initiated successfully. + * * @return success Specifies if the registration was initiated successfully. */ @JsonProperty(JSON_PROPERTY_SUCCESS) @@ -70,9 +58,7 @@ public void setSuccess(Boolean success) { this.success = success; } - /** - * Return true if this RegisterSCAFinalResponse object is equal to o. - */ + /** Return true if this RegisterSCAFinalResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +95,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RegisterSCAFinalResponse given an JSON string * * @param jsonString JSON string * @return An instance of RegisterSCAFinalResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to RegisterSCAFinalResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * RegisterSCAFinalResponse */ - public static RegisterSCAFinalResponse fromJson(String jsonString) throws JsonProcessingException { + public static RegisterSCAFinalResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RegisterSCAFinalResponse.class); } -/** - * Convert an instance of RegisterSCAFinalResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RegisterSCAFinalResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/RegisterSCARequest.java b/src/main/java/com/adyen/model/balanceplatform/RegisterSCARequest.java index 13321ac82..31167cc89 100644 --- a/src/main/java/com/adyen/model/balanceplatform/RegisterSCARequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/RegisterSCARequest.java @@ -2,38 +2,27 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.DelegatedAuthenticationData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * RegisterSCARequest - */ +/** RegisterSCARequest */ @JsonPropertyOrder({ RegisterSCARequest.JSON_PROPERTY_NAME, RegisterSCARequest.JSON_PROPERTY_PAYMENT_INSTRUMENT_ID, RegisterSCARequest.JSON_PROPERTY_STRONG_CUSTOMER_AUTHENTICATION }) - public class RegisterSCARequest { public static final String JSON_PROPERTY_NAME = "name"; private String name; @@ -41,16 +30,19 @@ public class RegisterSCARequest { public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT_ID = "paymentInstrumentId"; private String paymentInstrumentId; - public static final String JSON_PROPERTY_STRONG_CUSTOMER_AUTHENTICATION = "strongCustomerAuthentication"; + public static final String JSON_PROPERTY_STRONG_CUSTOMER_AUTHENTICATION = + "strongCustomerAuthentication"; private DelegatedAuthenticationData strongCustomerAuthentication; - public RegisterSCARequest() { - } + public RegisterSCARequest() {} /** - * The name of the SCA device that you are registering. You can use it to help your users identify the device. If you do not specify a `name`, Adyen automatically generates one. + * The name of the SCA device that you are registering. You can use it to help your users identify + * the device. If you do not specify a `name`, Adyen automatically generates one. * - * @param name The name of the SCA device that you are registering. You can use it to help your users identify the device. If you do not specify a `name`, Adyen automatically generates one. + * @param name The name of the SCA device that you are registering. You can use it to help your + * users identify the device. If you do not specify a `name`, Adyen automatically + * generates one. * @return the current {@code RegisterSCARequest} instance, allowing for method chaining */ public RegisterSCARequest name(String name) { @@ -59,8 +51,12 @@ public RegisterSCARequest name(String name) { } /** - * The name of the SCA device that you are registering. You can use it to help your users identify the device. If you do not specify a `name`, Adyen automatically generates one. - * @return name The name of the SCA device that you are registering. You can use it to help your users identify the device. If you do not specify a `name`, Adyen automatically generates one. + * The name of the SCA device that you are registering. You can use it to help your users identify + * the device. If you do not specify a `name`, Adyen automatically generates one. + * + * @return name The name of the SCA device that you are registering. You can use it to help your + * users identify the device. If you do not specify a `name`, Adyen automatically + * generates one. */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -69,9 +65,12 @@ public String getName() { } /** - * The name of the SCA device that you are registering. You can use it to help your users identify the device. If you do not specify a `name`, Adyen automatically generates one. + * The name of the SCA device that you are registering. You can use it to help your users identify + * the device. If you do not specify a `name`, Adyen automatically generates one. * - * @param name The name of the SCA device that you are registering. You can use it to help your users identify the device. If you do not specify a `name`, Adyen automatically generates one. + * @param name The name of the SCA device that you are registering. You can use it to help your + * users identify the device. If you do not specify a `name`, Adyen automatically + * generates one. */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -82,7 +81,8 @@ public void setName(String name) { /** * The unique identifier of the payment instrument for which you are registering the SCA device. * - * @param paymentInstrumentId The unique identifier of the payment instrument for which you are registering the SCA device. + * @param paymentInstrumentId The unique identifier of the payment instrument for which you are + * registering the SCA device. * @return the current {@code RegisterSCARequest} instance, allowing for method chaining */ public RegisterSCARequest paymentInstrumentId(String paymentInstrumentId) { @@ -92,7 +92,9 @@ public RegisterSCARequest paymentInstrumentId(String paymentInstrumentId) { /** * The unique identifier of the payment instrument for which you are registering the SCA device. - * @return paymentInstrumentId The unique identifier of the payment instrument for which you are registering the SCA device. + * + * @return paymentInstrumentId The unique identifier of the payment instrument for which you are + * registering the SCA device. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -103,7 +105,8 @@ public String getPaymentInstrumentId() { /** * The unique identifier of the payment instrument for which you are registering the SCA device. * - * @param paymentInstrumentId The unique identifier of the payment instrument for which you are registering the SCA device. + * @param paymentInstrumentId The unique identifier of the payment instrument for which you are + * registering the SCA device. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,17 +117,19 @@ public void setPaymentInstrumentId(String paymentInstrumentId) { /** * strongCustomerAuthentication * - * @param strongCustomerAuthentication + * @param strongCustomerAuthentication * @return the current {@code RegisterSCARequest} instance, allowing for method chaining */ - public RegisterSCARequest strongCustomerAuthentication(DelegatedAuthenticationData strongCustomerAuthentication) { + public RegisterSCARequest strongCustomerAuthentication( + DelegatedAuthenticationData strongCustomerAuthentication) { this.strongCustomerAuthentication = strongCustomerAuthentication; return this; } /** * Get strongCustomerAuthentication - * @return strongCustomerAuthentication + * + * @return strongCustomerAuthentication */ @JsonProperty(JSON_PROPERTY_STRONG_CUSTOMER_AUTHENTICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,17 +140,16 @@ public DelegatedAuthenticationData getStrongCustomerAuthentication() { /** * strongCustomerAuthentication * - * @param strongCustomerAuthentication + * @param strongCustomerAuthentication */ @JsonProperty(JSON_PROPERTY_STRONG_CUSTOMER_AUTHENTICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStrongCustomerAuthentication(DelegatedAuthenticationData strongCustomerAuthentication) { + public void setStrongCustomerAuthentication( + DelegatedAuthenticationData strongCustomerAuthentication) { this.strongCustomerAuthentication = strongCustomerAuthentication; } - /** - * Return true if this RegisterSCARequest object is equal to o. - */ + /** Return true if this RegisterSCARequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -155,9 +159,10 @@ public boolean equals(Object o) { return false; } RegisterSCARequest registerSCARequest = (RegisterSCARequest) o; - return Objects.equals(this.name, registerSCARequest.name) && - Objects.equals(this.paymentInstrumentId, registerSCARequest.paymentInstrumentId) && - Objects.equals(this.strongCustomerAuthentication, registerSCARequest.strongCustomerAuthentication); + return Objects.equals(this.name, registerSCARequest.name) + && Objects.equals(this.paymentInstrumentId, registerSCARequest.paymentInstrumentId) + && Objects.equals( + this.strongCustomerAuthentication, registerSCARequest.strongCustomerAuthentication); } @Override @@ -170,15 +175,18 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RegisterSCARequest {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" paymentInstrumentId: ").append(toIndentedString(paymentInstrumentId)).append("\n"); - sb.append(" strongCustomerAuthentication: ").append(toIndentedString(strongCustomerAuthentication)).append("\n"); + sb.append(" paymentInstrumentId: ") + .append(toIndentedString(paymentInstrumentId)) + .append("\n"); + sb.append(" strongCustomerAuthentication: ") + .append(toIndentedString(strongCustomerAuthentication)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -187,21 +195,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RegisterSCARequest given an JSON string * * @param jsonString JSON string * @return An instance of RegisterSCARequest - * @throws JsonProcessingException if the JSON string is invalid with respect to RegisterSCARequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * RegisterSCARequest */ public static RegisterSCARequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RegisterSCARequest.class); } -/** - * Convert an instance of RegisterSCARequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RegisterSCARequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/RegisterSCAResponse.java b/src/main/java/com/adyen/model/balanceplatform/RegisterSCAResponse.java index 99bac7b14..8f491a766 100644 --- a/src/main/java/com/adyen/model/balanceplatform/RegisterSCAResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/RegisterSCAResponse.java @@ -2,38 +2,28 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * RegisterSCAResponse - */ +/** RegisterSCAResponse */ @JsonPropertyOrder({ RegisterSCAResponse.JSON_PROPERTY_ID, RegisterSCAResponse.JSON_PROPERTY_PAYMENT_INSTRUMENT_ID, RegisterSCAResponse.JSON_PROPERTY_SDK_INPUT, RegisterSCAResponse.JSON_PROPERTY_SUCCESS }) - public class RegisterSCAResponse { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -47,8 +37,7 @@ public class RegisterSCAResponse { public static final String JSON_PROPERTY_SUCCESS = "success"; private Boolean success; - public RegisterSCAResponse() { - } + public RegisterSCAResponse() {} /** * The unique identifier of the SCA device you are registering. @@ -63,6 +52,7 @@ public RegisterSCAResponse id(String id) { /** * The unique identifier of the SCA device you are registering. + * * @return id The unique identifier of the SCA device you are registering. */ @JsonProperty(JSON_PROPERTY_ID) @@ -85,7 +75,8 @@ public void setId(String id) { /** * The unique identifier of the payment instrument for which you are registering the SCA device. * - * @param paymentInstrumentId The unique identifier of the payment instrument for which you are registering the SCA device. + * @param paymentInstrumentId The unique identifier of the payment instrument for which you are + * registering the SCA device. * @return the current {@code RegisterSCAResponse} instance, allowing for method chaining */ public RegisterSCAResponse paymentInstrumentId(String paymentInstrumentId) { @@ -95,7 +86,9 @@ public RegisterSCAResponse paymentInstrumentId(String paymentInstrumentId) { /** * The unique identifier of the payment instrument for which you are registering the SCA device. - * @return paymentInstrumentId The unique identifier of the payment instrument for which you are registering the SCA device. + * + * @return paymentInstrumentId The unique identifier of the payment instrument for which you are + * registering the SCA device. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,7 +99,8 @@ public String getPaymentInstrumentId() { /** * The unique identifier of the payment instrument for which you are registering the SCA device. * - * @param paymentInstrumentId The unique identifier of the payment instrument for which you are registering the SCA device. + * @param paymentInstrumentId The unique identifier of the payment instrument for which you are + * registering the SCA device. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,9 +109,11 @@ public void setPaymentInstrumentId(String paymentInstrumentId) { } /** - * A string that you must pass to the authentication SDK to continue with the registration process. + * A string that you must pass to the authentication SDK to continue with the registration + * process. * - * @param sdkInput A string that you must pass to the authentication SDK to continue with the registration process. + * @param sdkInput A string that you must pass to the authentication SDK to continue with the + * registration process. * @return the current {@code RegisterSCAResponse} instance, allowing for method chaining */ public RegisterSCAResponse sdkInput(String sdkInput) { @@ -126,8 +122,11 @@ public RegisterSCAResponse sdkInput(String sdkInput) { } /** - * A string that you must pass to the authentication SDK to continue with the registration process. - * @return sdkInput A string that you must pass to the authentication SDK to continue with the registration process. + * A string that you must pass to the authentication SDK to continue with the registration + * process. + * + * @return sdkInput A string that you must pass to the authentication SDK to continue with the + * registration process. */ @JsonProperty(JSON_PROPERTY_SDK_INPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,9 +135,11 @@ public String getSdkInput() { } /** - * A string that you must pass to the authentication SDK to continue with the registration process. + * A string that you must pass to the authentication SDK to continue with the registration + * process. * - * @param sdkInput A string that you must pass to the authentication SDK to continue with the registration process. + * @param sdkInput A string that you must pass to the authentication SDK to continue with the + * registration process. */ @JsonProperty(JSON_PROPERTY_SDK_INPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,6 +160,7 @@ public RegisterSCAResponse success(Boolean success) { /** * Specifies if the registration was initiated successfully. + * * @return success Specifies if the registration was initiated successfully. */ @JsonProperty(JSON_PROPERTY_SUCCESS) @@ -178,9 +180,7 @@ public void setSuccess(Boolean success) { this.success = success; } - /** - * Return true if this RegisterSCAResponse object is equal to o. - */ + /** Return true if this RegisterSCAResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -190,10 +190,10 @@ public boolean equals(Object o) { return false; } RegisterSCAResponse registerSCAResponse = (RegisterSCAResponse) o; - return Objects.equals(this.id, registerSCAResponse.id) && - Objects.equals(this.paymentInstrumentId, registerSCAResponse.paymentInstrumentId) && - Objects.equals(this.sdkInput, registerSCAResponse.sdkInput) && - Objects.equals(this.success, registerSCAResponse.success); + return Objects.equals(this.id, registerSCAResponse.id) + && Objects.equals(this.paymentInstrumentId, registerSCAResponse.paymentInstrumentId) + && Objects.equals(this.sdkInput, registerSCAResponse.sdkInput) + && Objects.equals(this.success, registerSCAResponse.success); } @Override @@ -206,7 +206,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RegisterSCAResponse {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" paymentInstrumentId: ").append(toIndentedString(paymentInstrumentId)).append("\n"); + sb.append(" paymentInstrumentId: ") + .append(toIndentedString(paymentInstrumentId)) + .append("\n"); sb.append(" sdkInput: ").append(toIndentedString(sdkInput)).append("\n"); sb.append(" success: ").append(toIndentedString(success)).append("\n"); sb.append("}"); @@ -214,8 +216,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +225,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RegisterSCAResponse given an JSON string * * @param jsonString JSON string * @return An instance of RegisterSCAResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to RegisterSCAResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * RegisterSCAResponse */ public static RegisterSCAResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RegisterSCAResponse.class); } -/** - * Convert an instance of RegisterSCAResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RegisterSCAResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/RemediatingAction.java b/src/main/java/com/adyen/model/balanceplatform/RemediatingAction.java index e04142fa3..70aba6fbc 100644 --- a/src/main/java/com/adyen/model/balanceplatform/RemediatingAction.java +++ b/src/main/java/com/adyen/model/balanceplatform/RemediatingAction.java @@ -2,36 +2,23 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * RemediatingAction - */ -@JsonPropertyOrder({ - RemediatingAction.JSON_PROPERTY_CODE, - RemediatingAction.JSON_PROPERTY_MESSAGE -}) - +/** RemediatingAction */ +@JsonPropertyOrder({RemediatingAction.JSON_PROPERTY_CODE, RemediatingAction.JSON_PROPERTY_MESSAGE}) public class RemediatingAction { public static final String JSON_PROPERTY_CODE = "code"; private String code; @@ -39,8 +26,7 @@ public class RemediatingAction { public static final String JSON_PROPERTY_MESSAGE = "message"; private String message; - public RemediatingAction() { - } + public RemediatingAction() {} /** * The remediating action code. @@ -55,6 +41,7 @@ public RemediatingAction code(String code) { /** * The remediating action code. + * * @return code The remediating action code. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -87,6 +74,7 @@ public RemediatingAction message(String message) { /** * A description of how you can resolve the verification error. + * * @return message A description of how you can resolve the verification error. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -106,9 +94,7 @@ public void setMessage(String message) { this.message = message; } - /** - * Return true if this RemediatingAction object is equal to o. - */ + /** Return true if this RemediatingAction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +104,8 @@ public boolean equals(Object o) { return false; } RemediatingAction remediatingAction = (RemediatingAction) o; - return Objects.equals(this.code, remediatingAction.code) && - Objects.equals(this.message, remediatingAction.message); + return Objects.equals(this.code, remediatingAction.code) + && Objects.equals(this.message, remediatingAction.message); } @Override @@ -138,8 +124,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +133,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RemediatingAction given an JSON string * * @param jsonString JSON string @@ -158,11 +143,12 @@ private String toIndentedString(Object o) { public static RemediatingAction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RemediatingAction.class); } -/** - * Convert an instance of RemediatingAction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RemediatingAction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/Repayment.java b/src/main/java/com/adyen/model/balanceplatform/Repayment.java index c41f9e237..aa2f906c7 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Repayment.java +++ b/src/main/java/com/adyen/model/balanceplatform/Repayment.java @@ -2,39 +2,27 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.RepaymentTerm; -import com.adyen.model.balanceplatform.ThresholdRepayment; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Repayment - */ +/** Repayment */ @JsonPropertyOrder({ Repayment.JSON_PROPERTY_BASIS_POINTS, Repayment.JSON_PROPERTY_TERM, Repayment.JSON_PROPERTY_THRESHOLD }) - public class Repayment { public static final String JSON_PROPERTY_BASIS_POINTS = "basisPoints"; private Integer basisPoints; @@ -45,13 +33,14 @@ public class Repayment { public static final String JSON_PROPERTY_THRESHOLD = "threshold"; private ThresholdRepayment threshold; - public Repayment() { - } + public Repayment() {} /** - * The repayment that is deducted daily from incoming net volume, in [basis points](https://www.investopedia.com/terms/b/basispoint.asp). + * The repayment that is deducted daily from incoming net volume, in [basis + * points](https://www.investopedia.com/terms/b/basispoint.asp). * - * @param basisPoints The repayment that is deducted daily from incoming net volume, in [basis points](https://www.investopedia.com/terms/b/basispoint.asp). + * @param basisPoints The repayment that is deducted daily from incoming net volume, in [basis + * points](https://www.investopedia.com/terms/b/basispoint.asp). * @return the current {@code Repayment} instance, allowing for method chaining */ public Repayment basisPoints(Integer basisPoints) { @@ -60,8 +49,11 @@ public Repayment basisPoints(Integer basisPoints) { } /** - * The repayment that is deducted daily from incoming net volume, in [basis points](https://www.investopedia.com/terms/b/basispoint.asp). - * @return basisPoints The repayment that is deducted daily from incoming net volume, in [basis points](https://www.investopedia.com/terms/b/basispoint.asp). + * The repayment that is deducted daily from incoming net volume, in [basis + * points](https://www.investopedia.com/terms/b/basispoint.asp). + * + * @return basisPoints The repayment that is deducted daily from incoming net volume, in [basis + * points](https://www.investopedia.com/terms/b/basispoint.asp). */ @JsonProperty(JSON_PROPERTY_BASIS_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +62,11 @@ public Integer getBasisPoints() { } /** - * The repayment that is deducted daily from incoming net volume, in [basis points](https://www.investopedia.com/terms/b/basispoint.asp). + * The repayment that is deducted daily from incoming net volume, in [basis + * points](https://www.investopedia.com/terms/b/basispoint.asp). * - * @param basisPoints The repayment that is deducted daily from incoming net volume, in [basis points](https://www.investopedia.com/terms/b/basispoint.asp). + * @param basisPoints The repayment that is deducted daily from incoming net volume, in [basis + * points](https://www.investopedia.com/terms/b/basispoint.asp). */ @JsonProperty(JSON_PROPERTY_BASIS_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,7 +77,7 @@ public void setBasisPoints(Integer basisPoints) { /** * term * - * @param term + * @param term * @return the current {@code Repayment} instance, allowing for method chaining */ public Repayment term(RepaymentTerm term) { @@ -93,7 +87,8 @@ public Repayment term(RepaymentTerm term) { /** * Get term - * @return term + * + * @return term */ @JsonProperty(JSON_PROPERTY_TERM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,7 +99,7 @@ public RepaymentTerm getTerm() { /** * term * - * @param term + * @param term */ @JsonProperty(JSON_PROPERTY_TERM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,7 +110,7 @@ public void setTerm(RepaymentTerm term) { /** * threshold * - * @param threshold + * @param threshold * @return the current {@code Repayment} instance, allowing for method chaining */ public Repayment threshold(ThresholdRepayment threshold) { @@ -125,7 +120,8 @@ public Repayment threshold(ThresholdRepayment threshold) { /** * Get threshold - * @return threshold + * + * @return threshold */ @JsonProperty(JSON_PROPERTY_THRESHOLD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,7 +132,7 @@ public ThresholdRepayment getThreshold() { /** * threshold * - * @param threshold + * @param threshold */ @JsonProperty(JSON_PROPERTY_THRESHOLD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,9 +140,7 @@ public void setThreshold(ThresholdRepayment threshold) { this.threshold = threshold; } - /** - * Return true if this Repayment object is equal to o. - */ + /** Return true if this Repayment object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,9 +150,9 @@ public boolean equals(Object o) { return false; } Repayment repayment = (Repayment) o; - return Objects.equals(this.basisPoints, repayment.basisPoints) && - Objects.equals(this.term, repayment.term) && - Objects.equals(this.threshold, repayment.threshold); + return Objects.equals(this.basisPoints, repayment.basisPoints) + && Objects.equals(this.term, repayment.term) + && Objects.equals(this.threshold, repayment.threshold); } @Override @@ -178,8 +172,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -188,7 +181,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Repayment given an JSON string * * @param jsonString JSON string @@ -198,11 +191,12 @@ private String toIndentedString(Object o) { public static Repayment fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Repayment.class); } -/** - * Convert an instance of Repayment to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Repayment to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/RepaymentTerm.java b/src/main/java/com/adyen/model/balanceplatform/RepaymentTerm.java index 1c538aea0..66ff77e61 100644 --- a/src/main/java/com/adyen/model/balanceplatform/RepaymentTerm.java +++ b/src/main/java/com/adyen/model/balanceplatform/RepaymentTerm.java @@ -2,36 +2,26 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * RepaymentTerm - */ +/** RepaymentTerm */ @JsonPropertyOrder({ RepaymentTerm.JSON_PROPERTY_ESTIMATED_DAYS, RepaymentTerm.JSON_PROPERTY_MAXIMUM_DAYS }) - public class RepaymentTerm { public static final String JSON_PROPERTY_ESTIMATED_DAYS = "estimatedDays"; private Integer estimatedDays; @@ -39,8 +29,7 @@ public class RepaymentTerm { public static final String JSON_PROPERTY_MAXIMUM_DAYS = "maximumDays"; private Integer maximumDays; - public RepaymentTerm() { - } + public RepaymentTerm() {} /** * The estimated term for repaying the grant, in days. @@ -55,6 +44,7 @@ public RepaymentTerm estimatedDays(Integer estimatedDays) { /** * The estimated term for repaying the grant, in days. + * * @return estimatedDays The estimated term for repaying the grant, in days. */ @JsonProperty(JSON_PROPERTY_ESTIMATED_DAYS) @@ -75,9 +65,11 @@ public void setEstimatedDays(Integer estimatedDays) { } /** - * The maximum term for repaying the grant, in days. Only applies when `contractType` is **loan**. + * The maximum term for repaying the grant, in days. Only applies when `contractType` is + * **loan**. * - * @param maximumDays The maximum term for repaying the grant, in days. Only applies when `contractType` is **loan**. + * @param maximumDays The maximum term for repaying the grant, in days. Only applies when + * `contractType` is **loan**. * @return the current {@code RepaymentTerm} instance, allowing for method chaining */ public RepaymentTerm maximumDays(Integer maximumDays) { @@ -86,8 +78,11 @@ public RepaymentTerm maximumDays(Integer maximumDays) { } /** - * The maximum term for repaying the grant, in days. Only applies when `contractType` is **loan**. - * @return maximumDays The maximum term for repaying the grant, in days. Only applies when `contractType` is **loan**. + * The maximum term for repaying the grant, in days. Only applies when `contractType` is + * **loan**. + * + * @return maximumDays The maximum term for repaying the grant, in days. Only applies when + * `contractType` is **loan**. */ @JsonProperty(JSON_PROPERTY_MAXIMUM_DAYS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +91,11 @@ public Integer getMaximumDays() { } /** - * The maximum term for repaying the grant, in days. Only applies when `contractType` is **loan**. + * The maximum term for repaying the grant, in days. Only applies when `contractType` is + * **loan**. * - * @param maximumDays The maximum term for repaying the grant, in days. Only applies when `contractType` is **loan**. + * @param maximumDays The maximum term for repaying the grant, in days. Only applies when + * `contractType` is **loan**. */ @JsonProperty(JSON_PROPERTY_MAXIMUM_DAYS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +103,7 @@ public void setMaximumDays(Integer maximumDays) { this.maximumDays = maximumDays; } - /** - * Return true if this RepaymentTerm object is equal to o. - */ + /** Return true if this RepaymentTerm object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +113,8 @@ public boolean equals(Object o) { return false; } RepaymentTerm repaymentTerm = (RepaymentTerm) o; - return Objects.equals(this.estimatedDays, repaymentTerm.estimatedDays) && - Objects.equals(this.maximumDays, repaymentTerm.maximumDays); + return Objects.equals(this.estimatedDays, repaymentTerm.estimatedDays) + && Objects.equals(this.maximumDays, repaymentTerm.maximumDays); } @Override @@ -138,8 +133,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +142,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RepaymentTerm given an JSON string * * @param jsonString JSON string @@ -158,11 +152,12 @@ private String toIndentedString(Object o) { public static RepaymentTerm fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RepaymentTerm.class); } -/** - * Convert an instance of RepaymentTerm to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RepaymentTerm to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/RestServiceError.java b/src/main/java/com/adyen/model/balanceplatform/RestServiceError.java index d0d60bc5e..02871dfeb 100644 --- a/src/main/java/com/adyen/model/balanceplatform/RestServiceError.java +++ b/src/main/java/com/adyen/model/balanceplatform/RestServiceError.java @@ -2,34 +2,24 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.InvalidField; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * RestServiceError - */ +/** RestServiceError */ @JsonPropertyOrder({ RestServiceError.JSON_PROPERTY_DETAIL, RestServiceError.JSON_PROPERTY_ERROR_CODE, @@ -41,7 +31,6 @@ RestServiceError.JSON_PROPERTY_TITLE, RestServiceError.JSON_PROPERTY_TYPE }) - public class RestServiceError { public static final String JSON_PROPERTY_DETAIL = "detail"; private String detail; @@ -70,8 +59,7 @@ public class RestServiceError { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public RestServiceError() { - } + public RestServiceError() {} /** * A human-readable explanation specific to this occurrence of the problem. @@ -86,6 +74,7 @@ public RestServiceError detail(String detail) { /** * A human-readable explanation specific to this occurrence of the problem. + * * @return detail A human-readable explanation specific to this occurrence of the problem. */ @JsonProperty(JSON_PROPERTY_DETAIL) @@ -118,6 +107,7 @@ public RestServiceError errorCode(String errorCode) { /** * A code that identifies the problem type. + * * @return errorCode A code that identifies the problem type. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -150,6 +140,7 @@ public RestServiceError instance(String instance) { /** * A unique URI that identifies the specific occurrence of the problem. + * * @return instance A unique URI that identifies the specific occurrence of the problem. */ @JsonProperty(JSON_PROPERTY_INSTANCE) @@ -190,6 +181,7 @@ public RestServiceError addInvalidFieldsItem(InvalidField invalidFieldsItem) { /** * Detailed explanation of each validation error, when applicable. + * * @return invalidFields Detailed explanation of each validation error, when applicable. */ @JsonProperty(JSON_PROPERTY_INVALID_FIELDS) @@ -212,7 +204,8 @@ public void setInvalidFields(List invalidFields) { /** * A unique reference for the request, essentially the same as `pspReference`. * - * @param requestId A unique reference for the request, essentially the same as `pspReference`. + * @param requestId A unique reference for the request, essentially the same as + * `pspReference`. * @return the current {@code RestServiceError} instance, allowing for method chaining */ public RestServiceError requestId(String requestId) { @@ -222,7 +215,9 @@ public RestServiceError requestId(String requestId) { /** * A unique reference for the request, essentially the same as `pspReference`. - * @return requestId A unique reference for the request, essentially the same as `pspReference`. + * + * @return requestId A unique reference for the request, essentially the same as + * `pspReference`. */ @JsonProperty(JSON_PROPERTY_REQUEST_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -233,7 +228,8 @@ public String getRequestId() { /** * A unique reference for the request, essentially the same as `pspReference`. * - * @param requestId A unique reference for the request, essentially the same as `pspReference`. + * @param requestId A unique reference for the request, essentially the same as + * `pspReference`. */ @JsonProperty(JSON_PROPERTY_REQUEST_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,7 +240,7 @@ public void setRequestId(String requestId) { /** * response * - * @param response + * @param response * @return the current {@code RestServiceError} instance, allowing for method chaining */ public RestServiceError response(Object response) { @@ -254,7 +250,8 @@ public RestServiceError response(Object response) { /** * Get response - * @return response + * + * @return response */ @JsonProperty(JSON_PROPERTY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -265,7 +262,7 @@ public Object getResponse() { /** * response * - * @param response + * @param response */ @JsonProperty(JSON_PROPERTY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -286,6 +283,7 @@ public RestServiceError status(Integer status) { /** * The HTTP status code. + * * @return status The HTTP status code. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -318,6 +316,7 @@ public RestServiceError title(String title) { /** * A short, human-readable summary of the problem type. + * * @return title A short, human-readable summary of the problem type. */ @JsonProperty(JSON_PROPERTY_TITLE) @@ -338,9 +337,11 @@ public void setTitle(String title) { } /** - * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. + * A URI that identifies the problem type, pointing to human-readable documentation on this + * problem type. * - * @param type A URI that identifies the problem type, pointing to human-readable documentation on this problem type. + * @param type A URI that identifies the problem type, pointing to human-readable documentation on + * this problem type. * @return the current {@code RestServiceError} instance, allowing for method chaining */ public RestServiceError type(String type) { @@ -349,8 +350,11 @@ public RestServiceError type(String type) { } /** - * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. - * @return type A URI that identifies the problem type, pointing to human-readable documentation on this problem type. + * A URI that identifies the problem type, pointing to human-readable documentation on this + * problem type. + * + * @return type A URI that identifies the problem type, pointing to human-readable documentation + * on this problem type. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -359,9 +363,11 @@ public String getType() { } /** - * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. + * A URI that identifies the problem type, pointing to human-readable documentation on this + * problem type. * - * @param type A URI that identifies the problem type, pointing to human-readable documentation on this problem type. + * @param type A URI that identifies the problem type, pointing to human-readable documentation on + * this problem type. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -369,9 +375,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this RestServiceError object is equal to o. - */ + /** Return true if this RestServiceError object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -381,20 +385,21 @@ public boolean equals(Object o) { return false; } RestServiceError restServiceError = (RestServiceError) o; - return Objects.equals(this.detail, restServiceError.detail) && - Objects.equals(this.errorCode, restServiceError.errorCode) && - Objects.equals(this.instance, restServiceError.instance) && - Objects.equals(this.invalidFields, restServiceError.invalidFields) && - Objects.equals(this.requestId, restServiceError.requestId) && - Objects.equals(this.response, restServiceError.response) && - Objects.equals(this.status, restServiceError.status) && - Objects.equals(this.title, restServiceError.title) && - Objects.equals(this.type, restServiceError.type); + return Objects.equals(this.detail, restServiceError.detail) + && Objects.equals(this.errorCode, restServiceError.errorCode) + && Objects.equals(this.instance, restServiceError.instance) + && Objects.equals(this.invalidFields, restServiceError.invalidFields) + && Objects.equals(this.requestId, restServiceError.requestId) + && Objects.equals(this.response, restServiceError.response) + && Objects.equals(this.status, restServiceError.status) + && Objects.equals(this.title, restServiceError.title) + && Objects.equals(this.type, restServiceError.type); } @Override public int hashCode() { - return Objects.hash(detail, errorCode, instance, invalidFields, requestId, response, status, title, type); + return Objects.hash( + detail, errorCode, instance, invalidFields, requestId, response, status, title, type); } @Override @@ -415,8 +420,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -425,7 +429,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RestServiceError given an JSON string * * @param jsonString JSON string @@ -435,11 +439,12 @@ private String toIndentedString(Object o) { public static RestServiceError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RestServiceError.class); } -/** - * Convert an instance of RestServiceError to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RestServiceError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/RevealPinRequest.java b/src/main/java/com/adyen/model/balanceplatform/RevealPinRequest.java index e73fa576b..ea1075b73 100644 --- a/src/main/java/com/adyen/model/balanceplatform/RevealPinRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/RevealPinRequest.java @@ -2,36 +2,26 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * RevealPinRequest - */ +/** RevealPinRequest */ @JsonPropertyOrder({ RevealPinRequest.JSON_PROPERTY_ENCRYPTED_KEY, RevealPinRequest.JSON_PROPERTY_PAYMENT_INSTRUMENT_ID }) - public class RevealPinRequest { public static final String JSON_PROPERTY_ENCRYPTED_KEY = "encryptedKey"; private String encryptedKey; @@ -39,13 +29,16 @@ public class RevealPinRequest { public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT_ID = "paymentInstrumentId"; private String paymentInstrumentId; - public RevealPinRequest() { - } + public RevealPinRequest() {} /** - * The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. + * The symmetric session key that you encrypted with the [public + * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received + * from Adyen. * - * @param encryptedKey The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. + * @param encryptedKey The symmetric session key that you encrypted with the [public + * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received + * from Adyen. * @return the current {@code RevealPinRequest} instance, allowing for method chaining */ public RevealPinRequest encryptedKey(String encryptedKey) { @@ -54,8 +47,13 @@ public RevealPinRequest encryptedKey(String encryptedKey) { } /** - * The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. - * @return encryptedKey The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. + * The symmetric session key that you encrypted with the [public + * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received + * from Adyen. + * + * @return encryptedKey The symmetric session key that you encrypted with the [public + * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received + * from Adyen. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +62,13 @@ public String getEncryptedKey() { } /** - * The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. + * The symmetric session key that you encrypted with the [public + * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received + * from Adyen. * - * @param encryptedKey The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. + * @param encryptedKey The symmetric session key that you encrypted with the [public + * key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received + * from Adyen. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,9 +77,11 @@ public void setEncryptedKey(String encryptedKey) { } /** - * The unique identifier of the payment instrument, which is the card for which you are managing the PIN. + * The unique identifier of the payment instrument, which is the card for which you are managing + * the PIN. * - * @param paymentInstrumentId The unique identifier of the payment instrument, which is the card for which you are managing the PIN. + * @param paymentInstrumentId The unique identifier of the payment instrument, which is the card + * for which you are managing the PIN. * @return the current {@code RevealPinRequest} instance, allowing for method chaining */ public RevealPinRequest paymentInstrumentId(String paymentInstrumentId) { @@ -86,8 +90,11 @@ public RevealPinRequest paymentInstrumentId(String paymentInstrumentId) { } /** - * The unique identifier of the payment instrument, which is the card for which you are managing the PIN. - * @return paymentInstrumentId The unique identifier of the payment instrument, which is the card for which you are managing the PIN. + * The unique identifier of the payment instrument, which is the card for which you are managing + * the PIN. + * + * @return paymentInstrumentId The unique identifier of the payment instrument, which is the card + * for which you are managing the PIN. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +103,11 @@ public String getPaymentInstrumentId() { } /** - * The unique identifier of the payment instrument, which is the card for which you are managing the PIN. + * The unique identifier of the payment instrument, which is the card for which you are managing + * the PIN. * - * @param paymentInstrumentId The unique identifier of the payment instrument, which is the card for which you are managing the PIN. + * @param paymentInstrumentId The unique identifier of the payment instrument, which is the card + * for which you are managing the PIN. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +115,7 @@ public void setPaymentInstrumentId(String paymentInstrumentId) { this.paymentInstrumentId = paymentInstrumentId; } - /** - * Return true if this RevealPinRequest object is equal to o. - */ + /** Return true if this RevealPinRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +125,8 @@ public boolean equals(Object o) { return false; } RevealPinRequest revealPinRequest = (RevealPinRequest) o; - return Objects.equals(this.encryptedKey, revealPinRequest.encryptedKey) && - Objects.equals(this.paymentInstrumentId, revealPinRequest.paymentInstrumentId); + return Objects.equals(this.encryptedKey, revealPinRequest.encryptedKey) + && Objects.equals(this.paymentInstrumentId, revealPinRequest.paymentInstrumentId); } @Override @@ -132,14 +139,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RevealPinRequest {\n"); sb.append(" encryptedKey: ").append(toIndentedString(encryptedKey)).append("\n"); - sb.append(" paymentInstrumentId: ").append(toIndentedString(paymentInstrumentId)).append("\n"); + sb.append(" paymentInstrumentId: ") + .append(toIndentedString(paymentInstrumentId)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +156,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RevealPinRequest given an JSON string * * @param jsonString JSON string @@ -158,11 +166,12 @@ private String toIndentedString(Object o) { public static RevealPinRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RevealPinRequest.class); } -/** - * Convert an instance of RevealPinRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RevealPinRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/RevealPinResponse.java b/src/main/java/com/adyen/model/balanceplatform/RevealPinResponse.java index 7526dc2f1..395dcab77 100644 --- a/src/main/java/com/adyen/model/balanceplatform/RevealPinResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/RevealPinResponse.java @@ -2,36 +2,26 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * RevealPinResponse - */ +/** RevealPinResponse */ @JsonPropertyOrder({ RevealPinResponse.JSON_PROPERTY_ENCRYPTED_PIN_BLOCK, RevealPinResponse.JSON_PROPERTY_TOKEN }) - public class RevealPinResponse { public static final String JSON_PROPERTY_ENCRYPTED_PIN_BLOCK = "encryptedPinBlock"; private String encryptedPinBlock; @@ -39,13 +29,13 @@ public class RevealPinResponse { public static final String JSON_PROPERTY_TOKEN = "token"; private String token; - public RevealPinResponse() { - } + public RevealPinResponse() {} /** * The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block). * - * @param encryptedPinBlock The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block). + * @param encryptedPinBlock The encrypted [PIN + * block](https://www.pcisecuritystandards.org/glossary/pin-block). * @return the current {@code RevealPinResponse} instance, allowing for method chaining */ public RevealPinResponse encryptedPinBlock(String encryptedPinBlock) { @@ -55,7 +45,9 @@ public RevealPinResponse encryptedPinBlock(String encryptedPinBlock) { /** * The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block). - * @return encryptedPinBlock The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block). + * + * @return encryptedPinBlock The encrypted [PIN + * block](https://www.pcisecuritystandards.org/glossary/pin-block). */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_PIN_BLOCK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -66,7 +58,8 @@ public String getEncryptedPinBlock() { /** * The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block). * - * @param encryptedPinBlock The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block). + * @param encryptedPinBlock The encrypted [PIN + * block](https://www.pcisecuritystandards.org/glossary/pin-block). */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_PIN_BLOCK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,6 +80,7 @@ public RevealPinResponse token(String token) { /** * The 16-digit token that you need to extract the `encryptedPinBlock`. + * * @return token The 16-digit token that you need to extract the `encryptedPinBlock`. */ @JsonProperty(JSON_PROPERTY_TOKEN) @@ -106,9 +100,7 @@ public void setToken(String token) { this.token = token; } - /** - * Return true if this RevealPinResponse object is equal to o. - */ + /** Return true if this RevealPinResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +110,8 @@ public boolean equals(Object o) { return false; } RevealPinResponse revealPinResponse = (RevealPinResponse) o; - return Objects.equals(this.encryptedPinBlock, revealPinResponse.encryptedPinBlock) && - Objects.equals(this.token, revealPinResponse.token); + return Objects.equals(this.encryptedPinBlock, revealPinResponse.encryptedPinBlock) + && Objects.equals(this.token, revealPinResponse.token); } @Override @@ -138,8 +130,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +139,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RevealPinResponse given an JSON string * * @param jsonString JSON string @@ -158,11 +149,12 @@ private String toIndentedString(Object o) { public static RevealPinResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RevealPinResponse.class); } -/** - * Convert an instance of RevealPinResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RevealPinResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/RiskScores.java b/src/main/java/com/adyen/model/balanceplatform/RiskScores.java index 8df23219c..6e1742123 100644 --- a/src/main/java/com/adyen/model/balanceplatform/RiskScores.java +++ b/src/main/java/com/adyen/model/balanceplatform/RiskScores.java @@ -2,36 +2,23 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * RiskScores - */ -@JsonPropertyOrder({ - RiskScores.JSON_PROPERTY_MASTERCARD, - RiskScores.JSON_PROPERTY_VISA -}) - +/** RiskScores */ +@JsonPropertyOrder({RiskScores.JSON_PROPERTY_MASTERCARD, RiskScores.JSON_PROPERTY_VISA}) public class RiskScores { public static final String JSON_PROPERTY_MASTERCARD = "mastercard"; private Integer mastercard; @@ -39,13 +26,14 @@ public class RiskScores { public static final String JSON_PROPERTY_VISA = "visa"; private Integer visa; - public RiskScores() { - } + public RiskScores() {} /** - * Transaction risk score provided by Mastercard. Values provided by Mastercard range between 0 (lowest risk) to 998 (highest risk). + * Transaction risk score provided by Mastercard. Values provided by Mastercard range between 0 + * (lowest risk) to 998 (highest risk). * - * @param mastercard Transaction risk score provided by Mastercard. Values provided by Mastercard range between 0 (lowest risk) to 998 (highest risk). + * @param mastercard Transaction risk score provided by Mastercard. Values provided by Mastercard + * range between 0 (lowest risk) to 998 (highest risk). * @return the current {@code RiskScores} instance, allowing for method chaining */ public RiskScores mastercard(Integer mastercard) { @@ -54,8 +42,11 @@ public RiskScores mastercard(Integer mastercard) { } /** - * Transaction risk score provided by Mastercard. Values provided by Mastercard range between 0 (lowest risk) to 998 (highest risk). - * @return mastercard Transaction risk score provided by Mastercard. Values provided by Mastercard range between 0 (lowest risk) to 998 (highest risk). + * Transaction risk score provided by Mastercard. Values provided by Mastercard range between 0 + * (lowest risk) to 998 (highest risk). + * + * @return mastercard Transaction risk score provided by Mastercard. Values provided by Mastercard + * range between 0 (lowest risk) to 998 (highest risk). */ @JsonProperty(JSON_PROPERTY_MASTERCARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +55,11 @@ public Integer getMastercard() { } /** - * Transaction risk score provided by Mastercard. Values provided by Mastercard range between 0 (lowest risk) to 998 (highest risk). + * Transaction risk score provided by Mastercard. Values provided by Mastercard range between 0 + * (lowest risk) to 998 (highest risk). * - * @param mastercard Transaction risk score provided by Mastercard. Values provided by Mastercard range between 0 (lowest risk) to 998 (highest risk). + * @param mastercard Transaction risk score provided by Mastercard. Values provided by Mastercard + * range between 0 (lowest risk) to 998 (highest risk). */ @JsonProperty(JSON_PROPERTY_MASTERCARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,9 +68,11 @@ public void setMastercard(Integer mastercard) { } /** - * Transaction risk score provided by Visa. Values provided by Visa range between 01 (lowest risk) to 99 (highest risk). + * Transaction risk score provided by Visa. Values provided by Visa range between 01 (lowest risk) + * to 99 (highest risk). * - * @param visa Transaction risk score provided by Visa. Values provided by Visa range between 01 (lowest risk) to 99 (highest risk). + * @param visa Transaction risk score provided by Visa. Values provided by Visa range between 01 + * (lowest risk) to 99 (highest risk). * @return the current {@code RiskScores} instance, allowing for method chaining */ public RiskScores visa(Integer visa) { @@ -86,8 +81,11 @@ public RiskScores visa(Integer visa) { } /** - * Transaction risk score provided by Visa. Values provided by Visa range between 01 (lowest risk) to 99 (highest risk). - * @return visa Transaction risk score provided by Visa. Values provided by Visa range between 01 (lowest risk) to 99 (highest risk). + * Transaction risk score provided by Visa. Values provided by Visa range between 01 (lowest risk) + * to 99 (highest risk). + * + * @return visa Transaction risk score provided by Visa. Values provided by Visa range between 01 + * (lowest risk) to 99 (highest risk). */ @JsonProperty(JSON_PROPERTY_VISA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +94,11 @@ public Integer getVisa() { } /** - * Transaction risk score provided by Visa. Values provided by Visa range between 01 (lowest risk) to 99 (highest risk). + * Transaction risk score provided by Visa. Values provided by Visa range between 01 (lowest risk) + * to 99 (highest risk). * - * @param visa Transaction risk score provided by Visa. Values provided by Visa range between 01 (lowest risk) to 99 (highest risk). + * @param visa Transaction risk score provided by Visa. Values provided by Visa range between 01 + * (lowest risk) to 99 (highest risk). */ @JsonProperty(JSON_PROPERTY_VISA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +106,7 @@ public void setVisa(Integer visa) { this.visa = visa; } - /** - * Return true if this RiskScores object is equal to o. - */ + /** Return true if this RiskScores object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +116,8 @@ public boolean equals(Object o) { return false; } RiskScores riskScores = (RiskScores) o; - return Objects.equals(this.mastercard, riskScores.mastercard) && - Objects.equals(this.visa, riskScores.visa); + return Objects.equals(this.mastercard, riskScores.mastercard) + && Objects.equals(this.visa, riskScores.visa); } @Override @@ -138,8 +136,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +145,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RiskScores given an JSON string * * @param jsonString JSON string @@ -158,11 +155,12 @@ private String toIndentedString(Object o) { public static RiskScores fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RiskScores.class); } -/** - * Convert an instance of RiskScores to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RiskScores to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/RiskScoresRestriction.java b/src/main/java/com/adyen/model/balanceplatform/RiskScoresRestriction.java index aa63f5351..46afd17bb 100644 --- a/src/main/java/com/adyen/model/balanceplatform/RiskScoresRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/RiskScoresRestriction.java @@ -2,37 +2,26 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.RiskScores; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * RiskScoresRestriction - */ +/** RiskScoresRestriction */ @JsonPropertyOrder({ RiskScoresRestriction.JSON_PROPERTY_OPERATION, RiskScoresRestriction.JSON_PROPERTY_VALUE }) - public class RiskScoresRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -40,8 +29,7 @@ public class RiskScoresRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private RiskScores value; - public RiskScoresRestriction() { - } + public RiskScoresRestriction() {} /** * Defines how the condition must be evaluated. @@ -56,6 +44,7 @@ public RiskScoresRestriction operation(String operation) { /** * Defines how the condition must be evaluated. + * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -78,7 +67,7 @@ public void setOperation(String operation) { /** * value * - * @param value + * @param value * @return the current {@code RiskScoresRestriction} instance, allowing for method chaining */ public RiskScoresRestriction value(RiskScores value) { @@ -88,7 +77,8 @@ public RiskScoresRestriction value(RiskScores value) { /** * Get value - * @return value + * + * @return value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,7 +89,7 @@ public RiskScores getValue() { /** * value * - * @param value + * @param value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,9 +97,7 @@ public void setValue(RiskScores value) { this.value = value; } - /** - * Return true if this RiskScoresRestriction object is equal to o. - */ + /** Return true if this RiskScoresRestriction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -119,8 +107,8 @@ public boolean equals(Object o) { return false; } RiskScoresRestriction riskScoresRestriction = (RiskScoresRestriction) o; - return Objects.equals(this.operation, riskScoresRestriction.operation) && - Objects.equals(this.value, riskScoresRestriction.value); + return Objects.equals(this.operation, riskScoresRestriction.operation) + && Objects.equals(this.value, riskScoresRestriction.value); } @Override @@ -139,8 +127,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -149,21 +136,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RiskScoresRestriction given an JSON string * * @param jsonString JSON string * @return An instance of RiskScoresRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to RiskScoresRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to + * RiskScoresRestriction */ public static RiskScoresRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RiskScoresRestriction.class); } -/** - * Convert an instance of RiskScoresRestriction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RiskScoresRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/SELocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/SELocalAccountIdentification.java index 9fd9b2ee0..a316850d9 100644 --- a/src/main/java/com/adyen/model/balanceplatform/SELocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/SELocalAccountIdentification.java @@ -2,37 +2,31 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * SELocalAccountIdentification - */ +/** SELocalAccountIdentification */ @JsonPropertyOrder({ SELocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, SELocalAccountIdentification.JSON_PROPERTY_CLEARING_NUMBER, SELocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class SELocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -40,11 +34,8 @@ public class SELocalAccountIdentification { public static final String JSON_PROPERTY_CLEARING_NUMBER = "clearingNumber"; private String clearingNumber; - /** - * **seLocal** - */ + /** **seLocal** */ public enum TypeEnum { - SELOCAL(String.valueOf("seLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +43,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +64,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,13 +76,16 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public SELocalAccountIdentification() { - } + public SELocalAccountIdentification() {} /** - * The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. + * The 7- to 10-digit bank account number + * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, + * separators, or whitespace. * - * @param accountNumber The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. + * @param accountNumber The 7- to 10-digit bank account number + * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, + * separators, or whitespace. * @return the current {@code SELocalAccountIdentification} instance, allowing for method chaining */ public SELocalAccountIdentification accountNumber(String accountNumber) { @@ -96,8 +94,13 @@ public SELocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. - * @return accountNumber The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. + * The 7- to 10-digit bank account number + * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, + * separators, or whitespace. + * + * @return accountNumber The 7- to 10-digit bank account number + * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, + * separators, or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +109,13 @@ public String getAccountNumber() { } /** - * The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. + * The 7- to 10-digit bank account number + * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, + * separators, or whitespace. * - * @param accountNumber The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. + * @param accountNumber The 7- to 10-digit bank account number + * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, + * separators, or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,9 +124,13 @@ public void setAccountNumber(String accountNumber) { } /** - * The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. + * The 4- to 5-digit clearing number + * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or + * whitespace. * - * @param clearingNumber The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. + * @param clearingNumber The 4- to 5-digit clearing number + * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or + * whitespace. * @return the current {@code SELocalAccountIdentification} instance, allowing for method chaining */ public SELocalAccountIdentification clearingNumber(String clearingNumber) { @@ -128,8 +139,13 @@ public SELocalAccountIdentification clearingNumber(String clearingNumber) { } /** - * The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. - * @return clearingNumber The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. + * The 4- to 5-digit clearing number + * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or + * whitespace. + * + * @return clearingNumber The 4- to 5-digit clearing number + * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or + * whitespace. */ @JsonProperty(JSON_PROPERTY_CLEARING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,9 +154,13 @@ public String getClearingNumber() { } /** - * The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. + * The 4- to 5-digit clearing number + * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or + * whitespace. * - * @param clearingNumber The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. + * @param clearingNumber The 4- to 5-digit clearing number + * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or + * whitespace. */ @JsonProperty(JSON_PROPERTY_CLEARING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,6 +181,7 @@ public SELocalAccountIdentification type(TypeEnum type) { /** * **seLocal** + * * @return type **seLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +201,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this SELocalAccountIdentification object is equal to o. - */ + /** Return true if this SELocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +211,9 @@ public boolean equals(Object o) { return false; } SELocalAccountIdentification seLocalAccountIdentification = (SELocalAccountIdentification) o; - return Objects.equals(this.accountNumber, seLocalAccountIdentification.accountNumber) && - Objects.equals(this.clearingNumber, seLocalAccountIdentification.clearingNumber) && - Objects.equals(this.type, seLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, seLocalAccountIdentification.accountNumber) + && Objects.equals(this.clearingNumber, seLocalAccountIdentification.clearingNumber) + && Objects.equals(this.type, seLocalAccountIdentification.type); } @Override @@ -214,8 +233,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +242,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SELocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of SELocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to SELocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SELocalAccountIdentification */ - public static SELocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static SELocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SELocalAccountIdentification.class); } -/** - * Convert an instance of SELocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SELocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/SGLocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/SGLocalAccountIdentification.java index 30f2625a7..0d9892271 100644 --- a/src/main/java/com/adyen/model/balanceplatform/SGLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/SGLocalAccountIdentification.java @@ -2,37 +2,31 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * SGLocalAccountIdentification - */ +/** SGLocalAccountIdentification */ @JsonPropertyOrder({ SGLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, SGLocalAccountIdentification.JSON_PROPERTY_BIC, SGLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class SGLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -40,11 +34,8 @@ public class SGLocalAccountIdentification { public static final String JSON_PROPERTY_BIC = "bic"; private String bic; - /** - * **sgLocal** - */ + /** **sgLocal** */ public enum TypeEnum { - SGLOCAL(String.valueOf("sgLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +43,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +64,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,8 +76,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public SGLocalAccountIdentification() { - } + public SGLocalAccountIdentification() {} /** * The 4- to 19-digit bank account number, without separators or whitespace. @@ -97,6 +91,7 @@ public SGLocalAccountIdentification accountNumber(String accountNumber) { /** * The 4- to 19-digit bank account number, without separators or whitespace. + * * @return accountNumber The 4- to 19-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -129,6 +124,7 @@ public SGLocalAccountIdentification bic(String bic) { /** * The bank's 8- or 11-character BIC or SWIFT code. + * * @return bic The bank's 8- or 11-character BIC or SWIFT code. */ @JsonProperty(JSON_PROPERTY_BIC) @@ -161,6 +157,7 @@ public SGLocalAccountIdentification type(TypeEnum type) { /** * **sgLocal** + * * @return type **sgLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +177,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this SGLocalAccountIdentification object is equal to o. - */ + /** Return true if this SGLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +187,9 @@ public boolean equals(Object o) { return false; } SGLocalAccountIdentification sgLocalAccountIdentification = (SGLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, sgLocalAccountIdentification.accountNumber) && - Objects.equals(this.bic, sgLocalAccountIdentification.bic) && - Objects.equals(this.type, sgLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, sgLocalAccountIdentification.accountNumber) + && Objects.equals(this.bic, sgLocalAccountIdentification.bic) + && Objects.equals(this.type, sgLocalAccountIdentification.type); } @Override @@ -214,8 +209,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +218,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SGLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of SGLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to SGLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SGLocalAccountIdentification */ - public static SGLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static SGLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SGLocalAccountIdentification.class); } -/** - * Convert an instance of SGLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SGLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/SameAmountRestriction.java b/src/main/java/com/adyen/model/balanceplatform/SameAmountRestriction.java index 54ebb7a48..907568935 100644 --- a/src/main/java/com/adyen/model/balanceplatform/SameAmountRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/SameAmountRestriction.java @@ -2,36 +2,26 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * SameAmountRestriction - */ +/** SameAmountRestriction */ @JsonPropertyOrder({ SameAmountRestriction.JSON_PROPERTY_OPERATION, SameAmountRestriction.JSON_PROPERTY_VALUE }) - public class SameAmountRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -39,8 +29,7 @@ public class SameAmountRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private Boolean value; - public SameAmountRestriction() { - } + public SameAmountRestriction() {} /** * Defines how the condition must be evaluated. @@ -55,6 +44,7 @@ public SameAmountRestriction operation(String operation) { /** * Defines how the condition must be evaluated. + * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -77,7 +67,7 @@ public void setOperation(String operation) { /** * value * - * @param value + * @param value * @return the current {@code SameAmountRestriction} instance, allowing for method chaining */ public SameAmountRestriction value(Boolean value) { @@ -87,7 +77,8 @@ public SameAmountRestriction value(Boolean value) { /** * Get value - * @return value + * + * @return value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -98,7 +89,7 @@ public Boolean getValue() { /** * value * - * @param value + * @param value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +97,7 @@ public void setValue(Boolean value) { this.value = value; } - /** - * Return true if this SameAmountRestriction object is equal to o. - */ + /** Return true if this SameAmountRestriction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +107,8 @@ public boolean equals(Object o) { return false; } SameAmountRestriction sameAmountRestriction = (SameAmountRestriction) o; - return Objects.equals(this.operation, sameAmountRestriction.operation) && - Objects.equals(this.value, sameAmountRestriction.value); + return Objects.equals(this.operation, sameAmountRestriction.operation) + && Objects.equals(this.value, sameAmountRestriction.value); } @Override @@ -138,8 +127,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +136,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SameAmountRestriction given an JSON string * * @param jsonString JSON string * @return An instance of SameAmountRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to SameAmountRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SameAmountRestriction */ public static SameAmountRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SameAmountRestriction.class); } -/** - * Convert an instance of SameAmountRestriction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SameAmountRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/SameCounterpartyRestriction.java b/src/main/java/com/adyen/model/balanceplatform/SameCounterpartyRestriction.java index 69b19bb09..995cdf7da 100644 --- a/src/main/java/com/adyen/model/balanceplatform/SameCounterpartyRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/SameCounterpartyRestriction.java @@ -2,36 +2,26 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * SameCounterpartyRestriction - */ +/** SameCounterpartyRestriction */ @JsonPropertyOrder({ SameCounterpartyRestriction.JSON_PROPERTY_OPERATION, SameCounterpartyRestriction.JSON_PROPERTY_VALUE }) - public class SameCounterpartyRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -39,8 +29,7 @@ public class SameCounterpartyRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private Boolean value; - public SameCounterpartyRestriction() { - } + public SameCounterpartyRestriction() {} /** * Defines how the condition must be evaluated. @@ -55,6 +44,7 @@ public SameCounterpartyRestriction operation(String operation) { /** * Defines how the condition must be evaluated. + * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -77,7 +67,7 @@ public void setOperation(String operation) { /** * value * - * @param value + * @param value * @return the current {@code SameCounterpartyRestriction} instance, allowing for method chaining */ public SameCounterpartyRestriction value(Boolean value) { @@ -87,7 +77,8 @@ public SameCounterpartyRestriction value(Boolean value) { /** * Get value - * @return value + * + * @return value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -98,7 +89,7 @@ public Boolean getValue() { /** * value * - * @param value + * @param value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +97,7 @@ public void setValue(Boolean value) { this.value = value; } - /** - * Return true if this SameCounterpartyRestriction object is equal to o. - */ + /** Return true if this SameCounterpartyRestriction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +107,8 @@ public boolean equals(Object o) { return false; } SameCounterpartyRestriction sameCounterpartyRestriction = (SameCounterpartyRestriction) o; - return Objects.equals(this.operation, sameCounterpartyRestriction.operation) && - Objects.equals(this.value, sameCounterpartyRestriction.value); + return Objects.equals(this.operation, sameCounterpartyRestriction.operation) + && Objects.equals(this.value, sameCounterpartyRestriction.value); } @Override @@ -138,8 +127,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +136,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SameCounterpartyRestriction given an JSON string * * @param jsonString JSON string * @return An instance of SameCounterpartyRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to SameCounterpartyRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SameCounterpartyRestriction */ - public static SameCounterpartyRestriction fromJson(String jsonString) throws JsonProcessingException { + public static SameCounterpartyRestriction fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SameCounterpartyRestriction.class); } -/** - * Convert an instance of SameCounterpartyRestriction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SameCounterpartyRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/SearchRegisteredDevicesResponse.java b/src/main/java/com/adyen/model/balanceplatform/SearchRegisteredDevicesResponse.java index bdcac1690..099cdc84f 100644 --- a/src/main/java/com/adyen/model/balanceplatform/SearchRegisteredDevicesResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/SearchRegisteredDevicesResponse.java @@ -2,42 +2,30 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.Device; -import com.adyen.model.balanceplatform.Link; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * SearchRegisteredDevicesResponse - */ +/** SearchRegisteredDevicesResponse */ @JsonPropertyOrder({ SearchRegisteredDevicesResponse.JSON_PROPERTY_DATA, SearchRegisteredDevicesResponse.JSON_PROPERTY_ITEMS_TOTAL, SearchRegisteredDevicesResponse.JSON_PROPERTY_LINK, SearchRegisteredDevicesResponse.JSON_PROPERTY_PAGES_TOTAL }) - public class SearchRegisteredDevicesResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; @@ -51,14 +39,14 @@ public class SearchRegisteredDevicesResponse { public static final String JSON_PROPERTY_PAGES_TOTAL = "pagesTotal"; private Integer pagesTotal; - public SearchRegisteredDevicesResponse() { - } + public SearchRegisteredDevicesResponse() {} /** * Contains a list of registered SCA devices and their corresponding details. * * @param data Contains a list of registered SCA devices and their corresponding details. - * @return the current {@code SearchRegisteredDevicesResponse} instance, allowing for method chaining + * @return the current {@code SearchRegisteredDevicesResponse} instance, allowing for method + * chaining */ public SearchRegisteredDevicesResponse data(List data) { this.data = data; @@ -75,6 +63,7 @@ public SearchRegisteredDevicesResponse addDataItem(Device dataItem) { /** * Contains a list of registered SCA devices and their corresponding details. + * * @return data Contains a list of registered SCA devices and their corresponding details. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -98,7 +87,8 @@ public void setData(List data) { * The total amount of registered SCA devices that match the query parameters. * * @param itemsTotal The total amount of registered SCA devices that match the query parameters. - * @return the current {@code SearchRegisteredDevicesResponse} instance, allowing for method chaining + * @return the current {@code SearchRegisteredDevicesResponse} instance, allowing for method + * chaining */ public SearchRegisteredDevicesResponse itemsTotal(Integer itemsTotal) { this.itemsTotal = itemsTotal; @@ -107,6 +97,7 @@ public SearchRegisteredDevicesResponse itemsTotal(Integer itemsTotal) { /** * The total amount of registered SCA devices that match the query parameters. + * * @return itemsTotal The total amount of registered SCA devices that match the query parameters. */ @JsonProperty(JSON_PROPERTY_ITEMS_TOTAL) @@ -129,8 +120,9 @@ public void setItemsTotal(Integer itemsTotal) { /** * link * - * @param link - * @return the current {@code SearchRegisteredDevicesResponse} instance, allowing for method chaining + * @param link + * @return the current {@code SearchRegisteredDevicesResponse} instance, allowing for method + * chaining */ public SearchRegisteredDevicesResponse link(Link link) { this.link = link; @@ -139,7 +131,8 @@ public SearchRegisteredDevicesResponse link(Link link) { /** * Get link - * @return link + * + * @return link */ @JsonProperty(JSON_PROPERTY_LINK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,7 +143,7 @@ public Link getLink() { /** * link * - * @param link + * @param link */ @JsonProperty(JSON_PROPERTY_LINK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -162,7 +155,8 @@ public void setLink(Link link) { * The total amount of list pages. * * @param pagesTotal The total amount of list pages. - * @return the current {@code SearchRegisteredDevicesResponse} instance, allowing for method chaining + * @return the current {@code SearchRegisteredDevicesResponse} instance, allowing for method + * chaining */ public SearchRegisteredDevicesResponse pagesTotal(Integer pagesTotal) { this.pagesTotal = pagesTotal; @@ -171,6 +165,7 @@ public SearchRegisteredDevicesResponse pagesTotal(Integer pagesTotal) { /** * The total amount of list pages. + * * @return pagesTotal The total amount of list pages. */ @JsonProperty(JSON_PROPERTY_PAGES_TOTAL) @@ -190,9 +185,7 @@ public void setPagesTotal(Integer pagesTotal) { this.pagesTotal = pagesTotal; } - /** - * Return true if this SearchRegisteredDevicesResponse object is equal to o. - */ + /** Return true if this SearchRegisteredDevicesResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -201,11 +194,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SearchRegisteredDevicesResponse searchRegisteredDevicesResponse = (SearchRegisteredDevicesResponse) o; - return Objects.equals(this.data, searchRegisteredDevicesResponse.data) && - Objects.equals(this.itemsTotal, searchRegisteredDevicesResponse.itemsTotal) && - Objects.equals(this.link, searchRegisteredDevicesResponse.link) && - Objects.equals(this.pagesTotal, searchRegisteredDevicesResponse.pagesTotal); + SearchRegisteredDevicesResponse searchRegisteredDevicesResponse = + (SearchRegisteredDevicesResponse) o; + return Objects.equals(this.data, searchRegisteredDevicesResponse.data) + && Objects.equals(this.itemsTotal, searchRegisteredDevicesResponse.itemsTotal) + && Objects.equals(this.link, searchRegisteredDevicesResponse.link) + && Objects.equals(this.pagesTotal, searchRegisteredDevicesResponse.pagesTotal); } @Override @@ -226,8 +220,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -236,21 +229,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SearchRegisteredDevicesResponse given an JSON string * * @param jsonString JSON string * @return An instance of SearchRegisteredDevicesResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to SearchRegisteredDevicesResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SearchRegisteredDevicesResponse */ - public static SearchRegisteredDevicesResponse fromJson(String jsonString) throws JsonProcessingException { + public static SearchRegisteredDevicesResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SearchRegisteredDevicesResponse.class); } -/** - * Convert an instance of SearchRegisteredDevicesResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SearchRegisteredDevicesResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/SettingType.java b/src/main/java/com/adyen/model/balanceplatform/SettingType.java index 3e8742f60..1205ae090 100644 --- a/src/main/java/com/adyen/model/balanceplatform/SettingType.java +++ b/src/main/java/com/adyen/model/balanceplatform/SettingType.java @@ -2,30 +2,21 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - - import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.*; -/** - * Gets or Sets SettingType - */ +/** Gets or Sets SettingType */ public enum SettingType { - BALANCE("balance"); private String value; @@ -54,4 +45,3 @@ public static SettingType fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - diff --git a/src/main/java/com/adyen/model/balanceplatform/SourceAccountTypesRestriction.java b/src/main/java/com/adyen/model/balanceplatform/SourceAccountTypesRestriction.java index 4a810eac0..b8f3fcb1f 100644 --- a/src/main/java/com/adyen/model/balanceplatform/SourceAccountTypesRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/SourceAccountTypesRestriction.java @@ -2,47 +2,38 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * SourceAccountTypesRestriction - */ +/** SourceAccountTypesRestriction */ @JsonPropertyOrder({ SourceAccountTypesRestriction.JSON_PROPERTY_OPERATION, SourceAccountTypesRestriction.JSON_PROPERTY_VALUE }) - public class SourceAccountTypesRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; - /** - * Gets or Sets value - */ + /** Gets or Sets value */ public enum ValueEnum { - BALANCEACCOUNT(String.valueOf("balanceAccount")), BUSINESSACCOUNT(String.valueOf("businessAccount")); @@ -52,7 +43,7 @@ public enum ValueEnum { private String value; ValueEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +64,11 @@ public static ValueEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ValueEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ValueEnum.values())); + LOG.warning( + "ValueEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ValueEnum.values())); return null; } } @@ -81,14 +76,14 @@ public static ValueEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUE = "value"; private List value; - public SourceAccountTypesRestriction() { - } + public SourceAccountTypesRestriction() {} /** * Defines how the condition must be evaluated. * * @param operation Defines how the condition must be evaluated. - * @return the current {@code SourceAccountTypesRestriction} instance, allowing for method chaining + * @return the current {@code SourceAccountTypesRestriction} instance, allowing for method + * chaining */ public SourceAccountTypesRestriction operation(String operation) { this.operation = operation; @@ -97,6 +92,7 @@ public SourceAccountTypesRestriction operation(String operation) { /** * Defines how the condition must be evaluated. + * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -120,7 +116,8 @@ public void setOperation(String operation) { * The list of source account types to be evaluated. * * @param value The list of source account types to be evaluated. - * @return the current {@code SourceAccountTypesRestriction} instance, allowing for method chaining + * @return the current {@code SourceAccountTypesRestriction} instance, allowing for method + * chaining */ public SourceAccountTypesRestriction value(List value) { this.value = value; @@ -137,6 +134,7 @@ public SourceAccountTypesRestriction addValueItem(ValueEnum valueItem) { /** * The list of source account types to be evaluated. + * * @return value The list of source account types to be evaluated. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -156,9 +154,7 @@ public void setValue(List value) { this.value = value; } - /** - * Return true if this SourceAccountTypesRestriction object is equal to o. - */ + /** Return true if this SourceAccountTypesRestriction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -168,8 +164,8 @@ public boolean equals(Object o) { return false; } SourceAccountTypesRestriction sourceAccountTypesRestriction = (SourceAccountTypesRestriction) o; - return Objects.equals(this.operation, sourceAccountTypesRestriction.operation) && - Objects.equals(this.value, sourceAccountTypesRestriction.value); + return Objects.equals(this.operation, sourceAccountTypesRestriction.operation) + && Objects.equals(this.value, sourceAccountTypesRestriction.value); } @Override @@ -188,8 +184,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -198,21 +193,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SourceAccountTypesRestriction given an JSON string * * @param jsonString JSON string * @return An instance of SourceAccountTypesRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to SourceAccountTypesRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SourceAccountTypesRestriction */ - public static SourceAccountTypesRestriction fromJson(String jsonString) throws JsonProcessingException { + public static SourceAccountTypesRestriction fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SourceAccountTypesRestriction.class); } -/** - * Convert an instance of SourceAccountTypesRestriction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SourceAccountTypesRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/StringMatch.java b/src/main/java/com/adyen/model/balanceplatform/StringMatch.java index 16e657cde..9c2f29d09 100644 --- a/src/main/java/com/adyen/model/balanceplatform/StringMatch.java +++ b/src/main/java/com/adyen/model/balanceplatform/StringMatch.java @@ -2,42 +2,33 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * StringMatch - */ -@JsonPropertyOrder({ - StringMatch.JSON_PROPERTY_OPERATION, - StringMatch.JSON_PROPERTY_VALUE -}) - +/** StringMatch */ +@JsonPropertyOrder({StringMatch.JSON_PROPERTY_OPERATION, StringMatch.JSON_PROPERTY_VALUE}) public class StringMatch { /** - * The type of string matching operation. Possible values: **startsWith**, **endsWith**, **isEqualTo**, **contains**, + * The type of string matching operation. Possible values: **startsWith**, **endsWith**, + * **isEqualTo**, **contains**, */ public enum OperationEnum { - CONTAINS(String.valueOf("contains")), ENDSWITH(String.valueOf("endsWith")), @@ -51,7 +42,7 @@ public enum OperationEnum { private String value; OperationEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -72,7 +63,11 @@ public static OperationEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("OperationEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(OperationEnum.values())); + LOG.warning( + "OperationEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(OperationEnum.values())); return null; } } @@ -83,13 +78,14 @@ public static OperationEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUE = "value"; private String value; - public StringMatch() { - } + public StringMatch() {} /** - * The type of string matching operation. Possible values: **startsWith**, **endsWith**, **isEqualTo**, **contains**, + * The type of string matching operation. Possible values: **startsWith**, **endsWith**, + * **isEqualTo**, **contains**, * - * @param operation The type of string matching operation. Possible values: **startsWith**, **endsWith**, **isEqualTo**, **contains**, + * @param operation The type of string matching operation. Possible values: **startsWith**, + * **endsWith**, **isEqualTo**, **contains**, * @return the current {@code StringMatch} instance, allowing for method chaining */ public StringMatch operation(OperationEnum operation) { @@ -98,8 +94,11 @@ public StringMatch operation(OperationEnum operation) { } /** - * The type of string matching operation. Possible values: **startsWith**, **endsWith**, **isEqualTo**, **contains**, - * @return operation The type of string matching operation. Possible values: **startsWith**, **endsWith**, **isEqualTo**, **contains**, + * The type of string matching operation. Possible values: **startsWith**, **endsWith**, + * **isEqualTo**, **contains**, + * + * @return operation The type of string matching operation. Possible values: **startsWith**, + * **endsWith**, **isEqualTo**, **contains**, */ @JsonProperty(JSON_PROPERTY_OPERATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,9 +107,11 @@ public OperationEnum getOperation() { } /** - * The type of string matching operation. Possible values: **startsWith**, **endsWith**, **isEqualTo**, **contains**, + * The type of string matching operation. Possible values: **startsWith**, **endsWith**, + * **isEqualTo**, **contains**, * - * @param operation The type of string matching operation. Possible values: **startsWith**, **endsWith**, **isEqualTo**, **contains**, + * @param operation The type of string matching operation. Possible values: **startsWith**, + * **endsWith**, **isEqualTo**, **contains**, */ @JsonProperty(JSON_PROPERTY_OPERATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -131,6 +132,7 @@ public StringMatch value(String value) { /** * The string to be matched. + * * @return value The string to be matched. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -150,9 +152,7 @@ public void setValue(String value) { this.value = value; } - /** - * Return true if this StringMatch object is equal to o. - */ + /** Return true if this StringMatch object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -162,8 +162,8 @@ public boolean equals(Object o) { return false; } StringMatch stringMatch = (StringMatch) o; - return Objects.equals(this.operation, stringMatch.operation) && - Objects.equals(this.value, stringMatch.value); + return Objects.equals(this.operation, stringMatch.operation) + && Objects.equals(this.value, stringMatch.value); } @Override @@ -182,8 +182,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -192,7 +191,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of StringMatch given an JSON string * * @param jsonString JSON string @@ -202,11 +201,12 @@ private String toIndentedString(Object o) { public static StringMatch fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StringMatch.class); } -/** - * Convert an instance of StringMatch to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of StringMatch to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/SweepConfigurationV2.java b/src/main/java/com/adyen/model/balanceplatform/SweepConfigurationV2.java index d4f4f82eb..08b97b895 100644 --- a/src/main/java/com/adyen/model/balanceplatform/SweepConfigurationV2.java +++ b/src/main/java/com/adyen/model/balanceplatform/SweepConfigurationV2.java @@ -2,36 +2,28 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.Amount; -import com.adyen.model.balanceplatform.SweepCounterparty; -import com.adyen.model.balanceplatform.SweepSchedule; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * SweepConfigurationV2 - */ +/** SweepConfigurationV2 */ @JsonPropertyOrder({ SweepConfigurationV2.JSON_PROPERTY_CATEGORY, SweepConfigurationV2.JSON_PROPERTY_COUNTERPARTY, @@ -50,13 +42,16 @@ SweepConfigurationV2.JSON_PROPERTY_TRIGGER_AMOUNT, SweepConfigurationV2.JSON_PROPERTY_TYPE }) - public class SweepConfigurationV2 { /** - * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. + * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a + * [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * - **internal**: Transfer to another [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. Required when setting `priorities`. */ public enum CategoryEnum { - BANK(String.valueOf("bank")), INTERNAL(String.valueOf("internal")), @@ -68,7 +63,7 @@ public enum CategoryEnum { private String value; CategoryEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -89,7 +84,11 @@ public static CategoryEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("CategoryEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CategoryEnum.values())); + LOG.warning( + "CategoryEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(CategoryEnum.values())); return null; } } @@ -109,11 +108,8 @@ public static CategoryEnum fromValue(String value) { public static final String JSON_PROPERTY_ID = "id"; private String id; - /** - * Gets or Sets priorities - */ + /** Gets or Sets priorities */ public enum PrioritiesEnum { - CROSSBORDER(String.valueOf("crossBorder")), FAST(String.valueOf("fast")), @@ -131,7 +127,7 @@ public enum PrioritiesEnum { private String value; PrioritiesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -152,7 +148,11 @@ public static PrioritiesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PrioritiesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PrioritiesEnum.values())); + LOG.warning( + "PrioritiesEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PrioritiesEnum.values())); return null; } } @@ -160,11 +160,8 @@ public static PrioritiesEnum fromValue(String value) { public static final String JSON_PROPERTY_PRIORITIES = "priorities"; private List priorities; - /** - * The reason for disabling the sweep. - */ + /** The reason for disabling the sweep. */ public enum ReasonEnum { - ACCOUNTHIERARCHYNOTACTIVE(String.valueOf("accountHierarchyNotActive")), AMOUNTLIMITEXCEEDED(String.valueOf("amountLimitExceeded")), @@ -173,7 +170,8 @@ public enum ReasonEnum { APPROVED(String.valueOf("approved")), - BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE(String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), + BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE( + String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), COUNTERPARTYACCOUNTBLOCKED(String.valueOf("counterpartyAccountBlocked")), @@ -220,7 +218,7 @@ public enum ReasonEnum { private String value; ReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -241,7 +239,11 @@ public static ReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ReasonEnum.values())); + LOG.warning( + "ReasonEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ReasonEnum.values())); return null; } } @@ -262,10 +264,11 @@ public static ReasonEnum fromValue(String value) { private SweepSchedule schedule; /** - * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * The status of the sweep. If not provided, by default, this is set to **active**. Possible + * values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on + * the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. */ public enum StatusEnum { - ACTIVE(String.valueOf("active")), INACTIVE(String.valueOf("inactive")); @@ -275,7 +278,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -296,7 +299,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -314,10 +321,12 @@ public static StatusEnum fromValue(String value) { private Amount triggerAmount; /** - * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. + * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not + * provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to + * a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source + * merchant account, transfer instrument, or balance account. */ public enum TypeEnum { - PULL(String.valueOf("pull")), PUSH(String.valueOf("push")); @@ -327,7 +336,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -348,7 +357,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -356,15 +369,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public SweepConfigurationV2() { - } + public SweepConfigurationV2() {} @JsonCreator public SweepConfigurationV2( - @JsonProperty(JSON_PROPERTY_ID) String id, - @JsonProperty(JSON_PROPERTY_REASON) ReasonEnum reason, - @JsonProperty(JSON_PROPERTY_REASON_DETAIL) String reasonDetail - ) { + @JsonProperty(JSON_PROPERTY_ID) String id, + @JsonProperty(JSON_PROPERTY_REASON) ReasonEnum reason, + @JsonProperty(JSON_PROPERTY_REASON_DETAIL) String reasonDetail) { this(); this.id = id; this.reason = reason; @@ -372,9 +383,19 @@ public SweepConfigurationV2( } /** - * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. + * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a + * [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * - **internal**: Transfer to another [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. Required when setting `priorities`. * - * @param category The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. + * @param category The type of transfer that results from the sweep. Possible values: - **bank**: + * Sweep to a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * - **internal**: Transfer to another [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. Required when setting `priorities`. * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 category(CategoryEnum category) { @@ -383,8 +404,19 @@ public SweepConfigurationV2 category(CategoryEnum category) { } /** - * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. - * @return category The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. + * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a + * [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * - **internal**: Transfer to another [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. Required when setting `priorities`. + * + * @return category The type of transfer that results from the sweep. Possible values: - **bank**: + * Sweep to a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * - **internal**: Transfer to another [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. Required when setting `priorities`. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -393,9 +425,19 @@ public CategoryEnum getCategory() { } /** - * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. + * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a + * [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * - **internal**: Transfer to another [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. Required when setting `priorities`. * - * @param category The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. + * @param category The type of transfer that results from the sweep. Possible values: - **bank**: + * Sweep to a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * - **internal**: Transfer to another [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. Required when setting `priorities`. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -406,7 +448,7 @@ public void setCategory(CategoryEnum category) { /** * counterparty * - * @param counterparty + * @param counterparty * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 counterparty(SweepCounterparty counterparty) { @@ -416,7 +458,8 @@ public SweepConfigurationV2 counterparty(SweepCounterparty counterparty) { /** * Get counterparty - * @return counterparty + * + * @return counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -427,7 +470,7 @@ public SweepCounterparty getCounterparty() { /** * counterparty * - * @param counterparty + * @param counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -436,9 +479,15 @@ public void setCounterparty(SweepCounterparty counterparty) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, + * **EUR**. The sweep currency must match any of the [balances + * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For + * example, **EUR**. The sweep currency must match any of the [balances + * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 currency(String currency) { @@ -447,8 +496,15 @@ public SweepConfigurationV2 currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, + * **EUR**. The sweep currency must match any of the [balances + * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For + * example, **EUR**. The sweep currency must match any of the [balances + * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -457,9 +513,15 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, + * **EUR**. The sweep currency must match any of the [balances + * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For + * example, **EUR**. The sweep currency must match any of the [balances + * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -468,9 +530,13 @@ public void setCurrency(String currency) { } /** - * The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. + * The message that will be used in the sweep transfer's description body with a maximum + * length of 140 characters. If the message is longer after replacing placeholders, the message + * will be cut off at 140 characters. * - * @param description The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. + * @param description The message that will be used in the sweep transfer's description body + * with a maximum length of 140 characters. If the message is longer after replacing + * placeholders, the message will be cut off at 140 characters. * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 description(String description) { @@ -479,8 +545,13 @@ public SweepConfigurationV2 description(String description) { } /** - * The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. - * @return description The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. + * The message that will be used in the sweep transfer's description body with a maximum + * length of 140 characters. If the message is longer after replacing placeholders, the message + * will be cut off at 140 characters. + * + * @return description The message that will be used in the sweep transfer's description body + * with a maximum length of 140 characters. If the message is longer after replacing + * placeholders, the message will be cut off at 140 characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -489,9 +560,13 @@ public String getDescription() { } /** - * The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. + * The message that will be used in the sweep transfer's description body with a maximum + * length of 140 characters. If the message is longer after replacing placeholders, the message + * will be cut off at 140 characters. * - * @param description The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. + * @param description The message that will be used in the sweep transfer's description body + * with a maximum length of 140 characters. If the message is longer after replacing + * placeholders, the message will be cut off at 140 characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -501,6 +576,7 @@ public void setDescription(String description) { /** * The unique identifier of the sweep. + * * @return id The unique identifier of the sweep. */ @JsonProperty(JSON_PROPERTY_ID) @@ -509,11 +585,51 @@ public String getId() { return id; } - /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent + * and the fees that you have to pay. You can provide multiple priorities, ordered by your + * preference. Adyen will try to pay out using the priorities in the given order. If the first + * priority is not currently supported or enabled for your platform, the system will try the next + * one, and so on. The request will be accepted as long as **at least one** of the provided + * priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if + * you provide `[\"wire\",\"regular\"]`, and `wire` is not + * supported but `regular` is, the request will still be accepted and processed. + * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to + * transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. + * * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). Set `category` to **bank**. For more details, see optional priorities + * setup for + * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) + * or + * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). * - * @param priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * @param priorities The list of priorities for the bank transfer. This sets the speed at which + * the transfer is sent and the fees that you have to pay. You can provide multiple + * priorities, ordered by your preference. Adyen will try to pay out using the priorities in + * the given order. If the first priority is not currently supported or enabled for your + * platform, the system will try the next one, and so on. The request will be accepted as long + * as **at least one** of the provided priorities is valid (i.e., supported by Adyen and + * activated for your platform). For example, if you provide + * `[\"wire\",\"regular\"]`, and `wire` is not + * supported but `regular` is, the request will still be accepted and processed. + * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster + * way to transfer funds, but the fees are higher. Recommended for high-priority, low-value + * transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. + * Recommended for high-priority, high-value transactions. * **instant**: for instant funds + * transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). Set `category` to **bank**. For more details, see optional + * priorities setup for + * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) + * or + * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 priorities(List priorities) { @@ -530,8 +646,50 @@ public SweepConfigurationV2 addPrioritiesItem(PrioritiesEnum prioritiesItem) { } /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). - * @return priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent + * and the fees that you have to pay. You can provide multiple priorities, ordered by your + * preference. Adyen will try to pay out using the priorities in the given order. If the first + * priority is not currently supported or enabled for your platform, the system will try the next + * one, and so on. The request will be accepted as long as **at least one** of the provided + * priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if + * you provide `[\"wire\",\"regular\"]`, and `wire` is not + * supported but `regular` is, the request will still be accepted and processed. + * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to + * transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. + * * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). Set `category` to **bank**. For more details, see optional priorities + * setup for + * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) + * or + * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * + * @return priorities The list of priorities for the bank transfer. This sets the speed at which + * the transfer is sent and the fees that you have to pay. You can provide multiple + * priorities, ordered by your preference. Adyen will try to pay out using the priorities in + * the given order. If the first priority is not currently supported or enabled for your + * platform, the system will try the next one, and so on. The request will be accepted as long + * as **at least one** of the provided priorities is valid (i.e., supported by Adyen and + * activated for your platform). For example, if you provide + * `[\"wire\",\"regular\"]`, and `wire` is not + * supported but `regular` is, the request will still be accepted and processed. + * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster + * way to transfer funds, but the fees are higher. Recommended for high-priority, low-value + * transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. + * Recommended for high-priority, high-value transactions. * **instant**: for instant funds + * transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). Set `category` to **bank**. For more details, see optional + * priorities setup for + * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) + * or + * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). */ @JsonProperty(JSON_PROPERTY_PRIORITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -540,9 +698,50 @@ public List getPriorities() { } /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent + * and the fees that you have to pay. You can provide multiple priorities, ordered by your + * preference. Adyen will try to pay out using the priorities in the given order. If the first + * priority is not currently supported or enabled for your platform, the system will try the next + * one, and so on. The request will be accepted as long as **at least one** of the provided + * priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if + * you provide `[\"wire\",\"regular\"]`, and `wire` is not + * supported but `regular` is, the request will still be accepted and processed. + * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to + * transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. + * * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). Set `category` to **bank**. For more details, see optional priorities + * setup for + * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) + * or + * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). * - * @param priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * @param priorities The list of priorities for the bank transfer. This sets the speed at which + * the transfer is sent and the fees that you have to pay. You can provide multiple + * priorities, ordered by your preference. Adyen will try to pay out using the priorities in + * the given order. If the first priority is not currently supported or enabled for your + * platform, the system will try the next one, and so on. The request will be accepted as long + * as **at least one** of the provided priorities is valid (i.e., supported by Adyen and + * activated for your platform). For example, if you provide + * `[\"wire\",\"regular\"]`, and `wire` is not + * supported but `regular` is, the request will still be accepted and processed. + * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster + * way to transfer funds, but the fees are higher. Recommended for high-priority, low-value + * transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. + * Recommended for high-priority, high-value transactions. * **instant**: for instant funds + * transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). Set `category` to **bank**. For more details, see optional + * priorities setup for + * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) + * or + * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). */ @JsonProperty(JSON_PROPERTY_PRIORITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -552,6 +751,7 @@ public void setPriorities(List priorities) { /** * The reason for disabling the sweep. + * * @return reason The reason for disabling the sweep. */ @JsonProperty(JSON_PROPERTY_REASON) @@ -560,9 +760,9 @@ public ReasonEnum getReason() { return reason; } - /** * The human readable reason for disabling the sweep. + * * @return reasonDetail The human readable reason for disabling the sweep. */ @JsonProperty(JSON_PROPERTY_REASON_DETAIL) @@ -571,7 +771,6 @@ public String getReasonDetail() { return reasonDetail; } - /** * Your reference for the sweep configuration. * @@ -585,6 +784,7 @@ public SweepConfigurationV2 reference(String reference) { /** * Your reference for the sweep configuration. + * * @return reference Your reference for the sweep configuration. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -605,9 +805,11 @@ public void setReference(String reference) { } /** - * The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. + * The reference sent to or received from the counterparty. Only alphanumeric characters are + * allowed. * - * @param referenceForBeneficiary The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. + * @param referenceForBeneficiary The reference sent to or received from the counterparty. Only + * alphanumeric characters are allowed. * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 referenceForBeneficiary(String referenceForBeneficiary) { @@ -616,8 +818,11 @@ public SweepConfigurationV2 referenceForBeneficiary(String referenceForBeneficia } /** - * The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. - * @return referenceForBeneficiary The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. + * The reference sent to or received from the counterparty. Only alphanumeric characters are + * allowed. + * + * @return referenceForBeneficiary The reference sent to or received from the counterparty. Only + * alphanumeric characters are allowed. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -626,9 +831,11 @@ public String getReferenceForBeneficiary() { } /** - * The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. + * The reference sent to or received from the counterparty. Only alphanumeric characters are + * allowed. * - * @param referenceForBeneficiary The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. + * @param referenceForBeneficiary The reference sent to or received from the counterparty. Only + * alphanumeric characters are allowed. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -639,7 +846,7 @@ public void setReferenceForBeneficiary(String referenceForBeneficiary) { /** * schedule * - * @param schedule + * @param schedule * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 schedule(SweepSchedule schedule) { @@ -649,7 +856,8 @@ public SweepConfigurationV2 schedule(SweepSchedule schedule) { /** * Get schedule - * @return schedule + * + * @return schedule */ @JsonProperty(JSON_PROPERTY_SCHEDULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -660,7 +868,7 @@ public SweepSchedule getSchedule() { /** * schedule * - * @param schedule + * @param schedule */ @JsonProperty(JSON_PROPERTY_SCHEDULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -669,9 +877,14 @@ public void setSchedule(SweepSchedule schedule) { } /** - * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * The status of the sweep. If not provided, by default, this is set to **active**. Possible + * values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on + * the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. * - * @param status The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * @param status The status of the sweep. If not provided, by default, this is set to **active**. + * Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed + * out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be + * triggered. * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 status(StatusEnum status) { @@ -680,8 +893,14 @@ public SweepConfigurationV2 status(StatusEnum status) { } /** - * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. - * @return status The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * The status of the sweep. If not provided, by default, this is set to **active**. Possible + * values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on + * the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * + * @return status The status of the sweep. If not provided, by default, this is set to **active**. + * Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed + * out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be + * triggered. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -690,9 +909,14 @@ public StatusEnum getStatus() { } /** - * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * The status of the sweep. If not provided, by default, this is set to **active**. Possible + * values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on + * the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. * - * @param status The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * @param status The status of the sweep. If not provided, by default, this is set to **active**. + * Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed + * out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be + * triggered. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -703,7 +927,7 @@ public void setStatus(StatusEnum status) { /** * sweepAmount * - * @param sweepAmount + * @param sweepAmount * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 sweepAmount(Amount sweepAmount) { @@ -713,7 +937,8 @@ public SweepConfigurationV2 sweepAmount(Amount sweepAmount) { /** * Get sweepAmount - * @return sweepAmount + * + * @return sweepAmount */ @JsonProperty(JSON_PROPERTY_SWEEP_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -724,7 +949,7 @@ public Amount getSweepAmount() { /** * sweepAmount * - * @param sweepAmount + * @param sweepAmount */ @JsonProperty(JSON_PROPERTY_SWEEP_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -735,7 +960,7 @@ public void setSweepAmount(Amount sweepAmount) { /** * targetAmount * - * @param targetAmount + * @param targetAmount * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 targetAmount(Amount targetAmount) { @@ -745,7 +970,8 @@ public SweepConfigurationV2 targetAmount(Amount targetAmount) { /** * Get targetAmount - * @return targetAmount + * + * @return targetAmount */ @JsonProperty(JSON_PROPERTY_TARGET_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -756,7 +982,7 @@ public Amount getTargetAmount() { /** * targetAmount * - * @param targetAmount + * @param targetAmount */ @JsonProperty(JSON_PROPERTY_TARGET_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -767,7 +993,7 @@ public void setTargetAmount(Amount targetAmount) { /** * triggerAmount * - * @param triggerAmount + * @param triggerAmount * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 triggerAmount(Amount triggerAmount) { @@ -777,7 +1003,8 @@ public SweepConfigurationV2 triggerAmount(Amount triggerAmount) { /** * Get triggerAmount - * @return triggerAmount + * + * @return triggerAmount */ @JsonProperty(JSON_PROPERTY_TRIGGER_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -788,7 +1015,7 @@ public Amount getTriggerAmount() { /** * triggerAmount * - * @param triggerAmount + * @param triggerAmount */ @JsonProperty(JSON_PROPERTY_TRIGGER_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -797,9 +1024,15 @@ public void setTriggerAmount(Amount triggerAmount) { } /** - * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. + * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not + * provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to + * a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source + * merchant account, transfer instrument, or balance account. * - * @param type The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. + * @param type The direction of sweep, whether pushing out or pulling in funds to the balance + * account. If not provided, by default, this is set to **push**. Possible values: * **push**: + * _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull + * in funds_ from a source merchant account, transfer instrument, or balance account. * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 type(TypeEnum type) { @@ -808,8 +1041,15 @@ public SweepConfigurationV2 type(TypeEnum type) { } /** - * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. - * @return type The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. + * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not + * provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to + * a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source + * merchant account, transfer instrument, or balance account. + * + * @return type The direction of sweep, whether pushing out or pulling in funds to the balance + * account. If not provided, by default, this is set to **push**. Possible values: * **push**: + * _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull + * in funds_ from a source merchant account, transfer instrument, or balance account. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -818,9 +1058,15 @@ public TypeEnum getType() { } /** - * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. + * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not + * provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to + * a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source + * merchant account, transfer instrument, or balance account. * - * @param type The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. + * @param type The direction of sweep, whether pushing out or pulling in funds to the balance + * account. If not provided, by default, this is set to **push**. Possible values: * **push**: + * _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull + * in funds_ from a source merchant account, transfer instrument, or balance account. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -828,9 +1074,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this SweepConfigurationV2 object is equal to o. - */ + /** Return true if this SweepConfigurationV2 object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -840,27 +1084,44 @@ public boolean equals(Object o) { return false; } SweepConfigurationV2 sweepConfigurationV2 = (SweepConfigurationV2) o; - return Objects.equals(this.category, sweepConfigurationV2.category) && - Objects.equals(this.counterparty, sweepConfigurationV2.counterparty) && - Objects.equals(this.currency, sweepConfigurationV2.currency) && - Objects.equals(this.description, sweepConfigurationV2.description) && - Objects.equals(this.id, sweepConfigurationV2.id) && - Objects.equals(this.priorities, sweepConfigurationV2.priorities) && - Objects.equals(this.reason, sweepConfigurationV2.reason) && - Objects.equals(this.reasonDetail, sweepConfigurationV2.reasonDetail) && - Objects.equals(this.reference, sweepConfigurationV2.reference) && - Objects.equals(this.referenceForBeneficiary, sweepConfigurationV2.referenceForBeneficiary) && - Objects.equals(this.schedule, sweepConfigurationV2.schedule) && - Objects.equals(this.status, sweepConfigurationV2.status) && - Objects.equals(this.sweepAmount, sweepConfigurationV2.sweepAmount) && - Objects.equals(this.targetAmount, sweepConfigurationV2.targetAmount) && - Objects.equals(this.triggerAmount, sweepConfigurationV2.triggerAmount) && - Objects.equals(this.type, sweepConfigurationV2.type); + return Objects.equals(this.category, sweepConfigurationV2.category) + && Objects.equals(this.counterparty, sweepConfigurationV2.counterparty) + && Objects.equals(this.currency, sweepConfigurationV2.currency) + && Objects.equals(this.description, sweepConfigurationV2.description) + && Objects.equals(this.id, sweepConfigurationV2.id) + && Objects.equals(this.priorities, sweepConfigurationV2.priorities) + && Objects.equals(this.reason, sweepConfigurationV2.reason) + && Objects.equals(this.reasonDetail, sweepConfigurationV2.reasonDetail) + && Objects.equals(this.reference, sweepConfigurationV2.reference) + && Objects.equals( + this.referenceForBeneficiary, sweepConfigurationV2.referenceForBeneficiary) + && Objects.equals(this.schedule, sweepConfigurationV2.schedule) + && Objects.equals(this.status, sweepConfigurationV2.status) + && Objects.equals(this.sweepAmount, sweepConfigurationV2.sweepAmount) + && Objects.equals(this.targetAmount, sweepConfigurationV2.targetAmount) + && Objects.equals(this.triggerAmount, sweepConfigurationV2.triggerAmount) + && Objects.equals(this.type, sweepConfigurationV2.type); } @Override public int hashCode() { - return Objects.hash(category, counterparty, currency, description, id, priorities, reason, reasonDetail, reference, referenceForBeneficiary, schedule, status, sweepAmount, targetAmount, triggerAmount, type); + return Objects.hash( + category, + counterparty, + currency, + description, + id, + priorities, + reason, + reasonDetail, + reference, + referenceForBeneficiary, + schedule, + status, + sweepAmount, + targetAmount, + triggerAmount, + type); } @Override @@ -876,7 +1137,9 @@ public String toString() { sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" reasonDetail: ").append(toIndentedString(reasonDetail)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); - sb.append(" referenceForBeneficiary: ").append(toIndentedString(referenceForBeneficiary)).append("\n"); + sb.append(" referenceForBeneficiary: ") + .append(toIndentedString(referenceForBeneficiary)) + .append("\n"); sb.append(" schedule: ").append(toIndentedString(schedule)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" sweepAmount: ").append(toIndentedString(sweepAmount)).append("\n"); @@ -888,8 +1151,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -898,21 +1160,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SweepConfigurationV2 given an JSON string * * @param jsonString JSON string * @return An instance of SweepConfigurationV2 - * @throws JsonProcessingException if the JSON string is invalid with respect to SweepConfigurationV2 + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SweepConfigurationV2 */ public static SweepConfigurationV2 fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SweepConfigurationV2.class); } -/** - * Convert an instance of SweepConfigurationV2 to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SweepConfigurationV2 to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/SweepCounterparty.java b/src/main/java/com/adyen/model/balanceplatform/SweepCounterparty.java index 6a922b592..e12f86ab6 100644 --- a/src/main/java/com/adyen/model/balanceplatform/SweepCounterparty.java +++ b/src/main/java/com/adyen/model/balanceplatform/SweepCounterparty.java @@ -2,37 +2,27 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * SweepCounterparty - */ +/** SweepCounterparty */ @JsonPropertyOrder({ SweepCounterparty.JSON_PROPERTY_BALANCE_ACCOUNT_ID, SweepCounterparty.JSON_PROPERTY_MERCHANT_ACCOUNT, SweepCounterparty.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID }) - public class SweepCounterparty { public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; @@ -43,13 +33,18 @@ public class SweepCounterparty { public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_ID = "transferInstrumentId"; private String transferInstrumentId; - public SweepCounterparty() { - } + public SweepCounterparty() {} /** - * The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). > If you are updating the counterparty from a transfer instrument to a balance account, set `transferInstrumentId` to **null**. + * The unique identifier of the destination or source [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). + * > If you are updating the counterparty from a transfer instrument to a balance account, set + * `transferInstrumentId` to **null**. * - * @param balanceAccountId The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). > If you are updating the counterparty from a transfer instrument to a balance account, set `transferInstrumentId` to **null**. + * @param balanceAccountId The unique identifier of the destination or source [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). + * > If you are updating the counterparty from a transfer instrument to a balance account, + * set `transferInstrumentId` to **null**. * @return the current {@code SweepCounterparty} instance, allowing for method chaining */ public SweepCounterparty balanceAccountId(String balanceAccountId) { @@ -58,8 +53,15 @@ public SweepCounterparty balanceAccountId(String balanceAccountId) { } /** - * The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). > If you are updating the counterparty from a transfer instrument to a balance account, set `transferInstrumentId` to **null**. - * @return balanceAccountId The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). > If you are updating the counterparty from a transfer instrument to a balance account, set `transferInstrumentId` to **null**. + * The unique identifier of the destination or source [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). + * > If you are updating the counterparty from a transfer instrument to a balance account, set + * `transferInstrumentId` to **null**. + * + * @return balanceAccountId The unique identifier of the destination or source [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). + * > If you are updating the counterparty from a transfer instrument to a balance account, + * set `transferInstrumentId` to **null**. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,9 +70,15 @@ public String getBalanceAccountId() { } /** - * The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). > If you are updating the counterparty from a transfer instrument to a balance account, set `transferInstrumentId` to **null**. + * The unique identifier of the destination or source [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). + * > If you are updating the counterparty from a transfer instrument to a balance account, set + * `transferInstrumentId` to **null**. * - * @param balanceAccountId The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). > If you are updating the counterparty from a transfer instrument to a balance account, set `transferInstrumentId` to **null**. + * @param balanceAccountId The unique identifier of the destination or source [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). + * > If you are updating the counterparty from a transfer instrument to a balance account, + * set `transferInstrumentId` to **null**. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,9 +87,12 @@ public void setBalanceAccountId(String balanceAccountId) { } /** - * The merchant account that will be the source of funds. You can only use this parameter with sweeps of `type` **pull** and if you are processing payments with Adyen. + * The merchant account that will be the source of funds. You can only use this parameter with + * sweeps of `type` **pull** and if you are processing payments with Adyen. * - * @param merchantAccount The merchant account that will be the source of funds. You can only use this parameter with sweeps of `type` **pull** and if you are processing payments with Adyen. + * @param merchantAccount The merchant account that will be the source of funds. You can only use + * this parameter with sweeps of `type` **pull** and if you are processing payments + * with Adyen. * @return the current {@code SweepCounterparty} instance, allowing for method chaining */ public SweepCounterparty merchantAccount(String merchantAccount) { @@ -90,8 +101,12 @@ public SweepCounterparty merchantAccount(String merchantAccount) { } /** - * The merchant account that will be the source of funds. You can only use this parameter with sweeps of `type` **pull** and if you are processing payments with Adyen. - * @return merchantAccount The merchant account that will be the source of funds. You can only use this parameter with sweeps of `type` **pull** and if you are processing payments with Adyen. + * The merchant account that will be the source of funds. You can only use this parameter with + * sweeps of `type` **pull** and if you are processing payments with Adyen. + * + * @return merchantAccount The merchant account that will be the source of funds. You can only use + * this parameter with sweeps of `type` **pull** and if you are processing payments + * with Adyen. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,9 +115,12 @@ public String getMerchantAccount() { } /** - * The merchant account that will be the source of funds. You can only use this parameter with sweeps of `type` **pull** and if you are processing payments with Adyen. + * The merchant account that will be the source of funds. You can only use this parameter with + * sweeps of `type` **pull** and if you are processing payments with Adyen. * - * @param merchantAccount The merchant account that will be the source of funds. You can only use this parameter with sweeps of `type` **pull** and if you are processing payments with Adyen. + * @param merchantAccount The merchant account that will be the source of funds. You can only use + * this parameter with sweeps of `type` **pull** and if you are processing payments + * with Adyen. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,9 +129,28 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type` . To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.> If you are updating the counterparty from a balance account to a transfer instrument, set `balanceAccountId` to **null**. + * The unique identifier of the destination or source [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) + * depending on the sweep `type` . To set up automated top-up sweeps to balance accounts + * in your + * [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or + * [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this + * parameter in combination with a `merchantAccount` and a sweep `type` of + * **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. + * Contact Adyen Support to enable this feature.> If you are updating the counterparty from a + * balance account to a transfer instrument, set `balanceAccountId` to **null**. * - * @param transferInstrumentId The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type` . To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.> If you are updating the counterparty from a balance account to a transfer instrument, set `balanceAccountId` to **null**. + * @param transferInstrumentId The unique identifier of the destination or source [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) + * depending on the sweep `type` . To set up automated top-up sweeps to balance + * accounts in your + * [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) + * or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), + * use this parameter in combination with a `merchantAccount` and a sweep + * `type` of **pull**. Top-up sweeps start a direct debit request from the source + * transfer instrument. Contact Adyen Support to enable this feature.> If you are updating + * the counterparty from a balance account to a transfer instrument, set + * `balanceAccountId` to **null**. * @return the current {@code SweepCounterparty} instance, allowing for method chaining */ public SweepCounterparty transferInstrumentId(String transferInstrumentId) { @@ -122,8 +159,28 @@ public SweepCounterparty transferInstrumentId(String transferInstrumentId) { } /** - * The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type` . To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.> If you are updating the counterparty from a balance account to a transfer instrument, set `balanceAccountId` to **null**. - * @return transferInstrumentId The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type` . To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.> If you are updating the counterparty from a balance account to a transfer instrument, set `balanceAccountId` to **null**. + * The unique identifier of the destination or source [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) + * depending on the sweep `type` . To set up automated top-up sweeps to balance accounts + * in your + * [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or + * [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this + * parameter in combination with a `merchantAccount` and a sweep `type` of + * **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. + * Contact Adyen Support to enable this feature.> If you are updating the counterparty from a + * balance account to a transfer instrument, set `balanceAccountId` to **null**. + * + * @return transferInstrumentId The unique identifier of the destination or source [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) + * depending on the sweep `type` . To set up automated top-up sweeps to balance + * accounts in your + * [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) + * or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), + * use this parameter in combination with a `merchantAccount` and a sweep + * `type` of **pull**. Top-up sweeps start a direct debit request from the source + * transfer instrument. Contact Adyen Support to enable this feature.> If you are updating + * the counterparty from a balance account to a transfer instrument, set + * `balanceAccountId` to **null**. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,9 +189,28 @@ public String getTransferInstrumentId() { } /** - * The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type` . To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.> If you are updating the counterparty from a balance account to a transfer instrument, set `balanceAccountId` to **null**. + * The unique identifier of the destination or source [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) + * depending on the sweep `type` . To set up automated top-up sweeps to balance accounts + * in your + * [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or + * [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this + * parameter in combination with a `merchantAccount` and a sweep `type` of + * **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. + * Contact Adyen Support to enable this feature.> If you are updating the counterparty from a + * balance account to a transfer instrument, set `balanceAccountId` to **null**. * - * @param transferInstrumentId The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type` . To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.> If you are updating the counterparty from a balance account to a transfer instrument, set `balanceAccountId` to **null**. + * @param transferInstrumentId The unique identifier of the destination or source [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) + * depending on the sweep `type` . To set up automated top-up sweeps to balance + * accounts in your + * [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) + * or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), + * use this parameter in combination with a `merchantAccount` and a sweep + * `type` of **pull**. Top-up sweeps start a direct debit request from the source + * transfer instrument. Contact Adyen Support to enable this feature.> If you are updating + * the counterparty from a balance account to a transfer instrument, set + * `balanceAccountId` to **null**. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +218,7 @@ public void setTransferInstrumentId(String transferInstrumentId) { this.transferInstrumentId = transferInstrumentId; } - /** - * Return true if this SweepCounterparty object is equal to o. - */ + /** Return true if this SweepCounterparty object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +228,9 @@ public boolean equals(Object o) { return false; } SweepCounterparty sweepCounterparty = (SweepCounterparty) o; - return Objects.equals(this.balanceAccountId, sweepCounterparty.balanceAccountId) && - Objects.equals(this.merchantAccount, sweepCounterparty.merchantAccount) && - Objects.equals(this.transferInstrumentId, sweepCounterparty.transferInstrumentId); + return Objects.equals(this.balanceAccountId, sweepCounterparty.balanceAccountId) + && Objects.equals(this.merchantAccount, sweepCounterparty.merchantAccount) + && Objects.equals(this.transferInstrumentId, sweepCounterparty.transferInstrumentId); } @Override @@ -170,14 +244,15 @@ public String toString() { sb.append("class SweepCounterparty {\n"); sb.append(" balanceAccountId: ").append(toIndentedString(balanceAccountId)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" transferInstrumentId: ").append(toIndentedString(transferInstrumentId)).append("\n"); + sb.append(" transferInstrumentId: ") + .append(toIndentedString(transferInstrumentId)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +261,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SweepCounterparty given an JSON string * * @param jsonString JSON string @@ -196,11 +271,12 @@ private String toIndentedString(Object o) { public static SweepCounterparty fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SweepCounterparty.class); } -/** - * Convert an instance of SweepCounterparty to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SweepCounterparty to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/SweepSchedule.java b/src/main/java/com/adyen/model/balanceplatform/SweepSchedule.java index c5d0be3ca..7b309ae0b 100644 --- a/src/main/java/com/adyen/model/balanceplatform/SweepSchedule.java +++ b/src/main/java/com/adyen/model/balanceplatform/SweepSchedule.java @@ -2,45 +2,39 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * SweepSchedule - */ -@JsonPropertyOrder({ - SweepSchedule.JSON_PROPERTY_CRON_EXPRESSION, - SweepSchedule.JSON_PROPERTY_TYPE -}) - +/** SweepSchedule */ +@JsonPropertyOrder({SweepSchedule.JSON_PROPERTY_CRON_EXPRESSION, SweepSchedule.JSON_PROPERTY_TYPE}) public class SweepSchedule { public static final String JSON_PROPERTY_CRON_EXPRESSION = "cronExpression"; private String cronExpression; /** - * The schedule type. Possible values: * **cron**: push out funds based on a `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the `triggerAmount` is reached. + * The schedule type. Possible values: * **cron**: push out funds based on a + * `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: + * push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the + * month at 07:00 AM CET. * **balance**: execute the sweep instantly if the + * `triggerAmount` is reached. */ public enum TypeEnum { - DAILY(String.valueOf("daily")), WEEKLY(String.valueOf("weekly")), @@ -56,7 +50,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -77,7 +71,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -85,13 +83,27 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public SweepSchedule() { - } + public SweepSchedule() {} /** - * A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. Required when `type` is **cron**. + * A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the + * sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * + * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated + * by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the + * month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are + * Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, + * **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. + * Required when `type` is **cron**. * - * @param cronExpression A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. Required when `type` is **cron**. + * @param cronExpression A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) + * that is used to set the sweep schedule. The schedule uses the time zone of the balance + * account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The + * expression must have five values separated by a single space in the following order: * + * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or + * **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following + * non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See + * [crontab guru](https://crontab.guru/) for more examples. Required when `type` is + * **cron**. * @return the current {@code SweepSchedule} instance, allowing for method chaining */ public SweepSchedule cronExpression(String cronExpression) { @@ -100,8 +112,24 @@ public SweepSchedule cronExpression(String cronExpression) { } /** - * A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. Required when `type` is **cron**. - * @return cronExpression A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. Required when `type` is **cron**. + * A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the + * sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * + * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated + * by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the + * month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are + * Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, + * **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. + * Required when `type` is **cron**. + * + * @return cronExpression A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) + * that is used to set the sweep schedule. The schedule uses the time zone of the balance + * account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The + * expression must have five values separated by a single space in the following order: * + * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or + * **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following + * non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See + * [crontab guru](https://crontab.guru/) for more examples. Required when `type` is + * **cron**. */ @JsonProperty(JSON_PROPERTY_CRON_EXPRESSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,9 +138,24 @@ public String getCronExpression() { } /** - * A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. Required when `type` is **cron**. + * A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the + * sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * + * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated + * by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the + * month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are + * Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, + * **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. + * Required when `type` is **cron**. * - * @param cronExpression A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. Required when `type` is **cron**. + * @param cronExpression A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) + * that is used to set the sweep schedule. The schedule uses the time zone of the balance + * account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The + * expression must have five values separated by a single space in the following order: * + * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or + * **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following + * non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See + * [crontab guru](https://crontab.guru/) for more examples. Required when `type` is + * **cron**. */ @JsonProperty(JSON_PROPERTY_CRON_EXPRESSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,9 +164,17 @@ public void setCronExpression(String cronExpression) { } /** - * The schedule type. Possible values: * **cron**: push out funds based on a `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the `triggerAmount` is reached. + * The schedule type. Possible values: * **cron**: push out funds based on a + * `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: + * push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the + * month at 07:00 AM CET. * **balance**: execute the sweep instantly if the + * `triggerAmount` is reached. * - * @param type The schedule type. Possible values: * **cron**: push out funds based on a `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the `triggerAmount` is reached. + * @param type The schedule type. Possible values: * **cron**: push out funds based on a + * `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * + * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds + * every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the + * `triggerAmount` is reached. * @return the current {@code SweepSchedule} instance, allowing for method chaining */ public SweepSchedule type(TypeEnum type) { @@ -132,8 +183,17 @@ public SweepSchedule type(TypeEnum type) { } /** - * The schedule type. Possible values: * **cron**: push out funds based on a `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the `triggerAmount` is reached. - * @return type The schedule type. Possible values: * **cron**: push out funds based on a `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the `triggerAmount` is reached. + * The schedule type. Possible values: * **cron**: push out funds based on a + * `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: + * push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the + * month at 07:00 AM CET. * **balance**: execute the sweep instantly if the + * `triggerAmount` is reached. + * + * @return type The schedule type. Possible values: * **cron**: push out funds based on a + * `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * + * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds + * every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the + * `triggerAmount` is reached. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +202,17 @@ public TypeEnum getType() { } /** - * The schedule type. Possible values: * **cron**: push out funds based on a `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the `triggerAmount` is reached. + * The schedule type. Possible values: * **cron**: push out funds based on a + * `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: + * push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the + * month at 07:00 AM CET. * **balance**: execute the sweep instantly if the + * `triggerAmount` is reached. * - * @param type The schedule type. Possible values: * **cron**: push out funds based on a `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the `triggerAmount` is reached. + * @param type The schedule type. Possible values: * **cron**: push out funds based on a + * `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * + * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds + * every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the + * `triggerAmount` is reached. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,9 +220,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this SweepSchedule object is equal to o. - */ + /** Return true if this SweepSchedule object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -164,8 +230,8 @@ public boolean equals(Object o) { return false; } SweepSchedule sweepSchedule = (SweepSchedule) o; - return Objects.equals(this.cronExpression, sweepSchedule.cronExpression) && - Objects.equals(this.type, sweepSchedule.type); + return Objects.equals(this.cronExpression, sweepSchedule.cronExpression) + && Objects.equals(this.type, sweepSchedule.type); } @Override @@ -184,8 +250,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -194,7 +259,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SweepSchedule given an JSON string * * @param jsonString JSON string @@ -204,11 +269,12 @@ private String toIndentedString(Object o) { public static SweepSchedule fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SweepSchedule.class); } -/** - * Convert an instance of SweepSchedule to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SweepSchedule to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/Target.java b/src/main/java/com/adyen/model/balanceplatform/Target.java index 83d34e589..f88f96c2a 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Target.java +++ b/src/main/java/com/adyen/model/balanceplatform/Target.java @@ -2,45 +2,39 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * Target - */ -@JsonPropertyOrder({ - Target.JSON_PROPERTY_ID, - Target.JSON_PROPERTY_TYPE -}) - +/** Target */ +@JsonPropertyOrder({Target.JSON_PROPERTY_ID, Target.JSON_PROPERTY_TYPE}) public class Target { public static final String JSON_PROPERTY_ID = "id"; private String id; /** - * The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account. + * The resource for which you want to receive notifications. Possible values: * + * **balancePlatform**: receive notifications about balance changes in your entire balance + * platform. * **accountHolder**: receive notifications about balance changes of a specific user. + * * **balanceAccount**: receive notifications about balance changes in a specific balance + * account. */ public enum TypeEnum { - BALANCEACCOUNT(String.valueOf("balanceAccount")), ACCOUNTHOLDER(String.valueOf("accountHolder")), @@ -52,7 +46,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +67,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,13 +79,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public Target() { - } + public Target() {} /** - * The unique identifier of the `target.type`. This can be the ID of your: * balance platform * account holder * account holder's balance account + * The unique identifier of the `target.type`. This can be the ID of your: * balance + * platform * account holder * account holder's balance account * - * @param id The unique identifier of the `target.type`. This can be the ID of your: * balance platform * account holder * account holder's balance account + * @param id The unique identifier of the `target.type`. This can be the ID of your: * + * balance platform * account holder * account holder's balance account * @return the current {@code Target} instance, allowing for method chaining */ public Target id(String id) { @@ -96,8 +95,11 @@ public Target id(String id) { } /** - * The unique identifier of the `target.type`. This can be the ID of your: * balance platform * account holder * account holder's balance account - * @return id The unique identifier of the `target.type`. This can be the ID of your: * balance platform * account holder * account holder's balance account + * The unique identifier of the `target.type`. This can be the ID of your: * balance + * platform * account holder * account holder's balance account + * + * @return id The unique identifier of the `target.type`. This can be the ID of your: * + * balance platform * account holder * account holder's balance account */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +108,11 @@ public String getId() { } /** - * The unique identifier of the `target.type`. This can be the ID of your: * balance platform * account holder * account holder's balance account + * The unique identifier of the `target.type`. This can be the ID of your: * balance + * platform * account holder * account holder's balance account * - * @param id The unique identifier of the `target.type`. This can be the ID of your: * balance platform * account holder * account holder's balance account + * @param id The unique identifier of the `target.type`. This can be the ID of your: * + * balance platform * account holder * account holder's balance account */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,9 +121,17 @@ public void setId(String id) { } /** - * The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account. + * The resource for which you want to receive notifications. Possible values: * + * **balancePlatform**: receive notifications about balance changes in your entire balance + * platform. * **accountHolder**: receive notifications about balance changes of a specific user. + * * **balanceAccount**: receive notifications about balance changes in a specific balance + * account. * - * @param type The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account. + * @param type The resource for which you want to receive notifications. Possible values: * + * **balancePlatform**: receive notifications about balance changes in your entire balance + * platform. * **accountHolder**: receive notifications about balance changes of a specific + * user. * **balanceAccount**: receive notifications about balance changes in a specific + * balance account. * @return the current {@code Target} instance, allowing for method chaining */ public Target type(TypeEnum type) { @@ -128,8 +140,17 @@ public Target type(TypeEnum type) { } /** - * The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account. - * @return type The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account. + * The resource for which you want to receive notifications. Possible values: * + * **balancePlatform**: receive notifications about balance changes in your entire balance + * platform. * **accountHolder**: receive notifications about balance changes of a specific user. + * * **balanceAccount**: receive notifications about balance changes in a specific balance + * account. + * + * @return type The resource for which you want to receive notifications. Possible values: * + * **balancePlatform**: receive notifications about balance changes in your entire balance + * platform. * **accountHolder**: receive notifications about balance changes of a specific + * user. * **balanceAccount**: receive notifications about balance changes in a specific + * balance account. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,9 +159,17 @@ public TypeEnum getType() { } /** - * The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account. + * The resource for which you want to receive notifications. Possible values: * + * **balancePlatform**: receive notifications about balance changes in your entire balance + * platform. * **accountHolder**: receive notifications about balance changes of a specific user. + * * **balanceAccount**: receive notifications about balance changes in a specific balance + * account. * - * @param type The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account. + * @param type The resource for which you want to receive notifications. Possible values: * + * **balancePlatform**: receive notifications about balance changes in your entire balance + * platform. * **accountHolder**: receive notifications about balance changes of a specific + * user. * **balanceAccount**: receive notifications about balance changes in a specific + * balance account. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,9 +177,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this Target object is equal to o. - */ + /** Return true if this Target object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -160,8 +187,7 @@ public boolean equals(Object o) { return false; } Target target = (Target) o; - return Objects.equals(this.id, target.id) && - Objects.equals(this.type, target.type); + return Objects.equals(this.id, target.id) && Objects.equals(this.type, target.type); } @Override @@ -180,8 +206,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -190,7 +215,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Target given an JSON string * * @param jsonString JSON string @@ -200,11 +225,12 @@ private String toIndentedString(Object o) { public static Target fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Target.class); } -/** - * Convert an instance of Target to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Target to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/TargetUpdate.java b/src/main/java/com/adyen/model/balanceplatform/TargetUpdate.java index 6ae387da6..240936b7b 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TargetUpdate.java +++ b/src/main/java/com/adyen/model/balanceplatform/TargetUpdate.java @@ -2,45 +2,39 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * TargetUpdate - */ -@JsonPropertyOrder({ - TargetUpdate.JSON_PROPERTY_ID, - TargetUpdate.JSON_PROPERTY_TYPE -}) - +/** TargetUpdate */ +@JsonPropertyOrder({TargetUpdate.JSON_PROPERTY_ID, TargetUpdate.JSON_PROPERTY_TYPE}) public class TargetUpdate { public static final String JSON_PROPERTY_ID = "id"; private String id; /** - * The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account. + * The resource for which you want to receive notifications. Possible values: * + * **balancePlatform**: receive notifications about balance changes in your entire balance + * platform. * **accountHolder**: receive notifications about balance changes of a specific user. + * * **balanceAccount**: receive notifications about balance changes in a specific balance + * account. */ public enum TypeEnum { - BALANCEACCOUNT(String.valueOf("balanceAccount")), ACCOUNTHOLDER(String.valueOf("accountHolder")), @@ -52,7 +46,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +67,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,13 +79,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public TargetUpdate() { - } + public TargetUpdate() {} /** - * The unique identifier of the `target.type`. This can be the ID of your: * balance platform * account holder * account holder's balance account + * The unique identifier of the `target.type`. This can be the ID of your: * balance + * platform * account holder * account holder's balance account * - * @param id The unique identifier of the `target.type`. This can be the ID of your: * balance platform * account holder * account holder's balance account + * @param id The unique identifier of the `target.type`. This can be the ID of your: * + * balance platform * account holder * account holder's balance account * @return the current {@code TargetUpdate} instance, allowing for method chaining */ public TargetUpdate id(String id) { @@ -96,8 +95,11 @@ public TargetUpdate id(String id) { } /** - * The unique identifier of the `target.type`. This can be the ID of your: * balance platform * account holder * account holder's balance account - * @return id The unique identifier of the `target.type`. This can be the ID of your: * balance platform * account holder * account holder's balance account + * The unique identifier of the `target.type`. This can be the ID of your: * balance + * platform * account holder * account holder's balance account + * + * @return id The unique identifier of the `target.type`. This can be the ID of your: * + * balance platform * account holder * account holder's balance account */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +108,11 @@ public String getId() { } /** - * The unique identifier of the `target.type`. This can be the ID of your: * balance platform * account holder * account holder's balance account + * The unique identifier of the `target.type`. This can be the ID of your: * balance + * platform * account holder * account holder's balance account * - * @param id The unique identifier of the `target.type`. This can be the ID of your: * balance platform * account holder * account holder's balance account + * @param id The unique identifier of the `target.type`. This can be the ID of your: * + * balance platform * account holder * account holder's balance account */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,9 +121,17 @@ public void setId(String id) { } /** - * The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account. + * The resource for which you want to receive notifications. Possible values: * + * **balancePlatform**: receive notifications about balance changes in your entire balance + * platform. * **accountHolder**: receive notifications about balance changes of a specific user. + * * **balanceAccount**: receive notifications about balance changes in a specific balance + * account. * - * @param type The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account. + * @param type The resource for which you want to receive notifications. Possible values: * + * **balancePlatform**: receive notifications about balance changes in your entire balance + * platform. * **accountHolder**: receive notifications about balance changes of a specific + * user. * **balanceAccount**: receive notifications about balance changes in a specific + * balance account. * @return the current {@code TargetUpdate} instance, allowing for method chaining */ public TargetUpdate type(TypeEnum type) { @@ -128,8 +140,17 @@ public TargetUpdate type(TypeEnum type) { } /** - * The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account. - * @return type The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account. + * The resource for which you want to receive notifications. Possible values: * + * **balancePlatform**: receive notifications about balance changes in your entire balance + * platform. * **accountHolder**: receive notifications about balance changes of a specific user. + * * **balanceAccount**: receive notifications about balance changes in a specific balance + * account. + * + * @return type The resource for which you want to receive notifications. Possible values: * + * **balancePlatform**: receive notifications about balance changes in your entire balance + * platform. * **accountHolder**: receive notifications about balance changes of a specific + * user. * **balanceAccount**: receive notifications about balance changes in a specific + * balance account. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,9 +159,17 @@ public TypeEnum getType() { } /** - * The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account. + * The resource for which you want to receive notifications. Possible values: * + * **balancePlatform**: receive notifications about balance changes in your entire balance + * platform. * **accountHolder**: receive notifications about balance changes of a specific user. + * * **balanceAccount**: receive notifications about balance changes in a specific balance + * account. * - * @param type The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account. + * @param type The resource for which you want to receive notifications. Possible values: * + * **balancePlatform**: receive notifications about balance changes in your entire balance + * platform. * **accountHolder**: receive notifications about balance changes of a specific + * user. * **balanceAccount**: receive notifications about balance changes in a specific + * balance account. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,9 +177,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this TargetUpdate object is equal to o. - */ + /** Return true if this TargetUpdate object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -160,8 +187,7 @@ public boolean equals(Object o) { return false; } TargetUpdate targetUpdate = (TargetUpdate) o; - return Objects.equals(this.id, targetUpdate.id) && - Objects.equals(this.type, targetUpdate.type); + return Objects.equals(this.id, targetUpdate.id) && Objects.equals(this.type, targetUpdate.type); } @Override @@ -180,8 +206,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -190,7 +215,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TargetUpdate given an JSON string * * @param jsonString JSON string @@ -200,11 +225,12 @@ private String toIndentedString(Object o) { public static TargetUpdate fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TargetUpdate.class); } -/** - * Convert an instance of TargetUpdate to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TargetUpdate to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/ThresholdRepayment.java b/src/main/java/com/adyen/model/balanceplatform/ThresholdRepayment.java index b99fde42f..591e826a3 100644 --- a/src/main/java/com/adyen/model/balanceplatform/ThresholdRepayment.java +++ b/src/main/java/com/adyen/model/balanceplatform/ThresholdRepayment.java @@ -2,47 +2,33 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ThresholdRepayment - */ -@JsonPropertyOrder({ - ThresholdRepayment.JSON_PROPERTY_AMOUNT -}) - +/** ThresholdRepayment */ +@JsonPropertyOrder({ThresholdRepayment.JSON_PROPERTY_AMOUNT}) public class ThresholdRepayment { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; - public ThresholdRepayment() { - } + public ThresholdRepayment() {} /** * amount * - * @param amount + * @param amount * @return the current {@code ThresholdRepayment} instance, allowing for method chaining */ public ThresholdRepayment amount(Amount amount) { @@ -52,7 +38,8 @@ public ThresholdRepayment amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,7 +50,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,9 +58,7 @@ public void setAmount(Amount amount) { this.amount = amount; } - /** - * Return true if this ThresholdRepayment object is equal to o. - */ + /** Return true if this ThresholdRepayment object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -101,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -111,21 +95,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ThresholdRepayment given an JSON string * * @param jsonString JSON string * @return An instance of ThresholdRepayment - * @throws JsonProcessingException if the JSON string is invalid with respect to ThresholdRepayment + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ThresholdRepayment */ public static ThresholdRepayment fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThresholdRepayment.class); } -/** - * Convert an instance of ThresholdRepayment to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ThresholdRepayment to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/TimeOfDay.java b/src/main/java/com/adyen/model/balanceplatform/TimeOfDay.java index b857d75e1..f975493f6 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TimeOfDay.java +++ b/src/main/java/com/adyen/model/balanceplatform/TimeOfDay.java @@ -2,36 +2,23 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TimeOfDay - */ -@JsonPropertyOrder({ - TimeOfDay.JSON_PROPERTY_END_TIME, - TimeOfDay.JSON_PROPERTY_START_TIME -}) - +/** TimeOfDay */ +@JsonPropertyOrder({TimeOfDay.JSON_PROPERTY_END_TIME, TimeOfDay.JSON_PROPERTY_START_TIME}) public class TimeOfDay { public static final String JSON_PROPERTY_END_TIME = "endTime"; private String endTime; @@ -39,13 +26,14 @@ public class TimeOfDay { public static final String JSON_PROPERTY_START_TIME = "startTime"; private String startTime; - public TimeOfDay() { - } + public TimeOfDay() {} /** - * The end time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**. + * The end time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, + * **22:30:00-03:00**. * - * @param endTime The end time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**. + * @param endTime The end time in a time-only ISO-8601 extended offset format. For example: + * **08:00:00+02:00**, **22:30:00-03:00**. * @return the current {@code TimeOfDay} instance, allowing for method chaining */ public TimeOfDay endTime(String endTime) { @@ -54,8 +42,11 @@ public TimeOfDay endTime(String endTime) { } /** - * The end time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**. - * @return endTime The end time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**. + * The end time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, + * **22:30:00-03:00**. + * + * @return endTime The end time in a time-only ISO-8601 extended offset format. For example: + * **08:00:00+02:00**, **22:30:00-03:00**. */ @JsonProperty(JSON_PROPERTY_END_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +55,11 @@ public String getEndTime() { } /** - * The end time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**. + * The end time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, + * **22:30:00-03:00**. * - * @param endTime The end time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**. + * @param endTime The end time in a time-only ISO-8601 extended offset format. For example: + * **08:00:00+02:00**, **22:30:00-03:00**. */ @JsonProperty(JSON_PROPERTY_END_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,9 +68,11 @@ public void setEndTime(String endTime) { } /** - * The start time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**. + * The start time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, + * **22:30:00-03:00**. * - * @param startTime The start time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**. + * @param startTime The start time in a time-only ISO-8601 extended offset format. For example: + * **08:00:00+02:00**, **22:30:00-03:00**. * @return the current {@code TimeOfDay} instance, allowing for method chaining */ public TimeOfDay startTime(String startTime) { @@ -86,8 +81,11 @@ public TimeOfDay startTime(String startTime) { } /** - * The start time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**. - * @return startTime The start time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**. + * The start time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, + * **22:30:00-03:00**. + * + * @return startTime The start time in a time-only ISO-8601 extended offset format. For example: + * **08:00:00+02:00**, **22:30:00-03:00**. */ @JsonProperty(JSON_PROPERTY_START_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +94,11 @@ public String getStartTime() { } /** - * The start time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**. + * The start time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, + * **22:30:00-03:00**. * - * @param startTime The start time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**. + * @param startTime The start time in a time-only ISO-8601 extended offset format. For example: + * **08:00:00+02:00**, **22:30:00-03:00**. */ @JsonProperty(JSON_PROPERTY_START_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +106,7 @@ public void setStartTime(String startTime) { this.startTime = startTime; } - /** - * Return true if this TimeOfDay object is equal to o. - */ + /** Return true if this TimeOfDay object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +116,8 @@ public boolean equals(Object o) { return false; } TimeOfDay timeOfDay = (TimeOfDay) o; - return Objects.equals(this.endTime, timeOfDay.endTime) && - Objects.equals(this.startTime, timeOfDay.startTime); + return Objects.equals(this.endTime, timeOfDay.endTime) + && Objects.equals(this.startTime, timeOfDay.startTime); } @Override @@ -138,8 +136,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +145,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TimeOfDay given an JSON string * * @param jsonString JSON string @@ -158,11 +155,12 @@ private String toIndentedString(Object o) { public static TimeOfDay fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TimeOfDay.class); } -/** - * Convert an instance of TimeOfDay to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TimeOfDay to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/TimeOfDayRestriction.java b/src/main/java/com/adyen/model/balanceplatform/TimeOfDayRestriction.java index 470315e1c..0bed38d2a 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TimeOfDayRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/TimeOfDayRestriction.java @@ -2,37 +2,26 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.TimeOfDay; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TimeOfDayRestriction - */ +/** TimeOfDayRestriction */ @JsonPropertyOrder({ TimeOfDayRestriction.JSON_PROPERTY_OPERATION, TimeOfDayRestriction.JSON_PROPERTY_VALUE }) - public class TimeOfDayRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -40,8 +29,7 @@ public class TimeOfDayRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private TimeOfDay value; - public TimeOfDayRestriction() { - } + public TimeOfDayRestriction() {} /** * Defines how the condition must be evaluated. @@ -56,6 +44,7 @@ public TimeOfDayRestriction operation(String operation) { /** * Defines how the condition must be evaluated. + * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -78,7 +67,7 @@ public void setOperation(String operation) { /** * value * - * @param value + * @param value * @return the current {@code TimeOfDayRestriction} instance, allowing for method chaining */ public TimeOfDayRestriction value(TimeOfDay value) { @@ -88,7 +77,8 @@ public TimeOfDayRestriction value(TimeOfDay value) { /** * Get value - * @return value + * + * @return value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,7 +89,7 @@ public TimeOfDay getValue() { /** * value * - * @param value + * @param value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,9 +97,7 @@ public void setValue(TimeOfDay value) { this.value = value; } - /** - * Return true if this TimeOfDayRestriction object is equal to o. - */ + /** Return true if this TimeOfDayRestriction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -119,8 +107,8 @@ public boolean equals(Object o) { return false; } TimeOfDayRestriction timeOfDayRestriction = (TimeOfDayRestriction) o; - return Objects.equals(this.operation, timeOfDayRestriction.operation) && - Objects.equals(this.value, timeOfDayRestriction.value); + return Objects.equals(this.operation, timeOfDayRestriction.operation) + && Objects.equals(this.value, timeOfDayRestriction.value); } @Override @@ -139,8 +127,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -149,21 +136,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TimeOfDayRestriction given an JSON string * * @param jsonString JSON string * @return An instance of TimeOfDayRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to TimeOfDayRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TimeOfDayRestriction */ public static TimeOfDayRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TimeOfDayRestriction.class); } -/** - * Convert an instance of TimeOfDayRestriction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TimeOfDayRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/TokenRequestorsRestriction.java b/src/main/java/com/adyen/model/balanceplatform/TokenRequestorsRestriction.java index d21d4c645..bb4db99db 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TokenRequestorsRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/TokenRequestorsRestriction.java @@ -2,38 +2,28 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * TokenRequestorsRestriction - */ +/** TokenRequestorsRestriction */ @JsonPropertyOrder({ TokenRequestorsRestriction.JSON_PROPERTY_OPERATION, TokenRequestorsRestriction.JSON_PROPERTY_VALUE }) - public class TokenRequestorsRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -41,8 +31,7 @@ public class TokenRequestorsRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private List value; - public TokenRequestorsRestriction() { - } + public TokenRequestorsRestriction() {} /** * Defines how the condition must be evaluated. @@ -57,6 +46,7 @@ public TokenRequestorsRestriction operation(String operation) { /** * Defines how the condition must be evaluated. + * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -79,7 +69,7 @@ public void setOperation(String operation) { /** * value * - * @param value + * @param value * @return the current {@code TokenRequestorsRestriction} instance, allowing for method chaining */ public TokenRequestorsRestriction value(List value) { @@ -97,7 +87,8 @@ public TokenRequestorsRestriction addValueItem(String valueItem) { /** * Get value - * @return value + * + * @return value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,7 +99,7 @@ public List getValue() { /** * value * - * @param value + * @param value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,9 +107,7 @@ public void setValue(List value) { this.value = value; } - /** - * Return true if this TokenRequestorsRestriction object is equal to o. - */ + /** Return true if this TokenRequestorsRestriction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -128,8 +117,8 @@ public boolean equals(Object o) { return false; } TokenRequestorsRestriction tokenRequestorsRestriction = (TokenRequestorsRestriction) o; - return Objects.equals(this.operation, tokenRequestorsRestriction.operation) && - Objects.equals(this.value, tokenRequestorsRestriction.value); + return Objects.equals(this.operation, tokenRequestorsRestriction.operation) + && Objects.equals(this.value, tokenRequestorsRestriction.value); } @Override @@ -148,8 +137,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -158,21 +146,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TokenRequestorsRestriction given an JSON string * * @param jsonString JSON string * @return An instance of TokenRequestorsRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to TokenRequestorsRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TokenRequestorsRestriction */ - public static TokenRequestorsRestriction fromJson(String jsonString) throws JsonProcessingException { + public static TokenRequestorsRestriction fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TokenRequestorsRestriction.class); } -/** - * Convert an instance of TokenRequestorsRestriction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TokenRequestorsRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/TotalAmountRestriction.java b/src/main/java/com/adyen/model/balanceplatform/TotalAmountRestriction.java index e565e90e8..6327e440f 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TotalAmountRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/TotalAmountRestriction.java @@ -2,37 +2,26 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TotalAmountRestriction - */ +/** TotalAmountRestriction */ @JsonPropertyOrder({ TotalAmountRestriction.JSON_PROPERTY_OPERATION, TotalAmountRestriction.JSON_PROPERTY_VALUE }) - public class TotalAmountRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -40,8 +29,7 @@ public class TotalAmountRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private Amount value; - public TotalAmountRestriction() { - } + public TotalAmountRestriction() {} /** * Defines how the condition must be evaluated. @@ -56,6 +44,7 @@ public TotalAmountRestriction operation(String operation) { /** * Defines how the condition must be evaluated. + * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -78,7 +67,7 @@ public void setOperation(String operation) { /** * value * - * @param value + * @param value * @return the current {@code TotalAmountRestriction} instance, allowing for method chaining */ public TotalAmountRestriction value(Amount value) { @@ -88,7 +77,8 @@ public TotalAmountRestriction value(Amount value) { /** * Get value - * @return value + * + * @return value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,7 +89,7 @@ public Amount getValue() { /** * value * - * @param value + * @param value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,9 +97,7 @@ public void setValue(Amount value) { this.value = value; } - /** - * Return true if this TotalAmountRestriction object is equal to o. - */ + /** Return true if this TotalAmountRestriction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -119,8 +107,8 @@ public boolean equals(Object o) { return false; } TotalAmountRestriction totalAmountRestriction = (TotalAmountRestriction) o; - return Objects.equals(this.operation, totalAmountRestriction.operation) && - Objects.equals(this.value, totalAmountRestriction.value); + return Objects.equals(this.operation, totalAmountRestriction.operation) + && Objects.equals(this.value, totalAmountRestriction.value); } @Override @@ -139,8 +127,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -149,21 +136,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TotalAmountRestriction given an JSON string * * @param jsonString JSON string * @return An instance of TotalAmountRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to TotalAmountRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TotalAmountRestriction */ public static TotalAmountRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TotalAmountRestriction.class); } -/** - * Convert an instance of TotalAmountRestriction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TotalAmountRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransactionRule.java b/src/main/java/com/adyen/model/balanceplatform/TransactionRule.java index 3dd8c3662..c9473bd3a 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransactionRule.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransactionRule.java @@ -2,34 +2,26 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.TransactionRuleEntityKey; -import com.adyen.model.balanceplatform.TransactionRuleInterval; -import com.adyen.model.balanceplatform.TransactionRuleRestrictions; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * TransactionRule - */ +/** TransactionRule */ @JsonPropertyOrder({ TransactionRule.JSON_PROPERTY_AGGREGATION_LEVEL, TransactionRule.JSON_PROPERTY_DESCRIPTION, @@ -46,7 +38,6 @@ TransactionRule.JSON_PROPERTY_STATUS, TransactionRule.JSON_PROPERTY_TYPE }) - public class TransactionRule { public static final String JSON_PROPERTY_AGGREGATION_LEVEL = "aggregationLevel"; private String aggregationLevel; @@ -67,10 +58,14 @@ public class TransactionRule { private TransactionRuleInterval interval; /** - * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. + * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied + * when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the + * transaction is declined. * **scoreBased**: the transaction is assigned the `score` + * you specified. Adyen calculates the total score and if it exceeds 100, the transaction is + * declined. Default value: **hardBlock**. > **scoreBased** is not allowed when + * `requestType` is **bankTransfer**. */ public enum OutcomeTypeEnum { - ENFORCESCA(String.valueOf("enforceSCA")), HARDBLOCK(String.valueOf("hardBlock")), @@ -84,7 +79,7 @@ public enum OutcomeTypeEnum { private String value; OutcomeTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -105,7 +100,11 @@ public static OutcomeTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("OutcomeTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(OutcomeTypeEnum.values())); + LOG.warning( + "OutcomeTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(OutcomeTypeEnum.values())); return null; } } @@ -117,10 +116,11 @@ public static OutcomeTypeEnum fromValue(String value) { private String reference; /** - * Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**. + * Indicates the type of request to which the rule applies. If not provided, by default, this is + * set to **authorization**. Possible values: **authorization**, **authentication**, + * **tokenization**, **bankTransfer**. */ public enum RequestTypeEnum { - AUTHENTICATION(String.valueOf("authentication")), AUTHORIZATION(String.valueOf("authorization")), @@ -134,7 +134,7 @@ public enum RequestTypeEnum { private String value; RequestTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -155,7 +155,11 @@ public static RequestTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("RequestTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RequestTypeEnum.values())); + LOG.warning( + "RequestTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(RequestTypeEnum.values())); return null; } } @@ -173,10 +177,11 @@ public static RequestTypeEnum fromValue(String value) { private String startDate; /** - * The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created with an **active** status. Possible values: **active**, **inactive**. + * The status of the transaction rule. If you provide a `startDate` in the request, the + * rule is automatically created with an **active** status. Possible values: **active**, + * **inactive**. */ public enum StatusEnum { - ACTIVE(String.valueOf("active")), INACTIVE(String.valueOf("inactive")); @@ -186,7 +191,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -207,7 +212,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -216,10 +225,15 @@ public static StatusEnum fromValue(String value) { private StatusEnum status; /** - * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. + * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines + * if a rule blocks transactions based on individual characteristics or accumulates data. Possible + * values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add + * the amount or number of transactions for the lifetime of a payment instrument, and then decline + * a transaction when the specified limits are met. * **velocity**: add the amount or number of + * transactions based on a specified time interval, and then decline a transaction when the + * specified limits are met. */ public enum TypeEnum { - ALLOWLIST(String.valueOf("allowList")), BLOCKLIST(String.valueOf("blockList")), @@ -233,7 +247,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -254,7 +268,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -262,13 +280,22 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public TransactionRule() { - } + public TransactionRule() {} /** - * The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`. If not provided, by default, the rule will accumulate data at the **paymentInstrument** level. Possible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. + * The level at which data must be accumulated, used in rules with `type` **velocity** + * or **maxUsage**. The level must be the [same or lower in + * hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the + * `entityKey`. If not provided, by default, the rule will accumulate data at the + * **paymentInstrument** level. Possible values: **paymentInstrument**, + * **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. * - * @param aggregationLevel The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`. If not provided, by default, the rule will accumulate data at the **paymentInstrument** level. Possible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. + * @param aggregationLevel The level at which data must be accumulated, used in rules with + * `type` **velocity** or **maxUsage**. The level must be the [same or lower in + * hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the + * `entityKey`. If not provided, by default, the rule will accumulate data at the + * **paymentInstrument** level. Possible values: **paymentInstrument**, + * **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. * @return the current {@code TransactionRule} instance, allowing for method chaining */ public TransactionRule aggregationLevel(String aggregationLevel) { @@ -277,8 +304,19 @@ public TransactionRule aggregationLevel(String aggregationLevel) { } /** - * The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`. If not provided, by default, the rule will accumulate data at the **paymentInstrument** level. Possible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. - * @return aggregationLevel The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`. If not provided, by default, the rule will accumulate data at the **paymentInstrument** level. Possible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. + * The level at which data must be accumulated, used in rules with `type` **velocity** + * or **maxUsage**. The level must be the [same or lower in + * hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the + * `entityKey`. If not provided, by default, the rule will accumulate data at the + * **paymentInstrument** level. Possible values: **paymentInstrument**, + * **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. + * + * @return aggregationLevel The level at which data must be accumulated, used in rules with + * `type` **velocity** or **maxUsage**. The level must be the [same or lower in + * hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the + * `entityKey`. If not provided, by default, the rule will accumulate data at the + * **paymentInstrument** level. Possible values: **paymentInstrument**, + * **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. */ @JsonProperty(JSON_PROPERTY_AGGREGATION_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -287,9 +325,19 @@ public String getAggregationLevel() { } /** - * The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`. If not provided, by default, the rule will accumulate data at the **paymentInstrument** level. Possible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. + * The level at which data must be accumulated, used in rules with `type` **velocity** + * or **maxUsage**. The level must be the [same or lower in + * hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the + * `entityKey`. If not provided, by default, the rule will accumulate data at the + * **paymentInstrument** level. Possible values: **paymentInstrument**, + * **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. * - * @param aggregationLevel The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`. If not provided, by default, the rule will accumulate data at the **paymentInstrument** level. Possible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. + * @param aggregationLevel The level at which data must be accumulated, used in rules with + * `type` **velocity** or **maxUsage**. The level must be the [same or lower in + * hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the + * `entityKey`. If not provided, by default, the rule will accumulate data at the + * **paymentInstrument** level. Possible values: **paymentInstrument**, + * **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. */ @JsonProperty(JSON_PROPERTY_AGGREGATION_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -310,6 +358,7 @@ public TransactionRule description(String description) { /** * Your description for the transaction rule. + * * @return description Your description for the transaction rule. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -330,9 +379,13 @@ public void setDescription(String description) { } /** - * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**. + * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. + * For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until + * the rule status is set to **inactive**. * - * @param endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**. + * @param endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset + * date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule + * will be evaluated until the rule status is set to **inactive**. * @return the current {@code TransactionRule} instance, allowing for method chaining */ public TransactionRule endDate(String endDate) { @@ -341,8 +394,13 @@ public TransactionRule endDate(String endDate) { } /** - * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**. - * @return endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**. + * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. + * For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until + * the rule status is set to **inactive**. + * + * @return endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset + * date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule + * will be evaluated until the rule status is set to **inactive**. */ @JsonProperty(JSON_PROPERTY_END_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -351,9 +409,13 @@ public String getEndDate() { } /** - * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**. + * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. + * For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until + * the rule status is set to **inactive**. * - * @param endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**. + * @param endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset + * date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule + * will be evaluated until the rule status is set to **inactive**. */ @JsonProperty(JSON_PROPERTY_END_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -364,7 +426,7 @@ public void setEndDate(String endDate) { /** * entityKey * - * @param entityKey + * @param entityKey * @return the current {@code TransactionRule} instance, allowing for method chaining */ public TransactionRule entityKey(TransactionRuleEntityKey entityKey) { @@ -374,7 +436,8 @@ public TransactionRule entityKey(TransactionRuleEntityKey entityKey) { /** * Get entityKey - * @return entityKey + * + * @return entityKey */ @JsonProperty(JSON_PROPERTY_ENTITY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -385,7 +448,7 @@ public TransactionRuleEntityKey getEntityKey() { /** * entityKey * - * @param entityKey + * @param entityKey */ @JsonProperty(JSON_PROPERTY_ENTITY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -406,6 +469,7 @@ public TransactionRule id(String id) { /** * The unique identifier of the transaction rule. + * * @return id The unique identifier of the transaction rule. */ @JsonProperty(JSON_PROPERTY_ID) @@ -428,7 +492,7 @@ public void setId(String id) { /** * interval * - * @param interval + * @param interval * @return the current {@code TransactionRule} instance, allowing for method chaining */ public TransactionRule interval(TransactionRuleInterval interval) { @@ -438,7 +502,8 @@ public TransactionRule interval(TransactionRuleInterval interval) { /** * Get interval - * @return interval + * + * @return interval */ @JsonProperty(JSON_PROPERTY_INTERVAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -449,7 +514,7 @@ public TransactionRuleInterval getInterval() { /** * interval * - * @param interval + * @param interval */ @JsonProperty(JSON_PROPERTY_INTERVAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -458,9 +523,19 @@ public void setInterval(TransactionRuleInterval interval) { } /** - * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. + * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied + * when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the + * transaction is declined. * **scoreBased**: the transaction is assigned the `score` + * you specified. Adyen calculates the total score and if it exceeds 100, the transaction is + * declined. Default value: **hardBlock**. > **scoreBased** is not allowed when + * `requestType` is **bankTransfer**. * - * @param outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. + * @param outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that + * will be applied when a transaction meets the conditions of the rule. Possible values: * + * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned + * the `score` you specified. Adyen calculates the total score and if it exceeds + * 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not + * allowed when `requestType` is **bankTransfer**. * @return the current {@code TransactionRule} instance, allowing for method chaining */ public TransactionRule outcomeType(OutcomeTypeEnum outcomeType) { @@ -469,8 +544,19 @@ public TransactionRule outcomeType(OutcomeTypeEnum outcomeType) { } /** - * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. - * @return outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. + * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied + * when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the + * transaction is declined. * **scoreBased**: the transaction is assigned the `score` + * you specified. Adyen calculates the total score and if it exceeds 100, the transaction is + * declined. Default value: **hardBlock**. > **scoreBased** is not allowed when + * `requestType` is **bankTransfer**. + * + * @return outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) + * that will be applied when a transaction meets the conditions of the rule. Possible values: + * * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned + * the `score` you specified. Adyen calculates the total score and if it exceeds + * 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not + * allowed when `requestType` is **bankTransfer**. */ @JsonProperty(JSON_PROPERTY_OUTCOME_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -479,9 +565,19 @@ public OutcomeTypeEnum getOutcomeType() { } /** - * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. + * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied + * when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the + * transaction is declined. * **scoreBased**: the transaction is assigned the `score` + * you specified. Adyen calculates the total score and if it exceeds 100, the transaction is + * declined. Default value: **hardBlock**. > **scoreBased** is not allowed when + * `requestType` is **bankTransfer**. * - * @param outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. + * @param outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that + * will be applied when a transaction meets the conditions of the rule. Possible values: * + * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned + * the `score` you specified. Adyen calculates the total score and if it exceeds + * 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not + * allowed when `requestType` is **bankTransfer**. */ @JsonProperty(JSON_PROPERTY_OUTCOME_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -502,6 +598,7 @@ public TransactionRule reference(String reference) { /** * Your reference for the transaction rule. + * * @return reference Your reference for the transaction rule. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -522,9 +619,13 @@ public void setReference(String reference) { } /** - * Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**. + * Indicates the type of request to which the rule applies. If not provided, by default, this is + * set to **authorization**. Possible values: **authorization**, **authentication**, + * **tokenization**, **bankTransfer**. * - * @param requestType Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**. + * @param requestType Indicates the type of request to which the rule applies. If not provided, by + * default, this is set to **authorization**. Possible values: **authorization**, + * **authentication**, **tokenization**, **bankTransfer**. * @return the current {@code TransactionRule} instance, allowing for method chaining */ public TransactionRule requestType(RequestTypeEnum requestType) { @@ -533,8 +634,13 @@ public TransactionRule requestType(RequestTypeEnum requestType) { } /** - * Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**. - * @return requestType Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**. + * Indicates the type of request to which the rule applies. If not provided, by default, this is + * set to **authorization**. Possible values: **authorization**, **authentication**, + * **tokenization**, **bankTransfer**. + * + * @return requestType Indicates the type of request to which the rule applies. If not provided, + * by default, this is set to **authorization**. Possible values: **authorization**, + * **authentication**, **tokenization**, **bankTransfer**. */ @JsonProperty(JSON_PROPERTY_REQUEST_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -543,9 +649,13 @@ public RequestTypeEnum getRequestType() { } /** - * Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**. + * Indicates the type of request to which the rule applies. If not provided, by default, this is + * set to **authorization**. Possible values: **authorization**, **authentication**, + * **tokenization**, **bankTransfer**. * - * @param requestType Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**. + * @param requestType Indicates the type of request to which the rule applies. If not provided, by + * default, this is set to **authorization**. Possible values: **authorization**, + * **authentication**, **tokenization**, **bankTransfer**. */ @JsonProperty(JSON_PROPERTY_REQUEST_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -556,7 +666,7 @@ public void setRequestType(RequestTypeEnum requestType) { /** * ruleRestrictions * - * @param ruleRestrictions + * @param ruleRestrictions * @return the current {@code TransactionRule} instance, allowing for method chaining */ public TransactionRule ruleRestrictions(TransactionRuleRestrictions ruleRestrictions) { @@ -566,7 +676,8 @@ public TransactionRule ruleRestrictions(TransactionRuleRestrictions ruleRestrict /** * Get ruleRestrictions - * @return ruleRestrictions + * + * @return ruleRestrictions */ @JsonProperty(JSON_PROPERTY_RULE_RESTRICTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -577,7 +688,7 @@ public TransactionRuleRestrictions getRuleRestrictions() { /** * ruleRestrictions * - * @param ruleRestrictions + * @param ruleRestrictions */ @JsonProperty(JSON_PROPERTY_RULE_RESTRICTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -586,9 +697,13 @@ public void setRuleRestrictions(TransactionRuleRestrictions ruleRestrictions) { } /** - * A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**. + * A positive or negative score applied to the transaction if it meets the conditions of the rule. + * Required when `outcomeType` is **scoreBased**. The value must be between **-100** and + * **100**. * - * @param score A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**. + * @param score A positive or negative score applied to the transaction if it meets the conditions + * of the rule. Required when `outcomeType` is **scoreBased**. The value must be + * between **-100** and **100**. * @return the current {@code TransactionRule} instance, allowing for method chaining */ public TransactionRule score(Integer score) { @@ -597,8 +712,13 @@ public TransactionRule score(Integer score) { } /** - * A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**. - * @return score A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**. + * A positive or negative score applied to the transaction if it meets the conditions of the rule. + * Required when `outcomeType` is **scoreBased**. The value must be between **-100** and + * **100**. + * + * @return score A positive or negative score applied to the transaction if it meets the + * conditions of the rule. Required when `outcomeType` is **scoreBased**. The value + * must be between **-100** and **100**. */ @JsonProperty(JSON_PROPERTY_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -607,9 +727,13 @@ public Integer getScore() { } /** - * A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**. + * A positive or negative score applied to the transaction if it meets the conditions of the rule. + * Required when `outcomeType` is **scoreBased**. The value must be between **-100** and + * **100**. * - * @param score A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**. + * @param score A positive or negative score applied to the transaction if it meets the conditions + * of the rule. Required when `outcomeType` is **scoreBased**. The value must be + * between **-100** and **100**. */ @JsonProperty(JSON_PROPERTY_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -618,9 +742,14 @@ public void setScore(Integer score) { } /** - * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. + * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time + * format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction + * rule, the `startDate` is set to the date when the rule status is set to **active**. * - * @param startDate The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. + * @param startDate The date when the rule will start to be evaluated, in ISO 8601 extended offset + * date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating + * a transaction rule, the `startDate` is set to the date when the rule status is + * set to **active**. * @return the current {@code TransactionRule} instance, allowing for method chaining */ public TransactionRule startDate(String startDate) { @@ -629,8 +758,14 @@ public TransactionRule startDate(String startDate) { } /** - * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. - * @return startDate The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. + * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time + * format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction + * rule, the `startDate` is set to the date when the rule status is set to **active**. + * + * @return startDate The date when the rule will start to be evaluated, in ISO 8601 extended + * offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when + * creating a transaction rule, the `startDate` is set to the date when the rule + * status is set to **active**. */ @JsonProperty(JSON_PROPERTY_START_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -639,9 +774,14 @@ public String getStartDate() { } /** - * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. + * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time + * format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction + * rule, the `startDate` is set to the date when the rule status is set to **active**. * - * @param startDate The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. + * @param startDate The date when the rule will start to be evaluated, in ISO 8601 extended offset + * date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating + * a transaction rule, the `startDate` is set to the date when the rule status is + * set to **active**. */ @JsonProperty(JSON_PROPERTY_START_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -650,9 +790,13 @@ public void setStartDate(String startDate) { } /** - * The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created with an **active** status. Possible values: **active**, **inactive**. + * The status of the transaction rule. If you provide a `startDate` in the request, the + * rule is automatically created with an **active** status. Possible values: **active**, + * **inactive**. * - * @param status The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created with an **active** status. Possible values: **active**, **inactive**. + * @param status The status of the transaction rule. If you provide a `startDate` in the + * request, the rule is automatically created with an **active** status. Possible values: + * **active**, **inactive**. * @return the current {@code TransactionRule} instance, allowing for method chaining */ public TransactionRule status(StatusEnum status) { @@ -661,8 +805,13 @@ public TransactionRule status(StatusEnum status) { } /** - * The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created with an **active** status. Possible values: **active**, **inactive**. - * @return status The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created with an **active** status. Possible values: **active**, **inactive**. + * The status of the transaction rule. If you provide a `startDate` in the request, the + * rule is automatically created with an **active** status. Possible values: **active**, + * **inactive**. + * + * @return status The status of the transaction rule. If you provide a `startDate` in + * the request, the rule is automatically created with an **active** status. Possible values: + * **active**, **inactive**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -671,9 +820,13 @@ public StatusEnum getStatus() { } /** - * The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created with an **active** status. Possible values: **active**, **inactive**. + * The status of the transaction rule. If you provide a `startDate` in the request, the + * rule is automatically created with an **active** status. Possible values: **active**, + * **inactive**. * - * @param status The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created with an **active** status. Possible values: **active**, **inactive**. + * @param status The status of the transaction rule. If you provide a `startDate` in the + * request, the rule is automatically created with an **active** status. Possible values: + * **active**, **inactive**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -682,9 +835,21 @@ public void setStatus(StatusEnum status) { } /** - * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. + * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines + * if a rule blocks transactions based on individual characteristics or accumulates data. Possible + * values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add + * the amount or number of transactions for the lifetime of a payment instrument, and then decline + * a transaction when the specified limits are met. * **velocity**: add the amount or number of + * transactions based on a specified time interval, and then decline a transaction when the + * specified limits are met. * - * @param type The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. + * @param type The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), + * which defines if a rule blocks transactions based on individual characteristics or + * accumulates data. Possible values: * **blockList**: decline a transaction when the + * conditions are met. * **maxUsage**: add the amount or number of transactions for the + * lifetime of a payment instrument, and then decline a transaction when the specified limits + * are met. * **velocity**: add the amount or number of transactions based on a specified time + * interval, and then decline a transaction when the specified limits are met. * @return the current {@code TransactionRule} instance, allowing for method chaining */ public TransactionRule type(TypeEnum type) { @@ -693,8 +858,21 @@ public TransactionRule type(TypeEnum type) { } /** - * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. - * @return type The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. + * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines + * if a rule blocks transactions based on individual characteristics or accumulates data. Possible + * values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add + * the amount or number of transactions for the lifetime of a payment instrument, and then decline + * a transaction when the specified limits are met. * **velocity**: add the amount or number of + * transactions based on a specified time interval, and then decline a transaction when the + * specified limits are met. + * + * @return type The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), + * which defines if a rule blocks transactions based on individual characteristics or + * accumulates data. Possible values: * **blockList**: decline a transaction when the + * conditions are met. * **maxUsage**: add the amount or number of transactions for the + * lifetime of a payment instrument, and then decline a transaction when the specified limits + * are met. * **velocity**: add the amount or number of transactions based on a specified time + * interval, and then decline a transaction when the specified limits are met. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -703,9 +881,21 @@ public TypeEnum getType() { } /** - * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. + * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines + * if a rule blocks transactions based on individual characteristics or accumulates data. Possible + * values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add + * the amount or number of transactions for the lifetime of a payment instrument, and then decline + * a transaction when the specified limits are met. * **velocity**: add the amount or number of + * transactions based on a specified time interval, and then decline a transaction when the + * specified limits are met. * - * @param type The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. + * @param type The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), + * which defines if a rule blocks transactions based on individual characteristics or + * accumulates data. Possible values: * **blockList**: decline a transaction when the + * conditions are met. * **maxUsage**: add the amount or number of transactions for the + * lifetime of a payment instrument, and then decline a transaction when the specified limits + * are met. * **velocity**: add the amount or number of transactions based on a specified time + * interval, and then decline a transaction when the specified limits are met. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -713,9 +903,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this TransactionRule object is equal to o. - */ + /** Return true if this TransactionRule object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -725,25 +913,39 @@ public boolean equals(Object o) { return false; } TransactionRule transactionRule = (TransactionRule) o; - return Objects.equals(this.aggregationLevel, transactionRule.aggregationLevel) && - Objects.equals(this.description, transactionRule.description) && - Objects.equals(this.endDate, transactionRule.endDate) && - Objects.equals(this.entityKey, transactionRule.entityKey) && - Objects.equals(this.id, transactionRule.id) && - Objects.equals(this.interval, transactionRule.interval) && - Objects.equals(this.outcomeType, transactionRule.outcomeType) && - Objects.equals(this.reference, transactionRule.reference) && - Objects.equals(this.requestType, transactionRule.requestType) && - Objects.equals(this.ruleRestrictions, transactionRule.ruleRestrictions) && - Objects.equals(this.score, transactionRule.score) && - Objects.equals(this.startDate, transactionRule.startDate) && - Objects.equals(this.status, transactionRule.status) && - Objects.equals(this.type, transactionRule.type); + return Objects.equals(this.aggregationLevel, transactionRule.aggregationLevel) + && Objects.equals(this.description, transactionRule.description) + && Objects.equals(this.endDate, transactionRule.endDate) + && Objects.equals(this.entityKey, transactionRule.entityKey) + && Objects.equals(this.id, transactionRule.id) + && Objects.equals(this.interval, transactionRule.interval) + && Objects.equals(this.outcomeType, transactionRule.outcomeType) + && Objects.equals(this.reference, transactionRule.reference) + && Objects.equals(this.requestType, transactionRule.requestType) + && Objects.equals(this.ruleRestrictions, transactionRule.ruleRestrictions) + && Objects.equals(this.score, transactionRule.score) + && Objects.equals(this.startDate, transactionRule.startDate) + && Objects.equals(this.status, transactionRule.status) + && Objects.equals(this.type, transactionRule.type); } @Override public int hashCode() { - return Objects.hash(aggregationLevel, description, endDate, entityKey, id, interval, outcomeType, reference, requestType, ruleRestrictions, score, startDate, status, type); + return Objects.hash( + aggregationLevel, + description, + endDate, + entityKey, + id, + interval, + outcomeType, + reference, + requestType, + ruleRestrictions, + score, + startDate, + status, + type); } @Override @@ -769,8 +971,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -779,7 +980,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransactionRule given an JSON string * * @param jsonString JSON string @@ -789,11 +990,12 @@ private String toIndentedString(Object o) { public static TransactionRule fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionRule.class); } -/** - * Convert an instance of TransactionRule to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransactionRule to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleEntityKey.java b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleEntityKey.java index 552652cec..1a0616f80 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleEntityKey.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleEntityKey.java @@ -2,36 +2,26 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TransactionRuleEntityKey - */ +/** TransactionRuleEntityKey */ @JsonPropertyOrder({ TransactionRuleEntityKey.JSON_PROPERTY_ENTITY_REFERENCE, TransactionRuleEntityKey.JSON_PROPERTY_ENTITY_TYPE }) - public class TransactionRuleEntityKey { public static final String JSON_PROPERTY_ENTITY_REFERENCE = "entityReference"; private String entityReference; @@ -39,8 +29,7 @@ public class TransactionRuleEntityKey { public static final String JSON_PROPERTY_ENTITY_TYPE = "entityType"; private String entityType; - public TransactionRuleEntityKey() { - } + public TransactionRuleEntityKey() {} /** * The unique identifier of the resource. @@ -55,6 +44,7 @@ public TransactionRuleEntityKey entityReference(String entityReference) { /** * The unique identifier of the resource. + * * @return entityReference The unique identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ENTITY_REFERENCE) @@ -75,9 +65,12 @@ public void setEntityReference(String entityReference) { } /** - * The type of resource. Possible values: **balancePlatform**, **paymentInstrumentGroup**, **accountHolder**, **balanceAccount**, or **paymentInstrument**. + * The type of resource. Possible values: **balancePlatform**, **paymentInstrumentGroup**, + * **accountHolder**, **balanceAccount**, or **paymentInstrument**. * - * @param entityType The type of resource. Possible values: **balancePlatform**, **paymentInstrumentGroup**, **accountHolder**, **balanceAccount**, or **paymentInstrument**. + * @param entityType The type of resource. Possible values: **balancePlatform**, + * **paymentInstrumentGroup**, **accountHolder**, **balanceAccount**, or + * **paymentInstrument**. * @return the current {@code TransactionRuleEntityKey} instance, allowing for method chaining */ public TransactionRuleEntityKey entityType(String entityType) { @@ -86,8 +79,12 @@ public TransactionRuleEntityKey entityType(String entityType) { } /** - * The type of resource. Possible values: **balancePlatform**, **paymentInstrumentGroup**, **accountHolder**, **balanceAccount**, or **paymentInstrument**. - * @return entityType The type of resource. Possible values: **balancePlatform**, **paymentInstrumentGroup**, **accountHolder**, **balanceAccount**, or **paymentInstrument**. + * The type of resource. Possible values: **balancePlatform**, **paymentInstrumentGroup**, + * **accountHolder**, **balanceAccount**, or **paymentInstrument**. + * + * @return entityType The type of resource. Possible values: **balancePlatform**, + * **paymentInstrumentGroup**, **accountHolder**, **balanceAccount**, or + * **paymentInstrument**. */ @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +93,12 @@ public String getEntityType() { } /** - * The type of resource. Possible values: **balancePlatform**, **paymentInstrumentGroup**, **accountHolder**, **balanceAccount**, or **paymentInstrument**. + * The type of resource. Possible values: **balancePlatform**, **paymentInstrumentGroup**, + * **accountHolder**, **balanceAccount**, or **paymentInstrument**. * - * @param entityType The type of resource. Possible values: **balancePlatform**, **paymentInstrumentGroup**, **accountHolder**, **balanceAccount**, or **paymentInstrument**. + * @param entityType The type of resource. Possible values: **balancePlatform**, + * **paymentInstrumentGroup**, **accountHolder**, **balanceAccount**, or + * **paymentInstrument**. */ @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +106,7 @@ public void setEntityType(String entityType) { this.entityType = entityType; } - /** - * Return true if this TransactionRuleEntityKey object is equal to o. - */ + /** Return true if this TransactionRuleEntityKey object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +116,8 @@ public boolean equals(Object o) { return false; } TransactionRuleEntityKey transactionRuleEntityKey = (TransactionRuleEntityKey) o; - return Objects.equals(this.entityReference, transactionRuleEntityKey.entityReference) && - Objects.equals(this.entityType, transactionRuleEntityKey.entityType); + return Objects.equals(this.entityReference, transactionRuleEntityKey.entityReference) + && Objects.equals(this.entityType, transactionRuleEntityKey.entityType); } @Override @@ -138,8 +136,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +145,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransactionRuleEntityKey given an JSON string * * @param jsonString JSON string * @return An instance of TransactionRuleEntityKey - * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionRuleEntityKey + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TransactionRuleEntityKey */ - public static TransactionRuleEntityKey fromJson(String jsonString) throws JsonProcessingException { + public static TransactionRuleEntityKey fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionRuleEntityKey.class); } -/** - * Convert an instance of TransactionRuleEntityKey to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransactionRuleEntityKey to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleInfo.java b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleInfo.java index b1d2c4c4d..5a380710e 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleInfo.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleInfo.java @@ -2,34 +2,26 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.TransactionRuleEntityKey; -import com.adyen.model.balanceplatform.TransactionRuleInterval; -import com.adyen.model.balanceplatform.TransactionRuleRestrictions; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * TransactionRuleInfo - */ +/** TransactionRuleInfo */ @JsonPropertyOrder({ TransactionRuleInfo.JSON_PROPERTY_AGGREGATION_LEVEL, TransactionRuleInfo.JSON_PROPERTY_DESCRIPTION, @@ -45,7 +37,6 @@ TransactionRuleInfo.JSON_PROPERTY_STATUS, TransactionRuleInfo.JSON_PROPERTY_TYPE }) - public class TransactionRuleInfo { public static final String JSON_PROPERTY_AGGREGATION_LEVEL = "aggregationLevel"; private String aggregationLevel; @@ -63,10 +54,14 @@ public class TransactionRuleInfo { private TransactionRuleInterval interval; /** - * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. + * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied + * when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the + * transaction is declined. * **scoreBased**: the transaction is assigned the `score` + * you specified. Adyen calculates the total score and if it exceeds 100, the transaction is + * declined. Default value: **hardBlock**. > **scoreBased** is not allowed when + * `requestType` is **bankTransfer**. */ public enum OutcomeTypeEnum { - ENFORCESCA(String.valueOf("enforceSCA")), HARDBLOCK(String.valueOf("hardBlock")), @@ -80,7 +75,7 @@ public enum OutcomeTypeEnum { private String value; OutcomeTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -101,7 +96,11 @@ public static OutcomeTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("OutcomeTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(OutcomeTypeEnum.values())); + LOG.warning( + "OutcomeTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(OutcomeTypeEnum.values())); return null; } } @@ -113,10 +112,11 @@ public static OutcomeTypeEnum fromValue(String value) { private String reference; /** - * Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**. + * Indicates the type of request to which the rule applies. If not provided, by default, this is + * set to **authorization**. Possible values: **authorization**, **authentication**, + * **tokenization**, **bankTransfer**. */ public enum RequestTypeEnum { - AUTHENTICATION(String.valueOf("authentication")), AUTHORIZATION(String.valueOf("authorization")), @@ -130,7 +130,7 @@ public enum RequestTypeEnum { private String value; RequestTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -151,7 +151,11 @@ public static RequestTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("RequestTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RequestTypeEnum.values())); + LOG.warning( + "RequestTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(RequestTypeEnum.values())); return null; } } @@ -169,10 +173,11 @@ public static RequestTypeEnum fromValue(String value) { private String startDate; /** - * The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created with an **active** status. Possible values: **active**, **inactive**. + * The status of the transaction rule. If you provide a `startDate` in the request, the + * rule is automatically created with an **active** status. Possible values: **active**, + * **inactive**. */ public enum StatusEnum { - ACTIVE(String.valueOf("active")), INACTIVE(String.valueOf("inactive")); @@ -182,7 +187,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -203,7 +208,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -212,10 +221,15 @@ public static StatusEnum fromValue(String value) { private StatusEnum status; /** - * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. + * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines + * if a rule blocks transactions based on individual characteristics or accumulates data. Possible + * values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add + * the amount or number of transactions for the lifetime of a payment instrument, and then decline + * a transaction when the specified limits are met. * **velocity**: add the amount or number of + * transactions based on a specified time interval, and then decline a transaction when the + * specified limits are met. */ public enum TypeEnum { - ALLOWLIST(String.valueOf("allowList")), BLOCKLIST(String.valueOf("blockList")), @@ -229,7 +243,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -250,7 +264,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -258,13 +276,22 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public TransactionRuleInfo() { - } + public TransactionRuleInfo() {} /** - * The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`. If not provided, by default, the rule will accumulate data at the **paymentInstrument** level. Possible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. + * The level at which data must be accumulated, used in rules with `type` **velocity** + * or **maxUsage**. The level must be the [same or lower in + * hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the + * `entityKey`. If not provided, by default, the rule will accumulate data at the + * **paymentInstrument** level. Possible values: **paymentInstrument**, + * **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. * - * @param aggregationLevel The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`. If not provided, by default, the rule will accumulate data at the **paymentInstrument** level. Possible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. + * @param aggregationLevel The level at which data must be accumulated, used in rules with + * `type` **velocity** or **maxUsage**. The level must be the [same or lower in + * hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the + * `entityKey`. If not provided, by default, the rule will accumulate data at the + * **paymentInstrument** level. Possible values: **paymentInstrument**, + * **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. * @return the current {@code TransactionRuleInfo} instance, allowing for method chaining */ public TransactionRuleInfo aggregationLevel(String aggregationLevel) { @@ -273,8 +300,19 @@ public TransactionRuleInfo aggregationLevel(String aggregationLevel) { } /** - * The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`. If not provided, by default, the rule will accumulate data at the **paymentInstrument** level. Possible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. - * @return aggregationLevel The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`. If not provided, by default, the rule will accumulate data at the **paymentInstrument** level. Possible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. + * The level at which data must be accumulated, used in rules with `type` **velocity** + * or **maxUsage**. The level must be the [same or lower in + * hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the + * `entityKey`. If not provided, by default, the rule will accumulate data at the + * **paymentInstrument** level. Possible values: **paymentInstrument**, + * **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. + * + * @return aggregationLevel The level at which data must be accumulated, used in rules with + * `type` **velocity** or **maxUsage**. The level must be the [same or lower in + * hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the + * `entityKey`. If not provided, by default, the rule will accumulate data at the + * **paymentInstrument** level. Possible values: **paymentInstrument**, + * **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. */ @JsonProperty(JSON_PROPERTY_AGGREGATION_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -283,9 +321,19 @@ public String getAggregationLevel() { } /** - * The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`. If not provided, by default, the rule will accumulate data at the **paymentInstrument** level. Possible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. + * The level at which data must be accumulated, used in rules with `type` **velocity** + * or **maxUsage**. The level must be the [same or lower in + * hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the + * `entityKey`. If not provided, by default, the rule will accumulate data at the + * **paymentInstrument** level. Possible values: **paymentInstrument**, + * **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. * - * @param aggregationLevel The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`. If not provided, by default, the rule will accumulate data at the **paymentInstrument** level. Possible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. + * @param aggregationLevel The level at which data must be accumulated, used in rules with + * `type` **velocity** or **maxUsage**. The level must be the [same or lower in + * hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the + * `entityKey`. If not provided, by default, the rule will accumulate data at the + * **paymentInstrument** level. Possible values: **paymentInstrument**, + * **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. */ @JsonProperty(JSON_PROPERTY_AGGREGATION_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -306,6 +354,7 @@ public TransactionRuleInfo description(String description) { /** * Your description for the transaction rule. + * * @return description Your description for the transaction rule. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -326,9 +375,13 @@ public void setDescription(String description) { } /** - * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**. + * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. + * For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until + * the rule status is set to **inactive**. * - * @param endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**. + * @param endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset + * date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule + * will be evaluated until the rule status is set to **inactive**. * @return the current {@code TransactionRuleInfo} instance, allowing for method chaining */ public TransactionRuleInfo endDate(String endDate) { @@ -337,8 +390,13 @@ public TransactionRuleInfo endDate(String endDate) { } /** - * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**. - * @return endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**. + * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. + * For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until + * the rule status is set to **inactive**. + * + * @return endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset + * date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule + * will be evaluated until the rule status is set to **inactive**. */ @JsonProperty(JSON_PROPERTY_END_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -347,9 +405,13 @@ public String getEndDate() { } /** - * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**. + * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. + * For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until + * the rule status is set to **inactive**. * - * @param endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**. + * @param endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset + * date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule + * will be evaluated until the rule status is set to **inactive**. */ @JsonProperty(JSON_PROPERTY_END_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -360,7 +422,7 @@ public void setEndDate(String endDate) { /** * entityKey * - * @param entityKey + * @param entityKey * @return the current {@code TransactionRuleInfo} instance, allowing for method chaining */ public TransactionRuleInfo entityKey(TransactionRuleEntityKey entityKey) { @@ -370,7 +432,8 @@ public TransactionRuleInfo entityKey(TransactionRuleEntityKey entityKey) { /** * Get entityKey - * @return entityKey + * + * @return entityKey */ @JsonProperty(JSON_PROPERTY_ENTITY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -381,7 +444,7 @@ public TransactionRuleEntityKey getEntityKey() { /** * entityKey * - * @param entityKey + * @param entityKey */ @JsonProperty(JSON_PROPERTY_ENTITY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -392,7 +455,7 @@ public void setEntityKey(TransactionRuleEntityKey entityKey) { /** * interval * - * @param interval + * @param interval * @return the current {@code TransactionRuleInfo} instance, allowing for method chaining */ public TransactionRuleInfo interval(TransactionRuleInterval interval) { @@ -402,7 +465,8 @@ public TransactionRuleInfo interval(TransactionRuleInterval interval) { /** * Get interval - * @return interval + * + * @return interval */ @JsonProperty(JSON_PROPERTY_INTERVAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -413,7 +477,7 @@ public TransactionRuleInterval getInterval() { /** * interval * - * @param interval + * @param interval */ @JsonProperty(JSON_PROPERTY_INTERVAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -422,9 +486,19 @@ public void setInterval(TransactionRuleInterval interval) { } /** - * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. + * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied + * when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the + * transaction is declined. * **scoreBased**: the transaction is assigned the `score` + * you specified. Adyen calculates the total score and if it exceeds 100, the transaction is + * declined. Default value: **hardBlock**. > **scoreBased** is not allowed when + * `requestType` is **bankTransfer**. * - * @param outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. + * @param outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that + * will be applied when a transaction meets the conditions of the rule. Possible values: * + * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned + * the `score` you specified. Adyen calculates the total score and if it exceeds + * 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not + * allowed when `requestType` is **bankTransfer**. * @return the current {@code TransactionRuleInfo} instance, allowing for method chaining */ public TransactionRuleInfo outcomeType(OutcomeTypeEnum outcomeType) { @@ -433,8 +507,19 @@ public TransactionRuleInfo outcomeType(OutcomeTypeEnum outcomeType) { } /** - * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. - * @return outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. + * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied + * when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the + * transaction is declined. * **scoreBased**: the transaction is assigned the `score` + * you specified. Adyen calculates the total score and if it exceeds 100, the transaction is + * declined. Default value: **hardBlock**. > **scoreBased** is not allowed when + * `requestType` is **bankTransfer**. + * + * @return outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) + * that will be applied when a transaction meets the conditions of the rule. Possible values: + * * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned + * the `score` you specified. Adyen calculates the total score and if it exceeds + * 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not + * allowed when `requestType` is **bankTransfer**. */ @JsonProperty(JSON_PROPERTY_OUTCOME_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -443,9 +528,19 @@ public OutcomeTypeEnum getOutcomeType() { } /** - * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. + * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied + * when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the + * transaction is declined. * **scoreBased**: the transaction is assigned the `score` + * you specified. Adyen calculates the total score and if it exceeds 100, the transaction is + * declined. Default value: **hardBlock**. > **scoreBased** is not allowed when + * `requestType` is **bankTransfer**. * - * @param outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. + * @param outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that + * will be applied when a transaction meets the conditions of the rule. Possible values: * + * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned + * the `score` you specified. Adyen calculates the total score and if it exceeds + * 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not + * allowed when `requestType` is **bankTransfer**. */ @JsonProperty(JSON_PROPERTY_OUTCOME_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -466,6 +561,7 @@ public TransactionRuleInfo reference(String reference) { /** * Your reference for the transaction rule. + * * @return reference Your reference for the transaction rule. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -486,9 +582,13 @@ public void setReference(String reference) { } /** - * Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**. + * Indicates the type of request to which the rule applies. If not provided, by default, this is + * set to **authorization**. Possible values: **authorization**, **authentication**, + * **tokenization**, **bankTransfer**. * - * @param requestType Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**. + * @param requestType Indicates the type of request to which the rule applies. If not provided, by + * default, this is set to **authorization**. Possible values: **authorization**, + * **authentication**, **tokenization**, **bankTransfer**. * @return the current {@code TransactionRuleInfo} instance, allowing for method chaining */ public TransactionRuleInfo requestType(RequestTypeEnum requestType) { @@ -497,8 +597,13 @@ public TransactionRuleInfo requestType(RequestTypeEnum requestType) { } /** - * Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**. - * @return requestType Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**. + * Indicates the type of request to which the rule applies. If not provided, by default, this is + * set to **authorization**. Possible values: **authorization**, **authentication**, + * **tokenization**, **bankTransfer**. + * + * @return requestType Indicates the type of request to which the rule applies. If not provided, + * by default, this is set to **authorization**. Possible values: **authorization**, + * **authentication**, **tokenization**, **bankTransfer**. */ @JsonProperty(JSON_PROPERTY_REQUEST_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -507,9 +612,13 @@ public RequestTypeEnum getRequestType() { } /** - * Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**. + * Indicates the type of request to which the rule applies. If not provided, by default, this is + * set to **authorization**. Possible values: **authorization**, **authentication**, + * **tokenization**, **bankTransfer**. * - * @param requestType Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**. + * @param requestType Indicates the type of request to which the rule applies. If not provided, by + * default, this is set to **authorization**. Possible values: **authorization**, + * **authentication**, **tokenization**, **bankTransfer**. */ @JsonProperty(JSON_PROPERTY_REQUEST_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -520,7 +629,7 @@ public void setRequestType(RequestTypeEnum requestType) { /** * ruleRestrictions * - * @param ruleRestrictions + * @param ruleRestrictions * @return the current {@code TransactionRuleInfo} instance, allowing for method chaining */ public TransactionRuleInfo ruleRestrictions(TransactionRuleRestrictions ruleRestrictions) { @@ -530,7 +639,8 @@ public TransactionRuleInfo ruleRestrictions(TransactionRuleRestrictions ruleRest /** * Get ruleRestrictions - * @return ruleRestrictions + * + * @return ruleRestrictions */ @JsonProperty(JSON_PROPERTY_RULE_RESTRICTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -541,7 +651,7 @@ public TransactionRuleRestrictions getRuleRestrictions() { /** * ruleRestrictions * - * @param ruleRestrictions + * @param ruleRestrictions */ @JsonProperty(JSON_PROPERTY_RULE_RESTRICTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -550,9 +660,13 @@ public void setRuleRestrictions(TransactionRuleRestrictions ruleRestrictions) { } /** - * A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**. + * A positive or negative score applied to the transaction if it meets the conditions of the rule. + * Required when `outcomeType` is **scoreBased**. The value must be between **-100** and + * **100**. * - * @param score A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**. + * @param score A positive or negative score applied to the transaction if it meets the conditions + * of the rule. Required when `outcomeType` is **scoreBased**. The value must be + * between **-100** and **100**. * @return the current {@code TransactionRuleInfo} instance, allowing for method chaining */ public TransactionRuleInfo score(Integer score) { @@ -561,8 +675,13 @@ public TransactionRuleInfo score(Integer score) { } /** - * A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**. - * @return score A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**. + * A positive or negative score applied to the transaction if it meets the conditions of the rule. + * Required when `outcomeType` is **scoreBased**. The value must be between **-100** and + * **100**. + * + * @return score A positive or negative score applied to the transaction if it meets the + * conditions of the rule. Required when `outcomeType` is **scoreBased**. The value + * must be between **-100** and **100**. */ @JsonProperty(JSON_PROPERTY_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -571,9 +690,13 @@ public Integer getScore() { } /** - * A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**. + * A positive or negative score applied to the transaction if it meets the conditions of the rule. + * Required when `outcomeType` is **scoreBased**. The value must be between **-100** and + * **100**. * - * @param score A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**. + * @param score A positive or negative score applied to the transaction if it meets the conditions + * of the rule. Required when `outcomeType` is **scoreBased**. The value must be + * between **-100** and **100**. */ @JsonProperty(JSON_PROPERTY_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -582,9 +705,14 @@ public void setScore(Integer score) { } /** - * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. + * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time + * format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction + * rule, the `startDate` is set to the date when the rule status is set to **active**. * - * @param startDate The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. + * @param startDate The date when the rule will start to be evaluated, in ISO 8601 extended offset + * date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating + * a transaction rule, the `startDate` is set to the date when the rule status is + * set to **active**. * @return the current {@code TransactionRuleInfo} instance, allowing for method chaining */ public TransactionRuleInfo startDate(String startDate) { @@ -593,8 +721,14 @@ public TransactionRuleInfo startDate(String startDate) { } /** - * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. - * @return startDate The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. + * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time + * format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction + * rule, the `startDate` is set to the date when the rule status is set to **active**. + * + * @return startDate The date when the rule will start to be evaluated, in ISO 8601 extended + * offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when + * creating a transaction rule, the `startDate` is set to the date when the rule + * status is set to **active**. */ @JsonProperty(JSON_PROPERTY_START_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -603,9 +737,14 @@ public String getStartDate() { } /** - * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. + * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time + * format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction + * rule, the `startDate` is set to the date when the rule status is set to **active**. * - * @param startDate The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. + * @param startDate The date when the rule will start to be evaluated, in ISO 8601 extended offset + * date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating + * a transaction rule, the `startDate` is set to the date when the rule status is + * set to **active**. */ @JsonProperty(JSON_PROPERTY_START_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -614,9 +753,13 @@ public void setStartDate(String startDate) { } /** - * The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created with an **active** status. Possible values: **active**, **inactive**. + * The status of the transaction rule. If you provide a `startDate` in the request, the + * rule is automatically created with an **active** status. Possible values: **active**, + * **inactive**. * - * @param status The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created with an **active** status. Possible values: **active**, **inactive**. + * @param status The status of the transaction rule. If you provide a `startDate` in the + * request, the rule is automatically created with an **active** status. Possible values: + * **active**, **inactive**. * @return the current {@code TransactionRuleInfo} instance, allowing for method chaining */ public TransactionRuleInfo status(StatusEnum status) { @@ -625,8 +768,13 @@ public TransactionRuleInfo status(StatusEnum status) { } /** - * The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created with an **active** status. Possible values: **active**, **inactive**. - * @return status The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created with an **active** status. Possible values: **active**, **inactive**. + * The status of the transaction rule. If you provide a `startDate` in the request, the + * rule is automatically created with an **active** status. Possible values: **active**, + * **inactive**. + * + * @return status The status of the transaction rule. If you provide a `startDate` in + * the request, the rule is automatically created with an **active** status. Possible values: + * **active**, **inactive**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -635,9 +783,13 @@ public StatusEnum getStatus() { } /** - * The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created with an **active** status. Possible values: **active**, **inactive**. + * The status of the transaction rule. If you provide a `startDate` in the request, the + * rule is automatically created with an **active** status. Possible values: **active**, + * **inactive**. * - * @param status The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created with an **active** status. Possible values: **active**, **inactive**. + * @param status The status of the transaction rule. If you provide a `startDate` in the + * request, the rule is automatically created with an **active** status. Possible values: + * **active**, **inactive**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -646,9 +798,21 @@ public void setStatus(StatusEnum status) { } /** - * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. + * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines + * if a rule blocks transactions based on individual characteristics or accumulates data. Possible + * values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add + * the amount or number of transactions for the lifetime of a payment instrument, and then decline + * a transaction when the specified limits are met. * **velocity**: add the amount or number of + * transactions based on a specified time interval, and then decline a transaction when the + * specified limits are met. * - * @param type The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. + * @param type The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), + * which defines if a rule blocks transactions based on individual characteristics or + * accumulates data. Possible values: * **blockList**: decline a transaction when the + * conditions are met. * **maxUsage**: add the amount or number of transactions for the + * lifetime of a payment instrument, and then decline a transaction when the specified limits + * are met. * **velocity**: add the amount or number of transactions based on a specified time + * interval, and then decline a transaction when the specified limits are met. * @return the current {@code TransactionRuleInfo} instance, allowing for method chaining */ public TransactionRuleInfo type(TypeEnum type) { @@ -657,8 +821,21 @@ public TransactionRuleInfo type(TypeEnum type) { } /** - * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. - * @return type The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. + * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines + * if a rule blocks transactions based on individual characteristics or accumulates data. Possible + * values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add + * the amount or number of transactions for the lifetime of a payment instrument, and then decline + * a transaction when the specified limits are met. * **velocity**: add the amount or number of + * transactions based on a specified time interval, and then decline a transaction when the + * specified limits are met. + * + * @return type The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), + * which defines if a rule blocks transactions based on individual characteristics or + * accumulates data. Possible values: * **blockList**: decline a transaction when the + * conditions are met. * **maxUsage**: add the amount or number of transactions for the + * lifetime of a payment instrument, and then decline a transaction when the specified limits + * are met. * **velocity**: add the amount or number of transactions based on a specified time + * interval, and then decline a transaction when the specified limits are met. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -667,9 +844,21 @@ public TypeEnum getType() { } /** - * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. + * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines + * if a rule blocks transactions based on individual characteristics or accumulates data. Possible + * values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add + * the amount or number of transactions for the lifetime of a payment instrument, and then decline + * a transaction when the specified limits are met. * **velocity**: add the amount or number of + * transactions based on a specified time interval, and then decline a transaction when the + * specified limits are met. * - * @param type The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. + * @param type The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), + * which defines if a rule blocks transactions based on individual characteristics or + * accumulates data. Possible values: * **blockList**: decline a transaction when the + * conditions are met. * **maxUsage**: add the amount or number of transactions for the + * lifetime of a payment instrument, and then decline a transaction when the specified limits + * are met. * **velocity**: add the amount or number of transactions based on a specified time + * interval, and then decline a transaction when the specified limits are met. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -677,9 +866,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this TransactionRuleInfo object is equal to o. - */ + /** Return true if this TransactionRuleInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -689,24 +876,37 @@ public boolean equals(Object o) { return false; } TransactionRuleInfo transactionRuleInfo = (TransactionRuleInfo) o; - return Objects.equals(this.aggregationLevel, transactionRuleInfo.aggregationLevel) && - Objects.equals(this.description, transactionRuleInfo.description) && - Objects.equals(this.endDate, transactionRuleInfo.endDate) && - Objects.equals(this.entityKey, transactionRuleInfo.entityKey) && - Objects.equals(this.interval, transactionRuleInfo.interval) && - Objects.equals(this.outcomeType, transactionRuleInfo.outcomeType) && - Objects.equals(this.reference, transactionRuleInfo.reference) && - Objects.equals(this.requestType, transactionRuleInfo.requestType) && - Objects.equals(this.ruleRestrictions, transactionRuleInfo.ruleRestrictions) && - Objects.equals(this.score, transactionRuleInfo.score) && - Objects.equals(this.startDate, transactionRuleInfo.startDate) && - Objects.equals(this.status, transactionRuleInfo.status) && - Objects.equals(this.type, transactionRuleInfo.type); + return Objects.equals(this.aggregationLevel, transactionRuleInfo.aggregationLevel) + && Objects.equals(this.description, transactionRuleInfo.description) + && Objects.equals(this.endDate, transactionRuleInfo.endDate) + && Objects.equals(this.entityKey, transactionRuleInfo.entityKey) + && Objects.equals(this.interval, transactionRuleInfo.interval) + && Objects.equals(this.outcomeType, transactionRuleInfo.outcomeType) + && Objects.equals(this.reference, transactionRuleInfo.reference) + && Objects.equals(this.requestType, transactionRuleInfo.requestType) + && Objects.equals(this.ruleRestrictions, transactionRuleInfo.ruleRestrictions) + && Objects.equals(this.score, transactionRuleInfo.score) + && Objects.equals(this.startDate, transactionRuleInfo.startDate) + && Objects.equals(this.status, transactionRuleInfo.status) + && Objects.equals(this.type, transactionRuleInfo.type); } @Override public int hashCode() { - return Objects.hash(aggregationLevel, description, endDate, entityKey, interval, outcomeType, reference, requestType, ruleRestrictions, score, startDate, status, type); + return Objects.hash( + aggregationLevel, + description, + endDate, + entityKey, + interval, + outcomeType, + reference, + requestType, + ruleRestrictions, + score, + startDate, + status, + type); } @Override @@ -731,8 +931,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -741,21 +940,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransactionRuleInfo given an JSON string * * @param jsonString JSON string * @return An instance of TransactionRuleInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionRuleInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TransactionRuleInfo */ public static TransactionRuleInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionRuleInfo.class); } -/** - * Convert an instance of TransactionRuleInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransactionRuleInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleInterval.java b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleInterval.java index 68b149ceb..e9ecdc45d 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleInterval.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleInterval.java @@ -2,32 +2,26 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.Duration; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * TransactionRuleInterval - */ +/** TransactionRuleInterval */ @JsonPropertyOrder({ TransactionRuleInterval.JSON_PROPERTY_DAY_OF_MONTH, TransactionRuleInterval.JSON_PROPERTY_DAY_OF_WEEK, @@ -36,16 +30,16 @@ TransactionRuleInterval.JSON_PROPERTY_TIME_ZONE, TransactionRuleInterval.JSON_PROPERTY_TYPE }) - public class TransactionRuleInterval { public static final String JSON_PROPERTY_DAY_OF_MONTH = "dayOfMonth"; private Integer dayOfMonth; /** - * The day of week, used when the `duration.unit` is **weeks**. If not provided, by default, this is set to **monday**. Possible values: **sunday**, **monday**, **tuesday**, **wednesday**, **thursday**, **friday**. + * The day of week, used when the `duration.unit` is **weeks**. If not provided, by + * default, this is set to **monday**. Possible values: **sunday**, **monday**, **tuesday**, + * **wednesday**, **thursday**, **friday**. */ public enum DayOfWeekEnum { - FRIDAY(String.valueOf("friday")), MONDAY(String.valueOf("monday")), @@ -65,7 +59,7 @@ public enum DayOfWeekEnum { private String value; DayOfWeekEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -86,7 +80,11 @@ public static DayOfWeekEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("DayOfWeekEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(DayOfWeekEnum.values())); + LOG.warning( + "DayOfWeekEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(DayOfWeekEnum.values())); return null; } } @@ -104,10 +102,19 @@ public static DayOfWeekEnum fromValue(String value) { private String timeZone; /** - * The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the rule conditions and limits apply, and how often counters are reset. Possible values: * **perTransaction**: conditions are evaluated and the counters are reset for every transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every first day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the lifetime of the payment instrument. * **rolling**: conditions are applied and the counters are reset based on a `duration`. If the reset date and time are not provided, Adyen applies the default reset time similar to fixed intervals. For example, if the duration is every two weeks, the counter resets every third Monday at 00:00:00 CET. * **sliding**: conditions are applied and the counters are reset based on the current time and a `duration` that you specify. + * The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during + * which the rule conditions and limits apply, and how often counters are reset. Possible values: + * * **perTransaction**: conditions are evaluated and the counters are reset for every + * transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the + * counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every first + * day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the lifetime of the + * payment instrument. * **rolling**: conditions are applied and the counters are reset based on a + * `duration`. If the reset date and time are not provided, Adyen applies the default + * reset time similar to fixed intervals. For example, if the duration is every two weeks, the + * counter resets every third Monday at 00:00:00 CET. * **sliding**: conditions are applied and + * the counters are reset based on the current time and a `duration` that you specify. */ public enum TypeEnum { - DAILY(String.valueOf("daily")), LIFETIME(String.valueOf("lifetime")), @@ -127,7 +134,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -148,7 +155,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -156,13 +167,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public TransactionRuleInterval() { - } + public TransactionRuleInterval() {} /** - * The day of month, used when the `duration.unit` is **months**. If not provided, by default, this is set to **1**, the first day of the month. + * The day of month, used when the `duration.unit` is **months**. If not provided, by + * default, this is set to **1**, the first day of the month. * - * @param dayOfMonth The day of month, used when the `duration.unit` is **months**. If not provided, by default, this is set to **1**, the first day of the month. + * @param dayOfMonth The day of month, used when the `duration.unit` is **months**. If + * not provided, by default, this is set to **1**, the first day of the month. * @return the current {@code TransactionRuleInterval} instance, allowing for method chaining */ public TransactionRuleInterval dayOfMonth(Integer dayOfMonth) { @@ -171,8 +183,11 @@ public TransactionRuleInterval dayOfMonth(Integer dayOfMonth) { } /** - * The day of month, used when the `duration.unit` is **months**. If not provided, by default, this is set to **1**, the first day of the month. - * @return dayOfMonth The day of month, used when the `duration.unit` is **months**. If not provided, by default, this is set to **1**, the first day of the month. + * The day of month, used when the `duration.unit` is **months**. If not provided, by + * default, this is set to **1**, the first day of the month. + * + * @return dayOfMonth The day of month, used when the `duration.unit` is **months**. If + * not provided, by default, this is set to **1**, the first day of the month. */ @JsonProperty(JSON_PROPERTY_DAY_OF_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,9 +196,11 @@ public Integer getDayOfMonth() { } /** - * The day of month, used when the `duration.unit` is **months**. If not provided, by default, this is set to **1**, the first day of the month. + * The day of month, used when the `duration.unit` is **months**. If not provided, by + * default, this is set to **1**, the first day of the month. * - * @param dayOfMonth The day of month, used when the `duration.unit` is **months**. If not provided, by default, this is set to **1**, the first day of the month. + * @param dayOfMonth The day of month, used when the `duration.unit` is **months**. If + * not provided, by default, this is set to **1**, the first day of the month. */ @JsonProperty(JSON_PROPERTY_DAY_OF_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,9 +209,13 @@ public void setDayOfMonth(Integer dayOfMonth) { } /** - * The day of week, used when the `duration.unit` is **weeks**. If not provided, by default, this is set to **monday**. Possible values: **sunday**, **monday**, **tuesday**, **wednesday**, **thursday**, **friday**. + * The day of week, used when the `duration.unit` is **weeks**. If not provided, by + * default, this is set to **monday**. Possible values: **sunday**, **monday**, **tuesday**, + * **wednesday**, **thursday**, **friday**. * - * @param dayOfWeek The day of week, used when the `duration.unit` is **weeks**. If not provided, by default, this is set to **monday**. Possible values: **sunday**, **monday**, **tuesday**, **wednesday**, **thursday**, **friday**. + * @param dayOfWeek The day of week, used when the `duration.unit` is **weeks**. If not + * provided, by default, this is set to **monday**. Possible values: **sunday**, **monday**, + * **tuesday**, **wednesday**, **thursday**, **friday**. * @return the current {@code TransactionRuleInterval} instance, allowing for method chaining */ public TransactionRuleInterval dayOfWeek(DayOfWeekEnum dayOfWeek) { @@ -203,8 +224,13 @@ public TransactionRuleInterval dayOfWeek(DayOfWeekEnum dayOfWeek) { } /** - * The day of week, used when the `duration.unit` is **weeks**. If not provided, by default, this is set to **monday**. Possible values: **sunday**, **monday**, **tuesday**, **wednesday**, **thursday**, **friday**. - * @return dayOfWeek The day of week, used when the `duration.unit` is **weeks**. If not provided, by default, this is set to **monday**. Possible values: **sunday**, **monday**, **tuesday**, **wednesday**, **thursday**, **friday**. + * The day of week, used when the `duration.unit` is **weeks**. If not provided, by + * default, this is set to **monday**. Possible values: **sunday**, **monday**, **tuesday**, + * **wednesday**, **thursday**, **friday**. + * + * @return dayOfWeek The day of week, used when the `duration.unit` is **weeks**. If not + * provided, by default, this is set to **monday**. Possible values: **sunday**, **monday**, + * **tuesday**, **wednesday**, **thursday**, **friday**. */ @JsonProperty(JSON_PROPERTY_DAY_OF_WEEK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -213,9 +239,13 @@ public DayOfWeekEnum getDayOfWeek() { } /** - * The day of week, used when the `duration.unit` is **weeks**. If not provided, by default, this is set to **monday**. Possible values: **sunday**, **monday**, **tuesday**, **wednesday**, **thursday**, **friday**. + * The day of week, used when the `duration.unit` is **weeks**. If not provided, by + * default, this is set to **monday**. Possible values: **sunday**, **monday**, **tuesday**, + * **wednesday**, **thursday**, **friday**. * - * @param dayOfWeek The day of week, used when the `duration.unit` is **weeks**. If not provided, by default, this is set to **monday**. Possible values: **sunday**, **monday**, **tuesday**, **wednesday**, **thursday**, **friday**. + * @param dayOfWeek The day of week, used when the `duration.unit` is **weeks**. If not + * provided, by default, this is set to **monday**. Possible values: **sunday**, **monday**, + * **tuesday**, **wednesday**, **thursday**, **friday**. */ @JsonProperty(JSON_PROPERTY_DAY_OF_WEEK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -226,7 +256,7 @@ public void setDayOfWeek(DayOfWeekEnum dayOfWeek) { /** * duration * - * @param duration + * @param duration * @return the current {@code TransactionRuleInterval} instance, allowing for method chaining */ public TransactionRuleInterval duration(Duration duration) { @@ -236,7 +266,8 @@ public TransactionRuleInterval duration(Duration duration) { /** * Get duration - * @return duration + * + * @return duration */ @JsonProperty(JSON_PROPERTY_DURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -247,7 +278,7 @@ public Duration getDuration() { /** * duration * - * @param duration + * @param duration */ @JsonProperty(JSON_PROPERTY_DURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -256,9 +287,12 @@ public void setDuration(Duration duration) { } /** - * The time of day, in **hh:mm:ss** format, used when the `duration.unit` is **hours**. If not provided, by default, this is set to **00:00:00**. + * The time of day, in **hh:mm:ss** format, used when the `duration.unit` is **hours**. + * If not provided, by default, this is set to **00:00:00**. * - * @param timeOfDay The time of day, in **hh:mm:ss** format, used when the `duration.unit` is **hours**. If not provided, by default, this is set to **00:00:00**. + * @param timeOfDay The time of day, in **hh:mm:ss** format, used when the + * `duration.unit` is **hours**. If not provided, by default, this is set to + * **00:00:00**. * @return the current {@code TransactionRuleInterval} instance, allowing for method chaining */ public TransactionRuleInterval timeOfDay(String timeOfDay) { @@ -267,8 +301,12 @@ public TransactionRuleInterval timeOfDay(String timeOfDay) { } /** - * The time of day, in **hh:mm:ss** format, used when the `duration.unit` is **hours**. If not provided, by default, this is set to **00:00:00**. - * @return timeOfDay The time of day, in **hh:mm:ss** format, used when the `duration.unit` is **hours**. If not provided, by default, this is set to **00:00:00**. + * The time of day, in **hh:mm:ss** format, used when the `duration.unit` is **hours**. + * If not provided, by default, this is set to **00:00:00**. + * + * @return timeOfDay The time of day, in **hh:mm:ss** format, used when the + * `duration.unit` is **hours**. If not provided, by default, this is set to + * **00:00:00**. */ @JsonProperty(JSON_PROPERTY_TIME_OF_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -277,9 +315,12 @@ public String getTimeOfDay() { } /** - * The time of day, in **hh:mm:ss** format, used when the `duration.unit` is **hours**. If not provided, by default, this is set to **00:00:00**. + * The time of day, in **hh:mm:ss** format, used when the `duration.unit` is **hours**. + * If not provided, by default, this is set to **00:00:00**. * - * @param timeOfDay The time of day, in **hh:mm:ss** format, used when the `duration.unit` is **hours**. If not provided, by default, this is set to **00:00:00**. + * @param timeOfDay The time of day, in **hh:mm:ss** format, used when the + * `duration.unit` is **hours**. If not provided, by default, this is set to + * **00:00:00**. */ @JsonProperty(JSON_PROPERTY_TIME_OF_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -288,9 +329,11 @@ public void setTimeOfDay(String timeOfDay) { } /** - * The [time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For example, **Europe/Amsterdam**. By default, this is set to **UTC**. + * The [time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For example, + * **Europe/Amsterdam**. By default, this is set to **UTC**. * - * @param timeZone The [time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For example, **Europe/Amsterdam**. By default, this is set to **UTC**. + * @param timeZone The [time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * For example, **Europe/Amsterdam**. By default, this is set to **UTC**. * @return the current {@code TransactionRuleInterval} instance, allowing for method chaining */ public TransactionRuleInterval timeZone(String timeZone) { @@ -299,8 +342,11 @@ public TransactionRuleInterval timeZone(String timeZone) { } /** - * The [time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For example, **Europe/Amsterdam**. By default, this is set to **UTC**. - * @return timeZone The [time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For example, **Europe/Amsterdam**. By default, this is set to **UTC**. + * The [time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For example, + * **Europe/Amsterdam**. By default, this is set to **UTC**. + * + * @return timeZone The [time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * For example, **Europe/Amsterdam**. By default, this is set to **UTC**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -309,9 +355,11 @@ public String getTimeZone() { } /** - * The [time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For example, **Europe/Amsterdam**. By default, this is set to **UTC**. + * The [time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For example, + * **Europe/Amsterdam**. By default, this is set to **UTC**. * - * @param timeZone The [time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For example, **Europe/Amsterdam**. By default, this is set to **UTC**. + * @param timeZone The [time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * For example, **Europe/Amsterdam**. By default, this is set to **UTC**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -320,9 +368,31 @@ public void setTimeZone(String timeZone) { } /** - * The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the rule conditions and limits apply, and how often counters are reset. Possible values: * **perTransaction**: conditions are evaluated and the counters are reset for every transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every first day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the lifetime of the payment instrument. * **rolling**: conditions are applied and the counters are reset based on a `duration`. If the reset date and time are not provided, Adyen applies the default reset time similar to fixed intervals. For example, if the duration is every two weeks, the counter resets every third Monday at 00:00:00 CET. * **sliding**: conditions are applied and the counters are reset based on the current time and a `duration` that you specify. + * The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during + * which the rule conditions and limits apply, and how often counters are reset. Possible values: + * * **perTransaction**: conditions are evaluated and the counters are reset for every + * transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the + * counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every first + * day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the lifetime of the + * payment instrument. * **rolling**: conditions are applied and the counters are reset based on a + * `duration`. If the reset date and time are not provided, Adyen applies the default + * reset time similar to fixed intervals. For example, if the duration is every two weeks, the + * counter resets every third Monday at 00:00:00 CET. * **sliding**: conditions are applied and + * the counters are reset based on the current time and a `duration` that you specify. * - * @param type The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the rule conditions and limits apply, and how often counters are reset. Possible values: * **perTransaction**: conditions are evaluated and the counters are reset for every transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every first day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the lifetime of the payment instrument. * **rolling**: conditions are applied and the counters are reset based on a `duration`. If the reset date and time are not provided, Adyen applies the default reset time similar to fixed intervals. For example, if the duration is every two weeks, the counter resets every third Monday at 00:00:00 CET. * **sliding**: conditions are applied and the counters are reset based on the current time and a `duration` that you specify. + * @param type The [type of + * interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the + * rule conditions and limits apply, and how often counters are reset. Possible values: * + * **perTransaction**: conditions are evaluated and the counters are reset for every + * transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the + * counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every + * first day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the + * lifetime of the payment instrument. * **rolling**: conditions are applied and the counters + * are reset based on a `duration`. If the reset date and time are not provided, + * Adyen applies the default reset time similar to fixed intervals. For example, if the + * duration is every two weeks, the counter resets every third Monday at 00:00:00 CET. * + * **sliding**: conditions are applied and the counters are reset based on the current time + * and a `duration` that you specify. * @return the current {@code TransactionRuleInterval} instance, allowing for method chaining */ public TransactionRuleInterval type(TypeEnum type) { @@ -331,8 +401,31 @@ public TransactionRuleInterval type(TypeEnum type) { } /** - * The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the rule conditions and limits apply, and how often counters are reset. Possible values: * **perTransaction**: conditions are evaluated and the counters are reset for every transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every first day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the lifetime of the payment instrument. * **rolling**: conditions are applied and the counters are reset based on a `duration`. If the reset date and time are not provided, Adyen applies the default reset time similar to fixed intervals. For example, if the duration is every two weeks, the counter resets every third Monday at 00:00:00 CET. * **sliding**: conditions are applied and the counters are reset based on the current time and a `duration` that you specify. - * @return type The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the rule conditions and limits apply, and how often counters are reset. Possible values: * **perTransaction**: conditions are evaluated and the counters are reset for every transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every first day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the lifetime of the payment instrument. * **rolling**: conditions are applied and the counters are reset based on a `duration`. If the reset date and time are not provided, Adyen applies the default reset time similar to fixed intervals. For example, if the duration is every two weeks, the counter resets every third Monday at 00:00:00 CET. * **sliding**: conditions are applied and the counters are reset based on the current time and a `duration` that you specify. + * The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during + * which the rule conditions and limits apply, and how often counters are reset. Possible values: + * * **perTransaction**: conditions are evaluated and the counters are reset for every + * transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the + * counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every first + * day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the lifetime of the + * payment instrument. * **rolling**: conditions are applied and the counters are reset based on a + * `duration`. If the reset date and time are not provided, Adyen applies the default + * reset time similar to fixed intervals. For example, if the duration is every two weeks, the + * counter resets every third Monday at 00:00:00 CET. * **sliding**: conditions are applied and + * the counters are reset based on the current time and a `duration` that you specify. + * + * @return type The [type of + * interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the + * rule conditions and limits apply, and how often counters are reset. Possible values: * + * **perTransaction**: conditions are evaluated and the counters are reset for every + * transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the + * counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every + * first day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the + * lifetime of the payment instrument. * **rolling**: conditions are applied and the counters + * are reset based on a `duration`. If the reset date and time are not provided, + * Adyen applies the default reset time similar to fixed intervals. For example, if the + * duration is every two weeks, the counter resets every third Monday at 00:00:00 CET. * + * **sliding**: conditions are applied and the counters are reset based on the current time + * and a `duration` that you specify. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -341,9 +434,31 @@ public TypeEnum getType() { } /** - * The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the rule conditions and limits apply, and how often counters are reset. Possible values: * **perTransaction**: conditions are evaluated and the counters are reset for every transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every first day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the lifetime of the payment instrument. * **rolling**: conditions are applied and the counters are reset based on a `duration`. If the reset date and time are not provided, Adyen applies the default reset time similar to fixed intervals. For example, if the duration is every two weeks, the counter resets every third Monday at 00:00:00 CET. * **sliding**: conditions are applied and the counters are reset based on the current time and a `duration` that you specify. + * The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during + * which the rule conditions and limits apply, and how often counters are reset. Possible values: + * * **perTransaction**: conditions are evaluated and the counters are reset for every + * transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the + * counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every first + * day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the lifetime of the + * payment instrument. * **rolling**: conditions are applied and the counters are reset based on a + * `duration`. If the reset date and time are not provided, Adyen applies the default + * reset time similar to fixed intervals. For example, if the duration is every two weeks, the + * counter resets every third Monday at 00:00:00 CET. * **sliding**: conditions are applied and + * the counters are reset based on the current time and a `duration` that you specify. * - * @param type The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the rule conditions and limits apply, and how often counters are reset. Possible values: * **perTransaction**: conditions are evaluated and the counters are reset for every transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every first day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the lifetime of the payment instrument. * **rolling**: conditions are applied and the counters are reset based on a `duration`. If the reset date and time are not provided, Adyen applies the default reset time similar to fixed intervals. For example, if the duration is every two weeks, the counter resets every third Monday at 00:00:00 CET. * **sliding**: conditions are applied and the counters are reset based on the current time and a `duration` that you specify. + * @param type The [type of + * interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the + * rule conditions and limits apply, and how often counters are reset. Possible values: * + * **perTransaction**: conditions are evaluated and the counters are reset for every + * transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the + * counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every + * first day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the + * lifetime of the payment instrument. * **rolling**: conditions are applied and the counters + * are reset based on a `duration`. If the reset date and time are not provided, + * Adyen applies the default reset time similar to fixed intervals. For example, if the + * duration is every two weeks, the counter resets every third Monday at 00:00:00 CET. * + * **sliding**: conditions are applied and the counters are reset based on the current time + * and a `duration` that you specify. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -351,9 +466,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this TransactionRuleInterval object is equal to o. - */ + /** Return true if this TransactionRuleInterval object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -363,12 +476,12 @@ public boolean equals(Object o) { return false; } TransactionRuleInterval transactionRuleInterval = (TransactionRuleInterval) o; - return Objects.equals(this.dayOfMonth, transactionRuleInterval.dayOfMonth) && - Objects.equals(this.dayOfWeek, transactionRuleInterval.dayOfWeek) && - Objects.equals(this.duration, transactionRuleInterval.duration) && - Objects.equals(this.timeOfDay, transactionRuleInterval.timeOfDay) && - Objects.equals(this.timeZone, transactionRuleInterval.timeZone) && - Objects.equals(this.type, transactionRuleInterval.type); + return Objects.equals(this.dayOfMonth, transactionRuleInterval.dayOfMonth) + && Objects.equals(this.dayOfWeek, transactionRuleInterval.dayOfWeek) + && Objects.equals(this.duration, transactionRuleInterval.duration) + && Objects.equals(this.timeOfDay, transactionRuleInterval.timeOfDay) + && Objects.equals(this.timeZone, transactionRuleInterval.timeZone) + && Objects.equals(this.type, transactionRuleInterval.type); } @Override @@ -391,8 +504,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -401,21 +513,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransactionRuleInterval given an JSON string * * @param jsonString JSON string * @return An instance of TransactionRuleInterval - * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionRuleInterval + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TransactionRuleInterval */ public static TransactionRuleInterval fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionRuleInterval.class); } -/** - * Convert an instance of TransactionRuleInterval to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransactionRuleInterval to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleResponse.java b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleResponse.java index e4faf95a2..71abff1aa 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleResponse.java @@ -2,47 +2,33 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.TransactionRule; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TransactionRuleResponse - */ -@JsonPropertyOrder({ - TransactionRuleResponse.JSON_PROPERTY_TRANSACTION_RULE -}) - +/** TransactionRuleResponse */ +@JsonPropertyOrder({TransactionRuleResponse.JSON_PROPERTY_TRANSACTION_RULE}) public class TransactionRuleResponse { public static final String JSON_PROPERTY_TRANSACTION_RULE = "transactionRule"; private TransactionRule transactionRule; - public TransactionRuleResponse() { - } + public TransactionRuleResponse() {} /** * transactionRule * - * @param transactionRule + * @param transactionRule * @return the current {@code TransactionRuleResponse} instance, allowing for method chaining */ public TransactionRuleResponse transactionRule(TransactionRule transactionRule) { @@ -52,7 +38,8 @@ public TransactionRuleResponse transactionRule(TransactionRule transactionRule) /** * Get transactionRule - * @return transactionRule + * + * @return transactionRule */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,7 +50,7 @@ public TransactionRule getTransactionRule() { /** * transactionRule * - * @param transactionRule + * @param transactionRule */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,9 +58,7 @@ public void setTransactionRule(TransactionRule transactionRule) { this.transactionRule = transactionRule; } - /** - * Return true if this TransactionRuleResponse object is equal to o. - */ + /** Return true if this TransactionRuleResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -101,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -111,21 +95,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransactionRuleResponse given an JSON string * * @param jsonString JSON string * @return An instance of TransactionRuleResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionRuleResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TransactionRuleResponse */ public static TransactionRuleResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionRuleResponse.class); } -/** - * Convert an instance of TransactionRuleResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransactionRuleResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleRestrictions.java b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleRestrictions.java index d18d8d687..82b143bc8 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleRestrictions.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleRestrictions.java @@ -2,56 +2,22 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.ActiveNetworkTokensRestriction; -import com.adyen.model.balanceplatform.BrandVariantsRestriction; -import com.adyen.model.balanceplatform.CounterpartyBankRestriction; -import com.adyen.model.balanceplatform.CounterpartyTypesRestriction; -import com.adyen.model.balanceplatform.CountriesRestriction; -import com.adyen.model.balanceplatform.DayOfWeekRestriction; -import com.adyen.model.balanceplatform.DifferentCurrenciesRestriction; -import com.adyen.model.balanceplatform.EntryModesRestriction; -import com.adyen.model.balanceplatform.InternationalTransactionRestriction; -import com.adyen.model.balanceplatform.MatchingTransactionsRestriction; -import com.adyen.model.balanceplatform.MatchingValuesRestriction; -import com.adyen.model.balanceplatform.MccsRestriction; -import com.adyen.model.balanceplatform.MerchantNamesRestriction; -import com.adyen.model.balanceplatform.MerchantsRestriction; -import com.adyen.model.balanceplatform.ProcessingTypesRestriction; -import com.adyen.model.balanceplatform.RiskScoresRestriction; -import com.adyen.model.balanceplatform.SameAmountRestriction; -import com.adyen.model.balanceplatform.SameCounterpartyRestriction; -import com.adyen.model.balanceplatform.SourceAccountTypesRestriction; -import com.adyen.model.balanceplatform.TimeOfDayRestriction; -import com.adyen.model.balanceplatform.TokenRequestorsRestriction; -import com.adyen.model.balanceplatform.TotalAmountRestriction; -import com.adyen.model.balanceplatform.WalletProviderAccountScoreRestriction; -import com.adyen.model.balanceplatform.WalletProviderDeviceScore; -import com.adyen.model.balanceplatform.WalletProviderDeviceType; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TransactionRuleRestrictions - */ +/** TransactionRuleRestrictions */ @JsonPropertyOrder({ TransactionRuleRestrictions.JSON_PROPERTY_ACTIVE_NETWORK_TOKENS, TransactionRuleRestrictions.JSON_PROPERTY_BRAND_VARIANTS, @@ -79,7 +45,6 @@ TransactionRuleRestrictions.JSON_PROPERTY_WALLET_PROVIDER_DEVICE_SCORE, TransactionRuleRestrictions.JSON_PROPERTY_WALLET_PROVIDER_DEVICE_TYPE }) - public class TransactionRuleRestrictions { public static final String JSON_PROPERTY_ACTIVE_NETWORK_TOKENS = "activeNetworkTokens"; private ActiveNetworkTokensRestriction activeNetworkTokens; @@ -132,7 +97,8 @@ public class TransactionRuleRestrictions { public static final String JSON_PROPERTY_SAME_AMOUNT_RESTRICTION = "sameAmountRestriction"; private SameAmountRestriction sameAmountRestriction; - public static final String JSON_PROPERTY_SAME_COUNTERPARTY_RESTRICTION = "sameCounterpartyRestriction"; + public static final String JSON_PROPERTY_SAME_COUNTERPARTY_RESTRICTION = + "sameCounterpartyRestriction"; private SameCounterpartyRestriction sameCounterpartyRestriction; public static final String JSON_PROPERTY_SOURCE_ACCOUNT_TYPES = "sourceAccountTypes"; @@ -147,32 +113,35 @@ public class TransactionRuleRestrictions { public static final String JSON_PROPERTY_TOTAL_AMOUNT = "totalAmount"; private TotalAmountRestriction totalAmount; - public static final String JSON_PROPERTY_WALLET_PROVIDER_ACCOUNT_SCORE = "walletProviderAccountScore"; + public static final String JSON_PROPERTY_WALLET_PROVIDER_ACCOUNT_SCORE = + "walletProviderAccountScore"; private WalletProviderAccountScoreRestriction walletProviderAccountScore; - public static final String JSON_PROPERTY_WALLET_PROVIDER_DEVICE_SCORE = "walletProviderDeviceScore"; + public static final String JSON_PROPERTY_WALLET_PROVIDER_DEVICE_SCORE = + "walletProviderDeviceScore"; private WalletProviderDeviceScore walletProviderDeviceScore; public static final String JSON_PROPERTY_WALLET_PROVIDER_DEVICE_TYPE = "walletProviderDeviceType"; private WalletProviderDeviceType walletProviderDeviceType; - public TransactionRuleRestrictions() { - } + public TransactionRuleRestrictions() {} /** * activeNetworkTokens * - * @param activeNetworkTokens + * @param activeNetworkTokens * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ - public TransactionRuleRestrictions activeNetworkTokens(ActiveNetworkTokensRestriction activeNetworkTokens) { + public TransactionRuleRestrictions activeNetworkTokens( + ActiveNetworkTokensRestriction activeNetworkTokens) { this.activeNetworkTokens = activeNetworkTokens; return this; } /** * Get activeNetworkTokens - * @return activeNetworkTokens + * + * @return activeNetworkTokens */ @JsonProperty(JSON_PROPERTY_ACTIVE_NETWORK_TOKENS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,7 +152,7 @@ public ActiveNetworkTokensRestriction getActiveNetworkTokens() { /** * activeNetworkTokens * - * @param activeNetworkTokens + * @param activeNetworkTokens */ @JsonProperty(JSON_PROPERTY_ACTIVE_NETWORK_TOKENS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,7 +163,7 @@ public void setActiveNetworkTokens(ActiveNetworkTokensRestriction activeNetworkT /** * brandVariants * - * @param brandVariants + * @param brandVariants * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ public TransactionRuleRestrictions brandVariants(BrandVariantsRestriction brandVariants) { @@ -204,7 +173,8 @@ public TransactionRuleRestrictions brandVariants(BrandVariantsRestriction brandV /** * Get brandVariants - * @return brandVariants + * + * @return brandVariants */ @JsonProperty(JSON_PROPERTY_BRAND_VARIANTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -215,7 +185,7 @@ public BrandVariantsRestriction getBrandVariants() { /** * brandVariants * - * @param brandVariants + * @param brandVariants */ @JsonProperty(JSON_PROPERTY_BRAND_VARIANTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -226,17 +196,19 @@ public void setBrandVariants(BrandVariantsRestriction brandVariants) { /** * counterpartyBank * - * @param counterpartyBank + * @param counterpartyBank * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ - public TransactionRuleRestrictions counterpartyBank(CounterpartyBankRestriction counterpartyBank) { + public TransactionRuleRestrictions counterpartyBank( + CounterpartyBankRestriction counterpartyBank) { this.counterpartyBank = counterpartyBank; return this; } /** * Get counterpartyBank - * @return counterpartyBank + * + * @return counterpartyBank */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY_BANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -247,7 +219,7 @@ public CounterpartyBankRestriction getCounterpartyBank() { /** * counterpartyBank * - * @param counterpartyBank + * @param counterpartyBank */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY_BANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -258,17 +230,19 @@ public void setCounterpartyBank(CounterpartyBankRestriction counterpartyBank) { /** * counterpartyTypes * - * @param counterpartyTypes + * @param counterpartyTypes * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ - public TransactionRuleRestrictions counterpartyTypes(CounterpartyTypesRestriction counterpartyTypes) { + public TransactionRuleRestrictions counterpartyTypes( + CounterpartyTypesRestriction counterpartyTypes) { this.counterpartyTypes = counterpartyTypes; return this; } /** * Get counterpartyTypes - * @return counterpartyTypes + * + * @return counterpartyTypes */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -279,7 +253,7 @@ public CounterpartyTypesRestriction getCounterpartyTypes() { /** * counterpartyTypes * - * @param counterpartyTypes + * @param counterpartyTypes */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -290,7 +264,7 @@ public void setCounterpartyTypes(CounterpartyTypesRestriction counterpartyTypes) /** * countries * - * @param countries + * @param countries * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ public TransactionRuleRestrictions countries(CountriesRestriction countries) { @@ -300,7 +274,8 @@ public TransactionRuleRestrictions countries(CountriesRestriction countries) { /** * Get countries - * @return countries + * + * @return countries */ @JsonProperty(JSON_PROPERTY_COUNTRIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -311,7 +286,7 @@ public CountriesRestriction getCountries() { /** * countries * - * @param countries + * @param countries */ @JsonProperty(JSON_PROPERTY_COUNTRIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -322,7 +297,7 @@ public void setCountries(CountriesRestriction countries) { /** * dayOfWeek * - * @param dayOfWeek + * @param dayOfWeek * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ public TransactionRuleRestrictions dayOfWeek(DayOfWeekRestriction dayOfWeek) { @@ -332,7 +307,8 @@ public TransactionRuleRestrictions dayOfWeek(DayOfWeekRestriction dayOfWeek) { /** * Get dayOfWeek - * @return dayOfWeek + * + * @return dayOfWeek */ @JsonProperty(JSON_PROPERTY_DAY_OF_WEEK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -343,7 +319,7 @@ public DayOfWeekRestriction getDayOfWeek() { /** * dayOfWeek * - * @param dayOfWeek + * @param dayOfWeek */ @JsonProperty(JSON_PROPERTY_DAY_OF_WEEK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -354,17 +330,19 @@ public void setDayOfWeek(DayOfWeekRestriction dayOfWeek) { /** * differentCurrencies * - * @param differentCurrencies + * @param differentCurrencies * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ - public TransactionRuleRestrictions differentCurrencies(DifferentCurrenciesRestriction differentCurrencies) { + public TransactionRuleRestrictions differentCurrencies( + DifferentCurrenciesRestriction differentCurrencies) { this.differentCurrencies = differentCurrencies; return this; } /** * Get differentCurrencies - * @return differentCurrencies + * + * @return differentCurrencies */ @JsonProperty(JSON_PROPERTY_DIFFERENT_CURRENCIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -375,7 +353,7 @@ public DifferentCurrenciesRestriction getDifferentCurrencies() { /** * differentCurrencies * - * @param differentCurrencies + * @param differentCurrencies */ @JsonProperty(JSON_PROPERTY_DIFFERENT_CURRENCIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -386,7 +364,7 @@ public void setDifferentCurrencies(DifferentCurrenciesRestriction differentCurre /** * entryModes * - * @param entryModes + * @param entryModes * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ public TransactionRuleRestrictions entryModes(EntryModesRestriction entryModes) { @@ -396,7 +374,8 @@ public TransactionRuleRestrictions entryModes(EntryModesRestriction entryModes) /** * Get entryModes - * @return entryModes + * + * @return entryModes */ @JsonProperty(JSON_PROPERTY_ENTRY_MODES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -407,7 +386,7 @@ public EntryModesRestriction getEntryModes() { /** * entryModes * - * @param entryModes + * @param entryModes */ @JsonProperty(JSON_PROPERTY_ENTRY_MODES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -418,17 +397,19 @@ public void setEntryModes(EntryModesRestriction entryModes) { /** * internationalTransaction * - * @param internationalTransaction + * @param internationalTransaction * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ - public TransactionRuleRestrictions internationalTransaction(InternationalTransactionRestriction internationalTransaction) { + public TransactionRuleRestrictions internationalTransaction( + InternationalTransactionRestriction internationalTransaction) { this.internationalTransaction = internationalTransaction; return this; } /** * Get internationalTransaction - * @return internationalTransaction + * + * @return internationalTransaction */ @JsonProperty(JSON_PROPERTY_INTERNATIONAL_TRANSACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -439,28 +420,31 @@ public InternationalTransactionRestriction getInternationalTransaction() { /** * internationalTransaction * - * @param internationalTransaction + * @param internationalTransaction */ @JsonProperty(JSON_PROPERTY_INTERNATIONAL_TRANSACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInternationalTransaction(InternationalTransactionRestriction internationalTransaction) { + public void setInternationalTransaction( + InternationalTransactionRestriction internationalTransaction) { this.internationalTransaction = internationalTransaction; } /** * matchingTransactions * - * @param matchingTransactions + * @param matchingTransactions * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ - public TransactionRuleRestrictions matchingTransactions(MatchingTransactionsRestriction matchingTransactions) { + public TransactionRuleRestrictions matchingTransactions( + MatchingTransactionsRestriction matchingTransactions) { this.matchingTransactions = matchingTransactions; return this; } /** * Get matchingTransactions - * @return matchingTransactions + * + * @return matchingTransactions */ @JsonProperty(JSON_PROPERTY_MATCHING_TRANSACTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -471,7 +455,7 @@ public MatchingTransactionsRestriction getMatchingTransactions() { /** * matchingTransactions * - * @param matchingTransactions + * @param matchingTransactions */ @JsonProperty(JSON_PROPERTY_MATCHING_TRANSACTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -482,7 +466,7 @@ public void setMatchingTransactions(MatchingTransactionsRestriction matchingTran /** * matchingValues * - * @param matchingValues + * @param matchingValues * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ public TransactionRuleRestrictions matchingValues(MatchingValuesRestriction matchingValues) { @@ -492,7 +476,8 @@ public TransactionRuleRestrictions matchingValues(MatchingValuesRestriction matc /** * Get matchingValues - * @return matchingValues + * + * @return matchingValues */ @JsonProperty(JSON_PROPERTY_MATCHING_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -503,7 +488,7 @@ public MatchingValuesRestriction getMatchingValues() { /** * matchingValues * - * @param matchingValues + * @param matchingValues */ @JsonProperty(JSON_PROPERTY_MATCHING_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -514,7 +499,7 @@ public void setMatchingValues(MatchingValuesRestriction matchingValues) { /** * mccs * - * @param mccs + * @param mccs * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ public TransactionRuleRestrictions mccs(MccsRestriction mccs) { @@ -524,7 +509,8 @@ public TransactionRuleRestrictions mccs(MccsRestriction mccs) { /** * Get mccs - * @return mccs + * + * @return mccs */ @JsonProperty(JSON_PROPERTY_MCCS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -535,7 +521,7 @@ public MccsRestriction getMccs() { /** * mccs * - * @param mccs + * @param mccs */ @JsonProperty(JSON_PROPERTY_MCCS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -546,7 +532,7 @@ public void setMccs(MccsRestriction mccs) { /** * merchantNames * - * @param merchantNames + * @param merchantNames * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ public TransactionRuleRestrictions merchantNames(MerchantNamesRestriction merchantNames) { @@ -556,7 +542,8 @@ public TransactionRuleRestrictions merchantNames(MerchantNamesRestriction mercha /** * Get merchantNames - * @return merchantNames + * + * @return merchantNames */ @JsonProperty(JSON_PROPERTY_MERCHANT_NAMES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -567,7 +554,7 @@ public MerchantNamesRestriction getMerchantNames() { /** * merchantNames * - * @param merchantNames + * @param merchantNames */ @JsonProperty(JSON_PROPERTY_MERCHANT_NAMES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -578,7 +565,7 @@ public void setMerchantNames(MerchantNamesRestriction merchantNames) { /** * merchants * - * @param merchants + * @param merchants * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ public TransactionRuleRestrictions merchants(MerchantsRestriction merchants) { @@ -588,7 +575,8 @@ public TransactionRuleRestrictions merchants(MerchantsRestriction merchants) { /** * Get merchants - * @return merchants + * + * @return merchants */ @JsonProperty(JSON_PROPERTY_MERCHANTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -599,7 +587,7 @@ public MerchantsRestriction getMerchants() { /** * merchants * - * @param merchants + * @param merchants */ @JsonProperty(JSON_PROPERTY_MERCHANTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -610,7 +598,7 @@ public void setMerchants(MerchantsRestriction merchants) { /** * processingTypes * - * @param processingTypes + * @param processingTypes * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ public TransactionRuleRestrictions processingTypes(ProcessingTypesRestriction processingTypes) { @@ -620,7 +608,8 @@ public TransactionRuleRestrictions processingTypes(ProcessingTypesRestriction pr /** * Get processingTypes - * @return processingTypes + * + * @return processingTypes */ @JsonProperty(JSON_PROPERTY_PROCESSING_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -631,7 +620,7 @@ public ProcessingTypesRestriction getProcessingTypes() { /** * processingTypes * - * @param processingTypes + * @param processingTypes */ @JsonProperty(JSON_PROPERTY_PROCESSING_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -642,7 +631,7 @@ public void setProcessingTypes(ProcessingTypesRestriction processingTypes) { /** * riskScores * - * @param riskScores + * @param riskScores * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ public TransactionRuleRestrictions riskScores(RiskScoresRestriction riskScores) { @@ -652,7 +641,8 @@ public TransactionRuleRestrictions riskScores(RiskScoresRestriction riskScores) /** * Get riskScores - * @return riskScores + * + * @return riskScores */ @JsonProperty(JSON_PROPERTY_RISK_SCORES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -663,7 +653,7 @@ public RiskScoresRestriction getRiskScores() { /** * riskScores * - * @param riskScores + * @param riskScores */ @JsonProperty(JSON_PROPERTY_RISK_SCORES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -674,17 +664,19 @@ public void setRiskScores(RiskScoresRestriction riskScores) { /** * sameAmountRestriction * - * @param sameAmountRestriction + * @param sameAmountRestriction * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ - public TransactionRuleRestrictions sameAmountRestriction(SameAmountRestriction sameAmountRestriction) { + public TransactionRuleRestrictions sameAmountRestriction( + SameAmountRestriction sameAmountRestriction) { this.sameAmountRestriction = sameAmountRestriction; return this; } /** * Get sameAmountRestriction - * @return sameAmountRestriction + * + * @return sameAmountRestriction */ @JsonProperty(JSON_PROPERTY_SAME_AMOUNT_RESTRICTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -695,7 +687,7 @@ public SameAmountRestriction getSameAmountRestriction() { /** * sameAmountRestriction * - * @param sameAmountRestriction + * @param sameAmountRestriction */ @JsonProperty(JSON_PROPERTY_SAME_AMOUNT_RESTRICTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -706,17 +698,19 @@ public void setSameAmountRestriction(SameAmountRestriction sameAmountRestriction /** * sameCounterpartyRestriction * - * @param sameCounterpartyRestriction + * @param sameCounterpartyRestriction * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ - public TransactionRuleRestrictions sameCounterpartyRestriction(SameCounterpartyRestriction sameCounterpartyRestriction) { + public TransactionRuleRestrictions sameCounterpartyRestriction( + SameCounterpartyRestriction sameCounterpartyRestriction) { this.sameCounterpartyRestriction = sameCounterpartyRestriction; return this; } /** * Get sameCounterpartyRestriction - * @return sameCounterpartyRestriction + * + * @return sameCounterpartyRestriction */ @JsonProperty(JSON_PROPERTY_SAME_COUNTERPARTY_RESTRICTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -727,28 +721,31 @@ public SameCounterpartyRestriction getSameCounterpartyRestriction() { /** * sameCounterpartyRestriction * - * @param sameCounterpartyRestriction + * @param sameCounterpartyRestriction */ @JsonProperty(JSON_PROPERTY_SAME_COUNTERPARTY_RESTRICTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSameCounterpartyRestriction(SameCounterpartyRestriction sameCounterpartyRestriction) { + public void setSameCounterpartyRestriction( + SameCounterpartyRestriction sameCounterpartyRestriction) { this.sameCounterpartyRestriction = sameCounterpartyRestriction; } /** * sourceAccountTypes * - * @param sourceAccountTypes + * @param sourceAccountTypes * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ - public TransactionRuleRestrictions sourceAccountTypes(SourceAccountTypesRestriction sourceAccountTypes) { + public TransactionRuleRestrictions sourceAccountTypes( + SourceAccountTypesRestriction sourceAccountTypes) { this.sourceAccountTypes = sourceAccountTypes; return this; } /** * Get sourceAccountTypes - * @return sourceAccountTypes + * + * @return sourceAccountTypes */ @JsonProperty(JSON_PROPERTY_SOURCE_ACCOUNT_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -759,7 +756,7 @@ public SourceAccountTypesRestriction getSourceAccountTypes() { /** * sourceAccountTypes * - * @param sourceAccountTypes + * @param sourceAccountTypes */ @JsonProperty(JSON_PROPERTY_SOURCE_ACCOUNT_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -770,7 +767,7 @@ public void setSourceAccountTypes(SourceAccountTypesRestriction sourceAccountTyp /** * timeOfDay * - * @param timeOfDay + * @param timeOfDay * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ public TransactionRuleRestrictions timeOfDay(TimeOfDayRestriction timeOfDay) { @@ -780,7 +777,8 @@ public TransactionRuleRestrictions timeOfDay(TimeOfDayRestriction timeOfDay) { /** * Get timeOfDay - * @return timeOfDay + * + * @return timeOfDay */ @JsonProperty(JSON_PROPERTY_TIME_OF_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -791,7 +789,7 @@ public TimeOfDayRestriction getTimeOfDay() { /** * timeOfDay * - * @param timeOfDay + * @param timeOfDay */ @JsonProperty(JSON_PROPERTY_TIME_OF_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -802,7 +800,7 @@ public void setTimeOfDay(TimeOfDayRestriction timeOfDay) { /** * tokenRequestors * - * @param tokenRequestors + * @param tokenRequestors * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ public TransactionRuleRestrictions tokenRequestors(TokenRequestorsRestriction tokenRequestors) { @@ -812,7 +810,8 @@ public TransactionRuleRestrictions tokenRequestors(TokenRequestorsRestriction to /** * Get tokenRequestors - * @return tokenRequestors + * + * @return tokenRequestors */ @JsonProperty(JSON_PROPERTY_TOKEN_REQUESTORS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -823,7 +822,7 @@ public TokenRequestorsRestriction getTokenRequestors() { /** * tokenRequestors * - * @param tokenRequestors + * @param tokenRequestors */ @JsonProperty(JSON_PROPERTY_TOKEN_REQUESTORS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -834,7 +833,7 @@ public void setTokenRequestors(TokenRequestorsRestriction tokenRequestors) { /** * totalAmount * - * @param totalAmount + * @param totalAmount * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ public TransactionRuleRestrictions totalAmount(TotalAmountRestriction totalAmount) { @@ -844,7 +843,8 @@ public TransactionRuleRestrictions totalAmount(TotalAmountRestriction totalAmoun /** * Get totalAmount - * @return totalAmount + * + * @return totalAmount */ @JsonProperty(JSON_PROPERTY_TOTAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -855,7 +855,7 @@ public TotalAmountRestriction getTotalAmount() { /** * totalAmount * - * @param totalAmount + * @param totalAmount */ @JsonProperty(JSON_PROPERTY_TOTAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -866,17 +866,19 @@ public void setTotalAmount(TotalAmountRestriction totalAmount) { /** * walletProviderAccountScore * - * @param walletProviderAccountScore + * @param walletProviderAccountScore * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ - public TransactionRuleRestrictions walletProviderAccountScore(WalletProviderAccountScoreRestriction walletProviderAccountScore) { + public TransactionRuleRestrictions walletProviderAccountScore( + WalletProviderAccountScoreRestriction walletProviderAccountScore) { this.walletProviderAccountScore = walletProviderAccountScore; return this; } /** * Get walletProviderAccountScore - * @return walletProviderAccountScore + * + * @return walletProviderAccountScore */ @JsonProperty(JSON_PROPERTY_WALLET_PROVIDER_ACCOUNT_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -887,28 +889,31 @@ public WalletProviderAccountScoreRestriction getWalletProviderAccountScore() { /** * walletProviderAccountScore * - * @param walletProviderAccountScore + * @param walletProviderAccountScore */ @JsonProperty(JSON_PROPERTY_WALLET_PROVIDER_ACCOUNT_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWalletProviderAccountScore(WalletProviderAccountScoreRestriction walletProviderAccountScore) { + public void setWalletProviderAccountScore( + WalletProviderAccountScoreRestriction walletProviderAccountScore) { this.walletProviderAccountScore = walletProviderAccountScore; } /** * walletProviderDeviceScore * - * @param walletProviderDeviceScore + * @param walletProviderDeviceScore * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ - public TransactionRuleRestrictions walletProviderDeviceScore(WalletProviderDeviceScore walletProviderDeviceScore) { + public TransactionRuleRestrictions walletProviderDeviceScore( + WalletProviderDeviceScore walletProviderDeviceScore) { this.walletProviderDeviceScore = walletProviderDeviceScore; return this; } /** * Get walletProviderDeviceScore - * @return walletProviderDeviceScore + * + * @return walletProviderDeviceScore */ @JsonProperty(JSON_PROPERTY_WALLET_PROVIDER_DEVICE_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -919,7 +924,7 @@ public WalletProviderDeviceScore getWalletProviderDeviceScore() { /** * walletProviderDeviceScore * - * @param walletProviderDeviceScore + * @param walletProviderDeviceScore */ @JsonProperty(JSON_PROPERTY_WALLET_PROVIDER_DEVICE_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -930,17 +935,19 @@ public void setWalletProviderDeviceScore(WalletProviderDeviceScore walletProvide /** * walletProviderDeviceType * - * @param walletProviderDeviceType + * @param walletProviderDeviceType * @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining */ - public TransactionRuleRestrictions walletProviderDeviceType(WalletProviderDeviceType walletProviderDeviceType) { + public TransactionRuleRestrictions walletProviderDeviceType( + WalletProviderDeviceType walletProviderDeviceType) { this.walletProviderDeviceType = walletProviderDeviceType; return this; } /** * Get walletProviderDeviceType - * @return walletProviderDeviceType + * + * @return walletProviderDeviceType */ @JsonProperty(JSON_PROPERTY_WALLET_PROVIDER_DEVICE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -951,7 +958,7 @@ public WalletProviderDeviceType getWalletProviderDeviceType() { /** * walletProviderDeviceType * - * @param walletProviderDeviceType + * @param walletProviderDeviceType */ @JsonProperty(JSON_PROPERTY_WALLET_PROVIDER_DEVICE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -959,9 +966,7 @@ public void setWalletProviderDeviceType(WalletProviderDeviceType walletProviderD this.walletProviderDeviceType = walletProviderDeviceType; } - /** - * Return true if this TransactionRuleRestrictions object is equal to o. - */ + /** Return true if this TransactionRuleRestrictions object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -971,74 +976,124 @@ public boolean equals(Object o) { return false; } TransactionRuleRestrictions transactionRuleRestrictions = (TransactionRuleRestrictions) o; - return Objects.equals(this.activeNetworkTokens, transactionRuleRestrictions.activeNetworkTokens) && - Objects.equals(this.brandVariants, transactionRuleRestrictions.brandVariants) && - Objects.equals(this.counterpartyBank, transactionRuleRestrictions.counterpartyBank) && - Objects.equals(this.counterpartyTypes, transactionRuleRestrictions.counterpartyTypes) && - Objects.equals(this.countries, transactionRuleRestrictions.countries) && - Objects.equals(this.dayOfWeek, transactionRuleRestrictions.dayOfWeek) && - Objects.equals(this.differentCurrencies, transactionRuleRestrictions.differentCurrencies) && - Objects.equals(this.entryModes, transactionRuleRestrictions.entryModes) && - Objects.equals(this.internationalTransaction, transactionRuleRestrictions.internationalTransaction) && - Objects.equals(this.matchingTransactions, transactionRuleRestrictions.matchingTransactions) && - Objects.equals(this.matchingValues, transactionRuleRestrictions.matchingValues) && - Objects.equals(this.mccs, transactionRuleRestrictions.mccs) && - Objects.equals(this.merchantNames, transactionRuleRestrictions.merchantNames) && - Objects.equals(this.merchants, transactionRuleRestrictions.merchants) && - Objects.equals(this.processingTypes, transactionRuleRestrictions.processingTypes) && - Objects.equals(this.riskScores, transactionRuleRestrictions.riskScores) && - Objects.equals(this.sameAmountRestriction, transactionRuleRestrictions.sameAmountRestriction) && - Objects.equals(this.sameCounterpartyRestriction, transactionRuleRestrictions.sameCounterpartyRestriction) && - Objects.equals(this.sourceAccountTypes, transactionRuleRestrictions.sourceAccountTypes) && - Objects.equals(this.timeOfDay, transactionRuleRestrictions.timeOfDay) && - Objects.equals(this.tokenRequestors, transactionRuleRestrictions.tokenRequestors) && - Objects.equals(this.totalAmount, transactionRuleRestrictions.totalAmount) && - Objects.equals(this.walletProviderAccountScore, transactionRuleRestrictions.walletProviderAccountScore) && - Objects.equals(this.walletProviderDeviceScore, transactionRuleRestrictions.walletProviderDeviceScore) && - Objects.equals(this.walletProviderDeviceType, transactionRuleRestrictions.walletProviderDeviceType); + return Objects.equals(this.activeNetworkTokens, transactionRuleRestrictions.activeNetworkTokens) + && Objects.equals(this.brandVariants, transactionRuleRestrictions.brandVariants) + && Objects.equals(this.counterpartyBank, transactionRuleRestrictions.counterpartyBank) + && Objects.equals(this.counterpartyTypes, transactionRuleRestrictions.counterpartyTypes) + && Objects.equals(this.countries, transactionRuleRestrictions.countries) + && Objects.equals(this.dayOfWeek, transactionRuleRestrictions.dayOfWeek) + && Objects.equals(this.differentCurrencies, transactionRuleRestrictions.differentCurrencies) + && Objects.equals(this.entryModes, transactionRuleRestrictions.entryModes) + && Objects.equals( + this.internationalTransaction, transactionRuleRestrictions.internationalTransaction) + && Objects.equals( + this.matchingTransactions, transactionRuleRestrictions.matchingTransactions) + && Objects.equals(this.matchingValues, transactionRuleRestrictions.matchingValues) + && Objects.equals(this.mccs, transactionRuleRestrictions.mccs) + && Objects.equals(this.merchantNames, transactionRuleRestrictions.merchantNames) + && Objects.equals(this.merchants, transactionRuleRestrictions.merchants) + && Objects.equals(this.processingTypes, transactionRuleRestrictions.processingTypes) + && Objects.equals(this.riskScores, transactionRuleRestrictions.riskScores) + && Objects.equals( + this.sameAmountRestriction, transactionRuleRestrictions.sameAmountRestriction) + && Objects.equals( + this.sameCounterpartyRestriction, + transactionRuleRestrictions.sameCounterpartyRestriction) + && Objects.equals(this.sourceAccountTypes, transactionRuleRestrictions.sourceAccountTypes) + && Objects.equals(this.timeOfDay, transactionRuleRestrictions.timeOfDay) + && Objects.equals(this.tokenRequestors, transactionRuleRestrictions.tokenRequestors) + && Objects.equals(this.totalAmount, transactionRuleRestrictions.totalAmount) + && Objects.equals( + this.walletProviderAccountScore, transactionRuleRestrictions.walletProviderAccountScore) + && Objects.equals( + this.walletProviderDeviceScore, transactionRuleRestrictions.walletProviderDeviceScore) + && Objects.equals( + this.walletProviderDeviceType, transactionRuleRestrictions.walletProviderDeviceType); } @Override public int hashCode() { - return Objects.hash(activeNetworkTokens, brandVariants, counterpartyBank, counterpartyTypes, countries, dayOfWeek, differentCurrencies, entryModes, internationalTransaction, matchingTransactions, matchingValues, mccs, merchantNames, merchants, processingTypes, riskScores, sameAmountRestriction, sameCounterpartyRestriction, sourceAccountTypes, timeOfDay, tokenRequestors, totalAmount, walletProviderAccountScore, walletProviderDeviceScore, walletProviderDeviceType); + return Objects.hash( + activeNetworkTokens, + brandVariants, + counterpartyBank, + counterpartyTypes, + countries, + dayOfWeek, + differentCurrencies, + entryModes, + internationalTransaction, + matchingTransactions, + matchingValues, + mccs, + merchantNames, + merchants, + processingTypes, + riskScores, + sameAmountRestriction, + sameCounterpartyRestriction, + sourceAccountTypes, + timeOfDay, + tokenRequestors, + totalAmount, + walletProviderAccountScore, + walletProviderDeviceScore, + walletProviderDeviceType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TransactionRuleRestrictions {\n"); - sb.append(" activeNetworkTokens: ").append(toIndentedString(activeNetworkTokens)).append("\n"); + sb.append(" activeNetworkTokens: ") + .append(toIndentedString(activeNetworkTokens)) + .append("\n"); sb.append(" brandVariants: ").append(toIndentedString(brandVariants)).append("\n"); sb.append(" counterpartyBank: ").append(toIndentedString(counterpartyBank)).append("\n"); sb.append(" counterpartyTypes: ").append(toIndentedString(counterpartyTypes)).append("\n"); sb.append(" countries: ").append(toIndentedString(countries)).append("\n"); sb.append(" dayOfWeek: ").append(toIndentedString(dayOfWeek)).append("\n"); - sb.append(" differentCurrencies: ").append(toIndentedString(differentCurrencies)).append("\n"); + sb.append(" differentCurrencies: ") + .append(toIndentedString(differentCurrencies)) + .append("\n"); sb.append(" entryModes: ").append(toIndentedString(entryModes)).append("\n"); - sb.append(" internationalTransaction: ").append(toIndentedString(internationalTransaction)).append("\n"); - sb.append(" matchingTransactions: ").append(toIndentedString(matchingTransactions)).append("\n"); + sb.append(" internationalTransaction: ") + .append(toIndentedString(internationalTransaction)) + .append("\n"); + sb.append(" matchingTransactions: ") + .append(toIndentedString(matchingTransactions)) + .append("\n"); sb.append(" matchingValues: ").append(toIndentedString(matchingValues)).append("\n"); sb.append(" mccs: ").append(toIndentedString(mccs)).append("\n"); sb.append(" merchantNames: ").append(toIndentedString(merchantNames)).append("\n"); sb.append(" merchants: ").append(toIndentedString(merchants)).append("\n"); sb.append(" processingTypes: ").append(toIndentedString(processingTypes)).append("\n"); sb.append(" riskScores: ").append(toIndentedString(riskScores)).append("\n"); - sb.append(" sameAmountRestriction: ").append(toIndentedString(sameAmountRestriction)).append("\n"); - sb.append(" sameCounterpartyRestriction: ").append(toIndentedString(sameCounterpartyRestriction)).append("\n"); + sb.append(" sameAmountRestriction: ") + .append(toIndentedString(sameAmountRestriction)) + .append("\n"); + sb.append(" sameCounterpartyRestriction: ") + .append(toIndentedString(sameCounterpartyRestriction)) + .append("\n"); sb.append(" sourceAccountTypes: ").append(toIndentedString(sourceAccountTypes)).append("\n"); sb.append(" timeOfDay: ").append(toIndentedString(timeOfDay)).append("\n"); sb.append(" tokenRequestors: ").append(toIndentedString(tokenRequestors)).append("\n"); sb.append(" totalAmount: ").append(toIndentedString(totalAmount)).append("\n"); - sb.append(" walletProviderAccountScore: ").append(toIndentedString(walletProviderAccountScore)).append("\n"); - sb.append(" walletProviderDeviceScore: ").append(toIndentedString(walletProviderDeviceScore)).append("\n"); - sb.append(" walletProviderDeviceType: ").append(toIndentedString(walletProviderDeviceType)).append("\n"); + sb.append(" walletProviderAccountScore: ") + .append(toIndentedString(walletProviderAccountScore)) + .append("\n"); + sb.append(" walletProviderDeviceScore: ") + .append(toIndentedString(walletProviderDeviceScore)) + .append("\n"); + sb.append(" walletProviderDeviceType: ") + .append(toIndentedString(walletProviderDeviceType)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1047,21 +1102,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransactionRuleRestrictions given an JSON string * * @param jsonString JSON string * @return An instance of TransactionRuleRestrictions - * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionRuleRestrictions + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TransactionRuleRestrictions */ - public static TransactionRuleRestrictions fromJson(String jsonString) throws JsonProcessingException { + public static TransactionRuleRestrictions fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionRuleRestrictions.class); } -/** - * Convert an instance of TransactionRuleRestrictions to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransactionRuleRestrictions to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransactionRulesResponse.java b/src/main/java/com/adyen/model/balanceplatform/TransactionRulesResponse.java index 9b2295fcd..cae4762b0 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransactionRulesResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransactionRulesResponse.java @@ -2,44 +2,30 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.TransactionRule; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * TransactionRulesResponse - */ -@JsonPropertyOrder({ - TransactionRulesResponse.JSON_PROPERTY_TRANSACTION_RULES -}) - +/** TransactionRulesResponse */ +@JsonPropertyOrder({TransactionRulesResponse.JSON_PROPERTY_TRANSACTION_RULES}) public class TransactionRulesResponse { public static final String JSON_PROPERTY_TRANSACTION_RULES = "transactionRules"; private List transactionRules; - public TransactionRulesResponse() { - } + public TransactionRulesResponse() {} /** * List of transaction rules. @@ -62,6 +48,7 @@ public TransactionRulesResponse addTransactionRulesItem(TransactionRule transact /** * List of transaction rules. + * * @return transactionRules List of transaction rules. */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULES) @@ -81,9 +68,7 @@ public void setTransactionRules(List transactionRules) { this.transactionRules = transactionRules; } - /** - * Return true if this TransactionRulesResponse object is equal to o. - */ + /** Return true if this TransactionRulesResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -111,8 +96,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -121,21 +105,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransactionRulesResponse given an JSON string * * @param jsonString JSON string * @return An instance of TransactionRulesResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionRulesResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TransactionRulesResponse */ - public static TransactionRulesResponse fromJson(String jsonString) throws JsonProcessingException { + public static TransactionRulesResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionRulesResponse.class); } -/** - * Convert an instance of TransactionRulesResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransactionRulesResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransferRoute.java b/src/main/java/com/adyen/model/balanceplatform/TransferRoute.java index 68f9b1ef5..723c0542e 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransferRoute.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransferRoute.java @@ -2,34 +2,28 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.TransferRouteRequirementsInner; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * TransferRoute - */ +/** TransferRoute */ @JsonPropertyOrder({ TransferRoute.JSON_PROPERTY_CATEGORY, TransferRoute.JSON_PROPERTY_COUNTRY, @@ -37,13 +31,13 @@ TransferRoute.JSON_PROPERTY_PRIORITY, TransferRoute.JSON_PROPERTY_REQUIREMENTS }) - public class TransferRoute { /** - * The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. + * The type of transfer. Possible values: - **bank**: Transfer to a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. */ public enum CategoryEnum { - BANK(String.valueOf("bank")), CARD(String.valueOf("card")), @@ -69,7 +63,7 @@ public enum CategoryEnum { private String value; CategoryEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -90,7 +84,11 @@ public static CategoryEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("CategoryEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CategoryEnum.values())); + LOG.warning( + "CategoryEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(CategoryEnum.values())); return null; } } @@ -105,10 +103,18 @@ public static CategoryEnum fromValue(String value) { private String currency; /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the + * fees that you have to pay. Possible values: * **regular**: for normal, low-value transactions. + * * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for + * high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this + * has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: + * for instant funds transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). */ public enum PriorityEnum { - CROSSBORDER(String.valueOf("crossBorder")), FAST(String.valueOf("fast")), @@ -126,7 +132,7 @@ public enum PriorityEnum { private String value; PriorityEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -147,7 +153,11 @@ public static PriorityEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PriorityEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PriorityEnum.values())); + LOG.warning( + "PriorityEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PriorityEnum.values())); return null; } } @@ -158,13 +168,16 @@ public static PriorityEnum fromValue(String value) { public static final String JSON_PROPERTY_REQUIREMENTS = "requirements"; private List requirements; - public TransferRoute() { - } + public TransferRoute() {} /** - * The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. + * The type of transfer. Possible values: - **bank**: Transfer to a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. * - * @param category The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. + * @param category The type of transfer. Possible values: - **bank**: Transfer to a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. * @return the current {@code TransferRoute} instance, allowing for method chaining */ public TransferRoute category(CategoryEnum category) { @@ -173,8 +186,13 @@ public TransferRoute category(CategoryEnum category) { } /** - * The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - * @return category The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. + * The type of transfer. Possible values: - **bank**: Transfer to a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. + * + * @return category The type of transfer. Possible values: - **bank**: Transfer to a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,9 +201,13 @@ public CategoryEnum getCategory() { } /** - * The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. + * The type of transfer. Possible values: - **bank**: Transfer to a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. * - * @param category The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. + * @param category The type of transfer. Possible values: - **bank**: Transfer to a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,9 +216,11 @@ public void setCategory(CategoryEnum category) { } /** - * The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**. + * The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or + * **NL**. * - * @param country The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**. + * @param country The two-character ISO-3166-1 alpha-2 country code of the counterparty. For + * example, **US** or **NL**. * @return the current {@code TransferRoute} instance, allowing for method chaining */ public TransferRoute country(String country) { @@ -205,8 +229,11 @@ public TransferRoute country(String country) { } /** - * The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**. - * @return country The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**. + * The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or + * **NL**. + * + * @return country The two-character ISO-3166-1 alpha-2 country code of the counterparty. For + * example, **US** or **NL**. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -215,9 +242,11 @@ public String getCountry() { } /** - * The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**. + * The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or + * **NL**. * - * @param country The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**. + * @param country The two-character ISO-3166-1 alpha-2 country code of the counterparty. For + * example, **US** or **NL**. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -228,7 +257,8 @@ public void setCountry(String country) { /** * The three-character ISO currency code of transfer. For example, **USD** or **EUR**. * - * @param currency The three-character ISO currency code of transfer. For example, **USD** or **EUR**. + * @param currency The three-character ISO currency code of transfer. For example, **USD** or + * **EUR**. * @return the current {@code TransferRoute} instance, allowing for method chaining */ public TransferRoute currency(String currency) { @@ -238,7 +268,9 @@ public TransferRoute currency(String currency) { /** * The three-character ISO currency code of transfer. For example, **USD** or **EUR**. - * @return currency The three-character ISO currency code of transfer. For example, **USD** or **EUR**. + * + * @return currency The three-character ISO currency code of transfer. For example, **USD** or + * **EUR**. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -249,7 +281,8 @@ public String getCurrency() { /** * The three-character ISO currency code of transfer. For example, **USD** or **EUR**. * - * @param currency The three-character ISO currency code of transfer. For example, **USD** or **EUR**. + * @param currency The three-character ISO currency code of transfer. For example, **USD** or + * **EUR**. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -258,9 +291,28 @@ public void setCurrency(String currency) { } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the + * fees that you have to pay. Possible values: * **regular**: for normal, low-value transactions. + * * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for + * high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this + * has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: + * for instant funds transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). * - * @param priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * @param priority The priority for the bank transfer. This sets the speed at which the transfer + * is sent and the fees that you have to pay. Possible values: * **regular**: for normal, + * low-value transactions. * **fast**: a faster way to transfer funds, but the fees are + * higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way + * to transfer funds, but this has the highest fees. Recommended for high-priority, high-value + * transactions. * **instant**: for instant funds transfers within the United States and in + * [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). * @return the current {@code TransferRoute} instance, allowing for method chaining */ public TransferRoute priority(PriorityEnum priority) { @@ -269,8 +321,28 @@ public TransferRoute priority(PriorityEnum priority) { } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). - * @return priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the + * fees that you have to pay. Possible values: * **regular**: for normal, low-value transactions. + * * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for + * high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this + * has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: + * for instant funds transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). + * + * @return priority The priority for the bank transfer. This sets the speed at which the transfer + * is sent and the fees that you have to pay. Possible values: * **regular**: for normal, + * low-value transactions. * **fast**: a faster way to transfer funds, but the fees are + * higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way + * to transfer funds, but this has the highest fees. Recommended for high-priority, high-value + * transactions. * **instant**: for instant funds transfers within the United States and in + * [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). */ @JsonProperty(JSON_PROPERTY_PRIORITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -279,9 +351,28 @@ public PriorityEnum getPriority() { } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the + * fees that you have to pay. Possible values: * **regular**: for normal, low-value transactions. + * * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for + * high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this + * has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: + * for instant funds transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). * - * @param priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * @param priority The priority for the bank transfer. This sets the speed at which the transfer + * is sent and the fees that you have to pay. Possible values: * **regular**: for normal, + * low-value transactions. * **fast**: a faster way to transfer funds, but the fees are + * higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way + * to transfer funds, but this has the highest fees. Recommended for high-priority, high-value + * transactions. * **instant**: for instant funds transfers within the United States and in + * [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). */ @JsonProperty(JSON_PROPERTY_PRIORITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -290,9 +381,15 @@ public void setPriority(PriorityEnum priority) { } /** - * A set of rules defined by clearing houses and banking partners. Your transfer request must adhere to these rules to ensure successful initiation of transfer. Based on the priority, one or more requirements may be returned. Each requirement is defined with a `type` and `description`. + * A set of rules defined by clearing houses and banking partners. Your transfer request must + * adhere to these rules to ensure successful initiation of transfer. Based on the priority, one + * or more requirements may be returned. Each requirement is defined with a `type` and + * `description`. * - * @param requirements A set of rules defined by clearing houses and banking partners. Your transfer request must adhere to these rules to ensure successful initiation of transfer. Based on the priority, one or more requirements may be returned. Each requirement is defined with a `type` and `description`. + * @param requirements A set of rules defined by clearing houses and banking partners. Your + * transfer request must adhere to these rules to ensure successful initiation of transfer. + * Based on the priority, one or more requirements may be returned. Each requirement is + * defined with a `type` and `description`. * @return the current {@code TransferRoute} instance, allowing for method chaining */ public TransferRoute requirements(List requirements) { @@ -309,8 +406,15 @@ public TransferRoute addRequirementsItem(TransferRouteRequirementsInner requirem } /** - * A set of rules defined by clearing houses and banking partners. Your transfer request must adhere to these rules to ensure successful initiation of transfer. Based on the priority, one or more requirements may be returned. Each requirement is defined with a `type` and `description`. - * @return requirements A set of rules defined by clearing houses and banking partners. Your transfer request must adhere to these rules to ensure successful initiation of transfer. Based on the priority, one or more requirements may be returned. Each requirement is defined with a `type` and `description`. + * A set of rules defined by clearing houses and banking partners. Your transfer request must + * adhere to these rules to ensure successful initiation of transfer. Based on the priority, one + * or more requirements may be returned. Each requirement is defined with a `type` and + * `description`. + * + * @return requirements A set of rules defined by clearing houses and banking partners. Your + * transfer request must adhere to these rules to ensure successful initiation of transfer. + * Based on the priority, one or more requirements may be returned. Each requirement is + * defined with a `type` and `description`. */ @JsonProperty(JSON_PROPERTY_REQUIREMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -319,9 +423,15 @@ public List getRequirements() { } /** - * A set of rules defined by clearing houses and banking partners. Your transfer request must adhere to these rules to ensure successful initiation of transfer. Based on the priority, one or more requirements may be returned. Each requirement is defined with a `type` and `description`. + * A set of rules defined by clearing houses and banking partners. Your transfer request must + * adhere to these rules to ensure successful initiation of transfer. Based on the priority, one + * or more requirements may be returned. Each requirement is defined with a `type` and + * `description`. * - * @param requirements A set of rules defined by clearing houses and banking partners. Your transfer request must adhere to these rules to ensure successful initiation of transfer. Based on the priority, one or more requirements may be returned. Each requirement is defined with a `type` and `description`. + * @param requirements A set of rules defined by clearing houses and banking partners. Your + * transfer request must adhere to these rules to ensure successful initiation of transfer. + * Based on the priority, one or more requirements may be returned. Each requirement is + * defined with a `type` and `description`. */ @JsonProperty(JSON_PROPERTY_REQUIREMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -329,9 +439,7 @@ public void setRequirements(List requirements) { this.requirements = requirements; } - /** - * Return true if this TransferRoute object is equal to o. - */ + /** Return true if this TransferRoute object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -341,11 +449,11 @@ public boolean equals(Object o) { return false; } TransferRoute transferRoute = (TransferRoute) o; - return Objects.equals(this.category, transferRoute.category) && - Objects.equals(this.country, transferRoute.country) && - Objects.equals(this.currency, transferRoute.currency) && - Objects.equals(this.priority, transferRoute.priority) && - Objects.equals(this.requirements, transferRoute.requirements); + return Objects.equals(this.category, transferRoute.category) + && Objects.equals(this.country, transferRoute.country) + && Objects.equals(this.currency, transferRoute.currency) + && Objects.equals(this.priority, transferRoute.priority) + && Objects.equals(this.requirements, transferRoute.requirements); } @Override @@ -367,8 +475,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -377,7 +484,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransferRoute given an JSON string * * @param jsonString JSON string @@ -387,11 +494,12 @@ private String toIndentedString(Object o) { public static TransferRoute fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferRoute.class); } -/** - * Convert an instance of TransferRoute to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransferRoute to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransferRouteRequest.java b/src/main/java/com/adyen/model/balanceplatform/TransferRouteRequest.java index 049cd4b8f..0809b00a2 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransferRouteRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransferRouteRequest.java @@ -2,34 +2,28 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.Counterparty; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * TransferRouteRequest - */ +/** TransferRouteRequest */ @JsonPropertyOrder({ TransferRouteRequest.JSON_PROPERTY_BALANCE_ACCOUNT_ID, TransferRouteRequest.JSON_PROPERTY_BALANCE_PLATFORM, @@ -39,7 +33,6 @@ TransferRouteRequest.JSON_PROPERTY_CURRENCY, TransferRouteRequest.JSON_PROPERTY_PRIORITIES }) - public class TransferRouteRequest { public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; @@ -48,10 +41,11 @@ public class TransferRouteRequest { private String balancePlatform; /** - * The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. + * The type of transfer. Possible values: - **bank**: Transfer to a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. */ public enum CategoryEnum { - BANK(String.valueOf("bank")); private static final Logger LOG = Logger.getLogger(CategoryEnum.class.getName()); @@ -59,7 +53,7 @@ public enum CategoryEnum { private String value; CategoryEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -80,7 +74,11 @@ public static CategoryEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("CategoryEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CategoryEnum.values())); + LOG.warning( + "CategoryEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(CategoryEnum.values())); return null; } } @@ -97,11 +95,8 @@ public static CategoryEnum fromValue(String value) { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; - /** - * Gets or Sets priorities - */ + /** Gets or Sets priorities */ public enum PrioritiesEnum { - CROSSBORDER(String.valueOf("crossBorder")), FAST(String.valueOf("fast")), @@ -119,7 +114,7 @@ public enum PrioritiesEnum { private String value; PrioritiesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -140,7 +135,11 @@ public static PrioritiesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PrioritiesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PrioritiesEnum.values())); + LOG.warning( + "PrioritiesEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PrioritiesEnum.values())); return null; } } @@ -148,13 +147,16 @@ public static PrioritiesEnum fromValue(String value) { public static final String JSON_PROPERTY_PRIORITIES = "priorities"; private List priorities; - public TransferRouteRequest() { - } + public TransferRouteRequest() {} /** - * The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). Required if `counterparty` is **transferInstrumentId**. + * The unique identifier of the source [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). + * Required if `counterparty` is **transferInstrumentId**. * - * @param balanceAccountId The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). Required if `counterparty` is **transferInstrumentId**. + * @param balanceAccountId The unique identifier of the source [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). + * Required if `counterparty` is **transferInstrumentId**. * @return the current {@code TransferRouteRequest} instance, allowing for method chaining */ public TransferRouteRequest balanceAccountId(String balanceAccountId) { @@ -163,8 +165,13 @@ public TransferRouteRequest balanceAccountId(String balanceAccountId) { } /** - * The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). Required if `counterparty` is **transferInstrumentId**. - * @return balanceAccountId The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). Required if `counterparty` is **transferInstrumentId**. + * The unique identifier of the source [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). + * Required if `counterparty` is **transferInstrumentId**. + * + * @return balanceAccountId The unique identifier of the source [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). + * Required if `counterparty` is **transferInstrumentId**. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,9 +180,13 @@ public String getBalanceAccountId() { } /** - * The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). Required if `counterparty` is **transferInstrumentId**. + * The unique identifier of the source [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). + * Required if `counterparty` is **transferInstrumentId**. * - * @param balanceAccountId The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). Required if `counterparty` is **transferInstrumentId**. + * @param balanceAccountId The unique identifier of the source [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). + * Required if `counterparty` is **transferInstrumentId**. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,7 +197,8 @@ public void setBalanceAccountId(String balanceAccountId) { /** * The unique identifier assigned to the balance platform associated with the account holder. * - * @param balancePlatform The unique identifier assigned to the balance platform associated with the account holder. + * @param balancePlatform The unique identifier assigned to the balance platform associated with + * the account holder. * @return the current {@code TransferRouteRequest} instance, allowing for method chaining */ public TransferRouteRequest balancePlatform(String balancePlatform) { @@ -196,7 +208,9 @@ public TransferRouteRequest balancePlatform(String balancePlatform) { /** * The unique identifier assigned to the balance platform associated with the account holder. - * @return balancePlatform The unique identifier assigned to the balance platform associated with the account holder. + * + * @return balancePlatform The unique identifier assigned to the balance platform associated with + * the account holder. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -207,7 +221,8 @@ public String getBalancePlatform() { /** * The unique identifier assigned to the balance platform associated with the account holder. * - * @param balancePlatform The unique identifier assigned to the balance platform associated with the account holder. + * @param balancePlatform The unique identifier assigned to the balance platform associated with + * the account holder. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -216,9 +231,13 @@ public void setBalancePlatform(String balancePlatform) { } /** - * The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. + * The type of transfer. Possible values: - **bank**: Transfer to a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. * - * @param category The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. + * @param category The type of transfer. Possible values: - **bank**: Transfer to a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. * @return the current {@code TransferRouteRequest} instance, allowing for method chaining */ public TransferRouteRequest category(CategoryEnum category) { @@ -227,8 +246,13 @@ public TransferRouteRequest category(CategoryEnum category) { } /** - * The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - * @return category The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. + * The type of transfer. Possible values: - **bank**: Transfer to a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. + * + * @return category The type of transfer. Possible values: - **bank**: Transfer to a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,9 +261,13 @@ public CategoryEnum getCategory() { } /** - * The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. + * The type of transfer. Possible values: - **bank**: Transfer to a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. * - * @param category The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. + * @param category The type of transfer. Possible values: - **bank**: Transfer to a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,7 +278,7 @@ public void setCategory(CategoryEnum category) { /** * counterparty * - * @param counterparty + * @param counterparty * @return the current {@code TransferRouteRequest} instance, allowing for method chaining */ public TransferRouteRequest counterparty(Counterparty counterparty) { @@ -260,7 +288,8 @@ public TransferRouteRequest counterparty(Counterparty counterparty) { /** * Get counterparty - * @return counterparty + * + * @return counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -271,7 +300,7 @@ public Counterparty getCounterparty() { /** * counterparty * - * @param counterparty + * @param counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -280,9 +309,13 @@ public void setCounterparty(Counterparty counterparty) { } /** - * The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**. > Either `counterparty` or `country` field must be provided in a transfer route request. + * The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or + * **NL**. > Either `counterparty` or `country` field must be provided in a + * transfer route request. * - * @param country The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**. > Either `counterparty` or `country` field must be provided in a transfer route request. + * @param country The two-character ISO-3166-1 alpha-2 country code of the counterparty. For + * example, **US** or **NL**. > Either `counterparty` or `country` + * field must be provided in a transfer route request. * @return the current {@code TransferRouteRequest} instance, allowing for method chaining */ public TransferRouteRequest country(String country) { @@ -291,8 +324,13 @@ public TransferRouteRequest country(String country) { } /** - * The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**. > Either `counterparty` or `country` field must be provided in a transfer route request. - * @return country The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**. > Either `counterparty` or `country` field must be provided in a transfer route request. + * The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or + * **NL**. > Either `counterparty` or `country` field must be provided in a + * transfer route request. + * + * @return country The two-character ISO-3166-1 alpha-2 country code of the counterparty. For + * example, **US** or **NL**. > Either `counterparty` or `country` + * field must be provided in a transfer route request. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -301,9 +339,13 @@ public String getCountry() { } /** - * The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**. > Either `counterparty` or `country` field must be provided in a transfer route request. + * The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or + * **NL**. > Either `counterparty` or `country` field must be provided in a + * transfer route request. * - * @param country The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**. > Either `counterparty` or `country` field must be provided in a transfer route request. + * @param country The two-character ISO-3166-1 alpha-2 country code of the counterparty. For + * example, **US** or **NL**. > Either `counterparty` or `country` + * field must be provided in a transfer route request. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -314,7 +356,8 @@ public void setCountry(String country) { /** * The three-character ISO currency code of transfer. For example, **USD** or **EUR**. * - * @param currency The three-character ISO currency code of transfer. For example, **USD** or **EUR**. + * @param currency The three-character ISO currency code of transfer. For example, **USD** or + * **EUR**. * @return the current {@code TransferRouteRequest} instance, allowing for method chaining */ public TransferRouteRequest currency(String currency) { @@ -324,7 +367,9 @@ public TransferRouteRequest currency(String currency) { /** * The three-character ISO currency code of transfer. For example, **USD** or **EUR**. - * @return currency The three-character ISO currency code of transfer. For example, **USD** or **EUR**. + * + * @return currency The three-character ISO currency code of transfer. For example, **USD** or + * **EUR**. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -335,7 +380,8 @@ public String getCurrency() { /** * The three-character ISO currency code of transfer. For example, **USD** or **EUR**. * - * @param currency The three-character ISO currency code of transfer. For example, **USD** or **EUR**. + * @param currency The three-character ISO currency code of transfer. For example, **USD** or + * **EUR**. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -344,9 +390,29 @@ public void setCurrency(String currency) { } /** - * The list of priorities for the bank transfer. Priorities set the speed at which the transfer is sent and the fees that you have to pay. Multiple values can be provided. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * The list of priorities for the bank transfer. Priorities set the speed at which the transfer is + * sent and the fees that you have to pay. Multiple values can be provided. Possible values: * + * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, + * but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the + * fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, + * high-value transactions. * **instant**: for instant funds transfers within the United States + * and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). * - * @param priorities The list of priorities for the bank transfer. Priorities set the speed at which the transfer is sent and the fees that you have to pay. Multiple values can be provided. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * @param priorities The list of priorities for the bank transfer. Priorities set the speed at + * which the transfer is sent and the fees that you have to pay. Multiple values can be + * provided. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a + * faster way to transfer funds, but the fees are higher. Recommended for high-priority, + * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the + * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for + * instant funds transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). * @return the current {@code TransferRouteRequest} instance, allowing for method chaining */ public TransferRouteRequest priorities(List priorities) { @@ -363,8 +429,29 @@ public TransferRouteRequest addPrioritiesItem(PrioritiesEnum prioritiesItem) { } /** - * The list of priorities for the bank transfer. Priorities set the speed at which the transfer is sent and the fees that you have to pay. Multiple values can be provided. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). - * @return priorities The list of priorities for the bank transfer. Priorities set the speed at which the transfer is sent and the fees that you have to pay. Multiple values can be provided. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * The list of priorities for the bank transfer. Priorities set the speed at which the transfer is + * sent and the fees that you have to pay. Multiple values can be provided. Possible values: * + * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, + * but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the + * fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, + * high-value transactions. * **instant**: for instant funds transfers within the United States + * and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). + * + * @return priorities The list of priorities for the bank transfer. Priorities set the speed at + * which the transfer is sent and the fees that you have to pay. Multiple values can be + * provided. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a + * faster way to transfer funds, but the fees are higher. Recommended for high-priority, + * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the + * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for + * instant funds transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). */ @JsonProperty(JSON_PROPERTY_PRIORITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -373,9 +460,29 @@ public List getPriorities() { } /** - * The list of priorities for the bank transfer. Priorities set the speed at which the transfer is sent and the fees that you have to pay. Multiple values can be provided. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * The list of priorities for the bank transfer. Priorities set the speed at which the transfer is + * sent and the fees that you have to pay. Multiple values can be provided. Possible values: * + * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, + * but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the + * fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, + * high-value transactions. * **instant**: for instant funds transfers within the United States + * and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). * - * @param priorities The list of priorities for the bank transfer. Priorities set the speed at which the transfer is sent and the fees that you have to pay. Multiple values can be provided. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * @param priorities The list of priorities for the bank transfer. Priorities set the speed at + * which the transfer is sent and the fees that you have to pay. Multiple values can be + * provided. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a + * faster way to transfer funds, but the fees are higher. Recommended for high-priority, + * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the + * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for + * instant funds transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). */ @JsonProperty(JSON_PROPERTY_PRIORITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -383,9 +490,7 @@ public void setPriorities(List priorities) { this.priorities = priorities; } - /** - * Return true if this TransferRouteRequest object is equal to o. - */ + /** Return true if this TransferRouteRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -395,18 +500,19 @@ public boolean equals(Object o) { return false; } TransferRouteRequest transferRouteRequest = (TransferRouteRequest) o; - return Objects.equals(this.balanceAccountId, transferRouteRequest.balanceAccountId) && - Objects.equals(this.balancePlatform, transferRouteRequest.balancePlatform) && - Objects.equals(this.category, transferRouteRequest.category) && - Objects.equals(this.counterparty, transferRouteRequest.counterparty) && - Objects.equals(this.country, transferRouteRequest.country) && - Objects.equals(this.currency, transferRouteRequest.currency) && - Objects.equals(this.priorities, transferRouteRequest.priorities); + return Objects.equals(this.balanceAccountId, transferRouteRequest.balanceAccountId) + && Objects.equals(this.balancePlatform, transferRouteRequest.balancePlatform) + && Objects.equals(this.category, transferRouteRequest.category) + && Objects.equals(this.counterparty, transferRouteRequest.counterparty) + && Objects.equals(this.country, transferRouteRequest.country) + && Objects.equals(this.currency, transferRouteRequest.currency) + && Objects.equals(this.priorities, transferRouteRequest.priorities); } @Override public int hashCode() { - return Objects.hash(balanceAccountId, balancePlatform, category, counterparty, country, currency, priorities); + return Objects.hash( + balanceAccountId, balancePlatform, category, counterparty, country, currency, priorities); } @Override @@ -425,8 +531,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -435,21 +540,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransferRouteRequest given an JSON string * * @param jsonString JSON string * @return An instance of TransferRouteRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to TransferRouteRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TransferRouteRequest */ public static TransferRouteRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferRouteRequest.class); } -/** - * Convert an instance of TransferRouteRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransferRouteRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransferRouteRequirementsInner.java b/src/main/java/com/adyen/model/balanceplatform/TransferRouteRequirementsInner.java index a0d3fe7df..0a86079f4 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransferRouteRequirementsInner.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransferRouteRequirementsInner.java @@ -2,55 +2,19 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.AdditionalBankIdentificationRequirement; -import com.adyen.model.balanceplatform.AddressRequirement; -import com.adyen.model.balanceplatform.AmountMinMaxRequirement; -import com.adyen.model.balanceplatform.AmountNonZeroDecimalsRequirement; -import com.adyen.model.balanceplatform.BankAccountIdentificationTypeRequirement; -import com.adyen.model.balanceplatform.IbanAccountIdentificationRequirement; -import com.adyen.model.balanceplatform.PaymentInstrumentRequirement; -import com.adyen.model.balanceplatform.USInstantPayoutAddressRequirement; -import com.adyen.model.balanceplatform.USInternationalAchAddressRequirement; -import com.adyen.model.balanceplatform.USInternationalAchPriorityRequirement; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -import com.fasterxml.jackson.core.type.TypeReference; - -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.core.Response; -import java.io.IOException; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; - import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -60,590 +24,687 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import jakarta.ws.rs.core.GenericType; +import java.io.IOException; +import java.util.*; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.logging.Level; +import java.util.logging.Logger; - -@JsonDeserialize(using = TransferRouteRequirementsInner.TransferRouteRequirementsInnerDeserializer.class) -@JsonSerialize(using = TransferRouteRequirementsInner.TransferRouteRequirementsInnerSerializer.class) +@JsonDeserialize( + using = TransferRouteRequirementsInner.TransferRouteRequirementsInnerDeserializer.class) +@JsonSerialize( + using = TransferRouteRequirementsInner.TransferRouteRequirementsInnerSerializer.class) public class TransferRouteRequirementsInner extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(TransferRouteRequirementsInner.class.getName()); + private static final Logger log = + Logger.getLogger(TransferRouteRequirementsInner.class.getName()); - public static class TransferRouteRequirementsInnerSerializer extends StdSerializer { - public TransferRouteRequirementsInnerSerializer(Class t) { - super(t); - } - - public TransferRouteRequirementsInnerSerializer() { - this(null); - } - - @Override - public void serialize(TransferRouteRequirementsInner value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } + public static class TransferRouteRequirementsInnerSerializer + extends StdSerializer { + public TransferRouteRequirementsInnerSerializer(Class t) { + super(t); } - public static class TransferRouteRequirementsInnerDeserializer extends StdDeserializer { - public TransferRouteRequirementsInnerDeserializer() { - this(TransferRouteRequirementsInner.class); - } - - public TransferRouteRequirementsInnerDeserializer(Class vc) { - super(vc); - } - - @Override - public TransferRouteRequirementsInner deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize AdditionalBankIdentificationRequirement - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(AdditionalBankIdentificationRequirement.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AdditionalBankIdentificationRequirement.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AdditionalBankIdentificationRequirement'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AdditionalBankIdentificationRequirement'", e); - } - - // deserialize AddressRequirement - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(AddressRequirement.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AddressRequirement.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AddressRequirement'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AddressRequirement'", e); - } - - // deserialize AmountMinMaxRequirement - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(AmountMinMaxRequirement.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AmountMinMaxRequirement.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AmountMinMaxRequirement'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AmountMinMaxRequirement'", e); - } - - // deserialize AmountNonZeroDecimalsRequirement - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(AmountNonZeroDecimalsRequirement.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AmountNonZeroDecimalsRequirement.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AmountNonZeroDecimalsRequirement'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AmountNonZeroDecimalsRequirement'", e); - } - - // deserialize BankAccountIdentificationTypeRequirement - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(BankAccountIdentificationTypeRequirement.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(BankAccountIdentificationTypeRequirement.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'BankAccountIdentificationTypeRequirement'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'BankAccountIdentificationTypeRequirement'", e); - } - - // deserialize IbanAccountIdentificationRequirement - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(IbanAccountIdentificationRequirement.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentificationRequirement.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'IbanAccountIdentificationRequirement'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'IbanAccountIdentificationRequirement'", e); - } - - // deserialize PaymentInstrumentRequirement - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(PaymentInstrumentRequirement.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PaymentInstrumentRequirement.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PaymentInstrumentRequirement'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PaymentInstrumentRequirement'", e); - } - - // deserialize USInstantPayoutAddressRequirement - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(USInstantPayoutAddressRequirement.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(USInstantPayoutAddressRequirement.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'USInstantPayoutAddressRequirement'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'USInstantPayoutAddressRequirement'", e); - } - - // deserialize USInternationalAchAddressRequirement - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(USInternationalAchAddressRequirement.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(USInternationalAchAddressRequirement.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'USInternationalAchAddressRequirement'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'USInternationalAchAddressRequirement'", e); - } - - // deserialize USInternationalAchPriorityRequirement - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(USInternationalAchPriorityRequirement.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(USInternationalAchPriorityRequirement.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'USInternationalAchPriorityRequirement'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'USInternationalAchPriorityRequirement'", e); - } - - if (match == 1) { - TransferRouteRequirementsInner ret = new TransferRouteRequirementsInner(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException(String.format("Failed deserialization for TransferRouteRequirementsInner: %d classes match result, expected 1", match)); - } - - /** - * Handle deserialization of the 'null' value. - */ - @Override - public TransferRouteRequirementsInner getNullValue(DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "TransferRouteRequirementsInner cannot be null"); - } + public TransferRouteRequirementsInnerSerializer() { + this(null); } - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public TransferRouteRequirementsInner() { - super("oneOf", Boolean.FALSE); - } - - public TransferRouteRequirementsInner(AdditionalBankIdentificationRequirement o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferRouteRequirementsInner(AddressRequirement o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferRouteRequirementsInner(AmountMinMaxRequirement o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferRouteRequirementsInner(AmountNonZeroDecimalsRequirement o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferRouteRequirementsInner(BankAccountIdentificationTypeRequirement o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferRouteRequirementsInner(IbanAccountIdentificationRequirement o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferRouteRequirementsInner(PaymentInstrumentRequirement o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferRouteRequirementsInner(USInstantPayoutAddressRequirement o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferRouteRequirementsInner(USInternationalAchAddressRequirement o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferRouteRequirementsInner(USInternationalAchPriorityRequirement o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + @Override + public void serialize( + TransferRouteRequirementsInner value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); } + } - static { - schemas.put("AdditionalBankIdentificationRequirement", new GenericType() { - }); - schemas.put("AddressRequirement", new GenericType() { - }); - schemas.put("AmountMinMaxRequirement", new GenericType() { - }); - schemas.put("AmountNonZeroDecimalsRequirement", new GenericType() { - }); - schemas.put("BankAccountIdentificationTypeRequirement", new GenericType() { - }); - schemas.put("IbanAccountIdentificationRequirement", new GenericType() { - }); - schemas.put("PaymentInstrumentRequirement", new GenericType() { - }); - schemas.put("USInstantPayoutAddressRequirement", new GenericType() { - }); - schemas.put("USInternationalAchAddressRequirement", new GenericType() { - }); - schemas.put("USInternationalAchPriorityRequirement", new GenericType() { - }); - JSON.registerDescendants(TransferRouteRequirementsInner.class, Collections.unmodifiableMap(schemas)); + public static class TransferRouteRequirementsInnerDeserializer + extends StdDeserializer { + public TransferRouteRequirementsInnerDeserializer() { + this(TransferRouteRequirementsInner.class); } - @Override - public Map> getSchemas() { - return TransferRouteRequirementsInner.schemas; + public TransferRouteRequirementsInnerDeserializer(Class vc) { + super(vc); } - /** - * Set the instance that matches the oneOf child schema, check - * the instance parameter is valid against the oneOf child schemas: - * AdditionalBankIdentificationRequirement, AddressRequirement, AmountMinMaxRequirement, AmountNonZeroDecimalsRequirement, BankAccountIdentificationTypeRequirement, IbanAccountIdentificationRequirement, PaymentInstrumentRequirement, USInstantPayoutAddressRequirement, USInternationalAchAddressRequirement, USInternationalAchPriorityRequirement - * - * It could be an instance of the 'oneOf' schemas. - * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). - */ @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(AdditionalBankIdentificationRequirement.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + public TransferRouteRequirementsInner deserialize(JsonParser jp, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize AdditionalBankIdentificationRequirement + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(AdditionalBankIdentificationRequirement.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()) + .readValueAs(AdditionalBankIdentificationRequirement.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log( + Level.FINER, "Input data matches schema 'AdditionalBankIdentificationRequirement'"); + } } - - if (JSON.isInstanceOf(AddressRequirement.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log( + Level.FINER, + "Input data does not match schema 'AdditionalBankIdentificationRequirement'", + e); + } + + // deserialize AddressRequirement + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(AddressRequirement.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(AddressRequirement.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'AddressRequirement'"); + } } - - if (JSON.isInstanceOf(AmountMinMaxRequirement.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'AddressRequirement'", e); + } + + // deserialize AmountMinMaxRequirement + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(AmountMinMaxRequirement.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(AmountMinMaxRequirement.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'AmountMinMaxRequirement'"); + } } - - if (JSON.isInstanceOf(AmountNonZeroDecimalsRequirement.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'AmountMinMaxRequirement'", e); + } + + // deserialize AmountNonZeroDecimalsRequirement + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(AmountNonZeroDecimalsRequirement.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(AmountNonZeroDecimalsRequirement.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'AmountNonZeroDecimalsRequirement'"); + } } - - if (JSON.isInstanceOf(BankAccountIdentificationTypeRequirement.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log( + Level.FINER, "Input data does not match schema 'AmountNonZeroDecimalsRequirement'", e); + } + + // deserialize BankAccountIdentificationTypeRequirement + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(BankAccountIdentificationTypeRequirement.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()) + .readValueAs(BankAccountIdentificationTypeRequirement.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log( + Level.FINER, + "Input data matches schema 'BankAccountIdentificationTypeRequirement'"); + } } - - if (JSON.isInstanceOf(IbanAccountIdentificationRequirement.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log( + Level.FINER, + "Input data does not match schema 'BankAccountIdentificationTypeRequirement'", + e); + } + + // deserialize IbanAccountIdentificationRequirement + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(IbanAccountIdentificationRequirement.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()) + .readValueAs(IbanAccountIdentificationRequirement.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log( + Level.FINER, "Input data matches schema 'IbanAccountIdentificationRequirement'"); + } } - - if (JSON.isInstanceOf(PaymentInstrumentRequirement.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log( + Level.FINER, + "Input data does not match schema 'IbanAccountIdentificationRequirement'", + e); + } + + // deserialize PaymentInstrumentRequirement + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(PaymentInstrumentRequirement.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(PaymentInstrumentRequirement.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PaymentInstrumentRequirement'"); + } } - - if (JSON.isInstanceOf(USInstantPayoutAddressRequirement.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PaymentInstrumentRequirement'", e); + } + + // deserialize USInstantPayoutAddressRequirement + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(USInstantPayoutAddressRequirement.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(USInstantPayoutAddressRequirement.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'USInstantPayoutAddressRequirement'"); + } } - - if (JSON.isInstanceOf(USInternationalAchAddressRequirement.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log( + Level.FINER, "Input data does not match schema 'USInstantPayoutAddressRequirement'", e); + } + + // deserialize USInternationalAchAddressRequirement + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(USInternationalAchAddressRequirement.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()) + .readValueAs(USInternationalAchAddressRequirement.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log( + Level.FINER, "Input data matches schema 'USInternationalAchAddressRequirement'"); + } } - - if (JSON.isInstanceOf(USInternationalAchPriorityRequirement.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log( + Level.FINER, + "Input data does not match schema 'USInternationalAchAddressRequirement'", + e); + } + + // deserialize USInternationalAchPriorityRequirement + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(USInternationalAchPriorityRequirement.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()) + .readValueAs(USInternationalAchPriorityRequirement.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log( + Level.FINER, "Input data matches schema 'USInternationalAchPriorityRequirement'"); + } } - - throw new RuntimeException("Invalid instance type. Must be AdditionalBankIdentificationRequirement, AddressRequirement, AmountMinMaxRequirement, AmountNonZeroDecimalsRequirement, BankAccountIdentificationTypeRequirement, IbanAccountIdentificationRequirement, PaymentInstrumentRequirement, USInstantPayoutAddressRequirement, USInternationalAchAddressRequirement, USInternationalAchPriorityRequirement"); + } catch (Exception e) { + // deserialization failed, continue + log.log( + Level.FINER, + "Input data does not match schema 'USInternationalAchPriorityRequirement'", + e); + } + + if (match == 1) { + TransferRouteRequirementsInner ret = new TransferRouteRequirementsInner(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException( + String.format( + "Failed deserialization for TransferRouteRequirementsInner: %d classes match result, expected 1", + match)); } - /** - * Get the actual instance, which can be the following: - * AdditionalBankIdentificationRequirement, AddressRequirement, AmountMinMaxRequirement, AmountNonZeroDecimalsRequirement, BankAccountIdentificationTypeRequirement, IbanAccountIdentificationRequirement, PaymentInstrumentRequirement, USInstantPayoutAddressRequirement, USInternationalAchAddressRequirement, USInternationalAchPriorityRequirement - * - * @return The actual instance (AdditionalBankIdentificationRequirement, AddressRequirement, AmountMinMaxRequirement, AmountNonZeroDecimalsRequirement, BankAccountIdentificationTypeRequirement, IbanAccountIdentificationRequirement, PaymentInstrumentRequirement, USInstantPayoutAddressRequirement, USInternationalAchAddressRequirement, USInternationalAchPriorityRequirement) - */ + /** Handle deserialization of the 'null' value. */ @Override - public Object getActualInstance() { - return super.getActualInstance(); + public TransferRouteRequirementsInner getNullValue(DeserializationContext ctxt) + throws JsonMappingException { + throw new JsonMappingException( + ctxt.getParser(), "TransferRouteRequirementsInner cannot be null"); } - - /** - * Get the actual instance of `AdditionalBankIdentificationRequirement`. If the actual instance is not `AdditionalBankIdentificationRequirement`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `AdditionalBankIdentificationRequirement` - * @throws ClassCastException if the instance is not `AdditionalBankIdentificationRequirement` - */ - public AdditionalBankIdentificationRequirement getAdditionalBankIdentificationRequirement() throws ClassCastException { - return (AdditionalBankIdentificationRequirement)super.getActualInstance(); + } + + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public TransferRouteRequirementsInner() { + super("oneOf", Boolean.FALSE); + } + + public TransferRouteRequirementsInner(AdditionalBankIdentificationRequirement o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferRouteRequirementsInner(AddressRequirement o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferRouteRequirementsInner(AmountMinMaxRequirement o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferRouteRequirementsInner(AmountNonZeroDecimalsRequirement o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferRouteRequirementsInner(BankAccountIdentificationTypeRequirement o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferRouteRequirementsInner(IbanAccountIdentificationRequirement o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferRouteRequirementsInner(PaymentInstrumentRequirement o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferRouteRequirementsInner(USInstantPayoutAddressRequirement o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferRouteRequirementsInner(USInternationalAchAddressRequirement o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferRouteRequirementsInner(USInternationalAchPriorityRequirement o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put( + "AdditionalBankIdentificationRequirement", + new GenericType() {}); + schemas.put("AddressRequirement", new GenericType() {}); + schemas.put("AmountMinMaxRequirement", new GenericType() {}); + schemas.put( + "AmountNonZeroDecimalsRequirement", new GenericType() {}); + schemas.put( + "BankAccountIdentificationTypeRequirement", + new GenericType() {}); + schemas.put( + "IbanAccountIdentificationRequirement", + new GenericType() {}); + schemas.put("PaymentInstrumentRequirement", new GenericType() {}); + schemas.put( + "USInstantPayoutAddressRequirement", + new GenericType() {}); + schemas.put( + "USInternationalAchAddressRequirement", + new GenericType() {}); + schemas.put( + "USInternationalAchPriorityRequirement", + new GenericType() {}); + JSON.registerDescendants( + TransferRouteRequirementsInner.class, Collections.unmodifiableMap(schemas)); + } + + @Override + public Map> getSchemas() { + return TransferRouteRequirementsInner.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check the instance parameter is valid + * against the oneOf child schemas: AdditionalBankIdentificationRequirement, AddressRequirement, + * AmountMinMaxRequirement, AmountNonZeroDecimalsRequirement, + * BankAccountIdentificationTypeRequirement, IbanAccountIdentificationRequirement, + * PaymentInstrumentRequirement, USInstantPayoutAddressRequirement, + * USInternationalAchAddressRequirement, USInternationalAchPriorityRequirement + * + *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a + * composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf( + AdditionalBankIdentificationRequirement.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `AddressRequirement`. If the actual instance is not `AddressRequirement`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `AddressRequirement` - * @throws ClassCastException if the instance is not `AddressRequirement` - */ - public AddressRequirement getAddressRequirement() throws ClassCastException { - return (AddressRequirement)super.getActualInstance(); + if (JSON.isInstanceOf(AddressRequirement.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `AmountMinMaxRequirement`. If the actual instance is not `AmountMinMaxRequirement`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `AmountMinMaxRequirement` - * @throws ClassCastException if the instance is not `AmountMinMaxRequirement` - */ - public AmountMinMaxRequirement getAmountMinMaxRequirement() throws ClassCastException { - return (AmountMinMaxRequirement)super.getActualInstance(); + if (JSON.isInstanceOf(AmountMinMaxRequirement.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `AmountNonZeroDecimalsRequirement`. If the actual instance is not `AmountNonZeroDecimalsRequirement`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `AmountNonZeroDecimalsRequirement` - * @throws ClassCastException if the instance is not `AmountNonZeroDecimalsRequirement` - */ - public AmountNonZeroDecimalsRequirement getAmountNonZeroDecimalsRequirement() throws ClassCastException { - return (AmountNonZeroDecimalsRequirement)super.getActualInstance(); + if (JSON.isInstanceOf(AmountNonZeroDecimalsRequirement.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `BankAccountIdentificationTypeRequirement`. If the actual instance is not `BankAccountIdentificationTypeRequirement`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `BankAccountIdentificationTypeRequirement` - * @throws ClassCastException if the instance is not `BankAccountIdentificationTypeRequirement` - */ - public BankAccountIdentificationTypeRequirement getBankAccountIdentificationTypeRequirement() throws ClassCastException { - return (BankAccountIdentificationTypeRequirement)super.getActualInstance(); + if (JSON.isInstanceOf( + BankAccountIdentificationTypeRequirement.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `IbanAccountIdentificationRequirement`. If the actual instance is not `IbanAccountIdentificationRequirement`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `IbanAccountIdentificationRequirement` - * @throws ClassCastException if the instance is not `IbanAccountIdentificationRequirement` - */ - public IbanAccountIdentificationRequirement getIbanAccountIdentificationRequirement() throws ClassCastException { - return (IbanAccountIdentificationRequirement)super.getActualInstance(); + if (JSON.isInstanceOf(IbanAccountIdentificationRequirement.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `PaymentInstrumentRequirement`. If the actual instance is not `PaymentInstrumentRequirement`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PaymentInstrumentRequirement` - * @throws ClassCastException if the instance is not `PaymentInstrumentRequirement` - */ - public PaymentInstrumentRequirement getPaymentInstrumentRequirement() throws ClassCastException { - return (PaymentInstrumentRequirement)super.getActualInstance(); + if (JSON.isInstanceOf(PaymentInstrumentRequirement.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `USInstantPayoutAddressRequirement`. If the actual instance is not `USInstantPayoutAddressRequirement`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `USInstantPayoutAddressRequirement` - * @throws ClassCastException if the instance is not `USInstantPayoutAddressRequirement` - */ - public USInstantPayoutAddressRequirement getUSInstantPayoutAddressRequirement() throws ClassCastException { - return (USInstantPayoutAddressRequirement)super.getActualInstance(); + if (JSON.isInstanceOf(USInstantPayoutAddressRequirement.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `USInternationalAchAddressRequirement`. If the actual instance is not `USInternationalAchAddressRequirement`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `USInternationalAchAddressRequirement` - * @throws ClassCastException if the instance is not `USInternationalAchAddressRequirement` - */ - public USInternationalAchAddressRequirement getUSInternationalAchAddressRequirement() throws ClassCastException { - return (USInternationalAchAddressRequirement)super.getActualInstance(); - } - - /** - * Get the actual instance of `USInternationalAchPriorityRequirement`. If the actual instance is not `USInternationalAchPriorityRequirement`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `USInternationalAchPriorityRequirement` - * @throws ClassCastException if the instance is not `USInternationalAchPriorityRequirement` - */ - public USInternationalAchPriorityRequirement getUSInternationalAchPriorityRequirement() throws ClassCastException { - return (USInternationalAchPriorityRequirement)super.getActualInstance(); - } - - - /** - * Create an instance of TransferRouteRequirementsInner given an JSON string - * - * @param jsonString JSON string - * @return An instance of TransferRouteRequirementsInner - * @throws IOException if the JSON string is invalid with respect to TransferRouteRequirementsInner - */ - public static TransferRouteRequirementsInner fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, TransferRouteRequirementsInner.class); + if (JSON.isInstanceOf(USInternationalAchAddressRequirement.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Convert an instance of TransferRouteRequirementsInner to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); + if (JSON.isInstanceOf(USInternationalAchPriorityRequirement.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } + throw new RuntimeException( + "Invalid instance type. Must be AdditionalBankIdentificationRequirement, AddressRequirement, AmountMinMaxRequirement, AmountNonZeroDecimalsRequirement, BankAccountIdentificationTypeRequirement, IbanAccountIdentificationRequirement, PaymentInstrumentRequirement, USInstantPayoutAddressRequirement, USInternationalAchAddressRequirement, USInternationalAchPriorityRequirement"); + } + + /** + * Get the actual instance, which can be the following: AdditionalBankIdentificationRequirement, + * AddressRequirement, AmountMinMaxRequirement, AmountNonZeroDecimalsRequirement, + * BankAccountIdentificationTypeRequirement, IbanAccountIdentificationRequirement, + * PaymentInstrumentRequirement, USInstantPayoutAddressRequirement, + * USInternationalAchAddressRequirement, USInternationalAchPriorityRequirement + * + * @return The actual instance (AdditionalBankIdentificationRequirement, AddressRequirement, + * AmountMinMaxRequirement, AmountNonZeroDecimalsRequirement, + * BankAccountIdentificationTypeRequirement, IbanAccountIdentificationRequirement, + * PaymentInstrumentRequirement, USInstantPayoutAddressRequirement, + * USInternationalAchAddressRequirement, USInternationalAchPriorityRequirement) + */ + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `AdditionalBankIdentificationRequirement`. If the actual instance is + * not `AdditionalBankIdentificationRequirement`, the ClassCastException will be thrown. + * + * @return The actual instance of `AdditionalBankIdentificationRequirement` + * @throws ClassCastException if the instance is not `AdditionalBankIdentificationRequirement` + */ + public AdditionalBankIdentificationRequirement getAdditionalBankIdentificationRequirement() + throws ClassCastException { + return (AdditionalBankIdentificationRequirement) super.getActualInstance(); + } + + /** + * Get the actual instance of `AddressRequirement`. If the actual instance is not + * `AddressRequirement`, the ClassCastException will be thrown. + * + * @return The actual instance of `AddressRequirement` + * @throws ClassCastException if the instance is not `AddressRequirement` + */ + public AddressRequirement getAddressRequirement() throws ClassCastException { + return (AddressRequirement) super.getActualInstance(); + } + + /** + * Get the actual instance of `AmountMinMaxRequirement`. If the actual instance is not + * `AmountMinMaxRequirement`, the ClassCastException will be thrown. + * + * @return The actual instance of `AmountMinMaxRequirement` + * @throws ClassCastException if the instance is not `AmountMinMaxRequirement` + */ + public AmountMinMaxRequirement getAmountMinMaxRequirement() throws ClassCastException { + return (AmountMinMaxRequirement) super.getActualInstance(); + } + + /** + * Get the actual instance of `AmountNonZeroDecimalsRequirement`. If the actual instance is not + * `AmountNonZeroDecimalsRequirement`, the ClassCastException will be thrown. + * + * @return The actual instance of `AmountNonZeroDecimalsRequirement` + * @throws ClassCastException if the instance is not `AmountNonZeroDecimalsRequirement` + */ + public AmountNonZeroDecimalsRequirement getAmountNonZeroDecimalsRequirement() + throws ClassCastException { + return (AmountNonZeroDecimalsRequirement) super.getActualInstance(); + } + + /** + * Get the actual instance of `BankAccountIdentificationTypeRequirement`. If the actual instance + * is not `BankAccountIdentificationTypeRequirement`, the ClassCastException will be thrown. + * + * @return The actual instance of `BankAccountIdentificationTypeRequirement` + * @throws ClassCastException if the instance is not `BankAccountIdentificationTypeRequirement` + */ + public BankAccountIdentificationTypeRequirement getBankAccountIdentificationTypeRequirement() + throws ClassCastException { + return (BankAccountIdentificationTypeRequirement) super.getActualInstance(); + } + + /** + * Get the actual instance of `IbanAccountIdentificationRequirement`. If the actual instance is + * not `IbanAccountIdentificationRequirement`, the ClassCastException will be thrown. + * + * @return The actual instance of `IbanAccountIdentificationRequirement` + * @throws ClassCastException if the instance is not `IbanAccountIdentificationRequirement` + */ + public IbanAccountIdentificationRequirement getIbanAccountIdentificationRequirement() + throws ClassCastException { + return (IbanAccountIdentificationRequirement) super.getActualInstance(); + } + + /** + * Get the actual instance of `PaymentInstrumentRequirement`. If the actual instance is not + * `PaymentInstrumentRequirement`, the ClassCastException will be thrown. + * + * @return The actual instance of `PaymentInstrumentRequirement` + * @throws ClassCastException if the instance is not `PaymentInstrumentRequirement` + */ + public PaymentInstrumentRequirement getPaymentInstrumentRequirement() throws ClassCastException { + return (PaymentInstrumentRequirement) super.getActualInstance(); + } + + /** + * Get the actual instance of `USInstantPayoutAddressRequirement`. If the actual instance is not + * `USInstantPayoutAddressRequirement`, the ClassCastException will be thrown. + * + * @return The actual instance of `USInstantPayoutAddressRequirement` + * @throws ClassCastException if the instance is not `USInstantPayoutAddressRequirement` + */ + public USInstantPayoutAddressRequirement getUSInstantPayoutAddressRequirement() + throws ClassCastException { + return (USInstantPayoutAddressRequirement) super.getActualInstance(); + } + + /** + * Get the actual instance of `USInternationalAchAddressRequirement`. If the actual instance is + * not `USInternationalAchAddressRequirement`, the ClassCastException will be thrown. + * + * @return The actual instance of `USInternationalAchAddressRequirement` + * @throws ClassCastException if the instance is not `USInternationalAchAddressRequirement` + */ + public USInternationalAchAddressRequirement getUSInternationalAchAddressRequirement() + throws ClassCastException { + return (USInternationalAchAddressRequirement) super.getActualInstance(); + } + + /** + * Get the actual instance of `USInternationalAchPriorityRequirement`. If the actual instance is + * not `USInternationalAchPriorityRequirement`, the ClassCastException will be thrown. + * + * @return The actual instance of `USInternationalAchPriorityRequirement` + * @throws ClassCastException if the instance is not `USInternationalAchPriorityRequirement` + */ + public USInternationalAchPriorityRequirement getUSInternationalAchPriorityRequirement() + throws ClassCastException { + return (USInternationalAchPriorityRequirement) super.getActualInstance(); + } + + /** + * Create an instance of TransferRouteRequirementsInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of TransferRouteRequirementsInner + * @throws IOException if the JSON string is invalid with respect to + * TransferRouteRequirementsInner + */ + public static TransferRouteRequirementsInner fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, TransferRouteRequirementsInner.class); + } + + /** + * Convert an instance of TransferRouteRequirementsInner to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransferRouteResponse.java b/src/main/java/com/adyen/model/balanceplatform/TransferRouteResponse.java index 4b24dd828..70da671ca 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransferRouteResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransferRouteResponse.java @@ -2,49 +2,37 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.TransferRoute; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * TransferRouteResponse - */ -@JsonPropertyOrder({ - TransferRouteResponse.JSON_PROPERTY_TRANSFER_ROUTES -}) - +/** TransferRouteResponse */ +@JsonPropertyOrder({TransferRouteResponse.JSON_PROPERTY_TRANSFER_ROUTES}) public class TransferRouteResponse { public static final String JSON_PROPERTY_TRANSFER_ROUTES = "transferRoutes"; private List transferRoutes; - public TransferRouteResponse() { - } + public TransferRouteResponse() {} /** - * List of available priorities for a transfer, along with requirements. Use this information to initiate a transfer. + * List of available priorities for a transfer, along with requirements. Use this information to + * initiate a transfer. * - * @param transferRoutes List of available priorities for a transfer, along with requirements. Use this information to initiate a transfer. + * @param transferRoutes List of available priorities for a transfer, along with requirements. Use + * this information to initiate a transfer. * @return the current {@code TransferRouteResponse} instance, allowing for method chaining */ public TransferRouteResponse transferRoutes(List transferRoutes) { @@ -61,8 +49,11 @@ public TransferRouteResponse addTransferRoutesItem(TransferRoute transferRoutesI } /** - * List of available priorities for a transfer, along with requirements. Use this information to initiate a transfer. - * @return transferRoutes List of available priorities for a transfer, along with requirements. Use this information to initiate a transfer. + * List of available priorities for a transfer, along with requirements. Use this information to + * initiate a transfer. + * + * @return transferRoutes List of available priorities for a transfer, along with requirements. + * Use this information to initiate a transfer. */ @JsonProperty(JSON_PROPERTY_TRANSFER_ROUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,9 +62,11 @@ public List getTransferRoutes() { } /** - * List of available priorities for a transfer, along with requirements. Use this information to initiate a transfer. + * List of available priorities for a transfer, along with requirements. Use this information to + * initiate a transfer. * - * @param transferRoutes List of available priorities for a transfer, along with requirements. Use this information to initiate a transfer. + * @param transferRoutes List of available priorities for a transfer, along with requirements. Use + * this information to initiate a transfer. */ @JsonProperty(JSON_PROPERTY_TRANSFER_ROUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -81,9 +74,7 @@ public void setTransferRoutes(List transferRoutes) { this.transferRoutes = transferRoutes; } - /** - * Return true if this TransferRouteResponse object is equal to o. - */ + /** Return true if this TransferRouteResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -111,8 +102,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -121,21 +111,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransferRouteResponse given an JSON string * * @param jsonString JSON string * @return An instance of TransferRouteResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to TransferRouteResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TransferRouteResponse */ public static TransferRouteResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferRouteResponse.class); } -/** - * Convert an instance of TransferRouteResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransferRouteResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/UKLocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/UKLocalAccountIdentification.java index f3db100dd..c2179eeb7 100644 --- a/src/main/java/com/adyen/model/balanceplatform/UKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/UKLocalAccountIdentification.java @@ -2,37 +2,31 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * UKLocalAccountIdentification - */ +/** UKLocalAccountIdentification */ @JsonPropertyOrder({ UKLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, UKLocalAccountIdentification.JSON_PROPERTY_SORT_CODE, UKLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class UKLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -40,11 +34,8 @@ public class UKLocalAccountIdentification { public static final String JSON_PROPERTY_SORT_CODE = "sortCode"; private String sortCode; - /** - * **ukLocal** - */ + /** **ukLocal** */ public enum TypeEnum { - UKLOCAL(String.valueOf("ukLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +43,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +64,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,8 +76,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public UKLocalAccountIdentification() { - } + public UKLocalAccountIdentification() {} /** * The 8-digit bank account number, without separators or whitespace. @@ -97,6 +91,7 @@ public UKLocalAccountIdentification accountNumber(String accountNumber) { /** * The 8-digit bank account number, without separators or whitespace. + * * @return accountNumber The 8-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -117,9 +112,11 @@ public void setAccountNumber(String accountNumber) { } /** - * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. + * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or + * whitespace. * - * @param sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. + * @param sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without + * separators or whitespace. * @return the current {@code UKLocalAccountIdentification} instance, allowing for method chaining */ public UKLocalAccountIdentification sortCode(String sortCode) { @@ -128,8 +125,11 @@ public UKLocalAccountIdentification sortCode(String sortCode) { } /** - * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. - * @return sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. + * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or + * whitespace. + * + * @return sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without + * separators or whitespace. */ @JsonProperty(JSON_PROPERTY_SORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,9 +138,11 @@ public String getSortCode() { } /** - * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. + * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or + * whitespace. * - * @param sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. + * @param sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without + * separators or whitespace. */ @JsonProperty(JSON_PROPERTY_SORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,6 +163,7 @@ public UKLocalAccountIdentification type(TypeEnum type) { /** * **ukLocal** + * * @return type **ukLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +183,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this UKLocalAccountIdentification object is equal to o. - */ + /** Return true if this UKLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +193,9 @@ public boolean equals(Object o) { return false; } UKLocalAccountIdentification ukLocalAccountIdentification = (UKLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, ukLocalAccountIdentification.accountNumber) && - Objects.equals(this.sortCode, ukLocalAccountIdentification.sortCode) && - Objects.equals(this.type, ukLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, ukLocalAccountIdentification.accountNumber) + && Objects.equals(this.sortCode, ukLocalAccountIdentification.sortCode) + && Objects.equals(this.type, ukLocalAccountIdentification.type); } @Override @@ -214,8 +215,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +224,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of UKLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of UKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to UKLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * UKLocalAccountIdentification */ - public static UKLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static UKLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UKLocalAccountIdentification.class); } -/** - * Convert an instance of UKLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of UKLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/USInstantPayoutAddressRequirement.java b/src/main/java/com/adyen/model/balanceplatform/USInstantPayoutAddressRequirement.java index 1aa667872..08b0c1d1a 100644 --- a/src/main/java/com/adyen/model/balanceplatform/USInstantPayoutAddressRequirement.java +++ b/src/main/java/com/adyen/model/balanceplatform/USInstantPayoutAddressRequirement.java @@ -2,45 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * USInstantPayoutAddressRequirement - */ +/** USInstantPayoutAddressRequirement */ @JsonPropertyOrder({ USInstantPayoutAddressRequirement.JSON_PROPERTY_DESCRIPTION, USInstantPayoutAddressRequirement.JSON_PROPERTY_TYPE }) - public class USInstantPayoutAddressRequirement { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; - /** - * **usInstantPayoutAddressRequirement** - */ + /** **usInstantPayoutAddressRequirement** */ public enum TypeEnum { - USINSTANTPAYOUTADDRESSREQUIREMENT(String.valueOf("usInstantPayoutAddressRequirement")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +39,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,14 +72,16 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public USInstantPayoutAddressRequirement() { - } + public USInstantPayoutAddressRequirement() {} /** - * Specifies that you must provide complete street addresses for the party and counterParty for transactions greater than USD 3000. + * Specifies that you must provide complete street addresses for the party and counterParty for + * transactions greater than USD 3000. * - * @param description Specifies that you must provide complete street addresses for the party and counterParty for transactions greater than USD 3000. - * @return the current {@code USInstantPayoutAddressRequirement} instance, allowing for method chaining + * @param description Specifies that you must provide complete street addresses for the party and + * counterParty for transactions greater than USD 3000. + * @return the current {@code USInstantPayoutAddressRequirement} instance, allowing for method + * chaining */ public USInstantPayoutAddressRequirement description(String description) { this.description = description; @@ -92,8 +89,11 @@ public USInstantPayoutAddressRequirement description(String description) { } /** - * Specifies that you must provide complete street addresses for the party and counterParty for transactions greater than USD 3000. - * @return description Specifies that you must provide complete street addresses for the party and counterParty for transactions greater than USD 3000. + * Specifies that you must provide complete street addresses for the party and counterParty for + * transactions greater than USD 3000. + * + * @return description Specifies that you must provide complete street addresses for the party and + * counterParty for transactions greater than USD 3000. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,9 +102,11 @@ public String getDescription() { } /** - * Specifies that you must provide complete street addresses for the party and counterParty for transactions greater than USD 3000. + * Specifies that you must provide complete street addresses for the party and counterParty for + * transactions greater than USD 3000. * - * @param description Specifies that you must provide complete street addresses for the party and counterParty for transactions greater than USD 3000. + * @param description Specifies that you must provide complete street addresses for the party and + * counterParty for transactions greater than USD 3000. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,7 +118,8 @@ public void setDescription(String description) { * **usInstantPayoutAddressRequirement** * * @param type **usInstantPayoutAddressRequirement** - * @return the current {@code USInstantPayoutAddressRequirement} instance, allowing for method chaining + * @return the current {@code USInstantPayoutAddressRequirement} instance, allowing for method + * chaining */ public USInstantPayoutAddressRequirement type(TypeEnum type) { this.type = type; @@ -125,6 +128,7 @@ public USInstantPayoutAddressRequirement type(TypeEnum type) { /** * **usInstantPayoutAddressRequirement** + * * @return type **usInstantPayoutAddressRequirement** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -144,9 +148,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this USInstantPayoutAddressRequirement object is equal to o. - */ + /** Return true if this USInstantPayoutAddressRequirement object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -155,9 +157,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - USInstantPayoutAddressRequirement usInstantPayoutAddressRequirement = (USInstantPayoutAddressRequirement) o; - return Objects.equals(this.description, usInstantPayoutAddressRequirement.description) && - Objects.equals(this.type, usInstantPayoutAddressRequirement.type); + USInstantPayoutAddressRequirement usInstantPayoutAddressRequirement = + (USInstantPayoutAddressRequirement) o; + return Objects.equals(this.description, usInstantPayoutAddressRequirement.description) + && Objects.equals(this.type, usInstantPayoutAddressRequirement.type); } @Override @@ -176,8 +179,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +188,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of USInstantPayoutAddressRequirement given an JSON string * * @param jsonString JSON string * @return An instance of USInstantPayoutAddressRequirement - * @throws JsonProcessingException if the JSON string is invalid with respect to USInstantPayoutAddressRequirement + * @throws JsonProcessingException if the JSON string is invalid with respect to + * USInstantPayoutAddressRequirement */ - public static USInstantPayoutAddressRequirement fromJson(String jsonString) throws JsonProcessingException { + public static USInstantPayoutAddressRequirement fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, USInstantPayoutAddressRequirement.class); } -/** - * Convert an instance of USInstantPayoutAddressRequirement to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of USInstantPayoutAddressRequirement to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/USInternationalAchAddressRequirement.java b/src/main/java/com/adyen/model/balanceplatform/USInternationalAchAddressRequirement.java index a8acfb3cd..2c4fc47bd 100644 --- a/src/main/java/com/adyen/model/balanceplatform/USInternationalAchAddressRequirement.java +++ b/src/main/java/com/adyen/model/balanceplatform/USInternationalAchAddressRequirement.java @@ -2,45 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * USInternationalAchAddressRequirement - */ +/** USInternationalAchAddressRequirement */ @JsonPropertyOrder({ USInternationalAchAddressRequirement.JSON_PROPERTY_DESCRIPTION, USInternationalAchAddressRequirement.JSON_PROPERTY_TYPE }) - public class USInternationalAchAddressRequirement { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; - /** - * **usInternationalAchAddressRequirement** - */ + /** **usInternationalAchAddressRequirement** */ public enum TypeEnum { - USINTERNATIONALACHADDRESSREQUIREMENT(String.valueOf("usInternationalAchAddressRequirement")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +39,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,14 +72,16 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public USInternationalAchAddressRequirement() { - } + public USInternationalAchAddressRequirement() {} /** - * Specifies that you must provide a complete street address for International ACH (IAT) transactions. + * Specifies that you must provide a complete street address for International ACH (IAT) + * transactions. * - * @param description Specifies that you must provide a complete street address for International ACH (IAT) transactions. - * @return the current {@code USInternationalAchAddressRequirement} instance, allowing for method chaining + * @param description Specifies that you must provide a complete street address for International + * ACH (IAT) transactions. + * @return the current {@code USInternationalAchAddressRequirement} instance, allowing for method + * chaining */ public USInternationalAchAddressRequirement description(String description) { this.description = description; @@ -92,8 +89,11 @@ public USInternationalAchAddressRequirement description(String description) { } /** - * Specifies that you must provide a complete street address for International ACH (IAT) transactions. - * @return description Specifies that you must provide a complete street address for International ACH (IAT) transactions. + * Specifies that you must provide a complete street address for International ACH (IAT) + * transactions. + * + * @return description Specifies that you must provide a complete street address for International + * ACH (IAT) transactions. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,9 +102,11 @@ public String getDescription() { } /** - * Specifies that you must provide a complete street address for International ACH (IAT) transactions. + * Specifies that you must provide a complete street address for International ACH (IAT) + * transactions. * - * @param description Specifies that you must provide a complete street address for International ACH (IAT) transactions. + * @param description Specifies that you must provide a complete street address for International + * ACH (IAT) transactions. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,7 +118,8 @@ public void setDescription(String description) { * **usInternationalAchAddressRequirement** * * @param type **usInternationalAchAddressRequirement** - * @return the current {@code USInternationalAchAddressRequirement} instance, allowing for method chaining + * @return the current {@code USInternationalAchAddressRequirement} instance, allowing for method + * chaining */ public USInternationalAchAddressRequirement type(TypeEnum type) { this.type = type; @@ -125,6 +128,7 @@ public USInternationalAchAddressRequirement type(TypeEnum type) { /** * **usInternationalAchAddressRequirement** + * * @return type **usInternationalAchAddressRequirement** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -144,9 +148,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this USInternationalAchAddressRequirement object is equal to o. - */ + /** Return true if this USInternationalAchAddressRequirement object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -155,9 +157,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - USInternationalAchAddressRequirement usInternationalAchAddressRequirement = (USInternationalAchAddressRequirement) o; - return Objects.equals(this.description, usInternationalAchAddressRequirement.description) && - Objects.equals(this.type, usInternationalAchAddressRequirement.type); + USInternationalAchAddressRequirement usInternationalAchAddressRequirement = + (USInternationalAchAddressRequirement) o; + return Objects.equals(this.description, usInternationalAchAddressRequirement.description) + && Objects.equals(this.type, usInternationalAchAddressRequirement.type); } @Override @@ -176,8 +179,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +188,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of USInternationalAchAddressRequirement given an JSON string * * @param jsonString JSON string * @return An instance of USInternationalAchAddressRequirement - * @throws JsonProcessingException if the JSON string is invalid with respect to USInternationalAchAddressRequirement + * @throws JsonProcessingException if the JSON string is invalid with respect to + * USInternationalAchAddressRequirement */ - public static USInternationalAchAddressRequirement fromJson(String jsonString) throws JsonProcessingException { + public static USInternationalAchAddressRequirement fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, USInternationalAchAddressRequirement.class); } -/** - * Convert an instance of USInternationalAchAddressRequirement to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of USInternationalAchAddressRequirement to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/USInternationalAchPriorityRequirement.java b/src/main/java/com/adyen/model/balanceplatform/USInternationalAchPriorityRequirement.java index 9cdee3dea..e83b85ed3 100644 --- a/src/main/java/com/adyen/model/balanceplatform/USInternationalAchPriorityRequirement.java +++ b/src/main/java/com/adyen/model/balanceplatform/USInternationalAchPriorityRequirement.java @@ -2,45 +2,36 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * USInternationalAchPriorityRequirement - */ +/** USInternationalAchPriorityRequirement */ @JsonPropertyOrder({ USInternationalAchPriorityRequirement.JSON_PROPERTY_DESCRIPTION, USInternationalAchPriorityRequirement.JSON_PROPERTY_TYPE }) - public class USInternationalAchPriorityRequirement { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; - /** - * **usInternationalAchPriorityRequirement** - */ + /** **usInternationalAchPriorityRequirement** */ public enum TypeEnum { - USINTERNATIONALACHPRIORITYREQUIREMENT(String.valueOf("usInternationalAchPriorityRequirement")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +39,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,14 +72,16 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public USInternationalAchPriorityRequirement() { - } + public USInternationalAchPriorityRequirement() {} /** - * Specifies that transactions deemed to be International ACH (IAT) per OFAC/NACHA rules cannot have fast priority. + * Specifies that transactions deemed to be International ACH (IAT) per OFAC/NACHA rules cannot + * have fast priority. * - * @param description Specifies that transactions deemed to be International ACH (IAT) per OFAC/NACHA rules cannot have fast priority. - * @return the current {@code USInternationalAchPriorityRequirement} instance, allowing for method chaining + * @param description Specifies that transactions deemed to be International ACH (IAT) per + * OFAC/NACHA rules cannot have fast priority. + * @return the current {@code USInternationalAchPriorityRequirement} instance, allowing for method + * chaining */ public USInternationalAchPriorityRequirement description(String description) { this.description = description; @@ -92,8 +89,11 @@ public USInternationalAchPriorityRequirement description(String description) { } /** - * Specifies that transactions deemed to be International ACH (IAT) per OFAC/NACHA rules cannot have fast priority. - * @return description Specifies that transactions deemed to be International ACH (IAT) per OFAC/NACHA rules cannot have fast priority. + * Specifies that transactions deemed to be International ACH (IAT) per OFAC/NACHA rules cannot + * have fast priority. + * + * @return description Specifies that transactions deemed to be International ACH (IAT) per + * OFAC/NACHA rules cannot have fast priority. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,9 +102,11 @@ public String getDescription() { } /** - * Specifies that transactions deemed to be International ACH (IAT) per OFAC/NACHA rules cannot have fast priority. + * Specifies that transactions deemed to be International ACH (IAT) per OFAC/NACHA rules cannot + * have fast priority. * - * @param description Specifies that transactions deemed to be International ACH (IAT) per OFAC/NACHA rules cannot have fast priority. + * @param description Specifies that transactions deemed to be International ACH (IAT) per + * OFAC/NACHA rules cannot have fast priority. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,7 +118,8 @@ public void setDescription(String description) { * **usInternationalAchPriorityRequirement** * * @param type **usInternationalAchPriorityRequirement** - * @return the current {@code USInternationalAchPriorityRequirement} instance, allowing for method chaining + * @return the current {@code USInternationalAchPriorityRequirement} instance, allowing for method + * chaining */ public USInternationalAchPriorityRequirement type(TypeEnum type) { this.type = type; @@ -125,6 +128,7 @@ public USInternationalAchPriorityRequirement type(TypeEnum type) { /** * **usInternationalAchPriorityRequirement** + * * @return type **usInternationalAchPriorityRequirement** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -144,9 +148,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this USInternationalAchPriorityRequirement object is equal to o. - */ + /** Return true if this USInternationalAchPriorityRequirement object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -155,9 +157,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - USInternationalAchPriorityRequirement usInternationalAchPriorityRequirement = (USInternationalAchPriorityRequirement) o; - return Objects.equals(this.description, usInternationalAchPriorityRequirement.description) && - Objects.equals(this.type, usInternationalAchPriorityRequirement.type); + USInternationalAchPriorityRequirement usInternationalAchPriorityRequirement = + (USInternationalAchPriorityRequirement) o; + return Objects.equals(this.description, usInternationalAchPriorityRequirement.description) + && Objects.equals(this.type, usInternationalAchPriorityRequirement.type); } @Override @@ -176,8 +179,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +188,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of USInternationalAchPriorityRequirement given an JSON string * * @param jsonString JSON string * @return An instance of USInternationalAchPriorityRequirement - * @throws JsonProcessingException if the JSON string is invalid with respect to USInternationalAchPriorityRequirement + * @throws JsonProcessingException if the JSON string is invalid with respect to + * USInternationalAchPriorityRequirement */ - public static USInternationalAchPriorityRequirement fromJson(String jsonString) throws JsonProcessingException { + public static USInternationalAchPriorityRequirement fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, USInternationalAchPriorityRequirement.class); } -/** - * Convert an instance of USInternationalAchPriorityRequirement to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of USInternationalAchPriorityRequirement to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/USLocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/USLocalAccountIdentification.java index 5bde8e3ba..9a27421eb 100644 --- a/src/main/java/com/adyen/model/balanceplatform/USLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/USLocalAccountIdentification.java @@ -2,47 +2,40 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * USLocalAccountIdentification - */ +/** USLocalAccountIdentification */ @JsonPropertyOrder({ USLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, USLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_TYPE, USLocalAccountIdentification.JSON_PROPERTY_ROUTING_NUMBER, USLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class USLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ public enum AccountTypeEnum { - CHECKING(String.valueOf("checking")), SAVINGS(String.valueOf("savings")); @@ -52,7 +45,7 @@ public enum AccountTypeEnum { private String value; AccountTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +66,11 @@ public static AccountTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AccountTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AccountTypeEnum.values())); + LOG.warning( + "AccountTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AccountTypeEnum.values())); return null; } } @@ -84,11 +81,8 @@ public static AccountTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_ROUTING_NUMBER = "routingNumber"; private String routingNumber; - /** - * **usLocal** - */ + /** **usLocal** */ public enum TypeEnum { - USLOCAL(String.valueOf("usLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -96,7 +90,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -117,7 +111,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -125,8 +123,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public USLocalAccountIdentification() { - } + public USLocalAccountIdentification() {} /** * The bank account number, without separators or whitespace. @@ -141,6 +138,7 @@ public USLocalAccountIdentification accountNumber(String accountNumber) { /** * The bank account number, without separators or whitespace. + * * @return accountNumber The bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -161,9 +159,10 @@ public void setAccountNumber(String accountNumber) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. + * Defaults to **checking**. * @return the current {@code USLocalAccountIdentification} instance, allowing for method chaining */ public USLocalAccountIdentification accountType(AccountTypeEnum accountType) { @@ -172,8 +171,10 @@ public USLocalAccountIdentification accountType(AccountTypeEnum accountType) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. - * @return accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * + * @return accountType The bank account type. Possible values: **checking** or **savings**. + * Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,9 +183,10 @@ public AccountTypeEnum getAccountType() { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. + * Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,9 +195,12 @@ public void setAccountType(AccountTypeEnum accountType) { } /** - * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without + * separators or whitespace. * - * @param routingNumber The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * @param routingNumber The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * whitespace. * @return the current {@code USLocalAccountIdentification} instance, allowing for method chaining */ public USLocalAccountIdentification routingNumber(String routingNumber) { @@ -204,8 +209,12 @@ public USLocalAccountIdentification routingNumber(String routingNumber) { } /** - * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. - * @return routingNumber The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without + * separators or whitespace. + * + * @return routingNumber The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * whitespace. */ @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,9 +223,12 @@ public String getRoutingNumber() { } /** - * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without + * separators or whitespace. * - * @param routingNumber The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * @param routingNumber The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * whitespace. */ @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,6 +249,7 @@ public USLocalAccountIdentification type(TypeEnum type) { /** * **usLocal** + * * @return type **usLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -256,9 +269,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this USLocalAccountIdentification object is equal to o. - */ + /** Return true if this USLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -268,10 +279,10 @@ public boolean equals(Object o) { return false; } USLocalAccountIdentification usLocalAccountIdentification = (USLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, usLocalAccountIdentification.accountNumber) && - Objects.equals(this.accountType, usLocalAccountIdentification.accountType) && - Objects.equals(this.routingNumber, usLocalAccountIdentification.routingNumber) && - Objects.equals(this.type, usLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, usLocalAccountIdentification.accountNumber) + && Objects.equals(this.accountType, usLocalAccountIdentification.accountType) + && Objects.equals(this.routingNumber, usLocalAccountIdentification.routingNumber) + && Objects.equals(this.type, usLocalAccountIdentification.type); } @Override @@ -292,8 +303,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -302,21 +312,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of USLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of USLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to USLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * USLocalAccountIdentification */ - public static USLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static USLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, USLocalAccountIdentification.class); } -/** - * Convert an instance of USLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of USLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/UpdateNetworkTokenRequest.java b/src/main/java/com/adyen/model/balanceplatform/UpdateNetworkTokenRequest.java index 6c3c0f7e2..646fdf789 100644 --- a/src/main/java/com/adyen/model/balanceplatform/UpdateNetworkTokenRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/UpdateNetworkTokenRequest.java @@ -2,41 +2,33 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * UpdateNetworkTokenRequest - */ -@JsonPropertyOrder({ - UpdateNetworkTokenRequest.JSON_PROPERTY_STATUS -}) - +/** UpdateNetworkTokenRequest */ +@JsonPropertyOrder({UpdateNetworkTokenRequest.JSON_PROPERTY_STATUS}) public class UpdateNetworkTokenRequest { /** - * The new status of the network token. Possible values: **active**, **suspended**, **closed**. The **closed** status is final and cannot be changed. + * The new status of the network token. Possible values: **active**, **suspended**, **closed**. + * The **closed** status is final and cannot be changed. */ public enum StatusEnum { - ACTIVE(String.valueOf("active")), SUSPENDED(String.valueOf("suspended")), @@ -48,7 +40,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +61,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -77,13 +73,14 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; - public UpdateNetworkTokenRequest() { - } + public UpdateNetworkTokenRequest() {} /** - * The new status of the network token. Possible values: **active**, **suspended**, **closed**. The **closed** status is final and cannot be changed. + * The new status of the network token. Possible values: **active**, **suspended**, **closed**. + * The **closed** status is final and cannot be changed. * - * @param status The new status of the network token. Possible values: **active**, **suspended**, **closed**. The **closed** status is final and cannot be changed. + * @param status The new status of the network token. Possible values: **active**, **suspended**, + * **closed**. The **closed** status is final and cannot be changed. * @return the current {@code UpdateNetworkTokenRequest} instance, allowing for method chaining */ public UpdateNetworkTokenRequest status(StatusEnum status) { @@ -92,8 +89,11 @@ public UpdateNetworkTokenRequest status(StatusEnum status) { } /** - * The new status of the network token. Possible values: **active**, **suspended**, **closed**. The **closed** status is final and cannot be changed. - * @return status The new status of the network token. Possible values: **active**, **suspended**, **closed**. The **closed** status is final and cannot be changed. + * The new status of the network token. Possible values: **active**, **suspended**, **closed**. + * The **closed** status is final and cannot be changed. + * + * @return status The new status of the network token. Possible values: **active**, **suspended**, + * **closed**. The **closed** status is final and cannot be changed. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,9 +102,11 @@ public StatusEnum getStatus() { } /** - * The new status of the network token. Possible values: **active**, **suspended**, **closed**. The **closed** status is final and cannot be changed. + * The new status of the network token. Possible values: **active**, **suspended**, **closed**. + * The **closed** status is final and cannot be changed. * - * @param status The new status of the network token. Possible values: **active**, **suspended**, **closed**. The **closed** status is final and cannot be changed. + * @param status The new status of the network token. Possible values: **active**, **suspended**, + * **closed**. The **closed** status is final and cannot be changed. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,9 +114,7 @@ public void setStatus(StatusEnum status) { this.status = status; } - /** - * Return true if this UpdateNetworkTokenRequest object is equal to o. - */ + /** Return true if this UpdateNetworkTokenRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -142,8 +142,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -152,21 +151,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of UpdateNetworkTokenRequest given an JSON string * * @param jsonString JSON string * @return An instance of UpdateNetworkTokenRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to UpdateNetworkTokenRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * UpdateNetworkTokenRequest */ - public static UpdateNetworkTokenRequest fromJson(String jsonString) throws JsonProcessingException { + public static UpdateNetworkTokenRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdateNetworkTokenRequest.class); } -/** - * Convert an instance of UpdateNetworkTokenRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of UpdateNetworkTokenRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/UpdatePaymentInstrument.java b/src/main/java/com/adyen/model/balanceplatform/UpdatePaymentInstrument.java index de441d6d7..ef7c6c6d7 100644 --- a/src/main/java/com/adyen/model/balanceplatform/UpdatePaymentInstrument.java +++ b/src/main/java/com/adyen/model/balanceplatform/UpdatePaymentInstrument.java @@ -2,36 +2,28 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.BankAccountDetails; -import com.adyen.model.balanceplatform.Card; -import com.adyen.model.balanceplatform.PaymentInstrumentAdditionalBankAccountIdentificationsInner; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * UpdatePaymentInstrument - */ +/** UpdatePaymentInstrument */ @JsonPropertyOrder({ UpdatePaymentInstrument.JSON_PROPERTY_ADDITIONAL_BANK_ACCOUNT_IDENTIFICATIONS, UpdatePaymentInstrument.JSON_PROPERTY_BALANCE_ACCOUNT_ID, @@ -49,11 +41,12 @@ UpdatePaymentInstrument.JSON_PROPERTY_STATUS_REASON, UpdatePaymentInstrument.JSON_PROPERTY_TYPE }) - public class UpdatePaymentInstrument { - public static final String JSON_PROPERTY_ADDITIONAL_BANK_ACCOUNT_IDENTIFICATIONS = "additionalBankAccountIdentifications"; + public static final String JSON_PROPERTY_ADDITIONAL_BANK_ACCOUNT_IDENTIFICATIONS = + "additionalBankAccountIdentifications"; @Deprecated // deprecated since Configuration API v2: Please use `bankAccount` object instead - private List additionalBankAccountIdentifications; + private List + additionalBankAccountIdentifications; public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; @@ -86,10 +79,16 @@ public class UpdatePaymentInstrument { private String replacementOfId; /** - * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment + * instrument, it is set to **active** by default. However, there can be exceptions for cards + * based on the `card.formFactor` and the `issuingCountryCode`. For example, + * when issuing physical cards in the US, the default status is **inactive**. Possible values: * + * **active**: The payment instrument is active and can be used to make payments. * **inactive**: + * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The + * payment instrument is suspended, either because it was stolen or lost. * **closed**: The + * payment instrument is permanently closed. This action cannot be undone. */ public enum StatusEnum { - ACTIVE(String.valueOf("active")), CLOSED(String.valueOf("closed")), @@ -103,7 +102,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -124,7 +123,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -136,10 +139,12 @@ public static StatusEnum fromValue(String value) { private String statusComment; /** - * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * The reason for the status of the payment instrument. Possible values: **accountClosure**, + * **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, + * **transactionRule**, **other**. If the reason is **other**, you must also send the + * `statusComment` parameter describing the status change. */ public enum StatusReasonEnum { - ACCOUNTCLOSURE(String.valueOf("accountClosure")), DAMAGED(String.valueOf("damaged")), @@ -163,7 +168,7 @@ public enum StatusReasonEnum { private String value; StatusReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -184,7 +189,11 @@ public static StatusReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusReasonEnum.values())); + LOG.warning( + "StatusReasonEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusReasonEnum.values())); return null; } } @@ -192,11 +201,8 @@ public static StatusReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS_REASON = "statusReason"; private StatusReasonEnum statusReason; - /** - * The type of payment instrument. Possible values: **card**, **bankAccount**. - */ + /** The type of payment instrument. Possible values: **card**, **bankAccount**. */ public enum TypeEnum { - BANKACCOUNT(String.valueOf("bankAccount")), CARD(String.valueOf("card")); @@ -206,7 +212,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -227,7 +233,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -235,25 +245,29 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public UpdatePaymentInstrument() { - } + public UpdatePaymentInstrument() {} /** - * Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. + * Contains optional, additional business account details. Returned when you create a payment + * instrument with `type` **bankAccount**. * - * @param additionalBankAccountIdentifications Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. + * @param additionalBankAccountIdentifications Contains optional, additional business account + * details. Returned when you create a payment instrument with `type` + * **bankAccount**. * @return the current {@code UpdatePaymentInstrument} instance, allowing for method chaining - * - * @deprecated since Configuration API v2 - * Please use `bankAccount` object instead + * @deprecated since Configuration API v2 Please use `bankAccount` object instead */ @Deprecated // deprecated since Configuration API v2: Please use `bankAccount` object instead - public UpdatePaymentInstrument additionalBankAccountIdentifications(List additionalBankAccountIdentifications) { + public UpdatePaymentInstrument additionalBankAccountIdentifications( + List + additionalBankAccountIdentifications) { this.additionalBankAccountIdentifications = additionalBankAccountIdentifications; return this; } - public UpdatePaymentInstrument addAdditionalBankAccountIdentificationsItem(PaymentInstrumentAdditionalBankAccountIdentificationsInner additionalBankAccountIdentificationsItem) { + public UpdatePaymentInstrument addAdditionalBankAccountIdentificationsItem( + PaymentInstrumentAdditionalBankAccountIdentificationsInner + additionalBankAccountIdentificationsItem) { if (this.additionalBankAccountIdentifications == null) { this.additionalBankAccountIdentifications = new ArrayList<>(); } @@ -262,36 +276,48 @@ public UpdatePaymentInstrument addAdditionalBankAccountIdentificationsItem(Payme } /** - * Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. - * @return additionalBankAccountIdentifications Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. + * Contains optional, additional business account details. Returned when you create a payment + * instrument with `type` **bankAccount**. + * + * @return additionalBankAccountIdentifications Contains optional, additional business account + * details. Returned when you create a payment instrument with `type` + * **bankAccount**. * @deprecated // deprecated since Configuration API v2: Please use `bankAccount` object instead */ @Deprecated // deprecated since Configuration API v2: Please use `bankAccount` object instead @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_ACCOUNT_IDENTIFICATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getAdditionalBankAccountIdentifications() { + public List + getAdditionalBankAccountIdentifications() { return additionalBankAccountIdentifications; } /** - * Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. + * Contains optional, additional business account details. Returned when you create a payment + * instrument with `type` **bankAccount**. * - * @param additionalBankAccountIdentifications Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. - * - * @deprecated since Configuration API v2 - * Please use `bankAccount` object instead + * @param additionalBankAccountIdentifications Contains optional, additional business account + * details. Returned when you create a payment instrument with `type` + * **bankAccount**. + * @deprecated since Configuration API v2 Please use `bankAccount` object instead */ @Deprecated // deprecated since Configuration API v2: Please use `bankAccount` object instead @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_ACCOUNT_IDENTIFICATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAdditionalBankAccountIdentifications(List additionalBankAccountIdentifications) { + public void setAdditionalBankAccountIdentifications( + List + additionalBankAccountIdentifications) { this.additionalBankAccountIdentifications = additionalBankAccountIdentifications; } /** - * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. + * The unique identifier of the [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) + * associated with the payment instrument. * - * @param balanceAccountId The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. + * @param balanceAccountId The unique identifier of the [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) + * associated with the payment instrument. * @return the current {@code UpdatePaymentInstrument} instance, allowing for method chaining */ public UpdatePaymentInstrument balanceAccountId(String balanceAccountId) { @@ -300,8 +326,13 @@ public UpdatePaymentInstrument balanceAccountId(String balanceAccountId) { } /** - * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. - * @return balanceAccountId The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. + * The unique identifier of the [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) + * associated with the payment instrument. + * + * @return balanceAccountId The unique identifier of the [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) + * associated with the payment instrument. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -310,9 +341,13 @@ public String getBalanceAccountId() { } /** - * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. + * The unique identifier of the [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) + * associated with the payment instrument. * - * @param balanceAccountId The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. + * @param balanceAccountId The unique identifier of the [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) + * associated with the payment instrument. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -323,7 +358,7 @@ public void setBalanceAccountId(String balanceAccountId) { /** * bankAccount * - * @param bankAccount + * @param bankAccount * @return the current {@code UpdatePaymentInstrument} instance, allowing for method chaining */ public UpdatePaymentInstrument bankAccount(BankAccountDetails bankAccount) { @@ -333,7 +368,8 @@ public UpdatePaymentInstrument bankAccount(BankAccountDetails bankAccount) { /** * Get bankAccount - * @return bankAccount + * + * @return bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -344,7 +380,7 @@ public BankAccountDetails getBankAccount() { /** * bankAccount * - * @param bankAccount + * @param bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -355,7 +391,7 @@ public void setBankAccount(BankAccountDetails bankAccount) { /** * card * - * @param card + * @param card * @return the current {@code UpdatePaymentInstrument} instance, allowing for method chaining */ public UpdatePaymentInstrument card(Card card) { @@ -365,7 +401,8 @@ public UpdatePaymentInstrument card(Card card) { /** * Get card - * @return card + * + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -376,7 +413,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -397,6 +434,7 @@ public UpdatePaymentInstrument description(String description) { /** * Your description for the payment instrument, maximum 300 characters. + * * @return description Your description for the payment instrument, maximum 300 characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -429,6 +467,7 @@ public UpdatePaymentInstrument id(String id) { /** * The unique identifier of the payment instrument. + * * @return id The unique identifier of the payment instrument. */ @JsonProperty(JSON_PROPERTY_ID) @@ -449,9 +488,12 @@ public void setId(String id) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code where the payment instrument is issued. For example, **NL** or **US**. * - * @param issuingCountryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. + * @param issuingCountryCode The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment + * instrument is issued. For example, **NL** or **US**. * @return the current {@code UpdatePaymentInstrument} instance, allowing for method chaining */ public UpdatePaymentInstrument issuingCountryCode(String issuingCountryCode) { @@ -460,8 +502,12 @@ public UpdatePaymentInstrument issuingCountryCode(String issuingCountryCode) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. - * @return issuingCountryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code where the payment instrument is issued. For example, **NL** or **US**. + * + * @return issuingCountryCode The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment + * instrument is issued. For example, **NL** or **US**. */ @JsonProperty(JSON_PROPERTY_ISSUING_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -470,9 +516,12 @@ public String getIssuingCountryCode() { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code where the payment instrument is issued. For example, **NL** or **US**. * - * @param issuingCountryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. + * @param issuingCountryCode The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment + * instrument is issued. For example, **NL** or **US**. */ @JsonProperty(JSON_PROPERTY_ISSUING_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -481,9 +530,13 @@ public void setIssuingCountryCode(String issuingCountryCode) { } /** - * The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. + * The unique identifier of the [payment instrument + * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) + * to which the payment instrument belongs. * - * @param paymentInstrumentGroupId The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. + * @param paymentInstrumentGroupId The unique identifier of the [payment instrument + * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) + * to which the payment instrument belongs. * @return the current {@code UpdatePaymentInstrument} instance, allowing for method chaining */ public UpdatePaymentInstrument paymentInstrumentGroupId(String paymentInstrumentGroupId) { @@ -492,8 +545,13 @@ public UpdatePaymentInstrument paymentInstrumentGroupId(String paymentInstrument } /** - * The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. - * @return paymentInstrumentGroupId The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. + * The unique identifier of the [payment instrument + * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) + * to which the payment instrument belongs. + * + * @return paymentInstrumentGroupId The unique identifier of the [payment instrument + * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) + * to which the payment instrument belongs. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_GROUP_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -502,9 +560,13 @@ public String getPaymentInstrumentGroupId() { } /** - * The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. + * The unique identifier of the [payment instrument + * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) + * to which the payment instrument belongs. * - * @param paymentInstrumentGroupId The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. + * @param paymentInstrumentGroupId The unique identifier of the [payment instrument + * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) + * to which the payment instrument belongs. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_GROUP_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -525,6 +587,7 @@ public UpdatePaymentInstrument reference(String reference) { /** * Your reference for the payment instrument, maximum 150 characters. + * * @return reference Your reference for the payment instrument, maximum 150 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -547,7 +610,8 @@ public void setReference(String reference) { /** * The unique identifier of the payment instrument that replaced this payment instrument. * - * @param replacedById The unique identifier of the payment instrument that replaced this payment instrument. + * @param replacedById The unique identifier of the payment instrument that replaced this payment + * instrument. * @return the current {@code UpdatePaymentInstrument} instance, allowing for method chaining */ public UpdatePaymentInstrument replacedById(String replacedById) { @@ -557,7 +621,9 @@ public UpdatePaymentInstrument replacedById(String replacedById) { /** * The unique identifier of the payment instrument that replaced this payment instrument. - * @return replacedById The unique identifier of the payment instrument that replaced this payment instrument. + * + * @return replacedById The unique identifier of the payment instrument that replaced this payment + * instrument. */ @JsonProperty(JSON_PROPERTY_REPLACED_BY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -568,7 +634,8 @@ public String getReplacedById() { /** * The unique identifier of the payment instrument that replaced this payment instrument. * - * @param replacedById The unique identifier of the payment instrument that replaced this payment instrument. + * @param replacedById The unique identifier of the payment instrument that replaced this payment + * instrument. */ @JsonProperty(JSON_PROPERTY_REPLACED_BY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -579,7 +646,8 @@ public void setReplacedById(String replacedById) { /** * The unique identifier of the payment instrument that is replaced by this payment instrument. * - * @param replacementOfId The unique identifier of the payment instrument that is replaced by this payment instrument. + * @param replacementOfId The unique identifier of the payment instrument that is replaced by this + * payment instrument. * @return the current {@code UpdatePaymentInstrument} instance, allowing for method chaining */ public UpdatePaymentInstrument replacementOfId(String replacementOfId) { @@ -589,7 +657,9 @@ public UpdatePaymentInstrument replacementOfId(String replacementOfId) { /** * The unique identifier of the payment instrument that is replaced by this payment instrument. - * @return replacementOfId The unique identifier of the payment instrument that is replaced by this payment instrument. + * + * @return replacementOfId The unique identifier of the payment instrument that is replaced by + * this payment instrument. */ @JsonProperty(JSON_PROPERTY_REPLACEMENT_OF_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -600,7 +670,8 @@ public String getReplacementOfId() { /** * The unique identifier of the payment instrument that is replaced by this payment instrument. * - * @param replacementOfId The unique identifier of the payment instrument that is replaced by this payment instrument. + * @param replacementOfId The unique identifier of the payment instrument that is replaced by this + * payment instrument. */ @JsonProperty(JSON_PROPERTY_REPLACEMENT_OF_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -609,9 +680,24 @@ public void setReplacementOfId(String replacementOfId) { } /** - * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. - * - * @param status The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment + * instrument, it is set to **active** by default. However, there can be exceptions for cards + * based on the `card.formFactor` and the `issuingCountryCode`. For example, + * when issuing physical cards in the US, the default status is **inactive**. Possible values: * + * **active**: The payment instrument is active and can be used to make payments. * **inactive**: + * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The + * payment instrument is suspended, either because it was stolen or lost. * **closed**: The + * payment instrument is permanently closed. This action cannot be undone. + * + * @param status The status of the payment instrument. If a status is not specified when creating + * a payment instrument, it is set to **active** by default. However, there can be exceptions + * for cards based on the `card.formFactor` and the `issuingCountryCode`. + * For example, when issuing physical cards in the US, the default status is **inactive**. + * Possible values: * **active**: The payment instrument is active and can be used to make + * payments. * **inactive**: The payment instrument is inactive and cannot be used to make + * payments. * **suspended**: The payment instrument is suspended, either because it was + * stolen or lost. * **closed**: The payment instrument is permanently closed. This action + * cannot be undone. * @return the current {@code UpdatePaymentInstrument} instance, allowing for method chaining */ public UpdatePaymentInstrument status(StatusEnum status) { @@ -620,8 +706,24 @@ public UpdatePaymentInstrument status(StatusEnum status) { } /** - * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. - * @return status The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment + * instrument, it is set to **active** by default. However, there can be exceptions for cards + * based on the `card.formFactor` and the `issuingCountryCode`. For example, + * when issuing physical cards in the US, the default status is **inactive**. Possible values: * + * **active**: The payment instrument is active and can be used to make payments. * **inactive**: + * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The + * payment instrument is suspended, either because it was stolen or lost. * **closed**: The + * payment instrument is permanently closed. This action cannot be undone. + * + * @return status The status of the payment instrument. If a status is not specified when creating + * a payment instrument, it is set to **active** by default. However, there can be exceptions + * for cards based on the `card.formFactor` and the `issuingCountryCode`. + * For example, when issuing physical cards in the US, the default status is **inactive**. + * Possible values: * **active**: The payment instrument is active and can be used to make + * payments. * **inactive**: The payment instrument is inactive and cannot be used to make + * payments. * **suspended**: The payment instrument is suspended, either because it was + * stolen or lost. * **closed**: The payment instrument is permanently closed. This action + * cannot be undone. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -630,9 +732,24 @@ public StatusEnum getStatus() { } /** - * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment + * instrument, it is set to **active** by default. However, there can be exceptions for cards + * based on the `card.formFactor` and the `issuingCountryCode`. For example, + * when issuing physical cards in the US, the default status is **inactive**. Possible values: * + * **active**: The payment instrument is active and can be used to make payments. * **inactive**: + * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The + * payment instrument is suspended, either because it was stolen or lost. * **closed**: The + * payment instrument is permanently closed. This action cannot be undone. * - * @param status The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * @param status The status of the payment instrument. If a status is not specified when creating + * a payment instrument, it is set to **active** by default. However, there can be exceptions + * for cards based on the `card.formFactor` and the `issuingCountryCode`. + * For example, when issuing physical cards in the US, the default status is **inactive**. + * Possible values: * **active**: The payment instrument is active and can be used to make + * payments. * **inactive**: The payment instrument is inactive and cannot be used to make + * payments. * **suspended**: The payment instrument is suspended, either because it was + * stolen or lost. * **closed**: The payment instrument is permanently closed. This action + * cannot be undone. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -641,9 +758,11 @@ public void setStatus(StatusEnum status) { } /** - * Comment for the status of the payment instrument. Required if `statusReason` is **other**. + * Comment for the status of the payment instrument. Required if `statusReason` is + * **other**. * - * @param statusComment Comment for the status of the payment instrument. Required if `statusReason` is **other**. + * @param statusComment Comment for the status of the payment instrument. Required if + * `statusReason` is **other**. * @return the current {@code UpdatePaymentInstrument} instance, allowing for method chaining */ public UpdatePaymentInstrument statusComment(String statusComment) { @@ -652,8 +771,11 @@ public UpdatePaymentInstrument statusComment(String statusComment) { } /** - * Comment for the status of the payment instrument. Required if `statusReason` is **other**. - * @return statusComment Comment for the status of the payment instrument. Required if `statusReason` is **other**. + * Comment for the status of the payment instrument. Required if `statusReason` is + * **other**. + * + * @return statusComment Comment for the status of the payment instrument. Required if + * `statusReason` is **other**. */ @JsonProperty(JSON_PROPERTY_STATUS_COMMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -662,9 +784,11 @@ public String getStatusComment() { } /** - * Comment for the status of the payment instrument. Required if `statusReason` is **other**. + * Comment for the status of the payment instrument. Required if `statusReason` is + * **other**. * - * @param statusComment Comment for the status of the payment instrument. Required if `statusReason` is **other**. + * @param statusComment Comment for the status of the payment instrument. Required if + * `statusReason` is **other**. */ @JsonProperty(JSON_PROPERTY_STATUS_COMMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -673,9 +797,15 @@ public void setStatusComment(String statusComment) { } /** - * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * The reason for the status of the payment instrument. Possible values: **accountClosure**, + * **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, + * **transactionRule**, **other**. If the reason is **other**, you must also send the + * `statusComment` parameter describing the status change. * - * @param statusReason The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * @param statusReason The reason for the status of the payment instrument. Possible values: + * **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, + * **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must + * also send the `statusComment` parameter describing the status change. * @return the current {@code UpdatePaymentInstrument} instance, allowing for method chaining */ public UpdatePaymentInstrument statusReason(StatusReasonEnum statusReason) { @@ -684,8 +814,15 @@ public UpdatePaymentInstrument statusReason(StatusReasonEnum statusReason) { } /** - * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. - * @return statusReason The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * The reason for the status of the payment instrument. Possible values: **accountClosure**, + * **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, + * **transactionRule**, **other**. If the reason is **other**, you must also send the + * `statusComment` parameter describing the status change. + * + * @return statusReason The reason for the status of the payment instrument. Possible values: + * **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, + * **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must + * also send the `statusComment` parameter describing the status change. */ @JsonProperty(JSON_PROPERTY_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -694,9 +831,15 @@ public StatusReasonEnum getStatusReason() { } /** - * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * The reason for the status of the payment instrument. Possible values: **accountClosure**, + * **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, + * **transactionRule**, **other**. If the reason is **other**, you must also send the + * `statusComment` parameter describing the status change. * - * @param statusReason The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * @param statusReason The reason for the status of the payment instrument. Possible values: + * **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, + * **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must + * also send the `statusComment` parameter describing the status change. */ @JsonProperty(JSON_PROPERTY_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -705,9 +848,9 @@ public void setStatusReason(StatusReasonEnum statusReason) { } /** - * The type of payment instrument. Possible values: **card**, **bankAccount**. + * The type of payment instrument. Possible values: **card**, **bankAccount**. * - * @param type The type of payment instrument. Possible values: **card**, **bankAccount**. + * @param type The type of payment instrument. Possible values: **card**, **bankAccount**. * @return the current {@code UpdatePaymentInstrument} instance, allowing for method chaining */ public UpdatePaymentInstrument type(TypeEnum type) { @@ -716,8 +859,9 @@ public UpdatePaymentInstrument type(TypeEnum type) { } /** - * The type of payment instrument. Possible values: **card**, **bankAccount**. - * @return type The type of payment instrument. Possible values: **card**, **bankAccount**. + * The type of payment instrument. Possible values: **card**, **bankAccount**. + * + * @return type The type of payment instrument. Possible values: **card**, **bankAccount**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -726,9 +870,9 @@ public TypeEnum getType() { } /** - * The type of payment instrument. Possible values: **card**, **bankAccount**. + * The type of payment instrument. Possible values: **card**, **bankAccount**. * - * @param type The type of payment instrument. Possible values: **card**, **bankAccount**. + * @param type The type of payment instrument. Possible values: **card**, **bankAccount**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -736,9 +880,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this UpdatePaymentInstrument object is equal to o. - */ + /** Return true if this UpdatePaymentInstrument object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -748,40 +890,62 @@ public boolean equals(Object o) { return false; } UpdatePaymentInstrument updatePaymentInstrument = (UpdatePaymentInstrument) o; - return Objects.equals(this.additionalBankAccountIdentifications, updatePaymentInstrument.additionalBankAccountIdentifications) && - Objects.equals(this.balanceAccountId, updatePaymentInstrument.balanceAccountId) && - Objects.equals(this.bankAccount, updatePaymentInstrument.bankAccount) && - Objects.equals(this.card, updatePaymentInstrument.card) && - Objects.equals(this.description, updatePaymentInstrument.description) && - Objects.equals(this.id, updatePaymentInstrument.id) && - Objects.equals(this.issuingCountryCode, updatePaymentInstrument.issuingCountryCode) && - Objects.equals(this.paymentInstrumentGroupId, updatePaymentInstrument.paymentInstrumentGroupId) && - Objects.equals(this.reference, updatePaymentInstrument.reference) && - Objects.equals(this.replacedById, updatePaymentInstrument.replacedById) && - Objects.equals(this.replacementOfId, updatePaymentInstrument.replacementOfId) && - Objects.equals(this.status, updatePaymentInstrument.status) && - Objects.equals(this.statusComment, updatePaymentInstrument.statusComment) && - Objects.equals(this.statusReason, updatePaymentInstrument.statusReason) && - Objects.equals(this.type, updatePaymentInstrument.type); + return Objects.equals( + this.additionalBankAccountIdentifications, + updatePaymentInstrument.additionalBankAccountIdentifications) + && Objects.equals(this.balanceAccountId, updatePaymentInstrument.balanceAccountId) + && Objects.equals(this.bankAccount, updatePaymentInstrument.bankAccount) + && Objects.equals(this.card, updatePaymentInstrument.card) + && Objects.equals(this.description, updatePaymentInstrument.description) + && Objects.equals(this.id, updatePaymentInstrument.id) + && Objects.equals(this.issuingCountryCode, updatePaymentInstrument.issuingCountryCode) + && Objects.equals( + this.paymentInstrumentGroupId, updatePaymentInstrument.paymentInstrumentGroupId) + && Objects.equals(this.reference, updatePaymentInstrument.reference) + && Objects.equals(this.replacedById, updatePaymentInstrument.replacedById) + && Objects.equals(this.replacementOfId, updatePaymentInstrument.replacementOfId) + && Objects.equals(this.status, updatePaymentInstrument.status) + && Objects.equals(this.statusComment, updatePaymentInstrument.statusComment) + && Objects.equals(this.statusReason, updatePaymentInstrument.statusReason) + && Objects.equals(this.type, updatePaymentInstrument.type); } @Override public int hashCode() { - return Objects.hash(additionalBankAccountIdentifications, balanceAccountId, bankAccount, card, description, id, issuingCountryCode, paymentInstrumentGroupId, reference, replacedById, replacementOfId, status, statusComment, statusReason, type); + return Objects.hash( + additionalBankAccountIdentifications, + balanceAccountId, + bankAccount, + card, + description, + id, + issuingCountryCode, + paymentInstrumentGroupId, + reference, + replacedById, + replacementOfId, + status, + statusComment, + statusReason, + type); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdatePaymentInstrument {\n"); - sb.append(" additionalBankAccountIdentifications: ").append(toIndentedString(additionalBankAccountIdentifications)).append("\n"); + sb.append(" additionalBankAccountIdentifications: ") + .append(toIndentedString(additionalBankAccountIdentifications)) + .append("\n"); sb.append(" balanceAccountId: ").append(toIndentedString(balanceAccountId)).append("\n"); sb.append(" bankAccount: ").append(toIndentedString(bankAccount)).append("\n"); sb.append(" card: ").append(toIndentedString(card)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" issuingCountryCode: ").append(toIndentedString(issuingCountryCode)).append("\n"); - sb.append(" paymentInstrumentGroupId: ").append(toIndentedString(paymentInstrumentGroupId)).append("\n"); + sb.append(" paymentInstrumentGroupId: ") + .append(toIndentedString(paymentInstrumentGroupId)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" replacedById: ").append(toIndentedString(replacedById)).append("\n"); sb.append(" replacementOfId: ").append(toIndentedString(replacementOfId)).append("\n"); @@ -794,8 +958,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -804,21 +967,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of UpdatePaymentInstrument given an JSON string * * @param jsonString JSON string * @return An instance of UpdatePaymentInstrument - * @throws JsonProcessingException if the JSON string is invalid with respect to UpdatePaymentInstrument + * @throws JsonProcessingException if the JSON string is invalid with respect to + * UpdatePaymentInstrument */ public static UpdatePaymentInstrument fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdatePaymentInstrument.class); } -/** - * Convert an instance of UpdatePaymentInstrument to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of UpdatePaymentInstrument to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/UpdateSweepConfigurationV2.java b/src/main/java/com/adyen/model/balanceplatform/UpdateSweepConfigurationV2.java index 96cdd4a51..ff6417562 100644 --- a/src/main/java/com/adyen/model/balanceplatform/UpdateSweepConfigurationV2.java +++ b/src/main/java/com/adyen/model/balanceplatform/UpdateSweepConfigurationV2.java @@ -2,36 +2,28 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.Amount; -import com.adyen.model.balanceplatform.SweepCounterparty; -import com.adyen.model.balanceplatform.SweepSchedule; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * UpdateSweepConfigurationV2 - */ +/** UpdateSweepConfigurationV2 */ @JsonPropertyOrder({ UpdateSweepConfigurationV2.JSON_PROPERTY_CATEGORY, UpdateSweepConfigurationV2.JSON_PROPERTY_COUNTERPARTY, @@ -50,13 +42,16 @@ UpdateSweepConfigurationV2.JSON_PROPERTY_TRIGGER_AMOUNT, UpdateSweepConfigurationV2.JSON_PROPERTY_TYPE }) - public class UpdateSweepConfigurationV2 { /** - * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. + * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a + * [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * - **internal**: Transfer to another [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. Required when setting `priorities`. */ public enum CategoryEnum { - BANK(String.valueOf("bank")), INTERNAL(String.valueOf("internal")), @@ -68,7 +63,7 @@ public enum CategoryEnum { private String value; CategoryEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -89,7 +84,11 @@ public static CategoryEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("CategoryEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CategoryEnum.values())); + LOG.warning( + "CategoryEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(CategoryEnum.values())); return null; } } @@ -109,11 +108,8 @@ public static CategoryEnum fromValue(String value) { public static final String JSON_PROPERTY_ID = "id"; private String id; - /** - * Gets or Sets priorities - */ + /** Gets or Sets priorities */ public enum PrioritiesEnum { - CROSSBORDER(String.valueOf("crossBorder")), FAST(String.valueOf("fast")), @@ -131,7 +127,7 @@ public enum PrioritiesEnum { private String value; PrioritiesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -152,7 +148,11 @@ public static PrioritiesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PrioritiesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PrioritiesEnum.values())); + LOG.warning( + "PrioritiesEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PrioritiesEnum.values())); return null; } } @@ -160,11 +160,8 @@ public static PrioritiesEnum fromValue(String value) { public static final String JSON_PROPERTY_PRIORITIES = "priorities"; private List priorities; - /** - * The reason for disabling the sweep. - */ + /** The reason for disabling the sweep. */ public enum ReasonEnum { - ACCOUNTHIERARCHYNOTACTIVE(String.valueOf("accountHierarchyNotActive")), AMOUNTLIMITEXCEEDED(String.valueOf("amountLimitExceeded")), @@ -173,7 +170,8 @@ public enum ReasonEnum { APPROVED(String.valueOf("approved")), - BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE(String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), + BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE( + String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), COUNTERPARTYACCOUNTBLOCKED(String.valueOf("counterpartyAccountBlocked")), @@ -220,7 +218,7 @@ public enum ReasonEnum { private String value; ReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -241,7 +239,11 @@ public static ReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ReasonEnum.values())); + LOG.warning( + "ReasonEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ReasonEnum.values())); return null; } } @@ -262,10 +264,11 @@ public static ReasonEnum fromValue(String value) { private SweepSchedule schedule; /** - * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * The status of the sweep. If not provided, by default, this is set to **active**. Possible + * values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on + * the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. */ public enum StatusEnum { - ACTIVE(String.valueOf("active")), INACTIVE(String.valueOf("inactive")); @@ -275,7 +278,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -296,7 +299,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -314,10 +321,12 @@ public static StatusEnum fromValue(String value) { private Amount triggerAmount; /** - * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. + * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not + * provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to + * a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source + * merchant account, transfer instrument, or balance account. */ public enum TypeEnum { - PULL(String.valueOf("pull")), PUSH(String.valueOf("push")); @@ -327,7 +336,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -348,7 +357,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -356,15 +369,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public UpdateSweepConfigurationV2() { - } + public UpdateSweepConfigurationV2() {} @JsonCreator public UpdateSweepConfigurationV2( - @JsonProperty(JSON_PROPERTY_ID) String id, - @JsonProperty(JSON_PROPERTY_REASON) ReasonEnum reason, - @JsonProperty(JSON_PROPERTY_REASON_DETAIL) String reasonDetail - ) { + @JsonProperty(JSON_PROPERTY_ID) String id, + @JsonProperty(JSON_PROPERTY_REASON) ReasonEnum reason, + @JsonProperty(JSON_PROPERTY_REASON_DETAIL) String reasonDetail) { this(); this.id = id; this.reason = reason; @@ -372,9 +383,19 @@ public UpdateSweepConfigurationV2( } /** - * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. + * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a + * [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * - **internal**: Transfer to another [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. Required when setting `priorities`. * - * @param category The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. + * @param category The type of transfer that results from the sweep. Possible values: - **bank**: + * Sweep to a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * - **internal**: Transfer to another [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. Required when setting `priorities`. * @return the current {@code UpdateSweepConfigurationV2} instance, allowing for method chaining */ public UpdateSweepConfigurationV2 category(CategoryEnum category) { @@ -383,8 +404,19 @@ public UpdateSweepConfigurationV2 category(CategoryEnum category) { } /** - * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. - * @return category The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. + * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a + * [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * - **internal**: Transfer to another [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. Required when setting `priorities`. + * + * @return category The type of transfer that results from the sweep. Possible values: - **bank**: + * Sweep to a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * - **internal**: Transfer to another [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. Required when setting `priorities`. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -393,9 +425,19 @@ public CategoryEnum getCategory() { } /** - * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. + * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a + * [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * - **internal**: Transfer to another [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. Required when setting `priorities`. * - * @param category The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. + * @param category The type of transfer that results from the sweep. Possible values: - **bank**: + * Sweep to a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * - **internal**: Transfer to another [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. Required when setting `priorities`. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -406,7 +448,7 @@ public void setCategory(CategoryEnum category) { /** * counterparty * - * @param counterparty + * @param counterparty * @return the current {@code UpdateSweepConfigurationV2} instance, allowing for method chaining */ public UpdateSweepConfigurationV2 counterparty(SweepCounterparty counterparty) { @@ -416,7 +458,8 @@ public UpdateSweepConfigurationV2 counterparty(SweepCounterparty counterparty) { /** * Get counterparty - * @return counterparty + * + * @return counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -427,7 +470,7 @@ public SweepCounterparty getCounterparty() { /** * counterparty * - * @param counterparty + * @param counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -436,9 +479,15 @@ public void setCounterparty(SweepCounterparty counterparty) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, + * **EUR**. The sweep currency must match any of the [balances + * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For + * example, **EUR**. The sweep currency must match any of the [balances + * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). * @return the current {@code UpdateSweepConfigurationV2} instance, allowing for method chaining */ public UpdateSweepConfigurationV2 currency(String currency) { @@ -447,8 +496,15 @@ public UpdateSweepConfigurationV2 currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, + * **EUR**. The sweep currency must match any of the [balances + * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For + * example, **EUR**. The sweep currency must match any of the [balances + * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -457,9 +513,15 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, + * **EUR**. The sweep currency must match any of the [balances + * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For + * example, **EUR**. The sweep currency must match any of the [balances + * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -468,9 +530,13 @@ public void setCurrency(String currency) { } /** - * The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. + * The message that will be used in the sweep transfer's description body with a maximum + * length of 140 characters. If the message is longer after replacing placeholders, the message + * will be cut off at 140 characters. * - * @param description The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. + * @param description The message that will be used in the sweep transfer's description body + * with a maximum length of 140 characters. If the message is longer after replacing + * placeholders, the message will be cut off at 140 characters. * @return the current {@code UpdateSweepConfigurationV2} instance, allowing for method chaining */ public UpdateSweepConfigurationV2 description(String description) { @@ -479,8 +545,13 @@ public UpdateSweepConfigurationV2 description(String description) { } /** - * The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. - * @return description The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. + * The message that will be used in the sweep transfer's description body with a maximum + * length of 140 characters. If the message is longer after replacing placeholders, the message + * will be cut off at 140 characters. + * + * @return description The message that will be used in the sweep transfer's description body + * with a maximum length of 140 characters. If the message is longer after replacing + * placeholders, the message will be cut off at 140 characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -489,9 +560,13 @@ public String getDescription() { } /** - * The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. + * The message that will be used in the sweep transfer's description body with a maximum + * length of 140 characters. If the message is longer after replacing placeholders, the message + * will be cut off at 140 characters. * - * @param description The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. + * @param description The message that will be used in the sweep transfer's description body + * with a maximum length of 140 characters. If the message is longer after replacing + * placeholders, the message will be cut off at 140 characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -501,6 +576,7 @@ public void setDescription(String description) { /** * The unique identifier of the sweep. + * * @return id The unique identifier of the sweep. */ @JsonProperty(JSON_PROPERTY_ID) @@ -509,11 +585,51 @@ public String getId() { return id; } - /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent + * and the fees that you have to pay. You can provide multiple priorities, ordered by your + * preference. Adyen will try to pay out using the priorities in the given order. If the first + * priority is not currently supported or enabled for your platform, the system will try the next + * one, and so on. The request will be accepted as long as **at least one** of the provided + * priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if + * you provide `[\"wire\",\"regular\"]`, and `wire` is not + * supported but `regular` is, the request will still be accepted and processed. + * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to + * transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. + * * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). Set `category` to **bank**. For more details, see optional priorities + * setup for + * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) + * or + * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). * - * @param priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * @param priorities The list of priorities for the bank transfer. This sets the speed at which + * the transfer is sent and the fees that you have to pay. You can provide multiple + * priorities, ordered by your preference. Adyen will try to pay out using the priorities in + * the given order. If the first priority is not currently supported or enabled for your + * platform, the system will try the next one, and so on. The request will be accepted as long + * as **at least one** of the provided priorities is valid (i.e., supported by Adyen and + * activated for your platform). For example, if you provide + * `[\"wire\",\"regular\"]`, and `wire` is not + * supported but `regular` is, the request will still be accepted and processed. + * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster + * way to transfer funds, but the fees are higher. Recommended for high-priority, low-value + * transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. + * Recommended for high-priority, high-value transactions. * **instant**: for instant funds + * transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). Set `category` to **bank**. For more details, see optional + * priorities setup for + * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) + * or + * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). * @return the current {@code UpdateSweepConfigurationV2} instance, allowing for method chaining */ public UpdateSweepConfigurationV2 priorities(List priorities) { @@ -530,8 +646,50 @@ public UpdateSweepConfigurationV2 addPrioritiesItem(PrioritiesEnum prioritiesIte } /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). - * @return priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent + * and the fees that you have to pay. You can provide multiple priorities, ordered by your + * preference. Adyen will try to pay out using the priorities in the given order. If the first + * priority is not currently supported or enabled for your platform, the system will try the next + * one, and so on. The request will be accepted as long as **at least one** of the provided + * priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if + * you provide `[\"wire\",\"regular\"]`, and `wire` is not + * supported but `regular` is, the request will still be accepted and processed. + * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to + * transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. + * * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). Set `category` to **bank**. For more details, see optional priorities + * setup for + * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) + * or + * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * + * @return priorities The list of priorities for the bank transfer. This sets the speed at which + * the transfer is sent and the fees that you have to pay. You can provide multiple + * priorities, ordered by your preference. Adyen will try to pay out using the priorities in + * the given order. If the first priority is not currently supported or enabled for your + * platform, the system will try the next one, and so on. The request will be accepted as long + * as **at least one** of the provided priorities is valid (i.e., supported by Adyen and + * activated for your platform). For example, if you provide + * `[\"wire\",\"regular\"]`, and `wire` is not + * supported but `regular` is, the request will still be accepted and processed. + * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster + * way to transfer funds, but the fees are higher. Recommended for high-priority, low-value + * transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. + * Recommended for high-priority, high-value transactions. * **instant**: for instant funds + * transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). Set `category` to **bank**. For more details, see optional + * priorities setup for + * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) + * or + * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). */ @JsonProperty(JSON_PROPERTY_PRIORITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -540,9 +698,50 @@ public List getPriorities() { } /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent + * and the fees that you have to pay. You can provide multiple priorities, ordered by your + * preference. Adyen will try to pay out using the priorities in the given order. If the first + * priority is not currently supported or enabled for your platform, the system will try the next + * one, and so on. The request will be accepted as long as **at least one** of the provided + * priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if + * you provide `[\"wire\",\"regular\"]`, and `wire` is not + * supported but `regular` is, the request will still be accepted and processed. + * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to + * transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. + * * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). Set `category` to **bank**. For more details, see optional priorities + * setup for + * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) + * or + * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). * - * @param priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * @param priorities The list of priorities for the bank transfer. This sets the speed at which + * the transfer is sent and the fees that you have to pay. You can provide multiple + * priorities, ordered by your preference. Adyen will try to pay out using the priorities in + * the given order. If the first priority is not currently supported or enabled for your + * platform, the system will try the next one, and so on. The request will be accepted as long + * as **at least one** of the provided priorities is valid (i.e., supported by Adyen and + * activated for your platform). For example, if you provide + * `[\"wire\",\"regular\"]`, and `wire` is not + * supported but `regular` is, the request will still be accepted and processed. + * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster + * way to transfer funds, but the fees are higher. Recommended for high-priority, low-value + * transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. + * Recommended for high-priority, high-value transactions. * **instant**: for instant funds + * transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). Set `category` to **bank**. For more details, see optional + * priorities setup for + * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) + * or + * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). */ @JsonProperty(JSON_PROPERTY_PRIORITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -552,6 +751,7 @@ public void setPriorities(List priorities) { /** * The reason for disabling the sweep. + * * @return reason The reason for disabling the sweep. */ @JsonProperty(JSON_PROPERTY_REASON) @@ -560,9 +760,9 @@ public ReasonEnum getReason() { return reason; } - /** * The human readable reason for disabling the sweep. + * * @return reasonDetail The human readable reason for disabling the sweep. */ @JsonProperty(JSON_PROPERTY_REASON_DETAIL) @@ -571,7 +771,6 @@ public String getReasonDetail() { return reasonDetail; } - /** * Your reference for the sweep configuration. * @@ -585,6 +784,7 @@ public UpdateSweepConfigurationV2 reference(String reference) { /** * Your reference for the sweep configuration. + * * @return reference Your reference for the sweep configuration. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -605,9 +805,11 @@ public void setReference(String reference) { } /** - * The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. + * The reference sent to or received from the counterparty. Only alphanumeric characters are + * allowed. * - * @param referenceForBeneficiary The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. + * @param referenceForBeneficiary The reference sent to or received from the counterparty. Only + * alphanumeric characters are allowed. * @return the current {@code UpdateSweepConfigurationV2} instance, allowing for method chaining */ public UpdateSweepConfigurationV2 referenceForBeneficiary(String referenceForBeneficiary) { @@ -616,8 +818,11 @@ public UpdateSweepConfigurationV2 referenceForBeneficiary(String referenceForBen } /** - * The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. - * @return referenceForBeneficiary The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. + * The reference sent to or received from the counterparty. Only alphanumeric characters are + * allowed. + * + * @return referenceForBeneficiary The reference sent to or received from the counterparty. Only + * alphanumeric characters are allowed. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -626,9 +831,11 @@ public String getReferenceForBeneficiary() { } /** - * The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. + * The reference sent to or received from the counterparty. Only alphanumeric characters are + * allowed. * - * @param referenceForBeneficiary The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. + * @param referenceForBeneficiary The reference sent to or received from the counterparty. Only + * alphanumeric characters are allowed. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -639,7 +846,7 @@ public void setReferenceForBeneficiary(String referenceForBeneficiary) { /** * schedule * - * @param schedule + * @param schedule * @return the current {@code UpdateSweepConfigurationV2} instance, allowing for method chaining */ public UpdateSweepConfigurationV2 schedule(SweepSchedule schedule) { @@ -649,7 +856,8 @@ public UpdateSweepConfigurationV2 schedule(SweepSchedule schedule) { /** * Get schedule - * @return schedule + * + * @return schedule */ @JsonProperty(JSON_PROPERTY_SCHEDULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -660,7 +868,7 @@ public SweepSchedule getSchedule() { /** * schedule * - * @param schedule + * @param schedule */ @JsonProperty(JSON_PROPERTY_SCHEDULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -669,9 +877,14 @@ public void setSchedule(SweepSchedule schedule) { } /** - * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * The status of the sweep. If not provided, by default, this is set to **active**. Possible + * values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on + * the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. * - * @param status The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * @param status The status of the sweep. If not provided, by default, this is set to **active**. + * Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed + * out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be + * triggered. * @return the current {@code UpdateSweepConfigurationV2} instance, allowing for method chaining */ public UpdateSweepConfigurationV2 status(StatusEnum status) { @@ -680,8 +893,14 @@ public UpdateSweepConfigurationV2 status(StatusEnum status) { } /** - * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. - * @return status The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * The status of the sweep. If not provided, by default, this is set to **active**. Possible + * values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on + * the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * + * @return status The status of the sweep. If not provided, by default, this is set to **active**. + * Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed + * out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be + * triggered. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -690,9 +909,14 @@ public StatusEnum getStatus() { } /** - * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * The status of the sweep. If not provided, by default, this is set to **active**. Possible + * values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on + * the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. * - * @param status The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * @param status The status of the sweep. If not provided, by default, this is set to **active**. + * Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed + * out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be + * triggered. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -703,7 +927,7 @@ public void setStatus(StatusEnum status) { /** * sweepAmount * - * @param sweepAmount + * @param sweepAmount * @return the current {@code UpdateSweepConfigurationV2} instance, allowing for method chaining */ public UpdateSweepConfigurationV2 sweepAmount(Amount sweepAmount) { @@ -713,7 +937,8 @@ public UpdateSweepConfigurationV2 sweepAmount(Amount sweepAmount) { /** * Get sweepAmount - * @return sweepAmount + * + * @return sweepAmount */ @JsonProperty(JSON_PROPERTY_SWEEP_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -724,7 +949,7 @@ public Amount getSweepAmount() { /** * sweepAmount * - * @param sweepAmount + * @param sweepAmount */ @JsonProperty(JSON_PROPERTY_SWEEP_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -735,7 +960,7 @@ public void setSweepAmount(Amount sweepAmount) { /** * targetAmount * - * @param targetAmount + * @param targetAmount * @return the current {@code UpdateSweepConfigurationV2} instance, allowing for method chaining */ public UpdateSweepConfigurationV2 targetAmount(Amount targetAmount) { @@ -745,7 +970,8 @@ public UpdateSweepConfigurationV2 targetAmount(Amount targetAmount) { /** * Get targetAmount - * @return targetAmount + * + * @return targetAmount */ @JsonProperty(JSON_PROPERTY_TARGET_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -756,7 +982,7 @@ public Amount getTargetAmount() { /** * targetAmount * - * @param targetAmount + * @param targetAmount */ @JsonProperty(JSON_PROPERTY_TARGET_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -767,7 +993,7 @@ public void setTargetAmount(Amount targetAmount) { /** * triggerAmount * - * @param triggerAmount + * @param triggerAmount * @return the current {@code UpdateSweepConfigurationV2} instance, allowing for method chaining */ public UpdateSweepConfigurationV2 triggerAmount(Amount triggerAmount) { @@ -777,7 +1003,8 @@ public UpdateSweepConfigurationV2 triggerAmount(Amount triggerAmount) { /** * Get triggerAmount - * @return triggerAmount + * + * @return triggerAmount */ @JsonProperty(JSON_PROPERTY_TRIGGER_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -788,7 +1015,7 @@ public Amount getTriggerAmount() { /** * triggerAmount * - * @param triggerAmount + * @param triggerAmount */ @JsonProperty(JSON_PROPERTY_TRIGGER_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -797,9 +1024,15 @@ public void setTriggerAmount(Amount triggerAmount) { } /** - * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. + * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not + * provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to + * a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source + * merchant account, transfer instrument, or balance account. * - * @param type The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. + * @param type The direction of sweep, whether pushing out or pulling in funds to the balance + * account. If not provided, by default, this is set to **push**. Possible values: * **push**: + * _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull + * in funds_ from a source merchant account, transfer instrument, or balance account. * @return the current {@code UpdateSweepConfigurationV2} instance, allowing for method chaining */ public UpdateSweepConfigurationV2 type(TypeEnum type) { @@ -808,8 +1041,15 @@ public UpdateSweepConfigurationV2 type(TypeEnum type) { } /** - * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. - * @return type The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. + * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not + * provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to + * a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source + * merchant account, transfer instrument, or balance account. + * + * @return type The direction of sweep, whether pushing out or pulling in funds to the balance + * account. If not provided, by default, this is set to **push**. Possible values: * **push**: + * _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull + * in funds_ from a source merchant account, transfer instrument, or balance account. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -818,9 +1058,15 @@ public TypeEnum getType() { } /** - * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. + * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not + * provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to + * a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source + * merchant account, transfer instrument, or balance account. * - * @param type The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. + * @param type The direction of sweep, whether pushing out or pulling in funds to the balance + * account. If not provided, by default, this is set to **push**. Possible values: * **push**: + * _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull + * in funds_ from a source merchant account, transfer instrument, or balance account. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -828,9 +1074,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this UpdateSweepConfigurationV2 object is equal to o. - */ + /** Return true if this UpdateSweepConfigurationV2 object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -840,27 +1084,44 @@ public boolean equals(Object o) { return false; } UpdateSweepConfigurationV2 updateSweepConfigurationV2 = (UpdateSweepConfigurationV2) o; - return Objects.equals(this.category, updateSweepConfigurationV2.category) && - Objects.equals(this.counterparty, updateSweepConfigurationV2.counterparty) && - Objects.equals(this.currency, updateSweepConfigurationV2.currency) && - Objects.equals(this.description, updateSweepConfigurationV2.description) && - Objects.equals(this.id, updateSweepConfigurationV2.id) && - Objects.equals(this.priorities, updateSweepConfigurationV2.priorities) && - Objects.equals(this.reason, updateSweepConfigurationV2.reason) && - Objects.equals(this.reasonDetail, updateSweepConfigurationV2.reasonDetail) && - Objects.equals(this.reference, updateSweepConfigurationV2.reference) && - Objects.equals(this.referenceForBeneficiary, updateSweepConfigurationV2.referenceForBeneficiary) && - Objects.equals(this.schedule, updateSweepConfigurationV2.schedule) && - Objects.equals(this.status, updateSweepConfigurationV2.status) && - Objects.equals(this.sweepAmount, updateSweepConfigurationV2.sweepAmount) && - Objects.equals(this.targetAmount, updateSweepConfigurationV2.targetAmount) && - Objects.equals(this.triggerAmount, updateSweepConfigurationV2.triggerAmount) && - Objects.equals(this.type, updateSweepConfigurationV2.type); + return Objects.equals(this.category, updateSweepConfigurationV2.category) + && Objects.equals(this.counterparty, updateSweepConfigurationV2.counterparty) + && Objects.equals(this.currency, updateSweepConfigurationV2.currency) + && Objects.equals(this.description, updateSweepConfigurationV2.description) + && Objects.equals(this.id, updateSweepConfigurationV2.id) + && Objects.equals(this.priorities, updateSweepConfigurationV2.priorities) + && Objects.equals(this.reason, updateSweepConfigurationV2.reason) + && Objects.equals(this.reasonDetail, updateSweepConfigurationV2.reasonDetail) + && Objects.equals(this.reference, updateSweepConfigurationV2.reference) + && Objects.equals( + this.referenceForBeneficiary, updateSweepConfigurationV2.referenceForBeneficiary) + && Objects.equals(this.schedule, updateSweepConfigurationV2.schedule) + && Objects.equals(this.status, updateSweepConfigurationV2.status) + && Objects.equals(this.sweepAmount, updateSweepConfigurationV2.sweepAmount) + && Objects.equals(this.targetAmount, updateSweepConfigurationV2.targetAmount) + && Objects.equals(this.triggerAmount, updateSweepConfigurationV2.triggerAmount) + && Objects.equals(this.type, updateSweepConfigurationV2.type); } @Override public int hashCode() { - return Objects.hash(category, counterparty, currency, description, id, priorities, reason, reasonDetail, reference, referenceForBeneficiary, schedule, status, sweepAmount, targetAmount, triggerAmount, type); + return Objects.hash( + category, + counterparty, + currency, + description, + id, + priorities, + reason, + reasonDetail, + reference, + referenceForBeneficiary, + schedule, + status, + sweepAmount, + targetAmount, + triggerAmount, + type); } @Override @@ -876,7 +1137,9 @@ public String toString() { sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" reasonDetail: ").append(toIndentedString(reasonDetail)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); - sb.append(" referenceForBeneficiary: ").append(toIndentedString(referenceForBeneficiary)).append("\n"); + sb.append(" referenceForBeneficiary: ") + .append(toIndentedString(referenceForBeneficiary)) + .append("\n"); sb.append(" schedule: ").append(toIndentedString(schedule)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" sweepAmount: ").append(toIndentedString(sweepAmount)).append("\n"); @@ -888,8 +1151,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -898,21 +1160,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of UpdateSweepConfigurationV2 given an JSON string * * @param jsonString JSON string * @return An instance of UpdateSweepConfigurationV2 - * @throws JsonProcessingException if the JSON string is invalid with respect to UpdateSweepConfigurationV2 + * @throws JsonProcessingException if the JSON string is invalid with respect to + * UpdateSweepConfigurationV2 */ - public static UpdateSweepConfigurationV2 fromJson(String jsonString) throws JsonProcessingException { + public static UpdateSweepConfigurationV2 fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdateSweepConfigurationV2.class); } -/** - * Convert an instance of UpdateSweepConfigurationV2 to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of UpdateSweepConfigurationV2 to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/VerificationDeadline.java b/src/main/java/com/adyen/model/balanceplatform/VerificationDeadline.java index d81739b5e..1b1306286 100644 --- a/src/main/java/com/adyen/model/balanceplatform/VerificationDeadline.java +++ b/src/main/java/com/adyen/model/balanceplatform/VerificationDeadline.java @@ -2,61 +2,57 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.ArrayList; +import java.util.*; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * VerificationDeadline - */ +/** VerificationDeadline */ @JsonPropertyOrder({ VerificationDeadline.JSON_PROPERTY_CAPABILITIES, VerificationDeadline.JSON_PROPERTY_ENTITY_IDS, VerificationDeadline.JSON_PROPERTY_EXPIRES_AT }) - public class VerificationDeadline { - /** - * Gets or Sets capabilities - */ + /** Gets or Sets capabilities */ public enum CapabilitiesEnum { - ACCEPTEXTERNALFUNDING(String.valueOf("acceptExternalFunding")), ACCEPTPSPFUNDING(String.valueOf("acceptPspFunding")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES(String.valueOf("acceptTransactionInRestrictedCountries")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES( + String.valueOf("acceptTransactionInRestrictedCountries")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER( + String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES(String.valueOf("acceptTransactionInRestrictedIndustries")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES( + String.valueOf("acceptTransactionInRestrictedIndustries")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL( + String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER( + String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), ACQUIRING(String.valueOf("acquiring")), @@ -68,9 +64,11 @@ public enum CapabilitiesEnum { ATMWITHDRAWALINRESTRICTEDCOUNTRIES(String.valueOf("atmWithdrawalInRestrictedCountries")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER( + String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), AUTHORISEDPAYMENTINSTRUMENTUSER(String.valueOf("authorisedPaymentInstrumentUser")), @@ -126,13 +124,15 @@ public enum CapabilitiesEnum { USECARDINRESTRICTEDCOUNTRIES(String.valueOf("useCardInRestrictedCountries")), - USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedCountriesCommercial")), + USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("useCardInRestrictedCountriesCommercial")), USECARDINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("useCardInRestrictedCountriesConsumer")), USECARDINRESTRICTEDINDUSTRIES(String.valueOf("useCardInRestrictedIndustries")), - USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedIndustriesCommercial")), + USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL( + String.valueOf("useCardInRestrictedIndustriesCommercial")), USECARDINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("useCardInRestrictedIndustriesConsumer")), @@ -148,16 +148,18 @@ public enum CapabilitiesEnum { WITHDRAWFROMATMINRESTRICTEDCOUNTRIES(String.valueOf("withdrawFromAtmInRestrictedCountries")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER( + String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); private static final Logger LOG = Logger.getLogger(CapabilitiesEnum.class.getName()); private String value; CapabilitiesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -178,7 +180,11 @@ public static CapabilitiesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("CapabilitiesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CapabilitiesEnum.values())); + LOG.warning( + "CapabilitiesEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(CapabilitiesEnum.values())); return null; } } @@ -192,15 +198,13 @@ public static CapabilitiesEnum fromValue(String value) { public static final String JSON_PROPERTY_EXPIRES_AT = "expiresAt"; private OffsetDateTime expiresAt; - public VerificationDeadline() { - } + public VerificationDeadline() {} @JsonCreator public VerificationDeadline( - @JsonProperty(JSON_PROPERTY_CAPABILITIES) List capabilities, - @JsonProperty(JSON_PROPERTY_ENTITY_IDS) List entityIds, - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) OffsetDateTime expiresAt - ) { + @JsonProperty(JSON_PROPERTY_CAPABILITIES) List capabilities, + @JsonProperty(JSON_PROPERTY_ENTITY_IDS) List entityIds, + @JsonProperty(JSON_PROPERTY_EXPIRES_AT) OffsetDateTime expiresAt) { this(); this.capabilities = capabilities; this.entityIds = entityIds; @@ -209,6 +213,7 @@ public VerificationDeadline( /** * The names of the capabilities to be disallowed. + * * @return capabilities The names of the capabilities to be disallowed. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @@ -217,9 +222,9 @@ public List getCapabilities() { return capabilities; } - /** * The unique identifiers of the bank account(s) that the deadline applies to + * * @return entityIds The unique identifiers of the bank account(s) that the deadline applies to */ @JsonProperty(JSON_PROPERTY_ENTITY_IDS) @@ -228,9 +233,9 @@ public List getEntityIds() { return entityIds; } - /** * The date that verification is due by before capabilities are disallowed. + * * @return expiresAt The date that verification is due by before capabilities are disallowed. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @@ -239,10 +244,7 @@ public OffsetDateTime getExpiresAt() { return expiresAt; } - - /** - * Return true if this VerificationDeadline object is equal to o. - */ + /** Return true if this VerificationDeadline object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -252,9 +254,9 @@ public boolean equals(Object o) { return false; } VerificationDeadline verificationDeadline = (VerificationDeadline) o; - return Objects.equals(this.capabilities, verificationDeadline.capabilities) && - Objects.equals(this.entityIds, verificationDeadline.entityIds) && - Objects.equals(this.expiresAt, verificationDeadline.expiresAt); + return Objects.equals(this.capabilities, verificationDeadline.capabilities) + && Objects.equals(this.entityIds, verificationDeadline.entityIds) + && Objects.equals(this.expiresAt, verificationDeadline.expiresAt); } @Override @@ -274,8 +276,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -284,21 +285,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of VerificationDeadline given an JSON string * * @param jsonString JSON string * @return An instance of VerificationDeadline - * @throws JsonProcessingException if the JSON string is invalid with respect to VerificationDeadline + * @throws JsonProcessingException if the JSON string is invalid with respect to + * VerificationDeadline */ public static VerificationDeadline fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, VerificationDeadline.class); } -/** - * Convert an instance of VerificationDeadline to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of VerificationDeadline to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/VerificationError.java b/src/main/java/com/adyen/model/balanceplatform/VerificationError.java index cdf78f067..a552dff03 100644 --- a/src/main/java/com/adyen/model/balanceplatform/VerificationError.java +++ b/src/main/java/com/adyen/model/balanceplatform/VerificationError.java @@ -2,35 +2,28 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.RemediatingAction; -import com.adyen.model.balanceplatform.VerificationErrorRecursive; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * VerificationError - */ +/** VerificationError */ @JsonPropertyOrder({ VerificationError.JSON_PROPERTY_CAPABILITIES, VerificationError.JSON_PROPERTY_CODE, @@ -39,28 +32,30 @@ VerificationError.JSON_PROPERTY_SUB_ERRORS, VerificationError.JSON_PROPERTY_TYPE }) - public class VerificationError { - /** - * Gets or Sets capabilities - */ + /** Gets or Sets capabilities */ public enum CapabilitiesEnum { - ACCEPTEXTERNALFUNDING(String.valueOf("acceptExternalFunding")), ACCEPTPSPFUNDING(String.valueOf("acceptPspFunding")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES(String.valueOf("acceptTransactionInRestrictedCountries")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES( + String.valueOf("acceptTransactionInRestrictedCountries")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER( + String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES(String.valueOf("acceptTransactionInRestrictedIndustries")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES( + String.valueOf("acceptTransactionInRestrictedIndustries")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL( + String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER( + String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), ACQUIRING(String.valueOf("acquiring")), @@ -72,9 +67,11 @@ public enum CapabilitiesEnum { ATMWITHDRAWALINRESTRICTEDCOUNTRIES(String.valueOf("atmWithdrawalInRestrictedCountries")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER( + String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), AUTHORISEDPAYMENTINSTRUMENTUSER(String.valueOf("authorisedPaymentInstrumentUser")), @@ -130,13 +127,15 @@ public enum CapabilitiesEnum { USECARDINRESTRICTEDCOUNTRIES(String.valueOf("useCardInRestrictedCountries")), - USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedCountriesCommercial")), + USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("useCardInRestrictedCountriesCommercial")), USECARDINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("useCardInRestrictedCountriesConsumer")), USECARDINRESTRICTEDINDUSTRIES(String.valueOf("useCardInRestrictedIndustries")), - USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedIndustriesCommercial")), + USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL( + String.valueOf("useCardInRestrictedIndustriesCommercial")), USECARDINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("useCardInRestrictedIndustriesConsumer")), @@ -152,16 +151,18 @@ public enum CapabilitiesEnum { WITHDRAWFROMATMINRESTRICTEDCOUNTRIES(String.valueOf("withdrawFromAtmInRestrictedCountries")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER( + String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); private static final Logger LOG = Logger.getLogger(CapabilitiesEnum.class.getName()); private String value; CapabilitiesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -182,7 +183,11 @@ public static CapabilitiesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("CapabilitiesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CapabilitiesEnum.values())); + LOG.warning( + "CapabilitiesEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(CapabilitiesEnum.values())); return null; } } @@ -203,10 +208,9 @@ public static CapabilitiesEnum fromValue(String value) { private List subErrors; /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** */ public enum TypeEnum { - DATAMISSING(String.valueOf("dataMissing")), INVALIDINPUT(String.valueOf("invalidInput")), @@ -218,7 +222,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -239,7 +243,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -247,8 +255,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public VerificationError() { - } + public VerificationError() {} /** * Contains the capabilities that the verification error applies to. @@ -271,6 +278,7 @@ public VerificationError addCapabilitiesItem(CapabilitiesEnum capabilitiesItem) /** * Contains the capabilities that the verification error applies to. + * * @return capabilities Contains the capabilities that the verification error applies to. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @@ -303,6 +311,7 @@ public VerificationError code(String code) { /** * The verification error code. + * * @return code The verification error code. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -335,6 +344,7 @@ public VerificationError message(String message) { /** * A description of the error. + * * @return message A description of the error. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -357,7 +367,8 @@ public void setMessage(String message) { /** * Contains the actions that you can take to resolve the verification error. * - * @param remediatingActions Contains the actions that you can take to resolve the verification error. + * @param remediatingActions Contains the actions that you can take to resolve the verification + * error. * @return the current {@code VerificationError} instance, allowing for method chaining */ public VerificationError remediatingActions(List remediatingActions) { @@ -375,7 +386,9 @@ public VerificationError addRemediatingActionsItem(RemediatingAction remediating /** * Contains the actions that you can take to resolve the verification error. - * @return remediatingActions Contains the actions that you can take to resolve the verification error. + * + * @return remediatingActions Contains the actions that you can take to resolve the verification + * error. */ @JsonProperty(JSON_PROPERTY_REMEDIATING_ACTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -386,7 +399,8 @@ public List getRemediatingActions() { /** * Contains the actions that you can take to resolve the verification error. * - * @param remediatingActions Contains the actions that you can take to resolve the verification error. + * @param remediatingActions Contains the actions that you can take to resolve the verification + * error. */ @JsonProperty(JSON_PROPERTY_REMEDIATING_ACTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -415,6 +429,7 @@ public VerificationError addSubErrorsItem(VerificationErrorRecursive subErrorsIt /** * Contains more granular information about the verification error. + * * @return subErrors Contains more granular information about the verification error. */ @JsonProperty(JSON_PROPERTY_SUB_ERRORS) @@ -435,9 +450,10 @@ public void setSubErrors(List subErrors) { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * - * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * + * **pendingStatus** * @return the current {@code VerificationError} instance, allowing for method chaining */ public VerificationError type(TypeEnum type) { @@ -446,8 +462,10 @@ public VerificationError type(TypeEnum type) { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** - * @return type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * + * @return type The type of error. Possible values: * **invalidInput** * **dataMissing** * + * **pendingStatus** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -456,9 +474,10 @@ public TypeEnum getType() { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * - * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * + * **pendingStatus** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -466,9 +485,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this VerificationError object is equal to o. - */ + /** Return true if this VerificationError object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -478,12 +495,12 @@ public boolean equals(Object o) { return false; } VerificationError verificationError = (VerificationError) o; - return Objects.equals(this.capabilities, verificationError.capabilities) && - Objects.equals(this.code, verificationError.code) && - Objects.equals(this.message, verificationError.message) && - Objects.equals(this.remediatingActions, verificationError.remediatingActions) && - Objects.equals(this.subErrors, verificationError.subErrors) && - Objects.equals(this.type, verificationError.type); + return Objects.equals(this.capabilities, verificationError.capabilities) + && Objects.equals(this.code, verificationError.code) + && Objects.equals(this.message, verificationError.message) + && Objects.equals(this.remediatingActions, verificationError.remediatingActions) + && Objects.equals(this.subErrors, verificationError.subErrors) + && Objects.equals(this.type, verificationError.type); } @Override @@ -506,8 +523,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -516,7 +532,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of VerificationError given an JSON string * * @param jsonString JSON string @@ -526,11 +542,12 @@ private String toIndentedString(Object o) { public static VerificationError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, VerificationError.class); } -/** - * Convert an instance of VerificationError to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of VerificationError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/VerificationErrorRecursive.java b/src/main/java/com/adyen/model/balanceplatform/VerificationErrorRecursive.java index 0cf78485e..a295209f9 100644 --- a/src/main/java/com/adyen/model/balanceplatform/VerificationErrorRecursive.java +++ b/src/main/java/com/adyen/model/balanceplatform/VerificationErrorRecursive.java @@ -2,34 +2,29 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.RemediatingAction; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * VerificationErrorRecursive - */ +/** VerificationErrorRecursive */ @JsonPropertyOrder({ VerificationErrorRecursive.JSON_PROPERTY_CAPABILITIES, VerificationErrorRecursive.JSON_PROPERTY_CODE, @@ -38,28 +33,30 @@ VerificationErrorRecursive.JSON_PROPERTY_REMEDIATING_ACTIONS }) @JsonTypeName("VerificationError-recursive") - public class VerificationErrorRecursive { - /** - * Gets or Sets capabilities - */ + /** Gets or Sets capabilities */ public enum CapabilitiesEnum { - ACCEPTEXTERNALFUNDING(String.valueOf("acceptExternalFunding")), ACCEPTPSPFUNDING(String.valueOf("acceptPspFunding")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES(String.valueOf("acceptTransactionInRestrictedCountries")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES( + String.valueOf("acceptTransactionInRestrictedCountries")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER( + String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES(String.valueOf("acceptTransactionInRestrictedIndustries")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES( + String.valueOf("acceptTransactionInRestrictedIndustries")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL( + String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER( + String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), ACQUIRING(String.valueOf("acquiring")), @@ -71,9 +68,11 @@ public enum CapabilitiesEnum { ATMWITHDRAWALINRESTRICTEDCOUNTRIES(String.valueOf("atmWithdrawalInRestrictedCountries")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER( + String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), AUTHORISEDPAYMENTINSTRUMENTUSER(String.valueOf("authorisedPaymentInstrumentUser")), @@ -129,13 +128,15 @@ public enum CapabilitiesEnum { USECARDINRESTRICTEDCOUNTRIES(String.valueOf("useCardInRestrictedCountries")), - USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedCountriesCommercial")), + USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("useCardInRestrictedCountriesCommercial")), USECARDINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("useCardInRestrictedCountriesConsumer")), USECARDINRESTRICTEDINDUSTRIES(String.valueOf("useCardInRestrictedIndustries")), - USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedIndustriesCommercial")), + USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL( + String.valueOf("useCardInRestrictedIndustriesCommercial")), USECARDINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("useCardInRestrictedIndustriesConsumer")), @@ -151,16 +152,18 @@ public enum CapabilitiesEnum { WITHDRAWFROMATMINRESTRICTEDCOUNTRIES(String.valueOf("withdrawFromAtmInRestrictedCountries")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER( + String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); private static final Logger LOG = Logger.getLogger(CapabilitiesEnum.class.getName()); private String value; CapabilitiesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -181,7 +184,11 @@ public static CapabilitiesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("CapabilitiesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CapabilitiesEnum.values())); + LOG.warning( + "CapabilitiesEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(CapabilitiesEnum.values())); return null; } } @@ -196,10 +203,9 @@ public static CapabilitiesEnum fromValue(String value) { private String message; /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** */ public enum TypeEnum { - DATAMISSING(String.valueOf("dataMissing")), INVALIDINPUT(String.valueOf("invalidInput")), @@ -211,7 +217,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -232,7 +238,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -243,8 +253,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_REMEDIATING_ACTIONS = "remediatingActions"; private List remediatingActions; - public VerificationErrorRecursive() { - } + public VerificationErrorRecursive() {} /** * Contains the capabilities that the verification error applies to. @@ -267,6 +276,7 @@ public VerificationErrorRecursive addCapabilitiesItem(CapabilitiesEnum capabilit /** * Contains the capabilities that the verification error applies to. + * * @return capabilities Contains the capabilities that the verification error applies to. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @@ -299,6 +309,7 @@ public VerificationErrorRecursive code(String code) { /** * The verification error code. + * * @return code The verification error code. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -331,6 +342,7 @@ public VerificationErrorRecursive message(String message) { /** * A description of the error. + * * @return message A description of the error. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -351,9 +363,10 @@ public void setMessage(String message) { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * - * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * + * **pendingStatus** * @return the current {@code VerificationErrorRecursive} instance, allowing for method chaining */ public VerificationErrorRecursive type(TypeEnum type) { @@ -362,8 +375,10 @@ public VerificationErrorRecursive type(TypeEnum type) { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** - * @return type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * + * @return type The type of error. Possible values: * **invalidInput** * **dataMissing** * + * **pendingStatus** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -372,9 +387,10 @@ public TypeEnum getType() { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * - * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * + * **pendingStatus** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -385,7 +401,8 @@ public void setType(TypeEnum type) { /** * Contains the actions that you can take to resolve the verification error. * - * @param remediatingActions Contains the actions that you can take to resolve the verification error. + * @param remediatingActions Contains the actions that you can take to resolve the verification + * error. * @return the current {@code VerificationErrorRecursive} instance, allowing for method chaining */ public VerificationErrorRecursive remediatingActions(List remediatingActions) { @@ -393,7 +410,8 @@ public VerificationErrorRecursive remediatingActions(List rem return this; } - public VerificationErrorRecursive addRemediatingActionsItem(RemediatingAction remediatingActionsItem) { + public VerificationErrorRecursive addRemediatingActionsItem( + RemediatingAction remediatingActionsItem) { if (this.remediatingActions == null) { this.remediatingActions = new ArrayList<>(); } @@ -403,7 +421,9 @@ public VerificationErrorRecursive addRemediatingActionsItem(RemediatingAction re /** * Contains the actions that you can take to resolve the verification error. - * @return remediatingActions Contains the actions that you can take to resolve the verification error. + * + * @return remediatingActions Contains the actions that you can take to resolve the verification + * error. */ @JsonProperty(JSON_PROPERTY_REMEDIATING_ACTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -414,7 +434,8 @@ public List getRemediatingActions() { /** * Contains the actions that you can take to resolve the verification error. * - * @param remediatingActions Contains the actions that you can take to resolve the verification error. + * @param remediatingActions Contains the actions that you can take to resolve the verification + * error. */ @JsonProperty(JSON_PROPERTY_REMEDIATING_ACTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -422,9 +443,7 @@ public void setRemediatingActions(List remediatingActions) { this.remediatingActions = remediatingActions; } - /** - * Return true if this VerificationError-recursive object is equal to o. - */ + /** Return true if this VerificationError-recursive object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -434,11 +453,11 @@ public boolean equals(Object o) { return false; } VerificationErrorRecursive verificationErrorRecursive = (VerificationErrorRecursive) o; - return Objects.equals(this.capabilities, verificationErrorRecursive.capabilities) && - Objects.equals(this.code, verificationErrorRecursive.code) && - Objects.equals(this.message, verificationErrorRecursive.message) && - Objects.equals(this.type, verificationErrorRecursive.type) && - Objects.equals(this.remediatingActions, verificationErrorRecursive.remediatingActions); + return Objects.equals(this.capabilities, verificationErrorRecursive.capabilities) + && Objects.equals(this.code, verificationErrorRecursive.code) + && Objects.equals(this.message, verificationErrorRecursive.message) + && Objects.equals(this.type, verificationErrorRecursive.type) + && Objects.equals(this.remediatingActions, verificationErrorRecursive.remediatingActions); } @Override @@ -460,8 +479,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -470,21 +488,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of VerificationErrorRecursive given an JSON string * * @param jsonString JSON string * @return An instance of VerificationErrorRecursive - * @throws JsonProcessingException if the JSON string is invalid with respect to VerificationErrorRecursive + * @throws JsonProcessingException if the JSON string is invalid with respect to + * VerificationErrorRecursive */ - public static VerificationErrorRecursive fromJson(String jsonString) throws JsonProcessingException { + public static VerificationErrorRecursive fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, VerificationErrorRecursive.class); } -/** - * Convert an instance of VerificationErrorRecursive to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of VerificationErrorRecursive to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/WalletProviderAccountScoreRestriction.java b/src/main/java/com/adyen/model/balanceplatform/WalletProviderAccountScoreRestriction.java index a0b670e9b..ceef30825 100644 --- a/src/main/java/com/adyen/model/balanceplatform/WalletProviderAccountScoreRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/WalletProviderAccountScoreRestriction.java @@ -2,36 +2,26 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * WalletProviderAccountScoreRestriction - */ +/** WalletProviderAccountScoreRestriction */ @JsonPropertyOrder({ WalletProviderAccountScoreRestriction.JSON_PROPERTY_OPERATION, WalletProviderAccountScoreRestriction.JSON_PROPERTY_VALUE }) - public class WalletProviderAccountScoreRestriction { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -39,14 +29,14 @@ public class WalletProviderAccountScoreRestriction { public static final String JSON_PROPERTY_VALUE = "value"; private Integer value; - public WalletProviderAccountScoreRestriction() { - } + public WalletProviderAccountScoreRestriction() {} /** * Defines how the condition must be evaluated. * * @param operation Defines how the condition must be evaluated. - * @return the current {@code WalletProviderAccountScoreRestriction} instance, allowing for method chaining + * @return the current {@code WalletProviderAccountScoreRestriction} instance, allowing for method + * chaining */ public WalletProviderAccountScoreRestriction operation(String operation) { this.operation = operation; @@ -55,6 +45,7 @@ public WalletProviderAccountScoreRestriction operation(String operation) { /** * Defines how the condition must be evaluated. + * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -77,8 +68,9 @@ public void setOperation(String operation) { /** * value * - * @param value - * @return the current {@code WalletProviderAccountScoreRestriction} instance, allowing for method chaining + * @param value + * @return the current {@code WalletProviderAccountScoreRestriction} instance, allowing for method + * chaining */ public WalletProviderAccountScoreRestriction value(Integer value) { this.value = value; @@ -87,7 +79,8 @@ public WalletProviderAccountScoreRestriction value(Integer value) { /** * Get value - * @return value + * + * @return value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -98,7 +91,7 @@ public Integer getValue() { /** * value * - * @param value + * @param value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +99,7 @@ public void setValue(Integer value) { this.value = value; } - /** - * Return true if this WalletProviderAccountScoreRestriction object is equal to o. - */ + /** Return true if this WalletProviderAccountScoreRestriction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -117,9 +108,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - WalletProviderAccountScoreRestriction walletProviderAccountScoreRestriction = (WalletProviderAccountScoreRestriction) o; - return Objects.equals(this.operation, walletProviderAccountScoreRestriction.operation) && - Objects.equals(this.value, walletProviderAccountScoreRestriction.value); + WalletProviderAccountScoreRestriction walletProviderAccountScoreRestriction = + (WalletProviderAccountScoreRestriction) o; + return Objects.equals(this.operation, walletProviderAccountScoreRestriction.operation) + && Objects.equals(this.value, walletProviderAccountScoreRestriction.value); } @Override @@ -138,8 +130,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +139,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of WalletProviderAccountScoreRestriction given an JSON string * * @param jsonString JSON string * @return An instance of WalletProviderAccountScoreRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to WalletProviderAccountScoreRestriction + * @throws JsonProcessingException if the JSON string is invalid with respect to + * WalletProviderAccountScoreRestriction */ - public static WalletProviderAccountScoreRestriction fromJson(String jsonString) throws JsonProcessingException { + public static WalletProviderAccountScoreRestriction fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, WalletProviderAccountScoreRestriction.class); } -/** - * Convert an instance of WalletProviderAccountScoreRestriction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of WalletProviderAccountScoreRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/WalletProviderDeviceScore.java b/src/main/java/com/adyen/model/balanceplatform/WalletProviderDeviceScore.java index e58b4423e..2d91ed64f 100644 --- a/src/main/java/com/adyen/model/balanceplatform/WalletProviderDeviceScore.java +++ b/src/main/java/com/adyen/model/balanceplatform/WalletProviderDeviceScore.java @@ -2,36 +2,26 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * WalletProviderDeviceScore - */ +/** WalletProviderDeviceScore */ @JsonPropertyOrder({ WalletProviderDeviceScore.JSON_PROPERTY_OPERATION, WalletProviderDeviceScore.JSON_PROPERTY_VALUE }) - public class WalletProviderDeviceScore { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; @@ -39,8 +29,7 @@ public class WalletProviderDeviceScore { public static final String JSON_PROPERTY_VALUE = "value"; private Integer value; - public WalletProviderDeviceScore() { - } + public WalletProviderDeviceScore() {} /** * Defines how the condition must be evaluated. @@ -55,6 +44,7 @@ public WalletProviderDeviceScore operation(String operation) { /** * Defines how the condition must be evaluated. + * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -77,7 +67,7 @@ public void setOperation(String operation) { /** * value * - * @param value + * @param value * @return the current {@code WalletProviderDeviceScore} instance, allowing for method chaining */ public WalletProviderDeviceScore value(Integer value) { @@ -87,7 +77,8 @@ public WalletProviderDeviceScore value(Integer value) { /** * Get value - * @return value + * + * @return value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -98,7 +89,7 @@ public Integer getValue() { /** * value * - * @param value + * @param value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +97,7 @@ public void setValue(Integer value) { this.value = value; } - /** - * Return true if this WalletProviderDeviceScore object is equal to o. - */ + /** Return true if this WalletProviderDeviceScore object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +107,8 @@ public boolean equals(Object o) { return false; } WalletProviderDeviceScore walletProviderDeviceScore = (WalletProviderDeviceScore) o; - return Objects.equals(this.operation, walletProviderDeviceScore.operation) && - Objects.equals(this.value, walletProviderDeviceScore.value); + return Objects.equals(this.operation, walletProviderDeviceScore.operation) + && Objects.equals(this.value, walletProviderDeviceScore.value); } @Override @@ -138,8 +127,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +136,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of WalletProviderDeviceScore given an JSON string * * @param jsonString JSON string * @return An instance of WalletProviderDeviceScore - * @throws JsonProcessingException if the JSON string is invalid with respect to WalletProviderDeviceScore + * @throws JsonProcessingException if the JSON string is invalid with respect to + * WalletProviderDeviceScore */ - public static WalletProviderDeviceScore fromJson(String jsonString) throws JsonProcessingException { + public static WalletProviderDeviceScore fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, WalletProviderDeviceScore.class); } -/** - * Convert an instance of WalletProviderDeviceScore to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of WalletProviderDeviceScore to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/WalletProviderDeviceType.java b/src/main/java/com/adyen/model/balanceplatform/WalletProviderDeviceType.java index 5484fc0eb..8a06909da 100644 --- a/src/main/java/com/adyen/model/balanceplatform/WalletProviderDeviceType.java +++ b/src/main/java/com/adyen/model/balanceplatform/WalletProviderDeviceType.java @@ -2,47 +2,38 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * WalletProviderDeviceType - */ +/** WalletProviderDeviceType */ @JsonPropertyOrder({ WalletProviderDeviceType.JSON_PROPERTY_OPERATION, WalletProviderDeviceType.JSON_PROPERTY_VALUE }) - public class WalletProviderDeviceType { public static final String JSON_PROPERTY_OPERATION = "operation"; private String operation; - /** - * Gets or Sets value - */ + /** Gets or Sets value */ public enum ValueEnum { - CARD(String.valueOf("CARD")), MOBILE_PHONE(String.valueOf("MOBILE_PHONE")), @@ -64,7 +55,7 @@ public enum ValueEnum { private String value; ValueEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -85,7 +76,11 @@ public static ValueEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ValueEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ValueEnum.values())); + LOG.warning( + "ValueEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ValueEnum.values())); return null; } } @@ -93,8 +88,7 @@ public static ValueEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUE = "value"; private List value; - public WalletProviderDeviceType() { - } + public WalletProviderDeviceType() {} /** * Defines how the condition must be evaluated. @@ -109,6 +103,7 @@ public WalletProviderDeviceType operation(String operation) { /** * Defines how the condition must be evaluated. + * * @return operation Defines how the condition must be evaluated. */ @JsonProperty(JSON_PROPERTY_OPERATION) @@ -131,7 +126,7 @@ public void setOperation(String operation) { /** * value * - * @param value + * @param value * @return the current {@code WalletProviderDeviceType} instance, allowing for method chaining */ public WalletProviderDeviceType value(List value) { @@ -149,7 +144,8 @@ public WalletProviderDeviceType addValueItem(ValueEnum valueItem) { /** * Get value - * @return value + * + * @return value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,7 +156,7 @@ public List getValue() { /** * value * - * @param value + * @param value */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,9 +164,7 @@ public void setValue(List value) { this.value = value; } - /** - * Return true if this WalletProviderDeviceType object is equal to o. - */ + /** Return true if this WalletProviderDeviceType object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -180,8 +174,8 @@ public boolean equals(Object o) { return false; } WalletProviderDeviceType walletProviderDeviceType = (WalletProviderDeviceType) o; - return Objects.equals(this.operation, walletProviderDeviceType.operation) && - Objects.equals(this.value, walletProviderDeviceType.value); + return Objects.equals(this.operation, walletProviderDeviceType.operation) + && Objects.equals(this.value, walletProviderDeviceType.value); } @Override @@ -200,8 +194,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -210,21 +203,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of WalletProviderDeviceType given an JSON string * * @param jsonString JSON string * @return An instance of WalletProviderDeviceType - * @throws JsonProcessingException if the JSON string is invalid with respect to WalletProviderDeviceType + * @throws JsonProcessingException if the JSON string is invalid with respect to + * WalletProviderDeviceType */ - public static WalletProviderDeviceType fromJson(String jsonString) throws JsonProcessingException { + public static WalletProviderDeviceType fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, WalletProviderDeviceType.class); } -/** - * Convert an instance of WalletProviderDeviceType to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of WalletProviderDeviceType to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/WebhookSetting.java b/src/main/java/com/adyen/model/balanceplatform/WebhookSetting.java index 19689d4b7..973e2fec5 100644 --- a/src/main/java/com/adyen/model/balanceplatform/WebhookSetting.java +++ b/src/main/java/com/adyen/model/balanceplatform/WebhookSetting.java @@ -2,36 +2,25 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.SettingType; -import com.adyen.model.balanceplatform.Target; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * WebhookSetting - */ +/** WebhookSetting */ @JsonPropertyOrder({ WebhookSetting.JSON_PROPERTY_CURRENCY, WebhookSetting.JSON_PROPERTY_ID, @@ -39,16 +28,20 @@ WebhookSetting.JSON_PROPERTY_TARGET, WebhookSetting.JSON_PROPERTY_TYPE }) - @JsonIgnoreProperties( - value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization - allowSetters = true // allows the type to be set during deserialization -) -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) + value = + "type", // ignore manually set type, it will be automatically generated by Jackson during + // serialization + allowSetters = true // allows the type to be set during deserialization + ) +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.PROPERTY, + property = "type", + visible = true) @JsonSubTypes({ @JsonSubTypes.Type(value = BalanceWebhookSetting.class, name = "balance"), }) - public class WebhookSetting { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -65,13 +58,14 @@ public class WebhookSetting { public static final String JSON_PROPERTY_TYPE = "type"; private SettingType type; - public WebhookSetting() { - } + public WebhookSetting() {} /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. * @return the current {@code WebhookSetting} instance, allowing for method chaining */ public WebhookSetting currency(String currency) { @@ -80,8 +74,11 @@ public WebhookSetting currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -90,9 +87,11 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,6 +112,7 @@ public WebhookSetting id(String id) { /** * The unique identifier of the webhook setting. + * * @return id The unique identifier of the webhook setting. */ @JsonProperty(JSON_PROPERTY_ID) @@ -135,7 +135,7 @@ public void setId(String id) { /** * status * - * @param status + * @param status * @return the current {@code WebhookSetting} instance, allowing for method chaining */ public WebhookSetting status(String status) { @@ -145,7 +145,8 @@ public WebhookSetting status(String status) { /** * Get status - * @return status + * + * @return status */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,7 +157,7 @@ public String getStatus() { /** * status * - * @param status + * @param status */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,7 +168,7 @@ public void setStatus(String status) { /** * target * - * @param target + * @param target * @return the current {@code WebhookSetting} instance, allowing for method chaining */ public WebhookSetting target(Target target) { @@ -177,7 +178,8 @@ public WebhookSetting target(Target target) { /** * Get target - * @return target + * + * @return target */ @JsonProperty(JSON_PROPERTY_TARGET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,7 +190,7 @@ public Target getTarget() { /** * target * - * @param target + * @param target */ @JsonProperty(JSON_PROPERTY_TARGET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -199,7 +201,7 @@ public void setTarget(Target target) { /** * type * - * @param type + * @param type * @return the current {@code WebhookSetting} instance, allowing for method chaining */ public WebhookSetting type(SettingType type) { @@ -209,7 +211,8 @@ public WebhookSetting type(SettingType type) { /** * Get type - * @return type + * + * @return type */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -220,7 +223,7 @@ public SettingType getType() { /** * type * - * @param type + * @param type */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -228,9 +231,7 @@ public void setType(SettingType type) { this.type = type; } - /** - * Return true if this WebhookSetting object is equal to o. - */ + /** Return true if this WebhookSetting object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -240,11 +241,11 @@ public boolean equals(Object o) { return false; } WebhookSetting webhookSetting = (WebhookSetting) o; - return Objects.equals(this.currency, webhookSetting.currency) && - Objects.equals(this.id, webhookSetting.id) && - Objects.equals(this.status, webhookSetting.status) && - Objects.equals(this.target, webhookSetting.target) && - Objects.equals(this.type, webhookSetting.type); + return Objects.equals(this.currency, webhookSetting.currency) + && Objects.equals(this.id, webhookSetting.id) + && Objects.equals(this.status, webhookSetting.status) + && Objects.equals(this.target, webhookSetting.target) + && Objects.equals(this.type, webhookSetting.type); } @Override @@ -266,8 +267,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -283,7 +283,8 @@ private String toIndentedString(Object o) { mappings.put("WebhookSetting", WebhookSetting.class); JSON.registerDiscriminator(WebhookSetting.class, "type", mappings); } -/** + + /** * Create an instance of WebhookSetting given an JSON string * * @param jsonString JSON string @@ -293,11 +294,12 @@ private String toIndentedString(Object o) { public static WebhookSetting fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, WebhookSetting.class); } -/** - * Convert an instance of WebhookSetting to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of WebhookSetting to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balanceplatform/WebhookSettings.java b/src/main/java/com/adyen/model/balanceplatform/WebhookSettings.java index 8e734df7d..b28a145a0 100644 --- a/src/main/java/com/adyen/model/balanceplatform/WebhookSettings.java +++ b/src/main/java/com/adyen/model/balanceplatform/WebhookSettings.java @@ -2,44 +2,30 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balanceplatform; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balanceplatform.WebhookSetting; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * WebhookSettings - */ -@JsonPropertyOrder({ - WebhookSettings.JSON_PROPERTY_WEBHOOK_SETTINGS -}) - +/** WebhookSettings */ +@JsonPropertyOrder({WebhookSettings.JSON_PROPERTY_WEBHOOK_SETTINGS}) public class WebhookSettings { public static final String JSON_PROPERTY_WEBHOOK_SETTINGS = "webhookSettings"; private List webhookSettings; - public WebhookSettings() { - } + public WebhookSettings() {} /** * The list of webhook settings. @@ -62,6 +48,7 @@ public WebhookSettings addWebhookSettingsItem(WebhookSetting webhookSettingsItem /** * The list of webhook settings. + * * @return webhookSettings The list of webhook settings. */ @JsonProperty(JSON_PROPERTY_WEBHOOK_SETTINGS) @@ -81,9 +68,7 @@ public void setWebhookSettings(List webhookSettings) { this.webhookSettings = webhookSettings; } - /** - * Return true if this WebhookSettings object is equal to o. - */ + /** Return true if this WebhookSettings object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -111,8 +96,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -121,7 +105,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of WebhookSettings given an JSON string * * @param jsonString JSON string @@ -131,11 +115,12 @@ private String toIndentedString(Object o) { public static WebhookSettings fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, WebhookSettings.class); } -/** - * Convert an instance of WebhookSettings to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of WebhookSettings to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balancewebhooks/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/balancewebhooks/AbstractOpenApiSchema.java index ba485a8e0..3845894e9 100644 --- a/src/main/java/com/adyen/model/balancewebhooks/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/balancewebhooks/AbstractOpenApiSchema.java @@ -2,145 +2,141 @@ * Balance webhook * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balancewebhooks; -import java.util.Objects; -import java.util.Map; -import jakarta.ws.rs.core.GenericType; - import com.fasterxml.jackson.annotation.JsonValue; +import jakarta.ws.rs.core.GenericType; +import java.util.Map; +import java.util.Objects; -/** - * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec - */ +/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() {return instance;} - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) {this.instance = instance;} - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); - } else { - return object.getActualInstance(); - } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() { + return instance; + } + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) { + this.instance = instance; + } + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf + * schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); + } else { + return object.getActualInstance(); } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) && - Objects.equals(this.isNullable, a.isNullable) && - Objects.equals(this.schemaType, a.schemaType); + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; } + return o.toString().replace("\n", "\n "); + } - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); + public boolean equals(Object o) { + if (this == o) { + return true; } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); + if (o == null || getClass() != o.getClass()) { + return false; } - - - -} \ No newline at end of file + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) + && Objects.equals(this.isNullable, a.isNullable) + && Objects.equals(this.schemaType, a.schemaType); + } + + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); + } + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); + } +} diff --git a/src/main/java/com/adyen/model/balancewebhooks/BalanceAccountBalanceNotificationRequest.java b/src/main/java/com/adyen/model/balancewebhooks/BalanceAccountBalanceNotificationRequest.java index 1d84f075b..7d2e5378e 100644 --- a/src/main/java/com/adyen/model/balancewebhooks/BalanceAccountBalanceNotificationRequest.java +++ b/src/main/java/com/adyen/model/balancewebhooks/BalanceAccountBalanceNotificationRequest.java @@ -2,40 +2,33 @@ * Balance webhook * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balancewebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balancewebhooks.BalanceNotificationData; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * BalanceAccountBalanceNotificationRequest - */ +/** BalanceAccountBalanceNotificationRequest */ @JsonPropertyOrder({ BalanceAccountBalanceNotificationRequest.JSON_PROPERTY_DATA, BalanceAccountBalanceNotificationRequest.JSON_PROPERTY_ENVIRONMENT, BalanceAccountBalanceNotificationRequest.JSON_PROPERTY_TIMESTAMP, BalanceAccountBalanceNotificationRequest.JSON_PROPERTY_TYPE }) - public class BalanceAccountBalanceNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private BalanceNotificationData data; @@ -46,19 +39,17 @@ public class BalanceAccountBalanceNotificationRequest { public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; private OffsetDateTime timestamp; - /** - * Type of webhook. - */ + /** Type of webhook. */ public enum TypeEnum { - - BALANCEPLATFORM_BALANCEACCOUNT_BALANCE_UPDATED(String.valueOf("balancePlatform.balanceAccount.balance.updated")); + BALANCEPLATFORM_BALANCEACCOUNT_BALANCE_UPDATED( + String.valueOf("balancePlatform.balanceAccount.balance.updated")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -79,7 +70,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -87,14 +82,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public BalanceAccountBalanceNotificationRequest() { - } + public BalanceAccountBalanceNotificationRequest() {} /** * data * - * @param data - * @return the current {@code BalanceAccountBalanceNotificationRequest} instance, allowing for method chaining + * @param data + * @return the current {@code BalanceAccountBalanceNotificationRequest} instance, allowing for + * method chaining */ public BalanceAccountBalanceNotificationRequest data(BalanceNotificationData data) { this.data = data; @@ -103,7 +98,8 @@ public BalanceAccountBalanceNotificationRequest data(BalanceNotificationData dat /** * Get data - * @return data + * + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,7 +110,7 @@ public BalanceNotificationData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,10 +119,12 @@ public void setData(BalanceNotificationData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. - * @return the current {@code BalanceAccountBalanceNotificationRequest} instance, allowing for method chaining + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. + * @return the current {@code BalanceAccountBalanceNotificationRequest} instance, allowing for + * method chaining */ public BalanceAccountBalanceNotificationRequest environment(String environment) { this.environment = environment; @@ -134,8 +132,10 @@ public BalanceAccountBalanceNotificationRequest environment(String environment) } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * + * @return environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,9 +144,10 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,7 +159,8 @@ public void setEnvironment(String environment) { * When the event was queued. * * @param timestamp When the event was queued. - * @return the current {@code BalanceAccountBalanceNotificationRequest} instance, allowing for method chaining + * @return the current {@code BalanceAccountBalanceNotificationRequest} instance, allowing for + * method chaining */ public BalanceAccountBalanceNotificationRequest timestamp(OffsetDateTime timestamp) { this.timestamp = timestamp; @@ -167,6 +169,7 @@ public BalanceAccountBalanceNotificationRequest timestamp(OffsetDateTime timesta /** * When the event was queued. + * * @return timestamp When the event was queued. */ @JsonProperty(JSON_PROPERTY_TIMESTAMP) @@ -190,7 +193,8 @@ public void setTimestamp(OffsetDateTime timestamp) { * Type of webhook. * * @param type Type of webhook. - * @return the current {@code BalanceAccountBalanceNotificationRequest} instance, allowing for method chaining + * @return the current {@code BalanceAccountBalanceNotificationRequest} instance, allowing for + * method chaining */ public BalanceAccountBalanceNotificationRequest type(TypeEnum type) { this.type = type; @@ -199,6 +203,7 @@ public BalanceAccountBalanceNotificationRequest type(TypeEnum type) { /** * Type of webhook. + * * @return type Type of webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -218,9 +223,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this BalanceAccountBalanceNotificationRequest object is equal to o. - */ + /** Return true if this BalanceAccountBalanceNotificationRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -229,11 +232,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - BalanceAccountBalanceNotificationRequest balanceAccountBalanceNotificationRequest = (BalanceAccountBalanceNotificationRequest) o; - return Objects.equals(this.data, balanceAccountBalanceNotificationRequest.data) && - Objects.equals(this.environment, balanceAccountBalanceNotificationRequest.environment) && - Objects.equals(this.timestamp, balanceAccountBalanceNotificationRequest.timestamp) && - Objects.equals(this.type, balanceAccountBalanceNotificationRequest.type); + BalanceAccountBalanceNotificationRequest balanceAccountBalanceNotificationRequest = + (BalanceAccountBalanceNotificationRequest) o; + return Objects.equals(this.data, balanceAccountBalanceNotificationRequest.data) + && Objects.equals(this.environment, balanceAccountBalanceNotificationRequest.environment) + && Objects.equals(this.timestamp, balanceAccountBalanceNotificationRequest.timestamp) + && Objects.equals(this.type, balanceAccountBalanceNotificationRequest.type); } @Override @@ -254,8 +258,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -264,21 +267,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BalanceAccountBalanceNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of BalanceAccountBalanceNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceAccountBalanceNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BalanceAccountBalanceNotificationRequest */ - public static BalanceAccountBalanceNotificationRequest fromJson(String jsonString) throws JsonProcessingException { + public static BalanceAccountBalanceNotificationRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceAccountBalanceNotificationRequest.class); } -/** - * Convert an instance of BalanceAccountBalanceNotificationRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BalanceAccountBalanceNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balancewebhooks/BalanceNotificationData.java b/src/main/java/com/adyen/model/balancewebhooks/BalanceNotificationData.java index 8e97d5d72..61f6bab65 100644 --- a/src/main/java/com/adyen/model/balancewebhooks/BalanceNotificationData.java +++ b/src/main/java/com/adyen/model/balancewebhooks/BalanceNotificationData.java @@ -2,35 +2,26 @@ * Balance webhook * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balancewebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.balancewebhooks.Balances; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -/** - * BalanceNotificationData - */ +/** BalanceNotificationData */ @JsonPropertyOrder({ BalanceNotificationData.JSON_PROPERTY_BALANCE_ACCOUNT_ID, BalanceNotificationData.JSON_PROPERTY_BALANCE_PLATFORM, @@ -40,7 +31,6 @@ BalanceNotificationData.JSON_PROPERTY_ID, BalanceNotificationData.JSON_PROPERTY_SETTING_IDS }) - public class BalanceNotificationData { public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; @@ -63,13 +53,10 @@ public class BalanceNotificationData { public static final String JSON_PROPERTY_SETTING_IDS = "settingIds"; private List settingIds; - public BalanceNotificationData() { - } + public BalanceNotificationData() {} @JsonCreator - public BalanceNotificationData( - @JsonProperty(JSON_PROPERTY_ID) String id - ) { + public BalanceNotificationData(@JsonProperty(JSON_PROPERTY_ID) String id) { this(); this.id = id; } @@ -87,6 +74,7 @@ public BalanceNotificationData balanceAccountId(String balanceAccountId) { /** * The unique identifier of the balance account. + * * @return balanceAccountId The unique identifier of the balance account. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @@ -119,6 +107,7 @@ public BalanceNotificationData balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. + * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -141,7 +130,7 @@ public void setBalancePlatform(String balancePlatform) { /** * balances * - * @param balances + * @param balances * @return the current {@code BalanceNotificationData} instance, allowing for method chaining */ public BalanceNotificationData balances(Balances balances) { @@ -151,7 +140,8 @@ public BalanceNotificationData balances(Balances balances) { /** * Get balances - * @return balances + * + * @return balances */ @JsonProperty(JSON_PROPERTY_BALANCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -162,7 +152,7 @@ public Balances getBalances() { /** * balances * - * @param balances + * @param balances */ @JsonProperty(JSON_PROPERTY_BALANCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -171,9 +161,11 @@ public void setBalances(Balances balances) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code BalanceNotificationData} instance, allowing for method chaining */ public BalanceNotificationData creationDate(OffsetDateTime creationDate) { @@ -182,8 +174,11 @@ public BalanceNotificationData creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. + * + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,9 +187,11 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -203,9 +200,11 @@ public void setCreationDate(OffsetDateTime creationDate) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code BalanceNotificationData} instance, allowing for method chaining */ public BalanceNotificationData currency(String currency) { @@ -214,8 +213,11 @@ public BalanceNotificationData currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,9 +226,11 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -236,6 +240,7 @@ public void setCurrency(String currency) { /** * The ID of the resource. + * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -244,7 +249,6 @@ public String getId() { return id; } - /** * The unique identifier of the balance webhook setting. * @@ -266,6 +270,7 @@ public BalanceNotificationData addSettingIdsItem(String settingIdsItem) { /** * The unique identifier of the balance webhook setting. + * * @return settingIds The unique identifier of the balance webhook setting. */ @JsonProperty(JSON_PROPERTY_SETTING_IDS) @@ -285,9 +290,7 @@ public void setSettingIds(List settingIds) { this.settingIds = settingIds; } - /** - * Return true if this BalanceNotificationData object is equal to o. - */ + /** Return true if this BalanceNotificationData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -297,18 +300,19 @@ public boolean equals(Object o) { return false; } BalanceNotificationData balanceNotificationData = (BalanceNotificationData) o; - return Objects.equals(this.balanceAccountId, balanceNotificationData.balanceAccountId) && - Objects.equals(this.balancePlatform, balanceNotificationData.balancePlatform) && - Objects.equals(this.balances, balanceNotificationData.balances) && - Objects.equals(this.creationDate, balanceNotificationData.creationDate) && - Objects.equals(this.currency, balanceNotificationData.currency) && - Objects.equals(this.id, balanceNotificationData.id) && - Objects.equals(this.settingIds, balanceNotificationData.settingIds); + return Objects.equals(this.balanceAccountId, balanceNotificationData.balanceAccountId) + && Objects.equals(this.balancePlatform, balanceNotificationData.balancePlatform) + && Objects.equals(this.balances, balanceNotificationData.balances) + && Objects.equals(this.creationDate, balanceNotificationData.creationDate) + && Objects.equals(this.currency, balanceNotificationData.currency) + && Objects.equals(this.id, balanceNotificationData.id) + && Objects.equals(this.settingIds, balanceNotificationData.settingIds); } @Override public int hashCode() { - return Objects.hash(balanceAccountId, balancePlatform, balances, creationDate, currency, id, settingIds); + return Objects.hash( + balanceAccountId, balancePlatform, balances, creationDate, currency, id, settingIds); } @Override @@ -327,8 +331,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -337,21 +340,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BalanceNotificationData given an JSON string * * @param jsonString JSON string * @return An instance of BalanceNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceNotificationData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BalanceNotificationData */ public static BalanceNotificationData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceNotificationData.class); } -/** - * Convert an instance of BalanceNotificationData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BalanceNotificationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balancewebhooks/BalancePlatformNotificationResponse.java b/src/main/java/com/adyen/model/balancewebhooks/BalancePlatformNotificationResponse.java index b2c63d697..535426b80 100644 --- a/src/main/java/com/adyen/model/balancewebhooks/BalancePlatformNotificationResponse.java +++ b/src/main/java/com/adyen/model/balancewebhooks/BalancePlatformNotificationResponse.java @@ -2,47 +2,37 @@ * Balance webhook * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balancewebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * BalancePlatformNotificationResponse - */ -@JsonPropertyOrder({ - BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE -}) - +/** BalancePlatformNotificationResponse */ +@JsonPropertyOrder({BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) public class BalancePlatformNotificationResponse { public static final String JSON_PROPERTY_NOTIFICATION_RESPONSE = "notificationResponse"; private String notificationResponse; - public BalancePlatformNotificationResponse() { - } + public BalancePlatformNotificationResponse() {} /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method chaining + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method + * chaining */ public BalancePlatformNotificationResponse notificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; @@ -50,8 +40,11 @@ public BalancePlatformNotificationResponse notificationResponse(String notificat } /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * + * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,9 +53,11 @@ public String getNotificationResponse() { } /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +65,7 @@ public void setNotificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; } - /** - * Return true if this BalancePlatformNotificationResponse object is equal to o. - */ + /** Return true if this BalancePlatformNotificationResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -81,8 +74,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - BalancePlatformNotificationResponse balancePlatformNotificationResponse = (BalancePlatformNotificationResponse) o; - return Objects.equals(this.notificationResponse, balancePlatformNotificationResponse.notificationResponse); + BalancePlatformNotificationResponse balancePlatformNotificationResponse = + (BalancePlatformNotificationResponse) o; + return Objects.equals( + this.notificationResponse, balancePlatformNotificationResponse.notificationResponse); } @Override @@ -94,14 +89,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BalancePlatformNotificationResponse {\n"); - sb.append(" notificationResponse: ").append(toIndentedString(notificationResponse)).append("\n"); + sb.append(" notificationResponse: ") + .append(toIndentedString(notificationResponse)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +106,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BalancePlatformNotificationResponse given an JSON string * * @param jsonString JSON string * @return An instance of BalancePlatformNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to BalancePlatformNotificationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BalancePlatformNotificationResponse */ - public static BalancePlatformNotificationResponse fromJson(String jsonString) throws JsonProcessingException { + public static BalancePlatformNotificationResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalancePlatformNotificationResponse.class); } -/** - * Convert an instance of BalancePlatformNotificationResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BalancePlatformNotificationResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balancewebhooks/BalanceWebhooksHandler.java b/src/main/java/com/adyen/model/balancewebhooks/BalanceWebhooksHandler.java index 0cff52bff..eedb9fc25 100644 --- a/src/main/java/com/adyen/model/balancewebhooks/BalanceWebhooksHandler.java +++ b/src/main/java/com/adyen/model/balancewebhooks/BalanceWebhooksHandler.java @@ -2,7 +2,7 @@ * Balance webhook * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,63 +16,64 @@ /** * Handler for processing BalanceWebhooks. - *

- * This class provides functionality to deserialize the payload of BalanceWebhooks events. + * + *

This class provides functionality to deserialize the payload of BalanceWebhooks events. */ public class BalanceWebhooksHandler { - private static final Logger LOG = Logger.getLogger(BalanceWebhooksHandler.class.getName()); + private static final Logger LOG = Logger.getLogger(BalanceWebhooksHandler.class.getName()); - private final String payload; + private final String payload; - /** - * Constructs a new handler for the given webhook payload - * - * @param payload the raw JSON payload from the webhook - */ - public BalanceWebhooksHandler(String payload) { - this.payload = payload; - } + /** + * Constructs a new handler for the given webhook payload + * + * @param payload the raw JSON payload from the webhook + */ + public BalanceWebhooksHandler(String payload) { + this.payload = payload; + } - /** - * Attempts to deserialize the webhook payload into a BalanceAccountBalanceNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getBalanceAccountBalanceNotificationRequest() { + /** + * Attempts to deserialize the webhook payload into a BalanceAccountBalanceNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional + getBalanceAccountBalanceNotificationRequest() { - var optionalBalanceAccountBalanceNotificationRequest = getOptionalField(BalanceAccountBalanceNotificationRequest.class); + var optionalBalanceAccountBalanceNotificationRequest = + getOptionalField(BalanceAccountBalanceNotificationRequest.class); - if(optionalBalanceAccountBalanceNotificationRequest.isPresent()) { - // verify event type - for (var value : BalanceAccountBalanceNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalBalanceAccountBalanceNotificationRequest.get().getType())) { - // found matching event type - return optionalBalanceAccountBalanceNotificationRequest; - } - } + if (optionalBalanceAccountBalanceNotificationRequest.isPresent()) { + // verify event type + for (var value : BalanceAccountBalanceNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalBalanceAccountBalanceNotificationRequest.get().getType())) { + // found matching event type + return optionalBalanceAccountBalanceNotificationRequest; } - - return Optional.empty(); + } } - /** - * Deserializes the payload into the specified class type. - * - * @param clazz the class to deserialize into - * @param the type of the class - * @return an Optional containing the deserialized object, or empty if an error occurs - */ - private Optional getOptionalField(Class clazz) { - try { - T val = JSON.getMapper().readValue(payload, clazz); - return Optional.ofNullable(val); - } catch (Exception e) { - // an error has occurred during deserialization (object not found, deserialization error) - LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); - LOG.warning("Deserialization error: " + e.getMessage()); - return Optional.empty(); - } - } + return Optional.empty(); + } -} \ No newline at end of file + /** + * Deserializes the payload into the specified class type. + * + * @param clazz the class to deserialize into + * @param the type of the class + * @return an Optional containing the deserialized object, or empty if an error occurs + */ + private Optional getOptionalField(Class clazz) { + try { + T val = JSON.getMapper().readValue(payload, clazz); + return Optional.ofNullable(val); + } catch (Exception e) { + // an error has occurred during deserialization (object not found, deserialization error) + LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); + LOG.warning("Deserialization error: " + e.getMessage()); + return Optional.empty(); + } + } +} diff --git a/src/main/java/com/adyen/model/balancewebhooks/Balances.java b/src/main/java/com/adyen/model/balancewebhooks/Balances.java index 14cf3184f..4ea9ac6e9 100644 --- a/src/main/java/com/adyen/model/balancewebhooks/Balances.java +++ b/src/main/java/com/adyen/model/balancewebhooks/Balances.java @@ -2,38 +2,28 @@ * Balance webhook * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.balancewebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Balances - */ +/** Balances */ @JsonPropertyOrder({ Balances.JSON_PROPERTY_AVAILABLE, Balances.JSON_PROPERTY_BALANCE, Balances.JSON_PROPERTY_PENDING, Balances.JSON_PROPERTY_RESERVED }) - public class Balances { public static final String JSON_PROPERTY_AVAILABLE = "available"; private Long available; @@ -47,8 +37,7 @@ public class Balances { public static final String JSON_PROPERTY_RESERVED = "reserved"; private Long reserved; - public Balances() { - } + public Balances() {} /** * The balance that is available for use. @@ -63,6 +52,7 @@ public Balances available(Long available) { /** * The balance that is available for use. + * * @return available The balance that is available for use. */ @JsonProperty(JSON_PROPERTY_AVAILABLE) @@ -95,6 +85,7 @@ public Balances balance(Long balance) { /** * The sum of transactions that have already been settled. + * * @return balance The sum of transactions that have already been settled. */ @JsonProperty(JSON_PROPERTY_BALANCE) @@ -127,6 +118,7 @@ public Balances pending(Long pending) { /** * The sum of transactions that will be settled in the future. + * * @return pending The sum of transactions that will be settled in the future. */ @JsonProperty(JSON_PROPERTY_PENDING) @@ -159,6 +151,7 @@ public Balances reserved(Long reserved) { /** * The balance currently held in reserve. + * * @return reserved The balance currently held in reserve. */ @JsonProperty(JSON_PROPERTY_RESERVED) @@ -178,9 +171,7 @@ public void setReserved(Long reserved) { this.reserved = reserved; } - /** - * Return true if this Balances object is equal to o. - */ + /** Return true if this Balances object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -190,10 +181,10 @@ public boolean equals(Object o) { return false; } Balances balances = (Balances) o; - return Objects.equals(this.available, balances.available) && - Objects.equals(this.balance, balances.balance) && - Objects.equals(this.pending, balances.pending) && - Objects.equals(this.reserved, balances.reserved); + return Objects.equals(this.available, balances.available) + && Objects.equals(this.balance, balances.balance) + && Objects.equals(this.pending, balances.pending) + && Objects.equals(this.reserved, balances.reserved); } @Override @@ -214,8 +205,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,7 +214,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Balances given an JSON string * * @param jsonString JSON string @@ -234,11 +224,12 @@ private String toIndentedString(Object o) { public static Balances fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Balances.class); } -/** - * Convert an instance of Balances to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Balances to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/balancewebhooks/JSON.java b/src/main/java/com/adyen/model/balancewebhooks/JSON.java index 999cc008c..ae0cc024b 100644 --- a/src/main/java/com/adyen/model/balancewebhooks/JSON.java +++ b/src/main/java/com/adyen/model/balancewebhooks/JSON.java @@ -1,21 +1,18 @@ package com.adyen.model.balancewebhooks; -import com.adyen.serializer.ByteArraySerializer; import com.adyen.serializer.ByteArrayDeserializer; +import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import com.adyen.model.balancewebhooks.*; - +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -40,6 +37,7 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. + * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -56,11 +54,13 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { return mapper; } + public static ObjectMapper getMapper() { + return mapper; + } /** - * Returns the target model class that should be used to deserialize the input data. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,9 +73,7 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** - * Helper class to register the discriminator mappings. - */ + /** Helper class to register the discriminator mappings. */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -117,9 +115,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. - * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. This + * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -164,13 +162,14 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, - * so it's not possible to use the instanceof keyword. + *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so + * it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf( + Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -194,59 +193,58 @@ public static boolean isInstanceOf(Class modelClass, Object inst, Set, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); + /** A map of discriminators for all model classes. */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = + new HashMap, ClassDiscriminatorMapping>(); - /** - * A map of oneOf/anyOf descendants for each model class. - */ + /** A map of oneOf/anyOf descendants for each model class. */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator( + Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = + new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants(Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants( + Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static - { + static { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/binlookup/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/binlookup/AbstractOpenApiSchema.java index 8de4e5397..7f2ed8b2d 100644 --- a/src/main/java/com/adyen/model/binlookup/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/binlookup/AbstractOpenApiSchema.java @@ -2,145 +2,141 @@ * Adyen BinLookup API * * The version of the OpenAPI document: 54 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.binlookup; -import java.util.Objects; -import java.util.Map; -import jakarta.ws.rs.core.GenericType; - import com.fasterxml.jackson.annotation.JsonValue; +import jakarta.ws.rs.core.GenericType; +import java.util.Map; +import java.util.Objects; -/** - * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec - */ +/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() {return instance;} - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) {this.instance = instance;} - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); - } else { - return object.getActualInstance(); - } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() { + return instance; + } + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) { + this.instance = instance; + } + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf + * schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); + } else { + return object.getActualInstance(); } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) && - Objects.equals(this.isNullable, a.isNullable) && - Objects.equals(this.schemaType, a.schemaType); + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; } + return o.toString().replace("\n", "\n "); + } - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); + public boolean equals(Object o) { + if (this == o) { + return true; } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); + if (o == null || getClass() != o.getClass()) { + return false; } - - - -} \ No newline at end of file + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) + && Objects.equals(this.isNullable, a.isNullable) + && Objects.equals(this.schemaType, a.schemaType); + } + + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); + } + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); + } +} diff --git a/src/main/java/com/adyen/model/binlookup/Amount.java b/src/main/java/com/adyen/model/binlookup/Amount.java index 646280b05..fe8b80909 100644 --- a/src/main/java/com/adyen/model/binlookup/Amount.java +++ b/src/main/java/com/adyen/model/binlookup/Amount.java @@ -2,36 +2,23 @@ * Adyen BinLookup API * * The version of the OpenAPI document: 54 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.binlookup; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Amount - */ -@JsonPropertyOrder({ - Amount.JSON_PROPERTY_CURRENCY, - Amount.JSON_PROPERTY_VALUE -}) - +/** Amount */ +@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -39,13 +26,14 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() { - } + public Amount() {} /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount currency(String currency) { @@ -54,8 +42,11 @@ public Amount currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +55,11 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,9 +68,11 @@ public void setCurrency(String currency) { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount value(Long value) { @@ -86,8 +81,11 @@ public Amount value(Long value) { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). - * @return value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * + * @return value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +94,11 @@ public Long getValue() { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +106,7 @@ public void setValue(Long value) { this.value = value; } - /** - * Return true if this Amount object is equal to o. - */ + /** Return true if this Amount object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +116,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) && - Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) + && Objects.equals(this.value, amount.value); } @Override @@ -138,8 +136,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +145,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -158,11 +155,12 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } -/** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/binlookup/BinDetail.java b/src/main/java/com/adyen/model/binlookup/BinDetail.java index 626c6751c..8d557c070 100644 --- a/src/main/java/com/adyen/model/binlookup/BinDetail.java +++ b/src/main/java/com/adyen/model/binlookup/BinDetail.java @@ -2,41 +2,28 @@ * Adyen BinLookup API * * The version of the OpenAPI document: 54 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.binlookup; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * BinDetail - */ -@JsonPropertyOrder({ - BinDetail.JSON_PROPERTY_ISSUER_COUNTRY -}) - +/** BinDetail */ +@JsonPropertyOrder({BinDetail.JSON_PROPERTY_ISSUER_COUNTRY}) public class BinDetail { public static final String JSON_PROPERTY_ISSUER_COUNTRY = "issuerCountry"; private String issuerCountry; - public BinDetail() { - } + public BinDetail() {} /** * The country where the card was issued. @@ -51,6 +38,7 @@ public BinDetail issuerCountry(String issuerCountry) { /** * The country where the card was issued. + * * @return issuerCountry The country where the card was issued. */ @JsonProperty(JSON_PROPERTY_ISSUER_COUNTRY) @@ -70,9 +58,7 @@ public void setIssuerCountry(String issuerCountry) { this.issuerCountry = issuerCountry; } - /** - * Return true if this BinDetail object is equal to o. - */ + /** Return true if this BinDetail object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,7 +95,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BinDetail given an JSON string * * @param jsonString JSON string @@ -120,11 +105,12 @@ private String toIndentedString(Object o) { public static BinDetail fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BinDetail.class); } -/** - * Convert an instance of BinDetail to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BinDetail to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/binlookup/CardBin.java b/src/main/java/com/adyen/model/binlookup/CardBin.java index ab88c03c1..afada99d5 100644 --- a/src/main/java/com/adyen/model/binlookup/CardBin.java +++ b/src/main/java/com/adyen/model/binlookup/CardBin.java @@ -2,31 +2,22 @@ * Adyen BinLookup API * * The version of the OpenAPI document: 54 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.binlookup; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * CardBin - */ +/** CardBin */ @JsonPropertyOrder({ CardBin.JSON_PROPERTY_BIN, CardBin.JSON_PROPERTY_COMMERCIAL, @@ -40,7 +31,6 @@ CardBin.JSON_PROPERTY_PAYOUT_ELIGIBLE, CardBin.JSON_PROPERTY_SUMMARY }) - public class CardBin { public static final String JSON_PROPERTY_BIN = "bin"; private String bin; @@ -75,13 +65,13 @@ public class CardBin { public static final String JSON_PROPERTY_SUMMARY = "summary"; private String summary; - public CardBin() { - } + public CardBin() {} /** * The first 6 digit of the card number. Enable this field via merchant account settings. * - * @param bin The first 6 digit of the card number. Enable this field via merchant account settings. + * @param bin The first 6 digit of the card number. Enable this field via merchant account + * settings. * @return the current {@code CardBin} instance, allowing for method chaining */ public CardBin bin(String bin) { @@ -91,7 +81,9 @@ public CardBin bin(String bin) { /** * The first 6 digit of the card number. Enable this field via merchant account settings. - * @return bin The first 6 digit of the card number. Enable this field via merchant account settings. + * + * @return bin The first 6 digit of the card number. Enable this field via merchant account + * settings. */ @JsonProperty(JSON_PROPERTY_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,7 +94,8 @@ public String getBin() { /** * The first 6 digit of the card number. Enable this field via merchant account settings. * - * @param bin The first 6 digit of the card number. Enable this field via merchant account settings. + * @param bin The first 6 digit of the card number. Enable this field via merchant account + * settings. */ @JsonProperty(JSON_PROPERTY_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,7 +106,8 @@ public void setBin(String bin) { /** * If true, it indicates a commercial card. Enable this field via merchant account settings. * - * @param commercial If true, it indicates a commercial card. Enable this field via merchant account settings. + * @param commercial If true, it indicates a commercial card. Enable this field via merchant + * account settings. * @return the current {@code CardBin} instance, allowing for method chaining */ public CardBin commercial(Boolean commercial) { @@ -123,7 +117,9 @@ public CardBin commercial(Boolean commercial) { /** * If true, it indicates a commercial card. Enable this field via merchant account settings. - * @return commercial If true, it indicates a commercial card. Enable this field via merchant account settings. + * + * @return commercial If true, it indicates a commercial card. Enable this field via merchant + * account settings. */ @JsonProperty(JSON_PROPERTY_COMMERCIAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -134,7 +130,8 @@ public Boolean getCommercial() { /** * If true, it indicates a commercial card. Enable this field via merchant account settings. * - * @param commercial If true, it indicates a commercial card. Enable this field via merchant account settings. + * @param commercial If true, it indicates a commercial card. Enable this field via merchant + * account settings. */ @JsonProperty(JSON_PROPERTY_COMMERCIAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,9 +140,13 @@ public void setCommercial(Boolean commercial) { } /** - * The card funding source. Valid values are: * CHARGE * CREDIT * DEBIT * DEFERRED_DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE > Enable this field via merchant account settings. + * The card funding source. Valid values are: * CHARGE * CREDIT * DEBIT * DEFERRED_DEBIT * PREPAID + * * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE > Enable this field via merchant account + * settings. * - * @param fundingSource The card funding source. Valid values are: * CHARGE * CREDIT * DEBIT * DEFERRED_DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE > Enable this field via merchant account settings. + * @param fundingSource The card funding source. Valid values are: * CHARGE * CREDIT * DEBIT * + * DEFERRED_DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE > Enable this + * field via merchant account settings. * @return the current {@code CardBin} instance, allowing for method chaining */ public CardBin fundingSource(String fundingSource) { @@ -154,8 +155,13 @@ public CardBin fundingSource(String fundingSource) { } /** - * The card funding source. Valid values are: * CHARGE * CREDIT * DEBIT * DEFERRED_DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE > Enable this field via merchant account settings. - * @return fundingSource The card funding source. Valid values are: * CHARGE * CREDIT * DEBIT * DEFERRED_DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE > Enable this field via merchant account settings. + * The card funding source. Valid values are: * CHARGE * CREDIT * DEBIT * DEFERRED_DEBIT * PREPAID + * * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE > Enable this field via merchant account + * settings. + * + * @return fundingSource The card funding source. Valid values are: * CHARGE * CREDIT * DEBIT * + * DEFERRED_DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE > Enable this + * field via merchant account settings. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -164,9 +170,13 @@ public String getFundingSource() { } /** - * The card funding source. Valid values are: * CHARGE * CREDIT * DEBIT * DEFERRED_DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE > Enable this field via merchant account settings. + * The card funding source. Valid values are: * CHARGE * CREDIT * DEBIT * DEFERRED_DEBIT * PREPAID + * * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE > Enable this field via merchant account + * settings. * - * @param fundingSource The card funding source. Valid values are: * CHARGE * CREDIT * DEBIT * DEFERRED_DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE > Enable this field via merchant account settings. + * @param fundingSource The card funding source. Valid values are: * CHARGE * CREDIT * DEBIT * + * DEFERRED_DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE > Enable this + * field via merchant account settings. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -175,9 +185,17 @@ public void setFundingSource(String fundingSource) { } /** - * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". + * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * + * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or + * issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you + * verify a card BIN or estimate costs, and only if `payoutEligible` is different from + * \"N\" or \"U\". * - * @param fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". + * @param fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds + * are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is + * Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) + * > Returned when you verify a card BIN or estimate costs, and only if + * `payoutEligible` is different from \"N\" or \"U\". * @return the current {@code CardBin} instance, allowing for method chaining */ public CardBin fundsAvailability(String fundsAvailability) { @@ -186,8 +204,17 @@ public CardBin fundsAvailability(String fundsAvailability) { } /** - * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". - * @return fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". + * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * + * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or + * issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you + * verify a card BIN or estimate costs, and only if `payoutEligible` is different from + * \"N\" or \"U\". + * + * @return fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds + * are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is + * Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) + * > Returned when you verify a card BIN or estimate costs, and only if + * `payoutEligible` is different from \"N\" or \"U\". */ @JsonProperty(JSON_PROPERTY_FUNDS_AVAILABILITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -196,9 +223,17 @@ public String getFundsAvailability() { } /** - * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". + * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * + * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or + * issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you + * verify a card BIN or estimate costs, and only if `payoutEligible` is different from + * \"N\" or \"U\". * - * @param fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". + * @param fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds + * are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is + * Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) + * > Returned when you verify a card BIN or estimate costs, and only if + * `payoutEligible` is different from \"N\" or \"U\". */ @JsonProperty(JSON_PROPERTY_FUNDS_AVAILABILITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -209,7 +244,8 @@ public void setFundsAvailability(String fundsAvailability) { /** * The first 8 digit of the card number. Enable this field via merchant account settings. * - * @param issuerBin The first 8 digit of the card number. Enable this field via merchant account settings. + * @param issuerBin The first 8 digit of the card number. Enable this field via merchant account + * settings. * @return the current {@code CardBin} instance, allowing for method chaining */ public CardBin issuerBin(String issuerBin) { @@ -219,7 +255,9 @@ public CardBin issuerBin(String issuerBin) { /** * The first 8 digit of the card number. Enable this field via merchant account settings. - * @return issuerBin The first 8 digit of the card number. Enable this field via merchant account settings. + * + * @return issuerBin The first 8 digit of the card number. Enable this field via merchant account + * settings. */ @JsonProperty(JSON_PROPERTY_ISSUER_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -230,7 +268,8 @@ public String getIssuerBin() { /** * The first 8 digit of the card number. Enable this field via merchant account settings. * - * @param issuerBin The first 8 digit of the card number. Enable this field via merchant account settings. + * @param issuerBin The first 8 digit of the card number. Enable this field via merchant account + * settings. */ @JsonProperty(JSON_PROPERTY_ISSUER_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -251,6 +290,7 @@ public CardBin issuingBank(String issuingBank) { /** * The issuing bank of the card. + * * @return issuingBank The issuing bank of the card. */ @JsonProperty(JSON_PROPERTY_ISSUING_BANK) @@ -283,6 +323,7 @@ public CardBin issuingCountry(String issuingCountry) { /** * The country where the card was issued from. + * * @return issuingCountry The country where the card was issued from. */ @JsonProperty(JSON_PROPERTY_ISSUING_COUNTRY) @@ -315,6 +356,7 @@ public CardBin issuingCurrency(String issuingCurrency) { /** * The currency of the card. + * * @return issuingCurrency The currency of the card. */ @JsonProperty(JSON_PROPERTY_ISSUING_CURRENCY) @@ -347,6 +389,7 @@ public CardBin paymentMethod(String paymentMethod) { /** * The payment method associated with the card (e.g. visa, mc, or amex). + * * @return paymentMethod The payment method associated with the card (e.g. visa, mc, or amex). */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @@ -367,9 +410,17 @@ public void setPaymentMethod(String paymentMethod) { } /** - * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". + * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * + * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" + * (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) > Returned when + * you verify a card BIN or estimate costs, and only if `payoutEligible` is different + * from \"N\" or \"U\". * - * @param payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". + * @param payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * + * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) + * * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" + * (unknown) > Returned when you verify a card BIN or estimate costs, and only if + * `payoutEligible` is different from \"N\" or \"U\". * @return the current {@code CardBin} instance, allowing for method chaining */ public CardBin payoutEligible(String payoutEligible) { @@ -378,8 +429,17 @@ public CardBin payoutEligible(String payoutEligible) { } /** - * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". - * @return payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". + * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * + * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" + * (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) > Returned when + * you verify a card BIN or estimate costs, and only if `payoutEligible` is different + * from \"N\" or \"U\". + * + * @return payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * + * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) + * * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" + * (unknown) > Returned when you verify a card BIN or estimate costs, and only if + * `payoutEligible` is different from \"N\" or \"U\". */ @JsonProperty(JSON_PROPERTY_PAYOUT_ELIGIBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -388,9 +448,17 @@ public String getPayoutEligible() { } /** - * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". + * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * + * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" + * (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) > Returned when + * you verify a card BIN or estimate costs, and only if `payoutEligible` is different + * from \"N\" or \"U\". * - * @param payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". + * @param payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * + * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) + * * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" + * (unknown) > Returned when you verify a card BIN or estimate costs, and only if + * `payoutEligible` is different from \"N\" or \"U\". */ @JsonProperty(JSON_PROPERTY_PAYOUT_ELIGIBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -411,6 +479,7 @@ public CardBin summary(String summary) { /** * The last four digits of the card number. + * * @return summary The last four digits of the card number. */ @JsonProperty(JSON_PROPERTY_SUMMARY) @@ -430,9 +499,7 @@ public void setSummary(String summary) { this.summary = summary; } - /** - * Return true if this CardBin object is equal to o. - */ + /** Return true if this CardBin object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -442,22 +509,33 @@ public boolean equals(Object o) { return false; } CardBin cardBin = (CardBin) o; - return Objects.equals(this.bin, cardBin.bin) && - Objects.equals(this.commercial, cardBin.commercial) && - Objects.equals(this.fundingSource, cardBin.fundingSource) && - Objects.equals(this.fundsAvailability, cardBin.fundsAvailability) && - Objects.equals(this.issuerBin, cardBin.issuerBin) && - Objects.equals(this.issuingBank, cardBin.issuingBank) && - Objects.equals(this.issuingCountry, cardBin.issuingCountry) && - Objects.equals(this.issuingCurrency, cardBin.issuingCurrency) && - Objects.equals(this.paymentMethod, cardBin.paymentMethod) && - Objects.equals(this.payoutEligible, cardBin.payoutEligible) && - Objects.equals(this.summary, cardBin.summary); + return Objects.equals(this.bin, cardBin.bin) + && Objects.equals(this.commercial, cardBin.commercial) + && Objects.equals(this.fundingSource, cardBin.fundingSource) + && Objects.equals(this.fundsAvailability, cardBin.fundsAvailability) + && Objects.equals(this.issuerBin, cardBin.issuerBin) + && Objects.equals(this.issuingBank, cardBin.issuingBank) + && Objects.equals(this.issuingCountry, cardBin.issuingCountry) + && Objects.equals(this.issuingCurrency, cardBin.issuingCurrency) + && Objects.equals(this.paymentMethod, cardBin.paymentMethod) + && Objects.equals(this.payoutEligible, cardBin.payoutEligible) + && Objects.equals(this.summary, cardBin.summary); } @Override public int hashCode() { - return Objects.hash(bin, commercial, fundingSource, fundsAvailability, issuerBin, issuingBank, issuingCountry, issuingCurrency, paymentMethod, payoutEligible, summary); + return Objects.hash( + bin, + commercial, + fundingSource, + fundsAvailability, + issuerBin, + issuingBank, + issuingCountry, + issuingCurrency, + paymentMethod, + payoutEligible, + summary); } @Override @@ -480,8 +558,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -490,7 +567,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CardBin given an JSON string * * @param jsonString JSON string @@ -500,11 +577,12 @@ private String toIndentedString(Object o) { public static CardBin fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardBin.class); } -/** - * Convert an instance of CardBin to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CardBin to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/binlookup/CostEstimateAssumptions.java b/src/main/java/com/adyen/model/binlookup/CostEstimateAssumptions.java index 906dcd34f..b9d3e0d55 100644 --- a/src/main/java/com/adyen/model/binlookup/CostEstimateAssumptions.java +++ b/src/main/java/com/adyen/model/binlookup/CostEstimateAssumptions.java @@ -2,39 +2,30 @@ * Adyen BinLookup API * * The version of the OpenAPI document: 54 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.binlookup; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * CostEstimateAssumptions - */ +/** CostEstimateAssumptions */ @JsonPropertyOrder({ CostEstimateAssumptions.JSON_PROPERTY_ASSUME3_D_SECURE_AUTHENTICATED, CostEstimateAssumptions.JSON_PROPERTY_ASSUME_LEVEL3_DATA, CostEstimateAssumptions.JSON_PROPERTY_INSTALLMENTS }) - public class CostEstimateAssumptions { - public static final String JSON_PROPERTY_ASSUME3_D_SECURE_AUTHENTICATED = "assume3DSecureAuthenticated"; + public static final String JSON_PROPERTY_ASSUME3_D_SECURE_AUTHENTICATED = + "assume3DSecureAuthenticated"; private Boolean assume3DSecureAuthenticated; public static final String JSON_PROPERTY_ASSUME_LEVEL3_DATA = "assumeLevel3Data"; @@ -43,13 +34,13 @@ public class CostEstimateAssumptions { public static final String JSON_PROPERTY_INSTALLMENTS = "installments"; private Integer installments; - public CostEstimateAssumptions() { - } + public CostEstimateAssumptions() {} /** * If true, the cardholder is expected to successfully authorise via 3D Secure. * - * @param assume3DSecureAuthenticated If true, the cardholder is expected to successfully authorise via 3D Secure. + * @param assume3DSecureAuthenticated If true, the cardholder is expected to successfully + * authorise via 3D Secure. * @return the current {@code CostEstimateAssumptions} instance, allowing for method chaining */ public CostEstimateAssumptions assume3DSecureAuthenticated(Boolean assume3DSecureAuthenticated) { @@ -59,7 +50,9 @@ public CostEstimateAssumptions assume3DSecureAuthenticated(Boolean assume3DSecur /** * If true, the cardholder is expected to successfully authorise via 3D Secure. - * @return assume3DSecureAuthenticated If true, the cardholder is expected to successfully authorise via 3D Secure. + * + * @return assume3DSecureAuthenticated If true, the cardholder is expected to successfully + * authorise via 3D Secure. */ @JsonProperty(JSON_PROPERTY_ASSUME3_D_SECURE_AUTHENTICATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,7 +63,8 @@ public Boolean getAssume3DSecureAuthenticated() { /** * If true, the cardholder is expected to successfully authorise via 3D Secure. * - * @param assume3DSecureAuthenticated If true, the cardholder is expected to successfully authorise via 3D Secure. + * @param assume3DSecureAuthenticated If true, the cardholder is expected to successfully + * authorise via 3D Secure. */ @JsonProperty(JSON_PROPERTY_ASSUME3_D_SECURE_AUTHENTICATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -91,6 +85,7 @@ public CostEstimateAssumptions assumeLevel3Data(Boolean assumeLevel3Data) { /** * If true, the transaction is expected to have valid Level 3 data. + * * @return assumeLevel3Data If true, the transaction is expected to have valid Level 3 data. */ @JsonProperty(JSON_PROPERTY_ASSUME_LEVEL3_DATA) @@ -123,6 +118,7 @@ public CostEstimateAssumptions installments(Integer installments) { /** * If not zero, the number of installments. + * * @return installments If not zero, the number of installments. */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS) @@ -142,9 +138,7 @@ public void setInstallments(Integer installments) { this.installments = installments; } - /** - * Return true if this CostEstimateAssumptions object is equal to o. - */ + /** Return true if this CostEstimateAssumptions object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +148,10 @@ public boolean equals(Object o) { return false; } CostEstimateAssumptions costEstimateAssumptions = (CostEstimateAssumptions) o; - return Objects.equals(this.assume3DSecureAuthenticated, costEstimateAssumptions.assume3DSecureAuthenticated) && - Objects.equals(this.assumeLevel3Data, costEstimateAssumptions.assumeLevel3Data) && - Objects.equals(this.installments, costEstimateAssumptions.installments); + return Objects.equals( + this.assume3DSecureAuthenticated, costEstimateAssumptions.assume3DSecureAuthenticated) + && Objects.equals(this.assumeLevel3Data, costEstimateAssumptions.assumeLevel3Data) + && Objects.equals(this.installments, costEstimateAssumptions.installments); } @Override @@ -168,7 +163,9 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CostEstimateAssumptions {\n"); - sb.append(" assume3DSecureAuthenticated: ").append(toIndentedString(assume3DSecureAuthenticated)).append("\n"); + sb.append(" assume3DSecureAuthenticated: ") + .append(toIndentedString(assume3DSecureAuthenticated)) + .append("\n"); sb.append(" assumeLevel3Data: ").append(toIndentedString(assumeLevel3Data)).append("\n"); sb.append(" installments: ").append(toIndentedString(installments)).append("\n"); sb.append("}"); @@ -176,8 +173,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +182,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CostEstimateAssumptions given an JSON string * * @param jsonString JSON string * @return An instance of CostEstimateAssumptions - * @throws JsonProcessingException if the JSON string is invalid with respect to CostEstimateAssumptions + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CostEstimateAssumptions */ public static CostEstimateAssumptions fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CostEstimateAssumptions.class); } -/** - * Convert an instance of CostEstimateAssumptions to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CostEstimateAssumptions to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/binlookup/CostEstimateRequest.java b/src/main/java/com/adyen/model/binlookup/CostEstimateRequest.java index 94ddcf5cc..297e83756 100644 --- a/src/main/java/com/adyen/model/binlookup/CostEstimateRequest.java +++ b/src/main/java/com/adyen/model/binlookup/CostEstimateRequest.java @@ -2,35 +2,26 @@ * Adyen BinLookup API * * The version of the OpenAPI document: 54 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.binlookup; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.binlookup.Amount; -import com.adyen.model.binlookup.CostEstimateAssumptions; -import com.adyen.model.binlookup.MerchantDetails; -import com.adyen.model.binlookup.Recurring; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * CostEstimateRequest - */ +/** CostEstimateRequest */ @JsonPropertyOrder({ CostEstimateRequest.JSON_PROPERTY_AMOUNT, CostEstimateRequest.JSON_PROPERTY_ASSUMPTIONS, @@ -43,7 +34,6 @@ CostEstimateRequest.JSON_PROPERTY_SHOPPER_INTERACTION, CostEstimateRequest.JSON_PROPERTY_SHOPPER_REFERENCE }) - public class CostEstimateRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -66,14 +56,24 @@ public class CostEstimateRequest { public static final String JSON_PROPERTY_RECURRING = "recurring"; private Recurring recurring; - public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = "selectedRecurringDetailReference"; + public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = + "selectedRecurringDetailReference"; private String selectedRecurringDetailReference; /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the card holder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the card holder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. */ public enum ShopperInteractionEnum { - ECOMMERCE(String.valueOf("Ecommerce")), CONTAUTH(String.valueOf("ContAuth")), @@ -87,7 +87,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -108,7 +108,11 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning( + "ShopperInteractionEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -119,13 +123,12 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference"; private String shopperReference; - public CostEstimateRequest() { - } + public CostEstimateRequest() {} /** * amount * - * @param amount + * @param amount * @return the current {@code CostEstimateRequest} instance, allowing for method chaining */ public CostEstimateRequest amount(Amount amount) { @@ -135,7 +138,8 @@ public CostEstimateRequest amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,7 +150,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -157,7 +161,7 @@ public void setAmount(Amount amount) { /** * assumptions * - * @param assumptions + * @param assumptions * @return the current {@code CostEstimateRequest} instance, allowing for method chaining */ public CostEstimateRequest assumptions(CostEstimateAssumptions assumptions) { @@ -167,7 +171,8 @@ public CostEstimateRequest assumptions(CostEstimateAssumptions assumptions) { /** * Get assumptions - * @return assumptions + * + * @return assumptions */ @JsonProperty(JSON_PROPERTY_ASSUMPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,7 +183,7 @@ public CostEstimateAssumptions getAssumptions() { /** * assumptions * - * @param assumptions + * @param assumptions */ @JsonProperty(JSON_PROPERTY_ASSUMPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,9 +192,13 @@ public void setAssumptions(CostEstimateAssumptions assumptions) { } /** - * The card number (4-19 characters) for PCI compliant use cases. Do not use any separators. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request. + * The card number (4-19 characters) for PCI compliant use cases. Do not use any separators. > + * Either the `cardNumber` or `encryptedCardNumber` field must be provided in + * a payment request. * - * @param cardNumber The card number (4-19 characters) for PCI compliant use cases. Do not use any separators. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request. + * @param cardNumber The card number (4-19 characters) for PCI compliant use cases. Do not use any + * separators. > Either the `cardNumber` or `encryptedCardNumber` field + * must be provided in a payment request. * @return the current {@code CostEstimateRequest} instance, allowing for method chaining */ public CostEstimateRequest cardNumber(String cardNumber) { @@ -198,8 +207,13 @@ public CostEstimateRequest cardNumber(String cardNumber) { } /** - * The card number (4-19 characters) for PCI compliant use cases. Do not use any separators. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request. - * @return cardNumber The card number (4-19 characters) for PCI compliant use cases. Do not use any separators. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request. + * The card number (4-19 characters) for PCI compliant use cases. Do not use any separators. > + * Either the `cardNumber` or `encryptedCardNumber` field must be provided in + * a payment request. + * + * @return cardNumber The card number (4-19 characters) for PCI compliant use cases. Do not use + * any separators. > Either the `cardNumber` or `encryptedCardNumber` + * field must be provided in a payment request. */ @JsonProperty(JSON_PROPERTY_CARD_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,9 +222,13 @@ public String getCardNumber() { } /** - * The card number (4-19 characters) for PCI compliant use cases. Do not use any separators. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request. + * The card number (4-19 characters) for PCI compliant use cases. Do not use any separators. > + * Either the `cardNumber` or `encryptedCardNumber` field must be provided in + * a payment request. * - * @param cardNumber The card number (4-19 characters) for PCI compliant use cases. Do not use any separators. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request. + * @param cardNumber The card number (4-19 characters) for PCI compliant use cases. Do not use any + * separators. > Either the `cardNumber` or `encryptedCardNumber` field + * must be provided in a payment request. */ @JsonProperty(JSON_PROPERTY_CARD_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,9 +237,16 @@ public void setCardNumber(String cardNumber) { } /** - * Encrypted data that stores card information for non PCI-compliant use cases. The encrypted data must be created with the Checkout Card Component or Secured Fields Component, and must contain the `encryptedCardNumber` field. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request. + * Encrypted data that stores card information for non PCI-compliant use cases. The encrypted data + * must be created with the Checkout Card Component or Secured Fields Component, and must contain + * the `encryptedCardNumber` field. > Either the `cardNumber` or + * `encryptedCardNumber` field must be provided in a payment request. * - * @param encryptedCardNumber Encrypted data that stores card information for non PCI-compliant use cases. The encrypted data must be created with the Checkout Card Component or Secured Fields Component, and must contain the `encryptedCardNumber` field. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request. + * @param encryptedCardNumber Encrypted data that stores card information for non PCI-compliant + * use cases. The encrypted data must be created with the Checkout Card Component or Secured + * Fields Component, and must contain the `encryptedCardNumber` field. > Either + * the `cardNumber` or `encryptedCardNumber` field must be provided in a + * payment request. * @return the current {@code CostEstimateRequest} instance, allowing for method chaining */ public CostEstimateRequest encryptedCardNumber(String encryptedCardNumber) { @@ -230,8 +255,16 @@ public CostEstimateRequest encryptedCardNumber(String encryptedCardNumber) { } /** - * Encrypted data that stores card information for non PCI-compliant use cases. The encrypted data must be created with the Checkout Card Component or Secured Fields Component, and must contain the `encryptedCardNumber` field. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request. - * @return encryptedCardNumber Encrypted data that stores card information for non PCI-compliant use cases. The encrypted data must be created with the Checkout Card Component or Secured Fields Component, and must contain the `encryptedCardNumber` field. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request. + * Encrypted data that stores card information for non PCI-compliant use cases. The encrypted data + * must be created with the Checkout Card Component or Secured Fields Component, and must contain + * the `encryptedCardNumber` field. > Either the `cardNumber` or + * `encryptedCardNumber` field must be provided in a payment request. + * + * @return encryptedCardNumber Encrypted data that stores card information for non PCI-compliant + * use cases. The encrypted data must be created with the Checkout Card Component or Secured + * Fields Component, and must contain the `encryptedCardNumber` field. > Either + * the `cardNumber` or `encryptedCardNumber` field must be provided in a + * payment request. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_CARD_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,9 +273,16 @@ public String getEncryptedCardNumber() { } /** - * Encrypted data that stores card information for non PCI-compliant use cases. The encrypted data must be created with the Checkout Card Component or Secured Fields Component, and must contain the `encryptedCardNumber` field. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request. + * Encrypted data that stores card information for non PCI-compliant use cases. The encrypted data + * must be created with the Checkout Card Component or Secured Fields Component, and must contain + * the `encryptedCardNumber` field. > Either the `cardNumber` or + * `encryptedCardNumber` field must be provided in a payment request. * - * @param encryptedCardNumber Encrypted data that stores card information for non PCI-compliant use cases. The encrypted data must be created with the Checkout Card Component or Secured Fields Component, and must contain the `encryptedCardNumber` field. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request. + * @param encryptedCardNumber Encrypted data that stores card information for non PCI-compliant + * use cases. The encrypted data must be created with the Checkout Card Component or Secured + * Fields Component, and must contain the `encryptedCardNumber` field. > Either + * the `cardNumber` or `encryptedCardNumber` field must be provided in a + * payment request. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_CARD_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -253,7 +293,8 @@ public void setEncryptedCardNumber(String encryptedCardNumber) { /** * The merchant account identifier you want to process the (transaction) request with. * - * @param merchantAccount The merchant account identifier you want to process the (transaction) request with. + * @param merchantAccount The merchant account identifier you want to process the (transaction) + * request with. * @return the current {@code CostEstimateRequest} instance, allowing for method chaining */ public CostEstimateRequest merchantAccount(String merchantAccount) { @@ -263,7 +304,9 @@ public CostEstimateRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier you want to process the (transaction) request with. - * @return merchantAccount The merchant account identifier you want to process the (transaction) request with. + * + * @return merchantAccount The merchant account identifier you want to process the (transaction) + * request with. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -274,7 +317,8 @@ public String getMerchantAccount() { /** * The merchant account identifier you want to process the (transaction) request with. * - * @param merchantAccount The merchant account identifier you want to process the (transaction) request with. + * @param merchantAccount The merchant account identifier you want to process the (transaction) + * request with. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -285,7 +329,7 @@ public void setMerchantAccount(String merchantAccount) { /** * merchantDetails * - * @param merchantDetails + * @param merchantDetails * @return the current {@code CostEstimateRequest} instance, allowing for method chaining */ public CostEstimateRequest merchantDetails(MerchantDetails merchantDetails) { @@ -295,7 +339,8 @@ public CostEstimateRequest merchantDetails(MerchantDetails merchantDetails) { /** * Get merchantDetails - * @return merchantDetails + * + * @return merchantDetails */ @JsonProperty(JSON_PROPERTY_MERCHANT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -306,7 +351,7 @@ public MerchantDetails getMerchantDetails() { /** * merchantDetails * - * @param merchantDetails + * @param merchantDetails */ @JsonProperty(JSON_PROPERTY_MERCHANT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -317,7 +362,7 @@ public void setMerchantDetails(MerchantDetails merchantDetails) { /** * recurring * - * @param recurring + * @param recurring * @return the current {@code CostEstimateRequest} instance, allowing for method chaining */ public CostEstimateRequest recurring(Recurring recurring) { @@ -327,7 +372,8 @@ public CostEstimateRequest recurring(Recurring recurring) { /** * Get recurring - * @return recurring + * + * @return recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -338,7 +384,7 @@ public Recurring getRecurring() { /** * recurring * - * @param recurring + * @param recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -347,19 +393,27 @@ public void setRecurring(Recurring recurring) { } /** - * The `recurringDetailReference` you want to use for this cost estimate. The value `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this cost estimate. The value + * `LATEST` can be used to select the most recently stored recurring detail. * - * @param selectedRecurringDetailReference The `recurringDetailReference` you want to use for this cost estimate. The value `LATEST` can be used to select the most recently stored recurring detail. + * @param selectedRecurringDetailReference The `recurringDetailReference` you want to + * use for this cost estimate. The value `LATEST` can be used to select the most + * recently stored recurring detail. * @return the current {@code CostEstimateRequest} instance, allowing for method chaining */ - public CostEstimateRequest selectedRecurringDetailReference(String selectedRecurringDetailReference) { + public CostEstimateRequest selectedRecurringDetailReference( + String selectedRecurringDetailReference) { this.selectedRecurringDetailReference = selectedRecurringDetailReference; return this; } /** - * The `recurringDetailReference` you want to use for this cost estimate. The value `LATEST` can be used to select the most recently stored recurring detail. - * @return selectedRecurringDetailReference The `recurringDetailReference` you want to use for this cost estimate. The value `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this cost estimate. The value + * `LATEST` can be used to select the most recently stored recurring detail. + * + * @return selectedRecurringDetailReference The `recurringDetailReference` you want to + * use for this cost estimate. The value `LATEST` can be used to select the most + * recently stored recurring detail. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -368,9 +422,12 @@ public String getSelectedRecurringDetailReference() { } /** - * The `recurringDetailReference` you want to use for this cost estimate. The value `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this cost estimate. The value + * `LATEST` can be used to select the most recently stored recurring detail. * - * @param selectedRecurringDetailReference The `recurringDetailReference` you want to use for this cost estimate. The value `LATEST` can be used to select the most recently stored recurring detail. + * @param selectedRecurringDetailReference The `recurringDetailReference` you want to + * use for this cost estimate. The value `LATEST` can be used to select the most + * recently stored recurring detail. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -379,9 +436,30 @@ public void setSelectedRecurringDetailReference(String selectedRecurringDetailRe } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the card holder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the card holder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the card holder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the card holder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. * @return the current {@code CostEstimateRequest} instance, allowing for method chaining */ public CostEstimateRequest shopperInteraction(ShopperInteractionEnum shopperInteraction) { @@ -390,8 +468,30 @@ public CostEstimateRequest shopperInteraction(ShopperInteractionEnum shopperInte } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the card holder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * @return shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the card holder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the card holder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. + * + * @return shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the card holder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -400,9 +500,30 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the card holder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the card holder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the card holder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the card holder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -411,9 +532,15 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example + * user ID or account ID. The value is case-sensitive and must be at least three characters. > + * Your reference must not include personally identifiable information (PII) such as name or email + * address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify + * this shopper, for example user ID or account ID. The value is case-sensitive and must be at + * least three characters. > Your reference must not include personally identifiable + * information (PII) such as name or email address. * @return the current {@code CostEstimateRequest} instance, allowing for method chaining */ public CostEstimateRequest shopperReference(String shopperReference) { @@ -422,8 +549,15 @@ public CostEstimateRequest shopperReference(String shopperReference) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. - * @return shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example + * user ID or account ID. The value is case-sensitive and must be at least three characters. > + * Your reference must not include personally identifiable information (PII) such as name or email + * address. + * + * @return shopperReference Required for recurring payments. Your reference to uniquely identify + * this shopper, for example user ID or account ID. The value is case-sensitive and must be at + * least three characters. > Your reference must not include personally identifiable + * information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -432,9 +566,15 @@ public String getShopperReference() { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example + * user ID or account ID. The value is case-sensitive and must be at least three characters. > + * Your reference must not include personally identifiable information (PII) such as name or email + * address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify + * this shopper, for example user ID or account ID. The value is case-sensitive and must be at + * least three characters. > Your reference must not include personally identifiable + * information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -442,9 +582,7 @@ public void setShopperReference(String shopperReference) { this.shopperReference = shopperReference; } - /** - * Return true if this CostEstimateRequest object is equal to o. - */ + /** Return true if this CostEstimateRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -454,21 +592,33 @@ public boolean equals(Object o) { return false; } CostEstimateRequest costEstimateRequest = (CostEstimateRequest) o; - return Objects.equals(this.amount, costEstimateRequest.amount) && - Objects.equals(this.assumptions, costEstimateRequest.assumptions) && - Objects.equals(this.cardNumber, costEstimateRequest.cardNumber) && - Objects.equals(this.encryptedCardNumber, costEstimateRequest.encryptedCardNumber) && - Objects.equals(this.merchantAccount, costEstimateRequest.merchantAccount) && - Objects.equals(this.merchantDetails, costEstimateRequest.merchantDetails) && - Objects.equals(this.recurring, costEstimateRequest.recurring) && - Objects.equals(this.selectedRecurringDetailReference, costEstimateRequest.selectedRecurringDetailReference) && - Objects.equals(this.shopperInteraction, costEstimateRequest.shopperInteraction) && - Objects.equals(this.shopperReference, costEstimateRequest.shopperReference); + return Objects.equals(this.amount, costEstimateRequest.amount) + && Objects.equals(this.assumptions, costEstimateRequest.assumptions) + && Objects.equals(this.cardNumber, costEstimateRequest.cardNumber) + && Objects.equals(this.encryptedCardNumber, costEstimateRequest.encryptedCardNumber) + && Objects.equals(this.merchantAccount, costEstimateRequest.merchantAccount) + && Objects.equals(this.merchantDetails, costEstimateRequest.merchantDetails) + && Objects.equals(this.recurring, costEstimateRequest.recurring) + && Objects.equals( + this.selectedRecurringDetailReference, + costEstimateRequest.selectedRecurringDetailReference) + && Objects.equals(this.shopperInteraction, costEstimateRequest.shopperInteraction) + && Objects.equals(this.shopperReference, costEstimateRequest.shopperReference); } @Override public int hashCode() { - return Objects.hash(amount, assumptions, cardNumber, encryptedCardNumber, merchantAccount, merchantDetails, recurring, selectedRecurringDetailReference, shopperInteraction, shopperReference); + return Objects.hash( + amount, + assumptions, + cardNumber, + encryptedCardNumber, + merchantAccount, + merchantDetails, + recurring, + selectedRecurringDetailReference, + shopperInteraction, + shopperReference); } @Override @@ -478,11 +628,15 @@ public String toString() { sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" assumptions: ").append(toIndentedString(assumptions)).append("\n"); sb.append(" cardNumber: ").append(toIndentedString(cardNumber)).append("\n"); - sb.append(" encryptedCardNumber: ").append(toIndentedString(encryptedCardNumber)).append("\n"); + sb.append(" encryptedCardNumber: ") + .append(toIndentedString(encryptedCardNumber)) + .append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" merchantDetails: ").append(toIndentedString(merchantDetails)).append("\n"); sb.append(" recurring: ").append(toIndentedString(recurring)).append("\n"); - sb.append(" selectedRecurringDetailReference: ").append(toIndentedString(selectedRecurringDetailReference)).append("\n"); + sb.append(" selectedRecurringDetailReference: ") + .append(toIndentedString(selectedRecurringDetailReference)) + .append("\n"); sb.append(" shopperInteraction: ").append(toIndentedString(shopperInteraction)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append("}"); @@ -490,8 +644,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -500,21 +653,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CostEstimateRequest given an JSON string * * @param jsonString JSON string * @return An instance of CostEstimateRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to CostEstimateRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CostEstimateRequest */ public static CostEstimateRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CostEstimateRequest.class); } -/** - * Convert an instance of CostEstimateRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CostEstimateRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/binlookup/CostEstimateResponse.java b/src/main/java/com/adyen/model/binlookup/CostEstimateResponse.java index d24dae628..4a4746707 100644 --- a/src/main/java/com/adyen/model/binlookup/CostEstimateResponse.java +++ b/src/main/java/com/adyen/model/binlookup/CostEstimateResponse.java @@ -2,40 +2,28 @@ * Adyen BinLookup API * * The version of the OpenAPI document: 54 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.binlookup; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.binlookup.Amount; -import com.adyen.model.binlookup.CardBin; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * CostEstimateResponse - */ +/** CostEstimateResponse */ @JsonPropertyOrder({ CostEstimateResponse.JSON_PROPERTY_CARD_BIN, CostEstimateResponse.JSON_PROPERTY_COST_ESTIMATE_AMOUNT, CostEstimateResponse.JSON_PROPERTY_COST_ESTIMATE_REFERENCE, CostEstimateResponse.JSON_PROPERTY_RESULT_CODE }) - public class CostEstimateResponse { public static final String JSON_PROPERTY_CARD_BIN = "cardBin"; private CardBin cardBin; @@ -49,13 +37,12 @@ public class CostEstimateResponse { public static final String JSON_PROPERTY_RESULT_CODE = "resultCode"; private String resultCode; - public CostEstimateResponse() { - } + public CostEstimateResponse() {} /** * cardBin * - * @param cardBin + * @param cardBin * @return the current {@code CostEstimateResponse} instance, allowing for method chaining */ public CostEstimateResponse cardBin(CardBin cardBin) { @@ -65,7 +52,8 @@ public CostEstimateResponse cardBin(CardBin cardBin) { /** * Get cardBin - * @return cardBin + * + * @return cardBin */ @JsonProperty(JSON_PROPERTY_CARD_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -76,7 +64,7 @@ public CardBin getCardBin() { /** * cardBin * - * @param cardBin + * @param cardBin */ @JsonProperty(JSON_PROPERTY_CARD_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,7 +75,7 @@ public void setCardBin(CardBin cardBin) { /** * costEstimateAmount * - * @param costEstimateAmount + * @param costEstimateAmount * @return the current {@code CostEstimateResponse} instance, allowing for method chaining */ public CostEstimateResponse costEstimateAmount(Amount costEstimateAmount) { @@ -97,7 +85,8 @@ public CostEstimateResponse costEstimateAmount(Amount costEstimateAmount) { /** * Get costEstimateAmount - * @return costEstimateAmount + * + * @return costEstimateAmount */ @JsonProperty(JSON_PROPERTY_COST_ESTIMATE_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,7 +97,7 @@ public Amount getCostEstimateAmount() { /** * costEstimateAmount * - * @param costEstimateAmount + * @param costEstimateAmount */ @JsonProperty(JSON_PROPERTY_COST_ESTIMATE_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,6 +118,7 @@ public CostEstimateResponse costEstimateReference(String costEstimateReference) /** * Adyen's 16-character reference associated with the request. + * * @return costEstimateReference Adyen's 16-character reference associated with the request. */ @JsonProperty(JSON_PROPERTY_COST_ESTIMATE_REFERENCE) @@ -161,6 +151,7 @@ public CostEstimateResponse resultCode(String resultCode) { /** * The result of the cost estimation. + * * @return resultCode The result of the cost estimation. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @@ -180,9 +171,7 @@ public void setResultCode(String resultCode) { this.resultCode = resultCode; } - /** - * Return true if this CostEstimateResponse object is equal to o. - */ + /** Return true if this CostEstimateResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,10 +181,10 @@ public boolean equals(Object o) { return false; } CostEstimateResponse costEstimateResponse = (CostEstimateResponse) o; - return Objects.equals(this.cardBin, costEstimateResponse.cardBin) && - Objects.equals(this.costEstimateAmount, costEstimateResponse.costEstimateAmount) && - Objects.equals(this.costEstimateReference, costEstimateResponse.costEstimateReference) && - Objects.equals(this.resultCode, costEstimateResponse.resultCode); + return Objects.equals(this.cardBin, costEstimateResponse.cardBin) + && Objects.equals(this.costEstimateAmount, costEstimateResponse.costEstimateAmount) + && Objects.equals(this.costEstimateReference, costEstimateResponse.costEstimateReference) + && Objects.equals(this.resultCode, costEstimateResponse.resultCode); } @Override @@ -209,15 +198,16 @@ public String toString() { sb.append("class CostEstimateResponse {\n"); sb.append(" cardBin: ").append(toIndentedString(cardBin)).append("\n"); sb.append(" costEstimateAmount: ").append(toIndentedString(costEstimateAmount)).append("\n"); - sb.append(" costEstimateReference: ").append(toIndentedString(costEstimateReference)).append("\n"); + sb.append(" costEstimateReference: ") + .append(toIndentedString(costEstimateReference)) + .append("\n"); sb.append(" resultCode: ").append(toIndentedString(resultCode)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -226,21 +216,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CostEstimateResponse given an JSON string * * @param jsonString JSON string * @return An instance of CostEstimateResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to CostEstimateResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CostEstimateResponse */ public static CostEstimateResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CostEstimateResponse.class); } -/** - * Convert an instance of CostEstimateResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CostEstimateResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/binlookup/DSPublicKeyDetail.java b/src/main/java/com/adyen/model/binlookup/DSPublicKeyDetail.java index 7a0bcff91..c19037c43 100644 --- a/src/main/java/com/adyen/model/binlookup/DSPublicKeyDetail.java +++ b/src/main/java/com/adyen/model/binlookup/DSPublicKeyDetail.java @@ -2,31 +2,23 @@ * Adyen BinLookup API * * The version of the OpenAPI document: 54 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.binlookup; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; - -/** - * DSPublicKeyDetail - */ +/** DSPublicKeyDetail */ @JsonPropertyOrder({ DSPublicKeyDetail.JSON_PROPERTY_BRAND, DSPublicKeyDetail.JSON_PROPERTY_DIRECTORY_SERVER_ID, @@ -34,7 +26,6 @@ DSPublicKeyDetail.JSON_PROPERTY_PUBLIC_KEY, DSPublicKeyDetail.JSON_PROPERTY_ROOT_CERTIFICATES }) - public class DSPublicKeyDetail { public static final String JSON_PROPERTY_BRAND = "brand"; private String brand; @@ -51,8 +42,7 @@ public class DSPublicKeyDetail { public static final String JSON_PROPERTY_ROOT_CERTIFICATES = "rootCertificates"; private String rootCertificates; - public DSPublicKeyDetail() { - } + public DSPublicKeyDetail() {} /** * Card brand. @@ -67,6 +57,7 @@ public DSPublicKeyDetail brand(String brand) { /** * Card brand. + * * @return brand Card brand. */ @JsonProperty(JSON_PROPERTY_BRAND) @@ -99,6 +90,7 @@ public DSPublicKeyDetail directoryServerId(String directoryServerId) { /** * Directory Server (DS) identifier. + * * @return directoryServerId Directory Server (DS) identifier. */ @JsonProperty(JSON_PROPERTY_DIRECTORY_SERVER_ID) @@ -119,9 +111,14 @@ public void setDirectoryServerId(String directoryServerId) { } /** - * The version of the mobile 3D Secure 2 SDK. For the possible values, refer to the versions in [Adyen 3DS2 Android](https://github.com/Adyen/adyen-3ds2-android/releases) and [Adyen 3DS2 iOS](https://github.com/Adyen/adyen-3ds2-ios/releases). + * The version of the mobile 3D Secure 2 SDK. For the possible values, refer to the versions in + * [Adyen 3DS2 Android](https://github.com/Adyen/adyen-3ds2-android/releases) and [Adyen 3DS2 + * iOS](https://github.com/Adyen/adyen-3ds2-ios/releases). * - * @param fromSDKVersion The version of the mobile 3D Secure 2 SDK. For the possible values, refer to the versions in [Adyen 3DS2 Android](https://github.com/Adyen/adyen-3ds2-android/releases) and [Adyen 3DS2 iOS](https://github.com/Adyen/adyen-3ds2-ios/releases). + * @param fromSDKVersion The version of the mobile 3D Secure 2 SDK. For the possible values, refer + * to the versions in [Adyen 3DS2 + * Android](https://github.com/Adyen/adyen-3ds2-android/releases) and [Adyen 3DS2 + * iOS](https://github.com/Adyen/adyen-3ds2-ios/releases). * @return the current {@code DSPublicKeyDetail} instance, allowing for method chaining */ public DSPublicKeyDetail fromSDKVersion(String fromSDKVersion) { @@ -130,8 +127,14 @@ public DSPublicKeyDetail fromSDKVersion(String fromSDKVersion) { } /** - * The version of the mobile 3D Secure 2 SDK. For the possible values, refer to the versions in [Adyen 3DS2 Android](https://github.com/Adyen/adyen-3ds2-android/releases) and [Adyen 3DS2 iOS](https://github.com/Adyen/adyen-3ds2-ios/releases). - * @return fromSDKVersion The version of the mobile 3D Secure 2 SDK. For the possible values, refer to the versions in [Adyen 3DS2 Android](https://github.com/Adyen/adyen-3ds2-android/releases) and [Adyen 3DS2 iOS](https://github.com/Adyen/adyen-3ds2-ios/releases). + * The version of the mobile 3D Secure 2 SDK. For the possible values, refer to the versions in + * [Adyen 3DS2 Android](https://github.com/Adyen/adyen-3ds2-android/releases) and [Adyen 3DS2 + * iOS](https://github.com/Adyen/adyen-3ds2-ios/releases). + * + * @return fromSDKVersion The version of the mobile 3D Secure 2 SDK. For the possible values, + * refer to the versions in [Adyen 3DS2 + * Android](https://github.com/Adyen/adyen-3ds2-android/releases) and [Adyen 3DS2 + * iOS](https://github.com/Adyen/adyen-3ds2-ios/releases). */ @JsonProperty(JSON_PROPERTY_FROM_S_D_K_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,9 +143,14 @@ public String getFromSDKVersion() { } /** - * The version of the mobile 3D Secure 2 SDK. For the possible values, refer to the versions in [Adyen 3DS2 Android](https://github.com/Adyen/adyen-3ds2-android/releases) and [Adyen 3DS2 iOS](https://github.com/Adyen/adyen-3ds2-ios/releases). + * The version of the mobile 3D Secure 2 SDK. For the possible values, refer to the versions in + * [Adyen 3DS2 Android](https://github.com/Adyen/adyen-3ds2-android/releases) and [Adyen 3DS2 + * iOS](https://github.com/Adyen/adyen-3ds2-ios/releases). * - * @param fromSDKVersion The version of the mobile 3D Secure 2 SDK. For the possible values, refer to the versions in [Adyen 3DS2 Android](https://github.com/Adyen/adyen-3ds2-android/releases) and [Adyen 3DS2 iOS](https://github.com/Adyen/adyen-3ds2-ios/releases). + * @param fromSDKVersion The version of the mobile 3D Secure 2 SDK. For the possible values, refer + * to the versions in [Adyen 3DS2 + * Android](https://github.com/Adyen/adyen-3ds2-android/releases) and [Adyen 3DS2 + * iOS](https://github.com/Adyen/adyen-3ds2-ios/releases). */ @JsonProperty(JSON_PROPERTY_FROM_S_D_K_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -153,7 +161,8 @@ public void setFromSDKVersion(String fromSDKVersion) { /** * Public key. The 3D Secure 2 SDK encrypts the device information by using the DS public key. * - * @param publicKey Public key. The 3D Secure 2 SDK encrypts the device information by using the DS public key. + * @param publicKey Public key. The 3D Secure 2 SDK encrypts the device information by using the + * DS public key. * @return the current {@code DSPublicKeyDetail} instance, allowing for method chaining */ public DSPublicKeyDetail publicKey(byte[] publicKey) { @@ -163,7 +172,9 @@ public DSPublicKeyDetail publicKey(byte[] publicKey) { /** * Public key. The 3D Secure 2 SDK encrypts the device information by using the DS public key. - * @return publicKey Public key. The 3D Secure 2 SDK encrypts the device information by using the DS public key. + * + * @return publicKey Public key. The 3D Secure 2 SDK encrypts the device information by using the + * DS public key. */ @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -174,7 +185,8 @@ public byte[] getPublicKey() { /** * Public key. The 3D Secure 2 SDK encrypts the device information by using the DS public key. * - * @param publicKey Public key. The 3D Secure 2 SDK encrypts the device information by using the DS public key. + * @param publicKey Public key. The 3D Secure 2 SDK encrypts the device information by using the + * DS public key. */ @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,9 +195,11 @@ public void setPublicKey(byte[] publicKey) { } /** - * Directory Server root certificates. The 3D Secure 2 SDK verifies the ACS signed content using the rootCertificates. + * Directory Server root certificates. The 3D Secure 2 SDK verifies the ACS signed content using + * the rootCertificates. * - * @param rootCertificates Directory Server root certificates. The 3D Secure 2 SDK verifies the ACS signed content using the rootCertificates. + * @param rootCertificates Directory Server root certificates. The 3D Secure 2 SDK verifies the + * ACS signed content using the rootCertificates. * @return the current {@code DSPublicKeyDetail} instance, allowing for method chaining */ public DSPublicKeyDetail rootCertificates(String rootCertificates) { @@ -194,8 +208,11 @@ public DSPublicKeyDetail rootCertificates(String rootCertificates) { } /** - * Directory Server root certificates. The 3D Secure 2 SDK verifies the ACS signed content using the rootCertificates. - * @return rootCertificates Directory Server root certificates. The 3D Secure 2 SDK verifies the ACS signed content using the rootCertificates. + * Directory Server root certificates. The 3D Secure 2 SDK verifies the ACS signed content using + * the rootCertificates. + * + * @return rootCertificates Directory Server root certificates. The 3D Secure 2 SDK verifies the + * ACS signed content using the rootCertificates. */ @JsonProperty(JSON_PROPERTY_ROOT_CERTIFICATES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,9 +221,11 @@ public String getRootCertificates() { } /** - * Directory Server root certificates. The 3D Secure 2 SDK verifies the ACS signed content using the rootCertificates. + * Directory Server root certificates. The 3D Secure 2 SDK verifies the ACS signed content using + * the rootCertificates. * - * @param rootCertificates Directory Server root certificates. The 3D Secure 2 SDK verifies the ACS signed content using the rootCertificates. + * @param rootCertificates Directory Server root certificates. The 3D Secure 2 SDK verifies the + * ACS signed content using the rootCertificates. */ @JsonProperty(JSON_PROPERTY_ROOT_CERTIFICATES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,9 +233,7 @@ public void setRootCertificates(String rootCertificates) { this.rootCertificates = rootCertificates; } - /** - * Return true if this DSPublicKeyDetail object is equal to o. - */ + /** Return true if this DSPublicKeyDetail object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -226,16 +243,17 @@ public boolean equals(Object o) { return false; } DSPublicKeyDetail dsPublicKeyDetail = (DSPublicKeyDetail) o; - return Objects.equals(this.brand, dsPublicKeyDetail.brand) && - Objects.equals(this.directoryServerId, dsPublicKeyDetail.directoryServerId) && - Objects.equals(this.fromSDKVersion, dsPublicKeyDetail.fromSDKVersion) && - Arrays.equals(this.publicKey, dsPublicKeyDetail.publicKey) && - Objects.equals(this.rootCertificates, dsPublicKeyDetail.rootCertificates); + return Objects.equals(this.brand, dsPublicKeyDetail.brand) + && Objects.equals(this.directoryServerId, dsPublicKeyDetail.directoryServerId) + && Objects.equals(this.fromSDKVersion, dsPublicKeyDetail.fromSDKVersion) + && Arrays.equals(this.publicKey, dsPublicKeyDetail.publicKey) + && Objects.equals(this.rootCertificates, dsPublicKeyDetail.rootCertificates); } @Override public int hashCode() { - return Objects.hash(brand, directoryServerId, fromSDKVersion, Arrays.hashCode(publicKey), rootCertificates); + return Objects.hash( + brand, directoryServerId, fromSDKVersion, Arrays.hashCode(publicKey), rootCertificates); } @Override @@ -252,8 +270,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -262,7 +279,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DSPublicKeyDetail given an JSON string * * @param jsonString JSON string @@ -272,11 +289,12 @@ private String toIndentedString(Object o) { public static DSPublicKeyDetail fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DSPublicKeyDetail.class); } -/** - * Convert an instance of DSPublicKeyDetail to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DSPublicKeyDetail to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/binlookup/JSON.java b/src/main/java/com/adyen/model/binlookup/JSON.java index 457befe0e..275acb249 100644 --- a/src/main/java/com/adyen/model/binlookup/JSON.java +++ b/src/main/java/com/adyen/model/binlookup/JSON.java @@ -1,21 +1,18 @@ package com.adyen.model.binlookup; -import com.adyen.serializer.ByteArraySerializer; import com.adyen.serializer.ByteArrayDeserializer; +import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import com.adyen.model.binlookup.*; - +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -40,6 +37,7 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. + * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -56,11 +54,13 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { return mapper; } + public static ObjectMapper getMapper() { + return mapper; + } /** - * Returns the target model class that should be used to deserialize the input data. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,9 +73,7 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** - * Helper class to register the discriminator mappings. - */ + /** Helper class to register the discriminator mappings. */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -117,9 +115,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. - * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. This + * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -164,13 +162,14 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, - * so it's not possible to use the instanceof keyword. + *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so + * it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf( + Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -194,59 +193,58 @@ public static boolean isInstanceOf(Class modelClass, Object inst, Set, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); + /** A map of discriminators for all model classes. */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = + new HashMap, ClassDiscriminatorMapping>(); - /** - * A map of oneOf/anyOf descendants for each model class. - */ + /** A map of oneOf/anyOf descendants for each model class. */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator( + Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = + new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants(Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants( + Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static - { + static { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/binlookup/MerchantDetails.java b/src/main/java/com/adyen/model/binlookup/MerchantDetails.java index bc6a30cd3..02bbc179b 100644 --- a/src/main/java/com/adyen/model/binlookup/MerchantDetails.java +++ b/src/main/java/com/adyen/model/binlookup/MerchantDetails.java @@ -2,37 +2,27 @@ * Adyen BinLookup API * * The version of the OpenAPI document: 54 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.binlookup; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * MerchantDetails - */ +/** MerchantDetails */ @JsonPropertyOrder({ MerchantDetails.JSON_PROPERTY_COUNTRY_CODE, MerchantDetails.JSON_PROPERTY_ENROLLED_IN3_D_SECURE, MerchantDetails.JSON_PROPERTY_MCC }) - public class MerchantDetails { public static final String JSON_PROPERTY_COUNTRY_CODE = "countryCode"; private String countryCode; @@ -43,13 +33,15 @@ public class MerchantDetails { public static final String JSON_PROPERTY_MCC = "mcc"; private String mcc; - public MerchantDetails() { - } + public MerchantDetails() {} /** - * 2-letter ISO 3166 country code of the card acceptor location. > This parameter is required for the merchants who don't use Adyen as the payment authorisation gateway. + * 2-letter ISO 3166 country code of the card acceptor location. > This parameter is required + * for the merchants who don't use Adyen as the payment authorisation gateway. * - * @param countryCode 2-letter ISO 3166 country code of the card acceptor location. > This parameter is required for the merchants who don't use Adyen as the payment authorisation gateway. + * @param countryCode 2-letter ISO 3166 country code of the card acceptor location. > This + * parameter is required for the merchants who don't use Adyen as the payment + * authorisation gateway. * @return the current {@code MerchantDetails} instance, allowing for method chaining */ public MerchantDetails countryCode(String countryCode) { @@ -58,8 +50,12 @@ public MerchantDetails countryCode(String countryCode) { } /** - * 2-letter ISO 3166 country code of the card acceptor location. > This parameter is required for the merchants who don't use Adyen as the payment authorisation gateway. - * @return countryCode 2-letter ISO 3166 country code of the card acceptor location. > This parameter is required for the merchants who don't use Adyen as the payment authorisation gateway. + * 2-letter ISO 3166 country code of the card acceptor location. > This parameter is required + * for the merchants who don't use Adyen as the payment authorisation gateway. + * + * @return countryCode 2-letter ISO 3166 country code of the card acceptor location. > This + * parameter is required for the merchants who don't use Adyen as the payment + * authorisation gateway. */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,9 +64,12 @@ public String getCountryCode() { } /** - * 2-letter ISO 3166 country code of the card acceptor location. > This parameter is required for the merchants who don't use Adyen as the payment authorisation gateway. + * 2-letter ISO 3166 country code of the card acceptor location. > This parameter is required + * for the merchants who don't use Adyen as the payment authorisation gateway. * - * @param countryCode 2-letter ISO 3166 country code of the card acceptor location. > This parameter is required for the merchants who don't use Adyen as the payment authorisation gateway. + * @param countryCode 2-letter ISO 3166 country code of the card acceptor location. > This + * parameter is required for the merchants who don't use Adyen as the payment + * authorisation gateway. */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -81,7 +80,8 @@ public void setCountryCode(String countryCode) { /** * If true, indicates that the merchant is enrolled in 3D Secure for the card network. * - * @param enrolledIn3DSecure If true, indicates that the merchant is enrolled in 3D Secure for the card network. + * @param enrolledIn3DSecure If true, indicates that the merchant is enrolled in 3D Secure for the + * card network. * @return the current {@code MerchantDetails} instance, allowing for method chaining */ public MerchantDetails enrolledIn3DSecure(Boolean enrolledIn3DSecure) { @@ -91,7 +91,9 @@ public MerchantDetails enrolledIn3DSecure(Boolean enrolledIn3DSecure) { /** * If true, indicates that the merchant is enrolled in 3D Secure for the card network. - * @return enrolledIn3DSecure If true, indicates that the merchant is enrolled in 3D Secure for the card network. + * + * @return enrolledIn3DSecure If true, indicates that the merchant is enrolled in 3D Secure for + * the card network. */ @JsonProperty(JSON_PROPERTY_ENROLLED_IN3_D_SECURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,7 +104,8 @@ public Boolean getEnrolledIn3DSecure() { /** * If true, indicates that the merchant is enrolled in 3D Secure for the card network. * - * @param enrolledIn3DSecure If true, indicates that the merchant is enrolled in 3D Secure for the card network. + * @param enrolledIn3DSecure If true, indicates that the merchant is enrolled in 3D Secure for the + * card network. */ @JsonProperty(JSON_PROPERTY_ENROLLED_IN3_D_SECURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,9 +114,14 @@ public void setEnrolledIn3DSecure(Boolean enrolledIn3DSecure) { } /** - * The merchant category code (MCC) is a four-digit number which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. The list of MCCs can be found [here](https://en.wikipedia.org/wiki/Merchant_category_code). + * The merchant category code (MCC) is a four-digit number which relates to a particular market + * segment. This code reflects the predominant activity that is conducted by the merchant. The + * list of MCCs can be found [here](https://en.wikipedia.org/wiki/Merchant_category_code). * - * @param mcc The merchant category code (MCC) is a four-digit number which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. The list of MCCs can be found [here](https://en.wikipedia.org/wiki/Merchant_category_code). + * @param mcc The merchant category code (MCC) is a four-digit number which relates to a + * particular market segment. This code reflects the predominant activity that is conducted by + * the merchant. The list of MCCs can be found + * [here](https://en.wikipedia.org/wiki/Merchant_category_code). * @return the current {@code MerchantDetails} instance, allowing for method chaining */ public MerchantDetails mcc(String mcc) { @@ -122,8 +130,14 @@ public MerchantDetails mcc(String mcc) { } /** - * The merchant category code (MCC) is a four-digit number which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. The list of MCCs can be found [here](https://en.wikipedia.org/wiki/Merchant_category_code). - * @return mcc The merchant category code (MCC) is a four-digit number which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. The list of MCCs can be found [here](https://en.wikipedia.org/wiki/Merchant_category_code). + * The merchant category code (MCC) is a four-digit number which relates to a particular market + * segment. This code reflects the predominant activity that is conducted by the merchant. The + * list of MCCs can be found [here](https://en.wikipedia.org/wiki/Merchant_category_code). + * + * @return mcc The merchant category code (MCC) is a four-digit number which relates to a + * particular market segment. This code reflects the predominant activity that is conducted by + * the merchant. The list of MCCs can be found + * [here](https://en.wikipedia.org/wiki/Merchant_category_code). */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,9 +146,14 @@ public String getMcc() { } /** - * The merchant category code (MCC) is a four-digit number which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. The list of MCCs can be found [here](https://en.wikipedia.org/wiki/Merchant_category_code). + * The merchant category code (MCC) is a four-digit number which relates to a particular market + * segment. This code reflects the predominant activity that is conducted by the merchant. The + * list of MCCs can be found [here](https://en.wikipedia.org/wiki/Merchant_category_code). * - * @param mcc The merchant category code (MCC) is a four-digit number which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. The list of MCCs can be found [here](https://en.wikipedia.org/wiki/Merchant_category_code). + * @param mcc The merchant category code (MCC) is a four-digit number which relates to a + * particular market segment. This code reflects the predominant activity that is conducted by + * the merchant. The list of MCCs can be found + * [here](https://en.wikipedia.org/wiki/Merchant_category_code). */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +161,7 @@ public void setMcc(String mcc) { this.mcc = mcc; } - /** - * Return true if this MerchantDetails object is equal to o. - */ + /** Return true if this MerchantDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +171,9 @@ public boolean equals(Object o) { return false; } MerchantDetails merchantDetails = (MerchantDetails) o; - return Objects.equals(this.countryCode, merchantDetails.countryCode) && - Objects.equals(this.enrolledIn3DSecure, merchantDetails.enrolledIn3DSecure) && - Objects.equals(this.mcc, merchantDetails.mcc); + return Objects.equals(this.countryCode, merchantDetails.countryCode) + && Objects.equals(this.enrolledIn3DSecure, merchantDetails.enrolledIn3DSecure) + && Objects.equals(this.mcc, merchantDetails.mcc); } @Override @@ -176,8 +193,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +202,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of MerchantDetails given an JSON string * * @param jsonString JSON string @@ -196,11 +212,12 @@ private String toIndentedString(Object o) { public static MerchantDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MerchantDetails.class); } -/** - * Convert an instance of MerchantDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of MerchantDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/binlookup/Recurring.java b/src/main/java/com/adyen/model/binlookup/Recurring.java index 0a6a5f026..6e8b4f2c8 100644 --- a/src/main/java/com/adyen/model/binlookup/Recurring.java +++ b/src/main/java/com/adyen/model/binlookup/Recurring.java @@ -2,32 +2,27 @@ * Adyen BinLookup API * * The version of the OpenAPI document: 54 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.binlookup; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * Recurring - */ +/** Recurring */ @JsonPropertyOrder({ Recurring.JSON_PROPERTY_CONTRACT, Recurring.JSON_PROPERTY_RECURRING_DETAIL_NAME, @@ -35,13 +30,20 @@ Recurring.JSON_PROPERTY_RECURRING_FREQUENCY, Recurring.JSON_PROPERTY_TOKEN_SERVICE }) - public class Recurring { /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment + * details can be used to initiate a one-click payment, where the shopper enters the [card + * security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a + * payout](https://docs.adyen.com/online-payments/online-payouts). */ public enum ContractEnum { - ONECLICK(String.valueOf("ONECLICK")), RECURRING(String.valueOf("RECURRING")), @@ -53,7 +55,7 @@ public enum ContractEnum { private String value; ContractEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -74,7 +76,11 @@ public static ContractEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ContractEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ContractEnum.values())); + LOG.warning( + "ContractEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ContractEnum.values())); return null; } } @@ -91,11 +97,8 @@ public static ContractEnum fromValue(String value) { public static final String JSON_PROPERTY_RECURRING_FREQUENCY = "recurringFrequency"; private String recurringFrequency; - /** - * The name of the token service. - */ + /** The name of the token service. */ public enum TokenServiceEnum { - VISATOKENSERVICE(String.valueOf("VISATOKENSERVICE")), MCTOKENSERVICE(String.valueOf("MCTOKENSERVICE")), @@ -109,7 +112,7 @@ public enum TokenServiceEnum { private String value; TokenServiceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -130,7 +133,11 @@ public static TokenServiceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TokenServiceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TokenServiceEnum.values())); + LOG.warning( + "TokenServiceEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TokenServiceEnum.values())); return null; } } @@ -138,13 +145,30 @@ public static TokenServiceEnum fromValue(String value) { public static final String JSON_PROPERTY_TOKEN_SERVICE = "tokenService"; private TokenServiceEnum tokenService; - public Recurring() { - } + public Recurring() {} /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment + * details can be used to initiate a one-click payment, where the shopper enters the [card + * security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a + * payout](https://docs.adyen.com/online-payments/online-payouts). * - * @param contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * @param contract The type of recurring contract to be used. Possible values: * + * `ONECLICK` – Payment details can be used to initiate a one-click payment, where + * the shopper enters the [card security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make + * a payout](https://docs.adyen.com/online-payments/online-payouts). * @return the current {@code Recurring} instance, allowing for method chaining */ public Recurring contract(ContractEnum contract) { @@ -153,8 +177,27 @@ public Recurring contract(ContractEnum contract) { } /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). - * @return contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment + * details can be used to initiate a one-click payment, where the shopper enters the [card + * security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a + * payout](https://docs.adyen.com/online-payments/online-payouts). + * + * @return contract The type of recurring contract to be used. Possible values: * + * `ONECLICK` – Payment details can be used to initiate a one-click payment, where + * the shopper enters the [card security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make + * a payout](https://docs.adyen.com/online-payments/online-payouts). */ @JsonProperty(JSON_PROPERTY_CONTRACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,9 +206,27 @@ public ContractEnum getContract() { } /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment + * details can be used to initiate a one-click payment, where the shopper enters the [card + * security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a + * payout](https://docs.adyen.com/online-payments/online-payouts). * - * @param contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * @param contract The type of recurring contract to be used. Possible values: * + * `ONECLICK` – Payment details can be used to initiate a one-click payment, where + * the shopper enters the [card security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make + * a payout](https://docs.adyen.com/online-payments/online-payouts). */ @JsonProperty(JSON_PROPERTY_CONTRACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,6 +247,7 @@ public Recurring recurringDetailName(String recurringDetailName) { /** * A descriptive name for this detail. + * * @return recurringDetailName A descriptive name for this detail. */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_NAME) @@ -208,7 +270,8 @@ public void setRecurringDetailName(String recurringDetailName) { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. * - * @param recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. + * @param recurringExpiry Date after which no further authorisations shall be performed. Only for + * 3D Secure 2. * @return the current {@code Recurring} instance, allowing for method chaining */ public Recurring recurringExpiry(OffsetDateTime recurringExpiry) { @@ -218,7 +281,9 @@ public Recurring recurringExpiry(OffsetDateTime recurringExpiry) { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. - * @return recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. + * + * @return recurringExpiry Date after which no further authorisations shall be performed. Only for + * 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -229,7 +294,8 @@ public OffsetDateTime getRecurringExpiry() { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. * - * @param recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. + * @param recurringExpiry Date after which no further authorisations shall be performed. Only for + * 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,6 +316,7 @@ public Recurring recurringFrequency(String recurringFrequency) { /** * Minimum number of days between authorisations. Only for 3D Secure 2. + * * @return recurringFrequency Minimum number of days between authorisations. Only for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY) @@ -282,6 +349,7 @@ public Recurring tokenService(TokenServiceEnum tokenService) { /** * The name of the token service. + * * @return tokenService The name of the token service. */ @JsonProperty(JSON_PROPERTY_TOKEN_SERVICE) @@ -301,9 +369,7 @@ public void setTokenService(TokenServiceEnum tokenService) { this.tokenService = tokenService; } - /** - * Return true if this Recurring object is equal to o. - */ + /** Return true if this Recurring object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -313,16 +379,17 @@ public boolean equals(Object o) { return false; } Recurring recurring = (Recurring) o; - return Objects.equals(this.contract, recurring.contract) && - Objects.equals(this.recurringDetailName, recurring.recurringDetailName) && - Objects.equals(this.recurringExpiry, recurring.recurringExpiry) && - Objects.equals(this.recurringFrequency, recurring.recurringFrequency) && - Objects.equals(this.tokenService, recurring.tokenService); + return Objects.equals(this.contract, recurring.contract) + && Objects.equals(this.recurringDetailName, recurring.recurringDetailName) + && Objects.equals(this.recurringExpiry, recurring.recurringExpiry) + && Objects.equals(this.recurringFrequency, recurring.recurringFrequency) + && Objects.equals(this.tokenService, recurring.tokenService); } @Override public int hashCode() { - return Objects.hash(contract, recurringDetailName, recurringExpiry, recurringFrequency, tokenService); + return Objects.hash( + contract, recurringDetailName, recurringExpiry, recurringFrequency, tokenService); } @Override @@ -330,7 +397,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Recurring {\n"); sb.append(" contract: ").append(toIndentedString(contract)).append("\n"); - sb.append(" recurringDetailName: ").append(toIndentedString(recurringDetailName)).append("\n"); + sb.append(" recurringDetailName: ") + .append(toIndentedString(recurringDetailName)) + .append("\n"); sb.append(" recurringExpiry: ").append(toIndentedString(recurringExpiry)).append("\n"); sb.append(" recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n"); sb.append(" tokenService: ").append(toIndentedString(tokenService)).append("\n"); @@ -339,8 +408,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -349,7 +417,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Recurring given an JSON string * * @param jsonString JSON string @@ -359,11 +427,12 @@ private String toIndentedString(Object o) { public static Recurring fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Recurring.class); } -/** - * Convert an instance of Recurring to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Recurring to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/binlookup/ServiceError.java b/src/main/java/com/adyen/model/binlookup/ServiceError.java index e2364938b..287ed2970 100644 --- a/src/main/java/com/adyen/model/binlookup/ServiceError.java +++ b/src/main/java/com/adyen/model/binlookup/ServiceError.java @@ -2,33 +2,24 @@ * Adyen BinLookup API * * The version of the OpenAPI document: 54 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.binlookup; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.HashMap; +import java.util.Map; - -/** - * ServiceError - */ +/** ServiceError */ @JsonPropertyOrder({ ServiceError.JSON_PROPERTY_ADDITIONAL_DATA, ServiceError.JSON_PROPERTY_ERROR_CODE, @@ -37,7 +28,6 @@ ServiceError.JSON_PROPERTY_PSP_REFERENCE, ServiceError.JSON_PROPERTY_STATUS }) - public class ServiceError { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -57,13 +47,15 @@ public class ServiceError { public static final String JSON_PROPERTY_STATUS = "status"; private Integer status; - public ServiceError() { - } + public ServiceError() {} /** - * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first. Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first. Go to **Customer Area** > **Developers** > + * **Additional data**. * @return the current {@code ServiceError} instance, allowing for method chaining */ public ServiceError additionalData(Map additionalData) { @@ -80,8 +72,12 @@ public ServiceError putAdditionalDataItem(String key, String additionalDataItem) } /** - * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. - * @return additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * + * @return additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first. Go to **Customer Area** > **Developers** > + * **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -90,9 +86,12 @@ public Map getAdditionalData() { } /** - * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first. Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first. Go to **Customer Area** > **Developers** > + * **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,6 +112,7 @@ public ServiceError errorCode(String errorCode) { /** * The error code mapped to the error message. + * * @return errorCode The error code mapped to the error message. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -145,6 +145,7 @@ public ServiceError errorType(String errorType) { /** * The category of the error. + * * @return errorType The category of the error. */ @JsonProperty(JSON_PROPERTY_ERROR_TYPE) @@ -177,6 +178,7 @@ public ServiceError message(String message) { /** * A short explanation of the issue. + * * @return message A short explanation of the issue. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -209,6 +211,7 @@ public ServiceError pspReference(String pspReference) { /** * The PSP reference of the payment. + * * @return pspReference The PSP reference of the payment. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -241,6 +244,7 @@ public ServiceError status(Integer status) { /** * The HTTP response status. + * * @return status The HTTP response status. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -260,9 +264,7 @@ public void setStatus(Integer status) { this.status = status; } - /** - * Return true if this ServiceError object is equal to o. - */ + /** Return true if this ServiceError object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -272,12 +274,12 @@ public boolean equals(Object o) { return false; } ServiceError serviceError = (ServiceError) o; - return Objects.equals(this.additionalData, serviceError.additionalData) && - Objects.equals(this.errorCode, serviceError.errorCode) && - Objects.equals(this.errorType, serviceError.errorType) && - Objects.equals(this.message, serviceError.message) && - Objects.equals(this.pspReference, serviceError.pspReference) && - Objects.equals(this.status, serviceError.status); + return Objects.equals(this.additionalData, serviceError.additionalData) + && Objects.equals(this.errorCode, serviceError.errorCode) + && Objects.equals(this.errorType, serviceError.errorType) + && Objects.equals(this.message, serviceError.message) + && Objects.equals(this.pspReference, serviceError.pspReference) + && Objects.equals(this.status, serviceError.status); } @Override @@ -300,8 +302,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -310,7 +311,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ServiceError given an JSON string * * @param jsonString JSON string @@ -320,11 +321,12 @@ private String toIndentedString(Object o) { public static ServiceError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } -/** - * Convert an instance of ServiceError to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ServiceError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/binlookup/ThreeDS2CardRangeDetail.java b/src/main/java/com/adyen/model/binlookup/ThreeDS2CardRangeDetail.java index eed1a2072..4da57d9ad 100644 --- a/src/main/java/com/adyen/model/binlookup/ThreeDS2CardRangeDetail.java +++ b/src/main/java/com/adyen/model/binlookup/ThreeDS2CardRangeDetail.java @@ -2,33 +2,24 @@ * Adyen BinLookup API * * The version of the OpenAPI document: 54 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.binlookup; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * ThreeDS2CardRangeDetail - */ +/** ThreeDS2CardRangeDetail */ @JsonPropertyOrder({ ThreeDS2CardRangeDetail.JSON_PROPERTY_ACS_INFO_IND, ThreeDS2CardRangeDetail.JSON_PROPERTY_BRAND_CODE, @@ -37,7 +28,6 @@ ThreeDS2CardRangeDetail.JSON_PROPERTY_THREE_D_S2_VERSIONS, ThreeDS2CardRangeDetail.JSON_PROPERTY_THREE_D_S_METHOD_U_R_L }) - public class ThreeDS2CardRangeDetail { public static final String JSON_PROPERTY_ACS_INFO_IND = "acsInfoInd"; private List acsInfoInd; @@ -57,13 +47,16 @@ public class ThreeDS2CardRangeDetail { public static final String JSON_PROPERTY_THREE_D_S_METHOD_U_R_L = "threeDSMethodURL"; private String threeDSMethodURL; - public ThreeDS2CardRangeDetail() { - } + public ThreeDS2CardRangeDetail() {} /** - * Provides additional information to the 3DS Server. Possible values: - 01 (Authentication is available at ACS) - 02 (Attempts supported by ACS or DS) - 03 (Decoupled authentication supported) - 04 (Whitelisting supported) + * Provides additional information to the 3DS Server. Possible values: - 01 (Authentication is + * available at ACS) - 02 (Attempts supported by ACS or DS) - 03 (Decoupled authentication + * supported) - 04 (Whitelisting supported) * - * @param acsInfoInd Provides additional information to the 3DS Server. Possible values: - 01 (Authentication is available at ACS) - 02 (Attempts supported by ACS or DS) - 03 (Decoupled authentication supported) - 04 (Whitelisting supported) + * @param acsInfoInd Provides additional information to the 3DS Server. Possible values: - 01 + * (Authentication is available at ACS) - 02 (Attempts supported by ACS or DS) - 03 (Decoupled + * authentication supported) - 04 (Whitelisting supported) * @return the current {@code ThreeDS2CardRangeDetail} instance, allowing for method chaining */ public ThreeDS2CardRangeDetail acsInfoInd(List acsInfoInd) { @@ -80,8 +73,13 @@ public ThreeDS2CardRangeDetail addAcsInfoIndItem(String acsInfoIndItem) { } /** - * Provides additional information to the 3DS Server. Possible values: - 01 (Authentication is available at ACS) - 02 (Attempts supported by ACS or DS) - 03 (Decoupled authentication supported) - 04 (Whitelisting supported) - * @return acsInfoInd Provides additional information to the 3DS Server. Possible values: - 01 (Authentication is available at ACS) - 02 (Attempts supported by ACS or DS) - 03 (Decoupled authentication supported) - 04 (Whitelisting supported) + * Provides additional information to the 3DS Server. Possible values: - 01 (Authentication is + * available at ACS) - 02 (Attempts supported by ACS or DS) - 03 (Decoupled authentication + * supported) - 04 (Whitelisting supported) + * + * @return acsInfoInd Provides additional information to the 3DS Server. Possible values: - 01 + * (Authentication is available at ACS) - 02 (Attempts supported by ACS or DS) - 03 (Decoupled + * authentication supported) - 04 (Whitelisting supported) */ @JsonProperty(JSON_PROPERTY_ACS_INFO_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -90,9 +88,13 @@ public List getAcsInfoInd() { } /** - * Provides additional information to the 3DS Server. Possible values: - 01 (Authentication is available at ACS) - 02 (Attempts supported by ACS or DS) - 03 (Decoupled authentication supported) - 04 (Whitelisting supported) + * Provides additional information to the 3DS Server. Possible values: - 01 (Authentication is + * available at ACS) - 02 (Attempts supported by ACS or DS) - 03 (Decoupled authentication + * supported) - 04 (Whitelisting supported) * - * @param acsInfoInd Provides additional information to the 3DS Server. Possible values: - 01 (Authentication is available at ACS) - 02 (Attempts supported by ACS or DS) - 03 (Decoupled authentication supported) - 04 (Whitelisting supported) + * @param acsInfoInd Provides additional information to the 3DS Server. Possible values: - 01 + * (Authentication is available at ACS) - 02 (Attempts supported by ACS or DS) - 03 (Decoupled + * authentication supported) - 04 (Whitelisting supported) */ @JsonProperty(JSON_PROPERTY_ACS_INFO_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,6 +115,7 @@ public ThreeDS2CardRangeDetail brandCode(String brandCode) { /** * Card brand. + * * @return brandCode Card brand. */ @JsonProperty(JSON_PROPERTY_BRAND_CODE) @@ -145,6 +148,7 @@ public ThreeDS2CardRangeDetail endRange(String endRange) { /** * BIN end range. + * * @return endRange BIN end range. */ @JsonProperty(JSON_PROPERTY_END_RANGE) @@ -177,6 +181,7 @@ public ThreeDS2CardRangeDetail startRange(String startRange) { /** * BIN start range. + * * @return startRange BIN start range. */ @JsonProperty(JSON_PROPERTY_START_RANGE) @@ -217,6 +222,7 @@ public ThreeDS2CardRangeDetail addThreeDS2VersionsItem(String threeDS2VersionsIt /** * Supported 3D Secure protocol versions + * * @return threeDS2Versions Supported 3D Secure protocol versions */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_VERSIONS) @@ -237,9 +243,11 @@ public void setThreeDS2Versions(List threeDS2Versions) { } /** - * In a 3D Secure 2 browser-based flow, this is the URL where you should send the device fingerprint to. + * In a 3D Secure 2 browser-based flow, this is the URL where you should send the device + * fingerprint to. * - * @param threeDSMethodURL In a 3D Secure 2 browser-based flow, this is the URL where you should send the device fingerprint to. + * @param threeDSMethodURL In a 3D Secure 2 browser-based flow, this is the URL where you should + * send the device fingerprint to. * @return the current {@code ThreeDS2CardRangeDetail} instance, allowing for method chaining */ public ThreeDS2CardRangeDetail threeDSMethodURL(String threeDSMethodURL) { @@ -248,8 +256,11 @@ public ThreeDS2CardRangeDetail threeDSMethodURL(String threeDSMethodURL) { } /** - * In a 3D Secure 2 browser-based flow, this is the URL where you should send the device fingerprint to. - * @return threeDSMethodURL In a 3D Secure 2 browser-based flow, this is the URL where you should send the device fingerprint to. + * In a 3D Secure 2 browser-based flow, this is the URL where you should send the device + * fingerprint to. + * + * @return threeDSMethodURL In a 3D Secure 2 browser-based flow, this is the URL where you should + * send the device fingerprint to. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_METHOD_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -258,9 +269,11 @@ public String getThreeDSMethodURL() { } /** - * In a 3D Secure 2 browser-based flow, this is the URL where you should send the device fingerprint to. + * In a 3D Secure 2 browser-based flow, this is the URL where you should send the device + * fingerprint to. * - * @param threeDSMethodURL In a 3D Secure 2 browser-based flow, this is the URL where you should send the device fingerprint to. + * @param threeDSMethodURL In a 3D Secure 2 browser-based flow, this is the URL where you should + * send the device fingerprint to. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_METHOD_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -268,9 +281,7 @@ public void setThreeDSMethodURL(String threeDSMethodURL) { this.threeDSMethodURL = threeDSMethodURL; } - /** - * Return true if this ThreeDS2CardRangeDetail object is equal to o. - */ + /** Return true if this ThreeDS2CardRangeDetail object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -280,17 +291,18 @@ public boolean equals(Object o) { return false; } ThreeDS2CardRangeDetail threeDS2CardRangeDetail = (ThreeDS2CardRangeDetail) o; - return Objects.equals(this.acsInfoInd, threeDS2CardRangeDetail.acsInfoInd) && - Objects.equals(this.brandCode, threeDS2CardRangeDetail.brandCode) && - Objects.equals(this.endRange, threeDS2CardRangeDetail.endRange) && - Objects.equals(this.startRange, threeDS2CardRangeDetail.startRange) && - Objects.equals(this.threeDS2Versions, threeDS2CardRangeDetail.threeDS2Versions) && - Objects.equals(this.threeDSMethodURL, threeDS2CardRangeDetail.threeDSMethodURL); + return Objects.equals(this.acsInfoInd, threeDS2CardRangeDetail.acsInfoInd) + && Objects.equals(this.brandCode, threeDS2CardRangeDetail.brandCode) + && Objects.equals(this.endRange, threeDS2CardRangeDetail.endRange) + && Objects.equals(this.startRange, threeDS2CardRangeDetail.startRange) + && Objects.equals(this.threeDS2Versions, threeDS2CardRangeDetail.threeDS2Versions) + && Objects.equals(this.threeDSMethodURL, threeDS2CardRangeDetail.threeDSMethodURL); } @Override public int hashCode() { - return Objects.hash(acsInfoInd, brandCode, endRange, startRange, threeDS2Versions, threeDSMethodURL); + return Objects.hash( + acsInfoInd, brandCode, endRange, startRange, threeDS2Versions, threeDSMethodURL); } @Override @@ -308,8 +320,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -318,21 +329,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ThreeDS2CardRangeDetail given an JSON string * * @param jsonString JSON string * @return An instance of ThreeDS2CardRangeDetail - * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDS2CardRangeDetail + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ThreeDS2CardRangeDetail */ public static ThreeDS2CardRangeDetail fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDS2CardRangeDetail.class); } -/** - * Convert an instance of ThreeDS2CardRangeDetail to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ThreeDS2CardRangeDetail to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/binlookup/ThreeDSAvailabilityRequest.java b/src/main/java/com/adyen/model/binlookup/ThreeDSAvailabilityRequest.java index 8e2f16180..5f9adbbf1 100644 --- a/src/main/java/com/adyen/model/binlookup/ThreeDSAvailabilityRequest.java +++ b/src/main/java/com/adyen/model/binlookup/ThreeDSAvailabilityRequest.java @@ -2,35 +2,26 @@ * Adyen BinLookup API * * The version of the OpenAPI document: 54 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.binlookup; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; -import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -/** - * ThreeDSAvailabilityRequest - */ +/** ThreeDSAvailabilityRequest */ @JsonPropertyOrder({ ThreeDSAvailabilityRequest.JSON_PROPERTY_ADDITIONAL_DATA, ThreeDSAvailabilityRequest.JSON_PROPERTY_BRANDS, @@ -39,7 +30,6 @@ ThreeDSAvailabilityRequest.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, ThreeDSAvailabilityRequest.JSON_PROPERTY_SHOPPER_REFERENCE }) - public class ThreeDSAvailabilityRequest { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -59,13 +49,16 @@ public class ThreeDSAvailabilityRequest { public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference"; private String shopperReference; - public ThreeDSAvailabilityRequest() { - } + public ThreeDSAvailabilityRequest() {} /** - * This field contains additional data, which may be required for a particular request. The `additionalData` object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular request. The + * `additionalData` object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular request. The `additionalData` object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a + * particular request. The `additionalData` object consists of entries, each of + * which includes the key and value. * @return the current {@code ThreeDSAvailabilityRequest} instance, allowing for method chaining */ public ThreeDSAvailabilityRequest additionalData(Map additionalData) { @@ -82,8 +75,13 @@ public ThreeDSAvailabilityRequest putAdditionalDataItem(String key, String addit } /** - * This field contains additional data, which may be required for a particular request. The `additionalData` object consists of entries, each of which includes the key and value. - * @return additionalData This field contains additional data, which may be required for a particular request. The `additionalData` object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular request. The + * `additionalData` object consists of entries, each of which includes the key and + * value. + * + * @return additionalData This field contains additional data, which may be required for a + * particular request. The `additionalData` object consists of entries, each of + * which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -92,9 +90,13 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular request. The `additionalData` object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular request. The + * `additionalData` object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular request. The `additionalData` object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a + * particular request. The `additionalData` object consists of entries, each of + * which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,6 +125,7 @@ public ThreeDSAvailabilityRequest addBrandsItem(String brandsItem) { /** * List of brands. + * * @return brands List of brands. */ @JsonProperty(JSON_PROPERTY_BRANDS) @@ -155,6 +158,7 @@ public ThreeDSAvailabilityRequest cardNumber(String cardNumber) { /** * Card number or BIN. + * * @return cardNumber Card number or BIN. */ @JsonProperty(JSON_PROPERTY_CARD_NUMBER) @@ -187,6 +191,7 @@ public ThreeDSAvailabilityRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier. + * * @return merchantAccount The merchant account identifier. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -219,6 +224,7 @@ public ThreeDSAvailabilityRequest recurringDetailReference(String recurringDetai /** * A recurring detail reference corresponding to a card. + * * @return recurringDetailReference A recurring detail reference corresponding to a card. */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -241,7 +247,8 @@ public void setRecurringDetailReference(String recurringDetailReference) { /** * The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). * - * @param shopperReference The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). + * @param shopperReference The shopper's reference to uniquely identify this shopper (e.g. + * user ID or account ID). * @return the current {@code ThreeDSAvailabilityRequest} instance, allowing for method chaining */ public ThreeDSAvailabilityRequest shopperReference(String shopperReference) { @@ -251,7 +258,9 @@ public ThreeDSAvailabilityRequest shopperReference(String shopperReference) { /** * The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). - * @return shopperReference The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). + * + * @return shopperReference The shopper's reference to uniquely identify this shopper (e.g. + * user ID or account ID). */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -262,7 +271,8 @@ public String getShopperReference() { /** * The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). * - * @param shopperReference The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). + * @param shopperReference The shopper's reference to uniquely identify this shopper (e.g. + * user ID or account ID). */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -270,9 +280,7 @@ public void setShopperReference(String shopperReference) { this.shopperReference = shopperReference; } - /** - * Return true if this ThreeDSAvailabilityRequest object is equal to o. - */ + /** Return true if this ThreeDSAvailabilityRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -282,17 +290,24 @@ public boolean equals(Object o) { return false; } ThreeDSAvailabilityRequest threeDSAvailabilityRequest = (ThreeDSAvailabilityRequest) o; - return Objects.equals(this.additionalData, threeDSAvailabilityRequest.additionalData) && - Objects.equals(this.brands, threeDSAvailabilityRequest.brands) && - Objects.equals(this.cardNumber, threeDSAvailabilityRequest.cardNumber) && - Objects.equals(this.merchantAccount, threeDSAvailabilityRequest.merchantAccount) && - Objects.equals(this.recurringDetailReference, threeDSAvailabilityRequest.recurringDetailReference) && - Objects.equals(this.shopperReference, threeDSAvailabilityRequest.shopperReference); + return Objects.equals(this.additionalData, threeDSAvailabilityRequest.additionalData) + && Objects.equals(this.brands, threeDSAvailabilityRequest.brands) + && Objects.equals(this.cardNumber, threeDSAvailabilityRequest.cardNumber) + && Objects.equals(this.merchantAccount, threeDSAvailabilityRequest.merchantAccount) + && Objects.equals( + this.recurringDetailReference, threeDSAvailabilityRequest.recurringDetailReference) + && Objects.equals(this.shopperReference, threeDSAvailabilityRequest.shopperReference); } @Override public int hashCode() { - return Objects.hash(additionalData, brands, cardNumber, merchantAccount, recurringDetailReference, shopperReference); + return Objects.hash( + additionalData, + brands, + cardNumber, + merchantAccount, + recurringDetailReference, + shopperReference); } @Override @@ -303,15 +318,16 @@ public String toString() { sb.append(" brands: ").append(toIndentedString(brands)).append("\n"); sb.append(" cardNumber: ").append(toIndentedString(cardNumber)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -320,21 +336,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ThreeDSAvailabilityRequest given an JSON string * * @param jsonString JSON string * @return An instance of ThreeDSAvailabilityRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDSAvailabilityRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ThreeDSAvailabilityRequest */ - public static ThreeDSAvailabilityRequest fromJson(String jsonString) throws JsonProcessingException { + public static ThreeDSAvailabilityRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDSAvailabilityRequest.class); } -/** - * Convert an instance of ThreeDSAvailabilityRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ThreeDSAvailabilityRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/binlookup/ThreeDSAvailabilityResponse.java b/src/main/java/com/adyen/model/binlookup/ThreeDSAvailabilityResponse.java index 1662731a6..0192d75a3 100644 --- a/src/main/java/com/adyen/model/binlookup/ThreeDSAvailabilityResponse.java +++ b/src/main/java/com/adyen/model/binlookup/ThreeDSAvailabilityResponse.java @@ -2,36 +2,24 @@ * Adyen BinLookup API * * The version of the OpenAPI document: 54 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.binlookup; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.binlookup.BinDetail; -import com.adyen.model.binlookup.DSPublicKeyDetail; -import com.adyen.model.binlookup.ThreeDS2CardRangeDetail; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * ThreeDSAvailabilityResponse - */ +/** ThreeDSAvailabilityResponse */ @JsonPropertyOrder({ ThreeDSAvailabilityResponse.JSON_PROPERTY_BIN_DETAILS, ThreeDSAvailabilityResponse.JSON_PROPERTY_DS_PUBLIC_KEYS, @@ -39,7 +27,6 @@ ThreeDSAvailabilityResponse.JSON_PROPERTY_THREE_D_S2_CARD_RANGE_DETAILS, ThreeDSAvailabilityResponse.JSON_PROPERTY_THREE_D_S2SUPPORTED }) - public class ThreeDSAvailabilityResponse { public static final String JSON_PROPERTY_BIN_DETAILS = "binDetails"; private BinDetail binDetails; @@ -50,19 +37,19 @@ public class ThreeDSAvailabilityResponse { public static final String JSON_PROPERTY_THREE_D_S1_SUPPORTED = "threeDS1Supported"; private Boolean threeDS1Supported; - public static final String JSON_PROPERTY_THREE_D_S2_CARD_RANGE_DETAILS = "threeDS2CardRangeDetails"; + public static final String JSON_PROPERTY_THREE_D_S2_CARD_RANGE_DETAILS = + "threeDS2CardRangeDetails"; private List threeDS2CardRangeDetails; public static final String JSON_PROPERTY_THREE_D_S2SUPPORTED = "threeDS2supported"; private Boolean threeDS2supported; - public ThreeDSAvailabilityResponse() { - } + public ThreeDSAvailabilityResponse() {} /** * binDetails * - * @param binDetails + * @param binDetails * @return the current {@code ThreeDSAvailabilityResponse} instance, allowing for method chaining */ public ThreeDSAvailabilityResponse binDetails(BinDetail binDetails) { @@ -72,7 +59,8 @@ public ThreeDSAvailabilityResponse binDetails(BinDetail binDetails) { /** * Get binDetails - * @return binDetails + * + * @return binDetails */ @JsonProperty(JSON_PROPERTY_BIN_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,7 +71,7 @@ public BinDetail getBinDetails() { /** * binDetails * - * @param binDetails + * @param binDetails */ @JsonProperty(JSON_PROPERTY_BIN_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,6 +100,7 @@ public ThreeDSAvailabilityResponse addDsPublicKeysItem(DSPublicKeyDetail dsPubli /** * List of Directory Server (DS) public keys. + * * @return dsPublicKeys List of Directory Server (DS) public keys. */ @JsonProperty(JSON_PROPERTY_DS_PUBLIC_KEYS) @@ -144,6 +133,7 @@ public ThreeDSAvailabilityResponse threeDS1Supported(Boolean threeDS1Supported) /** * Indicator if 3D Secure 1 is supported. + * * @return threeDS1Supported Indicator if 3D Secure 1 is supported. */ @JsonProperty(JSON_PROPERTY_THREE_D_S1_SUPPORTED) @@ -169,12 +159,14 @@ public void setThreeDS1Supported(Boolean threeDS1Supported) { * @param threeDS2CardRangeDetails List of brand and card range pairs. * @return the current {@code ThreeDSAvailabilityResponse} instance, allowing for method chaining */ - public ThreeDSAvailabilityResponse threeDS2CardRangeDetails(List threeDS2CardRangeDetails) { + public ThreeDSAvailabilityResponse threeDS2CardRangeDetails( + List threeDS2CardRangeDetails) { this.threeDS2CardRangeDetails = threeDS2CardRangeDetails; return this; } - public ThreeDSAvailabilityResponse addThreeDS2CardRangeDetailsItem(ThreeDS2CardRangeDetail threeDS2CardRangeDetailsItem) { + public ThreeDSAvailabilityResponse addThreeDS2CardRangeDetailsItem( + ThreeDS2CardRangeDetail threeDS2CardRangeDetailsItem) { if (this.threeDS2CardRangeDetails == null) { this.threeDS2CardRangeDetails = new ArrayList<>(); } @@ -184,6 +176,7 @@ public ThreeDSAvailabilityResponse addThreeDS2CardRangeDetailsItem(ThreeDS2CardR /** * List of brand and card range pairs. + * * @return threeDS2CardRangeDetails List of brand and card range pairs. */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_CARD_RANGE_DETAILS) @@ -216,6 +209,7 @@ public ThreeDSAvailabilityResponse threeDS2supported(Boolean threeDS2supported) /** * Indicator if 3D Secure 2 is supported. + * * @return threeDS2supported Indicator if 3D Secure 2 is supported. */ @JsonProperty(JSON_PROPERTY_THREE_D_S2SUPPORTED) @@ -235,9 +229,7 @@ public void setThreeDS2supported(Boolean threeDS2supported) { this.threeDS2supported = threeDS2supported; } - /** - * Return true if this ThreeDSAvailabilityResponse object is equal to o. - */ + /** Return true if this ThreeDSAvailabilityResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -247,16 +239,18 @@ public boolean equals(Object o) { return false; } ThreeDSAvailabilityResponse threeDSAvailabilityResponse = (ThreeDSAvailabilityResponse) o; - return Objects.equals(this.binDetails, threeDSAvailabilityResponse.binDetails) && - Objects.equals(this.dsPublicKeys, threeDSAvailabilityResponse.dsPublicKeys) && - Objects.equals(this.threeDS1Supported, threeDSAvailabilityResponse.threeDS1Supported) && - Objects.equals(this.threeDS2CardRangeDetails, threeDSAvailabilityResponse.threeDS2CardRangeDetails) && - Objects.equals(this.threeDS2supported, threeDSAvailabilityResponse.threeDS2supported); + return Objects.equals(this.binDetails, threeDSAvailabilityResponse.binDetails) + && Objects.equals(this.dsPublicKeys, threeDSAvailabilityResponse.dsPublicKeys) + && Objects.equals(this.threeDS1Supported, threeDSAvailabilityResponse.threeDS1Supported) + && Objects.equals( + this.threeDS2CardRangeDetails, threeDSAvailabilityResponse.threeDS2CardRangeDetails) + && Objects.equals(this.threeDS2supported, threeDSAvailabilityResponse.threeDS2supported); } @Override public int hashCode() { - return Objects.hash(binDetails, dsPublicKeys, threeDS1Supported, threeDS2CardRangeDetails, threeDS2supported); + return Objects.hash( + binDetails, dsPublicKeys, threeDS1Supported, threeDS2CardRangeDetails, threeDS2supported); } @Override @@ -266,15 +260,16 @@ public String toString() { sb.append(" binDetails: ").append(toIndentedString(binDetails)).append("\n"); sb.append(" dsPublicKeys: ").append(toIndentedString(dsPublicKeys)).append("\n"); sb.append(" threeDS1Supported: ").append(toIndentedString(threeDS1Supported)).append("\n"); - sb.append(" threeDS2CardRangeDetails: ").append(toIndentedString(threeDS2CardRangeDetails)).append("\n"); + sb.append(" threeDS2CardRangeDetails: ") + .append(toIndentedString(threeDS2CardRangeDetails)) + .append("\n"); sb.append(" threeDS2supported: ").append(toIndentedString(threeDS2supported)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -283,21 +278,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ThreeDSAvailabilityResponse given an JSON string * * @param jsonString JSON string * @return An instance of ThreeDSAvailabilityResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDSAvailabilityResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ThreeDSAvailabilityResponse */ - public static ThreeDSAvailabilityResponse fromJson(String jsonString) throws JsonProcessingException { + public static ThreeDSAvailabilityResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDSAvailabilityResponse.class); } -/** - * Convert an instance of ThreeDSAvailabilityResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ThreeDSAvailabilityResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/checkout/AbstractOpenApiSchema.java index f0d11c375..0c1cc93b3 100644 --- a/src/main/java/com/adyen/model/checkout/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/checkout/AbstractOpenApiSchema.java @@ -2,145 +2,141 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.Objects; -import java.util.Map; -import jakarta.ws.rs.core.GenericType; - import com.fasterxml.jackson.annotation.JsonValue; +import jakarta.ws.rs.core.GenericType; +import java.util.Map; +import java.util.Objects; -/** - * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec - */ +/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() {return instance;} - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) {this.instance = instance;} - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); - } else { - return object.getActualInstance(); - } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() { + return instance; + } + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) { + this.instance = instance; + } + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf + * schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); + } else { + return object.getActualInstance(); } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) && - Objects.equals(this.isNullable, a.isNullable) && - Objects.equals(this.schemaType, a.schemaType); + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; } + return o.toString().replace("\n", "\n "); + } - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); + public boolean equals(Object o) { + if (this == o) { + return true; } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); + if (o == null || getClass() != o.getClass()) { + return false; } - - - -} \ No newline at end of file + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) + && Objects.equals(this.isNullable, a.isNullable) + && Objects.equals(this.schemaType, a.schemaType); + } + + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); + } + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); + } +} diff --git a/src/main/java/com/adyen/model/checkout/AccountInfo.java b/src/main/java/com/adyen/model/checkout/AccountInfo.java index d2a8a6d4d..248c546f8 100644 --- a/src/main/java/com/adyen/model/checkout/AccountInfo.java +++ b/src/main/java/com/adyen/model/checkout/AccountInfo.java @@ -2,32 +2,27 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * AccountInfo - */ +/** AccountInfo */ @JsonPropertyOrder({ AccountInfo.JSON_PROPERTY_ACCOUNT_AGE_INDICATOR, AccountInfo.JSON_PROPERTY_ACCOUNT_CHANGE_DATE, @@ -49,13 +44,13 @@ AccountInfo.JSON_PROPERTY_SUSPICIOUS_ACTIVITY, AccountInfo.JSON_PROPERTY_WORK_PHONE }) - public class AccountInfo { /** - * Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this shopper account was created in the merchant's + * environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * + * from30To60Days * moreThan60Days */ public enum AccountAgeIndicatorEnum { - NOTAPPLICABLE(String.valueOf("notApplicable")), THISTRANSACTION(String.valueOf("thisTransaction")), @@ -71,7 +66,7 @@ public enum AccountAgeIndicatorEnum { private String value; AccountAgeIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -92,7 +87,11 @@ public static AccountAgeIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AccountAgeIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AccountAgeIndicatorEnum.values())); + LOG.warning( + "AccountAgeIndicatorEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AccountAgeIndicatorEnum.values())); return null; } } @@ -104,10 +103,10 @@ public static AccountAgeIndicatorEnum fromValue(String value) { private OffsetDateTime accountChangeDate; /** - * Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since the shopper's account was last updated. Allowed + * values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ public enum AccountChangeIndicatorEnum { - THISTRANSACTION(String.valueOf("thisTransaction")), LESSTHAN30DAYS(String.valueOf("lessThan30Days")), @@ -121,7 +120,7 @@ public enum AccountChangeIndicatorEnum { private String value; AccountChangeIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -142,7 +141,11 @@ public static AccountChangeIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AccountChangeIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AccountChangeIndicatorEnum.values())); + LOG.warning( + "AccountChangeIndicatorEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AccountChangeIndicatorEnum.values())); return null; } } @@ -154,10 +157,10 @@ public static AccountChangeIndicatorEnum fromValue(String value) { private OffsetDateTime accountCreationDate; /** - * Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit + * Indicates the type of account. For example, for a multi-account card product. Allowed values: * + * notApplicable * credit * debit */ public enum AccountTypeEnum { - NOTAPPLICABLE(String.valueOf("notApplicable")), CREDIT(String.valueOf("credit")), @@ -169,7 +172,7 @@ public enum AccountTypeEnum { private String value; AccountTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -190,7 +193,11 @@ public static AccountTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AccountTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AccountTypeEnum.values())); + LOG.warning( + "AccountTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AccountTypeEnum.values())); return null; } } @@ -205,10 +212,10 @@ public static AccountTypeEnum fromValue(String value) { private OffsetDateTime deliveryAddressUsageDate; /** - * Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this delivery address was first used. Allowed values: * + * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ public enum DeliveryAddressUsageIndicatorEnum { - THISTRANSACTION(String.valueOf("thisTransaction")), LESSTHAN30DAYS(String.valueOf("lessThan30Days")), @@ -217,12 +224,13 @@ public enum DeliveryAddressUsageIndicatorEnum { MORETHAN60DAYS(String.valueOf("moreThan60Days")); - private static final Logger LOG = Logger.getLogger(DeliveryAddressUsageIndicatorEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(DeliveryAddressUsageIndicatorEnum.class.getName()); private String value; DeliveryAddressUsageIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -243,30 +251,37 @@ public static DeliveryAddressUsageIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("DeliveryAddressUsageIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(DeliveryAddressUsageIndicatorEnum.values())); + LOG.warning( + "DeliveryAddressUsageIndicatorEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(DeliveryAddressUsageIndicatorEnum.values())); return null; } } - public static final String JSON_PROPERTY_DELIVERY_ADDRESS_USAGE_INDICATOR = "deliveryAddressUsageIndicator"; + public static final String JSON_PROPERTY_DELIVERY_ADDRESS_USAGE_INDICATOR = + "deliveryAddressUsageIndicator"; private DeliveryAddressUsageIndicatorEnum deliveryAddressUsageIndicator; public static final String JSON_PROPERTY_HOME_PHONE = "homePhone"; - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.homePhone` instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.homePhone` + // instead. private String homePhone; public static final String JSON_PROPERTY_MOBILE_PHONE = "mobilePhone"; - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.mobilePhone` instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.mobilePhone` + // instead. private String mobilePhone; public static final String JSON_PROPERTY_PASSWORD_CHANGE_DATE = "passwordChangeDate"; private OffsetDateTime passwordChangeDate; /** - * Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator when the shopper has changed their password. Allowed values: * notApplicable * + * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ public enum PasswordChangeIndicatorEnum { - NOTAPPLICABLE(String.valueOf("notApplicable")), THISTRANSACTION(String.valueOf("thisTransaction")), @@ -282,7 +297,7 @@ public enum PasswordChangeIndicatorEnum { private String value; PasswordChangeIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -303,7 +318,11 @@ public static PasswordChangeIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PasswordChangeIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PasswordChangeIndicatorEnum.values())); + LOG.warning( + "PasswordChangeIndicatorEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PasswordChangeIndicatorEnum.values())); return null; } } @@ -321,10 +340,11 @@ public static PasswordChangeIndicatorEnum fromValue(String value) { private OffsetDateTime paymentAccountAge; /** - * Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this payment method was added to this shopper's + * account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * + * moreThan60Days */ public enum PaymentAccountIndicatorEnum { - NOTAPPLICABLE(String.valueOf("notApplicable")), THISTRANSACTION(String.valueOf("thisTransaction")), @@ -340,7 +360,7 @@ public enum PaymentAccountIndicatorEnum { private String value; PaymentAccountIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -361,7 +381,11 @@ public static PaymentAccountIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PaymentAccountIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PaymentAccountIndicatorEnum.values())); + LOG.warning( + "PaymentAccountIndicatorEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PaymentAccountIndicatorEnum.values())); return null; } } @@ -376,16 +400,20 @@ public static PaymentAccountIndicatorEnum fromValue(String value) { private Boolean suspiciousActivity; public static final String JSON_PROPERTY_WORK_PHONE = "workPhone"; - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.workPhone` instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.workPhone` + // instead. private String workPhone; - public AccountInfo() { - } + public AccountInfo() {} /** - * Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this shopper account was created in the merchant's + * environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * + * from30To60Days * moreThan60Days * - * @param accountAgeIndicator Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @param accountAgeIndicator Indicator for the length of time since this shopper account was + * created in the merchant's environment. Allowed values: * notApplicable * + * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * @return the current {@code AccountInfo} instance, allowing for method chaining */ public AccountInfo accountAgeIndicator(AccountAgeIndicatorEnum accountAgeIndicator) { @@ -394,8 +422,13 @@ public AccountInfo accountAgeIndicator(AccountAgeIndicatorEnum accountAgeIndicat } /** - * Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days - * @return accountAgeIndicator Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this shopper account was created in the merchant's + * environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * + * from30To60Days * moreThan60Days + * + * @return accountAgeIndicator Indicator for the length of time since this shopper account was + * created in the merchant's environment. Allowed values: * notApplicable * + * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ @JsonProperty(JSON_PROPERTY_ACCOUNT_AGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -404,9 +437,13 @@ public AccountAgeIndicatorEnum getAccountAgeIndicator() { } /** - * Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this shopper account was created in the merchant's + * environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * + * from30To60Days * moreThan60Days * - * @param accountAgeIndicator Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @param accountAgeIndicator Indicator for the length of time since this shopper account was + * created in the merchant's environment. Allowed values: * notApplicable * + * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ @JsonProperty(JSON_PROPERTY_ACCOUNT_AGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -427,6 +464,7 @@ public AccountInfo accountChangeDate(OffsetDateTime accountChangeDate) { /** * Date when the shopper's account was last changed. + * * @return accountChangeDate Date when the shopper's account was last changed. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_CHANGE_DATE) @@ -447,9 +485,12 @@ public void setAccountChangeDate(OffsetDateTime accountChangeDate) { } /** - * Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since the shopper's account was last updated. Allowed + * values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * - * @param accountChangeIndicator Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @param accountChangeIndicator Indicator for the length of time since the shopper's account + * was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * + * moreThan60Days * @return the current {@code AccountInfo} instance, allowing for method chaining */ public AccountInfo accountChangeIndicator(AccountChangeIndicatorEnum accountChangeIndicator) { @@ -458,8 +499,12 @@ public AccountInfo accountChangeIndicator(AccountChangeIndicatorEnum accountChan } /** - * Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days - * @return accountChangeIndicator Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since the shopper's account was last updated. Allowed + * values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * + * @return accountChangeIndicator Indicator for the length of time since the shopper's account + * was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * + * moreThan60Days */ @JsonProperty(JSON_PROPERTY_ACCOUNT_CHANGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -468,9 +513,12 @@ public AccountChangeIndicatorEnum getAccountChangeIndicator() { } /** - * Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since the shopper's account was last updated. Allowed + * values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * - * @param accountChangeIndicator Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @param accountChangeIndicator Indicator for the length of time since the shopper's account + * was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * + * moreThan60Days */ @JsonProperty(JSON_PROPERTY_ACCOUNT_CHANGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -491,6 +539,7 @@ public AccountInfo accountCreationDate(OffsetDateTime accountCreationDate) { /** * Date when the shopper's account was created. + * * @return accountCreationDate Date when the shopper's account was created. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_CREATION_DATE) @@ -511,9 +560,11 @@ public void setAccountCreationDate(OffsetDateTime accountCreationDate) { } /** - * Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit + * Indicates the type of account. For example, for a multi-account card product. Allowed values: * + * notApplicable * credit * debit * - * @param accountType Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit + * @param accountType Indicates the type of account. For example, for a multi-account card + * product. Allowed values: * notApplicable * credit * debit * @return the current {@code AccountInfo} instance, allowing for method chaining */ public AccountInfo accountType(AccountTypeEnum accountType) { @@ -522,8 +573,11 @@ public AccountInfo accountType(AccountTypeEnum accountType) { } /** - * Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit - * @return accountType Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit + * Indicates the type of account. For example, for a multi-account card product. Allowed values: * + * notApplicable * credit * debit + * + * @return accountType Indicates the type of account. For example, for a multi-account card + * product. Allowed values: * notApplicable * credit * debit */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -532,9 +586,11 @@ public AccountTypeEnum getAccountType() { } /** - * Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit + * Indicates the type of account. For example, for a multi-account card product. Allowed values: * + * notApplicable * credit * debit * - * @param accountType Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit + * @param accountType Indicates the type of account. For example, for a multi-account card + * product. Allowed values: * notApplicable * credit * debit */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -545,7 +601,8 @@ public void setAccountType(AccountTypeEnum accountType) { /** * Number of attempts the shopper tried to add a card to their account in the last day. * - * @param addCardAttemptsDay Number of attempts the shopper tried to add a card to their account in the last day. + * @param addCardAttemptsDay Number of attempts the shopper tried to add a card to their account + * in the last day. * @return the current {@code AccountInfo} instance, allowing for method chaining */ public AccountInfo addCardAttemptsDay(Integer addCardAttemptsDay) { @@ -555,7 +612,9 @@ public AccountInfo addCardAttemptsDay(Integer addCardAttemptsDay) { /** * Number of attempts the shopper tried to add a card to their account in the last day. - * @return addCardAttemptsDay Number of attempts the shopper tried to add a card to their account in the last day. + * + * @return addCardAttemptsDay Number of attempts the shopper tried to add a card to their account + * in the last day. */ @JsonProperty(JSON_PROPERTY_ADD_CARD_ATTEMPTS_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -566,7 +625,8 @@ public Integer getAddCardAttemptsDay() { /** * Number of attempts the shopper tried to add a card to their account in the last day. * - * @param addCardAttemptsDay Number of attempts the shopper tried to add a card to their account in the last day. + * @param addCardAttemptsDay Number of attempts the shopper tried to add a card to their account + * in the last day. */ @JsonProperty(JSON_PROPERTY_ADD_CARD_ATTEMPTS_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -587,6 +647,7 @@ public AccountInfo deliveryAddressUsageDate(OffsetDateTime deliveryAddressUsageD /** * Date the selected delivery address was first used. + * * @return deliveryAddressUsageDate Date the selected delivery address was first used. */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS_USAGE_DATE) @@ -607,19 +668,27 @@ public void setDeliveryAddressUsageDate(OffsetDateTime deliveryAddressUsageDate) } /** - * Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this delivery address was first used. Allowed values: * + * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * - * @param deliveryAddressUsageIndicator Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @param deliveryAddressUsageIndicator Indicator for the length of time since this delivery + * address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days + * * moreThan60Days * @return the current {@code AccountInfo} instance, allowing for method chaining */ - public AccountInfo deliveryAddressUsageIndicator(DeliveryAddressUsageIndicatorEnum deliveryAddressUsageIndicator) { + public AccountInfo deliveryAddressUsageIndicator( + DeliveryAddressUsageIndicatorEnum deliveryAddressUsageIndicator) { this.deliveryAddressUsageIndicator = deliveryAddressUsageIndicator; return this; } /** - * Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days - * @return deliveryAddressUsageIndicator Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this delivery address was first used. Allowed values: * + * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * + * @return deliveryAddressUsageIndicator Indicator for the length of time since this delivery + * address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days + * * moreThan60Days */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS_USAGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -628,13 +697,17 @@ public DeliveryAddressUsageIndicatorEnum getDeliveryAddressUsageIndicator() { } /** - * Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this delivery address was first used. Allowed values: * + * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * - * @param deliveryAddressUsageIndicator Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @param deliveryAddressUsageIndicator Indicator for the length of time since this delivery + * address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days + * * moreThan60Days */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS_USAGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeliveryAddressUsageIndicator(DeliveryAddressUsageIndicatorEnum deliveryAddressUsageIndicator) { + public void setDeliveryAddressUsageIndicator( + DeliveryAddressUsageIndicatorEnum deliveryAddressUsageIndicator) { this.deliveryAddressUsageIndicator = deliveryAddressUsageIndicator; } @@ -643,11 +716,10 @@ public void setDeliveryAddressUsageIndicator(DeliveryAddressUsageIndicatorEnum d * * @param homePhone Shopper's home phone number (including the country code). * @return the current {@code AccountInfo} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v68 - * Use `ThreeDS2RequestData.homePhone` instead. + * @deprecated since Adyen Checkout API v68 Use `ThreeDS2RequestData.homePhone` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.homePhone` instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.homePhone` + // instead. public AccountInfo homePhone(String homePhone) { this.homePhone = homePhone; return this; @@ -655,10 +727,13 @@ public AccountInfo homePhone(String homePhone) { /** * Shopper's home phone number (including the country code). + * * @return homePhone Shopper's home phone number (including the country code). - * @deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.homePhone` instead. + * @deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.homePhone` + * instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.homePhone` instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.homePhone` + // instead. @JsonProperty(JSON_PROPERTY_HOME_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getHomePhone() { @@ -669,11 +744,10 @@ public String getHomePhone() { * Shopper's home phone number (including the country code). * * @param homePhone Shopper's home phone number (including the country code). - * - * @deprecated since Adyen Checkout API v68 - * Use `ThreeDS2RequestData.homePhone` instead. + * @deprecated since Adyen Checkout API v68 Use `ThreeDS2RequestData.homePhone` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.homePhone` instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.homePhone` + // instead. @JsonProperty(JSON_PROPERTY_HOME_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHomePhone(String homePhone) { @@ -685,11 +759,11 @@ public void setHomePhone(String homePhone) { * * @param mobilePhone Shopper's mobile phone number (including the country code). * @return the current {@code AccountInfo} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v68 - * Use `ThreeDS2RequestData.mobilePhone` instead. + * @deprecated since Adyen Checkout API v68 Use `ThreeDS2RequestData.mobilePhone` + * instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.mobilePhone` instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.mobilePhone` + // instead. public AccountInfo mobilePhone(String mobilePhone) { this.mobilePhone = mobilePhone; return this; @@ -697,10 +771,13 @@ public AccountInfo mobilePhone(String mobilePhone) { /** * Shopper's mobile phone number (including the country code). + * * @return mobilePhone Shopper's mobile phone number (including the country code). - * @deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.mobilePhone` instead. + * @deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.mobilePhone` + * instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.mobilePhone` instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.mobilePhone` + // instead. @JsonProperty(JSON_PROPERTY_MOBILE_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMobilePhone() { @@ -711,11 +788,11 @@ public String getMobilePhone() { * Shopper's mobile phone number (including the country code). * * @param mobilePhone Shopper's mobile phone number (including the country code). - * - * @deprecated since Adyen Checkout API v68 - * Use `ThreeDS2RequestData.mobilePhone` instead. + * @deprecated since Adyen Checkout API v68 Use `ThreeDS2RequestData.mobilePhone` + * instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.mobilePhone` instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.mobilePhone` + // instead. @JsonProperty(JSON_PROPERTY_MOBILE_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMobilePhone(String mobilePhone) { @@ -735,6 +812,7 @@ public AccountInfo passwordChangeDate(OffsetDateTime passwordChangeDate) { /** * Date when the shopper last changed their password. + * * @return passwordChangeDate Date when the shopper last changed their password. */ @JsonProperty(JSON_PROPERTY_PASSWORD_CHANGE_DATE) @@ -755,9 +833,12 @@ public void setPasswordChangeDate(OffsetDateTime passwordChangeDate) { } /** - * Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator when the shopper has changed their password. Allowed values: * notApplicable * + * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * - * @param passwordChangeIndicator Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @param passwordChangeIndicator Indicator when the shopper has changed their password. Allowed + * values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * + * moreThan60Days * @return the current {@code AccountInfo} instance, allowing for method chaining */ public AccountInfo passwordChangeIndicator(PasswordChangeIndicatorEnum passwordChangeIndicator) { @@ -766,8 +847,12 @@ public AccountInfo passwordChangeIndicator(PasswordChangeIndicatorEnum passwordC } /** - * Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days - * @return passwordChangeIndicator Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator when the shopper has changed their password. Allowed values: * notApplicable * + * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * + * @return passwordChangeIndicator Indicator when the shopper has changed their password. Allowed + * values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * + * moreThan60Days */ @JsonProperty(JSON_PROPERTY_PASSWORD_CHANGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -776,9 +861,12 @@ public PasswordChangeIndicatorEnum getPasswordChangeIndicator() { } /** - * Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator when the shopper has changed their password. Allowed values: * notApplicable * + * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * - * @param passwordChangeIndicator Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @param passwordChangeIndicator Indicator when the shopper has changed their password. Allowed + * values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * + * moreThan60Days */ @JsonProperty(JSON_PROPERTY_PASSWORD_CHANGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -789,7 +877,8 @@ public void setPasswordChangeIndicator(PasswordChangeIndicatorEnum passwordChang /** * Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. * - * @param pastTransactionsDay Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. + * @param pastTransactionsDay Number of all transactions (successful and abandoned) from this + * shopper in the past 24 hours. * @return the current {@code AccountInfo} instance, allowing for method chaining */ public AccountInfo pastTransactionsDay(Integer pastTransactionsDay) { @@ -799,7 +888,9 @@ public AccountInfo pastTransactionsDay(Integer pastTransactionsDay) { /** * Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. - * @return pastTransactionsDay Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. + * + * @return pastTransactionsDay Number of all transactions (successful and abandoned) from this + * shopper in the past 24 hours. */ @JsonProperty(JSON_PROPERTY_PAST_TRANSACTIONS_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -810,7 +901,8 @@ public Integer getPastTransactionsDay() { /** * Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. * - * @param pastTransactionsDay Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. + * @param pastTransactionsDay Number of all transactions (successful and abandoned) from this + * shopper in the past 24 hours. */ @JsonProperty(JSON_PROPERTY_PAST_TRANSACTIONS_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -821,7 +913,8 @@ public void setPastTransactionsDay(Integer pastTransactionsDay) { /** * Number of all transactions (successful and abandoned) from this shopper in the past year. * - * @param pastTransactionsYear Number of all transactions (successful and abandoned) from this shopper in the past year. + * @param pastTransactionsYear Number of all transactions (successful and abandoned) from this + * shopper in the past year. * @return the current {@code AccountInfo} instance, allowing for method chaining */ public AccountInfo pastTransactionsYear(Integer pastTransactionsYear) { @@ -831,7 +924,9 @@ public AccountInfo pastTransactionsYear(Integer pastTransactionsYear) { /** * Number of all transactions (successful and abandoned) from this shopper in the past year. - * @return pastTransactionsYear Number of all transactions (successful and abandoned) from this shopper in the past year. + * + * @return pastTransactionsYear Number of all transactions (successful and abandoned) from this + * shopper in the past year. */ @JsonProperty(JSON_PROPERTY_PAST_TRANSACTIONS_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -842,7 +937,8 @@ public Integer getPastTransactionsYear() { /** * Number of all transactions (successful and abandoned) from this shopper in the past year. * - * @param pastTransactionsYear Number of all transactions (successful and abandoned) from this shopper in the past year. + * @param pastTransactionsYear Number of all transactions (successful and abandoned) from this + * shopper in the past year. */ @JsonProperty(JSON_PROPERTY_PAST_TRANSACTIONS_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -863,6 +959,7 @@ public AccountInfo paymentAccountAge(OffsetDateTime paymentAccountAge) { /** * Date this payment method was added to the shopper's account. + * * @return paymentAccountAge Date this payment method was added to the shopper's account. */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACCOUNT_AGE) @@ -883,9 +980,13 @@ public void setPaymentAccountAge(OffsetDateTime paymentAccountAge) { } /** - * Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this payment method was added to this shopper's + * account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * + * moreThan60Days * - * @param paymentAccountIndicator Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @param paymentAccountIndicator Indicator for the length of time since this payment method was + * added to this shopper's account. Allowed values: * notApplicable * thisTransaction * + * lessThan30Days * from30To60Days * moreThan60Days * @return the current {@code AccountInfo} instance, allowing for method chaining */ public AccountInfo paymentAccountIndicator(PaymentAccountIndicatorEnum paymentAccountIndicator) { @@ -894,8 +995,13 @@ public AccountInfo paymentAccountIndicator(PaymentAccountIndicatorEnum paymentAc } /** - * Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days - * @return paymentAccountIndicator Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this payment method was added to this shopper's + * account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * + * moreThan60Days + * + * @return paymentAccountIndicator Indicator for the length of time since this payment method was + * added to this shopper's account. Allowed values: * notApplicable * thisTransaction * + * lessThan30Days * from30To60Days * moreThan60Days */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACCOUNT_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -904,9 +1010,13 @@ public PaymentAccountIndicatorEnum getPaymentAccountIndicator() { } /** - * Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this payment method was added to this shopper's + * account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * + * moreThan60Days * - * @param paymentAccountIndicator Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @param paymentAccountIndicator Indicator for the length of time since this payment method was + * added to this shopper's account. Allowed values: * notApplicable * thisTransaction * + * lessThan30Days * from30To60Days * moreThan60Days */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACCOUNT_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -927,6 +1037,7 @@ public AccountInfo purchasesLast6Months(Integer purchasesLast6Months) { /** * Number of successful purchases in the last six months. + * * @return purchasesLast6Months Number of successful purchases in the last six months. */ @JsonProperty(JSON_PROPERTY_PURCHASES_LAST6_MONTHS) @@ -959,6 +1070,7 @@ public AccountInfo suspiciousActivity(Boolean suspiciousActivity) { /** * Whether suspicious activity was recorded on this account. + * * @return suspiciousActivity Whether suspicious activity was recorded on this account. */ @JsonProperty(JSON_PROPERTY_SUSPICIOUS_ACTIVITY) @@ -983,11 +1095,10 @@ public void setSuspiciousActivity(Boolean suspiciousActivity) { * * @param workPhone Shopper's work phone number (including the country code). * @return the current {@code AccountInfo} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v68 - * Use `ThreeDS2RequestData.workPhone` instead. + * @deprecated since Adyen Checkout API v68 Use `ThreeDS2RequestData.workPhone` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.workPhone` instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.workPhone` + // instead. public AccountInfo workPhone(String workPhone) { this.workPhone = workPhone; return this; @@ -995,10 +1106,13 @@ public AccountInfo workPhone(String workPhone) { /** * Shopper's work phone number (including the country code). + * * @return workPhone Shopper's work phone number (including the country code). - * @deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.workPhone` instead. + * @deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.workPhone` + * instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.workPhone` instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.workPhone` + // instead. @JsonProperty(JSON_PROPERTY_WORK_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getWorkPhone() { @@ -1009,20 +1123,17 @@ public String getWorkPhone() { * Shopper's work phone number (including the country code). * * @param workPhone Shopper's work phone number (including the country code). - * - * @deprecated since Adyen Checkout API v68 - * Use `ThreeDS2RequestData.workPhone` instead. + * @deprecated since Adyen Checkout API v68 Use `ThreeDS2RequestData.workPhone` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.workPhone` instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.workPhone` + // instead. @JsonProperty(JSON_PROPERTY_WORK_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWorkPhone(String workPhone) { this.workPhone = workPhone; } - /** - * Return true if this AccountInfo object is equal to o. - */ + /** Return true if this AccountInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -1032,53 +1143,93 @@ public boolean equals(Object o) { return false; } AccountInfo accountInfo = (AccountInfo) o; - return Objects.equals(this.accountAgeIndicator, accountInfo.accountAgeIndicator) && - Objects.equals(this.accountChangeDate, accountInfo.accountChangeDate) && - Objects.equals(this.accountChangeIndicator, accountInfo.accountChangeIndicator) && - Objects.equals(this.accountCreationDate, accountInfo.accountCreationDate) && - Objects.equals(this.accountType, accountInfo.accountType) && - Objects.equals(this.addCardAttemptsDay, accountInfo.addCardAttemptsDay) && - Objects.equals(this.deliveryAddressUsageDate, accountInfo.deliveryAddressUsageDate) && - Objects.equals(this.deliveryAddressUsageIndicator, accountInfo.deliveryAddressUsageIndicator) && - Objects.equals(this.homePhone, accountInfo.homePhone) && - Objects.equals(this.mobilePhone, accountInfo.mobilePhone) && - Objects.equals(this.passwordChangeDate, accountInfo.passwordChangeDate) && - Objects.equals(this.passwordChangeIndicator, accountInfo.passwordChangeIndicator) && - Objects.equals(this.pastTransactionsDay, accountInfo.pastTransactionsDay) && - Objects.equals(this.pastTransactionsYear, accountInfo.pastTransactionsYear) && - Objects.equals(this.paymentAccountAge, accountInfo.paymentAccountAge) && - Objects.equals(this.paymentAccountIndicator, accountInfo.paymentAccountIndicator) && - Objects.equals(this.purchasesLast6Months, accountInfo.purchasesLast6Months) && - Objects.equals(this.suspiciousActivity, accountInfo.suspiciousActivity) && - Objects.equals(this.workPhone, accountInfo.workPhone); + return Objects.equals(this.accountAgeIndicator, accountInfo.accountAgeIndicator) + && Objects.equals(this.accountChangeDate, accountInfo.accountChangeDate) + && Objects.equals(this.accountChangeIndicator, accountInfo.accountChangeIndicator) + && Objects.equals(this.accountCreationDate, accountInfo.accountCreationDate) + && Objects.equals(this.accountType, accountInfo.accountType) + && Objects.equals(this.addCardAttemptsDay, accountInfo.addCardAttemptsDay) + && Objects.equals(this.deliveryAddressUsageDate, accountInfo.deliveryAddressUsageDate) + && Objects.equals( + this.deliveryAddressUsageIndicator, accountInfo.deliveryAddressUsageIndicator) + && Objects.equals(this.homePhone, accountInfo.homePhone) + && Objects.equals(this.mobilePhone, accountInfo.mobilePhone) + && Objects.equals(this.passwordChangeDate, accountInfo.passwordChangeDate) + && Objects.equals(this.passwordChangeIndicator, accountInfo.passwordChangeIndicator) + && Objects.equals(this.pastTransactionsDay, accountInfo.pastTransactionsDay) + && Objects.equals(this.pastTransactionsYear, accountInfo.pastTransactionsYear) + && Objects.equals(this.paymentAccountAge, accountInfo.paymentAccountAge) + && Objects.equals(this.paymentAccountIndicator, accountInfo.paymentAccountIndicator) + && Objects.equals(this.purchasesLast6Months, accountInfo.purchasesLast6Months) + && Objects.equals(this.suspiciousActivity, accountInfo.suspiciousActivity) + && Objects.equals(this.workPhone, accountInfo.workPhone); } @Override public int hashCode() { - return Objects.hash(accountAgeIndicator, accountChangeDate, accountChangeIndicator, accountCreationDate, accountType, addCardAttemptsDay, deliveryAddressUsageDate, deliveryAddressUsageIndicator, homePhone, mobilePhone, passwordChangeDate, passwordChangeIndicator, pastTransactionsDay, pastTransactionsYear, paymentAccountAge, paymentAccountIndicator, purchasesLast6Months, suspiciousActivity, workPhone); + return Objects.hash( + accountAgeIndicator, + accountChangeDate, + accountChangeIndicator, + accountCreationDate, + accountType, + addCardAttemptsDay, + deliveryAddressUsageDate, + deliveryAddressUsageIndicator, + homePhone, + mobilePhone, + passwordChangeDate, + passwordChangeIndicator, + pastTransactionsDay, + pastTransactionsYear, + paymentAccountAge, + paymentAccountIndicator, + purchasesLast6Months, + suspiciousActivity, + workPhone); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AccountInfo {\n"); - sb.append(" accountAgeIndicator: ").append(toIndentedString(accountAgeIndicator)).append("\n"); + sb.append(" accountAgeIndicator: ") + .append(toIndentedString(accountAgeIndicator)) + .append("\n"); sb.append(" accountChangeDate: ").append(toIndentedString(accountChangeDate)).append("\n"); - sb.append(" accountChangeIndicator: ").append(toIndentedString(accountChangeIndicator)).append("\n"); - sb.append(" accountCreationDate: ").append(toIndentedString(accountCreationDate)).append("\n"); + sb.append(" accountChangeIndicator: ") + .append(toIndentedString(accountChangeIndicator)) + .append("\n"); + sb.append(" accountCreationDate: ") + .append(toIndentedString(accountCreationDate)) + .append("\n"); sb.append(" accountType: ").append(toIndentedString(accountType)).append("\n"); sb.append(" addCardAttemptsDay: ").append(toIndentedString(addCardAttemptsDay)).append("\n"); - sb.append(" deliveryAddressUsageDate: ").append(toIndentedString(deliveryAddressUsageDate)).append("\n"); - sb.append(" deliveryAddressUsageIndicator: ").append(toIndentedString(deliveryAddressUsageIndicator)).append("\n"); + sb.append(" deliveryAddressUsageDate: ") + .append(toIndentedString(deliveryAddressUsageDate)) + .append("\n"); + sb.append(" deliveryAddressUsageIndicator: ") + .append(toIndentedString(deliveryAddressUsageIndicator)) + .append("\n"); sb.append(" homePhone: ").append(toIndentedString(homePhone)).append("\n"); sb.append(" mobilePhone: ").append(toIndentedString(mobilePhone)).append("\n"); sb.append(" passwordChangeDate: ").append(toIndentedString(passwordChangeDate)).append("\n"); - sb.append(" passwordChangeIndicator: ").append(toIndentedString(passwordChangeIndicator)).append("\n"); - sb.append(" pastTransactionsDay: ").append(toIndentedString(pastTransactionsDay)).append("\n"); - sb.append(" pastTransactionsYear: ").append(toIndentedString(pastTransactionsYear)).append("\n"); + sb.append(" passwordChangeIndicator: ") + .append(toIndentedString(passwordChangeIndicator)) + .append("\n"); + sb.append(" pastTransactionsDay: ") + .append(toIndentedString(pastTransactionsDay)) + .append("\n"); + sb.append(" pastTransactionsYear: ") + .append(toIndentedString(pastTransactionsYear)) + .append("\n"); sb.append(" paymentAccountAge: ").append(toIndentedString(paymentAccountAge)).append("\n"); - sb.append(" paymentAccountIndicator: ").append(toIndentedString(paymentAccountIndicator)).append("\n"); - sb.append(" purchasesLast6Months: ").append(toIndentedString(purchasesLast6Months)).append("\n"); + sb.append(" paymentAccountIndicator: ") + .append(toIndentedString(paymentAccountIndicator)) + .append("\n"); + sb.append(" purchasesLast6Months: ") + .append(toIndentedString(purchasesLast6Months)) + .append("\n"); sb.append(" suspiciousActivity: ").append(toIndentedString(suspiciousActivity)).append("\n"); sb.append(" workPhone: ").append(toIndentedString(workPhone)).append("\n"); sb.append("}"); @@ -1086,8 +1237,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1096,7 +1246,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AccountInfo given an JSON string * * @param jsonString JSON string @@ -1106,11 +1256,12 @@ private String toIndentedString(Object o) { public static AccountInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountInfo.class); } -/** - * Convert an instance of AccountInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AccountInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AcctInfo.java b/src/main/java/com/adyen/model/checkout/AcctInfo.java index 281bcd6ff..89c0eda53 100644 --- a/src/main/java/com/adyen/model/checkout/AcctInfo.java +++ b/src/main/java/com/adyen/model/checkout/AcctInfo.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * AcctInfo - */ +/** AcctInfo */ @JsonPropertyOrder({ AcctInfo.JSON_PROPERTY_CH_ACC_AGE_IND, AcctInfo.JSON_PROPERTY_CH_ACC_CHANGE, @@ -45,13 +40,13 @@ AcctInfo.JSON_PROPERTY_TXN_ACTIVITY_DAY, AcctInfo.JSON_PROPERTY_TXN_ACTIVITY_YEAR }) - public class AcctInfo { /** - * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: + * * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * + * **04** — 30–60 days * **05** — More than 60 days */ public enum ChAccAgeIndEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -67,7 +62,7 @@ public enum ChAccAgeIndEnum { private String value; ChAccAgeIndEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -88,7 +83,11 @@ public static ChAccAgeIndEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ChAccAgeIndEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChAccAgeIndEnum.values())); + LOG.warning( + "ChAccAgeIndEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ChAccAgeIndEnum.values())); return null; } } @@ -100,10 +99,12 @@ public static ChAccAgeIndEnum fromValue(String value) { private String chAccChange; /** - * Length of time since the cardholder’s account information with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * Length of time since the cardholder’s account information with the 3DS Requestor was last + * changed, including Billing or Shipping address, new payment account, or new user(s) added. + * Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * + * **03** — 30–60 days * **04** — More than 60 days */ public enum ChAccChangeIndEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -117,7 +118,7 @@ public enum ChAccChangeIndEnum { private String value; ChAccChangeIndEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -138,7 +139,11 @@ public static ChAccChangeIndEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ChAccChangeIndEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChAccChangeIndEnum.values())); + LOG.warning( + "ChAccChangeIndEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ChAccChangeIndEnum.values())); return null; } } @@ -150,10 +155,12 @@ public static ChAccChangeIndEnum fromValue(String value) { private String chAccPwChange; /** - * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a + * password change or account reset. Allowed values: * **01** — No change * **02** — Changed + * during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than + * 60 days */ public enum ChAccPwChangeIndEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -169,7 +176,7 @@ public enum ChAccPwChangeIndEnum { private String value; ChAccPwChangeIndEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -190,7 +197,11 @@ public static ChAccPwChangeIndEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ChAccPwChangeIndEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChAccPwChangeIndEnum.values())); + LOG.warning( + "ChAccPwChangeIndEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ChAccPwChangeIndEnum.values())); return null; } } @@ -208,10 +219,12 @@ public static ChAccPwChangeIndEnum fromValue(String value) { private String paymentAccAge; /** - * Indicates the length of time that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * Indicates the length of time that the payment account was enrolled in the cardholder’s account + * with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — + * During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than + * 60 days */ public enum PaymentAccIndEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -227,7 +240,7 @@ public enum PaymentAccIndEnum { private String value; PaymentAccIndEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -248,7 +261,11 @@ public static PaymentAccIndEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PaymentAccIndEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PaymentAccIndEnum.values())); + LOG.warning( + "PaymentAccIndEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PaymentAccIndEnum.values())); return null; } } @@ -263,10 +280,11 @@ public static PaymentAccIndEnum fromValue(String value) { private String shipAddressUsage; /** - * Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * Indicates when the shipping address used for this transaction was first used with the 3DS + * Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — + * 30–60 days * **04** — More than 60 days */ public enum ShipAddressUsageIndEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -280,7 +298,7 @@ public enum ShipAddressUsageIndEnum { private String value; ShipAddressUsageIndEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -301,7 +319,11 @@ public static ShipAddressUsageIndEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ShipAddressUsageIndEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShipAddressUsageIndEnum.values())); + LOG.warning( + "ShipAddressUsageIndEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ShipAddressUsageIndEnum.values())); return null; } } @@ -310,10 +332,11 @@ public static ShipAddressUsageIndEnum fromValue(String value) { private ShipAddressUsageIndEnum shipAddressUsageInd; /** - * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — Account Name different to shipping Name + * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this + * transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — + * Account Name different to shipping Name */ public enum ShipNameIndicatorEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")); @@ -323,7 +346,7 @@ public enum ShipNameIndicatorEnum { private String value; ShipNameIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -344,7 +367,11 @@ public static ShipNameIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ShipNameIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShipNameIndicatorEnum.values())); + LOG.warning( + "ShipNameIndicatorEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ShipNameIndicatorEnum.values())); return null; } } @@ -353,10 +380,11 @@ public static ShipNameIndicatorEnum fromValue(String value) { private ShipNameIndicatorEnum shipNameIndicator; /** - * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been observed * **02** — Suspicious activity has been observed + * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous + * fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been + * observed * **02** — Suspicious activity has been observed */ public enum SuspiciousAccActivityEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")); @@ -366,7 +394,7 @@ public enum SuspiciousAccActivityEnum { private String value; SuspiciousAccActivityEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -387,7 +415,11 @@ public static SuspiciousAccActivityEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("SuspiciousAccActivityEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(SuspiciousAccActivityEnum.values())); + LOG.warning( + "SuspiciousAccActivityEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(SuspiciousAccActivityEnum.values())); return null; } } @@ -401,13 +433,16 @@ public static SuspiciousAccActivityEnum fromValue(String value) { public static final String JSON_PROPERTY_TXN_ACTIVITY_YEAR = "txnActivityYear"; private String txnActivityYear; - public AcctInfo() { - } + public AcctInfo() {} /** - * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: + * * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * + * **04** — 30–60 days * **05** — More than 60 days * - * @param chAccAgeInd Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * @param chAccAgeInd Length of time that the cardholder has had the account with the 3DS + * Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction + * * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo chAccAgeInd(ChAccAgeIndEnum chAccAgeInd) { @@ -416,8 +451,13 @@ public AcctInfo chAccAgeInd(ChAccAgeIndEnum chAccAgeInd) { } /** - * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days - * @return chAccAgeInd Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: + * * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * + * **04** — 30–60 days * **05** — More than 60 days + * + * @return chAccAgeInd Length of time that the cardholder has had the account with the 3DS + * Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction + * * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days */ @JsonProperty(JSON_PROPERTY_CH_ACC_AGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -426,9 +466,13 @@ public ChAccAgeIndEnum getChAccAgeInd() { } /** - * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: + * * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * + * **04** — 30–60 days * **05** — More than 60 days * - * @param chAccAgeInd Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * @param chAccAgeInd Length of time that the cardholder has had the account with the 3DS + * Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction + * * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days */ @JsonProperty(JSON_PROPERTY_CH_ACC_AGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -437,9 +481,12 @@ public void setChAccAgeInd(ChAccAgeIndEnum chAccAgeInd) { } /** - * Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** + * Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing + * or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** * - * @param chAccChange Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** + * @param chAccChange Date that the cardholder’s account with the 3DS Requestor was last changed, + * including Billing or Shipping address, new payment account, or new user(s) added. Format: + * **YYYYMMDD** * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo chAccChange(String chAccChange) { @@ -448,8 +495,12 @@ public AcctInfo chAccChange(String chAccChange) { } /** - * Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** - * @return chAccChange Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** + * Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing + * or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** + * + * @return chAccChange Date that the cardholder’s account with the 3DS Requestor was last changed, + * including Billing or Shipping address, new payment account, or new user(s) added. Format: + * **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_CH_ACC_CHANGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -458,9 +509,12 @@ public String getChAccChange() { } /** - * Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** + * Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing + * or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** * - * @param chAccChange Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** + * @param chAccChange Date that the cardholder’s account with the 3DS Requestor was last changed, + * including Billing or Shipping address, new payment account, or new user(s) added. Format: + * **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_CH_ACC_CHANGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -469,9 +523,15 @@ public void setChAccChange(String chAccChange) { } /** - * Length of time since the cardholder’s account information with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * Length of time since the cardholder’s account information with the 3DS Requestor was last + * changed, including Billing or Shipping address, new payment account, or new user(s) added. + * Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * + * **03** — 30–60 days * **04** — More than 60 days * - * @param chAccChangeInd Length of time since the cardholder’s account information with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * @param chAccChangeInd Length of time since the cardholder’s account information with the 3DS + * Requestor was last changed, including Billing or Shipping address, new payment account, or + * new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — + * Less than 30 days * **03** — 30–60 days * **04** — More than 60 days * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo chAccChangeInd(ChAccChangeIndEnum chAccChangeInd) { @@ -480,8 +540,15 @@ public AcctInfo chAccChangeInd(ChAccChangeIndEnum chAccChangeInd) { } /** - * Length of time since the cardholder’s account information with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days - * @return chAccChangeInd Length of time since the cardholder’s account information with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * Length of time since the cardholder’s account information with the 3DS Requestor was last + * changed, including Billing or Shipping address, new payment account, or new user(s) added. + * Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * + * **03** — 30–60 days * **04** — More than 60 days + * + * @return chAccChangeInd Length of time since the cardholder’s account information with the 3DS + * Requestor was last changed, including Billing or Shipping address, new payment account, or + * new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — + * Less than 30 days * **03** — 30–60 days * **04** — More than 60 days */ @JsonProperty(JSON_PROPERTY_CH_ACC_CHANGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -490,9 +557,15 @@ public ChAccChangeIndEnum getChAccChangeInd() { } /** - * Length of time since the cardholder’s account information with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * Length of time since the cardholder’s account information with the 3DS Requestor was last + * changed, including Billing or Shipping address, new payment account, or new user(s) added. + * Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * + * **03** — 30–60 days * **04** — More than 60 days * - * @param chAccChangeInd Length of time since the cardholder’s account information with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * @param chAccChangeInd Length of time since the cardholder’s account information with the 3DS + * Requestor was last changed, including Billing or Shipping address, new payment account, or + * new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — + * Less than 30 days * **03** — 30–60 days * **04** — More than 60 days */ @JsonProperty(JSON_PROPERTY_CH_ACC_CHANGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -501,9 +574,11 @@ public void setChAccChangeInd(ChAccChangeIndEnum chAccChangeInd) { } /** - * Date that cardholder’s account with the 3DS Requestor had a password change or account reset. Format: **YYYYMMDD** + * Date that cardholder’s account with the 3DS Requestor had a password change or account reset. + * Format: **YYYYMMDD** * - * @param chAccPwChange Date that cardholder’s account with the 3DS Requestor had a password change or account reset. Format: **YYYYMMDD** + * @param chAccPwChange Date that cardholder’s account with the 3DS Requestor had a password + * change or account reset. Format: **YYYYMMDD** * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo chAccPwChange(String chAccPwChange) { @@ -512,8 +587,11 @@ public AcctInfo chAccPwChange(String chAccPwChange) { } /** - * Date that cardholder’s account with the 3DS Requestor had a password change or account reset. Format: **YYYYMMDD** - * @return chAccPwChange Date that cardholder’s account with the 3DS Requestor had a password change or account reset. Format: **YYYYMMDD** + * Date that cardholder’s account with the 3DS Requestor had a password change or account reset. + * Format: **YYYYMMDD** + * + * @return chAccPwChange Date that cardholder’s account with the 3DS Requestor had a password + * change or account reset. Format: **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_CH_ACC_PW_CHANGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -522,9 +600,11 @@ public String getChAccPwChange() { } /** - * Date that cardholder’s account with the 3DS Requestor had a password change or account reset. Format: **YYYYMMDD** + * Date that cardholder’s account with the 3DS Requestor had a password change or account reset. + * Format: **YYYYMMDD** * - * @param chAccPwChange Date that cardholder’s account with the 3DS Requestor had a password change or account reset. Format: **YYYYMMDD** + * @param chAccPwChange Date that cardholder’s account with the 3DS Requestor had a password + * change or account reset. Format: **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_CH_ACC_PW_CHANGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -533,9 +613,15 @@ public void setChAccPwChange(String chAccPwChange) { } /** - * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a + * password change or account reset. Allowed values: * **01** — No change * **02** — Changed + * during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than + * 60 days * - * @param chAccPwChangeInd Indicates the length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * @param chAccPwChangeInd Indicates the length of time since the cardholder’s account with the + * 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change + * * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 + * days * **05** — More than 60 days * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo chAccPwChangeInd(ChAccPwChangeIndEnum chAccPwChangeInd) { @@ -544,8 +630,15 @@ public AcctInfo chAccPwChangeInd(ChAccPwChangeIndEnum chAccPwChangeInd) { } /** - * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days - * @return chAccPwChangeInd Indicates the length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a + * password change or account reset. Allowed values: * **01** — No change * **02** — Changed + * during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than + * 60 days + * + * @return chAccPwChangeInd Indicates the length of time since the cardholder’s account with the + * 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change + * * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 + * days * **05** — More than 60 days */ @JsonProperty(JSON_PROPERTY_CH_ACC_PW_CHANGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -554,9 +647,15 @@ public ChAccPwChangeIndEnum getChAccPwChangeInd() { } /** - * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a + * password change or account reset. Allowed values: * **01** — No change * **02** — Changed + * during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than + * 60 days * - * @param chAccPwChangeInd Indicates the length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * @param chAccPwChangeInd Indicates the length of time since the cardholder’s account with the + * 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change + * * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 + * days * **05** — More than 60 days */ @JsonProperty(JSON_PROPERTY_CH_ACC_PW_CHANGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -565,9 +664,10 @@ public void setChAccPwChangeInd(ChAccPwChangeIndEnum chAccPwChangeInd) { } /** - * Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** + * Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** * - * @param chAccString Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** + * @param chAccString Date that the cardholder opened the account with the 3DS Requestor. Format: + * **YYYYMMDD** * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo chAccString(String chAccString) { @@ -576,8 +676,10 @@ public AcctInfo chAccString(String chAccString) { } /** - * Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** - * @return chAccString Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** + * Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** + * + * @return chAccString Date that the cardholder opened the account with the 3DS Requestor. Format: + * **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_CH_ACC_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -586,9 +688,10 @@ public String getChAccString() { } /** - * Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** + * Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** * - * @param chAccString Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** + * @param chAccString Date that the cardholder opened the account with the 3DS Requestor. Format: + * **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_CH_ACC_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -597,9 +700,11 @@ public void setChAccString(String chAccString) { } /** - * Number of purchases with this cardholder account during the previous six months. Max length: 4 characters. + * Number of purchases with this cardholder account during the previous six months. Max length: 4 + * characters. * - * @param nbPurchaseAccount Number of purchases with this cardholder account during the previous six months. Max length: 4 characters. + * @param nbPurchaseAccount Number of purchases with this cardholder account during the previous + * six months. Max length: 4 characters. * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo nbPurchaseAccount(String nbPurchaseAccount) { @@ -608,8 +713,11 @@ public AcctInfo nbPurchaseAccount(String nbPurchaseAccount) { } /** - * Number of purchases with this cardholder account during the previous six months. Max length: 4 characters. - * @return nbPurchaseAccount Number of purchases with this cardholder account during the previous six months. Max length: 4 characters. + * Number of purchases with this cardholder account during the previous six months. Max length: 4 + * characters. + * + * @return nbPurchaseAccount Number of purchases with this cardholder account during the previous + * six months. Max length: 4 characters. */ @JsonProperty(JSON_PROPERTY_NB_PURCHASE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -618,9 +726,11 @@ public String getNbPurchaseAccount() { } /** - * Number of purchases with this cardholder account during the previous six months. Max length: 4 characters. + * Number of purchases with this cardholder account during the previous six months. Max length: 4 + * characters. * - * @param nbPurchaseAccount Number of purchases with this cardholder account during the previous six months. Max length: 4 characters. + * @param nbPurchaseAccount Number of purchases with this cardholder account during the previous + * six months. Max length: 4 characters. */ @JsonProperty(JSON_PROPERTY_NB_PURCHASE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -629,9 +739,11 @@ public void setNbPurchaseAccount(String nbPurchaseAccount) { } /** - * String that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Format: **YYYYMMDD** + * String that the payment account was enrolled in the cardholder’s account with the 3DS + * Requestor. Format: **YYYYMMDD** * - * @param paymentAccAge String that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Format: **YYYYMMDD** + * @param paymentAccAge String that the payment account was enrolled in the cardholder’s account + * with the 3DS Requestor. Format: **YYYYMMDD** * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo paymentAccAge(String paymentAccAge) { @@ -640,8 +752,11 @@ public AcctInfo paymentAccAge(String paymentAccAge) { } /** - * String that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Format: **YYYYMMDD** - * @return paymentAccAge String that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Format: **YYYYMMDD** + * String that the payment account was enrolled in the cardholder’s account with the 3DS + * Requestor. Format: **YYYYMMDD** + * + * @return paymentAccAge String that the payment account was enrolled in the cardholder’s account + * with the 3DS Requestor. Format: **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACC_AGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -650,9 +765,11 @@ public String getPaymentAccAge() { } /** - * String that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Format: **YYYYMMDD** + * String that the payment account was enrolled in the cardholder’s account with the 3DS + * Requestor. Format: **YYYYMMDD** * - * @param paymentAccAge String that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Format: **YYYYMMDD** + * @param paymentAccAge String that the payment account was enrolled in the cardholder’s account + * with the 3DS Requestor. Format: **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACC_AGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -661,9 +778,15 @@ public void setPaymentAccAge(String paymentAccAge) { } /** - * Indicates the length of time that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * Indicates the length of time that the payment account was enrolled in the cardholder’s account + * with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — + * During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than + * 60 days * - * @param paymentAccInd Indicates the length of time that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * @param paymentAccInd Indicates the length of time that the payment account was enrolled in the + * cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest + * checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 + * days * **05** — More than 60 days * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo paymentAccInd(PaymentAccIndEnum paymentAccInd) { @@ -672,8 +795,15 @@ public AcctInfo paymentAccInd(PaymentAccIndEnum paymentAccInd) { } /** - * Indicates the length of time that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days - * @return paymentAccInd Indicates the length of time that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * Indicates the length of time that the payment account was enrolled in the cardholder’s account + * with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — + * During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than + * 60 days + * + * @return paymentAccInd Indicates the length of time that the payment account was enrolled in the + * cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest + * checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 + * days * **05** — More than 60 days */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACC_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -682,9 +812,15 @@ public PaymentAccIndEnum getPaymentAccInd() { } /** - * Indicates the length of time that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * Indicates the length of time that the payment account was enrolled in the cardholder’s account + * with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — + * During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than + * 60 days * - * @param paymentAccInd Indicates the length of time that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * @param paymentAccInd Indicates the length of time that the payment account was enrolled in the + * cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest + * checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 + * days * **05** — More than 60 days */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACC_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -695,7 +831,8 @@ public void setPaymentAccInd(PaymentAccIndEnum paymentAccInd) { /** * Number of Add Card attempts in the last 24 hours. Max length: 3 characters. * - * @param provisionAttemptsDay Number of Add Card attempts in the last 24 hours. Max length: 3 characters. + * @param provisionAttemptsDay Number of Add Card attempts in the last 24 hours. Max length: 3 + * characters. * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo provisionAttemptsDay(String provisionAttemptsDay) { @@ -705,7 +842,9 @@ public AcctInfo provisionAttemptsDay(String provisionAttemptsDay) { /** * Number of Add Card attempts in the last 24 hours. Max length: 3 characters. - * @return provisionAttemptsDay Number of Add Card attempts in the last 24 hours. Max length: 3 characters. + * + * @return provisionAttemptsDay Number of Add Card attempts in the last 24 hours. Max length: 3 + * characters. */ @JsonProperty(JSON_PROPERTY_PROVISION_ATTEMPTS_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -716,7 +855,8 @@ public String getProvisionAttemptsDay() { /** * Number of Add Card attempts in the last 24 hours. Max length: 3 characters. * - * @param provisionAttemptsDay Number of Add Card attempts in the last 24 hours. Max length: 3 characters. + * @param provisionAttemptsDay Number of Add Card attempts in the last 24 hours. Max length: 3 + * characters. */ @JsonProperty(JSON_PROPERTY_PROVISION_ATTEMPTS_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -725,9 +865,11 @@ public void setProvisionAttemptsDay(String provisionAttemptsDay) { } /** - * String when the shipping address used for this transaction was first used with the 3DS Requestor. Format: **YYYYMMDD** + * String when the shipping address used for this transaction was first used with the 3DS + * Requestor. Format: **YYYYMMDD** * - * @param shipAddressUsage String when the shipping address used for this transaction was first used with the 3DS Requestor. Format: **YYYYMMDD** + * @param shipAddressUsage String when the shipping address used for this transaction was first + * used with the 3DS Requestor. Format: **YYYYMMDD** * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo shipAddressUsage(String shipAddressUsage) { @@ -736,8 +878,11 @@ public AcctInfo shipAddressUsage(String shipAddressUsage) { } /** - * String when the shipping address used for this transaction was first used with the 3DS Requestor. Format: **YYYYMMDD** - * @return shipAddressUsage String when the shipping address used for this transaction was first used with the 3DS Requestor. Format: **YYYYMMDD** + * String when the shipping address used for this transaction was first used with the 3DS + * Requestor. Format: **YYYYMMDD** + * + * @return shipAddressUsage String when the shipping address used for this transaction was first + * used with the 3DS Requestor. Format: **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_SHIP_ADDRESS_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -746,9 +891,11 @@ public String getShipAddressUsage() { } /** - * String when the shipping address used for this transaction was first used with the 3DS Requestor. Format: **YYYYMMDD** + * String when the shipping address used for this transaction was first used with the 3DS + * Requestor. Format: **YYYYMMDD** * - * @param shipAddressUsage String when the shipping address used for this transaction was first used with the 3DS Requestor. Format: **YYYYMMDD** + * @param shipAddressUsage String when the shipping address used for this transaction was first + * used with the 3DS Requestor. Format: **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_SHIP_ADDRESS_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -757,9 +904,13 @@ public void setShipAddressUsage(String shipAddressUsage) { } /** - * Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * Indicates when the shipping address used for this transaction was first used with the 3DS + * Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — + * 30–60 days * **04** — More than 60 days * - * @param shipAddressUsageInd Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * @param shipAddressUsageInd Indicates when the shipping address used for this transaction was + * first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — + * Less than 30 days * **03** — 30–60 days * **04** — More than 60 days * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo shipAddressUsageInd(ShipAddressUsageIndEnum shipAddressUsageInd) { @@ -768,8 +919,13 @@ public AcctInfo shipAddressUsageInd(ShipAddressUsageIndEnum shipAddressUsageInd) } /** - * Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days - * @return shipAddressUsageInd Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * Indicates when the shipping address used for this transaction was first used with the 3DS + * Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — + * 30–60 days * **04** — More than 60 days + * + * @return shipAddressUsageInd Indicates when the shipping address used for this transaction was + * first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — + * Less than 30 days * **03** — 30–60 days * **04** — More than 60 days */ @JsonProperty(JSON_PROPERTY_SHIP_ADDRESS_USAGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -778,9 +934,13 @@ public ShipAddressUsageIndEnum getShipAddressUsageInd() { } /** - * Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * Indicates when the shipping address used for this transaction was first used with the 3DS + * Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — + * 30–60 days * **04** — More than 60 days * - * @param shipAddressUsageInd Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * @param shipAddressUsageInd Indicates when the shipping address used for this transaction was + * first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — + * Less than 30 days * **03** — 30–60 days * **04** — More than 60 days */ @JsonProperty(JSON_PROPERTY_SHIP_ADDRESS_USAGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -789,9 +949,13 @@ public void setShipAddressUsageInd(ShipAddressUsageIndEnum shipAddressUsageInd) } /** - * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — Account Name different to shipping Name + * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this + * transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — + * Account Name different to shipping Name * - * @param shipNameIndicator Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — Account Name different to shipping Name + * @param shipNameIndicator Indicates if the Cardholder Name on the account is identical to the + * shipping Name used for this transaction. Allowed values: * **01** — Account Name identical + * to shipping Name * **02** — Account Name different to shipping Name * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo shipNameIndicator(ShipNameIndicatorEnum shipNameIndicator) { @@ -800,8 +964,13 @@ public AcctInfo shipNameIndicator(ShipNameIndicatorEnum shipNameIndicator) { } /** - * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — Account Name different to shipping Name - * @return shipNameIndicator Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — Account Name different to shipping Name + * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this + * transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — + * Account Name different to shipping Name + * + * @return shipNameIndicator Indicates if the Cardholder Name on the account is identical to the + * shipping Name used for this transaction. Allowed values: * **01** — Account Name identical + * to shipping Name * **02** — Account Name different to shipping Name */ @JsonProperty(JSON_PROPERTY_SHIP_NAME_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -810,9 +979,13 @@ public ShipNameIndicatorEnum getShipNameIndicator() { } /** - * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — Account Name different to shipping Name + * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this + * transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — + * Account Name different to shipping Name * - * @param shipNameIndicator Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — Account Name different to shipping Name + * @param shipNameIndicator Indicates if the Cardholder Name on the account is identical to the + * shipping Name used for this transaction. Allowed values: * **01** — Account Name identical + * to shipping Name * **02** — Account Name different to shipping Name */ @JsonProperty(JSON_PROPERTY_SHIP_NAME_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -821,9 +994,13 @@ public void setShipNameIndicator(ShipNameIndicatorEnum shipNameIndicator) { } /** - * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been observed * **02** — Suspicious activity has been observed + * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous + * fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been + * observed * **02** — Suspicious activity has been observed * - * @param suspiciousAccActivity Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been observed * **02** — Suspicious activity has been observed + * @param suspiciousAccActivity Indicates whether the 3DS Requestor has experienced suspicious + * activity (including previous fraud) on the cardholder account. Allowed values: * **01** — + * No suspicious activity has been observed * **02** — Suspicious activity has been observed * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo suspiciousAccActivity(SuspiciousAccActivityEnum suspiciousAccActivity) { @@ -832,8 +1009,13 @@ public AcctInfo suspiciousAccActivity(SuspiciousAccActivityEnum suspiciousAccAct } /** - * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been observed * **02** — Suspicious activity has been observed - * @return suspiciousAccActivity Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been observed * **02** — Suspicious activity has been observed + * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous + * fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been + * observed * **02** — Suspicious activity has been observed + * + * @return suspiciousAccActivity Indicates whether the 3DS Requestor has experienced suspicious + * activity (including previous fraud) on the cardholder account. Allowed values: * **01** — + * No suspicious activity has been observed * **02** — Suspicious activity has been observed */ @JsonProperty(JSON_PROPERTY_SUSPICIOUS_ACC_ACTIVITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -842,9 +1024,13 @@ public SuspiciousAccActivityEnum getSuspiciousAccActivity() { } /** - * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been observed * **02** — Suspicious activity has been observed + * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous + * fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been + * observed * **02** — Suspicious activity has been observed * - * @param suspiciousAccActivity Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been observed * **02** — Suspicious activity has been observed + * @param suspiciousAccActivity Indicates whether the 3DS Requestor has experienced suspicious + * activity (including previous fraud) on the cardholder account. Allowed values: * **01** — + * No suspicious activity has been observed * **02** — Suspicious activity has been observed */ @JsonProperty(JSON_PROPERTY_SUSPICIOUS_ACC_ACTIVITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -853,9 +1039,12 @@ public void setSuspiciousAccActivity(SuspiciousAccActivityEnum suspiciousAccActi } /** - * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. + * Number of transactions (successful and abandoned) for this cardholder account with the 3DS + * Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. * - * @param txnActivityDay Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. + * @param txnActivityDay Number of transactions (successful and abandoned) for this cardholder + * account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max + * length: 3 characters. * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo txnActivityDay(String txnActivityDay) { @@ -864,8 +1053,12 @@ public AcctInfo txnActivityDay(String txnActivityDay) { } /** - * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. - * @return txnActivityDay Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. + * Number of transactions (successful and abandoned) for this cardholder account with the 3DS + * Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. + * + * @return txnActivityDay Number of transactions (successful and abandoned) for this cardholder + * account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max + * length: 3 characters. */ @JsonProperty(JSON_PROPERTY_TXN_ACTIVITY_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -874,9 +1067,12 @@ public String getTxnActivityDay() { } /** - * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. + * Number of transactions (successful and abandoned) for this cardholder account with the 3DS + * Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. * - * @param txnActivityDay Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. + * @param txnActivityDay Number of transactions (successful and abandoned) for this cardholder + * account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max + * length: 3 characters. */ @JsonProperty(JSON_PROPERTY_TXN_ACTIVITY_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -885,9 +1081,12 @@ public void setTxnActivityDay(String txnActivityDay) { } /** - * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous year. Max length: 3 characters. + * Number of transactions (successful and abandoned) for this cardholder account with the 3DS + * Requestor across all payment accounts in the previous year. Max length: 3 characters. * - * @param txnActivityYear Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous year. Max length: 3 characters. + * @param txnActivityYear Number of transactions (successful and abandoned) for this cardholder + * account with the 3DS Requestor across all payment accounts in the previous year. Max + * length: 3 characters. * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo txnActivityYear(String txnActivityYear) { @@ -896,8 +1095,12 @@ public AcctInfo txnActivityYear(String txnActivityYear) { } /** - * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous year. Max length: 3 characters. - * @return txnActivityYear Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous year. Max length: 3 characters. + * Number of transactions (successful and abandoned) for this cardholder account with the 3DS + * Requestor across all payment accounts in the previous year. Max length: 3 characters. + * + * @return txnActivityYear Number of transactions (successful and abandoned) for this cardholder + * account with the 3DS Requestor across all payment accounts in the previous year. Max + * length: 3 characters. */ @JsonProperty(JSON_PROPERTY_TXN_ACTIVITY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -906,9 +1109,12 @@ public String getTxnActivityYear() { } /** - * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous year. Max length: 3 characters. + * Number of transactions (successful and abandoned) for this cardholder account with the 3DS + * Requestor across all payment accounts in the previous year. Max length: 3 characters. * - * @param txnActivityYear Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous year. Max length: 3 characters. + * @param txnActivityYear Number of transactions (successful and abandoned) for this cardholder + * account with the 3DS Requestor across all payment accounts in the previous year. Max + * length: 3 characters. */ @JsonProperty(JSON_PROPERTY_TXN_ACTIVITY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -916,9 +1122,7 @@ public void setTxnActivityYear(String txnActivityYear) { this.txnActivityYear = txnActivityYear; } - /** - * Return true if this AcctInfo object is equal to o. - */ + /** Return true if this AcctInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -928,27 +1132,43 @@ public boolean equals(Object o) { return false; } AcctInfo acctInfo = (AcctInfo) o; - return Objects.equals(this.chAccAgeInd, acctInfo.chAccAgeInd) && - Objects.equals(this.chAccChange, acctInfo.chAccChange) && - Objects.equals(this.chAccChangeInd, acctInfo.chAccChangeInd) && - Objects.equals(this.chAccPwChange, acctInfo.chAccPwChange) && - Objects.equals(this.chAccPwChangeInd, acctInfo.chAccPwChangeInd) && - Objects.equals(this.chAccString, acctInfo.chAccString) && - Objects.equals(this.nbPurchaseAccount, acctInfo.nbPurchaseAccount) && - Objects.equals(this.paymentAccAge, acctInfo.paymentAccAge) && - Objects.equals(this.paymentAccInd, acctInfo.paymentAccInd) && - Objects.equals(this.provisionAttemptsDay, acctInfo.provisionAttemptsDay) && - Objects.equals(this.shipAddressUsage, acctInfo.shipAddressUsage) && - Objects.equals(this.shipAddressUsageInd, acctInfo.shipAddressUsageInd) && - Objects.equals(this.shipNameIndicator, acctInfo.shipNameIndicator) && - Objects.equals(this.suspiciousAccActivity, acctInfo.suspiciousAccActivity) && - Objects.equals(this.txnActivityDay, acctInfo.txnActivityDay) && - Objects.equals(this.txnActivityYear, acctInfo.txnActivityYear); + return Objects.equals(this.chAccAgeInd, acctInfo.chAccAgeInd) + && Objects.equals(this.chAccChange, acctInfo.chAccChange) + && Objects.equals(this.chAccChangeInd, acctInfo.chAccChangeInd) + && Objects.equals(this.chAccPwChange, acctInfo.chAccPwChange) + && Objects.equals(this.chAccPwChangeInd, acctInfo.chAccPwChangeInd) + && Objects.equals(this.chAccString, acctInfo.chAccString) + && Objects.equals(this.nbPurchaseAccount, acctInfo.nbPurchaseAccount) + && Objects.equals(this.paymentAccAge, acctInfo.paymentAccAge) + && Objects.equals(this.paymentAccInd, acctInfo.paymentAccInd) + && Objects.equals(this.provisionAttemptsDay, acctInfo.provisionAttemptsDay) + && Objects.equals(this.shipAddressUsage, acctInfo.shipAddressUsage) + && Objects.equals(this.shipAddressUsageInd, acctInfo.shipAddressUsageInd) + && Objects.equals(this.shipNameIndicator, acctInfo.shipNameIndicator) + && Objects.equals(this.suspiciousAccActivity, acctInfo.suspiciousAccActivity) + && Objects.equals(this.txnActivityDay, acctInfo.txnActivityDay) + && Objects.equals(this.txnActivityYear, acctInfo.txnActivityYear); } @Override public int hashCode() { - return Objects.hash(chAccAgeInd, chAccChange, chAccChangeInd, chAccPwChange, chAccPwChangeInd, chAccString, nbPurchaseAccount, paymentAccAge, paymentAccInd, provisionAttemptsDay, shipAddressUsage, shipAddressUsageInd, shipNameIndicator, suspiciousAccActivity, txnActivityDay, txnActivityYear); + return Objects.hash( + chAccAgeInd, + chAccChange, + chAccChangeInd, + chAccPwChange, + chAccPwChangeInd, + chAccString, + nbPurchaseAccount, + paymentAccAge, + paymentAccInd, + provisionAttemptsDay, + shipAddressUsage, + shipAddressUsageInd, + shipNameIndicator, + suspiciousAccActivity, + txnActivityDay, + txnActivityYear); } @Override @@ -964,11 +1184,17 @@ public String toString() { sb.append(" nbPurchaseAccount: ").append(toIndentedString(nbPurchaseAccount)).append("\n"); sb.append(" paymentAccAge: ").append(toIndentedString(paymentAccAge)).append("\n"); sb.append(" paymentAccInd: ").append(toIndentedString(paymentAccInd)).append("\n"); - sb.append(" provisionAttemptsDay: ").append(toIndentedString(provisionAttemptsDay)).append("\n"); + sb.append(" provisionAttemptsDay: ") + .append(toIndentedString(provisionAttemptsDay)) + .append("\n"); sb.append(" shipAddressUsage: ").append(toIndentedString(shipAddressUsage)).append("\n"); - sb.append(" shipAddressUsageInd: ").append(toIndentedString(shipAddressUsageInd)).append("\n"); + sb.append(" shipAddressUsageInd: ") + .append(toIndentedString(shipAddressUsageInd)) + .append("\n"); sb.append(" shipNameIndicator: ").append(toIndentedString(shipNameIndicator)).append("\n"); - sb.append(" suspiciousAccActivity: ").append(toIndentedString(suspiciousAccActivity)).append("\n"); + sb.append(" suspiciousAccActivity: ") + .append(toIndentedString(suspiciousAccActivity)) + .append("\n"); sb.append(" txnActivityDay: ").append(toIndentedString(txnActivityDay)).append("\n"); sb.append(" txnActivityYear: ").append(toIndentedString(txnActivityYear)).append("\n"); sb.append("}"); @@ -976,8 +1202,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -986,7 +1211,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AcctInfo given an JSON string * * @param jsonString JSON string @@ -996,11 +1221,12 @@ private String toIndentedString(Object o) { public static AcctInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AcctInfo.class); } -/** - * Convert an instance of AcctInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AcctInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AchDetails.java b/src/main/java/com/adyen/model/checkout/AchDetails.java index 9fcdc5e09..8bc042147 100644 --- a/src/main/java/com/adyen/model/checkout/AchDetails.java +++ b/src/main/java/com/adyen/model/checkout/AchDetails.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * AchDetails - */ +/** AchDetails */ @JsonPropertyOrder({ AchDetails.JSON_PROPERTY_ACCOUNT_HOLDER_TYPE, AchDetails.JSON_PROPERTY_BANK_ACCOUNT_NUMBER, @@ -41,13 +36,9 @@ AchDetails.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID, AchDetails.JSON_PROPERTY_TYPE }) - public class AchDetails { - /** - * The account holder type (personal or business). - */ + /** The account holder type (personal or business). */ public enum AccountHolderTypeEnum { - BUSINESS(String.valueOf("business")), PERSONAL(String.valueOf("personal")); @@ -57,7 +48,7 @@ public enum AccountHolderTypeEnum { private String value; AccountHolderTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -78,7 +69,11 @@ public static AccountHolderTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AccountHolderTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AccountHolderTypeEnum.values())); + LOG.warning( + "AccountHolderTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AccountHolderTypeEnum.values())); return null; } } @@ -89,11 +84,8 @@ public static AccountHolderTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_BANK_ACCOUNT_NUMBER = "bankAccountNumber"; private String bankAccountNumber; - /** - * The bank account type (checking, savings...). - */ + /** The bank account type (checking, savings...). */ public enum BankAccountTypeEnum { - BALANCE(String.valueOf("balance")), CHECKING(String.valueOf("checking")), @@ -113,7 +105,7 @@ public enum BankAccountTypeEnum { private String value; BankAccountTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -134,7 +126,11 @@ public static BankAccountTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("BankAccountTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(BankAccountTypeEnum.values())); + LOG.warning( + "BankAccountTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(BankAccountTypeEnum.values())); return null; } } @@ -148,7 +144,8 @@ public static BankAccountTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; - public static final String JSON_PROPERTY_ENCRYPTED_BANK_ACCOUNT_NUMBER = "encryptedBankAccountNumber"; + public static final String JSON_PROPERTY_ENCRYPTED_BANK_ACCOUNT_NUMBER = + "encryptedBankAccountNumber"; private String encryptedBankAccountNumber; public static final String JSON_PROPERTY_ENCRYPTED_BANK_LOCATION_ID = "encryptedBankLocationId"; @@ -167,11 +164,8 @@ public static BankAccountTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_ID = "transferInstrumentId"; private String transferInstrumentId; - /** - * **ach** - */ + /** **ach** */ public enum TypeEnum { - ACH(String.valueOf("ach")), ACH_PLAID(String.valueOf("ach_plaid")); @@ -181,7 +175,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -202,7 +196,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -210,8 +208,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AchDetails() { - } + public AchDetails() {} /** * The account holder type (personal or business). @@ -226,6 +223,7 @@ public AchDetails accountHolderType(AccountHolderTypeEnum accountHolderType) { /** * The account holder type (personal or business). + * * @return accountHolderType The account holder type (personal or business). */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_TYPE) @@ -258,6 +256,7 @@ public AchDetails bankAccountNumber(String bankAccountNumber) { /** * The bank account number (without separators). + * * @return bankAccountNumber The bank account number (without separators). */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_NUMBER) @@ -290,6 +289,7 @@ public AchDetails bankAccountType(BankAccountTypeEnum bankAccountType) { /** * The bank account type (checking, savings...). + * * @return bankAccountType The bank account type (checking, savings...). */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_TYPE) @@ -312,7 +312,8 @@ public void setBankAccountType(BankAccountTypeEnum bankAccountType) { /** * The bank routing number of the account. The field value is `nil` in most cases. * - * @param bankLocationId The bank routing number of the account. The field value is `nil` in most cases. + * @param bankLocationId The bank routing number of the account. The field value is + * `nil` in most cases. * @return the current {@code AchDetails} instance, allowing for method chaining */ public AchDetails bankLocationId(String bankLocationId) { @@ -322,7 +323,9 @@ public AchDetails bankLocationId(String bankLocationId) { /** * The bank routing number of the account. The field value is `nil` in most cases. - * @return bankLocationId The bank routing number of the account. The field value is `nil` in most cases. + * + * @return bankLocationId The bank routing number of the account. The field value is + * `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_BANK_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -333,7 +336,8 @@ public String getBankLocationId() { /** * The bank routing number of the account. The field value is `nil` in most cases. * - * @param bankLocationId The bank routing number of the account. The field value is `nil` in most cases. + * @param bankLocationId The bank routing number of the account. The field value is + * `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_BANK_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -354,6 +358,7 @@ public AchDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -376,7 +381,8 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { /** * Encrypted bank account number. The bank account number (without separators). * - * @param encryptedBankAccountNumber Encrypted bank account number. The bank account number (without separators). + * @param encryptedBankAccountNumber Encrypted bank account number. The bank account number + * (without separators). * @return the current {@code AchDetails} instance, allowing for method chaining */ public AchDetails encryptedBankAccountNumber(String encryptedBankAccountNumber) { @@ -386,7 +392,9 @@ public AchDetails encryptedBankAccountNumber(String encryptedBankAccountNumber) /** * Encrypted bank account number. The bank account number (without separators). - * @return encryptedBankAccountNumber Encrypted bank account number. The bank account number (without separators). + * + * @return encryptedBankAccountNumber Encrypted bank account number. The bank account number + * (without separators). */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_BANK_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -397,7 +405,8 @@ public String getEncryptedBankAccountNumber() { /** * Encrypted bank account number. The bank account number (without separators). * - * @param encryptedBankAccountNumber Encrypted bank account number. The bank account number (without separators). + * @param encryptedBankAccountNumber Encrypted bank account number. The bank account number + * (without separators). */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_BANK_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -406,9 +415,11 @@ public void setEncryptedBankAccountNumber(String encryptedBankAccountNumber) { } /** - * Encrypted location id. The bank routing number of the account. The field value is `nil` in most cases. + * Encrypted location id. The bank routing number of the account. The field value is + * `nil` in most cases. * - * @param encryptedBankLocationId Encrypted location id. The bank routing number of the account. The field value is `nil` in most cases. + * @param encryptedBankLocationId Encrypted location id. The bank routing number of the account. + * The field value is `nil` in most cases. * @return the current {@code AchDetails} instance, allowing for method chaining */ public AchDetails encryptedBankLocationId(String encryptedBankLocationId) { @@ -417,8 +428,11 @@ public AchDetails encryptedBankLocationId(String encryptedBankLocationId) { } /** - * Encrypted location id. The bank routing number of the account. The field value is `nil` in most cases. - * @return encryptedBankLocationId Encrypted location id. The bank routing number of the account. The field value is `nil` in most cases. + * Encrypted location id. The bank routing number of the account. The field value is + * `nil` in most cases. + * + * @return encryptedBankLocationId Encrypted location id. The bank routing number of the account. + * The field value is `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_BANK_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -427,9 +441,11 @@ public String getEncryptedBankLocationId() { } /** - * Encrypted location id. The bank routing number of the account. The field value is `nil` in most cases. + * Encrypted location id. The bank routing number of the account. The field value is + * `nil` in most cases. * - * @param encryptedBankLocationId Encrypted location id. The bank routing number of the account. The field value is `nil` in most cases. + * @param encryptedBankLocationId Encrypted location id. The bank routing number of the account. + * The field value is `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_BANK_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -438,9 +454,25 @@ public void setEncryptedBankLocationId(String encryptedBankLocationId) { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we + * automatically replace some of them with corresponding Latin characters to meet the FATF + * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter + * Møller is converted to Peter Mller, because banks don't accept 'ø'. After + * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), + * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - + * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details + * don't match the required format, the response returns the error message: 203 'Invalid + * bank account holder name'. * - * @param ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * @param ownerName The name of the bank account holder. If you submit a name with non-Latin + * characters, we automatically replace some of them with corresponding Latin characters to + * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted + * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept + * 'ø'. After replacement, the ownerName must have at least three alphanumeric + * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, + * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - + * allowed. > If provided details don't match the required format, the response returns + * the error message: 203 'Invalid bank account holder name'. * @return the current {@code AchDetails} instance, allowing for method chaining */ public AchDetails ownerName(String ownerName) { @@ -449,8 +481,25 @@ public AchDetails ownerName(String ownerName) { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. - * @return ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we + * automatically replace some of them with corresponding Latin characters to meet the FATF + * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter + * Møller is converted to Peter Mller, because banks don't accept 'ø'. After + * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), + * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - + * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details + * don't match the required format, the response returns the error message: 203 'Invalid + * bank account holder name'. + * + * @return ownerName The name of the bank account holder. If you submit a name with non-Latin + * characters, we automatically replace some of them with corresponding Latin characters to + * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted + * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept + * 'ø'. After replacement, the ownerName must have at least three alphanumeric + * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, + * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - + * allowed. > If provided details don't match the required format, the response returns + * the error message: 203 'Invalid bank account holder name'. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -459,9 +508,25 @@ public String getOwnerName() { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we + * automatically replace some of them with corresponding Latin characters to meet the FATF + * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter + * Møller is converted to Peter Mller, because banks don't accept 'ø'. After + * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), + * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - + * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details + * don't match the required format, the response returns the error message: 203 'Invalid + * bank account holder name'. * - * @param ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * @param ownerName The name of the bank account holder. If you submit a name with non-Latin + * characters, we automatically replace some of them with corresponding Latin characters to + * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted + * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept + * 'ø'. After replacement, the ownerName must have at least three alphanumeric + * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, + * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - + * allowed. > If provided details don't match the required format, the response returns + * the error message: 203 'Invalid bank account holder name'. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -470,13 +535,13 @@ public void setOwnerName(String ownerName) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code AchDetails} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public AchDetails recurringDetailReference(String recurringDetailReference) { @@ -485,8 +550,11 @@ public AchDetails recurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -497,12 +565,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -512,9 +580,11 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code AchDetails} instance, allowing for method chaining */ public AchDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -523,8 +593,11 @@ public AchDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -533,9 +606,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -544,9 +619,11 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { } /** - * The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. + * The unique identifier of your user's verified transfer instrument, which you can use to top + * up their balance accounts. * - * @param transferInstrumentId The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. + * @param transferInstrumentId The unique identifier of your user's verified transfer + * instrument, which you can use to top up their balance accounts. * @return the current {@code AchDetails} instance, allowing for method chaining */ public AchDetails transferInstrumentId(String transferInstrumentId) { @@ -555,8 +632,11 @@ public AchDetails transferInstrumentId(String transferInstrumentId) { } /** - * The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. - * @return transferInstrumentId The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. + * The unique identifier of your user's verified transfer instrument, which you can use to top + * up their balance accounts. + * + * @return transferInstrumentId The unique identifier of your user's verified transfer + * instrument, which you can use to top up their balance accounts. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -565,9 +645,11 @@ public String getTransferInstrumentId() { } /** - * The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. + * The unique identifier of your user's verified transfer instrument, which you can use to top + * up their balance accounts. * - * @param transferInstrumentId The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. + * @param transferInstrumentId The unique identifier of your user's verified transfer + * instrument, which you can use to top up their balance accounts. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -588,6 +670,7 @@ public AchDetails type(TypeEnum type) { /** * **ach** + * * @return type **ach** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -607,9 +690,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this AchDetails object is equal to o. - */ + /** Return true if this AchDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -619,23 +700,35 @@ public boolean equals(Object o) { return false; } AchDetails achDetails = (AchDetails) o; - return Objects.equals(this.accountHolderType, achDetails.accountHolderType) && - Objects.equals(this.bankAccountNumber, achDetails.bankAccountNumber) && - Objects.equals(this.bankAccountType, achDetails.bankAccountType) && - Objects.equals(this.bankLocationId, achDetails.bankLocationId) && - Objects.equals(this.checkoutAttemptId, achDetails.checkoutAttemptId) && - Objects.equals(this.encryptedBankAccountNumber, achDetails.encryptedBankAccountNumber) && - Objects.equals(this.encryptedBankLocationId, achDetails.encryptedBankLocationId) && - Objects.equals(this.ownerName, achDetails.ownerName) && - Objects.equals(this.recurringDetailReference, achDetails.recurringDetailReference) && - Objects.equals(this.storedPaymentMethodId, achDetails.storedPaymentMethodId) && - Objects.equals(this.transferInstrumentId, achDetails.transferInstrumentId) && - Objects.equals(this.type, achDetails.type); + return Objects.equals(this.accountHolderType, achDetails.accountHolderType) + && Objects.equals(this.bankAccountNumber, achDetails.bankAccountNumber) + && Objects.equals(this.bankAccountType, achDetails.bankAccountType) + && Objects.equals(this.bankLocationId, achDetails.bankLocationId) + && Objects.equals(this.checkoutAttemptId, achDetails.checkoutAttemptId) + && Objects.equals(this.encryptedBankAccountNumber, achDetails.encryptedBankAccountNumber) + && Objects.equals(this.encryptedBankLocationId, achDetails.encryptedBankLocationId) + && Objects.equals(this.ownerName, achDetails.ownerName) + && Objects.equals(this.recurringDetailReference, achDetails.recurringDetailReference) + && Objects.equals(this.storedPaymentMethodId, achDetails.storedPaymentMethodId) + && Objects.equals(this.transferInstrumentId, achDetails.transferInstrumentId) + && Objects.equals(this.type, achDetails.type); } @Override public int hashCode() { - return Objects.hash(accountHolderType, bankAccountNumber, bankAccountType, bankLocationId, checkoutAttemptId, encryptedBankAccountNumber, encryptedBankLocationId, ownerName, recurringDetailReference, storedPaymentMethodId, transferInstrumentId, type); + return Objects.hash( + accountHolderType, + bankAccountNumber, + bankAccountType, + bankLocationId, + checkoutAttemptId, + encryptedBankAccountNumber, + encryptedBankLocationId, + ownerName, + recurringDetailReference, + storedPaymentMethodId, + transferInstrumentId, + type); } @Override @@ -647,20 +740,29 @@ public String toString() { sb.append(" bankAccountType: ").append(toIndentedString(bankAccountType)).append("\n"); sb.append(" bankLocationId: ").append(toIndentedString(bankLocationId)).append("\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); - sb.append(" encryptedBankAccountNumber: ").append(toIndentedString(encryptedBankAccountNumber)).append("\n"); - sb.append(" encryptedBankLocationId: ").append(toIndentedString(encryptedBankLocationId)).append("\n"); + sb.append(" encryptedBankAccountNumber: ") + .append(toIndentedString(encryptedBankAccountNumber)) + .append("\n"); + sb.append(" encryptedBankLocationId: ") + .append(toIndentedString(encryptedBankLocationId)) + .append("\n"); sb.append(" ownerName: ").append(toIndentedString(ownerName)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); - sb.append(" transferInstrumentId: ").append(toIndentedString(transferInstrumentId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); + sb.append(" transferInstrumentId: ") + .append(toIndentedString(transferInstrumentId)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -669,7 +771,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AchDetails given an JSON string * * @param jsonString JSON string @@ -679,11 +781,12 @@ private String toIndentedString(Object o) { public static AchDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AchDetails.class); } -/** - * Convert an instance of AchDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AchDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalData3DSecure.java b/src/main/java/com/adyen/model/checkout/AdditionalData3DSecure.java index 0ead93c5b..f70e4ecfc 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalData3DSecure.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalData3DSecure.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * AdditionalData3DSecure - */ +/** AdditionalData3DSecure */ @JsonPropertyOrder({ AdditionalData3DSecure.JSON_PROPERTY_ALLOW3_D_S2, AdditionalData3DSecure.JSON_PROPERTY_CHALLENGE_WINDOW_SIZE, @@ -35,17 +30,18 @@ AdditionalData3DSecure.JSON_PROPERTY_SCA_EXEMPTION, AdditionalData3DSecure.JSON_PROPERTY_THREE_D_S_VERSION }) - public class AdditionalData3DSecure { public static final String JSON_PROPERTY_ALLOW3_D_S2 = "allow3DS2"; - @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.threeDSRequestData.nativeThreeDS` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use + // `authenticationData.threeDSRequestData.nativeThreeDS` instead. private String allow3DS2; /** - * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * + * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size + * of 600x400 * **05** - Fullscreen */ public enum ChallengeWindowSizeEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -61,7 +57,7 @@ public enum ChallengeWindowSizeEnum { private String value; ChallengeWindowSizeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -82,7 +78,11 @@ public static ChallengeWindowSizeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ChallengeWindowSizeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChallengeWindowSizeEnum.values())); + LOG.warning( + "ChallengeWindowSizeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ChallengeWindowSizeEnum.values())); return null; } } @@ -91,7 +91,8 @@ public static ChallengeWindowSizeEnum fromValue(String value) { private ChallengeWindowSizeEnum challengeWindowSize; public static final String JSON_PROPERTY_EXECUTE_THREE_D = "executeThreeD"; - @Deprecated // deprecated since Adyen Checkout API v69: Use [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead + @Deprecated // deprecated since Adyen Checkout API v69: Use + // [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead private String executeThreeD; public static final String JSON_PROPERTY_MPI_IMPLEMENTATION_TYPE = "mpiImplementationType"; @@ -103,30 +104,76 @@ public static ChallengeWindowSizeEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_VERSION = "threeDSVersion"; private String threeDSVersion; - public AdditionalData3DSecure() { - } + public AdditionalData3DSecure() {} /** - * Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen selects redirect or native authentication based on your configuration to optimize authorization rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication instead, based on your configuration. + * Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. + * Send this parameter when you are using `/payments` endpoint with any of our [native + * 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This + * parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if + * you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or + * send the `executeThreeD` parameter. Possible values: * **true** - Ready to support + * native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure + * 2. Adyen selects redirect or native authentication based on your configuration to optimize + * authorization rates and improve the shopper's experience. * **false** – Not ready to + * support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication + * instead, based on your configuration. * - * @param allow3DS2 Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen selects redirect or native authentication based on your configuration to optimize authorization rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication instead, based on your configuration. + * @param allow3DS2 Indicates if you are able to process 3D Secure 2 transactions natively on your + * payment page. Send this parameter when you are using `/payments` endpoint with + * any of our [native 3D Secure 2 + * solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This + * parameter only indicates readiness to support native 3D Secure 2 authentication. To specify + * if you _want_ to perform 3D Secure, use [Dynamic 3D + * Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` + * parameter. Possible values: * **true** - Ready to support native 3D Secure 2 + * authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen + * selects redirect or native authentication based on your configuration to optimize + * authorization rates and improve the shopper's experience. * **false** – Not ready to + * support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication + * instead, based on your configuration. * @return the current {@code AdditionalData3DSecure} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v69 - * Use `authenticationData.threeDSRequestData.nativeThreeDS` instead. + * @deprecated since Adyen Checkout API v69 Use + * `authenticationData.threeDSRequestData.nativeThreeDS` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.threeDSRequestData.nativeThreeDS` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use + // `authenticationData.threeDSRequestData.nativeThreeDS` instead. public AdditionalData3DSecure allow3DS2(String allow3DS2) { this.allow3DS2 = allow3DS2; return this; } /** - * Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen selects redirect or native authentication based on your configuration to optimize authorization rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication instead, based on your configuration. - * @return allow3DS2 Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen selects redirect or native authentication based on your configuration to optimize authorization rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication instead, based on your configuration. - * @deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.threeDSRequestData.nativeThreeDS` instead. + * Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. + * Send this parameter when you are using `/payments` endpoint with any of our [native + * 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This + * parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if + * you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or + * send the `executeThreeD` parameter. Possible values: * **true** - Ready to support + * native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure + * 2. Adyen selects redirect or native authentication based on your configuration to optimize + * authorization rates and improve the shopper's experience. * **false** – Not ready to + * support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication + * instead, based on your configuration. + * + * @return allow3DS2 Indicates if you are able to process 3D Secure 2 transactions natively on + * your payment page. Send this parameter when you are using `/payments` endpoint + * with any of our [native 3D Secure 2 + * solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This + * parameter only indicates readiness to support native 3D Secure 2 authentication. To specify + * if you _want_ to perform 3D Secure, use [Dynamic 3D + * Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` + * parameter. Possible values: * **true** - Ready to support native 3D Secure 2 + * authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen + * selects redirect or native authentication based on your configuration to optimize + * authorization rates and improve the shopper's experience. * **false** – Not ready to + * support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication + * instead, based on your configuration. + * @deprecated // deprecated since Adyen Checkout API v69: Use + * `authenticationData.threeDSRequestData.nativeThreeDS` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.threeDSRequestData.nativeThreeDS` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use + // `authenticationData.threeDSRequestData.nativeThreeDS` instead. @JsonProperty(JSON_PROPERTY_ALLOW3_D_S2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAllow3DS2() { @@ -134,14 +181,36 @@ public String getAllow3DS2() { } /** - * Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen selects redirect or native authentication based on your configuration to optimize authorization rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication instead, based on your configuration. - * - * @param allow3DS2 Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen selects redirect or native authentication based on your configuration to optimize authorization rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication instead, based on your configuration. + * Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. + * Send this parameter when you are using `/payments` endpoint with any of our [native + * 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This + * parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if + * you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or + * send the `executeThreeD` parameter. Possible values: * **true** - Ready to support + * native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure + * 2. Adyen selects redirect or native authentication based on your configuration to optimize + * authorization rates and improve the shopper's experience. * **false** – Not ready to + * support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication + * instead, based on your configuration. * - * @deprecated since Adyen Checkout API v69 - * Use `authenticationData.threeDSRequestData.nativeThreeDS` instead. + * @param allow3DS2 Indicates if you are able to process 3D Secure 2 transactions natively on your + * payment page. Send this parameter when you are using `/payments` endpoint with + * any of our [native 3D Secure 2 + * solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This + * parameter only indicates readiness to support native 3D Secure 2 authentication. To specify + * if you _want_ to perform 3D Secure, use [Dynamic 3D + * Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` + * parameter. Possible values: * **true** - Ready to support native 3D Secure 2 + * authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen + * selects redirect or native authentication based on your configuration to optimize + * authorization rates and improve the shopper's experience. * **false** – Not ready to + * support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication + * instead, based on your configuration. + * @deprecated since Adyen Checkout API v69 Use + * `authenticationData.threeDSRequestData.nativeThreeDS` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.threeDSRequestData.nativeThreeDS` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use + // `authenticationData.threeDSRequestData.nativeThreeDS` instead. @JsonProperty(JSON_PROPERTY_ALLOW3_D_S2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllow3DS2(String allow3DS2) { @@ -149,9 +218,13 @@ public void setAllow3DS2(String allow3DS2) { } /** - * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * + * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size + * of 600x400 * **05** - Fullscreen * - * @param challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + * @param challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the + * cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** + * - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen * @return the current {@code AdditionalData3DSecure} instance, allowing for method chaining */ public AdditionalData3DSecure challengeWindowSize(ChallengeWindowSizeEnum challengeWindowSize) { @@ -160,8 +233,13 @@ public AdditionalData3DSecure challengeWindowSize(ChallengeWindowSizeEnum challe } /** - * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen - * @return challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * + * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size + * of 600x400 * **05** - Fullscreen + * + * @return challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the + * cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** + * - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen */ @JsonProperty(JSON_PROPERTY_CHALLENGE_WINDOW_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -170,9 +248,13 @@ public ChallengeWindowSizeEnum getChallengeWindowSize() { } /** - * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * + * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size + * of 600x400 * **05** - Fullscreen * - * @param challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + * @param challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the + * cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** + * - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen */ @JsonProperty(JSON_PROPERTY_CHALLENGE_WINDOW_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,26 +263,49 @@ public void setChallengeWindowSize(ChallengeWindowSizeEnum challengeWindowSize) } /** - * Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. + * Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, + * you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for + * applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** + * – Don't perform 3D Secure authentication. Note that this setting results in refusals if the + * issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. * - * @param executeThreeD Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. + * @param executeThreeD Indicates if you want to perform 3D Secure authentication on a + * transaction. > Alternatively, you can use [Dynamic 3D + * Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. + * Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't + * perform 3D Secure authentication. Note that this setting results in refusals if the issuer + * mandates 3D Secure because of the PSD2 directive or other, national regulations. * @return the current {@code AdditionalData3DSecure} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v69 - * Use [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead + * @deprecated since Adyen Checkout API v69 Use + * [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) + * instead */ - @Deprecated // deprecated since Adyen Checkout API v69: Use [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead + @Deprecated // deprecated since Adyen Checkout API v69: Use + // [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead public AdditionalData3DSecure executeThreeD(String executeThreeD) { this.executeThreeD = executeThreeD; return this; } /** - * Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. - * @return executeThreeD Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. - * @deprecated // deprecated since Adyen Checkout API v69: Use [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead + * Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, + * you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for + * applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** + * – Don't perform 3D Secure authentication. Note that this setting results in refusals if the + * issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. + * + * @return executeThreeD Indicates if you want to perform 3D Secure authentication on a + * transaction. > Alternatively, you can use [Dynamic 3D + * Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. + * Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't + * perform 3D Secure authentication. Note that this setting results in refusals if the issuer + * mandates 3D Secure because of the PSD2 directive or other, national regulations. + * @deprecated // deprecated since Adyen Checkout API v69: Use + * [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) + * instead */ - @Deprecated // deprecated since Adyen Checkout API v69: Use [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead + @Deprecated // deprecated since Adyen Checkout API v69: Use + // [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead @JsonProperty(JSON_PROPERTY_EXECUTE_THREE_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getExecuteThreeD() { @@ -208,14 +313,24 @@ public String getExecuteThreeD() { } /** - * Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. - * - * @param executeThreeD Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. + * Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, + * you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for + * applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** + * – Don't perform 3D Secure authentication. Note that this setting results in refusals if the + * issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. * - * @deprecated since Adyen Checkout API v69 - * Use [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead + * @param executeThreeD Indicates if you want to perform 3D Secure authentication on a + * transaction. > Alternatively, you can use [Dynamic 3D + * Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. + * Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't + * perform 3D Secure authentication. Note that this setting results in refusals if the issuer + * mandates 3D Secure because of the PSD2 directive or other, national regulations. + * @deprecated since Adyen Checkout API v69 Use + * [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) + * instead */ - @Deprecated // deprecated since Adyen Checkout API v69: Use [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead + @Deprecated // deprecated since Adyen Checkout API v69: Use + // [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead @JsonProperty(JSON_PROPERTY_EXECUTE_THREE_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExecuteThreeD(String executeThreeD) { @@ -235,6 +350,7 @@ public AdditionalData3DSecure mpiImplementationType(String mpiImplementationType /** * In case of Secure+, this field must be set to **CUPSecurePlus**. + * * @return mpiImplementationType In case of Secure+, this field must be set to **CUPSecurePlus**. */ @JsonProperty(JSON_PROPERTY_MPI_IMPLEMENTATION_TYPE) @@ -255,9 +371,15 @@ public void setMpiImplementationType(String mpiImplementationType) { } /** - * Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * Indicates the [exemption + * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) + * that you want to request for the transaction. Possible values: * **lowValue** * + * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * - * @param scaExemption Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * @param scaExemption Indicates the [exemption + * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) + * that you want to request for the transaction. Possible values: * **lowValue** * + * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * @return the current {@code AdditionalData3DSecure} instance, allowing for method chaining */ public AdditionalData3DSecure scaExemption(String scaExemption) { @@ -266,8 +388,15 @@ public AdditionalData3DSecure scaExemption(String scaExemption) { } /** - * Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** - * @return scaExemption Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * Indicates the [exemption + * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) + * that you want to request for the transaction. Possible values: * **lowValue** * + * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * + * @return scaExemption Indicates the [exemption + * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) + * that you want to request for the transaction. Possible values: * **lowValue** * + * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** */ @JsonProperty(JSON_PROPERTY_SCA_EXEMPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -276,9 +405,15 @@ public String getScaExemption() { } /** - * Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * Indicates the [exemption + * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) + * that you want to request for the transaction. Possible values: * **lowValue** * + * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * - * @param scaExemption Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * @param scaExemption Indicates the [exemption + * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) + * that you want to request for the transaction. Possible values: * **lowValue** * + * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** */ @JsonProperty(JSON_PROPERTY_SCA_EXEMPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -287,9 +422,23 @@ public void setScaExemption(String scaExemption) { } /** - * Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen's Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. * If you the BIN is not enrolled, you will receive an error. + * Indicates your preference for the 3D Secure version. > If you use this parameter, you + * override the checks from Adyen's Authentication Engine. We recommend to use this field only + * if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure + * version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support + * version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or + * 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply + * the fallback policy configured in your account. * If you the BIN is not enrolled, you will + * receive an error. * - * @param threeDSVersion Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen's Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. * If you the BIN is not enrolled, you will receive an error. + * @param threeDSVersion Indicates your preference for the 3D Secure version. > If you use this + * parameter, you override the checks from Adyen's Authentication Engine. We recommend to + * use this field only if you have an extensive knowledge of 3D Secure. Possible values: * + * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If + * the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules + * apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in + * the `ARes`, we will apply the fallback policy configured in your account. * If + * you the BIN is not enrolled, you will receive an error. * @return the current {@code AdditionalData3DSecure} instance, allowing for method chaining */ public AdditionalData3DSecure threeDSVersion(String threeDSVersion) { @@ -298,8 +447,23 @@ public AdditionalData3DSecure threeDSVersion(String threeDSVersion) { } /** - * Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen's Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. * If you the BIN is not enrolled, you will receive an error. - * @return threeDSVersion Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen's Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. * If you the BIN is not enrolled, you will receive an error. + * Indicates your preference for the 3D Secure version. > If you use this parameter, you + * override the checks from Adyen's Authentication Engine. We recommend to use this field only + * if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure + * version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support + * version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or + * 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply + * the fallback policy configured in your account. * If you the BIN is not enrolled, you will + * receive an error. + * + * @return threeDSVersion Indicates your preference for the 3D Secure version. > If you use + * this parameter, you override the checks from Adyen's Authentication Engine. We + * recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible + * values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version + * 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The + * following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative + * `transStatus` in the `ARes`, we will apply the fallback policy + * configured in your account. * If you the BIN is not enrolled, you will receive an error. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -308,9 +472,23 @@ public String getThreeDSVersion() { } /** - * Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen's Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. * If you the BIN is not enrolled, you will receive an error. + * Indicates your preference for the 3D Secure version. > If you use this parameter, you + * override the checks from Adyen's Authentication Engine. We recommend to use this field only + * if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure + * version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support + * version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or + * 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply + * the fallback policy configured in your account. * If you the BIN is not enrolled, you will + * receive an error. * - * @param threeDSVersion Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen's Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. * If you the BIN is not enrolled, you will receive an error. + * @param threeDSVersion Indicates your preference for the 3D Secure version. > If you use this + * parameter, you override the checks from Adyen's Authentication Engine. We recommend to + * use this field only if you have an extensive knowledge of 3D Secure. Possible values: * + * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If + * the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules + * apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in + * the `ARes`, we will apply the fallback policy configured in your account. * If + * you the BIN is not enrolled, you will receive an error. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -318,9 +496,7 @@ public void setThreeDSVersion(String threeDSVersion) { this.threeDSVersion = threeDSVersion; } - /** - * Return true if this AdditionalData3DSecure object is equal to o. - */ + /** Return true if this AdditionalData3DSecure object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -330,17 +506,23 @@ public boolean equals(Object o) { return false; } AdditionalData3DSecure additionalData3DSecure = (AdditionalData3DSecure) o; - return Objects.equals(this.allow3DS2, additionalData3DSecure.allow3DS2) && - Objects.equals(this.challengeWindowSize, additionalData3DSecure.challengeWindowSize) && - Objects.equals(this.executeThreeD, additionalData3DSecure.executeThreeD) && - Objects.equals(this.mpiImplementationType, additionalData3DSecure.mpiImplementationType) && - Objects.equals(this.scaExemption, additionalData3DSecure.scaExemption) && - Objects.equals(this.threeDSVersion, additionalData3DSecure.threeDSVersion); + return Objects.equals(this.allow3DS2, additionalData3DSecure.allow3DS2) + && Objects.equals(this.challengeWindowSize, additionalData3DSecure.challengeWindowSize) + && Objects.equals(this.executeThreeD, additionalData3DSecure.executeThreeD) + && Objects.equals(this.mpiImplementationType, additionalData3DSecure.mpiImplementationType) + && Objects.equals(this.scaExemption, additionalData3DSecure.scaExemption) + && Objects.equals(this.threeDSVersion, additionalData3DSecure.threeDSVersion); } @Override public int hashCode() { - return Objects.hash(allow3DS2, challengeWindowSize, executeThreeD, mpiImplementationType, scaExemption, threeDSVersion); + return Objects.hash( + allow3DS2, + challengeWindowSize, + executeThreeD, + mpiImplementationType, + scaExemption, + threeDSVersion); } @Override @@ -348,9 +530,13 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalData3DSecure {\n"); sb.append(" allow3DS2: ").append(toIndentedString(allow3DS2)).append("\n"); - sb.append(" challengeWindowSize: ").append(toIndentedString(challengeWindowSize)).append("\n"); + sb.append(" challengeWindowSize: ") + .append(toIndentedString(challengeWindowSize)) + .append("\n"); sb.append(" executeThreeD: ").append(toIndentedString(executeThreeD)).append("\n"); - sb.append(" mpiImplementationType: ").append(toIndentedString(mpiImplementationType)).append("\n"); + sb.append(" mpiImplementationType: ") + .append(toIndentedString(mpiImplementationType)) + .append("\n"); sb.append(" scaExemption: ").append(toIndentedString(scaExemption)).append("\n"); sb.append(" threeDSVersion: ").append(toIndentedString(threeDSVersion)).append("\n"); sb.append("}"); @@ -358,8 +544,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -368,21 +553,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalData3DSecure given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalData3DSecure - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalData3DSecure + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalData3DSecure */ public static AdditionalData3DSecure fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalData3DSecure.class); } -/** - * Convert an instance of AdditionalData3DSecure to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalData3DSecure to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataAirline.java b/src/main/java/com/adyen/model/checkout/AdditionalDataAirline.java index df94ed14c..5e580f112 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataAirline.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataAirline.java @@ -2,31 +2,22 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AdditionalDataAirline - */ +/** AdditionalDataAirline */ @JsonPropertyOrder({ AdditionalDataAirline.JSON_PROPERTY_AIRLINE_AGENCY_INVOICE_NUMBER, AdditionalDataAirline.JSON_PROPERTY_AIRLINE_AGENCY_PLAN_NAME, @@ -58,9 +49,9 @@ AdditionalDataAirline.JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_CODE, AdditionalDataAirline.JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_NAME }) - public class AdditionalDataAirline { - public static final String JSON_PROPERTY_AIRLINE_AGENCY_INVOICE_NUMBER = "airline.agency_invoice_number"; + public static final String JSON_PROPERTY_AIRLINE_AGENCY_INVOICE_NUMBER = + "airline.agency_invoice_number"; private String airlineAgencyInvoiceNumber; public static final String JSON_PROPERTY_AIRLINE_AGENCY_PLAN_NAME = "airline.agency_plan_name"; @@ -69,16 +60,19 @@ public class AdditionalDataAirline { public static final String JSON_PROPERTY_AIRLINE_AIRLINE_CODE = "airline.airline_code"; private String airlineAirlineCode; - public static final String JSON_PROPERTY_AIRLINE_AIRLINE_DESIGNATOR_CODE = "airline.airline_designator_code"; + public static final String JSON_PROPERTY_AIRLINE_AIRLINE_DESIGNATOR_CODE = + "airline.airline_designator_code"; private String airlineAirlineDesignatorCode; public static final String JSON_PROPERTY_AIRLINE_BOARDING_FEE = "airline.boarding_fee"; private String airlineBoardingFee; - public static final String JSON_PROPERTY_AIRLINE_COMPUTERIZED_RESERVATION_SYSTEM = "airline.computerized_reservation_system"; + public static final String JSON_PROPERTY_AIRLINE_COMPUTERIZED_RESERVATION_SYSTEM = + "airline.computerized_reservation_system"; private String airlineComputerizedReservationSystem; - public static final String JSON_PROPERTY_AIRLINE_CUSTOMER_REFERENCE_NUMBER = "airline.customer_reference_number"; + public static final String JSON_PROPERTY_AIRLINE_CUSTOMER_REFERENCE_NUMBER = + "airline.customer_reference_number"; private String airlineCustomerReferenceNumber; public static final String JSON_PROPERTY_AIRLINE_DOCUMENT_TYPE = "airline.document_type"; @@ -93,67 +87,82 @@ public class AdditionalDataAirline { public static final String JSON_PROPERTY_AIRLINE_LEG_CARRIER_CODE = "airline.leg.carrier_code"; private String airlineLegCarrierCode; - public static final String JSON_PROPERTY_AIRLINE_LEG_CLASS_OF_TRAVEL = "airline.leg.class_of_travel"; + public static final String JSON_PROPERTY_AIRLINE_LEG_CLASS_OF_TRAVEL = + "airline.leg.class_of_travel"; private String airlineLegClassOfTravel; - public static final String JSON_PROPERTY_AIRLINE_LEG_DATE_OF_TRAVEL = "airline.leg.date_of_travel"; + public static final String JSON_PROPERTY_AIRLINE_LEG_DATE_OF_TRAVEL = + "airline.leg.date_of_travel"; private String airlineLegDateOfTravel; - public static final String JSON_PROPERTY_AIRLINE_LEG_DEPART_AIRPORT = "airline.leg.depart_airport"; + public static final String JSON_PROPERTY_AIRLINE_LEG_DEPART_AIRPORT = + "airline.leg.depart_airport"; private String airlineLegDepartAirport; public static final String JSON_PROPERTY_AIRLINE_LEG_DEPART_TAX = "airline.leg.depart_tax"; private String airlineLegDepartTax; - public static final String JSON_PROPERTY_AIRLINE_LEG_DESTINATION_CODE = "airline.leg.destination_code"; + public static final String JSON_PROPERTY_AIRLINE_LEG_DESTINATION_CODE = + "airline.leg.destination_code"; private String airlineLegDestinationCode; - public static final String JSON_PROPERTY_AIRLINE_LEG_FARE_BASE_CODE = "airline.leg.fare_base_code"; + public static final String JSON_PROPERTY_AIRLINE_LEG_FARE_BASE_CODE = + "airline.leg.fare_base_code"; private String airlineLegFareBaseCode; public static final String JSON_PROPERTY_AIRLINE_LEG_FLIGHT_NUMBER = "airline.leg.flight_number"; private String airlineLegFlightNumber; - public static final String JSON_PROPERTY_AIRLINE_LEG_STOP_OVER_CODE = "airline.leg.stop_over_code"; + public static final String JSON_PROPERTY_AIRLINE_LEG_STOP_OVER_CODE = + "airline.leg.stop_over_code"; private String airlineLegStopOverCode; - public static final String JSON_PROPERTY_AIRLINE_PASSENGER_DATE_OF_BIRTH = "airline.passenger.date_of_birth"; + public static final String JSON_PROPERTY_AIRLINE_PASSENGER_DATE_OF_BIRTH = + "airline.passenger.date_of_birth"; private String airlinePassengerDateOfBirth; - public static final String JSON_PROPERTY_AIRLINE_PASSENGER_FIRST_NAME = "airline.passenger.first_name"; + public static final String JSON_PROPERTY_AIRLINE_PASSENGER_FIRST_NAME = + "airline.passenger.first_name"; private String airlinePassengerFirstName; - public static final String JSON_PROPERTY_AIRLINE_PASSENGER_LAST_NAME = "airline.passenger.last_name"; + public static final String JSON_PROPERTY_AIRLINE_PASSENGER_LAST_NAME = + "airline.passenger.last_name"; private String airlinePassengerLastName; - public static final String JSON_PROPERTY_AIRLINE_PASSENGER_PHONE_NUMBER = "airline.passenger.phone_number"; + public static final String JSON_PROPERTY_AIRLINE_PASSENGER_PHONE_NUMBER = + "airline.passenger.phone_number"; private String airlinePassengerPhoneNumber; - public static final String JSON_PROPERTY_AIRLINE_PASSENGER_TRAVELLER_TYPE = "airline.passenger.traveller_type"; + public static final String JSON_PROPERTY_AIRLINE_PASSENGER_TRAVELLER_TYPE = + "airline.passenger.traveller_type"; private String airlinePassengerTravellerType; public static final String JSON_PROPERTY_AIRLINE_PASSENGER_NAME = "airline.passenger_name"; private String airlinePassengerName; - public static final String JSON_PROPERTY_AIRLINE_TICKET_ISSUE_ADDRESS = "airline.ticket_issue_address"; + public static final String JSON_PROPERTY_AIRLINE_TICKET_ISSUE_ADDRESS = + "airline.ticket_issue_address"; private String airlineTicketIssueAddress; public static final String JSON_PROPERTY_AIRLINE_TICKET_NUMBER = "airline.ticket_number"; private String airlineTicketNumber; - public static final String JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_CODE = "airline.travel_agency_code"; + public static final String JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_CODE = + "airline.travel_agency_code"; private String airlineTravelAgencyCode; - public static final String JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_NAME = "airline.travel_agency_name"; + public static final String JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_NAME = + "airline.travel_agency_name"; private String airlineTravelAgencyName; - public AdditionalDataAirline() { - } + public AdditionalDataAirline() {} /** - * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters + * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 + * character * maxLength: 6 characters * - * @param airlineAgencyInvoiceNumber The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters + * @param airlineAgencyInvoiceNumber The reference number for the invoice, issued by the agency. * + * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineAgencyInvoiceNumber(String airlineAgencyInvoiceNumber) { @@ -162,8 +171,11 @@ public AdditionalDataAirline airlineAgencyInvoiceNumber(String airlineAgencyInvo } /** - * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters - * @return airlineAgencyInvoiceNumber The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters + * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 + * character * maxLength: 6 characters + * + * @return airlineAgencyInvoiceNumber The reference number for the invoice, issued by the agency. + * * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_AGENCY_INVOICE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,9 +184,11 @@ public String getAirlineAgencyInvoiceNumber() { } /** - * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters + * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 + * character * maxLength: 6 characters * - * @param airlineAgencyInvoiceNumber The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters + * @param airlineAgencyInvoiceNumber The reference number for the invoice, issued by the agency. * + * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_AGENCY_INVOICE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,9 +197,11 @@ public void setAirlineAgencyInvoiceNumber(String airlineAgencyInvoiceNumber) { } /** - * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters + * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: + * 2 characters * - * @param airlineAgencyPlanName The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters + * @param airlineAgencyPlanName The two-letter agency plan identifier. * Encoding: ASCII * + * minLength: 2 characters * maxLength: 2 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineAgencyPlanName(String airlineAgencyPlanName) { @@ -194,8 +210,11 @@ public AdditionalDataAirline airlineAgencyPlanName(String airlineAgencyPlanName) } /** - * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters - * @return airlineAgencyPlanName The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters + * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: + * 2 characters + * + * @return airlineAgencyPlanName The two-letter agency plan identifier. * Encoding: ASCII * + * minLength: 2 characters * maxLength: 2 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_AGENCY_PLAN_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,9 +223,11 @@ public String getAirlineAgencyPlanName() { } /** - * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters + * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: + * 2 characters * - * @param airlineAgencyPlanName The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters + * @param airlineAgencyPlanName The two-letter agency plan identifier. * Encoding: ASCII * + * minLength: 2 characters * maxLength: 2 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_AGENCY_PLAN_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -215,9 +236,15 @@ public void setAirlineAgencyPlanName(String airlineAgencyPlanName) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that + * identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 + * * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all + * zeros. * - * @param airlineAirlineCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * @param airlineAirlineCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit + * accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code + * (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must + * not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineAirlineCode(String airlineAirlineCode) { @@ -226,8 +253,15 @@ public AdditionalDataAirline airlineAirlineCode(String airlineAirlineCode) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. - * @return airlineAirlineCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that + * identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 + * * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all + * zeros. + * + * @return airlineAirlineCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit + * accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code + * (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must + * not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_AIRLINE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -236,9 +270,15 @@ public String getAirlineAirlineCode() { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that + * identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 + * * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all + * zeros. * - * @param airlineAirlineCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * @param airlineAirlineCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit + * accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code + * (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must + * not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_AIRLINE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -247,9 +287,14 @@ public void setAirlineAirlineCode(String airlineAirlineCode) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that + * identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * + * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineAirlineDesignatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * @param airlineAirlineDesignatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) + * 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: + * KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces + * * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineAirlineDesignatorCode(String airlineAirlineDesignatorCode) { @@ -258,8 +303,14 @@ public AdditionalDataAirline airlineAirlineDesignatorCode(String airlineAirlineD } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. - * @return airlineAirlineDesignatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that + * identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * + * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * + * @return airlineAirlineDesignatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) + * 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: + * KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces + * * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_AIRLINE_DESIGNATOR_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -268,9 +319,14 @@ public String getAirlineAirlineDesignatorCode() { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that + * identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * + * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineAirlineDesignatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * @param airlineAirlineDesignatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) + * 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: + * KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces + * * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_AIRLINE_DESIGNATOR_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -279,9 +335,13 @@ public void setAirlineAirlineDesignatorCode(String airlineAirlineDesignatorCode) } /** - * The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 18 characters + * The amount charged for boarding the plane, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * + * minLength: 1 character * maxLength: 18 characters * - * @param airlineBoardingFee The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 18 characters + * @param airlineBoardingFee The amount charged for boarding the plane, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * + * minLength: 1 character * maxLength: 18 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineBoardingFee(String airlineBoardingFee) { @@ -290,8 +350,13 @@ public AdditionalDataAirline airlineBoardingFee(String airlineBoardingFee) { } /** - * The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 18 characters - * @return airlineBoardingFee The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 18 characters + * The amount charged for boarding the plane, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * + * minLength: 1 character * maxLength: 18 characters + * + * @return airlineBoardingFee The amount charged for boarding the plane, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * + * minLength: 1 character * maxLength: 18 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_BOARDING_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -300,9 +365,13 @@ public String getAirlineBoardingFee() { } /** - * The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 18 characters + * The amount charged for boarding the plane, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * + * minLength: 1 character * maxLength: 18 characters * - * @param airlineBoardingFee The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 18 characters + * @param airlineBoardingFee The amount charged for boarding the plane, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * + * minLength: 1 character * maxLength: 18 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_BOARDING_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -311,19 +380,31 @@ public void setAirlineBoardingFee(String airlineBoardingFee) { } /** - * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters + * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the + * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 + * characters * - * @param airlineComputerizedReservationSystem The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters + * @param airlineComputerizedReservationSystem The + * [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the + * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * + * maxLength: 4 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ - public AdditionalDataAirline airlineComputerizedReservationSystem(String airlineComputerizedReservationSystem) { + public AdditionalDataAirline airlineComputerizedReservationSystem( + String airlineComputerizedReservationSystem) { this.airlineComputerizedReservationSystem = airlineComputerizedReservationSystem; return this; } /** - * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters - * @return airlineComputerizedReservationSystem The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters + * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the + * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 + * characters + * + * @return airlineComputerizedReservationSystem The + * [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the + * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * + * maxLength: 4 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_COMPUTERIZED_RESERVATION_SYSTEM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -332,9 +413,14 @@ public String getAirlineComputerizedReservationSystem() { } /** - * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters + * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the + * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 + * characters * - * @param airlineComputerizedReservationSystem The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters + * @param airlineComputerizedReservationSystem The + * [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the + * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * + * maxLength: 4 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_COMPUTERIZED_RESERVATION_SYSTEM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -343,19 +429,29 @@ public void setAirlineComputerizedReservationSystem(String airlineComputerizedRe } /** - * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not be all spaces + * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If + * you send more than 20 characters, the customer reference number is truncated * Must not be all + * spaces * - * @param airlineCustomerReferenceNumber The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not be all spaces + * @param airlineCustomerReferenceNumber The alphanumeric customer reference number. * Encoding: + * ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer + * reference number is truncated * Must not be all spaces * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ - public AdditionalDataAirline airlineCustomerReferenceNumber(String airlineCustomerReferenceNumber) { + public AdditionalDataAirline airlineCustomerReferenceNumber( + String airlineCustomerReferenceNumber) { this.airlineCustomerReferenceNumber = airlineCustomerReferenceNumber; return this; } /** - * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not be all spaces - * @return airlineCustomerReferenceNumber The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not be all spaces + * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If + * you send more than 20 characters, the customer reference number is truncated * Must not be all + * spaces + * + * @return airlineCustomerReferenceNumber The alphanumeric customer reference number. * Encoding: + * ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer + * reference number is truncated * Must not be all spaces */ @JsonProperty(JSON_PROPERTY_AIRLINE_CUSTOMER_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -364,9 +460,13 @@ public String getAirlineCustomerReferenceNumber() { } /** - * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not be all spaces + * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If + * you send more than 20 characters, the customer reference number is truncated * Must not be all + * spaces * - * @param airlineCustomerReferenceNumber The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not be all spaces + * @param airlineCustomerReferenceNumber The alphanumeric customer reference number. * Encoding: + * ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer + * reference number is truncated * Must not be all spaces */ @JsonProperty(JSON_PROPERTY_AIRLINE_CUSTOMER_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -375,9 +475,13 @@ public void setAirlineCustomerReferenceNumber(String airlineCustomerReferenceNum } /** - * A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters + * A code that identifies the type of item bought. The description of the code can appear on + * credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 + * characters * maxLength: 2 characters * - * @param airlineDocumentType A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters + * @param airlineDocumentType A code that identifies the type of item bought. The description of + * the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger + * ticket = 01 * minLength: 2 characters * maxLength: 2 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineDocumentType(String airlineDocumentType) { @@ -386,8 +490,13 @@ public AdditionalDataAirline airlineDocumentType(String airlineDocumentType) { } /** - * A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters - * @return airlineDocumentType A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters + * A code that identifies the type of item bought. The description of the code can appear on + * credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 + * characters * maxLength: 2 characters + * + * @return airlineDocumentType A code that identifies the type of item bought. The description of + * the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger + * ticket = 01 * minLength: 2 characters * maxLength: 2 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_DOCUMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -396,9 +505,13 @@ public String getAirlineDocumentType() { } /** - * A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters + * A code that identifies the type of item bought. The description of the code can appear on + * credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 + * characters * maxLength: 2 characters * - * @param airlineDocumentType A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters + * @param airlineDocumentType A code that identifies the type of item bought. The description of + * the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger + * ticket = 01 * minLength: 2 characters * maxLength: 2 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_DOCUMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -407,9 +520,13 @@ public void setAirlineDocumentType(String airlineDocumentType) { } /** - * The flight departure date. Local time `(HH:mm)` is optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 characters * maxLength: 16 characters + * The flight departure date. Local time `(HH:mm)` is optional. * Date format: + * `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 + * characters * maxLength: 16 characters * - * @param airlineFlightDate The flight departure date. Local time `(HH:mm)` is optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 characters * maxLength: 16 characters + * @param airlineFlightDate The flight departure date. Local time `(HH:mm)` is optional. + * * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` + * * minLength: 10 characters * maxLength: 16 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineFlightDate(String airlineFlightDate) { @@ -418,8 +535,13 @@ public AdditionalDataAirline airlineFlightDate(String airlineFlightDate) { } /** - * The flight departure date. Local time `(HH:mm)` is optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 characters * maxLength: 16 characters - * @return airlineFlightDate The flight departure date. Local time `(HH:mm)` is optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 characters * maxLength: 16 characters + * The flight departure date. Local time `(HH:mm)` is optional. * Date format: + * `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 + * characters * maxLength: 16 characters + * + * @return airlineFlightDate The flight departure date. Local time `(HH:mm)` is + * optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd + * HH:mm` * minLength: 10 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_FLIGHT_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -428,9 +550,13 @@ public String getAirlineFlightDate() { } /** - * The flight departure date. Local time `(HH:mm)` is optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 characters * maxLength: 16 characters + * The flight departure date. Local time `(HH:mm)` is optional. * Date format: + * `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 + * characters * maxLength: 16 characters * - * @param airlineFlightDate The flight departure date. Local time `(HH:mm)` is optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 characters * maxLength: 16 characters + * @param airlineFlightDate The flight departure date. Local time `(HH:mm)` is optional. + * * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` + * * minLength: 10 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_FLIGHT_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -439,9 +565,11 @@ public void setAirlineFlightDate(String airlineFlightDate) { } /** - * The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 characters * Date format: YYMMDD + * The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 + * characters * Date format: YYMMDD * - * @param airlineIssueDate The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 characters * Date format: YYMMDD + * @param airlineIssueDate The date that the ticket was issued to the passenger. * minLength: 6 + * characters * maxLength: 6 characters * Date format: YYMMDD * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineIssueDate(String airlineIssueDate) { @@ -450,8 +578,11 @@ public AdditionalDataAirline airlineIssueDate(String airlineIssueDate) { } /** - * The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 characters * Date format: YYMMDD - * @return airlineIssueDate The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 characters * Date format: YYMMDD + * The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 + * characters * Date format: YYMMDD + * + * @return airlineIssueDate The date that the ticket was issued to the passenger. * minLength: 6 + * characters * maxLength: 6 characters * Date format: YYMMDD */ @JsonProperty(JSON_PROPERTY_AIRLINE_ISSUE_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -460,9 +591,11 @@ public String getAirlineIssueDate() { } /** - * The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 characters * Date format: YYMMDD + * The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 + * characters * Date format: YYMMDD * - * @param airlineIssueDate The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 characters * Date format: YYMMDD + * @param airlineIssueDate The date that the ticket was issued to the passenger. * minLength: 6 + * characters * maxLength: 6 characters * Date format: YYMMDD */ @JsonProperty(JSON_PROPERTY_AIRLINE_ISSUE_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -471,9 +604,15 @@ public void setAirlineIssueDate(String airlineIssueDate) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that + * identifies the carrier. This field is required if the airline data includes leg details. * + * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all + * spaces * Must not be all zeros. * - * @param airlineLegCarrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegCarrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) + * 2-letter accounting code (PAX) that identifies the carrier. This field is required if the + * airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * + * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegCarrierCode(String airlineLegCarrierCode) { @@ -482,8 +621,15 @@ public AdditionalDataAirline airlineLegCarrierCode(String airlineLegCarrierCode) } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. - * @return airlineLegCarrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that + * identifies the carrier. This field is required if the airline data includes leg details. * + * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all + * spaces * Must not be all zeros. + * + * @return airlineLegCarrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) + * 2-letter accounting code (PAX) that identifies the carrier. This field is required if the + * airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * + * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_CARRIER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -492,9 +638,15 @@ public String getAirlineLegCarrierCode() { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that + * identifies the carrier. This field is required if the airline data includes leg details. * + * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all + * spaces * Must not be all zeros. * - * @param airlineLegCarrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegCarrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) + * 2-letter accounting code (PAX) that identifies the carrier. This field is required if the + * airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * + * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_CARRIER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -503,9 +655,14 @@ public void setAirlineLegCarrierCode(String airlineLegCarrierCode) { } /** - * A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not be all zeros. + * A one-letter travel class identifier. The following are common: * F: first class * J: business + * class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * + * maxLength: 1 character * Must not be all spaces * Must not be all zeros. * - * @param airlineLegClassOfTravel A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not be all zeros. + * @param airlineLegClassOfTravel A one-letter travel class identifier. The following are common: + * * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: + * ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not + * be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegClassOfTravel(String airlineLegClassOfTravel) { @@ -514,8 +671,14 @@ public AdditionalDataAirline airlineLegClassOfTravel(String airlineLegClassOfTra } /** - * A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not be all zeros. - * @return airlineLegClassOfTravel A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not be all zeros. + * A one-letter travel class identifier. The following are common: * F: first class * J: business + * class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * + * maxLength: 1 character * Must not be all spaces * Must not be all zeros. + * + * @return airlineLegClassOfTravel A one-letter travel class identifier. The following are common: + * * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: + * ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not + * be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_CLASS_OF_TRAVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -524,9 +687,14 @@ public String getAirlineLegClassOfTravel() { } /** - * A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not be all zeros. + * A one-letter travel class identifier. The following are common: * F: first class * J: business + * class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * + * maxLength: 1 character * Must not be all spaces * Must not be all zeros. * - * @param airlineLegClassOfTravel A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not be all zeros. + * @param airlineLegClassOfTravel A one-letter travel class identifier. The following are common: + * * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: + * ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not + * be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_CLASS_OF_TRAVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -535,9 +703,13 @@ public void setAirlineLegClassOfTravel(String airlineLegClassOfTravel) { } /** - * Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters + * Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format + * `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 + * characters * - * @param airlineLegDateOfTravel Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters + * @param airlineLegDateOfTravel Date and time of travel in [ISO + * 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * + * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegDateOfTravel(String airlineLegDateOfTravel) { @@ -546,8 +718,13 @@ public AdditionalDataAirline airlineLegDateOfTravel(String airlineLegDateOfTrave } /** - * Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters - * @return airlineLegDateOfTravel Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters + * Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format + * `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 + * characters + * + * @return airlineLegDateOfTravel Date and time of travel in [ISO + * 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * + * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_DATE_OF_TRAVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -556,9 +733,13 @@ public String getAirlineLegDateOfTravel() { } /** - * Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters + * Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format + * `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 + * characters * - * @param airlineLegDateOfTravel Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters + * @param airlineLegDateOfTravel Date and time of travel in [ISO + * 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * + * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_DATE_OF_TRAVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -567,9 +748,15 @@ public void setAirlineLegDateOfTravel(String airlineLegDateOfTravel) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the + * departure airport. This field is required if the airline data includes leg details. * Encoding: + * ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * + * Must not be all spaces * Must not be all zeros. * - * @param airlineLegDepartAirport The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegDepartAirport The [IATA](https://www.iata.org/services/pages/codes.aspx) + * three-letter airport code of the departure airport. This field is required if the airline + * data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 + * characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegDepartAirport(String airlineLegDepartAirport) { @@ -578,8 +765,15 @@ public AdditionalDataAirline airlineLegDepartAirport(String airlineLegDepartAirp } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. - * @return airlineLegDepartAirport The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the + * departure airport. This field is required if the airline data includes leg details. * Encoding: + * ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * + * Must not be all spaces * Must not be all zeros. + * + * @return airlineLegDepartAirport The [IATA](https://www.iata.org/services/pages/codes.aspx) + * three-letter airport code of the departure airport. This field is required if the airline + * data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 + * characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_DEPART_AIRPORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -588,9 +782,15 @@ public String getAirlineLegDepartAirport() { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the + * departure airport. This field is required if the airline data includes leg details. * Encoding: + * ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * + * Must not be all spaces * Must not be all zeros. * - * @param airlineLegDepartAirport The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegDepartAirport The [IATA](https://www.iata.org/services/pages/codes.aspx) + * three-letter airport code of the departure airport. This field is required if the airline + * data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 + * characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_DEPART_AIRPORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -599,9 +799,14 @@ public void setAirlineLegDepartAirport(String airlineLegDepartAirport) { } /** - * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 12 * Must not be all zeros. + * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * + * minLength: 1 * maxLength: 12 * Must not be all zeros. * - * @param airlineLegDepartTax The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 12 * Must not be all zeros. + * @param airlineLegDepartTax The amount of [departure + * tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * + * minLength: 1 * maxLength: 12 * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegDepartTax(String airlineLegDepartTax) { @@ -610,8 +815,14 @@ public AdditionalDataAirline airlineLegDepartTax(String airlineLegDepartTax) { } /** - * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 12 * Must not be all zeros. - * @return airlineLegDepartTax The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 12 * Must not be all zeros. + * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * + * minLength: 1 * maxLength: 12 * Must not be all zeros. + * + * @return airlineLegDepartTax The amount of [departure + * tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * + * minLength: 1 * maxLength: 12 * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_DEPART_TAX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -620,9 +831,14 @@ public String getAirlineLegDepartTax() { } /** - * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 12 * Must not be all zeros. + * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * + * minLength: 1 * maxLength: 12 * Must not be all zeros. * - * @param airlineLegDepartTax The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 12 * Must not be all zeros. + * @param airlineLegDepartTax The amount of [departure + * tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * + * minLength: 1 * maxLength: 12 * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_DEPART_TAX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -631,9 +847,15 @@ public void setAirlineLegDepartTax(String airlineLegDepartTax) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the + * destination airport. This field is required if the airline data includes leg details. * + * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 + * characters * Must not be all spaces * Must not be all zeros. * - * @param airlineLegDestinationCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegDestinationCode The [IATA](https://www.iata.org/services/pages/codes.aspx) + * 3-letter airport code of the destination airport. This field is required if the airline + * data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 + * characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegDestinationCode(String airlineLegDestinationCode) { @@ -642,8 +864,15 @@ public AdditionalDataAirline airlineLegDestinationCode(String airlineLegDestinat } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. - * @return airlineLegDestinationCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the + * destination airport. This field is required if the airline data includes leg details. * + * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 + * characters * Must not be all spaces * Must not be all zeros. + * + * @return airlineLegDestinationCode The [IATA](https://www.iata.org/services/pages/codes.aspx) + * 3-letter airport code of the destination airport. This field is required if the airline + * data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 + * characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_DESTINATION_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -652,9 +881,15 @@ public String getAirlineLegDestinationCode() { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the + * destination airport. This field is required if the airline data includes leg details. * + * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 + * characters * Must not be all spaces * Must not be all zeros. * - * @param airlineLegDestinationCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegDestinationCode The [IATA](https://www.iata.org/services/pages/codes.aspx) + * 3-letter airport code of the destination airport. This field is required if the airline + * data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 + * characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_DESTINATION_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -663,9 +898,13 @@ public void setAirlineLegDestinationCode(String airlineLegDestinationCode) { } /** - * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * + * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all + * zeros. * - * @param airlineLegFareBaseCode The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegFareBaseCode The [fare basis + * code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 + * character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegFareBaseCode(String airlineLegFareBaseCode) { @@ -674,8 +913,13 @@ public AdditionalDataAirline airlineLegFareBaseCode(String airlineLegFareBaseCod } /** - * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. - * @return airlineLegFareBaseCode The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * + * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all + * zeros. + * + * @return airlineLegFareBaseCode The [fare basis + * code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 + * character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_FARE_BASE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -684,9 +928,13 @@ public String getAirlineLegFareBaseCode() { } /** - * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * + * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all + * zeros. * - * @param airlineLegFareBaseCode The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegFareBaseCode The [fare basis + * code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 + * character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_FARE_BASE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -695,9 +943,11 @@ public void setAirlineLegFareBaseCode(String airlineLegFareBaseCode) { } /** - * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all spaces * Must not be all zeros. + * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all + * spaces * Must not be all zeros. * - * @param airlineLegFlightNumber The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegFlightNumber The flight identifier. * minLength: 1 character * maxLength: 5 + * characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegFlightNumber(String airlineLegFlightNumber) { @@ -706,8 +956,11 @@ public AdditionalDataAirline airlineLegFlightNumber(String airlineLegFlightNumbe } /** - * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all spaces * Must not be all zeros. - * @return airlineLegFlightNumber The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all spaces * Must not be all zeros. + * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all + * spaces * Must not be all zeros. + * + * @return airlineLegFlightNumber The flight identifier. * minLength: 1 character * maxLength: 5 + * characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_FLIGHT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -716,9 +969,11 @@ public String getAirlineLegFlightNumber() { } /** - * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all spaces * Must not be all zeros. + * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all + * spaces * Must not be all zeros. * - * @param airlineLegFlightNumber The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegFlightNumber The flight identifier. * minLength: 1 character * maxLength: 5 + * characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_FLIGHT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -727,9 +982,14 @@ public void setAirlineLegFlightNumber(String airlineLegFlightNumber) { } /** - * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character + * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a + * space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: + * ASCII * minLength: 1 character * maxLength: 1 character * - * @param airlineLegStopOverCode A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character + * @param airlineLegStopOverCode A one-letter code that indicates whether the passenger is + * entitled to make a stopover. Can be a space, O if the passenger is entitled to make a + * stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 + * character * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegStopOverCode(String airlineLegStopOverCode) { @@ -738,8 +998,14 @@ public AdditionalDataAirline airlineLegStopOverCode(String airlineLegStopOverCod } /** - * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character - * @return airlineLegStopOverCode A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character + * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a + * space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: + * ASCII * minLength: 1 character * maxLength: 1 character + * + * @return airlineLegStopOverCode A one-letter code that indicates whether the passenger is + * entitled to make a stopover. Can be a space, O if the passenger is entitled to make a + * stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 + * character */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_STOP_OVER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -748,9 +1014,14 @@ public String getAirlineLegStopOverCode() { } /** - * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character + * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a + * space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: + * ASCII * minLength: 1 character * maxLength: 1 character * - * @param airlineLegStopOverCode A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character + * @param airlineLegStopOverCode A one-letter code that indicates whether the passenger is + * entitled to make a stopover. Can be a space, O if the passenger is entitled to make a + * stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 + * character */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_STOP_OVER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -759,9 +1030,11 @@ public void setAirlineLegStopOverCode(String airlineLegStopOverCode) { } /** - * The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 + * The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * + * maxLength: 10 * - * @param airlinePassengerDateOfBirth The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 + * @param airlinePassengerDateOfBirth The passenger's date of birth. Date format: + * `yyyy-MM-dd` * minLength: 10 * maxLength: 10 * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlinePassengerDateOfBirth(String airlinePassengerDateOfBirth) { @@ -770,8 +1043,11 @@ public AdditionalDataAirline airlinePassengerDateOfBirth(String airlinePassenger } /** - * The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 - * @return airlinePassengerDateOfBirth The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 + * The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * + * maxLength: 10 + * + * @return airlinePassengerDateOfBirth The passenger's date of birth. Date format: + * `yyyy-MM-dd` * minLength: 10 * maxLength: 10 */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -780,9 +1056,11 @@ public String getAirlinePassengerDateOfBirth() { } /** - * The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 + * The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * + * maxLength: 10 * - * @param airlinePassengerDateOfBirth The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 + * @param airlinePassengerDateOfBirth The passenger's date of birth. Date format: + * `yyyy-MM-dd` * minLength: 10 * maxLength: 10 */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -791,9 +1069,11 @@ public void setAirlinePassengerDateOfBirth(String airlinePassengerDateOfBirth) { } /** - * The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * The passenger's first name. > This field is required if the airline data includes + * passenger details or leg details. * Encoding: ASCII * - * @param airlinePassengerFirstName The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * @param airlinePassengerFirstName The passenger's first name. > This field is required if + * the airline data includes passenger details or leg details. * Encoding: ASCII * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlinePassengerFirstName(String airlinePassengerFirstName) { @@ -802,8 +1082,11 @@ public AdditionalDataAirline airlinePassengerFirstName(String airlinePassengerFi } /** - * The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII - * @return airlinePassengerFirstName The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * The passenger's first name. > This field is required if the airline data includes + * passenger details or leg details. * Encoding: ASCII + * + * @return airlinePassengerFirstName The passenger's first name. > This field is required + * if the airline data includes passenger details or leg details. * Encoding: ASCII */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -812,9 +1095,11 @@ public String getAirlinePassengerFirstName() { } /** - * The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * The passenger's first name. > This field is required if the airline data includes + * passenger details or leg details. * Encoding: ASCII * - * @param airlinePassengerFirstName The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * @param airlinePassengerFirstName The passenger's first name. > This field is required if + * the airline data includes passenger details or leg details. * Encoding: ASCII */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -823,9 +1108,11 @@ public void setAirlinePassengerFirstName(String airlinePassengerFirstName) { } /** - * The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * The passenger's last name. > This field is required if the airline data includes + * passenger details or leg details. * Encoding: ASCII * - * @param airlinePassengerLastName The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * @param airlinePassengerLastName The passenger's last name. > This field is required if + * the airline data includes passenger details or leg details. * Encoding: ASCII * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlinePassengerLastName(String airlinePassengerLastName) { @@ -834,8 +1121,11 @@ public AdditionalDataAirline airlinePassengerLastName(String airlinePassengerLas } /** - * The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII - * @return airlinePassengerLastName The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * The passenger's last name. > This field is required if the airline data includes + * passenger details or leg details. * Encoding: ASCII + * + * @return airlinePassengerLastName The passenger's last name. > This field is required if + * the airline data includes passenger details or leg details. * Encoding: ASCII */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -844,9 +1134,11 @@ public String getAirlinePassengerLastName() { } /** - * The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * The passenger's last name. > This field is required if the airline data includes + * passenger details or leg details. * Encoding: ASCII * - * @param airlinePassengerLastName The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * @param airlinePassengerLastName The passenger's last name. > This field is required if + * the airline data includes passenger details or leg details. * Encoding: ASCII */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -855,9 +1147,13 @@ public void setAirlinePassengerLastName(String airlinePassengerLastName) { } /** - * The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters + * The passenger's phone number, including country code. This is an alphanumeric field that + * can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters + * * maxLength: 30 characters * - * @param airlinePassengerPhoneNumber The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters + * @param airlinePassengerPhoneNumber The passenger's phone number, including country code. + * This is an alphanumeric field that can include the '+' and '-' signs. * + * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlinePassengerPhoneNumber(String airlinePassengerPhoneNumber) { @@ -866,8 +1162,13 @@ public AdditionalDataAirline airlinePassengerPhoneNumber(String airlinePassenger } /** - * The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters - * @return airlinePassengerPhoneNumber The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters + * The passenger's phone number, including country code. This is an alphanumeric field that + * can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters + * * maxLength: 30 characters + * + * @return airlinePassengerPhoneNumber The passenger's phone number, including country code. + * This is an alphanumeric field that can include the '+' and '-' signs. * + * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -876,9 +1177,13 @@ public String getAirlinePassengerPhoneNumber() { } /** - * The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters + * The passenger's phone number, including country code. This is an alphanumeric field that + * can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters + * * maxLength: 30 characters * - * @param airlinePassengerPhoneNumber The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters + * @param airlinePassengerPhoneNumber The passenger's phone number, including country code. + * This is an alphanumeric field that can include the '+' and '-' signs. * + * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -887,9 +1192,11 @@ public void setAirlinePassengerPhoneNumber(String airlinePassengerPhoneNumber) { } /** - * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters + * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 + * characters * - * @param airlinePassengerTravellerType The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters + * @param airlinePassengerTravellerType The IATA passenger type code (PTC). * Encoding: ASCII * + * minLength: 3 characters * maxLength: 6 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlinePassengerTravellerType(String airlinePassengerTravellerType) { @@ -898,8 +1205,11 @@ public AdditionalDataAirline airlinePassengerTravellerType(String airlinePasseng } /** - * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters - * @return airlinePassengerTravellerType The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters + * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 + * characters + * + * @return airlinePassengerTravellerType The IATA passenger type code (PTC). * Encoding: ASCII * + * minLength: 3 characters * maxLength: 6 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_TRAVELLER_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -908,9 +1218,11 @@ public String getAirlinePassengerTravellerType() { } /** - * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters + * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 + * characters * - * @param airlinePassengerTravellerType The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters + * @param airlinePassengerTravellerType The IATA passenger type code (PTC). * Encoding: ASCII * + * minLength: 3 characters * maxLength: 6 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_TRAVELLER_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -919,9 +1231,15 @@ public void setAirlinePassengerTravellerType(String airlinePassengerTravellerTyp } /** - * The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all zeros. + * The passenger's name, initials, and title. * Format: last name + first name or initials + + * title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you + * send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all + * zeros. * - * @param airlinePassengerName The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all zeros. + * @param airlinePassengerName The passenger's name, initials, and title. * Format: last name + * + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * + * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * + * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlinePassengerName(String airlinePassengerName) { @@ -930,8 +1248,15 @@ public AdditionalDataAirline airlinePassengerName(String airlinePassengerName) { } /** - * The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all zeros. - * @return airlinePassengerName The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all zeros. + * The passenger's name, initials, and title. * Format: last name + first name or initials + + * title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you + * send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all + * zeros. + * + * @return airlinePassengerName The passenger's name, initials, and title. * Format: last name + * + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * + * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * + * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -940,9 +1265,15 @@ public String getAirlinePassengerName() { } /** - * The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all zeros. + * The passenger's name, initials, and title. * Format: last name + first name or initials + + * title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you + * send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all + * zeros. * - * @param airlinePassengerName The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all zeros. + * @param airlinePassengerName The passenger's name, initials, and title. * Format: last name + * + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * + * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * + * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -951,9 +1282,11 @@ public void setAirlinePassengerName(String airlinePassengerName) { } /** - * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters + * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: + * 16 characters * - * @param airlineTicketIssueAddress The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters + * @param airlineTicketIssueAddress The address of the organization that issued the ticket. * + * minLength: 0 characters * maxLength: 16 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineTicketIssueAddress(String airlineTicketIssueAddress) { @@ -962,8 +1295,11 @@ public AdditionalDataAirline airlineTicketIssueAddress(String airlineTicketIssue } /** - * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters - * @return airlineTicketIssueAddress The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters + * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: + * 16 characters + * + * @return airlineTicketIssueAddress The address of the organization that issued the ticket. * + * minLength: 0 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_TICKET_ISSUE_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -972,9 +1308,11 @@ public String getAirlineTicketIssueAddress() { } /** - * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters + * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: + * 16 characters * - * @param airlineTicketIssueAddress The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters + * @param airlineTicketIssueAddress The address of the organization that issued the ticket. * + * minLength: 0 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_TICKET_ISSUE_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -983,9 +1321,11 @@ public void setAirlineTicketIssueAddress(String airlineTicketIssueAddress) { } /** - * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must + * not be all spaces * Must not be all zeros. * - * @param airlineTicketNumber The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * @param airlineTicketNumber The ticket's unique identifier. * minLength: 1 character * + * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineTicketNumber(String airlineTicketNumber) { @@ -994,8 +1334,11 @@ public AdditionalDataAirline airlineTicketNumber(String airlineTicketNumber) { } /** - * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. - * @return airlineTicketNumber The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must + * not be all spaces * Must not be all zeros. + * + * @return airlineTicketNumber The ticket's unique identifier. * minLength: 1 character * + * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_TICKET_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1004,9 +1347,11 @@ public String getAirlineTicketNumber() { } /** - * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must + * not be all spaces * Must not be all zeros. * - * @param airlineTicketNumber The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * @param airlineTicketNumber The ticket's unique identifier. * minLength: 1 character * + * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_TICKET_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1015,9 +1360,13 @@ public void setAirlineTicketNumber(String airlineTicketNumber) { } /** - * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * Must not be all zeros. + * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * + * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * + * Must not be all zeros. * - * @param airlineTravelAgencyCode The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * Must not be all zeros. + * @param airlineTravelAgencyCode The unique identifier from IATA or ARC for the travel agency + * that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 + * characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineTravelAgencyCode(String airlineTravelAgencyCode) { @@ -1026,8 +1375,13 @@ public AdditionalDataAirline airlineTravelAgencyCode(String airlineTravelAgencyC } /** - * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * Must not be all zeros. - * @return airlineTravelAgencyCode The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * Must not be all zeros. + * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * + * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * + * Must not be all zeros. + * + * @return airlineTravelAgencyCode The unique identifier from IATA or ARC for the travel agency + * that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 + * characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1036,9 +1390,13 @@ public String getAirlineTravelAgencyCode() { } /** - * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * Must not be all zeros. + * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * + * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * + * Must not be all zeros. * - * @param airlineTravelAgencyCode The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * Must not be all zeros. + * @param airlineTravelAgencyCode The unique identifier from IATA or ARC for the travel agency + * that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 + * characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1047,9 +1405,11 @@ public void setAirlineTravelAgencyCode(String airlineTravelAgencyCode) { } /** - * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. + * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 + * characters * Must not be all spaces * Must not be all zeros. * - * @param airlineTravelAgencyName The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. + * @param airlineTravelAgencyName The name of the travel agency. * Encoding: ASCII * minLength: 1 + * character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineTravelAgencyName(String airlineTravelAgencyName) { @@ -1058,8 +1418,11 @@ public AdditionalDataAirline airlineTravelAgencyName(String airlineTravelAgencyN } /** - * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. - * @return airlineTravelAgencyName The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. + * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 + * characters * Must not be all spaces * Must not be all zeros. + * + * @return airlineTravelAgencyName The name of the travel agency. * Encoding: ASCII * minLength: 1 + * character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1068,9 +1431,11 @@ public String getAirlineTravelAgencyName() { } /** - * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. + * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 + * characters * Must not be all spaces * Must not be all zeros. * - * @param airlineTravelAgencyName The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. + * @param airlineTravelAgencyName The name of the travel agency. * Encoding: ASCII * minLength: 1 + * character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1078,9 +1443,7 @@ public void setAirlineTravelAgencyName(String airlineTravelAgencyName) { this.airlineTravelAgencyName = airlineTravelAgencyName; } - /** - * Return true if this AdditionalDataAirline object is equal to o. - */ + /** Return true if this AdditionalDataAirline object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -1090,82 +1453,177 @@ public boolean equals(Object o) { return false; } AdditionalDataAirline additionalDataAirline = (AdditionalDataAirline) o; - return Objects.equals(this.airlineAgencyInvoiceNumber, additionalDataAirline.airlineAgencyInvoiceNumber) && - Objects.equals(this.airlineAgencyPlanName, additionalDataAirline.airlineAgencyPlanName) && - Objects.equals(this.airlineAirlineCode, additionalDataAirline.airlineAirlineCode) && - Objects.equals(this.airlineAirlineDesignatorCode, additionalDataAirline.airlineAirlineDesignatorCode) && - Objects.equals(this.airlineBoardingFee, additionalDataAirline.airlineBoardingFee) && - Objects.equals(this.airlineComputerizedReservationSystem, additionalDataAirline.airlineComputerizedReservationSystem) && - Objects.equals(this.airlineCustomerReferenceNumber, additionalDataAirline.airlineCustomerReferenceNumber) && - Objects.equals(this.airlineDocumentType, additionalDataAirline.airlineDocumentType) && - Objects.equals(this.airlineFlightDate, additionalDataAirline.airlineFlightDate) && - Objects.equals(this.airlineIssueDate, additionalDataAirline.airlineIssueDate) && - Objects.equals(this.airlineLegCarrierCode, additionalDataAirline.airlineLegCarrierCode) && - Objects.equals(this.airlineLegClassOfTravel, additionalDataAirline.airlineLegClassOfTravel) && - Objects.equals(this.airlineLegDateOfTravel, additionalDataAirline.airlineLegDateOfTravel) && - Objects.equals(this.airlineLegDepartAirport, additionalDataAirline.airlineLegDepartAirport) && - Objects.equals(this.airlineLegDepartTax, additionalDataAirline.airlineLegDepartTax) && - Objects.equals(this.airlineLegDestinationCode, additionalDataAirline.airlineLegDestinationCode) && - Objects.equals(this.airlineLegFareBaseCode, additionalDataAirline.airlineLegFareBaseCode) && - Objects.equals(this.airlineLegFlightNumber, additionalDataAirline.airlineLegFlightNumber) && - Objects.equals(this.airlineLegStopOverCode, additionalDataAirline.airlineLegStopOverCode) && - Objects.equals(this.airlinePassengerDateOfBirth, additionalDataAirline.airlinePassengerDateOfBirth) && - Objects.equals(this.airlinePassengerFirstName, additionalDataAirline.airlinePassengerFirstName) && - Objects.equals(this.airlinePassengerLastName, additionalDataAirline.airlinePassengerLastName) && - Objects.equals(this.airlinePassengerPhoneNumber, additionalDataAirline.airlinePassengerPhoneNumber) && - Objects.equals(this.airlinePassengerTravellerType, additionalDataAirline.airlinePassengerTravellerType) && - Objects.equals(this.airlinePassengerName, additionalDataAirline.airlinePassengerName) && - Objects.equals(this.airlineTicketIssueAddress, additionalDataAirline.airlineTicketIssueAddress) && - Objects.equals(this.airlineTicketNumber, additionalDataAirline.airlineTicketNumber) && - Objects.equals(this.airlineTravelAgencyCode, additionalDataAirline.airlineTravelAgencyCode) && - Objects.equals(this.airlineTravelAgencyName, additionalDataAirline.airlineTravelAgencyName); + return Objects.equals( + this.airlineAgencyInvoiceNumber, additionalDataAirline.airlineAgencyInvoiceNumber) + && Objects.equals(this.airlineAgencyPlanName, additionalDataAirline.airlineAgencyPlanName) + && Objects.equals(this.airlineAirlineCode, additionalDataAirline.airlineAirlineCode) + && Objects.equals( + this.airlineAirlineDesignatorCode, additionalDataAirline.airlineAirlineDesignatorCode) + && Objects.equals(this.airlineBoardingFee, additionalDataAirline.airlineBoardingFee) + && Objects.equals( + this.airlineComputerizedReservationSystem, + additionalDataAirline.airlineComputerizedReservationSystem) + && Objects.equals( + this.airlineCustomerReferenceNumber, + additionalDataAirline.airlineCustomerReferenceNumber) + && Objects.equals(this.airlineDocumentType, additionalDataAirline.airlineDocumentType) + && Objects.equals(this.airlineFlightDate, additionalDataAirline.airlineFlightDate) + && Objects.equals(this.airlineIssueDate, additionalDataAirline.airlineIssueDate) + && Objects.equals(this.airlineLegCarrierCode, additionalDataAirline.airlineLegCarrierCode) + && Objects.equals( + this.airlineLegClassOfTravel, additionalDataAirline.airlineLegClassOfTravel) + && Objects.equals(this.airlineLegDateOfTravel, additionalDataAirline.airlineLegDateOfTravel) + && Objects.equals( + this.airlineLegDepartAirport, additionalDataAirline.airlineLegDepartAirport) + && Objects.equals(this.airlineLegDepartTax, additionalDataAirline.airlineLegDepartTax) + && Objects.equals( + this.airlineLegDestinationCode, additionalDataAirline.airlineLegDestinationCode) + && Objects.equals(this.airlineLegFareBaseCode, additionalDataAirline.airlineLegFareBaseCode) + && Objects.equals(this.airlineLegFlightNumber, additionalDataAirline.airlineLegFlightNumber) + && Objects.equals(this.airlineLegStopOverCode, additionalDataAirline.airlineLegStopOverCode) + && Objects.equals( + this.airlinePassengerDateOfBirth, additionalDataAirline.airlinePassengerDateOfBirth) + && Objects.equals( + this.airlinePassengerFirstName, additionalDataAirline.airlinePassengerFirstName) + && Objects.equals( + this.airlinePassengerLastName, additionalDataAirline.airlinePassengerLastName) + && Objects.equals( + this.airlinePassengerPhoneNumber, additionalDataAirline.airlinePassengerPhoneNumber) + && Objects.equals( + this.airlinePassengerTravellerType, additionalDataAirline.airlinePassengerTravellerType) + && Objects.equals(this.airlinePassengerName, additionalDataAirline.airlinePassengerName) + && Objects.equals( + this.airlineTicketIssueAddress, additionalDataAirline.airlineTicketIssueAddress) + && Objects.equals(this.airlineTicketNumber, additionalDataAirline.airlineTicketNumber) + && Objects.equals( + this.airlineTravelAgencyCode, additionalDataAirline.airlineTravelAgencyCode) + && Objects.equals( + this.airlineTravelAgencyName, additionalDataAirline.airlineTravelAgencyName); } @Override public int hashCode() { - return Objects.hash(airlineAgencyInvoiceNumber, airlineAgencyPlanName, airlineAirlineCode, airlineAirlineDesignatorCode, airlineBoardingFee, airlineComputerizedReservationSystem, airlineCustomerReferenceNumber, airlineDocumentType, airlineFlightDate, airlineIssueDate, airlineLegCarrierCode, airlineLegClassOfTravel, airlineLegDateOfTravel, airlineLegDepartAirport, airlineLegDepartTax, airlineLegDestinationCode, airlineLegFareBaseCode, airlineLegFlightNumber, airlineLegStopOverCode, airlinePassengerDateOfBirth, airlinePassengerFirstName, airlinePassengerLastName, airlinePassengerPhoneNumber, airlinePassengerTravellerType, airlinePassengerName, airlineTicketIssueAddress, airlineTicketNumber, airlineTravelAgencyCode, airlineTravelAgencyName); + return Objects.hash( + airlineAgencyInvoiceNumber, + airlineAgencyPlanName, + airlineAirlineCode, + airlineAirlineDesignatorCode, + airlineBoardingFee, + airlineComputerizedReservationSystem, + airlineCustomerReferenceNumber, + airlineDocumentType, + airlineFlightDate, + airlineIssueDate, + airlineLegCarrierCode, + airlineLegClassOfTravel, + airlineLegDateOfTravel, + airlineLegDepartAirport, + airlineLegDepartTax, + airlineLegDestinationCode, + airlineLegFareBaseCode, + airlineLegFlightNumber, + airlineLegStopOverCode, + airlinePassengerDateOfBirth, + airlinePassengerFirstName, + airlinePassengerLastName, + airlinePassengerPhoneNumber, + airlinePassengerTravellerType, + airlinePassengerName, + airlineTicketIssueAddress, + airlineTicketNumber, + airlineTravelAgencyCode, + airlineTravelAgencyName); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataAirline {\n"); - sb.append(" airlineAgencyInvoiceNumber: ").append(toIndentedString(airlineAgencyInvoiceNumber)).append("\n"); - sb.append(" airlineAgencyPlanName: ").append(toIndentedString(airlineAgencyPlanName)).append("\n"); + sb.append(" airlineAgencyInvoiceNumber: ") + .append(toIndentedString(airlineAgencyInvoiceNumber)) + .append("\n"); + sb.append(" airlineAgencyPlanName: ") + .append(toIndentedString(airlineAgencyPlanName)) + .append("\n"); sb.append(" airlineAirlineCode: ").append(toIndentedString(airlineAirlineCode)).append("\n"); - sb.append(" airlineAirlineDesignatorCode: ").append(toIndentedString(airlineAirlineDesignatorCode)).append("\n"); + sb.append(" airlineAirlineDesignatorCode: ") + .append(toIndentedString(airlineAirlineDesignatorCode)) + .append("\n"); sb.append(" airlineBoardingFee: ").append(toIndentedString(airlineBoardingFee)).append("\n"); - sb.append(" airlineComputerizedReservationSystem: ").append(toIndentedString(airlineComputerizedReservationSystem)).append("\n"); - sb.append(" airlineCustomerReferenceNumber: ").append(toIndentedString(airlineCustomerReferenceNumber)).append("\n"); - sb.append(" airlineDocumentType: ").append(toIndentedString(airlineDocumentType)).append("\n"); + sb.append(" airlineComputerizedReservationSystem: ") + .append(toIndentedString(airlineComputerizedReservationSystem)) + .append("\n"); + sb.append(" airlineCustomerReferenceNumber: ") + .append(toIndentedString(airlineCustomerReferenceNumber)) + .append("\n"); + sb.append(" airlineDocumentType: ") + .append(toIndentedString(airlineDocumentType)) + .append("\n"); sb.append(" airlineFlightDate: ").append(toIndentedString(airlineFlightDate)).append("\n"); sb.append(" airlineIssueDate: ").append(toIndentedString(airlineIssueDate)).append("\n"); - sb.append(" airlineLegCarrierCode: ").append(toIndentedString(airlineLegCarrierCode)).append("\n"); - sb.append(" airlineLegClassOfTravel: ").append(toIndentedString(airlineLegClassOfTravel)).append("\n"); - sb.append(" airlineLegDateOfTravel: ").append(toIndentedString(airlineLegDateOfTravel)).append("\n"); - sb.append(" airlineLegDepartAirport: ").append(toIndentedString(airlineLegDepartAirport)).append("\n"); - sb.append(" airlineLegDepartTax: ").append(toIndentedString(airlineLegDepartTax)).append("\n"); - sb.append(" airlineLegDestinationCode: ").append(toIndentedString(airlineLegDestinationCode)).append("\n"); - sb.append(" airlineLegFareBaseCode: ").append(toIndentedString(airlineLegFareBaseCode)).append("\n"); - sb.append(" airlineLegFlightNumber: ").append(toIndentedString(airlineLegFlightNumber)).append("\n"); - sb.append(" airlineLegStopOverCode: ").append(toIndentedString(airlineLegStopOverCode)).append("\n"); - sb.append(" airlinePassengerDateOfBirth: ").append(toIndentedString(airlinePassengerDateOfBirth)).append("\n"); - sb.append(" airlinePassengerFirstName: ").append(toIndentedString(airlinePassengerFirstName)).append("\n"); - sb.append(" airlinePassengerLastName: ").append(toIndentedString(airlinePassengerLastName)).append("\n"); - sb.append(" airlinePassengerPhoneNumber: ").append(toIndentedString(airlinePassengerPhoneNumber)).append("\n"); - sb.append(" airlinePassengerTravellerType: ").append(toIndentedString(airlinePassengerTravellerType)).append("\n"); - sb.append(" airlinePassengerName: ").append(toIndentedString(airlinePassengerName)).append("\n"); - sb.append(" airlineTicketIssueAddress: ").append(toIndentedString(airlineTicketIssueAddress)).append("\n"); - sb.append(" airlineTicketNumber: ").append(toIndentedString(airlineTicketNumber)).append("\n"); - sb.append(" airlineTravelAgencyCode: ").append(toIndentedString(airlineTravelAgencyCode)).append("\n"); - sb.append(" airlineTravelAgencyName: ").append(toIndentedString(airlineTravelAgencyName)).append("\n"); + sb.append(" airlineLegCarrierCode: ") + .append(toIndentedString(airlineLegCarrierCode)) + .append("\n"); + sb.append(" airlineLegClassOfTravel: ") + .append(toIndentedString(airlineLegClassOfTravel)) + .append("\n"); + sb.append(" airlineLegDateOfTravel: ") + .append(toIndentedString(airlineLegDateOfTravel)) + .append("\n"); + sb.append(" airlineLegDepartAirport: ") + .append(toIndentedString(airlineLegDepartAirport)) + .append("\n"); + sb.append(" airlineLegDepartTax: ") + .append(toIndentedString(airlineLegDepartTax)) + .append("\n"); + sb.append(" airlineLegDestinationCode: ") + .append(toIndentedString(airlineLegDestinationCode)) + .append("\n"); + sb.append(" airlineLegFareBaseCode: ") + .append(toIndentedString(airlineLegFareBaseCode)) + .append("\n"); + sb.append(" airlineLegFlightNumber: ") + .append(toIndentedString(airlineLegFlightNumber)) + .append("\n"); + sb.append(" airlineLegStopOverCode: ") + .append(toIndentedString(airlineLegStopOverCode)) + .append("\n"); + sb.append(" airlinePassengerDateOfBirth: ") + .append(toIndentedString(airlinePassengerDateOfBirth)) + .append("\n"); + sb.append(" airlinePassengerFirstName: ") + .append(toIndentedString(airlinePassengerFirstName)) + .append("\n"); + sb.append(" airlinePassengerLastName: ") + .append(toIndentedString(airlinePassengerLastName)) + .append("\n"); + sb.append(" airlinePassengerPhoneNumber: ") + .append(toIndentedString(airlinePassengerPhoneNumber)) + .append("\n"); + sb.append(" airlinePassengerTravellerType: ") + .append(toIndentedString(airlinePassengerTravellerType)) + .append("\n"); + sb.append(" airlinePassengerName: ") + .append(toIndentedString(airlinePassengerName)) + .append("\n"); + sb.append(" airlineTicketIssueAddress: ") + .append(toIndentedString(airlineTicketIssueAddress)) + .append("\n"); + sb.append(" airlineTicketNumber: ") + .append(toIndentedString(airlineTicketNumber)) + .append("\n"); + sb.append(" airlineTravelAgencyCode: ") + .append(toIndentedString(airlineTravelAgencyCode)) + .append("\n"); + sb.append(" airlineTravelAgencyName: ") + .append(toIndentedString(airlineTravelAgencyName)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1174,21 +1632,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalDataAirline given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataAirline - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataAirline + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalDataAirline */ public static AdditionalDataAirline fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataAirline.class); } -/** - * Convert an instance of AdditionalDataAirline to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalDataAirline to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataCarRental.java b/src/main/java/com/adyen/model/checkout/AdditionalDataCarRental.java index 103654735..4369495af 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataCarRental.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataCarRental.java @@ -2,31 +2,22 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AdditionalDataCarRental - */ +/** AdditionalDataCarRental */ @JsonPropertyOrder({ AdditionalDataCarRental.JSON_PROPERTY_CAR_RENTAL_CHECK_OUT_DATE, AdditionalDataCarRental.JSON_PROPERTY_CAR_RENTAL_CUSTOMER_SERVICE_TOLL_FREE_NUMBER, @@ -52,12 +43,12 @@ AdditionalDataCarRental.JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION, AdditionalDataCarRental.JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET }) - public class AdditionalDataCarRental { public static final String JSON_PROPERTY_CAR_RENTAL_CHECK_OUT_DATE = "carRental.checkOutDate"; private String carRentalCheckOutDate; - public static final String JSON_PROPERTY_CAR_RENTAL_CUSTOMER_SERVICE_TOLL_FREE_NUMBER = "carRental.customerServiceTollFreeNumber"; + public static final String JSON_PROPERTY_CAR_RENTAL_CUSTOMER_SERVICE_TOLL_FREE_NUMBER = + "carRental.customerServiceTollFreeNumber"; private String carRentalCustomerServiceTollFreeNumber; public static final String JSON_PROPERTY_CAR_RENTAL_DAYS_RENTED = "carRental.daysRented"; @@ -66,22 +57,27 @@ public class AdditionalDataCarRental { public static final String JSON_PROPERTY_CAR_RENTAL_FUEL_CHARGES = "carRental.fuelCharges"; private String carRentalFuelCharges; - public static final String JSON_PROPERTY_CAR_RENTAL_INSURANCE_CHARGES = "carRental.insuranceCharges"; + public static final String JSON_PROPERTY_CAR_RENTAL_INSURANCE_CHARGES = + "carRental.insuranceCharges"; private String carRentalInsuranceCharges; public static final String JSON_PROPERTY_CAR_RENTAL_LOCATION_CITY = "carRental.locationCity"; private String carRentalLocationCity; - public static final String JSON_PROPERTY_CAR_RENTAL_LOCATION_COUNTRY = "carRental.locationCountry"; + public static final String JSON_PROPERTY_CAR_RENTAL_LOCATION_COUNTRY = + "carRental.locationCountry"; private String carRentalLocationCountry; - public static final String JSON_PROPERTY_CAR_RENTAL_LOCATION_STATE_PROVINCE = "carRental.locationStateProvince"; + public static final String JSON_PROPERTY_CAR_RENTAL_LOCATION_STATE_PROVINCE = + "carRental.locationStateProvince"; private String carRentalLocationStateProvince; - public static final String JSON_PROPERTY_CAR_RENTAL_NO_SHOW_INDICATOR = "carRental.noShowIndicator"; + public static final String JSON_PROPERTY_CAR_RENTAL_NO_SHOW_INDICATOR = + "carRental.noShowIndicator"; private String carRentalNoShowIndicator; - public static final String JSON_PROPERTY_CAR_RENTAL_ONE_WAY_DROP_OFF_CHARGES = "carRental.oneWayDropOffCharges"; + public static final String JSON_PROPERTY_CAR_RENTAL_ONE_WAY_DROP_OFF_CHARGES = + "carRental.oneWayDropOffCharges"; private String carRentalOneWayDropOffCharges; public static final String JSON_PROPERTY_CAR_RENTAL_RATE = "carRental.rate"; @@ -90,7 +86,8 @@ public class AdditionalDataCarRental { public static final String JSON_PROPERTY_CAR_RENTAL_RATE_INDICATOR = "carRental.rateIndicator"; private String carRentalRateIndicator; - public static final String JSON_PROPERTY_CAR_RENTAL_RENTAL_AGREEMENT_NUMBER = "carRental.rentalAgreementNumber"; + public static final String JSON_PROPERTY_CAR_RENTAL_RENTAL_AGREEMENT_NUMBER = + "carRental.rentalAgreementNumber"; private String carRentalRentalAgreementNumber; public static final String JSON_PROPERTY_CAR_RENTAL_RENTAL_CLASS_ID = "carRental.rentalClassId"; @@ -108,23 +105,27 @@ public class AdditionalDataCarRental { public static final String JSON_PROPERTY_CAR_RENTAL_RETURN_DATE = "carRental.returnDate"; private String carRentalReturnDate; - public static final String JSON_PROPERTY_CAR_RENTAL_RETURN_LOCATION_ID = "carRental.returnLocationId"; + public static final String JSON_PROPERTY_CAR_RENTAL_RETURN_LOCATION_ID = + "carRental.returnLocationId"; private String carRentalReturnLocationId; - public static final String JSON_PROPERTY_CAR_RENTAL_RETURN_STATE_PROVINCE = "carRental.returnStateProvince"; + public static final String JSON_PROPERTY_CAR_RENTAL_RETURN_STATE_PROVINCE = + "carRental.returnStateProvince"; private String carRentalReturnStateProvince; - public static final String JSON_PROPERTY_CAR_RENTAL_TAX_EXEMPT_INDICATOR = "carRental.taxExemptIndicator"; + public static final String JSON_PROPERTY_CAR_RENTAL_TAX_EXEMPT_INDICATOR = + "carRental.taxExemptIndicator"; private String carRentalTaxExemptIndicator; - public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION = "travelEntertainmentAuthData.duration"; + public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION = + "travelEntertainmentAuthData.duration"; private String travelEntertainmentAuthDataDuration; - public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET = "travelEntertainmentAuthData.market"; + public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET = + "travelEntertainmentAuthData.market"; private String travelEntertainmentAuthDataMarket; - public AdditionalDataCarRental() { - } + public AdditionalDataCarRental() {} /** * The pick-up date. * Date format: `yyyyMMdd` @@ -139,6 +140,7 @@ public AdditionalDataCarRental carRentalCheckOutDate(String carRentalCheckOutDat /** * The pick-up date. * Date format: `yyyyMMdd` + * * @return carRentalCheckOutDate The pick-up date. * Date format: `yyyyMMdd` */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_CHECK_OUT_DATE) @@ -159,19 +161,31 @@ public void setCarRentalCheckOutDate(String carRentalCheckOutDate) { } /** - * The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. + * The customer service phone number of the car rental company. * Format: Alphanumeric * + * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a + * space * Must not contain any special characters such as + or - *Must not be all zeros. * - * @param carRentalCustomerServiceTollFreeNumber The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. + * @param carRentalCustomerServiceTollFreeNumber The customer service phone number of the car + * rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 + * characters in length * Must not start with a space * Must not contain any special + * characters such as + or - *Must not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ - public AdditionalDataCarRental carRentalCustomerServiceTollFreeNumber(String carRentalCustomerServiceTollFreeNumber) { + public AdditionalDataCarRental carRentalCustomerServiceTollFreeNumber( + String carRentalCustomerServiceTollFreeNumber) { this.carRentalCustomerServiceTollFreeNumber = carRentalCustomerServiceTollFreeNumber; return this; } /** - * The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. - * @return carRentalCustomerServiceTollFreeNumber The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. + * The customer service phone number of the car rental company. * Format: Alphanumeric * + * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a + * space * Must not contain any special characters such as + or - *Must not be all zeros. + * + * @return carRentalCustomerServiceTollFreeNumber The customer service phone number of the car + * rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 + * characters in length * Must not start with a space * Must not contain any special + * characters such as + or - *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_CUSTOMER_SERVICE_TOLL_FREE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -180,20 +194,28 @@ public String getCarRentalCustomerServiceTollFreeNumber() { } /** - * The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. + * The customer service phone number of the car rental company. * Format: Alphanumeric * + * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a + * space * Must not contain any special characters such as + or - *Must not be all zeros. * - * @param carRentalCustomerServiceTollFreeNumber The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. + * @param carRentalCustomerServiceTollFreeNumber The customer service phone number of the car + * rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 + * characters in length * Must not start with a space * Must not contain any special + * characters such as + or - *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_CUSTOMER_SERVICE_TOLL_FREE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCarRentalCustomerServiceTollFreeNumber(String carRentalCustomerServiceTollFreeNumber) { + public void setCarRentalCustomerServiceTollFreeNumber( + String carRentalCustomerServiceTollFreeNumber) { this.carRentalCustomerServiceTollFreeNumber = carRentalCustomerServiceTollFreeNumber; } /** - * Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not be all spaces + * Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not + * be all spaces * - * @param carRentalDaysRented Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not be all spaces + * @param carRentalDaysRented Number of days for which the car is being rented. * Format: Numeric + * * maxLength: 4 * Must not be all spaces * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalDaysRented(String carRentalDaysRented) { @@ -202,8 +224,11 @@ public AdditionalDataCarRental carRentalDaysRented(String carRentalDaysRented) { } /** - * Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not be all spaces - * @return carRentalDaysRented Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not be all spaces + * Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not + * be all spaces + * + * @return carRentalDaysRented Number of days for which the car is being rented. * Format: Numeric + * * maxLength: 4 * Must not be all spaces */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_DAYS_RENTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -212,9 +237,11 @@ public String getCarRentalDaysRented() { } /** - * Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not be all spaces + * Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not + * be all spaces * - * @param carRentalDaysRented Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not be all spaces + * @param carRentalDaysRented Number of days for which the car is being rented. * Format: Numeric + * * maxLength: 4 * Must not be all spaces */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_DAYS_RENTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,9 +250,13 @@ public void setCarRentalDaysRented(String carRentalDaysRented) { } /** - * Any fuel charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 + * Any fuel charges associated with the rental, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * + * maxLength: 12 * - * @param carRentalFuelCharges Any fuel charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 + * @param carRentalFuelCharges Any fuel charges associated with the rental, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * + * maxLength: 12 * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalFuelCharges(String carRentalFuelCharges) { @@ -234,8 +265,13 @@ public AdditionalDataCarRental carRentalFuelCharges(String carRentalFuelCharges) } /** - * Any fuel charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 - * @return carRentalFuelCharges Any fuel charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 + * Any fuel charges associated with the rental, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * + * maxLength: 12 + * + * @return carRentalFuelCharges Any fuel charges associated with the rental, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * + * maxLength: 12 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_FUEL_CHARGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,9 +280,13 @@ public String getCarRentalFuelCharges() { } /** - * Any fuel charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 + * Any fuel charges associated with the rental, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * + * maxLength: 12 * - * @param carRentalFuelCharges Any fuel charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 + * @param carRentalFuelCharges Any fuel charges associated with the rental, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * + * maxLength: 12 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_FUEL_CHARGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -255,9 +295,13 @@ public void setCarRentalFuelCharges(String carRentalFuelCharges) { } /** - * Any insurance charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * Must not be all spaces *Must not be all zeros. + * Any insurance charges associated with the rental, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * + * maxLength: 12 * Must not be all spaces *Must not be all zeros. * - * @param carRentalInsuranceCharges Any insurance charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * Must not be all spaces *Must not be all zeros. + * @param carRentalInsuranceCharges Any insurance charges associated with the rental, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * + * maxLength: 12 * Must not be all spaces *Must not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalInsuranceCharges(String carRentalInsuranceCharges) { @@ -266,8 +310,13 @@ public AdditionalDataCarRental carRentalInsuranceCharges(String carRentalInsuran } /** - * Any insurance charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * Must not be all spaces *Must not be all zeros. - * @return carRentalInsuranceCharges Any insurance charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * Must not be all spaces *Must not be all zeros. + * Any insurance charges associated with the rental, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * + * maxLength: 12 * Must not be all spaces *Must not be all zeros. + * + * @return carRentalInsuranceCharges Any insurance charges associated with the rental, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * + * maxLength: 12 * Must not be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_INSURANCE_CHARGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -276,9 +325,13 @@ public String getCarRentalInsuranceCharges() { } /** - * Any insurance charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * Must not be all spaces *Must not be all zeros. + * Any insurance charges associated with the rental, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * + * maxLength: 12 * Must not be all spaces *Must not be all zeros. * - * @param carRentalInsuranceCharges Any insurance charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * Must not be all spaces *Must not be all zeros. + * @param carRentalInsuranceCharges Any insurance charges associated with the rental, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * + * maxLength: 12 * Must not be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_INSURANCE_CHARGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -287,9 +340,11 @@ public void setCarRentalInsuranceCharges(String carRentalInsuranceCharges) { } /** - * The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with + * a space or be all spaces *Must not be all zeros. * - * @param carRentalLocationCity The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalLocationCity The city where the car is rented. * Format: Alphanumeric * + * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalLocationCity(String carRentalLocationCity) { @@ -298,8 +353,11 @@ public AdditionalDataCarRental carRentalLocationCity(String carRentalLocationCit } /** - * The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. - * @return carRentalLocationCity The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with + * a space or be all spaces *Must not be all zeros. + * + * @return carRentalLocationCity The city where the car is rented. * Format: Alphanumeric * + * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_LOCATION_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -308,9 +366,11 @@ public String getCarRentalLocationCity() { } /** - * The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with + * a space or be all spaces *Must not be all zeros. * - * @param carRentalLocationCity The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalLocationCity The city where the car is rented. * Format: Alphanumeric * + * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_LOCATION_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -319,9 +379,13 @@ public void setCarRentalLocationCity(String carRentalLocationCity) { } /** - * The country where the car is rented, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 + * The country where the car is rented, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * + * maxLength: 2 * - * @param carRentalLocationCountry The country where the car is rented, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 + * @param carRentalLocationCountry The country where the car is rented, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * + * maxLength: 2 * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalLocationCountry(String carRentalLocationCountry) { @@ -330,8 +394,13 @@ public AdditionalDataCarRental carRentalLocationCountry(String carRentalLocation } /** - * The country where the car is rented, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 - * @return carRentalLocationCountry The country where the car is rented, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 + * The country where the car is rented, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * + * maxLength: 2 + * + * @return carRentalLocationCountry The country where the car is rented, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * + * maxLength: 2 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_LOCATION_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -340,9 +409,13 @@ public String getCarRentalLocationCountry() { } /** - * The country where the car is rented, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 + * The country where the car is rented, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * + * maxLength: 2 * - * @param carRentalLocationCountry The country where the car is rented, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 + * @param carRentalLocationCountry The country where the car is rented, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * + * maxLength: 2 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_LOCATION_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -351,19 +424,27 @@ public void setCarRentalLocationCountry(String carRentalLocationCountry) { } /** - * The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all zeros. + * The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not + * start with a space or be all spaces *Must not be all zeros. * - * @param carRentalLocationStateProvince The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalLocationStateProvince The state or province where the car is rented. * Format: + * Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all + * zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ - public AdditionalDataCarRental carRentalLocationStateProvince(String carRentalLocationStateProvince) { + public AdditionalDataCarRental carRentalLocationStateProvince( + String carRentalLocationStateProvince) { this.carRentalLocationStateProvince = carRentalLocationStateProvince; return this; } /** - * The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all zeros. - * @return carRentalLocationStateProvince The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all zeros. + * The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not + * start with a space or be all spaces *Must not be all zeros. + * + * @return carRentalLocationStateProvince The state or province where the car is rented. * Format: + * Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all + * zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_LOCATION_STATE_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -372,9 +453,12 @@ public String getCarRentalLocationStateProvince() { } /** - * The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all zeros. + * The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not + * start with a space or be all spaces *Must not be all zeros. * - * @param carRentalLocationStateProvince The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalLocationStateProvince The state or province where the car is rented. * Format: + * Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all + * zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_LOCATION_STATE_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -383,9 +467,11 @@ public void setCarRentalLocationStateProvince(String carRentalLocationStateProvi } /** - * Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up their car * N - Not applicable + * Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up + * their car * N - Not applicable * - * @param carRentalNoShowIndicator Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up their car * N - Not applicable + * @param carRentalNoShowIndicator Indicates if the customer didn't pick up their rental car. + * * Y - Customer did not pick up their car * N - Not applicable * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalNoShowIndicator(String carRentalNoShowIndicator) { @@ -394,8 +480,11 @@ public AdditionalDataCarRental carRentalNoShowIndicator(String carRentalNoShowIn } /** - * Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up their car * N - Not applicable - * @return carRentalNoShowIndicator Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up their car * N - Not applicable + * Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up + * their car * N - Not applicable + * + * @return carRentalNoShowIndicator Indicates if the customer didn't pick up their rental car. + * * Y - Customer did not pick up their car * N - Not applicable */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_NO_SHOW_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -404,9 +493,11 @@ public String getCarRentalNoShowIndicator() { } /** - * Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up their car * N - Not applicable + * Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up + * their car * N - Not applicable * - * @param carRentalNoShowIndicator Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up their car * N - Not applicable + * @param carRentalNoShowIndicator Indicates if the customer didn't pick up their rental car. + * * Y - Customer did not pick up their car * N - Not applicable */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_NO_SHOW_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -415,19 +506,27 @@ public void setCarRentalNoShowIndicator(String carRentalNoShowIndicator) { } /** - * The charge for not returning a car to the original rental location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 + * The charge for not returning a car to the original rental location, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 * - * @param carRentalOneWayDropOffCharges The charge for not returning a car to the original rental location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 + * @param carRentalOneWayDropOffCharges The charge for not returning a car to the original rental + * location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * + * maxLength: 12 * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ - public AdditionalDataCarRental carRentalOneWayDropOffCharges(String carRentalOneWayDropOffCharges) { + public AdditionalDataCarRental carRentalOneWayDropOffCharges( + String carRentalOneWayDropOffCharges) { this.carRentalOneWayDropOffCharges = carRentalOneWayDropOffCharges; return this; } /** - * The charge for not returning a car to the original rental location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 - * @return carRentalOneWayDropOffCharges The charge for not returning a car to the original rental location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 + * The charge for not returning a car to the original rental location, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 + * + * @return carRentalOneWayDropOffCharges The charge for not returning a car to the original rental + * location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * + * maxLength: 12 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_ONE_WAY_DROP_OFF_CHARGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -436,9 +535,12 @@ public String getCarRentalOneWayDropOffCharges() { } /** - * The charge for not returning a car to the original rental location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 + * The charge for not returning a car to the original rental location, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 * - * @param carRentalOneWayDropOffCharges The charge for not returning a car to the original rental location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 + * @param carRentalOneWayDropOffCharges The charge for not returning a car to the original rental + * location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * + * maxLength: 12 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_ONE_WAY_DROP_OFF_CHARGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -447,9 +549,13 @@ public void setCarRentalOneWayDropOffCharges(String carRentalOneWayDropOffCharge } /** - * The daily rental rate, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * maxLength: 12 + * The daily rental rate, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * + * maxLength: 12 * - * @param carRentalRate The daily rental rate, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * maxLength: 12 + * @param carRentalRate The daily rental rate, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric + * * maxLength: 12 * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalRate(String carRentalRate) { @@ -458,8 +564,13 @@ public AdditionalDataCarRental carRentalRate(String carRentalRate) { } /** - * The daily rental rate, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * maxLength: 12 - * @return carRentalRate The daily rental rate, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * maxLength: 12 + * The daily rental rate, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * + * maxLength: 12 + * + * @return carRentalRate The daily rental rate, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric + * * maxLength: 12 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -468,9 +579,13 @@ public String getCarRentalRate() { } /** - * The daily rental rate, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * maxLength: 12 + * The daily rental rate, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * + * maxLength: 12 * - * @param carRentalRate The daily rental rate, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * maxLength: 12 + * @param carRentalRate The daily rental rate, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric + * * maxLength: 12 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -481,7 +596,8 @@ public void setCarRentalRate(String carRentalRate) { /** * Specifies whether the given rate is applied daily or weekly. * D - Daily rate * W - Weekly rate * - * @param carRentalRateIndicator Specifies whether the given rate is applied daily or weekly. * D - Daily rate * W - Weekly rate + * @param carRentalRateIndicator Specifies whether the given rate is applied daily or weekly. * D + * - Daily rate * W - Weekly rate * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalRateIndicator(String carRentalRateIndicator) { @@ -491,7 +607,9 @@ public AdditionalDataCarRental carRentalRateIndicator(String carRentalRateIndica /** * Specifies whether the given rate is applied daily or weekly. * D - Daily rate * W - Weekly rate - * @return carRentalRateIndicator Specifies whether the given rate is applied daily or weekly. * D - Daily rate * W - Weekly rate + * + * @return carRentalRateIndicator Specifies whether the given rate is applied daily or weekly. * D + * - Daily rate * W - Weekly rate */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RATE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -502,7 +620,8 @@ public String getCarRentalRateIndicator() { /** * Specifies whether the given rate is applied daily or weekly. * D - Daily rate * W - Weekly rate * - * @param carRentalRateIndicator Specifies whether the given rate is applied daily or weekly. * D - Daily rate * W - Weekly rate + * @param carRentalRateIndicator Specifies whether the given rate is applied daily or weekly. * D + * - Daily rate * W - Weekly rate */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RATE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -511,19 +630,27 @@ public void setCarRentalRateIndicator(String carRentalRateIndicator) { } /** - * The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all zeros. + * The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must + * not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalRentalAgreementNumber The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalRentalAgreementNumber The rental agreement number for the car rental. * Format: + * Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all + * zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ - public AdditionalDataCarRental carRentalRentalAgreementNumber(String carRentalRentalAgreementNumber) { + public AdditionalDataCarRental carRentalRentalAgreementNumber( + String carRentalRentalAgreementNumber) { this.carRentalRentalAgreementNumber = carRentalRentalAgreementNumber; return this; } /** - * The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all zeros. - * @return carRentalRentalAgreementNumber The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all zeros. + * The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must + * not start with a space or be all spaces *Must not be all zeros. + * + * @return carRentalRentalAgreementNumber The rental agreement number for the car rental. * + * Format: Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must + * not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RENTAL_AGREEMENT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -532,9 +659,12 @@ public String getCarRentalRentalAgreementNumber() { } /** - * The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all zeros. + * The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must + * not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalRentalAgreementNumber The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalRentalAgreementNumber The rental agreement number for the car rental. * Format: + * Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all + * zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RENTAL_AGREEMENT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -543,9 +673,11 @@ public void setCarRentalRentalAgreementNumber(String carRentalRentalAgreementNum } /** - * The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. + * The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start + * with a space or be all spaces *Must not be all zeros. * - * @param carRentalRentalClassId The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalRentalClassId The classification of the rental car. * Format: Alphanumeric * + * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalRentalClassId(String carRentalRentalClassId) { @@ -554,8 +686,11 @@ public AdditionalDataCarRental carRentalRentalClassId(String carRentalRentalClas } /** - * The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. - * @return carRentalRentalClassId The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. + * The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start + * with a space or be all spaces *Must not be all zeros. + * + * @return carRentalRentalClassId The classification of the rental car. * Format: Alphanumeric * + * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RENTAL_CLASS_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -564,9 +699,11 @@ public String getCarRentalRentalClassId() { } /** - * The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. + * The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start + * with a space or be all spaces *Must not be all zeros. * - * @param carRentalRentalClassId The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalRentalClassId The classification of the rental car. * Format: Alphanumeric * + * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RENTAL_CLASS_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -575,9 +712,13 @@ public void setCarRentalRentalClassId(String carRentalRentalClassId) { } /** - * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start with a space or be all spaces *Must not be all zeros. + * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send + * more than 26 characters, the name is truncated * Must not start with a space or be all spaces + * *Must not be all zeros. * - * @param carRentalRenterName The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalRenterName The name of the person renting the car. * Format: Alphanumeric * + * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start + * with a space or be all spaces *Must not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalRenterName(String carRentalRenterName) { @@ -586,8 +727,13 @@ public AdditionalDataCarRental carRentalRenterName(String carRentalRenterName) { } /** - * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start with a space or be all spaces *Must not be all zeros. - * @return carRentalRenterName The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start with a space or be all spaces *Must not be all zeros. + * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send + * more than 26 characters, the name is truncated * Must not start with a space or be all spaces + * *Must not be all zeros. + * + * @return carRentalRenterName The name of the person renting the car. * Format: Alphanumeric * + * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start + * with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RENTER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -596,9 +742,13 @@ public String getCarRentalRenterName() { } /** - * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start with a space or be all spaces *Must not be all zeros. + * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send + * more than 26 characters, the name is truncated * Must not start with a space or be all spaces + * *Must not be all zeros. * - * @param carRentalRenterName The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalRenterName The name of the person renting the car. * Format: Alphanumeric * + * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start + * with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RENTER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -607,9 +757,11 @@ public void setCarRentalRenterName(String carRentalRenterName) { } /** - * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not + * start with a space or be all spaces *Must not be all zeros. * - * @param carRentalReturnCity The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalReturnCity The city where the car must be returned. * Format: Alphanumeric * + * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalReturnCity(String carRentalReturnCity) { @@ -618,8 +770,11 @@ public AdditionalDataCarRental carRentalReturnCity(String carRentalReturnCity) { } /** - * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. - * @return carRentalReturnCity The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not + * start with a space or be all spaces *Must not be all zeros. + * + * @return carRentalReturnCity The city where the car must be returned. * Format: Alphanumeric * + * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -628,9 +783,11 @@ public String getCarRentalReturnCity() { } /** - * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not + * start with a space or be all spaces *Must not be all zeros. * - * @param carRentalReturnCity The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalReturnCity The city where the car must be returned. * Format: Alphanumeric * + * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -639,9 +796,13 @@ public void setCarRentalReturnCity(String carRentalReturnCity) { } /** - * The country where the car must be returned, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 + * The country where the car must be returned, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * + * maxLength: 2 * - * @param carRentalReturnCountry The country where the car must be returned, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 + * @param carRentalReturnCountry The country where the car must be returned, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * + * maxLength: 2 * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalReturnCountry(String carRentalReturnCountry) { @@ -650,8 +811,13 @@ public AdditionalDataCarRental carRentalReturnCountry(String carRentalReturnCoun } /** - * The country where the car must be returned, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 - * @return carRentalReturnCountry The country where the car must be returned, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 + * The country where the car must be returned, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * + * maxLength: 2 + * + * @return carRentalReturnCountry The country where the car must be returned, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * + * maxLength: 2 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -660,9 +826,13 @@ public String getCarRentalReturnCountry() { } /** - * The country where the car must be returned, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 + * The country where the car must be returned, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * + * maxLength: 2 * - * @param carRentalReturnCountry The country where the car must be returned, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 + * @param carRentalReturnCountry The country where the car must be returned, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * + * maxLength: 2 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -673,7 +843,8 @@ public void setCarRentalReturnCountry(String carRentalReturnCountry) { /** * The last date to return the car by. * Date format: `yyyyMMdd` * maxLength: 8 * - * @param carRentalReturnDate The last date to return the car by. * Date format: `yyyyMMdd` * maxLength: 8 + * @param carRentalReturnDate The last date to return the car by. * Date format: + * `yyyyMMdd` * maxLength: 8 * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalReturnDate(String carRentalReturnDate) { @@ -683,7 +854,9 @@ public AdditionalDataCarRental carRentalReturnDate(String carRentalReturnDate) { /** * The last date to return the car by. * Date format: `yyyyMMdd` * maxLength: 8 - * @return carRentalReturnDate The last date to return the car by. * Date format: `yyyyMMdd` * maxLength: 8 + * + * @return carRentalReturnDate The last date to return the car by. * Date format: + * `yyyyMMdd` * maxLength: 8 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -694,7 +867,8 @@ public String getCarRentalReturnDate() { /** * The last date to return the car by. * Date format: `yyyyMMdd` * maxLength: 8 * - * @param carRentalReturnDate The last date to return the car by. * Date format: `yyyyMMdd` * maxLength: 8 + * @param carRentalReturnDate The last date to return the car by. * Date format: + * `yyyyMMdd` * maxLength: 8 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -703,9 +877,12 @@ public void setCarRentalReturnDate(String carRentalReturnDate) { } /** - * The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must not be all zeros. + * The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * + * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalReturnLocationId The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalReturnLocationId The agency code, phone number, or address abbreviation * + * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must + * not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalReturnLocationId(String carRentalReturnLocationId) { @@ -714,8 +891,12 @@ public AdditionalDataCarRental carRentalReturnLocationId(String carRentalReturnL } /** - * The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must not be all zeros. - * @return carRentalReturnLocationId The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must not be all zeros. + * The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * + * Must not start with a space or be all spaces *Must not be all zeros. + * + * @return carRentalReturnLocationId The agency code, phone number, or address abbreviation * + * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must + * not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -724,9 +905,12 @@ public String getCarRentalReturnLocationId() { } /** - * The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must not be all zeros. + * The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * + * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalReturnLocationId The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalReturnLocationId The agency code, phone number, or address abbreviation * + * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must + * not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -735,9 +919,12 @@ public void setCarRentalReturnLocationId(String carRentalReturnLocationId) { } /** - * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must not be all zeros. + * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * + * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalReturnStateProvince The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalReturnStateProvince The state or province where the car must be returned. * + * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must + * not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalReturnStateProvince(String carRentalReturnStateProvince) { @@ -746,8 +933,12 @@ public AdditionalDataCarRental carRentalReturnStateProvince(String carRentalRetu } /** - * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must not be all zeros. - * @return carRentalReturnStateProvince The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must not be all zeros. + * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * + * Must not start with a space or be all spaces *Must not be all zeros. + * + * @return carRentalReturnStateProvince The state or province where the car must be returned. * + * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must + * not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_STATE_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -756,9 +947,12 @@ public String getCarRentalReturnStateProvince() { } /** - * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must not be all zeros. + * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * + * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalReturnStateProvince The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalReturnStateProvince The state or province where the car must be returned. * + * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must + * not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_STATE_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -767,9 +961,12 @@ public void setCarRentalReturnStateProvince(String carRentalReturnStateProvince) } /** - * Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not collected + * Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y + * - Goods or services were tax exempt * N - Tax was not collected * - * @param carRentalTaxExemptIndicator Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not collected + * @param carRentalTaxExemptIndicator Indicates if the goods or services were tax-exempt, or if + * tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not + * collected * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalTaxExemptIndicator(String carRentalTaxExemptIndicator) { @@ -778,8 +975,12 @@ public AdditionalDataCarRental carRentalTaxExemptIndicator(String carRentalTaxEx } /** - * Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not collected - * @return carRentalTaxExemptIndicator Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not collected + * Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y + * - Goods or services were tax exempt * N - Tax was not collected + * + * @return carRentalTaxExemptIndicator Indicates if the goods or services were tax-exempt, or if + * tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not + * collected */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_TAX_EXEMPT_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -788,9 +989,12 @@ public String getCarRentalTaxExemptIndicator() { } /** - * Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not collected + * Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y + * - Goods or services were tax exempt * N - Tax was not collected * - * @param carRentalTaxExemptIndicator Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not collected + * @param carRentalTaxExemptIndicator Indicates if the goods or services were tax-exempt, or if + * tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not + * collected */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_TAX_EXEMPT_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -799,19 +1003,25 @@ public void setCarRentalTaxExemptIndicator(String carRentalTaxExemptIndicator) { } /** - * Number of days the car is rented for. This should be included in the auth message. * Format: Numeric * maxLength: 4 + * Number of days the car is rented for. This should be included in the auth message. * Format: + * Numeric * maxLength: 4 * - * @param travelEntertainmentAuthDataDuration Number of days the car is rented for. This should be included in the auth message. * Format: Numeric * maxLength: 4 + * @param travelEntertainmentAuthDataDuration Number of days the car is rented for. This should be + * included in the auth message. * Format: Numeric * maxLength: 4 * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ - public AdditionalDataCarRental travelEntertainmentAuthDataDuration(String travelEntertainmentAuthDataDuration) { + public AdditionalDataCarRental travelEntertainmentAuthDataDuration( + String travelEntertainmentAuthDataDuration) { this.travelEntertainmentAuthDataDuration = travelEntertainmentAuthDataDuration; return this; } /** - * Number of days the car is rented for. This should be included in the auth message. * Format: Numeric * maxLength: 4 - * @return travelEntertainmentAuthDataDuration Number of days the car is rented for. This should be included in the auth message. * Format: Numeric * maxLength: 4 + * Number of days the car is rented for. This should be included in the auth message. * Format: + * Numeric * maxLength: 4 + * + * @return travelEntertainmentAuthDataDuration Number of days the car is rented for. This should + * be included in the auth message. * Format: Numeric * maxLength: 4 */ @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -820,9 +1030,11 @@ public String getTravelEntertainmentAuthDataDuration() { } /** - * Number of days the car is rented for. This should be included in the auth message. * Format: Numeric * maxLength: 4 + * Number of days the car is rented for. This should be included in the auth message. * Format: + * Numeric * maxLength: 4 * - * @param travelEntertainmentAuthDataDuration Number of days the car is rented for. This should be included in the auth message. * Format: Numeric * maxLength: 4 + * @param travelEntertainmentAuthDataDuration Number of days the car is rented for. This should be + * included in the auth message. * Format: Numeric * maxLength: 4 */ @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -831,19 +1043,29 @@ public void setTravelEntertainmentAuthDataDuration(String travelEntertainmentAut } /** - * Indicates what market-specific dataset will be submitted or is being submitted. Value should be 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 + * Indicates what market-specific dataset will be submitted or is being submitted. Value should be + * 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric + * * maxLength: 1 * - * @param travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be submitted or is being submitted. Value should be 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 + * @param travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be + * submitted or is being submitted. Value should be 'A' for car rental. This should be + * included in the auth message. * Format: Alphanumeric * maxLength: 1 * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ - public AdditionalDataCarRental travelEntertainmentAuthDataMarket(String travelEntertainmentAuthDataMarket) { + public AdditionalDataCarRental travelEntertainmentAuthDataMarket( + String travelEntertainmentAuthDataMarket) { this.travelEntertainmentAuthDataMarket = travelEntertainmentAuthDataMarket; return this; } /** - * Indicates what market-specific dataset will be submitted or is being submitted. Value should be 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 - * @return travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be submitted or is being submitted. Value should be 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 + * Indicates what market-specific dataset will be submitted or is being submitted. Value should be + * 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric + * * maxLength: 1 + * + * @return travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be + * submitted or is being submitted. Value should be 'A' for car rental. This should be + * included in the auth message. * Format: Alphanumeric * maxLength: 1 */ @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -852,9 +1074,13 @@ public String getTravelEntertainmentAuthDataMarket() { } /** - * Indicates what market-specific dataset will be submitted or is being submitted. Value should be 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 + * Indicates what market-specific dataset will be submitted or is being submitted. Value should be + * 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric + * * maxLength: 1 * - * @param travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be submitted or is being submitted. Value should be 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 + * @param travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be + * submitted or is being submitted. Value should be 'A' for car rental. This should be + * included in the auth message. * Format: Alphanumeric * maxLength: 1 */ @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -862,9 +1088,7 @@ public void setTravelEntertainmentAuthDataMarket(String travelEntertainmentAuthD this.travelEntertainmentAuthDataMarket = travelEntertainmentAuthDataMarket; } - /** - * Return true if this AdditionalDataCarRental object is equal to o. - */ + /** Return true if this AdditionalDataCarRental object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -874,70 +1098,157 @@ public boolean equals(Object o) { return false; } AdditionalDataCarRental additionalDataCarRental = (AdditionalDataCarRental) o; - return Objects.equals(this.carRentalCheckOutDate, additionalDataCarRental.carRentalCheckOutDate) && - Objects.equals(this.carRentalCustomerServiceTollFreeNumber, additionalDataCarRental.carRentalCustomerServiceTollFreeNumber) && - Objects.equals(this.carRentalDaysRented, additionalDataCarRental.carRentalDaysRented) && - Objects.equals(this.carRentalFuelCharges, additionalDataCarRental.carRentalFuelCharges) && - Objects.equals(this.carRentalInsuranceCharges, additionalDataCarRental.carRentalInsuranceCharges) && - Objects.equals(this.carRentalLocationCity, additionalDataCarRental.carRentalLocationCity) && - Objects.equals(this.carRentalLocationCountry, additionalDataCarRental.carRentalLocationCountry) && - Objects.equals(this.carRentalLocationStateProvince, additionalDataCarRental.carRentalLocationStateProvince) && - Objects.equals(this.carRentalNoShowIndicator, additionalDataCarRental.carRentalNoShowIndicator) && - Objects.equals(this.carRentalOneWayDropOffCharges, additionalDataCarRental.carRentalOneWayDropOffCharges) && - Objects.equals(this.carRentalRate, additionalDataCarRental.carRentalRate) && - Objects.equals(this.carRentalRateIndicator, additionalDataCarRental.carRentalRateIndicator) && - Objects.equals(this.carRentalRentalAgreementNumber, additionalDataCarRental.carRentalRentalAgreementNumber) && - Objects.equals(this.carRentalRentalClassId, additionalDataCarRental.carRentalRentalClassId) && - Objects.equals(this.carRentalRenterName, additionalDataCarRental.carRentalRenterName) && - Objects.equals(this.carRentalReturnCity, additionalDataCarRental.carRentalReturnCity) && - Objects.equals(this.carRentalReturnCountry, additionalDataCarRental.carRentalReturnCountry) && - Objects.equals(this.carRentalReturnDate, additionalDataCarRental.carRentalReturnDate) && - Objects.equals(this.carRentalReturnLocationId, additionalDataCarRental.carRentalReturnLocationId) && - Objects.equals(this.carRentalReturnStateProvince, additionalDataCarRental.carRentalReturnStateProvince) && - Objects.equals(this.carRentalTaxExemptIndicator, additionalDataCarRental.carRentalTaxExemptIndicator) && - Objects.equals(this.travelEntertainmentAuthDataDuration, additionalDataCarRental.travelEntertainmentAuthDataDuration) && - Objects.equals(this.travelEntertainmentAuthDataMarket, additionalDataCarRental.travelEntertainmentAuthDataMarket); + return Objects.equals(this.carRentalCheckOutDate, additionalDataCarRental.carRentalCheckOutDate) + && Objects.equals( + this.carRentalCustomerServiceTollFreeNumber, + additionalDataCarRental.carRentalCustomerServiceTollFreeNumber) + && Objects.equals(this.carRentalDaysRented, additionalDataCarRental.carRentalDaysRented) + && Objects.equals(this.carRentalFuelCharges, additionalDataCarRental.carRentalFuelCharges) + && Objects.equals( + this.carRentalInsuranceCharges, additionalDataCarRental.carRentalInsuranceCharges) + && Objects.equals(this.carRentalLocationCity, additionalDataCarRental.carRentalLocationCity) + && Objects.equals( + this.carRentalLocationCountry, additionalDataCarRental.carRentalLocationCountry) + && Objects.equals( + this.carRentalLocationStateProvince, + additionalDataCarRental.carRentalLocationStateProvince) + && Objects.equals( + this.carRentalNoShowIndicator, additionalDataCarRental.carRentalNoShowIndicator) + && Objects.equals( + this.carRentalOneWayDropOffCharges, + additionalDataCarRental.carRentalOneWayDropOffCharges) + && Objects.equals(this.carRentalRate, additionalDataCarRental.carRentalRate) + && Objects.equals( + this.carRentalRateIndicator, additionalDataCarRental.carRentalRateIndicator) + && Objects.equals( + this.carRentalRentalAgreementNumber, + additionalDataCarRental.carRentalRentalAgreementNumber) + && Objects.equals( + this.carRentalRentalClassId, additionalDataCarRental.carRentalRentalClassId) + && Objects.equals(this.carRentalRenterName, additionalDataCarRental.carRentalRenterName) + && Objects.equals(this.carRentalReturnCity, additionalDataCarRental.carRentalReturnCity) + && Objects.equals( + this.carRentalReturnCountry, additionalDataCarRental.carRentalReturnCountry) + && Objects.equals(this.carRentalReturnDate, additionalDataCarRental.carRentalReturnDate) + && Objects.equals( + this.carRentalReturnLocationId, additionalDataCarRental.carRentalReturnLocationId) + && Objects.equals( + this.carRentalReturnStateProvince, additionalDataCarRental.carRentalReturnStateProvince) + && Objects.equals( + this.carRentalTaxExemptIndicator, additionalDataCarRental.carRentalTaxExemptIndicator) + && Objects.equals( + this.travelEntertainmentAuthDataDuration, + additionalDataCarRental.travelEntertainmentAuthDataDuration) + && Objects.equals( + this.travelEntertainmentAuthDataMarket, + additionalDataCarRental.travelEntertainmentAuthDataMarket); } @Override public int hashCode() { - return Objects.hash(carRentalCheckOutDate, carRentalCustomerServiceTollFreeNumber, carRentalDaysRented, carRentalFuelCharges, carRentalInsuranceCharges, carRentalLocationCity, carRentalLocationCountry, carRentalLocationStateProvince, carRentalNoShowIndicator, carRentalOneWayDropOffCharges, carRentalRate, carRentalRateIndicator, carRentalRentalAgreementNumber, carRentalRentalClassId, carRentalRenterName, carRentalReturnCity, carRentalReturnCountry, carRentalReturnDate, carRentalReturnLocationId, carRentalReturnStateProvince, carRentalTaxExemptIndicator, travelEntertainmentAuthDataDuration, travelEntertainmentAuthDataMarket); + return Objects.hash( + carRentalCheckOutDate, + carRentalCustomerServiceTollFreeNumber, + carRentalDaysRented, + carRentalFuelCharges, + carRentalInsuranceCharges, + carRentalLocationCity, + carRentalLocationCountry, + carRentalLocationStateProvince, + carRentalNoShowIndicator, + carRentalOneWayDropOffCharges, + carRentalRate, + carRentalRateIndicator, + carRentalRentalAgreementNumber, + carRentalRentalClassId, + carRentalRenterName, + carRentalReturnCity, + carRentalReturnCountry, + carRentalReturnDate, + carRentalReturnLocationId, + carRentalReturnStateProvince, + carRentalTaxExemptIndicator, + travelEntertainmentAuthDataDuration, + travelEntertainmentAuthDataMarket); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataCarRental {\n"); - sb.append(" carRentalCheckOutDate: ").append(toIndentedString(carRentalCheckOutDate)).append("\n"); - sb.append(" carRentalCustomerServiceTollFreeNumber: ").append(toIndentedString(carRentalCustomerServiceTollFreeNumber)).append("\n"); - sb.append(" carRentalDaysRented: ").append(toIndentedString(carRentalDaysRented)).append("\n"); - sb.append(" carRentalFuelCharges: ").append(toIndentedString(carRentalFuelCharges)).append("\n"); - sb.append(" carRentalInsuranceCharges: ").append(toIndentedString(carRentalInsuranceCharges)).append("\n"); - sb.append(" carRentalLocationCity: ").append(toIndentedString(carRentalLocationCity)).append("\n"); - sb.append(" carRentalLocationCountry: ").append(toIndentedString(carRentalLocationCountry)).append("\n"); - sb.append(" carRentalLocationStateProvince: ").append(toIndentedString(carRentalLocationStateProvince)).append("\n"); - sb.append(" carRentalNoShowIndicator: ").append(toIndentedString(carRentalNoShowIndicator)).append("\n"); - sb.append(" carRentalOneWayDropOffCharges: ").append(toIndentedString(carRentalOneWayDropOffCharges)).append("\n"); + sb.append(" carRentalCheckOutDate: ") + .append(toIndentedString(carRentalCheckOutDate)) + .append("\n"); + sb.append(" carRentalCustomerServiceTollFreeNumber: ") + .append(toIndentedString(carRentalCustomerServiceTollFreeNumber)) + .append("\n"); + sb.append(" carRentalDaysRented: ") + .append(toIndentedString(carRentalDaysRented)) + .append("\n"); + sb.append(" carRentalFuelCharges: ") + .append(toIndentedString(carRentalFuelCharges)) + .append("\n"); + sb.append(" carRentalInsuranceCharges: ") + .append(toIndentedString(carRentalInsuranceCharges)) + .append("\n"); + sb.append(" carRentalLocationCity: ") + .append(toIndentedString(carRentalLocationCity)) + .append("\n"); + sb.append(" carRentalLocationCountry: ") + .append(toIndentedString(carRentalLocationCountry)) + .append("\n"); + sb.append(" carRentalLocationStateProvince: ") + .append(toIndentedString(carRentalLocationStateProvince)) + .append("\n"); + sb.append(" carRentalNoShowIndicator: ") + .append(toIndentedString(carRentalNoShowIndicator)) + .append("\n"); + sb.append(" carRentalOneWayDropOffCharges: ") + .append(toIndentedString(carRentalOneWayDropOffCharges)) + .append("\n"); sb.append(" carRentalRate: ").append(toIndentedString(carRentalRate)).append("\n"); - sb.append(" carRentalRateIndicator: ").append(toIndentedString(carRentalRateIndicator)).append("\n"); - sb.append(" carRentalRentalAgreementNumber: ").append(toIndentedString(carRentalRentalAgreementNumber)).append("\n"); - sb.append(" carRentalRentalClassId: ").append(toIndentedString(carRentalRentalClassId)).append("\n"); - sb.append(" carRentalRenterName: ").append(toIndentedString(carRentalRenterName)).append("\n"); - sb.append(" carRentalReturnCity: ").append(toIndentedString(carRentalReturnCity)).append("\n"); - sb.append(" carRentalReturnCountry: ").append(toIndentedString(carRentalReturnCountry)).append("\n"); - sb.append(" carRentalReturnDate: ").append(toIndentedString(carRentalReturnDate)).append("\n"); - sb.append(" carRentalReturnLocationId: ").append(toIndentedString(carRentalReturnLocationId)).append("\n"); - sb.append(" carRentalReturnStateProvince: ").append(toIndentedString(carRentalReturnStateProvince)).append("\n"); - sb.append(" carRentalTaxExemptIndicator: ").append(toIndentedString(carRentalTaxExemptIndicator)).append("\n"); - sb.append(" travelEntertainmentAuthDataDuration: ").append(toIndentedString(travelEntertainmentAuthDataDuration)).append("\n"); - sb.append(" travelEntertainmentAuthDataMarket: ").append(toIndentedString(travelEntertainmentAuthDataMarket)).append("\n"); + sb.append(" carRentalRateIndicator: ") + .append(toIndentedString(carRentalRateIndicator)) + .append("\n"); + sb.append(" carRentalRentalAgreementNumber: ") + .append(toIndentedString(carRentalRentalAgreementNumber)) + .append("\n"); + sb.append(" carRentalRentalClassId: ") + .append(toIndentedString(carRentalRentalClassId)) + .append("\n"); + sb.append(" carRentalRenterName: ") + .append(toIndentedString(carRentalRenterName)) + .append("\n"); + sb.append(" carRentalReturnCity: ") + .append(toIndentedString(carRentalReturnCity)) + .append("\n"); + sb.append(" carRentalReturnCountry: ") + .append(toIndentedString(carRentalReturnCountry)) + .append("\n"); + sb.append(" carRentalReturnDate: ") + .append(toIndentedString(carRentalReturnDate)) + .append("\n"); + sb.append(" carRentalReturnLocationId: ") + .append(toIndentedString(carRentalReturnLocationId)) + .append("\n"); + sb.append(" carRentalReturnStateProvince: ") + .append(toIndentedString(carRentalReturnStateProvince)) + .append("\n"); + sb.append(" carRentalTaxExemptIndicator: ") + .append(toIndentedString(carRentalTaxExemptIndicator)) + .append("\n"); + sb.append(" travelEntertainmentAuthDataDuration: ") + .append(toIndentedString(travelEntertainmentAuthDataDuration)) + .append("\n"); + sb.append(" travelEntertainmentAuthDataMarket: ") + .append(toIndentedString(travelEntertainmentAuthDataMarket)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -946,21 +1257,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalDataCarRental given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataCarRental - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataCarRental + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalDataCarRental */ public static AdditionalDataCarRental fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataCarRental.class); } -/** - * Convert an instance of AdditionalDataCarRental to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalDataCarRental to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataCommon.java b/src/main/java/com/adyen/model/checkout/AdditionalDataCommon.java index 53c2252ab..5e60cc065 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataCommon.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataCommon.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * AdditionalDataCommon - */ +/** AdditionalDataCommon */ @JsonPropertyOrder({ AdditionalDataCommon.JSON_PROPERTY_REQUESTED_TEST_ACQUIRER_RESPONSE_CODE, AdditionalDataCommon.JSON_PROPERTY_REQUESTED_TEST_ERROR_RESPONSE_CODE, @@ -50,12 +45,13 @@ AdditionalDataCommon.JSON_PROPERTY_SUB_MERCHANT_STREET, AdditionalDataCommon.JSON_PROPERTY_SUB_MERCHANT_TAX_ID }) - public class AdditionalDataCommon { - public static final String JSON_PROPERTY_REQUESTED_TEST_ACQUIRER_RESPONSE_CODE = "RequestedTestAcquirerResponseCode"; + public static final String JSON_PROPERTY_REQUESTED_TEST_ACQUIRER_RESPONSE_CODE = + "RequestedTestAcquirerResponseCode"; private String requestedTestAcquirerResponseCode; - public static final String JSON_PROPERTY_REQUESTED_TEST_ERROR_RESPONSE_CODE = "RequestedTestErrorResponseCode"; + public static final String JSON_PROPERTY_REQUESTED_TEST_ERROR_RESPONSE_CODE = + "RequestedTestErrorResponseCode"; private String requestedTestErrorResponseCode; public static final String JSON_PROPERTY_ALLOW_PARTIAL_AUTH = "allowPartialAuth"; @@ -71,10 +67,14 @@ public class AdditionalDataCommon { private String customRoutingFlag; /** - * In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed. + * In case of [asynchronous authorisation + * adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), + * this field denotes why the additional payment is made. Possible values: * **NoShow**: An + * incremental charge is carried out because of a no-show for a guaranteed reservation. * + * **DelayedCharge**: An incremental charge is carried out to process an additional payment after + * the original services have been rendered and the respective payment has been processed. */ public enum IndustryUsageEnum { - NOSHOW(String.valueOf("NoShow")), DELAYEDCHARGE(String.valueOf("DelayedCharge")); @@ -84,7 +84,7 @@ public enum IndustryUsageEnum { private String value; IndustryUsageEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -105,7 +105,11 @@ public static IndustryUsageEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("IndustryUsageEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(IndustryUsageEnum.values())); + LOG.warning( + "IndustryUsageEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(IndustryUsageEnum.values())); return null; } } @@ -155,23 +159,36 @@ public static IndustryUsageEnum fromValue(String value) { public static final String JSON_PROPERTY_SUB_MERCHANT_TAX_ID = "subMerchantTaxId"; private String subMerchantTaxId; - public AdditionalDataCommon() { - } + public AdditionalDataCommon() {} /** - * Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing result codes and refusal reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the possible values, and the `refusalReason` values you can trigger. + * Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing + * result codes and refusal + * reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the + * possible values, and the `refusalReason` values you can trigger. * - * @param requestedTestAcquirerResponseCode Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing result codes and refusal reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the possible values, and the `refusalReason` values you can trigger. + * @param requestedTestAcquirerResponseCode Triggers test scenarios that allow to replicate + * certain acquirer response codes. See [Testing result codes and refusal + * reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about + * the possible values, and the `refusalReason` values you can trigger. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ - public AdditionalDataCommon requestedTestAcquirerResponseCode(String requestedTestAcquirerResponseCode) { + public AdditionalDataCommon requestedTestAcquirerResponseCode( + String requestedTestAcquirerResponseCode) { this.requestedTestAcquirerResponseCode = requestedTestAcquirerResponseCode; return this; } /** - * Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing result codes and refusal reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the possible values, and the `refusalReason` values you can trigger. - * @return requestedTestAcquirerResponseCode Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing result codes and refusal reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the possible values, and the `refusalReason` values you can trigger. + * Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing + * result codes and refusal + * reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the + * possible values, and the `refusalReason` values you can trigger. + * + * @return requestedTestAcquirerResponseCode Triggers test scenarios that allow to replicate + * certain acquirer response codes. See [Testing result codes and refusal + * reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about + * the possible values, and the `refusalReason` values you can trigger. */ @JsonProperty(JSON_PROPERTY_REQUESTED_TEST_ACQUIRER_RESPONSE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -180,9 +197,15 @@ public String getRequestedTestAcquirerResponseCode() { } /** - * Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing result codes and refusal reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the possible values, and the `refusalReason` values you can trigger. + * Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing + * result codes and refusal + * reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the + * possible values, and the `refusalReason` values you can trigger. * - * @param requestedTestAcquirerResponseCode Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing result codes and refusal reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the possible values, and the `refusalReason` values you can trigger. + * @param requestedTestAcquirerResponseCode Triggers test scenarios that allow to replicate + * certain acquirer response codes. See [Testing result codes and refusal + * reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about + * the possible values, and the `refusalReason` values you can trigger. */ @JsonProperty(JSON_PROPERTY_REQUESTED_TEST_ACQUIRER_RESPONSE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,19 +214,63 @@ public void setRequestedTestAcquirerResponseCode(String requestedTestAcquirerRes } /** - * Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response. + * Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * + * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing + * communication. This is a transient, retriable error since no messaging could be initiated to an + * issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true + * is returned in the response. A subsequent request using the same idempotency key will be + * processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong + * during transmission of the message or receiving the response. This is a classified as + * non-transient because the message could have been received by the issuing party and been acted + * upon. No transient error header is returned. If using idempotency, the (error) response is + * stored as the final result for the idempotency key. Subsequent messages with the same + * idempotency key not be processed beyond returning the stored response. * - * @param requestedTestErrorResponseCode Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response. + * @param requestedTestErrorResponseCode Triggers test scenarios that allow to replicate certain + * communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a + * connection available to service the outgoing communication. This is a transient, retriable + * error since no messaging could be initiated to an issuing system (or third-party acquiring + * system). Therefore, the header Transient-Error: true is returned in the response. A + * subsequent request using the same idempotency key will be processed as if it was the first + * request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the + * message or receiving the response. This is a classified as non-transient because the + * message could have been received by the issuing party and been acted upon. No transient + * error header is returned. If using idempotency, the (error) response is stored as the final + * result for the idempotency key. Subsequent messages with the same idempotency key not be + * processed beyond returning the stored response. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ - public AdditionalDataCommon requestedTestErrorResponseCode(String requestedTestErrorResponseCode) { + public AdditionalDataCommon requestedTestErrorResponseCode( + String requestedTestErrorResponseCode) { this.requestedTestErrorResponseCode = requestedTestErrorResponseCode; return this; } /** - * Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response. - * @return requestedTestErrorResponseCode Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response. + * Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * + * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing + * communication. This is a transient, retriable error since no messaging could be initiated to an + * issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true + * is returned in the response. A subsequent request using the same idempotency key will be + * processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong + * during transmission of the message or receiving the response. This is a classified as + * non-transient because the message could have been received by the issuing party and been acted + * upon. No transient error header is returned. If using idempotency, the (error) response is + * stored as the final result for the idempotency key. Subsequent messages with the same + * idempotency key not be processed beyond returning the stored response. + * + * @return requestedTestErrorResponseCode Triggers test scenarios that allow to replicate certain + * communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a + * connection available to service the outgoing communication. This is a transient, retriable + * error since no messaging could be initiated to an issuing system (or third-party acquiring + * system). Therefore, the header Transient-Error: true is returned in the response. A + * subsequent request using the same idempotency key will be processed as if it was the first + * request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the + * message or receiving the response. This is a classified as non-transient because the + * message could have been received by the issuing party and been acted upon. No transient + * error header is returned. If using idempotency, the (error) response is stored as the final + * result for the idempotency key. Subsequent messages with the same idempotency key not be + * processed beyond returning the stored response. */ @JsonProperty(JSON_PROPERTY_REQUESTED_TEST_ERROR_RESPONSE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -212,9 +279,30 @@ public String getRequestedTestErrorResponseCode() { } /** - * Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response. + * Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * + * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing + * communication. This is a transient, retriable error since no messaging could be initiated to an + * issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true + * is returned in the response. A subsequent request using the same idempotency key will be + * processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong + * during transmission of the message or receiving the response. This is a classified as + * non-transient because the message could have been received by the issuing party and been acted + * upon. No transient error header is returned. If using idempotency, the (error) response is + * stored as the final result for the idempotency key. Subsequent messages with the same + * idempotency key not be processed beyond returning the stored response. * - * @param requestedTestErrorResponseCode Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response. + * @param requestedTestErrorResponseCode Triggers test scenarios that allow to replicate certain + * communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a + * connection available to service the outgoing communication. This is a transient, retriable + * error since no messaging could be initiated to an issuing system (or third-party acquiring + * system). Therefore, the header Transient-Error: true is returned in the response. A + * subsequent request using the same idempotency key will be processed as if it was the first + * request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the + * message or receiving the response. This is a classified as non-transient because the + * message could have been received by the issuing party and been acted upon. No transient + * error header is returned. If using idempotency, the (error) response is stored as the final + * result for the idempotency key. Subsequent messages with the same idempotency key not be + * processed beyond returning the stored response. */ @JsonProperty(JSON_PROPERTY_REQUESTED_TEST_ERROR_RESPONSE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,9 +311,16 @@ public void setRequestedTestErrorResponseCode(String requestedTestErrorResponseC } /** - * Set to true to authorise a part of the requested amount in case the cardholder does not have enough funds on their account. If a payment was partially authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount in additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. + * Set to true to authorise a part of the requested amount in case the cardholder does not have + * enough funds on their account. If a payment was partially authorised, the response includes + * resultCode: PartiallyAuthorised and the authorised amount in + * additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. * - * @param allowPartialAuth Set to true to authorise a part of the requested amount in case the cardholder does not have enough funds on their account. If a payment was partially authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount in additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. + * @param allowPartialAuth Set to true to authorise a part of the requested amount in case the + * cardholder does not have enough funds on their account. If a payment was partially + * authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount + * in additionalData.authorisedAmountValue. To enable this functionality, contact our Support + * Team. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon allowPartialAuth(String allowPartialAuth) { @@ -234,8 +329,16 @@ public AdditionalDataCommon allowPartialAuth(String allowPartialAuth) { } /** - * Set to true to authorise a part of the requested amount in case the cardholder does not have enough funds on their account. If a payment was partially authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount in additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. - * @return allowPartialAuth Set to true to authorise a part of the requested amount in case the cardholder does not have enough funds on their account. If a payment was partially authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount in additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. + * Set to true to authorise a part of the requested amount in case the cardholder does not have + * enough funds on their account. If a payment was partially authorised, the response includes + * resultCode: PartiallyAuthorised and the authorised amount in + * additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. + * + * @return allowPartialAuth Set to true to authorise a part of the requested amount in case the + * cardholder does not have enough funds on their account. If a payment was partially + * authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount + * in additionalData.authorisedAmountValue. To enable this functionality, contact our Support + * Team. */ @JsonProperty(JSON_PROPERTY_ALLOW_PARTIAL_AUTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,9 +347,16 @@ public String getAllowPartialAuth() { } /** - * Set to true to authorise a part of the requested amount in case the cardholder does not have enough funds on their account. If a payment was partially authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount in additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. + * Set to true to authorise a part of the requested amount in case the cardholder does not have + * enough funds on their account. If a payment was partially authorised, the response includes + * resultCode: PartiallyAuthorised and the authorised amount in + * additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. * - * @param allowPartialAuth Set to true to authorise a part of the requested amount in case the cardholder does not have enough funds on their account. If a payment was partially authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount in additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. + * @param allowPartialAuth Set to true to authorise a part of the requested amount in case the + * cardholder does not have enough funds on their account. If a payment was partially + * authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount + * in additionalData.authorisedAmountValue. To enable this functionality, contact our Support + * Team. */ @JsonProperty(JSON_PROPERTY_ALLOW_PARTIAL_AUTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -255,9 +365,18 @@ public void setAllowPartialAuth(String allowPartialAuth) { } /** - * Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final authorisation. + * Flags a card payment request for either pre-authorisation or final authorisation. For more + * information, refer to [Authorisation + * types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). + * Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. + * * **FinalAuth** – flags the payment request to be handled as a final authorisation. * - * @param authorisationType Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final authorisation. + * @param authorisationType Flags a card payment request for either pre-authorisation or final + * authorisation. For more information, refer to [Authorisation + * types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). + * Allowed values: * **PreAuth** – flags the payment request to be handled as a + * pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final + * authorisation. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon authorisationType(String authorisationType) { @@ -266,8 +385,18 @@ public AdditionalDataCommon authorisationType(String authorisationType) { } /** - * Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final authorisation. - * @return authorisationType Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final authorisation. + * Flags a card payment request for either pre-authorisation or final authorisation. For more + * information, refer to [Authorisation + * types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). + * Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. + * * **FinalAuth** – flags the payment request to be handled as a final authorisation. + * + * @return authorisationType Flags a card payment request for either pre-authorisation or final + * authorisation. For more information, refer to [Authorisation + * types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). + * Allowed values: * **PreAuth** – flags the payment request to be handled as a + * pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final + * authorisation. */ @JsonProperty(JSON_PROPERTY_AUTHORISATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -276,9 +405,18 @@ public String getAuthorisationType() { } /** - * Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final authorisation. + * Flags a card payment request for either pre-authorisation or final authorisation. For more + * information, refer to [Authorisation + * types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). + * Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. + * * **FinalAuth** – flags the payment request to be handled as a final authorisation. * - * @param authorisationType Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final authorisation. + * @param authorisationType Flags a card payment request for either pre-authorisation or final + * authorisation. For more information, refer to [Authorisation + * types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). + * Allowed values: * **PreAuth** – flags the payment request to be handled as a + * pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final + * authorisation. */ @JsonProperty(JSON_PROPERTY_AUTHORISATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -287,9 +425,12 @@ public void setAuthorisationType(String authorisationType) { } /** - * Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the `maxDaysToRescue` to specify a rescue window. + * Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) + * for a transaction. Use the `maxDaysToRescue` to specify a rescue window. * - * @param autoRescue Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the `maxDaysToRescue` to specify a rescue window. + * @param autoRescue Set to **true** to enable [Auto + * Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the + * `maxDaysToRescue` to specify a rescue window. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon autoRescue(String autoRescue) { @@ -298,8 +439,12 @@ public AdditionalDataCommon autoRescue(String autoRescue) { } /** - * Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the `maxDaysToRescue` to specify a rescue window. - * @return autoRescue Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the `maxDaysToRescue` to specify a rescue window. + * Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) + * for a transaction. Use the `maxDaysToRescue` to specify a rescue window. + * + * @return autoRescue Set to **true** to enable [Auto + * Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the + * `maxDaysToRescue` to specify a rescue window. */ @JsonProperty(JSON_PROPERTY_AUTO_RESCUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -308,9 +453,12 @@ public String getAutoRescue() { } /** - * Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the `maxDaysToRescue` to specify a rescue window. + * Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) + * for a transaction. Use the `maxDaysToRescue` to specify a rescue window. * - * @param autoRescue Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the `maxDaysToRescue` to specify a rescue window. + * @param autoRescue Set to **true** to enable [Auto + * Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the + * `maxDaysToRescue` to specify a rescue window. */ @JsonProperty(JSON_PROPERTY_AUTO_RESCUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -319,9 +467,18 @@ public void setAutoRescue(String autoRescue) { } /** - * Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request's additional data to target a specific acquirer. To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). + * Allows you to determine or override the acquirer account that should be used for the + * transaction. If you need to process a payment with an acquirer different from a default one, + * you can set up a corresponding configuration on the Adyen payments platform. Then you can pass + * a custom routing flag in a payment request's additional data to target a specific acquirer. + * To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param customRoutingFlag Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request's additional data to target a specific acquirer. To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). + * @param customRoutingFlag Allows you to determine or override the acquirer account that should + * be used for the transaction. If you need to process a payment with an acquirer different + * from a default one, you can set up a corresponding configuration on the Adyen payments + * platform. Then you can pass a custom routing flag in a payment request's additional + * data to target a specific acquirer. To enable this functionality, contact + * [Support](https://www.adyen.help/hc/en-us/requests/new). * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon customRoutingFlag(String customRoutingFlag) { @@ -330,8 +487,18 @@ public AdditionalDataCommon customRoutingFlag(String customRoutingFlag) { } /** - * Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request's additional data to target a specific acquirer. To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). - * @return customRoutingFlag Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request's additional data to target a specific acquirer. To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). + * Allows you to determine or override the acquirer account that should be used for the + * transaction. If you need to process a payment with an acquirer different from a default one, + * you can set up a corresponding configuration on the Adyen payments platform. Then you can pass + * a custom routing flag in a payment request's additional data to target a specific acquirer. + * To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). + * + * @return customRoutingFlag Allows you to determine or override the acquirer account that should + * be used for the transaction. If you need to process a payment with an acquirer different + * from a default one, you can set up a corresponding configuration on the Adyen payments + * platform. Then you can pass a custom routing flag in a payment request's additional + * data to target a specific acquirer. To enable this functionality, contact + * [Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_CUSTOM_ROUTING_FLAG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -340,9 +507,18 @@ public String getCustomRoutingFlag() { } /** - * Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request's additional data to target a specific acquirer. To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). + * Allows you to determine or override the acquirer account that should be used for the + * transaction. If you need to process a payment with an acquirer different from a default one, + * you can set up a corresponding configuration on the Adyen payments platform. Then you can pass + * a custom routing flag in a payment request's additional data to target a specific acquirer. + * To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param customRoutingFlag Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request's additional data to target a specific acquirer. To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). + * @param customRoutingFlag Allows you to determine or override the acquirer account that should + * be used for the transaction. If you need to process a payment with an acquirer different + * from a default one, you can set up a corresponding configuration on the Adyen payments + * platform. Then you can pass a custom routing flag in a payment request's additional + * data to target a specific acquirer. To enable this functionality, contact + * [Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_CUSTOM_ROUTING_FLAG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -351,9 +527,20 @@ public void setCustomRoutingFlag(String customRoutingFlag) { } /** - * In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed. + * In case of [asynchronous authorisation + * adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), + * this field denotes why the additional payment is made. Possible values: * **NoShow**: An + * incremental charge is carried out because of a no-show for a guaranteed reservation. * + * **DelayedCharge**: An incremental charge is carried out to process an additional payment after + * the original services have been rendered and the respective payment has been processed. * - * @param industryUsage In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed. + * @param industryUsage In case of [asynchronous authorisation + * adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), + * this field denotes why the additional payment is made. Possible values: * **NoShow**: An + * incremental charge is carried out because of a no-show for a guaranteed reservation. * + * **DelayedCharge**: An incremental charge is carried out to process an additional payment + * after the original services have been rendered and the respective payment has been + * processed. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon industryUsage(IndustryUsageEnum industryUsage) { @@ -362,8 +549,20 @@ public AdditionalDataCommon industryUsage(IndustryUsageEnum industryUsage) { } /** - * In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed. - * @return industryUsage In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed. + * In case of [asynchronous authorisation + * adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), + * this field denotes why the additional payment is made. Possible values: * **NoShow**: An + * incremental charge is carried out because of a no-show for a guaranteed reservation. * + * **DelayedCharge**: An incremental charge is carried out to process an additional payment after + * the original services have been rendered and the respective payment has been processed. + * + * @return industryUsage In case of [asynchronous authorisation + * adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), + * this field denotes why the additional payment is made. Possible values: * **NoShow**: An + * incremental charge is carried out because of a no-show for a guaranteed reservation. * + * **DelayedCharge**: An incremental charge is carried out to process an additional payment + * after the original services have been rendered and the respective payment has been + * processed. */ @JsonProperty(JSON_PROPERTY_INDUSTRY_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -372,9 +571,20 @@ public IndustryUsageEnum getIndustryUsage() { } /** - * In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed. + * In case of [asynchronous authorisation + * adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), + * this field denotes why the additional payment is made. Possible values: * **NoShow**: An + * incremental charge is carried out because of a no-show for a guaranteed reservation. * + * **DelayedCharge**: An incremental charge is carried out to process an additional payment after + * the original services have been rendered and the respective payment has been processed. * - * @param industryUsage In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed. + * @param industryUsage In case of [asynchronous authorisation + * adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), + * this field denotes why the additional payment is made. Possible values: * **NoShow**: An + * incremental charge is carried out because of a no-show for a guaranteed reservation. * + * **DelayedCharge**: An incremental charge is carried out to process an additional payment + * after the original services have been rendered and the respective payment has been + * processed. */ @JsonProperty(JSON_PROPERTY_INDUSTRY_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -383,9 +593,11 @@ public void setIndustryUsage(IndustryUsageEnum industryUsage) { } /** - * Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for the transaction. + * Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for + * the transaction. * - * @param manualCapture Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for the transaction. + * @param manualCapture Set to **true** to require [manual + * capture](https://docs.adyen.com/online-payments/capture) for the transaction. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon manualCapture(String manualCapture) { @@ -394,8 +606,11 @@ public AdditionalDataCommon manualCapture(String manualCapture) { } /** - * Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for the transaction. - * @return manualCapture Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for the transaction. + * Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for + * the transaction. + * + * @return manualCapture Set to **true** to require [manual + * capture](https://docs.adyen.com/online-payments/capture) for the transaction. */ @JsonProperty(JSON_PROPERTY_MANUAL_CAPTURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -404,9 +619,11 @@ public String getManualCapture() { } /** - * Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for the transaction. + * Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for + * the transaction. * - * @param manualCapture Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for the transaction. + * @param manualCapture Set to **true** to require [manual + * capture](https://docs.adyen.com/online-payments/capture) for the transaction. */ @JsonProperty(JSON_PROPERTY_MANUAL_CAPTURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -415,9 +632,17 @@ public void setManualCapture(String manualCapture) { } /** - * The rescue window for a transaction, in days, when `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is 42 days. + * The rescue window for a transaction, in days, when `autoRescue` is set to **true**. + * You can specify a value between 1 and 48. * For + * [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar + * month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is + * 42 days. * - * @param maxDaysToRescue The rescue window for a transaction, in days, when `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is 42 days. + * @param maxDaysToRescue The rescue window for a transaction, in days, when + * `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For + * [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one + * calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the + * default is 42 days. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon maxDaysToRescue(String maxDaysToRescue) { @@ -426,8 +651,17 @@ public AdditionalDataCommon maxDaysToRescue(String maxDaysToRescue) { } /** - * The rescue window for a transaction, in days, when `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is 42 days. - * @return maxDaysToRescue The rescue window for a transaction, in days, when `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is 42 days. + * The rescue window for a transaction, in days, when `autoRescue` is set to **true**. + * You can specify a value between 1 and 48. * For + * [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar + * month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is + * 42 days. + * + * @return maxDaysToRescue The rescue window for a transaction, in days, when + * `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For + * [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one + * calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the + * default is 42 days. */ @JsonProperty(JSON_PROPERTY_MAX_DAYS_TO_RESCUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -436,9 +670,17 @@ public String getMaxDaysToRescue() { } /** - * The rescue window for a transaction, in days, when `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is 42 days. + * The rescue window for a transaction, in days, when `autoRescue` is set to **true**. + * You can specify a value between 1 and 48. * For + * [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar + * month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is + * 42 days. * - * @param maxDaysToRescue The rescue window for a transaction, in days, when `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is 42 days. + * @param maxDaysToRescue The rescue window for a transaction, in days, when + * `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For + * [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one + * calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the + * default is 42 days. */ @JsonProperty(JSON_PROPERTY_MAX_DAYS_TO_RESCUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -447,9 +689,25 @@ public void setMaxDaysToRescue(String maxDaysToRescue) { } /** - * Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT. + * Allows you to link the transaction to the original or previous one in a + * subscription/card-on-file chain. This field is required for token-based transactions where + * Adyen does not tokenize the card. Transaction identifier from card schemes, for example, + * Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the + * contract in your payment request if you are not tokenizing card details with Adyen and are + * making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending + * `shopperInteraction` **ContAuth** and `recurringProcessingModel` + * **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as + * MIT. * - * @param networkTxReference Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT. + * @param networkTxReference Allows you to link the transaction to the original or previous one in + * a subscription/card-on-file chain. This field is required for token-based transactions + * where Adyen does not tokenize the card. Transaction identifier from card schemes, for + * example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID + * of the contract in your payment request if you are not tokenizing card details with Adyen + * and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you + * are sending `shopperInteraction` **ContAuth** and + * `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to + * ensure that the transaction is classified as MIT. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon networkTxReference(String networkTxReference) { @@ -458,8 +716,25 @@ public AdditionalDataCommon networkTxReference(String networkTxReference) { } /** - * Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT. - * @return networkTxReference Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT. + * Allows you to link the transaction to the original or previous one in a + * subscription/card-on-file chain. This field is required for token-based transactions where + * Adyen does not tokenize the card. Transaction identifier from card schemes, for example, + * Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the + * contract in your payment request if you are not tokenizing card details with Adyen and are + * making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending + * `shopperInteraction` **ContAuth** and `recurringProcessingModel` + * **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as + * MIT. + * + * @return networkTxReference Allows you to link the transaction to the original or previous one + * in a subscription/card-on-file chain. This field is required for token-based transactions + * where Adyen does not tokenize the card. Transaction identifier from card schemes, for + * example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID + * of the contract in your payment request if you are not tokenizing card details with Adyen + * and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you + * are sending `shopperInteraction` **ContAuth** and + * `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to + * ensure that the transaction is classified as MIT. */ @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -468,9 +743,25 @@ public String getNetworkTxReference() { } /** - * Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT. + * Allows you to link the transaction to the original or previous one in a + * subscription/card-on-file chain. This field is required for token-based transactions where + * Adyen does not tokenize the card. Transaction identifier from card schemes, for example, + * Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the + * contract in your payment request if you are not tokenizing card details with Adyen and are + * making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending + * `shopperInteraction` **ContAuth** and `recurringProcessingModel` + * **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as + * MIT. * - * @param networkTxReference Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT. + * @param networkTxReference Allows you to link the transaction to the original or previous one in + * a subscription/card-on-file chain. This field is required for token-based transactions + * where Adyen does not tokenize the card. Transaction identifier from card schemes, for + * example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID + * of the contract in your payment request if you are not tokenizing card details with Adyen + * and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you + * are sending `shopperInteraction` **ContAuth** and + * `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to + * ensure that the transaction is classified as MIT. */ @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -479,9 +770,15 @@ public void setNetworkTxReference(String networkTxReference) { } /** - * Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction. + * Boolean indicator that can be optionally used for performing debit transactions on combo cards + * (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this + * to true if you want to use the `selectedBrand` value to specify how to process the + * transaction. * - * @param overwriteBrand Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction. + * @param overwriteBrand Boolean indicator that can be optionally used for performing debit + * transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but + * we recommend that you set this to true if you want to use the `selectedBrand` + * value to specify how to process the transaction. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon overwriteBrand(String overwriteBrand) { @@ -490,8 +787,15 @@ public AdditionalDataCommon overwriteBrand(String overwriteBrand) { } /** - * Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction. - * @return overwriteBrand Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction. + * Boolean indicator that can be optionally used for performing debit transactions on combo cards + * (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this + * to true if you want to use the `selectedBrand` value to specify how to process the + * transaction. + * + * @return overwriteBrand Boolean indicator that can be optionally used for performing debit + * transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but + * we recommend that you set this to true if you want to use the `selectedBrand` + * value to specify how to process the transaction. */ @JsonProperty(JSON_PROPERTY_OVERWRITE_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -500,9 +804,15 @@ public String getOverwriteBrand() { } /** - * Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction. + * Boolean indicator that can be optionally used for performing debit transactions on combo cards + * (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this + * to true if you want to use the `selectedBrand` value to specify how to process the + * transaction. * - * @param overwriteBrand Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction. + * @param overwriteBrand Boolean indicator that can be optionally used for performing debit + * transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but + * we recommend that you set this to true if you want to use the `selectedBrand` + * value to specify how to process the transaction. */ @JsonProperty(JSON_PROPERTY_OVERWRITE_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -511,9 +821,13 @@ public void setOverwriteBrand(String overwriteBrand) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 13 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the city of the actual merchant's address. * Format: alpha-numeric. + * * Maximum length: 13 characters. * - * @param subMerchantCity This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 13 characters. + * @param subMerchantCity This field is required if the transaction is performed by a registered + * payment facilitator. This field must contain the city of the actual merchant's address. + * * Format: alpha-numeric. * Maximum length: 13 characters. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantCity(String subMerchantCity) { @@ -522,8 +836,13 @@ public AdditionalDataCommon subMerchantCity(String subMerchantCity) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 13 characters. - * @return subMerchantCity This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 13 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the city of the actual merchant's address. * Format: alpha-numeric. + * * Maximum length: 13 characters. + * + * @return subMerchantCity This field is required if the transaction is performed by a registered + * payment facilitator. This field must contain the city of the actual merchant's address. + * * Format: alpha-numeric. * Maximum length: 13 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -532,9 +851,13 @@ public String getSubMerchantCity() { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 13 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the city of the actual merchant's address. * Format: alpha-numeric. + * * Maximum length: 13 characters. * - * @param subMerchantCity This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 13 characters. + * @param subMerchantCity This field is required if the transaction is performed by a registered + * payment facilitator. This field must contain the city of the actual merchant's address. + * * Format: alpha-numeric. * Maximum length: 13 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -543,9 +866,13 @@ public void setSubMerchantCity(String subMerchantCity) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the three-letter country code of the actual merchant's address. * + * Format: alpha-numeric. * Fixed length: 3 characters. * - * @param subMerchantCountry This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. + * @param subMerchantCountry This field is required if the transaction is performed by a + * registered payment facilitator. This field must contain the three-letter country code of + * the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantCountry(String subMerchantCountry) { @@ -554,8 +881,13 @@ public AdditionalDataCommon subMerchantCountry(String subMerchantCountry) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. - * @return subMerchantCountry This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the three-letter country code of the actual merchant's address. * + * Format: alpha-numeric. * Fixed length: 3 characters. + * + * @return subMerchantCountry This field is required if the transaction is performed by a + * registered payment facilitator. This field must contain the three-letter country code of + * the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -564,9 +896,13 @@ public String getSubMerchantCountry() { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the three-letter country code of the actual merchant's address. * + * Format: alpha-numeric. * Fixed length: 3 characters. * - * @param subMerchantCountry This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. + * @param subMerchantCountry This field is required if the transaction is performed by a + * registered payment facilitator. This field must contain the three-letter country code of + * the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -575,9 +911,13 @@ public void setSubMerchantCountry(String subMerchantCountry) { } /** - * This field is required for transactions performed by registered payment facilitators. This field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters + * This field is required for transactions performed by registered payment facilitators. This + * field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: + * 40 characters * - * @param subMerchantEmail This field is required for transactions performed by registered payment facilitators. This field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters + * @param subMerchantEmail This field is required for transactions performed by registered payment + * facilitators. This field contains the email address of the sub-merchant. * Format: + * Alphanumeric * Maximum length: 40 characters * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantEmail(String subMerchantEmail) { @@ -586,8 +926,13 @@ public AdditionalDataCommon subMerchantEmail(String subMerchantEmail) { } /** - * This field is required for transactions performed by registered payment facilitators. This field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters - * @return subMerchantEmail This field is required for transactions performed by registered payment facilitators. This field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters + * This field is required for transactions performed by registered payment facilitators. This + * field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: + * 40 characters + * + * @return subMerchantEmail This field is required for transactions performed by registered + * payment facilitators. This field contains the email address of the sub-merchant. * Format: + * Alphanumeric * Maximum length: 40 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -596,9 +941,13 @@ public String getSubMerchantEmail() { } /** - * This field is required for transactions performed by registered payment facilitators. This field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters + * This field is required for transactions performed by registered payment facilitators. This + * field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: + * 40 characters * - * @param subMerchantEmail This field is required for transactions performed by registered payment facilitators. This field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters + * @param subMerchantEmail This field is required for transactions performed by registered payment + * facilitators. This field contains the email address of the sub-merchant. * Format: + * Alphanumeric * Maximum length: 40 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -607,9 +956,16 @@ public void setSubMerchantEmail(String subMerchantEmail) { } /** - * This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. + * This field contains an identifier of the actual merchant when a transaction is submitted via a + * payment facilitator. The payment facilitator must send in this unique ID. A unique identifier + * per submerchant that is required if the transaction is performed by a registered payment + * facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. * - * @param subMerchantID This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. + * @param subMerchantID This field contains an identifier of the actual merchant when a + * transaction is submitted via a payment facilitator. The payment facilitator must send in + * this unique ID. A unique identifier per submerchant that is required if the transaction is + * performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 + * characters. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantID(String subMerchantID) { @@ -618,8 +974,16 @@ public AdditionalDataCommon subMerchantID(String subMerchantID) { } /** - * This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. - * @return subMerchantID This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. + * This field contains an identifier of the actual merchant when a transaction is submitted via a + * payment facilitator. The payment facilitator must send in this unique ID. A unique identifier + * per submerchant that is required if the transaction is performed by a registered payment + * facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. + * + * @return subMerchantID This field contains an identifier of the actual merchant when a + * transaction is submitted via a payment facilitator. The payment facilitator must send in + * this unique ID. A unique identifier per submerchant that is required if the transaction is + * performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 + * characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -628,9 +992,16 @@ public String getSubMerchantID() { } /** - * This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. + * This field contains an identifier of the actual merchant when a transaction is submitted via a + * payment facilitator. The payment facilitator must send in this unique ID. A unique identifier + * per submerchant that is required if the transaction is performed by a registered payment + * facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. * - * @param subMerchantID This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. + * @param subMerchantID This field contains an identifier of the actual merchant when a + * transaction is submitted via a payment facilitator. The payment facilitator must send in + * this unique ID. A unique identifier per submerchant that is required if the transaction is + * performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 + * characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -639,9 +1010,13 @@ public void setSubMerchantID(String subMerchantID) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum length: 22 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum + * length: 22 characters. * - * @param subMerchantName This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum length: 22 characters. + * @param subMerchantName This field is required if the transaction is performed by a registered + * payment facilitator. This field must contain the name of the actual merchant. * Format: + * alpha-numeric. * Maximum length: 22 characters. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantName(String subMerchantName) { @@ -650,8 +1025,13 @@ public AdditionalDataCommon subMerchantName(String subMerchantName) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum length: 22 characters. - * @return subMerchantName This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum length: 22 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum + * length: 22 characters. + * + * @return subMerchantName This field is required if the transaction is performed by a registered + * payment facilitator. This field must contain the name of the actual merchant. * Format: + * alpha-numeric. * Maximum length: 22 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -660,9 +1040,13 @@ public String getSubMerchantName() { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum length: 22 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum + * length: 22 characters. * - * @param subMerchantName This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum length: 22 characters. + * @param subMerchantName This field is required if the transaction is performed by a registered + * payment facilitator. This field must contain the name of the actual merchant. * Format: + * alpha-numeric. * Maximum length: 22 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -671,9 +1055,13 @@ public void setSubMerchantName(String subMerchantName) { } /** - * This field is required for transactions performed by registered payment facilitators. This field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * This field is required for transactions performed by registered payment facilitators. This + * field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 + * characters * - * @param subMerchantPhoneNumber This field is required for transactions performed by registered payment facilitators. This field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * @param subMerchantPhoneNumber This field is required for transactions performed by registered + * payment facilitators. This field contains the phone number of the sub-merchant.* Format: + * Alphanumeric * Maximum length: 20 characters * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantPhoneNumber(String subMerchantPhoneNumber) { @@ -682,8 +1070,13 @@ public AdditionalDataCommon subMerchantPhoneNumber(String subMerchantPhoneNumber } /** - * This field is required for transactions performed by registered payment facilitators. This field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters - * @return subMerchantPhoneNumber This field is required for transactions performed by registered payment facilitators. This field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * This field is required for transactions performed by registered payment facilitators. This + * field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 + * characters + * + * @return subMerchantPhoneNumber This field is required for transactions performed by registered + * payment facilitators. This field contains the phone number of the sub-merchant.* Format: + * Alphanumeric * Maximum length: 20 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -692,9 +1085,13 @@ public String getSubMerchantPhoneNumber() { } /** - * This field is required for transactions performed by registered payment facilitators. This field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * This field is required for transactions performed by registered payment facilitators. This + * field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 + * characters * - * @param subMerchantPhoneNumber This field is required for transactions performed by registered payment facilitators. This field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * @param subMerchantPhoneNumber This field is required for transactions performed by registered + * payment facilitators. This field contains the phone number of the sub-merchant.* Format: + * Alphanumeric * Maximum length: 20 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -703,9 +1100,13 @@ public void setSubMerchantPhoneNumber(String subMerchantPhoneNumber) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the postal code of the actual merchant's address. * Format: + * alpha-numeric. * Maximum length: 10 characters. * - * @param subMerchantPostalCode This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. + * @param subMerchantPostalCode This field is required if the transaction is performed by a + * registered payment facilitator. This field must contain the postal code of the actual + * merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantPostalCode(String subMerchantPostalCode) { @@ -714,8 +1115,13 @@ public AdditionalDataCommon subMerchantPostalCode(String subMerchantPostalCode) } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. - * @return subMerchantPostalCode This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the postal code of the actual merchant's address. * Format: + * alpha-numeric. * Maximum length: 10 characters. + * + * @return subMerchantPostalCode This field is required if the transaction is performed by a + * registered payment facilitator. This field must contain the postal code of the actual + * merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -724,9 +1130,13 @@ public String getSubMerchantPostalCode() { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the postal code of the actual merchant's address. * Format: + * alpha-numeric. * Maximum length: 10 characters. * - * @param subMerchantPostalCode This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. + * @param subMerchantPostalCode This field is required if the transaction is performed by a + * registered payment facilitator. This field must contain the postal code of the actual + * merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -735,9 +1145,14 @@ public void setSubMerchantPostalCode(String subMerchantPostalCode) { } /** - * This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. + * This field is required if the transaction is performed by a registered payment facilitator, and + * if applicable to the country. This field must contain the state code of the actual + * merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. * - * @param subMerchantState This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. + * @param subMerchantState This field is required if the transaction is performed by a registered + * payment facilitator, and if applicable to the country. This field must contain the state + * code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 + * characters. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantState(String subMerchantState) { @@ -746,8 +1161,14 @@ public AdditionalDataCommon subMerchantState(String subMerchantState) { } /** - * This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. - * @return subMerchantState This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. + * This field is required if the transaction is performed by a registered payment facilitator, and + * if applicable to the country. This field must contain the state code of the actual + * merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. + * + * @return subMerchantState This field is required if the transaction is performed by a registered + * payment facilitator, and if applicable to the country. This field must contain the state + * code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 + * characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_STATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -756,9 +1177,14 @@ public String getSubMerchantState() { } /** - * This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. + * This field is required if the transaction is performed by a registered payment facilitator, and + * if applicable to the country. This field must contain the state code of the actual + * merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. * - * @param subMerchantState This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. + * @param subMerchantState This field is required if the transaction is performed by a registered + * payment facilitator, and if applicable to the country. This field must contain the state + * code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 + * characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_STATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -767,9 +1193,13 @@ public void setSubMerchantState(String subMerchantState) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 60 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the street of the actual merchant's address. * Format: + * alpha-numeric. * Maximum length: 60 characters. * - * @param subMerchantStreet This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 60 characters. + * @param subMerchantStreet This field is required if the transaction is performed by a registered + * payment facilitator. This field must contain the street of the actual merchant's + * address. * Format: alpha-numeric. * Maximum length: 60 characters. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantStreet(String subMerchantStreet) { @@ -778,8 +1208,13 @@ public AdditionalDataCommon subMerchantStreet(String subMerchantStreet) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 60 characters. - * @return subMerchantStreet This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 60 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the street of the actual merchant's address. * Format: + * alpha-numeric. * Maximum length: 60 characters. + * + * @return subMerchantStreet This field is required if the transaction is performed by a + * registered payment facilitator. This field must contain the street of the actual + * merchant's address. * Format: alpha-numeric. * Maximum length: 60 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -788,9 +1223,13 @@ public String getSubMerchantStreet() { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 60 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the street of the actual merchant's address. * Format: + * alpha-numeric. * Maximum length: 60 characters. * - * @param subMerchantStreet This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 60 characters. + * @param subMerchantStreet This field is required if the transaction is performed by a registered + * payment facilitator. This field must contain the street of the actual merchant's + * address. * Format: alpha-numeric. * Maximum length: 60 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -799,9 +1238,13 @@ public void setSubMerchantStreet(String subMerchantStreet) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed length: 11 or 14 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed + * length: 11 or 14 characters. * - * @param subMerchantTaxId This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed length: 11 or 14 characters. + * @param subMerchantTaxId This field is required if the transaction is performed by a registered + * payment facilitator. This field must contain the tax ID of the actual merchant. * Format: + * alpha-numeric. * Fixed length: 11 or 14 characters. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantTaxId(String subMerchantTaxId) { @@ -810,8 +1253,13 @@ public AdditionalDataCommon subMerchantTaxId(String subMerchantTaxId) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed length: 11 or 14 characters. - * @return subMerchantTaxId This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed length: 11 or 14 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed + * length: 11 or 14 characters. + * + * @return subMerchantTaxId This field is required if the transaction is performed by a registered + * payment facilitator. This field must contain the tax ID of the actual merchant. * Format: + * alpha-numeric. * Fixed length: 11 or 14 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_TAX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -820,9 +1268,13 @@ public String getSubMerchantTaxId() { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed length: 11 or 14 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed + * length: 11 or 14 characters. * - * @param subMerchantTaxId This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed length: 11 or 14 characters. + * @param subMerchantTaxId This field is required if the transaction is performed by a registered + * payment facilitator. This field must contain the tax ID of the actual merchant. * Format: + * alpha-numeric. * Fixed length: 11 or 14 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_TAX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -830,9 +1282,7 @@ public void setSubMerchantTaxId(String subMerchantTaxId) { this.subMerchantTaxId = subMerchantTaxId; } - /** - * Return true if this AdditionalDataCommon object is equal to o. - */ + /** Return true if this AdditionalDataCommon object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -842,40 +1292,69 @@ public boolean equals(Object o) { return false; } AdditionalDataCommon additionalDataCommon = (AdditionalDataCommon) o; - return Objects.equals(this.requestedTestAcquirerResponseCode, additionalDataCommon.requestedTestAcquirerResponseCode) && - Objects.equals(this.requestedTestErrorResponseCode, additionalDataCommon.requestedTestErrorResponseCode) && - Objects.equals(this.allowPartialAuth, additionalDataCommon.allowPartialAuth) && - Objects.equals(this.authorisationType, additionalDataCommon.authorisationType) && - Objects.equals(this.autoRescue, additionalDataCommon.autoRescue) && - Objects.equals(this.customRoutingFlag, additionalDataCommon.customRoutingFlag) && - Objects.equals(this.industryUsage, additionalDataCommon.industryUsage) && - Objects.equals(this.manualCapture, additionalDataCommon.manualCapture) && - Objects.equals(this.maxDaysToRescue, additionalDataCommon.maxDaysToRescue) && - Objects.equals(this.networkTxReference, additionalDataCommon.networkTxReference) && - Objects.equals(this.overwriteBrand, additionalDataCommon.overwriteBrand) && - Objects.equals(this.subMerchantCity, additionalDataCommon.subMerchantCity) && - Objects.equals(this.subMerchantCountry, additionalDataCommon.subMerchantCountry) && - Objects.equals(this.subMerchantEmail, additionalDataCommon.subMerchantEmail) && - Objects.equals(this.subMerchantID, additionalDataCommon.subMerchantID) && - Objects.equals(this.subMerchantName, additionalDataCommon.subMerchantName) && - Objects.equals(this.subMerchantPhoneNumber, additionalDataCommon.subMerchantPhoneNumber) && - Objects.equals(this.subMerchantPostalCode, additionalDataCommon.subMerchantPostalCode) && - Objects.equals(this.subMerchantState, additionalDataCommon.subMerchantState) && - Objects.equals(this.subMerchantStreet, additionalDataCommon.subMerchantStreet) && - Objects.equals(this.subMerchantTaxId, additionalDataCommon.subMerchantTaxId); + return Objects.equals( + this.requestedTestAcquirerResponseCode, + additionalDataCommon.requestedTestAcquirerResponseCode) + && Objects.equals( + this.requestedTestErrorResponseCode, + additionalDataCommon.requestedTestErrorResponseCode) + && Objects.equals(this.allowPartialAuth, additionalDataCommon.allowPartialAuth) + && Objects.equals(this.authorisationType, additionalDataCommon.authorisationType) + && Objects.equals(this.autoRescue, additionalDataCommon.autoRescue) + && Objects.equals(this.customRoutingFlag, additionalDataCommon.customRoutingFlag) + && Objects.equals(this.industryUsage, additionalDataCommon.industryUsage) + && Objects.equals(this.manualCapture, additionalDataCommon.manualCapture) + && Objects.equals(this.maxDaysToRescue, additionalDataCommon.maxDaysToRescue) + && Objects.equals(this.networkTxReference, additionalDataCommon.networkTxReference) + && Objects.equals(this.overwriteBrand, additionalDataCommon.overwriteBrand) + && Objects.equals(this.subMerchantCity, additionalDataCommon.subMerchantCity) + && Objects.equals(this.subMerchantCountry, additionalDataCommon.subMerchantCountry) + && Objects.equals(this.subMerchantEmail, additionalDataCommon.subMerchantEmail) + && Objects.equals(this.subMerchantID, additionalDataCommon.subMerchantID) + && Objects.equals(this.subMerchantName, additionalDataCommon.subMerchantName) + && Objects.equals(this.subMerchantPhoneNumber, additionalDataCommon.subMerchantPhoneNumber) + && Objects.equals(this.subMerchantPostalCode, additionalDataCommon.subMerchantPostalCode) + && Objects.equals(this.subMerchantState, additionalDataCommon.subMerchantState) + && Objects.equals(this.subMerchantStreet, additionalDataCommon.subMerchantStreet) + && Objects.equals(this.subMerchantTaxId, additionalDataCommon.subMerchantTaxId); } @Override public int hashCode() { - return Objects.hash(requestedTestAcquirerResponseCode, requestedTestErrorResponseCode, allowPartialAuth, authorisationType, autoRescue, customRoutingFlag, industryUsage, manualCapture, maxDaysToRescue, networkTxReference, overwriteBrand, subMerchantCity, subMerchantCountry, subMerchantEmail, subMerchantID, subMerchantName, subMerchantPhoneNumber, subMerchantPostalCode, subMerchantState, subMerchantStreet, subMerchantTaxId); + return Objects.hash( + requestedTestAcquirerResponseCode, + requestedTestErrorResponseCode, + allowPartialAuth, + authorisationType, + autoRescue, + customRoutingFlag, + industryUsage, + manualCapture, + maxDaysToRescue, + networkTxReference, + overwriteBrand, + subMerchantCity, + subMerchantCountry, + subMerchantEmail, + subMerchantID, + subMerchantName, + subMerchantPhoneNumber, + subMerchantPostalCode, + subMerchantState, + subMerchantStreet, + subMerchantTaxId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataCommon {\n"); - sb.append(" requestedTestAcquirerResponseCode: ").append(toIndentedString(requestedTestAcquirerResponseCode)).append("\n"); - sb.append(" requestedTestErrorResponseCode: ").append(toIndentedString(requestedTestErrorResponseCode)).append("\n"); + sb.append(" requestedTestAcquirerResponseCode: ") + .append(toIndentedString(requestedTestAcquirerResponseCode)) + .append("\n"); + sb.append(" requestedTestErrorResponseCode: ") + .append(toIndentedString(requestedTestErrorResponseCode)) + .append("\n"); sb.append(" allowPartialAuth: ").append(toIndentedString(allowPartialAuth)).append("\n"); sb.append(" authorisationType: ").append(toIndentedString(authorisationType)).append("\n"); sb.append(" autoRescue: ").append(toIndentedString(autoRescue)).append("\n"); @@ -890,8 +1369,12 @@ public String toString() { sb.append(" subMerchantEmail: ").append(toIndentedString(subMerchantEmail)).append("\n"); sb.append(" subMerchantID: ").append(toIndentedString(subMerchantID)).append("\n"); sb.append(" subMerchantName: ").append(toIndentedString(subMerchantName)).append("\n"); - sb.append(" subMerchantPhoneNumber: ").append(toIndentedString(subMerchantPhoneNumber)).append("\n"); - sb.append(" subMerchantPostalCode: ").append(toIndentedString(subMerchantPostalCode)).append("\n"); + sb.append(" subMerchantPhoneNumber: ") + .append(toIndentedString(subMerchantPhoneNumber)) + .append("\n"); + sb.append(" subMerchantPostalCode: ") + .append(toIndentedString(subMerchantPostalCode)) + .append("\n"); sb.append(" subMerchantState: ").append(toIndentedString(subMerchantState)).append("\n"); sb.append(" subMerchantStreet: ").append(toIndentedString(subMerchantStreet)).append("\n"); sb.append(" subMerchantTaxId: ").append(toIndentedString(subMerchantTaxId)).append("\n"); @@ -900,8 +1383,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -910,21 +1392,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalDataCommon given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataCommon - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataCommon + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalDataCommon */ public static AdditionalDataCommon fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataCommon.class); } -/** - * Convert an instance of AdditionalDataCommon to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalDataCommon to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataLevel23.java b/src/main/java/com/adyen/model/checkout/AdditionalDataLevel23.java index a510fc263..e66397f3c 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataLevel23.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataLevel23.java @@ -2,31 +2,22 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AdditionalDataLevel23 - */ +/** AdditionalDataLevel23 */ @JsonPropertyOrder({ AdditionalDataLevel23.JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE, AdditionalDataLevel23.JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_COUNTRY_CODE, @@ -46,76 +37,106 @@ AdditionalDataLevel23.JSON_PROPERTY_ENHANCED_SCHEME_DATA_SHIP_FROM_POSTAL_CODE, AdditionalDataLevel23.JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT }) - public class AdditionalDataLevel23 { - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE = "enhancedSchemeData.customerReference"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE = + "enhancedSchemeData.customerReference"; private String enhancedSchemeDataCustomerReference; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_COUNTRY_CODE = "enhancedSchemeData.destinationCountryCode"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_COUNTRY_CODE = + "enhancedSchemeData.destinationCountryCode"; private String enhancedSchemeDataDestinationCountryCode; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_POSTAL_CODE = "enhancedSchemeData.destinationPostalCode"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_POSTAL_CODE = + "enhancedSchemeData.destinationPostalCode"; private String enhancedSchemeDataDestinationPostalCode; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_STATE_PROVINCE_CODE = "enhancedSchemeData.destinationStateProvinceCode"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_STATE_PROVINCE_CODE = + "enhancedSchemeData.destinationStateProvinceCode"; private String enhancedSchemeDataDestinationStateProvinceCode; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_DUTY_AMOUNT = "enhancedSchemeData.dutyAmount"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_DUTY_AMOUNT = + "enhancedSchemeData.dutyAmount"; private String enhancedSchemeDataDutyAmount; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_FREIGHT_AMOUNT = "enhancedSchemeData.freightAmount"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_FREIGHT_AMOUNT = + "enhancedSchemeData.freightAmount"; private String enhancedSchemeDataFreightAmount; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_COMMODITY_CODE = "enhancedSchemeData.itemDetailLine[itemNr].commodityCode"; + public static final String + JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_COMMODITY_CODE = + "enhancedSchemeData.itemDetailLine[itemNr].commodityCode"; private String enhancedSchemeDataItemDetailLineItemNrCommodityCode; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DESCRIPTION = "enhancedSchemeData.itemDetailLine[itemNr].description"; + public static final String + JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DESCRIPTION = + "enhancedSchemeData.itemDetailLine[itemNr].description"; private String enhancedSchemeDataItemDetailLineItemNrDescription; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DISCOUNT_AMOUNT = "enhancedSchemeData.itemDetailLine[itemNr].discountAmount"; + public static final String + JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DISCOUNT_AMOUNT = + "enhancedSchemeData.itemDetailLine[itemNr].discountAmount"; private String enhancedSchemeDataItemDetailLineItemNrDiscountAmount; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_PRODUCT_CODE = "enhancedSchemeData.itemDetailLine[itemNr].productCode"; + public static final String + JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_PRODUCT_CODE = + "enhancedSchemeData.itemDetailLine[itemNr].productCode"; private String enhancedSchemeDataItemDetailLineItemNrProductCode; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_QUANTITY = "enhancedSchemeData.itemDetailLine[itemNr].quantity"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_QUANTITY = + "enhancedSchemeData.itemDetailLine[itemNr].quantity"; private String enhancedSchemeDataItemDetailLineItemNrQuantity; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_TOTAL_AMOUNT = "enhancedSchemeData.itemDetailLine[itemNr].totalAmount"; + public static final String + JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_TOTAL_AMOUNT = + "enhancedSchemeData.itemDetailLine[itemNr].totalAmount"; private String enhancedSchemeDataItemDetailLineItemNrTotalAmount; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_UNIT_OF_MEASURE = "enhancedSchemeData.itemDetailLine[itemNr].unitOfMeasure"; + public static final String + JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_UNIT_OF_MEASURE = + "enhancedSchemeData.itemDetailLine[itemNr].unitOfMeasure"; private String enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_UNIT_PRICE = "enhancedSchemeData.itemDetailLine[itemNr].unitPrice"; + public static final String + JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_UNIT_PRICE = + "enhancedSchemeData.itemDetailLine[itemNr].unitPrice"; private String enhancedSchemeDataItemDetailLineItemNrUnitPrice; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ORDER_DATE = "enhancedSchemeData.orderDate"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ORDER_DATE = + "enhancedSchemeData.orderDate"; private String enhancedSchemeDataOrderDate; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_SHIP_FROM_POSTAL_CODE = "enhancedSchemeData.shipFromPostalCode"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_SHIP_FROM_POSTAL_CODE = + "enhancedSchemeData.shipFromPostalCode"; private String enhancedSchemeDataShipFromPostalCode; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT = "enhancedSchemeData.totalTaxAmount"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT = + "enhancedSchemeData.totalTaxAmount"; private String enhancedSchemeDataTotalTaxAmount; - public AdditionalDataLevel23() { - } + public AdditionalDataLevel23() {} /** - * The reference number to identify the customer and their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The reference number to identify the customer and their order. * Encoding: ASCII * Max length: + * 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataCustomerReference The reference number to identify the customer and their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataCustomerReference The reference number to identify the customer and + * their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or + * be all spaces. * Must not be all zeros. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataCustomerReference(String enhancedSchemeDataCustomerReference) { + public AdditionalDataLevel23 enhancedSchemeDataCustomerReference( + String enhancedSchemeDataCustomerReference) { this.enhancedSchemeDataCustomerReference = enhancedSchemeDataCustomerReference; return this; } /** - * The reference number to identify the customer and their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. - * @return enhancedSchemeDataCustomerReference The reference number to identify the customer and their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The reference number to identify the customer and their order. * Encoding: ASCII * Max length: + * 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * + * @return enhancedSchemeDataCustomerReference The reference number to identify the customer and + * their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or + * be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,9 +145,12 @@ public String getEnhancedSchemeDataCustomerReference() { } /** - * The reference number to identify the customer and their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The reference number to identify the customer and their order. * Encoding: ASCII * Max length: + * 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataCustomerReference The reference number to identify the customer and their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataCustomerReference The reference number to identify the customer and + * their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or + * be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,19 +159,29 @@ public void setEnhancedSchemeDataCustomerReference(String enhancedSchemeDataCust } /** - * The three-letter [ISO 3166-1 alpha-3 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * Encoding: ASCII * Fixed length: 3 characters + * The three-letter [ISO 3166-1 alpha-3 country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * + * Encoding: ASCII * Fixed length: 3 characters * - * @param enhancedSchemeDataDestinationCountryCode The three-letter [ISO 3166-1 alpha-3 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * Encoding: ASCII * Fixed length: 3 characters + * @param enhancedSchemeDataDestinationCountryCode The three-letter [ISO 3166-1 alpha-3 country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * + * Encoding: ASCII * Fixed length: 3 characters * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataDestinationCountryCode(String enhancedSchemeDataDestinationCountryCode) { + public AdditionalDataLevel23 enhancedSchemeDataDestinationCountryCode( + String enhancedSchemeDataDestinationCountryCode) { this.enhancedSchemeDataDestinationCountryCode = enhancedSchemeDataDestinationCountryCode; return this; } /** - * The three-letter [ISO 3166-1 alpha-3 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * Encoding: ASCII * Fixed length: 3 characters - * @return enhancedSchemeDataDestinationCountryCode The three-letter [ISO 3166-1 alpha-3 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * Encoding: ASCII * Fixed length: 3 characters + * The three-letter [ISO 3166-1 alpha-3 country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * + * Encoding: ASCII * Fixed length: 3 characters + * + * @return enhancedSchemeDataDestinationCountryCode The three-letter [ISO 3166-1 alpha-3 country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * + * Encoding: ASCII * Fixed length: 3 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,30 +190,49 @@ public String getEnhancedSchemeDataDestinationCountryCode() { } /** - * The three-letter [ISO 3166-1 alpha-3 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * Encoding: ASCII * Fixed length: 3 characters + * The three-letter [ISO 3166-1 alpha-3 country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * + * Encoding: ASCII * Fixed length: 3 characters * - * @param enhancedSchemeDataDestinationCountryCode The three-letter [ISO 3166-1 alpha-3 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * Encoding: ASCII * Fixed length: 3 characters + * @param enhancedSchemeDataDestinationCountryCode The three-letter [ISO 3166-1 alpha-3 country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * + * Encoding: ASCII * Fixed length: 3 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataDestinationCountryCode(String enhancedSchemeDataDestinationCountryCode) { + public void setEnhancedSchemeDataDestinationCountryCode( + String enhancedSchemeDataDestinationCountryCode) { this.enhancedSchemeDataDestinationCountryCode = enhancedSchemeDataDestinationCountryCode; } /** - * The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. + * The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * + * Must not start with a space. * For the US, it must be in five or nine digits format. For + * example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B + * 1G5. * - * @param enhancedSchemeDataDestinationPostalCode The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. + * @param enhancedSchemeDataDestinationPostalCode The postal code of the destination address. * + * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it + * must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it + * must be in 6 digits format. For example, M4B 1G5. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataDestinationPostalCode(String enhancedSchemeDataDestinationPostalCode) { + public AdditionalDataLevel23 enhancedSchemeDataDestinationPostalCode( + String enhancedSchemeDataDestinationPostalCode) { this.enhancedSchemeDataDestinationPostalCode = enhancedSchemeDataDestinationPostalCode; return this; } /** - * The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. - * @return enhancedSchemeDataDestinationPostalCode The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. + * The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * + * Must not start with a space. * For the US, it must be in five or nine digits format. For + * example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B + * 1G5. + * + * @return enhancedSchemeDataDestinationPostalCode The postal code of the destination address. * + * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it + * must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it + * must be in 6 digits format. For example, M4B 1G5. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,30 +241,46 @@ public String getEnhancedSchemeDataDestinationPostalCode() { } /** - * The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. + * The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * + * Must not start with a space. * For the US, it must be in five or nine digits format. For + * example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B + * 1G5. * - * @param enhancedSchemeDataDestinationPostalCode The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. + * @param enhancedSchemeDataDestinationPostalCode The postal code of the destination address. * + * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it + * must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it + * must be in 6 digits format. For example, M4B 1G5. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataDestinationPostalCode(String enhancedSchemeDataDestinationPostalCode) { + public void setEnhancedSchemeDataDestinationPostalCode( + String enhancedSchemeDataDestinationPostalCode) { this.enhancedSchemeDataDestinationPostalCode = enhancedSchemeDataDestinationPostalCode; } /** - * The state or province code of the destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a space. + * The state or province code of the destination address. * Encoding: ASCII * Max length: 3 + * characters * Must not start with a space. * - * @param enhancedSchemeDataDestinationStateProvinceCode The state or province code of the destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a space. + * @param enhancedSchemeDataDestinationStateProvinceCode The state or province code of the + * destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a + * space. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataDestinationStateProvinceCode(String enhancedSchemeDataDestinationStateProvinceCode) { - this.enhancedSchemeDataDestinationStateProvinceCode = enhancedSchemeDataDestinationStateProvinceCode; + public AdditionalDataLevel23 enhancedSchemeDataDestinationStateProvinceCode( + String enhancedSchemeDataDestinationStateProvinceCode) { + this.enhancedSchemeDataDestinationStateProvinceCode = + enhancedSchemeDataDestinationStateProvinceCode; return this; } /** - * The state or province code of the destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a space. - * @return enhancedSchemeDataDestinationStateProvinceCode The state or province code of the destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a space. + * The state or province code of the destination address. * Encoding: ASCII * Max length: 3 + * characters * Must not start with a space. + * + * @return enhancedSchemeDataDestinationStateProvinceCode The state or province code of the + * destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a + * space. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_STATE_PROVINCE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -220,20 +289,29 @@ public String getEnhancedSchemeDataDestinationStateProvinceCode() { } /** - * The state or province code of the destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a space. + * The state or province code of the destination address. * Encoding: ASCII * Max length: 3 + * characters * Must not start with a space. * - * @param enhancedSchemeDataDestinationStateProvinceCode The state or province code of the destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a space. + * @param enhancedSchemeDataDestinationStateProvinceCode The state or province code of the + * destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a + * space. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_STATE_PROVINCE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataDestinationStateProvinceCode(String enhancedSchemeDataDestinationStateProvinceCode) { - this.enhancedSchemeDataDestinationStateProvinceCode = enhancedSchemeDataDestinationStateProvinceCode; + public void setEnhancedSchemeDataDestinationStateProvinceCode( + String enhancedSchemeDataDestinationStateProvinceCode) { + this.enhancedSchemeDataDestinationStateProvinceCode = + enhancedSchemeDataDestinationStateProvinceCode; } /** - * The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The duty tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means + * USD 20.00. * Encoding: Numeric * Max length: 12 characters * - * @param enhancedSchemeDataDutyAmount The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * @param enhancedSchemeDataDutyAmount The duty tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 + * means USD 20.00. * Encoding: Numeric * Max length: 12 characters * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ public AdditionalDataLevel23 enhancedSchemeDataDutyAmount(String enhancedSchemeDataDutyAmount) { @@ -242,8 +320,13 @@ public AdditionalDataLevel23 enhancedSchemeDataDutyAmount(String enhancedSchemeD } /** - * The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters - * @return enhancedSchemeDataDutyAmount The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The duty tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means + * USD 20.00. * Encoding: Numeric * Max length: 12 characters + * + * @return enhancedSchemeDataDutyAmount The duty tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 + * means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_DUTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,9 +335,13 @@ public String getEnhancedSchemeDataDutyAmount() { } /** - * The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The duty tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means + * USD 20.00. * Encoding: Numeric * Max length: 12 characters * - * @param enhancedSchemeDataDutyAmount The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * @param enhancedSchemeDataDutyAmount The duty tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 + * means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_DUTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -263,19 +350,29 @@ public void setEnhancedSchemeDataDutyAmount(String enhancedSchemeDataDutyAmount) } /** - * The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The shipping amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means + * USD 20.00. * Encoding: Numeric * Max length: 12 characters * - * @param enhancedSchemeDataFreightAmount The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * @param enhancedSchemeDataFreightAmount The shipping amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 + * means USD 20.00. * Encoding: Numeric * Max length: 12 characters * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataFreightAmount(String enhancedSchemeDataFreightAmount) { + public AdditionalDataLevel23 enhancedSchemeDataFreightAmount( + String enhancedSchemeDataFreightAmount) { this.enhancedSchemeDataFreightAmount = enhancedSchemeDataFreightAmount; return this; } /** - * The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters - * @return enhancedSchemeDataFreightAmount The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The shipping amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means + * USD 20.00. * Encoding: Numeric * Max length: 12 characters + * + * @return enhancedSchemeDataFreightAmount The shipping amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 + * means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_FREIGHT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,9 +381,13 @@ public String getEnhancedSchemeDataFreightAmount() { } /** - * The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The shipping amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means + * USD 20.00. * Encoding: Numeric * Max length: 12 characters * - * @param enhancedSchemeDataFreightAmount The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * @param enhancedSchemeDataFreightAmount The shipping amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 + * means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_FREIGHT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -295,19 +396,44 @@ public void setEnhancedSchemeDataFreightAmount(String enhancedSchemeDataFreightA } /** - * The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The code that identifies the item in a standardized commodity coding scheme. There are + * different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS + * commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS + * commodity codes](https://www.census.gov/naics/) * [NAPCS commodity + * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * + * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in + * a standardized commodity coding scheme. There are different commodity coding schemes: * + * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity + * codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity + * codes](https://www.census.gov/naics/) * [NAPCS commodity + * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * + * Must not start with a space or be all spaces. * Must not be all zeros. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrCommodityCode(String enhancedSchemeDataItemDetailLineItemNrCommodityCode) { - this.enhancedSchemeDataItemDetailLineItemNrCommodityCode = enhancedSchemeDataItemDetailLineItemNrCommodityCode; + public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrCommodityCode( + String enhancedSchemeDataItemDetailLineItemNrCommodityCode) { + this.enhancedSchemeDataItemDetailLineItemNrCommodityCode = + enhancedSchemeDataItemDetailLineItemNrCommodityCode; return this; } /** - * The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. - * @return enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The code that identifies the item in a standardized commodity coding scheme. There are + * different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS + * commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS + * commodity codes](https://www.census.gov/naics/) * [NAPCS commodity + * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * + * Must not start with a space or be all spaces. * Must not be all zeros. + * + * @return enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item + * in a standardized commodity coding scheme. There are different commodity coding schemes: * + * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity + * codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity + * codes](https://www.census.gov/naics/) * [NAPCS commodity + * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * + * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_COMMODITY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -316,30 +442,68 @@ public String getEnhancedSchemeDataItemDetailLineItemNrCommodityCode() { } /** - * The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The code that identifies the item in a standardized commodity coding scheme. There are + * different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS + * commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS + * commodity codes](https://www.census.gov/naics/) * [NAPCS commodity + * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * + * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in + * a standardized commodity coding scheme. There are different commodity coding schemes: * + * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity + * codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity + * codes](https://www.census.gov/naics/) * [NAPCS commodity + * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * + * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_COMMODITY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataItemDetailLineItemNrCommodityCode(String enhancedSchemeDataItemDetailLineItemNrCommodityCode) { - this.enhancedSchemeDataItemDetailLineItemNrCommodityCode = enhancedSchemeDataItemDetailLineItemNrCommodityCode; + public void setEnhancedSchemeDataItemDetailLineItemNrCommodityCode( + String enhancedSchemeDataItemDetailLineItemNrCommodityCode) { + this.enhancedSchemeDataItemDetailLineItemNrCommodityCode = + enhancedSchemeDataItemDetailLineItemNrCommodityCode; } /** - * A description of the item, that provides details about the purchase. For Visa transactions with level 3 ESD, the description must not be the same or very similar to your merchant name, or, consist only of common words like \"product\", or \"service\". * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not be all special characters. * Must not be blank. * Must not start with a space or be all spaces. * Must not be all zeros. + * A description of the item, that provides details about the purchase. For Visa transactions with + * level 3 ESD, the description must not be the same or very similar to your merchant name, or, + * consist only of common words like \"product\", or \"service\". * Encoding: + * ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must + * not be all special characters. * Must not be blank. * Must not start with a space or be all + * spaces. * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrDescription A description of the item, that provides details about the purchase. For Visa transactions with level 3 ESD, the description must not be the same or very similar to your merchant name, or, consist only of common words like \"product\", or \"service\". * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not be all special characters. * Must not be blank. * Must not start with a space or be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrDescription A description of the item, that + * provides details about the purchase. For Visa transactions with level 3 ESD, the + * description must not be the same or very similar to your merchant name, or, consist only of + * common words like \"product\", or \"service\". * Encoding: ASCII * Max + * length: 26 characters * Must not be a single character. * Must not be blank. * Must not be + * all special characters. * Must not be blank. * Must not start with a space or be all + * spaces. * Must not be all zeros. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrDescription(String enhancedSchemeDataItemDetailLineItemNrDescription) { - this.enhancedSchemeDataItemDetailLineItemNrDescription = enhancedSchemeDataItemDetailLineItemNrDescription; + public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrDescription( + String enhancedSchemeDataItemDetailLineItemNrDescription) { + this.enhancedSchemeDataItemDetailLineItemNrDescription = + enhancedSchemeDataItemDetailLineItemNrDescription; return this; } /** - * A description of the item, that provides details about the purchase. For Visa transactions with level 3 ESD, the description must not be the same or very similar to your merchant name, or, consist only of common words like \"product\", or \"service\". * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not be all special characters. * Must not be blank. * Must not start with a space or be all spaces. * Must not be all zeros. - * @return enhancedSchemeDataItemDetailLineItemNrDescription A description of the item, that provides details about the purchase. For Visa transactions with level 3 ESD, the description must not be the same or very similar to your merchant name, or, consist only of common words like \"product\", or \"service\". * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not be all special characters. * Must not be blank. * Must not start with a space or be all spaces. * Must not be all zeros. + * A description of the item, that provides details about the purchase. For Visa transactions with + * level 3 ESD, the description must not be the same or very similar to your merchant name, or, + * consist only of common words like \"product\", or \"service\". * Encoding: + * ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must + * not be all special characters. * Must not be blank. * Must not start with a space or be all + * spaces. * Must not be all zeros. + * + * @return enhancedSchemeDataItemDetailLineItemNrDescription A description of the item, that + * provides details about the purchase. For Visa transactions with level 3 ESD, the + * description must not be the same or very similar to your merchant name, or, consist only of + * common words like \"product\", or \"service\". * Encoding: ASCII * Max + * length: 26 characters * Must not be a single character. * Must not be blank. * Must not be + * all special characters. * Must not be blank. * Must not start with a space or be all + * spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -348,30 +512,54 @@ public String getEnhancedSchemeDataItemDetailLineItemNrDescription() { } /** - * A description of the item, that provides details about the purchase. For Visa transactions with level 3 ESD, the description must not be the same or very similar to your merchant name, or, consist only of common words like \"product\", or \"service\". * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not be all special characters. * Must not be blank. * Must not start with a space or be all spaces. * Must not be all zeros. + * A description of the item, that provides details about the purchase. For Visa transactions with + * level 3 ESD, the description must not be the same or very similar to your merchant name, or, + * consist only of common words like \"product\", or \"service\". * Encoding: + * ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must + * not be all special characters. * Must not be blank. * Must not start with a space or be all + * spaces. * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrDescription A description of the item, that provides details about the purchase. For Visa transactions with level 3 ESD, the description must not be the same or very similar to your merchant name, or, consist only of common words like \"product\", or \"service\". * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not be all special characters. * Must not be blank. * Must not start with a space or be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrDescription A description of the item, that + * provides details about the purchase. For Visa transactions with level 3 ESD, the + * description must not be the same or very similar to your merchant name, or, consist only of + * common words like \"product\", or \"service\". * Encoding: ASCII * Max + * length: 26 characters * Must not be a single character. * Must not be blank. * Must not be + * all special characters. * Must not be blank. * Must not start with a space or be all + * spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataItemDetailLineItemNrDescription(String enhancedSchemeDataItemDetailLineItemNrDescription) { - this.enhancedSchemeDataItemDetailLineItemNrDescription = enhancedSchemeDataItemDetailLineItemNrDescription; + public void setEnhancedSchemeDataItemDetailLineItemNrDescription( + String enhancedSchemeDataItemDetailLineItemNrDescription) { + this.enhancedSchemeDataItemDetailLineItemNrDescription = + enhancedSchemeDataItemDetailLineItemNrDescription; } /** - * The discount amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The discount amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means + * USD 20.00. * Encoding: Numeric * Max length: 12 characters * - * @param enhancedSchemeDataItemDetailLineItemNrDiscountAmount The discount amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * @param enhancedSchemeDataItemDetailLineItemNrDiscountAmount The discount amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 + * means USD 20.00. * Encoding: Numeric * Max length: 12 characters * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrDiscountAmount(String enhancedSchemeDataItemDetailLineItemNrDiscountAmount) { - this.enhancedSchemeDataItemDetailLineItemNrDiscountAmount = enhancedSchemeDataItemDetailLineItemNrDiscountAmount; + public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrDiscountAmount( + String enhancedSchemeDataItemDetailLineItemNrDiscountAmount) { + this.enhancedSchemeDataItemDetailLineItemNrDiscountAmount = + enhancedSchemeDataItemDetailLineItemNrDiscountAmount; return this; } /** - * The discount amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters - * @return enhancedSchemeDataItemDetailLineItemNrDiscountAmount The discount amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The discount amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means + * USD 20.00. * Encoding: Numeric * Max length: 12 characters + * + * @return enhancedSchemeDataItemDetailLineItemNrDiscountAmount The discount amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 + * means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DISCOUNT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -380,30 +568,51 @@ public String getEnhancedSchemeDataItemDetailLineItemNrDiscountAmount() { } /** - * The discount amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The discount amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means + * USD 20.00. * Encoding: Numeric * Max length: 12 characters * - * @param enhancedSchemeDataItemDetailLineItemNrDiscountAmount The discount amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * @param enhancedSchemeDataItemDetailLineItemNrDiscountAmount The discount amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 + * means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DISCOUNT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataItemDetailLineItemNrDiscountAmount(String enhancedSchemeDataItemDetailLineItemNrDiscountAmount) { - this.enhancedSchemeDataItemDetailLineItemNrDiscountAmount = enhancedSchemeDataItemDetailLineItemNrDiscountAmount; + public void setEnhancedSchemeDataItemDetailLineItemNrDiscountAmount( + String enhancedSchemeDataItemDetailLineItemNrDiscountAmount) { + this.enhancedSchemeDataItemDetailLineItemNrDiscountAmount = + enhancedSchemeDataItemDetailLineItemNrDiscountAmount; } /** - * The product code. Must be a unique product code associated with the item or service. This can be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The product code. Must be a unique product code associated with the item or service. This can + * be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * + * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all + * zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrProductCode The product code. Must be a unique product code associated with the item or service. This can be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrProductCode The product code. Must be a unique + * product code associated with the item or service. This can be your unique code for the + * item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 + * characters * Must not start with a space or be all spaces. * Must not be all zeros. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrProductCode(String enhancedSchemeDataItemDetailLineItemNrProductCode) { - this.enhancedSchemeDataItemDetailLineItemNrProductCode = enhancedSchemeDataItemDetailLineItemNrProductCode; + public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrProductCode( + String enhancedSchemeDataItemDetailLineItemNrProductCode) { + this.enhancedSchemeDataItemDetailLineItemNrProductCode = + enhancedSchemeDataItemDetailLineItemNrProductCode; return this; } /** - * The product code. Must be a unique product code associated with the item or service. This can be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. - * @return enhancedSchemeDataItemDetailLineItemNrProductCode The product code. Must be a unique product code associated with the item or service. This can be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The product code. Must be a unique product code associated with the item or service. This can + * be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * + * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all + * zeros. + * + * @return enhancedSchemeDataItemDetailLineItemNrProductCode The product code. Must be a unique + * product code associated with the item or service. This can be your unique code for the + * item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 + * characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_PRODUCT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -412,30 +621,47 @@ public String getEnhancedSchemeDataItemDetailLineItemNrProductCode() { } /** - * The product code. Must be a unique product code associated with the item or service. This can be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The product code. Must be a unique product code associated with the item or service. This can + * be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * + * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all + * zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrProductCode The product code. Must be a unique product code associated with the item or service. This can be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrProductCode The product code. Must be a unique + * product code associated with the item or service. This can be your unique code for the + * item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 + * characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_PRODUCT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataItemDetailLineItemNrProductCode(String enhancedSchemeDataItemDetailLineItemNrProductCode) { - this.enhancedSchemeDataItemDetailLineItemNrProductCode = enhancedSchemeDataItemDetailLineItemNrProductCode; + public void setEnhancedSchemeDataItemDetailLineItemNrProductCode( + String enhancedSchemeDataItemDetailLineItemNrProductCode) { + this.enhancedSchemeDataItemDetailLineItemNrProductCode = + enhancedSchemeDataItemDetailLineItemNrProductCode; } /** - * The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a space or be all spaces. + * The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 + * characters * Must not start with a space or be all spaces. * - * @param enhancedSchemeDataItemDetailLineItemNrQuantity The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a space or be all spaces. + * @param enhancedSchemeDataItemDetailLineItemNrQuantity The number of items. Must be an integer + * greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a + * space or be all spaces. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrQuantity(String enhancedSchemeDataItemDetailLineItemNrQuantity) { - this.enhancedSchemeDataItemDetailLineItemNrQuantity = enhancedSchemeDataItemDetailLineItemNrQuantity; + public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrQuantity( + String enhancedSchemeDataItemDetailLineItemNrQuantity) { + this.enhancedSchemeDataItemDetailLineItemNrQuantity = + enhancedSchemeDataItemDetailLineItemNrQuantity; return this; } /** - * The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a space or be all spaces. - * @return enhancedSchemeDataItemDetailLineItemNrQuantity The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a space or be all spaces. + * The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 + * characters * Must not start with a space or be all spaces. + * + * @return enhancedSchemeDataItemDetailLineItemNrQuantity The number of items. Must be an integer + * greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a + * space or be all spaces. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -444,30 +670,62 @@ public String getEnhancedSchemeDataItemDetailLineItemNrQuantity() { } /** - * The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a space or be all spaces. + * The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 + * characters * Must not start with a space or be all spaces. * - * @param enhancedSchemeDataItemDetailLineItemNrQuantity The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a space or be all spaces. + * @param enhancedSchemeDataItemDetailLineItemNrQuantity The number of items. Must be an integer + * greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a + * space or be all spaces. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataItemDetailLineItemNrQuantity(String enhancedSchemeDataItemDetailLineItemNrQuantity) { - this.enhancedSchemeDataItemDetailLineItemNrQuantity = enhancedSchemeDataItemDetailLineItemNrQuantity; + public void setEnhancedSchemeDataItemDetailLineItemNrQuantity( + String enhancedSchemeDataItemDetailLineItemNrQuantity) { + this.enhancedSchemeDataItemDetailLineItemNrQuantity = + enhancedSchemeDataItemDetailLineItemNrQuantity; } /** - * The total amount for the line item, in [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements for level 2/3 ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The total amount for the line item, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements + * for level 2/3 + * ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) + * to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. + * * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all + * zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrTotalAmount The total amount for the line item, in [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements for level 2/3 ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrTotalAmount The total amount for the line item, in + * [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount + * requirements for level 2/3 + * ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) + * to learn more about how to calculate the line item total. * For example, 2000 means USD + * 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must + * not be all zeros. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrTotalAmount(String enhancedSchemeDataItemDetailLineItemNrTotalAmount) { - this.enhancedSchemeDataItemDetailLineItemNrTotalAmount = enhancedSchemeDataItemDetailLineItemNrTotalAmount; + public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrTotalAmount( + String enhancedSchemeDataItemDetailLineItemNrTotalAmount) { + this.enhancedSchemeDataItemDetailLineItemNrTotalAmount = + enhancedSchemeDataItemDetailLineItemNrTotalAmount; return this; } /** - * The total amount for the line item, in [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements for level 2/3 ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. - * @return enhancedSchemeDataItemDetailLineItemNrTotalAmount The total amount for the line item, in [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements for level 2/3 ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The total amount for the line item, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements + * for level 2/3 + * ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) + * to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. + * * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all + * zeros. + * + * @return enhancedSchemeDataItemDetailLineItemNrTotalAmount The total amount for the line item, + * in [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount + * requirements for level 2/3 + * ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) + * to learn more about how to calculate the line item total. * For example, 2000 means USD + * 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must + * not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_TOTAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -476,30 +734,53 @@ public String getEnhancedSchemeDataItemDetailLineItemNrTotalAmount() { } /** - * The total amount for the line item, in [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements for level 2/3 ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The total amount for the line item, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements + * for level 2/3 + * ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) + * to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. + * * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all + * zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrTotalAmount The total amount for the line item, in [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements for level 2/3 ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrTotalAmount The total amount for the line item, in + * [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount + * requirements for level 2/3 + * ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) + * to learn more about how to calculate the line item total. * For example, 2000 means USD + * 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must + * not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_TOTAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataItemDetailLineItemNrTotalAmount(String enhancedSchemeDataItemDetailLineItemNrTotalAmount) { - this.enhancedSchemeDataItemDetailLineItemNrTotalAmount = enhancedSchemeDataItemDetailLineItemNrTotalAmount; + public void setEnhancedSchemeDataItemDetailLineItemNrTotalAmount( + String enhancedSchemeDataItemDetailLineItemNrTotalAmount) { + this.enhancedSchemeDataItemDetailLineItemNrTotalAmount = + enhancedSchemeDataItemDetailLineItemNrTotalAmount; } /** - * The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not + * start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure The unit of measurement for an item. + * * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all + * spaces. * Must not be all zeros. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure(String enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure) { - this.enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure = enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure; + public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure( + String enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure) { + this.enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure = + enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure; return this; } /** - * The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. - * @return enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not + * start with a space or be all spaces. * Must not be all zeros. + * + * @return enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure The unit of measurement for an + * item. * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all + * spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_UNIT_OF_MEASURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -508,30 +789,46 @@ public String getEnhancedSchemeDataItemDetailLineItemNrUnitOfMeasure() { } /** - * The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not + * start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure The unit of measurement for an item. + * * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all + * spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_UNIT_OF_MEASURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataItemDetailLineItemNrUnitOfMeasure(String enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure) { - this.enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure = enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure; + public void setEnhancedSchemeDataItemDetailLineItemNrUnitOfMeasure( + String enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure) { + this.enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure = + enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure; } /** - * The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * + * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not + * be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrUnitPrice The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrUnitPrice The unit price in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 + * means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrUnitPrice(String enhancedSchemeDataItemDetailLineItemNrUnitPrice) { - this.enhancedSchemeDataItemDetailLineItemNrUnitPrice = enhancedSchemeDataItemDetailLineItemNrUnitPrice; + public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrUnitPrice( + String enhancedSchemeDataItemDetailLineItemNrUnitPrice) { + this.enhancedSchemeDataItemDetailLineItemNrUnitPrice = + enhancedSchemeDataItemDetailLineItemNrUnitPrice; return this; } /** - * The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. - * @return enhancedSchemeDataItemDetailLineItemNrUnitPrice The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * + * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not + * be all zeros. + * + * @return enhancedSchemeDataItemDetailLineItemNrUnitPrice The unit price in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 + * means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_UNIT_PRICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -540,20 +837,27 @@ public String getEnhancedSchemeDataItemDetailLineItemNrUnitPrice() { } /** - * The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * + * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not + * be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrUnitPrice The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrUnitPrice The unit price in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 + * means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_UNIT_PRICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataItemDetailLineItemNrUnitPrice(String enhancedSchemeDataItemDetailLineItemNrUnitPrice) { - this.enhancedSchemeDataItemDetailLineItemNrUnitPrice = enhancedSchemeDataItemDetailLineItemNrUnitPrice; + public void setEnhancedSchemeDataItemDetailLineItemNrUnitPrice( + String enhancedSchemeDataItemDetailLineItemNrUnitPrice) { + this.enhancedSchemeDataItemDetailLineItemNrUnitPrice = + enhancedSchemeDataItemDetailLineItemNrUnitPrice; } /** * The order date. * Format: `ddMMyy` * Encoding: ASCII * Max length: 6 characters * - * @param enhancedSchemeDataOrderDate The order date. * Format: `ddMMyy` * Encoding: ASCII * Max length: 6 characters + * @param enhancedSchemeDataOrderDate The order date. * Format: `ddMMyy` * Encoding: + * ASCII * Max length: 6 characters * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ public AdditionalDataLevel23 enhancedSchemeDataOrderDate(String enhancedSchemeDataOrderDate) { @@ -563,7 +867,9 @@ public AdditionalDataLevel23 enhancedSchemeDataOrderDate(String enhancedSchemeDa /** * The order date. * Format: `ddMMyy` * Encoding: ASCII * Max length: 6 characters - * @return enhancedSchemeDataOrderDate The order date. * Format: `ddMMyy` * Encoding: ASCII * Max length: 6 characters + * + * @return enhancedSchemeDataOrderDate The order date. * Format: `ddMMyy` * Encoding: + * ASCII * Max length: 6 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ORDER_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -574,7 +880,8 @@ public String getEnhancedSchemeDataOrderDate() { /** * The order date. * Format: `ddMMyy` * Encoding: ASCII * Max length: 6 characters * - * @param enhancedSchemeDataOrderDate The order date. * Format: `ddMMyy` * Encoding: ASCII * Max length: 6 characters + * @param enhancedSchemeDataOrderDate The order date. * Format: `ddMMyy` * Encoding: + * ASCII * Max length: 6 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ORDER_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -583,19 +890,35 @@ public void setEnhancedSchemeDataOrderDate(String enhancedSchemeDataOrderDate) { } /** - * The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. + * The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: + * 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the + * US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, + * it must be in 6 digits format. For example, M4B 1G5. * - * @param enhancedSchemeDataShipFromPostalCode The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. + * @param enhancedSchemeDataShipFromPostalCode The postal code of the address where the item is + * shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space + * or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits + * format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For + * example, M4B 1G5. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataShipFromPostalCode(String enhancedSchemeDataShipFromPostalCode) { + public AdditionalDataLevel23 enhancedSchemeDataShipFromPostalCode( + String enhancedSchemeDataShipFromPostalCode) { this.enhancedSchemeDataShipFromPostalCode = enhancedSchemeDataShipFromPostalCode; return this; } /** - * The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. - * @return enhancedSchemeDataShipFromPostalCode The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. + * The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: + * 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the + * US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, + * it must be in 6 digits format. For example, M4B 1G5. + * + * @return enhancedSchemeDataShipFromPostalCode The postal code of the address where the item is + * shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space + * or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits + * format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For + * example, M4B 1G5. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_SHIP_FROM_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -604,9 +927,16 @@ public String getEnhancedSchemeDataShipFromPostalCode() { } /** - * The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. + * The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: + * 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the + * US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, + * it must be in 6 digits format. For example, M4B 1G5. * - * @param enhancedSchemeDataShipFromPostalCode The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. + * @param enhancedSchemeDataShipFromPostalCode The postal code of the address where the item is + * shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space + * or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits + * format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For + * example, M4B 1G5. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_SHIP_FROM_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -615,19 +945,37 @@ public void setEnhancedSchemeDataShipFromPostalCode(String enhancedSchemeDataShi } /** - * The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * The amount of state or provincial [tax included in the total transaction + * amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), + * in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, + * 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. * - * @param enhancedSchemeDataTotalTaxAmount The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * @param enhancedSchemeDataTotalTaxAmount The amount of state or provincial [tax included in the + * total transaction + * amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), + * in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For + * example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not + * be all zeros. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataTotalTaxAmount(String enhancedSchemeDataTotalTaxAmount) { + public AdditionalDataLevel23 enhancedSchemeDataTotalTaxAmount( + String enhancedSchemeDataTotalTaxAmount) { this.enhancedSchemeDataTotalTaxAmount = enhancedSchemeDataTotalTaxAmount; return this; } /** - * The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. - * @return enhancedSchemeDataTotalTaxAmount The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * The amount of state or provincial [tax included in the total transaction + * amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), + * in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, + * 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * + * @return enhancedSchemeDataTotalTaxAmount The amount of state or provincial [tax included in the + * total transaction + * amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), + * in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For + * example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not + * be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -636,9 +984,17 @@ public String getEnhancedSchemeDataTotalTaxAmount() { } /** - * The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * The amount of state or provincial [tax included in the total transaction + * amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), + * in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, + * 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. * - * @param enhancedSchemeDataTotalTaxAmount The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * @param enhancedSchemeDataTotalTaxAmount The amount of state or provincial [tax included in the + * total transaction + * amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), + * in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For + * example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not + * be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -646,9 +1002,7 @@ public void setEnhancedSchemeDataTotalTaxAmount(String enhancedSchemeDataTotalTa this.enhancedSchemeDataTotalTaxAmount = enhancedSchemeDataTotalTaxAmount; } - /** - * Return true if this AdditionalDataLevel23 object is equal to o. - */ + /** Return true if this AdditionalDataLevel23 object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -658,58 +1012,140 @@ public boolean equals(Object o) { return false; } AdditionalDataLevel23 additionalDataLevel23 = (AdditionalDataLevel23) o; - return Objects.equals(this.enhancedSchemeDataCustomerReference, additionalDataLevel23.enhancedSchemeDataCustomerReference) && - Objects.equals(this.enhancedSchemeDataDestinationCountryCode, additionalDataLevel23.enhancedSchemeDataDestinationCountryCode) && - Objects.equals(this.enhancedSchemeDataDestinationPostalCode, additionalDataLevel23.enhancedSchemeDataDestinationPostalCode) && - Objects.equals(this.enhancedSchemeDataDestinationStateProvinceCode, additionalDataLevel23.enhancedSchemeDataDestinationStateProvinceCode) && - Objects.equals(this.enhancedSchemeDataDutyAmount, additionalDataLevel23.enhancedSchemeDataDutyAmount) && - Objects.equals(this.enhancedSchemeDataFreightAmount, additionalDataLevel23.enhancedSchemeDataFreightAmount) && - Objects.equals(this.enhancedSchemeDataItemDetailLineItemNrCommodityCode, additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrCommodityCode) && - Objects.equals(this.enhancedSchemeDataItemDetailLineItemNrDescription, additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrDescription) && - Objects.equals(this.enhancedSchemeDataItemDetailLineItemNrDiscountAmount, additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrDiscountAmount) && - Objects.equals(this.enhancedSchemeDataItemDetailLineItemNrProductCode, additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrProductCode) && - Objects.equals(this.enhancedSchemeDataItemDetailLineItemNrQuantity, additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrQuantity) && - Objects.equals(this.enhancedSchemeDataItemDetailLineItemNrTotalAmount, additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrTotalAmount) && - Objects.equals(this.enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure, additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure) && - Objects.equals(this.enhancedSchemeDataItemDetailLineItemNrUnitPrice, additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrUnitPrice) && - Objects.equals(this.enhancedSchemeDataOrderDate, additionalDataLevel23.enhancedSchemeDataOrderDate) && - Objects.equals(this.enhancedSchemeDataShipFromPostalCode, additionalDataLevel23.enhancedSchemeDataShipFromPostalCode) && - Objects.equals(this.enhancedSchemeDataTotalTaxAmount, additionalDataLevel23.enhancedSchemeDataTotalTaxAmount); + return Objects.equals( + this.enhancedSchemeDataCustomerReference, + additionalDataLevel23.enhancedSchemeDataCustomerReference) + && Objects.equals( + this.enhancedSchemeDataDestinationCountryCode, + additionalDataLevel23.enhancedSchemeDataDestinationCountryCode) + && Objects.equals( + this.enhancedSchemeDataDestinationPostalCode, + additionalDataLevel23.enhancedSchemeDataDestinationPostalCode) + && Objects.equals( + this.enhancedSchemeDataDestinationStateProvinceCode, + additionalDataLevel23.enhancedSchemeDataDestinationStateProvinceCode) + && Objects.equals( + this.enhancedSchemeDataDutyAmount, additionalDataLevel23.enhancedSchemeDataDutyAmount) + && Objects.equals( + this.enhancedSchemeDataFreightAmount, + additionalDataLevel23.enhancedSchemeDataFreightAmount) + && Objects.equals( + this.enhancedSchemeDataItemDetailLineItemNrCommodityCode, + additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrCommodityCode) + && Objects.equals( + this.enhancedSchemeDataItemDetailLineItemNrDescription, + additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrDescription) + && Objects.equals( + this.enhancedSchemeDataItemDetailLineItemNrDiscountAmount, + additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrDiscountAmount) + && Objects.equals( + this.enhancedSchemeDataItemDetailLineItemNrProductCode, + additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrProductCode) + && Objects.equals( + this.enhancedSchemeDataItemDetailLineItemNrQuantity, + additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrQuantity) + && Objects.equals( + this.enhancedSchemeDataItemDetailLineItemNrTotalAmount, + additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrTotalAmount) + && Objects.equals( + this.enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure, + additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure) + && Objects.equals( + this.enhancedSchemeDataItemDetailLineItemNrUnitPrice, + additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrUnitPrice) + && Objects.equals( + this.enhancedSchemeDataOrderDate, additionalDataLevel23.enhancedSchemeDataOrderDate) + && Objects.equals( + this.enhancedSchemeDataShipFromPostalCode, + additionalDataLevel23.enhancedSchemeDataShipFromPostalCode) + && Objects.equals( + this.enhancedSchemeDataTotalTaxAmount, + additionalDataLevel23.enhancedSchemeDataTotalTaxAmount); } @Override public int hashCode() { - return Objects.hash(enhancedSchemeDataCustomerReference, enhancedSchemeDataDestinationCountryCode, enhancedSchemeDataDestinationPostalCode, enhancedSchemeDataDestinationStateProvinceCode, enhancedSchemeDataDutyAmount, enhancedSchemeDataFreightAmount, enhancedSchemeDataItemDetailLineItemNrCommodityCode, enhancedSchemeDataItemDetailLineItemNrDescription, enhancedSchemeDataItemDetailLineItemNrDiscountAmount, enhancedSchemeDataItemDetailLineItemNrProductCode, enhancedSchemeDataItemDetailLineItemNrQuantity, enhancedSchemeDataItemDetailLineItemNrTotalAmount, enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure, enhancedSchemeDataItemDetailLineItemNrUnitPrice, enhancedSchemeDataOrderDate, enhancedSchemeDataShipFromPostalCode, enhancedSchemeDataTotalTaxAmount); + return Objects.hash( + enhancedSchemeDataCustomerReference, + enhancedSchemeDataDestinationCountryCode, + enhancedSchemeDataDestinationPostalCode, + enhancedSchemeDataDestinationStateProvinceCode, + enhancedSchemeDataDutyAmount, + enhancedSchemeDataFreightAmount, + enhancedSchemeDataItemDetailLineItemNrCommodityCode, + enhancedSchemeDataItemDetailLineItemNrDescription, + enhancedSchemeDataItemDetailLineItemNrDiscountAmount, + enhancedSchemeDataItemDetailLineItemNrProductCode, + enhancedSchemeDataItemDetailLineItemNrQuantity, + enhancedSchemeDataItemDetailLineItemNrTotalAmount, + enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure, + enhancedSchemeDataItemDetailLineItemNrUnitPrice, + enhancedSchemeDataOrderDate, + enhancedSchemeDataShipFromPostalCode, + enhancedSchemeDataTotalTaxAmount); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataLevel23 {\n"); - sb.append(" enhancedSchemeDataCustomerReference: ").append(toIndentedString(enhancedSchemeDataCustomerReference)).append("\n"); - sb.append(" enhancedSchemeDataDestinationCountryCode: ").append(toIndentedString(enhancedSchemeDataDestinationCountryCode)).append("\n"); - sb.append(" enhancedSchemeDataDestinationPostalCode: ").append(toIndentedString(enhancedSchemeDataDestinationPostalCode)).append("\n"); - sb.append(" enhancedSchemeDataDestinationStateProvinceCode: ").append(toIndentedString(enhancedSchemeDataDestinationStateProvinceCode)).append("\n"); - sb.append(" enhancedSchemeDataDutyAmount: ").append(toIndentedString(enhancedSchemeDataDutyAmount)).append("\n"); - sb.append(" enhancedSchemeDataFreightAmount: ").append(toIndentedString(enhancedSchemeDataFreightAmount)).append("\n"); - sb.append(" enhancedSchemeDataItemDetailLineItemNrCommodityCode: ").append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrCommodityCode)).append("\n"); - sb.append(" enhancedSchemeDataItemDetailLineItemNrDescription: ").append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrDescription)).append("\n"); - sb.append(" enhancedSchemeDataItemDetailLineItemNrDiscountAmount: ").append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrDiscountAmount)).append("\n"); - sb.append(" enhancedSchemeDataItemDetailLineItemNrProductCode: ").append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrProductCode)).append("\n"); - sb.append(" enhancedSchemeDataItemDetailLineItemNrQuantity: ").append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrQuantity)).append("\n"); - sb.append(" enhancedSchemeDataItemDetailLineItemNrTotalAmount: ").append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrTotalAmount)).append("\n"); - sb.append(" enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure: ").append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure)).append("\n"); - sb.append(" enhancedSchemeDataItemDetailLineItemNrUnitPrice: ").append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrUnitPrice)).append("\n"); - sb.append(" enhancedSchemeDataOrderDate: ").append(toIndentedString(enhancedSchemeDataOrderDate)).append("\n"); - sb.append(" enhancedSchemeDataShipFromPostalCode: ").append(toIndentedString(enhancedSchemeDataShipFromPostalCode)).append("\n"); - sb.append(" enhancedSchemeDataTotalTaxAmount: ").append(toIndentedString(enhancedSchemeDataTotalTaxAmount)).append("\n"); + sb.append(" enhancedSchemeDataCustomerReference: ") + .append(toIndentedString(enhancedSchemeDataCustomerReference)) + .append("\n"); + sb.append(" enhancedSchemeDataDestinationCountryCode: ") + .append(toIndentedString(enhancedSchemeDataDestinationCountryCode)) + .append("\n"); + sb.append(" enhancedSchemeDataDestinationPostalCode: ") + .append(toIndentedString(enhancedSchemeDataDestinationPostalCode)) + .append("\n"); + sb.append(" enhancedSchemeDataDestinationStateProvinceCode: ") + .append(toIndentedString(enhancedSchemeDataDestinationStateProvinceCode)) + .append("\n"); + sb.append(" enhancedSchemeDataDutyAmount: ") + .append(toIndentedString(enhancedSchemeDataDutyAmount)) + .append("\n"); + sb.append(" enhancedSchemeDataFreightAmount: ") + .append(toIndentedString(enhancedSchemeDataFreightAmount)) + .append("\n"); + sb.append(" enhancedSchemeDataItemDetailLineItemNrCommodityCode: ") + .append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrCommodityCode)) + .append("\n"); + sb.append(" enhancedSchemeDataItemDetailLineItemNrDescription: ") + .append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrDescription)) + .append("\n"); + sb.append(" enhancedSchemeDataItemDetailLineItemNrDiscountAmount: ") + .append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrDiscountAmount)) + .append("\n"); + sb.append(" enhancedSchemeDataItemDetailLineItemNrProductCode: ") + .append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrProductCode)) + .append("\n"); + sb.append(" enhancedSchemeDataItemDetailLineItemNrQuantity: ") + .append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrQuantity)) + .append("\n"); + sb.append(" enhancedSchemeDataItemDetailLineItemNrTotalAmount: ") + .append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrTotalAmount)) + .append("\n"); + sb.append(" enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure: ") + .append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure)) + .append("\n"); + sb.append(" enhancedSchemeDataItemDetailLineItemNrUnitPrice: ") + .append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrUnitPrice)) + .append("\n"); + sb.append(" enhancedSchemeDataOrderDate: ") + .append(toIndentedString(enhancedSchemeDataOrderDate)) + .append("\n"); + sb.append(" enhancedSchemeDataShipFromPostalCode: ") + .append(toIndentedString(enhancedSchemeDataShipFromPostalCode)) + .append("\n"); + sb.append(" enhancedSchemeDataTotalTaxAmount: ") + .append(toIndentedString(enhancedSchemeDataTotalTaxAmount)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -718,21 +1154,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalDataLevel23 given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataLevel23 - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataLevel23 + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalDataLevel23 */ public static AdditionalDataLevel23 fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataLevel23.class); } -/** - * Convert an instance of AdditionalDataLevel23 to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalDataLevel23 to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataLodging.java b/src/main/java/com/adyen/model/checkout/AdditionalDataLodging.java index fd37c915a..66f480469 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataLodging.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataLodging.java @@ -2,31 +2,22 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AdditionalDataLodging - */ +/** AdditionalDataLodging */ @JsonPropertyOrder({ AdditionalDataLodging.JSON_PROPERTY_LODGING_SPECIAL_PROGRAM_CODE, AdditionalDataLodging.JSON_PROPERTY_LODGING_CHECK_IN_DATE, @@ -46,9 +37,9 @@ AdditionalDataLodging.JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION, AdditionalDataLodging.JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET }) - public class AdditionalDataLodging { - public static final String JSON_PROPERTY_LODGING_SPECIAL_PROGRAM_CODE = "lodging.SpecialProgramCode"; + public static final String JSON_PROPERTY_LODGING_SPECIAL_PROGRAM_CODE = + "lodging.SpecialProgramCode"; private String lodgingSpecialProgramCode; public static final String JSON_PROPERTY_LODGING_CHECK_IN_DATE = "lodging.checkInDate"; @@ -57,19 +48,23 @@ public class AdditionalDataLodging { public static final String JSON_PROPERTY_LODGING_CHECK_OUT_DATE = "lodging.checkOutDate"; private String lodgingCheckOutDate; - public static final String JSON_PROPERTY_LODGING_CUSTOMER_SERVICE_TOLL_FREE_NUMBER = "lodging.customerServiceTollFreeNumber"; + public static final String JSON_PROPERTY_LODGING_CUSTOMER_SERVICE_TOLL_FREE_NUMBER = + "lodging.customerServiceTollFreeNumber"; private String lodgingCustomerServiceTollFreeNumber; - public static final String JSON_PROPERTY_LODGING_FIRE_SAFETY_ACT_INDICATOR = "lodging.fireSafetyActIndicator"; + public static final String JSON_PROPERTY_LODGING_FIRE_SAFETY_ACT_INDICATOR = + "lodging.fireSafetyActIndicator"; private String lodgingFireSafetyActIndicator; - public static final String JSON_PROPERTY_LODGING_FOLIO_CASH_ADVANCES = "lodging.folioCashAdvances"; + public static final String JSON_PROPERTY_LODGING_FOLIO_CASH_ADVANCES = + "lodging.folioCashAdvances"; private String lodgingFolioCashAdvances; public static final String JSON_PROPERTY_LODGING_FOLIO_NUMBER = "lodging.folioNumber"; private String lodgingFolioNumber; - public static final String JSON_PROPERTY_LODGING_FOOD_BEVERAGE_CHARGES = "lodging.foodBeverageCharges"; + public static final String JSON_PROPERTY_LODGING_FOOD_BEVERAGE_CHARGES = + "lodging.foodBeverageCharges"; private String lodgingFoodBeverageCharges; public static final String JSON_PROPERTY_LODGING_NO_SHOW_INDICATOR = "lodging.noShowIndicator"; @@ -78,10 +73,12 @@ public class AdditionalDataLodging { public static final String JSON_PROPERTY_LODGING_PREPAID_EXPENSES = "lodging.prepaidExpenses"; private String lodgingPrepaidExpenses; - public static final String JSON_PROPERTY_LODGING_PROPERTY_PHONE_NUMBER = "lodging.propertyPhoneNumber"; + public static final String JSON_PROPERTY_LODGING_PROPERTY_PHONE_NUMBER = + "lodging.propertyPhoneNumber"; private String lodgingPropertyPhoneNumber; - public static final String JSON_PROPERTY_LODGING_ROOM1_NUMBER_OF_NIGHTS = "lodging.room1.numberOfNights"; + public static final String JSON_PROPERTY_LODGING_ROOM1_NUMBER_OF_NIGHTS = + "lodging.room1.numberOfNights"; private String lodgingRoom1NumberOfNights; public static final String JSON_PROPERTY_LODGING_ROOM1_RATE = "lodging.room1.rate"; @@ -93,19 +90,22 @@ public class AdditionalDataLodging { public static final String JSON_PROPERTY_LODGING_TOTAL_TAX = "lodging.totalTax"; private String lodgingTotalTax; - public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION = "travelEntertainmentAuthData.duration"; + public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION = + "travelEntertainmentAuthData.duration"; private String travelEntertainmentAuthDataDuration; - public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET = "travelEntertainmentAuthData.market"; + public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET = + "travelEntertainmentAuthData.market"; private String travelEntertainmentAuthDataMarket; - public AdditionalDataLodging() { - } + public AdditionalDataLodging() {} /** - * A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit + * A code that corresponds to the category of lodging charges for the payment. Possible values: * + * 1: Lodging * 2: No show reservation * 3: Advanced deposit * - * @param lodgingSpecialProgramCode A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit + * @param lodgingSpecialProgramCode A code that corresponds to the category of lodging charges for + * the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingSpecialProgramCode(String lodgingSpecialProgramCode) { @@ -114,8 +114,12 @@ public AdditionalDataLodging lodgingSpecialProgramCode(String lodgingSpecialProg } /** - * A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit - * @return lodgingSpecialProgramCode A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit + * A code that corresponds to the category of lodging charges for the payment. Possible values: * + * 1: Lodging * 2: No show reservation * 3: Advanced deposit + * + * @return lodgingSpecialProgramCode A code that corresponds to the category of lodging charges + * for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced + * deposit */ @JsonProperty(JSON_PROPERTY_LODGING_SPECIAL_PROGRAM_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,9 +128,11 @@ public String getLodgingSpecialProgramCode() { } /** - * A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit + * A code that corresponds to the category of lodging charges for the payment. Possible values: * + * 1: Lodging * 2: No show reservation * 3: Advanced deposit * - * @param lodgingSpecialProgramCode A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit + * @param lodgingSpecialProgramCode A code that corresponds to the category of lodging charges for + * the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit */ @JsonProperty(JSON_PROPERTY_LODGING_SPECIAL_PROGRAM_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,7 +143,8 @@ public void setLodgingSpecialProgramCode(String lodgingSpecialProgramCode) { /** * The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. * - * @param lodgingCheckInDate The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. + * @param lodgingCheckInDate The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 + * April 22, **20230422**. * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingCheckInDate(String lodgingCheckInDate) { @@ -147,7 +154,9 @@ public AdditionalDataLodging lodgingCheckInDate(String lodgingCheckInDate) { /** * The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. - * @return lodgingCheckInDate The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. + * + * @return lodgingCheckInDate The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 + * April 22, **20230422**. */ @JsonProperty(JSON_PROPERTY_LODGING_CHECK_IN_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,7 +167,8 @@ public String getLodgingCheckInDate() { /** * The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. * - * @param lodgingCheckInDate The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. + * @param lodgingCheckInDate The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 + * April 22, **20230422**. */ @JsonProperty(JSON_PROPERTY_LODGING_CHECK_IN_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,7 +179,8 @@ public void setLodgingCheckInDate(String lodgingCheckInDate) { /** * The departure date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. * - * @param lodgingCheckOutDate The departure date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. + * @param lodgingCheckOutDate The departure date. * Date format: **yyyyMmDd**. For example, for + * 2023 April 22, **20230422**. * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingCheckOutDate(String lodgingCheckOutDate) { @@ -179,7 +190,9 @@ public AdditionalDataLodging lodgingCheckOutDate(String lodgingCheckOutDate) { /** * The departure date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. - * @return lodgingCheckOutDate The departure date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. + * + * @return lodgingCheckOutDate The departure date. * Date format: **yyyyMmDd**. For example, for + * 2023 April 22, **20230422**. */ @JsonProperty(JSON_PROPERTY_LODGING_CHECK_OUT_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,7 +203,8 @@ public String getLodgingCheckOutDate() { /** * The departure date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. * - * @param lodgingCheckOutDate The departure date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. + * @param lodgingCheckOutDate The departure date. * Date format: **yyyyMmDd**. For example, for + * 2023 April 22, **20230422**. */ @JsonProperty(JSON_PROPERTY_LODGING_CHECK_OUT_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -199,19 +213,31 @@ public void setLodgingCheckOutDate(String lodgingCheckOutDate) { } /** - * The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. + * The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * + * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not + * contain any special characters such as + or - * Must not be all zeros. * - * @param lodgingCustomerServiceTollFreeNumber The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. + * @param lodgingCustomerServiceTollFreeNumber The toll-free phone number for the lodging. * + * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters + * in length * Must not start with a space * Must not contain any special characters such as + + * or - * Must not be all zeros. * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ - public AdditionalDataLodging lodgingCustomerServiceTollFreeNumber(String lodgingCustomerServiceTollFreeNumber) { + public AdditionalDataLodging lodgingCustomerServiceTollFreeNumber( + String lodgingCustomerServiceTollFreeNumber) { this.lodgingCustomerServiceTollFreeNumber = lodgingCustomerServiceTollFreeNumber; return this; } /** - * The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. - * @return lodgingCustomerServiceTollFreeNumber The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. + * The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * + * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not + * contain any special characters such as + or - * Must not be all zeros. + * + * @return lodgingCustomerServiceTollFreeNumber The toll-free phone number for the lodging. * + * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters + * in length * Must not start with a space * Must not contain any special characters such as + + * or - * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_LODGING_CUSTOMER_SERVICE_TOLL_FREE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -220,9 +246,14 @@ public String getLodgingCustomerServiceTollFreeNumber() { } /** - * The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. + * The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * + * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not + * contain any special characters such as + or - * Must not be all zeros. * - * @param lodgingCustomerServiceTollFreeNumber The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. + * @param lodgingCustomerServiceTollFreeNumber The toll-free phone number for the lodging. * + * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters + * in length * Must not start with a space * Must not contain any special characters such as + + * or - * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_LODGING_CUSTOMER_SERVICE_TOLL_FREE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -231,9 +262,12 @@ public void setLodgingCustomerServiceTollFreeNumber(String lodgingCustomerServic } /** - * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * Max length: 1 character + * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be + * 'Y' or 'N'. * Format: alphabetic * Max length: 1 character * - * @param lodgingFireSafetyActIndicator Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * Max length: 1 character + * @param lodgingFireSafetyActIndicator Identifies that the facility complies with the Hotel and + * Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * + * Max length: 1 character * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingFireSafetyActIndicator(String lodgingFireSafetyActIndicator) { @@ -242,8 +276,12 @@ public AdditionalDataLodging lodgingFireSafetyActIndicator(String lodgingFireSaf } /** - * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * Max length: 1 character - * @return lodgingFireSafetyActIndicator Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * Max length: 1 character + * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be + * 'Y' or 'N'. * Format: alphabetic * Max length: 1 character + * + * @return lodgingFireSafetyActIndicator Identifies that the facility complies with the Hotel and + * Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * + * Max length: 1 character */ @JsonProperty(JSON_PROPERTY_LODGING_FIRE_SAFETY_ACT_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,9 +290,12 @@ public String getLodgingFireSafetyActIndicator() { } /** - * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * Max length: 1 character + * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be + * 'Y' or 'N'. * Format: alphabetic * Max length: 1 character * - * @param lodgingFireSafetyActIndicator Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * Max length: 1 character + * @param lodgingFireSafetyActIndicator Identifies that the facility complies with the Hotel and + * Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * + * Max length: 1 character */ @JsonProperty(JSON_PROPERTY_LODGING_FIRE_SAFETY_ACT_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -263,9 +304,13 @@ public void setLodgingFireSafetyActIndicator(String lodgingFireSafetyActIndicato } /** - * The folio cash advances, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters + * The folio cash advances, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max + * length: 12 characters * - * @param lodgingFolioCashAdvances The folio cash advances, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters + * @param lodgingFolioCashAdvances The folio cash advances, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * + * Max length: 12 characters * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingFolioCashAdvances(String lodgingFolioCashAdvances) { @@ -274,8 +319,13 @@ public AdditionalDataLodging lodgingFolioCashAdvances(String lodgingFolioCashAdv } /** - * The folio cash advances, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters - * @return lodgingFolioCashAdvances The folio cash advances, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters + * The folio cash advances, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max + * length: 12 characters + * + * @return lodgingFolioCashAdvances The folio cash advances, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * + * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_LODGING_FOLIO_CASH_ADVANCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,9 +334,13 @@ public String getLodgingFolioCashAdvances() { } /** - * The folio cash advances, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters + * The folio cash advances, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max + * length: 12 characters * - * @param lodgingFolioCashAdvances The folio cash advances, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters + * @param lodgingFolioCashAdvances The folio cash advances, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * + * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_LODGING_FOLIO_CASH_ADVANCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -295,9 +349,13 @@ public void setLodgingFolioCashAdvances(String lodgingFolioCashAdvances) { } /** - * The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters * Must not start with a space * Must not contain any special characters * Must not be all zeros. + * The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 + * characters * Must not start with a space * Must not contain any special characters * Must not + * be all zeros. * - * @param lodgingFolioNumber The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters * Must not start with a space * Must not contain any special characters * Must not be all zeros. + * @param lodgingFolioNumber The card acceptor’s internal invoice or billing ID reference number. + * * Max length: 25 characters * Must not start with a space * Must not contain any special + * characters * Must not be all zeros. * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingFolioNumber(String lodgingFolioNumber) { @@ -306,8 +364,13 @@ public AdditionalDataLodging lodgingFolioNumber(String lodgingFolioNumber) { } /** - * The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters * Must not start with a space * Must not contain any special characters * Must not be all zeros. - * @return lodgingFolioNumber The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters * Must not start with a space * Must not contain any special characters * Must not be all zeros. + * The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 + * characters * Must not start with a space * Must not contain any special characters * Must not + * be all zeros. + * + * @return lodgingFolioNumber The card acceptor’s internal invoice or billing ID reference number. + * * Max length: 25 characters * Must not start with a space * Must not contain any special + * characters * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_LODGING_FOLIO_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -316,9 +379,13 @@ public String getLodgingFolioNumber() { } /** - * The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters * Must not start with a space * Must not contain any special characters * Must not be all zeros. + * The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 + * characters * Must not start with a space * Must not contain any special characters * Must not + * be all zeros. * - * @param lodgingFolioNumber The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters * Must not start with a space * Must not contain any special characters * Must not be all zeros. + * @param lodgingFolioNumber The card acceptor’s internal invoice or billing ID reference number. + * * Max length: 25 characters * Must not start with a space * Must not contain any special + * characters * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_LODGING_FOLIO_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -327,9 +394,13 @@ public void setLodgingFolioNumber(String lodgingFolioNumber) { } /** - * Any charges for food and beverages associated with the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters + * Any charges for food and beverages associated with the booking, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max + * length: 12 characters * - * @param lodgingFoodBeverageCharges Any charges for food and beverages associated with the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters + * @param lodgingFoodBeverageCharges Any charges for food and beverages associated with the + * booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * + * Format: numeric * Max length: 12 characters * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingFoodBeverageCharges(String lodgingFoodBeverageCharges) { @@ -338,8 +409,13 @@ public AdditionalDataLodging lodgingFoodBeverageCharges(String lodgingFoodBevera } /** - * Any charges for food and beverages associated with the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters - * @return lodgingFoodBeverageCharges Any charges for food and beverages associated with the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters + * Any charges for food and beverages associated with the booking, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max + * length: 12 characters + * + * @return lodgingFoodBeverageCharges Any charges for food and beverages associated with the + * booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * + * Format: numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_LODGING_FOOD_BEVERAGE_CHARGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -348,9 +424,13 @@ public String getLodgingFoodBeverageCharges() { } /** - * Any charges for food and beverages associated with the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters + * Any charges for food and beverages associated with the booking, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max + * length: 12 characters * - * @param lodgingFoodBeverageCharges Any charges for food and beverages associated with the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters + * @param lodgingFoodBeverageCharges Any charges for food and beverages associated with the + * booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * + * Format: numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_LODGING_FOOD_BEVERAGE_CHARGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -359,9 +439,11 @@ public void setLodgingFoodBeverageCharges(String lodgingFoodBeverageCharges) { } /** - * Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in + * Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the + * customer didn't check in * **N**: the customer checked in * - * @param lodgingNoShowIndicator Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in + * @param lodgingNoShowIndicator Indicates if the customer didn't check in for their booking. + * Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingNoShowIndicator(String lodgingNoShowIndicator) { @@ -370,8 +452,11 @@ public AdditionalDataLodging lodgingNoShowIndicator(String lodgingNoShowIndicato } /** - * Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in - * @return lodgingNoShowIndicator Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in + * Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the + * customer didn't check in * **N**: the customer checked in + * + * @return lodgingNoShowIndicator Indicates if the customer didn't check in for their booking. + * Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in */ @JsonProperty(JSON_PROPERTY_LODGING_NO_SHOW_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -380,9 +465,11 @@ public String getLodgingNoShowIndicator() { } /** - * Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in + * Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the + * customer didn't check in * **N**: the customer checked in * - * @param lodgingNoShowIndicator Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in + * @param lodgingNoShowIndicator Indicates if the customer didn't check in for their booking. + * Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in */ @JsonProperty(JSON_PROPERTY_LODGING_NO_SHOW_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -393,7 +480,8 @@ public void setLodgingNoShowIndicator(String lodgingNoShowIndicator) { /** * The prepaid expenses for the booking. * Format: numeric * Max length: 12 characters * - * @param lodgingPrepaidExpenses The prepaid expenses for the booking. * Format: numeric * Max length: 12 characters + * @param lodgingPrepaidExpenses The prepaid expenses for the booking. * Format: numeric * Max + * length: 12 characters * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingPrepaidExpenses(String lodgingPrepaidExpenses) { @@ -403,7 +491,9 @@ public AdditionalDataLodging lodgingPrepaidExpenses(String lodgingPrepaidExpense /** * The prepaid expenses for the booking. * Format: numeric * Max length: 12 characters - * @return lodgingPrepaidExpenses The prepaid expenses for the booking. * Format: numeric * Max length: 12 characters + * + * @return lodgingPrepaidExpenses The prepaid expenses for the booking. * Format: numeric * Max + * length: 12 characters */ @JsonProperty(JSON_PROPERTY_LODGING_PREPAID_EXPENSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -414,7 +504,8 @@ public String getLodgingPrepaidExpenses() { /** * The prepaid expenses for the booking. * Format: numeric * Max length: 12 characters * - * @param lodgingPrepaidExpenses The prepaid expenses for the booking. * Format: numeric * Max length: 12 characters + * @param lodgingPrepaidExpenses The prepaid expenses for the booking. * Format: numeric * Max + * length: 12 characters */ @JsonProperty(JSON_PROPERTY_LODGING_PREPAID_EXPENSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -423,9 +514,15 @@ public void setLodgingPrepaidExpenses(String lodgingPrepaidExpenses) { } /** - * The lodging property location's phone number. * Format: numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. + * The lodging property location's phone number. * Format: numeric * Min length: 10 characters + * * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not + * start with a space * Must not contain any special characters such as + or - * Must not be all + * zeros. * - * @param lodgingPropertyPhoneNumber The lodging property location's phone number. * Format: numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. + * @param lodgingPropertyPhoneNumber The lodging property location's phone number. * Format: + * numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers + * must be 10 characters in length * Must not start with a space * Must not contain any + * special characters such as + or - * Must not be all zeros. * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingPropertyPhoneNumber(String lodgingPropertyPhoneNumber) { @@ -434,8 +531,15 @@ public AdditionalDataLodging lodgingPropertyPhoneNumber(String lodgingPropertyPh } /** - * The lodging property location's phone number. * Format: numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. - * @return lodgingPropertyPhoneNumber The lodging property location's phone number. * Format: numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. + * The lodging property location's phone number. * Format: numeric * Min length: 10 characters + * * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not + * start with a space * Must not contain any special characters such as + or - * Must not be all + * zeros. + * + * @return lodgingPropertyPhoneNumber The lodging property location's phone number. * Format: + * numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers + * must be 10 characters in length * Must not start with a space * Must not contain any + * special characters such as + or - * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_LODGING_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -444,9 +548,15 @@ public String getLodgingPropertyPhoneNumber() { } /** - * The lodging property location's phone number. * Format: numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. + * The lodging property location's phone number. * Format: numeric * Min length: 10 characters + * * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not + * start with a space * Must not contain any special characters such as + or - * Must not be all + * zeros. * - * @param lodgingPropertyPhoneNumber The lodging property location's phone number. * Format: numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. + * @param lodgingPropertyPhoneNumber The lodging property location's phone number. * Format: + * numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers + * must be 10 characters in length * Must not start with a space * Must not contain any + * special characters such as + or - * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_LODGING_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -455,9 +565,11 @@ public void setLodgingPropertyPhoneNumber(String lodgingPropertyPhoneNumber) { } /** - * The total number of nights the room is booked for. * Format: numeric * Must be a number between 0 and 99 * Max length: 4 characters + * The total number of nights the room is booked for. * Format: numeric * Must be a number between + * 0 and 99 * Max length: 4 characters * - * @param lodgingRoom1NumberOfNights The total number of nights the room is booked for. * Format: numeric * Must be a number between 0 and 99 * Max length: 4 characters + * @param lodgingRoom1NumberOfNights The total number of nights the room is booked for. * Format: + * numeric * Must be a number between 0 and 99 * Max length: 4 characters * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingRoom1NumberOfNights(String lodgingRoom1NumberOfNights) { @@ -466,8 +578,11 @@ public AdditionalDataLodging lodgingRoom1NumberOfNights(String lodgingRoom1Numbe } /** - * The total number of nights the room is booked for. * Format: numeric * Must be a number between 0 and 99 * Max length: 4 characters - * @return lodgingRoom1NumberOfNights The total number of nights the room is booked for. * Format: numeric * Must be a number between 0 and 99 * Max length: 4 characters + * The total number of nights the room is booked for. * Format: numeric * Must be a number between + * 0 and 99 * Max length: 4 characters + * + * @return lodgingRoom1NumberOfNights The total number of nights the room is booked for. * Format: + * numeric * Must be a number between 0 and 99 * Max length: 4 characters */ @JsonProperty(JSON_PROPERTY_LODGING_ROOM1_NUMBER_OF_NIGHTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -476,9 +591,11 @@ public String getLodgingRoom1NumberOfNights() { } /** - * The total number of nights the room is booked for. * Format: numeric * Must be a number between 0 and 99 * Max length: 4 characters + * The total number of nights the room is booked for. * Format: numeric * Must be a number between + * 0 and 99 * Max length: 4 characters * - * @param lodgingRoom1NumberOfNights The total number of nights the room is booked for. * Format: numeric * Must be a number between 0 and 99 * Max length: 4 characters + * @param lodgingRoom1NumberOfNights The total number of nights the room is booked for. * Format: + * numeric * Must be a number between 0 and 99 * Max length: 4 characters */ @JsonProperty(JSON_PROPERTY_LODGING_ROOM1_NUMBER_OF_NIGHTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -487,9 +604,13 @@ public void setLodgingRoom1NumberOfNights(String lodgingRoom1NumberOfNights) { } /** - * The rate for the room, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * The rate for the room, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max + * length: 12 characters * Must not be a negative number * - * @param lodgingRoom1Rate The rate for the room, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * @param lodgingRoom1Rate The rate for the room, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * + * Max length: 12 characters * Must not be a negative number * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingRoom1Rate(String lodgingRoom1Rate) { @@ -498,8 +619,13 @@ public AdditionalDataLodging lodgingRoom1Rate(String lodgingRoom1Rate) { } /** - * The rate for the room, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number - * @return lodgingRoom1Rate The rate for the room, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * The rate for the room, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max + * length: 12 characters * Must not be a negative number + * + * @return lodgingRoom1Rate The rate for the room, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * + * Max length: 12 characters * Must not be a negative number */ @JsonProperty(JSON_PROPERTY_LODGING_ROOM1_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -508,9 +634,13 @@ public String getLodgingRoom1Rate() { } /** - * The rate for the room, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * The rate for the room, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max + * length: 12 characters * Must not be a negative number * - * @param lodgingRoom1Rate The rate for the room, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * @param lodgingRoom1Rate The rate for the room, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * + * Max length: 12 characters * Must not be a negative number */ @JsonProperty(JSON_PROPERTY_LODGING_ROOM1_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -519,9 +649,13 @@ public void setLodgingRoom1Rate(String lodgingRoom1Rate) { } /** - * The total room tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * The total room tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max + * length: 12 characters * Must not be a negative number * - * @param lodgingTotalRoomTax The total room tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * @param lodgingTotalRoomTax The total room tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * + * Max length: 12 characters * Must not be a negative number * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingTotalRoomTax(String lodgingTotalRoomTax) { @@ -530,8 +664,13 @@ public AdditionalDataLodging lodgingTotalRoomTax(String lodgingTotalRoomTax) { } /** - * The total room tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number - * @return lodgingTotalRoomTax The total room tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * The total room tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max + * length: 12 characters * Must not be a negative number + * + * @return lodgingTotalRoomTax The total room tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * + * Max length: 12 characters * Must not be a negative number */ @JsonProperty(JSON_PROPERTY_LODGING_TOTAL_ROOM_TAX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -540,9 +679,13 @@ public String getLodgingTotalRoomTax() { } /** - * The total room tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * The total room tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max + * length: 12 characters * Must not be a negative number * - * @param lodgingTotalRoomTax The total room tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * @param lodgingTotalRoomTax The total room tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * + * Max length: 12 characters * Must not be a negative number */ @JsonProperty(JSON_PROPERTY_LODGING_TOTAL_ROOM_TAX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -551,9 +694,13 @@ public void setLodgingTotalRoomTax(String lodgingTotalRoomTax) { } /** - * The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * The total tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max + * length: 12 characters * Must not be a negative number * - * @param lodgingTotalTax The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * @param lodgingTotalTax The total tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * + * Max length: 12 characters * Must not be a negative number * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingTotalTax(String lodgingTotalTax) { @@ -562,8 +709,13 @@ public AdditionalDataLodging lodgingTotalTax(String lodgingTotalTax) { } /** - * The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number - * @return lodgingTotalTax The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * The total tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max + * length: 12 characters * Must not be a negative number + * + * @return lodgingTotalTax The total tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * + * Max length: 12 characters * Must not be a negative number */ @JsonProperty(JSON_PROPERTY_LODGING_TOTAL_TAX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -572,9 +724,13 @@ public String getLodgingTotalTax() { } /** - * The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * The total tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max + * length: 12 characters * Must not be a negative number * - * @param lodgingTotalTax The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * @param lodgingTotalTax The total tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * + * Max length: 12 characters * Must not be a negative number */ @JsonProperty(JSON_PROPERTY_LODGING_TOTAL_TAX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -583,19 +739,25 @@ public void setLodgingTotalTax(String lodgingTotalTax) { } /** - * The number of nights. This should be included in the auth message. * Format: numeric * Max length: 4 characters + * The number of nights. This should be included in the auth message. * Format: numeric * Max + * length: 4 characters * - * @param travelEntertainmentAuthDataDuration The number of nights. This should be included in the auth message. * Format: numeric * Max length: 4 characters + * @param travelEntertainmentAuthDataDuration The number of nights. This should be included in the + * auth message. * Format: numeric * Max length: 4 characters * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ - public AdditionalDataLodging travelEntertainmentAuthDataDuration(String travelEntertainmentAuthDataDuration) { + public AdditionalDataLodging travelEntertainmentAuthDataDuration( + String travelEntertainmentAuthDataDuration) { this.travelEntertainmentAuthDataDuration = travelEntertainmentAuthDataDuration; return this; } /** - * The number of nights. This should be included in the auth message. * Format: numeric * Max length: 4 characters - * @return travelEntertainmentAuthDataDuration The number of nights. This should be included in the auth message. * Format: numeric * Max length: 4 characters + * The number of nights. This should be included in the auth message. * Format: numeric * Max + * length: 4 characters + * + * @return travelEntertainmentAuthDataDuration The number of nights. This should be included in + * the auth message. * Format: numeric * Max length: 4 characters */ @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -604,9 +766,11 @@ public String getTravelEntertainmentAuthDataDuration() { } /** - * The number of nights. This should be included in the auth message. * Format: numeric * Max length: 4 characters + * The number of nights. This should be included in the auth message. * Format: numeric * Max + * length: 4 characters * - * @param travelEntertainmentAuthDataDuration The number of nights. This should be included in the auth message. * Format: numeric * Max length: 4 characters + * @param travelEntertainmentAuthDataDuration The number of nights. This should be included in the + * auth message. * Format: numeric * Max length: 4 characters */ @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -615,19 +779,27 @@ public void setTravelEntertainmentAuthDataDuration(String travelEntertainmentAut } /** - * Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This should be included in the auth message. * Format: alphanumeric * Max length: 1 character + * Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This + * should be included in the auth message. * Format: alphanumeric * Max length: 1 character * - * @param travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This should be included in the auth message. * Format: alphanumeric * Max length: 1 character + * @param travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be + * submitted. Must be 'H' for Hotel. This should be included in the auth message. * + * Format: alphanumeric * Max length: 1 character * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ - public AdditionalDataLodging travelEntertainmentAuthDataMarket(String travelEntertainmentAuthDataMarket) { + public AdditionalDataLodging travelEntertainmentAuthDataMarket( + String travelEntertainmentAuthDataMarket) { this.travelEntertainmentAuthDataMarket = travelEntertainmentAuthDataMarket; return this; } /** - * Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This should be included in the auth message. * Format: alphanumeric * Max length: 1 character - * @return travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This should be included in the auth message. * Format: alphanumeric * Max length: 1 character + * Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This + * should be included in the auth message. * Format: alphanumeric * Max length: 1 character + * + * @return travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be + * submitted. Must be 'H' for Hotel. This should be included in the auth message. * + * Format: alphanumeric * Max length: 1 character */ @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -636,9 +808,12 @@ public String getTravelEntertainmentAuthDataMarket() { } /** - * Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This should be included in the auth message. * Format: alphanumeric * Max length: 1 character + * Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This + * should be included in the auth message. * Format: alphanumeric * Max length: 1 character * - * @param travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This should be included in the auth message. * Format: alphanumeric * Max length: 1 character + * @param travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be + * submitted. Must be 'H' for Hotel. This should be included in the auth message. * + * Format: alphanumeric * Max length: 1 character */ @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -646,9 +821,7 @@ public void setTravelEntertainmentAuthDataMarket(String travelEntertainmentAuthD this.travelEntertainmentAuthDataMarket = travelEntertainmentAuthDataMarket; } - /** - * Return true if this AdditionalDataLodging object is equal to o. - */ + /** Return true if this AdditionalDataLodging object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -658,58 +831,112 @@ public boolean equals(Object o) { return false; } AdditionalDataLodging additionalDataLodging = (AdditionalDataLodging) o; - return Objects.equals(this.lodgingSpecialProgramCode, additionalDataLodging.lodgingSpecialProgramCode) && - Objects.equals(this.lodgingCheckInDate, additionalDataLodging.lodgingCheckInDate) && - Objects.equals(this.lodgingCheckOutDate, additionalDataLodging.lodgingCheckOutDate) && - Objects.equals(this.lodgingCustomerServiceTollFreeNumber, additionalDataLodging.lodgingCustomerServiceTollFreeNumber) && - Objects.equals(this.lodgingFireSafetyActIndicator, additionalDataLodging.lodgingFireSafetyActIndicator) && - Objects.equals(this.lodgingFolioCashAdvances, additionalDataLodging.lodgingFolioCashAdvances) && - Objects.equals(this.lodgingFolioNumber, additionalDataLodging.lodgingFolioNumber) && - Objects.equals(this.lodgingFoodBeverageCharges, additionalDataLodging.lodgingFoodBeverageCharges) && - Objects.equals(this.lodgingNoShowIndicator, additionalDataLodging.lodgingNoShowIndicator) && - Objects.equals(this.lodgingPrepaidExpenses, additionalDataLodging.lodgingPrepaidExpenses) && - Objects.equals(this.lodgingPropertyPhoneNumber, additionalDataLodging.lodgingPropertyPhoneNumber) && - Objects.equals(this.lodgingRoom1NumberOfNights, additionalDataLodging.lodgingRoom1NumberOfNights) && - Objects.equals(this.lodgingRoom1Rate, additionalDataLodging.lodgingRoom1Rate) && - Objects.equals(this.lodgingTotalRoomTax, additionalDataLodging.lodgingTotalRoomTax) && - Objects.equals(this.lodgingTotalTax, additionalDataLodging.lodgingTotalTax) && - Objects.equals(this.travelEntertainmentAuthDataDuration, additionalDataLodging.travelEntertainmentAuthDataDuration) && - Objects.equals(this.travelEntertainmentAuthDataMarket, additionalDataLodging.travelEntertainmentAuthDataMarket); + return Objects.equals( + this.lodgingSpecialProgramCode, additionalDataLodging.lodgingSpecialProgramCode) + && Objects.equals(this.lodgingCheckInDate, additionalDataLodging.lodgingCheckInDate) + && Objects.equals(this.lodgingCheckOutDate, additionalDataLodging.lodgingCheckOutDate) + && Objects.equals( + this.lodgingCustomerServiceTollFreeNumber, + additionalDataLodging.lodgingCustomerServiceTollFreeNumber) + && Objects.equals( + this.lodgingFireSafetyActIndicator, additionalDataLodging.lodgingFireSafetyActIndicator) + && Objects.equals( + this.lodgingFolioCashAdvances, additionalDataLodging.lodgingFolioCashAdvances) + && Objects.equals(this.lodgingFolioNumber, additionalDataLodging.lodgingFolioNumber) + && Objects.equals( + this.lodgingFoodBeverageCharges, additionalDataLodging.lodgingFoodBeverageCharges) + && Objects.equals(this.lodgingNoShowIndicator, additionalDataLodging.lodgingNoShowIndicator) + && Objects.equals(this.lodgingPrepaidExpenses, additionalDataLodging.lodgingPrepaidExpenses) + && Objects.equals( + this.lodgingPropertyPhoneNumber, additionalDataLodging.lodgingPropertyPhoneNumber) + && Objects.equals( + this.lodgingRoom1NumberOfNights, additionalDataLodging.lodgingRoom1NumberOfNights) + && Objects.equals(this.lodgingRoom1Rate, additionalDataLodging.lodgingRoom1Rate) + && Objects.equals(this.lodgingTotalRoomTax, additionalDataLodging.lodgingTotalRoomTax) + && Objects.equals(this.lodgingTotalTax, additionalDataLodging.lodgingTotalTax) + && Objects.equals( + this.travelEntertainmentAuthDataDuration, + additionalDataLodging.travelEntertainmentAuthDataDuration) + && Objects.equals( + this.travelEntertainmentAuthDataMarket, + additionalDataLodging.travelEntertainmentAuthDataMarket); } @Override public int hashCode() { - return Objects.hash(lodgingSpecialProgramCode, lodgingCheckInDate, lodgingCheckOutDate, lodgingCustomerServiceTollFreeNumber, lodgingFireSafetyActIndicator, lodgingFolioCashAdvances, lodgingFolioNumber, lodgingFoodBeverageCharges, lodgingNoShowIndicator, lodgingPrepaidExpenses, lodgingPropertyPhoneNumber, lodgingRoom1NumberOfNights, lodgingRoom1Rate, lodgingTotalRoomTax, lodgingTotalTax, travelEntertainmentAuthDataDuration, travelEntertainmentAuthDataMarket); + return Objects.hash( + lodgingSpecialProgramCode, + lodgingCheckInDate, + lodgingCheckOutDate, + lodgingCustomerServiceTollFreeNumber, + lodgingFireSafetyActIndicator, + lodgingFolioCashAdvances, + lodgingFolioNumber, + lodgingFoodBeverageCharges, + lodgingNoShowIndicator, + lodgingPrepaidExpenses, + lodgingPropertyPhoneNumber, + lodgingRoom1NumberOfNights, + lodgingRoom1Rate, + lodgingTotalRoomTax, + lodgingTotalTax, + travelEntertainmentAuthDataDuration, + travelEntertainmentAuthDataMarket); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataLodging {\n"); - sb.append(" lodgingSpecialProgramCode: ").append(toIndentedString(lodgingSpecialProgramCode)).append("\n"); + sb.append(" lodgingSpecialProgramCode: ") + .append(toIndentedString(lodgingSpecialProgramCode)) + .append("\n"); sb.append(" lodgingCheckInDate: ").append(toIndentedString(lodgingCheckInDate)).append("\n"); - sb.append(" lodgingCheckOutDate: ").append(toIndentedString(lodgingCheckOutDate)).append("\n"); - sb.append(" lodgingCustomerServiceTollFreeNumber: ").append(toIndentedString(lodgingCustomerServiceTollFreeNumber)).append("\n"); - sb.append(" lodgingFireSafetyActIndicator: ").append(toIndentedString(lodgingFireSafetyActIndicator)).append("\n"); - sb.append(" lodgingFolioCashAdvances: ").append(toIndentedString(lodgingFolioCashAdvances)).append("\n"); + sb.append(" lodgingCheckOutDate: ") + .append(toIndentedString(lodgingCheckOutDate)) + .append("\n"); + sb.append(" lodgingCustomerServiceTollFreeNumber: ") + .append(toIndentedString(lodgingCustomerServiceTollFreeNumber)) + .append("\n"); + sb.append(" lodgingFireSafetyActIndicator: ") + .append(toIndentedString(lodgingFireSafetyActIndicator)) + .append("\n"); + sb.append(" lodgingFolioCashAdvances: ") + .append(toIndentedString(lodgingFolioCashAdvances)) + .append("\n"); sb.append(" lodgingFolioNumber: ").append(toIndentedString(lodgingFolioNumber)).append("\n"); - sb.append(" lodgingFoodBeverageCharges: ").append(toIndentedString(lodgingFoodBeverageCharges)).append("\n"); - sb.append(" lodgingNoShowIndicator: ").append(toIndentedString(lodgingNoShowIndicator)).append("\n"); - sb.append(" lodgingPrepaidExpenses: ").append(toIndentedString(lodgingPrepaidExpenses)).append("\n"); - sb.append(" lodgingPropertyPhoneNumber: ").append(toIndentedString(lodgingPropertyPhoneNumber)).append("\n"); - sb.append(" lodgingRoom1NumberOfNights: ").append(toIndentedString(lodgingRoom1NumberOfNights)).append("\n"); + sb.append(" lodgingFoodBeverageCharges: ") + .append(toIndentedString(lodgingFoodBeverageCharges)) + .append("\n"); + sb.append(" lodgingNoShowIndicator: ") + .append(toIndentedString(lodgingNoShowIndicator)) + .append("\n"); + sb.append(" lodgingPrepaidExpenses: ") + .append(toIndentedString(lodgingPrepaidExpenses)) + .append("\n"); + sb.append(" lodgingPropertyPhoneNumber: ") + .append(toIndentedString(lodgingPropertyPhoneNumber)) + .append("\n"); + sb.append(" lodgingRoom1NumberOfNights: ") + .append(toIndentedString(lodgingRoom1NumberOfNights)) + .append("\n"); sb.append(" lodgingRoom1Rate: ").append(toIndentedString(lodgingRoom1Rate)).append("\n"); - sb.append(" lodgingTotalRoomTax: ").append(toIndentedString(lodgingTotalRoomTax)).append("\n"); + sb.append(" lodgingTotalRoomTax: ") + .append(toIndentedString(lodgingTotalRoomTax)) + .append("\n"); sb.append(" lodgingTotalTax: ").append(toIndentedString(lodgingTotalTax)).append("\n"); - sb.append(" travelEntertainmentAuthDataDuration: ").append(toIndentedString(travelEntertainmentAuthDataDuration)).append("\n"); - sb.append(" travelEntertainmentAuthDataMarket: ").append(toIndentedString(travelEntertainmentAuthDataMarket)).append("\n"); + sb.append(" travelEntertainmentAuthDataDuration: ") + .append(toIndentedString(travelEntertainmentAuthDataDuration)) + .append("\n"); + sb.append(" travelEntertainmentAuthDataMarket: ") + .append(toIndentedString(travelEntertainmentAuthDataMarket)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -718,21 +945,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalDataLodging given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataLodging - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataLodging + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalDataLodging */ public static AdditionalDataLodging fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataLodging.class); } -/** - * Convert an instance of AdditionalDataLodging to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalDataLodging to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataOpenInvoice.java b/src/main/java/com/adyen/model/checkout/AdditionalDataOpenInvoice.java index 2fe55eee7..f7d5a7cf1 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataOpenInvoice.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataOpenInvoice.java @@ -2,31 +2,22 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AdditionalDataOpenInvoice - */ +/** AdditionalDataOpenInvoice */ @JsonPropertyOrder({ AdditionalDataOpenInvoice.JSON_PROPERTY_OPENINVOICEDATA_MERCHANT_DATA, AdditionalDataOpenInvoice.JSON_PROPERTY_OPENINVOICEDATA_NUMBER_OF_LINES, @@ -47,69 +38,94 @@ AdditionalDataOpenInvoice.JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_NUMBER, AdditionalDataOpenInvoice.JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_URI }) - public class AdditionalDataOpenInvoice { - public static final String JSON_PROPERTY_OPENINVOICEDATA_MERCHANT_DATA = "openinvoicedata.merchantData"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_MERCHANT_DATA = + "openinvoicedata.merchantData"; private String openinvoicedataMerchantData; - public static final String JSON_PROPERTY_OPENINVOICEDATA_NUMBER_OF_LINES = "openinvoicedata.numberOfLines"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_NUMBER_OF_LINES = + "openinvoicedata.numberOfLines"; private String openinvoicedataNumberOfLines; - public static final String JSON_PROPERTY_OPENINVOICEDATA_RECIPIENT_FIRST_NAME = "openinvoicedata.recipientFirstName"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_RECIPIENT_FIRST_NAME = + "openinvoicedata.recipientFirstName"; private String openinvoicedataRecipientFirstName; - public static final String JSON_PROPERTY_OPENINVOICEDATA_RECIPIENT_LAST_NAME = "openinvoicedata.recipientLastName"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_RECIPIENT_LAST_NAME = + "openinvoicedata.recipientLastName"; private String openinvoicedataRecipientLastName; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_CURRENCY_CODE = "openinvoicedataLine[itemNr].currencyCode"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_CURRENCY_CODE = + "openinvoicedataLine[itemNr].currencyCode"; private String openinvoicedataLineItemNrCurrencyCode; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_DESCRIPTION = "openinvoicedataLine[itemNr].description"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_DESCRIPTION = + "openinvoicedataLine[itemNr].description"; private String openinvoicedataLineItemNrDescription; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_AMOUNT = "openinvoicedataLine[itemNr].itemAmount"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_AMOUNT = + "openinvoicedataLine[itemNr].itemAmount"; private String openinvoicedataLineItemNrItemAmount; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_ID = "openinvoicedataLine[itemNr].itemId"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_ID = + "openinvoicedataLine[itemNr].itemId"; private String openinvoicedataLineItemNrItemId; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_VAT_AMOUNT = "openinvoicedataLine[itemNr].itemVatAmount"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_VAT_AMOUNT = + "openinvoicedataLine[itemNr].itemVatAmount"; private String openinvoicedataLineItemNrItemVatAmount; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_VAT_PERCENTAGE = "openinvoicedataLine[itemNr].itemVatPercentage"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_VAT_PERCENTAGE = + "openinvoicedataLine[itemNr].itemVatPercentage"; private String openinvoicedataLineItemNrItemVatPercentage; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_NUMBER_OF_ITEMS = "openinvoicedataLine[itemNr].numberOfItems"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_NUMBER_OF_ITEMS = + "openinvoicedataLine[itemNr].numberOfItems"; private String openinvoicedataLineItemNrNumberOfItems; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_SHIPPING_COMPANY = "openinvoicedataLine[itemNr].returnShippingCompany"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_SHIPPING_COMPANY = + "openinvoicedataLine[itemNr].returnShippingCompany"; private String openinvoicedataLineItemNrReturnShippingCompany; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_TRACKING_NUMBER = "openinvoicedataLine[itemNr].returnTrackingNumber"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_TRACKING_NUMBER = + "openinvoicedataLine[itemNr].returnTrackingNumber"; private String openinvoicedataLineItemNrReturnTrackingNumber; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_TRACKING_URI = "openinvoicedataLine[itemNr].returnTrackingUri"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_TRACKING_URI = + "openinvoicedataLine[itemNr].returnTrackingUri"; private String openinvoicedataLineItemNrReturnTrackingUri; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_SHIPPING_COMPANY = "openinvoicedataLine[itemNr].shippingCompany"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_SHIPPING_COMPANY = + "openinvoicedataLine[itemNr].shippingCompany"; private String openinvoicedataLineItemNrShippingCompany; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_SHIPPING_METHOD = "openinvoicedataLine[itemNr].shippingMethod"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_SHIPPING_METHOD = + "openinvoicedataLine[itemNr].shippingMethod"; private String openinvoicedataLineItemNrShippingMethod; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_NUMBER = "openinvoicedataLine[itemNr].trackingNumber"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_NUMBER = + "openinvoicedataLine[itemNr].trackingNumber"; private String openinvoicedataLineItemNrTrackingNumber; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_URI = "openinvoicedataLine[itemNr].trackingUri"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_URI = + "openinvoicedataLine[itemNr].trackingUri"; private String openinvoicedataLineItemNrTrackingUri; - public AdditionalDataOpenInvoice() { - } + public AdditionalDataOpenInvoice() {} /** - * Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string. The `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end. Since the field is optional, if it's not included it does not impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for the format and structure of the string. + * Holds different merchant data points like product, purchase, customer, and so on. It takes data + * in a Base64 encoded string. The `merchantData` parameter needs to be added to the + * `openinvoicedata` signature at the end. Since the field is optional, if it's not + * included it does not impact computing the merchant signature. Applies only to Klarna. You can + * contact Klarna for the format and structure of the string. * - * @param openinvoicedataMerchantData Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string. The `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end. Since the field is optional, if it's not included it does not impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for the format and structure of the string. + * @param openinvoicedataMerchantData Holds different merchant data points like product, purchase, + * customer, and so on. It takes data in a Base64 encoded string. The `merchantData` + * parameter needs to be added to the `openinvoicedata` signature at the end. Since + * the field is optional, if it's not included it does not impact computing the merchant + * signature. Applies only to Klarna. You can contact Klarna for the format and structure of + * the string. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ public AdditionalDataOpenInvoice openinvoicedataMerchantData(String openinvoicedataMerchantData) { @@ -118,8 +134,18 @@ public AdditionalDataOpenInvoice openinvoicedataMerchantData(String openinvoiced } /** - * Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string. The `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end. Since the field is optional, if it's not included it does not impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for the format and structure of the string. - * @return openinvoicedataMerchantData Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string. The `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end. Since the field is optional, if it's not included it does not impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for the format and structure of the string. + * Holds different merchant data points like product, purchase, customer, and so on. It takes data + * in a Base64 encoded string. The `merchantData` parameter needs to be added to the + * `openinvoicedata` signature at the end. Since the field is optional, if it's not + * included it does not impact computing the merchant signature. Applies only to Klarna. You can + * contact Klarna for the format and structure of the string. + * + * @return openinvoicedataMerchantData Holds different merchant data points like product, + * purchase, customer, and so on. It takes data in a Base64 encoded string. The + * `merchantData` parameter needs to be added to the `openinvoicedata` + * signature at the end. Since the field is optional, if it's not included it does not + * impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for + * the format and structure of the string. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_MERCHANT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,9 +154,18 @@ public String getOpeninvoicedataMerchantData() { } /** - * Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string. The `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end. Since the field is optional, if it's not included it does not impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for the format and structure of the string. + * Holds different merchant data points like product, purchase, customer, and so on. It takes data + * in a Base64 encoded string. The `merchantData` parameter needs to be added to the + * `openinvoicedata` signature at the end. Since the field is optional, if it's not + * included it does not impact computing the merchant signature. Applies only to Klarna. You can + * contact Klarna for the format and structure of the string. * - * @param openinvoicedataMerchantData Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string. The `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end. Since the field is optional, if it's not included it does not impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for the format and structure of the string. + * @param openinvoicedataMerchantData Holds different merchant data points like product, purchase, + * customer, and so on. It takes data in a Base64 encoded string. The `merchantData` + * parameter needs to be added to the `openinvoicedata` signature at the end. Since + * the field is optional, if it's not included it does not impact computing the merchant + * signature. Applies only to Klarna. You can contact Klarna for the format and structure of + * the string. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_MERCHANT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,19 +174,27 @@ public void setOpeninvoicedataMerchantData(String openinvoicedataMerchantData) { } /** - * The number of invoice lines included in `openinvoicedata`. There needs to be at least one line, so `numberOfLines` needs to be at least 1. + * The number of invoice lines included in `openinvoicedata`. There needs to be at least + * one line, so `numberOfLines` needs to be at least 1. * - * @param openinvoicedataNumberOfLines The number of invoice lines included in `openinvoicedata`. There needs to be at least one line, so `numberOfLines` needs to be at least 1. + * @param openinvoicedataNumberOfLines The number of invoice lines included in + * `openinvoicedata`. There needs to be at least one line, so + * `numberOfLines` needs to be at least 1. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataNumberOfLines(String openinvoicedataNumberOfLines) { + public AdditionalDataOpenInvoice openinvoicedataNumberOfLines( + String openinvoicedataNumberOfLines) { this.openinvoicedataNumberOfLines = openinvoicedataNumberOfLines; return this; } /** - * The number of invoice lines included in `openinvoicedata`. There needs to be at least one line, so `numberOfLines` needs to be at least 1. - * @return openinvoicedataNumberOfLines The number of invoice lines included in `openinvoicedata`. There needs to be at least one line, so `numberOfLines` needs to be at least 1. + * The number of invoice lines included in `openinvoicedata`. There needs to be at least + * one line, so `numberOfLines` needs to be at least 1. + * + * @return openinvoicedataNumberOfLines The number of invoice lines included in + * `openinvoicedata`. There needs to be at least one line, so + * `numberOfLines` needs to be at least 1. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_NUMBER_OF_LINES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,9 +203,12 @@ public String getOpeninvoicedataNumberOfLines() { } /** - * The number of invoice lines included in `openinvoicedata`. There needs to be at least one line, so `numberOfLines` needs to be at least 1. + * The number of invoice lines included in `openinvoicedata`. There needs to be at least + * one line, so `numberOfLines` needs to be at least 1. * - * @param openinvoicedataNumberOfLines The number of invoice lines included in `openinvoicedata`. There needs to be at least one line, so `numberOfLines` needs to be at least 1. + * @param openinvoicedataNumberOfLines The number of invoice lines included in + * `openinvoicedata`. There needs to be at least one line, so + * `numberOfLines` needs to be at least 1. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_NUMBER_OF_LINES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -171,19 +217,31 @@ public void setOpeninvoicedataNumberOfLines(String openinvoicedataNumberOfLines) } /** - * First name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * First name of the recipient. If the delivery address and the billing address are different, + * specify the `recipientFirstName` and `recipientLastName` to share the + * delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. * - * @param openinvoicedataRecipientFirstName First name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * @param openinvoicedataRecipientFirstName First name of the recipient. If the delivery address + * and the billing address are different, specify the `recipientFirstName` and + * `recipientLastName` to share the delivery address with Klarna. Otherwise, only + * the billing address is shared with Klarna. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataRecipientFirstName(String openinvoicedataRecipientFirstName) { + public AdditionalDataOpenInvoice openinvoicedataRecipientFirstName( + String openinvoicedataRecipientFirstName) { this.openinvoicedataRecipientFirstName = openinvoicedataRecipientFirstName; return this; } /** - * First name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. - * @return openinvoicedataRecipientFirstName First name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * First name of the recipient. If the delivery address and the billing address are different, + * specify the `recipientFirstName` and `recipientLastName` to share the + * delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * + * @return openinvoicedataRecipientFirstName First name of the recipient. If the delivery address + * and the billing address are different, specify the `recipientFirstName` and + * `recipientLastName` to share the delivery address with Klarna. Otherwise, only + * the billing address is shared with Klarna. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_RECIPIENT_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,9 +250,14 @@ public String getOpeninvoicedataRecipientFirstName() { } /** - * First name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * First name of the recipient. If the delivery address and the billing address are different, + * specify the `recipientFirstName` and `recipientLastName` to share the + * delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. * - * @param openinvoicedataRecipientFirstName First name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * @param openinvoicedataRecipientFirstName First name of the recipient. If the delivery address + * and the billing address are different, specify the `recipientFirstName` and + * `recipientLastName` to share the delivery address with Klarna. Otherwise, only + * the billing address is shared with Klarna. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_RECIPIENT_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -203,19 +266,31 @@ public void setOpeninvoicedataRecipientFirstName(String openinvoicedataRecipient } /** - * Last name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * Last name of the recipient. If the delivery address and the billing address are different, + * specify the `recipientFirstName` and `recipientLastName` to share the + * delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. * - * @param openinvoicedataRecipientLastName Last name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * @param openinvoicedataRecipientLastName Last name of the recipient. If the delivery address and + * the billing address are different, specify the `recipientFirstName` and + * `recipientLastName` to share the delivery address with Klarna. Otherwise, only + * the billing address is shared with Klarna. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataRecipientLastName(String openinvoicedataRecipientLastName) { + public AdditionalDataOpenInvoice openinvoicedataRecipientLastName( + String openinvoicedataRecipientLastName) { this.openinvoicedataRecipientLastName = openinvoicedataRecipientLastName; return this; } /** - * Last name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. - * @return openinvoicedataRecipientLastName Last name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * Last name of the recipient. If the delivery address and the billing address are different, + * specify the `recipientFirstName` and `recipientLastName` to share the + * delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * + * @return openinvoicedataRecipientLastName Last name of the recipient. If the delivery address + * and the billing address are different, specify the `recipientFirstName` and + * `recipientLastName` to share the delivery address with Klarna. Otherwise, only + * the billing address is shared with Klarna. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_RECIPIENT_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,9 +299,14 @@ public String getOpeninvoicedataRecipientLastName() { } /** - * Last name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * Last name of the recipient. If the delivery address and the billing address are different, + * specify the `recipientFirstName` and `recipientLastName` to share the + * delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. * - * @param openinvoicedataRecipientLastName Last name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * @param openinvoicedataRecipientLastName Last name of the recipient. If the delivery address and + * the billing address are different, specify the `recipientFirstName` and + * `recipientLastName` to share the delivery address with Klarna. Otherwise, only + * the billing address is shared with Klarna. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_RECIPIENT_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,13 +320,15 @@ public void setOpeninvoicedataRecipientLastName(String openinvoicedataRecipientL * @param openinvoicedataLineItemNrCurrencyCode The three-character ISO currency code. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrCurrencyCode(String openinvoicedataLineItemNrCurrencyCode) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrCurrencyCode( + String openinvoicedataLineItemNrCurrencyCode) { this.openinvoicedataLineItemNrCurrencyCode = openinvoicedataLineItemNrCurrencyCode; return this; } /** * The three-character ISO currency code. + * * @return openinvoicedataLineItemNrCurrencyCode The three-character ISO currency code. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_CURRENCY_CODE) @@ -262,24 +344,29 @@ public String getOpeninvoicedataLineItemNrCurrencyCode() { */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_CURRENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrCurrencyCode(String openinvoicedataLineItemNrCurrencyCode) { + public void setOpeninvoicedataLineItemNrCurrencyCode( + String openinvoicedataLineItemNrCurrencyCode) { this.openinvoicedataLineItemNrCurrencyCode = openinvoicedataLineItemNrCurrencyCode; } /** * A text description of the product the invoice line refers to. * - * @param openinvoicedataLineItemNrDescription A text description of the product the invoice line refers to. + * @param openinvoicedataLineItemNrDescription A text description of the product the invoice line + * refers to. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrDescription(String openinvoicedataLineItemNrDescription) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrDescription( + String openinvoicedataLineItemNrDescription) { this.openinvoicedataLineItemNrDescription = openinvoicedataLineItemNrDescription; return this; } /** * A text description of the product the invoice line refers to. - * @return openinvoicedataLineItemNrDescription A text description of the product the invoice line refers to. + * + * @return openinvoicedataLineItemNrDescription A text description of the product the invoice line + * refers to. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -290,7 +377,8 @@ public String getOpeninvoicedataLineItemNrDescription() { /** * A text description of the product the invoice line refers to. * - * @param openinvoicedataLineItemNrDescription A text description of the product the invoice line refers to. + * @param openinvoicedataLineItemNrDescription A text description of the product the invoice line + * refers to. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -299,19 +387,25 @@ public void setOpeninvoicedataLineItemNrDescription(String openinvoicedataLineIt } /** - * The price for one item in the invoice line, represented in minor units. The due amount for the item, VAT excluded. + * The price for one item in the invoice line, represented in minor units. The due amount for the + * item, VAT excluded. * - * @param openinvoicedataLineItemNrItemAmount The price for one item in the invoice line, represented in minor units. The due amount for the item, VAT excluded. + * @param openinvoicedataLineItemNrItemAmount The price for one item in the invoice line, + * represented in minor units. The due amount for the item, VAT excluded. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrItemAmount(String openinvoicedataLineItemNrItemAmount) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrItemAmount( + String openinvoicedataLineItemNrItemAmount) { this.openinvoicedataLineItemNrItemAmount = openinvoicedataLineItemNrItemAmount; return this; } /** - * The price for one item in the invoice line, represented in minor units. The due amount for the item, VAT excluded. - * @return openinvoicedataLineItemNrItemAmount The price for one item in the invoice line, represented in minor units. The due amount for the item, VAT excluded. + * The price for one item in the invoice line, represented in minor units. The due amount for the + * item, VAT excluded. + * + * @return openinvoicedataLineItemNrItemAmount The price for one item in the invoice line, + * represented in minor units. The due amount for the item, VAT excluded. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -320,9 +414,11 @@ public String getOpeninvoicedataLineItemNrItemAmount() { } /** - * The price for one item in the invoice line, represented in minor units. The due amount for the item, VAT excluded. + * The price for one item in the invoice line, represented in minor units. The due amount for the + * item, VAT excluded. * - * @param openinvoicedataLineItemNrItemAmount The price for one item in the invoice line, represented in minor units. The due amount for the item, VAT excluded. + * @param openinvoicedataLineItemNrItemAmount The price for one item in the invoice line, + * represented in minor units. The due amount for the item, VAT excluded. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -333,17 +429,21 @@ public void setOpeninvoicedataLineItemNrItemAmount(String openinvoicedataLineIte /** * A unique id for this item. Required for RatePay if the description of each item is not unique. * - * @param openinvoicedataLineItemNrItemId A unique id for this item. Required for RatePay if the description of each item is not unique. + * @param openinvoicedataLineItemNrItemId A unique id for this item. Required for RatePay if the + * description of each item is not unique. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrItemId(String openinvoicedataLineItemNrItemId) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrItemId( + String openinvoicedataLineItemNrItemId) { this.openinvoicedataLineItemNrItemId = openinvoicedataLineItemNrItemId; return this; } /** * A unique id for this item. Required for RatePay if the description of each item is not unique. - * @return openinvoicedataLineItemNrItemId A unique id for this item. Required for RatePay if the description of each item is not unique. + * + * @return openinvoicedataLineItemNrItemId A unique id for this item. Required for RatePay if the + * description of each item is not unique. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -354,7 +454,8 @@ public String getOpeninvoicedataLineItemNrItemId() { /** * A unique id for this item. Required for RatePay if the description of each item is not unique. * - * @param openinvoicedataLineItemNrItemId A unique id for this item. Required for RatePay if the description of each item is not unique. + * @param openinvoicedataLineItemNrItemId A unique id for this item. Required for RatePay if the + * description of each item is not unique. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -365,17 +466,21 @@ public void setOpeninvoicedataLineItemNrItemId(String openinvoicedataLineItemNrI /** * The VAT due for one item in the invoice line, represented in minor units. * - * @param openinvoicedataLineItemNrItemVatAmount The VAT due for one item in the invoice line, represented in minor units. + * @param openinvoicedataLineItemNrItemVatAmount The VAT due for one item in the invoice line, + * represented in minor units. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrItemVatAmount(String openinvoicedataLineItemNrItemVatAmount) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrItemVatAmount( + String openinvoicedataLineItemNrItemVatAmount) { this.openinvoicedataLineItemNrItemVatAmount = openinvoicedataLineItemNrItemVatAmount; return this; } /** * The VAT due for one item in the invoice line, represented in minor units. - * @return openinvoicedataLineItemNrItemVatAmount The VAT due for one item in the invoice line, represented in minor units. + * + * @return openinvoicedataLineItemNrItemVatAmount The VAT due for one item in the invoice line, + * represented in minor units. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_VAT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -386,28 +491,36 @@ public String getOpeninvoicedataLineItemNrItemVatAmount() { /** * The VAT due for one item in the invoice line, represented in minor units. * - * @param openinvoicedataLineItemNrItemVatAmount The VAT due for one item in the invoice line, represented in minor units. + * @param openinvoicedataLineItemNrItemVatAmount The VAT due for one item in the invoice line, + * represented in minor units. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_VAT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrItemVatAmount(String openinvoicedataLineItemNrItemVatAmount) { + public void setOpeninvoicedataLineItemNrItemVatAmount( + String openinvoicedataLineItemNrItemVatAmount) { this.openinvoicedataLineItemNrItemVatAmount = openinvoicedataLineItemNrItemVatAmount; } /** - * The VAT percentage for one item in the invoice line, represented in minor units. For example, 19% VAT is specified as 1900. + * The VAT percentage for one item in the invoice line, represented in minor units. For example, + * 19% VAT is specified as 1900. * - * @param openinvoicedataLineItemNrItemVatPercentage The VAT percentage for one item in the invoice line, represented in minor units. For example, 19% VAT is specified as 1900. + * @param openinvoicedataLineItemNrItemVatPercentage The VAT percentage for one item in the + * invoice line, represented in minor units. For example, 19% VAT is specified as 1900. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrItemVatPercentage(String openinvoicedataLineItemNrItemVatPercentage) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrItemVatPercentage( + String openinvoicedataLineItemNrItemVatPercentage) { this.openinvoicedataLineItemNrItemVatPercentage = openinvoicedataLineItemNrItemVatPercentage; return this; } /** - * The VAT percentage for one item in the invoice line, represented in minor units. For example, 19% VAT is specified as 1900. - * @return openinvoicedataLineItemNrItemVatPercentage The VAT percentage for one item in the invoice line, represented in minor units. For example, 19% VAT is specified as 1900. + * The VAT percentage for one item in the invoice line, represented in minor units. For example, + * 19% VAT is specified as 1900. + * + * @return openinvoicedataLineItemNrItemVatPercentage The VAT percentage for one item in the + * invoice line, represented in minor units. For example, 19% VAT is specified as 1900. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_VAT_PERCENTAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -416,30 +529,37 @@ public String getOpeninvoicedataLineItemNrItemVatPercentage() { } /** - * The VAT percentage for one item in the invoice line, represented in minor units. For example, 19% VAT is specified as 1900. + * The VAT percentage for one item in the invoice line, represented in minor units. For example, + * 19% VAT is specified as 1900. * - * @param openinvoicedataLineItemNrItemVatPercentage The VAT percentage for one item in the invoice line, represented in minor units. For example, 19% VAT is specified as 1900. + * @param openinvoicedataLineItemNrItemVatPercentage The VAT percentage for one item in the + * invoice line, represented in minor units. For example, 19% VAT is specified as 1900. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_VAT_PERCENTAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrItemVatPercentage(String openinvoicedataLineItemNrItemVatPercentage) { + public void setOpeninvoicedataLineItemNrItemVatPercentage( + String openinvoicedataLineItemNrItemVatPercentage) { this.openinvoicedataLineItemNrItemVatPercentage = openinvoicedataLineItemNrItemVatPercentage; } /** * The number of units purchased of a specific product. * - * @param openinvoicedataLineItemNrNumberOfItems The number of units purchased of a specific product. + * @param openinvoicedataLineItemNrNumberOfItems The number of units purchased of a specific + * product. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrNumberOfItems(String openinvoicedataLineItemNrNumberOfItems) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrNumberOfItems( + String openinvoicedataLineItemNrNumberOfItems) { this.openinvoicedataLineItemNrNumberOfItems = openinvoicedataLineItemNrNumberOfItems; return this; } /** * The number of units purchased of a specific product. - * @return openinvoicedataLineItemNrNumberOfItems The number of units purchased of a specific product. + * + * @return openinvoicedataLineItemNrNumberOfItems The number of units purchased of a specific + * product. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_NUMBER_OF_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -450,28 +570,35 @@ public String getOpeninvoicedataLineItemNrNumberOfItems() { /** * The number of units purchased of a specific product. * - * @param openinvoicedataLineItemNrNumberOfItems The number of units purchased of a specific product. + * @param openinvoicedataLineItemNrNumberOfItems The number of units purchased of a specific + * product. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_NUMBER_OF_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrNumberOfItems(String openinvoicedataLineItemNrNumberOfItems) { + public void setOpeninvoicedataLineItemNrNumberOfItems( + String openinvoicedataLineItemNrNumberOfItems) { this.openinvoicedataLineItemNrNumberOfItems = openinvoicedataLineItemNrNumberOfItems; } /** * Name of the shipping company handling the the return shipment. * - * @param openinvoicedataLineItemNrReturnShippingCompany Name of the shipping company handling the the return shipment. + * @param openinvoicedataLineItemNrReturnShippingCompany Name of the shipping company handling the + * the return shipment. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrReturnShippingCompany(String openinvoicedataLineItemNrReturnShippingCompany) { - this.openinvoicedataLineItemNrReturnShippingCompany = openinvoicedataLineItemNrReturnShippingCompany; + public AdditionalDataOpenInvoice openinvoicedataLineItemNrReturnShippingCompany( + String openinvoicedataLineItemNrReturnShippingCompany) { + this.openinvoicedataLineItemNrReturnShippingCompany = + openinvoicedataLineItemNrReturnShippingCompany; return this; } /** * Name of the shipping company handling the the return shipment. - * @return openinvoicedataLineItemNrReturnShippingCompany Name of the shipping company handling the the return shipment. + * + * @return openinvoicedataLineItemNrReturnShippingCompany Name of the shipping company handling + * the the return shipment. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_SHIPPING_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -482,28 +609,36 @@ public String getOpeninvoicedataLineItemNrReturnShippingCompany() { /** * Name of the shipping company handling the the return shipment. * - * @param openinvoicedataLineItemNrReturnShippingCompany Name of the shipping company handling the the return shipment. + * @param openinvoicedataLineItemNrReturnShippingCompany Name of the shipping company handling the + * the return shipment. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_SHIPPING_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrReturnShippingCompany(String openinvoicedataLineItemNrReturnShippingCompany) { - this.openinvoicedataLineItemNrReturnShippingCompany = openinvoicedataLineItemNrReturnShippingCompany; + public void setOpeninvoicedataLineItemNrReturnShippingCompany( + String openinvoicedataLineItemNrReturnShippingCompany) { + this.openinvoicedataLineItemNrReturnShippingCompany = + openinvoicedataLineItemNrReturnShippingCompany; } /** * The tracking number for the return of the shipment. * - * @param openinvoicedataLineItemNrReturnTrackingNumber The tracking number for the return of the shipment. + * @param openinvoicedataLineItemNrReturnTrackingNumber The tracking number for the return of the + * shipment. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrReturnTrackingNumber(String openinvoicedataLineItemNrReturnTrackingNumber) { - this.openinvoicedataLineItemNrReturnTrackingNumber = openinvoicedataLineItemNrReturnTrackingNumber; + public AdditionalDataOpenInvoice openinvoicedataLineItemNrReturnTrackingNumber( + String openinvoicedataLineItemNrReturnTrackingNumber) { + this.openinvoicedataLineItemNrReturnTrackingNumber = + openinvoicedataLineItemNrReturnTrackingNumber; return this; } /** * The tracking number for the return of the shipment. - * @return openinvoicedataLineItemNrReturnTrackingNumber The tracking number for the return of the shipment. + * + * @return openinvoicedataLineItemNrReturnTrackingNumber The tracking number for the return of the + * shipment. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_TRACKING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -514,28 +649,35 @@ public String getOpeninvoicedataLineItemNrReturnTrackingNumber() { /** * The tracking number for the return of the shipment. * - * @param openinvoicedataLineItemNrReturnTrackingNumber The tracking number for the return of the shipment. + * @param openinvoicedataLineItemNrReturnTrackingNumber The tracking number for the return of the + * shipment. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_TRACKING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrReturnTrackingNumber(String openinvoicedataLineItemNrReturnTrackingNumber) { - this.openinvoicedataLineItemNrReturnTrackingNumber = openinvoicedataLineItemNrReturnTrackingNumber; + public void setOpeninvoicedataLineItemNrReturnTrackingNumber( + String openinvoicedataLineItemNrReturnTrackingNumber) { + this.openinvoicedataLineItemNrReturnTrackingNumber = + openinvoicedataLineItemNrReturnTrackingNumber; } /** * URI where the customer can track the return of their shipment. * - * @param openinvoicedataLineItemNrReturnTrackingUri URI where the customer can track the return of their shipment. + * @param openinvoicedataLineItemNrReturnTrackingUri URI where the customer can track the return + * of their shipment. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrReturnTrackingUri(String openinvoicedataLineItemNrReturnTrackingUri) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrReturnTrackingUri( + String openinvoicedataLineItemNrReturnTrackingUri) { this.openinvoicedataLineItemNrReturnTrackingUri = openinvoicedataLineItemNrReturnTrackingUri; return this; } /** * URI where the customer can track the return of their shipment. - * @return openinvoicedataLineItemNrReturnTrackingUri URI where the customer can track the return of their shipment. + * + * @return openinvoicedataLineItemNrReturnTrackingUri URI where the customer can track the return + * of their shipment. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_TRACKING_URI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -546,28 +688,34 @@ public String getOpeninvoicedataLineItemNrReturnTrackingUri() { /** * URI where the customer can track the return of their shipment. * - * @param openinvoicedataLineItemNrReturnTrackingUri URI where the customer can track the return of their shipment. + * @param openinvoicedataLineItemNrReturnTrackingUri URI where the customer can track the return + * of their shipment. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_TRACKING_URI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrReturnTrackingUri(String openinvoicedataLineItemNrReturnTrackingUri) { + public void setOpeninvoicedataLineItemNrReturnTrackingUri( + String openinvoicedataLineItemNrReturnTrackingUri) { this.openinvoicedataLineItemNrReturnTrackingUri = openinvoicedataLineItemNrReturnTrackingUri; } /** * Name of the shipping company handling the delivery. * - * @param openinvoicedataLineItemNrShippingCompany Name of the shipping company handling the delivery. + * @param openinvoicedataLineItemNrShippingCompany Name of the shipping company handling the + * delivery. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrShippingCompany(String openinvoicedataLineItemNrShippingCompany) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrShippingCompany( + String openinvoicedataLineItemNrShippingCompany) { this.openinvoicedataLineItemNrShippingCompany = openinvoicedataLineItemNrShippingCompany; return this; } /** * Name of the shipping company handling the delivery. - * @return openinvoicedataLineItemNrShippingCompany Name of the shipping company handling the delivery. + * + * @return openinvoicedataLineItemNrShippingCompany Name of the shipping company handling the + * delivery. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_SHIPPING_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -578,11 +726,13 @@ public String getOpeninvoicedataLineItemNrShippingCompany() { /** * Name of the shipping company handling the delivery. * - * @param openinvoicedataLineItemNrShippingCompany Name of the shipping company handling the delivery. + * @param openinvoicedataLineItemNrShippingCompany Name of the shipping company handling the + * delivery. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_SHIPPING_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrShippingCompany(String openinvoicedataLineItemNrShippingCompany) { + public void setOpeninvoicedataLineItemNrShippingCompany( + String openinvoicedataLineItemNrShippingCompany) { this.openinvoicedataLineItemNrShippingCompany = openinvoicedataLineItemNrShippingCompany; } @@ -592,13 +742,15 @@ public void setOpeninvoicedataLineItemNrShippingCompany(String openinvoicedataLi * @param openinvoicedataLineItemNrShippingMethod Shipping method. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrShippingMethod(String openinvoicedataLineItemNrShippingMethod) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrShippingMethod( + String openinvoicedataLineItemNrShippingMethod) { this.openinvoicedataLineItemNrShippingMethod = openinvoicedataLineItemNrShippingMethod; return this; } /** * Shipping method. + * * @return openinvoicedataLineItemNrShippingMethod Shipping method. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_SHIPPING_METHOD) @@ -614,7 +766,8 @@ public String getOpeninvoicedataLineItemNrShippingMethod() { */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_SHIPPING_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrShippingMethod(String openinvoicedataLineItemNrShippingMethod) { + public void setOpeninvoicedataLineItemNrShippingMethod( + String openinvoicedataLineItemNrShippingMethod) { this.openinvoicedataLineItemNrShippingMethod = openinvoicedataLineItemNrShippingMethod; } @@ -624,13 +777,15 @@ public void setOpeninvoicedataLineItemNrShippingMethod(String openinvoicedataLin * @param openinvoicedataLineItemNrTrackingNumber The tracking number for the shipment. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrTrackingNumber(String openinvoicedataLineItemNrTrackingNumber) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrTrackingNumber( + String openinvoicedataLineItemNrTrackingNumber) { this.openinvoicedataLineItemNrTrackingNumber = openinvoicedataLineItemNrTrackingNumber; return this; } /** * The tracking number for the shipment. + * * @return openinvoicedataLineItemNrTrackingNumber The tracking number for the shipment. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_NUMBER) @@ -646,7 +801,8 @@ public String getOpeninvoicedataLineItemNrTrackingNumber() { */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrTrackingNumber(String openinvoicedataLineItemNrTrackingNumber) { + public void setOpeninvoicedataLineItemNrTrackingNumber( + String openinvoicedataLineItemNrTrackingNumber) { this.openinvoicedataLineItemNrTrackingNumber = openinvoicedataLineItemNrTrackingNumber; } @@ -656,13 +812,15 @@ public void setOpeninvoicedataLineItemNrTrackingNumber(String openinvoicedataLin * @param openinvoicedataLineItemNrTrackingUri URI where the customer can track their shipment. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrTrackingUri(String openinvoicedataLineItemNrTrackingUri) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrTrackingUri( + String openinvoicedataLineItemNrTrackingUri) { this.openinvoicedataLineItemNrTrackingUri = openinvoicedataLineItemNrTrackingUri; return this; } /** * URI where the customer can track their shipment. + * * @return openinvoicedataLineItemNrTrackingUri URI where the customer can track their shipment. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_URI) @@ -682,9 +840,7 @@ public void setOpeninvoicedataLineItemNrTrackingUri(String openinvoicedataLineIt this.openinvoicedataLineItemNrTrackingUri = openinvoicedataLineItemNrTrackingUri; } - /** - * Return true if this AdditionalDataOpenInvoice object is equal to o. - */ + /** Return true if this AdditionalDataOpenInvoice object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -694,60 +850,148 @@ public boolean equals(Object o) { return false; } AdditionalDataOpenInvoice additionalDataOpenInvoice = (AdditionalDataOpenInvoice) o; - return Objects.equals(this.openinvoicedataMerchantData, additionalDataOpenInvoice.openinvoicedataMerchantData) && - Objects.equals(this.openinvoicedataNumberOfLines, additionalDataOpenInvoice.openinvoicedataNumberOfLines) && - Objects.equals(this.openinvoicedataRecipientFirstName, additionalDataOpenInvoice.openinvoicedataRecipientFirstName) && - Objects.equals(this.openinvoicedataRecipientLastName, additionalDataOpenInvoice.openinvoicedataRecipientLastName) && - Objects.equals(this.openinvoicedataLineItemNrCurrencyCode, additionalDataOpenInvoice.openinvoicedataLineItemNrCurrencyCode) && - Objects.equals(this.openinvoicedataLineItemNrDescription, additionalDataOpenInvoice.openinvoicedataLineItemNrDescription) && - Objects.equals(this.openinvoicedataLineItemNrItemAmount, additionalDataOpenInvoice.openinvoicedataLineItemNrItemAmount) && - Objects.equals(this.openinvoicedataLineItemNrItemId, additionalDataOpenInvoice.openinvoicedataLineItemNrItemId) && - Objects.equals(this.openinvoicedataLineItemNrItemVatAmount, additionalDataOpenInvoice.openinvoicedataLineItemNrItemVatAmount) && - Objects.equals(this.openinvoicedataLineItemNrItemVatPercentage, additionalDataOpenInvoice.openinvoicedataLineItemNrItemVatPercentage) && - Objects.equals(this.openinvoicedataLineItemNrNumberOfItems, additionalDataOpenInvoice.openinvoicedataLineItemNrNumberOfItems) && - Objects.equals(this.openinvoicedataLineItemNrReturnShippingCompany, additionalDataOpenInvoice.openinvoicedataLineItemNrReturnShippingCompany) && - Objects.equals(this.openinvoicedataLineItemNrReturnTrackingNumber, additionalDataOpenInvoice.openinvoicedataLineItemNrReturnTrackingNumber) && - Objects.equals(this.openinvoicedataLineItemNrReturnTrackingUri, additionalDataOpenInvoice.openinvoicedataLineItemNrReturnTrackingUri) && - Objects.equals(this.openinvoicedataLineItemNrShippingCompany, additionalDataOpenInvoice.openinvoicedataLineItemNrShippingCompany) && - Objects.equals(this.openinvoicedataLineItemNrShippingMethod, additionalDataOpenInvoice.openinvoicedataLineItemNrShippingMethod) && - Objects.equals(this.openinvoicedataLineItemNrTrackingNumber, additionalDataOpenInvoice.openinvoicedataLineItemNrTrackingNumber) && - Objects.equals(this.openinvoicedataLineItemNrTrackingUri, additionalDataOpenInvoice.openinvoicedataLineItemNrTrackingUri); + return Objects.equals( + this.openinvoicedataMerchantData, additionalDataOpenInvoice.openinvoicedataMerchantData) + && Objects.equals( + this.openinvoicedataNumberOfLines, + additionalDataOpenInvoice.openinvoicedataNumberOfLines) + && Objects.equals( + this.openinvoicedataRecipientFirstName, + additionalDataOpenInvoice.openinvoicedataRecipientFirstName) + && Objects.equals( + this.openinvoicedataRecipientLastName, + additionalDataOpenInvoice.openinvoicedataRecipientLastName) + && Objects.equals( + this.openinvoicedataLineItemNrCurrencyCode, + additionalDataOpenInvoice.openinvoicedataLineItemNrCurrencyCode) + && Objects.equals( + this.openinvoicedataLineItemNrDescription, + additionalDataOpenInvoice.openinvoicedataLineItemNrDescription) + && Objects.equals( + this.openinvoicedataLineItemNrItemAmount, + additionalDataOpenInvoice.openinvoicedataLineItemNrItemAmount) + && Objects.equals( + this.openinvoicedataLineItemNrItemId, + additionalDataOpenInvoice.openinvoicedataLineItemNrItemId) + && Objects.equals( + this.openinvoicedataLineItemNrItemVatAmount, + additionalDataOpenInvoice.openinvoicedataLineItemNrItemVatAmount) + && Objects.equals( + this.openinvoicedataLineItemNrItemVatPercentage, + additionalDataOpenInvoice.openinvoicedataLineItemNrItemVatPercentage) + && Objects.equals( + this.openinvoicedataLineItemNrNumberOfItems, + additionalDataOpenInvoice.openinvoicedataLineItemNrNumberOfItems) + && Objects.equals( + this.openinvoicedataLineItemNrReturnShippingCompany, + additionalDataOpenInvoice.openinvoicedataLineItemNrReturnShippingCompany) + && Objects.equals( + this.openinvoicedataLineItemNrReturnTrackingNumber, + additionalDataOpenInvoice.openinvoicedataLineItemNrReturnTrackingNumber) + && Objects.equals( + this.openinvoicedataLineItemNrReturnTrackingUri, + additionalDataOpenInvoice.openinvoicedataLineItemNrReturnTrackingUri) + && Objects.equals( + this.openinvoicedataLineItemNrShippingCompany, + additionalDataOpenInvoice.openinvoicedataLineItemNrShippingCompany) + && Objects.equals( + this.openinvoicedataLineItemNrShippingMethod, + additionalDataOpenInvoice.openinvoicedataLineItemNrShippingMethod) + && Objects.equals( + this.openinvoicedataLineItemNrTrackingNumber, + additionalDataOpenInvoice.openinvoicedataLineItemNrTrackingNumber) + && Objects.equals( + this.openinvoicedataLineItemNrTrackingUri, + additionalDataOpenInvoice.openinvoicedataLineItemNrTrackingUri); } @Override public int hashCode() { - return Objects.hash(openinvoicedataMerchantData, openinvoicedataNumberOfLines, openinvoicedataRecipientFirstName, openinvoicedataRecipientLastName, openinvoicedataLineItemNrCurrencyCode, openinvoicedataLineItemNrDescription, openinvoicedataLineItemNrItemAmount, openinvoicedataLineItemNrItemId, openinvoicedataLineItemNrItemVatAmount, openinvoicedataLineItemNrItemVatPercentage, openinvoicedataLineItemNrNumberOfItems, openinvoicedataLineItemNrReturnShippingCompany, openinvoicedataLineItemNrReturnTrackingNumber, openinvoicedataLineItemNrReturnTrackingUri, openinvoicedataLineItemNrShippingCompany, openinvoicedataLineItemNrShippingMethod, openinvoicedataLineItemNrTrackingNumber, openinvoicedataLineItemNrTrackingUri); + return Objects.hash( + openinvoicedataMerchantData, + openinvoicedataNumberOfLines, + openinvoicedataRecipientFirstName, + openinvoicedataRecipientLastName, + openinvoicedataLineItemNrCurrencyCode, + openinvoicedataLineItemNrDescription, + openinvoicedataLineItemNrItemAmount, + openinvoicedataLineItemNrItemId, + openinvoicedataLineItemNrItemVatAmount, + openinvoicedataLineItemNrItemVatPercentage, + openinvoicedataLineItemNrNumberOfItems, + openinvoicedataLineItemNrReturnShippingCompany, + openinvoicedataLineItemNrReturnTrackingNumber, + openinvoicedataLineItemNrReturnTrackingUri, + openinvoicedataLineItemNrShippingCompany, + openinvoicedataLineItemNrShippingMethod, + openinvoicedataLineItemNrTrackingNumber, + openinvoicedataLineItemNrTrackingUri); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataOpenInvoice {\n"); - sb.append(" openinvoicedataMerchantData: ").append(toIndentedString(openinvoicedataMerchantData)).append("\n"); - sb.append(" openinvoicedataNumberOfLines: ").append(toIndentedString(openinvoicedataNumberOfLines)).append("\n"); - sb.append(" openinvoicedataRecipientFirstName: ").append(toIndentedString(openinvoicedataRecipientFirstName)).append("\n"); - sb.append(" openinvoicedataRecipientLastName: ").append(toIndentedString(openinvoicedataRecipientLastName)).append("\n"); - sb.append(" openinvoicedataLineItemNrCurrencyCode: ").append(toIndentedString(openinvoicedataLineItemNrCurrencyCode)).append("\n"); - sb.append(" openinvoicedataLineItemNrDescription: ").append(toIndentedString(openinvoicedataLineItemNrDescription)).append("\n"); - sb.append(" openinvoicedataLineItemNrItemAmount: ").append(toIndentedString(openinvoicedataLineItemNrItemAmount)).append("\n"); - sb.append(" openinvoicedataLineItemNrItemId: ").append(toIndentedString(openinvoicedataLineItemNrItemId)).append("\n"); - sb.append(" openinvoicedataLineItemNrItemVatAmount: ").append(toIndentedString(openinvoicedataLineItemNrItemVatAmount)).append("\n"); - sb.append(" openinvoicedataLineItemNrItemVatPercentage: ").append(toIndentedString(openinvoicedataLineItemNrItemVatPercentage)).append("\n"); - sb.append(" openinvoicedataLineItemNrNumberOfItems: ").append(toIndentedString(openinvoicedataLineItemNrNumberOfItems)).append("\n"); - sb.append(" openinvoicedataLineItemNrReturnShippingCompany: ").append(toIndentedString(openinvoicedataLineItemNrReturnShippingCompany)).append("\n"); - sb.append(" openinvoicedataLineItemNrReturnTrackingNumber: ").append(toIndentedString(openinvoicedataLineItemNrReturnTrackingNumber)).append("\n"); - sb.append(" openinvoicedataLineItemNrReturnTrackingUri: ").append(toIndentedString(openinvoicedataLineItemNrReturnTrackingUri)).append("\n"); - sb.append(" openinvoicedataLineItemNrShippingCompany: ").append(toIndentedString(openinvoicedataLineItemNrShippingCompany)).append("\n"); - sb.append(" openinvoicedataLineItemNrShippingMethod: ").append(toIndentedString(openinvoicedataLineItemNrShippingMethod)).append("\n"); - sb.append(" openinvoicedataLineItemNrTrackingNumber: ").append(toIndentedString(openinvoicedataLineItemNrTrackingNumber)).append("\n"); - sb.append(" openinvoicedataLineItemNrTrackingUri: ").append(toIndentedString(openinvoicedataLineItemNrTrackingUri)).append("\n"); + sb.append(" openinvoicedataMerchantData: ") + .append(toIndentedString(openinvoicedataMerchantData)) + .append("\n"); + sb.append(" openinvoicedataNumberOfLines: ") + .append(toIndentedString(openinvoicedataNumberOfLines)) + .append("\n"); + sb.append(" openinvoicedataRecipientFirstName: ") + .append(toIndentedString(openinvoicedataRecipientFirstName)) + .append("\n"); + sb.append(" openinvoicedataRecipientLastName: ") + .append(toIndentedString(openinvoicedataRecipientLastName)) + .append("\n"); + sb.append(" openinvoicedataLineItemNrCurrencyCode: ") + .append(toIndentedString(openinvoicedataLineItemNrCurrencyCode)) + .append("\n"); + sb.append(" openinvoicedataLineItemNrDescription: ") + .append(toIndentedString(openinvoicedataLineItemNrDescription)) + .append("\n"); + sb.append(" openinvoicedataLineItemNrItemAmount: ") + .append(toIndentedString(openinvoicedataLineItemNrItemAmount)) + .append("\n"); + sb.append(" openinvoicedataLineItemNrItemId: ") + .append(toIndentedString(openinvoicedataLineItemNrItemId)) + .append("\n"); + sb.append(" openinvoicedataLineItemNrItemVatAmount: ") + .append(toIndentedString(openinvoicedataLineItemNrItemVatAmount)) + .append("\n"); + sb.append(" openinvoicedataLineItemNrItemVatPercentage: ") + .append(toIndentedString(openinvoicedataLineItemNrItemVatPercentage)) + .append("\n"); + sb.append(" openinvoicedataLineItemNrNumberOfItems: ") + .append(toIndentedString(openinvoicedataLineItemNrNumberOfItems)) + .append("\n"); + sb.append(" openinvoicedataLineItemNrReturnShippingCompany: ") + .append(toIndentedString(openinvoicedataLineItemNrReturnShippingCompany)) + .append("\n"); + sb.append(" openinvoicedataLineItemNrReturnTrackingNumber: ") + .append(toIndentedString(openinvoicedataLineItemNrReturnTrackingNumber)) + .append("\n"); + sb.append(" openinvoicedataLineItemNrReturnTrackingUri: ") + .append(toIndentedString(openinvoicedataLineItemNrReturnTrackingUri)) + .append("\n"); + sb.append(" openinvoicedataLineItemNrShippingCompany: ") + .append(toIndentedString(openinvoicedataLineItemNrShippingCompany)) + .append("\n"); + sb.append(" openinvoicedataLineItemNrShippingMethod: ") + .append(toIndentedString(openinvoicedataLineItemNrShippingMethod)) + .append("\n"); + sb.append(" openinvoicedataLineItemNrTrackingNumber: ") + .append(toIndentedString(openinvoicedataLineItemNrTrackingNumber)) + .append("\n"); + sb.append(" openinvoicedataLineItemNrTrackingUri: ") + .append(toIndentedString(openinvoicedataLineItemNrTrackingUri)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -756,21 +1000,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalDataOpenInvoice given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataOpenInvoice - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataOpenInvoice + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalDataOpenInvoice */ - public static AdditionalDataOpenInvoice fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalDataOpenInvoice fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataOpenInvoice.class); } -/** - * Convert an instance of AdditionalDataOpenInvoice to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalDataOpenInvoice to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataOpi.java b/src/main/java/com/adyen/model/checkout/AdditionalDataOpi.java index 2fc7519e9..95283e1af 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataOpi.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataOpi.java @@ -2,46 +2,40 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AdditionalDataOpi - */ -@JsonPropertyOrder({ - AdditionalDataOpi.JSON_PROPERTY_OPI_INCLUDE_TRANS_TOKEN -}) - +/** AdditionalDataOpi */ +@JsonPropertyOrder({AdditionalDataOpi.JSON_PROPERTY_OPI_INCLUDE_TRANS_TOKEN}) public class AdditionalDataOpi { public static final String JSON_PROPERTY_OPI_INCLUDE_TRANS_TOKEN = "opi.includeTransToken"; private String opiIncludeTransToken; - public AdditionalDataOpi() { - } + public AdditionalDataOpi() {} /** - * Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an `opi.transToken` as additional data in the response. You can store this Oracle Payment Interface token in your Oracle Opera database. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an + * `opi.transToken` as additional data in the response. You can store this Oracle + * Payment Interface token in your Oracle Opera database. For more information and required + * settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). * - * @param opiIncludeTransToken Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an `opi.transToken` as additional data in the response. You can store this Oracle Payment Interface token in your Oracle Opera database. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * @param opiIncludeTransToken Optional boolean indicator. Set to **true** if you want an + * ecommerce transaction to return an `opi.transToken` as additional data in the + * response. You can store this Oracle Payment Interface token in your Oracle Opera database. + * For more information and required settings, see [Oracle + * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). * @return the current {@code AdditionalDataOpi} instance, allowing for method chaining */ public AdditionalDataOpi opiIncludeTransToken(String opiIncludeTransToken) { @@ -50,8 +44,16 @@ public AdditionalDataOpi opiIncludeTransToken(String opiIncludeTransToken) { } /** - * Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an `opi.transToken` as additional data in the response. You can store this Oracle Payment Interface token in your Oracle Opera database. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). - * @return opiIncludeTransToken Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an `opi.transToken` as additional data in the response. You can store this Oracle Payment Interface token in your Oracle Opera database. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an + * `opi.transToken` as additional data in the response. You can store this Oracle + * Payment Interface token in your Oracle Opera database. For more information and required + * settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * + * @return opiIncludeTransToken Optional boolean indicator. Set to **true** if you want an + * ecommerce transaction to return an `opi.transToken` as additional data in the + * response. You can store this Oracle Payment Interface token in your Oracle Opera database. + * For more information and required settings, see [Oracle + * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). */ @JsonProperty(JSON_PROPERTY_OPI_INCLUDE_TRANS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,9 +62,16 @@ public String getOpiIncludeTransToken() { } /** - * Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an `opi.transToken` as additional data in the response. You can store this Oracle Payment Interface token in your Oracle Opera database. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an + * `opi.transToken` as additional data in the response. You can store this Oracle + * Payment Interface token in your Oracle Opera database. For more information and required + * settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). * - * @param opiIncludeTransToken Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an `opi.transToken` as additional data in the response. You can store this Oracle Payment Interface token in your Oracle Opera database. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * @param opiIncludeTransToken Optional boolean indicator. Set to **true** if you want an + * ecommerce transaction to return an `opi.transToken` as additional data in the + * response. You can store this Oracle Payment Interface token in your Oracle Opera database. + * For more information and required settings, see [Oracle + * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). */ @JsonProperty(JSON_PROPERTY_OPI_INCLUDE_TRANS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +79,7 @@ public void setOpiIncludeTransToken(String opiIncludeTransToken) { this.opiIncludeTransToken = opiIncludeTransToken; } - /** - * Return true if this AdditionalDataOpi object is equal to o. - */ + /** Return true if this AdditionalDataOpi object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -94,14 +101,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataOpi {\n"); - sb.append(" opiIncludeTransToken: ").append(toIndentedString(opiIncludeTransToken)).append("\n"); + sb.append(" opiIncludeTransToken: ") + .append(toIndentedString(opiIncludeTransToken)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,7 +118,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalDataOpi given an JSON string * * @param jsonString JSON string @@ -120,11 +128,12 @@ private String toIndentedString(Object o) { public static AdditionalDataOpi fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataOpi.class); } -/** - * Convert an instance of AdditionalDataOpi to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalDataOpi to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataRatepay.java b/src/main/java/com/adyen/model/checkout/AdditionalDataRatepay.java index 9bc415ba1..a51848a87 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataRatepay.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataRatepay.java @@ -2,31 +2,22 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AdditionalDataRatepay - */ +/** AdditionalDataRatepay */ @JsonPropertyOrder({ AdditionalDataRatepay.JSON_PROPERTY_RATEPAY_INSTALLMENT_AMOUNT, AdditionalDataRatepay.JSON_PROPERTY_RATEPAY_INTEREST_RATE, @@ -37,7 +28,6 @@ AdditionalDataRatepay.JSON_PROPERTY_RATEPAYDATA_INVOICE_DATE, AdditionalDataRatepay.JSON_PROPERTY_RATEPAYDATA_INVOICE_ID }) - public class AdditionalDataRatepay { public static final String JSON_PROPERTY_RATEPAY_INSTALLMENT_AMOUNT = "ratepay.installmentAmount"; private String ratepayInstallmentAmount; @@ -45,7 +35,8 @@ public class AdditionalDataRatepay { public static final String JSON_PROPERTY_RATEPAY_INTEREST_RATE = "ratepay.interestRate"; private String ratepayInterestRate; - public static final String JSON_PROPERTY_RATEPAY_LAST_INSTALLMENT_AMOUNT = "ratepay.lastInstallmentAmount"; + public static final String JSON_PROPERTY_RATEPAY_LAST_INSTALLMENT_AMOUNT = + "ratepay.lastInstallmentAmount"; private String ratepayLastInstallmentAmount; public static final String JSON_PROPERTY_RATEPAY_PAYMENT_FIRSTDAY = "ratepay.paymentFirstday"; @@ -63,8 +54,7 @@ public class AdditionalDataRatepay { public static final String JSON_PROPERTY_RATEPAYDATA_INVOICE_ID = "ratepaydata.invoiceId"; private String ratepaydataInvoiceId; - public AdditionalDataRatepay() { - } + public AdditionalDataRatepay() {} /** * Amount the customer has to pay each month. @@ -79,6 +69,7 @@ public AdditionalDataRatepay ratepayInstallmentAmount(String ratepayInstallmentA /** * Amount the customer has to pay each month. + * * @return ratepayInstallmentAmount Amount the customer has to pay each month. */ @JsonProperty(JSON_PROPERTY_RATEPAY_INSTALLMENT_AMOUNT) @@ -111,6 +102,7 @@ public AdditionalDataRatepay ratepayInterestRate(String ratepayInterestRate) { /** * Interest rate of this installment. + * * @return ratepayInterestRate Interest rate of this installment. */ @JsonProperty(JSON_PROPERTY_RATEPAY_INTEREST_RATE) @@ -143,6 +135,7 @@ public AdditionalDataRatepay ratepayLastInstallmentAmount(String ratepayLastInst /** * Amount of the last installment. + * * @return ratepayLastInstallmentAmount Amount of the last installment. */ @JsonProperty(JSON_PROPERTY_RATEPAY_LAST_INSTALLMENT_AMOUNT) @@ -175,6 +168,7 @@ public AdditionalDataRatepay ratepayPaymentFirstday(String ratepayPaymentFirstda /** * Calendar day of the first payment. + * * @return ratepayPaymentFirstday Calendar day of the first payment. */ @JsonProperty(JSON_PROPERTY_RATEPAY_PAYMENT_FIRSTDAY) @@ -207,6 +201,7 @@ public AdditionalDataRatepay ratepaydataDeliveryDate(String ratepaydataDeliveryD /** * Date the merchant delivered the goods to the customer. + * * @return ratepaydataDeliveryDate Date the merchant delivered the goods to the customer. */ @JsonProperty(JSON_PROPERTY_RATEPAYDATA_DELIVERY_DATE) @@ -239,6 +234,7 @@ public AdditionalDataRatepay ratepaydataDueDate(String ratepaydataDueDate) { /** * Date by which the customer must settle the payment. + * * @return ratepaydataDueDate Date by which the customer must settle the payment. */ @JsonProperty(JSON_PROPERTY_RATEPAYDATA_DUE_DATE) @@ -259,9 +255,11 @@ public void setRatepaydataDueDate(String ratepaydataDueDate) { } /** - * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. + * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery + * date. * - * @param ratepaydataInvoiceDate Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. + * @param ratepaydataInvoiceDate Invoice date, defined by the merchant. If not included, the + * invoice date is set to the delivery date. * @return the current {@code AdditionalDataRatepay} instance, allowing for method chaining */ public AdditionalDataRatepay ratepaydataInvoiceDate(String ratepaydataInvoiceDate) { @@ -270,8 +268,11 @@ public AdditionalDataRatepay ratepaydataInvoiceDate(String ratepaydataInvoiceDat } /** - * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. - * @return ratepaydataInvoiceDate Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. + * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery + * date. + * + * @return ratepaydataInvoiceDate Invoice date, defined by the merchant. If not included, the + * invoice date is set to the delivery date. */ @JsonProperty(JSON_PROPERTY_RATEPAYDATA_INVOICE_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -280,9 +281,11 @@ public String getRatepaydataInvoiceDate() { } /** - * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. + * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery + * date. * - * @param ratepaydataInvoiceDate Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. + * @param ratepaydataInvoiceDate Invoice date, defined by the merchant. If not included, the + * invoice date is set to the delivery date. */ @JsonProperty(JSON_PROPERTY_RATEPAYDATA_INVOICE_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -293,7 +296,8 @@ public void setRatepaydataInvoiceDate(String ratepaydataInvoiceDate) { /** * Identification name or number for the invoice, defined by the merchant. * - * @param ratepaydataInvoiceId Identification name or number for the invoice, defined by the merchant. + * @param ratepaydataInvoiceId Identification name or number for the invoice, defined by the + * merchant. * @return the current {@code AdditionalDataRatepay} instance, allowing for method chaining */ public AdditionalDataRatepay ratepaydataInvoiceId(String ratepaydataInvoiceId) { @@ -303,7 +307,9 @@ public AdditionalDataRatepay ratepaydataInvoiceId(String ratepaydataInvoiceId) { /** * Identification name or number for the invoice, defined by the merchant. - * @return ratepaydataInvoiceId Identification name or number for the invoice, defined by the merchant. + * + * @return ratepaydataInvoiceId Identification name or number for the invoice, defined by the + * merchant. */ @JsonProperty(JSON_PROPERTY_RATEPAYDATA_INVOICE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -314,7 +320,8 @@ public String getRatepaydataInvoiceId() { /** * Identification name or number for the invoice, defined by the merchant. * - * @param ratepaydataInvoiceId Identification name or number for the invoice, defined by the merchant. + * @param ratepaydataInvoiceId Identification name or number for the invoice, defined by the + * merchant. */ @JsonProperty(JSON_PROPERTY_RATEPAYDATA_INVOICE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -322,9 +329,7 @@ public void setRatepaydataInvoiceId(String ratepaydataInvoiceId) { this.ratepaydataInvoiceId = ratepaydataInvoiceId; } - /** - * Return true if this AdditionalDataRatepay object is equal to o. - */ + /** Return true if this AdditionalDataRatepay object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -334,40 +339,64 @@ public boolean equals(Object o) { return false; } AdditionalDataRatepay additionalDataRatepay = (AdditionalDataRatepay) o; - return Objects.equals(this.ratepayInstallmentAmount, additionalDataRatepay.ratepayInstallmentAmount) && - Objects.equals(this.ratepayInterestRate, additionalDataRatepay.ratepayInterestRate) && - Objects.equals(this.ratepayLastInstallmentAmount, additionalDataRatepay.ratepayLastInstallmentAmount) && - Objects.equals(this.ratepayPaymentFirstday, additionalDataRatepay.ratepayPaymentFirstday) && - Objects.equals(this.ratepaydataDeliveryDate, additionalDataRatepay.ratepaydataDeliveryDate) && - Objects.equals(this.ratepaydataDueDate, additionalDataRatepay.ratepaydataDueDate) && - Objects.equals(this.ratepaydataInvoiceDate, additionalDataRatepay.ratepaydataInvoiceDate) && - Objects.equals(this.ratepaydataInvoiceId, additionalDataRatepay.ratepaydataInvoiceId); + return Objects.equals( + this.ratepayInstallmentAmount, additionalDataRatepay.ratepayInstallmentAmount) + && Objects.equals(this.ratepayInterestRate, additionalDataRatepay.ratepayInterestRate) + && Objects.equals( + this.ratepayLastInstallmentAmount, additionalDataRatepay.ratepayLastInstallmentAmount) + && Objects.equals(this.ratepayPaymentFirstday, additionalDataRatepay.ratepayPaymentFirstday) + && Objects.equals( + this.ratepaydataDeliveryDate, additionalDataRatepay.ratepaydataDeliveryDate) + && Objects.equals(this.ratepaydataDueDate, additionalDataRatepay.ratepaydataDueDate) + && Objects.equals(this.ratepaydataInvoiceDate, additionalDataRatepay.ratepaydataInvoiceDate) + && Objects.equals(this.ratepaydataInvoiceId, additionalDataRatepay.ratepaydataInvoiceId); } @Override public int hashCode() { - return Objects.hash(ratepayInstallmentAmount, ratepayInterestRate, ratepayLastInstallmentAmount, ratepayPaymentFirstday, ratepaydataDeliveryDate, ratepaydataDueDate, ratepaydataInvoiceDate, ratepaydataInvoiceId); + return Objects.hash( + ratepayInstallmentAmount, + ratepayInterestRate, + ratepayLastInstallmentAmount, + ratepayPaymentFirstday, + ratepaydataDeliveryDate, + ratepaydataDueDate, + ratepaydataInvoiceDate, + ratepaydataInvoiceId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataRatepay {\n"); - sb.append(" ratepayInstallmentAmount: ").append(toIndentedString(ratepayInstallmentAmount)).append("\n"); - sb.append(" ratepayInterestRate: ").append(toIndentedString(ratepayInterestRate)).append("\n"); - sb.append(" ratepayLastInstallmentAmount: ").append(toIndentedString(ratepayLastInstallmentAmount)).append("\n"); - sb.append(" ratepayPaymentFirstday: ").append(toIndentedString(ratepayPaymentFirstday)).append("\n"); - sb.append(" ratepaydataDeliveryDate: ").append(toIndentedString(ratepaydataDeliveryDate)).append("\n"); + sb.append(" ratepayInstallmentAmount: ") + .append(toIndentedString(ratepayInstallmentAmount)) + .append("\n"); + sb.append(" ratepayInterestRate: ") + .append(toIndentedString(ratepayInterestRate)) + .append("\n"); + sb.append(" ratepayLastInstallmentAmount: ") + .append(toIndentedString(ratepayLastInstallmentAmount)) + .append("\n"); + sb.append(" ratepayPaymentFirstday: ") + .append(toIndentedString(ratepayPaymentFirstday)) + .append("\n"); + sb.append(" ratepaydataDeliveryDate: ") + .append(toIndentedString(ratepaydataDeliveryDate)) + .append("\n"); sb.append(" ratepaydataDueDate: ").append(toIndentedString(ratepaydataDueDate)).append("\n"); - sb.append(" ratepaydataInvoiceDate: ").append(toIndentedString(ratepaydataInvoiceDate)).append("\n"); - sb.append(" ratepaydataInvoiceId: ").append(toIndentedString(ratepaydataInvoiceId)).append("\n"); + sb.append(" ratepaydataInvoiceDate: ") + .append(toIndentedString(ratepaydataInvoiceDate)) + .append("\n"); + sb.append(" ratepaydataInvoiceId: ") + .append(toIndentedString(ratepaydataInvoiceId)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -376,21 +405,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalDataRatepay given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataRatepay - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataRatepay + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalDataRatepay */ public static AdditionalDataRatepay fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataRatepay.class); } -/** - * Convert an instance of AdditionalDataRatepay to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalDataRatepay to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataRetry.java b/src/main/java/com/adyen/model/checkout/AdditionalDataRetry.java index 90e4a5b77..39af136d2 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataRetry.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataRetry.java @@ -2,37 +2,27 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AdditionalDataRetry - */ +/** AdditionalDataRetry */ @JsonPropertyOrder({ AdditionalDataRetry.JSON_PROPERTY_RETRY_CHAIN_ATTEMPT_NUMBER, AdditionalDataRetry.JSON_PROPERTY_RETRY_ORDER_ATTEMPT_NUMBER, AdditionalDataRetry.JSON_PROPERTY_RETRY_SKIP_RETRY }) - public class AdditionalDataRetry { public static final String JSON_PROPERTY_RETRY_CHAIN_ATTEMPT_NUMBER = "retry.chainAttemptNumber"; private String retryChainAttemptNumber; @@ -43,13 +33,23 @@ public class AdditionalDataRetry { public static final String JSON_PROPERTY_RETRY_SKIP_RETRY = "retry.skipRetry"; private String retrySkipRetry; - public AdditionalDataRetry() { - } + public AdditionalDataRetry() {} /** - * The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * The number of times the transaction (not order) has been retried between different payment + * service providers. For instance, the `chainAttemptNumber` set to 2 means that this + * transaction has been recently tried on another provider before being sent to Adyen. > If you + * submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and + * `retry.skipRetry` values, we also recommend you provide the + * `merchantOrderReference` to facilitate linking payment attempts together. * - * @param retryChainAttemptNumber The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * @param retryChainAttemptNumber The number of times the transaction (not order) has been retried + * between different payment service providers. For instance, the + * `chainAttemptNumber` set to 2 means that this transaction has been recently tried + * on another provider before being sent to Adyen. > If you submit + * `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and + * `retry.skipRetry` values, we also recommend you provide the + * `merchantOrderReference` to facilitate linking payment attempts together. * @return the current {@code AdditionalDataRetry} instance, allowing for method chaining */ public AdditionalDataRetry retryChainAttemptNumber(String retryChainAttemptNumber) { @@ -58,8 +58,20 @@ public AdditionalDataRetry retryChainAttemptNumber(String retryChainAttemptNumbe } /** - * The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. - * @return retryChainAttemptNumber The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * The number of times the transaction (not order) has been retried between different payment + * service providers. For instance, the `chainAttemptNumber` set to 2 means that this + * transaction has been recently tried on another provider before being sent to Adyen. > If you + * submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and + * `retry.skipRetry` values, we also recommend you provide the + * `merchantOrderReference` to facilitate linking payment attempts together. + * + * @return retryChainAttemptNumber The number of times the transaction (not order) has been + * retried between different payment service providers. For instance, the + * `chainAttemptNumber` set to 2 means that this transaction has been recently tried + * on another provider before being sent to Adyen. > If you submit + * `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and + * `retry.skipRetry` values, we also recommend you provide the + * `merchantOrderReference` to facilitate linking payment attempts together. */ @JsonProperty(JSON_PROPERTY_RETRY_CHAIN_ATTEMPT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,9 +80,20 @@ public String getRetryChainAttemptNumber() { } /** - * The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * The number of times the transaction (not order) has been retried between different payment + * service providers. For instance, the `chainAttemptNumber` set to 2 means that this + * transaction has been recently tried on another provider before being sent to Adyen. > If you + * submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and + * `retry.skipRetry` values, we also recommend you provide the + * `merchantOrderReference` to facilitate linking payment attempts together. * - * @param retryChainAttemptNumber The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * @param retryChainAttemptNumber The number of times the transaction (not order) has been retried + * between different payment service providers. For instance, the + * `chainAttemptNumber` set to 2 means that this transaction has been recently tried + * on another provider before being sent to Adyen. > If you submit + * `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and + * `retry.skipRetry` values, we also recommend you provide the + * `merchantOrderReference` to facilitate linking payment attempts together. */ @JsonProperty(JSON_PROPERTY_RETRY_CHAIN_ATTEMPT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,9 +102,20 @@ public void setRetryChainAttemptNumber(String retryChainAttemptNumber) { } /** - * The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * The index of the attempt to bill a particular order, which is identified by the + * `merchantOrderReference` field. For example, if a recurring transaction fails and is + * retried one day later, then the order number for these attempts would be 1 and 2, respectively. + * > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, + * and `retry.skipRetry` values, we also recommend you provide the + * `merchantOrderReference` to facilitate linking payment attempts together. * - * @param retryOrderAttemptNumber The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * @param retryOrderAttemptNumber The index of the attempt to bill a particular order, which is + * identified by the `merchantOrderReference` field. For example, if a recurring + * transaction fails and is retried one day later, then the order number for these attempts + * would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, + * `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also + * recommend you provide the `merchantOrderReference` to facilitate linking payment + * attempts together. * @return the current {@code AdditionalDataRetry} instance, allowing for method chaining */ public AdditionalDataRetry retryOrderAttemptNumber(String retryOrderAttemptNumber) { @@ -90,8 +124,20 @@ public AdditionalDataRetry retryOrderAttemptNumber(String retryOrderAttemptNumbe } /** - * The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. - * @return retryOrderAttemptNumber The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * The index of the attempt to bill a particular order, which is identified by the + * `merchantOrderReference` field. For example, if a recurring transaction fails and is + * retried one day later, then the order number for these attempts would be 1 and 2, respectively. + * > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, + * and `retry.skipRetry` values, we also recommend you provide the + * `merchantOrderReference` to facilitate linking payment attempts together. + * + * @return retryOrderAttemptNumber The index of the attempt to bill a particular order, which is + * identified by the `merchantOrderReference` field. For example, if a recurring + * transaction fails and is retried one day later, then the order number for these attempts + * would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, + * `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also + * recommend you provide the `merchantOrderReference` to facilitate linking payment + * attempts together. */ @JsonProperty(JSON_PROPERTY_RETRY_ORDER_ATTEMPT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,9 +146,20 @@ public String getRetryOrderAttemptNumber() { } /** - * The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * The index of the attempt to bill a particular order, which is identified by the + * `merchantOrderReference` field. For example, if a recurring transaction fails and is + * retried one day later, then the order number for these attempts would be 1 and 2, respectively. + * > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, + * and `retry.skipRetry` values, we also recommend you provide the + * `merchantOrderReference` to facilitate linking payment attempts together. * - * @param retryOrderAttemptNumber The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * @param retryOrderAttemptNumber The index of the attempt to bill a particular order, which is + * identified by the `merchantOrderReference` field. For example, if a recurring + * transaction fails and is retried one day later, then the order number for these attempts + * would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, + * `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also + * recommend you provide the `merchantOrderReference` to facilitate linking payment + * attempts together. */ @JsonProperty(JSON_PROPERTY_RETRY_ORDER_ATTEMPT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,9 +168,16 @@ public void setRetryOrderAttemptNumber(String retryOrderAttemptNumber) { } /** - * The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. + * > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, + * and `retry.skipRetry` values, we also recommend you provide the + * `merchantOrderReference` to facilitate linking payment attempts together. * - * @param retrySkipRetry The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * @param retrySkipRetry The Boolean value indicating whether Adyen should skip or retry this + * transaction, if possible. > If you submit `retry.chainAttemptNumber`, + * `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also + * recommend you provide the `merchantOrderReference` to facilitate linking payment + * attempts together. * @return the current {@code AdditionalDataRetry} instance, allowing for method chaining */ public AdditionalDataRetry retrySkipRetry(String retrySkipRetry) { @@ -122,8 +186,16 @@ public AdditionalDataRetry retrySkipRetry(String retrySkipRetry) { } /** - * The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. - * @return retrySkipRetry The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. + * > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, + * and `retry.skipRetry` values, we also recommend you provide the + * `merchantOrderReference` to facilitate linking payment attempts together. + * + * @return retrySkipRetry The Boolean value indicating whether Adyen should skip or retry this + * transaction, if possible. > If you submit `retry.chainAttemptNumber`, + * `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also + * recommend you provide the `merchantOrderReference` to facilitate linking payment + * attempts together. */ @JsonProperty(JSON_PROPERTY_RETRY_SKIP_RETRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,9 +204,16 @@ public String getRetrySkipRetry() { } /** - * The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. + * > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, + * and `retry.skipRetry` values, we also recommend you provide the + * `merchantOrderReference` to facilitate linking payment attempts together. * - * @param retrySkipRetry The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * @param retrySkipRetry The Boolean value indicating whether Adyen should skip or retry this + * transaction, if possible. > If you submit `retry.chainAttemptNumber`, + * `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also + * recommend you provide the `merchantOrderReference` to facilitate linking payment + * attempts together. */ @JsonProperty(JSON_PROPERTY_RETRY_SKIP_RETRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +221,7 @@ public void setRetrySkipRetry(String retrySkipRetry) { this.retrySkipRetry = retrySkipRetry; } - /** - * Return true if this AdditionalDataRetry object is equal to o. - */ + /** Return true if this AdditionalDataRetry object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +231,9 @@ public boolean equals(Object o) { return false; } AdditionalDataRetry additionalDataRetry = (AdditionalDataRetry) o; - return Objects.equals(this.retryChainAttemptNumber, additionalDataRetry.retryChainAttemptNumber) && - Objects.equals(this.retryOrderAttemptNumber, additionalDataRetry.retryOrderAttemptNumber) && - Objects.equals(this.retrySkipRetry, additionalDataRetry.retrySkipRetry); + return Objects.equals(this.retryChainAttemptNumber, additionalDataRetry.retryChainAttemptNumber) + && Objects.equals(this.retryOrderAttemptNumber, additionalDataRetry.retryOrderAttemptNumber) + && Objects.equals(this.retrySkipRetry, additionalDataRetry.retrySkipRetry); } @Override @@ -168,16 +245,19 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataRetry {\n"); - sb.append(" retryChainAttemptNumber: ").append(toIndentedString(retryChainAttemptNumber)).append("\n"); - sb.append(" retryOrderAttemptNumber: ").append(toIndentedString(retryOrderAttemptNumber)).append("\n"); + sb.append(" retryChainAttemptNumber: ") + .append(toIndentedString(retryChainAttemptNumber)) + .append("\n"); + sb.append(" retryOrderAttemptNumber: ") + .append(toIndentedString(retryOrderAttemptNumber)) + .append("\n"); sb.append(" retrySkipRetry: ").append(toIndentedString(retrySkipRetry)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +266,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalDataRetry given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataRetry - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataRetry + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalDataRetry */ public static AdditionalDataRetry fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataRetry.class); } -/** - * Convert an instance of AdditionalDataRetry to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalDataRetry to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataRisk.java b/src/main/java/com/adyen/model/checkout/AdditionalDataRisk.java index 8d83b5387..f8f352421 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataRisk.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataRisk.java @@ -2,31 +2,22 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AdditionalDataRisk - */ +/** AdditionalDataRisk */ @JsonPropertyOrder({ AdditionalDataRisk.JSON_PROPERTY_RISKDATA_CUSTOM_FIELD_NAME, AdditionalDataRisk.JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_AMOUNT_PER_ITEM, @@ -44,84 +35,110 @@ AdditionalDataRisk.JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_UPC, AdditionalDataRisk.JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_CODE, AdditionalDataRisk.JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_AMOUNT, - AdditionalDataRisk.JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_CURRENCY, - AdditionalDataRisk.JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_PERCENTAGE, + AdditionalDataRisk + .JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_CURRENCY, + AdditionalDataRisk + .JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_PERCENTAGE, AdditionalDataRisk.JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_NAME, AdditionalDataRisk.JSON_PROPERTY_RISKDATA_RISK_PROFILE_REFERENCE, AdditionalDataRisk.JSON_PROPERTY_RISKDATA_SKIP_RISK }) - public class AdditionalDataRisk { - public static final String JSON_PROPERTY_RISKDATA_CUSTOM_FIELD_NAME = "riskdata.[customFieldName]"; + public static final String JSON_PROPERTY_RISKDATA_CUSTOM_FIELD_NAME = + "riskdata.[customFieldName]"; private String riskdataCustomFieldName; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_AMOUNT_PER_ITEM = "riskdata.basket.item[itemNr].amountPerItem"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_AMOUNT_PER_ITEM = + "riskdata.basket.item[itemNr].amountPerItem"; private String riskdataBasketItemItemNrAmountPerItem; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_BRAND = "riskdata.basket.item[itemNr].brand"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_BRAND = + "riskdata.basket.item[itemNr].brand"; private String riskdataBasketItemItemNrBrand; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_CATEGORY = "riskdata.basket.item[itemNr].category"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_CATEGORY = + "riskdata.basket.item[itemNr].category"; private String riskdataBasketItemItemNrCategory; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_COLOR = "riskdata.basket.item[itemNr].color"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_COLOR = + "riskdata.basket.item[itemNr].color"; private String riskdataBasketItemItemNrColor; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_CURRENCY = "riskdata.basket.item[itemNr].currency"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_CURRENCY = + "riskdata.basket.item[itemNr].currency"; private String riskdataBasketItemItemNrCurrency; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_ITEM_I_D = "riskdata.basket.item[itemNr].itemID"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_ITEM_I_D = + "riskdata.basket.item[itemNr].itemID"; private String riskdataBasketItemItemNrItemID; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_MANUFACTURER = "riskdata.basket.item[itemNr].manufacturer"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_MANUFACTURER = + "riskdata.basket.item[itemNr].manufacturer"; private String riskdataBasketItemItemNrManufacturer; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_PRODUCT_TITLE = "riskdata.basket.item[itemNr].productTitle"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_PRODUCT_TITLE = + "riskdata.basket.item[itemNr].productTitle"; private String riskdataBasketItemItemNrProductTitle; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_QUANTITY = "riskdata.basket.item[itemNr].quantity"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_QUANTITY = + "riskdata.basket.item[itemNr].quantity"; private String riskdataBasketItemItemNrQuantity; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_RECEIVER_EMAIL = "riskdata.basket.item[itemNr].receiverEmail"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_RECEIVER_EMAIL = + "riskdata.basket.item[itemNr].receiverEmail"; private String riskdataBasketItemItemNrReceiverEmail; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_SIZE = "riskdata.basket.item[itemNr].size"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_SIZE = + "riskdata.basket.item[itemNr].size"; private String riskdataBasketItemItemNrSize; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_SKU = "riskdata.basket.item[itemNr].sku"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_SKU = + "riskdata.basket.item[itemNr].sku"; private String riskdataBasketItemItemNrSku; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_UPC = "riskdata.basket.item[itemNr].upc"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_UPC = + "riskdata.basket.item[itemNr].upc"; private String riskdataBasketItemItemNrUpc; - public static final String JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_CODE = "riskdata.promotions.promotion[itemNr].promotionCode"; + public static final String JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_CODE = + "riskdata.promotions.promotion[itemNr].promotionCode"; private String riskdataPromotionsPromotionItemNrPromotionCode; - public static final String JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_AMOUNT = "riskdata.promotions.promotion[itemNr].promotionDiscountAmount"; + public static final String + JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_AMOUNT = + "riskdata.promotions.promotion[itemNr].promotionDiscountAmount"; private String riskdataPromotionsPromotionItemNrPromotionDiscountAmount; - public static final String JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_CURRENCY = "riskdata.promotions.promotion[itemNr].promotionDiscountCurrency"; + public static final String + JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_CURRENCY = + "riskdata.promotions.promotion[itemNr].promotionDiscountCurrency"; private String riskdataPromotionsPromotionItemNrPromotionDiscountCurrency; - public static final String JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_PERCENTAGE = "riskdata.promotions.promotion[itemNr].promotionDiscountPercentage"; + public static final String + JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_PERCENTAGE = + "riskdata.promotions.promotion[itemNr].promotionDiscountPercentage"; private String riskdataPromotionsPromotionItemNrPromotionDiscountPercentage; - public static final String JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_NAME = "riskdata.promotions.promotion[itemNr].promotionName"; + public static final String JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_NAME = + "riskdata.promotions.promotion[itemNr].promotionName"; private String riskdataPromotionsPromotionItemNrPromotionName; - public static final String JSON_PROPERTY_RISKDATA_RISK_PROFILE_REFERENCE = "riskdata.riskProfileReference"; + public static final String JSON_PROPERTY_RISKDATA_RISK_PROFILE_REFERENCE = + "riskdata.riskProfileReference"; private String riskdataRiskProfileReference; public static final String JSON_PROPERTY_RISKDATA_SKIP_RISK = "riskdata.skipRisk"; private String riskdataSkipRisk; - public AdditionalDataRisk() { - } + public AdditionalDataRisk() {} /** - * The data for your custom risk field. For more information, refer to [Create custom risk fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). + * The data for your custom risk field. For more information, refer to [Create custom risk + * fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). * - * @param riskdataCustomFieldName The data for your custom risk field. For more information, refer to [Create custom risk fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). + * @param riskdataCustomFieldName The data for your custom risk field. For more information, refer + * to [Create custom risk + * fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ public AdditionalDataRisk riskdataCustomFieldName(String riskdataCustomFieldName) { @@ -130,8 +147,12 @@ public AdditionalDataRisk riskdataCustomFieldName(String riskdataCustomFieldName } /** - * The data for your custom risk field. For more information, refer to [Create custom risk fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). - * @return riskdataCustomFieldName The data for your custom risk field. For more information, refer to [Create custom risk fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). + * The data for your custom risk field. For more information, refer to [Create custom risk + * fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). + * + * @return riskdataCustomFieldName The data for your custom risk field. For more information, + * refer to [Create custom risk + * fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). */ @JsonProperty(JSON_PROPERTY_RISKDATA_CUSTOM_FIELD_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,9 +161,12 @@ public String getRiskdataCustomFieldName() { } /** - * The data for your custom risk field. For more information, refer to [Create custom risk fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). + * The data for your custom risk field. For more information, refer to [Create custom risk + * fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). * - * @param riskdataCustomFieldName The data for your custom risk field. For more information, refer to [Create custom risk fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). + * @param riskdataCustomFieldName The data for your custom risk field. For more information, refer + * to [Create custom risk + * fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). */ @JsonProperty(JSON_PROPERTY_RISKDATA_CUSTOM_FIELD_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,19 +175,25 @@ public void setRiskdataCustomFieldName(String riskdataCustomFieldName) { } /** - * The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The price of item in the basket, represented in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * - * @param riskdataBasketItemItemNrAmountPerItem The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @param riskdataBasketItemItemNrAmountPerItem The price of item in the basket, represented in + * [minor units](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataBasketItemItemNrAmountPerItem(String riskdataBasketItemItemNrAmountPerItem) { + public AdditionalDataRisk riskdataBasketItemItemNrAmountPerItem( + String riskdataBasketItemItemNrAmountPerItem) { this.riskdataBasketItemItemNrAmountPerItem = riskdataBasketItemItemNrAmountPerItem; return this; } /** - * The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). - * @return riskdataBasketItemItemNrAmountPerItem The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The price of item in the basket, represented in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). + * + * @return riskdataBasketItemItemNrAmountPerItem The price of item in the basket, represented in + * [minor units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_AMOUNT_PER_ITEM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,13 +202,16 @@ public String getRiskdataBasketItemItemNrAmountPerItem() { } /** - * The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The price of item in the basket, represented in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * - * @param riskdataBasketItemItemNrAmountPerItem The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @param riskdataBasketItemItemNrAmountPerItem The price of item in the basket, represented in + * [minor units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_AMOUNT_PER_ITEM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRiskdataBasketItemItemNrAmountPerItem(String riskdataBasketItemItemNrAmountPerItem) { + public void setRiskdataBasketItemItemNrAmountPerItem( + String riskdataBasketItemItemNrAmountPerItem) { this.riskdataBasketItemItemNrAmountPerItem = riskdataBasketItemItemNrAmountPerItem; } @@ -195,6 +228,7 @@ public AdditionalDataRisk riskdataBasketItemItemNrBrand(String riskdataBasketIte /** * Brand of the item. + * * @return riskdataBasketItemItemNrBrand Brand of the item. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_BRAND) @@ -220,13 +254,15 @@ public void setRiskdataBasketItemItemNrBrand(String riskdataBasketItemItemNrBran * @param riskdataBasketItemItemNrCategory Category of the item. * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataBasketItemItemNrCategory(String riskdataBasketItemItemNrCategory) { + public AdditionalDataRisk riskdataBasketItemItemNrCategory( + String riskdataBasketItemItemNrCategory) { this.riskdataBasketItemItemNrCategory = riskdataBasketItemItemNrCategory; return this; } /** * Category of the item. + * * @return riskdataBasketItemItemNrCategory Category of the item. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_CATEGORY) @@ -259,6 +295,7 @@ public AdditionalDataRisk riskdataBasketItemItemNrColor(String riskdataBasketIte /** * Color of the item. + * * @return riskdataBasketItemItemNrColor Color of the item. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_COLOR) @@ -281,17 +318,21 @@ public void setRiskdataBasketItemItemNrColor(String riskdataBasketItemItemNrColo /** * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). * - * @param riskdataBasketItemItemNrCurrency The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * @param riskdataBasketItemItemNrCurrency The three-character [ISO currency + * code](https://en.wikipedia.org/wiki/ISO_4217). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataBasketItemItemNrCurrency(String riskdataBasketItemItemNrCurrency) { + public AdditionalDataRisk riskdataBasketItemItemNrCurrency( + String riskdataBasketItemItemNrCurrency) { this.riskdataBasketItemItemNrCurrency = riskdataBasketItemItemNrCurrency; return this; } /** * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). - * @return riskdataBasketItemItemNrCurrency The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * + * @return riskdataBasketItemItemNrCurrency The three-character [ISO currency + * code](https://en.wikipedia.org/wiki/ISO_4217). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -302,7 +343,8 @@ public String getRiskdataBasketItemItemNrCurrency() { /** * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). * - * @param riskdataBasketItemItemNrCurrency The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * @param riskdataBasketItemItemNrCurrency The three-character [ISO currency + * code](https://en.wikipedia.org/wiki/ISO_4217). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -323,6 +365,7 @@ public AdditionalDataRisk riskdataBasketItemItemNrItemID(String riskdataBasketIt /** * ID of the item. + * * @return riskdataBasketItemItemNrItemID ID of the item. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_ITEM_I_D) @@ -348,13 +391,15 @@ public void setRiskdataBasketItemItemNrItemID(String riskdataBasketItemItemNrIte * @param riskdataBasketItemItemNrManufacturer Manufacturer of the item. * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataBasketItemItemNrManufacturer(String riskdataBasketItemItemNrManufacturer) { + public AdditionalDataRisk riskdataBasketItemItemNrManufacturer( + String riskdataBasketItemItemNrManufacturer) { this.riskdataBasketItemItemNrManufacturer = riskdataBasketItemItemNrManufacturer; return this; } /** * Manufacturer of the item. + * * @return riskdataBasketItemItemNrManufacturer Manufacturer of the item. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_MANUFACTURER) @@ -377,17 +422,21 @@ public void setRiskdataBasketItemItemNrManufacturer(String riskdataBasketItemIte /** * A text description of the product the invoice line refers to. * - * @param riskdataBasketItemItemNrProductTitle A text description of the product the invoice line refers to. + * @param riskdataBasketItemItemNrProductTitle A text description of the product the invoice line + * refers to. * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataBasketItemItemNrProductTitle(String riskdataBasketItemItemNrProductTitle) { + public AdditionalDataRisk riskdataBasketItemItemNrProductTitle( + String riskdataBasketItemItemNrProductTitle) { this.riskdataBasketItemItemNrProductTitle = riskdataBasketItemItemNrProductTitle; return this; } /** * A text description of the product the invoice line refers to. - * @return riskdataBasketItemItemNrProductTitle A text description of the product the invoice line refers to. + * + * @return riskdataBasketItemItemNrProductTitle A text description of the product the invoice line + * refers to. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_PRODUCT_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -398,7 +447,8 @@ public String getRiskdataBasketItemItemNrProductTitle() { /** * A text description of the product the invoice line refers to. * - * @param riskdataBasketItemItemNrProductTitle A text description of the product the invoice line refers to. + * @param riskdataBasketItemItemNrProductTitle A text description of the product the invoice line + * refers to. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_PRODUCT_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -412,13 +462,15 @@ public void setRiskdataBasketItemItemNrProductTitle(String riskdataBasketItemIte * @param riskdataBasketItemItemNrQuantity Quantity of the item purchased. * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataBasketItemItemNrQuantity(String riskdataBasketItemItemNrQuantity) { + public AdditionalDataRisk riskdataBasketItemItemNrQuantity( + String riskdataBasketItemItemNrQuantity) { this.riskdataBasketItemItemNrQuantity = riskdataBasketItemItemNrQuantity; return this; } /** * Quantity of the item purchased. + * * @return riskdataBasketItemItemNrQuantity Quantity of the item purchased. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_QUANTITY) @@ -441,17 +493,21 @@ public void setRiskdataBasketItemItemNrQuantity(String riskdataBasketItemItemNrQ /** * Email associated with the given product in the basket (usually in electronic gift cards). * - * @param riskdataBasketItemItemNrReceiverEmail Email associated with the given product in the basket (usually in electronic gift cards). + * @param riskdataBasketItemItemNrReceiverEmail Email associated with the given product in the + * basket (usually in electronic gift cards). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataBasketItemItemNrReceiverEmail(String riskdataBasketItemItemNrReceiverEmail) { + public AdditionalDataRisk riskdataBasketItemItemNrReceiverEmail( + String riskdataBasketItemItemNrReceiverEmail) { this.riskdataBasketItemItemNrReceiverEmail = riskdataBasketItemItemNrReceiverEmail; return this; } /** * Email associated with the given product in the basket (usually in electronic gift cards). - * @return riskdataBasketItemItemNrReceiverEmail Email associated with the given product in the basket (usually in electronic gift cards). + * + * @return riskdataBasketItemItemNrReceiverEmail Email associated with the given product in the + * basket (usually in electronic gift cards). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_RECEIVER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -462,11 +518,13 @@ public String getRiskdataBasketItemItemNrReceiverEmail() { /** * Email associated with the given product in the basket (usually in electronic gift cards). * - * @param riskdataBasketItemItemNrReceiverEmail Email associated with the given product in the basket (usually in electronic gift cards). + * @param riskdataBasketItemItemNrReceiverEmail Email associated with the given product in the + * basket (usually in electronic gift cards). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_RECEIVER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRiskdataBasketItemItemNrReceiverEmail(String riskdataBasketItemItemNrReceiverEmail) { + public void setRiskdataBasketItemItemNrReceiverEmail( + String riskdataBasketItemItemNrReceiverEmail) { this.riskdataBasketItemItemNrReceiverEmail = riskdataBasketItemItemNrReceiverEmail; } @@ -483,6 +541,7 @@ public AdditionalDataRisk riskdataBasketItemItemNrSize(String riskdataBasketItem /** * Size of the item. + * * @return riskdataBasketItemItemNrSize Size of the item. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_SIZE) @@ -505,7 +564,8 @@ public void setRiskdataBasketItemItemNrSize(String riskdataBasketItemItemNrSize) /** * [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). * - * @param riskdataBasketItemItemNrSku [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). + * @param riskdataBasketItemItemNrSku [Stock keeping + * unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ public AdditionalDataRisk riskdataBasketItemItemNrSku(String riskdataBasketItemItemNrSku) { @@ -515,7 +575,9 @@ public AdditionalDataRisk riskdataBasketItemItemNrSku(String riskdataBasketItemI /** * [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). - * @return riskdataBasketItemItemNrSku [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). + * + * @return riskdataBasketItemItemNrSku [Stock keeping + * unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_SKU) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -526,7 +588,8 @@ public String getRiskdataBasketItemItemNrSku() { /** * [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). * - * @param riskdataBasketItemItemNrSku [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). + * @param riskdataBasketItemItemNrSku [Stock keeping + * unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_SKU) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -537,7 +600,8 @@ public void setRiskdataBasketItemItemNrSku(String riskdataBasketItemItemNrSku) { /** * [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). * - * @param riskdataBasketItemItemNrUpc [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). + * @param riskdataBasketItemItemNrUpc [Universal Product + * Code](https://en.wikipedia.org/wiki/Universal_Product_Code). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ public AdditionalDataRisk riskdataBasketItemItemNrUpc(String riskdataBasketItemItemNrUpc) { @@ -547,7 +611,9 @@ public AdditionalDataRisk riskdataBasketItemItemNrUpc(String riskdataBasketItemI /** * [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). - * @return riskdataBasketItemItemNrUpc [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). + * + * @return riskdataBasketItemItemNrUpc [Universal Product + * Code](https://en.wikipedia.org/wiki/Universal_Product_Code). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_UPC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -558,7 +624,8 @@ public String getRiskdataBasketItemItemNrUpc() { /** * [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). * - * @param riskdataBasketItemItemNrUpc [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). + * @param riskdataBasketItemItemNrUpc [Universal Product + * Code](https://en.wikipedia.org/wiki/Universal_Product_Code). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_UPC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -572,13 +639,16 @@ public void setRiskdataBasketItemItemNrUpc(String riskdataBasketItemItemNrUpc) { * @param riskdataPromotionsPromotionItemNrPromotionCode Code of the promotion. * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionCode(String riskdataPromotionsPromotionItemNrPromotionCode) { - this.riskdataPromotionsPromotionItemNrPromotionCode = riskdataPromotionsPromotionItemNrPromotionCode; + public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionCode( + String riskdataPromotionsPromotionItemNrPromotionCode) { + this.riskdataPromotionsPromotionItemNrPromotionCode = + riskdataPromotionsPromotionItemNrPromotionCode; return this; } /** * Code of the promotion. + * * @return riskdataPromotionsPromotionItemNrPromotionCode Code of the promotion. */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_CODE) @@ -594,24 +664,35 @@ public String getRiskdataPromotionsPromotionItemNrPromotionCode() { */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRiskdataPromotionsPromotionItemNrPromotionCode(String riskdataPromotionsPromotionItemNrPromotionCode) { - this.riskdataPromotionsPromotionItemNrPromotionCode = riskdataPromotionsPromotionItemNrPromotionCode; + public void setRiskdataPromotionsPromotionItemNrPromotionCode( + String riskdataPromotionsPromotionItemNrPromotionCode) { + this.riskdataPromotionsPromotionItemNrPromotionCode = + riskdataPromotionsPromotionItemNrPromotionCode; } /** - * The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The discount amount of the promotion, represented in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * - * @param riskdataPromotionsPromotionItemNrPromotionDiscountAmount The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @param riskdataPromotionsPromotionItemNrPromotionDiscountAmount The discount amount of the + * promotion, represented in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionDiscountAmount(String riskdataPromotionsPromotionItemNrPromotionDiscountAmount) { - this.riskdataPromotionsPromotionItemNrPromotionDiscountAmount = riskdataPromotionsPromotionItemNrPromotionDiscountAmount; + public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionDiscountAmount( + String riskdataPromotionsPromotionItemNrPromotionDiscountAmount) { + this.riskdataPromotionsPromotionItemNrPromotionDiscountAmount = + riskdataPromotionsPromotionItemNrPromotionDiscountAmount; return this; } /** - * The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). - * @return riskdataPromotionsPromotionItemNrPromotionDiscountAmount The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The discount amount of the promotion, represented in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). + * + * @return riskdataPromotionsPromotionItemNrPromotionDiscountAmount The discount amount of the + * promotion, represented in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -620,30 +701,40 @@ public String getRiskdataPromotionsPromotionItemNrPromotionDiscountAmount() { } /** - * The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The discount amount of the promotion, represented in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * - * @param riskdataPromotionsPromotionItemNrPromotionDiscountAmount The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @param riskdataPromotionsPromotionItemNrPromotionDiscountAmount The discount amount of the + * promotion, represented in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRiskdataPromotionsPromotionItemNrPromotionDiscountAmount(String riskdataPromotionsPromotionItemNrPromotionDiscountAmount) { - this.riskdataPromotionsPromotionItemNrPromotionDiscountAmount = riskdataPromotionsPromotionItemNrPromotionDiscountAmount; + public void setRiskdataPromotionsPromotionItemNrPromotionDiscountAmount( + String riskdataPromotionsPromotionItemNrPromotionDiscountAmount) { + this.riskdataPromotionsPromotionItemNrPromotionDiscountAmount = + riskdataPromotionsPromotionItemNrPromotionDiscountAmount; } /** * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). * - * @param riskdataPromotionsPromotionItemNrPromotionDiscountCurrency The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * @param riskdataPromotionsPromotionItemNrPromotionDiscountCurrency The three-character [ISO + * currency code](https://en.wikipedia.org/wiki/ISO_4217). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionDiscountCurrency(String riskdataPromotionsPromotionItemNrPromotionDiscountCurrency) { - this.riskdataPromotionsPromotionItemNrPromotionDiscountCurrency = riskdataPromotionsPromotionItemNrPromotionDiscountCurrency; + public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionDiscountCurrency( + String riskdataPromotionsPromotionItemNrPromotionDiscountCurrency) { + this.riskdataPromotionsPromotionItemNrPromotionDiscountCurrency = + riskdataPromotionsPromotionItemNrPromotionDiscountCurrency; return this; } /** * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). - * @return riskdataPromotionsPromotionItemNrPromotionDiscountCurrency The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * + * @return riskdataPromotionsPromotionItemNrPromotionDiscountCurrency The three-character [ISO + * currency code](https://en.wikipedia.org/wiki/ISO_4217). */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -654,28 +745,44 @@ public String getRiskdataPromotionsPromotionItemNrPromotionDiscountCurrency() { /** * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). * - * @param riskdataPromotionsPromotionItemNrPromotionDiscountCurrency The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * @param riskdataPromotionsPromotionItemNrPromotionDiscountCurrency The three-character [ISO + * currency code](https://en.wikipedia.org/wiki/ISO_4217). */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRiskdataPromotionsPromotionItemNrPromotionDiscountCurrency(String riskdataPromotionsPromotionItemNrPromotionDiscountCurrency) { - this.riskdataPromotionsPromotionItemNrPromotionDiscountCurrency = riskdataPromotionsPromotionItemNrPromotionDiscountCurrency; + public void setRiskdataPromotionsPromotionItemNrPromotionDiscountCurrency( + String riskdataPromotionsPromotionItemNrPromotionDiscountCurrency) { + this.riskdataPromotionsPromotionItemNrPromotionDiscountCurrency = + riskdataPromotionsPromotionItemNrPromotionDiscountCurrency; } /** - * Promotion's percentage discount. It is represented in percentage value and there is no need to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field should be 30. + * Promotion's percentage discount. It is represented in percentage value and there is no need + * to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field + * should be 30. * - * @param riskdataPromotionsPromotionItemNrPromotionDiscountPercentage Promotion's percentage discount. It is represented in percentage value and there is no need to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field should be 30. + * @param riskdataPromotionsPromotionItemNrPromotionDiscountPercentage Promotion's percentage + * discount. It is represented in percentage value and there is no need to include the + * '%' sign. e.g. for a promotion discount of 30%, the value of the field should be + * 30. * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionDiscountPercentage(String riskdataPromotionsPromotionItemNrPromotionDiscountPercentage) { - this.riskdataPromotionsPromotionItemNrPromotionDiscountPercentage = riskdataPromotionsPromotionItemNrPromotionDiscountPercentage; + public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionDiscountPercentage( + String riskdataPromotionsPromotionItemNrPromotionDiscountPercentage) { + this.riskdataPromotionsPromotionItemNrPromotionDiscountPercentage = + riskdataPromotionsPromotionItemNrPromotionDiscountPercentage; return this; } /** - * Promotion's percentage discount. It is represented in percentage value and there is no need to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field should be 30. - * @return riskdataPromotionsPromotionItemNrPromotionDiscountPercentage Promotion's percentage discount. It is represented in percentage value and there is no need to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field should be 30. + * Promotion's percentage discount. It is represented in percentage value and there is no need + * to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field + * should be 30. + * + * @return riskdataPromotionsPromotionItemNrPromotionDiscountPercentage Promotion's percentage + * discount. It is represented in percentage value and there is no need to include the + * '%' sign. e.g. for a promotion discount of 30%, the value of the field should be + * 30. */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_PERCENTAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -684,14 +791,21 @@ public String getRiskdataPromotionsPromotionItemNrPromotionDiscountPercentage() } /** - * Promotion's percentage discount. It is represented in percentage value and there is no need to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field should be 30. + * Promotion's percentage discount. It is represented in percentage value and there is no need + * to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field + * should be 30. * - * @param riskdataPromotionsPromotionItemNrPromotionDiscountPercentage Promotion's percentage discount. It is represented in percentage value and there is no need to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field should be 30. + * @param riskdataPromotionsPromotionItemNrPromotionDiscountPercentage Promotion's percentage + * discount. It is represented in percentage value and there is no need to include the + * '%' sign. e.g. for a promotion discount of 30%, the value of the field should be + * 30. */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_PERCENTAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRiskdataPromotionsPromotionItemNrPromotionDiscountPercentage(String riskdataPromotionsPromotionItemNrPromotionDiscountPercentage) { - this.riskdataPromotionsPromotionItemNrPromotionDiscountPercentage = riskdataPromotionsPromotionItemNrPromotionDiscountPercentage; + public void setRiskdataPromotionsPromotionItemNrPromotionDiscountPercentage( + String riskdataPromotionsPromotionItemNrPromotionDiscountPercentage) { + this.riskdataPromotionsPromotionItemNrPromotionDiscountPercentage = + riskdataPromotionsPromotionItemNrPromotionDiscountPercentage; } /** @@ -700,13 +814,16 @@ public void setRiskdataPromotionsPromotionItemNrPromotionDiscountPercentage(Stri * @param riskdataPromotionsPromotionItemNrPromotionName Name of the promotion. * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionName(String riskdataPromotionsPromotionItemNrPromotionName) { - this.riskdataPromotionsPromotionItemNrPromotionName = riskdataPromotionsPromotionItemNrPromotionName; + public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionName( + String riskdataPromotionsPromotionItemNrPromotionName) { + this.riskdataPromotionsPromotionItemNrPromotionName = + riskdataPromotionsPromotionItemNrPromotionName; return this; } /** * Name of the promotion. + * * @return riskdataPromotionsPromotionItemNrPromotionName Name of the promotion. */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_NAME) @@ -722,14 +839,23 @@ public String getRiskdataPromotionsPromotionItemNrPromotionName() { */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRiskdataPromotionsPromotionItemNrPromotionName(String riskdataPromotionsPromotionItemNrPromotionName) { - this.riskdataPromotionsPromotionItemNrPromotionName = riskdataPromotionsPromotionItemNrPromotionName; + public void setRiskdataPromotionsPromotionItemNrPromotionName( + String riskdataPromotionsPromotionItemNrPromotionName) { + this.riskdataPromotionsPromotionItemNrPromotionName = + riskdataPromotionsPromotionItemNrPromotionName; } /** - * Reference number of the risk profile that you want to apply to the payment. If not provided or left blank, the merchant-level account's default risk profile will be applied to the payment. For more information, see [dynamically assign a risk profile to a payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). + * Reference number of the risk profile that you want to apply to the payment. If not provided or + * left blank, the merchant-level account's default risk profile will be applied to the + * payment. For more information, see [dynamically assign a risk profile to a + * payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). * - * @param riskdataRiskProfileReference Reference number of the risk profile that you want to apply to the payment. If not provided or left blank, the merchant-level account's default risk profile will be applied to the payment. For more information, see [dynamically assign a risk profile to a payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). + * @param riskdataRiskProfileReference Reference number of the risk profile that you want to apply + * to the payment. If not provided or left blank, the merchant-level account's default + * risk profile will be applied to the payment. For more information, see [dynamically assign + * a risk profile to a + * payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ public AdditionalDataRisk riskdataRiskProfileReference(String riskdataRiskProfileReference) { @@ -738,8 +864,16 @@ public AdditionalDataRisk riskdataRiskProfileReference(String riskdataRiskProfil } /** - * Reference number of the risk profile that you want to apply to the payment. If not provided or left blank, the merchant-level account's default risk profile will be applied to the payment. For more information, see [dynamically assign a risk profile to a payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). - * @return riskdataRiskProfileReference Reference number of the risk profile that you want to apply to the payment. If not provided or left blank, the merchant-level account's default risk profile will be applied to the payment. For more information, see [dynamically assign a risk profile to a payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). + * Reference number of the risk profile that you want to apply to the payment. If not provided or + * left blank, the merchant-level account's default risk profile will be applied to the + * payment. For more information, see [dynamically assign a risk profile to a + * payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). + * + * @return riskdataRiskProfileReference Reference number of the risk profile that you want to + * apply to the payment. If not provided or left blank, the merchant-level account's + * default risk profile will be applied to the payment. For more information, see [dynamically + * assign a risk profile to a + * payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). */ @JsonProperty(JSON_PROPERTY_RISKDATA_RISK_PROFILE_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -748,9 +882,16 @@ public String getRiskdataRiskProfileReference() { } /** - * Reference number of the risk profile that you want to apply to the payment. If not provided or left blank, the merchant-level account's default risk profile will be applied to the payment. For more information, see [dynamically assign a risk profile to a payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). + * Reference number of the risk profile that you want to apply to the payment. If not provided or + * left blank, the merchant-level account's default risk profile will be applied to the + * payment. For more information, see [dynamically assign a risk profile to a + * payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). * - * @param riskdataRiskProfileReference Reference number of the risk profile that you want to apply to the payment. If not provided or left blank, the merchant-level account's default risk profile will be applied to the payment. For more information, see [dynamically assign a risk profile to a payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). + * @param riskdataRiskProfileReference Reference number of the risk profile that you want to apply + * to the payment. If not provided or left blank, the merchant-level account's default + * risk profile will be applied to the payment. For more information, see [dynamically assign + * a risk profile to a + * payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). */ @JsonProperty(JSON_PROPERTY_RISKDATA_RISK_PROFILE_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -759,9 +900,11 @@ public void setRiskdataRiskProfileReference(String riskdataRiskProfileReference) } /** - * If this parameter is provided with the value **true**, risk checks for the payment request are skipped and the transaction will not get a risk score. + * If this parameter is provided with the value **true**, risk checks for the payment request are + * skipped and the transaction will not get a risk score. * - * @param riskdataSkipRisk If this parameter is provided with the value **true**, risk checks for the payment request are skipped and the transaction will not get a risk score. + * @param riskdataSkipRisk If this parameter is provided with the value **true**, risk checks for + * the payment request are skipped and the transaction will not get a risk score. * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ public AdditionalDataRisk riskdataSkipRisk(String riskdataSkipRisk) { @@ -770,8 +913,11 @@ public AdditionalDataRisk riskdataSkipRisk(String riskdataSkipRisk) { } /** - * If this parameter is provided with the value **true**, risk checks for the payment request are skipped and the transaction will not get a risk score. - * @return riskdataSkipRisk If this parameter is provided with the value **true**, risk checks for the payment request are skipped and the transaction will not get a risk score. + * If this parameter is provided with the value **true**, risk checks for the payment request are + * skipped and the transaction will not get a risk score. + * + * @return riskdataSkipRisk If this parameter is provided with the value **true**, risk checks for + * the payment request are skipped and the transaction will not get a risk score. */ @JsonProperty(JSON_PROPERTY_RISKDATA_SKIP_RISK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -780,9 +926,11 @@ public String getRiskdataSkipRisk() { } /** - * If this parameter is provided with the value **true**, risk checks for the payment request are skipped and the transaction will not get a risk score. + * If this parameter is provided with the value **true**, risk checks for the payment request are + * skipped and the transaction will not get a risk score. * - * @param riskdataSkipRisk If this parameter is provided with the value **true**, risk checks for the payment request are skipped and the transaction will not get a risk score. + * @param riskdataSkipRisk If this parameter is provided with the value **true**, risk checks for + * the payment request are skipped and the transaction will not get a risk score. */ @JsonProperty(JSON_PROPERTY_RISKDATA_SKIP_RISK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -790,9 +938,7 @@ public void setRiskdataSkipRisk(String riskdataSkipRisk) { this.riskdataSkipRisk = riskdataSkipRisk; } - /** - * Return true if this AdditionalDataRisk object is equal to o. - */ + /** Return true if this AdditionalDataRisk object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -802,66 +948,157 @@ public boolean equals(Object o) { return false; } AdditionalDataRisk additionalDataRisk = (AdditionalDataRisk) o; - return Objects.equals(this.riskdataCustomFieldName, additionalDataRisk.riskdataCustomFieldName) && - Objects.equals(this.riskdataBasketItemItemNrAmountPerItem, additionalDataRisk.riskdataBasketItemItemNrAmountPerItem) && - Objects.equals(this.riskdataBasketItemItemNrBrand, additionalDataRisk.riskdataBasketItemItemNrBrand) && - Objects.equals(this.riskdataBasketItemItemNrCategory, additionalDataRisk.riskdataBasketItemItemNrCategory) && - Objects.equals(this.riskdataBasketItemItemNrColor, additionalDataRisk.riskdataBasketItemItemNrColor) && - Objects.equals(this.riskdataBasketItemItemNrCurrency, additionalDataRisk.riskdataBasketItemItemNrCurrency) && - Objects.equals(this.riskdataBasketItemItemNrItemID, additionalDataRisk.riskdataBasketItemItemNrItemID) && - Objects.equals(this.riskdataBasketItemItemNrManufacturer, additionalDataRisk.riskdataBasketItemItemNrManufacturer) && - Objects.equals(this.riskdataBasketItemItemNrProductTitle, additionalDataRisk.riskdataBasketItemItemNrProductTitle) && - Objects.equals(this.riskdataBasketItemItemNrQuantity, additionalDataRisk.riskdataBasketItemItemNrQuantity) && - Objects.equals(this.riskdataBasketItemItemNrReceiverEmail, additionalDataRisk.riskdataBasketItemItemNrReceiverEmail) && - Objects.equals(this.riskdataBasketItemItemNrSize, additionalDataRisk.riskdataBasketItemItemNrSize) && - Objects.equals(this.riskdataBasketItemItemNrSku, additionalDataRisk.riskdataBasketItemItemNrSku) && - Objects.equals(this.riskdataBasketItemItemNrUpc, additionalDataRisk.riskdataBasketItemItemNrUpc) && - Objects.equals(this.riskdataPromotionsPromotionItemNrPromotionCode, additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionCode) && - Objects.equals(this.riskdataPromotionsPromotionItemNrPromotionDiscountAmount, additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionDiscountAmount) && - Objects.equals(this.riskdataPromotionsPromotionItemNrPromotionDiscountCurrency, additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionDiscountCurrency) && - Objects.equals(this.riskdataPromotionsPromotionItemNrPromotionDiscountPercentage, additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionDiscountPercentage) && - Objects.equals(this.riskdataPromotionsPromotionItemNrPromotionName, additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionName) && - Objects.equals(this.riskdataRiskProfileReference, additionalDataRisk.riskdataRiskProfileReference) && - Objects.equals(this.riskdataSkipRisk, additionalDataRisk.riskdataSkipRisk); + return Objects.equals(this.riskdataCustomFieldName, additionalDataRisk.riskdataCustomFieldName) + && Objects.equals( + this.riskdataBasketItemItemNrAmountPerItem, + additionalDataRisk.riskdataBasketItemItemNrAmountPerItem) + && Objects.equals( + this.riskdataBasketItemItemNrBrand, additionalDataRisk.riskdataBasketItemItemNrBrand) + && Objects.equals( + this.riskdataBasketItemItemNrCategory, + additionalDataRisk.riskdataBasketItemItemNrCategory) + && Objects.equals( + this.riskdataBasketItemItemNrColor, additionalDataRisk.riskdataBasketItemItemNrColor) + && Objects.equals( + this.riskdataBasketItemItemNrCurrency, + additionalDataRisk.riskdataBasketItemItemNrCurrency) + && Objects.equals( + this.riskdataBasketItemItemNrItemID, additionalDataRisk.riskdataBasketItemItemNrItemID) + && Objects.equals( + this.riskdataBasketItemItemNrManufacturer, + additionalDataRisk.riskdataBasketItemItemNrManufacturer) + && Objects.equals( + this.riskdataBasketItemItemNrProductTitle, + additionalDataRisk.riskdataBasketItemItemNrProductTitle) + && Objects.equals( + this.riskdataBasketItemItemNrQuantity, + additionalDataRisk.riskdataBasketItemItemNrQuantity) + && Objects.equals( + this.riskdataBasketItemItemNrReceiverEmail, + additionalDataRisk.riskdataBasketItemItemNrReceiverEmail) + && Objects.equals( + this.riskdataBasketItemItemNrSize, additionalDataRisk.riskdataBasketItemItemNrSize) + && Objects.equals( + this.riskdataBasketItemItemNrSku, additionalDataRisk.riskdataBasketItemItemNrSku) + && Objects.equals( + this.riskdataBasketItemItemNrUpc, additionalDataRisk.riskdataBasketItemItemNrUpc) + && Objects.equals( + this.riskdataPromotionsPromotionItemNrPromotionCode, + additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionCode) + && Objects.equals( + this.riskdataPromotionsPromotionItemNrPromotionDiscountAmount, + additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionDiscountAmount) + && Objects.equals( + this.riskdataPromotionsPromotionItemNrPromotionDiscountCurrency, + additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionDiscountCurrency) + && Objects.equals( + this.riskdataPromotionsPromotionItemNrPromotionDiscountPercentage, + additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionDiscountPercentage) + && Objects.equals( + this.riskdataPromotionsPromotionItemNrPromotionName, + additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionName) + && Objects.equals( + this.riskdataRiskProfileReference, additionalDataRisk.riskdataRiskProfileReference) + && Objects.equals(this.riskdataSkipRisk, additionalDataRisk.riskdataSkipRisk); } @Override public int hashCode() { - return Objects.hash(riskdataCustomFieldName, riskdataBasketItemItemNrAmountPerItem, riskdataBasketItemItemNrBrand, riskdataBasketItemItemNrCategory, riskdataBasketItemItemNrColor, riskdataBasketItemItemNrCurrency, riskdataBasketItemItemNrItemID, riskdataBasketItemItemNrManufacturer, riskdataBasketItemItemNrProductTitle, riskdataBasketItemItemNrQuantity, riskdataBasketItemItemNrReceiverEmail, riskdataBasketItemItemNrSize, riskdataBasketItemItemNrSku, riskdataBasketItemItemNrUpc, riskdataPromotionsPromotionItemNrPromotionCode, riskdataPromotionsPromotionItemNrPromotionDiscountAmount, riskdataPromotionsPromotionItemNrPromotionDiscountCurrency, riskdataPromotionsPromotionItemNrPromotionDiscountPercentage, riskdataPromotionsPromotionItemNrPromotionName, riskdataRiskProfileReference, riskdataSkipRisk); + return Objects.hash( + riskdataCustomFieldName, + riskdataBasketItemItemNrAmountPerItem, + riskdataBasketItemItemNrBrand, + riskdataBasketItemItemNrCategory, + riskdataBasketItemItemNrColor, + riskdataBasketItemItemNrCurrency, + riskdataBasketItemItemNrItemID, + riskdataBasketItemItemNrManufacturer, + riskdataBasketItemItemNrProductTitle, + riskdataBasketItemItemNrQuantity, + riskdataBasketItemItemNrReceiverEmail, + riskdataBasketItemItemNrSize, + riskdataBasketItemItemNrSku, + riskdataBasketItemItemNrUpc, + riskdataPromotionsPromotionItemNrPromotionCode, + riskdataPromotionsPromotionItemNrPromotionDiscountAmount, + riskdataPromotionsPromotionItemNrPromotionDiscountCurrency, + riskdataPromotionsPromotionItemNrPromotionDiscountPercentage, + riskdataPromotionsPromotionItemNrPromotionName, + riskdataRiskProfileReference, + riskdataSkipRisk); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataRisk {\n"); - sb.append(" riskdataCustomFieldName: ").append(toIndentedString(riskdataCustomFieldName)).append("\n"); - sb.append(" riskdataBasketItemItemNrAmountPerItem: ").append(toIndentedString(riskdataBasketItemItemNrAmountPerItem)).append("\n"); - sb.append(" riskdataBasketItemItemNrBrand: ").append(toIndentedString(riskdataBasketItemItemNrBrand)).append("\n"); - sb.append(" riskdataBasketItemItemNrCategory: ").append(toIndentedString(riskdataBasketItemItemNrCategory)).append("\n"); - sb.append(" riskdataBasketItemItemNrColor: ").append(toIndentedString(riskdataBasketItemItemNrColor)).append("\n"); - sb.append(" riskdataBasketItemItemNrCurrency: ").append(toIndentedString(riskdataBasketItemItemNrCurrency)).append("\n"); - sb.append(" riskdataBasketItemItemNrItemID: ").append(toIndentedString(riskdataBasketItemItemNrItemID)).append("\n"); - sb.append(" riskdataBasketItemItemNrManufacturer: ").append(toIndentedString(riskdataBasketItemItemNrManufacturer)).append("\n"); - sb.append(" riskdataBasketItemItemNrProductTitle: ").append(toIndentedString(riskdataBasketItemItemNrProductTitle)).append("\n"); - sb.append(" riskdataBasketItemItemNrQuantity: ").append(toIndentedString(riskdataBasketItemItemNrQuantity)).append("\n"); - sb.append(" riskdataBasketItemItemNrReceiverEmail: ").append(toIndentedString(riskdataBasketItemItemNrReceiverEmail)).append("\n"); - sb.append(" riskdataBasketItemItemNrSize: ").append(toIndentedString(riskdataBasketItemItemNrSize)).append("\n"); - sb.append(" riskdataBasketItemItemNrSku: ").append(toIndentedString(riskdataBasketItemItemNrSku)).append("\n"); - sb.append(" riskdataBasketItemItemNrUpc: ").append(toIndentedString(riskdataBasketItemItemNrUpc)).append("\n"); - sb.append(" riskdataPromotionsPromotionItemNrPromotionCode: ").append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionCode)).append("\n"); - sb.append(" riskdataPromotionsPromotionItemNrPromotionDiscountAmount: ").append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionDiscountAmount)).append("\n"); - sb.append(" riskdataPromotionsPromotionItemNrPromotionDiscountCurrency: ").append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionDiscountCurrency)).append("\n"); - sb.append(" riskdataPromotionsPromotionItemNrPromotionDiscountPercentage: ").append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionDiscountPercentage)).append("\n"); - sb.append(" riskdataPromotionsPromotionItemNrPromotionName: ").append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionName)).append("\n"); - sb.append(" riskdataRiskProfileReference: ").append(toIndentedString(riskdataRiskProfileReference)).append("\n"); + sb.append(" riskdataCustomFieldName: ") + .append(toIndentedString(riskdataCustomFieldName)) + .append("\n"); + sb.append(" riskdataBasketItemItemNrAmountPerItem: ") + .append(toIndentedString(riskdataBasketItemItemNrAmountPerItem)) + .append("\n"); + sb.append(" riskdataBasketItemItemNrBrand: ") + .append(toIndentedString(riskdataBasketItemItemNrBrand)) + .append("\n"); + sb.append(" riskdataBasketItemItemNrCategory: ") + .append(toIndentedString(riskdataBasketItemItemNrCategory)) + .append("\n"); + sb.append(" riskdataBasketItemItemNrColor: ") + .append(toIndentedString(riskdataBasketItemItemNrColor)) + .append("\n"); + sb.append(" riskdataBasketItemItemNrCurrency: ") + .append(toIndentedString(riskdataBasketItemItemNrCurrency)) + .append("\n"); + sb.append(" riskdataBasketItemItemNrItemID: ") + .append(toIndentedString(riskdataBasketItemItemNrItemID)) + .append("\n"); + sb.append(" riskdataBasketItemItemNrManufacturer: ") + .append(toIndentedString(riskdataBasketItemItemNrManufacturer)) + .append("\n"); + sb.append(" riskdataBasketItemItemNrProductTitle: ") + .append(toIndentedString(riskdataBasketItemItemNrProductTitle)) + .append("\n"); + sb.append(" riskdataBasketItemItemNrQuantity: ") + .append(toIndentedString(riskdataBasketItemItemNrQuantity)) + .append("\n"); + sb.append(" riskdataBasketItemItemNrReceiverEmail: ") + .append(toIndentedString(riskdataBasketItemItemNrReceiverEmail)) + .append("\n"); + sb.append(" riskdataBasketItemItemNrSize: ") + .append(toIndentedString(riskdataBasketItemItemNrSize)) + .append("\n"); + sb.append(" riskdataBasketItemItemNrSku: ") + .append(toIndentedString(riskdataBasketItemItemNrSku)) + .append("\n"); + sb.append(" riskdataBasketItemItemNrUpc: ") + .append(toIndentedString(riskdataBasketItemItemNrUpc)) + .append("\n"); + sb.append(" riskdataPromotionsPromotionItemNrPromotionCode: ") + .append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionCode)) + .append("\n"); + sb.append(" riskdataPromotionsPromotionItemNrPromotionDiscountAmount: ") + .append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionDiscountAmount)) + .append("\n"); + sb.append(" riskdataPromotionsPromotionItemNrPromotionDiscountCurrency: ") + .append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionDiscountCurrency)) + .append("\n"); + sb.append(" riskdataPromotionsPromotionItemNrPromotionDiscountPercentage: ") + .append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionDiscountPercentage)) + .append("\n"); + sb.append(" riskdataPromotionsPromotionItemNrPromotionName: ") + .append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionName)) + .append("\n"); + sb.append(" riskdataRiskProfileReference: ") + .append(toIndentedString(riskdataRiskProfileReference)) + .append("\n"); sb.append(" riskdataSkipRisk: ").append(toIndentedString(riskdataSkipRisk)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -870,21 +1107,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalDataRisk given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataRisk - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataRisk + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalDataRisk */ public static AdditionalDataRisk fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataRisk.class); } -/** - * Convert an instance of AdditionalDataRisk to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalDataRisk to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataRiskStandalone.java b/src/main/java/com/adyen/model/checkout/AdditionalDataRiskStandalone.java index b1a522884..b3afd2db9 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataRiskStandalone.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataRiskStandalone.java @@ -2,31 +2,22 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AdditionalDataRiskStandalone - */ +/** AdditionalDataRiskStandalone */ @JsonPropertyOrder({ AdditionalDataRiskStandalone.JSON_PROPERTY_PAY_PAL_COUNTRY_CODE, AdditionalDataRiskStandalone.JSON_PROPERTY_PAY_PAL_EMAIL_ID, @@ -44,7 +35,6 @@ AdditionalDataRiskStandalone.JSON_PROPERTY_THREE_D_OFFERED, AdditionalDataRiskStandalone.JSON_PROPERTY_TOKEN_DATA_TYPE }) - public class AdditionalDataRiskStandalone { public static final String JSON_PROPERTY_PAY_PAL_COUNTRY_CODE = "PayPal.CountryCode"; private String payPalCountryCode; @@ -64,7 +54,8 @@ public class AdditionalDataRiskStandalone { public static final String JSON_PROPERTY_PAY_PAL_PHONE = "PayPal.Phone"; private String payPalPhone; - public static final String JSON_PROPERTY_PAY_PAL_PROTECTION_ELIGIBILITY = "PayPal.ProtectionEligibility"; + public static final String JSON_PROPERTY_PAY_PAL_PROTECTION_ELIGIBILITY = + "PayPal.ProtectionEligibility"; private String payPalProtectionEligibility; public static final String JSON_PROPERTY_PAY_PAL_TRANSACTION_ID = "PayPal.TransactionId"; @@ -91,13 +82,13 @@ public class AdditionalDataRiskStandalone { public static final String JSON_PROPERTY_TOKEN_DATA_TYPE = "tokenDataType"; private String tokenDataType; - public AdditionalDataRiskStandalone() { - } + public AdditionalDataRiskStandalone() {} /** * Shopper's country of residence in the form of ISO standard 3166 2-character country codes. * - * @param payPalCountryCode Shopper's country of residence in the form of ISO standard 3166 2-character country codes. + * @param payPalCountryCode Shopper's country of residence in the form of ISO standard 3166 + * 2-character country codes. * @return the current {@code AdditionalDataRiskStandalone} instance, allowing for method chaining */ public AdditionalDataRiskStandalone payPalCountryCode(String payPalCountryCode) { @@ -107,7 +98,9 @@ public AdditionalDataRiskStandalone payPalCountryCode(String payPalCountryCode) /** * Shopper's country of residence in the form of ISO standard 3166 2-character country codes. - * @return payPalCountryCode Shopper's country of residence in the form of ISO standard 3166 2-character country codes. + * + * @return payPalCountryCode Shopper's country of residence in the form of ISO standard 3166 + * 2-character country codes. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,7 +111,8 @@ public String getPayPalCountryCode() { /** * Shopper's country of residence in the form of ISO standard 3166 2-character country codes. * - * @param payPalCountryCode Shopper's country of residence in the form of ISO standard 3166 2-character country codes. + * @param payPalCountryCode Shopper's country of residence in the form of ISO standard 3166 + * 2-character country codes. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,6 +133,7 @@ public AdditionalDataRiskStandalone payPalEmailId(String payPalEmailId) { /** * Shopper's email. + * * @return payPalEmailId Shopper's email. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_EMAIL_ID) @@ -171,6 +166,7 @@ public AdditionalDataRiskStandalone payPalFirstName(String payPalFirstName) { /** * Shopper's first name. + * * @return payPalFirstName Shopper's first name. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_FIRST_NAME) @@ -203,6 +199,7 @@ public AdditionalDataRiskStandalone payPalLastName(String payPalLastName) { /** * Shopper's last name. + * * @return payPalLastName Shopper's last name. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_LAST_NAME) @@ -223,9 +220,11 @@ public void setPayPalLastName(String payPalLastName) { } /** - * Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. + * Unique PayPal Customer Account identification number. Character length and limitations: 13 + * single-byte alphanumeric characters. * - * @param payPalPayerId Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. + * @param payPalPayerId Unique PayPal Customer Account identification number. Character length and + * limitations: 13 single-byte alphanumeric characters. * @return the current {@code AdditionalDataRiskStandalone} instance, allowing for method chaining */ public AdditionalDataRiskStandalone payPalPayerId(String payPalPayerId) { @@ -234,8 +233,11 @@ public AdditionalDataRiskStandalone payPalPayerId(String payPalPayerId) { } /** - * Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. - * @return payPalPayerId Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. + * Unique PayPal Customer Account identification number. Character length and limitations: 13 + * single-byte alphanumeric characters. + * + * @return payPalPayerId Unique PayPal Customer Account identification number. Character length + * and limitations: 13 single-byte alphanumeric characters. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_PAYER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,9 +246,11 @@ public String getPayPalPayerId() { } /** - * Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. + * Unique PayPal Customer Account identification number. Character length and limitations: 13 + * single-byte alphanumeric characters. * - * @param payPalPayerId Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. + * @param payPalPayerId Unique PayPal Customer Account identification number. Character length and + * limitations: 13 single-byte alphanumeric characters. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_PAYER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -267,6 +271,7 @@ public AdditionalDataRiskStandalone payPalPhone(String payPalPhone) { /** * Shopper's phone number. + * * @return payPalPhone Shopper's phone number. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_PHONE) @@ -287,19 +292,35 @@ public void setPayPalPhone(String payPalPhone) { } /** - * Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy. + * Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy + * for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is + * protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — + * Merchant is not protected under the Seller Protection Policy. * - * @param payPalProtectionEligibility Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy. + * @param payPalProtectionEligibility Allowed values: * **Eligible** — Merchant is protected by + * PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * + * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for + * Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection + * Policy. * @return the current {@code AdditionalDataRiskStandalone} instance, allowing for method chaining */ - public AdditionalDataRiskStandalone payPalProtectionEligibility(String payPalProtectionEligibility) { + public AdditionalDataRiskStandalone payPalProtectionEligibility( + String payPalProtectionEligibility) { this.payPalProtectionEligibility = payPalProtectionEligibility; return this; } /** - * Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy. - * @return payPalProtectionEligibility Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy. + * Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy + * for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is + * protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — + * Merchant is not protected under the Seller Protection Policy. + * + * @return payPalProtectionEligibility Allowed values: * **Eligible** — Merchant is protected by + * PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * + * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for + * Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection + * Policy. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_PROTECTION_ELIGIBILITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -308,9 +329,16 @@ public String getPayPalProtectionEligibility() { } /** - * Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy. + * Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy + * for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is + * protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — + * Merchant is not protected under the Seller Protection Policy. * - * @param payPalProtectionEligibility Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy. + * @param payPalProtectionEligibility Allowed values: * **Eligible** — Merchant is protected by + * PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * + * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for + * Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection + * Policy. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_PROTECTION_ELIGIBILITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -331,6 +359,7 @@ public AdditionalDataRiskStandalone payPalTransactionId(String payPalTransaction /** * Unique transaction ID of the payment. + * * @return payPalTransactionId Unique transaction ID of the payment. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_TRANSACTION_ID) @@ -363,6 +392,7 @@ public AdditionalDataRiskStandalone avsResultRaw(String avsResultRaw) { /** * Raw AVS result received from the acquirer, where available. Example: D + * * @return avsResultRaw Raw AVS result received from the acquirer, where available. Example: D */ @JsonProperty(JSON_PROPERTY_AVS_RESULT_RAW) @@ -383,9 +413,13 @@ public void setAvsResultRaw(String avsResultRaw) { } /** - * The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/online-payments/tokenization). + * The Bank Identification Number of a credit card, which is the first six digits of a card + * number. Required for [tokenized card + * request](https://docs.adyen.com/online-payments/tokenization). * - * @param bin The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/online-payments/tokenization). + * @param bin The Bank Identification Number of a credit card, which is the first six digits of a + * card number. Required for [tokenized card + * request](https://docs.adyen.com/online-payments/tokenization). * @return the current {@code AdditionalDataRiskStandalone} instance, allowing for method chaining */ public AdditionalDataRiskStandalone bin(String bin) { @@ -394,8 +428,13 @@ public AdditionalDataRiskStandalone bin(String bin) { } /** - * The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/online-payments/tokenization). - * @return bin The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/online-payments/tokenization). + * The Bank Identification Number of a credit card, which is the first six digits of a card + * number. Required for [tokenized card + * request](https://docs.adyen.com/online-payments/tokenization). + * + * @return bin The Bank Identification Number of a credit card, which is the first six digits of a + * card number. Required for [tokenized card + * request](https://docs.adyen.com/online-payments/tokenization). */ @JsonProperty(JSON_PROPERTY_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -404,9 +443,13 @@ public String getBin() { } /** - * The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/online-payments/tokenization). + * The Bank Identification Number of a credit card, which is the first six digits of a card + * number. Required for [tokenized card + * request](https://docs.adyen.com/online-payments/tokenization). * - * @param bin The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/online-payments/tokenization). + * @param bin The Bank Identification Number of a credit card, which is the first six digits of a + * card number. Required for [tokenized card + * request](https://docs.adyen.com/online-payments/tokenization). */ @JsonProperty(JSON_PROPERTY_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -427,6 +470,7 @@ public AdditionalDataRiskStandalone cvcResultRaw(String cvcResultRaw) { /** * Raw CVC result received from the acquirer, where available. Example: 1 + * * @return cvcResultRaw Raw CVC result received from the acquirer, where available. Example: 1 */ @JsonProperty(JSON_PROPERTY_CVC_RESULT_RAW) @@ -459,6 +503,7 @@ public AdditionalDataRiskStandalone riskToken(String riskToken) { /** * Unique identifier or token for the shopper's card details. + * * @return riskToken Unique identifier or token for the shopper's card details. */ @JsonProperty(JSON_PROPERTY_RISK_TOKEN) @@ -479,9 +524,11 @@ public void setRiskToken(String riskToken) { } /** - * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: + * true * - * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed + * on this payment. Example: true * @return the current {@code AdditionalDataRiskStandalone} instance, allowing for method chaining */ public AdditionalDataRiskStandalone threeDAuthenticated(String threeDAuthenticated) { @@ -490,8 +537,11 @@ public AdditionalDataRiskStandalone threeDAuthenticated(String threeDAuthenticat } /** - * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true - * @return threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: + * true + * + * @return threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed + * on this payment. Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -500,9 +550,11 @@ public String getThreeDAuthenticated() { } /** - * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: + * true * - * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed + * on this payment. Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -513,7 +565,8 @@ public void setThreeDAuthenticated(String threeDAuthenticated) { /** * A Boolean value indicating whether 3DS was offered for this payment. Example: true * - * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. Example: true + * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. + * Example: true * @return the current {@code AdditionalDataRiskStandalone} instance, allowing for method chaining */ public AdditionalDataRiskStandalone threeDOffered(String threeDOffered) { @@ -523,7 +576,9 @@ public AdditionalDataRiskStandalone threeDOffered(String threeDOffered) { /** * A Boolean value indicating whether 3DS was offered for this payment. Example: true - * @return threeDOffered A Boolean value indicating whether 3DS was offered for this payment. Example: true + * + * @return threeDOffered A Boolean value indicating whether 3DS was offered for this payment. + * Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -534,7 +589,8 @@ public String getThreeDOffered() { /** * A Boolean value indicating whether 3DS was offered for this payment. Example: true * - * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. Example: true + * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. + * Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -545,7 +601,8 @@ public void setThreeDOffered(String threeDOffered) { /** * Required for PayPal payments only. The only supported value is: **paypal**. * - * @param tokenDataType Required for PayPal payments only. The only supported value is: **paypal**. + * @param tokenDataType Required for PayPal payments only. The only supported value is: + * **paypal**. * @return the current {@code AdditionalDataRiskStandalone} instance, allowing for method chaining */ public AdditionalDataRiskStandalone tokenDataType(String tokenDataType) { @@ -555,7 +612,9 @@ public AdditionalDataRiskStandalone tokenDataType(String tokenDataType) { /** * Required for PayPal payments only. The only supported value is: **paypal**. - * @return tokenDataType Required for PayPal payments only. The only supported value is: **paypal**. + * + * @return tokenDataType Required for PayPal payments only. The only supported value is: + * **paypal**. */ @JsonProperty(JSON_PROPERTY_TOKEN_DATA_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -566,7 +625,8 @@ public String getTokenDataType() { /** * Required for PayPal payments only. The only supported value is: **paypal**. * - * @param tokenDataType Required for PayPal payments only. The only supported value is: **paypal**. + * @param tokenDataType Required for PayPal payments only. The only supported value is: + * **paypal**. */ @JsonProperty(JSON_PROPERTY_TOKEN_DATA_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -574,9 +634,7 @@ public void setTokenDataType(String tokenDataType) { this.tokenDataType = tokenDataType; } - /** - * Return true if this AdditionalDataRiskStandalone object is equal to o. - */ + /** Return true if this AdditionalDataRiskStandalone object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -586,26 +644,45 @@ public boolean equals(Object o) { return false; } AdditionalDataRiskStandalone additionalDataRiskStandalone = (AdditionalDataRiskStandalone) o; - return Objects.equals(this.payPalCountryCode, additionalDataRiskStandalone.payPalCountryCode) && - Objects.equals(this.payPalEmailId, additionalDataRiskStandalone.payPalEmailId) && - Objects.equals(this.payPalFirstName, additionalDataRiskStandalone.payPalFirstName) && - Objects.equals(this.payPalLastName, additionalDataRiskStandalone.payPalLastName) && - Objects.equals(this.payPalPayerId, additionalDataRiskStandalone.payPalPayerId) && - Objects.equals(this.payPalPhone, additionalDataRiskStandalone.payPalPhone) && - Objects.equals(this.payPalProtectionEligibility, additionalDataRiskStandalone.payPalProtectionEligibility) && - Objects.equals(this.payPalTransactionId, additionalDataRiskStandalone.payPalTransactionId) && - Objects.equals(this.avsResultRaw, additionalDataRiskStandalone.avsResultRaw) && - Objects.equals(this.bin, additionalDataRiskStandalone.bin) && - Objects.equals(this.cvcResultRaw, additionalDataRiskStandalone.cvcResultRaw) && - Objects.equals(this.riskToken, additionalDataRiskStandalone.riskToken) && - Objects.equals(this.threeDAuthenticated, additionalDataRiskStandalone.threeDAuthenticated) && - Objects.equals(this.threeDOffered, additionalDataRiskStandalone.threeDOffered) && - Objects.equals(this.tokenDataType, additionalDataRiskStandalone.tokenDataType); + return Objects.equals(this.payPalCountryCode, additionalDataRiskStandalone.payPalCountryCode) + && Objects.equals(this.payPalEmailId, additionalDataRiskStandalone.payPalEmailId) + && Objects.equals(this.payPalFirstName, additionalDataRiskStandalone.payPalFirstName) + && Objects.equals(this.payPalLastName, additionalDataRiskStandalone.payPalLastName) + && Objects.equals(this.payPalPayerId, additionalDataRiskStandalone.payPalPayerId) + && Objects.equals(this.payPalPhone, additionalDataRiskStandalone.payPalPhone) + && Objects.equals( + this.payPalProtectionEligibility, + additionalDataRiskStandalone.payPalProtectionEligibility) + && Objects.equals( + this.payPalTransactionId, additionalDataRiskStandalone.payPalTransactionId) + && Objects.equals(this.avsResultRaw, additionalDataRiskStandalone.avsResultRaw) + && Objects.equals(this.bin, additionalDataRiskStandalone.bin) + && Objects.equals(this.cvcResultRaw, additionalDataRiskStandalone.cvcResultRaw) + && Objects.equals(this.riskToken, additionalDataRiskStandalone.riskToken) + && Objects.equals( + this.threeDAuthenticated, additionalDataRiskStandalone.threeDAuthenticated) + && Objects.equals(this.threeDOffered, additionalDataRiskStandalone.threeDOffered) + && Objects.equals(this.tokenDataType, additionalDataRiskStandalone.tokenDataType); } @Override public int hashCode() { - return Objects.hash(payPalCountryCode, payPalEmailId, payPalFirstName, payPalLastName, payPalPayerId, payPalPhone, payPalProtectionEligibility, payPalTransactionId, avsResultRaw, bin, cvcResultRaw, riskToken, threeDAuthenticated, threeDOffered, tokenDataType); + return Objects.hash( + payPalCountryCode, + payPalEmailId, + payPalFirstName, + payPalLastName, + payPalPayerId, + payPalPhone, + payPalProtectionEligibility, + payPalTransactionId, + avsResultRaw, + bin, + cvcResultRaw, + riskToken, + threeDAuthenticated, + threeDOffered, + tokenDataType); } @Override @@ -618,13 +695,19 @@ public String toString() { sb.append(" payPalLastName: ").append(toIndentedString(payPalLastName)).append("\n"); sb.append(" payPalPayerId: ").append(toIndentedString(payPalPayerId)).append("\n"); sb.append(" payPalPhone: ").append(toIndentedString(payPalPhone)).append("\n"); - sb.append(" payPalProtectionEligibility: ").append(toIndentedString(payPalProtectionEligibility)).append("\n"); - sb.append(" payPalTransactionId: ").append(toIndentedString(payPalTransactionId)).append("\n"); + sb.append(" payPalProtectionEligibility: ") + .append(toIndentedString(payPalProtectionEligibility)) + .append("\n"); + sb.append(" payPalTransactionId: ") + .append(toIndentedString(payPalTransactionId)) + .append("\n"); sb.append(" avsResultRaw: ").append(toIndentedString(avsResultRaw)).append("\n"); sb.append(" bin: ").append(toIndentedString(bin)).append("\n"); sb.append(" cvcResultRaw: ").append(toIndentedString(cvcResultRaw)).append("\n"); sb.append(" riskToken: ").append(toIndentedString(riskToken)).append("\n"); - sb.append(" threeDAuthenticated: ").append(toIndentedString(threeDAuthenticated)).append("\n"); + sb.append(" threeDAuthenticated: ") + .append(toIndentedString(threeDAuthenticated)) + .append("\n"); sb.append(" threeDOffered: ").append(toIndentedString(threeDOffered)).append("\n"); sb.append(" tokenDataType: ").append(toIndentedString(tokenDataType)).append("\n"); sb.append("}"); @@ -632,8 +715,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -642,21 +724,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalDataRiskStandalone given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataRiskStandalone - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataRiskStandalone + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalDataRiskStandalone */ - public static AdditionalDataRiskStandalone fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalDataRiskStandalone fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataRiskStandalone.class); } -/** - * Convert an instance of AdditionalDataRiskStandalone to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalDataRiskStandalone to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataSubMerchant.java b/src/main/java/com/adyen/model/checkout/AdditionalDataSubMerchant.java index 07f66e2fb..ba1997bfb 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataSubMerchant.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataSubMerchant.java @@ -2,31 +2,22 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AdditionalDataSubMerchant - */ +/** AdditionalDataSubMerchant */ @JsonPropertyOrder({ AdditionalDataSubMerchant.JSON_PROPERTY_SUB_MERCHANT_NUMBER_OF_SUB_SELLERS, AdditionalDataSubMerchant.JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_CITY, @@ -41,61 +32,79 @@ AdditionalDataSubMerchant.JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STREET, AdditionalDataSubMerchant.JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_TAX_ID }) - public class AdditionalDataSubMerchant { - public static final String JSON_PROPERTY_SUB_MERCHANT_NUMBER_OF_SUB_SELLERS = "subMerchant.numberOfSubSellers"; + public static final String JSON_PROPERTY_SUB_MERCHANT_NUMBER_OF_SUB_SELLERS = + "subMerchant.numberOfSubSellers"; private String subMerchantNumberOfSubSellers; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_CITY = "subMerchant.subSeller[subSellerNr].city"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_CITY = + "subMerchant.subSeller[subSellerNr].city"; private String subMerchantSubSellerSubSellerNrCity; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_COUNTRY = "subMerchant.subSeller[subSellerNr].country"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_COUNTRY = + "subMerchant.subSeller[subSellerNr].country"; private String subMerchantSubSellerSubSellerNrCountry; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_EMAIL = "subMerchant.subSeller[subSellerNr].email"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_EMAIL = + "subMerchant.subSeller[subSellerNr].email"; private String subMerchantSubSellerSubSellerNrEmail; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_ID = "subMerchant.subSeller[subSellerNr].id"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_ID = + "subMerchant.subSeller[subSellerNr].id"; private String subMerchantSubSellerSubSellerNrId; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_MCC = "subMerchant.subSeller[subSellerNr].mcc"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_MCC = + "subMerchant.subSeller[subSellerNr].mcc"; private String subMerchantSubSellerSubSellerNrMcc; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_NAME = "subMerchant.subSeller[subSellerNr].name"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_NAME = + "subMerchant.subSeller[subSellerNr].name"; private String subMerchantSubSellerSubSellerNrName; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_PHONE_NUMBER = "subMerchant.subSeller[subSellerNr].phoneNumber"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_PHONE_NUMBER = + "subMerchant.subSeller[subSellerNr].phoneNumber"; private String subMerchantSubSellerSubSellerNrPhoneNumber; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_POSTAL_CODE = "subMerchant.subSeller[subSellerNr].postalCode"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_POSTAL_CODE = + "subMerchant.subSeller[subSellerNr].postalCode"; private String subMerchantSubSellerSubSellerNrPostalCode; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STATE = "subMerchant.subSeller[subSellerNr].state"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STATE = + "subMerchant.subSeller[subSellerNr].state"; private String subMerchantSubSellerSubSellerNrState; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STREET = "subMerchant.subSeller[subSellerNr].street"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STREET = + "subMerchant.subSeller[subSellerNr].street"; private String subMerchantSubSellerSubSellerNrStreet; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_TAX_ID = "subMerchant.subSeller[subSellerNr].taxId"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_TAX_ID = + "subMerchant.subSeller[subSellerNr].taxId"; private String subMerchantSubSellerSubSellerNrTaxId; - public AdditionalDataSubMerchant() { - } + public AdditionalDataSubMerchant() {} /** - * Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**. + * Required for transactions performed by registered payment facilitators. Indicates the number of + * sub-merchants contained in the request. For example, **3**. * - * @param subMerchantNumberOfSubSellers Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**. + * @param subMerchantNumberOfSubSellers Required for transactions performed by registered payment + * facilitators. Indicates the number of sub-merchants contained in the request. For example, + * **3**. * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantNumberOfSubSellers(String subMerchantNumberOfSubSellers) { + public AdditionalDataSubMerchant subMerchantNumberOfSubSellers( + String subMerchantNumberOfSubSellers) { this.subMerchantNumberOfSubSellers = subMerchantNumberOfSubSellers; return this; } /** - * Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**. - * @return subMerchantNumberOfSubSellers Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**. + * Required for transactions performed by registered payment facilitators. Indicates the number of + * sub-merchants contained in the request. For example, **3**. + * + * @return subMerchantNumberOfSubSellers Required for transactions performed by registered payment + * facilitators. Indicates the number of sub-merchants contained in the request. For example, + * **3**. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_NUMBER_OF_SUB_SELLERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,9 +113,12 @@ public String getSubMerchantNumberOfSubSellers() { } /** - * Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**. + * Required for transactions performed by registered payment facilitators. Indicates the number of + * sub-merchants contained in the request. For example, **3**. * - * @param subMerchantNumberOfSubSellers Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**. + * @param subMerchantNumberOfSubSellers Required for transactions performed by registered payment + * facilitators. Indicates the number of sub-merchants contained in the request. For example, + * **3**. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_NUMBER_OF_SUB_SELLERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,19 +127,27 @@ public void setSubMerchantNumberOfSubSellers(String subMerchantNumberOfSubSeller } /** - * Required for transactions performed by registered payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters + * Required for transactions performed by registered payment facilitators. The city of the + * sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters * - * @param subMerchantSubSellerSubSellerNrCity Required for transactions performed by registered payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters + * @param subMerchantSubSellerSubSellerNrCity Required for transactions performed by registered + * payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * + * Maximum length: 13 characters * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrCity(String subMerchantSubSellerSubSellerNrCity) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrCity( + String subMerchantSubSellerSubSellerNrCity) { this.subMerchantSubSellerSubSellerNrCity = subMerchantSubSellerSubSellerNrCity; return this; } /** - * Required for transactions performed by registered payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters - * @return subMerchantSubSellerSubSellerNrCity Required for transactions performed by registered payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters + * Required for transactions performed by registered payment facilitators. The city of the + * sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters + * + * @return subMerchantSubSellerSubSellerNrCity Required for transactions performed by registered + * payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * + * Maximum length: 13 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,9 +156,12 @@ public String getSubMerchantSubSellerSubSellerNrCity() { } /** - * Required for transactions performed by registered payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters + * Required for transactions performed by registered payment facilitators. The city of the + * sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters * - * @param subMerchantSubSellerSubSellerNrCity Required for transactions performed by registered payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters + * @param subMerchantSubSellerSubSellerNrCity Required for transactions performed by registered + * payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * + * Maximum length: 13 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,19 +170,31 @@ public void setSubMerchantSubSellerSubSellerNrCity(String subMerchantSubSellerSu } /** - * Required for transactions performed by registered payment facilitators. The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * Required for transactions performed by registered payment facilitators. The three-letter + * country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO + * 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters * - * @param subMerchantSubSellerSubSellerNrCountry Required for transactions performed by registered payment facilitators. The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * @param subMerchantSubSellerSubSellerNrCountry Required for transactions performed by registered + * payment facilitators. The three-letter country code of the sub-merchant's address. For + * example, **BRA** for Brazil. * Format: [ISO 3166-1 + * alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrCountry(String subMerchantSubSellerSubSellerNrCountry) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrCountry( + String subMerchantSubSellerSubSellerNrCountry) { this.subMerchantSubSellerSubSellerNrCountry = subMerchantSubSellerSubSellerNrCountry; return this; } /** - * Required for transactions performed by registered payment facilitators. The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters - * @return subMerchantSubSellerSubSellerNrCountry Required for transactions performed by registered payment facilitators. The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * Required for transactions performed by registered payment facilitators. The three-letter + * country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO + * 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * + * @return subMerchantSubSellerSubSellerNrCountry Required for transactions performed by + * registered payment facilitators. The three-letter country code of the sub-merchant's + * address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 + * alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,30 +203,44 @@ public String getSubMerchantSubSellerSubSellerNrCountry() { } /** - * Required for transactions performed by registered payment facilitators. The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * Required for transactions performed by registered payment facilitators. The three-letter + * country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO + * 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters * - * @param subMerchantSubSellerSubSellerNrCountry Required for transactions performed by registered payment facilitators. The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * @param subMerchantSubSellerSubSellerNrCountry Required for transactions performed by registered + * payment facilitators. The three-letter country code of the sub-merchant's address. For + * example, **BRA** for Brazil. * Format: [ISO 3166-1 + * alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubMerchantSubSellerSubSellerNrCountry(String subMerchantSubSellerSubSellerNrCountry) { + public void setSubMerchantSubSellerSubSellerNrCountry( + String subMerchantSubSellerSubSellerNrCountry) { this.subMerchantSubSellerSubSellerNrCountry = subMerchantSubSellerSubSellerNrCountry; } /** - * Required for transactions performed by registered payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters + * Required for transactions performed by registered payment facilitators. The email address of + * the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters * - * @param subMerchantSubSellerSubSellerNrEmail Required for transactions performed by registered payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters + * @param subMerchantSubSellerSubSellerNrEmail Required for transactions performed by registered + * payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * + * Maximum length: 40 characters * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrEmail(String subMerchantSubSellerSubSellerNrEmail) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrEmail( + String subMerchantSubSellerSubSellerNrEmail) { this.subMerchantSubSellerSubSellerNrEmail = subMerchantSubSellerSubSellerNrEmail; return this; } /** - * Required for transactions performed by registered payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters - * @return subMerchantSubSellerSubSellerNrEmail Required for transactions performed by registered payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters + * Required for transactions performed by registered payment facilitators. The email address of + * the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters + * + * @return subMerchantSubSellerSubSellerNrEmail Required for transactions performed by registered + * payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * + * Maximum length: 40 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,9 +249,12 @@ public String getSubMerchantSubSellerSubSellerNrEmail() { } /** - * Required for transactions performed by registered payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters + * Required for transactions performed by registered payment facilitators. The email address of + * the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters * - * @param subMerchantSubSellerSubSellerNrEmail Required for transactions performed by registered payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters + * @param subMerchantSubSellerSubSellerNrEmail Required for transactions performed by registered + * payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * + * Maximum length: 40 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,19 +263,31 @@ public void setSubMerchantSubSellerSubSellerNrEmail(String subMerchantSubSellerS } /** - * Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * Required for transactions performed by registered payment facilitators. A unique identifier + * that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: + * Alphanumeric * Maximum length: 15 characters * - * @param subMerchantSubSellerSubSellerNrId Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * @param subMerchantSubSellerSubSellerNrId Required for transactions performed by registered + * payment facilitators. A unique identifier that you create for the sub-merchant, used by + * schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 + * characters * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrId(String subMerchantSubSellerSubSellerNrId) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrId( + String subMerchantSubSellerSubSellerNrId) { this.subMerchantSubSellerSubSellerNrId = subMerchantSubSellerSubSellerNrId; return this; } /** - * Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters - * @return subMerchantSubSellerSubSellerNrId Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * Required for transactions performed by registered payment facilitators. A unique identifier + * that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: + * Alphanumeric * Maximum length: 15 characters + * + * @return subMerchantSubSellerSubSellerNrId Required for transactions performed by registered + * payment facilitators. A unique identifier that you create for the sub-merchant, used by + * schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 + * characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,9 +296,14 @@ public String getSubMerchantSubSellerSubSellerNrId() { } /** - * Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * Required for transactions performed by registered payment facilitators. A unique identifier + * that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: + * Alphanumeric * Maximum length: 15 characters * - * @param subMerchantSubSellerSubSellerNrId Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * @param subMerchantSubSellerSubSellerNrId Required for transactions performed by registered + * payment facilitators. A unique identifier that you create for the sub-merchant, used by + * schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 + * characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -243,19 +312,27 @@ public void setSubMerchantSubSellerSubSellerNrId(String subMerchantSubSellerSubS } /** - * Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * Required for transactions performed by registered payment facilitators. The sub-merchant's + * 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits * - * @param subMerchantSubSellerSubSellerNrMcc Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * @param subMerchantSubSellerSubSellerNrMcc Required for transactions performed by registered + * payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * + * Format: Numeric * Fixed length: 4 digits * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrMcc(String subMerchantSubSellerSubSellerNrMcc) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrMcc( + String subMerchantSubSellerSubSellerNrMcc) { this.subMerchantSubSellerSubSellerNrMcc = subMerchantSubSellerSubSellerNrMcc; return this; } /** - * Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits - * @return subMerchantSubSellerSubSellerNrMcc Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * Required for transactions performed by registered payment facilitators. The sub-merchant's + * 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * + * @return subMerchantSubSellerSubSellerNrMcc Required for transactions performed by registered + * payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * + * Format: Numeric * Fixed length: 4 digits */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -264,9 +341,12 @@ public String getSubMerchantSubSellerSubSellerNrMcc() { } /** - * Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * Required for transactions performed by registered payment facilitators. The sub-merchant's + * 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits * - * @param subMerchantSubSellerSubSellerNrMcc Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * @param subMerchantSubSellerSubSellerNrMcc Required for transactions performed by registered + * payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * + * Format: Numeric * Fixed length: 4 digits */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -275,19 +355,35 @@ public void setSubMerchantSubSellerSubSellerNrMcc(String subMerchantSubSellerSub } /** - * Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters + * Required for transactions performed by registered payment facilitators. The name of the + * sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement + * that will appear in the card statement. Exception: for acquirers in Brazil, this value does not + * overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters * - * @param subMerchantSubSellerSubSellerNrName Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters + * @param subMerchantSubSellerSubSellerNrName Required for transactions performed by registered + * payment facilitators. The name of the sub-merchant. Based on scheme specifications, this + * value will overwrite the shopper statement that will appear in the card statement. + * Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * + * Format: Alphanumeric * Maximum length: 22 characters * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrName(String subMerchantSubSellerSubSellerNrName) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrName( + String subMerchantSubSellerSubSellerNrName) { this.subMerchantSubSellerSubSellerNrName = subMerchantSubSellerSubSellerNrName; return this; } /** - * Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters - * @return subMerchantSubSellerSubSellerNrName Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters + * Required for transactions performed by registered payment facilitators. The name of the + * sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement + * that will appear in the card statement. Exception: for acquirers in Brazil, this value does not + * overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters + * + * @return subMerchantSubSellerSubSellerNrName Required for transactions performed by registered + * payment facilitators. The name of the sub-merchant. Based on scheme specifications, this + * value will overwrite the shopper statement that will appear in the card statement. + * Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * + * Format: Alphanumeric * Maximum length: 22 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -296,9 +392,16 @@ public String getSubMerchantSubSellerSubSellerNrName() { } /** - * Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters + * Required for transactions performed by registered payment facilitators. The name of the + * sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement + * that will appear in the card statement. Exception: for acquirers in Brazil, this value does not + * overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters * - * @param subMerchantSubSellerSubSellerNrName Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters + * @param subMerchantSubSellerSubSellerNrName Required for transactions performed by registered + * payment facilitators. The name of the sub-merchant. Based on scheme specifications, this + * value will overwrite the shopper statement that will appear in the card statement. + * Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * + * Format: Alphanumeric * Maximum length: 22 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -307,19 +410,27 @@ public void setSubMerchantSubSellerSubSellerNrName(String subMerchantSubSellerSu } /** - * Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * Required for transactions performed by registered payment facilitators. The phone number of the + * sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters * - * @param subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * @param subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by + * registered payment facilitators. The phone number of the sub-merchant.* Format: + * Alphanumeric * Maximum length: 20 characters * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrPhoneNumber(String subMerchantSubSellerSubSellerNrPhoneNumber) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrPhoneNumber( + String subMerchantSubSellerSubSellerNrPhoneNumber) { this.subMerchantSubSellerSubSellerNrPhoneNumber = subMerchantSubSellerSubSellerNrPhoneNumber; return this; } /** - * Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters - * @return subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * Required for transactions performed by registered payment facilitators. The phone number of the + * sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * + * @return subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by + * registered payment facilitators. The phone number of the sub-merchant.* Format: + * Alphanumeric * Maximum length: 20 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -328,30 +439,42 @@ public String getSubMerchantSubSellerSubSellerNrPhoneNumber() { } /** - * Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * Required for transactions performed by registered payment facilitators. The phone number of the + * sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters * - * @param subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * @param subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by + * registered payment facilitators. The phone number of the sub-merchant.* Format: + * Alphanumeric * Maximum length: 20 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubMerchantSubSellerSubSellerNrPhoneNumber(String subMerchantSubSellerSubSellerNrPhoneNumber) { + public void setSubMerchantSubSellerSubSellerNrPhoneNumber( + String subMerchantSubSellerSubSellerNrPhoneNumber) { this.subMerchantSubSellerSubSellerNrPhoneNumber = subMerchantSubSellerSubSellerNrPhoneNumber; } /** - * Required for transactions performed by registered payment facilitators. The postal code of the sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits + * Required for transactions performed by registered payment facilitators. The postal code of the + * sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits * - * @param subMerchantSubSellerSubSellerNrPostalCode Required for transactions performed by registered payment facilitators. The postal code of the sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits + * @param subMerchantSubSellerSubSellerNrPostalCode Required for transactions performed by + * registered payment facilitators. The postal code of the sub-merchant's address, without + * dashes. * Format: Numeric * Fixed length: 8 digits * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrPostalCode(String subMerchantSubSellerSubSellerNrPostalCode) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrPostalCode( + String subMerchantSubSellerSubSellerNrPostalCode) { this.subMerchantSubSellerSubSellerNrPostalCode = subMerchantSubSellerSubSellerNrPostalCode; return this; } /** - * Required for transactions performed by registered payment facilitators. The postal code of the sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits - * @return subMerchantSubSellerSubSellerNrPostalCode Required for transactions performed by registered payment facilitators. The postal code of the sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits + * Required for transactions performed by registered payment facilitators. The postal code of the + * sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits + * + * @return subMerchantSubSellerSubSellerNrPostalCode Required for transactions performed by + * registered payment facilitators. The postal code of the sub-merchant's address, without + * dashes. * Format: Numeric * Fixed length: 8 digits */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -360,30 +483,44 @@ public String getSubMerchantSubSellerSubSellerNrPostalCode() { } /** - * Required for transactions performed by registered payment facilitators. The postal code of the sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits + * Required for transactions performed by registered payment facilitators. The postal code of the + * sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits * - * @param subMerchantSubSellerSubSellerNrPostalCode Required for transactions performed by registered payment facilitators. The postal code of the sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits + * @param subMerchantSubSellerSubSellerNrPostalCode Required for transactions performed by + * registered payment facilitators. The postal code of the sub-merchant's address, without + * dashes. * Format: Numeric * Fixed length: 8 digits */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubMerchantSubSellerSubSellerNrPostalCode(String subMerchantSubSellerSubSellerNrPostalCode) { + public void setSubMerchantSubSellerSubSellerNrPostalCode( + String subMerchantSubSellerSubSellerNrPostalCode) { this.subMerchantSubSellerSubSellerNrPostalCode = subMerchantSubSellerSubSellerNrPostalCode; } /** - * Required for transactions performed by registered payment facilitators. The state code of the sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum length: 2 characters + * Required for transactions performed by registered payment facilitators. The state code of the + * sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum + * length: 2 characters * - * @param subMerchantSubSellerSubSellerNrState Required for transactions performed by registered payment facilitators. The state code of the sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum length: 2 characters + * @param subMerchantSubSellerSubSellerNrState Required for transactions performed by registered + * payment facilitators. The state code of the sub-merchant's address, if applicable to + * the country. * Format: Alphanumeric * Maximum length: 2 characters * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrState(String subMerchantSubSellerSubSellerNrState) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrState( + String subMerchantSubSellerSubSellerNrState) { this.subMerchantSubSellerSubSellerNrState = subMerchantSubSellerSubSellerNrState; return this; } /** - * Required for transactions performed by registered payment facilitators. The state code of the sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum length: 2 characters - * @return subMerchantSubSellerSubSellerNrState Required for transactions performed by registered payment facilitators. The state code of the sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum length: 2 characters + * Required for transactions performed by registered payment facilitators. The state code of the + * sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum + * length: 2 characters + * + * @return subMerchantSubSellerSubSellerNrState Required for transactions performed by registered + * payment facilitators. The state code of the sub-merchant's address, if applicable to + * the country. * Format: Alphanumeric * Maximum length: 2 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -392,9 +529,13 @@ public String getSubMerchantSubSellerSubSellerNrState() { } /** - * Required for transactions performed by registered payment facilitators. The state code of the sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum length: 2 characters + * Required for transactions performed by registered payment facilitators. The state code of the + * sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum + * length: 2 characters * - * @param subMerchantSubSellerSubSellerNrState Required for transactions performed by registered payment facilitators. The state code of the sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum length: 2 characters + * @param subMerchantSubSellerSubSellerNrState Required for transactions performed by registered + * payment facilitators. The state code of the sub-merchant's address, if applicable to + * the country. * Format: Alphanumeric * Maximum length: 2 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -403,19 +544,29 @@ public void setSubMerchantSubSellerSubSellerNrState(String subMerchantSubSellerS } /** - * Required for transactions performed by registered payment facilitators. The street name and house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 characters + * Required for transactions performed by registered payment facilitators. The street name and + * house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 + * characters * - * @param subMerchantSubSellerSubSellerNrStreet Required for transactions performed by registered payment facilitators. The street name and house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 characters + * @param subMerchantSubSellerSubSellerNrStreet Required for transactions performed by registered + * payment facilitators. The street name and house number of the sub-merchant's address. * + * Format: Alphanumeric * Maximum length: 60 characters * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrStreet(String subMerchantSubSellerSubSellerNrStreet) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrStreet( + String subMerchantSubSellerSubSellerNrStreet) { this.subMerchantSubSellerSubSellerNrStreet = subMerchantSubSellerSubSellerNrStreet; return this; } /** - * Required for transactions performed by registered payment facilitators. The street name and house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 characters - * @return subMerchantSubSellerSubSellerNrStreet Required for transactions performed by registered payment facilitators. The street name and house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 characters + * Required for transactions performed by registered payment facilitators. The street name and + * house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 + * characters + * + * @return subMerchantSubSellerSubSellerNrStreet Required for transactions performed by registered + * payment facilitators. The street name and house number of the sub-merchant's address. * + * Format: Alphanumeric * Maximum length: 60 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -424,30 +575,43 @@ public String getSubMerchantSubSellerSubSellerNrStreet() { } /** - * Required for transactions performed by registered payment facilitators. The street name and house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 characters + * Required for transactions performed by registered payment facilitators. The street name and + * house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 + * characters * - * @param subMerchantSubSellerSubSellerNrStreet Required for transactions performed by registered payment facilitators. The street name and house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 characters + * @param subMerchantSubSellerSubSellerNrStreet Required for transactions performed by registered + * payment facilitators. The street name and house number of the sub-merchant's address. * + * Format: Alphanumeric * Maximum length: 60 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubMerchantSubSellerSubSellerNrStreet(String subMerchantSubSellerSubSellerNrStreet) { + public void setSubMerchantSubSellerSubSellerNrStreet( + String subMerchantSubSellerSubSellerNrStreet) { this.subMerchantSubSellerSubSellerNrStreet = subMerchantSubSellerSubSellerNrStreet; } /** - * Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * Required for transactions performed by registered payment facilitators. The tax ID of the + * sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ * - * @param subMerchantSubSellerSubSellerNrTaxId Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * @param subMerchantSubSellerSubSellerNrTaxId Required for transactions performed by registered + * payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 + * digits for the CPF or 14 digits for the CNPJ * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrTaxId(String subMerchantSubSellerSubSellerNrTaxId) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrTaxId( + String subMerchantSubSellerSubSellerNrTaxId) { this.subMerchantSubSellerSubSellerNrTaxId = subMerchantSubSellerSubSellerNrTaxId; return this; } /** - * Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ - * @return subMerchantSubSellerSubSellerNrTaxId Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * Required for transactions performed by registered payment facilitators. The tax ID of the + * sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * + * @return subMerchantSubSellerSubSellerNrTaxId Required for transactions performed by registered + * payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 + * digits for the CPF or 14 digits for the CNPJ */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_TAX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -456,9 +620,12 @@ public String getSubMerchantSubSellerSubSellerNrTaxId() { } /** - * Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * Required for transactions performed by registered payment facilitators. The tax ID of the + * sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ * - * @param subMerchantSubSellerSubSellerNrTaxId Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * @param subMerchantSubSellerSubSellerNrTaxId Required for transactions performed by registered + * payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 + * digits for the CPF or 14 digits for the CNPJ */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_TAX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -466,9 +633,7 @@ public void setSubMerchantSubSellerSubSellerNrTaxId(String subMerchantSubSellerS this.subMerchantSubSellerSubSellerNrTaxId = subMerchantSubSellerSubSellerNrTaxId; } - /** - * Return true if this AdditionalDataSubMerchant object is equal to o. - */ + /** Return true if this AdditionalDataSubMerchant object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -478,48 +643,107 @@ public boolean equals(Object o) { return false; } AdditionalDataSubMerchant additionalDataSubMerchant = (AdditionalDataSubMerchant) o; - return Objects.equals(this.subMerchantNumberOfSubSellers, additionalDataSubMerchant.subMerchantNumberOfSubSellers) && - Objects.equals(this.subMerchantSubSellerSubSellerNrCity, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrCity) && - Objects.equals(this.subMerchantSubSellerSubSellerNrCountry, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrCountry) && - Objects.equals(this.subMerchantSubSellerSubSellerNrEmail, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrEmail) && - Objects.equals(this.subMerchantSubSellerSubSellerNrId, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrId) && - Objects.equals(this.subMerchantSubSellerSubSellerNrMcc, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrMcc) && - Objects.equals(this.subMerchantSubSellerSubSellerNrName, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrName) && - Objects.equals(this.subMerchantSubSellerSubSellerNrPhoneNumber, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrPhoneNumber) && - Objects.equals(this.subMerchantSubSellerSubSellerNrPostalCode, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrPostalCode) && - Objects.equals(this.subMerchantSubSellerSubSellerNrState, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrState) && - Objects.equals(this.subMerchantSubSellerSubSellerNrStreet, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrStreet) && - Objects.equals(this.subMerchantSubSellerSubSellerNrTaxId, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrTaxId); + return Objects.equals( + this.subMerchantNumberOfSubSellers, + additionalDataSubMerchant.subMerchantNumberOfSubSellers) + && Objects.equals( + this.subMerchantSubSellerSubSellerNrCity, + additionalDataSubMerchant.subMerchantSubSellerSubSellerNrCity) + && Objects.equals( + this.subMerchantSubSellerSubSellerNrCountry, + additionalDataSubMerchant.subMerchantSubSellerSubSellerNrCountry) + && Objects.equals( + this.subMerchantSubSellerSubSellerNrEmail, + additionalDataSubMerchant.subMerchantSubSellerSubSellerNrEmail) + && Objects.equals( + this.subMerchantSubSellerSubSellerNrId, + additionalDataSubMerchant.subMerchantSubSellerSubSellerNrId) + && Objects.equals( + this.subMerchantSubSellerSubSellerNrMcc, + additionalDataSubMerchant.subMerchantSubSellerSubSellerNrMcc) + && Objects.equals( + this.subMerchantSubSellerSubSellerNrName, + additionalDataSubMerchant.subMerchantSubSellerSubSellerNrName) + && Objects.equals( + this.subMerchantSubSellerSubSellerNrPhoneNumber, + additionalDataSubMerchant.subMerchantSubSellerSubSellerNrPhoneNumber) + && Objects.equals( + this.subMerchantSubSellerSubSellerNrPostalCode, + additionalDataSubMerchant.subMerchantSubSellerSubSellerNrPostalCode) + && Objects.equals( + this.subMerchantSubSellerSubSellerNrState, + additionalDataSubMerchant.subMerchantSubSellerSubSellerNrState) + && Objects.equals( + this.subMerchantSubSellerSubSellerNrStreet, + additionalDataSubMerchant.subMerchantSubSellerSubSellerNrStreet) + && Objects.equals( + this.subMerchantSubSellerSubSellerNrTaxId, + additionalDataSubMerchant.subMerchantSubSellerSubSellerNrTaxId); } @Override public int hashCode() { - return Objects.hash(subMerchantNumberOfSubSellers, subMerchantSubSellerSubSellerNrCity, subMerchantSubSellerSubSellerNrCountry, subMerchantSubSellerSubSellerNrEmail, subMerchantSubSellerSubSellerNrId, subMerchantSubSellerSubSellerNrMcc, subMerchantSubSellerSubSellerNrName, subMerchantSubSellerSubSellerNrPhoneNumber, subMerchantSubSellerSubSellerNrPostalCode, subMerchantSubSellerSubSellerNrState, subMerchantSubSellerSubSellerNrStreet, subMerchantSubSellerSubSellerNrTaxId); + return Objects.hash( + subMerchantNumberOfSubSellers, + subMerchantSubSellerSubSellerNrCity, + subMerchantSubSellerSubSellerNrCountry, + subMerchantSubSellerSubSellerNrEmail, + subMerchantSubSellerSubSellerNrId, + subMerchantSubSellerSubSellerNrMcc, + subMerchantSubSellerSubSellerNrName, + subMerchantSubSellerSubSellerNrPhoneNumber, + subMerchantSubSellerSubSellerNrPostalCode, + subMerchantSubSellerSubSellerNrState, + subMerchantSubSellerSubSellerNrStreet, + subMerchantSubSellerSubSellerNrTaxId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataSubMerchant {\n"); - sb.append(" subMerchantNumberOfSubSellers: ").append(toIndentedString(subMerchantNumberOfSubSellers)).append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrCity: ").append(toIndentedString(subMerchantSubSellerSubSellerNrCity)).append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrCountry: ").append(toIndentedString(subMerchantSubSellerSubSellerNrCountry)).append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrEmail: ").append(toIndentedString(subMerchantSubSellerSubSellerNrEmail)).append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrId: ").append(toIndentedString(subMerchantSubSellerSubSellerNrId)).append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrMcc: ").append(toIndentedString(subMerchantSubSellerSubSellerNrMcc)).append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrName: ").append(toIndentedString(subMerchantSubSellerSubSellerNrName)).append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrPhoneNumber: ").append(toIndentedString(subMerchantSubSellerSubSellerNrPhoneNumber)).append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrPostalCode: ").append(toIndentedString(subMerchantSubSellerSubSellerNrPostalCode)).append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrState: ").append(toIndentedString(subMerchantSubSellerSubSellerNrState)).append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrStreet: ").append(toIndentedString(subMerchantSubSellerSubSellerNrStreet)).append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrTaxId: ").append(toIndentedString(subMerchantSubSellerSubSellerNrTaxId)).append("\n"); + sb.append(" subMerchantNumberOfSubSellers: ") + .append(toIndentedString(subMerchantNumberOfSubSellers)) + .append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrCity: ") + .append(toIndentedString(subMerchantSubSellerSubSellerNrCity)) + .append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrCountry: ") + .append(toIndentedString(subMerchantSubSellerSubSellerNrCountry)) + .append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrEmail: ") + .append(toIndentedString(subMerchantSubSellerSubSellerNrEmail)) + .append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrId: ") + .append(toIndentedString(subMerchantSubSellerSubSellerNrId)) + .append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrMcc: ") + .append(toIndentedString(subMerchantSubSellerSubSellerNrMcc)) + .append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrName: ") + .append(toIndentedString(subMerchantSubSellerSubSellerNrName)) + .append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrPhoneNumber: ") + .append(toIndentedString(subMerchantSubSellerSubSellerNrPhoneNumber)) + .append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrPostalCode: ") + .append(toIndentedString(subMerchantSubSellerSubSellerNrPostalCode)) + .append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrState: ") + .append(toIndentedString(subMerchantSubSellerSubSellerNrState)) + .append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrStreet: ") + .append(toIndentedString(subMerchantSubSellerSubSellerNrStreet)) + .append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrTaxId: ") + .append(toIndentedString(subMerchantSubSellerSubSellerNrTaxId)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -528,21 +752,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalDataSubMerchant given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataSubMerchant - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataSubMerchant + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalDataSubMerchant */ - public static AdditionalDataSubMerchant fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalDataSubMerchant fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataSubMerchant.class); } -/** - * Convert an instance of AdditionalDataSubMerchant to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalDataSubMerchant to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataTemporaryServices.java b/src/main/java/com/adyen/model/checkout/AdditionalDataTemporaryServices.java index 955cee6c1..f27f68c52 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataTemporaryServices.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataTemporaryServices.java @@ -2,31 +2,22 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AdditionalDataTemporaryServices - */ +/** AdditionalDataTemporaryServices */ @JsonPropertyOrder({ AdditionalDataTemporaryServices.JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE, AdditionalDataTemporaryServices.JSON_PROPERTY_ENHANCED_SCHEME_DATA_EMPLOYEE_NAME, @@ -38,52 +29,64 @@ AdditionalDataTemporaryServices.JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_WEEK_ENDING, AdditionalDataTemporaryServices.JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT }) - public class AdditionalDataTemporaryServices { - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE = "enhancedSchemeData.customerReference"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE = + "enhancedSchemeData.customerReference"; private String enhancedSchemeDataCustomerReference; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_EMPLOYEE_NAME = "enhancedSchemeData.employeeName"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_EMPLOYEE_NAME = + "enhancedSchemeData.employeeName"; private String enhancedSchemeDataEmployeeName; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_JOB_DESCRIPTION = "enhancedSchemeData.jobDescription"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_JOB_DESCRIPTION = + "enhancedSchemeData.jobDescription"; private String enhancedSchemeDataJobDescription; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_REGULAR_HOURS_RATE = "enhancedSchemeData.regularHoursRate"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_REGULAR_HOURS_RATE = + "enhancedSchemeData.regularHoursRate"; private String enhancedSchemeDataRegularHoursRate; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_REGULAR_HOURS_WORKED = "enhancedSchemeData.regularHoursWorked"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_REGULAR_HOURS_WORKED = + "enhancedSchemeData.regularHoursWorked"; private String enhancedSchemeDataRegularHoursWorked; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_REQUEST_NAME = "enhancedSchemeData.requestName"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_REQUEST_NAME = + "enhancedSchemeData.requestName"; private String enhancedSchemeDataRequestName; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_START_DATE = "enhancedSchemeData.tempStartDate"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_START_DATE = + "enhancedSchemeData.tempStartDate"; private String enhancedSchemeDataTempStartDate; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_WEEK_ENDING = "enhancedSchemeData.tempWeekEnding"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_WEEK_ENDING = + "enhancedSchemeData.tempWeekEnding"; private String enhancedSchemeDataTempWeekEnding; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT = "enhancedSchemeData.totalTaxAmount"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT = + "enhancedSchemeData.totalTaxAmount"; private String enhancedSchemeDataTotalTaxAmount; - public AdditionalDataTemporaryServices() { - } + public AdditionalDataTemporaryServices() {} /** * The customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 * - * @param enhancedSchemeDataCustomerReference The customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining + * @param enhancedSchemeDataCustomerReference The customer code, if supplied by a customer. * + * Encoding: ASCII * maxLength: 25 + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method + * chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataCustomerReference(String enhancedSchemeDataCustomerReference) { + public AdditionalDataTemporaryServices enhancedSchemeDataCustomerReference( + String enhancedSchemeDataCustomerReference) { this.enhancedSchemeDataCustomerReference = enhancedSchemeDataCustomerReference; return this; } /** * The customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 - * @return enhancedSchemeDataCustomerReference The customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 + * + * @return enhancedSchemeDataCustomerReference The customer code, if supplied by a customer. * + * Encoding: ASCII * maxLength: 25 */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,7 +97,8 @@ public String getEnhancedSchemeDataCustomerReference() { /** * The customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 * - * @param enhancedSchemeDataCustomerReference The customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 + * @param enhancedSchemeDataCustomerReference The customer code, if supplied by a customer. * + * Encoding: ASCII * maxLength: 25 */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -103,19 +107,26 @@ public void setEnhancedSchemeDataCustomerReference(String enhancedSchemeDataCust } /** - * The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. + * The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be + * all spaces. *Must not be all zeros. * - * @param enhancedSchemeDataEmployeeName The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining + * @param enhancedSchemeDataEmployeeName The name or ID of the person working in a temporary + * capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method + * chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataEmployeeName(String enhancedSchemeDataEmployeeName) { + public AdditionalDataTemporaryServices enhancedSchemeDataEmployeeName( + String enhancedSchemeDataEmployeeName) { this.enhancedSchemeDataEmployeeName = enhancedSchemeDataEmployeeName; return this; } /** - * The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. - * @return enhancedSchemeDataEmployeeName The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. + * The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be + * all spaces. *Must not be all zeros. + * + * @return enhancedSchemeDataEmployeeName The name or ID of the person working in a temporary + * capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_EMPLOYEE_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,9 +135,11 @@ public String getEnhancedSchemeDataEmployeeName() { } /** - * The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. + * The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be + * all spaces. *Must not be all zeros. * - * @param enhancedSchemeDataEmployeeName The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. + * @param enhancedSchemeDataEmployeeName The name or ID of the person working in a temporary + * capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_EMPLOYEE_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,19 +148,26 @@ public void setEnhancedSchemeDataEmployeeName(String enhancedSchemeDataEmployeeN } /** - * The job description of the person working in a temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. + * The job description of the person working in a temporary capacity. * maxLength: 40 * Must not + * be all spaces. *Must not be all zeros. * - * @param enhancedSchemeDataJobDescription The job description of the person working in a temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining + * @param enhancedSchemeDataJobDescription The job description of the person working in a + * temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method + * chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataJobDescription(String enhancedSchemeDataJobDescription) { + public AdditionalDataTemporaryServices enhancedSchemeDataJobDescription( + String enhancedSchemeDataJobDescription) { this.enhancedSchemeDataJobDescription = enhancedSchemeDataJobDescription; return this; } /** - * The job description of the person working in a temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. - * @return enhancedSchemeDataJobDescription The job description of the person working in a temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. + * The job description of the person working in a temporary capacity. * maxLength: 40 * Must not + * be all spaces. *Must not be all zeros. + * + * @return enhancedSchemeDataJobDescription The job description of the person working in a + * temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_JOB_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,9 +176,11 @@ public String getEnhancedSchemeDataJobDescription() { } /** - * The job description of the person working in a temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. + * The job description of the person working in a temporary capacity. * maxLength: 40 * Must not + * be all spaces. *Must not be all zeros. * - * @param enhancedSchemeDataJobDescription The job description of the person working in a temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. + * @param enhancedSchemeDataJobDescription The job description of the person working in a + * temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_JOB_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,19 +189,30 @@ public void setEnhancedSchemeDataJobDescription(String enhancedSchemeDataJobDesc } /** - * The amount paid for regular hours worked, [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not be empty * Can be all zeros + * The amount paid for regular hours worked, [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not + * be empty * Can be all zeros * - * @param enhancedSchemeDataRegularHoursRate The amount paid for regular hours worked, [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not be empty * Can be all zeros - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining + * @param enhancedSchemeDataRegularHoursRate The amount paid for regular hours worked, [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must + * not be empty * Can be all zeros + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method + * chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataRegularHoursRate(String enhancedSchemeDataRegularHoursRate) { + public AdditionalDataTemporaryServices enhancedSchemeDataRegularHoursRate( + String enhancedSchemeDataRegularHoursRate) { this.enhancedSchemeDataRegularHoursRate = enhancedSchemeDataRegularHoursRate; return this; } /** - * The amount paid for regular hours worked, [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not be empty * Can be all zeros - * @return enhancedSchemeDataRegularHoursRate The amount paid for regular hours worked, [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not be empty * Can be all zeros + * The amount paid for regular hours worked, [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not + * be empty * Can be all zeros + * + * @return enhancedSchemeDataRegularHoursRate The amount paid for regular hours worked, [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must + * not be empty * Can be all zeros */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_REGULAR_HOURS_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,9 +221,13 @@ public String getEnhancedSchemeDataRegularHoursRate() { } /** - * The amount paid for regular hours worked, [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not be empty * Can be all zeros + * The amount paid for regular hours worked, [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not + * be empty * Can be all zeros * - * @param enhancedSchemeDataRegularHoursRate The amount paid for regular hours worked, [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not be empty * Can be all zeros + * @param enhancedSchemeDataRegularHoursRate The amount paid for regular hours worked, [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must + * not be empty * Can be all zeros */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_REGULAR_HOURS_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -201,17 +238,22 @@ public void setEnhancedSchemeDataRegularHoursRate(String enhancedSchemeDataRegul /** * The hours worked. * maxLength: 7 * Must not be empty * Can be all zeros * - * @param enhancedSchemeDataRegularHoursWorked The hours worked. * maxLength: 7 * Must not be empty * Can be all zeros - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining + * @param enhancedSchemeDataRegularHoursWorked The hours worked. * maxLength: 7 * Must not be + * empty * Can be all zeros + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method + * chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataRegularHoursWorked(String enhancedSchemeDataRegularHoursWorked) { + public AdditionalDataTemporaryServices enhancedSchemeDataRegularHoursWorked( + String enhancedSchemeDataRegularHoursWorked) { this.enhancedSchemeDataRegularHoursWorked = enhancedSchemeDataRegularHoursWorked; return this; } /** * The hours worked. * maxLength: 7 * Must not be empty * Can be all zeros - * @return enhancedSchemeDataRegularHoursWorked The hours worked. * maxLength: 7 * Must not be empty * Can be all zeros + * + * @return enhancedSchemeDataRegularHoursWorked The hours worked. * maxLength: 7 * Must not be + * empty * Can be all zeros */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_REGULAR_HOURS_WORKED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -222,7 +264,8 @@ public String getEnhancedSchemeDataRegularHoursWorked() { /** * The hours worked. * maxLength: 7 * Must not be empty * Can be all zeros * - * @param enhancedSchemeDataRegularHoursWorked The hours worked. * maxLength: 7 * Must not be empty * Can be all zeros + * @param enhancedSchemeDataRegularHoursWorked The hours worked. * maxLength: 7 * Must not be + * empty * Can be all zeros */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_REGULAR_HOURS_WORKED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -231,19 +274,26 @@ public void setEnhancedSchemeDataRegularHoursWorked(String enhancedSchemeDataReg } /** - * The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * Must not be all spaces + * The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * + * Must not be all spaces * - * @param enhancedSchemeDataRequestName The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * Must not be all spaces - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining + * @param enhancedSchemeDataRequestName The name of the person requesting temporary services. * + * maxLength: 40 * Must not be all zeros * Must not be all spaces + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method + * chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataRequestName(String enhancedSchemeDataRequestName) { + public AdditionalDataTemporaryServices enhancedSchemeDataRequestName( + String enhancedSchemeDataRequestName) { this.enhancedSchemeDataRequestName = enhancedSchemeDataRequestName; return this; } /** - * The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * Must not be all spaces - * @return enhancedSchemeDataRequestName The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * Must not be all spaces + * The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * + * Must not be all spaces + * + * @return enhancedSchemeDataRequestName The name of the person requesting temporary services. * + * maxLength: 40 * Must not be all zeros * Must not be all spaces */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_REQUEST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,9 +302,11 @@ public String getEnhancedSchemeDataRequestName() { } /** - * The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * Must not be all spaces + * The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * + * Must not be all spaces * - * @param enhancedSchemeDataRequestName The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * Must not be all spaces + * @param enhancedSchemeDataRequestName The name of the person requesting temporary services. * + * maxLength: 40 * Must not be all zeros * Must not be all spaces */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_REQUEST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -265,17 +317,22 @@ public void setEnhancedSchemeDataRequestName(String enhancedSchemeDataRequestNam /** * The billing period start date. * Format: ddMMyy * maxLength: 6 * - * @param enhancedSchemeDataTempStartDate The billing period start date. * Format: ddMMyy * maxLength: 6 - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining + * @param enhancedSchemeDataTempStartDate The billing period start date. * Format: ddMMyy * + * maxLength: 6 + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method + * chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataTempStartDate(String enhancedSchemeDataTempStartDate) { + public AdditionalDataTemporaryServices enhancedSchemeDataTempStartDate( + String enhancedSchemeDataTempStartDate) { this.enhancedSchemeDataTempStartDate = enhancedSchemeDataTempStartDate; return this; } /** * The billing period start date. * Format: ddMMyy * maxLength: 6 - * @return enhancedSchemeDataTempStartDate The billing period start date. * Format: ddMMyy * maxLength: 6 + * + * @return enhancedSchemeDataTempStartDate The billing period start date. * Format: ddMMyy * + * maxLength: 6 */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_START_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -286,7 +343,8 @@ public String getEnhancedSchemeDataTempStartDate() { /** * The billing period start date. * Format: ddMMyy * maxLength: 6 * - * @param enhancedSchemeDataTempStartDate The billing period start date. * Format: ddMMyy * maxLength: 6 + * @param enhancedSchemeDataTempStartDate The billing period start date. * Format: ddMMyy * + * maxLength: 6 */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_START_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -297,17 +355,22 @@ public void setEnhancedSchemeDataTempStartDate(String enhancedSchemeDataTempStar /** * The billing period end date. * Format: ddMMyy * maxLength: 6 * - * @param enhancedSchemeDataTempWeekEnding The billing period end date. * Format: ddMMyy * maxLength: 6 - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining + * @param enhancedSchemeDataTempWeekEnding The billing period end date. * Format: ddMMyy * + * maxLength: 6 + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method + * chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataTempWeekEnding(String enhancedSchemeDataTempWeekEnding) { + public AdditionalDataTemporaryServices enhancedSchemeDataTempWeekEnding( + String enhancedSchemeDataTempWeekEnding) { this.enhancedSchemeDataTempWeekEnding = enhancedSchemeDataTempWeekEnding; return this; } /** * The billing period end date. * Format: ddMMyy * maxLength: 6 - * @return enhancedSchemeDataTempWeekEnding The billing period end date. * Format: ddMMyy * maxLength: 6 + * + * @return enhancedSchemeDataTempWeekEnding The billing period end date. * Format: ddMMyy * + * maxLength: 6 */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_WEEK_ENDING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -318,7 +381,8 @@ public String getEnhancedSchemeDataTempWeekEnding() { /** * The billing period end date. * Format: ddMMyy * maxLength: 6 * - * @param enhancedSchemeDataTempWeekEnding The billing period end date. * Format: ddMMyy * maxLength: 6 + * @param enhancedSchemeDataTempWeekEnding The billing period end date. * Format: ddMMyy * + * maxLength: 6 */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_WEEK_ENDING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -327,19 +391,30 @@ public void setEnhancedSchemeDataTempWeekEnding(String enhancedSchemeDataTempWee } /** - * The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00 * maxLength: 12 + * The total tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means + * USD 20.00 * maxLength: 12 * - * @param enhancedSchemeDataTotalTaxAmount The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00 * maxLength: 12 - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining + * @param enhancedSchemeDataTotalTaxAmount The total tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 + * means USD 20.00 * maxLength: 12 + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method + * chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataTotalTaxAmount(String enhancedSchemeDataTotalTaxAmount) { + public AdditionalDataTemporaryServices enhancedSchemeDataTotalTaxAmount( + String enhancedSchemeDataTotalTaxAmount) { this.enhancedSchemeDataTotalTaxAmount = enhancedSchemeDataTotalTaxAmount; return this; } /** - * The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00 * maxLength: 12 - * @return enhancedSchemeDataTotalTaxAmount The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00 * maxLength: 12 + * The total tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means + * USD 20.00 * maxLength: 12 + * + * @return enhancedSchemeDataTotalTaxAmount The total tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 + * means USD 20.00 * maxLength: 12 */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -348,9 +423,13 @@ public String getEnhancedSchemeDataTotalTaxAmount() { } /** - * The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00 * maxLength: 12 + * The total tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means + * USD 20.00 * maxLength: 12 * - * @param enhancedSchemeDataTotalTaxAmount The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00 * maxLength: 12 + * @param enhancedSchemeDataTotalTaxAmount The total tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 + * means USD 20.00 * maxLength: 12 */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -358,9 +437,7 @@ public void setEnhancedSchemeDataTotalTaxAmount(String enhancedSchemeDataTotalTa this.enhancedSchemeDataTotalTaxAmount = enhancedSchemeDataTotalTaxAmount; } - /** - * Return true if this AdditionalDataTemporaryServices object is equal to o. - */ + /** Return true if this AdditionalDataTemporaryServices object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -369,43 +446,88 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AdditionalDataTemporaryServices additionalDataTemporaryServices = (AdditionalDataTemporaryServices) o; - return Objects.equals(this.enhancedSchemeDataCustomerReference, additionalDataTemporaryServices.enhancedSchemeDataCustomerReference) && - Objects.equals(this.enhancedSchemeDataEmployeeName, additionalDataTemporaryServices.enhancedSchemeDataEmployeeName) && - Objects.equals(this.enhancedSchemeDataJobDescription, additionalDataTemporaryServices.enhancedSchemeDataJobDescription) && - Objects.equals(this.enhancedSchemeDataRegularHoursRate, additionalDataTemporaryServices.enhancedSchemeDataRegularHoursRate) && - Objects.equals(this.enhancedSchemeDataRegularHoursWorked, additionalDataTemporaryServices.enhancedSchemeDataRegularHoursWorked) && - Objects.equals(this.enhancedSchemeDataRequestName, additionalDataTemporaryServices.enhancedSchemeDataRequestName) && - Objects.equals(this.enhancedSchemeDataTempStartDate, additionalDataTemporaryServices.enhancedSchemeDataTempStartDate) && - Objects.equals(this.enhancedSchemeDataTempWeekEnding, additionalDataTemporaryServices.enhancedSchemeDataTempWeekEnding) && - Objects.equals(this.enhancedSchemeDataTotalTaxAmount, additionalDataTemporaryServices.enhancedSchemeDataTotalTaxAmount); + AdditionalDataTemporaryServices additionalDataTemporaryServices = + (AdditionalDataTemporaryServices) o; + return Objects.equals( + this.enhancedSchemeDataCustomerReference, + additionalDataTemporaryServices.enhancedSchemeDataCustomerReference) + && Objects.equals( + this.enhancedSchemeDataEmployeeName, + additionalDataTemporaryServices.enhancedSchemeDataEmployeeName) + && Objects.equals( + this.enhancedSchemeDataJobDescription, + additionalDataTemporaryServices.enhancedSchemeDataJobDescription) + && Objects.equals( + this.enhancedSchemeDataRegularHoursRate, + additionalDataTemporaryServices.enhancedSchemeDataRegularHoursRate) + && Objects.equals( + this.enhancedSchemeDataRegularHoursWorked, + additionalDataTemporaryServices.enhancedSchemeDataRegularHoursWorked) + && Objects.equals( + this.enhancedSchemeDataRequestName, + additionalDataTemporaryServices.enhancedSchemeDataRequestName) + && Objects.equals( + this.enhancedSchemeDataTempStartDate, + additionalDataTemporaryServices.enhancedSchemeDataTempStartDate) + && Objects.equals( + this.enhancedSchemeDataTempWeekEnding, + additionalDataTemporaryServices.enhancedSchemeDataTempWeekEnding) + && Objects.equals( + this.enhancedSchemeDataTotalTaxAmount, + additionalDataTemporaryServices.enhancedSchemeDataTotalTaxAmount); } @Override public int hashCode() { - return Objects.hash(enhancedSchemeDataCustomerReference, enhancedSchemeDataEmployeeName, enhancedSchemeDataJobDescription, enhancedSchemeDataRegularHoursRate, enhancedSchemeDataRegularHoursWorked, enhancedSchemeDataRequestName, enhancedSchemeDataTempStartDate, enhancedSchemeDataTempWeekEnding, enhancedSchemeDataTotalTaxAmount); + return Objects.hash( + enhancedSchemeDataCustomerReference, + enhancedSchemeDataEmployeeName, + enhancedSchemeDataJobDescription, + enhancedSchemeDataRegularHoursRate, + enhancedSchemeDataRegularHoursWorked, + enhancedSchemeDataRequestName, + enhancedSchemeDataTempStartDate, + enhancedSchemeDataTempWeekEnding, + enhancedSchemeDataTotalTaxAmount); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataTemporaryServices {\n"); - sb.append(" enhancedSchemeDataCustomerReference: ").append(toIndentedString(enhancedSchemeDataCustomerReference)).append("\n"); - sb.append(" enhancedSchemeDataEmployeeName: ").append(toIndentedString(enhancedSchemeDataEmployeeName)).append("\n"); - sb.append(" enhancedSchemeDataJobDescription: ").append(toIndentedString(enhancedSchemeDataJobDescription)).append("\n"); - sb.append(" enhancedSchemeDataRegularHoursRate: ").append(toIndentedString(enhancedSchemeDataRegularHoursRate)).append("\n"); - sb.append(" enhancedSchemeDataRegularHoursWorked: ").append(toIndentedString(enhancedSchemeDataRegularHoursWorked)).append("\n"); - sb.append(" enhancedSchemeDataRequestName: ").append(toIndentedString(enhancedSchemeDataRequestName)).append("\n"); - sb.append(" enhancedSchemeDataTempStartDate: ").append(toIndentedString(enhancedSchemeDataTempStartDate)).append("\n"); - sb.append(" enhancedSchemeDataTempWeekEnding: ").append(toIndentedString(enhancedSchemeDataTempWeekEnding)).append("\n"); - sb.append(" enhancedSchemeDataTotalTaxAmount: ").append(toIndentedString(enhancedSchemeDataTotalTaxAmount)).append("\n"); + sb.append(" enhancedSchemeDataCustomerReference: ") + .append(toIndentedString(enhancedSchemeDataCustomerReference)) + .append("\n"); + sb.append(" enhancedSchemeDataEmployeeName: ") + .append(toIndentedString(enhancedSchemeDataEmployeeName)) + .append("\n"); + sb.append(" enhancedSchemeDataJobDescription: ") + .append(toIndentedString(enhancedSchemeDataJobDescription)) + .append("\n"); + sb.append(" enhancedSchemeDataRegularHoursRate: ") + .append(toIndentedString(enhancedSchemeDataRegularHoursRate)) + .append("\n"); + sb.append(" enhancedSchemeDataRegularHoursWorked: ") + .append(toIndentedString(enhancedSchemeDataRegularHoursWorked)) + .append("\n"); + sb.append(" enhancedSchemeDataRequestName: ") + .append(toIndentedString(enhancedSchemeDataRequestName)) + .append("\n"); + sb.append(" enhancedSchemeDataTempStartDate: ") + .append(toIndentedString(enhancedSchemeDataTempStartDate)) + .append("\n"); + sb.append(" enhancedSchemeDataTempWeekEnding: ") + .append(toIndentedString(enhancedSchemeDataTempWeekEnding)) + .append("\n"); + sb.append(" enhancedSchemeDataTotalTaxAmount: ") + .append(toIndentedString(enhancedSchemeDataTotalTaxAmount)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -414,21 +536,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalDataTemporaryServices given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataTemporaryServices - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataTemporaryServices + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalDataTemporaryServices */ - public static AdditionalDataTemporaryServices fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalDataTemporaryServices fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataTemporaryServices.class); } -/** - * Convert an instance of AdditionalDataTemporaryServices to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalDataTemporaryServices to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataWallets.java b/src/main/java/com/adyen/model/checkout/AdditionalDataWallets.java index 968829d05..d5c3315b8 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataWallets.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataWallets.java @@ -2,31 +2,22 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AdditionalDataWallets - */ +/** AdditionalDataWallets */ @JsonPropertyOrder({ AdditionalDataWallets.JSON_PROPERTY_ANDROIDPAY_TOKEN, AdditionalDataWallets.JSON_PROPERTY_MASTERPASS_TRANSACTION_ID, @@ -35,7 +26,6 @@ AdditionalDataWallets.JSON_PROPERTY_SAMSUNGPAY_TOKEN, AdditionalDataWallets.JSON_PROPERTY_VISACHECKOUT_CALL_ID }) - public class AdditionalDataWallets { public static final String JSON_PROPERTY_ANDROIDPAY_TOKEN = "androidpay.token"; private String androidpayToken; @@ -55,8 +45,7 @@ public class AdditionalDataWallets { public static final String JSON_PROPERTY_VISACHECKOUT_CALL_ID = "visacheckout.callId"; private String visacheckoutCallId; - public AdditionalDataWallets() { - } + public AdditionalDataWallets() {} /** * The Android Pay token retrieved from the SDK. @@ -71,6 +60,7 @@ public AdditionalDataWallets androidpayToken(String androidpayToken) { /** * The Android Pay token retrieved from the SDK. + * * @return androidpayToken The Android Pay token retrieved from the SDK. */ @JsonProperty(JSON_PROPERTY_ANDROIDPAY_TOKEN) @@ -103,7 +93,9 @@ public AdditionalDataWallets masterpassTransactionId(String masterpassTransactio /** * The Mastercard Masterpass Transaction ID retrieved from the SDK. - * @return masterpassTransactionId The Mastercard Masterpass Transaction ID retrieved from the SDK. + * + * @return masterpassTransactionId The Mastercard Masterpass Transaction ID retrieved from the + * SDK. */ @JsonProperty(JSON_PROPERTY_MASTERPASS_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,6 +127,7 @@ public AdditionalDataWallets paymentToken(String paymentToken) { /** * The Apple Pay token retrieved from the SDK. + * * @return paymentToken The Apple Pay token retrieved from the SDK. */ @JsonProperty(JSON_PROPERTY_PAYMENT_TOKEN) @@ -167,6 +160,7 @@ public AdditionalDataWallets paywithgoogleToken(String paywithgoogleToken) { /** * The Google Pay token retrieved from the SDK. + * * @return paywithgoogleToken The Google Pay token retrieved from the SDK. */ @JsonProperty(JSON_PROPERTY_PAYWITHGOOGLE_TOKEN) @@ -199,6 +193,7 @@ public AdditionalDataWallets samsungpayToken(String samsungpayToken) { /** * The Samsung Pay token retrieved from the SDK. + * * @return samsungpayToken The Samsung Pay token retrieved from the SDK. */ @JsonProperty(JSON_PROPERTY_SAMSUNGPAY_TOKEN) @@ -231,6 +226,7 @@ public AdditionalDataWallets visacheckoutCallId(String visacheckoutCallId) { /** * The Visa Checkout Call ID retrieved from the SDK. + * * @return visacheckoutCallId The Visa Checkout Call ID retrieved from the SDK. */ @JsonProperty(JSON_PROPERTY_VISACHECKOUT_CALL_ID) @@ -250,9 +246,7 @@ public void setVisacheckoutCallId(String visacheckoutCallId) { this.visacheckoutCallId = visacheckoutCallId; } - /** - * Return true if this AdditionalDataWallets object is equal to o. - */ + /** Return true if this AdditionalDataWallets object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -262,17 +256,24 @@ public boolean equals(Object o) { return false; } AdditionalDataWallets additionalDataWallets = (AdditionalDataWallets) o; - return Objects.equals(this.androidpayToken, additionalDataWallets.androidpayToken) && - Objects.equals(this.masterpassTransactionId, additionalDataWallets.masterpassTransactionId) && - Objects.equals(this.paymentToken, additionalDataWallets.paymentToken) && - Objects.equals(this.paywithgoogleToken, additionalDataWallets.paywithgoogleToken) && - Objects.equals(this.samsungpayToken, additionalDataWallets.samsungpayToken) && - Objects.equals(this.visacheckoutCallId, additionalDataWallets.visacheckoutCallId); + return Objects.equals(this.androidpayToken, additionalDataWallets.androidpayToken) + && Objects.equals( + this.masterpassTransactionId, additionalDataWallets.masterpassTransactionId) + && Objects.equals(this.paymentToken, additionalDataWallets.paymentToken) + && Objects.equals(this.paywithgoogleToken, additionalDataWallets.paywithgoogleToken) + && Objects.equals(this.samsungpayToken, additionalDataWallets.samsungpayToken) + && Objects.equals(this.visacheckoutCallId, additionalDataWallets.visacheckoutCallId); } @Override public int hashCode() { - return Objects.hash(androidpayToken, masterpassTransactionId, paymentToken, paywithgoogleToken, samsungpayToken, visacheckoutCallId); + return Objects.hash( + androidpayToken, + masterpassTransactionId, + paymentToken, + paywithgoogleToken, + samsungpayToken, + visacheckoutCallId); } @Override @@ -280,7 +281,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataWallets {\n"); sb.append(" androidpayToken: ").append(toIndentedString(androidpayToken)).append("\n"); - sb.append(" masterpassTransactionId: ").append(toIndentedString(masterpassTransactionId)).append("\n"); + sb.append(" masterpassTransactionId: ") + .append(toIndentedString(masterpassTransactionId)) + .append("\n"); sb.append(" paymentToken: ").append(toIndentedString(paymentToken)).append("\n"); sb.append(" paywithgoogleToken: ").append(toIndentedString(paywithgoogleToken)).append("\n"); sb.append(" samsungpayToken: ").append(toIndentedString(samsungpayToken)).append("\n"); @@ -290,8 +293,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -300,21 +302,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalDataWallets given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataWallets - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataWallets + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalDataWallets */ public static AdditionalDataWallets fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataWallets.class); } -/** - * Convert an instance of AdditionalDataWallets to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalDataWallets to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Address.java b/src/main/java/com/adyen/model/checkout/Address.java index f171efcd7..b8f2434e7 100644 --- a/src/main/java/com/adyen/model/checkout/Address.java +++ b/src/main/java/com/adyen/model/checkout/Address.java @@ -2,31 +2,22 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Address - */ +/** Address */ @JsonPropertyOrder({ Address.JSON_PROPERTY_CITY, Address.JSON_PROPERTY_COUNTRY, @@ -35,7 +26,6 @@ Address.JSON_PROPERTY_STATE_OR_PROVINCE, Address.JSON_PROPERTY_STREET }) - public class Address { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -55,8 +45,7 @@ public class Address { public static final String JSON_PROPERTY_STREET = "street"; private String street; - public Address() { - } + public Address() {} /** * The name of the city. Maximum length: 3000 characters. @@ -71,6 +60,7 @@ public Address city(String city) { /** * The name of the city. Maximum length: 3000 characters. + * * @return city The name of the city. Maximum length: 3000 characters. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -91,9 +81,13 @@ public void setCity(String city) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't + * know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If + * you don't know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. * @return the current {@code Address} instance, allowing for method chaining */ public Address country(String country) { @@ -102,8 +96,13 @@ public Address country(String country) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. - * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't + * know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. + * + * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If + * you don't know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,9 +111,13 @@ public String getCountry() { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't + * know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If + * you don't know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,6 +138,7 @@ public Address houseNumberOrName(String houseNumberOrName) { /** * The number or name of the house. Maximum length: 3000 characters. + * * @return houseNumberOrName The number or name of the house. Maximum length: 3000 characters. */ @JsonProperty(JSON_PROPERTY_HOUSE_NUMBER_OR_NAME) @@ -155,9 +159,11 @@ public void setHouseNumberOrName(String houseNumberOrName) { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an + * address in all other countries. * - * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten + * characters for an address in all other countries. * @return the current {@code Address} instance, allowing for method chaining */ public Address postalCode(String postalCode) { @@ -166,8 +172,11 @@ public Address postalCode(String postalCode) { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. - * @return postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an + * address in all other countries. + * + * @return postalCode A maximum of five digits for an address in the US, or a maximum of ten + * characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,9 +185,11 @@ public String getPostalCode() { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an + * address in all other countries. * - * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten + * characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,9 +198,11 @@ public void setPostalCode(String postalCode) { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in + * Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** + * in the US or **ON** in Canada. > Required for the US and Canada. * @return the current {@code Address} instance, allowing for method chaining */ public Address stateOrProvince(String stateOrProvince) { @@ -198,8 +211,11 @@ public Address stateOrProvince(String stateOrProvince) { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. - * @return stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in + * Canada. > Required for the US and Canada. + * + * @return stateOrProvince The two-character ISO 3166-2 state or province code. For example, + * **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,9 +224,11 @@ public String getStateOrProvince() { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in + * Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** + * in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,9 +237,12 @@ public void setStateOrProvince(String stateOrProvince) { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be + * included in this field; it should be separately provided via `houseNumberOrName`. * - * @param street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * @param street The name of the street. Maximum length: 3000 characters. > The house number + * should not be included in this field; it should be separately provided via + * `houseNumberOrName`. * @return the current {@code Address} instance, allowing for method chaining */ public Address street(String street) { @@ -230,8 +251,12 @@ public Address street(String street) { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. - * @return street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be + * included in this field; it should be separately provided via `houseNumberOrName`. + * + * @return street The name of the street. Maximum length: 3000 characters. > The house number + * should not be included in this field; it should be separately provided via + * `houseNumberOrName`. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,9 +265,12 @@ public String getStreet() { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be + * included in this field; it should be separately provided via `houseNumberOrName`. * - * @param street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * @param street The name of the street. Maximum length: 3000 characters. > The house number + * should not be included in this field; it should be separately provided via + * `houseNumberOrName`. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,9 +278,7 @@ public void setStreet(String street) { this.street = street; } - /** - * Return true if this Address object is equal to o. - */ + /** Return true if this Address object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -262,12 +288,12 @@ public boolean equals(Object o) { return false; } Address address = (Address) o; - return Objects.equals(this.city, address.city) && - Objects.equals(this.country, address.country) && - Objects.equals(this.houseNumberOrName, address.houseNumberOrName) && - Objects.equals(this.postalCode, address.postalCode) && - Objects.equals(this.stateOrProvince, address.stateOrProvince) && - Objects.equals(this.street, address.street); + return Objects.equals(this.city, address.city) + && Objects.equals(this.country, address.country) + && Objects.equals(this.houseNumberOrName, address.houseNumberOrName) + && Objects.equals(this.postalCode, address.postalCode) + && Objects.equals(this.stateOrProvince, address.stateOrProvince) + && Objects.equals(this.street, address.street); } @Override @@ -290,8 +316,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -300,7 +325,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Address given an JSON string * * @param jsonString JSON string @@ -310,11 +335,12 @@ private String toIndentedString(Object o) { public static Address fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Address.class); } -/** - * Convert an instance of Address to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Address to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AffirmDetails.java b/src/main/java/com/adyen/model/checkout/AffirmDetails.java index 0de27dc43..9ff5682df 100644 --- a/src/main/java/com/adyen/model/checkout/AffirmDetails.java +++ b/src/main/java/com/adyen/model/checkout/AffirmDetails.java @@ -2,45 +2,36 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * AffirmDetails - */ +/** AffirmDetails */ @JsonPropertyOrder({ AffirmDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, AffirmDetails.JSON_PROPERTY_TYPE }) - public class AffirmDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; - /** - * **affirm** - */ + /** **affirm** */ public enum TypeEnum { - AFFIRM(String.valueOf("affirm")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +39,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,8 +72,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AffirmDetails() { - } + public AffirmDetails() {} /** * The checkout attempt identifier. @@ -93,6 +87,7 @@ public AffirmDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -125,6 +120,7 @@ public AffirmDetails type(TypeEnum type) { /** * **affirm** + * * @return type **affirm** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -144,9 +140,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this AffirmDetails object is equal to o. - */ + /** Return true if this AffirmDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +150,8 @@ public boolean equals(Object o) { return false; } AffirmDetails affirmDetails = (AffirmDetails) o; - return Objects.equals(this.checkoutAttemptId, affirmDetails.checkoutAttemptId) && - Objects.equals(this.type, affirmDetails.type); + return Objects.equals(this.checkoutAttemptId, affirmDetails.checkoutAttemptId) + && Objects.equals(this.type, affirmDetails.type); } @Override @@ -176,8 +170,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +179,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AffirmDetails given an JSON string * * @param jsonString JSON string @@ -196,11 +189,12 @@ private String toIndentedString(Object o) { public static AffirmDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AffirmDetails.class); } -/** - * Convert an instance of AffirmDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AffirmDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AfterpayDetails.java b/src/main/java/com/adyen/model/checkout/AfterpayDetails.java index 996c858b9..e6c353358 100644 --- a/src/main/java/com/adyen/model/checkout/AfterpayDetails.java +++ b/src/main/java/com/adyen/model/checkout/AfterpayDetails.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * AfterpayDetails - */ +/** AfterpayDetails */ @JsonPropertyOrder({ AfterpayDetails.JSON_PROPERTY_BILLING_ADDRESS, AfterpayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, @@ -36,7 +31,6 @@ AfterpayDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, AfterpayDetails.JSON_PROPERTY_TYPE }) - public class AfterpayDetails { public static final String JSON_PROPERTY_BILLING_ADDRESS = "billingAddress"; private String billingAddress; @@ -57,11 +51,8 @@ public class AfterpayDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** - * **afterpay_default** - */ + /** **afterpay_default** */ public enum TypeEnum { - AFTERPAY_DEFAULT(String.valueOf("afterpay_default")), AFTERPAYTOUCH(String.valueOf("afterpaytouch")), @@ -75,7 +66,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -96,7 +87,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -104,8 +99,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AfterpayDetails() { - } + public AfterpayDetails() {} /** * The address where to send the invoice. @@ -120,6 +114,7 @@ public AfterpayDetails billingAddress(String billingAddress) { /** * The address where to send the invoice. + * * @return billingAddress The address where to send the invoice. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @@ -152,6 +147,7 @@ public AfterpayDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -184,6 +180,7 @@ public AfterpayDetails deliveryAddress(String deliveryAddress) { /** * The address where the goods should be delivered. + * * @return deliveryAddress The address where the goods should be delivered. */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @@ -216,6 +213,7 @@ public AfterpayDetails personalDetails(String personalDetails) { /** * Shopper name, date of birth, phone number, and email address. + * * @return personalDetails Shopper name, date of birth, phone number, and email address. */ @JsonProperty(JSON_PROPERTY_PERSONAL_DETAILS) @@ -236,13 +234,13 @@ public void setPersonalDetails(String personalDetails) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code AfterpayDetails} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public AfterpayDetails recurringDetailReference(String recurringDetailReference) { @@ -251,8 +249,11 @@ public AfterpayDetails recurringDetailReference(String recurringDetailReference) } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -263,12 +264,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -278,9 +279,11 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code AfterpayDetails} instance, allowing for method chaining */ public AfterpayDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -289,8 +292,11 @@ public AfterpayDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -299,9 +305,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -322,6 +330,7 @@ public AfterpayDetails type(TypeEnum type) { /** * **afterpay_default** + * * @return type **afterpay_default** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -341,9 +350,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this AfterpayDetails object is equal to o. - */ + /** Return true if this AfterpayDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -353,18 +360,25 @@ public boolean equals(Object o) { return false; } AfterpayDetails afterpayDetails = (AfterpayDetails) o; - return Objects.equals(this.billingAddress, afterpayDetails.billingAddress) && - Objects.equals(this.checkoutAttemptId, afterpayDetails.checkoutAttemptId) && - Objects.equals(this.deliveryAddress, afterpayDetails.deliveryAddress) && - Objects.equals(this.personalDetails, afterpayDetails.personalDetails) && - Objects.equals(this.recurringDetailReference, afterpayDetails.recurringDetailReference) && - Objects.equals(this.storedPaymentMethodId, afterpayDetails.storedPaymentMethodId) && - Objects.equals(this.type, afterpayDetails.type); + return Objects.equals(this.billingAddress, afterpayDetails.billingAddress) + && Objects.equals(this.checkoutAttemptId, afterpayDetails.checkoutAttemptId) + && Objects.equals(this.deliveryAddress, afterpayDetails.deliveryAddress) + && Objects.equals(this.personalDetails, afterpayDetails.personalDetails) + && Objects.equals(this.recurringDetailReference, afterpayDetails.recurringDetailReference) + && Objects.equals(this.storedPaymentMethodId, afterpayDetails.storedPaymentMethodId) + && Objects.equals(this.type, afterpayDetails.type); } @Override public int hashCode() { - return Objects.hash(billingAddress, checkoutAttemptId, deliveryAddress, personalDetails, recurringDetailReference, storedPaymentMethodId, type); + return Objects.hash( + billingAddress, + checkoutAttemptId, + deliveryAddress, + personalDetails, + recurringDetailReference, + storedPaymentMethodId, + type); } @Override @@ -375,16 +389,19 @@ public String toString() { sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" deliveryAddress: ").append(toIndentedString(deliveryAddress)).append("\n"); sb.append(" personalDetails: ").append(toIndentedString(personalDetails)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -393,7 +410,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AfterpayDetails given an JSON string * * @param jsonString JSON string @@ -403,11 +420,12 @@ private String toIndentedString(Object o) { public static AfterpayDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AfterpayDetails.class); } -/** - * Convert an instance of AfterpayDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AfterpayDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Agency.java b/src/main/java/com/adyen/model/checkout/Agency.java index ae1c557a7..1f4e0105e 100644 --- a/src/main/java/com/adyen/model/checkout/Agency.java +++ b/src/main/java/com/adyen/model/checkout/Agency.java @@ -2,36 +2,23 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Agency - */ -@JsonPropertyOrder({ - Agency.JSON_PROPERTY_INVOICE_NUMBER, - Agency.JSON_PROPERTY_PLAN_NAME -}) - +/** Agency */ +@JsonPropertyOrder({Agency.JSON_PROPERTY_INVOICE_NUMBER, Agency.JSON_PROPERTY_PLAN_NAME}) public class Agency { public static final String JSON_PROPERTY_INVOICE_NUMBER = "invoiceNumber"; private String invoiceNumber; @@ -39,13 +26,14 @@ public class Agency { public static final String JSON_PROPERTY_PLAN_NAME = "planName"; private String planName; - public Agency() { - } + public Agency() {} /** - * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters + * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 + * character * maxLength: 6 characters * - * @param invoiceNumber The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters + * @param invoiceNumber The reference number for the invoice, issued by the agency. * Encoding: + * ASCII * minLength: 1 character * maxLength: 6 characters * @return the current {@code Agency} instance, allowing for method chaining */ public Agency invoiceNumber(String invoiceNumber) { @@ -54,8 +42,11 @@ public Agency invoiceNumber(String invoiceNumber) { } /** - * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters - * @return invoiceNumber The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters + * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 + * character * maxLength: 6 characters + * + * @return invoiceNumber The reference number for the invoice, issued by the agency. * Encoding: + * ASCII * minLength: 1 character * maxLength: 6 characters */ @JsonProperty(JSON_PROPERTY_INVOICE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +55,11 @@ public String getInvoiceNumber() { } /** - * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters + * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 + * character * maxLength: 6 characters * - * @param invoiceNumber The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters + * @param invoiceNumber The reference number for the invoice, issued by the agency. * Encoding: + * ASCII * minLength: 1 character * maxLength: 6 characters */ @JsonProperty(JSON_PROPERTY_INVOICE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,9 +68,11 @@ public void setInvoiceNumber(String invoiceNumber) { } /** - * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters + * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: + * 2 characters * - * @param planName The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters + * @param planName The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 + * characters * maxLength: 2 characters * @return the current {@code Agency} instance, allowing for method chaining */ public Agency planName(String planName) { @@ -86,8 +81,11 @@ public Agency planName(String planName) { } /** - * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters - * @return planName The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters + * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: + * 2 characters + * + * @return planName The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 + * characters * maxLength: 2 characters */ @JsonProperty(JSON_PROPERTY_PLAN_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +94,11 @@ public String getPlanName() { } /** - * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters + * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: + * 2 characters * - * @param planName The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters + * @param planName The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 + * characters * maxLength: 2 characters */ @JsonProperty(JSON_PROPERTY_PLAN_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +106,7 @@ public void setPlanName(String planName) { this.planName = planName; } - /** - * Return true if this Agency object is equal to o. - */ + /** Return true if this Agency object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +116,8 @@ public boolean equals(Object o) { return false; } Agency agency = (Agency) o; - return Objects.equals(this.invoiceNumber, agency.invoiceNumber) && - Objects.equals(this.planName, agency.planName); + return Objects.equals(this.invoiceNumber, agency.invoiceNumber) + && Objects.equals(this.planName, agency.planName); } @Override @@ -138,8 +136,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +145,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Agency given an JSON string * * @param jsonString JSON string @@ -158,11 +155,12 @@ private String toIndentedString(Object o) { public static Agency fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Agency.class); } -/** - * Convert an instance of Agency to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Agency to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Airline.java b/src/main/java/com/adyen/model/checkout/Airline.java index fd74a9095..96e8b1138 100644 --- a/src/main/java/com/adyen/model/checkout/Airline.java +++ b/src/main/java/com/adyen/model/checkout/Airline.java @@ -2,39 +2,25 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Agency; -import com.adyen.model.checkout.Leg; -import com.adyen.model.checkout.Passenger; -import com.adyen.model.checkout.Ticket; -import com.adyen.model.checkout.TravelAgency; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -/** - * Airline - */ +/** Airline */ @JsonPropertyOrder({ Airline.JSON_PROPERTY_AGENCY, Airline.JSON_PROPERTY_BOARDING_FEE, @@ -50,7 +36,6 @@ Airline.JSON_PROPERTY_TICKET, Airline.JSON_PROPERTY_TRAVEL_AGENCY }) - public class Airline { public static final String JSON_PROPERTY_AGENCY = "agency"; private Agency agency; @@ -61,7 +46,8 @@ public class Airline { public static final String JSON_PROPERTY_CODE = "code"; private String code; - public static final String JSON_PROPERTY_COMPUTERIZED_RESERVATION_SYSTEM = "computerizedReservationSystem"; + public static final String JSON_PROPERTY_COMPUTERIZED_RESERVATION_SYSTEM = + "computerizedReservationSystem"; private String computerizedReservationSystem; public static final String JSON_PROPERTY_CUSTOMER_REFERENCE_NUMBER = "customerReferenceNumber"; @@ -91,13 +77,12 @@ public class Airline { public static final String JSON_PROPERTY_TRAVEL_AGENCY = "travelAgency"; private TravelAgency travelAgency; - public Airline() { - } + public Airline() {} /** * agency * - * @param agency + * @param agency * @return the current {@code Airline} instance, allowing for method chaining */ public Airline agency(Agency agency) { @@ -107,7 +92,8 @@ public Airline agency(Agency agency) { /** * Get agency - * @return agency + * + * @return agency */ @JsonProperty(JSON_PROPERTY_AGENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,7 +104,7 @@ public Agency getAgency() { /** * agency * - * @param agency + * @param agency */ @JsonProperty(JSON_PROPERTY_AGENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,9 +113,13 @@ public void setAgency(Agency agency) { } /** - * The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 11 characters + * The amount charged for boarding the plane, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * + * minLength: 1 character * maxLength: 11 characters * - * @param boardingFee The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 11 characters + * @param boardingFee The amount charged for boarding the plane, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * + * minLength: 1 character * maxLength: 11 characters * @return the current {@code Airline} instance, allowing for method chaining */ public Airline boardingFee(Long boardingFee) { @@ -138,8 +128,13 @@ public Airline boardingFee(Long boardingFee) { } /** - * The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 11 characters - * @return boardingFee The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 11 characters + * The amount charged for boarding the plane, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * + * minLength: 1 character * maxLength: 11 characters + * + * @return boardingFee The amount charged for boarding the plane, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * + * minLength: 1 character * maxLength: 11 characters */ @JsonProperty(JSON_PROPERTY_BOARDING_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,9 +143,13 @@ public Long getBoardingFee() { } /** - * The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 11 characters + * The amount charged for boarding the plane, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * + * minLength: 1 character * maxLength: 11 characters * - * @param boardingFee The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 11 characters + * @param boardingFee The amount charged for boarding the plane, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * + * minLength: 1 character * maxLength: 11 characters */ @JsonProperty(JSON_PROPERTY_BOARDING_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,9 +158,15 @@ public void setBoardingFee(Long boardingFee) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that + * identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 + * * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all + * spaces. * Must not be all zeros. * - * @param code The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param code The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code + * (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: + * KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not start with a + * space or be all spaces. * Must not be all zeros. * @return the current {@code Airline} instance, allowing for method chaining */ public Airline code(String code) { @@ -170,8 +175,15 @@ public Airline code(String code) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. - * @return code The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that + * identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 + * * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all + * spaces. * Must not be all zeros. + * + * @return code The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code + * (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: + * KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not start with a + * space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -180,9 +192,15 @@ public String getCode() { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that + * identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 + * * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all + * spaces. * Must not be all zeros. * - * @param code The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param code The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code + * (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: + * KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not start with a + * space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,9 +209,14 @@ public void setCode(String code) { } /** - * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters + * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the + * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 + * characters * - * @param computerizedReservationSystem The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters + * @param computerizedReservationSystem The + * [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the + * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * + * maxLength: 4 characters * @return the current {@code Airline} instance, allowing for method chaining */ public Airline computerizedReservationSystem(String computerizedReservationSystem) { @@ -202,8 +225,14 @@ public Airline computerizedReservationSystem(String computerizedReservationSyste } /** - * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters - * @return computerizedReservationSystem The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters + * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the + * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 + * characters + * + * @return computerizedReservationSystem The + * [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the + * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * + * maxLength: 4 characters */ @JsonProperty(JSON_PROPERTY_COMPUTERIZED_RESERVATION_SYSTEM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -212,9 +241,14 @@ public String getComputerizedReservationSystem() { } /** - * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters + * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the + * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 + * characters * - * @param computerizedReservationSystem The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters + * @param computerizedReservationSystem The + * [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the + * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * + * maxLength: 4 characters */ @JsonProperty(JSON_PROPERTY_COMPUTERIZED_RESERVATION_SYSTEM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,9 +257,13 @@ public void setComputerizedReservationSystem(String computerizedReservationSyste } /** - * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not start with a space or be all spaces. + * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If + * you send more than 20 characters, the customer reference number is truncated * Must not start + * with a space or be all spaces. * - * @param customerReferenceNumber The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not start with a space or be all spaces. + * @param customerReferenceNumber The alphanumeric customer reference number. * Encoding: ASCII * + * maxLength: 20 characters * If you send more than 20 characters, the customer reference + * number is truncated * Must not start with a space or be all spaces. * @return the current {@code Airline} instance, allowing for method chaining */ public Airline customerReferenceNumber(String customerReferenceNumber) { @@ -234,8 +272,13 @@ public Airline customerReferenceNumber(String customerReferenceNumber) { } /** - * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not start with a space or be all spaces. - * @return customerReferenceNumber The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not start with a space or be all spaces. + * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If + * you send more than 20 characters, the customer reference number is truncated * Must not start + * with a space or be all spaces. + * + * @return customerReferenceNumber The alphanumeric customer reference number. * Encoding: ASCII * + * maxLength: 20 characters * If you send more than 20 characters, the customer reference + * number is truncated * Must not start with a space or be all spaces. */ @JsonProperty(JSON_PROPERTY_CUSTOMER_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,9 +287,13 @@ public String getCustomerReferenceNumber() { } /** - * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not start with a space or be all spaces. + * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If + * you send more than 20 characters, the customer reference number is truncated * Must not start + * with a space or be all spaces. * - * @param customerReferenceNumber The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not start with a space or be all spaces. + * @param customerReferenceNumber The alphanumeric customer reference number. * Encoding: ASCII * + * maxLength: 20 characters * If you send more than 20 characters, the customer reference + * number is truncated * Must not start with a space or be all spaces. */ @JsonProperty(JSON_PROPERTY_CUSTOMER_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -255,9 +302,14 @@ public void setCustomerReferenceNumber(String customerReferenceNumber) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that + * identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * + * maxLength: 2 characters * Must not start with a space or be all spaces. * - * @param designatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. + * @param designatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter + * accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = + * KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be + * all spaces. * @return the current {@code Airline} instance, allowing for method chaining */ public Airline designatorCode(String designatorCode) { @@ -266,8 +318,14 @@ public Airline designatorCode(String designatorCode) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. - * @return designatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that + * identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * + * maxLength: 2 characters * Must not start with a space or be all spaces. + * + * @return designatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter + * accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = + * KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be + * all spaces. */ @JsonProperty(JSON_PROPERTY_DESIGNATOR_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -276,9 +334,14 @@ public String getDesignatorCode() { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that + * identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * + * maxLength: 2 characters * Must not start with a space or be all spaces. * - * @param designatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. + * @param designatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter + * accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = + * KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be + * all spaces. */ @JsonProperty(JSON_PROPERTY_DESIGNATOR_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -287,9 +350,13 @@ public void setDesignatorCode(String designatorCode) { } /** - * A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters + * A code that identifies the type of item bought. The description of the code can appear on + * credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 + * characters * maxLength: 2 characters * - * @param documentType A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters + * @param documentType A code that identifies the type of item bought. The description of the code + * can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = + * 01 * minLength: 2 characters * maxLength: 2 characters * @return the current {@code Airline} instance, allowing for method chaining */ public Airline documentType(String documentType) { @@ -298,8 +365,13 @@ public Airline documentType(String documentType) { } /** - * A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters - * @return documentType A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters + * A code that identifies the type of item bought. The description of the code can appear on + * credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 + * characters * maxLength: 2 characters + * + * @return documentType A code that identifies the type of item bought. The description of the + * code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket + * = 01 * minLength: 2 characters * maxLength: 2 characters */ @JsonProperty(JSON_PROPERTY_DOCUMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -308,9 +380,13 @@ public String getDocumentType() { } /** - * A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters + * A code that identifies the type of item bought. The description of the code can appear on + * credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 + * characters * maxLength: 2 characters * - * @param documentType A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters + * @param documentType A code that identifies the type of item bought. The description of the code + * can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = + * 01 * minLength: 2 characters * maxLength: 2 characters */ @JsonProperty(JSON_PROPERTY_DOCUMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -319,9 +395,13 @@ public void setDocumentType(String documentType) { } /** - * The flight departure date. Time is optional. * Format for date only: `yyyy-MM-dd` * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local time of departure airport. * minLength: 10 characters * maxLength: 16 characters + * The flight departure date. Time is optional. * Format for date only: `yyyy-MM-dd` * + * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local time of departure airport. * + * minLength: 10 characters * maxLength: 16 characters * - * @param flightDate The flight departure date. Time is optional. * Format for date only: `yyyy-MM-dd` * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local time of departure airport. * minLength: 10 characters * maxLength: 16 characters + * @param flightDate The flight departure date. Time is optional. * Format for date only: + * `yyyy-MM-dd` * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local + * time of departure airport. * minLength: 10 characters * maxLength: 16 characters * @return the current {@code Airline} instance, allowing for method chaining */ public Airline flightDate(OffsetDateTime flightDate) { @@ -330,8 +410,13 @@ public Airline flightDate(OffsetDateTime flightDate) { } /** - * The flight departure date. Time is optional. * Format for date only: `yyyy-MM-dd` * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local time of departure airport. * minLength: 10 characters * maxLength: 16 characters - * @return flightDate The flight departure date. Time is optional. * Format for date only: `yyyy-MM-dd` * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local time of departure airport. * minLength: 10 characters * maxLength: 16 characters + * The flight departure date. Time is optional. * Format for date only: `yyyy-MM-dd` * + * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local time of departure airport. * + * minLength: 10 characters * maxLength: 16 characters + * + * @return flightDate The flight departure date. Time is optional. * Format for date only: + * `yyyy-MM-dd` * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local + * time of departure airport. * minLength: 10 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_FLIGHT_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -340,9 +425,13 @@ public OffsetDateTime getFlightDate() { } /** - * The flight departure date. Time is optional. * Format for date only: `yyyy-MM-dd` * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local time of departure airport. * minLength: 10 characters * maxLength: 16 characters + * The flight departure date. Time is optional. * Format for date only: `yyyy-MM-dd` * + * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local time of departure airport. * + * minLength: 10 characters * maxLength: 16 characters * - * @param flightDate The flight departure date. Time is optional. * Format for date only: `yyyy-MM-dd` * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local time of departure airport. * minLength: 10 characters * maxLength: 16 characters + * @param flightDate The flight departure date. Time is optional. * Format for date only: + * `yyyy-MM-dd` * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local + * time of departure airport. * minLength: 10 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_FLIGHT_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -353,7 +442,7 @@ public void setFlightDate(OffsetDateTime flightDate) { /** * legs * - * @param legs + * @param legs * @return the current {@code Airline} instance, allowing for method chaining */ public Airline legs(List legs) { @@ -371,7 +460,8 @@ public Airline addLegsItem(Leg legsItem) { /** * Get legs - * @return legs + * + * @return legs */ @JsonProperty(JSON_PROPERTY_LEGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -382,7 +472,7 @@ public List getLegs() { /** * legs * - * @param legs + * @param legs */ @JsonProperty(JSON_PROPERTY_LEGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -391,9 +481,15 @@ public void setLegs(List legs) { } /** - * The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not start with a space or be all spaces. * Must not be all zeros. + * The passenger's name, initials, and title. * Format: last name + first name or initials + + * title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you + * send more than 20 characters, the name is truncated * Must not start with a space or be all + * spaces. * Must not be all zeros. * - * @param passengerName The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not start with a space or be all spaces. * Must not be all zeros. + * @param passengerName The passenger's name, initials, and title. * Format: last name + first + * name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: + * 20 characters * If you send more than 20 characters, the name is truncated * Must not start + * with a space or be all spaces. * Must not be all zeros. * @return the current {@code Airline} instance, allowing for method chaining */ public Airline passengerName(String passengerName) { @@ -402,8 +498,15 @@ public Airline passengerName(String passengerName) { } /** - * The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not start with a space or be all spaces. * Must not be all zeros. - * @return passengerName The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not start with a space or be all spaces. * Must not be all zeros. + * The passenger's name, initials, and title. * Format: last name + first name or initials + + * title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you + * send more than 20 characters, the name is truncated * Must not start with a space or be all + * spaces. * Must not be all zeros. + * + * @return passengerName The passenger's name, initials, and title. * Format: last name + + * first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * + * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * + * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_PASSENGER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -412,9 +515,15 @@ public String getPassengerName() { } /** - * The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not start with a space or be all spaces. * Must not be all zeros. + * The passenger's name, initials, and title. * Format: last name + first name or initials + + * title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you + * send more than 20 characters, the name is truncated * Must not start with a space or be all + * spaces. * Must not be all zeros. * - * @param passengerName The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not start with a space or be all spaces. * Must not be all zeros. + * @param passengerName The passenger's name, initials, and title. * Format: last name + first + * name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: + * 20 characters * If you send more than 20 characters, the name is truncated * Must not start + * with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_PASSENGER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -425,7 +534,7 @@ public void setPassengerName(String passengerName) { /** * passengers * - * @param passengers + * @param passengers * @return the current {@code Airline} instance, allowing for method chaining */ public Airline passengers(List passengers) { @@ -443,7 +552,8 @@ public Airline addPassengersItem(Passenger passengersItem) { /** * Get passengers - * @return passengers + * + * @return passengers */ @JsonProperty(JSON_PROPERTY_PASSENGERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -454,7 +564,7 @@ public List getPassengers() { /** * passengers * - * @param passengers + * @param passengers */ @JsonProperty(JSON_PROPERTY_PASSENGERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -465,7 +575,7 @@ public void setPassengers(List passengers) { /** * ticket * - * @param ticket + * @param ticket * @return the current {@code Airline} instance, allowing for method chaining */ public Airline ticket(Ticket ticket) { @@ -475,7 +585,8 @@ public Airline ticket(Ticket ticket) { /** * Get ticket - * @return ticket + * + * @return ticket */ @JsonProperty(JSON_PROPERTY_TICKET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -486,7 +597,7 @@ public Ticket getTicket() { /** * ticket * - * @param ticket + * @param ticket */ @JsonProperty(JSON_PROPERTY_TICKET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -497,7 +608,7 @@ public void setTicket(Ticket ticket) { /** * travelAgency * - * @param travelAgency + * @param travelAgency * @return the current {@code Airline} instance, allowing for method chaining */ public Airline travelAgency(TravelAgency travelAgency) { @@ -507,7 +618,8 @@ public Airline travelAgency(TravelAgency travelAgency) { /** * Get travelAgency - * @return travelAgency + * + * @return travelAgency */ @JsonProperty(JSON_PROPERTY_TRAVEL_AGENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -518,7 +630,7 @@ public TravelAgency getTravelAgency() { /** * travelAgency * - * @param travelAgency + * @param travelAgency */ @JsonProperty(JSON_PROPERTY_TRAVEL_AGENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -526,9 +638,7 @@ public void setTravelAgency(TravelAgency travelAgency) { this.travelAgency = travelAgency; } - /** - * Return true if this Airline object is equal to o. - */ + /** Return true if this Airline object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -538,24 +648,37 @@ public boolean equals(Object o) { return false; } Airline airline = (Airline) o; - return Objects.equals(this.agency, airline.agency) && - Objects.equals(this.boardingFee, airline.boardingFee) && - Objects.equals(this.code, airline.code) && - Objects.equals(this.computerizedReservationSystem, airline.computerizedReservationSystem) && - Objects.equals(this.customerReferenceNumber, airline.customerReferenceNumber) && - Objects.equals(this.designatorCode, airline.designatorCode) && - Objects.equals(this.documentType, airline.documentType) && - Objects.equals(this.flightDate, airline.flightDate) && - Objects.equals(this.legs, airline.legs) && - Objects.equals(this.passengerName, airline.passengerName) && - Objects.equals(this.passengers, airline.passengers) && - Objects.equals(this.ticket, airline.ticket) && - Objects.equals(this.travelAgency, airline.travelAgency); + return Objects.equals(this.agency, airline.agency) + && Objects.equals(this.boardingFee, airline.boardingFee) + && Objects.equals(this.code, airline.code) + && Objects.equals(this.computerizedReservationSystem, airline.computerizedReservationSystem) + && Objects.equals(this.customerReferenceNumber, airline.customerReferenceNumber) + && Objects.equals(this.designatorCode, airline.designatorCode) + && Objects.equals(this.documentType, airline.documentType) + && Objects.equals(this.flightDate, airline.flightDate) + && Objects.equals(this.legs, airline.legs) + && Objects.equals(this.passengerName, airline.passengerName) + && Objects.equals(this.passengers, airline.passengers) + && Objects.equals(this.ticket, airline.ticket) + && Objects.equals(this.travelAgency, airline.travelAgency); } @Override public int hashCode() { - return Objects.hash(agency, boardingFee, code, computerizedReservationSystem, customerReferenceNumber, designatorCode, documentType, flightDate, legs, passengerName, passengers, ticket, travelAgency); + return Objects.hash( + agency, + boardingFee, + code, + computerizedReservationSystem, + customerReferenceNumber, + designatorCode, + documentType, + flightDate, + legs, + passengerName, + passengers, + ticket, + travelAgency); } @Override @@ -565,8 +688,12 @@ public String toString() { sb.append(" agency: ").append(toIndentedString(agency)).append("\n"); sb.append(" boardingFee: ").append(toIndentedString(boardingFee)).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" computerizedReservationSystem: ").append(toIndentedString(computerizedReservationSystem)).append("\n"); - sb.append(" customerReferenceNumber: ").append(toIndentedString(customerReferenceNumber)).append("\n"); + sb.append(" computerizedReservationSystem: ") + .append(toIndentedString(computerizedReservationSystem)) + .append("\n"); + sb.append(" customerReferenceNumber: ") + .append(toIndentedString(customerReferenceNumber)) + .append("\n"); sb.append(" designatorCode: ").append(toIndentedString(designatorCode)).append("\n"); sb.append(" documentType: ").append(toIndentedString(documentType)).append("\n"); sb.append(" flightDate: ").append(toIndentedString(flightDate)).append("\n"); @@ -580,8 +707,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -590,7 +716,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Airline given an JSON string * * @param jsonString JSON string @@ -600,11 +726,12 @@ private String toIndentedString(Object o) { public static Airline fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Airline.class); } -/** - * Convert an instance of Airline to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Airline to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AmazonPayDetails.java b/src/main/java/com/adyen/model/checkout/AmazonPayDetails.java index 51b8b8b53..023946dd0 100644 --- a/src/main/java/com/adyen/model/checkout/AmazonPayDetails.java +++ b/src/main/java/com/adyen/model/checkout/AmazonPayDetails.java @@ -2,38 +2,32 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * AmazonPayDetails - */ +/** AmazonPayDetails */ @JsonPropertyOrder({ AmazonPayDetails.JSON_PROPERTY_AMAZON_PAY_TOKEN, AmazonPayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, AmazonPayDetails.JSON_PROPERTY_CHECKOUT_SESSION_ID, AmazonPayDetails.JSON_PROPERTY_TYPE }) - public class AmazonPayDetails { public static final String JSON_PROPERTY_AMAZON_PAY_TOKEN = "amazonPayToken"; private String amazonPayToken; @@ -44,11 +38,8 @@ public class AmazonPayDetails { public static final String JSON_PROPERTY_CHECKOUT_SESSION_ID = "checkoutSessionId"; private String checkoutSessionId; - /** - * **amazonpay** - */ + /** **amazonpay** */ public enum TypeEnum { - AMAZONPAY(String.valueOf("amazonpay")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -56,7 +47,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -77,7 +68,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -85,13 +80,17 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AmazonPayDetails() { - } + public AmazonPayDetails() {} /** - * This is the `amazonPayToken` that you obtained from the [Get Checkout Session](https://amazon-pay-acquirer-guide.s3-eu-west-1.amazonaws.com/v1/amazon-pay-api-v2/checkout-session.html#get-checkout-session) response. This token is used for API only integration specifically. + * This is the `amazonPayToken` that you obtained from the [Get Checkout + * Session](https://amazon-pay-acquirer-guide.s3-eu-west-1.amazonaws.com/v1/amazon-pay-api-v2/checkout-session.html#get-checkout-session) + * response. This token is used for API only integration specifically. * - * @param amazonPayToken This is the `amazonPayToken` that you obtained from the [Get Checkout Session](https://amazon-pay-acquirer-guide.s3-eu-west-1.amazonaws.com/v1/amazon-pay-api-v2/checkout-session.html#get-checkout-session) response. This token is used for API only integration specifically. + * @param amazonPayToken This is the `amazonPayToken` that you obtained from the [Get + * Checkout + * Session](https://amazon-pay-acquirer-guide.s3-eu-west-1.amazonaws.com/v1/amazon-pay-api-v2/checkout-session.html#get-checkout-session) + * response. This token is used for API only integration specifically. * @return the current {@code AmazonPayDetails} instance, allowing for method chaining */ public AmazonPayDetails amazonPayToken(String amazonPayToken) { @@ -100,8 +99,14 @@ public AmazonPayDetails amazonPayToken(String amazonPayToken) { } /** - * This is the `amazonPayToken` that you obtained from the [Get Checkout Session](https://amazon-pay-acquirer-guide.s3-eu-west-1.amazonaws.com/v1/amazon-pay-api-v2/checkout-session.html#get-checkout-session) response. This token is used for API only integration specifically. - * @return amazonPayToken This is the `amazonPayToken` that you obtained from the [Get Checkout Session](https://amazon-pay-acquirer-guide.s3-eu-west-1.amazonaws.com/v1/amazon-pay-api-v2/checkout-session.html#get-checkout-session) response. This token is used for API only integration specifically. + * This is the `amazonPayToken` that you obtained from the [Get Checkout + * Session](https://amazon-pay-acquirer-guide.s3-eu-west-1.amazonaws.com/v1/amazon-pay-api-v2/checkout-session.html#get-checkout-session) + * response. This token is used for API only integration specifically. + * + * @return amazonPayToken This is the `amazonPayToken` that you obtained from the [Get + * Checkout + * Session](https://amazon-pay-acquirer-guide.s3-eu-west-1.amazonaws.com/v1/amazon-pay-api-v2/checkout-session.html#get-checkout-session) + * response. This token is used for API only integration specifically. */ @JsonProperty(JSON_PROPERTY_AMAZON_PAY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,9 +115,14 @@ public String getAmazonPayToken() { } /** - * This is the `amazonPayToken` that you obtained from the [Get Checkout Session](https://amazon-pay-acquirer-guide.s3-eu-west-1.amazonaws.com/v1/amazon-pay-api-v2/checkout-session.html#get-checkout-session) response. This token is used for API only integration specifically. + * This is the `amazonPayToken` that you obtained from the [Get Checkout + * Session](https://amazon-pay-acquirer-guide.s3-eu-west-1.amazonaws.com/v1/amazon-pay-api-v2/checkout-session.html#get-checkout-session) + * response. This token is used for API only integration specifically. * - * @param amazonPayToken This is the `amazonPayToken` that you obtained from the [Get Checkout Session](https://amazon-pay-acquirer-guide.s3-eu-west-1.amazonaws.com/v1/amazon-pay-api-v2/checkout-session.html#get-checkout-session) response. This token is used for API only integration specifically. + * @param amazonPayToken This is the `amazonPayToken` that you obtained from the [Get + * Checkout + * Session](https://amazon-pay-acquirer-guide.s3-eu-west-1.amazonaws.com/v1/amazon-pay-api-v2/checkout-session.html#get-checkout-session) + * response. This token is used for API only integration specifically. */ @JsonProperty(JSON_PROPERTY_AMAZON_PAY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -133,6 +143,7 @@ public AmazonPayDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -153,9 +164,13 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * The `checkoutSessionId` is used to identify the checkout session at the Amazon Pay side. This field is required only for drop-in and components integration, where it replaces the amazonPayToken. + * The `checkoutSessionId` is used to identify the checkout session at the Amazon Pay + * side. This field is required only for drop-in and components integration, where it replaces the + * amazonPayToken. * - * @param checkoutSessionId The `checkoutSessionId` is used to identify the checkout session at the Amazon Pay side. This field is required only for drop-in and components integration, where it replaces the amazonPayToken. + * @param checkoutSessionId The `checkoutSessionId` is used to identify the checkout + * session at the Amazon Pay side. This field is required only for drop-in and components + * integration, where it replaces the amazonPayToken. * @return the current {@code AmazonPayDetails} instance, allowing for method chaining */ public AmazonPayDetails checkoutSessionId(String checkoutSessionId) { @@ -164,8 +179,13 @@ public AmazonPayDetails checkoutSessionId(String checkoutSessionId) { } /** - * The `checkoutSessionId` is used to identify the checkout session at the Amazon Pay side. This field is required only for drop-in and components integration, where it replaces the amazonPayToken. - * @return checkoutSessionId The `checkoutSessionId` is used to identify the checkout session at the Amazon Pay side. This field is required only for drop-in and components integration, where it replaces the amazonPayToken. + * The `checkoutSessionId` is used to identify the checkout session at the Amazon Pay + * side. This field is required only for drop-in and components integration, where it replaces the + * amazonPayToken. + * + * @return checkoutSessionId The `checkoutSessionId` is used to identify the checkout + * session at the Amazon Pay side. This field is required only for drop-in and components + * integration, where it replaces the amazonPayToken. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_SESSION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -174,9 +194,13 @@ public String getCheckoutSessionId() { } /** - * The `checkoutSessionId` is used to identify the checkout session at the Amazon Pay side. This field is required only for drop-in and components integration, where it replaces the amazonPayToken. + * The `checkoutSessionId` is used to identify the checkout session at the Amazon Pay + * side. This field is required only for drop-in and components integration, where it replaces the + * amazonPayToken. * - * @param checkoutSessionId The `checkoutSessionId` is used to identify the checkout session at the Amazon Pay side. This field is required only for drop-in and components integration, where it replaces the amazonPayToken. + * @param checkoutSessionId The `checkoutSessionId` is used to identify the checkout + * session at the Amazon Pay side. This field is required only for drop-in and components + * integration, where it replaces the amazonPayToken. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_SESSION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -197,6 +221,7 @@ public AmazonPayDetails type(TypeEnum type) { /** * **amazonpay** + * * @return type **amazonpay** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -216,9 +241,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this AmazonPayDetails object is equal to o. - */ + /** Return true if this AmazonPayDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -228,10 +251,10 @@ public boolean equals(Object o) { return false; } AmazonPayDetails amazonPayDetails = (AmazonPayDetails) o; - return Objects.equals(this.amazonPayToken, amazonPayDetails.amazonPayToken) && - Objects.equals(this.checkoutAttemptId, amazonPayDetails.checkoutAttemptId) && - Objects.equals(this.checkoutSessionId, amazonPayDetails.checkoutSessionId) && - Objects.equals(this.type, amazonPayDetails.type); + return Objects.equals(this.amazonPayToken, amazonPayDetails.amazonPayToken) + && Objects.equals(this.checkoutAttemptId, amazonPayDetails.checkoutAttemptId) + && Objects.equals(this.checkoutSessionId, amazonPayDetails.checkoutSessionId) + && Objects.equals(this.type, amazonPayDetails.type); } @Override @@ -252,8 +275,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -262,7 +284,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AmazonPayDetails given an JSON string * * @param jsonString JSON string @@ -272,11 +294,12 @@ private String toIndentedString(Object o) { public static AmazonPayDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AmazonPayDetails.class); } -/** - * Convert an instance of AmazonPayDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AmazonPayDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Amount.java b/src/main/java/com/adyen/model/checkout/Amount.java index a01f2a09d..7f0b61d65 100644 --- a/src/main/java/com/adyen/model/checkout/Amount.java +++ b/src/main/java/com/adyen/model/checkout/Amount.java @@ -2,36 +2,23 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Amount - */ -@JsonPropertyOrder({ - Amount.JSON_PROPERTY_CURRENCY, - Amount.JSON_PROPERTY_VALUE -}) - +/** Amount */ +@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -39,13 +26,14 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() { - } + public Amount() {} /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount currency(String currency) { @@ -54,8 +42,11 @@ public Amount currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +55,11 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,9 +68,11 @@ public void setCurrency(String currency) { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount value(Long value) { @@ -86,8 +81,11 @@ public Amount value(Long value) { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). - * @return value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * + * @return value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +94,11 @@ public Long getValue() { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +106,7 @@ public void setValue(Long value) { this.value = value; } - /** - * Return true if this Amount object is equal to o. - */ + /** Return true if this Amount object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +116,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) && - Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) + && Objects.equals(this.value, amount.value); } @Override @@ -138,8 +136,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +145,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -158,11 +155,12 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } -/** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Amounts.java b/src/main/java/com/adyen/model/checkout/Amounts.java index 23dd95171..a0ecfc893 100644 --- a/src/main/java/com/adyen/model/checkout/Amounts.java +++ b/src/main/java/com/adyen/model/checkout/Amounts.java @@ -2,38 +2,25 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * Amounts - */ -@JsonPropertyOrder({ - Amounts.JSON_PROPERTY_CURRENCY, - Amounts.JSON_PROPERTY_VALUES -}) - +/** Amounts */ +@JsonPropertyOrder({Amounts.JSON_PROPERTY_CURRENCY, Amounts.JSON_PROPERTY_VALUES}) public class Amounts { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -41,13 +28,14 @@ public class Amounts { public static final String JSON_PROPERTY_VALUES = "values"; private List values; - public Amounts() { - } + public Amounts() {} /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes/). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes/). * @return the current {@code Amounts} instance, allowing for method chaining */ public Amounts currency(String currency) { @@ -56,8 +44,11 @@ public Amounts currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes/). + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes/). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -66,9 +57,11 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes/). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes/). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -77,9 +70,11 @@ public void setCurrency(String currency) { } /** - * The amounts of the donation (in [minor units](https://docs.adyen.com/development-resources/currency-codes/)). + * The amounts of the donation (in [minor + * units](https://docs.adyen.com/development-resources/currency-codes/)). * - * @param values The amounts of the donation (in [minor units](https://docs.adyen.com/development-resources/currency-codes/)). + * @param values The amounts of the donation (in [minor + * units](https://docs.adyen.com/development-resources/currency-codes/)). * @return the current {@code Amounts} instance, allowing for method chaining */ public Amounts values(List values) { @@ -96,8 +91,11 @@ public Amounts addValuesItem(Long valuesItem) { } /** - * The amounts of the donation (in [minor units](https://docs.adyen.com/development-resources/currency-codes/)). - * @return values The amounts of the donation (in [minor units](https://docs.adyen.com/development-resources/currency-codes/)). + * The amounts of the donation (in [minor + * units](https://docs.adyen.com/development-resources/currency-codes/)). + * + * @return values The amounts of the donation (in [minor + * units](https://docs.adyen.com/development-resources/currency-codes/)). */ @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +104,11 @@ public List getValues() { } /** - * The amounts of the donation (in [minor units](https://docs.adyen.com/development-resources/currency-codes/)). + * The amounts of the donation (in [minor + * units](https://docs.adyen.com/development-resources/currency-codes/)). * - * @param values The amounts of the donation (in [minor units](https://docs.adyen.com/development-resources/currency-codes/)). + * @param values The amounts of the donation (in [minor + * units](https://docs.adyen.com/development-resources/currency-codes/)). */ @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,9 +116,7 @@ public void setValues(List values) { this.values = values; } - /** - * Return true if this Amounts object is equal to o. - */ + /** Return true if this Amounts object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -128,8 +126,8 @@ public boolean equals(Object o) { return false; } Amounts amounts = (Amounts) o; - return Objects.equals(this.currency, amounts.currency) && - Objects.equals(this.values, amounts.values); + return Objects.equals(this.currency, amounts.currency) + && Objects.equals(this.values, amounts.values); } @Override @@ -148,8 +146,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -158,7 +155,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Amounts given an JSON string * * @param jsonString JSON string @@ -168,11 +165,12 @@ private String toIndentedString(Object o) { public static Amounts fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amounts.class); } -/** - * Convert an instance of Amounts to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Amounts to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AncvDetails.java b/src/main/java/com/adyen/model/checkout/AncvDetails.java index 60f1af37e..f9d406b7c 100644 --- a/src/main/java/com/adyen/model/checkout/AncvDetails.java +++ b/src/main/java/com/adyen/model/checkout/AncvDetails.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * AncvDetails - */ +/** AncvDetails */ @JsonPropertyOrder({ AncvDetails.JSON_PROPERTY_BENEFICIARY_ID, AncvDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, @@ -34,7 +29,6 @@ AncvDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, AncvDetails.JSON_PROPERTY_TYPE }) - public class AncvDetails { public static final String JSON_PROPERTY_BENEFICIARY_ID = "beneficiaryId"; private String beneficiaryId; @@ -49,11 +43,8 @@ public class AncvDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** - * **ancv** - */ + /** **ancv** */ public enum TypeEnum { - ANCV(String.valueOf("ancv")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -61,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -82,7 +73,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -90,8 +85,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AncvDetails() { - } + public AncvDetails() {} /** * ANCV account identification (email or account number) @@ -106,6 +100,7 @@ public AncvDetails beneficiaryId(String beneficiaryId) { /** * ANCV account identification (email or account number) + * * @return beneficiaryId ANCV account identification (email or account number) */ @JsonProperty(JSON_PROPERTY_BENEFICIARY_ID) @@ -138,6 +133,7 @@ public AncvDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -158,13 +154,13 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code AncvDetails} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public AncvDetails recurringDetailReference(String recurringDetailReference) { @@ -173,8 +169,11 @@ public AncvDetails recurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -185,12 +184,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -200,9 +199,11 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code AncvDetails} instance, allowing for method chaining */ public AncvDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -211,8 +212,11 @@ public AncvDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,9 +225,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,6 +250,7 @@ public AncvDetails type(TypeEnum type) { /** * **ancv** + * * @return type **ancv** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -263,9 +270,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this AncvDetails object is equal to o. - */ + /** Return true if this AncvDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -275,16 +280,17 @@ public boolean equals(Object o) { return false; } AncvDetails ancvDetails = (AncvDetails) o; - return Objects.equals(this.beneficiaryId, ancvDetails.beneficiaryId) && - Objects.equals(this.checkoutAttemptId, ancvDetails.checkoutAttemptId) && - Objects.equals(this.recurringDetailReference, ancvDetails.recurringDetailReference) && - Objects.equals(this.storedPaymentMethodId, ancvDetails.storedPaymentMethodId) && - Objects.equals(this.type, ancvDetails.type); + return Objects.equals(this.beneficiaryId, ancvDetails.beneficiaryId) + && Objects.equals(this.checkoutAttemptId, ancvDetails.checkoutAttemptId) + && Objects.equals(this.recurringDetailReference, ancvDetails.recurringDetailReference) + && Objects.equals(this.storedPaymentMethodId, ancvDetails.storedPaymentMethodId) + && Objects.equals(this.type, ancvDetails.type); } @Override public int hashCode() { - return Objects.hash(beneficiaryId, checkoutAttemptId, recurringDetailReference, storedPaymentMethodId, type); + return Objects.hash( + beneficiaryId, checkoutAttemptId, recurringDetailReference, storedPaymentMethodId, type); } @Override @@ -293,16 +299,19 @@ public String toString() { sb.append("class AncvDetails {\n"); sb.append(" beneficiaryId: ").append(toIndentedString(beneficiaryId)).append("\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -311,7 +320,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AncvDetails given an JSON string * * @param jsonString JSON string @@ -321,11 +330,12 @@ private String toIndentedString(Object o) { public static AncvDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AncvDetails.class); } -/** - * Convert an instance of AncvDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AncvDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AndroidPayDetails.java b/src/main/java/com/adyen/model/checkout/AndroidPayDetails.java index 16ed1220c..f4a04af78 100644 --- a/src/main/java/com/adyen/model/checkout/AndroidPayDetails.java +++ b/src/main/java/com/adyen/model/checkout/AndroidPayDetails.java @@ -2,45 +2,36 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * AndroidPayDetails - */ +/** AndroidPayDetails */ @JsonPropertyOrder({ AndroidPayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, AndroidPayDetails.JSON_PROPERTY_TYPE }) - public class AndroidPayDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; - /** - * **androidpay** - */ + /** **androidpay** */ public enum TypeEnum { - ANDROIDPAY(String.valueOf("androidpay")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +39,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,8 +72,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AndroidPayDetails() { - } + public AndroidPayDetails() {} /** * The checkout attempt identifier. @@ -93,6 +87,7 @@ public AndroidPayDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -125,6 +120,7 @@ public AndroidPayDetails type(TypeEnum type) { /** * **androidpay** + * * @return type **androidpay** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -144,9 +140,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this AndroidPayDetails object is equal to o. - */ + /** Return true if this AndroidPayDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +150,8 @@ public boolean equals(Object o) { return false; } AndroidPayDetails androidPayDetails = (AndroidPayDetails) o; - return Objects.equals(this.checkoutAttemptId, androidPayDetails.checkoutAttemptId) && - Objects.equals(this.type, androidPayDetails.type); + return Objects.equals(this.checkoutAttemptId, androidPayDetails.checkoutAttemptId) + && Objects.equals(this.type, androidPayDetails.type); } @Override @@ -176,8 +170,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +179,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AndroidPayDetails given an JSON string * * @param jsonString JSON string @@ -196,11 +189,12 @@ private String toIndentedString(Object o) { public static AndroidPayDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AndroidPayDetails.class); } -/** - * Convert an instance of AndroidPayDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AndroidPayDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ApplePayDetails.java b/src/main/java/com/adyen/model/checkout/ApplePayDetails.java index 866307b62..6f262032a 100644 --- a/src/main/java/com/adyen/model/checkout/ApplePayDetails.java +++ b/src/main/java/com/adyen/model/checkout/ApplePayDetails.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * ApplePayDetails - */ +/** ApplePayDetails */ @JsonPropertyOrder({ ApplePayDetails.JSON_PROPERTY_APPLE_PAY_TOKEN, ApplePayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, @@ -35,7 +30,6 @@ ApplePayDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, ApplePayDetails.JSON_PROPERTY_TYPE }) - public class ApplePayDetails { public static final String JSON_PROPERTY_APPLE_PAY_TOKEN = "applePayToken"; private String applePayToken; @@ -44,10 +38,10 @@ public class ApplePayDetails { private String checkoutAttemptId; /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. */ public enum FundingSourceEnum { - CREDIT(String.valueOf("credit")), DEBIT(String.valueOf("debit")); @@ -57,7 +51,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -78,7 +72,11 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); + LOG.warning( + "FundingSourceEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -93,11 +91,8 @@ public static FundingSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** - * **applepay** - */ + /** **applepay** */ public enum TypeEnum { - APPLEPAY(String.valueOf("applepay")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -105,7 +100,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -126,7 +121,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -134,13 +133,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public ApplePayDetails() { - } + public ApplePayDetails() {} /** - * The stringified and base64 encoded `paymentData` you retrieved from the Apple framework. + * The stringified and base64 encoded `paymentData` you retrieved from the Apple + * framework. * - * @param applePayToken The stringified and base64 encoded `paymentData` you retrieved from the Apple framework. + * @param applePayToken The stringified and base64 encoded `paymentData` you retrieved + * from the Apple framework. * @return the current {@code ApplePayDetails} instance, allowing for method chaining */ public ApplePayDetails applePayToken(String applePayToken) { @@ -149,8 +149,11 @@ public ApplePayDetails applePayToken(String applePayToken) { } /** - * The stringified and base64 encoded `paymentData` you retrieved from the Apple framework. - * @return applePayToken The stringified and base64 encoded `paymentData` you retrieved from the Apple framework. + * The stringified and base64 encoded `paymentData` you retrieved from the Apple + * framework. + * + * @return applePayToken The stringified and base64 encoded `paymentData` you retrieved + * from the Apple framework. */ @JsonProperty(JSON_PROPERTY_APPLE_PAY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,9 +162,11 @@ public String getApplePayToken() { } /** - * The stringified and base64 encoded `paymentData` you retrieved from the Apple framework. + * The stringified and base64 encoded `paymentData` you retrieved from the Apple + * framework. * - * @param applePayToken The stringified and base64 encoded `paymentData` you retrieved from the Apple framework. + * @param applePayToken The stringified and base64 encoded `paymentData` you retrieved + * from the Apple framework. */ @JsonProperty(JSON_PROPERTY_APPLE_PAY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,6 +187,7 @@ public ApplePayDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -202,9 +208,12 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. * @return the current {@code ApplePayDetails} instance, allowing for method chaining */ public ApplePayDetails fundingSource(FundingSourceEnum fundingSource) { @@ -213,8 +222,12 @@ public ApplePayDetails fundingSource(FundingSourceEnum fundingSource) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. - * @return fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * + * @return fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,9 +236,12 @@ public FundingSourceEnum getFundingSource() { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -234,13 +250,13 @@ public void setFundingSource(FundingSourceEnum fundingSource) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code ApplePayDetails} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public ApplePayDetails recurringDetailReference(String recurringDetailReference) { @@ -249,8 +265,11 @@ public ApplePayDetails recurringDetailReference(String recurringDetailReference) } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -261,12 +280,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -276,9 +295,11 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code ApplePayDetails} instance, allowing for method chaining */ public ApplePayDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -287,8 +308,11 @@ public ApplePayDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -297,9 +321,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -320,6 +346,7 @@ public ApplePayDetails type(TypeEnum type) { /** * **applepay** + * * @return type **applepay** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -339,9 +366,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this ApplePayDetails object is equal to o. - */ + /** Return true if this ApplePayDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -351,17 +376,23 @@ public boolean equals(Object o) { return false; } ApplePayDetails applePayDetails = (ApplePayDetails) o; - return Objects.equals(this.applePayToken, applePayDetails.applePayToken) && - Objects.equals(this.checkoutAttemptId, applePayDetails.checkoutAttemptId) && - Objects.equals(this.fundingSource, applePayDetails.fundingSource) && - Objects.equals(this.recurringDetailReference, applePayDetails.recurringDetailReference) && - Objects.equals(this.storedPaymentMethodId, applePayDetails.storedPaymentMethodId) && - Objects.equals(this.type, applePayDetails.type); + return Objects.equals(this.applePayToken, applePayDetails.applePayToken) + && Objects.equals(this.checkoutAttemptId, applePayDetails.checkoutAttemptId) + && Objects.equals(this.fundingSource, applePayDetails.fundingSource) + && Objects.equals(this.recurringDetailReference, applePayDetails.recurringDetailReference) + && Objects.equals(this.storedPaymentMethodId, applePayDetails.storedPaymentMethodId) + && Objects.equals(this.type, applePayDetails.type); } @Override public int hashCode() { - return Objects.hash(applePayToken, checkoutAttemptId, fundingSource, recurringDetailReference, storedPaymentMethodId, type); + return Objects.hash( + applePayToken, + checkoutAttemptId, + fundingSource, + recurringDetailReference, + storedPaymentMethodId, + type); } @Override @@ -371,16 +402,19 @@ public String toString() { sb.append(" applePayToken: ").append(toIndentedString(applePayToken)).append("\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -389,7 +423,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ApplePayDetails given an JSON string * * @param jsonString JSON string @@ -399,11 +433,12 @@ private String toIndentedString(Object o) { public static ApplePayDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ApplePayDetails.class); } -/** - * Convert an instance of ApplePayDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ApplePayDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ApplePayDonations.java b/src/main/java/com/adyen/model/checkout/ApplePayDonations.java index 1ab62a317..65439971d 100644 --- a/src/main/java/com/adyen/model/checkout/ApplePayDonations.java +++ b/src/main/java/com/adyen/model/checkout/ApplePayDonations.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * ApplePayDonations - */ +/** ApplePayDonations */ @JsonPropertyOrder({ ApplePayDonations.JSON_PROPERTY_APPLE_PAY_TOKEN, ApplePayDonations.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, @@ -35,7 +30,6 @@ ApplePayDonations.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, ApplePayDonations.JSON_PROPERTY_TYPE }) - public class ApplePayDonations { public static final String JSON_PROPERTY_APPLE_PAY_TOKEN = "applePayToken"; private String applePayToken; @@ -44,10 +38,10 @@ public class ApplePayDonations { private String checkoutAttemptId; /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. */ public enum FundingSourceEnum { - CREDIT(String.valueOf("credit")), DEBIT(String.valueOf("debit")); @@ -57,7 +51,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -78,7 +72,11 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); + LOG.warning( + "FundingSourceEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -93,11 +91,8 @@ public static FundingSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** - * **applepay** - */ + /** **applepay** */ public enum TypeEnum { - APPLEPAY(String.valueOf("applepay")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -105,7 +100,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -126,7 +121,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -134,13 +133,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public ApplePayDonations() { - } + public ApplePayDonations() {} /** - * The stringified and base64 encoded `paymentData` you retrieved from the Apple framework. + * The stringified and base64 encoded `paymentData` you retrieved from the Apple + * framework. * - * @param applePayToken The stringified and base64 encoded `paymentData` you retrieved from the Apple framework. + * @param applePayToken The stringified and base64 encoded `paymentData` you retrieved + * from the Apple framework. * @return the current {@code ApplePayDonations} instance, allowing for method chaining */ public ApplePayDonations applePayToken(String applePayToken) { @@ -149,8 +149,11 @@ public ApplePayDonations applePayToken(String applePayToken) { } /** - * The stringified and base64 encoded `paymentData` you retrieved from the Apple framework. - * @return applePayToken The stringified and base64 encoded `paymentData` you retrieved from the Apple framework. + * The stringified and base64 encoded `paymentData` you retrieved from the Apple + * framework. + * + * @return applePayToken The stringified and base64 encoded `paymentData` you retrieved + * from the Apple framework. */ @JsonProperty(JSON_PROPERTY_APPLE_PAY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,9 +162,11 @@ public String getApplePayToken() { } /** - * The stringified and base64 encoded `paymentData` you retrieved from the Apple framework. + * The stringified and base64 encoded `paymentData` you retrieved from the Apple + * framework. * - * @param applePayToken The stringified and base64 encoded `paymentData` you retrieved from the Apple framework. + * @param applePayToken The stringified and base64 encoded `paymentData` you retrieved + * from the Apple framework. */ @JsonProperty(JSON_PROPERTY_APPLE_PAY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,6 +187,7 @@ public ApplePayDonations checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -202,9 +208,12 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. * @return the current {@code ApplePayDonations} instance, allowing for method chaining */ public ApplePayDonations fundingSource(FundingSourceEnum fundingSource) { @@ -213,8 +222,12 @@ public ApplePayDonations fundingSource(FundingSourceEnum fundingSource) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. - * @return fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * + * @return fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,9 +236,12 @@ public FundingSourceEnum getFundingSource() { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -234,13 +250,13 @@ public void setFundingSource(FundingSourceEnum fundingSource) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code ApplePayDonations} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public ApplePayDonations recurringDetailReference(String recurringDetailReference) { @@ -249,8 +265,11 @@ public ApplePayDonations recurringDetailReference(String recurringDetailReferenc } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -261,12 +280,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -276,9 +295,11 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code ApplePayDonations} instance, allowing for method chaining */ public ApplePayDonations storedPaymentMethodId(String storedPaymentMethodId) { @@ -287,8 +308,11 @@ public ApplePayDonations storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -297,9 +321,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -320,6 +346,7 @@ public ApplePayDonations type(TypeEnum type) { /** * **applepay** + * * @return type **applepay** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -339,9 +366,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this ApplePayDonations object is equal to o. - */ + /** Return true if this ApplePayDonations object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -351,17 +376,23 @@ public boolean equals(Object o) { return false; } ApplePayDonations applePayDonations = (ApplePayDonations) o; - return Objects.equals(this.applePayToken, applePayDonations.applePayToken) && - Objects.equals(this.checkoutAttemptId, applePayDonations.checkoutAttemptId) && - Objects.equals(this.fundingSource, applePayDonations.fundingSource) && - Objects.equals(this.recurringDetailReference, applePayDonations.recurringDetailReference) && - Objects.equals(this.storedPaymentMethodId, applePayDonations.storedPaymentMethodId) && - Objects.equals(this.type, applePayDonations.type); + return Objects.equals(this.applePayToken, applePayDonations.applePayToken) + && Objects.equals(this.checkoutAttemptId, applePayDonations.checkoutAttemptId) + && Objects.equals(this.fundingSource, applePayDonations.fundingSource) + && Objects.equals(this.recurringDetailReference, applePayDonations.recurringDetailReference) + && Objects.equals(this.storedPaymentMethodId, applePayDonations.storedPaymentMethodId) + && Objects.equals(this.type, applePayDonations.type); } @Override public int hashCode() { - return Objects.hash(applePayToken, checkoutAttemptId, fundingSource, recurringDetailReference, storedPaymentMethodId, type); + return Objects.hash( + applePayToken, + checkoutAttemptId, + fundingSource, + recurringDetailReference, + storedPaymentMethodId, + type); } @Override @@ -371,16 +402,19 @@ public String toString() { sb.append(" applePayToken: ").append(toIndentedString(applePayToken)).append("\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -389,7 +423,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ApplePayDonations given an JSON string * * @param jsonString JSON string @@ -399,11 +433,12 @@ private String toIndentedString(Object o) { public static ApplePayDonations fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ApplePayDonations.class); } -/** - * Convert an instance of ApplePayDonations to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ApplePayDonations to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ApplePaySessionRequest.java b/src/main/java/com/adyen/model/checkout/ApplePaySessionRequest.java index 102155077..bf154ed7c 100644 --- a/src/main/java/com/adyen/model/checkout/ApplePaySessionRequest.java +++ b/src/main/java/com/adyen/model/checkout/ApplePaySessionRequest.java @@ -2,37 +2,27 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ApplePaySessionRequest - */ +/** ApplePaySessionRequest */ @JsonPropertyOrder({ ApplePaySessionRequest.JSON_PROPERTY_DISPLAY_NAME, ApplePaySessionRequest.JSON_PROPERTY_DOMAIN_NAME, ApplePaySessionRequest.JSON_PROPERTY_MERCHANT_IDENTIFIER }) - public class ApplePaySessionRequest { public static final String JSON_PROPERTY_DISPLAY_NAME = "displayName"; private String displayName; @@ -43,13 +33,18 @@ public class ApplePaySessionRequest { public static final String JSON_PROPERTY_MERCHANT_IDENTIFIER = "merchantIdentifier"; private String merchantIdentifier; - public ApplePaySessionRequest() { - } + public ApplePaySessionRequest() {} /** - * This is the name that your shoppers will see in the Apple Pay interface. The value returned as `configuration.merchantName` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. + * This is the name that your shoppers will see in the Apple Pay interface. The value returned as + * `configuration.merchantName` field from the + * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) + * response. * - * @param displayName This is the name that your shoppers will see in the Apple Pay interface. The value returned as `configuration.merchantName` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. + * @param displayName This is the name that your shoppers will see in the Apple Pay interface. The + * value returned as `configuration.merchantName` field from the + * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) + * response. * @return the current {@code ApplePaySessionRequest} instance, allowing for method chaining */ public ApplePaySessionRequest displayName(String displayName) { @@ -58,8 +53,15 @@ public ApplePaySessionRequest displayName(String displayName) { } /** - * This is the name that your shoppers will see in the Apple Pay interface. The value returned as `configuration.merchantName` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. - * @return displayName This is the name that your shoppers will see in the Apple Pay interface. The value returned as `configuration.merchantName` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. + * This is the name that your shoppers will see in the Apple Pay interface. The value returned as + * `configuration.merchantName` field from the + * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) + * response. + * + * @return displayName This is the name that your shoppers will see in the Apple Pay interface. + * The value returned as `configuration.merchantName` field from the + * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) + * response. */ @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,9 +70,15 @@ public String getDisplayName() { } /** - * This is the name that your shoppers will see in the Apple Pay interface. The value returned as `configuration.merchantName` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. + * This is the name that your shoppers will see in the Apple Pay interface. The value returned as + * `configuration.merchantName` field from the + * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) + * response. * - * @param displayName This is the name that your shoppers will see in the Apple Pay interface. The value returned as `configuration.merchantName` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. + * @param displayName This is the name that your shoppers will see in the Apple Pay interface. The + * value returned as `configuration.merchantName` field from the + * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) + * response. */ @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,9 +87,11 @@ public void setDisplayName(String displayName) { } /** - * The domain name you provided when you added Apple Pay in your Customer Area. This must match the `window.location.hostname` of the web shop. + * The domain name you provided when you added Apple Pay in your Customer Area. This must match + * the `window.location.hostname` of the web shop. * - * @param domainName The domain name you provided when you added Apple Pay in your Customer Area. This must match the `window.location.hostname` of the web shop. + * @param domainName The domain name you provided when you added Apple Pay in your Customer Area. + * This must match the `window.location.hostname` of the web shop. * @return the current {@code ApplePaySessionRequest} instance, allowing for method chaining */ public ApplePaySessionRequest domainName(String domainName) { @@ -90,8 +100,11 @@ public ApplePaySessionRequest domainName(String domainName) { } /** - * The domain name you provided when you added Apple Pay in your Customer Area. This must match the `window.location.hostname` of the web shop. - * @return domainName The domain name you provided when you added Apple Pay in your Customer Area. This must match the `window.location.hostname` of the web shop. + * The domain name you provided when you added Apple Pay in your Customer Area. This must match + * the `window.location.hostname` of the web shop. + * + * @return domainName The domain name you provided when you added Apple Pay in your Customer Area. + * This must match the `window.location.hostname` of the web shop. */ @JsonProperty(JSON_PROPERTY_DOMAIN_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,9 +113,11 @@ public String getDomainName() { } /** - * The domain name you provided when you added Apple Pay in your Customer Area. This must match the `window.location.hostname` of the web shop. + * The domain name you provided when you added Apple Pay in your Customer Area. This must match + * the `window.location.hostname` of the web shop. * - * @param domainName The domain name you provided when you added Apple Pay in your Customer Area. This must match the `window.location.hostname` of the web shop. + * @param domainName The domain name you provided when you added Apple Pay in your Customer Area. + * This must match the `window.location.hostname` of the web shop. */ @JsonProperty(JSON_PROPERTY_DOMAIN_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,9 +126,15 @@ public void setDomainName(String domainName) { } /** - * Your merchant identifier registered with Apple Pay. Use the value of the `configuration.merchantId` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. + * Your merchant identifier registered with Apple Pay. Use the value of the + * `configuration.merchantId` field from the + * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) + * response. * - * @param merchantIdentifier Your merchant identifier registered with Apple Pay. Use the value of the `configuration.merchantId` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. + * @param merchantIdentifier Your merchant identifier registered with Apple Pay. Use the value of + * the `configuration.merchantId` field from the + * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) + * response. * @return the current {@code ApplePaySessionRequest} instance, allowing for method chaining */ public ApplePaySessionRequest merchantIdentifier(String merchantIdentifier) { @@ -122,8 +143,15 @@ public ApplePaySessionRequest merchantIdentifier(String merchantIdentifier) { } /** - * Your merchant identifier registered with Apple Pay. Use the value of the `configuration.merchantId` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. - * @return merchantIdentifier Your merchant identifier registered with Apple Pay. Use the value of the `configuration.merchantId` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. + * Your merchant identifier registered with Apple Pay. Use the value of the + * `configuration.merchantId` field from the + * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) + * response. + * + * @return merchantIdentifier Your merchant identifier registered with Apple Pay. Use the value of + * the `configuration.merchantId` field from the + * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) + * response. */ @JsonProperty(JSON_PROPERTY_MERCHANT_IDENTIFIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,9 +160,15 @@ public String getMerchantIdentifier() { } /** - * Your merchant identifier registered with Apple Pay. Use the value of the `configuration.merchantId` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. + * Your merchant identifier registered with Apple Pay. Use the value of the + * `configuration.merchantId` field from the + * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) + * response. * - * @param merchantIdentifier Your merchant identifier registered with Apple Pay. Use the value of the `configuration.merchantId` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. + * @param merchantIdentifier Your merchant identifier registered with Apple Pay. Use the value of + * the `configuration.merchantId` field from the + * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) + * response. */ @JsonProperty(JSON_PROPERTY_MERCHANT_IDENTIFIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +176,7 @@ public void setMerchantIdentifier(String merchantIdentifier) { this.merchantIdentifier = merchantIdentifier; } - /** - * Return true if this ApplePaySessionRequest object is equal to o. - */ + /** Return true if this ApplePaySessionRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +186,9 @@ public boolean equals(Object o) { return false; } ApplePaySessionRequest applePaySessionRequest = (ApplePaySessionRequest) o; - return Objects.equals(this.displayName, applePaySessionRequest.displayName) && - Objects.equals(this.domainName, applePaySessionRequest.domainName) && - Objects.equals(this.merchantIdentifier, applePaySessionRequest.merchantIdentifier); + return Objects.equals(this.displayName, applePaySessionRequest.displayName) + && Objects.equals(this.domainName, applePaySessionRequest.domainName) + && Objects.equals(this.merchantIdentifier, applePaySessionRequest.merchantIdentifier); } @Override @@ -176,8 +208,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +217,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ApplePaySessionRequest given an JSON string * * @param jsonString JSON string * @return An instance of ApplePaySessionRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to ApplePaySessionRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ApplePaySessionRequest */ public static ApplePaySessionRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ApplePaySessionRequest.class); } -/** - * Convert an instance of ApplePaySessionRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ApplePaySessionRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ApplePaySessionResponse.java b/src/main/java/com/adyen/model/checkout/ApplePaySessionResponse.java index fa6865334..2befc8166 100644 --- a/src/main/java/com/adyen/model/checkout/ApplePaySessionResponse.java +++ b/src/main/java/com/adyen/model/checkout/ApplePaySessionResponse.java @@ -2,46 +2,35 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ApplePaySessionResponse - */ -@JsonPropertyOrder({ - ApplePaySessionResponse.JSON_PROPERTY_DATA -}) - +/** ApplePaySessionResponse */ +@JsonPropertyOrder({ApplePaySessionResponse.JSON_PROPERTY_DATA}) public class ApplePaySessionResponse { public static final String JSON_PROPERTY_DATA = "data"; private String data; - public ApplePaySessionResponse() { - } + public ApplePaySessionResponse() {} /** - * Base64 encoded data you need to [complete the Apple Pay merchant validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation). + * Base64 encoded data you need to [complete the Apple Pay merchant + * validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation). * - * @param data Base64 encoded data you need to [complete the Apple Pay merchant validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation). + * @param data Base64 encoded data you need to [complete the Apple Pay merchant + * validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation). * @return the current {@code ApplePaySessionResponse} instance, allowing for method chaining */ public ApplePaySessionResponse data(String data) { @@ -50,8 +39,11 @@ public ApplePaySessionResponse data(String data) { } /** - * Base64 encoded data you need to [complete the Apple Pay merchant validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation). - * @return data Base64 encoded data you need to [complete the Apple Pay merchant validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation). + * Base64 encoded data you need to [complete the Apple Pay merchant + * validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation). + * + * @return data Base64 encoded data you need to [complete the Apple Pay merchant + * validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation). */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,9 +52,11 @@ public String getData() { } /** - * Base64 encoded data you need to [complete the Apple Pay merchant validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation). + * Base64 encoded data you need to [complete the Apple Pay merchant + * validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation). * - * @param data Base64 encoded data you need to [complete the Apple Pay merchant validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation). + * @param data Base64 encoded data you need to [complete the Apple Pay merchant + * validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation). */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +64,7 @@ public void setData(String data) { this.data = data; } - /** - * Return true if this ApplePaySessionResponse object is equal to o. - */ + /** Return true if this ApplePaySessionResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +92,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +101,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ApplePaySessionResponse given an JSON string * * @param jsonString JSON string * @return An instance of ApplePaySessionResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to ApplePaySessionResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ApplePaySessionResponse */ public static ApplePaySessionResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ApplePaySessionResponse.class); } -/** - * Convert an instance of ApplePaySessionResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ApplePaySessionResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ApplicationInfo.java b/src/main/java/com/adyen/model/checkout/ApplicationInfo.java index 7fcaf693a..973a8bdf4 100644 --- a/src/main/java/com/adyen/model/checkout/ApplicationInfo.java +++ b/src/main/java/com/adyen/model/checkout/ApplicationInfo.java @@ -2,35 +2,22 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.CommonField; -import com.adyen.model.checkout.ExternalPlatform; -import com.adyen.model.checkout.MerchantDevice; -import com.adyen.model.checkout.ShopperInteractionDevice; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ApplicationInfo - */ +/** ApplicationInfo */ @JsonPropertyOrder({ ApplicationInfo.JSON_PROPERTY_ADYEN_LIBRARY, ApplicationInfo.JSON_PROPERTY_ADYEN_PAYMENT_SOURCE, @@ -39,7 +26,6 @@ ApplicationInfo.JSON_PROPERTY_MERCHANT_DEVICE, ApplicationInfo.JSON_PROPERTY_SHOPPER_INTERACTION_DEVICE }) - public class ApplicationInfo { public static final String JSON_PROPERTY_ADYEN_LIBRARY = "adyenLibrary"; private CommonField adyenLibrary; @@ -59,13 +45,12 @@ public class ApplicationInfo { public static final String JSON_PROPERTY_SHOPPER_INTERACTION_DEVICE = "shopperInteractionDevice"; private ShopperInteractionDevice shopperInteractionDevice; - public ApplicationInfo() { - } + public ApplicationInfo() {} /** * adyenLibrary * - * @param adyenLibrary + * @param adyenLibrary * @return the current {@code ApplicationInfo} instance, allowing for method chaining */ public ApplicationInfo adyenLibrary(CommonField adyenLibrary) { @@ -75,7 +60,8 @@ public ApplicationInfo adyenLibrary(CommonField adyenLibrary) { /** * Get adyenLibrary - * @return adyenLibrary + * + * @return adyenLibrary */ @JsonProperty(JSON_PROPERTY_ADYEN_LIBRARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -86,7 +72,7 @@ public CommonField getAdyenLibrary() { /** * adyenLibrary * - * @param adyenLibrary + * @param adyenLibrary */ @JsonProperty(JSON_PROPERTY_ADYEN_LIBRARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,7 +83,7 @@ public void setAdyenLibrary(CommonField adyenLibrary) { /** * adyenPaymentSource * - * @param adyenPaymentSource + * @param adyenPaymentSource * @return the current {@code ApplicationInfo} instance, allowing for method chaining */ public ApplicationInfo adyenPaymentSource(CommonField adyenPaymentSource) { @@ -107,7 +93,8 @@ public ApplicationInfo adyenPaymentSource(CommonField adyenPaymentSource) { /** * Get adyenPaymentSource - * @return adyenPaymentSource + * + * @return adyenPaymentSource */ @JsonProperty(JSON_PROPERTY_ADYEN_PAYMENT_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,7 +105,7 @@ public CommonField getAdyenPaymentSource() { /** * adyenPaymentSource * - * @param adyenPaymentSource + * @param adyenPaymentSource */ @JsonProperty(JSON_PROPERTY_ADYEN_PAYMENT_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,7 +116,7 @@ public void setAdyenPaymentSource(CommonField adyenPaymentSource) { /** * externalPlatform * - * @param externalPlatform + * @param externalPlatform * @return the current {@code ApplicationInfo} instance, allowing for method chaining */ public ApplicationInfo externalPlatform(ExternalPlatform externalPlatform) { @@ -139,7 +126,8 @@ public ApplicationInfo externalPlatform(ExternalPlatform externalPlatform) { /** * Get externalPlatform - * @return externalPlatform + * + * @return externalPlatform */ @JsonProperty(JSON_PROPERTY_EXTERNAL_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,7 +138,7 @@ public ExternalPlatform getExternalPlatform() { /** * externalPlatform * - * @param externalPlatform + * @param externalPlatform */ @JsonProperty(JSON_PROPERTY_EXTERNAL_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,7 +149,7 @@ public void setExternalPlatform(ExternalPlatform externalPlatform) { /** * merchantApplication * - * @param merchantApplication + * @param merchantApplication * @return the current {@code ApplicationInfo} instance, allowing for method chaining */ public ApplicationInfo merchantApplication(CommonField merchantApplication) { @@ -171,7 +159,8 @@ public ApplicationInfo merchantApplication(CommonField merchantApplication) { /** * Get merchantApplication - * @return merchantApplication + * + * @return merchantApplication */ @JsonProperty(JSON_PROPERTY_MERCHANT_APPLICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,7 +171,7 @@ public CommonField getMerchantApplication() { /** * merchantApplication * - * @param merchantApplication + * @param merchantApplication */ @JsonProperty(JSON_PROPERTY_MERCHANT_APPLICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,7 +182,7 @@ public void setMerchantApplication(CommonField merchantApplication) { /** * merchantDevice * - * @param merchantDevice + * @param merchantDevice * @return the current {@code ApplicationInfo} instance, allowing for method chaining */ public ApplicationInfo merchantDevice(MerchantDevice merchantDevice) { @@ -203,7 +192,8 @@ public ApplicationInfo merchantDevice(MerchantDevice merchantDevice) { /** * Get merchantDevice - * @return merchantDevice + * + * @return merchantDevice */ @JsonProperty(JSON_PROPERTY_MERCHANT_DEVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,7 +204,7 @@ public MerchantDevice getMerchantDevice() { /** * merchantDevice * - * @param merchantDevice + * @param merchantDevice */ @JsonProperty(JSON_PROPERTY_MERCHANT_DEVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -225,17 +215,19 @@ public void setMerchantDevice(MerchantDevice merchantDevice) { /** * shopperInteractionDevice * - * @param shopperInteractionDevice + * @param shopperInteractionDevice * @return the current {@code ApplicationInfo} instance, allowing for method chaining */ - public ApplicationInfo shopperInteractionDevice(ShopperInteractionDevice shopperInteractionDevice) { + public ApplicationInfo shopperInteractionDevice( + ShopperInteractionDevice shopperInteractionDevice) { this.shopperInteractionDevice = shopperInteractionDevice; return this; } /** * Get shopperInteractionDevice - * @return shopperInteractionDevice + * + * @return shopperInteractionDevice */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION_DEVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -246,7 +238,7 @@ public ShopperInteractionDevice getShopperInteractionDevice() { /** * shopperInteractionDevice * - * @param shopperInteractionDevice + * @param shopperInteractionDevice */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION_DEVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -254,9 +246,7 @@ public void setShopperInteractionDevice(ShopperInteractionDevice shopperInteract this.shopperInteractionDevice = shopperInteractionDevice; } - /** - * Return true if this ApplicationInfo object is equal to o. - */ + /** Return true if this ApplicationInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -266,17 +256,23 @@ public boolean equals(Object o) { return false; } ApplicationInfo applicationInfo = (ApplicationInfo) o; - return Objects.equals(this.adyenLibrary, applicationInfo.adyenLibrary) && - Objects.equals(this.adyenPaymentSource, applicationInfo.adyenPaymentSource) && - Objects.equals(this.externalPlatform, applicationInfo.externalPlatform) && - Objects.equals(this.merchantApplication, applicationInfo.merchantApplication) && - Objects.equals(this.merchantDevice, applicationInfo.merchantDevice) && - Objects.equals(this.shopperInteractionDevice, applicationInfo.shopperInteractionDevice); + return Objects.equals(this.adyenLibrary, applicationInfo.adyenLibrary) + && Objects.equals(this.adyenPaymentSource, applicationInfo.adyenPaymentSource) + && Objects.equals(this.externalPlatform, applicationInfo.externalPlatform) + && Objects.equals(this.merchantApplication, applicationInfo.merchantApplication) + && Objects.equals(this.merchantDevice, applicationInfo.merchantDevice) + && Objects.equals(this.shopperInteractionDevice, applicationInfo.shopperInteractionDevice); } @Override public int hashCode() { - return Objects.hash(adyenLibrary, adyenPaymentSource, externalPlatform, merchantApplication, merchantDevice, shopperInteractionDevice); + return Objects.hash( + adyenLibrary, + adyenPaymentSource, + externalPlatform, + merchantApplication, + merchantDevice, + shopperInteractionDevice); } @Override @@ -286,16 +282,19 @@ public String toString() { sb.append(" adyenLibrary: ").append(toIndentedString(adyenLibrary)).append("\n"); sb.append(" adyenPaymentSource: ").append(toIndentedString(adyenPaymentSource)).append("\n"); sb.append(" externalPlatform: ").append(toIndentedString(externalPlatform)).append("\n"); - sb.append(" merchantApplication: ").append(toIndentedString(merchantApplication)).append("\n"); + sb.append(" merchantApplication: ") + .append(toIndentedString(merchantApplication)) + .append("\n"); sb.append(" merchantDevice: ").append(toIndentedString(merchantDevice)).append("\n"); - sb.append(" shopperInteractionDevice: ").append(toIndentedString(shopperInteractionDevice)).append("\n"); + sb.append(" shopperInteractionDevice: ") + .append(toIndentedString(shopperInteractionDevice)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -304,7 +303,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ApplicationInfo given an JSON string * * @param jsonString JSON string @@ -314,11 +313,12 @@ private String toIndentedString(Object o) { public static ApplicationInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ApplicationInfo.class); } -/** - * Convert an instance of ApplicationInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ApplicationInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/AuthenticationData.java b/src/main/java/com/adyen/model/checkout/AuthenticationData.java index ae6fc3146..912b2ba23 100644 --- a/src/main/java/com/adyen/model/checkout/AuthenticationData.java +++ b/src/main/java/com/adyen/model/checkout/AuthenticationData.java @@ -2,44 +2,41 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.ThreeDSRequestData; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * AuthenticationData - */ +/** AuthenticationData */ @JsonPropertyOrder({ AuthenticationData.JSON_PROPERTY_ATTEMPT_AUTHENTICATION, AuthenticationData.JSON_PROPERTY_AUTHENTICATION_ONLY, AuthenticationData.JSON_PROPERTY_THREE_D_S_REQUEST_DATA }) - public class AuthenticationData { /** - * Indicates when 3D Secure authentication should be attempted. This overrides all other rules, including [Dynamic 3D Secure settings](https://docs.adyen.com/risk-management/dynamic-3d-secure). Possible values: * **always**: Perform 3D Secure authentication. * **never**: Don't perform 3D Secure authentication. If PSD2 SCA or other national regulations require authentication, the transaction gets declined. + * Indicates when 3D Secure authentication should be attempted. This overrides all other rules, + * including [Dynamic 3D Secure + * settings](https://docs.adyen.com/risk-management/dynamic-3d-secure). Possible values: * + * **always**: Perform 3D Secure authentication. * **never**: Don't perform 3D Secure + * authentication. If PSD2 SCA or other national regulations require authentication, the + * transaction gets declined. */ public enum AttemptAuthenticationEnum { - ALWAYS(String.valueOf("always")), NEVER(String.valueOf("never")); @@ -49,7 +46,7 @@ public enum AttemptAuthenticationEnum { private String value; AttemptAuthenticationEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -70,7 +67,11 @@ public static AttemptAuthenticationEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AttemptAuthenticationEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AttemptAuthenticationEnum.values())); + LOG.warning( + "AttemptAuthenticationEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AttemptAuthenticationEnum.values())); return null; } } @@ -84,13 +85,22 @@ public static AttemptAuthenticationEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_REQUEST_DATA = "threeDSRequestData"; private ThreeDSRequestData threeDSRequestData; - public AuthenticationData() { - } + public AuthenticationData() {} /** - * Indicates when 3D Secure authentication should be attempted. This overrides all other rules, including [Dynamic 3D Secure settings](https://docs.adyen.com/risk-management/dynamic-3d-secure). Possible values: * **always**: Perform 3D Secure authentication. * **never**: Don't perform 3D Secure authentication. If PSD2 SCA or other national regulations require authentication, the transaction gets declined. + * Indicates when 3D Secure authentication should be attempted. This overrides all other rules, + * including [Dynamic 3D Secure + * settings](https://docs.adyen.com/risk-management/dynamic-3d-secure). Possible values: * + * **always**: Perform 3D Secure authentication. * **never**: Don't perform 3D Secure + * authentication. If PSD2 SCA or other national regulations require authentication, the + * transaction gets declined. * - * @param attemptAuthentication Indicates when 3D Secure authentication should be attempted. This overrides all other rules, including [Dynamic 3D Secure settings](https://docs.adyen.com/risk-management/dynamic-3d-secure). Possible values: * **always**: Perform 3D Secure authentication. * **never**: Don't perform 3D Secure authentication. If PSD2 SCA or other national regulations require authentication, the transaction gets declined. + * @param attemptAuthentication Indicates when 3D Secure authentication should be attempted. This + * overrides all other rules, including [Dynamic 3D Secure + * settings](https://docs.adyen.com/risk-management/dynamic-3d-secure). Possible values: * + * **always**: Perform 3D Secure authentication. * **never**: Don't perform 3D Secure + * authentication. If PSD2 SCA or other national regulations require authentication, the + * transaction gets declined. * @return the current {@code AuthenticationData} instance, allowing for method chaining */ public AuthenticationData attemptAuthentication(AttemptAuthenticationEnum attemptAuthentication) { @@ -99,8 +109,19 @@ public AuthenticationData attemptAuthentication(AttemptAuthenticationEnum attemp } /** - * Indicates when 3D Secure authentication should be attempted. This overrides all other rules, including [Dynamic 3D Secure settings](https://docs.adyen.com/risk-management/dynamic-3d-secure). Possible values: * **always**: Perform 3D Secure authentication. * **never**: Don't perform 3D Secure authentication. If PSD2 SCA or other national regulations require authentication, the transaction gets declined. - * @return attemptAuthentication Indicates when 3D Secure authentication should be attempted. This overrides all other rules, including [Dynamic 3D Secure settings](https://docs.adyen.com/risk-management/dynamic-3d-secure). Possible values: * **always**: Perform 3D Secure authentication. * **never**: Don't perform 3D Secure authentication. If PSD2 SCA or other national regulations require authentication, the transaction gets declined. + * Indicates when 3D Secure authentication should be attempted. This overrides all other rules, + * including [Dynamic 3D Secure + * settings](https://docs.adyen.com/risk-management/dynamic-3d-secure). Possible values: * + * **always**: Perform 3D Secure authentication. * **never**: Don't perform 3D Secure + * authentication. If PSD2 SCA or other national regulations require authentication, the + * transaction gets declined. + * + * @return attemptAuthentication Indicates when 3D Secure authentication should be attempted. This + * overrides all other rules, including [Dynamic 3D Secure + * settings](https://docs.adyen.com/risk-management/dynamic-3d-secure). Possible values: * + * **always**: Perform 3D Secure authentication. * **never**: Don't perform 3D Secure + * authentication. If PSD2 SCA or other national regulations require authentication, the + * transaction gets declined. */ @JsonProperty(JSON_PROPERTY_ATTEMPT_AUTHENTICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -109,9 +130,19 @@ public AttemptAuthenticationEnum getAttemptAuthentication() { } /** - * Indicates when 3D Secure authentication should be attempted. This overrides all other rules, including [Dynamic 3D Secure settings](https://docs.adyen.com/risk-management/dynamic-3d-secure). Possible values: * **always**: Perform 3D Secure authentication. * **never**: Don't perform 3D Secure authentication. If PSD2 SCA or other national regulations require authentication, the transaction gets declined. + * Indicates when 3D Secure authentication should be attempted. This overrides all other rules, + * including [Dynamic 3D Secure + * settings](https://docs.adyen.com/risk-management/dynamic-3d-secure). Possible values: * + * **always**: Perform 3D Secure authentication. * **never**: Don't perform 3D Secure + * authentication. If PSD2 SCA or other national regulations require authentication, the + * transaction gets declined. * - * @param attemptAuthentication Indicates when 3D Secure authentication should be attempted. This overrides all other rules, including [Dynamic 3D Secure settings](https://docs.adyen.com/risk-management/dynamic-3d-secure). Possible values: * **always**: Perform 3D Secure authentication. * **never**: Don't perform 3D Secure authentication. If PSD2 SCA or other national regulations require authentication, the transaction gets declined. + * @param attemptAuthentication Indicates when 3D Secure authentication should be attempted. This + * overrides all other rules, including [Dynamic 3D Secure + * settings](https://docs.adyen.com/risk-management/dynamic-3d-secure). Possible values: * + * **always**: Perform 3D Secure authentication. * **never**: Don't perform 3D Secure + * authentication. If PSD2 SCA or other national regulations require authentication, the + * transaction gets declined. */ @JsonProperty(JSON_PROPERTY_ATTEMPT_AUTHENTICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -120,9 +151,15 @@ public void setAttemptAuthentication(AttemptAuthenticationEnum attemptAuthentica } /** - * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization. Default: **false**. + * Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization. Default: **false**. * - * @param authenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization. Default: **false**. + * @param authenticationOnly Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization. Default: **false**. * @return the current {@code AuthenticationData} instance, allowing for method chaining */ public AuthenticationData authenticationOnly(Boolean authenticationOnly) { @@ -131,8 +168,15 @@ public AuthenticationData authenticationOnly(Boolean authenticationOnly) { } /** - * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization. Default: **false**. - * @return authenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization. Default: **false**. + * Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization. Default: **false**. + * + * @return authenticationOnly Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization. Default: **false**. */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -141,9 +185,15 @@ public Boolean getAuthenticationOnly() { } /** - * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization. Default: **false**. + * Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization. Default: **false**. * - * @param authenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization. Default: **false**. + * @param authenticationOnly Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization. Default: **false**. */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -154,7 +204,7 @@ public void setAuthenticationOnly(Boolean authenticationOnly) { /** * threeDSRequestData * - * @param threeDSRequestData + * @param threeDSRequestData * @return the current {@code AuthenticationData} instance, allowing for method chaining */ public AuthenticationData threeDSRequestData(ThreeDSRequestData threeDSRequestData) { @@ -164,7 +214,8 @@ public AuthenticationData threeDSRequestData(ThreeDSRequestData threeDSRequestDa /** * Get threeDSRequestData - * @return threeDSRequestData + * + * @return threeDSRequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -175,7 +226,7 @@ public ThreeDSRequestData getThreeDSRequestData() { /** * threeDSRequestData * - * @param threeDSRequestData + * @param threeDSRequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,9 +234,7 @@ public void setThreeDSRequestData(ThreeDSRequestData threeDSRequestData) { this.threeDSRequestData = threeDSRequestData; } - /** - * Return true if this AuthenticationData object is equal to o. - */ + /** Return true if this AuthenticationData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -195,9 +244,9 @@ public boolean equals(Object o) { return false; } AuthenticationData authenticationData = (AuthenticationData) o; - return Objects.equals(this.attemptAuthentication, authenticationData.attemptAuthentication) && - Objects.equals(this.authenticationOnly, authenticationData.authenticationOnly) && - Objects.equals(this.threeDSRequestData, authenticationData.threeDSRequestData); + return Objects.equals(this.attemptAuthentication, authenticationData.attemptAuthentication) + && Objects.equals(this.authenticationOnly, authenticationData.authenticationOnly) + && Objects.equals(this.threeDSRequestData, authenticationData.threeDSRequestData); } @Override @@ -209,7 +258,9 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AuthenticationData {\n"); - sb.append(" attemptAuthentication: ").append(toIndentedString(attemptAuthentication)).append("\n"); + sb.append(" attemptAuthentication: ") + .append(toIndentedString(attemptAuthentication)) + .append("\n"); sb.append(" authenticationOnly: ").append(toIndentedString(authenticationOnly)).append("\n"); sb.append(" threeDSRequestData: ").append(toIndentedString(threeDSRequestData)).append("\n"); sb.append("}"); @@ -217,8 +268,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -227,21 +277,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AuthenticationData given an JSON string * * @param jsonString JSON string * @return An instance of AuthenticationData - * @throws JsonProcessingException if the JSON string is invalid with respect to AuthenticationData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AuthenticationData */ public static AuthenticationData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AuthenticationData.class); } -/** - * Convert an instance of AuthenticationData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AuthenticationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/BacsDirectDebitDetails.java b/src/main/java/com/adyen/model/checkout/BacsDirectDebitDetails.java index c784c1ad1..842c7b180 100644 --- a/src/main/java/com/adyen/model/checkout/BacsDirectDebitDetails.java +++ b/src/main/java/com/adyen/model/checkout/BacsDirectDebitDetails.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * BacsDirectDebitDetails - */ +/** BacsDirectDebitDetails */ @JsonPropertyOrder({ BacsDirectDebitDetails.JSON_PROPERTY_BANK_ACCOUNT_NUMBER, BacsDirectDebitDetails.JSON_PROPERTY_BANK_LOCATION_ID, @@ -37,7 +32,6 @@ BacsDirectDebitDetails.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID, BacsDirectDebitDetails.JSON_PROPERTY_TYPE }) - public class BacsDirectDebitDetails { public static final String JSON_PROPERTY_BANK_ACCOUNT_NUMBER = "bankAccountNumber"; private String bankAccountNumber; @@ -61,11 +55,8 @@ public class BacsDirectDebitDetails { public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_ID = "transferInstrumentId"; private String transferInstrumentId; - /** - * **directdebit_GB** - */ + /** **directdebit_GB** */ public enum TypeEnum { - DIRECTDEBIT_GB(String.valueOf("directdebit_GB")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -73,7 +64,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -94,7 +85,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -102,8 +97,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public BacsDirectDebitDetails() { - } + public BacsDirectDebitDetails() {} /** * The bank account number (without separators). @@ -118,6 +112,7 @@ public BacsDirectDebitDetails bankAccountNumber(String bankAccountNumber) { /** * The bank account number (without separators). + * * @return bankAccountNumber The bank account number (without separators). */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_NUMBER) @@ -150,6 +145,7 @@ public BacsDirectDebitDetails bankLocationId(String bankLocationId) { /** * The bank routing number of the account. + * * @return bankLocationId The bank routing number of the account. */ @JsonProperty(JSON_PROPERTY_BANK_LOCATION_ID) @@ -182,6 +178,7 @@ public BacsDirectDebitDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -214,6 +211,7 @@ public BacsDirectDebitDetails holderName(String holderName) { /** * The name of the bank account holder. + * * @return holderName The name of the bank account holder. */ @JsonProperty(JSON_PROPERTY_HOLDER_NAME) @@ -234,13 +232,13 @@ public void setHolderName(String holderName) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code BacsDirectDebitDetails} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public BacsDirectDebitDetails recurringDetailReference(String recurringDetailReference) { @@ -249,8 +247,11 @@ public BacsDirectDebitDetails recurringDetailReference(String recurringDetailRef } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -261,12 +262,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -276,9 +277,11 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code BacsDirectDebitDetails} instance, allowing for method chaining */ public BacsDirectDebitDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -287,8 +290,11 @@ public BacsDirectDebitDetails storedPaymentMethodId(String storedPaymentMethodId } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -297,9 +303,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -308,9 +316,11 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { } /** - * The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. + * The unique identifier of your user's verified transfer instrument, which you can use to top + * up their balance accounts. * - * @param transferInstrumentId The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. + * @param transferInstrumentId The unique identifier of your user's verified transfer + * instrument, which you can use to top up their balance accounts. * @return the current {@code BacsDirectDebitDetails} instance, allowing for method chaining */ public BacsDirectDebitDetails transferInstrumentId(String transferInstrumentId) { @@ -319,8 +329,11 @@ public BacsDirectDebitDetails transferInstrumentId(String transferInstrumentId) } /** - * The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. - * @return transferInstrumentId The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. + * The unique identifier of your user's verified transfer instrument, which you can use to top + * up their balance accounts. + * + * @return transferInstrumentId The unique identifier of your user's verified transfer + * instrument, which you can use to top up their balance accounts. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -329,9 +342,11 @@ public String getTransferInstrumentId() { } /** - * The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. + * The unique identifier of your user's verified transfer instrument, which you can use to top + * up their balance accounts. * - * @param transferInstrumentId The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. + * @param transferInstrumentId The unique identifier of your user's verified transfer + * instrument, which you can use to top up their balance accounts. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -352,6 +367,7 @@ public BacsDirectDebitDetails type(TypeEnum type) { /** * **directdebit_GB** + * * @return type **directdebit_GB** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -371,9 +387,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this BacsDirectDebitDetails object is equal to o. - */ + /** Return true if this BacsDirectDebitDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -383,19 +397,28 @@ public boolean equals(Object o) { return false; } BacsDirectDebitDetails bacsDirectDebitDetails = (BacsDirectDebitDetails) o; - return Objects.equals(this.bankAccountNumber, bacsDirectDebitDetails.bankAccountNumber) && - Objects.equals(this.bankLocationId, bacsDirectDebitDetails.bankLocationId) && - Objects.equals(this.checkoutAttemptId, bacsDirectDebitDetails.checkoutAttemptId) && - Objects.equals(this.holderName, bacsDirectDebitDetails.holderName) && - Objects.equals(this.recurringDetailReference, bacsDirectDebitDetails.recurringDetailReference) && - Objects.equals(this.storedPaymentMethodId, bacsDirectDebitDetails.storedPaymentMethodId) && - Objects.equals(this.transferInstrumentId, bacsDirectDebitDetails.transferInstrumentId) && - Objects.equals(this.type, bacsDirectDebitDetails.type); + return Objects.equals(this.bankAccountNumber, bacsDirectDebitDetails.bankAccountNumber) + && Objects.equals(this.bankLocationId, bacsDirectDebitDetails.bankLocationId) + && Objects.equals(this.checkoutAttemptId, bacsDirectDebitDetails.checkoutAttemptId) + && Objects.equals(this.holderName, bacsDirectDebitDetails.holderName) + && Objects.equals( + this.recurringDetailReference, bacsDirectDebitDetails.recurringDetailReference) + && Objects.equals(this.storedPaymentMethodId, bacsDirectDebitDetails.storedPaymentMethodId) + && Objects.equals(this.transferInstrumentId, bacsDirectDebitDetails.transferInstrumentId) + && Objects.equals(this.type, bacsDirectDebitDetails.type); } @Override public int hashCode() { - return Objects.hash(bankAccountNumber, bankLocationId, checkoutAttemptId, holderName, recurringDetailReference, storedPaymentMethodId, transferInstrumentId, type); + return Objects.hash( + bankAccountNumber, + bankLocationId, + checkoutAttemptId, + holderName, + recurringDetailReference, + storedPaymentMethodId, + transferInstrumentId, + type); } @Override @@ -406,17 +429,22 @@ public String toString() { sb.append(" bankLocationId: ").append(toIndentedString(bankLocationId)).append("\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" holderName: ").append(toIndentedString(holderName)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); - sb.append(" transferInstrumentId: ").append(toIndentedString(transferInstrumentId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); + sb.append(" transferInstrumentId: ") + .append(toIndentedString(transferInstrumentId)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -425,21 +453,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BacsDirectDebitDetails given an JSON string * * @param jsonString JSON string * @return An instance of BacsDirectDebitDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to BacsDirectDebitDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BacsDirectDebitDetails */ public static BacsDirectDebitDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BacsDirectDebitDetails.class); } -/** - * Convert an instance of BacsDirectDebitDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BacsDirectDebitDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/BalanceCheckRequest.java b/src/main/java/com/adyen/model/checkout/BalanceCheckRequest.java index 979c84551..5c663c73d 100644 --- a/src/main/java/com/adyen/model/checkout/BalanceCheckRequest.java +++ b/src/main/java/com/adyen/model/checkout/BalanceCheckRequest.java @@ -2,49 +2,32 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.AccountInfo; -import com.adyen.model.checkout.Address; -import com.adyen.model.checkout.Amount; -import com.adyen.model.checkout.ApplicationInfo; -import com.adyen.model.checkout.BrowserInfo; -import com.adyen.model.checkout.ForexQuote; -import com.adyen.model.checkout.Installments; -import com.adyen.model.checkout.MerchantRiskIndicator; -import com.adyen.model.checkout.Name; -import com.adyen.model.checkout.Recurring; -import com.adyen.model.checkout.Split; -import com.adyen.model.checkout.ThreeDS2RequestData; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.time.OffsetDateTime; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * BalanceCheckRequest - */ +/** BalanceCheckRequest */ @JsonPropertyOrder({ BalanceCheckRequest.JSON_PROPERTY_ACCOUNT_INFO, BalanceCheckRequest.JSON_PROPERTY_ADDITIONAL_AMOUNT, @@ -91,7 +74,6 @@ BalanceCheckRequest.JSON_PROPERTY_TOTALS_GROUP, BalanceCheckRequest.JSON_PROPERTY_TRUSTED_SHOPPER }) - public class BalanceCheckRequest { public static final String JSON_PROPERTY_ACCOUNT_INFO = "accountInfo"; private AccountInfo accountInfo; @@ -138,7 +120,8 @@ public class BalanceCheckRequest { public static final String JSON_PROPERTY_INSTALLMENTS = "installments"; private Installments installments; - public static final String JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT = "localizedShopperStatement"; + public static final String JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT = + "localizedShopperStatement"; private Map localizedShopperStatement; public static final String JSON_PROPERTY_MCC = "mcc"; @@ -166,22 +149,30 @@ public class BalanceCheckRequest { private Recurring recurring; /** - * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or + * using stored payment details. Allowed values: * `Subscription` – A transaction for a + * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a + * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – + * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. */ public enum RecurringProcessingModelEnum { - CARDONFILE(String.valueOf("CardOnFile")), SUBSCRIPTION(String.valueOf("Subscription")), UNSCHEDULEDCARDONFILE(String.valueOf("UnscheduledCardOnFile")); - private static final Logger LOG = Logger.getLogger(RecurringProcessingModelEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(RecurringProcessingModelEnum.class.getName()); private String value; RecurringProcessingModelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -202,7 +193,11 @@ public static RecurringProcessingModelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("RecurringProcessingModelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RecurringProcessingModelEnum.values())); + LOG.warning( + "RecurringProcessingModelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(RecurringProcessingModelEnum.values())); return null; } } @@ -216,7 +211,8 @@ public static RecurringProcessingModelEnum fromValue(String value) { public static final String JSON_PROPERTY_SELECTED_BRAND = "selectedBrand"; private String selectedBrand; - public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = "selectedRecurringDetailReference"; + public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = + "selectedRecurringDetailReference"; private String selectedRecurringDetailReference; public static final String JSON_PROPERTY_SESSION_ID = "sessionId"; @@ -229,10 +225,19 @@ public static RecurringProcessingModelEnum fromValue(String value) { private String shopperIP; /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. */ public enum ShopperInteractionEnum { - ECOMMERCE(String.valueOf("Ecommerce")), CONTAUTH(String.valueOf("ContAuth")), @@ -246,7 +251,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -267,7 +272,11 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning( + "ShopperInteractionEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -302,8 +311,10 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S2_REQUEST_DATA = "threeDS2RequestData"; private ThreeDS2RequestData threeDS2RequestData; - public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = "threeDSAuthenticationOnly"; - @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. + public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = + "threeDSAuthenticationOnly"; + @Deprecated // deprecated since Adyen Checkout API v69: Use + // `authenticationData.authenticationOnly` instead. private Boolean threeDSAuthenticationOnly; public static final String JSON_PROPERTY_TOTALS_GROUP = "totalsGroup"; @@ -312,13 +323,12 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_TRUSTED_SHOPPER = "trustedShopper"; private Boolean trustedShopper; - public BalanceCheckRequest() { - } + public BalanceCheckRequest() {} /** * accountInfo * - * @param accountInfo + * @param accountInfo * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest accountInfo(AccountInfo accountInfo) { @@ -328,7 +338,8 @@ public BalanceCheckRequest accountInfo(AccountInfo accountInfo) { /** * Get accountInfo - * @return accountInfo + * + * @return accountInfo */ @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -339,7 +350,7 @@ public AccountInfo getAccountInfo() { /** * accountInfo * - * @param accountInfo + * @param accountInfo */ @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -350,7 +361,7 @@ public void setAccountInfo(AccountInfo accountInfo) { /** * additionalAmount * - * @param additionalAmount + * @param additionalAmount * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest additionalAmount(Amount additionalAmount) { @@ -360,7 +371,8 @@ public BalanceCheckRequest additionalAmount(Amount additionalAmount) { /** * Get additionalAmount - * @return additionalAmount + * + * @return additionalAmount */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -371,7 +383,7 @@ public Amount getAdditionalAmount() { /** * additionalAmount * - * @param additionalAmount + * @param additionalAmount */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -380,9 +392,13 @@ public void setAdditionalAmount(Amount additionalAmount) { } /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. + * The `additionalData` object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a + * particular payment request. The `additionalData` object consists of entries, each + * of which includes the key and value. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest additionalData(Map additionalData) { @@ -399,8 +415,13 @@ public BalanceCheckRequest putAdditionalDataItem(String key, String additionalDa } /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. - * @return additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. + * The `additionalData` object consists of entries, each of which includes the key and + * value. + * + * @return additionalData This field contains additional data, which may be required for a + * particular payment request. The `additionalData` object consists of entries, each + * of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -409,9 +430,13 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. + * The `additionalData` object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a + * particular payment request. The `additionalData` object consists of entries, each + * of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -422,7 +447,7 @@ public void setAdditionalData(Map additionalData) { /** * amount * - * @param amount + * @param amount * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest amount(Amount amount) { @@ -432,7 +457,8 @@ public BalanceCheckRequest amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -443,7 +469,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -454,7 +480,7 @@ public void setAmount(Amount amount) { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest applicationInfo(ApplicationInfo applicationInfo) { @@ -464,7 +490,8 @@ public BalanceCheckRequest applicationInfo(ApplicationInfo applicationInfo) { /** * Get applicationInfo - * @return applicationInfo + * + * @return applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -475,7 +502,7 @@ public ApplicationInfo getApplicationInfo() { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -486,7 +513,7 @@ public void setApplicationInfo(ApplicationInfo applicationInfo) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest billingAddress(Address billingAddress) { @@ -496,7 +523,8 @@ public BalanceCheckRequest billingAddress(Address billingAddress) { /** * Get billingAddress - * @return billingAddress + * + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -507,7 +535,7 @@ public Address getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -518,7 +546,7 @@ public void setBillingAddress(Address billingAddress) { /** * browserInfo * - * @param browserInfo + * @param browserInfo * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest browserInfo(BrowserInfo browserInfo) { @@ -528,7 +556,8 @@ public BalanceCheckRequest browserInfo(BrowserInfo browserInfo) { /** * Get browserInfo - * @return browserInfo + * + * @return browserInfo */ @JsonProperty(JSON_PROPERTY_BROWSER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -539,7 +568,7 @@ public BrowserInfo getBrowserInfo() { /** * browserInfo * - * @param browserInfo + * @param browserInfo */ @JsonProperty(JSON_PROPERTY_BROWSER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -550,7 +579,8 @@ public void setBrowserInfo(BrowserInfo browserInfo) { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, + * specified in hours. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest captureDelayHours(Integer captureDelayHours) { @@ -560,7 +590,9 @@ public BalanceCheckRequest captureDelayHours(Integer captureDelayHours) { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. - * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. + * + * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, + * specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -571,7 +603,8 @@ public Integer getCaptureDelayHours() { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, + * specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -580,9 +613,11 @@ public void setCaptureDelayHours(Integer captureDelayHours) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): + * YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest dateOfBirth(LocalDate dateOfBirth) { @@ -591,8 +626,11 @@ public BalanceCheckRequest dateOfBirth(LocalDate dateOfBirth) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD - * @return dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): + * YYYY-MM-DD + * + * @return dateOfBirth The shopper's date of birth. Format + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -601,9 +639,11 @@ public LocalDate getDateOfBirth() { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): + * YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -614,7 +654,7 @@ public void setDateOfBirth(LocalDate dateOfBirth) { /** * dccQuote * - * @param dccQuote + * @param dccQuote * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest dccQuote(ForexQuote dccQuote) { @@ -624,7 +664,8 @@ public BalanceCheckRequest dccQuote(ForexQuote dccQuote) { /** * Get dccQuote - * @return dccQuote + * + * @return dccQuote */ @JsonProperty(JSON_PROPERTY_DCC_QUOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -635,7 +676,7 @@ public ForexQuote getDccQuote() { /** * dccQuote * - * @param dccQuote + * @param dccQuote */ @JsonProperty(JSON_PROPERTY_DCC_QUOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -646,7 +687,7 @@ public void setDccQuote(ForexQuote dccQuote) { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest deliveryAddress(Address deliveryAddress) { @@ -656,7 +697,8 @@ public BalanceCheckRequest deliveryAddress(Address deliveryAddress) { /** * Get deliveryAddress - * @return deliveryAddress + * + * @return deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -667,7 +709,7 @@ public Address getDeliveryAddress() { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -676,9 +718,13 @@ public void setDeliveryAddress(Address deliveryAddress) { } /** - * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 * - * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest deliveryDate(OffsetDateTime deliveryDate) { @@ -687,8 +733,13 @@ public BalanceCheckRequest deliveryDate(OffsetDateTime deliveryDate) { } /** - * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 - * @return deliveryDate The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 + * + * @return deliveryDate The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 */ @JsonProperty(JSON_PROPERTY_DELIVERY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -697,9 +748,13 @@ public OffsetDateTime getDeliveryDate() { } /** - * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 * - * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 */ @JsonProperty(JSON_PROPERTY_DELIVERY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -708,9 +763,12 @@ public void setDeliveryDate(OffsetDateTime deliveryDate) { } /** - * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to + * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * - * @param deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @param deviceFingerprint A string containing the shopper's device fingerprint. For more + * information, refer to [Device + * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest deviceFingerprint(String deviceFingerprint) { @@ -719,8 +777,12 @@ public BalanceCheckRequest deviceFingerprint(String deviceFingerprint) { } /** - * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). - * @return deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to + * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * + * @return deviceFingerprint A string containing the shopper's device fingerprint. For more + * information, refer to [Device + * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -729,9 +791,12 @@ public String getDeviceFingerprint() { } /** - * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to + * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * - * @param deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @param deviceFingerprint A string containing the shopper's device fingerprint. For more + * information, refer to [Device + * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -740,9 +805,11 @@ public void setDeviceFingerprint(String deviceFingerprint) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or + * negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be + * either positive or negative. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest fraudOffset(Integer fraudOffset) { @@ -751,8 +818,11 @@ public BalanceCheckRequest fraudOffset(Integer fraudOffset) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. - * @return fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or + * negative. + * + * @return fraudOffset An integer value that is added to the normal fraud score. The value can be + * either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -761,9 +831,11 @@ public Integer getFraudOffset() { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or + * negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be + * either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -774,7 +846,7 @@ public void setFraudOffset(Integer fraudOffset) { /** * installments * - * @param installments + * @param installments * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest installments(Installments installments) { @@ -784,7 +856,8 @@ public BalanceCheckRequest installments(Installments installments) { /** * Get installments - * @return installments + * + * @return installments */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -795,7 +868,7 @@ public Installments getInstallments() { /** * installments * - * @param installments + * @param installments */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -804,17 +877,29 @@ public void setInstallments(Installments installments) { } /** - * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper + * statement in a local character set. If not supplied, left empty, or for cross-border + * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani + * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This + * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special + * characters. * Half-width or full-width characters. * - * @param localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. + * @param localizedShopperStatement The `localizedShopperStatement` field lets you use + * dynamic values for your shopper statement in a local character set. If not supplied, left + * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently + * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in + * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, + * capital letters, numbers and special characters. * Half-width or full-width characters. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ - public BalanceCheckRequest localizedShopperStatement(Map localizedShopperStatement) { + public BalanceCheckRequest localizedShopperStatement( + Map localizedShopperStatement) { this.localizedShopperStatement = localizedShopperStatement; return this; } - public BalanceCheckRequest putLocalizedShopperStatementItem(String key, String localizedShopperStatementItem) { + public BalanceCheckRequest putLocalizedShopperStatementItem( + String key, String localizedShopperStatementItem) { if (this.localizedShopperStatement == null) { this.localizedShopperStatement = new HashMap<>(); } @@ -823,8 +908,19 @@ public BalanceCheckRequest putLocalizedShopperStatementItem(String key, String l } /** - * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. - * @return localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper + * statement in a local character set. If not supplied, left empty, or for cross-border + * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani + * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This + * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special + * characters. * Half-width or full-width characters. + * + * @return localizedShopperStatement The `localizedShopperStatement` field lets you use + * dynamic values for your shopper statement in a local character set. If not supplied, left + * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently + * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in + * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, + * capital letters, numbers and special characters. * Half-width or full-width characters. */ @JsonProperty(JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -833,9 +929,19 @@ public Map getLocalizedShopperStatement() { } /** - * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper + * statement in a local character set. If not supplied, left empty, or for cross-border + * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani + * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This + * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special + * characters. * Half-width or full-width characters. * - * @param localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. + * @param localizedShopperStatement The `localizedShopperStatement` field lets you use + * dynamic values for your shopper statement in a local character set. If not supplied, left + * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently + * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in + * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, + * capital letters, numbers and special characters. * Half-width or full-width characters. */ @JsonProperty(JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -844,9 +950,13 @@ public void setLocalizedShopperStatement(Map localizedShopperSta } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a + * four-digit number, which relates to a particular market segment. This code reflects the + * predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) + * (MCC) is a four-digit number, which relates to a particular market segment. This code + * reflects the predominant activity that is conducted by the merchant. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest mcc(String mcc) { @@ -855,8 +965,13 @@ public BalanceCheckRequest mcc(String mcc) { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. - * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a + * four-digit number, which relates to a particular market segment. This code reflects the + * predominant activity that is conducted by the merchant. + * + * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) + * (MCC) is a four-digit number, which relates to a particular market segment. This code + * reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -865,9 +980,13 @@ public String getMcc() { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a + * four-digit number, which relates to a particular market segment. This code reflects the + * predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) + * (MCC) is a four-digit number, which relates to a particular market segment. This code + * reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -878,7 +997,8 @@ public void setMcc(String mcc) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest merchantAccount(String merchantAccount) { @@ -888,7 +1008,9 @@ public BalanceCheckRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * @return merchantAccount The merchant account identifier, with which you want to process the transaction. + * + * @return merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -899,7 +1021,8 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -908,9 +1031,23 @@ public void setMerchantAccount(String merchantAccount) { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. - * - * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. + * order auth-rate). The reference should be unique per billing cycle. The same merchant order + * reference should never be reused after the first authorised attempt. If used, this field should + * be supplied for all incoming authorisations. > We strongly recommend you send the + * `merchantOrderReference` value to benefit from linking payment requests when + * authorisation retries take place. In addition, we recommend you provide + * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * + * @param merchantOrderReference This reference allows linking multiple transactions to each other + * for reporting purposes (i.e. order auth-rate). The reference should be unique per billing + * cycle. The same merchant order reference should never be reused after the first authorised + * attempt. If used, this field should be supplied for all incoming authorisations. > We + * strongly recommend you send the `merchantOrderReference` value to benefit from + * linking payment requests when authorisation retries take place. In addition, we recommend + * you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest merchantOrderReference(String merchantOrderReference) { @@ -919,8 +1056,24 @@ public BalanceCheckRequest merchantOrderReference(String merchantOrderReference) } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. - * @return merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. + * order auth-rate). The reference should be unique per billing cycle. The same merchant order + * reference should never be reused after the first authorised attempt. If used, this field should + * be supplied for all incoming authorisations. > We strongly recommend you send the + * `merchantOrderReference` value to benefit from linking payment requests when + * authorisation retries take place. In addition, we recommend you provide + * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * + * @return merchantOrderReference This reference allows linking multiple transactions to each + * other for reporting purposes (i.e. order auth-rate). The reference should be unique per + * billing cycle. The same merchant order reference should never be reused after the first + * authorised attempt. If used, this field should be supplied for all incoming authorisations. + * > We strongly recommend you send the `merchantOrderReference` value to benefit + * from linking payment requests when authorisation retries take place. In addition, we + * recommend you provide `retry.orderAttemptNumber`, + * `retry.chainAttemptNumber`, and `retry.skipRetry` values in + * `PaymentRequest.additionalData`. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -929,9 +1082,23 @@ public String getMerchantOrderReference() { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. + * order auth-rate). The reference should be unique per billing cycle. The same merchant order + * reference should never be reused after the first authorised attempt. If used, this field should + * be supplied for all incoming authorisations. > We strongly recommend you send the + * `merchantOrderReference` value to benefit from linking payment requests when + * authorisation retries take place. In addition, we recommend you provide + * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. * - * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * @param merchantOrderReference This reference allows linking multiple transactions to each other + * for reporting purposes (i.e. order auth-rate). The reference should be unique per billing + * cycle. The same merchant order reference should never be reused after the first authorised + * attempt. If used, this field should be supplied for all incoming authorisations. > We + * strongly recommend you send the `merchantOrderReference` value to benefit from + * linking payment requests when authorisation retries take place. In addition, we recommend + * you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -942,7 +1109,7 @@ public void setMerchantOrderReference(String merchantOrderReference) { /** * merchantRiskIndicator * - * @param merchantRiskIndicator + * @param merchantRiskIndicator * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest merchantRiskIndicator(MerchantRiskIndicator merchantRiskIndicator) { @@ -952,7 +1119,8 @@ public BalanceCheckRequest merchantRiskIndicator(MerchantRiskIndicator merchantR /** * Get merchantRiskIndicator - * @return merchantRiskIndicator + * + * @return merchantRiskIndicator */ @JsonProperty(JSON_PROPERTY_MERCHANT_RISK_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -963,7 +1131,7 @@ public MerchantRiskIndicator getMerchantRiskIndicator() { /** * merchantRiskIndicator * - * @param merchantRiskIndicator + * @param merchantRiskIndicator */ @JsonProperty(JSON_PROPERTY_MERCHANT_RISK_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -972,9 +1140,15 @@ public void setMerchantRiskIndicator(MerchantRiskIndicator merchantRiskIndicator } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 + * key-value pairs per request. When exceeding, the \"177\" error occurs: + * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 + * characters per value. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: + * * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error + * occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * + * Maximum 80 characters per value. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest metadata(Map metadata) { @@ -991,8 +1165,15 @@ public BalanceCheckRequest putMetadataItem(String key, String metadataItem) { } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. - * @return metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 + * key-value pairs per request. When exceeding, the \"177\" error occurs: + * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 + * characters per value. + * + * @return metadata Metadata consists of entries, each of which includes a key and a value. + * Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" + * error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * + * Maximum 80 characters per value. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1001,9 +1182,15 @@ public Map getMetadata() { } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 + * key-value pairs per request. When exceeding, the \"177\" error occurs: + * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 + * characters per value. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: + * * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error + * occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * + * Maximum 80 characters per value. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1012,9 +1199,14 @@ public void setMetadata(Map metadata) { } /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + * When you are doing multiple partial (gift card) payments, this is the `pspReference` + * of the first payment. We use this to link the multiple payments to each other. As your own + * reference for linking multiple payments, use the `merchantOrderReference`instead. * - * @param orderReference When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + * @param orderReference When you are doing multiple partial (gift card) payments, this is the + * `pspReference` of the first payment. We use this to link the multiple payments to + * each other. As your own reference for linking multiple payments, use the + * `merchantOrderReference`instead. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest orderReference(String orderReference) { @@ -1023,8 +1215,14 @@ public BalanceCheckRequest orderReference(String orderReference) { } /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. - * @return orderReference When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + * When you are doing multiple partial (gift card) payments, this is the `pspReference` + * of the first payment. We use this to link the multiple payments to each other. As your own + * reference for linking multiple payments, use the `merchantOrderReference`instead. + * + * @return orderReference When you are doing multiple partial (gift card) payments, this is the + * `pspReference` of the first payment. We use this to link the multiple payments to + * each other. As your own reference for linking multiple payments, use the + * `merchantOrderReference`instead. */ @JsonProperty(JSON_PROPERTY_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1033,9 +1231,14 @@ public String getOrderReference() { } /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + * When you are doing multiple partial (gift card) payments, this is the `pspReference` + * of the first payment. We use this to link the multiple payments to each other. As your own + * reference for linking multiple payments, use the `merchantOrderReference`instead. * - * @param orderReference When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + * @param orderReference When you are doing multiple partial (gift card) payments, this is the + * `pspReference` of the first payment. We use this to link the multiple payments to + * each other. As your own reference for linking multiple payments, use the + * `merchantOrderReference`instead. */ @JsonProperty(JSON_PROPERTY_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1046,7 +1249,8 @@ public void setOrderReference(String orderReference) { /** * The collection that contains the type of the payment method and its specific information. * - * @param paymentMethod The collection that contains the type of the payment method and its specific information. + * @param paymentMethod The collection that contains the type of the payment method and its + * specific information. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest paymentMethod(Map paymentMethod) { @@ -1064,7 +1268,9 @@ public BalanceCheckRequest putPaymentMethodItem(String key, String paymentMethod /** * The collection that contains the type of the payment method and its specific information. - * @return paymentMethod The collection that contains the type of the payment method and its specific information. + * + * @return paymentMethod The collection that contains the type of the payment method and its + * specific information. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1075,7 +1281,8 @@ public Map getPaymentMethod() { /** * The collection that contains the type of the payment method and its specific information. * - * @param paymentMethod The collection that contains the type of the payment method and its specific information. + * @param paymentMethod The collection that contains the type of the payment method and its + * specific information. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1086,7 +1293,7 @@ public void setPaymentMethod(Map paymentMethod) { /** * recurring * - * @param recurring + * @param recurring * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest recurring(Recurring recurring) { @@ -1096,7 +1303,8 @@ public BalanceCheckRequest recurring(Recurring recurring) { /** * Get recurring - * @return recurring + * + * @return recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1107,7 +1315,7 @@ public Recurring getRecurring() { /** * recurring * - * @param recurring + * @param recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1116,19 +1324,55 @@ public void setRecurring(Recurring recurring) { } /** - * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. - * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or + * using stored payment details. Allowed values: * `Subscription` – A transaction for a + * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a + * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – + * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. + * + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a + * token to store payment details or using stored payment details. Allowed values: * + * `Subscription` – A transaction for a fixed or variable amount, which follows a + * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card + * details are stored to enable one-click or omnichannel journeys, or simply to streamline the + * checkout process. Any subscription not following a fixed schedule is also considered a + * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file + * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have + * variable amounts. For example, automatic top-ups when a cardholder's balance drops + * below a certain amount. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ - public BalanceCheckRequest recurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) { + public BalanceCheckRequest recurringProcessingModel( + RecurringProcessingModelEnum recurringProcessingModel) { this.recurringProcessingModel = recurringProcessingModel; return this; } /** - * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. - * @return recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or + * using stored payment details. Allowed values: * `Subscription` – A transaction for a + * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a + * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – + * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. + * + * @return recurringProcessingModel Defines a recurring payment type. Required when creating a + * token to store payment details or using stored payment details. Allowed values: * + * `Subscription` – A transaction for a fixed or variable amount, which follows a + * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card + * details are stored to enable one-click or omnichannel journeys, or simply to streamline the + * checkout process. Any subscription not following a fixed schedule is also considered a + * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file + * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have + * variable amounts. For example, automatic top-ups when a cardholder's balance drops + * below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1137,9 +1381,26 @@ public RecurringProcessingModelEnum getRecurringProcessingModel() { } /** - * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. - * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or + * using stored payment details. Allowed values: * `Subscription` – A transaction for a + * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a + * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – + * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. + * + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a + * token to store payment details or using stored payment details. Allowed values: * + * `Subscription` – A transaction for a fixed or variable amount, which follows a + * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card + * details are stored to enable one-click or omnichannel journeys, or simply to streamline the + * checkout process. Any subscription not following a fixed schedule is also considered a + * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file + * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have + * variable amounts. For example, automatic top-ups when a cardholder's balance drops + * below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1148,9 +1409,15 @@ public void setRecurringProcessingModel(RecurringProcessingModelEnum recurringPr } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest reference(String reference) { @@ -1159,8 +1426,15 @@ public BalanceCheckRequest reference(String reference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. - * @return reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. + * + * @return reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1169,9 +1443,15 @@ public String getReference() { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1180,9 +1460,15 @@ public void setReference(String reference) { } /** - * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. + * Some payment methods require defining a value for this field to specify how to process the + * transaction. For the Bancontact payment method, it can be set to: * `maestro` + * (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a + * Bancontact card. * - * @param selectedBrand Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. + * @param selectedBrand Some payment methods require defining a value for this field to specify + * how to process the transaction. For the Bancontact payment method, it can be set to: * + * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, + * to be processed like a Bancontact card. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest selectedBrand(String selectedBrand) { @@ -1191,8 +1477,15 @@ public BalanceCheckRequest selectedBrand(String selectedBrand) { } /** - * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. - * @return selectedBrand Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. + * Some payment methods require defining a value for this field to specify how to process the + * transaction. For the Bancontact payment method, it can be set to: * `maestro` + * (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a + * Bancontact card. + * + * @return selectedBrand Some payment methods require defining a value for this field to specify + * how to process the transaction. For the Bancontact payment method, it can be set to: * + * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, + * to be processed like a Bancontact card. */ @JsonProperty(JSON_PROPERTY_SELECTED_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1201,9 +1494,15 @@ public String getSelectedBrand() { } /** - * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. + * Some payment methods require defining a value for this field to specify how to process the + * transaction. For the Bancontact payment method, it can be set to: * `maestro` + * (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a + * Bancontact card. * - * @param selectedBrand Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. + * @param selectedBrand Some payment methods require defining a value for this field to specify + * how to process the transaction. For the Bancontact payment method, it can be set to: * + * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, + * to be processed like a Bancontact card. */ @JsonProperty(JSON_PROPERTY_SELECTED_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1212,19 +1511,27 @@ public void setSelectedBrand(String selectedBrand) { } /** - * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value + * `LATEST` can be used to select the most recently stored recurring detail. * - * @param selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * @param selectedRecurringDetailReference The `recurringDetailReference` you want to + * use for this payment. The value `LATEST` can be used to select the most recently + * stored recurring detail. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ - public BalanceCheckRequest selectedRecurringDetailReference(String selectedRecurringDetailReference) { + public BalanceCheckRequest selectedRecurringDetailReference( + String selectedRecurringDetailReference) { this.selectedRecurringDetailReference = selectedRecurringDetailReference; return this; } /** - * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. - * @return selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value + * `LATEST` can be used to select the most recently stored recurring detail. + * + * @return selectedRecurringDetailReference The `recurringDetailReference` you want to + * use for this payment. The value `LATEST` can be used to select the most recently + * stored recurring detail. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1233,9 +1540,12 @@ public String getSelectedRecurringDetailReference() { } /** - * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value + * `LATEST` can be used to select the most recently stored recurring detail. * - * @param selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * @param selectedRecurringDetailReference The `recurringDetailReference` you want to + * use for this payment. The value `LATEST` can be used to select the most recently + * stored recurring detail. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1256,6 +1566,7 @@ public BalanceCheckRequest sessionId(String sessionId) { /** * A session ID used to identify a payment session. + * * @return sessionId A session ID used to identify a payment session. */ @JsonProperty(JSON_PROPERTY_SESSION_ID) @@ -1276,9 +1587,13 @@ public void setSessionId(String sessionId) { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in + * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 + * authentication if you did not include the `telephoneNumber`. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, + * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that + * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest shopperEmail(String shopperEmail) { @@ -1287,8 +1602,13 @@ public BalanceCheckRequest shopperEmail(String shopperEmail) { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. - * @return shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in + * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 + * authentication if you did not include the `telephoneNumber`. + * + * @return shopperEmail The shopper's email address. We recommend that you provide this data, + * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that + * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1297,9 +1617,13 @@ public String getShopperEmail() { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in + * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 + * authentication if you did not include the `telephoneNumber`. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, + * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that + * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1308,9 +1632,22 @@ public void setShopperEmail(String shopperEmail) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a + * number of risk checks (for instance, number of payment attempts or location-based checks). > + * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and + * mobile integrations, if you did not include the `shopperEmail`. For native mobile + * integrations, the field is required to support cases where authentication is routed to the + * redirect flow. This field is also mandatory for some merchants depending on your business + * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it + * is used in a number of risk checks (for instance, number of payment attempts or + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the + * `shopperEmail`. For native mobile integrations, the field is required to support + * cases where authentication is routed to the redirect flow. This field is also mandatory for + * some merchants depending on your business model. For more information, [contact + * Support](https://www.adyen.help/hc/en-us/requests/new). * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest shopperIP(String shopperIP) { @@ -1319,8 +1656,22 @@ public BalanceCheckRequest shopperIP(String shopperIP) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). - * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a + * number of risk checks (for instance, number of payment attempts or location-based checks). > + * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and + * mobile integrations, if you did not include the `shopperEmail`. For native mobile + * integrations, the field is required to support cases where authentication is routed to the + * redirect flow. This field is also mandatory for some merchants depending on your business + * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * + * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it + * is used in a number of risk checks (for instance, number of payment attempts or + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the + * `shopperEmail`. For native mobile integrations, the field is required to support + * cases where authentication is routed to the redirect flow. This field is also mandatory for + * some merchants depending on your business model. For more information, [contact + * Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1329,9 +1680,22 @@ public String getShopperIP() { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a + * number of risk checks (for instance, number of payment attempts or location-based checks). > + * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and + * mobile integrations, if you did not include the `shopperEmail`. For native mobile + * integrations, the field is required to support cases where authentication is routed to the + * redirect flow. This field is also mandatory for some merchants depending on your business + * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it + * is used in a number of risk checks (for instance, number of payment attempts or + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the + * `shopperEmail`. For native mobile integrations, the field is required to support + * cases where authentication is routed to the redirect flow. This field is also mandatory for + * some merchants depending on your business model. For more information, [contact + * Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1340,9 +1704,30 @@ public void setShopperIP(String shopperIP) { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. + * + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest shopperInteraction(ShopperInteractionEnum shopperInteraction) { @@ -1351,8 +1736,30 @@ public BalanceCheckRequest shopperInteraction(ShopperInteractionEnum shopperInte } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * @return shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. + * + * @return shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1361,9 +1768,30 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. + * + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1372,9 +1800,11 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { } /** - * The combination of a language code and a country code to specify the language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the + * payment. * - * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the + * language to be used in the payment. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest shopperLocale(String shopperLocale) { @@ -1383,8 +1813,11 @@ public BalanceCheckRequest shopperLocale(String shopperLocale) { } /** - * The combination of a language code and a country code to specify the language to be used in the payment. - * @return shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the + * payment. + * + * @return shopperLocale The combination of a language code and a country code to specify the + * language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1393,9 +1826,11 @@ public String getShopperLocale() { } /** - * The combination of a language code and a country code to specify the language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the + * payment. * - * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the + * language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1406,7 +1841,7 @@ public void setShopperLocale(String shopperLocale) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest shopperName(Name shopperName) { @@ -1416,7 +1851,8 @@ public BalanceCheckRequest shopperName(Name shopperName) { /** * Get shopperName - * @return shopperName + * + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1427,7 +1863,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1436,9 +1872,15 @@ public void setShopperName(Name shopperName) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example + * user ID or account ID. The value is case-sensitive and must be at least three characters. > + * Your reference must not include personally identifiable information (PII) such as name or email + * address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify + * this shopper, for example user ID or account ID. The value is case-sensitive and must be at + * least three characters. > Your reference must not include personally identifiable + * information (PII) such as name or email address. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest shopperReference(String shopperReference) { @@ -1447,8 +1889,15 @@ public BalanceCheckRequest shopperReference(String shopperReference) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. - * @return shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example + * user ID or account ID. The value is case-sensitive and must be at least three characters. > + * Your reference must not include personally identifiable information (PII) such as name or email + * address. + * + * @return shopperReference Required for recurring payments. Your reference to uniquely identify + * this shopper, for example user ID or account ID. The value is case-sensitive and must be at + * least three characters. > Your reference must not include personally identifiable + * information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1457,9 +1906,15 @@ public String getShopperReference() { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example + * user ID or account ID. The value is case-sensitive and must be at least three characters. > + * Your reference must not include personally identifiable information (PII) such as name or email + * address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify + * this shopper, for example user ID or account ID. The value is case-sensitive and must be at + * least three characters. > Your reference must not include personally identifiable + * information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1468,9 +1923,14 @@ public void setShopperReference(String shopperReference) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 + * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, + * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend + * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed + * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * + * /_**. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest shopperStatement(String shopperStatement) { @@ -1479,8 +1939,14 @@ public BalanceCheckRequest shopperStatement(String shopperStatement) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. - * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 + * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, + * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * + * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend + * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed + * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1489,9 +1955,14 @@ public String getShopperStatement() { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 + * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, + * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend + * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed + * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1512,6 +1983,7 @@ public BalanceCheckRequest socialSecurityNumber(String socialSecurityNumber) { /** * The shopper's social security number. + * * @return socialSecurityNumber The shopper's social security number. */ @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER) @@ -1532,9 +2004,15 @@ public void setSocialSecurityNumber(String socialSecurityNumber) { } /** - * An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * An array of objects specifying how the payment should be split when using either Adyen for + * Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/split-payments), or standalone + * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). * - * @param splits An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * @param splits An array of objects specifying how the payment should be split when using either + * Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) + * or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone + * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest splits(List splits) { @@ -1551,8 +2029,15 @@ public BalanceCheckRequest addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). - * @return splits An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * An array of objects specifying how the payment should be split when using either Adyen for + * Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/split-payments), or standalone + * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * + * @return splits An array of objects specifying how the payment should be split when using either + * Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) + * or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone + * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1561,9 +2046,15 @@ public List getSplits() { } /** - * An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * An array of objects specifying how the payment should be split when using either Adyen for + * Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/split-payments), or standalone + * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). * - * @param splits An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * @param splits An array of objects specifying how the payment should be split when using either + * Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) + * or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone + * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1572,9 +2063,22 @@ public void setSplits(List splits) { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. * - * @param store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is + * your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest store(String store) { @@ -1583,8 +2087,22 @@ public BalanceCheckRequest store(String store) { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. - * @return store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. + * + * @return store Required for Adyen for Platforms integrations if you are a platform model. This + * is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1593,9 +2111,22 @@ public String getStore() { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. * - * @param store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is + * your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1604,9 +2135,17 @@ public void setStore(String store) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest telephoneNumber(String telephoneNumber) { @@ -1615,8 +2154,17 @@ public BalanceCheckRequest telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. - * @return telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. + * + * @return telephoneNumber The shopper's telephone number. The phone number must include a + * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1625,9 +2173,17 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1638,7 +2194,7 @@ public void setTelephoneNumber(String telephoneNumber) { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest threeDS2RequestData(ThreeDS2RequestData threeDS2RequestData) { @@ -1648,7 +2204,8 @@ public BalanceCheckRequest threeDS2RequestData(ThreeDS2RequestData threeDS2Reque /** * Get threeDS2RequestData - * @return threeDS2RequestData + * + * @return threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1659,7 +2216,7 @@ public ThreeDS2RequestData getThreeDS2RequestData() { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1668,26 +2225,41 @@ public void setThreeDS2RequestData(ThreeDS2RequestData threeDS2RequestData) { } /** - * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. * - * @param threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * @param threeDSAuthenticationOnly Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v69 - * Use `authenticationData.authenticationOnly` instead. + * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` + * instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use + // `authenticationData.authenticationOnly` instead. public BalanceCheckRequest threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { this.threeDSAuthenticationOnly = threeDSAuthenticationOnly; return this; } /** - * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. - * @return threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. - * @deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. + * Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. + * + * @return threeDSAuthenticationOnly Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. + * @deprecated // deprecated since Adyen Checkout API v69: Use + * `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use + // `authenticationData.authenticationOnly` instead. @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getThreeDSAuthenticationOnly() { @@ -1695,14 +2267,20 @@ public Boolean getThreeDSAuthenticationOnly() { } /** - * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. - * - * @param threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. * - * @deprecated since Adyen Checkout API v69 - * Use `authenticationData.authenticationOnly` instead. + * @param threeDSAuthenticationOnly Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. + * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` + * instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use + // `authenticationData.authenticationOnly` instead. @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { @@ -1710,9 +2288,11 @@ public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { } /** - * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). + * The reference value to aggregate sales totals in reporting. When not specified, the store field + * is used (if available). * - * @param totalsGroup The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). + * @param totalsGroup The reference value to aggregate sales totals in reporting. When not + * specified, the store field is used (if available). * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest totalsGroup(String totalsGroup) { @@ -1721,8 +2301,11 @@ public BalanceCheckRequest totalsGroup(String totalsGroup) { } /** - * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). - * @return totalsGroup The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). + * The reference value to aggregate sales totals in reporting. When not specified, the store field + * is used (if available). + * + * @return totalsGroup The reference value to aggregate sales totals in reporting. When not + * specified, the store field is used (if available). */ @JsonProperty(JSON_PROPERTY_TOTALS_GROUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1731,9 +2314,11 @@ public String getTotalsGroup() { } /** - * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). + * The reference value to aggregate sales totals in reporting. When not specified, the store field + * is used (if available). * - * @param totalsGroup The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). + * @param totalsGroup The reference value to aggregate sales totals in reporting. When not + * specified, the store field is used (if available). */ @JsonProperty(JSON_PROPERTY_TOTALS_GROUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1754,6 +2339,7 @@ public BalanceCheckRequest trustedShopper(Boolean trustedShopper) { /** * Set to true if the payment should be routed to a trusted MID. + * * @return trustedShopper Set to true if the payment should be routed to a trusted MID. */ @JsonProperty(JSON_PROPERTY_TRUSTED_SHOPPER) @@ -1773,9 +2359,7 @@ public void setTrustedShopper(Boolean trustedShopper) { this.trustedShopper = trustedShopper; } - /** - * Return true if this BalanceCheckRequest object is equal to o. - */ + /** Return true if this BalanceCheckRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -1785,55 +2369,104 @@ public boolean equals(Object o) { return false; } BalanceCheckRequest balanceCheckRequest = (BalanceCheckRequest) o; - return Objects.equals(this.accountInfo, balanceCheckRequest.accountInfo) && - Objects.equals(this.additionalAmount, balanceCheckRequest.additionalAmount) && - Objects.equals(this.additionalData, balanceCheckRequest.additionalData) && - Objects.equals(this.amount, balanceCheckRequest.amount) && - Objects.equals(this.applicationInfo, balanceCheckRequest.applicationInfo) && - Objects.equals(this.billingAddress, balanceCheckRequest.billingAddress) && - Objects.equals(this.browserInfo, balanceCheckRequest.browserInfo) && - Objects.equals(this.captureDelayHours, balanceCheckRequest.captureDelayHours) && - Objects.equals(this.dateOfBirth, balanceCheckRequest.dateOfBirth) && - Objects.equals(this.dccQuote, balanceCheckRequest.dccQuote) && - Objects.equals(this.deliveryAddress, balanceCheckRequest.deliveryAddress) && - Objects.equals(this.deliveryDate, balanceCheckRequest.deliveryDate) && - Objects.equals(this.deviceFingerprint, balanceCheckRequest.deviceFingerprint) && - Objects.equals(this.fraudOffset, balanceCheckRequest.fraudOffset) && - Objects.equals(this.installments, balanceCheckRequest.installments) && - Objects.equals(this.localizedShopperStatement, balanceCheckRequest.localizedShopperStatement) && - Objects.equals(this.mcc, balanceCheckRequest.mcc) && - Objects.equals(this.merchantAccount, balanceCheckRequest.merchantAccount) && - Objects.equals(this.merchantOrderReference, balanceCheckRequest.merchantOrderReference) && - Objects.equals(this.merchantRiskIndicator, balanceCheckRequest.merchantRiskIndicator) && - Objects.equals(this.metadata, balanceCheckRequest.metadata) && - Objects.equals(this.orderReference, balanceCheckRequest.orderReference) && - Objects.equals(this.paymentMethod, balanceCheckRequest.paymentMethod) && - Objects.equals(this.recurring, balanceCheckRequest.recurring) && - Objects.equals(this.recurringProcessingModel, balanceCheckRequest.recurringProcessingModel) && - Objects.equals(this.reference, balanceCheckRequest.reference) && - Objects.equals(this.selectedBrand, balanceCheckRequest.selectedBrand) && - Objects.equals(this.selectedRecurringDetailReference, balanceCheckRequest.selectedRecurringDetailReference) && - Objects.equals(this.sessionId, balanceCheckRequest.sessionId) && - Objects.equals(this.shopperEmail, balanceCheckRequest.shopperEmail) && - Objects.equals(this.shopperIP, balanceCheckRequest.shopperIP) && - Objects.equals(this.shopperInteraction, balanceCheckRequest.shopperInteraction) && - Objects.equals(this.shopperLocale, balanceCheckRequest.shopperLocale) && - Objects.equals(this.shopperName, balanceCheckRequest.shopperName) && - Objects.equals(this.shopperReference, balanceCheckRequest.shopperReference) && - Objects.equals(this.shopperStatement, balanceCheckRequest.shopperStatement) && - Objects.equals(this.socialSecurityNumber, balanceCheckRequest.socialSecurityNumber) && - Objects.equals(this.splits, balanceCheckRequest.splits) && - Objects.equals(this.store, balanceCheckRequest.store) && - Objects.equals(this.telephoneNumber, balanceCheckRequest.telephoneNumber) && - Objects.equals(this.threeDS2RequestData, balanceCheckRequest.threeDS2RequestData) && - Objects.equals(this.threeDSAuthenticationOnly, balanceCheckRequest.threeDSAuthenticationOnly) && - Objects.equals(this.totalsGroup, balanceCheckRequest.totalsGroup) && - Objects.equals(this.trustedShopper, balanceCheckRequest.trustedShopper); + return Objects.equals(this.accountInfo, balanceCheckRequest.accountInfo) + && Objects.equals(this.additionalAmount, balanceCheckRequest.additionalAmount) + && Objects.equals(this.additionalData, balanceCheckRequest.additionalData) + && Objects.equals(this.amount, balanceCheckRequest.amount) + && Objects.equals(this.applicationInfo, balanceCheckRequest.applicationInfo) + && Objects.equals(this.billingAddress, balanceCheckRequest.billingAddress) + && Objects.equals(this.browserInfo, balanceCheckRequest.browserInfo) + && Objects.equals(this.captureDelayHours, balanceCheckRequest.captureDelayHours) + && Objects.equals(this.dateOfBirth, balanceCheckRequest.dateOfBirth) + && Objects.equals(this.dccQuote, balanceCheckRequest.dccQuote) + && Objects.equals(this.deliveryAddress, balanceCheckRequest.deliveryAddress) + && Objects.equals(this.deliveryDate, balanceCheckRequest.deliveryDate) + && Objects.equals(this.deviceFingerprint, balanceCheckRequest.deviceFingerprint) + && Objects.equals(this.fraudOffset, balanceCheckRequest.fraudOffset) + && Objects.equals(this.installments, balanceCheckRequest.installments) + && Objects.equals( + this.localizedShopperStatement, balanceCheckRequest.localizedShopperStatement) + && Objects.equals(this.mcc, balanceCheckRequest.mcc) + && Objects.equals(this.merchantAccount, balanceCheckRequest.merchantAccount) + && Objects.equals(this.merchantOrderReference, balanceCheckRequest.merchantOrderReference) + && Objects.equals(this.merchantRiskIndicator, balanceCheckRequest.merchantRiskIndicator) + && Objects.equals(this.metadata, balanceCheckRequest.metadata) + && Objects.equals(this.orderReference, balanceCheckRequest.orderReference) + && Objects.equals(this.paymentMethod, balanceCheckRequest.paymentMethod) + && Objects.equals(this.recurring, balanceCheckRequest.recurring) + && Objects.equals( + this.recurringProcessingModel, balanceCheckRequest.recurringProcessingModel) + && Objects.equals(this.reference, balanceCheckRequest.reference) + && Objects.equals(this.selectedBrand, balanceCheckRequest.selectedBrand) + && Objects.equals( + this.selectedRecurringDetailReference, + balanceCheckRequest.selectedRecurringDetailReference) + && Objects.equals(this.sessionId, balanceCheckRequest.sessionId) + && Objects.equals(this.shopperEmail, balanceCheckRequest.shopperEmail) + && Objects.equals(this.shopperIP, balanceCheckRequest.shopperIP) + && Objects.equals(this.shopperInteraction, balanceCheckRequest.shopperInteraction) + && Objects.equals(this.shopperLocale, balanceCheckRequest.shopperLocale) + && Objects.equals(this.shopperName, balanceCheckRequest.shopperName) + && Objects.equals(this.shopperReference, balanceCheckRequest.shopperReference) + && Objects.equals(this.shopperStatement, balanceCheckRequest.shopperStatement) + && Objects.equals(this.socialSecurityNumber, balanceCheckRequest.socialSecurityNumber) + && Objects.equals(this.splits, balanceCheckRequest.splits) + && Objects.equals(this.store, balanceCheckRequest.store) + && Objects.equals(this.telephoneNumber, balanceCheckRequest.telephoneNumber) + && Objects.equals(this.threeDS2RequestData, balanceCheckRequest.threeDS2RequestData) + && Objects.equals( + this.threeDSAuthenticationOnly, balanceCheckRequest.threeDSAuthenticationOnly) + && Objects.equals(this.totalsGroup, balanceCheckRequest.totalsGroup) + && Objects.equals(this.trustedShopper, balanceCheckRequest.trustedShopper); } @Override public int hashCode() { - return Objects.hash(accountInfo, additionalAmount, additionalData, amount, applicationInfo, billingAddress, browserInfo, captureDelayHours, dateOfBirth, dccQuote, deliveryAddress, deliveryDate, deviceFingerprint, fraudOffset, installments, localizedShopperStatement, mcc, merchantAccount, merchantOrderReference, merchantRiskIndicator, metadata, orderReference, paymentMethod, recurring, recurringProcessingModel, reference, selectedBrand, selectedRecurringDetailReference, sessionId, shopperEmail, shopperIP, shopperInteraction, shopperLocale, shopperName, shopperReference, shopperStatement, socialSecurityNumber, splits, store, telephoneNumber, threeDS2RequestData, threeDSAuthenticationOnly, totalsGroup, trustedShopper); + return Objects.hash( + accountInfo, + additionalAmount, + additionalData, + amount, + applicationInfo, + billingAddress, + browserInfo, + captureDelayHours, + dateOfBirth, + dccQuote, + deliveryAddress, + deliveryDate, + deviceFingerprint, + fraudOffset, + installments, + localizedShopperStatement, + mcc, + merchantAccount, + merchantOrderReference, + merchantRiskIndicator, + metadata, + orderReference, + paymentMethod, + recurring, + recurringProcessingModel, + reference, + selectedBrand, + selectedRecurringDetailReference, + sessionId, + shopperEmail, + shopperIP, + shopperInteraction, + shopperLocale, + shopperName, + shopperReference, + shopperStatement, + socialSecurityNumber, + splits, + store, + telephoneNumber, + threeDS2RequestData, + threeDSAuthenticationOnly, + totalsGroup, + trustedShopper); } @Override @@ -1855,19 +2488,29 @@ public String toString() { sb.append(" deviceFingerprint: ").append(toIndentedString(deviceFingerprint)).append("\n"); sb.append(" fraudOffset: ").append(toIndentedString(fraudOffset)).append("\n"); sb.append(" installments: ").append(toIndentedString(installments)).append("\n"); - sb.append(" localizedShopperStatement: ").append(toIndentedString(localizedShopperStatement)).append("\n"); + sb.append(" localizedShopperStatement: ") + .append(toIndentedString(localizedShopperStatement)) + .append("\n"); sb.append(" mcc: ").append(toIndentedString(mcc)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" merchantOrderReference: ").append(toIndentedString(merchantOrderReference)).append("\n"); - sb.append(" merchantRiskIndicator: ").append(toIndentedString(merchantRiskIndicator)).append("\n"); + sb.append(" merchantOrderReference: ") + .append(toIndentedString(merchantOrderReference)) + .append("\n"); + sb.append(" merchantRiskIndicator: ") + .append(toIndentedString(merchantRiskIndicator)) + .append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" orderReference: ").append(toIndentedString(orderReference)).append("\n"); sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n"); sb.append(" recurring: ").append(toIndentedString(recurring)).append("\n"); - sb.append(" recurringProcessingModel: ").append(toIndentedString(recurringProcessingModel)).append("\n"); + sb.append(" recurringProcessingModel: ") + .append(toIndentedString(recurringProcessingModel)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" selectedBrand: ").append(toIndentedString(selectedBrand)).append("\n"); - sb.append(" selectedRecurringDetailReference: ").append(toIndentedString(selectedRecurringDetailReference)).append("\n"); + sb.append(" selectedRecurringDetailReference: ") + .append(toIndentedString(selectedRecurringDetailReference)) + .append("\n"); sb.append(" sessionId: ").append(toIndentedString(sessionId)).append("\n"); sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); sb.append(" shopperIP: ").append(toIndentedString(shopperIP)).append("\n"); @@ -1876,12 +2519,18 @@ public String toString() { sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append(" shopperStatement: ").append(toIndentedString(shopperStatement)).append("\n"); - sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); + sb.append(" socialSecurityNumber: ") + .append(toIndentedString(socialSecurityNumber)) + .append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" store: ").append(toIndentedString(store)).append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); - sb.append(" threeDS2RequestData: ").append(toIndentedString(threeDS2RequestData)).append("\n"); - sb.append(" threeDSAuthenticationOnly: ").append(toIndentedString(threeDSAuthenticationOnly)).append("\n"); + sb.append(" threeDS2RequestData: ") + .append(toIndentedString(threeDS2RequestData)) + .append("\n"); + sb.append(" threeDSAuthenticationOnly: ") + .append(toIndentedString(threeDSAuthenticationOnly)) + .append("\n"); sb.append(" totalsGroup: ").append(toIndentedString(totalsGroup)).append("\n"); sb.append(" trustedShopper: ").append(toIndentedString(trustedShopper)).append("\n"); sb.append("}"); @@ -1889,8 +2538,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1899,21 +2547,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BalanceCheckRequest given an JSON string * * @param jsonString JSON string * @return An instance of BalanceCheckRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceCheckRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BalanceCheckRequest */ public static BalanceCheckRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceCheckRequest.class); } -/** - * Convert an instance of BalanceCheckRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BalanceCheckRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/BalanceCheckResponse.java b/src/main/java/com/adyen/model/checkout/BalanceCheckResponse.java index 5c551a556..fd894eac9 100644 --- a/src/main/java/com/adyen/model/checkout/BalanceCheckResponse.java +++ b/src/main/java/com/adyen/model/checkout/BalanceCheckResponse.java @@ -2,35 +2,28 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Amount; -import com.adyen.model.checkout.FraudResult; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * BalanceCheckResponse - */ +/** BalanceCheckResponse */ @JsonPropertyOrder({ BalanceCheckResponse.JSON_PROPERTY_ADDITIONAL_DATA, BalanceCheckResponse.JSON_PROPERTY_BALANCE, @@ -40,7 +33,6 @@ BalanceCheckResponse.JSON_PROPERTY_RESULT_CODE, BalanceCheckResponse.JSON_PROPERTY_TRANSACTION_LIMIT }) - public class BalanceCheckResponse { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -58,10 +50,13 @@ public class BalanceCheckResponse { private String refusalReason; /** - * The result of the cancellation request. Possible values: * **Success** – Indicates that the balance check was successful. * **NotEnoughBalance** – Commonly indicates that the card did not have enough balance to pay the amount in the request, or that the currency of the balance on the card did not match the currency of the requested amount. * **Failed** – Indicates that the balance check failed. + * The result of the cancellation request. Possible values: * **Success** – Indicates that the + * balance check was successful. * **NotEnoughBalance** – Commonly indicates that the card did not + * have enough balance to pay the amount in the request, or that the currency of the balance on + * the card did not match the currency of the requested amount. * **Failed** – Indicates that the + * balance check failed. */ public enum ResultCodeEnum { - SUCCESS(String.valueOf("Success")), NOTENOUGHBALANCE(String.valueOf("NotEnoughBalance")), @@ -73,7 +68,7 @@ public enum ResultCodeEnum { private String value; ResultCodeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -94,7 +89,11 @@ public static ResultCodeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ResultCodeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResultCodeEnum.values())); + LOG.warning( + "ResultCodeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ResultCodeEnum.values())); return null; } } @@ -105,13 +104,15 @@ public static ResultCodeEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANSACTION_LIMIT = "transactionLimit"; private Amount transactionLimit; - public BalanceCheckResponse() { - } + public BalanceCheckResponse() {} /** - * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first: Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first: Go to **Customer Area** > **Developers** > + * **Additional data**. * @return the current {@code BalanceCheckResponse} instance, allowing for method chaining */ public BalanceCheckResponse additionalData(Map additionalData) { @@ -128,8 +129,12 @@ public BalanceCheckResponse putAdditionalDataItem(String key, String additionalD } /** - * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. - * @return additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * + * @return additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first: Go to **Customer Area** > **Developers** > + * **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,9 +143,12 @@ public Map getAdditionalData() { } /** - * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first: Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first: Go to **Customer Area** > **Developers** > + * **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,7 +159,7 @@ public void setAdditionalData(Map additionalData) { /** * balance * - * @param balance + * @param balance * @return the current {@code BalanceCheckResponse} instance, allowing for method chaining */ public BalanceCheckResponse balance(Amount balance) { @@ -161,7 +169,8 @@ public BalanceCheckResponse balance(Amount balance) { /** * Get balance - * @return balance + * + * @return balance */ @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,7 +181,7 @@ public Amount getBalance() { /** * balance * - * @param balance + * @param balance */ @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,7 +192,7 @@ public void setBalance(Amount balance) { /** * fraudResult * - * @param fraudResult + * @param fraudResult * @return the current {@code BalanceCheckResponse} instance, allowing for method chaining */ public BalanceCheckResponse fraudResult(FraudResult fraudResult) { @@ -193,7 +202,8 @@ public BalanceCheckResponse fraudResult(FraudResult fraudResult) { /** * Get fraudResult - * @return fraudResult + * + * @return fraudResult */ @JsonProperty(JSON_PROPERTY_FRAUD_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,7 +214,7 @@ public FraudResult getFraudResult() { /** * fraudResult * - * @param fraudResult + * @param fraudResult */ @JsonProperty(JSON_PROPERTY_FRAUD_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -213,9 +223,11 @@ public void setFraudResult(FraudResult fraudResult) { } /** - * Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character reference associated with the transaction/request. This value is + * globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @param pspReference Adyen's 16-character reference associated with the transaction/request. + * This value is globally unique; quote it when communicating with us about this request. * @return the current {@code BalanceCheckResponse} instance, allowing for method chaining */ public BalanceCheckResponse pspReference(String pspReference) { @@ -224,8 +236,12 @@ public BalanceCheckResponse pspReference(String pspReference) { } /** - * Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. - * @return pspReference Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character reference associated with the transaction/request. This value is + * globally unique; quote it when communicating with us about this request. + * + * @return pspReference Adyen's 16-character reference associated with the + * transaction/request. This value is globally unique; quote it when communicating with us + * about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -234,9 +250,11 @@ public String getPspReference() { } /** - * Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character reference associated with the transaction/request. This value is + * globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @param pspReference Adyen's 16-character reference associated with the transaction/request. + * This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -245,9 +263,17 @@ public void setPspReference(String pspReference) { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this + * field holds Adyen's mapped reason for the refusal or a description of the error. When a + * transaction fails, the authorisation response includes `resultCode` and + * `refusalReason` values. For more information, see [Refusal + * reasons](https://docs.adyen.com/development-resources/refusal-reasons). * - * @param refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @param refusalReason If the payment's authorisation is refused or an error occurs during + * authorisation, this field holds Adyen's mapped reason for the refusal or a description + * of the error. When a transaction fails, the authorisation response includes + * `resultCode` and `refusalReason` values. For more information, see + * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). * @return the current {@code BalanceCheckResponse} instance, allowing for method chaining */ public BalanceCheckResponse refusalReason(String refusalReason) { @@ -256,8 +282,17 @@ public BalanceCheckResponse refusalReason(String refusalReason) { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). - * @return refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this + * field holds Adyen's mapped reason for the refusal or a description of the error. When a + * transaction fails, the authorisation response includes `resultCode` and + * `refusalReason` values. For more information, see [Refusal + * reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * + * @return refusalReason If the payment's authorisation is refused or an error occurs during + * authorisation, this field holds Adyen's mapped reason for the refusal or a description + * of the error. When a transaction fails, the authorisation response includes + * `resultCode` and `refusalReason` values. For more information, see + * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -266,9 +301,17 @@ public String getRefusalReason() { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this + * field holds Adyen's mapped reason for the refusal or a description of the error. When a + * transaction fails, the authorisation response includes `resultCode` and + * `refusalReason` values. For more information, see [Refusal + * reasons](https://docs.adyen.com/development-resources/refusal-reasons). * - * @param refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @param refusalReason If the payment's authorisation is refused or an error occurs during + * authorisation, this field holds Adyen's mapped reason for the refusal or a description + * of the error. When a transaction fails, the authorisation response includes + * `resultCode` and `refusalReason` values. For more information, see + * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -277,9 +320,17 @@ public void setRefusalReason(String refusalReason) { } /** - * The result of the cancellation request. Possible values: * **Success** – Indicates that the balance check was successful. * **NotEnoughBalance** – Commonly indicates that the card did not have enough balance to pay the amount in the request, or that the currency of the balance on the card did not match the currency of the requested amount. * **Failed** – Indicates that the balance check failed. + * The result of the cancellation request. Possible values: * **Success** – Indicates that the + * balance check was successful. * **NotEnoughBalance** – Commonly indicates that the card did not + * have enough balance to pay the amount in the request, or that the currency of the balance on + * the card did not match the currency of the requested amount. * **Failed** – Indicates that the + * balance check failed. * - * @param resultCode The result of the cancellation request. Possible values: * **Success** – Indicates that the balance check was successful. * **NotEnoughBalance** – Commonly indicates that the card did not have enough balance to pay the amount in the request, or that the currency of the balance on the card did not match the currency of the requested amount. * **Failed** – Indicates that the balance check failed. + * @param resultCode The result of the cancellation request. Possible values: * **Success** – + * Indicates that the balance check was successful. * **NotEnoughBalance** – Commonly + * indicates that the card did not have enough balance to pay the amount in the request, or + * that the currency of the balance on the card did not match the currency of the requested + * amount. * **Failed** – Indicates that the balance check failed. * @return the current {@code BalanceCheckResponse} instance, allowing for method chaining */ public BalanceCheckResponse resultCode(ResultCodeEnum resultCode) { @@ -288,8 +339,17 @@ public BalanceCheckResponse resultCode(ResultCodeEnum resultCode) { } /** - * The result of the cancellation request. Possible values: * **Success** – Indicates that the balance check was successful. * **NotEnoughBalance** – Commonly indicates that the card did not have enough balance to pay the amount in the request, or that the currency of the balance on the card did not match the currency of the requested amount. * **Failed** – Indicates that the balance check failed. - * @return resultCode The result of the cancellation request. Possible values: * **Success** – Indicates that the balance check was successful. * **NotEnoughBalance** – Commonly indicates that the card did not have enough balance to pay the amount in the request, or that the currency of the balance on the card did not match the currency of the requested amount. * **Failed** – Indicates that the balance check failed. + * The result of the cancellation request. Possible values: * **Success** – Indicates that the + * balance check was successful. * **NotEnoughBalance** – Commonly indicates that the card did not + * have enough balance to pay the amount in the request, or that the currency of the balance on + * the card did not match the currency of the requested amount. * **Failed** – Indicates that the + * balance check failed. + * + * @return resultCode The result of the cancellation request. Possible values: * **Success** – + * Indicates that the balance check was successful. * **NotEnoughBalance** – Commonly + * indicates that the card did not have enough balance to pay the amount in the request, or + * that the currency of the balance on the card did not match the currency of the requested + * amount. * **Failed** – Indicates that the balance check failed. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -298,9 +358,17 @@ public ResultCodeEnum getResultCode() { } /** - * The result of the cancellation request. Possible values: * **Success** – Indicates that the balance check was successful. * **NotEnoughBalance** – Commonly indicates that the card did not have enough balance to pay the amount in the request, or that the currency of the balance on the card did not match the currency of the requested amount. * **Failed** – Indicates that the balance check failed. + * The result of the cancellation request. Possible values: * **Success** – Indicates that the + * balance check was successful. * **NotEnoughBalance** – Commonly indicates that the card did not + * have enough balance to pay the amount in the request, or that the currency of the balance on + * the card did not match the currency of the requested amount. * **Failed** – Indicates that the + * balance check failed. * - * @param resultCode The result of the cancellation request. Possible values: * **Success** – Indicates that the balance check was successful. * **NotEnoughBalance** – Commonly indicates that the card did not have enough balance to pay the amount in the request, or that the currency of the balance on the card did not match the currency of the requested amount. * **Failed** – Indicates that the balance check failed. + * @param resultCode The result of the cancellation request. Possible values: * **Success** – + * Indicates that the balance check was successful. * **NotEnoughBalance** – Commonly + * indicates that the card did not have enough balance to pay the amount in the request, or + * that the currency of the balance on the card did not match the currency of the requested + * amount. * **Failed** – Indicates that the balance check failed. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -311,7 +379,7 @@ public void setResultCode(ResultCodeEnum resultCode) { /** * transactionLimit * - * @param transactionLimit + * @param transactionLimit * @return the current {@code BalanceCheckResponse} instance, allowing for method chaining */ public BalanceCheckResponse transactionLimit(Amount transactionLimit) { @@ -321,7 +389,8 @@ public BalanceCheckResponse transactionLimit(Amount transactionLimit) { /** * Get transactionLimit - * @return transactionLimit + * + * @return transactionLimit */ @JsonProperty(JSON_PROPERTY_TRANSACTION_LIMIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -332,7 +401,7 @@ public Amount getTransactionLimit() { /** * transactionLimit * - * @param transactionLimit + * @param transactionLimit */ @JsonProperty(JSON_PROPERTY_TRANSACTION_LIMIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -340,9 +409,7 @@ public void setTransactionLimit(Amount transactionLimit) { this.transactionLimit = transactionLimit; } - /** - * Return true if this BalanceCheckResponse object is equal to o. - */ + /** Return true if this BalanceCheckResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -352,18 +419,25 @@ public boolean equals(Object o) { return false; } BalanceCheckResponse balanceCheckResponse = (BalanceCheckResponse) o; - return Objects.equals(this.additionalData, balanceCheckResponse.additionalData) && - Objects.equals(this.balance, balanceCheckResponse.balance) && - Objects.equals(this.fraudResult, balanceCheckResponse.fraudResult) && - Objects.equals(this.pspReference, balanceCheckResponse.pspReference) && - Objects.equals(this.refusalReason, balanceCheckResponse.refusalReason) && - Objects.equals(this.resultCode, balanceCheckResponse.resultCode) && - Objects.equals(this.transactionLimit, balanceCheckResponse.transactionLimit); + return Objects.equals(this.additionalData, balanceCheckResponse.additionalData) + && Objects.equals(this.balance, balanceCheckResponse.balance) + && Objects.equals(this.fraudResult, balanceCheckResponse.fraudResult) + && Objects.equals(this.pspReference, balanceCheckResponse.pspReference) + && Objects.equals(this.refusalReason, balanceCheckResponse.refusalReason) + && Objects.equals(this.resultCode, balanceCheckResponse.resultCode) + && Objects.equals(this.transactionLimit, balanceCheckResponse.transactionLimit); } @Override public int hashCode() { - return Objects.hash(additionalData, balance, fraudResult, pspReference, refusalReason, resultCode, transactionLimit); + return Objects.hash( + additionalData, + balance, + fraudResult, + pspReference, + refusalReason, + resultCode, + transactionLimit); } @Override @@ -382,8 +456,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -392,21 +465,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BalanceCheckResponse given an JSON string * * @param jsonString JSON string * @return An instance of BalanceCheckResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceCheckResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BalanceCheckResponse */ public static BalanceCheckResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceCheckResponse.class); } -/** - * Convert an instance of BalanceCheckResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BalanceCheckResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/BillDeskDetails.java b/src/main/java/com/adyen/model/checkout/BillDeskDetails.java index 23be9a6f3..64442fc83 100644 --- a/src/main/java/com/adyen/model/checkout/BillDeskDetails.java +++ b/src/main/java/com/adyen/model/checkout/BillDeskDetails.java @@ -2,37 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * BillDeskDetails - */ +/** BillDeskDetails */ @JsonPropertyOrder({ BillDeskDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, BillDeskDetails.JSON_PROPERTY_ISSUER, BillDeskDetails.JSON_PROPERTY_TYPE }) - public class BillDeskDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -40,11 +34,8 @@ public class BillDeskDetails { public static final String JSON_PROPERTY_ISSUER = "issuer"; private String issuer; - /** - * **billdesk** - */ + /** **billdesk** */ public enum TypeEnum { - BILLDESK_ONLINE(String.valueOf("billdesk_online")), BILLDESK_WALLET(String.valueOf("billdesk_wallet")); @@ -54,7 +45,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -75,7 +66,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -83,8 +78,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public BillDeskDetails() { - } + public BillDeskDetails() {} /** * The checkout attempt identifier. @@ -99,6 +93,7 @@ public BillDeskDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -131,6 +126,7 @@ public BillDeskDetails issuer(String issuer) { /** * The issuer id of the shopper's selected bank. + * * @return issuer The issuer id of the shopper's selected bank. */ @JsonProperty(JSON_PROPERTY_ISSUER) @@ -163,6 +159,7 @@ public BillDeskDetails type(TypeEnum type) { /** * **billdesk** + * * @return type **billdesk** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -182,9 +179,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this BillDeskDetails object is equal to o. - */ + /** Return true if this BillDeskDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -194,9 +189,9 @@ public boolean equals(Object o) { return false; } BillDeskDetails billDeskDetails = (BillDeskDetails) o; - return Objects.equals(this.checkoutAttemptId, billDeskDetails.checkoutAttemptId) && - Objects.equals(this.issuer, billDeskDetails.issuer) && - Objects.equals(this.type, billDeskDetails.type); + return Objects.equals(this.checkoutAttemptId, billDeskDetails.checkoutAttemptId) + && Objects.equals(this.issuer, billDeskDetails.issuer) + && Objects.equals(this.type, billDeskDetails.type); } @Override @@ -216,8 +211,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -226,7 +220,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BillDeskDetails given an JSON string * * @param jsonString JSON string @@ -236,11 +230,12 @@ private String toIndentedString(Object o) { public static BillDeskDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BillDeskDetails.class); } -/** - * Convert an instance of BillDeskDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BillDeskDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/BillingAddress.java b/src/main/java/com/adyen/model/checkout/BillingAddress.java index ffbeb4ccb..8dfacc2a5 100644 --- a/src/main/java/com/adyen/model/checkout/BillingAddress.java +++ b/src/main/java/com/adyen/model/checkout/BillingAddress.java @@ -2,31 +2,22 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * BillingAddress - */ +/** BillingAddress */ @JsonPropertyOrder({ BillingAddress.JSON_PROPERTY_CITY, BillingAddress.JSON_PROPERTY_COUNTRY, @@ -35,7 +26,6 @@ BillingAddress.JSON_PROPERTY_STATE_OR_PROVINCE, BillingAddress.JSON_PROPERTY_STREET }) - public class BillingAddress { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -55,8 +45,7 @@ public class BillingAddress { public static final String JSON_PROPERTY_STREET = "street"; private String street; - public BillingAddress() { - } + public BillingAddress() {} /** * The name of the city. Maximum length: 3000 characters. @@ -71,6 +60,7 @@ public BillingAddress city(String city) { /** * The name of the city. Maximum length: 3000 characters. + * * @return city The name of the city. Maximum length: 3000 characters. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -91,9 +81,13 @@ public void setCity(String city) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't + * know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If + * you don't know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. * @return the current {@code BillingAddress} instance, allowing for method chaining */ public BillingAddress country(String country) { @@ -102,8 +96,13 @@ public BillingAddress country(String country) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. - * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't + * know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. + * + * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If + * you don't know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,9 +111,13 @@ public String getCountry() { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't + * know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If + * you don't know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,6 +138,7 @@ public BillingAddress houseNumberOrName(String houseNumberOrName) { /** * The number or name of the house. Maximum length: 3000 characters. + * * @return houseNumberOrName The number or name of the house. Maximum length: 3000 characters. */ @JsonProperty(JSON_PROPERTY_HOUSE_NUMBER_OR_NAME) @@ -155,9 +159,11 @@ public void setHouseNumberOrName(String houseNumberOrName) { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an + * address in all other countries. * - * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten + * characters for an address in all other countries. * @return the current {@code BillingAddress} instance, allowing for method chaining */ public BillingAddress postalCode(String postalCode) { @@ -166,8 +172,11 @@ public BillingAddress postalCode(String postalCode) { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. - * @return postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an + * address in all other countries. + * + * @return postalCode A maximum of five digits for an address in the US, or a maximum of ten + * characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,9 +185,11 @@ public String getPostalCode() { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an + * address in all other countries. * - * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten + * characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,9 +198,11 @@ public void setPostalCode(String postalCode) { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in + * Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** + * in the US or **ON** in Canada. > Required for the US and Canada. * @return the current {@code BillingAddress} instance, allowing for method chaining */ public BillingAddress stateOrProvince(String stateOrProvince) { @@ -198,8 +211,11 @@ public BillingAddress stateOrProvince(String stateOrProvince) { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. - * @return stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in + * Canada. > Required for the US and Canada. + * + * @return stateOrProvince The two-character ISO 3166-2 state or province code. For example, + * **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,9 +224,11 @@ public String getStateOrProvince() { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in + * Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** + * in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,9 +237,12 @@ public void setStateOrProvince(String stateOrProvince) { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be + * included in this field; it should be separately provided via `houseNumberOrName`. * - * @param street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * @param street The name of the street. Maximum length: 3000 characters. > The house number + * should not be included in this field; it should be separately provided via + * `houseNumberOrName`. * @return the current {@code BillingAddress} instance, allowing for method chaining */ public BillingAddress street(String street) { @@ -230,8 +251,12 @@ public BillingAddress street(String street) { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. - * @return street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be + * included in this field; it should be separately provided via `houseNumberOrName`. + * + * @return street The name of the street. Maximum length: 3000 characters. > The house number + * should not be included in this field; it should be separately provided via + * `houseNumberOrName`. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,9 +265,12 @@ public String getStreet() { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be + * included in this field; it should be separately provided via `houseNumberOrName`. * - * @param street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * @param street The name of the street. Maximum length: 3000 characters. > The house number + * should not be included in this field; it should be separately provided via + * `houseNumberOrName`. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,9 +278,7 @@ public void setStreet(String street) { this.street = street; } - /** - * Return true if this BillingAddress object is equal to o. - */ + /** Return true if this BillingAddress object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -262,12 +288,12 @@ public boolean equals(Object o) { return false; } BillingAddress billingAddress = (BillingAddress) o; - return Objects.equals(this.city, billingAddress.city) && - Objects.equals(this.country, billingAddress.country) && - Objects.equals(this.houseNumberOrName, billingAddress.houseNumberOrName) && - Objects.equals(this.postalCode, billingAddress.postalCode) && - Objects.equals(this.stateOrProvince, billingAddress.stateOrProvince) && - Objects.equals(this.street, billingAddress.street); + return Objects.equals(this.city, billingAddress.city) + && Objects.equals(this.country, billingAddress.country) + && Objects.equals(this.houseNumberOrName, billingAddress.houseNumberOrName) + && Objects.equals(this.postalCode, billingAddress.postalCode) + && Objects.equals(this.stateOrProvince, billingAddress.stateOrProvince) + && Objects.equals(this.street, billingAddress.street); } @Override @@ -290,8 +316,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -300,7 +325,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BillingAddress given an JSON string * * @param jsonString JSON string @@ -310,11 +335,12 @@ private String toIndentedString(Object o) { public static BillingAddress fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BillingAddress.class); } -/** - * Convert an instance of BillingAddress to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BillingAddress to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/BlikDetails.java b/src/main/java/com/adyen/model/checkout/BlikDetails.java index 841500eb7..49c626d4f 100644 --- a/src/main/java/com/adyen/model/checkout/BlikDetails.java +++ b/src/main/java/com/adyen/model/checkout/BlikDetails.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * BlikDetails - */ +/** BlikDetails */ @JsonPropertyOrder({ BlikDetails.JSON_PROPERTY_BLIK_CODE, BlikDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, @@ -34,7 +29,6 @@ BlikDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, BlikDetails.JSON_PROPERTY_TYPE }) - public class BlikDetails { public static final String JSON_PROPERTY_BLIK_CODE = "blikCode"; private String blikCode; @@ -49,11 +43,8 @@ public class BlikDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** - * **blik** - */ + /** **blik** */ public enum TypeEnum { - BLIK(String.valueOf("blik")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -61,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -82,7 +73,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -90,8 +85,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public BlikDetails() { - } + public BlikDetails() {} /** * BLIK code consisting of 6 digits. @@ -106,6 +100,7 @@ public BlikDetails blikCode(String blikCode) { /** * BLIK code consisting of 6 digits. + * * @return blikCode BLIK code consisting of 6 digits. */ @JsonProperty(JSON_PROPERTY_BLIK_CODE) @@ -138,6 +133,7 @@ public BlikDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -158,13 +154,13 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code BlikDetails} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public BlikDetails recurringDetailReference(String recurringDetailReference) { @@ -173,8 +169,11 @@ public BlikDetails recurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -185,12 +184,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -200,9 +199,11 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code BlikDetails} instance, allowing for method chaining */ public BlikDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -211,8 +212,11 @@ public BlikDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,9 +225,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,6 +250,7 @@ public BlikDetails type(TypeEnum type) { /** * **blik** + * * @return type **blik** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -263,9 +270,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this BlikDetails object is equal to o. - */ + /** Return true if this BlikDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -275,16 +280,17 @@ public boolean equals(Object o) { return false; } BlikDetails blikDetails = (BlikDetails) o; - return Objects.equals(this.blikCode, blikDetails.blikCode) && - Objects.equals(this.checkoutAttemptId, blikDetails.checkoutAttemptId) && - Objects.equals(this.recurringDetailReference, blikDetails.recurringDetailReference) && - Objects.equals(this.storedPaymentMethodId, blikDetails.storedPaymentMethodId) && - Objects.equals(this.type, blikDetails.type); + return Objects.equals(this.blikCode, blikDetails.blikCode) + && Objects.equals(this.checkoutAttemptId, blikDetails.checkoutAttemptId) + && Objects.equals(this.recurringDetailReference, blikDetails.recurringDetailReference) + && Objects.equals(this.storedPaymentMethodId, blikDetails.storedPaymentMethodId) + && Objects.equals(this.type, blikDetails.type); } @Override public int hashCode() { - return Objects.hash(blikCode, checkoutAttemptId, recurringDetailReference, storedPaymentMethodId, type); + return Objects.hash( + blikCode, checkoutAttemptId, recurringDetailReference, storedPaymentMethodId, type); } @Override @@ -293,16 +299,19 @@ public String toString() { sb.append("class BlikDetails {\n"); sb.append(" blikCode: ").append(toIndentedString(blikCode)).append("\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -311,7 +320,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BlikDetails given an JSON string * * @param jsonString JSON string @@ -321,11 +330,12 @@ private String toIndentedString(Object o) { public static BlikDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BlikDetails.class); } -/** - * Convert an instance of BlikDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BlikDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/BrowserInfo.java b/src/main/java/com/adyen/model/checkout/BrowserInfo.java index 3cb5de5d0..c2d1d508c 100644 --- a/src/main/java/com/adyen/model/checkout/BrowserInfo.java +++ b/src/main/java/com/adyen/model/checkout/BrowserInfo.java @@ -2,31 +2,22 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * BrowserInfo - */ +/** BrowserInfo */ @JsonPropertyOrder({ BrowserInfo.JSON_PROPERTY_ACCEPT_HEADER, BrowserInfo.JSON_PROPERTY_COLOR_DEPTH, @@ -38,7 +29,6 @@ BrowserInfo.JSON_PROPERTY_TIME_ZONE_OFFSET, BrowserInfo.JSON_PROPERTY_USER_AGENT }) - public class BrowserInfo { public static final String JSON_PROPERTY_ACCEPT_HEADER = "acceptHeader"; private String acceptHeader; @@ -67,8 +57,7 @@ public class BrowserInfo { public static final String JSON_PROPERTY_USER_AGENT = "userAgent"; private String userAgent; - public BrowserInfo() { - } + public BrowserInfo() {} /** * The accept header value of the shopper's browser. @@ -83,6 +72,7 @@ public BrowserInfo acceptHeader(String acceptHeader) { /** * The accept header value of the shopper's browser. + * * @return acceptHeader The accept header value of the shopper's browser. */ @JsonProperty(JSON_PROPERTY_ACCEPT_HEADER) @@ -103,9 +93,13 @@ public void setAcceptHeader(String acceptHeader) { } /** - * The color depth of the shopper's browser in bits per pixel. This should be obtained by using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. + * The color depth of the shopper's browser in bits per pixel. This should be obtained by + * using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, + * 16, 24, 30, 32 or 48 bit color depth. * - * @param colorDepth The color depth of the shopper's browser in bits per pixel. This should be obtained by using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. + * @param colorDepth The color depth of the shopper's browser in bits per pixel. This should + * be obtained by using the browser's `screen.colorDepth` property. Accepted + * values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. * @return the current {@code BrowserInfo} instance, allowing for method chaining */ public BrowserInfo colorDepth(Integer colorDepth) { @@ -114,8 +108,13 @@ public BrowserInfo colorDepth(Integer colorDepth) { } /** - * The color depth of the shopper's browser in bits per pixel. This should be obtained by using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. - * @return colorDepth The color depth of the shopper's browser in bits per pixel. This should be obtained by using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. + * The color depth of the shopper's browser in bits per pixel. This should be obtained by + * using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, + * 16, 24, 30, 32 or 48 bit color depth. + * + * @return colorDepth The color depth of the shopper's browser in bits per pixel. This should + * be obtained by using the browser's `screen.colorDepth` property. Accepted + * values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. */ @JsonProperty(JSON_PROPERTY_COLOR_DEPTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,9 +123,13 @@ public Integer getColorDepth() { } /** - * The color depth of the shopper's browser in bits per pixel. This should be obtained by using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. + * The color depth of the shopper's browser in bits per pixel. This should be obtained by + * using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, + * 16, 24, 30, 32 or 48 bit color depth. * - * @param colorDepth The color depth of the shopper's browser in bits per pixel. This should be obtained by using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. + * @param colorDepth The color depth of the shopper's browser in bits per pixel. This should + * be obtained by using the browser's `screen.colorDepth` property. Accepted + * values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. */ @JsonProperty(JSON_PROPERTY_COLOR_DEPTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,7 +140,8 @@ public void setColorDepth(Integer colorDepth) { /** * Boolean value indicating if the shopper's browser is able to execute Java. * - * @param javaEnabled Boolean value indicating if the shopper's browser is able to execute Java. + * @param javaEnabled Boolean value indicating if the shopper's browser is able to execute + * Java. * @return the current {@code BrowserInfo} instance, allowing for method chaining */ public BrowserInfo javaEnabled(Boolean javaEnabled) { @@ -147,7 +151,9 @@ public BrowserInfo javaEnabled(Boolean javaEnabled) { /** * Boolean value indicating if the shopper's browser is able to execute Java. - * @return javaEnabled Boolean value indicating if the shopper's browser is able to execute Java. + * + * @return javaEnabled Boolean value indicating if the shopper's browser is able to execute + * Java. */ @JsonProperty(JSON_PROPERTY_JAVA_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,7 +164,8 @@ public Boolean getJavaEnabled() { /** * Boolean value indicating if the shopper's browser is able to execute Java. * - * @param javaEnabled Boolean value indicating if the shopper's browser is able to execute Java. + * @param javaEnabled Boolean value indicating if the shopper's browser is able to execute + * Java. */ @JsonProperty(JSON_PROPERTY_JAVA_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,9 +174,11 @@ public void setJavaEnabled(Boolean javaEnabled) { } /** - * Boolean value indicating if the shopper's browser is able to execute JavaScript. A default 'true' value is assumed if the field is not present. + * Boolean value indicating if the shopper's browser is able to execute JavaScript. A default + * 'true' value is assumed if the field is not present. * - * @param javaScriptEnabled Boolean value indicating if the shopper's browser is able to execute JavaScript. A default 'true' value is assumed if the field is not present. + * @param javaScriptEnabled Boolean value indicating if the shopper's browser is able to + * execute JavaScript. A default 'true' value is assumed if the field is not present. * @return the current {@code BrowserInfo} instance, allowing for method chaining */ public BrowserInfo javaScriptEnabled(Boolean javaScriptEnabled) { @@ -178,8 +187,11 @@ public BrowserInfo javaScriptEnabled(Boolean javaScriptEnabled) { } /** - * Boolean value indicating if the shopper's browser is able to execute JavaScript. A default 'true' value is assumed if the field is not present. - * @return javaScriptEnabled Boolean value indicating if the shopper's browser is able to execute JavaScript. A default 'true' value is assumed if the field is not present. + * Boolean value indicating if the shopper's browser is able to execute JavaScript. A default + * 'true' value is assumed if the field is not present. + * + * @return javaScriptEnabled Boolean value indicating if the shopper's browser is able to + * execute JavaScript. A default 'true' value is assumed if the field is not present. */ @JsonProperty(JSON_PROPERTY_JAVA_SCRIPT_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,9 +200,11 @@ public Boolean getJavaScriptEnabled() { } /** - * Boolean value indicating if the shopper's browser is able to execute JavaScript. A default 'true' value is assumed if the field is not present. + * Boolean value indicating if the shopper's browser is able to execute JavaScript. A default + * 'true' value is assumed if the field is not present. * - * @param javaScriptEnabled Boolean value indicating if the shopper's browser is able to execute JavaScript. A default 'true' value is assumed if the field is not present. + * @param javaScriptEnabled Boolean value indicating if the shopper's browser is able to + * execute JavaScript. A default 'true' value is assumed if the field is not present. */ @JsonProperty(JSON_PROPERTY_JAVA_SCRIPT_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -199,9 +213,11 @@ public void setJavaScriptEnabled(Boolean javaScriptEnabled) { } /** - * The `navigator.language` value of the shopper's browser (as defined in IETF BCP 47). + * The `navigator.language` value of the shopper's browser (as defined in IETF BCP + * 47). * - * @param language The `navigator.language` value of the shopper's browser (as defined in IETF BCP 47). + * @param language The `navigator.language` value of the shopper's browser (as + * defined in IETF BCP 47). * @return the current {@code BrowserInfo} instance, allowing for method chaining */ public BrowserInfo language(String language) { @@ -210,8 +226,11 @@ public BrowserInfo language(String language) { } /** - * The `navigator.language` value of the shopper's browser (as defined in IETF BCP 47). - * @return language The `navigator.language` value of the shopper's browser (as defined in IETF BCP 47). + * The `navigator.language` value of the shopper's browser (as defined in IETF BCP + * 47). + * + * @return language The `navigator.language` value of the shopper's browser (as + * defined in IETF BCP 47). */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -220,9 +239,11 @@ public String getLanguage() { } /** - * The `navigator.language` value of the shopper's browser (as defined in IETF BCP 47). + * The `navigator.language` value of the shopper's browser (as defined in IETF BCP + * 47). * - * @param language The `navigator.language` value of the shopper's browser (as defined in IETF BCP 47). + * @param language The `navigator.language` value of the shopper's browser (as + * defined in IETF BCP 47). */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -243,6 +264,7 @@ public BrowserInfo screenHeight(Integer screenHeight) { /** * The total height of the shopper's device screen in pixels. + * * @return screenHeight The total height of the shopper's device screen in pixels. */ @JsonProperty(JSON_PROPERTY_SCREEN_HEIGHT) @@ -275,6 +297,7 @@ public BrowserInfo screenWidth(Integer screenWidth) { /** * The total width of the shopper's device screen in pixels. + * * @return screenWidth The total width of the shopper's device screen in pixels. */ @JsonProperty(JSON_PROPERTY_SCREEN_WIDTH) @@ -297,7 +320,8 @@ public void setScreenWidth(Integer screenWidth) { /** * Time difference between UTC time and the shopper's browser local time, in minutes. * - * @param timeZoneOffset Time difference between UTC time and the shopper's browser local time, in minutes. + * @param timeZoneOffset Time difference between UTC time and the shopper's browser local + * time, in minutes. * @return the current {@code BrowserInfo} instance, allowing for method chaining */ public BrowserInfo timeZoneOffset(Integer timeZoneOffset) { @@ -307,7 +331,9 @@ public BrowserInfo timeZoneOffset(Integer timeZoneOffset) { /** * Time difference between UTC time and the shopper's browser local time, in minutes. - * @return timeZoneOffset Time difference between UTC time and the shopper's browser local time, in minutes. + * + * @return timeZoneOffset Time difference between UTC time and the shopper's browser local + * time, in minutes. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -318,7 +344,8 @@ public Integer getTimeZoneOffset() { /** * Time difference between UTC time and the shopper's browser local time, in minutes. * - * @param timeZoneOffset Time difference between UTC time and the shopper's browser local time, in minutes. + * @param timeZoneOffset Time difference between UTC time and the shopper's browser local + * time, in minutes. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -339,6 +366,7 @@ public BrowserInfo userAgent(String userAgent) { /** * The user agent value of the shopper's browser. + * * @return userAgent The user agent value of the shopper's browser. */ @JsonProperty(JSON_PROPERTY_USER_AGENT) @@ -358,9 +386,7 @@ public void setUserAgent(String userAgent) { this.userAgent = userAgent; } - /** - * Return true if this BrowserInfo object is equal to o. - */ + /** Return true if this BrowserInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -370,20 +396,29 @@ public boolean equals(Object o) { return false; } BrowserInfo browserInfo = (BrowserInfo) o; - return Objects.equals(this.acceptHeader, browserInfo.acceptHeader) && - Objects.equals(this.colorDepth, browserInfo.colorDepth) && - Objects.equals(this.javaEnabled, browserInfo.javaEnabled) && - Objects.equals(this.javaScriptEnabled, browserInfo.javaScriptEnabled) && - Objects.equals(this.language, browserInfo.language) && - Objects.equals(this.screenHeight, browserInfo.screenHeight) && - Objects.equals(this.screenWidth, browserInfo.screenWidth) && - Objects.equals(this.timeZoneOffset, browserInfo.timeZoneOffset) && - Objects.equals(this.userAgent, browserInfo.userAgent); + return Objects.equals(this.acceptHeader, browserInfo.acceptHeader) + && Objects.equals(this.colorDepth, browserInfo.colorDepth) + && Objects.equals(this.javaEnabled, browserInfo.javaEnabled) + && Objects.equals(this.javaScriptEnabled, browserInfo.javaScriptEnabled) + && Objects.equals(this.language, browserInfo.language) + && Objects.equals(this.screenHeight, browserInfo.screenHeight) + && Objects.equals(this.screenWidth, browserInfo.screenWidth) + && Objects.equals(this.timeZoneOffset, browserInfo.timeZoneOffset) + && Objects.equals(this.userAgent, browserInfo.userAgent); } @Override public int hashCode() { - return Objects.hash(acceptHeader, colorDepth, javaEnabled, javaScriptEnabled, language, screenHeight, screenWidth, timeZoneOffset, userAgent); + return Objects.hash( + acceptHeader, + colorDepth, + javaEnabled, + javaScriptEnabled, + language, + screenHeight, + screenWidth, + timeZoneOffset, + userAgent); } @Override @@ -404,8 +439,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -414,7 +448,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BrowserInfo given an JSON string * * @param jsonString JSON string @@ -424,11 +458,12 @@ private String toIndentedString(Object o) { public static BrowserInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BrowserInfo.class); } -/** - * Convert an instance of BrowserInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BrowserInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CancelOrderRequest.java b/src/main/java/com/adyen/model/checkout/CancelOrderRequest.java index 7ce22fda0..b146581d3 100644 --- a/src/main/java/com/adyen/model/checkout/CancelOrderRequest.java +++ b/src/main/java/com/adyen/model/checkout/CancelOrderRequest.java @@ -2,37 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.EncryptedOrderData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * CancelOrderRequest - */ +/** CancelOrderRequest */ @JsonPropertyOrder({ CancelOrderRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, CancelOrderRequest.JSON_PROPERTY_ORDER }) - public class CancelOrderRequest { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; @@ -40,8 +29,7 @@ public class CancelOrderRequest { public static final String JSON_PROPERTY_ORDER = "order"; private EncryptedOrderData order; - public CancelOrderRequest() { - } + public CancelOrderRequest() {} /** * The merchant account identifier that orderData belongs to. @@ -56,6 +44,7 @@ public CancelOrderRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier that orderData belongs to. + * * @return merchantAccount The merchant account identifier that orderData belongs to. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -78,7 +67,7 @@ public void setMerchantAccount(String merchantAccount) { /** * order * - * @param order + * @param order * @return the current {@code CancelOrderRequest} instance, allowing for method chaining */ public CancelOrderRequest order(EncryptedOrderData order) { @@ -88,7 +77,8 @@ public CancelOrderRequest order(EncryptedOrderData order) { /** * Get order - * @return order + * + * @return order */ @JsonProperty(JSON_PROPERTY_ORDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,7 +89,7 @@ public EncryptedOrderData getOrder() { /** * order * - * @param order + * @param order */ @JsonProperty(JSON_PROPERTY_ORDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,9 +97,7 @@ public void setOrder(EncryptedOrderData order) { this.order = order; } - /** - * Return true if this CancelOrderRequest object is equal to o. - */ + /** Return true if this CancelOrderRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -119,8 +107,8 @@ public boolean equals(Object o) { return false; } CancelOrderRequest cancelOrderRequest = (CancelOrderRequest) o; - return Objects.equals(this.merchantAccount, cancelOrderRequest.merchantAccount) && - Objects.equals(this.order, cancelOrderRequest.order); + return Objects.equals(this.merchantAccount, cancelOrderRequest.merchantAccount) + && Objects.equals(this.order, cancelOrderRequest.order); } @Override @@ -139,8 +127,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -149,21 +136,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CancelOrderRequest given an JSON string * * @param jsonString JSON string * @return An instance of CancelOrderRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to CancelOrderRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CancelOrderRequest */ public static CancelOrderRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CancelOrderRequest.class); } -/** - * Convert an instance of CancelOrderRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CancelOrderRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CancelOrderResponse.java b/src/main/java/com/adyen/model/checkout/CancelOrderResponse.java index 30669f317..d38e65f49 100644 --- a/src/main/java/com/adyen/model/checkout/CancelOrderResponse.java +++ b/src/main/java/com/adyen/model/checkout/CancelOrderResponse.java @@ -2,45 +2,39 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * CancelOrderResponse - */ +/** CancelOrderResponse */ @JsonPropertyOrder({ CancelOrderResponse.JSON_PROPERTY_PSP_REFERENCE, CancelOrderResponse.JSON_PROPERTY_RESULT_CODE }) - public class CancelOrderResponse { public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference"; private String pspReference; /** - * The result of the cancellation request. Possible values: * **Received** – Indicates the cancellation has successfully been received by Adyen, and will be processed. + * The result of the cancellation request. Possible values: * **Received** – Indicates the + * cancellation has successfully been received by Adyen, and will be processed. */ public enum ResultCodeEnum { - RECEIVED(String.valueOf("Received")); private static final Logger LOG = Logger.getLogger(ResultCodeEnum.class.getName()); @@ -48,7 +42,7 @@ public enum ResultCodeEnum { private String value; ResultCodeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +63,11 @@ public static ResultCodeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ResultCodeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResultCodeEnum.values())); + LOG.warning( + "ResultCodeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ResultCodeEnum.values())); return null; } } @@ -77,8 +75,7 @@ public static ResultCodeEnum fromValue(String value) { public static final String JSON_PROPERTY_RESULT_CODE = "resultCode"; private ResultCodeEnum resultCode; - public CancelOrderResponse() { - } + public CancelOrderResponse() {} /** * A unique reference of the cancellation request. @@ -93,6 +90,7 @@ public CancelOrderResponse pspReference(String pspReference) { /** * A unique reference of the cancellation request. + * * @return pspReference A unique reference of the cancellation request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -113,9 +111,11 @@ public void setPspReference(String pspReference) { } /** - * The result of the cancellation request. Possible values: * **Received** – Indicates the cancellation has successfully been received by Adyen, and will be processed. + * The result of the cancellation request. Possible values: * **Received** – Indicates the + * cancellation has successfully been received by Adyen, and will be processed. * - * @param resultCode The result of the cancellation request. Possible values: * **Received** – Indicates the cancellation has successfully been received by Adyen, and will be processed. + * @param resultCode The result of the cancellation request. Possible values: * **Received** – + * Indicates the cancellation has successfully been received by Adyen, and will be processed. * @return the current {@code CancelOrderResponse} instance, allowing for method chaining */ public CancelOrderResponse resultCode(ResultCodeEnum resultCode) { @@ -124,8 +124,11 @@ public CancelOrderResponse resultCode(ResultCodeEnum resultCode) { } /** - * The result of the cancellation request. Possible values: * **Received** – Indicates the cancellation has successfully been received by Adyen, and will be processed. - * @return resultCode The result of the cancellation request. Possible values: * **Received** – Indicates the cancellation has successfully been received by Adyen, and will be processed. + * The result of the cancellation request. Possible values: * **Received** – Indicates the + * cancellation has successfully been received by Adyen, and will be processed. + * + * @return resultCode The result of the cancellation request. Possible values: * **Received** – + * Indicates the cancellation has successfully been received by Adyen, and will be processed. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -134,9 +137,11 @@ public ResultCodeEnum getResultCode() { } /** - * The result of the cancellation request. Possible values: * **Received** – Indicates the cancellation has successfully been received by Adyen, and will be processed. + * The result of the cancellation request. Possible values: * **Received** – Indicates the + * cancellation has successfully been received by Adyen, and will be processed. * - * @param resultCode The result of the cancellation request. Possible values: * **Received** – Indicates the cancellation has successfully been received by Adyen, and will be processed. + * @param resultCode The result of the cancellation request. Possible values: * **Received** – + * Indicates the cancellation has successfully been received by Adyen, and will be processed. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,9 +149,7 @@ public void setResultCode(ResultCodeEnum resultCode) { this.resultCode = resultCode; } - /** - * Return true if this CancelOrderResponse object is equal to o. - */ + /** Return true if this CancelOrderResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +159,8 @@ public boolean equals(Object o) { return false; } CancelOrderResponse cancelOrderResponse = (CancelOrderResponse) o; - return Objects.equals(this.pspReference, cancelOrderResponse.pspReference) && - Objects.equals(this.resultCode, cancelOrderResponse.resultCode); + return Objects.equals(this.pspReference, cancelOrderResponse.pspReference) + && Objects.equals(this.resultCode, cancelOrderResponse.resultCode); } @Override @@ -176,8 +179,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +188,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CancelOrderResponse given an JSON string * * @param jsonString JSON string * @return An instance of CancelOrderResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to CancelOrderResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CancelOrderResponse */ public static CancelOrderResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CancelOrderResponse.class); } -/** - * Convert an instance of CancelOrderResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CancelOrderResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CardBrandDetails.java b/src/main/java/com/adyen/model/checkout/CardBrandDetails.java index cc633b8d6..10d8876cc 100644 --- a/src/main/java/com/adyen/model/checkout/CardBrandDetails.java +++ b/src/main/java/com/adyen/model/checkout/CardBrandDetails.java @@ -2,36 +2,23 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * CardBrandDetails - */ -@JsonPropertyOrder({ - CardBrandDetails.JSON_PROPERTY_SUPPORTED, - CardBrandDetails.JSON_PROPERTY_TYPE -}) - +/** CardBrandDetails */ +@JsonPropertyOrder({CardBrandDetails.JSON_PROPERTY_SUPPORTED, CardBrandDetails.JSON_PROPERTY_TYPE}) public class CardBrandDetails { public static final String JSON_PROPERTY_SUPPORTED = "supported"; private Boolean supported; @@ -39,8 +26,7 @@ public class CardBrandDetails { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public CardBrandDetails() { - } + public CardBrandDetails() {} /** * Indicates if you support the card brand. @@ -55,6 +41,7 @@ public CardBrandDetails supported(Boolean supported) { /** * Indicates if you support the card brand. + * * @return supported Indicates if you support the card brand. */ @JsonProperty(JSON_PROPERTY_SUPPORTED) @@ -87,6 +74,7 @@ public CardBrandDetails type(String type) { /** * The name of the card brand. + * * @return type The name of the card brand. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -106,9 +94,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this CardBrandDetails object is equal to o. - */ + /** Return true if this CardBrandDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +104,8 @@ public boolean equals(Object o) { return false; } CardBrandDetails cardBrandDetails = (CardBrandDetails) o; - return Objects.equals(this.supported, cardBrandDetails.supported) && - Objects.equals(this.type, cardBrandDetails.type); + return Objects.equals(this.supported, cardBrandDetails.supported) + && Objects.equals(this.type, cardBrandDetails.type); } @Override @@ -138,8 +124,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +133,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CardBrandDetails given an JSON string * * @param jsonString JSON string @@ -158,11 +143,12 @@ private String toIndentedString(Object o) { public static CardBrandDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardBrandDetails.class); } -/** - * Convert an instance of CardBrandDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CardBrandDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CardDetails.java b/src/main/java/com/adyen/model/checkout/CardDetails.java index 87ead1e31..7f242b565 100644 --- a/src/main/java/com/adyen/model/checkout/CardDetails.java +++ b/src/main/java/com/adyen/model/checkout/CardDetails.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * CardDetails - */ +/** CardDetails */ @JsonPropertyOrder({ CardDetails.JSON_PROPERTY_BRAND, CardDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, @@ -55,7 +50,6 @@ CardDetails.JSON_PROPERTY_THREE_D_S2_SDK_VERSION, CardDetails.JSON_PROPERTY_TYPE }) - public class CardDetails { public static final String JSON_PROPERTY_BRAND = "brand"; private String brand; @@ -64,7 +58,7 @@ public class CardDetails { private String checkoutAttemptId; public static final String JSON_PROPERTY_CUPSECUREPLUS_SMSCODE = "cupsecureplus.smscode"; - @Deprecated // deprecated + @Deprecated // deprecated private String cupsecureplusSmscode; public static final String JSON_PROPERTY_CVC = "cvc"; @@ -98,10 +92,10 @@ public class CardDetails { private String fastlaneData; /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. */ public enum FundingSourceEnum { - CREDIT(String.valueOf("credit")), DEBIT(String.valueOf("debit")); @@ -111,7 +105,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -132,7 +126,11 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); + LOG.warning( + "FundingSourceEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -153,7 +151,8 @@ public static FundingSourceEnum fromValue(String value) { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; - public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE = "shopperNotificationReference"; + public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE = + "shopperNotificationReference"; private String shopperNotificationReference; public static final String JSON_PROPERTY_SRC_CORRELATION_ID = "srcCorrelationId"; @@ -175,10 +174,10 @@ public static FundingSourceEnum fromValue(String value) { private String threeDS2SdkVersion; /** - * Default payment method details. Common for scheme payment methods, and for simple payment method details. + * Default payment method details. Common for scheme payment methods, and for simple payment + * method details. */ public enum TypeEnum { - BCMC(String.valueOf("bcmc")), SCHEME(String.valueOf("scheme")), @@ -196,7 +195,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -217,7 +216,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -225,8 +228,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CardDetails() { - } + public CardDetails() {} /** * Secondary brand of the card. For example: **plastix**, **hmclub**. @@ -241,6 +243,7 @@ public CardDetails brand(String brand) { /** * Secondary brand of the card. For example: **plastix**, **hmclub**. + * * @return brand Secondary brand of the card. For example: **plastix**, **hmclub**. */ @JsonProperty(JSON_PROPERTY_BRAND) @@ -273,6 +276,7 @@ public CardDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -295,12 +299,11 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { /** * cupsecureplusSmscode * - * @param cupsecureplusSmscode + * @param cupsecureplusSmscode * @return the current {@code CardDetails} instance, allowing for method chaining - * - * @deprecated + * @deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated public CardDetails cupsecureplusSmscode(String cupsecureplusSmscode) { this.cupsecureplusSmscode = cupsecureplusSmscode; return this; @@ -308,10 +311,11 @@ public CardDetails cupsecureplusSmscode(String cupsecureplusSmscode) { /** * Get cupsecureplusSmscode - * @return cupsecureplusSmscode - * @deprecated // deprecated + * + * @return cupsecureplusSmscode + * @deprecated // deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated @JsonProperty(JSON_PROPERTY_CUPSECUREPLUS_SMSCODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCupsecureplusSmscode() { @@ -321,11 +325,10 @@ public String getCupsecureplusSmscode() { /** * cupsecureplusSmscode * - * @param cupsecureplusSmscode - * - * @deprecated + * @param cupsecureplusSmscode + * @deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated @JsonProperty(JSON_PROPERTY_CUPSECUREPLUS_SMSCODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCupsecureplusSmscode(String cupsecureplusSmscode) { @@ -333,9 +336,11 @@ public void setCupsecureplusSmscode(String cupsecureplusSmscode) { } /** - * The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card verification code. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param cvc The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param cvc The card verification code. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * @return the current {@code CardDetails} instance, allowing for method chaining */ public CardDetails cvc(String cvc) { @@ -344,8 +349,11 @@ public CardDetails cvc(String cvc) { } /** - * The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). - * @return cvc The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card verification code. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * + * @return cvc The card verification code. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -354,9 +362,11 @@ public String getCvc() { } /** - * The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card verification code. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param cvc The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param cvc The card verification code. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -365,9 +375,11 @@ public void setCvc(String cvc) { } /** - * Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details. + * Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card + * details. * - * @param encryptedCard Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details. + * @param encryptedCard Only include this for JSON Web Encryption (JWE) implementations. The + * JWE-encrypted card details. * @return the current {@code CardDetails} instance, allowing for method chaining */ public CardDetails encryptedCard(String encryptedCard) { @@ -376,8 +388,11 @@ public CardDetails encryptedCard(String encryptedCard) { } /** - * Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details. - * @return encryptedCard Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details. + * Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card + * details. + * + * @return encryptedCard Only include this for JSON Web Encryption (JWE) implementations. The + * JWE-encrypted card details. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -386,9 +401,11 @@ public String getEncryptedCard() { } /** - * Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details. + * Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card + * details. * - * @param encryptedCard Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details. + * @param encryptedCard Only include this for JSON Web Encryption (JWE) implementations. The + * JWE-encrypted card details. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -409,6 +426,7 @@ public CardDetails encryptedCardNumber(String encryptedCardNumber) { /** * The encrypted card number. + * * @return encryptedCardNumber The encrypted card number. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_CARD_NUMBER) @@ -441,6 +459,7 @@ public CardDetails encryptedExpiryMonth(String encryptedExpiryMonth) { /** * The encrypted card expiry month. + * * @return encryptedExpiryMonth The encrypted card expiry month. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_EXPIRY_MONTH) @@ -473,6 +492,7 @@ public CardDetails encryptedExpiryYear(String encryptedExpiryYear) { /** * The encrypted card expiry year. + * * @return encryptedExpiryYear The encrypted card expiry year. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_EXPIRY_YEAR) @@ -493,9 +513,11 @@ public void setEncryptedExpiryYear(String encryptedExpiryYear) { } /** - * This field contains an encrypted, one-time password or an authentication code provided by the cardholder. + * This field contains an encrypted, one-time password or an authentication code provided by the + * cardholder. * - * @param encryptedPassword This field contains an encrypted, one-time password or an authentication code provided by the cardholder. + * @param encryptedPassword This field contains an encrypted, one-time password or an + * authentication code provided by the cardholder. * @return the current {@code CardDetails} instance, allowing for method chaining */ public CardDetails encryptedPassword(String encryptedPassword) { @@ -504,8 +526,11 @@ public CardDetails encryptedPassword(String encryptedPassword) { } /** - * This field contains an encrypted, one-time password or an authentication code provided by the cardholder. - * @return encryptedPassword This field contains an encrypted, one-time password or an authentication code provided by the cardholder. + * This field contains an encrypted, one-time password or an authentication code provided by the + * cardholder. + * + * @return encryptedPassword This field contains an encrypted, one-time password or an + * authentication code provided by the cardholder. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -514,9 +539,11 @@ public String getEncryptedPassword() { } /** - * This field contains an encrypted, one-time password or an authentication code provided by the cardholder. + * This field contains an encrypted, one-time password or an authentication code provided by the + * cardholder. * - * @param encryptedPassword This field contains an encrypted, one-time password or an authentication code provided by the cardholder. + * @param encryptedPassword This field contains an encrypted, one-time password or an + * authentication code provided by the cardholder. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -537,6 +564,7 @@ public CardDetails encryptedSecurityCode(String encryptedSecurityCode) { /** * The encrypted card verification code. + * * @return encryptedSecurityCode The encrypted card verification code. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_SECURITY_CODE) @@ -557,9 +585,11 @@ public void setEncryptedSecurityCode(String encryptedSecurityCode) { } /** - * The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry month. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * @return the current {@code CardDetails} instance, allowing for method chaining */ public CardDetails expiryMonth(String expiryMonth) { @@ -568,8 +598,11 @@ public CardDetails expiryMonth(String expiryMonth) { } /** - * The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). - * @return expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry month. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * + * @return expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -578,9 +611,11 @@ public String getExpiryMonth() { } /** - * The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry month. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -589,9 +624,11 @@ public void setExpiryMonth(String expiryMonth) { } /** - * The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry year. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param expiryYear The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param expiryYear The card expiry year. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * @return the current {@code CardDetails} instance, allowing for method chaining */ public CardDetails expiryYear(String expiryYear) { @@ -600,8 +637,11 @@ public CardDetails expiryYear(String expiryYear) { } /** - * The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). - * @return expiryYear The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry year. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * + * @return expiryYear The card expiry year. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -610,9 +650,11 @@ public String getExpiryYear() { } /** - * The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry year. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param expiryYear The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param expiryYear The card expiry year. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -633,6 +675,7 @@ public CardDetails fastlaneData(String fastlaneData) { /** * The encoded fastlane data blob + * * @return fastlaneData The encoded fastlane data blob */ @JsonProperty(JSON_PROPERTY_FASTLANE_DATA) @@ -653,9 +696,12 @@ public void setFastlaneData(String fastlaneData) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. * @return the current {@code CardDetails} instance, allowing for method chaining */ public CardDetails fundingSource(FundingSourceEnum fundingSource) { @@ -664,8 +710,12 @@ public CardDetails fundingSource(FundingSourceEnum fundingSource) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. - * @return fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * + * @return fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -674,9 +724,12 @@ public FundingSourceEnum getFundingSource() { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -697,6 +750,7 @@ public CardDetails holderName(String holderName) { /** * The name of the card holder. + * * @return holderName The name of the card holder. */ @JsonProperty(JSON_PROPERTY_HOLDER_NAME) @@ -717,9 +771,13 @@ public void setHolderName(String holderName) { } /** - * The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. + * The transaction identifier from card schemes. This is the + * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) + * from the response to the first payment. * - * @param networkPaymentReference The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. + * @param networkPaymentReference The transaction identifier from card schemes. This is the + * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) + * from the response to the first payment. * @return the current {@code CardDetails} instance, allowing for method chaining */ public CardDetails networkPaymentReference(String networkPaymentReference) { @@ -728,8 +786,13 @@ public CardDetails networkPaymentReference(String networkPaymentReference) { } /** - * The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. - * @return networkPaymentReference The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. + * The transaction identifier from card schemes. This is the + * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) + * from the response to the first payment. + * + * @return networkPaymentReference The transaction identifier from card schemes. This is the + * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) + * from the response to the first payment. */ @JsonProperty(JSON_PROPERTY_NETWORK_PAYMENT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -738,9 +801,13 @@ public String getNetworkPaymentReference() { } /** - * The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. + * The transaction identifier from card schemes. This is the + * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) + * from the response to the first payment. * - * @param networkPaymentReference The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. + * @param networkPaymentReference The transaction identifier from card schemes. This is the + * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) + * from the response to the first payment. */ @JsonProperty(JSON_PROPERTY_NETWORK_PAYMENT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -749,9 +816,11 @@ public void setNetworkPaymentReference(String networkPaymentReference) { } /** - * The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card number. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param number The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param number The card number. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * @return the current {@code CardDetails} instance, allowing for method chaining */ public CardDetails number(String number) { @@ -760,8 +829,11 @@ public CardDetails number(String number) { } /** - * The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). - * @return number The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card number. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * + * @return number The card number. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -770,9 +842,11 @@ public String getNumber() { } /** - * The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card number. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param number The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param number The card number. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -781,13 +855,13 @@ public void setNumber(String number) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code CardDetails} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public CardDetails recurringDetailReference(String recurringDetailReference) { @@ -796,8 +870,11 @@ public CardDetails recurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -808,12 +885,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -823,9 +900,12 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India. + * The `shopperNotificationReference` returned in the response when you requested to + * notify the shopper. Used only for recurring payments in India. * - * @param shopperNotificationReference The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India. + * @param shopperNotificationReference The `shopperNotificationReference` returned in + * the response when you requested to notify the shopper. Used only for recurring payments in + * India. * @return the current {@code CardDetails} instance, allowing for method chaining */ public CardDetails shopperNotificationReference(String shopperNotificationReference) { @@ -834,8 +914,12 @@ public CardDetails shopperNotificationReference(String shopperNotificationRefere } /** - * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India. - * @return shopperNotificationReference The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India. + * The `shopperNotificationReference` returned in the response when you requested to + * notify the shopper. Used only for recurring payments in India. + * + * @return shopperNotificationReference The `shopperNotificationReference` returned in + * the response when you requested to notify the shopper. Used only for recurring payments in + * India. */ @JsonProperty(JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -844,9 +928,12 @@ public String getShopperNotificationReference() { } /** - * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India. + * The `shopperNotificationReference` returned in the response when you requested to + * notify the shopper. Used only for recurring payments in India. * - * @param shopperNotificationReference The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India. + * @param shopperNotificationReference The `shopperNotificationReference` returned in + * the response when you requested to notify the shopper. Used only for recurring payments in + * India. */ @JsonProperty(JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -867,6 +954,7 @@ public CardDetails srcCorrelationId(String srcCorrelationId) { /** * An identifier used for the Click to Pay transaction. + * * @return srcCorrelationId An identifier used for the Click to Pay transaction. */ @JsonProperty(JSON_PROPERTY_SRC_CORRELATION_ID) @@ -899,6 +987,7 @@ public CardDetails srcDigitalCardId(String srcDigitalCardId) { /** * The SRC reference for the Click to Pay token. + * * @return srcDigitalCardId The SRC reference for the Click to Pay token. */ @JsonProperty(JSON_PROPERTY_SRC_DIGITAL_CARD_ID) @@ -931,6 +1020,7 @@ public CardDetails srcScheme(String srcScheme) { /** * The scheme that is being used for Click to Pay. + * * @return srcScheme The scheme that is being used for Click to Pay. */ @JsonProperty(JSON_PROPERTY_SRC_SCHEME) @@ -963,6 +1053,7 @@ public CardDetails srcTokenReference(String srcTokenReference) { /** * The reference for the Click to Pay token. + * * @return srcTokenReference The reference for the Click to Pay token. */ @JsonProperty(JSON_PROPERTY_SRC_TOKEN_REFERENCE) @@ -983,9 +1074,11 @@ public void setSrcTokenReference(String srcTokenReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code CardDetails} instance, allowing for method chaining */ public CardDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -994,8 +1087,11 @@ public CardDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1004,9 +1100,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1017,7 +1115,8 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. * - * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. + * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile + * SDK. * @return the current {@code CardDetails} instance, allowing for method chaining */ public CardDetails threeDS2SdkVersion(String threeDS2SdkVersion) { @@ -1027,7 +1126,9 @@ public CardDetails threeDS2SdkVersion(String threeDS2SdkVersion) { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. - * @return threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. + * + * @return threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile + * SDK. */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_SDK_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1038,7 +1139,8 @@ public String getThreeDS2SdkVersion() { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. * - * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. + * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile + * SDK. */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_SDK_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1047,9 +1149,11 @@ public void setThreeDS2SdkVersion(String threeDS2SdkVersion) { } /** - * Default payment method details. Common for scheme payment methods, and for simple payment method details. + * Default payment method details. Common for scheme payment methods, and for simple payment + * method details. * - * @param type Default payment method details. Common for scheme payment methods, and for simple payment method details. + * @param type Default payment method details. Common for scheme payment methods, and for simple + * payment method details. * @return the current {@code CardDetails} instance, allowing for method chaining */ public CardDetails type(TypeEnum type) { @@ -1058,8 +1162,11 @@ public CardDetails type(TypeEnum type) { } /** - * Default payment method details. Common for scheme payment methods, and for simple payment method details. - * @return type Default payment method details. Common for scheme payment methods, and for simple payment method details. + * Default payment method details. Common for scheme payment methods, and for simple payment + * method details. + * + * @return type Default payment method details. Common for scheme payment methods, and for simple + * payment method details. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1068,9 +1175,11 @@ public TypeEnum getType() { } /** - * Default payment method details. Common for scheme payment methods, and for simple payment method details. + * Default payment method details. Common for scheme payment methods, and for simple payment + * method details. * - * @param type Default payment method details. Common for scheme payment methods, and for simple payment method details. + * @param type Default payment method details. Common for scheme payment methods, and for simple + * payment method details. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1078,9 +1187,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this CardDetails object is equal to o. - */ + /** Return true if this CardDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -1090,37 +1197,64 @@ public boolean equals(Object o) { return false; } CardDetails cardDetails = (CardDetails) o; - return Objects.equals(this.brand, cardDetails.brand) && - Objects.equals(this.checkoutAttemptId, cardDetails.checkoutAttemptId) && - Objects.equals(this.cupsecureplusSmscode, cardDetails.cupsecureplusSmscode) && - Objects.equals(this.cvc, cardDetails.cvc) && - Objects.equals(this.encryptedCard, cardDetails.encryptedCard) && - Objects.equals(this.encryptedCardNumber, cardDetails.encryptedCardNumber) && - Objects.equals(this.encryptedExpiryMonth, cardDetails.encryptedExpiryMonth) && - Objects.equals(this.encryptedExpiryYear, cardDetails.encryptedExpiryYear) && - Objects.equals(this.encryptedPassword, cardDetails.encryptedPassword) && - Objects.equals(this.encryptedSecurityCode, cardDetails.encryptedSecurityCode) && - Objects.equals(this.expiryMonth, cardDetails.expiryMonth) && - Objects.equals(this.expiryYear, cardDetails.expiryYear) && - Objects.equals(this.fastlaneData, cardDetails.fastlaneData) && - Objects.equals(this.fundingSource, cardDetails.fundingSource) && - Objects.equals(this.holderName, cardDetails.holderName) && - Objects.equals(this.networkPaymentReference, cardDetails.networkPaymentReference) && - Objects.equals(this.number, cardDetails.number) && - Objects.equals(this.recurringDetailReference, cardDetails.recurringDetailReference) && - Objects.equals(this.shopperNotificationReference, cardDetails.shopperNotificationReference) && - Objects.equals(this.srcCorrelationId, cardDetails.srcCorrelationId) && - Objects.equals(this.srcDigitalCardId, cardDetails.srcDigitalCardId) && - Objects.equals(this.srcScheme, cardDetails.srcScheme) && - Objects.equals(this.srcTokenReference, cardDetails.srcTokenReference) && - Objects.equals(this.storedPaymentMethodId, cardDetails.storedPaymentMethodId) && - Objects.equals(this.threeDS2SdkVersion, cardDetails.threeDS2SdkVersion) && - Objects.equals(this.type, cardDetails.type); + return Objects.equals(this.brand, cardDetails.brand) + && Objects.equals(this.checkoutAttemptId, cardDetails.checkoutAttemptId) + && Objects.equals(this.cupsecureplusSmscode, cardDetails.cupsecureplusSmscode) + && Objects.equals(this.cvc, cardDetails.cvc) + && Objects.equals(this.encryptedCard, cardDetails.encryptedCard) + && Objects.equals(this.encryptedCardNumber, cardDetails.encryptedCardNumber) + && Objects.equals(this.encryptedExpiryMonth, cardDetails.encryptedExpiryMonth) + && Objects.equals(this.encryptedExpiryYear, cardDetails.encryptedExpiryYear) + && Objects.equals(this.encryptedPassword, cardDetails.encryptedPassword) + && Objects.equals(this.encryptedSecurityCode, cardDetails.encryptedSecurityCode) + && Objects.equals(this.expiryMonth, cardDetails.expiryMonth) + && Objects.equals(this.expiryYear, cardDetails.expiryYear) + && Objects.equals(this.fastlaneData, cardDetails.fastlaneData) + && Objects.equals(this.fundingSource, cardDetails.fundingSource) + && Objects.equals(this.holderName, cardDetails.holderName) + && Objects.equals(this.networkPaymentReference, cardDetails.networkPaymentReference) + && Objects.equals(this.number, cardDetails.number) + && Objects.equals(this.recurringDetailReference, cardDetails.recurringDetailReference) + && Objects.equals( + this.shopperNotificationReference, cardDetails.shopperNotificationReference) + && Objects.equals(this.srcCorrelationId, cardDetails.srcCorrelationId) + && Objects.equals(this.srcDigitalCardId, cardDetails.srcDigitalCardId) + && Objects.equals(this.srcScheme, cardDetails.srcScheme) + && Objects.equals(this.srcTokenReference, cardDetails.srcTokenReference) + && Objects.equals(this.storedPaymentMethodId, cardDetails.storedPaymentMethodId) + && Objects.equals(this.threeDS2SdkVersion, cardDetails.threeDS2SdkVersion) + && Objects.equals(this.type, cardDetails.type); } @Override public int hashCode() { - return Objects.hash(brand, checkoutAttemptId, cupsecureplusSmscode, cvc, encryptedCard, encryptedCardNumber, encryptedExpiryMonth, encryptedExpiryYear, encryptedPassword, encryptedSecurityCode, expiryMonth, expiryYear, fastlaneData, fundingSource, holderName, networkPaymentReference, number, recurringDetailReference, shopperNotificationReference, srcCorrelationId, srcDigitalCardId, srcScheme, srcTokenReference, storedPaymentMethodId, threeDS2SdkVersion, type); + return Objects.hash( + brand, + checkoutAttemptId, + cupsecureplusSmscode, + cvc, + encryptedCard, + encryptedCardNumber, + encryptedExpiryMonth, + encryptedExpiryYear, + encryptedPassword, + encryptedSecurityCode, + expiryMonth, + expiryYear, + fastlaneData, + fundingSource, + holderName, + networkPaymentReference, + number, + recurringDetailReference, + shopperNotificationReference, + srcCorrelationId, + srcDigitalCardId, + srcScheme, + srcTokenReference, + storedPaymentMethodId, + threeDS2SdkVersion, + type); } @Override @@ -1129,28 +1263,46 @@ public String toString() { sb.append("class CardDetails {\n"); sb.append(" brand: ").append(toIndentedString(brand)).append("\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); - sb.append(" cupsecureplusSmscode: ").append(toIndentedString(cupsecureplusSmscode)).append("\n"); + sb.append(" cupsecureplusSmscode: ") + .append(toIndentedString(cupsecureplusSmscode)) + .append("\n"); sb.append(" cvc: ").append(toIndentedString(cvc)).append("\n"); sb.append(" encryptedCard: ").append(toIndentedString(encryptedCard)).append("\n"); - sb.append(" encryptedCardNumber: ").append(toIndentedString(encryptedCardNumber)).append("\n"); - sb.append(" encryptedExpiryMonth: ").append(toIndentedString(encryptedExpiryMonth)).append("\n"); - sb.append(" encryptedExpiryYear: ").append(toIndentedString(encryptedExpiryYear)).append("\n"); + sb.append(" encryptedCardNumber: ") + .append(toIndentedString(encryptedCardNumber)) + .append("\n"); + sb.append(" encryptedExpiryMonth: ") + .append(toIndentedString(encryptedExpiryMonth)) + .append("\n"); + sb.append(" encryptedExpiryYear: ") + .append(toIndentedString(encryptedExpiryYear)) + .append("\n"); sb.append(" encryptedPassword: ").append(toIndentedString(encryptedPassword)).append("\n"); - sb.append(" encryptedSecurityCode: ").append(toIndentedString(encryptedSecurityCode)).append("\n"); + sb.append(" encryptedSecurityCode: ") + .append(toIndentedString(encryptedSecurityCode)) + .append("\n"); sb.append(" expiryMonth: ").append(toIndentedString(expiryMonth)).append("\n"); sb.append(" expiryYear: ").append(toIndentedString(expiryYear)).append("\n"); sb.append(" fastlaneData: ").append(toIndentedString(fastlaneData)).append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); sb.append(" holderName: ").append(toIndentedString(holderName)).append("\n"); - sb.append(" networkPaymentReference: ").append(toIndentedString(networkPaymentReference)).append("\n"); + sb.append(" networkPaymentReference: ") + .append(toIndentedString(networkPaymentReference)) + .append("\n"); sb.append(" number: ").append(toIndentedString(number)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" shopperNotificationReference: ").append(toIndentedString(shopperNotificationReference)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" shopperNotificationReference: ") + .append(toIndentedString(shopperNotificationReference)) + .append("\n"); sb.append(" srcCorrelationId: ").append(toIndentedString(srcCorrelationId)).append("\n"); sb.append(" srcDigitalCardId: ").append(toIndentedString(srcDigitalCardId)).append("\n"); sb.append(" srcScheme: ").append(toIndentedString(srcScheme)).append("\n"); sb.append(" srcTokenReference: ").append(toIndentedString(srcTokenReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" threeDS2SdkVersion: ").append(toIndentedString(threeDS2SdkVersion)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -1158,8 +1310,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1168,7 +1319,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CardDetails given an JSON string * * @param jsonString JSON string @@ -1178,11 +1329,12 @@ private String toIndentedString(Object o) { public static CardDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardDetails.class); } -/** - * Convert an instance of CardDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CardDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CardDetailsRequest.java b/src/main/java/com/adyen/model/checkout/CardDetailsRequest.java index 03c45ef8f..a861ede83 100644 --- a/src/main/java/com/adyen/model/checkout/CardDetailsRequest.java +++ b/src/main/java/com/adyen/model/checkout/CardDetailsRequest.java @@ -2,33 +2,24 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * CardDetailsRequest - */ +/** CardDetailsRequest */ @JsonPropertyOrder({ CardDetailsRequest.JSON_PROPERTY_CARD_NUMBER, CardDetailsRequest.JSON_PROPERTY_COUNTRY_CODE, @@ -36,7 +27,6 @@ CardDetailsRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, CardDetailsRequest.JSON_PROPERTY_SUPPORTED_BRANDS }) - public class CardDetailsRequest { public static final String JSON_PROPERTY_CARD_NUMBER = "cardNumber"; private String cardNumber; @@ -53,13 +43,19 @@ public class CardDetailsRequest { public static final String JSON_PROPERTY_SUPPORTED_BRANDS = "supportedBrands"; private List supportedBrands; - public CardDetailsRequest() { - } + public CardDetailsRequest() {} /** - * A minimum of the first eight digits of the card number. The full card number gives the best result. You must be [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect raw card data. Alternatively, you can use the `encryptedCardNumber` field. + * A minimum of the first eight digits of the card number. The full card number gives the best + * result. You must be [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect + * raw card data. Alternatively, you can use the `encryptedCardNumber` field. * - * @param cardNumber A minimum of the first eight digits of the card number. The full card number gives the best result. You must be [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect raw card data. Alternatively, you can use the `encryptedCardNumber` field. + * @param cardNumber A minimum of the first eight digits of the card number. The full card number + * gives the best result. You must be [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to + * collect raw card data. Alternatively, you can use the `encryptedCardNumber` + * field. * @return the current {@code CardDetailsRequest} instance, allowing for method chaining */ public CardDetailsRequest cardNumber(String cardNumber) { @@ -68,8 +64,16 @@ public CardDetailsRequest cardNumber(String cardNumber) { } /** - * A minimum of the first eight digits of the card number. The full card number gives the best result. You must be [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect raw card data. Alternatively, you can use the `encryptedCardNumber` field. - * @return cardNumber A minimum of the first eight digits of the card number. The full card number gives the best result. You must be [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect raw card data. Alternatively, you can use the `encryptedCardNumber` field. + * A minimum of the first eight digits of the card number. The full card number gives the best + * result. You must be [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect + * raw card data. Alternatively, you can use the `encryptedCardNumber` field. + * + * @return cardNumber A minimum of the first eight digits of the card number. The full card number + * gives the best result. You must be [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to + * collect raw card data. Alternatively, you can use the `encryptedCardNumber` + * field. */ @JsonProperty(JSON_PROPERTY_CARD_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -78,9 +82,16 @@ public String getCardNumber() { } /** - * A minimum of the first eight digits of the card number. The full card number gives the best result. You must be [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect raw card data. Alternatively, you can use the `encryptedCardNumber` field. + * A minimum of the first eight digits of the card number. The full card number gives the best + * result. You must be [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect + * raw card data. Alternatively, you can use the `encryptedCardNumber` field. * - * @param cardNumber A minimum of the first eight digits of the card number. The full card number gives the best result. You must be [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect raw card data. Alternatively, you can use the `encryptedCardNumber` field. + * @param cardNumber A minimum of the first eight digits of the card number. The full card number + * gives the best result. You must be [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to + * collect raw card data. Alternatively, you can use the `encryptedCardNumber` + * field. */ @JsonProperty(JSON_PROPERTY_CARD_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -89,9 +100,11 @@ public void setCardNumber(String cardNumber) { } /** - * The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * The shopper country. Format: [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE * - * @param countryCode The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * @param countryCode The shopper country. Format: [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE * @return the current {@code CardDetailsRequest} instance, allowing for method chaining */ public CardDetailsRequest countryCode(String countryCode) { @@ -100,8 +113,11 @@ public CardDetailsRequest countryCode(String countryCode) { } /** - * The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE - * @return countryCode The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * The shopper country. Format: [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * + * @return countryCode The shopper country. Format: [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,9 +126,11 @@ public String getCountryCode() { } /** - * The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * The shopper country. Format: [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE * - * @param countryCode The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * @param countryCode The shopper country. Format: [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -133,6 +151,7 @@ public CardDetailsRequest encryptedCardNumber(String encryptedCardNumber) { /** * The encrypted card number. + * * @return encryptedCardNumber The encrypted card number. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_CARD_NUMBER) @@ -155,7 +174,8 @@ public void setEncryptedCardNumber(String encryptedCardNumber) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. * @return the current {@code CardDetailsRequest} instance, allowing for method chaining */ public CardDetailsRequest merchantAccount(String merchantAccount) { @@ -165,7 +185,9 @@ public CardDetailsRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * @return merchantAccount The merchant account identifier, with which you want to process the transaction. + * + * @return merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,7 +198,8 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,9 +208,19 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The card brands you support. This is the [`brands`](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#responses-200-paymentMethods-brands) array from your [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. If not included, our API uses the ones configured for your merchant account and, if provided, the country code. + * The card brands you support. This is the + * [`brands`](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#responses-200-paymentMethods-brands) + * array from your + * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) + * response. If not included, our API uses the ones configured for your merchant account and, if + * provided, the country code. * - * @param supportedBrands The card brands you support. This is the [`brands`](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#responses-200-paymentMethods-brands) array from your [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. If not included, our API uses the ones configured for your merchant account and, if provided, the country code. + * @param supportedBrands The card brands you support. This is the + * [`brands`](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#responses-200-paymentMethods-brands) + * array from your + * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) + * response. If not included, our API uses the ones configured for your merchant account and, + * if provided, the country code. * @return the current {@code CardDetailsRequest} instance, allowing for method chaining */ public CardDetailsRequest supportedBrands(List supportedBrands) { @@ -204,8 +237,19 @@ public CardDetailsRequest addSupportedBrandsItem(String supportedBrandsItem) { } /** - * The card brands you support. This is the [`brands`](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#responses-200-paymentMethods-brands) array from your [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. If not included, our API uses the ones configured for your merchant account and, if provided, the country code. - * @return supportedBrands The card brands you support. This is the [`brands`](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#responses-200-paymentMethods-brands) array from your [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. If not included, our API uses the ones configured for your merchant account and, if provided, the country code. + * The card brands you support. This is the + * [`brands`](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#responses-200-paymentMethods-brands) + * array from your + * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) + * response. If not included, our API uses the ones configured for your merchant account and, if + * provided, the country code. + * + * @return supportedBrands The card brands you support. This is the + * [`brands`](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#responses-200-paymentMethods-brands) + * array from your + * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) + * response. If not included, our API uses the ones configured for your merchant account and, + * if provided, the country code. */ @JsonProperty(JSON_PROPERTY_SUPPORTED_BRANDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,9 +258,19 @@ public List getSupportedBrands() { } /** - * The card brands you support. This is the [`brands`](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#responses-200-paymentMethods-brands) array from your [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. If not included, our API uses the ones configured for your merchant account and, if provided, the country code. + * The card brands you support. This is the + * [`brands`](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#responses-200-paymentMethods-brands) + * array from your + * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) + * response. If not included, our API uses the ones configured for your merchant account and, if + * provided, the country code. * - * @param supportedBrands The card brands you support. This is the [`brands`](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#responses-200-paymentMethods-brands) array from your [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. If not included, our API uses the ones configured for your merchant account and, if provided, the country code. + * @param supportedBrands The card brands you support. This is the + * [`brands`](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#responses-200-paymentMethods-brands) + * array from your + * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) + * response. If not included, our API uses the ones configured for your merchant account and, + * if provided, the country code. */ @JsonProperty(JSON_PROPERTY_SUPPORTED_BRANDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,9 +278,7 @@ public void setSupportedBrands(List supportedBrands) { this.supportedBrands = supportedBrands; } - /** - * Return true if this CardDetailsRequest object is equal to o. - */ + /** Return true if this CardDetailsRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -236,16 +288,17 @@ public boolean equals(Object o) { return false; } CardDetailsRequest cardDetailsRequest = (CardDetailsRequest) o; - return Objects.equals(this.cardNumber, cardDetailsRequest.cardNumber) && - Objects.equals(this.countryCode, cardDetailsRequest.countryCode) && - Objects.equals(this.encryptedCardNumber, cardDetailsRequest.encryptedCardNumber) && - Objects.equals(this.merchantAccount, cardDetailsRequest.merchantAccount) && - Objects.equals(this.supportedBrands, cardDetailsRequest.supportedBrands); + return Objects.equals(this.cardNumber, cardDetailsRequest.cardNumber) + && Objects.equals(this.countryCode, cardDetailsRequest.countryCode) + && Objects.equals(this.encryptedCardNumber, cardDetailsRequest.encryptedCardNumber) + && Objects.equals(this.merchantAccount, cardDetailsRequest.merchantAccount) + && Objects.equals(this.supportedBrands, cardDetailsRequest.supportedBrands); } @Override public int hashCode() { - return Objects.hash(cardNumber, countryCode, encryptedCardNumber, merchantAccount, supportedBrands); + return Objects.hash( + cardNumber, countryCode, encryptedCardNumber, merchantAccount, supportedBrands); } @Override @@ -254,7 +307,9 @@ public String toString() { sb.append("class CardDetailsRequest {\n"); sb.append(" cardNumber: ").append(toIndentedString(cardNumber)).append("\n"); sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n"); - sb.append(" encryptedCardNumber: ").append(toIndentedString(encryptedCardNumber)).append("\n"); + sb.append(" encryptedCardNumber: ") + .append(toIndentedString(encryptedCardNumber)) + .append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" supportedBrands: ").append(toIndentedString(supportedBrands)).append("\n"); sb.append("}"); @@ -262,8 +317,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -272,21 +326,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CardDetailsRequest given an JSON string * * @param jsonString JSON string * @return An instance of CardDetailsRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to CardDetailsRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CardDetailsRequest */ public static CardDetailsRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardDetailsRequest.class); } -/** - * Convert an instance of CardDetailsRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CardDetailsRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CardDetailsResponse.java b/src/main/java/com/adyen/model/checkout/CardDetailsResponse.java index 13df13f82..5575fa6af 100644 --- a/src/main/java/com/adyen/model/checkout/CardDetailsResponse.java +++ b/src/main/java/com/adyen/model/checkout/CardDetailsResponse.java @@ -2,41 +2,30 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.CardBrandDetails; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * CardDetailsResponse - */ +/** CardDetailsResponse */ @JsonPropertyOrder({ CardDetailsResponse.JSON_PROPERTY_BRANDS, CardDetailsResponse.JSON_PROPERTY_FUNDING_SOURCE, CardDetailsResponse.JSON_PROPERTY_IS_CARD_COMMERCIAL, CardDetailsResponse.JSON_PROPERTY_ISSUING_COUNTRY_CODE }) - public class CardDetailsResponse { public static final String JSON_PROPERTY_BRANDS = "brands"; private List brands; @@ -50,8 +39,7 @@ public class CardDetailsResponse { public static final String JSON_PROPERTY_ISSUING_COUNTRY_CODE = "issuingCountryCode"; private String issuingCountryCode; - public CardDetailsResponse() { - } + public CardDetailsResponse() {} /** * The list of brands identified for the card. @@ -74,6 +62,7 @@ public CardDetailsResponse addBrandsItem(CardBrandDetails brandsItem) { /** * The list of brands identified for the card. + * * @return brands The list of brands identified for the card. */ @JsonProperty(JSON_PROPERTY_BRANDS) @@ -96,7 +85,8 @@ public void setBrands(List brands) { /** * The funding source of the card, for example **DEBIT**, **CREDIT**, or **PREPAID**. * - * @param fundingSource The funding source of the card, for example **DEBIT**, **CREDIT**, or **PREPAID**. + * @param fundingSource The funding source of the card, for example **DEBIT**, **CREDIT**, or + * **PREPAID**. * @return the current {@code CardDetailsResponse} instance, allowing for method chaining */ public CardDetailsResponse fundingSource(String fundingSource) { @@ -106,7 +96,9 @@ public CardDetailsResponse fundingSource(String fundingSource) { /** * The funding source of the card, for example **DEBIT**, **CREDIT**, or **PREPAID**. - * @return fundingSource The funding source of the card, for example **DEBIT**, **CREDIT**, or **PREPAID**. + * + * @return fundingSource The funding source of the card, for example **DEBIT**, **CREDIT**, or + * **PREPAID**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,7 +109,8 @@ public String getFundingSource() { /** * The funding source of the card, for example **DEBIT**, **CREDIT**, or **PREPAID**. * - * @param fundingSource The funding source of the card, for example **DEBIT**, **CREDIT**, or **PREPAID**. + * @param fundingSource The funding source of the card, for example **DEBIT**, **CREDIT**, or + * **PREPAID**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,9 +119,11 @@ public void setFundingSource(String fundingSource) { } /** - * Indicates if this is a commercial card or a consumer card. If **true**, it is a commercial card. If **false**, it is a consumer card. + * Indicates if this is a commercial card or a consumer card. If **true**, it is a commercial + * card. If **false**, it is a consumer card. * - * @param isCardCommercial Indicates if this is a commercial card or a consumer card. If **true**, it is a commercial card. If **false**, it is a consumer card. + * @param isCardCommercial Indicates if this is a commercial card or a consumer card. If **true**, + * it is a commercial card. If **false**, it is a consumer card. * @return the current {@code CardDetailsResponse} instance, allowing for method chaining */ public CardDetailsResponse isCardCommercial(Boolean isCardCommercial) { @@ -137,8 +132,11 @@ public CardDetailsResponse isCardCommercial(Boolean isCardCommercial) { } /** - * Indicates if this is a commercial card or a consumer card. If **true**, it is a commercial card. If **false**, it is a consumer card. - * @return isCardCommercial Indicates if this is a commercial card or a consumer card. If **true**, it is a commercial card. If **false**, it is a consumer card. + * Indicates if this is a commercial card or a consumer card. If **true**, it is a commercial + * card. If **false**, it is a consumer card. + * + * @return isCardCommercial Indicates if this is a commercial card or a consumer card. If + * **true**, it is a commercial card. If **false**, it is a consumer card. */ @JsonProperty(JSON_PROPERTY_IS_CARD_COMMERCIAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,9 +145,11 @@ public Boolean getIsCardCommercial() { } /** - * Indicates if this is a commercial card or a consumer card. If **true**, it is a commercial card. If **false**, it is a consumer card. + * Indicates if this is a commercial card or a consumer card. If **true**, it is a commercial + * card. If **false**, it is a consumer card. * - * @param isCardCommercial Indicates if this is a commercial card or a consumer card. If **true**, it is a commercial card. If **false**, it is a consumer card. + * @param isCardCommercial Indicates if this is a commercial card or a consumer card. If **true**, + * it is a commercial card. If **false**, it is a consumer card. */ @JsonProperty(JSON_PROPERTY_IS_CARD_COMMERCIAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,9 +158,9 @@ public void setIsCardCommercial(Boolean isCardCommercial) { } /** - * The two-letter country code of the country where the card was issued. + * The two-letter country code of the country where the card was issued. * - * @param issuingCountryCode The two-letter country code of the country where the card was issued. + * @param issuingCountryCode The two-letter country code of the country where the card was issued. * @return the current {@code CardDetailsResponse} instance, allowing for method chaining */ public CardDetailsResponse issuingCountryCode(String issuingCountryCode) { @@ -169,8 +169,10 @@ public CardDetailsResponse issuingCountryCode(String issuingCountryCode) { } /** - * The two-letter country code of the country where the card was issued. - * @return issuingCountryCode The two-letter country code of the country where the card was issued. + * The two-letter country code of the country where the card was issued. + * + * @return issuingCountryCode The two-letter country code of the country where the card was + * issued. */ @JsonProperty(JSON_PROPERTY_ISSUING_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,9 +181,9 @@ public String getIssuingCountryCode() { } /** - * The two-letter country code of the country where the card was issued. + * The two-letter country code of the country where the card was issued. * - * @param issuingCountryCode The two-letter country code of the country where the card was issued. + * @param issuingCountryCode The two-letter country code of the country where the card was issued. */ @JsonProperty(JSON_PROPERTY_ISSUING_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,9 +191,7 @@ public void setIssuingCountryCode(String issuingCountryCode) { this.issuingCountryCode = issuingCountryCode; } - /** - * Return true if this CardDetailsResponse object is equal to o. - */ + /** Return true if this CardDetailsResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -201,10 +201,10 @@ public boolean equals(Object o) { return false; } CardDetailsResponse cardDetailsResponse = (CardDetailsResponse) o; - return Objects.equals(this.brands, cardDetailsResponse.brands) && - Objects.equals(this.fundingSource, cardDetailsResponse.fundingSource) && - Objects.equals(this.isCardCommercial, cardDetailsResponse.isCardCommercial) && - Objects.equals(this.issuingCountryCode, cardDetailsResponse.issuingCountryCode); + return Objects.equals(this.brands, cardDetailsResponse.brands) + && Objects.equals(this.fundingSource, cardDetailsResponse.fundingSource) + && Objects.equals(this.isCardCommercial, cardDetailsResponse.isCardCommercial) + && Objects.equals(this.issuingCountryCode, cardDetailsResponse.issuingCountryCode); } @Override @@ -225,8 +225,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -235,21 +234,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CardDetailsResponse given an JSON string * * @param jsonString JSON string * @return An instance of CardDetailsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to CardDetailsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CardDetailsResponse */ public static CardDetailsResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardDetailsResponse.class); } -/** - * Convert an instance of CardDetailsResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CardDetailsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CardDonations.java b/src/main/java/com/adyen/model/checkout/CardDonations.java index 8d36fae43..2f55a3fcb 100644 --- a/src/main/java/com/adyen/model/checkout/CardDonations.java +++ b/src/main/java/com/adyen/model/checkout/CardDonations.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * CardDonations - */ +/** CardDonations */ @JsonPropertyOrder({ CardDonations.JSON_PROPERTY_BRAND, CardDonations.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, @@ -55,7 +50,6 @@ CardDonations.JSON_PROPERTY_THREE_D_S2_SDK_VERSION, CardDonations.JSON_PROPERTY_TYPE }) - public class CardDonations { public static final String JSON_PROPERTY_BRAND = "brand"; private String brand; @@ -64,7 +58,7 @@ public class CardDonations { private String checkoutAttemptId; public static final String JSON_PROPERTY_CUPSECUREPLUS_SMSCODE = "cupsecureplus.smscode"; - @Deprecated // deprecated + @Deprecated // deprecated private String cupsecureplusSmscode; public static final String JSON_PROPERTY_CVC = "cvc"; @@ -98,10 +92,10 @@ public class CardDonations { private String fastlaneData; /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. */ public enum FundingSourceEnum { - CREDIT(String.valueOf("credit")), DEBIT(String.valueOf("debit")); @@ -111,7 +105,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -132,7 +126,11 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); + LOG.warning( + "FundingSourceEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -153,7 +151,8 @@ public static FundingSourceEnum fromValue(String value) { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; - public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE = "shopperNotificationReference"; + public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE = + "shopperNotificationReference"; private String shopperNotificationReference; public static final String JSON_PROPERTY_SRC_CORRELATION_ID = "srcCorrelationId"; @@ -175,10 +174,10 @@ public static FundingSourceEnum fromValue(String value) { private String threeDS2SdkVersion; /** - * Default payment method details. Common for scheme payment methods, and for simple payment method details. + * Default payment method details. Common for scheme payment methods, and for simple payment + * method details. */ public enum TypeEnum { - BCMC(String.valueOf("bcmc")), SCHEME(String.valueOf("scheme")), @@ -196,7 +195,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -217,7 +216,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -225,8 +228,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CardDonations() { - } + public CardDonations() {} /** * Secondary brand of the card. For example: **plastix**, **hmclub**. @@ -241,6 +243,7 @@ public CardDonations brand(String brand) { /** * Secondary brand of the card. For example: **plastix**, **hmclub**. + * * @return brand Secondary brand of the card. For example: **plastix**, **hmclub**. */ @JsonProperty(JSON_PROPERTY_BRAND) @@ -273,6 +276,7 @@ public CardDonations checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -295,12 +299,11 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { /** * cupsecureplusSmscode * - * @param cupsecureplusSmscode + * @param cupsecureplusSmscode * @return the current {@code CardDonations} instance, allowing for method chaining - * - * @deprecated + * @deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated public CardDonations cupsecureplusSmscode(String cupsecureplusSmscode) { this.cupsecureplusSmscode = cupsecureplusSmscode; return this; @@ -308,10 +311,11 @@ public CardDonations cupsecureplusSmscode(String cupsecureplusSmscode) { /** * Get cupsecureplusSmscode - * @return cupsecureplusSmscode - * @deprecated // deprecated + * + * @return cupsecureplusSmscode + * @deprecated // deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated @JsonProperty(JSON_PROPERTY_CUPSECUREPLUS_SMSCODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCupsecureplusSmscode() { @@ -321,11 +325,10 @@ public String getCupsecureplusSmscode() { /** * cupsecureplusSmscode * - * @param cupsecureplusSmscode - * - * @deprecated + * @param cupsecureplusSmscode + * @deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated @JsonProperty(JSON_PROPERTY_CUPSECUREPLUS_SMSCODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCupsecureplusSmscode(String cupsecureplusSmscode) { @@ -333,9 +336,11 @@ public void setCupsecureplusSmscode(String cupsecureplusSmscode) { } /** - * The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card verification code. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param cvc The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param cvc The card verification code. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * @return the current {@code CardDonations} instance, allowing for method chaining */ public CardDonations cvc(String cvc) { @@ -344,8 +349,11 @@ public CardDonations cvc(String cvc) { } /** - * The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). - * @return cvc The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card verification code. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * + * @return cvc The card verification code. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -354,9 +362,11 @@ public String getCvc() { } /** - * The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card verification code. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param cvc The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param cvc The card verification code. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -365,9 +375,11 @@ public void setCvc(String cvc) { } /** - * Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details. + * Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card + * details. * - * @param encryptedCard Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details. + * @param encryptedCard Only include this for JSON Web Encryption (JWE) implementations. The + * JWE-encrypted card details. * @return the current {@code CardDonations} instance, allowing for method chaining */ public CardDonations encryptedCard(String encryptedCard) { @@ -376,8 +388,11 @@ public CardDonations encryptedCard(String encryptedCard) { } /** - * Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details. - * @return encryptedCard Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details. + * Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card + * details. + * + * @return encryptedCard Only include this for JSON Web Encryption (JWE) implementations. The + * JWE-encrypted card details. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -386,9 +401,11 @@ public String getEncryptedCard() { } /** - * Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details. + * Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card + * details. * - * @param encryptedCard Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details. + * @param encryptedCard Only include this for JSON Web Encryption (JWE) implementations. The + * JWE-encrypted card details. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -409,6 +426,7 @@ public CardDonations encryptedCardNumber(String encryptedCardNumber) { /** * The encrypted card number. + * * @return encryptedCardNumber The encrypted card number. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_CARD_NUMBER) @@ -441,6 +459,7 @@ public CardDonations encryptedExpiryMonth(String encryptedExpiryMonth) { /** * The encrypted card expiry month. + * * @return encryptedExpiryMonth The encrypted card expiry month. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_EXPIRY_MONTH) @@ -473,6 +492,7 @@ public CardDonations encryptedExpiryYear(String encryptedExpiryYear) { /** * The encrypted card expiry year. + * * @return encryptedExpiryYear The encrypted card expiry year. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_EXPIRY_YEAR) @@ -493,9 +513,11 @@ public void setEncryptedExpiryYear(String encryptedExpiryYear) { } /** - * This field contains an encrypted, one-time password or an authentication code provided by the cardholder. + * This field contains an encrypted, one-time password or an authentication code provided by the + * cardholder. * - * @param encryptedPassword This field contains an encrypted, one-time password or an authentication code provided by the cardholder. + * @param encryptedPassword This field contains an encrypted, one-time password or an + * authentication code provided by the cardholder. * @return the current {@code CardDonations} instance, allowing for method chaining */ public CardDonations encryptedPassword(String encryptedPassword) { @@ -504,8 +526,11 @@ public CardDonations encryptedPassword(String encryptedPassword) { } /** - * This field contains an encrypted, one-time password or an authentication code provided by the cardholder. - * @return encryptedPassword This field contains an encrypted, one-time password or an authentication code provided by the cardholder. + * This field contains an encrypted, one-time password or an authentication code provided by the + * cardholder. + * + * @return encryptedPassword This field contains an encrypted, one-time password or an + * authentication code provided by the cardholder. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -514,9 +539,11 @@ public String getEncryptedPassword() { } /** - * This field contains an encrypted, one-time password or an authentication code provided by the cardholder. + * This field contains an encrypted, one-time password or an authentication code provided by the + * cardholder. * - * @param encryptedPassword This field contains an encrypted, one-time password or an authentication code provided by the cardholder. + * @param encryptedPassword This field contains an encrypted, one-time password or an + * authentication code provided by the cardholder. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -537,6 +564,7 @@ public CardDonations encryptedSecurityCode(String encryptedSecurityCode) { /** * The encrypted card verification code. + * * @return encryptedSecurityCode The encrypted card verification code. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_SECURITY_CODE) @@ -557,9 +585,11 @@ public void setEncryptedSecurityCode(String encryptedSecurityCode) { } /** - * The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry month. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * @return the current {@code CardDonations} instance, allowing for method chaining */ public CardDonations expiryMonth(String expiryMonth) { @@ -568,8 +598,11 @@ public CardDonations expiryMonth(String expiryMonth) { } /** - * The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). - * @return expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry month. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * + * @return expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -578,9 +611,11 @@ public String getExpiryMonth() { } /** - * The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry month. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -589,9 +624,11 @@ public void setExpiryMonth(String expiryMonth) { } /** - * The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry year. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param expiryYear The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param expiryYear The card expiry year. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * @return the current {@code CardDonations} instance, allowing for method chaining */ public CardDonations expiryYear(String expiryYear) { @@ -600,8 +637,11 @@ public CardDonations expiryYear(String expiryYear) { } /** - * The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). - * @return expiryYear The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry year. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * + * @return expiryYear The card expiry year. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -610,9 +650,11 @@ public String getExpiryYear() { } /** - * The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry year. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param expiryYear The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param expiryYear The card expiry year. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -633,6 +675,7 @@ public CardDonations fastlaneData(String fastlaneData) { /** * The encoded fastlane data blob + * * @return fastlaneData The encoded fastlane data blob */ @JsonProperty(JSON_PROPERTY_FASTLANE_DATA) @@ -653,9 +696,12 @@ public void setFastlaneData(String fastlaneData) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. * @return the current {@code CardDonations} instance, allowing for method chaining */ public CardDonations fundingSource(FundingSourceEnum fundingSource) { @@ -664,8 +710,12 @@ public CardDonations fundingSource(FundingSourceEnum fundingSource) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. - * @return fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * + * @return fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -674,9 +724,12 @@ public FundingSourceEnum getFundingSource() { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -697,6 +750,7 @@ public CardDonations holderName(String holderName) { /** * The name of the card holder. + * * @return holderName The name of the card holder. */ @JsonProperty(JSON_PROPERTY_HOLDER_NAME) @@ -717,9 +771,13 @@ public void setHolderName(String holderName) { } /** - * The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. + * The transaction identifier from card schemes. This is the + * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) + * from the response to the first payment. * - * @param networkPaymentReference The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. + * @param networkPaymentReference The transaction identifier from card schemes. This is the + * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) + * from the response to the first payment. * @return the current {@code CardDonations} instance, allowing for method chaining */ public CardDonations networkPaymentReference(String networkPaymentReference) { @@ -728,8 +786,13 @@ public CardDonations networkPaymentReference(String networkPaymentReference) { } /** - * The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. - * @return networkPaymentReference The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. + * The transaction identifier from card schemes. This is the + * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) + * from the response to the first payment. + * + * @return networkPaymentReference The transaction identifier from card schemes. This is the + * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) + * from the response to the first payment. */ @JsonProperty(JSON_PROPERTY_NETWORK_PAYMENT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -738,9 +801,13 @@ public String getNetworkPaymentReference() { } /** - * The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. + * The transaction identifier from card schemes. This is the + * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) + * from the response to the first payment. * - * @param networkPaymentReference The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. + * @param networkPaymentReference The transaction identifier from card schemes. This is the + * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) + * from the response to the first payment. */ @JsonProperty(JSON_PROPERTY_NETWORK_PAYMENT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -749,9 +816,11 @@ public void setNetworkPaymentReference(String networkPaymentReference) { } /** - * The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card number. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param number The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param number The card number. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * @return the current {@code CardDonations} instance, allowing for method chaining */ public CardDonations number(String number) { @@ -760,8 +829,11 @@ public CardDonations number(String number) { } /** - * The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). - * @return number The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card number. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * + * @return number The card number. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -770,9 +842,11 @@ public String getNumber() { } /** - * The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card number. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param number The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param number The card number. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -781,13 +855,13 @@ public void setNumber(String number) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code CardDonations} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public CardDonations recurringDetailReference(String recurringDetailReference) { @@ -796,8 +870,11 @@ public CardDonations recurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -808,12 +885,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -823,9 +900,12 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India. + * The `shopperNotificationReference` returned in the response when you requested to + * notify the shopper. Used only for recurring payments in India. * - * @param shopperNotificationReference The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India. + * @param shopperNotificationReference The `shopperNotificationReference` returned in + * the response when you requested to notify the shopper. Used only for recurring payments in + * India. * @return the current {@code CardDonations} instance, allowing for method chaining */ public CardDonations shopperNotificationReference(String shopperNotificationReference) { @@ -834,8 +914,12 @@ public CardDonations shopperNotificationReference(String shopperNotificationRefe } /** - * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India. - * @return shopperNotificationReference The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India. + * The `shopperNotificationReference` returned in the response when you requested to + * notify the shopper. Used only for recurring payments in India. + * + * @return shopperNotificationReference The `shopperNotificationReference` returned in + * the response when you requested to notify the shopper. Used only for recurring payments in + * India. */ @JsonProperty(JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -844,9 +928,12 @@ public String getShopperNotificationReference() { } /** - * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India. + * The `shopperNotificationReference` returned in the response when you requested to + * notify the shopper. Used only for recurring payments in India. * - * @param shopperNotificationReference The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India. + * @param shopperNotificationReference The `shopperNotificationReference` returned in + * the response when you requested to notify the shopper. Used only for recurring payments in + * India. */ @JsonProperty(JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -867,6 +954,7 @@ public CardDonations srcCorrelationId(String srcCorrelationId) { /** * An identifier used for the Click to Pay transaction. + * * @return srcCorrelationId An identifier used for the Click to Pay transaction. */ @JsonProperty(JSON_PROPERTY_SRC_CORRELATION_ID) @@ -899,6 +987,7 @@ public CardDonations srcDigitalCardId(String srcDigitalCardId) { /** * The SRC reference for the Click to Pay token. + * * @return srcDigitalCardId The SRC reference for the Click to Pay token. */ @JsonProperty(JSON_PROPERTY_SRC_DIGITAL_CARD_ID) @@ -931,6 +1020,7 @@ public CardDonations srcScheme(String srcScheme) { /** * The scheme that is being used for Click to Pay. + * * @return srcScheme The scheme that is being used for Click to Pay. */ @JsonProperty(JSON_PROPERTY_SRC_SCHEME) @@ -963,6 +1053,7 @@ public CardDonations srcTokenReference(String srcTokenReference) { /** * The reference for the Click to Pay token. + * * @return srcTokenReference The reference for the Click to Pay token. */ @JsonProperty(JSON_PROPERTY_SRC_TOKEN_REFERENCE) @@ -983,9 +1074,11 @@ public void setSrcTokenReference(String srcTokenReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code CardDonations} instance, allowing for method chaining */ public CardDonations storedPaymentMethodId(String storedPaymentMethodId) { @@ -994,8 +1087,11 @@ public CardDonations storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1004,9 +1100,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1017,7 +1115,8 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. * - * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. + * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile + * SDK. * @return the current {@code CardDonations} instance, allowing for method chaining */ public CardDonations threeDS2SdkVersion(String threeDS2SdkVersion) { @@ -1027,7 +1126,9 @@ public CardDonations threeDS2SdkVersion(String threeDS2SdkVersion) { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. - * @return threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. + * + * @return threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile + * SDK. */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_SDK_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1038,7 +1139,8 @@ public String getThreeDS2SdkVersion() { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. * - * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. + * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile + * SDK. */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_SDK_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1047,9 +1149,11 @@ public void setThreeDS2SdkVersion(String threeDS2SdkVersion) { } /** - * Default payment method details. Common for scheme payment methods, and for simple payment method details. + * Default payment method details. Common for scheme payment methods, and for simple payment + * method details. * - * @param type Default payment method details. Common for scheme payment methods, and for simple payment method details. + * @param type Default payment method details. Common for scheme payment methods, and for simple + * payment method details. * @return the current {@code CardDonations} instance, allowing for method chaining */ public CardDonations type(TypeEnum type) { @@ -1058,8 +1162,11 @@ public CardDonations type(TypeEnum type) { } /** - * Default payment method details. Common for scheme payment methods, and for simple payment method details. - * @return type Default payment method details. Common for scheme payment methods, and for simple payment method details. + * Default payment method details. Common for scheme payment methods, and for simple payment + * method details. + * + * @return type Default payment method details. Common for scheme payment methods, and for simple + * payment method details. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1068,9 +1175,11 @@ public TypeEnum getType() { } /** - * Default payment method details. Common for scheme payment methods, and for simple payment method details. + * Default payment method details. Common for scheme payment methods, and for simple payment + * method details. * - * @param type Default payment method details. Common for scheme payment methods, and for simple payment method details. + * @param type Default payment method details. Common for scheme payment methods, and for simple + * payment method details. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1078,9 +1187,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this CardDonations object is equal to o. - */ + /** Return true if this CardDonations object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -1090,37 +1197,64 @@ public boolean equals(Object o) { return false; } CardDonations cardDonations = (CardDonations) o; - return Objects.equals(this.brand, cardDonations.brand) && - Objects.equals(this.checkoutAttemptId, cardDonations.checkoutAttemptId) && - Objects.equals(this.cupsecureplusSmscode, cardDonations.cupsecureplusSmscode) && - Objects.equals(this.cvc, cardDonations.cvc) && - Objects.equals(this.encryptedCard, cardDonations.encryptedCard) && - Objects.equals(this.encryptedCardNumber, cardDonations.encryptedCardNumber) && - Objects.equals(this.encryptedExpiryMonth, cardDonations.encryptedExpiryMonth) && - Objects.equals(this.encryptedExpiryYear, cardDonations.encryptedExpiryYear) && - Objects.equals(this.encryptedPassword, cardDonations.encryptedPassword) && - Objects.equals(this.encryptedSecurityCode, cardDonations.encryptedSecurityCode) && - Objects.equals(this.expiryMonth, cardDonations.expiryMonth) && - Objects.equals(this.expiryYear, cardDonations.expiryYear) && - Objects.equals(this.fastlaneData, cardDonations.fastlaneData) && - Objects.equals(this.fundingSource, cardDonations.fundingSource) && - Objects.equals(this.holderName, cardDonations.holderName) && - Objects.equals(this.networkPaymentReference, cardDonations.networkPaymentReference) && - Objects.equals(this.number, cardDonations.number) && - Objects.equals(this.recurringDetailReference, cardDonations.recurringDetailReference) && - Objects.equals(this.shopperNotificationReference, cardDonations.shopperNotificationReference) && - Objects.equals(this.srcCorrelationId, cardDonations.srcCorrelationId) && - Objects.equals(this.srcDigitalCardId, cardDonations.srcDigitalCardId) && - Objects.equals(this.srcScheme, cardDonations.srcScheme) && - Objects.equals(this.srcTokenReference, cardDonations.srcTokenReference) && - Objects.equals(this.storedPaymentMethodId, cardDonations.storedPaymentMethodId) && - Objects.equals(this.threeDS2SdkVersion, cardDonations.threeDS2SdkVersion) && - Objects.equals(this.type, cardDonations.type); + return Objects.equals(this.brand, cardDonations.brand) + && Objects.equals(this.checkoutAttemptId, cardDonations.checkoutAttemptId) + && Objects.equals(this.cupsecureplusSmscode, cardDonations.cupsecureplusSmscode) + && Objects.equals(this.cvc, cardDonations.cvc) + && Objects.equals(this.encryptedCard, cardDonations.encryptedCard) + && Objects.equals(this.encryptedCardNumber, cardDonations.encryptedCardNumber) + && Objects.equals(this.encryptedExpiryMonth, cardDonations.encryptedExpiryMonth) + && Objects.equals(this.encryptedExpiryYear, cardDonations.encryptedExpiryYear) + && Objects.equals(this.encryptedPassword, cardDonations.encryptedPassword) + && Objects.equals(this.encryptedSecurityCode, cardDonations.encryptedSecurityCode) + && Objects.equals(this.expiryMonth, cardDonations.expiryMonth) + && Objects.equals(this.expiryYear, cardDonations.expiryYear) + && Objects.equals(this.fastlaneData, cardDonations.fastlaneData) + && Objects.equals(this.fundingSource, cardDonations.fundingSource) + && Objects.equals(this.holderName, cardDonations.holderName) + && Objects.equals(this.networkPaymentReference, cardDonations.networkPaymentReference) + && Objects.equals(this.number, cardDonations.number) + && Objects.equals(this.recurringDetailReference, cardDonations.recurringDetailReference) + && Objects.equals( + this.shopperNotificationReference, cardDonations.shopperNotificationReference) + && Objects.equals(this.srcCorrelationId, cardDonations.srcCorrelationId) + && Objects.equals(this.srcDigitalCardId, cardDonations.srcDigitalCardId) + && Objects.equals(this.srcScheme, cardDonations.srcScheme) + && Objects.equals(this.srcTokenReference, cardDonations.srcTokenReference) + && Objects.equals(this.storedPaymentMethodId, cardDonations.storedPaymentMethodId) + && Objects.equals(this.threeDS2SdkVersion, cardDonations.threeDS2SdkVersion) + && Objects.equals(this.type, cardDonations.type); } @Override public int hashCode() { - return Objects.hash(brand, checkoutAttemptId, cupsecureplusSmscode, cvc, encryptedCard, encryptedCardNumber, encryptedExpiryMonth, encryptedExpiryYear, encryptedPassword, encryptedSecurityCode, expiryMonth, expiryYear, fastlaneData, fundingSource, holderName, networkPaymentReference, number, recurringDetailReference, shopperNotificationReference, srcCorrelationId, srcDigitalCardId, srcScheme, srcTokenReference, storedPaymentMethodId, threeDS2SdkVersion, type); + return Objects.hash( + brand, + checkoutAttemptId, + cupsecureplusSmscode, + cvc, + encryptedCard, + encryptedCardNumber, + encryptedExpiryMonth, + encryptedExpiryYear, + encryptedPassword, + encryptedSecurityCode, + expiryMonth, + expiryYear, + fastlaneData, + fundingSource, + holderName, + networkPaymentReference, + number, + recurringDetailReference, + shopperNotificationReference, + srcCorrelationId, + srcDigitalCardId, + srcScheme, + srcTokenReference, + storedPaymentMethodId, + threeDS2SdkVersion, + type); } @Override @@ -1129,28 +1263,46 @@ public String toString() { sb.append("class CardDonations {\n"); sb.append(" brand: ").append(toIndentedString(brand)).append("\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); - sb.append(" cupsecureplusSmscode: ").append(toIndentedString(cupsecureplusSmscode)).append("\n"); + sb.append(" cupsecureplusSmscode: ") + .append(toIndentedString(cupsecureplusSmscode)) + .append("\n"); sb.append(" cvc: ").append(toIndentedString(cvc)).append("\n"); sb.append(" encryptedCard: ").append(toIndentedString(encryptedCard)).append("\n"); - sb.append(" encryptedCardNumber: ").append(toIndentedString(encryptedCardNumber)).append("\n"); - sb.append(" encryptedExpiryMonth: ").append(toIndentedString(encryptedExpiryMonth)).append("\n"); - sb.append(" encryptedExpiryYear: ").append(toIndentedString(encryptedExpiryYear)).append("\n"); + sb.append(" encryptedCardNumber: ") + .append(toIndentedString(encryptedCardNumber)) + .append("\n"); + sb.append(" encryptedExpiryMonth: ") + .append(toIndentedString(encryptedExpiryMonth)) + .append("\n"); + sb.append(" encryptedExpiryYear: ") + .append(toIndentedString(encryptedExpiryYear)) + .append("\n"); sb.append(" encryptedPassword: ").append(toIndentedString(encryptedPassword)).append("\n"); - sb.append(" encryptedSecurityCode: ").append(toIndentedString(encryptedSecurityCode)).append("\n"); + sb.append(" encryptedSecurityCode: ") + .append(toIndentedString(encryptedSecurityCode)) + .append("\n"); sb.append(" expiryMonth: ").append(toIndentedString(expiryMonth)).append("\n"); sb.append(" expiryYear: ").append(toIndentedString(expiryYear)).append("\n"); sb.append(" fastlaneData: ").append(toIndentedString(fastlaneData)).append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); sb.append(" holderName: ").append(toIndentedString(holderName)).append("\n"); - sb.append(" networkPaymentReference: ").append(toIndentedString(networkPaymentReference)).append("\n"); + sb.append(" networkPaymentReference: ") + .append(toIndentedString(networkPaymentReference)) + .append("\n"); sb.append(" number: ").append(toIndentedString(number)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" shopperNotificationReference: ").append(toIndentedString(shopperNotificationReference)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" shopperNotificationReference: ") + .append(toIndentedString(shopperNotificationReference)) + .append("\n"); sb.append(" srcCorrelationId: ").append(toIndentedString(srcCorrelationId)).append("\n"); sb.append(" srcDigitalCardId: ").append(toIndentedString(srcDigitalCardId)).append("\n"); sb.append(" srcScheme: ").append(toIndentedString(srcScheme)).append("\n"); sb.append(" srcTokenReference: ").append(toIndentedString(srcTokenReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" threeDS2SdkVersion: ").append(toIndentedString(threeDS2SdkVersion)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -1158,8 +1310,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1168,7 +1319,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CardDonations given an JSON string * * @param jsonString JSON string @@ -1178,11 +1329,12 @@ private String toIndentedString(Object o) { public static CardDonations fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardDonations.class); } -/** - * Convert an instance of CardDonations to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CardDonations to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CashAppDetails.java b/src/main/java/com/adyen/model/checkout/CashAppDetails.java index fa181f392..630dee12b 100644 --- a/src/main/java/com/adyen/model/checkout/CashAppDetails.java +++ b/src/main/java/com/adyen/model/checkout/CashAppDetails.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * CashAppDetails - */ +/** CashAppDetails */ @JsonPropertyOrder({ CashAppDetails.JSON_PROPERTY_CASHTAG, CashAppDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, @@ -39,7 +34,6 @@ CashAppDetails.JSON_PROPERTY_SUBTYPE, CashAppDetails.JSON_PROPERTY_TYPE }) - public class CashAppDetails { public static final String JSON_PROPERTY_CASHTAG = "cashtag"; private String cashtag; @@ -69,11 +63,8 @@ public class CashAppDetails { public static final String JSON_PROPERTY_SUBTYPE = "subtype"; private String subtype; - /** - * cashapp - */ + /** cashapp */ public enum TypeEnum { - CASHAPP(String.valueOf("cashapp")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -81,7 +72,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -102,7 +93,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -110,8 +105,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CashAppDetails() { - } + public CashAppDetails() {} /** * Cash App issued cashtag for recurring payment @@ -126,6 +120,7 @@ public CashAppDetails cashtag(String cashtag) { /** * Cash App issued cashtag for recurring payment + * * @return cashtag Cash App issued cashtag for recurring payment */ @JsonProperty(JSON_PROPERTY_CASHTAG) @@ -158,6 +153,7 @@ public CashAppDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -190,6 +186,7 @@ public CashAppDetails customerId(String customerId) { /** * Cash App issued customerId for recurring payment + * * @return customerId Cash App issued customerId for recurring payment */ @JsonProperty(JSON_PROPERTY_CUSTOMER_ID) @@ -222,6 +219,7 @@ public CashAppDetails grantId(String grantId) { /** * Cash App issued grantId for one time payment + * * @return grantId Cash App issued grantId for one time payment */ @JsonProperty(JSON_PROPERTY_GRANT_ID) @@ -254,6 +252,7 @@ public CashAppDetails onFileGrantId(String onFileGrantId) { /** * Cash App issued onFileGrantId for recurring payment + * * @return onFileGrantId Cash App issued onFileGrantId for recurring payment */ @JsonProperty(JSON_PROPERTY_ON_FILE_GRANT_ID) @@ -274,13 +273,13 @@ public void setOnFileGrantId(String onFileGrantId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code CashAppDetails} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public CashAppDetails recurringDetailReference(String recurringDetailReference) { @@ -289,8 +288,11 @@ public CashAppDetails recurringDetailReference(String recurringDetailReference) } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -301,12 +303,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -328,6 +330,7 @@ public CashAppDetails requestId(String requestId) { /** * Cash App request id + * * @return requestId Cash App request id */ @JsonProperty(JSON_PROPERTY_REQUEST_ID) @@ -348,9 +351,11 @@ public void setRequestId(String requestId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code CashAppDetails} instance, allowing for method chaining */ public CashAppDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -359,8 +364,11 @@ public CashAppDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -369,9 +377,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -392,6 +402,7 @@ public CashAppDetails subtype(String subtype) { /** * The payment method subtype. + * * @return subtype The payment method subtype. */ @JsonProperty(JSON_PROPERTY_SUBTYPE) @@ -424,6 +435,7 @@ public CashAppDetails type(TypeEnum type) { /** * cashapp + * * @return type cashapp */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -443,9 +455,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this CashAppDetails object is equal to o. - */ + /** Return true if this CashAppDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -455,21 +465,31 @@ public boolean equals(Object o) { return false; } CashAppDetails cashAppDetails = (CashAppDetails) o; - return Objects.equals(this.cashtag, cashAppDetails.cashtag) && - Objects.equals(this.checkoutAttemptId, cashAppDetails.checkoutAttemptId) && - Objects.equals(this.customerId, cashAppDetails.customerId) && - Objects.equals(this.grantId, cashAppDetails.grantId) && - Objects.equals(this.onFileGrantId, cashAppDetails.onFileGrantId) && - Objects.equals(this.recurringDetailReference, cashAppDetails.recurringDetailReference) && - Objects.equals(this.requestId, cashAppDetails.requestId) && - Objects.equals(this.storedPaymentMethodId, cashAppDetails.storedPaymentMethodId) && - Objects.equals(this.subtype, cashAppDetails.subtype) && - Objects.equals(this.type, cashAppDetails.type); + return Objects.equals(this.cashtag, cashAppDetails.cashtag) + && Objects.equals(this.checkoutAttemptId, cashAppDetails.checkoutAttemptId) + && Objects.equals(this.customerId, cashAppDetails.customerId) + && Objects.equals(this.grantId, cashAppDetails.grantId) + && Objects.equals(this.onFileGrantId, cashAppDetails.onFileGrantId) + && Objects.equals(this.recurringDetailReference, cashAppDetails.recurringDetailReference) + && Objects.equals(this.requestId, cashAppDetails.requestId) + && Objects.equals(this.storedPaymentMethodId, cashAppDetails.storedPaymentMethodId) + && Objects.equals(this.subtype, cashAppDetails.subtype) + && Objects.equals(this.type, cashAppDetails.type); } @Override public int hashCode() { - return Objects.hash(cashtag, checkoutAttemptId, customerId, grantId, onFileGrantId, recurringDetailReference, requestId, storedPaymentMethodId, subtype, type); + return Objects.hash( + cashtag, + checkoutAttemptId, + customerId, + grantId, + onFileGrantId, + recurringDetailReference, + requestId, + storedPaymentMethodId, + subtype, + type); } @Override @@ -481,9 +501,13 @@ public String toString() { sb.append(" customerId: ").append(toIndentedString(customerId)).append("\n"); sb.append(" grantId: ").append(toIndentedString(grantId)).append("\n"); sb.append(" onFileGrantId: ").append(toIndentedString(onFileGrantId)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -491,8 +515,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -501,7 +524,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CashAppDetails given an JSON string * * @param jsonString JSON string @@ -511,11 +534,12 @@ private String toIndentedString(Object o) { public static CashAppDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CashAppDetails.class); } -/** - * Convert an instance of CashAppDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CashAppDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CellulantDetails.java b/src/main/java/com/adyen/model/checkout/CellulantDetails.java index 9abbd36e2..cd0758abd 100644 --- a/src/main/java/com/adyen/model/checkout/CellulantDetails.java +++ b/src/main/java/com/adyen/model/checkout/CellulantDetails.java @@ -2,37 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * CellulantDetails - */ +/** CellulantDetails */ @JsonPropertyOrder({ CellulantDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, CellulantDetails.JSON_PROPERTY_ISSUER, CellulantDetails.JSON_PROPERTY_TYPE }) - public class CellulantDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -40,11 +34,8 @@ public class CellulantDetails { public static final String JSON_PROPERTY_ISSUER = "issuer"; private String issuer; - /** - * **Cellulant** - */ + /** **Cellulant** */ public enum TypeEnum { - CELLULANT(String.valueOf("cellulant")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +43,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +64,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,8 +76,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CellulantDetails() { - } + public CellulantDetails() {} /** * The checkout attempt identifier. @@ -97,6 +91,7 @@ public CellulantDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -129,6 +124,7 @@ public CellulantDetails issuer(String issuer) { /** * The Cellulant issuer. + * * @return issuer The Cellulant issuer. */ @JsonProperty(JSON_PROPERTY_ISSUER) @@ -161,6 +157,7 @@ public CellulantDetails type(TypeEnum type) { /** * **Cellulant** + * * @return type **Cellulant** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +177,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this CellulantDetails object is equal to o. - */ + /** Return true if this CellulantDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +187,9 @@ public boolean equals(Object o) { return false; } CellulantDetails cellulantDetails = (CellulantDetails) o; - return Objects.equals(this.checkoutAttemptId, cellulantDetails.checkoutAttemptId) && - Objects.equals(this.issuer, cellulantDetails.issuer) && - Objects.equals(this.type, cellulantDetails.type); + return Objects.equals(this.checkoutAttemptId, cellulantDetails.checkoutAttemptId) + && Objects.equals(this.issuer, cellulantDetails.issuer) + && Objects.equals(this.type, cellulantDetails.type); } @Override @@ -214,8 +209,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,7 +218,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CellulantDetails given an JSON string * * @param jsonString JSON string @@ -234,11 +228,12 @@ private String toIndentedString(Object o) { public static CellulantDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CellulantDetails.class); } -/** - * Convert an instance of CellulantDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CellulantDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutAwaitAction.java b/src/main/java/com/adyen/model/checkout/CheckoutAwaitAction.java index 7f6997bb9..7844abc1d 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutAwaitAction.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutAwaitAction.java @@ -2,38 +2,32 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * CheckoutAwaitAction - */ +/** CheckoutAwaitAction */ @JsonPropertyOrder({ CheckoutAwaitAction.JSON_PROPERTY_PAYMENT_DATA, CheckoutAwaitAction.JSON_PROPERTY_PAYMENT_METHOD_TYPE, CheckoutAwaitAction.JSON_PROPERTY_TYPE, CheckoutAwaitAction.JSON_PROPERTY_URL }) - public class CheckoutAwaitAction { public static final String JSON_PROPERTY_PAYMENT_DATA = "paymentData"; private String paymentData; @@ -41,11 +35,8 @@ public class CheckoutAwaitAction { public static final String JSON_PROPERTY_PAYMENT_METHOD_TYPE = "paymentMethodType"; private String paymentMethodType; - /** - * **await** - */ + /** **await** */ public enum TypeEnum { - AWAIT(String.valueOf("await")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -53,7 +44,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -74,7 +65,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -85,8 +80,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_URL = "url"; private String url; - public CheckoutAwaitAction() { - } + public CheckoutAwaitAction() {} /** * Encoded payment data. @@ -101,6 +95,7 @@ public CheckoutAwaitAction paymentData(String paymentData) { /** * Encoded payment data. + * * @return paymentData Encoded payment data. */ @JsonProperty(JSON_PROPERTY_PAYMENT_DATA) @@ -133,6 +128,7 @@ public CheckoutAwaitAction paymentMethodType(String paymentMethodType) { /** * Specifies the payment method. + * * @return paymentMethodType Specifies the payment method. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_TYPE) @@ -165,6 +161,7 @@ public CheckoutAwaitAction type(TypeEnum type) { /** * **await** + * * @return type **await** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -197,6 +194,7 @@ public CheckoutAwaitAction url(String url) { /** * Specifies the URL to redirect to. + * * @return url Specifies the URL to redirect to. */ @JsonProperty(JSON_PROPERTY_URL) @@ -216,9 +214,7 @@ public void setUrl(String url) { this.url = url; } - /** - * Return true if this CheckoutAwaitAction object is equal to o. - */ + /** Return true if this CheckoutAwaitAction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -228,10 +224,10 @@ public boolean equals(Object o) { return false; } CheckoutAwaitAction checkoutAwaitAction = (CheckoutAwaitAction) o; - return Objects.equals(this.paymentData, checkoutAwaitAction.paymentData) && - Objects.equals(this.paymentMethodType, checkoutAwaitAction.paymentMethodType) && - Objects.equals(this.type, checkoutAwaitAction.type) && - Objects.equals(this.url, checkoutAwaitAction.url); + return Objects.equals(this.paymentData, checkoutAwaitAction.paymentData) + && Objects.equals(this.paymentMethodType, checkoutAwaitAction.paymentMethodType) + && Objects.equals(this.type, checkoutAwaitAction.type) + && Objects.equals(this.url, checkoutAwaitAction.url); } @Override @@ -252,8 +248,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -262,21 +257,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CheckoutAwaitAction given an JSON string * * @param jsonString JSON string * @return An instance of CheckoutAwaitAction - * @throws JsonProcessingException if the JSON string is invalid with respect to CheckoutAwaitAction + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CheckoutAwaitAction */ public static CheckoutAwaitAction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CheckoutAwaitAction.class); } -/** - * Convert an instance of CheckoutAwaitAction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CheckoutAwaitAction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutBankAccount.java b/src/main/java/com/adyen/model/checkout/CheckoutBankAccount.java index 85d7c4e27..35ecb5bde 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutBankAccount.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutBankAccount.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * CheckoutBankAccount - */ +/** CheckoutBankAccount */ @JsonPropertyOrder({ CheckoutBankAccount.JSON_PROPERTY_ACCOUNT_TYPE, CheckoutBankAccount.JSON_PROPERTY_BANK_ACCOUNT_NUMBER, @@ -39,13 +34,9 @@ CheckoutBankAccount.JSON_PROPERTY_OWNER_NAME, CheckoutBankAccount.JSON_PROPERTY_TAX_ID }) - public class CheckoutBankAccount { - /** - * The type of the bank account. - */ + /** The type of the bank account. */ public enum AccountTypeEnum { - BALANCE(String.valueOf("balance")), CHECKING(String.valueOf("checking")), @@ -65,7 +56,7 @@ public enum AccountTypeEnum { private String value; AccountTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -86,7 +77,11 @@ public static AccountTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AccountTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AccountTypeEnum.values())); + LOG.warning( + "AccountTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AccountTypeEnum.values())); return null; } } @@ -121,8 +116,7 @@ public static AccountTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TAX_ID = "taxId"; private String taxId; - public CheckoutBankAccount() { - } + public CheckoutBankAccount() {} /** * The type of the bank account. @@ -137,6 +131,7 @@ public CheckoutBankAccount accountType(AccountTypeEnum accountType) { /** * The type of the bank account. + * * @return accountType The type of the bank account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @@ -169,6 +164,7 @@ public CheckoutBankAccount bankAccountNumber(String bankAccountNumber) { /** * The bank account number (without separators). + * * @return bankAccountNumber The bank account number (without separators). */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_NUMBER) @@ -201,6 +197,7 @@ public CheckoutBankAccount bankCity(String bankCity) { /** * The bank city. + * * @return bankCity The bank city. */ @JsonProperty(JSON_PROPERTY_BANK_CITY) @@ -223,7 +220,8 @@ public void setBankCity(String bankCity) { /** * The location id of the bank. The field value is `nil` in most cases. * - * @param bankLocationId The location id of the bank. The field value is `nil` in most cases. + * @param bankLocationId The location id of the bank. The field value is `nil` in most + * cases. * @return the current {@code CheckoutBankAccount} instance, allowing for method chaining */ public CheckoutBankAccount bankLocationId(String bankLocationId) { @@ -233,7 +231,9 @@ public CheckoutBankAccount bankLocationId(String bankLocationId) { /** * The location id of the bank. The field value is `nil` in most cases. - * @return bankLocationId The location id of the bank. The field value is `nil` in most cases. + * + * @return bankLocationId The location id of the bank. The field value is `nil` in most + * cases. */ @JsonProperty(JSON_PROPERTY_BANK_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,7 +244,8 @@ public String getBankLocationId() { /** * The location id of the bank. The field value is `nil` in most cases. * - * @param bankLocationId The location id of the bank. The field value is `nil` in most cases. + * @param bankLocationId The location id of the bank. The field value is `nil` in most + * cases. */ @JsonProperty(JSON_PROPERTY_BANK_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -265,6 +266,7 @@ public CheckoutBankAccount bankName(String bankName) { /** * The name of the bank. + * * @return bankName The name of the bank. */ @JsonProperty(JSON_PROPERTY_BANK_NAME) @@ -285,9 +287,11 @@ public void setBankName(String bankName) { } /** - * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. + * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT + * address assigned to a bank. The field value is `nil` in most cases. * - * @param bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. + * @param bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the + * SWIFT address assigned to a bank. The field value is `nil` in most cases. * @return the current {@code CheckoutBankAccount} instance, allowing for method chaining */ public CheckoutBankAccount bic(String bic) { @@ -296,8 +300,11 @@ public CheckoutBankAccount bic(String bic) { } /** - * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. - * @return bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. + * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT + * address assigned to a bank. The field value is `nil` in most cases. + * + * @return bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the + * SWIFT address assigned to a bank. The field value is `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_BIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -306,9 +313,11 @@ public String getBic() { } /** - * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. + * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT + * address assigned to a bank. The field value is `nil` in most cases. * - * @param bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. + * @param bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the + * SWIFT address assigned to a bank. The field value is `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_BIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -317,9 +326,11 @@ public void setBic(String bic) { } /** - * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). + * Country code where the bank is located. A valid value is an ISO two-character country code + * (e.g. 'NL'). * - * @param countryCode Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). + * @param countryCode Country code where the bank is located. A valid value is an ISO + * two-character country code (e.g. 'NL'). * @return the current {@code CheckoutBankAccount} instance, allowing for method chaining */ public CheckoutBankAccount countryCode(String countryCode) { @@ -328,8 +339,11 @@ public CheckoutBankAccount countryCode(String countryCode) { } /** - * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). - * @return countryCode Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). + * Country code where the bank is located. A valid value is an ISO two-character country code + * (e.g. 'NL'). + * + * @return countryCode Country code where the bank is located. A valid value is an ISO + * two-character country code (e.g. 'NL'). */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -338,9 +352,11 @@ public String getCountryCode() { } /** - * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). + * Country code where the bank is located. A valid value is an ISO two-character country code + * (e.g. 'NL'). * - * @param countryCode Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). + * @param countryCode Country code where the bank is located. A valid value is an ISO + * two-character country code (e.g. 'NL'). */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -349,9 +365,11 @@ public void setCountryCode(String countryCode) { } /** - * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * The [International Bank Account + * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). * - * @param iban The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * @param iban The [International Bank Account + * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). * @return the current {@code CheckoutBankAccount} instance, allowing for method chaining */ public CheckoutBankAccount iban(String iban) { @@ -360,8 +378,11 @@ public CheckoutBankAccount iban(String iban) { } /** - * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). - * @return iban The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * The [International Bank Account + * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * + * @return iban The [International Bank Account + * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -370,9 +391,11 @@ public String getIban() { } /** - * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * The [International Bank Account + * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). * - * @param iban The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * @param iban The [International Bank Account + * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -381,9 +404,25 @@ public void setIban(String iban) { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we + * automatically replace some of them with corresponding Latin characters to meet the FATF + * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter + * Møller is converted to Peter Mller, because banks don't accept 'ø'. After + * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), + * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - + * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details + * don't match the required format, the response returns the error message: 203 'Invalid + * bank account holder name'. * - * @param ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * @param ownerName The name of the bank account holder. If you submit a name with non-Latin + * characters, we automatically replace some of them with corresponding Latin characters to + * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted + * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept + * 'ø'. After replacement, the ownerName must have at least three alphanumeric + * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, + * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - + * allowed. > If provided details don't match the required format, the response returns + * the error message: 203 'Invalid bank account holder name'. * @return the current {@code CheckoutBankAccount} instance, allowing for method chaining */ public CheckoutBankAccount ownerName(String ownerName) { @@ -392,8 +431,25 @@ public CheckoutBankAccount ownerName(String ownerName) { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. - * @return ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we + * automatically replace some of them with corresponding Latin characters to meet the FATF + * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter + * Møller is converted to Peter Mller, because banks don't accept 'ø'. After + * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), + * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - + * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details + * don't match the required format, the response returns the error message: 203 'Invalid + * bank account holder name'. + * + * @return ownerName The name of the bank account holder. If you submit a name with non-Latin + * characters, we automatically replace some of them with corresponding Latin characters to + * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted + * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept + * 'ø'. After replacement, the ownerName must have at least three alphanumeric + * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, + * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - + * allowed. > If provided details don't match the required format, the response returns + * the error message: 203 'Invalid bank account holder name'. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -402,9 +458,25 @@ public String getOwnerName() { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we + * automatically replace some of them with corresponding Latin characters to meet the FATF + * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter + * Møller is converted to Peter Mller, because banks don't accept 'ø'. After + * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), + * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - + * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details + * don't match the required format, the response returns the error message: 203 'Invalid + * bank account holder name'. * - * @param ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * @param ownerName The name of the bank account holder. If you submit a name with non-Latin + * characters, we automatically replace some of them with corresponding Latin characters to + * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted + * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept + * 'ø'. After replacement, the ownerName must have at least three alphanumeric + * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, + * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - + * allowed. > If provided details don't match the required format, the response returns + * the error message: 203 'Invalid bank account holder name'. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -425,6 +497,7 @@ public CheckoutBankAccount taxId(String taxId) { /** * The bank account holder's tax ID. + * * @return taxId The bank account holder's tax ID. */ @JsonProperty(JSON_PROPERTY_TAX_ID) @@ -444,9 +517,7 @@ public void setTaxId(String taxId) { this.taxId = taxId; } - /** - * Return true if this CheckoutBankAccount object is equal to o. - */ + /** Return true if this CheckoutBankAccount object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -456,21 +527,31 @@ public boolean equals(Object o) { return false; } CheckoutBankAccount checkoutBankAccount = (CheckoutBankAccount) o; - return Objects.equals(this.accountType, checkoutBankAccount.accountType) && - Objects.equals(this.bankAccountNumber, checkoutBankAccount.bankAccountNumber) && - Objects.equals(this.bankCity, checkoutBankAccount.bankCity) && - Objects.equals(this.bankLocationId, checkoutBankAccount.bankLocationId) && - Objects.equals(this.bankName, checkoutBankAccount.bankName) && - Objects.equals(this.bic, checkoutBankAccount.bic) && - Objects.equals(this.countryCode, checkoutBankAccount.countryCode) && - Objects.equals(this.iban, checkoutBankAccount.iban) && - Objects.equals(this.ownerName, checkoutBankAccount.ownerName) && - Objects.equals(this.taxId, checkoutBankAccount.taxId); + return Objects.equals(this.accountType, checkoutBankAccount.accountType) + && Objects.equals(this.bankAccountNumber, checkoutBankAccount.bankAccountNumber) + && Objects.equals(this.bankCity, checkoutBankAccount.bankCity) + && Objects.equals(this.bankLocationId, checkoutBankAccount.bankLocationId) + && Objects.equals(this.bankName, checkoutBankAccount.bankName) + && Objects.equals(this.bic, checkoutBankAccount.bic) + && Objects.equals(this.countryCode, checkoutBankAccount.countryCode) + && Objects.equals(this.iban, checkoutBankAccount.iban) + && Objects.equals(this.ownerName, checkoutBankAccount.ownerName) + && Objects.equals(this.taxId, checkoutBankAccount.taxId); } @Override public int hashCode() { - return Objects.hash(accountType, bankAccountNumber, bankCity, bankLocationId, bankName, bic, countryCode, iban, ownerName, taxId); + return Objects.hash( + accountType, + bankAccountNumber, + bankCity, + bankLocationId, + bankName, + bic, + countryCode, + iban, + ownerName, + taxId); } @Override @@ -492,8 +573,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -502,21 +582,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CheckoutBankAccount given an JSON string * * @param jsonString JSON string * @return An instance of CheckoutBankAccount - * @throws JsonProcessingException if the JSON string is invalid with respect to CheckoutBankAccount + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CheckoutBankAccount */ public static CheckoutBankAccount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CheckoutBankAccount.class); } -/** - * Convert an instance of CheckoutBankAccount to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CheckoutBankAccount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutBankTransferAction.java b/src/main/java/com/adyen/model/checkout/CheckoutBankTransferAction.java index 7102f9404..e856c2ec2 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutBankTransferAction.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutBankTransferAction.java @@ -2,32 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Amount; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * CheckoutBankTransferAction - */ +/** CheckoutBankTransferAction */ @JsonPropertyOrder({ CheckoutBankTransferAction.JSON_PROPERTY_ACCOUNT_NUMBER, CheckoutBankTransferAction.JSON_PROPERTY_BENEFICIARY, @@ -43,7 +37,6 @@ CheckoutBankTransferAction.JSON_PROPERTY_TYPE, CheckoutBankTransferAction.JSON_PROPERTY_URL }) - public class CheckoutBankTransferAction { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -78,11 +71,8 @@ public class CheckoutBankTransferAction { public static final String JSON_PROPERTY_TOTAL_AMOUNT = "totalAmount"; private Amount totalAmount; - /** - * The type of the action. - */ + /** The type of the action. */ public enum TypeEnum { - BANKTRANSFER(String.valueOf("bankTransfer")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -90,7 +80,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -111,7 +101,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -122,8 +116,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_URL = "url"; private String url; - public CheckoutBankTransferAction() { - } + public CheckoutBankTransferAction() {} /** * The account number of the bank transfer. @@ -138,6 +131,7 @@ public CheckoutBankTransferAction accountNumber(String accountNumber) { /** * The account number of the bank transfer. + * * @return accountNumber The account number of the bank transfer. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -170,6 +164,7 @@ public CheckoutBankTransferAction beneficiary(String beneficiary) { /** * The name of the account holder. + * * @return beneficiary The name of the account holder. */ @JsonProperty(JSON_PROPERTY_BENEFICIARY) @@ -202,6 +197,7 @@ public CheckoutBankTransferAction bic(String bic) { /** * The BIC of the IBAN. + * * @return bic The BIC of the IBAN. */ @JsonProperty(JSON_PROPERTY_BIC) @@ -234,6 +230,7 @@ public CheckoutBankTransferAction downloadUrl(String downloadUrl) { /** * The url to download payment details with. + * * @return downloadUrl The url to download payment details with. */ @JsonProperty(JSON_PROPERTY_DOWNLOAD_URL) @@ -266,6 +263,7 @@ public CheckoutBankTransferAction iban(String iban) { /** * The IBAN of the bank transfer. + * * @return iban The IBAN of the bank transfer. */ @JsonProperty(JSON_PROPERTY_IBAN) @@ -298,6 +296,7 @@ public CheckoutBankTransferAction paymentMethodType(String paymentMethodType) { /** * Specifies the payment method. + * * @return paymentMethodType Specifies the payment method. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_TYPE) @@ -330,6 +329,7 @@ public CheckoutBankTransferAction reference(String reference) { /** * The transfer reference. + * * @return reference The transfer reference. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -362,6 +362,7 @@ public CheckoutBankTransferAction routingNumber(String routingNumber) { /** * The routing number of the bank transfer. + * * @return routingNumber The routing number of the bank transfer. */ @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @@ -394,6 +395,7 @@ public CheckoutBankTransferAction shopperEmail(String shopperEmail) { /** * The e-mail of the shopper, included if an e-mail was sent to the shopper. + * * @return shopperEmail The e-mail of the shopper, included if an e-mail was sent to the shopper. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -426,6 +428,7 @@ public CheckoutBankTransferAction sortCode(String sortCode) { /** * The sort code of the bank transfer. + * * @return sortCode The sort code of the bank transfer. */ @JsonProperty(JSON_PROPERTY_SORT_CODE) @@ -448,7 +451,7 @@ public void setSortCode(String sortCode) { /** * totalAmount * - * @param totalAmount + * @param totalAmount * @return the current {@code CheckoutBankTransferAction} instance, allowing for method chaining */ public CheckoutBankTransferAction totalAmount(Amount totalAmount) { @@ -458,7 +461,8 @@ public CheckoutBankTransferAction totalAmount(Amount totalAmount) { /** * Get totalAmount - * @return totalAmount + * + * @return totalAmount */ @JsonProperty(JSON_PROPERTY_TOTAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -469,7 +473,7 @@ public Amount getTotalAmount() { /** * totalAmount * - * @param totalAmount + * @param totalAmount */ @JsonProperty(JSON_PROPERTY_TOTAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -490,6 +494,7 @@ public CheckoutBankTransferAction type(TypeEnum type) { /** * The type of the action. + * * @return type The type of the action. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -522,6 +527,7 @@ public CheckoutBankTransferAction url(String url) { /** * Specifies the URL to redirect to. + * * @return url Specifies the URL to redirect to. */ @JsonProperty(JSON_PROPERTY_URL) @@ -541,9 +547,7 @@ public void setUrl(String url) { this.url = url; } - /** - * Return true if this CheckoutBankTransferAction object is equal to o. - */ + /** Return true if this CheckoutBankTransferAction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -553,24 +557,37 @@ public boolean equals(Object o) { return false; } CheckoutBankTransferAction checkoutBankTransferAction = (CheckoutBankTransferAction) o; - return Objects.equals(this.accountNumber, checkoutBankTransferAction.accountNumber) && - Objects.equals(this.beneficiary, checkoutBankTransferAction.beneficiary) && - Objects.equals(this.bic, checkoutBankTransferAction.bic) && - Objects.equals(this.downloadUrl, checkoutBankTransferAction.downloadUrl) && - Objects.equals(this.iban, checkoutBankTransferAction.iban) && - Objects.equals(this.paymentMethodType, checkoutBankTransferAction.paymentMethodType) && - Objects.equals(this.reference, checkoutBankTransferAction.reference) && - Objects.equals(this.routingNumber, checkoutBankTransferAction.routingNumber) && - Objects.equals(this.shopperEmail, checkoutBankTransferAction.shopperEmail) && - Objects.equals(this.sortCode, checkoutBankTransferAction.sortCode) && - Objects.equals(this.totalAmount, checkoutBankTransferAction.totalAmount) && - Objects.equals(this.type, checkoutBankTransferAction.type) && - Objects.equals(this.url, checkoutBankTransferAction.url); + return Objects.equals(this.accountNumber, checkoutBankTransferAction.accountNumber) + && Objects.equals(this.beneficiary, checkoutBankTransferAction.beneficiary) + && Objects.equals(this.bic, checkoutBankTransferAction.bic) + && Objects.equals(this.downloadUrl, checkoutBankTransferAction.downloadUrl) + && Objects.equals(this.iban, checkoutBankTransferAction.iban) + && Objects.equals(this.paymentMethodType, checkoutBankTransferAction.paymentMethodType) + && Objects.equals(this.reference, checkoutBankTransferAction.reference) + && Objects.equals(this.routingNumber, checkoutBankTransferAction.routingNumber) + && Objects.equals(this.shopperEmail, checkoutBankTransferAction.shopperEmail) + && Objects.equals(this.sortCode, checkoutBankTransferAction.sortCode) + && Objects.equals(this.totalAmount, checkoutBankTransferAction.totalAmount) + && Objects.equals(this.type, checkoutBankTransferAction.type) + && Objects.equals(this.url, checkoutBankTransferAction.url); } @Override public int hashCode() { - return Objects.hash(accountNumber, beneficiary, bic, downloadUrl, iban, paymentMethodType, reference, routingNumber, shopperEmail, sortCode, totalAmount, type, url); + return Objects.hash( + accountNumber, + beneficiary, + bic, + downloadUrl, + iban, + paymentMethodType, + reference, + routingNumber, + shopperEmail, + sortCode, + totalAmount, + type, + url); } @Override @@ -595,8 +612,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -605,21 +621,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CheckoutBankTransferAction given an JSON string * * @param jsonString JSON string * @return An instance of CheckoutBankTransferAction - * @throws JsonProcessingException if the JSON string is invalid with respect to CheckoutBankTransferAction + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CheckoutBankTransferAction */ - public static CheckoutBankTransferAction fromJson(String jsonString) throws JsonProcessingException { + public static CheckoutBankTransferAction fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CheckoutBankTransferAction.class); } -/** - * Convert an instance of CheckoutBankTransferAction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CheckoutBankTransferAction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutDelegatedAuthenticationAction.java b/src/main/java/com/adyen/model/checkout/CheckoutDelegatedAuthenticationAction.java index 0c7972988..3ac65b281 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutDelegatedAuthenticationAction.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutDelegatedAuthenticationAction.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * CheckoutDelegatedAuthenticationAction - */ +/** CheckoutDelegatedAuthenticationAction */ @JsonPropertyOrder({ CheckoutDelegatedAuthenticationAction.JSON_PROPERTY_AUTHORISATION_TOKEN, CheckoutDelegatedAuthenticationAction.JSON_PROPERTY_PAYMENT_DATA, @@ -35,7 +30,6 @@ CheckoutDelegatedAuthenticationAction.JSON_PROPERTY_TYPE, CheckoutDelegatedAuthenticationAction.JSON_PROPERTY_URL }) - public class CheckoutDelegatedAuthenticationAction { public static final String JSON_PROPERTY_AUTHORISATION_TOKEN = "authorisationToken"; private String authorisationToken; @@ -49,11 +43,8 @@ public class CheckoutDelegatedAuthenticationAction { public static final String JSON_PROPERTY_TOKEN = "token"; private String token; - /** - * **delegatedAuthentication** - */ + /** **delegatedAuthentication** */ public enum TypeEnum { - DELEGATEDAUTHENTICATION(String.valueOf("delegatedAuthentication")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -61,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -82,7 +73,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -93,14 +88,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_URL = "url"; private String url; - public CheckoutDelegatedAuthenticationAction() { - } + public CheckoutDelegatedAuthenticationAction() {} /** * A token needed to authorise a payment. * * @param authorisationToken A token needed to authorise a payment. - * @return the current {@code CheckoutDelegatedAuthenticationAction} instance, allowing for method chaining + * @return the current {@code CheckoutDelegatedAuthenticationAction} instance, allowing for method + * chaining */ public CheckoutDelegatedAuthenticationAction authorisationToken(String authorisationToken) { this.authorisationToken = authorisationToken; @@ -109,6 +104,7 @@ public CheckoutDelegatedAuthenticationAction authorisationToken(String authorisa /** * A token needed to authorise a payment. + * * @return authorisationToken A token needed to authorise a payment. */ @JsonProperty(JSON_PROPERTY_AUTHORISATION_TOKEN) @@ -132,7 +128,8 @@ public void setAuthorisationToken(String authorisationToken) { * Encoded payment data. * * @param paymentData Encoded payment data. - * @return the current {@code CheckoutDelegatedAuthenticationAction} instance, allowing for method chaining + * @return the current {@code CheckoutDelegatedAuthenticationAction} instance, allowing for method + * chaining */ public CheckoutDelegatedAuthenticationAction paymentData(String paymentData) { this.paymentData = paymentData; @@ -141,6 +138,7 @@ public CheckoutDelegatedAuthenticationAction paymentData(String paymentData) { /** * Encoded payment data. + * * @return paymentData Encoded payment data. */ @JsonProperty(JSON_PROPERTY_PAYMENT_DATA) @@ -164,7 +162,8 @@ public void setPaymentData(String paymentData) { * Specifies the payment method. * * @param paymentMethodType Specifies the payment method. - * @return the current {@code CheckoutDelegatedAuthenticationAction} instance, allowing for method chaining + * @return the current {@code CheckoutDelegatedAuthenticationAction} instance, allowing for method + * chaining */ public CheckoutDelegatedAuthenticationAction paymentMethodType(String paymentMethodType) { this.paymentMethodType = paymentMethodType; @@ -173,6 +172,7 @@ public CheckoutDelegatedAuthenticationAction paymentMethodType(String paymentMet /** * Specifies the payment method. + * * @return paymentMethodType Specifies the payment method. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_TYPE) @@ -196,7 +196,8 @@ public void setPaymentMethodType(String paymentMethodType) { * A token to pass to the delegatedAuthentication component. * * @param token A token to pass to the delegatedAuthentication component. - * @return the current {@code CheckoutDelegatedAuthenticationAction} instance, allowing for method chaining + * @return the current {@code CheckoutDelegatedAuthenticationAction} instance, allowing for method + * chaining */ public CheckoutDelegatedAuthenticationAction token(String token) { this.token = token; @@ -205,6 +206,7 @@ public CheckoutDelegatedAuthenticationAction token(String token) { /** * A token to pass to the delegatedAuthentication component. + * * @return token A token to pass to the delegatedAuthentication component. */ @JsonProperty(JSON_PROPERTY_TOKEN) @@ -228,7 +230,8 @@ public void setToken(String token) { * **delegatedAuthentication** * * @param type **delegatedAuthentication** - * @return the current {@code CheckoutDelegatedAuthenticationAction} instance, allowing for method chaining + * @return the current {@code CheckoutDelegatedAuthenticationAction} instance, allowing for method + * chaining */ public CheckoutDelegatedAuthenticationAction type(TypeEnum type) { this.type = type; @@ -237,6 +240,7 @@ public CheckoutDelegatedAuthenticationAction type(TypeEnum type) { /** * **delegatedAuthentication** + * * @return type **delegatedAuthentication** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -260,7 +264,8 @@ public void setType(TypeEnum type) { * Specifies the URL to redirect to. * * @param url Specifies the URL to redirect to. - * @return the current {@code CheckoutDelegatedAuthenticationAction} instance, allowing for method chaining + * @return the current {@code CheckoutDelegatedAuthenticationAction} instance, allowing for method + * chaining */ public CheckoutDelegatedAuthenticationAction url(String url) { this.url = url; @@ -269,6 +274,7 @@ public CheckoutDelegatedAuthenticationAction url(String url) { /** * Specifies the URL to redirect to. + * * @return url Specifies the URL to redirect to. */ @JsonProperty(JSON_PROPERTY_URL) @@ -288,9 +294,7 @@ public void setUrl(String url) { this.url = url; } - /** - * Return true if this CheckoutDelegatedAuthenticationAction object is equal to o. - */ + /** Return true if this CheckoutDelegatedAuthenticationAction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -299,13 +303,16 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CheckoutDelegatedAuthenticationAction checkoutDelegatedAuthenticationAction = (CheckoutDelegatedAuthenticationAction) o; - return Objects.equals(this.authorisationToken, checkoutDelegatedAuthenticationAction.authorisationToken) && - Objects.equals(this.paymentData, checkoutDelegatedAuthenticationAction.paymentData) && - Objects.equals(this.paymentMethodType, checkoutDelegatedAuthenticationAction.paymentMethodType) && - Objects.equals(this.token, checkoutDelegatedAuthenticationAction.token) && - Objects.equals(this.type, checkoutDelegatedAuthenticationAction.type) && - Objects.equals(this.url, checkoutDelegatedAuthenticationAction.url); + CheckoutDelegatedAuthenticationAction checkoutDelegatedAuthenticationAction = + (CheckoutDelegatedAuthenticationAction) o; + return Objects.equals( + this.authorisationToken, checkoutDelegatedAuthenticationAction.authorisationToken) + && Objects.equals(this.paymentData, checkoutDelegatedAuthenticationAction.paymentData) + && Objects.equals( + this.paymentMethodType, checkoutDelegatedAuthenticationAction.paymentMethodType) + && Objects.equals(this.token, checkoutDelegatedAuthenticationAction.token) + && Objects.equals(this.type, checkoutDelegatedAuthenticationAction.type) + && Objects.equals(this.url, checkoutDelegatedAuthenticationAction.url); } @Override @@ -328,8 +335,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -338,21 +344,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CheckoutDelegatedAuthenticationAction given an JSON string * * @param jsonString JSON string * @return An instance of CheckoutDelegatedAuthenticationAction - * @throws JsonProcessingException if the JSON string is invalid with respect to CheckoutDelegatedAuthenticationAction + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CheckoutDelegatedAuthenticationAction */ - public static CheckoutDelegatedAuthenticationAction fromJson(String jsonString) throws JsonProcessingException { + public static CheckoutDelegatedAuthenticationAction fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CheckoutDelegatedAuthenticationAction.class); } -/** - * Convert an instance of CheckoutDelegatedAuthenticationAction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CheckoutDelegatedAuthenticationAction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutNativeRedirectAction.java b/src/main/java/com/adyen/model/checkout/CheckoutNativeRedirectAction.java index f8e11bad6..5d4a6b3c1 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutNativeRedirectAction.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutNativeRedirectAction.java @@ -2,33 +2,28 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * CheckoutNativeRedirectAction - */ +/** CheckoutNativeRedirectAction */ @JsonPropertyOrder({ CheckoutNativeRedirectAction.JSON_PROPERTY_DATA, CheckoutNativeRedirectAction.JSON_PROPERTY_METHOD, @@ -37,7 +32,6 @@ CheckoutNativeRedirectAction.JSON_PROPERTY_TYPE, CheckoutNativeRedirectAction.JSON_PROPERTY_URL }) - public class CheckoutNativeRedirectAction { public static final String JSON_PROPERTY_DATA = "data"; private Map data; @@ -51,11 +45,8 @@ public class CheckoutNativeRedirectAction { public static final String JSON_PROPERTY_PAYMENT_METHOD_TYPE = "paymentMethodType"; private String paymentMethodType; - /** - * **nativeRedirect** - */ + /** **nativeRedirect** */ public enum TypeEnum { - NATIVEREDIRECT(String.valueOf("nativeRedirect")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -63,7 +54,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -84,7 +75,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -95,13 +90,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_URL = "url"; private String url; - public CheckoutNativeRedirectAction() { - } + public CheckoutNativeRedirectAction() {} /** * When the redirect URL must be accessed via POST, use this data to post to the redirect URL. * - * @param data When the redirect URL must be accessed via POST, use this data to post to the redirect URL. + * @param data When the redirect URL must be accessed via POST, use this data to post to the + * redirect URL. * @return the current {@code CheckoutNativeRedirectAction} instance, allowing for method chaining */ public CheckoutNativeRedirectAction data(Map data) { @@ -119,7 +114,9 @@ public CheckoutNativeRedirectAction putDataItem(String key, String dataItem) { /** * When the redirect URL must be accessed via POST, use this data to post to the redirect URL. - * @return data When the redirect URL must be accessed via POST, use this data to post to the redirect URL. + * + * @return data When the redirect URL must be accessed via POST, use this data to post to the + * redirect URL. */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -130,7 +127,8 @@ public Map getData() { /** * When the redirect URL must be accessed via POST, use this data to post to the redirect URL. * - * @param data When the redirect URL must be accessed via POST, use this data to post to the redirect URL. + * @param data When the redirect URL must be accessed via POST, use this data to post to the + * redirect URL. */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,6 +149,7 @@ public CheckoutNativeRedirectAction method(String method) { /** * Specifies the HTTP method, for example GET or POST. + * * @return method Specifies the HTTP method, for example GET or POST. */ @JsonProperty(JSON_PROPERTY_METHOD) @@ -171,9 +170,11 @@ public void setMethod(String method) { } /** - * Native SDK's redirect data containing the direct issuer link and state data that must be submitted to the /v1/nativeRedirect/redirectResult. + * Native SDK's redirect data containing the direct issuer link and state data that must be + * submitted to the /v1/nativeRedirect/redirectResult. * - * @param nativeRedirectData Native SDK's redirect data containing the direct issuer link and state data that must be submitted to the /v1/nativeRedirect/redirectResult. + * @param nativeRedirectData Native SDK's redirect data containing the direct issuer link and + * state data that must be submitted to the /v1/nativeRedirect/redirectResult. * @return the current {@code CheckoutNativeRedirectAction} instance, allowing for method chaining */ public CheckoutNativeRedirectAction nativeRedirectData(String nativeRedirectData) { @@ -182,8 +183,11 @@ public CheckoutNativeRedirectAction nativeRedirectData(String nativeRedirectData } /** - * Native SDK's redirect data containing the direct issuer link and state data that must be submitted to the /v1/nativeRedirect/redirectResult. - * @return nativeRedirectData Native SDK's redirect data containing the direct issuer link and state data that must be submitted to the /v1/nativeRedirect/redirectResult. + * Native SDK's redirect data containing the direct issuer link and state data that must be + * submitted to the /v1/nativeRedirect/redirectResult. + * + * @return nativeRedirectData Native SDK's redirect data containing the direct issuer link and + * state data that must be submitted to the /v1/nativeRedirect/redirectResult. */ @JsonProperty(JSON_PROPERTY_NATIVE_REDIRECT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,9 +196,11 @@ public String getNativeRedirectData() { } /** - * Native SDK's redirect data containing the direct issuer link and state data that must be submitted to the /v1/nativeRedirect/redirectResult. + * Native SDK's redirect data containing the direct issuer link and state data that must be + * submitted to the /v1/nativeRedirect/redirectResult. * - * @param nativeRedirectData Native SDK's redirect data containing the direct issuer link and state data that must be submitted to the /v1/nativeRedirect/redirectResult. + * @param nativeRedirectData Native SDK's redirect data containing the direct issuer link and + * state data that must be submitted to the /v1/nativeRedirect/redirectResult. */ @JsonProperty(JSON_PROPERTY_NATIVE_REDIRECT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -215,6 +221,7 @@ public CheckoutNativeRedirectAction paymentMethodType(String paymentMethodType) /** * Specifies the payment method. + * * @return paymentMethodType Specifies the payment method. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_TYPE) @@ -247,6 +254,7 @@ public CheckoutNativeRedirectAction type(TypeEnum type) { /** * **nativeRedirect** + * * @return type **nativeRedirect** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -279,6 +287,7 @@ public CheckoutNativeRedirectAction url(String url) { /** * Specifies the URL to redirect to. + * * @return url Specifies the URL to redirect to. */ @JsonProperty(JSON_PROPERTY_URL) @@ -298,9 +307,7 @@ public void setUrl(String url) { this.url = url; } - /** - * Return true if this CheckoutNativeRedirectAction object is equal to o. - */ + /** Return true if this CheckoutNativeRedirectAction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -310,12 +317,12 @@ public boolean equals(Object o) { return false; } CheckoutNativeRedirectAction checkoutNativeRedirectAction = (CheckoutNativeRedirectAction) o; - return Objects.equals(this.data, checkoutNativeRedirectAction.data) && - Objects.equals(this.method, checkoutNativeRedirectAction.method) && - Objects.equals(this.nativeRedirectData, checkoutNativeRedirectAction.nativeRedirectData) && - Objects.equals(this.paymentMethodType, checkoutNativeRedirectAction.paymentMethodType) && - Objects.equals(this.type, checkoutNativeRedirectAction.type) && - Objects.equals(this.url, checkoutNativeRedirectAction.url); + return Objects.equals(this.data, checkoutNativeRedirectAction.data) + && Objects.equals(this.method, checkoutNativeRedirectAction.method) + && Objects.equals(this.nativeRedirectData, checkoutNativeRedirectAction.nativeRedirectData) + && Objects.equals(this.paymentMethodType, checkoutNativeRedirectAction.paymentMethodType) + && Objects.equals(this.type, checkoutNativeRedirectAction.type) + && Objects.equals(this.url, checkoutNativeRedirectAction.url); } @Override @@ -338,8 +345,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -348,21 +354,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CheckoutNativeRedirectAction given an JSON string * * @param jsonString JSON string * @return An instance of CheckoutNativeRedirectAction - * @throws JsonProcessingException if the JSON string is invalid with respect to CheckoutNativeRedirectAction + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CheckoutNativeRedirectAction */ - public static CheckoutNativeRedirectAction fromJson(String jsonString) throws JsonProcessingException { + public static CheckoutNativeRedirectAction fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CheckoutNativeRedirectAction.class); } -/** - * Convert an instance of CheckoutNativeRedirectAction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CheckoutNativeRedirectAction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutOrderResponse.java b/src/main/java/com/adyen/model/checkout/CheckoutOrderResponse.java index effb015a9..8d75c9cf3 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutOrderResponse.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutOrderResponse.java @@ -2,32 +2,22 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * CheckoutOrderResponse - */ +/** CheckoutOrderResponse */ @JsonPropertyOrder({ CheckoutOrderResponse.JSON_PROPERTY_AMOUNT, CheckoutOrderResponse.JSON_PROPERTY_EXPIRES_AT, @@ -36,7 +26,6 @@ CheckoutOrderResponse.JSON_PROPERTY_REFERENCE, CheckoutOrderResponse.JSON_PROPERTY_REMAINING_AMOUNT }) - public class CheckoutOrderResponse { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -56,13 +45,12 @@ public class CheckoutOrderResponse { public static final String JSON_PROPERTY_REMAINING_AMOUNT = "remainingAmount"; private Amount remainingAmount; - public CheckoutOrderResponse() { - } + public CheckoutOrderResponse() {} /** * amount * - * @param amount + * @param amount * @return the current {@code CheckoutOrderResponse} instance, allowing for method chaining */ public CheckoutOrderResponse amount(Amount amount) { @@ -72,7 +60,8 @@ public CheckoutOrderResponse amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,7 +72,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,6 +93,7 @@ public CheckoutOrderResponse expiresAt(String expiresAt) { /** * The expiry date for the order. + * * @return expiresAt The expiry date for the order. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @@ -136,6 +126,7 @@ public CheckoutOrderResponse orderData(String orderData) { /** * The encrypted order data. + * * @return orderData The encrypted order data. */ @JsonProperty(JSON_PROPERTY_ORDER_DATA) @@ -168,6 +159,7 @@ public CheckoutOrderResponse pspReference(String pspReference) { /** * The `pspReference` that belongs to the order. + * * @return pspReference The `pspReference` that belongs to the order. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -200,6 +192,7 @@ public CheckoutOrderResponse reference(String reference) { /** * The merchant reference for the order. + * * @return reference The merchant reference for the order. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -222,7 +215,7 @@ public void setReference(String reference) { /** * remainingAmount * - * @param remainingAmount + * @param remainingAmount * @return the current {@code CheckoutOrderResponse} instance, allowing for method chaining */ public CheckoutOrderResponse remainingAmount(Amount remainingAmount) { @@ -232,7 +225,8 @@ public CheckoutOrderResponse remainingAmount(Amount remainingAmount) { /** * Get remainingAmount - * @return remainingAmount + * + * @return remainingAmount */ @JsonProperty(JSON_PROPERTY_REMAINING_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -243,7 +237,7 @@ public Amount getRemainingAmount() { /** * remainingAmount * - * @param remainingAmount + * @param remainingAmount */ @JsonProperty(JSON_PROPERTY_REMAINING_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -251,9 +245,7 @@ public void setRemainingAmount(Amount remainingAmount) { this.remainingAmount = remainingAmount; } - /** - * Return true if this CheckoutOrderResponse object is equal to o. - */ + /** Return true if this CheckoutOrderResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -263,12 +255,12 @@ public boolean equals(Object o) { return false; } CheckoutOrderResponse checkoutOrderResponse = (CheckoutOrderResponse) o; - return Objects.equals(this.amount, checkoutOrderResponse.amount) && - Objects.equals(this.expiresAt, checkoutOrderResponse.expiresAt) && - Objects.equals(this.orderData, checkoutOrderResponse.orderData) && - Objects.equals(this.pspReference, checkoutOrderResponse.pspReference) && - Objects.equals(this.reference, checkoutOrderResponse.reference) && - Objects.equals(this.remainingAmount, checkoutOrderResponse.remainingAmount); + return Objects.equals(this.amount, checkoutOrderResponse.amount) + && Objects.equals(this.expiresAt, checkoutOrderResponse.expiresAt) + && Objects.equals(this.orderData, checkoutOrderResponse.orderData) + && Objects.equals(this.pspReference, checkoutOrderResponse.pspReference) + && Objects.equals(this.reference, checkoutOrderResponse.reference) + && Objects.equals(this.remainingAmount, checkoutOrderResponse.remainingAmount); } @Override @@ -291,8 +283,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -301,21 +292,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CheckoutOrderResponse given an JSON string * * @param jsonString JSON string * @return An instance of CheckoutOrderResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to CheckoutOrderResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CheckoutOrderResponse */ public static CheckoutOrderResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CheckoutOrderResponse.class); } -/** - * Convert an instance of CheckoutOrderResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CheckoutOrderResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutPaymentMethod.java b/src/main/java/com/adyen/model/checkout/CheckoutPaymentMethod.java index 4cef9f89f..a0d2fe2ae 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutPaymentMethod.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutPaymentMethod.java @@ -2,96 +2,19 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.AchDetails; -import com.adyen.model.checkout.AffirmDetails; -import com.adyen.model.checkout.AfterpayDetails; -import com.adyen.model.checkout.AmazonPayDetails; -import com.adyen.model.checkout.AncvDetails; -import com.adyen.model.checkout.AndroidPayDetails; -import com.adyen.model.checkout.ApplePayDetails; -import com.adyen.model.checkout.BacsDirectDebitDetails; -import com.adyen.model.checkout.BillDeskDetails; -import com.adyen.model.checkout.BlikDetails; -import com.adyen.model.checkout.CardDetails; -import com.adyen.model.checkout.CashAppDetails; -import com.adyen.model.checkout.CellulantDetails; -import com.adyen.model.checkout.DokuDetails; -import com.adyen.model.checkout.DragonpayDetails; -import com.adyen.model.checkout.EBankingFinlandDetails; -import com.adyen.model.checkout.EcontextVoucherDetails; -import com.adyen.model.checkout.EftDetails; -import com.adyen.model.checkout.FastlaneDetails; -import com.adyen.model.checkout.GenericIssuerPaymentMethodDetails; -import com.adyen.model.checkout.GooglePayDetails; -import com.adyen.model.checkout.IdealDetails; -import com.adyen.model.checkout.KlarnaDetails; -import com.adyen.model.checkout.MasterpassDetails; -import com.adyen.model.checkout.MbwayDetails; -import com.adyen.model.checkout.MobilePayDetails; -import com.adyen.model.checkout.MolPayDetails; -import com.adyen.model.checkout.OpenInvoiceDetails; -import com.adyen.model.checkout.PayByBankAISDirectDebitDetails; -import com.adyen.model.checkout.PayByBankDetails; -import com.adyen.model.checkout.PayPalDetails; -import com.adyen.model.checkout.PayPayDetails; -import com.adyen.model.checkout.PayToDetails; -import com.adyen.model.checkout.PayUUpiDetails; -import com.adyen.model.checkout.PayWithGoogleDetails; -import com.adyen.model.checkout.PaymentDetails; -import com.adyen.model.checkout.PixDetails; -import com.adyen.model.checkout.PixRecurring; -import com.adyen.model.checkout.PseDetails; -import com.adyen.model.checkout.RakutenPayDetails; -import com.adyen.model.checkout.RatepayDetails; -import com.adyen.model.checkout.RivertyDetails; -import com.adyen.model.checkout.SamsungPayDetails; -import com.adyen.model.checkout.SepaDirectDebitDetails; -import com.adyen.model.checkout.StoredPaymentMethodDetails; -import com.adyen.model.checkout.TwintDetails; -import com.adyen.model.checkout.UpiCollectDetails; -import com.adyen.model.checkout.UpiIntentDetails; -import com.adyen.model.checkout.VippsDetails; -import com.adyen.model.checkout.VisaCheckoutDetails; -import com.adyen.model.checkout.WeChatPayDetails; -import com.adyen.model.checkout.WeChatPayMiniProgramDetails; -import com.adyen.model.checkout.ZipDetails; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -import com.fasterxml.jackson.core.type.TypeReference; - -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.core.Response; -import java.io.IOException; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; - import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -101,2564 +24,2669 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; - +import jakarta.ws.rs.core.GenericType; +import java.io.IOException; +import java.util.*; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.logging.Level; +import java.util.logging.Logger; @JsonDeserialize(using = CheckoutPaymentMethod.CheckoutPaymentMethodDeserializer.class) @JsonSerialize(using = CheckoutPaymentMethod.CheckoutPaymentMethodSerializer.class) public class CheckoutPaymentMethod extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CheckoutPaymentMethod.class.getName()); - - public static class CheckoutPaymentMethodSerializer extends StdSerializer { - public CheckoutPaymentMethodSerializer(Class t) { - super(t); - } - - public CheckoutPaymentMethodSerializer() { - this(null); - } - - @Override - public void serialize(CheckoutPaymentMethod value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class CheckoutPaymentMethodDeserializer extends StdDeserializer { - public CheckoutPaymentMethodDeserializer() { - this(CheckoutPaymentMethod.class); - } - - public CheckoutPaymentMethodDeserializer(Class vc) { - super(vc); - } - - @Override - public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize AchDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(AchDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AchDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AchDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AchDetails'", e); - } - - // deserialize AffirmDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(AffirmDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AffirmDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AffirmDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AffirmDetails'", e); - } - - // deserialize AfterpayDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(AfterpayDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AfterpayDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AfterpayDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AfterpayDetails'", e); - } - - // deserialize AmazonPayDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(AmazonPayDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AmazonPayDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AmazonPayDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AmazonPayDetails'", e); - } - - // deserialize AncvDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(AncvDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AncvDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AncvDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AncvDetails'", e); - } - - // deserialize AndroidPayDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(AndroidPayDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AndroidPayDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AndroidPayDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AndroidPayDetails'", e); - } - - // deserialize ApplePayDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(ApplePayDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(ApplePayDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'ApplePayDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'ApplePayDetails'", e); - } - - // deserialize BacsDirectDebitDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(BacsDirectDebitDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(BacsDirectDebitDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'BacsDirectDebitDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'BacsDirectDebitDetails'", e); - } - - // deserialize BillDeskDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(BillDeskDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(BillDeskDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'BillDeskDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'BillDeskDetails'", e); - } - - // deserialize BlikDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(BlikDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(BlikDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'BlikDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'BlikDetails'", e); - } - - // deserialize CardDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(CardDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CardDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CardDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CardDetails'", e); - } - - // deserialize CashAppDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(CashAppDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CashAppDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CashAppDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CashAppDetails'", e); - } - - // deserialize CellulantDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(CellulantDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CellulantDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CellulantDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CellulantDetails'", e); - } - - // deserialize DokuDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(DokuDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(DokuDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'DokuDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'DokuDetails'", e); - } - - // deserialize DragonpayDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(DragonpayDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(DragonpayDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'DragonpayDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'DragonpayDetails'", e); - } - - // deserialize EBankingFinlandDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(EBankingFinlandDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(EBankingFinlandDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'EBankingFinlandDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'EBankingFinlandDetails'", e); - } - - // deserialize EcontextVoucherDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(EcontextVoucherDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(EcontextVoucherDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'EcontextVoucherDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'EcontextVoucherDetails'", e); - } - - // deserialize EftDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(EftDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(EftDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'EftDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'EftDetails'", e); - } - - // deserialize FastlaneDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(FastlaneDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(FastlaneDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'FastlaneDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'FastlaneDetails'", e); - } - - // deserialize GenericIssuerPaymentMethodDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(GenericIssuerPaymentMethodDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(GenericIssuerPaymentMethodDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'GenericIssuerPaymentMethodDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'GenericIssuerPaymentMethodDetails'", e); - } - - // deserialize GooglePayDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(GooglePayDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(GooglePayDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'GooglePayDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'GooglePayDetails'", e); - } - - // deserialize IdealDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(IdealDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(IdealDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'IdealDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'IdealDetails'", e); - } - - // deserialize KlarnaDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(KlarnaDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(KlarnaDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'KlarnaDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'KlarnaDetails'", e); - } - - // deserialize MasterpassDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(MasterpassDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(MasterpassDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'MasterpassDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'MasterpassDetails'", e); - } - - // deserialize MbwayDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(MbwayDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(MbwayDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'MbwayDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'MbwayDetails'", e); - } - - // deserialize MobilePayDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(MobilePayDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(MobilePayDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'MobilePayDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'MobilePayDetails'", e); - } - - // deserialize MolPayDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(MolPayDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(MolPayDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'MolPayDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'MolPayDetails'", e); - } - - // deserialize OpenInvoiceDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(OpenInvoiceDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(OpenInvoiceDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'OpenInvoiceDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'OpenInvoiceDetails'", e); - } - - // deserialize PayByBankAISDirectDebitDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(PayByBankAISDirectDebitDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PayByBankAISDirectDebitDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PayByBankAISDirectDebitDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PayByBankAISDirectDebitDetails'", e); - } - - // deserialize PayByBankDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(PayByBankDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PayByBankDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PayByBankDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PayByBankDetails'", e); - } - - // deserialize PayPalDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(PayPalDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PayPalDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PayPalDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PayPalDetails'", e); - } - - // deserialize PayPayDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(PayPayDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PayPayDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PayPayDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PayPayDetails'", e); - } - - // deserialize PayToDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(PayToDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PayToDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PayToDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PayToDetails'", e); - } - - // deserialize PayUUpiDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(PayUUpiDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PayUUpiDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PayUUpiDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PayUUpiDetails'", e); - } - - // deserialize PayWithGoogleDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(PayWithGoogleDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PayWithGoogleDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PayWithGoogleDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PayWithGoogleDetails'", e); - } - - // deserialize PaymentDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(PaymentDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PaymentDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PaymentDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PaymentDetails'", e); - } - - // deserialize PixDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(PixDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PixDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PixDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PixDetails'", e); - } - - // deserialize PseDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(PseDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PseDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PseDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PseDetails'", e); - } - - // deserialize RakutenPayDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(RakutenPayDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(RakutenPayDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'RakutenPayDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'RakutenPayDetails'", e); - } - - // deserialize RatepayDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(RatepayDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(RatepayDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'RatepayDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'RatepayDetails'", e); - } - - // deserialize RivertyDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(RivertyDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(RivertyDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'RivertyDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'RivertyDetails'", e); - } - - // deserialize SamsungPayDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(SamsungPayDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(SamsungPayDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SamsungPayDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'SamsungPayDetails'", e); - } - - // deserialize SepaDirectDebitDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(SepaDirectDebitDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(SepaDirectDebitDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SepaDirectDebitDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'SepaDirectDebitDetails'", e); - } - - // deserialize StoredPaymentMethodDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(StoredPaymentMethodDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(StoredPaymentMethodDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'StoredPaymentMethodDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'StoredPaymentMethodDetails'", e); - } - - // deserialize TwintDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(TwintDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(TwintDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'TwintDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'TwintDetails'", e); - } - - // deserialize UpiCollectDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(UpiCollectDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(UpiCollectDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'UpiCollectDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'UpiCollectDetails'", e); - } - - // deserialize UpiIntentDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(UpiIntentDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(UpiIntentDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'UpiIntentDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'UpiIntentDetails'", e); - } - - // deserialize VippsDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(VippsDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(VippsDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'VippsDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'VippsDetails'", e); - } - - // deserialize VisaCheckoutDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(VisaCheckoutDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(VisaCheckoutDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'VisaCheckoutDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'VisaCheckoutDetails'", e); - } - - // deserialize WeChatPayDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(WeChatPayDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(WeChatPayDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'WeChatPayDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'WeChatPayDetails'", e); - } - - // deserialize WeChatPayMiniProgramDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(WeChatPayMiniProgramDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(WeChatPayMiniProgramDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'WeChatPayMiniProgramDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'WeChatPayMiniProgramDetails'", e); - } - - // deserialize ZipDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(ZipDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(ZipDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'ZipDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'ZipDetails'", e); - } - - if (match == 1) { - CheckoutPaymentMethod ret = new CheckoutPaymentMethod(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException(String.format("Failed deserialization for CheckoutPaymentMethod: %d classes match result, expected 1", match)); - } - - /** - * Handle deserialization of the 'null' value. - */ - @Override - public CheckoutPaymentMethod getNullValue(DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "CheckoutPaymentMethod cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public CheckoutPaymentMethod() { - super("oneOf", Boolean.FALSE); - } - - public CheckoutPaymentMethod(AchDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(AffirmDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(AfterpayDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(AmazonPayDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(AncvDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(AndroidPayDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(ApplePayDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(BacsDirectDebitDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(BillDeskDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(BlikDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(CardDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(CashAppDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(CellulantDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(DokuDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(DragonpayDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(EBankingFinlandDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(EcontextVoucherDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(EftDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(FastlaneDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(GenericIssuerPaymentMethodDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(GooglePayDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(IdealDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(KlarnaDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(MasterpassDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(MbwayDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(MobilePayDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(MolPayDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(OpenInvoiceDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(PayByBankAISDirectDebitDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(PayByBankDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(PayPalDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(PayPayDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } + private static final Logger log = Logger.getLogger(CheckoutPaymentMethod.class.getName()); - public CheckoutPaymentMethod(PayToDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + public static class CheckoutPaymentMethodSerializer extends StdSerializer { + public CheckoutPaymentMethodSerializer(Class t) { + super(t); } - public CheckoutPaymentMethod(PayUUpiDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + public CheckoutPaymentMethodSerializer() { + this(null); } - public CheckoutPaymentMethod(PayWithGoogleDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(PaymentDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(PixDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(PseDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(RakutenPayDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(RatepayDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(RivertyDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(SamsungPayDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(SepaDirectDebitDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(StoredPaymentMethodDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(TwintDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(UpiCollectDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(UpiIntentDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(VippsDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(VisaCheckoutDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(WeChatPayDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(WeChatPayMiniProgramDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CheckoutPaymentMethod(ZipDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + @Override + public void serialize( + CheckoutPaymentMethod value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); } + } - static { - schemas.put("AchDetails", new GenericType() { - }); - schemas.put("AffirmDetails", new GenericType() { - }); - schemas.put("AfterpayDetails", new GenericType() { - }); - schemas.put("AmazonPayDetails", new GenericType() { - }); - schemas.put("AncvDetails", new GenericType() { - }); - schemas.put("AndroidPayDetails", new GenericType() { - }); - schemas.put("ApplePayDetails", new GenericType() { - }); - schemas.put("BacsDirectDebitDetails", new GenericType() { - }); - schemas.put("BillDeskDetails", new GenericType() { - }); - schemas.put("BlikDetails", new GenericType() { - }); - schemas.put("CardDetails", new GenericType() { - }); - schemas.put("CashAppDetails", new GenericType() { - }); - schemas.put("CellulantDetails", new GenericType() { - }); - schemas.put("DokuDetails", new GenericType() { - }); - schemas.put("DragonpayDetails", new GenericType() { - }); - schemas.put("EBankingFinlandDetails", new GenericType() { - }); - schemas.put("EcontextVoucherDetails", new GenericType() { - }); - schemas.put("EftDetails", new GenericType() { - }); - schemas.put("FastlaneDetails", new GenericType() { - }); - schemas.put("GenericIssuerPaymentMethodDetails", new GenericType() { - }); - schemas.put("GooglePayDetails", new GenericType() { - }); - schemas.put("IdealDetails", new GenericType() { - }); - schemas.put("KlarnaDetails", new GenericType() { - }); - schemas.put("MasterpassDetails", new GenericType() { - }); - schemas.put("MbwayDetails", new GenericType() { - }); - schemas.put("MobilePayDetails", new GenericType() { - }); - schemas.put("MolPayDetails", new GenericType() { - }); - schemas.put("OpenInvoiceDetails", new GenericType() { - }); - schemas.put("PayByBankAISDirectDebitDetails", new GenericType() { - }); - schemas.put("PayByBankDetails", new GenericType() { - }); - schemas.put("PayPalDetails", new GenericType() { - }); - schemas.put("PayPayDetails", new GenericType() { - }); - schemas.put("PayToDetails", new GenericType() { - }); - schemas.put("PayUUpiDetails", new GenericType() { - }); - schemas.put("PayWithGoogleDetails", new GenericType() { - }); - schemas.put("PaymentDetails", new GenericType() { - }); - schemas.put("PixDetails", new GenericType() { - }); - schemas.put("PseDetails", new GenericType() { - }); - schemas.put("RakutenPayDetails", new GenericType() { - }); - schemas.put("RatepayDetails", new GenericType() { - }); - schemas.put("RivertyDetails", new GenericType() { - }); - schemas.put("SamsungPayDetails", new GenericType() { - }); - schemas.put("SepaDirectDebitDetails", new GenericType() { - }); - schemas.put("StoredPaymentMethodDetails", new GenericType() { - }); - schemas.put("TwintDetails", new GenericType() { - }); - schemas.put("UpiCollectDetails", new GenericType() { - }); - schemas.put("UpiIntentDetails", new GenericType() { - }); - schemas.put("VippsDetails", new GenericType() { - }); - schemas.put("VisaCheckoutDetails", new GenericType() { - }); - schemas.put("WeChatPayDetails", new GenericType() { - }); - schemas.put("WeChatPayMiniProgramDetails", new GenericType() { - }); - schemas.put("ZipDetails", new GenericType() { - }); - JSON.registerDescendants(CheckoutPaymentMethod.class, Collections.unmodifiableMap(schemas)); + public static class CheckoutPaymentMethodDeserializer + extends StdDeserializer { + public CheckoutPaymentMethodDeserializer() { + this(CheckoutPaymentMethod.class); } - @Override - public Map> getSchemas() { - return CheckoutPaymentMethod.schemas; + public CheckoutPaymentMethodDeserializer(Class vc) { + super(vc); } - /** - * Set the instance that matches the oneOf child schema, check - * the instance parameter is valid against the oneOf child schemas: - * AchDetails, AffirmDetails, AfterpayDetails, AmazonPayDetails, AncvDetails, AndroidPayDetails, ApplePayDetails, BacsDirectDebitDetails, BillDeskDetails, BlikDetails, CardDetails, CashAppDetails, CellulantDetails, DokuDetails, DragonpayDetails, EBankingFinlandDetails, EcontextVoucherDetails, EftDetails, FastlaneDetails, GenericIssuerPaymentMethodDetails, GooglePayDetails, IdealDetails, KlarnaDetails, MasterpassDetails, MbwayDetails, MobilePayDetails, MolPayDetails, OpenInvoiceDetails, PayByBankAISDirectDebitDetails, PayByBankDetails, PayPalDetails, PayPayDetails, PayToDetails, PayUUpiDetails, PayWithGoogleDetails, PaymentDetails, PixDetails, PseDetails, RakutenPayDetails, RatepayDetails, RivertyDetails, SamsungPayDetails, SepaDirectDebitDetails, StoredPaymentMethodDetails, TwintDetails, UpiCollectDetails, UpiIntentDetails, VippsDetails, VisaCheckoutDetails, WeChatPayDetails, WeChatPayMiniProgramDetails, ZipDetails - * - * It could be an instance of the 'oneOf' schemas. - * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). - */ @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(AchDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize AchDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(AchDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(AchDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'AchDetails'"); + } } - - if (JSON.isInstanceOf(AffirmDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'AchDetails'", e); + } + + // deserialize AffirmDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(AffirmDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(AffirmDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'AffirmDetails'"); + } } - - if (JSON.isInstanceOf(AfterpayDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'AffirmDetails'", e); + } + + // deserialize AfterpayDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(AfterpayDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(AfterpayDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'AfterpayDetails'"); + } } - - if (JSON.isInstanceOf(AmazonPayDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'AfterpayDetails'", e); + } + + // deserialize AmazonPayDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(AmazonPayDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(AmazonPayDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'AmazonPayDetails'"); + } } - - if (JSON.isInstanceOf(AncvDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'AmazonPayDetails'", e); + } + + // deserialize AncvDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(AncvDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(AncvDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'AncvDetails'"); + } } - - if (JSON.isInstanceOf(AndroidPayDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'AncvDetails'", e); + } + + // deserialize AndroidPayDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(AndroidPayDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(AndroidPayDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'AndroidPayDetails'"); + } } - - if (JSON.isInstanceOf(ApplePayDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'AndroidPayDetails'", e); + } + + // deserialize ApplePayDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(ApplePayDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(ApplePayDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'ApplePayDetails'"); + } } - - if (JSON.isInstanceOf(BacsDirectDebitDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'ApplePayDetails'", e); + } + + // deserialize BacsDirectDebitDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(BacsDirectDebitDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(BacsDirectDebitDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'BacsDirectDebitDetails'"); + } } - - if (JSON.isInstanceOf(BillDeskDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'BacsDirectDebitDetails'", e); + } + + // deserialize BillDeskDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(BillDeskDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(BillDeskDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'BillDeskDetails'"); + } } - - if (JSON.isInstanceOf(BlikDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'BillDeskDetails'", e); + } + + // deserialize BlikDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(BlikDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(BlikDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'BlikDetails'"); + } } - - if (JSON.isInstanceOf(CardDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'BlikDetails'", e); + } + + // deserialize CardDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(CardDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CardDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CardDetails'"); + } } - - if (JSON.isInstanceOf(CashAppDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CardDetails'", e); + } + + // deserialize CashAppDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(CashAppDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CashAppDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CashAppDetails'"); + } } - - if (JSON.isInstanceOf(CellulantDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CashAppDetails'", e); + } + + // deserialize CellulantDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(CellulantDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CellulantDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CellulantDetails'"); + } } - - if (JSON.isInstanceOf(DokuDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CellulantDetails'", e); + } + + // deserialize DokuDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(DokuDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(DokuDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'DokuDetails'"); + } } - - if (JSON.isInstanceOf(DragonpayDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'DokuDetails'", e); + } + + // deserialize DragonpayDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(DragonpayDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(DragonpayDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'DragonpayDetails'"); + } } - - if (JSON.isInstanceOf(EBankingFinlandDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'DragonpayDetails'", e); + } + + // deserialize EBankingFinlandDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(EBankingFinlandDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(EBankingFinlandDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'EBankingFinlandDetails'"); + } } - - if (JSON.isInstanceOf(EcontextVoucherDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'EBankingFinlandDetails'", e); + } + + // deserialize EcontextVoucherDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(EcontextVoucherDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(EcontextVoucherDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'EcontextVoucherDetails'"); + } } - - if (JSON.isInstanceOf(EftDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'EcontextVoucherDetails'", e); + } + + // deserialize EftDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(EftDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(EftDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'EftDetails'"); + } } - - if (JSON.isInstanceOf(FastlaneDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'EftDetails'", e); + } + + // deserialize FastlaneDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(FastlaneDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(FastlaneDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'FastlaneDetails'"); + } } - - if (JSON.isInstanceOf(GenericIssuerPaymentMethodDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'FastlaneDetails'", e); + } + + // deserialize GenericIssuerPaymentMethodDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(GenericIssuerPaymentMethodDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(GenericIssuerPaymentMethodDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'GenericIssuerPaymentMethodDetails'"); + } } - - if (JSON.isInstanceOf(GooglePayDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log( + Level.FINER, "Input data does not match schema 'GenericIssuerPaymentMethodDetails'", e); + } + + // deserialize GooglePayDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(GooglePayDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(GooglePayDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'GooglePayDetails'"); + } } - - if (JSON.isInstanceOf(IdealDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'GooglePayDetails'", e); + } + + // deserialize IdealDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(IdealDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(IdealDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'IdealDetails'"); + } } - - if (JSON.isInstanceOf(KlarnaDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'IdealDetails'", e); + } + + // deserialize KlarnaDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(KlarnaDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(KlarnaDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'KlarnaDetails'"); + } } - - if (JSON.isInstanceOf(MasterpassDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'KlarnaDetails'", e); + } + + // deserialize MasterpassDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(MasterpassDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(MasterpassDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'MasterpassDetails'"); + } } - - if (JSON.isInstanceOf(MbwayDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'MasterpassDetails'", e); + } + + // deserialize MbwayDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(MbwayDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(MbwayDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'MbwayDetails'"); + } } - - if (JSON.isInstanceOf(MobilePayDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'MbwayDetails'", e); + } + + // deserialize MobilePayDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(MobilePayDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(MobilePayDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'MobilePayDetails'"); + } } - - if (JSON.isInstanceOf(MolPayDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'MobilePayDetails'", e); + } + + // deserialize MolPayDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(MolPayDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(MolPayDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'MolPayDetails'"); + } } - - if (JSON.isInstanceOf(OpenInvoiceDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'MolPayDetails'", e); + } + + // deserialize OpenInvoiceDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(OpenInvoiceDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(OpenInvoiceDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'OpenInvoiceDetails'"); + } } - - if (JSON.isInstanceOf(PayByBankAISDirectDebitDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'OpenInvoiceDetails'", e); + } + + // deserialize PayByBankAISDirectDebitDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(PayByBankAISDirectDebitDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(PayByBankAISDirectDebitDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PayByBankAISDirectDebitDetails'"); + } } - - if (JSON.isInstanceOf(PayByBankDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log( + Level.FINER, "Input data does not match schema 'PayByBankAISDirectDebitDetails'", e); + } + + // deserialize PayByBankDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(PayByBankDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PayByBankDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PayByBankDetails'"); + } } - - if (JSON.isInstanceOf(PayPalDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PayByBankDetails'", e); + } + + // deserialize PayPalDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(PayPalDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PayPalDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PayPalDetails'"); + } } - - if (JSON.isInstanceOf(PayPayDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PayPalDetails'", e); + } + + // deserialize PayPayDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(PayPayDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PayPayDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PayPayDetails'"); + } } - - if (JSON.isInstanceOf(PayToDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PayPayDetails'", e); + } + + // deserialize PayToDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(PayToDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PayToDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PayToDetails'"); + } } - - if (JSON.isInstanceOf(PayUUpiDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PayToDetails'", e); + } + + // deserialize PayUUpiDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(PayUUpiDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PayUUpiDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PayUUpiDetails'"); + } } - - if (JSON.isInstanceOf(PayWithGoogleDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PayUUpiDetails'", e); + } + + // deserialize PayWithGoogleDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(PayWithGoogleDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PayWithGoogleDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PayWithGoogleDetails'"); + } } - - if (JSON.isInstanceOf(PaymentDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PayWithGoogleDetails'", e); + } + + // deserialize PaymentDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(PaymentDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PaymentDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PaymentDetails'"); + } } - - if (JSON.isInstanceOf(PixDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PaymentDetails'", e); + } + + // deserialize PixDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(PixDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PixDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PixDetails'"); + } } - - if (JSON.isInstanceOf(PseDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PixDetails'", e); + } + + // deserialize PseDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(PseDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PseDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PseDetails'"); + } } - - if (JSON.isInstanceOf(RakutenPayDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PseDetails'", e); + } + + // deserialize RakutenPayDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(RakutenPayDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(RakutenPayDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'RakutenPayDetails'"); + } } - - if (JSON.isInstanceOf(RatepayDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'RakutenPayDetails'", e); + } + + // deserialize RatepayDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(RatepayDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(RatepayDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'RatepayDetails'"); + } } - - if (JSON.isInstanceOf(RivertyDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'RatepayDetails'", e); + } + + // deserialize RivertyDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(RivertyDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(RivertyDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'RivertyDetails'"); + } } - - if (JSON.isInstanceOf(SamsungPayDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'RivertyDetails'", e); + } + + // deserialize SamsungPayDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(SamsungPayDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(SamsungPayDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'SamsungPayDetails'"); + } } - - if (JSON.isInstanceOf(SepaDirectDebitDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'SamsungPayDetails'", e); + } + + // deserialize SepaDirectDebitDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(SepaDirectDebitDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(SepaDirectDebitDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'SepaDirectDebitDetails'"); + } } - - if (JSON.isInstanceOf(StoredPaymentMethodDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'SepaDirectDebitDetails'", e); + } + + // deserialize StoredPaymentMethodDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(StoredPaymentMethodDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(StoredPaymentMethodDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'StoredPaymentMethodDetails'"); + } } - - if (JSON.isInstanceOf(TwintDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'StoredPaymentMethodDetails'", e); + } + + // deserialize TwintDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(TwintDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(TwintDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'TwintDetails'"); + } } - - if (JSON.isInstanceOf(UpiCollectDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'TwintDetails'", e); + } + + // deserialize UpiCollectDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(UpiCollectDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(UpiCollectDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'UpiCollectDetails'"); + } } - - if (JSON.isInstanceOf(UpiIntentDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'UpiCollectDetails'", e); + } + + // deserialize UpiIntentDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(UpiIntentDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(UpiIntentDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'UpiIntentDetails'"); + } } - - if (JSON.isInstanceOf(VippsDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'UpiIntentDetails'", e); + } + + // deserialize VippsDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(VippsDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(VippsDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'VippsDetails'"); + } } - - if (JSON.isInstanceOf(VisaCheckoutDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'VippsDetails'", e); + } + + // deserialize VisaCheckoutDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(VisaCheckoutDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(VisaCheckoutDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'VisaCheckoutDetails'"); + } } - - if (JSON.isInstanceOf(WeChatPayDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'VisaCheckoutDetails'", e); + } + + // deserialize WeChatPayDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(WeChatPayDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(WeChatPayDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'WeChatPayDetails'"); + } } - - if (JSON.isInstanceOf(WeChatPayMiniProgramDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'WeChatPayDetails'", e); + } + + // deserialize WeChatPayMiniProgramDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(WeChatPayMiniProgramDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(WeChatPayMiniProgramDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'WeChatPayMiniProgramDetails'"); + } } - - if (JSON.isInstanceOf(ZipDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'WeChatPayMiniProgramDetails'", e); + } + + // deserialize ZipDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(ZipDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(ZipDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'ZipDetails'"); + } } - - throw new RuntimeException("Invalid instance type. Must be AchDetails, AffirmDetails, AfterpayDetails, AmazonPayDetails, AncvDetails, AndroidPayDetails, ApplePayDetails, BacsDirectDebitDetails, BillDeskDetails, BlikDetails, CardDetails, CashAppDetails, CellulantDetails, DokuDetails, DragonpayDetails, EBankingFinlandDetails, EcontextVoucherDetails, EftDetails, FastlaneDetails, GenericIssuerPaymentMethodDetails, GooglePayDetails, IdealDetails, KlarnaDetails, MasterpassDetails, MbwayDetails, MobilePayDetails, MolPayDetails, OpenInvoiceDetails, PayByBankAISDirectDebitDetails, PayByBankDetails, PayPalDetails, PayPayDetails, PayToDetails, PayUUpiDetails, PayWithGoogleDetails, PaymentDetails, PixDetails, PseDetails, RakutenPayDetails, RatepayDetails, RivertyDetails, SamsungPayDetails, SepaDirectDebitDetails, StoredPaymentMethodDetails, TwintDetails, UpiCollectDetails, UpiIntentDetails, VippsDetails, VisaCheckoutDetails, WeChatPayDetails, WeChatPayMiniProgramDetails, ZipDetails"); - } - - /** - * Get the actual instance, which can be the following: - * AchDetails, AffirmDetails, AfterpayDetails, AmazonPayDetails, AncvDetails, AndroidPayDetails, ApplePayDetails, BacsDirectDebitDetails, BillDeskDetails, BlikDetails, CardDetails, CashAppDetails, CellulantDetails, DokuDetails, DragonpayDetails, EBankingFinlandDetails, EcontextVoucherDetails, EftDetails, FastlaneDetails, GenericIssuerPaymentMethodDetails, GooglePayDetails, IdealDetails, KlarnaDetails, MasterpassDetails, MbwayDetails, MobilePayDetails, MolPayDetails, OpenInvoiceDetails, PayByBankAISDirectDebitDetails, PayByBankDetails, PayPalDetails, PayPayDetails, PayToDetails, PayUUpiDetails, PayWithGoogleDetails, PaymentDetails, PixDetails, PseDetails, RakutenPayDetails, RatepayDetails, RivertyDetails, SamsungPayDetails, SepaDirectDebitDetails, StoredPaymentMethodDetails, TwintDetails, UpiCollectDetails, UpiIntentDetails, VippsDetails, VisaCheckoutDetails, WeChatPayDetails, WeChatPayMiniProgramDetails, ZipDetails - * - * @return The actual instance (AchDetails, AffirmDetails, AfterpayDetails, AmazonPayDetails, AncvDetails, AndroidPayDetails, ApplePayDetails, BacsDirectDebitDetails, BillDeskDetails, BlikDetails, CardDetails, CashAppDetails, CellulantDetails, DokuDetails, DragonpayDetails, EBankingFinlandDetails, EcontextVoucherDetails, EftDetails, FastlaneDetails, GenericIssuerPaymentMethodDetails, GooglePayDetails, IdealDetails, KlarnaDetails, MasterpassDetails, MbwayDetails, MobilePayDetails, MolPayDetails, OpenInvoiceDetails, PayByBankAISDirectDebitDetails, PayByBankDetails, PayPalDetails, PayPayDetails, PayToDetails, PayUUpiDetails, PayWithGoogleDetails, PaymentDetails, PixDetails, PseDetails, RakutenPayDetails, RatepayDetails, RivertyDetails, SamsungPayDetails, SepaDirectDebitDetails, StoredPaymentMethodDetails, TwintDetails, UpiCollectDetails, UpiIntentDetails, VippsDetails, VisaCheckoutDetails, WeChatPayDetails, WeChatPayMiniProgramDetails, ZipDetails) - */ + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'ZipDetails'", e); + } + + if (match == 1) { + CheckoutPaymentMethod ret = new CheckoutPaymentMethod(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException( + String.format( + "Failed deserialization for CheckoutPaymentMethod: %d classes match result, expected 1", + match)); + } + + /** Handle deserialization of the 'null' value. */ @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `AchDetails`. If the actual instance is not `AchDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `AchDetails` - * @throws ClassCastException if the instance is not `AchDetails` - */ - public AchDetails getAchDetails() throws ClassCastException { - return (AchDetails)super.getActualInstance(); - } + public CheckoutPaymentMethod getNullValue(DeserializationContext ctxt) + throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "CheckoutPaymentMethod cannot be null"); + } + } + + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public CheckoutPaymentMethod() { + super("oneOf", Boolean.FALSE); + } + + public CheckoutPaymentMethod(AchDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(AffirmDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(AfterpayDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(AmazonPayDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(AncvDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(AndroidPayDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(ApplePayDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(BacsDirectDebitDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(BillDeskDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(BlikDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(CardDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(CashAppDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(CellulantDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(DokuDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(DragonpayDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(EBankingFinlandDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(EcontextVoucherDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(EftDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(FastlaneDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(GenericIssuerPaymentMethodDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(GooglePayDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(IdealDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(KlarnaDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(MasterpassDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(MbwayDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(MobilePayDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(MolPayDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(OpenInvoiceDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(PayByBankAISDirectDebitDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(PayByBankDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(PayPalDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(PayPayDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(PayToDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(PayUUpiDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(PayWithGoogleDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(PaymentDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(PixDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(PseDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(RakutenPayDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(RatepayDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(RivertyDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(SamsungPayDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(SepaDirectDebitDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(StoredPaymentMethodDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(TwintDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(UpiCollectDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(UpiIntentDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(VippsDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(VisaCheckoutDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(WeChatPayDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(WeChatPayMiniProgramDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CheckoutPaymentMethod(ZipDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("AchDetails", new GenericType() {}); + schemas.put("AffirmDetails", new GenericType() {}); + schemas.put("AfterpayDetails", new GenericType() {}); + schemas.put("AmazonPayDetails", new GenericType() {}); + schemas.put("AncvDetails", new GenericType() {}); + schemas.put("AndroidPayDetails", new GenericType() {}); + schemas.put("ApplePayDetails", new GenericType() {}); + schemas.put("BacsDirectDebitDetails", new GenericType() {}); + schemas.put("BillDeskDetails", new GenericType() {}); + schemas.put("BlikDetails", new GenericType() {}); + schemas.put("CardDetails", new GenericType() {}); + schemas.put("CashAppDetails", new GenericType() {}); + schemas.put("CellulantDetails", new GenericType() {}); + schemas.put("DokuDetails", new GenericType() {}); + schemas.put("DragonpayDetails", new GenericType() {}); + schemas.put("EBankingFinlandDetails", new GenericType() {}); + schemas.put("EcontextVoucherDetails", new GenericType() {}); + schemas.put("EftDetails", new GenericType() {}); + schemas.put("FastlaneDetails", new GenericType() {}); + schemas.put( + "GenericIssuerPaymentMethodDetails", + new GenericType() {}); + schemas.put("GooglePayDetails", new GenericType() {}); + schemas.put("IdealDetails", new GenericType() {}); + schemas.put("KlarnaDetails", new GenericType() {}); + schemas.put("MasterpassDetails", new GenericType() {}); + schemas.put("MbwayDetails", new GenericType() {}); + schemas.put("MobilePayDetails", new GenericType() {}); + schemas.put("MolPayDetails", new GenericType() {}); + schemas.put("OpenInvoiceDetails", new GenericType() {}); + schemas.put( + "PayByBankAISDirectDebitDetails", new GenericType() {}); + schemas.put("PayByBankDetails", new GenericType() {}); + schemas.put("PayPalDetails", new GenericType() {}); + schemas.put("PayPayDetails", new GenericType() {}); + schemas.put("PayToDetails", new GenericType() {}); + schemas.put("PayUUpiDetails", new GenericType() {}); + schemas.put("PayWithGoogleDetails", new GenericType() {}); + schemas.put("PaymentDetails", new GenericType() {}); + schemas.put("PixDetails", new GenericType() {}); + schemas.put("PseDetails", new GenericType() {}); + schemas.put("RakutenPayDetails", new GenericType() {}); + schemas.put("RatepayDetails", new GenericType() {}); + schemas.put("RivertyDetails", new GenericType() {}); + schemas.put("SamsungPayDetails", new GenericType() {}); + schemas.put("SepaDirectDebitDetails", new GenericType() {}); + schemas.put("StoredPaymentMethodDetails", new GenericType() {}); + schemas.put("TwintDetails", new GenericType() {}); + schemas.put("UpiCollectDetails", new GenericType() {}); + schemas.put("UpiIntentDetails", new GenericType() {}); + schemas.put("VippsDetails", new GenericType() {}); + schemas.put("VisaCheckoutDetails", new GenericType() {}); + schemas.put("WeChatPayDetails", new GenericType() {}); + schemas.put("WeChatPayMiniProgramDetails", new GenericType() {}); + schemas.put("ZipDetails", new GenericType() {}); + JSON.registerDescendants(CheckoutPaymentMethod.class, Collections.unmodifiableMap(schemas)); + } + + @Override + public Map> getSchemas() { + return CheckoutPaymentMethod.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check the instance parameter is valid + * against the oneOf child schemas: AchDetails, AffirmDetails, AfterpayDetails, AmazonPayDetails, + * AncvDetails, AndroidPayDetails, ApplePayDetails, BacsDirectDebitDetails, BillDeskDetails, + * BlikDetails, CardDetails, CashAppDetails, CellulantDetails, DokuDetails, DragonpayDetails, + * EBankingFinlandDetails, EcontextVoucherDetails, EftDetails, FastlaneDetails, + * GenericIssuerPaymentMethodDetails, GooglePayDetails, IdealDetails, KlarnaDetails, + * MasterpassDetails, MbwayDetails, MobilePayDetails, MolPayDetails, OpenInvoiceDetails, + * PayByBankAISDirectDebitDetails, PayByBankDetails, PayPalDetails, PayPayDetails, PayToDetails, + * PayUUpiDetails, PayWithGoogleDetails, PaymentDetails, PixDetails, PseDetails, + * RakutenPayDetails, RatepayDetails, RivertyDetails, SamsungPayDetails, SepaDirectDebitDetails, + * StoredPaymentMethodDetails, TwintDetails, UpiCollectDetails, UpiIntentDetails, VippsDetails, + * VisaCheckoutDetails, WeChatPayDetails, WeChatPayMiniProgramDetails, ZipDetails + * + *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a + * composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(AchDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(AffirmDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(AfterpayDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(AmazonPayDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } - /** - * Get the actual instance of `AffirmDetails`. If the actual instance is not `AffirmDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `AffirmDetails` - * @throws ClassCastException if the instance is not `AffirmDetails` - */ - public AffirmDetails getAffirmDetails() throws ClassCastException { - return (AffirmDetails)super.getActualInstance(); + if (JSON.isInstanceOf(AncvDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `AfterpayDetails`. If the actual instance is not `AfterpayDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `AfterpayDetails` - * @throws ClassCastException if the instance is not `AfterpayDetails` - */ - public AfterpayDetails getAfterpayDetails() throws ClassCastException { - return (AfterpayDetails)super.getActualInstance(); + if (JSON.isInstanceOf(AndroidPayDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `AmazonPayDetails`. If the actual instance is not `AmazonPayDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `AmazonPayDetails` - * @throws ClassCastException if the instance is not `AmazonPayDetails` - */ - public AmazonPayDetails getAmazonPayDetails() throws ClassCastException { - return (AmazonPayDetails)super.getActualInstance(); + if (JSON.isInstanceOf(ApplePayDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `AncvDetails`. If the actual instance is not `AncvDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `AncvDetails` - * @throws ClassCastException if the instance is not `AncvDetails` - */ - public AncvDetails getAncvDetails() throws ClassCastException { - return (AncvDetails)super.getActualInstance(); + if (JSON.isInstanceOf(BacsDirectDebitDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `AndroidPayDetails`. If the actual instance is not `AndroidPayDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `AndroidPayDetails` - * @throws ClassCastException if the instance is not `AndroidPayDetails` - */ - public AndroidPayDetails getAndroidPayDetails() throws ClassCastException { - return (AndroidPayDetails)super.getActualInstance(); + if (JSON.isInstanceOf(BillDeskDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `ApplePayDetails`. If the actual instance is not `ApplePayDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `ApplePayDetails` - * @throws ClassCastException if the instance is not `ApplePayDetails` - */ - public ApplePayDetails getApplePayDetails() throws ClassCastException { - return (ApplePayDetails)super.getActualInstance(); + if (JSON.isInstanceOf(BlikDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `BacsDirectDebitDetails`. If the actual instance is not `BacsDirectDebitDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `BacsDirectDebitDetails` - * @throws ClassCastException if the instance is not `BacsDirectDebitDetails` - */ - public BacsDirectDebitDetails getBacsDirectDebitDetails() throws ClassCastException { - return (BacsDirectDebitDetails)super.getActualInstance(); + if (JSON.isInstanceOf(CardDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `BillDeskDetails`. If the actual instance is not `BillDeskDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `BillDeskDetails` - * @throws ClassCastException if the instance is not `BillDeskDetails` - */ - public BillDeskDetails getBillDeskDetails() throws ClassCastException { - return (BillDeskDetails)super.getActualInstance(); + if (JSON.isInstanceOf(CashAppDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `BlikDetails`. If the actual instance is not `BlikDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `BlikDetails` - * @throws ClassCastException if the instance is not `BlikDetails` - */ - public BlikDetails getBlikDetails() throws ClassCastException { - return (BlikDetails)super.getActualInstance(); + if (JSON.isInstanceOf(CellulantDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `CardDetails`. If the actual instance is not `CardDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CardDetails` - * @throws ClassCastException if the instance is not `CardDetails` - */ - public CardDetails getCardDetails() throws ClassCastException { - return (CardDetails)super.getActualInstance(); + if (JSON.isInstanceOf(DokuDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `CashAppDetails`. If the actual instance is not `CashAppDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CashAppDetails` - * @throws ClassCastException if the instance is not `CashAppDetails` - */ - public CashAppDetails getCashAppDetails() throws ClassCastException { - return (CashAppDetails)super.getActualInstance(); + if (JSON.isInstanceOf(DragonpayDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `CellulantDetails`. If the actual instance is not `CellulantDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CellulantDetails` - * @throws ClassCastException if the instance is not `CellulantDetails` - */ - public CellulantDetails getCellulantDetails() throws ClassCastException { - return (CellulantDetails)super.getActualInstance(); + if (JSON.isInstanceOf(EBankingFinlandDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `DokuDetails`. If the actual instance is not `DokuDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `DokuDetails` - * @throws ClassCastException if the instance is not `DokuDetails` - */ - public DokuDetails getDokuDetails() throws ClassCastException { - return (DokuDetails)super.getActualInstance(); + if (JSON.isInstanceOf(EcontextVoucherDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `DragonpayDetails`. If the actual instance is not `DragonpayDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `DragonpayDetails` - * @throws ClassCastException if the instance is not `DragonpayDetails` - */ - public DragonpayDetails getDragonpayDetails() throws ClassCastException { - return (DragonpayDetails)super.getActualInstance(); + if (JSON.isInstanceOf(EftDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `EBankingFinlandDetails`. If the actual instance is not `EBankingFinlandDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `EBankingFinlandDetails` - * @throws ClassCastException if the instance is not `EBankingFinlandDetails` - */ - public EBankingFinlandDetails getEBankingFinlandDetails() throws ClassCastException { - return (EBankingFinlandDetails)super.getActualInstance(); + if (JSON.isInstanceOf(FastlaneDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `EcontextVoucherDetails`. If the actual instance is not `EcontextVoucherDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `EcontextVoucherDetails` - * @throws ClassCastException if the instance is not `EcontextVoucherDetails` - */ - public EcontextVoucherDetails getEcontextVoucherDetails() throws ClassCastException { - return (EcontextVoucherDetails)super.getActualInstance(); + if (JSON.isInstanceOf(GenericIssuerPaymentMethodDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `EftDetails`. If the actual instance is not `EftDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `EftDetails` - * @throws ClassCastException if the instance is not `EftDetails` - */ - public EftDetails getEftDetails() throws ClassCastException { - return (EftDetails)super.getActualInstance(); + if (JSON.isInstanceOf(GooglePayDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `FastlaneDetails`. If the actual instance is not `FastlaneDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `FastlaneDetails` - * @throws ClassCastException if the instance is not `FastlaneDetails` - */ - public FastlaneDetails getFastlaneDetails() throws ClassCastException { - return (FastlaneDetails)super.getActualInstance(); + if (JSON.isInstanceOf(IdealDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `GenericIssuerPaymentMethodDetails`. If the actual instance is not `GenericIssuerPaymentMethodDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GenericIssuerPaymentMethodDetails` - * @throws ClassCastException if the instance is not `GenericIssuerPaymentMethodDetails` - */ - public GenericIssuerPaymentMethodDetails getGenericIssuerPaymentMethodDetails() throws ClassCastException { - return (GenericIssuerPaymentMethodDetails)super.getActualInstance(); + if (JSON.isInstanceOf(KlarnaDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `GooglePayDetails`. If the actual instance is not `GooglePayDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GooglePayDetails` - * @throws ClassCastException if the instance is not `GooglePayDetails` - */ - public GooglePayDetails getGooglePayDetails() throws ClassCastException { - return (GooglePayDetails)super.getActualInstance(); + if (JSON.isInstanceOf(MasterpassDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `IdealDetails`. If the actual instance is not `IdealDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `IdealDetails` - * @throws ClassCastException if the instance is not `IdealDetails` - */ - public IdealDetails getIdealDetails() throws ClassCastException { - return (IdealDetails)super.getActualInstance(); + if (JSON.isInstanceOf(MbwayDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `KlarnaDetails`. If the actual instance is not `KlarnaDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `KlarnaDetails` - * @throws ClassCastException if the instance is not `KlarnaDetails` - */ - public KlarnaDetails getKlarnaDetails() throws ClassCastException { - return (KlarnaDetails)super.getActualInstance(); + if (JSON.isInstanceOf(MobilePayDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `MasterpassDetails`. If the actual instance is not `MasterpassDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `MasterpassDetails` - * @throws ClassCastException if the instance is not `MasterpassDetails` - */ - public MasterpassDetails getMasterpassDetails() throws ClassCastException { - return (MasterpassDetails)super.getActualInstance(); + if (JSON.isInstanceOf(MolPayDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `MbwayDetails`. If the actual instance is not `MbwayDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `MbwayDetails` - * @throws ClassCastException if the instance is not `MbwayDetails` - */ - public MbwayDetails getMbwayDetails() throws ClassCastException { - return (MbwayDetails)super.getActualInstance(); + if (JSON.isInstanceOf(OpenInvoiceDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `MobilePayDetails`. If the actual instance is not `MobilePayDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `MobilePayDetails` - * @throws ClassCastException if the instance is not `MobilePayDetails` - */ - public MobilePayDetails getMobilePayDetails() throws ClassCastException { - return (MobilePayDetails)super.getActualInstance(); + if (JSON.isInstanceOf(PayByBankAISDirectDebitDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `MolPayDetails`. If the actual instance is not `MolPayDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `MolPayDetails` - * @throws ClassCastException if the instance is not `MolPayDetails` - */ - public MolPayDetails getMolPayDetails() throws ClassCastException { - return (MolPayDetails)super.getActualInstance(); + if (JSON.isInstanceOf(PayByBankDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `OpenInvoiceDetails`. If the actual instance is not `OpenInvoiceDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `OpenInvoiceDetails` - * @throws ClassCastException if the instance is not `OpenInvoiceDetails` - */ - public OpenInvoiceDetails getOpenInvoiceDetails() throws ClassCastException { - return (OpenInvoiceDetails)super.getActualInstance(); + if (JSON.isInstanceOf(PayPalDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `PayByBankAISDirectDebitDetails`. If the actual instance is not `PayByBankAISDirectDebitDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PayByBankAISDirectDebitDetails` - * @throws ClassCastException if the instance is not `PayByBankAISDirectDebitDetails` - */ - public PayByBankAISDirectDebitDetails getPayByBankAISDirectDebitDetails() throws ClassCastException { - return (PayByBankAISDirectDebitDetails)super.getActualInstance(); + if (JSON.isInstanceOf(PayPayDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `PayByBankDetails`. If the actual instance is not `PayByBankDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PayByBankDetails` - * @throws ClassCastException if the instance is not `PayByBankDetails` - */ - public PayByBankDetails getPayByBankDetails() throws ClassCastException { - return (PayByBankDetails)super.getActualInstance(); + if (JSON.isInstanceOf(PayToDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `PayPalDetails`. If the actual instance is not `PayPalDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PayPalDetails` - * @throws ClassCastException if the instance is not `PayPalDetails` - */ - public PayPalDetails getPayPalDetails() throws ClassCastException { - return (PayPalDetails)super.getActualInstance(); + if (JSON.isInstanceOf(PayUUpiDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `PayPayDetails`. If the actual instance is not `PayPayDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PayPayDetails` - * @throws ClassCastException if the instance is not `PayPayDetails` - */ - public PayPayDetails getPayPayDetails() throws ClassCastException { - return (PayPayDetails)super.getActualInstance(); + if (JSON.isInstanceOf(PayWithGoogleDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `PayToDetails`. If the actual instance is not `PayToDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PayToDetails` - * @throws ClassCastException if the instance is not `PayToDetails` - */ - public PayToDetails getPayToDetails() throws ClassCastException { - return (PayToDetails)super.getActualInstance(); + if (JSON.isInstanceOf(PaymentDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `PayUUpiDetails`. If the actual instance is not `PayUUpiDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PayUUpiDetails` - * @throws ClassCastException if the instance is not `PayUUpiDetails` - */ - public PayUUpiDetails getPayUUpiDetails() throws ClassCastException { - return (PayUUpiDetails)super.getActualInstance(); + if (JSON.isInstanceOf(PixDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `PayWithGoogleDetails`. If the actual instance is not `PayWithGoogleDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PayWithGoogleDetails` - * @throws ClassCastException if the instance is not `PayWithGoogleDetails` - */ - public PayWithGoogleDetails getPayWithGoogleDetails() throws ClassCastException { - return (PayWithGoogleDetails)super.getActualInstance(); + if (JSON.isInstanceOf(PseDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `PaymentDetails`. If the actual instance is not `PaymentDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PaymentDetails` - * @throws ClassCastException if the instance is not `PaymentDetails` - */ - public PaymentDetails getPaymentDetails() throws ClassCastException { - return (PaymentDetails)super.getActualInstance(); + if (JSON.isInstanceOf(RakutenPayDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `PixDetails`. If the actual instance is not `PixDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PixDetails` - * @throws ClassCastException if the instance is not `PixDetails` - */ - public PixDetails getPixDetails() throws ClassCastException { - return (PixDetails)super.getActualInstance(); + if (JSON.isInstanceOf(RatepayDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `PseDetails`. If the actual instance is not `PseDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PseDetails` - * @throws ClassCastException if the instance is not `PseDetails` - */ - public PseDetails getPseDetails() throws ClassCastException { - return (PseDetails)super.getActualInstance(); + if (JSON.isInstanceOf(RivertyDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `RakutenPayDetails`. If the actual instance is not `RakutenPayDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `RakutenPayDetails` - * @throws ClassCastException if the instance is not `RakutenPayDetails` - */ - public RakutenPayDetails getRakutenPayDetails() throws ClassCastException { - return (RakutenPayDetails)super.getActualInstance(); + if (JSON.isInstanceOf(SamsungPayDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `RatepayDetails`. If the actual instance is not `RatepayDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `RatepayDetails` - * @throws ClassCastException if the instance is not `RatepayDetails` - */ - public RatepayDetails getRatepayDetails() throws ClassCastException { - return (RatepayDetails)super.getActualInstance(); + if (JSON.isInstanceOf(SepaDirectDebitDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `RivertyDetails`. If the actual instance is not `RivertyDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `RivertyDetails` - * @throws ClassCastException if the instance is not `RivertyDetails` - */ - public RivertyDetails getRivertyDetails() throws ClassCastException { - return (RivertyDetails)super.getActualInstance(); + if (JSON.isInstanceOf(StoredPaymentMethodDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `SamsungPayDetails`. If the actual instance is not `SamsungPayDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `SamsungPayDetails` - * @throws ClassCastException if the instance is not `SamsungPayDetails` - */ - public SamsungPayDetails getSamsungPayDetails() throws ClassCastException { - return (SamsungPayDetails)super.getActualInstance(); + if (JSON.isInstanceOf(TwintDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `SepaDirectDebitDetails`. If the actual instance is not `SepaDirectDebitDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `SepaDirectDebitDetails` - * @throws ClassCastException if the instance is not `SepaDirectDebitDetails` - */ - public SepaDirectDebitDetails getSepaDirectDebitDetails() throws ClassCastException { - return (SepaDirectDebitDetails)super.getActualInstance(); + if (JSON.isInstanceOf(UpiCollectDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `StoredPaymentMethodDetails`. If the actual instance is not `StoredPaymentMethodDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `StoredPaymentMethodDetails` - * @throws ClassCastException if the instance is not `StoredPaymentMethodDetails` - */ - public StoredPaymentMethodDetails getStoredPaymentMethodDetails() throws ClassCastException { - return (StoredPaymentMethodDetails)super.getActualInstance(); + if (JSON.isInstanceOf(UpiIntentDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `TwintDetails`. If the actual instance is not `TwintDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `TwintDetails` - * @throws ClassCastException if the instance is not `TwintDetails` - */ - public TwintDetails getTwintDetails() throws ClassCastException { - return (TwintDetails)super.getActualInstance(); + if (JSON.isInstanceOf(VippsDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `UpiCollectDetails`. If the actual instance is not `UpiCollectDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `UpiCollectDetails` - * @throws ClassCastException if the instance is not `UpiCollectDetails` - */ - public UpiCollectDetails getUpiCollectDetails() throws ClassCastException { - return (UpiCollectDetails)super.getActualInstance(); + if (JSON.isInstanceOf(VisaCheckoutDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `UpiIntentDetails`. If the actual instance is not `UpiIntentDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `UpiIntentDetails` - * @throws ClassCastException if the instance is not `UpiIntentDetails` - */ - public UpiIntentDetails getUpiIntentDetails() throws ClassCastException { - return (UpiIntentDetails)super.getActualInstance(); - } - - /** - * Get the actual instance of `VippsDetails`. If the actual instance is not `VippsDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `VippsDetails` - * @throws ClassCastException if the instance is not `VippsDetails` - */ - public VippsDetails getVippsDetails() throws ClassCastException { - return (VippsDetails)super.getActualInstance(); - } - - /** - * Get the actual instance of `VisaCheckoutDetails`. If the actual instance is not `VisaCheckoutDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `VisaCheckoutDetails` - * @throws ClassCastException if the instance is not `VisaCheckoutDetails` - */ - public VisaCheckoutDetails getVisaCheckoutDetails() throws ClassCastException { - return (VisaCheckoutDetails)super.getActualInstance(); - } - - /** - * Get the actual instance of `WeChatPayDetails`. If the actual instance is not `WeChatPayDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `WeChatPayDetails` - * @throws ClassCastException if the instance is not `WeChatPayDetails` - */ - public WeChatPayDetails getWeChatPayDetails() throws ClassCastException { - return (WeChatPayDetails)super.getActualInstance(); - } - - /** - * Get the actual instance of `WeChatPayMiniProgramDetails`. If the actual instance is not `WeChatPayMiniProgramDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `WeChatPayMiniProgramDetails` - * @throws ClassCastException if the instance is not `WeChatPayMiniProgramDetails` - */ - public WeChatPayMiniProgramDetails getWeChatPayMiniProgramDetails() throws ClassCastException { - return (WeChatPayMiniProgramDetails)super.getActualInstance(); - } - - /** - * Get the actual instance of `ZipDetails`. If the actual instance is not `ZipDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `ZipDetails` - * @throws ClassCastException if the instance is not `ZipDetails` - */ - public ZipDetails getZipDetails() throws ClassCastException { - return (ZipDetails)super.getActualInstance(); - } - - - /** - * Create an instance of CheckoutPaymentMethod given an JSON string - * - * @param jsonString JSON string - * @return An instance of CheckoutPaymentMethod - * @throws IOException if the JSON string is invalid with respect to CheckoutPaymentMethod - */ - public static CheckoutPaymentMethod fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, CheckoutPaymentMethod.class); + if (JSON.isInstanceOf(WeChatPayDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Convert an instance of CheckoutPaymentMethod to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); + if (JSON.isInstanceOf(WeChatPayMiniProgramDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } + if (JSON.isInstanceOf(ZipDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException( + "Invalid instance type. Must be AchDetails, AffirmDetails, AfterpayDetails, AmazonPayDetails, AncvDetails, AndroidPayDetails, ApplePayDetails, BacsDirectDebitDetails, BillDeskDetails, BlikDetails, CardDetails, CashAppDetails, CellulantDetails, DokuDetails, DragonpayDetails, EBankingFinlandDetails, EcontextVoucherDetails, EftDetails, FastlaneDetails, GenericIssuerPaymentMethodDetails, GooglePayDetails, IdealDetails, KlarnaDetails, MasterpassDetails, MbwayDetails, MobilePayDetails, MolPayDetails, OpenInvoiceDetails, PayByBankAISDirectDebitDetails, PayByBankDetails, PayPalDetails, PayPayDetails, PayToDetails, PayUUpiDetails, PayWithGoogleDetails, PaymentDetails, PixDetails, PseDetails, RakutenPayDetails, RatepayDetails, RivertyDetails, SamsungPayDetails, SepaDirectDebitDetails, StoredPaymentMethodDetails, TwintDetails, UpiCollectDetails, UpiIntentDetails, VippsDetails, VisaCheckoutDetails, WeChatPayDetails, WeChatPayMiniProgramDetails, ZipDetails"); + } + + /** + * Get the actual instance, which can be the following: AchDetails, AffirmDetails, + * AfterpayDetails, AmazonPayDetails, AncvDetails, AndroidPayDetails, ApplePayDetails, + * BacsDirectDebitDetails, BillDeskDetails, BlikDetails, CardDetails, CashAppDetails, + * CellulantDetails, DokuDetails, DragonpayDetails, EBankingFinlandDetails, + * EcontextVoucherDetails, EftDetails, FastlaneDetails, GenericIssuerPaymentMethodDetails, + * GooglePayDetails, IdealDetails, KlarnaDetails, MasterpassDetails, MbwayDetails, + * MobilePayDetails, MolPayDetails, OpenInvoiceDetails, PayByBankAISDirectDebitDetails, + * PayByBankDetails, PayPalDetails, PayPayDetails, PayToDetails, PayUUpiDetails, + * PayWithGoogleDetails, PaymentDetails, PixDetails, PseDetails, RakutenPayDetails, + * RatepayDetails, RivertyDetails, SamsungPayDetails, SepaDirectDebitDetails, + * StoredPaymentMethodDetails, TwintDetails, UpiCollectDetails, UpiIntentDetails, VippsDetails, + * VisaCheckoutDetails, WeChatPayDetails, WeChatPayMiniProgramDetails, ZipDetails + * + * @return The actual instance (AchDetails, AffirmDetails, AfterpayDetails, AmazonPayDetails, + * AncvDetails, AndroidPayDetails, ApplePayDetails, BacsDirectDebitDetails, BillDeskDetails, + * BlikDetails, CardDetails, CashAppDetails, CellulantDetails, DokuDetails, DragonpayDetails, + * EBankingFinlandDetails, EcontextVoucherDetails, EftDetails, FastlaneDetails, + * GenericIssuerPaymentMethodDetails, GooglePayDetails, IdealDetails, KlarnaDetails, + * MasterpassDetails, MbwayDetails, MobilePayDetails, MolPayDetails, OpenInvoiceDetails, + * PayByBankAISDirectDebitDetails, PayByBankDetails, PayPalDetails, PayPayDetails, + * PayToDetails, PayUUpiDetails, PayWithGoogleDetails, PaymentDetails, PixDetails, PseDetails, + * RakutenPayDetails, RatepayDetails, RivertyDetails, SamsungPayDetails, + * SepaDirectDebitDetails, StoredPaymentMethodDetails, TwintDetails, UpiCollectDetails, + * UpiIntentDetails, VippsDetails, VisaCheckoutDetails, WeChatPayDetails, + * WeChatPayMiniProgramDetails, ZipDetails) + */ + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `AchDetails`. If the actual instance is not `AchDetails`, the + * ClassCastException will be thrown. + * + * @return The actual instance of `AchDetails` + * @throws ClassCastException if the instance is not `AchDetails` + */ + public AchDetails getAchDetails() throws ClassCastException { + return (AchDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `AffirmDetails`. If the actual instance is not `AffirmDetails`, the + * ClassCastException will be thrown. + * + * @return The actual instance of `AffirmDetails` + * @throws ClassCastException if the instance is not `AffirmDetails` + */ + public AffirmDetails getAffirmDetails() throws ClassCastException { + return (AffirmDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `AfterpayDetails`. If the actual instance is not `AfterpayDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `AfterpayDetails` + * @throws ClassCastException if the instance is not `AfterpayDetails` + */ + public AfterpayDetails getAfterpayDetails() throws ClassCastException { + return (AfterpayDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `AmazonPayDetails`. If the actual instance is not + * `AmazonPayDetails`, the ClassCastException will be thrown. + * + * @return The actual instance of `AmazonPayDetails` + * @throws ClassCastException if the instance is not `AmazonPayDetails` + */ + public AmazonPayDetails getAmazonPayDetails() throws ClassCastException { + return (AmazonPayDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `AncvDetails`. If the actual instance is not `AncvDetails`, the + * ClassCastException will be thrown. + * + * @return The actual instance of `AncvDetails` + * @throws ClassCastException if the instance is not `AncvDetails` + */ + public AncvDetails getAncvDetails() throws ClassCastException { + return (AncvDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `AndroidPayDetails`. If the actual instance is not + * `AndroidPayDetails`, the ClassCastException will be thrown. + * + * @return The actual instance of `AndroidPayDetails` + * @throws ClassCastException if the instance is not `AndroidPayDetails` + */ + public AndroidPayDetails getAndroidPayDetails() throws ClassCastException { + return (AndroidPayDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `ApplePayDetails`. If the actual instance is not `ApplePayDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `ApplePayDetails` + * @throws ClassCastException if the instance is not `ApplePayDetails` + */ + public ApplePayDetails getApplePayDetails() throws ClassCastException { + return (ApplePayDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `BacsDirectDebitDetails`. If the actual instance is not + * `BacsDirectDebitDetails`, the ClassCastException will be thrown. + * + * @return The actual instance of `BacsDirectDebitDetails` + * @throws ClassCastException if the instance is not `BacsDirectDebitDetails` + */ + public BacsDirectDebitDetails getBacsDirectDebitDetails() throws ClassCastException { + return (BacsDirectDebitDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `BillDeskDetails`. If the actual instance is not `BillDeskDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `BillDeskDetails` + * @throws ClassCastException if the instance is not `BillDeskDetails` + */ + public BillDeskDetails getBillDeskDetails() throws ClassCastException { + return (BillDeskDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `BlikDetails`. If the actual instance is not `BlikDetails`, the + * ClassCastException will be thrown. + * + * @return The actual instance of `BlikDetails` + * @throws ClassCastException if the instance is not `BlikDetails` + */ + public BlikDetails getBlikDetails() throws ClassCastException { + return (BlikDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `CardDetails`. If the actual instance is not `CardDetails`, the + * ClassCastException will be thrown. + * + * @return The actual instance of `CardDetails` + * @throws ClassCastException if the instance is not `CardDetails` + */ + public CardDetails getCardDetails() throws ClassCastException { + return (CardDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `CashAppDetails`. If the actual instance is not `CashAppDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CashAppDetails` + * @throws ClassCastException if the instance is not `CashAppDetails` + */ + public CashAppDetails getCashAppDetails() throws ClassCastException { + return (CashAppDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `CellulantDetails`. If the actual instance is not + * `CellulantDetails`, the ClassCastException will be thrown. + * + * @return The actual instance of `CellulantDetails` + * @throws ClassCastException if the instance is not `CellulantDetails` + */ + public CellulantDetails getCellulantDetails() throws ClassCastException { + return (CellulantDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `DokuDetails`. If the actual instance is not `DokuDetails`, the + * ClassCastException will be thrown. + * + * @return The actual instance of `DokuDetails` + * @throws ClassCastException if the instance is not `DokuDetails` + */ + public DokuDetails getDokuDetails() throws ClassCastException { + return (DokuDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `DragonpayDetails`. If the actual instance is not + * `DragonpayDetails`, the ClassCastException will be thrown. + * + * @return The actual instance of `DragonpayDetails` + * @throws ClassCastException if the instance is not `DragonpayDetails` + */ + public DragonpayDetails getDragonpayDetails() throws ClassCastException { + return (DragonpayDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `EBankingFinlandDetails`. If the actual instance is not + * `EBankingFinlandDetails`, the ClassCastException will be thrown. + * + * @return The actual instance of `EBankingFinlandDetails` + * @throws ClassCastException if the instance is not `EBankingFinlandDetails` + */ + public EBankingFinlandDetails getEBankingFinlandDetails() throws ClassCastException { + return (EBankingFinlandDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `EcontextVoucherDetails`. If the actual instance is not + * `EcontextVoucherDetails`, the ClassCastException will be thrown. + * + * @return The actual instance of `EcontextVoucherDetails` + * @throws ClassCastException if the instance is not `EcontextVoucherDetails` + */ + public EcontextVoucherDetails getEcontextVoucherDetails() throws ClassCastException { + return (EcontextVoucherDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `EftDetails`. If the actual instance is not `EftDetails`, the + * ClassCastException will be thrown. + * + * @return The actual instance of `EftDetails` + * @throws ClassCastException if the instance is not `EftDetails` + */ + public EftDetails getEftDetails() throws ClassCastException { + return (EftDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `FastlaneDetails`. If the actual instance is not `FastlaneDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `FastlaneDetails` + * @throws ClassCastException if the instance is not `FastlaneDetails` + */ + public FastlaneDetails getFastlaneDetails() throws ClassCastException { + return (FastlaneDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `GenericIssuerPaymentMethodDetails`. If the actual instance is not + * `GenericIssuerPaymentMethodDetails`, the ClassCastException will be thrown. + * + * @return The actual instance of `GenericIssuerPaymentMethodDetails` + * @throws ClassCastException if the instance is not `GenericIssuerPaymentMethodDetails` + */ + public GenericIssuerPaymentMethodDetails getGenericIssuerPaymentMethodDetails() + throws ClassCastException { + return (GenericIssuerPaymentMethodDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `GooglePayDetails`. If the actual instance is not + * `GooglePayDetails`, the ClassCastException will be thrown. + * + * @return The actual instance of `GooglePayDetails` + * @throws ClassCastException if the instance is not `GooglePayDetails` + */ + public GooglePayDetails getGooglePayDetails() throws ClassCastException { + return (GooglePayDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `IdealDetails`. If the actual instance is not `IdealDetails`, the + * ClassCastException will be thrown. + * + * @return The actual instance of `IdealDetails` + * @throws ClassCastException if the instance is not `IdealDetails` + */ + public IdealDetails getIdealDetails() throws ClassCastException { + return (IdealDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `KlarnaDetails`. If the actual instance is not `KlarnaDetails`, the + * ClassCastException will be thrown. + * + * @return The actual instance of `KlarnaDetails` + * @throws ClassCastException if the instance is not `KlarnaDetails` + */ + public KlarnaDetails getKlarnaDetails() throws ClassCastException { + return (KlarnaDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `MasterpassDetails`. If the actual instance is not + * `MasterpassDetails`, the ClassCastException will be thrown. + * + * @return The actual instance of `MasterpassDetails` + * @throws ClassCastException if the instance is not `MasterpassDetails` + */ + public MasterpassDetails getMasterpassDetails() throws ClassCastException { + return (MasterpassDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `MbwayDetails`. If the actual instance is not `MbwayDetails`, the + * ClassCastException will be thrown. + * + * @return The actual instance of `MbwayDetails` + * @throws ClassCastException if the instance is not `MbwayDetails` + */ + public MbwayDetails getMbwayDetails() throws ClassCastException { + return (MbwayDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `MobilePayDetails`. If the actual instance is not + * `MobilePayDetails`, the ClassCastException will be thrown. + * + * @return The actual instance of `MobilePayDetails` + * @throws ClassCastException if the instance is not `MobilePayDetails` + */ + public MobilePayDetails getMobilePayDetails() throws ClassCastException { + return (MobilePayDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `MolPayDetails`. If the actual instance is not `MolPayDetails`, the + * ClassCastException will be thrown. + * + * @return The actual instance of `MolPayDetails` + * @throws ClassCastException if the instance is not `MolPayDetails` + */ + public MolPayDetails getMolPayDetails() throws ClassCastException { + return (MolPayDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `OpenInvoiceDetails`. If the actual instance is not + * `OpenInvoiceDetails`, the ClassCastException will be thrown. + * + * @return The actual instance of `OpenInvoiceDetails` + * @throws ClassCastException if the instance is not `OpenInvoiceDetails` + */ + public OpenInvoiceDetails getOpenInvoiceDetails() throws ClassCastException { + return (OpenInvoiceDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `PayByBankAISDirectDebitDetails`. If the actual instance is not + * `PayByBankAISDirectDebitDetails`, the ClassCastException will be thrown. + * + * @return The actual instance of `PayByBankAISDirectDebitDetails` + * @throws ClassCastException if the instance is not `PayByBankAISDirectDebitDetails` + */ + public PayByBankAISDirectDebitDetails getPayByBankAISDirectDebitDetails() + throws ClassCastException { + return (PayByBankAISDirectDebitDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `PayByBankDetails`. If the actual instance is not + * `PayByBankDetails`, the ClassCastException will be thrown. + * + * @return The actual instance of `PayByBankDetails` + * @throws ClassCastException if the instance is not `PayByBankDetails` + */ + public PayByBankDetails getPayByBankDetails() throws ClassCastException { + return (PayByBankDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `PayPalDetails`. If the actual instance is not `PayPalDetails`, the + * ClassCastException will be thrown. + * + * @return The actual instance of `PayPalDetails` + * @throws ClassCastException if the instance is not `PayPalDetails` + */ + public PayPalDetails getPayPalDetails() throws ClassCastException { + return (PayPalDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `PayPayDetails`. If the actual instance is not `PayPayDetails`, the + * ClassCastException will be thrown. + * + * @return The actual instance of `PayPayDetails` + * @throws ClassCastException if the instance is not `PayPayDetails` + */ + public PayPayDetails getPayPayDetails() throws ClassCastException { + return (PayPayDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `PayToDetails`. If the actual instance is not `PayToDetails`, the + * ClassCastException will be thrown. + * + * @return The actual instance of `PayToDetails` + * @throws ClassCastException if the instance is not `PayToDetails` + */ + public PayToDetails getPayToDetails() throws ClassCastException { + return (PayToDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `PayUUpiDetails`. If the actual instance is not `PayUUpiDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `PayUUpiDetails` + * @throws ClassCastException if the instance is not `PayUUpiDetails` + */ + public PayUUpiDetails getPayUUpiDetails() throws ClassCastException { + return (PayUUpiDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `PayWithGoogleDetails`. If the actual instance is not + * `PayWithGoogleDetails`, the ClassCastException will be thrown. + * + * @return The actual instance of `PayWithGoogleDetails` + * @throws ClassCastException if the instance is not `PayWithGoogleDetails` + */ + public PayWithGoogleDetails getPayWithGoogleDetails() throws ClassCastException { + return (PayWithGoogleDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `PaymentDetails`. If the actual instance is not `PaymentDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `PaymentDetails` + * @throws ClassCastException if the instance is not `PaymentDetails` + */ + public PaymentDetails getPaymentDetails() throws ClassCastException { + return (PaymentDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `PixDetails`. If the actual instance is not `PixDetails`, the + * ClassCastException will be thrown. + * + * @return The actual instance of `PixDetails` + * @throws ClassCastException if the instance is not `PixDetails` + */ + public PixDetails getPixDetails() throws ClassCastException { + return (PixDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `PseDetails`. If the actual instance is not `PseDetails`, the + * ClassCastException will be thrown. + * + * @return The actual instance of `PseDetails` + * @throws ClassCastException if the instance is not `PseDetails` + */ + public PseDetails getPseDetails() throws ClassCastException { + return (PseDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `RakutenPayDetails`. If the actual instance is not + * `RakutenPayDetails`, the ClassCastException will be thrown. + * + * @return The actual instance of `RakutenPayDetails` + * @throws ClassCastException if the instance is not `RakutenPayDetails` + */ + public RakutenPayDetails getRakutenPayDetails() throws ClassCastException { + return (RakutenPayDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `RatepayDetails`. If the actual instance is not `RatepayDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `RatepayDetails` + * @throws ClassCastException if the instance is not `RatepayDetails` + */ + public RatepayDetails getRatepayDetails() throws ClassCastException { + return (RatepayDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `RivertyDetails`. If the actual instance is not `RivertyDetails`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `RivertyDetails` + * @throws ClassCastException if the instance is not `RivertyDetails` + */ + public RivertyDetails getRivertyDetails() throws ClassCastException { + return (RivertyDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `SamsungPayDetails`. If the actual instance is not + * `SamsungPayDetails`, the ClassCastException will be thrown. + * + * @return The actual instance of `SamsungPayDetails` + * @throws ClassCastException if the instance is not `SamsungPayDetails` + */ + public SamsungPayDetails getSamsungPayDetails() throws ClassCastException { + return (SamsungPayDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `SepaDirectDebitDetails`. If the actual instance is not + * `SepaDirectDebitDetails`, the ClassCastException will be thrown. + * + * @return The actual instance of `SepaDirectDebitDetails` + * @throws ClassCastException if the instance is not `SepaDirectDebitDetails` + */ + public SepaDirectDebitDetails getSepaDirectDebitDetails() throws ClassCastException { + return (SepaDirectDebitDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `StoredPaymentMethodDetails`. If the actual instance is not + * `StoredPaymentMethodDetails`, the ClassCastException will be thrown. + * + * @return The actual instance of `StoredPaymentMethodDetails` + * @throws ClassCastException if the instance is not `StoredPaymentMethodDetails` + */ + public StoredPaymentMethodDetails getStoredPaymentMethodDetails() throws ClassCastException { + return (StoredPaymentMethodDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `TwintDetails`. If the actual instance is not `TwintDetails`, the + * ClassCastException will be thrown. + * + * @return The actual instance of `TwintDetails` + * @throws ClassCastException if the instance is not `TwintDetails` + */ + public TwintDetails getTwintDetails() throws ClassCastException { + return (TwintDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `UpiCollectDetails`. If the actual instance is not + * `UpiCollectDetails`, the ClassCastException will be thrown. + * + * @return The actual instance of `UpiCollectDetails` + * @throws ClassCastException if the instance is not `UpiCollectDetails` + */ + public UpiCollectDetails getUpiCollectDetails() throws ClassCastException { + return (UpiCollectDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `UpiIntentDetails`. If the actual instance is not + * `UpiIntentDetails`, the ClassCastException will be thrown. + * + * @return The actual instance of `UpiIntentDetails` + * @throws ClassCastException if the instance is not `UpiIntentDetails` + */ + public UpiIntentDetails getUpiIntentDetails() throws ClassCastException { + return (UpiIntentDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `VippsDetails`. If the actual instance is not `VippsDetails`, the + * ClassCastException will be thrown. + * + * @return The actual instance of `VippsDetails` + * @throws ClassCastException if the instance is not `VippsDetails` + */ + public VippsDetails getVippsDetails() throws ClassCastException { + return (VippsDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `VisaCheckoutDetails`. If the actual instance is not + * `VisaCheckoutDetails`, the ClassCastException will be thrown. + * + * @return The actual instance of `VisaCheckoutDetails` + * @throws ClassCastException if the instance is not `VisaCheckoutDetails` + */ + public VisaCheckoutDetails getVisaCheckoutDetails() throws ClassCastException { + return (VisaCheckoutDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `WeChatPayDetails`. If the actual instance is not + * `WeChatPayDetails`, the ClassCastException will be thrown. + * + * @return The actual instance of `WeChatPayDetails` + * @throws ClassCastException if the instance is not `WeChatPayDetails` + */ + public WeChatPayDetails getWeChatPayDetails() throws ClassCastException { + return (WeChatPayDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `WeChatPayMiniProgramDetails`. If the actual instance is not + * `WeChatPayMiniProgramDetails`, the ClassCastException will be thrown. + * + * @return The actual instance of `WeChatPayMiniProgramDetails` + * @throws ClassCastException if the instance is not `WeChatPayMiniProgramDetails` + */ + public WeChatPayMiniProgramDetails getWeChatPayMiniProgramDetails() throws ClassCastException { + return (WeChatPayMiniProgramDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `ZipDetails`. If the actual instance is not `ZipDetails`, the + * ClassCastException will be thrown. + * + * @return The actual instance of `ZipDetails` + * @throws ClassCastException if the instance is not `ZipDetails` + */ + public ZipDetails getZipDetails() throws ClassCastException { + return (ZipDetails) super.getActualInstance(); + } + + /** + * Create an instance of CheckoutPaymentMethod given an JSON string + * + * @param jsonString JSON string + * @return An instance of CheckoutPaymentMethod + * @throws IOException if the JSON string is invalid with respect to CheckoutPaymentMethod + */ + public static CheckoutPaymentMethod fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, CheckoutPaymentMethod.class); + } + + /** + * Convert an instance of CheckoutPaymentMethod to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutQrCodeAction.java b/src/main/java/com/adyen/model/checkout/CheckoutQrCodeAction.java index 3a92c11bc..fe798f762 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutQrCodeAction.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutQrCodeAction.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * CheckoutQrCodeAction - */ +/** CheckoutQrCodeAction */ @JsonPropertyOrder({ CheckoutQrCodeAction.JSON_PROPERTY_EXPIRES_AT, CheckoutQrCodeAction.JSON_PROPERTY_PAYMENT_DATA, @@ -35,7 +30,6 @@ CheckoutQrCodeAction.JSON_PROPERTY_TYPE, CheckoutQrCodeAction.JSON_PROPERTY_URL }) - public class CheckoutQrCodeAction { public static final String JSON_PROPERTY_EXPIRES_AT = "expiresAt"; private String expiresAt; @@ -49,11 +43,8 @@ public class CheckoutQrCodeAction { public static final String JSON_PROPERTY_QR_CODE_DATA = "qrCodeData"; private String qrCodeData; - /** - * **qrCode** - */ + /** **qrCode** */ public enum TypeEnum { - QRCODE(String.valueOf("qrCode")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -61,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -82,7 +73,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -93,8 +88,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_URL = "url"; private String url; - public CheckoutQrCodeAction() { - } + public CheckoutQrCodeAction() {} /** * Expiry time of the QR code. @@ -109,6 +103,7 @@ public CheckoutQrCodeAction expiresAt(String expiresAt) { /** * Expiry time of the QR code. + * * @return expiresAt Expiry time of the QR code. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @@ -141,6 +136,7 @@ public CheckoutQrCodeAction paymentData(String paymentData) { /** * Encoded payment data. + * * @return paymentData Encoded payment data. */ @JsonProperty(JSON_PROPERTY_PAYMENT_DATA) @@ -173,6 +169,7 @@ public CheckoutQrCodeAction paymentMethodType(String paymentMethodType) { /** * Specifies the payment method. + * * @return paymentMethodType Specifies the payment method. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_TYPE) @@ -205,6 +202,7 @@ public CheckoutQrCodeAction qrCodeData(String qrCodeData) { /** * The contents of the QR code as a UTF8 string. + * * @return qrCodeData The contents of the QR code as a UTF8 string. */ @JsonProperty(JSON_PROPERTY_QR_CODE_DATA) @@ -237,6 +235,7 @@ public CheckoutQrCodeAction type(TypeEnum type) { /** * **qrCode** + * * @return type **qrCode** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -269,6 +268,7 @@ public CheckoutQrCodeAction url(String url) { /** * Specifies the URL to redirect to. + * * @return url Specifies the URL to redirect to. */ @JsonProperty(JSON_PROPERTY_URL) @@ -288,9 +288,7 @@ public void setUrl(String url) { this.url = url; } - /** - * Return true if this CheckoutQrCodeAction object is equal to o. - */ + /** Return true if this CheckoutQrCodeAction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -300,12 +298,12 @@ public boolean equals(Object o) { return false; } CheckoutQrCodeAction checkoutQrCodeAction = (CheckoutQrCodeAction) o; - return Objects.equals(this.expiresAt, checkoutQrCodeAction.expiresAt) && - Objects.equals(this.paymentData, checkoutQrCodeAction.paymentData) && - Objects.equals(this.paymentMethodType, checkoutQrCodeAction.paymentMethodType) && - Objects.equals(this.qrCodeData, checkoutQrCodeAction.qrCodeData) && - Objects.equals(this.type, checkoutQrCodeAction.type) && - Objects.equals(this.url, checkoutQrCodeAction.url); + return Objects.equals(this.expiresAt, checkoutQrCodeAction.expiresAt) + && Objects.equals(this.paymentData, checkoutQrCodeAction.paymentData) + && Objects.equals(this.paymentMethodType, checkoutQrCodeAction.paymentMethodType) + && Objects.equals(this.qrCodeData, checkoutQrCodeAction.qrCodeData) + && Objects.equals(this.type, checkoutQrCodeAction.type) + && Objects.equals(this.url, checkoutQrCodeAction.url); } @Override @@ -328,8 +326,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -338,21 +335,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CheckoutQrCodeAction given an JSON string * * @param jsonString JSON string * @return An instance of CheckoutQrCodeAction - * @throws JsonProcessingException if the JSON string is invalid with respect to CheckoutQrCodeAction + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CheckoutQrCodeAction */ public static CheckoutQrCodeAction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CheckoutQrCodeAction.class); } -/** - * Convert an instance of CheckoutQrCodeAction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CheckoutQrCodeAction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutRedirectAction.java b/src/main/java/com/adyen/model/checkout/CheckoutRedirectAction.java index 7c40a7ff4..20acd4339 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutRedirectAction.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutRedirectAction.java @@ -2,33 +2,28 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * CheckoutRedirectAction - */ +/** CheckoutRedirectAction */ @JsonPropertyOrder({ CheckoutRedirectAction.JSON_PROPERTY_DATA, CheckoutRedirectAction.JSON_PROPERTY_METHOD, @@ -36,7 +31,6 @@ CheckoutRedirectAction.JSON_PROPERTY_TYPE, CheckoutRedirectAction.JSON_PROPERTY_URL }) - public class CheckoutRedirectAction { public static final String JSON_PROPERTY_DATA = "data"; private Map data; @@ -47,11 +41,8 @@ public class CheckoutRedirectAction { public static final String JSON_PROPERTY_PAYMENT_METHOD_TYPE = "paymentMethodType"; private String paymentMethodType; - /** - * **redirect** - */ + /** **redirect** */ public enum TypeEnum { - REDIRECT(String.valueOf("redirect")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -59,7 +50,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -80,7 +71,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -91,13 +86,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_URL = "url"; private String url; - public CheckoutRedirectAction() { - } + public CheckoutRedirectAction() {} /** * When the redirect URL must be accessed via POST, use this data to post to the redirect URL. * - * @param data When the redirect URL must be accessed via POST, use this data to post to the redirect URL. + * @param data When the redirect URL must be accessed via POST, use this data to post to the + * redirect URL. * @return the current {@code CheckoutRedirectAction} instance, allowing for method chaining */ public CheckoutRedirectAction data(Map data) { @@ -115,7 +110,9 @@ public CheckoutRedirectAction putDataItem(String key, String dataItem) { /** * When the redirect URL must be accessed via POST, use this data to post to the redirect URL. - * @return data When the redirect URL must be accessed via POST, use this data to post to the redirect URL. + * + * @return data When the redirect URL must be accessed via POST, use this data to post to the + * redirect URL. */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,7 +123,8 @@ public Map getData() { /** * When the redirect URL must be accessed via POST, use this data to post to the redirect URL. * - * @param data When the redirect URL must be accessed via POST, use this data to post to the redirect URL. + * @param data When the redirect URL must be accessed via POST, use this data to post to the + * redirect URL. */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,6 +145,7 @@ public CheckoutRedirectAction method(String method) { /** * Specifies the HTTP method, for example GET or POST. + * * @return method Specifies the HTTP method, for example GET or POST. */ @JsonProperty(JSON_PROPERTY_METHOD) @@ -179,6 +178,7 @@ public CheckoutRedirectAction paymentMethodType(String paymentMethodType) { /** * Specifies the payment method. + * * @return paymentMethodType Specifies the payment method. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_TYPE) @@ -211,6 +211,7 @@ public CheckoutRedirectAction type(TypeEnum type) { /** * **redirect** + * * @return type **redirect** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -243,6 +244,7 @@ public CheckoutRedirectAction url(String url) { /** * Specifies the URL to redirect to. + * * @return url Specifies the URL to redirect to. */ @JsonProperty(JSON_PROPERTY_URL) @@ -262,9 +264,7 @@ public void setUrl(String url) { this.url = url; } - /** - * Return true if this CheckoutRedirectAction object is equal to o. - */ + /** Return true if this CheckoutRedirectAction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -274,11 +274,11 @@ public boolean equals(Object o) { return false; } CheckoutRedirectAction checkoutRedirectAction = (CheckoutRedirectAction) o; - return Objects.equals(this.data, checkoutRedirectAction.data) && - Objects.equals(this.method, checkoutRedirectAction.method) && - Objects.equals(this.paymentMethodType, checkoutRedirectAction.paymentMethodType) && - Objects.equals(this.type, checkoutRedirectAction.type) && - Objects.equals(this.url, checkoutRedirectAction.url); + return Objects.equals(this.data, checkoutRedirectAction.data) + && Objects.equals(this.method, checkoutRedirectAction.method) + && Objects.equals(this.paymentMethodType, checkoutRedirectAction.paymentMethodType) + && Objects.equals(this.type, checkoutRedirectAction.type) + && Objects.equals(this.url, checkoutRedirectAction.url); } @Override @@ -300,8 +300,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -310,21 +309,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CheckoutRedirectAction given an JSON string * * @param jsonString JSON string * @return An instance of CheckoutRedirectAction - * @throws JsonProcessingException if the JSON string is invalid with respect to CheckoutRedirectAction + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CheckoutRedirectAction */ public static CheckoutRedirectAction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CheckoutRedirectAction.class); } -/** - * Convert an instance of CheckoutRedirectAction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CheckoutRedirectAction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutSDKAction.java b/src/main/java/com/adyen/model/checkout/CheckoutSDKAction.java index 43b782732..77dd438e3 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutSDKAction.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutSDKAction.java @@ -2,33 +2,28 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * CheckoutSDKAction - */ +/** CheckoutSDKAction */ @JsonPropertyOrder({ CheckoutSDKAction.JSON_PROPERTY_PAYMENT_DATA, CheckoutSDKAction.JSON_PROPERTY_PAYMENT_METHOD_TYPE, @@ -36,7 +31,6 @@ CheckoutSDKAction.JSON_PROPERTY_TYPE, CheckoutSDKAction.JSON_PROPERTY_URL }) - public class CheckoutSDKAction { public static final String JSON_PROPERTY_PAYMENT_DATA = "paymentData"; private String paymentData; @@ -47,11 +41,8 @@ public class CheckoutSDKAction { public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; private Map sdkData; - /** - * The type of the action. - */ + /** The type of the action. */ public enum TypeEnum { - SDK(String.valueOf("sdk")), WECHATPAYSDK(String.valueOf("wechatpaySDK")); @@ -61,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -82,7 +73,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -93,8 +88,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_URL = "url"; private String url; - public CheckoutSDKAction() { - } + public CheckoutSDKAction() {} /** * Encoded payment data. @@ -109,6 +103,7 @@ public CheckoutSDKAction paymentData(String paymentData) { /** * Encoded payment data. + * * @return paymentData Encoded payment data. */ @JsonProperty(JSON_PROPERTY_PAYMENT_DATA) @@ -141,6 +136,7 @@ public CheckoutSDKAction paymentMethodType(String paymentMethodType) { /** * Specifies the payment method. + * * @return paymentMethodType Specifies the payment method. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_TYPE) @@ -181,6 +177,7 @@ public CheckoutSDKAction putSdkDataItem(String key, String sdkDataItem) { /** * The data to pass to the SDK. + * * @return sdkData The data to pass to the SDK. */ @JsonProperty(JSON_PROPERTY_SDK_DATA) @@ -213,6 +210,7 @@ public CheckoutSDKAction type(TypeEnum type) { /** * The type of the action. + * * @return type The type of the action. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -245,6 +243,7 @@ public CheckoutSDKAction url(String url) { /** * Specifies the URL to redirect to. + * * @return url Specifies the URL to redirect to. */ @JsonProperty(JSON_PROPERTY_URL) @@ -264,9 +263,7 @@ public void setUrl(String url) { this.url = url; } - /** - * Return true if this CheckoutSDKAction object is equal to o. - */ + /** Return true if this CheckoutSDKAction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -276,11 +273,11 @@ public boolean equals(Object o) { return false; } CheckoutSDKAction checkoutSDKAction = (CheckoutSDKAction) o; - return Objects.equals(this.paymentData, checkoutSDKAction.paymentData) && - Objects.equals(this.paymentMethodType, checkoutSDKAction.paymentMethodType) && - Objects.equals(this.sdkData, checkoutSDKAction.sdkData) && - Objects.equals(this.type, checkoutSDKAction.type) && - Objects.equals(this.url, checkoutSDKAction.url); + return Objects.equals(this.paymentData, checkoutSDKAction.paymentData) + && Objects.equals(this.paymentMethodType, checkoutSDKAction.paymentMethodType) + && Objects.equals(this.sdkData, checkoutSDKAction.sdkData) + && Objects.equals(this.type, checkoutSDKAction.type) + && Objects.equals(this.url, checkoutSDKAction.url); } @Override @@ -302,8 +299,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -312,7 +308,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CheckoutSDKAction given an JSON string * * @param jsonString JSON string @@ -322,11 +318,12 @@ private String toIndentedString(Object o) { public static CheckoutSDKAction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CheckoutSDKAction.class); } -/** - * Convert an instance of CheckoutSDKAction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CheckoutSDKAction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutSessionInstallmentOption.java b/src/main/java/com/adyen/model/checkout/CheckoutSessionInstallmentOption.java index 602a7f6e9..7dba3c069 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutSessionInstallmentOption.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutSessionInstallmentOption.java @@ -2,45 +2,36 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * CheckoutSessionInstallmentOption - */ +/** CheckoutSessionInstallmentOption */ @JsonPropertyOrder({ CheckoutSessionInstallmentOption.JSON_PROPERTY_PLANS, CheckoutSessionInstallmentOption.JSON_PROPERTY_PRESELECTED_VALUE, CheckoutSessionInstallmentOption.JSON_PROPERTY_VALUES }) - public class CheckoutSessionInstallmentOption { - /** - * Gets or Sets plans - */ + /** Gets or Sets plans */ public enum PlansEnum { - BONUS(String.valueOf("bonus")), BUYNOW_PAYLATER(String.valueOf("buynow_paylater")), @@ -66,7 +57,7 @@ public enum PlansEnum { private String value; PlansEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -87,7 +78,11 @@ public static PlansEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PlansEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PlansEnum.values())); + LOG.warning( + "PlansEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PlansEnum.values())); return null; } } @@ -101,14 +96,20 @@ public static PlansEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUES = "values"; private List values; - public CheckoutSessionInstallmentOption() { - } + public CheckoutSessionInstallmentOption() {} /** - * Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving*** **bonus** * **with_interest** * **buynow_paylater** * **nointerest_bonus** * **interest_bonus** * **refund_prctg** * **nointeres_refund_prctg** * **interes_refund_prctg** + * Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * + * **regular** * **revolving*** **bonus** * **with_interest** * **buynow_paylater** * + * **nointerest_bonus** * **interest_bonus** * **refund_prctg** * **nointeres_refund_prctg** * + * **interes_refund_prctg** * - * @param plans Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving*** **bonus** * **with_interest** * **buynow_paylater** * **nointerest_bonus** * **interest_bonus** * **refund_prctg** * **nointeres_refund_prctg** * **interes_refund_prctg** - * @return the current {@code CheckoutSessionInstallmentOption} instance, allowing for method chaining + * @param plans Defines the type of installment plan. If not set, defaults to **regular**. + * Possible values: * **regular** * **revolving*** **bonus** * **with_interest** * + * **buynow_paylater** * **nointerest_bonus** * **interest_bonus** * **refund_prctg** * + * **nointeres_refund_prctg** * **interes_refund_prctg** + * @return the current {@code CheckoutSessionInstallmentOption} instance, allowing for method + * chaining */ public CheckoutSessionInstallmentOption plans(List plans) { this.plans = plans; @@ -124,8 +125,15 @@ public CheckoutSessionInstallmentOption addPlansItem(PlansEnum plansItem) { } /** - * Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving*** **bonus** * **with_interest** * **buynow_paylater** * **nointerest_bonus** * **interest_bonus** * **refund_prctg** * **nointeres_refund_prctg** * **interes_refund_prctg** - * @return plans Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving*** **bonus** * **with_interest** * **buynow_paylater** * **nointerest_bonus** * **interest_bonus** * **refund_prctg** * **nointeres_refund_prctg** * **interes_refund_prctg** + * Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * + * **regular** * **revolving*** **bonus** * **with_interest** * **buynow_paylater** * + * **nointerest_bonus** * **interest_bonus** * **refund_prctg** * **nointeres_refund_prctg** * + * **interes_refund_prctg** + * + * @return plans Defines the type of installment plan. If not set, defaults to **regular**. + * Possible values: * **regular** * **revolving*** **bonus** * **with_interest** * + * **buynow_paylater** * **nointerest_bonus** * **interest_bonus** * **refund_prctg** * + * **nointeres_refund_prctg** * **interes_refund_prctg** */ @JsonProperty(JSON_PROPERTY_PLANS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -134,9 +142,15 @@ public List getPlans() { } /** - * Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving*** **bonus** * **with_interest** * **buynow_paylater** * **nointerest_bonus** * **interest_bonus** * **refund_prctg** * **nointeres_refund_prctg** * **interes_refund_prctg** + * Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * + * **regular** * **revolving*** **bonus** * **with_interest** * **buynow_paylater** * + * **nointerest_bonus** * **interest_bonus** * **refund_prctg** * **nointeres_refund_prctg** * + * **interes_refund_prctg** * - * @param plans Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving*** **bonus** * **with_interest** * **buynow_paylater** * **nointerest_bonus** * **interest_bonus** * **refund_prctg** * **nointeres_refund_prctg** * **interes_refund_prctg** + * @param plans Defines the type of installment plan. If not set, defaults to **regular**. + * Possible values: * **regular** * **revolving*** **bonus** * **with_interest** * + * **buynow_paylater** * **nointerest_bonus** * **interest_bonus** * **refund_prctg** * + * **nointeres_refund_prctg** * **interes_refund_prctg** */ @JsonProperty(JSON_PROPERTY_PLANS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,7 +162,8 @@ public void setPlans(List plans) { * Preselected number of installments offered for this payment method. * * @param preselectedValue Preselected number of installments offered for this payment method. - * @return the current {@code CheckoutSessionInstallmentOption} instance, allowing for method chaining + * @return the current {@code CheckoutSessionInstallmentOption} instance, allowing for method + * chaining */ public CheckoutSessionInstallmentOption preselectedValue(Integer preselectedValue) { this.preselectedValue = preselectedValue; @@ -157,6 +172,7 @@ public CheckoutSessionInstallmentOption preselectedValue(Integer preselectedValu /** * Preselected number of installments offered for this payment method. + * * @return preselectedValue Preselected number of installments offered for this payment method. */ @JsonProperty(JSON_PROPERTY_PRESELECTED_VALUE) @@ -177,10 +193,13 @@ public void setPreselectedValue(Integer preselectedValue) { } /** - * An array of the number of installments that the shopper can choose from. For example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. + * An array of the number of installments that the shopper can choose from. For example, + * **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. * - * @param values An array of the number of installments that the shopper can choose from. For example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. - * @return the current {@code CheckoutSessionInstallmentOption} instance, allowing for method chaining + * @param values An array of the number of installments that the shopper can choose from. For + * example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. + * @return the current {@code CheckoutSessionInstallmentOption} instance, allowing for method + * chaining */ public CheckoutSessionInstallmentOption values(List values) { this.values = values; @@ -196,8 +215,11 @@ public CheckoutSessionInstallmentOption addValuesItem(Integer valuesItem) { } /** - * An array of the number of installments that the shopper can choose from. For example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. - * @return values An array of the number of installments that the shopper can choose from. For example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. + * An array of the number of installments that the shopper can choose from. For example, + * **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. + * + * @return values An array of the number of installments that the shopper can choose from. For + * example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. */ @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -206,9 +228,11 @@ public List getValues() { } /** - * An array of the number of installments that the shopper can choose from. For example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. + * An array of the number of installments that the shopper can choose from. For example, + * **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. * - * @param values An array of the number of installments that the shopper can choose from. For example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. + * @param values An array of the number of installments that the shopper can choose from. For + * example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. */ @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -216,9 +240,7 @@ public void setValues(List values) { this.values = values; } - /** - * Return true if this CheckoutSessionInstallmentOption object is equal to o. - */ + /** Return true if this CheckoutSessionInstallmentOption object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -227,10 +249,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CheckoutSessionInstallmentOption checkoutSessionInstallmentOption = (CheckoutSessionInstallmentOption) o; - return Objects.equals(this.plans, checkoutSessionInstallmentOption.plans) && - Objects.equals(this.preselectedValue, checkoutSessionInstallmentOption.preselectedValue) && - Objects.equals(this.values, checkoutSessionInstallmentOption.values); + CheckoutSessionInstallmentOption checkoutSessionInstallmentOption = + (CheckoutSessionInstallmentOption) o; + return Objects.equals(this.plans, checkoutSessionInstallmentOption.plans) + && Objects.equals(this.preselectedValue, checkoutSessionInstallmentOption.preselectedValue) + && Objects.equals(this.values, checkoutSessionInstallmentOption.values); } @Override @@ -250,8 +273,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -260,21 +282,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CheckoutSessionInstallmentOption given an JSON string * * @param jsonString JSON string * @return An instance of CheckoutSessionInstallmentOption - * @throws JsonProcessingException if the JSON string is invalid with respect to CheckoutSessionInstallmentOption + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CheckoutSessionInstallmentOption */ - public static CheckoutSessionInstallmentOption fromJson(String jsonString) throws JsonProcessingException { + public static CheckoutSessionInstallmentOption fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CheckoutSessionInstallmentOption.class); } -/** - * Convert an instance of CheckoutSessionInstallmentOption to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CheckoutSessionInstallmentOption to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutSessionThreeDS2RequestData.java b/src/main/java/com/adyen/model/checkout/CheckoutSessionThreeDS2RequestData.java index ae5402acd..f8bf8c289 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutSessionThreeDS2RequestData.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutSessionThreeDS2RequestData.java @@ -2,39 +2,32 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Phone; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * CheckoutSessionThreeDS2RequestData - */ +/** CheckoutSessionThreeDS2RequestData */ @JsonPropertyOrder({ CheckoutSessionThreeDS2RequestData.JSON_PROPERTY_HOME_PHONE, CheckoutSessionThreeDS2RequestData.JSON_PROPERTY_MOBILE_PHONE, CheckoutSessionThreeDS2RequestData.JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND, CheckoutSessionThreeDS2RequestData.JSON_PROPERTY_WORK_PHONE }) - public class CheckoutSessionThreeDS2RequestData { public static final String JSON_PROPERTY_HOME_PHONE = "homePhone"; private Phone homePhone; @@ -43,10 +36,12 @@ public class CheckoutSessionThreeDS2RequestData { private Phone mobilePhone; /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No + * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor + * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional + * risk analysis is already performed) * **06** — Data Only */ public enum ThreeDSRequestorChallengeIndEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -59,12 +54,13 @@ public enum ThreeDSRequestorChallengeIndEnum { _06(String.valueOf("06")); - private static final Logger LOG = Logger.getLogger(ThreeDSRequestorChallengeIndEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(ThreeDSRequestorChallengeIndEnum.class.getName()); private String value; ThreeDSRequestorChallengeIndEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -85,25 +81,30 @@ public static ThreeDSRequestorChallengeIndEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ThreeDSRequestorChallengeIndEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ThreeDSRequestorChallengeIndEnum.values())); + LOG.warning( + "ThreeDSRequestorChallengeIndEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ThreeDSRequestorChallengeIndEnum.values())); return null; } } - public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND = "threeDSRequestorChallengeInd"; + public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND = + "threeDSRequestorChallengeInd"; private ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd; public static final String JSON_PROPERTY_WORK_PHONE = "workPhone"; private Phone workPhone; - public CheckoutSessionThreeDS2RequestData() { - } + public CheckoutSessionThreeDS2RequestData() {} /** * homePhone * - * @param homePhone - * @return the current {@code CheckoutSessionThreeDS2RequestData} instance, allowing for method chaining + * @param homePhone + * @return the current {@code CheckoutSessionThreeDS2RequestData} instance, allowing for method + * chaining */ public CheckoutSessionThreeDS2RequestData homePhone(Phone homePhone) { this.homePhone = homePhone; @@ -112,7 +113,8 @@ public CheckoutSessionThreeDS2RequestData homePhone(Phone homePhone) { /** * Get homePhone - * @return homePhone + * + * @return homePhone */ @JsonProperty(JSON_PROPERTY_HOME_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,7 +125,7 @@ public Phone getHomePhone() { /** * homePhone * - * @param homePhone + * @param homePhone */ @JsonProperty(JSON_PROPERTY_HOME_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -134,8 +136,9 @@ public void setHomePhone(Phone homePhone) { /** * mobilePhone * - * @param mobilePhone - * @return the current {@code CheckoutSessionThreeDS2RequestData} instance, allowing for method chaining + * @param mobilePhone + * @return the current {@code CheckoutSessionThreeDS2RequestData} instance, allowing for method + * chaining */ public CheckoutSessionThreeDS2RequestData mobilePhone(Phone mobilePhone) { this.mobilePhone = mobilePhone; @@ -144,7 +147,8 @@ public CheckoutSessionThreeDS2RequestData mobilePhone(Phone mobilePhone) { /** * Get mobilePhone - * @return mobilePhone + * + * @return mobilePhone */ @JsonProperty(JSON_PROPERTY_MOBILE_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -155,7 +159,7 @@ public Phone getMobilePhone() { /** * mobilePhone * - * @param mobilePhone + * @param mobilePhone */ @JsonProperty(JSON_PROPERTY_MOBILE_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -164,19 +168,36 @@ public void setMobilePhone(Phone mobilePhone) { } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No + * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor + * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional + * risk analysis is already performed) * **06** — Data Only * - * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only - * @return the current {@code CheckoutSessionThreeDS2RequestData} instance, allowing for method chaining + * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this + * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * + * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested + * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * + * **06** — Data Only + * @return the current {@code CheckoutSessionThreeDS2RequestData} instance, allowing for method + * chaining */ - public CheckoutSessionThreeDS2RequestData threeDSRequestorChallengeInd(ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { + public CheckoutSessionThreeDS2RequestData threeDSRequestorChallengeInd( + ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { this.threeDSRequestorChallengeInd = threeDSRequestorChallengeInd; return this; } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only - * @return threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No + * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor + * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional + * risk analysis is already performed) * **06** — Data Only + * + * @return threeDSRequestorChallengeInd Indicates whether a challenge is requested for this + * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * + * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested + * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * + * **06** — Data Only */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,21 +206,30 @@ public ThreeDSRequestorChallengeIndEnum getThreeDSRequestorChallengeInd() { } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No + * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor + * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional + * risk analysis is already performed) * **06** — Data Only * - * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this + * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * + * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested + * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * + * **06** — Data Only */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setThreeDSRequestorChallengeInd(ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { + public void setThreeDSRequestorChallengeInd( + ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { this.threeDSRequestorChallengeInd = threeDSRequestorChallengeInd; } /** * workPhone * - * @param workPhone - * @return the current {@code CheckoutSessionThreeDS2RequestData} instance, allowing for method chaining + * @param workPhone + * @return the current {@code CheckoutSessionThreeDS2RequestData} instance, allowing for method + * chaining */ public CheckoutSessionThreeDS2RequestData workPhone(Phone workPhone) { this.workPhone = workPhone; @@ -208,7 +238,8 @@ public CheckoutSessionThreeDS2RequestData workPhone(Phone workPhone) { /** * Get workPhone - * @return workPhone + * + * @return workPhone */ @JsonProperty(JSON_PROPERTY_WORK_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,7 +250,7 @@ public Phone getWorkPhone() { /** * workPhone * - * @param workPhone + * @param workPhone */ @JsonProperty(JSON_PROPERTY_WORK_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -227,9 +258,7 @@ public void setWorkPhone(Phone workPhone) { this.workPhone = workPhone; } - /** - * Return true if this CheckoutSessionThreeDS2RequestData object is equal to o. - */ + /** Return true if this CheckoutSessionThreeDS2RequestData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -238,11 +267,14 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CheckoutSessionThreeDS2RequestData checkoutSessionThreeDS2RequestData = (CheckoutSessionThreeDS2RequestData) o; - return Objects.equals(this.homePhone, checkoutSessionThreeDS2RequestData.homePhone) && - Objects.equals(this.mobilePhone, checkoutSessionThreeDS2RequestData.mobilePhone) && - Objects.equals(this.threeDSRequestorChallengeInd, checkoutSessionThreeDS2RequestData.threeDSRequestorChallengeInd) && - Objects.equals(this.workPhone, checkoutSessionThreeDS2RequestData.workPhone); + CheckoutSessionThreeDS2RequestData checkoutSessionThreeDS2RequestData = + (CheckoutSessionThreeDS2RequestData) o; + return Objects.equals(this.homePhone, checkoutSessionThreeDS2RequestData.homePhone) + && Objects.equals(this.mobilePhone, checkoutSessionThreeDS2RequestData.mobilePhone) + && Objects.equals( + this.threeDSRequestorChallengeInd, + checkoutSessionThreeDS2RequestData.threeDSRequestorChallengeInd) + && Objects.equals(this.workPhone, checkoutSessionThreeDS2RequestData.workPhone); } @Override @@ -256,15 +288,16 @@ public String toString() { sb.append("class CheckoutSessionThreeDS2RequestData {\n"); sb.append(" homePhone: ").append(toIndentedString(homePhone)).append("\n"); sb.append(" mobilePhone: ").append(toIndentedString(mobilePhone)).append("\n"); - sb.append(" threeDSRequestorChallengeInd: ").append(toIndentedString(threeDSRequestorChallengeInd)).append("\n"); + sb.append(" threeDSRequestorChallengeInd: ") + .append(toIndentedString(threeDSRequestorChallengeInd)) + .append("\n"); sb.append(" workPhone: ").append(toIndentedString(workPhone)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -273,21 +306,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CheckoutSessionThreeDS2RequestData given an JSON string * * @param jsonString JSON string * @return An instance of CheckoutSessionThreeDS2RequestData - * @throws JsonProcessingException if the JSON string is invalid with respect to CheckoutSessionThreeDS2RequestData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CheckoutSessionThreeDS2RequestData */ - public static CheckoutSessionThreeDS2RequestData fromJson(String jsonString) throws JsonProcessingException { + public static CheckoutSessionThreeDS2RequestData fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CheckoutSessionThreeDS2RequestData.class); } -/** - * Convert an instance of CheckoutSessionThreeDS2RequestData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CheckoutSessionThreeDS2RequestData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutThreeDS2Action.java b/src/main/java/com/adyen/model/checkout/CheckoutThreeDS2Action.java index 93714a184..088f45254 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutThreeDS2Action.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutThreeDS2Action.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * CheckoutThreeDS2Action - */ +/** CheckoutThreeDS2Action */ @JsonPropertyOrder({ CheckoutThreeDS2Action.JSON_PROPERTY_AUTHORISATION_TOKEN, CheckoutThreeDS2Action.JSON_PROPERTY_PAYMENT_DATA, @@ -36,7 +31,6 @@ CheckoutThreeDS2Action.JSON_PROPERTY_TYPE, CheckoutThreeDS2Action.JSON_PROPERTY_URL }) - public class CheckoutThreeDS2Action { public static final String JSON_PROPERTY_AUTHORISATION_TOKEN = "authorisationToken"; private String authorisationToken; @@ -53,11 +47,8 @@ public class CheckoutThreeDS2Action { public static final String JSON_PROPERTY_TOKEN = "token"; private String token; - /** - * **threeDS2** - */ + /** **threeDS2** */ public enum TypeEnum { - THREEDS2(String.valueOf("threeDS2")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -65,7 +56,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -86,7 +77,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -97,8 +92,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_URL = "url"; private String url; - public CheckoutThreeDS2Action() { - } + public CheckoutThreeDS2Action() {} /** * A token needed to authorise a payment. @@ -113,6 +107,7 @@ public CheckoutThreeDS2Action authorisationToken(String authorisationToken) { /** * A token needed to authorise a payment. + * * @return authorisationToken A token needed to authorise a payment. */ @JsonProperty(JSON_PROPERTY_AUTHORISATION_TOKEN) @@ -145,6 +140,7 @@ public CheckoutThreeDS2Action paymentData(String paymentData) { /** * Encoded payment data. + * * @return paymentData Encoded payment data. */ @JsonProperty(JSON_PROPERTY_PAYMENT_DATA) @@ -177,6 +173,7 @@ public CheckoutThreeDS2Action paymentMethodType(String paymentMethodType) { /** * Specifies the payment method. + * * @return paymentMethodType Specifies the payment method. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_TYPE) @@ -209,6 +206,7 @@ public CheckoutThreeDS2Action subtype(String subtype) { /** * A subtype of the token. + * * @return subtype A subtype of the token. */ @JsonProperty(JSON_PROPERTY_SUBTYPE) @@ -241,6 +239,7 @@ public CheckoutThreeDS2Action token(String token) { /** * A token to pass to the 3DS2 Component to get the fingerprint. + * * @return token A token to pass to the 3DS2 Component to get the fingerprint. */ @JsonProperty(JSON_PROPERTY_TOKEN) @@ -273,6 +272,7 @@ public CheckoutThreeDS2Action type(TypeEnum type) { /** * **threeDS2** + * * @return type **threeDS2** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -305,6 +305,7 @@ public CheckoutThreeDS2Action url(String url) { /** * Specifies the URL to redirect to. + * * @return url Specifies the URL to redirect to. */ @JsonProperty(JSON_PROPERTY_URL) @@ -324,9 +325,7 @@ public void setUrl(String url) { this.url = url; } - /** - * Return true if this CheckoutThreeDS2Action object is equal to o. - */ + /** Return true if this CheckoutThreeDS2Action object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -336,18 +335,19 @@ public boolean equals(Object o) { return false; } CheckoutThreeDS2Action checkoutThreeDS2Action = (CheckoutThreeDS2Action) o; - return Objects.equals(this.authorisationToken, checkoutThreeDS2Action.authorisationToken) && - Objects.equals(this.paymentData, checkoutThreeDS2Action.paymentData) && - Objects.equals(this.paymentMethodType, checkoutThreeDS2Action.paymentMethodType) && - Objects.equals(this.subtype, checkoutThreeDS2Action.subtype) && - Objects.equals(this.token, checkoutThreeDS2Action.token) && - Objects.equals(this.type, checkoutThreeDS2Action.type) && - Objects.equals(this.url, checkoutThreeDS2Action.url); + return Objects.equals(this.authorisationToken, checkoutThreeDS2Action.authorisationToken) + && Objects.equals(this.paymentData, checkoutThreeDS2Action.paymentData) + && Objects.equals(this.paymentMethodType, checkoutThreeDS2Action.paymentMethodType) + && Objects.equals(this.subtype, checkoutThreeDS2Action.subtype) + && Objects.equals(this.token, checkoutThreeDS2Action.token) + && Objects.equals(this.type, checkoutThreeDS2Action.type) + && Objects.equals(this.url, checkoutThreeDS2Action.url); } @Override public int hashCode() { - return Objects.hash(authorisationToken, paymentData, paymentMethodType, subtype, token, type, url); + return Objects.hash( + authorisationToken, paymentData, paymentMethodType, subtype, token, type, url); } @Override @@ -366,8 +366,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -376,21 +375,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CheckoutThreeDS2Action given an JSON string * * @param jsonString JSON string * @return An instance of CheckoutThreeDS2Action - * @throws JsonProcessingException if the JSON string is invalid with respect to CheckoutThreeDS2Action + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CheckoutThreeDS2Action */ public static CheckoutThreeDS2Action fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CheckoutThreeDS2Action.class); } -/** - * Convert an instance of CheckoutThreeDS2Action to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CheckoutThreeDS2Action to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutVoucherAction.java b/src/main/java/com/adyen/model/checkout/CheckoutVoucherAction.java index b9e587458..8dc61f06c 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutVoucherAction.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutVoucherAction.java @@ -2,32 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Amount; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * CheckoutVoucherAction - */ +/** CheckoutVoucherAction */ @JsonPropertyOrder({ CheckoutVoucherAction.JSON_PROPERTY_ALTERNATIVE_REFERENCE, CheckoutVoucherAction.JSON_PROPERTY_COLLECTION_INSTITUTION_NUMBER, @@ -51,12 +45,12 @@ CheckoutVoucherAction.JSON_PROPERTY_TYPE, CheckoutVoucherAction.JSON_PROPERTY_URL }) - public class CheckoutVoucherAction { public static final String JSON_PROPERTY_ALTERNATIVE_REFERENCE = "alternativeReference"; private String alternativeReference; - public static final String JSON_PROPERTY_COLLECTION_INSTITUTION_NUMBER = "collectionInstitutionNumber"; + public static final String JSON_PROPERTY_COLLECTION_INSTITUTION_NUMBER = + "collectionInstitutionNumber"; private String collectionInstitutionNumber; public static final String JSON_PROPERTY_DOWNLOAD_URL = "downloadUrl"; @@ -110,11 +104,8 @@ public class CheckoutVoucherAction { public static final String JSON_PROPERTY_TOTAL_AMOUNT = "totalAmount"; private Amount totalAmount; - /** - * **voucher** - */ + /** **voucher** */ public enum TypeEnum { - VOUCHER(String.valueOf("voucher")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -122,7 +113,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -143,7 +134,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -154,8 +149,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_URL = "url"; private String url; - public CheckoutVoucherAction() { - } + public CheckoutVoucherAction() {} /** * The voucher alternative reference code. @@ -170,6 +164,7 @@ public CheckoutVoucherAction alternativeReference(String alternativeReference) { /** * The voucher alternative reference code. + * * @return alternativeReference The voucher alternative reference code. */ @JsonProperty(JSON_PROPERTY_ALTERNATIVE_REFERENCE) @@ -192,7 +187,8 @@ public void setAlternativeReference(String alternativeReference) { /** * A collection institution number (store number) for Econtext Pay-Easy ATM. * - * @param collectionInstitutionNumber A collection institution number (store number) for Econtext Pay-Easy ATM. + * @param collectionInstitutionNumber A collection institution number (store number) for Econtext + * Pay-Easy ATM. * @return the current {@code CheckoutVoucherAction} instance, allowing for method chaining */ public CheckoutVoucherAction collectionInstitutionNumber(String collectionInstitutionNumber) { @@ -202,7 +198,9 @@ public CheckoutVoucherAction collectionInstitutionNumber(String collectionInstit /** * A collection institution number (store number) for Econtext Pay-Easy ATM. - * @return collectionInstitutionNumber A collection institution number (store number) for Econtext Pay-Easy ATM. + * + * @return collectionInstitutionNumber A collection institution number (store number) for Econtext + * Pay-Easy ATM. */ @JsonProperty(JSON_PROPERTY_COLLECTION_INSTITUTION_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -213,7 +211,8 @@ public String getCollectionInstitutionNumber() { /** * A collection institution number (store number) for Econtext Pay-Easy ATM. * - * @param collectionInstitutionNumber A collection institution number (store number) for Econtext Pay-Easy ATM. + * @param collectionInstitutionNumber A collection institution number (store number) for Econtext + * Pay-Easy ATM. */ @JsonProperty(JSON_PROPERTY_COLLECTION_INSTITUTION_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -234,6 +233,7 @@ public CheckoutVoucherAction downloadUrl(String downloadUrl) { /** * The URL to download the voucher. + * * @return downloadUrl The URL to download the voucher. */ @JsonProperty(JSON_PROPERTY_DOWNLOAD_URL) @@ -266,6 +266,7 @@ public CheckoutVoucherAction entity(String entity) { /** * An entity number of Multibanco. + * * @return entity An entity number of Multibanco. */ @JsonProperty(JSON_PROPERTY_ENTITY) @@ -298,6 +299,7 @@ public CheckoutVoucherAction expiresAt(String expiresAt) { /** * The date time of the voucher expiry. + * * @return expiresAt The date time of the voucher expiry. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @@ -320,7 +322,7 @@ public void setExpiresAt(String expiresAt) { /** * initialAmount * - * @param initialAmount + * @param initialAmount * @return the current {@code CheckoutVoucherAction} instance, allowing for method chaining */ public CheckoutVoucherAction initialAmount(Amount initialAmount) { @@ -330,7 +332,8 @@ public CheckoutVoucherAction initialAmount(Amount initialAmount) { /** * Get initialAmount - * @return initialAmount + * + * @return initialAmount */ @JsonProperty(JSON_PROPERTY_INITIAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -341,7 +344,7 @@ public Amount getInitialAmount() { /** * initialAmount * - * @param initialAmount + * @param initialAmount */ @JsonProperty(JSON_PROPERTY_INITIAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -362,6 +365,7 @@ public CheckoutVoucherAction instructionsUrl(String instructionsUrl) { /** * The URL to the detailed instructions to make payment using the voucher. + * * @return instructionsUrl The URL to the detailed instructions to make payment using the voucher. */ @JsonProperty(JSON_PROPERTY_INSTRUCTIONS_URL) @@ -394,6 +398,7 @@ public CheckoutVoucherAction issuer(String issuer) { /** * The issuer of the voucher. + * * @return issuer The issuer of the voucher. */ @JsonProperty(JSON_PROPERTY_ISSUER) @@ -426,6 +431,7 @@ public CheckoutVoucherAction maskedTelephoneNumber(String maskedTelephoneNumber) /** * The shopper telephone number (partially masked). + * * @return maskedTelephoneNumber The shopper telephone number (partially masked). */ @JsonProperty(JSON_PROPERTY_MASKED_TELEPHONE_NUMBER) @@ -458,6 +464,7 @@ public CheckoutVoucherAction merchantName(String merchantName) { /** * The merchant name. + * * @return merchantName The merchant name. */ @JsonProperty(JSON_PROPERTY_MERCHANT_NAME) @@ -490,6 +497,7 @@ public CheckoutVoucherAction merchantReference(String merchantReference) { /** * The merchant reference. + * * @return merchantReference The merchant reference. */ @JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCE) @@ -510,9 +518,11 @@ public void setMerchantReference(String merchantReference) { } /** - * A Base64-encoded token containing all properties of the voucher. For iOS, you can use this to pass a voucher to Apple Wallet. + * A Base64-encoded token containing all properties of the voucher. For iOS, you can use this to + * pass a voucher to Apple Wallet. * - * @param passCreationToken A Base64-encoded token containing all properties of the voucher. For iOS, you can use this to pass a voucher to Apple Wallet. + * @param passCreationToken A Base64-encoded token containing all properties of the voucher. For + * iOS, you can use this to pass a voucher to Apple Wallet. * @return the current {@code CheckoutVoucherAction} instance, allowing for method chaining */ public CheckoutVoucherAction passCreationToken(String passCreationToken) { @@ -521,8 +531,11 @@ public CheckoutVoucherAction passCreationToken(String passCreationToken) { } /** - * A Base64-encoded token containing all properties of the voucher. For iOS, you can use this to pass a voucher to Apple Wallet. - * @return passCreationToken A Base64-encoded token containing all properties of the voucher. For iOS, you can use this to pass a voucher to Apple Wallet. + * A Base64-encoded token containing all properties of the voucher. For iOS, you can use this to + * pass a voucher to Apple Wallet. + * + * @return passCreationToken A Base64-encoded token containing all properties of the voucher. For + * iOS, you can use this to pass a voucher to Apple Wallet. */ @JsonProperty(JSON_PROPERTY_PASS_CREATION_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -531,9 +544,11 @@ public String getPassCreationToken() { } /** - * A Base64-encoded token containing all properties of the voucher. For iOS, you can use this to pass a voucher to Apple Wallet. + * A Base64-encoded token containing all properties of the voucher. For iOS, you can use this to + * pass a voucher to Apple Wallet. * - * @param passCreationToken A Base64-encoded token containing all properties of the voucher. For iOS, you can use this to pass a voucher to Apple Wallet. + * @param passCreationToken A Base64-encoded token containing all properties of the voucher. For + * iOS, you can use this to pass a voucher to Apple Wallet. */ @JsonProperty(JSON_PROPERTY_PASS_CREATION_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -554,6 +569,7 @@ public CheckoutVoucherAction paymentData(String paymentData) { /** * Encoded payment data. + * * @return paymentData Encoded payment data. */ @JsonProperty(JSON_PROPERTY_PAYMENT_DATA) @@ -586,6 +602,7 @@ public CheckoutVoucherAction paymentMethodType(String paymentMethodType) { /** * Specifies the payment method. + * * @return paymentMethodType Specifies the payment method. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_TYPE) @@ -618,6 +635,7 @@ public CheckoutVoucherAction reference(String reference) { /** * The voucher reference code. + * * @return reference The voucher reference code. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -650,6 +668,7 @@ public CheckoutVoucherAction shopperEmail(String shopperEmail) { /** * The shopper email. + * * @return shopperEmail The shopper email. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -682,6 +701,7 @@ public CheckoutVoucherAction shopperName(String shopperName) { /** * The shopper name. + * * @return shopperName The shopper name. */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @@ -704,7 +724,7 @@ public void setShopperName(String shopperName) { /** * surcharge * - * @param surcharge + * @param surcharge * @return the current {@code CheckoutVoucherAction} instance, allowing for method chaining */ public CheckoutVoucherAction surcharge(Amount surcharge) { @@ -714,7 +734,8 @@ public CheckoutVoucherAction surcharge(Amount surcharge) { /** * Get surcharge - * @return surcharge + * + * @return surcharge */ @JsonProperty(JSON_PROPERTY_SURCHARGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -725,7 +746,7 @@ public Amount getSurcharge() { /** * surcharge * - * @param surcharge + * @param surcharge */ @JsonProperty(JSON_PROPERTY_SURCHARGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -736,7 +757,7 @@ public void setSurcharge(Amount surcharge) { /** * totalAmount * - * @param totalAmount + * @param totalAmount * @return the current {@code CheckoutVoucherAction} instance, allowing for method chaining */ public CheckoutVoucherAction totalAmount(Amount totalAmount) { @@ -746,7 +767,8 @@ public CheckoutVoucherAction totalAmount(Amount totalAmount) { /** * Get totalAmount - * @return totalAmount + * + * @return totalAmount */ @JsonProperty(JSON_PROPERTY_TOTAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -757,7 +779,7 @@ public Amount getTotalAmount() { /** * totalAmount * - * @param totalAmount + * @param totalAmount */ @JsonProperty(JSON_PROPERTY_TOTAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -778,6 +800,7 @@ public CheckoutVoucherAction type(TypeEnum type) { /** * **voucher** + * * @return type **voucher** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -810,6 +833,7 @@ public CheckoutVoucherAction url(String url) { /** * Specifies the URL to redirect to. + * * @return url Specifies the URL to redirect to. */ @JsonProperty(JSON_PROPERTY_URL) @@ -829,9 +853,7 @@ public void setUrl(String url) { this.url = url; } - /** - * Return true if this CheckoutVoucherAction object is equal to o. - */ + /** Return true if this CheckoutVoucherAction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -841,47 +863,75 @@ public boolean equals(Object o) { return false; } CheckoutVoucherAction checkoutVoucherAction = (CheckoutVoucherAction) o; - return Objects.equals(this.alternativeReference, checkoutVoucherAction.alternativeReference) && - Objects.equals(this.collectionInstitutionNumber, checkoutVoucherAction.collectionInstitutionNumber) && - Objects.equals(this.downloadUrl, checkoutVoucherAction.downloadUrl) && - Objects.equals(this.entity, checkoutVoucherAction.entity) && - Objects.equals(this.expiresAt, checkoutVoucherAction.expiresAt) && - Objects.equals(this.initialAmount, checkoutVoucherAction.initialAmount) && - Objects.equals(this.instructionsUrl, checkoutVoucherAction.instructionsUrl) && - Objects.equals(this.issuer, checkoutVoucherAction.issuer) && - Objects.equals(this.maskedTelephoneNumber, checkoutVoucherAction.maskedTelephoneNumber) && - Objects.equals(this.merchantName, checkoutVoucherAction.merchantName) && - Objects.equals(this.merchantReference, checkoutVoucherAction.merchantReference) && - Objects.equals(this.passCreationToken, checkoutVoucherAction.passCreationToken) && - Objects.equals(this.paymentData, checkoutVoucherAction.paymentData) && - Objects.equals(this.paymentMethodType, checkoutVoucherAction.paymentMethodType) && - Objects.equals(this.reference, checkoutVoucherAction.reference) && - Objects.equals(this.shopperEmail, checkoutVoucherAction.shopperEmail) && - Objects.equals(this.shopperName, checkoutVoucherAction.shopperName) && - Objects.equals(this.surcharge, checkoutVoucherAction.surcharge) && - Objects.equals(this.totalAmount, checkoutVoucherAction.totalAmount) && - Objects.equals(this.type, checkoutVoucherAction.type) && - Objects.equals(this.url, checkoutVoucherAction.url); + return Objects.equals(this.alternativeReference, checkoutVoucherAction.alternativeReference) + && Objects.equals( + this.collectionInstitutionNumber, checkoutVoucherAction.collectionInstitutionNumber) + && Objects.equals(this.downloadUrl, checkoutVoucherAction.downloadUrl) + && Objects.equals(this.entity, checkoutVoucherAction.entity) + && Objects.equals(this.expiresAt, checkoutVoucherAction.expiresAt) + && Objects.equals(this.initialAmount, checkoutVoucherAction.initialAmount) + && Objects.equals(this.instructionsUrl, checkoutVoucherAction.instructionsUrl) + && Objects.equals(this.issuer, checkoutVoucherAction.issuer) + && Objects.equals(this.maskedTelephoneNumber, checkoutVoucherAction.maskedTelephoneNumber) + && Objects.equals(this.merchantName, checkoutVoucherAction.merchantName) + && Objects.equals(this.merchantReference, checkoutVoucherAction.merchantReference) + && Objects.equals(this.passCreationToken, checkoutVoucherAction.passCreationToken) + && Objects.equals(this.paymentData, checkoutVoucherAction.paymentData) + && Objects.equals(this.paymentMethodType, checkoutVoucherAction.paymentMethodType) + && Objects.equals(this.reference, checkoutVoucherAction.reference) + && Objects.equals(this.shopperEmail, checkoutVoucherAction.shopperEmail) + && Objects.equals(this.shopperName, checkoutVoucherAction.shopperName) + && Objects.equals(this.surcharge, checkoutVoucherAction.surcharge) + && Objects.equals(this.totalAmount, checkoutVoucherAction.totalAmount) + && Objects.equals(this.type, checkoutVoucherAction.type) + && Objects.equals(this.url, checkoutVoucherAction.url); } @Override public int hashCode() { - return Objects.hash(alternativeReference, collectionInstitutionNumber, downloadUrl, entity, expiresAt, initialAmount, instructionsUrl, issuer, maskedTelephoneNumber, merchantName, merchantReference, passCreationToken, paymentData, paymentMethodType, reference, shopperEmail, shopperName, surcharge, totalAmount, type, url); + return Objects.hash( + alternativeReference, + collectionInstitutionNumber, + downloadUrl, + entity, + expiresAt, + initialAmount, + instructionsUrl, + issuer, + maskedTelephoneNumber, + merchantName, + merchantReference, + passCreationToken, + paymentData, + paymentMethodType, + reference, + shopperEmail, + shopperName, + surcharge, + totalAmount, + type, + url); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CheckoutVoucherAction {\n"); - sb.append(" alternativeReference: ").append(toIndentedString(alternativeReference)).append("\n"); - sb.append(" collectionInstitutionNumber: ").append(toIndentedString(collectionInstitutionNumber)).append("\n"); + sb.append(" alternativeReference: ") + .append(toIndentedString(alternativeReference)) + .append("\n"); + sb.append(" collectionInstitutionNumber: ") + .append(toIndentedString(collectionInstitutionNumber)) + .append("\n"); sb.append(" downloadUrl: ").append(toIndentedString(downloadUrl)).append("\n"); sb.append(" entity: ").append(toIndentedString(entity)).append("\n"); sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n"); sb.append(" initialAmount: ").append(toIndentedString(initialAmount)).append("\n"); sb.append(" instructionsUrl: ").append(toIndentedString(instructionsUrl)).append("\n"); sb.append(" issuer: ").append(toIndentedString(issuer)).append("\n"); - sb.append(" maskedTelephoneNumber: ").append(toIndentedString(maskedTelephoneNumber)).append("\n"); + sb.append(" maskedTelephoneNumber: ") + .append(toIndentedString(maskedTelephoneNumber)) + .append("\n"); sb.append(" merchantName: ").append(toIndentedString(merchantName)).append("\n"); sb.append(" merchantReference: ").append(toIndentedString(merchantReference)).append("\n"); sb.append(" passCreationToken: ").append(toIndentedString(passCreationToken)).append("\n"); @@ -899,8 +949,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -909,21 +958,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CheckoutVoucherAction given an JSON string * * @param jsonString JSON string * @return An instance of CheckoutVoucherAction - * @throws JsonProcessingException if the JSON string is invalid with respect to CheckoutVoucherAction + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CheckoutVoucherAction */ public static CheckoutVoucherAction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CheckoutVoucherAction.class); } -/** - * Convert an instance of CheckoutVoucherAction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CheckoutVoucherAction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CommonField.java b/src/main/java/com/adyen/model/checkout/CommonField.java index f4bdfb6eb..711a5d058 100644 --- a/src/main/java/com/adyen/model/checkout/CommonField.java +++ b/src/main/java/com/adyen/model/checkout/CommonField.java @@ -2,36 +2,23 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * CommonField - */ -@JsonPropertyOrder({ - CommonField.JSON_PROPERTY_NAME, - CommonField.JSON_PROPERTY_VERSION -}) - +/** CommonField */ +@JsonPropertyOrder({CommonField.JSON_PROPERTY_NAME, CommonField.JSON_PROPERTY_VERSION}) public class CommonField { public static final String JSON_PROPERTY_NAME = "name"; private String name; @@ -39,8 +26,7 @@ public class CommonField { public static final String JSON_PROPERTY_VERSION = "version"; private String version; - public CommonField() { - } + public CommonField() {} /** * Name of the field. For example, Name of External Platform. @@ -55,6 +41,7 @@ public CommonField name(String name) { /** * Name of the field. For example, Name of External Platform. + * * @return name Name of the field. For example, Name of External Platform. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -87,6 +74,7 @@ public CommonField version(String version) { /** * Version of the field. For example, Version of External Platform. + * * @return version Version of the field. For example, Version of External Platform. */ @JsonProperty(JSON_PROPERTY_VERSION) @@ -106,9 +94,7 @@ public void setVersion(String version) { this.version = version; } - /** - * Return true if this CommonField object is equal to o. - */ + /** Return true if this CommonField object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +104,8 @@ public boolean equals(Object o) { return false; } CommonField commonField = (CommonField) o; - return Objects.equals(this.name, commonField.name) && - Objects.equals(this.version, commonField.version); + return Objects.equals(this.name, commonField.name) + && Objects.equals(this.version, commonField.version); } @Override @@ -138,8 +124,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +133,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CommonField given an JSON string * * @param jsonString JSON string @@ -158,11 +143,12 @@ private String toIndentedString(Object o) { public static CommonField fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CommonField.class); } -/** - * Convert an instance of CommonField to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CommonField to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Company.java b/src/main/java/com/adyen/model/checkout/Company.java index 3905f9a54..a8338d9b9 100644 --- a/src/main/java/com/adyen/model/checkout/Company.java +++ b/src/main/java/com/adyen/model/checkout/Company.java @@ -2,31 +2,22 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Company - */ +/** Company */ @JsonPropertyOrder({ Company.JSON_PROPERTY_HOMEPAGE, Company.JSON_PROPERTY_NAME, @@ -35,7 +26,6 @@ Company.JSON_PROPERTY_TAX_ID, Company.JSON_PROPERTY_TYPE }) - public class Company { public static final String JSON_PROPERTY_HOMEPAGE = "homepage"; private String homepage; @@ -55,8 +45,7 @@ public class Company { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public Company() { - } + public Company() {} /** * The company website's home page. @@ -71,6 +60,7 @@ public Company homepage(String homepage) { /** * The company website's home page. + * * @return homepage The company website's home page. */ @JsonProperty(JSON_PROPERTY_HOMEPAGE) @@ -103,6 +93,7 @@ public Company name(String name) { /** * The company name. + * * @return name The company name. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -135,6 +126,7 @@ public Company registrationNumber(String registrationNumber) { /** * Registration number of the company. + * * @return registrationNumber Registration number of the company. */ @JsonProperty(JSON_PROPERTY_REGISTRATION_NUMBER) @@ -167,6 +159,7 @@ public Company registryLocation(String registryLocation) { /** * Registry location of the company. + * * @return registryLocation Registry location of the company. */ @JsonProperty(JSON_PROPERTY_REGISTRY_LOCATION) @@ -199,6 +192,7 @@ public Company taxId(String taxId) { /** * Tax ID of the company. + * * @return taxId Tax ID of the company. */ @JsonProperty(JSON_PROPERTY_TAX_ID) @@ -231,6 +225,7 @@ public Company type(String type) { /** * The company type. + * * @return type The company type. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -250,9 +245,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this Company object is equal to o. - */ + /** Return true if this Company object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -262,12 +255,12 @@ public boolean equals(Object o) { return false; } Company company = (Company) o; - return Objects.equals(this.homepage, company.homepage) && - Objects.equals(this.name, company.name) && - Objects.equals(this.registrationNumber, company.registrationNumber) && - Objects.equals(this.registryLocation, company.registryLocation) && - Objects.equals(this.taxId, company.taxId) && - Objects.equals(this.type, company.type); + return Objects.equals(this.homepage, company.homepage) + && Objects.equals(this.name, company.name) + && Objects.equals(this.registrationNumber, company.registrationNumber) + && Objects.equals(this.registryLocation, company.registryLocation) + && Objects.equals(this.taxId, company.taxId) + && Objects.equals(this.type, company.type); } @Override @@ -290,8 +283,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -300,7 +292,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Company given an JSON string * * @param jsonString JSON string @@ -310,11 +302,12 @@ private String toIndentedString(Object o) { public static Company fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Company.class); } -/** - * Convert an instance of Company to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Company to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionRequest.java b/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionRequest.java index 50317ccb6..4bb275727 100644 --- a/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionRequest.java +++ b/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionRequest.java @@ -2,55 +2,32 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.AccountInfo; -import com.adyen.model.checkout.Amount; -import com.adyen.model.checkout.ApplicationInfo; -import com.adyen.model.checkout.AuthenticationData; -import com.adyen.model.checkout.BillingAddress; -import com.adyen.model.checkout.CheckoutSessionInstallmentOption; -import com.adyen.model.checkout.CheckoutSessionThreeDS2RequestData; -import com.adyen.model.checkout.Company; -import com.adyen.model.checkout.DeliveryAddress; -import com.adyen.model.checkout.FundOrigin; -import com.adyen.model.checkout.FundRecipient; -import com.adyen.model.checkout.LineItem; -import com.adyen.model.checkout.Mandate; -import com.adyen.model.checkout.Name; -import com.adyen.model.checkout.PlatformChargebackLogic; -import com.adyen.model.checkout.RiskData; -import com.adyen.model.checkout.Split; -import com.adyen.model.checkout.ThreeDSecureData; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.time.OffsetDateTime; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * CreateCheckoutSessionRequest - */ +/** CreateCheckoutSessionRequest */ @JsonPropertyOrder({ CreateCheckoutSessionRequest.JSON_PROPERTY_ACCOUNT_INFO, CreateCheckoutSessionRequest.JSON_PROPERTY_ADDITIONAL_AMOUNT, @@ -114,7 +91,6 @@ CreateCheckoutSessionRequest.JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY, CreateCheckoutSessionRequest.JSON_PROPERTY_TRUSTED_SHOPPER }) - public class CreateCheckoutSessionRequest { public static final String JSON_PROPERTY_ACCOUNT_INFO = "accountInfo"; private AccountInfo accountInfo; @@ -147,10 +123,12 @@ public class CreateCheckoutSessionRequest { private Integer captureDelayHours; /** - * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** + * The platform where a payment transaction takes place. This field is optional for filtering out + * payment methods that are only available on specific platforms. If this value is not set, then + * we will try to infer it from the `sdkVersion` or `token`. Possible values: + * * **iOS** * **Android** * **Web** */ public enum ChannelEnum { - IOS(String.valueOf("iOS")), ANDROID(String.valueOf("Android")), @@ -162,7 +140,7 @@ public enum ChannelEnum { private String value; ChannelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -183,7 +161,11 @@ public static ChannelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ChannelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChannelEnum.values())); + LOG.warning( + "ChannelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ChannelEnum.values())); return null; } } @@ -246,10 +228,10 @@ public static ChannelEnum fromValue(String value) { private Map metadata; /** - * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration + * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in + * or Components integration * **hosted**: Hosted Checkout integration */ public enum ModeEnum { - EMBEDDED(String.valueOf("embedded")), HOSTED(String.valueOf("hosted")); @@ -259,7 +241,7 @@ public enum ModeEnum { private String value; ModeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -280,7 +262,11 @@ public static ModeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ModeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ModeEnum.values())); + LOG.warning( + "ModeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ModeEnum.values())); return null; } } @@ -301,22 +287,30 @@ public static ModeEnum fromValue(String value) { private String recurringFrequency; /** - * Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details. + * Allowed values: * `Subscription` – A transaction for a fixed or variable amount, + * which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) + * transaction, card details are stored to enable one-click or omnichannel journeys, or simply to + * streamline the checkout process. Any subscription not following a fixed schedule is also + * considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled + * card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or + * have variable amounts. For example, automatic top-ups when a cardholder's balance drops + * below a certain amount. */ public enum RecurringProcessingModelEnum { - CARDONFILE(String.valueOf("CardOnFile")), SUBSCRIPTION(String.valueOf("Subscription")), UNSCHEDULEDCARDONFILE(String.valueOf("UnscheduledCardOnFile")); - private static final Logger LOG = Logger.getLogger(RecurringProcessingModelEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(RecurringProcessingModelEnum.class.getName()); private String value; RecurringProcessingModelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -337,7 +331,11 @@ public static RecurringProcessingModelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("RecurringProcessingModelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RecurringProcessingModelEnum.values())); + LOG.warning( + "RecurringProcessingModelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(RecurringProcessingModelEnum.values())); return null; } } @@ -367,10 +365,19 @@ public static RecurringProcessingModelEnum fromValue(String value) { private String shopperIP; /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. */ public enum ShopperInteractionEnum { - ECOMMERCE(String.valueOf("Ecommerce")), CONTAUTH(String.valueOf("ContAuth")), @@ -384,7 +391,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -405,7 +412,11 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning( + "ShopperInteractionEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -428,7 +439,8 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_SHOW_INSTALLMENT_AMOUNT = "showInstallmentAmount"; private Boolean showInstallmentAmount; - public static final String JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON = "showRemovePaymentMethodButton"; + public static final String JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON = + "showRemovePaymentMethodButton"; private Boolean showRemovePaymentMethodButton; public static final String JSON_PROPERTY_SOCIAL_SECURITY_NUMBER = "socialSecurityNumber"; @@ -444,10 +456,12 @@ public static ShopperInteractionEnum fromValue(String value) { private String store; /** - * Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. + * Specifies how payment methods should be filtered based on the 'store' parameter: - + * 'exclusive': Only payment methods belonging to the specified 'store' are + * returned. - 'inclusive': Payment methods from the 'store' and those not + * associated with any other store are returned. */ public enum StoreFiltrationModeEnum { - EXCLUSIVE(String.valueOf("exclusive")), INCLUSIVE(String.valueOf("inclusive")), @@ -459,7 +473,7 @@ public enum StoreFiltrationModeEnum { private String value; StoreFiltrationModeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -480,7 +494,11 @@ public static StoreFiltrationModeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StoreFiltrationModeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StoreFiltrationModeEnum.values())); + LOG.warning( + "StoreFiltrationModeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StoreFiltrationModeEnum.values())); return null; } } @@ -492,10 +510,13 @@ public static StoreFiltrationModeEnum fromValue(String value) { private Boolean storePaymentMethod; /** - * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. + * Indicates if the details of the payment method will be stored for the shopper. Possible values: + * * **disabled** – No details will be stored (default). * **askForConsent** – If the + * `shopperReference` is provided, the UI lets the shopper choose if they want their + * payment details to be stored. * **enabled** – If the `shopperReference` is provided, + * the details will be stored without asking the shopper for consent. */ public enum StorePaymentMethodModeEnum { - ASKFORCONSENT(String.valueOf("askForConsent")), DISABLED(String.valueOf("disabled")), @@ -507,7 +528,7 @@ public enum StorePaymentMethodModeEnum { private String value; StorePaymentMethodModeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -528,7 +549,11 @@ public static StorePaymentMethodModeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StorePaymentMethodModeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StorePaymentMethodModeEnum.values())); + LOG.warning( + "StorePaymentMethodModeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StorePaymentMethodModeEnum.values())); return null; } } @@ -545,20 +570,21 @@ public static StorePaymentMethodModeEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S2_REQUEST_DATA = "threeDS2RequestData"; private CheckoutSessionThreeDS2RequestData threeDS2RequestData; - public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = "threeDSAuthenticationOnly"; - @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. + public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = + "threeDSAuthenticationOnly"; + @Deprecated // deprecated since Adyen Checkout API v69: Use + // `authenticationData.authenticationOnly` instead. private Boolean threeDSAuthenticationOnly; public static final String JSON_PROPERTY_TRUSTED_SHOPPER = "trustedShopper"; private Boolean trustedShopper; - public CreateCheckoutSessionRequest() { - } + public CreateCheckoutSessionRequest() {} /** * accountInfo * - * @param accountInfo + * @param accountInfo * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest accountInfo(AccountInfo accountInfo) { @@ -568,7 +594,8 @@ public CreateCheckoutSessionRequest accountInfo(AccountInfo accountInfo) { /** * Get accountInfo - * @return accountInfo + * + * @return accountInfo */ @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -579,7 +606,7 @@ public AccountInfo getAccountInfo() { /** * accountInfo * - * @param accountInfo + * @param accountInfo */ @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -590,7 +617,7 @@ public void setAccountInfo(AccountInfo accountInfo) { /** * additionalAmount * - * @param additionalAmount + * @param additionalAmount * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest additionalAmount(Amount additionalAmount) { @@ -600,7 +627,8 @@ public CreateCheckoutSessionRequest additionalAmount(Amount additionalAmount) { /** * Get additionalAmount - * @return additionalAmount + * + * @return additionalAmount */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -611,7 +639,7 @@ public Amount getAdditionalAmount() { /** * additionalAmount * - * @param additionalAmount + * @param additionalAmount */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -620,9 +648,13 @@ public void setAdditionalAmount(Amount additionalAmount) { } /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. + * The `additionalData` object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a + * particular payment request. The `additionalData` object consists of entries, each + * of which includes the key and value. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest additionalData(Map additionalData) { @@ -639,8 +671,13 @@ public CreateCheckoutSessionRequest putAdditionalDataItem(String key, String add } /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. - * @return additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. + * The `additionalData` object consists of entries, each of which includes the key and + * value. + * + * @return additionalData This field contains additional data, which may be required for a + * particular payment request. The `additionalData` object consists of entries, each + * of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -649,9 +686,13 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. + * The `additionalData` object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a + * particular payment request. The `additionalData` object consists of entries, each + * of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -660,9 +701,14 @@ public void setAdditionalData(Map additionalData) { } /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their + * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer + * to payment methods, use their [payment method + * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest allowedPaymentMethods(List allowedPaymentMethods) { @@ -670,7 +716,8 @@ public CreateCheckoutSessionRequest allowedPaymentMethods(List allowedPa return this; } - public CreateCheckoutSessionRequest addAllowedPaymentMethodsItem(String allowedPaymentMethodsItem) { + public CreateCheckoutSessionRequest addAllowedPaymentMethodsItem( + String allowedPaymentMethodsItem) { if (this.allowedPaymentMethods == null) { this.allowedPaymentMethods = new ArrayList<>(); } @@ -679,8 +726,14 @@ public CreateCheckoutSessionRequest addAllowedPaymentMethodsItem(String allowedP } /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` - * @return allowedPaymentMethods List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their + * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * + * @return allowedPaymentMethods List of payment methods to be presented to the shopper. To refer + * to payment methods, use their [payment method + * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -689,9 +742,14 @@ public List getAllowedPaymentMethods() { } /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their + * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer + * to payment methods, use their [payment method + * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -702,7 +760,7 @@ public void setAllowedPaymentMethods(List allowedPaymentMethods) { /** * amount * - * @param amount + * @param amount * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest amount(Amount amount) { @@ -712,7 +770,8 @@ public CreateCheckoutSessionRequest amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -723,7 +782,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -734,7 +793,7 @@ public void setAmount(Amount amount) { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest applicationInfo(ApplicationInfo applicationInfo) { @@ -744,7 +803,8 @@ public CreateCheckoutSessionRequest applicationInfo(ApplicationInfo applicationI /** * Get applicationInfo - * @return applicationInfo + * + * @return applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -755,7 +815,7 @@ public ApplicationInfo getApplicationInfo() { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -766,7 +826,7 @@ public void setApplicationInfo(ApplicationInfo applicationInfo) { /** * authenticationData * - * @param authenticationData + * @param authenticationData * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest authenticationData(AuthenticationData authenticationData) { @@ -776,7 +836,8 @@ public CreateCheckoutSessionRequest authenticationData(AuthenticationData authen /** * Get authenticationData - * @return authenticationData + * + * @return authenticationData */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -787,7 +848,7 @@ public AuthenticationData getAuthenticationData() { /** * authenticationData * - * @param authenticationData + * @param authenticationData */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -798,7 +859,7 @@ public void setAuthenticationData(AuthenticationData authenticationData) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest billingAddress(BillingAddress billingAddress) { @@ -808,7 +869,8 @@ public CreateCheckoutSessionRequest billingAddress(BillingAddress billingAddress /** * Get billingAddress - * @return billingAddress + * + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -819,7 +881,7 @@ public BillingAddress getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -828,9 +890,14 @@ public void setBillingAddress(BillingAddress billingAddress) { } /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their + * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to + * payment methods, use their [payment method + * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest blockedPaymentMethods(List blockedPaymentMethods) { @@ -838,7 +905,8 @@ public CreateCheckoutSessionRequest blockedPaymentMethods(List blockedPa return this; } - public CreateCheckoutSessionRequest addBlockedPaymentMethodsItem(String blockedPaymentMethodsItem) { + public CreateCheckoutSessionRequest addBlockedPaymentMethodsItem( + String blockedPaymentMethodsItem) { if (this.blockedPaymentMethods == null) { this.blockedPaymentMethods = new ArrayList<>(); } @@ -847,8 +915,14 @@ public CreateCheckoutSessionRequest addBlockedPaymentMethodsItem(String blockedP } /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` - * @return blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their + * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * + * @return blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer + * to payment methods, use their [payment method + * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_BLOCKED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -857,9 +931,14 @@ public List getBlockedPaymentMethods() { } /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their + * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to + * payment methods, use their [payment method + * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_BLOCKED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -870,7 +949,8 @@ public void setBlockedPaymentMethods(List blockedPaymentMethods) { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, + * specified in hours. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest captureDelayHours(Integer captureDelayHours) { @@ -880,7 +960,9 @@ public CreateCheckoutSessionRequest captureDelayHours(Integer captureDelayHours) /** * The delay between the authorisation and scheduled auto-capture, specified in hours. - * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. + * + * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, + * specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -891,7 +973,8 @@ public Integer getCaptureDelayHours() { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, + * specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -900,9 +983,15 @@ public void setCaptureDelayHours(Integer captureDelayHours) { } /** - * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** + * The platform where a payment transaction takes place. This field is optional for filtering out + * payment methods that are only available on specific platforms. If this value is not set, then + * we will try to infer it from the `sdkVersion` or `token`. Possible values: + * * **iOS** * **Android** * **Web** * - * @param channel The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** + * @param channel The platform where a payment transaction takes place. This field is optional for + * filtering out payment methods that are only available on specific platforms. If this value + * is not set, then we will try to infer it from the `sdkVersion` or + * `token`. Possible values: * **iOS** * **Android** * **Web** * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest channel(ChannelEnum channel) { @@ -911,8 +1000,15 @@ public CreateCheckoutSessionRequest channel(ChannelEnum channel) { } /** - * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** - * @return channel The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** + * The platform where a payment transaction takes place. This field is optional for filtering out + * payment methods that are only available on specific platforms. If this value is not set, then + * we will try to infer it from the `sdkVersion` or `token`. Possible values: + * * **iOS** * **Android** * **Web** + * + * @return channel The platform where a payment transaction takes place. This field is optional + * for filtering out payment methods that are only available on specific platforms. If this + * value is not set, then we will try to infer it from the `sdkVersion` or + * `token`. Possible values: * **iOS** * **Android** * **Web** */ @JsonProperty(JSON_PROPERTY_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -921,9 +1017,15 @@ public ChannelEnum getChannel() { } /** - * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** + * The platform where a payment transaction takes place. This field is optional for filtering out + * payment methods that are only available on specific platforms. If this value is not set, then + * we will try to infer it from the `sdkVersion` or `token`. Possible values: + * * **iOS** * **Android** * **Web** * - * @param channel The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** + * @param channel The platform where a payment transaction takes place. This field is optional for + * filtering out payment methods that are only available on specific platforms. If this value + * is not set, then we will try to infer it from the `sdkVersion` or + * `token`. Possible values: * **iOS** * **Android** * **Web** */ @JsonProperty(JSON_PROPERTY_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -934,7 +1036,7 @@ public void setChannel(ChannelEnum channel) { /** * company * - * @param company + * @param company * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest company(Company company) { @@ -944,7 +1046,8 @@ public CreateCheckoutSessionRequest company(Company company) { /** * Get company - * @return company + * + * @return company */ @JsonProperty(JSON_PROPERTY_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -955,7 +1058,7 @@ public Company getCompany() { /** * company * - * @param company + * @param company */ @JsonProperty(JSON_PROPERTY_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -976,6 +1079,7 @@ public CreateCheckoutSessionRequest countryCode(String countryCode) { /** * The shopper's two-letter country code. + * * @return countryCode The shopper's two-letter country code. */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @@ -996,9 +1100,11 @@ public void setCountryCode(String countryCode) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): + * YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest dateOfBirth(LocalDate dateOfBirth) { @@ -1007,8 +1113,11 @@ public CreateCheckoutSessionRequest dateOfBirth(LocalDate dateOfBirth) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD - * @return dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): + * YYYY-MM-DD + * + * @return dateOfBirth The shopper's date of birth. Format + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1017,9 +1126,11 @@ public LocalDate getDateOfBirth() { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): + * YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1028,9 +1139,13 @@ public void setDateOfBirth(LocalDate dateOfBirth) { } /** - * The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * The date and time when the purchased goods should be delivered. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. * - * @param deliverAt The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * @param deliverAt The date and time when the purchased goods should be delivered. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest deliverAt(OffsetDateTime deliverAt) { @@ -1039,8 +1154,13 @@ public CreateCheckoutSessionRequest deliverAt(OffsetDateTime deliverAt) { } /** - * The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. - * @return deliverAt The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * The date and time when the purchased goods should be delivered. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. + * + * @return deliverAt The date and time when the purchased goods should be delivered. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_DELIVER_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1049,9 +1169,13 @@ public OffsetDateTime getDeliverAt() { } /** - * The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * The date and time when the purchased goods should be delivered. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. * - * @param deliverAt The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * @param deliverAt The date and time when the purchased goods should be delivered. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_DELIVER_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1062,7 +1186,7 @@ public void setDeliverAt(OffsetDateTime deliverAt) { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest deliveryAddress(DeliveryAddress deliveryAddress) { @@ -1072,7 +1196,8 @@ public CreateCheckoutSessionRequest deliveryAddress(DeliveryAddress deliveryAddr /** * Get deliveryAddress - * @return deliveryAddress + * + * @return deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1083,7 +1208,7 @@ public DeliveryAddress getDeliveryAddress() { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1092,9 +1217,13 @@ public void setDeliveryAddress(DeliveryAddress deliveryAddress) { } /** - * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * When true and `shopperReference` is provided, the shopper will be asked if the + * payment details should be stored for future [one-click + * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). * - * @param enableOneClick When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * @param enableOneClick When true and `shopperReference` is provided, the shopper will + * be asked if the payment details should be stored for future [one-click + * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest enableOneClick(Boolean enableOneClick) { @@ -1103,8 +1232,13 @@ public CreateCheckoutSessionRequest enableOneClick(Boolean enableOneClick) { } /** - * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). - * @return enableOneClick When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * When true and `shopperReference` is provided, the shopper will be asked if the + * payment details should be stored for future [one-click + * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * + * @return enableOneClick When true and `shopperReference` is provided, the shopper will + * be asked if the payment details should be stored for future [one-click + * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). */ @JsonProperty(JSON_PROPERTY_ENABLE_ONE_CLICK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1113,9 +1247,13 @@ public Boolean getEnableOneClick() { } /** - * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * When true and `shopperReference` is provided, the shopper will be asked if the + * payment details should be stored for future [one-click + * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). * - * @param enableOneClick When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * @param enableOneClick When true and `shopperReference` is provided, the shopper will + * be asked if the payment details should be stored for future [one-click + * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). */ @JsonProperty(JSON_PROPERTY_ENABLE_ONE_CLICK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1124,9 +1262,11 @@ public void setEnableOneClick(Boolean enableOneClick) { } /** - * When true and `shopperReference` is provided, the payment details will be tokenized for payouts. + * When true and `shopperReference` is provided, the payment details will be tokenized + * for payouts. * - * @param enablePayOut When true and `shopperReference` is provided, the payment details will be tokenized for payouts. + * @param enablePayOut When true and `shopperReference` is provided, the payment details + * will be tokenized for payouts. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest enablePayOut(Boolean enablePayOut) { @@ -1135,8 +1275,11 @@ public CreateCheckoutSessionRequest enablePayOut(Boolean enablePayOut) { } /** - * When true and `shopperReference` is provided, the payment details will be tokenized for payouts. - * @return enablePayOut When true and `shopperReference` is provided, the payment details will be tokenized for payouts. + * When true and `shopperReference` is provided, the payment details will be tokenized + * for payouts. + * + * @return enablePayOut When true and `shopperReference` is provided, the payment + * details will be tokenized for payouts. */ @JsonProperty(JSON_PROPERTY_ENABLE_PAY_OUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1145,9 +1288,11 @@ public Boolean getEnablePayOut() { } /** - * When true and `shopperReference` is provided, the payment details will be tokenized for payouts. + * When true and `shopperReference` is provided, the payment details will be tokenized + * for payouts. * - * @param enablePayOut When true and `shopperReference` is provided, the payment details will be tokenized for payouts. + * @param enablePayOut When true and `shopperReference` is provided, the payment details + * will be tokenized for payouts. */ @JsonProperty(JSON_PROPERTY_ENABLE_PAY_OUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1156,9 +1301,15 @@ public void setEnablePayOut(Boolean enablePayOut) { } /** - * When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. + * When true and `shopperReference` is provided, the payment details will be stored for + * [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where + * the shopper is not present, such as subscription or automatic top-up payments. * - * @param enableRecurring When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. + * @param enableRecurring When true and `shopperReference` is provided, the payment + * details will be stored for [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) + * where the shopper is not present, such as subscription or automatic top-up payments. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest enableRecurring(Boolean enableRecurring) { @@ -1167,8 +1318,15 @@ public CreateCheckoutSessionRequest enableRecurring(Boolean enableRecurring) { } /** - * When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. - * @return enableRecurring When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. + * When true and `shopperReference` is provided, the payment details will be stored for + * [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where + * the shopper is not present, such as subscription or automatic top-up payments. + * + * @return enableRecurring When true and `shopperReference` is provided, the payment + * details will be stored for [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) + * where the shopper is not present, such as subscription or automatic top-up payments. */ @JsonProperty(JSON_PROPERTY_ENABLE_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1177,9 +1335,15 @@ public Boolean getEnableRecurring() { } /** - * When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. + * When true and `shopperReference` is provided, the payment details will be stored for + * [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where + * the shopper is not present, such as subscription or automatic top-up payments. * - * @param enableRecurring When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. + * @param enableRecurring When true and `shopperReference` is provided, the payment + * details will be stored for [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) + * where the shopper is not present, such as subscription or automatic top-up payments. */ @JsonProperty(JSON_PROPERTY_ENABLE_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1188,9 +1352,15 @@ public void setEnableRecurring(Boolean enableRecurring) { } /** - * The date the session expires in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation. + * The date the session expires in + * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, + * the expiry date is set to 1 hour after session creation. You cannot set the session expiry to + * more than 24 hours after session creation. * - * @param expiresAt The date the session expires in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation. + * @param expiresAt The date the session expires in + * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not + * specified, the expiry date is set to 1 hour after session creation. You cannot set the + * session expiry to more than 24 hours after session creation. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest expiresAt(OffsetDateTime expiresAt) { @@ -1199,8 +1369,15 @@ public CreateCheckoutSessionRequest expiresAt(OffsetDateTime expiresAt) { } /** - * The date the session expires in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation. - * @return expiresAt The date the session expires in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation. + * The date the session expires in + * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, + * the expiry date is set to 1 hour after session creation. You cannot set the session expiry to + * more than 24 hours after session creation. + * + * @return expiresAt The date the session expires in + * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not + * specified, the expiry date is set to 1 hour after session creation. You cannot set the + * session expiry to more than 24 hours after session creation. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1209,9 +1386,15 @@ public OffsetDateTime getExpiresAt() { } /** - * The date the session expires in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation. + * The date the session expires in + * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, + * the expiry date is set to 1 hour after session creation. You cannot set the session expiry to + * more than 24 hours after session creation. * - * @param expiresAt The date the session expires in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation. + * @param expiresAt The date the session expires in + * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not + * specified, the expiry date is set to 1 hour after session creation. You cannot set the + * session expiry to more than 24 hours after session creation. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1222,7 +1405,7 @@ public void setExpiresAt(OffsetDateTime expiresAt) { /** * fundOrigin * - * @param fundOrigin + * @param fundOrigin * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest fundOrigin(FundOrigin fundOrigin) { @@ -1232,7 +1415,8 @@ public CreateCheckoutSessionRequest fundOrigin(FundOrigin fundOrigin) { /** * Get fundOrigin - * @return fundOrigin + * + * @return fundOrigin */ @JsonProperty(JSON_PROPERTY_FUND_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1243,7 +1427,7 @@ public FundOrigin getFundOrigin() { /** * fundOrigin * - * @param fundOrigin + * @param fundOrigin */ @JsonProperty(JSON_PROPERTY_FUND_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1254,7 +1438,7 @@ public void setFundOrigin(FundOrigin fundOrigin) { /** * fundRecipient * - * @param fundRecipient + * @param fundRecipient * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest fundRecipient(FundRecipient fundRecipient) { @@ -1264,7 +1448,8 @@ public CreateCheckoutSessionRequest fundRecipient(FundRecipient fundRecipient) { /** * Get fundRecipient - * @return fundRecipient + * + * @return fundRecipient */ @JsonProperty(JSON_PROPERTY_FUND_RECIPIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1275,7 +1460,7 @@ public FundRecipient getFundRecipient() { /** * fundRecipient * - * @param fundRecipient + * @param fundRecipient */ @JsonProperty(JSON_PROPERTY_FUND_RECIPIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1284,17 +1469,25 @@ public void setFundRecipient(FundRecipient fundRecipient) { } /** - * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. + * A set of key-value pairs that specifies the installment options available per payment method. + * The key must be a payment method name in lowercase. For example, **card** to specify + * installment options for all cards, or **visa** or **mc**. The value must be an object + * containing the installment options. * - * @param installmentOptions A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. + * @param installmentOptions A set of key-value pairs that specifies the installment options + * available per payment method. The key must be a payment method name in lowercase. For + * example, **card** to specify installment options for all cards, or **visa** or **mc**. The + * value must be an object containing the installment options. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ - public CreateCheckoutSessionRequest installmentOptions(Map installmentOptions) { + public CreateCheckoutSessionRequest installmentOptions( + Map installmentOptions) { this.installmentOptions = installmentOptions; return this; } - public CreateCheckoutSessionRequest putInstallmentOptionsItem(String key, CheckoutSessionInstallmentOption installmentOptionsItem) { + public CreateCheckoutSessionRequest putInstallmentOptionsItem( + String key, CheckoutSessionInstallmentOption installmentOptionsItem) { if (this.installmentOptions == null) { this.installmentOptions = new HashMap<>(); } @@ -1303,8 +1496,15 @@ public CreateCheckoutSessionRequest putInstallmentOptionsItem(String key, Checko } /** - * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. - * @return installmentOptions A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. + * A set of key-value pairs that specifies the installment options available per payment method. + * The key must be a payment method name in lowercase. For example, **card** to specify + * installment options for all cards, or **visa** or **mc**. The value must be an object + * containing the installment options. + * + * @return installmentOptions A set of key-value pairs that specifies the installment options + * available per payment method. The key must be a payment method name in lowercase. For + * example, **card** to specify installment options for all cards, or **visa** or **mc**. The + * value must be an object containing the installment options. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1313,20 +1513,31 @@ public Map getInstallmentOptions() { } /** - * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. + * A set of key-value pairs that specifies the installment options available per payment method. + * The key must be a payment method name in lowercase. For example, **card** to specify + * installment options for all cards, or **visa** or **mc**. The value must be an object + * containing the installment options. * - * @param installmentOptions A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. + * @param installmentOptions A set of key-value pairs that specifies the installment options + * available per payment method. The key must be a payment method name in lowercase. For + * example, **card** to specify installment options for all cards, or **visa** or **mc**. The + * value must be an object containing the installment options. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentOptions(Map installmentOptions) { + public void setInstallmentOptions( + Map installmentOptions) { this.installmentOptions = installmentOptions; } /** - * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to + * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, + * Ratepay, and Riverty. * - * @param lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * @param lineItems Price and product information about the purchased items, to be included on the + * invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, + * Clearpay, Klarna, Ratepay, and Riverty. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest lineItems(List lineItems) { @@ -1343,8 +1554,13 @@ public CreateCheckoutSessionRequest addLineItemsItem(LineItem lineItemsItem) { } /** - * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. - * @return lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to + * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, + * Ratepay, and Riverty. + * + * @return lineItems Price and product information about the purchased items, to be included on + * the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, + * Afterpay, Clearpay, Klarna, Ratepay, and Riverty. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1353,9 +1569,13 @@ public List getLineItems() { } /** - * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to + * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, + * Ratepay, and Riverty. * - * @param lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * @param lineItems Price and product information about the purchased items, to be included on the + * invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, + * Clearpay, Klarna, Ratepay, and Riverty. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1366,7 +1586,7 @@ public void setLineItems(List lineItems) { /** * mandate * - * @param mandate + * @param mandate * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest mandate(Mandate mandate) { @@ -1376,7 +1596,8 @@ public CreateCheckoutSessionRequest mandate(Mandate mandate) { /** * Get mandate - * @return mandate + * + * @return mandate */ @JsonProperty(JSON_PROPERTY_MANDATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1387,7 +1608,7 @@ public Mandate getMandate() { /** * mandate * - * @param mandate + * @param mandate */ @JsonProperty(JSON_PROPERTY_MANDATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1396,9 +1617,13 @@ public void setMandate(Mandate mandate) { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a + * four-digit number, which relates to a particular market segment. This code reflects the + * predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) + * (MCC) is a four-digit number, which relates to a particular market segment. This code + * reflects the predominant activity that is conducted by the merchant. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest mcc(String mcc) { @@ -1407,8 +1632,13 @@ public CreateCheckoutSessionRequest mcc(String mcc) { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. - * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a + * four-digit number, which relates to a particular market segment. This code reflects the + * predominant activity that is conducted by the merchant. + * + * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) + * (MCC) is a four-digit number, which relates to a particular market segment. This code + * reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1417,9 +1647,13 @@ public String getMcc() { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a + * four-digit number, which relates to a particular market segment. This code reflects the + * predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) + * (MCC) is a four-digit number, which relates to a particular market segment. This code + * reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1430,7 +1664,8 @@ public void setMcc(String mcc) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest merchantAccount(String merchantAccount) { @@ -1440,7 +1675,9 @@ public CreateCheckoutSessionRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * @return merchantAccount The merchant account identifier, with which you want to process the transaction. + * + * @return merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1451,7 +1688,8 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1460,9 +1698,23 @@ public void setMerchantAccount(String merchantAccount) { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. - * - * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. + * order auth-rate). The reference should be unique per billing cycle. The same merchant order + * reference should never be reused after the first authorised attempt. If used, this field should + * be supplied for all incoming authorisations. > We strongly recommend you send the + * `merchantOrderReference` value to benefit from linking payment requests when + * authorisation retries take place. In addition, we recommend you provide + * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * + * @param merchantOrderReference This reference allows linking multiple transactions to each other + * for reporting purposes (i.e. order auth-rate). The reference should be unique per billing + * cycle. The same merchant order reference should never be reused after the first authorised + * attempt. If used, this field should be supplied for all incoming authorisations. > We + * strongly recommend you send the `merchantOrderReference` value to benefit from + * linking payment requests when authorisation retries take place. In addition, we recommend + * you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest merchantOrderReference(String merchantOrderReference) { @@ -1471,8 +1723,24 @@ public CreateCheckoutSessionRequest merchantOrderReference(String merchantOrderR } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. - * @return merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. + * order auth-rate). The reference should be unique per billing cycle. The same merchant order + * reference should never be reused after the first authorised attempt. If used, this field should + * be supplied for all incoming authorisations. > We strongly recommend you send the + * `merchantOrderReference` value to benefit from linking payment requests when + * authorisation retries take place. In addition, we recommend you provide + * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * + * @return merchantOrderReference This reference allows linking multiple transactions to each + * other for reporting purposes (i.e. order auth-rate). The reference should be unique per + * billing cycle. The same merchant order reference should never be reused after the first + * authorised attempt. If used, this field should be supplied for all incoming authorisations. + * > We strongly recommend you send the `merchantOrderReference` value to benefit + * from linking payment requests when authorisation retries take place. In addition, we + * recommend you provide `retry.orderAttemptNumber`, + * `retry.chainAttemptNumber`, and `retry.skipRetry` values in + * `PaymentRequest.additionalData`. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1481,9 +1749,23 @@ public String getMerchantOrderReference() { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. + * order auth-rate). The reference should be unique per billing cycle. The same merchant order + * reference should never be reused after the first authorised attempt. If used, this field should + * be supplied for all incoming authorisations. > We strongly recommend you send the + * `merchantOrderReference` value to benefit from linking payment requests when + * authorisation retries take place. In addition, we recommend you provide + * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. * - * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * @param merchantOrderReference This reference allows linking multiple transactions to each other + * for reporting purposes (i.e. order auth-rate). The reference should be unique per billing + * cycle. The same merchant order reference should never be reused after the first authorised + * attempt. If used, this field should be supplied for all incoming authorisations. > We + * strongly recommend you send the `merchantOrderReference` value to benefit from + * linking payment requests when authorisation retries take place. In addition, we recommend + * you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1492,9 +1774,13 @@ public void setMerchantOrderReference(String merchantOrderReference) { } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 + * key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per + * value. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per value. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: + * * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 + * characters per value. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest metadata(Map metadata) { @@ -1511,8 +1797,13 @@ public CreateCheckoutSessionRequest putMetadataItem(String key, String metadataI } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per value. - * @return metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 + * key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per + * value. + * + * @return metadata Metadata consists of entries, each of which includes a key and a value. + * Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * + * Maximum 80 characters per value. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1521,9 +1812,13 @@ public Map getMetadata() { } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 + * key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per + * value. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per value. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: + * * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 + * characters per value. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1532,9 +1827,11 @@ public void setMetadata(Map metadata) { } /** - * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration + * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in + * or Components integration * **hosted**: Hosted Checkout integration * - * @param mode Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration + * @param mode Indicates the type of front end integration. Possible values: * **embedded** + * (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest mode(ModeEnum mode) { @@ -1543,8 +1840,11 @@ public CreateCheckoutSessionRequest mode(ModeEnum mode) { } /** - * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration - * @return mode Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration + * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in + * or Components integration * **hosted**: Hosted Checkout integration + * + * @return mode Indicates the type of front end integration. Possible values: * **embedded** + * (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration */ @JsonProperty(JSON_PROPERTY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1553,9 +1853,11 @@ public ModeEnum getMode() { } /** - * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration + * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in + * or Components integration * **hosted**: Hosted Checkout integration * - * @param mode Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration + * @param mode Indicates the type of front end integration. Possible values: * **embedded** + * (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration */ @JsonProperty(JSON_PROPERTY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1566,7 +1868,7 @@ public void setMode(ModeEnum mode) { /** * mpiData * - * @param mpiData + * @param mpiData * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest mpiData(ThreeDSecureData mpiData) { @@ -1576,7 +1878,8 @@ public CreateCheckoutSessionRequest mpiData(ThreeDSecureData mpiData) { /** * Get mpiData - * @return mpiData + * + * @return mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1587,7 +1890,7 @@ public ThreeDSecureData getMpiData() { /** * mpiData * - * @param mpiData + * @param mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1598,17 +1901,19 @@ public void setMpiData(ThreeDSecureData mpiData) { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ - public CreateCheckoutSessionRequest platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) { + public CreateCheckoutSessionRequest platformChargebackLogic( + PlatformChargebackLogic platformChargebackLogic) { this.platformChargebackLogic = platformChargebackLogic; return this; } /** * Get platformChargebackLogic - * @return platformChargebackLogic + * + * @return platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1619,7 +1924,7 @@ public PlatformChargebackLogic getPlatformChargebackLogic() { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1630,7 +1935,8 @@ public void setPlatformChargebackLogic(PlatformChargebackLogic platformChargebac /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. * - * @param recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. + * @param recurringExpiry Date after which no further authorisations shall be performed. Only for + * 3D Secure 2. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest recurringExpiry(String recurringExpiry) { @@ -1640,7 +1946,9 @@ public CreateCheckoutSessionRequest recurringExpiry(String recurringExpiry) { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. - * @return recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. + * + * @return recurringExpiry Date after which no further authorisations shall be performed. Only for + * 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1651,7 +1959,8 @@ public String getRecurringExpiry() { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. * - * @param recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. + * @param recurringExpiry Date after which no further authorisations shall be performed. Only for + * 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1672,6 +1981,7 @@ public CreateCheckoutSessionRequest recurringFrequency(String recurringFrequency /** * Minimum number of days between authorisations. Only for 3D Secure 2. + * * @return recurringFrequency Minimum number of days between authorisations. Only for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY) @@ -1692,19 +2002,53 @@ public void setRecurringFrequency(String recurringFrequency) { } /** - * Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. - * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details. + * Allowed values: * `Subscription` – A transaction for a fixed or variable amount, + * which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) + * transaction, card details are stored to enable one-click or omnichannel journeys, or simply to + * streamline the checkout process. Any subscription not following a fixed schedule is also + * considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled + * card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or + * have variable amounts. For example, automatic top-ups when a cardholder's balance drops + * below a certain amount. + * + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a + * token to store payment details. Allowed values: * `Subscription` – A transaction + * for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – + * With a card-on-file (CoF) transaction, card details are stored to enable one-click or + * omnichannel journeys, or simply to streamline the checkout process. Any subscription not + * following a fixed schedule is also considered a card-on-file transaction. * + * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a + * transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, + * automatic top-ups when a cardholder's balance drops below a certain amount. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ - public CreateCheckoutSessionRequest recurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) { + public CreateCheckoutSessionRequest recurringProcessingModel( + RecurringProcessingModelEnum recurringProcessingModel) { this.recurringProcessingModel = recurringProcessingModel; return this; } /** - * Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. - * @return recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details. + * Allowed values: * `Subscription` – A transaction for a fixed or variable amount, + * which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) + * transaction, card details are stored to enable one-click or omnichannel journeys, or simply to + * streamline the checkout process. Any subscription not following a fixed schedule is also + * considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled + * card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or + * have variable amounts. For example, automatic top-ups when a cardholder's balance drops + * below a certain amount. + * + * @return recurringProcessingModel Defines a recurring payment type. Required when creating a + * token to store payment details. Allowed values: * `Subscription` – A transaction + * for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – + * With a card-on-file (CoF) transaction, card details are stored to enable one-click or + * omnichannel journeys, or simply to streamline the checkout process. Any subscription not + * following a fixed schedule is also considered a card-on-file transaction. * + * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a + * transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, + * automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1713,9 +2057,25 @@ public RecurringProcessingModelEnum getRecurringProcessingModel() { } /** - * Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details. + * Allowed values: * `Subscription` – A transaction for a fixed or variable amount, + * which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) + * transaction, card details are stored to enable one-click or omnichannel journeys, or simply to + * streamline the checkout process. Any subscription not following a fixed schedule is also + * considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled + * card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or + * have variable amounts. For example, automatic top-ups when a cardholder's balance drops + * below a certain amount. * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a + * token to store payment details. Allowed values: * `Subscription` – A transaction + * for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – + * With a card-on-file (CoF) transaction, card details are stored to enable one-click or + * omnichannel journeys, or simply to streamline the checkout process. Any subscription not + * following a fixed schedule is also considered a card-on-file transaction. * + * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a + * transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, + * automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1726,7 +2086,8 @@ public void setRecurringProcessingModel(RecurringProcessingModelEnum recurringPr /** * Specifies the redirect method (GET or POST) when redirecting back from the issuer. * - * @param redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting back from the issuer. + * @param redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting + * back from the issuer. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest redirectFromIssuerMethod(String redirectFromIssuerMethod) { @@ -1736,7 +2097,9 @@ public CreateCheckoutSessionRequest redirectFromIssuerMethod(String redirectFrom /** * Specifies the redirect method (GET or POST) when redirecting back from the issuer. - * @return redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting back from the issuer. + * + * @return redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting + * back from the issuer. */ @JsonProperty(JSON_PROPERTY_REDIRECT_FROM_ISSUER_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1747,7 +2110,8 @@ public String getRedirectFromIssuerMethod() { /** * Specifies the redirect method (GET or POST) when redirecting back from the issuer. * - * @param redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting back from the issuer. + * @param redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting + * back from the issuer. */ @JsonProperty(JSON_PROPERTY_REDIRECT_FROM_ISSUER_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1758,7 +2122,8 @@ public void setRedirectFromIssuerMethod(String redirectFromIssuerMethod) { /** * Specifies the redirect method (GET or POST) when redirecting to the issuer. * - * @param redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to the issuer. + * @param redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to + * the issuer. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest redirectToIssuerMethod(String redirectToIssuerMethod) { @@ -1768,7 +2133,9 @@ public CreateCheckoutSessionRequest redirectToIssuerMethod(String redirectToIssu /** * Specifies the redirect method (GET or POST) when redirecting to the issuer. - * @return redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to the issuer. + * + * @return redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to + * the issuer. */ @JsonProperty(JSON_PROPERTY_REDIRECT_TO_ISSUER_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1779,7 +2146,8 @@ public String getRedirectToIssuerMethod() { /** * Specifies the redirect method (GET or POST) when redirecting to the issuer. * - * @param redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to the issuer. + * @param redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to + * the issuer. */ @JsonProperty(JSON_PROPERTY_REDIRECT_TO_ISSUER_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1800,6 +2168,7 @@ public CreateCheckoutSessionRequest reference(String reference) { /** * The reference to uniquely identify a payment. + * * @return reference The reference to uniquely identify a payment. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -1820,9 +2189,36 @@ public void setReference(String reference) { } /** - * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. - * - * @param returnUrl The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. * For web, + * include the protocol `http://` or `https://`. You can also include your own + * additional query parameters, for example, shopper ID or order reference number. Example: + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the + * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple + * Developer + * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). + * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your + * app. You can configure it with an [intent + * filter](https://developer.android.com/guide/components/intents-filters). Example: + * `my-app://your.package.name` If the URL to return to includes non-ASCII characters, + * like spaces or special letters, URL encode the value. We strongly recommend that you use a + * maximum of 1024 characters. > The URL must not include personally identifiable information + * (PII), for example name or email address. + * + * @param returnUrl The URL to return to in case of a redirection. The format depends on the + * channel. * For web, include the protocol `http://` or `https://`. You + * can also include your own additional query parameters, for example, shopper ID or order + * reference number. Example: + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use + * the custom URL for your app. To know more about setting custom URL schemes, refer to the + * [Apple Developer + * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). + * Example: `my-app://` * For Android, use a custom URL handled by an Activity on + * your app. You can configure it with an [intent + * filter](https://developer.android.com/guide/components/intents-filters). Example: + * `my-app://your.package.name` If the URL to return to includes non-ASCII + * characters, like spaces or special letters, URL encode the value. We strongly recommend + * that you use a maximum of 1024 characters. > The URL must not include personally + * identifiable information (PII), for example name or email address. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest returnUrl(String returnUrl) { @@ -1831,8 +2227,36 @@ public CreateCheckoutSessionRequest returnUrl(String returnUrl) { } /** - * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. - * @return returnUrl The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. * For web, + * include the protocol `http://` or `https://`. You can also include your own + * additional query parameters, for example, shopper ID or order reference number. Example: + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the + * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple + * Developer + * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). + * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your + * app. You can configure it with an [intent + * filter](https://developer.android.com/guide/components/intents-filters). Example: + * `my-app://your.package.name` If the URL to return to includes non-ASCII characters, + * like spaces or special letters, URL encode the value. We strongly recommend that you use a + * maximum of 1024 characters. > The URL must not include personally identifiable information + * (PII), for example name or email address. + * + * @return returnUrl The URL to return to in case of a redirection. The format depends on the + * channel. * For web, include the protocol `http://` or `https://`. You + * can also include your own additional query parameters, for example, shopper ID or order + * reference number. Example: + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use + * the custom URL for your app. To know more about setting custom URL schemes, refer to the + * [Apple Developer + * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). + * Example: `my-app://` * For Android, use a custom URL handled by an Activity on + * your app. You can configure it with an [intent + * filter](https://developer.android.com/guide/components/intents-filters). Example: + * `my-app://your.package.name` If the URL to return to includes non-ASCII + * characters, like spaces or special letters, URL encode the value. We strongly recommend + * that you use a maximum of 1024 characters. > The URL must not include personally + * identifiable information (PII), for example name or email address. */ @JsonProperty(JSON_PROPERTY_RETURN_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1841,9 +2265,36 @@ public String getReturnUrl() { } /** - * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. - * - * @param returnUrl The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. * For web, + * include the protocol `http://` or `https://`. You can also include your own + * additional query parameters, for example, shopper ID or order reference number. Example: + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the + * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple + * Developer + * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). + * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your + * app. You can configure it with an [intent + * filter](https://developer.android.com/guide/components/intents-filters). Example: + * `my-app://your.package.name` If the URL to return to includes non-ASCII characters, + * like spaces or special letters, URL encode the value. We strongly recommend that you use a + * maximum of 1024 characters. > The URL must not include personally identifiable information + * (PII), for example name or email address. + * + * @param returnUrl The URL to return to in case of a redirection. The format depends on the + * channel. * For web, include the protocol `http://` or `https://`. You + * can also include your own additional query parameters, for example, shopper ID or order + * reference number. Example: + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use + * the custom URL for your app. To know more about setting custom URL schemes, refer to the + * [Apple Developer + * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). + * Example: `my-app://` * For Android, use a custom URL handled by an Activity on + * your app. You can configure it with an [intent + * filter](https://developer.android.com/guide/components/intents-filters). Example: + * `my-app://your.package.name` If the URL to return to includes non-ASCII + * characters, like spaces or special letters, URL encode the value. We strongly recommend + * that you use a maximum of 1024 characters. > The URL must not include personally + * identifiable information (PII), for example name or email address. */ @JsonProperty(JSON_PROPERTY_RETURN_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1854,7 +2305,7 @@ public void setReturnUrl(String returnUrl) { /** * riskData * - * @param riskData + * @param riskData * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest riskData(RiskData riskData) { @@ -1864,7 +2315,8 @@ public CreateCheckoutSessionRequest riskData(RiskData riskData) { /** * Get riskData - * @return riskData + * + * @return riskData */ @JsonProperty(JSON_PROPERTY_RISK_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1875,7 +2327,7 @@ public RiskData getRiskData() { /** * riskData * - * @param riskData + * @param riskData */ @JsonProperty(JSON_PROPERTY_RISK_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1896,6 +2348,7 @@ public CreateCheckoutSessionRequest shopperEmail(String shopperEmail) { /** * The shopper's email address. + * * @return shopperEmail The shopper's email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -1916,9 +2369,22 @@ public void setShopperEmail(String shopperEmail) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a + * number of risk checks (for instance, number of payment attempts or location-based checks). > + * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and + * mobile integrations, if you did not include the `shopperEmail`. For native mobile + * integrations, the field is required to support cases where authentication is routed to the + * redirect flow. This field is also mandatory for some merchants depending on your business + * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it + * is used in a number of risk checks (for instance, number of payment attempts or + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the + * `shopperEmail`. For native mobile integrations, the field is required to support + * cases where authentication is routed to the redirect flow. This field is also mandatory for + * some merchants depending on your business model. For more information, [contact + * Support](https://www.adyen.help/hc/en-us/requests/new). * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest shopperIP(String shopperIP) { @@ -1927,8 +2393,22 @@ public CreateCheckoutSessionRequest shopperIP(String shopperIP) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). - * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a + * number of risk checks (for instance, number of payment attempts or location-based checks). > + * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and + * mobile integrations, if you did not include the `shopperEmail`. For native mobile + * integrations, the field is required to support cases where authentication is routed to the + * redirect flow. This field is also mandatory for some merchants depending on your business + * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * + * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it + * is used in a number of risk checks (for instance, number of payment attempts or + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the + * `shopperEmail`. For native mobile integrations, the field is required to support + * cases where authentication is routed to the redirect flow. This field is also mandatory for + * some merchants depending on your business model. For more information, [contact + * Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1937,9 +2417,22 @@ public String getShopperIP() { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a + * number of risk checks (for instance, number of payment attempts or location-based checks). > + * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and + * mobile integrations, if you did not include the `shopperEmail`. For native mobile + * integrations, the field is required to support cases where authentication is routed to the + * redirect flow. This field is also mandatory for some merchants depending on your business + * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it + * is used in a number of risk checks (for instance, number of payment attempts or + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the + * `shopperEmail`. For native mobile integrations, the field is required to support + * cases where authentication is routed to the redirect flow. This field is also mandatory for + * some merchants depending on your business model. For more information, [contact + * Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1948,19 +2441,63 @@ public void setShopperIP(String shopperIP) { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. + * + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ - public CreateCheckoutSessionRequest shopperInteraction(ShopperInteractionEnum shopperInteraction) { + public CreateCheckoutSessionRequest shopperInteraction( + ShopperInteractionEnum shopperInteraction) { this.shopperInteraction = shopperInteraction; return this; } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * @return shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. + * + * @return shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1969,9 +2506,30 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. + * + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1980,9 +2538,11 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { } /** - * The combination of a language code and a country code to specify the language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the + * payment. * - * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the + * language to be used in the payment. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest shopperLocale(String shopperLocale) { @@ -1991,8 +2551,11 @@ public CreateCheckoutSessionRequest shopperLocale(String shopperLocale) { } /** - * The combination of a language code and a country code to specify the language to be used in the payment. - * @return shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the + * payment. + * + * @return shopperLocale The combination of a language code and a country code to specify the + * language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2001,9 +2564,11 @@ public String getShopperLocale() { } /** - * The combination of a language code and a country code to specify the language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the + * payment. * - * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the + * language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2014,7 +2579,7 @@ public void setShopperLocale(String shopperLocale) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest shopperName(Name shopperName) { @@ -2024,7 +2589,8 @@ public CreateCheckoutSessionRequest shopperName(Name shopperName) { /** * Get shopperName - * @return shopperName + * + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2035,7 +2601,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2044,9 +2610,14 @@ public void setShopperName(Name shopperName) { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. The value + * is case-sensitive and must be at least three characters. > Your reference must not include + * personally identifiable information (PII) such as name or email address. * - * @param shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @param shopperReference Your reference to uniquely identify this shopper, for example user ID + * or account ID. The value is case-sensitive and must be at least three characters. > Your + * reference must not include personally identifiable information (PII) such as name or email + * address. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest shopperReference(String shopperReference) { @@ -2055,8 +2626,14 @@ public CreateCheckoutSessionRequest shopperReference(String shopperReference) { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. - * @return shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. The value + * is case-sensitive and must be at least three characters. > Your reference must not include + * personally identifiable information (PII) such as name or email address. + * + * @return shopperReference Your reference to uniquely identify this shopper, for example user ID + * or account ID. The value is case-sensitive and must be at least three characters. > Your + * reference must not include personally identifiable information (PII) such as name or email + * address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2065,9 +2642,14 @@ public String getShopperReference() { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. The value + * is case-sensitive and must be at least three characters. > Your reference must not include + * personally identifiable information (PII) such as name or email address. * - * @param shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @param shopperReference Your reference to uniquely identify this shopper, for example user ID + * or account ID. The value is case-sensitive and must be at least three characters. > Your + * reference must not include personally identifiable information (PII) such as name or email + * address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2076,9 +2658,14 @@ public void setShopperReference(String shopperReference) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 + * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, + * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend + * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed + * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * + * /_**. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest shopperStatement(String shopperStatement) { @@ -2087,8 +2674,14 @@ public CreateCheckoutSessionRequest shopperStatement(String shopperStatement) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. - * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 + * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, + * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * + * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend + * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed + * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2097,9 +2690,14 @@ public String getShopperStatement() { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 + * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, + * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend + * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed + * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2120,6 +2718,7 @@ public CreateCheckoutSessionRequest showInstallmentAmount(Boolean showInstallmen /** * Set to true to show the payment amount per installment. + * * @return showInstallmentAmount Set to true to show the payment amount per installment. */ @JsonProperty(JSON_PROPERTY_SHOW_INSTALLMENT_AMOUNT) @@ -2142,17 +2741,21 @@ public void setShowInstallmentAmount(Boolean showInstallmentAmount) { /** * Set to **true** to show a button that lets the shopper remove a stored payment method. * - * @param showRemovePaymentMethodButton Set to **true** to show a button that lets the shopper remove a stored payment method. + * @param showRemovePaymentMethodButton Set to **true** to show a button that lets the shopper + * remove a stored payment method. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ - public CreateCheckoutSessionRequest showRemovePaymentMethodButton(Boolean showRemovePaymentMethodButton) { + public CreateCheckoutSessionRequest showRemovePaymentMethodButton( + Boolean showRemovePaymentMethodButton) { this.showRemovePaymentMethodButton = showRemovePaymentMethodButton; return this; } /** * Set to **true** to show a button that lets the shopper remove a stored payment method. - * @return showRemovePaymentMethodButton Set to **true** to show a button that lets the shopper remove a stored payment method. + * + * @return showRemovePaymentMethodButton Set to **true** to show a button that lets the shopper + * remove a stored payment method. */ @JsonProperty(JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2163,7 +2766,8 @@ public Boolean getShowRemovePaymentMethodButton() { /** * Set to **true** to show a button that lets the shopper remove a stored payment method. * - * @param showRemovePaymentMethodButton Set to **true** to show a button that lets the shopper remove a stored payment method. + * @param showRemovePaymentMethodButton Set to **true** to show a button that lets the shopper + * remove a stored payment method. */ @JsonProperty(JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2184,6 +2788,7 @@ public CreateCheckoutSessionRequest socialSecurityNumber(String socialSecurityNu /** * The shopper's social security number. + * * @return socialSecurityNumber The shopper's social security number. */ @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER) @@ -2204,9 +2809,11 @@ public void setSocialSecurityNumber(String socialSecurityNumber) { } /** - * Boolean value indicating whether the card payment method should be split into separate debit and credit options. + * Boolean value indicating whether the card payment method should be split into separate debit + * and credit options. * - * @param splitCardFundingSources Boolean value indicating whether the card payment method should be split into separate debit and credit options. + * @param splitCardFundingSources Boolean value indicating whether the card payment method should + * be split into separate debit and credit options. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest splitCardFundingSources(Boolean splitCardFundingSources) { @@ -2215,8 +2822,11 @@ public CreateCheckoutSessionRequest splitCardFundingSources(Boolean splitCardFun } /** - * Boolean value indicating whether the card payment method should be split into separate debit and credit options. - * @return splitCardFundingSources Boolean value indicating whether the card payment method should be split into separate debit and credit options. + * Boolean value indicating whether the card payment method should be split into separate debit + * and credit options. + * + * @return splitCardFundingSources Boolean value indicating whether the card payment method should + * be split into separate debit and credit options. */ @JsonProperty(JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2225,9 +2835,11 @@ public Boolean getSplitCardFundingSources() { } /** - * Boolean value indicating whether the card payment method should be split into separate debit and credit options. + * Boolean value indicating whether the card payment method should be split into separate debit + * and credit options. * - * @param splitCardFundingSources Boolean value indicating whether the card payment method should be split into separate debit and credit options. + * @param splitCardFundingSources Boolean value indicating whether the card payment method should + * be split into separate debit and credit options. */ @JsonProperty(JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2236,9 +2848,17 @@ public void setSplitCardFundingSources(Boolean splitCardFundingSources) { } /** - * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how to split a payment when using [Adyen for + * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), + * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), + * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). * - * @param splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * @param splits An array of objects specifying how to split a payment when using [Adyen for + * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), + * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), + * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest splits(List splits) { @@ -2255,8 +2875,17 @@ public CreateCheckoutSessionRequest addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). - * @return splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how to split a payment when using [Adyen for + * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), + * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), + * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * + * @return splits An array of objects specifying how to split a payment when using [Adyen for + * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), + * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), + * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2265,9 +2894,17 @@ public List getSplits() { } /** - * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how to split a payment when using [Adyen for + * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), + * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), + * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). * - * @param splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * @param splits An array of objects specifying how to split a payment when using [Adyen for + * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), + * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), + * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2276,9 +2913,22 @@ public void setSplits(List splits) { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. * - * @param store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is + * your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest store(String store) { @@ -2287,8 +2937,22 @@ public CreateCheckoutSessionRequest store(String store) { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. - * @return store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. + * + * @return store Required for Adyen for Platforms integrations if you are a platform model. This + * is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2297,9 +2961,22 @@ public String getStore() { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. * - * @param store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is + * your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2308,19 +2985,33 @@ public void setStore(String store) { } /** - * Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. + * Specifies how payment methods should be filtered based on the 'store' parameter: - + * 'exclusive': Only payment methods belonging to the specified 'store' are + * returned. - 'inclusive': Payment methods from the 'store' and those not + * associated with any other store are returned. * - * @param storeFiltrationMode Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. + * @param storeFiltrationMode Specifies how payment methods should be filtered based on the + * 'store' parameter: - 'exclusive': Only payment methods belonging to the + * specified 'store' are returned. - 'inclusive': Payment methods from the + * 'store' and those not associated with any other store are returned. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ - public CreateCheckoutSessionRequest storeFiltrationMode(StoreFiltrationModeEnum storeFiltrationMode) { + public CreateCheckoutSessionRequest storeFiltrationMode( + StoreFiltrationModeEnum storeFiltrationMode) { this.storeFiltrationMode = storeFiltrationMode; return this; } /** - * Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. - * @return storeFiltrationMode Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. + * Specifies how payment methods should be filtered based on the 'store' parameter: - + * 'exclusive': Only payment methods belonging to the specified 'store' are + * returned. - 'inclusive': Payment methods from the 'store' and those not + * associated with any other store are returned. + * + * @return storeFiltrationMode Specifies how payment methods should be filtered based on the + * 'store' parameter: - 'exclusive': Only payment methods belonging to the + * specified 'store' are returned. - 'inclusive': Payment methods from the + * 'store' and those not associated with any other store are returned. */ @JsonProperty(JSON_PROPERTY_STORE_FILTRATION_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2329,9 +3020,15 @@ public StoreFiltrationModeEnum getStoreFiltrationMode() { } /** - * Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. + * Specifies how payment methods should be filtered based on the 'store' parameter: - + * 'exclusive': Only payment methods belonging to the specified 'store' are + * returned. - 'inclusive': Payment methods from the 'store' and those not + * associated with any other store are returned. * - * @param storeFiltrationMode Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. + * @param storeFiltrationMode Specifies how payment methods should be filtered based on the + * 'store' parameter: - 'exclusive': Only payment methods belonging to the + * specified 'store' are returned. - 'inclusive': Payment methods from the + * 'store' and those not associated with any other store are returned. */ @JsonProperty(JSON_PROPERTY_STORE_FILTRATION_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2340,9 +3037,13 @@ public void setStoreFiltrationMode(StoreFiltrationModeEnum storeFiltrationMode) } /** - * When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * When true and `shopperReference` is provided, the payment details will be stored for + * future [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). * - * @param storePaymentMethod When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * @param storePaymentMethod When true and `shopperReference` is provided, the payment + * details will be stored for future [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest storePaymentMethod(Boolean storePaymentMethod) { @@ -2351,8 +3052,13 @@ public CreateCheckoutSessionRequest storePaymentMethod(Boolean storePaymentMetho } /** - * When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). - * @return storePaymentMethod When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * When true and `shopperReference` is provided, the payment details will be stored for + * future [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * + * @return storePaymentMethod When true and `shopperReference` is provided, the payment + * details will be stored for future [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). */ @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2361,9 +3067,13 @@ public Boolean getStorePaymentMethod() { } /** - * When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * When true and `shopperReference` is provided, the payment details will be stored for + * future [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). * - * @param storePaymentMethod When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * @param storePaymentMethod When true and `shopperReference` is provided, the payment + * details will be stored for future [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). */ @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2372,19 +3082,39 @@ public void setStorePaymentMethod(Boolean storePaymentMethod) { } /** - * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. + * Indicates if the details of the payment method will be stored for the shopper. Possible values: + * * **disabled** – No details will be stored (default). * **askForConsent** – If the + * `shopperReference` is provided, the UI lets the shopper choose if they want their + * payment details to be stored. * **enabled** – If the `shopperReference` is provided, + * the details will be stored without asking the shopper for consent. * - * @param storePaymentMethodMode Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. + * @param storePaymentMethodMode Indicates if the details of the payment method will be stored for + * the shopper. Possible values: * **disabled** – No details will be stored (default). * + * **askForConsent** – If the `shopperReference` is provided, the UI lets the + * shopper choose if they want their payment details to be stored. * **enabled** – If the + * `shopperReference` is provided, the details will be stored without asking the + * shopper for consent. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ - public CreateCheckoutSessionRequest storePaymentMethodMode(StorePaymentMethodModeEnum storePaymentMethodMode) { + public CreateCheckoutSessionRequest storePaymentMethodMode( + StorePaymentMethodModeEnum storePaymentMethodMode) { this.storePaymentMethodMode = storePaymentMethodMode; return this; } /** - * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. - * @return storePaymentMethodMode Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. + * Indicates if the details of the payment method will be stored for the shopper. Possible values: + * * **disabled** – No details will be stored (default). * **askForConsent** – If the + * `shopperReference` is provided, the UI lets the shopper choose if they want their + * payment details to be stored. * **enabled** – If the `shopperReference` is provided, + * the details will be stored without asking the shopper for consent. + * + * @return storePaymentMethodMode Indicates if the details of the payment method will be stored + * for the shopper. Possible values: * **disabled** – No details will be stored (default). * + * **askForConsent** – If the `shopperReference` is provided, the UI lets the + * shopper choose if they want their payment details to be stored. * **enabled** – If the + * `shopperReference` is provided, the details will be stored without asking the + * shopper for consent. */ @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2393,9 +3123,18 @@ public StorePaymentMethodModeEnum getStorePaymentMethodMode() { } /** - * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. + * Indicates if the details of the payment method will be stored for the shopper. Possible values: + * * **disabled** – No details will be stored (default). * **askForConsent** – If the + * `shopperReference` is provided, the UI lets the shopper choose if they want their + * payment details to be stored. * **enabled** – If the `shopperReference` is provided, + * the details will be stored without asking the shopper for consent. * - * @param storePaymentMethodMode Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. + * @param storePaymentMethodMode Indicates if the details of the payment method will be stored for + * the shopper. Possible values: * **disabled** – No details will be stored (default). * + * **askForConsent** – If the `shopperReference` is provided, the UI lets the + * shopper choose if they want their payment details to be stored. * **enabled** – If the + * `shopperReference` is provided, the details will be stored without asking the + * shopper for consent. */ @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2404,9 +3143,17 @@ public void setStorePaymentMethodMode(StorePaymentMethodModeEnum storePaymentMet } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest telephoneNumber(String telephoneNumber) { @@ -2415,8 +3162,17 @@ public CreateCheckoutSessionRequest telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. - * @return telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. + * + * @return telephoneNumber The shopper's telephone number. The phone number must include a + * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2425,9 +3181,17 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2436,9 +3200,13 @@ public void setTelephoneNumber(String telephoneNumber) { } /** - * Sets a custom theme for [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). The value can be any of the **Theme ID** values from your Customer Area. + * Sets a custom theme for [Hosted + * Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). + * The value can be any of the **Theme ID** values from your Customer Area. * - * @param themeId Sets a custom theme for [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). The value can be any of the **Theme ID** values from your Customer Area. + * @param themeId Sets a custom theme for [Hosted + * Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). + * The value can be any of the **Theme ID** values from your Customer Area. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest themeId(String themeId) { @@ -2447,8 +3215,13 @@ public CreateCheckoutSessionRequest themeId(String themeId) { } /** - * Sets a custom theme for [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). The value can be any of the **Theme ID** values from your Customer Area. - * @return themeId Sets a custom theme for [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). The value can be any of the **Theme ID** values from your Customer Area. + * Sets a custom theme for [Hosted + * Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). + * The value can be any of the **Theme ID** values from your Customer Area. + * + * @return themeId Sets a custom theme for [Hosted + * Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). + * The value can be any of the **Theme ID** values from your Customer Area. */ @JsonProperty(JSON_PROPERTY_THEME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2457,9 +3230,13 @@ public String getThemeId() { } /** - * Sets a custom theme for [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). The value can be any of the **Theme ID** values from your Customer Area. + * Sets a custom theme for [Hosted + * Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). + * The value can be any of the **Theme ID** values from your Customer Area. * - * @param themeId Sets a custom theme for [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). The value can be any of the **Theme ID** values from your Customer Area. + * @param themeId Sets a custom theme for [Hosted + * Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). + * The value can be any of the **Theme ID** values from your Customer Area. */ @JsonProperty(JSON_PROPERTY_THEME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2470,17 +3247,19 @@ public void setThemeId(String themeId) { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ - public CreateCheckoutSessionRequest threeDS2RequestData(CheckoutSessionThreeDS2RequestData threeDS2RequestData) { + public CreateCheckoutSessionRequest threeDS2RequestData( + CheckoutSessionThreeDS2RequestData threeDS2RequestData) { this.threeDS2RequestData = threeDS2RequestData; return this; } /** * Get threeDS2RequestData - * @return threeDS2RequestData + * + * @return threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2491,7 +3270,7 @@ public CheckoutSessionThreeDS2RequestData getThreeDS2RequestData() { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2500,26 +3279,41 @@ public void setThreeDS2RequestData(CheckoutSessionThreeDS2RequestData threeDS2Re } /** - * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. * - * @param threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * @param threeDSAuthenticationOnly Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v69 - * Use `authenticationData.authenticationOnly` instead. + * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` + * instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use + // `authenticationData.authenticationOnly` instead. public CreateCheckoutSessionRequest threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { this.threeDSAuthenticationOnly = threeDSAuthenticationOnly; return this; } /** - * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. - * @return threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. - * @deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. + * Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. + * + * @return threeDSAuthenticationOnly Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. + * @deprecated // deprecated since Adyen Checkout API v69: Use + * `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use + // `authenticationData.authenticationOnly` instead. @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getThreeDSAuthenticationOnly() { @@ -2527,14 +3321,20 @@ public Boolean getThreeDSAuthenticationOnly() { } /** - * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. * - * @param threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. - * - * @deprecated since Adyen Checkout API v69 - * Use `authenticationData.authenticationOnly` instead. + * @param threeDSAuthenticationOnly Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. + * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` + * instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use + // `authenticationData.authenticationOnly` instead. @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { @@ -2554,6 +3354,7 @@ public CreateCheckoutSessionRequest trustedShopper(Boolean trustedShopper) { /** * Set to true if the payment should be routed to a trusted MID. + * * @return trustedShopper Set to true if the payment should be routed to a trusted MID. */ @JsonProperty(JSON_PROPERTY_TRUSTED_SHOPPER) @@ -2573,9 +3374,7 @@ public void setTrustedShopper(Boolean trustedShopper) { this.trustedShopper = trustedShopper; } - /** - * Return true if this CreateCheckoutSessionRequest object is equal to o. - */ + /** Return true if this CreateCheckoutSessionRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -2585,72 +3384,149 @@ public boolean equals(Object o) { return false; } CreateCheckoutSessionRequest createCheckoutSessionRequest = (CreateCheckoutSessionRequest) o; - return Objects.equals(this.accountInfo, createCheckoutSessionRequest.accountInfo) && - Objects.equals(this.additionalAmount, createCheckoutSessionRequest.additionalAmount) && - Objects.equals(this.additionalData, createCheckoutSessionRequest.additionalData) && - Objects.equals(this.allowedPaymentMethods, createCheckoutSessionRequest.allowedPaymentMethods) && - Objects.equals(this.amount, createCheckoutSessionRequest.amount) && - Objects.equals(this.applicationInfo, createCheckoutSessionRequest.applicationInfo) && - Objects.equals(this.authenticationData, createCheckoutSessionRequest.authenticationData) && - Objects.equals(this.billingAddress, createCheckoutSessionRequest.billingAddress) && - Objects.equals(this.blockedPaymentMethods, createCheckoutSessionRequest.blockedPaymentMethods) && - Objects.equals(this.captureDelayHours, createCheckoutSessionRequest.captureDelayHours) && - Objects.equals(this.channel, createCheckoutSessionRequest.channel) && - Objects.equals(this.company, createCheckoutSessionRequest.company) && - Objects.equals(this.countryCode, createCheckoutSessionRequest.countryCode) && - Objects.equals(this.dateOfBirth, createCheckoutSessionRequest.dateOfBirth) && - Objects.equals(this.deliverAt, createCheckoutSessionRequest.deliverAt) && - Objects.equals(this.deliveryAddress, createCheckoutSessionRequest.deliveryAddress) && - Objects.equals(this.enableOneClick, createCheckoutSessionRequest.enableOneClick) && - Objects.equals(this.enablePayOut, createCheckoutSessionRequest.enablePayOut) && - Objects.equals(this.enableRecurring, createCheckoutSessionRequest.enableRecurring) && - Objects.equals(this.expiresAt, createCheckoutSessionRequest.expiresAt) && - Objects.equals(this.fundOrigin, createCheckoutSessionRequest.fundOrigin) && - Objects.equals(this.fundRecipient, createCheckoutSessionRequest.fundRecipient) && - Objects.equals(this.installmentOptions, createCheckoutSessionRequest.installmentOptions) && - Objects.equals(this.lineItems, createCheckoutSessionRequest.lineItems) && - Objects.equals(this.mandate, createCheckoutSessionRequest.mandate) && - Objects.equals(this.mcc, createCheckoutSessionRequest.mcc) && - Objects.equals(this.merchantAccount, createCheckoutSessionRequest.merchantAccount) && - Objects.equals(this.merchantOrderReference, createCheckoutSessionRequest.merchantOrderReference) && - Objects.equals(this.metadata, createCheckoutSessionRequest.metadata) && - Objects.equals(this.mode, createCheckoutSessionRequest.mode) && - Objects.equals(this.mpiData, createCheckoutSessionRequest.mpiData) && - Objects.equals(this.platformChargebackLogic, createCheckoutSessionRequest.platformChargebackLogic) && - Objects.equals(this.recurringExpiry, createCheckoutSessionRequest.recurringExpiry) && - Objects.equals(this.recurringFrequency, createCheckoutSessionRequest.recurringFrequency) && - Objects.equals(this.recurringProcessingModel, createCheckoutSessionRequest.recurringProcessingModel) && - Objects.equals(this.redirectFromIssuerMethod, createCheckoutSessionRequest.redirectFromIssuerMethod) && - Objects.equals(this.redirectToIssuerMethod, createCheckoutSessionRequest.redirectToIssuerMethod) && - Objects.equals(this.reference, createCheckoutSessionRequest.reference) && - Objects.equals(this.returnUrl, createCheckoutSessionRequest.returnUrl) && - Objects.equals(this.riskData, createCheckoutSessionRequest.riskData) && - Objects.equals(this.shopperEmail, createCheckoutSessionRequest.shopperEmail) && - Objects.equals(this.shopperIP, createCheckoutSessionRequest.shopperIP) && - Objects.equals(this.shopperInteraction, createCheckoutSessionRequest.shopperInteraction) && - Objects.equals(this.shopperLocale, createCheckoutSessionRequest.shopperLocale) && - Objects.equals(this.shopperName, createCheckoutSessionRequest.shopperName) && - Objects.equals(this.shopperReference, createCheckoutSessionRequest.shopperReference) && - Objects.equals(this.shopperStatement, createCheckoutSessionRequest.shopperStatement) && - Objects.equals(this.showInstallmentAmount, createCheckoutSessionRequest.showInstallmentAmount) && - Objects.equals(this.showRemovePaymentMethodButton, createCheckoutSessionRequest.showRemovePaymentMethodButton) && - Objects.equals(this.socialSecurityNumber, createCheckoutSessionRequest.socialSecurityNumber) && - Objects.equals(this.splitCardFundingSources, createCheckoutSessionRequest.splitCardFundingSources) && - Objects.equals(this.splits, createCheckoutSessionRequest.splits) && - Objects.equals(this.store, createCheckoutSessionRequest.store) && - Objects.equals(this.storeFiltrationMode, createCheckoutSessionRequest.storeFiltrationMode) && - Objects.equals(this.storePaymentMethod, createCheckoutSessionRequest.storePaymentMethod) && - Objects.equals(this.storePaymentMethodMode, createCheckoutSessionRequest.storePaymentMethodMode) && - Objects.equals(this.telephoneNumber, createCheckoutSessionRequest.telephoneNumber) && - Objects.equals(this.themeId, createCheckoutSessionRequest.themeId) && - Objects.equals(this.threeDS2RequestData, createCheckoutSessionRequest.threeDS2RequestData) && - Objects.equals(this.threeDSAuthenticationOnly, createCheckoutSessionRequest.threeDSAuthenticationOnly) && - Objects.equals(this.trustedShopper, createCheckoutSessionRequest.trustedShopper); + return Objects.equals(this.accountInfo, createCheckoutSessionRequest.accountInfo) + && Objects.equals(this.additionalAmount, createCheckoutSessionRequest.additionalAmount) + && Objects.equals(this.additionalData, createCheckoutSessionRequest.additionalData) + && Objects.equals( + this.allowedPaymentMethods, createCheckoutSessionRequest.allowedPaymentMethods) + && Objects.equals(this.amount, createCheckoutSessionRequest.amount) + && Objects.equals(this.applicationInfo, createCheckoutSessionRequest.applicationInfo) + && Objects.equals(this.authenticationData, createCheckoutSessionRequest.authenticationData) + && Objects.equals(this.billingAddress, createCheckoutSessionRequest.billingAddress) + && Objects.equals( + this.blockedPaymentMethods, createCheckoutSessionRequest.blockedPaymentMethods) + && Objects.equals(this.captureDelayHours, createCheckoutSessionRequest.captureDelayHours) + && Objects.equals(this.channel, createCheckoutSessionRequest.channel) + && Objects.equals(this.company, createCheckoutSessionRequest.company) + && Objects.equals(this.countryCode, createCheckoutSessionRequest.countryCode) + && Objects.equals(this.dateOfBirth, createCheckoutSessionRequest.dateOfBirth) + && Objects.equals(this.deliverAt, createCheckoutSessionRequest.deliverAt) + && Objects.equals(this.deliveryAddress, createCheckoutSessionRequest.deliveryAddress) + && Objects.equals(this.enableOneClick, createCheckoutSessionRequest.enableOneClick) + && Objects.equals(this.enablePayOut, createCheckoutSessionRequest.enablePayOut) + && Objects.equals(this.enableRecurring, createCheckoutSessionRequest.enableRecurring) + && Objects.equals(this.expiresAt, createCheckoutSessionRequest.expiresAt) + && Objects.equals(this.fundOrigin, createCheckoutSessionRequest.fundOrigin) + && Objects.equals(this.fundRecipient, createCheckoutSessionRequest.fundRecipient) + && Objects.equals(this.installmentOptions, createCheckoutSessionRequest.installmentOptions) + && Objects.equals(this.lineItems, createCheckoutSessionRequest.lineItems) + && Objects.equals(this.mandate, createCheckoutSessionRequest.mandate) + && Objects.equals(this.mcc, createCheckoutSessionRequest.mcc) + && Objects.equals(this.merchantAccount, createCheckoutSessionRequest.merchantAccount) + && Objects.equals( + this.merchantOrderReference, createCheckoutSessionRequest.merchantOrderReference) + && Objects.equals(this.metadata, createCheckoutSessionRequest.metadata) + && Objects.equals(this.mode, createCheckoutSessionRequest.mode) + && Objects.equals(this.mpiData, createCheckoutSessionRequest.mpiData) + && Objects.equals( + this.platformChargebackLogic, createCheckoutSessionRequest.platformChargebackLogic) + && Objects.equals(this.recurringExpiry, createCheckoutSessionRequest.recurringExpiry) + && Objects.equals(this.recurringFrequency, createCheckoutSessionRequest.recurringFrequency) + && Objects.equals( + this.recurringProcessingModel, createCheckoutSessionRequest.recurringProcessingModel) + && Objects.equals( + this.redirectFromIssuerMethod, createCheckoutSessionRequest.redirectFromIssuerMethod) + && Objects.equals( + this.redirectToIssuerMethod, createCheckoutSessionRequest.redirectToIssuerMethod) + && Objects.equals(this.reference, createCheckoutSessionRequest.reference) + && Objects.equals(this.returnUrl, createCheckoutSessionRequest.returnUrl) + && Objects.equals(this.riskData, createCheckoutSessionRequest.riskData) + && Objects.equals(this.shopperEmail, createCheckoutSessionRequest.shopperEmail) + && Objects.equals(this.shopperIP, createCheckoutSessionRequest.shopperIP) + && Objects.equals(this.shopperInteraction, createCheckoutSessionRequest.shopperInteraction) + && Objects.equals(this.shopperLocale, createCheckoutSessionRequest.shopperLocale) + && Objects.equals(this.shopperName, createCheckoutSessionRequest.shopperName) + && Objects.equals(this.shopperReference, createCheckoutSessionRequest.shopperReference) + && Objects.equals(this.shopperStatement, createCheckoutSessionRequest.shopperStatement) + && Objects.equals( + this.showInstallmentAmount, createCheckoutSessionRequest.showInstallmentAmount) + && Objects.equals( + this.showRemovePaymentMethodButton, + createCheckoutSessionRequest.showRemovePaymentMethodButton) + && Objects.equals( + this.socialSecurityNumber, createCheckoutSessionRequest.socialSecurityNumber) + && Objects.equals( + this.splitCardFundingSources, createCheckoutSessionRequest.splitCardFundingSources) + && Objects.equals(this.splits, createCheckoutSessionRequest.splits) + && Objects.equals(this.store, createCheckoutSessionRequest.store) + && Objects.equals( + this.storeFiltrationMode, createCheckoutSessionRequest.storeFiltrationMode) + && Objects.equals(this.storePaymentMethod, createCheckoutSessionRequest.storePaymentMethod) + && Objects.equals( + this.storePaymentMethodMode, createCheckoutSessionRequest.storePaymentMethodMode) + && Objects.equals(this.telephoneNumber, createCheckoutSessionRequest.telephoneNumber) + && Objects.equals(this.themeId, createCheckoutSessionRequest.themeId) + && Objects.equals( + this.threeDS2RequestData, createCheckoutSessionRequest.threeDS2RequestData) + && Objects.equals( + this.threeDSAuthenticationOnly, createCheckoutSessionRequest.threeDSAuthenticationOnly) + && Objects.equals(this.trustedShopper, createCheckoutSessionRequest.trustedShopper); } @Override public int hashCode() { - return Objects.hash(accountInfo, additionalAmount, additionalData, allowedPaymentMethods, amount, applicationInfo, authenticationData, billingAddress, blockedPaymentMethods, captureDelayHours, channel, company, countryCode, dateOfBirth, deliverAt, deliveryAddress, enableOneClick, enablePayOut, enableRecurring, expiresAt, fundOrigin, fundRecipient, installmentOptions, lineItems, mandate, mcc, merchantAccount, merchantOrderReference, metadata, mode, mpiData, platformChargebackLogic, recurringExpiry, recurringFrequency, recurringProcessingModel, redirectFromIssuerMethod, redirectToIssuerMethod, reference, returnUrl, riskData, shopperEmail, shopperIP, shopperInteraction, shopperLocale, shopperName, shopperReference, shopperStatement, showInstallmentAmount, showRemovePaymentMethodButton, socialSecurityNumber, splitCardFundingSources, splits, store, storeFiltrationMode, storePaymentMethod, storePaymentMethodMode, telephoneNumber, themeId, threeDS2RequestData, threeDSAuthenticationOnly, trustedShopper); + return Objects.hash( + accountInfo, + additionalAmount, + additionalData, + allowedPaymentMethods, + amount, + applicationInfo, + authenticationData, + billingAddress, + blockedPaymentMethods, + captureDelayHours, + channel, + company, + countryCode, + dateOfBirth, + deliverAt, + deliveryAddress, + enableOneClick, + enablePayOut, + enableRecurring, + expiresAt, + fundOrigin, + fundRecipient, + installmentOptions, + lineItems, + mandate, + mcc, + merchantAccount, + merchantOrderReference, + metadata, + mode, + mpiData, + platformChargebackLogic, + recurringExpiry, + recurringFrequency, + recurringProcessingModel, + redirectFromIssuerMethod, + redirectToIssuerMethod, + reference, + returnUrl, + riskData, + shopperEmail, + shopperIP, + shopperInteraction, + shopperLocale, + shopperName, + shopperReference, + shopperStatement, + showInstallmentAmount, + showRemovePaymentMethodButton, + socialSecurityNumber, + splitCardFundingSources, + splits, + store, + storeFiltrationMode, + storePaymentMethod, + storePaymentMethodMode, + telephoneNumber, + themeId, + threeDS2RequestData, + threeDSAuthenticationOnly, + trustedShopper); } @Override @@ -2660,12 +3536,16 @@ public String toString() { sb.append(" accountInfo: ").append(toIndentedString(accountInfo)).append("\n"); sb.append(" additionalAmount: ").append(toIndentedString(additionalAmount)).append("\n"); sb.append(" additionalData: ").append(toIndentedString(additionalData)).append("\n"); - sb.append(" allowedPaymentMethods: ").append(toIndentedString(allowedPaymentMethods)).append("\n"); + sb.append(" allowedPaymentMethods: ") + .append(toIndentedString(allowedPaymentMethods)) + .append("\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" applicationInfo: ").append(toIndentedString(applicationInfo)).append("\n"); sb.append(" authenticationData: ").append(toIndentedString(authenticationData)).append("\n"); sb.append(" billingAddress: ").append(toIndentedString(billingAddress)).append("\n"); - sb.append(" blockedPaymentMethods: ").append(toIndentedString(blockedPaymentMethods)).append("\n"); + sb.append(" blockedPaymentMethods: ") + .append(toIndentedString(blockedPaymentMethods)) + .append("\n"); sb.append(" captureDelayHours: ").append(toIndentedString(captureDelayHours)).append("\n"); sb.append(" channel: ").append(toIndentedString(channel)).append("\n"); sb.append(" company: ").append(toIndentedString(company)).append("\n"); @@ -2684,16 +3564,26 @@ public String toString() { sb.append(" mandate: ").append(toIndentedString(mandate)).append("\n"); sb.append(" mcc: ").append(toIndentedString(mcc)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" merchantOrderReference: ").append(toIndentedString(merchantOrderReference)).append("\n"); + sb.append(" merchantOrderReference: ") + .append(toIndentedString(merchantOrderReference)) + .append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); sb.append(" mpiData: ").append(toIndentedString(mpiData)).append("\n"); - sb.append(" platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n"); + sb.append(" platformChargebackLogic: ") + .append(toIndentedString(platformChargebackLogic)) + .append("\n"); sb.append(" recurringExpiry: ").append(toIndentedString(recurringExpiry)).append("\n"); sb.append(" recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n"); - sb.append(" recurringProcessingModel: ").append(toIndentedString(recurringProcessingModel)).append("\n"); - sb.append(" redirectFromIssuerMethod: ").append(toIndentedString(redirectFromIssuerMethod)).append("\n"); - sb.append(" redirectToIssuerMethod: ").append(toIndentedString(redirectToIssuerMethod)).append("\n"); + sb.append(" recurringProcessingModel: ") + .append(toIndentedString(recurringProcessingModel)) + .append("\n"); + sb.append(" redirectFromIssuerMethod: ") + .append(toIndentedString(redirectFromIssuerMethod)) + .append("\n"); + sb.append(" redirectToIssuerMethod: ") + .append(toIndentedString(redirectToIssuerMethod)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" returnUrl: ").append(toIndentedString(returnUrl)).append("\n"); sb.append(" riskData: ").append(toIndentedString(riskData)).append("\n"); @@ -2704,27 +3594,42 @@ public String toString() { sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append(" shopperStatement: ").append(toIndentedString(shopperStatement)).append("\n"); - sb.append(" showInstallmentAmount: ").append(toIndentedString(showInstallmentAmount)).append("\n"); - sb.append(" showRemovePaymentMethodButton: ").append(toIndentedString(showRemovePaymentMethodButton)).append("\n"); - sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); - sb.append(" splitCardFundingSources: ").append(toIndentedString(splitCardFundingSources)).append("\n"); + sb.append(" showInstallmentAmount: ") + .append(toIndentedString(showInstallmentAmount)) + .append("\n"); + sb.append(" showRemovePaymentMethodButton: ") + .append(toIndentedString(showRemovePaymentMethodButton)) + .append("\n"); + sb.append(" socialSecurityNumber: ") + .append(toIndentedString(socialSecurityNumber)) + .append("\n"); + sb.append(" splitCardFundingSources: ") + .append(toIndentedString(splitCardFundingSources)) + .append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" store: ").append(toIndentedString(store)).append("\n"); - sb.append(" storeFiltrationMode: ").append(toIndentedString(storeFiltrationMode)).append("\n"); + sb.append(" storeFiltrationMode: ") + .append(toIndentedString(storeFiltrationMode)) + .append("\n"); sb.append(" storePaymentMethod: ").append(toIndentedString(storePaymentMethod)).append("\n"); - sb.append(" storePaymentMethodMode: ").append(toIndentedString(storePaymentMethodMode)).append("\n"); + sb.append(" storePaymentMethodMode: ") + .append(toIndentedString(storePaymentMethodMode)) + .append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); sb.append(" themeId: ").append(toIndentedString(themeId)).append("\n"); - sb.append(" threeDS2RequestData: ").append(toIndentedString(threeDS2RequestData)).append("\n"); - sb.append(" threeDSAuthenticationOnly: ").append(toIndentedString(threeDSAuthenticationOnly)).append("\n"); + sb.append(" threeDS2RequestData: ") + .append(toIndentedString(threeDS2RequestData)) + .append("\n"); + sb.append(" threeDSAuthenticationOnly: ") + .append(toIndentedString(threeDSAuthenticationOnly)) + .append("\n"); sb.append(" trustedShopper: ").append(toIndentedString(trustedShopper)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -2733,21 +3638,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CreateCheckoutSessionRequest given an JSON string * * @param jsonString JSON string * @return An instance of CreateCheckoutSessionRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to CreateCheckoutSessionRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CreateCheckoutSessionRequest */ - public static CreateCheckoutSessionRequest fromJson(String jsonString) throws JsonProcessingException { + public static CreateCheckoutSessionRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateCheckoutSessionRequest.class); } -/** - * Convert an instance of CreateCheckoutSessionRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CreateCheckoutSessionRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionResponse.java b/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionResponse.java index 878717818..2e59087e2 100644 --- a/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionResponse.java +++ b/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionResponse.java @@ -2,54 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.AccountInfo; -import com.adyen.model.checkout.Amount; -import com.adyen.model.checkout.ApplicationInfo; -import com.adyen.model.checkout.AuthenticationData; -import com.adyen.model.checkout.BillingAddress; -import com.adyen.model.checkout.CheckoutSessionInstallmentOption; -import com.adyen.model.checkout.CheckoutSessionThreeDS2RequestData; -import com.adyen.model.checkout.Company; -import com.adyen.model.checkout.DeliveryAddress; -import com.adyen.model.checkout.FundOrigin; -import com.adyen.model.checkout.FundRecipient; -import com.adyen.model.checkout.LineItem; -import com.adyen.model.checkout.Mandate; -import com.adyen.model.checkout.Name; -import com.adyen.model.checkout.PlatformChargebackLogic; -import com.adyen.model.checkout.RiskData; -import com.adyen.model.checkout.Split; -import com.adyen.model.checkout.ThreeDSecureData; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * CreateCheckoutSessionResponse - */ +/** CreateCheckoutSessionResponse */ @JsonPropertyOrder({ CreateCheckoutSessionResponse.JSON_PROPERTY_ACCOUNT_INFO, CreateCheckoutSessionResponse.JSON_PROPERTY_ADDITIONAL_AMOUNT, @@ -116,7 +93,6 @@ CreateCheckoutSessionResponse.JSON_PROPERTY_TRUSTED_SHOPPER, CreateCheckoutSessionResponse.JSON_PROPERTY_URL }) - public class CreateCheckoutSessionResponse { public static final String JSON_PROPERTY_ACCOUNT_INFO = "accountInfo"; private AccountInfo accountInfo; @@ -149,10 +125,12 @@ public class CreateCheckoutSessionResponse { private Integer captureDelayHours; /** - * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** + * The platform where a payment transaction takes place. This field is optional for filtering out + * payment methods that are only available on specific platforms. If this value is not set, then + * we will try to infer it from the `sdkVersion` or `token`. Possible values: + * * **iOS** * **Android** * **Web** */ public enum ChannelEnum { - IOS(String.valueOf("iOS")), ANDROID(String.valueOf("Android")), @@ -164,7 +142,7 @@ public enum ChannelEnum { private String value; ChannelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -185,7 +163,11 @@ public static ChannelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ChannelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChannelEnum.values())); + LOG.warning( + "ChannelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ChannelEnum.values())); return null; } } @@ -251,10 +233,10 @@ public static ChannelEnum fromValue(String value) { private Map metadata; /** - * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration + * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in + * or Components integration * **hosted**: Hosted Checkout integration */ public enum ModeEnum { - EMBEDDED(String.valueOf("embedded")), HOSTED(String.valueOf("hosted")); @@ -264,7 +246,7 @@ public enum ModeEnum { private String value; ModeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -285,7 +267,11 @@ public static ModeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ModeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ModeEnum.values())); + LOG.warning( + "ModeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ModeEnum.values())); return null; } } @@ -306,22 +292,30 @@ public static ModeEnum fromValue(String value) { private String recurringFrequency; /** - * Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details. + * Allowed values: * `Subscription` – A transaction for a fixed or variable amount, + * which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) + * transaction, card details are stored to enable one-click or omnichannel journeys, or simply to + * streamline the checkout process. Any subscription not following a fixed schedule is also + * considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled + * card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or + * have variable amounts. For example, automatic top-ups when a cardholder's balance drops + * below a certain amount. */ public enum RecurringProcessingModelEnum { - CARDONFILE(String.valueOf("CardOnFile")), SUBSCRIPTION(String.valueOf("Subscription")), UNSCHEDULEDCARDONFILE(String.valueOf("UnscheduledCardOnFile")); - private static final Logger LOG = Logger.getLogger(RecurringProcessingModelEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(RecurringProcessingModelEnum.class.getName()); private String value; RecurringProcessingModelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -342,7 +336,11 @@ public static RecurringProcessingModelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("RecurringProcessingModelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RecurringProcessingModelEnum.values())); + LOG.warning( + "RecurringProcessingModelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(RecurringProcessingModelEnum.values())); return null; } } @@ -375,10 +373,19 @@ public static RecurringProcessingModelEnum fromValue(String value) { private String shopperIP; /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. */ public enum ShopperInteractionEnum { - ECOMMERCE(String.valueOf("Ecommerce")), CONTAUTH(String.valueOf("ContAuth")), @@ -392,7 +399,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -413,7 +420,11 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning( + "ShopperInteractionEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -436,7 +447,8 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_SHOW_INSTALLMENT_AMOUNT = "showInstallmentAmount"; private Boolean showInstallmentAmount; - public static final String JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON = "showRemovePaymentMethodButton"; + public static final String JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON = + "showRemovePaymentMethodButton"; private Boolean showRemovePaymentMethodButton; public static final String JSON_PROPERTY_SOCIAL_SECURITY_NUMBER = "socialSecurityNumber"; @@ -452,10 +464,12 @@ public static ShopperInteractionEnum fromValue(String value) { private String store; /** - * Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. + * Specifies how payment methods should be filtered based on the 'store' parameter: - + * 'exclusive': Only payment methods belonging to the specified 'store' are + * returned. - 'inclusive': Payment methods from the 'store' and those not + * associated with any other store are returned. */ public enum StoreFiltrationModeEnum { - EXCLUSIVE(String.valueOf("exclusive")), INCLUSIVE(String.valueOf("inclusive")), @@ -467,7 +481,7 @@ public enum StoreFiltrationModeEnum { private String value; StoreFiltrationModeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -488,7 +502,11 @@ public static StoreFiltrationModeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StoreFiltrationModeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StoreFiltrationModeEnum.values())); + LOG.warning( + "StoreFiltrationModeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StoreFiltrationModeEnum.values())); return null; } } @@ -500,10 +518,13 @@ public static StoreFiltrationModeEnum fromValue(String value) { private Boolean storePaymentMethod; /** - * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. + * Indicates if the details of the payment method will be stored for the shopper. Possible values: + * * **disabled** – No details will be stored (default). * **askForConsent** – If the + * `shopperReference` is provided, the UI lets the shopper choose if they want their + * payment details to be stored. * **enabled** – If the `shopperReference` is provided, + * the details will be stored without asking the shopper for consent. */ public enum StorePaymentMethodModeEnum { - ASKFORCONSENT(String.valueOf("askForConsent")), DISABLED(String.valueOf("disabled")), @@ -515,7 +536,7 @@ public enum StorePaymentMethodModeEnum { private String value; StorePaymentMethodModeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -536,7 +557,11 @@ public static StorePaymentMethodModeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StorePaymentMethodModeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StorePaymentMethodModeEnum.values())); + LOG.warning( + "StorePaymentMethodModeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StorePaymentMethodModeEnum.values())); return null; } } @@ -553,8 +578,10 @@ public static StorePaymentMethodModeEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S2_REQUEST_DATA = "threeDS2RequestData"; private CheckoutSessionThreeDS2RequestData threeDS2RequestData; - public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = "threeDSAuthenticationOnly"; - @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. + public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = + "threeDSAuthenticationOnly"; + @Deprecated // deprecated since Adyen Checkout API v69: Use + // `authenticationData.authenticationOnly` instead. private Boolean threeDSAuthenticationOnly; public static final String JSON_PROPERTY_TRUSTED_SHOPPER = "trustedShopper"; @@ -563,13 +590,10 @@ public static StorePaymentMethodModeEnum fromValue(String value) { public static final String JSON_PROPERTY_URL = "url"; private String url; - public CreateCheckoutSessionResponse() { - } + public CreateCheckoutSessionResponse() {} @JsonCreator - public CreateCheckoutSessionResponse( - @JsonProperty(JSON_PROPERTY_ID) String id - ) { + public CreateCheckoutSessionResponse(@JsonProperty(JSON_PROPERTY_ID) String id) { this(); this.id = id; } @@ -577,8 +601,9 @@ public CreateCheckoutSessionResponse( /** * accountInfo * - * @param accountInfo - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param accountInfo + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse accountInfo(AccountInfo accountInfo) { this.accountInfo = accountInfo; @@ -587,7 +612,8 @@ public CreateCheckoutSessionResponse accountInfo(AccountInfo accountInfo) { /** * Get accountInfo - * @return accountInfo + * + * @return accountInfo */ @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -598,7 +624,7 @@ public AccountInfo getAccountInfo() { /** * accountInfo * - * @param accountInfo + * @param accountInfo */ @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -609,8 +635,9 @@ public void setAccountInfo(AccountInfo accountInfo) { /** * additionalAmount * - * @param additionalAmount - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param additionalAmount + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse additionalAmount(Amount additionalAmount) { this.additionalAmount = additionalAmount; @@ -619,7 +646,8 @@ public CreateCheckoutSessionResponse additionalAmount(Amount additionalAmount) { /** * Get additionalAmount - * @return additionalAmount + * + * @return additionalAmount */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -630,7 +658,7 @@ public Amount getAdditionalAmount() { /** * additionalAmount * - * @param additionalAmount + * @param additionalAmount */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -639,17 +667,23 @@ public void setAdditionalAmount(Amount additionalAmount) { } /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. + * The `additionalData` object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param additionalData This field contains additional data, which may be required for a + * particular payment request. The `additionalData` object consists of entries, each + * of which includes the key and value. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse additionalData(Map additionalData) { this.additionalData = additionalData; return this; } - public CreateCheckoutSessionResponse putAdditionalDataItem(String key, String additionalDataItem) { + public CreateCheckoutSessionResponse putAdditionalDataItem( + String key, String additionalDataItem) { if (this.additionalData == null) { this.additionalData = new HashMap<>(); } @@ -658,8 +692,13 @@ public CreateCheckoutSessionResponse putAdditionalDataItem(String key, String ad } /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. - * @return additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. + * The `additionalData` object consists of entries, each of which includes the key and + * value. + * + * @return additionalData This field contains additional data, which may be required for a + * particular payment request. The `additionalData` object consists of entries, each + * of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -668,9 +707,13 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. + * The `additionalData` object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a + * particular payment request. The `additionalData` object consists of entries, each + * of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -679,17 +722,24 @@ public void setAdditionalData(Map additionalData) { } /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their + * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer + * to payment methods, use their [payment method + * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse allowedPaymentMethods(List allowedPaymentMethods) { this.allowedPaymentMethods = allowedPaymentMethods; return this; } - public CreateCheckoutSessionResponse addAllowedPaymentMethodsItem(String allowedPaymentMethodsItem) { + public CreateCheckoutSessionResponse addAllowedPaymentMethodsItem( + String allowedPaymentMethodsItem) { if (this.allowedPaymentMethods == null) { this.allowedPaymentMethods = new ArrayList<>(); } @@ -698,8 +748,14 @@ public CreateCheckoutSessionResponse addAllowedPaymentMethodsItem(String allowed } /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` - * @return allowedPaymentMethods List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their + * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * + * @return allowedPaymentMethods List of payment methods to be presented to the shopper. To refer + * to payment methods, use their [payment method + * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -708,9 +764,14 @@ public List getAllowedPaymentMethods() { } /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their + * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer + * to payment methods, use their [payment method + * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -721,8 +782,9 @@ public void setAllowedPaymentMethods(List allowedPaymentMethods) { /** * amount * - * @param amount - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param amount + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse amount(Amount amount) { this.amount = amount; @@ -731,7 +793,8 @@ public CreateCheckoutSessionResponse amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -742,7 +805,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -753,8 +816,9 @@ public void setAmount(Amount amount) { /** * applicationInfo * - * @param applicationInfo - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param applicationInfo + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse applicationInfo(ApplicationInfo applicationInfo) { this.applicationInfo = applicationInfo; @@ -763,7 +827,8 @@ public CreateCheckoutSessionResponse applicationInfo(ApplicationInfo application /** * Get applicationInfo - * @return applicationInfo + * + * @return applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -774,7 +839,7 @@ public ApplicationInfo getApplicationInfo() { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -785,8 +850,9 @@ public void setApplicationInfo(ApplicationInfo applicationInfo) { /** * authenticationData * - * @param authenticationData - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param authenticationData + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse authenticationData(AuthenticationData authenticationData) { this.authenticationData = authenticationData; @@ -795,7 +861,8 @@ public CreateCheckoutSessionResponse authenticationData(AuthenticationData authe /** * Get authenticationData - * @return authenticationData + * + * @return authenticationData */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -806,7 +873,7 @@ public AuthenticationData getAuthenticationData() { /** * authenticationData * - * @param authenticationData + * @param authenticationData */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -817,8 +884,9 @@ public void setAuthenticationData(AuthenticationData authenticationData) { /** * billingAddress * - * @param billingAddress - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param billingAddress + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse billingAddress(BillingAddress billingAddress) { this.billingAddress = billingAddress; @@ -827,7 +895,8 @@ public CreateCheckoutSessionResponse billingAddress(BillingAddress billingAddres /** * Get billingAddress - * @return billingAddress + * + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -838,7 +907,7 @@ public BillingAddress getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -847,17 +916,24 @@ public void setBillingAddress(BillingAddress billingAddress) { } /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their + * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to + * payment methods, use their [payment method + * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse blockedPaymentMethods(List blockedPaymentMethods) { this.blockedPaymentMethods = blockedPaymentMethods; return this; } - public CreateCheckoutSessionResponse addBlockedPaymentMethodsItem(String blockedPaymentMethodsItem) { + public CreateCheckoutSessionResponse addBlockedPaymentMethodsItem( + String blockedPaymentMethodsItem) { if (this.blockedPaymentMethods == null) { this.blockedPaymentMethods = new ArrayList<>(); } @@ -866,8 +942,14 @@ public CreateCheckoutSessionResponse addBlockedPaymentMethodsItem(String blocked } /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` - * @return blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their + * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * + * @return blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer + * to payment methods, use their [payment method + * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_BLOCKED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -876,9 +958,14 @@ public List getBlockedPaymentMethods() { } /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their + * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to + * payment methods, use their [payment method + * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_BLOCKED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -889,8 +976,10 @@ public void setBlockedPaymentMethods(List blockedPaymentMethods) { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, + * specified in hours. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse captureDelayHours(Integer captureDelayHours) { this.captureDelayHours = captureDelayHours; @@ -899,7 +988,9 @@ public CreateCheckoutSessionResponse captureDelayHours(Integer captureDelayHours /** * The delay between the authorisation and scheduled auto-capture, specified in hours. - * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. + * + * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, + * specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -910,7 +1001,8 @@ public Integer getCaptureDelayHours() { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, + * specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -919,10 +1011,17 @@ public void setCaptureDelayHours(Integer captureDelayHours) { } /** - * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** + * The platform where a payment transaction takes place. This field is optional for filtering out + * payment methods that are only available on specific platforms. If this value is not set, then + * we will try to infer it from the `sdkVersion` or `token`. Possible values: + * * **iOS** * **Android** * **Web** * - * @param channel The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param channel The platform where a payment transaction takes place. This field is optional for + * filtering out payment methods that are only available on specific platforms. If this value + * is not set, then we will try to infer it from the `sdkVersion` or + * `token`. Possible values: * **iOS** * **Android** * **Web** + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse channel(ChannelEnum channel) { this.channel = channel; @@ -930,8 +1029,15 @@ public CreateCheckoutSessionResponse channel(ChannelEnum channel) { } /** - * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** - * @return channel The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** + * The platform where a payment transaction takes place. This field is optional for filtering out + * payment methods that are only available on specific platforms. If this value is not set, then + * we will try to infer it from the `sdkVersion` or `token`. Possible values: + * * **iOS** * **Android** * **Web** + * + * @return channel The platform where a payment transaction takes place. This field is optional + * for filtering out payment methods that are only available on specific platforms. If this + * value is not set, then we will try to infer it from the `sdkVersion` or + * `token`. Possible values: * **iOS** * **Android** * **Web** */ @JsonProperty(JSON_PROPERTY_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -940,9 +1046,15 @@ public ChannelEnum getChannel() { } /** - * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** + * The platform where a payment transaction takes place. This field is optional for filtering out + * payment methods that are only available on specific platforms. If this value is not set, then + * we will try to infer it from the `sdkVersion` or `token`. Possible values: + * * **iOS** * **Android** * **Web** * - * @param channel The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** + * @param channel The platform where a payment transaction takes place. This field is optional for + * filtering out payment methods that are only available on specific platforms. If this value + * is not set, then we will try to infer it from the `sdkVersion` or + * `token`. Possible values: * **iOS** * **Android** * **Web** */ @JsonProperty(JSON_PROPERTY_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -953,8 +1065,9 @@ public void setChannel(ChannelEnum channel) { /** * company * - * @param company - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param company + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse company(Company company) { this.company = company; @@ -963,7 +1076,8 @@ public CreateCheckoutSessionResponse company(Company company) { /** * Get company - * @return company + * + * @return company */ @JsonProperty(JSON_PROPERTY_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -974,7 +1088,7 @@ public Company getCompany() { /** * company * - * @param company + * @param company */ @JsonProperty(JSON_PROPERTY_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -986,7 +1100,8 @@ public void setCompany(Company company) { * The shopper's two-letter country code. * * @param countryCode The shopper's two-letter country code. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse countryCode(String countryCode) { this.countryCode = countryCode; @@ -995,6 +1110,7 @@ public CreateCheckoutSessionResponse countryCode(String countryCode) { /** * The shopper's two-letter country code. + * * @return countryCode The shopper's two-letter country code. */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @@ -1015,10 +1131,13 @@ public void setCountryCode(String countryCode) { } /** - * The shopper's date of birth in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. + * The shopper's date of birth in + * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. * - * @param dateOfBirth The shopper's date of birth in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param dateOfBirth The shopper's date of birth in + * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse dateOfBirth(OffsetDateTime dateOfBirth) { this.dateOfBirth = dateOfBirth; @@ -1026,8 +1145,11 @@ public CreateCheckoutSessionResponse dateOfBirth(OffsetDateTime dateOfBirth) { } /** - * The shopper's date of birth in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. - * @return dateOfBirth The shopper's date of birth in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. + * The shopper's date of birth in + * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. + * + * @return dateOfBirth The shopper's date of birth in + * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1036,9 +1158,11 @@ public OffsetDateTime getDateOfBirth() { } /** - * The shopper's date of birth in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. + * The shopper's date of birth in + * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. * - * @param dateOfBirth The shopper's date of birth in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. + * @param dateOfBirth The shopper's date of birth in + * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1047,10 +1171,15 @@ public void setDateOfBirth(OffsetDateTime dateOfBirth) { } /** - * The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * The date and time when the purchased goods should be delivered. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. * - * @param deliverAt The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param deliverAt The date and time when the purchased goods should be delivered. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse deliverAt(OffsetDateTime deliverAt) { this.deliverAt = deliverAt; @@ -1058,8 +1187,13 @@ public CreateCheckoutSessionResponse deliverAt(OffsetDateTime deliverAt) { } /** - * The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. - * @return deliverAt The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * The date and time when the purchased goods should be delivered. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. + * + * @return deliverAt The date and time when the purchased goods should be delivered. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_DELIVER_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1068,9 +1202,13 @@ public OffsetDateTime getDeliverAt() { } /** - * The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * The date and time when the purchased goods should be delivered. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. * - * @param deliverAt The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * @param deliverAt The date and time when the purchased goods should be delivered. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_DELIVER_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1081,8 +1219,9 @@ public void setDeliverAt(OffsetDateTime deliverAt) { /** * deliveryAddress * - * @param deliveryAddress - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param deliveryAddress + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse deliveryAddress(DeliveryAddress deliveryAddress) { this.deliveryAddress = deliveryAddress; @@ -1091,7 +1230,8 @@ public CreateCheckoutSessionResponse deliveryAddress(DeliveryAddress deliveryAdd /** * Get deliveryAddress - * @return deliveryAddress + * + * @return deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1102,7 +1242,7 @@ public DeliveryAddress getDeliveryAddress() { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1111,10 +1251,15 @@ public void setDeliveryAddress(DeliveryAddress deliveryAddress) { } /** - * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * When true and `shopperReference` is provided, the shopper will be asked if the + * payment details should be stored for future [one-click + * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). * - * @param enableOneClick When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param enableOneClick When true and `shopperReference` is provided, the shopper will + * be asked if the payment details should be stored for future [one-click + * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse enableOneClick(Boolean enableOneClick) { this.enableOneClick = enableOneClick; @@ -1122,8 +1267,13 @@ public CreateCheckoutSessionResponse enableOneClick(Boolean enableOneClick) { } /** - * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). - * @return enableOneClick When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * When true and `shopperReference` is provided, the shopper will be asked if the + * payment details should be stored for future [one-click + * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * + * @return enableOneClick When true and `shopperReference` is provided, the shopper will + * be asked if the payment details should be stored for future [one-click + * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). */ @JsonProperty(JSON_PROPERTY_ENABLE_ONE_CLICK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1132,9 +1282,13 @@ public Boolean getEnableOneClick() { } /** - * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * When true and `shopperReference` is provided, the shopper will be asked if the + * payment details should be stored for future [one-click + * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). * - * @param enableOneClick When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * @param enableOneClick When true and `shopperReference` is provided, the shopper will + * be asked if the payment details should be stored for future [one-click + * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). */ @JsonProperty(JSON_PROPERTY_ENABLE_ONE_CLICK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1143,10 +1297,13 @@ public void setEnableOneClick(Boolean enableOneClick) { } /** - * When true and `shopperReference` is provided, the payment details will be tokenized for payouts. + * When true and `shopperReference` is provided, the payment details will be tokenized + * for payouts. * - * @param enablePayOut When true and `shopperReference` is provided, the payment details will be tokenized for payouts. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param enablePayOut When true and `shopperReference` is provided, the payment details + * will be tokenized for payouts. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse enablePayOut(Boolean enablePayOut) { this.enablePayOut = enablePayOut; @@ -1154,8 +1311,11 @@ public CreateCheckoutSessionResponse enablePayOut(Boolean enablePayOut) { } /** - * When true and `shopperReference` is provided, the payment details will be tokenized for payouts. - * @return enablePayOut When true and `shopperReference` is provided, the payment details will be tokenized for payouts. + * When true and `shopperReference` is provided, the payment details will be tokenized + * for payouts. + * + * @return enablePayOut When true and `shopperReference` is provided, the payment + * details will be tokenized for payouts. */ @JsonProperty(JSON_PROPERTY_ENABLE_PAY_OUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1164,9 +1324,11 @@ public Boolean getEnablePayOut() { } /** - * When true and `shopperReference` is provided, the payment details will be tokenized for payouts. + * When true and `shopperReference` is provided, the payment details will be tokenized + * for payouts. * - * @param enablePayOut When true and `shopperReference` is provided, the payment details will be tokenized for payouts. + * @param enablePayOut When true and `shopperReference` is provided, the payment details + * will be tokenized for payouts. */ @JsonProperty(JSON_PROPERTY_ENABLE_PAY_OUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1175,10 +1337,17 @@ public void setEnablePayOut(Boolean enablePayOut) { } /** - * When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. + * When true and `shopperReference` is provided, the payment details will be stored for + * [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where + * the shopper is not present, such as subscription or automatic top-up payments. * - * @param enableRecurring When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param enableRecurring When true and `shopperReference` is provided, the payment + * details will be stored for [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) + * where the shopper is not present, such as subscription or automatic top-up payments. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse enableRecurring(Boolean enableRecurring) { this.enableRecurring = enableRecurring; @@ -1186,8 +1355,15 @@ public CreateCheckoutSessionResponse enableRecurring(Boolean enableRecurring) { } /** - * When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. - * @return enableRecurring When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. + * When true and `shopperReference` is provided, the payment details will be stored for + * [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where + * the shopper is not present, such as subscription or automatic top-up payments. + * + * @return enableRecurring When true and `shopperReference` is provided, the payment + * details will be stored for [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) + * where the shopper is not present, such as subscription or automatic top-up payments. */ @JsonProperty(JSON_PROPERTY_ENABLE_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1196,9 +1372,15 @@ public Boolean getEnableRecurring() { } /** - * When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. + * When true and `shopperReference` is provided, the payment details will be stored for + * [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where + * the shopper is not present, such as subscription or automatic top-up payments. * - * @param enableRecurring When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. + * @param enableRecurring When true and `shopperReference` is provided, the payment + * details will be stored for [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) + * where the shopper is not present, such as subscription or automatic top-up payments. */ @JsonProperty(JSON_PROPERTY_ENABLE_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1207,10 +1389,17 @@ public void setEnableRecurring(Boolean enableRecurring) { } /** - * The date the session expires in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation. + * The date the session expires in + * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, + * the expiry date is set to 1 hour after session creation. You cannot set the session expiry to + * more than 24 hours after session creation. * - * @param expiresAt The date the session expires in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param expiresAt The date the session expires in + * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not + * specified, the expiry date is set to 1 hour after session creation. You cannot set the + * session expiry to more than 24 hours after session creation. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse expiresAt(OffsetDateTime expiresAt) { this.expiresAt = expiresAt; @@ -1218,8 +1407,15 @@ public CreateCheckoutSessionResponse expiresAt(OffsetDateTime expiresAt) { } /** - * The date the session expires in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation. - * @return expiresAt The date the session expires in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation. + * The date the session expires in + * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, + * the expiry date is set to 1 hour after session creation. You cannot set the session expiry to + * more than 24 hours after session creation. + * + * @return expiresAt The date the session expires in + * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not + * specified, the expiry date is set to 1 hour after session creation. You cannot set the + * session expiry to more than 24 hours after session creation. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1228,9 +1424,15 @@ public OffsetDateTime getExpiresAt() { } /** - * The date the session expires in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation. + * The date the session expires in + * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, + * the expiry date is set to 1 hour after session creation. You cannot set the session expiry to + * more than 24 hours after session creation. * - * @param expiresAt The date the session expires in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation. + * @param expiresAt The date the session expires in + * [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not + * specified, the expiry date is set to 1 hour after session creation. You cannot set the + * session expiry to more than 24 hours after session creation. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1241,8 +1443,9 @@ public void setExpiresAt(OffsetDateTime expiresAt) { /** * fundOrigin * - * @param fundOrigin - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param fundOrigin + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse fundOrigin(FundOrigin fundOrigin) { this.fundOrigin = fundOrigin; @@ -1251,7 +1454,8 @@ public CreateCheckoutSessionResponse fundOrigin(FundOrigin fundOrigin) { /** * Get fundOrigin - * @return fundOrigin + * + * @return fundOrigin */ @JsonProperty(JSON_PROPERTY_FUND_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1262,7 +1466,7 @@ public FundOrigin getFundOrigin() { /** * fundOrigin * - * @param fundOrigin + * @param fundOrigin */ @JsonProperty(JSON_PROPERTY_FUND_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1273,8 +1477,9 @@ public void setFundOrigin(FundOrigin fundOrigin) { /** * fundRecipient * - * @param fundRecipient - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param fundRecipient + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse fundRecipient(FundRecipient fundRecipient) { this.fundRecipient = fundRecipient; @@ -1283,7 +1488,8 @@ public CreateCheckoutSessionResponse fundRecipient(FundRecipient fundRecipient) /** * Get fundRecipient - * @return fundRecipient + * + * @return fundRecipient */ @JsonProperty(JSON_PROPERTY_FUND_RECIPIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1294,7 +1500,7 @@ public FundRecipient getFundRecipient() { /** * fundRecipient * - * @param fundRecipient + * @param fundRecipient */ @JsonProperty(JSON_PROPERTY_FUND_RECIPIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1304,6 +1510,7 @@ public void setFundRecipient(FundRecipient fundRecipient) { /** * A unique identifier of the session. + * * @return id A unique identifier of the session. */ @JsonProperty(JSON_PROPERTY_ID) @@ -1312,19 +1519,27 @@ public String getId() { return id; } - /** - * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. + * A set of key-value pairs that specifies the installment options available per payment method. + * The key must be a payment method name in lowercase. For example, **card** to specify + * installment options for all cards, or **visa** or **mc**. The value must be an object + * containing the installment options. * - * @param installmentOptions A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param installmentOptions A set of key-value pairs that specifies the installment options + * available per payment method. The key must be a payment method name in lowercase. For + * example, **card** to specify installment options for all cards, or **visa** or **mc**. The + * value must be an object containing the installment options. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ - public CreateCheckoutSessionResponse installmentOptions(Map installmentOptions) { + public CreateCheckoutSessionResponse installmentOptions( + Map installmentOptions) { this.installmentOptions = installmentOptions; return this; } - public CreateCheckoutSessionResponse putInstallmentOptionsItem(String key, CheckoutSessionInstallmentOption installmentOptionsItem) { + public CreateCheckoutSessionResponse putInstallmentOptionsItem( + String key, CheckoutSessionInstallmentOption installmentOptionsItem) { if (this.installmentOptions == null) { this.installmentOptions = new HashMap<>(); } @@ -1333,8 +1548,15 @@ public CreateCheckoutSessionResponse putInstallmentOptionsItem(String key, Check } /** - * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. - * @return installmentOptions A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. + * A set of key-value pairs that specifies the installment options available per payment method. + * The key must be a payment method name in lowercase. For example, **card** to specify + * installment options for all cards, or **visa** or **mc**. The value must be an object + * containing the installment options. + * + * @return installmentOptions A set of key-value pairs that specifies the installment options + * available per payment method. The key must be a payment method name in lowercase. For + * example, **card** to specify installment options for all cards, or **visa** or **mc**. The + * value must be an object containing the installment options. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1343,21 +1565,33 @@ public Map getInstallmentOptions() { } /** - * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. + * A set of key-value pairs that specifies the installment options available per payment method. + * The key must be a payment method name in lowercase. For example, **card** to specify + * installment options for all cards, or **visa** or **mc**. The value must be an object + * containing the installment options. * - * @param installmentOptions A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. + * @param installmentOptions A set of key-value pairs that specifies the installment options + * available per payment method. The key must be a payment method name in lowercase. For + * example, **card** to specify installment options for all cards, or **visa** or **mc**. The + * value must be an object containing the installment options. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentOptions(Map installmentOptions) { + public void setInstallmentOptions( + Map installmentOptions) { this.installmentOptions = installmentOptions; } /** - * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to + * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, + * Ratepay, and Riverty. * - * @param lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param lineItems Price and product information about the purchased items, to be included on the + * invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, + * Clearpay, Klarna, Ratepay, and Riverty. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse lineItems(List lineItems) { this.lineItems = lineItems; @@ -1373,8 +1607,13 @@ public CreateCheckoutSessionResponse addLineItemsItem(LineItem lineItemsItem) { } /** - * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. - * @return lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to + * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, + * Ratepay, and Riverty. + * + * @return lineItems Price and product information about the purchased items, to be included on + * the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, + * Afterpay, Clearpay, Klarna, Ratepay, and Riverty. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1383,9 +1622,13 @@ public List getLineItems() { } /** - * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to + * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, + * Ratepay, and Riverty. * - * @param lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * @param lineItems Price and product information about the purchased items, to be included on the + * invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, + * Clearpay, Klarna, Ratepay, and Riverty. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1396,8 +1639,9 @@ public void setLineItems(List lineItems) { /** * mandate * - * @param mandate - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param mandate + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse mandate(Mandate mandate) { this.mandate = mandate; @@ -1406,7 +1650,8 @@ public CreateCheckoutSessionResponse mandate(Mandate mandate) { /** * Get mandate - * @return mandate + * + * @return mandate */ @JsonProperty(JSON_PROPERTY_MANDATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1417,7 +1662,7 @@ public Mandate getMandate() { /** * mandate * - * @param mandate + * @param mandate */ @JsonProperty(JSON_PROPERTY_MANDATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1426,10 +1671,15 @@ public void setMandate(Mandate mandate) { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a + * four-digit number, which relates to a particular market segment. This code reflects the + * predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) + * (MCC) is a four-digit number, which relates to a particular market segment. This code + * reflects the predominant activity that is conducted by the merchant. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse mcc(String mcc) { this.mcc = mcc; @@ -1437,8 +1687,13 @@ public CreateCheckoutSessionResponse mcc(String mcc) { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. - * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a + * four-digit number, which relates to a particular market segment. This code reflects the + * predominant activity that is conducted by the merchant. + * + * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) + * (MCC) is a four-digit number, which relates to a particular market segment. This code + * reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1447,9 +1702,13 @@ public String getMcc() { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a + * four-digit number, which relates to a particular market segment. This code reflects the + * predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) + * (MCC) is a four-digit number, which relates to a particular market segment. This code + * reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1460,8 +1719,10 @@ public void setMcc(String mcc) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse merchantAccount(String merchantAccount) { this.merchantAccount = merchantAccount; @@ -1470,7 +1731,9 @@ public CreateCheckoutSessionResponse merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * @return merchantAccount The merchant account identifier, with which you want to process the transaction. + * + * @return merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1481,7 +1744,8 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1490,10 +1754,25 @@ public void setMerchantAccount(String merchantAccount) { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. + * order auth-rate). The reference should be unique per billing cycle. The same merchant order + * reference should never be reused after the first authorised attempt. If used, this field should + * be supplied for all incoming authorisations. > We strongly recommend you send the + * `merchantOrderReference` value to benefit from linking payment requests when + * authorisation retries take place. In addition, we recommend you provide + * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. * - * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param merchantOrderReference This reference allows linking multiple transactions to each other + * for reporting purposes (i.e. order auth-rate). The reference should be unique per billing + * cycle. The same merchant order reference should never be reused after the first authorised + * attempt. If used, this field should be supplied for all incoming authorisations. > We + * strongly recommend you send the `merchantOrderReference` value to benefit from + * linking payment requests when authorisation retries take place. In addition, we recommend + * you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse merchantOrderReference(String merchantOrderReference) { this.merchantOrderReference = merchantOrderReference; @@ -1501,8 +1780,24 @@ public CreateCheckoutSessionResponse merchantOrderReference(String merchantOrder } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. - * @return merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. + * order auth-rate). The reference should be unique per billing cycle. The same merchant order + * reference should never be reused after the first authorised attempt. If used, this field should + * be supplied for all incoming authorisations. > We strongly recommend you send the + * `merchantOrderReference` value to benefit from linking payment requests when + * authorisation retries take place. In addition, we recommend you provide + * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * + * @return merchantOrderReference This reference allows linking multiple transactions to each + * other for reporting purposes (i.e. order auth-rate). The reference should be unique per + * billing cycle. The same merchant order reference should never be reused after the first + * authorised attempt. If used, this field should be supplied for all incoming authorisations. + * > We strongly recommend you send the `merchantOrderReference` value to benefit + * from linking payment requests when authorisation retries take place. In addition, we + * recommend you provide `retry.orderAttemptNumber`, + * `retry.chainAttemptNumber`, and `retry.skipRetry` values in + * `PaymentRequest.additionalData`. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1511,9 +1806,23 @@ public String getMerchantOrderReference() { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. + * order auth-rate). The reference should be unique per billing cycle. The same merchant order + * reference should never be reused after the first authorised attempt. If used, this field should + * be supplied for all incoming authorisations. > We strongly recommend you send the + * `merchantOrderReference` value to benefit from linking payment requests when + * authorisation retries take place. In addition, we recommend you provide + * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. * - * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * @param merchantOrderReference This reference allows linking multiple transactions to each other + * for reporting purposes (i.e. order auth-rate). The reference should be unique per billing + * cycle. The same merchant order reference should never be reused after the first authorised + * attempt. If used, this field should be supplied for all incoming authorisations. > We + * strongly recommend you send the `merchantOrderReference` value to benefit from + * linking payment requests when authorisation retries take place. In addition, we recommend + * you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1522,10 +1831,15 @@ public void setMerchantOrderReference(String merchantOrderReference) { } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 + * key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per + * value. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per value. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: + * * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 + * characters per value. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse metadata(Map metadata) { this.metadata = metadata; @@ -1541,8 +1855,13 @@ public CreateCheckoutSessionResponse putMetadataItem(String key, String metadata } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per value. - * @return metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 + * key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per + * value. + * + * @return metadata Metadata consists of entries, each of which includes a key and a value. + * Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * + * Maximum 80 characters per value. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1551,9 +1870,13 @@ public Map getMetadata() { } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 + * key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per + * value. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per value. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: + * * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 + * characters per value. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1562,10 +1885,13 @@ public void setMetadata(Map metadata) { } /** - * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration + * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in + * or Components integration * **hosted**: Hosted Checkout integration * - * @param mode Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param mode Indicates the type of front end integration. Possible values: * **embedded** + * (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse mode(ModeEnum mode) { this.mode = mode; @@ -1573,8 +1899,11 @@ public CreateCheckoutSessionResponse mode(ModeEnum mode) { } /** - * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration - * @return mode Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration + * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in + * or Components integration * **hosted**: Hosted Checkout integration + * + * @return mode Indicates the type of front end integration. Possible values: * **embedded** + * (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration */ @JsonProperty(JSON_PROPERTY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1583,9 +1912,11 @@ public ModeEnum getMode() { } /** - * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration + * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in + * or Components integration * **hosted**: Hosted Checkout integration * - * @param mode Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration + * @param mode Indicates the type of front end integration. Possible values: * **embedded** + * (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration */ @JsonProperty(JSON_PROPERTY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1596,8 +1927,9 @@ public void setMode(ModeEnum mode) { /** * mpiData * - * @param mpiData - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param mpiData + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse mpiData(ThreeDSecureData mpiData) { this.mpiData = mpiData; @@ -1606,7 +1938,8 @@ public CreateCheckoutSessionResponse mpiData(ThreeDSecureData mpiData) { /** * Get mpiData - * @return mpiData + * + * @return mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1617,7 +1950,7 @@ public ThreeDSecureData getMpiData() { /** * mpiData * - * @param mpiData + * @param mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1628,17 +1961,20 @@ public void setMpiData(ThreeDSecureData mpiData) { /** * platformChargebackLogic * - * @param platformChargebackLogic - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param platformChargebackLogic + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ - public CreateCheckoutSessionResponse platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) { + public CreateCheckoutSessionResponse platformChargebackLogic( + PlatformChargebackLogic platformChargebackLogic) { this.platformChargebackLogic = platformChargebackLogic; return this; } /** * Get platformChargebackLogic - * @return platformChargebackLogic + * + * @return platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1649,7 +1985,7 @@ public PlatformChargebackLogic getPlatformChargebackLogic() { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1660,8 +1996,10 @@ public void setPlatformChargebackLogic(PlatformChargebackLogic platformChargebac /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. * - * @param recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param recurringExpiry Date after which no further authorisations shall be performed. Only for + * 3D Secure 2. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse recurringExpiry(String recurringExpiry) { this.recurringExpiry = recurringExpiry; @@ -1670,7 +2008,9 @@ public CreateCheckoutSessionResponse recurringExpiry(String recurringExpiry) { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. - * @return recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. + * + * @return recurringExpiry Date after which no further authorisations shall be performed. Only for + * 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1681,7 +2021,8 @@ public String getRecurringExpiry() { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. * - * @param recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. + * @param recurringExpiry Date after which no further authorisations shall be performed. Only for + * 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1693,7 +2034,8 @@ public void setRecurringExpiry(String recurringExpiry) { * Minimum number of days between authorisations. Only for 3D Secure 2. * * @param recurringFrequency Minimum number of days between authorisations. Only for 3D Secure 2. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse recurringFrequency(String recurringFrequency) { this.recurringFrequency = recurringFrequency; @@ -1702,6 +2044,7 @@ public CreateCheckoutSessionResponse recurringFrequency(String recurringFrequenc /** * Minimum number of days between authorisations. Only for 3D Secure 2. + * * @return recurringFrequency Minimum number of days between authorisations. Only for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY) @@ -1722,19 +2065,54 @@ public void setRecurringFrequency(String recurringFrequency) { } /** - * Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. - * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining - */ - public CreateCheckoutSessionResponse recurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) { + * Defines a recurring payment type. Required when creating a token to store payment details. + * Allowed values: * `Subscription` – A transaction for a fixed or variable amount, + * which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) + * transaction, card details are stored to enable one-click or omnichannel journeys, or simply to + * streamline the checkout process. Any subscription not following a fixed schedule is also + * considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled + * card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or + * have variable amounts. For example, automatic top-ups when a cardholder's balance drops + * below a certain amount. + * + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a + * token to store payment details. Allowed values: * `Subscription` – A transaction + * for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – + * With a card-on-file (CoF) transaction, card details are stored to enable one-click or + * omnichannel journeys, or simply to streamline the checkout process. Any subscription not + * following a fixed schedule is also considered a card-on-file transaction. * + * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a + * transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, + * automatic top-ups when a cardholder's balance drops below a certain amount. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining + */ + public CreateCheckoutSessionResponse recurringProcessingModel( + RecurringProcessingModelEnum recurringProcessingModel) { this.recurringProcessingModel = recurringProcessingModel; return this; } /** - * Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. - * @return recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details. + * Allowed values: * `Subscription` – A transaction for a fixed or variable amount, + * which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) + * transaction, card details are stored to enable one-click or omnichannel journeys, or simply to + * streamline the checkout process. Any subscription not following a fixed schedule is also + * considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled + * card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or + * have variable amounts. For example, automatic top-ups when a cardholder's balance drops + * below a certain amount. + * + * @return recurringProcessingModel Defines a recurring payment type. Required when creating a + * token to store payment details. Allowed values: * `Subscription` – A transaction + * for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – + * With a card-on-file (CoF) transaction, card details are stored to enable one-click or + * omnichannel journeys, or simply to streamline the checkout process. Any subscription not + * following a fixed schedule is also considered a card-on-file transaction. * + * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a + * transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, + * automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1743,9 +2121,25 @@ public RecurringProcessingModelEnum getRecurringProcessingModel() { } /** - * Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details. + * Allowed values: * `Subscription` – A transaction for a fixed or variable amount, + * which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) + * transaction, card details are stored to enable one-click or omnichannel journeys, or simply to + * streamline the checkout process. Any subscription not following a fixed schedule is also + * considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled + * card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or + * have variable amounts. For example, automatic top-ups when a cardholder's balance drops + * below a certain amount. * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a + * token to store payment details. Allowed values: * `Subscription` – A transaction + * for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – + * With a card-on-file (CoF) transaction, card details are stored to enable one-click or + * omnichannel journeys, or simply to streamline the checkout process. Any subscription not + * following a fixed schedule is also considered a card-on-file transaction. * + * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a + * transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, + * automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1756,8 +2150,10 @@ public void setRecurringProcessingModel(RecurringProcessingModelEnum recurringPr /** * Specifies the redirect method (GET or POST) when redirecting back from the issuer. * - * @param redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting back from the issuer. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting + * back from the issuer. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse redirectFromIssuerMethod(String redirectFromIssuerMethod) { this.redirectFromIssuerMethod = redirectFromIssuerMethod; @@ -1766,7 +2162,9 @@ public CreateCheckoutSessionResponse redirectFromIssuerMethod(String redirectFro /** * Specifies the redirect method (GET or POST) when redirecting back from the issuer. - * @return redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting back from the issuer. + * + * @return redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting + * back from the issuer. */ @JsonProperty(JSON_PROPERTY_REDIRECT_FROM_ISSUER_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1777,7 +2175,8 @@ public String getRedirectFromIssuerMethod() { /** * Specifies the redirect method (GET or POST) when redirecting back from the issuer. * - * @param redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting back from the issuer. + * @param redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting + * back from the issuer. */ @JsonProperty(JSON_PROPERTY_REDIRECT_FROM_ISSUER_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1788,8 +2187,10 @@ public void setRedirectFromIssuerMethod(String redirectFromIssuerMethod) { /** * Specifies the redirect method (GET or POST) when redirecting to the issuer. * - * @param redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to the issuer. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to + * the issuer. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse redirectToIssuerMethod(String redirectToIssuerMethod) { this.redirectToIssuerMethod = redirectToIssuerMethod; @@ -1798,7 +2199,9 @@ public CreateCheckoutSessionResponse redirectToIssuerMethod(String redirectToIss /** * Specifies the redirect method (GET or POST) when redirecting to the issuer. - * @return redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to the issuer. + * + * @return redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to + * the issuer. */ @JsonProperty(JSON_PROPERTY_REDIRECT_TO_ISSUER_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1809,7 +2212,8 @@ public String getRedirectToIssuerMethod() { /** * Specifies the redirect method (GET or POST) when redirecting to the issuer. * - * @param redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to the issuer. + * @param redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to + * the issuer. */ @JsonProperty(JSON_PROPERTY_REDIRECT_TO_ISSUER_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1821,7 +2225,8 @@ public void setRedirectToIssuerMethod(String redirectToIssuerMethod) { * The reference to uniquely identify a payment. * * @param reference The reference to uniquely identify a payment. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse reference(String reference) { this.reference = reference; @@ -1830,6 +2235,7 @@ public CreateCheckoutSessionResponse reference(String reference) { /** * The reference to uniquely identify a payment. + * * @return reference The reference to uniquely identify a payment. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -1850,10 +2256,38 @@ public void setReference(String reference) { } /** - * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. - * - * @param returnUrl The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * The URL to return to in case of a redirection. The format depends on the channel. * For web, + * include the protocol `http://` or `https://`. You can also include your own + * additional query parameters, for example, shopper ID or order reference number. Example: + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the + * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple + * Developer + * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). + * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your + * app. You can configure it with an [intent + * filter](https://developer.android.com/guide/components/intents-filters). Example: + * `my-app://your.package.name` If the URL to return to includes non-ASCII characters, + * like spaces or special letters, URL encode the value. We strongly recommend that you use a + * maximum of 1024 characters. > The URL must not include personally identifiable information + * (PII), for example name or email address. + * + * @param returnUrl The URL to return to in case of a redirection. The format depends on the + * channel. * For web, include the protocol `http://` or `https://`. You + * can also include your own additional query parameters, for example, shopper ID or order + * reference number. Example: + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use + * the custom URL for your app. To know more about setting custom URL schemes, refer to the + * [Apple Developer + * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). + * Example: `my-app://` * For Android, use a custom URL handled by an Activity on + * your app. You can configure it with an [intent + * filter](https://developer.android.com/guide/components/intents-filters). Example: + * `my-app://your.package.name` If the URL to return to includes non-ASCII + * characters, like spaces or special letters, URL encode the value. We strongly recommend + * that you use a maximum of 1024 characters. > The URL must not include personally + * identifiable information (PII), for example name or email address. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse returnUrl(String returnUrl) { this.returnUrl = returnUrl; @@ -1861,8 +2295,36 @@ public CreateCheckoutSessionResponse returnUrl(String returnUrl) { } /** - * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. - * @return returnUrl The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. * For web, + * include the protocol `http://` or `https://`. You can also include your own + * additional query parameters, for example, shopper ID or order reference number. Example: + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the + * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple + * Developer + * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). + * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your + * app. You can configure it with an [intent + * filter](https://developer.android.com/guide/components/intents-filters). Example: + * `my-app://your.package.name` If the URL to return to includes non-ASCII characters, + * like spaces or special letters, URL encode the value. We strongly recommend that you use a + * maximum of 1024 characters. > The URL must not include personally identifiable information + * (PII), for example name or email address. + * + * @return returnUrl The URL to return to in case of a redirection. The format depends on the + * channel. * For web, include the protocol `http://` or `https://`. You + * can also include your own additional query parameters, for example, shopper ID or order + * reference number. Example: + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use + * the custom URL for your app. To know more about setting custom URL schemes, refer to the + * [Apple Developer + * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). + * Example: `my-app://` * For Android, use a custom URL handled by an Activity on + * your app. You can configure it with an [intent + * filter](https://developer.android.com/guide/components/intents-filters). Example: + * `my-app://your.package.name` If the URL to return to includes non-ASCII + * characters, like spaces or special letters, URL encode the value. We strongly recommend + * that you use a maximum of 1024 characters. > The URL must not include personally + * identifiable information (PII), for example name or email address. */ @JsonProperty(JSON_PROPERTY_RETURN_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1871,9 +2333,36 @@ public String getReturnUrl() { } /** - * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. - * - * @param returnUrl The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. * For web, + * include the protocol `http://` or `https://`. You can also include your own + * additional query parameters, for example, shopper ID or order reference number. Example: + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the + * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple + * Developer + * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). + * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your + * app. You can configure it with an [intent + * filter](https://developer.android.com/guide/components/intents-filters). Example: + * `my-app://your.package.name` If the URL to return to includes non-ASCII characters, + * like spaces or special letters, URL encode the value. We strongly recommend that you use a + * maximum of 1024 characters. > The URL must not include personally identifiable information + * (PII), for example name or email address. + * + * @param returnUrl The URL to return to in case of a redirection. The format depends on the + * channel. * For web, include the protocol `http://` or `https://`. You + * can also include your own additional query parameters, for example, shopper ID or order + * reference number. Example: + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use + * the custom URL for your app. To know more about setting custom URL schemes, refer to the + * [Apple Developer + * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). + * Example: `my-app://` * For Android, use a custom URL handled by an Activity on + * your app. You can configure it with an [intent + * filter](https://developer.android.com/guide/components/intents-filters). Example: + * `my-app://your.package.name` If the URL to return to includes non-ASCII + * characters, like spaces or special letters, URL encode the value. We strongly recommend + * that you use a maximum of 1024 characters. > The URL must not include personally + * identifiable information (PII), for example name or email address. */ @JsonProperty(JSON_PROPERTY_RETURN_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1884,8 +2373,9 @@ public void setReturnUrl(String returnUrl) { /** * riskData * - * @param riskData - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param riskData + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse riskData(RiskData riskData) { this.riskData = riskData; @@ -1894,7 +2384,8 @@ public CreateCheckoutSessionResponse riskData(RiskData riskData) { /** * Get riskData - * @return riskData + * + * @return riskData */ @JsonProperty(JSON_PROPERTY_RISK_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1905,7 +2396,7 @@ public RiskData getRiskData() { /** * riskData * - * @param riskData + * @param riskData */ @JsonProperty(JSON_PROPERTY_RISK_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1917,7 +2408,8 @@ public void setRiskData(RiskData riskData) { * The payment session data you need to pass to your front end. * * @param sessionData The payment session data you need to pass to your front end. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse sessionData(String sessionData) { this.sessionData = sessionData; @@ -1926,6 +2418,7 @@ public CreateCheckoutSessionResponse sessionData(String sessionData) { /** * The payment session data you need to pass to your front end. + * * @return sessionData The payment session data you need to pass to your front end. */ @JsonProperty(JSON_PROPERTY_SESSION_DATA) @@ -1949,7 +2442,8 @@ public void setSessionData(String sessionData) { * The shopper's email address. * * @param shopperEmail The shopper's email address. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse shopperEmail(String shopperEmail) { this.shopperEmail = shopperEmail; @@ -1958,6 +2452,7 @@ public CreateCheckoutSessionResponse shopperEmail(String shopperEmail) { /** * The shopper's email address. + * * @return shopperEmail The shopper's email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -1978,10 +2473,24 @@ public void setShopperEmail(String shopperEmail) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a + * number of risk checks (for instance, number of payment attempts or location-based checks). > + * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and + * mobile integrations, if you did not include the `shopperEmail`. For native mobile + * integrations, the field is required to support cases where authentication is routed to the + * redirect flow. This field is also mandatory for some merchants depending on your business + * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it + * is used in a number of risk checks (for instance, number of payment attempts or + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the + * `shopperEmail`. For native mobile integrations, the field is required to support + * cases where authentication is routed to the redirect flow. This field is also mandatory for + * some merchants depending on your business model. For more information, [contact + * Support](https://www.adyen.help/hc/en-us/requests/new). + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse shopperIP(String shopperIP) { this.shopperIP = shopperIP; @@ -1989,8 +2498,22 @@ public CreateCheckoutSessionResponse shopperIP(String shopperIP) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). - * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a + * number of risk checks (for instance, number of payment attempts or location-based checks). > + * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and + * mobile integrations, if you did not include the `shopperEmail`. For native mobile + * integrations, the field is required to support cases where authentication is routed to the + * redirect flow. This field is also mandatory for some merchants depending on your business + * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * + * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it + * is used in a number of risk checks (for instance, number of payment attempts or + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the + * `shopperEmail`. For native mobile integrations, the field is required to support + * cases where authentication is routed to the redirect flow. This field is also mandatory for + * some merchants depending on your business model. For more information, [contact + * Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1999,9 +2522,22 @@ public String getShopperIP() { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a + * number of risk checks (for instance, number of payment attempts or location-based checks). > + * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and + * mobile integrations, if you did not include the `shopperEmail`. For native mobile + * integrations, the field is required to support cases where authentication is routed to the + * redirect flow. This field is also mandatory for some merchants depending on your business + * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it + * is used in a number of risk checks (for instance, number of payment attempts or + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the + * `shopperEmail`. For native mobile integrations, the field is required to support + * cases where authentication is routed to the redirect flow. This field is also mandatory for + * some merchants depending on your business model. For more information, [contact + * Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2010,19 +2546,64 @@ public void setShopperIP(String shopperIP) { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining - */ - public CreateCheckoutSessionResponse shopperInteraction(ShopperInteractionEnum shopperInteraction) { + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. + * + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining + */ + public CreateCheckoutSessionResponse shopperInteraction( + ShopperInteractionEnum shopperInteraction) { this.shopperInteraction = shopperInteraction; return this; } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * @return shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. + * + * @return shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2031,9 +2612,30 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. + * + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2042,10 +2644,13 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { } /** - * The combination of a language code and a country code to specify the language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the + * payment. * - * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param shopperLocale The combination of a language code and a country code to specify the + * language to be used in the payment. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse shopperLocale(String shopperLocale) { this.shopperLocale = shopperLocale; @@ -2053,8 +2658,11 @@ public CreateCheckoutSessionResponse shopperLocale(String shopperLocale) { } /** - * The combination of a language code and a country code to specify the language to be used in the payment. - * @return shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the + * payment. + * + * @return shopperLocale The combination of a language code and a country code to specify the + * language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2063,9 +2671,11 @@ public String getShopperLocale() { } /** - * The combination of a language code and a country code to specify the language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the + * payment. * - * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the + * language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2076,8 +2686,9 @@ public void setShopperLocale(String shopperLocale) { /** * shopperName * - * @param shopperName - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param shopperName + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse shopperName(Name shopperName) { this.shopperName = shopperName; @@ -2086,7 +2697,8 @@ public CreateCheckoutSessionResponse shopperName(Name shopperName) { /** * Get shopperName - * @return shopperName + * + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2097,7 +2709,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2106,10 +2718,16 @@ public void setShopperName(Name shopperName) { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. The value + * is case-sensitive and must be at least three characters. > Your reference must not include + * personally identifiable information (PII) such as name or email address. * - * @param shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param shopperReference Your reference to uniquely identify this shopper, for example user ID + * or account ID. The value is case-sensitive and must be at least three characters. > Your + * reference must not include personally identifiable information (PII) such as name or email + * address. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse shopperReference(String shopperReference) { this.shopperReference = shopperReference; @@ -2117,8 +2735,14 @@ public CreateCheckoutSessionResponse shopperReference(String shopperReference) { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. - * @return shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. The value + * is case-sensitive and must be at least three characters. > Your reference must not include + * personally identifiable information (PII) such as name or email address. + * + * @return shopperReference Your reference to uniquely identify this shopper, for example user ID + * or account ID. The value is case-sensitive and must be at least three characters. > Your + * reference must not include personally identifiable information (PII) such as name or email + * address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2127,9 +2751,14 @@ public String getShopperReference() { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. The value + * is case-sensitive and must be at least three characters. > Your reference must not include + * personally identifiable information (PII) such as name or email address. * - * @param shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @param shopperReference Your reference to uniquely identify this shopper, for example user ID + * or account ID. The value is case-sensitive and must be at least three characters. > Your + * reference must not include personally identifiable information (PII) such as name or email + * address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2138,10 +2767,16 @@ public void setShopperReference(String shopperReference) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 + * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, + * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend + * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed + * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * + * /_**. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse shopperStatement(String shopperStatement) { this.shopperStatement = shopperStatement; @@ -2149,8 +2784,14 @@ public CreateCheckoutSessionResponse shopperStatement(String shopperStatement) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. - * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 + * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, + * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * + * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend + * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed + * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2159,9 +2800,14 @@ public String getShopperStatement() { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 + * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, + * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend + * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed + * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2173,7 +2819,8 @@ public void setShopperStatement(String shopperStatement) { * Set to true to show the payment amount per installment. * * @param showInstallmentAmount Set to true to show the payment amount per installment. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse showInstallmentAmount(Boolean showInstallmentAmount) { this.showInstallmentAmount = showInstallmentAmount; @@ -2182,6 +2829,7 @@ public CreateCheckoutSessionResponse showInstallmentAmount(Boolean showInstallme /** * Set to true to show the payment amount per installment. + * * @return showInstallmentAmount Set to true to show the payment amount per installment. */ @JsonProperty(JSON_PROPERTY_SHOW_INSTALLMENT_AMOUNT) @@ -2204,17 +2852,22 @@ public void setShowInstallmentAmount(Boolean showInstallmentAmount) { /** * Set to **true** to show a button that lets the shopper remove a stored payment method. * - * @param showRemovePaymentMethodButton Set to **true** to show a button that lets the shopper remove a stored payment method. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param showRemovePaymentMethodButton Set to **true** to show a button that lets the shopper + * remove a stored payment method. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ - public CreateCheckoutSessionResponse showRemovePaymentMethodButton(Boolean showRemovePaymentMethodButton) { + public CreateCheckoutSessionResponse showRemovePaymentMethodButton( + Boolean showRemovePaymentMethodButton) { this.showRemovePaymentMethodButton = showRemovePaymentMethodButton; return this; } /** * Set to **true** to show a button that lets the shopper remove a stored payment method. - * @return showRemovePaymentMethodButton Set to **true** to show a button that lets the shopper remove a stored payment method. + * + * @return showRemovePaymentMethodButton Set to **true** to show a button that lets the shopper + * remove a stored payment method. */ @JsonProperty(JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2225,7 +2878,8 @@ public Boolean getShowRemovePaymentMethodButton() { /** * Set to **true** to show a button that lets the shopper remove a stored payment method. * - * @param showRemovePaymentMethodButton Set to **true** to show a button that lets the shopper remove a stored payment method. + * @param showRemovePaymentMethodButton Set to **true** to show a button that lets the shopper + * remove a stored payment method. */ @JsonProperty(JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2237,7 +2891,8 @@ public void setShowRemovePaymentMethodButton(Boolean showRemovePaymentMethodButt * The shopper's social security number. * * @param socialSecurityNumber The shopper's social security number. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse socialSecurityNumber(String socialSecurityNumber) { this.socialSecurityNumber = socialSecurityNumber; @@ -2246,6 +2901,7 @@ public CreateCheckoutSessionResponse socialSecurityNumber(String socialSecurityN /** * The shopper's social security number. + * * @return socialSecurityNumber The shopper's social security number. */ @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER) @@ -2266,10 +2922,13 @@ public void setSocialSecurityNumber(String socialSecurityNumber) { } /** - * Boolean value indicating whether the card payment method should be split into separate debit and credit options. + * Boolean value indicating whether the card payment method should be split into separate debit + * and credit options. * - * @param splitCardFundingSources Boolean value indicating whether the card payment method should be split into separate debit and credit options. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param splitCardFundingSources Boolean value indicating whether the card payment method should + * be split into separate debit and credit options. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse splitCardFundingSources(Boolean splitCardFundingSources) { this.splitCardFundingSources = splitCardFundingSources; @@ -2277,8 +2936,11 @@ public CreateCheckoutSessionResponse splitCardFundingSources(Boolean splitCardFu } /** - * Boolean value indicating whether the card payment method should be split into separate debit and credit options. - * @return splitCardFundingSources Boolean value indicating whether the card payment method should be split into separate debit and credit options. + * Boolean value indicating whether the card payment method should be split into separate debit + * and credit options. + * + * @return splitCardFundingSources Boolean value indicating whether the card payment method should + * be split into separate debit and credit options. */ @JsonProperty(JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2287,9 +2949,11 @@ public Boolean getSplitCardFundingSources() { } /** - * Boolean value indicating whether the card payment method should be split into separate debit and credit options. + * Boolean value indicating whether the card payment method should be split into separate debit + * and credit options. * - * @param splitCardFundingSources Boolean value indicating whether the card payment method should be split into separate debit and credit options. + * @param splitCardFundingSources Boolean value indicating whether the card payment method should + * be split into separate debit and credit options. */ @JsonProperty(JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2298,10 +2962,19 @@ public void setSplitCardFundingSources(Boolean splitCardFundingSources) { } /** - * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how to split a payment when using [Adyen for + * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), + * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), + * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). * - * @param splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param splits An array of objects specifying how to split a payment when using [Adyen for + * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), + * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), + * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse splits(List splits) { this.splits = splits; @@ -2317,8 +2990,17 @@ public CreateCheckoutSessionResponse addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). - * @return splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how to split a payment when using [Adyen for + * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), + * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), + * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * + * @return splits An array of objects specifying how to split a payment when using [Adyen for + * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), + * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), + * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2327,9 +3009,17 @@ public List getSplits() { } /** - * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how to split a payment when using [Adyen for + * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), + * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), + * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). * - * @param splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * @param splits An array of objects specifying how to split a payment when using [Adyen for + * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), + * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), + * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2338,10 +3028,24 @@ public void setSplits(List splits) { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. * - * @param store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is + * your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse store(String store) { this.store = store; @@ -2349,8 +3053,22 @@ public CreateCheckoutSessionResponse store(String store) { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. - * @return store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. + * + * @return store Required for Adyen for Platforms integrations if you are a platform model. This + * is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2359,9 +3077,22 @@ public String getStore() { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. * - * @param store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is + * your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2370,19 +3101,34 @@ public void setStore(String store) { } /** - * Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. + * Specifies how payment methods should be filtered based on the 'store' parameter: - + * 'exclusive': Only payment methods belonging to the specified 'store' are + * returned. - 'inclusive': Payment methods from the 'store' and those not + * associated with any other store are returned. * - * @param storeFiltrationMode Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param storeFiltrationMode Specifies how payment methods should be filtered based on the + * 'store' parameter: - 'exclusive': Only payment methods belonging to the + * specified 'store' are returned. - 'inclusive': Payment methods from the + * 'store' and those not associated with any other store are returned. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ - public CreateCheckoutSessionResponse storeFiltrationMode(StoreFiltrationModeEnum storeFiltrationMode) { + public CreateCheckoutSessionResponse storeFiltrationMode( + StoreFiltrationModeEnum storeFiltrationMode) { this.storeFiltrationMode = storeFiltrationMode; return this; } /** - * Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. - * @return storeFiltrationMode Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. + * Specifies how payment methods should be filtered based on the 'store' parameter: - + * 'exclusive': Only payment methods belonging to the specified 'store' are + * returned. - 'inclusive': Payment methods from the 'store' and those not + * associated with any other store are returned. + * + * @return storeFiltrationMode Specifies how payment methods should be filtered based on the + * 'store' parameter: - 'exclusive': Only payment methods belonging to the + * specified 'store' are returned. - 'inclusive': Payment methods from the + * 'store' and those not associated with any other store are returned. */ @JsonProperty(JSON_PROPERTY_STORE_FILTRATION_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2391,9 +3137,15 @@ public StoreFiltrationModeEnum getStoreFiltrationMode() { } /** - * Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. + * Specifies how payment methods should be filtered based on the 'store' parameter: - + * 'exclusive': Only payment methods belonging to the specified 'store' are + * returned. - 'inclusive': Payment methods from the 'store' and those not + * associated with any other store are returned. * - * @param storeFiltrationMode Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. + * @param storeFiltrationMode Specifies how payment methods should be filtered based on the + * 'store' parameter: - 'exclusive': Only payment methods belonging to the + * specified 'store' are returned. - 'inclusive': Payment methods from the + * 'store' and those not associated with any other store are returned. */ @JsonProperty(JSON_PROPERTY_STORE_FILTRATION_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2402,10 +3154,15 @@ public void setStoreFiltrationMode(StoreFiltrationModeEnum storeFiltrationMode) } /** - * When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * When true and `shopperReference` is provided, the payment details will be stored for + * future [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). * - * @param storePaymentMethod When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param storePaymentMethod When true and `shopperReference` is provided, the payment + * details will be stored for future [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse storePaymentMethod(Boolean storePaymentMethod) { this.storePaymentMethod = storePaymentMethod; @@ -2413,8 +3170,13 @@ public CreateCheckoutSessionResponse storePaymentMethod(Boolean storePaymentMeth } /** - * When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). - * @return storePaymentMethod When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * When true and `shopperReference` is provided, the payment details will be stored for + * future [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * + * @return storePaymentMethod When true and `shopperReference` is provided, the payment + * details will be stored for future [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). */ @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2423,9 +3185,13 @@ public Boolean getStorePaymentMethod() { } /** - * When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * When true and `shopperReference` is provided, the payment details will be stored for + * future [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). * - * @param storePaymentMethod When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * @param storePaymentMethod When true and `shopperReference` is provided, the payment + * details will be stored for future [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). */ @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2434,19 +3200,40 @@ public void setStorePaymentMethod(Boolean storePaymentMethod) { } /** - * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. + * Indicates if the details of the payment method will be stored for the shopper. Possible values: + * * **disabled** – No details will be stored (default). * **askForConsent** – If the + * `shopperReference` is provided, the UI lets the shopper choose if they want their + * payment details to be stored. * **enabled** – If the `shopperReference` is provided, + * the details will be stored without asking the shopper for consent. * - * @param storePaymentMethodMode Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param storePaymentMethodMode Indicates if the details of the payment method will be stored for + * the shopper. Possible values: * **disabled** – No details will be stored (default). * + * **askForConsent** – If the `shopperReference` is provided, the UI lets the + * shopper choose if they want their payment details to be stored. * **enabled** – If the + * `shopperReference` is provided, the details will be stored without asking the + * shopper for consent. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ - public CreateCheckoutSessionResponse storePaymentMethodMode(StorePaymentMethodModeEnum storePaymentMethodMode) { + public CreateCheckoutSessionResponse storePaymentMethodMode( + StorePaymentMethodModeEnum storePaymentMethodMode) { this.storePaymentMethodMode = storePaymentMethodMode; return this; } /** - * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. - * @return storePaymentMethodMode Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. + * Indicates if the details of the payment method will be stored for the shopper. Possible values: + * * **disabled** – No details will be stored (default). * **askForConsent** – If the + * `shopperReference` is provided, the UI lets the shopper choose if they want their + * payment details to be stored. * **enabled** – If the `shopperReference` is provided, + * the details will be stored without asking the shopper for consent. + * + * @return storePaymentMethodMode Indicates if the details of the payment method will be stored + * for the shopper. Possible values: * **disabled** – No details will be stored (default). * + * **askForConsent** – If the `shopperReference` is provided, the UI lets the + * shopper choose if they want their payment details to be stored. * **enabled** – If the + * `shopperReference` is provided, the details will be stored without asking the + * shopper for consent. */ @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2455,9 +3242,18 @@ public StorePaymentMethodModeEnum getStorePaymentMethodMode() { } /** - * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. + * Indicates if the details of the payment method will be stored for the shopper. Possible values: + * * **disabled** – No details will be stored (default). * **askForConsent** – If the + * `shopperReference` is provided, the UI lets the shopper choose if they want their + * payment details to be stored. * **enabled** – If the `shopperReference` is provided, + * the details will be stored without asking the shopper for consent. * - * @param storePaymentMethodMode Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. + * @param storePaymentMethodMode Indicates if the details of the payment method will be stored for + * the shopper. Possible values: * **disabled** – No details will be stored (default). * + * **askForConsent** – If the `shopperReference` is provided, the UI lets the + * shopper choose if they want their payment details to be stored. * **enabled** – If the + * `shopperReference` is provided, the details will be stored without asking the + * shopper for consent. */ @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2466,10 +3262,19 @@ public void setStorePaymentMethodMode(StorePaymentMethodModeEnum storePaymentMet } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse telephoneNumber(String telephoneNumber) { this.telephoneNumber = telephoneNumber; @@ -2477,8 +3282,17 @@ public CreateCheckoutSessionResponse telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. - * @return telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. + * + * @return telephoneNumber The shopper's telephone number. The phone number must include a + * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2487,9 +3301,17 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2498,10 +3320,15 @@ public void setTelephoneNumber(String telephoneNumber) { } /** - * Sets a custom theme for [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). The value can be any of the **Theme ID** values from your Customer Area. + * Sets a custom theme for [Hosted + * Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). + * The value can be any of the **Theme ID** values from your Customer Area. * - * @param themeId Sets a custom theme for [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). The value can be any of the **Theme ID** values from your Customer Area. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param themeId Sets a custom theme for [Hosted + * Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). + * The value can be any of the **Theme ID** values from your Customer Area. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse themeId(String themeId) { this.themeId = themeId; @@ -2509,8 +3336,13 @@ public CreateCheckoutSessionResponse themeId(String themeId) { } /** - * Sets a custom theme for [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). The value can be any of the **Theme ID** values from your Customer Area. - * @return themeId Sets a custom theme for [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). The value can be any of the **Theme ID** values from your Customer Area. + * Sets a custom theme for [Hosted + * Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). + * The value can be any of the **Theme ID** values from your Customer Area. + * + * @return themeId Sets a custom theme for [Hosted + * Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). + * The value can be any of the **Theme ID** values from your Customer Area. */ @JsonProperty(JSON_PROPERTY_THEME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2519,9 +3351,13 @@ public String getThemeId() { } /** - * Sets a custom theme for [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). The value can be any of the **Theme ID** values from your Customer Area. + * Sets a custom theme for [Hosted + * Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). + * The value can be any of the **Theme ID** values from your Customer Area. * - * @param themeId Sets a custom theme for [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). The value can be any of the **Theme ID** values from your Customer Area. + * @param themeId Sets a custom theme for [Hosted + * Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). + * The value can be any of the **Theme ID** values from your Customer Area. */ @JsonProperty(JSON_PROPERTY_THEME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2532,17 +3368,20 @@ public void setThemeId(String themeId) { /** * threeDS2RequestData * - * @param threeDS2RequestData - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param threeDS2RequestData + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ - public CreateCheckoutSessionResponse threeDS2RequestData(CheckoutSessionThreeDS2RequestData threeDS2RequestData) { + public CreateCheckoutSessionResponse threeDS2RequestData( + CheckoutSessionThreeDS2RequestData threeDS2RequestData) { this.threeDS2RequestData = threeDS2RequestData; return this; } /** * Get threeDS2RequestData - * @return threeDS2RequestData + * + * @return threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2553,7 +3392,7 @@ public CheckoutSessionThreeDS2RequestData getThreeDS2RequestData() { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2562,26 +3401,43 @@ public void setThreeDS2RequestData(CheckoutSessionThreeDS2RequestData threeDS2Re } /** - * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. * - * @param threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v69 - * Use `authenticationData.authenticationOnly` instead. + * @param threeDSAuthenticationOnly Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining + * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` + * instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. - public CreateCheckoutSessionResponse threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { + @Deprecated // deprecated since Adyen Checkout API v69: Use + // `authenticationData.authenticationOnly` instead. + public CreateCheckoutSessionResponse threeDSAuthenticationOnly( + Boolean threeDSAuthenticationOnly) { this.threeDSAuthenticationOnly = threeDSAuthenticationOnly; return this; } /** - * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. - * @return threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. - * @deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. + * Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. + * + * @return threeDSAuthenticationOnly Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. + * @deprecated // deprecated since Adyen Checkout API v69: Use + * `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use + // `authenticationData.authenticationOnly` instead. @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getThreeDSAuthenticationOnly() { @@ -2589,14 +3445,20 @@ public Boolean getThreeDSAuthenticationOnly() { } /** - * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. - * - * @param threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. * - * @deprecated since Adyen Checkout API v69 - * Use `authenticationData.authenticationOnly` instead. + * @param threeDSAuthenticationOnly Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. + * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` + * instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use + // `authenticationData.authenticationOnly` instead. @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { @@ -2607,7 +3469,8 @@ public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { * Set to true if the payment should be routed to a trusted MID. * * @param trustedShopper Set to true if the payment should be routed to a trusted MID. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse trustedShopper(Boolean trustedShopper) { this.trustedShopper = trustedShopper; @@ -2616,6 +3479,7 @@ public CreateCheckoutSessionResponse trustedShopper(Boolean trustedShopper) { /** * Set to true if the payment should be routed to a trusted MID. + * * @return trustedShopper Set to true if the payment should be routed to a trusted MID. */ @JsonProperty(JSON_PROPERTY_TRUSTED_SHOPPER) @@ -2636,10 +3500,13 @@ public void setTrustedShopper(Boolean trustedShopper) { } /** - * The URL for the Hosted Checkout page. Redirect the shopper to this URL so they can make the payment. + * The URL for the Hosted Checkout page. Redirect the shopper to this URL so they can make the + * payment. * - * @param url The URL for the Hosted Checkout page. Redirect the shopper to this URL so they can make the payment. - * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method chaining + * @param url The URL for the Hosted Checkout page. Redirect the shopper to this URL so they can + * make the payment. + * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method + * chaining */ public CreateCheckoutSessionResponse url(String url) { this.url = url; @@ -2647,8 +3514,11 @@ public CreateCheckoutSessionResponse url(String url) { } /** - * The URL for the Hosted Checkout page. Redirect the shopper to this URL so they can make the payment. - * @return url The URL for the Hosted Checkout page. Redirect the shopper to this URL so they can make the payment. + * The URL for the Hosted Checkout page. Redirect the shopper to this URL so they can make the + * payment. + * + * @return url The URL for the Hosted Checkout page. Redirect the shopper to this URL so they can + * make the payment. */ @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2657,9 +3527,11 @@ public String getUrl() { } /** - * The URL for the Hosted Checkout page. Redirect the shopper to this URL so they can make the payment. + * The URL for the Hosted Checkout page. Redirect the shopper to this URL so they can make the + * payment. * - * @param url The URL for the Hosted Checkout page. Redirect the shopper to this URL so they can make the payment. + * @param url The URL for the Hosted Checkout page. Redirect the shopper to this URL so they can + * make the payment. */ @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2667,9 +3539,7 @@ public void setUrl(String url) { this.url = url; } - /** - * Return true if this CreateCheckoutSessionResponse object is equal to o. - */ + /** Return true if this CreateCheckoutSessionResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -2679,75 +3549,155 @@ public boolean equals(Object o) { return false; } CreateCheckoutSessionResponse createCheckoutSessionResponse = (CreateCheckoutSessionResponse) o; - return Objects.equals(this.accountInfo, createCheckoutSessionResponse.accountInfo) && - Objects.equals(this.additionalAmount, createCheckoutSessionResponse.additionalAmount) && - Objects.equals(this.additionalData, createCheckoutSessionResponse.additionalData) && - Objects.equals(this.allowedPaymentMethods, createCheckoutSessionResponse.allowedPaymentMethods) && - Objects.equals(this.amount, createCheckoutSessionResponse.amount) && - Objects.equals(this.applicationInfo, createCheckoutSessionResponse.applicationInfo) && - Objects.equals(this.authenticationData, createCheckoutSessionResponse.authenticationData) && - Objects.equals(this.billingAddress, createCheckoutSessionResponse.billingAddress) && - Objects.equals(this.blockedPaymentMethods, createCheckoutSessionResponse.blockedPaymentMethods) && - Objects.equals(this.captureDelayHours, createCheckoutSessionResponse.captureDelayHours) && - Objects.equals(this.channel, createCheckoutSessionResponse.channel) && - Objects.equals(this.company, createCheckoutSessionResponse.company) && - Objects.equals(this.countryCode, createCheckoutSessionResponse.countryCode) && - Objects.equals(this.dateOfBirth, createCheckoutSessionResponse.dateOfBirth) && - Objects.equals(this.deliverAt, createCheckoutSessionResponse.deliverAt) && - Objects.equals(this.deliveryAddress, createCheckoutSessionResponse.deliveryAddress) && - Objects.equals(this.enableOneClick, createCheckoutSessionResponse.enableOneClick) && - Objects.equals(this.enablePayOut, createCheckoutSessionResponse.enablePayOut) && - Objects.equals(this.enableRecurring, createCheckoutSessionResponse.enableRecurring) && - Objects.equals(this.expiresAt, createCheckoutSessionResponse.expiresAt) && - Objects.equals(this.fundOrigin, createCheckoutSessionResponse.fundOrigin) && - Objects.equals(this.fundRecipient, createCheckoutSessionResponse.fundRecipient) && - Objects.equals(this.id, createCheckoutSessionResponse.id) && - Objects.equals(this.installmentOptions, createCheckoutSessionResponse.installmentOptions) && - Objects.equals(this.lineItems, createCheckoutSessionResponse.lineItems) && - Objects.equals(this.mandate, createCheckoutSessionResponse.mandate) && - Objects.equals(this.mcc, createCheckoutSessionResponse.mcc) && - Objects.equals(this.merchantAccount, createCheckoutSessionResponse.merchantAccount) && - Objects.equals(this.merchantOrderReference, createCheckoutSessionResponse.merchantOrderReference) && - Objects.equals(this.metadata, createCheckoutSessionResponse.metadata) && - Objects.equals(this.mode, createCheckoutSessionResponse.mode) && - Objects.equals(this.mpiData, createCheckoutSessionResponse.mpiData) && - Objects.equals(this.platformChargebackLogic, createCheckoutSessionResponse.platformChargebackLogic) && - Objects.equals(this.recurringExpiry, createCheckoutSessionResponse.recurringExpiry) && - Objects.equals(this.recurringFrequency, createCheckoutSessionResponse.recurringFrequency) && - Objects.equals(this.recurringProcessingModel, createCheckoutSessionResponse.recurringProcessingModel) && - Objects.equals(this.redirectFromIssuerMethod, createCheckoutSessionResponse.redirectFromIssuerMethod) && - Objects.equals(this.redirectToIssuerMethod, createCheckoutSessionResponse.redirectToIssuerMethod) && - Objects.equals(this.reference, createCheckoutSessionResponse.reference) && - Objects.equals(this.returnUrl, createCheckoutSessionResponse.returnUrl) && - Objects.equals(this.riskData, createCheckoutSessionResponse.riskData) && - Objects.equals(this.sessionData, createCheckoutSessionResponse.sessionData) && - Objects.equals(this.shopperEmail, createCheckoutSessionResponse.shopperEmail) && - Objects.equals(this.shopperIP, createCheckoutSessionResponse.shopperIP) && - Objects.equals(this.shopperInteraction, createCheckoutSessionResponse.shopperInteraction) && - Objects.equals(this.shopperLocale, createCheckoutSessionResponse.shopperLocale) && - Objects.equals(this.shopperName, createCheckoutSessionResponse.shopperName) && - Objects.equals(this.shopperReference, createCheckoutSessionResponse.shopperReference) && - Objects.equals(this.shopperStatement, createCheckoutSessionResponse.shopperStatement) && - Objects.equals(this.showInstallmentAmount, createCheckoutSessionResponse.showInstallmentAmount) && - Objects.equals(this.showRemovePaymentMethodButton, createCheckoutSessionResponse.showRemovePaymentMethodButton) && - Objects.equals(this.socialSecurityNumber, createCheckoutSessionResponse.socialSecurityNumber) && - Objects.equals(this.splitCardFundingSources, createCheckoutSessionResponse.splitCardFundingSources) && - Objects.equals(this.splits, createCheckoutSessionResponse.splits) && - Objects.equals(this.store, createCheckoutSessionResponse.store) && - Objects.equals(this.storeFiltrationMode, createCheckoutSessionResponse.storeFiltrationMode) && - Objects.equals(this.storePaymentMethod, createCheckoutSessionResponse.storePaymentMethod) && - Objects.equals(this.storePaymentMethodMode, createCheckoutSessionResponse.storePaymentMethodMode) && - Objects.equals(this.telephoneNumber, createCheckoutSessionResponse.telephoneNumber) && - Objects.equals(this.themeId, createCheckoutSessionResponse.themeId) && - Objects.equals(this.threeDS2RequestData, createCheckoutSessionResponse.threeDS2RequestData) && - Objects.equals(this.threeDSAuthenticationOnly, createCheckoutSessionResponse.threeDSAuthenticationOnly) && - Objects.equals(this.trustedShopper, createCheckoutSessionResponse.trustedShopper) && - Objects.equals(this.url, createCheckoutSessionResponse.url); + return Objects.equals(this.accountInfo, createCheckoutSessionResponse.accountInfo) + && Objects.equals(this.additionalAmount, createCheckoutSessionResponse.additionalAmount) + && Objects.equals(this.additionalData, createCheckoutSessionResponse.additionalData) + && Objects.equals( + this.allowedPaymentMethods, createCheckoutSessionResponse.allowedPaymentMethods) + && Objects.equals(this.amount, createCheckoutSessionResponse.amount) + && Objects.equals(this.applicationInfo, createCheckoutSessionResponse.applicationInfo) + && Objects.equals(this.authenticationData, createCheckoutSessionResponse.authenticationData) + && Objects.equals(this.billingAddress, createCheckoutSessionResponse.billingAddress) + && Objects.equals( + this.blockedPaymentMethods, createCheckoutSessionResponse.blockedPaymentMethods) + && Objects.equals(this.captureDelayHours, createCheckoutSessionResponse.captureDelayHours) + && Objects.equals(this.channel, createCheckoutSessionResponse.channel) + && Objects.equals(this.company, createCheckoutSessionResponse.company) + && Objects.equals(this.countryCode, createCheckoutSessionResponse.countryCode) + && Objects.equals(this.dateOfBirth, createCheckoutSessionResponse.dateOfBirth) + && Objects.equals(this.deliverAt, createCheckoutSessionResponse.deliverAt) + && Objects.equals(this.deliveryAddress, createCheckoutSessionResponse.deliveryAddress) + && Objects.equals(this.enableOneClick, createCheckoutSessionResponse.enableOneClick) + && Objects.equals(this.enablePayOut, createCheckoutSessionResponse.enablePayOut) + && Objects.equals(this.enableRecurring, createCheckoutSessionResponse.enableRecurring) + && Objects.equals(this.expiresAt, createCheckoutSessionResponse.expiresAt) + && Objects.equals(this.fundOrigin, createCheckoutSessionResponse.fundOrigin) + && Objects.equals(this.fundRecipient, createCheckoutSessionResponse.fundRecipient) + && Objects.equals(this.id, createCheckoutSessionResponse.id) + && Objects.equals(this.installmentOptions, createCheckoutSessionResponse.installmentOptions) + && Objects.equals(this.lineItems, createCheckoutSessionResponse.lineItems) + && Objects.equals(this.mandate, createCheckoutSessionResponse.mandate) + && Objects.equals(this.mcc, createCheckoutSessionResponse.mcc) + && Objects.equals(this.merchantAccount, createCheckoutSessionResponse.merchantAccount) + && Objects.equals( + this.merchantOrderReference, createCheckoutSessionResponse.merchantOrderReference) + && Objects.equals(this.metadata, createCheckoutSessionResponse.metadata) + && Objects.equals(this.mode, createCheckoutSessionResponse.mode) + && Objects.equals(this.mpiData, createCheckoutSessionResponse.mpiData) + && Objects.equals( + this.platformChargebackLogic, createCheckoutSessionResponse.platformChargebackLogic) + && Objects.equals(this.recurringExpiry, createCheckoutSessionResponse.recurringExpiry) + && Objects.equals(this.recurringFrequency, createCheckoutSessionResponse.recurringFrequency) + && Objects.equals( + this.recurringProcessingModel, createCheckoutSessionResponse.recurringProcessingModel) + && Objects.equals( + this.redirectFromIssuerMethod, createCheckoutSessionResponse.redirectFromIssuerMethod) + && Objects.equals( + this.redirectToIssuerMethod, createCheckoutSessionResponse.redirectToIssuerMethod) + && Objects.equals(this.reference, createCheckoutSessionResponse.reference) + && Objects.equals(this.returnUrl, createCheckoutSessionResponse.returnUrl) + && Objects.equals(this.riskData, createCheckoutSessionResponse.riskData) + && Objects.equals(this.sessionData, createCheckoutSessionResponse.sessionData) + && Objects.equals(this.shopperEmail, createCheckoutSessionResponse.shopperEmail) + && Objects.equals(this.shopperIP, createCheckoutSessionResponse.shopperIP) + && Objects.equals(this.shopperInteraction, createCheckoutSessionResponse.shopperInteraction) + && Objects.equals(this.shopperLocale, createCheckoutSessionResponse.shopperLocale) + && Objects.equals(this.shopperName, createCheckoutSessionResponse.shopperName) + && Objects.equals(this.shopperReference, createCheckoutSessionResponse.shopperReference) + && Objects.equals(this.shopperStatement, createCheckoutSessionResponse.shopperStatement) + && Objects.equals( + this.showInstallmentAmount, createCheckoutSessionResponse.showInstallmentAmount) + && Objects.equals( + this.showRemovePaymentMethodButton, + createCheckoutSessionResponse.showRemovePaymentMethodButton) + && Objects.equals( + this.socialSecurityNumber, createCheckoutSessionResponse.socialSecurityNumber) + && Objects.equals( + this.splitCardFundingSources, createCheckoutSessionResponse.splitCardFundingSources) + && Objects.equals(this.splits, createCheckoutSessionResponse.splits) + && Objects.equals(this.store, createCheckoutSessionResponse.store) + && Objects.equals( + this.storeFiltrationMode, createCheckoutSessionResponse.storeFiltrationMode) + && Objects.equals(this.storePaymentMethod, createCheckoutSessionResponse.storePaymentMethod) + && Objects.equals( + this.storePaymentMethodMode, createCheckoutSessionResponse.storePaymentMethodMode) + && Objects.equals(this.telephoneNumber, createCheckoutSessionResponse.telephoneNumber) + && Objects.equals(this.themeId, createCheckoutSessionResponse.themeId) + && Objects.equals( + this.threeDS2RequestData, createCheckoutSessionResponse.threeDS2RequestData) + && Objects.equals( + this.threeDSAuthenticationOnly, createCheckoutSessionResponse.threeDSAuthenticationOnly) + && Objects.equals(this.trustedShopper, createCheckoutSessionResponse.trustedShopper) + && Objects.equals(this.url, createCheckoutSessionResponse.url); } @Override public int hashCode() { - return Objects.hash(accountInfo, additionalAmount, additionalData, allowedPaymentMethods, amount, applicationInfo, authenticationData, billingAddress, blockedPaymentMethods, captureDelayHours, channel, company, countryCode, dateOfBirth, deliverAt, deliveryAddress, enableOneClick, enablePayOut, enableRecurring, expiresAt, fundOrigin, fundRecipient, id, installmentOptions, lineItems, mandate, mcc, merchantAccount, merchantOrderReference, metadata, mode, mpiData, platformChargebackLogic, recurringExpiry, recurringFrequency, recurringProcessingModel, redirectFromIssuerMethod, redirectToIssuerMethod, reference, returnUrl, riskData, sessionData, shopperEmail, shopperIP, shopperInteraction, shopperLocale, shopperName, shopperReference, shopperStatement, showInstallmentAmount, showRemovePaymentMethodButton, socialSecurityNumber, splitCardFundingSources, splits, store, storeFiltrationMode, storePaymentMethod, storePaymentMethodMode, telephoneNumber, themeId, threeDS2RequestData, threeDSAuthenticationOnly, trustedShopper, url); + return Objects.hash( + accountInfo, + additionalAmount, + additionalData, + allowedPaymentMethods, + amount, + applicationInfo, + authenticationData, + billingAddress, + blockedPaymentMethods, + captureDelayHours, + channel, + company, + countryCode, + dateOfBirth, + deliverAt, + deliveryAddress, + enableOneClick, + enablePayOut, + enableRecurring, + expiresAt, + fundOrigin, + fundRecipient, + id, + installmentOptions, + lineItems, + mandate, + mcc, + merchantAccount, + merchantOrderReference, + metadata, + mode, + mpiData, + platformChargebackLogic, + recurringExpiry, + recurringFrequency, + recurringProcessingModel, + redirectFromIssuerMethod, + redirectToIssuerMethod, + reference, + returnUrl, + riskData, + sessionData, + shopperEmail, + shopperIP, + shopperInteraction, + shopperLocale, + shopperName, + shopperReference, + shopperStatement, + showInstallmentAmount, + showRemovePaymentMethodButton, + socialSecurityNumber, + splitCardFundingSources, + splits, + store, + storeFiltrationMode, + storePaymentMethod, + storePaymentMethodMode, + telephoneNumber, + themeId, + threeDS2RequestData, + threeDSAuthenticationOnly, + trustedShopper, + url); } @Override @@ -2757,12 +3707,16 @@ public String toString() { sb.append(" accountInfo: ").append(toIndentedString(accountInfo)).append("\n"); sb.append(" additionalAmount: ").append(toIndentedString(additionalAmount)).append("\n"); sb.append(" additionalData: ").append(toIndentedString(additionalData)).append("\n"); - sb.append(" allowedPaymentMethods: ").append(toIndentedString(allowedPaymentMethods)).append("\n"); + sb.append(" allowedPaymentMethods: ") + .append(toIndentedString(allowedPaymentMethods)) + .append("\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" applicationInfo: ").append(toIndentedString(applicationInfo)).append("\n"); sb.append(" authenticationData: ").append(toIndentedString(authenticationData)).append("\n"); sb.append(" billingAddress: ").append(toIndentedString(billingAddress)).append("\n"); - sb.append(" blockedPaymentMethods: ").append(toIndentedString(blockedPaymentMethods)).append("\n"); + sb.append(" blockedPaymentMethods: ") + .append(toIndentedString(blockedPaymentMethods)) + .append("\n"); sb.append(" captureDelayHours: ").append(toIndentedString(captureDelayHours)).append("\n"); sb.append(" channel: ").append(toIndentedString(channel)).append("\n"); sb.append(" company: ").append(toIndentedString(company)).append("\n"); @@ -2782,16 +3736,26 @@ public String toString() { sb.append(" mandate: ").append(toIndentedString(mandate)).append("\n"); sb.append(" mcc: ").append(toIndentedString(mcc)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" merchantOrderReference: ").append(toIndentedString(merchantOrderReference)).append("\n"); + sb.append(" merchantOrderReference: ") + .append(toIndentedString(merchantOrderReference)) + .append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); sb.append(" mpiData: ").append(toIndentedString(mpiData)).append("\n"); - sb.append(" platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n"); + sb.append(" platformChargebackLogic: ") + .append(toIndentedString(platformChargebackLogic)) + .append("\n"); sb.append(" recurringExpiry: ").append(toIndentedString(recurringExpiry)).append("\n"); sb.append(" recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n"); - sb.append(" recurringProcessingModel: ").append(toIndentedString(recurringProcessingModel)).append("\n"); - sb.append(" redirectFromIssuerMethod: ").append(toIndentedString(redirectFromIssuerMethod)).append("\n"); - sb.append(" redirectToIssuerMethod: ").append(toIndentedString(redirectToIssuerMethod)).append("\n"); + sb.append(" recurringProcessingModel: ") + .append(toIndentedString(recurringProcessingModel)) + .append("\n"); + sb.append(" redirectFromIssuerMethod: ") + .append(toIndentedString(redirectFromIssuerMethod)) + .append("\n"); + sb.append(" redirectToIssuerMethod: ") + .append(toIndentedString(redirectToIssuerMethod)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" returnUrl: ").append(toIndentedString(returnUrl)).append("\n"); sb.append(" riskData: ").append(toIndentedString(riskData)).append("\n"); @@ -2803,19 +3767,35 @@ public String toString() { sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append(" shopperStatement: ").append(toIndentedString(shopperStatement)).append("\n"); - sb.append(" showInstallmentAmount: ").append(toIndentedString(showInstallmentAmount)).append("\n"); - sb.append(" showRemovePaymentMethodButton: ").append(toIndentedString(showRemovePaymentMethodButton)).append("\n"); - sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); - sb.append(" splitCardFundingSources: ").append(toIndentedString(splitCardFundingSources)).append("\n"); + sb.append(" showInstallmentAmount: ") + .append(toIndentedString(showInstallmentAmount)) + .append("\n"); + sb.append(" showRemovePaymentMethodButton: ") + .append(toIndentedString(showRemovePaymentMethodButton)) + .append("\n"); + sb.append(" socialSecurityNumber: ") + .append(toIndentedString(socialSecurityNumber)) + .append("\n"); + sb.append(" splitCardFundingSources: ") + .append(toIndentedString(splitCardFundingSources)) + .append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" store: ").append(toIndentedString(store)).append("\n"); - sb.append(" storeFiltrationMode: ").append(toIndentedString(storeFiltrationMode)).append("\n"); + sb.append(" storeFiltrationMode: ") + .append(toIndentedString(storeFiltrationMode)) + .append("\n"); sb.append(" storePaymentMethod: ").append(toIndentedString(storePaymentMethod)).append("\n"); - sb.append(" storePaymentMethodMode: ").append(toIndentedString(storePaymentMethodMode)).append("\n"); + sb.append(" storePaymentMethodMode: ") + .append(toIndentedString(storePaymentMethodMode)) + .append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); sb.append(" themeId: ").append(toIndentedString(themeId)).append("\n"); - sb.append(" threeDS2RequestData: ").append(toIndentedString(threeDS2RequestData)).append("\n"); - sb.append(" threeDSAuthenticationOnly: ").append(toIndentedString(threeDSAuthenticationOnly)).append("\n"); + sb.append(" threeDS2RequestData: ") + .append(toIndentedString(threeDS2RequestData)) + .append("\n"); + sb.append(" threeDSAuthenticationOnly: ") + .append(toIndentedString(threeDSAuthenticationOnly)) + .append("\n"); sb.append(" trustedShopper: ").append(toIndentedString(trustedShopper)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append("}"); @@ -2823,8 +3803,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -2833,21 +3812,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CreateCheckoutSessionResponse given an JSON string * * @param jsonString JSON string * @return An instance of CreateCheckoutSessionResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to CreateCheckoutSessionResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CreateCheckoutSessionResponse */ - public static CreateCheckoutSessionResponse fromJson(String jsonString) throws JsonProcessingException { + public static CreateCheckoutSessionResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateCheckoutSessionResponse.class); } -/** - * Convert an instance of CreateCheckoutSessionResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CreateCheckoutSessionResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CreateOrderRequest.java b/src/main/java/com/adyen/model/checkout/CreateOrderRequest.java index a9dee3c58..71280b5a6 100644 --- a/src/main/java/com/adyen/model/checkout/CreateOrderRequest.java +++ b/src/main/java/com/adyen/model/checkout/CreateOrderRequest.java @@ -2,39 +2,28 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * CreateOrderRequest - */ +/** CreateOrderRequest */ @JsonPropertyOrder({ CreateOrderRequest.JSON_PROPERTY_AMOUNT, CreateOrderRequest.JSON_PROPERTY_EXPIRES_AT, CreateOrderRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, CreateOrderRequest.JSON_PROPERTY_REFERENCE }) - public class CreateOrderRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -48,13 +37,12 @@ public class CreateOrderRequest { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public CreateOrderRequest() { - } + public CreateOrderRequest() {} /** * amount * - * @param amount + * @param amount * @return the current {@code CreateOrderRequest} instance, allowing for method chaining */ public CreateOrderRequest amount(Amount amount) { @@ -64,7 +52,8 @@ public CreateOrderRequest amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,7 +64,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -84,9 +73,13 @@ public void setAmount(Amount amount) { } /** - * The date when the order should expire. If not provided, the default expiry duration is 1 day. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * The date when the order should expire. If not provided, the default expiry duration is 1 day. + * [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. * - * @param expiresAt The date when the order should expire. If not provided, the default expiry duration is 1 day. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * @param expiresAt The date when the order should expire. If not provided, the default expiry + * duration is 1 day. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: + * YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. * @return the current {@code CreateOrderRequest} instance, allowing for method chaining */ public CreateOrderRequest expiresAt(String expiresAt) { @@ -95,8 +88,13 @@ public CreateOrderRequest expiresAt(String expiresAt) { } /** - * The date when the order should expire. If not provided, the default expiry duration is 1 day. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. - * @return expiresAt The date when the order should expire. If not provided, the default expiry duration is 1 day. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * The date when the order should expire. If not provided, the default expiry duration is 1 day. + * [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. + * + * @return expiresAt The date when the order should expire. If not provided, the default expiry + * duration is 1 day. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: + * YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,9 +103,13 @@ public String getExpiresAt() { } /** - * The date when the order should expire. If not provided, the default expiry duration is 1 day. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * The date when the order should expire. If not provided, the default expiry duration is 1 day. + * [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. * - * @param expiresAt The date when the order should expire. If not provided, the default expiry duration is 1 day. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * @param expiresAt The date when the order should expire. If not provided, the default expiry + * duration is 1 day. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: + * YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,7 +120,8 @@ public void setExpiresAt(String expiresAt) { /** * The merchant account identifier, with which you want to process the order. * - * @param merchantAccount The merchant account identifier, with which you want to process the order. + * @param merchantAccount The merchant account identifier, with which you want to process the + * order. * @return the current {@code CreateOrderRequest} instance, allowing for method chaining */ public CreateOrderRequest merchantAccount(String merchantAccount) { @@ -128,7 +131,9 @@ public CreateOrderRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the order. - * @return merchantAccount The merchant account identifier, with which you want to process the order. + * + * @return merchantAccount The merchant account identifier, with which you want to process the + * order. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,7 +144,8 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the order. * - * @param merchantAccount The merchant account identifier, with which you want to process the order. + * @param merchantAccount The merchant account identifier, with which you want to process the + * order. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,6 +166,7 @@ public CreateOrderRequest reference(String reference) { /** * A custom reference identifying the order. + * * @return reference A custom reference identifying the order. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -179,9 +186,7 @@ public void setReference(String reference) { this.reference = reference; } - /** - * Return true if this CreateOrderRequest object is equal to o. - */ + /** Return true if this CreateOrderRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -191,10 +196,10 @@ public boolean equals(Object o) { return false; } CreateOrderRequest createOrderRequest = (CreateOrderRequest) o; - return Objects.equals(this.amount, createOrderRequest.amount) && - Objects.equals(this.expiresAt, createOrderRequest.expiresAt) && - Objects.equals(this.merchantAccount, createOrderRequest.merchantAccount) && - Objects.equals(this.reference, createOrderRequest.reference); + return Objects.equals(this.amount, createOrderRequest.amount) + && Objects.equals(this.expiresAt, createOrderRequest.expiresAt) + && Objects.equals(this.merchantAccount, createOrderRequest.merchantAccount) + && Objects.equals(this.reference, createOrderRequest.reference); } @Override @@ -215,8 +220,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -225,21 +229,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CreateOrderRequest given an JSON string * * @param jsonString JSON string * @return An instance of CreateOrderRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to CreateOrderRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CreateOrderRequest */ public static CreateOrderRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateOrderRequest.class); } -/** - * Convert an instance of CreateOrderRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CreateOrderRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/CreateOrderResponse.java b/src/main/java/com/adyen/model/checkout/CreateOrderResponse.java index 3976d9257..b83dc21ea 100644 --- a/src/main/java/com/adyen/model/checkout/CreateOrderResponse.java +++ b/src/main/java/com/adyen/model/checkout/CreateOrderResponse.java @@ -2,35 +2,28 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Amount; -import com.adyen.model.checkout.FraudResult; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * CreateOrderResponse - */ +/** CreateOrderResponse */ @JsonPropertyOrder({ CreateOrderResponse.JSON_PROPERTY_ADDITIONAL_DATA, CreateOrderResponse.JSON_PROPERTY_AMOUNT, @@ -43,7 +36,6 @@ CreateOrderResponse.JSON_PROPERTY_REMAINING_AMOUNT, CreateOrderResponse.JSON_PROPERTY_RESULT_CODE }) - public class CreateOrderResponse { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -72,11 +64,8 @@ public class CreateOrderResponse { public static final String JSON_PROPERTY_REMAINING_AMOUNT = "remainingAmount"; private Amount remainingAmount; - /** - * The result of the order creation request. The value is always **Success**. - */ + /** The result of the order creation request. The value is always **Success**. */ public enum ResultCodeEnum { - SUCCESS(String.valueOf("Success")); private static final Logger LOG = Logger.getLogger(ResultCodeEnum.class.getName()); @@ -84,7 +73,7 @@ public enum ResultCodeEnum { private String value; ResultCodeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -105,7 +94,11 @@ public static ResultCodeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ResultCodeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResultCodeEnum.values())); + LOG.warning( + "ResultCodeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ResultCodeEnum.values())); return null; } } @@ -113,13 +106,15 @@ public static ResultCodeEnum fromValue(String value) { public static final String JSON_PROPERTY_RESULT_CODE = "resultCode"; private ResultCodeEnum resultCode; - public CreateOrderResponse() { - } + public CreateOrderResponse() {} /** - * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first: Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first: Go to **Customer Area** > **Developers** > + * **Additional data**. * @return the current {@code CreateOrderResponse} instance, allowing for method chaining */ public CreateOrderResponse additionalData(Map additionalData) { @@ -136,8 +131,12 @@ public CreateOrderResponse putAdditionalDataItem(String key, String additionalDa } /** - * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. - * @return additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * + * @return additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first: Go to **Customer Area** > **Developers** > + * **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,9 +145,12 @@ public Map getAdditionalData() { } /** - * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first: Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first: Go to **Customer Area** > **Developers** > + * **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,7 +161,7 @@ public void setAdditionalData(Map additionalData) { /** * amount * - * @param amount + * @param amount * @return the current {@code CreateOrderResponse} instance, allowing for method chaining */ public CreateOrderResponse amount(Amount amount) { @@ -169,7 +171,8 @@ public CreateOrderResponse amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -180,7 +183,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -201,6 +204,7 @@ public CreateOrderResponse expiresAt(String expiresAt) { /** * The date that the order will expire. + * * @return expiresAt The date that the order will expire. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @@ -223,7 +227,7 @@ public void setExpiresAt(String expiresAt) { /** * fraudResult * - * @param fraudResult + * @param fraudResult * @return the current {@code CreateOrderResponse} instance, allowing for method chaining */ public CreateOrderResponse fraudResult(FraudResult fraudResult) { @@ -233,7 +237,8 @@ public CreateOrderResponse fraudResult(FraudResult fraudResult) { /** * Get fraudResult - * @return fraudResult + * + * @return fraudResult */ @JsonProperty(JSON_PROPERTY_FRAUD_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,7 +249,7 @@ public FraudResult getFraudResult() { /** * fraudResult * - * @param fraudResult + * @param fraudResult */ @JsonProperty(JSON_PROPERTY_FRAUD_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -255,7 +260,8 @@ public void setFraudResult(FraudResult fraudResult) { /** * The encrypted data that will be used by merchant for adding payments to the order. * - * @param orderData The encrypted data that will be used by merchant for adding payments to the order. + * @param orderData The encrypted data that will be used by merchant for adding payments to the + * order. * @return the current {@code CreateOrderResponse} instance, allowing for method chaining */ public CreateOrderResponse orderData(String orderData) { @@ -265,7 +271,9 @@ public CreateOrderResponse orderData(String orderData) { /** * The encrypted data that will be used by merchant for adding payments to the order. - * @return orderData The encrypted data that will be used by merchant for adding payments to the order. + * + * @return orderData The encrypted data that will be used by merchant for adding payments to the + * order. */ @JsonProperty(JSON_PROPERTY_ORDER_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -276,7 +284,8 @@ public String getOrderData() { /** * The encrypted data that will be used by merchant for adding payments to the order. * - * @param orderData The encrypted data that will be used by merchant for adding payments to the order. + * @param orderData The encrypted data that will be used by merchant for adding payments to the + * order. */ @JsonProperty(JSON_PROPERTY_ORDER_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -285,9 +294,11 @@ public void setOrderData(String orderData) { } /** - * Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character reference associated with the transaction/request. This value is + * globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @param pspReference Adyen's 16-character reference associated with the transaction/request. + * This value is globally unique; quote it when communicating with us about this request. * @return the current {@code CreateOrderResponse} instance, allowing for method chaining */ public CreateOrderResponse pspReference(String pspReference) { @@ -296,8 +307,12 @@ public CreateOrderResponse pspReference(String pspReference) { } /** - * Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. - * @return pspReference Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character reference associated with the transaction/request. This value is + * globally unique; quote it when communicating with us about this request. + * + * @return pspReference Adyen's 16-character reference associated with the + * transaction/request. This value is globally unique; quote it when communicating with us + * about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -306,9 +321,11 @@ public String getPspReference() { } /** - * Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character reference associated with the transaction/request. This value is + * globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @param pspReference Adyen's 16-character reference associated with the transaction/request. + * This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -329,6 +346,7 @@ public CreateOrderResponse reference(String reference) { /** * The reference provided by merchant for creating the order. + * * @return reference The reference provided by merchant for creating the order. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -349,9 +367,17 @@ public void setReference(String reference) { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this + * field holds Adyen's mapped reason for the refusal or a description of the error. When a + * transaction fails, the authorisation response includes `resultCode` and + * `refusalReason` values. For more information, see [Refusal + * reasons](https://docs.adyen.com/development-resources/refusal-reasons). * - * @param refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @param refusalReason If the payment's authorisation is refused or an error occurs during + * authorisation, this field holds Adyen's mapped reason for the refusal or a description + * of the error. When a transaction fails, the authorisation response includes + * `resultCode` and `refusalReason` values. For more information, see + * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). * @return the current {@code CreateOrderResponse} instance, allowing for method chaining */ public CreateOrderResponse refusalReason(String refusalReason) { @@ -360,8 +386,17 @@ public CreateOrderResponse refusalReason(String refusalReason) { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). - * @return refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this + * field holds Adyen's mapped reason for the refusal or a description of the error. When a + * transaction fails, the authorisation response includes `resultCode` and + * `refusalReason` values. For more information, see [Refusal + * reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * + * @return refusalReason If the payment's authorisation is refused or an error occurs during + * authorisation, this field holds Adyen's mapped reason for the refusal or a description + * of the error. When a transaction fails, the authorisation response includes + * `resultCode` and `refusalReason` values. For more information, see + * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -370,9 +405,17 @@ public String getRefusalReason() { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this + * field holds Adyen's mapped reason for the refusal or a description of the error. When a + * transaction fails, the authorisation response includes `resultCode` and + * `refusalReason` values. For more information, see [Refusal + * reasons](https://docs.adyen.com/development-resources/refusal-reasons). * - * @param refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @param refusalReason If the payment's authorisation is refused or an error occurs during + * authorisation, this field holds Adyen's mapped reason for the refusal or a description + * of the error. When a transaction fails, the authorisation response includes + * `resultCode` and `refusalReason` values. For more information, see + * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -383,7 +426,7 @@ public void setRefusalReason(String refusalReason) { /** * remainingAmount * - * @param remainingAmount + * @param remainingAmount * @return the current {@code CreateOrderResponse} instance, allowing for method chaining */ public CreateOrderResponse remainingAmount(Amount remainingAmount) { @@ -393,7 +436,8 @@ public CreateOrderResponse remainingAmount(Amount remainingAmount) { /** * Get remainingAmount - * @return remainingAmount + * + * @return remainingAmount */ @JsonProperty(JSON_PROPERTY_REMAINING_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -404,7 +448,7 @@ public Amount getRemainingAmount() { /** * remainingAmount * - * @param remainingAmount + * @param remainingAmount */ @JsonProperty(JSON_PROPERTY_REMAINING_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -413,9 +457,9 @@ public void setRemainingAmount(Amount remainingAmount) { } /** - * The result of the order creation request. The value is always **Success**. + * The result of the order creation request. The value is always **Success**. * - * @param resultCode The result of the order creation request. The value is always **Success**. + * @param resultCode The result of the order creation request. The value is always **Success**. * @return the current {@code CreateOrderResponse} instance, allowing for method chaining */ public CreateOrderResponse resultCode(ResultCodeEnum resultCode) { @@ -424,8 +468,9 @@ public CreateOrderResponse resultCode(ResultCodeEnum resultCode) { } /** - * The result of the order creation request. The value is always **Success**. - * @return resultCode The result of the order creation request. The value is always **Success**. + * The result of the order creation request. The value is always **Success**. + * + * @return resultCode The result of the order creation request. The value is always **Success**. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -434,9 +479,9 @@ public ResultCodeEnum getResultCode() { } /** - * The result of the order creation request. The value is always **Success**. + * The result of the order creation request. The value is always **Success**. * - * @param resultCode The result of the order creation request. The value is always **Success**. + * @param resultCode The result of the order creation request. The value is always **Success**. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -444,9 +489,7 @@ public void setResultCode(ResultCodeEnum resultCode) { this.resultCode = resultCode; } - /** - * Return true if this CreateOrderResponse object is equal to o. - */ + /** Return true if this CreateOrderResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -456,21 +499,31 @@ public boolean equals(Object o) { return false; } CreateOrderResponse createOrderResponse = (CreateOrderResponse) o; - return Objects.equals(this.additionalData, createOrderResponse.additionalData) && - Objects.equals(this.amount, createOrderResponse.amount) && - Objects.equals(this.expiresAt, createOrderResponse.expiresAt) && - Objects.equals(this.fraudResult, createOrderResponse.fraudResult) && - Objects.equals(this.orderData, createOrderResponse.orderData) && - Objects.equals(this.pspReference, createOrderResponse.pspReference) && - Objects.equals(this.reference, createOrderResponse.reference) && - Objects.equals(this.refusalReason, createOrderResponse.refusalReason) && - Objects.equals(this.remainingAmount, createOrderResponse.remainingAmount) && - Objects.equals(this.resultCode, createOrderResponse.resultCode); + return Objects.equals(this.additionalData, createOrderResponse.additionalData) + && Objects.equals(this.amount, createOrderResponse.amount) + && Objects.equals(this.expiresAt, createOrderResponse.expiresAt) + && Objects.equals(this.fraudResult, createOrderResponse.fraudResult) + && Objects.equals(this.orderData, createOrderResponse.orderData) + && Objects.equals(this.pspReference, createOrderResponse.pspReference) + && Objects.equals(this.reference, createOrderResponse.reference) + && Objects.equals(this.refusalReason, createOrderResponse.refusalReason) + && Objects.equals(this.remainingAmount, createOrderResponse.remainingAmount) + && Objects.equals(this.resultCode, createOrderResponse.resultCode); } @Override public int hashCode() { - return Objects.hash(additionalData, amount, expiresAt, fraudResult, orderData, pspReference, reference, refusalReason, remainingAmount, resultCode); + return Objects.hash( + additionalData, + amount, + expiresAt, + fraudResult, + orderData, + pspReference, + reference, + refusalReason, + remainingAmount, + resultCode); } @Override @@ -492,8 +545,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -502,21 +554,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CreateOrderResponse given an JSON string * * @param jsonString JSON string * @return An instance of CreateOrderResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to CreateOrderResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CreateOrderResponse */ public static CreateOrderResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateOrderResponse.class); } -/** - * Convert an instance of CreateOrderResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CreateOrderResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/DefaultErrorResponseEntity.java b/src/main/java/com/adyen/model/checkout/DefaultErrorResponseEntity.java index 89c2f816e..ff692da56 100644 --- a/src/main/java/com/adyen/model/checkout/DefaultErrorResponseEntity.java +++ b/src/main/java/com/adyen/model/checkout/DefaultErrorResponseEntity.java @@ -2,34 +2,24 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.InvalidField; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * Standardized error response following RFC-7807 format - */ +/** Standardized error response following RFC-7807 format */ @JsonPropertyOrder({ DefaultErrorResponseEntity.JSON_PROPERTY_DETAIL, DefaultErrorResponseEntity.JSON_PROPERTY_ERROR_CODE, @@ -40,7 +30,6 @@ DefaultErrorResponseEntity.JSON_PROPERTY_TITLE, DefaultErrorResponseEntity.JSON_PROPERTY_TYPE }) - public class DefaultErrorResponseEntity { public static final String JSON_PROPERTY_DETAIL = "detail"; private String detail; @@ -66,8 +55,7 @@ public class DefaultErrorResponseEntity { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public DefaultErrorResponseEntity() { - } + public DefaultErrorResponseEntity() {} /** * A human-readable explanation specific to this occurrence of the problem. @@ -82,6 +70,7 @@ public DefaultErrorResponseEntity detail(String detail) { /** * A human-readable explanation specific to this occurrence of the problem. + * * @return detail A human-readable explanation specific to this occurrence of the problem. */ @JsonProperty(JSON_PROPERTY_DETAIL) @@ -114,6 +103,7 @@ public DefaultErrorResponseEntity errorCode(String errorCode) { /** * Unique business error code. + * * @return errorCode Unique business error code. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -146,6 +136,7 @@ public DefaultErrorResponseEntity instance(String instance) { /** * A URI that identifies the specific occurrence of the problem if applicable. + * * @return instance A URI that identifies the specific occurrence of the problem if applicable. */ @JsonProperty(JSON_PROPERTY_INSTANCE) @@ -186,6 +177,7 @@ public DefaultErrorResponseEntity addInvalidFieldsItem(InvalidField invalidField /** * Array of fields with validation errors when applicable. + * * @return invalidFields Array of fields with validation errors when applicable. */ @JsonProperty(JSON_PROPERTY_INVALID_FIELDS) @@ -218,6 +210,7 @@ public DefaultErrorResponseEntity requestId(String requestId) { /** * The unique reference for the request. + * * @return requestId The unique reference for the request. */ @JsonProperty(JSON_PROPERTY_REQUEST_ID) @@ -250,6 +243,7 @@ public DefaultErrorResponseEntity status(Integer status) { /** * The HTTP status code. + * * @return status The HTTP status code. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -282,6 +276,7 @@ public DefaultErrorResponseEntity title(String title) { /** * A short, human-readable summary of the problem type. + * * @return title A short, human-readable summary of the problem type. */ @JsonProperty(JSON_PROPERTY_TITLE) @@ -302,9 +297,11 @@ public void setTitle(String title) { } /** - * A URI that identifies the validation error type. It points to human-readable documentation for the problem type. + * A URI that identifies the validation error type. It points to human-readable documentation for + * the problem type. * - * @param type A URI that identifies the validation error type. It points to human-readable documentation for the problem type. + * @param type A URI that identifies the validation error type. It points to human-readable + * documentation for the problem type. * @return the current {@code DefaultErrorResponseEntity} instance, allowing for method chaining */ public DefaultErrorResponseEntity type(String type) { @@ -313,8 +310,11 @@ public DefaultErrorResponseEntity type(String type) { } /** - * A URI that identifies the validation error type. It points to human-readable documentation for the problem type. - * @return type A URI that identifies the validation error type. It points to human-readable documentation for the problem type. + * A URI that identifies the validation error type. It points to human-readable documentation for + * the problem type. + * + * @return type A URI that identifies the validation error type. It points to human-readable + * documentation for the problem type. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -323,9 +323,11 @@ public String getType() { } /** - * A URI that identifies the validation error type. It points to human-readable documentation for the problem type. + * A URI that identifies the validation error type. It points to human-readable documentation for + * the problem type. * - * @param type A URI that identifies the validation error type. It points to human-readable documentation for the problem type. + * @param type A URI that identifies the validation error type. It points to human-readable + * documentation for the problem type. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -333,9 +335,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this DefaultErrorResponseEntity object is equal to o. - */ + /** Return true if this DefaultErrorResponseEntity object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -345,14 +345,14 @@ public boolean equals(Object o) { return false; } DefaultErrorResponseEntity defaultErrorResponseEntity = (DefaultErrorResponseEntity) o; - return Objects.equals(this.detail, defaultErrorResponseEntity.detail) && - Objects.equals(this.errorCode, defaultErrorResponseEntity.errorCode) && - Objects.equals(this.instance, defaultErrorResponseEntity.instance) && - Objects.equals(this.invalidFields, defaultErrorResponseEntity.invalidFields) && - Objects.equals(this.requestId, defaultErrorResponseEntity.requestId) && - Objects.equals(this.status, defaultErrorResponseEntity.status) && - Objects.equals(this.title, defaultErrorResponseEntity.title) && - Objects.equals(this.type, defaultErrorResponseEntity.type); + return Objects.equals(this.detail, defaultErrorResponseEntity.detail) + && Objects.equals(this.errorCode, defaultErrorResponseEntity.errorCode) + && Objects.equals(this.instance, defaultErrorResponseEntity.instance) + && Objects.equals(this.invalidFields, defaultErrorResponseEntity.invalidFields) + && Objects.equals(this.requestId, defaultErrorResponseEntity.requestId) + && Objects.equals(this.status, defaultErrorResponseEntity.status) + && Objects.equals(this.title, defaultErrorResponseEntity.title) + && Objects.equals(this.type, defaultErrorResponseEntity.type); } @Override @@ -377,8 +377,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -387,21 +386,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DefaultErrorResponseEntity given an JSON string * * @param jsonString JSON string * @return An instance of DefaultErrorResponseEntity - * @throws JsonProcessingException if the JSON string is invalid with respect to DefaultErrorResponseEntity + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DefaultErrorResponseEntity */ - public static DefaultErrorResponseEntity fromJson(String jsonString) throws JsonProcessingException { + public static DefaultErrorResponseEntity fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DefaultErrorResponseEntity.class); } -/** - * Convert an instance of DefaultErrorResponseEntity to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DefaultErrorResponseEntity to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/DeliveryAddress.java b/src/main/java/com/adyen/model/checkout/DeliveryAddress.java index e3df3f994..8be597897 100644 --- a/src/main/java/com/adyen/model/checkout/DeliveryAddress.java +++ b/src/main/java/com/adyen/model/checkout/DeliveryAddress.java @@ -2,31 +2,22 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * DeliveryAddress - */ +/** DeliveryAddress */ @JsonPropertyOrder({ DeliveryAddress.JSON_PROPERTY_CITY, DeliveryAddress.JSON_PROPERTY_COUNTRY, @@ -37,7 +28,6 @@ DeliveryAddress.JSON_PROPERTY_STATE_OR_PROVINCE, DeliveryAddress.JSON_PROPERTY_STREET }) - public class DeliveryAddress { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -63,8 +53,7 @@ public class DeliveryAddress { public static final String JSON_PROPERTY_STREET = "street"; private String street; - public DeliveryAddress() { - } + public DeliveryAddress() {} /** * The name of the city. Maximum length: 3000 characters. @@ -79,6 +68,7 @@ public DeliveryAddress city(String city) { /** * The name of the city. Maximum length: 3000 characters. + * * @return city The name of the city. Maximum length: 3000 characters. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -99,9 +89,13 @@ public void setCity(String city) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't + * know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If + * you don't know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress country(String country) { @@ -110,8 +104,13 @@ public DeliveryAddress country(String country) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. - * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't + * know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. + * + * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If + * you don't know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -120,9 +119,13 @@ public String getCountry() { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't + * know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If + * you don't know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -133,7 +136,7 @@ public void setCountry(String country) { /** * firstName * - * @param firstName + * @param firstName * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress firstName(String firstName) { @@ -143,7 +146,8 @@ public DeliveryAddress firstName(String firstName) { /** * Get firstName - * @return firstName + * + * @return firstName */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -154,7 +158,7 @@ public String getFirstName() { /** * firstName * - * @param firstName + * @param firstName */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -175,6 +179,7 @@ public DeliveryAddress houseNumberOrName(String houseNumberOrName) { /** * The number or name of the house. Maximum length: 3000 characters. + * * @return houseNumberOrName The number or name of the house. Maximum length: 3000 characters. */ @JsonProperty(JSON_PROPERTY_HOUSE_NUMBER_OR_NAME) @@ -197,7 +202,7 @@ public void setHouseNumberOrName(String houseNumberOrName) { /** * lastName * - * @param lastName + * @param lastName * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress lastName(String lastName) { @@ -207,7 +212,8 @@ public DeliveryAddress lastName(String lastName) { /** * Get lastName - * @return lastName + * + * @return lastName */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -218,7 +224,7 @@ public String getLastName() { /** * lastName * - * @param lastName + * @param lastName */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -227,9 +233,11 @@ public void setLastName(String lastName) { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an + * address in all other countries. * - * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten + * characters for an address in all other countries. * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress postalCode(String postalCode) { @@ -238,8 +246,11 @@ public DeliveryAddress postalCode(String postalCode) { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. - * @return postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an + * address in all other countries. + * + * @return postalCode A maximum of five digits for an address in the US, or a maximum of ten + * characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -248,9 +259,11 @@ public String getPostalCode() { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an + * address in all other countries. * - * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten + * characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -259,9 +272,11 @@ public void setPostalCode(String postalCode) { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in + * Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** + * in the US or **ON** in Canada. > Required for the US and Canada. * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress stateOrProvince(String stateOrProvince) { @@ -270,8 +285,11 @@ public DeliveryAddress stateOrProvince(String stateOrProvince) { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. - * @return stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in + * Canada. > Required for the US and Canada. + * + * @return stateOrProvince The two-character ISO 3166-2 state or province code. For example, + * **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -280,9 +298,11 @@ public String getStateOrProvince() { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in + * Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** + * in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -291,9 +311,12 @@ public void setStateOrProvince(String stateOrProvince) { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be + * included in this field; it should be separately provided via `houseNumberOrName`. * - * @param street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * @param street The name of the street. Maximum length: 3000 characters. > The house number + * should not be included in this field; it should be separately provided via + * `houseNumberOrName`. * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress street(String street) { @@ -302,8 +325,12 @@ public DeliveryAddress street(String street) { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. - * @return street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be + * included in this field; it should be separately provided via `houseNumberOrName`. + * + * @return street The name of the street. Maximum length: 3000 characters. > The house number + * should not be included in this field; it should be separately provided via + * `houseNumberOrName`. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -312,9 +339,12 @@ public String getStreet() { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be + * included in this field; it should be separately provided via `houseNumberOrName`. * - * @param street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * @param street The name of the street. Maximum length: 3000 characters. > The house number + * should not be included in this field; it should be separately provided via + * `houseNumberOrName`. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -322,9 +352,7 @@ public void setStreet(String street) { this.street = street; } - /** - * Return true if this DeliveryAddress object is equal to o. - */ + /** Return true if this DeliveryAddress object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -334,19 +362,20 @@ public boolean equals(Object o) { return false; } DeliveryAddress deliveryAddress = (DeliveryAddress) o; - return Objects.equals(this.city, deliveryAddress.city) && - Objects.equals(this.country, deliveryAddress.country) && - Objects.equals(this.firstName, deliveryAddress.firstName) && - Objects.equals(this.houseNumberOrName, deliveryAddress.houseNumberOrName) && - Objects.equals(this.lastName, deliveryAddress.lastName) && - Objects.equals(this.postalCode, deliveryAddress.postalCode) && - Objects.equals(this.stateOrProvince, deliveryAddress.stateOrProvince) && - Objects.equals(this.street, deliveryAddress.street); + return Objects.equals(this.city, deliveryAddress.city) + && Objects.equals(this.country, deliveryAddress.country) + && Objects.equals(this.firstName, deliveryAddress.firstName) + && Objects.equals(this.houseNumberOrName, deliveryAddress.houseNumberOrName) + && Objects.equals(this.lastName, deliveryAddress.lastName) + && Objects.equals(this.postalCode, deliveryAddress.postalCode) + && Objects.equals(this.stateOrProvince, deliveryAddress.stateOrProvince) + && Objects.equals(this.street, deliveryAddress.street); } @Override public int hashCode() { - return Objects.hash(city, country, firstName, houseNumberOrName, lastName, postalCode, stateOrProvince, street); + return Objects.hash( + city, country, firstName, houseNumberOrName, lastName, postalCode, stateOrProvince, street); } @Override @@ -366,8 +395,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -376,7 +404,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DeliveryAddress given an JSON string * * @param jsonString JSON string @@ -386,11 +414,12 @@ private String toIndentedString(Object o) { public static DeliveryAddress fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DeliveryAddress.class); } -/** - * Convert an instance of DeliveryAddress to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DeliveryAddress to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/DeliveryMethod.java b/src/main/java/com/adyen/model/checkout/DeliveryMethod.java index 1b6775813..a07d214ab 100644 --- a/src/main/java/com/adyen/model/checkout/DeliveryMethod.java +++ b/src/main/java/com/adyen/model/checkout/DeliveryMethod.java @@ -2,32 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Amount; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * DeliveryMethod - */ +/** DeliveryMethod */ @JsonPropertyOrder({ DeliveryMethod.JSON_PROPERTY_AMOUNT, DeliveryMethod.JSON_PROPERTY_DESCRIPTION, @@ -35,7 +29,6 @@ DeliveryMethod.JSON_PROPERTY_SELECTED, DeliveryMethod.JSON_PROPERTY_TYPE }) - public class DeliveryMethod { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -49,11 +42,8 @@ public class DeliveryMethod { public static final String JSON_PROPERTY_SELECTED = "selected"; private Boolean selected; - /** - * The type of the delivery method. - */ + /** The type of the delivery method. */ public enum TypeEnum { - SHIPPING(String.valueOf("Shipping")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -61,7 +51,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -82,7 +72,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -90,13 +84,12 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public DeliveryMethod() { - } + public DeliveryMethod() {} /** * amount * - * @param amount + * @param amount * @return the current {@code DeliveryMethod} instance, allowing for method chaining */ public DeliveryMethod amount(Amount amount) { @@ -106,7 +99,8 @@ public DeliveryMethod amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,7 +111,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,6 +132,7 @@ public DeliveryMethod description(String description) { /** * The name of the delivery method as shown to the shopper. + * * @return description The name of the delivery method as shown to the shopper. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -170,6 +165,7 @@ public DeliveryMethod reference(String reference) { /** * The reference of the delivery method. + * * @return reference The reference of the delivery method. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -190,9 +186,11 @@ public void setReference(String reference) { } /** - * If you display the PayPal lightbox with delivery methods, set to **true** for the delivery method that is selected. Only one delivery method can be selected at a time. + * If you display the PayPal lightbox with delivery methods, set to **true** for the delivery + * method that is selected. Only one delivery method can be selected at a time. * - * @param selected If you display the PayPal lightbox with delivery methods, set to **true** for the delivery method that is selected. Only one delivery method can be selected at a time. + * @param selected If you display the PayPal lightbox with delivery methods, set to **true** for + * the delivery method that is selected. Only one delivery method can be selected at a time. * @return the current {@code DeliveryMethod} instance, allowing for method chaining */ public DeliveryMethod selected(Boolean selected) { @@ -201,8 +199,11 @@ public DeliveryMethod selected(Boolean selected) { } /** - * If you display the PayPal lightbox with delivery methods, set to **true** for the delivery method that is selected. Only one delivery method can be selected at a time. - * @return selected If you display the PayPal lightbox with delivery methods, set to **true** for the delivery method that is selected. Only one delivery method can be selected at a time. + * If you display the PayPal lightbox with delivery methods, set to **true** for the delivery + * method that is selected. Only one delivery method can be selected at a time. + * + * @return selected If you display the PayPal lightbox with delivery methods, set to **true** for + * the delivery method that is selected. Only one delivery method can be selected at a time. */ @JsonProperty(JSON_PROPERTY_SELECTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,9 +212,11 @@ public Boolean getSelected() { } /** - * If you display the PayPal lightbox with delivery methods, set to **true** for the delivery method that is selected. Only one delivery method can be selected at a time. + * If you display the PayPal lightbox with delivery methods, set to **true** for the delivery + * method that is selected. Only one delivery method can be selected at a time. * - * @param selected If you display the PayPal lightbox with delivery methods, set to **true** for the delivery method that is selected. Only one delivery method can be selected at a time. + * @param selected If you display the PayPal lightbox with delivery methods, set to **true** for + * the delivery method that is selected. Only one delivery method can be selected at a time. */ @JsonProperty(JSON_PROPERTY_SELECTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -234,6 +237,7 @@ public DeliveryMethod type(TypeEnum type) { /** * The type of the delivery method. + * * @return type The type of the delivery method. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -253,9 +257,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this DeliveryMethod object is equal to o. - */ + /** Return true if this DeliveryMethod object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -265,11 +267,11 @@ public boolean equals(Object o) { return false; } DeliveryMethod deliveryMethod = (DeliveryMethod) o; - return Objects.equals(this.amount, deliveryMethod.amount) && - Objects.equals(this.description, deliveryMethod.description) && - Objects.equals(this.reference, deliveryMethod.reference) && - Objects.equals(this.selected, deliveryMethod.selected) && - Objects.equals(this.type, deliveryMethod.type); + return Objects.equals(this.amount, deliveryMethod.amount) + && Objects.equals(this.description, deliveryMethod.description) + && Objects.equals(this.reference, deliveryMethod.reference) + && Objects.equals(this.selected, deliveryMethod.selected) + && Objects.equals(this.type, deliveryMethod.type); } @Override @@ -291,8 +293,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -301,7 +302,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DeliveryMethod given an JSON string * * @param jsonString JSON string @@ -311,11 +312,12 @@ private String toIndentedString(Object o) { public static DeliveryMethod fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DeliveryMethod.class); } -/** - * Convert an instance of DeliveryMethod to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DeliveryMethod to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/DetailsRequestAuthenticationData.java b/src/main/java/com/adyen/model/checkout/DetailsRequestAuthenticationData.java index e85bd98eb..e584b917e 100644 --- a/src/main/java/com/adyen/model/checkout/DetailsRequestAuthenticationData.java +++ b/src/main/java/com/adyen/model/checkout/DetailsRequestAuthenticationData.java @@ -2,47 +2,41 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * DetailsRequestAuthenticationData - */ -@JsonPropertyOrder({ - DetailsRequestAuthenticationData.JSON_PROPERTY_AUTHENTICATION_ONLY -}) - +/** DetailsRequestAuthenticationData */ +@JsonPropertyOrder({DetailsRequestAuthenticationData.JSON_PROPERTY_AUTHENTICATION_ONLY}) public class DetailsRequestAuthenticationData { public static final String JSON_PROPERTY_AUTHENTICATION_ONLY = "authenticationOnly"; private Boolean authenticationOnly; - public DetailsRequestAuthenticationData() { - } + public DetailsRequestAuthenticationData() {} /** - * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. * - * @param authenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. - * @return the current {@code DetailsRequestAuthenticationData} instance, allowing for method chaining + * @param authenticationOnly Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. + * @return the current {@code DetailsRequestAuthenticationData} instance, allowing for method + * chaining */ public DetailsRequestAuthenticationData authenticationOnly(Boolean authenticationOnly) { this.authenticationOnly = authenticationOnly; @@ -50,8 +44,15 @@ public DetailsRequestAuthenticationData authenticationOnly(Boolean authenticatio } /** - * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. - * @return authenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. + * + * @return authenticationOnly Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,9 +61,15 @@ public Boolean getAuthenticationOnly() { } /** - * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. * - * @param authenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * @param authenticationOnly Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +77,7 @@ public void setAuthenticationOnly(Boolean authenticationOnly) { this.authenticationOnly = authenticationOnly; } - /** - * Return true if this DetailsRequestAuthenticationData object is equal to o. - */ + /** Return true if this DetailsRequestAuthenticationData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -81,8 +86,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - DetailsRequestAuthenticationData detailsRequestAuthenticationData = (DetailsRequestAuthenticationData) o; - return Objects.equals(this.authenticationOnly, detailsRequestAuthenticationData.authenticationOnly); + DetailsRequestAuthenticationData detailsRequestAuthenticationData = + (DetailsRequestAuthenticationData) o; + return Objects.equals( + this.authenticationOnly, detailsRequestAuthenticationData.authenticationOnly); } @Override @@ -100,8 +107,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +116,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DetailsRequestAuthenticationData given an JSON string * * @param jsonString JSON string * @return An instance of DetailsRequestAuthenticationData - * @throws JsonProcessingException if the JSON string is invalid with respect to DetailsRequestAuthenticationData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DetailsRequestAuthenticationData */ - public static DetailsRequestAuthenticationData fromJson(String jsonString) throws JsonProcessingException { + public static DetailsRequestAuthenticationData fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DetailsRequestAuthenticationData.class); } -/** - * Convert an instance of DetailsRequestAuthenticationData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DetailsRequestAuthenticationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/DeviceRenderOptions.java b/src/main/java/com/adyen/model/checkout/DeviceRenderOptions.java index e9ed600eb..929db88d5 100644 --- a/src/main/java/com/adyen/model/checkout/DeviceRenderOptions.java +++ b/src/main/java/com/adyen/model/checkout/DeviceRenderOptions.java @@ -2,44 +2,35 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * DeviceRenderOptions - */ +/** DeviceRenderOptions */ @JsonPropertyOrder({ DeviceRenderOptions.JSON_PROPERTY_SDK_INTERFACE, DeviceRenderOptions.JSON_PROPERTY_SDK_UI_TYPE }) - public class DeviceRenderOptions { - /** - * Supported SDK interface types. Allowed values: * native * html * both - */ + /** Supported SDK interface types. Allowed values: * native * html * both */ public enum SdkInterfaceEnum { - NATIVE(String.valueOf("native")), HTML(String.valueOf("html")), @@ -51,7 +42,7 @@ public enum SdkInterfaceEnum { private String value; SdkInterfaceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -72,7 +63,11 @@ public static SdkInterfaceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("SdkInterfaceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(SdkInterfaceEnum.values())); + LOG.warning( + "SdkInterfaceEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(SdkInterfaceEnum.values())); return null; } } @@ -80,11 +75,8 @@ public static SdkInterfaceEnum fromValue(String value) { public static final String JSON_PROPERTY_SDK_INTERFACE = "sdkInterface"; private SdkInterfaceEnum sdkInterface; - /** - * Gets or Sets sdkUiType - */ + /** Gets or Sets sdkUiType */ public enum SdkUiTypeEnum { - MULTISELECT(String.valueOf("multiSelect")), OTHERHTML(String.valueOf("otherHtml")), @@ -100,7 +92,7 @@ public enum SdkUiTypeEnum { private String value; SdkUiTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -121,7 +113,11 @@ public static SdkUiTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("SdkUiTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(SdkUiTypeEnum.values())); + LOG.warning( + "SdkUiTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(SdkUiTypeEnum.values())); return null; } } @@ -129,8 +125,7 @@ public static SdkUiTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_SDK_UI_TYPE = "sdkUiType"; private List sdkUiType; - public DeviceRenderOptions() { - } + public DeviceRenderOptions() {} /** * Supported SDK interface types. Allowed values: * native * html * both @@ -145,6 +140,7 @@ public DeviceRenderOptions sdkInterface(SdkInterfaceEnum sdkInterface) { /** * Supported SDK interface types. Allowed values: * native * html * both + * * @return sdkInterface Supported SDK interface types. Allowed values: * native * html * both */ @JsonProperty(JSON_PROPERTY_SDK_INTERFACE) @@ -165,9 +161,11 @@ public void setSdkInterface(SdkInterfaceEnum sdkInterface) { } /** - * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect + * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * + * outOfBand * otherHtml * multiSelect * - * @param sdkUiType UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect + * @param sdkUiType UI types supported for displaying specific challenges. Allowed values: * text + * * singleSelect * outOfBand * otherHtml * multiSelect * @return the current {@code DeviceRenderOptions} instance, allowing for method chaining */ public DeviceRenderOptions sdkUiType(List sdkUiType) { @@ -184,8 +182,11 @@ public DeviceRenderOptions addSdkUiTypeItem(SdkUiTypeEnum sdkUiTypeItem) { } /** - * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect - * @return sdkUiType UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect + * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * + * outOfBand * otherHtml * multiSelect + * + * @return sdkUiType UI types supported for displaying specific challenges. Allowed values: * text + * * singleSelect * outOfBand * otherHtml * multiSelect */ @JsonProperty(JSON_PROPERTY_SDK_UI_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,9 +195,11 @@ public List getSdkUiType() { } /** - * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect + * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * + * outOfBand * otherHtml * multiSelect * - * @param sdkUiType UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect + * @param sdkUiType UI types supported for displaying specific challenges. Allowed values: * text + * * singleSelect * outOfBand * otherHtml * multiSelect */ @JsonProperty(JSON_PROPERTY_SDK_UI_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,9 +207,7 @@ public void setSdkUiType(List sdkUiType) { this.sdkUiType = sdkUiType; } - /** - * Return true if this DeviceRenderOptions object is equal to o. - */ + /** Return true if this DeviceRenderOptions object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -216,8 +217,8 @@ public boolean equals(Object o) { return false; } DeviceRenderOptions deviceRenderOptions = (DeviceRenderOptions) o; - return Objects.equals(this.sdkInterface, deviceRenderOptions.sdkInterface) && - Objects.equals(this.sdkUiType, deviceRenderOptions.sdkUiType); + return Objects.equals(this.sdkInterface, deviceRenderOptions.sdkInterface) + && Objects.equals(this.sdkUiType, deviceRenderOptions.sdkUiType); } @Override @@ -236,8 +237,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -246,21 +246,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DeviceRenderOptions given an JSON string * * @param jsonString JSON string * @return An instance of DeviceRenderOptions - * @throws JsonProcessingException if the JSON string is invalid with respect to DeviceRenderOptions + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DeviceRenderOptions */ public static DeviceRenderOptions fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DeviceRenderOptions.class); } -/** - * Convert an instance of DeviceRenderOptions to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DeviceRenderOptions to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/DokuDetails.java b/src/main/java/com/adyen/model/checkout/DokuDetails.java index 3f0d0464b..d5a4a36af 100644 --- a/src/main/java/com/adyen/model/checkout/DokuDetails.java +++ b/src/main/java/com/adyen/model/checkout/DokuDetails.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * DokuDetails - */ +/** DokuDetails */ @JsonPropertyOrder({ DokuDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, DokuDetails.JSON_PROPERTY_FIRST_NAME, @@ -34,7 +29,6 @@ DokuDetails.JSON_PROPERTY_SHOPPER_EMAIL, DokuDetails.JSON_PROPERTY_TYPE }) - public class DokuDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -48,11 +42,8 @@ public class DokuDetails { public static final String JSON_PROPERTY_SHOPPER_EMAIL = "shopperEmail"; private String shopperEmail; - /** - * **doku** - */ + /** **doku** */ public enum TypeEnum { - DOKU_MANDIRI_VA(String.valueOf("doku_mandiri_va")), DOKU_CIMB_VA(String.valueOf("doku_cimb_va")), @@ -80,7 +71,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -101,7 +92,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -109,8 +104,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public DokuDetails() { - } + public DokuDetails() {} /** * The checkout attempt identifier. @@ -125,6 +119,7 @@ public DokuDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -157,6 +152,7 @@ public DokuDetails firstName(String firstName) { /** * The shopper's first name. + * * @return firstName The shopper's first name. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @@ -189,6 +185,7 @@ public DokuDetails lastName(String lastName) { /** * The shopper's last name. + * * @return lastName The shopper's last name. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @@ -221,6 +218,7 @@ public DokuDetails shopperEmail(String shopperEmail) { /** * The shopper's email. + * * @return shopperEmail The shopper's email. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -253,6 +251,7 @@ public DokuDetails type(TypeEnum type) { /** * **doku** + * * @return type **doku** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -272,9 +271,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this DokuDetails object is equal to o. - */ + /** Return true if this DokuDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -284,11 +281,11 @@ public boolean equals(Object o) { return false; } DokuDetails dokuDetails = (DokuDetails) o; - return Objects.equals(this.checkoutAttemptId, dokuDetails.checkoutAttemptId) && - Objects.equals(this.firstName, dokuDetails.firstName) && - Objects.equals(this.lastName, dokuDetails.lastName) && - Objects.equals(this.shopperEmail, dokuDetails.shopperEmail) && - Objects.equals(this.type, dokuDetails.type); + return Objects.equals(this.checkoutAttemptId, dokuDetails.checkoutAttemptId) + && Objects.equals(this.firstName, dokuDetails.firstName) + && Objects.equals(this.lastName, dokuDetails.lastName) + && Objects.equals(this.shopperEmail, dokuDetails.shopperEmail) + && Objects.equals(this.type, dokuDetails.type); } @Override @@ -310,8 +307,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -320,7 +316,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DokuDetails given an JSON string * * @param jsonString JSON string @@ -330,11 +326,12 @@ private String toIndentedString(Object o) { public static DokuDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DokuDetails.class); } -/** - * Convert an instance of DokuDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DokuDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Donation.java b/src/main/java/com/adyen/model/checkout/Donation.java index 5d0cddac8..750c3a67a 100644 --- a/src/main/java/com/adyen/model/checkout/Donation.java +++ b/src/main/java/com/adyen/model/checkout/Donation.java @@ -2,33 +2,24 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * Donation - */ +/** Donation */ @JsonPropertyOrder({ Donation.JSON_PROPERTY_CURRENCY, Donation.JSON_PROPERTY_DONATION_TYPE, @@ -36,7 +27,6 @@ Donation.JSON_PROPERTY_TYPE, Donation.JSON_PROPERTY_VALUES }) - public class Donation { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -53,13 +43,14 @@ public class Donation { public static final String JSON_PROPERTY_VALUES = "values"; private List values; - public Donation() { - } + public Donation() {} /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes/). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes/). * @return the current {@code Donation} instance, allowing for method chaining */ public Donation currency(String currency) { @@ -68,8 +59,11 @@ public Donation currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes/). + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes/). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -78,9 +72,11 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes/). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes/). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -89,9 +85,16 @@ public void setCurrency(String currency) { } /** - * The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donations amounts that the shopper can select from. + * The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). + * Possible values: * **roundup**: a donation where the original transaction amount is rounded up + * as a donation. * **fixedAmounts**: a donation where you show fixed donations amounts that the + * shopper can select from. * - * @param donationType The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donations amounts that the shopper can select from. + * @param donationType The [type of + * donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible + * values: * **roundup**: a donation where the original transaction amount is rounded up as a + * donation. * **fixedAmounts**: a donation where you show fixed donations amounts that the + * shopper can select from. * @return the current {@code Donation} instance, allowing for method chaining */ public Donation donationType(String donationType) { @@ -100,8 +103,16 @@ public Donation donationType(String donationType) { } /** - * The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donations amounts that the shopper can select from. - * @return donationType The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donations amounts that the shopper can select from. + * The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). + * Possible values: * **roundup**: a donation where the original transaction amount is rounded up + * as a donation. * **fixedAmounts**: a donation where you show fixed donations amounts that the + * shopper can select from. + * + * @return donationType The [type of + * donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible + * values: * **roundup**: a donation where the original transaction amount is rounded up as a + * donation. * **fixedAmounts**: a donation where you show fixed donations amounts that the + * shopper can select from. */ @JsonProperty(JSON_PROPERTY_DONATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,9 +121,16 @@ public String getDonationType() { } /** - * The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donations amounts that the shopper can select from. + * The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). + * Possible values: * **roundup**: a donation where the original transaction amount is rounded up + * as a donation. * **fixedAmounts**: a donation where you show fixed donations amounts that the + * shopper can select from. * - * @param donationType The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donations amounts that the shopper can select from. + * @param donationType The [type of + * donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible + * values: * **roundup**: a donation where the original transaction amount is rounded up as a + * donation. * **fixedAmounts**: a donation where you show fixed donations amounts that the + * shopper can select from. */ @JsonProperty(JSON_PROPERTY_DONATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,9 +139,11 @@ public void setDonationType(String donationType) { } /** - * The maximum amount a transaction can be rounded up to make a donation. This field is only present when `donationType` is **roundup**. + * The maximum amount a transaction can be rounded up to make a donation. This field is only + * present when `donationType` is **roundup**. * - * @param maxRoundupAmount The maximum amount a transaction can be rounded up to make a donation. This field is only present when `donationType` is **roundup**. + * @param maxRoundupAmount The maximum amount a transaction can be rounded up to make a donation. + * This field is only present when `donationType` is **roundup**. * @return the current {@code Donation} instance, allowing for method chaining */ public Donation maxRoundupAmount(Long maxRoundupAmount) { @@ -132,8 +152,11 @@ public Donation maxRoundupAmount(Long maxRoundupAmount) { } /** - * The maximum amount a transaction can be rounded up to make a donation. This field is only present when `donationType` is **roundup**. - * @return maxRoundupAmount The maximum amount a transaction can be rounded up to make a donation. This field is only present when `donationType` is **roundup**. + * The maximum amount a transaction can be rounded up to make a donation. This field is only + * present when `donationType` is **roundup**. + * + * @return maxRoundupAmount The maximum amount a transaction can be rounded up to make a donation. + * This field is only present when `donationType` is **roundup**. */ @JsonProperty(JSON_PROPERTY_MAX_ROUNDUP_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +165,11 @@ public Long getMaxRoundupAmount() { } /** - * The maximum amount a transaction can be rounded up to make a donation. This field is only present when `donationType` is **roundup**. + * The maximum amount a transaction can be rounded up to make a donation. This field is only + * present when `donationType` is **roundup**. * - * @param maxRoundupAmount The maximum amount a transaction can be rounded up to make a donation. This field is only present when `donationType` is **roundup**. + * @param maxRoundupAmount The maximum amount a transaction can be rounded up to make a donation. + * This field is only present when `donationType` is **roundup**. */ @JsonProperty(JSON_PROPERTY_MAX_ROUNDUP_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -153,9 +178,16 @@ public void setMaxRoundupAmount(Long maxRoundupAmount) { } /** - * The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donation amounts that the shopper can select from. + * The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). + * Possible values: * **roundup**: a donation where the original transaction amount is rounded up + * as a donation. * **fixedAmounts**: a donation where you show fixed donation amounts that the + * shopper can select from. * - * @param type The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donation amounts that the shopper can select from. + * @param type The [type of + * donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible + * values: * **roundup**: a donation where the original transaction amount is rounded up as a + * donation. * **fixedAmounts**: a donation where you show fixed donation amounts that the + * shopper can select from. * @return the current {@code Donation} instance, allowing for method chaining */ public Donation type(String type) { @@ -164,8 +196,16 @@ public Donation type(String type) { } /** - * The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donation amounts that the shopper can select from. - * @return type The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donation amounts that the shopper can select from. + * The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). + * Possible values: * **roundup**: a donation where the original transaction amount is rounded up + * as a donation. * **fixedAmounts**: a donation where you show fixed donation amounts that the + * shopper can select from. + * + * @return type The [type of + * donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible + * values: * **roundup**: a donation where the original transaction amount is rounded up as a + * donation. * **fixedAmounts**: a donation where you show fixed donation amounts that the + * shopper can select from. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -174,9 +214,16 @@ public String getType() { } /** - * The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donation amounts that the shopper can select from. + * The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). + * Possible values: * **roundup**: a donation where the original transaction amount is rounded up + * as a donation. * **fixedAmounts**: a donation where you show fixed donation amounts that the + * shopper can select from. * - * @param type The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donation amounts that the shopper can select from. + * @param type The [type of + * donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible + * values: * **roundup**: a donation where the original transaction amount is rounded up as a + * donation. * **fixedAmounts**: a donation where you show fixed donation amounts that the + * shopper can select from. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,9 +232,13 @@ public void setType(String type) { } /** - * The fixed donation amounts in [minor units](https://docs.adyen.com/development-resources/currency-codes//#minor-units). This field is only present when `donationType` is **fixedAmounts**. + * The fixed donation amounts in [minor + * units](https://docs.adyen.com/development-resources/currency-codes//#minor-units). This field + * is only present when `donationType` is **fixedAmounts**. * - * @param values The fixed donation amounts in [minor units](https://docs.adyen.com/development-resources/currency-codes//#minor-units). This field is only present when `donationType` is **fixedAmounts**. + * @param values The fixed donation amounts in [minor + * units](https://docs.adyen.com/development-resources/currency-codes//#minor-units). This + * field is only present when `donationType` is **fixedAmounts**. * @return the current {@code Donation} instance, allowing for method chaining */ public Donation values(List values) { @@ -204,8 +255,13 @@ public Donation addValuesItem(Long valuesItem) { } /** - * The fixed donation amounts in [minor units](https://docs.adyen.com/development-resources/currency-codes//#minor-units). This field is only present when `donationType` is **fixedAmounts**. - * @return values The fixed donation amounts in [minor units](https://docs.adyen.com/development-resources/currency-codes//#minor-units). This field is only present when `donationType` is **fixedAmounts**. + * The fixed donation amounts in [minor + * units](https://docs.adyen.com/development-resources/currency-codes//#minor-units). This field + * is only present when `donationType` is **fixedAmounts**. + * + * @return values The fixed donation amounts in [minor + * units](https://docs.adyen.com/development-resources/currency-codes//#minor-units). This + * field is only present when `donationType` is **fixedAmounts**. */ @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,9 +270,13 @@ public List getValues() { } /** - * The fixed donation amounts in [minor units](https://docs.adyen.com/development-resources/currency-codes//#minor-units). This field is only present when `donationType` is **fixedAmounts**. + * The fixed donation amounts in [minor + * units](https://docs.adyen.com/development-resources/currency-codes//#minor-units). This field + * is only present when `donationType` is **fixedAmounts**. * - * @param values The fixed donation amounts in [minor units](https://docs.adyen.com/development-resources/currency-codes//#minor-units). This field is only present when `donationType` is **fixedAmounts**. + * @param values The fixed donation amounts in [minor + * units](https://docs.adyen.com/development-resources/currency-codes//#minor-units). This + * field is only present when `donationType` is **fixedAmounts**. */ @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,9 +284,7 @@ public void setValues(List values) { this.values = values; } - /** - * Return true if this Donation object is equal to o. - */ + /** Return true if this Donation object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -236,11 +294,11 @@ public boolean equals(Object o) { return false; } Donation donation = (Donation) o; - return Objects.equals(this.currency, donation.currency) && - Objects.equals(this.donationType, donation.donationType) && - Objects.equals(this.maxRoundupAmount, donation.maxRoundupAmount) && - Objects.equals(this.type, donation.type) && - Objects.equals(this.values, donation.values); + return Objects.equals(this.currency, donation.currency) + && Objects.equals(this.donationType, donation.donationType) + && Objects.equals(this.maxRoundupAmount, donation.maxRoundupAmount) + && Objects.equals(this.type, donation.type) + && Objects.equals(this.values, donation.values); } @Override @@ -262,8 +320,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -272,7 +329,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Donation given an JSON string * * @param jsonString JSON string @@ -282,11 +339,12 @@ private String toIndentedString(Object o) { public static Donation fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Donation.class); } -/** - * Convert an instance of Donation to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Donation to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/DonationCampaign.java b/src/main/java/com/adyen/model/checkout/DonationCampaign.java index 87ddd3b1a..3d9f37a04 100644 --- a/src/main/java/com/adyen/model/checkout/DonationCampaign.java +++ b/src/main/java/com/adyen/model/checkout/DonationCampaign.java @@ -2,33 +2,22 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Amounts; -import com.adyen.model.checkout.Donation; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * DonationCampaign - */ +/** DonationCampaign */ @JsonPropertyOrder({ DonationCampaign.JSON_PROPERTY_AMOUNTS, DonationCampaign.JSON_PROPERTY_BANNER_URL, @@ -42,7 +31,6 @@ DonationCampaign.JSON_PROPERTY_NONPROFIT_URL, DonationCampaign.JSON_PROPERTY_TERMS_AND_CONDITIONS_URL }) - public class DonationCampaign { public static final String JSON_PROPERTY_AMOUNTS = "amounts"; private Amounts amounts; @@ -77,13 +65,12 @@ public class DonationCampaign { public static final String JSON_PROPERTY_TERMS_AND_CONDITIONS_URL = "termsAndConditionsUrl"; private String termsAndConditionsUrl; - public DonationCampaign() { - } + public DonationCampaign() {} /** * amounts * - * @param amounts + * @param amounts * @return the current {@code DonationCampaign} instance, allowing for method chaining */ public DonationCampaign amounts(Amounts amounts) { @@ -93,7 +80,8 @@ public DonationCampaign amounts(Amounts amounts) { /** * Get amounts - * @return amounts + * + * @return amounts */ @JsonProperty(JSON_PROPERTY_AMOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,7 +92,7 @@ public Amounts getAmounts() { /** * amounts * - * @param amounts + * @param amounts */ @JsonProperty(JSON_PROPERTY_AMOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,6 +113,7 @@ public DonationCampaign bannerUrl(String bannerUrl) { /** * The URL for the banner of the nonprofit or campaign. + * * @return bannerUrl The URL for the banner of the nonprofit or campaign. */ @JsonProperty(JSON_PROPERTY_BANNER_URL) @@ -157,6 +146,7 @@ public DonationCampaign campaignName(String campaignName) { /** * The name of the donation campaign.. + * * @return campaignName The name of the donation campaign.. */ @JsonProperty(JSON_PROPERTY_CAMPAIGN_NAME) @@ -189,6 +179,7 @@ public DonationCampaign causeName(String causeName) { /** * The cause of the nonprofit. + * * @return causeName The cause of the nonprofit. */ @JsonProperty(JSON_PROPERTY_CAUSE_NAME) @@ -211,7 +202,7 @@ public void setCauseName(String causeName) { /** * donation * - * @param donation + * @param donation * @return the current {@code DonationCampaign} instance, allowing for method chaining */ public DonationCampaign donation(Donation donation) { @@ -221,7 +212,8 @@ public DonationCampaign donation(Donation donation) { /** * Get donation - * @return donation + * + * @return donation */ @JsonProperty(JSON_PROPERTY_DONATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,7 +224,7 @@ public Donation getDonation() { /** * donation * - * @param donation + * @param donation */ @JsonProperty(JSON_PROPERTY_DONATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -253,6 +245,7 @@ public DonationCampaign id(String id) { /** * The unique campaign ID of the donation campaign. + * * @return id The unique campaign ID of the donation campaign. */ @JsonProperty(JSON_PROPERTY_ID) @@ -285,6 +278,7 @@ public DonationCampaign logoUrl(String logoUrl) { /** * The URL for the logo of the nonprofit. + * * @return logoUrl The URL for the logo of the nonprofit. */ @JsonProperty(JSON_PROPERTY_LOGO_URL) @@ -317,6 +311,7 @@ public DonationCampaign nonprofitDescription(String nonprofitDescription) { /** * The description of the nonprofit. + * * @return nonprofitDescription The description of the nonprofit. */ @JsonProperty(JSON_PROPERTY_NONPROFIT_DESCRIPTION) @@ -349,6 +344,7 @@ public DonationCampaign nonprofitName(String nonprofitName) { /** * The name of the nonprofit organization that receives the donation. + * * @return nonprofitName The name of the nonprofit organization that receives the donation. */ @JsonProperty(JSON_PROPERTY_NONPROFIT_NAME) @@ -381,6 +377,7 @@ public DonationCampaign nonprofitUrl(String nonprofitUrl) { /** * The website URL of the nonprofit. + * * @return nonprofitUrl The website URL of the nonprofit. */ @JsonProperty(JSON_PROPERTY_NONPROFIT_URL) @@ -403,7 +400,8 @@ public void setNonprofitUrl(String nonprofitUrl) { /** * The URL of the terms and conditions page of the nonprofit and the campaign. * - * @param termsAndConditionsUrl The URL of the terms and conditions page of the nonprofit and the campaign. + * @param termsAndConditionsUrl The URL of the terms and conditions page of the nonprofit and the + * campaign. * @return the current {@code DonationCampaign} instance, allowing for method chaining */ public DonationCampaign termsAndConditionsUrl(String termsAndConditionsUrl) { @@ -413,7 +411,9 @@ public DonationCampaign termsAndConditionsUrl(String termsAndConditionsUrl) { /** * The URL of the terms and conditions page of the nonprofit and the campaign. - * @return termsAndConditionsUrl The URL of the terms and conditions page of the nonprofit and the campaign. + * + * @return termsAndConditionsUrl The URL of the terms and conditions page of the nonprofit and the + * campaign. */ @JsonProperty(JSON_PROPERTY_TERMS_AND_CONDITIONS_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -424,7 +424,8 @@ public String getTermsAndConditionsUrl() { /** * The URL of the terms and conditions page of the nonprofit and the campaign. * - * @param termsAndConditionsUrl The URL of the terms and conditions page of the nonprofit and the campaign. + * @param termsAndConditionsUrl The URL of the terms and conditions page of the nonprofit and the + * campaign. */ @JsonProperty(JSON_PROPERTY_TERMS_AND_CONDITIONS_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -432,9 +433,7 @@ public void setTermsAndConditionsUrl(String termsAndConditionsUrl) { this.termsAndConditionsUrl = termsAndConditionsUrl; } - /** - * Return true if this DonationCampaign object is equal to o. - */ + /** Return true if this DonationCampaign object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -444,22 +443,33 @@ public boolean equals(Object o) { return false; } DonationCampaign donationCampaign = (DonationCampaign) o; - return Objects.equals(this.amounts, donationCampaign.amounts) && - Objects.equals(this.bannerUrl, donationCampaign.bannerUrl) && - Objects.equals(this.campaignName, donationCampaign.campaignName) && - Objects.equals(this.causeName, donationCampaign.causeName) && - Objects.equals(this.donation, donationCampaign.donation) && - Objects.equals(this.id, donationCampaign.id) && - Objects.equals(this.logoUrl, donationCampaign.logoUrl) && - Objects.equals(this.nonprofitDescription, donationCampaign.nonprofitDescription) && - Objects.equals(this.nonprofitName, donationCampaign.nonprofitName) && - Objects.equals(this.nonprofitUrl, donationCampaign.nonprofitUrl) && - Objects.equals(this.termsAndConditionsUrl, donationCampaign.termsAndConditionsUrl); + return Objects.equals(this.amounts, donationCampaign.amounts) + && Objects.equals(this.bannerUrl, donationCampaign.bannerUrl) + && Objects.equals(this.campaignName, donationCampaign.campaignName) + && Objects.equals(this.causeName, donationCampaign.causeName) + && Objects.equals(this.donation, donationCampaign.donation) + && Objects.equals(this.id, donationCampaign.id) + && Objects.equals(this.logoUrl, donationCampaign.logoUrl) + && Objects.equals(this.nonprofitDescription, donationCampaign.nonprofitDescription) + && Objects.equals(this.nonprofitName, donationCampaign.nonprofitName) + && Objects.equals(this.nonprofitUrl, donationCampaign.nonprofitUrl) + && Objects.equals(this.termsAndConditionsUrl, donationCampaign.termsAndConditionsUrl); } @Override public int hashCode() { - return Objects.hash(amounts, bannerUrl, campaignName, causeName, donation, id, logoUrl, nonprofitDescription, nonprofitName, nonprofitUrl, termsAndConditionsUrl); + return Objects.hash( + amounts, + bannerUrl, + campaignName, + causeName, + donation, + id, + logoUrl, + nonprofitDescription, + nonprofitName, + nonprofitUrl, + termsAndConditionsUrl); } @Override @@ -473,17 +483,20 @@ public String toString() { sb.append(" donation: ").append(toIndentedString(donation)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" logoUrl: ").append(toIndentedString(logoUrl)).append("\n"); - sb.append(" nonprofitDescription: ").append(toIndentedString(nonprofitDescription)).append("\n"); + sb.append(" nonprofitDescription: ") + .append(toIndentedString(nonprofitDescription)) + .append("\n"); sb.append(" nonprofitName: ").append(toIndentedString(nonprofitName)).append("\n"); sb.append(" nonprofitUrl: ").append(toIndentedString(nonprofitUrl)).append("\n"); - sb.append(" termsAndConditionsUrl: ").append(toIndentedString(termsAndConditionsUrl)).append("\n"); + sb.append(" termsAndConditionsUrl: ") + .append(toIndentedString(termsAndConditionsUrl)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -492,7 +505,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DonationCampaign given an JSON string * * @param jsonString JSON string @@ -502,11 +515,12 @@ private String toIndentedString(Object o) { public static DonationCampaign fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DonationCampaign.class); } -/** - * Convert an instance of DonationCampaign to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DonationCampaign to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/DonationCampaignsRequest.java b/src/main/java/com/adyen/model/checkout/DonationCampaignsRequest.java index 4cde81802..001265b8d 100644 --- a/src/main/java/com/adyen/model/checkout/DonationCampaignsRequest.java +++ b/src/main/java/com/adyen/model/checkout/DonationCampaignsRequest.java @@ -2,37 +2,27 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * DonationCampaignsRequest - */ +/** DonationCampaignsRequest */ @JsonPropertyOrder({ DonationCampaignsRequest.JSON_PROPERTY_CURRENCY, DonationCampaignsRequest.JSON_PROPERTY_LOCALE, DonationCampaignsRequest.JSON_PROPERTY_MERCHANT_ACCOUNT }) - public class DonationCampaignsRequest { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -43,13 +33,14 @@ public class DonationCampaignsRequest { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; - public DonationCampaignsRequest() { - } + public DonationCampaignsRequest() {} /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes/). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes/). * @return the current {@code DonationCampaignsRequest} instance, allowing for method chaining */ public DonationCampaignsRequest currency(String currency) { @@ -58,8 +49,11 @@ public DonationCampaignsRequest currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes/). + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes/). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,9 +62,11 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes/). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes/). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -91,6 +87,7 @@ public DonationCampaignsRequest locale(String locale) { /** * Locale on the shopper interaction device. + * * @return locale Locale on the shopper interaction device. */ @JsonProperty(JSON_PROPERTY_LOCALE) @@ -123,6 +120,7 @@ public DonationCampaignsRequest merchantAccount(String merchantAccount) { /** * Your merchant account identifier. + * * @return merchantAccount Your merchant account identifier. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -142,9 +140,7 @@ public void setMerchantAccount(String merchantAccount) { this.merchantAccount = merchantAccount; } - /** - * Return true if this DonationCampaignsRequest object is equal to o. - */ + /** Return true if this DonationCampaignsRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +150,9 @@ public boolean equals(Object o) { return false; } DonationCampaignsRequest donationCampaignsRequest = (DonationCampaignsRequest) o; - return Objects.equals(this.currency, donationCampaignsRequest.currency) && - Objects.equals(this.locale, donationCampaignsRequest.locale) && - Objects.equals(this.merchantAccount, donationCampaignsRequest.merchantAccount); + return Objects.equals(this.currency, donationCampaignsRequest.currency) + && Objects.equals(this.locale, donationCampaignsRequest.locale) + && Objects.equals(this.merchantAccount, donationCampaignsRequest.merchantAccount); } @Override @@ -176,8 +172,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +181,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DonationCampaignsRequest given an JSON string * * @param jsonString JSON string * @return An instance of DonationCampaignsRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to DonationCampaignsRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DonationCampaignsRequest */ - public static DonationCampaignsRequest fromJson(String jsonString) throws JsonProcessingException { + public static DonationCampaignsRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DonationCampaignsRequest.class); } -/** - * Convert an instance of DonationCampaignsRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DonationCampaignsRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/DonationCampaignsResponse.java b/src/main/java/com/adyen/model/checkout/DonationCampaignsResponse.java index c24cf5a1a..0bb1ff92c 100644 --- a/src/main/java/com/adyen/model/checkout/DonationCampaignsResponse.java +++ b/src/main/java/com/adyen/model/checkout/DonationCampaignsResponse.java @@ -2,44 +2,30 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.DonationCampaign; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * DonationCampaignsResponse - */ -@JsonPropertyOrder({ - DonationCampaignsResponse.JSON_PROPERTY_DONATION_CAMPAIGNS -}) - +/** DonationCampaignsResponse */ +@JsonPropertyOrder({DonationCampaignsResponse.JSON_PROPERTY_DONATION_CAMPAIGNS}) public class DonationCampaignsResponse { public static final String JSON_PROPERTY_DONATION_CAMPAIGNS = "donationCampaigns"; private List donationCampaigns; - public DonationCampaignsResponse() { - } + public DonationCampaignsResponse() {} /** * List of active donation campaigns for your merchant account. @@ -52,7 +38,8 @@ public DonationCampaignsResponse donationCampaigns(List donati return this; } - public DonationCampaignsResponse addDonationCampaignsItem(DonationCampaign donationCampaignsItem) { + public DonationCampaignsResponse addDonationCampaignsItem( + DonationCampaign donationCampaignsItem) { if (this.donationCampaigns == null) { this.donationCampaigns = new ArrayList<>(); } @@ -62,6 +49,7 @@ public DonationCampaignsResponse addDonationCampaignsItem(DonationCampaign donat /** * List of active donation campaigns for your merchant account. + * * @return donationCampaigns List of active donation campaigns for your merchant account. */ @JsonProperty(JSON_PROPERTY_DONATION_CAMPAIGNS) @@ -81,9 +69,7 @@ public void setDonationCampaigns(List donationCampaigns) { this.donationCampaigns = donationCampaigns; } - /** - * Return true if this DonationCampaignsResponse object is equal to o. - */ + /** Return true if this DonationCampaignsResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -111,8 +97,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -121,21 +106,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DonationCampaignsResponse given an JSON string * * @param jsonString JSON string * @return An instance of DonationCampaignsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to DonationCampaignsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DonationCampaignsResponse */ - public static DonationCampaignsResponse fromJson(String jsonString) throws JsonProcessingException { + public static DonationCampaignsResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DonationCampaignsResponse.class); } -/** - * Convert an instance of DonationCampaignsResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DonationCampaignsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/DonationPaymentMethod.java b/src/main/java/com/adyen/model/checkout/DonationPaymentMethod.java index c3d0cd4f0..6eafdf5a2 100644 --- a/src/main/java/com/adyen/model/checkout/DonationPaymentMethod.java +++ b/src/main/java/com/adyen/model/checkout/DonationPaymentMethod.java @@ -2,48 +2,19 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.ApplePayDonations; -import com.adyen.model.checkout.CardDonations; -import com.adyen.model.checkout.GooglePayDonations; -import com.adyen.model.checkout.IdealDonations; -import com.adyen.model.checkout.PayWithGoogleDonations; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -import com.fasterxml.jackson.core.type.TypeReference; - -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.core.Response; -import java.io.IOException; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; - import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -53,355 +24,373 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; - +import jakarta.ws.rs.core.GenericType; +import java.io.IOException; +import java.util.*; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.logging.Level; +import java.util.logging.Logger; @JsonDeserialize(using = DonationPaymentMethod.DonationPaymentMethodDeserializer.class) @JsonSerialize(using = DonationPaymentMethod.DonationPaymentMethodSerializer.class) public class DonationPaymentMethod extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(DonationPaymentMethod.class.getName()); - - public static class DonationPaymentMethodSerializer extends StdSerializer { - public DonationPaymentMethodSerializer(Class t) { - super(t); - } - - public DonationPaymentMethodSerializer() { - this(null); - } - - @Override - public void serialize(DonationPaymentMethod value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class DonationPaymentMethodDeserializer extends StdDeserializer { - public DonationPaymentMethodDeserializer() { - this(DonationPaymentMethod.class); - } - - public DonationPaymentMethodDeserializer(Class vc) { - super(vc); - } - - @Override - public DonationPaymentMethod deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize ApplePayDonations - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(ApplePayDonations.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(ApplePayDonations.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'ApplePayDonations'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'ApplePayDonations'", e); - } - - // deserialize CardDonations - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(CardDonations.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CardDonations.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CardDonations'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CardDonations'", e); - } - - // deserialize GooglePayDonations - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(GooglePayDonations.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(GooglePayDonations.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'GooglePayDonations'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'GooglePayDonations'", e); - } - - // deserialize IdealDonations - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(IdealDonations.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(IdealDonations.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'IdealDonations'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'IdealDonations'", e); - } - - // deserialize PayWithGoogleDonations - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(PayWithGoogleDonations.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PayWithGoogleDonations.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PayWithGoogleDonations'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PayWithGoogleDonations'", e); - } - - if (match == 1) { - DonationPaymentMethod ret = new DonationPaymentMethod(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException(String.format("Failed deserialization for DonationPaymentMethod: %d classes match result, expected 1", match)); - } - - /** - * Handle deserialization of the 'null' value. - */ - @Override - public DonationPaymentMethod getNullValue(DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "DonationPaymentMethod cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public DonationPaymentMethod() { - super("oneOf", Boolean.FALSE); - } - - public DonationPaymentMethod(ApplePayDonations o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } + private static final Logger log = Logger.getLogger(DonationPaymentMethod.class.getName()); - public DonationPaymentMethod(CardDonations o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + public static class DonationPaymentMethodSerializer extends StdSerializer { + public DonationPaymentMethodSerializer(Class t) { + super(t); } - public DonationPaymentMethod(GooglePayDonations o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + public DonationPaymentMethodSerializer() { + this(null); } - public DonationPaymentMethod(IdealDonations o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public DonationPaymentMethod(PayWithGoogleDonations o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + @Override + public void serialize( + DonationPaymentMethod value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); } + } - static { - schemas.put("ApplePayDonations", new GenericType() { - }); - schemas.put("CardDonations", new GenericType() { - }); - schemas.put("GooglePayDonations", new GenericType() { - }); - schemas.put("IdealDonations", new GenericType() { - }); - schemas.put("PayWithGoogleDonations", new GenericType() { - }); - JSON.registerDescendants(DonationPaymentMethod.class, Collections.unmodifiableMap(schemas)); + public static class DonationPaymentMethodDeserializer + extends StdDeserializer { + public DonationPaymentMethodDeserializer() { + this(DonationPaymentMethod.class); } - @Override - public Map> getSchemas() { - return DonationPaymentMethod.schemas; + public DonationPaymentMethodDeserializer(Class vc) { + super(vc); } - /** - * Set the instance that matches the oneOf child schema, check - * the instance parameter is valid against the oneOf child schemas: - * ApplePayDonations, CardDonations, GooglePayDonations, IdealDonations, PayWithGoogleDonations - * - * It could be an instance of the 'oneOf' schemas. - * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). - */ @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(ApplePayDonations.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + public DonationPaymentMethod deserialize(JsonParser jp, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize ApplePayDonations + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(ApplePayDonations.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(ApplePayDonations.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'ApplePayDonations'"); + } } - - if (JSON.isInstanceOf(CardDonations.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'ApplePayDonations'", e); + } + + // deserialize CardDonations + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(CardDonations.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CardDonations.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CardDonations'"); + } } - - if (JSON.isInstanceOf(GooglePayDonations.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CardDonations'", e); + } + + // deserialize GooglePayDonations + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(GooglePayDonations.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(GooglePayDonations.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'GooglePayDonations'"); + } } - - if (JSON.isInstanceOf(IdealDonations.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'GooglePayDonations'", e); + } + + // deserialize IdealDonations + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(IdealDonations.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(IdealDonations.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'IdealDonations'"); + } } - - if (JSON.isInstanceOf(PayWithGoogleDonations.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'IdealDonations'", e); + } + + // deserialize PayWithGoogleDonations + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(PayWithGoogleDonations.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PayWithGoogleDonations.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PayWithGoogleDonations'"); + } } - - throw new RuntimeException("Invalid instance type. Must be ApplePayDonations, CardDonations, GooglePayDonations, IdealDonations, PayWithGoogleDonations"); + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PayWithGoogleDonations'", e); + } + + if (match == 1) { + DonationPaymentMethod ret = new DonationPaymentMethod(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException( + String.format( + "Failed deserialization for DonationPaymentMethod: %d classes match result, expected 1", + match)); } - /** - * Get the actual instance, which can be the following: - * ApplePayDonations, CardDonations, GooglePayDonations, IdealDonations, PayWithGoogleDonations - * - * @return The actual instance (ApplePayDonations, CardDonations, GooglePayDonations, IdealDonations, PayWithGoogleDonations) - */ + /** Handle deserialization of the 'null' value. */ @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `ApplePayDonations`. If the actual instance is not `ApplePayDonations`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `ApplePayDonations` - * @throws ClassCastException if the instance is not `ApplePayDonations` - */ - public ApplePayDonations getApplePayDonations() throws ClassCastException { - return (ApplePayDonations)super.getActualInstance(); + public DonationPaymentMethod getNullValue(DeserializationContext ctxt) + throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "DonationPaymentMethod cannot be null"); } - - /** - * Get the actual instance of `CardDonations`. If the actual instance is not `CardDonations`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CardDonations` - * @throws ClassCastException if the instance is not `CardDonations` - */ - public CardDonations getCardDonations() throws ClassCastException { - return (CardDonations)super.getActualInstance(); + } + + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public DonationPaymentMethod() { + super("oneOf", Boolean.FALSE); + } + + public DonationPaymentMethod(ApplePayDonations o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public DonationPaymentMethod(CardDonations o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public DonationPaymentMethod(GooglePayDonations o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public DonationPaymentMethod(IdealDonations o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public DonationPaymentMethod(PayWithGoogleDonations o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("ApplePayDonations", new GenericType() {}); + schemas.put("CardDonations", new GenericType() {}); + schemas.put("GooglePayDonations", new GenericType() {}); + schemas.put("IdealDonations", new GenericType() {}); + schemas.put("PayWithGoogleDonations", new GenericType() {}); + JSON.registerDescendants(DonationPaymentMethod.class, Collections.unmodifiableMap(schemas)); + } + + @Override + public Map> getSchemas() { + return DonationPaymentMethod.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check the instance parameter is valid + * against the oneOf child schemas: ApplePayDonations, CardDonations, GooglePayDonations, + * IdealDonations, PayWithGoogleDonations + * + *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a + * composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(ApplePayDonations.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `GooglePayDonations`. If the actual instance is not `GooglePayDonations`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GooglePayDonations` - * @throws ClassCastException if the instance is not `GooglePayDonations` - */ - public GooglePayDonations getGooglePayDonations() throws ClassCastException { - return (GooglePayDonations)super.getActualInstance(); + if (JSON.isInstanceOf(CardDonations.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `IdealDonations`. If the actual instance is not `IdealDonations`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `IdealDonations` - * @throws ClassCastException if the instance is not `IdealDonations` - */ - public IdealDonations getIdealDonations() throws ClassCastException { - return (IdealDonations)super.getActualInstance(); + if (JSON.isInstanceOf(GooglePayDonations.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `PayWithGoogleDonations`. If the actual instance is not `PayWithGoogleDonations`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PayWithGoogleDonations` - * @throws ClassCastException if the instance is not `PayWithGoogleDonations` - */ - public PayWithGoogleDonations getPayWithGoogleDonations() throws ClassCastException { - return (PayWithGoogleDonations)super.getActualInstance(); - } - - - /** - * Create an instance of DonationPaymentMethod given an JSON string - * - * @param jsonString JSON string - * @return An instance of DonationPaymentMethod - * @throws IOException if the JSON string is invalid with respect to DonationPaymentMethod - */ - public static DonationPaymentMethod fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, DonationPaymentMethod.class); + if (JSON.isInstanceOf(IdealDonations.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Convert an instance of DonationPaymentMethod to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); + if (JSON.isInstanceOf(PayWithGoogleDonations.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } + throw new RuntimeException( + "Invalid instance type. Must be ApplePayDonations, CardDonations, GooglePayDonations, IdealDonations, PayWithGoogleDonations"); + } + + /** + * Get the actual instance, which can be the following: ApplePayDonations, CardDonations, + * GooglePayDonations, IdealDonations, PayWithGoogleDonations + * + * @return The actual instance (ApplePayDonations, CardDonations, GooglePayDonations, + * IdealDonations, PayWithGoogleDonations) + */ + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `ApplePayDonations`. If the actual instance is not + * `ApplePayDonations`, the ClassCastException will be thrown. + * + * @return The actual instance of `ApplePayDonations` + * @throws ClassCastException if the instance is not `ApplePayDonations` + */ + public ApplePayDonations getApplePayDonations() throws ClassCastException { + return (ApplePayDonations) super.getActualInstance(); + } + + /** + * Get the actual instance of `CardDonations`. If the actual instance is not `CardDonations`, the + * ClassCastException will be thrown. + * + * @return The actual instance of `CardDonations` + * @throws ClassCastException if the instance is not `CardDonations` + */ + public CardDonations getCardDonations() throws ClassCastException { + return (CardDonations) super.getActualInstance(); + } + + /** + * Get the actual instance of `GooglePayDonations`. If the actual instance is not + * `GooglePayDonations`, the ClassCastException will be thrown. + * + * @return The actual instance of `GooglePayDonations` + * @throws ClassCastException if the instance is not `GooglePayDonations` + */ + public GooglePayDonations getGooglePayDonations() throws ClassCastException { + return (GooglePayDonations) super.getActualInstance(); + } + + /** + * Get the actual instance of `IdealDonations`. If the actual instance is not `IdealDonations`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `IdealDonations` + * @throws ClassCastException if the instance is not `IdealDonations` + */ + public IdealDonations getIdealDonations() throws ClassCastException { + return (IdealDonations) super.getActualInstance(); + } + + /** + * Get the actual instance of `PayWithGoogleDonations`. If the actual instance is not + * `PayWithGoogleDonations`, the ClassCastException will be thrown. + * + * @return The actual instance of `PayWithGoogleDonations` + * @throws ClassCastException if the instance is not `PayWithGoogleDonations` + */ + public PayWithGoogleDonations getPayWithGoogleDonations() throws ClassCastException { + return (PayWithGoogleDonations) super.getActualInstance(); + } + + /** + * Create an instance of DonationPaymentMethod given an JSON string + * + * @param jsonString JSON string + * @return An instance of DonationPaymentMethod + * @throws IOException if the JSON string is invalid with respect to DonationPaymentMethod + */ + public static DonationPaymentMethod fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, DonationPaymentMethod.class); + } + + /** + * Convert an instance of DonationPaymentMethod to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } } diff --git a/src/main/java/com/adyen/model/checkout/DonationPaymentRequest.java b/src/main/java/com/adyen/model/checkout/DonationPaymentRequest.java index 5320cd1ef..d54f3dc88 100644 --- a/src/main/java/com/adyen/model/checkout/DonationPaymentRequest.java +++ b/src/main/java/com/adyen/model/checkout/DonationPaymentRequest.java @@ -2,49 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.AccountInfo; -import com.adyen.model.checkout.Amount; -import com.adyen.model.checkout.ApplicationInfo; -import com.adyen.model.checkout.AuthenticationData; -import com.adyen.model.checkout.BillingAddress; -import com.adyen.model.checkout.BrowserInfo; -import com.adyen.model.checkout.DeliveryAddress; -import com.adyen.model.checkout.DonationPaymentMethod; -import com.adyen.model.checkout.LineItem; -import com.adyen.model.checkout.MerchantRiskIndicator; -import com.adyen.model.checkout.Name; -import com.adyen.model.checkout.ThreeDS2RequestFields; -import com.adyen.model.checkout.ThreeDSecureData; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * DonationPaymentRequest - */ +/** DonationPaymentRequest */ @JsonPropertyOrder({ DonationPaymentRequest.JSON_PROPERTY_ACCOUNT_INFO, DonationPaymentRequest.JSON_PROPERTY_ADDITIONAL_DATA, @@ -89,7 +71,6 @@ DonationPaymentRequest.JSON_PROPERTY_THREE_D_S2_REQUEST_DATA, DonationPaymentRequest.JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY }) - public class DonationPaymentRequest { public static final String JSON_PROPERTY_ACCOUNT_INFO = "accountInfo"; private AccountInfo accountInfo; @@ -113,10 +94,12 @@ public class DonationPaymentRequest { private BrowserInfo browserInfo; /** - * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web + * The platform where a payment transaction takes place. This field is optional for filtering out + * payment methods that are only available on specific platforms. If this value is not set, then + * we will try to infer it from the `sdkVersion` or `token`. Possible values: + * * iOS * Android * Web */ public enum ChannelEnum { - IOS(String.valueOf("iOS")), ANDROID(String.valueOf("Android")), @@ -128,7 +111,7 @@ public enum ChannelEnum { private String value; ChannelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -149,7 +132,11 @@ public static ChannelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ChannelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChannelEnum.values())); + LOG.warning( + "ChannelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ChannelEnum.values())); return null; } } @@ -185,7 +172,8 @@ public static ChannelEnum fromValue(String value) { public static final String JSON_PROPERTY_DONATION_CAMPAIGN_ID = "donationCampaignId"; private String donationCampaignId; - public static final String JSON_PROPERTY_DONATION_ORIGINAL_PSP_REFERENCE = "donationOriginalPspReference"; + public static final String JSON_PROPERTY_DONATION_ORIGINAL_PSP_REFERENCE = + "donationOriginalPspReference"; private String donationOriginalPspReference; public static final String JSON_PROPERTY_DONATION_TOKEN = "donationToken"; @@ -213,22 +201,30 @@ public static ChannelEnum fromValue(String value) { private DonationPaymentMethod paymentMethod; /** - * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or + * using stored payment details. Allowed values: * `Subscription` – A transaction for a + * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a + * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – + * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. */ public enum RecurringProcessingModelEnum { - CARDONFILE(String.valueOf("CardOnFile")), SUBSCRIPTION(String.valueOf("Subscription")), UNSCHEDULEDCARDONFILE(String.valueOf("UnscheduledCardOnFile")); - private static final Logger LOG = Logger.getLogger(RecurringProcessingModelEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(RecurringProcessingModelEnum.class.getName()); private String value; RecurringProcessingModelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -249,7 +245,11 @@ public static RecurringProcessingModelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("RecurringProcessingModelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RecurringProcessingModelEnum.values())); + LOG.warning( + "RecurringProcessingModelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(RecurringProcessingModelEnum.values())); return null; } } @@ -279,10 +279,19 @@ public static RecurringProcessingModelEnum fromValue(String value) { private String shopperIP; /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorization rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorization (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorization rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorization (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. */ public enum ShopperInteractionEnum { - ECOMMERCE(String.valueOf("Ecommerce")), CONTAUTH(String.valueOf("ContAuth")), @@ -296,7 +305,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -317,7 +326,11 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning( + "ShopperInteractionEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -343,17 +356,18 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S2_REQUEST_DATA = "threeDS2RequestData"; private ThreeDS2RequestFields threeDS2RequestData; - public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = "threeDSAuthenticationOnly"; - @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. + public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = + "threeDSAuthenticationOnly"; + @Deprecated // deprecated since Adyen Checkout API v69: Use + // `authenticationData.authenticationOnly` instead. private Boolean threeDSAuthenticationOnly; - public DonationPaymentRequest() { - } + public DonationPaymentRequest() {} /** * accountInfo * - * @param accountInfo + * @param accountInfo * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest accountInfo(AccountInfo accountInfo) { @@ -363,7 +377,8 @@ public DonationPaymentRequest accountInfo(AccountInfo accountInfo) { /** * Get accountInfo - * @return accountInfo + * + * @return accountInfo */ @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -374,7 +389,7 @@ public AccountInfo getAccountInfo() { /** * accountInfo * - * @param accountInfo + * @param accountInfo */ @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -383,9 +398,13 @@ public void setAccountInfo(AccountInfo accountInfo) { } /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. + * The `additionalData` object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a + * particular payment request. The `additionalData` object consists of entries, each + * of which includes the key and value. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest additionalData(Map additionalData) { @@ -402,8 +421,13 @@ public DonationPaymentRequest putAdditionalDataItem(String key, String additiona } /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. - * @return additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. + * The `additionalData` object consists of entries, each of which includes the key and + * value. + * + * @return additionalData This field contains additional data, which may be required for a + * particular payment request. The `additionalData` object consists of entries, each + * of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -412,9 +436,13 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. + * The `additionalData` object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a + * particular payment request. The `additionalData` object consists of entries, each + * of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -425,7 +453,7 @@ public void setAdditionalData(Map additionalData) { /** * amount * - * @param amount + * @param amount * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest amount(Amount amount) { @@ -435,7 +463,8 @@ public DonationPaymentRequest amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -446,7 +475,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -457,7 +486,7 @@ public void setAmount(Amount amount) { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest applicationInfo(ApplicationInfo applicationInfo) { @@ -467,7 +496,8 @@ public DonationPaymentRequest applicationInfo(ApplicationInfo applicationInfo) { /** * Get applicationInfo - * @return applicationInfo + * + * @return applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -478,7 +508,7 @@ public ApplicationInfo getApplicationInfo() { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -489,7 +519,7 @@ public void setApplicationInfo(ApplicationInfo applicationInfo) { /** * authenticationData * - * @param authenticationData + * @param authenticationData * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest authenticationData(AuthenticationData authenticationData) { @@ -499,7 +529,8 @@ public DonationPaymentRequest authenticationData(AuthenticationData authenticati /** * Get authenticationData - * @return authenticationData + * + * @return authenticationData */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -510,7 +541,7 @@ public AuthenticationData getAuthenticationData() { /** * authenticationData * - * @param authenticationData + * @param authenticationData */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -521,7 +552,7 @@ public void setAuthenticationData(AuthenticationData authenticationData) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest billingAddress(BillingAddress billingAddress) { @@ -531,7 +562,8 @@ public DonationPaymentRequest billingAddress(BillingAddress billingAddress) { /** * Get billingAddress - * @return billingAddress + * + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -542,7 +574,7 @@ public BillingAddress getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -553,7 +585,7 @@ public void setBillingAddress(BillingAddress billingAddress) { /** * browserInfo * - * @param browserInfo + * @param browserInfo * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest browserInfo(BrowserInfo browserInfo) { @@ -563,7 +595,8 @@ public DonationPaymentRequest browserInfo(BrowserInfo browserInfo) { /** * Get browserInfo - * @return browserInfo + * + * @return browserInfo */ @JsonProperty(JSON_PROPERTY_BROWSER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -574,7 +607,7 @@ public BrowserInfo getBrowserInfo() { /** * browserInfo * - * @param browserInfo + * @param browserInfo */ @JsonProperty(JSON_PROPERTY_BROWSER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -583,9 +616,15 @@ public void setBrowserInfo(BrowserInfo browserInfo) { } /** - * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web + * The platform where a payment transaction takes place. This field is optional for filtering out + * payment methods that are only available on specific platforms. If this value is not set, then + * we will try to infer it from the `sdkVersion` or `token`. Possible values: + * * iOS * Android * Web * - * @param channel The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web + * @param channel The platform where a payment transaction takes place. This field is optional for + * filtering out payment methods that are only available on specific platforms. If this value + * is not set, then we will try to infer it from the `sdkVersion` or + * `token`. Possible values: * iOS * Android * Web * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest channel(ChannelEnum channel) { @@ -594,8 +633,15 @@ public DonationPaymentRequest channel(ChannelEnum channel) { } /** - * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web - * @return channel The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web + * The platform where a payment transaction takes place. This field is optional for filtering out + * payment methods that are only available on specific platforms. If this value is not set, then + * we will try to infer it from the `sdkVersion` or `token`. Possible values: + * * iOS * Android * Web + * + * @return channel The platform where a payment transaction takes place. This field is optional + * for filtering out payment methods that are only available on specific platforms. If this + * value is not set, then we will try to infer it from the `sdkVersion` or + * `token`. Possible values: * iOS * Android * Web */ @JsonProperty(JSON_PROPERTY_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -604,9 +650,15 @@ public ChannelEnum getChannel() { } /** - * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web + * The platform where a payment transaction takes place. This field is optional for filtering out + * payment methods that are only available on specific platforms. If this value is not set, then + * we will try to infer it from the `sdkVersion` or `token`. Possible values: + * * iOS * Android * Web * - * @param channel The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web + * @param channel The platform where a payment transaction takes place. This field is optional for + * filtering out payment methods that are only available on specific platforms. If this value + * is not set, then we will try to infer it from the `sdkVersion` or + * `token`. Possible values: * iOS * Android * Web */ @JsonProperty(JSON_PROPERTY_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -615,9 +667,11 @@ public void setChannel(ChannelEnum channel) { } /** - * Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user payment journey. + * Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user + * payment journey. * - * @param checkoutAttemptId Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user payment journey. + * @param checkoutAttemptId Checkout attempt ID that corresponds to the Id generated by the client + * SDK for tracking user payment journey. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest checkoutAttemptId(String checkoutAttemptId) { @@ -626,8 +680,11 @@ public DonationPaymentRequest checkoutAttemptId(String checkoutAttemptId) { } /** - * Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user payment journey. - * @return checkoutAttemptId Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user payment journey. + * Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user + * payment journey. + * + * @return checkoutAttemptId Checkout attempt ID that corresponds to the Id generated by the + * client SDK for tracking user payment journey. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -636,9 +693,11 @@ public String getCheckoutAttemptId() { } /** - * Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user payment journey. + * Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user + * payment journey. * - * @param checkoutAttemptId Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user payment journey. + * @param checkoutAttemptId Checkout attempt ID that corresponds to the Id generated by the client + * SDK for tracking user payment journey. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -647,13 +706,13 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey. + * Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment + * journey. * - * @param conversionId Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey. + * @param conversionId Conversion ID that corresponds to the Id generated by the client SDK for + * tracking user payment journey. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v68 - * Use `checkoutAttemptId` instead + * @deprecated since Adyen Checkout API v68 Use `checkoutAttemptId` instead */ @Deprecated // deprecated since Adyen Checkout API v68: Use `checkoutAttemptId` instead public DonationPaymentRequest conversionId(String conversionId) { @@ -662,8 +721,11 @@ public DonationPaymentRequest conversionId(String conversionId) { } /** - * Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey. - * @return conversionId Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey. + * Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment + * journey. + * + * @return conversionId Conversion ID that corresponds to the Id generated by the client SDK for + * tracking user payment journey. * @deprecated // deprecated since Adyen Checkout API v68: Use `checkoutAttemptId` instead */ @Deprecated // deprecated since Adyen Checkout API v68: Use `checkoutAttemptId` instead @@ -674,12 +736,12 @@ public String getConversionId() { } /** - * Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey. - * - * @param conversionId Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey. + * Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment + * journey. * - * @deprecated since Adyen Checkout API v68 - * Use `checkoutAttemptId` instead + * @param conversionId Conversion ID that corresponds to the Id generated by the client SDK for + * tracking user payment journey. + * @deprecated since Adyen Checkout API v68 Use `checkoutAttemptId` instead */ @Deprecated // deprecated since Adyen Checkout API v68: Use `checkoutAttemptId` instead @JsonProperty(JSON_PROPERTY_CONVERSION_ID) @@ -689,9 +751,11 @@ public void setConversionId(String conversionId) { } /** - * The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * The shopper country. Format: [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE * - * @param countryCode The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * @param countryCode The shopper country. Format: [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest countryCode(String countryCode) { @@ -700,8 +764,11 @@ public DonationPaymentRequest countryCode(String countryCode) { } /** - * The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE - * @return countryCode The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * The shopper country. Format: [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * + * @return countryCode The shopper country. Format: [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -710,9 +777,11 @@ public String getCountryCode() { } /** - * The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * The shopper country. Format: [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE * - * @param countryCode The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * @param countryCode The shopper country. Format: [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -721,9 +790,11 @@ public void setCountryCode(String countryCode) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): + * YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest dateOfBirth(OffsetDateTime dateOfBirth) { @@ -732,8 +803,11 @@ public DonationPaymentRequest dateOfBirth(OffsetDateTime dateOfBirth) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD - * @return dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): + * YYYY-MM-DD + * + * @return dateOfBirth The shopper's date of birth. Format + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -742,9 +816,11 @@ public OffsetDateTime getDateOfBirth() { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): + * YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -753,9 +829,13 @@ public void setDateOfBirth(OffsetDateTime dateOfBirth) { } /** - * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 * - * @param deliverAt The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * @param deliverAt The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest deliverAt(OffsetDateTime deliverAt) { @@ -764,8 +844,13 @@ public DonationPaymentRequest deliverAt(OffsetDateTime deliverAt) { } /** - * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 - * @return deliverAt The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 + * + * @return deliverAt The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 */ @JsonProperty(JSON_PROPERTY_DELIVER_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -774,9 +859,13 @@ public OffsetDateTime getDeliverAt() { } /** - * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 * - * @param deliverAt The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * @param deliverAt The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 */ @JsonProperty(JSON_PROPERTY_DELIVER_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -787,7 +876,7 @@ public void setDeliverAt(OffsetDateTime deliverAt) { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest deliveryAddress(DeliveryAddress deliveryAddress) { @@ -797,7 +886,8 @@ public DonationPaymentRequest deliveryAddress(DeliveryAddress deliveryAddress) { /** * Get deliveryAddress - * @return deliveryAddress + * + * @return deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -808,7 +898,7 @@ public DeliveryAddress getDeliveryAddress() { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -817,9 +907,12 @@ public void setDeliveryAddress(DeliveryAddress deliveryAddress) { } /** - * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to + * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * - * @param deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @param deviceFingerprint A string containing the shopper's device fingerprint. For more + * information, refer to [Device + * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest deviceFingerprint(String deviceFingerprint) { @@ -828,8 +921,12 @@ public DonationPaymentRequest deviceFingerprint(String deviceFingerprint) { } /** - * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). - * @return deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to + * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * + * @return deviceFingerprint A string containing the shopper's device fingerprint. For more + * information, refer to [Device + * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -838,9 +935,12 @@ public String getDeviceFingerprint() { } /** - * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to + * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * - * @param deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @param deviceFingerprint A string containing the shopper's device fingerprint. For more + * information, refer to [Device + * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -861,6 +961,7 @@ public DonationPaymentRequest donationAccount(String donationAccount) { /** * Donation account to which the transaction is credited. + * * @return donationAccount Donation account to which the transaction is credited. */ @JsonProperty(JSON_PROPERTY_DONATION_ACCOUNT) @@ -883,7 +984,8 @@ public void setDonationAccount(String donationAccount) { /** * The donation campaign ID received in the `/donationCampaigns` call. * - * @param donationCampaignId The donation campaign ID received in the `/donationCampaigns` call. + * @param donationCampaignId The donation campaign ID received in the + * `/donationCampaigns` call. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest donationCampaignId(String donationCampaignId) { @@ -893,7 +995,9 @@ public DonationPaymentRequest donationCampaignId(String donationCampaignId) { /** * The donation campaign ID received in the `/donationCampaigns` call. - * @return donationCampaignId The donation campaign ID received in the `/donationCampaigns` call. + * + * @return donationCampaignId The donation campaign ID received in the + * `/donationCampaigns` call. */ @JsonProperty(JSON_PROPERTY_DONATION_CAMPAIGN_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -904,7 +1008,8 @@ public String getDonationCampaignId() { /** * The donation campaign ID received in the `/donationCampaigns` call. * - * @param donationCampaignId The donation campaign ID received in the `/donationCampaigns` call. + * @param donationCampaignId The donation campaign ID received in the + * `/donationCampaigns` call. */ @JsonProperty(JSON_PROPERTY_DONATION_CAMPAIGN_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -913,9 +1018,11 @@ public void setDonationCampaignId(String donationCampaignId) { } /** - * PSP reference of the transaction from which the donation token is generated. Required when `donationToken` is provided. + * PSP reference of the transaction from which the donation token is generated. Required when + * `donationToken` is provided. * - * @param donationOriginalPspReference PSP reference of the transaction from which the donation token is generated. Required when `donationToken` is provided. + * @param donationOriginalPspReference PSP reference of the transaction from which the donation + * token is generated. Required when `donationToken` is provided. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest donationOriginalPspReference(String donationOriginalPspReference) { @@ -924,8 +1031,11 @@ public DonationPaymentRequest donationOriginalPspReference(String donationOrigin } /** - * PSP reference of the transaction from which the donation token is generated. Required when `donationToken` is provided. - * @return donationOriginalPspReference PSP reference of the transaction from which the donation token is generated. Required when `donationToken` is provided. + * PSP reference of the transaction from which the donation token is generated. Required when + * `donationToken` is provided. + * + * @return donationOriginalPspReference PSP reference of the transaction from which the donation + * token is generated. Required when `donationToken` is provided. */ @JsonProperty(JSON_PROPERTY_DONATION_ORIGINAL_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -934,9 +1044,11 @@ public String getDonationOriginalPspReference() { } /** - * PSP reference of the transaction from which the donation token is generated. Required when `donationToken` is provided. + * PSP reference of the transaction from which the donation token is generated. Required when + * `donationToken` is provided. * - * @param donationOriginalPspReference PSP reference of the transaction from which the donation token is generated. Required when `donationToken` is provided. + * @param donationOriginalPspReference PSP reference of the transaction from which the donation + * token is generated. Required when `donationToken` is provided. */ @JsonProperty(JSON_PROPERTY_DONATION_ORIGINAL_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -957,6 +1069,7 @@ public DonationPaymentRequest donationToken(String donationToken) { /** * Donation token received in the `/payments` call. + * * @return donationToken Donation token received in the `/payments` call. */ @JsonProperty(JSON_PROPERTY_DONATION_TOKEN) @@ -977,9 +1090,13 @@ public void setDonationToken(String donationToken) { } /** - * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to + * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, + * Ratepay, and Riverty. * - * @param lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * @param lineItems Price and product information about the purchased items, to be included on the + * invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, + * Clearpay, Klarna, Ratepay, and Riverty. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest lineItems(List lineItems) { @@ -996,8 +1113,13 @@ public DonationPaymentRequest addLineItemsItem(LineItem lineItemsItem) { } /** - * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. - * @return lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to + * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, + * Ratepay, and Riverty. + * + * @return lineItems Price and product information about the purchased items, to be included on + * the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, + * Afterpay, Clearpay, Klarna, Ratepay, and Riverty. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1006,9 +1128,13 @@ public List getLineItems() { } /** - * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to + * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, + * Ratepay, and Riverty. * - * @param lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * @param lineItems Price and product information about the purchased items, to be included on the + * invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, + * Clearpay, Klarna, Ratepay, and Riverty. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1019,7 +1145,8 @@ public void setLineItems(List lineItems) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest merchantAccount(String merchantAccount) { @@ -1029,7 +1156,9 @@ public DonationPaymentRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * @return merchantAccount The merchant account identifier, with which you want to process the transaction. + * + * @return merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1040,7 +1169,8 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1051,7 +1181,7 @@ public void setMerchantAccount(String merchantAccount) { /** * merchantRiskIndicator * - * @param merchantRiskIndicator + * @param merchantRiskIndicator * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest merchantRiskIndicator(MerchantRiskIndicator merchantRiskIndicator) { @@ -1061,7 +1191,8 @@ public DonationPaymentRequest merchantRiskIndicator(MerchantRiskIndicator mercha /** * Get merchantRiskIndicator - * @return merchantRiskIndicator + * + * @return merchantRiskIndicator */ @JsonProperty(JSON_PROPERTY_MERCHANT_RISK_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1072,7 +1203,7 @@ public MerchantRiskIndicator getMerchantRiskIndicator() { /** * merchantRiskIndicator * - * @param merchantRiskIndicator + * @param merchantRiskIndicator */ @JsonProperty(JSON_PROPERTY_MERCHANT_RISK_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1081,9 +1212,15 @@ public void setMerchantRiskIndicator(MerchantRiskIndicator merchantRiskIndicator } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 + * key-value pairs per request. When exceeding, the \"177\" error occurs: + * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 + * characters per value. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: + * * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error + * occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * + * Maximum 80 characters per value. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest metadata(Map metadata) { @@ -1100,8 +1237,15 @@ public DonationPaymentRequest putMetadataItem(String key, String metadataItem) { } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. - * @return metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 + * key-value pairs per request. When exceeding, the \"177\" error occurs: + * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 + * characters per value. + * + * @return metadata Metadata consists of entries, each of which includes a key and a value. + * Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" + * error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * + * Maximum 80 characters per value. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1110,9 +1254,15 @@ public Map getMetadata() { } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 + * key-value pairs per request. When exceeding, the \"177\" error occurs: + * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 + * characters per value. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: + * * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error + * occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * + * Maximum 80 characters per value. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1123,7 +1273,7 @@ public void setMetadata(Map metadata) { /** * mpiData * - * @param mpiData + * @param mpiData * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest mpiData(ThreeDSecureData mpiData) { @@ -1133,7 +1283,8 @@ public DonationPaymentRequest mpiData(ThreeDSecureData mpiData) { /** * Get mpiData - * @return mpiData + * + * @return mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1144,7 +1295,7 @@ public ThreeDSecureData getMpiData() { /** * mpiData * - * @param mpiData + * @param mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1153,9 +1304,13 @@ public void setMpiData(ThreeDSecureData mpiData) { } /** - * > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this to the origin URL of the page where you are rendering the Drop-in/Component. Do not include subdirectories and a trailing slash. + * > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this + * to the origin URL of the page where you are rendering the Drop-in/Component. Do not include + * subdirectories and a trailing slash. * - * @param origin > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this to the origin URL of the page where you are rendering the Drop-in/Component. Do not include subdirectories and a trailing slash. + * @param origin > Required for browser-based (`channel` **Web**) 3D Secure 2 + * transactions.Set this to the origin URL of the page where you are rendering the + * Drop-in/Component. Do not include subdirectories and a trailing slash. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest origin(String origin) { @@ -1164,8 +1319,13 @@ public DonationPaymentRequest origin(String origin) { } /** - * > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this to the origin URL of the page where you are rendering the Drop-in/Component. Do not include subdirectories and a trailing slash. - * @return origin > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this to the origin URL of the page where you are rendering the Drop-in/Component. Do not include subdirectories and a trailing slash. + * > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this + * to the origin URL of the page where you are rendering the Drop-in/Component. Do not include + * subdirectories and a trailing slash. + * + * @return origin > Required for browser-based (`channel` **Web**) 3D Secure 2 + * transactions.Set this to the origin URL of the page where you are rendering the + * Drop-in/Component. Do not include subdirectories and a trailing slash. */ @JsonProperty(JSON_PROPERTY_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1174,9 +1334,13 @@ public String getOrigin() { } /** - * > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this to the origin URL of the page where you are rendering the Drop-in/Component. Do not include subdirectories and a trailing slash. + * > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this + * to the origin URL of the page where you are rendering the Drop-in/Component. Do not include + * subdirectories and a trailing slash. * - * @param origin > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this to the origin URL of the page where you are rendering the Drop-in/Component. Do not include subdirectories and a trailing slash. + * @param origin > Required for browser-based (`channel` **Web**) 3D Secure 2 + * transactions.Set this to the origin URL of the page where you are rendering the + * Drop-in/Component. Do not include subdirectories and a trailing slash. */ @JsonProperty(JSON_PROPERTY_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1187,7 +1351,7 @@ public void setOrigin(String origin) { /** * paymentMethod * - * @param paymentMethod + * @param paymentMethod * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest paymentMethod(DonationPaymentMethod paymentMethod) { @@ -1197,7 +1361,8 @@ public DonationPaymentRequest paymentMethod(DonationPaymentMethod paymentMethod) /** * Get paymentMethod - * @return paymentMethod + * + * @return paymentMethod */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1208,7 +1373,7 @@ public DonationPaymentMethod getPaymentMethod() { /** * paymentMethod * - * @param paymentMethod + * @param paymentMethod */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1217,19 +1382,55 @@ public void setPaymentMethod(DonationPaymentMethod paymentMethod) { } /** - * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. - * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or + * using stored payment details. Allowed values: * `Subscription` – A transaction for a + * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a + * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – + * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. + * + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a + * token to store payment details or using stored payment details. Allowed values: * + * `Subscription` – A transaction for a fixed or variable amount, which follows a + * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card + * details are stored to enable one-click or omnichannel journeys, or simply to streamline the + * checkout process. Any subscription not following a fixed schedule is also considered a + * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file + * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have + * variable amounts. For example, automatic top-ups when a cardholder's balance drops + * below a certain amount. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ - public DonationPaymentRequest recurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) { + public DonationPaymentRequest recurringProcessingModel( + RecurringProcessingModelEnum recurringProcessingModel) { this.recurringProcessingModel = recurringProcessingModel; return this; } /** - * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. - * @return recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or + * using stored payment details. Allowed values: * `Subscription` – A transaction for a + * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a + * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – + * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. + * + * @return recurringProcessingModel Defines a recurring payment type. Required when creating a + * token to store payment details or using stored payment details. Allowed values: * + * `Subscription` – A transaction for a fixed or variable amount, which follows a + * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card + * details are stored to enable one-click or omnichannel journeys, or simply to streamline the + * checkout process. Any subscription not following a fixed schedule is also considered a + * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file + * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have + * variable amounts. For example, automatic top-ups when a cardholder's balance drops + * below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1238,9 +1439,26 @@ public RecurringProcessingModelEnum getRecurringProcessingModel() { } /** - * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. - * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or + * using stored payment details. Allowed values: * `Subscription` – A transaction for a + * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a + * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – + * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. + * + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a + * token to store payment details or using stored payment details. Allowed values: * + * `Subscription` – A transaction for a fixed or variable amount, which follows a + * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card + * details are stored to enable one-click or omnichannel journeys, or simply to streamline the + * checkout process. Any subscription not following a fixed schedule is also considered a + * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file + * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have + * variable amounts. For example, automatic top-ups when a cardholder's balance drops + * below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1251,7 +1469,8 @@ public void setRecurringProcessingModel(RecurringProcessingModelEnum recurringPr /** * Specifies the redirect method (GET or POST) when redirecting back from the issuer. * - * @param redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting back from the issuer. + * @param redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting + * back from the issuer. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest redirectFromIssuerMethod(String redirectFromIssuerMethod) { @@ -1261,7 +1480,9 @@ public DonationPaymentRequest redirectFromIssuerMethod(String redirectFromIssuer /** * Specifies the redirect method (GET or POST) when redirecting back from the issuer. - * @return redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting back from the issuer. + * + * @return redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting + * back from the issuer. */ @JsonProperty(JSON_PROPERTY_REDIRECT_FROM_ISSUER_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1272,7 +1493,8 @@ public String getRedirectFromIssuerMethod() { /** * Specifies the redirect method (GET or POST) when redirecting back from the issuer. * - * @param redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting back from the issuer. + * @param redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting + * back from the issuer. */ @JsonProperty(JSON_PROPERTY_REDIRECT_FROM_ISSUER_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1283,7 +1505,8 @@ public void setRedirectFromIssuerMethod(String redirectFromIssuerMethod) { /** * Specifies the redirect method (GET or POST) when redirecting to the issuer. * - * @param redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to the issuer. + * @param redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to + * the issuer. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest redirectToIssuerMethod(String redirectToIssuerMethod) { @@ -1293,7 +1516,9 @@ public DonationPaymentRequest redirectToIssuerMethod(String redirectToIssuerMeth /** * Specifies the redirect method (GET or POST) when redirecting to the issuer. - * @return redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to the issuer. + * + * @return redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to + * the issuer. */ @JsonProperty(JSON_PROPERTY_REDIRECT_TO_ISSUER_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1304,7 +1529,8 @@ public String getRedirectToIssuerMethod() { /** * Specifies the redirect method (GET or POST) when redirecting to the issuer. * - * @param redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to the issuer. + * @param redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to + * the issuer. */ @JsonProperty(JSON_PROPERTY_REDIRECT_TO_ISSUER_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1313,9 +1539,15 @@ public void setRedirectToIssuerMethod(String redirectToIssuerMethod) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest reference(String reference) { @@ -1324,8 +1556,15 @@ public DonationPaymentRequest reference(String reference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. - * @return reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. + * + * @return reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1334,9 +1573,15 @@ public String getReference() { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1345,9 +1590,36 @@ public void setReference(String reference) { } /** - * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. - * - * @param returnUrl The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. * For web, + * include the protocol `http://` or `https://`. You can also include your own + * additional query parameters, for example, shopper ID or order reference number. Example: + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the + * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple + * Developer + * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). + * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your + * app. You can configure it with an [intent + * filter](https://developer.android.com/guide/components/intents-filters). Example: + * `my-app://your.package.name` If the URL to return to includes non-ASCII characters, + * like spaces or special letters, URL encode the value. We strongly recommend that you use a + * maximum of 1024 characters. > The URL must not include personally identifiable information + * (PII), for example name or email address. + * + * @param returnUrl The URL to return to in case of a redirection. The format depends on the + * channel. * For web, include the protocol `http://` or `https://`. You + * can also include your own additional query parameters, for example, shopper ID or order + * reference number. Example: + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use + * the custom URL for your app. To know more about setting custom URL schemes, refer to the + * [Apple Developer + * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). + * Example: `my-app://` * For Android, use a custom URL handled by an Activity on + * your app. You can configure it with an [intent + * filter](https://developer.android.com/guide/components/intents-filters). Example: + * `my-app://your.package.name` If the URL to return to includes non-ASCII + * characters, like spaces or special letters, URL encode the value. We strongly recommend + * that you use a maximum of 1024 characters. > The URL must not include personally + * identifiable information (PII), for example name or email address. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest returnUrl(String returnUrl) { @@ -1356,8 +1628,36 @@ public DonationPaymentRequest returnUrl(String returnUrl) { } /** - * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. - * @return returnUrl The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. * For web, + * include the protocol `http://` or `https://`. You can also include your own + * additional query parameters, for example, shopper ID or order reference number. Example: + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the + * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple + * Developer + * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). + * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your + * app. You can configure it with an [intent + * filter](https://developer.android.com/guide/components/intents-filters). Example: + * `my-app://your.package.name` If the URL to return to includes non-ASCII characters, + * like spaces or special letters, URL encode the value. We strongly recommend that you use a + * maximum of 1024 characters. > The URL must not include personally identifiable information + * (PII), for example name or email address. + * + * @return returnUrl The URL to return to in case of a redirection. The format depends on the + * channel. * For web, include the protocol `http://` or `https://`. You + * can also include your own additional query parameters, for example, shopper ID or order + * reference number. Example: + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use + * the custom URL for your app. To know more about setting custom URL schemes, refer to the + * [Apple Developer + * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). + * Example: `my-app://` * For Android, use a custom URL handled by an Activity on + * your app. You can configure it with an [intent + * filter](https://developer.android.com/guide/components/intents-filters). Example: + * `my-app://your.package.name` If the URL to return to includes non-ASCII + * characters, like spaces or special letters, URL encode the value. We strongly recommend + * that you use a maximum of 1024 characters. > The URL must not include personally + * identifiable information (PII), for example name or email address. */ @JsonProperty(JSON_PROPERTY_RETURN_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1366,9 +1666,36 @@ public String getReturnUrl() { } /** - * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. - * - * @param returnUrl The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. * For web, + * include the protocol `http://` or `https://`. You can also include your own + * additional query parameters, for example, shopper ID or order reference number. Example: + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the + * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple + * Developer + * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). + * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your + * app. You can configure it with an [intent + * filter](https://developer.android.com/guide/components/intents-filters). Example: + * `my-app://your.package.name` If the URL to return to includes non-ASCII characters, + * like spaces or special letters, URL encode the value. We strongly recommend that you use a + * maximum of 1024 characters. > The URL must not include personally identifiable information + * (PII), for example name or email address. + * + * @param returnUrl The URL to return to in case of a redirection. The format depends on the + * channel. * For web, include the protocol `http://` or `https://`. You + * can also include your own additional query parameters, for example, shopper ID or order + * reference number. Example: + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use + * the custom URL for your app. To know more about setting custom URL schemes, refer to the + * [Apple Developer + * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). + * Example: `my-app://` * For Android, use a custom URL handled by an Activity on + * your app. You can configure it with an [intent + * filter](https://developer.android.com/guide/components/intents-filters). Example: + * `my-app://your.package.name` If the URL to return to includes non-ASCII + * characters, like spaces or special letters, URL encode the value. We strongly recommend + * that you use a maximum of 1024 characters. > The URL must not include personally + * identifiable information (PII), for example name or email address. */ @JsonProperty(JSON_PROPERTY_RETURN_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1377,9 +1704,12 @@ public void setReturnUrl(String returnUrl) { } /** - * The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 + * The date and time until when the session remains valid, in [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 * - * @param sessionValidity The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 + * @param sessionValidity The date and time until when the session remains valid, in [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: + * 2020-07-18T15:42:40.428+01:00 * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest sessionValidity(String sessionValidity) { @@ -1388,8 +1718,12 @@ public DonationPaymentRequest sessionValidity(String sessionValidity) { } /** - * The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 - * @return sessionValidity The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 + * The date and time until when the session remains valid, in [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 + * + * @return sessionValidity The date and time until when the session remains valid, in [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: + * 2020-07-18T15:42:40.428+01:00 */ @JsonProperty(JSON_PROPERTY_SESSION_VALIDITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1398,9 +1732,12 @@ public String getSessionValidity() { } /** - * The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 + * The date and time until when the session remains valid, in [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 * - * @param sessionValidity The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 + * @param sessionValidity The date and time until when the session remains valid, in [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: + * 2020-07-18T15:42:40.428+01:00 */ @JsonProperty(JSON_PROPERTY_SESSION_VALIDITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1409,9 +1746,13 @@ public void setSessionValidity(String sessionValidity) { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in + * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 + * authentication if you did not include the `telephoneNumber`. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, + * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that + * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest shopperEmail(String shopperEmail) { @@ -1420,8 +1761,13 @@ public DonationPaymentRequest shopperEmail(String shopperEmail) { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. - * @return shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in + * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 + * authentication if you did not include the `telephoneNumber`. + * + * @return shopperEmail The shopper's email address. We recommend that you provide this data, + * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that + * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1430,9 +1776,13 @@ public String getShopperEmail() { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in + * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 + * authentication if you did not include the `telephoneNumber`. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, + * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that + * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1441,9 +1791,22 @@ public void setShopperEmail(String shopperEmail) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a + * number of risk checks (for instance, number of payment attempts or location-based checks). > + * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and + * mobile integrations, if you did not include the `shopperEmail`. For native mobile + * integrations, the field is required to support cases where authentication is routed to the + * redirect flow. This field is also mandatory for some merchants depending on your business + * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it + * is used in a number of risk checks (for instance, number of payment attempts or + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the + * `shopperEmail`. For native mobile integrations, the field is required to support + * cases where authentication is routed to the redirect flow. This field is also mandatory for + * some merchants depending on your business model. For more information, [contact + * Support](https://www.adyen.help/hc/en-us/requests/new). * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest shopperIP(String shopperIP) { @@ -1452,8 +1815,22 @@ public DonationPaymentRequest shopperIP(String shopperIP) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). - * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a + * number of risk checks (for instance, number of payment attempts or location-based checks). > + * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and + * mobile integrations, if you did not include the `shopperEmail`. For native mobile + * integrations, the field is required to support cases where authentication is routed to the + * redirect flow. This field is also mandatory for some merchants depending on your business + * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * + * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it + * is used in a number of risk checks (for instance, number of payment attempts or + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the + * `shopperEmail`. For native mobile integrations, the field is required to support + * cases where authentication is routed to the redirect flow. This field is also mandatory for + * some merchants depending on your business model. For more information, [contact + * Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1462,9 +1839,22 @@ public String getShopperIP() { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a + * number of risk checks (for instance, number of payment attempts or location-based checks). > + * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and + * mobile integrations, if you did not include the `shopperEmail`. For native mobile + * integrations, the field is required to support cases where authentication is routed to the + * redirect flow. This field is also mandatory for some merchants depending on your business + * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it + * is used in a number of risk checks (for instance, number of payment attempts or + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the + * `shopperEmail`. For native mobile integrations, the field is required to support + * cases where authentication is routed to the redirect flow. This field is also mandatory for + * some merchants depending on your business model. For more information, [contact + * Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1473,9 +1863,30 @@ public void setShopperIP(String shopperIP) { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorization rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorization (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorization rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorization (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorization rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorization (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. + * + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorization rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorization (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest shopperInteraction(ShopperInteractionEnum shopperInteraction) { @@ -1484,8 +1895,30 @@ public DonationPaymentRequest shopperInteraction(ShopperInteractionEnum shopperI } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorization rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorization (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * @return shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorization rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorization (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorization rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorization (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. + * + * @return shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorization rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorization (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1494,9 +1927,30 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorization rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorization (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorization rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorization (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorization rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorization (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. + * + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorization rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorization (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1505,9 +1959,11 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { } /** - * The combination of a language code and a country code to specify the language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the + * payment. * - * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the + * language to be used in the payment. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest shopperLocale(String shopperLocale) { @@ -1516,8 +1972,11 @@ public DonationPaymentRequest shopperLocale(String shopperLocale) { } /** - * The combination of a language code and a country code to specify the language to be used in the payment. - * @return shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the + * payment. + * + * @return shopperLocale The combination of a language code and a country code to specify the + * language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1526,9 +1985,11 @@ public String getShopperLocale() { } /** - * The combination of a language code and a country code to specify the language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the + * payment. * - * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the + * language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1539,7 +2000,7 @@ public void setShopperLocale(String shopperLocale) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest shopperName(Name shopperName) { @@ -1549,7 +2010,8 @@ public DonationPaymentRequest shopperName(Name shopperName) { /** * Get shopperName - * @return shopperName + * + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1560,7 +2022,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1569,9 +2031,14 @@ public void setShopperName(Name shopperName) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example + * user ID or account ID. Minimum length: 3 characters. > Your reference must not include + * personally identifiable information (PII), for example name or email address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify + * this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your + * reference must not include personally identifiable information (PII), for example name or + * email address. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest shopperReference(String shopperReference) { @@ -1580,8 +2047,14 @@ public DonationPaymentRequest shopperReference(String shopperReference) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. - * @return shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example + * user ID or account ID. Minimum length: 3 characters. > Your reference must not include + * personally identifiable information (PII), for example name or email address. + * + * @return shopperReference Required for recurring payments. Your reference to uniquely identify + * this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your + * reference must not include personally identifiable information (PII), for example name or + * email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1590,9 +2063,14 @@ public String getShopperReference() { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example + * user ID or account ID. Minimum length: 3 characters. > Your reference must not include + * personally identifiable information (PII), for example name or email address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify + * this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your + * reference must not include personally identifiable information (PII), for example name or + * email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1613,6 +2091,7 @@ public DonationPaymentRequest socialSecurityNumber(String socialSecurityNumber) /** * The shopper's social security number. + * * @return socialSecurityNumber The shopper's social security number. */ @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER) @@ -1633,9 +2112,17 @@ public void setSocialSecurityNumber(String socialSecurityNumber) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest telephoneNumber(String telephoneNumber) { @@ -1644,8 +2131,17 @@ public DonationPaymentRequest telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. - * @return telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. + * + * @return telephoneNumber The shopper's telephone number. The phone number must include a + * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1654,9 +2150,17 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1667,7 +2171,7 @@ public void setTelephoneNumber(String telephoneNumber) { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest threeDS2RequestData(ThreeDS2RequestFields threeDS2RequestData) { @@ -1677,7 +2181,8 @@ public DonationPaymentRequest threeDS2RequestData(ThreeDS2RequestFields threeDS2 /** * Get threeDS2RequestData - * @return threeDS2RequestData + * + * @return threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1688,7 +2193,7 @@ public ThreeDS2RequestFields getThreeDS2RequestData() { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1697,26 +2202,41 @@ public void setThreeDS2RequestData(ThreeDS2RequestFields threeDS2RequestData) { } /** - * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. * - * @param threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * @param threeDSAuthenticationOnly Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v69 - * Use `authenticationData.authenticationOnly` instead. + * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` + * instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use + // `authenticationData.authenticationOnly` instead. public DonationPaymentRequest threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { this.threeDSAuthenticationOnly = threeDSAuthenticationOnly; return this; } /** - * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. - * @return threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. - * @deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. + * Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. + * + * @return threeDSAuthenticationOnly Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. + * @deprecated // deprecated since Adyen Checkout API v69: Use + * `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use + // `authenticationData.authenticationOnly` instead. @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getThreeDSAuthenticationOnly() { @@ -1724,23 +2244,27 @@ public Boolean getThreeDSAuthenticationOnly() { } /** - * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. - * - * @param threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. * - * @deprecated since Adyen Checkout API v69 - * Use `authenticationData.authenticationOnly` instead. + * @param threeDSAuthenticationOnly Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. + * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` + * instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use + // `authenticationData.authenticationOnly` instead. @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { this.threeDSAuthenticationOnly = threeDSAuthenticationOnly; } - /** - * Return true if this DonationPaymentRequest object is equal to o. - */ + /** Return true if this DonationPaymentRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -1750,53 +2274,100 @@ public boolean equals(Object o) { return false; } DonationPaymentRequest donationPaymentRequest = (DonationPaymentRequest) o; - return Objects.equals(this.accountInfo, donationPaymentRequest.accountInfo) && - Objects.equals(this.additionalData, donationPaymentRequest.additionalData) && - Objects.equals(this.amount, donationPaymentRequest.amount) && - Objects.equals(this.applicationInfo, donationPaymentRequest.applicationInfo) && - Objects.equals(this.authenticationData, donationPaymentRequest.authenticationData) && - Objects.equals(this.billingAddress, donationPaymentRequest.billingAddress) && - Objects.equals(this.browserInfo, donationPaymentRequest.browserInfo) && - Objects.equals(this.channel, donationPaymentRequest.channel) && - Objects.equals(this.checkoutAttemptId, donationPaymentRequest.checkoutAttemptId) && - Objects.equals(this.conversionId, donationPaymentRequest.conversionId) && - Objects.equals(this.countryCode, donationPaymentRequest.countryCode) && - Objects.equals(this.dateOfBirth, donationPaymentRequest.dateOfBirth) && - Objects.equals(this.deliverAt, donationPaymentRequest.deliverAt) && - Objects.equals(this.deliveryAddress, donationPaymentRequest.deliveryAddress) && - Objects.equals(this.deviceFingerprint, donationPaymentRequest.deviceFingerprint) && - Objects.equals(this.donationAccount, donationPaymentRequest.donationAccount) && - Objects.equals(this.donationCampaignId, donationPaymentRequest.donationCampaignId) && - Objects.equals(this.donationOriginalPspReference, donationPaymentRequest.donationOriginalPspReference) && - Objects.equals(this.donationToken, donationPaymentRequest.donationToken) && - Objects.equals(this.lineItems, donationPaymentRequest.lineItems) && - Objects.equals(this.merchantAccount, donationPaymentRequest.merchantAccount) && - Objects.equals(this.merchantRiskIndicator, donationPaymentRequest.merchantRiskIndicator) && - Objects.equals(this.metadata, donationPaymentRequest.metadata) && - Objects.equals(this.mpiData, donationPaymentRequest.mpiData) && - Objects.equals(this.origin, donationPaymentRequest.origin) && - Objects.equals(this.paymentMethod, donationPaymentRequest.paymentMethod) && - Objects.equals(this.recurringProcessingModel, donationPaymentRequest.recurringProcessingModel) && - Objects.equals(this.redirectFromIssuerMethod, donationPaymentRequest.redirectFromIssuerMethod) && - Objects.equals(this.redirectToIssuerMethod, donationPaymentRequest.redirectToIssuerMethod) && - Objects.equals(this.reference, donationPaymentRequest.reference) && - Objects.equals(this.returnUrl, donationPaymentRequest.returnUrl) && - Objects.equals(this.sessionValidity, donationPaymentRequest.sessionValidity) && - Objects.equals(this.shopperEmail, donationPaymentRequest.shopperEmail) && - Objects.equals(this.shopperIP, donationPaymentRequest.shopperIP) && - Objects.equals(this.shopperInteraction, donationPaymentRequest.shopperInteraction) && - Objects.equals(this.shopperLocale, donationPaymentRequest.shopperLocale) && - Objects.equals(this.shopperName, donationPaymentRequest.shopperName) && - Objects.equals(this.shopperReference, donationPaymentRequest.shopperReference) && - Objects.equals(this.socialSecurityNumber, donationPaymentRequest.socialSecurityNumber) && - Objects.equals(this.telephoneNumber, donationPaymentRequest.telephoneNumber) && - Objects.equals(this.threeDS2RequestData, donationPaymentRequest.threeDS2RequestData) && - Objects.equals(this.threeDSAuthenticationOnly, donationPaymentRequest.threeDSAuthenticationOnly); + return Objects.equals(this.accountInfo, donationPaymentRequest.accountInfo) + && Objects.equals(this.additionalData, donationPaymentRequest.additionalData) + && Objects.equals(this.amount, donationPaymentRequest.amount) + && Objects.equals(this.applicationInfo, donationPaymentRequest.applicationInfo) + && Objects.equals(this.authenticationData, donationPaymentRequest.authenticationData) + && Objects.equals(this.billingAddress, donationPaymentRequest.billingAddress) + && Objects.equals(this.browserInfo, donationPaymentRequest.browserInfo) + && Objects.equals(this.channel, donationPaymentRequest.channel) + && Objects.equals(this.checkoutAttemptId, donationPaymentRequest.checkoutAttemptId) + && Objects.equals(this.conversionId, donationPaymentRequest.conversionId) + && Objects.equals(this.countryCode, donationPaymentRequest.countryCode) + && Objects.equals(this.dateOfBirth, donationPaymentRequest.dateOfBirth) + && Objects.equals(this.deliverAt, donationPaymentRequest.deliverAt) + && Objects.equals(this.deliveryAddress, donationPaymentRequest.deliveryAddress) + && Objects.equals(this.deviceFingerprint, donationPaymentRequest.deviceFingerprint) + && Objects.equals(this.donationAccount, donationPaymentRequest.donationAccount) + && Objects.equals(this.donationCampaignId, donationPaymentRequest.donationCampaignId) + && Objects.equals( + this.donationOriginalPspReference, donationPaymentRequest.donationOriginalPspReference) + && Objects.equals(this.donationToken, donationPaymentRequest.donationToken) + && Objects.equals(this.lineItems, donationPaymentRequest.lineItems) + && Objects.equals(this.merchantAccount, donationPaymentRequest.merchantAccount) + && Objects.equals(this.merchantRiskIndicator, donationPaymentRequest.merchantRiskIndicator) + && Objects.equals(this.metadata, donationPaymentRequest.metadata) + && Objects.equals(this.mpiData, donationPaymentRequest.mpiData) + && Objects.equals(this.origin, donationPaymentRequest.origin) + && Objects.equals(this.paymentMethod, donationPaymentRequest.paymentMethod) + && Objects.equals( + this.recurringProcessingModel, donationPaymentRequest.recurringProcessingModel) + && Objects.equals( + this.redirectFromIssuerMethod, donationPaymentRequest.redirectFromIssuerMethod) + && Objects.equals( + this.redirectToIssuerMethod, donationPaymentRequest.redirectToIssuerMethod) + && Objects.equals(this.reference, donationPaymentRequest.reference) + && Objects.equals(this.returnUrl, donationPaymentRequest.returnUrl) + && Objects.equals(this.sessionValidity, donationPaymentRequest.sessionValidity) + && Objects.equals(this.shopperEmail, donationPaymentRequest.shopperEmail) + && Objects.equals(this.shopperIP, donationPaymentRequest.shopperIP) + && Objects.equals(this.shopperInteraction, donationPaymentRequest.shopperInteraction) + && Objects.equals(this.shopperLocale, donationPaymentRequest.shopperLocale) + && Objects.equals(this.shopperName, donationPaymentRequest.shopperName) + && Objects.equals(this.shopperReference, donationPaymentRequest.shopperReference) + && Objects.equals(this.socialSecurityNumber, donationPaymentRequest.socialSecurityNumber) + && Objects.equals(this.telephoneNumber, donationPaymentRequest.telephoneNumber) + && Objects.equals(this.threeDS2RequestData, donationPaymentRequest.threeDS2RequestData) + && Objects.equals( + this.threeDSAuthenticationOnly, donationPaymentRequest.threeDSAuthenticationOnly); } @Override public int hashCode() { - return Objects.hash(accountInfo, additionalData, amount, applicationInfo, authenticationData, billingAddress, browserInfo, channel, checkoutAttemptId, conversionId, countryCode, dateOfBirth, deliverAt, deliveryAddress, deviceFingerprint, donationAccount, donationCampaignId, donationOriginalPspReference, donationToken, lineItems, merchantAccount, merchantRiskIndicator, metadata, mpiData, origin, paymentMethod, recurringProcessingModel, redirectFromIssuerMethod, redirectToIssuerMethod, reference, returnUrl, sessionValidity, shopperEmail, shopperIP, shopperInteraction, shopperLocale, shopperName, shopperReference, socialSecurityNumber, telephoneNumber, threeDS2RequestData, threeDSAuthenticationOnly); + return Objects.hash( + accountInfo, + additionalData, + amount, + applicationInfo, + authenticationData, + billingAddress, + browserInfo, + channel, + checkoutAttemptId, + conversionId, + countryCode, + dateOfBirth, + deliverAt, + deliveryAddress, + deviceFingerprint, + donationAccount, + donationCampaignId, + donationOriginalPspReference, + donationToken, + lineItems, + merchantAccount, + merchantRiskIndicator, + metadata, + mpiData, + origin, + paymentMethod, + recurringProcessingModel, + redirectFromIssuerMethod, + redirectToIssuerMethod, + reference, + returnUrl, + sessionValidity, + shopperEmail, + shopperIP, + shopperInteraction, + shopperLocale, + shopperName, + shopperReference, + socialSecurityNumber, + telephoneNumber, + threeDS2RequestData, + threeDSAuthenticationOnly); } @Override @@ -1820,18 +2391,28 @@ public String toString() { sb.append(" deviceFingerprint: ").append(toIndentedString(deviceFingerprint)).append("\n"); sb.append(" donationAccount: ").append(toIndentedString(donationAccount)).append("\n"); sb.append(" donationCampaignId: ").append(toIndentedString(donationCampaignId)).append("\n"); - sb.append(" donationOriginalPspReference: ").append(toIndentedString(donationOriginalPspReference)).append("\n"); + sb.append(" donationOriginalPspReference: ") + .append(toIndentedString(donationOriginalPspReference)) + .append("\n"); sb.append(" donationToken: ").append(toIndentedString(donationToken)).append("\n"); sb.append(" lineItems: ").append(toIndentedString(lineItems)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" merchantRiskIndicator: ").append(toIndentedString(merchantRiskIndicator)).append("\n"); + sb.append(" merchantRiskIndicator: ") + .append(toIndentedString(merchantRiskIndicator)) + .append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" mpiData: ").append(toIndentedString(mpiData)).append("\n"); sb.append(" origin: ").append(toIndentedString(origin)).append("\n"); sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n"); - sb.append(" recurringProcessingModel: ").append(toIndentedString(recurringProcessingModel)).append("\n"); - sb.append(" redirectFromIssuerMethod: ").append(toIndentedString(redirectFromIssuerMethod)).append("\n"); - sb.append(" redirectToIssuerMethod: ").append(toIndentedString(redirectToIssuerMethod)).append("\n"); + sb.append(" recurringProcessingModel: ") + .append(toIndentedString(recurringProcessingModel)) + .append("\n"); + sb.append(" redirectFromIssuerMethod: ") + .append(toIndentedString(redirectFromIssuerMethod)) + .append("\n"); + sb.append(" redirectToIssuerMethod: ") + .append(toIndentedString(redirectToIssuerMethod)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" returnUrl: ").append(toIndentedString(returnUrl)).append("\n"); sb.append(" sessionValidity: ").append(toIndentedString(sessionValidity)).append("\n"); @@ -1841,17 +2422,22 @@ public String toString() { sb.append(" shopperLocale: ").append(toIndentedString(shopperLocale)).append("\n"); sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); - sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); + sb.append(" socialSecurityNumber: ") + .append(toIndentedString(socialSecurityNumber)) + .append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); - sb.append(" threeDS2RequestData: ").append(toIndentedString(threeDS2RequestData)).append("\n"); - sb.append(" threeDSAuthenticationOnly: ").append(toIndentedString(threeDSAuthenticationOnly)).append("\n"); + sb.append(" threeDS2RequestData: ") + .append(toIndentedString(threeDS2RequestData)) + .append("\n"); + sb.append(" threeDSAuthenticationOnly: ") + .append(toIndentedString(threeDSAuthenticationOnly)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1860,21 +2446,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DonationPaymentRequest given an JSON string * * @param jsonString JSON string * @return An instance of DonationPaymentRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to DonationPaymentRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DonationPaymentRequest */ public static DonationPaymentRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DonationPaymentRequest.class); } -/** - * Convert an instance of DonationPaymentRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DonationPaymentRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/DonationPaymentResponse.java b/src/main/java/com/adyen/model/checkout/DonationPaymentResponse.java index 61fa290e5..880346c4f 100644 --- a/src/main/java/com/adyen/model/checkout/DonationPaymentResponse.java +++ b/src/main/java/com/adyen/model/checkout/DonationPaymentResponse.java @@ -2,33 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Amount; -import com.adyen.model.checkout.PaymentResponse; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * DonationPaymentResponse - */ +/** DonationPaymentResponse */ @JsonPropertyOrder({ DonationPaymentResponse.JSON_PROPERTY_AMOUNT, DonationPaymentResponse.JSON_PROPERTY_DONATION_ACCOUNT, @@ -38,7 +31,6 @@ DonationPaymentResponse.JSON_PROPERTY_REFERENCE, DonationPaymentResponse.JSON_PROPERTY_STATUS }) - public class DonationPaymentResponse { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -59,10 +51,10 @@ public class DonationPaymentResponse { private String reference; /** - * The status of the donation transaction. Possible values: * **completed** * **pending** * **refused** + * The status of the donation transaction. Possible values: * **completed** * **pending** * + * **refused** */ public enum StatusEnum { - COMPLETED(String.valueOf("completed")), PENDING(String.valueOf("pending")), @@ -74,7 +66,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -95,7 +87,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -103,13 +99,12 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; - public DonationPaymentResponse() { - } + public DonationPaymentResponse() {} /** * amount * - * @param amount + * @param amount * @return the current {@code DonationPaymentResponse} instance, allowing for method chaining */ public DonationPaymentResponse amount(Amount amount) { @@ -119,7 +114,8 @@ public DonationPaymentResponse amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -130,7 +126,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,9 +135,13 @@ public void setAmount(Amount amount) { } /** - * The Adyen account name of your charity. We will provide you with this account name once your chosen charity has been [onboarded](https://docs.adyen.com/online-payments/donations#onboarding). + * The Adyen account name of your charity. We will provide you with this account name once your + * chosen charity has been + * [onboarded](https://docs.adyen.com/online-payments/donations#onboarding). * - * @param donationAccount The Adyen account name of your charity. We will provide you with this account name once your chosen charity has been [onboarded](https://docs.adyen.com/online-payments/donations#onboarding). + * @param donationAccount The Adyen account name of your charity. We will provide you with this + * account name once your chosen charity has been + * [onboarded](https://docs.adyen.com/online-payments/donations#onboarding). * @return the current {@code DonationPaymentResponse} instance, allowing for method chaining */ public DonationPaymentResponse donationAccount(String donationAccount) { @@ -150,8 +150,13 @@ public DonationPaymentResponse donationAccount(String donationAccount) { } /** - * The Adyen account name of your charity. We will provide you with this account name once your chosen charity has been [onboarded](https://docs.adyen.com/online-payments/donations#onboarding). - * @return donationAccount The Adyen account name of your charity. We will provide you with this account name once your chosen charity has been [onboarded](https://docs.adyen.com/online-payments/donations#onboarding). + * The Adyen account name of your charity. We will provide you with this account name once your + * chosen charity has been + * [onboarded](https://docs.adyen.com/online-payments/donations#onboarding). + * + * @return donationAccount The Adyen account name of your charity. We will provide you with this + * account name once your chosen charity has been + * [onboarded](https://docs.adyen.com/online-payments/donations#onboarding). */ @JsonProperty(JSON_PROPERTY_DONATION_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,9 +165,13 @@ public String getDonationAccount() { } /** - * The Adyen account name of your charity. We will provide you with this account name once your chosen charity has been [onboarded](https://docs.adyen.com/online-payments/donations#onboarding). + * The Adyen account name of your charity. We will provide you with this account name once your + * chosen charity has been + * [onboarded](https://docs.adyen.com/online-payments/donations#onboarding). * - * @param donationAccount The Adyen account name of your charity. We will provide you with this account name once your chosen charity has been [onboarded](https://docs.adyen.com/online-payments/donations#onboarding). + * @param donationAccount The Adyen account name of your charity. We will provide you with this + * account name once your chosen charity has been + * [onboarded](https://docs.adyen.com/online-payments/donations#onboarding). */ @JsonProperty(JSON_PROPERTY_DONATION_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,6 +192,7 @@ public DonationPaymentResponse id(String id) { /** * Your unique resource identifier. + * * @return id Your unique resource identifier. */ @JsonProperty(JSON_PROPERTY_ID) @@ -205,7 +215,8 @@ public void setId(String id) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. * @return the current {@code DonationPaymentResponse} instance, allowing for method chaining */ public DonationPaymentResponse merchantAccount(String merchantAccount) { @@ -215,7 +226,9 @@ public DonationPaymentResponse merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * @return merchantAccount The merchant account identifier, with which you want to process the transaction. + * + * @return merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -226,7 +239,8 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,7 +251,7 @@ public void setMerchantAccount(String merchantAccount) { /** * payment * - * @param payment + * @param payment * @return the current {@code DonationPaymentResponse} instance, allowing for method chaining */ public DonationPaymentResponse payment(PaymentResponse payment) { @@ -247,7 +261,8 @@ public DonationPaymentResponse payment(PaymentResponse payment) { /** * Get payment - * @return payment + * + * @return payment */ @JsonProperty(JSON_PROPERTY_PAYMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -258,7 +273,7 @@ public PaymentResponse getPayment() { /** * payment * - * @param payment + * @param payment */ @JsonProperty(JSON_PROPERTY_PAYMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -267,9 +282,15 @@ public void setPayment(PaymentResponse payment) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * @return the current {@code DonationPaymentResponse} instance, allowing for method chaining */ public DonationPaymentResponse reference(String reference) { @@ -278,8 +299,15 @@ public DonationPaymentResponse reference(String reference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. - * @return reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. + * + * @return reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -288,9 +316,15 @@ public String getReference() { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -299,9 +333,11 @@ public void setReference(String reference) { } /** - * The status of the donation transaction. Possible values: * **completed** * **pending** * **refused** + * The status of the donation transaction. Possible values: * **completed** * **pending** * + * **refused** * - * @param status The status of the donation transaction. Possible values: * **completed** * **pending** * **refused** + * @param status The status of the donation transaction. Possible values: * **completed** * + * **pending** * **refused** * @return the current {@code DonationPaymentResponse} instance, allowing for method chaining */ public DonationPaymentResponse status(StatusEnum status) { @@ -310,8 +346,11 @@ public DonationPaymentResponse status(StatusEnum status) { } /** - * The status of the donation transaction. Possible values: * **completed** * **pending** * **refused** - * @return status The status of the donation transaction. Possible values: * **completed** * **pending** * **refused** + * The status of the donation transaction. Possible values: * **completed** * **pending** * + * **refused** + * + * @return status The status of the donation transaction. Possible values: * **completed** * + * **pending** * **refused** */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -320,9 +359,11 @@ public StatusEnum getStatus() { } /** - * The status of the donation transaction. Possible values: * **completed** * **pending** * **refused** + * The status of the donation transaction. Possible values: * **completed** * **pending** * + * **refused** * - * @param status The status of the donation transaction. Possible values: * **completed** * **pending** * **refused** + * @param status The status of the donation transaction. Possible values: * **completed** * + * **pending** * **refused** */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -330,9 +371,7 @@ public void setStatus(StatusEnum status) { this.status = status; } - /** - * Return true if this DonationPaymentResponse object is equal to o. - */ + /** Return true if this DonationPaymentResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -342,13 +381,13 @@ public boolean equals(Object o) { return false; } DonationPaymentResponse donationPaymentResponse = (DonationPaymentResponse) o; - return Objects.equals(this.amount, donationPaymentResponse.amount) && - Objects.equals(this.donationAccount, donationPaymentResponse.donationAccount) && - Objects.equals(this.id, donationPaymentResponse.id) && - Objects.equals(this.merchantAccount, donationPaymentResponse.merchantAccount) && - Objects.equals(this.payment, donationPaymentResponse.payment) && - Objects.equals(this.reference, donationPaymentResponse.reference) && - Objects.equals(this.status, donationPaymentResponse.status); + return Objects.equals(this.amount, donationPaymentResponse.amount) + && Objects.equals(this.donationAccount, donationPaymentResponse.donationAccount) + && Objects.equals(this.id, donationPaymentResponse.id) + && Objects.equals(this.merchantAccount, donationPaymentResponse.merchantAccount) + && Objects.equals(this.payment, donationPaymentResponse.payment) + && Objects.equals(this.reference, donationPaymentResponse.reference) + && Objects.equals(this.status, donationPaymentResponse.status); } @Override @@ -372,8 +411,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -382,21 +420,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DonationPaymentResponse given an JSON string * * @param jsonString JSON string * @return An instance of DonationPaymentResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to DonationPaymentResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DonationPaymentResponse */ public static DonationPaymentResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DonationPaymentResponse.class); } -/** - * Convert an instance of DonationPaymentResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DonationPaymentResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/DragonpayDetails.java b/src/main/java/com/adyen/model/checkout/DragonpayDetails.java index 049460c0d..932c8211a 100644 --- a/src/main/java/com/adyen/model/checkout/DragonpayDetails.java +++ b/src/main/java/com/adyen/model/checkout/DragonpayDetails.java @@ -2,38 +2,32 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * DragonpayDetails - */ +/** DragonpayDetails */ @JsonPropertyOrder({ DragonpayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, DragonpayDetails.JSON_PROPERTY_ISSUER, DragonpayDetails.JSON_PROPERTY_SHOPPER_EMAIL, DragonpayDetails.JSON_PROPERTY_TYPE }) - public class DragonpayDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -44,11 +38,8 @@ public class DragonpayDetails { public static final String JSON_PROPERTY_SHOPPER_EMAIL = "shopperEmail"; private String shopperEmail; - /** - * **dragonpay** - */ + /** **dragonpay** */ public enum TypeEnum { - DRAGONPAY_EBANKING(String.valueOf("dragonpay_ebanking")), DRAGONPAY_OTC_BANKING(String.valueOf("dragonpay_otc_banking")), @@ -62,7 +53,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -83,7 +74,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -91,8 +86,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public DragonpayDetails() { - } + public DragonpayDetails() {} /** * The checkout attempt identifier. @@ -107,6 +101,7 @@ public DragonpayDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -127,9 +122,11 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * The Dragonpay issuer value of the shopper's selected bank. Set this to an **id** of a Dragonpay issuer to preselect it. + * The Dragonpay issuer value of the shopper's selected bank. Set this to an **id** of a + * Dragonpay issuer to preselect it. * - * @param issuer The Dragonpay issuer value of the shopper's selected bank. Set this to an **id** of a Dragonpay issuer to preselect it. + * @param issuer The Dragonpay issuer value of the shopper's selected bank. Set this to an + * **id** of a Dragonpay issuer to preselect it. * @return the current {@code DragonpayDetails} instance, allowing for method chaining */ public DragonpayDetails issuer(String issuer) { @@ -138,8 +135,11 @@ public DragonpayDetails issuer(String issuer) { } /** - * The Dragonpay issuer value of the shopper's selected bank. Set this to an **id** of a Dragonpay issuer to preselect it. - * @return issuer The Dragonpay issuer value of the shopper's selected bank. Set this to an **id** of a Dragonpay issuer to preselect it. + * The Dragonpay issuer value of the shopper's selected bank. Set this to an **id** of a + * Dragonpay issuer to preselect it. + * + * @return issuer The Dragonpay issuer value of the shopper's selected bank. Set this to an + * **id** of a Dragonpay issuer to preselect it. */ @JsonProperty(JSON_PROPERTY_ISSUER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,9 +148,11 @@ public String getIssuer() { } /** - * The Dragonpay issuer value of the shopper's selected bank. Set this to an **id** of a Dragonpay issuer to preselect it. + * The Dragonpay issuer value of the shopper's selected bank. Set this to an **id** of a + * Dragonpay issuer to preselect it. * - * @param issuer The Dragonpay issuer value of the shopper's selected bank. Set this to an **id** of a Dragonpay issuer to preselect it. + * @param issuer The Dragonpay issuer value of the shopper's selected bank. Set this to an + * **id** of a Dragonpay issuer to preselect it. */ @JsonProperty(JSON_PROPERTY_ISSUER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -171,6 +173,7 @@ public DragonpayDetails shopperEmail(String shopperEmail) { /** * The shopper’s email address. + * * @return shopperEmail The shopper’s email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -203,6 +206,7 @@ public DragonpayDetails type(TypeEnum type) { /** * **dragonpay** + * * @return type **dragonpay** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -222,9 +226,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this DragonpayDetails object is equal to o. - */ + /** Return true if this DragonpayDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -234,10 +236,10 @@ public boolean equals(Object o) { return false; } DragonpayDetails dragonpayDetails = (DragonpayDetails) o; - return Objects.equals(this.checkoutAttemptId, dragonpayDetails.checkoutAttemptId) && - Objects.equals(this.issuer, dragonpayDetails.issuer) && - Objects.equals(this.shopperEmail, dragonpayDetails.shopperEmail) && - Objects.equals(this.type, dragonpayDetails.type); + return Objects.equals(this.checkoutAttemptId, dragonpayDetails.checkoutAttemptId) + && Objects.equals(this.issuer, dragonpayDetails.issuer) + && Objects.equals(this.shopperEmail, dragonpayDetails.shopperEmail) + && Objects.equals(this.type, dragonpayDetails.type); } @Override @@ -258,8 +260,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -268,7 +269,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DragonpayDetails given an JSON string * * @param jsonString JSON string @@ -278,11 +279,12 @@ private String toIndentedString(Object o) { public static DragonpayDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DragonpayDetails.class); } -/** - * Convert an instance of DragonpayDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DragonpayDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/EBankingFinlandDetails.java b/src/main/java/com/adyen/model/checkout/EBankingFinlandDetails.java index 5d523ac56..e4fd77e2d 100644 --- a/src/main/java/com/adyen/model/checkout/EBankingFinlandDetails.java +++ b/src/main/java/com/adyen/model/checkout/EBankingFinlandDetails.java @@ -2,37 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * EBankingFinlandDetails - */ +/** EBankingFinlandDetails */ @JsonPropertyOrder({ EBankingFinlandDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, EBankingFinlandDetails.JSON_PROPERTY_ISSUER, EBankingFinlandDetails.JSON_PROPERTY_TYPE }) - public class EBankingFinlandDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -40,11 +34,8 @@ public class EBankingFinlandDetails { public static final String JSON_PROPERTY_ISSUER = "issuer"; private String issuer; - /** - * **ebanking_FI** - */ + /** **ebanking_FI** */ public enum TypeEnum { - EBANKING_FI(String.valueOf("ebanking_FI")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +43,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +64,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,8 +76,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public EBankingFinlandDetails() { - } + public EBankingFinlandDetails() {} /** * The checkout attempt identifier. @@ -97,6 +91,7 @@ public EBankingFinlandDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -129,6 +124,7 @@ public EBankingFinlandDetails issuer(String issuer) { /** * The Ebanking Finland issuer value of the shopper's selected bank. + * * @return issuer The Ebanking Finland issuer value of the shopper's selected bank. */ @JsonProperty(JSON_PROPERTY_ISSUER) @@ -161,6 +157,7 @@ public EBankingFinlandDetails type(TypeEnum type) { /** * **ebanking_FI** + * * @return type **ebanking_FI** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +177,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this EBankingFinlandDetails object is equal to o. - */ + /** Return true if this EBankingFinlandDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +187,9 @@ public boolean equals(Object o) { return false; } EBankingFinlandDetails ebankingFinlandDetails = (EBankingFinlandDetails) o; - return Objects.equals(this.checkoutAttemptId, ebankingFinlandDetails.checkoutAttemptId) && - Objects.equals(this.issuer, ebankingFinlandDetails.issuer) && - Objects.equals(this.type, ebankingFinlandDetails.type); + return Objects.equals(this.checkoutAttemptId, ebankingFinlandDetails.checkoutAttemptId) + && Objects.equals(this.issuer, ebankingFinlandDetails.issuer) + && Objects.equals(this.type, ebankingFinlandDetails.type); } @Override @@ -214,8 +209,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +218,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of EBankingFinlandDetails given an JSON string * * @param jsonString JSON string * @return An instance of EBankingFinlandDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to EBankingFinlandDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to + * EBankingFinlandDetails */ public static EBankingFinlandDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, EBankingFinlandDetails.class); } -/** - * Convert an instance of EBankingFinlandDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of EBankingFinlandDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/EcontextVoucherDetails.java b/src/main/java/com/adyen/model/checkout/EcontextVoucherDetails.java index a69a35550..d8918958f 100644 --- a/src/main/java/com/adyen/model/checkout/EcontextVoucherDetails.java +++ b/src/main/java/com/adyen/model/checkout/EcontextVoucherDetails.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * EcontextVoucherDetails - */ +/** EcontextVoucherDetails */ @JsonPropertyOrder({ EcontextVoucherDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, EcontextVoucherDetails.JSON_PROPERTY_FIRST_NAME, @@ -35,7 +30,6 @@ EcontextVoucherDetails.JSON_PROPERTY_TELEPHONE_NUMBER, EcontextVoucherDetails.JSON_PROPERTY_TYPE }) - public class EcontextVoucherDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -52,11 +46,8 @@ public class EcontextVoucherDetails { public static final String JSON_PROPERTY_TELEPHONE_NUMBER = "telephoneNumber"; private String telephoneNumber; - /** - * **econtextvoucher** - */ + /** **econtextvoucher** */ public enum TypeEnum { - ECONTEXT_SEVEN_ELEVEN(String.valueOf("econtext_seven_eleven")), ECONTEXT_ONLINE(String.valueOf("econtext_online")), @@ -72,7 +63,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -93,7 +84,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -101,8 +96,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public EcontextVoucherDetails() { - } + public EcontextVoucherDetails() {} /** * The checkout attempt identifier. @@ -117,6 +111,7 @@ public EcontextVoucherDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -149,6 +144,7 @@ public EcontextVoucherDetails firstName(String firstName) { /** * The shopper's first name. + * * @return firstName The shopper's first name. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @@ -181,6 +177,7 @@ public EcontextVoucherDetails lastName(String lastName) { /** * The shopper's last name. + * * @return lastName The shopper's last name. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @@ -213,6 +210,7 @@ public EcontextVoucherDetails shopperEmail(String shopperEmail) { /** * The shopper's email. + * * @return shopperEmail The shopper's email. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -233,9 +231,13 @@ public void setShopperEmail(String shopperEmail) { } /** - * The shopper's contact number. It must have an international number format, for example **+31 20 779 1846**. Formats like **+31 (0)20 779 1846** or **0031 20 779 1846** are not accepted. + * The shopper's contact number. It must have an international number format, for example + * **+31 20 779 1846**. Formats like **+31 (0)20 779 1846** or **0031 20 779 1846** are not + * accepted. * - * @param telephoneNumber The shopper's contact number. It must have an international number format, for example **+31 20 779 1846**. Formats like **+31 (0)20 779 1846** or **0031 20 779 1846** are not accepted. + * @param telephoneNumber The shopper's contact number. It must have an international number + * format, for example **+31 20 779 1846**. Formats like **+31 (0)20 779 1846** or **0031 20 + * 779 1846** are not accepted. * @return the current {@code EcontextVoucherDetails} instance, allowing for method chaining */ public EcontextVoucherDetails telephoneNumber(String telephoneNumber) { @@ -244,8 +246,13 @@ public EcontextVoucherDetails telephoneNumber(String telephoneNumber) { } /** - * The shopper's contact number. It must have an international number format, for example **+31 20 779 1846**. Formats like **+31 (0)20 779 1846** or **0031 20 779 1846** are not accepted. - * @return telephoneNumber The shopper's contact number. It must have an international number format, for example **+31 20 779 1846**. Formats like **+31 (0)20 779 1846** or **0031 20 779 1846** are not accepted. + * The shopper's contact number. It must have an international number format, for example + * **+31 20 779 1846**. Formats like **+31 (0)20 779 1846** or **0031 20 779 1846** are not + * accepted. + * + * @return telephoneNumber The shopper's contact number. It must have an international number + * format, for example **+31 20 779 1846**. Formats like **+31 (0)20 779 1846** or **0031 20 + * 779 1846** are not accepted. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -254,9 +261,13 @@ public String getTelephoneNumber() { } /** - * The shopper's contact number. It must have an international number format, for example **+31 20 779 1846**. Formats like **+31 (0)20 779 1846** or **0031 20 779 1846** are not accepted. + * The shopper's contact number. It must have an international number format, for example + * **+31 20 779 1846**. Formats like **+31 (0)20 779 1846** or **0031 20 779 1846** are not + * accepted. * - * @param telephoneNumber The shopper's contact number. It must have an international number format, for example **+31 20 779 1846**. Formats like **+31 (0)20 779 1846** or **0031 20 779 1846** are not accepted. + * @param telephoneNumber The shopper's contact number. It must have an international number + * format, for example **+31 20 779 1846**. Formats like **+31 (0)20 779 1846** or **0031 20 + * 779 1846** are not accepted. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -277,6 +288,7 @@ public EcontextVoucherDetails type(TypeEnum type) { /** * **econtextvoucher** + * * @return type **econtextvoucher** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -296,9 +308,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this EcontextVoucherDetails object is equal to o. - */ + /** Return true if this EcontextVoucherDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -308,17 +318,18 @@ public boolean equals(Object o) { return false; } EcontextVoucherDetails econtextVoucherDetails = (EcontextVoucherDetails) o; - return Objects.equals(this.checkoutAttemptId, econtextVoucherDetails.checkoutAttemptId) && - Objects.equals(this.firstName, econtextVoucherDetails.firstName) && - Objects.equals(this.lastName, econtextVoucherDetails.lastName) && - Objects.equals(this.shopperEmail, econtextVoucherDetails.shopperEmail) && - Objects.equals(this.telephoneNumber, econtextVoucherDetails.telephoneNumber) && - Objects.equals(this.type, econtextVoucherDetails.type); + return Objects.equals(this.checkoutAttemptId, econtextVoucherDetails.checkoutAttemptId) + && Objects.equals(this.firstName, econtextVoucherDetails.firstName) + && Objects.equals(this.lastName, econtextVoucherDetails.lastName) + && Objects.equals(this.shopperEmail, econtextVoucherDetails.shopperEmail) + && Objects.equals(this.telephoneNumber, econtextVoucherDetails.telephoneNumber) + && Objects.equals(this.type, econtextVoucherDetails.type); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, firstName, lastName, shopperEmail, telephoneNumber, type); + return Objects.hash( + checkoutAttemptId, firstName, lastName, shopperEmail, telephoneNumber, type); } @Override @@ -336,8 +347,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -346,21 +356,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of EcontextVoucherDetails given an JSON string * * @param jsonString JSON string * @return An instance of EcontextVoucherDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to EcontextVoucherDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to + * EcontextVoucherDetails */ public static EcontextVoucherDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, EcontextVoucherDetails.class); } -/** - * Convert an instance of EcontextVoucherDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of EcontextVoucherDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/EftDetails.java b/src/main/java/com/adyen/model/checkout/EftDetails.java index 550aca69a..f841f8a0c 100644 --- a/src/main/java/com/adyen/model/checkout/EftDetails.java +++ b/src/main/java/com/adyen/model/checkout/EftDetails.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * EftDetails - */ +/** EftDetails */ @JsonPropertyOrder({ EftDetails.JSON_PROPERTY_BANK_ACCOUNT_NUMBER, EftDetails.JSON_PROPERTY_BANK_CODE, @@ -37,7 +32,6 @@ EftDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, EftDetails.JSON_PROPERTY_TYPE }) - public class EftDetails { public static final String JSON_PROPERTY_BANK_ACCOUNT_NUMBER = "bankAccountNumber"; private String bankAccountNumber; @@ -61,11 +55,8 @@ public class EftDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** - * **eft** - */ + /** **eft** */ public enum TypeEnum { - EFT_DIRECTDEBIT_CA(String.valueOf("eft_directdebit_CA")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -73,7 +64,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -94,7 +85,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -102,8 +97,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public EftDetails() { - } + public EftDetails() {} /** * The bank account number (without separators). @@ -118,6 +112,7 @@ public EftDetails bankAccountNumber(String bankAccountNumber) { /** * The bank account number (without separators). + * * @return bankAccountNumber The bank account number (without separators). */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_NUMBER) @@ -150,6 +145,7 @@ public EftDetails bankCode(String bankCode) { /** * The financial institution code. + * * @return bankCode The financial institution code. */ @JsonProperty(JSON_PROPERTY_BANK_CODE) @@ -182,6 +178,7 @@ public EftDetails bankLocationId(String bankLocationId) { /** * The bank routing number of the account. + * * @return bankLocationId The bank routing number of the account. */ @JsonProperty(JSON_PROPERTY_BANK_LOCATION_ID) @@ -214,6 +211,7 @@ public EftDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -234,9 +232,25 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we + * automatically replace some of them with corresponding Latin characters to meet the FATF + * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter + * Møller is converted to Peter Mller, because banks don't accept 'ø'. After + * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), + * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - + * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details + * don't match the required format, the response returns the error message: 203 'Invalid + * bank account holder name'. * - * @param ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * @param ownerName The name of the bank account holder. If you submit a name with non-Latin + * characters, we automatically replace some of them with corresponding Latin characters to + * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted + * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept + * 'ø'. After replacement, the ownerName must have at least three alphanumeric + * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, + * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - + * allowed. > If provided details don't match the required format, the response returns + * the error message: 203 'Invalid bank account holder name'. * @return the current {@code EftDetails} instance, allowing for method chaining */ public EftDetails ownerName(String ownerName) { @@ -245,8 +259,25 @@ public EftDetails ownerName(String ownerName) { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. - * @return ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we + * automatically replace some of them with corresponding Latin characters to meet the FATF + * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter + * Møller is converted to Peter Mller, because banks don't accept 'ø'. After + * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), + * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - + * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details + * don't match the required format, the response returns the error message: 203 'Invalid + * bank account holder name'. + * + * @return ownerName The name of the bank account holder. If you submit a name with non-Latin + * characters, we automatically replace some of them with corresponding Latin characters to + * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted + * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept + * 'ø'. After replacement, the ownerName must have at least three alphanumeric + * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, + * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - + * allowed. > If provided details don't match the required format, the response returns + * the error message: 203 'Invalid bank account holder name'. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -255,9 +286,25 @@ public String getOwnerName() { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we + * automatically replace some of them with corresponding Latin characters to meet the FATF + * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter + * Møller is converted to Peter Mller, because banks don't accept 'ø'. After + * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), + * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - + * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details + * don't match the required format, the response returns the error message: 203 'Invalid + * bank account holder name'. * - * @param ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * @param ownerName The name of the bank account holder. If you submit a name with non-Latin + * characters, we automatically replace some of them with corresponding Latin characters to + * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted + * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept + * 'ø'. After replacement, the ownerName must have at least three alphanumeric + * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, + * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - + * allowed. > If provided details don't match the required format, the response returns + * the error message: 203 'Invalid bank account holder name'. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -266,13 +313,13 @@ public void setOwnerName(String ownerName) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code EftDetails} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public EftDetails recurringDetailReference(String recurringDetailReference) { @@ -281,8 +328,11 @@ public EftDetails recurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -293,12 +343,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -308,9 +358,11 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code EftDetails} instance, allowing for method chaining */ public EftDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -319,8 +371,11 @@ public EftDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -329,9 +384,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -352,6 +409,7 @@ public EftDetails type(TypeEnum type) { /** * **eft** + * * @return type **eft** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -371,9 +429,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this EftDetails object is equal to o. - */ + /** Return true if this EftDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -383,19 +439,27 @@ public boolean equals(Object o) { return false; } EftDetails eftDetails = (EftDetails) o; - return Objects.equals(this.bankAccountNumber, eftDetails.bankAccountNumber) && - Objects.equals(this.bankCode, eftDetails.bankCode) && - Objects.equals(this.bankLocationId, eftDetails.bankLocationId) && - Objects.equals(this.checkoutAttemptId, eftDetails.checkoutAttemptId) && - Objects.equals(this.ownerName, eftDetails.ownerName) && - Objects.equals(this.recurringDetailReference, eftDetails.recurringDetailReference) && - Objects.equals(this.storedPaymentMethodId, eftDetails.storedPaymentMethodId) && - Objects.equals(this.type, eftDetails.type); + return Objects.equals(this.bankAccountNumber, eftDetails.bankAccountNumber) + && Objects.equals(this.bankCode, eftDetails.bankCode) + && Objects.equals(this.bankLocationId, eftDetails.bankLocationId) + && Objects.equals(this.checkoutAttemptId, eftDetails.checkoutAttemptId) + && Objects.equals(this.ownerName, eftDetails.ownerName) + && Objects.equals(this.recurringDetailReference, eftDetails.recurringDetailReference) + && Objects.equals(this.storedPaymentMethodId, eftDetails.storedPaymentMethodId) + && Objects.equals(this.type, eftDetails.type); } @Override public int hashCode() { - return Objects.hash(bankAccountNumber, bankCode, bankLocationId, checkoutAttemptId, ownerName, recurringDetailReference, storedPaymentMethodId, type); + return Objects.hash( + bankAccountNumber, + bankCode, + bankLocationId, + checkoutAttemptId, + ownerName, + recurringDetailReference, + storedPaymentMethodId, + type); } @Override @@ -407,16 +471,19 @@ public String toString() { sb.append(" bankLocationId: ").append(toIndentedString(bankLocationId)).append("\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" ownerName: ").append(toIndentedString(ownerName)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -425,7 +492,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of EftDetails given an JSON string * * @param jsonString JSON string @@ -435,11 +502,12 @@ private String toIndentedString(Object o) { public static EftDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, EftDetails.class); } -/** - * Convert an instance of EftDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of EftDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/EncryptedOrderData.java b/src/main/java/com/adyen/model/checkout/EncryptedOrderData.java index 31bee46ce..391ea7057 100644 --- a/src/main/java/com/adyen/model/checkout/EncryptedOrderData.java +++ b/src/main/java/com/adyen/model/checkout/EncryptedOrderData.java @@ -2,36 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * EncryptedOrderData - */ +/** EncryptedOrderData */ @JsonPropertyOrder({ EncryptedOrderData.JSON_PROPERTY_ORDER_DATA, EncryptedOrderData.JSON_PROPERTY_PSP_REFERENCE }) - public class EncryptedOrderData { public static final String JSON_PROPERTY_ORDER_DATA = "orderData"; private String orderData; @@ -39,8 +29,7 @@ public class EncryptedOrderData { public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference"; private String pspReference; - public EncryptedOrderData() { - } + public EncryptedOrderData() {} /** * The encrypted order data. @@ -55,6 +44,7 @@ public EncryptedOrderData orderData(String orderData) { /** * The encrypted order data. + * * @return orderData The encrypted order data. */ @JsonProperty(JSON_PROPERTY_ORDER_DATA) @@ -87,6 +77,7 @@ public EncryptedOrderData pspReference(String pspReference) { /** * The `pspReference` that belongs to the order. + * * @return pspReference The `pspReference` that belongs to the order. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -106,9 +97,7 @@ public void setPspReference(String pspReference) { this.pspReference = pspReference; } - /** - * Return true if this EncryptedOrderData object is equal to o. - */ + /** Return true if this EncryptedOrderData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +107,8 @@ public boolean equals(Object o) { return false; } EncryptedOrderData encryptedOrderData = (EncryptedOrderData) o; - return Objects.equals(this.orderData, encryptedOrderData.orderData) && - Objects.equals(this.pspReference, encryptedOrderData.pspReference); + return Objects.equals(this.orderData, encryptedOrderData.orderData) + && Objects.equals(this.pspReference, encryptedOrderData.pspReference); } @Override @@ -138,8 +127,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +136,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of EncryptedOrderData given an JSON string * * @param jsonString JSON string * @return An instance of EncryptedOrderData - * @throws JsonProcessingException if the JSON string is invalid with respect to EncryptedOrderData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * EncryptedOrderData */ public static EncryptedOrderData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, EncryptedOrderData.class); } -/** - * Convert an instance of EncryptedOrderData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of EncryptedOrderData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/EnhancedSchemeData.java b/src/main/java/com/adyen/model/checkout/EnhancedSchemeData.java index 1edb1513c..fa7ca197c 100644 --- a/src/main/java/com/adyen/model/checkout/EnhancedSchemeData.java +++ b/src/main/java/com/adyen/model/checkout/EnhancedSchemeData.java @@ -2,47 +2,33 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Airline; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * EnhancedSchemeData - */ -@JsonPropertyOrder({ - EnhancedSchemeData.JSON_PROPERTY_AIRLINE -}) - +/** EnhancedSchemeData */ +@JsonPropertyOrder({EnhancedSchemeData.JSON_PROPERTY_AIRLINE}) public class EnhancedSchemeData { public static final String JSON_PROPERTY_AIRLINE = "airline"; private Airline airline; - public EnhancedSchemeData() { - } + public EnhancedSchemeData() {} /** * airline * - * @param airline + * @param airline * @return the current {@code EnhancedSchemeData} instance, allowing for method chaining */ public EnhancedSchemeData airline(Airline airline) { @@ -52,7 +38,8 @@ public EnhancedSchemeData airline(Airline airline) { /** * Get airline - * @return airline + * + * @return airline */ @JsonProperty(JSON_PROPERTY_AIRLINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,7 +50,7 @@ public Airline getAirline() { /** * airline * - * @param airline + * @param airline */ @JsonProperty(JSON_PROPERTY_AIRLINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,9 +58,7 @@ public void setAirline(Airline airline) { this.airline = airline; } - /** - * Return true if this EnhancedSchemeData object is equal to o. - */ + /** Return true if this EnhancedSchemeData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -101,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -111,21 +95,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of EnhancedSchemeData given an JSON string * * @param jsonString JSON string * @return An instance of EnhancedSchemeData - * @throws JsonProcessingException if the JSON string is invalid with respect to EnhancedSchemeData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * EnhancedSchemeData */ public static EnhancedSchemeData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, EnhancedSchemeData.class); } -/** - * Convert an instance of EnhancedSchemeData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of EnhancedSchemeData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ExternalPlatform.java b/src/main/java/com/adyen/model/checkout/ExternalPlatform.java index eaed7a6f7..065b8e302 100644 --- a/src/main/java/com/adyen/model/checkout/ExternalPlatform.java +++ b/src/main/java/com/adyen/model/checkout/ExternalPlatform.java @@ -2,37 +2,27 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ExternalPlatform - */ +/** ExternalPlatform */ @JsonPropertyOrder({ ExternalPlatform.JSON_PROPERTY_INTEGRATOR, ExternalPlatform.JSON_PROPERTY_NAME, ExternalPlatform.JSON_PROPERTY_VERSION }) - public class ExternalPlatform { public static final String JSON_PROPERTY_INTEGRATOR = "integrator"; private String integrator; @@ -43,8 +33,7 @@ public class ExternalPlatform { public static final String JSON_PROPERTY_VERSION = "version"; private String version; - public ExternalPlatform() { - } + public ExternalPlatform() {} /** * External platform integrator. @@ -59,6 +48,7 @@ public ExternalPlatform integrator(String integrator) { /** * External platform integrator. + * * @return integrator External platform integrator. */ @JsonProperty(JSON_PROPERTY_INTEGRATOR) @@ -91,6 +81,7 @@ public ExternalPlatform name(String name) { /** * Name of the field. For example, Name of External Platform. + * * @return name Name of the field. For example, Name of External Platform. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -123,6 +114,7 @@ public ExternalPlatform version(String version) { /** * Version of the field. For example, Version of External Platform. + * * @return version Version of the field. For example, Version of External Platform. */ @JsonProperty(JSON_PROPERTY_VERSION) @@ -142,9 +134,7 @@ public void setVersion(String version) { this.version = version; } - /** - * Return true if this ExternalPlatform object is equal to o. - */ + /** Return true if this ExternalPlatform object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +144,9 @@ public boolean equals(Object o) { return false; } ExternalPlatform externalPlatform = (ExternalPlatform) o; - return Objects.equals(this.integrator, externalPlatform.integrator) && - Objects.equals(this.name, externalPlatform.name) && - Objects.equals(this.version, externalPlatform.version); + return Objects.equals(this.integrator, externalPlatform.integrator) + && Objects.equals(this.name, externalPlatform.name) + && Objects.equals(this.version, externalPlatform.version); } @Override @@ -176,8 +166,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +175,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ExternalPlatform given an JSON string * * @param jsonString JSON string @@ -196,11 +185,12 @@ private String toIndentedString(Object o) { public static ExternalPlatform fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ExternalPlatform.class); } -/** - * Convert an instance of ExternalPlatform to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ExternalPlatform to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/FastlaneDetails.java b/src/main/java/com/adyen/model/checkout/FastlaneDetails.java index 6cb3e1634..909ee2d52 100644 --- a/src/main/java/com/adyen/model/checkout/FastlaneDetails.java +++ b/src/main/java/com/adyen/model/checkout/FastlaneDetails.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * FastlaneDetails - */ +/** FastlaneDetails */ @JsonPropertyOrder({ FastlaneDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, FastlaneDetails.JSON_PROPERTY_FASTLANE_DATA, @@ -34,7 +29,6 @@ FastlaneDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, FastlaneDetails.JSON_PROPERTY_TYPE }) - public class FastlaneDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -49,11 +43,8 @@ public class FastlaneDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** - * **fastlane** - */ + /** **fastlane** */ public enum TypeEnum { - FASTLANE(String.valueOf("fastlane")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -61,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -82,7 +73,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -90,8 +85,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public FastlaneDetails() { - } + public FastlaneDetails() {} /** * The checkout attempt identifier. @@ -106,6 +100,7 @@ public FastlaneDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -138,6 +133,7 @@ public FastlaneDetails fastlaneData(String fastlaneData) { /** * The encoded fastlane data blob + * * @return fastlaneData The encoded fastlane data blob */ @JsonProperty(JSON_PROPERTY_FASTLANE_DATA) @@ -158,13 +154,13 @@ public void setFastlaneData(String fastlaneData) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code FastlaneDetails} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public FastlaneDetails recurringDetailReference(String recurringDetailReference) { @@ -173,8 +169,11 @@ public FastlaneDetails recurringDetailReference(String recurringDetailReference) } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -185,12 +184,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -200,9 +199,11 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code FastlaneDetails} instance, allowing for method chaining */ public FastlaneDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -211,8 +212,11 @@ public FastlaneDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,9 +225,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,6 +250,7 @@ public FastlaneDetails type(TypeEnum type) { /** * **fastlane** + * * @return type **fastlane** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -263,9 +270,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this FastlaneDetails object is equal to o. - */ + /** Return true if this FastlaneDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -275,16 +280,17 @@ public boolean equals(Object o) { return false; } FastlaneDetails fastlaneDetails = (FastlaneDetails) o; - return Objects.equals(this.checkoutAttemptId, fastlaneDetails.checkoutAttemptId) && - Objects.equals(this.fastlaneData, fastlaneDetails.fastlaneData) && - Objects.equals(this.recurringDetailReference, fastlaneDetails.recurringDetailReference) && - Objects.equals(this.storedPaymentMethodId, fastlaneDetails.storedPaymentMethodId) && - Objects.equals(this.type, fastlaneDetails.type); + return Objects.equals(this.checkoutAttemptId, fastlaneDetails.checkoutAttemptId) + && Objects.equals(this.fastlaneData, fastlaneDetails.fastlaneData) + && Objects.equals(this.recurringDetailReference, fastlaneDetails.recurringDetailReference) + && Objects.equals(this.storedPaymentMethodId, fastlaneDetails.storedPaymentMethodId) + && Objects.equals(this.type, fastlaneDetails.type); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, fastlaneData, recurringDetailReference, storedPaymentMethodId, type); + return Objects.hash( + checkoutAttemptId, fastlaneData, recurringDetailReference, storedPaymentMethodId, type); } @Override @@ -293,16 +299,19 @@ public String toString() { sb.append("class FastlaneDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" fastlaneData: ").append(toIndentedString(fastlaneData)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -311,7 +320,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of FastlaneDetails given an JSON string * * @param jsonString JSON string @@ -321,11 +330,12 @@ private String toIndentedString(Object o) { public static FastlaneDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, FastlaneDetails.class); } -/** - * Convert an instance of FastlaneDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of FastlaneDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ForexQuote.java b/src/main/java/com/adyen/model/checkout/ForexQuote.java index ac01b8042..79fb4567a 100644 --- a/src/main/java/com/adyen/model/checkout/ForexQuote.java +++ b/src/main/java/com/adyen/model/checkout/ForexQuote.java @@ -2,33 +2,23 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.time.OffsetDateTime; +import java.util.*; - -/** - * ForexQuote - */ +/** ForexQuote */ @JsonPropertyOrder({ ForexQuote.JSON_PROPERTY_ACCOUNT, ForexQuote.JSON_PROPERTY_ACCOUNT_TYPE, @@ -43,7 +33,6 @@ ForexQuote.JSON_PROPERTY_TYPE, ForexQuote.JSON_PROPERTY_VALID_TILL }) - public class ForexQuote { public static final String JSON_PROPERTY_ACCOUNT = "account"; private String account; @@ -81,8 +70,7 @@ public class ForexQuote { public static final String JSON_PROPERTY_VALID_TILL = "validTill"; private OffsetDateTime validTill; - public ForexQuote() { - } + public ForexQuote() {} /** * The account name. @@ -97,6 +85,7 @@ public ForexQuote account(String account) { /** * The account name. + * * @return account The account name. */ @JsonProperty(JSON_PROPERTY_ACCOUNT) @@ -129,6 +118,7 @@ public ForexQuote accountType(String accountType) { /** * The account type. + * * @return accountType The account type. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @@ -151,7 +141,7 @@ public void setAccountType(String accountType) { /** * baseAmount * - * @param baseAmount + * @param baseAmount * @return the current {@code ForexQuote} instance, allowing for method chaining */ public ForexQuote baseAmount(Amount baseAmount) { @@ -161,7 +151,8 @@ public ForexQuote baseAmount(Amount baseAmount) { /** * Get baseAmount - * @return baseAmount + * + * @return baseAmount */ @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,7 +163,7 @@ public Amount getBaseAmount() { /** * baseAmount * - * @param baseAmount + * @param baseAmount */ @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,6 +184,7 @@ public ForexQuote basePoints(Integer basePoints) { /** * The base points. + * * @return basePoints The base points. */ @JsonProperty(JSON_PROPERTY_BASE_POINTS) @@ -215,7 +207,7 @@ public void setBasePoints(Integer basePoints) { /** * buy * - * @param buy + * @param buy * @return the current {@code ForexQuote} instance, allowing for method chaining */ public ForexQuote buy(Amount buy) { @@ -225,7 +217,8 @@ public ForexQuote buy(Amount buy) { /** * Get buy - * @return buy + * + * @return buy */ @JsonProperty(JSON_PROPERTY_BUY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -236,7 +229,7 @@ public Amount getBuy() { /** * buy * - * @param buy + * @param buy */ @JsonProperty(JSON_PROPERTY_BUY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -247,7 +240,7 @@ public void setBuy(Amount buy) { /** * interbank * - * @param interbank + * @param interbank * @return the current {@code ForexQuote} instance, allowing for method chaining */ public ForexQuote interbank(Amount interbank) { @@ -257,7 +250,8 @@ public ForexQuote interbank(Amount interbank) { /** * Get interbank - * @return interbank + * + * @return interbank */ @JsonProperty(JSON_PROPERTY_INTERBANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -268,7 +262,7 @@ public Amount getInterbank() { /** * interbank * - * @param interbank + * @param interbank */ @JsonProperty(JSON_PROPERTY_INTERBANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -289,6 +283,7 @@ public ForexQuote reference(String reference) { /** * The reference assigned to the forex quote request. + * * @return reference The reference assigned to the forex quote request. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -311,7 +306,7 @@ public void setReference(String reference) { /** * sell * - * @param sell + * @param sell * @return the current {@code ForexQuote} instance, allowing for method chaining */ public ForexQuote sell(Amount sell) { @@ -321,7 +316,8 @@ public ForexQuote sell(Amount sell) { /** * Get sell - * @return sell + * + * @return sell */ @JsonProperty(JSON_PROPERTY_SELL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -332,7 +328,7 @@ public Amount getSell() { /** * sell * - * @param sell + * @param sell */ @JsonProperty(JSON_PROPERTY_SELL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -353,6 +349,7 @@ public ForexQuote signature(String signature) { /** * The signature to validate the integrity. + * * @return signature The signature to validate the integrity. */ @JsonProperty(JSON_PROPERTY_SIGNATURE) @@ -385,6 +382,7 @@ public ForexQuote source(String source) { /** * The source of the forex quote. + * * @return source The source of the forex quote. */ @JsonProperty(JSON_PROPERTY_SOURCE) @@ -417,6 +415,7 @@ public ForexQuote type(String type) { /** * The type of forex. + * * @return type The type of forex. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -449,6 +448,7 @@ public ForexQuote validTill(OffsetDateTime validTill) { /** * The date until which the forex quote is valid. + * * @return validTill The date until which the forex quote is valid. */ @JsonProperty(JSON_PROPERTY_VALID_TILL) @@ -468,9 +468,7 @@ public void setValidTill(OffsetDateTime validTill) { this.validTill = validTill; } - /** - * Return true if this ForexQuote object is equal to o. - */ + /** Return true if this ForexQuote object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -480,23 +478,35 @@ public boolean equals(Object o) { return false; } ForexQuote forexQuote = (ForexQuote) o; - return Objects.equals(this.account, forexQuote.account) && - Objects.equals(this.accountType, forexQuote.accountType) && - Objects.equals(this.baseAmount, forexQuote.baseAmount) && - Objects.equals(this.basePoints, forexQuote.basePoints) && - Objects.equals(this.buy, forexQuote.buy) && - Objects.equals(this.interbank, forexQuote.interbank) && - Objects.equals(this.reference, forexQuote.reference) && - Objects.equals(this.sell, forexQuote.sell) && - Objects.equals(this.signature, forexQuote.signature) && - Objects.equals(this.source, forexQuote.source) && - Objects.equals(this.type, forexQuote.type) && - Objects.equals(this.validTill, forexQuote.validTill); + return Objects.equals(this.account, forexQuote.account) + && Objects.equals(this.accountType, forexQuote.accountType) + && Objects.equals(this.baseAmount, forexQuote.baseAmount) + && Objects.equals(this.basePoints, forexQuote.basePoints) + && Objects.equals(this.buy, forexQuote.buy) + && Objects.equals(this.interbank, forexQuote.interbank) + && Objects.equals(this.reference, forexQuote.reference) + && Objects.equals(this.sell, forexQuote.sell) + && Objects.equals(this.signature, forexQuote.signature) + && Objects.equals(this.source, forexQuote.source) + && Objects.equals(this.type, forexQuote.type) + && Objects.equals(this.validTill, forexQuote.validTill); } @Override public int hashCode() { - return Objects.hash(account, accountType, baseAmount, basePoints, buy, interbank, reference, sell, signature, source, type, validTill); + return Objects.hash( + account, + accountType, + baseAmount, + basePoints, + buy, + interbank, + reference, + sell, + signature, + source, + type, + validTill); } @Override @@ -520,8 +530,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -530,7 +539,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ForexQuote given an JSON string * * @param jsonString JSON string @@ -540,11 +549,12 @@ private String toIndentedString(Object o) { public static ForexQuote fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ForexQuote.class); } -/** - * Convert an instance of ForexQuote to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ForexQuote to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/FraudCheckResult.java b/src/main/java/com/adyen/model/checkout/FraudCheckResult.java index b0f5a12da..03fde128b 100644 --- a/src/main/java/com/adyen/model/checkout/FraudCheckResult.java +++ b/src/main/java/com/adyen/model/checkout/FraudCheckResult.java @@ -2,37 +2,27 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * FraudCheckResult - */ +/** FraudCheckResult */ @JsonPropertyOrder({ FraudCheckResult.JSON_PROPERTY_ACCOUNT_SCORE, FraudCheckResult.JSON_PROPERTY_CHECK_ID, FraudCheckResult.JSON_PROPERTY_NAME }) - public class FraudCheckResult { public static final String JSON_PROPERTY_ACCOUNT_SCORE = "accountScore"; private Integer accountScore; @@ -43,8 +33,7 @@ public class FraudCheckResult { public static final String JSON_PROPERTY_NAME = "name"; private String name; - public FraudCheckResult() { - } + public FraudCheckResult() {} /** * The fraud score generated by the risk check. @@ -59,6 +48,7 @@ public FraudCheckResult accountScore(Integer accountScore) { /** * The fraud score generated by the risk check. + * * @return accountScore The fraud score generated by the risk check. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_SCORE) @@ -91,6 +81,7 @@ public FraudCheckResult checkId(Integer checkId) { /** * The ID of the risk check. + * * @return checkId The ID of the risk check. */ @JsonProperty(JSON_PROPERTY_CHECK_ID) @@ -123,6 +114,7 @@ public FraudCheckResult name(String name) { /** * The name of the risk check. + * * @return name The name of the risk check. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -142,9 +134,7 @@ public void setName(String name) { this.name = name; } - /** - * Return true if this FraudCheckResult object is equal to o. - */ + /** Return true if this FraudCheckResult object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +144,9 @@ public boolean equals(Object o) { return false; } FraudCheckResult fraudCheckResult = (FraudCheckResult) o; - return Objects.equals(this.accountScore, fraudCheckResult.accountScore) && - Objects.equals(this.checkId, fraudCheckResult.checkId) && - Objects.equals(this.name, fraudCheckResult.name); + return Objects.equals(this.accountScore, fraudCheckResult.accountScore) + && Objects.equals(this.checkId, fraudCheckResult.checkId) + && Objects.equals(this.name, fraudCheckResult.name); } @Override @@ -176,8 +166,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +175,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of FraudCheckResult given an JSON string * * @param jsonString JSON string @@ -196,11 +185,12 @@ private String toIndentedString(Object o) { public static FraudCheckResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, FraudCheckResult.class); } -/** - * Convert an instance of FraudCheckResult to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of FraudCheckResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/FraudResult.java b/src/main/java/com/adyen/model/checkout/FraudResult.java index 000ca6786..31cdaa0eb 100644 --- a/src/main/java/com/adyen/model/checkout/FraudResult.java +++ b/src/main/java/com/adyen/model/checkout/FraudResult.java @@ -2,39 +2,25 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.FraudCheckResult; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * FraudResult - */ -@JsonPropertyOrder({ - FraudResult.JSON_PROPERTY_ACCOUNT_SCORE, - FraudResult.JSON_PROPERTY_RESULTS -}) - +/** FraudResult */ +@JsonPropertyOrder({FraudResult.JSON_PROPERTY_ACCOUNT_SCORE, FraudResult.JSON_PROPERTY_RESULTS}) public class FraudResult { public static final String JSON_PROPERTY_ACCOUNT_SCORE = "accountScore"; private Integer accountScore; @@ -42,8 +28,7 @@ public class FraudResult { public static final String JSON_PROPERTY_RESULTS = "results"; private List results; - public FraudResult() { - } + public FraudResult() {} /** * The total fraud score generated by the risk checks. @@ -58,6 +43,7 @@ public FraudResult accountScore(Integer accountScore) { /** * The total fraud score generated by the risk checks. + * * @return accountScore The total fraud score generated by the risk checks. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_SCORE) @@ -98,6 +84,7 @@ public FraudResult addResultsItem(FraudCheckResult resultsItem) { /** * The result of the individual risk checks. + * * @return results The result of the individual risk checks. */ @JsonProperty(JSON_PROPERTY_RESULTS) @@ -117,9 +104,7 @@ public void setResults(List results) { this.results = results; } - /** - * Return true if this FraudResult object is equal to o. - */ + /** Return true if this FraudResult object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -129,8 +114,8 @@ public boolean equals(Object o) { return false; } FraudResult fraudResult = (FraudResult) o; - return Objects.equals(this.accountScore, fraudResult.accountScore) && - Objects.equals(this.results, fraudResult.results); + return Objects.equals(this.accountScore, fraudResult.accountScore) + && Objects.equals(this.results, fraudResult.results); } @Override @@ -149,8 +134,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -159,7 +143,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of FraudResult given an JSON string * * @param jsonString JSON string @@ -169,11 +153,12 @@ private String toIndentedString(Object o) { public static FraudResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, FraudResult.class); } -/** - * Convert an instance of FraudResult to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of FraudResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/FundOrigin.java b/src/main/java/com/adyen/model/checkout/FundOrigin.java index 0773b4b22..a1355a9b5 100644 --- a/src/main/java/com/adyen/model/checkout/FundOrigin.java +++ b/src/main/java/com/adyen/model/checkout/FundOrigin.java @@ -2,33 +2,22 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Address; -import com.adyen.model.checkout.Name; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * FundOrigin - */ +/** FundOrigin */ @JsonPropertyOrder({ FundOrigin.JSON_PROPERTY_BILLING_ADDRESS, FundOrigin.JSON_PROPERTY_SHOPPER_EMAIL, @@ -36,7 +25,6 @@ FundOrigin.JSON_PROPERTY_TELEPHONE_NUMBER, FundOrigin.JSON_PROPERTY_WALLET_IDENTIFIER }) - public class FundOrigin { public static final String JSON_PROPERTY_BILLING_ADDRESS = "billingAddress"; private Address billingAddress; @@ -53,13 +41,12 @@ public class FundOrigin { public static final String JSON_PROPERTY_WALLET_IDENTIFIER = "walletIdentifier"; private String walletIdentifier; - public FundOrigin() { - } + public FundOrigin() {} /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code FundOrigin} instance, allowing for method chaining */ public FundOrigin billingAddress(Address billingAddress) { @@ -69,7 +56,8 @@ public FundOrigin billingAddress(Address billingAddress) { /** * Get billingAddress - * @return billingAddress + * + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,7 +68,7 @@ public Address getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,6 +89,7 @@ public FundOrigin shopperEmail(String shopperEmail) { /** * The email address of the person funding the money. + * * @return shopperEmail The email address of the person funding the money. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -123,7 +112,7 @@ public void setShopperEmail(String shopperEmail) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code FundOrigin} instance, allowing for method chaining */ public FundOrigin shopperName(Name shopperName) { @@ -133,7 +122,8 @@ public FundOrigin shopperName(Name shopperName) { /** * Get shopperName - * @return shopperName + * + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,7 +134,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -165,6 +155,7 @@ public FundOrigin telephoneNumber(String telephoneNumber) { /** * The phone number of the person funding the money. + * * @return telephoneNumber The phone number of the person funding the money. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @@ -197,6 +188,7 @@ public FundOrigin walletIdentifier(String walletIdentifier) { /** * The unique identifier of the wallet where the funds are coming from. + * * @return walletIdentifier The unique identifier of the wallet where the funds are coming from. */ @JsonProperty(JSON_PROPERTY_WALLET_IDENTIFIER) @@ -216,9 +208,7 @@ public void setWalletIdentifier(String walletIdentifier) { this.walletIdentifier = walletIdentifier; } - /** - * Return true if this FundOrigin object is equal to o. - */ + /** Return true if this FundOrigin object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -228,16 +218,17 @@ public boolean equals(Object o) { return false; } FundOrigin fundOrigin = (FundOrigin) o; - return Objects.equals(this.billingAddress, fundOrigin.billingAddress) && - Objects.equals(this.shopperEmail, fundOrigin.shopperEmail) && - Objects.equals(this.shopperName, fundOrigin.shopperName) && - Objects.equals(this.telephoneNumber, fundOrigin.telephoneNumber) && - Objects.equals(this.walletIdentifier, fundOrigin.walletIdentifier); + return Objects.equals(this.billingAddress, fundOrigin.billingAddress) + && Objects.equals(this.shopperEmail, fundOrigin.shopperEmail) + && Objects.equals(this.shopperName, fundOrigin.shopperName) + && Objects.equals(this.telephoneNumber, fundOrigin.telephoneNumber) + && Objects.equals(this.walletIdentifier, fundOrigin.walletIdentifier); } @Override public int hashCode() { - return Objects.hash(billingAddress, shopperEmail, shopperName, telephoneNumber, walletIdentifier); + return Objects.hash( + billingAddress, shopperEmail, shopperName, telephoneNumber, walletIdentifier); } @Override @@ -254,8 +245,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -264,7 +254,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of FundOrigin given an JSON string * * @param jsonString JSON string @@ -274,11 +264,12 @@ private String toIndentedString(Object o) { public static FundOrigin fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, FundOrigin.class); } -/** - * Convert an instance of FundOrigin to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of FundOrigin to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/FundRecipient.java b/src/main/java/com/adyen/model/checkout/FundRecipient.java index 9e0a76762..37e1d3aae 100644 --- a/src/main/java/com/adyen/model/checkout/FundRecipient.java +++ b/src/main/java/com/adyen/model/checkout/FundRecipient.java @@ -2,35 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Address; -import com.adyen.model.checkout.CardDetails; -import com.adyen.model.checkout.Name; -import com.adyen.model.checkout.SubMerchant; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * FundRecipient - */ +/** FundRecipient */ @JsonPropertyOrder({ FundRecipient.JSON_PROPERTY_I_B_A_N, FundRecipient.JSON_PROPERTY_BILLING_ADDRESS, @@ -45,7 +36,6 @@ FundRecipient.JSON_PROPERTY_WALLET_OWNER_TAX_ID, FundRecipient.JSON_PROPERTY_WALLET_PURPOSE }) - public class FundRecipient { public static final String JSON_PROPERTY_I_B_A_N = "IBAN"; private String IBAN; @@ -80,11 +70,8 @@ public class FundRecipient { public static final String JSON_PROPERTY_WALLET_OWNER_TAX_ID = "walletOwnerTaxId"; private String walletOwnerTaxId; - /** - * The purpose of a digital wallet transaction. - */ + /** The purpose of a digital wallet transaction. */ public enum WalletPurposeEnum { - IDENTIFIEDBOLETO(String.valueOf("identifiedBoleto")), TRANSFERDIFFERENTWALLET(String.valueOf("transferDifferentWallet")), @@ -100,7 +87,7 @@ public enum WalletPurposeEnum { private String value; WalletPurposeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -121,7 +108,11 @@ public static WalletPurposeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("WalletPurposeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(WalletPurposeEnum.values())); + LOG.warning( + "WalletPurposeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(WalletPurposeEnum.values())); return null; } } @@ -129,8 +120,7 @@ public static WalletPurposeEnum fromValue(String value) { public static final String JSON_PROPERTY_WALLET_PURPOSE = "walletPurpose"; private WalletPurposeEnum walletPurpose; - public FundRecipient() { - } + public FundRecipient() {} /** * The IBAN of the bank account where the funds are being transferred to. @@ -145,6 +135,7 @@ public FundRecipient IBAN(String IBAN) { /** * The IBAN of the bank account where the funds are being transferred to. + * * @return IBAN The IBAN of the bank account where the funds are being transferred to. */ @JsonProperty(JSON_PROPERTY_I_B_A_N) @@ -167,7 +158,7 @@ public void setIBAN(String IBAN) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code FundRecipient} instance, allowing for method chaining */ public FundRecipient billingAddress(Address billingAddress) { @@ -177,7 +168,8 @@ public FundRecipient billingAddress(Address billingAddress) { /** * Get billingAddress - * @return billingAddress + * + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,7 +180,7 @@ public Address getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -199,7 +191,7 @@ public void setBillingAddress(Address billingAddress) { /** * paymentMethod * - * @param paymentMethod + * @param paymentMethod * @return the current {@code FundRecipient} instance, allowing for method chaining */ public FundRecipient paymentMethod(CardDetails paymentMethod) { @@ -209,7 +201,8 @@ public FundRecipient paymentMethod(CardDetails paymentMethod) { /** * Get paymentMethod - * @return paymentMethod + * + * @return paymentMethod */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -220,7 +213,7 @@ public CardDetails getPaymentMethod() { /** * paymentMethod * - * @param paymentMethod + * @param paymentMethod */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -241,6 +234,7 @@ public FundRecipient shopperEmail(String shopperEmail) { /** * The email address of the shopper. + * * @return shopperEmail The email address of the shopper. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -263,7 +257,7 @@ public void setShopperEmail(String shopperEmail) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code FundRecipient} instance, allowing for method chaining */ public FundRecipient shopperName(Name shopperName) { @@ -273,7 +267,8 @@ public FundRecipient shopperName(Name shopperName) { /** * Get shopperName - * @return shopperName + * + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,7 +279,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -293,9 +288,15 @@ public void setShopperName(Name shopperName) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example + * user ID or account ID. The value is case-sensitive and must be at least three characters. > + * Your reference must not include personally identifiable information (PII) such as name or email + * address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify + * this shopper, for example user ID or account ID. The value is case-sensitive and must be at + * least three characters. > Your reference must not include personally identifiable + * information (PII) such as name or email address. * @return the current {@code FundRecipient} instance, allowing for method chaining */ public FundRecipient shopperReference(String shopperReference) { @@ -304,8 +305,15 @@ public FundRecipient shopperReference(String shopperReference) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. - * @return shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example + * user ID or account ID. The value is case-sensitive and must be at least three characters. > + * Your reference must not include personally identifiable information (PII) such as name or email + * address. + * + * @return shopperReference Required for recurring payments. Your reference to uniquely identify + * this shopper, for example user ID or account ID. The value is case-sensitive and must be at + * least three characters. > Your reference must not include personally identifiable + * information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -314,9 +322,15 @@ public String getShopperReference() { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example + * user ID or account ID. The value is case-sensitive and must be at least three characters. > + * Your reference must not include personally identifiable information (PII) such as name or email + * address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify + * this shopper, for example user ID or account ID. The value is case-sensitive and must be at + * least three characters. > Your reference must not include personally identifiable + * information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -325,9 +339,11 @@ public void setShopperReference(String shopperReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code FundRecipient} instance, allowing for method chaining */ public FundRecipient storedPaymentMethodId(String storedPaymentMethodId) { @@ -336,8 +352,11 @@ public FundRecipient storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -346,9 +365,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -359,7 +380,7 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { /** * subMerchant * - * @param subMerchant + * @param subMerchant * @return the current {@code FundRecipient} instance, allowing for method chaining */ public FundRecipient subMerchant(SubMerchant subMerchant) { @@ -369,7 +390,8 @@ public FundRecipient subMerchant(SubMerchant subMerchant) { /** * Get subMerchant - * @return subMerchant + * + * @return subMerchant */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -380,7 +402,7 @@ public SubMerchant getSubMerchant() { /** * subMerchant * - * @param subMerchant + * @param subMerchant */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -401,6 +423,7 @@ public FundRecipient telephoneNumber(String telephoneNumber) { /** * The telephone number of the shopper. + * * @return telephoneNumber The telephone number of the shopper. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @@ -421,9 +444,11 @@ public void setTelephoneNumber(String telephoneNumber) { } /** - * The unique identifier for the wallet the funds are being transferred to. You can use the shopper reference or any other identifier. + * The unique identifier for the wallet the funds are being transferred to. You can use the + * shopper reference or any other identifier. * - * @param walletIdentifier The unique identifier for the wallet the funds are being transferred to. You can use the shopper reference or any other identifier. + * @param walletIdentifier The unique identifier for the wallet the funds are being transferred + * to. You can use the shopper reference or any other identifier. * @return the current {@code FundRecipient} instance, allowing for method chaining */ public FundRecipient walletIdentifier(String walletIdentifier) { @@ -432,8 +457,11 @@ public FundRecipient walletIdentifier(String walletIdentifier) { } /** - * The unique identifier for the wallet the funds are being transferred to. You can use the shopper reference or any other identifier. - * @return walletIdentifier The unique identifier for the wallet the funds are being transferred to. You can use the shopper reference or any other identifier. + * The unique identifier for the wallet the funds are being transferred to. You can use the + * shopper reference or any other identifier. + * + * @return walletIdentifier The unique identifier for the wallet the funds are being transferred + * to. You can use the shopper reference or any other identifier. */ @JsonProperty(JSON_PROPERTY_WALLET_IDENTIFIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -442,9 +470,11 @@ public String getWalletIdentifier() { } /** - * The unique identifier for the wallet the funds are being transferred to. You can use the shopper reference or any other identifier. + * The unique identifier for the wallet the funds are being transferred to. You can use the + * shopper reference or any other identifier. * - * @param walletIdentifier The unique identifier for the wallet the funds are being transferred to. You can use the shopper reference or any other identifier. + * @param walletIdentifier The unique identifier for the wallet the funds are being transferred + * to. You can use the shopper reference or any other identifier. */ @JsonProperty(JSON_PROPERTY_WALLET_IDENTIFIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -465,6 +495,7 @@ public FundRecipient walletOwnerTaxId(String walletOwnerTaxId) { /** * The tax identifier of the person receiving the funds. + * * @return walletOwnerTaxId The tax identifier of the person receiving the funds. */ @JsonProperty(JSON_PROPERTY_WALLET_OWNER_TAX_ID) @@ -497,6 +528,7 @@ public FundRecipient walletPurpose(WalletPurposeEnum walletPurpose) { /** * The purpose of a digital wallet transaction. + * * @return walletPurpose The purpose of a digital wallet transaction. */ @JsonProperty(JSON_PROPERTY_WALLET_PURPOSE) @@ -516,9 +548,7 @@ public void setWalletPurpose(WalletPurposeEnum walletPurpose) { this.walletPurpose = walletPurpose; } - /** - * Return true if this FundRecipient object is equal to o. - */ + /** Return true if this FundRecipient object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -528,23 +558,35 @@ public boolean equals(Object o) { return false; } FundRecipient fundRecipient = (FundRecipient) o; - return Objects.equals(this.IBAN, fundRecipient.IBAN) && - Objects.equals(this.billingAddress, fundRecipient.billingAddress) && - Objects.equals(this.paymentMethod, fundRecipient.paymentMethod) && - Objects.equals(this.shopperEmail, fundRecipient.shopperEmail) && - Objects.equals(this.shopperName, fundRecipient.shopperName) && - Objects.equals(this.shopperReference, fundRecipient.shopperReference) && - Objects.equals(this.storedPaymentMethodId, fundRecipient.storedPaymentMethodId) && - Objects.equals(this.subMerchant, fundRecipient.subMerchant) && - Objects.equals(this.telephoneNumber, fundRecipient.telephoneNumber) && - Objects.equals(this.walletIdentifier, fundRecipient.walletIdentifier) && - Objects.equals(this.walletOwnerTaxId, fundRecipient.walletOwnerTaxId) && - Objects.equals(this.walletPurpose, fundRecipient.walletPurpose); + return Objects.equals(this.IBAN, fundRecipient.IBAN) + && Objects.equals(this.billingAddress, fundRecipient.billingAddress) + && Objects.equals(this.paymentMethod, fundRecipient.paymentMethod) + && Objects.equals(this.shopperEmail, fundRecipient.shopperEmail) + && Objects.equals(this.shopperName, fundRecipient.shopperName) + && Objects.equals(this.shopperReference, fundRecipient.shopperReference) + && Objects.equals(this.storedPaymentMethodId, fundRecipient.storedPaymentMethodId) + && Objects.equals(this.subMerchant, fundRecipient.subMerchant) + && Objects.equals(this.telephoneNumber, fundRecipient.telephoneNumber) + && Objects.equals(this.walletIdentifier, fundRecipient.walletIdentifier) + && Objects.equals(this.walletOwnerTaxId, fundRecipient.walletOwnerTaxId) + && Objects.equals(this.walletPurpose, fundRecipient.walletPurpose); } @Override public int hashCode() { - return Objects.hash(IBAN, billingAddress, paymentMethod, shopperEmail, shopperName, shopperReference, storedPaymentMethodId, subMerchant, telephoneNumber, walletIdentifier, walletOwnerTaxId, walletPurpose); + return Objects.hash( + IBAN, + billingAddress, + paymentMethod, + shopperEmail, + shopperName, + shopperReference, + storedPaymentMethodId, + subMerchant, + telephoneNumber, + walletIdentifier, + walletOwnerTaxId, + walletPurpose); } @Override @@ -557,7 +599,9 @@ public String toString() { sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" subMerchant: ").append(toIndentedString(subMerchant)).append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); sb.append(" walletIdentifier: ").append(toIndentedString(walletIdentifier)).append("\n"); @@ -568,8 +612,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -578,7 +621,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of FundRecipient given an JSON string * * @param jsonString JSON string @@ -588,11 +631,12 @@ private String toIndentedString(Object o) { public static FundRecipient fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, FundRecipient.class); } -/** - * Convert an instance of FundRecipient to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of FundRecipient to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/GenericIssuerPaymentMethodDetails.java b/src/main/java/com/adyen/model/checkout/GenericIssuerPaymentMethodDetails.java index 290bc77ba..4b036502d 100644 --- a/src/main/java/com/adyen/model/checkout/GenericIssuerPaymentMethodDetails.java +++ b/src/main/java/com/adyen/model/checkout/GenericIssuerPaymentMethodDetails.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * GenericIssuerPaymentMethodDetails - */ +/** GenericIssuerPaymentMethodDetails */ @JsonPropertyOrder({ GenericIssuerPaymentMethodDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, GenericIssuerPaymentMethodDetails.JSON_PROPERTY_ISSUER, @@ -34,7 +29,6 @@ GenericIssuerPaymentMethodDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, GenericIssuerPaymentMethodDetails.JSON_PROPERTY_TYPE }) - public class GenericIssuerPaymentMethodDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -49,11 +43,8 @@ public class GenericIssuerPaymentMethodDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** - * **genericissuer** - */ + /** **genericissuer** */ public enum TypeEnum { - ONLINEBANKING_PL(String.valueOf("onlineBanking_PL")), EPS(String.valueOf("eps")), @@ -67,7 +58,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -88,7 +79,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -96,14 +91,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public GenericIssuerPaymentMethodDetails() { - } + public GenericIssuerPaymentMethodDetails() {} /** * The checkout attempt identifier. * * @param checkoutAttemptId The checkout attempt identifier. - * @return the current {@code GenericIssuerPaymentMethodDetails} instance, allowing for method chaining + * @return the current {@code GenericIssuerPaymentMethodDetails} instance, allowing for method + * chaining */ public GenericIssuerPaymentMethodDetails checkoutAttemptId(String checkoutAttemptId) { this.checkoutAttemptId = checkoutAttemptId; @@ -112,6 +107,7 @@ public GenericIssuerPaymentMethodDetails checkoutAttemptId(String checkoutAttemp /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -135,7 +131,8 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { * The issuer id of the shopper's selected bank. * * @param issuer The issuer id of the shopper's selected bank. - * @return the current {@code GenericIssuerPaymentMethodDetails} instance, allowing for method chaining + * @return the current {@code GenericIssuerPaymentMethodDetails} instance, allowing for method + * chaining */ public GenericIssuerPaymentMethodDetails issuer(String issuer) { this.issuer = issuer; @@ -144,6 +141,7 @@ public GenericIssuerPaymentMethodDetails issuer(String issuer) { /** * The issuer id of the shopper's selected bank. + * * @return issuer The issuer id of the shopper's selected bank. */ @JsonProperty(JSON_PROPERTY_ISSUER) @@ -164,23 +162,28 @@ public void setIssuer(String issuer) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. - * @return the current {@code GenericIssuerPaymentMethodDetails} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @return the current {@code GenericIssuerPaymentMethodDetails} instance, allowing for method + * chaining + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - public GenericIssuerPaymentMethodDetails recurringDetailReference(String recurringDetailReference) { + public GenericIssuerPaymentMethodDetails recurringDetailReference( + String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; return this; } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -191,12 +194,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -206,10 +209,13 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. - * @return the current {@code GenericIssuerPaymentMethodDetails} instance, allowing for method chaining + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. + * @return the current {@code GenericIssuerPaymentMethodDetails} instance, allowing for method + * chaining */ public GenericIssuerPaymentMethodDetails storedPaymentMethodId(String storedPaymentMethodId) { this.storedPaymentMethodId = storedPaymentMethodId; @@ -217,8 +223,11 @@ public GenericIssuerPaymentMethodDetails storedPaymentMethodId(String storedPaym } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -227,9 +236,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -241,7 +252,8 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { * **genericissuer** * * @param type **genericissuer** - * @return the current {@code GenericIssuerPaymentMethodDetails} instance, allowing for method chaining + * @return the current {@code GenericIssuerPaymentMethodDetails} instance, allowing for method + * chaining */ public GenericIssuerPaymentMethodDetails type(TypeEnum type) { this.type = type; @@ -250,6 +262,7 @@ public GenericIssuerPaymentMethodDetails type(TypeEnum type) { /** * **genericissuer** + * * @return type **genericissuer** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -269,9 +282,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this GenericIssuerPaymentMethodDetails object is equal to o. - */ + /** Return true if this GenericIssuerPaymentMethodDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -280,17 +291,23 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - GenericIssuerPaymentMethodDetails genericIssuerPaymentMethodDetails = (GenericIssuerPaymentMethodDetails) o; - return Objects.equals(this.checkoutAttemptId, genericIssuerPaymentMethodDetails.checkoutAttemptId) && - Objects.equals(this.issuer, genericIssuerPaymentMethodDetails.issuer) && - Objects.equals(this.recurringDetailReference, genericIssuerPaymentMethodDetails.recurringDetailReference) && - Objects.equals(this.storedPaymentMethodId, genericIssuerPaymentMethodDetails.storedPaymentMethodId) && - Objects.equals(this.type, genericIssuerPaymentMethodDetails.type); + GenericIssuerPaymentMethodDetails genericIssuerPaymentMethodDetails = + (GenericIssuerPaymentMethodDetails) o; + return Objects.equals( + this.checkoutAttemptId, genericIssuerPaymentMethodDetails.checkoutAttemptId) + && Objects.equals(this.issuer, genericIssuerPaymentMethodDetails.issuer) + && Objects.equals( + this.recurringDetailReference, + genericIssuerPaymentMethodDetails.recurringDetailReference) + && Objects.equals( + this.storedPaymentMethodId, genericIssuerPaymentMethodDetails.storedPaymentMethodId) + && Objects.equals(this.type, genericIssuerPaymentMethodDetails.type); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, issuer, recurringDetailReference, storedPaymentMethodId, type); + return Objects.hash( + checkoutAttemptId, issuer, recurringDetailReference, storedPaymentMethodId, type); } @Override @@ -299,16 +316,19 @@ public String toString() { sb.append("class GenericIssuerPaymentMethodDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" issuer: ").append(toIndentedString(issuer)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -317,21 +337,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of GenericIssuerPaymentMethodDetails given an JSON string * * @param jsonString JSON string * @return An instance of GenericIssuerPaymentMethodDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to GenericIssuerPaymentMethodDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to + * GenericIssuerPaymentMethodDetails */ - public static GenericIssuerPaymentMethodDetails fromJson(String jsonString) throws JsonProcessingException { + public static GenericIssuerPaymentMethodDetails fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GenericIssuerPaymentMethodDetails.class); } -/** - * Convert an instance of GenericIssuerPaymentMethodDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of GenericIssuerPaymentMethodDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/GooglePayDetails.java b/src/main/java/com/adyen/model/checkout/GooglePayDetails.java index 0a2166058..c5092a4a2 100644 --- a/src/main/java/com/adyen/model/checkout/GooglePayDetails.java +++ b/src/main/java/com/adyen/model/checkout/GooglePayDetails.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * GooglePayDetails - */ +/** GooglePayDetails */ @JsonPropertyOrder({ GooglePayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, GooglePayDetails.JSON_PROPERTY_FUNDING_SOURCE, @@ -37,16 +32,15 @@ GooglePayDetails.JSON_PROPERTY_THREE_D_S2_SDK_VERSION, GooglePayDetails.JSON_PROPERTY_TYPE }) - public class GooglePayDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. */ public enum FundingSourceEnum { - CREDIT(String.valueOf("credit")), DEBIT(String.valueOf("debit")); @@ -56,7 +50,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -77,7 +71,11 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); + LOG.warning( + "FundingSourceEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -101,11 +99,8 @@ public static FundingSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S2_SDK_VERSION = "threeDS2SdkVersion"; private String threeDS2SdkVersion; - /** - * **googlepay**, **paywithgoogle** - */ + /** **googlepay**, **paywithgoogle** */ public enum TypeEnum { - GOOGLEPAY(String.valueOf("googlepay")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -113,7 +108,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -134,7 +129,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -142,8 +141,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public GooglePayDetails() { - } + public GooglePayDetails() {} /** * The checkout attempt identifier. @@ -158,6 +156,7 @@ public GooglePayDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -178,9 +177,12 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. * @return the current {@code GooglePayDetails} instance, allowing for method chaining */ public GooglePayDetails fundingSource(FundingSourceEnum fundingSource) { @@ -189,8 +191,12 @@ public GooglePayDetails fundingSource(FundingSourceEnum fundingSource) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. - * @return fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * + * @return fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -199,9 +205,12 @@ public FundingSourceEnum getFundingSource() { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -210,9 +219,9 @@ public void setFundingSource(FundingSourceEnum fundingSource) { } /** - * The selected payment card network. + * The selected payment card network. * - * @param googlePayCardNetwork The selected payment card network. + * @param googlePayCardNetwork The selected payment card network. * @return the current {@code GooglePayDetails} instance, allowing for method chaining */ public GooglePayDetails googlePayCardNetwork(String googlePayCardNetwork) { @@ -221,8 +230,9 @@ public GooglePayDetails googlePayCardNetwork(String googlePayCardNetwork) { } /** - * The selected payment card network. - * @return googlePayCardNetwork The selected payment card network. + * The selected payment card network. + * + * @return googlePayCardNetwork The selected payment card network. */ @JsonProperty(JSON_PROPERTY_GOOGLE_PAY_CARD_NETWORK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -231,9 +241,9 @@ public String getGooglePayCardNetwork() { } /** - * The selected payment card network. + * The selected payment card network. * - * @param googlePayCardNetwork The selected payment card network. + * @param googlePayCardNetwork The selected payment card network. */ @JsonProperty(JSON_PROPERTY_GOOGLE_PAY_CARD_NETWORK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,9 +252,13 @@ public void setGooglePayCardNetwork(String googlePayCardNetwork) { } /** - * The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. + * The `token` that you obtained from the [Google Pay + * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) + * `PaymentData` response. * - * @param googlePayToken The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. + * @param googlePayToken The `token` that you obtained from the [Google Pay + * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) + * `PaymentData` response. * @return the current {@code GooglePayDetails} instance, allowing for method chaining */ public GooglePayDetails googlePayToken(String googlePayToken) { @@ -253,8 +267,13 @@ public GooglePayDetails googlePayToken(String googlePayToken) { } /** - * The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. - * @return googlePayToken The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. + * The `token` that you obtained from the [Google Pay + * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) + * `PaymentData` response. + * + * @return googlePayToken The `token` that you obtained from the [Google Pay + * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) + * `PaymentData` response. */ @JsonProperty(JSON_PROPERTY_GOOGLE_PAY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -263,9 +282,13 @@ public String getGooglePayToken() { } /** - * The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. + * The `token` that you obtained from the [Google Pay + * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) + * `PaymentData` response. * - * @param googlePayToken The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. + * @param googlePayToken The `token` that you obtained from the [Google Pay + * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) + * `PaymentData` response. */ @JsonProperty(JSON_PROPERTY_GOOGLE_PAY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -274,13 +297,13 @@ public void setGooglePayToken(String googlePayToken) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code GooglePayDetails} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public GooglePayDetails recurringDetailReference(String recurringDetailReference) { @@ -289,8 +312,11 @@ public GooglePayDetails recurringDetailReference(String recurringDetailReference } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -301,12 +327,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -316,9 +342,11 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code GooglePayDetails} instance, allowing for method chaining */ public GooglePayDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -327,8 +355,11 @@ public GooglePayDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -337,9 +368,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -350,7 +383,8 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. * - * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. + * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile + * SDK. * @return the current {@code GooglePayDetails} instance, allowing for method chaining */ public GooglePayDetails threeDS2SdkVersion(String threeDS2SdkVersion) { @@ -360,7 +394,9 @@ public GooglePayDetails threeDS2SdkVersion(String threeDS2SdkVersion) { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. - * @return threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. + * + * @return threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile + * SDK. */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_SDK_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -371,7 +407,8 @@ public String getThreeDS2SdkVersion() { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. * - * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. + * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile + * SDK. */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_SDK_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -392,6 +429,7 @@ public GooglePayDetails type(TypeEnum type) { /** * **googlepay**, **paywithgoogle** + * * @return type **googlepay**, **paywithgoogle** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -411,9 +449,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this GooglePayDetails object is equal to o. - */ + /** Return true if this GooglePayDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -423,19 +459,27 @@ public boolean equals(Object o) { return false; } GooglePayDetails googlePayDetails = (GooglePayDetails) o; - return Objects.equals(this.checkoutAttemptId, googlePayDetails.checkoutAttemptId) && - Objects.equals(this.fundingSource, googlePayDetails.fundingSource) && - Objects.equals(this.googlePayCardNetwork, googlePayDetails.googlePayCardNetwork) && - Objects.equals(this.googlePayToken, googlePayDetails.googlePayToken) && - Objects.equals(this.recurringDetailReference, googlePayDetails.recurringDetailReference) && - Objects.equals(this.storedPaymentMethodId, googlePayDetails.storedPaymentMethodId) && - Objects.equals(this.threeDS2SdkVersion, googlePayDetails.threeDS2SdkVersion) && - Objects.equals(this.type, googlePayDetails.type); + return Objects.equals(this.checkoutAttemptId, googlePayDetails.checkoutAttemptId) + && Objects.equals(this.fundingSource, googlePayDetails.fundingSource) + && Objects.equals(this.googlePayCardNetwork, googlePayDetails.googlePayCardNetwork) + && Objects.equals(this.googlePayToken, googlePayDetails.googlePayToken) + && Objects.equals(this.recurringDetailReference, googlePayDetails.recurringDetailReference) + && Objects.equals(this.storedPaymentMethodId, googlePayDetails.storedPaymentMethodId) + && Objects.equals(this.threeDS2SdkVersion, googlePayDetails.threeDS2SdkVersion) + && Objects.equals(this.type, googlePayDetails.type); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, fundingSource, googlePayCardNetwork, googlePayToken, recurringDetailReference, storedPaymentMethodId, threeDS2SdkVersion, type); + return Objects.hash( + checkoutAttemptId, + fundingSource, + googlePayCardNetwork, + googlePayToken, + recurringDetailReference, + storedPaymentMethodId, + threeDS2SdkVersion, + type); } @Override @@ -444,10 +488,16 @@ public String toString() { sb.append("class GooglePayDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); - sb.append(" googlePayCardNetwork: ").append(toIndentedString(googlePayCardNetwork)).append("\n"); + sb.append(" googlePayCardNetwork: ") + .append(toIndentedString(googlePayCardNetwork)) + .append("\n"); sb.append(" googlePayToken: ").append(toIndentedString(googlePayToken)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" threeDS2SdkVersion: ").append(toIndentedString(threeDS2SdkVersion)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -455,8 +505,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -465,7 +514,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of GooglePayDetails given an JSON string * * @param jsonString JSON string @@ -475,11 +524,12 @@ private String toIndentedString(Object o) { public static GooglePayDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GooglePayDetails.class); } -/** - * Convert an instance of GooglePayDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of GooglePayDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/GooglePayDonations.java b/src/main/java/com/adyen/model/checkout/GooglePayDonations.java index 746ca6ccc..06fc459bb 100644 --- a/src/main/java/com/adyen/model/checkout/GooglePayDonations.java +++ b/src/main/java/com/adyen/model/checkout/GooglePayDonations.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * GooglePayDonations - */ +/** GooglePayDonations */ @JsonPropertyOrder({ GooglePayDonations.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, GooglePayDonations.JSON_PROPERTY_FUNDING_SOURCE, @@ -37,16 +32,15 @@ GooglePayDonations.JSON_PROPERTY_THREE_D_S2_SDK_VERSION, GooglePayDonations.JSON_PROPERTY_TYPE }) - public class GooglePayDonations { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. */ public enum FundingSourceEnum { - CREDIT(String.valueOf("credit")), DEBIT(String.valueOf("debit")); @@ -56,7 +50,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -77,7 +71,11 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); + LOG.warning( + "FundingSourceEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -101,11 +99,8 @@ public static FundingSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S2_SDK_VERSION = "threeDS2SdkVersion"; private String threeDS2SdkVersion; - /** - * **googlepay**, **paywithgoogle** - */ + /** **googlepay**, **paywithgoogle** */ public enum TypeEnum { - GOOGLEPAY(String.valueOf("googlepay")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -113,7 +108,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -134,7 +129,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -142,8 +141,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public GooglePayDonations() { - } + public GooglePayDonations() {} /** * The checkout attempt identifier. @@ -158,6 +156,7 @@ public GooglePayDonations checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -178,9 +177,12 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. * @return the current {@code GooglePayDonations} instance, allowing for method chaining */ public GooglePayDonations fundingSource(FundingSourceEnum fundingSource) { @@ -189,8 +191,12 @@ public GooglePayDonations fundingSource(FundingSourceEnum fundingSource) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. - * @return fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * + * @return fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -199,9 +205,12 @@ public FundingSourceEnum getFundingSource() { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -210,9 +219,9 @@ public void setFundingSource(FundingSourceEnum fundingSource) { } /** - * The selected payment card network. + * The selected payment card network. * - * @param googlePayCardNetwork The selected payment card network. + * @param googlePayCardNetwork The selected payment card network. * @return the current {@code GooglePayDonations} instance, allowing for method chaining */ public GooglePayDonations googlePayCardNetwork(String googlePayCardNetwork) { @@ -221,8 +230,9 @@ public GooglePayDonations googlePayCardNetwork(String googlePayCardNetwork) { } /** - * The selected payment card network. - * @return googlePayCardNetwork The selected payment card network. + * The selected payment card network. + * + * @return googlePayCardNetwork The selected payment card network. */ @JsonProperty(JSON_PROPERTY_GOOGLE_PAY_CARD_NETWORK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -231,9 +241,9 @@ public String getGooglePayCardNetwork() { } /** - * The selected payment card network. + * The selected payment card network. * - * @param googlePayCardNetwork The selected payment card network. + * @param googlePayCardNetwork The selected payment card network. */ @JsonProperty(JSON_PROPERTY_GOOGLE_PAY_CARD_NETWORK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,9 +252,13 @@ public void setGooglePayCardNetwork(String googlePayCardNetwork) { } /** - * The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. + * The `token` that you obtained from the [Google Pay + * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) + * `PaymentData` response. * - * @param googlePayToken The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. + * @param googlePayToken The `token` that you obtained from the [Google Pay + * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) + * `PaymentData` response. * @return the current {@code GooglePayDonations} instance, allowing for method chaining */ public GooglePayDonations googlePayToken(String googlePayToken) { @@ -253,8 +267,13 @@ public GooglePayDonations googlePayToken(String googlePayToken) { } /** - * The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. - * @return googlePayToken The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. + * The `token` that you obtained from the [Google Pay + * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) + * `PaymentData` response. + * + * @return googlePayToken The `token` that you obtained from the [Google Pay + * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) + * `PaymentData` response. */ @JsonProperty(JSON_PROPERTY_GOOGLE_PAY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -263,9 +282,13 @@ public String getGooglePayToken() { } /** - * The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. + * The `token` that you obtained from the [Google Pay + * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) + * `PaymentData` response. * - * @param googlePayToken The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. + * @param googlePayToken The `token` that you obtained from the [Google Pay + * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) + * `PaymentData` response. */ @JsonProperty(JSON_PROPERTY_GOOGLE_PAY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -274,13 +297,13 @@ public void setGooglePayToken(String googlePayToken) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code GooglePayDonations} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public GooglePayDonations recurringDetailReference(String recurringDetailReference) { @@ -289,8 +312,11 @@ public GooglePayDonations recurringDetailReference(String recurringDetailReferen } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -301,12 +327,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -316,9 +342,11 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code GooglePayDonations} instance, allowing for method chaining */ public GooglePayDonations storedPaymentMethodId(String storedPaymentMethodId) { @@ -327,8 +355,11 @@ public GooglePayDonations storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -337,9 +368,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -350,7 +383,8 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. * - * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. + * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile + * SDK. * @return the current {@code GooglePayDonations} instance, allowing for method chaining */ public GooglePayDonations threeDS2SdkVersion(String threeDS2SdkVersion) { @@ -360,7 +394,9 @@ public GooglePayDonations threeDS2SdkVersion(String threeDS2SdkVersion) { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. - * @return threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. + * + * @return threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile + * SDK. */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_SDK_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -371,7 +407,8 @@ public String getThreeDS2SdkVersion() { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. * - * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. + * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile + * SDK. */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_SDK_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -392,6 +429,7 @@ public GooglePayDonations type(TypeEnum type) { /** * **googlepay**, **paywithgoogle** + * * @return type **googlepay**, **paywithgoogle** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -411,9 +449,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this GooglePayDonations object is equal to o. - */ + /** Return true if this GooglePayDonations object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -423,19 +459,28 @@ public boolean equals(Object o) { return false; } GooglePayDonations googlePayDonations = (GooglePayDonations) o; - return Objects.equals(this.checkoutAttemptId, googlePayDonations.checkoutAttemptId) && - Objects.equals(this.fundingSource, googlePayDonations.fundingSource) && - Objects.equals(this.googlePayCardNetwork, googlePayDonations.googlePayCardNetwork) && - Objects.equals(this.googlePayToken, googlePayDonations.googlePayToken) && - Objects.equals(this.recurringDetailReference, googlePayDonations.recurringDetailReference) && - Objects.equals(this.storedPaymentMethodId, googlePayDonations.storedPaymentMethodId) && - Objects.equals(this.threeDS2SdkVersion, googlePayDonations.threeDS2SdkVersion) && - Objects.equals(this.type, googlePayDonations.type); + return Objects.equals(this.checkoutAttemptId, googlePayDonations.checkoutAttemptId) + && Objects.equals(this.fundingSource, googlePayDonations.fundingSource) + && Objects.equals(this.googlePayCardNetwork, googlePayDonations.googlePayCardNetwork) + && Objects.equals(this.googlePayToken, googlePayDonations.googlePayToken) + && Objects.equals( + this.recurringDetailReference, googlePayDonations.recurringDetailReference) + && Objects.equals(this.storedPaymentMethodId, googlePayDonations.storedPaymentMethodId) + && Objects.equals(this.threeDS2SdkVersion, googlePayDonations.threeDS2SdkVersion) + && Objects.equals(this.type, googlePayDonations.type); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, fundingSource, googlePayCardNetwork, googlePayToken, recurringDetailReference, storedPaymentMethodId, threeDS2SdkVersion, type); + return Objects.hash( + checkoutAttemptId, + fundingSource, + googlePayCardNetwork, + googlePayToken, + recurringDetailReference, + storedPaymentMethodId, + threeDS2SdkVersion, + type); } @Override @@ -444,10 +489,16 @@ public String toString() { sb.append("class GooglePayDonations {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); - sb.append(" googlePayCardNetwork: ").append(toIndentedString(googlePayCardNetwork)).append("\n"); + sb.append(" googlePayCardNetwork: ") + .append(toIndentedString(googlePayCardNetwork)) + .append("\n"); sb.append(" googlePayToken: ").append(toIndentedString(googlePayToken)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" threeDS2SdkVersion: ").append(toIndentedString(threeDS2SdkVersion)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -455,8 +506,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -465,21 +515,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of GooglePayDonations given an JSON string * * @param jsonString JSON string * @return An instance of GooglePayDonations - * @throws JsonProcessingException if the JSON string is invalid with respect to GooglePayDonations + * @throws JsonProcessingException if the JSON string is invalid with respect to + * GooglePayDonations */ public static GooglePayDonations fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GooglePayDonations.class); } -/** - * Convert an instance of GooglePayDonations to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of GooglePayDonations to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/IdealDetails.java b/src/main/java/com/adyen/model/checkout/IdealDetails.java index 62a985d01..6395e4994 100644 --- a/src/main/java/com/adyen/model/checkout/IdealDetails.java +++ b/src/main/java/com/adyen/model/checkout/IdealDetails.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * IdealDetails - */ +/** IdealDetails */ @JsonPropertyOrder({ IdealDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, IdealDetails.JSON_PROPERTY_ISSUER, @@ -34,7 +29,6 @@ IdealDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, IdealDetails.JSON_PROPERTY_TYPE }) - public class IdealDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -49,11 +43,8 @@ public class IdealDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** - * **ideal** - */ + /** **ideal** */ public enum TypeEnum { - IDEAL(String.valueOf("ideal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -61,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -82,7 +73,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -90,8 +85,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public IdealDetails() { - } + public IdealDetails() {} /** * The checkout attempt identifier. @@ -106,6 +100,7 @@ public IdealDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -126,9 +121,11 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL issuer to preselect it. + * The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL + * issuer to preselect it. * - * @param issuer The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL issuer to preselect it. + * @param issuer The iDEAL issuer value of the shopper's selected bank. Set this to an **id** + * of an iDEAL issuer to preselect it. * @return the current {@code IdealDetails} instance, allowing for method chaining */ public IdealDetails issuer(String issuer) { @@ -137,8 +134,11 @@ public IdealDetails issuer(String issuer) { } /** - * The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL issuer to preselect it. - * @return issuer The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL issuer to preselect it. + * The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL + * issuer to preselect it. + * + * @return issuer The iDEAL issuer value of the shopper's selected bank. Set this to an **id** + * of an iDEAL issuer to preselect it. */ @JsonProperty(JSON_PROPERTY_ISSUER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,9 +147,11 @@ public String getIssuer() { } /** - * The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL issuer to preselect it. + * The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL + * issuer to preselect it. * - * @param issuer The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL issuer to preselect it. + * @param issuer The iDEAL issuer value of the shopper's selected bank. Set this to an **id** + * of an iDEAL issuer to preselect it. */ @JsonProperty(JSON_PROPERTY_ISSUER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,13 +160,13 @@ public void setIssuer(String issuer) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code IdealDetails} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public IdealDetails recurringDetailReference(String recurringDetailReference) { @@ -173,8 +175,11 @@ public IdealDetails recurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -185,12 +190,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -200,9 +205,11 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code IdealDetails} instance, allowing for method chaining */ public IdealDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -211,8 +218,11 @@ public IdealDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,9 +231,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,6 +256,7 @@ public IdealDetails type(TypeEnum type) { /** * **ideal** + * * @return type **ideal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -263,9 +276,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this IdealDetails object is equal to o. - */ + /** Return true if this IdealDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -275,16 +286,17 @@ public boolean equals(Object o) { return false; } IdealDetails idealDetails = (IdealDetails) o; - return Objects.equals(this.checkoutAttemptId, idealDetails.checkoutAttemptId) && - Objects.equals(this.issuer, idealDetails.issuer) && - Objects.equals(this.recurringDetailReference, idealDetails.recurringDetailReference) && - Objects.equals(this.storedPaymentMethodId, idealDetails.storedPaymentMethodId) && - Objects.equals(this.type, idealDetails.type); + return Objects.equals(this.checkoutAttemptId, idealDetails.checkoutAttemptId) + && Objects.equals(this.issuer, idealDetails.issuer) + && Objects.equals(this.recurringDetailReference, idealDetails.recurringDetailReference) + && Objects.equals(this.storedPaymentMethodId, idealDetails.storedPaymentMethodId) + && Objects.equals(this.type, idealDetails.type); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, issuer, recurringDetailReference, storedPaymentMethodId, type); + return Objects.hash( + checkoutAttemptId, issuer, recurringDetailReference, storedPaymentMethodId, type); } @Override @@ -293,16 +305,19 @@ public String toString() { sb.append("class IdealDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" issuer: ").append(toIndentedString(issuer)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -311,7 +326,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of IdealDetails given an JSON string * * @param jsonString JSON string @@ -321,11 +336,12 @@ private String toIndentedString(Object o) { public static IdealDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, IdealDetails.class); } -/** - * Convert an instance of IdealDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of IdealDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/IdealDonations.java b/src/main/java/com/adyen/model/checkout/IdealDonations.java index bf858dbeb..069c8661a 100644 --- a/src/main/java/com/adyen/model/checkout/IdealDonations.java +++ b/src/main/java/com/adyen/model/checkout/IdealDonations.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * IdealDonations - */ +/** IdealDonations */ @JsonPropertyOrder({ IdealDonations.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, IdealDonations.JSON_PROPERTY_ISSUER, @@ -34,7 +29,6 @@ IdealDonations.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, IdealDonations.JSON_PROPERTY_TYPE }) - public class IdealDonations { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -49,11 +43,8 @@ public class IdealDonations { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** - * **ideal** - */ + /** **ideal** */ public enum TypeEnum { - IDEAL(String.valueOf("ideal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -61,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -82,7 +73,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -90,8 +85,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public IdealDonations() { - } + public IdealDonations() {} /** * The checkout attempt identifier. @@ -106,6 +100,7 @@ public IdealDonations checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -126,9 +121,11 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL issuer to preselect it. + * The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL + * issuer to preselect it. * - * @param issuer The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL issuer to preselect it. + * @param issuer The iDEAL issuer value of the shopper's selected bank. Set this to an **id** + * of an iDEAL issuer to preselect it. * @return the current {@code IdealDonations} instance, allowing for method chaining */ public IdealDonations issuer(String issuer) { @@ -137,8 +134,11 @@ public IdealDonations issuer(String issuer) { } /** - * The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL issuer to preselect it. - * @return issuer The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL issuer to preselect it. + * The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL + * issuer to preselect it. + * + * @return issuer The iDEAL issuer value of the shopper's selected bank. Set this to an **id** + * of an iDEAL issuer to preselect it. */ @JsonProperty(JSON_PROPERTY_ISSUER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,9 +147,11 @@ public String getIssuer() { } /** - * The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL issuer to preselect it. + * The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL + * issuer to preselect it. * - * @param issuer The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL issuer to preselect it. + * @param issuer The iDEAL issuer value of the shopper's selected bank. Set this to an **id** + * of an iDEAL issuer to preselect it. */ @JsonProperty(JSON_PROPERTY_ISSUER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,13 +160,13 @@ public void setIssuer(String issuer) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code IdealDonations} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public IdealDonations recurringDetailReference(String recurringDetailReference) { @@ -173,8 +175,11 @@ public IdealDonations recurringDetailReference(String recurringDetailReference) } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -185,12 +190,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -200,9 +205,11 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code IdealDonations} instance, allowing for method chaining */ public IdealDonations storedPaymentMethodId(String storedPaymentMethodId) { @@ -211,8 +218,11 @@ public IdealDonations storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,9 +231,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,6 +256,7 @@ public IdealDonations type(TypeEnum type) { /** * **ideal** + * * @return type **ideal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -263,9 +276,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this IdealDonations object is equal to o. - */ + /** Return true if this IdealDonations object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -275,16 +286,17 @@ public boolean equals(Object o) { return false; } IdealDonations idealDonations = (IdealDonations) o; - return Objects.equals(this.checkoutAttemptId, idealDonations.checkoutAttemptId) && - Objects.equals(this.issuer, idealDonations.issuer) && - Objects.equals(this.recurringDetailReference, idealDonations.recurringDetailReference) && - Objects.equals(this.storedPaymentMethodId, idealDonations.storedPaymentMethodId) && - Objects.equals(this.type, idealDonations.type); + return Objects.equals(this.checkoutAttemptId, idealDonations.checkoutAttemptId) + && Objects.equals(this.issuer, idealDonations.issuer) + && Objects.equals(this.recurringDetailReference, idealDonations.recurringDetailReference) + && Objects.equals(this.storedPaymentMethodId, idealDonations.storedPaymentMethodId) + && Objects.equals(this.type, idealDonations.type); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, issuer, recurringDetailReference, storedPaymentMethodId, type); + return Objects.hash( + checkoutAttemptId, issuer, recurringDetailReference, storedPaymentMethodId, type); } @Override @@ -293,16 +305,19 @@ public String toString() { sb.append("class IdealDonations {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" issuer: ").append(toIndentedString(issuer)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -311,7 +326,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of IdealDonations given an JSON string * * @param jsonString JSON string @@ -321,11 +336,12 @@ private String toIndentedString(Object o) { public static IdealDonations fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, IdealDonations.class); } -/** - * Convert an instance of IdealDonations to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of IdealDonations to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/InputDetail.java b/src/main/java/com/adyen/model/checkout/InputDetail.java index fd9833682..efb11c939 100644 --- a/src/main/java/com/adyen/model/checkout/InputDetail.java +++ b/src/main/java/com/adyen/model/checkout/InputDetail.java @@ -2,37 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Item; -import com.adyen.model.checkout.SubInputDetail; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; -import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -/** - * InputDetail - */ +/** InputDetail */ @JsonPropertyOrder({ InputDetail.JSON_PROPERTY_CONFIGURATION, InputDetail.JSON_PROPERTY_DETAILS, @@ -44,7 +33,6 @@ InputDetail.JSON_PROPERTY_TYPE, InputDetail.JSON_PROPERTY_VALUE }) - public class InputDetail { public static final String JSON_PROPERTY_CONFIGURATION = "configuration"; private Map configuration; @@ -53,7 +41,7 @@ public class InputDetail { private List details; public static final String JSON_PROPERTY_INPUT_DETAILS = "inputDetails"; - @Deprecated // deprecated + @Deprecated // deprecated private List inputDetails; public static final String JSON_PROPERTY_ITEM_SEARCH_URL = "itemSearchUrl"; @@ -74,8 +62,7 @@ public class InputDetail { public static final String JSON_PROPERTY_VALUE = "value"; private String value; - public InputDetail() { - } + public InputDetail() {} /** * Configuration parameters for the required input. @@ -98,6 +85,7 @@ public InputDetail putConfigurationItem(String key, String configurationItem) { /** * Configuration parameters for the required input. + * * @return configuration Configuration parameters for the required input. */ @JsonProperty(JSON_PROPERTY_CONFIGURATION) @@ -138,6 +126,7 @@ public InputDetail addDetailsItem(SubInputDetail detailsItem) { /** * Input details can also be provided recursively. + * * @return details Input details can also be provided recursively. */ @JsonProperty(JSON_PROPERTY_DETAILS) @@ -162,10 +151,9 @@ public void setDetails(List details) { * * @param inputDetails Input details can also be provided recursively (deprecated). * @return the current {@code InputDetail} instance, allowing for method chaining - * - * @deprecated + * @deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated public InputDetail inputDetails(List inputDetails) { this.inputDetails = inputDetails; return this; @@ -181,10 +169,11 @@ public InputDetail addInputDetailsItem(SubInputDetail inputDetailsItem) { /** * Input details can also be provided recursively (deprecated). + * * @return inputDetails Input details can also be provided recursively (deprecated). - * @deprecated // deprecated + * @deprecated // deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated @JsonProperty(JSON_PROPERTY_INPUT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getInputDetails() { @@ -195,10 +184,9 @@ public List getInputDetails() { * Input details can also be provided recursively (deprecated). * * @param inputDetails Input details can also be provided recursively (deprecated). - * - * @deprecated + * @deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated @JsonProperty(JSON_PROPERTY_INPUT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInputDetails(List inputDetails) { @@ -218,6 +206,7 @@ public InputDetail itemSearchUrl(String itemSearchUrl) { /** * In case of a select, the URL from which to query the items. + * * @return itemSearchUrl In case of a select, the URL from which to query the items. */ @JsonProperty(JSON_PROPERTY_ITEM_SEARCH_URL) @@ -258,6 +247,7 @@ public InputDetail addItemsItem(Item itemsItem) { /** * In case of a select, the items to choose from. + * * @return items In case of a select, the items to choose from. */ @JsonProperty(JSON_PROPERTY_ITEMS) @@ -290,6 +280,7 @@ public InputDetail key(String key) { /** * The value to provide in the result. + * * @return key The value to provide in the result. */ @JsonProperty(JSON_PROPERTY_KEY) @@ -322,6 +313,7 @@ public InputDetail optional(Boolean optional) { /** * True if this input value is optional. + * * @return optional True if this input value is optional. */ @JsonProperty(JSON_PROPERTY_OPTIONAL) @@ -354,6 +346,7 @@ public InputDetail type(String type) { /** * The type of the required input. + * * @return type The type of the required input. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -386,6 +379,7 @@ public InputDetail value(String value) { /** * The value can be pre-filled, if available. + * * @return value The value can be pre-filled, if available. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -405,9 +399,7 @@ public void setValue(String value) { this.value = value; } - /** - * Return true if this InputDetail object is equal to o. - */ + /** Return true if this InputDetail object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -417,20 +409,21 @@ public boolean equals(Object o) { return false; } InputDetail inputDetail = (InputDetail) o; - return Objects.equals(this.configuration, inputDetail.configuration) && - Objects.equals(this.details, inputDetail.details) && - Objects.equals(this.inputDetails, inputDetail.inputDetails) && - Objects.equals(this.itemSearchUrl, inputDetail.itemSearchUrl) && - Objects.equals(this.items, inputDetail.items) && - Objects.equals(this.key, inputDetail.key) && - Objects.equals(this.optional, inputDetail.optional) && - Objects.equals(this.type, inputDetail.type) && - Objects.equals(this.value, inputDetail.value); + return Objects.equals(this.configuration, inputDetail.configuration) + && Objects.equals(this.details, inputDetail.details) + && Objects.equals(this.inputDetails, inputDetail.inputDetails) + && Objects.equals(this.itemSearchUrl, inputDetail.itemSearchUrl) + && Objects.equals(this.items, inputDetail.items) + && Objects.equals(this.key, inputDetail.key) + && Objects.equals(this.optional, inputDetail.optional) + && Objects.equals(this.type, inputDetail.type) + && Objects.equals(this.value, inputDetail.value); } @Override public int hashCode() { - return Objects.hash(configuration, details, inputDetails, itemSearchUrl, items, key, optional, type, value); + return Objects.hash( + configuration, details, inputDetails, itemSearchUrl, items, key, optional, type, value); } @Override @@ -451,8 +444,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -461,7 +453,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of InputDetail given an JSON string * * @param jsonString JSON string @@ -471,11 +463,12 @@ private String toIndentedString(Object o) { public static InputDetail fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, InputDetail.class); } -/** - * Convert an instance of InputDetail to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of InputDetail to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/InstallmentOption.java b/src/main/java/com/adyen/model/checkout/InstallmentOption.java index 0aba2f75e..93ecc477e 100644 --- a/src/main/java/com/adyen/model/checkout/InstallmentOption.java +++ b/src/main/java/com/adyen/model/checkout/InstallmentOption.java @@ -2,49 +2,40 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * InstallmentOption - */ +/** InstallmentOption */ @JsonPropertyOrder({ InstallmentOption.JSON_PROPERTY_MAX_VALUE, InstallmentOption.JSON_PROPERTY_PLANS, InstallmentOption.JSON_PROPERTY_PRESELECTED_VALUE, InstallmentOption.JSON_PROPERTY_VALUES }) - public class InstallmentOption { public static final String JSON_PROPERTY_MAX_VALUE = "maxValue"; private Integer maxValue; - /** - * Gets or Sets plans - */ + /** Gets or Sets plans */ public enum PlansEnum { - BONUS(String.valueOf("bonus")), BUYNOW_PAYLATER(String.valueOf("buynow_paylater")), @@ -70,7 +61,7 @@ public enum PlansEnum { private String value; PlansEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -91,7 +82,11 @@ public static PlansEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PlansEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PlansEnum.values())); + LOG.warning( + "PlansEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PlansEnum.values())); return null; } } @@ -105,8 +100,7 @@ public static PlansEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUES = "values"; private List values; - public InstallmentOption() { - } + public InstallmentOption() {} /** * The maximum number of installments offered for this payment method. @@ -121,6 +115,7 @@ public InstallmentOption maxValue(Integer maxValue) { /** * The maximum number of installments offered for this payment method. + * * @return maxValue The maximum number of installments offered for this payment method. */ @JsonProperty(JSON_PROPERTY_MAX_VALUE) @@ -141,9 +136,11 @@ public void setMaxValue(Integer maxValue) { } /** - * Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving** + * Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * + * **regular** * **revolving** * - * @param plans Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving** + * @param plans Defines the type of installment plan. If not set, defaults to **regular**. + * Possible values: * **regular** * **revolving** * @return the current {@code InstallmentOption} instance, allowing for method chaining */ public InstallmentOption plans(List plans) { @@ -160,8 +157,11 @@ public InstallmentOption addPlansItem(PlansEnum plansItem) { } /** - * Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving** - * @return plans Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving** + * Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * + * **regular** * **revolving** + * + * @return plans Defines the type of installment plan. If not set, defaults to **regular**. + * Possible values: * **regular** * **revolving** */ @JsonProperty(JSON_PROPERTY_PLANS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -170,9 +170,11 @@ public List getPlans() { } /** - * Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving** + * Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * + * **regular** * **revolving** * - * @param plans Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving** + * @param plans Defines the type of installment plan. If not set, defaults to **regular**. + * Possible values: * **regular** * **revolving** */ @JsonProperty(JSON_PROPERTY_PLANS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,6 +195,7 @@ public InstallmentOption preselectedValue(Integer preselectedValue) { /** * Preselected number of installments offered for this payment method. + * * @return preselectedValue Preselected number of installments offered for this payment method. */ @JsonProperty(JSON_PROPERTY_PRESELECTED_VALUE) @@ -213,9 +216,11 @@ public void setPreselectedValue(Integer preselectedValue) { } /** - * An array of the number of installments that the shopper can choose from. For example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. + * An array of the number of installments that the shopper can choose from. For example, + * **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. * - * @param values An array of the number of installments that the shopper can choose from. For example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. + * @param values An array of the number of installments that the shopper can choose from. For + * example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. * @return the current {@code InstallmentOption} instance, allowing for method chaining */ public InstallmentOption values(List values) { @@ -232,8 +237,11 @@ public InstallmentOption addValuesItem(Integer valuesItem) { } /** - * An array of the number of installments that the shopper can choose from. For example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. - * @return values An array of the number of installments that the shopper can choose from. For example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. + * An array of the number of installments that the shopper can choose from. For example, + * **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. + * + * @return values An array of the number of installments that the shopper can choose from. For + * example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. */ @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,9 +250,11 @@ public List getValues() { } /** - * An array of the number of installments that the shopper can choose from. For example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. + * An array of the number of installments that the shopper can choose from. For example, + * **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. * - * @param values An array of the number of installments that the shopper can choose from. For example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. + * @param values An array of the number of installments that the shopper can choose from. For + * example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. */ @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,9 +262,7 @@ public void setValues(List values) { this.values = values; } - /** - * Return true if this InstallmentOption object is equal to o. - */ + /** Return true if this InstallmentOption object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -264,10 +272,10 @@ public boolean equals(Object o) { return false; } InstallmentOption installmentOption = (InstallmentOption) o; - return Objects.equals(this.maxValue, installmentOption.maxValue) && - Objects.equals(this.plans, installmentOption.plans) && - Objects.equals(this.preselectedValue, installmentOption.preselectedValue) && - Objects.equals(this.values, installmentOption.values); + return Objects.equals(this.maxValue, installmentOption.maxValue) + && Objects.equals(this.plans, installmentOption.plans) + && Objects.equals(this.preselectedValue, installmentOption.preselectedValue) + && Objects.equals(this.values, installmentOption.values); } @Override @@ -288,8 +296,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -298,7 +305,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of InstallmentOption given an JSON string * * @param jsonString JSON string @@ -308,11 +315,12 @@ private String toIndentedString(Object o) { public static InstallmentOption fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, InstallmentOption.class); } -/** - * Convert an instance of InstallmentOption to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of InstallmentOption to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Installments.java b/src/main/java/com/adyen/model/checkout/Installments.java index ca99703b4..aadb2e868 100644 --- a/src/main/java/com/adyen/model/checkout/Installments.java +++ b/src/main/java/com/adyen/model/checkout/Installments.java @@ -2,46 +2,43 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * Installments - */ +/** Installments */ @JsonPropertyOrder({ Installments.JSON_PROPERTY_EXTRA, Installments.JSON_PROPERTY_PLAN, Installments.JSON_PROPERTY_VALUE }) - public class Installments { public static final String JSON_PROPERTY_EXTRA = "extra"; private Integer extra; /** - * The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. + * The installment plan, used for [card installments in + * Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). + * and + * [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). + * By default, this is set to **regular**. */ public enum PlanEnum { - BONUS(String.valueOf("bonus")), BUYNOW_PAYLATER(String.valueOf("buynow_paylater")), @@ -67,7 +64,7 @@ public enum PlanEnum { private String value; PlanEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -88,7 +85,11 @@ public static PlanEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PlanEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PlanEnum.values())); + LOG.warning( + "PlanEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PlanEnum.values())); return null; } } @@ -99,13 +100,16 @@ public static PlanEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUE = "value"; private Integer value; - public Installments() { - } + public Installments() {} /** - * Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. Used for [card installments in Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) + * Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. + * Used for [card installments in + * Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) * - * @param extra Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. Used for [card installments in Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) + * @param extra Defines the bonus percentage, refund percentage or if the transaction is Buy now + * Pay later. Used for [card installments in + * Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) * @return the current {@code Installments} instance, allowing for method chaining */ public Installments extra(Integer extra) { @@ -114,8 +118,13 @@ public Installments extra(Integer extra) { } /** - * Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. Used for [card installments in Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) - * @return extra Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. Used for [card installments in Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) + * Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. + * Used for [card installments in + * Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) + * + * @return extra Defines the bonus percentage, refund percentage or if the transaction is Buy now + * Pay later. Used for [card installments in + * Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) */ @JsonProperty(JSON_PROPERTY_EXTRA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,9 +133,13 @@ public Integer getExtra() { } /** - * Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. Used for [card installments in Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) + * Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. + * Used for [card installments in + * Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) * - * @param extra Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. Used for [card installments in Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) + * @param extra Defines the bonus percentage, refund percentage or if the transaction is Buy now + * Pay later. Used for [card installments in + * Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) */ @JsonProperty(JSON_PROPERTY_EXTRA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,9 +148,17 @@ public void setExtra(Integer extra) { } /** - * The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. + * The installment plan, used for [card installments in + * Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). + * and + * [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). + * By default, this is set to **regular**. * - * @param plan The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. + * @param plan The installment plan, used for [card installments in + * Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). + * and + * [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). + * By default, this is set to **regular**. * @return the current {@code Installments} instance, allowing for method chaining */ public Installments plan(PlanEnum plan) { @@ -146,8 +167,17 @@ public Installments plan(PlanEnum plan) { } /** - * The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. - * @return plan The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. + * The installment plan, used for [card installments in + * Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). + * and + * [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). + * By default, this is set to **regular**. + * + * @return plan The installment plan, used for [card installments in + * Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). + * and + * [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). + * By default, this is set to **regular**. */ @JsonProperty(JSON_PROPERTY_PLAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,9 +186,17 @@ public PlanEnum getPlan() { } /** - * The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. + * The installment plan, used for [card installments in + * Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). + * and + * [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). + * By default, this is set to **regular**. * - * @param plan The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. + * @param plan The installment plan, used for [card installments in + * Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). + * and + * [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). + * By default, this is set to **regular**. */ @JsonProperty(JSON_PROPERTY_PLAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,9 +205,15 @@ public void setPlan(PlanEnum plan) { } /** - * Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. This value can be zero for Installments processed in Mexico. + * Defines the number of installments. Usually, the maximum allowed number of installments is + * capped. For example, it may not be possible to split a payment in more than 24 installments. + * The acquirer sets this upper limit, so its value may vary. This value can be zero for + * Installments processed in Mexico. * - * @param value Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. This value can be zero for Installments processed in Mexico. + * @param value Defines the number of installments. Usually, the maximum allowed number of + * installments is capped. For example, it may not be possible to split a payment in more than + * 24 installments. The acquirer sets this upper limit, so its value may vary. This value can + * be zero for Installments processed in Mexico. * @return the current {@code Installments} instance, allowing for method chaining */ public Installments value(Integer value) { @@ -178,8 +222,15 @@ public Installments value(Integer value) { } /** - * Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. This value can be zero for Installments processed in Mexico. - * @return value Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. This value can be zero for Installments processed in Mexico. + * Defines the number of installments. Usually, the maximum allowed number of installments is + * capped. For example, it may not be possible to split a payment in more than 24 installments. + * The acquirer sets this upper limit, so its value may vary. This value can be zero for + * Installments processed in Mexico. + * + * @return value Defines the number of installments. Usually, the maximum allowed number of + * installments is capped. For example, it may not be possible to split a payment in more than + * 24 installments. The acquirer sets this upper limit, so its value may vary. This value can + * be zero for Installments processed in Mexico. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,9 +239,15 @@ public Integer getValue() { } /** - * Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. This value can be zero for Installments processed in Mexico. + * Defines the number of installments. Usually, the maximum allowed number of installments is + * capped. For example, it may not be possible to split a payment in more than 24 installments. + * The acquirer sets this upper limit, so its value may vary. This value can be zero for + * Installments processed in Mexico. * - * @param value Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. This value can be zero for Installments processed in Mexico. + * @param value Defines the number of installments. Usually, the maximum allowed number of + * installments is capped. For example, it may not be possible to split a payment in more than + * 24 installments. The acquirer sets this upper limit, so its value may vary. This value can + * be zero for Installments processed in Mexico. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,9 +255,7 @@ public void setValue(Integer value) { this.value = value; } - /** - * Return true if this Installments object is equal to o. - */ + /** Return true if this Installments object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -210,9 +265,9 @@ public boolean equals(Object o) { return false; } Installments installments = (Installments) o; - return Objects.equals(this.extra, installments.extra) && - Objects.equals(this.plan, installments.plan) && - Objects.equals(this.value, installments.value); + return Objects.equals(this.extra, installments.extra) + && Objects.equals(this.plan, installments.plan) + && Objects.equals(this.value, installments.value); } @Override @@ -232,8 +287,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -242,7 +296,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Installments given an JSON string * * @param jsonString JSON string @@ -252,11 +306,12 @@ private String toIndentedString(Object o) { public static Installments fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Installments.class); } -/** - * Convert an instance of Installments to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Installments to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/InvalidField.java b/src/main/java/com/adyen/model/checkout/InvalidField.java index 5c8a4160f..715211f87 100644 --- a/src/main/java/com/adyen/model/checkout/InvalidField.java +++ b/src/main/java/com/adyen/model/checkout/InvalidField.java @@ -2,37 +2,27 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * InvalidField - */ +/** InvalidField */ @JsonPropertyOrder({ InvalidField.JSON_PROPERTY_NAME, InvalidField.JSON_PROPERTY_VALUE, InvalidField.JSON_PROPERTY_MESSAGE }) - public class InvalidField { public static final String JSON_PROPERTY_NAME = "name"; private String name; @@ -43,8 +33,7 @@ public class InvalidField { public static final String JSON_PROPERTY_MESSAGE = "message"; private String message; - public InvalidField() { - } + public InvalidField() {} /** * The field that has an invalid value. @@ -59,6 +48,7 @@ public InvalidField name(String name) { /** * The field that has an invalid value. + * * @return name The field that has an invalid value. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -91,6 +81,7 @@ public InvalidField value(String value) { /** * The invalid value. + * * @return value The invalid value. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -123,6 +114,7 @@ public InvalidField message(String message) { /** * Description of the validation error. + * * @return message Description of the validation error. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -142,9 +134,7 @@ public void setMessage(String message) { this.message = message; } - /** - * Return true if this InvalidField object is equal to o. - */ + /** Return true if this InvalidField object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +144,9 @@ public boolean equals(Object o) { return false; } InvalidField invalidField = (InvalidField) o; - return Objects.equals(this.name, invalidField.name) && - Objects.equals(this.value, invalidField.value) && - Objects.equals(this.message, invalidField.message); + return Objects.equals(this.name, invalidField.name) + && Objects.equals(this.value, invalidField.value) + && Objects.equals(this.message, invalidField.message); } @Override @@ -176,8 +166,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +175,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of InvalidField given an JSON string * * @param jsonString JSON string @@ -196,11 +185,12 @@ private String toIndentedString(Object o) { public static InvalidField fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, InvalidField.class); } -/** - * Convert an instance of InvalidField to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of InvalidField to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Item.java b/src/main/java/com/adyen/model/checkout/Item.java index 50db83359..49ba2aae0 100644 --- a/src/main/java/com/adyen/model/checkout/Item.java +++ b/src/main/java/com/adyen/model/checkout/Item.java @@ -2,36 +2,23 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Item - */ -@JsonPropertyOrder({ - Item.JSON_PROPERTY_ID, - Item.JSON_PROPERTY_NAME -}) - +/** Item */ +@JsonPropertyOrder({Item.JSON_PROPERTY_ID, Item.JSON_PROPERTY_NAME}) public class Item { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -39,8 +26,7 @@ public class Item { public static final String JSON_PROPERTY_NAME = "name"; private String name; - public Item() { - } + public Item() {} /** * The value to provide in the result. @@ -55,6 +41,7 @@ public Item id(String id) { /** * The value to provide in the result. + * * @return id The value to provide in the result. */ @JsonProperty(JSON_PROPERTY_ID) @@ -87,6 +74,7 @@ public Item name(String name) { /** * The display name. + * * @return name The display name. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -106,9 +94,7 @@ public void setName(String name) { this.name = name; } - /** - * Return true if this Item object is equal to o. - */ + /** Return true if this Item object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +104,7 @@ public boolean equals(Object o) { return false; } Item item = (Item) o; - return Objects.equals(this.id, item.id) && - Objects.equals(this.name, item.name); + return Objects.equals(this.id, item.id) && Objects.equals(this.name, item.name); } @Override @@ -138,8 +123,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +132,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Item given an JSON string * * @param jsonString JSON string @@ -158,11 +142,12 @@ private String toIndentedString(Object o) { public static Item fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Item.class); } -/** - * Convert an instance of Item to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Item to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/JSON.java b/src/main/java/com/adyen/model/checkout/JSON.java index dc6bc5042..80cec4f24 100644 --- a/src/main/java/com/adyen/model/checkout/JSON.java +++ b/src/main/java/com/adyen/model/checkout/JSON.java @@ -1,21 +1,18 @@ package com.adyen.model.checkout; -import com.adyen.serializer.ByteArraySerializer; import com.adyen.serializer.ByteArrayDeserializer; +import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import com.adyen.model.checkout.*; - +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -40,6 +37,7 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. + * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -56,11 +54,13 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { return mapper; } + public static ObjectMapper getMapper() { + return mapper; + } /** - * Returns the target model class that should be used to deserialize the input data. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,9 +73,7 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** - * Helper class to register the discriminator mappings. - */ + /** Helper class to register the discriminator mappings. */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -117,9 +115,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. - * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. This + * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -164,13 +162,14 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, - * so it's not possible to use the instanceof keyword. + *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so + * it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf( + Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -194,59 +193,58 @@ public static boolean isInstanceOf(Class modelClass, Object inst, Set, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); + /** A map of discriminators for all model classes. */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = + new HashMap, ClassDiscriminatorMapping>(); - /** - * A map of oneOf/anyOf descendants for each model class. - */ + /** A map of oneOf/anyOf descendants for each model class. */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator( + Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = + new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants(Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants( + Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static - { + static { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/checkout/KlarnaDetails.java b/src/main/java/com/adyen/model/checkout/KlarnaDetails.java index 96656584e..0e9cb4f44 100644 --- a/src/main/java/com/adyen/model/checkout/KlarnaDetails.java +++ b/src/main/java/com/adyen/model/checkout/KlarnaDetails.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * KlarnaDetails - */ +/** KlarnaDetails */ @JsonPropertyOrder({ KlarnaDetails.JSON_PROPERTY_BILLING_ADDRESS, KlarnaDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, @@ -37,7 +32,6 @@ KlarnaDetails.JSON_PROPERTY_SUBTYPE, KlarnaDetails.JSON_PROPERTY_TYPE }) - public class KlarnaDetails { public static final String JSON_PROPERTY_BILLING_ADDRESS = "billingAddress"; private String billingAddress; @@ -61,11 +55,8 @@ public class KlarnaDetails { public static final String JSON_PROPERTY_SUBTYPE = "subtype"; private String subtype; - /** - * **klarna** - */ + /** **klarna** */ public enum TypeEnum { - KLARNA(String.valueOf("klarna")), KLARNAPAYMENTS(String.valueOf("klarnapayments")), @@ -85,7 +76,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -106,7 +97,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -114,8 +109,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public KlarnaDetails() { - } + public KlarnaDetails() {} /** * The address where to send the invoice. @@ -130,6 +124,7 @@ public KlarnaDetails billingAddress(String billingAddress) { /** * The address where to send the invoice. + * * @return billingAddress The address where to send the invoice. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @@ -162,6 +157,7 @@ public KlarnaDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -194,6 +190,7 @@ public KlarnaDetails deliveryAddress(String deliveryAddress) { /** * The address where the goods should be delivered. + * * @return deliveryAddress The address where the goods should be delivered. */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @@ -226,6 +223,7 @@ public KlarnaDetails personalDetails(String personalDetails) { /** * Shopper name, date of birth, phone number, and email address. + * * @return personalDetails Shopper name, date of birth, phone number, and email address. */ @JsonProperty(JSON_PROPERTY_PERSONAL_DETAILS) @@ -246,13 +244,13 @@ public void setPersonalDetails(String personalDetails) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code KlarnaDetails} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public KlarnaDetails recurringDetailReference(String recurringDetailReference) { @@ -261,8 +259,11 @@ public KlarnaDetails recurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -273,12 +274,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -288,9 +289,11 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code KlarnaDetails} instance, allowing for method chaining */ public KlarnaDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -299,8 +302,11 @@ public KlarnaDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -309,9 +315,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -332,6 +340,7 @@ public KlarnaDetails subtype(String subtype) { /** * The type of flow to initiate. + * * @return subtype The type of flow to initiate. */ @JsonProperty(JSON_PROPERTY_SUBTYPE) @@ -364,6 +373,7 @@ public KlarnaDetails type(TypeEnum type) { /** * **klarna** + * * @return type **klarna** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -383,9 +393,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this KlarnaDetails object is equal to o. - */ + /** Return true if this KlarnaDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -395,19 +403,27 @@ public boolean equals(Object o) { return false; } KlarnaDetails klarnaDetails = (KlarnaDetails) o; - return Objects.equals(this.billingAddress, klarnaDetails.billingAddress) && - Objects.equals(this.checkoutAttemptId, klarnaDetails.checkoutAttemptId) && - Objects.equals(this.deliveryAddress, klarnaDetails.deliveryAddress) && - Objects.equals(this.personalDetails, klarnaDetails.personalDetails) && - Objects.equals(this.recurringDetailReference, klarnaDetails.recurringDetailReference) && - Objects.equals(this.storedPaymentMethodId, klarnaDetails.storedPaymentMethodId) && - Objects.equals(this.subtype, klarnaDetails.subtype) && - Objects.equals(this.type, klarnaDetails.type); + return Objects.equals(this.billingAddress, klarnaDetails.billingAddress) + && Objects.equals(this.checkoutAttemptId, klarnaDetails.checkoutAttemptId) + && Objects.equals(this.deliveryAddress, klarnaDetails.deliveryAddress) + && Objects.equals(this.personalDetails, klarnaDetails.personalDetails) + && Objects.equals(this.recurringDetailReference, klarnaDetails.recurringDetailReference) + && Objects.equals(this.storedPaymentMethodId, klarnaDetails.storedPaymentMethodId) + && Objects.equals(this.subtype, klarnaDetails.subtype) + && Objects.equals(this.type, klarnaDetails.type); } @Override public int hashCode() { - return Objects.hash(billingAddress, checkoutAttemptId, deliveryAddress, personalDetails, recurringDetailReference, storedPaymentMethodId, subtype, type); + return Objects.hash( + billingAddress, + checkoutAttemptId, + deliveryAddress, + personalDetails, + recurringDetailReference, + storedPaymentMethodId, + subtype, + type); } @Override @@ -418,8 +434,12 @@ public String toString() { sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" deliveryAddress: ").append(toIndentedString(deliveryAddress)).append("\n"); sb.append(" personalDetails: ").append(toIndentedString(personalDetails)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -427,8 +447,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -437,7 +456,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of KlarnaDetails given an JSON string * * @param jsonString JSON string @@ -447,11 +466,12 @@ private String toIndentedString(Object o) { public static KlarnaDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, KlarnaDetails.class); } -/** - * Convert an instance of KlarnaDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of KlarnaDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Leg.java b/src/main/java/com/adyen/model/checkout/Leg.java index 77f8daeb3..ded1d82ab 100644 --- a/src/main/java/com/adyen/model/checkout/Leg.java +++ b/src/main/java/com/adyen/model/checkout/Leg.java @@ -2,32 +2,23 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.time.OffsetDateTime; +import java.util.*; - -/** - * Leg - */ +/** Leg */ @JsonPropertyOrder({ Leg.JSON_PROPERTY_CARRIER_CODE, Leg.JSON_PROPERTY_CLASS_OF_TRAVEL, @@ -39,7 +30,6 @@ Leg.JSON_PROPERTY_FLIGHT_NUMBER, Leg.JSON_PROPERTY_STOP_OVER_CODE }) - public class Leg { public static final String JSON_PROPERTY_CARRIER_CODE = "carrierCode"; private String carrierCode; @@ -68,13 +58,18 @@ public class Leg { public static final String JSON_PROPERTY_STOP_OVER_CODE = "stopOverCode"; private String stopOverCode; - public Leg() { - } + public Leg() {} /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that + * identifies the carrier. This field is required if the airline data includes leg details. * + * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start + * with a space or be all spaces. * Must not be all zeros. * - * @param carrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param carrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter + * accounting code (PAX) that identifies the carrier. This field is required if the airline + * data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: + * 2 characters * Must not start with a space or be all spaces. * Must not be all zeros. * @return the current {@code Leg} instance, allowing for method chaining */ public Leg carrierCode(String carrierCode) { @@ -83,8 +78,15 @@ public Leg carrierCode(String carrierCode) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. * Must not be all zeros. - * @return carrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that + * identifies the carrier. This field is required if the airline data includes leg details. * + * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start + * with a space or be all spaces. * Must not be all zeros. + * + * @return carrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter + * accounting code (PAX) that identifies the carrier. This field is required if the airline + * data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: + * 2 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CARRIER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -93,9 +95,15 @@ public String getCarrierCode() { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that + * identifies the carrier. This field is required if the airline data includes leg details. * + * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start + * with a space or be all spaces. * Must not be all zeros. * - * @param carrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param carrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter + * accounting code (PAX) that identifies the carrier. This field is required if the airline + * data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: + * 2 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CARRIER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,9 +112,14 @@ public void setCarrierCode(String carrierCode) { } /** - * A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not start with a space or be all spaces. * Must not be all zeros. + * A one-letter travel class identifier. The following are common: * F: first class * J: business + * class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * + * maxLength: 1 character * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param classOfTravel A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not start with a space or be all spaces. * Must not be all zeros. + * @param classOfTravel A one-letter travel class identifier. The following are common: * F: first + * class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * + * minLength: 1 character * maxLength: 1 character * Must not start with a space or be all + * spaces. * Must not be all zeros. * @return the current {@code Leg} instance, allowing for method chaining */ public Leg classOfTravel(String classOfTravel) { @@ -115,8 +128,14 @@ public Leg classOfTravel(String classOfTravel) { } /** - * A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not start with a space or be all spaces. * Must not be all zeros. - * @return classOfTravel A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not start with a space or be all spaces. * Must not be all zeros. + * A one-letter travel class identifier. The following are common: * F: first class * J: business + * class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * + * maxLength: 1 character * Must not start with a space or be all spaces. * Must not be all zeros. + * + * @return classOfTravel A one-letter travel class identifier. The following are common: * F: + * first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * + * minLength: 1 character * maxLength: 1 character * Must not start with a space or be all + * spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CLASS_OF_TRAVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,9 +144,14 @@ public String getClassOfTravel() { } /** - * A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not start with a space or be all spaces. * Must not be all zeros. + * A one-letter travel class identifier. The following are common: * F: first class * J: business + * class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * + * maxLength: 1 character * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param classOfTravel A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not start with a space or be all spaces. * Must not be all zeros. + * @param classOfTravel A one-letter travel class identifier. The following are common: * F: first + * class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * + * minLength: 1 character * maxLength: 1 character * Must not start with a space or be all + * spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CLASS_OF_TRAVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,9 +160,11 @@ public void setClassOfTravel(String classOfTravel) { } /** - * Date and time of travel in format `yyyy-MM-ddTHH:mm`. * Use local time of departure airport. * minLength: 16 characters * maxLength: 16 characters + * Date and time of travel in format `yyyy-MM-ddTHH:mm`. * Use local time of departure + * airport. * minLength: 16 characters * maxLength: 16 characters * - * @param dateOfTravel Date and time of travel in format `yyyy-MM-ddTHH:mm`. * Use local time of departure airport. * minLength: 16 characters * maxLength: 16 characters + * @param dateOfTravel Date and time of travel in format `yyyy-MM-ddTHH:mm`. * Use local + * time of departure airport. * minLength: 16 characters * maxLength: 16 characters * @return the current {@code Leg} instance, allowing for method chaining */ public Leg dateOfTravel(OffsetDateTime dateOfTravel) { @@ -147,8 +173,11 @@ public Leg dateOfTravel(OffsetDateTime dateOfTravel) { } /** - * Date and time of travel in format `yyyy-MM-ddTHH:mm`. * Use local time of departure airport. * minLength: 16 characters * maxLength: 16 characters - * @return dateOfTravel Date and time of travel in format `yyyy-MM-ddTHH:mm`. * Use local time of departure airport. * minLength: 16 characters * maxLength: 16 characters + * Date and time of travel in format `yyyy-MM-ddTHH:mm`. * Use local time of departure + * airport. * minLength: 16 characters * maxLength: 16 characters + * + * @return dateOfTravel Date and time of travel in format `yyyy-MM-ddTHH:mm`. * Use + * local time of departure airport. * minLength: 16 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_DATE_OF_TRAVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -157,9 +186,11 @@ public OffsetDateTime getDateOfTravel() { } /** - * Date and time of travel in format `yyyy-MM-ddTHH:mm`. * Use local time of departure airport. * minLength: 16 characters * maxLength: 16 characters + * Date and time of travel in format `yyyy-MM-ddTHH:mm`. * Use local time of departure + * airport. * minLength: 16 characters * maxLength: 16 characters * - * @param dateOfTravel Date and time of travel in format `yyyy-MM-ddTHH:mm`. * Use local time of departure airport. * minLength: 16 characters * maxLength: 16 characters + * @param dateOfTravel Date and time of travel in format `yyyy-MM-ddTHH:mm`. * Use local + * time of departure airport. * minLength: 16 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_DATE_OF_TRAVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,9 +199,16 @@ public void setDateOfTravel(OffsetDateTime dateOfTravel) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the + * departure airport. This field is required if the airline data includes leg details. * Encoding: + * ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * + * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param departureAirportCode The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param departureAirportCode The [IATA](https://www.iata.org/services/pages/codes.aspx) + * three-letter airport code of the departure airport. This field is required if the airline + * data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 + * characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must + * not be all zeros. * @return the current {@code Leg} instance, allowing for method chaining */ public Leg departureAirportCode(String departureAirportCode) { @@ -179,8 +217,16 @@ public Leg departureAirportCode(String departureAirportCode) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. - * @return departureAirportCode The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the + * departure airport. This field is required if the airline data includes leg details. * Encoding: + * ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * + * Must not start with a space or be all spaces. * Must not be all zeros. + * + * @return departureAirportCode The [IATA](https://www.iata.org/services/pages/codes.aspx) + * three-letter airport code of the departure airport. This field is required if the airline + * data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 + * characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must + * not be all zeros. */ @JsonProperty(JSON_PROPERTY_DEPARTURE_AIRPORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,9 +235,16 @@ public String getDepartureAirportCode() { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the + * departure airport. This field is required if the airline data includes leg details. * Encoding: + * ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * + * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param departureAirportCode The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param departureAirportCode The [IATA](https://www.iata.org/services/pages/codes.aspx) + * three-letter airport code of the departure airport. This field is required if the airline + * data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 + * characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must + * not be all zeros. */ @JsonProperty(JSON_PROPERTY_DEPARTURE_AIRPORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,9 +253,13 @@ public void setDepartureAirportCode(String departureAirportCode) { } /** - * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 11 * Must not be all zeros. + * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * + * minLength: 1 * maxLength: 11 * Must not be all zeros. * - * @param departureTax The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 11 * Must not be all zeros. + * @param departureTax The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) + * charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * + * Encoding: Numeric * minLength: 1 * maxLength: 11 * Must not be all zeros. * @return the current {@code Leg} instance, allowing for method chaining */ public Leg departureTax(Long departureTax) { @@ -211,8 +268,13 @@ public Leg departureTax(Long departureTax) { } /** - * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 11 * Must not be all zeros. - * @return departureTax The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 11 * Must not be all zeros. + * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * + * minLength: 1 * maxLength: 11 * Must not be all zeros. + * + * @return departureTax The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) + * charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * + * Encoding: Numeric * minLength: 1 * maxLength: 11 * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_DEPARTURE_TAX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,9 +283,13 @@ public Long getDepartureTax() { } /** - * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 11 * Must not be all zeros. + * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * + * minLength: 1 * maxLength: 11 * Must not be all zeros. * - * @param departureTax The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 11 * Must not be all zeros. + * @param departureTax The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) + * charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * + * Encoding: Numeric * minLength: 1 * maxLength: 11 * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_DEPARTURE_TAX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,9 +298,16 @@ public void setDepartureTax(Long departureTax) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the + * destination airport. This field is required if the airline data includes leg details. * + * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 + * characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param destinationAirportCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param destinationAirportCode The [IATA](https://www.iata.org/services/pages/codes.aspx) + * 3-letter airport code of the destination airport. This field is required if the airline + * data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 + * characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must + * not be all zeros. * @return the current {@code Leg} instance, allowing for method chaining */ public Leg destinationAirportCode(String destinationAirportCode) { @@ -243,8 +316,16 @@ public Leg destinationAirportCode(String destinationAirportCode) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. - * @return destinationAirportCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the + * destination airport. This field is required if the airline data includes leg details. * + * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 + * characters * Must not start with a space or be all spaces. * Must not be all zeros. + * + * @return destinationAirportCode The [IATA](https://www.iata.org/services/pages/codes.aspx) + * 3-letter airport code of the destination airport. This field is required if the airline + * data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 + * characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must + * not be all zeros. */ @JsonProperty(JSON_PROPERTY_DESTINATION_AIRPORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -253,9 +334,16 @@ public String getDestinationAirportCode() { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the + * destination airport. This field is required if the airline data includes leg details. * + * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 + * characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param destinationAirportCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param destinationAirportCode The [IATA](https://www.iata.org/services/pages/codes.aspx) + * 3-letter airport code of the destination airport. This field is required if the airline + * data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 + * characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must + * not be all zeros. */ @JsonProperty(JSON_PROPERTY_DESTINATION_AIRPORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -264,9 +352,13 @@ public void setDestinationAirportCode(String destinationAirportCode) { } /** - * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * + * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all + * spaces. * Must not be all zeros. * - * @param fareBasisCode The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param fareBasisCode The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), + * alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not start with a + * space or be all spaces. * Must not be all zeros. * @return the current {@code Leg} instance, allowing for method chaining */ public Leg fareBasisCode(String fareBasisCode) { @@ -275,8 +367,13 @@ public Leg fareBasisCode(String fareBasisCode) { } /** - * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all spaces. * Must not be all zeros. - * @return fareBasisCode The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * + * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all + * spaces. * Must not be all zeros. + * + * @return fareBasisCode The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), + * alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not start with a + * space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_FARE_BASIS_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -285,9 +382,13 @@ public String getFareBasisCode() { } /** - * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * + * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all + * spaces. * Must not be all zeros. * - * @param fareBasisCode The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param fareBasisCode The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), + * alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not start with a + * space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_FARE_BASIS_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -296,9 +397,11 @@ public void setFareBasisCode(String fareBasisCode) { } /** - * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not start with + * a space or be all spaces. * Must not be all zeros. * - * @param flightNumber The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param flightNumber The flight identifier. * minLength: 1 character * maxLength: 5 characters * + * Must not start with a space or be all spaces. * Must not be all zeros. * @return the current {@code Leg} instance, allowing for method chaining */ public Leg flightNumber(String flightNumber) { @@ -307,8 +410,11 @@ public Leg flightNumber(String flightNumber) { } /** - * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not start with a space or be all spaces. * Must not be all zeros. - * @return flightNumber The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not start with + * a space or be all spaces. * Must not be all zeros. + * + * @return flightNumber The flight identifier. * minLength: 1 character * maxLength: 5 characters + * * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_FLIGHT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -317,9 +423,11 @@ public String getFlightNumber() { } /** - * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not start with + * a space or be all spaces. * Must not be all zeros. * - * @param flightNumber The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param flightNumber The flight identifier. * minLength: 1 character * maxLength: 5 characters * + * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_FLIGHT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -328,9 +436,13 @@ public void setFlightNumber(String flightNumber) { } /** - * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character + * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a + * space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: + * ASCII * minLength: 1 character * maxLength: 1 character * - * @param stopOverCode A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character + * @param stopOverCode A one-letter code that indicates whether the passenger is entitled to make + * a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they + * are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * @return the current {@code Leg} instance, allowing for method chaining */ public Leg stopOverCode(String stopOverCode) { @@ -339,8 +451,13 @@ public Leg stopOverCode(String stopOverCode) { } /** - * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character - * @return stopOverCode A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character + * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a + * space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: + * ASCII * minLength: 1 character * maxLength: 1 character + * + * @return stopOverCode A one-letter code that indicates whether the passenger is entitled to make + * a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they + * are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character */ @JsonProperty(JSON_PROPERTY_STOP_OVER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -349,9 +466,13 @@ public String getStopOverCode() { } /** - * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character + * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a + * space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: + * ASCII * minLength: 1 character * maxLength: 1 character * - * @param stopOverCode A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character + * @param stopOverCode A one-letter code that indicates whether the passenger is entitled to make + * a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they + * are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character */ @JsonProperty(JSON_PROPERTY_STOP_OVER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -359,9 +480,7 @@ public void setStopOverCode(String stopOverCode) { this.stopOverCode = stopOverCode; } - /** - * Return true if this Leg object is equal to o. - */ + /** Return true if this Leg object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -371,20 +490,29 @@ public boolean equals(Object o) { return false; } Leg leg = (Leg) o; - return Objects.equals(this.carrierCode, leg.carrierCode) && - Objects.equals(this.classOfTravel, leg.classOfTravel) && - Objects.equals(this.dateOfTravel, leg.dateOfTravel) && - Objects.equals(this.departureAirportCode, leg.departureAirportCode) && - Objects.equals(this.departureTax, leg.departureTax) && - Objects.equals(this.destinationAirportCode, leg.destinationAirportCode) && - Objects.equals(this.fareBasisCode, leg.fareBasisCode) && - Objects.equals(this.flightNumber, leg.flightNumber) && - Objects.equals(this.stopOverCode, leg.stopOverCode); + return Objects.equals(this.carrierCode, leg.carrierCode) + && Objects.equals(this.classOfTravel, leg.classOfTravel) + && Objects.equals(this.dateOfTravel, leg.dateOfTravel) + && Objects.equals(this.departureAirportCode, leg.departureAirportCode) + && Objects.equals(this.departureTax, leg.departureTax) + && Objects.equals(this.destinationAirportCode, leg.destinationAirportCode) + && Objects.equals(this.fareBasisCode, leg.fareBasisCode) + && Objects.equals(this.flightNumber, leg.flightNumber) + && Objects.equals(this.stopOverCode, leg.stopOverCode); } @Override public int hashCode() { - return Objects.hash(carrierCode, classOfTravel, dateOfTravel, departureAirportCode, departureTax, destinationAirportCode, fareBasisCode, flightNumber, stopOverCode); + return Objects.hash( + carrierCode, + classOfTravel, + dateOfTravel, + departureAirportCode, + departureTax, + destinationAirportCode, + fareBasisCode, + flightNumber, + stopOverCode); } @Override @@ -394,9 +522,13 @@ public String toString() { sb.append(" carrierCode: ").append(toIndentedString(carrierCode)).append("\n"); sb.append(" classOfTravel: ").append(toIndentedString(classOfTravel)).append("\n"); sb.append(" dateOfTravel: ").append(toIndentedString(dateOfTravel)).append("\n"); - sb.append(" departureAirportCode: ").append(toIndentedString(departureAirportCode)).append("\n"); + sb.append(" departureAirportCode: ") + .append(toIndentedString(departureAirportCode)) + .append("\n"); sb.append(" departureTax: ").append(toIndentedString(departureTax)).append("\n"); - sb.append(" destinationAirportCode: ").append(toIndentedString(destinationAirportCode)).append("\n"); + sb.append(" destinationAirportCode: ") + .append(toIndentedString(destinationAirportCode)) + .append("\n"); sb.append(" fareBasisCode: ").append(toIndentedString(fareBasisCode)).append("\n"); sb.append(" flightNumber: ").append(toIndentedString(flightNumber)).append("\n"); sb.append(" stopOverCode: ").append(toIndentedString(stopOverCode)).append("\n"); @@ -405,8 +537,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -415,7 +546,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Leg given an JSON string * * @param jsonString JSON string @@ -425,11 +556,12 @@ private String toIndentedString(Object o) { public static Leg fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Leg.class); } -/** - * Convert an instance of Leg to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Leg to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/LineItem.java b/src/main/java/com/adyen/model/checkout/LineItem.java index 059d46188..69b792684 100644 --- a/src/main/java/com/adyen/model/checkout/LineItem.java +++ b/src/main/java/com/adyen/model/checkout/LineItem.java @@ -2,31 +2,22 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * LineItem - */ +/** LineItem */ @JsonPropertyOrder({ LineItem.JSON_PROPERTY_AMOUNT_EXCLUDING_TAX, LineItem.JSON_PROPERTY_AMOUNT_INCLUDING_TAX, @@ -47,7 +38,6 @@ LineItem.JSON_PROPERTY_TAX_PERCENTAGE, LineItem.JSON_PROPERTY_UPC }) - public class LineItem { public static final String JSON_PROPERTY_AMOUNT_EXCLUDING_TAX = "amountExcludingTax"; private Long amountExcludingTax; @@ -103,8 +93,7 @@ public class LineItem { public static final String JSON_PROPERTY_UPC = "upc"; private String upc; - public LineItem() { - } + public LineItem() {} /** * Item amount excluding the tax, in minor units. @@ -119,6 +108,7 @@ public LineItem amountExcludingTax(Long amountExcludingTax) { /** * Item amount excluding the tax, in minor units. + * * @return amountExcludingTax Item amount excluding the tax, in minor units. */ @JsonProperty(JSON_PROPERTY_AMOUNT_EXCLUDING_TAX) @@ -151,6 +141,7 @@ public LineItem amountIncludingTax(Long amountIncludingTax) { /** * Item amount including the tax, in minor units. + * * @return amountIncludingTax Item amount including the tax, in minor units. */ @JsonProperty(JSON_PROPERTY_AMOUNT_INCLUDING_TAX) @@ -183,6 +174,7 @@ public LineItem brand(String brand) { /** * Brand of the item. + * * @return brand Brand of the item. */ @JsonProperty(JSON_PROPERTY_BRAND) @@ -215,6 +207,7 @@ public LineItem color(String color) { /** * Color of the item. + * * @return color Color of the item. */ @JsonProperty(JSON_PROPERTY_COLOR) @@ -247,6 +240,7 @@ public LineItem description(String description) { /** * Description of the line item. + * * @return description Description of the line item. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -279,6 +273,7 @@ public LineItem id(String id) { /** * ID of the line item. + * * @return id ID of the line item. */ @JsonProperty(JSON_PROPERTY_ID) @@ -311,6 +306,7 @@ public LineItem imageUrl(String imageUrl) { /** * Link to the picture of the purchased item. + * * @return imageUrl Link to the picture of the purchased item. */ @JsonProperty(JSON_PROPERTY_IMAGE_URL) @@ -343,6 +339,7 @@ public LineItem itemCategory(String itemCategory) { /** * Item category, used by the payment methods PayPal and Ratepay. + * * @return itemCategory Item category, used by the payment methods PayPal and Ratepay. */ @JsonProperty(JSON_PROPERTY_ITEM_CATEGORY) @@ -375,6 +372,7 @@ public LineItem manufacturer(String manufacturer) { /** * Manufacturer of the item. + * * @return manufacturer Manufacturer of the item. */ @JsonProperty(JSON_PROPERTY_MANUFACTURER) @@ -407,6 +405,7 @@ public LineItem marketplaceSellerId(String marketplaceSellerId) { /** * Marketplace seller id. + * * @return marketplaceSellerId Marketplace seller id. */ @JsonProperty(JSON_PROPERTY_MARKETPLACE_SELLER_ID) @@ -439,6 +438,7 @@ public LineItem productUrl(String productUrl) { /** * Link to the purchased item. + * * @return productUrl Link to the purchased item. */ @JsonProperty(JSON_PROPERTY_PRODUCT_URL) @@ -471,6 +471,7 @@ public LineItem quantity(Long quantity) { /** * Number of items. + * * @return quantity Number of items. */ @JsonProperty(JSON_PROPERTY_QUANTITY) @@ -493,7 +494,8 @@ public void setQuantity(Long quantity) { /** * Email associated with the given product in the basket (usually in electronic gift cards). * - * @param receiverEmail Email associated with the given product in the basket (usually in electronic gift cards). + * @param receiverEmail Email associated with the given product in the basket (usually in + * electronic gift cards). * @return the current {@code LineItem} instance, allowing for method chaining */ public LineItem receiverEmail(String receiverEmail) { @@ -503,7 +505,9 @@ public LineItem receiverEmail(String receiverEmail) { /** * Email associated with the given product in the basket (usually in electronic gift cards). - * @return receiverEmail Email associated with the given product in the basket (usually in electronic gift cards). + * + * @return receiverEmail Email associated with the given product in the basket (usually in + * electronic gift cards). */ @JsonProperty(JSON_PROPERTY_RECEIVER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -514,7 +518,8 @@ public String getReceiverEmail() { /** * Email associated with the given product in the basket (usually in electronic gift cards). * - * @param receiverEmail Email associated with the given product in the basket (usually in electronic gift cards). + * @param receiverEmail Email associated with the given product in the basket (usually in + * electronic gift cards). */ @JsonProperty(JSON_PROPERTY_RECEIVER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -535,6 +540,7 @@ public LineItem size(String size) { /** * Size of the item. + * * @return size Size of the item. */ @JsonProperty(JSON_PROPERTY_SIZE) @@ -567,6 +573,7 @@ public LineItem sku(String sku) { /** * Stock keeping unit. + * * @return sku Stock keeping unit. */ @JsonProperty(JSON_PROPERTY_SKU) @@ -599,6 +606,7 @@ public LineItem taxAmount(Long taxAmount) { /** * Tax amount, in minor units. + * * @return taxAmount Tax amount, in minor units. */ @JsonProperty(JSON_PROPERTY_TAX_AMOUNT) @@ -631,6 +639,7 @@ public LineItem taxPercentage(Long taxPercentage) { /** * Tax percentage, in minor units. + * * @return taxPercentage Tax percentage, in minor units. */ @JsonProperty(JSON_PROPERTY_TAX_PERCENTAGE) @@ -663,6 +672,7 @@ public LineItem upc(String upc) { /** * Universal Product Code. + * * @return upc Universal Product Code. */ @JsonProperty(JSON_PROPERTY_UPC) @@ -682,9 +692,7 @@ public void setUpc(String upc) { this.upc = upc; } - /** - * Return true if this LineItem object is equal to o. - */ + /** Return true if this LineItem object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -694,29 +702,47 @@ public boolean equals(Object o) { return false; } LineItem lineItem = (LineItem) o; - return Objects.equals(this.amountExcludingTax, lineItem.amountExcludingTax) && - Objects.equals(this.amountIncludingTax, lineItem.amountIncludingTax) && - Objects.equals(this.brand, lineItem.brand) && - Objects.equals(this.color, lineItem.color) && - Objects.equals(this.description, lineItem.description) && - Objects.equals(this.id, lineItem.id) && - Objects.equals(this.imageUrl, lineItem.imageUrl) && - Objects.equals(this.itemCategory, lineItem.itemCategory) && - Objects.equals(this.manufacturer, lineItem.manufacturer) && - Objects.equals(this.marketplaceSellerId, lineItem.marketplaceSellerId) && - Objects.equals(this.productUrl, lineItem.productUrl) && - Objects.equals(this.quantity, lineItem.quantity) && - Objects.equals(this.receiverEmail, lineItem.receiverEmail) && - Objects.equals(this.size, lineItem.size) && - Objects.equals(this.sku, lineItem.sku) && - Objects.equals(this.taxAmount, lineItem.taxAmount) && - Objects.equals(this.taxPercentage, lineItem.taxPercentage) && - Objects.equals(this.upc, lineItem.upc); + return Objects.equals(this.amountExcludingTax, lineItem.amountExcludingTax) + && Objects.equals(this.amountIncludingTax, lineItem.amountIncludingTax) + && Objects.equals(this.brand, lineItem.brand) + && Objects.equals(this.color, lineItem.color) + && Objects.equals(this.description, lineItem.description) + && Objects.equals(this.id, lineItem.id) + && Objects.equals(this.imageUrl, lineItem.imageUrl) + && Objects.equals(this.itemCategory, lineItem.itemCategory) + && Objects.equals(this.manufacturer, lineItem.manufacturer) + && Objects.equals(this.marketplaceSellerId, lineItem.marketplaceSellerId) + && Objects.equals(this.productUrl, lineItem.productUrl) + && Objects.equals(this.quantity, lineItem.quantity) + && Objects.equals(this.receiverEmail, lineItem.receiverEmail) + && Objects.equals(this.size, lineItem.size) + && Objects.equals(this.sku, lineItem.sku) + && Objects.equals(this.taxAmount, lineItem.taxAmount) + && Objects.equals(this.taxPercentage, lineItem.taxPercentage) + && Objects.equals(this.upc, lineItem.upc); } @Override public int hashCode() { - return Objects.hash(amountExcludingTax, amountIncludingTax, brand, color, description, id, imageUrl, itemCategory, manufacturer, marketplaceSellerId, productUrl, quantity, receiverEmail, size, sku, taxAmount, taxPercentage, upc); + return Objects.hash( + amountExcludingTax, + amountIncludingTax, + brand, + color, + description, + id, + imageUrl, + itemCategory, + manufacturer, + marketplaceSellerId, + productUrl, + quantity, + receiverEmail, + size, + sku, + taxAmount, + taxPercentage, + upc); } @Override @@ -732,7 +758,9 @@ public String toString() { sb.append(" imageUrl: ").append(toIndentedString(imageUrl)).append("\n"); sb.append(" itemCategory: ").append(toIndentedString(itemCategory)).append("\n"); sb.append(" manufacturer: ").append(toIndentedString(manufacturer)).append("\n"); - sb.append(" marketplaceSellerId: ").append(toIndentedString(marketplaceSellerId)).append("\n"); + sb.append(" marketplaceSellerId: ") + .append(toIndentedString(marketplaceSellerId)) + .append("\n"); sb.append(" productUrl: ").append(toIndentedString(productUrl)).append("\n"); sb.append(" quantity: ").append(toIndentedString(quantity)).append("\n"); sb.append(" receiverEmail: ").append(toIndentedString(receiverEmail)).append("\n"); @@ -746,8 +774,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -756,7 +783,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of LineItem given an JSON string * * @param jsonString JSON string @@ -766,11 +793,12 @@ private String toIndentedString(Object o) { public static LineItem fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, LineItem.class); } -/** - * Convert an instance of LineItem to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of LineItem to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ListStoredPaymentMethodsResponse.java b/src/main/java/com/adyen/model/checkout/ListStoredPaymentMethodsResponse.java index 273f2d648..1ef85f60a 100644 --- a/src/main/java/com/adyen/model/checkout/ListStoredPaymentMethodsResponse.java +++ b/src/main/java/com/adyen/model/checkout/ListStoredPaymentMethodsResponse.java @@ -2,40 +2,29 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.StoredPaymentMethodResource; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * ListStoredPaymentMethodsResponse - */ +/** ListStoredPaymentMethodsResponse */ @JsonPropertyOrder({ ListStoredPaymentMethodsResponse.JSON_PROPERTY_MERCHANT_ACCOUNT, ListStoredPaymentMethodsResponse.JSON_PROPERTY_SHOPPER_REFERENCE, ListStoredPaymentMethodsResponse.JSON_PROPERTY_STORED_PAYMENT_METHODS }) - public class ListStoredPaymentMethodsResponse { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; @@ -46,14 +35,14 @@ public class ListStoredPaymentMethodsResponse { public static final String JSON_PROPERTY_STORED_PAYMENT_METHODS = "storedPaymentMethods"; private List storedPaymentMethods; - public ListStoredPaymentMethodsResponse() { - } + public ListStoredPaymentMethodsResponse() {} /** * Your merchant account. * * @param merchantAccount Your merchant account. - * @return the current {@code ListStoredPaymentMethodsResponse} instance, allowing for method chaining + * @return the current {@code ListStoredPaymentMethodsResponse} instance, allowing for method + * chaining */ public ListStoredPaymentMethodsResponse merchantAccount(String merchantAccount) { this.merchantAccount = merchantAccount; @@ -62,6 +51,7 @@ public ListStoredPaymentMethodsResponse merchantAccount(String merchantAccount) /** * Your merchant account. + * * @return merchantAccount Your merchant account. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -82,10 +72,15 @@ public void setMerchantAccount(String merchantAccount) { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum + * length: 3 characters. > Your reference must not include personally identifiable information + * (PII), for example name or email address. * - * @param shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. - * @return the current {@code ListStoredPaymentMethodsResponse} instance, allowing for method chaining + * @param shopperReference Your reference to uniquely identify this shopper, for example user ID + * or account ID. Minimum length: 3 characters. > Your reference must not include + * personally identifiable information (PII), for example name or email address. + * @return the current {@code ListStoredPaymentMethodsResponse} instance, allowing for method + * chaining */ public ListStoredPaymentMethodsResponse shopperReference(String shopperReference) { this.shopperReference = shopperReference; @@ -93,8 +88,13 @@ public ListStoredPaymentMethodsResponse shopperReference(String shopperReference } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. - * @return shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum + * length: 3 characters. > Your reference must not include personally identifiable information + * (PII), for example name or email address. + * + * @return shopperReference Your reference to uniquely identify this shopper, for example user ID + * or account ID. Minimum length: 3 characters. > Your reference must not include + * personally identifiable information (PII), for example name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -103,9 +103,13 @@ public String getShopperReference() { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum + * length: 3 characters. > Your reference must not include personally identifiable information + * (PII), for example name or email address. * - * @param shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. + * @param shopperReference Your reference to uniquely identify this shopper, for example user ID + * or account ID. Minimum length: 3 characters. > Your reference must not include + * personally identifiable information (PII), for example name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,14 +121,17 @@ public void setShopperReference(String shopperReference) { * List of all stored payment methods. * * @param storedPaymentMethods List of all stored payment methods. - * @return the current {@code ListStoredPaymentMethodsResponse} instance, allowing for method chaining + * @return the current {@code ListStoredPaymentMethodsResponse} instance, allowing for method + * chaining */ - public ListStoredPaymentMethodsResponse storedPaymentMethods(List storedPaymentMethods) { + public ListStoredPaymentMethodsResponse storedPaymentMethods( + List storedPaymentMethods) { this.storedPaymentMethods = storedPaymentMethods; return this; } - public ListStoredPaymentMethodsResponse addStoredPaymentMethodsItem(StoredPaymentMethodResource storedPaymentMethodsItem) { + public ListStoredPaymentMethodsResponse addStoredPaymentMethodsItem( + StoredPaymentMethodResource storedPaymentMethodsItem) { if (this.storedPaymentMethods == null) { this.storedPaymentMethods = new ArrayList<>(); } @@ -134,6 +141,7 @@ public ListStoredPaymentMethodsResponse addStoredPaymentMethodsItem(StoredPaymen /** * List of all stored payment methods. + * * @return storedPaymentMethods List of all stored payment methods. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHODS) @@ -153,9 +161,7 @@ public void setStoredPaymentMethods(List storedPaym this.storedPaymentMethods = storedPaymentMethods; } - /** - * Return true if this ListStoredPaymentMethodsResponse object is equal to o. - */ + /** Return true if this ListStoredPaymentMethodsResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -164,10 +170,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ListStoredPaymentMethodsResponse listStoredPaymentMethodsResponse = (ListStoredPaymentMethodsResponse) o; - return Objects.equals(this.merchantAccount, listStoredPaymentMethodsResponse.merchantAccount) && - Objects.equals(this.shopperReference, listStoredPaymentMethodsResponse.shopperReference) && - Objects.equals(this.storedPaymentMethods, listStoredPaymentMethodsResponse.storedPaymentMethods); + ListStoredPaymentMethodsResponse listStoredPaymentMethodsResponse = + (ListStoredPaymentMethodsResponse) o; + return Objects.equals(this.merchantAccount, listStoredPaymentMethodsResponse.merchantAccount) + && Objects.equals(this.shopperReference, listStoredPaymentMethodsResponse.shopperReference) + && Objects.equals( + this.storedPaymentMethods, listStoredPaymentMethodsResponse.storedPaymentMethods); } @Override @@ -181,14 +189,15 @@ public String toString() { sb.append("class ListStoredPaymentMethodsResponse {\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); - sb.append(" storedPaymentMethods: ").append(toIndentedString(storedPaymentMethods)).append("\n"); + sb.append(" storedPaymentMethods: ") + .append(toIndentedString(storedPaymentMethods)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -197,21 +206,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ListStoredPaymentMethodsResponse given an JSON string * * @param jsonString JSON string * @return An instance of ListStoredPaymentMethodsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to ListStoredPaymentMethodsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ListStoredPaymentMethodsResponse */ - public static ListStoredPaymentMethodsResponse fromJson(String jsonString) throws JsonProcessingException { + public static ListStoredPaymentMethodsResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ListStoredPaymentMethodsResponse.class); } -/** - * Convert an instance of ListStoredPaymentMethodsResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ListStoredPaymentMethodsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Mandate.java b/src/main/java/com/adyen/model/checkout/Mandate.java index f60d7a164..c632e63e0 100644 --- a/src/main/java/com/adyen/model/checkout/Mandate.java +++ b/src/main/java/com/adyen/model/checkout/Mandate.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * Mandate - */ +/** Mandate */ @JsonPropertyOrder({ Mandate.JSON_PROPERTY_AMOUNT, Mandate.JSON_PROPERTY_AMOUNT_RULE, @@ -38,16 +33,16 @@ Mandate.JSON_PROPERTY_REMARKS, Mandate.JSON_PROPERTY_STARTS_AT }) - public class Mandate { public static final String JSON_PROPERTY_AMOUNT = "amount"; private String amount; /** - * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`. + * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount + * can not exceed the `amount`. * **exact**: The transaction amount should be the same + * as the `amount`. */ public enum AmountRuleEnum { - MAX(String.valueOf("max")), EXACT(String.valueOf("exact")); @@ -57,7 +52,7 @@ public enum AmountRuleEnum { private String value; AmountRuleEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -78,7 +73,11 @@ public static AmountRuleEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AmountRuleEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AmountRuleEnum.values())); + LOG.warning( + "AmountRuleEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AmountRuleEnum.values())); return null; } } @@ -87,10 +86,11 @@ public static AmountRuleEnum fromValue(String value) { private AmountRuleEnum amountRule; /** - * The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date. + * The rule to specify the period, within which the recurring debit can happen, relative to the + * mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and + * on a specific date. * **after**: On and after a specific date. */ public enum BillingAttemptsRuleEnum { - ON(String.valueOf("on")), BEFORE(String.valueOf("before")), @@ -102,7 +102,7 @@ public enum BillingAttemptsRuleEnum { private String value; BillingAttemptsRuleEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -123,7 +123,11 @@ public static BillingAttemptsRuleEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("BillingAttemptsRuleEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(BillingAttemptsRuleEnum.values())); + LOG.warning( + "BillingAttemptsRuleEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(BillingAttemptsRuleEnum.values())); return null; } } @@ -141,10 +145,10 @@ public static BillingAttemptsRuleEnum fromValue(String value) { private String endsAt; /** - * The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. + * The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, + * **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. */ public enum FrequencyEnum { - ADHOC(String.valueOf("adhoc")), DAILY(String.valueOf("daily")), @@ -166,7 +170,7 @@ public enum FrequencyEnum { private String value; FrequencyEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -187,7 +191,11 @@ public static FrequencyEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FrequencyEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FrequencyEnum.values())); + LOG.warning( + "FrequencyEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FrequencyEnum.values())); return null; } } @@ -201,8 +209,7 @@ public static FrequencyEnum fromValue(String value) { public static final String JSON_PROPERTY_STARTS_AT = "startsAt"; private String startsAt; - public Mandate() { - } + public Mandate() {} /** * The billing amount (in minor units) of the recurring transactions. @@ -217,6 +224,7 @@ public Mandate amount(String amount) { /** * The billing amount (in minor units) of the recurring transactions. + * * @return amount The billing amount (in minor units) of the recurring transactions. */ @JsonProperty(JSON_PROPERTY_AMOUNT) @@ -237,9 +245,13 @@ public void setAmount(String amount) { } /** - * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`. + * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount + * can not exceed the `amount`. * **exact**: The transaction amount should be the same + * as the `amount`. * - * @param amountRule The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`. + * @param amountRule The limitation rule of the billing amount. Possible values: * **max**: The + * transaction amount can not exceed the `amount`. * **exact**: The transaction + * amount should be the same as the `amount`. * @return the current {@code Mandate} instance, allowing for method chaining */ public Mandate amountRule(AmountRuleEnum amountRule) { @@ -248,8 +260,13 @@ public Mandate amountRule(AmountRuleEnum amountRule) { } /** - * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`. - * @return amountRule The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`. + * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount + * can not exceed the `amount`. * **exact**: The transaction amount should be the same + * as the `amount`. + * + * @return amountRule The limitation rule of the billing amount. Possible values: * **max**: The + * transaction amount can not exceed the `amount`. * **exact**: The transaction + * amount should be the same as the `amount`. */ @JsonProperty(JSON_PROPERTY_AMOUNT_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -258,9 +275,13 @@ public AmountRuleEnum getAmountRule() { } /** - * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`. + * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount + * can not exceed the `amount`. * **exact**: The transaction amount should be the same + * as the `amount`. * - * @param amountRule The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`. + * @param amountRule The limitation rule of the billing amount. Possible values: * **max**: The + * transaction amount can not exceed the `amount`. * **exact**: The transaction + * amount should be the same as the `amount`. */ @JsonProperty(JSON_PROPERTY_AMOUNT_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -269,9 +290,14 @@ public void setAmountRule(AmountRuleEnum amountRule) { } /** - * The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date. + * The rule to specify the period, within which the recurring debit can happen, relative to the + * mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and + * on a specific date. * **after**: On and after a specific date. * - * @param billingAttemptsRule The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date. + * @param billingAttemptsRule The rule to specify the period, within which the recurring debit can + * happen, relative to the mandate recurring date. Possible values: * **on**: On a specific + * date. * **before**: Before and on a specific date. * **after**: On and after a specific + * date. * @return the current {@code Mandate} instance, allowing for method chaining */ public Mandate billingAttemptsRule(BillingAttemptsRuleEnum billingAttemptsRule) { @@ -280,8 +306,14 @@ public Mandate billingAttemptsRule(BillingAttemptsRuleEnum billingAttemptsRule) } /** - * The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date. - * @return billingAttemptsRule The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date. + * The rule to specify the period, within which the recurring debit can happen, relative to the + * mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and + * on a specific date. * **after**: On and after a specific date. + * + * @return billingAttemptsRule The rule to specify the period, within which the recurring debit + * can happen, relative to the mandate recurring date. Possible values: * **on**: On a + * specific date. * **before**: Before and on a specific date. * **after**: On and after a + * specific date. */ @JsonProperty(JSON_PROPERTY_BILLING_ATTEMPTS_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -290,9 +322,14 @@ public BillingAttemptsRuleEnum getBillingAttemptsRule() { } /** - * The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date. + * The rule to specify the period, within which the recurring debit can happen, relative to the + * mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and + * on a specific date. * **after**: On and after a specific date. * - * @param billingAttemptsRule The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date. + * @param billingAttemptsRule The rule to specify the period, within which the recurring debit can + * happen, relative to the mandate recurring date. Possible values: * **on**: On a specific + * date. * **before**: Before and on a specific date. * **after**: On and after a specific + * date. */ @JsonProperty(JSON_PROPERTY_BILLING_ATTEMPTS_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -301,9 +338,13 @@ public void setBillingAttemptsRule(BillingAttemptsRuleEnum billingAttemptsRule) } /** - * The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`. + * The number of the day, on which the recurring debit can happen. Should be within the same + * calendar month as the mandate recurring date. Possible values: 1-31 based on the + * `frequency`. * - * @param billingDay The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`. + * @param billingDay The number of the day, on which the recurring debit can happen. Should be + * within the same calendar month as the mandate recurring date. Possible values: 1-31 based + * on the `frequency`. * @return the current {@code Mandate} instance, allowing for method chaining */ public Mandate billingDay(String billingDay) { @@ -312,8 +353,13 @@ public Mandate billingDay(String billingDay) { } /** - * The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`. - * @return billingDay The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`. + * The number of the day, on which the recurring debit can happen. Should be within the same + * calendar month as the mandate recurring date. Possible values: 1-31 based on the + * `frequency`. + * + * @return billingDay The number of the day, on which the recurring debit can happen. Should be + * within the same calendar month as the mandate recurring date. Possible values: 1-31 based + * on the `frequency`. */ @JsonProperty(JSON_PROPERTY_BILLING_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -322,9 +368,13 @@ public String getBillingDay() { } /** - * The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`. + * The number of the day, on which the recurring debit can happen. Should be within the same + * calendar month as the mandate recurring date. Possible values: 1-31 based on the + * `frequency`. * - * @param billingDay The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`. + * @param billingDay The number of the day, on which the recurring debit can happen. Should be + * within the same calendar month as the mandate recurring date. Possible values: 1-31 based + * on the `frequency`. */ @JsonProperty(JSON_PROPERTY_BILLING_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -345,6 +395,7 @@ public Mandate count(String count) { /** * The number of transactions that can be performed within the given frequency. + * * @return count The number of transactions that can be performed within the given frequency. */ @JsonProperty(JSON_PROPERTY_COUNT) @@ -377,6 +428,7 @@ public Mandate endsAt(String endsAt) { /** * End date of the billing plan, in YYYY-MM-DD format. + * * @return endsAt End date of the billing plan, in YYYY-MM-DD format. */ @JsonProperty(JSON_PROPERTY_ENDS_AT) @@ -397,9 +449,12 @@ public void setEndsAt(String endsAt) { } /** - * The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. + * The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, + * **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. * - * @param frequency The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. + * @param frequency The frequency with which a shopper should be charged. Possible values: + * **adhoc**, **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, + * **yearly**. * @return the current {@code Mandate} instance, allowing for method chaining */ public Mandate frequency(FrequencyEnum frequency) { @@ -408,8 +463,12 @@ public Mandate frequency(FrequencyEnum frequency) { } /** - * The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. - * @return frequency The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. + * The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, + * **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. + * + * @return frequency The frequency with which a shopper should be charged. Possible values: + * **adhoc**, **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, + * **yearly**. */ @JsonProperty(JSON_PROPERTY_FREQUENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -418,9 +477,12 @@ public FrequencyEnum getFrequency() { } /** - * The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. + * The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, + * **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. * - * @param frequency The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. + * @param frequency The frequency with which a shopper should be charged. Possible values: + * **adhoc**, **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, + * **yearly**. */ @JsonProperty(JSON_PROPERTY_FREQUENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -441,6 +503,7 @@ public Mandate remarks(String remarks) { /** * The message shown by UPI to the shopper on the approval screen. + * * @return remarks The message shown by UPI to the shopper on the approval screen. */ @JsonProperty(JSON_PROPERTY_REMARKS) @@ -463,7 +526,8 @@ public void setRemarks(String remarks) { /** * Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. * - * @param startsAt Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. + * @param startsAt Start date of the billing plan, in YYYY-MM-DD format. By default, the + * transaction date. * @return the current {@code Mandate} instance, allowing for method chaining */ public Mandate startsAt(String startsAt) { @@ -473,7 +537,9 @@ public Mandate startsAt(String startsAt) { /** * Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. - * @return startsAt Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. + * + * @return startsAt Start date of the billing plan, in YYYY-MM-DD format. By default, the + * transaction date. */ @JsonProperty(JSON_PROPERTY_STARTS_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -484,7 +550,8 @@ public String getStartsAt() { /** * Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. * - * @param startsAt Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. + * @param startsAt Start date of the billing plan, in YYYY-MM-DD format. By default, the + * transaction date. */ @JsonProperty(JSON_PROPERTY_STARTS_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -492,9 +559,7 @@ public void setStartsAt(String startsAt) { this.startsAt = startsAt; } - /** - * Return true if this Mandate object is equal to o. - */ + /** Return true if this Mandate object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -504,20 +569,29 @@ public boolean equals(Object o) { return false; } Mandate mandate = (Mandate) o; - return Objects.equals(this.amount, mandate.amount) && - Objects.equals(this.amountRule, mandate.amountRule) && - Objects.equals(this.billingAttemptsRule, mandate.billingAttemptsRule) && - Objects.equals(this.billingDay, mandate.billingDay) && - Objects.equals(this.count, mandate.count) && - Objects.equals(this.endsAt, mandate.endsAt) && - Objects.equals(this.frequency, mandate.frequency) && - Objects.equals(this.remarks, mandate.remarks) && - Objects.equals(this.startsAt, mandate.startsAt); + return Objects.equals(this.amount, mandate.amount) + && Objects.equals(this.amountRule, mandate.amountRule) + && Objects.equals(this.billingAttemptsRule, mandate.billingAttemptsRule) + && Objects.equals(this.billingDay, mandate.billingDay) + && Objects.equals(this.count, mandate.count) + && Objects.equals(this.endsAt, mandate.endsAt) + && Objects.equals(this.frequency, mandate.frequency) + && Objects.equals(this.remarks, mandate.remarks) + && Objects.equals(this.startsAt, mandate.startsAt); } @Override public int hashCode() { - return Objects.hash(amount, amountRule, billingAttemptsRule, billingDay, count, endsAt, frequency, remarks, startsAt); + return Objects.hash( + amount, + amountRule, + billingAttemptsRule, + billingDay, + count, + endsAt, + frequency, + remarks, + startsAt); } @Override @@ -526,7 +600,9 @@ public String toString() { sb.append("class Mandate {\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" amountRule: ").append(toIndentedString(amountRule)).append("\n"); - sb.append(" billingAttemptsRule: ").append(toIndentedString(billingAttemptsRule)).append("\n"); + sb.append(" billingAttemptsRule: ") + .append(toIndentedString(billingAttemptsRule)) + .append("\n"); sb.append(" billingDay: ").append(toIndentedString(billingDay)).append("\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" endsAt: ").append(toIndentedString(endsAt)).append("\n"); @@ -538,8 +614,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -548,7 +623,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Mandate given an JSON string * * @param jsonString JSON string @@ -558,11 +633,12 @@ private String toIndentedString(Object o) { public static Mandate fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Mandate.class); } -/** - * Convert an instance of Mandate to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Mandate to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/MasterpassDetails.java b/src/main/java/com/adyen/model/checkout/MasterpassDetails.java index 2e9db7ad2..e3c4adcb5 100644 --- a/src/main/java/com/adyen/model/checkout/MasterpassDetails.java +++ b/src/main/java/com/adyen/model/checkout/MasterpassDetails.java @@ -2,47 +2,41 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * MasterpassDetails - */ +/** MasterpassDetails */ @JsonPropertyOrder({ MasterpassDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, MasterpassDetails.JSON_PROPERTY_FUNDING_SOURCE, MasterpassDetails.JSON_PROPERTY_MASTERPASS_TRANSACTION_ID, MasterpassDetails.JSON_PROPERTY_TYPE }) - public class MasterpassDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. */ public enum FundingSourceEnum { - CREDIT(String.valueOf("credit")), DEBIT(String.valueOf("debit")); @@ -52,7 +46,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +67,11 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); + LOG.warning( + "FundingSourceEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -84,11 +82,8 @@ public static FundingSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_MASTERPASS_TRANSACTION_ID = "masterpassTransactionId"; private String masterpassTransactionId; - /** - * **masterpass** - */ + /** **masterpass** */ public enum TypeEnum { - MASTERPASS(String.valueOf("masterpass")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -96,7 +91,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -117,7 +112,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -125,8 +124,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public MasterpassDetails() { - } + public MasterpassDetails() {} /** * The checkout attempt identifier. @@ -141,6 +139,7 @@ public MasterpassDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -161,9 +160,12 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. * @return the current {@code MasterpassDetails} instance, allowing for method chaining */ public MasterpassDetails fundingSource(FundingSourceEnum fundingSource) { @@ -172,8 +174,12 @@ public MasterpassDetails fundingSource(FundingSourceEnum fundingSource) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. - * @return fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * + * @return fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,9 +188,12 @@ public FundingSourceEnum getFundingSource() { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -205,6 +214,7 @@ public MasterpassDetails masterpassTransactionId(String masterpassTransactionId) /** * The Masterpass transaction ID. + * * @return masterpassTransactionId The Masterpass transaction ID. */ @JsonProperty(JSON_PROPERTY_MASTERPASS_TRANSACTION_ID) @@ -237,6 +247,7 @@ public MasterpassDetails type(TypeEnum type) { /** * **masterpass** + * * @return type **masterpass** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -256,9 +267,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this MasterpassDetails object is equal to o. - */ + /** Return true if this MasterpassDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -268,10 +277,10 @@ public boolean equals(Object o) { return false; } MasterpassDetails masterpassDetails = (MasterpassDetails) o; - return Objects.equals(this.checkoutAttemptId, masterpassDetails.checkoutAttemptId) && - Objects.equals(this.fundingSource, masterpassDetails.fundingSource) && - Objects.equals(this.masterpassTransactionId, masterpassDetails.masterpassTransactionId) && - Objects.equals(this.type, masterpassDetails.type); + return Objects.equals(this.checkoutAttemptId, masterpassDetails.checkoutAttemptId) + && Objects.equals(this.fundingSource, masterpassDetails.fundingSource) + && Objects.equals(this.masterpassTransactionId, masterpassDetails.masterpassTransactionId) + && Objects.equals(this.type, masterpassDetails.type); } @Override @@ -285,15 +294,16 @@ public String toString() { sb.append("class MasterpassDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); - sb.append(" masterpassTransactionId: ").append(toIndentedString(masterpassTransactionId)).append("\n"); + sb.append(" masterpassTransactionId: ") + .append(toIndentedString(masterpassTransactionId)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -302,7 +312,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of MasterpassDetails given an JSON string * * @param jsonString JSON string @@ -312,11 +322,12 @@ private String toIndentedString(Object o) { public static MasterpassDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MasterpassDetails.class); } -/** - * Convert an instance of MasterpassDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of MasterpassDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/MbwayDetails.java b/src/main/java/com/adyen/model/checkout/MbwayDetails.java index 46bc2f872..f90268351 100644 --- a/src/main/java/com/adyen/model/checkout/MbwayDetails.java +++ b/src/main/java/com/adyen/model/checkout/MbwayDetails.java @@ -2,38 +2,32 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * MbwayDetails - */ +/** MbwayDetails */ @JsonPropertyOrder({ MbwayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, MbwayDetails.JSON_PROPERTY_SHOPPER_EMAIL, MbwayDetails.JSON_PROPERTY_TELEPHONE_NUMBER, MbwayDetails.JSON_PROPERTY_TYPE }) - public class MbwayDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -44,11 +38,8 @@ public class MbwayDetails { public static final String JSON_PROPERTY_TELEPHONE_NUMBER = "telephoneNumber"; private String telephoneNumber; - /** - * **mbway** - */ + /** **mbway** */ public enum TypeEnum { - MBWAY(String.valueOf("mbway")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -56,7 +47,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -77,7 +68,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -85,8 +80,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public MbwayDetails() { - } + public MbwayDetails() {} /** * The checkout attempt identifier. @@ -101,6 +95,7 @@ public MbwayDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -121,9 +116,7 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * - * - * @param shopperEmail + * @param shopperEmail * @return the current {@code MbwayDetails} instance, allowing for method chaining */ public MbwayDetails shopperEmail(String shopperEmail) { @@ -132,8 +125,7 @@ public MbwayDetails shopperEmail(String shopperEmail) { } /** - * - * @return shopperEmail + * @return shopperEmail */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +134,7 @@ public String getShopperEmail() { } /** - * - * - * @param shopperEmail + * @param shopperEmail */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -153,9 +143,7 @@ public void setShopperEmail(String shopperEmail) { } /** - * - * - * @param telephoneNumber + * @param telephoneNumber * @return the current {@code MbwayDetails} instance, allowing for method chaining */ public MbwayDetails telephoneNumber(String telephoneNumber) { @@ -164,8 +152,7 @@ public MbwayDetails telephoneNumber(String telephoneNumber) { } /** - * - * @return telephoneNumber + * @return telephoneNumber */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -174,9 +161,7 @@ public String getTelephoneNumber() { } /** - * - * - * @param telephoneNumber + * @param telephoneNumber */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -197,6 +182,7 @@ public MbwayDetails type(TypeEnum type) { /** * **mbway** + * * @return type **mbway** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -216,9 +202,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this MbwayDetails object is equal to o. - */ + /** Return true if this MbwayDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -228,10 +212,10 @@ public boolean equals(Object o) { return false; } MbwayDetails mbwayDetails = (MbwayDetails) o; - return Objects.equals(this.checkoutAttemptId, mbwayDetails.checkoutAttemptId) && - Objects.equals(this.shopperEmail, mbwayDetails.shopperEmail) && - Objects.equals(this.telephoneNumber, mbwayDetails.telephoneNumber) && - Objects.equals(this.type, mbwayDetails.type); + return Objects.equals(this.checkoutAttemptId, mbwayDetails.checkoutAttemptId) + && Objects.equals(this.shopperEmail, mbwayDetails.shopperEmail) + && Objects.equals(this.telephoneNumber, mbwayDetails.telephoneNumber) + && Objects.equals(this.type, mbwayDetails.type); } @Override @@ -252,8 +236,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -262,7 +245,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of MbwayDetails given an JSON string * * @param jsonString JSON string @@ -272,11 +255,12 @@ private String toIndentedString(Object o) { public static MbwayDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MbwayDetails.class); } -/** - * Convert an instance of MbwayDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of MbwayDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/MerchantDevice.java b/src/main/java/com/adyen/model/checkout/MerchantDevice.java index 92fae76dd..6e6841e2d 100644 --- a/src/main/java/com/adyen/model/checkout/MerchantDevice.java +++ b/src/main/java/com/adyen/model/checkout/MerchantDevice.java @@ -2,37 +2,27 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * MerchantDevice - */ +/** MerchantDevice */ @JsonPropertyOrder({ MerchantDevice.JSON_PROPERTY_OS, MerchantDevice.JSON_PROPERTY_OS_VERSION, MerchantDevice.JSON_PROPERTY_REFERENCE }) - public class MerchantDevice { public static final String JSON_PROPERTY_OS = "os"; private String os; @@ -43,8 +33,7 @@ public class MerchantDevice { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public MerchantDevice() { - } + public MerchantDevice() {} /** * Operating system running on the merchant device. @@ -59,6 +48,7 @@ public MerchantDevice os(String os) { /** * Operating system running on the merchant device. + * * @return os Operating system running on the merchant device. */ @JsonProperty(JSON_PROPERTY_OS) @@ -91,6 +81,7 @@ public MerchantDevice osVersion(String osVersion) { /** * Version of the operating system on the merchant device. + * * @return osVersion Version of the operating system on the merchant device. */ @JsonProperty(JSON_PROPERTY_OS_VERSION) @@ -123,6 +114,7 @@ public MerchantDevice reference(String reference) { /** * Merchant device reference. + * * @return reference Merchant device reference. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -142,9 +134,7 @@ public void setReference(String reference) { this.reference = reference; } - /** - * Return true if this MerchantDevice object is equal to o. - */ + /** Return true if this MerchantDevice object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +144,9 @@ public boolean equals(Object o) { return false; } MerchantDevice merchantDevice = (MerchantDevice) o; - return Objects.equals(this.os, merchantDevice.os) && - Objects.equals(this.osVersion, merchantDevice.osVersion) && - Objects.equals(this.reference, merchantDevice.reference); + return Objects.equals(this.os, merchantDevice.os) + && Objects.equals(this.osVersion, merchantDevice.osVersion) + && Objects.equals(this.reference, merchantDevice.reference); } @Override @@ -176,8 +166,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +175,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of MerchantDevice given an JSON string * * @param jsonString JSON string @@ -196,11 +185,12 @@ private String toIndentedString(Object o) { public static MerchantDevice fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MerchantDevice.class); } -/** - * Convert an instance of MerchantDevice to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of MerchantDevice to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/MerchantRiskIndicator.java b/src/main/java/com/adyen/model/checkout/MerchantRiskIndicator.java index 6cc45fe25..b6486931a 100644 --- a/src/main/java/com/adyen/model/checkout/MerchantRiskIndicator.java +++ b/src/main/java/com/adyen/model/checkout/MerchantRiskIndicator.java @@ -2,33 +2,27 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Amount; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * MerchantRiskIndicator - */ +/** MerchantRiskIndicator */ @JsonPropertyOrder({ MerchantRiskIndicator.JSON_PROPERTY_ADDRESS_MATCH, MerchantRiskIndicator.JSON_PROPERTY_DELIVERY_ADDRESS_INDICATOR, @@ -45,16 +39,16 @@ MerchantRiskIndicator.JSON_PROPERTY_REORDER_ITEMS_IND, MerchantRiskIndicator.JSON_PROPERTY_SHIP_INDICATOR }) - public class MerchantRiskIndicator { public static final String JSON_PROPERTY_ADDRESS_MATCH = "addressMatch"; private Boolean addressMatch; /** - * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` + * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * + * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * + * `digitalGoods` * `goodsNotShipped` * `other` */ public enum DeliveryAddressIndicatorEnum { - SHIPTOBILLINGADDRESS(String.valueOf("shipToBillingAddress")), SHIPTOVERIFIEDADDRESS(String.valueOf("shipToVerifiedAddress")), @@ -69,12 +63,13 @@ public enum DeliveryAddressIndicatorEnum { OTHER(String.valueOf("other")); - private static final Logger LOG = Logger.getLogger(DeliveryAddressIndicatorEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(DeliveryAddressIndicatorEnum.class.getName()); private String value; DeliveryAddressIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -95,7 +90,11 @@ public static DeliveryAddressIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("DeliveryAddressIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(DeliveryAddressIndicatorEnum.values())); + LOG.warning( + "DeliveryAddressIndicatorEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(DeliveryAddressIndicatorEnum.values())); return null; } } @@ -111,10 +110,11 @@ public static DeliveryAddressIndicatorEnum fromValue(String value) { private String deliveryEmailAddress; /** - * The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` + * The estimated delivery time for the shopper to receive the goods. Allowed values: * + * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * + * `twoOrMoreDaysShipping` */ public enum DeliveryTimeframeEnum { - ELECTRONICDELIVERY(String.valueOf("electronicDelivery")), SAMEDAYSHIPPING(String.valueOf("sameDayShipping")), @@ -128,7 +128,7 @@ public enum DeliveryTimeframeEnum { private String value; DeliveryTimeframeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -149,7 +149,11 @@ public static DeliveryTimeframeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("DeliveryTimeframeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(DeliveryTimeframeEnum.values())); + LOG.warning( + "DeliveryTimeframeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(DeliveryTimeframeEnum.values())); return null; } } @@ -184,8 +188,7 @@ public static DeliveryTimeframeEnum fromValue(String value) { public static final String JSON_PROPERTY_SHIP_INDICATOR = "shipIndicator"; private String shipIndicator; - public MerchantRiskIndicator() { - } + public MerchantRiskIndicator() {} /** * Whether the chosen delivery address is identical to the billing address. @@ -200,6 +203,7 @@ public MerchantRiskIndicator addressMatch(Boolean addressMatch) { /** * Whether the chosen delivery address is identical to the billing address. + * * @return addressMatch Whether the chosen delivery address is identical to the billing address. */ @JsonProperty(JSON_PROPERTY_ADDRESS_MATCH) @@ -220,19 +224,31 @@ public void setAddressMatch(Boolean addressMatch) { } /** - * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` + * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * + * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * + * `digitalGoods` * `goodsNotShipped` * `other` * - * @param deliveryAddressIndicator Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` + * @param deliveryAddressIndicator Indicator regarding the delivery address. Allowed values: * + * `shipToBillingAddress` * `shipToVerifiedAddress` * + * `shipToNewAddress` * `shipToStore` * `digitalGoods` * + * `goodsNotShipped` * `other` * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ - public MerchantRiskIndicator deliveryAddressIndicator(DeliveryAddressIndicatorEnum deliveryAddressIndicator) { + public MerchantRiskIndicator deliveryAddressIndicator( + DeliveryAddressIndicatorEnum deliveryAddressIndicator) { this.deliveryAddressIndicator = deliveryAddressIndicator; return this; } /** - * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` - * @return deliveryAddressIndicator Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` + * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * + * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * + * `digitalGoods` * `goodsNotShipped` * `other` + * + * @return deliveryAddressIndicator Indicator regarding the delivery address. Allowed values: * + * `shipToBillingAddress` * `shipToVerifiedAddress` * + * `shipToNewAddress` * `shipToStore` * `digitalGoods` * + * `goodsNotShipped` * `other` */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -241,9 +257,14 @@ public DeliveryAddressIndicatorEnum getDeliveryAddressIndicator() { } /** - * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` + * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * + * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * + * `digitalGoods` * `goodsNotShipped` * `other` * - * @param deliveryAddressIndicator Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` + * @param deliveryAddressIndicator Indicator regarding the delivery address. Allowed values: * + * `shipToBillingAddress` * `shipToVerifiedAddress` * + * `shipToNewAddress` * `shipToStore` * `digitalGoods` * + * `goodsNotShipped` * `other` */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -256,9 +277,7 @@ public void setDeliveryAddressIndicator(DeliveryAddressIndicatorEnum deliveryAdd * * @param deliveryEmail The delivery email address (for digital goods). * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v68 - * Use `deliveryEmailAddress` instead. + * @deprecated since Adyen Checkout API v68 Use `deliveryEmailAddress` instead. */ @Deprecated // deprecated since Adyen Checkout API v68: Use `deliveryEmailAddress` instead. public MerchantRiskIndicator deliveryEmail(String deliveryEmail) { @@ -268,6 +287,7 @@ public MerchantRiskIndicator deliveryEmail(String deliveryEmail) { /** * The delivery email address (for digital goods). + * * @return deliveryEmail The delivery email address (for digital goods). * @deprecated // deprecated since Adyen Checkout API v68: Use `deliveryEmailAddress` instead. */ @@ -282,9 +302,7 @@ public String getDeliveryEmail() { * The delivery email address (for digital goods). * * @param deliveryEmail The delivery email address (for digital goods). - * - * @deprecated since Adyen Checkout API v68 - * Use `deliveryEmailAddress` instead. + * @deprecated since Adyen Checkout API v68 Use `deliveryEmailAddress` instead. */ @Deprecated // deprecated since Adyen Checkout API v68: Use `deliveryEmailAddress` instead. @JsonProperty(JSON_PROPERTY_DELIVERY_EMAIL) @@ -294,9 +312,11 @@ public void setDeliveryEmail(String deliveryEmail) { } /** - * For Electronic delivery, the email address to which the merchandise was delivered. Maximum length: 254 characters. + * For Electronic delivery, the email address to which the merchandise was delivered. Maximum + * length: 254 characters. * - * @param deliveryEmailAddress For Electronic delivery, the email address to which the merchandise was delivered. Maximum length: 254 characters. + * @param deliveryEmailAddress For Electronic delivery, the email address to which the merchandise + * was delivered. Maximum length: 254 characters. * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator deliveryEmailAddress(String deliveryEmailAddress) { @@ -305,8 +325,11 @@ public MerchantRiskIndicator deliveryEmailAddress(String deliveryEmailAddress) { } /** - * For Electronic delivery, the email address to which the merchandise was delivered. Maximum length: 254 characters. - * @return deliveryEmailAddress For Electronic delivery, the email address to which the merchandise was delivered. Maximum length: 254 characters. + * For Electronic delivery, the email address to which the merchandise was delivered. Maximum + * length: 254 characters. + * + * @return deliveryEmailAddress For Electronic delivery, the email address to which the + * merchandise was delivered. Maximum length: 254 characters. */ @JsonProperty(JSON_PROPERTY_DELIVERY_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -315,9 +338,11 @@ public String getDeliveryEmailAddress() { } /** - * For Electronic delivery, the email address to which the merchandise was delivered. Maximum length: 254 characters. + * For Electronic delivery, the email address to which the merchandise was delivered. Maximum + * length: 254 characters. * - * @param deliveryEmailAddress For Electronic delivery, the email address to which the merchandise was delivered. Maximum length: 254 characters. + * @param deliveryEmailAddress For Electronic delivery, the email address to which the merchandise + * was delivered. Maximum length: 254 characters. */ @JsonProperty(JSON_PROPERTY_DELIVERY_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -326,9 +351,13 @@ public void setDeliveryEmailAddress(String deliveryEmailAddress) { } /** - * The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` + * The estimated delivery time for the shopper to receive the goods. Allowed values: * + * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * + * `twoOrMoreDaysShipping` * - * @param deliveryTimeframe The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` + * @param deliveryTimeframe The estimated delivery time for the shopper to receive the goods. + * Allowed values: * `electronicDelivery` * `sameDayShipping` * + * `overnightShipping` * `twoOrMoreDaysShipping` * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator deliveryTimeframe(DeliveryTimeframeEnum deliveryTimeframe) { @@ -337,8 +366,13 @@ public MerchantRiskIndicator deliveryTimeframe(DeliveryTimeframeEnum deliveryTim } /** - * The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` - * @return deliveryTimeframe The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` + * The estimated delivery time for the shopper to receive the goods. Allowed values: * + * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * + * `twoOrMoreDaysShipping` + * + * @return deliveryTimeframe The estimated delivery time for the shopper to receive the goods. + * Allowed values: * `electronicDelivery` * `sameDayShipping` * + * `overnightShipping` * `twoOrMoreDaysShipping` */ @JsonProperty(JSON_PROPERTY_DELIVERY_TIMEFRAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -347,9 +381,13 @@ public DeliveryTimeframeEnum getDeliveryTimeframe() { } /** - * The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` + * The estimated delivery time for the shopper to receive the goods. Allowed values: * + * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * + * `twoOrMoreDaysShipping` * - * @param deliveryTimeframe The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` + * @param deliveryTimeframe The estimated delivery time for the shopper to receive the goods. + * Allowed values: * `electronicDelivery` * `sameDayShipping` * + * `overnightShipping` * `twoOrMoreDaysShipping` */ @JsonProperty(JSON_PROPERTY_DELIVERY_TIMEFRAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -360,7 +398,7 @@ public void setDeliveryTimeframe(DeliveryTimeframeEnum deliveryTimeframe) { /** * giftCardAmount * - * @param giftCardAmount + * @param giftCardAmount * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator giftCardAmount(Amount giftCardAmount) { @@ -370,7 +408,8 @@ public MerchantRiskIndicator giftCardAmount(Amount giftCardAmount) { /** * Get giftCardAmount - * @return giftCardAmount + * + * @return giftCardAmount */ @JsonProperty(JSON_PROPERTY_GIFT_CARD_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -381,7 +420,7 @@ public Amount getGiftCardAmount() { /** * giftCardAmount * - * @param giftCardAmount + * @param giftCardAmount */ @JsonProperty(JSON_PROPERTY_GIFT_CARD_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -390,9 +429,11 @@ public void setGiftCardAmount(Amount giftCardAmount) { } /** - * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. + * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes + * purchased. * - * @param giftCardCount For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. + * @param giftCardCount For prepaid or gift card purchase, total count of individual prepaid or + * gift cards/codes purchased. * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator giftCardCount(Integer giftCardCount) { @@ -401,8 +442,11 @@ public MerchantRiskIndicator giftCardCount(Integer giftCardCount) { } /** - * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. - * @return giftCardCount For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. + * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes + * purchased. + * + * @return giftCardCount For prepaid or gift card purchase, total count of individual prepaid or + * gift cards/codes purchased. */ @JsonProperty(JSON_PROPERTY_GIFT_CARD_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -411,9 +455,11 @@ public Integer getGiftCardCount() { } /** - * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. + * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes + * purchased. * - * @param giftCardCount For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. + * @param giftCardCount For prepaid or gift card purchase, total count of individual prepaid or + * gift cards/codes purchased. */ @JsonProperty(JSON_PROPERTY_GIFT_CARD_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -422,9 +468,14 @@ public void setGiftCardCount(Integer giftCardCount) { } /** - * For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification. + * For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) + * three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo + * 3D Secure Protocol and Core Functions Specification. * - * @param giftCardCurr For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification. + * @param giftCardCurr For prepaid or gift card purchase, [ISO + * 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the + * gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core + * Functions Specification. * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator giftCardCurr(String giftCardCurr) { @@ -433,8 +484,14 @@ public MerchantRiskIndicator giftCardCurr(String giftCardCurr) { } /** - * For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification. - * @return giftCardCurr For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification. + * For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) + * three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo + * 3D Secure Protocol and Core Functions Specification. + * + * @return giftCardCurr For prepaid or gift card purchase, [ISO + * 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the + * gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core + * Functions Specification. */ @JsonProperty(JSON_PROPERTY_GIFT_CARD_CURR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -443,9 +500,14 @@ public String getGiftCardCurr() { } /** - * For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification. + * For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) + * three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo + * 3D Secure Protocol and Core Functions Specification. * - * @param giftCardCurr For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification. + * @param giftCardCurr For prepaid or gift card purchase, [ISO + * 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the + * gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core + * Functions Specification. */ @JsonProperty(JSON_PROPERTY_GIFT_CARD_CURR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -456,7 +518,8 @@ public void setGiftCardCurr(String giftCardCurr) { /** * For pre-order purchases, the expected date this product will be available to the shopper. * - * @param preOrderDate For pre-order purchases, the expected date this product will be available to the shopper. + * @param preOrderDate For pre-order purchases, the expected date this product will be available + * to the shopper. * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator preOrderDate(OffsetDateTime preOrderDate) { @@ -466,7 +529,9 @@ public MerchantRiskIndicator preOrderDate(OffsetDateTime preOrderDate) { /** * For pre-order purchases, the expected date this product will be available to the shopper. - * @return preOrderDate For pre-order purchases, the expected date this product will be available to the shopper. + * + * @return preOrderDate For pre-order purchases, the expected date this product will be available + * to the shopper. */ @JsonProperty(JSON_PROPERTY_PRE_ORDER_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -477,7 +542,8 @@ public OffsetDateTime getPreOrderDate() { /** * For pre-order purchases, the expected date this product will be available to the shopper. * - * @param preOrderDate For pre-order purchases, the expected date this product will be available to the shopper. + * @param preOrderDate For pre-order purchases, the expected date this product will be available + * to the shopper. */ @JsonProperty(JSON_PROPERTY_PRE_ORDER_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -498,6 +564,7 @@ public MerchantRiskIndicator preOrderPurchase(Boolean preOrderPurchase) { /** * Indicator for whether this transaction is for pre-ordering a product. + * * @return preOrderPurchase Indicator for whether this transaction is for pre-ordering a product. */ @JsonProperty(JSON_PROPERTY_PRE_ORDER_PURCHASE) @@ -518,9 +585,11 @@ public void setPreOrderPurchase(Boolean preOrderPurchase) { } /** - * Indicates whether Cardholder is placing an order for merchandise with a future availability or release date. + * Indicates whether Cardholder is placing an order for merchandise with a future availability or + * release date. * - * @param preOrderPurchaseInd Indicates whether Cardholder is placing an order for merchandise with a future availability or release date. + * @param preOrderPurchaseInd Indicates whether Cardholder is placing an order for merchandise + * with a future availability or release date. * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator preOrderPurchaseInd(String preOrderPurchaseInd) { @@ -529,8 +598,11 @@ public MerchantRiskIndicator preOrderPurchaseInd(String preOrderPurchaseInd) { } /** - * Indicates whether Cardholder is placing an order for merchandise with a future availability or release date. - * @return preOrderPurchaseInd Indicates whether Cardholder is placing an order for merchandise with a future availability or release date. + * Indicates whether Cardholder is placing an order for merchandise with a future availability or + * release date. + * + * @return preOrderPurchaseInd Indicates whether Cardholder is placing an order for merchandise + * with a future availability or release date. */ @JsonProperty(JSON_PROPERTY_PRE_ORDER_PURCHASE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -539,9 +611,11 @@ public String getPreOrderPurchaseInd() { } /** - * Indicates whether Cardholder is placing an order for merchandise with a future availability or release date. + * Indicates whether Cardholder is placing an order for merchandise with a future availability or + * release date. * - * @param preOrderPurchaseInd Indicates whether Cardholder is placing an order for merchandise with a future availability or release date. + * @param preOrderPurchaseInd Indicates whether Cardholder is placing an order for merchandise + * with a future availability or release date. */ @JsonProperty(JSON_PROPERTY_PRE_ORDER_PURCHASE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -552,7 +626,8 @@ public void setPreOrderPurchaseInd(String preOrderPurchaseInd) { /** * Indicator for whether the shopper has already purchased the same items in the past. * - * @param reorderItems Indicator for whether the shopper has already purchased the same items in the past. + * @param reorderItems Indicator for whether the shopper has already purchased the same items in + * the past. * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator reorderItems(Boolean reorderItems) { @@ -562,7 +637,9 @@ public MerchantRiskIndicator reorderItems(Boolean reorderItems) { /** * Indicator for whether the shopper has already purchased the same items in the past. - * @return reorderItems Indicator for whether the shopper has already purchased the same items in the past. + * + * @return reorderItems Indicator for whether the shopper has already purchased the same items in + * the past. */ @JsonProperty(JSON_PROPERTY_REORDER_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -573,7 +650,8 @@ public Boolean getReorderItems() { /** * Indicator for whether the shopper has already purchased the same items in the past. * - * @param reorderItems Indicator for whether the shopper has already purchased the same items in the past. + * @param reorderItems Indicator for whether the shopper has already purchased the same items in + * the past. */ @JsonProperty(JSON_PROPERTY_REORDER_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -584,7 +662,8 @@ public void setReorderItems(Boolean reorderItems) { /** * Indicates whether the cardholder is reordering previously purchased merchandise. * - * @param reorderItemsInd Indicates whether the cardholder is reordering previously purchased merchandise. + * @param reorderItemsInd Indicates whether the cardholder is reordering previously purchased + * merchandise. * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator reorderItemsInd(String reorderItemsInd) { @@ -594,7 +673,9 @@ public MerchantRiskIndicator reorderItemsInd(String reorderItemsInd) { /** * Indicates whether the cardholder is reordering previously purchased merchandise. - * @return reorderItemsInd Indicates whether the cardholder is reordering previously purchased merchandise. + * + * @return reorderItemsInd Indicates whether the cardholder is reordering previously purchased + * merchandise. */ @JsonProperty(JSON_PROPERTY_REORDER_ITEMS_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -605,7 +686,8 @@ public String getReorderItemsInd() { /** * Indicates whether the cardholder is reordering previously purchased merchandise. * - * @param reorderItemsInd Indicates whether the cardholder is reordering previously purchased merchandise. + * @param reorderItemsInd Indicates whether the cardholder is reordering previously purchased + * merchandise. */ @JsonProperty(JSON_PROPERTY_REORDER_ITEMS_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -626,6 +708,7 @@ public MerchantRiskIndicator shipIndicator(String shipIndicator) { /** * Indicates shipping method chosen for the transaction. + * * @return shipIndicator Indicates shipping method chosen for the transaction. */ @JsonProperty(JSON_PROPERTY_SHIP_INDICATOR) @@ -645,9 +728,7 @@ public void setShipIndicator(String shipIndicator) { this.shipIndicator = shipIndicator; } - /** - * Return true if this MerchantRiskIndicator object is equal to o. - */ + /** Return true if this MerchantRiskIndicator object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -657,25 +738,40 @@ public boolean equals(Object o) { return false; } MerchantRiskIndicator merchantRiskIndicator = (MerchantRiskIndicator) o; - return Objects.equals(this.addressMatch, merchantRiskIndicator.addressMatch) && - Objects.equals(this.deliveryAddressIndicator, merchantRiskIndicator.deliveryAddressIndicator) && - Objects.equals(this.deliveryEmail, merchantRiskIndicator.deliveryEmail) && - Objects.equals(this.deliveryEmailAddress, merchantRiskIndicator.deliveryEmailAddress) && - Objects.equals(this.deliveryTimeframe, merchantRiskIndicator.deliveryTimeframe) && - Objects.equals(this.giftCardAmount, merchantRiskIndicator.giftCardAmount) && - Objects.equals(this.giftCardCount, merchantRiskIndicator.giftCardCount) && - Objects.equals(this.giftCardCurr, merchantRiskIndicator.giftCardCurr) && - Objects.equals(this.preOrderDate, merchantRiskIndicator.preOrderDate) && - Objects.equals(this.preOrderPurchase, merchantRiskIndicator.preOrderPurchase) && - Objects.equals(this.preOrderPurchaseInd, merchantRiskIndicator.preOrderPurchaseInd) && - Objects.equals(this.reorderItems, merchantRiskIndicator.reorderItems) && - Objects.equals(this.reorderItemsInd, merchantRiskIndicator.reorderItemsInd) && - Objects.equals(this.shipIndicator, merchantRiskIndicator.shipIndicator); + return Objects.equals(this.addressMatch, merchantRiskIndicator.addressMatch) + && Objects.equals( + this.deliveryAddressIndicator, merchantRiskIndicator.deliveryAddressIndicator) + && Objects.equals(this.deliveryEmail, merchantRiskIndicator.deliveryEmail) + && Objects.equals(this.deliveryEmailAddress, merchantRiskIndicator.deliveryEmailAddress) + && Objects.equals(this.deliveryTimeframe, merchantRiskIndicator.deliveryTimeframe) + && Objects.equals(this.giftCardAmount, merchantRiskIndicator.giftCardAmount) + && Objects.equals(this.giftCardCount, merchantRiskIndicator.giftCardCount) + && Objects.equals(this.giftCardCurr, merchantRiskIndicator.giftCardCurr) + && Objects.equals(this.preOrderDate, merchantRiskIndicator.preOrderDate) + && Objects.equals(this.preOrderPurchase, merchantRiskIndicator.preOrderPurchase) + && Objects.equals(this.preOrderPurchaseInd, merchantRiskIndicator.preOrderPurchaseInd) + && Objects.equals(this.reorderItems, merchantRiskIndicator.reorderItems) + && Objects.equals(this.reorderItemsInd, merchantRiskIndicator.reorderItemsInd) + && Objects.equals(this.shipIndicator, merchantRiskIndicator.shipIndicator); } @Override public int hashCode() { - return Objects.hash(addressMatch, deliveryAddressIndicator, deliveryEmail, deliveryEmailAddress, deliveryTimeframe, giftCardAmount, giftCardCount, giftCardCurr, preOrderDate, preOrderPurchase, preOrderPurchaseInd, reorderItems, reorderItemsInd, shipIndicator); + return Objects.hash( + addressMatch, + deliveryAddressIndicator, + deliveryEmail, + deliveryEmailAddress, + deliveryTimeframe, + giftCardAmount, + giftCardCount, + giftCardCurr, + preOrderDate, + preOrderPurchase, + preOrderPurchaseInd, + reorderItems, + reorderItemsInd, + shipIndicator); } @Override @@ -683,16 +779,22 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MerchantRiskIndicator {\n"); sb.append(" addressMatch: ").append(toIndentedString(addressMatch)).append("\n"); - sb.append(" deliveryAddressIndicator: ").append(toIndentedString(deliveryAddressIndicator)).append("\n"); + sb.append(" deliveryAddressIndicator: ") + .append(toIndentedString(deliveryAddressIndicator)) + .append("\n"); sb.append(" deliveryEmail: ").append(toIndentedString(deliveryEmail)).append("\n"); - sb.append(" deliveryEmailAddress: ").append(toIndentedString(deliveryEmailAddress)).append("\n"); + sb.append(" deliveryEmailAddress: ") + .append(toIndentedString(deliveryEmailAddress)) + .append("\n"); sb.append(" deliveryTimeframe: ").append(toIndentedString(deliveryTimeframe)).append("\n"); sb.append(" giftCardAmount: ").append(toIndentedString(giftCardAmount)).append("\n"); sb.append(" giftCardCount: ").append(toIndentedString(giftCardCount)).append("\n"); sb.append(" giftCardCurr: ").append(toIndentedString(giftCardCurr)).append("\n"); sb.append(" preOrderDate: ").append(toIndentedString(preOrderDate)).append("\n"); sb.append(" preOrderPurchase: ").append(toIndentedString(preOrderPurchase)).append("\n"); - sb.append(" preOrderPurchaseInd: ").append(toIndentedString(preOrderPurchaseInd)).append("\n"); + sb.append(" preOrderPurchaseInd: ") + .append(toIndentedString(preOrderPurchaseInd)) + .append("\n"); sb.append(" reorderItems: ").append(toIndentedString(reorderItems)).append("\n"); sb.append(" reorderItemsInd: ").append(toIndentedString(reorderItemsInd)).append("\n"); sb.append(" shipIndicator: ").append(toIndentedString(shipIndicator)).append("\n"); @@ -701,8 +803,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -711,21 +812,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of MerchantRiskIndicator given an JSON string * * @param jsonString JSON string * @return An instance of MerchantRiskIndicator - * @throws JsonProcessingException if the JSON string is invalid with respect to MerchantRiskIndicator + * @throws JsonProcessingException if the JSON string is invalid with respect to + * MerchantRiskIndicator */ public static MerchantRiskIndicator fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MerchantRiskIndicator.class); } -/** - * Convert an instance of MerchantRiskIndicator to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of MerchantRiskIndicator to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/MobilePayDetails.java b/src/main/java/com/adyen/model/checkout/MobilePayDetails.java index d08fc16a2..86222695f 100644 --- a/src/main/java/com/adyen/model/checkout/MobilePayDetails.java +++ b/src/main/java/com/adyen/model/checkout/MobilePayDetails.java @@ -2,45 +2,36 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * MobilePayDetails - */ +/** MobilePayDetails */ @JsonPropertyOrder({ MobilePayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, MobilePayDetails.JSON_PROPERTY_TYPE }) - public class MobilePayDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; - /** - * **mobilepay** - */ + /** **mobilepay** */ public enum TypeEnum { - MOBILEPAY(String.valueOf("mobilepay")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +39,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,8 +72,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public MobilePayDetails() { - } + public MobilePayDetails() {} /** * The checkout attempt identifier. @@ -93,6 +87,7 @@ public MobilePayDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -125,6 +120,7 @@ public MobilePayDetails type(TypeEnum type) { /** * **mobilepay** + * * @return type **mobilepay** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -144,9 +140,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this MobilePayDetails object is equal to o. - */ + /** Return true if this MobilePayDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +150,8 @@ public boolean equals(Object o) { return false; } MobilePayDetails mobilePayDetails = (MobilePayDetails) o; - return Objects.equals(this.checkoutAttemptId, mobilePayDetails.checkoutAttemptId) && - Objects.equals(this.type, mobilePayDetails.type); + return Objects.equals(this.checkoutAttemptId, mobilePayDetails.checkoutAttemptId) + && Objects.equals(this.type, mobilePayDetails.type); } @Override @@ -176,8 +170,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +179,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of MobilePayDetails given an JSON string * * @param jsonString JSON string @@ -196,11 +189,12 @@ private String toIndentedString(Object o) { public static MobilePayDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MobilePayDetails.class); } -/** - * Convert an instance of MobilePayDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of MobilePayDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/MolPayDetails.java b/src/main/java/com/adyen/model/checkout/MolPayDetails.java index dbb3ee044..46137acd1 100644 --- a/src/main/java/com/adyen/model/checkout/MolPayDetails.java +++ b/src/main/java/com/adyen/model/checkout/MolPayDetails.java @@ -2,37 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * MolPayDetails - */ +/** MolPayDetails */ @JsonPropertyOrder({ MolPayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, MolPayDetails.JSON_PROPERTY_ISSUER, MolPayDetails.JSON_PROPERTY_TYPE }) - public class MolPayDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -40,11 +34,8 @@ public class MolPayDetails { public static final String JSON_PROPERTY_ISSUER = "issuer"; private String issuer; - /** - * **molpay** - */ + /** **molpay** */ public enum TypeEnum { - MOLPAY_EBANKING_FPX_MY(String.valueOf("molpay_ebanking_fpx_MY")), MOLPAY_EBANKING_TH(String.valueOf("molpay_ebanking_TH")); @@ -54,7 +45,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -75,7 +66,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -83,8 +78,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public MolPayDetails() { - } + public MolPayDetails() {} /** * The checkout attempt identifier. @@ -99,6 +93,7 @@ public MolPayDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -121,7 +116,8 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { /** * The shopper's bank. Specify this with the issuer value that corresponds to this bank. * - * @param issuer The shopper's bank. Specify this with the issuer value that corresponds to this bank. + * @param issuer The shopper's bank. Specify this with the issuer value that corresponds to + * this bank. * @return the current {@code MolPayDetails} instance, allowing for method chaining */ public MolPayDetails issuer(String issuer) { @@ -131,7 +127,9 @@ public MolPayDetails issuer(String issuer) { /** * The shopper's bank. Specify this with the issuer value that corresponds to this bank. - * @return issuer The shopper's bank. Specify this with the issuer value that corresponds to this bank. + * + * @return issuer The shopper's bank. Specify this with the issuer value that corresponds to + * this bank. */ @JsonProperty(JSON_PROPERTY_ISSUER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,7 +140,8 @@ public String getIssuer() { /** * The shopper's bank. Specify this with the issuer value that corresponds to this bank. * - * @param issuer The shopper's bank. Specify this with the issuer value that corresponds to this bank. + * @param issuer The shopper's bank. Specify this with the issuer value that corresponds to + * this bank. */ @JsonProperty(JSON_PROPERTY_ISSUER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,6 +162,7 @@ public MolPayDetails type(TypeEnum type) { /** * **molpay** + * * @return type **molpay** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -182,9 +182,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this MolPayDetails object is equal to o. - */ + /** Return true if this MolPayDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -194,9 +192,9 @@ public boolean equals(Object o) { return false; } MolPayDetails molPayDetails = (MolPayDetails) o; - return Objects.equals(this.checkoutAttemptId, molPayDetails.checkoutAttemptId) && - Objects.equals(this.issuer, molPayDetails.issuer) && - Objects.equals(this.type, molPayDetails.type); + return Objects.equals(this.checkoutAttemptId, molPayDetails.checkoutAttemptId) + && Objects.equals(this.issuer, molPayDetails.issuer) + && Objects.equals(this.type, molPayDetails.type); } @Override @@ -216,8 +214,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -226,7 +223,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of MolPayDetails given an JSON string * * @param jsonString JSON string @@ -236,11 +233,12 @@ private String toIndentedString(Object o) { public static MolPayDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MolPayDetails.class); } -/** - * Convert an instance of MolPayDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of MolPayDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Name.java b/src/main/java/com/adyen/model/checkout/Name.java index 51e869ef2..4c60fa238 100644 --- a/src/main/java/com/adyen/model/checkout/Name.java +++ b/src/main/java/com/adyen/model/checkout/Name.java @@ -2,36 +2,23 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Name - */ -@JsonPropertyOrder({ - Name.JSON_PROPERTY_FIRST_NAME, - Name.JSON_PROPERTY_LAST_NAME -}) - +/** Name */ +@JsonPropertyOrder({Name.JSON_PROPERTY_FIRST_NAME, Name.JSON_PROPERTY_LAST_NAME}) public class Name { public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; private String firstName; @@ -39,8 +26,7 @@ public class Name { public static final String JSON_PROPERTY_LAST_NAME = "lastName"; private String lastName; - public Name() { - } + public Name() {} /** * The first name. @@ -55,6 +41,7 @@ public Name firstName(String firstName) { /** * The first name. + * * @return firstName The first name. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @@ -87,6 +74,7 @@ public Name lastName(String lastName) { /** * The last name. + * * @return lastName The last name. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @@ -106,9 +94,7 @@ public void setLastName(String lastName) { this.lastName = lastName; } - /** - * Return true if this Name object is equal to o. - */ + /** Return true if this Name object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +104,8 @@ public boolean equals(Object o) { return false; } Name name = (Name) o; - return Objects.equals(this.firstName, name.firstName) && - Objects.equals(this.lastName, name.lastName); + return Objects.equals(this.firstName, name.firstName) + && Objects.equals(this.lastName, name.lastName); } @Override @@ -138,8 +124,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +133,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Name given an JSON string * * @param jsonString JSON string @@ -158,11 +143,12 @@ private String toIndentedString(Object o) { public static Name fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Name.class); } -/** - * Convert an instance of Name to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Name to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/OpenInvoiceDetails.java b/src/main/java/com/adyen/model/checkout/OpenInvoiceDetails.java index 690b76942..9c33b6e20 100644 --- a/src/main/java/com/adyen/model/checkout/OpenInvoiceDetails.java +++ b/src/main/java/com/adyen/model/checkout/OpenInvoiceDetails.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * OpenInvoiceDetails - */ +/** OpenInvoiceDetails */ @JsonPropertyOrder({ OpenInvoiceDetails.JSON_PROPERTY_BILLING_ADDRESS, OpenInvoiceDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, @@ -36,7 +31,6 @@ OpenInvoiceDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, OpenInvoiceDetails.JSON_PROPERTY_TYPE }) - public class OpenInvoiceDetails { public static final String JSON_PROPERTY_BILLING_ADDRESS = "billingAddress"; private String billingAddress; @@ -57,11 +51,8 @@ public class OpenInvoiceDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** - * **openinvoice** - */ + /** **openinvoice** */ public enum TypeEnum { - OPENINVOICE(String.valueOf("openinvoice")), AFTERPAY_DIRECTDEBIT(String.valueOf("afterpay_directdebit")), @@ -73,7 +64,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -94,7 +85,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -102,8 +97,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public OpenInvoiceDetails() { - } + public OpenInvoiceDetails() {} /** * The address where to send the invoice. @@ -118,6 +112,7 @@ public OpenInvoiceDetails billingAddress(String billingAddress) { /** * The address where to send the invoice. + * * @return billingAddress The address where to send the invoice. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @@ -150,6 +145,7 @@ public OpenInvoiceDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -182,6 +178,7 @@ public OpenInvoiceDetails deliveryAddress(String deliveryAddress) { /** * The address where the goods should be delivered. + * * @return deliveryAddress The address where the goods should be delivered. */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @@ -214,6 +211,7 @@ public OpenInvoiceDetails personalDetails(String personalDetails) { /** * Shopper name, date of birth, phone number, and email address. + * * @return personalDetails Shopper name, date of birth, phone number, and email address. */ @JsonProperty(JSON_PROPERTY_PERSONAL_DETAILS) @@ -234,13 +232,13 @@ public void setPersonalDetails(String personalDetails) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code OpenInvoiceDetails} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public OpenInvoiceDetails recurringDetailReference(String recurringDetailReference) { @@ -249,8 +247,11 @@ public OpenInvoiceDetails recurringDetailReference(String recurringDetailReferen } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -261,12 +262,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -276,9 +277,11 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code OpenInvoiceDetails} instance, allowing for method chaining */ public OpenInvoiceDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -287,8 +290,11 @@ public OpenInvoiceDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -297,9 +303,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -320,6 +328,7 @@ public OpenInvoiceDetails type(TypeEnum type) { /** * **openinvoice** + * * @return type **openinvoice** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -339,9 +348,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this OpenInvoiceDetails object is equal to o. - */ + /** Return true if this OpenInvoiceDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -351,18 +358,26 @@ public boolean equals(Object o) { return false; } OpenInvoiceDetails openInvoiceDetails = (OpenInvoiceDetails) o; - return Objects.equals(this.billingAddress, openInvoiceDetails.billingAddress) && - Objects.equals(this.checkoutAttemptId, openInvoiceDetails.checkoutAttemptId) && - Objects.equals(this.deliveryAddress, openInvoiceDetails.deliveryAddress) && - Objects.equals(this.personalDetails, openInvoiceDetails.personalDetails) && - Objects.equals(this.recurringDetailReference, openInvoiceDetails.recurringDetailReference) && - Objects.equals(this.storedPaymentMethodId, openInvoiceDetails.storedPaymentMethodId) && - Objects.equals(this.type, openInvoiceDetails.type); + return Objects.equals(this.billingAddress, openInvoiceDetails.billingAddress) + && Objects.equals(this.checkoutAttemptId, openInvoiceDetails.checkoutAttemptId) + && Objects.equals(this.deliveryAddress, openInvoiceDetails.deliveryAddress) + && Objects.equals(this.personalDetails, openInvoiceDetails.personalDetails) + && Objects.equals( + this.recurringDetailReference, openInvoiceDetails.recurringDetailReference) + && Objects.equals(this.storedPaymentMethodId, openInvoiceDetails.storedPaymentMethodId) + && Objects.equals(this.type, openInvoiceDetails.type); } @Override public int hashCode() { - return Objects.hash(billingAddress, checkoutAttemptId, deliveryAddress, personalDetails, recurringDetailReference, storedPaymentMethodId, type); + return Objects.hash( + billingAddress, + checkoutAttemptId, + deliveryAddress, + personalDetails, + recurringDetailReference, + storedPaymentMethodId, + type); } @Override @@ -373,16 +388,19 @@ public String toString() { sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" deliveryAddress: ").append(toIndentedString(deliveryAddress)).append("\n"); sb.append(" personalDetails: ").append(toIndentedString(personalDetails)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -391,21 +409,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of OpenInvoiceDetails given an JSON string * * @param jsonString JSON string * @return An instance of OpenInvoiceDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to OpenInvoiceDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to + * OpenInvoiceDetails */ public static OpenInvoiceDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, OpenInvoiceDetails.class); } -/** - * Convert an instance of OpenInvoiceDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of OpenInvoiceDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Passenger.java b/src/main/java/com/adyen/model/checkout/Passenger.java index dd6acc240..ebc966312 100644 --- a/src/main/java/com/adyen/model/checkout/Passenger.java +++ b/src/main/java/com/adyen/model/checkout/Passenger.java @@ -2,32 +2,23 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.LocalDate; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.time.LocalDate; +import java.util.*; - -/** - * Passenger - */ +/** Passenger */ @JsonPropertyOrder({ Passenger.JSON_PROPERTY_DATE_OF_BIRTH, Passenger.JSON_PROPERTY_FIRST_NAME, @@ -35,7 +26,6 @@ Passenger.JSON_PROPERTY_PHONE_NUMBER, Passenger.JSON_PROPERTY_TRAVELLER_TYPE }) - public class Passenger { public static final String JSON_PROPERTY_DATE_OF_BIRTH = "dateOfBirth"; private LocalDate dateOfBirth; @@ -52,13 +42,14 @@ public class Passenger { public static final String JSON_PROPERTY_TRAVELLER_TYPE = "travellerType"; private String travellerType; - public Passenger() { - } + public Passenger() {} /** - * The passenger's date of birth. * Format `yyyy-MM-dd` * minLength: 10 * maxLength: 10 + * The passenger's date of birth. * Format `yyyy-MM-dd` * minLength: 10 * maxLength: + * 10 * - * @param dateOfBirth The passenger's date of birth. * Format `yyyy-MM-dd` * minLength: 10 * maxLength: 10 + * @param dateOfBirth The passenger's date of birth. * Format `yyyy-MM-dd` * + * minLength: 10 * maxLength: 10 * @return the current {@code Passenger} instance, allowing for method chaining */ public Passenger dateOfBirth(LocalDate dateOfBirth) { @@ -67,8 +58,11 @@ public Passenger dateOfBirth(LocalDate dateOfBirth) { } /** - * The passenger's date of birth. * Format `yyyy-MM-dd` * minLength: 10 * maxLength: 10 - * @return dateOfBirth The passenger's date of birth. * Format `yyyy-MM-dd` * minLength: 10 * maxLength: 10 + * The passenger's date of birth. * Format `yyyy-MM-dd` * minLength: 10 * maxLength: + * 10 + * + * @return dateOfBirth The passenger's date of birth. * Format `yyyy-MM-dd` * + * minLength: 10 * maxLength: 10 */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -77,9 +71,11 @@ public LocalDate getDateOfBirth() { } /** - * The passenger's date of birth. * Format `yyyy-MM-dd` * minLength: 10 * maxLength: 10 + * The passenger's date of birth. * Format `yyyy-MM-dd` * minLength: 10 * maxLength: + * 10 * - * @param dateOfBirth The passenger's date of birth. * Format `yyyy-MM-dd` * minLength: 10 * maxLength: 10 + * @param dateOfBirth The passenger's date of birth. * Format `yyyy-MM-dd` * + * minLength: 10 * maxLength: 10 */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -88,9 +84,11 @@ public void setDateOfBirth(LocalDate dateOfBirth) { } /** - * The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * The passenger's first name. > This field is required if the airline data includes + * passenger details or leg details. * Encoding: ASCII * - * @param firstName The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * @param firstName The passenger's first name. > This field is required if the airline + * data includes passenger details or leg details. * Encoding: ASCII * @return the current {@code Passenger} instance, allowing for method chaining */ public Passenger firstName(String firstName) { @@ -99,8 +97,11 @@ public Passenger firstName(String firstName) { } /** - * The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII - * @return firstName The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * The passenger's first name. > This field is required if the airline data includes + * passenger details or leg details. * Encoding: ASCII + * + * @return firstName The passenger's first name. > This field is required if the airline + * data includes passenger details or leg details. * Encoding: ASCII */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -109,9 +110,11 @@ public String getFirstName() { } /** - * The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * The passenger's first name. > This field is required if the airline data includes + * passenger details or leg details. * Encoding: ASCII * - * @param firstName The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * @param firstName The passenger's first name. > This field is required if the airline + * data includes passenger details or leg details. * Encoding: ASCII */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -120,9 +123,11 @@ public void setFirstName(String firstName) { } /** - * The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * The passenger's last name. > This field is required if the airline data includes + * passenger details or leg details. * Encoding: ASCII * - * @param lastName The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * @param lastName The passenger's last name. > This field is required if the airline data + * includes passenger details or leg details. * Encoding: ASCII * @return the current {@code Passenger} instance, allowing for method chaining */ public Passenger lastName(String lastName) { @@ -131,8 +136,11 @@ public Passenger lastName(String lastName) { } /** - * The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII - * @return lastName The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * The passenger's last name. > This field is required if the airline data includes + * passenger details or leg details. * Encoding: ASCII + * + * @return lastName The passenger's last name. > This field is required if the airline data + * includes passenger details or leg details. * Encoding: ASCII */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -141,9 +149,11 @@ public String getLastName() { } /** - * The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * The passenger's last name. > This field is required if the airline data includes + * passenger details or leg details. * Encoding: ASCII * - * @param lastName The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * @param lastName The passenger's last name. > This field is required if the airline data + * includes passenger details or leg details. * Encoding: ASCII */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,9 +162,13 @@ public void setLastName(String lastName) { } /** - * The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters + * The passenger's phone number, including country code. This is an alphanumeric field that + * can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters + * * maxLength: 30 characters * - * @param phoneNumber The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters + * @param phoneNumber The passenger's phone number, including country code. This is an + * alphanumeric field that can include the '+' and '-' signs. * Encoding: + * ASCII * minLength: 3 characters * maxLength: 30 characters * @return the current {@code Passenger} instance, allowing for method chaining */ public Passenger phoneNumber(String phoneNumber) { @@ -163,8 +177,13 @@ public Passenger phoneNumber(String phoneNumber) { } /** - * The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters - * @return phoneNumber The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters + * The passenger's phone number, including country code. This is an alphanumeric field that + * can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters + * * maxLength: 30 characters + * + * @return phoneNumber The passenger's phone number, including country code. This is an + * alphanumeric field that can include the '+' and '-' signs. * Encoding: + * ASCII * minLength: 3 characters * maxLength: 30 characters */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,9 +192,13 @@ public String getPhoneNumber() { } /** - * The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters + * The passenger's phone number, including country code. This is an alphanumeric field that + * can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters + * * maxLength: 30 characters * - * @param phoneNumber The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters + * @param phoneNumber The passenger's phone number, including country code. This is an + * alphanumeric field that can include the '+' and '-' signs. * Encoding: + * ASCII * minLength: 3 characters * maxLength: 30 characters */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -184,9 +207,11 @@ public void setPhoneNumber(String phoneNumber) { } /** - * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters + * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 + * characters * - * @param travellerType The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters + * @param travellerType The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 + * characters * maxLength: 6 characters * @return the current {@code Passenger} instance, allowing for method chaining */ public Passenger travellerType(String travellerType) { @@ -195,8 +220,11 @@ public Passenger travellerType(String travellerType) { } /** - * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters - * @return travellerType The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters + * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 + * characters + * + * @return travellerType The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 + * characters * maxLength: 6 characters */ @JsonProperty(JSON_PROPERTY_TRAVELLER_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -205,9 +233,11 @@ public String getTravellerType() { } /** - * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters + * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 + * characters * - * @param travellerType The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters + * @param travellerType The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 + * characters * maxLength: 6 characters */ @JsonProperty(JSON_PROPERTY_TRAVELLER_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -215,9 +245,7 @@ public void setTravellerType(String travellerType) { this.travellerType = travellerType; } - /** - * Return true if this Passenger object is equal to o. - */ + /** Return true if this Passenger object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -227,11 +255,11 @@ public boolean equals(Object o) { return false; } Passenger passenger = (Passenger) o; - return Objects.equals(this.dateOfBirth, passenger.dateOfBirth) && - Objects.equals(this.firstName, passenger.firstName) && - Objects.equals(this.lastName, passenger.lastName) && - Objects.equals(this.phoneNumber, passenger.phoneNumber) && - Objects.equals(this.travellerType, passenger.travellerType); + return Objects.equals(this.dateOfBirth, passenger.dateOfBirth) + && Objects.equals(this.firstName, passenger.firstName) + && Objects.equals(this.lastName, passenger.lastName) + && Objects.equals(this.phoneNumber, passenger.phoneNumber) + && Objects.equals(this.travellerType, passenger.travellerType); } @Override @@ -253,8 +281,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -263,7 +290,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Passenger given an JSON string * * @param jsonString JSON string @@ -273,11 +300,12 @@ private String toIndentedString(Object o) { public static Passenger fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Passenger.class); } -/** - * Convert an instance of Passenger to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Passenger to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PayByBankAISDirectDebitDetails.java b/src/main/java/com/adyen/model/checkout/PayByBankAISDirectDebitDetails.java index 5a2c6ba6c..094dadf9e 100644 --- a/src/main/java/com/adyen/model/checkout/PayByBankAISDirectDebitDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayByBankAISDirectDebitDetails.java @@ -2,38 +2,32 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * PayByBankAISDirectDebitDetails - */ +/** PayByBankAISDirectDebitDetails */ @JsonPropertyOrder({ PayByBankAISDirectDebitDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, PayByBankAISDirectDebitDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, PayByBankAISDirectDebitDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, PayByBankAISDirectDebitDetails.JSON_PROPERTY_TYPE }) - public class PayByBankAISDirectDebitDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -45,11 +39,8 @@ public class PayByBankAISDirectDebitDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** - * **paybybank_AIS_DD** - */ + /** **paybybank_AIS_DD** */ public enum TypeEnum { - PAYBYBANK_AIS_DD(String.valueOf("paybybank_AIS_DD")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -57,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -78,7 +69,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -86,14 +81,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PayByBankAISDirectDebitDetails() { - } + public PayByBankAISDirectDebitDetails() {} /** * The checkout attempt identifier. * * @param checkoutAttemptId The checkout attempt identifier. - * @return the current {@code PayByBankAISDirectDebitDetails} instance, allowing for method chaining + * @return the current {@code PayByBankAISDirectDebitDetails} instance, allowing for method + * chaining */ public PayByBankAISDirectDebitDetails checkoutAttemptId(String checkoutAttemptId) { this.checkoutAttemptId = checkoutAttemptId; @@ -102,6 +97,7 @@ public PayByBankAISDirectDebitDetails checkoutAttemptId(String checkoutAttemptId /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -122,13 +118,14 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. - * @return the current {@code PayByBankAISDirectDebitDetails} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @return the current {@code PayByBankAISDirectDebitDetails} instance, allowing for method + * chaining + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public PayByBankAISDirectDebitDetails recurringDetailReference(String recurringDetailReference) { @@ -137,8 +134,11 @@ public PayByBankAISDirectDebitDetails recurringDetailReference(String recurringD } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -149,12 +149,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -164,10 +164,13 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. - * @return the current {@code PayByBankAISDirectDebitDetails} instance, allowing for method chaining + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. + * @return the current {@code PayByBankAISDirectDebitDetails} instance, allowing for method + * chaining */ public PayByBankAISDirectDebitDetails storedPaymentMethodId(String storedPaymentMethodId) { this.storedPaymentMethodId = storedPaymentMethodId; @@ -175,8 +178,11 @@ public PayByBankAISDirectDebitDetails storedPaymentMethodId(String storedPayment } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,9 +191,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -199,7 +207,8 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { * **paybybank_AIS_DD** * * @param type **paybybank_AIS_DD** - * @return the current {@code PayByBankAISDirectDebitDetails} instance, allowing for method chaining + * @return the current {@code PayByBankAISDirectDebitDetails} instance, allowing for method + * chaining */ public PayByBankAISDirectDebitDetails type(TypeEnum type) { this.type = type; @@ -208,6 +217,7 @@ public PayByBankAISDirectDebitDetails type(TypeEnum type) { /** * **paybybank_AIS_DD** + * * @return type **paybybank_AIS_DD** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -227,9 +237,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this PayByBankAISDirectDebitDetails object is equal to o. - */ + /** Return true if this PayByBankAISDirectDebitDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -238,11 +246,14 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PayByBankAISDirectDebitDetails payByBankAISDirectDebitDetails = (PayByBankAISDirectDebitDetails) o; - return Objects.equals(this.checkoutAttemptId, payByBankAISDirectDebitDetails.checkoutAttemptId) && - Objects.equals(this.recurringDetailReference, payByBankAISDirectDebitDetails.recurringDetailReference) && - Objects.equals(this.storedPaymentMethodId, payByBankAISDirectDebitDetails.storedPaymentMethodId) && - Objects.equals(this.type, payByBankAISDirectDebitDetails.type); + PayByBankAISDirectDebitDetails payByBankAISDirectDebitDetails = + (PayByBankAISDirectDebitDetails) o; + return Objects.equals(this.checkoutAttemptId, payByBankAISDirectDebitDetails.checkoutAttemptId) + && Objects.equals( + this.recurringDetailReference, payByBankAISDirectDebitDetails.recurringDetailReference) + && Objects.equals( + this.storedPaymentMethodId, payByBankAISDirectDebitDetails.storedPaymentMethodId) + && Objects.equals(this.type, payByBankAISDirectDebitDetails.type); } @Override @@ -255,16 +266,19 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PayByBankAISDirectDebitDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -273,21 +287,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PayByBankAISDirectDebitDetails given an JSON string * * @param jsonString JSON string * @return An instance of PayByBankAISDirectDebitDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to PayByBankAISDirectDebitDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PayByBankAISDirectDebitDetails */ - public static PayByBankAISDirectDebitDetails fromJson(String jsonString) throws JsonProcessingException { + public static PayByBankAISDirectDebitDetails fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayByBankAISDirectDebitDetails.class); } -/** - * Convert an instance of PayByBankAISDirectDebitDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PayByBankAISDirectDebitDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PayByBankDetails.java b/src/main/java/com/adyen/model/checkout/PayByBankDetails.java index 995bbcdc5..9d0d8ca2e 100644 --- a/src/main/java/com/adyen/model/checkout/PayByBankDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayByBankDetails.java @@ -2,37 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * PayByBankDetails - */ +/** PayByBankDetails */ @JsonPropertyOrder({ PayByBankDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, PayByBankDetails.JSON_PROPERTY_ISSUER, PayByBankDetails.JSON_PROPERTY_TYPE }) - public class PayByBankDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -40,11 +34,8 @@ public class PayByBankDetails { public static final String JSON_PROPERTY_ISSUER = "issuer"; private String issuer; - /** - * **paybybank** - */ + /** **paybybank** */ public enum TypeEnum { - PAYBYBANK(String.valueOf("paybybank")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +43,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +64,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,8 +76,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PayByBankDetails() { - } + public PayByBankDetails() {} /** * The checkout attempt identifier. @@ -97,6 +91,7 @@ public PayByBankDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -129,6 +124,7 @@ public PayByBankDetails issuer(String issuer) { /** * The PayByBank issuer value of the shopper's selected bank. + * * @return issuer The PayByBank issuer value of the shopper's selected bank. */ @JsonProperty(JSON_PROPERTY_ISSUER) @@ -161,6 +157,7 @@ public PayByBankDetails type(TypeEnum type) { /** * **paybybank** + * * @return type **paybybank** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +177,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this PayByBankDetails object is equal to o. - */ + /** Return true if this PayByBankDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +187,9 @@ public boolean equals(Object o) { return false; } PayByBankDetails payByBankDetails = (PayByBankDetails) o; - return Objects.equals(this.checkoutAttemptId, payByBankDetails.checkoutAttemptId) && - Objects.equals(this.issuer, payByBankDetails.issuer) && - Objects.equals(this.type, payByBankDetails.type); + return Objects.equals(this.checkoutAttemptId, payByBankDetails.checkoutAttemptId) + && Objects.equals(this.issuer, payByBankDetails.issuer) + && Objects.equals(this.type, payByBankDetails.type); } @Override @@ -214,8 +209,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,7 +218,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PayByBankDetails given an JSON string * * @param jsonString JSON string @@ -234,11 +228,12 @@ private String toIndentedString(Object o) { public static PayByBankDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayByBankDetails.class); } -/** - * Convert an instance of PayByBankDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PayByBankDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PayPalDetails.java b/src/main/java/com/adyen/model/checkout/PayPalDetails.java index 7c6c5ffe3..c4fd26fb5 100644 --- a/src/main/java/com/adyen/model/checkout/PayPalDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayPalDetails.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * PayPalDetails - */ +/** PayPalDetails */ @JsonPropertyOrder({ PayPalDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, PayPalDetails.JSON_PROPERTY_ORDER_I_D, @@ -38,7 +33,6 @@ PayPalDetails.JSON_PROPERTY_SUBTYPE, PayPalDetails.JSON_PROPERTY_TYPE }) - public class PayPalDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -62,11 +56,8 @@ public class PayPalDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** - * The type of flow to initiate. - */ + /** The type of flow to initiate. */ public enum SubtypeEnum { - EXPRESS(String.valueOf("express")), REDIRECT(String.valueOf("redirect")), @@ -78,7 +69,7 @@ public enum SubtypeEnum { private String value; SubtypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -99,7 +90,11 @@ public static SubtypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("SubtypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(SubtypeEnum.values())); + LOG.warning( + "SubtypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(SubtypeEnum.values())); return null; } } @@ -107,11 +102,8 @@ public static SubtypeEnum fromValue(String value) { public static final String JSON_PROPERTY_SUBTYPE = "subtype"; private SubtypeEnum subtype; - /** - * **paypal** - */ + /** **paypal** */ public enum TypeEnum { - PAYPAL(String.valueOf("paypal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -119,7 +111,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -140,7 +132,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -148,8 +144,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PayPalDetails() { - } + public PayPalDetails() {} /** * The checkout attempt identifier. @@ -164,6 +159,7 @@ public PayPalDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -196,6 +192,7 @@ public PayPalDetails orderID(String orderID) { /** * The unique ID associated with the order. + * * @return orderID The unique ID associated with the order. */ @JsonProperty(JSON_PROPERTY_ORDER_I_D) @@ -228,6 +225,7 @@ public PayPalDetails payeePreferred(String payeePreferred) { /** * IMMEDIATE_PAYMENT_REQUIRED or UNRESTRICTED + * * @return payeePreferred IMMEDIATE_PAYMENT_REQUIRED or UNRESTRICTED */ @JsonProperty(JSON_PROPERTY_PAYEE_PREFERRED) @@ -260,6 +258,7 @@ public PayPalDetails payerID(String payerID) { /** * The unique ID associated with the payer. + * * @return payerID The unique ID associated with the payer. */ @JsonProperty(JSON_PROPERTY_PAYER_I_D) @@ -292,6 +291,7 @@ public PayPalDetails payerSelected(String payerSelected) { /** * PAYPAL or PAYPAL_CREDIT + * * @return payerSelected PAYPAL or PAYPAL_CREDIT */ @JsonProperty(JSON_PROPERTY_PAYER_SELECTED) @@ -312,13 +312,13 @@ public void setPayerSelected(String payerSelected) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code PayPalDetails} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public PayPalDetails recurringDetailReference(String recurringDetailReference) { @@ -327,8 +327,11 @@ public PayPalDetails recurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -339,12 +342,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -354,9 +357,11 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code PayPalDetails} instance, allowing for method chaining */ public PayPalDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -365,8 +370,11 @@ public PayPalDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -375,9 +383,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -398,6 +408,7 @@ public PayPalDetails subtype(SubtypeEnum subtype) { /** * The type of flow to initiate. + * * @return subtype The type of flow to initiate. */ @JsonProperty(JSON_PROPERTY_SUBTYPE) @@ -430,6 +441,7 @@ public PayPalDetails type(TypeEnum type) { /** * **paypal** + * * @return type **paypal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -449,9 +461,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this PayPalDetails object is equal to o. - */ + /** Return true if this PayPalDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -461,20 +471,29 @@ public boolean equals(Object o) { return false; } PayPalDetails payPalDetails = (PayPalDetails) o; - return Objects.equals(this.checkoutAttemptId, payPalDetails.checkoutAttemptId) && - Objects.equals(this.orderID, payPalDetails.orderID) && - Objects.equals(this.payeePreferred, payPalDetails.payeePreferred) && - Objects.equals(this.payerID, payPalDetails.payerID) && - Objects.equals(this.payerSelected, payPalDetails.payerSelected) && - Objects.equals(this.recurringDetailReference, payPalDetails.recurringDetailReference) && - Objects.equals(this.storedPaymentMethodId, payPalDetails.storedPaymentMethodId) && - Objects.equals(this.subtype, payPalDetails.subtype) && - Objects.equals(this.type, payPalDetails.type); + return Objects.equals(this.checkoutAttemptId, payPalDetails.checkoutAttemptId) + && Objects.equals(this.orderID, payPalDetails.orderID) + && Objects.equals(this.payeePreferred, payPalDetails.payeePreferred) + && Objects.equals(this.payerID, payPalDetails.payerID) + && Objects.equals(this.payerSelected, payPalDetails.payerSelected) + && Objects.equals(this.recurringDetailReference, payPalDetails.recurringDetailReference) + && Objects.equals(this.storedPaymentMethodId, payPalDetails.storedPaymentMethodId) + && Objects.equals(this.subtype, payPalDetails.subtype) + && Objects.equals(this.type, payPalDetails.type); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, orderID, payeePreferred, payerID, payerSelected, recurringDetailReference, storedPaymentMethodId, subtype, type); + return Objects.hash( + checkoutAttemptId, + orderID, + payeePreferred, + payerID, + payerSelected, + recurringDetailReference, + storedPaymentMethodId, + subtype, + type); } @Override @@ -486,8 +505,12 @@ public String toString() { sb.append(" payeePreferred: ").append(toIndentedString(payeePreferred)).append("\n"); sb.append(" payerID: ").append(toIndentedString(payerID)).append("\n"); sb.append(" payerSelected: ").append(toIndentedString(payerSelected)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -495,8 +518,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -505,7 +527,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PayPalDetails given an JSON string * * @param jsonString JSON string @@ -515,11 +537,12 @@ private String toIndentedString(Object o) { public static PayPalDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayPalDetails.class); } -/** - * Convert an instance of PayPalDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PayPalDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PayPayDetails.java b/src/main/java/com/adyen/model/checkout/PayPayDetails.java index b4bfed5ca..67e91b996 100644 --- a/src/main/java/com/adyen/model/checkout/PayPayDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayPayDetails.java @@ -2,38 +2,32 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * PayPayDetails - */ +/** PayPayDetails */ @JsonPropertyOrder({ PayPayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, PayPayDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, PayPayDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, PayPayDetails.JSON_PROPERTY_TYPE }) - public class PayPayDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -45,11 +39,8 @@ public class PayPayDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** - * **paypay** - */ + /** **paypay** */ public enum TypeEnum { - PAYPAY(String.valueOf("paypay")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -57,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -78,7 +69,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -86,8 +81,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PayPayDetails() { - } + public PayPayDetails() {} /** * The checkout attempt identifier. @@ -102,6 +96,7 @@ public PayPayDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -122,13 +117,13 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code PayPayDetails} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public PayPayDetails recurringDetailReference(String recurringDetailReference) { @@ -137,8 +132,11 @@ public PayPayDetails recurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -149,12 +147,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -164,9 +162,11 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code PayPayDetails} instance, allowing for method chaining */ public PayPayDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -175,8 +175,11 @@ public PayPayDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,9 +188,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,6 +213,7 @@ public PayPayDetails type(TypeEnum type) { /** * **paypay** + * * @return type **paypay** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -227,9 +233,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this PayPayDetails object is equal to o. - */ + /** Return true if this PayPayDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -239,10 +243,10 @@ public boolean equals(Object o) { return false; } PayPayDetails payPayDetails = (PayPayDetails) o; - return Objects.equals(this.checkoutAttemptId, payPayDetails.checkoutAttemptId) && - Objects.equals(this.recurringDetailReference, payPayDetails.recurringDetailReference) && - Objects.equals(this.storedPaymentMethodId, payPayDetails.storedPaymentMethodId) && - Objects.equals(this.type, payPayDetails.type); + return Objects.equals(this.checkoutAttemptId, payPayDetails.checkoutAttemptId) + && Objects.equals(this.recurringDetailReference, payPayDetails.recurringDetailReference) + && Objects.equals(this.storedPaymentMethodId, payPayDetails.storedPaymentMethodId) + && Objects.equals(this.type, payPayDetails.type); } @Override @@ -255,16 +259,19 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PayPayDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -273,7 +280,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PayPayDetails given an JSON string * * @param jsonString JSON string @@ -283,11 +290,12 @@ private String toIndentedString(Object o) { public static PayPayDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayPayDetails.class); } -/** - * Convert an instance of PayPayDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PayPayDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PayToDetails.java b/src/main/java/com/adyen/model/checkout/PayToDetails.java index 1f526bf96..9a66cafdb 100644 --- a/src/main/java/com/adyen/model/checkout/PayToDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayToDetails.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * PayToDetails - */ +/** PayToDetails */ @JsonPropertyOrder({ PayToDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, PayToDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, @@ -34,7 +29,6 @@ PayToDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, PayToDetails.JSON_PROPERTY_TYPE }) - public class PayToDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -49,11 +43,8 @@ public class PayToDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** - * **payto** - */ + /** **payto** */ public enum TypeEnum { - PAYTO(String.valueOf("payto")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -61,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -82,7 +73,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -90,8 +85,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PayToDetails() { - } + public PayToDetails() {} /** * The checkout attempt identifier. @@ -106,6 +100,7 @@ public PayToDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -126,13 +121,13 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code PayToDetails} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public PayToDetails recurringDetailReference(String recurringDetailReference) { @@ -141,8 +136,11 @@ public PayToDetails recurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -153,12 +151,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -170,7 +168,8 @@ public void setRecurringDetailReference(String recurringDetailReference) { /** * The shopper's banking details or payId reference, used to complete payment. * - * @param shopperAccountIdentifier The shopper's banking details or payId reference, used to complete payment. + * @param shopperAccountIdentifier The shopper's banking details or payId reference, used to + * complete payment. * @return the current {@code PayToDetails} instance, allowing for method chaining */ public PayToDetails shopperAccountIdentifier(String shopperAccountIdentifier) { @@ -180,7 +179,9 @@ public PayToDetails shopperAccountIdentifier(String shopperAccountIdentifier) { /** * The shopper's banking details or payId reference, used to complete payment. - * @return shopperAccountIdentifier The shopper's banking details or payId reference, used to complete payment. + * + * @return shopperAccountIdentifier The shopper's banking details or payId reference, used to + * complete payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_ACCOUNT_IDENTIFIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,7 +192,8 @@ public String getShopperAccountIdentifier() { /** * The shopper's banking details or payId reference, used to complete payment. * - * @param shopperAccountIdentifier The shopper's banking details or payId reference, used to complete payment. + * @param shopperAccountIdentifier The shopper's banking details or payId reference, used to + * complete payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_ACCOUNT_IDENTIFIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,9 +202,11 @@ public void setShopperAccountIdentifier(String shopperAccountIdentifier) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code PayToDetails} instance, allowing for method chaining */ public PayToDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -211,8 +215,11 @@ public PayToDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,9 +228,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,6 +253,7 @@ public PayToDetails type(TypeEnum type) { /** * **payto** + * * @return type **payto** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -263,9 +273,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this PayToDetails object is equal to o. - */ + /** Return true if this PayToDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -275,16 +283,21 @@ public boolean equals(Object o) { return false; } PayToDetails payToDetails = (PayToDetails) o; - return Objects.equals(this.checkoutAttemptId, payToDetails.checkoutAttemptId) && - Objects.equals(this.recurringDetailReference, payToDetails.recurringDetailReference) && - Objects.equals(this.shopperAccountIdentifier, payToDetails.shopperAccountIdentifier) && - Objects.equals(this.storedPaymentMethodId, payToDetails.storedPaymentMethodId) && - Objects.equals(this.type, payToDetails.type); + return Objects.equals(this.checkoutAttemptId, payToDetails.checkoutAttemptId) + && Objects.equals(this.recurringDetailReference, payToDetails.recurringDetailReference) + && Objects.equals(this.shopperAccountIdentifier, payToDetails.shopperAccountIdentifier) + && Objects.equals(this.storedPaymentMethodId, payToDetails.storedPaymentMethodId) + && Objects.equals(this.type, payToDetails.type); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, recurringDetailReference, shopperAccountIdentifier, storedPaymentMethodId, type); + return Objects.hash( + checkoutAttemptId, + recurringDetailReference, + shopperAccountIdentifier, + storedPaymentMethodId, + type); } @Override @@ -292,17 +305,22 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PayToDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" shopperAccountIdentifier: ").append(toIndentedString(shopperAccountIdentifier)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" shopperAccountIdentifier: ") + .append(toIndentedString(shopperAccountIdentifier)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -311,7 +329,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PayToDetails given an JSON string * * @param jsonString JSON string @@ -321,11 +339,12 @@ private String toIndentedString(Object o) { public static PayToDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayToDetails.class); } -/** - * Convert an instance of PayToDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PayToDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PayToPaymentMethod.java b/src/main/java/com/adyen/model/checkout/PayToPaymentMethod.java index 631cc0bb1..c062dfc60 100644 --- a/src/main/java/com/adyen/model/checkout/PayToPaymentMethod.java +++ b/src/main/java/com/adyen/model/checkout/PayToPaymentMethod.java @@ -2,56 +2,46 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.ShopperIdPaymentMethod; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * PayToPaymentMethod - */ -@JsonPropertyOrder({ - PayToPaymentMethod.JSON_PROPERTY_SHOPPER_REFERENCE -}) - +/** PayToPaymentMethod */ +@JsonPropertyOrder({PayToPaymentMethod.JSON_PROPERTY_SHOPPER_REFERENCE}) @JsonIgnoreProperties( - value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization - allowSetters = true // allows the type to be set during deserialization -) -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) - + value = + "type", // ignore manually set type, it will be automatically generated by Jackson during + // serialization + allowSetters = true // allows the type to be set during deserialization + ) +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.PROPERTY, + property = "type", + visible = true) public class PayToPaymentMethod extends ShopperIdPaymentMethod { public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference"; private String shopperReference; - public PayToPaymentMethod() { - } + public PayToPaymentMethod() {} /** * shopperReference * - * @param shopperReference + * @param shopperReference * @return the current {@code PayToPaymentMethod} instance, allowing for method chaining */ public PayToPaymentMethod shopperReference(String shopperReference) { @@ -61,7 +51,8 @@ public PayToPaymentMethod shopperReference(String shopperReference) { /** * Get shopperReference - * @return shopperReference + * + * @return shopperReference */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -72,7 +63,7 @@ public String getShopperReference() { /** * shopperReference * - * @param shopperReference + * @param shopperReference */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,9 +71,7 @@ public void setShopperReference(String shopperReference) { this.shopperReference = shopperReference; } - /** - * Return true if this PayToPaymentMethod object is equal to o. - */ + /** Return true if this PayToPaymentMethod object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -92,8 +81,8 @@ public boolean equals(Object o) { return false; } PayToPaymentMethod payToPaymentMethod = (PayToPaymentMethod) o; - return Objects.equals(this.shopperReference, payToPaymentMethod.shopperReference) && - super.equals(o); + return Objects.equals(this.shopperReference, payToPaymentMethod.shopperReference) + && super.equals(o); } @Override @@ -112,8 +101,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -128,21 +116,24 @@ private String toIndentedString(Object o) { mappings.put("PayToPaymentMethod", PayToPaymentMethod.class); JSON.registerDiscriminator(PayToPaymentMethod.class, "type", mappings); } -/** + + /** * Create an instance of PayToPaymentMethod given an JSON string * * @param jsonString JSON string * @return An instance of PayToPaymentMethod - * @throws JsonProcessingException if the JSON string is invalid with respect to PayToPaymentMethod + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PayToPaymentMethod */ public static PayToPaymentMethod fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayToPaymentMethod.class); } -/** - * Convert an instance of PayToPaymentMethod to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PayToPaymentMethod to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PayUUpiDetails.java b/src/main/java/com/adyen/model/checkout/PayUUpiDetails.java index f2f0e85eb..5e663628b 100644 --- a/src/main/java/com/adyen/model/checkout/PayUUpiDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayUUpiDetails.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * PayUUpiDetails - */ +/** PayUUpiDetails */ @JsonPropertyOrder({ PayUUpiDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, PayUUpiDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, @@ -35,7 +30,6 @@ PayUUpiDetails.JSON_PROPERTY_TYPE, PayUUpiDetails.JSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS }) - public class PayUUpiDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -44,17 +38,15 @@ public class PayUUpiDetails { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; - public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE = "shopperNotificationReference"; + public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE = + "shopperNotificationReference"; private String shopperNotificationReference; public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** - * **payu_IN_upi** - */ + /** **payu_IN_upi** */ public enum TypeEnum { - PAYU_IN_UPI(String.valueOf("payu_IN_upi")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -62,7 +54,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -83,7 +75,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -94,8 +90,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS = "virtualPaymentAddress"; private String virtualPaymentAddress; - public PayUUpiDetails() { - } + public PayUUpiDetails() {} /** * The checkout attempt identifier. @@ -110,6 +105,7 @@ public PayUUpiDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -130,13 +126,13 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code PayUUpiDetails} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public PayUUpiDetails recurringDetailReference(String recurringDetailReference) { @@ -145,8 +141,11 @@ public PayUUpiDetails recurringDetailReference(String recurringDetailReference) } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -157,12 +156,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -172,9 +171,11 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. + * The `shopperNotificationReference` returned in the response when you requested to + * notify the shopper. Used for recurring payment only. * - * @param shopperNotificationReference The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. + * @param shopperNotificationReference The `shopperNotificationReference` returned in + * the response when you requested to notify the shopper. Used for recurring payment only. * @return the current {@code PayUUpiDetails} instance, allowing for method chaining */ public PayUUpiDetails shopperNotificationReference(String shopperNotificationReference) { @@ -183,8 +184,11 @@ public PayUUpiDetails shopperNotificationReference(String shopperNotificationRef } /** - * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. - * @return shopperNotificationReference The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. + * The `shopperNotificationReference` returned in the response when you requested to + * notify the shopper. Used for recurring payment only. + * + * @return shopperNotificationReference The `shopperNotificationReference` returned in + * the response when you requested to notify the shopper. Used for recurring payment only. */ @JsonProperty(JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,9 +197,11 @@ public String getShopperNotificationReference() { } /** - * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. + * The `shopperNotificationReference` returned in the response when you requested to + * notify the shopper. Used for recurring payment only. * - * @param shopperNotificationReference The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. + * @param shopperNotificationReference The `shopperNotificationReference` returned in + * the response when you requested to notify the shopper. Used for recurring payment only. */ @JsonProperty(JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,9 +210,11 @@ public void setShopperNotificationReference(String shopperNotificationReference) } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code PayUUpiDetails} instance, allowing for method chaining */ public PayUUpiDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -215,8 +223,11 @@ public PayUUpiDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -225,9 +236,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -248,6 +261,7 @@ public PayUUpiDetails type(TypeEnum type) { /** * **payu_IN_upi** + * * @return type **payu_IN_upi** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -280,6 +294,7 @@ public PayUUpiDetails virtualPaymentAddress(String virtualPaymentAddress) { /** * The virtual payment address for UPI. + * * @return virtualPaymentAddress The virtual payment address for UPI. */ @JsonProperty(JSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS) @@ -299,9 +314,7 @@ public void setVirtualPaymentAddress(String virtualPaymentAddress) { this.virtualPaymentAddress = virtualPaymentAddress; } - /** - * Return true if this PayUUpiDetails object is equal to o. - */ + /** Return true if this PayUUpiDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -311,17 +324,24 @@ public boolean equals(Object o) { return false; } PayUUpiDetails payUUpiDetails = (PayUUpiDetails) o; - return Objects.equals(this.checkoutAttemptId, payUUpiDetails.checkoutAttemptId) && - Objects.equals(this.recurringDetailReference, payUUpiDetails.recurringDetailReference) && - Objects.equals(this.shopperNotificationReference, payUUpiDetails.shopperNotificationReference) && - Objects.equals(this.storedPaymentMethodId, payUUpiDetails.storedPaymentMethodId) && - Objects.equals(this.type, payUUpiDetails.type) && - Objects.equals(this.virtualPaymentAddress, payUUpiDetails.virtualPaymentAddress); + return Objects.equals(this.checkoutAttemptId, payUUpiDetails.checkoutAttemptId) + && Objects.equals(this.recurringDetailReference, payUUpiDetails.recurringDetailReference) + && Objects.equals( + this.shopperNotificationReference, payUUpiDetails.shopperNotificationReference) + && Objects.equals(this.storedPaymentMethodId, payUUpiDetails.storedPaymentMethodId) + && Objects.equals(this.type, payUUpiDetails.type) + && Objects.equals(this.virtualPaymentAddress, payUUpiDetails.virtualPaymentAddress); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, recurringDetailReference, shopperNotificationReference, storedPaymentMethodId, type, virtualPaymentAddress); + return Objects.hash( + checkoutAttemptId, + recurringDetailReference, + shopperNotificationReference, + storedPaymentMethodId, + type, + virtualPaymentAddress); } @Override @@ -329,18 +349,25 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PayUUpiDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" shopperNotificationReference: ").append(toIndentedString(shopperNotificationReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" shopperNotificationReference: ") + .append(toIndentedString(shopperNotificationReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" virtualPaymentAddress: ").append(toIndentedString(virtualPaymentAddress)).append("\n"); + sb.append(" virtualPaymentAddress: ") + .append(toIndentedString(virtualPaymentAddress)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -349,7 +376,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PayUUpiDetails given an JSON string * * @param jsonString JSON string @@ -359,11 +386,12 @@ private String toIndentedString(Object o) { public static PayUUpiDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayUUpiDetails.class); } -/** - * Convert an instance of PayUUpiDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PayUUpiDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PayWithGoogleDetails.java b/src/main/java/com/adyen/model/checkout/PayWithGoogleDetails.java index b503e3235..f954eeeb0 100644 --- a/src/main/java/com/adyen/model/checkout/PayWithGoogleDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayWithGoogleDetails.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * PayWithGoogleDetails - */ +/** PayWithGoogleDetails */ @JsonPropertyOrder({ PayWithGoogleDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, PayWithGoogleDetails.JSON_PROPERTY_FUNDING_SOURCE, @@ -36,16 +31,15 @@ PayWithGoogleDetails.JSON_PROPERTY_THREE_D_S2_SDK_VERSION, PayWithGoogleDetails.JSON_PROPERTY_TYPE }) - public class PayWithGoogleDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. */ public enum FundingSourceEnum { - CREDIT(String.valueOf("credit")), DEBIT(String.valueOf("debit")); @@ -55,7 +49,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -76,7 +70,11 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); + LOG.warning( + "FundingSourceEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -97,11 +95,8 @@ public static FundingSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S2_SDK_VERSION = "threeDS2SdkVersion"; private String threeDS2SdkVersion; - /** - * **paywithgoogle** - */ + /** **paywithgoogle** */ public enum TypeEnum { - PAYWITHGOOGLE(String.valueOf("paywithgoogle")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -109,7 +104,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -130,7 +125,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -138,8 +137,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PayWithGoogleDetails() { - } + public PayWithGoogleDetails() {} /** * The checkout attempt identifier. @@ -154,6 +152,7 @@ public PayWithGoogleDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -174,9 +173,12 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. * @return the current {@code PayWithGoogleDetails} instance, allowing for method chaining */ public PayWithGoogleDetails fundingSource(FundingSourceEnum fundingSource) { @@ -185,8 +187,12 @@ public PayWithGoogleDetails fundingSource(FundingSourceEnum fundingSource) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. - * @return fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * + * @return fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,9 +201,12 @@ public FundingSourceEnum getFundingSource() { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -206,9 +215,13 @@ public void setFundingSource(FundingSourceEnum fundingSource) { } /** - * The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. + * The `token` that you obtained from the [Google Pay + * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) + * `PaymentData` response. * - * @param googlePayToken The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. + * @param googlePayToken The `token` that you obtained from the [Google Pay + * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) + * `PaymentData` response. * @return the current {@code PayWithGoogleDetails} instance, allowing for method chaining */ public PayWithGoogleDetails googlePayToken(String googlePayToken) { @@ -217,8 +230,13 @@ public PayWithGoogleDetails googlePayToken(String googlePayToken) { } /** - * The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. - * @return googlePayToken The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. + * The `token` that you obtained from the [Google Pay + * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) + * `PaymentData` response. + * + * @return googlePayToken The `token` that you obtained from the [Google Pay + * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) + * `PaymentData` response. */ @JsonProperty(JSON_PROPERTY_GOOGLE_PAY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -227,9 +245,13 @@ public String getGooglePayToken() { } /** - * The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. + * The `token` that you obtained from the [Google Pay + * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) + * `PaymentData` response. * - * @param googlePayToken The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. + * @param googlePayToken The `token` that you obtained from the [Google Pay + * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) + * `PaymentData` response. */ @JsonProperty(JSON_PROPERTY_GOOGLE_PAY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -238,13 +260,13 @@ public void setGooglePayToken(String googlePayToken) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code PayWithGoogleDetails} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public PayWithGoogleDetails recurringDetailReference(String recurringDetailReference) { @@ -253,8 +275,11 @@ public PayWithGoogleDetails recurringDetailReference(String recurringDetailRefer } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -265,12 +290,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -280,9 +305,11 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code PayWithGoogleDetails} instance, allowing for method chaining */ public PayWithGoogleDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -291,8 +318,11 @@ public PayWithGoogleDetails storedPaymentMethodId(String storedPaymentMethodId) } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -301,9 +331,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -314,7 +346,8 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. * - * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. + * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile + * SDK. * @return the current {@code PayWithGoogleDetails} instance, allowing for method chaining */ public PayWithGoogleDetails threeDS2SdkVersion(String threeDS2SdkVersion) { @@ -324,7 +357,9 @@ public PayWithGoogleDetails threeDS2SdkVersion(String threeDS2SdkVersion) { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. - * @return threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. + * + * @return threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile + * SDK. */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_SDK_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -335,7 +370,8 @@ public String getThreeDS2SdkVersion() { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. * - * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. + * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile + * SDK. */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_SDK_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -356,6 +392,7 @@ public PayWithGoogleDetails type(TypeEnum type) { /** * **paywithgoogle** + * * @return type **paywithgoogle** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -375,9 +412,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this PayWithGoogleDetails object is equal to o. - */ + /** Return true if this PayWithGoogleDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -387,18 +422,26 @@ public boolean equals(Object o) { return false; } PayWithGoogleDetails payWithGoogleDetails = (PayWithGoogleDetails) o; - return Objects.equals(this.checkoutAttemptId, payWithGoogleDetails.checkoutAttemptId) && - Objects.equals(this.fundingSource, payWithGoogleDetails.fundingSource) && - Objects.equals(this.googlePayToken, payWithGoogleDetails.googlePayToken) && - Objects.equals(this.recurringDetailReference, payWithGoogleDetails.recurringDetailReference) && - Objects.equals(this.storedPaymentMethodId, payWithGoogleDetails.storedPaymentMethodId) && - Objects.equals(this.threeDS2SdkVersion, payWithGoogleDetails.threeDS2SdkVersion) && - Objects.equals(this.type, payWithGoogleDetails.type); + return Objects.equals(this.checkoutAttemptId, payWithGoogleDetails.checkoutAttemptId) + && Objects.equals(this.fundingSource, payWithGoogleDetails.fundingSource) + && Objects.equals(this.googlePayToken, payWithGoogleDetails.googlePayToken) + && Objects.equals( + this.recurringDetailReference, payWithGoogleDetails.recurringDetailReference) + && Objects.equals(this.storedPaymentMethodId, payWithGoogleDetails.storedPaymentMethodId) + && Objects.equals(this.threeDS2SdkVersion, payWithGoogleDetails.threeDS2SdkVersion) + && Objects.equals(this.type, payWithGoogleDetails.type); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, fundingSource, googlePayToken, recurringDetailReference, storedPaymentMethodId, threeDS2SdkVersion, type); + return Objects.hash( + checkoutAttemptId, + fundingSource, + googlePayToken, + recurringDetailReference, + storedPaymentMethodId, + threeDS2SdkVersion, + type); } @Override @@ -408,8 +451,12 @@ public String toString() { sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); sb.append(" googlePayToken: ").append(toIndentedString(googlePayToken)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" threeDS2SdkVersion: ").append(toIndentedString(threeDS2SdkVersion)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -417,8 +464,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -427,21 +473,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PayWithGoogleDetails given an JSON string * * @param jsonString JSON string * @return An instance of PayWithGoogleDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to PayWithGoogleDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PayWithGoogleDetails */ public static PayWithGoogleDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayWithGoogleDetails.class); } -/** - * Convert an instance of PayWithGoogleDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PayWithGoogleDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PayWithGoogleDonations.java b/src/main/java/com/adyen/model/checkout/PayWithGoogleDonations.java index 22ddb00f2..cc496a05a 100644 --- a/src/main/java/com/adyen/model/checkout/PayWithGoogleDonations.java +++ b/src/main/java/com/adyen/model/checkout/PayWithGoogleDonations.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * PayWithGoogleDonations - */ +/** PayWithGoogleDonations */ @JsonPropertyOrder({ PayWithGoogleDonations.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, PayWithGoogleDonations.JSON_PROPERTY_FUNDING_SOURCE, @@ -36,16 +31,15 @@ PayWithGoogleDonations.JSON_PROPERTY_THREE_D_S2_SDK_VERSION, PayWithGoogleDonations.JSON_PROPERTY_TYPE }) - public class PayWithGoogleDonations { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. */ public enum FundingSourceEnum { - CREDIT(String.valueOf("credit")), DEBIT(String.valueOf("debit")); @@ -55,7 +49,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -76,7 +70,11 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); + LOG.warning( + "FundingSourceEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -97,11 +95,8 @@ public static FundingSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S2_SDK_VERSION = "threeDS2SdkVersion"; private String threeDS2SdkVersion; - /** - * **paywithgoogle** - */ + /** **paywithgoogle** */ public enum TypeEnum { - PAYWITHGOOGLE(String.valueOf("paywithgoogle")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -109,7 +104,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -130,7 +125,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -138,8 +137,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PayWithGoogleDonations() { - } + public PayWithGoogleDonations() {} /** * The checkout attempt identifier. @@ -154,6 +152,7 @@ public PayWithGoogleDonations checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -174,9 +173,12 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. * @return the current {@code PayWithGoogleDonations} instance, allowing for method chaining */ public PayWithGoogleDonations fundingSource(FundingSourceEnum fundingSource) { @@ -185,8 +187,12 @@ public PayWithGoogleDonations fundingSource(FundingSourceEnum fundingSource) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. - * @return fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * + * @return fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,9 +201,12 @@ public FundingSourceEnum getFundingSource() { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -206,9 +215,13 @@ public void setFundingSource(FundingSourceEnum fundingSource) { } /** - * The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. + * The `token` that you obtained from the [Google Pay + * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) + * `PaymentData` response. * - * @param googlePayToken The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. + * @param googlePayToken The `token` that you obtained from the [Google Pay + * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) + * `PaymentData` response. * @return the current {@code PayWithGoogleDonations} instance, allowing for method chaining */ public PayWithGoogleDonations googlePayToken(String googlePayToken) { @@ -217,8 +230,13 @@ public PayWithGoogleDonations googlePayToken(String googlePayToken) { } /** - * The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. - * @return googlePayToken The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. + * The `token` that you obtained from the [Google Pay + * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) + * `PaymentData` response. + * + * @return googlePayToken The `token` that you obtained from the [Google Pay + * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) + * `PaymentData` response. */ @JsonProperty(JSON_PROPERTY_GOOGLE_PAY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -227,9 +245,13 @@ public String getGooglePayToken() { } /** - * The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. + * The `token` that you obtained from the [Google Pay + * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) + * `PaymentData` response. * - * @param googlePayToken The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. + * @param googlePayToken The `token` that you obtained from the [Google Pay + * API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) + * `PaymentData` response. */ @JsonProperty(JSON_PROPERTY_GOOGLE_PAY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -238,13 +260,13 @@ public void setGooglePayToken(String googlePayToken) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code PayWithGoogleDonations} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public PayWithGoogleDonations recurringDetailReference(String recurringDetailReference) { @@ -253,8 +275,11 @@ public PayWithGoogleDonations recurringDetailReference(String recurringDetailRef } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -265,12 +290,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -280,9 +305,11 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code PayWithGoogleDonations} instance, allowing for method chaining */ public PayWithGoogleDonations storedPaymentMethodId(String storedPaymentMethodId) { @@ -291,8 +318,11 @@ public PayWithGoogleDonations storedPaymentMethodId(String storedPaymentMethodId } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -301,9 +331,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -314,7 +346,8 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. * - * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. + * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile + * SDK. * @return the current {@code PayWithGoogleDonations} instance, allowing for method chaining */ public PayWithGoogleDonations threeDS2SdkVersion(String threeDS2SdkVersion) { @@ -324,7 +357,9 @@ public PayWithGoogleDonations threeDS2SdkVersion(String threeDS2SdkVersion) { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. - * @return threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. + * + * @return threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile + * SDK. */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_SDK_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -335,7 +370,8 @@ public String getThreeDS2SdkVersion() { /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. * - * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. + * @param threeDS2SdkVersion Required for mobile integrations. Version of the 3D Secure 2 mobile + * SDK. */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_SDK_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -356,6 +392,7 @@ public PayWithGoogleDonations type(TypeEnum type) { /** * **paywithgoogle** + * * @return type **paywithgoogle** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -375,9 +412,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this PayWithGoogleDonations object is equal to o. - */ + /** Return true if this PayWithGoogleDonations object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -387,18 +422,26 @@ public boolean equals(Object o) { return false; } PayWithGoogleDonations payWithGoogleDonations = (PayWithGoogleDonations) o; - return Objects.equals(this.checkoutAttemptId, payWithGoogleDonations.checkoutAttemptId) && - Objects.equals(this.fundingSource, payWithGoogleDonations.fundingSource) && - Objects.equals(this.googlePayToken, payWithGoogleDonations.googlePayToken) && - Objects.equals(this.recurringDetailReference, payWithGoogleDonations.recurringDetailReference) && - Objects.equals(this.storedPaymentMethodId, payWithGoogleDonations.storedPaymentMethodId) && - Objects.equals(this.threeDS2SdkVersion, payWithGoogleDonations.threeDS2SdkVersion) && - Objects.equals(this.type, payWithGoogleDonations.type); + return Objects.equals(this.checkoutAttemptId, payWithGoogleDonations.checkoutAttemptId) + && Objects.equals(this.fundingSource, payWithGoogleDonations.fundingSource) + && Objects.equals(this.googlePayToken, payWithGoogleDonations.googlePayToken) + && Objects.equals( + this.recurringDetailReference, payWithGoogleDonations.recurringDetailReference) + && Objects.equals(this.storedPaymentMethodId, payWithGoogleDonations.storedPaymentMethodId) + && Objects.equals(this.threeDS2SdkVersion, payWithGoogleDonations.threeDS2SdkVersion) + && Objects.equals(this.type, payWithGoogleDonations.type); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, fundingSource, googlePayToken, recurringDetailReference, storedPaymentMethodId, threeDS2SdkVersion, type); + return Objects.hash( + checkoutAttemptId, + fundingSource, + googlePayToken, + recurringDetailReference, + storedPaymentMethodId, + threeDS2SdkVersion, + type); } @Override @@ -408,8 +451,12 @@ public String toString() { sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); sb.append(" googlePayToken: ").append(toIndentedString(googlePayToken)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" threeDS2SdkVersion: ").append(toIndentedString(threeDS2SdkVersion)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -417,8 +464,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -427,21 +473,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PayWithGoogleDonations given an JSON string * * @param jsonString JSON string * @return An instance of PayWithGoogleDonations - * @throws JsonProcessingException if the JSON string is invalid with respect to PayWithGoogleDonations + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PayWithGoogleDonations */ public static PayWithGoogleDonations fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayWithGoogleDonations.class); } -/** - * Convert an instance of PayWithGoogleDonations to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PayWithGoogleDonations to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Payment.java b/src/main/java/com/adyen/model/checkout/Payment.java index 602e0567e..a304cdf30 100644 --- a/src/main/java/com/adyen/model/checkout/Payment.java +++ b/src/main/java/com/adyen/model/checkout/Payment.java @@ -2,40 +2,32 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Amount; -import com.adyen.model.checkout.ResponsePaymentMethod; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * Payment - */ +/** Payment */ @JsonPropertyOrder({ Payment.JSON_PROPERTY_AMOUNT, Payment.JSON_PROPERTY_PAYMENT_METHOD, Payment.JSON_PROPERTY_PSP_REFERENCE, Payment.JSON_PROPERTY_RESULT_CODE }) - public class Payment { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -47,10 +39,12 @@ public class Payment { private String pspReference; /** - * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. + * The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **Authorised** – The payment was successfully authorised. This state serves as an indicator to + * proceed with the delivery of goods and services. This is a final state. */ public enum ResultCodeEnum { - AUTHORISED(String.valueOf("Authorised")); private static final Logger LOG = Logger.getLogger(ResultCodeEnum.class.getName()); @@ -58,7 +52,7 @@ public enum ResultCodeEnum { private String value; ResultCodeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -79,7 +73,11 @@ public static ResultCodeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ResultCodeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResultCodeEnum.values())); + LOG.warning( + "ResultCodeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ResultCodeEnum.values())); return null; } } @@ -87,13 +85,12 @@ public static ResultCodeEnum fromValue(String value) { public static final String JSON_PROPERTY_RESULT_CODE = "resultCode"; private ResultCodeEnum resultCode; - public Payment() { - } + public Payment() {} /** * amount * - * @param amount + * @param amount * @return the current {@code Payment} instance, allowing for method chaining */ public Payment amount(Amount amount) { @@ -103,7 +100,8 @@ public Payment amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,7 +112,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,7 +123,7 @@ public void setAmount(Amount amount) { /** * paymentMethod * - * @param paymentMethod + * @param paymentMethod * @return the current {@code Payment} instance, allowing for method chaining */ public Payment paymentMethod(ResponsePaymentMethod paymentMethod) { @@ -135,7 +133,8 @@ public Payment paymentMethod(ResponsePaymentMethod paymentMethod) { /** * Get paymentMethod - * @return paymentMethod + * + * @return paymentMethod */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,7 +145,7 @@ public ResponsePaymentMethod getPaymentMethod() { /** * paymentMethod * - * @param paymentMethod + * @param paymentMethod */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -155,9 +154,12 @@ public void setPaymentMethod(ResponsePaymentMethod paymentMethod) { } /** - * Adyen's 16-character reference associated with the transaction/request. This value is globally unique. Use this reference when you communicate with us about this request. + * Adyen's 16-character reference associated with the transaction/request. This value is + * globally unique. Use this reference when you communicate with us about this request. * - * @param pspReference Adyen's 16-character reference associated with the transaction/request. This value is globally unique. Use this reference when you communicate with us about this request. + * @param pspReference Adyen's 16-character reference associated with the transaction/request. + * This value is globally unique. Use this reference when you communicate with us about this + * request. * @return the current {@code Payment} instance, allowing for method chaining */ public Payment pspReference(String pspReference) { @@ -166,8 +168,12 @@ public Payment pspReference(String pspReference) { } /** - * Adyen's 16-character reference associated with the transaction/request. This value is globally unique. Use this reference when you communicate with us about this request. - * @return pspReference Adyen's 16-character reference associated with the transaction/request. This value is globally unique. Use this reference when you communicate with us about this request. + * Adyen's 16-character reference associated with the transaction/request. This value is + * globally unique. Use this reference when you communicate with us about this request. + * + * @return pspReference Adyen's 16-character reference associated with the + * transaction/request. This value is globally unique. Use this reference when you communicate + * with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,9 +182,12 @@ public String getPspReference() { } /** - * Adyen's 16-character reference associated with the transaction/request. This value is globally unique. Use this reference when you communicate with us about this request. + * Adyen's 16-character reference associated with the transaction/request. This value is + * globally unique. Use this reference when you communicate with us about this request. * - * @param pspReference Adyen's 16-character reference associated with the transaction/request. This value is globally unique. Use this reference when you communicate with us about this request. + * @param pspReference Adyen's 16-character reference associated with the transaction/request. + * This value is globally unique. Use this reference when you communicate with us about this + * request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,9 +196,15 @@ public void setPspReference(String pspReference) { } /** - * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. + * The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **Authorised** – The payment was successfully authorised. This state serves as an indicator to + * proceed with the delivery of goods and services. This is a final state. * - * @param resultCode The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. + * @param resultCode The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **Authorised** – The payment was successfully authorised. This state serves as an indicator + * to proceed with the delivery of goods and services. This is a final state. * @return the current {@code Payment} instance, allowing for method chaining */ public Payment resultCode(ResultCodeEnum resultCode) { @@ -198,8 +213,15 @@ public Payment resultCode(ResultCodeEnum resultCode) { } /** - * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. - * @return resultCode The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. + * The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **Authorised** – The payment was successfully authorised. This state serves as an indicator to + * proceed with the delivery of goods and services. This is a final state. + * + * @return resultCode The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **Authorised** – The payment was successfully authorised. This state serves as an indicator + * to proceed with the delivery of goods and services. This is a final state. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,9 +230,15 @@ public ResultCodeEnum getResultCode() { } /** - * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. + * The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **Authorised** – The payment was successfully authorised. This state serves as an indicator to + * proceed with the delivery of goods and services. This is a final state. * - * @param resultCode The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. + * @param resultCode The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **Authorised** – The payment was successfully authorised. This state serves as an indicator + * to proceed with the delivery of goods and services. This is a final state. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -218,9 +246,7 @@ public void setResultCode(ResultCodeEnum resultCode) { this.resultCode = resultCode; } - /** - * Return true if this Payment object is equal to o. - */ + /** Return true if this Payment object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -230,10 +256,10 @@ public boolean equals(Object o) { return false; } Payment payment = (Payment) o; - return Objects.equals(this.amount, payment.amount) && - Objects.equals(this.paymentMethod, payment.paymentMethod) && - Objects.equals(this.pspReference, payment.pspReference) && - Objects.equals(this.resultCode, payment.resultCode); + return Objects.equals(this.amount, payment.amount) + && Objects.equals(this.paymentMethod, payment.paymentMethod) + && Objects.equals(this.pspReference, payment.pspReference) + && Objects.equals(this.resultCode, payment.resultCode); } @Override @@ -254,8 +280,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -264,7 +289,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Payment given an JSON string * * @param jsonString JSON string @@ -274,11 +299,12 @@ private String toIndentedString(Object o) { public static Payment fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Payment.class); } -/** - * Convert an instance of Payment to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Payment to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentAmountUpdateRequest.java b/src/main/java/com/adyen/model/checkout/PaymentAmountUpdateRequest.java index 595d395cd..008fc7854 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentAmountUpdateRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentAmountUpdateRequest.java @@ -2,38 +2,28 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Amount; -import com.adyen.model.checkout.ApplicationInfo; -import com.adyen.model.checkout.EnhancedSchemeData; -import com.adyen.model.checkout.LineItem; -import com.adyen.model.checkout.Split; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * PaymentAmountUpdateRequest - */ +/** PaymentAmountUpdateRequest */ @JsonPropertyOrder({ PaymentAmountUpdateRequest.JSON_PROPERTY_AMOUNT, PaymentAmountUpdateRequest.JSON_PROPERTY_APPLICATION_INFO, @@ -44,7 +34,6 @@ PaymentAmountUpdateRequest.JSON_PROPERTY_REFERENCE, PaymentAmountUpdateRequest.JSON_PROPERTY_SPLITS }) - public class PaymentAmountUpdateRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -56,10 +45,10 @@ public class PaymentAmountUpdateRequest { private EnhancedSchemeData enhancedSchemeData; /** - * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** + * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * + * **installment** */ public enum IndustryUsageEnum { - DELAYEDCHARGE(String.valueOf("delayedCharge")), INSTALLMENT(String.valueOf("installment")), @@ -71,7 +60,7 @@ public enum IndustryUsageEnum { private String value; IndustryUsageEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -92,7 +81,11 @@ public static IndustryUsageEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("IndustryUsageEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(IndustryUsageEnum.values())); + LOG.warning( + "IndustryUsageEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(IndustryUsageEnum.values())); return null; } } @@ -112,13 +105,12 @@ public static IndustryUsageEnum fromValue(String value) { public static final String JSON_PROPERTY_SPLITS = "splits"; private List splits; - public PaymentAmountUpdateRequest() { - } + public PaymentAmountUpdateRequest() {} /** * amount * - * @param amount + * @param amount * @return the current {@code PaymentAmountUpdateRequest} instance, allowing for method chaining */ public PaymentAmountUpdateRequest amount(Amount amount) { @@ -128,7 +120,8 @@ public PaymentAmountUpdateRequest amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,7 +132,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,7 +143,7 @@ public void setAmount(Amount amount) { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo * @return the current {@code PaymentAmountUpdateRequest} instance, allowing for method chaining */ public PaymentAmountUpdateRequest applicationInfo(ApplicationInfo applicationInfo) { @@ -160,7 +153,8 @@ public PaymentAmountUpdateRequest applicationInfo(ApplicationInfo applicationInf /** * Get applicationInfo - * @return applicationInfo + * + * @return applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -171,7 +165,7 @@ public ApplicationInfo getApplicationInfo() { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,7 +176,7 @@ public void setApplicationInfo(ApplicationInfo applicationInfo) { /** * enhancedSchemeData * - * @param enhancedSchemeData + * @param enhancedSchemeData * @return the current {@code PaymentAmountUpdateRequest} instance, allowing for method chaining */ public PaymentAmountUpdateRequest enhancedSchemeData(EnhancedSchemeData enhancedSchemeData) { @@ -192,7 +186,8 @@ public PaymentAmountUpdateRequest enhancedSchemeData(EnhancedSchemeData enhanced /** * Get enhancedSchemeData - * @return enhancedSchemeData + * + * @return enhancedSchemeData */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -203,7 +198,7 @@ public EnhancedSchemeData getEnhancedSchemeData() { /** * enhancedSchemeData * - * @param enhancedSchemeData + * @param enhancedSchemeData */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -212,9 +207,11 @@ public void setEnhancedSchemeData(EnhancedSchemeData enhancedSchemeData) { } /** - * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** + * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * + * **installment** * - * @param industryUsage The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** + * @param industryUsage The reason for the amount update. Possible values: * **delayedCharge** * + * **noShow** * **installment** * @return the current {@code PaymentAmountUpdateRequest} instance, allowing for method chaining */ public PaymentAmountUpdateRequest industryUsage(IndustryUsageEnum industryUsage) { @@ -223,8 +220,11 @@ public PaymentAmountUpdateRequest industryUsage(IndustryUsageEnum industryUsage) } /** - * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** - * @return industryUsage The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** + * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * + * **installment** + * + * @return industryUsage The reason for the amount update. Possible values: * **delayedCharge** * + * **noShow** * **installment** */ @JsonProperty(JSON_PROPERTY_INDUSTRY_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -233,9 +233,11 @@ public IndustryUsageEnum getIndustryUsage() { } /** - * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** + * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * + * **installment** * - * @param industryUsage The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** + * @param industryUsage The reason for the amount update. Possible values: * **delayedCharge** * + * **noShow** * **installment** */ @JsonProperty(JSON_PROPERTY_INDUSTRY_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,9 +246,15 @@ public void setIndustryUsage(IndustryUsageEnum industryUsage) { } /** - * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is + * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. * - * @param lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * @param lineItems Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field + * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. * @return the current {@code PaymentAmountUpdateRequest} instance, allowing for method chaining */ public PaymentAmountUpdateRequest lineItems(List lineItems) { @@ -263,8 +271,15 @@ public PaymentAmountUpdateRequest addLineItemsItem(LineItem lineItemsItem) { } /** - * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. - * @return lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is + * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. + * + * @return lineItems Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field + * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -273,9 +288,15 @@ public List getLineItems() { } /** - * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is + * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. * - * @param lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * @param lineItems Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field + * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -296,6 +317,7 @@ public PaymentAmountUpdateRequest merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. + * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -328,6 +350,7 @@ public PaymentAmountUpdateRequest reference(String reference) { /** * Your reference for the amount update request. Maximum length: 80 characters. + * * @return reference Your reference for the amount update request. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -348,9 +371,15 @@ public void setReference(String reference) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or [platforms](https://docs.adyen.com/platforms/process-payments). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or + * [platforms](https://docs.adyen.com/platforms/process-payments). * - * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or [platforms](https://docs.adyen.com/platforms/process-payments). + * @param splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or + * [platforms](https://docs.adyen.com/platforms/process-payments). * @return the current {@code PaymentAmountUpdateRequest} instance, allowing for method chaining */ public PaymentAmountUpdateRequest splits(List splits) { @@ -367,8 +396,15 @@ public PaymentAmountUpdateRequest addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or [platforms](https://docs.adyen.com/platforms/process-payments). - * @return splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or [platforms](https://docs.adyen.com/platforms/process-payments). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or + * [platforms](https://docs.adyen.com/platforms/process-payments). + * + * @return splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or + * [platforms](https://docs.adyen.com/platforms/process-payments). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -377,9 +413,15 @@ public List getSplits() { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or [platforms](https://docs.adyen.com/platforms/process-payments). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or + * [platforms](https://docs.adyen.com/platforms/process-payments). * - * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or [platforms](https://docs.adyen.com/platforms/process-payments). + * @param splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or + * [platforms](https://docs.adyen.com/platforms/process-payments). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -387,9 +429,7 @@ public void setSplits(List splits) { this.splits = splits; } - /** - * Return true if this PaymentAmountUpdateRequest object is equal to o. - */ + /** Return true if this PaymentAmountUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -399,19 +439,27 @@ public boolean equals(Object o) { return false; } PaymentAmountUpdateRequest paymentAmountUpdateRequest = (PaymentAmountUpdateRequest) o; - return Objects.equals(this.amount, paymentAmountUpdateRequest.amount) && - Objects.equals(this.applicationInfo, paymentAmountUpdateRequest.applicationInfo) && - Objects.equals(this.enhancedSchemeData, paymentAmountUpdateRequest.enhancedSchemeData) && - Objects.equals(this.industryUsage, paymentAmountUpdateRequest.industryUsage) && - Objects.equals(this.lineItems, paymentAmountUpdateRequest.lineItems) && - Objects.equals(this.merchantAccount, paymentAmountUpdateRequest.merchantAccount) && - Objects.equals(this.reference, paymentAmountUpdateRequest.reference) && - Objects.equals(this.splits, paymentAmountUpdateRequest.splits); + return Objects.equals(this.amount, paymentAmountUpdateRequest.amount) + && Objects.equals(this.applicationInfo, paymentAmountUpdateRequest.applicationInfo) + && Objects.equals(this.enhancedSchemeData, paymentAmountUpdateRequest.enhancedSchemeData) + && Objects.equals(this.industryUsage, paymentAmountUpdateRequest.industryUsage) + && Objects.equals(this.lineItems, paymentAmountUpdateRequest.lineItems) + && Objects.equals(this.merchantAccount, paymentAmountUpdateRequest.merchantAccount) + && Objects.equals(this.reference, paymentAmountUpdateRequest.reference) + && Objects.equals(this.splits, paymentAmountUpdateRequest.splits); } @Override public int hashCode() { - return Objects.hash(amount, applicationInfo, enhancedSchemeData, industryUsage, lineItems, merchantAccount, reference, splits); + return Objects.hash( + amount, + applicationInfo, + enhancedSchemeData, + industryUsage, + lineItems, + merchantAccount, + reference, + splits); } @Override @@ -431,8 +479,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -441,21 +488,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentAmountUpdateRequest given an JSON string * * @param jsonString JSON string * @return An instance of PaymentAmountUpdateRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentAmountUpdateRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentAmountUpdateRequest */ - public static PaymentAmountUpdateRequest fromJson(String jsonString) throws JsonProcessingException { + public static PaymentAmountUpdateRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentAmountUpdateRequest.class); } -/** - * Convert an instance of PaymentAmountUpdateRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentAmountUpdateRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentAmountUpdateResponse.java b/src/main/java/com/adyen/model/checkout/PaymentAmountUpdateResponse.java index 6444ec759..74d2ea74d 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentAmountUpdateResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentAmountUpdateResponse.java @@ -2,36 +2,28 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Amount; -import com.adyen.model.checkout.LineItem; -import com.adyen.model.checkout.Split; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * PaymentAmountUpdateResponse - */ +/** PaymentAmountUpdateResponse */ @JsonPropertyOrder({ PaymentAmountUpdateResponse.JSON_PROPERTY_AMOUNT, PaymentAmountUpdateResponse.JSON_PROPERTY_INDUSTRY_USAGE, @@ -43,16 +35,15 @@ PaymentAmountUpdateResponse.JSON_PROPERTY_SPLITS, PaymentAmountUpdateResponse.JSON_PROPERTY_STATUS }) - public class PaymentAmountUpdateResponse { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; /** - * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** + * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * + * **installment** */ public enum IndustryUsageEnum { - DELAYEDCHARGE(String.valueOf("delayedCharge")), INSTALLMENT(String.valueOf("installment")), @@ -64,7 +55,7 @@ public enum IndustryUsageEnum { private String value; IndustryUsageEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -85,7 +76,11 @@ public static IndustryUsageEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("IndustryUsageEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(IndustryUsageEnum.values())); + LOG.warning( + "IndustryUsageEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(IndustryUsageEnum.values())); return null; } } @@ -111,11 +106,8 @@ public static IndustryUsageEnum fromValue(String value) { public static final String JSON_PROPERTY_SPLITS = "splits"; private List splits; - /** - * The status of your request. This will always have the value **received**. - */ + /** The status of your request. This will always have the value **received**. */ public enum StatusEnum { - RECEIVED(String.valueOf("received")); private static final Logger LOG = Logger.getLogger(StatusEnum.class.getName()); @@ -123,7 +115,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -144,7 +136,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -152,13 +148,12 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; - public PaymentAmountUpdateResponse() { - } + public PaymentAmountUpdateResponse() {} /** * amount * - * @param amount + * @param amount * @return the current {@code PaymentAmountUpdateResponse} instance, allowing for method chaining */ public PaymentAmountUpdateResponse amount(Amount amount) { @@ -168,7 +163,8 @@ public PaymentAmountUpdateResponse amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,7 +175,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,9 +184,11 @@ public void setAmount(Amount amount) { } /** - * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** + * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * + * **installment** * - * @param industryUsage The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** + * @param industryUsage The reason for the amount update. Possible values: * **delayedCharge** * + * **noShow** * **installment** * @return the current {@code PaymentAmountUpdateResponse} instance, allowing for method chaining */ public PaymentAmountUpdateResponse industryUsage(IndustryUsageEnum industryUsage) { @@ -199,8 +197,11 @@ public PaymentAmountUpdateResponse industryUsage(IndustryUsageEnum industryUsage } /** - * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** - * @return industryUsage The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** + * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * + * **installment** + * + * @return industryUsage The reason for the amount update. Possible values: * **delayedCharge** * + * **noShow** * **installment** */ @JsonProperty(JSON_PROPERTY_INDUSTRY_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -209,9 +210,11 @@ public IndustryUsageEnum getIndustryUsage() { } /** - * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** + * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * + * **installment** * - * @param industryUsage The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** + * @param industryUsage The reason for the amount update. Possible values: * **delayedCharge** * + * **noShow** * **installment** */ @JsonProperty(JSON_PROPERTY_INDUSTRY_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -220,9 +223,15 @@ public void setIndustryUsage(IndustryUsageEnum industryUsage) { } /** - * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is + * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. * - * @param lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * @param lineItems Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field + * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. * @return the current {@code PaymentAmountUpdateResponse} instance, allowing for method chaining */ public PaymentAmountUpdateResponse lineItems(List lineItems) { @@ -239,8 +248,15 @@ public PaymentAmountUpdateResponse addLineItemsItem(LineItem lineItemsItem) { } /** - * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. - * @return lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is + * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. + * + * @return lineItems Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field + * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -249,9 +265,15 @@ public List getLineItems() { } /** - * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is + * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. * - * @param lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * @param lineItems Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field + * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -272,6 +294,7 @@ public PaymentAmountUpdateResponse merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. + * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -292,9 +315,13 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to update. + * The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment to update. * - * @param paymentPspReference The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to update. + * @param paymentPspReference The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment to update. * @return the current {@code PaymentAmountUpdateResponse} instance, allowing for method chaining */ public PaymentAmountUpdateResponse paymentPspReference(String paymentPspReference) { @@ -303,8 +330,13 @@ public PaymentAmountUpdateResponse paymentPspReference(String paymentPspReferenc } /** - * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to update. - * @return paymentPspReference The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to update. + * The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment to update. + * + * @return paymentPspReference The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment to update. */ @JsonProperty(JSON_PROPERTY_PAYMENT_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -313,9 +345,13 @@ public String getPaymentPspReference() { } /** - * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to update. + * The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment to update. * - * @param paymentPspReference The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to update. + * @param paymentPspReference The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment to update. */ @JsonProperty(JSON_PROPERTY_PAYMENT_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -326,7 +362,8 @@ public void setPaymentPspReference(String paymentPspReference) { /** * Adyen's 16-character reference associated with the amount update request. * - * @param pspReference Adyen's 16-character reference associated with the amount update request. + * @param pspReference Adyen's 16-character reference associated with the amount update + * request. * @return the current {@code PaymentAmountUpdateResponse} instance, allowing for method chaining */ public PaymentAmountUpdateResponse pspReference(String pspReference) { @@ -336,7 +373,9 @@ public PaymentAmountUpdateResponse pspReference(String pspReference) { /** * Adyen's 16-character reference associated with the amount update request. - * @return pspReference Adyen's 16-character reference associated with the amount update request. + * + * @return pspReference Adyen's 16-character reference associated with the amount update + * request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -347,7 +386,8 @@ public String getPspReference() { /** * Adyen's 16-character reference associated with the amount update request. * - * @param pspReference Adyen's 16-character reference associated with the amount update request. + * @param pspReference Adyen's 16-character reference associated with the amount update + * request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -368,6 +408,7 @@ public PaymentAmountUpdateResponse reference(String reference) { /** * Your reference for the amount update request. Maximum length: 80 characters. + * * @return reference Your reference for the amount update request. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -388,9 +429,15 @@ public void setReference(String reference) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or [platforms](https://docs.adyen.com/platforms/process-payments). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or + * [platforms](https://docs.adyen.com/platforms/process-payments). * - * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or [platforms](https://docs.adyen.com/platforms/process-payments). + * @param splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or + * [platforms](https://docs.adyen.com/platforms/process-payments). * @return the current {@code PaymentAmountUpdateResponse} instance, allowing for method chaining */ public PaymentAmountUpdateResponse splits(List splits) { @@ -407,8 +454,15 @@ public PaymentAmountUpdateResponse addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or [platforms](https://docs.adyen.com/platforms/process-payments). - * @return splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or [platforms](https://docs.adyen.com/platforms/process-payments). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or + * [platforms](https://docs.adyen.com/platforms/process-payments). + * + * @return splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or + * [platforms](https://docs.adyen.com/platforms/process-payments). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -417,9 +471,15 @@ public List getSplits() { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or [platforms](https://docs.adyen.com/platforms/process-payments). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or + * [platforms](https://docs.adyen.com/platforms/process-payments). * - * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or [platforms](https://docs.adyen.com/platforms/process-payments). + * @param splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or + * [platforms](https://docs.adyen.com/platforms/process-payments). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -440,6 +500,7 @@ public PaymentAmountUpdateResponse status(StatusEnum status) { /** * The status of your request. This will always have the value **received**. + * * @return status The status of your request. This will always have the value **received**. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -459,9 +520,7 @@ public void setStatus(StatusEnum status) { this.status = status; } - /** - * Return true if this PaymentAmountUpdateResponse object is equal to o. - */ + /** Return true if this PaymentAmountUpdateResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -471,20 +530,29 @@ public boolean equals(Object o) { return false; } PaymentAmountUpdateResponse paymentAmountUpdateResponse = (PaymentAmountUpdateResponse) o; - return Objects.equals(this.amount, paymentAmountUpdateResponse.amount) && - Objects.equals(this.industryUsage, paymentAmountUpdateResponse.industryUsage) && - Objects.equals(this.lineItems, paymentAmountUpdateResponse.lineItems) && - Objects.equals(this.merchantAccount, paymentAmountUpdateResponse.merchantAccount) && - Objects.equals(this.paymentPspReference, paymentAmountUpdateResponse.paymentPspReference) && - Objects.equals(this.pspReference, paymentAmountUpdateResponse.pspReference) && - Objects.equals(this.reference, paymentAmountUpdateResponse.reference) && - Objects.equals(this.splits, paymentAmountUpdateResponse.splits) && - Objects.equals(this.status, paymentAmountUpdateResponse.status); + return Objects.equals(this.amount, paymentAmountUpdateResponse.amount) + && Objects.equals(this.industryUsage, paymentAmountUpdateResponse.industryUsage) + && Objects.equals(this.lineItems, paymentAmountUpdateResponse.lineItems) + && Objects.equals(this.merchantAccount, paymentAmountUpdateResponse.merchantAccount) + && Objects.equals(this.paymentPspReference, paymentAmountUpdateResponse.paymentPspReference) + && Objects.equals(this.pspReference, paymentAmountUpdateResponse.pspReference) + && Objects.equals(this.reference, paymentAmountUpdateResponse.reference) + && Objects.equals(this.splits, paymentAmountUpdateResponse.splits) + && Objects.equals(this.status, paymentAmountUpdateResponse.status); } @Override public int hashCode() { - return Objects.hash(amount, industryUsage, lineItems, merchantAccount, paymentPspReference, pspReference, reference, splits, status); + return Objects.hash( + amount, + industryUsage, + lineItems, + merchantAccount, + paymentPspReference, + pspReference, + reference, + splits, + status); } @Override @@ -495,7 +563,9 @@ public String toString() { sb.append(" industryUsage: ").append(toIndentedString(industryUsage)).append("\n"); sb.append(" lineItems: ").append(toIndentedString(lineItems)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" paymentPspReference: ").append(toIndentedString(paymentPspReference)).append("\n"); + sb.append(" paymentPspReference: ") + .append(toIndentedString(paymentPspReference)) + .append("\n"); sb.append(" pspReference: ").append(toIndentedString(pspReference)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); @@ -505,8 +575,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -515,21 +584,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentAmountUpdateResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaymentAmountUpdateResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentAmountUpdateResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentAmountUpdateResponse */ - public static PaymentAmountUpdateResponse fromJson(String jsonString) throws JsonProcessingException { + public static PaymentAmountUpdateResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentAmountUpdateResponse.class); } -/** - * Convert an instance of PaymentAmountUpdateResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentAmountUpdateResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentCancelRequest.java b/src/main/java/com/adyen/model/checkout/PaymentCancelRequest.java index 48a52d6f2..cbc66d8f2 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentCancelRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentCancelRequest.java @@ -2,40 +2,28 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.ApplicationInfo; -import com.adyen.model.checkout.EnhancedSchemeData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * PaymentCancelRequest - */ +/** PaymentCancelRequest */ @JsonPropertyOrder({ PaymentCancelRequest.JSON_PROPERTY_APPLICATION_INFO, PaymentCancelRequest.JSON_PROPERTY_ENHANCED_SCHEME_DATA, PaymentCancelRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, PaymentCancelRequest.JSON_PROPERTY_REFERENCE }) - public class PaymentCancelRequest { public static final String JSON_PROPERTY_APPLICATION_INFO = "applicationInfo"; private ApplicationInfo applicationInfo; @@ -49,13 +37,12 @@ public class PaymentCancelRequest { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public PaymentCancelRequest() { - } + public PaymentCancelRequest() {} /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo * @return the current {@code PaymentCancelRequest} instance, allowing for method chaining */ public PaymentCancelRequest applicationInfo(ApplicationInfo applicationInfo) { @@ -65,7 +52,8 @@ public PaymentCancelRequest applicationInfo(ApplicationInfo applicationInfo) { /** * Get applicationInfo - * @return applicationInfo + * + * @return applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -76,7 +64,7 @@ public ApplicationInfo getApplicationInfo() { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,7 +75,7 @@ public void setApplicationInfo(ApplicationInfo applicationInfo) { /** * enhancedSchemeData * - * @param enhancedSchemeData + * @param enhancedSchemeData * @return the current {@code PaymentCancelRequest} instance, allowing for method chaining */ public PaymentCancelRequest enhancedSchemeData(EnhancedSchemeData enhancedSchemeData) { @@ -97,7 +85,8 @@ public PaymentCancelRequest enhancedSchemeData(EnhancedSchemeData enhancedScheme /** * Get enhancedSchemeData - * @return enhancedSchemeData + * + * @return enhancedSchemeData */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,7 +97,7 @@ public EnhancedSchemeData getEnhancedSchemeData() { /** * enhancedSchemeData * - * @param enhancedSchemeData + * @param enhancedSchemeData */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,6 +118,7 @@ public PaymentCancelRequest merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. + * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -161,6 +151,7 @@ public PaymentCancelRequest reference(String reference) { /** * Your reference for the cancel request. Maximum length: 80 characters. + * * @return reference Your reference for the cancel request. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -180,9 +171,7 @@ public void setReference(String reference) { this.reference = reference; } - /** - * Return true if this PaymentCancelRequest object is equal to o. - */ + /** Return true if this PaymentCancelRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,10 +181,10 @@ public boolean equals(Object o) { return false; } PaymentCancelRequest paymentCancelRequest = (PaymentCancelRequest) o; - return Objects.equals(this.applicationInfo, paymentCancelRequest.applicationInfo) && - Objects.equals(this.enhancedSchemeData, paymentCancelRequest.enhancedSchemeData) && - Objects.equals(this.merchantAccount, paymentCancelRequest.merchantAccount) && - Objects.equals(this.reference, paymentCancelRequest.reference); + return Objects.equals(this.applicationInfo, paymentCancelRequest.applicationInfo) + && Objects.equals(this.enhancedSchemeData, paymentCancelRequest.enhancedSchemeData) + && Objects.equals(this.merchantAccount, paymentCancelRequest.merchantAccount) + && Objects.equals(this.reference, paymentCancelRequest.reference); } @Override @@ -216,8 +205,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -226,21 +214,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentCancelRequest given an JSON string * * @param jsonString JSON string * @return An instance of PaymentCancelRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentCancelRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentCancelRequest */ public static PaymentCancelRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentCancelRequest.class); } -/** - * Convert an instance of PaymentCancelRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentCancelRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentCancelResponse.java b/src/main/java/com/adyen/model/checkout/PaymentCancelResponse.java index f3b36646a..87cf7cf9b 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentCancelResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentCancelResponse.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * PaymentCancelResponse - */ +/** PaymentCancelResponse */ @JsonPropertyOrder({ PaymentCancelResponse.JSON_PROPERTY_MERCHANT_ACCOUNT, PaymentCancelResponse.JSON_PROPERTY_PAYMENT_PSP_REFERENCE, @@ -34,7 +29,6 @@ PaymentCancelResponse.JSON_PROPERTY_REFERENCE, PaymentCancelResponse.JSON_PROPERTY_STATUS }) - public class PaymentCancelResponse { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; @@ -48,11 +42,8 @@ public class PaymentCancelResponse { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - /** - * The status of your request. This will always have the value **received**. - */ + /** The status of your request. This will always have the value **received**. */ public enum StatusEnum { - RECEIVED(String.valueOf("received")); private static final Logger LOG = Logger.getLogger(StatusEnum.class.getName()); @@ -60,7 +51,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -81,7 +72,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -89,8 +84,7 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; - public PaymentCancelResponse() { - } + public PaymentCancelResponse() {} /** * The merchant account that is used to process the payment. @@ -105,6 +99,7 @@ public PaymentCancelResponse merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. + * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -125,9 +120,13 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to cancel. + * The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment to cancel. * - * @param paymentPspReference The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to cancel. + * @param paymentPspReference The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment to cancel. * @return the current {@code PaymentCancelResponse} instance, allowing for method chaining */ public PaymentCancelResponse paymentPspReference(String paymentPspReference) { @@ -136,8 +135,13 @@ public PaymentCancelResponse paymentPspReference(String paymentPspReference) { } /** - * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to cancel. - * @return paymentPspReference The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to cancel. + * The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment to cancel. + * + * @return paymentPspReference The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment to cancel. */ @JsonProperty(JSON_PROPERTY_PAYMENT_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,9 +150,13 @@ public String getPaymentPspReference() { } /** - * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to cancel. + * The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment to cancel. * - * @param paymentPspReference The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to cancel. + * @param paymentPspReference The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment to cancel. */ @JsonProperty(JSON_PROPERTY_PAYMENT_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,6 +177,7 @@ public PaymentCancelResponse pspReference(String pspReference) { /** * Adyen's 16-character reference associated with the cancel request. + * * @return pspReference Adyen's 16-character reference associated with the cancel request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -201,6 +210,7 @@ public PaymentCancelResponse reference(String reference) { /** * Your reference for the cancel request. + * * @return reference Your reference for the cancel request. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -233,6 +243,7 @@ public PaymentCancelResponse status(StatusEnum status) { /** * The status of your request. This will always have the value **received**. + * * @return status The status of your request. This will always have the value **received**. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -252,9 +263,7 @@ public void setStatus(StatusEnum status) { this.status = status; } - /** - * Return true if this PaymentCancelResponse object is equal to o. - */ + /** Return true if this PaymentCancelResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -264,11 +273,11 @@ public boolean equals(Object o) { return false; } PaymentCancelResponse paymentCancelResponse = (PaymentCancelResponse) o; - return Objects.equals(this.merchantAccount, paymentCancelResponse.merchantAccount) && - Objects.equals(this.paymentPspReference, paymentCancelResponse.paymentPspReference) && - Objects.equals(this.pspReference, paymentCancelResponse.pspReference) && - Objects.equals(this.reference, paymentCancelResponse.reference) && - Objects.equals(this.status, paymentCancelResponse.status); + return Objects.equals(this.merchantAccount, paymentCancelResponse.merchantAccount) + && Objects.equals(this.paymentPspReference, paymentCancelResponse.paymentPspReference) + && Objects.equals(this.pspReference, paymentCancelResponse.pspReference) + && Objects.equals(this.reference, paymentCancelResponse.reference) + && Objects.equals(this.status, paymentCancelResponse.status); } @Override @@ -281,7 +290,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentCancelResponse {\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" paymentPspReference: ").append(toIndentedString(paymentPspReference)).append("\n"); + sb.append(" paymentPspReference: ") + .append(toIndentedString(paymentPspReference)) + .append("\n"); sb.append(" pspReference: ").append(toIndentedString(pspReference)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); @@ -290,8 +301,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -300,21 +310,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentCancelResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaymentCancelResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentCancelResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentCancelResponse */ public static PaymentCancelResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentCancelResponse.class); } -/** - * Convert an instance of PaymentCancelResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentCancelResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentCaptureRequest.java b/src/main/java/com/adyen/model/checkout/PaymentCaptureRequest.java index 6891c0fdd..83a700282 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentCaptureRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentCaptureRequest.java @@ -2,40 +2,24 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Amount; -import com.adyen.model.checkout.ApplicationInfo; -import com.adyen.model.checkout.EnhancedSchemeData; -import com.adyen.model.checkout.LineItem; -import com.adyen.model.checkout.PlatformChargebackLogic; -import com.adyen.model.checkout.Split; -import com.adyen.model.checkout.SubMerchantInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * PaymentCaptureRequest - */ +/** PaymentCaptureRequest */ @JsonPropertyOrder({ PaymentCaptureRequest.JSON_PROPERTY_AMOUNT, PaymentCaptureRequest.JSON_PROPERTY_APPLICATION_INFO, @@ -47,7 +31,6 @@ PaymentCaptureRequest.JSON_PROPERTY_SPLITS, PaymentCaptureRequest.JSON_PROPERTY_SUB_MERCHANTS }) - public class PaymentCaptureRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -76,13 +59,12 @@ public class PaymentCaptureRequest { public static final String JSON_PROPERTY_SUB_MERCHANTS = "subMerchants"; private List subMerchants; - public PaymentCaptureRequest() { - } + public PaymentCaptureRequest() {} /** * amount * - * @param amount + * @param amount * @return the current {@code PaymentCaptureRequest} instance, allowing for method chaining */ public PaymentCaptureRequest amount(Amount amount) { @@ -92,7 +74,8 @@ public PaymentCaptureRequest amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -103,7 +86,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,7 +97,7 @@ public void setAmount(Amount amount) { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo * @return the current {@code PaymentCaptureRequest} instance, allowing for method chaining */ public PaymentCaptureRequest applicationInfo(ApplicationInfo applicationInfo) { @@ -124,7 +107,8 @@ public PaymentCaptureRequest applicationInfo(ApplicationInfo applicationInfo) { /** * Get applicationInfo - * @return applicationInfo + * + * @return applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,7 +119,7 @@ public ApplicationInfo getApplicationInfo() { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,7 +130,7 @@ public void setApplicationInfo(ApplicationInfo applicationInfo) { /** * enhancedSchemeData * - * @param enhancedSchemeData + * @param enhancedSchemeData * @return the current {@code PaymentCaptureRequest} instance, allowing for method chaining */ public PaymentCaptureRequest enhancedSchemeData(EnhancedSchemeData enhancedSchemeData) { @@ -156,7 +140,8 @@ public PaymentCaptureRequest enhancedSchemeData(EnhancedSchemeData enhancedSchem /** * Get enhancedSchemeData - * @return enhancedSchemeData + * + * @return enhancedSchemeData */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,7 +152,7 @@ public EnhancedSchemeData getEnhancedSchemeData() { /** * enhancedSchemeData * - * @param enhancedSchemeData + * @param enhancedSchemeData */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,9 +161,15 @@ public void setEnhancedSchemeData(EnhancedSchemeData enhancedSchemeData) { } /** - * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is + * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. * - * @param lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * @param lineItems Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field + * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. * @return the current {@code PaymentCaptureRequest} instance, allowing for method chaining */ public PaymentCaptureRequest lineItems(List lineItems) { @@ -195,8 +186,15 @@ public PaymentCaptureRequest addLineItemsItem(LineItem lineItemsItem) { } /** - * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. - * @return lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is + * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. + * + * @return lineItems Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field + * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -205,9 +203,15 @@ public List getLineItems() { } /** - * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is + * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. * - * @param lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * @param lineItems Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field + * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -228,6 +232,7 @@ public PaymentCaptureRequest merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. + * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -250,17 +255,19 @@ public void setMerchantAccount(String merchantAccount) { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic * @return the current {@code PaymentCaptureRequest} instance, allowing for method chaining */ - public PaymentCaptureRequest platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) { + public PaymentCaptureRequest platformChargebackLogic( + PlatformChargebackLogic platformChargebackLogic) { this.platformChargebackLogic = platformChargebackLogic; return this; } /** * Get platformChargebackLogic - * @return platformChargebackLogic + * + * @return platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -271,7 +278,7 @@ public PlatformChargebackLogic getPlatformChargebackLogic() { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -292,6 +299,7 @@ public PaymentCaptureRequest reference(String reference) { /** * Your reference for the capture request. Maximum length: 80 characters. + * * @return reference Your reference for the capture request. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -312,9 +320,15 @@ public void setReference(String reference) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). * - * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * @param splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). * @return the current {@code PaymentCaptureRequest} instance, allowing for method chaining */ public PaymentCaptureRequest splits(List splits) { @@ -331,8 +345,15 @@ public PaymentCaptureRequest addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). - * @return splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * + * @return splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -341,9 +362,15 @@ public List getSplits() { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). * - * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * @param splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -372,6 +399,7 @@ public PaymentCaptureRequest addSubMerchantsItem(SubMerchantInfo subMerchantsIte /** * A List of sub-merchants. + * * @return subMerchants A List of sub-merchants. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANTS) @@ -391,9 +419,7 @@ public void setSubMerchants(List subMerchants) { this.subMerchants = subMerchants; } - /** - * Return true if this PaymentCaptureRequest object is equal to o. - */ + /** Return true if this PaymentCaptureRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -403,20 +429,30 @@ public boolean equals(Object o) { return false; } PaymentCaptureRequest paymentCaptureRequest = (PaymentCaptureRequest) o; - return Objects.equals(this.amount, paymentCaptureRequest.amount) && - Objects.equals(this.applicationInfo, paymentCaptureRequest.applicationInfo) && - Objects.equals(this.enhancedSchemeData, paymentCaptureRequest.enhancedSchemeData) && - Objects.equals(this.lineItems, paymentCaptureRequest.lineItems) && - Objects.equals(this.merchantAccount, paymentCaptureRequest.merchantAccount) && - Objects.equals(this.platformChargebackLogic, paymentCaptureRequest.platformChargebackLogic) && - Objects.equals(this.reference, paymentCaptureRequest.reference) && - Objects.equals(this.splits, paymentCaptureRequest.splits) && - Objects.equals(this.subMerchants, paymentCaptureRequest.subMerchants); + return Objects.equals(this.amount, paymentCaptureRequest.amount) + && Objects.equals(this.applicationInfo, paymentCaptureRequest.applicationInfo) + && Objects.equals(this.enhancedSchemeData, paymentCaptureRequest.enhancedSchemeData) + && Objects.equals(this.lineItems, paymentCaptureRequest.lineItems) + && Objects.equals(this.merchantAccount, paymentCaptureRequest.merchantAccount) + && Objects.equals( + this.platformChargebackLogic, paymentCaptureRequest.platformChargebackLogic) + && Objects.equals(this.reference, paymentCaptureRequest.reference) + && Objects.equals(this.splits, paymentCaptureRequest.splits) + && Objects.equals(this.subMerchants, paymentCaptureRequest.subMerchants); } @Override public int hashCode() { - return Objects.hash(amount, applicationInfo, enhancedSchemeData, lineItems, merchantAccount, platformChargebackLogic, reference, splits, subMerchants); + return Objects.hash( + amount, + applicationInfo, + enhancedSchemeData, + lineItems, + merchantAccount, + platformChargebackLogic, + reference, + splits, + subMerchants); } @Override @@ -428,7 +464,9 @@ public String toString() { sb.append(" enhancedSchemeData: ").append(toIndentedString(enhancedSchemeData)).append("\n"); sb.append(" lineItems: ").append(toIndentedString(lineItems)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n"); + sb.append(" platformChargebackLogic: ") + .append(toIndentedString(platformChargebackLogic)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" subMerchants: ").append(toIndentedString(subMerchants)).append("\n"); @@ -437,8 +475,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -447,21 +484,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentCaptureRequest given an JSON string * * @param jsonString JSON string * @return An instance of PaymentCaptureRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentCaptureRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentCaptureRequest */ public static PaymentCaptureRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentCaptureRequest.class); } -/** - * Convert an instance of PaymentCaptureRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentCaptureRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentCaptureResponse.java b/src/main/java/com/adyen/model/checkout/PaymentCaptureResponse.java index 5ff6e49a2..c3c9b78e0 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentCaptureResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentCaptureResponse.java @@ -2,38 +2,28 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Amount; -import com.adyen.model.checkout.LineItem; -import com.adyen.model.checkout.PlatformChargebackLogic; -import com.adyen.model.checkout.Split; -import com.adyen.model.checkout.SubMerchantInfo; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * PaymentCaptureResponse - */ +/** PaymentCaptureResponse */ @JsonPropertyOrder({ PaymentCaptureResponse.JSON_PROPERTY_AMOUNT, PaymentCaptureResponse.JSON_PROPERTY_LINE_ITEMS, @@ -46,7 +36,6 @@ PaymentCaptureResponse.JSON_PROPERTY_STATUS, PaymentCaptureResponse.JSON_PROPERTY_SUB_MERCHANTS }) - public class PaymentCaptureResponse { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -72,11 +61,8 @@ public class PaymentCaptureResponse { public static final String JSON_PROPERTY_SPLITS = "splits"; private List splits; - /** - * The status of your request. This will always have the value **received**. - */ + /** The status of your request. This will always have the value **received**. */ public enum StatusEnum { - RECEIVED(String.valueOf("received")); private static final Logger LOG = Logger.getLogger(StatusEnum.class.getName()); @@ -84,7 +70,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -105,7 +91,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -116,13 +106,12 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_SUB_MERCHANTS = "subMerchants"; private List subMerchants; - public PaymentCaptureResponse() { - } + public PaymentCaptureResponse() {} /** * amount * - * @param amount + * @param amount * @return the current {@code PaymentCaptureResponse} instance, allowing for method chaining */ public PaymentCaptureResponse amount(Amount amount) { @@ -132,7 +121,8 @@ public PaymentCaptureResponse amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,7 +133,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,9 +142,15 @@ public void setAmount(Amount amount) { } /** - * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is + * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. * - * @param lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * @param lineItems Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field + * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. * @return the current {@code PaymentCaptureResponse} instance, allowing for method chaining */ public PaymentCaptureResponse lineItems(List lineItems) { @@ -171,8 +167,15 @@ public PaymentCaptureResponse addLineItemsItem(LineItem lineItemsItem) { } /** - * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. - * @return lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is + * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. + * + * @return lineItems Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field + * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,9 +184,15 @@ public List getLineItems() { } /** - * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is + * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. * - * @param lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * @param lineItems Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field + * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,6 +213,7 @@ public PaymentCaptureResponse merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. + * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -224,9 +234,13 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to capture. + * The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment to capture. * - * @param paymentPspReference The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to capture. + * @param paymentPspReference The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment to capture. * @return the current {@code PaymentCaptureResponse} instance, allowing for method chaining */ public PaymentCaptureResponse paymentPspReference(String paymentPspReference) { @@ -235,8 +249,13 @@ public PaymentCaptureResponse paymentPspReference(String paymentPspReference) { } /** - * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to capture. - * @return paymentPspReference The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to capture. + * The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment to capture. + * + * @return paymentPspReference The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment to capture. */ @JsonProperty(JSON_PROPERTY_PAYMENT_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -245,9 +264,13 @@ public String getPaymentPspReference() { } /** - * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to capture. + * The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment to capture. * - * @param paymentPspReference The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to capture. + * @param paymentPspReference The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment to capture. */ @JsonProperty(JSON_PROPERTY_PAYMENT_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -258,17 +281,19 @@ public void setPaymentPspReference(String paymentPspReference) { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic * @return the current {@code PaymentCaptureResponse} instance, allowing for method chaining */ - public PaymentCaptureResponse platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) { + public PaymentCaptureResponse platformChargebackLogic( + PlatformChargebackLogic platformChargebackLogic) { this.platformChargebackLogic = platformChargebackLogic; return this; } /** * Get platformChargebackLogic - * @return platformChargebackLogic + * + * @return platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -279,7 +304,7 @@ public PlatformChargebackLogic getPlatformChargebackLogic() { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -300,6 +325,7 @@ public PaymentCaptureResponse pspReference(String pspReference) { /** * Adyen's 16-character reference associated with the capture request. + * * @return pspReference Adyen's 16-character reference associated with the capture request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -332,6 +358,7 @@ public PaymentCaptureResponse reference(String reference) { /** * Your reference for the capture request. + * * @return reference Your reference for the capture request. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -352,9 +379,15 @@ public void setReference(String reference) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). * - * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * @param splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). * @return the current {@code PaymentCaptureResponse} instance, allowing for method chaining */ public PaymentCaptureResponse splits(List splits) { @@ -371,8 +404,15 @@ public PaymentCaptureResponse addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). - * @return splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * + * @return splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -381,9 +421,15 @@ public List getSplits() { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). * - * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * @param splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -404,6 +450,7 @@ public PaymentCaptureResponse status(StatusEnum status) { /** * The status of your request. This will always have the value **received**. + * * @return status The status of your request. This will always have the value **received**. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -444,6 +491,7 @@ public PaymentCaptureResponse addSubMerchantsItem(SubMerchantInfo subMerchantsIt /** * List of sub-merchants. + * * @return subMerchants List of sub-merchants. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANTS) @@ -463,9 +511,7 @@ public void setSubMerchants(List subMerchants) { this.subMerchants = subMerchants; } - /** - * Return true if this PaymentCaptureResponse object is equal to o. - */ + /** Return true if this PaymentCaptureResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -475,21 +521,32 @@ public boolean equals(Object o) { return false; } PaymentCaptureResponse paymentCaptureResponse = (PaymentCaptureResponse) o; - return Objects.equals(this.amount, paymentCaptureResponse.amount) && - Objects.equals(this.lineItems, paymentCaptureResponse.lineItems) && - Objects.equals(this.merchantAccount, paymentCaptureResponse.merchantAccount) && - Objects.equals(this.paymentPspReference, paymentCaptureResponse.paymentPspReference) && - Objects.equals(this.platformChargebackLogic, paymentCaptureResponse.platformChargebackLogic) && - Objects.equals(this.pspReference, paymentCaptureResponse.pspReference) && - Objects.equals(this.reference, paymentCaptureResponse.reference) && - Objects.equals(this.splits, paymentCaptureResponse.splits) && - Objects.equals(this.status, paymentCaptureResponse.status) && - Objects.equals(this.subMerchants, paymentCaptureResponse.subMerchants); + return Objects.equals(this.amount, paymentCaptureResponse.amount) + && Objects.equals(this.lineItems, paymentCaptureResponse.lineItems) + && Objects.equals(this.merchantAccount, paymentCaptureResponse.merchantAccount) + && Objects.equals(this.paymentPspReference, paymentCaptureResponse.paymentPspReference) + && Objects.equals( + this.platformChargebackLogic, paymentCaptureResponse.platformChargebackLogic) + && Objects.equals(this.pspReference, paymentCaptureResponse.pspReference) + && Objects.equals(this.reference, paymentCaptureResponse.reference) + && Objects.equals(this.splits, paymentCaptureResponse.splits) + && Objects.equals(this.status, paymentCaptureResponse.status) + && Objects.equals(this.subMerchants, paymentCaptureResponse.subMerchants); } @Override public int hashCode() { - return Objects.hash(amount, lineItems, merchantAccount, paymentPspReference, platformChargebackLogic, pspReference, reference, splits, status, subMerchants); + return Objects.hash( + amount, + lineItems, + merchantAccount, + paymentPspReference, + platformChargebackLogic, + pspReference, + reference, + splits, + status, + subMerchants); } @Override @@ -499,8 +556,12 @@ public String toString() { sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" lineItems: ").append(toIndentedString(lineItems)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" paymentPspReference: ").append(toIndentedString(paymentPspReference)).append("\n"); - sb.append(" platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n"); + sb.append(" paymentPspReference: ") + .append(toIndentedString(paymentPspReference)) + .append("\n"); + sb.append(" platformChargebackLogic: ") + .append(toIndentedString(platformChargebackLogic)) + .append("\n"); sb.append(" pspReference: ").append(toIndentedString(pspReference)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); @@ -511,8 +572,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -521,21 +581,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentCaptureResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaymentCaptureResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentCaptureResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentCaptureResponse */ public static PaymentCaptureResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentCaptureResponse.class); } -/** - * Convert an instance of PaymentCaptureResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentCaptureResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentCompletionDetails.java b/src/main/java/com/adyen/model/checkout/PaymentCompletionDetails.java index e6898e30a..678235869 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentCompletionDetails.java +++ b/src/main/java/com/adyen/model/checkout/PaymentCompletionDetails.java @@ -2,31 +2,22 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * PaymentCompletionDetails - */ +/** PaymentCompletionDetails */ @JsonPropertyOrder({ PaymentCompletionDetails.JSON_PROPERTY_M_D, PaymentCompletionDetails.JSON_PROPERTY_PA_REQ, @@ -49,7 +40,6 @@ PaymentCompletionDetails.JSON_PROPERTY_THREEDS2_FINGERPRINT, PaymentCompletionDetails.JSON_PROPERTY_VAULT_TOKEN }) - public class PaymentCompletionDetails { public static final String JSON_PROPERTY_M_D = "MD"; private String MD; @@ -111,8 +101,7 @@ public class PaymentCompletionDetails { public static final String JSON_PROPERTY_VAULT_TOKEN = "vaultToken"; private String vaultToken; - public PaymentCompletionDetails() { - } + public PaymentCompletionDetails() {} /** * A payment session identifier returned by the card issuer. @@ -127,6 +116,7 @@ public PaymentCompletionDetails MD(String MD) { /** * A payment session identifier returned by the card issuer. + * * @return MD A payment session identifier returned by the card issuer. */ @JsonProperty(JSON_PROPERTY_M_D) @@ -159,6 +149,7 @@ public PaymentCompletionDetails paReq(String paReq) { /** * (3D) Payment Authentication Request data for the card issuer. + * * @return paReq (3D) Payment Authentication Request data for the card issuer. */ @JsonProperty(JSON_PROPERTY_PA_REQ) @@ -191,6 +182,7 @@ public PaymentCompletionDetails paRes(String paRes) { /** * (3D) Payment Authentication Response data by the card issuer. + * * @return paRes (3D) Payment Authentication Response data by the card issuer. */ @JsonProperty(JSON_PROPERTY_PA_RES) @@ -213,7 +205,7 @@ public void setPaRes(String paRes) { /** * authorizationToken * - * @param authorizationToken + * @param authorizationToken * @return the current {@code PaymentCompletionDetails} instance, allowing for method chaining */ public PaymentCompletionDetails authorizationToken(String authorizationToken) { @@ -223,7 +215,8 @@ public PaymentCompletionDetails authorizationToken(String authorizationToken) { /** * Get authorizationToken - * @return authorizationToken + * + * @return authorizationToken */ @JsonProperty(JSON_PROPERTY_AUTHORIZATION_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -234,7 +227,7 @@ public String getAuthorizationToken() { /** * authorizationToken * - * @param authorizationToken + * @param authorizationToken */ @JsonProperty(JSON_PROPERTY_AUTHORIZATION_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -255,6 +248,7 @@ public PaymentCompletionDetails billingToken(String billingToken) { /** * PayPal-generated token for recurring payments. + * * @return billingToken PayPal-generated token for recurring payments. */ @JsonProperty(JSON_PROPERTY_BILLING_TOKEN) @@ -287,6 +281,7 @@ public PaymentCompletionDetails cupsecureplusSmscode(String cupsecureplusSmscode /** * The SMS verification code collected from the shopper. + * * @return cupsecureplusSmscode The SMS verification code collected from the shopper. */ @JsonProperty(JSON_PROPERTY_CUPSECUREPLUS_SMSCODE) @@ -319,6 +314,7 @@ public PaymentCompletionDetails facilitatorAccessToken(String facilitatorAccessT /** * PayPal-generated third party access token. + * * @return facilitatorAccessToken PayPal-generated third party access token. */ @JsonProperty(JSON_PROPERTY_FACILITATOR_ACCESS_TOKEN) @@ -341,7 +337,8 @@ public void setFacilitatorAccessToken(String facilitatorAccessToken) { /** * A random number sent to the mobile phone number of the shopper to verify the payment. * - * @param oneTimePasscode A random number sent to the mobile phone number of the shopper to verify the payment. + * @param oneTimePasscode A random number sent to the mobile phone number of the shopper to verify + * the payment. * @return the current {@code PaymentCompletionDetails} instance, allowing for method chaining */ public PaymentCompletionDetails oneTimePasscode(String oneTimePasscode) { @@ -351,7 +348,9 @@ public PaymentCompletionDetails oneTimePasscode(String oneTimePasscode) { /** * A random number sent to the mobile phone number of the shopper to verify the payment. - * @return oneTimePasscode A random number sent to the mobile phone number of the shopper to verify the payment. + * + * @return oneTimePasscode A random number sent to the mobile phone number of the shopper to + * verify the payment. */ @JsonProperty(JSON_PROPERTY_ONE_TIME_PASSCODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -362,7 +361,8 @@ public String getOneTimePasscode() { /** * A random number sent to the mobile phone number of the shopper to verify the payment. * - * @param oneTimePasscode A random number sent to the mobile phone number of the shopper to verify the payment. + * @param oneTimePasscode A random number sent to the mobile phone number of the shopper to verify + * the payment. */ @JsonProperty(JSON_PROPERTY_ONE_TIME_PASSCODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -383,6 +383,7 @@ public PaymentCompletionDetails orderID(String orderID) { /** * PayPal-assigned ID for the order. + * * @return orderID PayPal-assigned ID for the order. */ @JsonProperty(JSON_PROPERTY_ORDER_I_D) @@ -415,6 +416,7 @@ public PaymentCompletionDetails payerID(String payerID) { /** * PayPal-assigned ID for the payer (shopper). + * * @return payerID PayPal-assigned ID for the payer (shopper). */ @JsonProperty(JSON_PROPERTY_PAYER_I_D) @@ -447,6 +449,7 @@ public PaymentCompletionDetails payload(String payload) { /** * Payload appended to the `returnURL` as a result of the redirect. + * * @return payload Payload appended to the `returnURL` as a result of the redirect. */ @JsonProperty(JSON_PROPERTY_PAYLOAD) @@ -479,6 +482,7 @@ public PaymentCompletionDetails paymentID(String paymentID) { /** * PayPal-generated ID for the payment. + * * @return paymentID PayPal-generated ID for the payment. */ @JsonProperty(JSON_PROPERTY_PAYMENT_I_D) @@ -499,9 +503,12 @@ public void setPaymentID(String paymentID) { } /** - * Value passed from the WeChat MiniProgram `wx.requestPayment` **complete** callback. Possible values: any value starting with `requestPayment:`. + * Value passed from the WeChat MiniProgram `wx.requestPayment` **complete** callback. + * Possible values: any value starting with `requestPayment:`. * - * @param paymentStatus Value passed from the WeChat MiniProgram `wx.requestPayment` **complete** callback. Possible values: any value starting with `requestPayment:`. + * @param paymentStatus Value passed from the WeChat MiniProgram `wx.requestPayment` + * **complete** callback. Possible values: any value starting with + * `requestPayment:`. * @return the current {@code PaymentCompletionDetails} instance, allowing for method chaining */ public PaymentCompletionDetails paymentStatus(String paymentStatus) { @@ -510,8 +517,12 @@ public PaymentCompletionDetails paymentStatus(String paymentStatus) { } /** - * Value passed from the WeChat MiniProgram `wx.requestPayment` **complete** callback. Possible values: any value starting with `requestPayment:`. - * @return paymentStatus Value passed from the WeChat MiniProgram `wx.requestPayment` **complete** callback. Possible values: any value starting with `requestPayment:`. + * Value passed from the WeChat MiniProgram `wx.requestPayment` **complete** callback. + * Possible values: any value starting with `requestPayment:`. + * + * @return paymentStatus Value passed from the WeChat MiniProgram `wx.requestPayment` + * **complete** callback. Possible values: any value starting with + * `requestPayment:`. */ @JsonProperty(JSON_PROPERTY_PAYMENT_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -520,9 +531,12 @@ public String getPaymentStatus() { } /** - * Value passed from the WeChat MiniProgram `wx.requestPayment` **complete** callback. Possible values: any value starting with `requestPayment:`. + * Value passed from the WeChat MiniProgram `wx.requestPayment` **complete** callback. + * Possible values: any value starting with `requestPayment:`. * - * @param paymentStatus Value passed from the WeChat MiniProgram `wx.requestPayment` **complete** callback. Possible values: any value starting with `requestPayment:`. + * @param paymentStatus Value passed from the WeChat MiniProgram `wx.requestPayment` + * **complete** callback. Possible values: any value starting with + * `requestPayment:`. */ @JsonProperty(JSON_PROPERTY_PAYMENT_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -543,6 +557,7 @@ public PaymentCompletionDetails redirectResult(String redirectResult) { /** * The result of the redirect as appended to the `returnURL`. + * * @return redirectResult The result of the redirect as appended to the `returnURL`. */ @JsonProperty(JSON_PROPERTY_REDIRECT_RESULT) @@ -575,6 +590,7 @@ public PaymentCompletionDetails resultCode(String resultCode) { /** * Value you received from the WeChat Pay SDK. + * * @return resultCode Value you received from the WeChat Pay SDK. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @@ -597,7 +613,8 @@ public void setResultCode(String resultCode) { /** * The query string as appended to the `returnURL` when using direct issuer links . * - * @param returnUrlQueryString The query string as appended to the `returnURL` when using direct issuer links . + * @param returnUrlQueryString The query string as appended to the `returnURL` when + * using direct issuer links . * @return the current {@code PaymentCompletionDetails} instance, allowing for method chaining */ public PaymentCompletionDetails returnUrlQueryString(String returnUrlQueryString) { @@ -607,7 +624,9 @@ public PaymentCompletionDetails returnUrlQueryString(String returnUrlQueryString /** * The query string as appended to the `returnURL` when using direct issuer links . - * @return returnUrlQueryString The query string as appended to the `returnURL` when using direct issuer links . + * + * @return returnUrlQueryString The query string as appended to the `returnURL` when + * using direct issuer links . */ @JsonProperty(JSON_PROPERTY_RETURN_URL_QUERY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -618,7 +637,8 @@ public String getReturnUrlQueryString() { /** * The query string as appended to the `returnURL` when using direct issuer links . * - * @param returnUrlQueryString The query string as appended to the `returnURL` when using direct issuer links . + * @param returnUrlQueryString The query string as appended to the `returnURL` when + * using direct issuer links . */ @JsonProperty(JSON_PROPERTY_RETURN_URL_QUERY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -627,9 +647,12 @@ public void setReturnUrlQueryString(String returnUrlQueryString) { } /** - * Base64-encoded string returned by the Component after the challenge flow. It contains the following parameters: `transStatus`, `authorisationToken`. + * Base64-encoded string returned by the Component after the challenge flow. It contains the + * following parameters: `transStatus`, `authorisationToken`. * - * @param threeDSResult Base64-encoded string returned by the Component after the challenge flow. It contains the following parameters: `transStatus`, `authorisationToken`. + * @param threeDSResult Base64-encoded string returned by the Component after the challenge flow. + * It contains the following parameters: `transStatus`, + * `authorisationToken`. * @return the current {@code PaymentCompletionDetails} instance, allowing for method chaining */ public PaymentCompletionDetails threeDSResult(String threeDSResult) { @@ -638,8 +661,12 @@ public PaymentCompletionDetails threeDSResult(String threeDSResult) { } /** - * Base64-encoded string returned by the Component after the challenge flow. It contains the following parameters: `transStatus`, `authorisationToken`. - * @return threeDSResult Base64-encoded string returned by the Component after the challenge flow. It contains the following parameters: `transStatus`, `authorisationToken`. + * Base64-encoded string returned by the Component after the challenge flow. It contains the + * following parameters: `transStatus`, `authorisationToken`. + * + * @return threeDSResult Base64-encoded string returned by the Component after the challenge flow. + * It contains the following parameters: `transStatus`, + * `authorisationToken`. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -648,9 +675,12 @@ public String getThreeDSResult() { } /** - * Base64-encoded string returned by the Component after the challenge flow. It contains the following parameters: `transStatus`, `authorisationToken`. + * Base64-encoded string returned by the Component after the challenge flow. It contains the + * following parameters: `transStatus`, `authorisationToken`. * - * @param threeDSResult Base64-encoded string returned by the Component after the challenge flow. It contains the following parameters: `transStatus`, `authorisationToken`. + * @param threeDSResult Base64-encoded string returned by the Component after the challenge flow. + * It contains the following parameters: `transStatus`, + * `authorisationToken`. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -659,9 +689,11 @@ public void setThreeDSResult(String threeDSResult) { } /** - * Base64-encoded string returned by the Component after the challenge flow. It contains the following parameter: `transStatus`. + * Base64-encoded string returned by the Component after the challenge flow. It contains the + * following parameter: `transStatus`. * - * @param threeds2ChallengeResult Base64-encoded string returned by the Component after the challenge flow. It contains the following parameter: `transStatus`. + * @param threeds2ChallengeResult Base64-encoded string returned by the Component after the + * challenge flow. It contains the following parameter: `transStatus`. * @return the current {@code PaymentCompletionDetails} instance, allowing for method chaining */ public PaymentCompletionDetails threeds2ChallengeResult(String threeds2ChallengeResult) { @@ -670,8 +702,11 @@ public PaymentCompletionDetails threeds2ChallengeResult(String threeds2Challenge } /** - * Base64-encoded string returned by the Component after the challenge flow. It contains the following parameter: `transStatus`. - * @return threeds2ChallengeResult Base64-encoded string returned by the Component after the challenge flow. It contains the following parameter: `transStatus`. + * Base64-encoded string returned by the Component after the challenge flow. It contains the + * following parameter: `transStatus`. + * + * @return threeds2ChallengeResult Base64-encoded string returned by the Component after the + * challenge flow. It contains the following parameter: `transStatus`. */ @JsonProperty(JSON_PROPERTY_THREEDS2_CHALLENGE_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -680,9 +715,11 @@ public String getThreeds2ChallengeResult() { } /** - * Base64-encoded string returned by the Component after the challenge flow. It contains the following parameter: `transStatus`. + * Base64-encoded string returned by the Component after the challenge flow. It contains the + * following parameter: `transStatus`. * - * @param threeds2ChallengeResult Base64-encoded string returned by the Component after the challenge flow. It contains the following parameter: `transStatus`. + * @param threeds2ChallengeResult Base64-encoded string returned by the Component after the + * challenge flow. It contains the following parameter: `transStatus`. */ @JsonProperty(JSON_PROPERTY_THREEDS2_CHALLENGE_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -691,9 +728,11 @@ public void setThreeds2ChallengeResult(String threeds2ChallengeResult) { } /** - * Base64-encoded string returned by the Component after the challenge flow. It contains the following parameter: `threeDSCompInd`. + * Base64-encoded string returned by the Component after the challenge flow. It contains the + * following parameter: `threeDSCompInd`. * - * @param threeds2Fingerprint Base64-encoded string returned by the Component after the challenge flow. It contains the following parameter: `threeDSCompInd`. + * @param threeds2Fingerprint Base64-encoded string returned by the Component after the challenge + * flow. It contains the following parameter: `threeDSCompInd`. * @return the current {@code PaymentCompletionDetails} instance, allowing for method chaining */ public PaymentCompletionDetails threeds2Fingerprint(String threeds2Fingerprint) { @@ -702,8 +741,11 @@ public PaymentCompletionDetails threeds2Fingerprint(String threeds2Fingerprint) } /** - * Base64-encoded string returned by the Component after the challenge flow. It contains the following parameter: `threeDSCompInd`. - * @return threeds2Fingerprint Base64-encoded string returned by the Component after the challenge flow. It contains the following parameter: `threeDSCompInd`. + * Base64-encoded string returned by the Component after the challenge flow. It contains the + * following parameter: `threeDSCompInd`. + * + * @return threeds2Fingerprint Base64-encoded string returned by the Component after the challenge + * flow. It contains the following parameter: `threeDSCompInd`. */ @JsonProperty(JSON_PROPERTY_THREEDS2_FINGERPRINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -712,9 +754,11 @@ public String getThreeds2Fingerprint() { } /** - * Base64-encoded string returned by the Component after the challenge flow. It contains the following parameter: `threeDSCompInd`. + * Base64-encoded string returned by the Component after the challenge flow. It contains the + * following parameter: `threeDSCompInd`. * - * @param threeds2Fingerprint Base64-encoded string returned by the Component after the challenge flow. It contains the following parameter: `threeDSCompInd`. + * @param threeds2Fingerprint Base64-encoded string returned by the Component after the challenge + * flow. It contains the following parameter: `threeDSCompInd`. */ @JsonProperty(JSON_PROPERTY_THREEDS2_FINGERPRINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -735,6 +779,7 @@ public PaymentCompletionDetails vaultToken(String vaultToken) { /** * PayPalv2-generated token for recurring payments. + * * @return vaultToken PayPalv2-generated token for recurring payments. */ @JsonProperty(JSON_PROPERTY_VAULT_TOKEN) @@ -754,9 +799,7 @@ public void setVaultToken(String vaultToken) { this.vaultToken = vaultToken; } - /** - * Return true if this PaymentCompletionDetails object is equal to o. - */ + /** Return true if this PaymentCompletionDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -766,31 +809,53 @@ public boolean equals(Object o) { return false; } PaymentCompletionDetails paymentCompletionDetails = (PaymentCompletionDetails) o; - return Objects.equals(this.MD, paymentCompletionDetails.MD) && - Objects.equals(this.paReq, paymentCompletionDetails.paReq) && - Objects.equals(this.paRes, paymentCompletionDetails.paRes) && - Objects.equals(this.authorizationToken, paymentCompletionDetails.authorizationToken) && - Objects.equals(this.billingToken, paymentCompletionDetails.billingToken) && - Objects.equals(this.cupsecureplusSmscode, paymentCompletionDetails.cupsecureplusSmscode) && - Objects.equals(this.facilitatorAccessToken, paymentCompletionDetails.facilitatorAccessToken) && - Objects.equals(this.oneTimePasscode, paymentCompletionDetails.oneTimePasscode) && - Objects.equals(this.orderID, paymentCompletionDetails.orderID) && - Objects.equals(this.payerID, paymentCompletionDetails.payerID) && - Objects.equals(this.payload, paymentCompletionDetails.payload) && - Objects.equals(this.paymentID, paymentCompletionDetails.paymentID) && - Objects.equals(this.paymentStatus, paymentCompletionDetails.paymentStatus) && - Objects.equals(this.redirectResult, paymentCompletionDetails.redirectResult) && - Objects.equals(this.resultCode, paymentCompletionDetails.resultCode) && - Objects.equals(this.returnUrlQueryString, paymentCompletionDetails.returnUrlQueryString) && - Objects.equals(this.threeDSResult, paymentCompletionDetails.threeDSResult) && - Objects.equals(this.threeds2ChallengeResult, paymentCompletionDetails.threeds2ChallengeResult) && - Objects.equals(this.threeds2Fingerprint, paymentCompletionDetails.threeds2Fingerprint) && - Objects.equals(this.vaultToken, paymentCompletionDetails.vaultToken); + return Objects.equals(this.MD, paymentCompletionDetails.MD) + && Objects.equals(this.paReq, paymentCompletionDetails.paReq) + && Objects.equals(this.paRes, paymentCompletionDetails.paRes) + && Objects.equals(this.authorizationToken, paymentCompletionDetails.authorizationToken) + && Objects.equals(this.billingToken, paymentCompletionDetails.billingToken) + && Objects.equals(this.cupsecureplusSmscode, paymentCompletionDetails.cupsecureplusSmscode) + && Objects.equals( + this.facilitatorAccessToken, paymentCompletionDetails.facilitatorAccessToken) + && Objects.equals(this.oneTimePasscode, paymentCompletionDetails.oneTimePasscode) + && Objects.equals(this.orderID, paymentCompletionDetails.orderID) + && Objects.equals(this.payerID, paymentCompletionDetails.payerID) + && Objects.equals(this.payload, paymentCompletionDetails.payload) + && Objects.equals(this.paymentID, paymentCompletionDetails.paymentID) + && Objects.equals(this.paymentStatus, paymentCompletionDetails.paymentStatus) + && Objects.equals(this.redirectResult, paymentCompletionDetails.redirectResult) + && Objects.equals(this.resultCode, paymentCompletionDetails.resultCode) + && Objects.equals(this.returnUrlQueryString, paymentCompletionDetails.returnUrlQueryString) + && Objects.equals(this.threeDSResult, paymentCompletionDetails.threeDSResult) + && Objects.equals( + this.threeds2ChallengeResult, paymentCompletionDetails.threeds2ChallengeResult) + && Objects.equals(this.threeds2Fingerprint, paymentCompletionDetails.threeds2Fingerprint) + && Objects.equals(this.vaultToken, paymentCompletionDetails.vaultToken); } @Override public int hashCode() { - return Objects.hash(MD, paReq, paRes, authorizationToken, billingToken, cupsecureplusSmscode, facilitatorAccessToken, oneTimePasscode, orderID, payerID, payload, paymentID, paymentStatus, redirectResult, resultCode, returnUrlQueryString, threeDSResult, threeds2ChallengeResult, threeds2Fingerprint, vaultToken); + return Objects.hash( + MD, + paReq, + paRes, + authorizationToken, + billingToken, + cupsecureplusSmscode, + facilitatorAccessToken, + oneTimePasscode, + orderID, + payerID, + payload, + paymentID, + paymentStatus, + redirectResult, + resultCode, + returnUrlQueryString, + threeDSResult, + threeds2ChallengeResult, + threeds2Fingerprint, + vaultToken); } @Override @@ -802,8 +867,12 @@ public String toString() { sb.append(" paRes: ").append(toIndentedString(paRes)).append("\n"); sb.append(" authorizationToken: ").append(toIndentedString(authorizationToken)).append("\n"); sb.append(" billingToken: ").append(toIndentedString(billingToken)).append("\n"); - sb.append(" cupsecureplusSmscode: ").append(toIndentedString(cupsecureplusSmscode)).append("\n"); - sb.append(" facilitatorAccessToken: ").append(toIndentedString(facilitatorAccessToken)).append("\n"); + sb.append(" cupsecureplusSmscode: ") + .append(toIndentedString(cupsecureplusSmscode)) + .append("\n"); + sb.append(" facilitatorAccessToken: ") + .append(toIndentedString(facilitatorAccessToken)) + .append("\n"); sb.append(" oneTimePasscode: ").append(toIndentedString(oneTimePasscode)).append("\n"); sb.append(" orderID: ").append(toIndentedString(orderID)).append("\n"); sb.append(" payerID: ").append(toIndentedString(payerID)).append("\n"); @@ -812,18 +881,23 @@ public String toString() { sb.append(" paymentStatus: ").append(toIndentedString(paymentStatus)).append("\n"); sb.append(" redirectResult: ").append(toIndentedString(redirectResult)).append("\n"); sb.append(" resultCode: ").append(toIndentedString(resultCode)).append("\n"); - sb.append(" returnUrlQueryString: ").append(toIndentedString(returnUrlQueryString)).append("\n"); + sb.append(" returnUrlQueryString: ") + .append(toIndentedString(returnUrlQueryString)) + .append("\n"); sb.append(" threeDSResult: ").append(toIndentedString(threeDSResult)).append("\n"); - sb.append(" threeds2ChallengeResult: ").append(toIndentedString(threeds2ChallengeResult)).append("\n"); - sb.append(" threeds2Fingerprint: ").append(toIndentedString(threeds2Fingerprint)).append("\n"); + sb.append(" threeds2ChallengeResult: ") + .append(toIndentedString(threeds2ChallengeResult)) + .append("\n"); + sb.append(" threeds2Fingerprint: ") + .append(toIndentedString(threeds2Fingerprint)) + .append("\n"); sb.append(" vaultToken: ").append(toIndentedString(vaultToken)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -832,21 +906,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentCompletionDetails given an JSON string * * @param jsonString JSON string * @return An instance of PaymentCompletionDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentCompletionDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentCompletionDetails */ - public static PaymentCompletionDetails fromJson(String jsonString) throws JsonProcessingException { + public static PaymentCompletionDetails fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentCompletionDetails.class); } -/** - * Convert an instance of PaymentCompletionDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentCompletionDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentDetails.java b/src/main/java/com/adyen/model/checkout/PaymentDetails.java index 12c797714..cadef3793 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentDetails.java +++ b/src/main/java/com/adyen/model/checkout/PaymentDetails.java @@ -2,45 +2,36 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * PaymentDetails - */ +/** PaymentDetails */ @JsonPropertyOrder({ PaymentDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, PaymentDetails.JSON_PROPERTY_TYPE }) - public class PaymentDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; - /** - * The payment method type. - */ + /** The payment method type. */ public enum TypeEnum { - ALIPAY(String.valueOf("alipay")), MULTIBANCO(String.valueOf("multibanco")), @@ -224,7 +215,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -245,7 +236,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -253,8 +248,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PaymentDetails() { - } + public PaymentDetails() {} /** * The checkout attempt identifier. @@ -269,6 +263,7 @@ public PaymentDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -301,6 +296,7 @@ public PaymentDetails type(TypeEnum type) { /** * The payment method type. + * * @return type The payment method type. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -320,9 +316,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this PaymentDetails object is equal to o. - */ + /** Return true if this PaymentDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -332,8 +326,8 @@ public boolean equals(Object o) { return false; } PaymentDetails paymentDetails = (PaymentDetails) o; - return Objects.equals(this.checkoutAttemptId, paymentDetails.checkoutAttemptId) && - Objects.equals(this.type, paymentDetails.type); + return Objects.equals(this.checkoutAttemptId, paymentDetails.checkoutAttemptId) + && Objects.equals(this.type, paymentDetails.type); } @Override @@ -352,8 +346,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -362,7 +355,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentDetails given an JSON string * * @param jsonString JSON string @@ -372,11 +365,12 @@ private String toIndentedString(Object o) { public static PaymentDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentDetails.class); } -/** - * Convert an instance of PaymentDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentDetailsRequest.java b/src/main/java/com/adyen/model/checkout/PaymentDetailsRequest.java index 1c9c3f4ea..bd3f4651b 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentDetailsRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentDetailsRequest.java @@ -2,40 +2,28 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.DetailsRequestAuthenticationData; -import com.adyen.model.checkout.PaymentCompletionDetails; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * PaymentDetailsRequest - */ +/** PaymentDetailsRequest */ @JsonPropertyOrder({ PaymentDetailsRequest.JSON_PROPERTY_AUTHENTICATION_DATA, PaymentDetailsRequest.JSON_PROPERTY_DETAILS, PaymentDetailsRequest.JSON_PROPERTY_PAYMENT_DATA, PaymentDetailsRequest.JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY }) - public class PaymentDetailsRequest { public static final String JSON_PROPERTY_AUTHENTICATION_DATA = "authenticationData"; private DetailsRequestAuthenticationData authenticationData; @@ -46,27 +34,30 @@ public class PaymentDetailsRequest { public static final String JSON_PROPERTY_PAYMENT_DATA = "paymentData"; private String paymentData; - public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = "threeDSAuthenticationOnly"; - @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. + public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = + "threeDSAuthenticationOnly"; + @Deprecated // deprecated since Adyen Checkout API v69: Use + // `authenticationData.authenticationOnly` instead. private Boolean threeDSAuthenticationOnly; - public PaymentDetailsRequest() { - } + public PaymentDetailsRequest() {} /** * authenticationData * - * @param authenticationData + * @param authenticationData * @return the current {@code PaymentDetailsRequest} instance, allowing for method chaining */ - public PaymentDetailsRequest authenticationData(DetailsRequestAuthenticationData authenticationData) { + public PaymentDetailsRequest authenticationData( + DetailsRequestAuthenticationData authenticationData) { this.authenticationData = authenticationData; return this; } /** * Get authenticationData - * @return authenticationData + * + * @return authenticationData */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -77,7 +68,7 @@ public DetailsRequestAuthenticationData getAuthenticationData() { /** * authenticationData * - * @param authenticationData + * @param authenticationData */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -88,7 +79,7 @@ public void setAuthenticationData(DetailsRequestAuthenticationData authenticatio /** * details * - * @param details + * @param details * @return the current {@code PaymentDetailsRequest} instance, allowing for method chaining */ public PaymentDetailsRequest details(PaymentCompletionDetails details) { @@ -98,7 +89,8 @@ public PaymentDetailsRequest details(PaymentCompletionDetails details) { /** * Get details - * @return details + * + * @return details */ @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -109,7 +101,7 @@ public PaymentCompletionDetails getDetails() { /** * details * - * @param details + * @param details */ @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,9 +110,20 @@ public void setDetails(PaymentCompletionDetails details) { } /** - * Encoded payment data. For [authorizing a payment after using 3D Secure 2 Authentication-only](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only/#authorise-the-payment-with-adyen): If you received `resultCode`: **AuthenticationNotRequired** in the `/payments` response, use the `threeDSPaymentData` from the same response. If you received `resultCode`: **AuthenticationFinished** in the `/payments` response, use the `action.paymentData` from the same response. + * Encoded payment data. For [authorizing a payment after using 3D Secure 2 + * Authentication-only](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only/#authorise-the-payment-with-adyen): + * If you received `resultCode`: **AuthenticationNotRequired** in the + * `/payments` response, use the `threeDSPaymentData` from the same response. + * If you received `resultCode`: **AuthenticationFinished** in the `/payments` + * response, use the `action.paymentData` from the same response. * - * @param paymentData Encoded payment data. For [authorizing a payment after using 3D Secure 2 Authentication-only](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only/#authorise-the-payment-with-adyen): If you received `resultCode`: **AuthenticationNotRequired** in the `/payments` response, use the `threeDSPaymentData` from the same response. If you received `resultCode`: **AuthenticationFinished** in the `/payments` response, use the `action.paymentData` from the same response. + * @param paymentData Encoded payment data. For [authorizing a payment after using 3D Secure 2 + * Authentication-only](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only/#authorise-the-payment-with-adyen): + * If you received `resultCode`: **AuthenticationNotRequired** in the + * `/payments` response, use the `threeDSPaymentData` from the same + * response. If you received `resultCode`: **AuthenticationFinished** in the + * `/payments` response, use the `action.paymentData` from the same + * response. * @return the current {@code PaymentDetailsRequest} instance, allowing for method chaining */ public PaymentDetailsRequest paymentData(String paymentData) { @@ -129,8 +132,20 @@ public PaymentDetailsRequest paymentData(String paymentData) { } /** - * Encoded payment data. For [authorizing a payment after using 3D Secure 2 Authentication-only](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only/#authorise-the-payment-with-adyen): If you received `resultCode`: **AuthenticationNotRequired** in the `/payments` response, use the `threeDSPaymentData` from the same response. If you received `resultCode`: **AuthenticationFinished** in the `/payments` response, use the `action.paymentData` from the same response. - * @return paymentData Encoded payment data. For [authorizing a payment after using 3D Secure 2 Authentication-only](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only/#authorise-the-payment-with-adyen): If you received `resultCode`: **AuthenticationNotRequired** in the `/payments` response, use the `threeDSPaymentData` from the same response. If you received `resultCode`: **AuthenticationFinished** in the `/payments` response, use the `action.paymentData` from the same response. + * Encoded payment data. For [authorizing a payment after using 3D Secure 2 + * Authentication-only](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only/#authorise-the-payment-with-adyen): + * If you received `resultCode`: **AuthenticationNotRequired** in the + * `/payments` response, use the `threeDSPaymentData` from the same response. + * If you received `resultCode`: **AuthenticationFinished** in the `/payments` + * response, use the `action.paymentData` from the same response. + * + * @return paymentData Encoded payment data. For [authorizing a payment after using 3D Secure 2 + * Authentication-only](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only/#authorise-the-payment-with-adyen): + * If you received `resultCode`: **AuthenticationNotRequired** in the + * `/payments` response, use the `threeDSPaymentData` from the same + * response. If you received `resultCode`: **AuthenticationFinished** in the + * `/payments` response, use the `action.paymentData` from the same + * response. */ @JsonProperty(JSON_PROPERTY_PAYMENT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,9 +154,20 @@ public String getPaymentData() { } /** - * Encoded payment data. For [authorizing a payment after using 3D Secure 2 Authentication-only](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only/#authorise-the-payment-with-adyen): If you received `resultCode`: **AuthenticationNotRequired** in the `/payments` response, use the `threeDSPaymentData` from the same response. If you received `resultCode`: **AuthenticationFinished** in the `/payments` response, use the `action.paymentData` from the same response. + * Encoded payment data. For [authorizing a payment after using 3D Secure 2 + * Authentication-only](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only/#authorise-the-payment-with-adyen): + * If you received `resultCode`: **AuthenticationNotRequired** in the + * `/payments` response, use the `threeDSPaymentData` from the same response. + * If you received `resultCode`: **AuthenticationFinished** in the `/payments` + * response, use the `action.paymentData` from the same response. * - * @param paymentData Encoded payment data. For [authorizing a payment after using 3D Secure 2 Authentication-only](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only/#authorise-the-payment-with-adyen): If you received `resultCode`: **AuthenticationNotRequired** in the `/payments` response, use the `threeDSPaymentData` from the same response. If you received `resultCode`: **AuthenticationFinished** in the `/payments` response, use the `action.paymentData` from the same response. + * @param paymentData Encoded payment data. For [authorizing a payment after using 3D Secure 2 + * Authentication-only](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only/#authorise-the-payment-with-adyen): + * If you received `resultCode`: **AuthenticationNotRequired** in the + * `/payments` response, use the `threeDSPaymentData` from the same + * response. If you received `resultCode`: **AuthenticationFinished** in the + * `/payments` response, use the `action.paymentData` from the same + * response. */ @JsonProperty(JSON_PROPERTY_PAYMENT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,26 +176,35 @@ public void setPaymentData(String paymentData) { } /** - * Change the `authenticationOnly` indicator originally set in the `/payments` request. Only needs to be set if you want to modify the value set previously. + * Change the `authenticationOnly` indicator originally set in the `/payments` + * request. Only needs to be set if you want to modify the value set previously. * - * @param threeDSAuthenticationOnly Change the `authenticationOnly` indicator originally set in the `/payments` request. Only needs to be set if you want to modify the value set previously. + * @param threeDSAuthenticationOnly Change the `authenticationOnly` indicator originally + * set in the `/payments` request. Only needs to be set if you want to modify the + * value set previously. * @return the current {@code PaymentDetailsRequest} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v69 - * Use `authenticationData.authenticationOnly` instead. + * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` + * instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use + // `authenticationData.authenticationOnly` instead. public PaymentDetailsRequest threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { this.threeDSAuthenticationOnly = threeDSAuthenticationOnly; return this; } /** - * Change the `authenticationOnly` indicator originally set in the `/payments` request. Only needs to be set if you want to modify the value set previously. - * @return threeDSAuthenticationOnly Change the `authenticationOnly` indicator originally set in the `/payments` request. Only needs to be set if you want to modify the value set previously. - * @deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. + * Change the `authenticationOnly` indicator originally set in the `/payments` + * request. Only needs to be set if you want to modify the value set previously. + * + * @return threeDSAuthenticationOnly Change the `authenticationOnly` indicator + * originally set in the `/payments` request. Only needs to be set if you want to + * modify the value set previously. + * @deprecated // deprecated since Adyen Checkout API v69: Use + * `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use + // `authenticationData.authenticationOnly` instead. @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getThreeDSAuthenticationOnly() { @@ -177,23 +212,24 @@ public Boolean getThreeDSAuthenticationOnly() { } /** - * Change the `authenticationOnly` indicator originally set in the `/payments` request. Only needs to be set if you want to modify the value set previously. - * - * @param threeDSAuthenticationOnly Change the `authenticationOnly` indicator originally set in the `/payments` request. Only needs to be set if you want to modify the value set previously. + * Change the `authenticationOnly` indicator originally set in the `/payments` + * request. Only needs to be set if you want to modify the value set previously. * - * @deprecated since Adyen Checkout API v69 - * Use `authenticationData.authenticationOnly` instead. + * @param threeDSAuthenticationOnly Change the `authenticationOnly` indicator originally + * set in the `/payments` request. Only needs to be set if you want to modify the + * value set previously. + * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` + * instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use + // `authenticationData.authenticationOnly` instead. @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { this.threeDSAuthenticationOnly = threeDSAuthenticationOnly; } - /** - * Return true if this PaymentDetailsRequest object is equal to o. - */ + /** Return true if this PaymentDetailsRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -203,10 +239,11 @@ public boolean equals(Object o) { return false; } PaymentDetailsRequest paymentDetailsRequest = (PaymentDetailsRequest) o; - return Objects.equals(this.authenticationData, paymentDetailsRequest.authenticationData) && - Objects.equals(this.details, paymentDetailsRequest.details) && - Objects.equals(this.paymentData, paymentDetailsRequest.paymentData) && - Objects.equals(this.threeDSAuthenticationOnly, paymentDetailsRequest.threeDSAuthenticationOnly); + return Objects.equals(this.authenticationData, paymentDetailsRequest.authenticationData) + && Objects.equals(this.details, paymentDetailsRequest.details) + && Objects.equals(this.paymentData, paymentDetailsRequest.paymentData) + && Objects.equals( + this.threeDSAuthenticationOnly, paymentDetailsRequest.threeDSAuthenticationOnly); } @Override @@ -221,14 +258,15 @@ public String toString() { sb.append(" authenticationData: ").append(toIndentedString(authenticationData)).append("\n"); sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append(" paymentData: ").append(toIndentedString(paymentData)).append("\n"); - sb.append(" threeDSAuthenticationOnly: ").append(toIndentedString(threeDSAuthenticationOnly)).append("\n"); + sb.append(" threeDSAuthenticationOnly: ") + .append(toIndentedString(threeDSAuthenticationOnly)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -237,21 +275,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentDetailsRequest given an JSON string * * @param jsonString JSON string * @return An instance of PaymentDetailsRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentDetailsRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentDetailsRequest */ public static PaymentDetailsRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentDetailsRequest.class); } -/** - * Convert an instance of PaymentDetailsRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentDetailsRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentDetailsResponse.java b/src/main/java/com/adyen/model/checkout/PaymentDetailsResponse.java index b916856f8..9e1bffc57 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentDetailsResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentDetailsResponse.java @@ -2,40 +2,28 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Amount; -import com.adyen.model.checkout.CheckoutOrderResponse; -import com.adyen.model.checkout.FraudResult; -import com.adyen.model.checkout.PaymentDetailsResponseAction; -import com.adyen.model.checkout.ResponsePaymentMethod; -import com.adyen.model.checkout.ThreeDS2ResponseData; -import com.adyen.model.checkout.ThreeDS2Result; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * PaymentDetailsResponse - */ +/** PaymentDetailsResponse */ @JsonPropertyOrder({ PaymentDetailsResponse.JSON_PROPERTY_ACTION, PaymentDetailsResponse.JSON_PROPERTY_ADDITIONAL_DATA, @@ -54,7 +42,6 @@ PaymentDetailsResponse.JSON_PROPERTY_THREE_D_S2_RESULT, PaymentDetailsResponse.JSON_PROPERTY_THREE_D_S_PAYMENT_DATA }) - public class PaymentDetailsResponse { public static final String JSON_PROPERTY_ACTION = "action"; private PaymentDetailsResponseAction action; @@ -90,10 +77,35 @@ public class PaymentDetailsResponse { private String refusalReasonCode; /** - * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + * The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. + * Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – + * The transaction does not require 3D Secure authentication. Returned for [standalone + * authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * * **Authorised** – The payment was successfully authorised. This state serves as an indicator + * to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – + * Indicates the payment has been cancelled (either by the shopper or the merchant) before + * processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires + * further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 + * transactions. * **Error** – There was an error when the payment was being processed. The reason + * is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – + * The issuer requires the shopper's device fingerprint before the payment can be + * authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment + * has been authorised for a partial amount. This happens for card payments when the merchant + * supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – + * Indicates that it is not possible to obtain the final status of the payment. This can happen if + * the systems providing final status information for the payment are unavailable, or if the + * shopper needs to take further action to complete the payment. * **PresentToShopper** – + * Indicates that the response contains additional information that you need to present to a + * shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment + * has successfully been received by Adyen, and will be processed. This is the initial state for + * all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external + * web page or app to complete the authorisation. * **Refused** – Indicates the payment was + * refused. The reason is given in the `refusalReason` field. This is a final state. */ public enum ResultCodeEnum { - AUTHENTICATIONFINISHED(String.valueOf("AuthenticationFinished")), AUTHENTICATIONNOTREQUIRED(String.valueOf("AuthenticationNotRequired")), @@ -127,7 +139,7 @@ public enum ResultCodeEnum { private String value; ResultCodeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -148,7 +160,11 @@ public static ResultCodeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ResultCodeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResultCodeEnum.values())); + LOG.warning( + "ResultCodeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ResultCodeEnum.values())); return null; } } @@ -168,13 +184,12 @@ public static ResultCodeEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_PAYMENT_DATA = "threeDSPaymentData"; private String threeDSPaymentData; - public PaymentDetailsResponse() { - } + public PaymentDetailsResponse() {} /** * action * - * @param action + * @param action * @return the current {@code PaymentDetailsResponse} instance, allowing for method chaining */ public PaymentDetailsResponse action(PaymentDetailsResponseAction action) { @@ -184,7 +199,8 @@ public PaymentDetailsResponse action(PaymentDetailsResponseAction action) { /** * Get action - * @return action + * + * @return action */ @JsonProperty(JSON_PROPERTY_ACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,7 +211,7 @@ public PaymentDetailsResponseAction getAction() { /** * action * - * @param action + * @param action */ @JsonProperty(JSON_PROPERTY_ACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,9 +220,12 @@ public void setAction(PaymentDetailsResponseAction action) { } /** - * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first: Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first: Go to **Customer Area** > **Developers** > + * **Additional data**. * @return the current {@code PaymentDetailsResponse} instance, allowing for method chaining */ public PaymentDetailsResponse additionalData(Map additionalData) { @@ -223,8 +242,12 @@ public PaymentDetailsResponse putAdditionalDataItem(String key, String additiona } /** - * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. - * @return additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * + * @return additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first: Go to **Customer Area** > **Developers** > + * **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -233,9 +256,12 @@ public Map getAdditionalData() { } /** - * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first: Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first: Go to **Customer Area** > **Developers** > + * **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -246,7 +272,7 @@ public void setAdditionalData(Map additionalData) { /** * amount * - * @param amount + * @param amount * @return the current {@code PaymentDetailsResponse} instance, allowing for method chaining */ public PaymentDetailsResponse amount(Amount amount) { @@ -256,7 +282,8 @@ public PaymentDetailsResponse amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -267,7 +294,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -288,6 +315,7 @@ public PaymentDetailsResponse donationToken(String donationToken) { /** * Donation Token containing payment details for Adyen Giving. + * * @return donationToken Donation Token containing payment details for Adyen Giving. */ @JsonProperty(JSON_PROPERTY_DONATION_TOKEN) @@ -310,7 +338,7 @@ public void setDonationToken(String donationToken) { /** * fraudResult * - * @param fraudResult + * @param fraudResult * @return the current {@code PaymentDetailsResponse} instance, allowing for method chaining */ public PaymentDetailsResponse fraudResult(FraudResult fraudResult) { @@ -320,7 +348,8 @@ public PaymentDetailsResponse fraudResult(FraudResult fraudResult) { /** * Get fraudResult - * @return fraudResult + * + * @return fraudResult */ @JsonProperty(JSON_PROPERTY_FRAUD_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -331,7 +360,7 @@ public FraudResult getFraudResult() { /** * fraudResult * - * @param fraudResult + * @param fraudResult */ @JsonProperty(JSON_PROPERTY_FRAUD_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -352,6 +381,7 @@ public PaymentDetailsResponse merchantReference(String merchantReference) { /** * The reference used during the /payments request. + * * @return merchantReference The reference used during the /payments request. */ @JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCE) @@ -374,7 +404,7 @@ public void setMerchantReference(String merchantReference) { /** * order * - * @param order + * @param order * @return the current {@code PaymentDetailsResponse} instance, allowing for method chaining */ public PaymentDetailsResponse order(CheckoutOrderResponse order) { @@ -384,7 +414,8 @@ public PaymentDetailsResponse order(CheckoutOrderResponse order) { /** * Get order - * @return order + * + * @return order */ @JsonProperty(JSON_PROPERTY_ORDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -395,7 +426,7 @@ public CheckoutOrderResponse getOrder() { /** * order * - * @param order + * @param order */ @JsonProperty(JSON_PROPERTY_ORDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -406,7 +437,7 @@ public void setOrder(CheckoutOrderResponse order) { /** * paymentMethod * - * @param paymentMethod + * @param paymentMethod * @return the current {@code PaymentDetailsResponse} instance, allowing for method chaining */ public PaymentDetailsResponse paymentMethod(ResponsePaymentMethod paymentMethod) { @@ -416,7 +447,8 @@ public PaymentDetailsResponse paymentMethod(ResponsePaymentMethod paymentMethod) /** * Get paymentMethod - * @return paymentMethod + * + * @return paymentMethod */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -427,7 +459,7 @@ public ResponsePaymentMethod getPaymentMethod() { /** * paymentMethod * - * @param paymentMethod + * @param paymentMethod */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -436,9 +468,12 @@ public void setPaymentMethod(ResponsePaymentMethod paymentMethod) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value + * is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @param pspReference Adyen's 16-character string reference associated with the + * transaction/request. This value is globally unique; quote it when communicating with us + * about this request. * @return the current {@code PaymentDetailsResponse} instance, allowing for method chaining */ public PaymentDetailsResponse pspReference(String pspReference) { @@ -447,8 +482,12 @@ public PaymentDetailsResponse pspReference(String pspReference) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. - * @return pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value + * is globally unique; quote it when communicating with us about this request. + * + * @return pspReference Adyen's 16-character string reference associated with the + * transaction/request. This value is globally unique; quote it when communicating with us + * about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -457,9 +496,12 @@ public String getPspReference() { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value + * is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @param pspReference Adyen's 16-character string reference associated with the + * transaction/request. This value is globally unique; quote it when communicating with us + * about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -468,9 +510,17 @@ public void setPspReference(String pspReference) { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this + * field holds Adyen's mapped reason for the refusal or a description of the error. When a + * transaction fails, the authorisation response includes `resultCode` and + * `refusalReason` values. For more information, see [Refusal + * reasons](https://docs.adyen.com/development-resources/refusal-reasons). * - * @param refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @param refusalReason If the payment's authorisation is refused or an error occurs during + * authorisation, this field holds Adyen's mapped reason for the refusal or a description + * of the error. When a transaction fails, the authorisation response includes + * `resultCode` and `refusalReason` values. For more information, see + * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). * @return the current {@code PaymentDetailsResponse} instance, allowing for method chaining */ public PaymentDetailsResponse refusalReason(String refusalReason) { @@ -479,8 +529,17 @@ public PaymentDetailsResponse refusalReason(String refusalReason) { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). - * @return refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this + * field holds Adyen's mapped reason for the refusal or a description of the error. When a + * transaction fails, the authorisation response includes `resultCode` and + * `refusalReason` values. For more information, see [Refusal + * reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * + * @return refusalReason If the payment's authorisation is refused or an error occurs during + * authorisation, this field holds Adyen's mapped reason for the refusal or a description + * of the error. When a transaction fails, the authorisation response includes + * `resultCode` and `refusalReason` values. For more information, see + * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -489,9 +548,17 @@ public String getRefusalReason() { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this + * field holds Adyen's mapped reason for the refusal or a description of the error. When a + * transaction fails, the authorisation response includes `resultCode` and + * `refusalReason` values. For more information, see [Refusal + * reasons](https://docs.adyen.com/development-resources/refusal-reasons). * - * @param refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @param refusalReason If the payment's authorisation is refused or an error occurs during + * authorisation, this field holds Adyen's mapped reason for the refusal or a description + * of the error. When a transaction fails, the authorisation response includes + * `resultCode` and `refusalReason` values. For more information, see + * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -500,9 +567,12 @@ public void setRefusalReason(String refusalReason) { } /** - * Code that specifies the refusal reason. For more information, see [Authorisation refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * Code that specifies the refusal reason. For more information, see [Authorisation refusal + * reasons](https://docs.adyen.com/development-resources/refusal-reasons). * - * @param refusalReasonCode Code that specifies the refusal reason. For more information, see [Authorisation refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @param refusalReasonCode Code that specifies the refusal reason. For more information, see + * [Authorisation refusal + * reasons](https://docs.adyen.com/development-resources/refusal-reasons). * @return the current {@code PaymentDetailsResponse} instance, allowing for method chaining */ public PaymentDetailsResponse refusalReasonCode(String refusalReasonCode) { @@ -511,8 +581,12 @@ public PaymentDetailsResponse refusalReasonCode(String refusalReasonCode) { } /** - * Code that specifies the refusal reason. For more information, see [Authorisation refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). - * @return refusalReasonCode Code that specifies the refusal reason. For more information, see [Authorisation refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * Code that specifies the refusal reason. For more information, see [Authorisation refusal + * reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * + * @return refusalReasonCode Code that specifies the refusal reason. For more information, see + * [Authorisation refusal + * reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -521,9 +595,12 @@ public String getRefusalReasonCode() { } /** - * Code that specifies the refusal reason. For more information, see [Authorisation refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * Code that specifies the refusal reason. For more information, see [Authorisation refusal + * reasons](https://docs.adyen.com/development-resources/refusal-reasons). * - * @param refusalReasonCode Code that specifies the refusal reason. For more information, see [Authorisation refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @param refusalReasonCode Code that specifies the refusal reason. For more information, see + * [Authorisation refusal + * reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -532,9 +609,62 @@ public void setRefusalReasonCode(String refusalReasonCode) { } /** - * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + * The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. + * Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – + * The transaction does not require 3D Secure authentication. Returned for [standalone + * authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * * **Authorised** – The payment was successfully authorised. This state serves as an indicator + * to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – + * Indicates the payment has been cancelled (either by the shopper or the merchant) before + * processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires + * further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 + * transactions. * **Error** – There was an error when the payment was being processed. The reason + * is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – + * The issuer requires the shopper's device fingerprint before the payment can be + * authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment + * has been authorised for a partial amount. This happens for card payments when the merchant + * supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – + * Indicates that it is not possible to obtain the final status of the payment. This can happen if + * the systems providing final status information for the payment are unavailable, or if the + * shopper needs to take further action to complete the payment. * **PresentToShopper** – + * Indicates that the response contains additional information that you need to present to a + * shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment + * has successfully been received by Adyen, and will be processed. This is the initial state for + * all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external + * web page or app to complete the authorisation. * **Refused** – Indicates the payment was + * refused. The reason is given in the `refusalReason` field. This is a final state. * - * @param resultCode The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + * @param resultCode The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure + * 2. Returned for 3D Secure 2 authentication-only transactions. * + * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. + * Returned for [standalone authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * * **Authorised** – The payment was successfully authorised. This state serves as an + * indicator to proceed with the delivery of goods and services. This is a final state. * + * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the + * merchant) before processing was completed. This is a final state. * **ChallengeShopper** – + * The issuer requires further shopper interaction before the payment can be authenticated. + * Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment + * was being processed. The reason is given in the `refusalReason` field. This is a + * final state. * **IdentifyShopper** – The issuer requires the shopper's device + * fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. + * * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This + * happens for card payments when the merchant supports Partial Authorisations and the + * cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to + * obtain the final status of the payment. This can happen if the systems providing final + * status information for the payment are unavailable, or if the shopper needs to take further + * action to complete the payment. * **PresentToShopper** – Indicates that the response + * contains additional information that you need to present to a shopper, so that they can use + * it to complete a payment. * **Received** – Indicates the payment has successfully been + * received by Adyen, and will be processed. This is the initial state for all payments. * + * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or + * app to complete the authorisation. * **Refused** – Indicates the payment was refused. The + * reason is given in the `refusalReason` field. This is a final state. * @return the current {@code PaymentDetailsResponse} instance, allowing for method chaining */ public PaymentDetailsResponse resultCode(ResultCodeEnum resultCode) { @@ -543,8 +673,62 @@ public PaymentDetailsResponse resultCode(ResultCodeEnum resultCode) { } /** - * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. - * @return resultCode The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + * The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. + * Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – + * The transaction does not require 3D Secure authentication. Returned for [standalone + * authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * * **Authorised** – The payment was successfully authorised. This state serves as an indicator + * to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – + * Indicates the payment has been cancelled (either by the shopper or the merchant) before + * processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires + * further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 + * transactions. * **Error** – There was an error when the payment was being processed. The reason + * is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – + * The issuer requires the shopper's device fingerprint before the payment can be + * authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment + * has been authorised for a partial amount. This happens for card payments when the merchant + * supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – + * Indicates that it is not possible to obtain the final status of the payment. This can happen if + * the systems providing final status information for the payment are unavailable, or if the + * shopper needs to take further action to complete the payment. * **PresentToShopper** – + * Indicates that the response contains additional information that you need to present to a + * shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment + * has successfully been received by Adyen, and will be processed. This is the initial state for + * all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external + * web page or app to complete the authorisation. * **Refused** – Indicates the payment was + * refused. The reason is given in the `refusalReason` field. This is a final state. + * + * @return resultCode The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure + * 2. Returned for 3D Secure 2 authentication-only transactions. * + * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. + * Returned for [standalone authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * * **Authorised** – The payment was successfully authorised. This state serves as an + * indicator to proceed with the delivery of goods and services. This is a final state. * + * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the + * merchant) before processing was completed. This is a final state. * **ChallengeShopper** – + * The issuer requires further shopper interaction before the payment can be authenticated. + * Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment + * was being processed. The reason is given in the `refusalReason` field. This is a + * final state. * **IdentifyShopper** – The issuer requires the shopper's device + * fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. + * * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This + * happens for card payments when the merchant supports Partial Authorisations and the + * cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to + * obtain the final status of the payment. This can happen if the systems providing final + * status information for the payment are unavailable, or if the shopper needs to take further + * action to complete the payment. * **PresentToShopper** – Indicates that the response + * contains additional information that you need to present to a shopper, so that they can use + * it to complete a payment. * **Received** – Indicates the payment has successfully been + * received by Adyen, and will be processed. This is the initial state for all payments. * + * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or + * app to complete the authorisation. * **Refused** – Indicates the payment was refused. The + * reason is given in the `refusalReason` field. This is a final state. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -553,9 +737,62 @@ public ResultCodeEnum getResultCode() { } /** - * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + * The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. + * Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – + * The transaction does not require 3D Secure authentication. Returned for [standalone + * authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * * **Authorised** – The payment was successfully authorised. This state serves as an indicator + * to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – + * Indicates the payment has been cancelled (either by the shopper or the merchant) before + * processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires + * further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 + * transactions. * **Error** – There was an error when the payment was being processed. The reason + * is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – + * The issuer requires the shopper's device fingerprint before the payment can be + * authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment + * has been authorised for a partial amount. This happens for card payments when the merchant + * supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – + * Indicates that it is not possible to obtain the final status of the payment. This can happen if + * the systems providing final status information for the payment are unavailable, or if the + * shopper needs to take further action to complete the payment. * **PresentToShopper** – + * Indicates that the response contains additional information that you need to present to a + * shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment + * has successfully been received by Adyen, and will be processed. This is the initial state for + * all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external + * web page or app to complete the authorisation. * **Refused** – Indicates the payment was + * refused. The reason is given in the `refusalReason` field. This is a final state. * - * @param resultCode The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + * @param resultCode The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure + * 2. Returned for 3D Secure 2 authentication-only transactions. * + * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. + * Returned for [standalone authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * * **Authorised** – The payment was successfully authorised. This state serves as an + * indicator to proceed with the delivery of goods and services. This is a final state. * + * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the + * merchant) before processing was completed. This is a final state. * **ChallengeShopper** – + * The issuer requires further shopper interaction before the payment can be authenticated. + * Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment + * was being processed. The reason is given in the `refusalReason` field. This is a + * final state. * **IdentifyShopper** – The issuer requires the shopper's device + * fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. + * * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This + * happens for card payments when the merchant supports Partial Authorisations and the + * cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to + * obtain the final status of the payment. This can happen if the systems providing final + * status information for the payment are unavailable, or if the shopper needs to take further + * action to complete the payment. * **PresentToShopper** – Indicates that the response + * contains additional information that you need to present to a shopper, so that they can use + * it to complete a payment. * **Received** – Indicates the payment has successfully been + * received by Adyen, and will be processed. This is the initial state for all payments. * + * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or + * app to complete the authorisation. * **Refused** – Indicates the payment was refused. The + * reason is given in the `refusalReason` field. This is a final state. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -576,6 +813,7 @@ public PaymentDetailsResponse shopperLocale(String shopperLocale) { /** * The shopperLocale. + * * @return shopperLocale The shopperLocale. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @@ -598,7 +836,7 @@ public void setShopperLocale(String shopperLocale) { /** * threeDS2ResponseData * - * @param threeDS2ResponseData + * @param threeDS2ResponseData * @return the current {@code PaymentDetailsResponse} instance, allowing for method chaining */ public PaymentDetailsResponse threeDS2ResponseData(ThreeDS2ResponseData threeDS2ResponseData) { @@ -608,7 +846,8 @@ public PaymentDetailsResponse threeDS2ResponseData(ThreeDS2ResponseData threeDS2 /** * Get threeDS2ResponseData - * @return threeDS2ResponseData + * + * @return threeDS2ResponseData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_RESPONSE_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -619,7 +858,7 @@ public ThreeDS2ResponseData getThreeDS2ResponseData() { /** * threeDS2ResponseData * - * @param threeDS2ResponseData + * @param threeDS2ResponseData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_RESPONSE_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -630,7 +869,7 @@ public void setThreeDS2ResponseData(ThreeDS2ResponseData threeDS2ResponseData) { /** * threeDS2Result * - * @param threeDS2Result + * @param threeDS2Result * @return the current {@code PaymentDetailsResponse} instance, allowing for method chaining */ public PaymentDetailsResponse threeDS2Result(ThreeDS2Result threeDS2Result) { @@ -640,7 +879,8 @@ public PaymentDetailsResponse threeDS2Result(ThreeDS2Result threeDS2Result) { /** * Get threeDS2Result - * @return threeDS2Result + * + * @return threeDS2Result */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -651,7 +891,7 @@ public ThreeDS2Result getThreeDS2Result() { /** * threeDS2Result * - * @param threeDS2Result + * @param threeDS2Result */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -660,9 +900,11 @@ public void setThreeDS2Result(ThreeDS2Result threeDS2Result) { } /** - * When non-empty, contains a value that you must submit to the `/payments/details` endpoint as `paymentData`. + * When non-empty, contains a value that you must submit to the `/payments/details` + * endpoint as `paymentData`. * - * @param threeDSPaymentData When non-empty, contains a value that you must submit to the `/payments/details` endpoint as `paymentData`. + * @param threeDSPaymentData When non-empty, contains a value that you must submit to the + * `/payments/details` endpoint as `paymentData`. * @return the current {@code PaymentDetailsResponse} instance, allowing for method chaining */ public PaymentDetailsResponse threeDSPaymentData(String threeDSPaymentData) { @@ -671,8 +913,11 @@ public PaymentDetailsResponse threeDSPaymentData(String threeDSPaymentData) { } /** - * When non-empty, contains a value that you must submit to the `/payments/details` endpoint as `paymentData`. - * @return threeDSPaymentData When non-empty, contains a value that you must submit to the `/payments/details` endpoint as `paymentData`. + * When non-empty, contains a value that you must submit to the `/payments/details` + * endpoint as `paymentData`. + * + * @return threeDSPaymentData When non-empty, contains a value that you must submit to the + * `/payments/details` endpoint as `paymentData`. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_PAYMENT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -681,9 +926,11 @@ public String getThreeDSPaymentData() { } /** - * When non-empty, contains a value that you must submit to the `/payments/details` endpoint as `paymentData`. + * When non-empty, contains a value that you must submit to the `/payments/details` + * endpoint as `paymentData`. * - * @param threeDSPaymentData When non-empty, contains a value that you must submit to the `/payments/details` endpoint as `paymentData`. + * @param threeDSPaymentData When non-empty, contains a value that you must submit to the + * `/payments/details` endpoint as `paymentData`. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_PAYMENT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -691,9 +938,7 @@ public void setThreeDSPaymentData(String threeDSPaymentData) { this.threeDSPaymentData = threeDSPaymentData; } - /** - * Return true if this PaymentDetailsResponse object is equal to o. - */ + /** Return true if this PaymentDetailsResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -703,27 +948,43 @@ public boolean equals(Object o) { return false; } PaymentDetailsResponse paymentDetailsResponse = (PaymentDetailsResponse) o; - return Objects.equals(this.action, paymentDetailsResponse.action) && - Objects.equals(this.additionalData, paymentDetailsResponse.additionalData) && - Objects.equals(this.amount, paymentDetailsResponse.amount) && - Objects.equals(this.donationToken, paymentDetailsResponse.donationToken) && - Objects.equals(this.fraudResult, paymentDetailsResponse.fraudResult) && - Objects.equals(this.merchantReference, paymentDetailsResponse.merchantReference) && - Objects.equals(this.order, paymentDetailsResponse.order) && - Objects.equals(this.paymentMethod, paymentDetailsResponse.paymentMethod) && - Objects.equals(this.pspReference, paymentDetailsResponse.pspReference) && - Objects.equals(this.refusalReason, paymentDetailsResponse.refusalReason) && - Objects.equals(this.refusalReasonCode, paymentDetailsResponse.refusalReasonCode) && - Objects.equals(this.resultCode, paymentDetailsResponse.resultCode) && - Objects.equals(this.shopperLocale, paymentDetailsResponse.shopperLocale) && - Objects.equals(this.threeDS2ResponseData, paymentDetailsResponse.threeDS2ResponseData) && - Objects.equals(this.threeDS2Result, paymentDetailsResponse.threeDS2Result) && - Objects.equals(this.threeDSPaymentData, paymentDetailsResponse.threeDSPaymentData); + return Objects.equals(this.action, paymentDetailsResponse.action) + && Objects.equals(this.additionalData, paymentDetailsResponse.additionalData) + && Objects.equals(this.amount, paymentDetailsResponse.amount) + && Objects.equals(this.donationToken, paymentDetailsResponse.donationToken) + && Objects.equals(this.fraudResult, paymentDetailsResponse.fraudResult) + && Objects.equals(this.merchantReference, paymentDetailsResponse.merchantReference) + && Objects.equals(this.order, paymentDetailsResponse.order) + && Objects.equals(this.paymentMethod, paymentDetailsResponse.paymentMethod) + && Objects.equals(this.pspReference, paymentDetailsResponse.pspReference) + && Objects.equals(this.refusalReason, paymentDetailsResponse.refusalReason) + && Objects.equals(this.refusalReasonCode, paymentDetailsResponse.refusalReasonCode) + && Objects.equals(this.resultCode, paymentDetailsResponse.resultCode) + && Objects.equals(this.shopperLocale, paymentDetailsResponse.shopperLocale) + && Objects.equals(this.threeDS2ResponseData, paymentDetailsResponse.threeDS2ResponseData) + && Objects.equals(this.threeDS2Result, paymentDetailsResponse.threeDS2Result) + && Objects.equals(this.threeDSPaymentData, paymentDetailsResponse.threeDSPaymentData); } @Override public int hashCode() { - return Objects.hash(action, additionalData, amount, donationToken, fraudResult, merchantReference, order, paymentMethod, pspReference, refusalReason, refusalReasonCode, resultCode, shopperLocale, threeDS2ResponseData, threeDS2Result, threeDSPaymentData); + return Objects.hash( + action, + additionalData, + amount, + donationToken, + fraudResult, + merchantReference, + order, + paymentMethod, + pspReference, + refusalReason, + refusalReasonCode, + resultCode, + shopperLocale, + threeDS2ResponseData, + threeDS2Result, + threeDSPaymentData); } @Override @@ -743,7 +1004,9 @@ public String toString() { sb.append(" refusalReasonCode: ").append(toIndentedString(refusalReasonCode)).append("\n"); sb.append(" resultCode: ").append(toIndentedString(resultCode)).append("\n"); sb.append(" shopperLocale: ").append(toIndentedString(shopperLocale)).append("\n"); - sb.append(" threeDS2ResponseData: ").append(toIndentedString(threeDS2ResponseData)).append("\n"); + sb.append(" threeDS2ResponseData: ") + .append(toIndentedString(threeDS2ResponseData)) + .append("\n"); sb.append(" threeDS2Result: ").append(toIndentedString(threeDS2Result)).append("\n"); sb.append(" threeDSPaymentData: ").append(toIndentedString(threeDSPaymentData)).append("\n"); sb.append("}"); @@ -751,8 +1014,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -761,21 +1023,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentDetailsResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaymentDetailsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentDetailsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentDetailsResponse */ public static PaymentDetailsResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentDetailsResponse.class); } -/** - * Convert an instance of PaymentDetailsResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentDetailsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentDetailsResponseAction.java b/src/main/java/com/adyen/model/checkout/PaymentDetailsResponseAction.java index 2c17642bb..2ee936ea4 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentDetailsResponseAction.java +++ b/src/main/java/com/adyen/model/checkout/PaymentDetailsResponseAction.java @@ -2,44 +2,19 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.CheckoutThreeDS2Action; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -import com.fasterxml.jackson.core.type.TypeReference; - -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.core.Response; -import java.io.IOException; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; - import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -49,167 +24,181 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import jakarta.ws.rs.core.GenericType; +import java.io.IOException; +import java.util.*; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.logging.Level; +import java.util.logging.Logger; - -@JsonDeserialize(using = PaymentDetailsResponseAction.PaymentDetailsResponseActionDeserializer.class) +@JsonDeserialize( + using = PaymentDetailsResponseAction.PaymentDetailsResponseActionDeserializer.class) @JsonSerialize(using = PaymentDetailsResponseAction.PaymentDetailsResponseActionSerializer.class) public class PaymentDetailsResponseAction extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(PaymentDetailsResponseAction.class.getName()); + private static final Logger log = Logger.getLogger(PaymentDetailsResponseAction.class.getName()); - public static class PaymentDetailsResponseActionSerializer extends StdSerializer { - public PaymentDetailsResponseActionSerializer(Class t) { - super(t); - } - - public PaymentDetailsResponseActionSerializer() { - this(null); - } - - @Override - public void serialize(PaymentDetailsResponseAction value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class PaymentDetailsResponseActionDeserializer extends StdDeserializer { - public PaymentDetailsResponseActionDeserializer() { - this(PaymentDetailsResponseAction.class); - } - - public PaymentDetailsResponseActionDeserializer(Class vc) { - super(vc); - } - - @Override - public PaymentDetailsResponseAction deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize CheckoutThreeDS2Action - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(CheckoutThreeDS2Action.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutThreeDS2Action.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CheckoutThreeDS2Action'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CheckoutThreeDS2Action'", e); - } - - if (match == 1) { - PaymentDetailsResponseAction ret = new PaymentDetailsResponseAction(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException(String.format("Failed deserialization for PaymentDetailsResponseAction: %d classes match result, expected 1", match)); - } - - /** - * Handle deserialization of the 'null' value. - */ - @Override - public PaymentDetailsResponseAction getNullValue(DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "PaymentDetailsResponseAction cannot be null"); - } + public static class PaymentDetailsResponseActionSerializer + extends StdSerializer { + public PaymentDetailsResponseActionSerializer(Class t) { + super(t); } - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public PaymentDetailsResponseAction() { - super("oneOf", Boolean.FALSE); + public PaymentDetailsResponseActionSerializer() { + this(null); } - public PaymentDetailsResponseAction(CheckoutThreeDS2Action o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + @Override + public void serialize( + PaymentDetailsResponseAction value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); } + } - static { - schemas.put("CheckoutThreeDS2Action", new GenericType() { - }); - JSON.registerDescendants(PaymentDetailsResponseAction.class, Collections.unmodifiableMap(schemas)); + public static class PaymentDetailsResponseActionDeserializer + extends StdDeserializer { + public PaymentDetailsResponseActionDeserializer() { + this(PaymentDetailsResponseAction.class); } - @Override - public Map> getSchemas() { - return PaymentDetailsResponseAction.schemas; + public PaymentDetailsResponseActionDeserializer(Class vc) { + super(vc); } - /** - * Set the instance that matches the oneOf child schema, check - * the instance parameter is valid against the oneOf child schemas: - * CheckoutThreeDS2Action - * - * It could be an instance of the 'oneOf' schemas. - * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). - */ @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(CheckoutThreeDS2Action.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + public PaymentDetailsResponseAction deserialize(JsonParser jp, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize CheckoutThreeDS2Action + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(CheckoutThreeDS2Action.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutThreeDS2Action.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CheckoutThreeDS2Action'"); + } } - - throw new RuntimeException("Invalid instance type. Must be CheckoutThreeDS2Action"); + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CheckoutThreeDS2Action'", e); + } + + if (match == 1) { + PaymentDetailsResponseAction ret = new PaymentDetailsResponseAction(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException( + String.format( + "Failed deserialization for PaymentDetailsResponseAction: %d classes match result, expected 1", + match)); } - /** - * Get the actual instance, which can be the following: - * CheckoutThreeDS2Action - * - * @return The actual instance (CheckoutThreeDS2Action) - */ + /** Handle deserialization of the 'null' value. */ @Override - public Object getActualInstance() { - return super.getActualInstance(); + public PaymentDetailsResponseAction getNullValue(DeserializationContext ctxt) + throws JsonMappingException { + throw new JsonMappingException( + ctxt.getParser(), "PaymentDetailsResponseAction cannot be null"); } - - /** - * Get the actual instance of `CheckoutThreeDS2Action`. If the actual instance is not `CheckoutThreeDS2Action`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CheckoutThreeDS2Action` - * @throws ClassCastException if the instance is not `CheckoutThreeDS2Action` - */ - public CheckoutThreeDS2Action getCheckoutThreeDS2Action() throws ClassCastException { - return (CheckoutThreeDS2Action)super.getActualInstance(); - } - - - /** - * Create an instance of PaymentDetailsResponseAction given an JSON string - * - * @param jsonString JSON string - * @return An instance of PaymentDetailsResponseAction - * @throws IOException if the JSON string is invalid with respect to PaymentDetailsResponseAction - */ - public static PaymentDetailsResponseAction fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, PaymentDetailsResponseAction.class); - } - - /** - * Convert an instance of PaymentDetailsResponseAction to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); + } + + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public PaymentDetailsResponseAction() { + super("oneOf", Boolean.FALSE); + } + + public PaymentDetailsResponseAction(CheckoutThreeDS2Action o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("CheckoutThreeDS2Action", new GenericType() {}); + JSON.registerDescendants( + PaymentDetailsResponseAction.class, Collections.unmodifiableMap(schemas)); + } + + @Override + public Map> getSchemas() { + return PaymentDetailsResponseAction.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check the instance parameter is valid + * against the oneOf child schemas: CheckoutThreeDS2Action + * + *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a + * composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(CheckoutThreeDS2Action.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } + throw new RuntimeException("Invalid instance type. Must be CheckoutThreeDS2Action"); + } + + /** + * Get the actual instance, which can be the following: CheckoutThreeDS2Action + * + * @return The actual instance (CheckoutThreeDS2Action) + */ + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `CheckoutThreeDS2Action`. If the actual instance is not + * `CheckoutThreeDS2Action`, the ClassCastException will be thrown. + * + * @return The actual instance of `CheckoutThreeDS2Action` + * @throws ClassCastException if the instance is not `CheckoutThreeDS2Action` + */ + public CheckoutThreeDS2Action getCheckoutThreeDS2Action() throws ClassCastException { + return (CheckoutThreeDS2Action) super.getActualInstance(); + } + + /** + * Create an instance of PaymentDetailsResponseAction given an JSON string + * + * @param jsonString JSON string + * @return An instance of PaymentDetailsResponseAction + * @throws IOException if the JSON string is invalid with respect to PaymentDetailsResponseAction + */ + public static PaymentDetailsResponseAction fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, PaymentDetailsResponseAction.class); + } + + /** + * Convert an instance of PaymentDetailsResponseAction to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentLinkRequest.java b/src/main/java/com/adyen/model/checkout/PaymentLinkRequest.java index f8f191337..5d035c14d 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentLinkRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentLinkRequest.java @@ -2,49 +2,32 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Address; -import com.adyen.model.checkout.Amount; -import com.adyen.model.checkout.ApplicationInfo; -import com.adyen.model.checkout.CheckoutSessionThreeDS2RequestData; -import com.adyen.model.checkout.FundOrigin; -import com.adyen.model.checkout.FundRecipient; -import com.adyen.model.checkout.InstallmentOption; -import com.adyen.model.checkout.LineItem; -import com.adyen.model.checkout.Name; -import com.adyen.model.checkout.PlatformChargebackLogic; -import com.adyen.model.checkout.RiskData; -import com.adyen.model.checkout.Split; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.time.OffsetDateTime; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * PaymentLinkRequest - */ +/** PaymentLinkRequest */ @JsonPropertyOrder({ PaymentLinkRequest.JSON_PROPERTY_ALLOWED_PAYMENT_METHODS, PaymentLinkRequest.JSON_PROPERTY_AMOUNT, @@ -89,7 +72,6 @@ PaymentLinkRequest.JSON_PROPERTY_THEME_ID, PaymentLinkRequest.JSON_PROPERTY_THREE_D_S2_REQUEST_DATA }) - public class PaymentLinkRequest { public static final String JSON_PROPERTY_ALLOWED_PAYMENT_METHODS = "allowedPaymentMethods"; private List allowedPaymentMethods; @@ -158,22 +140,30 @@ public class PaymentLinkRequest { private PlatformChargebackLogic platformChargebackLogic; /** - * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to + * **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a + * fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a + * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An + * unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. */ public enum RecurringProcessingModelEnum { - CARDONFILE(String.valueOf("CardOnFile")), SUBSCRIPTION(String.valueOf("Subscription")), UNSCHEDULEDCARDONFILE(String.valueOf("UnscheduledCardOnFile")); - private static final Logger LOG = Logger.getLogger(RecurringProcessingModelEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(RecurringProcessingModelEnum.class.getName()); private String value; RecurringProcessingModelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -194,7 +184,11 @@ public static RecurringProcessingModelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("RecurringProcessingModelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RecurringProcessingModelEnum.values())); + LOG.warning( + "RecurringProcessingModelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(RecurringProcessingModelEnum.values())); return null; } } @@ -205,11 +199,8 @@ public static RecurringProcessingModelEnum fromValue(String value) { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - /** - * Gets or Sets requiredShopperFields - */ + /** Gets or Sets requiredShopperFields */ public enum RequiredShopperFieldsEnum { - BILLINGADDRESS(String.valueOf("billingAddress")), DELIVERYADDRESS(String.valueOf("deliveryAddress")), @@ -225,7 +216,7 @@ public enum RequiredShopperFieldsEnum { private String value; RequiredShopperFieldsEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -246,7 +237,11 @@ public static RequiredShopperFieldsEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("RequiredShopperFieldsEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RequiredShopperFieldsEnum.values())); + LOG.warning( + "RequiredShopperFieldsEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(RequiredShopperFieldsEnum.values())); return null; } } @@ -278,7 +273,8 @@ public static RequiredShopperFieldsEnum fromValue(String value) { public static final String JSON_PROPERTY_SHOPPER_STATEMENT = "shopperStatement"; private String shopperStatement; - public static final String JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON = "showRemovePaymentMethodButton"; + public static final String JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON = + "showRemovePaymentMethodButton"; private Boolean showRemovePaymentMethodButton; public static final String JSON_PROPERTY_SOCIAL_SECURITY_NUMBER = "socialSecurityNumber"; @@ -294,10 +290,15 @@ public static RequiredShopperFieldsEnum fromValue(String value) { private String store; /** - * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. When set to **askForConsent** or **enabled**, you must also include the `recurringProcessingModel` parameter. + * Indicates if the details of the payment method will be stored for the shopper. Possible values: + * * **disabled** – No details will be stored (default). * **askForConsent** – If the + * `shopperReference` is provided, the UI lets the shopper choose if they want their + * payment details to be stored. * **enabled** – If the `shopperReference` is provided, + * the details will be stored without asking the shopper for consent. When set to + * **askForConsent** or **enabled**, you must also include the + * `recurringProcessingModel` parameter. */ public enum StorePaymentMethodModeEnum { - ASKFORCONSENT(String.valueOf("askForConsent")), DISABLED(String.valueOf("disabled")), @@ -309,7 +310,7 @@ public enum StorePaymentMethodModeEnum { private String value; StorePaymentMethodModeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -330,7 +331,11 @@ public static StorePaymentMethodModeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StorePaymentMethodModeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StorePaymentMethodModeEnum.values())); + LOG.warning( + "StorePaymentMethodModeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StorePaymentMethodModeEnum.values())); return null; } } @@ -347,13 +352,17 @@ public static StorePaymentMethodModeEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S2_REQUEST_DATA = "threeDS2RequestData"; private CheckoutSessionThreeDS2RequestData threeDS2RequestData; - public PaymentLinkRequest() { - } + public PaymentLinkRequest() {} /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their + * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer + * to payment methods, use their [payment method + * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest allowedPaymentMethods(List allowedPaymentMethods) { @@ -370,8 +379,14 @@ public PaymentLinkRequest addAllowedPaymentMethodsItem(String allowedPaymentMeth } /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` - * @return allowedPaymentMethods List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their + * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * + * @return allowedPaymentMethods List of payment methods to be presented to the shopper. To refer + * to payment methods, use their [payment method + * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -380,9 +395,14 @@ public List getAllowedPaymentMethods() { } /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their + * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer + * to payment methods, use their [payment method + * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -393,7 +413,7 @@ public void setAllowedPaymentMethods(List allowedPaymentMethods) { /** * amount * - * @param amount + * @param amount * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest amount(Amount amount) { @@ -403,7 +423,8 @@ public PaymentLinkRequest amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -414,7 +435,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -425,7 +446,7 @@ public void setAmount(Amount amount) { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest applicationInfo(ApplicationInfo applicationInfo) { @@ -435,7 +456,8 @@ public PaymentLinkRequest applicationInfo(ApplicationInfo applicationInfo) { /** * Get applicationInfo - * @return applicationInfo + * + * @return applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -446,7 +468,7 @@ public ApplicationInfo getApplicationInfo() { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -457,7 +479,7 @@ public void setApplicationInfo(ApplicationInfo applicationInfo) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest billingAddress(Address billingAddress) { @@ -467,7 +489,8 @@ public PaymentLinkRequest billingAddress(Address billingAddress) { /** * Get billingAddress - * @return billingAddress + * + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -478,7 +501,7 @@ public Address getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -487,9 +510,14 @@ public void setBillingAddress(Address billingAddress) { } /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their + * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to + * payment methods, use their [payment method + * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest blockedPaymentMethods(List blockedPaymentMethods) { @@ -506,8 +534,14 @@ public PaymentLinkRequest addBlockedPaymentMethodsItem(String blockedPaymentMeth } /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` - * @return blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their + * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * + * @return blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer + * to payment methods, use their [payment method + * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_BLOCKED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -516,9 +550,14 @@ public List getBlockedPaymentMethods() { } /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their + * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to + * payment methods, use their [payment method + * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_BLOCKED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -529,7 +568,8 @@ public void setBlockedPaymentMethods(List blockedPaymentMethods) { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, + * specified in hours. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest captureDelayHours(Integer captureDelayHours) { @@ -539,7 +579,9 @@ public PaymentLinkRequest captureDelayHours(Integer captureDelayHours) { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. - * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. + * + * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, + * specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -550,7 +592,8 @@ public Integer getCaptureDelayHours() { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, + * specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -571,6 +614,7 @@ public PaymentLinkRequest countryCode(String countryCode) { /** * The shopper's two-letter country code. + * * @return countryCode The shopper's two-letter country code. */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @@ -591,9 +635,11 @@ public void setCountryCode(String countryCode) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): + * YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest dateOfBirth(LocalDate dateOfBirth) { @@ -602,8 +648,11 @@ public PaymentLinkRequest dateOfBirth(LocalDate dateOfBirth) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD - * @return dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): + * YYYY-MM-DD + * + * @return dateOfBirth The shopper's date of birth. Format + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -612,9 +661,11 @@ public LocalDate getDateOfBirth() { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): + * YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -623,9 +674,13 @@ public void setDateOfBirth(LocalDate dateOfBirth) { } /** - * The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * The date and time when the purchased goods should be delivered. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. * - * @param deliverAt The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * @param deliverAt The date and time when the purchased goods should be delivered. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest deliverAt(OffsetDateTime deliverAt) { @@ -634,8 +689,13 @@ public PaymentLinkRequest deliverAt(OffsetDateTime deliverAt) { } /** - * The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. - * @return deliverAt The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * The date and time when the purchased goods should be delivered. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. + * + * @return deliverAt The date and time when the purchased goods should be delivered. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_DELIVER_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -644,9 +704,13 @@ public OffsetDateTime getDeliverAt() { } /** - * The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * The date and time when the purchased goods should be delivered. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. * - * @param deliverAt The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * @param deliverAt The date and time when the purchased goods should be delivered. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_DELIVER_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -657,7 +721,7 @@ public void setDeliverAt(OffsetDateTime deliverAt) { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest deliveryAddress(Address deliveryAddress) { @@ -667,7 +731,8 @@ public PaymentLinkRequest deliveryAddress(Address deliveryAddress) { /** * Get deliveryAddress - * @return deliveryAddress + * + * @return deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -678,7 +743,7 @@ public Address getDeliveryAddress() { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -689,7 +754,8 @@ public void setDeliveryAddress(Address deliveryAddress) { /** * A short description visible on the payment page. Maximum length: 280 characters. * - * @param description A short description visible on the payment page. Maximum length: 280 characters. + * @param description A short description visible on the payment page. Maximum length: 280 + * characters. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest description(String description) { @@ -699,7 +765,9 @@ public PaymentLinkRequest description(String description) { /** * A short description visible on the payment page. Maximum length: 280 characters. - * @return description A short description visible on the payment page. Maximum length: 280 characters. + * + * @return description A short description visible on the payment page. Maximum length: 280 + * characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -710,7 +778,8 @@ public String getDescription() { /** * A short description visible on the payment page. Maximum length: 280 characters. * - * @param description A short description visible on the payment page. Maximum length: 280 characters. + * @param description A short description visible on the payment page. Maximum length: 280 + * characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -719,9 +788,16 @@ public void setDescription(String description) { } /** - * The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created. + * The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format + * with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The + * maximum expiry date is 70 days after the payment link is created. If not provided, the payment + * link expires 24 hours after it was created. * - * @param expiresAt The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created. + * @param expiresAt The date when the payment link expires. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: + * YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry + * date is 70 days after the payment link is created. If not provided, the payment link + * expires 24 hours after it was created. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest expiresAt(OffsetDateTime expiresAt) { @@ -730,8 +806,16 @@ public PaymentLinkRequest expiresAt(OffsetDateTime expiresAt) { } /** - * The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created. - * @return expiresAt The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created. + * The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format + * with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The + * maximum expiry date is 70 days after the payment link is created. If not provided, the payment + * link expires 24 hours after it was created. + * + * @return expiresAt The date when the payment link expires. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: + * YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry + * date is 70 days after the payment link is created. If not provided, the payment link + * expires 24 hours after it was created. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -740,9 +824,16 @@ public OffsetDateTime getExpiresAt() { } /** - * The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created. + * The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format + * with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The + * maximum expiry date is 70 days after the payment link is created. If not provided, the payment + * link expires 24 hours after it was created. * - * @param expiresAt The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created. + * @param expiresAt The date when the payment link expires. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: + * YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry + * date is 70 days after the payment link is created. If not provided, the payment link + * expires 24 hours after it was created. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -753,7 +844,7 @@ public void setExpiresAt(OffsetDateTime expiresAt) { /** * fundOrigin * - * @param fundOrigin + * @param fundOrigin * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest fundOrigin(FundOrigin fundOrigin) { @@ -763,7 +854,8 @@ public PaymentLinkRequest fundOrigin(FundOrigin fundOrigin) { /** * Get fundOrigin - * @return fundOrigin + * + * @return fundOrigin */ @JsonProperty(JSON_PROPERTY_FUND_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -774,7 +866,7 @@ public FundOrigin getFundOrigin() { /** * fundOrigin * - * @param fundOrigin + * @param fundOrigin */ @JsonProperty(JSON_PROPERTY_FUND_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -785,7 +877,7 @@ public void setFundOrigin(FundOrigin fundOrigin) { /** * fundRecipient * - * @param fundRecipient + * @param fundRecipient * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest fundRecipient(FundRecipient fundRecipient) { @@ -795,7 +887,8 @@ public PaymentLinkRequest fundRecipient(FundRecipient fundRecipient) { /** * Get fundRecipient - * @return fundRecipient + * + * @return fundRecipient */ @JsonProperty(JSON_PROPERTY_FUND_RECIPIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -806,7 +899,7 @@ public FundRecipient getFundRecipient() { /** * fundRecipient * - * @param fundRecipient + * @param fundRecipient */ @JsonProperty(JSON_PROPERTY_FUND_RECIPIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -815,9 +908,15 @@ public void setFundRecipient(FundRecipient fundRecipient) { } /** - * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. + * A set of key-value pairs that specifies the installment options available per payment method. + * The key must be a payment method name in lowercase. For example, **card** to specify + * installment options for all cards, or **visa** or **mc**. The value must be an object + * containing the installment options. * - * @param installmentOptions A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. + * @param installmentOptions A set of key-value pairs that specifies the installment options + * available per payment method. The key must be a payment method name in lowercase. For + * example, **card** to specify installment options for all cards, or **visa** or **mc**. The + * value must be an object containing the installment options. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest installmentOptions(Map installmentOptions) { @@ -825,7 +924,8 @@ public PaymentLinkRequest installmentOptions(Map inst return this; } - public PaymentLinkRequest putInstallmentOptionsItem(String key, InstallmentOption installmentOptionsItem) { + public PaymentLinkRequest putInstallmentOptionsItem( + String key, InstallmentOption installmentOptionsItem) { if (this.installmentOptions == null) { this.installmentOptions = new HashMap<>(); } @@ -834,8 +934,15 @@ public PaymentLinkRequest putInstallmentOptionsItem(String key, InstallmentOptio } /** - * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. - * @return installmentOptions A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. + * A set of key-value pairs that specifies the installment options available per payment method. + * The key must be a payment method name in lowercase. For example, **card** to specify + * installment options for all cards, or **visa** or **mc**. The value must be an object + * containing the installment options. + * + * @return installmentOptions A set of key-value pairs that specifies the installment options + * available per payment method. The key must be a payment method name in lowercase. For + * example, **card** to specify installment options for all cards, or **visa** or **mc**. The + * value must be an object containing the installment options. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -844,9 +951,15 @@ public Map getInstallmentOptions() { } /** - * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. + * A set of key-value pairs that specifies the installment options available per payment method. + * The key must be a payment method name in lowercase. For example, **card** to specify + * installment options for all cards, or **visa** or **mc**. The value must be an object + * containing the installment options. * - * @param installmentOptions A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. + * @param installmentOptions A set of key-value pairs that specifies the installment options + * available per payment method. The key must be a payment method name in lowercase. For + * example, **card** to specify installment options for all cards, or **visa** or **mc**. The + * value must be an object containing the installment options. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -855,9 +968,13 @@ public void setInstallmentOptions(Map installmentOpti } /** - * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to + * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, + * Ratepay, and Riverty. * - * @param lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * @param lineItems Price and product information about the purchased items, to be included on the + * invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, + * Clearpay, Klarna, Ratepay, and Riverty. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest lineItems(List lineItems) { @@ -874,8 +991,13 @@ public PaymentLinkRequest addLineItemsItem(LineItem lineItemsItem) { } /** - * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. - * @return lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to + * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, + * Ratepay, and Riverty. + * + * @return lineItems Price and product information about the purchased items, to be included on + * the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, + * Afterpay, Clearpay, Klarna, Ratepay, and Riverty. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -884,9 +1006,13 @@ public List getLineItems() { } /** - * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to + * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, + * Ratepay, and Riverty. * - * @param lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * @param lineItems Price and product information about the purchased items, to be included on the + * invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, + * Clearpay, Klarna, Ratepay, and Riverty. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -895,9 +1021,11 @@ public void setLineItems(List lineItems) { } /** - * Indicates if the payment must be [captured manually](https://docs.adyen.com/online-payments/capture). + * Indicates if the payment must be [captured + * manually](https://docs.adyen.com/online-payments/capture). * - * @param manualCapture Indicates if the payment must be [captured manually](https://docs.adyen.com/online-payments/capture). + * @param manualCapture Indicates if the payment must be [captured + * manually](https://docs.adyen.com/online-payments/capture). * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest manualCapture(Boolean manualCapture) { @@ -906,8 +1034,11 @@ public PaymentLinkRequest manualCapture(Boolean manualCapture) { } /** - * Indicates if the payment must be [captured manually](https://docs.adyen.com/online-payments/capture). - * @return manualCapture Indicates if the payment must be [captured manually](https://docs.adyen.com/online-payments/capture). + * Indicates if the payment must be [captured + * manually](https://docs.adyen.com/online-payments/capture). + * + * @return manualCapture Indicates if the payment must be [captured + * manually](https://docs.adyen.com/online-payments/capture). */ @JsonProperty(JSON_PROPERTY_MANUAL_CAPTURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -916,9 +1047,11 @@ public Boolean getManualCapture() { } /** - * Indicates if the payment must be [captured manually](https://docs.adyen.com/online-payments/capture). + * Indicates if the payment must be [captured + * manually](https://docs.adyen.com/online-payments/capture). * - * @param manualCapture Indicates if the payment must be [captured manually](https://docs.adyen.com/online-payments/capture). + * @param manualCapture Indicates if the payment must be [captured + * manually](https://docs.adyen.com/online-payments/capture). */ @JsonProperty(JSON_PROPERTY_MANUAL_CAPTURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -927,9 +1060,13 @@ public void setManualCapture(Boolean manualCapture) { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a + * four-digit number, which relates to a particular market segment. This code reflects the + * predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) + * (MCC) is a four-digit number, which relates to a particular market segment. This code + * reflects the predominant activity that is conducted by the merchant. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest mcc(String mcc) { @@ -938,8 +1075,13 @@ public PaymentLinkRequest mcc(String mcc) { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. - * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a + * four-digit number, which relates to a particular market segment. This code reflects the + * predominant activity that is conducted by the merchant. + * + * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) + * (MCC) is a four-digit number, which relates to a particular market segment. This code + * reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -948,9 +1090,13 @@ public String getMcc() { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a + * four-digit number, which relates to a particular market segment. This code reflects the + * predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) + * (MCC) is a four-digit number, which relates to a particular market segment. This code + * reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -971,6 +1117,7 @@ public PaymentLinkRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier for which the payment link is created. + * * @return merchantAccount The merchant account identifier for which the payment link is created. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -991,9 +1138,12 @@ public void setMerchantAccount(String merchantAccount) { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (for example, order auth-rate). The reference should be unique per billing cycle. + * This reference allows linking multiple transactions to each other for reporting purposes (for + * example, order auth-rate). The reference should be unique per billing cycle. * - * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (for example, order auth-rate). The reference should be unique per billing cycle. + * @param merchantOrderReference This reference allows linking multiple transactions to each other + * for reporting purposes (for example, order auth-rate). The reference should be unique per + * billing cycle. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest merchantOrderReference(String merchantOrderReference) { @@ -1002,8 +1152,12 @@ public PaymentLinkRequest merchantOrderReference(String merchantOrderReference) } /** - * This reference allows linking multiple transactions to each other for reporting purposes (for example, order auth-rate). The reference should be unique per billing cycle. - * @return merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (for example, order auth-rate). The reference should be unique per billing cycle. + * This reference allows linking multiple transactions to each other for reporting purposes (for + * example, order auth-rate). The reference should be unique per billing cycle. + * + * @return merchantOrderReference This reference allows linking multiple transactions to each + * other for reporting purposes (for example, order auth-rate). The reference should be unique + * per billing cycle. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1012,9 +1166,12 @@ public String getMerchantOrderReference() { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (for example, order auth-rate). The reference should be unique per billing cycle. + * This reference allows linking multiple transactions to each other for reporting purposes (for + * example, order auth-rate). The reference should be unique per billing cycle. * - * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (for example, order auth-rate). The reference should be unique per billing cycle. + * @param merchantOrderReference This reference allows linking multiple transactions to each other + * for reporting purposes (for example, order auth-rate). The reference should be unique per + * billing cycle. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1023,9 +1180,19 @@ public void setMerchantOrderReference(String merchantOrderReference) { } /** - * Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * A key cannot have the name `checkout.linkId`. Any value that you provide with this key is going to be replaced by the real payment link ID. + * Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum + * 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size + * exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" + * occurs: \"Metadata key size exceeds limit\" * A key cannot have the name + * `checkout.linkId`. Any value that you provide with this key is going to be replaced + * by the real payment link ID. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * A key cannot have the name `checkout.linkId`. Any value that you provide with this key is going to be replaced by the real payment link ID. + * @param metadata Metadata consists of entries, each of which includes a key and a value. + * Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" + * occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. + * Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * + * A key cannot have the name `checkout.linkId`. Any value that you provide with + * this key is going to be replaced by the real payment link ID. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest metadata(Map metadata) { @@ -1042,8 +1209,19 @@ public PaymentLinkRequest putMetadataItem(String key, String metadataItem) { } /** - * Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * A key cannot have the name `checkout.linkId`. Any value that you provide with this key is going to be replaced by the real payment link ID. - * @return metadata Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * A key cannot have the name `checkout.linkId`. Any value that you provide with this key is going to be replaced by the real payment link ID. + * Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum + * 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size + * exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" + * occurs: \"Metadata key size exceeds limit\" * A key cannot have the name + * `checkout.linkId`. Any value that you provide with this key is going to be replaced + * by the real payment link ID. + * + * @return metadata Metadata consists of entries, each of which includes a key and a value. + * Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" + * occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. + * Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * + * A key cannot have the name `checkout.linkId`. Any value that you provide with + * this key is going to be replaced by the real payment link ID. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1052,9 +1230,19 @@ public Map getMetadata() { } /** - * Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * A key cannot have the name `checkout.linkId`. Any value that you provide with this key is going to be replaced by the real payment link ID. + * Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum + * 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size + * exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" + * occurs: \"Metadata key size exceeds limit\" * A key cannot have the name + * `checkout.linkId`. Any value that you provide with this key is going to be replaced + * by the real payment link ID. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * A key cannot have the name `checkout.linkId`. Any value that you provide with this key is going to be replaced by the real payment link ID. + * @param metadata Metadata consists of entries, each of which includes a key and a value. + * Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" + * occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. + * Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * + * A key cannot have the name `checkout.linkId`. Any value that you provide with + * this key is going to be replaced by the real payment link ID. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1065,17 +1253,19 @@ public void setMetadata(Map metadata) { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ - public PaymentLinkRequest platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) { + public PaymentLinkRequest platformChargebackLogic( + PlatformChargebackLogic platformChargebackLogic) { this.platformChargebackLogic = platformChargebackLogic; return this; } /** * Get platformChargebackLogic - * @return platformChargebackLogic + * + * @return platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1086,7 +1276,7 @@ public PlatformChargebackLogic getPlatformChargebackLogic() { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1095,19 +1285,53 @@ public void setPlatformChargebackLogic(PlatformChargebackLogic platformChargebac } /** - * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. - * - * @param recurringProcessingModel Defines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to + * **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a + * fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a + * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An + * unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. + * + * @param recurringProcessingModel Defines a recurring payment type. Required when + * `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible + * values: * **Subscription** – A transaction for a fixed or variable amount, which follows a + * fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are + * stored to enable one-click or omnichannel journeys, or simply to streamline the checkout + * process. Any subscription not following a fixed schedule is also considered a card-on-file + * transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction + * is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For + * example, automatic top-ups when a cardholder's balance drops below a certain amount. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ - public PaymentLinkRequest recurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) { + public PaymentLinkRequest recurringProcessingModel( + RecurringProcessingModelEnum recurringProcessingModel) { this.recurringProcessingModel = recurringProcessingModel; return this; } /** - * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. - * @return recurringProcessingModel Defines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to + * **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a + * fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a + * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An + * unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. + * + * @return recurringProcessingModel Defines a recurring payment type. Required when + * `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible + * values: * **Subscription** – A transaction for a fixed or variable amount, which follows a + * fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are + * stored to enable one-click or omnichannel journeys, or simply to streamline the checkout + * process. Any subscription not following a fixed schedule is also considered a card-on-file + * transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction + * is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For + * example, automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1116,9 +1340,25 @@ public RecurringProcessingModelEnum getRecurringProcessingModel() { } /** - * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to + * **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a + * fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a + * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An + * unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. * - * @param recurringProcessingModel Defines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * @param recurringProcessingModel Defines a recurring payment type. Required when + * `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible + * values: * **Subscription** – A transaction for a fixed or variable amount, which follows a + * fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are + * stored to enable one-click or omnichannel journeys, or simply to streamline the checkout + * process. Any subscription not following a fixed schedule is also considered a card-on-file + * transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction + * is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For + * example, automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1127,9 +1367,11 @@ public void setRecurringProcessingModel(RecurringProcessingModelEnum recurringPr } /** - * A reference that is used to uniquely identify the payment in future communications about the payment status. + * A reference that is used to uniquely identify the payment in future communications about the + * payment status. * - * @param reference A reference that is used to uniquely identify the payment in future communications about the payment status. + * @param reference A reference that is used to uniquely identify the payment in future + * communications about the payment status. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest reference(String reference) { @@ -1138,8 +1380,11 @@ public PaymentLinkRequest reference(String reference) { } /** - * A reference that is used to uniquely identify the payment in future communications about the payment status. - * @return reference A reference that is used to uniquely identify the payment in future communications about the payment status. + * A reference that is used to uniquely identify the payment in future communications about the + * payment status. + * + * @return reference A reference that is used to uniquely identify the payment in future + * communications about the payment status. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1148,9 +1393,11 @@ public String getReference() { } /** - * A reference that is used to uniquely identify the payment in future communications about the payment status. + * A reference that is used to uniquely identify the payment in future communications about the + * payment status. * - * @param reference A reference that is used to uniquely identify the payment in future communications about the payment status. + * @param reference A reference that is used to uniquely identify the payment in future + * communications about the payment status. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1159,17 +1406,31 @@ public void setReference(String reference) { } /** - * List of fields that the shopper has to provide on the payment page before completing the payment. For more information, refer to [Provide shopper information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). Possible values: * **billingAddress** – The address where to send the invoice. * **deliveryAddress** – The address where the purchased goods should be delivered. * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full name. * **telephoneNumber** – The shopper's phone number. + * List of fields that the shopper has to provide on the payment page before completing the + * payment. For more information, refer to [Provide shopper + * information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). + * Possible values: * **billingAddress** – The address where to send the invoice. * + * **deliveryAddress** – The address where the purchased goods should be delivered. * + * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full + * name. * **telephoneNumber** – The shopper's phone number. * - * @param requiredShopperFields List of fields that the shopper has to provide on the payment page before completing the payment. For more information, refer to [Provide shopper information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). Possible values: * **billingAddress** – The address where to send the invoice. * **deliveryAddress** – The address where the purchased goods should be delivered. * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full name. * **telephoneNumber** – The shopper's phone number. + * @param requiredShopperFields List of fields that the shopper has to provide on the payment page + * before completing the payment. For more information, refer to [Provide shopper + * information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). + * Possible values: * **billingAddress** – The address where to send the invoice. * + * **deliveryAddress** – The address where the purchased goods should be delivered. * + * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's + * full name. * **telephoneNumber** – The shopper's phone number. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ - public PaymentLinkRequest requiredShopperFields(List requiredShopperFields) { + public PaymentLinkRequest requiredShopperFields( + List requiredShopperFields) { this.requiredShopperFields = requiredShopperFields; return this; } - public PaymentLinkRequest addRequiredShopperFieldsItem(RequiredShopperFieldsEnum requiredShopperFieldsItem) { + public PaymentLinkRequest addRequiredShopperFieldsItem( + RequiredShopperFieldsEnum requiredShopperFieldsItem) { if (this.requiredShopperFields == null) { this.requiredShopperFields = new ArrayList<>(); } @@ -1178,8 +1439,21 @@ public PaymentLinkRequest addRequiredShopperFieldsItem(RequiredShopperFieldsEnum } /** - * List of fields that the shopper has to provide on the payment page before completing the payment. For more information, refer to [Provide shopper information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). Possible values: * **billingAddress** – The address where to send the invoice. * **deliveryAddress** – The address where the purchased goods should be delivered. * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full name. * **telephoneNumber** – The shopper's phone number. - * @return requiredShopperFields List of fields that the shopper has to provide on the payment page before completing the payment. For more information, refer to [Provide shopper information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). Possible values: * **billingAddress** – The address where to send the invoice. * **deliveryAddress** – The address where the purchased goods should be delivered. * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full name. * **telephoneNumber** – The shopper's phone number. + * List of fields that the shopper has to provide on the payment page before completing the + * payment. For more information, refer to [Provide shopper + * information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). + * Possible values: * **billingAddress** – The address where to send the invoice. * + * **deliveryAddress** – The address where the purchased goods should be delivered. * + * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full + * name. * **telephoneNumber** – The shopper's phone number. + * + * @return requiredShopperFields List of fields that the shopper has to provide on the payment + * page before completing the payment. For more information, refer to [Provide shopper + * information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). + * Possible values: * **billingAddress** – The address where to send the invoice. * + * **deliveryAddress** – The address where the purchased goods should be delivered. * + * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's + * full name. * **telephoneNumber** – The shopper's phone number. */ @JsonProperty(JSON_PROPERTY_REQUIRED_SHOPPER_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1188,9 +1462,21 @@ public List getRequiredShopperFields() { } /** - * List of fields that the shopper has to provide on the payment page before completing the payment. For more information, refer to [Provide shopper information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). Possible values: * **billingAddress** – The address where to send the invoice. * **deliveryAddress** – The address where the purchased goods should be delivered. * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full name. * **telephoneNumber** – The shopper's phone number. + * List of fields that the shopper has to provide on the payment page before completing the + * payment. For more information, refer to [Provide shopper + * information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). + * Possible values: * **billingAddress** – The address where to send the invoice. * + * **deliveryAddress** – The address where the purchased goods should be delivered. * + * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full + * name. * **telephoneNumber** – The shopper's phone number. * - * @param requiredShopperFields List of fields that the shopper has to provide on the payment page before completing the payment. For more information, refer to [Provide shopper information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). Possible values: * **billingAddress** – The address where to send the invoice. * **deliveryAddress** – The address where the purchased goods should be delivered. * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full name. * **telephoneNumber** – The shopper's phone number. + * @param requiredShopperFields List of fields that the shopper has to provide on the payment page + * before completing the payment. For more information, refer to [Provide shopper + * information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). + * Possible values: * **billingAddress** – The address where to send the invoice. * + * **deliveryAddress** – The address where the purchased goods should be delivered. * + * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's + * full name. * **telephoneNumber** – The shopper's phone number. */ @JsonProperty(JSON_PROPERTY_REQUIRED_SHOPPER_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1199,9 +1485,13 @@ public void setRequiredShopperFields(List requiredSho } /** - * Website URL used for redirection after payment is completed. If provided, a **Continue** button will be shown on the payment page. If shoppers select the button, they are redirected to the specified URL. + * Website URL used for redirection after payment is completed. If provided, a **Continue** button + * will be shown on the payment page. If shoppers select the button, they are redirected to the + * specified URL. * - * @param returnUrl Website URL used for redirection after payment is completed. If provided, a **Continue** button will be shown on the payment page. If shoppers select the button, they are redirected to the specified URL. + * @param returnUrl Website URL used for redirection after payment is completed. If provided, a + * **Continue** button will be shown on the payment page. If shoppers select the button, they + * are redirected to the specified URL. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest returnUrl(String returnUrl) { @@ -1210,8 +1500,13 @@ public PaymentLinkRequest returnUrl(String returnUrl) { } /** - * Website URL used for redirection after payment is completed. If provided, a **Continue** button will be shown on the payment page. If shoppers select the button, they are redirected to the specified URL. - * @return returnUrl Website URL used for redirection after payment is completed. If provided, a **Continue** button will be shown on the payment page. If shoppers select the button, they are redirected to the specified URL. + * Website URL used for redirection after payment is completed. If provided, a **Continue** button + * will be shown on the payment page. If shoppers select the button, they are redirected to the + * specified URL. + * + * @return returnUrl Website URL used for redirection after payment is completed. If provided, a + * **Continue** button will be shown on the payment page. If shoppers select the button, they + * are redirected to the specified URL. */ @JsonProperty(JSON_PROPERTY_RETURN_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1220,9 +1515,13 @@ public String getReturnUrl() { } /** - * Website URL used for redirection after payment is completed. If provided, a **Continue** button will be shown on the payment page. If shoppers select the button, they are redirected to the specified URL. + * Website URL used for redirection after payment is completed. If provided, a **Continue** button + * will be shown on the payment page. If shoppers select the button, they are redirected to the + * specified URL. * - * @param returnUrl Website URL used for redirection after payment is completed. If provided, a **Continue** button will be shown on the payment page. If shoppers select the button, they are redirected to the specified URL. + * @param returnUrl Website URL used for redirection after payment is completed. If provided, a + * **Continue** button will be shown on the payment page. If shoppers select the button, they + * are redirected to the specified URL. */ @JsonProperty(JSON_PROPERTY_RETURN_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1231,9 +1530,12 @@ public void setReturnUrl(String returnUrl) { } /** - * Indicates whether the payment link can be reused for multiple payments. If not provided, this defaults to **false** which means the link can be used for one successful payment only. + * Indicates whether the payment link can be reused for multiple payments. If not provided, this + * defaults to **false** which means the link can be used for one successful payment only. * - * @param reusable Indicates whether the payment link can be reused for multiple payments. If not provided, this defaults to **false** which means the link can be used for one successful payment only. + * @param reusable Indicates whether the payment link can be reused for multiple payments. If not + * provided, this defaults to **false** which means the link can be used for one successful + * payment only. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest reusable(Boolean reusable) { @@ -1242,8 +1544,12 @@ public PaymentLinkRequest reusable(Boolean reusable) { } /** - * Indicates whether the payment link can be reused for multiple payments. If not provided, this defaults to **false** which means the link can be used for one successful payment only. - * @return reusable Indicates whether the payment link can be reused for multiple payments. If not provided, this defaults to **false** which means the link can be used for one successful payment only. + * Indicates whether the payment link can be reused for multiple payments. If not provided, this + * defaults to **false** which means the link can be used for one successful payment only. + * + * @return reusable Indicates whether the payment link can be reused for multiple payments. If not + * provided, this defaults to **false** which means the link can be used for one successful + * payment only. */ @JsonProperty(JSON_PROPERTY_REUSABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1252,9 +1558,12 @@ public Boolean getReusable() { } /** - * Indicates whether the payment link can be reused for multiple payments. If not provided, this defaults to **false** which means the link can be used for one successful payment only. + * Indicates whether the payment link can be reused for multiple payments. If not provided, this + * defaults to **false** which means the link can be used for one successful payment only. * - * @param reusable Indicates whether the payment link can be reused for multiple payments. If not provided, this defaults to **false** which means the link can be used for one successful payment only. + * @param reusable Indicates whether the payment link can be reused for multiple payments. If not + * provided, this defaults to **false** which means the link can be used for one successful + * payment only. */ @JsonProperty(JSON_PROPERTY_REUSABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1265,7 +1574,7 @@ public void setReusable(Boolean reusable) { /** * riskData * - * @param riskData + * @param riskData * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest riskData(RiskData riskData) { @@ -1275,7 +1584,8 @@ public PaymentLinkRequest riskData(RiskData riskData) { /** * Get riskData - * @return riskData + * + * @return riskData */ @JsonProperty(JSON_PROPERTY_RISK_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1286,7 +1596,7 @@ public RiskData getRiskData() { /** * riskData * - * @param riskData + * @param riskData */ @JsonProperty(JSON_PROPERTY_RISK_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1307,6 +1617,7 @@ public PaymentLinkRequest shopperEmail(String shopperEmail) { /** * The shopper's email address. + * * @return shopperEmail The shopper's email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -1327,9 +1638,15 @@ public void setShopperEmail(String shopperEmail) { } /** - * The language to be used in the payment page, specified by a combination of a language and country code. For example, `en-US`. For a list of shopper locales that Pay by Link supports, refer to [Language and localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). + * The language to be used in the payment page, specified by a combination of a language and + * country code. For example, `en-US`. For a list of shopper locales that Pay by Link + * supports, refer to [Language and + * localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). * - * @param shopperLocale The language to be used in the payment page, specified by a combination of a language and country code. For example, `en-US`. For a list of shopper locales that Pay by Link supports, refer to [Language and localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). + * @param shopperLocale The language to be used in the payment page, specified by a combination of + * a language and country code. For example, `en-US`. For a list of shopper locales + * that Pay by Link supports, refer to [Language and + * localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest shopperLocale(String shopperLocale) { @@ -1338,8 +1655,15 @@ public PaymentLinkRequest shopperLocale(String shopperLocale) { } /** - * The language to be used in the payment page, specified by a combination of a language and country code. For example, `en-US`. For a list of shopper locales that Pay by Link supports, refer to [Language and localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). - * @return shopperLocale The language to be used in the payment page, specified by a combination of a language and country code. For example, `en-US`. For a list of shopper locales that Pay by Link supports, refer to [Language and localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). + * The language to be used in the payment page, specified by a combination of a language and + * country code. For example, `en-US`. For a list of shopper locales that Pay by Link + * supports, refer to [Language and + * localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). + * + * @return shopperLocale The language to be used in the payment page, specified by a combination + * of a language and country code. For example, `en-US`. For a list of shopper + * locales that Pay by Link supports, refer to [Language and + * localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1348,9 +1672,15 @@ public String getShopperLocale() { } /** - * The language to be used in the payment page, specified by a combination of a language and country code. For example, `en-US`. For a list of shopper locales that Pay by Link supports, refer to [Language and localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). + * The language to be used in the payment page, specified by a combination of a language and + * country code. For example, `en-US`. For a list of shopper locales that Pay by Link + * supports, refer to [Language and + * localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). * - * @param shopperLocale The language to be used in the payment page, specified by a combination of a language and country code. For example, `en-US`. For a list of shopper locales that Pay by Link supports, refer to [Language and localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). + * @param shopperLocale The language to be used in the payment page, specified by a combination of + * a language and country code. For example, `en-US`. For a list of shopper locales + * that Pay by Link supports, refer to [Language and + * localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1361,7 +1691,7 @@ public void setShopperLocale(String shopperLocale) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest shopperName(Name shopperName) { @@ -1371,7 +1701,8 @@ public PaymentLinkRequest shopperName(Name shopperName) { /** * Get shopperName - * @return shopperName + * + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1382,7 +1713,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1391,9 +1722,14 @@ public void setShopperName(Name shopperName) { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. The value + * is case-sensitive and must be at least three characters. > Your reference must not include + * personally identifiable information (PII) such as name or email address. * - * @param shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @param shopperReference Your reference to uniquely identify this shopper, for example user ID + * or account ID. The value is case-sensitive and must be at least three characters. > Your + * reference must not include personally identifiable information (PII) such as name or email + * address. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest shopperReference(String shopperReference) { @@ -1402,8 +1738,14 @@ public PaymentLinkRequest shopperReference(String shopperReference) { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. - * @return shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. The value + * is case-sensitive and must be at least three characters. > Your reference must not include + * personally identifiable information (PII) such as name or email address. + * + * @return shopperReference Your reference to uniquely identify this shopper, for example user ID + * or account ID. The value is case-sensitive and must be at least three characters. > Your + * reference must not include personally identifiable information (PII) such as name or email + * address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1412,9 +1754,14 @@ public String getShopperReference() { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. The value + * is case-sensitive and must be at least three characters. > Your reference must not include + * personally identifiable information (PII) such as name or email address. * - * @param shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @param shopperReference Your reference to uniquely identify this shopper, for example user ID + * or account ID. The value is case-sensitive and must be at least three characters. > Your + * reference must not include personally identifiable information (PII) such as name or email + * address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1423,9 +1770,14 @@ public void setShopperReference(String shopperReference) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 + * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, + * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend + * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed + * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * + * /_**. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest shopperStatement(String shopperStatement) { @@ -1434,8 +1786,14 @@ public PaymentLinkRequest shopperStatement(String shopperStatement) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. - * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 + * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, + * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * + * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend + * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed + * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1444,9 +1802,14 @@ public String getShopperStatement() { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 + * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, + * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend + * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed + * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1457,7 +1820,8 @@ public void setShopperStatement(String shopperStatement) { /** * Set to **false** to hide the button that lets the shopper remove a stored payment method. * - * @param showRemovePaymentMethodButton Set to **false** to hide the button that lets the shopper remove a stored payment method. + * @param showRemovePaymentMethodButton Set to **false** to hide the button that lets the shopper + * remove a stored payment method. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest showRemovePaymentMethodButton(Boolean showRemovePaymentMethodButton) { @@ -1467,7 +1831,9 @@ public PaymentLinkRequest showRemovePaymentMethodButton(Boolean showRemovePaymen /** * Set to **false** to hide the button that lets the shopper remove a stored payment method. - * @return showRemovePaymentMethodButton Set to **false** to hide the button that lets the shopper remove a stored payment method. + * + * @return showRemovePaymentMethodButton Set to **false** to hide the button that lets the shopper + * remove a stored payment method. */ @JsonProperty(JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1478,7 +1844,8 @@ public Boolean getShowRemovePaymentMethodButton() { /** * Set to **false** to hide the button that lets the shopper remove a stored payment method. * - * @param showRemovePaymentMethodButton Set to **false** to hide the button that lets the shopper remove a stored payment method. + * @param showRemovePaymentMethodButton Set to **false** to hide the button that lets the shopper + * remove a stored payment method. */ @JsonProperty(JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1499,6 +1866,7 @@ public PaymentLinkRequest socialSecurityNumber(String socialSecurityNumber) { /** * The shopper's social security number. + * * @return socialSecurityNumber The shopper's social security number. */ @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER) @@ -1519,9 +1887,11 @@ public void setSocialSecurityNumber(String socialSecurityNumber) { } /** - * Boolean value indicating whether the card payment method should be split into separate debit and credit options. + * Boolean value indicating whether the card payment method should be split into separate debit + * and credit options. * - * @param splitCardFundingSources Boolean value indicating whether the card payment method should be split into separate debit and credit options. + * @param splitCardFundingSources Boolean value indicating whether the card payment method should + * be split into separate debit and credit options. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest splitCardFundingSources(Boolean splitCardFundingSources) { @@ -1530,8 +1900,11 @@ public PaymentLinkRequest splitCardFundingSources(Boolean splitCardFundingSource } /** - * Boolean value indicating whether the card payment method should be split into separate debit and credit options. - * @return splitCardFundingSources Boolean value indicating whether the card payment method should be split into separate debit and credit options. + * Boolean value indicating whether the card payment method should be split into separate debit + * and credit options. + * + * @return splitCardFundingSources Boolean value indicating whether the card payment method should + * be split into separate debit and credit options. */ @JsonProperty(JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1540,9 +1913,11 @@ public Boolean getSplitCardFundingSources() { } /** - * Boolean value indicating whether the card payment method should be split into separate debit and credit options. + * Boolean value indicating whether the card payment method should be split into separate debit + * and credit options. * - * @param splitCardFundingSources Boolean value indicating whether the card payment method should be split into separate debit and credit options. + * @param splitCardFundingSources Boolean value indicating whether the card payment method should + * be split into separate debit and credit options. */ @JsonProperty(JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1551,9 +1926,17 @@ public void setSplitCardFundingSources(Boolean splitCardFundingSources) { } /** - * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how to split a payment when using [Adyen for + * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), + * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), + * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). * - * @param splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * @param splits An array of objects specifying how to split a payment when using [Adyen for + * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), + * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), + * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest splits(List splits) { @@ -1570,8 +1953,17 @@ public PaymentLinkRequest addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). - * @return splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how to split a payment when using [Adyen for + * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), + * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), + * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * + * @return splits An array of objects specifying how to split a payment when using [Adyen for + * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), + * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), + * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1580,9 +1972,17 @@ public List getSplits() { } /** - * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how to split a payment when using [Adyen for + * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), + * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), + * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). * - * @param splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * @param splits An array of objects specifying how to split a payment when using [Adyen for + * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), + * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), + * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1603,6 +2003,7 @@ public PaymentLinkRequest store(String store) { /** * The physical store, for which this payment is processed. + * * @return store The physical store, for which this payment is processed. */ @JsonProperty(JSON_PROPERTY_STORE) @@ -1623,19 +2024,45 @@ public void setStore(String store) { } /** - * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. When set to **askForConsent** or **enabled**, you must also include the `recurringProcessingModel` parameter. + * Indicates if the details of the payment method will be stored for the shopper. Possible values: + * * **disabled** – No details will be stored (default). * **askForConsent** – If the + * `shopperReference` is provided, the UI lets the shopper choose if they want their + * payment details to be stored. * **enabled** – If the `shopperReference` is provided, + * the details will be stored without asking the shopper for consent. When set to + * **askForConsent** or **enabled**, you must also include the + * `recurringProcessingModel` parameter. * - * @param storePaymentMethodMode Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. When set to **askForConsent** or **enabled**, you must also include the `recurringProcessingModel` parameter. + * @param storePaymentMethodMode Indicates if the details of the payment method will be stored for + * the shopper. Possible values: * **disabled** – No details will be stored (default). * + * **askForConsent** – If the `shopperReference` is provided, the UI lets the + * shopper choose if they want their payment details to be stored. * **enabled** – If the + * `shopperReference` is provided, the details will be stored without asking the + * shopper for consent. When set to **askForConsent** or **enabled**, you must also include + * the `recurringProcessingModel` parameter. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ - public PaymentLinkRequest storePaymentMethodMode(StorePaymentMethodModeEnum storePaymentMethodMode) { + public PaymentLinkRequest storePaymentMethodMode( + StorePaymentMethodModeEnum storePaymentMethodMode) { this.storePaymentMethodMode = storePaymentMethodMode; return this; } /** - * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. When set to **askForConsent** or **enabled**, you must also include the `recurringProcessingModel` parameter. - * @return storePaymentMethodMode Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. When set to **askForConsent** or **enabled**, you must also include the `recurringProcessingModel` parameter. + * Indicates if the details of the payment method will be stored for the shopper. Possible values: + * * **disabled** – No details will be stored (default). * **askForConsent** – If the + * `shopperReference` is provided, the UI lets the shopper choose if they want their + * payment details to be stored. * **enabled** – If the `shopperReference` is provided, + * the details will be stored without asking the shopper for consent. When set to + * **askForConsent** or **enabled**, you must also include the + * `recurringProcessingModel` parameter. + * + * @return storePaymentMethodMode Indicates if the details of the payment method will be stored + * for the shopper. Possible values: * **disabled** – No details will be stored (default). * + * **askForConsent** – If the `shopperReference` is provided, the UI lets the + * shopper choose if they want their payment details to be stored. * **enabled** – If the + * `shopperReference` is provided, the details will be stored without asking the + * shopper for consent. When set to **askForConsent** or **enabled**, you must also include + * the `recurringProcessingModel` parameter. */ @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1644,9 +2071,21 @@ public StorePaymentMethodModeEnum getStorePaymentMethodMode() { } /** - * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. When set to **askForConsent** or **enabled**, you must also include the `recurringProcessingModel` parameter. + * Indicates if the details of the payment method will be stored for the shopper. Possible values: + * * **disabled** – No details will be stored (default). * **askForConsent** – If the + * `shopperReference` is provided, the UI lets the shopper choose if they want their + * payment details to be stored. * **enabled** – If the `shopperReference` is provided, + * the details will be stored without asking the shopper for consent. When set to + * **askForConsent** or **enabled**, you must also include the + * `recurringProcessingModel` parameter. * - * @param storePaymentMethodMode Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. When set to **askForConsent** or **enabled**, you must also include the `recurringProcessingModel` parameter. + * @param storePaymentMethodMode Indicates if the details of the payment method will be stored for + * the shopper. Possible values: * **disabled** – No details will be stored (default). * + * **askForConsent** – If the `shopperReference` is provided, the UI lets the + * shopper choose if they want their payment details to be stored. * **enabled** – If the + * `shopperReference` is provided, the details will be stored without asking the + * shopper for consent. When set to **askForConsent** or **enabled**, you must also include + * the `recurringProcessingModel` parameter. */ @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1655,9 +2094,17 @@ public void setStorePaymentMethodMode(StorePaymentMethodModeEnum storePaymentMet } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest telephoneNumber(String telephoneNumber) { @@ -1666,8 +2113,17 @@ public PaymentLinkRequest telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. - * @return telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. + * + * @return telephoneNumber The shopper's telephone number. The phone number must include a + * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1676,9 +2132,17 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1687,9 +2151,14 @@ public void setTelephoneNumber(String telephoneNumber) { } /** - * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. + * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to + * customize the appearance of the payment page. If not specified, the payment page is rendered + * according to the theme set as default in your Customer Area. * - * @param themeId A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. + * @param themeId A + * [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to + * customize the appearance of the payment page. If not specified, the payment page is + * rendered according to the theme set as default in your Customer Area. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest themeId(String themeId) { @@ -1698,8 +2167,14 @@ public PaymentLinkRequest themeId(String themeId) { } /** - * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. - * @return themeId A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. + * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to + * customize the appearance of the payment page. If not specified, the payment page is rendered + * according to the theme set as default in your Customer Area. + * + * @return themeId A + * [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to + * customize the appearance of the payment page. If not specified, the payment page is + * rendered according to the theme set as default in your Customer Area. */ @JsonProperty(JSON_PROPERTY_THEME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1708,9 +2183,14 @@ public String getThemeId() { } /** - * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. + * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to + * customize the appearance of the payment page. If not specified, the payment page is rendered + * according to the theme set as default in your Customer Area. * - * @param themeId A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. + * @param themeId A + * [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to + * customize the appearance of the payment page. If not specified, the payment page is + * rendered according to the theme set as default in your Customer Area. */ @JsonProperty(JSON_PROPERTY_THEME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1721,17 +2201,19 @@ public void setThemeId(String themeId) { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ - public PaymentLinkRequest threeDS2RequestData(CheckoutSessionThreeDS2RequestData threeDS2RequestData) { + public PaymentLinkRequest threeDS2RequestData( + CheckoutSessionThreeDS2RequestData threeDS2RequestData) { this.threeDS2RequestData = threeDS2RequestData; return this; } /** * Get threeDS2RequestData - * @return threeDS2RequestData + * + * @return threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1742,7 +2224,7 @@ public CheckoutSessionThreeDS2RequestData getThreeDS2RequestData() { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1750,9 +2232,7 @@ public void setThreeDS2RequestData(CheckoutSessionThreeDS2RequestData threeDS2Re this.threeDS2RequestData = threeDS2RequestData; } - /** - * Return true if this PaymentLinkRequest object is equal to o. - */ + /** Return true if this PaymentLinkRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -1762,64 +2242,112 @@ public boolean equals(Object o) { return false; } PaymentLinkRequest paymentLinkRequest = (PaymentLinkRequest) o; - return Objects.equals(this.allowedPaymentMethods, paymentLinkRequest.allowedPaymentMethods) && - Objects.equals(this.amount, paymentLinkRequest.amount) && - Objects.equals(this.applicationInfo, paymentLinkRequest.applicationInfo) && - Objects.equals(this.billingAddress, paymentLinkRequest.billingAddress) && - Objects.equals(this.blockedPaymentMethods, paymentLinkRequest.blockedPaymentMethods) && - Objects.equals(this.captureDelayHours, paymentLinkRequest.captureDelayHours) && - Objects.equals(this.countryCode, paymentLinkRequest.countryCode) && - Objects.equals(this.dateOfBirth, paymentLinkRequest.dateOfBirth) && - Objects.equals(this.deliverAt, paymentLinkRequest.deliverAt) && - Objects.equals(this.deliveryAddress, paymentLinkRequest.deliveryAddress) && - Objects.equals(this.description, paymentLinkRequest.description) && - Objects.equals(this.expiresAt, paymentLinkRequest.expiresAt) && - Objects.equals(this.fundOrigin, paymentLinkRequest.fundOrigin) && - Objects.equals(this.fundRecipient, paymentLinkRequest.fundRecipient) && - Objects.equals(this.installmentOptions, paymentLinkRequest.installmentOptions) && - Objects.equals(this.lineItems, paymentLinkRequest.lineItems) && - Objects.equals(this.manualCapture, paymentLinkRequest.manualCapture) && - Objects.equals(this.mcc, paymentLinkRequest.mcc) && - Objects.equals(this.merchantAccount, paymentLinkRequest.merchantAccount) && - Objects.equals(this.merchantOrderReference, paymentLinkRequest.merchantOrderReference) && - Objects.equals(this.metadata, paymentLinkRequest.metadata) && - Objects.equals(this.platformChargebackLogic, paymentLinkRequest.platformChargebackLogic) && - Objects.equals(this.recurringProcessingModel, paymentLinkRequest.recurringProcessingModel) && - Objects.equals(this.reference, paymentLinkRequest.reference) && - Objects.equals(this.requiredShopperFields, paymentLinkRequest.requiredShopperFields) && - Objects.equals(this.returnUrl, paymentLinkRequest.returnUrl) && - Objects.equals(this.reusable, paymentLinkRequest.reusable) && - Objects.equals(this.riskData, paymentLinkRequest.riskData) && - Objects.equals(this.shopperEmail, paymentLinkRequest.shopperEmail) && - Objects.equals(this.shopperLocale, paymentLinkRequest.shopperLocale) && - Objects.equals(this.shopperName, paymentLinkRequest.shopperName) && - Objects.equals(this.shopperReference, paymentLinkRequest.shopperReference) && - Objects.equals(this.shopperStatement, paymentLinkRequest.shopperStatement) && - Objects.equals(this.showRemovePaymentMethodButton, paymentLinkRequest.showRemovePaymentMethodButton) && - Objects.equals(this.socialSecurityNumber, paymentLinkRequest.socialSecurityNumber) && - Objects.equals(this.splitCardFundingSources, paymentLinkRequest.splitCardFundingSources) && - Objects.equals(this.splits, paymentLinkRequest.splits) && - Objects.equals(this.store, paymentLinkRequest.store) && - Objects.equals(this.storePaymentMethodMode, paymentLinkRequest.storePaymentMethodMode) && - Objects.equals(this.telephoneNumber, paymentLinkRequest.telephoneNumber) && - Objects.equals(this.themeId, paymentLinkRequest.themeId) && - Objects.equals(this.threeDS2RequestData, paymentLinkRequest.threeDS2RequestData); + return Objects.equals(this.allowedPaymentMethods, paymentLinkRequest.allowedPaymentMethods) + && Objects.equals(this.amount, paymentLinkRequest.amount) + && Objects.equals(this.applicationInfo, paymentLinkRequest.applicationInfo) + && Objects.equals(this.billingAddress, paymentLinkRequest.billingAddress) + && Objects.equals(this.blockedPaymentMethods, paymentLinkRequest.blockedPaymentMethods) + && Objects.equals(this.captureDelayHours, paymentLinkRequest.captureDelayHours) + && Objects.equals(this.countryCode, paymentLinkRequest.countryCode) + && Objects.equals(this.dateOfBirth, paymentLinkRequest.dateOfBirth) + && Objects.equals(this.deliverAt, paymentLinkRequest.deliverAt) + && Objects.equals(this.deliveryAddress, paymentLinkRequest.deliveryAddress) + && Objects.equals(this.description, paymentLinkRequest.description) + && Objects.equals(this.expiresAt, paymentLinkRequest.expiresAt) + && Objects.equals(this.fundOrigin, paymentLinkRequest.fundOrigin) + && Objects.equals(this.fundRecipient, paymentLinkRequest.fundRecipient) + && Objects.equals(this.installmentOptions, paymentLinkRequest.installmentOptions) + && Objects.equals(this.lineItems, paymentLinkRequest.lineItems) + && Objects.equals(this.manualCapture, paymentLinkRequest.manualCapture) + && Objects.equals(this.mcc, paymentLinkRequest.mcc) + && Objects.equals(this.merchantAccount, paymentLinkRequest.merchantAccount) + && Objects.equals(this.merchantOrderReference, paymentLinkRequest.merchantOrderReference) + && Objects.equals(this.metadata, paymentLinkRequest.metadata) + && Objects.equals(this.platformChargebackLogic, paymentLinkRequest.platformChargebackLogic) + && Objects.equals( + this.recurringProcessingModel, paymentLinkRequest.recurringProcessingModel) + && Objects.equals(this.reference, paymentLinkRequest.reference) + && Objects.equals(this.requiredShopperFields, paymentLinkRequest.requiredShopperFields) + && Objects.equals(this.returnUrl, paymentLinkRequest.returnUrl) + && Objects.equals(this.reusable, paymentLinkRequest.reusable) + && Objects.equals(this.riskData, paymentLinkRequest.riskData) + && Objects.equals(this.shopperEmail, paymentLinkRequest.shopperEmail) + && Objects.equals(this.shopperLocale, paymentLinkRequest.shopperLocale) + && Objects.equals(this.shopperName, paymentLinkRequest.shopperName) + && Objects.equals(this.shopperReference, paymentLinkRequest.shopperReference) + && Objects.equals(this.shopperStatement, paymentLinkRequest.shopperStatement) + && Objects.equals( + this.showRemovePaymentMethodButton, paymentLinkRequest.showRemovePaymentMethodButton) + && Objects.equals(this.socialSecurityNumber, paymentLinkRequest.socialSecurityNumber) + && Objects.equals(this.splitCardFundingSources, paymentLinkRequest.splitCardFundingSources) + && Objects.equals(this.splits, paymentLinkRequest.splits) + && Objects.equals(this.store, paymentLinkRequest.store) + && Objects.equals(this.storePaymentMethodMode, paymentLinkRequest.storePaymentMethodMode) + && Objects.equals(this.telephoneNumber, paymentLinkRequest.telephoneNumber) + && Objects.equals(this.themeId, paymentLinkRequest.themeId) + && Objects.equals(this.threeDS2RequestData, paymentLinkRequest.threeDS2RequestData); } @Override public int hashCode() { - return Objects.hash(allowedPaymentMethods, amount, applicationInfo, billingAddress, blockedPaymentMethods, captureDelayHours, countryCode, dateOfBirth, deliverAt, deliveryAddress, description, expiresAt, fundOrigin, fundRecipient, installmentOptions, lineItems, manualCapture, mcc, merchantAccount, merchantOrderReference, metadata, platformChargebackLogic, recurringProcessingModel, reference, requiredShopperFields, returnUrl, reusable, riskData, shopperEmail, shopperLocale, shopperName, shopperReference, shopperStatement, showRemovePaymentMethodButton, socialSecurityNumber, splitCardFundingSources, splits, store, storePaymentMethodMode, telephoneNumber, themeId, threeDS2RequestData); + return Objects.hash( + allowedPaymentMethods, + amount, + applicationInfo, + billingAddress, + blockedPaymentMethods, + captureDelayHours, + countryCode, + dateOfBirth, + deliverAt, + deliveryAddress, + description, + expiresAt, + fundOrigin, + fundRecipient, + installmentOptions, + lineItems, + manualCapture, + mcc, + merchantAccount, + merchantOrderReference, + metadata, + platformChargebackLogic, + recurringProcessingModel, + reference, + requiredShopperFields, + returnUrl, + reusable, + riskData, + shopperEmail, + shopperLocale, + shopperName, + shopperReference, + shopperStatement, + showRemovePaymentMethodButton, + socialSecurityNumber, + splitCardFundingSources, + splits, + store, + storePaymentMethodMode, + telephoneNumber, + themeId, + threeDS2RequestData); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentLinkRequest {\n"); - sb.append(" allowedPaymentMethods: ").append(toIndentedString(allowedPaymentMethods)).append("\n"); + sb.append(" allowedPaymentMethods: ") + .append(toIndentedString(allowedPaymentMethods)) + .append("\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" applicationInfo: ").append(toIndentedString(applicationInfo)).append("\n"); sb.append(" billingAddress: ").append(toIndentedString(billingAddress)).append("\n"); - sb.append(" blockedPaymentMethods: ").append(toIndentedString(blockedPaymentMethods)).append("\n"); + sb.append(" blockedPaymentMethods: ") + .append(toIndentedString(blockedPaymentMethods)) + .append("\n"); sb.append(" captureDelayHours: ").append(toIndentedString(captureDelayHours)).append("\n"); sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n"); sb.append(" dateOfBirth: ").append(toIndentedString(dateOfBirth)).append("\n"); @@ -1834,12 +2362,20 @@ public String toString() { sb.append(" manualCapture: ").append(toIndentedString(manualCapture)).append("\n"); sb.append(" mcc: ").append(toIndentedString(mcc)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" merchantOrderReference: ").append(toIndentedString(merchantOrderReference)).append("\n"); + sb.append(" merchantOrderReference: ") + .append(toIndentedString(merchantOrderReference)) + .append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n"); - sb.append(" recurringProcessingModel: ").append(toIndentedString(recurringProcessingModel)).append("\n"); + sb.append(" platformChargebackLogic: ") + .append(toIndentedString(platformChargebackLogic)) + .append("\n"); + sb.append(" recurringProcessingModel: ") + .append(toIndentedString(recurringProcessingModel)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); - sb.append(" requiredShopperFields: ").append(toIndentedString(requiredShopperFields)).append("\n"); + sb.append(" requiredShopperFields: ") + .append(toIndentedString(requiredShopperFields)) + .append("\n"); sb.append(" returnUrl: ").append(toIndentedString(returnUrl)).append("\n"); sb.append(" reusable: ").append(toIndentedString(reusable)).append("\n"); sb.append(" riskData: ").append(toIndentedString(riskData)).append("\n"); @@ -1848,22 +2384,31 @@ public String toString() { sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append(" shopperStatement: ").append(toIndentedString(shopperStatement)).append("\n"); - sb.append(" showRemovePaymentMethodButton: ").append(toIndentedString(showRemovePaymentMethodButton)).append("\n"); - sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); - sb.append(" splitCardFundingSources: ").append(toIndentedString(splitCardFundingSources)).append("\n"); + sb.append(" showRemovePaymentMethodButton: ") + .append(toIndentedString(showRemovePaymentMethodButton)) + .append("\n"); + sb.append(" socialSecurityNumber: ") + .append(toIndentedString(socialSecurityNumber)) + .append("\n"); + sb.append(" splitCardFundingSources: ") + .append(toIndentedString(splitCardFundingSources)) + .append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" store: ").append(toIndentedString(store)).append("\n"); - sb.append(" storePaymentMethodMode: ").append(toIndentedString(storePaymentMethodMode)).append("\n"); + sb.append(" storePaymentMethodMode: ") + .append(toIndentedString(storePaymentMethodMode)) + .append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); sb.append(" themeId: ").append(toIndentedString(themeId)).append("\n"); - sb.append(" threeDS2RequestData: ").append(toIndentedString(threeDS2RequestData)).append("\n"); + sb.append(" threeDS2RequestData: ") + .append(toIndentedString(threeDS2RequestData)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1872,21 +2417,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentLinkRequest given an JSON string * * @param jsonString JSON string * @return An instance of PaymentLinkRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentLinkRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentLinkRequest */ public static PaymentLinkRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentLinkRequest.class); } -/** - * Convert an instance of PaymentLinkRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentLinkRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentLinkResponse.java b/src/main/java/com/adyen/model/checkout/PaymentLinkResponse.java index fe0554dbe..c76f9f3bb 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentLinkResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentLinkResponse.java @@ -2,49 +2,32 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Address; -import com.adyen.model.checkout.Amount; -import com.adyen.model.checkout.ApplicationInfo; -import com.adyen.model.checkout.CheckoutSessionThreeDS2RequestData; -import com.adyen.model.checkout.FundOrigin; -import com.adyen.model.checkout.FundRecipient; -import com.adyen.model.checkout.InstallmentOption; -import com.adyen.model.checkout.LineItem; -import com.adyen.model.checkout.Name; -import com.adyen.model.checkout.PlatformChargebackLogic; -import com.adyen.model.checkout.RiskData; -import com.adyen.model.checkout.Split; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.time.OffsetDateTime; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * PaymentLinkResponse - */ +/** PaymentLinkResponse */ @JsonPropertyOrder({ PaymentLinkResponse.JSON_PROPERTY_ALLOWED_PAYMENT_METHODS, PaymentLinkResponse.JSON_PROPERTY_AMOUNT, @@ -93,7 +76,6 @@ PaymentLinkResponse.JSON_PROPERTY_UPDATED_AT, PaymentLinkResponse.JSON_PROPERTY_URL }) - public class PaymentLinkResponse { public static final String JSON_PROPERTY_ALLOWED_PAYMENT_METHODS = "allowedPaymentMethods"; private List allowedPaymentMethods; @@ -165,22 +147,30 @@ public class PaymentLinkResponse { private PlatformChargebackLogic platformChargebackLogic; /** - * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to + * **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a + * fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a + * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An + * unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. */ public enum RecurringProcessingModelEnum { - CARDONFILE(String.valueOf("CardOnFile")), SUBSCRIPTION(String.valueOf("Subscription")), UNSCHEDULEDCARDONFILE(String.valueOf("UnscheduledCardOnFile")); - private static final Logger LOG = Logger.getLogger(RecurringProcessingModelEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(RecurringProcessingModelEnum.class.getName()); private String value; RecurringProcessingModelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -201,7 +191,11 @@ public static RecurringProcessingModelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("RecurringProcessingModelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RecurringProcessingModelEnum.values())); + LOG.warning( + "RecurringProcessingModelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(RecurringProcessingModelEnum.values())); return null; } } @@ -212,11 +206,8 @@ public static RecurringProcessingModelEnum fromValue(String value) { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - /** - * Gets or Sets requiredShopperFields - */ + /** Gets or Sets requiredShopperFields */ public enum RequiredShopperFieldsEnum { - BILLINGADDRESS(String.valueOf("billingAddress")), DELIVERYADDRESS(String.valueOf("deliveryAddress")), @@ -232,7 +223,7 @@ public enum RequiredShopperFieldsEnum { private String value; RequiredShopperFieldsEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -253,7 +244,11 @@ public static RequiredShopperFieldsEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("RequiredShopperFieldsEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RequiredShopperFieldsEnum.values())); + LOG.warning( + "RequiredShopperFieldsEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(RequiredShopperFieldsEnum.values())); return null; } } @@ -285,7 +280,8 @@ public static RequiredShopperFieldsEnum fromValue(String value) { public static final String JSON_PROPERTY_SHOPPER_STATEMENT = "shopperStatement"; private String shopperStatement; - public static final String JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON = "showRemovePaymentMethodButton"; + public static final String JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON = + "showRemovePaymentMethodButton"; private Boolean showRemovePaymentMethodButton; public static final String JSON_PROPERTY_SOCIAL_SECURITY_NUMBER = "socialSecurityNumber"; @@ -298,10 +294,13 @@ public static RequiredShopperFieldsEnum fromValue(String value) { private List splits; /** - * Status of the payment link. Possible values: * **active**: The link can be used to make payments. * **expired**: The expiry date for the payment link has passed. Shoppers can no longer use the link to make payments. * **completed**: The shopper completed the payment. * **paymentPending**: The shopper is in the process of making the payment. Applies to payment methods with an asynchronous flow. + * Status of the payment link. Possible values: * **active**: The link can be used to make + * payments. * **expired**: The expiry date for the payment link has passed. Shoppers can no + * longer use the link to make payments. * **completed**: The shopper completed the payment. * + * **paymentPending**: The shopper is in the process of making the payment. Applies to payment + * methods with an asynchronous flow. */ public enum StatusEnum { - ACTIVE(String.valueOf("active")), COMPLETED(String.valueOf("completed")), @@ -317,7 +316,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -338,7 +337,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -350,10 +353,15 @@ public static StatusEnum fromValue(String value) { private String store; /** - * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. When set to **askForConsent** or **enabled**, you must also include the `recurringProcessingModel` parameter. + * Indicates if the details of the payment method will be stored for the shopper. Possible values: + * * **disabled** – No details will be stored (default). * **askForConsent** – If the + * `shopperReference` is provided, the UI lets the shopper choose if they want their + * payment details to be stored. * **enabled** – If the `shopperReference` is provided, + * the details will be stored without asking the shopper for consent. When set to + * **askForConsent** or **enabled**, you must also include the + * `recurringProcessingModel` parameter. */ public enum StorePaymentMethodModeEnum { - ASKFORCONSENT(String.valueOf("askForConsent")), DISABLED(String.valueOf("disabled")), @@ -365,7 +373,7 @@ public enum StorePaymentMethodModeEnum { private String value; StorePaymentMethodModeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -386,7 +394,11 @@ public static StorePaymentMethodModeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StorePaymentMethodModeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StorePaymentMethodModeEnum.values())); + LOG.warning( + "StorePaymentMethodModeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StorePaymentMethodModeEnum.values())); return null; } } @@ -409,23 +421,25 @@ public static StorePaymentMethodModeEnum fromValue(String value) { public static final String JSON_PROPERTY_URL = "url"; private String url; - public PaymentLinkResponse() { - } + public PaymentLinkResponse() {} @JsonCreator public PaymentLinkResponse( - @JsonProperty(JSON_PROPERTY_ID) String id, - @JsonProperty(JSON_PROPERTY_URL) String url - ) { + @JsonProperty(JSON_PROPERTY_ID) String id, @JsonProperty(JSON_PROPERTY_URL) String url) { this(); this.id = id; this.url = url; } /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their + * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer + * to payment methods, use their [payment method + * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse allowedPaymentMethods(List allowedPaymentMethods) { @@ -442,8 +456,14 @@ public PaymentLinkResponse addAllowedPaymentMethodsItem(String allowedPaymentMet } /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` - * @return allowedPaymentMethods List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their + * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * + * @return allowedPaymentMethods List of payment methods to be presented to the shopper. To refer + * to payment methods, use their [payment method + * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -452,9 +472,14 @@ public List getAllowedPaymentMethods() { } /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their + * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer + * to payment methods, use their [payment method + * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -465,7 +490,7 @@ public void setAllowedPaymentMethods(List allowedPaymentMethods) { /** * amount * - * @param amount + * @param amount * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse amount(Amount amount) { @@ -475,7 +500,8 @@ public PaymentLinkResponse amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -486,7 +512,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -497,7 +523,7 @@ public void setAmount(Amount amount) { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse applicationInfo(ApplicationInfo applicationInfo) { @@ -507,7 +533,8 @@ public PaymentLinkResponse applicationInfo(ApplicationInfo applicationInfo) { /** * Get applicationInfo - * @return applicationInfo + * + * @return applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -518,7 +545,7 @@ public ApplicationInfo getApplicationInfo() { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -529,7 +556,7 @@ public void setApplicationInfo(ApplicationInfo applicationInfo) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse billingAddress(Address billingAddress) { @@ -539,7 +566,8 @@ public PaymentLinkResponse billingAddress(Address billingAddress) { /** * Get billingAddress - * @return billingAddress + * + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -550,7 +578,7 @@ public Address getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -559,9 +587,14 @@ public void setBillingAddress(Address billingAddress) { } /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their + * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to + * payment methods, use their [payment method + * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse blockedPaymentMethods(List blockedPaymentMethods) { @@ -578,8 +611,14 @@ public PaymentLinkResponse addBlockedPaymentMethodsItem(String blockedPaymentMet } /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` - * @return blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their + * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * + * @return blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer + * to payment methods, use their [payment method + * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_BLOCKED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -588,9 +627,14 @@ public List getBlockedPaymentMethods() { } /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their + * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to + * payment methods, use their [payment method + * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_BLOCKED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -601,7 +645,8 @@ public void setBlockedPaymentMethods(List blockedPaymentMethods) { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, + * specified in hours. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse captureDelayHours(Integer captureDelayHours) { @@ -611,7 +656,9 @@ public PaymentLinkResponse captureDelayHours(Integer captureDelayHours) { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. - * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. + * + * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, + * specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -622,7 +669,8 @@ public Integer getCaptureDelayHours() { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, + * specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -643,6 +691,7 @@ public PaymentLinkResponse countryCode(String countryCode) { /** * The shopper's two-letter country code. + * * @return countryCode The shopper's two-letter country code. */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @@ -663,9 +712,11 @@ public void setCountryCode(String countryCode) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): + * YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse dateOfBirth(LocalDate dateOfBirth) { @@ -674,8 +725,11 @@ public PaymentLinkResponse dateOfBirth(LocalDate dateOfBirth) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD - * @return dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): + * YYYY-MM-DD + * + * @return dateOfBirth The shopper's date of birth. Format + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -684,9 +738,11 @@ public LocalDate getDateOfBirth() { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): + * YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -695,9 +751,13 @@ public void setDateOfBirth(LocalDate dateOfBirth) { } /** - * The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * The date and time when the purchased goods should be delivered. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. * - * @param deliverAt The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * @param deliverAt The date and time when the purchased goods should be delivered. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse deliverAt(OffsetDateTime deliverAt) { @@ -706,8 +766,13 @@ public PaymentLinkResponse deliverAt(OffsetDateTime deliverAt) { } /** - * The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. - * @return deliverAt The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * The date and time when the purchased goods should be delivered. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. + * + * @return deliverAt The date and time when the purchased goods should be delivered. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_DELIVER_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -716,9 +781,13 @@ public OffsetDateTime getDeliverAt() { } /** - * The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * The date and time when the purchased goods should be delivered. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. * - * @param deliverAt The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * @param deliverAt The date and time when the purchased goods should be delivered. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_DELIVER_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -729,7 +798,7 @@ public void setDeliverAt(OffsetDateTime deliverAt) { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse deliveryAddress(Address deliveryAddress) { @@ -739,7 +808,8 @@ public PaymentLinkResponse deliveryAddress(Address deliveryAddress) { /** * Get deliveryAddress - * @return deliveryAddress + * + * @return deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -750,7 +820,7 @@ public Address getDeliveryAddress() { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -761,7 +831,8 @@ public void setDeliveryAddress(Address deliveryAddress) { /** * A short description visible on the payment page. Maximum length: 280 characters. * - * @param description A short description visible on the payment page. Maximum length: 280 characters. + * @param description A short description visible on the payment page. Maximum length: 280 + * characters. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse description(String description) { @@ -771,7 +842,9 @@ public PaymentLinkResponse description(String description) { /** * A short description visible on the payment page. Maximum length: 280 characters. - * @return description A short description visible on the payment page. Maximum length: 280 characters. + * + * @return description A short description visible on the payment page. Maximum length: 280 + * characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -782,7 +855,8 @@ public String getDescription() { /** * A short description visible on the payment page. Maximum length: 280 characters. * - * @param description A short description visible on the payment page. Maximum length: 280 characters. + * @param description A short description visible on the payment page. Maximum length: 280 + * characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -791,9 +865,16 @@ public void setDescription(String description) { } /** - * The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created. + * The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format + * with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The + * maximum expiry date is 70 days after the payment link is created. If not provided, the payment + * link expires 24 hours after it was created. * - * @param expiresAt The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created. + * @param expiresAt The date when the payment link expires. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: + * YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry + * date is 70 days after the payment link is created. If not provided, the payment link + * expires 24 hours after it was created. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse expiresAt(OffsetDateTime expiresAt) { @@ -802,8 +883,16 @@ public PaymentLinkResponse expiresAt(OffsetDateTime expiresAt) { } /** - * The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created. - * @return expiresAt The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created. + * The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format + * with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The + * maximum expiry date is 70 days after the payment link is created. If not provided, the payment + * link expires 24 hours after it was created. + * + * @return expiresAt The date when the payment link expires. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: + * YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry + * date is 70 days after the payment link is created. If not provided, the payment link + * expires 24 hours after it was created. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -812,9 +901,16 @@ public OffsetDateTime getExpiresAt() { } /** - * The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created. + * The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format + * with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The + * maximum expiry date is 70 days after the payment link is created. If not provided, the payment + * link expires 24 hours after it was created. * - * @param expiresAt The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created. + * @param expiresAt The date when the payment link expires. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: + * YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry + * date is 70 days after the payment link is created. If not provided, the payment link + * expires 24 hours after it was created. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -825,7 +921,7 @@ public void setExpiresAt(OffsetDateTime expiresAt) { /** * fundOrigin * - * @param fundOrigin + * @param fundOrigin * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse fundOrigin(FundOrigin fundOrigin) { @@ -835,7 +931,8 @@ public PaymentLinkResponse fundOrigin(FundOrigin fundOrigin) { /** * Get fundOrigin - * @return fundOrigin + * + * @return fundOrigin */ @JsonProperty(JSON_PROPERTY_FUND_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -846,7 +943,7 @@ public FundOrigin getFundOrigin() { /** * fundOrigin * - * @param fundOrigin + * @param fundOrigin */ @JsonProperty(JSON_PROPERTY_FUND_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -857,7 +954,7 @@ public void setFundOrigin(FundOrigin fundOrigin) { /** * fundRecipient * - * @param fundRecipient + * @param fundRecipient * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse fundRecipient(FundRecipient fundRecipient) { @@ -867,7 +964,8 @@ public PaymentLinkResponse fundRecipient(FundRecipient fundRecipient) { /** * Get fundRecipient - * @return fundRecipient + * + * @return fundRecipient */ @JsonProperty(JSON_PROPERTY_FUND_RECIPIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -878,7 +976,7 @@ public FundRecipient getFundRecipient() { /** * fundRecipient * - * @param fundRecipient + * @param fundRecipient */ @JsonProperty(JSON_PROPERTY_FUND_RECIPIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -888,6 +986,7 @@ public void setFundRecipient(FundRecipient fundRecipient) { /** * A unique identifier of the payment link. + * * @return id A unique identifier of the payment link. */ @JsonProperty(JSON_PROPERTY_ID) @@ -896,11 +995,16 @@ public String getId() { return id; } - /** - * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. + * A set of key-value pairs that specifies the installment options available per payment method. + * The key must be a payment method name in lowercase. For example, **card** to specify + * installment options for all cards, or **visa** or **mc**. The value must be an object + * containing the installment options. * - * @param installmentOptions A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. + * @param installmentOptions A set of key-value pairs that specifies the installment options + * available per payment method. The key must be a payment method name in lowercase. For + * example, **card** to specify installment options for all cards, or **visa** or **mc**. The + * value must be an object containing the installment options. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse installmentOptions(Map installmentOptions) { @@ -908,7 +1012,8 @@ public PaymentLinkResponse installmentOptions(Map ins return this; } - public PaymentLinkResponse putInstallmentOptionsItem(String key, InstallmentOption installmentOptionsItem) { + public PaymentLinkResponse putInstallmentOptionsItem( + String key, InstallmentOption installmentOptionsItem) { if (this.installmentOptions == null) { this.installmentOptions = new HashMap<>(); } @@ -917,8 +1022,15 @@ public PaymentLinkResponse putInstallmentOptionsItem(String key, InstallmentOpti } /** - * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. - * @return installmentOptions A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. + * A set of key-value pairs that specifies the installment options available per payment method. + * The key must be a payment method name in lowercase. For example, **card** to specify + * installment options for all cards, or **visa** or **mc**. The value must be an object + * containing the installment options. + * + * @return installmentOptions A set of key-value pairs that specifies the installment options + * available per payment method. The key must be a payment method name in lowercase. For + * example, **card** to specify installment options for all cards, or **visa** or **mc**. The + * value must be an object containing the installment options. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -927,9 +1039,15 @@ public Map getInstallmentOptions() { } /** - * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. + * A set of key-value pairs that specifies the installment options available per payment method. + * The key must be a payment method name in lowercase. For example, **card** to specify + * installment options for all cards, or **visa** or **mc**. The value must be an object + * containing the installment options. * - * @param installmentOptions A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. + * @param installmentOptions A set of key-value pairs that specifies the installment options + * available per payment method. The key must be a payment method name in lowercase. For + * example, **card** to specify installment options for all cards, or **visa** or **mc**. The + * value must be an object containing the installment options. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -938,9 +1056,13 @@ public void setInstallmentOptions(Map installmentOpti } /** - * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to + * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, + * Ratepay, and Riverty. * - * @param lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * @param lineItems Price and product information about the purchased items, to be included on the + * invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, + * Clearpay, Klarna, Ratepay, and Riverty. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse lineItems(List lineItems) { @@ -957,8 +1079,13 @@ public PaymentLinkResponse addLineItemsItem(LineItem lineItemsItem) { } /** - * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. - * @return lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to + * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, + * Ratepay, and Riverty. + * + * @return lineItems Price and product information about the purchased items, to be included on + * the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, + * Afterpay, Clearpay, Klarna, Ratepay, and Riverty. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -967,9 +1094,13 @@ public List getLineItems() { } /** - * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to + * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, + * Ratepay, and Riverty. * - * @param lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * @param lineItems Price and product information about the purchased items, to be included on the + * invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, + * Clearpay, Klarna, Ratepay, and Riverty. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -978,9 +1109,11 @@ public void setLineItems(List lineItems) { } /** - * Indicates if the payment must be [captured manually](https://docs.adyen.com/online-payments/capture). + * Indicates if the payment must be [captured + * manually](https://docs.adyen.com/online-payments/capture). * - * @param manualCapture Indicates if the payment must be [captured manually](https://docs.adyen.com/online-payments/capture). + * @param manualCapture Indicates if the payment must be [captured + * manually](https://docs.adyen.com/online-payments/capture). * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse manualCapture(Boolean manualCapture) { @@ -989,8 +1122,11 @@ public PaymentLinkResponse manualCapture(Boolean manualCapture) { } /** - * Indicates if the payment must be [captured manually](https://docs.adyen.com/online-payments/capture). - * @return manualCapture Indicates if the payment must be [captured manually](https://docs.adyen.com/online-payments/capture). + * Indicates if the payment must be [captured + * manually](https://docs.adyen.com/online-payments/capture). + * + * @return manualCapture Indicates if the payment must be [captured + * manually](https://docs.adyen.com/online-payments/capture). */ @JsonProperty(JSON_PROPERTY_MANUAL_CAPTURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -999,9 +1135,11 @@ public Boolean getManualCapture() { } /** - * Indicates if the payment must be [captured manually](https://docs.adyen.com/online-payments/capture). + * Indicates if the payment must be [captured + * manually](https://docs.adyen.com/online-payments/capture). * - * @param manualCapture Indicates if the payment must be [captured manually](https://docs.adyen.com/online-payments/capture). + * @param manualCapture Indicates if the payment must be [captured + * manually](https://docs.adyen.com/online-payments/capture). */ @JsonProperty(JSON_PROPERTY_MANUAL_CAPTURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1010,9 +1148,13 @@ public void setManualCapture(Boolean manualCapture) { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a + * four-digit number, which relates to a particular market segment. This code reflects the + * predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) + * (MCC) is a four-digit number, which relates to a particular market segment. This code + * reflects the predominant activity that is conducted by the merchant. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse mcc(String mcc) { @@ -1021,8 +1163,13 @@ public PaymentLinkResponse mcc(String mcc) { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. - * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a + * four-digit number, which relates to a particular market segment. This code reflects the + * predominant activity that is conducted by the merchant. + * + * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) + * (MCC) is a four-digit number, which relates to a particular market segment. This code + * reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1031,9 +1178,13 @@ public String getMcc() { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a + * four-digit number, which relates to a particular market segment. This code reflects the + * predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) + * (MCC) is a four-digit number, which relates to a particular market segment. This code + * reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1054,6 +1205,7 @@ public PaymentLinkResponse merchantAccount(String merchantAccount) { /** * The merchant account identifier for which the payment link is created. + * * @return merchantAccount The merchant account identifier for which the payment link is created. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -1074,9 +1226,12 @@ public void setMerchantAccount(String merchantAccount) { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (for example, order auth-rate). The reference should be unique per billing cycle. + * This reference allows linking multiple transactions to each other for reporting purposes (for + * example, order auth-rate). The reference should be unique per billing cycle. * - * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (for example, order auth-rate). The reference should be unique per billing cycle. + * @param merchantOrderReference This reference allows linking multiple transactions to each other + * for reporting purposes (for example, order auth-rate). The reference should be unique per + * billing cycle. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse merchantOrderReference(String merchantOrderReference) { @@ -1085,8 +1240,12 @@ public PaymentLinkResponse merchantOrderReference(String merchantOrderReference) } /** - * This reference allows linking multiple transactions to each other for reporting purposes (for example, order auth-rate). The reference should be unique per billing cycle. - * @return merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (for example, order auth-rate). The reference should be unique per billing cycle. + * This reference allows linking multiple transactions to each other for reporting purposes (for + * example, order auth-rate). The reference should be unique per billing cycle. + * + * @return merchantOrderReference This reference allows linking multiple transactions to each + * other for reporting purposes (for example, order auth-rate). The reference should be unique + * per billing cycle. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1095,9 +1254,12 @@ public String getMerchantOrderReference() { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (for example, order auth-rate). The reference should be unique per billing cycle. + * This reference allows linking multiple transactions to each other for reporting purposes (for + * example, order auth-rate). The reference should be unique per billing cycle. * - * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (for example, order auth-rate). The reference should be unique per billing cycle. + * @param merchantOrderReference This reference allows linking multiple transactions to each other + * for reporting purposes (for example, order auth-rate). The reference should be unique per + * billing cycle. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1106,9 +1268,19 @@ public void setMerchantOrderReference(String merchantOrderReference) { } /** - * Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * A key cannot have the name `checkout.linkId`. Any value that you provide with this key is going to be replaced by the real payment link ID. + * Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum + * 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size + * exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" + * occurs: \"Metadata key size exceeds limit\" * A key cannot have the name + * `checkout.linkId`. Any value that you provide with this key is going to be replaced + * by the real payment link ID. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * A key cannot have the name `checkout.linkId`. Any value that you provide with this key is going to be replaced by the real payment link ID. + * @param metadata Metadata consists of entries, each of which includes a key and a value. + * Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" + * occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. + * Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * + * A key cannot have the name `checkout.linkId`. Any value that you provide with + * this key is going to be replaced by the real payment link ID. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse metadata(Map metadata) { @@ -1125,8 +1297,19 @@ public PaymentLinkResponse putMetadataItem(String key, String metadataItem) { } /** - * Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * A key cannot have the name `checkout.linkId`. Any value that you provide with this key is going to be replaced by the real payment link ID. - * @return metadata Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * A key cannot have the name `checkout.linkId`. Any value that you provide with this key is going to be replaced by the real payment link ID. + * Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum + * 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size + * exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" + * occurs: \"Metadata key size exceeds limit\" * A key cannot have the name + * `checkout.linkId`. Any value that you provide with this key is going to be replaced + * by the real payment link ID. + * + * @return metadata Metadata consists of entries, each of which includes a key and a value. + * Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" + * occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. + * Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * + * A key cannot have the name `checkout.linkId`. Any value that you provide with + * this key is going to be replaced by the real payment link ID. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1135,9 +1318,19 @@ public Map getMetadata() { } /** - * Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * A key cannot have the name `checkout.linkId`. Any value that you provide with this key is going to be replaced by the real payment link ID. + * Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum + * 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size + * exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" + * occurs: \"Metadata key size exceeds limit\" * A key cannot have the name + * `checkout.linkId`. Any value that you provide with this key is going to be replaced + * by the real payment link ID. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * A key cannot have the name `checkout.linkId`. Any value that you provide with this key is going to be replaced by the real payment link ID. + * @param metadata Metadata consists of entries, each of which includes a key and a value. + * Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" + * occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. + * Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * + * A key cannot have the name `checkout.linkId`. Any value that you provide with + * this key is going to be replaced by the real payment link ID. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1148,17 +1341,19 @@ public void setMetadata(Map metadata) { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ - public PaymentLinkResponse platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) { + public PaymentLinkResponse platformChargebackLogic( + PlatformChargebackLogic platformChargebackLogic) { this.platformChargebackLogic = platformChargebackLogic; return this; } /** * Get platformChargebackLogic - * @return platformChargebackLogic + * + * @return platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1169,7 +1364,7 @@ public PlatformChargebackLogic getPlatformChargebackLogic() { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1178,19 +1373,53 @@ public void setPlatformChargebackLogic(PlatformChargebackLogic platformChargebac } /** - * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. - * - * @param recurringProcessingModel Defines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to + * **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a + * fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a + * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An + * unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. + * + * @param recurringProcessingModel Defines a recurring payment type. Required when + * `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible + * values: * **Subscription** – A transaction for a fixed or variable amount, which follows a + * fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are + * stored to enable one-click or omnichannel journeys, or simply to streamline the checkout + * process. Any subscription not following a fixed schedule is also considered a card-on-file + * transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction + * is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For + * example, automatic top-ups when a cardholder's balance drops below a certain amount. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ - public PaymentLinkResponse recurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) { + public PaymentLinkResponse recurringProcessingModel( + RecurringProcessingModelEnum recurringProcessingModel) { this.recurringProcessingModel = recurringProcessingModel; return this; } /** - * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. - * @return recurringProcessingModel Defines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to + * **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a + * fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a + * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An + * unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. + * + * @return recurringProcessingModel Defines a recurring payment type. Required when + * `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible + * values: * **Subscription** – A transaction for a fixed or variable amount, which follows a + * fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are + * stored to enable one-click or omnichannel journeys, or simply to streamline the checkout + * process. Any subscription not following a fixed schedule is also considered a card-on-file + * transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction + * is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For + * example, automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1199,9 +1428,25 @@ public RecurringProcessingModelEnum getRecurringProcessingModel() { } /** - * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to + * **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a + * fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a + * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An + * unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. * - * @param recurringProcessingModel Defines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * @param recurringProcessingModel Defines a recurring payment type. Required when + * `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible + * values: * **Subscription** – A transaction for a fixed or variable amount, which follows a + * fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are + * stored to enable one-click or omnichannel journeys, or simply to streamline the checkout + * process. Any subscription not following a fixed schedule is also considered a card-on-file + * transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction + * is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For + * example, automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1210,9 +1455,11 @@ public void setRecurringProcessingModel(RecurringProcessingModelEnum recurringPr } /** - * A reference that is used to uniquely identify the payment in future communications about the payment status. + * A reference that is used to uniquely identify the payment in future communications about the + * payment status. * - * @param reference A reference that is used to uniquely identify the payment in future communications about the payment status. + * @param reference A reference that is used to uniquely identify the payment in future + * communications about the payment status. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse reference(String reference) { @@ -1221,8 +1468,11 @@ public PaymentLinkResponse reference(String reference) { } /** - * A reference that is used to uniquely identify the payment in future communications about the payment status. - * @return reference A reference that is used to uniquely identify the payment in future communications about the payment status. + * A reference that is used to uniquely identify the payment in future communications about the + * payment status. + * + * @return reference A reference that is used to uniquely identify the payment in future + * communications about the payment status. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1231,9 +1481,11 @@ public String getReference() { } /** - * A reference that is used to uniquely identify the payment in future communications about the payment status. + * A reference that is used to uniquely identify the payment in future communications about the + * payment status. * - * @param reference A reference that is used to uniquely identify the payment in future communications about the payment status. + * @param reference A reference that is used to uniquely identify the payment in future + * communications about the payment status. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1242,17 +1494,31 @@ public void setReference(String reference) { } /** - * List of fields that the shopper has to provide on the payment page before completing the payment. For more information, refer to [Provide shopper information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). Possible values: * **billingAddress** – The address where to send the invoice. * **deliveryAddress** – The address where the purchased goods should be delivered. * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full name. * **telephoneNumber** – The shopper's phone number. + * List of fields that the shopper has to provide on the payment page before completing the + * payment. For more information, refer to [Provide shopper + * information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). + * Possible values: * **billingAddress** – The address where to send the invoice. * + * **deliveryAddress** – The address where the purchased goods should be delivered. * + * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full + * name. * **telephoneNumber** – The shopper's phone number. * - * @param requiredShopperFields List of fields that the shopper has to provide on the payment page before completing the payment. For more information, refer to [Provide shopper information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). Possible values: * **billingAddress** – The address where to send the invoice. * **deliveryAddress** – The address where the purchased goods should be delivered. * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full name. * **telephoneNumber** – The shopper's phone number. + * @param requiredShopperFields List of fields that the shopper has to provide on the payment page + * before completing the payment. For more information, refer to [Provide shopper + * information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). + * Possible values: * **billingAddress** – The address where to send the invoice. * + * **deliveryAddress** – The address where the purchased goods should be delivered. * + * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's + * full name. * **telephoneNumber** – The shopper's phone number. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ - public PaymentLinkResponse requiredShopperFields(List requiredShopperFields) { + public PaymentLinkResponse requiredShopperFields( + List requiredShopperFields) { this.requiredShopperFields = requiredShopperFields; return this; } - public PaymentLinkResponse addRequiredShopperFieldsItem(RequiredShopperFieldsEnum requiredShopperFieldsItem) { + public PaymentLinkResponse addRequiredShopperFieldsItem( + RequiredShopperFieldsEnum requiredShopperFieldsItem) { if (this.requiredShopperFields == null) { this.requiredShopperFields = new ArrayList<>(); } @@ -1261,8 +1527,21 @@ public PaymentLinkResponse addRequiredShopperFieldsItem(RequiredShopperFieldsEnu } /** - * List of fields that the shopper has to provide on the payment page before completing the payment. For more information, refer to [Provide shopper information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). Possible values: * **billingAddress** – The address where to send the invoice. * **deliveryAddress** – The address where the purchased goods should be delivered. * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full name. * **telephoneNumber** – The shopper's phone number. - * @return requiredShopperFields List of fields that the shopper has to provide on the payment page before completing the payment. For more information, refer to [Provide shopper information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). Possible values: * **billingAddress** – The address where to send the invoice. * **deliveryAddress** – The address where the purchased goods should be delivered. * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full name. * **telephoneNumber** – The shopper's phone number. + * List of fields that the shopper has to provide on the payment page before completing the + * payment. For more information, refer to [Provide shopper + * information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). + * Possible values: * **billingAddress** – The address where to send the invoice. * + * **deliveryAddress** – The address where the purchased goods should be delivered. * + * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full + * name. * **telephoneNumber** – The shopper's phone number. + * + * @return requiredShopperFields List of fields that the shopper has to provide on the payment + * page before completing the payment. For more information, refer to [Provide shopper + * information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). + * Possible values: * **billingAddress** – The address where to send the invoice. * + * **deliveryAddress** – The address where the purchased goods should be delivered. * + * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's + * full name. * **telephoneNumber** – The shopper's phone number. */ @JsonProperty(JSON_PROPERTY_REQUIRED_SHOPPER_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1271,9 +1550,21 @@ public List getRequiredShopperFields() { } /** - * List of fields that the shopper has to provide on the payment page before completing the payment. For more information, refer to [Provide shopper information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). Possible values: * **billingAddress** – The address where to send the invoice. * **deliveryAddress** – The address where the purchased goods should be delivered. * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full name. * **telephoneNumber** – The shopper's phone number. + * List of fields that the shopper has to provide on the payment page before completing the + * payment. For more information, refer to [Provide shopper + * information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). + * Possible values: * **billingAddress** – The address where to send the invoice. * + * **deliveryAddress** – The address where the purchased goods should be delivered. * + * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full + * name. * **telephoneNumber** – The shopper's phone number. * - * @param requiredShopperFields List of fields that the shopper has to provide on the payment page before completing the payment. For more information, refer to [Provide shopper information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). Possible values: * **billingAddress** – The address where to send the invoice. * **deliveryAddress** – The address where the purchased goods should be delivered. * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full name. * **telephoneNumber** – The shopper's phone number. + * @param requiredShopperFields List of fields that the shopper has to provide on the payment page + * before completing the payment. For more information, refer to [Provide shopper + * information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). + * Possible values: * **billingAddress** – The address where to send the invoice. * + * **deliveryAddress** – The address where the purchased goods should be delivered. * + * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's + * full name. * **telephoneNumber** – The shopper's phone number. */ @JsonProperty(JSON_PROPERTY_REQUIRED_SHOPPER_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1282,9 +1573,13 @@ public void setRequiredShopperFields(List requiredSho } /** - * Website URL used for redirection after payment is completed. If provided, a **Continue** button will be shown on the payment page. If shoppers select the button, they are redirected to the specified URL. + * Website URL used for redirection after payment is completed. If provided, a **Continue** button + * will be shown on the payment page. If shoppers select the button, they are redirected to the + * specified URL. * - * @param returnUrl Website URL used for redirection after payment is completed. If provided, a **Continue** button will be shown on the payment page. If shoppers select the button, they are redirected to the specified URL. + * @param returnUrl Website URL used for redirection after payment is completed. If provided, a + * **Continue** button will be shown on the payment page. If shoppers select the button, they + * are redirected to the specified URL. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse returnUrl(String returnUrl) { @@ -1293,8 +1588,13 @@ public PaymentLinkResponse returnUrl(String returnUrl) { } /** - * Website URL used for redirection after payment is completed. If provided, a **Continue** button will be shown on the payment page. If shoppers select the button, they are redirected to the specified URL. - * @return returnUrl Website URL used for redirection after payment is completed. If provided, a **Continue** button will be shown on the payment page. If shoppers select the button, they are redirected to the specified URL. + * Website URL used for redirection after payment is completed. If provided, a **Continue** button + * will be shown on the payment page. If shoppers select the button, they are redirected to the + * specified URL. + * + * @return returnUrl Website URL used for redirection after payment is completed. If provided, a + * **Continue** button will be shown on the payment page. If shoppers select the button, they + * are redirected to the specified URL. */ @JsonProperty(JSON_PROPERTY_RETURN_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1303,9 +1603,13 @@ public String getReturnUrl() { } /** - * Website URL used for redirection after payment is completed. If provided, a **Continue** button will be shown on the payment page. If shoppers select the button, they are redirected to the specified URL. + * Website URL used for redirection after payment is completed. If provided, a **Continue** button + * will be shown on the payment page. If shoppers select the button, they are redirected to the + * specified URL. * - * @param returnUrl Website URL used for redirection after payment is completed. If provided, a **Continue** button will be shown on the payment page. If shoppers select the button, they are redirected to the specified URL. + * @param returnUrl Website URL used for redirection after payment is completed. If provided, a + * **Continue** button will be shown on the payment page. If shoppers select the button, they + * are redirected to the specified URL. */ @JsonProperty(JSON_PROPERTY_RETURN_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1314,9 +1618,12 @@ public void setReturnUrl(String returnUrl) { } /** - * Indicates whether the payment link can be reused for multiple payments. If not provided, this defaults to **false** which means the link can be used for one successful payment only. + * Indicates whether the payment link can be reused for multiple payments. If not provided, this + * defaults to **false** which means the link can be used for one successful payment only. * - * @param reusable Indicates whether the payment link can be reused for multiple payments. If not provided, this defaults to **false** which means the link can be used for one successful payment only. + * @param reusable Indicates whether the payment link can be reused for multiple payments. If not + * provided, this defaults to **false** which means the link can be used for one successful + * payment only. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse reusable(Boolean reusable) { @@ -1325,8 +1632,12 @@ public PaymentLinkResponse reusable(Boolean reusable) { } /** - * Indicates whether the payment link can be reused for multiple payments. If not provided, this defaults to **false** which means the link can be used for one successful payment only. - * @return reusable Indicates whether the payment link can be reused for multiple payments. If not provided, this defaults to **false** which means the link can be used for one successful payment only. + * Indicates whether the payment link can be reused for multiple payments. If not provided, this + * defaults to **false** which means the link can be used for one successful payment only. + * + * @return reusable Indicates whether the payment link can be reused for multiple payments. If not + * provided, this defaults to **false** which means the link can be used for one successful + * payment only. */ @JsonProperty(JSON_PROPERTY_REUSABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1335,9 +1646,12 @@ public Boolean getReusable() { } /** - * Indicates whether the payment link can be reused for multiple payments. If not provided, this defaults to **false** which means the link can be used for one successful payment only. + * Indicates whether the payment link can be reused for multiple payments. If not provided, this + * defaults to **false** which means the link can be used for one successful payment only. * - * @param reusable Indicates whether the payment link can be reused for multiple payments. If not provided, this defaults to **false** which means the link can be used for one successful payment only. + * @param reusable Indicates whether the payment link can be reused for multiple payments. If not + * provided, this defaults to **false** which means the link can be used for one successful + * payment only. */ @JsonProperty(JSON_PROPERTY_REUSABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1348,7 +1662,7 @@ public void setReusable(Boolean reusable) { /** * riskData * - * @param riskData + * @param riskData * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse riskData(RiskData riskData) { @@ -1358,7 +1672,8 @@ public PaymentLinkResponse riskData(RiskData riskData) { /** * Get riskData - * @return riskData + * + * @return riskData */ @JsonProperty(JSON_PROPERTY_RISK_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1369,7 +1684,7 @@ public RiskData getRiskData() { /** * riskData * - * @param riskData + * @param riskData */ @JsonProperty(JSON_PROPERTY_RISK_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1390,6 +1705,7 @@ public PaymentLinkResponse shopperEmail(String shopperEmail) { /** * The shopper's email address. + * * @return shopperEmail The shopper's email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -1410,9 +1726,15 @@ public void setShopperEmail(String shopperEmail) { } /** - * The language to be used in the payment page, specified by a combination of a language and country code. For example, `en-US`. For a list of shopper locales that Pay by Link supports, refer to [Language and localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). + * The language to be used in the payment page, specified by a combination of a language and + * country code. For example, `en-US`. For a list of shopper locales that Pay by Link + * supports, refer to [Language and + * localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). * - * @param shopperLocale The language to be used in the payment page, specified by a combination of a language and country code. For example, `en-US`. For a list of shopper locales that Pay by Link supports, refer to [Language and localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). + * @param shopperLocale The language to be used in the payment page, specified by a combination of + * a language and country code. For example, `en-US`. For a list of shopper locales + * that Pay by Link supports, refer to [Language and + * localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse shopperLocale(String shopperLocale) { @@ -1421,8 +1743,15 @@ public PaymentLinkResponse shopperLocale(String shopperLocale) { } /** - * The language to be used in the payment page, specified by a combination of a language and country code. For example, `en-US`. For a list of shopper locales that Pay by Link supports, refer to [Language and localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). - * @return shopperLocale The language to be used in the payment page, specified by a combination of a language and country code. For example, `en-US`. For a list of shopper locales that Pay by Link supports, refer to [Language and localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). + * The language to be used in the payment page, specified by a combination of a language and + * country code. For example, `en-US`. For a list of shopper locales that Pay by Link + * supports, refer to [Language and + * localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). + * + * @return shopperLocale The language to be used in the payment page, specified by a combination + * of a language and country code. For example, `en-US`. For a list of shopper + * locales that Pay by Link supports, refer to [Language and + * localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1431,9 +1760,15 @@ public String getShopperLocale() { } /** - * The language to be used in the payment page, specified by a combination of a language and country code. For example, `en-US`. For a list of shopper locales that Pay by Link supports, refer to [Language and localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). + * The language to be used in the payment page, specified by a combination of a language and + * country code. For example, `en-US`. For a list of shopper locales that Pay by Link + * supports, refer to [Language and + * localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). * - * @param shopperLocale The language to be used in the payment page, specified by a combination of a language and country code. For example, `en-US`. For a list of shopper locales that Pay by Link supports, refer to [Language and localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). + * @param shopperLocale The language to be used in the payment page, specified by a combination of + * a language and country code. For example, `en-US`. For a list of shopper locales + * that Pay by Link supports, refer to [Language and + * localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1444,7 +1779,7 @@ public void setShopperLocale(String shopperLocale) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse shopperName(Name shopperName) { @@ -1454,7 +1789,8 @@ public PaymentLinkResponse shopperName(Name shopperName) { /** * Get shopperName - * @return shopperName + * + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1465,7 +1801,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1474,9 +1810,14 @@ public void setShopperName(Name shopperName) { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. The value + * is case-sensitive and must be at least three characters. > Your reference must not include + * personally identifiable information (PII) such as name or email address. * - * @param shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @param shopperReference Your reference to uniquely identify this shopper, for example user ID + * or account ID. The value is case-sensitive and must be at least three characters. > Your + * reference must not include personally identifiable information (PII) such as name or email + * address. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse shopperReference(String shopperReference) { @@ -1485,8 +1826,14 @@ public PaymentLinkResponse shopperReference(String shopperReference) { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. - * @return shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. The value + * is case-sensitive and must be at least three characters. > Your reference must not include + * personally identifiable information (PII) such as name or email address. + * + * @return shopperReference Your reference to uniquely identify this shopper, for example user ID + * or account ID. The value is case-sensitive and must be at least three characters. > Your + * reference must not include personally identifiable information (PII) such as name or email + * address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1495,9 +1842,14 @@ public String getShopperReference() { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. The value + * is case-sensitive and must be at least three characters. > Your reference must not include + * personally identifiable information (PII) such as name or email address. * - * @param shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @param shopperReference Your reference to uniquely identify this shopper, for example user ID + * or account ID. The value is case-sensitive and must be at least three characters. > Your + * reference must not include personally identifiable information (PII) such as name or email + * address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1506,9 +1858,14 @@ public void setShopperReference(String shopperReference) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 + * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, + * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend + * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed + * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * + * /_**. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse shopperStatement(String shopperStatement) { @@ -1517,8 +1874,14 @@ public PaymentLinkResponse shopperStatement(String shopperStatement) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. - * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 + * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, + * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * + * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend + * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed + * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1527,9 +1890,14 @@ public String getShopperStatement() { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 + * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, + * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend + * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed + * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1540,7 +1908,8 @@ public void setShopperStatement(String shopperStatement) { /** * Set to **false** to hide the button that lets the shopper remove a stored payment method. * - * @param showRemovePaymentMethodButton Set to **false** to hide the button that lets the shopper remove a stored payment method. + * @param showRemovePaymentMethodButton Set to **false** to hide the button that lets the shopper + * remove a stored payment method. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse showRemovePaymentMethodButton(Boolean showRemovePaymentMethodButton) { @@ -1550,7 +1919,9 @@ public PaymentLinkResponse showRemovePaymentMethodButton(Boolean showRemovePayme /** * Set to **false** to hide the button that lets the shopper remove a stored payment method. - * @return showRemovePaymentMethodButton Set to **false** to hide the button that lets the shopper remove a stored payment method. + * + * @return showRemovePaymentMethodButton Set to **false** to hide the button that lets the shopper + * remove a stored payment method. */ @JsonProperty(JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1561,7 +1932,8 @@ public Boolean getShowRemovePaymentMethodButton() { /** * Set to **false** to hide the button that lets the shopper remove a stored payment method. * - * @param showRemovePaymentMethodButton Set to **false** to hide the button that lets the shopper remove a stored payment method. + * @param showRemovePaymentMethodButton Set to **false** to hide the button that lets the shopper + * remove a stored payment method. */ @JsonProperty(JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1582,6 +1954,7 @@ public PaymentLinkResponse socialSecurityNumber(String socialSecurityNumber) { /** * The shopper's social security number. + * * @return socialSecurityNumber The shopper's social security number. */ @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER) @@ -1602,9 +1975,11 @@ public void setSocialSecurityNumber(String socialSecurityNumber) { } /** - * Boolean value indicating whether the card payment method should be split into separate debit and credit options. + * Boolean value indicating whether the card payment method should be split into separate debit + * and credit options. * - * @param splitCardFundingSources Boolean value indicating whether the card payment method should be split into separate debit and credit options. + * @param splitCardFundingSources Boolean value indicating whether the card payment method should + * be split into separate debit and credit options. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse splitCardFundingSources(Boolean splitCardFundingSources) { @@ -1613,8 +1988,11 @@ public PaymentLinkResponse splitCardFundingSources(Boolean splitCardFundingSourc } /** - * Boolean value indicating whether the card payment method should be split into separate debit and credit options. - * @return splitCardFundingSources Boolean value indicating whether the card payment method should be split into separate debit and credit options. + * Boolean value indicating whether the card payment method should be split into separate debit + * and credit options. + * + * @return splitCardFundingSources Boolean value indicating whether the card payment method should + * be split into separate debit and credit options. */ @JsonProperty(JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1623,9 +2001,11 @@ public Boolean getSplitCardFundingSources() { } /** - * Boolean value indicating whether the card payment method should be split into separate debit and credit options. + * Boolean value indicating whether the card payment method should be split into separate debit + * and credit options. * - * @param splitCardFundingSources Boolean value indicating whether the card payment method should be split into separate debit and credit options. + * @param splitCardFundingSources Boolean value indicating whether the card payment method should + * be split into separate debit and credit options. */ @JsonProperty(JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1634,9 +2014,17 @@ public void setSplitCardFundingSources(Boolean splitCardFundingSources) { } /** - * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how to split a payment when using [Adyen for + * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), + * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), + * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). * - * @param splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * @param splits An array of objects specifying how to split a payment when using [Adyen for + * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), + * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), + * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse splits(List splits) { @@ -1653,8 +2041,17 @@ public PaymentLinkResponse addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). - * @return splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how to split a payment when using [Adyen for + * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), + * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), + * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * + * @return splits An array of objects specifying how to split a payment when using [Adyen for + * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), + * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), + * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1663,9 +2060,17 @@ public List getSplits() { } /** - * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how to split a payment when using [Adyen for + * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), + * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), + * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). * - * @param splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * @param splits An array of objects specifying how to split a payment when using [Adyen for + * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), + * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), + * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1674,9 +2079,17 @@ public void setSplits(List splits) { } /** - * Status of the payment link. Possible values: * **active**: The link can be used to make payments. * **expired**: The expiry date for the payment link has passed. Shoppers can no longer use the link to make payments. * **completed**: The shopper completed the payment. * **paymentPending**: The shopper is in the process of making the payment. Applies to payment methods with an asynchronous flow. + * Status of the payment link. Possible values: * **active**: The link can be used to make + * payments. * **expired**: The expiry date for the payment link has passed. Shoppers can no + * longer use the link to make payments. * **completed**: The shopper completed the payment. * + * **paymentPending**: The shopper is in the process of making the payment. Applies to payment + * methods with an asynchronous flow. * - * @param status Status of the payment link. Possible values: * **active**: The link can be used to make payments. * **expired**: The expiry date for the payment link has passed. Shoppers can no longer use the link to make payments. * **completed**: The shopper completed the payment. * **paymentPending**: The shopper is in the process of making the payment. Applies to payment methods with an asynchronous flow. + * @param status Status of the payment link. Possible values: * **active**: The link can be used + * to make payments. * **expired**: The expiry date for the payment link has passed. Shoppers + * can no longer use the link to make payments. * **completed**: The shopper completed the + * payment. * **paymentPending**: The shopper is in the process of making the payment. Applies + * to payment methods with an asynchronous flow. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse status(StatusEnum status) { @@ -1685,8 +2098,17 @@ public PaymentLinkResponse status(StatusEnum status) { } /** - * Status of the payment link. Possible values: * **active**: The link can be used to make payments. * **expired**: The expiry date for the payment link has passed. Shoppers can no longer use the link to make payments. * **completed**: The shopper completed the payment. * **paymentPending**: The shopper is in the process of making the payment. Applies to payment methods with an asynchronous flow. - * @return status Status of the payment link. Possible values: * **active**: The link can be used to make payments. * **expired**: The expiry date for the payment link has passed. Shoppers can no longer use the link to make payments. * **completed**: The shopper completed the payment. * **paymentPending**: The shopper is in the process of making the payment. Applies to payment methods with an asynchronous flow. + * Status of the payment link. Possible values: * **active**: The link can be used to make + * payments. * **expired**: The expiry date for the payment link has passed. Shoppers can no + * longer use the link to make payments. * **completed**: The shopper completed the payment. * + * **paymentPending**: The shopper is in the process of making the payment. Applies to payment + * methods with an asynchronous flow. + * + * @return status Status of the payment link. Possible values: * **active**: The link can be used + * to make payments. * **expired**: The expiry date for the payment link has passed. Shoppers + * can no longer use the link to make payments. * **completed**: The shopper completed the + * payment. * **paymentPending**: The shopper is in the process of making the payment. Applies + * to payment methods with an asynchronous flow. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1695,9 +2117,17 @@ public StatusEnum getStatus() { } /** - * Status of the payment link. Possible values: * **active**: The link can be used to make payments. * **expired**: The expiry date for the payment link has passed. Shoppers can no longer use the link to make payments. * **completed**: The shopper completed the payment. * **paymentPending**: The shopper is in the process of making the payment. Applies to payment methods with an asynchronous flow. + * Status of the payment link. Possible values: * **active**: The link can be used to make + * payments. * **expired**: The expiry date for the payment link has passed. Shoppers can no + * longer use the link to make payments. * **completed**: The shopper completed the payment. * + * **paymentPending**: The shopper is in the process of making the payment. Applies to payment + * methods with an asynchronous flow. * - * @param status Status of the payment link. Possible values: * **active**: The link can be used to make payments. * **expired**: The expiry date for the payment link has passed. Shoppers can no longer use the link to make payments. * **completed**: The shopper completed the payment. * **paymentPending**: The shopper is in the process of making the payment. Applies to payment methods with an asynchronous flow. + * @param status Status of the payment link. Possible values: * **active**: The link can be used + * to make payments. * **expired**: The expiry date for the payment link has passed. Shoppers + * can no longer use the link to make payments. * **completed**: The shopper completed the + * payment. * **paymentPending**: The shopper is in the process of making the payment. Applies + * to payment methods with an asynchronous flow. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1718,6 +2148,7 @@ public PaymentLinkResponse store(String store) { /** * The physical store, for which this payment is processed. + * * @return store The physical store, for which this payment is processed. */ @JsonProperty(JSON_PROPERTY_STORE) @@ -1738,19 +2169,45 @@ public void setStore(String store) { } /** - * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. When set to **askForConsent** or **enabled**, you must also include the `recurringProcessingModel` parameter. + * Indicates if the details of the payment method will be stored for the shopper. Possible values: + * * **disabled** – No details will be stored (default). * **askForConsent** – If the + * `shopperReference` is provided, the UI lets the shopper choose if they want their + * payment details to be stored. * **enabled** – If the `shopperReference` is provided, + * the details will be stored without asking the shopper for consent. When set to + * **askForConsent** or **enabled**, you must also include the + * `recurringProcessingModel` parameter. * - * @param storePaymentMethodMode Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. When set to **askForConsent** or **enabled**, you must also include the `recurringProcessingModel` parameter. + * @param storePaymentMethodMode Indicates if the details of the payment method will be stored for + * the shopper. Possible values: * **disabled** – No details will be stored (default). * + * **askForConsent** – If the `shopperReference` is provided, the UI lets the + * shopper choose if they want their payment details to be stored. * **enabled** – If the + * `shopperReference` is provided, the details will be stored without asking the + * shopper for consent. When set to **askForConsent** or **enabled**, you must also include + * the `recurringProcessingModel` parameter. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ - public PaymentLinkResponse storePaymentMethodMode(StorePaymentMethodModeEnum storePaymentMethodMode) { + public PaymentLinkResponse storePaymentMethodMode( + StorePaymentMethodModeEnum storePaymentMethodMode) { this.storePaymentMethodMode = storePaymentMethodMode; return this; } /** - * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. When set to **askForConsent** or **enabled**, you must also include the `recurringProcessingModel` parameter. - * @return storePaymentMethodMode Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. When set to **askForConsent** or **enabled**, you must also include the `recurringProcessingModel` parameter. + * Indicates if the details of the payment method will be stored for the shopper. Possible values: + * * **disabled** – No details will be stored (default). * **askForConsent** – If the + * `shopperReference` is provided, the UI lets the shopper choose if they want their + * payment details to be stored. * **enabled** – If the `shopperReference` is provided, + * the details will be stored without asking the shopper for consent. When set to + * **askForConsent** or **enabled**, you must also include the + * `recurringProcessingModel` parameter. + * + * @return storePaymentMethodMode Indicates if the details of the payment method will be stored + * for the shopper. Possible values: * **disabled** – No details will be stored (default). * + * **askForConsent** – If the `shopperReference` is provided, the UI lets the + * shopper choose if they want their payment details to be stored. * **enabled** – If the + * `shopperReference` is provided, the details will be stored without asking the + * shopper for consent. When set to **askForConsent** or **enabled**, you must also include + * the `recurringProcessingModel` parameter. */ @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1759,9 +2216,21 @@ public StorePaymentMethodModeEnum getStorePaymentMethodMode() { } /** - * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. When set to **askForConsent** or **enabled**, you must also include the `recurringProcessingModel` parameter. + * Indicates if the details of the payment method will be stored for the shopper. Possible values: + * * **disabled** – No details will be stored (default). * **askForConsent** – If the + * `shopperReference` is provided, the UI lets the shopper choose if they want their + * payment details to be stored. * **enabled** – If the `shopperReference` is provided, + * the details will be stored without asking the shopper for consent. When set to + * **askForConsent** or **enabled**, you must also include the + * `recurringProcessingModel` parameter. * - * @param storePaymentMethodMode Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. When set to **askForConsent** or **enabled**, you must also include the `recurringProcessingModel` parameter. + * @param storePaymentMethodMode Indicates if the details of the payment method will be stored for + * the shopper. Possible values: * **disabled** – No details will be stored (default). * + * **askForConsent** – If the `shopperReference` is provided, the UI lets the + * shopper choose if they want their payment details to be stored. * **enabled** – If the + * `shopperReference` is provided, the details will be stored without asking the + * shopper for consent. When set to **askForConsent** or **enabled**, you must also include + * the `recurringProcessingModel` parameter. */ @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1770,9 +2239,17 @@ public void setStorePaymentMethodMode(StorePaymentMethodModeEnum storePaymentMet } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse telephoneNumber(String telephoneNumber) { @@ -1781,8 +2258,17 @@ public PaymentLinkResponse telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. - * @return telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. + * + * @return telephoneNumber The shopper's telephone number. The phone number must include a + * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1791,9 +2277,17 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1802,9 +2296,14 @@ public void setTelephoneNumber(String telephoneNumber) { } /** - * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. + * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to + * customize the appearance of the payment page. If not specified, the payment page is rendered + * according to the theme set as default in your Customer Area. * - * @param themeId A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. + * @param themeId A + * [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to + * customize the appearance of the payment page. If not specified, the payment page is + * rendered according to the theme set as default in your Customer Area. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse themeId(String themeId) { @@ -1813,8 +2312,14 @@ public PaymentLinkResponse themeId(String themeId) { } /** - * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. - * @return themeId A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. + * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to + * customize the appearance of the payment page. If not specified, the payment page is rendered + * according to the theme set as default in your Customer Area. + * + * @return themeId A + * [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to + * customize the appearance of the payment page. If not specified, the payment page is + * rendered according to the theme set as default in your Customer Area. */ @JsonProperty(JSON_PROPERTY_THEME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1823,9 +2328,14 @@ public String getThemeId() { } /** - * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. + * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to + * customize the appearance of the payment page. If not specified, the payment page is rendered + * according to the theme set as default in your Customer Area. * - * @param themeId A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. + * @param themeId A + * [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to + * customize the appearance of the payment page. If not specified, the payment page is + * rendered according to the theme set as default in your Customer Area. */ @JsonProperty(JSON_PROPERTY_THEME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1836,17 +2346,19 @@ public void setThemeId(String themeId) { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ - public PaymentLinkResponse threeDS2RequestData(CheckoutSessionThreeDS2RequestData threeDS2RequestData) { + public PaymentLinkResponse threeDS2RequestData( + CheckoutSessionThreeDS2RequestData threeDS2RequestData) { this.threeDS2RequestData = threeDS2RequestData; return this; } /** * Get threeDS2RequestData - * @return threeDS2RequestData + * + * @return threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1857,7 +2369,7 @@ public CheckoutSessionThreeDS2RequestData getThreeDS2RequestData() { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1866,9 +2378,13 @@ public void setThreeDS2RequestData(CheckoutSessionThreeDS2RequestData threeDS2Re } /** - * The date when the payment link status was updated. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * The date when the payment link status was updated. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. * - * @param updatedAt The date when the payment link status was updated. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * @param updatedAt The date when the payment link status was updated. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse updatedAt(OffsetDateTime updatedAt) { @@ -1877,8 +2393,13 @@ public PaymentLinkResponse updatedAt(OffsetDateTime updatedAt) { } /** - * The date when the payment link status was updated. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. - * @return updatedAt The date when the payment link status was updated. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * The date when the payment link status was updated. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. + * + * @return updatedAt The date when the payment link status was updated. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1887,9 +2408,13 @@ public OffsetDateTime getUpdatedAt() { } /** - * The date when the payment link status was updated. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * The date when the payment link status was updated. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. * - * @param updatedAt The date when the payment link status was updated. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + * @param updatedAt The date when the payment link status was updated. [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, + * **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1899,6 +2424,7 @@ public void setUpdatedAt(OffsetDateTime updatedAt) { /** * The URL at which the shopper can complete the payment. + * * @return url The URL at which the shopper can complete the payment. */ @JsonProperty(JSON_PROPERTY_URL) @@ -1907,10 +2433,7 @@ public String getUrl() { return url; } - - /** - * Return true if this PaymentLinkResponse object is equal to o. - */ + /** Return true if this PaymentLinkResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -1920,68 +2443,120 @@ public boolean equals(Object o) { return false; } PaymentLinkResponse paymentLinkResponse = (PaymentLinkResponse) o; - return Objects.equals(this.allowedPaymentMethods, paymentLinkResponse.allowedPaymentMethods) && - Objects.equals(this.amount, paymentLinkResponse.amount) && - Objects.equals(this.applicationInfo, paymentLinkResponse.applicationInfo) && - Objects.equals(this.billingAddress, paymentLinkResponse.billingAddress) && - Objects.equals(this.blockedPaymentMethods, paymentLinkResponse.blockedPaymentMethods) && - Objects.equals(this.captureDelayHours, paymentLinkResponse.captureDelayHours) && - Objects.equals(this.countryCode, paymentLinkResponse.countryCode) && - Objects.equals(this.dateOfBirth, paymentLinkResponse.dateOfBirth) && - Objects.equals(this.deliverAt, paymentLinkResponse.deliverAt) && - Objects.equals(this.deliveryAddress, paymentLinkResponse.deliveryAddress) && - Objects.equals(this.description, paymentLinkResponse.description) && - Objects.equals(this.expiresAt, paymentLinkResponse.expiresAt) && - Objects.equals(this.fundOrigin, paymentLinkResponse.fundOrigin) && - Objects.equals(this.fundRecipient, paymentLinkResponse.fundRecipient) && - Objects.equals(this.id, paymentLinkResponse.id) && - Objects.equals(this.installmentOptions, paymentLinkResponse.installmentOptions) && - Objects.equals(this.lineItems, paymentLinkResponse.lineItems) && - Objects.equals(this.manualCapture, paymentLinkResponse.manualCapture) && - Objects.equals(this.mcc, paymentLinkResponse.mcc) && - Objects.equals(this.merchantAccount, paymentLinkResponse.merchantAccount) && - Objects.equals(this.merchantOrderReference, paymentLinkResponse.merchantOrderReference) && - Objects.equals(this.metadata, paymentLinkResponse.metadata) && - Objects.equals(this.platformChargebackLogic, paymentLinkResponse.platformChargebackLogic) && - Objects.equals(this.recurringProcessingModel, paymentLinkResponse.recurringProcessingModel) && - Objects.equals(this.reference, paymentLinkResponse.reference) && - Objects.equals(this.requiredShopperFields, paymentLinkResponse.requiredShopperFields) && - Objects.equals(this.returnUrl, paymentLinkResponse.returnUrl) && - Objects.equals(this.reusable, paymentLinkResponse.reusable) && - Objects.equals(this.riskData, paymentLinkResponse.riskData) && - Objects.equals(this.shopperEmail, paymentLinkResponse.shopperEmail) && - Objects.equals(this.shopperLocale, paymentLinkResponse.shopperLocale) && - Objects.equals(this.shopperName, paymentLinkResponse.shopperName) && - Objects.equals(this.shopperReference, paymentLinkResponse.shopperReference) && - Objects.equals(this.shopperStatement, paymentLinkResponse.shopperStatement) && - Objects.equals(this.showRemovePaymentMethodButton, paymentLinkResponse.showRemovePaymentMethodButton) && - Objects.equals(this.socialSecurityNumber, paymentLinkResponse.socialSecurityNumber) && - Objects.equals(this.splitCardFundingSources, paymentLinkResponse.splitCardFundingSources) && - Objects.equals(this.splits, paymentLinkResponse.splits) && - Objects.equals(this.status, paymentLinkResponse.status) && - Objects.equals(this.store, paymentLinkResponse.store) && - Objects.equals(this.storePaymentMethodMode, paymentLinkResponse.storePaymentMethodMode) && - Objects.equals(this.telephoneNumber, paymentLinkResponse.telephoneNumber) && - Objects.equals(this.themeId, paymentLinkResponse.themeId) && - Objects.equals(this.threeDS2RequestData, paymentLinkResponse.threeDS2RequestData) && - Objects.equals(this.updatedAt, paymentLinkResponse.updatedAt) && - Objects.equals(this.url, paymentLinkResponse.url); + return Objects.equals(this.allowedPaymentMethods, paymentLinkResponse.allowedPaymentMethods) + && Objects.equals(this.amount, paymentLinkResponse.amount) + && Objects.equals(this.applicationInfo, paymentLinkResponse.applicationInfo) + && Objects.equals(this.billingAddress, paymentLinkResponse.billingAddress) + && Objects.equals(this.blockedPaymentMethods, paymentLinkResponse.blockedPaymentMethods) + && Objects.equals(this.captureDelayHours, paymentLinkResponse.captureDelayHours) + && Objects.equals(this.countryCode, paymentLinkResponse.countryCode) + && Objects.equals(this.dateOfBirth, paymentLinkResponse.dateOfBirth) + && Objects.equals(this.deliverAt, paymentLinkResponse.deliverAt) + && Objects.equals(this.deliveryAddress, paymentLinkResponse.deliveryAddress) + && Objects.equals(this.description, paymentLinkResponse.description) + && Objects.equals(this.expiresAt, paymentLinkResponse.expiresAt) + && Objects.equals(this.fundOrigin, paymentLinkResponse.fundOrigin) + && Objects.equals(this.fundRecipient, paymentLinkResponse.fundRecipient) + && Objects.equals(this.id, paymentLinkResponse.id) + && Objects.equals(this.installmentOptions, paymentLinkResponse.installmentOptions) + && Objects.equals(this.lineItems, paymentLinkResponse.lineItems) + && Objects.equals(this.manualCapture, paymentLinkResponse.manualCapture) + && Objects.equals(this.mcc, paymentLinkResponse.mcc) + && Objects.equals(this.merchantAccount, paymentLinkResponse.merchantAccount) + && Objects.equals(this.merchantOrderReference, paymentLinkResponse.merchantOrderReference) + && Objects.equals(this.metadata, paymentLinkResponse.metadata) + && Objects.equals(this.platformChargebackLogic, paymentLinkResponse.platformChargebackLogic) + && Objects.equals( + this.recurringProcessingModel, paymentLinkResponse.recurringProcessingModel) + && Objects.equals(this.reference, paymentLinkResponse.reference) + && Objects.equals(this.requiredShopperFields, paymentLinkResponse.requiredShopperFields) + && Objects.equals(this.returnUrl, paymentLinkResponse.returnUrl) + && Objects.equals(this.reusable, paymentLinkResponse.reusable) + && Objects.equals(this.riskData, paymentLinkResponse.riskData) + && Objects.equals(this.shopperEmail, paymentLinkResponse.shopperEmail) + && Objects.equals(this.shopperLocale, paymentLinkResponse.shopperLocale) + && Objects.equals(this.shopperName, paymentLinkResponse.shopperName) + && Objects.equals(this.shopperReference, paymentLinkResponse.shopperReference) + && Objects.equals(this.shopperStatement, paymentLinkResponse.shopperStatement) + && Objects.equals( + this.showRemovePaymentMethodButton, paymentLinkResponse.showRemovePaymentMethodButton) + && Objects.equals(this.socialSecurityNumber, paymentLinkResponse.socialSecurityNumber) + && Objects.equals(this.splitCardFundingSources, paymentLinkResponse.splitCardFundingSources) + && Objects.equals(this.splits, paymentLinkResponse.splits) + && Objects.equals(this.status, paymentLinkResponse.status) + && Objects.equals(this.store, paymentLinkResponse.store) + && Objects.equals(this.storePaymentMethodMode, paymentLinkResponse.storePaymentMethodMode) + && Objects.equals(this.telephoneNumber, paymentLinkResponse.telephoneNumber) + && Objects.equals(this.themeId, paymentLinkResponse.themeId) + && Objects.equals(this.threeDS2RequestData, paymentLinkResponse.threeDS2RequestData) + && Objects.equals(this.updatedAt, paymentLinkResponse.updatedAt) + && Objects.equals(this.url, paymentLinkResponse.url); } @Override public int hashCode() { - return Objects.hash(allowedPaymentMethods, amount, applicationInfo, billingAddress, blockedPaymentMethods, captureDelayHours, countryCode, dateOfBirth, deliverAt, deliveryAddress, description, expiresAt, fundOrigin, fundRecipient, id, installmentOptions, lineItems, manualCapture, mcc, merchantAccount, merchantOrderReference, metadata, platformChargebackLogic, recurringProcessingModel, reference, requiredShopperFields, returnUrl, reusable, riskData, shopperEmail, shopperLocale, shopperName, shopperReference, shopperStatement, showRemovePaymentMethodButton, socialSecurityNumber, splitCardFundingSources, splits, status, store, storePaymentMethodMode, telephoneNumber, themeId, threeDS2RequestData, updatedAt, url); + return Objects.hash( + allowedPaymentMethods, + amount, + applicationInfo, + billingAddress, + blockedPaymentMethods, + captureDelayHours, + countryCode, + dateOfBirth, + deliverAt, + deliveryAddress, + description, + expiresAt, + fundOrigin, + fundRecipient, + id, + installmentOptions, + lineItems, + manualCapture, + mcc, + merchantAccount, + merchantOrderReference, + metadata, + platformChargebackLogic, + recurringProcessingModel, + reference, + requiredShopperFields, + returnUrl, + reusable, + riskData, + shopperEmail, + shopperLocale, + shopperName, + shopperReference, + shopperStatement, + showRemovePaymentMethodButton, + socialSecurityNumber, + splitCardFundingSources, + splits, + status, + store, + storePaymentMethodMode, + telephoneNumber, + themeId, + threeDS2RequestData, + updatedAt, + url); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentLinkResponse {\n"); - sb.append(" allowedPaymentMethods: ").append(toIndentedString(allowedPaymentMethods)).append("\n"); + sb.append(" allowedPaymentMethods: ") + .append(toIndentedString(allowedPaymentMethods)) + .append("\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" applicationInfo: ").append(toIndentedString(applicationInfo)).append("\n"); sb.append(" billingAddress: ").append(toIndentedString(billingAddress)).append("\n"); - sb.append(" blockedPaymentMethods: ").append(toIndentedString(blockedPaymentMethods)).append("\n"); + sb.append(" blockedPaymentMethods: ") + .append(toIndentedString(blockedPaymentMethods)) + .append("\n"); sb.append(" captureDelayHours: ").append(toIndentedString(captureDelayHours)).append("\n"); sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n"); sb.append(" dateOfBirth: ").append(toIndentedString(dateOfBirth)).append("\n"); @@ -1997,12 +2572,20 @@ public String toString() { sb.append(" manualCapture: ").append(toIndentedString(manualCapture)).append("\n"); sb.append(" mcc: ").append(toIndentedString(mcc)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" merchantOrderReference: ").append(toIndentedString(merchantOrderReference)).append("\n"); + sb.append(" merchantOrderReference: ") + .append(toIndentedString(merchantOrderReference)) + .append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n"); - sb.append(" recurringProcessingModel: ").append(toIndentedString(recurringProcessingModel)).append("\n"); + sb.append(" platformChargebackLogic: ") + .append(toIndentedString(platformChargebackLogic)) + .append("\n"); + sb.append(" recurringProcessingModel: ") + .append(toIndentedString(recurringProcessingModel)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); - sb.append(" requiredShopperFields: ").append(toIndentedString(requiredShopperFields)).append("\n"); + sb.append(" requiredShopperFields: ") + .append(toIndentedString(requiredShopperFields)) + .append("\n"); sb.append(" returnUrl: ").append(toIndentedString(returnUrl)).append("\n"); sb.append(" reusable: ").append(toIndentedString(reusable)).append("\n"); sb.append(" riskData: ").append(toIndentedString(riskData)).append("\n"); @@ -2011,16 +2594,26 @@ public String toString() { sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append(" shopperStatement: ").append(toIndentedString(shopperStatement)).append("\n"); - sb.append(" showRemovePaymentMethodButton: ").append(toIndentedString(showRemovePaymentMethodButton)).append("\n"); - sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); - sb.append(" splitCardFundingSources: ").append(toIndentedString(splitCardFundingSources)).append("\n"); + sb.append(" showRemovePaymentMethodButton: ") + .append(toIndentedString(showRemovePaymentMethodButton)) + .append("\n"); + sb.append(" socialSecurityNumber: ") + .append(toIndentedString(socialSecurityNumber)) + .append("\n"); + sb.append(" splitCardFundingSources: ") + .append(toIndentedString(splitCardFundingSources)) + .append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" store: ").append(toIndentedString(store)).append("\n"); - sb.append(" storePaymentMethodMode: ").append(toIndentedString(storePaymentMethodMode)).append("\n"); + sb.append(" storePaymentMethodMode: ") + .append(toIndentedString(storePaymentMethodMode)) + .append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); sb.append(" themeId: ").append(toIndentedString(themeId)).append("\n"); - sb.append(" threeDS2RequestData: ").append(toIndentedString(threeDS2RequestData)).append("\n"); + sb.append(" threeDS2RequestData: ") + .append(toIndentedString(threeDS2RequestData)) + .append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append("}"); @@ -2028,8 +2621,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -2038,21 +2630,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentLinkResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaymentLinkResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentLinkResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentLinkResponse */ public static PaymentLinkResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentLinkResponse.class); } -/** - * Convert an instance of PaymentLinkResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentLinkResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentMethod.java b/src/main/java/com/adyen/model/checkout/PaymentMethod.java index b129ddfa7..9e7852b9e 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentMethod.java +++ b/src/main/java/com/adyen/model/checkout/PaymentMethod.java @@ -2,39 +2,30 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.InputDetail; -import com.adyen.model.checkout.PaymentMethodGroup; -import com.adyen.model.checkout.PaymentMethodIssuer; -import com.adyen.model.checkout.PaymentMethodUPIApps; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * PaymentMethod - */ +/** PaymentMethod */ @JsonPropertyOrder({ PaymentMethod.JSON_PROPERTY_APPS, PaymentMethod.JSON_PROPERTY_BRAND, @@ -48,7 +39,6 @@ PaymentMethod.JSON_PROPERTY_PROMOTED, PaymentMethod.JSON_PROPERTY_TYPE }) - public class PaymentMethod { public static final String JSON_PROPERTY_APPS = "apps"; private List apps; @@ -62,11 +52,8 @@ public class PaymentMethod { public static final String JSON_PROPERTY_CONFIGURATION = "configuration"; private Map configuration; - /** - * The funding source of the payment method. - */ + /** The funding source of the payment method. */ public enum FundingSourceEnum { - CREDIT(String.valueOf("credit")), DEBIT(String.valueOf("debit")); @@ -76,7 +63,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -97,7 +84,11 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); + LOG.warning( + "FundingSourceEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -109,7 +100,7 @@ public static FundingSourceEnum fromValue(String value) { private PaymentMethodGroup group; public static final String JSON_PROPERTY_INPUT_DETAILS = "inputDetails"; - @Deprecated // deprecated + @Deprecated // deprecated private List inputDetails; public static final String JSON_PROPERTY_ISSUERS = "issuers"; @@ -124,8 +115,7 @@ public static FundingSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public PaymentMethod() { - } + public PaymentMethod() {} /** * A list of apps for this payment method. @@ -148,6 +138,7 @@ public PaymentMethod addAppsItem(PaymentMethodUPIApps appsItem) { /** * A list of apps for this payment method. + * * @return apps A list of apps for this payment method. */ @JsonProperty(JSON_PROPERTY_APPS) @@ -180,6 +171,7 @@ public PaymentMethod brand(String brand) { /** * Brand for the selected gift card. For example: plastix, hmclub. + * * @return brand Brand for the selected gift card. For example: plastix, hmclub. */ @JsonProperty(JSON_PROPERTY_BRAND) @@ -220,6 +212,7 @@ public PaymentMethod addBrandsItem(String brandsItem) { /** * List of possible brands. For example: visa, mc. + * * @return brands List of possible brands. For example: visa, mc. */ @JsonProperty(JSON_PROPERTY_BRANDS) @@ -260,6 +253,7 @@ public PaymentMethod putConfigurationItem(String key, String configurationItem) /** * The configuration of the payment method. + * * @return configuration The configuration of the payment method. */ @JsonProperty(JSON_PROPERTY_CONFIGURATION) @@ -292,6 +286,7 @@ public PaymentMethod fundingSource(FundingSourceEnum fundingSource) { /** * The funding source of the payment method. + * * @return fundingSource The funding source of the payment method. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @@ -314,7 +309,7 @@ public void setFundingSource(FundingSourceEnum fundingSource) { /** * group * - * @param group + * @param group * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod group(PaymentMethodGroup group) { @@ -324,7 +319,8 @@ public PaymentMethod group(PaymentMethodGroup group) { /** * Get group - * @return group + * + * @return group */ @JsonProperty(JSON_PROPERTY_GROUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -335,7 +331,7 @@ public PaymentMethodGroup getGroup() { /** * group * - * @param group + * @param group */ @JsonProperty(JSON_PROPERTY_GROUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -346,12 +342,12 @@ public void setGroup(PaymentMethodGroup group) { /** * All input details to be provided to complete the payment with this payment method. * - * @param inputDetails All input details to be provided to complete the payment with this payment method. + * @param inputDetails All input details to be provided to complete the payment with this payment + * method. * @return the current {@code PaymentMethod} instance, allowing for method chaining - * - * @deprecated + * @deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated public PaymentMethod inputDetails(List inputDetails) { this.inputDetails = inputDetails; return this; @@ -367,10 +363,12 @@ public PaymentMethod addInputDetailsItem(InputDetail inputDetailsItem) { /** * All input details to be provided to complete the payment with this payment method. - * @return inputDetails All input details to be provided to complete the payment with this payment method. - * @deprecated // deprecated + * + * @return inputDetails All input details to be provided to complete the payment with this payment + * method. + * @deprecated // deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated @JsonProperty(JSON_PROPERTY_INPUT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getInputDetails() { @@ -380,11 +378,11 @@ public List getInputDetails() { /** * All input details to be provided to complete the payment with this payment method. * - * @param inputDetails All input details to be provided to complete the payment with this payment method. - * - * @deprecated + * @param inputDetails All input details to be provided to complete the payment with this payment + * method. + * @deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated @JsonProperty(JSON_PROPERTY_INPUT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInputDetails(List inputDetails) { @@ -412,6 +410,7 @@ public PaymentMethod addIssuersItem(PaymentMethodIssuer issuersItem) { /** * A list of issuers for this payment method. + * * @return issuers A list of issuers for this payment method. */ @JsonProperty(JSON_PROPERTY_ISSUERS) @@ -444,6 +443,7 @@ public PaymentMethod name(String name) { /** * The displayable name of this payment method. + * * @return name The displayable name of this payment method. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -476,6 +476,7 @@ public PaymentMethod promoted(Boolean promoted) { /** * Indicates whether this payment method should be promoted or not. + * * @return promoted Indicates whether this payment method should be promoted or not. */ @JsonProperty(JSON_PROPERTY_PROMOTED) @@ -508,6 +509,7 @@ public PaymentMethod type(String type) { /** * The unique payment method code. + * * @return type The unique payment method code. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -527,9 +529,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this PaymentMethod object is equal to o. - */ + /** Return true if this PaymentMethod object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -539,22 +539,33 @@ public boolean equals(Object o) { return false; } PaymentMethod paymentMethod = (PaymentMethod) o; - return Objects.equals(this.apps, paymentMethod.apps) && - Objects.equals(this.brand, paymentMethod.brand) && - Objects.equals(this.brands, paymentMethod.brands) && - Objects.equals(this.configuration, paymentMethod.configuration) && - Objects.equals(this.fundingSource, paymentMethod.fundingSource) && - Objects.equals(this.group, paymentMethod.group) && - Objects.equals(this.inputDetails, paymentMethod.inputDetails) && - Objects.equals(this.issuers, paymentMethod.issuers) && - Objects.equals(this.name, paymentMethod.name) && - Objects.equals(this.promoted, paymentMethod.promoted) && - Objects.equals(this.type, paymentMethod.type); + return Objects.equals(this.apps, paymentMethod.apps) + && Objects.equals(this.brand, paymentMethod.brand) + && Objects.equals(this.brands, paymentMethod.brands) + && Objects.equals(this.configuration, paymentMethod.configuration) + && Objects.equals(this.fundingSource, paymentMethod.fundingSource) + && Objects.equals(this.group, paymentMethod.group) + && Objects.equals(this.inputDetails, paymentMethod.inputDetails) + && Objects.equals(this.issuers, paymentMethod.issuers) + && Objects.equals(this.name, paymentMethod.name) + && Objects.equals(this.promoted, paymentMethod.promoted) + && Objects.equals(this.type, paymentMethod.type); } @Override public int hashCode() { - return Objects.hash(apps, brand, brands, configuration, fundingSource, group, inputDetails, issuers, name, promoted, type); + return Objects.hash( + apps, + brand, + brands, + configuration, + fundingSource, + group, + inputDetails, + issuers, + name, + promoted, + type); } @Override @@ -577,8 +588,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -587,7 +597,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentMethod given an JSON string * * @param jsonString JSON string @@ -597,11 +607,12 @@ private String toIndentedString(Object o) { public static PaymentMethod fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentMethod.class); } -/** - * Convert an instance of PaymentMethod to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentMethod to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentMethodGroup.java b/src/main/java/com/adyen/model/checkout/PaymentMethodGroup.java index 57cc6b553..5ea4bfeed 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentMethodGroup.java +++ b/src/main/java/com/adyen/model/checkout/PaymentMethodGroup.java @@ -2,37 +2,27 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * PaymentMethodGroup - */ +/** PaymentMethodGroup */ @JsonPropertyOrder({ PaymentMethodGroup.JSON_PROPERTY_NAME, PaymentMethodGroup.JSON_PROPERTY_PAYMENT_METHOD_DATA, PaymentMethodGroup.JSON_PROPERTY_TYPE }) - public class PaymentMethodGroup { public static final String JSON_PROPERTY_NAME = "name"; private String name; @@ -43,8 +33,7 @@ public class PaymentMethodGroup { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public PaymentMethodGroup() { - } + public PaymentMethodGroup() {} /** * The name of the group. @@ -59,6 +48,7 @@ public PaymentMethodGroup name(String name) { /** * The name of the group. + * * @return name The name of the group. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -81,7 +71,8 @@ public void setName(String name) { /** * Echo data to be used if the payment method is displayed as part of this group. * - * @param paymentMethodData Echo data to be used if the payment method is displayed as part of this group. + * @param paymentMethodData Echo data to be used if the payment method is displayed as part of + * this group. * @return the current {@code PaymentMethodGroup} instance, allowing for method chaining */ public PaymentMethodGroup paymentMethodData(String paymentMethodData) { @@ -91,7 +82,9 @@ public PaymentMethodGroup paymentMethodData(String paymentMethodData) { /** * Echo data to be used if the payment method is displayed as part of this group. - * @return paymentMethodData Echo data to be used if the payment method is displayed as part of this group. + * + * @return paymentMethodData Echo data to be used if the payment method is displayed as part of + * this group. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,7 +95,8 @@ public String getPaymentMethodData() { /** * Echo data to be used if the payment method is displayed as part of this group. * - * @param paymentMethodData Echo data to be used if the payment method is displayed as part of this group. + * @param paymentMethodData Echo data to be used if the payment method is displayed as part of + * this group. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,6 +117,7 @@ public PaymentMethodGroup type(String type) { /** * The unique code of the group. + * * @return type The unique code of the group. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -142,9 +137,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this PaymentMethodGroup object is equal to o. - */ + /** Return true if this PaymentMethodGroup object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +147,9 @@ public boolean equals(Object o) { return false; } PaymentMethodGroup paymentMethodGroup = (PaymentMethodGroup) o; - return Objects.equals(this.name, paymentMethodGroup.name) && - Objects.equals(this.paymentMethodData, paymentMethodGroup.paymentMethodData) && - Objects.equals(this.type, paymentMethodGroup.type); + return Objects.equals(this.name, paymentMethodGroup.name) + && Objects.equals(this.paymentMethodData, paymentMethodGroup.paymentMethodData) + && Objects.equals(this.type, paymentMethodGroup.type); } @Override @@ -176,8 +169,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +178,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentMethodGroup given an JSON string * * @param jsonString JSON string * @return An instance of PaymentMethodGroup - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethodGroup + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentMethodGroup */ public static PaymentMethodGroup fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentMethodGroup.class); } -/** - * Convert an instance of PaymentMethodGroup to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentMethodGroup to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentMethodIssuer.java b/src/main/java/com/adyen/model/checkout/PaymentMethodIssuer.java index 42ba8a469..914d33e43 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentMethodIssuer.java +++ b/src/main/java/com/adyen/model/checkout/PaymentMethodIssuer.java @@ -2,37 +2,27 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * PaymentMethodIssuer - */ +/** PaymentMethodIssuer */ @JsonPropertyOrder({ PaymentMethodIssuer.JSON_PROPERTY_DISABLED, PaymentMethodIssuer.JSON_PROPERTY_ID, PaymentMethodIssuer.JSON_PROPERTY_NAME }) - public class PaymentMethodIssuer { public static final String JSON_PROPERTY_DISABLED = "disabled"; private Boolean disabled; @@ -43,13 +33,14 @@ public class PaymentMethodIssuer { public static final String JSON_PROPERTY_NAME = "name"; private String name; - public PaymentMethodIssuer() { - } + public PaymentMethodIssuer() {} /** - * A boolean value indicating whether this issuer is unavailable. Can be `true` whenever the issuer is offline. + * A boolean value indicating whether this issuer is unavailable. Can be `true` whenever + * the issuer is offline. * - * @param disabled A boolean value indicating whether this issuer is unavailable. Can be `true` whenever the issuer is offline. + * @param disabled A boolean value indicating whether this issuer is unavailable. Can be + * `true` whenever the issuer is offline. * @return the current {@code PaymentMethodIssuer} instance, allowing for method chaining */ public PaymentMethodIssuer disabled(Boolean disabled) { @@ -58,8 +49,11 @@ public PaymentMethodIssuer disabled(Boolean disabled) { } /** - * A boolean value indicating whether this issuer is unavailable. Can be `true` whenever the issuer is offline. - * @return disabled A boolean value indicating whether this issuer is unavailable. Can be `true` whenever the issuer is offline. + * A boolean value indicating whether this issuer is unavailable. Can be `true` whenever + * the issuer is offline. + * + * @return disabled A boolean value indicating whether this issuer is unavailable. Can be + * `true` whenever the issuer is offline. */ @JsonProperty(JSON_PROPERTY_DISABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,9 +62,11 @@ public Boolean getDisabled() { } /** - * A boolean value indicating whether this issuer is unavailable. Can be `true` whenever the issuer is offline. + * A boolean value indicating whether this issuer is unavailable. Can be `true` whenever + * the issuer is offline. * - * @param disabled A boolean value indicating whether this issuer is unavailable. Can be `true` whenever the issuer is offline. + * @param disabled A boolean value indicating whether this issuer is unavailable. Can be + * `true` whenever the issuer is offline. */ @JsonProperty(JSON_PROPERTY_DISABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -91,6 +87,7 @@ public PaymentMethodIssuer id(String id) { /** * The unique identifier of this issuer, to submit in requests to /payments. + * * @return id The unique identifier of this issuer, to submit in requests to /payments. */ @JsonProperty(JSON_PROPERTY_ID) @@ -123,6 +120,7 @@ public PaymentMethodIssuer name(String name) { /** * A localized name of the issuer. + * * @return name A localized name of the issuer. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -142,9 +140,7 @@ public void setName(String name) { this.name = name; } - /** - * Return true if this PaymentMethodIssuer object is equal to o. - */ + /** Return true if this PaymentMethodIssuer object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +150,9 @@ public boolean equals(Object o) { return false; } PaymentMethodIssuer paymentMethodIssuer = (PaymentMethodIssuer) o; - return Objects.equals(this.disabled, paymentMethodIssuer.disabled) && - Objects.equals(this.id, paymentMethodIssuer.id) && - Objects.equals(this.name, paymentMethodIssuer.name); + return Objects.equals(this.disabled, paymentMethodIssuer.disabled) + && Objects.equals(this.id, paymentMethodIssuer.id) + && Objects.equals(this.name, paymentMethodIssuer.name); } @Override @@ -176,8 +172,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +181,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentMethodIssuer given an JSON string * * @param jsonString JSON string * @return An instance of PaymentMethodIssuer - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethodIssuer + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentMethodIssuer */ public static PaymentMethodIssuer fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentMethodIssuer.class); } -/** - * Convert an instance of PaymentMethodIssuer to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentMethodIssuer to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentMethodToStore.java b/src/main/java/com/adyen/model/checkout/PaymentMethodToStore.java index 34bcbfd25..11a4d4c4a 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentMethodToStore.java +++ b/src/main/java/com/adyen/model/checkout/PaymentMethodToStore.java @@ -2,31 +2,22 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * PaymentMethodToStore - */ +/** PaymentMethodToStore */ @JsonPropertyOrder({ PaymentMethodToStore.JSON_PROPERTY_BRAND, PaymentMethodToStore.JSON_PROPERTY_CVC, @@ -41,7 +32,6 @@ PaymentMethodToStore.JSON_PROPERTY_NUMBER, PaymentMethodToStore.JSON_PROPERTY_TYPE }) - public class PaymentMethodToStore { public static final String JSON_PROPERTY_BRAND = "brand"; private String brand; @@ -79,8 +69,7 @@ public class PaymentMethodToStore { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public PaymentMethodToStore() { - } + public PaymentMethodToStore() {} /** * Secondary brand of the card. For example: **plastix**, **hmclub**. @@ -95,6 +84,7 @@ public PaymentMethodToStore brand(String brand) { /** * Secondary brand of the card. For example: **plastix**, **hmclub**. + * * @return brand Secondary brand of the card. For example: **plastix**, **hmclub**. */ @JsonProperty(JSON_PROPERTY_BRAND) @@ -115,9 +105,11 @@ public void setBrand(String brand) { } /** - * The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card verification code. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param cvc The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param cvc The card verification code. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * @return the current {@code PaymentMethodToStore} instance, allowing for method chaining */ public PaymentMethodToStore cvc(String cvc) { @@ -126,8 +118,11 @@ public PaymentMethodToStore cvc(String cvc) { } /** - * The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). - * @return cvc The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card verification code. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * + * @return cvc The card verification code. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,9 +131,11 @@ public String getCvc() { } /** - * The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card verification code. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param cvc The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param cvc The card verification code. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,6 +156,7 @@ public PaymentMethodToStore encryptedCard(String encryptedCard) { /** * The encrypted card. + * * @return encryptedCard The encrypted card. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_CARD) @@ -191,6 +189,7 @@ public PaymentMethodToStore encryptedCardNumber(String encryptedCardNumber) { /** * The encrypted card number. + * * @return encryptedCardNumber The encrypted card number. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_CARD_NUMBER) @@ -223,6 +222,7 @@ public PaymentMethodToStore encryptedExpiryMonth(String encryptedExpiryMonth) { /** * The encrypted card expiry month. + * * @return encryptedExpiryMonth The encrypted card expiry month. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_EXPIRY_MONTH) @@ -255,6 +255,7 @@ public PaymentMethodToStore encryptedExpiryYear(String encryptedExpiryYear) { /** * The encrypted card expiry year. + * * @return encryptedExpiryYear The encrypted card expiry year. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_EXPIRY_YEAR) @@ -287,6 +288,7 @@ public PaymentMethodToStore encryptedSecurityCode(String encryptedSecurityCode) /** * The encrypted card verification code. + * * @return encryptedSecurityCode The encrypted card verification code. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED_SECURITY_CODE) @@ -307,9 +309,11 @@ public void setEncryptedSecurityCode(String encryptedSecurityCode) { } /** - * The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry month. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * @return the current {@code PaymentMethodToStore} instance, allowing for method chaining */ public PaymentMethodToStore expiryMonth(String expiryMonth) { @@ -318,8 +322,11 @@ public PaymentMethodToStore expiryMonth(String expiryMonth) { } /** - * The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). - * @return expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry month. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * + * @return expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -328,9 +335,11 @@ public String getExpiryMonth() { } /** - * The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry month. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -339,9 +348,11 @@ public void setExpiryMonth(String expiryMonth) { } /** - * The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry year. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param expiryYear The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param expiryYear The card expiry year. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * @return the current {@code PaymentMethodToStore} instance, allowing for method chaining */ public PaymentMethodToStore expiryYear(String expiryYear) { @@ -350,8 +361,11 @@ public PaymentMethodToStore expiryYear(String expiryYear) { } /** - * The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). - * @return expiryYear The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry year. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * + * @return expiryYear The card expiry year. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -360,9 +374,11 @@ public String getExpiryYear() { } /** - * The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card expiry year. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param expiryYear The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param expiryYear The card expiry year. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -383,6 +399,7 @@ public PaymentMethodToStore holderName(String holderName) { /** * The name of the card holder. + * * @return holderName The name of the card holder. */ @JsonProperty(JSON_PROPERTY_HOLDER_NAME) @@ -403,9 +420,11 @@ public void setHolderName(String holderName) { } /** - * The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card number. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param number The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param number The card number. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * @return the current {@code PaymentMethodToStore} instance, allowing for method chaining */ public PaymentMethodToStore number(String number) { @@ -414,8 +433,11 @@ public PaymentMethodToStore number(String number) { } /** - * The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). - * @return number The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card number. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * + * @return number The card number. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -424,9 +446,11 @@ public String getNumber() { } /** - * The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * The card number. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). * - * @param number The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). + * @param number The card number. Only collect raw card data if you are [fully PCI + * compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -447,6 +471,7 @@ public PaymentMethodToStore type(String type) { /** * Set to **scheme**. + * * @return type Set to **scheme**. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -466,9 +491,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this PaymentMethodToStore object is equal to o. - */ + /** Return true if this PaymentMethodToStore object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -478,23 +501,35 @@ public boolean equals(Object o) { return false; } PaymentMethodToStore paymentMethodToStore = (PaymentMethodToStore) o; - return Objects.equals(this.brand, paymentMethodToStore.brand) && - Objects.equals(this.cvc, paymentMethodToStore.cvc) && - Objects.equals(this.encryptedCard, paymentMethodToStore.encryptedCard) && - Objects.equals(this.encryptedCardNumber, paymentMethodToStore.encryptedCardNumber) && - Objects.equals(this.encryptedExpiryMonth, paymentMethodToStore.encryptedExpiryMonth) && - Objects.equals(this.encryptedExpiryYear, paymentMethodToStore.encryptedExpiryYear) && - Objects.equals(this.encryptedSecurityCode, paymentMethodToStore.encryptedSecurityCode) && - Objects.equals(this.expiryMonth, paymentMethodToStore.expiryMonth) && - Objects.equals(this.expiryYear, paymentMethodToStore.expiryYear) && - Objects.equals(this.holderName, paymentMethodToStore.holderName) && - Objects.equals(this.number, paymentMethodToStore.number) && - Objects.equals(this.type, paymentMethodToStore.type); + return Objects.equals(this.brand, paymentMethodToStore.brand) + && Objects.equals(this.cvc, paymentMethodToStore.cvc) + && Objects.equals(this.encryptedCard, paymentMethodToStore.encryptedCard) + && Objects.equals(this.encryptedCardNumber, paymentMethodToStore.encryptedCardNumber) + && Objects.equals(this.encryptedExpiryMonth, paymentMethodToStore.encryptedExpiryMonth) + && Objects.equals(this.encryptedExpiryYear, paymentMethodToStore.encryptedExpiryYear) + && Objects.equals(this.encryptedSecurityCode, paymentMethodToStore.encryptedSecurityCode) + && Objects.equals(this.expiryMonth, paymentMethodToStore.expiryMonth) + && Objects.equals(this.expiryYear, paymentMethodToStore.expiryYear) + && Objects.equals(this.holderName, paymentMethodToStore.holderName) + && Objects.equals(this.number, paymentMethodToStore.number) + && Objects.equals(this.type, paymentMethodToStore.type); } @Override public int hashCode() { - return Objects.hash(brand, cvc, encryptedCard, encryptedCardNumber, encryptedExpiryMonth, encryptedExpiryYear, encryptedSecurityCode, expiryMonth, expiryYear, holderName, number, type); + return Objects.hash( + brand, + cvc, + encryptedCard, + encryptedCardNumber, + encryptedExpiryMonth, + encryptedExpiryYear, + encryptedSecurityCode, + expiryMonth, + expiryYear, + holderName, + number, + type); } @Override @@ -504,10 +539,18 @@ public String toString() { sb.append(" brand: ").append(toIndentedString(brand)).append("\n"); sb.append(" cvc: ").append(toIndentedString(cvc)).append("\n"); sb.append(" encryptedCard: ").append(toIndentedString(encryptedCard)).append("\n"); - sb.append(" encryptedCardNumber: ").append(toIndentedString(encryptedCardNumber)).append("\n"); - sb.append(" encryptedExpiryMonth: ").append(toIndentedString(encryptedExpiryMonth)).append("\n"); - sb.append(" encryptedExpiryYear: ").append(toIndentedString(encryptedExpiryYear)).append("\n"); - sb.append(" encryptedSecurityCode: ").append(toIndentedString(encryptedSecurityCode)).append("\n"); + sb.append(" encryptedCardNumber: ") + .append(toIndentedString(encryptedCardNumber)) + .append("\n"); + sb.append(" encryptedExpiryMonth: ") + .append(toIndentedString(encryptedExpiryMonth)) + .append("\n"); + sb.append(" encryptedExpiryYear: ") + .append(toIndentedString(encryptedExpiryYear)) + .append("\n"); + sb.append(" encryptedSecurityCode: ") + .append(toIndentedString(encryptedSecurityCode)) + .append("\n"); sb.append(" expiryMonth: ").append(toIndentedString(expiryMonth)).append("\n"); sb.append(" expiryYear: ").append(toIndentedString(expiryYear)).append("\n"); sb.append(" holderName: ").append(toIndentedString(holderName)).append("\n"); @@ -518,8 +561,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -528,21 +570,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentMethodToStore given an JSON string * * @param jsonString JSON string * @return An instance of PaymentMethodToStore - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethodToStore + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentMethodToStore */ public static PaymentMethodToStore fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentMethodToStore.class); } -/** - * Convert an instance of PaymentMethodToStore to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentMethodToStore to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentMethodUPIApps.java b/src/main/java/com/adyen/model/checkout/PaymentMethodUPIApps.java index 2c8c7811f..272b6371c 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentMethodUPIApps.java +++ b/src/main/java/com/adyen/model/checkout/PaymentMethodUPIApps.java @@ -2,36 +2,23 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * PaymentMethodUPIApps - */ -@JsonPropertyOrder({ - PaymentMethodUPIApps.JSON_PROPERTY_ID, - PaymentMethodUPIApps.JSON_PROPERTY_NAME -}) - +/** PaymentMethodUPIApps */ +@JsonPropertyOrder({PaymentMethodUPIApps.JSON_PROPERTY_ID, PaymentMethodUPIApps.JSON_PROPERTY_NAME}) public class PaymentMethodUPIApps { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -39,8 +26,7 @@ public class PaymentMethodUPIApps { public static final String JSON_PROPERTY_NAME = "name"; private String name; - public PaymentMethodUPIApps() { - } + public PaymentMethodUPIApps() {} /** * The unique identifier of this app, to submit in requests to /payments. @@ -55,6 +41,7 @@ public PaymentMethodUPIApps id(String id) { /** * The unique identifier of this app, to submit in requests to /payments. + * * @return id The unique identifier of this app, to submit in requests to /payments. */ @JsonProperty(JSON_PROPERTY_ID) @@ -87,6 +74,7 @@ public PaymentMethodUPIApps name(String name) { /** * A localized name of the app. + * * @return name A localized name of the app. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -106,9 +94,7 @@ public void setName(String name) { this.name = name; } - /** - * Return true if this PaymentMethodUPIApps object is equal to o. - */ + /** Return true if this PaymentMethodUPIApps object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +104,8 @@ public boolean equals(Object o) { return false; } PaymentMethodUPIApps paymentMethodUPIApps = (PaymentMethodUPIApps) o; - return Objects.equals(this.id, paymentMethodUPIApps.id) && - Objects.equals(this.name, paymentMethodUPIApps.name); + return Objects.equals(this.id, paymentMethodUPIApps.id) + && Objects.equals(this.name, paymentMethodUPIApps.name); } @Override @@ -138,8 +124,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +133,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentMethodUPIApps given an JSON string * * @param jsonString JSON string * @return An instance of PaymentMethodUPIApps - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethodUPIApps + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentMethodUPIApps */ public static PaymentMethodUPIApps fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentMethodUPIApps.class); } -/** - * Convert an instance of PaymentMethodUPIApps to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentMethodUPIApps to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentMethodsRequest.java b/src/main/java/com/adyen/model/checkout/PaymentMethodsRequest.java index dc4dec8ea..ca82b573a 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentMethodsRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentMethodsRequest.java @@ -2,38 +2,30 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Amount; -import com.adyen.model.checkout.BrowserInfo; -import com.adyen.model.checkout.EncryptedOrderData; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * PaymentMethodsRequest - */ +/** PaymentMethodsRequest */ @JsonPropertyOrder({ PaymentMethodsRequest.JSON_PROPERTY_ADDITIONAL_DATA, PaymentMethodsRequest.JSON_PROPERTY_ALLOWED_PAYMENT_METHODS, @@ -54,7 +46,6 @@ PaymentMethodsRequest.JSON_PROPERTY_STORE_FILTRATION_MODE, PaymentMethodsRequest.JSON_PROPERTY_TELEPHONE_NUMBER }) - public class PaymentMethodsRequest { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -72,10 +63,11 @@ public class PaymentMethodsRequest { private BrowserInfo browserInfo; /** - * The platform where a payment transaction takes place. This field can be used for filtering out payment methods that are only available on specific platforms. Possible values: * iOS * Android * Web + * The platform where a payment transaction takes place. This field can be used for filtering out + * payment methods that are only available on specific platforms. Possible values: * iOS * Android + * * Web */ public enum ChannelEnum { - IOS(String.valueOf("iOS")), ANDROID(String.valueOf("Android")), @@ -87,7 +79,7 @@ public enum ChannelEnum { private String value; ChannelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -108,7 +100,11 @@ public static ChannelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ChannelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChannelEnum.values())); + LOG.warning( + "ChannelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ChannelEnum.values())); return null; } } @@ -147,10 +143,12 @@ public static ChannelEnum fromValue(String value) { private String store; /** - * Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. + * Specifies how payment methods should be filtered based on the 'store' parameter: - + * 'exclusive': Only payment methods belonging to the specified 'store' are + * returned. - 'inclusive': Payment methods from the 'store' and those not + * associated with any other store are returned. */ public enum StoreFiltrationModeEnum { - EXCLUSIVE(String.valueOf("exclusive")), INCLUSIVE(String.valueOf("inclusive")), @@ -162,7 +160,7 @@ public enum StoreFiltrationModeEnum { private String value; StoreFiltrationModeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -183,7 +181,11 @@ public static StoreFiltrationModeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StoreFiltrationModeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StoreFiltrationModeEnum.values())); + LOG.warning( + "StoreFiltrationModeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StoreFiltrationModeEnum.values())); return null; } } @@ -194,13 +196,16 @@ public static StoreFiltrationModeEnum fromValue(String value) { public static final String JSON_PROPERTY_TELEPHONE_NUMBER = "telephoneNumber"; private String telephoneNumber; - public PaymentMethodsRequest() { - } + public PaymentMethodsRequest() {} /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. + * The `additionalData` object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a + * particular payment request. The `additionalData` object consists of entries, each + * of which includes the key and value. * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest additionalData(Map additionalData) { @@ -217,8 +222,13 @@ public PaymentMethodsRequest putAdditionalDataItem(String key, String additional } /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. - * @return additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. + * The `additionalData` object consists of entries, each of which includes the key and + * value. + * + * @return additionalData This field contains additional data, which may be required for a + * particular payment request. The `additionalData` object consists of entries, each + * of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -227,9 +237,13 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. + * The `additionalData` object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a + * particular payment request. The `additionalData` object consists of entries, each + * of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -238,9 +252,14 @@ public void setAdditionalData(Map additionalData) { } /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their + * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer + * to payment methods, use their [payment method + * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest allowedPaymentMethods(List allowedPaymentMethods) { @@ -257,8 +276,14 @@ public PaymentMethodsRequest addAllowedPaymentMethodsItem(String allowedPaymentM } /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` - * @return allowedPaymentMethods List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their + * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * + * @return allowedPaymentMethods List of payment methods to be presented to the shopper. To refer + * to payment methods, use their [payment method + * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -267,9 +292,14 @@ public List getAllowedPaymentMethods() { } /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their + * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer + * to payment methods, use their [payment method + * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -280,7 +310,7 @@ public void setAllowedPaymentMethods(List allowedPaymentMethods) { /** * amount * - * @param amount + * @param amount * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest amount(Amount amount) { @@ -290,7 +320,8 @@ public PaymentMethodsRequest amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -301,7 +332,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -310,9 +341,14 @@ public void setAmount(Amount amount) { } /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their + * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to + * payment methods, use their [payment method + * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest blockedPaymentMethods(List blockedPaymentMethods) { @@ -329,8 +365,14 @@ public PaymentMethodsRequest addBlockedPaymentMethodsItem(String blockedPaymentM } /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` - * @return blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their + * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * + * @return blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer + * to payment methods, use their [payment method + * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_BLOCKED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -339,9 +381,14 @@ public List getBlockedPaymentMethods() { } /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their + * [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` * - * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` + * @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to + * payment methods, use their [payment method + * type](https://docs.adyen.com/payment-methods/payment-method-types). Example: + * `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` */ @JsonProperty(JSON_PROPERTY_BLOCKED_PAYMENT_METHODS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -352,7 +399,7 @@ public void setBlockedPaymentMethods(List blockedPaymentMethods) { /** * browserInfo * - * @param browserInfo + * @param browserInfo * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest browserInfo(BrowserInfo browserInfo) { @@ -362,7 +409,8 @@ public PaymentMethodsRequest browserInfo(BrowserInfo browserInfo) { /** * Get browserInfo - * @return browserInfo + * + * @return browserInfo */ @JsonProperty(JSON_PROPERTY_BROWSER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -373,7 +421,7 @@ public BrowserInfo getBrowserInfo() { /** * browserInfo * - * @param browserInfo + * @param browserInfo */ @JsonProperty(JSON_PROPERTY_BROWSER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -382,9 +430,13 @@ public void setBrowserInfo(BrowserInfo browserInfo) { } /** - * The platform where a payment transaction takes place. This field can be used for filtering out payment methods that are only available on specific platforms. Possible values: * iOS * Android * Web + * The platform where a payment transaction takes place. This field can be used for filtering out + * payment methods that are only available on specific platforms. Possible values: * iOS * Android + * * Web * - * @param channel The platform where a payment transaction takes place. This field can be used for filtering out payment methods that are only available on specific platforms. Possible values: * iOS * Android * Web + * @param channel The platform where a payment transaction takes place. This field can be used for + * filtering out payment methods that are only available on specific platforms. Possible + * values: * iOS * Android * Web * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest channel(ChannelEnum channel) { @@ -393,8 +445,13 @@ public PaymentMethodsRequest channel(ChannelEnum channel) { } /** - * The platform where a payment transaction takes place. This field can be used for filtering out payment methods that are only available on specific platforms. Possible values: * iOS * Android * Web - * @return channel The platform where a payment transaction takes place. This field can be used for filtering out payment methods that are only available on specific platforms. Possible values: * iOS * Android * Web + * The platform where a payment transaction takes place. This field can be used for filtering out + * payment methods that are only available on specific platforms. Possible values: * iOS * Android + * * Web + * + * @return channel The platform where a payment transaction takes place. This field can be used + * for filtering out payment methods that are only available on specific platforms. Possible + * values: * iOS * Android * Web */ @JsonProperty(JSON_PROPERTY_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -403,9 +460,13 @@ public ChannelEnum getChannel() { } /** - * The platform where a payment transaction takes place. This field can be used for filtering out payment methods that are only available on specific platforms. Possible values: * iOS * Android * Web + * The platform where a payment transaction takes place. This field can be used for filtering out + * payment methods that are only available on specific platforms. Possible values: * iOS * Android + * * Web * - * @param channel The platform where a payment transaction takes place. This field can be used for filtering out payment methods that are only available on specific platforms. Possible values: * iOS * Android * Web + * @param channel The platform where a payment transaction takes place. This field can be used for + * filtering out payment methods that are only available on specific platforms. Possible + * values: * iOS * Android * Web */ @JsonProperty(JSON_PROPERTY_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -426,6 +487,7 @@ public PaymentMethodsRequest countryCode(String countryCode) { /** * The shopper's country code. + * * @return countryCode The shopper's country code. */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @@ -448,7 +510,8 @@ public void setCountryCode(String countryCode) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest merchantAccount(String merchantAccount) { @@ -458,7 +521,9 @@ public PaymentMethodsRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * @return merchantAccount The merchant account identifier, with which you want to process the transaction. + * + * @return merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -469,7 +534,8 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -480,7 +546,7 @@ public void setMerchantAccount(String merchantAccount) { /** * order * - * @param order + * @param order * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest order(EncryptedOrderData order) { @@ -490,7 +556,8 @@ public PaymentMethodsRequest order(EncryptedOrderData order) { /** * Get order - * @return order + * + * @return order */ @JsonProperty(JSON_PROPERTY_ORDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -501,7 +568,7 @@ public EncryptedOrderData getOrder() { /** * order * - * @param order + * @param order */ @JsonProperty(JSON_PROPERTY_ORDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -510,9 +577,12 @@ public void setOrder(EncryptedOrderData order) { } /** - * A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates. + * A unique ID that can be used to associate `/paymentMethods` and `/payments` + * requests with the same shopper transaction, offering insights into conversion rates. * - * @param shopperConversionId A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates. + * @param shopperConversionId A unique ID that can be used to associate + * `/paymentMethods` and `/payments` requests with the same shopper + * transaction, offering insights into conversion rates. * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest shopperConversionId(String shopperConversionId) { @@ -521,8 +591,12 @@ public PaymentMethodsRequest shopperConversionId(String shopperConversionId) { } /** - * A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates. - * @return shopperConversionId A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates. + * A unique ID that can be used to associate `/paymentMethods` and `/payments` + * requests with the same shopper transaction, offering insights into conversion rates. + * + * @return shopperConversionId A unique ID that can be used to associate + * `/paymentMethods` and `/payments` requests with the same shopper + * transaction, offering insights into conversion rates. */ @JsonProperty(JSON_PROPERTY_SHOPPER_CONVERSION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -531,9 +605,12 @@ public String getShopperConversionId() { } /** - * A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates. + * A unique ID that can be used to associate `/paymentMethods` and `/payments` + * requests with the same shopper transaction, offering insights into conversion rates. * - * @param shopperConversionId A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates. + * @param shopperConversionId A unique ID that can be used to associate + * `/paymentMethods` and `/payments` requests with the same shopper + * transaction, offering insights into conversion rates. */ @JsonProperty(JSON_PROPERTY_SHOPPER_CONVERSION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -542,9 +619,13 @@ public void setShopperConversionId(String shopperConversionId) { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in + * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 + * authentication if you did not include the `telephoneNumber`. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, + * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that + * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest shopperEmail(String shopperEmail) { @@ -553,8 +634,13 @@ public PaymentMethodsRequest shopperEmail(String shopperEmail) { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. - * @return shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in + * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 + * authentication if you did not include the `telephoneNumber`. + * + * @return shopperEmail The shopper's email address. We recommend that you provide this data, + * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that + * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -563,9 +649,13 @@ public String getShopperEmail() { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in + * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 + * authentication if you did not include the `telephoneNumber`. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, + * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that + * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -574,9 +664,22 @@ public void setShopperEmail(String shopperEmail) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a + * number of risk checks (for instance, number of payment attempts or location-based checks). > + * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and + * mobile integrations, if you did not include the `shopperEmail`. For native mobile + * integrations, the field is required to support cases where authentication is routed to the + * redirect flow. This field is also mandatory for some merchants depending on your business + * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it + * is used in a number of risk checks (for instance, number of payment attempts or + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the + * `shopperEmail`. For native mobile integrations, the field is required to support + * cases where authentication is routed to the redirect flow. This field is also mandatory for + * some merchants depending on your business model. For more information, [contact + * Support](https://www.adyen.help/hc/en-us/requests/new). * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest shopperIP(String shopperIP) { @@ -585,8 +688,22 @@ public PaymentMethodsRequest shopperIP(String shopperIP) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). - * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a + * number of risk checks (for instance, number of payment attempts or location-based checks). > + * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and + * mobile integrations, if you did not include the `shopperEmail`. For native mobile + * integrations, the field is required to support cases where authentication is routed to the + * redirect flow. This field is also mandatory for some merchants depending on your business + * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * + * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it + * is used in a number of risk checks (for instance, number of payment attempts or + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the + * `shopperEmail`. For native mobile integrations, the field is required to support + * cases where authentication is routed to the redirect flow. This field is also mandatory for + * some merchants depending on your business model. For more information, [contact + * Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -595,9 +712,22 @@ public String getShopperIP() { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a + * number of risk checks (for instance, number of payment attempts or location-based checks). > + * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and + * mobile integrations, if you did not include the `shopperEmail`. For native mobile + * integrations, the field is required to support cases where authentication is routed to the + * redirect flow. This field is also mandatory for some merchants depending on your business + * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it + * is used in a number of risk checks (for instance, number of payment attempts or + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the + * `shopperEmail`. For native mobile integrations, the field is required to support + * cases where authentication is routed to the redirect flow. This field is also mandatory for + * some merchants depending on your business model. For more information, [contact + * Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -606,9 +736,11 @@ public void setShopperIP(String shopperIP) { } /** - * The combination of a language code and a country code to specify the language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the + * payment. * - * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the + * language to be used in the payment. * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest shopperLocale(String shopperLocale) { @@ -617,8 +749,11 @@ public PaymentMethodsRequest shopperLocale(String shopperLocale) { } /** - * The combination of a language code and a country code to specify the language to be used in the payment. - * @return shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the + * payment. + * + * @return shopperLocale The combination of a language code and a country code to specify the + * language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -627,9 +762,11 @@ public String getShopperLocale() { } /** - * The combination of a language code and a country code to specify the language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the + * payment. * - * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the + * language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -638,9 +775,15 @@ public void setShopperLocale(String shopperLocale) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example + * user ID or account ID. The value is case-sensitive and must be at least three characters. > + * Your reference must not include personally identifiable information (PII) such as name or email + * address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify + * this shopper, for example user ID or account ID. The value is case-sensitive and must be at + * least three characters. > Your reference must not include personally identifiable + * information (PII) such as name or email address. * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest shopperReference(String shopperReference) { @@ -649,8 +792,15 @@ public PaymentMethodsRequest shopperReference(String shopperReference) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. - * @return shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example + * user ID or account ID. The value is case-sensitive and must be at least three characters. > + * Your reference must not include personally identifiable information (PII) such as name or email + * address. + * + * @return shopperReference Required for recurring payments. Your reference to uniquely identify + * this shopper, for example user ID or account ID. The value is case-sensitive and must be at + * least three characters. > Your reference must not include personally identifiable + * information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -659,9 +809,15 @@ public String getShopperReference() { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example + * user ID or account ID. The value is case-sensitive and must be at least three characters. > + * Your reference must not include personally identifiable information (PII) such as name or email + * address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify + * this shopper, for example user ID or account ID. The value is case-sensitive and must be at + * least three characters. > Your reference must not include personally identifiable + * information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -670,9 +826,11 @@ public void setShopperReference(String shopperReference) { } /** - * Boolean value indicating whether the card payment method should be split into separate debit and credit options. + * Boolean value indicating whether the card payment method should be split into separate debit + * and credit options. * - * @param splitCardFundingSources Boolean value indicating whether the card payment method should be split into separate debit and credit options. + * @param splitCardFundingSources Boolean value indicating whether the card payment method should + * be split into separate debit and credit options. * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest splitCardFundingSources(Boolean splitCardFundingSources) { @@ -681,8 +839,11 @@ public PaymentMethodsRequest splitCardFundingSources(Boolean splitCardFundingSou } /** - * Boolean value indicating whether the card payment method should be split into separate debit and credit options. - * @return splitCardFundingSources Boolean value indicating whether the card payment method should be split into separate debit and credit options. + * Boolean value indicating whether the card payment method should be split into separate debit + * and credit options. + * + * @return splitCardFundingSources Boolean value indicating whether the card payment method should + * be split into separate debit and credit options. */ @JsonProperty(JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -691,9 +852,11 @@ public Boolean getSplitCardFundingSources() { } /** - * Boolean value indicating whether the card payment method should be split into separate debit and credit options. + * Boolean value indicating whether the card payment method should be split into separate debit + * and credit options. * - * @param splitCardFundingSources Boolean value indicating whether the card payment method should be split into separate debit and credit options. + * @param splitCardFundingSources Boolean value indicating whether the card payment method should + * be split into separate debit and credit options. */ @JsonProperty(JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -702,9 +865,22 @@ public void setSplitCardFundingSources(Boolean splitCardFundingSources) { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. * - * @param store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is + * your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest store(String store) { @@ -713,8 +889,22 @@ public PaymentMethodsRequest store(String store) { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. - * @return store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. + * + * @return store Required for Adyen for Platforms integrations if you are a platform model. This + * is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -723,9 +913,22 @@ public String getStore() { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. * - * @param store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is + * your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -734,9 +937,15 @@ public void setStore(String store) { } /** - * Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. + * Specifies how payment methods should be filtered based on the 'store' parameter: - + * 'exclusive': Only payment methods belonging to the specified 'store' are + * returned. - 'inclusive': Payment methods from the 'store' and those not + * associated with any other store are returned. * - * @param storeFiltrationMode Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. + * @param storeFiltrationMode Specifies how payment methods should be filtered based on the + * 'store' parameter: - 'exclusive': Only payment methods belonging to the + * specified 'store' are returned. - 'inclusive': Payment methods from the + * 'store' and those not associated with any other store are returned. * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest storeFiltrationMode(StoreFiltrationModeEnum storeFiltrationMode) { @@ -745,8 +954,15 @@ public PaymentMethodsRequest storeFiltrationMode(StoreFiltrationModeEnum storeFi } /** - * Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. - * @return storeFiltrationMode Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. + * Specifies how payment methods should be filtered based on the 'store' parameter: - + * 'exclusive': Only payment methods belonging to the specified 'store' are + * returned. - 'inclusive': Payment methods from the 'store' and those not + * associated with any other store are returned. + * + * @return storeFiltrationMode Specifies how payment methods should be filtered based on the + * 'store' parameter: - 'exclusive': Only payment methods belonging to the + * specified 'store' are returned. - 'inclusive': Payment methods from the + * 'store' and those not associated with any other store are returned. */ @JsonProperty(JSON_PROPERTY_STORE_FILTRATION_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -755,9 +971,15 @@ public StoreFiltrationModeEnum getStoreFiltrationMode() { } /** - * Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. + * Specifies how payment methods should be filtered based on the 'store' parameter: - + * 'exclusive': Only payment methods belonging to the specified 'store' are + * returned. - 'inclusive': Payment methods from the 'store' and those not + * associated with any other store are returned. * - * @param storeFiltrationMode Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. + * @param storeFiltrationMode Specifies how payment methods should be filtered based on the + * 'store' parameter: - 'exclusive': Only payment methods belonging to the + * specified 'store' are returned. - 'inclusive': Payment methods from the + * 'store' and those not associated with any other store are returned. */ @JsonProperty(JSON_PROPERTY_STORE_FILTRATION_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -766,9 +988,17 @@ public void setStoreFiltrationMode(StoreFiltrationModeEnum storeFiltrationMode) } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest telephoneNumber(String telephoneNumber) { @@ -777,8 +1007,17 @@ public PaymentMethodsRequest telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. - * @return telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. + * + * @return telephoneNumber The shopper's telephone number. The phone number must include a + * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -787,9 +1026,17 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -797,9 +1044,7 @@ public void setTelephoneNumber(String telephoneNumber) { this.telephoneNumber = telephoneNumber; } - /** - * Return true if this PaymentMethodsRequest object is equal to o. - */ + /** Return true if this PaymentMethodsRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -809,29 +1054,48 @@ public boolean equals(Object o) { return false; } PaymentMethodsRequest paymentMethodsRequest = (PaymentMethodsRequest) o; - return Objects.equals(this.additionalData, paymentMethodsRequest.additionalData) && - Objects.equals(this.allowedPaymentMethods, paymentMethodsRequest.allowedPaymentMethods) && - Objects.equals(this.amount, paymentMethodsRequest.amount) && - Objects.equals(this.blockedPaymentMethods, paymentMethodsRequest.blockedPaymentMethods) && - Objects.equals(this.browserInfo, paymentMethodsRequest.browserInfo) && - Objects.equals(this.channel, paymentMethodsRequest.channel) && - Objects.equals(this.countryCode, paymentMethodsRequest.countryCode) && - Objects.equals(this.merchantAccount, paymentMethodsRequest.merchantAccount) && - Objects.equals(this.order, paymentMethodsRequest.order) && - Objects.equals(this.shopperConversionId, paymentMethodsRequest.shopperConversionId) && - Objects.equals(this.shopperEmail, paymentMethodsRequest.shopperEmail) && - Objects.equals(this.shopperIP, paymentMethodsRequest.shopperIP) && - Objects.equals(this.shopperLocale, paymentMethodsRequest.shopperLocale) && - Objects.equals(this.shopperReference, paymentMethodsRequest.shopperReference) && - Objects.equals(this.splitCardFundingSources, paymentMethodsRequest.splitCardFundingSources) && - Objects.equals(this.store, paymentMethodsRequest.store) && - Objects.equals(this.storeFiltrationMode, paymentMethodsRequest.storeFiltrationMode) && - Objects.equals(this.telephoneNumber, paymentMethodsRequest.telephoneNumber); + return Objects.equals(this.additionalData, paymentMethodsRequest.additionalData) + && Objects.equals(this.allowedPaymentMethods, paymentMethodsRequest.allowedPaymentMethods) + && Objects.equals(this.amount, paymentMethodsRequest.amount) + && Objects.equals(this.blockedPaymentMethods, paymentMethodsRequest.blockedPaymentMethods) + && Objects.equals(this.browserInfo, paymentMethodsRequest.browserInfo) + && Objects.equals(this.channel, paymentMethodsRequest.channel) + && Objects.equals(this.countryCode, paymentMethodsRequest.countryCode) + && Objects.equals(this.merchantAccount, paymentMethodsRequest.merchantAccount) + && Objects.equals(this.order, paymentMethodsRequest.order) + && Objects.equals(this.shopperConversionId, paymentMethodsRequest.shopperConversionId) + && Objects.equals(this.shopperEmail, paymentMethodsRequest.shopperEmail) + && Objects.equals(this.shopperIP, paymentMethodsRequest.shopperIP) + && Objects.equals(this.shopperLocale, paymentMethodsRequest.shopperLocale) + && Objects.equals(this.shopperReference, paymentMethodsRequest.shopperReference) + && Objects.equals( + this.splitCardFundingSources, paymentMethodsRequest.splitCardFundingSources) + && Objects.equals(this.store, paymentMethodsRequest.store) + && Objects.equals(this.storeFiltrationMode, paymentMethodsRequest.storeFiltrationMode) + && Objects.equals(this.telephoneNumber, paymentMethodsRequest.telephoneNumber); } @Override public int hashCode() { - return Objects.hash(additionalData, allowedPaymentMethods, amount, blockedPaymentMethods, browserInfo, channel, countryCode, merchantAccount, order, shopperConversionId, shopperEmail, shopperIP, shopperLocale, shopperReference, splitCardFundingSources, store, storeFiltrationMode, telephoneNumber); + return Objects.hash( + additionalData, + allowedPaymentMethods, + amount, + blockedPaymentMethods, + browserInfo, + channel, + countryCode, + merchantAccount, + order, + shopperConversionId, + shopperEmail, + shopperIP, + shopperLocale, + shopperReference, + splitCardFundingSources, + store, + storeFiltrationMode, + telephoneNumber); } @Override @@ -839,30 +1103,39 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentMethodsRequest {\n"); sb.append(" additionalData: ").append(toIndentedString(additionalData)).append("\n"); - sb.append(" allowedPaymentMethods: ").append(toIndentedString(allowedPaymentMethods)).append("\n"); + sb.append(" allowedPaymentMethods: ") + .append(toIndentedString(allowedPaymentMethods)) + .append("\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append(" blockedPaymentMethods: ").append(toIndentedString(blockedPaymentMethods)).append("\n"); + sb.append(" blockedPaymentMethods: ") + .append(toIndentedString(blockedPaymentMethods)) + .append("\n"); sb.append(" browserInfo: ").append(toIndentedString(browserInfo)).append("\n"); sb.append(" channel: ").append(toIndentedString(channel)).append("\n"); sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" order: ").append(toIndentedString(order)).append("\n"); - sb.append(" shopperConversionId: ").append(toIndentedString(shopperConversionId)).append("\n"); + sb.append(" shopperConversionId: ") + .append(toIndentedString(shopperConversionId)) + .append("\n"); sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); sb.append(" shopperIP: ").append(toIndentedString(shopperIP)).append("\n"); sb.append(" shopperLocale: ").append(toIndentedString(shopperLocale)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); - sb.append(" splitCardFundingSources: ").append(toIndentedString(splitCardFundingSources)).append("\n"); + sb.append(" splitCardFundingSources: ") + .append(toIndentedString(splitCardFundingSources)) + .append("\n"); sb.append(" store: ").append(toIndentedString(store)).append("\n"); - sb.append(" storeFiltrationMode: ").append(toIndentedString(storeFiltrationMode)).append("\n"); + sb.append(" storeFiltrationMode: ") + .append(toIndentedString(storeFiltrationMode)) + .append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -871,21 +1144,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentMethodsRequest given an JSON string * * @param jsonString JSON string * @return An instance of PaymentMethodsRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethodsRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentMethodsRequest */ public static PaymentMethodsRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentMethodsRequest.class); } -/** - * Convert an instance of PaymentMethodsRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentMethodsRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentMethodsResponse.java b/src/main/java/com/adyen/model/checkout/PaymentMethodsResponse.java index 7968de045..ebb91e484 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentMethodsResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentMethodsResponse.java @@ -2,40 +2,28 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.PaymentMethod; -import com.adyen.model.checkout.StoredPaymentMethod; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * PaymentMethodsResponse - */ +/** PaymentMethodsResponse */ @JsonPropertyOrder({ PaymentMethodsResponse.JSON_PROPERTY_PAYMENT_METHODS, PaymentMethodsResponse.JSON_PROPERTY_STORED_PAYMENT_METHODS }) - public class PaymentMethodsResponse { public static final String JSON_PROPERTY_PAYMENT_METHODS = "paymentMethods"; private List paymentMethods; @@ -43,8 +31,7 @@ public class PaymentMethodsResponse { public static final String JSON_PROPERTY_STORED_PAYMENT_METHODS = "storedPaymentMethods"; private List storedPaymentMethods; - public PaymentMethodsResponse() { - } + public PaymentMethodsResponse() {} /** * Detailed list of payment methods required to generate payment forms. @@ -67,6 +54,7 @@ public PaymentMethodsResponse addPaymentMethodsItem(PaymentMethod paymentMethods /** * Detailed list of payment methods required to generate payment forms. + * * @return paymentMethods Detailed list of payment methods required to generate payment forms. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHODS) @@ -92,12 +80,14 @@ public void setPaymentMethods(List paymentMethods) { * @param storedPaymentMethods List of all stored payment methods. * @return the current {@code PaymentMethodsResponse} instance, allowing for method chaining */ - public PaymentMethodsResponse storedPaymentMethods(List storedPaymentMethods) { + public PaymentMethodsResponse storedPaymentMethods( + List storedPaymentMethods) { this.storedPaymentMethods = storedPaymentMethods; return this; } - public PaymentMethodsResponse addStoredPaymentMethodsItem(StoredPaymentMethod storedPaymentMethodsItem) { + public PaymentMethodsResponse addStoredPaymentMethodsItem( + StoredPaymentMethod storedPaymentMethodsItem) { if (this.storedPaymentMethods == null) { this.storedPaymentMethods = new ArrayList<>(); } @@ -107,6 +97,7 @@ public PaymentMethodsResponse addStoredPaymentMethodsItem(StoredPaymentMethod st /** * List of all stored payment methods. + * * @return storedPaymentMethods List of all stored payment methods. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHODS) @@ -126,9 +117,7 @@ public void setStoredPaymentMethods(List storedPaymentMetho this.storedPaymentMethods = storedPaymentMethods; } - /** - * Return true if this PaymentMethodsResponse object is equal to o. - */ + /** Return true if this PaymentMethodsResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -138,8 +127,8 @@ public boolean equals(Object o) { return false; } PaymentMethodsResponse paymentMethodsResponse = (PaymentMethodsResponse) o; - return Objects.equals(this.paymentMethods, paymentMethodsResponse.paymentMethods) && - Objects.equals(this.storedPaymentMethods, paymentMethodsResponse.storedPaymentMethods); + return Objects.equals(this.paymentMethods, paymentMethodsResponse.paymentMethods) + && Objects.equals(this.storedPaymentMethods, paymentMethodsResponse.storedPaymentMethods); } @Override @@ -152,14 +141,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentMethodsResponse {\n"); sb.append(" paymentMethods: ").append(toIndentedString(paymentMethods)).append("\n"); - sb.append(" storedPaymentMethods: ").append(toIndentedString(storedPaymentMethods)).append("\n"); + sb.append(" storedPaymentMethods: ") + .append(toIndentedString(storedPaymentMethods)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -168,21 +158,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentMethodsResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaymentMethodsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethodsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentMethodsResponse */ public static PaymentMethodsResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentMethodsResponse.class); } -/** - * Convert an instance of PaymentMethodsResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentMethodsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentRefundRequest.java b/src/main/java/com/adyen/model/checkout/PaymentRefundRequest.java index 99fa65d85..323509c72 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentRefundRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentRefundRequest.java @@ -2,38 +2,28 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Amount; -import com.adyen.model.checkout.ApplicationInfo; -import com.adyen.model.checkout.EnhancedSchemeData; -import com.adyen.model.checkout.LineItem; -import com.adyen.model.checkout.Split; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * PaymentRefundRequest - */ +/** PaymentRefundRequest */ @JsonPropertyOrder({ PaymentRefundRequest.JSON_PROPERTY_AMOUNT, PaymentRefundRequest.JSON_PROPERTY_APPLICATION_INFO, @@ -46,7 +36,6 @@ PaymentRefundRequest.JSON_PROPERTY_SPLITS, PaymentRefundRequest.JSON_PROPERTY_STORE }) - public class PaymentRefundRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -67,10 +56,10 @@ public class PaymentRefundRequest { private String merchantAccount; /** - * The reason for the refund request. Possible values: * **FRAUD** * **CUSTOMER REQUEST** * **RETURN** * **DUPLICATE** * **OTHER** + * The reason for the refund request. Possible values: * **FRAUD** * **CUSTOMER REQUEST** * + * **RETURN** * **DUPLICATE** * **OTHER** */ public enum MerchantRefundReasonEnum { - FRAUD(String.valueOf("FRAUD")), CUSTOMER_REQUEST(String.valueOf("CUSTOMER REQUEST")), @@ -86,7 +75,7 @@ public enum MerchantRefundReasonEnum { private String value; MerchantRefundReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -107,7 +96,11 @@ public static MerchantRefundReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("MerchantRefundReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(MerchantRefundReasonEnum.values())); + LOG.warning( + "MerchantRefundReasonEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(MerchantRefundReasonEnum.values())); return null; } } @@ -124,13 +117,12 @@ public static MerchantRefundReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_STORE = "store"; private String store; - public PaymentRefundRequest() { - } + public PaymentRefundRequest() {} /** * amount * - * @param amount + * @param amount * @return the current {@code PaymentRefundRequest} instance, allowing for method chaining */ public PaymentRefundRequest amount(Amount amount) { @@ -140,7 +132,8 @@ public PaymentRefundRequest amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,7 +144,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -162,7 +155,7 @@ public void setAmount(Amount amount) { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo * @return the current {@code PaymentRefundRequest} instance, allowing for method chaining */ public PaymentRefundRequest applicationInfo(ApplicationInfo applicationInfo) { @@ -172,7 +165,8 @@ public PaymentRefundRequest applicationInfo(ApplicationInfo applicationInfo) { /** * Get applicationInfo - * @return applicationInfo + * + * @return applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,7 +177,7 @@ public ApplicationInfo getApplicationInfo() { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,9 +186,13 @@ public void setApplicationInfo(ApplicationInfo applicationInfo) { } /** - * This is only available for PayPal refunds. The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the specific capture to refund. + * This is only available for PayPal refunds. The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the specific capture to refund. * - * @param capturePspReference This is only available for PayPal refunds. The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the specific capture to refund. + * @param capturePspReference This is only available for PayPal refunds. The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the specific capture to refund. * @return the current {@code PaymentRefundRequest} instance, allowing for method chaining */ public PaymentRefundRequest capturePspReference(String capturePspReference) { @@ -203,8 +201,13 @@ public PaymentRefundRequest capturePspReference(String capturePspReference) { } /** - * This is only available for PayPal refunds. The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the specific capture to refund. - * @return capturePspReference This is only available for PayPal refunds. The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the specific capture to refund. + * This is only available for PayPal refunds. The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the specific capture to refund. + * + * @return capturePspReference This is only available for PayPal refunds. The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the specific capture to refund. */ @JsonProperty(JSON_PROPERTY_CAPTURE_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -213,9 +216,13 @@ public String getCapturePspReference() { } /** - * This is only available for PayPal refunds. The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the specific capture to refund. + * This is only available for PayPal refunds. The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the specific capture to refund. * - * @param capturePspReference This is only available for PayPal refunds. The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the specific capture to refund. + * @param capturePspReference This is only available for PayPal refunds. The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the specific capture to refund. */ @JsonProperty(JSON_PROPERTY_CAPTURE_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -226,7 +233,7 @@ public void setCapturePspReference(String capturePspReference) { /** * enhancedSchemeData * - * @param enhancedSchemeData + * @param enhancedSchemeData * @return the current {@code PaymentRefundRequest} instance, allowing for method chaining */ public PaymentRefundRequest enhancedSchemeData(EnhancedSchemeData enhancedSchemeData) { @@ -236,7 +243,8 @@ public PaymentRefundRequest enhancedSchemeData(EnhancedSchemeData enhancedScheme /** * Get enhancedSchemeData - * @return enhancedSchemeData + * + * @return enhancedSchemeData */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -247,7 +255,7 @@ public EnhancedSchemeData getEnhancedSchemeData() { /** * enhancedSchemeData * - * @param enhancedSchemeData + * @param enhancedSchemeData */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -256,9 +264,15 @@ public void setEnhancedSchemeData(EnhancedSchemeData enhancedSchemeData) { } /** - * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is + * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. * - * @param lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * @param lineItems Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field + * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. * @return the current {@code PaymentRefundRequest} instance, allowing for method chaining */ public PaymentRefundRequest lineItems(List lineItems) { @@ -275,8 +289,15 @@ public PaymentRefundRequest addLineItemsItem(LineItem lineItemsItem) { } /** - * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. - * @return lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is + * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. + * + * @return lineItems Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field + * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -285,9 +306,15 @@ public List getLineItems() { } /** - * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is + * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. * - * @param lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * @param lineItems Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field + * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -308,6 +335,7 @@ public PaymentRefundRequest merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. + * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -328,9 +356,11 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The reason for the refund request. Possible values: * **FRAUD** * **CUSTOMER REQUEST** * **RETURN** * **DUPLICATE** * **OTHER** + * The reason for the refund request. Possible values: * **FRAUD** * **CUSTOMER REQUEST** * + * **RETURN** * **DUPLICATE** * **OTHER** * - * @param merchantRefundReason The reason for the refund request. Possible values: * **FRAUD** * **CUSTOMER REQUEST** * **RETURN** * **DUPLICATE** * **OTHER** + * @param merchantRefundReason The reason for the refund request. Possible values: * **FRAUD** * + * **CUSTOMER REQUEST** * **RETURN** * **DUPLICATE** * **OTHER** * @return the current {@code PaymentRefundRequest} instance, allowing for method chaining */ public PaymentRefundRequest merchantRefundReason(MerchantRefundReasonEnum merchantRefundReason) { @@ -339,8 +369,11 @@ public PaymentRefundRequest merchantRefundReason(MerchantRefundReasonEnum mercha } /** - * The reason for the refund request. Possible values: * **FRAUD** * **CUSTOMER REQUEST** * **RETURN** * **DUPLICATE** * **OTHER** - * @return merchantRefundReason The reason for the refund request. Possible values: * **FRAUD** * **CUSTOMER REQUEST** * **RETURN** * **DUPLICATE** * **OTHER** + * The reason for the refund request. Possible values: * **FRAUD** * **CUSTOMER REQUEST** * + * **RETURN** * **DUPLICATE** * **OTHER** + * + * @return merchantRefundReason The reason for the refund request. Possible values: * **FRAUD** * + * **CUSTOMER REQUEST** * **RETURN** * **DUPLICATE** * **OTHER** */ @JsonProperty(JSON_PROPERTY_MERCHANT_REFUND_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -349,9 +382,11 @@ public MerchantRefundReasonEnum getMerchantRefundReason() { } /** - * The reason for the refund request. Possible values: * **FRAUD** * **CUSTOMER REQUEST** * **RETURN** * **DUPLICATE** * **OTHER** + * The reason for the refund request. Possible values: * **FRAUD** * **CUSTOMER REQUEST** * + * **RETURN** * **DUPLICATE** * **OTHER** * - * @param merchantRefundReason The reason for the refund request. Possible values: * **FRAUD** * **CUSTOMER REQUEST** * **RETURN** * **DUPLICATE** * **OTHER** + * @param merchantRefundReason The reason for the refund request. Possible values: * **FRAUD** * + * **CUSTOMER REQUEST** * **RETURN** * **DUPLICATE** * **OTHER** */ @JsonProperty(JSON_PROPERTY_MERCHANT_REFUND_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -372,6 +407,7 @@ public PaymentRefundRequest reference(String reference) { /** * Your reference for the refund request. Maximum length: 80 characters. + * * @return reference Your reference for the refund request. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -392,9 +428,15 @@ public void setReference(String reference) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). * - * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * @param splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). * @return the current {@code PaymentRefundRequest} instance, allowing for method chaining */ public PaymentRefundRequest splits(List splits) { @@ -411,8 +453,15 @@ public PaymentRefundRequest addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). - * @return splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * + * @return splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -421,9 +470,15 @@ public List getSplits() { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). * - * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * @param splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -432,9 +487,15 @@ public void setSplits(List splits) { } /** - * The online store or [physical store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) that is processing the refund. This must be the same as the store name configured in your Customer Area. Otherwise, you get an error and the refund fails. + * The online store or [physical + * store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) + * that is processing the refund. This must be the same as the store name configured in your + * Customer Area. Otherwise, you get an error and the refund fails. * - * @param store The online store or [physical store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) that is processing the refund. This must be the same as the store name configured in your Customer Area. Otherwise, you get an error and the refund fails. + * @param store The online store or [physical + * store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) + * that is processing the refund. This must be the same as the store name configured in your + * Customer Area. Otherwise, you get an error and the refund fails. * @return the current {@code PaymentRefundRequest} instance, allowing for method chaining */ public PaymentRefundRequest store(String store) { @@ -443,8 +504,15 @@ public PaymentRefundRequest store(String store) { } /** - * The online store or [physical store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) that is processing the refund. This must be the same as the store name configured in your Customer Area. Otherwise, you get an error and the refund fails. - * @return store The online store or [physical store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) that is processing the refund. This must be the same as the store name configured in your Customer Area. Otherwise, you get an error and the refund fails. + * The online store or [physical + * store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) + * that is processing the refund. This must be the same as the store name configured in your + * Customer Area. Otherwise, you get an error and the refund fails. + * + * @return store The online store or [physical + * store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) + * that is processing the refund. This must be the same as the store name configured in your + * Customer Area. Otherwise, you get an error and the refund fails. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -453,9 +521,15 @@ public String getStore() { } /** - * The online store or [physical store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) that is processing the refund. This must be the same as the store name configured in your Customer Area. Otherwise, you get an error and the refund fails. + * The online store or [physical + * store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) + * that is processing the refund. This must be the same as the store name configured in your + * Customer Area. Otherwise, you get an error and the refund fails. * - * @param store The online store or [physical store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) that is processing the refund. This must be the same as the store name configured in your Customer Area. Otherwise, you get an error and the refund fails. + * @param store The online store or [physical + * store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) + * that is processing the refund. This must be the same as the store name configured in your + * Customer Area. Otherwise, you get an error and the refund fails. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -463,9 +537,7 @@ public void setStore(String store) { this.store = store; } - /** - * Return true if this PaymentRefundRequest object is equal to o. - */ + /** Return true if this PaymentRefundRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -475,21 +547,31 @@ public boolean equals(Object o) { return false; } PaymentRefundRequest paymentRefundRequest = (PaymentRefundRequest) o; - return Objects.equals(this.amount, paymentRefundRequest.amount) && - Objects.equals(this.applicationInfo, paymentRefundRequest.applicationInfo) && - Objects.equals(this.capturePspReference, paymentRefundRequest.capturePspReference) && - Objects.equals(this.enhancedSchemeData, paymentRefundRequest.enhancedSchemeData) && - Objects.equals(this.lineItems, paymentRefundRequest.lineItems) && - Objects.equals(this.merchantAccount, paymentRefundRequest.merchantAccount) && - Objects.equals(this.merchantRefundReason, paymentRefundRequest.merchantRefundReason) && - Objects.equals(this.reference, paymentRefundRequest.reference) && - Objects.equals(this.splits, paymentRefundRequest.splits) && - Objects.equals(this.store, paymentRefundRequest.store); + return Objects.equals(this.amount, paymentRefundRequest.amount) + && Objects.equals(this.applicationInfo, paymentRefundRequest.applicationInfo) + && Objects.equals(this.capturePspReference, paymentRefundRequest.capturePspReference) + && Objects.equals(this.enhancedSchemeData, paymentRefundRequest.enhancedSchemeData) + && Objects.equals(this.lineItems, paymentRefundRequest.lineItems) + && Objects.equals(this.merchantAccount, paymentRefundRequest.merchantAccount) + && Objects.equals(this.merchantRefundReason, paymentRefundRequest.merchantRefundReason) + && Objects.equals(this.reference, paymentRefundRequest.reference) + && Objects.equals(this.splits, paymentRefundRequest.splits) + && Objects.equals(this.store, paymentRefundRequest.store); } @Override public int hashCode() { - return Objects.hash(amount, applicationInfo, capturePspReference, enhancedSchemeData, lineItems, merchantAccount, merchantRefundReason, reference, splits, store); + return Objects.hash( + amount, + applicationInfo, + capturePspReference, + enhancedSchemeData, + lineItems, + merchantAccount, + merchantRefundReason, + reference, + splits, + store); } @Override @@ -498,11 +580,15 @@ public String toString() { sb.append("class PaymentRefundRequest {\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" applicationInfo: ").append(toIndentedString(applicationInfo)).append("\n"); - sb.append(" capturePspReference: ").append(toIndentedString(capturePspReference)).append("\n"); + sb.append(" capturePspReference: ") + .append(toIndentedString(capturePspReference)) + .append("\n"); sb.append(" enhancedSchemeData: ").append(toIndentedString(enhancedSchemeData)).append("\n"); sb.append(" lineItems: ").append(toIndentedString(lineItems)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" merchantRefundReason: ").append(toIndentedString(merchantRefundReason)).append("\n"); + sb.append(" merchantRefundReason: ") + .append(toIndentedString(merchantRefundReason)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" store: ").append(toIndentedString(store)).append("\n"); @@ -511,8 +597,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -521,21 +606,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentRefundRequest given an JSON string * * @param jsonString JSON string * @return An instance of PaymentRefundRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentRefundRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentRefundRequest */ public static PaymentRefundRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentRefundRequest.class); } -/** - * Convert an instance of PaymentRefundRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentRefundRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentRefundResponse.java b/src/main/java/com/adyen/model/checkout/PaymentRefundResponse.java index 0bd60fa81..e67a3d927 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentRefundResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentRefundResponse.java @@ -2,36 +2,28 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Amount; -import com.adyen.model.checkout.LineItem; -import com.adyen.model.checkout.Split; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * PaymentRefundResponse - */ +/** PaymentRefundResponse */ @JsonPropertyOrder({ PaymentRefundResponse.JSON_PROPERTY_AMOUNT, PaymentRefundResponse.JSON_PROPERTY_CAPTURE_PSP_REFERENCE, @@ -45,7 +37,6 @@ PaymentRefundResponse.JSON_PROPERTY_STATUS, PaymentRefundResponse.JSON_PROPERTY_STORE }) - public class PaymentRefundResponse { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -59,11 +50,8 @@ public class PaymentRefundResponse { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; - /** - * Your reason for the refund request. - */ + /** Your reason for the refund request. */ public enum MerchantRefundReasonEnum { - FRAUD(String.valueOf("FRAUD")), CUSTOMER_REQUEST(String.valueOf("CUSTOMER REQUEST")), @@ -79,7 +67,7 @@ public enum MerchantRefundReasonEnum { private String value; MerchantRefundReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -100,7 +88,11 @@ public static MerchantRefundReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("MerchantRefundReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(MerchantRefundReasonEnum.values())); + LOG.warning( + "MerchantRefundReasonEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(MerchantRefundReasonEnum.values())); return null; } } @@ -120,11 +112,8 @@ public static MerchantRefundReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_SPLITS = "splits"; private List splits; - /** - * The status of your request. This will always have the value **received**. - */ + /** The status of your request. This will always have the value **received**. */ public enum StatusEnum { - RECEIVED(String.valueOf("received")); private static final Logger LOG = Logger.getLogger(StatusEnum.class.getName()); @@ -132,7 +121,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -153,7 +142,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -164,13 +157,12 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STORE = "store"; private String store; - public PaymentRefundResponse() { - } + public PaymentRefundResponse() {} /** * amount * - * @param amount + * @param amount * @return the current {@code PaymentRefundResponse} instance, allowing for method chaining */ public PaymentRefundResponse amount(Amount amount) { @@ -180,7 +172,8 @@ public PaymentRefundResponse amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,7 +184,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,9 +193,13 @@ public void setAmount(Amount amount) { } /** - * This is only available for PayPal refunds. The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the specific capture to refund. + * This is only available for PayPal refunds. The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the specific capture to refund. * - * @param capturePspReference This is only available for PayPal refunds. The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the specific capture to refund. + * @param capturePspReference This is only available for PayPal refunds. The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the specific capture to refund. * @return the current {@code PaymentRefundResponse} instance, allowing for method chaining */ public PaymentRefundResponse capturePspReference(String capturePspReference) { @@ -211,8 +208,13 @@ public PaymentRefundResponse capturePspReference(String capturePspReference) { } /** - * This is only available for PayPal refunds. The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the specific capture to refund. - * @return capturePspReference This is only available for PayPal refunds. The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the specific capture to refund. + * This is only available for PayPal refunds. The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the specific capture to refund. + * + * @return capturePspReference This is only available for PayPal refunds. The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the specific capture to refund. */ @JsonProperty(JSON_PROPERTY_CAPTURE_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,9 +223,13 @@ public String getCapturePspReference() { } /** - * This is only available for PayPal refunds. The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the specific capture to refund. + * This is only available for PayPal refunds. The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the specific capture to refund. * - * @param capturePspReference This is only available for PayPal refunds. The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the specific capture to refund. + * @param capturePspReference This is only available for PayPal refunds. The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the specific capture to refund. */ @JsonProperty(JSON_PROPERTY_CAPTURE_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,9 +238,15 @@ public void setCapturePspReference(String capturePspReference) { } /** - * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is + * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. * - * @param lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * @param lineItems Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field + * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. * @return the current {@code PaymentRefundResponse} instance, allowing for method chaining */ public PaymentRefundResponse lineItems(List lineItems) { @@ -251,8 +263,15 @@ public PaymentRefundResponse addLineItemsItem(LineItem lineItemsItem) { } /** - * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. - * @return lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is + * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. + * + * @return lineItems Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field + * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -261,9 +280,15 @@ public List getLineItems() { } /** - * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is + * required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. * - * @param lineItems Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. + * @param lineItems Price and product information of the refunded items, required for [partial + * refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field + * is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, + * Ratepay, Walley, and Zip. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,6 +309,7 @@ public PaymentRefundResponse merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. + * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -316,6 +342,7 @@ public PaymentRefundResponse merchantRefundReason(MerchantRefundReasonEnum merch /** * Your reason for the refund request. + * * @return merchantRefundReason Your reason for the refund request. */ @JsonProperty(JSON_PROPERTY_MERCHANT_REFUND_REASON) @@ -336,9 +363,13 @@ public void setMerchantRefundReason(MerchantRefundReasonEnum merchantRefundReaso } /** - * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to refund. + * The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment to refund. * - * @param paymentPspReference The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to refund. + * @param paymentPspReference The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment to refund. * @return the current {@code PaymentRefundResponse} instance, allowing for method chaining */ public PaymentRefundResponse paymentPspReference(String paymentPspReference) { @@ -347,8 +378,13 @@ public PaymentRefundResponse paymentPspReference(String paymentPspReference) { } /** - * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to refund. - * @return paymentPspReference The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to refund. + * The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment to refund. + * + * @return paymentPspReference The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment to refund. */ @JsonProperty(JSON_PROPERTY_PAYMENT_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -357,9 +393,13 @@ public String getPaymentPspReference() { } /** - * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to refund. + * The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment to refund. * - * @param paymentPspReference The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to refund. + * @param paymentPspReference The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment to refund. */ @JsonProperty(JSON_PROPERTY_PAYMENT_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -380,6 +420,7 @@ public PaymentRefundResponse pspReference(String pspReference) { /** * Adyen's 16-character reference associated with the refund request. + * * @return pspReference Adyen's 16-character reference associated with the refund request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -412,6 +453,7 @@ public PaymentRefundResponse reference(String reference) { /** * Your reference for the refund request. + * * @return reference Your reference for the refund request. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -432,9 +474,15 @@ public void setReference(String reference) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). * - * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * @param splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). * @return the current {@code PaymentRefundResponse} instance, allowing for method chaining */ public PaymentRefundResponse splits(List splits) { @@ -451,8 +499,15 @@ public PaymentRefundResponse addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). - * @return splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * + * @return splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -461,9 +516,15 @@ public List getSplits() { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). * - * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). + * @param splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to process payments for + * [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -484,6 +545,7 @@ public PaymentRefundResponse status(StatusEnum status) { /** * The status of your request. This will always have the value **received**. + * * @return status The status of your request. This will always have the value **received**. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -504,9 +566,15 @@ public void setStatus(StatusEnum status) { } /** - * The online store or [physical store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) that is processing the refund. This must be the same as the store name configured in your Customer Area. Otherwise, you get an error and the refund fails. + * The online store or [physical + * store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) + * that is processing the refund. This must be the same as the store name configured in your + * Customer Area. Otherwise, you get an error and the refund fails. * - * @param store The online store or [physical store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) that is processing the refund. This must be the same as the store name configured in your Customer Area. Otherwise, you get an error and the refund fails. + * @param store The online store or [physical + * store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) + * that is processing the refund. This must be the same as the store name configured in your + * Customer Area. Otherwise, you get an error and the refund fails. * @return the current {@code PaymentRefundResponse} instance, allowing for method chaining */ public PaymentRefundResponse store(String store) { @@ -515,8 +583,15 @@ public PaymentRefundResponse store(String store) { } /** - * The online store or [physical store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) that is processing the refund. This must be the same as the store name configured in your Customer Area. Otherwise, you get an error and the refund fails. - * @return store The online store or [physical store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) that is processing the refund. This must be the same as the store name configured in your Customer Area. Otherwise, you get an error and the refund fails. + * The online store or [physical + * store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) + * that is processing the refund. This must be the same as the store name configured in your + * Customer Area. Otherwise, you get an error and the refund fails. + * + * @return store The online store or [physical + * store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) + * that is processing the refund. This must be the same as the store name configured in your + * Customer Area. Otherwise, you get an error and the refund fails. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -525,9 +600,15 @@ public String getStore() { } /** - * The online store or [physical store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) that is processing the refund. This must be the same as the store name configured in your Customer Area. Otherwise, you get an error and the refund fails. + * The online store or [physical + * store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) + * that is processing the refund. This must be the same as the store name configured in your + * Customer Area. Otherwise, you get an error and the refund fails. * - * @param store The online store or [physical store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) that is processing the refund. This must be the same as the store name configured in your Customer Area. Otherwise, you get an error and the refund fails. + * @param store The online store or [physical + * store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) + * that is processing the refund. This must be the same as the store name configured in your + * Customer Area. Otherwise, you get an error and the refund fails. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -535,9 +616,7 @@ public void setStore(String store) { this.store = store; } - /** - * Return true if this PaymentRefundResponse object is equal to o. - */ + /** Return true if this PaymentRefundResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -547,22 +626,33 @@ public boolean equals(Object o) { return false; } PaymentRefundResponse paymentRefundResponse = (PaymentRefundResponse) o; - return Objects.equals(this.amount, paymentRefundResponse.amount) && - Objects.equals(this.capturePspReference, paymentRefundResponse.capturePspReference) && - Objects.equals(this.lineItems, paymentRefundResponse.lineItems) && - Objects.equals(this.merchantAccount, paymentRefundResponse.merchantAccount) && - Objects.equals(this.merchantRefundReason, paymentRefundResponse.merchantRefundReason) && - Objects.equals(this.paymentPspReference, paymentRefundResponse.paymentPspReference) && - Objects.equals(this.pspReference, paymentRefundResponse.pspReference) && - Objects.equals(this.reference, paymentRefundResponse.reference) && - Objects.equals(this.splits, paymentRefundResponse.splits) && - Objects.equals(this.status, paymentRefundResponse.status) && - Objects.equals(this.store, paymentRefundResponse.store); + return Objects.equals(this.amount, paymentRefundResponse.amount) + && Objects.equals(this.capturePspReference, paymentRefundResponse.capturePspReference) + && Objects.equals(this.lineItems, paymentRefundResponse.lineItems) + && Objects.equals(this.merchantAccount, paymentRefundResponse.merchantAccount) + && Objects.equals(this.merchantRefundReason, paymentRefundResponse.merchantRefundReason) + && Objects.equals(this.paymentPspReference, paymentRefundResponse.paymentPspReference) + && Objects.equals(this.pspReference, paymentRefundResponse.pspReference) + && Objects.equals(this.reference, paymentRefundResponse.reference) + && Objects.equals(this.splits, paymentRefundResponse.splits) + && Objects.equals(this.status, paymentRefundResponse.status) + && Objects.equals(this.store, paymentRefundResponse.store); } @Override public int hashCode() { - return Objects.hash(amount, capturePspReference, lineItems, merchantAccount, merchantRefundReason, paymentPspReference, pspReference, reference, splits, status, store); + return Objects.hash( + amount, + capturePspReference, + lineItems, + merchantAccount, + merchantRefundReason, + paymentPspReference, + pspReference, + reference, + splits, + status, + store); } @Override @@ -570,11 +660,17 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentRefundResponse {\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append(" capturePspReference: ").append(toIndentedString(capturePspReference)).append("\n"); + sb.append(" capturePspReference: ") + .append(toIndentedString(capturePspReference)) + .append("\n"); sb.append(" lineItems: ").append(toIndentedString(lineItems)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" merchantRefundReason: ").append(toIndentedString(merchantRefundReason)).append("\n"); - sb.append(" paymentPspReference: ").append(toIndentedString(paymentPspReference)).append("\n"); + sb.append(" merchantRefundReason: ") + .append(toIndentedString(merchantRefundReason)) + .append("\n"); + sb.append(" paymentPspReference: ") + .append(toIndentedString(paymentPspReference)) + .append("\n"); sb.append(" pspReference: ").append(toIndentedString(pspReference)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); @@ -585,8 +681,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -595,21 +690,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentRefundResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaymentRefundResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentRefundResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentRefundResponse */ public static PaymentRefundResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentRefundResponse.class); } -/** - * Convert an instance of PaymentRefundResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentRefundResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentRequest.java b/src/main/java/com/adyen/model/checkout/PaymentRequest.java index e9036e46d..c42440bfd 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentRequest.java @@ -2,63 +2,31 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.AccountInfo; -import com.adyen.model.checkout.Amount; -import com.adyen.model.checkout.ApplicationInfo; -import com.adyen.model.checkout.AuthenticationData; -import com.adyen.model.checkout.BillingAddress; -import com.adyen.model.checkout.BrowserInfo; -import com.adyen.model.checkout.CheckoutBankAccount; -import com.adyen.model.checkout.CheckoutPaymentMethod; -import com.adyen.model.checkout.Company; -import com.adyen.model.checkout.DeliveryAddress; -import com.adyen.model.checkout.EncryptedOrderData; -import com.adyen.model.checkout.EnhancedSchemeData; -import com.adyen.model.checkout.ForexQuote; -import com.adyen.model.checkout.FundOrigin; -import com.adyen.model.checkout.FundRecipient; -import com.adyen.model.checkout.Installments; -import com.adyen.model.checkout.LineItem; -import com.adyen.model.checkout.Mandate; -import com.adyen.model.checkout.MerchantRiskIndicator; -import com.adyen.model.checkout.Name; -import com.adyen.model.checkout.PlatformChargebackLogic; -import com.adyen.model.checkout.RiskData; -import com.adyen.model.checkout.Split; -import com.adyen.model.checkout.SubMerchantInfo; -import com.adyen.model.checkout.Surcharge; -import com.adyen.model.checkout.ThreeDS2RequestFields; -import com.adyen.model.checkout.ThreeDSecureData; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * PaymentRequest - */ +/** PaymentRequest */ @JsonPropertyOrder({ PaymentRequest.JSON_PROPERTY_ACCOUNT_INFO, PaymentRequest.JSON_PROPERTY_ADDITIONAL_AMOUNT, @@ -133,7 +101,6 @@ PaymentRequest.JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY, PaymentRequest.JSON_PROPERTY_TRUSTED_SHOPPER }) - public class PaymentRequest { public static final String JSON_PROPERTY_ACCOUNT_INFO = "accountInfo"; private AccountInfo accountInfo; @@ -166,10 +133,12 @@ public class PaymentRequest { private Integer captureDelayHours; /** - * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web + * The platform where a payment transaction takes place. This field is optional for filtering out + * payment methods that are only available on specific platforms. If this value is not set, then + * we will try to infer it from the `sdkVersion` or `token`. Possible values: + * * iOS * Android * Web */ public enum ChannelEnum { - IOS(String.valueOf("iOS")), ANDROID(String.valueOf("Android")), @@ -181,7 +150,7 @@ public enum ChannelEnum { private String value; ChannelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -202,7 +171,11 @@ public static ChannelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ChannelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChannelEnum.values())); + LOG.warning( + "ChannelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ChannelEnum.values())); return null; } } @@ -254,11 +227,8 @@ public static ChannelEnum fromValue(String value) { public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA = "enhancedSchemeData"; private EnhancedSchemeData enhancedSchemeData; - /** - * The type of the entity the payment is processed for. - */ + /** The type of the entity the payment is processed for. */ public enum EntityTypeEnum { - NATURALPERSON(String.valueOf("NaturalPerson")), COMPANYNAME(String.valueOf("CompanyName")); @@ -268,7 +238,7 @@ public enum EntityTypeEnum { private String value; EntityTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -289,7 +259,11 @@ public static EntityTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("EntityTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(EntityTypeEnum.values())); + LOG.warning( + "EntityTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(EntityTypeEnum.values())); return null; } } @@ -307,10 +281,10 @@ public static EntityTypeEnum fromValue(String value) { private FundRecipient fundRecipient; /** - * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** + * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * + * **installment** */ public enum IndustryUsageEnum { - DELAYEDCHARGE(String.valueOf("delayedCharge")), INSTALLMENT(String.valueOf("installment")), @@ -322,7 +296,7 @@ public enum IndustryUsageEnum { private String value; IndustryUsageEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -343,7 +317,11 @@ public static IndustryUsageEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("IndustryUsageEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(IndustryUsageEnum.values())); + LOG.warning( + "IndustryUsageEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(IndustryUsageEnum.values())); return null; } } @@ -357,7 +335,8 @@ public static IndustryUsageEnum fromValue(String value) { public static final String JSON_PROPERTY_LINE_ITEMS = "lineItems"; private List lineItems; - public static final String JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT = "localizedShopperStatement"; + public static final String JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT = + "localizedShopperStatement"; private Map localizedShopperStatement; public static final String JSON_PROPERTY_MANDATE = "mandate"; @@ -403,22 +382,30 @@ public static IndustryUsageEnum fromValue(String value) { private String recurringFrequency; /** - * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or + * using stored payment details. Allowed values: * `Subscription` – A transaction for a + * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a + * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – + * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. */ public enum RecurringProcessingModelEnum { - CARDONFILE(String.valueOf("CardOnFile")), SUBSCRIPTION(String.valueOf("Subscription")), UNSCHEDULEDCARDONFILE(String.valueOf("UnscheduledCardOnFile")); - private static final Logger LOG = Logger.getLogger(RecurringProcessingModelEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(RecurringProcessingModelEnum.class.getName()); private String value; RecurringProcessingModelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -439,7 +426,11 @@ public static RecurringProcessingModelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("RecurringProcessingModelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RecurringProcessingModelEnum.values())); + LOG.warning( + "RecurringProcessingModelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(RecurringProcessingModelEnum.values())); return null; } } @@ -475,10 +466,19 @@ public static RecurringProcessingModelEnum fromValue(String value) { private String shopperIP; /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. */ public enum ShopperInteractionEnum { - ECOMMERCE(String.valueOf("Ecommerce")), CONTAUTH(String.valueOf("ContAuth")), @@ -492,7 +492,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -513,7 +513,11 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning( + "ShopperInteractionEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -557,20 +561,21 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S2_REQUEST_DATA = "threeDS2RequestData"; private ThreeDS2RequestFields threeDS2RequestData; - public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = "threeDSAuthenticationOnly"; - @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. + public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = + "threeDSAuthenticationOnly"; + @Deprecated // deprecated since Adyen Checkout API v69: Use + // `authenticationData.authenticationOnly` instead. private Boolean threeDSAuthenticationOnly; public static final String JSON_PROPERTY_TRUSTED_SHOPPER = "trustedShopper"; private Boolean trustedShopper; - public PaymentRequest() { - } + public PaymentRequest() {} /** * accountInfo * - * @param accountInfo + * @param accountInfo * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest accountInfo(AccountInfo accountInfo) { @@ -580,7 +585,8 @@ public PaymentRequest accountInfo(AccountInfo accountInfo) { /** * Get accountInfo - * @return accountInfo + * + * @return accountInfo */ @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -591,7 +597,7 @@ public AccountInfo getAccountInfo() { /** * accountInfo * - * @param accountInfo + * @param accountInfo */ @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -602,7 +608,7 @@ public void setAccountInfo(AccountInfo accountInfo) { /** * additionalAmount * - * @param additionalAmount + * @param additionalAmount * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest additionalAmount(Amount additionalAmount) { @@ -612,7 +618,8 @@ public PaymentRequest additionalAmount(Amount additionalAmount) { /** * Get additionalAmount - * @return additionalAmount + * + * @return additionalAmount */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -623,7 +630,7 @@ public Amount getAdditionalAmount() { /** * additionalAmount * - * @param additionalAmount + * @param additionalAmount */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -632,9 +639,13 @@ public void setAdditionalAmount(Amount additionalAmount) { } /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. + * The `additionalData` object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a + * particular payment request. The `additionalData` object consists of entries, each + * of which includes the key and value. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest additionalData(Map additionalData) { @@ -651,8 +662,13 @@ public PaymentRequest putAdditionalDataItem(String key, String additionalDataIte } /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. - * @return additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. + * The `additionalData` object consists of entries, each of which includes the key and + * value. + * + * @return additionalData This field contains additional data, which may be required for a + * particular payment request. The `additionalData` object consists of entries, each + * of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -661,9 +677,13 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. + * The `additionalData` object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a + * particular payment request. The `additionalData` object consists of entries, each + * of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -674,7 +694,7 @@ public void setAdditionalData(Map additionalData) { /** * amount * - * @param amount + * @param amount * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest amount(Amount amount) { @@ -684,7 +704,8 @@ public PaymentRequest amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -695,7 +716,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -706,7 +727,7 @@ public void setAmount(Amount amount) { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest applicationInfo(ApplicationInfo applicationInfo) { @@ -716,7 +737,8 @@ public PaymentRequest applicationInfo(ApplicationInfo applicationInfo) { /** * Get applicationInfo - * @return applicationInfo + * + * @return applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -727,7 +749,7 @@ public ApplicationInfo getApplicationInfo() { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -738,7 +760,7 @@ public void setApplicationInfo(ApplicationInfo applicationInfo) { /** * authenticationData * - * @param authenticationData + * @param authenticationData * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest authenticationData(AuthenticationData authenticationData) { @@ -748,7 +770,8 @@ public PaymentRequest authenticationData(AuthenticationData authenticationData) /** * Get authenticationData - * @return authenticationData + * + * @return authenticationData */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -759,7 +782,7 @@ public AuthenticationData getAuthenticationData() { /** * authenticationData * - * @param authenticationData + * @param authenticationData */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -770,7 +793,7 @@ public void setAuthenticationData(AuthenticationData authenticationData) { /** * bankAccount * - * @param bankAccount + * @param bankAccount * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest bankAccount(CheckoutBankAccount bankAccount) { @@ -780,7 +803,8 @@ public PaymentRequest bankAccount(CheckoutBankAccount bankAccount) { /** * Get bankAccount - * @return bankAccount + * + * @return bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -791,7 +815,7 @@ public CheckoutBankAccount getBankAccount() { /** * bankAccount * - * @param bankAccount + * @param bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -802,7 +826,7 @@ public void setBankAccount(CheckoutBankAccount bankAccount) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest billingAddress(BillingAddress billingAddress) { @@ -812,7 +836,8 @@ public PaymentRequest billingAddress(BillingAddress billingAddress) { /** * Get billingAddress - * @return billingAddress + * + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -823,7 +848,7 @@ public BillingAddress getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -834,7 +859,7 @@ public void setBillingAddress(BillingAddress billingAddress) { /** * browserInfo * - * @param browserInfo + * @param browserInfo * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest browserInfo(BrowserInfo browserInfo) { @@ -844,7 +869,8 @@ public PaymentRequest browserInfo(BrowserInfo browserInfo) { /** * Get browserInfo - * @return browserInfo + * + * @return browserInfo */ @JsonProperty(JSON_PROPERTY_BROWSER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -855,7 +881,7 @@ public BrowserInfo getBrowserInfo() { /** * browserInfo * - * @param browserInfo + * @param browserInfo */ @JsonProperty(JSON_PROPERTY_BROWSER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -866,7 +892,8 @@ public void setBrowserInfo(BrowserInfo browserInfo) { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, + * specified in hours. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest captureDelayHours(Integer captureDelayHours) { @@ -876,7 +903,9 @@ public PaymentRequest captureDelayHours(Integer captureDelayHours) { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. - * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. + * + * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, + * specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -887,7 +916,8 @@ public Integer getCaptureDelayHours() { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, + * specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -896,9 +926,15 @@ public void setCaptureDelayHours(Integer captureDelayHours) { } /** - * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web + * The platform where a payment transaction takes place. This field is optional for filtering out + * payment methods that are only available on specific platforms. If this value is not set, then + * we will try to infer it from the `sdkVersion` or `token`. Possible values: + * * iOS * Android * Web * - * @param channel The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web + * @param channel The platform where a payment transaction takes place. This field is optional for + * filtering out payment methods that are only available on specific platforms. If this value + * is not set, then we will try to infer it from the `sdkVersion` or + * `token`. Possible values: * iOS * Android * Web * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest channel(ChannelEnum channel) { @@ -907,8 +943,15 @@ public PaymentRequest channel(ChannelEnum channel) { } /** - * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web - * @return channel The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web + * The platform where a payment transaction takes place. This field is optional for filtering out + * payment methods that are only available on specific platforms. If this value is not set, then + * we will try to infer it from the `sdkVersion` or `token`. Possible values: + * * iOS * Android * Web + * + * @return channel The platform where a payment transaction takes place. This field is optional + * for filtering out payment methods that are only available on specific platforms. If this + * value is not set, then we will try to infer it from the `sdkVersion` or + * `token`. Possible values: * iOS * Android * Web */ @JsonProperty(JSON_PROPERTY_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -917,9 +960,15 @@ public ChannelEnum getChannel() { } /** - * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web + * The platform where a payment transaction takes place. This field is optional for filtering out + * payment methods that are only available on specific platforms. If this value is not set, then + * we will try to infer it from the `sdkVersion` or `token`. Possible values: + * * iOS * Android * Web * - * @param channel The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web + * @param channel The platform where a payment transaction takes place. This field is optional for + * filtering out payment methods that are only available on specific platforms. If this value + * is not set, then we will try to infer it from the `sdkVersion` or + * `token`. Possible values: * iOS * Android * Web */ @JsonProperty(JSON_PROPERTY_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -928,9 +977,11 @@ public void setChannel(ChannelEnum channel) { } /** - * Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user payment journey. + * Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user + * payment journey. * - * @param checkoutAttemptId Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user payment journey. + * @param checkoutAttemptId Checkout attempt ID that corresponds to the Id generated by the client + * SDK for tracking user payment journey. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest checkoutAttemptId(String checkoutAttemptId) { @@ -939,8 +990,11 @@ public PaymentRequest checkoutAttemptId(String checkoutAttemptId) { } /** - * Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user payment journey. - * @return checkoutAttemptId Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user payment journey. + * Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user + * payment journey. + * + * @return checkoutAttemptId Checkout attempt ID that corresponds to the Id generated by the + * client SDK for tracking user payment journey. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -949,9 +1003,11 @@ public String getCheckoutAttemptId() { } /** - * Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user payment journey. + * Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user + * payment journey. * - * @param checkoutAttemptId Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user payment journey. + * @param checkoutAttemptId Checkout attempt ID that corresponds to the Id generated by the client + * SDK for tracking user payment journey. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -962,7 +1018,7 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { /** * company * - * @param company + * @param company * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest company(Company company) { @@ -972,7 +1028,8 @@ public PaymentRequest company(Company company) { /** * Get company - * @return company + * + * @return company */ @JsonProperty(JSON_PROPERTY_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -983,7 +1040,7 @@ public Company getCompany() { /** * company * - * @param company + * @param company */ @JsonProperty(JSON_PROPERTY_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -992,13 +1049,13 @@ public void setCompany(Company company) { } /** - * Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey. + * Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment + * journey. * - * @param conversionId Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey. + * @param conversionId Conversion ID that corresponds to the Id generated by the client SDK for + * tracking user payment journey. * @return the current {@code PaymentRequest} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v68 - * Use `checkoutAttemptId` instead + * @deprecated since Adyen Checkout API v68 Use `checkoutAttemptId` instead */ @Deprecated // deprecated since Adyen Checkout API v68: Use `checkoutAttemptId` instead public PaymentRequest conversionId(String conversionId) { @@ -1007,8 +1064,11 @@ public PaymentRequest conversionId(String conversionId) { } /** - * Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey. - * @return conversionId Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey. + * Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment + * journey. + * + * @return conversionId Conversion ID that corresponds to the Id generated by the client SDK for + * tracking user payment journey. * @deprecated // deprecated since Adyen Checkout API v68: Use `checkoutAttemptId` instead */ @Deprecated // deprecated since Adyen Checkout API v68: Use `checkoutAttemptId` instead @@ -1019,12 +1079,12 @@ public String getConversionId() { } /** - * Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey. + * Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment + * journey. * - * @param conversionId Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey. - * - * @deprecated since Adyen Checkout API v68 - * Use `checkoutAttemptId` instead + * @param conversionId Conversion ID that corresponds to the Id generated by the client SDK for + * tracking user payment journey. + * @deprecated since Adyen Checkout API v68 Use `checkoutAttemptId` instead */ @Deprecated // deprecated since Adyen Checkout API v68: Use `checkoutAttemptId` instead @JsonProperty(JSON_PROPERTY_CONVERSION_ID) @@ -1034,9 +1094,11 @@ public void setConversionId(String conversionId) { } /** - * The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * The shopper country. Format: [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE * - * @param countryCode The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * @param countryCode The shopper country. Format: [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest countryCode(String countryCode) { @@ -1045,8 +1107,11 @@ public PaymentRequest countryCode(String countryCode) { } /** - * The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE - * @return countryCode The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * The shopper country. Format: [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * + * @return countryCode The shopper country. Format: [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1055,9 +1120,11 @@ public String getCountryCode() { } /** - * The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * The shopper country. Format: [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE * - * @param countryCode The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + * @param countryCode The shopper country. Format: [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1066,9 +1133,11 @@ public void setCountryCode(String countryCode) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): + * YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest dateOfBirth(OffsetDateTime dateOfBirth) { @@ -1077,8 +1146,11 @@ public PaymentRequest dateOfBirth(OffsetDateTime dateOfBirth) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD - * @return dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): + * YYYY-MM-DD + * + * @return dateOfBirth The shopper's date of birth. Format + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1087,9 +1159,11 @@ public OffsetDateTime getDateOfBirth() { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): + * YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1100,7 +1174,7 @@ public void setDateOfBirth(OffsetDateTime dateOfBirth) { /** * dccQuote * - * @param dccQuote + * @param dccQuote * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest dccQuote(ForexQuote dccQuote) { @@ -1110,7 +1184,8 @@ public PaymentRequest dccQuote(ForexQuote dccQuote) { /** * Get dccQuote - * @return dccQuote + * + * @return dccQuote */ @JsonProperty(JSON_PROPERTY_DCC_QUOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1121,7 +1196,7 @@ public ForexQuote getDccQuote() { /** * dccQuote * - * @param dccQuote + * @param dccQuote */ @JsonProperty(JSON_PROPERTY_DCC_QUOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1130,9 +1205,13 @@ public void setDccQuote(ForexQuote dccQuote) { } /** - * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 * - * @param deliverAt The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * @param deliverAt The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest deliverAt(OffsetDateTime deliverAt) { @@ -1141,8 +1220,13 @@ public PaymentRequest deliverAt(OffsetDateTime deliverAt) { } /** - * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 - * @return deliverAt The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 + * + * @return deliverAt The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 */ @JsonProperty(JSON_PROPERTY_DELIVER_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1151,9 +1235,13 @@ public OffsetDateTime getDeliverAt() { } /** - * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 * - * @param deliverAt The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * @param deliverAt The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 */ @JsonProperty(JSON_PROPERTY_DELIVER_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1164,7 +1252,7 @@ public void setDeliverAt(OffsetDateTime deliverAt) { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest deliveryAddress(DeliveryAddress deliveryAddress) { @@ -1174,7 +1262,8 @@ public PaymentRequest deliveryAddress(DeliveryAddress deliveryAddress) { /** * Get deliveryAddress - * @return deliveryAddress + * + * @return deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1185,7 +1274,7 @@ public DeliveryAddress getDeliveryAddress() { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1194,13 +1283,15 @@ public void setDeliveryAddress(DeliveryAddress deliveryAddress) { } /** - * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 * - * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 * @return the current {@code PaymentRequest} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v70 - * Use `deliverAt` instead. + * @deprecated since Adyen Checkout API v70 Use `deliverAt` instead. */ @Deprecated // deprecated since Adyen Checkout API v70: Use `deliverAt` instead. public PaymentRequest deliveryDate(OffsetDateTime deliveryDate) { @@ -1209,8 +1300,13 @@ public PaymentRequest deliveryDate(OffsetDateTime deliveryDate) { } /** - * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 - * @return deliveryDate The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 + * + * @return deliveryDate The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 * @deprecated // deprecated since Adyen Checkout API v70: Use `deliverAt` instead. */ @Deprecated // deprecated since Adyen Checkout API v70: Use `deliverAt` instead. @@ -1221,12 +1317,14 @@ public OffsetDateTime getDeliveryDate() { } /** - * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 - * - * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 * - * @deprecated since Adyen Checkout API v70 - * Use `deliverAt` instead. + * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 + * @deprecated since Adyen Checkout API v70 Use `deliverAt` instead. */ @Deprecated // deprecated since Adyen Checkout API v70: Use `deliverAt` instead. @JsonProperty(JSON_PROPERTY_DELIVERY_DATE) @@ -1236,9 +1334,12 @@ public void setDeliveryDate(OffsetDateTime deliveryDate) { } /** - * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to + * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * - * @param deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @param deviceFingerprint A string containing the shopper's device fingerprint. For more + * information, refer to [Device + * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest deviceFingerprint(String deviceFingerprint) { @@ -1247,8 +1348,12 @@ public PaymentRequest deviceFingerprint(String deviceFingerprint) { } /** - * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). - * @return deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to + * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * + * @return deviceFingerprint A string containing the shopper's device fingerprint. For more + * information, refer to [Device + * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1257,9 +1362,12 @@ public String getDeviceFingerprint() { } /** - * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to + * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * - * @param deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @param deviceFingerprint A string containing the shopper's device fingerprint. For more + * information, refer to [Device + * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1268,9 +1376,13 @@ public void setDeviceFingerprint(String deviceFingerprint) { } /** - * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * When true and `shopperReference` is provided, the shopper will be asked if the + * payment details should be stored for future [one-click + * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). * - * @param enableOneClick When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * @param enableOneClick When true and `shopperReference` is provided, the shopper will + * be asked if the payment details should be stored for future [one-click + * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest enableOneClick(Boolean enableOneClick) { @@ -1279,8 +1391,13 @@ public PaymentRequest enableOneClick(Boolean enableOneClick) { } /** - * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). - * @return enableOneClick When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * When true and `shopperReference` is provided, the shopper will be asked if the + * payment details should be stored for future [one-click + * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * + * @return enableOneClick When true and `shopperReference` is provided, the shopper will + * be asked if the payment details should be stored for future [one-click + * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). */ @JsonProperty(JSON_PROPERTY_ENABLE_ONE_CLICK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1289,9 +1406,13 @@ public Boolean getEnableOneClick() { } /** - * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * When true and `shopperReference` is provided, the shopper will be asked if the + * payment details should be stored for future [one-click + * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). * - * @param enableOneClick When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). + * @param enableOneClick When true and `shopperReference` is provided, the shopper will + * be asked if the payment details should be stored for future [one-click + * payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). */ @JsonProperty(JSON_PROPERTY_ENABLE_ONE_CLICK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1300,9 +1421,11 @@ public void setEnableOneClick(Boolean enableOneClick) { } /** - * When true and `shopperReference` is provided, the payment details will be tokenized for payouts. + * When true and `shopperReference` is provided, the payment details will be tokenized + * for payouts. * - * @param enablePayOut When true and `shopperReference` is provided, the payment details will be tokenized for payouts. + * @param enablePayOut When true and `shopperReference` is provided, the payment details + * will be tokenized for payouts. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest enablePayOut(Boolean enablePayOut) { @@ -1311,8 +1434,11 @@ public PaymentRequest enablePayOut(Boolean enablePayOut) { } /** - * When true and `shopperReference` is provided, the payment details will be tokenized for payouts. - * @return enablePayOut When true and `shopperReference` is provided, the payment details will be tokenized for payouts. + * When true and `shopperReference` is provided, the payment details will be tokenized + * for payouts. + * + * @return enablePayOut When true and `shopperReference` is provided, the payment + * details will be tokenized for payouts. */ @JsonProperty(JSON_PROPERTY_ENABLE_PAY_OUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1321,9 +1447,11 @@ public Boolean getEnablePayOut() { } /** - * When true and `shopperReference` is provided, the payment details will be tokenized for payouts. + * When true and `shopperReference` is provided, the payment details will be tokenized + * for payouts. * - * @param enablePayOut When true and `shopperReference` is provided, the payment details will be tokenized for payouts. + * @param enablePayOut When true and `shopperReference` is provided, the payment details + * will be tokenized for payouts. */ @JsonProperty(JSON_PROPERTY_ENABLE_PAY_OUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1332,9 +1460,15 @@ public void setEnablePayOut(Boolean enablePayOut) { } /** - * When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. + * When true and `shopperReference` is provided, the payment details will be stored for + * [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where + * the shopper is not present, such as subscription or automatic top-up payments. * - * @param enableRecurring When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. + * @param enableRecurring When true and `shopperReference` is provided, the payment + * details will be stored for [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) + * where the shopper is not present, such as subscription or automatic top-up payments. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest enableRecurring(Boolean enableRecurring) { @@ -1343,8 +1477,15 @@ public PaymentRequest enableRecurring(Boolean enableRecurring) { } /** - * When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. - * @return enableRecurring When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. + * When true and `shopperReference` is provided, the payment details will be stored for + * [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where + * the shopper is not present, such as subscription or automatic top-up payments. + * + * @return enableRecurring When true and `shopperReference` is provided, the payment + * details will be stored for [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) + * where the shopper is not present, such as subscription or automatic top-up payments. */ @JsonProperty(JSON_PROPERTY_ENABLE_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1353,9 +1494,15 @@ public Boolean getEnableRecurring() { } /** - * When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. + * When true and `shopperReference` is provided, the payment details will be stored for + * [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where + * the shopper is not present, such as subscription or automatic top-up payments. * - * @param enableRecurring When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. + * @param enableRecurring When true and `shopperReference` is provided, the payment + * details will be stored for [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) + * where the shopper is not present, such as subscription or automatic top-up payments. */ @JsonProperty(JSON_PROPERTY_ENABLE_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1366,7 +1513,7 @@ public void setEnableRecurring(Boolean enableRecurring) { /** * enhancedSchemeData * - * @param enhancedSchemeData + * @param enhancedSchemeData * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest enhancedSchemeData(EnhancedSchemeData enhancedSchemeData) { @@ -1376,7 +1523,8 @@ public PaymentRequest enhancedSchemeData(EnhancedSchemeData enhancedSchemeData) /** * Get enhancedSchemeData - * @return enhancedSchemeData + * + * @return enhancedSchemeData */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1387,7 +1535,7 @@ public EnhancedSchemeData getEnhancedSchemeData() { /** * enhancedSchemeData * - * @param enhancedSchemeData + * @param enhancedSchemeData */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1408,6 +1556,7 @@ public PaymentRequest entityType(EntityTypeEnum entityType) { /** * The type of the entity the payment is processed for. + * * @return entityType The type of the entity the payment is processed for. */ @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) @@ -1428,9 +1577,11 @@ public void setEntityType(EntityTypeEnum entityType) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or + * negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be + * either positive or negative. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest fraudOffset(Integer fraudOffset) { @@ -1439,8 +1590,11 @@ public PaymentRequest fraudOffset(Integer fraudOffset) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. - * @return fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or + * negative. + * + * @return fraudOffset An integer value that is added to the normal fraud score. The value can be + * either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1449,9 +1603,11 @@ public Integer getFraudOffset() { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or + * negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be + * either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1462,7 +1618,7 @@ public void setFraudOffset(Integer fraudOffset) { /** * fundOrigin * - * @param fundOrigin + * @param fundOrigin * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest fundOrigin(FundOrigin fundOrigin) { @@ -1472,7 +1628,8 @@ public PaymentRequest fundOrigin(FundOrigin fundOrigin) { /** * Get fundOrigin - * @return fundOrigin + * + * @return fundOrigin */ @JsonProperty(JSON_PROPERTY_FUND_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1483,7 +1640,7 @@ public FundOrigin getFundOrigin() { /** * fundOrigin * - * @param fundOrigin + * @param fundOrigin */ @JsonProperty(JSON_PROPERTY_FUND_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1494,7 +1651,7 @@ public void setFundOrigin(FundOrigin fundOrigin) { /** * fundRecipient * - * @param fundRecipient + * @param fundRecipient * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest fundRecipient(FundRecipient fundRecipient) { @@ -1504,7 +1661,8 @@ public PaymentRequest fundRecipient(FundRecipient fundRecipient) { /** * Get fundRecipient - * @return fundRecipient + * + * @return fundRecipient */ @JsonProperty(JSON_PROPERTY_FUND_RECIPIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1515,7 +1673,7 @@ public FundRecipient getFundRecipient() { /** * fundRecipient * - * @param fundRecipient + * @param fundRecipient */ @JsonProperty(JSON_PROPERTY_FUND_RECIPIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1524,9 +1682,11 @@ public void setFundRecipient(FundRecipient fundRecipient) { } /** - * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** + * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * + * **installment** * - * @param industryUsage The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** + * @param industryUsage The reason for the amount update. Possible values: * **delayedCharge** * + * **noShow** * **installment** * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest industryUsage(IndustryUsageEnum industryUsage) { @@ -1535,8 +1695,11 @@ public PaymentRequest industryUsage(IndustryUsageEnum industryUsage) { } /** - * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** - * @return industryUsage The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** + * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * + * **installment** + * + * @return industryUsage The reason for the amount update. Possible values: * **delayedCharge** * + * **noShow** * **installment** */ @JsonProperty(JSON_PROPERTY_INDUSTRY_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1545,9 +1708,11 @@ public IndustryUsageEnum getIndustryUsage() { } /** - * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** + * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * + * **installment** * - * @param industryUsage The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** + * @param industryUsage The reason for the amount update. Possible values: * **delayedCharge** * + * **noShow** * **installment** */ @JsonProperty(JSON_PROPERTY_INDUSTRY_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1558,7 +1723,7 @@ public void setIndustryUsage(IndustryUsageEnum industryUsage) { /** * installments * - * @param installments + * @param installments * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest installments(Installments installments) { @@ -1568,7 +1733,8 @@ public PaymentRequest installments(Installments installments) { /** * Get installments - * @return installments + * + * @return installments */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1579,7 +1745,7 @@ public Installments getInstallments() { /** * installments * - * @param installments + * @param installments */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1588,9 +1754,13 @@ public void setInstallments(Installments installments) { } /** - * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to + * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, + * Ratepay, and Riverty. * - * @param lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * @param lineItems Price and product information about the purchased items, to be included on the + * invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, + * Clearpay, Klarna, Ratepay, and Riverty. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest lineItems(List lineItems) { @@ -1607,8 +1777,13 @@ public PaymentRequest addLineItemsItem(LineItem lineItemsItem) { } /** - * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. - * @return lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to + * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, + * Ratepay, and Riverty. + * + * @return lineItems Price and product information about the purchased items, to be included on + * the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, + * Afterpay, Clearpay, Klarna, Ratepay, and Riverty. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1617,9 +1792,13 @@ public List getLineItems() { } /** - * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * Price and product information about the purchased items, to be included on the invoice sent to + * the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, + * Ratepay, and Riverty. * - * @param lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. + * @param lineItems Price and product information about the purchased items, to be included on the + * invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, + * Clearpay, Klarna, Ratepay, and Riverty. */ @JsonProperty(JSON_PROPERTY_LINE_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1628,9 +1807,19 @@ public void setLineItems(List lineItems) { } /** - * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana character set for Visa and Mastercard payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, capital letters, numbers and special characters. * Half-width or full-width characters. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper + * statement in a local character set. If not supplied, left empty, or for cross-border + * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana character set + * for Visa and Mastercard payments in Japan using Japanese cards. This character set supports: * + * UTF-8 based Katakana, capital letters, numbers and special characters. * Half-width or + * full-width characters. * - * @param localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana character set for Visa and Mastercard payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, capital letters, numbers and special characters. * Half-width or full-width characters. + * @param localizedShopperStatement The `localizedShopperStatement` field lets you use + * dynamic values for your shopper statement in a local character set. If not supplied, left + * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently + * supports the ja-Kana character set for Visa and Mastercard payments in Japan using Japanese + * cards. This character set supports: * UTF-8 based Katakana, capital letters, numbers and + * special characters. * Half-width or full-width characters. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest localizedShopperStatement(Map localizedShopperStatement) { @@ -1638,7 +1827,8 @@ public PaymentRequest localizedShopperStatement(Map localizedSho return this; } - public PaymentRequest putLocalizedShopperStatementItem(String key, String localizedShopperStatementItem) { + public PaymentRequest putLocalizedShopperStatementItem( + String key, String localizedShopperStatementItem) { if (this.localizedShopperStatement == null) { this.localizedShopperStatement = new HashMap<>(); } @@ -1647,8 +1837,19 @@ public PaymentRequest putLocalizedShopperStatementItem(String key, String locali } /** - * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana character set for Visa and Mastercard payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, capital letters, numbers and special characters. * Half-width or full-width characters. - * @return localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana character set for Visa and Mastercard payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, capital letters, numbers and special characters. * Half-width or full-width characters. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper + * statement in a local character set. If not supplied, left empty, or for cross-border + * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana character set + * for Visa and Mastercard payments in Japan using Japanese cards. This character set supports: * + * UTF-8 based Katakana, capital letters, numbers and special characters. * Half-width or + * full-width characters. + * + * @return localizedShopperStatement The `localizedShopperStatement` field lets you use + * dynamic values for your shopper statement in a local character set. If not supplied, left + * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently + * supports the ja-Kana character set for Visa and Mastercard payments in Japan using Japanese + * cards. This character set supports: * UTF-8 based Katakana, capital letters, numbers and + * special characters. * Half-width or full-width characters. */ @JsonProperty(JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1657,9 +1858,19 @@ public Map getLocalizedShopperStatement() { } /** - * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana character set for Visa and Mastercard payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, capital letters, numbers and special characters. * Half-width or full-width characters. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper + * statement in a local character set. If not supplied, left empty, or for cross-border + * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana character set + * for Visa and Mastercard payments in Japan using Japanese cards. This character set supports: * + * UTF-8 based Katakana, capital letters, numbers and special characters. * Half-width or + * full-width characters. * - * @param localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana character set for Visa and Mastercard payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, capital letters, numbers and special characters. * Half-width or full-width characters. + * @param localizedShopperStatement The `localizedShopperStatement` field lets you use + * dynamic values for your shopper statement in a local character set. If not supplied, left + * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently + * supports the ja-Kana character set for Visa and Mastercard payments in Japan using Japanese + * cards. This character set supports: * UTF-8 based Katakana, capital letters, numbers and + * special characters. * Half-width or full-width characters. */ @JsonProperty(JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1670,7 +1881,7 @@ public void setLocalizedShopperStatement(Map localizedShopperSta /** * mandate * - * @param mandate + * @param mandate * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest mandate(Mandate mandate) { @@ -1680,7 +1891,8 @@ public PaymentRequest mandate(Mandate mandate) { /** * Get mandate - * @return mandate + * + * @return mandate */ @JsonProperty(JSON_PROPERTY_MANDATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1691,7 +1903,7 @@ public Mandate getMandate() { /** * mandate * - * @param mandate + * @param mandate */ @JsonProperty(JSON_PROPERTY_MANDATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1700,9 +1912,13 @@ public void setMandate(Mandate mandate) { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a + * four-digit number, which relates to a particular market segment. This code reflects the + * predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) + * (MCC) is a four-digit number, which relates to a particular market segment. This code + * reflects the predominant activity that is conducted by the merchant. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest mcc(String mcc) { @@ -1711,8 +1927,13 @@ public PaymentRequest mcc(String mcc) { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. - * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a + * four-digit number, which relates to a particular market segment. This code reflects the + * predominant activity that is conducted by the merchant. + * + * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) + * (MCC) is a four-digit number, which relates to a particular market segment. This code + * reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1721,9 +1942,13 @@ public String getMcc() { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a + * four-digit number, which relates to a particular market segment. This code reflects the + * predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) + * (MCC) is a four-digit number, which relates to a particular market segment. This code + * reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1734,7 +1959,8 @@ public void setMcc(String mcc) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest merchantAccount(String merchantAccount) { @@ -1744,7 +1970,9 @@ public PaymentRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * @return merchantAccount The merchant account identifier, with which you want to process the transaction. + * + * @return merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1755,7 +1983,8 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1764,9 +1993,23 @@ public void setMerchantAccount(String merchantAccount) { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. + * order auth-rate). The reference should be unique per billing cycle. The same merchant order + * reference should never be reused after the first authorised attempt. If used, this field should + * be supplied for all incoming authorisations. > We strongly recommend you send the + * `merchantOrderReference` value to benefit from linking payment requests when + * authorisation retries take place. In addition, we recommend you provide + * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. * - * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * @param merchantOrderReference This reference allows linking multiple transactions to each other + * for reporting purposes (i.e. order auth-rate). The reference should be unique per billing + * cycle. The same merchant order reference should never be reused after the first authorised + * attempt. If used, this field should be supplied for all incoming authorisations. > We + * strongly recommend you send the `merchantOrderReference` value to benefit from + * linking payment requests when authorisation retries take place. In addition, we recommend + * you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest merchantOrderReference(String merchantOrderReference) { @@ -1775,8 +2018,24 @@ public PaymentRequest merchantOrderReference(String merchantOrderReference) { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. - * @return merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. + * order auth-rate). The reference should be unique per billing cycle. The same merchant order + * reference should never be reused after the first authorised attempt. If used, this field should + * be supplied for all incoming authorisations. > We strongly recommend you send the + * `merchantOrderReference` value to benefit from linking payment requests when + * authorisation retries take place. In addition, we recommend you provide + * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * + * @return merchantOrderReference This reference allows linking multiple transactions to each + * other for reporting purposes (i.e. order auth-rate). The reference should be unique per + * billing cycle. The same merchant order reference should never be reused after the first + * authorised attempt. If used, this field should be supplied for all incoming authorisations. + * > We strongly recommend you send the `merchantOrderReference` value to benefit + * from linking payment requests when authorisation retries take place. In addition, we + * recommend you provide `retry.orderAttemptNumber`, + * `retry.chainAttemptNumber`, and `retry.skipRetry` values in + * `PaymentRequest.additionalData`. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1785,9 +2044,23 @@ public String getMerchantOrderReference() { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. + * order auth-rate). The reference should be unique per billing cycle. The same merchant order + * reference should never be reused after the first authorised attempt. If used, this field should + * be supplied for all incoming authorisations. > We strongly recommend you send the + * `merchantOrderReference` value to benefit from linking payment requests when + * authorisation retries take place. In addition, we recommend you provide + * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. * - * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * @param merchantOrderReference This reference allows linking multiple transactions to each other + * for reporting purposes (i.e. order auth-rate). The reference should be unique per billing + * cycle. The same merchant order reference should never be reused after the first authorised + * attempt. If used, this field should be supplied for all incoming authorisations. > We + * strongly recommend you send the `merchantOrderReference` value to benefit from + * linking payment requests when authorisation retries take place. In addition, we recommend + * you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1798,7 +2071,7 @@ public void setMerchantOrderReference(String merchantOrderReference) { /** * merchantRiskIndicator * - * @param merchantRiskIndicator + * @param merchantRiskIndicator * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest merchantRiskIndicator(MerchantRiskIndicator merchantRiskIndicator) { @@ -1808,7 +2081,8 @@ public PaymentRequest merchantRiskIndicator(MerchantRiskIndicator merchantRiskIn /** * Get merchantRiskIndicator - * @return merchantRiskIndicator + * + * @return merchantRiskIndicator */ @JsonProperty(JSON_PROPERTY_MERCHANT_RISK_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1819,7 +2093,7 @@ public MerchantRiskIndicator getMerchantRiskIndicator() { /** * merchantRiskIndicator * - * @param merchantRiskIndicator + * @param merchantRiskIndicator */ @JsonProperty(JSON_PROPERTY_MERCHANT_RISK_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1828,9 +2102,15 @@ public void setMerchantRiskIndicator(MerchantRiskIndicator merchantRiskIndicator } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 + * key-value pairs per request. When exceeding, the \"177\" error occurs: + * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 + * characters per value. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: + * * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error + * occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * + * Maximum 80 characters per value. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest metadata(Map metadata) { @@ -1847,8 +2127,15 @@ public PaymentRequest putMetadataItem(String key, String metadataItem) { } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. - * @return metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 + * key-value pairs per request. When exceeding, the \"177\" error occurs: + * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 + * characters per value. + * + * @return metadata Metadata consists of entries, each of which includes a key and a value. + * Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" + * error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * + * Maximum 80 characters per value. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1857,9 +2144,15 @@ public Map getMetadata() { } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 + * key-value pairs per request. When exceeding, the \"177\" error occurs: + * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 + * characters per value. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: + * * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error + * occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * + * Maximum 80 characters per value. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1870,7 +2163,7 @@ public void setMetadata(Map metadata) { /** * mpiData * - * @param mpiData + * @param mpiData * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest mpiData(ThreeDSecureData mpiData) { @@ -1880,7 +2173,8 @@ public PaymentRequest mpiData(ThreeDSecureData mpiData) { /** * Get mpiData - * @return mpiData + * + * @return mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1891,7 +2185,7 @@ public ThreeDSecureData getMpiData() { /** * mpiData * - * @param mpiData + * @param mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1902,7 +2196,7 @@ public void setMpiData(ThreeDSecureData mpiData) { /** * order * - * @param order + * @param order * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest order(EncryptedOrderData order) { @@ -1912,7 +2206,8 @@ public PaymentRequest order(EncryptedOrderData order) { /** * Get order - * @return order + * + * @return order */ @JsonProperty(JSON_PROPERTY_ORDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1923,7 +2218,7 @@ public EncryptedOrderData getOrder() { /** * order * - * @param order + * @param order */ @JsonProperty(JSON_PROPERTY_ORDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1932,9 +2227,14 @@ public void setOrder(EncryptedOrderData order) { } /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + * When you are doing multiple partial (gift card) payments, this is the `pspReference` + * of the first payment. We use this to link the multiple payments to each other. As your own + * reference for linking multiple payments, use the `merchantOrderReference`instead. * - * @param orderReference When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + * @param orderReference When you are doing multiple partial (gift card) payments, this is the + * `pspReference` of the first payment. We use this to link the multiple payments to + * each other. As your own reference for linking multiple payments, use the + * `merchantOrderReference`instead. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest orderReference(String orderReference) { @@ -1943,8 +2243,14 @@ public PaymentRequest orderReference(String orderReference) { } /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. - * @return orderReference When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + * When you are doing multiple partial (gift card) payments, this is the `pspReference` + * of the first payment. We use this to link the multiple payments to each other. As your own + * reference for linking multiple payments, use the `merchantOrderReference`instead. + * + * @return orderReference When you are doing multiple partial (gift card) payments, this is the + * `pspReference` of the first payment. We use this to link the multiple payments to + * each other. As your own reference for linking multiple payments, use the + * `merchantOrderReference`instead. */ @JsonProperty(JSON_PROPERTY_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1953,9 +2259,14 @@ public String getOrderReference() { } /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + * When you are doing multiple partial (gift card) payments, this is the `pspReference` + * of the first payment. We use this to link the multiple payments to each other. As your own + * reference for linking multiple payments, use the `merchantOrderReference`instead. * - * @param orderReference When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + * @param orderReference When you are doing multiple partial (gift card) payments, this is the + * `pspReference` of the first payment. We use this to link the multiple payments to + * each other. As your own reference for linking multiple payments, use the + * `merchantOrderReference`instead. */ @JsonProperty(JSON_PROPERTY_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1964,9 +2275,13 @@ public void setOrderReference(String orderReference) { } /** - * > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this to the origin URL of the page where you are rendering the Drop-in/Component. Do not include subdirectories and a trailing slash. + * > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this + * to the origin URL of the page where you are rendering the Drop-in/Component. Do not include + * subdirectories and a trailing slash. * - * @param origin > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this to the origin URL of the page where you are rendering the Drop-in/Component. Do not include subdirectories and a trailing slash. + * @param origin > Required for browser-based (`channel` **Web**) 3D Secure 2 + * transactions.Set this to the origin URL of the page where you are rendering the + * Drop-in/Component. Do not include subdirectories and a trailing slash. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest origin(String origin) { @@ -1975,8 +2290,13 @@ public PaymentRequest origin(String origin) { } /** - * > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this to the origin URL of the page where you are rendering the Drop-in/Component. Do not include subdirectories and a trailing slash. - * @return origin > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this to the origin URL of the page where you are rendering the Drop-in/Component. Do not include subdirectories and a trailing slash. + * > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this + * to the origin URL of the page where you are rendering the Drop-in/Component. Do not include + * subdirectories and a trailing slash. + * + * @return origin > Required for browser-based (`channel` **Web**) 3D Secure 2 + * transactions.Set this to the origin URL of the page where you are rendering the + * Drop-in/Component. Do not include subdirectories and a trailing slash. */ @JsonProperty(JSON_PROPERTY_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1985,9 +2305,13 @@ public String getOrigin() { } /** - * > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this to the origin URL of the page where you are rendering the Drop-in/Component. Do not include subdirectories and a trailing slash. + * > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this + * to the origin URL of the page where you are rendering the Drop-in/Component. Do not include + * subdirectories and a trailing slash. * - * @param origin > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this to the origin URL of the page where you are rendering the Drop-in/Component. Do not include subdirectories and a trailing slash. + * @param origin > Required for browser-based (`channel` **Web**) 3D Secure 2 + * transactions.Set this to the origin URL of the page where you are rendering the + * Drop-in/Component. Do not include subdirectories and a trailing slash. */ @JsonProperty(JSON_PROPERTY_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1998,7 +2322,7 @@ public void setOrigin(String origin) { /** * paymentMethod * - * @param paymentMethod + * @param paymentMethod * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest paymentMethod(CheckoutPaymentMethod paymentMethod) { @@ -2008,7 +2332,8 @@ public PaymentRequest paymentMethod(CheckoutPaymentMethod paymentMethod) { /** * Get paymentMethod - * @return paymentMethod + * + * @return paymentMethod */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2019,7 +2344,7 @@ public CheckoutPaymentMethod getPaymentMethod() { /** * paymentMethod * - * @param paymentMethod + * @param paymentMethod */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2030,7 +2355,7 @@ public void setPaymentMethod(CheckoutPaymentMethod paymentMethod) { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) { @@ -2040,7 +2365,8 @@ public PaymentRequest platformChargebackLogic(PlatformChargebackLogic platformCh /** * Get platformChargebackLogic - * @return platformChargebackLogic + * + * @return platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2051,7 +2377,7 @@ public PlatformChargebackLogic getPlatformChargebackLogic() { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2062,7 +2388,8 @@ public void setPlatformChargebackLogic(PlatformChargebackLogic platformChargebac /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. * - * @param recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. + * @param recurringExpiry Date after which no further authorisations shall be performed. Only for + * 3D Secure 2. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest recurringExpiry(String recurringExpiry) { @@ -2072,7 +2399,9 @@ public PaymentRequest recurringExpiry(String recurringExpiry) { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. - * @return recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. + * + * @return recurringExpiry Date after which no further authorisations shall be performed. Only for + * 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2083,7 +2412,8 @@ public String getRecurringExpiry() { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. * - * @param recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. + * @param recurringExpiry Date after which no further authorisations shall be performed. Only for + * 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2104,6 +2434,7 @@ public PaymentRequest recurringFrequency(String recurringFrequency) { /** * Minimum number of days between authorisations. Only for 3D Secure 2. + * * @return recurringFrequency Minimum number of days between authorisations. Only for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY) @@ -2124,19 +2455,55 @@ public void setRecurringFrequency(String recurringFrequency) { } /** - * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or + * using stored payment details. Allowed values: * `Subscription` – A transaction for a + * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a + * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – + * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a + * token to store payment details or using stored payment details. Allowed values: * + * `Subscription` – A transaction for a fixed or variable amount, which follows a + * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card + * details are stored to enable one-click or omnichannel journeys, or simply to streamline the + * checkout process. Any subscription not following a fixed schedule is also considered a + * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file + * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have + * variable amounts. For example, automatic top-ups when a cardholder's balance drops + * below a certain amount. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ - public PaymentRequest recurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) { + public PaymentRequest recurringProcessingModel( + RecurringProcessingModelEnum recurringProcessingModel) { this.recurringProcessingModel = recurringProcessingModel; return this; } /** - * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. - * @return recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or + * using stored payment details. Allowed values: * `Subscription` – A transaction for a + * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a + * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – + * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. + * + * @return recurringProcessingModel Defines a recurring payment type. Required when creating a + * token to store payment details or using stored payment details. Allowed values: * + * `Subscription` – A transaction for a fixed or variable amount, which follows a + * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card + * details are stored to enable one-click or omnichannel journeys, or simply to streamline the + * checkout process. Any subscription not following a fixed schedule is also considered a + * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file + * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have + * variable amounts. For example, automatic top-ups when a cardholder's balance drops + * below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2145,9 +2512,26 @@ public RecurringProcessingModelEnum getRecurringProcessingModel() { } /** - * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. - * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or + * using stored payment details. Allowed values: * `Subscription` – A transaction for a + * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a + * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – + * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. + * + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a + * token to store payment details or using stored payment details. Allowed values: * + * `Subscription` – A transaction for a fixed or variable amount, which follows a + * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card + * details are stored to enable one-click or omnichannel journeys, or simply to streamline the + * checkout process. Any subscription not following a fixed schedule is also considered a + * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file + * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have + * variable amounts. For example, automatic top-ups when a cardholder's balance drops + * below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2158,7 +2542,8 @@ public void setRecurringProcessingModel(RecurringProcessingModelEnum recurringPr /** * Specifies the redirect method (GET or POST) when redirecting back from the issuer. * - * @param redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting back from the issuer. + * @param redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting + * back from the issuer. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest redirectFromIssuerMethod(String redirectFromIssuerMethod) { @@ -2168,7 +2553,9 @@ public PaymentRequest redirectFromIssuerMethod(String redirectFromIssuerMethod) /** * Specifies the redirect method (GET or POST) when redirecting back from the issuer. - * @return redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting back from the issuer. + * + * @return redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting + * back from the issuer. */ @JsonProperty(JSON_PROPERTY_REDIRECT_FROM_ISSUER_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2179,7 +2566,8 @@ public String getRedirectFromIssuerMethod() { /** * Specifies the redirect method (GET or POST) when redirecting back from the issuer. * - * @param redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting back from the issuer. + * @param redirectFromIssuerMethod Specifies the redirect method (GET or POST) when redirecting + * back from the issuer. */ @JsonProperty(JSON_PROPERTY_REDIRECT_FROM_ISSUER_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2190,7 +2578,8 @@ public void setRedirectFromIssuerMethod(String redirectFromIssuerMethod) { /** * Specifies the redirect method (GET or POST) when redirecting to the issuer. * - * @param redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to the issuer. + * @param redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to + * the issuer. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest redirectToIssuerMethod(String redirectToIssuerMethod) { @@ -2200,7 +2589,9 @@ public PaymentRequest redirectToIssuerMethod(String redirectToIssuerMethod) { /** * Specifies the redirect method (GET or POST) when redirecting to the issuer. - * @return redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to the issuer. + * + * @return redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to + * the issuer. */ @JsonProperty(JSON_PROPERTY_REDIRECT_TO_ISSUER_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2211,7 +2602,8 @@ public String getRedirectToIssuerMethod() { /** * Specifies the redirect method (GET or POST) when redirecting to the issuer. * - * @param redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to the issuer. + * @param redirectToIssuerMethod Specifies the redirect method (GET or POST) when redirecting to + * the issuer. */ @JsonProperty(JSON_PROPERTY_REDIRECT_TO_ISSUER_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2220,9 +2612,15 @@ public void setRedirectToIssuerMethod(String redirectToIssuerMethod) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest reference(String reference) { @@ -2231,8 +2629,15 @@ public PaymentRequest reference(String reference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. - * @return reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. + * + * @return reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2241,9 +2646,15 @@ public String getReference() { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2252,9 +2663,36 @@ public void setReference(String reference) { } /** - * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. - * - * @param returnUrl The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. * For web, + * include the protocol `http://` or `https://`. You can also include your own + * additional query parameters, for example, shopper ID or order reference number. Example: + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the + * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple + * Developer + * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). + * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your + * app. You can configure it with an [intent + * filter](https://developer.android.com/guide/components/intents-filters). Example: + * `my-app://your.package.name` If the URL to return to includes non-ASCII characters, + * like spaces or special letters, URL encode the value. We strongly recommend that you use a + * maximum of 1024 characters. > The URL must not include personally identifiable information + * (PII), for example name or email address. + * + * @param returnUrl The URL to return to in case of a redirection. The format depends on the + * channel. * For web, include the protocol `http://` or `https://`. You + * can also include your own additional query parameters, for example, shopper ID or order + * reference number. Example: + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use + * the custom URL for your app. To know more about setting custom URL schemes, refer to the + * [Apple Developer + * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). + * Example: `my-app://` * For Android, use a custom URL handled by an Activity on + * your app. You can configure it with an [intent + * filter](https://developer.android.com/guide/components/intents-filters). Example: + * `my-app://your.package.name` If the URL to return to includes non-ASCII + * characters, like spaces or special letters, URL encode the value. We strongly recommend + * that you use a maximum of 1024 characters. > The URL must not include personally + * identifiable information (PII), for example name or email address. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest returnUrl(String returnUrl) { @@ -2263,8 +2701,36 @@ public PaymentRequest returnUrl(String returnUrl) { } /** - * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. - * @return returnUrl The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. * For web, + * include the protocol `http://` or `https://`. You can also include your own + * additional query parameters, for example, shopper ID or order reference number. Example: + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the + * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple + * Developer + * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). + * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your + * app. You can configure it with an [intent + * filter](https://developer.android.com/guide/components/intents-filters). Example: + * `my-app://your.package.name` If the URL to return to includes non-ASCII characters, + * like spaces or special letters, URL encode the value. We strongly recommend that you use a + * maximum of 1024 characters. > The URL must not include personally identifiable information + * (PII), for example name or email address. + * + * @return returnUrl The URL to return to in case of a redirection. The format depends on the + * channel. * For web, include the protocol `http://` or `https://`. You + * can also include your own additional query parameters, for example, shopper ID or order + * reference number. Example: + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use + * the custom URL for your app. To know more about setting custom URL schemes, refer to the + * [Apple Developer + * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). + * Example: `my-app://` * For Android, use a custom URL handled by an Activity on + * your app. You can configure it with an [intent + * filter](https://developer.android.com/guide/components/intents-filters). Example: + * `my-app://your.package.name` If the URL to return to includes non-ASCII + * characters, like spaces or special letters, URL encode the value. We strongly recommend + * that you use a maximum of 1024 characters. > The URL must not include personally + * identifiable information (PII), for example name or email address. */ @JsonProperty(JSON_PROPERTY_RETURN_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2273,9 +2739,36 @@ public String getReturnUrl() { } /** - * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. - * - * @param returnUrl The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. * For web, + * include the protocol `http://` or `https://`. You can also include your own + * additional query parameters, for example, shopper ID or order reference number. Example: + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the + * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple + * Developer + * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). + * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your + * app. You can configure it with an [intent + * filter](https://developer.android.com/guide/components/intents-filters). Example: + * `my-app://your.package.name` If the URL to return to includes non-ASCII characters, + * like spaces or special letters, URL encode the value. We strongly recommend that you use a + * maximum of 1024 characters. > The URL must not include personally identifiable information + * (PII), for example name or email address. + * + * @param returnUrl The URL to return to in case of a redirection. The format depends on the + * channel. * For web, include the protocol `http://` or `https://`. You + * can also include your own additional query parameters, for example, shopper ID or order + * reference number. Example: + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use + * the custom URL for your app. To know more about setting custom URL schemes, refer to the + * [Apple Developer + * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). + * Example: `my-app://` * For Android, use a custom URL handled by an Activity on + * your app. You can configure it with an [intent + * filter](https://developer.android.com/guide/components/intents-filters). Example: + * `my-app://your.package.name` If the URL to return to includes non-ASCII + * characters, like spaces or special letters, URL encode the value. We strongly recommend + * that you use a maximum of 1024 characters. > The URL must not include personally + * identifiable information (PII), for example name or email address. */ @JsonProperty(JSON_PROPERTY_RETURN_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2286,7 +2779,7 @@ public void setReturnUrl(String returnUrl) { /** * riskData * - * @param riskData + * @param riskData * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest riskData(RiskData riskData) { @@ -2296,7 +2789,8 @@ public PaymentRequest riskData(RiskData riskData) { /** * Get riskData - * @return riskData + * + * @return riskData */ @JsonProperty(JSON_PROPERTY_RISK_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2307,7 +2801,7 @@ public RiskData getRiskData() { /** * riskData * - * @param riskData + * @param riskData */ @JsonProperty(JSON_PROPERTY_RISK_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2316,9 +2810,12 @@ public void setRiskData(RiskData riskData) { } /** - * The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 + * The date and time until when the session remains valid, in [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 * - * @param sessionValidity The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 + * @param sessionValidity The date and time until when the session remains valid, in [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: + * 2020-07-18T15:42:40.428+01:00 * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest sessionValidity(String sessionValidity) { @@ -2327,8 +2824,12 @@ public PaymentRequest sessionValidity(String sessionValidity) { } /** - * The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 - * @return sessionValidity The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 + * The date and time until when the session remains valid, in [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 + * + * @return sessionValidity The date and time until when the session remains valid, in [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: + * 2020-07-18T15:42:40.428+01:00 */ @JsonProperty(JSON_PROPERTY_SESSION_VALIDITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2337,9 +2838,12 @@ public String getSessionValidity() { } /** - * The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 + * The date and time until when the session remains valid, in [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 * - * @param sessionValidity The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 + * @param sessionValidity The date and time until when the session remains valid, in [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: + * 2020-07-18T15:42:40.428+01:00 */ @JsonProperty(JSON_PROPERTY_SESSION_VALIDITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2348,9 +2852,12 @@ public void setSessionValidity(String sessionValidity) { } /** - * A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates. + * A unique ID that can be used to associate `/paymentMethods` and `/payments` + * requests with the same shopper transaction, offering insights into conversion rates. * - * @param shopperConversionId A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates. + * @param shopperConversionId A unique ID that can be used to associate + * `/paymentMethods` and `/payments` requests with the same shopper + * transaction, offering insights into conversion rates. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest shopperConversionId(String shopperConversionId) { @@ -2359,8 +2866,12 @@ public PaymentRequest shopperConversionId(String shopperConversionId) { } /** - * A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates. - * @return shopperConversionId A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates. + * A unique ID that can be used to associate `/paymentMethods` and `/payments` + * requests with the same shopper transaction, offering insights into conversion rates. + * + * @return shopperConversionId A unique ID that can be used to associate + * `/paymentMethods` and `/payments` requests with the same shopper + * transaction, offering insights into conversion rates. */ @JsonProperty(JSON_PROPERTY_SHOPPER_CONVERSION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2369,9 +2880,12 @@ public String getShopperConversionId() { } /** - * A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates. + * A unique ID that can be used to associate `/paymentMethods` and `/payments` + * requests with the same shopper transaction, offering insights into conversion rates. * - * @param shopperConversionId A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates. + * @param shopperConversionId A unique ID that can be used to associate + * `/paymentMethods` and `/payments` requests with the same shopper + * transaction, offering insights into conversion rates. */ @JsonProperty(JSON_PROPERTY_SHOPPER_CONVERSION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2380,9 +2894,13 @@ public void setShopperConversionId(String shopperConversionId) { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in + * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 + * authentication if you did not include the `telephoneNumber`. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, + * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that + * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest shopperEmail(String shopperEmail) { @@ -2391,8 +2909,13 @@ public PaymentRequest shopperEmail(String shopperEmail) { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. - * @return shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in + * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 + * authentication if you did not include the `telephoneNumber`. + * + * @return shopperEmail The shopper's email address. We recommend that you provide this data, + * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that + * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2401,9 +2924,13 @@ public String getShopperEmail() { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in + * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 + * authentication if you did not include the `telephoneNumber`. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, + * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that + * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2412,9 +2939,22 @@ public void setShopperEmail(String shopperEmail) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a + * number of risk checks (for instance, number of payment attempts or location-based checks). > + * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and + * mobile integrations, if you did not include the `shopperEmail`. For native mobile + * integrations, the field is required to support cases where authentication is routed to the + * redirect flow. This field is also mandatory for some merchants depending on your business + * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it + * is used in a number of risk checks (for instance, number of payment attempts or + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the + * `shopperEmail`. For native mobile integrations, the field is required to support + * cases where authentication is routed to the redirect flow. This field is also mandatory for + * some merchants depending on your business model. For more information, [contact + * Support](https://www.adyen.help/hc/en-us/requests/new). * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest shopperIP(String shopperIP) { @@ -2423,8 +2963,22 @@ public PaymentRequest shopperIP(String shopperIP) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). - * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a + * number of risk checks (for instance, number of payment attempts or location-based checks). > + * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and + * mobile integrations, if you did not include the `shopperEmail`. For native mobile + * integrations, the field is required to support cases where authentication is routed to the + * redirect flow. This field is also mandatory for some merchants depending on your business + * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * + * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it + * is used in a number of risk checks (for instance, number of payment attempts or + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the + * `shopperEmail`. For native mobile integrations, the field is required to support + * cases where authentication is routed to the redirect flow. This field is also mandatory for + * some merchants depending on your business model. For more information, [contact + * Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2433,9 +2987,22 @@ public String getShopperIP() { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a + * number of risk checks (for instance, number of payment attempts or location-based checks). > + * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and + * mobile integrations, if you did not include the `shopperEmail`. For native mobile + * integrations, the field is required to support cases where authentication is routed to the + * redirect flow. This field is also mandatory for some merchants depending on your business + * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it + * is used in a number of risk checks (for instance, number of payment attempts or + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the + * `shopperEmail`. For native mobile integrations, the field is required to support + * cases where authentication is routed to the redirect flow. This field is also mandatory for + * some merchants depending on your business model. For more information, [contact + * Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2444,9 +3011,30 @@ public void setShopperIP(String shopperIP) { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. + * + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest shopperInteraction(ShopperInteractionEnum shopperInteraction) { @@ -2455,8 +3043,30 @@ public PaymentRequest shopperInteraction(ShopperInteractionEnum shopperInteracti } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * @return shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. + * + * @return shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2465,9 +3075,30 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. + * + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2476,9 +3107,11 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { } /** - * The combination of a language code and a country code to specify the language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the + * payment. * - * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the + * language to be used in the payment. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest shopperLocale(String shopperLocale) { @@ -2487,8 +3120,11 @@ public PaymentRequest shopperLocale(String shopperLocale) { } /** - * The combination of a language code and a country code to specify the language to be used in the payment. - * @return shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the + * payment. + * + * @return shopperLocale The combination of a language code and a country code to specify the + * language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2497,9 +3133,11 @@ public String getShopperLocale() { } /** - * The combination of a language code and a country code to specify the language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the + * payment. * - * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the + * language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2510,7 +3148,7 @@ public void setShopperLocale(String shopperLocale) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest shopperName(Name shopperName) { @@ -2520,7 +3158,8 @@ public PaymentRequest shopperName(Name shopperName) { /** * Get shopperName - * @return shopperName + * + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2531,7 +3170,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2540,9 +3179,14 @@ public void setShopperName(Name shopperName) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example + * user ID or account ID. Minimum length: 3 characters. > Your reference must not include + * personally identifiable information (PII), for example name or email address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify + * this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your + * reference must not include personally identifiable information (PII), for example name or + * email address. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest shopperReference(String shopperReference) { @@ -2551,8 +3195,14 @@ public PaymentRequest shopperReference(String shopperReference) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. - * @return shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example + * user ID or account ID. Minimum length: 3 characters. > Your reference must not include + * personally identifiable information (PII), for example name or email address. + * + * @return shopperReference Required for recurring payments. Your reference to uniquely identify + * this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your + * reference must not include personally identifiable information (PII), for example name or + * email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2561,9 +3211,14 @@ public String getShopperReference() { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example + * user ID or account ID. Minimum length: 3 characters. > Your reference must not include + * personally identifiable information (PII), for example name or email address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify + * this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your + * reference must not include personally identifiable information (PII), for example name or + * email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2572,9 +3227,14 @@ public void setShopperReference(String shopperReference) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 + * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, + * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend + * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed + * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * + * /_**. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest shopperStatement(String shopperStatement) { @@ -2583,8 +3243,14 @@ public PaymentRequest shopperStatement(String shopperStatement) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. - * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 + * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, + * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * + * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend + * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed + * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2593,9 +3259,14 @@ public String getShopperStatement() { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 + * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, + * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend + * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed + * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2616,6 +3287,7 @@ public PaymentRequest socialSecurityNumber(String socialSecurityNumber) { /** * The shopper's social security number. + * * @return socialSecurityNumber The shopper's social security number. */ @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER) @@ -2636,9 +3308,17 @@ public void setSocialSecurityNumber(String socialSecurityNumber) { } /** - * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how to split a payment when using [Adyen for + * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), + * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), + * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). * - * @param splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * @param splits An array of objects specifying how to split a payment when using [Adyen for + * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), + * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), + * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest splits(List splits) { @@ -2655,8 +3335,17 @@ public PaymentRequest addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). - * @return splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how to split a payment when using [Adyen for + * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), + * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), + * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * + * @return splits An array of objects specifying how to split a payment when using [Adyen for + * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), + * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), + * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2665,9 +3354,17 @@ public List getSplits() { } /** - * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how to split a payment when using [Adyen for + * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), + * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), + * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). * - * @param splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * @param splits An array of objects specifying how to split a payment when using [Adyen for + * Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), + * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), + * or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2676,9 +3373,22 @@ public void setSplits(List splits) { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. * - * @param store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is + * your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest store(String store) { @@ -2687,8 +3397,22 @@ public PaymentRequest store(String store) { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. - * @return store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. + * + * @return store Required for Adyen for Platforms integrations if you are a platform model. This + * is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2697,9 +3421,22 @@ public String getStore() { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. * - * @param store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is + * your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2708,9 +3445,13 @@ public void setStore(String store) { } /** - * When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * When true and `shopperReference` is provided, the payment details will be stored for + * future [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). * - * @param storePaymentMethod When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * @param storePaymentMethod When true and `shopperReference` is provided, the payment + * details will be stored for future [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest storePaymentMethod(Boolean storePaymentMethod) { @@ -2719,8 +3460,13 @@ public PaymentRequest storePaymentMethod(Boolean storePaymentMethod) { } /** - * When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). - * @return storePaymentMethod When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * When true and `shopperReference` is provided, the payment details will be stored for + * future [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * + * @return storePaymentMethod When true and `shopperReference` is provided, the payment + * details will be stored for future [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). */ @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2729,9 +3475,13 @@ public Boolean getStorePaymentMethod() { } /** - * When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * When true and `shopperReference` is provided, the payment details will be stored for + * future [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). * - * @param storePaymentMethod When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). + * @param storePaymentMethod When true and `shopperReference` is provided, the payment + * details will be stored for future [recurring + * payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). */ @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2740,9 +3490,11 @@ public void setStorePaymentMethod(Boolean storePaymentMethod) { } /** - * This field contains additional information on the submerchant, who is onboarded to an acquirer through a payment facilitator or aggregator + * This field contains additional information on the submerchant, who is onboarded to an acquirer + * through a payment facilitator or aggregator * - * @param subMerchants This field contains additional information on the submerchant, who is onboarded to an acquirer through a payment facilitator or aggregator + * @param subMerchants This field contains additional information on the submerchant, who is + * onboarded to an acquirer through a payment facilitator or aggregator * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest subMerchants(List subMerchants) { @@ -2759,8 +3511,11 @@ public PaymentRequest addSubMerchantsItem(SubMerchantInfo subMerchantsItem) { } /** - * This field contains additional information on the submerchant, who is onboarded to an acquirer through a payment facilitator or aggregator - * @return subMerchants This field contains additional information on the submerchant, who is onboarded to an acquirer through a payment facilitator or aggregator + * This field contains additional information on the submerchant, who is onboarded to an acquirer + * through a payment facilitator or aggregator + * + * @return subMerchants This field contains additional information on the submerchant, who is + * onboarded to an acquirer through a payment facilitator or aggregator */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2769,9 +3524,11 @@ public List getSubMerchants() { } /** - * This field contains additional information on the submerchant, who is onboarded to an acquirer through a payment facilitator or aggregator + * This field contains additional information on the submerchant, who is onboarded to an acquirer + * through a payment facilitator or aggregator * - * @param subMerchants This field contains additional information on the submerchant, who is onboarded to an acquirer through a payment facilitator or aggregator + * @param subMerchants This field contains additional information on the submerchant, who is + * onboarded to an acquirer through a payment facilitator or aggregator */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2782,7 +3539,7 @@ public void setSubMerchants(List subMerchants) { /** * surcharge * - * @param surcharge + * @param surcharge * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest surcharge(Surcharge surcharge) { @@ -2792,7 +3549,8 @@ public PaymentRequest surcharge(Surcharge surcharge) { /** * Get surcharge - * @return surcharge + * + * @return surcharge */ @JsonProperty(JSON_PROPERTY_SURCHARGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2803,7 +3561,7 @@ public Surcharge getSurcharge() { /** * surcharge * - * @param surcharge + * @param surcharge */ @JsonProperty(JSON_PROPERTY_SURCHARGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2812,9 +3570,17 @@ public void setSurcharge(Surcharge surcharge) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest telephoneNumber(String telephoneNumber) { @@ -2823,8 +3589,17 @@ public PaymentRequest telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. - * @return telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. + * + * @return telephoneNumber The shopper's telephone number. The phone number must include a + * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2833,9 +3608,17 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2846,7 +3629,7 @@ public void setTelephoneNumber(String telephoneNumber) { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest threeDS2RequestData(ThreeDS2RequestFields threeDS2RequestData) { @@ -2856,7 +3639,8 @@ public PaymentRequest threeDS2RequestData(ThreeDS2RequestFields threeDS2RequestD /** * Get threeDS2RequestData - * @return threeDS2RequestData + * + * @return threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2867,7 +3651,7 @@ public ThreeDS2RequestFields getThreeDS2RequestData() { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2876,26 +3660,41 @@ public void setThreeDS2RequestData(ThreeDS2RequestFields threeDS2RequestData) { } /** - * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorisation.Default: **false**. + * Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorisation.Default: **false**. * - * @param threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorisation.Default: **false**. + * @param threeDSAuthenticationOnly Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorisation.Default: **false**. * @return the current {@code PaymentRequest} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v69 - * Use `authenticationData.authenticationOnly` instead. + * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` + * instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use + // `authenticationData.authenticationOnly` instead. public PaymentRequest threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { this.threeDSAuthenticationOnly = threeDSAuthenticationOnly; return this; } /** - * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorisation.Default: **false**. - * @return threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorisation.Default: **false**. - * @deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. + * Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorisation.Default: **false**. + * + * @return threeDSAuthenticationOnly Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorisation.Default: **false**. + * @deprecated // deprecated since Adyen Checkout API v69: Use + * `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use + // `authenticationData.authenticationOnly` instead. @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getThreeDSAuthenticationOnly() { @@ -2903,14 +3702,20 @@ public Boolean getThreeDSAuthenticationOnly() { } /** - * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorisation.Default: **false**. - * - * @param threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorisation.Default: **false**. + * Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorisation.Default: **false**. * - * @deprecated since Adyen Checkout API v69 - * Use `authenticationData.authenticationOnly` instead. + * @param threeDSAuthenticationOnly Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorisation.Default: **false**. + * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` + * instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. + @Deprecated // deprecated since Adyen Checkout API v69: Use + // `authenticationData.authenticationOnly` instead. @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { @@ -2930,6 +3735,7 @@ public PaymentRequest trustedShopper(Boolean trustedShopper) { /** * Set to true if the payment should be routed to a trusted MID. + * * @return trustedShopper Set to true if the payment should be routed to a trusted MID. */ @JsonProperty(JSON_PROPERTY_TRUSTED_SHOPPER) @@ -2949,9 +3755,7 @@ public void setTrustedShopper(Boolean trustedShopper) { this.trustedShopper = trustedShopper; } - /** - * Return true if this PaymentRequest object is equal to o. - */ + /** Return true if this PaymentRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -2961,83 +3765,155 @@ public boolean equals(Object o) { return false; } PaymentRequest paymentRequest = (PaymentRequest) o; - return Objects.equals(this.accountInfo, paymentRequest.accountInfo) && - Objects.equals(this.additionalAmount, paymentRequest.additionalAmount) && - Objects.equals(this.additionalData, paymentRequest.additionalData) && - Objects.equals(this.amount, paymentRequest.amount) && - Objects.equals(this.applicationInfo, paymentRequest.applicationInfo) && - Objects.equals(this.authenticationData, paymentRequest.authenticationData) && - Objects.equals(this.bankAccount, paymentRequest.bankAccount) && - Objects.equals(this.billingAddress, paymentRequest.billingAddress) && - Objects.equals(this.browserInfo, paymentRequest.browserInfo) && - Objects.equals(this.captureDelayHours, paymentRequest.captureDelayHours) && - Objects.equals(this.channel, paymentRequest.channel) && - Objects.equals(this.checkoutAttemptId, paymentRequest.checkoutAttemptId) && - Objects.equals(this.company, paymentRequest.company) && - Objects.equals(this.conversionId, paymentRequest.conversionId) && - Objects.equals(this.countryCode, paymentRequest.countryCode) && - Objects.equals(this.dateOfBirth, paymentRequest.dateOfBirth) && - Objects.equals(this.dccQuote, paymentRequest.dccQuote) && - Objects.equals(this.deliverAt, paymentRequest.deliverAt) && - Objects.equals(this.deliveryAddress, paymentRequest.deliveryAddress) && - Objects.equals(this.deliveryDate, paymentRequest.deliveryDate) && - Objects.equals(this.deviceFingerprint, paymentRequest.deviceFingerprint) && - Objects.equals(this.enableOneClick, paymentRequest.enableOneClick) && - Objects.equals(this.enablePayOut, paymentRequest.enablePayOut) && - Objects.equals(this.enableRecurring, paymentRequest.enableRecurring) && - Objects.equals(this.enhancedSchemeData, paymentRequest.enhancedSchemeData) && - Objects.equals(this.entityType, paymentRequest.entityType) && - Objects.equals(this.fraudOffset, paymentRequest.fraudOffset) && - Objects.equals(this.fundOrigin, paymentRequest.fundOrigin) && - Objects.equals(this.fundRecipient, paymentRequest.fundRecipient) && - Objects.equals(this.industryUsage, paymentRequest.industryUsage) && - Objects.equals(this.installments, paymentRequest.installments) && - Objects.equals(this.lineItems, paymentRequest.lineItems) && - Objects.equals(this.localizedShopperStatement, paymentRequest.localizedShopperStatement) && - Objects.equals(this.mandate, paymentRequest.mandate) && - Objects.equals(this.mcc, paymentRequest.mcc) && - Objects.equals(this.merchantAccount, paymentRequest.merchantAccount) && - Objects.equals(this.merchantOrderReference, paymentRequest.merchantOrderReference) && - Objects.equals(this.merchantRiskIndicator, paymentRequest.merchantRiskIndicator) && - Objects.equals(this.metadata, paymentRequest.metadata) && - Objects.equals(this.mpiData, paymentRequest.mpiData) && - Objects.equals(this.order, paymentRequest.order) && - Objects.equals(this.orderReference, paymentRequest.orderReference) && - Objects.equals(this.origin, paymentRequest.origin) && - Objects.equals(this.paymentMethod, paymentRequest.paymentMethod) && - Objects.equals(this.platformChargebackLogic, paymentRequest.platformChargebackLogic) && - Objects.equals(this.recurringExpiry, paymentRequest.recurringExpiry) && - Objects.equals(this.recurringFrequency, paymentRequest.recurringFrequency) && - Objects.equals(this.recurringProcessingModel, paymentRequest.recurringProcessingModel) && - Objects.equals(this.redirectFromIssuerMethod, paymentRequest.redirectFromIssuerMethod) && - Objects.equals(this.redirectToIssuerMethod, paymentRequest.redirectToIssuerMethod) && - Objects.equals(this.reference, paymentRequest.reference) && - Objects.equals(this.returnUrl, paymentRequest.returnUrl) && - Objects.equals(this.riskData, paymentRequest.riskData) && - Objects.equals(this.sessionValidity, paymentRequest.sessionValidity) && - Objects.equals(this.shopperConversionId, paymentRequest.shopperConversionId) && - Objects.equals(this.shopperEmail, paymentRequest.shopperEmail) && - Objects.equals(this.shopperIP, paymentRequest.shopperIP) && - Objects.equals(this.shopperInteraction, paymentRequest.shopperInteraction) && - Objects.equals(this.shopperLocale, paymentRequest.shopperLocale) && - Objects.equals(this.shopperName, paymentRequest.shopperName) && - Objects.equals(this.shopperReference, paymentRequest.shopperReference) && - Objects.equals(this.shopperStatement, paymentRequest.shopperStatement) && - Objects.equals(this.socialSecurityNumber, paymentRequest.socialSecurityNumber) && - Objects.equals(this.splits, paymentRequest.splits) && - Objects.equals(this.store, paymentRequest.store) && - Objects.equals(this.storePaymentMethod, paymentRequest.storePaymentMethod) && - Objects.equals(this.subMerchants, paymentRequest.subMerchants) && - Objects.equals(this.surcharge, paymentRequest.surcharge) && - Objects.equals(this.telephoneNumber, paymentRequest.telephoneNumber) && - Objects.equals(this.threeDS2RequestData, paymentRequest.threeDS2RequestData) && - Objects.equals(this.threeDSAuthenticationOnly, paymentRequest.threeDSAuthenticationOnly) && - Objects.equals(this.trustedShopper, paymentRequest.trustedShopper); + return Objects.equals(this.accountInfo, paymentRequest.accountInfo) + && Objects.equals(this.additionalAmount, paymentRequest.additionalAmount) + && Objects.equals(this.additionalData, paymentRequest.additionalData) + && Objects.equals(this.amount, paymentRequest.amount) + && Objects.equals(this.applicationInfo, paymentRequest.applicationInfo) + && Objects.equals(this.authenticationData, paymentRequest.authenticationData) + && Objects.equals(this.bankAccount, paymentRequest.bankAccount) + && Objects.equals(this.billingAddress, paymentRequest.billingAddress) + && Objects.equals(this.browserInfo, paymentRequest.browserInfo) + && Objects.equals(this.captureDelayHours, paymentRequest.captureDelayHours) + && Objects.equals(this.channel, paymentRequest.channel) + && Objects.equals(this.checkoutAttemptId, paymentRequest.checkoutAttemptId) + && Objects.equals(this.company, paymentRequest.company) + && Objects.equals(this.conversionId, paymentRequest.conversionId) + && Objects.equals(this.countryCode, paymentRequest.countryCode) + && Objects.equals(this.dateOfBirth, paymentRequest.dateOfBirth) + && Objects.equals(this.dccQuote, paymentRequest.dccQuote) + && Objects.equals(this.deliverAt, paymentRequest.deliverAt) + && Objects.equals(this.deliveryAddress, paymentRequest.deliveryAddress) + && Objects.equals(this.deliveryDate, paymentRequest.deliveryDate) + && Objects.equals(this.deviceFingerprint, paymentRequest.deviceFingerprint) + && Objects.equals(this.enableOneClick, paymentRequest.enableOneClick) + && Objects.equals(this.enablePayOut, paymentRequest.enablePayOut) + && Objects.equals(this.enableRecurring, paymentRequest.enableRecurring) + && Objects.equals(this.enhancedSchemeData, paymentRequest.enhancedSchemeData) + && Objects.equals(this.entityType, paymentRequest.entityType) + && Objects.equals(this.fraudOffset, paymentRequest.fraudOffset) + && Objects.equals(this.fundOrigin, paymentRequest.fundOrigin) + && Objects.equals(this.fundRecipient, paymentRequest.fundRecipient) + && Objects.equals(this.industryUsage, paymentRequest.industryUsage) + && Objects.equals(this.installments, paymentRequest.installments) + && Objects.equals(this.lineItems, paymentRequest.lineItems) + && Objects.equals(this.localizedShopperStatement, paymentRequest.localizedShopperStatement) + && Objects.equals(this.mandate, paymentRequest.mandate) + && Objects.equals(this.mcc, paymentRequest.mcc) + && Objects.equals(this.merchantAccount, paymentRequest.merchantAccount) + && Objects.equals(this.merchantOrderReference, paymentRequest.merchantOrderReference) + && Objects.equals(this.merchantRiskIndicator, paymentRequest.merchantRiskIndicator) + && Objects.equals(this.metadata, paymentRequest.metadata) + && Objects.equals(this.mpiData, paymentRequest.mpiData) + && Objects.equals(this.order, paymentRequest.order) + && Objects.equals(this.orderReference, paymentRequest.orderReference) + && Objects.equals(this.origin, paymentRequest.origin) + && Objects.equals(this.paymentMethod, paymentRequest.paymentMethod) + && Objects.equals(this.platformChargebackLogic, paymentRequest.platformChargebackLogic) + && Objects.equals(this.recurringExpiry, paymentRequest.recurringExpiry) + && Objects.equals(this.recurringFrequency, paymentRequest.recurringFrequency) + && Objects.equals(this.recurringProcessingModel, paymentRequest.recurringProcessingModel) + && Objects.equals(this.redirectFromIssuerMethod, paymentRequest.redirectFromIssuerMethod) + && Objects.equals(this.redirectToIssuerMethod, paymentRequest.redirectToIssuerMethod) + && Objects.equals(this.reference, paymentRequest.reference) + && Objects.equals(this.returnUrl, paymentRequest.returnUrl) + && Objects.equals(this.riskData, paymentRequest.riskData) + && Objects.equals(this.sessionValidity, paymentRequest.sessionValidity) + && Objects.equals(this.shopperConversionId, paymentRequest.shopperConversionId) + && Objects.equals(this.shopperEmail, paymentRequest.shopperEmail) + && Objects.equals(this.shopperIP, paymentRequest.shopperIP) + && Objects.equals(this.shopperInteraction, paymentRequest.shopperInteraction) + && Objects.equals(this.shopperLocale, paymentRequest.shopperLocale) + && Objects.equals(this.shopperName, paymentRequest.shopperName) + && Objects.equals(this.shopperReference, paymentRequest.shopperReference) + && Objects.equals(this.shopperStatement, paymentRequest.shopperStatement) + && Objects.equals(this.socialSecurityNumber, paymentRequest.socialSecurityNumber) + && Objects.equals(this.splits, paymentRequest.splits) + && Objects.equals(this.store, paymentRequest.store) + && Objects.equals(this.storePaymentMethod, paymentRequest.storePaymentMethod) + && Objects.equals(this.subMerchants, paymentRequest.subMerchants) + && Objects.equals(this.surcharge, paymentRequest.surcharge) + && Objects.equals(this.telephoneNumber, paymentRequest.telephoneNumber) + && Objects.equals(this.threeDS2RequestData, paymentRequest.threeDS2RequestData) + && Objects.equals(this.threeDSAuthenticationOnly, paymentRequest.threeDSAuthenticationOnly) + && Objects.equals(this.trustedShopper, paymentRequest.trustedShopper); } @Override public int hashCode() { - return Objects.hash(accountInfo, additionalAmount, additionalData, amount, applicationInfo, authenticationData, bankAccount, billingAddress, browserInfo, captureDelayHours, channel, checkoutAttemptId, company, conversionId, countryCode, dateOfBirth, dccQuote, deliverAt, deliveryAddress, deliveryDate, deviceFingerprint, enableOneClick, enablePayOut, enableRecurring, enhancedSchemeData, entityType, fraudOffset, fundOrigin, fundRecipient, industryUsage, installments, lineItems, localizedShopperStatement, mandate, mcc, merchantAccount, merchantOrderReference, merchantRiskIndicator, metadata, mpiData, order, orderReference, origin, paymentMethod, platformChargebackLogic, recurringExpiry, recurringFrequency, recurringProcessingModel, redirectFromIssuerMethod, redirectToIssuerMethod, reference, returnUrl, riskData, sessionValidity, shopperConversionId, shopperEmail, shopperIP, shopperInteraction, shopperLocale, shopperName, shopperReference, shopperStatement, socialSecurityNumber, splits, store, storePaymentMethod, subMerchants, surcharge, telephoneNumber, threeDS2RequestData, threeDSAuthenticationOnly, trustedShopper); + return Objects.hash( + accountInfo, + additionalAmount, + additionalData, + amount, + applicationInfo, + authenticationData, + bankAccount, + billingAddress, + browserInfo, + captureDelayHours, + channel, + checkoutAttemptId, + company, + conversionId, + countryCode, + dateOfBirth, + dccQuote, + deliverAt, + deliveryAddress, + deliveryDate, + deviceFingerprint, + enableOneClick, + enablePayOut, + enableRecurring, + enhancedSchemeData, + entityType, + fraudOffset, + fundOrigin, + fundRecipient, + industryUsage, + installments, + lineItems, + localizedShopperStatement, + mandate, + mcc, + merchantAccount, + merchantOrderReference, + merchantRiskIndicator, + metadata, + mpiData, + order, + orderReference, + origin, + paymentMethod, + platformChargebackLogic, + recurringExpiry, + recurringFrequency, + recurringProcessingModel, + redirectFromIssuerMethod, + redirectToIssuerMethod, + reference, + returnUrl, + riskData, + sessionValidity, + shopperConversionId, + shopperEmail, + shopperIP, + shopperInteraction, + shopperLocale, + shopperName, + shopperReference, + shopperStatement, + socialSecurityNumber, + splits, + store, + storePaymentMethod, + subMerchants, + surcharge, + telephoneNumber, + threeDS2RequestData, + threeDSAuthenticationOnly, + trustedShopper); } @Override @@ -3076,29 +3952,45 @@ public String toString() { sb.append(" industryUsage: ").append(toIndentedString(industryUsage)).append("\n"); sb.append(" installments: ").append(toIndentedString(installments)).append("\n"); sb.append(" lineItems: ").append(toIndentedString(lineItems)).append("\n"); - sb.append(" localizedShopperStatement: ").append(toIndentedString(localizedShopperStatement)).append("\n"); + sb.append(" localizedShopperStatement: ") + .append(toIndentedString(localizedShopperStatement)) + .append("\n"); sb.append(" mandate: ").append(toIndentedString(mandate)).append("\n"); sb.append(" mcc: ").append(toIndentedString(mcc)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" merchantOrderReference: ").append(toIndentedString(merchantOrderReference)).append("\n"); - sb.append(" merchantRiskIndicator: ").append(toIndentedString(merchantRiskIndicator)).append("\n"); + sb.append(" merchantOrderReference: ") + .append(toIndentedString(merchantOrderReference)) + .append("\n"); + sb.append(" merchantRiskIndicator: ") + .append(toIndentedString(merchantRiskIndicator)) + .append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" mpiData: ").append(toIndentedString(mpiData)).append("\n"); sb.append(" order: ").append(toIndentedString(order)).append("\n"); sb.append(" orderReference: ").append(toIndentedString(orderReference)).append("\n"); sb.append(" origin: ").append(toIndentedString(origin)).append("\n"); sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n"); - sb.append(" platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n"); + sb.append(" platformChargebackLogic: ") + .append(toIndentedString(platformChargebackLogic)) + .append("\n"); sb.append(" recurringExpiry: ").append(toIndentedString(recurringExpiry)).append("\n"); sb.append(" recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n"); - sb.append(" recurringProcessingModel: ").append(toIndentedString(recurringProcessingModel)).append("\n"); - sb.append(" redirectFromIssuerMethod: ").append(toIndentedString(redirectFromIssuerMethod)).append("\n"); - sb.append(" redirectToIssuerMethod: ").append(toIndentedString(redirectToIssuerMethod)).append("\n"); + sb.append(" recurringProcessingModel: ") + .append(toIndentedString(recurringProcessingModel)) + .append("\n"); + sb.append(" redirectFromIssuerMethod: ") + .append(toIndentedString(redirectFromIssuerMethod)) + .append("\n"); + sb.append(" redirectToIssuerMethod: ") + .append(toIndentedString(redirectToIssuerMethod)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" returnUrl: ").append(toIndentedString(returnUrl)).append("\n"); sb.append(" riskData: ").append(toIndentedString(riskData)).append("\n"); sb.append(" sessionValidity: ").append(toIndentedString(sessionValidity)).append("\n"); - sb.append(" shopperConversionId: ").append(toIndentedString(shopperConversionId)).append("\n"); + sb.append(" shopperConversionId: ") + .append(toIndentedString(shopperConversionId)) + .append("\n"); sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); sb.append(" shopperIP: ").append(toIndentedString(shopperIP)).append("\n"); sb.append(" shopperInteraction: ").append(toIndentedString(shopperInteraction)).append("\n"); @@ -3106,23 +3998,28 @@ public String toString() { sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append(" shopperStatement: ").append(toIndentedString(shopperStatement)).append("\n"); - sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); + sb.append(" socialSecurityNumber: ") + .append(toIndentedString(socialSecurityNumber)) + .append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" store: ").append(toIndentedString(store)).append("\n"); sb.append(" storePaymentMethod: ").append(toIndentedString(storePaymentMethod)).append("\n"); sb.append(" subMerchants: ").append(toIndentedString(subMerchants)).append("\n"); sb.append(" surcharge: ").append(toIndentedString(surcharge)).append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); - sb.append(" threeDS2RequestData: ").append(toIndentedString(threeDS2RequestData)).append("\n"); - sb.append(" threeDSAuthenticationOnly: ").append(toIndentedString(threeDSAuthenticationOnly)).append("\n"); + sb.append(" threeDS2RequestData: ") + .append(toIndentedString(threeDS2RequestData)) + .append("\n"); + sb.append(" threeDSAuthenticationOnly: ") + .append(toIndentedString(threeDSAuthenticationOnly)) + .append("\n"); sb.append(" trustedShopper: ").append(toIndentedString(trustedShopper)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -3131,7 +4028,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentRequest given an JSON string * * @param jsonString JSON string @@ -3141,11 +4038,12 @@ private String toIndentedString(Object o) { public static PaymentRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentRequest.class); } -/** - * Convert an instance of PaymentRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentResponse.java b/src/main/java/com/adyen/model/checkout/PaymentResponse.java index b12ef1414..cfa5bee01 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentResponse.java @@ -2,40 +2,28 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Amount; -import com.adyen.model.checkout.CheckoutOrderResponse; -import com.adyen.model.checkout.FraudResult; -import com.adyen.model.checkout.PaymentResponseAction; -import com.adyen.model.checkout.ResponsePaymentMethod; -import com.adyen.model.checkout.ThreeDS2ResponseData; -import com.adyen.model.checkout.ThreeDS2Result; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * PaymentResponse - */ +/** PaymentResponse */ @JsonPropertyOrder({ PaymentResponse.JSON_PROPERTY_ACTION, PaymentResponse.JSON_PROPERTY_ADDITIONAL_DATA, @@ -53,7 +41,6 @@ PaymentResponse.JSON_PROPERTY_THREE_D_S2_RESULT, PaymentResponse.JSON_PROPERTY_THREE_D_S_PAYMENT_DATA }) - public class PaymentResponse { public static final String JSON_PROPERTY_ACTION = "action"; private PaymentResponseAction action; @@ -89,10 +76,35 @@ public class PaymentResponse { private String refusalReasonCode; /** - * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + * The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. + * Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – + * The transaction does not require 3D Secure authentication. Returned for [standalone + * authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * * **Authorised** – The payment was successfully authorised. This state serves as an indicator + * to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – + * Indicates the payment has been cancelled (either by the shopper or the merchant) before + * processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires + * further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 + * transactions. * **Error** – There was an error when the payment was being processed. The reason + * is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – + * The issuer requires the shopper's device fingerprint before the payment can be + * authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment + * has been authorised for a partial amount. This happens for card payments when the merchant + * supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – + * Indicates that it is not possible to obtain the final status of the payment. This can happen if + * the systems providing final status information for the payment are unavailable, or if the + * shopper needs to take further action to complete the payment. * **PresentToShopper** – + * Indicates that the response contains additional information that you need to present to a + * shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment + * has successfully been received by Adyen, and will be processed. This is the initial state for + * all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external + * web page or app to complete the authorisation. * **Refused** – Indicates the payment was + * refused. The reason is given in the `refusalReason` field. This is a final state. */ public enum ResultCodeEnum { - AUTHENTICATIONFINISHED(String.valueOf("AuthenticationFinished")), AUTHENTICATIONNOTREQUIRED(String.valueOf("AuthenticationNotRequired")), @@ -126,7 +138,7 @@ public enum ResultCodeEnum { private String value; ResultCodeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -147,7 +159,11 @@ public static ResultCodeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ResultCodeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResultCodeEnum.values())); + LOG.warning( + "ResultCodeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ResultCodeEnum.values())); return null; } } @@ -164,13 +180,12 @@ public static ResultCodeEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_PAYMENT_DATA = "threeDSPaymentData"; private String threeDSPaymentData; - public PaymentResponse() { - } + public PaymentResponse() {} /** * action * - * @param action + * @param action * @return the current {@code PaymentResponse} instance, allowing for method chaining */ public PaymentResponse action(PaymentResponseAction action) { @@ -180,7 +195,8 @@ public PaymentResponse action(PaymentResponseAction action) { /** * Get action - * @return action + * + * @return action */ @JsonProperty(JSON_PROPERTY_ACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,7 +207,7 @@ public PaymentResponseAction getAction() { /** * action * - * @param action + * @param action */ @JsonProperty(JSON_PROPERTY_ACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,9 +216,12 @@ public void setAction(PaymentResponseAction action) { } /** - * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first: Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first: Go to **Customer Area** > **Developers** > + * **Additional data**. * @return the current {@code PaymentResponse} instance, allowing for method chaining */ public PaymentResponse additionalData(Map additionalData) { @@ -219,8 +238,12 @@ public PaymentResponse putAdditionalDataItem(String key, String additionalDataIt } /** - * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. - * @return additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * + * @return additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first: Go to **Customer Area** > **Developers** > + * **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -229,9 +252,12 @@ public Map getAdditionalData() { } /** - * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first: Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first: Go to **Customer Area** > **Developers** > + * **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,7 +268,7 @@ public void setAdditionalData(Map additionalData) { /** * amount * - * @param amount + * @param amount * @return the current {@code PaymentResponse} instance, allowing for method chaining */ public PaymentResponse amount(Amount amount) { @@ -252,7 +278,8 @@ public PaymentResponse amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -263,7 +290,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,6 +311,7 @@ public PaymentResponse donationToken(String donationToken) { /** * Donation Token containing payment details for Adyen Giving. + * * @return donationToken Donation Token containing payment details for Adyen Giving. */ @JsonProperty(JSON_PROPERTY_DONATION_TOKEN) @@ -306,7 +334,7 @@ public void setDonationToken(String donationToken) { /** * fraudResult * - * @param fraudResult + * @param fraudResult * @return the current {@code PaymentResponse} instance, allowing for method chaining */ public PaymentResponse fraudResult(FraudResult fraudResult) { @@ -316,7 +344,8 @@ public PaymentResponse fraudResult(FraudResult fraudResult) { /** * Get fraudResult - * @return fraudResult + * + * @return fraudResult */ @JsonProperty(JSON_PROPERTY_FRAUD_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -327,7 +356,7 @@ public FraudResult getFraudResult() { /** * fraudResult * - * @param fraudResult + * @param fraudResult */ @JsonProperty(JSON_PROPERTY_FRAUD_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -336,9 +365,16 @@ public void setFraudResult(FraudResult fraudResult) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. * - * @param merchantReference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param merchantReference The reference to uniquely identify a payment. This reference is used + * in all communication with you about the payment status. We recommend using a unique value + * per payment; however, it is not a requirement. If you need to provide multiple references + * for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 + * characters. * @return the current {@code PaymentResponse} instance, allowing for method chaining */ public PaymentResponse merchantReference(String merchantReference) { @@ -347,8 +383,16 @@ public PaymentResponse merchantReference(String merchantReference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. - * @return merchantReference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. + * + * @return merchantReference The reference to uniquely identify a payment. This reference is used + * in all communication with you about the payment status. We recommend using a unique value + * per payment; however, it is not a requirement. If you need to provide multiple references + * for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 + * characters. */ @JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -357,9 +401,16 @@ public String getMerchantReference() { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. * - * @param merchantReference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param merchantReference The reference to uniquely identify a payment. This reference is used + * in all communication with you about the payment status. We recommend using a unique value + * per payment; however, it is not a requirement. If you need to provide multiple references + * for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 + * characters. */ @JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -370,7 +421,7 @@ public void setMerchantReference(String merchantReference) { /** * order * - * @param order + * @param order * @return the current {@code PaymentResponse} instance, allowing for method chaining */ public PaymentResponse order(CheckoutOrderResponse order) { @@ -380,7 +431,8 @@ public PaymentResponse order(CheckoutOrderResponse order) { /** * Get order - * @return order + * + * @return order */ @JsonProperty(JSON_PROPERTY_ORDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -391,7 +443,7 @@ public CheckoutOrderResponse getOrder() { /** * order * - * @param order + * @param order */ @JsonProperty(JSON_PROPERTY_ORDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -402,7 +454,7 @@ public void setOrder(CheckoutOrderResponse order) { /** * paymentMethod * - * @param paymentMethod + * @param paymentMethod * @return the current {@code PaymentResponse} instance, allowing for method chaining */ public PaymentResponse paymentMethod(ResponsePaymentMethod paymentMethod) { @@ -412,7 +464,8 @@ public PaymentResponse paymentMethod(ResponsePaymentMethod paymentMethod) { /** * Get paymentMethod - * @return paymentMethod + * + * @return paymentMethod */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -423,7 +476,7 @@ public ResponsePaymentMethod getPaymentMethod() { /** * paymentMethod * - * @param paymentMethod + * @param paymentMethod */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -432,9 +485,15 @@ public void setPaymentMethod(ResponsePaymentMethod paymentMethod) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. > For payment methods that require a redirect or additional action, you will get this value in the `/payments/details` response. + * Adyen's 16-character string reference associated with the transaction/request. This value + * is globally unique; quote it when communicating with us about this request. > For payment + * methods that require a redirect or additional action, you will get this value in the + * `/payments/details` response. * - * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. > For payment methods that require a redirect or additional action, you will get this value in the `/payments/details` response. + * @param pspReference Adyen's 16-character string reference associated with the + * transaction/request. This value is globally unique; quote it when communicating with us + * about this request. > For payment methods that require a redirect or additional action, + * you will get this value in the `/payments/details` response. * @return the current {@code PaymentResponse} instance, allowing for method chaining */ public PaymentResponse pspReference(String pspReference) { @@ -443,8 +502,15 @@ public PaymentResponse pspReference(String pspReference) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. > For payment methods that require a redirect or additional action, you will get this value in the `/payments/details` response. - * @return pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. > For payment methods that require a redirect or additional action, you will get this value in the `/payments/details` response. + * Adyen's 16-character string reference associated with the transaction/request. This value + * is globally unique; quote it when communicating with us about this request. > For payment + * methods that require a redirect or additional action, you will get this value in the + * `/payments/details` response. + * + * @return pspReference Adyen's 16-character string reference associated with the + * transaction/request. This value is globally unique; quote it when communicating with us + * about this request. > For payment methods that require a redirect or additional action, + * you will get this value in the `/payments/details` response. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -453,9 +519,15 @@ public String getPspReference() { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. > For payment methods that require a redirect or additional action, you will get this value in the `/payments/details` response. + * Adyen's 16-character string reference associated with the transaction/request. This value + * is globally unique; quote it when communicating with us about this request. > For payment + * methods that require a redirect or additional action, you will get this value in the + * `/payments/details` response. * - * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. > For payment methods that require a redirect or additional action, you will get this value in the `/payments/details` response. + * @param pspReference Adyen's 16-character string reference associated with the + * transaction/request. This value is globally unique; quote it when communicating with us + * about this request. > For payment methods that require a redirect or additional action, + * you will get this value in the `/payments/details` response. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -464,9 +536,17 @@ public void setPspReference(String pspReference) { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this + * field holds Adyen's mapped reason for the refusal or a description of the error. When a + * transaction fails, the authorisation response includes `resultCode` and + * `refusalReason` values. For more information, see [Refusal + * reasons](https://docs.adyen.com/development-resources/refusal-reasons). * - * @param refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @param refusalReason If the payment's authorisation is refused or an error occurs during + * authorisation, this field holds Adyen's mapped reason for the refusal or a description + * of the error. When a transaction fails, the authorisation response includes + * `resultCode` and `refusalReason` values. For more information, see + * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). * @return the current {@code PaymentResponse} instance, allowing for method chaining */ public PaymentResponse refusalReason(String refusalReason) { @@ -475,8 +555,17 @@ public PaymentResponse refusalReason(String refusalReason) { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). - * @return refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this + * field holds Adyen's mapped reason for the refusal or a description of the error. When a + * transaction fails, the authorisation response includes `resultCode` and + * `refusalReason` values. For more information, see [Refusal + * reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * + * @return refusalReason If the payment's authorisation is refused or an error occurs during + * authorisation, this field holds Adyen's mapped reason for the refusal or a description + * of the error. When a transaction fails, the authorisation response includes + * `resultCode` and `refusalReason` values. For more information, see + * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -485,9 +574,17 @@ public String getRefusalReason() { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this + * field holds Adyen's mapped reason for the refusal or a description of the error. When a + * transaction fails, the authorisation response includes `resultCode` and + * `refusalReason` values. For more information, see [Refusal + * reasons](https://docs.adyen.com/development-resources/refusal-reasons). * - * @param refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @param refusalReason If the payment's authorisation is refused or an error occurs during + * authorisation, this field holds Adyen's mapped reason for the refusal or a description + * of the error. When a transaction fails, the authorisation response includes + * `resultCode` and `refusalReason` values. For more information, see + * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -496,9 +593,12 @@ public void setRefusalReason(String refusalReason) { } /** - * Code that specifies the refusal reason. For more information, see [Authorisation refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * Code that specifies the refusal reason. For more information, see [Authorisation refusal + * reasons](https://docs.adyen.com/development-resources/refusal-reasons). * - * @param refusalReasonCode Code that specifies the refusal reason. For more information, see [Authorisation refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @param refusalReasonCode Code that specifies the refusal reason. For more information, see + * [Authorisation refusal + * reasons](https://docs.adyen.com/development-resources/refusal-reasons). * @return the current {@code PaymentResponse} instance, allowing for method chaining */ public PaymentResponse refusalReasonCode(String refusalReasonCode) { @@ -507,8 +607,12 @@ public PaymentResponse refusalReasonCode(String refusalReasonCode) { } /** - * Code that specifies the refusal reason. For more information, see [Authorisation refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). - * @return refusalReasonCode Code that specifies the refusal reason. For more information, see [Authorisation refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * Code that specifies the refusal reason. For more information, see [Authorisation refusal + * reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * + * @return refusalReasonCode Code that specifies the refusal reason. For more information, see + * [Authorisation refusal + * reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -517,9 +621,12 @@ public String getRefusalReasonCode() { } /** - * Code that specifies the refusal reason. For more information, see [Authorisation refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * Code that specifies the refusal reason. For more information, see [Authorisation refusal + * reasons](https://docs.adyen.com/development-resources/refusal-reasons). * - * @param refusalReasonCode Code that specifies the refusal reason. For more information, see [Authorisation refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @param refusalReasonCode Code that specifies the refusal reason. For more information, see + * [Authorisation refusal + * reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -528,9 +635,62 @@ public void setRefusalReasonCode(String refusalReasonCode) { } /** - * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + * The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. + * Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – + * The transaction does not require 3D Secure authentication. Returned for [standalone + * authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * * **Authorised** – The payment was successfully authorised. This state serves as an indicator + * to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – + * Indicates the payment has been cancelled (either by the shopper or the merchant) before + * processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires + * further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 + * transactions. * **Error** – There was an error when the payment was being processed. The reason + * is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – + * The issuer requires the shopper's device fingerprint before the payment can be + * authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment + * has been authorised for a partial amount. This happens for card payments when the merchant + * supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – + * Indicates that it is not possible to obtain the final status of the payment. This can happen if + * the systems providing final status information for the payment are unavailable, or if the + * shopper needs to take further action to complete the payment. * **PresentToShopper** – + * Indicates that the response contains additional information that you need to present to a + * shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment + * has successfully been received by Adyen, and will be processed. This is the initial state for + * all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external + * web page or app to complete the authorisation. * **Refused** – Indicates the payment was + * refused. The reason is given in the `refusalReason` field. This is a final state. * - * @param resultCode The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + * @param resultCode The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure + * 2. Returned for 3D Secure 2 authentication-only transactions. * + * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. + * Returned for [standalone authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * * **Authorised** – The payment was successfully authorised. This state serves as an + * indicator to proceed with the delivery of goods and services. This is a final state. * + * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the + * merchant) before processing was completed. This is a final state. * **ChallengeShopper** – + * The issuer requires further shopper interaction before the payment can be authenticated. + * Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment + * was being processed. The reason is given in the `refusalReason` field. This is a + * final state. * **IdentifyShopper** – The issuer requires the shopper's device + * fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. + * * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This + * happens for card payments when the merchant supports Partial Authorisations and the + * cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to + * obtain the final status of the payment. This can happen if the systems providing final + * status information for the payment are unavailable, or if the shopper needs to take further + * action to complete the payment. * **PresentToShopper** – Indicates that the response + * contains additional information that you need to present to a shopper, so that they can use + * it to complete a payment. * **Received** – Indicates the payment has successfully been + * received by Adyen, and will be processed. This is the initial state for all payments. * + * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or + * app to complete the authorisation. * **Refused** – Indicates the payment was refused. The + * reason is given in the `refusalReason` field. This is a final state. * @return the current {@code PaymentResponse} instance, allowing for method chaining */ public PaymentResponse resultCode(ResultCodeEnum resultCode) { @@ -539,8 +699,62 @@ public PaymentResponse resultCode(ResultCodeEnum resultCode) { } /** - * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. - * @return resultCode The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + * The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. + * Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – + * The transaction does not require 3D Secure authentication. Returned for [standalone + * authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * * **Authorised** – The payment was successfully authorised. This state serves as an indicator + * to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – + * Indicates the payment has been cancelled (either by the shopper or the merchant) before + * processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires + * further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 + * transactions. * **Error** – There was an error when the payment was being processed. The reason + * is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – + * The issuer requires the shopper's device fingerprint before the payment can be + * authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment + * has been authorised for a partial amount. This happens for card payments when the merchant + * supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – + * Indicates that it is not possible to obtain the final status of the payment. This can happen if + * the systems providing final status information for the payment are unavailable, or if the + * shopper needs to take further action to complete the payment. * **PresentToShopper** – + * Indicates that the response contains additional information that you need to present to a + * shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment + * has successfully been received by Adyen, and will be processed. This is the initial state for + * all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external + * web page or app to complete the authorisation. * **Refused** – Indicates the payment was + * refused. The reason is given in the `refusalReason` field. This is a final state. + * + * @return resultCode The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure + * 2. Returned for 3D Secure 2 authentication-only transactions. * + * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. + * Returned for [standalone authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * * **Authorised** – The payment was successfully authorised. This state serves as an + * indicator to proceed with the delivery of goods and services. This is a final state. * + * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the + * merchant) before processing was completed. This is a final state. * **ChallengeShopper** – + * The issuer requires further shopper interaction before the payment can be authenticated. + * Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment + * was being processed. The reason is given in the `refusalReason` field. This is a + * final state. * **IdentifyShopper** – The issuer requires the shopper's device + * fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. + * * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This + * happens for card payments when the merchant supports Partial Authorisations and the + * cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to + * obtain the final status of the payment. This can happen if the systems providing final + * status information for the payment are unavailable, or if the shopper needs to take further + * action to complete the payment. * **PresentToShopper** – Indicates that the response + * contains additional information that you need to present to a shopper, so that they can use + * it to complete a payment. * **Received** – Indicates the payment has successfully been + * received by Adyen, and will be processed. This is the initial state for all payments. * + * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or + * app to complete the authorisation. * **Refused** – Indicates the payment was refused. The + * reason is given in the `refusalReason` field. This is a final state. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -549,9 +763,62 @@ public ResultCodeEnum getResultCode() { } /** - * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + * The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. + * Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – + * The transaction does not require 3D Secure authentication. Returned for [standalone + * authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * * **Authorised** – The payment was successfully authorised. This state serves as an indicator + * to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – + * Indicates the payment has been cancelled (either by the shopper or the merchant) before + * processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires + * further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 + * transactions. * **Error** – There was an error when the payment was being processed. The reason + * is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – + * The issuer requires the shopper's device fingerprint before the payment can be + * authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment + * has been authorised for a partial amount. This happens for card payments when the merchant + * supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – + * Indicates that it is not possible to obtain the final status of the payment. This can happen if + * the systems providing final status information for the payment are unavailable, or if the + * shopper needs to take further action to complete the payment. * **PresentToShopper** – + * Indicates that the response contains additional information that you need to present to a + * shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment + * has successfully been received by Adyen, and will be processed. This is the initial state for + * all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external + * web page or app to complete the authorisation. * **Refused** – Indicates the payment was + * refused. The reason is given in the `refusalReason` field. This is a final state. * - * @param resultCode The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + * @param resultCode The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure + * 2. Returned for 3D Secure 2 authentication-only transactions. * + * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. + * Returned for [standalone authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * * **Authorised** – The payment was successfully authorised. This state serves as an + * indicator to proceed with the delivery of goods and services. This is a final state. * + * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the + * merchant) before processing was completed. This is a final state. * **ChallengeShopper** – + * The issuer requires further shopper interaction before the payment can be authenticated. + * Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment + * was being processed. The reason is given in the `refusalReason` field. This is a + * final state. * **IdentifyShopper** – The issuer requires the shopper's device + * fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. + * * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This + * happens for card payments when the merchant supports Partial Authorisations and the + * cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to + * obtain the final status of the payment. This can happen if the systems providing final + * status information for the payment are unavailable, or if the shopper needs to take further + * action to complete the payment. * **PresentToShopper** – Indicates that the response + * contains additional information that you need to present to a shopper, so that they can use + * it to complete a payment. * **Received** – Indicates the payment has successfully been + * received by Adyen, and will be processed. This is the initial state for all payments. * + * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or + * app to complete the authorisation. * **Refused** – Indicates the payment was refused. The + * reason is given in the `refusalReason` field. This is a final state. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -562,7 +829,7 @@ public void setResultCode(ResultCodeEnum resultCode) { /** * threeDS2ResponseData * - * @param threeDS2ResponseData + * @param threeDS2ResponseData * @return the current {@code PaymentResponse} instance, allowing for method chaining */ public PaymentResponse threeDS2ResponseData(ThreeDS2ResponseData threeDS2ResponseData) { @@ -572,7 +839,8 @@ public PaymentResponse threeDS2ResponseData(ThreeDS2ResponseData threeDS2Respons /** * Get threeDS2ResponseData - * @return threeDS2ResponseData + * + * @return threeDS2ResponseData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_RESPONSE_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -583,7 +851,7 @@ public ThreeDS2ResponseData getThreeDS2ResponseData() { /** * threeDS2ResponseData * - * @param threeDS2ResponseData + * @param threeDS2ResponseData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_RESPONSE_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -594,7 +862,7 @@ public void setThreeDS2ResponseData(ThreeDS2ResponseData threeDS2ResponseData) { /** * threeDS2Result * - * @param threeDS2Result + * @param threeDS2Result * @return the current {@code PaymentResponse} instance, allowing for method chaining */ public PaymentResponse threeDS2Result(ThreeDS2Result threeDS2Result) { @@ -604,7 +872,8 @@ public PaymentResponse threeDS2Result(ThreeDS2Result threeDS2Result) { /** * Get threeDS2Result - * @return threeDS2Result + * + * @return threeDS2Result */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -615,7 +884,7 @@ public ThreeDS2Result getThreeDS2Result() { /** * threeDS2Result * - * @param threeDS2Result + * @param threeDS2Result */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -624,9 +893,11 @@ public void setThreeDS2Result(ThreeDS2Result threeDS2Result) { } /** - * When non-empty, contains a value that you must submit to the `/payments/details` endpoint as `paymentData`. + * When non-empty, contains a value that you must submit to the `/payments/details` + * endpoint as `paymentData`. * - * @param threeDSPaymentData When non-empty, contains a value that you must submit to the `/payments/details` endpoint as `paymentData`. + * @param threeDSPaymentData When non-empty, contains a value that you must submit to the + * `/payments/details` endpoint as `paymentData`. * @return the current {@code PaymentResponse} instance, allowing for method chaining */ public PaymentResponse threeDSPaymentData(String threeDSPaymentData) { @@ -635,8 +906,11 @@ public PaymentResponse threeDSPaymentData(String threeDSPaymentData) { } /** - * When non-empty, contains a value that you must submit to the `/payments/details` endpoint as `paymentData`. - * @return threeDSPaymentData When non-empty, contains a value that you must submit to the `/payments/details` endpoint as `paymentData`. + * When non-empty, contains a value that you must submit to the `/payments/details` + * endpoint as `paymentData`. + * + * @return threeDSPaymentData When non-empty, contains a value that you must submit to the + * `/payments/details` endpoint as `paymentData`. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_PAYMENT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -645,9 +919,11 @@ public String getThreeDSPaymentData() { } /** - * When non-empty, contains a value that you must submit to the `/payments/details` endpoint as `paymentData`. + * When non-empty, contains a value that you must submit to the `/payments/details` + * endpoint as `paymentData`. * - * @param threeDSPaymentData When non-empty, contains a value that you must submit to the `/payments/details` endpoint as `paymentData`. + * @param threeDSPaymentData When non-empty, contains a value that you must submit to the + * `/payments/details` endpoint as `paymentData`. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_PAYMENT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -655,9 +931,7 @@ public void setThreeDSPaymentData(String threeDSPaymentData) { this.threeDSPaymentData = threeDSPaymentData; } - /** - * Return true if this PaymentResponse object is equal to o. - */ + /** Return true if this PaymentResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -667,26 +941,41 @@ public boolean equals(Object o) { return false; } PaymentResponse paymentResponse = (PaymentResponse) o; - return Objects.equals(this.action, paymentResponse.action) && - Objects.equals(this.additionalData, paymentResponse.additionalData) && - Objects.equals(this.amount, paymentResponse.amount) && - Objects.equals(this.donationToken, paymentResponse.donationToken) && - Objects.equals(this.fraudResult, paymentResponse.fraudResult) && - Objects.equals(this.merchantReference, paymentResponse.merchantReference) && - Objects.equals(this.order, paymentResponse.order) && - Objects.equals(this.paymentMethod, paymentResponse.paymentMethod) && - Objects.equals(this.pspReference, paymentResponse.pspReference) && - Objects.equals(this.refusalReason, paymentResponse.refusalReason) && - Objects.equals(this.refusalReasonCode, paymentResponse.refusalReasonCode) && - Objects.equals(this.resultCode, paymentResponse.resultCode) && - Objects.equals(this.threeDS2ResponseData, paymentResponse.threeDS2ResponseData) && - Objects.equals(this.threeDS2Result, paymentResponse.threeDS2Result) && - Objects.equals(this.threeDSPaymentData, paymentResponse.threeDSPaymentData); + return Objects.equals(this.action, paymentResponse.action) + && Objects.equals(this.additionalData, paymentResponse.additionalData) + && Objects.equals(this.amount, paymentResponse.amount) + && Objects.equals(this.donationToken, paymentResponse.donationToken) + && Objects.equals(this.fraudResult, paymentResponse.fraudResult) + && Objects.equals(this.merchantReference, paymentResponse.merchantReference) + && Objects.equals(this.order, paymentResponse.order) + && Objects.equals(this.paymentMethod, paymentResponse.paymentMethod) + && Objects.equals(this.pspReference, paymentResponse.pspReference) + && Objects.equals(this.refusalReason, paymentResponse.refusalReason) + && Objects.equals(this.refusalReasonCode, paymentResponse.refusalReasonCode) + && Objects.equals(this.resultCode, paymentResponse.resultCode) + && Objects.equals(this.threeDS2ResponseData, paymentResponse.threeDS2ResponseData) + && Objects.equals(this.threeDS2Result, paymentResponse.threeDS2Result) + && Objects.equals(this.threeDSPaymentData, paymentResponse.threeDSPaymentData); } @Override public int hashCode() { - return Objects.hash(action, additionalData, amount, donationToken, fraudResult, merchantReference, order, paymentMethod, pspReference, refusalReason, refusalReasonCode, resultCode, threeDS2ResponseData, threeDS2Result, threeDSPaymentData); + return Objects.hash( + action, + additionalData, + amount, + donationToken, + fraudResult, + merchantReference, + order, + paymentMethod, + pspReference, + refusalReason, + refusalReasonCode, + resultCode, + threeDS2ResponseData, + threeDS2Result, + threeDSPaymentData); } @Override @@ -705,7 +994,9 @@ public String toString() { sb.append(" refusalReason: ").append(toIndentedString(refusalReason)).append("\n"); sb.append(" refusalReasonCode: ").append(toIndentedString(refusalReasonCode)).append("\n"); sb.append(" resultCode: ").append(toIndentedString(resultCode)).append("\n"); - sb.append(" threeDS2ResponseData: ").append(toIndentedString(threeDS2ResponseData)).append("\n"); + sb.append(" threeDS2ResponseData: ") + .append(toIndentedString(threeDS2ResponseData)) + .append("\n"); sb.append(" threeDS2Result: ").append(toIndentedString(threeDS2Result)).append("\n"); sb.append(" threeDSPaymentData: ").append(toIndentedString(threeDSPaymentData)).append("\n"); sb.append("}"); @@ -713,8 +1004,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -723,7 +1013,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentResponse given an JSON string * * @param jsonString JSON string @@ -733,11 +1023,12 @@ private String toIndentedString(Object o) { public static PaymentResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentResponse.class); } -/** - * Convert an instance of PaymentResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentResponseAction.java b/src/main/java/com/adyen/model/checkout/PaymentResponseAction.java index b5597dcd6..39cbc9f63 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentResponseAction.java +++ b/src/main/java/com/adyen/model/checkout/PaymentResponseAction.java @@ -2,55 +2,19 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Amount; -import com.adyen.model.checkout.CheckoutAwaitAction; -import com.adyen.model.checkout.CheckoutBankTransferAction; -import com.adyen.model.checkout.CheckoutDelegatedAuthenticationAction; -import com.adyen.model.checkout.CheckoutNativeRedirectAction; -import com.adyen.model.checkout.CheckoutQrCodeAction; -import com.adyen.model.checkout.CheckoutRedirectAction; -import com.adyen.model.checkout.CheckoutSDKAction; -import com.adyen.model.checkout.CheckoutThreeDS2Action; -import com.adyen.model.checkout.CheckoutVoucherAction; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -import com.fasterxml.jackson.core.type.TypeReference; - -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.core.Response; -import java.io.IOException; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; - import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -60,543 +24,582 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; - +import jakarta.ws.rs.core.GenericType; +import java.io.IOException; +import java.util.*; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.logging.Level; +import java.util.logging.Logger; @JsonDeserialize(using = PaymentResponseAction.PaymentResponseActionDeserializer.class) @JsonSerialize(using = PaymentResponseAction.PaymentResponseActionSerializer.class) public class PaymentResponseAction extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(PaymentResponseAction.class.getName()); - - public static class PaymentResponseActionSerializer extends StdSerializer { - public PaymentResponseActionSerializer(Class t) { - super(t); - } - - public PaymentResponseActionSerializer() { - this(null); - } - - @Override - public void serialize(PaymentResponseAction value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class PaymentResponseActionDeserializer extends StdDeserializer { - public PaymentResponseActionDeserializer() { - this(PaymentResponseAction.class); - } - - public PaymentResponseActionDeserializer(Class vc) { - super(vc); - } - - @Override - public PaymentResponseAction deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize CheckoutAwaitAction - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(CheckoutAwaitAction.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutAwaitAction.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CheckoutAwaitAction'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CheckoutAwaitAction'", e); - } - - // deserialize CheckoutBankTransferAction - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(CheckoutBankTransferAction.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutBankTransferAction.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CheckoutBankTransferAction'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CheckoutBankTransferAction'", e); - } - - // deserialize CheckoutDelegatedAuthenticationAction - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(CheckoutDelegatedAuthenticationAction.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutDelegatedAuthenticationAction.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CheckoutDelegatedAuthenticationAction'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CheckoutDelegatedAuthenticationAction'", e); - } - - // deserialize CheckoutNativeRedirectAction - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(CheckoutNativeRedirectAction.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutNativeRedirectAction.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CheckoutNativeRedirectAction'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CheckoutNativeRedirectAction'", e); - } - - // deserialize CheckoutQrCodeAction - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(CheckoutQrCodeAction.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutQrCodeAction.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CheckoutQrCodeAction'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CheckoutQrCodeAction'", e); - } - - // deserialize CheckoutRedirectAction - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(CheckoutRedirectAction.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutRedirectAction.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CheckoutRedirectAction'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CheckoutRedirectAction'", e); - } - - // deserialize CheckoutSDKAction - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(CheckoutSDKAction.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutSDKAction.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CheckoutSDKAction'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CheckoutSDKAction'", e); - } - - // deserialize CheckoutThreeDS2Action - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(CheckoutThreeDS2Action.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutThreeDS2Action.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CheckoutThreeDS2Action'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CheckoutThreeDS2Action'", e); - } - - // deserialize CheckoutVoucherAction - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(CheckoutVoucherAction.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutVoucherAction.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CheckoutVoucherAction'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CheckoutVoucherAction'", e); - } - - if (match == 1) { - PaymentResponseAction ret = new PaymentResponseAction(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException(String.format("Failed deserialization for PaymentResponseAction: %d classes match result, expected 1", match)); - } - - /** - * Handle deserialization of the 'null' value. - */ - @Override - public PaymentResponseAction getNullValue(DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "PaymentResponseAction cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public PaymentResponseAction() { - super("oneOf", Boolean.FALSE); - } - - public PaymentResponseAction(CheckoutAwaitAction o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public PaymentResponseAction(CheckoutBankTransferAction o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public PaymentResponseAction(CheckoutDelegatedAuthenticationAction o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public PaymentResponseAction(CheckoutNativeRedirectAction o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public PaymentResponseAction(CheckoutQrCodeAction o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } + private static final Logger log = Logger.getLogger(PaymentResponseAction.class.getName()); - public PaymentResponseAction(CheckoutRedirectAction o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + public static class PaymentResponseActionSerializer extends StdSerializer { + public PaymentResponseActionSerializer(Class t) { + super(t); } - public PaymentResponseAction(CheckoutSDKAction o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + public PaymentResponseActionSerializer() { + this(null); } - public PaymentResponseAction(CheckoutThreeDS2Action o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + @Override + public void serialize( + PaymentResponseAction value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); } + } - public PaymentResponseAction(CheckoutVoucherAction o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + public static class PaymentResponseActionDeserializer + extends StdDeserializer { + public PaymentResponseActionDeserializer() { + this(PaymentResponseAction.class); } - static { - schemas.put("CheckoutAwaitAction", new GenericType() { - }); - schemas.put("CheckoutBankTransferAction", new GenericType() { - }); - schemas.put("CheckoutDelegatedAuthenticationAction", new GenericType() { - }); - schemas.put("CheckoutNativeRedirectAction", new GenericType() { - }); - schemas.put("CheckoutQrCodeAction", new GenericType() { - }); - schemas.put("CheckoutRedirectAction", new GenericType() { - }); - schemas.put("CheckoutSDKAction", new GenericType() { - }); - schemas.put("CheckoutThreeDS2Action", new GenericType() { - }); - schemas.put("CheckoutVoucherAction", new GenericType() { - }); - JSON.registerDescendants(PaymentResponseAction.class, Collections.unmodifiableMap(schemas)); + public PaymentResponseActionDeserializer(Class vc) { + super(vc); } @Override - public Map> getSchemas() { - return PaymentResponseAction.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check - * the instance parameter is valid against the oneOf child schemas: - * CheckoutAwaitAction, CheckoutBankTransferAction, CheckoutDelegatedAuthenticationAction, CheckoutNativeRedirectAction, CheckoutQrCodeAction, CheckoutRedirectAction, CheckoutSDKAction, CheckoutThreeDS2Action, CheckoutVoucherAction - * - * It could be an instance of the 'oneOf' schemas. - * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(CheckoutAwaitAction.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + public PaymentResponseAction deserialize(JsonParser jp, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize CheckoutAwaitAction + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(CheckoutAwaitAction.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutAwaitAction.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CheckoutAwaitAction'"); + } } - - if (JSON.isInstanceOf(CheckoutBankTransferAction.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CheckoutAwaitAction'", e); + } + + // deserialize CheckoutBankTransferAction + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(CheckoutBankTransferAction.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(CheckoutBankTransferAction.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CheckoutBankTransferAction'"); + } } - - if (JSON.isInstanceOf(CheckoutDelegatedAuthenticationAction.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CheckoutBankTransferAction'", e); + } + + // deserialize CheckoutDelegatedAuthenticationAction + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(CheckoutDelegatedAuthenticationAction.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()) + .readValueAs(CheckoutDelegatedAuthenticationAction.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log( + Level.FINER, "Input data matches schema 'CheckoutDelegatedAuthenticationAction'"); + } } - - if (JSON.isInstanceOf(CheckoutNativeRedirectAction.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log( + Level.FINER, + "Input data does not match schema 'CheckoutDelegatedAuthenticationAction'", + e); + } + + // deserialize CheckoutNativeRedirectAction + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(CheckoutNativeRedirectAction.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(CheckoutNativeRedirectAction.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CheckoutNativeRedirectAction'"); + } } - - if (JSON.isInstanceOf(CheckoutQrCodeAction.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CheckoutNativeRedirectAction'", e); + } + + // deserialize CheckoutQrCodeAction + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(CheckoutQrCodeAction.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutQrCodeAction.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CheckoutQrCodeAction'"); + } } - - if (JSON.isInstanceOf(CheckoutRedirectAction.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CheckoutQrCodeAction'", e); + } + + // deserialize CheckoutRedirectAction + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(CheckoutRedirectAction.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutRedirectAction.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CheckoutRedirectAction'"); + } } - - if (JSON.isInstanceOf(CheckoutSDKAction.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CheckoutRedirectAction'", e); + } + + // deserialize CheckoutSDKAction + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(CheckoutSDKAction.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutSDKAction.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CheckoutSDKAction'"); + } } - - if (JSON.isInstanceOf(CheckoutThreeDS2Action.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CheckoutSDKAction'", e); + } + + // deserialize CheckoutThreeDS2Action + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(CheckoutThreeDS2Action.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutThreeDS2Action.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CheckoutThreeDS2Action'"); + } } - - if (JSON.isInstanceOf(CheckoutVoucherAction.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CheckoutThreeDS2Action'", e); + } + + // deserialize CheckoutVoucherAction + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(CheckoutVoucherAction.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutVoucherAction.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CheckoutVoucherAction'"); + } } - - throw new RuntimeException("Invalid instance type. Must be CheckoutAwaitAction, CheckoutBankTransferAction, CheckoutDelegatedAuthenticationAction, CheckoutNativeRedirectAction, CheckoutQrCodeAction, CheckoutRedirectAction, CheckoutSDKAction, CheckoutThreeDS2Action, CheckoutVoucherAction"); + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CheckoutVoucherAction'", e); + } + + if (match == 1) { + PaymentResponseAction ret = new PaymentResponseAction(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException( + String.format( + "Failed deserialization for PaymentResponseAction: %d classes match result, expected 1", + match)); } - /** - * Get the actual instance, which can be the following: - * CheckoutAwaitAction, CheckoutBankTransferAction, CheckoutDelegatedAuthenticationAction, CheckoutNativeRedirectAction, CheckoutQrCodeAction, CheckoutRedirectAction, CheckoutSDKAction, CheckoutThreeDS2Action, CheckoutVoucherAction - * - * @return The actual instance (CheckoutAwaitAction, CheckoutBankTransferAction, CheckoutDelegatedAuthenticationAction, CheckoutNativeRedirectAction, CheckoutQrCodeAction, CheckoutRedirectAction, CheckoutSDKAction, CheckoutThreeDS2Action, CheckoutVoucherAction) - */ + /** Handle deserialization of the 'null' value. */ @Override - public Object getActualInstance() { - return super.getActualInstance(); + public PaymentResponseAction getNullValue(DeserializationContext ctxt) + throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "PaymentResponseAction cannot be null"); } - - /** - * Get the actual instance of `CheckoutAwaitAction`. If the actual instance is not `CheckoutAwaitAction`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CheckoutAwaitAction` - * @throws ClassCastException if the instance is not `CheckoutAwaitAction` - */ - public CheckoutAwaitAction getCheckoutAwaitAction() throws ClassCastException { - return (CheckoutAwaitAction)super.getActualInstance(); + } + + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public PaymentResponseAction() { + super("oneOf", Boolean.FALSE); + } + + public PaymentResponseAction(CheckoutAwaitAction o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public PaymentResponseAction(CheckoutBankTransferAction o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public PaymentResponseAction(CheckoutDelegatedAuthenticationAction o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public PaymentResponseAction(CheckoutNativeRedirectAction o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public PaymentResponseAction(CheckoutQrCodeAction o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public PaymentResponseAction(CheckoutRedirectAction o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public PaymentResponseAction(CheckoutSDKAction o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public PaymentResponseAction(CheckoutThreeDS2Action o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public PaymentResponseAction(CheckoutVoucherAction o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("CheckoutAwaitAction", new GenericType() {}); + schemas.put("CheckoutBankTransferAction", new GenericType() {}); + schemas.put( + "CheckoutDelegatedAuthenticationAction", + new GenericType() {}); + schemas.put("CheckoutNativeRedirectAction", new GenericType() {}); + schemas.put("CheckoutQrCodeAction", new GenericType() {}); + schemas.put("CheckoutRedirectAction", new GenericType() {}); + schemas.put("CheckoutSDKAction", new GenericType() {}); + schemas.put("CheckoutThreeDS2Action", new GenericType() {}); + schemas.put("CheckoutVoucherAction", new GenericType() {}); + JSON.registerDescendants(PaymentResponseAction.class, Collections.unmodifiableMap(schemas)); + } + + @Override + public Map> getSchemas() { + return PaymentResponseAction.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check the instance parameter is valid + * against the oneOf child schemas: CheckoutAwaitAction, CheckoutBankTransferAction, + * CheckoutDelegatedAuthenticationAction, CheckoutNativeRedirectAction, CheckoutQrCodeAction, + * CheckoutRedirectAction, CheckoutSDKAction, CheckoutThreeDS2Action, CheckoutVoucherAction + * + *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a + * composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(CheckoutAwaitAction.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `CheckoutBankTransferAction`. If the actual instance is not `CheckoutBankTransferAction`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CheckoutBankTransferAction` - * @throws ClassCastException if the instance is not `CheckoutBankTransferAction` - */ - public CheckoutBankTransferAction getCheckoutBankTransferAction() throws ClassCastException { - return (CheckoutBankTransferAction)super.getActualInstance(); + if (JSON.isInstanceOf(CheckoutBankTransferAction.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `CheckoutDelegatedAuthenticationAction`. If the actual instance is not `CheckoutDelegatedAuthenticationAction`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CheckoutDelegatedAuthenticationAction` - * @throws ClassCastException if the instance is not `CheckoutDelegatedAuthenticationAction` - */ - public CheckoutDelegatedAuthenticationAction getCheckoutDelegatedAuthenticationAction() throws ClassCastException { - return (CheckoutDelegatedAuthenticationAction)super.getActualInstance(); + if (JSON.isInstanceOf(CheckoutDelegatedAuthenticationAction.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `CheckoutNativeRedirectAction`. If the actual instance is not `CheckoutNativeRedirectAction`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CheckoutNativeRedirectAction` - * @throws ClassCastException if the instance is not `CheckoutNativeRedirectAction` - */ - public CheckoutNativeRedirectAction getCheckoutNativeRedirectAction() throws ClassCastException { - return (CheckoutNativeRedirectAction)super.getActualInstance(); + if (JSON.isInstanceOf(CheckoutNativeRedirectAction.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `CheckoutQrCodeAction`. If the actual instance is not `CheckoutQrCodeAction`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CheckoutQrCodeAction` - * @throws ClassCastException if the instance is not `CheckoutQrCodeAction` - */ - public CheckoutQrCodeAction getCheckoutQrCodeAction() throws ClassCastException { - return (CheckoutQrCodeAction)super.getActualInstance(); + if (JSON.isInstanceOf(CheckoutQrCodeAction.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `CheckoutRedirectAction`. If the actual instance is not `CheckoutRedirectAction`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CheckoutRedirectAction` - * @throws ClassCastException if the instance is not `CheckoutRedirectAction` - */ - public CheckoutRedirectAction getCheckoutRedirectAction() throws ClassCastException { - return (CheckoutRedirectAction)super.getActualInstance(); + if (JSON.isInstanceOf(CheckoutRedirectAction.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `CheckoutSDKAction`. If the actual instance is not `CheckoutSDKAction`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CheckoutSDKAction` - * @throws ClassCastException if the instance is not `CheckoutSDKAction` - */ - public CheckoutSDKAction getCheckoutSDKAction() throws ClassCastException { - return (CheckoutSDKAction)super.getActualInstance(); + if (JSON.isInstanceOf(CheckoutSDKAction.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `CheckoutThreeDS2Action`. If the actual instance is not `CheckoutThreeDS2Action`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CheckoutThreeDS2Action` - * @throws ClassCastException if the instance is not `CheckoutThreeDS2Action` - */ - public CheckoutThreeDS2Action getCheckoutThreeDS2Action() throws ClassCastException { - return (CheckoutThreeDS2Action)super.getActualInstance(); - } - - /** - * Get the actual instance of `CheckoutVoucherAction`. If the actual instance is not `CheckoutVoucherAction`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CheckoutVoucherAction` - * @throws ClassCastException if the instance is not `CheckoutVoucherAction` - */ - public CheckoutVoucherAction getCheckoutVoucherAction() throws ClassCastException { - return (CheckoutVoucherAction)super.getActualInstance(); - } - - - /** - * Create an instance of PaymentResponseAction given an JSON string - * - * @param jsonString JSON string - * @return An instance of PaymentResponseAction - * @throws IOException if the JSON string is invalid with respect to PaymentResponseAction - */ - public static PaymentResponseAction fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, PaymentResponseAction.class); + if (JSON.isInstanceOf(CheckoutThreeDS2Action.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Convert an instance of PaymentResponseAction to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); + if (JSON.isInstanceOf(CheckoutVoucherAction.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } + throw new RuntimeException( + "Invalid instance type. Must be CheckoutAwaitAction, CheckoutBankTransferAction, CheckoutDelegatedAuthenticationAction, CheckoutNativeRedirectAction, CheckoutQrCodeAction, CheckoutRedirectAction, CheckoutSDKAction, CheckoutThreeDS2Action, CheckoutVoucherAction"); + } + + /** + * Get the actual instance, which can be the following: CheckoutAwaitAction, + * CheckoutBankTransferAction, CheckoutDelegatedAuthenticationAction, + * CheckoutNativeRedirectAction, CheckoutQrCodeAction, CheckoutRedirectAction, CheckoutSDKAction, + * CheckoutThreeDS2Action, CheckoutVoucherAction + * + * @return The actual instance (CheckoutAwaitAction, CheckoutBankTransferAction, + * CheckoutDelegatedAuthenticationAction, CheckoutNativeRedirectAction, CheckoutQrCodeAction, + * CheckoutRedirectAction, CheckoutSDKAction, CheckoutThreeDS2Action, CheckoutVoucherAction) + */ + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `CheckoutAwaitAction`. If the actual instance is not + * `CheckoutAwaitAction`, the ClassCastException will be thrown. + * + * @return The actual instance of `CheckoutAwaitAction` + * @throws ClassCastException if the instance is not `CheckoutAwaitAction` + */ + public CheckoutAwaitAction getCheckoutAwaitAction() throws ClassCastException { + return (CheckoutAwaitAction) super.getActualInstance(); + } + + /** + * Get the actual instance of `CheckoutBankTransferAction`. If the actual instance is not + * `CheckoutBankTransferAction`, the ClassCastException will be thrown. + * + * @return The actual instance of `CheckoutBankTransferAction` + * @throws ClassCastException if the instance is not `CheckoutBankTransferAction` + */ + public CheckoutBankTransferAction getCheckoutBankTransferAction() throws ClassCastException { + return (CheckoutBankTransferAction) super.getActualInstance(); + } + + /** + * Get the actual instance of `CheckoutDelegatedAuthenticationAction`. If the actual instance is + * not `CheckoutDelegatedAuthenticationAction`, the ClassCastException will be thrown. + * + * @return The actual instance of `CheckoutDelegatedAuthenticationAction` + * @throws ClassCastException if the instance is not `CheckoutDelegatedAuthenticationAction` + */ + public CheckoutDelegatedAuthenticationAction getCheckoutDelegatedAuthenticationAction() + throws ClassCastException { + return (CheckoutDelegatedAuthenticationAction) super.getActualInstance(); + } + + /** + * Get the actual instance of `CheckoutNativeRedirectAction`. If the actual instance is not + * `CheckoutNativeRedirectAction`, the ClassCastException will be thrown. + * + * @return The actual instance of `CheckoutNativeRedirectAction` + * @throws ClassCastException if the instance is not `CheckoutNativeRedirectAction` + */ + public CheckoutNativeRedirectAction getCheckoutNativeRedirectAction() throws ClassCastException { + return (CheckoutNativeRedirectAction) super.getActualInstance(); + } + + /** + * Get the actual instance of `CheckoutQrCodeAction`. If the actual instance is not + * `CheckoutQrCodeAction`, the ClassCastException will be thrown. + * + * @return The actual instance of `CheckoutQrCodeAction` + * @throws ClassCastException if the instance is not `CheckoutQrCodeAction` + */ + public CheckoutQrCodeAction getCheckoutQrCodeAction() throws ClassCastException { + return (CheckoutQrCodeAction) super.getActualInstance(); + } + + /** + * Get the actual instance of `CheckoutRedirectAction`. If the actual instance is not + * `CheckoutRedirectAction`, the ClassCastException will be thrown. + * + * @return The actual instance of `CheckoutRedirectAction` + * @throws ClassCastException if the instance is not `CheckoutRedirectAction` + */ + public CheckoutRedirectAction getCheckoutRedirectAction() throws ClassCastException { + return (CheckoutRedirectAction) super.getActualInstance(); + } + + /** + * Get the actual instance of `CheckoutSDKAction`. If the actual instance is not + * `CheckoutSDKAction`, the ClassCastException will be thrown. + * + * @return The actual instance of `CheckoutSDKAction` + * @throws ClassCastException if the instance is not `CheckoutSDKAction` + */ + public CheckoutSDKAction getCheckoutSDKAction() throws ClassCastException { + return (CheckoutSDKAction) super.getActualInstance(); + } + + /** + * Get the actual instance of `CheckoutThreeDS2Action`. If the actual instance is not + * `CheckoutThreeDS2Action`, the ClassCastException will be thrown. + * + * @return The actual instance of `CheckoutThreeDS2Action` + * @throws ClassCastException if the instance is not `CheckoutThreeDS2Action` + */ + public CheckoutThreeDS2Action getCheckoutThreeDS2Action() throws ClassCastException { + return (CheckoutThreeDS2Action) super.getActualInstance(); + } + + /** + * Get the actual instance of `CheckoutVoucherAction`. If the actual instance is not + * `CheckoutVoucherAction`, the ClassCastException will be thrown. + * + * @return The actual instance of `CheckoutVoucherAction` + * @throws ClassCastException if the instance is not `CheckoutVoucherAction` + */ + public CheckoutVoucherAction getCheckoutVoucherAction() throws ClassCastException { + return (CheckoutVoucherAction) super.getActualInstance(); + } + + /** + * Create an instance of PaymentResponseAction given an JSON string + * + * @param jsonString JSON string + * @return An instance of PaymentResponseAction + * @throws IOException if the JSON string is invalid with respect to PaymentResponseAction + */ + public static PaymentResponseAction fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, PaymentResponseAction.class); + } + + /** + * Convert an instance of PaymentResponseAction to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentReversalRequest.java b/src/main/java/com/adyen/model/checkout/PaymentReversalRequest.java index 4eeed3b10..87c62b92d 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentReversalRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentReversalRequest.java @@ -2,40 +2,28 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.ApplicationInfo; -import com.adyen.model.checkout.EnhancedSchemeData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * PaymentReversalRequest - */ +/** PaymentReversalRequest */ @JsonPropertyOrder({ PaymentReversalRequest.JSON_PROPERTY_APPLICATION_INFO, PaymentReversalRequest.JSON_PROPERTY_ENHANCED_SCHEME_DATA, PaymentReversalRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, PaymentReversalRequest.JSON_PROPERTY_REFERENCE }) - public class PaymentReversalRequest { public static final String JSON_PROPERTY_APPLICATION_INFO = "applicationInfo"; private ApplicationInfo applicationInfo; @@ -49,13 +37,12 @@ public class PaymentReversalRequest { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public PaymentReversalRequest() { - } + public PaymentReversalRequest() {} /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo * @return the current {@code PaymentReversalRequest} instance, allowing for method chaining */ public PaymentReversalRequest applicationInfo(ApplicationInfo applicationInfo) { @@ -65,7 +52,8 @@ public PaymentReversalRequest applicationInfo(ApplicationInfo applicationInfo) { /** * Get applicationInfo - * @return applicationInfo + * + * @return applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -76,7 +64,7 @@ public ApplicationInfo getApplicationInfo() { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,7 +75,7 @@ public void setApplicationInfo(ApplicationInfo applicationInfo) { /** * enhancedSchemeData * - * @param enhancedSchemeData + * @param enhancedSchemeData * @return the current {@code PaymentReversalRequest} instance, allowing for method chaining */ public PaymentReversalRequest enhancedSchemeData(EnhancedSchemeData enhancedSchemeData) { @@ -97,7 +85,8 @@ public PaymentReversalRequest enhancedSchemeData(EnhancedSchemeData enhancedSche /** * Get enhancedSchemeData - * @return enhancedSchemeData + * + * @return enhancedSchemeData */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,7 +97,7 @@ public EnhancedSchemeData getEnhancedSchemeData() { /** * enhancedSchemeData * - * @param enhancedSchemeData + * @param enhancedSchemeData */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,6 +118,7 @@ public PaymentReversalRequest merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. + * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -161,6 +151,7 @@ public PaymentReversalRequest reference(String reference) { /** * Your reference for the reversal request. Maximum length: 80 characters. + * * @return reference Your reference for the reversal request. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -180,9 +171,7 @@ public void setReference(String reference) { this.reference = reference; } - /** - * Return true if this PaymentReversalRequest object is equal to o. - */ + /** Return true if this PaymentReversalRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,10 +181,10 @@ public boolean equals(Object o) { return false; } PaymentReversalRequest paymentReversalRequest = (PaymentReversalRequest) o; - return Objects.equals(this.applicationInfo, paymentReversalRequest.applicationInfo) && - Objects.equals(this.enhancedSchemeData, paymentReversalRequest.enhancedSchemeData) && - Objects.equals(this.merchantAccount, paymentReversalRequest.merchantAccount) && - Objects.equals(this.reference, paymentReversalRequest.reference); + return Objects.equals(this.applicationInfo, paymentReversalRequest.applicationInfo) + && Objects.equals(this.enhancedSchemeData, paymentReversalRequest.enhancedSchemeData) + && Objects.equals(this.merchantAccount, paymentReversalRequest.merchantAccount) + && Objects.equals(this.reference, paymentReversalRequest.reference); } @Override @@ -216,8 +205,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -226,21 +214,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentReversalRequest given an JSON string * * @param jsonString JSON string * @return An instance of PaymentReversalRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentReversalRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentReversalRequest */ public static PaymentReversalRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentReversalRequest.class); } -/** - * Convert an instance of PaymentReversalRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentReversalRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentReversalResponse.java b/src/main/java/com/adyen/model/checkout/PaymentReversalResponse.java index b443fa507..7fd0b3f2f 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentReversalResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentReversalResponse.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * PaymentReversalResponse - */ +/** PaymentReversalResponse */ @JsonPropertyOrder({ PaymentReversalResponse.JSON_PROPERTY_MERCHANT_ACCOUNT, PaymentReversalResponse.JSON_PROPERTY_PAYMENT_PSP_REFERENCE, @@ -34,7 +29,6 @@ PaymentReversalResponse.JSON_PROPERTY_REFERENCE, PaymentReversalResponse.JSON_PROPERTY_STATUS }) - public class PaymentReversalResponse { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; @@ -48,11 +42,8 @@ public class PaymentReversalResponse { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - /** - * The status of your request. This will always have the value **received**. - */ + /** The status of your request. This will always have the value **received**. */ public enum StatusEnum { - RECEIVED(String.valueOf("received")); private static final Logger LOG = Logger.getLogger(StatusEnum.class.getName()); @@ -60,7 +51,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -81,7 +72,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -89,8 +84,7 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; - public PaymentReversalResponse() { - } + public PaymentReversalResponse() {} /** * The merchant account that is used to process the payment. @@ -105,6 +99,7 @@ public PaymentReversalResponse merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. + * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -125,9 +120,13 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to reverse. + * The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment to reverse. * - * @param paymentPspReference The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to reverse. + * @param paymentPspReference The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment to reverse. * @return the current {@code PaymentReversalResponse} instance, allowing for method chaining */ public PaymentReversalResponse paymentPspReference(String paymentPspReference) { @@ -136,8 +135,13 @@ public PaymentReversalResponse paymentPspReference(String paymentPspReference) { } /** - * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to reverse. - * @return paymentPspReference The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to reverse. + * The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment to reverse. + * + * @return paymentPspReference The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment to reverse. */ @JsonProperty(JSON_PROPERTY_PAYMENT_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,9 +150,13 @@ public String getPaymentPspReference() { } /** - * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to reverse. + * The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment to reverse. * - * @param paymentPspReference The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to reverse. + * @param paymentPspReference The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment to reverse. */ @JsonProperty(JSON_PROPERTY_PAYMENT_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,6 +177,7 @@ public PaymentReversalResponse pspReference(String pspReference) { /** * Adyen's 16-character reference associated with the reversal request. + * * @return pspReference Adyen's 16-character reference associated with the reversal request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -201,6 +210,7 @@ public PaymentReversalResponse reference(String reference) { /** * Your reference for the reversal request. + * * @return reference Your reference for the reversal request. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -233,6 +243,7 @@ public PaymentReversalResponse status(StatusEnum status) { /** * The status of your request. This will always have the value **received**. + * * @return status The status of your request. This will always have the value **received**. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -252,9 +263,7 @@ public void setStatus(StatusEnum status) { this.status = status; } - /** - * Return true if this PaymentReversalResponse object is equal to o. - */ + /** Return true if this PaymentReversalResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -264,11 +273,11 @@ public boolean equals(Object o) { return false; } PaymentReversalResponse paymentReversalResponse = (PaymentReversalResponse) o; - return Objects.equals(this.merchantAccount, paymentReversalResponse.merchantAccount) && - Objects.equals(this.paymentPspReference, paymentReversalResponse.paymentPspReference) && - Objects.equals(this.pspReference, paymentReversalResponse.pspReference) && - Objects.equals(this.reference, paymentReversalResponse.reference) && - Objects.equals(this.status, paymentReversalResponse.status); + return Objects.equals(this.merchantAccount, paymentReversalResponse.merchantAccount) + && Objects.equals(this.paymentPspReference, paymentReversalResponse.paymentPspReference) + && Objects.equals(this.pspReference, paymentReversalResponse.pspReference) + && Objects.equals(this.reference, paymentReversalResponse.reference) + && Objects.equals(this.status, paymentReversalResponse.status); } @Override @@ -281,7 +290,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentReversalResponse {\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" paymentPspReference: ").append(toIndentedString(paymentPspReference)).append("\n"); + sb.append(" paymentPspReference: ") + .append(toIndentedString(paymentPspReference)) + .append("\n"); sb.append(" pspReference: ").append(toIndentedString(pspReference)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); @@ -290,8 +301,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -300,21 +310,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentReversalResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaymentReversalResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentReversalResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentReversalResponse */ public static PaymentReversalResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentReversalResponse.class); } -/** - * Convert an instance of PaymentReversalResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentReversalResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaypalUpdateOrderRequest.java b/src/main/java/com/adyen/model/checkout/PaypalUpdateOrderRequest.java index cb9103edb..c3acb76c5 100644 --- a/src/main/java/com/adyen/model/checkout/PaypalUpdateOrderRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaypalUpdateOrderRequest.java @@ -2,36 +2,24 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Amount; -import com.adyen.model.checkout.DeliveryMethod; -import com.adyen.model.checkout.TaxTotal; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * PaypalUpdateOrderRequest - */ +/** PaypalUpdateOrderRequest */ @JsonPropertyOrder({ PaypalUpdateOrderRequest.JSON_PROPERTY_AMOUNT, PaypalUpdateOrderRequest.JSON_PROPERTY_DELIVERY_METHODS, @@ -40,7 +28,6 @@ PaypalUpdateOrderRequest.JSON_PROPERTY_SESSION_ID, PaypalUpdateOrderRequest.JSON_PROPERTY_TAX_TOTAL }) - public class PaypalUpdateOrderRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -60,13 +47,12 @@ public class PaypalUpdateOrderRequest { public static final String JSON_PROPERTY_TAX_TOTAL = "taxTotal"; private TaxTotal taxTotal; - public PaypalUpdateOrderRequest() { - } + public PaypalUpdateOrderRequest() {} /** * amount * - * @param amount + * @param amount * @return the current {@code PaypalUpdateOrderRequest} instance, allowing for method chaining */ public PaypalUpdateOrderRequest amount(Amount amount) { @@ -76,7 +62,8 @@ public PaypalUpdateOrderRequest amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,7 +74,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,6 +103,7 @@ public PaypalUpdateOrderRequest addDeliveryMethodsItem(DeliveryMethod deliveryMe /** * The list of new delivery methods and the cost of each. + * * @return deliveryMethods The list of new delivery methods and the cost of each. */ @JsonProperty(JSON_PROPERTY_DELIVERY_METHODS) @@ -136,9 +124,11 @@ public void setDeliveryMethods(List deliveryMethods) { } /** - * The `paymentData` from the client side. This value changes every time you make a `/paypal/updateOrder` request. + * The `paymentData` from the client side. This value changes every time you make a + * `/paypal/updateOrder` request. * - * @param paymentData The `paymentData` from the client side. This value changes every time you make a `/paypal/updateOrder` request. + * @param paymentData The `paymentData` from the client side. This value changes every + * time you make a `/paypal/updateOrder` request. * @return the current {@code PaypalUpdateOrderRequest} instance, allowing for method chaining */ public PaypalUpdateOrderRequest paymentData(String paymentData) { @@ -147,8 +137,11 @@ public PaypalUpdateOrderRequest paymentData(String paymentData) { } /** - * The `paymentData` from the client side. This value changes every time you make a `/paypal/updateOrder` request. - * @return paymentData The `paymentData` from the client side. This value changes every time you make a `/paypal/updateOrder` request. + * The `paymentData` from the client side. This value changes every time you make a + * `/paypal/updateOrder` request. + * + * @return paymentData The `paymentData` from the client side. This value changes every + * time you make a `/paypal/updateOrder` request. */ @JsonProperty(JSON_PROPERTY_PAYMENT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -157,9 +150,11 @@ public String getPaymentData() { } /** - * The `paymentData` from the client side. This value changes every time you make a `/paypal/updateOrder` request. + * The `paymentData` from the client side. This value changes every time you make a + * `/paypal/updateOrder` request. * - * @param paymentData The `paymentData` from the client side. This value changes every time you make a `/paypal/updateOrder` request. + * @param paymentData The `paymentData` from the client side. This value changes every + * time you make a `/paypal/updateOrder` request. */ @JsonProperty(JSON_PROPERTY_PAYMENT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -170,7 +165,8 @@ public void setPaymentData(String paymentData) { /** * The original `pspReference` from the `/payments` response. * - * @param pspReference The original `pspReference` from the `/payments` response. + * @param pspReference The original `pspReference` from the `/payments` + * response. * @return the current {@code PaypalUpdateOrderRequest} instance, allowing for method chaining */ public PaypalUpdateOrderRequest pspReference(String pspReference) { @@ -180,7 +176,9 @@ public PaypalUpdateOrderRequest pspReference(String pspReference) { /** * The original `pspReference` from the `/payments` response. - * @return pspReference The original `pspReference` from the `/payments` response. + * + * @return pspReference The original `pspReference` from the `/payments` + * response. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,7 +189,8 @@ public String getPspReference() { /** * The original `pspReference` from the `/payments` response. * - * @param pspReference The original `pspReference` from the `/payments` response. + * @param pspReference The original `pspReference` from the `/payments` + * response. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -212,6 +211,7 @@ public PaypalUpdateOrderRequest sessionId(String sessionId) { /** * The original `sessionId` from the `/sessions` response. + * * @return sessionId The original `sessionId` from the `/sessions` response. */ @JsonProperty(JSON_PROPERTY_SESSION_ID) @@ -234,7 +234,7 @@ public void setSessionId(String sessionId) { /** * taxTotal * - * @param taxTotal + * @param taxTotal * @return the current {@code PaypalUpdateOrderRequest} instance, allowing for method chaining */ public PaypalUpdateOrderRequest taxTotal(TaxTotal taxTotal) { @@ -244,7 +244,8 @@ public PaypalUpdateOrderRequest taxTotal(TaxTotal taxTotal) { /** * Get taxTotal - * @return taxTotal + * + * @return taxTotal */ @JsonProperty(JSON_PROPERTY_TAX_TOTAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -255,7 +256,7 @@ public TaxTotal getTaxTotal() { /** * taxTotal * - * @param taxTotal + * @param taxTotal */ @JsonProperty(JSON_PROPERTY_TAX_TOTAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -263,9 +264,7 @@ public void setTaxTotal(TaxTotal taxTotal) { this.taxTotal = taxTotal; } - /** - * Return true if this PaypalUpdateOrderRequest object is equal to o. - */ + /** Return true if this PaypalUpdateOrderRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -275,12 +274,12 @@ public boolean equals(Object o) { return false; } PaypalUpdateOrderRequest paypalUpdateOrderRequest = (PaypalUpdateOrderRequest) o; - return Objects.equals(this.amount, paypalUpdateOrderRequest.amount) && - Objects.equals(this.deliveryMethods, paypalUpdateOrderRequest.deliveryMethods) && - Objects.equals(this.paymentData, paypalUpdateOrderRequest.paymentData) && - Objects.equals(this.pspReference, paypalUpdateOrderRequest.pspReference) && - Objects.equals(this.sessionId, paypalUpdateOrderRequest.sessionId) && - Objects.equals(this.taxTotal, paypalUpdateOrderRequest.taxTotal); + return Objects.equals(this.amount, paypalUpdateOrderRequest.amount) + && Objects.equals(this.deliveryMethods, paypalUpdateOrderRequest.deliveryMethods) + && Objects.equals(this.paymentData, paypalUpdateOrderRequest.paymentData) + && Objects.equals(this.pspReference, paypalUpdateOrderRequest.pspReference) + && Objects.equals(this.sessionId, paypalUpdateOrderRequest.sessionId) + && Objects.equals(this.taxTotal, paypalUpdateOrderRequest.taxTotal); } @Override @@ -303,8 +302,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -313,21 +311,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaypalUpdateOrderRequest given an JSON string * * @param jsonString JSON string * @return An instance of PaypalUpdateOrderRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to PaypalUpdateOrderRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaypalUpdateOrderRequest */ - public static PaypalUpdateOrderRequest fromJson(String jsonString) throws JsonProcessingException { + public static PaypalUpdateOrderRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaypalUpdateOrderRequest.class); } -/** - * Convert an instance of PaypalUpdateOrderRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaypalUpdateOrderRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PaypalUpdateOrderResponse.java b/src/main/java/com/adyen/model/checkout/PaypalUpdateOrderResponse.java index 5f3d0ed91..e12df3805 100644 --- a/src/main/java/com/adyen/model/checkout/PaypalUpdateOrderResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaypalUpdateOrderResponse.java @@ -2,45 +2,39 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * PaypalUpdateOrderResponse - */ +/** PaypalUpdateOrderResponse */ @JsonPropertyOrder({ PaypalUpdateOrderResponse.JSON_PROPERTY_PAYMENT_DATA, PaypalUpdateOrderResponse.JSON_PROPERTY_STATUS }) - public class PaypalUpdateOrderResponse { public static final String JSON_PROPERTY_PAYMENT_DATA = "paymentData"; private String paymentData; /** - * The status of the request. This indicates whether the order was successfully updated with PayPal. + * The status of the request. This indicates whether the order was successfully updated with + * PayPal. */ public enum StatusEnum { - ERROR(String.valueOf("error")), SUCCESS(String.valueOf("success")); @@ -50,7 +44,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -71,7 +65,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -79,8 +77,7 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; - public PaypalUpdateOrderResponse() { - } + public PaypalUpdateOrderResponse() {} /** * The updated paymentData. @@ -95,6 +92,7 @@ public PaypalUpdateOrderResponse paymentData(String paymentData) { /** * The updated paymentData. + * * @return paymentData The updated paymentData. */ @JsonProperty(JSON_PROPERTY_PAYMENT_DATA) @@ -115,9 +113,11 @@ public void setPaymentData(String paymentData) { } /** - * The status of the request. This indicates whether the order was successfully updated with PayPal. + * The status of the request. This indicates whether the order was successfully updated with + * PayPal. * - * @param status The status of the request. This indicates whether the order was successfully updated with PayPal. + * @param status The status of the request. This indicates whether the order was successfully + * updated with PayPal. * @return the current {@code PaypalUpdateOrderResponse} instance, allowing for method chaining */ public PaypalUpdateOrderResponse status(StatusEnum status) { @@ -126,8 +126,11 @@ public PaypalUpdateOrderResponse status(StatusEnum status) { } /** - * The status of the request. This indicates whether the order was successfully updated with PayPal. - * @return status The status of the request. This indicates whether the order was successfully updated with PayPal. + * The status of the request. This indicates whether the order was successfully updated with + * PayPal. + * + * @return status The status of the request. This indicates whether the order was successfully + * updated with PayPal. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,9 +139,11 @@ public StatusEnum getStatus() { } /** - * The status of the request. This indicates whether the order was successfully updated with PayPal. + * The status of the request. This indicates whether the order was successfully updated with + * PayPal. * - * @param status The status of the request. This indicates whether the order was successfully updated with PayPal. + * @param status The status of the request. This indicates whether the order was successfully + * updated with PayPal. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,9 +151,7 @@ public void setStatus(StatusEnum status) { this.status = status; } - /** - * Return true if this PaypalUpdateOrderResponse object is equal to o. - */ + /** Return true if this PaypalUpdateOrderResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -158,8 +161,8 @@ public boolean equals(Object o) { return false; } PaypalUpdateOrderResponse paypalUpdateOrderResponse = (PaypalUpdateOrderResponse) o; - return Objects.equals(this.paymentData, paypalUpdateOrderResponse.paymentData) && - Objects.equals(this.status, paypalUpdateOrderResponse.status); + return Objects.equals(this.paymentData, paypalUpdateOrderResponse.paymentData) + && Objects.equals(this.status, paypalUpdateOrderResponse.status); } @Override @@ -178,8 +181,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -188,21 +190,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaypalUpdateOrderResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaypalUpdateOrderResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to PaypalUpdateOrderResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaypalUpdateOrderResponse */ - public static PaypalUpdateOrderResponse fromJson(String jsonString) throws JsonProcessingException { + public static PaypalUpdateOrderResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaypalUpdateOrderResponse.class); } -/** - * Convert an instance of PaypalUpdateOrderResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaypalUpdateOrderResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Phone.java b/src/main/java/com/adyen/model/checkout/Phone.java index 01cda5b0a..2315e4ae3 100644 --- a/src/main/java/com/adyen/model/checkout/Phone.java +++ b/src/main/java/com/adyen/model/checkout/Phone.java @@ -2,36 +2,23 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Phone - */ -@JsonPropertyOrder({ - Phone.JSON_PROPERTY_CC, - Phone.JSON_PROPERTY_SUBSCRIBER -}) - +/** Phone */ +@JsonPropertyOrder({Phone.JSON_PROPERTY_CC, Phone.JSON_PROPERTY_SUBSCRIBER}) public class Phone { public static final String JSON_PROPERTY_CC = "cc"; private String cc; @@ -39,8 +26,7 @@ public class Phone { public static final String JSON_PROPERTY_SUBSCRIBER = "subscriber"; private String subscriber; - public Phone() { - } + public Phone() {} /** * Country code. Length: 1–3 digits. @@ -55,6 +41,7 @@ public Phone cc(String cc) { /** * Country code. Length: 1–3 digits. + * * @return cc Country code. Length: 1–3 digits. */ @JsonProperty(JSON_PROPERTY_CC) @@ -75,9 +62,9 @@ public void setCc(String cc) { } /** - * Subscriber number. Length: 4-15 digits. + * Subscriber number. Length: 4-15 digits. * - * @param subscriber Subscriber number. Length: 4-15 digits. + * @param subscriber Subscriber number. Length: 4-15 digits. * @return the current {@code Phone} instance, allowing for method chaining */ public Phone subscriber(String subscriber) { @@ -86,8 +73,9 @@ public Phone subscriber(String subscriber) { } /** - * Subscriber number. Length: 4-15 digits. - * @return subscriber Subscriber number. Length: 4-15 digits. + * Subscriber number. Length: 4-15 digits. + * + * @return subscriber Subscriber number. Length: 4-15 digits. */ @JsonProperty(JSON_PROPERTY_SUBSCRIBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +84,9 @@ public String getSubscriber() { } /** - * Subscriber number. Length: 4-15 digits. + * Subscriber number. Length: 4-15 digits. * - * @param subscriber Subscriber number. Length: 4-15 digits. + * @param subscriber Subscriber number. Length: 4-15 digits. */ @JsonProperty(JSON_PROPERTY_SUBSCRIBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +94,7 @@ public void setSubscriber(String subscriber) { this.subscriber = subscriber; } - /** - * Return true if this Phone object is equal to o. - */ + /** Return true if this Phone object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +104,7 @@ public boolean equals(Object o) { return false; } Phone phone = (Phone) o; - return Objects.equals(this.cc, phone.cc) && - Objects.equals(this.subscriber, phone.subscriber); + return Objects.equals(this.cc, phone.cc) && Objects.equals(this.subscriber, phone.subscriber); } @Override @@ -138,8 +123,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +132,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Phone given an JSON string * * @param jsonString JSON string @@ -158,11 +142,12 @@ private String toIndentedString(Object o) { public static Phone fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Phone.class); } -/** - * Convert an instance of Phone to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Phone to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PixDetails.java b/src/main/java/com/adyen/model/checkout/PixDetails.java index dc91199cb..af4e13448 100644 --- a/src/main/java/com/adyen/model/checkout/PixDetails.java +++ b/src/main/java/com/adyen/model/checkout/PixDetails.java @@ -2,32 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.PixRecurring; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * PixDetails - */ +/** PixDetails */ @JsonPropertyOrder({ PixDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, PixDetails.JSON_PROPERTY_PIX_RECURRING, @@ -35,7 +29,6 @@ PixDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, PixDetails.JSON_PROPERTY_TYPE }) - public class PixDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -50,11 +43,8 @@ public class PixDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** - * The payment method type. - */ + /** The payment method type. */ public enum TypeEnum { - PIX(String.valueOf("pix")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -62,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -83,7 +73,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -91,8 +85,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PixDetails() { - } + public PixDetails() {} /** * The checkout attempt identifier. @@ -107,6 +100,7 @@ public PixDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -129,7 +123,7 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { /** * pixRecurring * - * @param pixRecurring + * @param pixRecurring * @return the current {@code PixDetails} instance, allowing for method chaining */ public PixDetails pixRecurring(PixRecurring pixRecurring) { @@ -139,7 +133,8 @@ public PixDetails pixRecurring(PixRecurring pixRecurring) { /** * Get pixRecurring - * @return pixRecurring + * + * @return pixRecurring */ @JsonProperty(JSON_PROPERTY_PIX_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,7 +145,7 @@ public PixRecurring getPixRecurring() { /** * pixRecurring * - * @param pixRecurring + * @param pixRecurring */ @JsonProperty(JSON_PROPERTY_PIX_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,13 +154,13 @@ public void setPixRecurring(PixRecurring pixRecurring) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code PixDetails} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public PixDetails recurringDetailReference(String recurringDetailReference) { @@ -174,8 +169,11 @@ public PixDetails recurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -186,12 +184,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -201,9 +199,11 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code PixDetails} instance, allowing for method chaining */ public PixDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -212,8 +212,11 @@ public PixDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -222,9 +225,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -245,6 +250,7 @@ public PixDetails type(TypeEnum type) { /** * The payment method type. + * * @return type The payment method type. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -264,9 +270,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this PixDetails object is equal to o. - */ + /** Return true if this PixDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -276,16 +280,17 @@ public boolean equals(Object o) { return false; } PixDetails pixDetails = (PixDetails) o; - return Objects.equals(this.checkoutAttemptId, pixDetails.checkoutAttemptId) && - Objects.equals(this.pixRecurring, pixDetails.pixRecurring) && - Objects.equals(this.recurringDetailReference, pixDetails.recurringDetailReference) && - Objects.equals(this.storedPaymentMethodId, pixDetails.storedPaymentMethodId) && - Objects.equals(this.type, pixDetails.type); + return Objects.equals(this.checkoutAttemptId, pixDetails.checkoutAttemptId) + && Objects.equals(this.pixRecurring, pixDetails.pixRecurring) + && Objects.equals(this.recurringDetailReference, pixDetails.recurringDetailReference) + && Objects.equals(this.storedPaymentMethodId, pixDetails.storedPaymentMethodId) + && Objects.equals(this.type, pixDetails.type); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, pixRecurring, recurringDetailReference, storedPaymentMethodId, type); + return Objects.hash( + checkoutAttemptId, pixRecurring, recurringDetailReference, storedPaymentMethodId, type); } @Override @@ -294,16 +299,19 @@ public String toString() { sb.append("class PixDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" pixRecurring: ").append(toIndentedString(pixRecurring)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -312,7 +320,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PixDetails given an JSON string * * @param jsonString JSON string @@ -322,11 +330,12 @@ private String toIndentedString(Object o) { public static PixDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PixDetails.class); } -/** - * Convert an instance of PixDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PixDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PixRecurring.java b/src/main/java/com/adyen/model/checkout/PixRecurring.java index 4164194cb..2c146d69e 100644 --- a/src/main/java/com/adyen/model/checkout/PixRecurring.java +++ b/src/main/java/com/adyen/model/checkout/PixRecurring.java @@ -2,32 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Amount; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * PixRecurring - */ +/** PixRecurring */ @JsonPropertyOrder({ PixRecurring.JSON_PROPERTY_BILLING_DATE, PixRecurring.JSON_PROPERTY_BUSINESS_DAY_ONLY, @@ -40,7 +34,6 @@ PixRecurring.JSON_PROPERTY_RETRY_POLICY, PixRecurring.JSON_PROPERTY_STARTS_AT }) - public class PixRecurring { public static final String JSON_PROPERTY_BILLING_DATE = "billingDate"; private String billingDate; @@ -51,11 +44,8 @@ public class PixRecurring { public static final String JSON_PROPERTY_ENDS_AT = "endsAt"; private String endsAt; - /** - * The frequency at which the shopper will be charged. - */ + /** The frequency at which the shopper will be charged. */ public enum FrequencyEnum { - WEEKLY(String.valueOf("weekly")), MONTHLY(String.valueOf("monthly")), @@ -71,7 +61,7 @@ public enum FrequencyEnum { private String value; FrequencyEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -92,7 +82,11 @@ public static FrequencyEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FrequencyEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FrequencyEnum.values())); + LOG.warning( + "FrequencyEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FrequencyEnum.values())); return null; } } @@ -118,13 +112,13 @@ public static FrequencyEnum fromValue(String value) { public static final String JSON_PROPERTY_STARTS_AT = "startsAt"; private String startsAt; - public PixRecurring() { - } + public PixRecurring() {} /** * The date on which the shopper's payment method will be charged, in YYYY-MM-DD format. * - * @param billingDate The date on which the shopper's payment method will be charged, in YYYY-MM-DD format. + * @param billingDate The date on which the shopper's payment method will be charged, in + * YYYY-MM-DD format. * @return the current {@code PixRecurring} instance, allowing for method chaining */ public PixRecurring billingDate(String billingDate) { @@ -134,7 +128,9 @@ public PixRecurring billingDate(String billingDate) { /** * The date on which the shopper's payment method will be charged, in YYYY-MM-DD format. - * @return billingDate The date on which the shopper's payment method will be charged, in YYYY-MM-DD format. + * + * @return billingDate The date on which the shopper's payment method will be charged, in + * YYYY-MM-DD format. */ @JsonProperty(JSON_PROPERTY_BILLING_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,7 +141,8 @@ public String getBillingDate() { /** * The date on which the shopper's payment method will be charged, in YYYY-MM-DD format. * - * @param billingDate The date on which the shopper's payment method will be charged, in YYYY-MM-DD format. + * @param billingDate The date on which the shopper's payment method will be charged, in + * YYYY-MM-DD format. */ @JsonProperty(JSON_PROPERTY_BILLING_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -166,7 +163,9 @@ public PixRecurring businessDayOnly(Boolean businessDayOnly) { /** * Flag used to define whether liquidation can happen only on business days - * @return businessDayOnly Flag used to define whether liquidation can happen only on business days + * + * @return businessDayOnly Flag used to define whether liquidation can happen only on business + * days */ @JsonProperty(JSON_PROPERTY_BUSINESS_DAY_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,9 +185,13 @@ public void setBusinessDayOnly(Boolean businessDayOnly) { } /** - * End date of the billing plan, in YYYY-MM-DD format. The end date must align with the frequency and the start date of the billing plan. If left blank, the subscription will continue indefinitely unless it is cancelled by the shopper. + * End date of the billing plan, in YYYY-MM-DD format. The end date must align with the frequency + * and the start date of the billing plan. If left blank, the subscription will continue + * indefinitely unless it is cancelled by the shopper. * - * @param endsAt End date of the billing plan, in YYYY-MM-DD format. The end date must align with the frequency and the start date of the billing plan. If left blank, the subscription will continue indefinitely unless it is cancelled by the shopper. + * @param endsAt End date of the billing plan, in YYYY-MM-DD format. The end date must align with + * the frequency and the start date of the billing plan. If left blank, the subscription will + * continue indefinitely unless it is cancelled by the shopper. * @return the current {@code PixRecurring} instance, allowing for method chaining */ public PixRecurring endsAt(String endsAt) { @@ -197,8 +200,13 @@ public PixRecurring endsAt(String endsAt) { } /** - * End date of the billing plan, in YYYY-MM-DD format. The end date must align with the frequency and the start date of the billing plan. If left blank, the subscription will continue indefinitely unless it is cancelled by the shopper. - * @return endsAt End date of the billing plan, in YYYY-MM-DD format. The end date must align with the frequency and the start date of the billing plan. If left blank, the subscription will continue indefinitely unless it is cancelled by the shopper. + * End date of the billing plan, in YYYY-MM-DD format. The end date must align with the frequency + * and the start date of the billing plan. If left blank, the subscription will continue + * indefinitely unless it is cancelled by the shopper. + * + * @return endsAt End date of the billing plan, in YYYY-MM-DD format. The end date must align with + * the frequency and the start date of the billing plan. If left blank, the subscription will + * continue indefinitely unless it is cancelled by the shopper. */ @JsonProperty(JSON_PROPERTY_ENDS_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -207,9 +215,13 @@ public String getEndsAt() { } /** - * End date of the billing plan, in YYYY-MM-DD format. The end date must align with the frequency and the start date of the billing plan. If left blank, the subscription will continue indefinitely unless it is cancelled by the shopper. + * End date of the billing plan, in YYYY-MM-DD format. The end date must align with the frequency + * and the start date of the billing plan. If left blank, the subscription will continue + * indefinitely unless it is cancelled by the shopper. * - * @param endsAt End date of the billing plan, in YYYY-MM-DD format. The end date must align with the frequency and the start date of the billing plan. If left blank, the subscription will continue indefinitely unless it is cancelled by the shopper. + * @param endsAt End date of the billing plan, in YYYY-MM-DD format. The end date must align with + * the frequency and the start date of the billing plan. If left blank, the subscription will + * continue indefinitely unless it is cancelled by the shopper. */ @JsonProperty(JSON_PROPERTY_ENDS_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -230,6 +242,7 @@ public PixRecurring frequency(FrequencyEnum frequency) { /** * The frequency at which the shopper will be charged. + * * @return frequency The frequency at which the shopper will be charged. */ @JsonProperty(JSON_PROPERTY_FREQUENCY) @@ -252,7 +265,7 @@ public void setFrequency(FrequencyEnum frequency) { /** * minAmount * - * @param minAmount + * @param minAmount * @return the current {@code PixRecurring} instance, allowing for method chaining */ public PixRecurring minAmount(Amount minAmount) { @@ -262,7 +275,8 @@ public PixRecurring minAmount(Amount minAmount) { /** * Get minAmount - * @return minAmount + * + * @return minAmount */ @JsonProperty(JSON_PROPERTY_MIN_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -273,7 +287,7 @@ public Amount getMinAmount() { /** * minAmount * - * @param minAmount + * @param minAmount */ @JsonProperty(JSON_PROPERTY_MIN_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -282,9 +296,11 @@ public void setMinAmount(Amount minAmount) { } /** - * The pspReference for the failed recurring payment. Find this in AUTHORISATION webhook you received after the billing date. + * The pspReference for the failed recurring payment. Find this in AUTHORISATION webhook you + * received after the billing date. * - * @param originalPspReference The pspReference for the failed recurring payment. Find this in AUTHORISATION webhook you received after the billing date. + * @param originalPspReference The pspReference for the failed recurring payment. Find this in + * AUTHORISATION webhook you received after the billing date. * @return the current {@code PixRecurring} instance, allowing for method chaining */ public PixRecurring originalPspReference(String originalPspReference) { @@ -293,8 +309,11 @@ public PixRecurring originalPspReference(String originalPspReference) { } /** - * The pspReference for the failed recurring payment. Find this in AUTHORISATION webhook you received after the billing date. - * @return originalPspReference The pspReference for the failed recurring payment. Find this in AUTHORISATION webhook you received after the billing date. + * The pspReference for the failed recurring payment. Find this in AUTHORISATION webhook you + * received after the billing date. + * + * @return originalPspReference The pspReference for the failed recurring payment. Find this in + * AUTHORISATION webhook you received after the billing date. */ @JsonProperty(JSON_PROPERTY_ORIGINAL_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -303,9 +322,11 @@ public String getOriginalPspReference() { } /** - * The pspReference for the failed recurring payment. Find this in AUTHORISATION webhook you received after the billing date. + * The pspReference for the failed recurring payment. Find this in AUTHORISATION webhook you + * received after the billing date. * - * @param originalPspReference The pspReference for the failed recurring payment. Find this in AUTHORISATION webhook you received after the billing date. + * @param originalPspReference The pspReference for the failed recurring payment. Find this in + * AUTHORISATION webhook you received after the billing date. */ @JsonProperty(JSON_PROPERTY_ORIGINAL_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -316,7 +337,7 @@ public void setOriginalPspReference(String originalPspReference) { /** * recurringAmount * - * @param recurringAmount + * @param recurringAmount * @return the current {@code PixRecurring} instance, allowing for method chaining */ public PixRecurring recurringAmount(Amount recurringAmount) { @@ -326,7 +347,8 @@ public PixRecurring recurringAmount(Amount recurringAmount) { /** * Get recurringAmount - * @return recurringAmount + * + * @return recurringAmount */ @JsonProperty(JSON_PROPERTY_RECURRING_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -337,7 +359,7 @@ public Amount getRecurringAmount() { /** * recurringAmount * - * @param recurringAmount + * @param recurringAmount */ @JsonProperty(JSON_PROPERTY_RECURRING_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -346,9 +368,13 @@ public void setRecurringAmount(Amount recurringAmount) { } /** - * The text that that will be shown on the shopper's bank statement for the recurring payments. We recommend to add a descriptive text about the subscription to let your shoppers recognize your recurring payments. Maximum length: 35 characters. + * The text that that will be shown on the shopper's bank statement for the recurring + * payments. We recommend to add a descriptive text about the subscription to let your shoppers + * recognize your recurring payments. Maximum length: 35 characters. * - * @param recurringStatement The text that that will be shown on the shopper's bank statement for the recurring payments. We recommend to add a descriptive text about the subscription to let your shoppers recognize your recurring payments. Maximum length: 35 characters. + * @param recurringStatement The text that that will be shown on the shopper's bank statement + * for the recurring payments. We recommend to add a descriptive text about the subscription + * to let your shoppers recognize your recurring payments. Maximum length: 35 characters. * @return the current {@code PixRecurring} instance, allowing for method chaining */ public PixRecurring recurringStatement(String recurringStatement) { @@ -357,8 +383,13 @@ public PixRecurring recurringStatement(String recurringStatement) { } /** - * The text that that will be shown on the shopper's bank statement for the recurring payments. We recommend to add a descriptive text about the subscription to let your shoppers recognize your recurring payments. Maximum length: 35 characters. - * @return recurringStatement The text that that will be shown on the shopper's bank statement for the recurring payments. We recommend to add a descriptive text about the subscription to let your shoppers recognize your recurring payments. Maximum length: 35 characters. + * The text that that will be shown on the shopper's bank statement for the recurring + * payments. We recommend to add a descriptive text about the subscription to let your shoppers + * recognize your recurring payments. Maximum length: 35 characters. + * + * @return recurringStatement The text that that will be shown on the shopper's bank statement + * for the recurring payments. We recommend to add a descriptive text about the subscription + * to let your shoppers recognize your recurring payments. Maximum length: 35 characters. */ @JsonProperty(JSON_PROPERTY_RECURRING_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -367,9 +398,13 @@ public String getRecurringStatement() { } /** - * The text that that will be shown on the shopper's bank statement for the recurring payments. We recommend to add a descriptive text about the subscription to let your shoppers recognize your recurring payments. Maximum length: 35 characters. + * The text that that will be shown on the shopper's bank statement for the recurring + * payments. We recommend to add a descriptive text about the subscription to let your shoppers + * recognize your recurring payments. Maximum length: 35 characters. * - * @param recurringStatement The text that that will be shown on the shopper's bank statement for the recurring payments. We recommend to add a descriptive text about the subscription to let your shoppers recognize your recurring payments. Maximum length: 35 characters. + * @param recurringStatement The text that that will be shown on the shopper's bank statement + * for the recurring payments. We recommend to add a descriptive text about the subscription + * to let your shoppers recognize your recurring payments. Maximum length: 35 characters. */ @JsonProperty(JSON_PROPERTY_RECURRING_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -380,7 +415,8 @@ public void setRecurringStatement(String recurringStatement) { /** * When set to true, you can retry for failed recurring payments. The default value is true. * - * @param retryPolicy When set to true, you can retry for failed recurring payments. The default value is true. + * @param retryPolicy When set to true, you can retry for failed recurring payments. The default + * value is true. * @return the current {@code PixRecurring} instance, allowing for method chaining */ public PixRecurring retryPolicy(Boolean retryPolicy) { @@ -390,7 +426,9 @@ public PixRecurring retryPolicy(Boolean retryPolicy) { /** * When set to true, you can retry for failed recurring payments. The default value is true. - * @return retryPolicy When set to true, you can retry for failed recurring payments. The default value is true. + * + * @return retryPolicy When set to true, you can retry for failed recurring payments. The default + * value is true. */ @JsonProperty(JSON_PROPERTY_RETRY_POLICY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -401,7 +439,8 @@ public Boolean getRetryPolicy() { /** * When set to true, you can retry for failed recurring payments. The default value is true. * - * @param retryPolicy When set to true, you can retry for failed recurring payments. The default value is true. + * @param retryPolicy When set to true, you can retry for failed recurring payments. The default + * value is true. */ @JsonProperty(JSON_PROPERTY_RETRY_POLICY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -410,9 +449,11 @@ public void setRetryPolicy(Boolean retryPolicy) { } /** - * Start date of the billing plan, in YYYY-MM-DD format. The default value is the transaction date. + * Start date of the billing plan, in YYYY-MM-DD format. The default value is the transaction + * date. * - * @param startsAt Start date of the billing plan, in YYYY-MM-DD format. The default value is the transaction date. + * @param startsAt Start date of the billing plan, in YYYY-MM-DD format. The default value is the + * transaction date. * @return the current {@code PixRecurring} instance, allowing for method chaining */ public PixRecurring startsAt(String startsAt) { @@ -421,8 +462,11 @@ public PixRecurring startsAt(String startsAt) { } /** - * Start date of the billing plan, in YYYY-MM-DD format. The default value is the transaction date. - * @return startsAt Start date of the billing plan, in YYYY-MM-DD format. The default value is the transaction date. + * Start date of the billing plan, in YYYY-MM-DD format. The default value is the transaction + * date. + * + * @return startsAt Start date of the billing plan, in YYYY-MM-DD format. The default value is the + * transaction date. */ @JsonProperty(JSON_PROPERTY_STARTS_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -431,9 +475,11 @@ public String getStartsAt() { } /** - * Start date of the billing plan, in YYYY-MM-DD format. The default value is the transaction date. + * Start date of the billing plan, in YYYY-MM-DD format. The default value is the transaction + * date. * - * @param startsAt Start date of the billing plan, in YYYY-MM-DD format. The default value is the transaction date. + * @param startsAt Start date of the billing plan, in YYYY-MM-DD format. The default value is the + * transaction date. */ @JsonProperty(JSON_PROPERTY_STARTS_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -441,9 +487,7 @@ public void setStartsAt(String startsAt) { this.startsAt = startsAt; } - /** - * Return true if this PixRecurring object is equal to o. - */ + /** Return true if this PixRecurring object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -453,21 +497,31 @@ public boolean equals(Object o) { return false; } PixRecurring pixRecurring = (PixRecurring) o; - return Objects.equals(this.billingDate, pixRecurring.billingDate) && - Objects.equals(this.businessDayOnly, pixRecurring.businessDayOnly) && - Objects.equals(this.endsAt, pixRecurring.endsAt) && - Objects.equals(this.frequency, pixRecurring.frequency) && - Objects.equals(this.minAmount, pixRecurring.minAmount) && - Objects.equals(this.originalPspReference, pixRecurring.originalPspReference) && - Objects.equals(this.recurringAmount, pixRecurring.recurringAmount) && - Objects.equals(this.recurringStatement, pixRecurring.recurringStatement) && - Objects.equals(this.retryPolicy, pixRecurring.retryPolicy) && - Objects.equals(this.startsAt, pixRecurring.startsAt); + return Objects.equals(this.billingDate, pixRecurring.billingDate) + && Objects.equals(this.businessDayOnly, pixRecurring.businessDayOnly) + && Objects.equals(this.endsAt, pixRecurring.endsAt) + && Objects.equals(this.frequency, pixRecurring.frequency) + && Objects.equals(this.minAmount, pixRecurring.minAmount) + && Objects.equals(this.originalPspReference, pixRecurring.originalPspReference) + && Objects.equals(this.recurringAmount, pixRecurring.recurringAmount) + && Objects.equals(this.recurringStatement, pixRecurring.recurringStatement) + && Objects.equals(this.retryPolicy, pixRecurring.retryPolicy) + && Objects.equals(this.startsAt, pixRecurring.startsAt); } @Override public int hashCode() { - return Objects.hash(billingDate, businessDayOnly, endsAt, frequency, minAmount, originalPspReference, recurringAmount, recurringStatement, retryPolicy, startsAt); + return Objects.hash( + billingDate, + businessDayOnly, + endsAt, + frequency, + minAmount, + originalPspReference, + recurringAmount, + recurringStatement, + retryPolicy, + startsAt); } @Override @@ -479,7 +533,9 @@ public String toString() { sb.append(" endsAt: ").append(toIndentedString(endsAt)).append("\n"); sb.append(" frequency: ").append(toIndentedString(frequency)).append("\n"); sb.append(" minAmount: ").append(toIndentedString(minAmount)).append("\n"); - sb.append(" originalPspReference: ").append(toIndentedString(originalPspReference)).append("\n"); + sb.append(" originalPspReference: ") + .append(toIndentedString(originalPspReference)) + .append("\n"); sb.append(" recurringAmount: ").append(toIndentedString(recurringAmount)).append("\n"); sb.append(" recurringStatement: ").append(toIndentedString(recurringStatement)).append("\n"); sb.append(" retryPolicy: ").append(toIndentedString(retryPolicy)).append("\n"); @@ -489,8 +545,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -499,7 +554,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PixRecurring given an JSON string * * @param jsonString JSON string @@ -509,11 +564,12 @@ private String toIndentedString(Object o) { public static PixRecurring fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PixRecurring.class); } -/** - * Convert an instance of PixRecurring to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PixRecurring to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PlatformChargebackLogic.java b/src/main/java/com/adyen/model/checkout/PlatformChargebackLogic.java index a42b53bec..e8e0f9214 100644 --- a/src/main/java/com/adyen/model/checkout/PlatformChargebackLogic.java +++ b/src/main/java/com/adyen/model/checkout/PlatformChargebackLogic.java @@ -2,43 +2,37 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * PlatformChargebackLogic - */ +/** PlatformChargebackLogic */ @JsonPropertyOrder({ PlatformChargebackLogic.JSON_PROPERTY_BEHAVIOR, PlatformChargebackLogic.JSON_PROPERTY_COST_ALLOCATION_ACCOUNT, PlatformChargebackLogic.JSON_PROPERTY_TARGET_ACCOUNT }) - public class PlatformChargebackLogic { /** - * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. */ public enum BehaviorEnum { - DEDUCTACCORDINGTOSPLITRATIO(String.valueOf("deductAccordingToSplitRatio")), DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), @@ -50,7 +44,7 @@ public enum BehaviorEnum { private String value; BehaviorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -71,7 +65,11 @@ public static BehaviorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("BehaviorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(BehaviorEnum.values())); + LOG.warning( + "BehaviorEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(BehaviorEnum.values())); return null; } } @@ -85,13 +83,15 @@ public static BehaviorEnum fromValue(String value) { public static final String JSON_PROPERTY_TARGET_ACCOUNT = "targetAccount"; private String targetAccount; - public PlatformChargebackLogic() { - } + public PlatformChargebackLogic() {} /** - * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. * - * @param behavior The method of handling the chargeback. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * @param behavior The method of handling the chargeback. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**, + * **deductAccordingToSplitRatio**. * @return the current {@code PlatformChargebackLogic} instance, allowing for method chaining */ public PlatformChargebackLogic behavior(BehaviorEnum behavior) { @@ -100,8 +100,12 @@ public PlatformChargebackLogic behavior(BehaviorEnum behavior) { } /** - * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. - * @return behavior The method of handling the chargeback. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * + * @return behavior The method of handling the chargeback. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**, + * **deductAccordingToSplitRatio**. */ @JsonProperty(JSON_PROPERTY_BEHAVIOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,9 +114,12 @@ public BehaviorEnum getBehavior() { } /** - * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. * - * @param behavior The method of handling the chargeback. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * @param behavior The method of handling the chargeback. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**, + * **deductAccordingToSplitRatio**. */ @JsonProperty(JSON_PROPERTY_BEHAVIOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,9 +128,12 @@ public void setBehavior(BehaviorEnum behavior) { } /** - * The unique identifier of the balance account to which the chargeback fees are booked. By default, the chargeback fees are booked to your liable balance account. + * The unique identifier of the balance account to which the chargeback fees are booked. By + * default, the chargeback fees are booked to your liable balance account. * - * @param costAllocationAccount The unique identifier of the balance account to which the chargeback fees are booked. By default, the chargeback fees are booked to your liable balance account. + * @param costAllocationAccount The unique identifier of the balance account to which the + * chargeback fees are booked. By default, the chargeback fees are booked to your liable + * balance account. * @return the current {@code PlatformChargebackLogic} instance, allowing for method chaining */ public PlatformChargebackLogic costAllocationAccount(String costAllocationAccount) { @@ -132,8 +142,12 @@ public PlatformChargebackLogic costAllocationAccount(String costAllocationAccoun } /** - * The unique identifier of the balance account to which the chargeback fees are booked. By default, the chargeback fees are booked to your liable balance account. - * @return costAllocationAccount The unique identifier of the balance account to which the chargeback fees are booked. By default, the chargeback fees are booked to your liable balance account. + * The unique identifier of the balance account to which the chargeback fees are booked. By + * default, the chargeback fees are booked to your liable balance account. + * + * @return costAllocationAccount The unique identifier of the balance account to which the + * chargeback fees are booked. By default, the chargeback fees are booked to your liable + * balance account. */ @JsonProperty(JSON_PROPERTY_COST_ALLOCATION_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +156,12 @@ public String getCostAllocationAccount() { } /** - * The unique identifier of the balance account to which the chargeback fees are booked. By default, the chargeback fees are booked to your liable balance account. + * The unique identifier of the balance account to which the chargeback fees are booked. By + * default, the chargeback fees are booked to your liable balance account. * - * @param costAllocationAccount The unique identifier of the balance account to which the chargeback fees are booked. By default, the chargeback fees are booked to your liable balance account. + * @param costAllocationAccount The unique identifier of the balance account to which the + * chargeback fees are booked. By default, the chargeback fees are booked to your liable + * balance account. */ @JsonProperty(JSON_PROPERTY_COST_ALLOCATION_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -153,9 +170,11 @@ public void setCostAllocationAccount(String costAllocationAccount) { } /** - * The unique identifier of the balance account against which the disputed amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. + * The unique identifier of the balance account against which the disputed amount is booked. + * Required if `behavior` is **deductFromOneBalanceAccount**. * - * @param targetAccount The unique identifier of the balance account against which the disputed amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. + * @param targetAccount The unique identifier of the balance account against which the disputed + * amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. * @return the current {@code PlatformChargebackLogic} instance, allowing for method chaining */ public PlatformChargebackLogic targetAccount(String targetAccount) { @@ -164,8 +183,11 @@ public PlatformChargebackLogic targetAccount(String targetAccount) { } /** - * The unique identifier of the balance account against which the disputed amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. - * @return targetAccount The unique identifier of the balance account against which the disputed amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. + * The unique identifier of the balance account against which the disputed amount is booked. + * Required if `behavior` is **deductFromOneBalanceAccount**. + * + * @return targetAccount The unique identifier of the balance account against which the disputed + * amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_TARGET_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -174,9 +196,11 @@ public String getTargetAccount() { } /** - * The unique identifier of the balance account against which the disputed amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. + * The unique identifier of the balance account against which the disputed amount is booked. + * Required if `behavior` is **deductFromOneBalanceAccount**. * - * @param targetAccount The unique identifier of the balance account against which the disputed amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. + * @param targetAccount The unique identifier of the balance account against which the disputed + * amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_TARGET_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -184,9 +208,7 @@ public void setTargetAccount(String targetAccount) { this.targetAccount = targetAccount; } - /** - * Return true if this PlatformChargebackLogic object is equal to o. - */ + /** Return true if this PlatformChargebackLogic object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -196,9 +218,9 @@ public boolean equals(Object o) { return false; } PlatformChargebackLogic platformChargebackLogic = (PlatformChargebackLogic) o; - return Objects.equals(this.behavior, platformChargebackLogic.behavior) && - Objects.equals(this.costAllocationAccount, platformChargebackLogic.costAllocationAccount) && - Objects.equals(this.targetAccount, platformChargebackLogic.targetAccount); + return Objects.equals(this.behavior, platformChargebackLogic.behavior) + && Objects.equals(this.costAllocationAccount, platformChargebackLogic.costAllocationAccount) + && Objects.equals(this.targetAccount, platformChargebackLogic.targetAccount); } @Override @@ -211,15 +233,16 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PlatformChargebackLogic {\n"); sb.append(" behavior: ").append(toIndentedString(behavior)).append("\n"); - sb.append(" costAllocationAccount: ").append(toIndentedString(costAllocationAccount)).append("\n"); + sb.append(" costAllocationAccount: ") + .append(toIndentedString(costAllocationAccount)) + .append("\n"); sb.append(" targetAccount: ").append(toIndentedString(targetAccount)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -228,21 +251,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PlatformChargebackLogic given an JSON string * * @param jsonString JSON string * @return An instance of PlatformChargebackLogic - * @throws JsonProcessingException if the JSON string is invalid with respect to PlatformChargebackLogic + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PlatformChargebackLogic */ public static PlatformChargebackLogic fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PlatformChargebackLogic.class); } -/** - * Convert an instance of PlatformChargebackLogic to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PlatformChargebackLogic to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/PseDetails.java b/src/main/java/com/adyen/model/checkout/PseDetails.java index 5cbacf7c4..943fd4dba 100644 --- a/src/main/java/com/adyen/model/checkout/PseDetails.java +++ b/src/main/java/com/adyen/model/checkout/PseDetails.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * PseDetails - */ +/** PseDetails */ @JsonPropertyOrder({ PseDetails.JSON_PROPERTY_BANK, PseDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, @@ -35,7 +30,6 @@ PseDetails.JSON_PROPERTY_IDENTIFICATION_TYPE, PseDetails.JSON_PROPERTY_TYPE }) - public class PseDetails { public static final String JSON_PROPERTY_BANK = "bank"; private String bank; @@ -52,11 +46,8 @@ public class PseDetails { public static final String JSON_PROPERTY_IDENTIFICATION_TYPE = "identificationType"; private String identificationType; - /** - * The payment method type. - */ + /** The payment method type. */ public enum TypeEnum { - PSE_PAYULATAM(String.valueOf("pse_payulatam")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -64,7 +55,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -85,7 +76,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -93,8 +88,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PseDetails() { - } + public PseDetails() {} /** * The shopper's bank. @@ -109,6 +103,7 @@ public PseDetails bank(String bank) { /** * The shopper's bank. + * * @return bank The shopper's bank. */ @JsonProperty(JSON_PROPERTY_BANK) @@ -141,6 +136,7 @@ public PseDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -173,6 +169,7 @@ public PseDetails clientType(String clientType) { /** * The client type. + * * @return clientType The client type. */ @JsonProperty(JSON_PROPERTY_CLIENT_TYPE) @@ -205,6 +202,7 @@ public PseDetails identification(String identification) { /** * The identification code. + * * @return identification The identification code. */ @JsonProperty(JSON_PROPERTY_IDENTIFICATION) @@ -237,6 +235,7 @@ public PseDetails identificationType(String identificationType) { /** * The identification type. + * * @return identificationType The identification type. */ @JsonProperty(JSON_PROPERTY_IDENTIFICATION_TYPE) @@ -269,6 +268,7 @@ public PseDetails type(TypeEnum type) { /** * The payment method type. + * * @return type The payment method type. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -288,9 +288,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this PseDetails object is equal to o. - */ + /** Return true if this PseDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -300,17 +298,18 @@ public boolean equals(Object o) { return false; } PseDetails pseDetails = (PseDetails) o; - return Objects.equals(this.bank, pseDetails.bank) && - Objects.equals(this.checkoutAttemptId, pseDetails.checkoutAttemptId) && - Objects.equals(this.clientType, pseDetails.clientType) && - Objects.equals(this.identification, pseDetails.identification) && - Objects.equals(this.identificationType, pseDetails.identificationType) && - Objects.equals(this.type, pseDetails.type); + return Objects.equals(this.bank, pseDetails.bank) + && Objects.equals(this.checkoutAttemptId, pseDetails.checkoutAttemptId) + && Objects.equals(this.clientType, pseDetails.clientType) + && Objects.equals(this.identification, pseDetails.identification) + && Objects.equals(this.identificationType, pseDetails.identificationType) + && Objects.equals(this.type, pseDetails.type); } @Override public int hashCode() { - return Objects.hash(bank, checkoutAttemptId, clientType, identification, identificationType, type); + return Objects.hash( + bank, checkoutAttemptId, clientType, identification, identificationType, type); } @Override @@ -328,8 +327,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -338,7 +336,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PseDetails given an JSON string * * @param jsonString JSON string @@ -348,11 +346,12 @@ private String toIndentedString(Object o) { public static PseDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PseDetails.class); } -/** - * Convert an instance of PseDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PseDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/RakutenPayDetails.java b/src/main/java/com/adyen/model/checkout/RakutenPayDetails.java index eca87b134..f6508290d 100644 --- a/src/main/java/com/adyen/model/checkout/RakutenPayDetails.java +++ b/src/main/java/com/adyen/model/checkout/RakutenPayDetails.java @@ -2,38 +2,32 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * RakutenPayDetails - */ +/** RakutenPayDetails */ @JsonPropertyOrder({ RakutenPayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, RakutenPayDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, RakutenPayDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, RakutenPayDetails.JSON_PROPERTY_TYPE }) - public class RakutenPayDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -45,11 +39,8 @@ public class RakutenPayDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** - * **rakutenpay** - */ + /** **rakutenpay** */ public enum TypeEnum { - RAKUTENPAY(String.valueOf("rakutenpay")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -57,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -78,7 +69,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -86,8 +81,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public RakutenPayDetails() { - } + public RakutenPayDetails() {} /** * The checkout attempt identifier. @@ -102,6 +96,7 @@ public RakutenPayDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -122,13 +117,13 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code RakutenPayDetails} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public RakutenPayDetails recurringDetailReference(String recurringDetailReference) { @@ -137,8 +132,11 @@ public RakutenPayDetails recurringDetailReference(String recurringDetailReferenc } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -149,12 +147,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -164,9 +162,11 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code RakutenPayDetails} instance, allowing for method chaining */ public RakutenPayDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -175,8 +175,11 @@ public RakutenPayDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,9 +188,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,6 +213,7 @@ public RakutenPayDetails type(TypeEnum type) { /** * **rakutenpay** + * * @return type **rakutenpay** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -227,9 +233,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this RakutenPayDetails object is equal to o. - */ + /** Return true if this RakutenPayDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -239,10 +243,10 @@ public boolean equals(Object o) { return false; } RakutenPayDetails rakutenPayDetails = (RakutenPayDetails) o; - return Objects.equals(this.checkoutAttemptId, rakutenPayDetails.checkoutAttemptId) && - Objects.equals(this.recurringDetailReference, rakutenPayDetails.recurringDetailReference) && - Objects.equals(this.storedPaymentMethodId, rakutenPayDetails.storedPaymentMethodId) && - Objects.equals(this.type, rakutenPayDetails.type); + return Objects.equals(this.checkoutAttemptId, rakutenPayDetails.checkoutAttemptId) + && Objects.equals(this.recurringDetailReference, rakutenPayDetails.recurringDetailReference) + && Objects.equals(this.storedPaymentMethodId, rakutenPayDetails.storedPaymentMethodId) + && Objects.equals(this.type, rakutenPayDetails.type); } @Override @@ -255,16 +259,19 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RakutenPayDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -273,7 +280,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RakutenPayDetails given an JSON string * * @param jsonString JSON string @@ -283,11 +290,12 @@ private String toIndentedString(Object o) { public static RakutenPayDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RakutenPayDetails.class); } -/** - * Convert an instance of RakutenPayDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RakutenPayDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/RatepayDetails.java b/src/main/java/com/adyen/model/checkout/RatepayDetails.java index dfc9b5a51..2167d676a 100644 --- a/src/main/java/com/adyen/model/checkout/RatepayDetails.java +++ b/src/main/java/com/adyen/model/checkout/RatepayDetails.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * RatepayDetails - */ +/** RatepayDetails */ @JsonPropertyOrder({ RatepayDetails.JSON_PROPERTY_BILLING_ADDRESS, RatepayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, @@ -36,7 +31,6 @@ RatepayDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, RatepayDetails.JSON_PROPERTY_TYPE }) - public class RatepayDetails { public static final String JSON_PROPERTY_BILLING_ADDRESS = "billingAddress"; private String billingAddress; @@ -57,11 +51,8 @@ public class RatepayDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** - * **ratepay** - */ + /** **ratepay** */ public enum TypeEnum { - RATEPAY(String.valueOf("ratepay")), RATEPAY_DIRECTDEBIT(String.valueOf("ratepay_directdebit")); @@ -71,7 +62,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -92,7 +83,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -100,8 +95,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public RatepayDetails() { - } + public RatepayDetails() {} /** * The address where to send the invoice. @@ -116,6 +110,7 @@ public RatepayDetails billingAddress(String billingAddress) { /** * The address where to send the invoice. + * * @return billingAddress The address where to send the invoice. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @@ -148,6 +143,7 @@ public RatepayDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -180,6 +176,7 @@ public RatepayDetails deliveryAddress(String deliveryAddress) { /** * The address where the goods should be delivered. + * * @return deliveryAddress The address where the goods should be delivered. */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @@ -212,6 +209,7 @@ public RatepayDetails personalDetails(String personalDetails) { /** * Shopper name, date of birth, phone number, and email address. + * * @return personalDetails Shopper name, date of birth, phone number, and email address. */ @JsonProperty(JSON_PROPERTY_PERSONAL_DETAILS) @@ -232,13 +230,13 @@ public void setPersonalDetails(String personalDetails) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code RatepayDetails} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public RatepayDetails recurringDetailReference(String recurringDetailReference) { @@ -247,8 +245,11 @@ public RatepayDetails recurringDetailReference(String recurringDetailReference) } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -259,12 +260,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -274,9 +275,11 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code RatepayDetails} instance, allowing for method chaining */ public RatepayDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -285,8 +288,11 @@ public RatepayDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -295,9 +301,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -318,6 +326,7 @@ public RatepayDetails type(TypeEnum type) { /** * **ratepay** + * * @return type **ratepay** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -337,9 +346,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this RatepayDetails object is equal to o. - */ + /** Return true if this RatepayDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -349,18 +356,25 @@ public boolean equals(Object o) { return false; } RatepayDetails ratepayDetails = (RatepayDetails) o; - return Objects.equals(this.billingAddress, ratepayDetails.billingAddress) && - Objects.equals(this.checkoutAttemptId, ratepayDetails.checkoutAttemptId) && - Objects.equals(this.deliveryAddress, ratepayDetails.deliveryAddress) && - Objects.equals(this.personalDetails, ratepayDetails.personalDetails) && - Objects.equals(this.recurringDetailReference, ratepayDetails.recurringDetailReference) && - Objects.equals(this.storedPaymentMethodId, ratepayDetails.storedPaymentMethodId) && - Objects.equals(this.type, ratepayDetails.type); + return Objects.equals(this.billingAddress, ratepayDetails.billingAddress) + && Objects.equals(this.checkoutAttemptId, ratepayDetails.checkoutAttemptId) + && Objects.equals(this.deliveryAddress, ratepayDetails.deliveryAddress) + && Objects.equals(this.personalDetails, ratepayDetails.personalDetails) + && Objects.equals(this.recurringDetailReference, ratepayDetails.recurringDetailReference) + && Objects.equals(this.storedPaymentMethodId, ratepayDetails.storedPaymentMethodId) + && Objects.equals(this.type, ratepayDetails.type); } @Override public int hashCode() { - return Objects.hash(billingAddress, checkoutAttemptId, deliveryAddress, personalDetails, recurringDetailReference, storedPaymentMethodId, type); + return Objects.hash( + billingAddress, + checkoutAttemptId, + deliveryAddress, + personalDetails, + recurringDetailReference, + storedPaymentMethodId, + type); } @Override @@ -371,16 +385,19 @@ public String toString() { sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" deliveryAddress: ").append(toIndentedString(deliveryAddress)).append("\n"); sb.append(" personalDetails: ").append(toIndentedString(personalDetails)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -389,7 +406,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RatepayDetails given an JSON string * * @param jsonString JSON string @@ -399,11 +416,12 @@ private String toIndentedString(Object o) { public static RatepayDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RatepayDetails.class); } -/** - * Convert an instance of RatepayDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RatepayDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Recurring.java b/src/main/java/com/adyen/model/checkout/Recurring.java index 8696cb8a9..45fc04dab 100644 --- a/src/main/java/com/adyen/model/checkout/Recurring.java +++ b/src/main/java/com/adyen/model/checkout/Recurring.java @@ -2,32 +2,27 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * Recurring - */ +/** Recurring */ @JsonPropertyOrder({ Recurring.JSON_PROPERTY_CONTRACT, Recurring.JSON_PROPERTY_RECURRING_DETAIL_NAME, @@ -35,13 +30,20 @@ Recurring.JSON_PROPERTY_RECURRING_FREQUENCY, Recurring.JSON_PROPERTY_TOKEN_SERVICE }) - public class Recurring { /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment + * details can be used to initiate a one-click payment, where the shopper enters the [card + * security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a + * payout](https://docs.adyen.com/online-payments/online-payouts). */ public enum ContractEnum { - ONECLICK(String.valueOf("ONECLICK")), RECURRING(String.valueOf("RECURRING")), @@ -53,7 +55,7 @@ public enum ContractEnum { private String value; ContractEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -74,7 +76,11 @@ public static ContractEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ContractEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ContractEnum.values())); + LOG.warning( + "ContractEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ContractEnum.values())); return null; } } @@ -91,11 +97,8 @@ public static ContractEnum fromValue(String value) { public static final String JSON_PROPERTY_RECURRING_FREQUENCY = "recurringFrequency"; private String recurringFrequency; - /** - * The name of the token service. - */ + /** The name of the token service. */ public enum TokenServiceEnum { - VISATOKENSERVICE(String.valueOf("VISATOKENSERVICE")), MCTOKENSERVICE(String.valueOf("MCTOKENSERVICE")), @@ -109,7 +112,7 @@ public enum TokenServiceEnum { private String value; TokenServiceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -130,7 +133,11 @@ public static TokenServiceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TokenServiceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TokenServiceEnum.values())); + LOG.warning( + "TokenServiceEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TokenServiceEnum.values())); return null; } } @@ -138,13 +145,30 @@ public static TokenServiceEnum fromValue(String value) { public static final String JSON_PROPERTY_TOKEN_SERVICE = "tokenService"; private TokenServiceEnum tokenService; - public Recurring() { - } + public Recurring() {} /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment + * details can be used to initiate a one-click payment, where the shopper enters the [card + * security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a + * payout](https://docs.adyen.com/online-payments/online-payouts). * - * @param contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * @param contract The type of recurring contract to be used. Possible values: * + * `ONECLICK` – Payment details can be used to initiate a one-click payment, where + * the shopper enters the [card security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make + * a payout](https://docs.adyen.com/online-payments/online-payouts). * @return the current {@code Recurring} instance, allowing for method chaining */ public Recurring contract(ContractEnum contract) { @@ -153,8 +177,27 @@ public Recurring contract(ContractEnum contract) { } /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). - * @return contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment + * details can be used to initiate a one-click payment, where the shopper enters the [card + * security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a + * payout](https://docs.adyen.com/online-payments/online-payouts). + * + * @return contract The type of recurring contract to be used. Possible values: * + * `ONECLICK` – Payment details can be used to initiate a one-click payment, where + * the shopper enters the [card security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make + * a payout](https://docs.adyen.com/online-payments/online-payouts). */ @JsonProperty(JSON_PROPERTY_CONTRACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,9 +206,27 @@ public ContractEnum getContract() { } /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment + * details can be used to initiate a one-click payment, where the shopper enters the [card + * security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a + * payout](https://docs.adyen.com/online-payments/online-payouts). * - * @param contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * @param contract The type of recurring contract to be used. Possible values: * + * `ONECLICK` – Payment details can be used to initiate a one-click payment, where + * the shopper enters the [card security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make + * a payout](https://docs.adyen.com/online-payments/online-payouts). */ @JsonProperty(JSON_PROPERTY_CONTRACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,6 +247,7 @@ public Recurring recurringDetailName(String recurringDetailName) { /** * A descriptive name for this detail. + * * @return recurringDetailName A descriptive name for this detail. */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_NAME) @@ -208,7 +270,8 @@ public void setRecurringDetailName(String recurringDetailName) { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. * - * @param recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. + * @param recurringExpiry Date after which no further authorisations shall be performed. Only for + * 3D Secure 2. * @return the current {@code Recurring} instance, allowing for method chaining */ public Recurring recurringExpiry(OffsetDateTime recurringExpiry) { @@ -218,7 +281,9 @@ public Recurring recurringExpiry(OffsetDateTime recurringExpiry) { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. - * @return recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. + * + * @return recurringExpiry Date after which no further authorisations shall be performed. Only for + * 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -229,7 +294,8 @@ public OffsetDateTime getRecurringExpiry() { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. * - * @param recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. + * @param recurringExpiry Date after which no further authorisations shall be performed. Only for + * 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,6 +316,7 @@ public Recurring recurringFrequency(String recurringFrequency) { /** * Minimum number of days between authorisations. Only for 3D Secure 2. + * * @return recurringFrequency Minimum number of days between authorisations. Only for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY) @@ -282,6 +349,7 @@ public Recurring tokenService(TokenServiceEnum tokenService) { /** * The name of the token service. + * * @return tokenService The name of the token service. */ @JsonProperty(JSON_PROPERTY_TOKEN_SERVICE) @@ -301,9 +369,7 @@ public void setTokenService(TokenServiceEnum tokenService) { this.tokenService = tokenService; } - /** - * Return true if this Recurring object is equal to o. - */ + /** Return true if this Recurring object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -313,16 +379,17 @@ public boolean equals(Object o) { return false; } Recurring recurring = (Recurring) o; - return Objects.equals(this.contract, recurring.contract) && - Objects.equals(this.recurringDetailName, recurring.recurringDetailName) && - Objects.equals(this.recurringExpiry, recurring.recurringExpiry) && - Objects.equals(this.recurringFrequency, recurring.recurringFrequency) && - Objects.equals(this.tokenService, recurring.tokenService); + return Objects.equals(this.contract, recurring.contract) + && Objects.equals(this.recurringDetailName, recurring.recurringDetailName) + && Objects.equals(this.recurringExpiry, recurring.recurringExpiry) + && Objects.equals(this.recurringFrequency, recurring.recurringFrequency) + && Objects.equals(this.tokenService, recurring.tokenService); } @Override public int hashCode() { - return Objects.hash(contract, recurringDetailName, recurringExpiry, recurringFrequency, tokenService); + return Objects.hash( + contract, recurringDetailName, recurringExpiry, recurringFrequency, tokenService); } @Override @@ -330,7 +397,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Recurring {\n"); sb.append(" contract: ").append(toIndentedString(contract)).append("\n"); - sb.append(" recurringDetailName: ").append(toIndentedString(recurringDetailName)).append("\n"); + sb.append(" recurringDetailName: ") + .append(toIndentedString(recurringDetailName)) + .append("\n"); sb.append(" recurringExpiry: ").append(toIndentedString(recurringExpiry)).append("\n"); sb.append(" recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n"); sb.append(" tokenService: ").append(toIndentedString(tokenService)).append("\n"); @@ -339,8 +408,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -349,7 +417,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Recurring given an JSON string * * @param jsonString JSON string @@ -359,11 +427,12 @@ private String toIndentedString(Object o) { public static Recurring fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Recurring.class); } -/** - * Convert an instance of Recurring to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Recurring to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ResponseAdditionalData3DSecure.java b/src/main/java/com/adyen/model/checkout/ResponseAdditionalData3DSecure.java index fe23b49f7..3628a97e7 100644 --- a/src/main/java/com/adyen/model/checkout/ResponseAdditionalData3DSecure.java +++ b/src/main/java/com/adyen/model/checkout/ResponseAdditionalData3DSecure.java @@ -2,31 +2,22 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ResponseAdditionalData3DSecure - */ +/** ResponseAdditionalData3DSecure */ @JsonPropertyOrder({ ResponseAdditionalData3DSecure.JSON_PROPERTY_CARD_HOLDER_INFO, ResponseAdditionalData3DSecure.JSON_PROPERTY_CAVV, @@ -34,7 +25,6 @@ ResponseAdditionalData3DSecure.JSON_PROPERTY_SCA_EXEMPTION_REQUESTED, ResponseAdditionalData3DSecure.JSON_PROPERTY_THREEDS2_CARD_ENROLLED }) - public class ResponseAdditionalData3DSecure { public static final String JSON_PROPERTY_CARD_HOLDER_INFO = "cardHolderInfo"; private String cardHolderInfo; @@ -51,14 +41,16 @@ public class ResponseAdditionalData3DSecure { public static final String JSON_PROPERTY_THREEDS2_CARD_ENROLLED = "threeds2.cardEnrolled"; private Boolean threeds2CardEnrolled; - public ResponseAdditionalData3DSecure() { - } + public ResponseAdditionalData3DSecure() {} /** - * Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. + * Information provided by the issuer to the cardholder. If this field is present, you need to + * display this information to the cardholder. * - * @param cardHolderInfo Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. - * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method chaining + * @param cardHolderInfo Information provided by the issuer to the cardholder. If this field is + * present, you need to display this information to the cardholder. + * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method + * chaining */ public ResponseAdditionalData3DSecure cardHolderInfo(String cardHolderInfo) { this.cardHolderInfo = cardHolderInfo; @@ -66,8 +58,11 @@ public ResponseAdditionalData3DSecure cardHolderInfo(String cardHolderInfo) { } /** - * Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. - * @return cardHolderInfo Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. + * Information provided by the issuer to the cardholder. If this field is present, you need to + * display this information to the cardholder. + * + * @return cardHolderInfo Information provided by the issuer to the cardholder. If this field is + * present, you need to display this information to the cardholder. */ @JsonProperty(JSON_PROPERTY_CARD_HOLDER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -76,9 +71,11 @@ public String getCardHolderInfo() { } /** - * Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. + * Information provided by the issuer to the cardholder. If this field is present, you need to + * display this information to the cardholder. * - * @param cardHolderInfo Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. + * @param cardHolderInfo Information provided by the issuer to the cardholder. If this field is + * present, you need to display this information to the cardholder. */ @JsonProperty(JSON_PROPERTY_CARD_HOLDER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,10 +84,13 @@ public void setCardHolderInfo(String cardHolderInfo) { } /** - * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. + * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication + * session, as a Base64-encoded 20-byte array. * - * @param cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. - * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method chaining + * @param cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure + * authentication session, as a Base64-encoded 20-byte array. + * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method + * chaining */ public ResponseAdditionalData3DSecure cavv(String cavv) { this.cavv = cavv; @@ -98,8 +98,11 @@ public ResponseAdditionalData3DSecure cavv(String cavv) { } /** - * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. - * @return cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. + * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication + * session, as a Base64-encoded 20-byte array. + * + * @return cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure + * authentication session, as a Base64-encoded 20-byte array. */ @JsonProperty(JSON_PROPERTY_CAVV) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,9 +111,11 @@ public String getCavv() { } /** - * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. + * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication + * session, as a Base64-encoded 20-byte array. * - * @param cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. + * @param cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure + * authentication session, as a Base64-encoded 20-byte array. */ @JsonProperty(JSON_PROPERTY_CAVV) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -122,7 +127,8 @@ public void setCavv(String cavv) { * The CAVV algorithm used. * * @param cavvAlgorithm The CAVV algorithm used. - * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method chaining + * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method + * chaining */ public ResponseAdditionalData3DSecure cavvAlgorithm(String cavvAlgorithm) { this.cavvAlgorithm = cavvAlgorithm; @@ -131,6 +137,7 @@ public ResponseAdditionalData3DSecure cavvAlgorithm(String cavvAlgorithm) { /** * The CAVV algorithm used. + * * @return cavvAlgorithm The CAVV algorithm used. */ @JsonProperty(JSON_PROPERTY_CAVV_ALGORITHM) @@ -151,10 +158,17 @@ public void setCavvAlgorithm(String cavvAlgorithm) { } /** - * Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * Shows the [exemption + * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) + * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * + * **trustedBeneficiary** * **transactionRiskAnalysis** * - * @param scaExemptionRequested Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** - * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method chaining + * @param scaExemptionRequested Shows the [exemption + * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) + * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** + * * **trustedBeneficiary** * **transactionRiskAnalysis** + * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method + * chaining */ public ResponseAdditionalData3DSecure scaExemptionRequested(String scaExemptionRequested) { this.scaExemptionRequested = scaExemptionRequested; @@ -162,8 +176,15 @@ public ResponseAdditionalData3DSecure scaExemptionRequested(String scaExemptionR } /** - * Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** - * @return scaExemptionRequested Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * Shows the [exemption + * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) + * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * + * **trustedBeneficiary** * **transactionRiskAnalysis** + * + * @return scaExemptionRequested Shows the [exemption + * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) + * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** + * * **trustedBeneficiary** * **transactionRiskAnalysis** */ @JsonProperty(JSON_PROPERTY_SCA_EXEMPTION_REQUESTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,9 +193,15 @@ public String getScaExemptionRequested() { } /** - * Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * Shows the [exemption + * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) + * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * + * **trustedBeneficiary** * **transactionRiskAnalysis** * - * @param scaExemptionRequested Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * @param scaExemptionRequested Shows the [exemption + * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) + * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** + * * **trustedBeneficiary** * **transactionRiskAnalysis** */ @JsonProperty(JSON_PROPERTY_SCA_EXEMPTION_REQUESTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,7 +213,8 @@ public void setScaExemptionRequested(String scaExemptionRequested) { * Indicates whether a card is enrolled for 3D Secure 2. * * @param threeds2CardEnrolled Indicates whether a card is enrolled for 3D Secure 2. - * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method chaining + * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method + * chaining */ public ResponseAdditionalData3DSecure threeds2CardEnrolled(Boolean threeds2CardEnrolled) { this.threeds2CardEnrolled = threeds2CardEnrolled; @@ -195,6 +223,7 @@ public ResponseAdditionalData3DSecure threeds2CardEnrolled(Boolean threeds2CardE /** * Indicates whether a card is enrolled for 3D Secure 2. + * * @return threeds2CardEnrolled Indicates whether a card is enrolled for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_THREEDS2_CARD_ENROLLED) @@ -214,9 +243,7 @@ public void setThreeds2CardEnrolled(Boolean threeds2CardEnrolled) { this.threeds2CardEnrolled = threeds2CardEnrolled; } - /** - * Return true if this ResponseAdditionalData3DSecure object is equal to o. - */ + /** Return true if this ResponseAdditionalData3DSecure object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -225,17 +252,21 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResponseAdditionalData3DSecure responseAdditionalData3DSecure = (ResponseAdditionalData3DSecure) o; - return Objects.equals(this.cardHolderInfo, responseAdditionalData3DSecure.cardHolderInfo) && - Objects.equals(this.cavv, responseAdditionalData3DSecure.cavv) && - Objects.equals(this.cavvAlgorithm, responseAdditionalData3DSecure.cavvAlgorithm) && - Objects.equals(this.scaExemptionRequested, responseAdditionalData3DSecure.scaExemptionRequested) && - Objects.equals(this.threeds2CardEnrolled, responseAdditionalData3DSecure.threeds2CardEnrolled); + ResponseAdditionalData3DSecure responseAdditionalData3DSecure = + (ResponseAdditionalData3DSecure) o; + return Objects.equals(this.cardHolderInfo, responseAdditionalData3DSecure.cardHolderInfo) + && Objects.equals(this.cavv, responseAdditionalData3DSecure.cavv) + && Objects.equals(this.cavvAlgorithm, responseAdditionalData3DSecure.cavvAlgorithm) + && Objects.equals( + this.scaExemptionRequested, responseAdditionalData3DSecure.scaExemptionRequested) + && Objects.equals( + this.threeds2CardEnrolled, responseAdditionalData3DSecure.threeds2CardEnrolled); } @Override public int hashCode() { - return Objects.hash(cardHolderInfo, cavv, cavvAlgorithm, scaExemptionRequested, threeds2CardEnrolled); + return Objects.hash( + cardHolderInfo, cavv, cavvAlgorithm, scaExemptionRequested, threeds2CardEnrolled); } @Override @@ -245,15 +276,18 @@ public String toString() { sb.append(" cardHolderInfo: ").append(toIndentedString(cardHolderInfo)).append("\n"); sb.append(" cavv: ").append(toIndentedString(cavv)).append("\n"); sb.append(" cavvAlgorithm: ").append(toIndentedString(cavvAlgorithm)).append("\n"); - sb.append(" scaExemptionRequested: ").append(toIndentedString(scaExemptionRequested)).append("\n"); - sb.append(" threeds2CardEnrolled: ").append(toIndentedString(threeds2CardEnrolled)).append("\n"); + sb.append(" scaExemptionRequested: ") + .append(toIndentedString(scaExemptionRequested)) + .append("\n"); + sb.append(" threeds2CardEnrolled: ") + .append(toIndentedString(threeds2CardEnrolled)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -262,21 +296,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResponseAdditionalData3DSecure given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalData3DSecure - * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalData3DSecure + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ResponseAdditionalData3DSecure */ - public static ResponseAdditionalData3DSecure fromJson(String jsonString) throws JsonProcessingException { + public static ResponseAdditionalData3DSecure fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalData3DSecure.class); } -/** - * Convert an instance of ResponseAdditionalData3DSecure to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResponseAdditionalData3DSecure to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataBillingAddress.java b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataBillingAddress.java index f0ba4fef8..74a83e4a7 100644 --- a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataBillingAddress.java +++ b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataBillingAddress.java @@ -2,31 +2,22 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ResponseAdditionalDataBillingAddress - */ +/** ResponseAdditionalDataBillingAddress */ @JsonPropertyOrder({ ResponseAdditionalDataBillingAddress.JSON_PROPERTY_BILLING_ADDRESS_CITY, ResponseAdditionalDataBillingAddress.JSON_PROPERTY_BILLING_ADDRESS_COUNTRY, @@ -35,7 +26,6 @@ ResponseAdditionalDataBillingAddress.JSON_PROPERTY_BILLING_ADDRESS_STATE_OR_PROVINCE, ResponseAdditionalDataBillingAddress.JSON_PROPERTY_BILLING_ADDRESS_STREET }) - public class ResponseAdditionalDataBillingAddress { public static final String JSON_PROPERTY_BILLING_ADDRESS_CITY = "billingAddress.city"; private String billingAddressCity; @@ -43,26 +33,29 @@ public class ResponseAdditionalDataBillingAddress { public static final String JSON_PROPERTY_BILLING_ADDRESS_COUNTRY = "billingAddress.country"; private String billingAddressCountry; - public static final String JSON_PROPERTY_BILLING_ADDRESS_HOUSE_NUMBER_OR_NAME = "billingAddress.houseNumberOrName"; + public static final String JSON_PROPERTY_BILLING_ADDRESS_HOUSE_NUMBER_OR_NAME = + "billingAddress.houseNumberOrName"; private String billingAddressHouseNumberOrName; - public static final String JSON_PROPERTY_BILLING_ADDRESS_POSTAL_CODE = "billingAddress.postalCode"; + public static final String JSON_PROPERTY_BILLING_ADDRESS_POSTAL_CODE = + "billingAddress.postalCode"; private String billingAddressPostalCode; - public static final String JSON_PROPERTY_BILLING_ADDRESS_STATE_OR_PROVINCE = "billingAddress.stateOrProvince"; + public static final String JSON_PROPERTY_BILLING_ADDRESS_STATE_OR_PROVINCE = + "billingAddress.stateOrProvince"; private String billingAddressStateOrProvince; public static final String JSON_PROPERTY_BILLING_ADDRESS_STREET = "billingAddress.street"; private String billingAddressStreet; - public ResponseAdditionalDataBillingAddress() { - } + public ResponseAdditionalDataBillingAddress() {} /** * The billing address city passed in the payment request. * * @param billingAddressCity The billing address city passed in the payment request. - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method + * chaining */ public ResponseAdditionalDataBillingAddress billingAddressCity(String billingAddressCity) { this.billingAddressCity = billingAddressCity; @@ -71,6 +64,7 @@ public ResponseAdditionalDataBillingAddress billingAddressCity(String billingAdd /** * The billing address city passed in the payment request. + * * @return billingAddressCity The billing address city passed in the payment request. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_CITY) @@ -91,10 +85,12 @@ public void setBillingAddressCity(String billingAddressCity) { } /** - * The billing address country passed in the payment request. Example: NL + * The billing address country passed in the payment request. Example: NL * - * @param billingAddressCountry The billing address country passed in the payment request. Example: NL - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining + * @param billingAddressCountry The billing address country passed in the payment request. + * Example: NL + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method + * chaining */ public ResponseAdditionalDataBillingAddress billingAddressCountry(String billingAddressCountry) { this.billingAddressCountry = billingAddressCountry; @@ -102,8 +98,10 @@ public ResponseAdditionalDataBillingAddress billingAddressCountry(String billing } /** - * The billing address country passed in the payment request. Example: NL - * @return billingAddressCountry The billing address country passed in the payment request. Example: NL + * The billing address country passed in the payment request. Example: NL + * + * @return billingAddressCountry The billing address country passed in the payment request. + * Example: NL */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,9 +110,10 @@ public String getBillingAddressCountry() { } /** - * The billing address country passed in the payment request. Example: NL + * The billing address country passed in the payment request. Example: NL * - * @param billingAddressCountry The billing address country passed in the payment request. Example: NL + * @param billingAddressCountry The billing address country passed in the payment request. + * Example: NL */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,17 +124,22 @@ public void setBillingAddressCountry(String billingAddressCountry) { /** * The billing address house number or name passed in the payment request. * - * @param billingAddressHouseNumberOrName The billing address house number or name passed in the payment request. - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining + * @param billingAddressHouseNumberOrName The billing address house number or name passed in the + * payment request. + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method + * chaining */ - public ResponseAdditionalDataBillingAddress billingAddressHouseNumberOrName(String billingAddressHouseNumberOrName) { + public ResponseAdditionalDataBillingAddress billingAddressHouseNumberOrName( + String billingAddressHouseNumberOrName) { this.billingAddressHouseNumberOrName = billingAddressHouseNumberOrName; return this; } /** * The billing address house number or name passed in the payment request. - * @return billingAddressHouseNumberOrName The billing address house number or name passed in the payment request. + * + * @return billingAddressHouseNumberOrName The billing address house number or name passed in the + * payment request. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_HOUSE_NUMBER_OR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,7 +150,8 @@ public String getBillingAddressHouseNumberOrName() { /** * The billing address house number or name passed in the payment request. * - * @param billingAddressHouseNumberOrName The billing address house number or name passed in the payment request. + * @param billingAddressHouseNumberOrName The billing address house number or name passed in the + * payment request. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_HOUSE_NUMBER_OR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -155,19 +160,24 @@ public void setBillingAddressHouseNumberOrName(String billingAddressHouseNumberO } /** - * The billing address postal code passed in the payment request. Example: 1011 DJ + * The billing address postal code passed in the payment request. Example: 1011 DJ * - * @param billingAddressPostalCode The billing address postal code passed in the payment request. Example: 1011 DJ - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining + * @param billingAddressPostalCode The billing address postal code passed in the payment request. + * Example: 1011 DJ + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method + * chaining */ - public ResponseAdditionalDataBillingAddress billingAddressPostalCode(String billingAddressPostalCode) { + public ResponseAdditionalDataBillingAddress billingAddressPostalCode( + String billingAddressPostalCode) { this.billingAddressPostalCode = billingAddressPostalCode; return this; } /** - * The billing address postal code passed in the payment request. Example: 1011 DJ - * @return billingAddressPostalCode The billing address postal code passed in the payment request. Example: 1011 DJ + * The billing address postal code passed in the payment request. Example: 1011 DJ + * + * @return billingAddressPostalCode The billing address postal code passed in the payment request. + * Example: 1011 DJ */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,9 +186,10 @@ public String getBillingAddressPostalCode() { } /** - * The billing address postal code passed in the payment request. Example: 1011 DJ + * The billing address postal code passed in the payment request. Example: 1011 DJ * - * @param billingAddressPostalCode The billing address postal code passed in the payment request. Example: 1011 DJ + * @param billingAddressPostalCode The billing address postal code passed in the payment request. + * Example: 1011 DJ */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,19 +198,24 @@ public void setBillingAddressPostalCode(String billingAddressPostalCode) { } /** - * The billing address state or province passed in the payment request. Example: NH + * The billing address state or province passed in the payment request. Example: NH * - * @param billingAddressStateOrProvince The billing address state or province passed in the payment request. Example: NH - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining + * @param billingAddressStateOrProvince The billing address state or province passed in the + * payment request. Example: NH + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method + * chaining */ - public ResponseAdditionalDataBillingAddress billingAddressStateOrProvince(String billingAddressStateOrProvince) { + public ResponseAdditionalDataBillingAddress billingAddressStateOrProvince( + String billingAddressStateOrProvince) { this.billingAddressStateOrProvince = billingAddressStateOrProvince; return this; } /** - * The billing address state or province passed in the payment request. Example: NH - * @return billingAddressStateOrProvince The billing address state or province passed in the payment request. Example: NH + * The billing address state or province passed in the payment request. Example: NH + * + * @return billingAddressStateOrProvince The billing address state or province passed in the + * payment request. Example: NH */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,9 +224,10 @@ public String getBillingAddressStateOrProvince() { } /** - * The billing address state or province passed in the payment request. Example: NH + * The billing address state or province passed in the payment request. Example: NH * - * @param billingAddressStateOrProvince The billing address state or province passed in the payment request. Example: NH + * @param billingAddressStateOrProvince The billing address state or province passed in the + * payment request. Example: NH */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -222,7 +239,8 @@ public void setBillingAddressStateOrProvince(String billingAddressStateOrProvinc * The billing address street passed in the payment request. * * @param billingAddressStreet The billing address street passed in the payment request. - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method + * chaining */ public ResponseAdditionalDataBillingAddress billingAddressStreet(String billingAddressStreet) { this.billingAddressStreet = billingAddressStreet; @@ -231,6 +249,7 @@ public ResponseAdditionalDataBillingAddress billingAddressStreet(String billingA /** * The billing address street passed in the payment request. + * * @return billingAddressStreet The billing address street passed in the payment request. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_STREET) @@ -250,9 +269,7 @@ public void setBillingAddressStreet(String billingAddressStreet) { this.billingAddressStreet = billingAddressStreet; } - /** - * Return true if this ResponseAdditionalDataBillingAddress object is equal to o. - */ + /** Return true if this ResponseAdditionalDataBillingAddress object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -261,18 +278,34 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResponseAdditionalDataBillingAddress responseAdditionalDataBillingAddress = (ResponseAdditionalDataBillingAddress) o; - return Objects.equals(this.billingAddressCity, responseAdditionalDataBillingAddress.billingAddressCity) && - Objects.equals(this.billingAddressCountry, responseAdditionalDataBillingAddress.billingAddressCountry) && - Objects.equals(this.billingAddressHouseNumberOrName, responseAdditionalDataBillingAddress.billingAddressHouseNumberOrName) && - Objects.equals(this.billingAddressPostalCode, responseAdditionalDataBillingAddress.billingAddressPostalCode) && - Objects.equals(this.billingAddressStateOrProvince, responseAdditionalDataBillingAddress.billingAddressStateOrProvince) && - Objects.equals(this.billingAddressStreet, responseAdditionalDataBillingAddress.billingAddressStreet); + ResponseAdditionalDataBillingAddress responseAdditionalDataBillingAddress = + (ResponseAdditionalDataBillingAddress) o; + return Objects.equals( + this.billingAddressCity, responseAdditionalDataBillingAddress.billingAddressCity) + && Objects.equals( + this.billingAddressCountry, responseAdditionalDataBillingAddress.billingAddressCountry) + && Objects.equals( + this.billingAddressHouseNumberOrName, + responseAdditionalDataBillingAddress.billingAddressHouseNumberOrName) + && Objects.equals( + this.billingAddressPostalCode, + responseAdditionalDataBillingAddress.billingAddressPostalCode) + && Objects.equals( + this.billingAddressStateOrProvince, + responseAdditionalDataBillingAddress.billingAddressStateOrProvince) + && Objects.equals( + this.billingAddressStreet, responseAdditionalDataBillingAddress.billingAddressStreet); } @Override public int hashCode() { - return Objects.hash(billingAddressCity, billingAddressCountry, billingAddressHouseNumberOrName, billingAddressPostalCode, billingAddressStateOrProvince, billingAddressStreet); + return Objects.hash( + billingAddressCity, + billingAddressCountry, + billingAddressHouseNumberOrName, + billingAddressPostalCode, + billingAddressStateOrProvince, + billingAddressStreet); } @Override @@ -280,18 +313,27 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataBillingAddress {\n"); sb.append(" billingAddressCity: ").append(toIndentedString(billingAddressCity)).append("\n"); - sb.append(" billingAddressCountry: ").append(toIndentedString(billingAddressCountry)).append("\n"); - sb.append(" billingAddressHouseNumberOrName: ").append(toIndentedString(billingAddressHouseNumberOrName)).append("\n"); - sb.append(" billingAddressPostalCode: ").append(toIndentedString(billingAddressPostalCode)).append("\n"); - sb.append(" billingAddressStateOrProvince: ").append(toIndentedString(billingAddressStateOrProvince)).append("\n"); - sb.append(" billingAddressStreet: ").append(toIndentedString(billingAddressStreet)).append("\n"); + sb.append(" billingAddressCountry: ") + .append(toIndentedString(billingAddressCountry)) + .append("\n"); + sb.append(" billingAddressHouseNumberOrName: ") + .append(toIndentedString(billingAddressHouseNumberOrName)) + .append("\n"); + sb.append(" billingAddressPostalCode: ") + .append(toIndentedString(billingAddressPostalCode)) + .append("\n"); + sb.append(" billingAddressStateOrProvince: ") + .append(toIndentedString(billingAddressStateOrProvince)) + .append("\n"); + sb.append(" billingAddressStreet: ") + .append(toIndentedString(billingAddressStreet)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -300,21 +342,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResponseAdditionalDataBillingAddress given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataBillingAddress - * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataBillingAddress + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ResponseAdditionalDataBillingAddress */ - public static ResponseAdditionalDataBillingAddress fromJson(String jsonString) throws JsonProcessingException { + public static ResponseAdditionalDataBillingAddress fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataBillingAddress.class); } -/** - * Convert an instance of ResponseAdditionalDataBillingAddress to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResponseAdditionalDataBillingAddress to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataCard.java b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataCard.java index a094484a2..7621dafc0 100644 --- a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataCard.java +++ b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataCard.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * ResponseAdditionalDataCard - */ +/** ResponseAdditionalDataCard */ @JsonPropertyOrder({ ResponseAdditionalDataCard.JSON_PROPERTY_CARD_BIN, ResponseAdditionalDataCard.JSON_PROPERTY_CARD_HOLDER_NAME, @@ -38,7 +33,6 @@ ResponseAdditionalDataCard.JSON_PROPERTY_CARD_SUMMARY, ResponseAdditionalDataCard.JSON_PROPERTY_ISSUER_BIN }) - public class ResponseAdditionalDataCard { public static final String JSON_PROPERTY_CARD_BIN = "cardBin"; private String cardBin; @@ -59,10 +53,15 @@ public class ResponseAdditionalDataCard { private String cardPaymentMethod; /** - * The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit + * The Card Product ID represents the type of card following card scheme product definitions and + * can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - + * Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa + * Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard + * Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * + * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard + * Select Debit */ public enum CardProductIdEnum { - A(String.valueOf("A")), B(String.valueOf("B")), @@ -90,7 +89,7 @@ public enum CardProductIdEnum { private String value; CardProductIdEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -111,7 +110,11 @@ public static CardProductIdEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("CardProductIdEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CardProductIdEnum.values())); + LOG.warning( + "CardProductIdEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(CardProductIdEnum.values())); return null; } } @@ -125,13 +128,16 @@ public static CardProductIdEnum fromValue(String value) { public static final String JSON_PROPERTY_ISSUER_BIN = "issuerBin"; private String issuerBin; - public ResponseAdditionalDataCard() { - } + public ResponseAdditionalDataCard() {} /** - * The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 + * The first six digits of the card number. This is the [Bank Identification Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with a six-digit BIN. Example: 521234 * - * @param cardBin The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 + * @param cardBin The first six digits of the card number. This is the [Bank Identification Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with a six-digit BIN. Example: 521234 * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardBin(String cardBin) { @@ -140,8 +146,14 @@ public ResponseAdditionalDataCard cardBin(String cardBin) { } /** - * The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 - * @return cardBin The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 + * The first six digits of the card number. This is the [Bank Identification Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with a six-digit BIN. Example: 521234 + * + * @return cardBin The first six digits of the card number. This is the [Bank Identification + * Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with a six-digit BIN. Example: 521234 */ @JsonProperty(JSON_PROPERTY_CARD_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,9 +162,13 @@ public String getCardBin() { } /** - * The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 + * The first six digits of the card number. This is the [Bank Identification Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with a six-digit BIN. Example: 521234 * - * @param cardBin The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 + * @param cardBin The first six digits of the card number. This is the [Bank Identification Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with a six-digit BIN. Example: 521234 */ @JsonProperty(JSON_PROPERTY_CARD_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,6 +189,7 @@ public ResponseAdditionalDataCard cardHolderName(String cardHolderName) { /** * The cardholder name passed in the payment request. + * * @return cardHolderName The cardholder name passed in the payment request. */ @JsonProperty(JSON_PROPERTY_CARD_HOLDER_NAME) @@ -193,9 +210,11 @@ public void setCardHolderName(String cardHolderName) { } /** - * The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. + * The bank or the financial institution granting lines of credit through card association branded + * payment cards. This information can be included when available. * - * @param cardIssuingBank The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. + * @param cardIssuingBank The bank or the financial institution granting lines of credit through + * card association branded payment cards. This information can be included when available. * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardIssuingBank(String cardIssuingBank) { @@ -204,8 +223,11 @@ public ResponseAdditionalDataCard cardIssuingBank(String cardIssuingBank) { } /** - * The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. - * @return cardIssuingBank The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. + * The bank or the financial institution granting lines of credit through card association branded + * payment cards. This information can be included when available. + * + * @return cardIssuingBank The bank or the financial institution granting lines of credit through + * card association branded payment cards. This information can be included when available. */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_BANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,9 +236,11 @@ public String getCardIssuingBank() { } /** - * The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. + * The bank or the financial institution granting lines of credit through card association branded + * payment cards. This information can be included when available. * - * @param cardIssuingBank The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. + * @param cardIssuingBank The bank or the financial institution granting lines of credit through + * card association branded payment cards. This information can be included when available. */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_BANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -225,9 +249,9 @@ public void setCardIssuingBank(String cardIssuingBank) { } /** - * The country where the card was issued. Example: US + * The country where the card was issued. Example: US * - * @param cardIssuingCountry The country where the card was issued. Example: US + * @param cardIssuingCountry The country where the card was issued. Example: US * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardIssuingCountry(String cardIssuingCountry) { @@ -236,8 +260,9 @@ public ResponseAdditionalDataCard cardIssuingCountry(String cardIssuingCountry) } /** - * The country where the card was issued. Example: US - * @return cardIssuingCountry The country where the card was issued. Example: US + * The country where the card was issued. Example: US + * + * @return cardIssuingCountry The country where the card was issued. Example: US */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -246,9 +271,9 @@ public String getCardIssuingCountry() { } /** - * The country where the card was issued. Example: US + * The country where the card was issued. Example: US * - * @param cardIssuingCountry The country where the card was issued. Example: US + * @param cardIssuingCountry The country where the card was issued. Example: US */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -257,9 +282,12 @@ public void setCardIssuingCountry(String cardIssuingCountry) { } /** - * The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD + * The currency in which the card is issued, if this information is available. Provided as the + * currency code or currency number from the ISO-4217 standard. Example: USD * - * @param cardIssuingCurrency The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD + * @param cardIssuingCurrency The currency in which the card is issued, if this information is + * available. Provided as the currency code or currency number from the ISO-4217 standard. + * Example: USD * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardIssuingCurrency(String cardIssuingCurrency) { @@ -268,8 +296,12 @@ public ResponseAdditionalDataCard cardIssuingCurrency(String cardIssuingCurrency } /** - * The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD - * @return cardIssuingCurrency The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD + * The currency in which the card is issued, if this information is available. Provided as the + * currency code or currency number from the ISO-4217 standard. Example: USD + * + * @return cardIssuingCurrency The currency in which the card is issued, if this information is + * available. Provided as the currency code or currency number from the ISO-4217 standard. + * Example: USD */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -278,9 +310,12 @@ public String getCardIssuingCurrency() { } /** - * The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD + * The currency in which the card is issued, if this information is available. Provided as the + * currency code or currency number from the ISO-4217 standard. Example: USD * - * @param cardIssuingCurrency The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD + * @param cardIssuingCurrency The currency in which the card is issued, if this information is + * available. Provided as the currency code or currency number from the ISO-4217 standard. + * Example: USD */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -289,9 +324,9 @@ public void setCardIssuingCurrency(String cardIssuingCurrency) { } /** - * The card payment method used for the transaction. Example: amex + * The card payment method used for the transaction. Example: amex * - * @param cardPaymentMethod The card payment method used for the transaction. Example: amex + * @param cardPaymentMethod The card payment method used for the transaction. Example: amex * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardPaymentMethod(String cardPaymentMethod) { @@ -300,8 +335,9 @@ public ResponseAdditionalDataCard cardPaymentMethod(String cardPaymentMethod) { } /** - * The card payment method used for the transaction. Example: amex - * @return cardPaymentMethod The card payment method used for the transaction. Example: amex + * The card payment method used for the transaction. Example: amex + * + * @return cardPaymentMethod The card payment method used for the transaction. Example: amex */ @JsonProperty(JSON_PROPERTY_CARD_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -310,9 +346,9 @@ public String getCardPaymentMethod() { } /** - * The card payment method used for the transaction. Example: amex + * The card payment method used for the transaction. Example: amex * - * @param cardPaymentMethod The card payment method used for the transaction. Example: amex + * @param cardPaymentMethod The card payment method used for the transaction. Example: amex */ @JsonProperty(JSON_PROPERTY_CARD_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -321,9 +357,21 @@ public void setCardPaymentMethod(String cardPaymentMethod) { } /** - * The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit + * The Card Product ID represents the type of card following card scheme product definitions and + * can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - + * Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa + * Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard + * Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * + * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard + * Select Debit * - * @param cardProductId The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit + * @param cardProductId The Card Product ID represents the type of card following card scheme + * product definitions and can be returned for Adyen Acquiring service level payments. + * Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** + * - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values + * Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - + * Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard + * Premium Charge * **MCI** - Mastercard Select Debit * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardProductId(CardProductIdEnum cardProductId) { @@ -332,8 +380,21 @@ public ResponseAdditionalDataCard cardProductId(CardProductIdEnum cardProductId) } /** - * The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit - * @return cardProductId The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit + * The Card Product ID represents the type of card following card scheme product definitions and + * can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - + * Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa + * Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard + * Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * + * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard + * Select Debit + * + * @return cardProductId The Card Product ID represents the type of card following card scheme + * product definitions and can be returned for Adyen Acquiring service level payments. + * Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** + * - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values + * Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - + * Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard + * Premium Charge * **MCI** - Mastercard Select Debit */ @JsonProperty(JSON_PROPERTY_CARD_PRODUCT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -342,9 +403,21 @@ public CardProductIdEnum getCardProductId() { } /** - * The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit + * The Card Product ID represents the type of card following card scheme product definitions and + * can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - + * Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa + * Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard + * Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * + * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard + * Select Debit * - * @param cardProductId The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit + * @param cardProductId The Card Product ID represents the type of card following card scheme + * product definitions and can be returned for Adyen Acquiring service level payments. + * Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** + * - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values + * Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - + * Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard + * Premium Charge * **MCI** - Mastercard Select Debit */ @JsonProperty(JSON_PROPERTY_CARD_PRODUCT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -353,9 +426,10 @@ public void setCardProductId(CardProductIdEnum cardProductId) { } /** - * The last four digits of a card number. > Returned only in case of a card payment. + * The last four digits of a card number. > Returned only in case of a card payment. * - * @param cardSummary The last four digits of a card number. > Returned only in case of a card payment. + * @param cardSummary The last four digits of a card number. > Returned only in case of a card + * payment. * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardSummary(String cardSummary) { @@ -364,8 +438,10 @@ public ResponseAdditionalDataCard cardSummary(String cardSummary) { } /** - * The last four digits of a card number. > Returned only in case of a card payment. - * @return cardSummary The last four digits of a card number. > Returned only in case of a card payment. + * The last four digits of a card number. > Returned only in case of a card payment. + * + * @return cardSummary The last four digits of a card number. > Returned only in case of a card + * payment. */ @JsonProperty(JSON_PROPERTY_CARD_SUMMARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -374,9 +450,10 @@ public String getCardSummary() { } /** - * The last four digits of a card number. > Returned only in case of a card payment. + * The last four digits of a card number. > Returned only in case of a card payment. * - * @param cardSummary The last four digits of a card number. > Returned only in case of a card payment. + * @param cardSummary The last four digits of a card number. > Returned only in case of a card + * payment. */ @JsonProperty(JSON_PROPERTY_CARD_SUMMARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -385,9 +462,15 @@ public void setCardSummary(String cardSummary) { } /** - * The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 + * The first eight digits of the card number. Only returned if the card number is 16 digits or + * more. This is the [Bank Identification Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with an eight-digit BIN. Example: 52123423 * - * @param issuerBin The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 + * @param issuerBin The first eight digits of the card number. Only returned if the card number is + * 16 digits or more. This is the [Bank Identification Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with an eight-digit BIN. Example: 52123423 * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard issuerBin(String issuerBin) { @@ -396,8 +479,15 @@ public ResponseAdditionalDataCard issuerBin(String issuerBin) { } /** - * The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 - * @return issuerBin The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 + * The first eight digits of the card number. Only returned if the card number is 16 digits or + * more. This is the [Bank Identification Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with an eight-digit BIN. Example: 52123423 + * + * @return issuerBin The first eight digits of the card number. Only returned if the card number + * is 16 digits or more. This is the [Bank Identification Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with an eight-digit BIN. Example: 52123423 */ @JsonProperty(JSON_PROPERTY_ISSUER_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -406,9 +496,15 @@ public String getIssuerBin() { } /** - * The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 + * The first eight digits of the card number. Only returned if the card number is 16 digits or + * more. This is the [Bank Identification Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with an eight-digit BIN. Example: 52123423 * - * @param issuerBin The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 + * @param issuerBin The first eight digits of the card number. Only returned if the card number is + * 16 digits or more. This is the [Bank Identification Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with an eight-digit BIN. Example: 52123423 */ @JsonProperty(JSON_PROPERTY_ISSUER_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -416,9 +512,7 @@ public void setIssuerBin(String issuerBin) { this.issuerBin = issuerBin; } - /** - * Return true if this ResponseAdditionalDataCard object is equal to o. - */ + /** Return true if this ResponseAdditionalDataCard object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -428,20 +522,29 @@ public boolean equals(Object o) { return false; } ResponseAdditionalDataCard responseAdditionalDataCard = (ResponseAdditionalDataCard) o; - return Objects.equals(this.cardBin, responseAdditionalDataCard.cardBin) && - Objects.equals(this.cardHolderName, responseAdditionalDataCard.cardHolderName) && - Objects.equals(this.cardIssuingBank, responseAdditionalDataCard.cardIssuingBank) && - Objects.equals(this.cardIssuingCountry, responseAdditionalDataCard.cardIssuingCountry) && - Objects.equals(this.cardIssuingCurrency, responseAdditionalDataCard.cardIssuingCurrency) && - Objects.equals(this.cardPaymentMethod, responseAdditionalDataCard.cardPaymentMethod) && - Objects.equals(this.cardProductId, responseAdditionalDataCard.cardProductId) && - Objects.equals(this.cardSummary, responseAdditionalDataCard.cardSummary) && - Objects.equals(this.issuerBin, responseAdditionalDataCard.issuerBin); + return Objects.equals(this.cardBin, responseAdditionalDataCard.cardBin) + && Objects.equals(this.cardHolderName, responseAdditionalDataCard.cardHolderName) + && Objects.equals(this.cardIssuingBank, responseAdditionalDataCard.cardIssuingBank) + && Objects.equals(this.cardIssuingCountry, responseAdditionalDataCard.cardIssuingCountry) + && Objects.equals(this.cardIssuingCurrency, responseAdditionalDataCard.cardIssuingCurrency) + && Objects.equals(this.cardPaymentMethod, responseAdditionalDataCard.cardPaymentMethod) + && Objects.equals(this.cardProductId, responseAdditionalDataCard.cardProductId) + && Objects.equals(this.cardSummary, responseAdditionalDataCard.cardSummary) + && Objects.equals(this.issuerBin, responseAdditionalDataCard.issuerBin); } @Override public int hashCode() { - return Objects.hash(cardBin, cardHolderName, cardIssuingBank, cardIssuingCountry, cardIssuingCurrency, cardPaymentMethod, cardProductId, cardSummary, issuerBin); + return Objects.hash( + cardBin, + cardHolderName, + cardIssuingBank, + cardIssuingCountry, + cardIssuingCurrency, + cardPaymentMethod, + cardProductId, + cardSummary, + issuerBin); } @Override @@ -452,7 +555,9 @@ public String toString() { sb.append(" cardHolderName: ").append(toIndentedString(cardHolderName)).append("\n"); sb.append(" cardIssuingBank: ").append(toIndentedString(cardIssuingBank)).append("\n"); sb.append(" cardIssuingCountry: ").append(toIndentedString(cardIssuingCountry)).append("\n"); - sb.append(" cardIssuingCurrency: ").append(toIndentedString(cardIssuingCurrency)).append("\n"); + sb.append(" cardIssuingCurrency: ") + .append(toIndentedString(cardIssuingCurrency)) + .append("\n"); sb.append(" cardPaymentMethod: ").append(toIndentedString(cardPaymentMethod)).append("\n"); sb.append(" cardProductId: ").append(toIndentedString(cardProductId)).append("\n"); sb.append(" cardSummary: ").append(toIndentedString(cardSummary)).append("\n"); @@ -462,8 +567,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -472,21 +576,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResponseAdditionalDataCard given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataCard - * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataCard + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ResponseAdditionalDataCard */ - public static ResponseAdditionalDataCard fromJson(String jsonString) throws JsonProcessingException { + public static ResponseAdditionalDataCard fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataCard.class); } -/** - * Convert an instance of ResponseAdditionalDataCard to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResponseAdditionalDataCard to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataCommon.java b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataCommon.java index 441c2ea0d..e12e257d2 100644 --- a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataCommon.java +++ b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataCommon.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * ResponseAdditionalDataCommon - */ +/** ResponseAdditionalDataCommon */ @JsonPropertyOrder({ ResponseAdditionalDataCommon.JSON_PROPERTY_ACQUIRER_ACCOUNT_CODE, ResponseAdditionalDataCommon.JSON_PROPERTY_ACQUIRER_CODE, @@ -92,7 +87,6 @@ ResponseAdditionalDataCommon.JSON_PROPERTY_VISA_TRANSACTION_ID, ResponseAdditionalDataCommon.JSON_PROPERTY_XID }) - public class ResponseAdditionalDataCommon { public static final String JSON_PROPERTY_ACQUIRER_ACCOUNT_CODE = "acquirerAccountCode"; private String acquirerAccountCode; @@ -154,17 +148,15 @@ public class ResponseAdditionalDataCommon { public static final String JSON_PROPERTY_EXTRA_COSTS_VALUE = "extraCostsValue"; private String extraCostsValue; - public static final String JSON_PROPERTY_FRAUD_CHECK_ITEM_NR_FRAUD_CHECKNAME = "fraudCheck-[itemNr]-[FraudCheckname]"; + public static final String JSON_PROPERTY_FRAUD_CHECK_ITEM_NR_FRAUD_CHECKNAME = + "fraudCheck-[itemNr]-[FraudCheckname]"; private String fraudCheckItemNrFraudCheckname; public static final String JSON_PROPERTY_FRAUD_MANUAL_REVIEW = "fraudManualReview"; private String fraudManualReview; - /** - * The fraud result properties of the payment. - */ + /** The fraud result properties of the payment. */ public enum FraudResultTypeEnum { - GREEN(String.valueOf("GREEN")), FRAUD(String.valueOf("FRAUD")); @@ -174,7 +166,7 @@ public enum FraudResultTypeEnum { private String value; FraudResultTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -195,7 +187,11 @@ public static FraudResultTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FraudResultTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FraudResultTypeEnum.values())); + LOG.warning( + "FraudResultTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FraudResultTypeEnum.values())); return null; } } @@ -204,10 +200,12 @@ public static FraudResultTypeEnum fromValue(String value) { private FraudResultTypeEnum fraudResultType; /** - * The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * The risk level of the transaction as classified by the [machine + * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) + * fraud risk rule. The risk level indicates the likelihood that a transaction will result in a + * fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh */ public enum FraudRiskLevelEnum { - VERYLOW(String.valueOf("veryLow")), LOW(String.valueOf("low")), @@ -223,7 +221,7 @@ public enum FraudRiskLevelEnum { private String value; FraudRiskLevelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -244,7 +242,11 @@ public static FraudRiskLevelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FraudRiskLevelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FraudRiskLevelEnum.values())); + LOG.warning( + "FraudRiskLevelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FraudRiskLevelEnum.values())); return null; } } @@ -270,7 +272,8 @@ public static FraudRiskLevelEnum fromValue(String value) { public static final String JSON_PROPERTY_LIABILITY_SHIFT = "liabilityShift"; private String liabilityShift; - public static final String JSON_PROPERTY_MC_BANK_NET_REFERENCE_NUMBER = "mcBankNetReferenceNumber"; + public static final String JSON_PROPERTY_MC_BANK_NET_REFERENCE_NUMBER = + "mcBankNetReferenceNumber"; private String mcBankNetReferenceNumber; public static final String JSON_PROPERTY_MERCHANT_ADVICE_CODE = "merchantAdviceCode"; @@ -297,7 +300,8 @@ public static FraudRiskLevelEnum fromValue(String value) { public static final String JSON_PROPERTY_PAYOUT_ELIGIBLE = "payoutEligible"; private String payoutEligible; - public static final String JSON_PROPERTY_REALTIME_ACCOUNT_UPDATER_STATUS = "realtimeAccountUpdaterStatus"; + public static final String JSON_PROPERTY_REALTIME_ACCOUNT_UPDATER_STATUS = + "realtimeAccountUpdaterStatus"; private String realtimeAccountUpdaterStatus; public static final String JSON_PROPERTY_RECEIPT_FREE_TEXT = "receiptFreeText"; @@ -306,34 +310,36 @@ public static FraudRiskLevelEnum fromValue(String value) { public static final String JSON_PROPERTY_RECURRING_CONTRACT_TYPES = "recurring.contractTypes"; private String recurringContractTypes; - public static final String JSON_PROPERTY_RECURRING_FIRST_PSP_REFERENCE = "recurring.firstPspReference"; + public static final String JSON_PROPERTY_RECURRING_FIRST_PSP_REFERENCE = + "recurring.firstPspReference"; private String recurringFirstPspReference; - public static final String JSON_PROPERTY_RECURRING_RECURRING_DETAIL_REFERENCE = "recurring.recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v68: Use tokenization.storedPaymentMethodId instead. + public static final String JSON_PROPERTY_RECURRING_RECURRING_DETAIL_REFERENCE = + "recurring.recurringDetailReference"; + @Deprecated // deprecated since Adyen Checkout API v68: Use tokenization.storedPaymentMethodId + // instead. private String recurringRecurringDetailReference; - public static final String JSON_PROPERTY_RECURRING_SHOPPER_REFERENCE = "recurring.shopperReference"; + public static final String JSON_PROPERTY_RECURRING_SHOPPER_REFERENCE = + "recurring.shopperReference"; @Deprecated // deprecated since Adyen Checkout API v68: Use tokenization.shopperReference instead. private String recurringShopperReference; - /** - * The processing model used for the recurring transaction. - */ + /** The processing model used for the recurring transaction. */ public enum RecurringProcessingModelEnum { - CARDONFILE(String.valueOf("CardOnFile")), SUBSCRIPTION(String.valueOf("Subscription")), UNSCHEDULEDCARDONFILE(String.valueOf("UnscheduledCardOnFile")); - private static final Logger LOG = Logger.getLogger(RecurringProcessingModelEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(RecurringProcessingModelEnum.class.getName()); private String value; RecurringProcessingModelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -354,7 +360,11 @@ public static RecurringProcessingModelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("RecurringProcessingModelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RecurringProcessingModelEnum.values())); + LOG.warning( + "RecurringProcessingModelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(RecurringProcessingModelEnum.values())); return null; } } @@ -386,7 +396,8 @@ public static RecurringProcessingModelEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_AUTHENTICATED = "threeDAuthenticated"; private String threeDAuthenticated; - public static final String JSON_PROPERTY_THREE_D_AUTHENTICATED_RESPONSE = "threeDAuthenticatedResponse"; + public static final String JSON_PROPERTY_THREE_D_AUTHENTICATED_RESPONSE = + "threeDAuthenticatedResponse"; private String threeDAuthenticatedResponse; public static final String JSON_PROPERTY_THREE_D_OFFERED = "threeDOffered"; @@ -398,26 +409,29 @@ public static RecurringProcessingModelEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_VERSION = "threeDSVersion"; private String threeDSVersion; - public static final String JSON_PROPERTY_TOKENIZATION_SHOPPER_REFERENCE = "tokenization.shopperReference"; + public static final String JSON_PROPERTY_TOKENIZATION_SHOPPER_REFERENCE = + "tokenization.shopperReference"; private String tokenizationShopperReference; /** - * The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. + * The operation performed on the token. Possible values: * **created**: the token has been + * created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details + * have already been stored. */ public enum TokenizationStoreOperationTypeEnum { - CREATED(String.valueOf("created")), UPDATED(String.valueOf("updated")), ALREADYEXISTING(String.valueOf("alreadyExisting")); - private static final Logger LOG = Logger.getLogger(TokenizationStoreOperationTypeEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(TokenizationStoreOperationTypeEnum.class.getName()); private String value; TokenizationStoreOperationTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -438,15 +452,21 @@ public static TokenizationStoreOperationTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TokenizationStoreOperationTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TokenizationStoreOperationTypeEnum.values())); + LOG.warning( + "TokenizationStoreOperationTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TokenizationStoreOperationTypeEnum.values())); return null; } } - public static final String JSON_PROPERTY_TOKENIZATION_STORE_OPERATION_TYPE = "tokenization.store.operationType"; + public static final String JSON_PROPERTY_TOKENIZATION_STORE_OPERATION_TYPE = + "tokenization.store.operationType"; private TokenizationStoreOperationTypeEnum tokenizationStoreOperationType; - public static final String JSON_PROPERTY_TOKENIZATION_STORED_PAYMENT_METHOD_ID = "tokenization.storedPaymentMethodId"; + public static final String JSON_PROPERTY_TOKENIZATION_STORED_PAYMENT_METHOD_ID = + "tokenization.storedPaymentMethodId"; private String tokenizationStoredPaymentMethodId; public static final String JSON_PROPERTY_VISA_TRANSACTION_ID = "visaTransactionId"; @@ -455,13 +475,14 @@ public static TokenizationStoreOperationTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_XID = "xid"; private String xid; - public ResponseAdditionalDataCommon() { - } + public ResponseAdditionalDataCommon() {} /** - * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. + * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant + * for PayPal transactions. * - * @param acquirerAccountCode The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. + * @param acquirerAccountCode The name of the Adyen acquirer account. Example: + * PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon acquirerAccountCode(String acquirerAccountCode) { @@ -470,8 +491,11 @@ public ResponseAdditionalDataCommon acquirerAccountCode(String acquirerAccountCo } /** - * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. - * @return acquirerAccountCode The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. + * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant + * for PayPal transactions. + * + * @return acquirerAccountCode The name of the Adyen acquirer account. Example: + * PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -480,9 +504,11 @@ public String getAcquirerAccountCode() { } /** - * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. + * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant + * for PayPal transactions. * - * @param acquirerAccountCode The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. + * @param acquirerAccountCode The name of the Adyen acquirer account. Example: + * PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -491,9 +517,10 @@ public void setAcquirerAccountCode(String acquirerAccountCode) { } /** - * The name of the acquirer processing the payment request. Example: TestPmmAcquirer + * The name of the acquirer processing the payment request. Example: TestPmmAcquirer * - * @param acquirerCode The name of the acquirer processing the payment request. Example: TestPmmAcquirer + * @param acquirerCode The name of the acquirer processing the payment request. Example: + * TestPmmAcquirer * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon acquirerCode(String acquirerCode) { @@ -502,8 +529,10 @@ public ResponseAdditionalDataCommon acquirerCode(String acquirerCode) { } /** - * The name of the acquirer processing the payment request. Example: TestPmmAcquirer - * @return acquirerCode The name of the acquirer processing the payment request. Example: TestPmmAcquirer + * The name of the acquirer processing the payment request. Example: TestPmmAcquirer + * + * @return acquirerCode The name of the acquirer processing the payment request. Example: + * TestPmmAcquirer */ @JsonProperty(JSON_PROPERTY_ACQUIRER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -512,9 +541,10 @@ public String getAcquirerCode() { } /** - * The name of the acquirer processing the payment request. Example: TestPmmAcquirer + * The name of the acquirer processing the payment request. Example: TestPmmAcquirer * - * @param acquirerCode The name of the acquirer processing the payment request. Example: TestPmmAcquirer + * @param acquirerCode The name of the acquirer processing the payment request. Example: + * TestPmmAcquirer */ @JsonProperty(JSON_PROPERTY_ACQUIRER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -523,9 +553,11 @@ public void setAcquirerCode(String acquirerCode) { } /** - * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 + * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used + * for settlement. Example: 7C9N3FNBKT9 * - * @param acquirerReference The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 + * @param acquirerReference The reference number that can be used for reconciliation in case a + * non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon acquirerReference(String acquirerReference) { @@ -534,8 +566,11 @@ public ResponseAdditionalDataCommon acquirerReference(String acquirerReference) } /** - * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 - * @return acquirerReference The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 + * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used + * for settlement. Example: 7C9N3FNBKT9 + * + * @return acquirerReference The reference number that can be used for reconciliation in case a + * non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 */ @JsonProperty(JSON_PROPERTY_ACQUIRER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -544,9 +579,11 @@ public String getAcquirerReference() { } /** - * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 + * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used + * for settlement. Example: 7C9N3FNBKT9 * - * @param acquirerReference The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 + * @param acquirerReference The reference number that can be used for reconciliation in case a + * non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 */ @JsonProperty(JSON_PROPERTY_ACQUIRER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -555,9 +592,9 @@ public void setAcquirerReference(String acquirerReference) { } /** - * The Adyen alias of the card. Example: H167852639363479 + * The Adyen alias of the card. Example: H167852639363479 * - * @param alias The Adyen alias of the card. Example: H167852639363479 + * @param alias The Adyen alias of the card. Example: H167852639363479 * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon alias(String alias) { @@ -566,8 +603,9 @@ public ResponseAdditionalDataCommon alias(String alias) { } /** - * The Adyen alias of the card. Example: H167852639363479 - * @return alias The Adyen alias of the card. Example: H167852639363479 + * The Adyen alias of the card. Example: H167852639363479 + * + * @return alias The Adyen alias of the card. Example: H167852639363479 */ @JsonProperty(JSON_PROPERTY_ALIAS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -576,9 +614,9 @@ public String getAlias() { } /** - * The Adyen alias of the card. Example: H167852639363479 + * The Adyen alias of the card. Example: H167852639363479 * - * @param alias The Adyen alias of the card. Example: H167852639363479 + * @param alias The Adyen alias of the card. Example: H167852639363479 */ @JsonProperty(JSON_PROPERTY_ALIAS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -587,9 +625,9 @@ public void setAlias(String alias) { } /** - * The type of the card alias. Example: Default + * The type of the card alias. Example: Default * - * @param aliasType The type of the card alias. Example: Default + * @param aliasType The type of the card alias. Example: Default * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon aliasType(String aliasType) { @@ -598,8 +636,9 @@ public ResponseAdditionalDataCommon aliasType(String aliasType) { } /** - * The type of the card alias. Example: Default - * @return aliasType The type of the card alias. Example: Default + * The type of the card alias. Example: Default + * + * @return aliasType The type of the card alias. Example: Default */ @JsonProperty(JSON_PROPERTY_ALIAS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -608,9 +647,9 @@ public String getAliasType() { } /** - * The type of the card alias. Example: Default + * The type of the card alias. Example: Default * - * @param aliasType The type of the card alias. Example: Default + * @param aliasType The type of the card alias. Example: Default */ @JsonProperty(JSON_PROPERTY_ALIAS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -619,9 +658,13 @@ public void setAliasType(String aliasType) { } /** - * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 + * Authorisation code: * When the payment is authorised successfully, this field holds the + * authorisation code for the payment. * When the payment is not authorised, this field is empty. + * Example: 58747 * - * @param authCode Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 + * @param authCode Authorisation code: * When the payment is authorised successfully, this field + * holds the authorisation code for the payment. * When the payment is not authorised, this + * field is empty. Example: 58747 * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon authCode(String authCode) { @@ -630,8 +673,13 @@ public ResponseAdditionalDataCommon authCode(String authCode) { } /** - * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 - * @return authCode Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 + * Authorisation code: * When the payment is authorised successfully, this field holds the + * authorisation code for the payment. * When the payment is not authorised, this field is empty. + * Example: 58747 + * + * @return authCode Authorisation code: * When the payment is authorised successfully, this field + * holds the authorisation code for the payment. * When the payment is not authorised, this + * field is empty. Example: 58747 */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -640,9 +688,13 @@ public String getAuthCode() { } /** - * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 + * Authorisation code: * When the payment is authorised successfully, this field holds the + * authorisation code for the payment. * When the payment is not authorised, this field is empty. + * Example: 58747 * - * @param authCode Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 + * @param authCode Authorisation code: * When the payment is authorised successfully, this field + * holds the authorisation code for the payment. * When the payment is not authorised, this + * field is empty. Example: 58747 */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -663,6 +715,7 @@ public ResponseAdditionalDataCommon authorisationMid(String authorisationMid) { /** * Merchant ID known by the acquirer. + * * @return authorisationMid Merchant ID known by the acquirer. */ @JsonProperty(JSON_PROPERTY_AUTHORISATION_MID) @@ -683,9 +736,11 @@ public void setAuthorisationMid(String authorisationMid) { } /** - * The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The currency of the authorised amount, as a three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). * - * @param authorisedAmountCurrency The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @param authorisedAmountCurrency The currency of the authorised amount, as a three-character + * [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon authorisedAmountCurrency(String authorisedAmountCurrency) { @@ -694,8 +749,11 @@ public ResponseAdditionalDataCommon authorisedAmountCurrency(String authorisedAm } /** - * The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). - * @return authorisedAmountCurrency The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The currency of the authorised amount, as a three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). + * + * @return authorisedAmountCurrency The currency of the authorised amount, as a three-character + * [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_AUTHORISED_AMOUNT_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -704,9 +762,11 @@ public String getAuthorisedAmountCurrency() { } /** - * The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The currency of the authorised amount, as a three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). * - * @param authorisedAmountCurrency The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @param authorisedAmountCurrency The currency of the authorised amount, as a three-character + * [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_AUTHORISED_AMOUNT_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -715,9 +775,12 @@ public void setAuthorisedAmountCurrency(String authorisedAmountCurrency) { } /** - * Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). + * Value of the amount authorised. This amount is represented in minor units according to the + * [following table](https://docs.adyen.com/development-resources/currency-codes). * - * @param authorisedAmountValue Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). + * @param authorisedAmountValue Value of the amount authorised. This amount is represented in + * minor units according to the [following + * table](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon authorisedAmountValue(String authorisedAmountValue) { @@ -726,8 +789,12 @@ public ResponseAdditionalDataCommon authorisedAmountValue(String authorisedAmoun } /** - * Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). - * @return authorisedAmountValue Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). + * Value of the amount authorised. This amount is represented in minor units according to the + * [following table](https://docs.adyen.com/development-resources/currency-codes). + * + * @return authorisedAmountValue Value of the amount authorised. This amount is represented in + * minor units according to the [following + * table](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_AUTHORISED_AMOUNT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -736,9 +803,12 @@ public String getAuthorisedAmountValue() { } /** - * Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). + * Value of the amount authorised. This amount is represented in minor units according to the + * [following table](https://docs.adyen.com/development-resources/currency-codes). * - * @param authorisedAmountValue Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). + * @param authorisedAmountValue Value of the amount authorised. This amount is represented in + * minor units according to the [following + * table](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_AUTHORISED_AMOUNT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -747,9 +817,13 @@ public void setAuthorisedAmountValue(String authorisedAmountValue) { } /** - * The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * The AVS result code of the payment, which provides information about the outcome of the AVS + * check. For possible values, see + * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). * - * @param avsResult The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * @param avsResult The AVS result code of the payment, which provides information about the + * outcome of the AVS check. For possible values, see + * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon avsResult(String avsResult) { @@ -758,8 +832,13 @@ public ResponseAdditionalDataCommon avsResult(String avsResult) { } /** - * The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). - * @return avsResult The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * The AVS result code of the payment, which provides information about the outcome of the AVS + * check. For possible values, see + * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * + * @return avsResult The AVS result code of the payment, which provides information about the + * outcome of the AVS check. For possible values, see + * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). */ @JsonProperty(JSON_PROPERTY_AVS_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -768,9 +847,13 @@ public String getAvsResult() { } /** - * The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * The AVS result code of the payment, which provides information about the outcome of the AVS + * check. For possible values, see + * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). * - * @param avsResult The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * @param avsResult The AVS result code of the payment, which provides information about the + * outcome of the AVS check. For possible values, see + * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). */ @JsonProperty(JSON_PROPERTY_AVS_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -779,9 +862,9 @@ public void setAvsResult(String avsResult) { } /** - * Raw AVS result received from the acquirer, where available. Example: D + * Raw AVS result received from the acquirer, where available. Example: D * - * @param avsResultRaw Raw AVS result received from the acquirer, where available. Example: D + * @param avsResultRaw Raw AVS result received from the acquirer, where available. Example: D * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon avsResultRaw(String avsResultRaw) { @@ -790,8 +873,9 @@ public ResponseAdditionalDataCommon avsResultRaw(String avsResultRaw) { } /** - * Raw AVS result received from the acquirer, where available. Example: D - * @return avsResultRaw Raw AVS result received from the acquirer, where available. Example: D + * Raw AVS result received from the acquirer, where available. Example: D + * + * @return avsResultRaw Raw AVS result received from the acquirer, where available. Example: D */ @JsonProperty(JSON_PROPERTY_AVS_RESULT_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -800,9 +884,9 @@ public String getAvsResultRaw() { } /** - * Raw AVS result received from the acquirer, where available. Example: D + * Raw AVS result received from the acquirer, where available. Example: D * - * @param avsResultRaw Raw AVS result received from the acquirer, where available. Example: D + * @param avsResultRaw Raw AVS result received from the acquirer, where available. Example: D */ @JsonProperty(JSON_PROPERTY_AVS_RESULT_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -811,9 +895,10 @@ public void setAvsResultRaw(String avsResultRaw) { } /** - * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. + * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. * - * @param bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. + * @param bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit + * transactions. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon bic(String bic) { @@ -822,8 +907,10 @@ public ResponseAdditionalDataCommon bic(String bic) { } /** - * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. - * @return bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. + * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. + * + * @return bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit + * transactions. */ @JsonProperty(JSON_PROPERTY_BIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -832,9 +919,10 @@ public String getBic() { } /** - * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. + * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. * - * @param bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. + * @param bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit + * transactions. */ @JsonProperty(JSON_PROPERTY_BIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -855,6 +943,7 @@ public ResponseAdditionalDataCommon coBrandedWith(String coBrandedWith) { /** * Includes the co-branded card information. + * * @return coBrandedWith Includes the co-branded card information. */ @JsonProperty(JSON_PROPERTY_CO_BRANDED_WITH) @@ -887,6 +976,7 @@ public ResponseAdditionalDataCommon cvcResult(String cvcResult) { /** * The result of CVC verification. + * * @return cvcResult The result of CVC verification. */ @JsonProperty(JSON_PROPERTY_CVC_RESULT) @@ -919,6 +1009,7 @@ public ResponseAdditionalDataCommon cvcResultRaw(String cvcResultRaw) { /** * The raw result of CVC verification. + * * @return cvcResultRaw The raw result of CVC verification. */ @JsonProperty(JSON_PROPERTY_CVC_RESULT_RAW) @@ -939,9 +1030,11 @@ public void setCvcResultRaw(String cvcResultRaw) { } /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. + * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a + * single transaction. * - * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. + * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the + * DS to identify a single transaction. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon dsTransID(String dsTransID) { @@ -950,8 +1043,11 @@ public ResponseAdditionalDataCommon dsTransID(String dsTransID) { } /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. - * @return dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. + * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a + * single transaction. + * + * @return dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the + * DS to identify a single transaction. */ @JsonProperty(JSON_PROPERTY_DS_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -960,9 +1056,11 @@ public String getDsTransID() { } /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. + * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a + * single transaction. * - * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. + * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the + * DS to identify a single transaction. */ @JsonProperty(JSON_PROPERTY_DS_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -971,9 +1069,11 @@ public void setDsTransID(String dsTransID) { } /** - * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 + * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. + * Example: 02 * - * @param eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 + * @param eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment + * session. Example: 02 * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon eci(String eci) { @@ -982,8 +1082,11 @@ public ResponseAdditionalDataCommon eci(String eci) { } /** - * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 - * @return eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 + * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. + * Example: 02 + * + * @return eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment + * session. Example: 02 */ @JsonProperty(JSON_PROPERTY_ECI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -992,9 +1095,11 @@ public String getEci() { } /** - * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 + * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. + * Example: 02 * - * @param eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 + * @param eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment + * session. Example: 02 */ @JsonProperty(JSON_PROPERTY_ECI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1003,9 +1108,10 @@ public void setEci(String eci) { } /** - * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. + * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. * - * @param expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. + * @param expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a + * card payment. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon expiryDate(String expiryDate) { @@ -1014,8 +1120,10 @@ public ResponseAdditionalDataCommon expiryDate(String expiryDate) { } /** - * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. - * @return expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. + * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. + * + * @return expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a + * card payment. */ @JsonProperty(JSON_PROPERTY_EXPIRY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1024,9 +1132,10 @@ public String getExpiryDate() { } /** - * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. + * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. * - * @param expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. + * @param expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a + * card payment. */ @JsonProperty(JSON_PROPERTY_EXPIRY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1035,9 +1144,11 @@ public void setExpiryDate(String expiryDate) { } /** - * The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR + * The currency of the extra amount charged due to additional amounts set in the skin used in the + * HPP payment request. Example: EUR * - * @param extraCostsCurrency The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR + * @param extraCostsCurrency The currency of the extra amount charged due to additional amounts + * set in the skin used in the HPP payment request. Example: EUR * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon extraCostsCurrency(String extraCostsCurrency) { @@ -1046,8 +1157,11 @@ public ResponseAdditionalDataCommon extraCostsCurrency(String extraCostsCurrency } /** - * The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR - * @return extraCostsCurrency The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR + * The currency of the extra amount charged due to additional amounts set in the skin used in the + * HPP payment request. Example: EUR + * + * @return extraCostsCurrency The currency of the extra amount charged due to additional amounts + * set in the skin used in the HPP payment request. Example: EUR */ @JsonProperty(JSON_PROPERTY_EXTRA_COSTS_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1056,9 +1170,11 @@ public String getExtraCostsCurrency() { } /** - * The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR + * The currency of the extra amount charged due to additional amounts set in the skin used in the + * HPP payment request. Example: EUR * - * @param extraCostsCurrency The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR + * @param extraCostsCurrency The currency of the extra amount charged due to additional amounts + * set in the skin used in the HPP payment request. Example: EUR */ @JsonProperty(JSON_PROPERTY_EXTRA_COSTS_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1067,9 +1183,11 @@ public void setExtraCostsCurrency(String extraCostsCurrency) { } /** - * The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. + * The value of the extra amount charged due to additional amounts set in the skin used in the HPP + * payment request. The amount is in minor units. * - * @param extraCostsValue The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. + * @param extraCostsValue The value of the extra amount charged due to additional amounts set in + * the skin used in the HPP payment request. The amount is in minor units. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon extraCostsValue(String extraCostsValue) { @@ -1078,8 +1196,11 @@ public ResponseAdditionalDataCommon extraCostsValue(String extraCostsValue) { } /** - * The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. - * @return extraCostsValue The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. + * The value of the extra amount charged due to additional amounts set in the skin used in the HPP + * payment request. The amount is in minor units. + * + * @return extraCostsValue The value of the extra amount charged due to additional amounts set in + * the skin used in the HPP payment request. The amount is in minor units. */ @JsonProperty(JSON_PROPERTY_EXTRA_COSTS_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1088,9 +1209,11 @@ public String getExtraCostsValue() { } /** - * The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. + * The value of the extra amount charged due to additional amounts set in the skin used in the HPP + * payment request. The amount is in minor units. * - * @param extraCostsValue The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. + * @param extraCostsValue The value of the extra amount charged due to additional amounts set in + * the skin used in the HPP payment request. The amount is in minor units. */ @JsonProperty(JSON_PROPERTY_EXTRA_COSTS_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1099,19 +1222,25 @@ public void setExtraCostsValue(String extraCostsValue) { } /** - * The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. + * The fraud score due to a particular fraud check. The fraud check name is found in the key of + * the key-value pair. * - * @param fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. + * @param fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The + * fraud check name is found in the key of the key-value pair. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon fraudCheckItemNrFraudCheckname(String fraudCheckItemNrFraudCheckname) { + public ResponseAdditionalDataCommon fraudCheckItemNrFraudCheckname( + String fraudCheckItemNrFraudCheckname) { this.fraudCheckItemNrFraudCheckname = fraudCheckItemNrFraudCheckname; return this; } /** - * The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. - * @return fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. + * The fraud score due to a particular fraud check. The fraud check name is found in the key of + * the key-value pair. + * + * @return fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The + * fraud check name is found in the key of the key-value pair. */ @JsonProperty(JSON_PROPERTY_FRAUD_CHECK_ITEM_NR_FRAUD_CHECKNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1120,9 +1249,11 @@ public String getFraudCheckItemNrFraudCheckname() { } /** - * The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. + * The fraud score due to a particular fraud check. The fraud check name is found in the key of + * the key-value pair. * - * @param fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. + * @param fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The + * fraud check name is found in the key of the key-value pair. */ @JsonProperty(JSON_PROPERTY_FRAUD_CHECK_ITEM_NR_FRAUD_CHECKNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1143,6 +1274,7 @@ public ResponseAdditionalDataCommon fraudManualReview(String fraudManualReview) /** * Indicates if the payment is sent to manual review. + * * @return fraudManualReview Indicates if the payment is sent to manual review. */ @JsonProperty(JSON_PROPERTY_FRAUD_MANUAL_REVIEW) @@ -1175,6 +1307,7 @@ public ResponseAdditionalDataCommon fraudResultType(FraudResultTypeEnum fraudRes /** * The fraud result properties of the payment. + * * @return fraudResultType The fraud result properties of the payment. */ @JsonProperty(JSON_PROPERTY_FRAUD_RESULT_TYPE) @@ -1195,9 +1328,16 @@ public void setFraudResultType(FraudResultTypeEnum fraudResultType) { } /** - * The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * The risk level of the transaction as classified by the [machine + * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) + * fraud risk rule. The risk level indicates the likelihood that a transaction will result in a + * fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh * - * @param fraudRiskLevel The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * @param fraudRiskLevel The risk level of the transaction as classified by the [machine + * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) + * fraud risk rule. The risk level indicates the likelihood that a transaction will result in + * a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * + * veryHigh * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon fraudRiskLevel(FraudRiskLevelEnum fraudRiskLevel) { @@ -1206,8 +1346,16 @@ public ResponseAdditionalDataCommon fraudRiskLevel(FraudRiskLevelEnum fraudRiskL } /** - * The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh - * @return fraudRiskLevel The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * The risk level of the transaction as classified by the [machine + * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) + * fraud risk rule. The risk level indicates the likelihood that a transaction will result in a + * fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * + * @return fraudRiskLevel The risk level of the transaction as classified by the [machine + * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) + * fraud risk rule. The risk level indicates the likelihood that a transaction will result in + * a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * + * veryHigh */ @JsonProperty(JSON_PROPERTY_FRAUD_RISK_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1216,9 +1364,16 @@ public FraudRiskLevelEnum getFraudRiskLevel() { } /** - * The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * The risk level of the transaction as classified by the [machine + * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) + * fraud risk rule. The risk level indicates the likelihood that a transaction will result in a + * fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh * - * @param fraudRiskLevel The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * @param fraudRiskLevel The risk level of the transaction as classified by the [machine + * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) + * fraud risk rule. The risk level indicates the likelihood that a transaction will result in + * a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * + * veryHigh */ @JsonProperty(JSON_PROPERTY_FRAUD_RISK_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1227,9 +1382,18 @@ public void setFraudRiskLevel(FraudRiskLevelEnum fraudRiskLevel) { } /** - * Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. + * Information regarding the funding type of the card. The possible return values are: * CHARGE * + * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > + * This functionality requires additional configuration on Adyen's end. To enable it, contact + * the Support Team. For receiving this field in the notification, enable **Include Funding + * Source** in **Notifications** > **Additional settings**. * - * @param fundingSource Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. + * @param fundingSource Information regarding the funding type of the card. The possible return + * values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * + * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional + * configuration on Adyen's end. To enable it, contact the Support Team. For receiving + * this field in the notification, enable **Include Funding Source** in **Notifications** > + * **Additional settings**. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon fundingSource(String fundingSource) { @@ -1238,8 +1402,18 @@ public ResponseAdditionalDataCommon fundingSource(String fundingSource) { } /** - * Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. - * @return fundingSource Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. + * Information regarding the funding type of the card. The possible return values are: * CHARGE * + * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > + * This functionality requires additional configuration on Adyen's end. To enable it, contact + * the Support Team. For receiving this field in the notification, enable **Include Funding + * Source** in **Notifications** > **Additional settings**. + * + * @return fundingSource Information regarding the funding type of the card. The possible return + * values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * + * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional + * configuration on Adyen's end. To enable it, contact the Support Team. For receiving + * this field in the notification, enable **Include Funding Source** in **Notifications** > + * **Additional settings**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1248,9 +1422,18 @@ public String getFundingSource() { } /** - * Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. + * Information regarding the funding type of the card. The possible return values are: * CHARGE * + * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > + * This functionality requires additional configuration on Adyen's end. To enable it, contact + * the Support Team. For receiving this field in the notification, enable **Include Funding + * Source** in **Notifications** > **Additional settings**. * - * @param fundingSource Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. + * @param fundingSource Information regarding the funding type of the card. The possible return + * values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * + * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional + * configuration on Adyen's end. To enable it, contact the Support Team. For receiving + * this field in the notification, enable **Include Funding Source** in **Notifications** > + * **Additional settings**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1259,9 +1442,17 @@ public void setFundingSource(String fundingSource) { } /** - * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". + * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * + * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or + * issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you + * verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or + * \"D\". * - * @param fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". + * @param fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds + * are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is + * Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) + * > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is + * \"Y\" or \"D\". * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon fundsAvailability(String fundsAvailability) { @@ -1270,8 +1461,17 @@ public ResponseAdditionalDataCommon fundsAvailability(String fundsAvailability) } /** - * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". - * @return fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". + * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * + * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or + * issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you + * verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or + * \"D\". + * + * @return fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds + * are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is + * Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) + * > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is + * \"Y\" or \"D\". */ @JsonProperty(JSON_PROPERTY_FUNDS_AVAILABILITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1280,9 +1480,17 @@ public String getFundsAvailability() { } /** - * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". + * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * + * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or + * issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you + * verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or + * \"D\". * - * @param fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". + * @param fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds + * are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is + * Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) + * > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is + * \"Y\" or \"D\". */ @JsonProperty(JSON_PROPERTY_FUNDS_AVAILABILITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1291,9 +1499,26 @@ public void setFundsAvailability(String fundsAvailability) { } /** - * Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card - * - * @param inferredRefusalReason Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card + * Provides the more granular indication of why a transaction was refused. When a transaction + * fails with either \"Refused\", \"Restricted Card\", \"Transaction Not + * Permitted\", \"Not supported\" or \"DeclinedNon Generic\" + * refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into + * the refusal reason. If an inferred refusal reason is available, the + * `inferredRefusalReason`, field is populated and the `refusalReason`, is set + * to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * + * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * + * Card Updated * Low Authrate Bin * Non-reloadable prepaid card + * + * @param inferredRefusalReason Provides the more granular indication of why a transaction was + * refused. When a transaction fails with either \"Refused\", \"Restricted + * Card\", \"Transaction Not Permitted\", \"Not supported\" or + * \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its + * PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is + * available, the `inferredRefusalReason`, field is populated and the + * `refusalReason`, is set to \"Not Supported\". Possible values: * 3D + * Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not + * Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable + * prepaid card * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon inferredRefusalReason(String inferredRefusalReason) { @@ -1302,8 +1527,26 @@ public ResponseAdditionalDataCommon inferredRefusalReason(String inferredRefusal } /** - * Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card - * @return inferredRefusalReason Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card + * Provides the more granular indication of why a transaction was refused. When a transaction + * fails with either \"Refused\", \"Restricted Card\", \"Transaction Not + * Permitted\", \"Not supported\" or \"DeclinedNon Generic\" + * refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into + * the refusal reason. If an inferred refusal reason is available, the + * `inferredRefusalReason`, field is populated and the `refusalReason`, is set + * to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * + * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * + * Card Updated * Low Authrate Bin * Non-reloadable prepaid card + * + * @return inferredRefusalReason Provides the more granular indication of why a transaction was + * refused. When a transaction fails with either \"Refused\", \"Restricted + * Card\", \"Transaction Not Permitted\", \"Not supported\" or + * \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its + * PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is + * available, the `inferredRefusalReason`, field is populated and the + * `refusalReason`, is set to \"Not Supported\". Possible values: * 3D + * Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not + * Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable + * prepaid card */ @JsonProperty(JSON_PROPERTY_INFERRED_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1312,9 +1555,26 @@ public String getInferredRefusalReason() { } /** - * Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card - * - * @param inferredRefusalReason Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card + * Provides the more granular indication of why a transaction was refused. When a transaction + * fails with either \"Refused\", \"Restricted Card\", \"Transaction Not + * Permitted\", \"Not supported\" or \"DeclinedNon Generic\" + * refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into + * the refusal reason. If an inferred refusal reason is available, the + * `inferredRefusalReason`, field is populated and the `refusalReason`, is set + * to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * + * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * + * Card Updated * Low Authrate Bin * Non-reloadable prepaid card + * + * @param inferredRefusalReason Provides the more granular indication of why a transaction was + * refused. When a transaction fails with either \"Refused\", \"Restricted + * Card\", \"Transaction Not Permitted\", \"Not supported\" or + * \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its + * PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is + * available, the `inferredRefusalReason`, field is populated and the + * `refusalReason`, is set to \"Not Supported\". Possible values: * 3D + * Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not + * Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable + * prepaid card */ @JsonProperty(JSON_PROPERTY_INFERRED_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1335,6 +1595,7 @@ public ResponseAdditionalDataCommon isCardCommercial(String isCardCommercial) { /** * Indicates if the card is used for business purposes only. + * * @return isCardCommercial Indicates if the card is used for business purposes only. */ @JsonProperty(JSON_PROPERTY_IS_CARD_COMMERCIAL) @@ -1355,9 +1616,10 @@ public void setIsCardCommercial(String isCardCommercial) { } /** - * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP + * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP * - * @param issuerCountry The issuing country of the card based on the BIN list that Adyen maintains. Example: JP + * @param issuerCountry The issuing country of the card based on the BIN list that Adyen + * maintains. Example: JP * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon issuerCountry(String issuerCountry) { @@ -1366,8 +1628,10 @@ public ResponseAdditionalDataCommon issuerCountry(String issuerCountry) { } /** - * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP - * @return issuerCountry The issuing country of the card based on the BIN list that Adyen maintains. Example: JP + * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP + * + * @return issuerCountry The issuing country of the card based on the BIN list that Adyen + * maintains. Example: JP */ @JsonProperty(JSON_PROPERTY_ISSUER_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1376,9 +1640,10 @@ public String getIssuerCountry() { } /** - * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP + * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP * - * @param issuerCountry The issuing country of the card based on the BIN list that Adyen maintains. Example: JP + * @param issuerCountry The issuing country of the card based on the BIN list that Adyen + * maintains. Example: JP */ @JsonProperty(JSON_PROPERTY_ISSUER_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1389,7 +1654,8 @@ public void setIssuerCountry(String issuerCountry) { /** * A Boolean value indicating whether a liability shift was offered for this payment. * - * @param liabilityShift A Boolean value indicating whether a liability shift was offered for this payment. + * @param liabilityShift A Boolean value indicating whether a liability shift was offered for this + * payment. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon liabilityShift(String liabilityShift) { @@ -1399,7 +1665,9 @@ public ResponseAdditionalDataCommon liabilityShift(String liabilityShift) { /** * A Boolean value indicating whether a liability shift was offered for this payment. - * @return liabilityShift A Boolean value indicating whether a liability shift was offered for this payment. + * + * @return liabilityShift A Boolean value indicating whether a liability shift was offered for + * this payment. */ @JsonProperty(JSON_PROPERTY_LIABILITY_SHIFT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1410,7 +1678,8 @@ public String getLiabilityShift() { /** * A Boolean value indicating whether a liability shift was offered for this payment. * - * @param liabilityShift A Boolean value indicating whether a liability shift was offered for this payment. + * @param liabilityShift A Boolean value indicating whether a liability shift was offered for this + * payment. */ @JsonProperty(JSON_PROPERTY_LIABILITY_SHIFT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1419,9 +1688,12 @@ public void setLiabilityShift(String liabilityShift) { } /** - * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. + * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine + * characters long. > Contact Support Team to enable this field. * - * @param mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. + * @param mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six + * characters and a maximum of nine characters long. > Contact Support Team to enable this + * field. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon mcBankNetReferenceNumber(String mcBankNetReferenceNumber) { @@ -1430,8 +1702,12 @@ public ResponseAdditionalDataCommon mcBankNetReferenceNumber(String mcBankNetRef } /** - * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. - * @return mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. + * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine + * characters long. > Contact Support Team to enable this field. + * + * @return mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six + * characters and a maximum of nine characters long. > Contact Support Team to enable this + * field. */ @JsonProperty(JSON_PROPERTY_MC_BANK_NET_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1440,9 +1716,12 @@ public String getMcBankNetReferenceNumber() { } /** - * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. + * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine + * characters long. > Contact Support Team to enable this field. * - * @param mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. + * @param mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six + * characters and a maximum of nine characters long. > Contact Support Team to enable this + * field. */ @JsonProperty(JSON_PROPERTY_MC_BANK_NET_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1451,9 +1730,15 @@ public void setMcBankNetReferenceNumber(String mcBankNetReferenceNumber) { } /** - * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If + * present, the MAC contains information about why the payment failed, and whether it can be + * retried. For more information see [Mastercard Merchant Advice + * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). * - * @param merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * @param merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers + * for refused payments. If present, the MAC contains information about why the payment + * failed, and whether it can be retried. For more information see [Mastercard Merchant Advice + * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon merchantAdviceCode(String merchantAdviceCode) { @@ -1462,8 +1747,15 @@ public ResponseAdditionalDataCommon merchantAdviceCode(String merchantAdviceCode } /** - * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). - * @return merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If + * present, the MAC contains information about why the payment failed, and whether it can be + * retried. For more information see [Mastercard Merchant Advice + * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * + * @return merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers + * for refused payments. If present, the MAC contains information about why the payment + * failed, and whether it can be retried. For more information see [Mastercard Merchant Advice + * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). */ @JsonProperty(JSON_PROPERTY_MERCHANT_ADVICE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1472,9 +1764,15 @@ public String getMerchantAdviceCode() { } /** - * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If + * present, the MAC contains information about why the payment failed, and whether it can be + * retried. For more information see [Mastercard Merchant Advice + * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). * - * @param merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * @param merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers + * for refused payments. If present, the MAC contains information about why the payment + * failed, and whether it can be retried. For more information see [Mastercard Merchant Advice + * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). */ @JsonProperty(JSON_PROPERTY_MERCHANT_ADVICE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1495,6 +1793,7 @@ public ResponseAdditionalDataCommon merchantReference(String merchantReference) /** * The reference provided for the transaction. + * * @return merchantReference The reference provided for the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCE) @@ -1515,9 +1814,13 @@ public void setMerchantReference(String merchantReference) { } /** - * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the + * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either + * the Mastercard Trace ID or the Visa Transaction ID. * - * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are + * using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This + * contains either the Mastercard Trace ID or the Visa Transaction ID. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon networkTxReference(String networkTxReference) { @@ -1526,8 +1829,13 @@ public ResponseAdditionalDataCommon networkTxReference(String networkTxReference } /** - * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. - * @return networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the + * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either + * the Mastercard Trace ID or the Visa Transaction ID. + * + * @return networkTxReference Returned in the response if you are not tokenizing with Adyen and + * are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This + * contains either the Mastercard Trace ID or the Visa Transaction ID. */ @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1536,9 +1844,13 @@ public String getNetworkTxReference() { } /** - * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the + * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either + * the Mastercard Trace ID or the Visa Transaction ID. * - * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are + * using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This + * contains either the Mastercard Trace ID or the Visa Transaction ID. */ @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1547,9 +1859,10 @@ public void setNetworkTxReference(String networkTxReference) { } /** - * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. + * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. * - * @param ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. + * @param ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit + * transactions. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon ownerName(String ownerName) { @@ -1558,8 +1871,10 @@ public ResponseAdditionalDataCommon ownerName(String ownerName) { } /** - * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. - * @return ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. + * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. + * + * @return ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit + * transactions. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1568,9 +1883,10 @@ public String getOwnerName() { } /** - * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. + * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. * - * @param ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. + * @param ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit + * transactions. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1579,9 +1895,12 @@ public void setOwnerName(String ownerName) { } /** - * The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. + * The Payment Account Reference (PAR) value links a network token with the underlying primary + * account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. * - * @param paymentAccountReference The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. + * @param paymentAccountReference The Payment Account Reference (PAR) value links a network token + * with the underlying primary account number (PAN). The PAR value consists of 29 uppercase + * alphanumeric characters. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon paymentAccountReference(String paymentAccountReference) { @@ -1590,8 +1909,12 @@ public ResponseAdditionalDataCommon paymentAccountReference(String paymentAccoun } /** - * The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. - * @return paymentAccountReference The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. + * The Payment Account Reference (PAR) value links a network token with the underlying primary + * account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. + * + * @return paymentAccountReference The Payment Account Reference (PAR) value links a network token + * with the underlying primary account number (PAN). The PAR value consists of 29 uppercase + * alphanumeric characters. */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACCOUNT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1600,9 +1923,12 @@ public String getPaymentAccountReference() { } /** - * The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. + * The Payment Account Reference (PAR) value links a network token with the underlying primary + * account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. * - * @param paymentAccountReference The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. + * @param paymentAccountReference The Payment Account Reference (PAR) value links a network token + * with the underlying primary account number (PAN). The PAR value consists of 29 uppercase + * alphanumeric characters. */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACCOUNT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1623,6 +1949,7 @@ public ResponseAdditionalDataCommon paymentMethod(String paymentMethod) { /** * The payment method used in the transaction. + * * @return paymentMethod The payment method used in the transaction. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @@ -1643,9 +1970,15 @@ public void setPaymentMethod(String paymentMethod) { } /** - * The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro + * The Adyen sub-variant of the payment method used for the payment request. For more information, + * refer to + * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). + * Example: mcpro * - * @param paymentMethodVariant The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro + * @param paymentMethodVariant The Adyen sub-variant of the payment method used for the payment + * request. For more information, refer to + * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). + * Example: mcpro * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon paymentMethodVariant(String paymentMethodVariant) { @@ -1654,8 +1987,15 @@ public ResponseAdditionalDataCommon paymentMethodVariant(String paymentMethodVar } /** - * The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro - * @return paymentMethodVariant The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro + * The Adyen sub-variant of the payment method used for the payment request. For more information, + * refer to + * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). + * Example: mcpro + * + * @return paymentMethodVariant The Adyen sub-variant of the payment method used for the payment + * request. For more information, refer to + * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). + * Example: mcpro */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1664,9 +2004,15 @@ public String getPaymentMethodVariant() { } /** - * The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro + * The Adyen sub-variant of the payment method used for the payment request. For more information, + * refer to + * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). + * Example: mcpro * - * @param paymentMethodVariant The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro + * @param paymentMethodVariant The Adyen sub-variant of the payment method used for the payment + * request. For more information, refer to + * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). + * Example: mcpro */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1675,9 +2021,14 @@ public void setPaymentMethodVariant(String paymentMethodVariant) { } /** - * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) + * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * + * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" + * (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) * - * @param payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) + * @param payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * + * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) + * * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" + * (unknown) * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon payoutEligible(String payoutEligible) { @@ -1686,8 +2037,14 @@ public ResponseAdditionalDataCommon payoutEligible(String payoutEligible) { } /** - * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) - * @return payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) + * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * + * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" + * (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) + * + * @return payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * + * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) + * * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" + * (unknown) */ @JsonProperty(JSON_PROPERTY_PAYOUT_ELIGIBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1696,9 +2053,14 @@ public String getPayoutEligible() { } /** - * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) + * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * + * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" + * (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) * - * @param payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) + * @param payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * + * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) + * * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" + * (unknown) */ @JsonProperty(JSON_PROPERTY_PAYOUT_ELIGIBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1707,19 +2069,27 @@ public void setPayoutEligible(String payoutEligible) { } /** - * The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder + * The response code from the Real Time Account Updater service. Possible return values are: * + * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder * - * @param realtimeAccountUpdaterStatus The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder + * @param realtimeAccountUpdaterStatus The response code from the Real Time Account Updater + * service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * + * ContactCardAccountHolder * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon realtimeAccountUpdaterStatus(String realtimeAccountUpdaterStatus) { + public ResponseAdditionalDataCommon realtimeAccountUpdaterStatus( + String realtimeAccountUpdaterStatus) { this.realtimeAccountUpdaterStatus = realtimeAccountUpdaterStatus; return this; } /** - * The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder - * @return realtimeAccountUpdaterStatus The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder + * The response code from the Real Time Account Updater service. Possible return values are: * + * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder + * + * @return realtimeAccountUpdaterStatus The response code from the Real Time Account Updater + * service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * + * ContactCardAccountHolder */ @JsonProperty(JSON_PROPERTY_REALTIME_ACCOUNT_UPDATER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1728,9 +2098,12 @@ public String getRealtimeAccountUpdaterStatus() { } /** - * The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder + * The response code from the Real Time Account Updater service. Possible return values are: * + * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder * - * @param realtimeAccountUpdaterStatus The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder + * @param realtimeAccountUpdaterStatus The response code from the Real Time Account Updater + * service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * + * ContactCardAccountHolder */ @JsonProperty(JSON_PROPERTY_REALTIME_ACCOUNT_UPDATER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1751,6 +2124,7 @@ public ResponseAdditionalDataCommon receiptFreeText(String receiptFreeText) { /** * Message to be displayed on the terminal. + * * @return receiptFreeText Message to be displayed on the terminal. */ @JsonProperty(JSON_PROPERTY_RECEIPT_FREE_TEXT) @@ -1783,6 +2157,7 @@ public ResponseAdditionalDataCommon recurringContractTypes(String recurringContr /** * The recurring contract types applicable to the transaction. + * * @return recurringContractTypes The recurring contract types applicable to the transaction. */ @JsonProperty(JSON_PROPERTY_RECURRING_CONTRACT_TYPES) @@ -1803,19 +2178,29 @@ public void setRecurringContractTypes(String recurringContractTypes) { } /** - * The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. + * The `pspReference`, of the first recurring payment that created the recurring detail. + * This functionality requires additional configuration on Adyen's end. To enable it, contact + * the Support Team. * - * @param recurringFirstPspReference The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. + * @param recurringFirstPspReference The `pspReference`, of the first recurring payment + * that created the recurring detail. This functionality requires additional configuration on + * Adyen's end. To enable it, contact the Support Team. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon recurringFirstPspReference(String recurringFirstPspReference) { + public ResponseAdditionalDataCommon recurringFirstPspReference( + String recurringFirstPspReference) { this.recurringFirstPspReference = recurringFirstPspReference; return this; } /** - * The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. - * @return recurringFirstPspReference The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. + * The `pspReference`, of the first recurring payment that created the recurring detail. + * This functionality requires additional configuration on Adyen's end. To enable it, contact + * the Support Team. + * + * @return recurringFirstPspReference The `pspReference`, of the first recurring payment + * that created the recurring detail. This functionality requires additional configuration on + * Adyen's end. To enable it, contact the Support Team. */ @JsonProperty(JSON_PROPERTY_RECURRING_FIRST_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1824,9 +2209,13 @@ public String getRecurringFirstPspReference() { } /** - * The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. + * The `pspReference`, of the first recurring payment that created the recurring detail. + * This functionality requires additional configuration on Adyen's end. To enable it, contact + * the Support Team. * - * @param recurringFirstPspReference The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. + * @param recurringFirstPspReference The `pspReference`, of the first recurring payment + * that created the recurring detail. This functionality requires additional configuration on + * Adyen's end. To enable it, contact the Support Team. */ @JsonProperty(JSON_PROPERTY_RECURRING_FIRST_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1837,24 +2226,29 @@ public void setRecurringFirstPspReference(String recurringFirstPspReference) { /** * The reference that uniquely identifies the recurring transaction. * - * @param recurringRecurringDetailReference The reference that uniquely identifies the recurring transaction. + * @param recurringRecurringDetailReference The reference that uniquely identifies the recurring + * transaction. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v68 - * Use tokenization.storedPaymentMethodId instead. + * @deprecated since Adyen Checkout API v68 Use tokenization.storedPaymentMethodId instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use tokenization.storedPaymentMethodId instead. - public ResponseAdditionalDataCommon recurringRecurringDetailReference(String recurringRecurringDetailReference) { + @Deprecated // deprecated since Adyen Checkout API v68: Use tokenization.storedPaymentMethodId + // instead. + public ResponseAdditionalDataCommon recurringRecurringDetailReference( + String recurringRecurringDetailReference) { this.recurringRecurringDetailReference = recurringRecurringDetailReference; return this; } /** * The reference that uniquely identifies the recurring transaction. - * @return recurringRecurringDetailReference The reference that uniquely identifies the recurring transaction. - * @deprecated // deprecated since Adyen Checkout API v68: Use tokenization.storedPaymentMethodId instead. + * + * @return recurringRecurringDetailReference The reference that uniquely identifies the recurring + * transaction. + * @deprecated // deprecated since Adyen Checkout API v68: Use tokenization.storedPaymentMethodId + * instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use tokenization.storedPaymentMethodId instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use tokenization.storedPaymentMethodId + // instead. @JsonProperty(JSON_PROPERTY_RECURRING_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringRecurringDetailReference() { @@ -1864,12 +2258,12 @@ public String getRecurringRecurringDetailReference() { /** * The reference that uniquely identifies the recurring transaction. * - * @param recurringRecurringDetailReference The reference that uniquely identifies the recurring transaction. - * - * @deprecated since Adyen Checkout API v68 - * Use tokenization.storedPaymentMethodId instead. + * @param recurringRecurringDetailReference The reference that uniquely identifies the recurring + * transaction. + * @deprecated since Adyen Checkout API v68 Use tokenization.storedPaymentMethodId instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use tokenization.storedPaymentMethodId instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use tokenization.storedPaymentMethodId + // instead. @JsonProperty(JSON_PROPERTY_RECURRING_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringRecurringDetailReference(String recurringRecurringDetailReference) { @@ -1879,11 +2273,10 @@ public void setRecurringRecurringDetailReference(String recurringRecurringDetail /** * The provided reference of the shopper for a recurring transaction. * - * @param recurringShopperReference The provided reference of the shopper for a recurring transaction. + * @param recurringShopperReference The provided reference of the shopper for a recurring + * transaction. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v68 - * Use tokenization.shopperReference instead. + * @deprecated since Adyen Checkout API v68 Use tokenization.shopperReference instead. */ @Deprecated // deprecated since Adyen Checkout API v68: Use tokenization.shopperReference instead. public ResponseAdditionalDataCommon recurringShopperReference(String recurringShopperReference) { @@ -1893,8 +2286,11 @@ public ResponseAdditionalDataCommon recurringShopperReference(String recurringSh /** * The provided reference of the shopper for a recurring transaction. - * @return recurringShopperReference The provided reference of the shopper for a recurring transaction. - * @deprecated // deprecated since Adyen Checkout API v68: Use tokenization.shopperReference instead. + * + * @return recurringShopperReference The provided reference of the shopper for a recurring + * transaction. + * @deprecated // deprecated since Adyen Checkout API v68: Use tokenization.shopperReference + * instead. */ @Deprecated // deprecated since Adyen Checkout API v68: Use tokenization.shopperReference instead. @JsonProperty(JSON_PROPERTY_RECURRING_SHOPPER_REFERENCE) @@ -1906,10 +2302,9 @@ public String getRecurringShopperReference() { /** * The provided reference of the shopper for a recurring transaction. * - * @param recurringShopperReference The provided reference of the shopper for a recurring transaction. - * - * @deprecated since Adyen Checkout API v68 - * Use tokenization.shopperReference instead. + * @param recurringShopperReference The provided reference of the shopper for a recurring + * transaction. + * @deprecated since Adyen Checkout API v68 Use tokenization.shopperReference instead. */ @Deprecated // deprecated since Adyen Checkout API v68: Use tokenization.shopperReference instead. @JsonProperty(JSON_PROPERTY_RECURRING_SHOPPER_REFERENCE) @@ -1924,13 +2319,15 @@ public void setRecurringShopperReference(String recurringShopperReference) { * @param recurringProcessingModel The processing model used for the recurring transaction. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon recurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) { + public ResponseAdditionalDataCommon recurringProcessingModel( + RecurringProcessingModelEnum recurringProcessingModel) { this.recurringProcessingModel = recurringProcessingModel; return this; } /** * The processing model used for the recurring transaction. + * * @return recurringProcessingModel The processing model used for the recurring transaction. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @@ -1951,9 +2348,12 @@ public void setRecurringProcessingModel(RecurringProcessingModelEnum recurringPr } /** - * If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true + * If the payment is referred, this field is set to true. This field is unavailable if the payment + * is referred and is usually not returned with ecommerce transactions. Example: true * - * @param referred If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true + * @param referred If the payment is referred, this field is set to true. This field is + * unavailable if the payment is referred and is usually not returned with ecommerce + * transactions. Example: true * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon referred(String referred) { @@ -1962,8 +2362,12 @@ public ResponseAdditionalDataCommon referred(String referred) { } /** - * If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true - * @return referred If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true + * If the payment is referred, this field is set to true. This field is unavailable if the payment + * is referred and is usually not returned with ecommerce transactions. Example: true + * + * @return referred If the payment is referred, this field is set to true. This field is + * unavailable if the payment is referred and is usually not returned with ecommerce + * transactions. Example: true */ @JsonProperty(JSON_PROPERTY_REFERRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1972,9 +2376,12 @@ public String getReferred() { } /** - * If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true + * If the payment is referred, this field is set to true. This field is unavailable if the payment + * is referred and is usually not returned with ecommerce transactions. Example: true * - * @param referred If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true + * @param referred If the payment is referred, this field is set to true. This field is + * unavailable if the payment is referred and is usually not returned with ecommerce + * transactions. Example: true */ @JsonProperty(JSON_PROPERTY_REFERRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1983,9 +2390,10 @@ public void setReferred(String referred) { } /** - * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED + * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED * - * @param refusalReasonRaw Raw refusal reason received from the acquirer, where available. Example: AUTHORISED + * @param refusalReasonRaw Raw refusal reason received from the acquirer, where available. + * Example: AUTHORISED * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon refusalReasonRaw(String refusalReasonRaw) { @@ -1994,8 +2402,10 @@ public ResponseAdditionalDataCommon refusalReasonRaw(String refusalReasonRaw) { } /** - * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED - * @return refusalReasonRaw Raw refusal reason received from the acquirer, where available. Example: AUTHORISED + * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED + * + * @return refusalReasonRaw Raw refusal reason received from the acquirer, where available. + * Example: AUTHORISED */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2004,9 +2414,10 @@ public String getRefusalReasonRaw() { } /** - * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED + * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED * - * @param refusalReasonRaw Raw refusal reason received from the acquirer, where available. Example: AUTHORISED + * @param refusalReasonRaw Raw refusal reason received from the acquirer, where available. + * Example: AUTHORISED */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2027,6 +2438,7 @@ public ResponseAdditionalDataCommon requestAmount(String requestAmount) { /** * The amount of the payment request. + * * @return requestAmount The amount of the payment request. */ @JsonProperty(JSON_PROPERTY_REQUEST_AMOUNT) @@ -2059,6 +2471,7 @@ public ResponseAdditionalDataCommon requestCurrencyCode(String requestCurrencyCo /** * The currency of the payment request. + * * @return requestCurrencyCode The currency of the payment request. */ @JsonProperty(JSON_PROPERTY_REQUEST_CURRENCY_CODE) @@ -2079,9 +2492,10 @@ public void setRequestCurrencyCode(String requestCurrencyCode) { } /** - * The shopper interaction type of the payment request. Example: Ecommerce + * The shopper interaction type of the payment request. Example: Ecommerce * - * @param shopperInteraction The shopper interaction type of the payment request. Example: Ecommerce + * @param shopperInteraction The shopper interaction type of the payment request. Example: + * Ecommerce * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon shopperInteraction(String shopperInteraction) { @@ -2090,8 +2504,10 @@ public ResponseAdditionalDataCommon shopperInteraction(String shopperInteraction } /** - * The shopper interaction type of the payment request. Example: Ecommerce - * @return shopperInteraction The shopper interaction type of the payment request. Example: Ecommerce + * The shopper interaction type of the payment request. Example: Ecommerce + * + * @return shopperInteraction The shopper interaction type of the payment request. Example: + * Ecommerce */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2100,9 +2516,10 @@ public String getShopperInteraction() { } /** - * The shopper interaction type of the payment request. Example: Ecommerce + * The shopper interaction type of the payment request. Example: Ecommerce * - * @param shopperInteraction The shopper interaction type of the payment request. Example: Ecommerce + * @param shopperInteraction The shopper interaction type of the payment request. Example: + * Ecommerce */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2111,9 +2528,10 @@ public void setShopperInteraction(String shopperInteraction) { } /** - * The shopperReference passed in the payment request. Example: AdyenTestShopperXX + * The shopperReference passed in the payment request. Example: AdyenTestShopperXX * - * @param shopperReference The shopperReference passed in the payment request. Example: AdyenTestShopperXX + * @param shopperReference The shopperReference passed in the payment request. Example: + * AdyenTestShopperXX * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon shopperReference(String shopperReference) { @@ -2122,8 +2540,10 @@ public ResponseAdditionalDataCommon shopperReference(String shopperReference) { } /** - * The shopperReference passed in the payment request. Example: AdyenTestShopperXX - * @return shopperReference The shopperReference passed in the payment request. Example: AdyenTestShopperXX + * The shopperReference passed in the payment request. Example: AdyenTestShopperXX + * + * @return shopperReference The shopperReference passed in the payment request. Example: + * AdyenTestShopperXX */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2132,9 +2552,10 @@ public String getShopperReference() { } /** - * The shopperReference passed in the payment request. Example: AdyenTestShopperXX + * The shopperReference passed in the payment request. Example: AdyenTestShopperXX * - * @param shopperReference The shopperReference passed in the payment request. Example: AdyenTestShopperXX + * @param shopperReference The shopperReference passed in the payment request. Example: + * AdyenTestShopperXX */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2143,9 +2564,9 @@ public void setShopperReference(String shopperReference) { } /** - * The terminal ID used in a point-of-sale payment. Example: 06022622 + * The terminal ID used in a point-of-sale payment. Example: 06022622 * - * @param terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 + * @param terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon terminalId(String terminalId) { @@ -2154,8 +2575,9 @@ public ResponseAdditionalDataCommon terminalId(String terminalId) { } /** - * The terminal ID used in a point-of-sale payment. Example: 06022622 - * @return terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 + * The terminal ID used in a point-of-sale payment. Example: 06022622 + * + * @return terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 */ @JsonProperty(JSON_PROPERTY_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2164,9 +2586,9 @@ public String getTerminalId() { } /** - * The terminal ID used in a point-of-sale payment. Example: 06022622 + * The terminal ID used in a point-of-sale payment. Example: 06022622 * - * @param terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 + * @param terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 */ @JsonProperty(JSON_PROPERTY_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2175,9 +2597,11 @@ public void setTerminalId(String terminalId) { } /** - * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: + * true * - * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed + * on this payment. Example: true * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon threeDAuthenticated(String threeDAuthenticated) { @@ -2186,8 +2610,11 @@ public ResponseAdditionalDataCommon threeDAuthenticated(String threeDAuthenticat } /** - * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true - * @return threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: + * true + * + * @return threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed + * on this payment. Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2196,9 +2623,11 @@ public String getThreeDAuthenticated() { } /** - * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: + * true * - * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed + * on this payment. Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2207,19 +2636,23 @@ public void setThreeDAuthenticated(String threeDAuthenticated) { } /** - * The raw 3DS authentication result from the card issuer. Example: N + * The raw 3DS authentication result from the card issuer. Example: N * - * @param threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. Example: N + * @param threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. + * Example: N * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon threeDAuthenticatedResponse(String threeDAuthenticatedResponse) { + public ResponseAdditionalDataCommon threeDAuthenticatedResponse( + String threeDAuthenticatedResponse) { this.threeDAuthenticatedResponse = threeDAuthenticatedResponse; return this; } /** - * The raw 3DS authentication result from the card issuer. Example: N - * @return threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. Example: N + * The raw 3DS authentication result from the card issuer. Example: N + * + * @return threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. + * Example: N */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2228,9 +2661,10 @@ public String getThreeDAuthenticatedResponse() { } /** - * The raw 3DS authentication result from the card issuer. Example: N + * The raw 3DS authentication result from the card issuer. Example: N * - * @param threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. Example: N + * @param threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. + * Example: N */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2239,9 +2673,10 @@ public void setThreeDAuthenticatedResponse(String threeDAuthenticatedResponse) { } /** - * A Boolean value indicating whether 3DS was offered for this payment. Example: true + * A Boolean value indicating whether 3DS was offered for this payment. Example: true * - * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. Example: true + * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. + * Example: true * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon threeDOffered(String threeDOffered) { @@ -2250,8 +2685,10 @@ public ResponseAdditionalDataCommon threeDOffered(String threeDOffered) { } /** - * A Boolean value indicating whether 3DS was offered for this payment. Example: true - * @return threeDOffered A Boolean value indicating whether 3DS was offered for this payment. Example: true + * A Boolean value indicating whether 3DS was offered for this payment. Example: true + * + * @return threeDOffered A Boolean value indicating whether 3DS was offered for this payment. + * Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2260,9 +2697,10 @@ public String getThreeDOffered() { } /** - * A Boolean value indicating whether 3DS was offered for this payment. Example: true + * A Boolean value indicating whether 3DS was offered for this payment. Example: true * - * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. Example: true + * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. + * Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2271,9 +2709,10 @@ public void setThreeDOffered(String threeDOffered) { } /** - * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y + * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y * - * @param threeDOfferedResponse The raw enrollment result from the 3DS directory services of the card schemes. Example: Y + * @param threeDOfferedResponse The raw enrollment result from the 3DS directory services of the + * card schemes. Example: Y * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon threeDOfferedResponse(String threeDOfferedResponse) { @@ -2282,8 +2721,10 @@ public ResponseAdditionalDataCommon threeDOfferedResponse(String threeDOfferedRe } /** - * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y - * @return threeDOfferedResponse The raw enrollment result from the 3DS directory services of the card schemes. Example: Y + * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y + * + * @return threeDOfferedResponse The raw enrollment result from the 3DS directory services of the + * card schemes. Example: Y */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2292,9 +2733,10 @@ public String getThreeDOfferedResponse() { } /** - * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y + * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y * - * @param threeDOfferedResponse The raw enrollment result from the 3DS directory services of the card schemes. Example: Y + * @param threeDOfferedResponse The raw enrollment result from the 3DS directory services of the + * card schemes. Example: Y */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2315,6 +2757,7 @@ public ResponseAdditionalDataCommon threeDSVersion(String threeDSVersion) { /** * The 3D Secure 2 version. + * * @return threeDSVersion The 3D Secure 2 version. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_VERSION) @@ -2337,17 +2780,21 @@ public void setThreeDSVersion(String threeDSVersion) { /** * The reference for the shopper that you sent when tokenizing the payment details. * - * @param tokenizationShopperReference The reference for the shopper that you sent when tokenizing the payment details. + * @param tokenizationShopperReference The reference for the shopper that you sent when tokenizing + * the payment details. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon tokenizationShopperReference(String tokenizationShopperReference) { + public ResponseAdditionalDataCommon tokenizationShopperReference( + String tokenizationShopperReference) { this.tokenizationShopperReference = tokenizationShopperReference; return this; } /** * The reference for the shopper that you sent when tokenizing the payment details. - * @return tokenizationShopperReference The reference for the shopper that you sent when tokenizing the payment details. + * + * @return tokenizationShopperReference The reference for the shopper that you sent when + * tokenizing the payment details. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2358,7 +2805,8 @@ public String getTokenizationShopperReference() { /** * The reference for the shopper that you sent when tokenizing the payment details. * - * @param tokenizationShopperReference The reference for the shopper that you sent when tokenizing the payment details. + * @param tokenizationShopperReference The reference for the shopper that you sent when tokenizing + * the payment details. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2367,19 +2815,29 @@ public void setTokenizationShopperReference(String tokenizationShopperReference) } /** - * The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. + * The operation performed on the token. Possible values: * **created**: the token has been + * created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details + * have already been stored. * - * @param tokenizationStoreOperationType The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. + * @param tokenizationStoreOperationType The operation performed on the token. Possible values: * + * **created**: the token has been created. * **updated**: the existing token has been + * updated. * **alreadyExisting**: the details have already been stored. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon tokenizationStoreOperationType(TokenizationStoreOperationTypeEnum tokenizationStoreOperationType) { + public ResponseAdditionalDataCommon tokenizationStoreOperationType( + TokenizationStoreOperationTypeEnum tokenizationStoreOperationType) { this.tokenizationStoreOperationType = tokenizationStoreOperationType; return this; } /** - * The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. - * @return tokenizationStoreOperationType The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. + * The operation performed on the token. Possible values: * **created**: the token has been + * created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details + * have already been stored. + * + * @return tokenizationStoreOperationType The operation performed on the token. Possible values: * + * **created**: the token has been created. * **updated**: the existing token has been + * updated. * **alreadyExisting**: the details have already been stored. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_STORE_OPERATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2388,30 +2846,39 @@ public TokenizationStoreOperationTypeEnum getTokenizationStoreOperationType() { } /** - * The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. + * The operation performed on the token. Possible values: * **created**: the token has been + * created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details + * have already been stored. * - * @param tokenizationStoreOperationType The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. + * @param tokenizationStoreOperationType The operation performed on the token. Possible values: * + * **created**: the token has been created. * **updated**: the existing token has been + * updated. * **alreadyExisting**: the details have already been stored. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_STORE_OPERATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTokenizationStoreOperationType(TokenizationStoreOperationTypeEnum tokenizationStoreOperationType) { + public void setTokenizationStoreOperationType( + TokenizationStoreOperationTypeEnum tokenizationStoreOperationType) { this.tokenizationStoreOperationType = tokenizationStoreOperationType; } /** * The reference that uniquely identifies tokenized payment details. * - * @param tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized payment details. + * @param tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized + * payment details. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon tokenizationStoredPaymentMethodId(String tokenizationStoredPaymentMethodId) { + public ResponseAdditionalDataCommon tokenizationStoredPaymentMethodId( + String tokenizationStoredPaymentMethodId) { this.tokenizationStoredPaymentMethodId = tokenizationStoredPaymentMethodId; return this; } /** * The reference that uniquely identifies tokenized payment details. - * @return tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized payment details. + * + * @return tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized + * payment details. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2422,7 +2889,8 @@ public String getTokenizationStoredPaymentMethodId() { /** * The reference that uniquely identifies tokenized payment details. * - * @param tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized payment details. + * @param tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized + * payment details. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2431,9 +2899,11 @@ public void setTokenizationStoredPaymentMethodId(String tokenizationStoredPaymen } /** - * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. + * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact + * Support Team to enable this field. * - * @param visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. + * @param visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric + * characters. > Contact Support Team to enable this field. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon visaTransactionId(String visaTransactionId) { @@ -2442,8 +2912,11 @@ public ResponseAdditionalDataCommon visaTransactionId(String visaTransactionId) } /** - * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. - * @return visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. + * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact + * Support Team to enable this field. + * + * @return visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric + * characters. > Contact Support Team to enable this field. */ @JsonProperty(JSON_PROPERTY_VISA_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2452,9 +2925,11 @@ public String getVisaTransactionId() { } /** - * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. + * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact + * Support Team to enable this field. * - * @param visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. + * @param visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric + * characters. > Contact Support Team to enable this field. */ @JsonProperty(JSON_PROPERTY_VISA_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2463,9 +2938,13 @@ public void setVisaTransactionId(String visaTransactionId) { } /** - * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= + * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded + * and is returned for transactions with directoryResponse 'N' or 'Y'. Example: + * ODgxNDc2MDg2MDExODk5MAAAAAA= * - * @param xid The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= + * @param xid The 3DS transaction ID of the 3DS session sent in notifications. The value is + * Base64-encoded and is returned for transactions with directoryResponse 'N' or + * 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon xid(String xid) { @@ -2474,8 +2953,13 @@ public ResponseAdditionalDataCommon xid(String xid) { } /** - * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= - * @return xid The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= + * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded + * and is returned for transactions with directoryResponse 'N' or 'Y'. Example: + * ODgxNDc2MDg2MDExODk5MAAAAAA= + * + * @return xid The 3DS transaction ID of the 3DS session sent in notifications. The value is + * Base64-encoded and is returned for transactions with directoryResponse 'N' or + * 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= */ @JsonProperty(JSON_PROPERTY_XID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2484,9 +2968,13 @@ public String getXid() { } /** - * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= + * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded + * and is returned for transactions with directoryResponse 'N' or 'Y'. Example: + * ODgxNDc2MDg2MDExODk5MAAAAAA= * - * @param xid The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= + * @param xid The 3DS transaction ID of the 3DS session sent in notifications. The value is + * Base64-encoded and is returned for transactions with directoryResponse 'N' or + * 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= */ @JsonProperty(JSON_PROPERTY_XID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2494,9 +2982,7 @@ public void setXid(String xid) { this.xid = xid; } - /** - * Return true if this ResponseAdditionalDataCommon object is equal to o. - */ + /** Return true if this ResponseAdditionalDataCommon object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -2506,89 +2992,187 @@ public boolean equals(Object o) { return false; } ResponseAdditionalDataCommon responseAdditionalDataCommon = (ResponseAdditionalDataCommon) o; - return Objects.equals(this.acquirerAccountCode, responseAdditionalDataCommon.acquirerAccountCode) && - Objects.equals(this.acquirerCode, responseAdditionalDataCommon.acquirerCode) && - Objects.equals(this.acquirerReference, responseAdditionalDataCommon.acquirerReference) && - Objects.equals(this.alias, responseAdditionalDataCommon.alias) && - Objects.equals(this.aliasType, responseAdditionalDataCommon.aliasType) && - Objects.equals(this.authCode, responseAdditionalDataCommon.authCode) && - Objects.equals(this.authorisationMid, responseAdditionalDataCommon.authorisationMid) && - Objects.equals(this.authorisedAmountCurrency, responseAdditionalDataCommon.authorisedAmountCurrency) && - Objects.equals(this.authorisedAmountValue, responseAdditionalDataCommon.authorisedAmountValue) && - Objects.equals(this.avsResult, responseAdditionalDataCommon.avsResult) && - Objects.equals(this.avsResultRaw, responseAdditionalDataCommon.avsResultRaw) && - Objects.equals(this.bic, responseAdditionalDataCommon.bic) && - Objects.equals(this.coBrandedWith, responseAdditionalDataCommon.coBrandedWith) && - Objects.equals(this.cvcResult, responseAdditionalDataCommon.cvcResult) && - Objects.equals(this.cvcResultRaw, responseAdditionalDataCommon.cvcResultRaw) && - Objects.equals(this.dsTransID, responseAdditionalDataCommon.dsTransID) && - Objects.equals(this.eci, responseAdditionalDataCommon.eci) && - Objects.equals(this.expiryDate, responseAdditionalDataCommon.expiryDate) && - Objects.equals(this.extraCostsCurrency, responseAdditionalDataCommon.extraCostsCurrency) && - Objects.equals(this.extraCostsValue, responseAdditionalDataCommon.extraCostsValue) && - Objects.equals(this.fraudCheckItemNrFraudCheckname, responseAdditionalDataCommon.fraudCheckItemNrFraudCheckname) && - Objects.equals(this.fraudManualReview, responseAdditionalDataCommon.fraudManualReview) && - Objects.equals(this.fraudResultType, responseAdditionalDataCommon.fraudResultType) && - Objects.equals(this.fraudRiskLevel, responseAdditionalDataCommon.fraudRiskLevel) && - Objects.equals(this.fundingSource, responseAdditionalDataCommon.fundingSource) && - Objects.equals(this.fundsAvailability, responseAdditionalDataCommon.fundsAvailability) && - Objects.equals(this.inferredRefusalReason, responseAdditionalDataCommon.inferredRefusalReason) && - Objects.equals(this.isCardCommercial, responseAdditionalDataCommon.isCardCommercial) && - Objects.equals(this.issuerCountry, responseAdditionalDataCommon.issuerCountry) && - Objects.equals(this.liabilityShift, responseAdditionalDataCommon.liabilityShift) && - Objects.equals(this.mcBankNetReferenceNumber, responseAdditionalDataCommon.mcBankNetReferenceNumber) && - Objects.equals(this.merchantAdviceCode, responseAdditionalDataCommon.merchantAdviceCode) && - Objects.equals(this.merchantReference, responseAdditionalDataCommon.merchantReference) && - Objects.equals(this.networkTxReference, responseAdditionalDataCommon.networkTxReference) && - Objects.equals(this.ownerName, responseAdditionalDataCommon.ownerName) && - Objects.equals(this.paymentAccountReference, responseAdditionalDataCommon.paymentAccountReference) && - Objects.equals(this.paymentMethod, responseAdditionalDataCommon.paymentMethod) && - Objects.equals(this.paymentMethodVariant, responseAdditionalDataCommon.paymentMethodVariant) && - Objects.equals(this.payoutEligible, responseAdditionalDataCommon.payoutEligible) && - Objects.equals(this.realtimeAccountUpdaterStatus, responseAdditionalDataCommon.realtimeAccountUpdaterStatus) && - Objects.equals(this.receiptFreeText, responseAdditionalDataCommon.receiptFreeText) && - Objects.equals(this.recurringContractTypes, responseAdditionalDataCommon.recurringContractTypes) && - Objects.equals(this.recurringFirstPspReference, responseAdditionalDataCommon.recurringFirstPspReference) && - Objects.equals(this.recurringRecurringDetailReference, responseAdditionalDataCommon.recurringRecurringDetailReference) && - Objects.equals(this.recurringShopperReference, responseAdditionalDataCommon.recurringShopperReference) && - Objects.equals(this.recurringProcessingModel, responseAdditionalDataCommon.recurringProcessingModel) && - Objects.equals(this.referred, responseAdditionalDataCommon.referred) && - Objects.equals(this.refusalReasonRaw, responseAdditionalDataCommon.refusalReasonRaw) && - Objects.equals(this.requestAmount, responseAdditionalDataCommon.requestAmount) && - Objects.equals(this.requestCurrencyCode, responseAdditionalDataCommon.requestCurrencyCode) && - Objects.equals(this.shopperInteraction, responseAdditionalDataCommon.shopperInteraction) && - Objects.equals(this.shopperReference, responseAdditionalDataCommon.shopperReference) && - Objects.equals(this.terminalId, responseAdditionalDataCommon.terminalId) && - Objects.equals(this.threeDAuthenticated, responseAdditionalDataCommon.threeDAuthenticated) && - Objects.equals(this.threeDAuthenticatedResponse, responseAdditionalDataCommon.threeDAuthenticatedResponse) && - Objects.equals(this.threeDOffered, responseAdditionalDataCommon.threeDOffered) && - Objects.equals(this.threeDOfferedResponse, responseAdditionalDataCommon.threeDOfferedResponse) && - Objects.equals(this.threeDSVersion, responseAdditionalDataCommon.threeDSVersion) && - Objects.equals(this.tokenizationShopperReference, responseAdditionalDataCommon.tokenizationShopperReference) && - Objects.equals(this.tokenizationStoreOperationType, responseAdditionalDataCommon.tokenizationStoreOperationType) && - Objects.equals(this.tokenizationStoredPaymentMethodId, responseAdditionalDataCommon.tokenizationStoredPaymentMethodId) && - Objects.equals(this.visaTransactionId, responseAdditionalDataCommon.visaTransactionId) && - Objects.equals(this.xid, responseAdditionalDataCommon.xid); + return Objects.equals( + this.acquirerAccountCode, responseAdditionalDataCommon.acquirerAccountCode) + && Objects.equals(this.acquirerCode, responseAdditionalDataCommon.acquirerCode) + && Objects.equals(this.acquirerReference, responseAdditionalDataCommon.acquirerReference) + && Objects.equals(this.alias, responseAdditionalDataCommon.alias) + && Objects.equals(this.aliasType, responseAdditionalDataCommon.aliasType) + && Objects.equals(this.authCode, responseAdditionalDataCommon.authCode) + && Objects.equals(this.authorisationMid, responseAdditionalDataCommon.authorisationMid) + && Objects.equals( + this.authorisedAmountCurrency, responseAdditionalDataCommon.authorisedAmountCurrency) + && Objects.equals( + this.authorisedAmountValue, responseAdditionalDataCommon.authorisedAmountValue) + && Objects.equals(this.avsResult, responseAdditionalDataCommon.avsResult) + && Objects.equals(this.avsResultRaw, responseAdditionalDataCommon.avsResultRaw) + && Objects.equals(this.bic, responseAdditionalDataCommon.bic) + && Objects.equals(this.coBrandedWith, responseAdditionalDataCommon.coBrandedWith) + && Objects.equals(this.cvcResult, responseAdditionalDataCommon.cvcResult) + && Objects.equals(this.cvcResultRaw, responseAdditionalDataCommon.cvcResultRaw) + && Objects.equals(this.dsTransID, responseAdditionalDataCommon.dsTransID) + && Objects.equals(this.eci, responseAdditionalDataCommon.eci) + && Objects.equals(this.expiryDate, responseAdditionalDataCommon.expiryDate) + && Objects.equals(this.extraCostsCurrency, responseAdditionalDataCommon.extraCostsCurrency) + && Objects.equals(this.extraCostsValue, responseAdditionalDataCommon.extraCostsValue) + && Objects.equals( + this.fraudCheckItemNrFraudCheckname, + responseAdditionalDataCommon.fraudCheckItemNrFraudCheckname) + && Objects.equals(this.fraudManualReview, responseAdditionalDataCommon.fraudManualReview) + && Objects.equals(this.fraudResultType, responseAdditionalDataCommon.fraudResultType) + && Objects.equals(this.fraudRiskLevel, responseAdditionalDataCommon.fraudRiskLevel) + && Objects.equals(this.fundingSource, responseAdditionalDataCommon.fundingSource) + && Objects.equals(this.fundsAvailability, responseAdditionalDataCommon.fundsAvailability) + && Objects.equals( + this.inferredRefusalReason, responseAdditionalDataCommon.inferredRefusalReason) + && Objects.equals(this.isCardCommercial, responseAdditionalDataCommon.isCardCommercial) + && Objects.equals(this.issuerCountry, responseAdditionalDataCommon.issuerCountry) + && Objects.equals(this.liabilityShift, responseAdditionalDataCommon.liabilityShift) + && Objects.equals( + this.mcBankNetReferenceNumber, responseAdditionalDataCommon.mcBankNetReferenceNumber) + && Objects.equals(this.merchantAdviceCode, responseAdditionalDataCommon.merchantAdviceCode) + && Objects.equals(this.merchantReference, responseAdditionalDataCommon.merchantReference) + && Objects.equals(this.networkTxReference, responseAdditionalDataCommon.networkTxReference) + && Objects.equals(this.ownerName, responseAdditionalDataCommon.ownerName) + && Objects.equals( + this.paymentAccountReference, responseAdditionalDataCommon.paymentAccountReference) + && Objects.equals(this.paymentMethod, responseAdditionalDataCommon.paymentMethod) + && Objects.equals( + this.paymentMethodVariant, responseAdditionalDataCommon.paymentMethodVariant) + && Objects.equals(this.payoutEligible, responseAdditionalDataCommon.payoutEligible) + && Objects.equals( + this.realtimeAccountUpdaterStatus, + responseAdditionalDataCommon.realtimeAccountUpdaterStatus) + && Objects.equals(this.receiptFreeText, responseAdditionalDataCommon.receiptFreeText) + && Objects.equals( + this.recurringContractTypes, responseAdditionalDataCommon.recurringContractTypes) + && Objects.equals( + this.recurringFirstPspReference, + responseAdditionalDataCommon.recurringFirstPspReference) + && Objects.equals( + this.recurringRecurringDetailReference, + responseAdditionalDataCommon.recurringRecurringDetailReference) + && Objects.equals( + this.recurringShopperReference, responseAdditionalDataCommon.recurringShopperReference) + && Objects.equals( + this.recurringProcessingModel, responseAdditionalDataCommon.recurringProcessingModel) + && Objects.equals(this.referred, responseAdditionalDataCommon.referred) + && Objects.equals(this.refusalReasonRaw, responseAdditionalDataCommon.refusalReasonRaw) + && Objects.equals(this.requestAmount, responseAdditionalDataCommon.requestAmount) + && Objects.equals( + this.requestCurrencyCode, responseAdditionalDataCommon.requestCurrencyCode) + && Objects.equals(this.shopperInteraction, responseAdditionalDataCommon.shopperInteraction) + && Objects.equals(this.shopperReference, responseAdditionalDataCommon.shopperReference) + && Objects.equals(this.terminalId, responseAdditionalDataCommon.terminalId) + && Objects.equals( + this.threeDAuthenticated, responseAdditionalDataCommon.threeDAuthenticated) + && Objects.equals( + this.threeDAuthenticatedResponse, + responseAdditionalDataCommon.threeDAuthenticatedResponse) + && Objects.equals(this.threeDOffered, responseAdditionalDataCommon.threeDOffered) + && Objects.equals( + this.threeDOfferedResponse, responseAdditionalDataCommon.threeDOfferedResponse) + && Objects.equals(this.threeDSVersion, responseAdditionalDataCommon.threeDSVersion) + && Objects.equals( + this.tokenizationShopperReference, + responseAdditionalDataCommon.tokenizationShopperReference) + && Objects.equals( + this.tokenizationStoreOperationType, + responseAdditionalDataCommon.tokenizationStoreOperationType) + && Objects.equals( + this.tokenizationStoredPaymentMethodId, + responseAdditionalDataCommon.tokenizationStoredPaymentMethodId) + && Objects.equals(this.visaTransactionId, responseAdditionalDataCommon.visaTransactionId) + && Objects.equals(this.xid, responseAdditionalDataCommon.xid); } @Override public int hashCode() { - return Objects.hash(acquirerAccountCode, acquirerCode, acquirerReference, alias, aliasType, authCode, authorisationMid, authorisedAmountCurrency, authorisedAmountValue, avsResult, avsResultRaw, bic, coBrandedWith, cvcResult, cvcResultRaw, dsTransID, eci, expiryDate, extraCostsCurrency, extraCostsValue, fraudCheckItemNrFraudCheckname, fraudManualReview, fraudResultType, fraudRiskLevel, fundingSource, fundsAvailability, inferredRefusalReason, isCardCommercial, issuerCountry, liabilityShift, mcBankNetReferenceNumber, merchantAdviceCode, merchantReference, networkTxReference, ownerName, paymentAccountReference, paymentMethod, paymentMethodVariant, payoutEligible, realtimeAccountUpdaterStatus, receiptFreeText, recurringContractTypes, recurringFirstPspReference, recurringRecurringDetailReference, recurringShopperReference, recurringProcessingModel, referred, refusalReasonRaw, requestAmount, requestCurrencyCode, shopperInteraction, shopperReference, terminalId, threeDAuthenticated, threeDAuthenticatedResponse, threeDOffered, threeDOfferedResponse, threeDSVersion, tokenizationShopperReference, tokenizationStoreOperationType, tokenizationStoredPaymentMethodId, visaTransactionId, xid); + return Objects.hash( + acquirerAccountCode, + acquirerCode, + acquirerReference, + alias, + aliasType, + authCode, + authorisationMid, + authorisedAmountCurrency, + authorisedAmountValue, + avsResult, + avsResultRaw, + bic, + coBrandedWith, + cvcResult, + cvcResultRaw, + dsTransID, + eci, + expiryDate, + extraCostsCurrency, + extraCostsValue, + fraudCheckItemNrFraudCheckname, + fraudManualReview, + fraudResultType, + fraudRiskLevel, + fundingSource, + fundsAvailability, + inferredRefusalReason, + isCardCommercial, + issuerCountry, + liabilityShift, + mcBankNetReferenceNumber, + merchantAdviceCode, + merchantReference, + networkTxReference, + ownerName, + paymentAccountReference, + paymentMethod, + paymentMethodVariant, + payoutEligible, + realtimeAccountUpdaterStatus, + receiptFreeText, + recurringContractTypes, + recurringFirstPspReference, + recurringRecurringDetailReference, + recurringShopperReference, + recurringProcessingModel, + referred, + refusalReasonRaw, + requestAmount, + requestCurrencyCode, + shopperInteraction, + shopperReference, + terminalId, + threeDAuthenticated, + threeDAuthenticatedResponse, + threeDOffered, + threeDOfferedResponse, + threeDSVersion, + tokenizationShopperReference, + tokenizationStoreOperationType, + tokenizationStoredPaymentMethodId, + visaTransactionId, + xid); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataCommon {\n"); - sb.append(" acquirerAccountCode: ").append(toIndentedString(acquirerAccountCode)).append("\n"); + sb.append(" acquirerAccountCode: ") + .append(toIndentedString(acquirerAccountCode)) + .append("\n"); sb.append(" acquirerCode: ").append(toIndentedString(acquirerCode)).append("\n"); sb.append(" acquirerReference: ").append(toIndentedString(acquirerReference)).append("\n"); sb.append(" alias: ").append(toIndentedString(alias)).append("\n"); sb.append(" aliasType: ").append(toIndentedString(aliasType)).append("\n"); sb.append(" authCode: ").append(toIndentedString(authCode)).append("\n"); sb.append(" authorisationMid: ").append(toIndentedString(authorisationMid)).append("\n"); - sb.append(" authorisedAmountCurrency: ").append(toIndentedString(authorisedAmountCurrency)).append("\n"); - sb.append(" authorisedAmountValue: ").append(toIndentedString(authorisedAmountValue)).append("\n"); + sb.append(" authorisedAmountCurrency: ") + .append(toIndentedString(authorisedAmountCurrency)) + .append("\n"); + sb.append(" authorisedAmountValue: ") + .append(toIndentedString(authorisedAmountValue)) + .append("\n"); sb.append(" avsResult: ").append(toIndentedString(avsResult)).append("\n"); sb.append(" avsResultRaw: ").append(toIndentedString(avsResultRaw)).append("\n"); sb.append(" bic: ").append(toIndentedString(bic)).append("\n"); @@ -2600,47 +3184,83 @@ public String toString() { sb.append(" expiryDate: ").append(toIndentedString(expiryDate)).append("\n"); sb.append(" extraCostsCurrency: ").append(toIndentedString(extraCostsCurrency)).append("\n"); sb.append(" extraCostsValue: ").append(toIndentedString(extraCostsValue)).append("\n"); - sb.append(" fraudCheckItemNrFraudCheckname: ").append(toIndentedString(fraudCheckItemNrFraudCheckname)).append("\n"); + sb.append(" fraudCheckItemNrFraudCheckname: ") + .append(toIndentedString(fraudCheckItemNrFraudCheckname)) + .append("\n"); sb.append(" fraudManualReview: ").append(toIndentedString(fraudManualReview)).append("\n"); sb.append(" fraudResultType: ").append(toIndentedString(fraudResultType)).append("\n"); sb.append(" fraudRiskLevel: ").append(toIndentedString(fraudRiskLevel)).append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); sb.append(" fundsAvailability: ").append(toIndentedString(fundsAvailability)).append("\n"); - sb.append(" inferredRefusalReason: ").append(toIndentedString(inferredRefusalReason)).append("\n"); + sb.append(" inferredRefusalReason: ") + .append(toIndentedString(inferredRefusalReason)) + .append("\n"); sb.append(" isCardCommercial: ").append(toIndentedString(isCardCommercial)).append("\n"); sb.append(" issuerCountry: ").append(toIndentedString(issuerCountry)).append("\n"); sb.append(" liabilityShift: ").append(toIndentedString(liabilityShift)).append("\n"); - sb.append(" mcBankNetReferenceNumber: ").append(toIndentedString(mcBankNetReferenceNumber)).append("\n"); + sb.append(" mcBankNetReferenceNumber: ") + .append(toIndentedString(mcBankNetReferenceNumber)) + .append("\n"); sb.append(" merchantAdviceCode: ").append(toIndentedString(merchantAdviceCode)).append("\n"); sb.append(" merchantReference: ").append(toIndentedString(merchantReference)).append("\n"); sb.append(" networkTxReference: ").append(toIndentedString(networkTxReference)).append("\n"); sb.append(" ownerName: ").append(toIndentedString(ownerName)).append("\n"); - sb.append(" paymentAccountReference: ").append(toIndentedString(paymentAccountReference)).append("\n"); + sb.append(" paymentAccountReference: ") + .append(toIndentedString(paymentAccountReference)) + .append("\n"); sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n"); - sb.append(" paymentMethodVariant: ").append(toIndentedString(paymentMethodVariant)).append("\n"); + sb.append(" paymentMethodVariant: ") + .append(toIndentedString(paymentMethodVariant)) + .append("\n"); sb.append(" payoutEligible: ").append(toIndentedString(payoutEligible)).append("\n"); - sb.append(" realtimeAccountUpdaterStatus: ").append(toIndentedString(realtimeAccountUpdaterStatus)).append("\n"); + sb.append(" realtimeAccountUpdaterStatus: ") + .append(toIndentedString(realtimeAccountUpdaterStatus)) + .append("\n"); sb.append(" receiptFreeText: ").append(toIndentedString(receiptFreeText)).append("\n"); - sb.append(" recurringContractTypes: ").append(toIndentedString(recurringContractTypes)).append("\n"); - sb.append(" recurringFirstPspReference: ").append(toIndentedString(recurringFirstPspReference)).append("\n"); - sb.append(" recurringRecurringDetailReference: ").append(toIndentedString(recurringRecurringDetailReference)).append("\n"); - sb.append(" recurringShopperReference: ").append(toIndentedString(recurringShopperReference)).append("\n"); - sb.append(" recurringProcessingModel: ").append(toIndentedString(recurringProcessingModel)).append("\n"); + sb.append(" recurringContractTypes: ") + .append(toIndentedString(recurringContractTypes)) + .append("\n"); + sb.append(" recurringFirstPspReference: ") + .append(toIndentedString(recurringFirstPspReference)) + .append("\n"); + sb.append(" recurringRecurringDetailReference: ") + .append(toIndentedString(recurringRecurringDetailReference)) + .append("\n"); + sb.append(" recurringShopperReference: ") + .append(toIndentedString(recurringShopperReference)) + .append("\n"); + sb.append(" recurringProcessingModel: ") + .append(toIndentedString(recurringProcessingModel)) + .append("\n"); sb.append(" referred: ").append(toIndentedString(referred)).append("\n"); sb.append(" refusalReasonRaw: ").append(toIndentedString(refusalReasonRaw)).append("\n"); sb.append(" requestAmount: ").append(toIndentedString(requestAmount)).append("\n"); - sb.append(" requestCurrencyCode: ").append(toIndentedString(requestCurrencyCode)).append("\n"); + sb.append(" requestCurrencyCode: ") + .append(toIndentedString(requestCurrencyCode)) + .append("\n"); sb.append(" shopperInteraction: ").append(toIndentedString(shopperInteraction)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append(" terminalId: ").append(toIndentedString(terminalId)).append("\n"); - sb.append(" threeDAuthenticated: ").append(toIndentedString(threeDAuthenticated)).append("\n"); - sb.append(" threeDAuthenticatedResponse: ").append(toIndentedString(threeDAuthenticatedResponse)).append("\n"); + sb.append(" threeDAuthenticated: ") + .append(toIndentedString(threeDAuthenticated)) + .append("\n"); + sb.append(" threeDAuthenticatedResponse: ") + .append(toIndentedString(threeDAuthenticatedResponse)) + .append("\n"); sb.append(" threeDOffered: ").append(toIndentedString(threeDOffered)).append("\n"); - sb.append(" threeDOfferedResponse: ").append(toIndentedString(threeDOfferedResponse)).append("\n"); + sb.append(" threeDOfferedResponse: ") + .append(toIndentedString(threeDOfferedResponse)) + .append("\n"); sb.append(" threeDSVersion: ").append(toIndentedString(threeDSVersion)).append("\n"); - sb.append(" tokenizationShopperReference: ").append(toIndentedString(tokenizationShopperReference)).append("\n"); - sb.append(" tokenizationStoreOperationType: ").append(toIndentedString(tokenizationStoreOperationType)).append("\n"); - sb.append(" tokenizationStoredPaymentMethodId: ").append(toIndentedString(tokenizationStoredPaymentMethodId)).append("\n"); + sb.append(" tokenizationShopperReference: ") + .append(toIndentedString(tokenizationShopperReference)) + .append("\n"); + sb.append(" tokenizationStoreOperationType: ") + .append(toIndentedString(tokenizationStoreOperationType)) + .append("\n"); + sb.append(" tokenizationStoredPaymentMethodId: ") + .append(toIndentedString(tokenizationStoredPaymentMethodId)) + .append("\n"); sb.append(" visaTransactionId: ").append(toIndentedString(visaTransactionId)).append("\n"); sb.append(" xid: ").append(toIndentedString(xid)).append("\n"); sb.append("}"); @@ -2648,8 +3268,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -2658,21 +3277,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResponseAdditionalDataCommon given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataCommon - * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataCommon + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ResponseAdditionalDataCommon */ - public static ResponseAdditionalDataCommon fromJson(String jsonString) throws JsonProcessingException { + public static ResponseAdditionalDataCommon fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataCommon.class); } -/** - * Convert an instance of ResponseAdditionalDataCommon to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResponseAdditionalDataCommon to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataDomesticError.java b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataDomesticError.java index 4bc161048..7471b0b53 100644 --- a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataDomesticError.java +++ b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataDomesticError.java @@ -2,36 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ResponseAdditionalDataDomesticError - */ +/** ResponseAdditionalDataDomesticError */ @JsonPropertyOrder({ ResponseAdditionalDataDomesticError.JSON_PROPERTY_DOMESTIC_REFUSAL_REASON_RAW, ResponseAdditionalDataDomesticError.JSON_PROPERTY_DOMESTIC_SHOPPER_ADVICE }) - public class ResponseAdditionalDataDomesticError { public static final String JSON_PROPERTY_DOMESTIC_REFUSAL_REASON_RAW = "domesticRefusalReasonRaw"; private String domesticRefusalReasonRaw; @@ -39,23 +29,29 @@ public class ResponseAdditionalDataDomesticError { public static final String JSON_PROPERTY_DOMESTIC_SHOPPER_ADVICE = "domesticShopperAdvice"; private String domesticShopperAdvice; - public ResponseAdditionalDataDomesticError() { - } + public ResponseAdditionalDataDomesticError() {} /** - * The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. + * The reason the transaction was declined, given by the local issuer. Currently available for + * merchants in Japan. * - * @param domesticRefusalReasonRaw The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. - * @return the current {@code ResponseAdditionalDataDomesticError} instance, allowing for method chaining + * @param domesticRefusalReasonRaw The reason the transaction was declined, given by the local + * issuer. Currently available for merchants in Japan. + * @return the current {@code ResponseAdditionalDataDomesticError} instance, allowing for method + * chaining */ - public ResponseAdditionalDataDomesticError domesticRefusalReasonRaw(String domesticRefusalReasonRaw) { + public ResponseAdditionalDataDomesticError domesticRefusalReasonRaw( + String domesticRefusalReasonRaw) { this.domesticRefusalReasonRaw = domesticRefusalReasonRaw; return this; } /** - * The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. - * @return domesticRefusalReasonRaw The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. + * The reason the transaction was declined, given by the local issuer. Currently available for + * merchants in Japan. + * + * @return domesticRefusalReasonRaw The reason the transaction was declined, given by the local + * issuer. Currently available for merchants in Japan. */ @JsonProperty(JSON_PROPERTY_DOMESTIC_REFUSAL_REASON_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +60,11 @@ public String getDomesticRefusalReasonRaw() { } /** - * The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. + * The reason the transaction was declined, given by the local issuer. Currently available for + * merchants in Japan. * - * @param domesticRefusalReasonRaw The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. + * @param domesticRefusalReasonRaw The reason the transaction was declined, given by the local + * issuer. Currently available for merchants in Japan. */ @JsonProperty(JSON_PROPERTY_DOMESTIC_REFUSAL_REASON_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,10 +73,13 @@ public void setDomesticRefusalReasonRaw(String domesticRefusalReasonRaw) { } /** - * The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. + * The action the shopper should take, in a local language. Currently available in Japanese, for + * merchants in Japan. * - * @param domesticShopperAdvice The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. - * @return the current {@code ResponseAdditionalDataDomesticError} instance, allowing for method chaining + * @param domesticShopperAdvice The action the shopper should take, in a local language. Currently + * available in Japanese, for merchants in Japan. + * @return the current {@code ResponseAdditionalDataDomesticError} instance, allowing for method + * chaining */ public ResponseAdditionalDataDomesticError domesticShopperAdvice(String domesticShopperAdvice) { this.domesticShopperAdvice = domesticShopperAdvice; @@ -86,8 +87,11 @@ public ResponseAdditionalDataDomesticError domesticShopperAdvice(String domestic } /** - * The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. - * @return domesticShopperAdvice The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. + * The action the shopper should take, in a local language. Currently available in Japanese, for + * merchants in Japan. + * + * @return domesticShopperAdvice The action the shopper should take, in a local language. + * Currently available in Japanese, for merchants in Japan. */ @JsonProperty(JSON_PROPERTY_DOMESTIC_SHOPPER_ADVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +100,11 @@ public String getDomesticShopperAdvice() { } /** - * The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. + * The action the shopper should take, in a local language. Currently available in Japanese, for + * merchants in Japan. * - * @param domesticShopperAdvice The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. + * @param domesticShopperAdvice The action the shopper should take, in a local language. Currently + * available in Japanese, for merchants in Japan. */ @JsonProperty(JSON_PROPERTY_DOMESTIC_SHOPPER_ADVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +112,7 @@ public void setDomesticShopperAdvice(String domesticShopperAdvice) { this.domesticShopperAdvice = domesticShopperAdvice; } - /** - * Return true if this ResponseAdditionalDataDomesticError object is equal to o. - */ + /** Return true if this ResponseAdditionalDataDomesticError object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -117,9 +121,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResponseAdditionalDataDomesticError responseAdditionalDataDomesticError = (ResponseAdditionalDataDomesticError) o; - return Objects.equals(this.domesticRefusalReasonRaw, responseAdditionalDataDomesticError.domesticRefusalReasonRaw) && - Objects.equals(this.domesticShopperAdvice, responseAdditionalDataDomesticError.domesticShopperAdvice); + ResponseAdditionalDataDomesticError responseAdditionalDataDomesticError = + (ResponseAdditionalDataDomesticError) o; + return Objects.equals( + this.domesticRefusalReasonRaw, + responseAdditionalDataDomesticError.domesticRefusalReasonRaw) + && Objects.equals( + this.domesticShopperAdvice, responseAdditionalDataDomesticError.domesticShopperAdvice); } @Override @@ -131,15 +139,18 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataDomesticError {\n"); - sb.append(" domesticRefusalReasonRaw: ").append(toIndentedString(domesticRefusalReasonRaw)).append("\n"); - sb.append(" domesticShopperAdvice: ").append(toIndentedString(domesticShopperAdvice)).append("\n"); + sb.append(" domesticRefusalReasonRaw: ") + .append(toIndentedString(domesticRefusalReasonRaw)) + .append("\n"); + sb.append(" domesticShopperAdvice: ") + .append(toIndentedString(domesticShopperAdvice)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +159,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResponseAdditionalDataDomesticError given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataDomesticError - * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataDomesticError + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ResponseAdditionalDataDomesticError */ - public static ResponseAdditionalDataDomesticError fromJson(String jsonString) throws JsonProcessingException { + public static ResponseAdditionalDataDomesticError fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataDomesticError.class); } -/** - * Convert an instance of ResponseAdditionalDataDomesticError to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResponseAdditionalDataDomesticError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataInstallments.java b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataInstallments.java index d1a22a34d..2f4587e4c 100644 --- a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataInstallments.java +++ b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataInstallments.java @@ -2,100 +2,121 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ResponseAdditionalDataInstallments - */ +/** ResponseAdditionalDataInstallments */ @JsonPropertyOrder({ ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_INSTALLMENT_TYPE, - ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE, - ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT, - ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE, - ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE, - ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS, - ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS, - ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS, - ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT, - ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE, + ResponseAdditionalDataInstallments + .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE, + ResponseAdditionalDataInstallments + .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT, + ResponseAdditionalDataInstallments + .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE, + ResponseAdditionalDataInstallments + .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE, + ResponseAdditionalDataInstallments + .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS, + ResponseAdditionalDataInstallments + .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS, + ResponseAdditionalDataInstallments + .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS, + ResponseAdditionalDataInstallments + .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT, + ResponseAdditionalDataInstallments + .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE, ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_PAYMENT_OPTIONS, ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENTS_VALUE }) - public class ResponseAdditionalDataInstallments { - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_INSTALLMENT_TYPE = "installmentPaymentData.installmentType"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_INSTALLMENT_TYPE = + "installmentPaymentData.installmentType"; private String installmentPaymentDataInstallmentType; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE = "installmentPaymentData.option[itemNr].annualPercentageRate"; + public static final String + JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE = + "installmentPaymentData.option[itemNr].annualPercentageRate"; private String installmentPaymentDataOptionItemNrAnnualPercentageRate; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT = "installmentPaymentData.option[itemNr].firstInstallmentAmount"; + public static final String + JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT = + "installmentPaymentData.option[itemNr].firstInstallmentAmount"; private String installmentPaymentDataOptionItemNrFirstInstallmentAmount; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE = "installmentPaymentData.option[itemNr].installmentFee"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE = + "installmentPaymentData.option[itemNr].installmentFee"; private String installmentPaymentDataOptionItemNrInstallmentFee; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE = "installmentPaymentData.option[itemNr].interestRate"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE = + "installmentPaymentData.option[itemNr].interestRate"; private String installmentPaymentDataOptionItemNrInterestRate; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS = "installmentPaymentData.option[itemNr].maximumNumberOfInstallments"; + public static final String + JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS = + "installmentPaymentData.option[itemNr].maximumNumberOfInstallments"; private String installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS = "installmentPaymentData.option[itemNr].minimumNumberOfInstallments"; + public static final String + JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS = + "installmentPaymentData.option[itemNr].minimumNumberOfInstallments"; private String installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS = "installmentPaymentData.option[itemNr].numberOfInstallments"; + public static final String + JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS = + "installmentPaymentData.option[itemNr].numberOfInstallments"; private String installmentPaymentDataOptionItemNrNumberOfInstallments; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT = "installmentPaymentData.option[itemNr].subsequentInstallmentAmount"; + public static final String + JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT = + "installmentPaymentData.option[itemNr].subsequentInstallmentAmount"; private String installmentPaymentDataOptionItemNrSubsequentInstallmentAmount; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE = "installmentPaymentData.option[itemNr].totalAmountDue"; + public static final String + JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE = + "installmentPaymentData.option[itemNr].totalAmountDue"; private String installmentPaymentDataOptionItemNrTotalAmountDue; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_PAYMENT_OPTIONS = "installmentPaymentData.paymentOptions"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_PAYMENT_OPTIONS = + "installmentPaymentData.paymentOptions"; private String installmentPaymentDataPaymentOptions; public static final String JSON_PROPERTY_INSTALLMENTS_VALUE = "installments.value"; private String installmentsValue; - public ResponseAdditionalDataInstallments() { - } + public ResponseAdditionalDataInstallments() {} /** * Type of installment. The value of `installmentType` should be **IssuerFinanced**. * - * @param installmentPaymentDataInstallmentType Type of installment. The value of `installmentType` should be **IssuerFinanced**. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + * @param installmentPaymentDataInstallmentType Type of installment. The value of + * `installmentType` should be **IssuerFinanced**. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataInstallmentType(String installmentPaymentDataInstallmentType) { + public ResponseAdditionalDataInstallments installmentPaymentDataInstallmentType( + String installmentPaymentDataInstallmentType) { this.installmentPaymentDataInstallmentType = installmentPaymentDataInstallmentType; return this; } /** * Type of installment. The value of `installmentType` should be **IssuerFinanced**. - * @return installmentPaymentDataInstallmentType Type of installment. The value of `installmentType` should be **IssuerFinanced**. + * + * @return installmentPaymentDataInstallmentType Type of installment. The value of + * `installmentType` should be **IssuerFinanced**. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_INSTALLMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,11 +127,13 @@ public String getInstallmentPaymentDataInstallmentType() { /** * Type of installment. The value of `installmentType` should be **IssuerFinanced**. * - * @param installmentPaymentDataInstallmentType Type of installment. The value of `installmentType` should be **IssuerFinanced**. + * @param installmentPaymentDataInstallmentType Type of installment. The value of + * `installmentType` should be **IssuerFinanced**. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_INSTALLMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataInstallmentType(String installmentPaymentDataInstallmentType) { + public void setInstallmentPaymentDataInstallmentType( + String installmentPaymentDataInstallmentType) { this.installmentPaymentDataInstallmentType = installmentPaymentDataInstallmentType; } @@ -118,15 +141,19 @@ public void setInstallmentPaymentDataInstallmentType(String installmentPaymentDa * Annual interest rate. * * @param installmentPaymentDataOptionItemNrAnnualPercentageRate Annual interest rate. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrAnnualPercentageRate(String installmentPaymentDataOptionItemNrAnnualPercentageRate) { - this.installmentPaymentDataOptionItemNrAnnualPercentageRate = installmentPaymentDataOptionItemNrAnnualPercentageRate; + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrAnnualPercentageRate( + String installmentPaymentDataOptionItemNrAnnualPercentageRate) { + this.installmentPaymentDataOptionItemNrAnnualPercentageRate = + installmentPaymentDataOptionItemNrAnnualPercentageRate; return this; } /** * Annual interest rate. + * * @return installmentPaymentDataOptionItemNrAnnualPercentageRate Annual interest rate. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE) @@ -142,24 +169,33 @@ public String getInstallmentPaymentDataOptionItemNrAnnualPercentageRate() { */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrAnnualPercentageRate(String installmentPaymentDataOptionItemNrAnnualPercentageRate) { - this.installmentPaymentDataOptionItemNrAnnualPercentageRate = installmentPaymentDataOptionItemNrAnnualPercentageRate; + public void setInstallmentPaymentDataOptionItemNrAnnualPercentageRate( + String installmentPaymentDataOptionItemNrAnnualPercentageRate) { + this.installmentPaymentDataOptionItemNrAnnualPercentageRate = + installmentPaymentDataOptionItemNrAnnualPercentageRate; } /** * First Installment Amount in minor units. * - * @param installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in minor units. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining - */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrFirstInstallmentAmount(String installmentPaymentDataOptionItemNrFirstInstallmentAmount) { - this.installmentPaymentDataOptionItemNrFirstInstallmentAmount = installmentPaymentDataOptionItemNrFirstInstallmentAmount; + * @param installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in + * minor units. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining + */ + public ResponseAdditionalDataInstallments + installmentPaymentDataOptionItemNrFirstInstallmentAmount( + String installmentPaymentDataOptionItemNrFirstInstallmentAmount) { + this.installmentPaymentDataOptionItemNrFirstInstallmentAmount = + installmentPaymentDataOptionItemNrFirstInstallmentAmount; return this; } /** * First Installment Amount in minor units. - * @return installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in minor units. + * + * @return installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in + * minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -170,27 +206,34 @@ public String getInstallmentPaymentDataOptionItemNrFirstInstallmentAmount() { /** * First Installment Amount in minor units. * - * @param installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in minor units. + * @param installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in + * minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrFirstInstallmentAmount(String installmentPaymentDataOptionItemNrFirstInstallmentAmount) { - this.installmentPaymentDataOptionItemNrFirstInstallmentAmount = installmentPaymentDataOptionItemNrFirstInstallmentAmount; + public void setInstallmentPaymentDataOptionItemNrFirstInstallmentAmount( + String installmentPaymentDataOptionItemNrFirstInstallmentAmount) { + this.installmentPaymentDataOptionItemNrFirstInstallmentAmount = + installmentPaymentDataOptionItemNrFirstInstallmentAmount; } /** * Installment fee amount in minor units. * * @param installmentPaymentDataOptionItemNrInstallmentFee Installment fee amount in minor units. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrInstallmentFee(String installmentPaymentDataOptionItemNrInstallmentFee) { - this.installmentPaymentDataOptionItemNrInstallmentFee = installmentPaymentDataOptionItemNrInstallmentFee; + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrInstallmentFee( + String installmentPaymentDataOptionItemNrInstallmentFee) { + this.installmentPaymentDataOptionItemNrInstallmentFee = + installmentPaymentDataOptionItemNrInstallmentFee; return this; } /** * Installment fee amount in minor units. + * * @return installmentPaymentDataOptionItemNrInstallmentFee Installment fee amount in minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE) @@ -206,24 +249,31 @@ public String getInstallmentPaymentDataOptionItemNrInstallmentFee() { */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrInstallmentFee(String installmentPaymentDataOptionItemNrInstallmentFee) { - this.installmentPaymentDataOptionItemNrInstallmentFee = installmentPaymentDataOptionItemNrInstallmentFee; + public void setInstallmentPaymentDataOptionItemNrInstallmentFee( + String installmentPaymentDataOptionItemNrInstallmentFee) { + this.installmentPaymentDataOptionItemNrInstallmentFee = + installmentPaymentDataOptionItemNrInstallmentFee; } /** * Interest rate for the installment period. * * @param installmentPaymentDataOptionItemNrInterestRate Interest rate for the installment period. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrInterestRate(String installmentPaymentDataOptionItemNrInterestRate) { - this.installmentPaymentDataOptionItemNrInterestRate = installmentPaymentDataOptionItemNrInterestRate; + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrInterestRate( + String installmentPaymentDataOptionItemNrInterestRate) { + this.installmentPaymentDataOptionItemNrInterestRate = + installmentPaymentDataOptionItemNrInterestRate; return this; } /** * Interest rate for the installment period. - * @return installmentPaymentDataOptionItemNrInterestRate Interest rate for the installment period. + * + * @return installmentPaymentDataOptionItemNrInterestRate Interest rate for the installment + * period. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -238,26 +288,36 @@ public String getInstallmentPaymentDataOptionItemNrInterestRate() { */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrInterestRate(String installmentPaymentDataOptionItemNrInterestRate) { - this.installmentPaymentDataOptionItemNrInterestRate = installmentPaymentDataOptionItemNrInterestRate; + public void setInstallmentPaymentDataOptionItemNrInterestRate( + String installmentPaymentDataOptionItemNrInterestRate) { + this.installmentPaymentDataOptionItemNrInterestRate = + installmentPaymentDataOptionItemNrInterestRate; } /** * Maximum number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of installments possible for this payment. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining - */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrMaximumNumberOfInstallments(String installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments = installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; + * @param installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of + * installments possible for this payment. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining + */ + public ResponseAdditionalDataInstallments + installmentPaymentDataOptionItemNrMaximumNumberOfInstallments( + String installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments = + installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; return this; } /** * Maximum number of installments possible for this payment. - * @return installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of installments possible for this payment. + * + * @return installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of + * installments possible for this payment. */ - @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS) + @JsonProperty( + JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getInstallmentPaymentDataOptionItemNrMaximumNumberOfInstallments() { return installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; @@ -266,30 +326,42 @@ public String getInstallmentPaymentDataOptionItemNrMaximumNumberOfInstallments() /** * Maximum number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of installments possible for this payment. + * @param installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of + * installments possible for this payment. */ - @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS) + @JsonProperty( + JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrMaximumNumberOfInstallments(String installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments = installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; + public void setInstallmentPaymentDataOptionItemNrMaximumNumberOfInstallments( + String installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments = + installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; } /** * Minimum number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of installments possible for this payment. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining - */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrMinimumNumberOfInstallments(String installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments = installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; + * @param installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of + * installments possible for this payment. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining + */ + public ResponseAdditionalDataInstallments + installmentPaymentDataOptionItemNrMinimumNumberOfInstallments( + String installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments = + installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; return this; } /** * Minimum number of installments possible for this payment. - * @return installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of installments possible for this payment. + * + * @return installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of + * installments possible for this payment. */ - @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS) + @JsonProperty( + JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getInstallmentPaymentDataOptionItemNrMinimumNumberOfInstallments() { return installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; @@ -298,28 +370,38 @@ public String getInstallmentPaymentDataOptionItemNrMinimumNumberOfInstallments() /** * Minimum number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of installments possible for this payment. + * @param installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of + * installments possible for this payment. */ - @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS) + @JsonProperty( + JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrMinimumNumberOfInstallments(String installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments = installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; + public void setInstallmentPaymentDataOptionItemNrMinimumNumberOfInstallments( + String installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments = + installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; } /** * Total number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments possible for this payment. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining - */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrNumberOfInstallments(String installmentPaymentDataOptionItemNrNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrNumberOfInstallments = installmentPaymentDataOptionItemNrNumberOfInstallments; + * @param installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments + * possible for this payment. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining + */ + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrNumberOfInstallments( + String installmentPaymentDataOptionItemNrNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrNumberOfInstallments = + installmentPaymentDataOptionItemNrNumberOfInstallments; return this; } /** * Total number of installments possible for this payment. - * @return installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments possible for this payment. + * + * @return installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments + * possible for this payment. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -330,28 +412,38 @@ public String getInstallmentPaymentDataOptionItemNrNumberOfInstallments() { /** * Total number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments possible for this payment. + * @param installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments + * possible for this payment. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrNumberOfInstallments(String installmentPaymentDataOptionItemNrNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrNumberOfInstallments = installmentPaymentDataOptionItemNrNumberOfInstallments; + public void setInstallmentPaymentDataOptionItemNrNumberOfInstallments( + String installmentPaymentDataOptionItemNrNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrNumberOfInstallments = + installmentPaymentDataOptionItemNrNumberOfInstallments; } /** * Subsequent Installment Amount in minor units. * - * @param installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment Amount in minor units. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining - */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrSubsequentInstallmentAmount(String installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) { - this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount = installmentPaymentDataOptionItemNrSubsequentInstallmentAmount; + * @param installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment + * Amount in minor units. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining + */ + public ResponseAdditionalDataInstallments + installmentPaymentDataOptionItemNrSubsequentInstallmentAmount( + String installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) { + this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount = + installmentPaymentDataOptionItemNrSubsequentInstallmentAmount; return this; } /** * Subsequent Installment Amount in minor units. - * @return installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment Amount in minor units. + * + * @return installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment + * Amount in minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -362,27 +454,34 @@ public String getInstallmentPaymentDataOptionItemNrSubsequentInstallmentAmount() /** * Subsequent Installment Amount in minor units. * - * @param installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment Amount in minor units. + * @param installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment + * Amount in minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrSubsequentInstallmentAmount(String installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) { - this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount = installmentPaymentDataOptionItemNrSubsequentInstallmentAmount; + public void setInstallmentPaymentDataOptionItemNrSubsequentInstallmentAmount( + String installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) { + this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount = + installmentPaymentDataOptionItemNrSubsequentInstallmentAmount; } /** * Total amount in minor units. * * @param installmentPaymentDataOptionItemNrTotalAmountDue Total amount in minor units. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrTotalAmountDue(String installmentPaymentDataOptionItemNrTotalAmountDue) { - this.installmentPaymentDataOptionItemNrTotalAmountDue = installmentPaymentDataOptionItemNrTotalAmountDue; + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrTotalAmountDue( + String installmentPaymentDataOptionItemNrTotalAmountDue) { + this.installmentPaymentDataOptionItemNrTotalAmountDue = + installmentPaymentDataOptionItemNrTotalAmountDue; return this; } /** * Total amount in minor units. + * * @return installmentPaymentDataOptionItemNrTotalAmountDue Total amount in minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE) @@ -398,24 +497,31 @@ public String getInstallmentPaymentDataOptionItemNrTotalAmountDue() { */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrTotalAmountDue(String installmentPaymentDataOptionItemNrTotalAmountDue) { - this.installmentPaymentDataOptionItemNrTotalAmountDue = installmentPaymentDataOptionItemNrTotalAmountDue; + public void setInstallmentPaymentDataOptionItemNrTotalAmountDue( + String installmentPaymentDataOptionItemNrTotalAmountDue) { + this.installmentPaymentDataOptionItemNrTotalAmountDue = + installmentPaymentDataOptionItemNrTotalAmountDue; } /** * Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments * - * @param installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + * @param installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * + * PayInFullOnly * PayInFullOrInstallments + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataPaymentOptions(String installmentPaymentDataPaymentOptions) { + public ResponseAdditionalDataInstallments installmentPaymentDataPaymentOptions( + String installmentPaymentDataPaymentOptions) { this.installmentPaymentDataPaymentOptions = installmentPaymentDataPaymentOptions; return this; } /** * Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments - * @return installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments + * + * @return installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * + * PayInFullOnly * PayInFullOrInstallments */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_PAYMENT_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -426,7 +532,8 @@ public String getInstallmentPaymentDataPaymentOptions() { /** * Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments * - * @param installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments + * @param installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * + * PayInFullOnly * PayInFullOrInstallments */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_PAYMENT_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -435,10 +542,14 @@ public void setInstallmentPaymentDataPaymentOptions(String installmentPaymentDat } /** - * The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. + * The number of installments that the payment amount should be charged with. Example: 5 > Only + * relevant for card payments in countries that support installments. * - * @param installmentsValue The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + * @param installmentsValue The number of installments that the payment amount should be charged + * with. Example: 5 > Only relevant for card payments in countries that support + * installments. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining */ public ResponseAdditionalDataInstallments installmentsValue(String installmentsValue) { this.installmentsValue = installmentsValue; @@ -446,8 +557,12 @@ public ResponseAdditionalDataInstallments installmentsValue(String installmentsV } /** - * The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. - * @return installmentsValue The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. + * The number of installments that the payment amount should be charged with. Example: 5 > Only + * relevant for card payments in countries that support installments. + * + * @return installmentsValue The number of installments that the payment amount should be charged + * with. Example: 5 > Only relevant for card payments in countries that support + * installments. */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -456,9 +571,12 @@ public String getInstallmentsValue() { } /** - * The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. + * The number of installments that the payment amount should be charged with. Example: 5 > Only + * relevant for card payments in countries that support installments. * - * @param installmentsValue The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. + * @param installmentsValue The number of installments that the payment amount should be charged + * with. Example: 5 > Only relevant for card payments in countries that support + * installments. */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -466,9 +584,7 @@ public void setInstallmentsValue(String installmentsValue) { this.installmentsValue = installmentsValue; } - /** - * Return true if this ResponseAdditionalDataInstallments object is equal to o. - */ + /** Return true if this ResponseAdditionalDataInstallments object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -477,49 +593,112 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResponseAdditionalDataInstallments responseAdditionalDataInstallments = (ResponseAdditionalDataInstallments) o; - return Objects.equals(this.installmentPaymentDataInstallmentType, responseAdditionalDataInstallments.installmentPaymentDataInstallmentType) && - Objects.equals(this.installmentPaymentDataOptionItemNrAnnualPercentageRate, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrAnnualPercentageRate) && - Objects.equals(this.installmentPaymentDataOptionItemNrFirstInstallmentAmount, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrFirstInstallmentAmount) && - Objects.equals(this.installmentPaymentDataOptionItemNrInstallmentFee, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrInstallmentFee) && - Objects.equals(this.installmentPaymentDataOptionItemNrInterestRate, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrInterestRate) && - Objects.equals(this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) && - Objects.equals(this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) && - Objects.equals(this.installmentPaymentDataOptionItemNrNumberOfInstallments, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrNumberOfInstallments) && - Objects.equals(this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) && - Objects.equals(this.installmentPaymentDataOptionItemNrTotalAmountDue, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrTotalAmountDue) && - Objects.equals(this.installmentPaymentDataPaymentOptions, responseAdditionalDataInstallments.installmentPaymentDataPaymentOptions) && - Objects.equals(this.installmentsValue, responseAdditionalDataInstallments.installmentsValue); + ResponseAdditionalDataInstallments responseAdditionalDataInstallments = + (ResponseAdditionalDataInstallments) o; + return Objects.equals( + this.installmentPaymentDataInstallmentType, + responseAdditionalDataInstallments.installmentPaymentDataInstallmentType) + && Objects.equals( + this.installmentPaymentDataOptionItemNrAnnualPercentageRate, + responseAdditionalDataInstallments + .installmentPaymentDataOptionItemNrAnnualPercentageRate) + && Objects.equals( + this.installmentPaymentDataOptionItemNrFirstInstallmentAmount, + responseAdditionalDataInstallments + .installmentPaymentDataOptionItemNrFirstInstallmentAmount) + && Objects.equals( + this.installmentPaymentDataOptionItemNrInstallmentFee, + responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrInstallmentFee) + && Objects.equals( + this.installmentPaymentDataOptionItemNrInterestRate, + responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrInterestRate) + && Objects.equals( + this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments, + responseAdditionalDataInstallments + .installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) + && Objects.equals( + this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments, + responseAdditionalDataInstallments + .installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) + && Objects.equals( + this.installmentPaymentDataOptionItemNrNumberOfInstallments, + responseAdditionalDataInstallments + .installmentPaymentDataOptionItemNrNumberOfInstallments) + && Objects.equals( + this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount, + responseAdditionalDataInstallments + .installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) + && Objects.equals( + this.installmentPaymentDataOptionItemNrTotalAmountDue, + responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrTotalAmountDue) + && Objects.equals( + this.installmentPaymentDataPaymentOptions, + responseAdditionalDataInstallments.installmentPaymentDataPaymentOptions) + && Objects.equals( + this.installmentsValue, responseAdditionalDataInstallments.installmentsValue); } @Override public int hashCode() { - return Objects.hash(installmentPaymentDataInstallmentType, installmentPaymentDataOptionItemNrAnnualPercentageRate, installmentPaymentDataOptionItemNrFirstInstallmentAmount, installmentPaymentDataOptionItemNrInstallmentFee, installmentPaymentDataOptionItemNrInterestRate, installmentPaymentDataOptionItemNrMaximumNumberOfInstallments, installmentPaymentDataOptionItemNrMinimumNumberOfInstallments, installmentPaymentDataOptionItemNrNumberOfInstallments, installmentPaymentDataOptionItemNrSubsequentInstallmentAmount, installmentPaymentDataOptionItemNrTotalAmountDue, installmentPaymentDataPaymentOptions, installmentsValue); + return Objects.hash( + installmentPaymentDataInstallmentType, + installmentPaymentDataOptionItemNrAnnualPercentageRate, + installmentPaymentDataOptionItemNrFirstInstallmentAmount, + installmentPaymentDataOptionItemNrInstallmentFee, + installmentPaymentDataOptionItemNrInterestRate, + installmentPaymentDataOptionItemNrMaximumNumberOfInstallments, + installmentPaymentDataOptionItemNrMinimumNumberOfInstallments, + installmentPaymentDataOptionItemNrNumberOfInstallments, + installmentPaymentDataOptionItemNrSubsequentInstallmentAmount, + installmentPaymentDataOptionItemNrTotalAmountDue, + installmentPaymentDataPaymentOptions, + installmentsValue); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataInstallments {\n"); - sb.append(" installmentPaymentDataInstallmentType: ").append(toIndentedString(installmentPaymentDataInstallmentType)).append("\n"); - sb.append(" installmentPaymentDataOptionItemNrAnnualPercentageRate: ").append(toIndentedString(installmentPaymentDataOptionItemNrAnnualPercentageRate)).append("\n"); - sb.append(" installmentPaymentDataOptionItemNrFirstInstallmentAmount: ").append(toIndentedString(installmentPaymentDataOptionItemNrFirstInstallmentAmount)).append("\n"); - sb.append(" installmentPaymentDataOptionItemNrInstallmentFee: ").append(toIndentedString(installmentPaymentDataOptionItemNrInstallmentFee)).append("\n"); - sb.append(" installmentPaymentDataOptionItemNrInterestRate: ").append(toIndentedString(installmentPaymentDataOptionItemNrInterestRate)).append("\n"); - sb.append(" installmentPaymentDataOptionItemNrMaximumNumberOfInstallments: ").append(toIndentedString(installmentPaymentDataOptionItemNrMaximumNumberOfInstallments)).append("\n"); - sb.append(" installmentPaymentDataOptionItemNrMinimumNumberOfInstallments: ").append(toIndentedString(installmentPaymentDataOptionItemNrMinimumNumberOfInstallments)).append("\n"); - sb.append(" installmentPaymentDataOptionItemNrNumberOfInstallments: ").append(toIndentedString(installmentPaymentDataOptionItemNrNumberOfInstallments)).append("\n"); - sb.append(" installmentPaymentDataOptionItemNrSubsequentInstallmentAmount: ").append(toIndentedString(installmentPaymentDataOptionItemNrSubsequentInstallmentAmount)).append("\n"); - sb.append(" installmentPaymentDataOptionItemNrTotalAmountDue: ").append(toIndentedString(installmentPaymentDataOptionItemNrTotalAmountDue)).append("\n"); - sb.append(" installmentPaymentDataPaymentOptions: ").append(toIndentedString(installmentPaymentDataPaymentOptions)).append("\n"); + sb.append(" installmentPaymentDataInstallmentType: ") + .append(toIndentedString(installmentPaymentDataInstallmentType)) + .append("\n"); + sb.append(" installmentPaymentDataOptionItemNrAnnualPercentageRate: ") + .append(toIndentedString(installmentPaymentDataOptionItemNrAnnualPercentageRate)) + .append("\n"); + sb.append(" installmentPaymentDataOptionItemNrFirstInstallmentAmount: ") + .append(toIndentedString(installmentPaymentDataOptionItemNrFirstInstallmentAmount)) + .append("\n"); + sb.append(" installmentPaymentDataOptionItemNrInstallmentFee: ") + .append(toIndentedString(installmentPaymentDataOptionItemNrInstallmentFee)) + .append("\n"); + sb.append(" installmentPaymentDataOptionItemNrInterestRate: ") + .append(toIndentedString(installmentPaymentDataOptionItemNrInterestRate)) + .append("\n"); + sb.append(" installmentPaymentDataOptionItemNrMaximumNumberOfInstallments: ") + .append(toIndentedString(installmentPaymentDataOptionItemNrMaximumNumberOfInstallments)) + .append("\n"); + sb.append(" installmentPaymentDataOptionItemNrMinimumNumberOfInstallments: ") + .append(toIndentedString(installmentPaymentDataOptionItemNrMinimumNumberOfInstallments)) + .append("\n"); + sb.append(" installmentPaymentDataOptionItemNrNumberOfInstallments: ") + .append(toIndentedString(installmentPaymentDataOptionItemNrNumberOfInstallments)) + .append("\n"); + sb.append(" installmentPaymentDataOptionItemNrSubsequentInstallmentAmount: ") + .append(toIndentedString(installmentPaymentDataOptionItemNrSubsequentInstallmentAmount)) + .append("\n"); + sb.append(" installmentPaymentDataOptionItemNrTotalAmountDue: ") + .append(toIndentedString(installmentPaymentDataOptionItemNrTotalAmountDue)) + .append("\n"); + sb.append(" installmentPaymentDataPaymentOptions: ") + .append(toIndentedString(installmentPaymentDataPaymentOptions)) + .append("\n"); sb.append(" installmentsValue: ").append(toIndentedString(installmentsValue)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -528,21 +707,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResponseAdditionalDataInstallments given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataInstallments - * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataInstallments + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ResponseAdditionalDataInstallments */ - public static ResponseAdditionalDataInstallments fromJson(String jsonString) throws JsonProcessingException { + public static ResponseAdditionalDataInstallments fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataInstallments.class); } -/** - * Convert an instance of ResponseAdditionalDataInstallments to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResponseAdditionalDataInstallments to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataNetworkTokens.java b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataNetworkTokens.java index 317a14498..61ecf202c 100644 --- a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataNetworkTokens.java +++ b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataNetworkTokens.java @@ -2,37 +2,27 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ResponseAdditionalDataNetworkTokens - */ +/** ResponseAdditionalDataNetworkTokens */ @JsonPropertyOrder({ ResponseAdditionalDataNetworkTokens.JSON_PROPERTY_NETWORK_TOKEN_AVAILABLE, ResponseAdditionalDataNetworkTokens.JSON_PROPERTY_NETWORK_TOKEN_BIN, ResponseAdditionalDataNetworkTokens.JSON_PROPERTY_NETWORK_TOKEN_TOKEN_SUMMARY }) - public class ResponseAdditionalDataNetworkTokens { public static final String JSON_PROPERTY_NETWORK_TOKEN_AVAILABLE = "networkToken.available"; private String networkTokenAvailable; @@ -40,17 +30,19 @@ public class ResponseAdditionalDataNetworkTokens { public static final String JSON_PROPERTY_NETWORK_TOKEN_BIN = "networkToken.bin"; private String networkTokenBin; - public static final String JSON_PROPERTY_NETWORK_TOKEN_TOKEN_SUMMARY = "networkToken.tokenSummary"; + public static final String JSON_PROPERTY_NETWORK_TOKEN_TOKEN_SUMMARY = + "networkToken.tokenSummary"; private String networkTokenTokenSummary; - public ResponseAdditionalDataNetworkTokens() { - } + public ResponseAdditionalDataNetworkTokens() {} /** * Indicates whether a network token is available for the specified card. * - * @param networkTokenAvailable Indicates whether a network token is available for the specified card. - * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method chaining + * @param networkTokenAvailable Indicates whether a network token is available for the specified + * card. + * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method + * chaining */ public ResponseAdditionalDataNetworkTokens networkTokenAvailable(String networkTokenAvailable) { this.networkTokenAvailable = networkTokenAvailable; @@ -59,7 +51,9 @@ public ResponseAdditionalDataNetworkTokens networkTokenAvailable(String networkT /** * Indicates whether a network token is available for the specified card. - * @return networkTokenAvailable Indicates whether a network token is available for the specified card. + * + * @return networkTokenAvailable Indicates whether a network token is available for the specified + * card. */ @JsonProperty(JSON_PROPERTY_NETWORK_TOKEN_AVAILABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,7 +64,8 @@ public String getNetworkTokenAvailable() { /** * Indicates whether a network token is available for the specified card. * - * @param networkTokenAvailable Indicates whether a network token is available for the specified card. + * @param networkTokenAvailable Indicates whether a network token is available for the specified + * card. */ @JsonProperty(JSON_PROPERTY_NETWORK_TOKEN_AVAILABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,10 +74,13 @@ public void setNetworkTokenAvailable(String networkTokenAvailable) { } /** - * The Bank Identification Number of a tokenized card, which is the first six digits of a card number. + * The Bank Identification Number of a tokenized card, which is the first six digits of a card + * number. * - * @param networkTokenBin The Bank Identification Number of a tokenized card, which is the first six digits of a card number. - * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method chaining + * @param networkTokenBin The Bank Identification Number of a tokenized card, which is the first + * six digits of a card number. + * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method + * chaining */ public ResponseAdditionalDataNetworkTokens networkTokenBin(String networkTokenBin) { this.networkTokenBin = networkTokenBin; @@ -90,8 +88,11 @@ public ResponseAdditionalDataNetworkTokens networkTokenBin(String networkTokenBi } /** - * The Bank Identification Number of a tokenized card, which is the first six digits of a card number. - * @return networkTokenBin The Bank Identification Number of a tokenized card, which is the first six digits of a card number. + * The Bank Identification Number of a tokenized card, which is the first six digits of a card + * number. + * + * @return networkTokenBin The Bank Identification Number of a tokenized card, which is the first + * six digits of a card number. */ @JsonProperty(JSON_PROPERTY_NETWORK_TOKEN_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,9 +101,11 @@ public String getNetworkTokenBin() { } /** - * The Bank Identification Number of a tokenized card, which is the first six digits of a card number. + * The Bank Identification Number of a tokenized card, which is the first six digits of a card + * number. * - * @param networkTokenBin The Bank Identification Number of a tokenized card, which is the first six digits of a card number. + * @param networkTokenBin The Bank Identification Number of a tokenized card, which is the first + * six digits of a card number. */ @JsonProperty(JSON_PROPERTY_NETWORK_TOKEN_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,15 +117,18 @@ public void setNetworkTokenBin(String networkTokenBin) { * The last four digits of a network token. * * @param networkTokenTokenSummary The last four digits of a network token. - * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method chaining + * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method + * chaining */ - public ResponseAdditionalDataNetworkTokens networkTokenTokenSummary(String networkTokenTokenSummary) { + public ResponseAdditionalDataNetworkTokens networkTokenTokenSummary( + String networkTokenTokenSummary) { this.networkTokenTokenSummary = networkTokenTokenSummary; return this; } /** * The last four digits of a network token. + * * @return networkTokenTokenSummary The last four digits of a network token. */ @JsonProperty(JSON_PROPERTY_NETWORK_TOKEN_TOKEN_SUMMARY) @@ -142,9 +148,7 @@ public void setNetworkTokenTokenSummary(String networkTokenTokenSummary) { this.networkTokenTokenSummary = networkTokenTokenSummary; } - /** - * Return true if this ResponseAdditionalDataNetworkTokens object is equal to o. - */ + /** Return true if this ResponseAdditionalDataNetworkTokens object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -153,10 +157,14 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResponseAdditionalDataNetworkTokens responseAdditionalDataNetworkTokens = (ResponseAdditionalDataNetworkTokens) o; - return Objects.equals(this.networkTokenAvailable, responseAdditionalDataNetworkTokens.networkTokenAvailable) && - Objects.equals(this.networkTokenBin, responseAdditionalDataNetworkTokens.networkTokenBin) && - Objects.equals(this.networkTokenTokenSummary, responseAdditionalDataNetworkTokens.networkTokenTokenSummary); + ResponseAdditionalDataNetworkTokens responseAdditionalDataNetworkTokens = + (ResponseAdditionalDataNetworkTokens) o; + return Objects.equals( + this.networkTokenAvailable, responseAdditionalDataNetworkTokens.networkTokenAvailable) + && Objects.equals(this.networkTokenBin, responseAdditionalDataNetworkTokens.networkTokenBin) + && Objects.equals( + this.networkTokenTokenSummary, + responseAdditionalDataNetworkTokens.networkTokenTokenSummary); } @Override @@ -168,16 +176,19 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataNetworkTokens {\n"); - sb.append(" networkTokenAvailable: ").append(toIndentedString(networkTokenAvailable)).append("\n"); + sb.append(" networkTokenAvailable: ") + .append(toIndentedString(networkTokenAvailable)) + .append("\n"); sb.append(" networkTokenBin: ").append(toIndentedString(networkTokenBin)).append("\n"); - sb.append(" networkTokenTokenSummary: ").append(toIndentedString(networkTokenTokenSummary)).append("\n"); + sb.append(" networkTokenTokenSummary: ") + .append(toIndentedString(networkTokenTokenSummary)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +197,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResponseAdditionalDataNetworkTokens given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataNetworkTokens - * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataNetworkTokens + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ResponseAdditionalDataNetworkTokens */ - public static ResponseAdditionalDataNetworkTokens fromJson(String jsonString) throws JsonProcessingException { + public static ResponseAdditionalDataNetworkTokens fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataNetworkTokens.class); } -/** - * Convert an instance of ResponseAdditionalDataNetworkTokens to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResponseAdditionalDataNetworkTokens to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataOpi.java b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataOpi.java index 7f00c4bac..3729a6abc 100644 --- a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataOpi.java +++ b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataOpi.java @@ -2,46 +2,41 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ResponseAdditionalDataOpi - */ -@JsonPropertyOrder({ - ResponseAdditionalDataOpi.JSON_PROPERTY_OPI_TRANS_TOKEN -}) - +/** ResponseAdditionalDataOpi */ +@JsonPropertyOrder({ResponseAdditionalDataOpi.JSON_PROPERTY_OPI_TRANS_TOKEN}) public class ResponseAdditionalDataOpi { public static final String JSON_PROPERTY_OPI_TRANS_TOKEN = "opi.transToken"; private String opiTransToken; - public ResponseAdditionalDataOpi() { - } + public ResponseAdditionalDataOpi() {} /** - * Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * Returned in the response if you included `opi.includeTransToken: true` in an + * ecommerce payment request. This contains an Oracle Payment Interface token that you can store + * in your Oracle Opera database to identify tokenized ecommerce transactions. For more + * information and required settings, see [Oracle + * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). * - * @param opiTransToken Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * @param opiTransToken Returned in the response if you included `opi.includeTransToken: + * true` in an ecommerce payment request. This contains an Oracle Payment Interface token + * that you can store in your Oracle Opera database to identify tokenized ecommerce + * transactions. For more information and required settings, see [Oracle + * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). * @return the current {@code ResponseAdditionalDataOpi} instance, allowing for method chaining */ public ResponseAdditionalDataOpi opiTransToken(String opiTransToken) { @@ -50,8 +45,17 @@ public ResponseAdditionalDataOpi opiTransToken(String opiTransToken) { } /** - * Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). - * @return opiTransToken Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * Returned in the response if you included `opi.includeTransToken: true` in an + * ecommerce payment request. This contains an Oracle Payment Interface token that you can store + * in your Oracle Opera database to identify tokenized ecommerce transactions. For more + * information and required settings, see [Oracle + * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * + * @return opiTransToken Returned in the response if you included `opi.includeTransToken: + * true` in an ecommerce payment request. This contains an Oracle Payment Interface token + * that you can store in your Oracle Opera database to identify tokenized ecommerce + * transactions. For more information and required settings, see [Oracle + * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). */ @JsonProperty(JSON_PROPERTY_OPI_TRANS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,9 +64,17 @@ public String getOpiTransToken() { } /** - * Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * Returned in the response if you included `opi.includeTransToken: true` in an + * ecommerce payment request. This contains an Oracle Payment Interface token that you can store + * in your Oracle Opera database to identify tokenized ecommerce transactions. For more + * information and required settings, see [Oracle + * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). * - * @param opiTransToken Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * @param opiTransToken Returned in the response if you included `opi.includeTransToken: + * true` in an ecommerce payment request. This contains an Oracle Payment Interface token + * that you can store in your Oracle Opera database to identify tokenized ecommerce + * transactions. For more information and required settings, see [Oracle + * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). */ @JsonProperty(JSON_PROPERTY_OPI_TRANS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +82,7 @@ public void setOpiTransToken(String opiTransToken) { this.opiTransToken = opiTransToken; } - /** - * Return true if this ResponseAdditionalDataOpi object is equal to o. - */ + /** Return true if this ResponseAdditionalDataOpi object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +110,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +119,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResponseAdditionalDataOpi given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataOpi - * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataOpi + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ResponseAdditionalDataOpi */ - public static ResponseAdditionalDataOpi fromJson(String jsonString) throws JsonProcessingException { + public static ResponseAdditionalDataOpi fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataOpi.class); } -/** - * Convert an instance of ResponseAdditionalDataOpi to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResponseAdditionalDataOpi to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataSepa.java b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataSepa.java index c2cb8ce3c..ed01b3547 100644 --- a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataSepa.java +++ b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataSepa.java @@ -2,64 +2,57 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ResponseAdditionalDataSepa - */ +/** ResponseAdditionalDataSepa */ @JsonPropertyOrder({ ResponseAdditionalDataSepa.JSON_PROPERTY_SEPADIRECTDEBIT_DATE_OF_SIGNATURE, ResponseAdditionalDataSepa.JSON_PROPERTY_SEPADIRECTDEBIT_MANDATE_ID, ResponseAdditionalDataSepa.JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE }) - public class ResponseAdditionalDataSepa { - public static final String JSON_PROPERTY_SEPADIRECTDEBIT_DATE_OF_SIGNATURE = "sepadirectdebit.dateOfSignature"; + public static final String JSON_PROPERTY_SEPADIRECTDEBIT_DATE_OF_SIGNATURE = + "sepadirectdebit.dateOfSignature"; private String sepadirectdebitDateOfSignature; public static final String JSON_PROPERTY_SEPADIRECTDEBIT_MANDATE_ID = "sepadirectdebit.mandateId"; private String sepadirectdebitMandateId; - public static final String JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE = "sepadirectdebit.sequenceType"; + public static final String JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE = + "sepadirectdebit.sequenceType"; private String sepadirectdebitSequenceType; - public ResponseAdditionalDataSepa() { - } + public ResponseAdditionalDataSepa() {} /** - * The transaction signature date. Format: yyyy-MM-dd + * The transaction signature date. Format: yyyy-MM-dd * - * @param sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd + * @param sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd * @return the current {@code ResponseAdditionalDataSepa} instance, allowing for method chaining */ - public ResponseAdditionalDataSepa sepadirectdebitDateOfSignature(String sepadirectdebitDateOfSignature) { + public ResponseAdditionalDataSepa sepadirectdebitDateOfSignature( + String sepadirectdebitDateOfSignature) { this.sepadirectdebitDateOfSignature = sepadirectdebitDateOfSignature; return this; } /** - * The transaction signature date. Format: yyyy-MM-dd - * @return sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd + * The transaction signature date. Format: yyyy-MM-dd + * + * @return sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_DATE_OF_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,9 +61,9 @@ public String getSepadirectdebitDateOfSignature() { } /** - * The transaction signature date. Format: yyyy-MM-dd + * The transaction signature date. Format: yyyy-MM-dd * - * @param sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd + * @param sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_DATE_OF_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -81,7 +74,8 @@ public void setSepadirectdebitDateOfSignature(String sepadirectdebitDateOfSignat /** * Its value corresponds to the pspReference value of the transaction. * - * @param sepadirectdebitMandateId Its value corresponds to the pspReference value of the transaction. + * @param sepadirectdebitMandateId Its value corresponds to the pspReference value of the + * transaction. * @return the current {@code ResponseAdditionalDataSepa} instance, allowing for method chaining */ public ResponseAdditionalDataSepa sepadirectdebitMandateId(String sepadirectdebitMandateId) { @@ -91,7 +85,9 @@ public ResponseAdditionalDataSepa sepadirectdebitMandateId(String sepadirectdebi /** * Its value corresponds to the pspReference value of the transaction. - * @return sepadirectdebitMandateId Its value corresponds to the pspReference value of the transaction. + * + * @return sepadirectdebitMandateId Its value corresponds to the pspReference value of the + * transaction. */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_MANDATE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,7 +98,8 @@ public String getSepadirectdebitMandateId() { /** * Its value corresponds to the pspReference value of the transaction. * - * @param sepadirectdebitMandateId Its value corresponds to the pspReference value of the transaction. + * @param sepadirectdebitMandateId Its value corresponds to the pspReference value of the + * transaction. */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_MANDATE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,19 +108,39 @@ public void setSepadirectdebitMandateId(String sepadirectdebitMandateId) { } /** - * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF + * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to + * initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a + * series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out + * regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final + * collection in a series of direct debit instructions. Example: OOFF * - * @param sepadirectdebitSequenceType This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF + * @param sepadirectdebitSequenceType This field can take one of the following values: * OneOff: + * (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: + * (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: + * (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by + * the creditor. * Final: (FNAL) Last/final collection in a series of direct debit + * instructions. Example: OOFF * @return the current {@code ResponseAdditionalDataSepa} instance, allowing for method chaining */ - public ResponseAdditionalDataSepa sepadirectdebitSequenceType(String sepadirectdebitSequenceType) { + public ResponseAdditionalDataSepa sepadirectdebitSequenceType( + String sepadirectdebitSequenceType) { this.sepadirectdebitSequenceType = sepadirectdebitSequenceType; return this; } /** - * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF - * @return sepadirectdebitSequenceType This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF + * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to + * initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a + * series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out + * regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final + * collection in a series of direct debit instructions. Example: OOFF + * + * @return sepadirectdebitSequenceType This field can take one of the following values: * OneOff: + * (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: + * (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: + * (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by + * the creditor. * Final: (FNAL) Last/final collection in a series of direct debit + * instructions. Example: OOFF */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,9 +149,18 @@ public String getSepadirectdebitSequenceType() { } /** - * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF + * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to + * initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a + * series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out + * regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final + * collection in a series of direct debit instructions. Example: OOFF * - * @param sepadirectdebitSequenceType This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF + * @param sepadirectdebitSequenceType This field can take one of the following values: * OneOff: + * (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: + * (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: + * (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by + * the creditor. * Final: (FNAL) Last/final collection in a series of direct debit + * instructions. Example: OOFF */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +168,7 @@ public void setSepadirectdebitSequenceType(String sepadirectdebitSequenceType) { this.sepadirectdebitSequenceType = sepadirectdebitSequenceType; } - /** - * Return true if this ResponseAdditionalDataSepa object is equal to o. - */ + /** Return true if this ResponseAdditionalDataSepa object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,30 +178,41 @@ public boolean equals(Object o) { return false; } ResponseAdditionalDataSepa responseAdditionalDataSepa = (ResponseAdditionalDataSepa) o; - return Objects.equals(this.sepadirectdebitDateOfSignature, responseAdditionalDataSepa.sepadirectdebitDateOfSignature) && - Objects.equals(this.sepadirectdebitMandateId, responseAdditionalDataSepa.sepadirectdebitMandateId) && - Objects.equals(this.sepadirectdebitSequenceType, responseAdditionalDataSepa.sepadirectdebitSequenceType); + return Objects.equals( + this.sepadirectdebitDateOfSignature, + responseAdditionalDataSepa.sepadirectdebitDateOfSignature) + && Objects.equals( + this.sepadirectdebitMandateId, responseAdditionalDataSepa.sepadirectdebitMandateId) + && Objects.equals( + this.sepadirectdebitSequenceType, + responseAdditionalDataSepa.sepadirectdebitSequenceType); } @Override public int hashCode() { - return Objects.hash(sepadirectdebitDateOfSignature, sepadirectdebitMandateId, sepadirectdebitSequenceType); + return Objects.hash( + sepadirectdebitDateOfSignature, sepadirectdebitMandateId, sepadirectdebitSequenceType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataSepa {\n"); - sb.append(" sepadirectdebitDateOfSignature: ").append(toIndentedString(sepadirectdebitDateOfSignature)).append("\n"); - sb.append(" sepadirectdebitMandateId: ").append(toIndentedString(sepadirectdebitMandateId)).append("\n"); - sb.append(" sepadirectdebitSequenceType: ").append(toIndentedString(sepadirectdebitSequenceType)).append("\n"); + sb.append(" sepadirectdebitDateOfSignature: ") + .append(toIndentedString(sepadirectdebitDateOfSignature)) + .append("\n"); + sb.append(" sepadirectdebitMandateId: ") + .append(toIndentedString(sepadirectdebitMandateId)) + .append("\n"); + sb.append(" sepadirectdebitSequenceType: ") + .append(toIndentedString(sepadirectdebitSequenceType)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +221,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResponseAdditionalDataSepa given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataSepa - * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataSepa + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ResponseAdditionalDataSepa */ - public static ResponseAdditionalDataSepa fromJson(String jsonString) throws JsonProcessingException { + public static ResponseAdditionalDataSepa fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataSepa.class); } -/** - * Convert an instance of ResponseAdditionalDataSepa to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResponseAdditionalDataSepa to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataSwish.java b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataSwish.java index 7a6c1b2a4..d359fa625 100644 --- a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataSwish.java +++ b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataSwish.java @@ -2,41 +2,28 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ResponseAdditionalDataSwish - */ -@JsonPropertyOrder({ - ResponseAdditionalDataSwish.JSON_PROPERTY_SWISH_PAYER_ALIAS -}) - +/** ResponseAdditionalDataSwish */ +@JsonPropertyOrder({ResponseAdditionalDataSwish.JSON_PROPERTY_SWISH_PAYER_ALIAS}) public class ResponseAdditionalDataSwish { public static final String JSON_PROPERTY_SWISH_PAYER_ALIAS = "swish.payerAlias"; private String swishPayerAlias; - public ResponseAdditionalDataSwish() { - } + public ResponseAdditionalDataSwish() {} /** * A Swish shopper's telephone number. @@ -51,6 +38,7 @@ public ResponseAdditionalDataSwish swishPayerAlias(String swishPayerAlias) { /** * A Swish shopper's telephone number. + * * @return swishPayerAlias A Swish shopper's telephone number. */ @JsonProperty(JSON_PROPERTY_SWISH_PAYER_ALIAS) @@ -70,9 +58,7 @@ public void setSwishPayerAlias(String swishPayerAlias) { this.swishPayerAlias = swishPayerAlias; } - /** - * Return true if this ResponseAdditionalDataSwish object is equal to o. - */ + /** Return true if this ResponseAdditionalDataSwish object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +95,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResponseAdditionalDataSwish given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataSwish - * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataSwish + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ResponseAdditionalDataSwish */ - public static ResponseAdditionalDataSwish fromJson(String jsonString) throws JsonProcessingException { + public static ResponseAdditionalDataSwish fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataSwish.class); } -/** - * Convert an instance of ResponseAdditionalDataSwish to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResponseAdditionalDataSwish to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ResponsePaymentMethod.java b/src/main/java/com/adyen/model/checkout/ResponsePaymentMethod.java index 04de59969..0d1d63ca3 100644 --- a/src/main/java/com/adyen/model/checkout/ResponsePaymentMethod.java +++ b/src/main/java/com/adyen/model/checkout/ResponsePaymentMethod.java @@ -2,36 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ResponsePaymentMethod - */ +/** ResponsePaymentMethod */ @JsonPropertyOrder({ ResponsePaymentMethod.JSON_PROPERTY_BRAND, ResponsePaymentMethod.JSON_PROPERTY_TYPE }) - public class ResponsePaymentMethod { public static final String JSON_PROPERTY_BRAND = "brand"; private String brand; @@ -39,13 +29,14 @@ public class ResponsePaymentMethod { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public ResponsePaymentMethod() { - } + public ResponsePaymentMethod() {} /** - * The card brand that the shopper used to pay. Only returned if `paymentMethod.type` is **scheme**. + * The card brand that the shopper used to pay. Only returned if `paymentMethod.type` is + * **scheme**. * - * @param brand The card brand that the shopper used to pay. Only returned if `paymentMethod.type` is **scheme**. + * @param brand The card brand that the shopper used to pay. Only returned if + * `paymentMethod.type` is **scheme**. * @return the current {@code ResponsePaymentMethod} instance, allowing for method chaining */ public ResponsePaymentMethod brand(String brand) { @@ -54,8 +45,11 @@ public ResponsePaymentMethod brand(String brand) { } /** - * The card brand that the shopper used to pay. Only returned if `paymentMethod.type` is **scheme**. - * @return brand The card brand that the shopper used to pay. Only returned if `paymentMethod.type` is **scheme**. + * The card brand that the shopper used to pay. Only returned if `paymentMethod.type` is + * **scheme**. + * + * @return brand The card brand that the shopper used to pay. Only returned if + * `paymentMethod.type` is **scheme**. */ @JsonProperty(JSON_PROPERTY_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +58,11 @@ public String getBrand() { } /** - * The card brand that the shopper used to pay. Only returned if `paymentMethod.type` is **scheme**. + * The card brand that the shopper used to pay. Only returned if `paymentMethod.type` is + * **scheme**. * - * @param brand The card brand that the shopper used to pay. Only returned if `paymentMethod.type` is **scheme**. + * @param brand The card brand that the shopper used to pay. Only returned if + * `paymentMethod.type` is **scheme**. */ @JsonProperty(JSON_PROPERTY_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,6 +83,7 @@ public ResponsePaymentMethod type(String type) { /** * The `paymentMethod.type` value used in the request. + * * @return type The `paymentMethod.type` value used in the request. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -106,9 +103,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this ResponsePaymentMethod object is equal to o. - */ + /** Return true if this ResponsePaymentMethod object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +113,8 @@ public boolean equals(Object o) { return false; } ResponsePaymentMethod responsePaymentMethod = (ResponsePaymentMethod) o; - return Objects.equals(this.brand, responsePaymentMethod.brand) && - Objects.equals(this.type, responsePaymentMethod.type); + return Objects.equals(this.brand, responsePaymentMethod.brand) + && Objects.equals(this.type, responsePaymentMethod.type); } @Override @@ -138,8 +133,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +142,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResponsePaymentMethod given an JSON string * * @param jsonString JSON string * @return An instance of ResponsePaymentMethod - * @throws JsonProcessingException if the JSON string is invalid with respect to ResponsePaymentMethod + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ResponsePaymentMethod */ public static ResponsePaymentMethod fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponsePaymentMethod.class); } -/** - * Convert an instance of ResponsePaymentMethod to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResponsePaymentMethod to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Result.java b/src/main/java/com/adyen/model/checkout/Result.java index 96c070050..c8c43fea4 100644 --- a/src/main/java/com/adyen/model/checkout/Result.java +++ b/src/main/java/com/adyen/model/checkout/Result.java @@ -2,34 +2,25 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - - import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.*; -/** - * Gets or Sets Result - */ +/** Gets or Sets Result */ public enum Result { - VALID("VALID"), - + INVALID("INVALID"), - + UNKNOWN("UNKNOWN"); private String value; @@ -58,4 +49,3 @@ public static Result fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - diff --git a/src/main/java/com/adyen/model/checkout/RiskData.java b/src/main/java/com/adyen/model/checkout/RiskData.java index 59d69c013..b9c430932 100644 --- a/src/main/java/com/adyen/model/checkout/RiskData.java +++ b/src/main/java/com/adyen/model/checkout/RiskData.java @@ -2,40 +2,30 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.HashMap; +import java.util.Map; - -/** - * RiskData - */ +/** RiskData */ @JsonPropertyOrder({ RiskData.JSON_PROPERTY_CLIENT_DATA, RiskData.JSON_PROPERTY_CUSTOM_FIELDS, RiskData.JSON_PROPERTY_FRAUD_OFFSET, RiskData.JSON_PROPERTY_PROFILE_REFERENCE }) - public class RiskData { public static final String JSON_PROPERTY_CLIENT_DATA = "clientData"; private String clientData; @@ -49,13 +39,13 @@ public class RiskData { public static final String JSON_PROPERTY_PROFILE_REFERENCE = "profileReference"; private String profileReference; - public RiskData() { - } + public RiskData() {} /** * Contains client-side data, like the device fingerprint, cookies, and specific browser settings. * - * @param clientData Contains client-side data, like the device fingerprint, cookies, and specific browser settings. + * @param clientData Contains client-side data, like the device fingerprint, cookies, and specific + * browser settings. * @return the current {@code RiskData} instance, allowing for method chaining */ public RiskData clientData(String clientData) { @@ -65,7 +55,9 @@ public RiskData clientData(String clientData) { /** * Contains client-side data, like the device fingerprint, cookies, and specific browser settings. - * @return clientData Contains client-side data, like the device fingerprint, cookies, and specific browser settings. + * + * @return clientData Contains client-side data, like the device fingerprint, cookies, and + * specific browser settings. */ @JsonProperty(JSON_PROPERTY_CLIENT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -76,7 +68,8 @@ public String getClientData() { /** * Contains client-side data, like the device fingerprint, cookies, and specific browser settings. * - * @param clientData Contains client-side data, like the device fingerprint, cookies, and specific browser settings. + * @param clientData Contains client-side data, like the device fingerprint, cookies, and specific + * browser settings. */ @JsonProperty(JSON_PROPERTY_CLIENT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,6 +98,7 @@ public RiskData putCustomFieldsItem(String key, String customFieldsItem) { /** * Any custom fields used as part of the input to configured risk rules. + * * @return customFields Any custom fields used as part of the input to configured risk rules. */ @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) @@ -125,9 +119,11 @@ public void setCustomFields(Map customFields) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or + * negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be + * either positive or negative. * @return the current {@code RiskData} instance, allowing for method chaining */ public RiskData fraudOffset(Integer fraudOffset) { @@ -136,8 +132,11 @@ public RiskData fraudOffset(Integer fraudOffset) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. - * @return fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or + * negative. + * + * @return fraudOffset An integer value that is added to the normal fraud score. The value can be + * either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,9 +145,11 @@ public Integer getFraudOffset() { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or + * negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be + * either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -157,9 +158,11 @@ public void setFraudOffset(Integer fraudOffset) { } /** - * The risk profile to assign to this payment. When left empty, the merchant-level account's default risk profile will be applied. + * The risk profile to assign to this payment. When left empty, the merchant-level account's + * default risk profile will be applied. * - * @param profileReference The risk profile to assign to this payment. When left empty, the merchant-level account's default risk profile will be applied. + * @param profileReference The risk profile to assign to this payment. When left empty, the + * merchant-level account's default risk profile will be applied. * @return the current {@code RiskData} instance, allowing for method chaining */ public RiskData profileReference(String profileReference) { @@ -168,8 +171,11 @@ public RiskData profileReference(String profileReference) { } /** - * The risk profile to assign to this payment. When left empty, the merchant-level account's default risk profile will be applied. - * @return profileReference The risk profile to assign to this payment. When left empty, the merchant-level account's default risk profile will be applied. + * The risk profile to assign to this payment. When left empty, the merchant-level account's + * default risk profile will be applied. + * + * @return profileReference The risk profile to assign to this payment. When left empty, the + * merchant-level account's default risk profile will be applied. */ @JsonProperty(JSON_PROPERTY_PROFILE_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,9 +184,11 @@ public String getProfileReference() { } /** - * The risk profile to assign to this payment. When left empty, the merchant-level account's default risk profile will be applied. + * The risk profile to assign to this payment. When left empty, the merchant-level account's + * default risk profile will be applied. * - * @param profileReference The risk profile to assign to this payment. When left empty, the merchant-level account's default risk profile will be applied. + * @param profileReference The risk profile to assign to this payment. When left empty, the + * merchant-level account's default risk profile will be applied. */ @JsonProperty(JSON_PROPERTY_PROFILE_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,9 +196,7 @@ public void setProfileReference(String profileReference) { this.profileReference = profileReference; } - /** - * Return true if this RiskData object is equal to o. - */ + /** Return true if this RiskData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -200,10 +206,10 @@ public boolean equals(Object o) { return false; } RiskData riskData = (RiskData) o; - return Objects.equals(this.clientData, riskData.clientData) && - Objects.equals(this.customFields, riskData.customFields) && - Objects.equals(this.fraudOffset, riskData.fraudOffset) && - Objects.equals(this.profileReference, riskData.profileReference); + return Objects.equals(this.clientData, riskData.clientData) + && Objects.equals(this.customFields, riskData.customFields) + && Objects.equals(this.fraudOffset, riskData.fraudOffset) + && Objects.equals(this.profileReference, riskData.profileReference); } @Override @@ -224,8 +230,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -234,7 +239,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RiskData given an JSON string * * @param jsonString JSON string @@ -244,11 +249,12 @@ private String toIndentedString(Object o) { public static RiskData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RiskData.class); } -/** - * Convert an instance of RiskData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RiskData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/RivertyDetails.java b/src/main/java/com/adyen/model/checkout/RivertyDetails.java index bce8413ec..cc762c86d 100644 --- a/src/main/java/com/adyen/model/checkout/RivertyDetails.java +++ b/src/main/java/com/adyen/model/checkout/RivertyDetails.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * RivertyDetails - */ +/** RivertyDetails */ @JsonPropertyOrder({ RivertyDetails.JSON_PROPERTY_BILLING_ADDRESS, RivertyDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, @@ -39,7 +34,6 @@ RivertyDetails.JSON_PROPERTY_SUBTYPE, RivertyDetails.JSON_PROPERTY_TYPE }) - public class RivertyDetails { public static final String JSON_PROPERTY_BILLING_ADDRESS = "billingAddress"; private String billingAddress; @@ -69,11 +63,8 @@ public class RivertyDetails { public static final String JSON_PROPERTY_SUBTYPE = "subtype"; private String subtype; - /** - * **riverty** - */ + /** **riverty** */ public enum TypeEnum { - RIVERTY(String.valueOf("riverty")), RIVERTY_ACCOUNT(String.valueOf("riverty_account")), @@ -87,7 +78,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -108,7 +99,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -116,8 +111,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public RivertyDetails() { - } + public RivertyDetails() {} /** * The address where to send the invoice. @@ -132,6 +126,7 @@ public RivertyDetails billingAddress(String billingAddress) { /** * The address where to send the invoice. + * * @return billingAddress The address where to send the invoice. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @@ -164,6 +159,7 @@ public RivertyDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -196,6 +192,7 @@ public RivertyDetails deliveryAddress(String deliveryAddress) { /** * The address where the goods should be delivered. + * * @return deliveryAddress The address where the goods should be delivered. */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @@ -216,9 +213,12 @@ public void setDeliveryAddress(String deliveryAddress) { } /** - * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to + * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * - * @param deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @param deviceFingerprint A string containing the shopper's device fingerprint. For more + * information, refer to [Device + * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * @return the current {@code RivertyDetails} instance, allowing for method chaining */ public RivertyDetails deviceFingerprint(String deviceFingerprint) { @@ -227,8 +227,12 @@ public RivertyDetails deviceFingerprint(String deviceFingerprint) { } /** - * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). - * @return deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to + * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * + * @return deviceFingerprint A string containing the shopper's device fingerprint. For more + * information, refer to [Device + * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,9 +241,12 @@ public String getDeviceFingerprint() { } /** - * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to + * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * - * @param deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @param deviceFingerprint A string containing the shopper's device fingerprint. For more + * information, refer to [Device + * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -248,9 +255,9 @@ public void setDeviceFingerprint(String deviceFingerprint) { } /** - * The iban number of the customer + * The iban number of the customer * - * @param iban The iban number of the customer + * @param iban The iban number of the customer * @return the current {@code RivertyDetails} instance, allowing for method chaining */ public RivertyDetails iban(String iban) { @@ -259,8 +266,9 @@ public RivertyDetails iban(String iban) { } /** - * The iban number of the customer - * @return iban The iban number of the customer + * The iban number of the customer + * + * @return iban The iban number of the customer */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -269,9 +277,9 @@ public String getIban() { } /** - * The iban number of the customer + * The iban number of the customer * - * @param iban The iban number of the customer + * @param iban The iban number of the customer */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -292,6 +300,7 @@ public RivertyDetails personalDetails(String personalDetails) { /** * Shopper name, date of birth, phone number, and email address. + * * @return personalDetails Shopper name, date of birth, phone number, and email address. */ @JsonProperty(JSON_PROPERTY_PERSONAL_DETAILS) @@ -312,13 +321,13 @@ public void setPersonalDetails(String personalDetails) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code RivertyDetails} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public RivertyDetails recurringDetailReference(String recurringDetailReference) { @@ -327,8 +336,11 @@ public RivertyDetails recurringDetailReference(String recurringDetailReference) } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -339,12 +351,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -354,9 +366,11 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code RivertyDetails} instance, allowing for method chaining */ public RivertyDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -365,8 +379,11 @@ public RivertyDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -375,9 +392,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -398,6 +417,7 @@ public RivertyDetails subtype(String subtype) { /** * The payment method subtype. + * * @return subtype The payment method subtype. */ @JsonProperty(JSON_PROPERTY_SUBTYPE) @@ -430,6 +450,7 @@ public RivertyDetails type(TypeEnum type) { /** * **riverty** + * * @return type **riverty** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -449,9 +470,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this RivertyDetails object is equal to o. - */ + /** Return true if this RivertyDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -461,21 +480,31 @@ public boolean equals(Object o) { return false; } RivertyDetails rivertyDetails = (RivertyDetails) o; - return Objects.equals(this.billingAddress, rivertyDetails.billingAddress) && - Objects.equals(this.checkoutAttemptId, rivertyDetails.checkoutAttemptId) && - Objects.equals(this.deliveryAddress, rivertyDetails.deliveryAddress) && - Objects.equals(this.deviceFingerprint, rivertyDetails.deviceFingerprint) && - Objects.equals(this.iban, rivertyDetails.iban) && - Objects.equals(this.personalDetails, rivertyDetails.personalDetails) && - Objects.equals(this.recurringDetailReference, rivertyDetails.recurringDetailReference) && - Objects.equals(this.storedPaymentMethodId, rivertyDetails.storedPaymentMethodId) && - Objects.equals(this.subtype, rivertyDetails.subtype) && - Objects.equals(this.type, rivertyDetails.type); + return Objects.equals(this.billingAddress, rivertyDetails.billingAddress) + && Objects.equals(this.checkoutAttemptId, rivertyDetails.checkoutAttemptId) + && Objects.equals(this.deliveryAddress, rivertyDetails.deliveryAddress) + && Objects.equals(this.deviceFingerprint, rivertyDetails.deviceFingerprint) + && Objects.equals(this.iban, rivertyDetails.iban) + && Objects.equals(this.personalDetails, rivertyDetails.personalDetails) + && Objects.equals(this.recurringDetailReference, rivertyDetails.recurringDetailReference) + && Objects.equals(this.storedPaymentMethodId, rivertyDetails.storedPaymentMethodId) + && Objects.equals(this.subtype, rivertyDetails.subtype) + && Objects.equals(this.type, rivertyDetails.type); } @Override public int hashCode() { - return Objects.hash(billingAddress, checkoutAttemptId, deliveryAddress, deviceFingerprint, iban, personalDetails, recurringDetailReference, storedPaymentMethodId, subtype, type); + return Objects.hash( + billingAddress, + checkoutAttemptId, + deliveryAddress, + deviceFingerprint, + iban, + personalDetails, + recurringDetailReference, + storedPaymentMethodId, + subtype, + type); } @Override @@ -488,8 +517,12 @@ public String toString() { sb.append(" deviceFingerprint: ").append(toIndentedString(deviceFingerprint)).append("\n"); sb.append(" iban: ").append(toIndentedString(iban)).append("\n"); sb.append(" personalDetails: ").append(toIndentedString(personalDetails)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -497,8 +530,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -507,7 +539,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RivertyDetails given an JSON string * * @param jsonString JSON string @@ -517,11 +549,12 @@ private String toIndentedString(Object o) { public static RivertyDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RivertyDetails.class); } -/** - * Convert an instance of RivertyDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RivertyDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/SDKEphemPubKey.java b/src/main/java/com/adyen/model/checkout/SDKEphemPubKey.java index 93530473b..547873cbf 100644 --- a/src/main/java/com/adyen/model/checkout/SDKEphemPubKey.java +++ b/src/main/java/com/adyen/model/checkout/SDKEphemPubKey.java @@ -2,38 +2,28 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * SDKEphemPubKey - */ +/** SDKEphemPubKey */ @JsonPropertyOrder({ SDKEphemPubKey.JSON_PROPERTY_CRV, SDKEphemPubKey.JSON_PROPERTY_KTY, SDKEphemPubKey.JSON_PROPERTY_X, SDKEphemPubKey.JSON_PROPERTY_Y }) - public class SDKEphemPubKey { public static final String JSON_PROPERTY_CRV = "crv"; private String crv; @@ -47,8 +37,7 @@ public class SDKEphemPubKey { public static final String JSON_PROPERTY_Y = "y"; private String y; - public SDKEphemPubKey() { - } + public SDKEphemPubKey() {} /** * The `crv` value as received from the 3D Secure 2 SDK. @@ -63,6 +52,7 @@ public SDKEphemPubKey crv(String crv) { /** * The `crv` value as received from the 3D Secure 2 SDK. + * * @return crv The `crv` value as received from the 3D Secure 2 SDK. */ @JsonProperty(JSON_PROPERTY_CRV) @@ -95,6 +85,7 @@ public SDKEphemPubKey kty(String kty) { /** * The `kty` value as received from the 3D Secure 2 SDK. + * * @return kty The `kty` value as received from the 3D Secure 2 SDK. */ @JsonProperty(JSON_PROPERTY_KTY) @@ -127,6 +118,7 @@ public SDKEphemPubKey x(String x) { /** * The `x` value as received from the 3D Secure 2 SDK. + * * @return x The `x` value as received from the 3D Secure 2 SDK. */ @JsonProperty(JSON_PROPERTY_X) @@ -159,6 +151,7 @@ public SDKEphemPubKey y(String y) { /** * The `y` value as received from the 3D Secure 2 SDK. + * * @return y The `y` value as received from the 3D Secure 2 SDK. */ @JsonProperty(JSON_PROPERTY_Y) @@ -178,9 +171,7 @@ public void setY(String y) { this.y = y; } - /** - * Return true if this SDKEphemPubKey object is equal to o. - */ + /** Return true if this SDKEphemPubKey object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -190,10 +181,10 @@ public boolean equals(Object o) { return false; } SDKEphemPubKey sdKEphemPubKey = (SDKEphemPubKey) o; - return Objects.equals(this.crv, sdKEphemPubKey.crv) && - Objects.equals(this.kty, sdKEphemPubKey.kty) && - Objects.equals(this.x, sdKEphemPubKey.x) && - Objects.equals(this.y, sdKEphemPubKey.y); + return Objects.equals(this.crv, sdKEphemPubKey.crv) + && Objects.equals(this.kty, sdKEphemPubKey.kty) + && Objects.equals(this.x, sdKEphemPubKey.x) + && Objects.equals(this.y, sdKEphemPubKey.y); } @Override @@ -214,8 +205,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,7 +214,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SDKEphemPubKey given an JSON string * * @param jsonString JSON string @@ -234,11 +224,12 @@ private String toIndentedString(Object o) { public static SDKEphemPubKey fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SDKEphemPubKey.class); } -/** - * Convert an instance of SDKEphemPubKey to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SDKEphemPubKey to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/SamsungPayDetails.java b/src/main/java/com/adyen/model/checkout/SamsungPayDetails.java index 8b1550b02..add3103e6 100644 --- a/src/main/java/com/adyen/model/checkout/SamsungPayDetails.java +++ b/src/main/java/com/adyen/model/checkout/SamsungPayDetails.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * SamsungPayDetails - */ +/** SamsungPayDetails */ @JsonPropertyOrder({ SamsungPayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, SamsungPayDetails.JSON_PROPERTY_FUNDING_SOURCE, @@ -35,16 +30,15 @@ SamsungPayDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, SamsungPayDetails.JSON_PROPERTY_TYPE }) - public class SamsungPayDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. */ public enum FundingSourceEnum { - CREDIT(String.valueOf("credit")), DEBIT(String.valueOf("debit")); @@ -54,7 +48,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -75,7 +69,11 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); + LOG.warning( + "FundingSourceEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -93,11 +91,8 @@ public static FundingSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** - * **samsungpay** - */ + /** **samsungpay** */ public enum TypeEnum { - SAMSUNGPAY(String.valueOf("samsungpay")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -105,7 +100,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -126,7 +121,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -134,8 +133,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public SamsungPayDetails() { - } + public SamsungPayDetails() {} /** * The checkout attempt identifier. @@ -150,6 +148,7 @@ public SamsungPayDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -170,9 +169,12 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. * @return the current {@code SamsungPayDetails} instance, allowing for method chaining */ public SamsungPayDetails fundingSource(FundingSourceEnum fundingSource) { @@ -181,8 +183,12 @@ public SamsungPayDetails fundingSource(FundingSourceEnum fundingSource) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. - * @return fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * + * @return fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,9 +197,12 @@ public FundingSourceEnum getFundingSource() { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -202,13 +211,13 @@ public void setFundingSource(FundingSourceEnum fundingSource) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code SamsungPayDetails} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public SamsungPayDetails recurringDetailReference(String recurringDetailReference) { @@ -217,8 +226,11 @@ public SamsungPayDetails recurringDetailReference(String recurringDetailReferenc } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -229,12 +241,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -256,6 +268,7 @@ public SamsungPayDetails samsungPayToken(String samsungPayToken) { /** * The payload you received from the Samsung Pay SDK response. + * * @return samsungPayToken The payload you received from the Samsung Pay SDK response. */ @JsonProperty(JSON_PROPERTY_SAMSUNG_PAY_TOKEN) @@ -276,9 +289,11 @@ public void setSamsungPayToken(String samsungPayToken) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code SamsungPayDetails} instance, allowing for method chaining */ public SamsungPayDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -287,8 +302,11 @@ public SamsungPayDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -297,9 +315,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -320,6 +340,7 @@ public SamsungPayDetails type(TypeEnum type) { /** * **samsungpay** + * * @return type **samsungpay** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -339,9 +360,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this SamsungPayDetails object is equal to o. - */ + /** Return true if this SamsungPayDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -351,17 +370,23 @@ public boolean equals(Object o) { return false; } SamsungPayDetails samsungPayDetails = (SamsungPayDetails) o; - return Objects.equals(this.checkoutAttemptId, samsungPayDetails.checkoutAttemptId) && - Objects.equals(this.fundingSource, samsungPayDetails.fundingSource) && - Objects.equals(this.recurringDetailReference, samsungPayDetails.recurringDetailReference) && - Objects.equals(this.samsungPayToken, samsungPayDetails.samsungPayToken) && - Objects.equals(this.storedPaymentMethodId, samsungPayDetails.storedPaymentMethodId) && - Objects.equals(this.type, samsungPayDetails.type); + return Objects.equals(this.checkoutAttemptId, samsungPayDetails.checkoutAttemptId) + && Objects.equals(this.fundingSource, samsungPayDetails.fundingSource) + && Objects.equals(this.recurringDetailReference, samsungPayDetails.recurringDetailReference) + && Objects.equals(this.samsungPayToken, samsungPayDetails.samsungPayToken) + && Objects.equals(this.storedPaymentMethodId, samsungPayDetails.storedPaymentMethodId) + && Objects.equals(this.type, samsungPayDetails.type); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, fundingSource, recurringDetailReference, samsungPayToken, storedPaymentMethodId, type); + return Objects.hash( + checkoutAttemptId, + fundingSource, + recurringDetailReference, + samsungPayToken, + storedPaymentMethodId, + type); } @Override @@ -370,17 +395,20 @@ public String toString() { sb.append("class SamsungPayDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); sb.append(" samsungPayToken: ").append(toIndentedString(samsungPayToken)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -389,7 +417,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SamsungPayDetails given an JSON string * * @param jsonString JSON string @@ -399,11 +427,12 @@ private String toIndentedString(Object o) { public static SamsungPayDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SamsungPayDetails.class); } -/** - * Convert an instance of SamsungPayDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SamsungPayDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/SepaDirectDebitDetails.java b/src/main/java/com/adyen/model/checkout/SepaDirectDebitDetails.java index 6c417bafd..779ed59f8 100644 --- a/src/main/java/com/adyen/model/checkout/SepaDirectDebitDetails.java +++ b/src/main/java/com/adyen/model/checkout/SepaDirectDebitDetails.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * SepaDirectDebitDetails - */ +/** SepaDirectDebitDetails */ @JsonPropertyOrder({ SepaDirectDebitDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, SepaDirectDebitDetails.JSON_PROPERTY_IBAN, @@ -36,7 +31,6 @@ SepaDirectDebitDetails.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID, SepaDirectDebitDetails.JSON_PROPERTY_TYPE }) - public class SepaDirectDebitDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -57,11 +51,8 @@ public class SepaDirectDebitDetails { public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_ID = "transferInstrumentId"; private String transferInstrumentId; - /** - * **sepadirectdebit** - */ + /** **sepadirectdebit** */ public enum TypeEnum { - SEPADIRECTDEBIT(String.valueOf("sepadirectdebit")), SEPADIRECTDEBIT_AMAZONPAY(String.valueOf("sepadirectdebit_amazonpay")); @@ -71,7 +62,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -92,7 +83,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -100,8 +95,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public SepaDirectDebitDetails() { - } + public SepaDirectDebitDetails() {} /** * The checkout attempt identifier. @@ -116,6 +110,7 @@ public SepaDirectDebitDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -148,6 +143,7 @@ public SepaDirectDebitDetails iban(String iban) { /** * The International Bank Account Number (IBAN). + * * @return iban The International Bank Account Number (IBAN). */ @JsonProperty(JSON_PROPERTY_IBAN) @@ -180,6 +176,7 @@ public SepaDirectDebitDetails ownerName(String ownerName) { /** * The name of the bank account holder. + * * @return ownerName The name of the bank account holder. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @@ -200,13 +197,13 @@ public void setOwnerName(String ownerName) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code SepaDirectDebitDetails} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public SepaDirectDebitDetails recurringDetailReference(String recurringDetailReference) { @@ -215,8 +212,11 @@ public SepaDirectDebitDetails recurringDetailReference(String recurringDetailRef } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -227,12 +227,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -242,9 +242,11 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code SepaDirectDebitDetails} instance, allowing for method chaining */ public SepaDirectDebitDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -253,8 +255,11 @@ public SepaDirectDebitDetails storedPaymentMethodId(String storedPaymentMethodId } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -263,9 +268,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -274,9 +281,11 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { } /** - * The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. + * The unique identifier of your user's verified transfer instrument, which you can use to top + * up their balance accounts. * - * @param transferInstrumentId The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. + * @param transferInstrumentId The unique identifier of your user's verified transfer + * instrument, which you can use to top up their balance accounts. * @return the current {@code SepaDirectDebitDetails} instance, allowing for method chaining */ public SepaDirectDebitDetails transferInstrumentId(String transferInstrumentId) { @@ -285,8 +294,11 @@ public SepaDirectDebitDetails transferInstrumentId(String transferInstrumentId) } /** - * The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. - * @return transferInstrumentId The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. + * The unique identifier of your user's verified transfer instrument, which you can use to top + * up their balance accounts. + * + * @return transferInstrumentId The unique identifier of your user's verified transfer + * instrument, which you can use to top up their balance accounts. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -295,9 +307,11 @@ public String getTransferInstrumentId() { } /** - * The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. + * The unique identifier of your user's verified transfer instrument, which you can use to top + * up their balance accounts. * - * @param transferInstrumentId The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts. + * @param transferInstrumentId The unique identifier of your user's verified transfer + * instrument, which you can use to top up their balance accounts. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -318,6 +332,7 @@ public SepaDirectDebitDetails type(TypeEnum type) { /** * **sepadirectdebit** + * * @return type **sepadirectdebit** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -337,9 +352,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this SepaDirectDebitDetails object is equal to o. - */ + /** Return true if this SepaDirectDebitDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -349,18 +362,26 @@ public boolean equals(Object o) { return false; } SepaDirectDebitDetails sepaDirectDebitDetails = (SepaDirectDebitDetails) o; - return Objects.equals(this.checkoutAttemptId, sepaDirectDebitDetails.checkoutAttemptId) && - Objects.equals(this.iban, sepaDirectDebitDetails.iban) && - Objects.equals(this.ownerName, sepaDirectDebitDetails.ownerName) && - Objects.equals(this.recurringDetailReference, sepaDirectDebitDetails.recurringDetailReference) && - Objects.equals(this.storedPaymentMethodId, sepaDirectDebitDetails.storedPaymentMethodId) && - Objects.equals(this.transferInstrumentId, sepaDirectDebitDetails.transferInstrumentId) && - Objects.equals(this.type, sepaDirectDebitDetails.type); + return Objects.equals(this.checkoutAttemptId, sepaDirectDebitDetails.checkoutAttemptId) + && Objects.equals(this.iban, sepaDirectDebitDetails.iban) + && Objects.equals(this.ownerName, sepaDirectDebitDetails.ownerName) + && Objects.equals( + this.recurringDetailReference, sepaDirectDebitDetails.recurringDetailReference) + && Objects.equals(this.storedPaymentMethodId, sepaDirectDebitDetails.storedPaymentMethodId) + && Objects.equals(this.transferInstrumentId, sepaDirectDebitDetails.transferInstrumentId) + && Objects.equals(this.type, sepaDirectDebitDetails.type); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, iban, ownerName, recurringDetailReference, storedPaymentMethodId, transferInstrumentId, type); + return Objects.hash( + checkoutAttemptId, + iban, + ownerName, + recurringDetailReference, + storedPaymentMethodId, + transferInstrumentId, + type); } @Override @@ -370,17 +391,22 @@ public String toString() { sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" iban: ").append(toIndentedString(iban)).append("\n"); sb.append(" ownerName: ").append(toIndentedString(ownerName)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); - sb.append(" transferInstrumentId: ").append(toIndentedString(transferInstrumentId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); + sb.append(" transferInstrumentId: ") + .append(toIndentedString(transferInstrumentId)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -389,21 +415,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SepaDirectDebitDetails given an JSON string * * @param jsonString JSON string * @return An instance of SepaDirectDebitDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to SepaDirectDebitDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SepaDirectDebitDetails */ public static SepaDirectDebitDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SepaDirectDebitDetails.class); } -/** - * Convert an instance of SepaDirectDebitDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SepaDirectDebitDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ServiceError.java b/src/main/java/com/adyen/model/checkout/ServiceError.java index 10c10bc67..d81699410 100644 --- a/src/main/java/com/adyen/model/checkout/ServiceError.java +++ b/src/main/java/com/adyen/model/checkout/ServiceError.java @@ -2,33 +2,24 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.HashMap; +import java.util.Map; - -/** - * ServiceError - */ +/** ServiceError */ @JsonPropertyOrder({ ServiceError.JSON_PROPERTY_ADDITIONAL_DATA, ServiceError.JSON_PROPERTY_ERROR_CODE, @@ -37,7 +28,6 @@ ServiceError.JSON_PROPERTY_PSP_REFERENCE, ServiceError.JSON_PROPERTY_STATUS }) - public class ServiceError { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -57,13 +47,15 @@ public class ServiceError { public static final String JSON_PROPERTY_STATUS = "status"; private Integer status; - public ServiceError() { - } + public ServiceError() {} /** - * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first. Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first. Go to **Customer Area** > **Developers** > + * **Additional data**. * @return the current {@code ServiceError} instance, allowing for method chaining */ public ServiceError additionalData(Map additionalData) { @@ -80,8 +72,12 @@ public ServiceError putAdditionalDataItem(String key, String additionalDataItem) } /** - * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. - * @return additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * + * @return additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first. Go to **Customer Area** > **Developers** > + * **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -90,9 +86,12 @@ public Map getAdditionalData() { } /** - * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first. Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first. Go to **Customer Area** > **Developers** > + * **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,6 +112,7 @@ public ServiceError errorCode(String errorCode) { /** * The error code mapped to the error message. + * * @return errorCode The error code mapped to the error message. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -145,6 +145,7 @@ public ServiceError errorType(String errorType) { /** * The category of the error. + * * @return errorType The category of the error. */ @JsonProperty(JSON_PROPERTY_ERROR_TYPE) @@ -177,6 +178,7 @@ public ServiceError message(String message) { /** * A short explanation of the issue. + * * @return message A short explanation of the issue. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -209,6 +211,7 @@ public ServiceError pspReference(String pspReference) { /** * The PSP reference of the payment. + * * @return pspReference The PSP reference of the payment. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -241,6 +244,7 @@ public ServiceError status(Integer status) { /** * The HTTP response status. + * * @return status The HTTP response status. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -260,9 +264,7 @@ public void setStatus(Integer status) { this.status = status; } - /** - * Return true if this ServiceError object is equal to o. - */ + /** Return true if this ServiceError object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -272,12 +274,12 @@ public boolean equals(Object o) { return false; } ServiceError serviceError = (ServiceError) o; - return Objects.equals(this.additionalData, serviceError.additionalData) && - Objects.equals(this.errorCode, serviceError.errorCode) && - Objects.equals(this.errorType, serviceError.errorType) && - Objects.equals(this.message, serviceError.message) && - Objects.equals(this.pspReference, serviceError.pspReference) && - Objects.equals(this.status, serviceError.status); + return Objects.equals(this.additionalData, serviceError.additionalData) + && Objects.equals(this.errorCode, serviceError.errorCode) + && Objects.equals(this.errorType, serviceError.errorType) + && Objects.equals(this.message, serviceError.message) + && Objects.equals(this.pspReference, serviceError.pspReference) + && Objects.equals(this.status, serviceError.status); } @Override @@ -300,8 +302,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -310,7 +311,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ServiceError given an JSON string * * @param jsonString JSON string @@ -320,11 +321,12 @@ private String toIndentedString(Object o) { public static ServiceError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } -/** - * Convert an instance of ServiceError to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ServiceError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/SessionResultResponse.java b/src/main/java/com/adyen/model/checkout/SessionResultResponse.java index 08d30f07f..d792465e3 100644 --- a/src/main/java/com/adyen/model/checkout/SessionResultResponse.java +++ b/src/main/java/com/adyen/model/checkout/SessionResultResponse.java @@ -2,36 +2,30 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Payment; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * SessionResultResponse - */ +/** SessionResultResponse */ @JsonPropertyOrder({ SessionResultResponse.JSON_PROPERTY_ADDITIONAL_DATA, SessionResultResponse.JSON_PROPERTY_ID, @@ -39,7 +33,6 @@ SessionResultResponse.JSON_PROPERTY_REFERENCE, SessionResultResponse.JSON_PROPERTY_STATUS }) - public class SessionResultResponse { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -54,10 +47,18 @@ public class SessionResultResponse { private String reference; /** - * The status of the session. The status included in the response doesn't get updated. Don't make the request again to check for payment status updates. Possible values: * **completed**: the shopper completed the payment, and the payment was authorized. * **paymentPending**: the shopper is in the process of making the payment. This applies to payment methods with an asynchronous flow, like voucher payments where the shopper completes the payment in a physical shop. * **refused**: the session has been refused, because of too many refused payment attempts. The shopper can no longer complete the payment with this session. * **canceled**: the shopper canceled the payment. * **expired**: the session expired. The shopper can no longer complete the payment with this session. By default, the session expires one hour after it is created. + * The status of the session. The status included in the response doesn't get updated. + * Don't make the request again to check for payment status updates. Possible values: * + * **completed**: the shopper completed the payment, and the payment was authorized. * + * **paymentPending**: the shopper is in the process of making the payment. This applies to + * payment methods with an asynchronous flow, like voucher payments where the shopper completes + * the payment in a physical shop. * **refused**: the session has been refused, because of too + * many refused payment attempts. The shopper can no longer complete the payment with this + * session. * **canceled**: the shopper canceled the payment. * **expired**: the session expired. + * The shopper can no longer complete the payment with this session. By default, the session + * expires one hour after it is created. */ public enum StatusEnum { - ACTIVE(String.valueOf("active")), CANCELED(String.valueOf("canceled")), @@ -75,7 +76,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -96,7 +97,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -104,13 +109,16 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; - public SessionResultResponse() { - } + public SessionResultResponse() {} /** - * Contains additional information about the payment. Some fields are included only if you enable them. To enable these fields in your Customer Area, go to **Developers** > **Additional data**. + * Contains additional information about the payment. Some fields are included only if you enable + * them. To enable these fields in your Customer Area, go to **Developers** > **Additional + * data**. * - * @param additionalData Contains additional information about the payment. Some fields are included only if you enable them. To enable these fields in your Customer Area, go to **Developers** > **Additional data**. + * @param additionalData Contains additional information about the payment. Some fields are + * included only if you enable them. To enable these fields in your Customer Area, go to + * **Developers** > **Additional data**. * @return the current {@code SessionResultResponse} instance, allowing for method chaining */ public SessionResultResponse additionalData(Map additionalData) { @@ -127,8 +135,13 @@ public SessionResultResponse putAdditionalDataItem(String key, String additional } /** - * Contains additional information about the payment. Some fields are included only if you enable them. To enable these fields in your Customer Area, go to **Developers** > **Additional data**. - * @return additionalData Contains additional information about the payment. Some fields are included only if you enable them. To enable these fields in your Customer Area, go to **Developers** > **Additional data**. + * Contains additional information about the payment. Some fields are included only if you enable + * them. To enable these fields in your Customer Area, go to **Developers** > **Additional + * data**. + * + * @return additionalData Contains additional information about the payment. Some fields are + * included only if you enable them. To enable these fields in your Customer Area, go to + * **Developers** > **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,9 +150,13 @@ public Map getAdditionalData() { } /** - * Contains additional information about the payment. Some fields are included only if you enable them. To enable these fields in your Customer Area, go to **Developers** > **Additional data**. + * Contains additional information about the payment. Some fields are included only if you enable + * them. To enable these fields in your Customer Area, go to **Developers** > **Additional + * data**. * - * @param additionalData Contains additional information about the payment. Some fields are included only if you enable them. To enable these fields in your Customer Area, go to **Developers** > **Additional data**. + * @param additionalData Contains additional information about the payment. Some fields are + * included only if you enable them. To enable these fields in your Customer Area, go to + * **Developers** > **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,6 +177,7 @@ public SessionResultResponse id(String id) { /** * A unique identifier of the session. + * * @return id A unique identifier of the session. */ @JsonProperty(JSON_PROPERTY_ID) @@ -200,6 +218,7 @@ public SessionResultResponse addPaymentsItem(Payment paymentsItem) { /** * A list of all authorised payments done for this session. + * * @return payments A list of all authorised payments done for this session. */ @JsonProperty(JSON_PROPERTY_PAYMENTS) @@ -220,9 +239,12 @@ public void setPayments(List payments) { } /** - * The unique reference that you provided in the original `/sessions` request. This identifies the payment and is used in all communication with you about the payment status. + * The unique reference that you provided in the original `/sessions` request. This + * identifies the payment and is used in all communication with you about the payment status. * - * @param reference The unique reference that you provided in the original `/sessions` request. This identifies the payment and is used in all communication with you about the payment status. + * @param reference The unique reference that you provided in the original `/sessions` + * request. This identifies the payment and is used in all communication with you about the + * payment status. * @return the current {@code SessionResultResponse} instance, allowing for method chaining */ public SessionResultResponse reference(String reference) { @@ -231,8 +253,12 @@ public SessionResultResponse reference(String reference) { } /** - * The unique reference that you provided in the original `/sessions` request. This identifies the payment and is used in all communication with you about the payment status. - * @return reference The unique reference that you provided in the original `/sessions` request. This identifies the payment and is used in all communication with you about the payment status. + * The unique reference that you provided in the original `/sessions` request. This + * identifies the payment and is used in all communication with you about the payment status. + * + * @return reference The unique reference that you provided in the original `/sessions` + * request. This identifies the payment and is used in all communication with you about the + * payment status. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -241,9 +267,12 @@ public String getReference() { } /** - * The unique reference that you provided in the original `/sessions` request. This identifies the payment and is used in all communication with you about the payment status. + * The unique reference that you provided in the original `/sessions` request. This + * identifies the payment and is used in all communication with you about the payment status. * - * @param reference The unique reference that you provided in the original `/sessions` request. This identifies the payment and is used in all communication with you about the payment status. + * @param reference The unique reference that you provided in the original `/sessions` + * request. This identifies the payment and is used in all communication with you about the + * payment status. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,9 +281,27 @@ public void setReference(String reference) { } /** - * The status of the session. The status included in the response doesn't get updated. Don't make the request again to check for payment status updates. Possible values: * **completed**: the shopper completed the payment, and the payment was authorized. * **paymentPending**: the shopper is in the process of making the payment. This applies to payment methods with an asynchronous flow, like voucher payments where the shopper completes the payment in a physical shop. * **refused**: the session has been refused, because of too many refused payment attempts. The shopper can no longer complete the payment with this session. * **canceled**: the shopper canceled the payment. * **expired**: the session expired. The shopper can no longer complete the payment with this session. By default, the session expires one hour after it is created. + * The status of the session. The status included in the response doesn't get updated. + * Don't make the request again to check for payment status updates. Possible values: * + * **completed**: the shopper completed the payment, and the payment was authorized. * + * **paymentPending**: the shopper is in the process of making the payment. This applies to + * payment methods with an asynchronous flow, like voucher payments where the shopper completes + * the payment in a physical shop. * **refused**: the session has been refused, because of too + * many refused payment attempts. The shopper can no longer complete the payment with this + * session. * **canceled**: the shopper canceled the payment. * **expired**: the session expired. + * The shopper can no longer complete the payment with this session. By default, the session + * expires one hour after it is created. * - * @param status The status of the session. The status included in the response doesn't get updated. Don't make the request again to check for payment status updates. Possible values: * **completed**: the shopper completed the payment, and the payment was authorized. * **paymentPending**: the shopper is in the process of making the payment. This applies to payment methods with an asynchronous flow, like voucher payments where the shopper completes the payment in a physical shop. * **refused**: the session has been refused, because of too many refused payment attempts. The shopper can no longer complete the payment with this session. * **canceled**: the shopper canceled the payment. * **expired**: the session expired. The shopper can no longer complete the payment with this session. By default, the session expires one hour after it is created. + * @param status The status of the session. The status included in the response doesn't get + * updated. Don't make the request again to check for payment status updates. Possible + * values: * **completed**: the shopper completed the payment, and the payment was authorized. + * * **paymentPending**: the shopper is in the process of making the payment. This applies to + * payment methods with an asynchronous flow, like voucher payments where the shopper + * completes the payment in a physical shop. * **refused**: the session has been refused, + * because of too many refused payment attempts. The shopper can no longer complete the + * payment with this session. * **canceled**: the shopper canceled the payment. * **expired**: + * the session expired. The shopper can no longer complete the payment with this session. By + * default, the session expires one hour after it is created. * @return the current {@code SessionResultResponse} instance, allowing for method chaining */ public SessionResultResponse status(StatusEnum status) { @@ -263,8 +310,27 @@ public SessionResultResponse status(StatusEnum status) { } /** - * The status of the session. The status included in the response doesn't get updated. Don't make the request again to check for payment status updates. Possible values: * **completed**: the shopper completed the payment, and the payment was authorized. * **paymentPending**: the shopper is in the process of making the payment. This applies to payment methods with an asynchronous flow, like voucher payments where the shopper completes the payment in a physical shop. * **refused**: the session has been refused, because of too many refused payment attempts. The shopper can no longer complete the payment with this session. * **canceled**: the shopper canceled the payment. * **expired**: the session expired. The shopper can no longer complete the payment with this session. By default, the session expires one hour after it is created. - * @return status The status of the session. The status included in the response doesn't get updated. Don't make the request again to check for payment status updates. Possible values: * **completed**: the shopper completed the payment, and the payment was authorized. * **paymentPending**: the shopper is in the process of making the payment. This applies to payment methods with an asynchronous flow, like voucher payments where the shopper completes the payment in a physical shop. * **refused**: the session has been refused, because of too many refused payment attempts. The shopper can no longer complete the payment with this session. * **canceled**: the shopper canceled the payment. * **expired**: the session expired. The shopper can no longer complete the payment with this session. By default, the session expires one hour after it is created. + * The status of the session. The status included in the response doesn't get updated. + * Don't make the request again to check for payment status updates. Possible values: * + * **completed**: the shopper completed the payment, and the payment was authorized. * + * **paymentPending**: the shopper is in the process of making the payment. This applies to + * payment methods with an asynchronous flow, like voucher payments where the shopper completes + * the payment in a physical shop. * **refused**: the session has been refused, because of too + * many refused payment attempts. The shopper can no longer complete the payment with this + * session. * **canceled**: the shopper canceled the payment. * **expired**: the session expired. + * The shopper can no longer complete the payment with this session. By default, the session + * expires one hour after it is created. + * + * @return status The status of the session. The status included in the response doesn't get + * updated. Don't make the request again to check for payment status updates. Possible + * values: * **completed**: the shopper completed the payment, and the payment was authorized. + * * **paymentPending**: the shopper is in the process of making the payment. This applies to + * payment methods with an asynchronous flow, like voucher payments where the shopper + * completes the payment in a physical shop. * **refused**: the session has been refused, + * because of too many refused payment attempts. The shopper can no longer complete the + * payment with this session. * **canceled**: the shopper canceled the payment. * **expired**: + * the session expired. The shopper can no longer complete the payment with this session. By + * default, the session expires one hour after it is created. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -273,9 +339,27 @@ public StatusEnum getStatus() { } /** - * The status of the session. The status included in the response doesn't get updated. Don't make the request again to check for payment status updates. Possible values: * **completed**: the shopper completed the payment, and the payment was authorized. * **paymentPending**: the shopper is in the process of making the payment. This applies to payment methods with an asynchronous flow, like voucher payments where the shopper completes the payment in a physical shop. * **refused**: the session has been refused, because of too many refused payment attempts. The shopper can no longer complete the payment with this session. * **canceled**: the shopper canceled the payment. * **expired**: the session expired. The shopper can no longer complete the payment with this session. By default, the session expires one hour after it is created. + * The status of the session. The status included in the response doesn't get updated. + * Don't make the request again to check for payment status updates. Possible values: * + * **completed**: the shopper completed the payment, and the payment was authorized. * + * **paymentPending**: the shopper is in the process of making the payment. This applies to + * payment methods with an asynchronous flow, like voucher payments where the shopper completes + * the payment in a physical shop. * **refused**: the session has been refused, because of too + * many refused payment attempts. The shopper can no longer complete the payment with this + * session. * **canceled**: the shopper canceled the payment. * **expired**: the session expired. + * The shopper can no longer complete the payment with this session. By default, the session + * expires one hour after it is created. * - * @param status The status of the session. The status included in the response doesn't get updated. Don't make the request again to check for payment status updates. Possible values: * **completed**: the shopper completed the payment, and the payment was authorized. * **paymentPending**: the shopper is in the process of making the payment. This applies to payment methods with an asynchronous flow, like voucher payments where the shopper completes the payment in a physical shop. * **refused**: the session has been refused, because of too many refused payment attempts. The shopper can no longer complete the payment with this session. * **canceled**: the shopper canceled the payment. * **expired**: the session expired. The shopper can no longer complete the payment with this session. By default, the session expires one hour after it is created. + * @param status The status of the session. The status included in the response doesn't get + * updated. Don't make the request again to check for payment status updates. Possible + * values: * **completed**: the shopper completed the payment, and the payment was authorized. + * * **paymentPending**: the shopper is in the process of making the payment. This applies to + * payment methods with an asynchronous flow, like voucher payments where the shopper + * completes the payment in a physical shop. * **refused**: the session has been refused, + * because of too many refused payment attempts. The shopper can no longer complete the + * payment with this session. * **canceled**: the shopper canceled the payment. * **expired**: + * the session expired. The shopper can no longer complete the payment with this session. By + * default, the session expires one hour after it is created. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -283,9 +367,7 @@ public void setStatus(StatusEnum status) { this.status = status; } - /** - * Return true if this SessionResultResponse object is equal to o. - */ + /** Return true if this SessionResultResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -295,11 +377,11 @@ public boolean equals(Object o) { return false; } SessionResultResponse sessionResultResponse = (SessionResultResponse) o; - return Objects.equals(this.additionalData, sessionResultResponse.additionalData) && - Objects.equals(this.id, sessionResultResponse.id) && - Objects.equals(this.payments, sessionResultResponse.payments) && - Objects.equals(this.reference, sessionResultResponse.reference) && - Objects.equals(this.status, sessionResultResponse.status); + return Objects.equals(this.additionalData, sessionResultResponse.additionalData) + && Objects.equals(this.id, sessionResultResponse.id) + && Objects.equals(this.payments, sessionResultResponse.payments) + && Objects.equals(this.reference, sessionResultResponse.reference) + && Objects.equals(this.status, sessionResultResponse.status); } @Override @@ -321,8 +403,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -331,21 +412,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SessionResultResponse given an JSON string * * @param jsonString JSON string * @return An instance of SessionResultResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to SessionResultResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SessionResultResponse */ public static SessionResultResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SessionResultResponse.class); } -/** - * Convert an instance of SessionResultResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SessionResultResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ShopperIdPaymentMethod.java b/src/main/java/com/adyen/model/checkout/ShopperIdPaymentMethod.java index c096ddd3d..65788ae8e 100644 --- a/src/main/java/com/adyen/model/checkout/ShopperIdPaymentMethod.java +++ b/src/main/java/com/adyen/model/checkout/ShopperIdPaymentMethod.java @@ -2,59 +2,51 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ShopperIdPaymentMethod - */ -@JsonPropertyOrder({ - ShopperIdPaymentMethod.JSON_PROPERTY_TYPE -}) - +/** ShopperIdPaymentMethod */ +@JsonPropertyOrder({ShopperIdPaymentMethod.JSON_PROPERTY_TYPE}) @JsonIgnoreProperties( - value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization - allowSetters = true // allows the type to be set during deserialization -) -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) + value = + "type", // ignore manually set type, it will be automatically generated by Jackson during + // serialization + allowSetters = true // allows the type to be set during deserialization + ) +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.PROPERTY, + property = "type", + visible = true) @JsonSubTypes({ @JsonSubTypes.Type(value = PayToPaymentMethod.class, name = "payTo"), @JsonSubTypes.Type(value = UPIPaymentMethod.class, name = "upi_collect"), }) - public class ShopperIdPaymentMethod { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public ShopperIdPaymentMethod() { - } + public ShopperIdPaymentMethod() {} /** * type * - * @param type + * @param type * @return the current {@code ShopperIdPaymentMethod} instance, allowing for method chaining */ public ShopperIdPaymentMethod type(String type) { @@ -64,7 +56,8 @@ public ShopperIdPaymentMethod type(String type) { /** * Get type - * @return type + * + * @return type */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,7 +68,7 @@ public String getType() { /** * type * - * @param type + * @param type */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,9 +76,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this ShopperIdPaymentMethod object is equal to o. - */ + /** Return true if this ShopperIdPaymentMethod object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -113,8 +104,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -131,21 +121,24 @@ private String toIndentedString(Object o) { mappings.put("ShopperIdPaymentMethod", ShopperIdPaymentMethod.class); JSON.registerDiscriminator(ShopperIdPaymentMethod.class, "type", mappings); } -/** + + /** * Create an instance of ShopperIdPaymentMethod given an JSON string * * @param jsonString JSON string * @return An instance of ShopperIdPaymentMethod - * @throws JsonProcessingException if the JSON string is invalid with respect to ShopperIdPaymentMethod + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ShopperIdPaymentMethod */ public static ShopperIdPaymentMethod fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ShopperIdPaymentMethod.class); } -/** - * Convert an instance of ShopperIdPaymentMethod to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ShopperIdPaymentMethod to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ShopperInteractionDevice.java b/src/main/java/com/adyen/model/checkout/ShopperInteractionDevice.java index fa110056f..7b77c7b42 100644 --- a/src/main/java/com/adyen/model/checkout/ShopperInteractionDevice.java +++ b/src/main/java/com/adyen/model/checkout/ShopperInteractionDevice.java @@ -2,37 +2,27 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ShopperInteractionDevice - */ +/** ShopperInteractionDevice */ @JsonPropertyOrder({ ShopperInteractionDevice.JSON_PROPERTY_LOCALE, ShopperInteractionDevice.JSON_PROPERTY_OS, ShopperInteractionDevice.JSON_PROPERTY_OS_VERSION }) - public class ShopperInteractionDevice { public static final String JSON_PROPERTY_LOCALE = "locale"; private String locale; @@ -43,8 +33,7 @@ public class ShopperInteractionDevice { public static final String JSON_PROPERTY_OS_VERSION = "osVersion"; private String osVersion; - public ShopperInteractionDevice() { - } + public ShopperInteractionDevice() {} /** * Locale on the shopper interaction device. @@ -59,6 +48,7 @@ public ShopperInteractionDevice locale(String locale) { /** * Locale on the shopper interaction device. + * * @return locale Locale on the shopper interaction device. */ @JsonProperty(JSON_PROPERTY_LOCALE) @@ -91,6 +81,7 @@ public ShopperInteractionDevice os(String os) { /** * Operating system running on the shopper interaction device. + * * @return os Operating system running on the shopper interaction device. */ @JsonProperty(JSON_PROPERTY_OS) @@ -123,6 +114,7 @@ public ShopperInteractionDevice osVersion(String osVersion) { /** * Version of the operating system on the shopper interaction device. + * * @return osVersion Version of the operating system on the shopper interaction device. */ @JsonProperty(JSON_PROPERTY_OS_VERSION) @@ -142,9 +134,7 @@ public void setOsVersion(String osVersion) { this.osVersion = osVersion; } - /** - * Return true if this ShopperInteractionDevice object is equal to o. - */ + /** Return true if this ShopperInteractionDevice object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +144,9 @@ public boolean equals(Object o) { return false; } ShopperInteractionDevice shopperInteractionDevice = (ShopperInteractionDevice) o; - return Objects.equals(this.locale, shopperInteractionDevice.locale) && - Objects.equals(this.os, shopperInteractionDevice.os) && - Objects.equals(this.osVersion, shopperInteractionDevice.osVersion); + return Objects.equals(this.locale, shopperInteractionDevice.locale) + && Objects.equals(this.os, shopperInteractionDevice.os) + && Objects.equals(this.osVersion, shopperInteractionDevice.osVersion); } @Override @@ -176,8 +166,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +175,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ShopperInteractionDevice given an JSON string * * @param jsonString JSON string * @return An instance of ShopperInteractionDevice - * @throws JsonProcessingException if the JSON string is invalid with respect to ShopperInteractionDevice + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ShopperInteractionDevice */ - public static ShopperInteractionDevice fromJson(String jsonString) throws JsonProcessingException { + public static ShopperInteractionDevice fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ShopperInteractionDevice.class); } -/** - * Convert an instance of ShopperInteractionDevice to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ShopperInteractionDevice to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Split.java b/src/main/java/com/adyen/model/checkout/Split.java index 11f51687f..6801ac0d9 100644 --- a/src/main/java/com/adyen/model/checkout/Split.java +++ b/src/main/java/com/adyen/model/checkout/Split.java @@ -2,32 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.SplitAmount; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * Split - */ +/** Split */ @JsonPropertyOrder({ Split.JSON_PROPERTY_ACCOUNT, Split.JSON_PROPERTY_AMOUNT, @@ -35,7 +29,6 @@ Split.JSON_PROPERTY_REFERENCE, Split.JSON_PROPERTY_TYPE }) - public class Split { public static final String JSON_PROPERTY_ACCOUNT = "account"; private String account; @@ -50,10 +43,30 @@ public class Split { private String reference; /** - * The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. + * The part of the payment you want to book to the specified `account`. Possible values + * for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * + * **BalanceAccount**: books part of the payment (specified in `amount`) to the + * specified `account`. * Transaction fees types that you can book to the specified + * `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme + * fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the + * aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the + * transaction fees due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the + * transaction fees due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: + * the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the + * fees paid to the card scheme for using their network. * **Commission**: your platform's + * commission on the payment (specified in `amount`), booked to your liable balance + * account. * **Remainder**: the amount left over after a currency conversion, booked to the + * specified `account`. * **TopUp**: allows you and your users to top up balance + * accounts using direct debit, card payments, or other payment methods. * **VAT**: the + * value-added tax charged on the payment, booked to your platforms liable balance account. * + * **Default**: in very specific use cases, allows you to book the specified `amount` to + * the specified `account`. For more information, contact Adyen support. Possible values + * for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): + * **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. */ public enum TypeEnum { - ACQUIRINGFEES(String.valueOf("AcquiringFees")), ADYENCOMMISSION(String.valueOf("AdyenCommission")), @@ -91,7 +104,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -112,7 +125,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -120,13 +137,26 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public Split() { - } + public Split() {} /** - * The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/classic-platforms): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked. + * The unique identifier of the account to which the split amount is booked. Required if + * `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms): The + * [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) + * of the account to which the split amount is booked. * [Balance + * Platform](https://docs.adyen.com/adyen-for-platforms-model): The + * [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) + * of the account to which the split amount is booked. * - * @param account The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/classic-platforms): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked. + * @param account The unique identifier of the account to which the split amount is booked. + * Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms): The + * [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) + * of the account to which the split amount is booked. * [Balance + * Platform](https://docs.adyen.com/adyen-for-platforms-model): The + * [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) + * of the account to which the split amount is booked. * @return the current {@code Split} instance, allowing for method chaining */ public Split account(String account) { @@ -135,8 +165,23 @@ public Split account(String account) { } /** - * The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/classic-platforms): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked. - * @return account The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/classic-platforms): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked. + * The unique identifier of the account to which the split amount is booked. Required if + * `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms): The + * [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) + * of the account to which the split amount is booked. * [Balance + * Platform](https://docs.adyen.com/adyen-for-platforms-model): The + * [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) + * of the account to which the split amount is booked. + * + * @return account The unique identifier of the account to which the split amount is booked. + * Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms): The + * [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) + * of the account to which the split amount is booked. * [Balance + * Platform](https://docs.adyen.com/adyen-for-platforms-model): The + * [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) + * of the account to which the split amount is booked. */ @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,9 +190,23 @@ public String getAccount() { } /** - * The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/classic-platforms): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked. + * The unique identifier of the account to which the split amount is booked. Required if + * `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms): The + * [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) + * of the account to which the split amount is booked. * [Balance + * Platform](https://docs.adyen.com/adyen-for-platforms-model): The + * [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) + * of the account to which the split amount is booked. * - * @param account The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/classic-platforms): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked. + * @param account The unique identifier of the account to which the split amount is booked. + * Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms): The + * [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) + * of the account to which the split amount is booked. * [Balance + * Platform](https://docs.adyen.com/adyen-for-platforms-model): The + * [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) + * of the account to which the split amount is booked. */ @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,7 +217,7 @@ public void setAccount(String account) { /** * amount * - * @param amount + * @param amount * @return the current {@code Split} instance, allowing for method chaining */ public Split amount(SplitAmount amount) { @@ -168,7 +227,8 @@ public Split amount(SplitAmount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,7 +239,7 @@ public SplitAmount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,6 +260,7 @@ public Split description(String description) { /** * Your description for the split item. + * * @return description Your description for the split item. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -220,9 +281,19 @@ public void setDescription(String description) { } /** - * Your unique reference for the part of the payment booked to the specified `account`. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also recommend providing a **unique** reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. + * Your unique reference for the part of the payment booked to the specified `account`. + * This is required if `type` is **MarketPlace** ([Classic Platforms + * integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance + * Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also + * recommend providing a **unique** reference so you can reconcile the split and the associated + * payment in the transaction overview and in the reports. * - * @param reference Your unique reference for the part of the payment booked to the specified `account`. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also recommend providing a **unique** reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. + * @param reference Your unique reference for the part of the payment booked to the specified + * `account`. This is required if `type` is **MarketPlace** ([Classic + * Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** + * ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other + * types, we also recommend providing a **unique** reference so you can reconcile the split + * and the associated payment in the transaction overview and in the reports. * @return the current {@code Split} instance, allowing for method chaining */ public Split reference(String reference) { @@ -231,8 +302,19 @@ public Split reference(String reference) { } /** - * Your unique reference for the part of the payment booked to the specified `account`. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also recommend providing a **unique** reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. - * @return reference Your unique reference for the part of the payment booked to the specified `account`. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also recommend providing a **unique** reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. + * Your unique reference for the part of the payment booked to the specified `account`. + * This is required if `type` is **MarketPlace** ([Classic Platforms + * integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance + * Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also + * recommend providing a **unique** reference so you can reconcile the split and the associated + * payment in the transaction overview and in the reports. + * + * @return reference Your unique reference for the part of the payment booked to the specified + * `account`. This is required if `type` is **MarketPlace** ([Classic + * Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** + * ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other + * types, we also recommend providing a **unique** reference so you can reconcile the split + * and the associated payment in the transaction overview and in the reports. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -241,9 +323,19 @@ public String getReference() { } /** - * Your unique reference for the part of the payment booked to the specified `account`. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also recommend providing a **unique** reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. + * Your unique reference for the part of the payment booked to the specified `account`. + * This is required if `type` is **MarketPlace** ([Classic Platforms + * integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance + * Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also + * recommend providing a **unique** reference so you can reconcile the split and the associated + * payment in the transaction overview and in the reports. * - * @param reference Your unique reference for the part of the payment booked to the specified `account`. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also recommend providing a **unique** reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. + * @param reference Your unique reference for the part of the payment booked to the specified + * `account`. This is required if `type` is **MarketPlace** ([Classic + * Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** + * ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other + * types, we also recommend providing a **unique** reference so you can reconcile the split + * and the associated payment in the transaction overview and in the reports. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,9 +344,53 @@ public void setReference(String reference) { } /** - * The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. + * The part of the payment you want to book to the specified `account`. Possible values + * for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * + * **BalanceAccount**: books part of the payment (specified in `amount`) to the + * specified `account`. * Transaction fees types that you can book to the specified + * `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme + * fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the + * aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the + * transaction fees due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the + * transaction fees due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: + * the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the + * fees paid to the card scheme for using their network. * **Commission**: your platform's + * commission on the payment (specified in `amount`), booked to your liable balance + * account. * **Remainder**: the amount left over after a currency conversion, booked to the + * specified `account`. * **TopUp**: allows you and your users to top up balance + * accounts using direct debit, card payments, or other payment methods. * **VAT**: the + * value-added tax charged on the payment, booked to your platforms liable balance account. * + * **Default**: in very specific use cases, allows you to book the specified `amount` to + * the specified `account`. For more information, contact Adyen support. Possible values + * for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): + * **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. * - * @param type The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. + * @param type The part of the payment you want to book to the specified `account`. + * Possible values for the [Balance + * Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books + * part of the payment (specified in `amount`) to the specified `account`. + * * Transaction fees types that you can book to the specified `account`: * + * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * + * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the + * aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the + * transaction fees due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: + * the transaction fees due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * + * **Interchange**: the fees paid to the issuer for each payment made with the card network. * + * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: + * your platform's commission on the payment (specified in `amount`), booked to + * your liable balance account. * **Remainder**: the amount left over after a currency + * conversion, booked to the specified `account`. * **TopUp**: allows you and your + * users to top up balance accounts using direct debit, card payments, or other payment + * methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms + * liable balance account. * **Default**: in very specific use cases, allows you to book the + * specified `amount` to the specified `account`. For more information, + * contact Adyen support. Possible values for the [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, + * **MarketPlace**, **PaymentFee**, **VAT**. * @return the current {@code Split} instance, allowing for method chaining */ public Split type(TypeEnum type) { @@ -263,8 +399,53 @@ public Split type(TypeEnum type) { } /** - * The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. - * @return type The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. + * The part of the payment you want to book to the specified `account`. Possible values + * for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * + * **BalanceAccount**: books part of the payment (specified in `amount`) to the + * specified `account`. * Transaction fees types that you can book to the specified + * `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme + * fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the + * aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the + * transaction fees due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the + * transaction fees due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: + * the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the + * fees paid to the card scheme for using their network. * **Commission**: your platform's + * commission on the payment (specified in `amount`), booked to your liable balance + * account. * **Remainder**: the amount left over after a currency conversion, booked to the + * specified `account`. * **TopUp**: allows you and your users to top up balance + * accounts using direct debit, card payments, or other payment methods. * **VAT**: the + * value-added tax charged on the payment, booked to your platforms liable balance account. * + * **Default**: in very specific use cases, allows you to book the specified `amount` to + * the specified `account`. For more information, contact Adyen support. Possible values + * for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): + * **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. + * + * @return type The part of the payment you want to book to the specified `account`. + * Possible values for the [Balance + * Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books + * part of the payment (specified in `amount`) to the specified `account`. + * * Transaction fees types that you can book to the specified `account`: * + * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * + * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the + * aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the + * transaction fees due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: + * the transaction fees due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * + * **Interchange**: the fees paid to the issuer for each payment made with the card network. * + * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: + * your platform's commission on the payment (specified in `amount`), booked to + * your liable balance account. * **Remainder**: the amount left over after a currency + * conversion, booked to the specified `account`. * **TopUp**: allows you and your + * users to top up balance accounts using direct debit, card payments, or other payment + * methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms + * liable balance account. * **Default**: in very specific use cases, allows you to book the + * specified `amount` to the specified `account`. For more information, + * contact Adyen support. Possible values for the [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, + * **MarketPlace**, **PaymentFee**, **VAT**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -273,9 +454,53 @@ public TypeEnum getType() { } /** - * The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. + * The part of the payment you want to book to the specified `account`. Possible values + * for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * + * **BalanceAccount**: books part of the payment (specified in `amount`) to the + * specified `account`. * Transaction fees types that you can book to the specified + * `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme + * fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the + * aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the + * transaction fees due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the + * transaction fees due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: + * the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the + * fees paid to the card scheme for using their network. * **Commission**: your platform's + * commission on the payment (specified in `amount`), booked to your liable balance + * account. * **Remainder**: the amount left over after a currency conversion, booked to the + * specified `account`. * **TopUp**: allows you and your users to top up balance + * accounts using direct debit, card payments, or other payment methods. * **VAT**: the + * value-added tax charged on the payment, booked to your platforms liable balance account. * + * **Default**: in very specific use cases, allows you to book the specified `amount` to + * the specified `account`. For more information, contact Adyen support. Possible values + * for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): + * **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. * - * @param type The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. + * @param type The part of the payment you want to book to the specified `account`. + * Possible values for the [Balance + * Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books + * part of the payment (specified in `amount`) to the specified `account`. + * * Transaction fees types that you can book to the specified `account`: * + * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * + * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the + * aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the + * transaction fees due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: + * the transaction fees due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * + * **Interchange**: the fees paid to the issuer for each payment made with the card network. * + * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: + * your platform's commission on the payment (specified in `amount`), booked to + * your liable balance account. * **Remainder**: the amount left over after a currency + * conversion, booked to the specified `account`. * **TopUp**: allows you and your + * users to top up balance accounts using direct debit, card payments, or other payment + * methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms + * liable balance account. * **Default**: in very specific use cases, allows you to book the + * specified `amount` to the specified `account`. For more information, + * contact Adyen support. Possible values for the [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, + * **MarketPlace**, **PaymentFee**, **VAT**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -283,9 +508,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this Split object is equal to o. - */ + /** Return true if this Split object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -295,11 +518,11 @@ public boolean equals(Object o) { return false; } Split split = (Split) o; - return Objects.equals(this.account, split.account) && - Objects.equals(this.amount, split.amount) && - Objects.equals(this.description, split.description) && - Objects.equals(this.reference, split.reference) && - Objects.equals(this.type, split.type); + return Objects.equals(this.account, split.account) + && Objects.equals(this.amount, split.amount) + && Objects.equals(this.description, split.description) + && Objects.equals(this.reference, split.reference) + && Objects.equals(this.type, split.type); } @Override @@ -321,8 +544,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -331,7 +553,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Split given an JSON string * * @param jsonString JSON string @@ -341,11 +563,12 @@ private String toIndentedString(Object o) { public static Split fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Split.class); } -/** - * Convert an instance of Split to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Split to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/SplitAmount.java b/src/main/java/com/adyen/model/checkout/SplitAmount.java index fcc044b45..6720faae2 100644 --- a/src/main/java/com/adyen/model/checkout/SplitAmount.java +++ b/src/main/java/com/adyen/model/checkout/SplitAmount.java @@ -2,36 +2,23 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * SplitAmount - */ -@JsonPropertyOrder({ - SplitAmount.JSON_PROPERTY_CURRENCY, - SplitAmount.JSON_PROPERTY_VALUE -}) - +/** SplitAmount */ +@JsonPropertyOrder({SplitAmount.JSON_PROPERTY_CURRENCY, SplitAmount.JSON_PROPERTY_VALUE}) public class SplitAmount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -39,13 +26,16 @@ public class SplitAmount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public SplitAmount() { - } + public SplitAmount() {} /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the original payment currency. + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the + * original payment currency. * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the original payment currency. + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the + * original payment currency. * @return the current {@code SplitAmount} instance, allowing for method chaining */ public SplitAmount currency(String currency) { @@ -54,8 +44,13 @@ public SplitAmount currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the original payment currency. - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the original payment currency. + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the + * original payment currency. + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the + * original payment currency. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +59,13 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the original payment currency. + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the + * original payment currency. * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the original payment currency. + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the + * original payment currency. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,9 +74,11 @@ public void setCurrency(String currency) { } /** - * The value of the split amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The value of the split amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * - * @param value The value of the split amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @param value The value of the split amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code SplitAmount} instance, allowing for method chaining */ public SplitAmount value(Long value) { @@ -86,8 +87,11 @@ public SplitAmount value(Long value) { } /** - * The value of the split amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). - * @return value The value of the split amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The value of the split amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). + * + * @return value The value of the split amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +100,11 @@ public Long getValue() { } /** - * The value of the split amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The value of the split amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * - * @param value The value of the split amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @param value The value of the split amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +112,7 @@ public void setValue(Long value) { this.value = value; } - /** - * Return true if this SplitAmount object is equal to o. - */ + /** Return true if this SplitAmount object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +122,8 @@ public boolean equals(Object o) { return false; } SplitAmount splitAmount = (SplitAmount) o; - return Objects.equals(this.currency, splitAmount.currency) && - Objects.equals(this.value, splitAmount.value); + return Objects.equals(this.currency, splitAmount.currency) + && Objects.equals(this.value, splitAmount.value); } @Override @@ -138,8 +142,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +151,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SplitAmount given an JSON string * * @param jsonString JSON string @@ -158,11 +161,12 @@ private String toIndentedString(Object o) { public static SplitAmount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SplitAmount.class); } -/** - * Convert an instance of SplitAmount to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SplitAmount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/StandalonePaymentCancelRequest.java b/src/main/java/com/adyen/model/checkout/StandalonePaymentCancelRequest.java index 1bed00015..f237aaab1 100644 --- a/src/main/java/com/adyen/model/checkout/StandalonePaymentCancelRequest.java +++ b/src/main/java/com/adyen/model/checkout/StandalonePaymentCancelRequest.java @@ -2,33 +2,22 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.ApplicationInfo; -import com.adyen.model.checkout.EnhancedSchemeData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * StandalonePaymentCancelRequest - */ +/** StandalonePaymentCancelRequest */ @JsonPropertyOrder({ StandalonePaymentCancelRequest.JSON_PROPERTY_APPLICATION_INFO, StandalonePaymentCancelRequest.JSON_PROPERTY_ENHANCED_SCHEME_DATA, @@ -36,7 +25,6 @@ StandalonePaymentCancelRequest.JSON_PROPERTY_PAYMENT_REFERENCE, StandalonePaymentCancelRequest.JSON_PROPERTY_REFERENCE }) - public class StandalonePaymentCancelRequest { public static final String JSON_PROPERTY_APPLICATION_INFO = "applicationInfo"; private ApplicationInfo applicationInfo; @@ -53,14 +41,14 @@ public class StandalonePaymentCancelRequest { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public StandalonePaymentCancelRequest() { - } + public StandalonePaymentCancelRequest() {} /** * applicationInfo * - * @param applicationInfo - * @return the current {@code StandalonePaymentCancelRequest} instance, allowing for method chaining + * @param applicationInfo + * @return the current {@code StandalonePaymentCancelRequest} instance, allowing for method + * chaining */ public StandalonePaymentCancelRequest applicationInfo(ApplicationInfo applicationInfo) { this.applicationInfo = applicationInfo; @@ -69,7 +57,8 @@ public StandalonePaymentCancelRequest applicationInfo(ApplicationInfo applicatio /** * Get applicationInfo - * @return applicationInfo + * + * @return applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,7 +69,7 @@ public ApplicationInfo getApplicationInfo() { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -91,8 +80,9 @@ public void setApplicationInfo(ApplicationInfo applicationInfo) { /** * enhancedSchemeData * - * @param enhancedSchemeData - * @return the current {@code StandalonePaymentCancelRequest} instance, allowing for method chaining + * @param enhancedSchemeData + * @return the current {@code StandalonePaymentCancelRequest} instance, allowing for method + * chaining */ public StandalonePaymentCancelRequest enhancedSchemeData(EnhancedSchemeData enhancedSchemeData) { this.enhancedSchemeData = enhancedSchemeData; @@ -101,7 +91,8 @@ public StandalonePaymentCancelRequest enhancedSchemeData(EnhancedSchemeData enha /** * Get enhancedSchemeData - * @return enhancedSchemeData + * + * @return enhancedSchemeData */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,7 +103,7 @@ public EnhancedSchemeData getEnhancedSchemeData() { /** * enhancedSchemeData * - * @param enhancedSchemeData + * @param enhancedSchemeData */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,7 +115,8 @@ public void setEnhancedSchemeData(EnhancedSchemeData enhancedSchemeData) { * The merchant account that is used to process the payment. * * @param merchantAccount The merchant account that is used to process the payment. - * @return the current {@code StandalonePaymentCancelRequest} instance, allowing for method chaining + * @return the current {@code StandalonePaymentCancelRequest} instance, allowing for method + * chaining */ public StandalonePaymentCancelRequest merchantAccount(String merchantAccount) { this.merchantAccount = merchantAccount; @@ -133,6 +125,7 @@ public StandalonePaymentCancelRequest merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. + * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -153,10 +146,15 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment that you want to cancel. + * The + * [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) + * of the payment that you want to cancel. * - * @param paymentReference The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment that you want to cancel. - * @return the current {@code StandalonePaymentCancelRequest} instance, allowing for method chaining + * @param paymentReference The + * [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) + * of the payment that you want to cancel. + * @return the current {@code StandalonePaymentCancelRequest} instance, allowing for method + * chaining */ public StandalonePaymentCancelRequest paymentReference(String paymentReference) { this.paymentReference = paymentReference; @@ -164,8 +162,13 @@ public StandalonePaymentCancelRequest paymentReference(String paymentReference) } /** - * The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment that you want to cancel. - * @return paymentReference The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment that you want to cancel. + * The + * [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) + * of the payment that you want to cancel. + * + * @return paymentReference The + * [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) + * of the payment that you want to cancel. */ @JsonProperty(JSON_PROPERTY_PAYMENT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -174,9 +177,13 @@ public String getPaymentReference() { } /** - * The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment that you want to cancel. + * The + * [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) + * of the payment that you want to cancel. * - * @param paymentReference The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment that you want to cancel. + * @param paymentReference The + * [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) + * of the payment that you want to cancel. */ @JsonProperty(JSON_PROPERTY_PAYMENT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,7 +195,8 @@ public void setPaymentReference(String paymentReference) { * Your reference for the cancel request. Maximum length: 80 characters. * * @param reference Your reference for the cancel request. Maximum length: 80 characters. - * @return the current {@code StandalonePaymentCancelRequest} instance, allowing for method chaining + * @return the current {@code StandalonePaymentCancelRequest} instance, allowing for method + * chaining */ public StandalonePaymentCancelRequest reference(String reference) { this.reference = reference; @@ -197,6 +205,7 @@ public StandalonePaymentCancelRequest reference(String reference) { /** * Your reference for the cancel request. Maximum length: 80 characters. + * * @return reference Your reference for the cancel request. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -216,9 +225,7 @@ public void setReference(String reference) { this.reference = reference; } - /** - * Return true if this StandalonePaymentCancelRequest object is equal to o. - */ + /** Return true if this StandalonePaymentCancelRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -227,17 +234,20 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - StandalonePaymentCancelRequest standalonePaymentCancelRequest = (StandalonePaymentCancelRequest) o; - return Objects.equals(this.applicationInfo, standalonePaymentCancelRequest.applicationInfo) && - Objects.equals(this.enhancedSchemeData, standalonePaymentCancelRequest.enhancedSchemeData) && - Objects.equals(this.merchantAccount, standalonePaymentCancelRequest.merchantAccount) && - Objects.equals(this.paymentReference, standalonePaymentCancelRequest.paymentReference) && - Objects.equals(this.reference, standalonePaymentCancelRequest.reference); + StandalonePaymentCancelRequest standalonePaymentCancelRequest = + (StandalonePaymentCancelRequest) o; + return Objects.equals(this.applicationInfo, standalonePaymentCancelRequest.applicationInfo) + && Objects.equals( + this.enhancedSchemeData, standalonePaymentCancelRequest.enhancedSchemeData) + && Objects.equals(this.merchantAccount, standalonePaymentCancelRequest.merchantAccount) + && Objects.equals(this.paymentReference, standalonePaymentCancelRequest.paymentReference) + && Objects.equals(this.reference, standalonePaymentCancelRequest.reference); } @Override public int hashCode() { - return Objects.hash(applicationInfo, enhancedSchemeData, merchantAccount, paymentReference, reference); + return Objects.hash( + applicationInfo, enhancedSchemeData, merchantAccount, paymentReference, reference); } @Override @@ -254,8 +264,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -264,21 +273,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of StandalonePaymentCancelRequest given an JSON string * * @param jsonString JSON string * @return An instance of StandalonePaymentCancelRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to StandalonePaymentCancelRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * StandalonePaymentCancelRequest */ - public static StandalonePaymentCancelRequest fromJson(String jsonString) throws JsonProcessingException { + public static StandalonePaymentCancelRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StandalonePaymentCancelRequest.class); } -/** - * Convert an instance of StandalonePaymentCancelRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of StandalonePaymentCancelRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/StandalonePaymentCancelResponse.java b/src/main/java/com/adyen/model/checkout/StandalonePaymentCancelResponse.java index 65962e9c6..bb5a4eaae 100644 --- a/src/main/java/com/adyen/model/checkout/StandalonePaymentCancelResponse.java +++ b/src/main/java/com/adyen/model/checkout/StandalonePaymentCancelResponse.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * StandalonePaymentCancelResponse - */ +/** StandalonePaymentCancelResponse */ @JsonPropertyOrder({ StandalonePaymentCancelResponse.JSON_PROPERTY_MERCHANT_ACCOUNT, StandalonePaymentCancelResponse.JSON_PROPERTY_PAYMENT_REFERENCE, @@ -34,7 +29,6 @@ StandalonePaymentCancelResponse.JSON_PROPERTY_REFERENCE, StandalonePaymentCancelResponse.JSON_PROPERTY_STATUS }) - public class StandalonePaymentCancelResponse { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; @@ -48,11 +42,8 @@ public class StandalonePaymentCancelResponse { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - /** - * The status of your request. This will always have the value **received**. - */ + /** The status of your request. This will always have the value **received**. */ public enum StatusEnum { - RECEIVED(String.valueOf("received")); private static final Logger LOG = Logger.getLogger(StatusEnum.class.getName()); @@ -60,7 +51,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -81,7 +72,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -89,14 +84,14 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; - public StandalonePaymentCancelResponse() { - } + public StandalonePaymentCancelResponse() {} /** * The merchant account that is used to process the payment. * * @param merchantAccount The merchant account that is used to process the payment. - * @return the current {@code StandalonePaymentCancelResponse} instance, allowing for method chaining + * @return the current {@code StandalonePaymentCancelResponse} instance, allowing for method + * chaining */ public StandalonePaymentCancelResponse merchantAccount(String merchantAccount) { this.merchantAccount = merchantAccount; @@ -105,6 +100,7 @@ public StandalonePaymentCancelResponse merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. + * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -125,10 +121,15 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment to cancel. + * The + * [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) + * of the payment to cancel. * - * @param paymentReference The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment to cancel. - * @return the current {@code StandalonePaymentCancelResponse} instance, allowing for method chaining + * @param paymentReference The + * [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) + * of the payment to cancel. + * @return the current {@code StandalonePaymentCancelResponse} instance, allowing for method + * chaining */ public StandalonePaymentCancelResponse paymentReference(String paymentReference) { this.paymentReference = paymentReference; @@ -136,8 +137,13 @@ public StandalonePaymentCancelResponse paymentReference(String paymentReference) } /** - * The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment to cancel. - * @return paymentReference The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment to cancel. + * The + * [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) + * of the payment to cancel. + * + * @return paymentReference The + * [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) + * of the payment to cancel. */ @JsonProperty(JSON_PROPERTY_PAYMENT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,9 +152,13 @@ public String getPaymentReference() { } /** - * The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment to cancel. + * The + * [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) + * of the payment to cancel. * - * @param paymentReference The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment to cancel. + * @param paymentReference The + * [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) + * of the payment to cancel. */ @JsonProperty(JSON_PROPERTY_PAYMENT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,7 +170,8 @@ public void setPaymentReference(String paymentReference) { * Adyen's 16-character reference associated with the cancel request. * * @param pspReference Adyen's 16-character reference associated with the cancel request. - * @return the current {@code StandalonePaymentCancelResponse} instance, allowing for method chaining + * @return the current {@code StandalonePaymentCancelResponse} instance, allowing for method + * chaining */ public StandalonePaymentCancelResponse pspReference(String pspReference) { this.pspReference = pspReference; @@ -169,6 +180,7 @@ public StandalonePaymentCancelResponse pspReference(String pspReference) { /** * Adyen's 16-character reference associated with the cancel request. + * * @return pspReference Adyen's 16-character reference associated with the cancel request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -192,7 +204,8 @@ public void setPspReference(String pspReference) { * Your reference for the cancel request. * * @param reference Your reference for the cancel request. - * @return the current {@code StandalonePaymentCancelResponse} instance, allowing for method chaining + * @return the current {@code StandalonePaymentCancelResponse} instance, allowing for method + * chaining */ public StandalonePaymentCancelResponse reference(String reference) { this.reference = reference; @@ -201,6 +214,7 @@ public StandalonePaymentCancelResponse reference(String reference) { /** * Your reference for the cancel request. + * * @return reference Your reference for the cancel request. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -224,7 +238,8 @@ public void setReference(String reference) { * The status of your request. This will always have the value **received**. * * @param status The status of your request. This will always have the value **received**. - * @return the current {@code StandalonePaymentCancelResponse} instance, allowing for method chaining + * @return the current {@code StandalonePaymentCancelResponse} instance, allowing for method + * chaining */ public StandalonePaymentCancelResponse status(StatusEnum status) { this.status = status; @@ -233,6 +248,7 @@ public StandalonePaymentCancelResponse status(StatusEnum status) { /** * The status of your request. This will always have the value **received**. + * * @return status The status of your request. This will always have the value **received**. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -252,9 +268,7 @@ public void setStatus(StatusEnum status) { this.status = status; } - /** - * Return true if this StandalonePaymentCancelResponse object is equal to o. - */ + /** Return true if this StandalonePaymentCancelResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -263,12 +277,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - StandalonePaymentCancelResponse standalonePaymentCancelResponse = (StandalonePaymentCancelResponse) o; - return Objects.equals(this.merchantAccount, standalonePaymentCancelResponse.merchantAccount) && - Objects.equals(this.paymentReference, standalonePaymentCancelResponse.paymentReference) && - Objects.equals(this.pspReference, standalonePaymentCancelResponse.pspReference) && - Objects.equals(this.reference, standalonePaymentCancelResponse.reference) && - Objects.equals(this.status, standalonePaymentCancelResponse.status); + StandalonePaymentCancelResponse standalonePaymentCancelResponse = + (StandalonePaymentCancelResponse) o; + return Objects.equals(this.merchantAccount, standalonePaymentCancelResponse.merchantAccount) + && Objects.equals(this.paymentReference, standalonePaymentCancelResponse.paymentReference) + && Objects.equals(this.pspReference, standalonePaymentCancelResponse.pspReference) + && Objects.equals(this.reference, standalonePaymentCancelResponse.reference) + && Objects.equals(this.status, standalonePaymentCancelResponse.status); } @Override @@ -290,8 +305,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -300,21 +314,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of StandalonePaymentCancelResponse given an JSON string * * @param jsonString JSON string * @return An instance of StandalonePaymentCancelResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to StandalonePaymentCancelResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * StandalonePaymentCancelResponse */ - public static StandalonePaymentCancelResponse fromJson(String jsonString) throws JsonProcessingException { + public static StandalonePaymentCancelResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StandalonePaymentCancelResponse.class); } -/** - * Convert an instance of StandalonePaymentCancelResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of StandalonePaymentCancelResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/StoredPaymentMethod.java b/src/main/java/com/adyen/model/checkout/StoredPaymentMethod.java index dce5c0339..7f1a34426 100644 --- a/src/main/java/com/adyen/model/checkout/StoredPaymentMethod.java +++ b/src/main/java/com/adyen/model/checkout/StoredPaymentMethod.java @@ -2,33 +2,24 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * StoredPaymentMethod - */ +/** StoredPaymentMethod */ @JsonPropertyOrder({ StoredPaymentMethod.JSON_PROPERTY_BANK_ACCOUNT_NUMBER, StoredPaymentMethod.JSON_PROPERTY_BANK_LOCATION_ID, @@ -48,7 +39,6 @@ StoredPaymentMethod.JSON_PROPERTY_SUPPORTED_SHOPPER_INTERACTIONS, StoredPaymentMethod.JSON_PROPERTY_TYPE }) - public class StoredPaymentMethod { public static final String JSON_PROPERTY_BANK_ACCOUNT_NUMBER = "bankAccountNumber"; private String bankAccountNumber; @@ -92,17 +82,18 @@ public class StoredPaymentMethod { public static final String JSON_PROPERTY_SHOPPER_EMAIL = "shopperEmail"; private String shopperEmail; - public static final String JSON_PROPERTY_SUPPORTED_RECURRING_PROCESSING_MODELS = "supportedRecurringProcessingModels"; + public static final String JSON_PROPERTY_SUPPORTED_RECURRING_PROCESSING_MODELS = + "supportedRecurringProcessingModels"; private List supportedRecurringProcessingModels; - public static final String JSON_PROPERTY_SUPPORTED_SHOPPER_INTERACTIONS = "supportedShopperInteractions"; + public static final String JSON_PROPERTY_SUPPORTED_SHOPPER_INTERACTIONS = + "supportedShopperInteractions"; private List supportedShopperInteractions; public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public StoredPaymentMethod() { - } + public StoredPaymentMethod() {} /** * The bank account number (without separators). @@ -117,6 +108,7 @@ public StoredPaymentMethod bankAccountNumber(String bankAccountNumber) { /** * The bank account number (without separators). + * * @return bankAccountNumber The bank account number (without separators). */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_NUMBER) @@ -139,7 +131,8 @@ public void setBankAccountNumber(String bankAccountNumber) { /** * The location id of the bank. The field value is `nil` in most cases. * - * @param bankLocationId The location id of the bank. The field value is `nil` in most cases. + * @param bankLocationId The location id of the bank. The field value is `nil` in most + * cases. * @return the current {@code StoredPaymentMethod} instance, allowing for method chaining */ public StoredPaymentMethod bankLocationId(String bankLocationId) { @@ -149,7 +142,9 @@ public StoredPaymentMethod bankLocationId(String bankLocationId) { /** * The location id of the bank. The field value is `nil` in most cases. - * @return bankLocationId The location id of the bank. The field value is `nil` in most cases. + * + * @return bankLocationId The location id of the bank. The field value is `nil` in most + * cases. */ @JsonProperty(JSON_PROPERTY_BANK_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,7 +155,8 @@ public String getBankLocationId() { /** * The location id of the bank. The field value is `nil` in most cases. * - * @param bankLocationId The location id of the bank. The field value is `nil` in most cases. + * @param bankLocationId The location id of the bank. The field value is `nil` in most + * cases. */ @JsonProperty(JSON_PROPERTY_BANK_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,6 +177,7 @@ public StoredPaymentMethod brand(String brand) { /** * The brand of the card. + * * @return brand The brand of the card. */ @JsonProperty(JSON_PROPERTY_BRAND) @@ -213,6 +210,7 @@ public StoredPaymentMethod expiryMonth(String expiryMonth) { /** * The two-digit month when the card expires + * * @return expiryMonth The two-digit month when the card expires */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @@ -235,7 +233,8 @@ public void setExpiryMonth(String expiryMonth) { /** * The last two digits of the year the card expires. For example, **22** for the year 2022. * - * @param expiryYear The last two digits of the year the card expires. For example, **22** for the year 2022. + * @param expiryYear The last two digits of the year the card expires. For example, **22** for the + * year 2022. * @return the current {@code StoredPaymentMethod} instance, allowing for method chaining */ public StoredPaymentMethod expiryYear(String expiryYear) { @@ -245,7 +244,9 @@ public StoredPaymentMethod expiryYear(String expiryYear) { /** * The last two digits of the year the card expires. For example, **22** for the year 2022. - * @return expiryYear The last two digits of the year the card expires. For example, **22** for the year 2022. + * + * @return expiryYear The last two digits of the year the card expires. For example, **22** for + * the year 2022. */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -256,7 +257,8 @@ public String getExpiryYear() { /** * The last two digits of the year the card expires. For example, **22** for the year 2022. * - * @param expiryYear The last two digits of the year the card expires. For example, **22** for the year 2022. + * @param expiryYear The last two digits of the year the card expires. For example, **22** for the + * year 2022. */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -277,6 +279,7 @@ public StoredPaymentMethod holderName(String holderName) { /** * The unique payment method code. + * * @return holderName The unique payment method code. */ @JsonProperty(JSON_PROPERTY_HOLDER_NAME) @@ -309,6 +312,7 @@ public StoredPaymentMethod iban(String iban) { /** * The IBAN of the bank account. + * * @return iban The IBAN of the bank account. */ @JsonProperty(JSON_PROPERTY_IBAN) @@ -341,6 +345,7 @@ public StoredPaymentMethod id(String id) { /** * A unique identifier of this stored payment method. + * * @return id A unique identifier of this stored payment method. */ @JsonProperty(JSON_PROPERTY_ID) @@ -373,6 +378,7 @@ public StoredPaymentMethod label(String label) { /** * The shopper’s issuer account label + * * @return label The shopper’s issuer account label */ @JsonProperty(JSON_PROPERTY_LABEL) @@ -405,6 +411,7 @@ public StoredPaymentMethod lastFour(String lastFour) { /** * The last four digits of the PAN. + * * @return lastFour The last four digits of the PAN. */ @JsonProperty(JSON_PROPERTY_LAST_FOUR) @@ -437,6 +444,7 @@ public StoredPaymentMethod name(String name) { /** * The display name of the stored payment method. + * * @return name The display name of the stored payment method. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -457,9 +465,13 @@ public void setName(String name) { } /** - * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the + * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either + * the Mastercard Trace ID or the Visa Transaction ID. * - * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are + * using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This + * contains either the Mastercard Trace ID or the Visa Transaction ID. * @return the current {@code StoredPaymentMethod} instance, allowing for method chaining */ public StoredPaymentMethod networkTxReference(String networkTxReference) { @@ -468,8 +480,13 @@ public StoredPaymentMethod networkTxReference(String networkTxReference) { } /** - * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. - * @return networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the + * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either + * the Mastercard Trace ID or the Visa Transaction ID. + * + * @return networkTxReference Returned in the response if you are not tokenizing with Adyen and + * are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This + * contains either the Mastercard Trace ID or the Visa Transaction ID. */ @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -478,9 +495,13 @@ public String getNetworkTxReference() { } /** - * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the + * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either + * the Mastercard Trace ID or the Visa Transaction ID. * - * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are + * using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This + * contains either the Mastercard Trace ID or the Visa Transaction ID. */ @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -501,6 +522,7 @@ public StoredPaymentMethod ownerName(String ownerName) { /** * The name of the bank account holder. + * * @return ownerName The name of the bank account holder. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @@ -533,6 +555,7 @@ public StoredPaymentMethod shopperEmail(String shopperEmail) { /** * The shopper’s email address. + * * @return shopperEmail The shopper’s email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -555,15 +578,18 @@ public void setShopperEmail(String shopperEmail) { /** * The supported recurring processing models for this stored payment method. * - * @param supportedRecurringProcessingModels The supported recurring processing models for this stored payment method. + * @param supportedRecurringProcessingModels The supported recurring processing models for this + * stored payment method. * @return the current {@code StoredPaymentMethod} instance, allowing for method chaining */ - public StoredPaymentMethod supportedRecurringProcessingModels(List supportedRecurringProcessingModels) { + public StoredPaymentMethod supportedRecurringProcessingModels( + List supportedRecurringProcessingModels) { this.supportedRecurringProcessingModels = supportedRecurringProcessingModels; return this; } - public StoredPaymentMethod addSupportedRecurringProcessingModelsItem(String supportedRecurringProcessingModelsItem) { + public StoredPaymentMethod addSupportedRecurringProcessingModelsItem( + String supportedRecurringProcessingModelsItem) { if (this.supportedRecurringProcessingModels == null) { this.supportedRecurringProcessingModels = new ArrayList<>(); } @@ -573,7 +599,9 @@ public StoredPaymentMethod addSupportedRecurringProcessingModelsItem(String supp /** * The supported recurring processing models for this stored payment method. - * @return supportedRecurringProcessingModels The supported recurring processing models for this stored payment method. + * + * @return supportedRecurringProcessingModels The supported recurring processing models for this + * stored payment method. */ @JsonProperty(JSON_PROPERTY_SUPPORTED_RECURRING_PROCESSING_MODELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -584,26 +612,31 @@ public List getSupportedRecurringProcessingModels() { /** * The supported recurring processing models for this stored payment method. * - * @param supportedRecurringProcessingModels The supported recurring processing models for this stored payment method. + * @param supportedRecurringProcessingModels The supported recurring processing models for this + * stored payment method. */ @JsonProperty(JSON_PROPERTY_SUPPORTED_RECURRING_PROCESSING_MODELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSupportedRecurringProcessingModels(List supportedRecurringProcessingModels) { + public void setSupportedRecurringProcessingModels( + List supportedRecurringProcessingModels) { this.supportedRecurringProcessingModels = supportedRecurringProcessingModels; } /** * The supported shopper interactions for this stored payment method. * - * @param supportedShopperInteractions The supported shopper interactions for this stored payment method. + * @param supportedShopperInteractions The supported shopper interactions for this stored payment + * method. * @return the current {@code StoredPaymentMethod} instance, allowing for method chaining */ - public StoredPaymentMethod supportedShopperInteractions(List supportedShopperInteractions) { + public StoredPaymentMethod supportedShopperInteractions( + List supportedShopperInteractions) { this.supportedShopperInteractions = supportedShopperInteractions; return this; } - public StoredPaymentMethod addSupportedShopperInteractionsItem(String supportedShopperInteractionsItem) { + public StoredPaymentMethod addSupportedShopperInteractionsItem( + String supportedShopperInteractionsItem) { if (this.supportedShopperInteractions == null) { this.supportedShopperInteractions = new ArrayList<>(); } @@ -613,7 +646,9 @@ public StoredPaymentMethod addSupportedShopperInteractionsItem(String supportedS /** * The supported shopper interactions for this stored payment method. - * @return supportedShopperInteractions The supported shopper interactions for this stored payment method. + * + * @return supportedShopperInteractions The supported shopper interactions for this stored payment + * method. */ @JsonProperty(JSON_PROPERTY_SUPPORTED_SHOPPER_INTERACTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -624,7 +659,8 @@ public List getSupportedShopperInteractions() { /** * The supported shopper interactions for this stored payment method. * - * @param supportedShopperInteractions The supported shopper interactions for this stored payment method. + * @param supportedShopperInteractions The supported shopper interactions for this stored payment + * method. */ @JsonProperty(JSON_PROPERTY_SUPPORTED_SHOPPER_INTERACTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -645,6 +681,7 @@ public StoredPaymentMethod type(String type) { /** * The type of payment method. + * * @return type The type of payment method. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -664,9 +701,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this StoredPaymentMethod object is equal to o. - */ + /** Return true if this StoredPaymentMethod object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -676,28 +711,48 @@ public boolean equals(Object o) { return false; } StoredPaymentMethod storedPaymentMethod = (StoredPaymentMethod) o; - return Objects.equals(this.bankAccountNumber, storedPaymentMethod.bankAccountNumber) && - Objects.equals(this.bankLocationId, storedPaymentMethod.bankLocationId) && - Objects.equals(this.brand, storedPaymentMethod.brand) && - Objects.equals(this.expiryMonth, storedPaymentMethod.expiryMonth) && - Objects.equals(this.expiryYear, storedPaymentMethod.expiryYear) && - Objects.equals(this.holderName, storedPaymentMethod.holderName) && - Objects.equals(this.iban, storedPaymentMethod.iban) && - Objects.equals(this.id, storedPaymentMethod.id) && - Objects.equals(this.label, storedPaymentMethod.label) && - Objects.equals(this.lastFour, storedPaymentMethod.lastFour) && - Objects.equals(this.name, storedPaymentMethod.name) && - Objects.equals(this.networkTxReference, storedPaymentMethod.networkTxReference) && - Objects.equals(this.ownerName, storedPaymentMethod.ownerName) && - Objects.equals(this.shopperEmail, storedPaymentMethod.shopperEmail) && - Objects.equals(this.supportedRecurringProcessingModels, storedPaymentMethod.supportedRecurringProcessingModels) && - Objects.equals(this.supportedShopperInteractions, storedPaymentMethod.supportedShopperInteractions) && - Objects.equals(this.type, storedPaymentMethod.type); + return Objects.equals(this.bankAccountNumber, storedPaymentMethod.bankAccountNumber) + && Objects.equals(this.bankLocationId, storedPaymentMethod.bankLocationId) + && Objects.equals(this.brand, storedPaymentMethod.brand) + && Objects.equals(this.expiryMonth, storedPaymentMethod.expiryMonth) + && Objects.equals(this.expiryYear, storedPaymentMethod.expiryYear) + && Objects.equals(this.holderName, storedPaymentMethod.holderName) + && Objects.equals(this.iban, storedPaymentMethod.iban) + && Objects.equals(this.id, storedPaymentMethod.id) + && Objects.equals(this.label, storedPaymentMethod.label) + && Objects.equals(this.lastFour, storedPaymentMethod.lastFour) + && Objects.equals(this.name, storedPaymentMethod.name) + && Objects.equals(this.networkTxReference, storedPaymentMethod.networkTxReference) + && Objects.equals(this.ownerName, storedPaymentMethod.ownerName) + && Objects.equals(this.shopperEmail, storedPaymentMethod.shopperEmail) + && Objects.equals( + this.supportedRecurringProcessingModels, + storedPaymentMethod.supportedRecurringProcessingModels) + && Objects.equals( + this.supportedShopperInteractions, storedPaymentMethod.supportedShopperInteractions) + && Objects.equals(this.type, storedPaymentMethod.type); } @Override public int hashCode() { - return Objects.hash(bankAccountNumber, bankLocationId, brand, expiryMonth, expiryYear, holderName, iban, id, label, lastFour, name, networkTxReference, ownerName, shopperEmail, supportedRecurringProcessingModels, supportedShopperInteractions, type); + return Objects.hash( + bankAccountNumber, + bankLocationId, + brand, + expiryMonth, + expiryYear, + holderName, + iban, + id, + label, + lastFour, + name, + networkTxReference, + ownerName, + shopperEmail, + supportedRecurringProcessingModels, + supportedShopperInteractions, + type); } @Override @@ -718,16 +773,19 @@ public String toString() { sb.append(" networkTxReference: ").append(toIndentedString(networkTxReference)).append("\n"); sb.append(" ownerName: ").append(toIndentedString(ownerName)).append("\n"); sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); - sb.append(" supportedRecurringProcessingModels: ").append(toIndentedString(supportedRecurringProcessingModels)).append("\n"); - sb.append(" supportedShopperInteractions: ").append(toIndentedString(supportedShopperInteractions)).append("\n"); + sb.append(" supportedRecurringProcessingModels: ") + .append(toIndentedString(supportedRecurringProcessingModels)) + .append("\n"); + sb.append(" supportedShopperInteractions: ") + .append(toIndentedString(supportedShopperInteractions)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -736,21 +794,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of StoredPaymentMethod given an JSON string * * @param jsonString JSON string * @return An instance of StoredPaymentMethod - * @throws JsonProcessingException if the JSON string is invalid with respect to StoredPaymentMethod + * @throws JsonProcessingException if the JSON string is invalid with respect to + * StoredPaymentMethod */ public static StoredPaymentMethod fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoredPaymentMethod.class); } -/** - * Convert an instance of StoredPaymentMethod to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of StoredPaymentMethod to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/StoredPaymentMethodDetails.java b/src/main/java/com/adyen/model/checkout/StoredPaymentMethodDetails.java index 632397e0f..7f2989b58 100644 --- a/src/main/java/com/adyen/model/checkout/StoredPaymentMethodDetails.java +++ b/src/main/java/com/adyen/model/checkout/StoredPaymentMethodDetails.java @@ -2,38 +2,32 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * StoredPaymentMethodDetails - */ +/** StoredPaymentMethodDetails */ @JsonPropertyOrder({ StoredPaymentMethodDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, StoredPaymentMethodDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, StoredPaymentMethodDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, StoredPaymentMethodDetails.JSON_PROPERTY_TYPE }) - public class StoredPaymentMethodDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -45,11 +39,8 @@ public class StoredPaymentMethodDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** - * The payment method type. - */ + /** The payment method type. */ public enum TypeEnum { - BCMC_MOBILE(String.valueOf("bcmc_mobile")), BCMC_MOBILE_QR(String.valueOf("bcmc_mobile_QR")), @@ -91,7 +82,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -112,7 +103,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -120,8 +115,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public StoredPaymentMethodDetails() { - } + public StoredPaymentMethodDetails() {} /** * The checkout attempt identifier. @@ -136,6 +130,7 @@ public StoredPaymentMethodDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -156,13 +151,13 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code StoredPaymentMethodDetails} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public StoredPaymentMethodDetails recurringDetailReference(String recurringDetailReference) { @@ -171,8 +166,11 @@ public StoredPaymentMethodDetails recurringDetailReference(String recurringDetai } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -183,12 +181,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -198,9 +196,11 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code StoredPaymentMethodDetails} instance, allowing for method chaining */ public StoredPaymentMethodDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -209,8 +209,11 @@ public StoredPaymentMethodDetails storedPaymentMethodId(String storedPaymentMeth } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,9 +222,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,6 +247,7 @@ public StoredPaymentMethodDetails type(TypeEnum type) { /** * The payment method type. + * * @return type The payment method type. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -261,9 +267,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this StoredPaymentMethodDetails object is equal to o. - */ + /** Return true if this StoredPaymentMethodDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -273,10 +277,12 @@ public boolean equals(Object o) { return false; } StoredPaymentMethodDetails storedPaymentMethodDetails = (StoredPaymentMethodDetails) o; - return Objects.equals(this.checkoutAttemptId, storedPaymentMethodDetails.checkoutAttemptId) && - Objects.equals(this.recurringDetailReference, storedPaymentMethodDetails.recurringDetailReference) && - Objects.equals(this.storedPaymentMethodId, storedPaymentMethodDetails.storedPaymentMethodId) && - Objects.equals(this.type, storedPaymentMethodDetails.type); + return Objects.equals(this.checkoutAttemptId, storedPaymentMethodDetails.checkoutAttemptId) + && Objects.equals( + this.recurringDetailReference, storedPaymentMethodDetails.recurringDetailReference) + && Objects.equals( + this.storedPaymentMethodId, storedPaymentMethodDetails.storedPaymentMethodId) + && Objects.equals(this.type, storedPaymentMethodDetails.type); } @Override @@ -289,16 +295,19 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class StoredPaymentMethodDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -307,21 +316,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of StoredPaymentMethodDetails given an JSON string * * @param jsonString JSON string * @return An instance of StoredPaymentMethodDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to StoredPaymentMethodDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to + * StoredPaymentMethodDetails */ - public static StoredPaymentMethodDetails fromJson(String jsonString) throws JsonProcessingException { + public static StoredPaymentMethodDetails fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoredPaymentMethodDetails.class); } -/** - * Convert an instance of StoredPaymentMethodDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of StoredPaymentMethodDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/StoredPaymentMethodRequest.java b/src/main/java/com/adyen/model/checkout/StoredPaymentMethodRequest.java index a534907ef..44816338d 100644 --- a/src/main/java/com/adyen/model/checkout/StoredPaymentMethodRequest.java +++ b/src/main/java/com/adyen/model/checkout/StoredPaymentMethodRequest.java @@ -2,32 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.PaymentMethodToStore; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * StoredPaymentMethodRequest - */ +/** StoredPaymentMethodRequest */ @JsonPropertyOrder({ StoredPaymentMethodRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, StoredPaymentMethodRequest.JSON_PROPERTY_PAYMENT_METHOD, @@ -36,7 +30,6 @@ StoredPaymentMethodRequest.JSON_PROPERTY_SHOPPER_I_P, StoredPaymentMethodRequest.JSON_PROPERTY_SHOPPER_REFERENCE }) - public class StoredPaymentMethodRequest { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; @@ -45,22 +38,30 @@ public class StoredPaymentMethodRequest { private PaymentMethodToStore paymentMethod; /** - * Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details. + * Allowed values: * `Subscription` – A transaction for a fixed or variable amount, + * which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) + * transaction, card details are stored to enable one-click or omnichannel journeys, or simply to + * streamline the checkout process. Any subscription not following a fixed schedule is also + * considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled + * card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or + * have variable amounts. For example, automatic top-ups when a cardholder's balance drops + * below a certain amount. */ public enum RecurringProcessingModelEnum { - CARDONFILE(String.valueOf("CardOnFile")), SUBSCRIPTION(String.valueOf("Subscription")), UNSCHEDULEDCARDONFILE(String.valueOf("UnscheduledCardOnFile")); - private static final Logger LOG = Logger.getLogger(RecurringProcessingModelEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(RecurringProcessingModelEnum.class.getName()); private String value; RecurringProcessingModelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -81,7 +82,11 @@ public static RecurringProcessingModelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("RecurringProcessingModelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RecurringProcessingModelEnum.values())); + LOG.warning( + "RecurringProcessingModelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(RecurringProcessingModelEnum.values())); return null; } } @@ -98,13 +103,13 @@ public static RecurringProcessingModelEnum fromValue(String value) { public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference"; private String shopperReference; - public StoredPaymentMethodRequest() { - } + public StoredPaymentMethodRequest() {} /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. * @return the current {@code StoredPaymentMethodRequest} instance, allowing for method chaining */ public StoredPaymentMethodRequest merchantAccount(String merchantAccount) { @@ -114,7 +119,9 @@ public StoredPaymentMethodRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * @return merchantAccount The merchant account identifier, with which you want to process the transaction. + * + * @return merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,7 +132,8 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,7 +144,7 @@ public void setMerchantAccount(String merchantAccount) { /** * paymentMethod * - * @param paymentMethod + * @param paymentMethod * @return the current {@code StoredPaymentMethodRequest} instance, allowing for method chaining */ public StoredPaymentMethodRequest paymentMethod(PaymentMethodToStore paymentMethod) { @@ -146,7 +154,8 @@ public StoredPaymentMethodRequest paymentMethod(PaymentMethodToStore paymentMeth /** * Get paymentMethod - * @return paymentMethod + * + * @return paymentMethod */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -157,7 +166,7 @@ public PaymentMethodToStore getPaymentMethod() { /** * paymentMethod * - * @param paymentMethod + * @param paymentMethod */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -166,19 +175,53 @@ public void setPaymentMethod(PaymentMethodToStore paymentMethod) { } /** - * Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details. + * Allowed values: * `Subscription` – A transaction for a fixed or variable amount, + * which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) + * transaction, card details are stored to enable one-click or omnichannel journeys, or simply to + * streamline the checkout process. Any subscription not following a fixed schedule is also + * considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled + * card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or + * have variable amounts. For example, automatic top-ups when a cardholder's balance drops + * below a certain amount. * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a + * token to store payment details. Allowed values: * `Subscription` – A transaction + * for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – + * With a card-on-file (CoF) transaction, card details are stored to enable one-click or + * omnichannel journeys, or simply to streamline the checkout process. Any subscription not + * following a fixed schedule is also considered a card-on-file transaction. * + * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a + * transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, + * automatic top-ups when a cardholder's balance drops below a certain amount. * @return the current {@code StoredPaymentMethodRequest} instance, allowing for method chaining */ - public StoredPaymentMethodRequest recurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) { + public StoredPaymentMethodRequest recurringProcessingModel( + RecurringProcessingModelEnum recurringProcessingModel) { this.recurringProcessingModel = recurringProcessingModel; return this; } /** - * Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. - * @return recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details. + * Allowed values: * `Subscription` – A transaction for a fixed or variable amount, + * which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) + * transaction, card details are stored to enable one-click or omnichannel journeys, or simply to + * streamline the checkout process. Any subscription not following a fixed schedule is also + * considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled + * card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or + * have variable amounts. For example, automatic top-ups when a cardholder's balance drops + * below a certain amount. + * + * @return recurringProcessingModel Defines a recurring payment type. Required when creating a + * token to store payment details. Allowed values: * `Subscription` – A transaction + * for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – + * With a card-on-file (CoF) transaction, card details are stored to enable one-click or + * omnichannel journeys, or simply to streamline the checkout process. Any subscription not + * following a fixed schedule is also considered a card-on-file transaction. * + * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a + * transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, + * automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,9 +230,25 @@ public RecurringProcessingModelEnum getRecurringProcessingModel() { } /** - * Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details. + * Allowed values: * `Subscription` – A transaction for a fixed or variable amount, + * which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) + * transaction, card details are stored to enable one-click or omnichannel journeys, or simply to + * streamline the checkout process. Any subscription not following a fixed schedule is also + * considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled + * card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or + * have variable amounts. For example, automatic top-ups when a cardholder's balance drops + * below a certain amount. * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a + * token to store payment details. Allowed values: * `Subscription` – A transaction + * for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – + * With a card-on-file (CoF) transaction, card details are stored to enable one-click or + * omnichannel journeys, or simply to streamline the checkout process. Any subscription not + * following a fixed schedule is also considered a card-on-file transaction. * + * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a + * transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, + * automatic top-ups when a cardholder's balance drops below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,9 +257,11 @@ public void setRecurringProcessingModel(RecurringProcessingModelEnum recurringPr } /** - * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. + * The shopper's email address. We recommend that you provide this data, as it is used in + * velocity fraud checks. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, + * as it is used in velocity fraud checks. * @return the current {@code StoredPaymentMethodRequest} instance, allowing for method chaining */ public StoredPaymentMethodRequest shopperEmail(String shopperEmail) { @@ -209,8 +270,11 @@ public StoredPaymentMethodRequest shopperEmail(String shopperEmail) { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. - * @return shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. + * The shopper's email address. We recommend that you provide this data, as it is used in + * velocity fraud checks. + * + * @return shopperEmail The shopper's email address. We recommend that you provide this data, + * as it is used in velocity fraud checks. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,9 +283,11 @@ public String getShopperEmail() { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. + * The shopper's email address. We recommend that you provide this data, as it is used in + * velocity fraud checks. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, + * as it is used in velocity fraud checks. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,6 +308,7 @@ public StoredPaymentMethodRequest shopperIP(String shopperIP) { /** * The IP address of a shopper. + * * @return shopperIP The IP address of a shopper. */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @@ -264,7 +331,8 @@ public void setShopperIP(String shopperIP) { /** * A unique identifier for the shopper (for example, user ID or account ID). * - * @param shopperReference A unique identifier for the shopper (for example, user ID or account ID). + * @param shopperReference A unique identifier for the shopper (for example, user ID or account + * ID). * @return the current {@code StoredPaymentMethodRequest} instance, allowing for method chaining */ public StoredPaymentMethodRequest shopperReference(String shopperReference) { @@ -274,7 +342,9 @@ public StoredPaymentMethodRequest shopperReference(String shopperReference) { /** * A unique identifier for the shopper (for example, user ID or account ID). - * @return shopperReference A unique identifier for the shopper (for example, user ID or account ID). + * + * @return shopperReference A unique identifier for the shopper (for example, user ID or account + * ID). */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -285,7 +355,8 @@ public String getShopperReference() { /** * A unique identifier for the shopper (for example, user ID or account ID). * - * @param shopperReference A unique identifier for the shopper (for example, user ID or account ID). + * @param shopperReference A unique identifier for the shopper (for example, user ID or account + * ID). */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -293,9 +364,7 @@ public void setShopperReference(String shopperReference) { this.shopperReference = shopperReference; } - /** - * Return true if this StoredPaymentMethodRequest object is equal to o. - */ + /** Return true if this StoredPaymentMethodRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -305,17 +374,24 @@ public boolean equals(Object o) { return false; } StoredPaymentMethodRequest storedPaymentMethodRequest = (StoredPaymentMethodRequest) o; - return Objects.equals(this.merchantAccount, storedPaymentMethodRequest.merchantAccount) && - Objects.equals(this.paymentMethod, storedPaymentMethodRequest.paymentMethod) && - Objects.equals(this.recurringProcessingModel, storedPaymentMethodRequest.recurringProcessingModel) && - Objects.equals(this.shopperEmail, storedPaymentMethodRequest.shopperEmail) && - Objects.equals(this.shopperIP, storedPaymentMethodRequest.shopperIP) && - Objects.equals(this.shopperReference, storedPaymentMethodRequest.shopperReference); + return Objects.equals(this.merchantAccount, storedPaymentMethodRequest.merchantAccount) + && Objects.equals(this.paymentMethod, storedPaymentMethodRequest.paymentMethod) + && Objects.equals( + this.recurringProcessingModel, storedPaymentMethodRequest.recurringProcessingModel) + && Objects.equals(this.shopperEmail, storedPaymentMethodRequest.shopperEmail) + && Objects.equals(this.shopperIP, storedPaymentMethodRequest.shopperIP) + && Objects.equals(this.shopperReference, storedPaymentMethodRequest.shopperReference); } @Override public int hashCode() { - return Objects.hash(merchantAccount, paymentMethod, recurringProcessingModel, shopperEmail, shopperIP, shopperReference); + return Objects.hash( + merchantAccount, + paymentMethod, + recurringProcessingModel, + shopperEmail, + shopperIP, + shopperReference); } @Override @@ -324,7 +400,9 @@ public String toString() { sb.append("class StoredPaymentMethodRequest {\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n"); - sb.append(" recurringProcessingModel: ").append(toIndentedString(recurringProcessingModel)).append("\n"); + sb.append(" recurringProcessingModel: ") + .append(toIndentedString(recurringProcessingModel)) + .append("\n"); sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); sb.append(" shopperIP: ").append(toIndentedString(shopperIP)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); @@ -333,8 +411,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -343,21 +420,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of StoredPaymentMethodRequest given an JSON string * * @param jsonString JSON string * @return An instance of StoredPaymentMethodRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to StoredPaymentMethodRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * StoredPaymentMethodRequest */ - public static StoredPaymentMethodRequest fromJson(String jsonString) throws JsonProcessingException { + public static StoredPaymentMethodRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoredPaymentMethodRequest.class); } -/** - * Convert an instance of StoredPaymentMethodRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of StoredPaymentMethodRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/StoredPaymentMethodResource.java b/src/main/java/com/adyen/model/checkout/StoredPaymentMethodResource.java index 0947ce9a2..c0e4d9c3f 100644 --- a/src/main/java/com/adyen/model/checkout/StoredPaymentMethodResource.java +++ b/src/main/java/com/adyen/model/checkout/StoredPaymentMethodResource.java @@ -2,33 +2,24 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * StoredPaymentMethodResource - */ +/** StoredPaymentMethodResource */ @JsonPropertyOrder({ StoredPaymentMethodResource.JSON_PROPERTY_BRAND, StoredPaymentMethodResource.JSON_PROPERTY_EXPIRY_MONTH, @@ -48,7 +39,6 @@ StoredPaymentMethodResource.JSON_PROPERTY_SUPPORTED_RECURRING_PROCESSING_MODELS, StoredPaymentMethodResource.JSON_PROPERTY_TYPE }) - public class StoredPaymentMethodResource { public static final String JSON_PROPERTY_BRAND = "brand"; private String brand; @@ -95,14 +85,14 @@ public class StoredPaymentMethodResource { public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference"; private String shopperReference; - public static final String JSON_PROPERTY_SUPPORTED_RECURRING_PROCESSING_MODELS = "supportedRecurringProcessingModels"; + public static final String JSON_PROPERTY_SUPPORTED_RECURRING_PROCESSING_MODELS = + "supportedRecurringProcessingModels"; private List supportedRecurringProcessingModels; public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public StoredPaymentMethodResource() { - } + public StoredPaymentMethodResource() {} /** * The brand of the card. @@ -117,6 +107,7 @@ public StoredPaymentMethodResource brand(String brand) { /** * The brand of the card. + * * @return brand The brand of the card. */ @JsonProperty(JSON_PROPERTY_BRAND) @@ -149,6 +140,7 @@ public StoredPaymentMethodResource expiryMonth(String expiryMonth) { /** * The month the card expires. + * * @return expiryMonth The month the card expires. */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @@ -171,7 +163,8 @@ public void setExpiryMonth(String expiryMonth) { /** * The last two digits of the year the card expires. For example, **22** for the year 2022. * - * @param expiryYear The last two digits of the year the card expires. For example, **22** for the year 2022. + * @param expiryYear The last two digits of the year the card expires. For example, **22** for the + * year 2022. * @return the current {@code StoredPaymentMethodResource} instance, allowing for method chaining */ public StoredPaymentMethodResource expiryYear(String expiryYear) { @@ -181,7 +174,9 @@ public StoredPaymentMethodResource expiryYear(String expiryYear) { /** * The last two digits of the year the card expires. For example, **22** for the year 2022. - * @return expiryYear The last two digits of the year the card expires. For example, **22** for the year 2022. + * + * @return expiryYear The last two digits of the year the card expires. For example, **22** for + * the year 2022. */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,7 +187,8 @@ public String getExpiryYear() { /** * The last two digits of the year the card expires. For example, **22** for the year 2022. * - * @param expiryYear The last two digits of the year the card expires. For example, **22** for the year 2022. + * @param expiryYear The last two digits of the year the card expires. For example, **22** for the + * year 2022. */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -203,7 +199,8 @@ public void setExpiryYear(String expiryYear) { /** * The response code returned by an external system (for example after a provisioning operation). * - * @param externalResponseCode The response code returned by an external system (for example after a provisioning operation). + * @param externalResponseCode The response code returned by an external system (for example after + * a provisioning operation). * @return the current {@code StoredPaymentMethodResource} instance, allowing for method chaining */ public StoredPaymentMethodResource externalResponseCode(String externalResponseCode) { @@ -213,7 +210,9 @@ public StoredPaymentMethodResource externalResponseCode(String externalResponseC /** * The response code returned by an external system (for example after a provisioning operation). - * @return externalResponseCode The response code returned by an external system (for example after a provisioning operation). + * + * @return externalResponseCode The response code returned by an external system (for example + * after a provisioning operation). */ @JsonProperty(JSON_PROPERTY_EXTERNAL_RESPONSE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,7 +223,8 @@ public String getExternalResponseCode() { /** * The response code returned by an external system (for example after a provisioning operation). * - * @param externalResponseCode The response code returned by an external system (for example after a provisioning operation). + * @param externalResponseCode The response code returned by an external system (for example after + * a provisioning operation). */ @JsonProperty(JSON_PROPERTY_EXTERNAL_RESPONSE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -233,9 +233,11 @@ public void setExternalResponseCode(String externalResponseCode) { } /** - * The token reference of a linked token in an external system (for example a network token reference). + * The token reference of a linked token in an external system (for example a network token + * reference). * - * @param externalTokenReference The token reference of a linked token in an external system (for example a network token reference). + * @param externalTokenReference The token reference of a linked token in an external system (for + * example a network token reference). * @return the current {@code StoredPaymentMethodResource} instance, allowing for method chaining */ public StoredPaymentMethodResource externalTokenReference(String externalTokenReference) { @@ -244,8 +246,11 @@ public StoredPaymentMethodResource externalTokenReference(String externalTokenRe } /** - * The token reference of a linked token in an external system (for example a network token reference). - * @return externalTokenReference The token reference of a linked token in an external system (for example a network token reference). + * The token reference of a linked token in an external system (for example a network token + * reference). + * + * @return externalTokenReference The token reference of a linked token in an external system (for + * example a network token reference). */ @JsonProperty(JSON_PROPERTY_EXTERNAL_TOKEN_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -254,9 +259,11 @@ public String getExternalTokenReference() { } /** - * The token reference of a linked token in an external system (for example a network token reference). + * The token reference of a linked token in an external system (for example a network token + * reference). * - * @param externalTokenReference The token reference of a linked token in an external system (for example a network token reference). + * @param externalTokenReference The token reference of a linked token in an external system (for + * example a network token reference). */ @JsonProperty(JSON_PROPERTY_EXTERNAL_TOKEN_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -277,6 +284,7 @@ public StoredPaymentMethodResource holderName(String holderName) { /** * The unique payment method code. + * * @return holderName The unique payment method code. */ @JsonProperty(JSON_PROPERTY_HOLDER_NAME) @@ -309,6 +317,7 @@ public StoredPaymentMethodResource iban(String iban) { /** * The IBAN of the bank account. + * * @return iban The IBAN of the bank account. */ @JsonProperty(JSON_PROPERTY_IBAN) @@ -341,6 +350,7 @@ public StoredPaymentMethodResource id(String id) { /** * A unique identifier of this stored payment method. + * * @return id A unique identifier of this stored payment method. */ @JsonProperty(JSON_PROPERTY_ID) @@ -373,6 +383,7 @@ public StoredPaymentMethodResource issuerName(String issuerName) { /** * The name of the issuer of token or card. + * * @return issuerName The name of the issuer of token or card. */ @JsonProperty(JSON_PROPERTY_ISSUER_NAME) @@ -405,6 +416,7 @@ public StoredPaymentMethodResource lastFour(String lastFour) { /** * The last four digits of the PAN. + * * @return lastFour The last four digits of the PAN. */ @JsonProperty(JSON_PROPERTY_LAST_FOUR) @@ -437,6 +449,7 @@ public StoredPaymentMethodResource name(String name) { /** * The display name of the stored payment method. + * * @return name The display name of the stored payment method. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -457,9 +470,13 @@ public void setName(String name) { } /** - * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the + * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either + * the Mastercard Trace ID or the Visa Transaction ID. * - * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are + * using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This + * contains either the Mastercard Trace ID or the Visa Transaction ID. * @return the current {@code StoredPaymentMethodResource} instance, allowing for method chaining */ public StoredPaymentMethodResource networkTxReference(String networkTxReference) { @@ -468,8 +485,13 @@ public StoredPaymentMethodResource networkTxReference(String networkTxReference) } /** - * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. - * @return networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the + * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either + * the Mastercard Trace ID or the Visa Transaction ID. + * + * @return networkTxReference Returned in the response if you are not tokenizing with Adyen and + * are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This + * contains either the Mastercard Trace ID or the Visa Transaction ID. */ @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -478,9 +500,13 @@ public String getNetworkTxReference() { } /** - * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the + * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either + * the Mastercard Trace ID or the Visa Transaction ID. * - * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are + * using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This + * contains either the Mastercard Trace ID or the Visa Transaction ID. */ @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -501,6 +527,7 @@ public StoredPaymentMethodResource ownerName(String ownerName) { /** * The name of the bank account holder. + * * @return ownerName The name of the bank account holder. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @@ -533,6 +560,7 @@ public StoredPaymentMethodResource shopperEmail(String shopperEmail) { /** * The shopper’s email address. + * * @return shopperEmail The shopper’s email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -553,9 +581,14 @@ public void setShopperEmail(String shopperEmail) { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. The value + * is case-sensitive and must be at least three characters. > Your reference must not include + * personally identifiable information (PII) such as name or email address. * - * @param shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @param shopperReference Your reference to uniquely identify this shopper, for example user ID + * or account ID. The value is case-sensitive and must be at least three characters. > Your + * reference must not include personally identifiable information (PII) such as name or email + * address. * @return the current {@code StoredPaymentMethodResource} instance, allowing for method chaining */ public StoredPaymentMethodResource shopperReference(String shopperReference) { @@ -564,8 +597,14 @@ public StoredPaymentMethodResource shopperReference(String shopperReference) { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. - * @return shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. The value + * is case-sensitive and must be at least three characters. > Your reference must not include + * personally identifiable information (PII) such as name or email address. + * + * @return shopperReference Your reference to uniquely identify this shopper, for example user ID + * or account ID. The value is case-sensitive and must be at least three characters. > Your + * reference must not include personally identifiable information (PII) such as name or email + * address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -574,9 +613,14 @@ public String getShopperReference() { } /** - * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Your reference to uniquely identify this shopper, for example user ID or account ID. The value + * is case-sensitive and must be at least three characters. > Your reference must not include + * personally identifiable information (PII) such as name or email address. * - * @param shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @param shopperReference Your reference to uniquely identify this shopper, for example user ID + * or account ID. The value is case-sensitive and must be at least three characters. > Your + * reference must not include personally identifiable information (PII) such as name or email + * address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -585,17 +629,34 @@ public void setShopperReference(String shopperReference) { } /** - * Defines a recurring payment type. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. - * - * @param supportedRecurringProcessingModels Defines a recurring payment type. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Allowed values: * `Subscription` – A transaction + * for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With + * a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – + * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. + * + * @param supportedRecurringProcessingModels Defines a recurring payment type. Allowed values: * + * `Subscription` – A transaction for a fixed or variable amount, which follows a + * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card + * details are stored to enable one-click or omnichannel journeys, or simply to streamline the + * checkout process. Any subscription not following a fixed schedule is also considered a + * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file + * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have + * variable amounts. For example, automatic top-ups when a cardholder's balance drops + * below a certain amount. * @return the current {@code StoredPaymentMethodResource} instance, allowing for method chaining */ - public StoredPaymentMethodResource supportedRecurringProcessingModels(List supportedRecurringProcessingModels) { + public StoredPaymentMethodResource supportedRecurringProcessingModels( + List supportedRecurringProcessingModels) { this.supportedRecurringProcessingModels = supportedRecurringProcessingModels; return this; } - public StoredPaymentMethodResource addSupportedRecurringProcessingModelsItem(String supportedRecurringProcessingModelsItem) { + public StoredPaymentMethodResource addSupportedRecurringProcessingModelsItem( + String supportedRecurringProcessingModelsItem) { if (this.supportedRecurringProcessingModels == null) { this.supportedRecurringProcessingModels = new ArrayList<>(); } @@ -604,8 +665,24 @@ public StoredPaymentMethodResource addSupportedRecurringProcessingModelsItem(Str } /** - * Defines a recurring payment type. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. - * @return supportedRecurringProcessingModels Defines a recurring payment type. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Allowed values: * `Subscription` – A transaction + * for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With + * a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – + * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. + * + * @return supportedRecurringProcessingModels Defines a recurring payment type. Allowed values: * + * `Subscription` – A transaction for a fixed or variable amount, which follows a + * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card + * details are stored to enable one-click or omnichannel journeys, or simply to streamline the + * checkout process. Any subscription not following a fixed schedule is also considered a + * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file + * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have + * variable amounts. For example, automatic top-ups when a cardholder's balance drops + * below a certain amount. */ @JsonProperty(JSON_PROPERTY_SUPPORTED_RECURRING_PROCESSING_MODELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -614,13 +691,29 @@ public List getSupportedRecurringProcessingModels() { } /** - * Defines a recurring payment type. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Allowed values: * `Subscription` – A transaction + * for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With + * a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – + * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. * - * @param supportedRecurringProcessingModels Defines a recurring payment type. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * @param supportedRecurringProcessingModels Defines a recurring payment type. Allowed values: * + * `Subscription` – A transaction for a fixed or variable amount, which follows a + * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card + * details are stored to enable one-click or omnichannel journeys, or simply to streamline the + * checkout process. Any subscription not following a fixed schedule is also considered a + * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file + * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have + * variable amounts. For example, automatic top-ups when a cardholder's balance drops + * below a certain amount. */ @JsonProperty(JSON_PROPERTY_SUPPORTED_RECURRING_PROCESSING_MODELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSupportedRecurringProcessingModels(List supportedRecurringProcessingModels) { + public void setSupportedRecurringProcessingModels( + List supportedRecurringProcessingModels) { this.supportedRecurringProcessingModels = supportedRecurringProcessingModels; } @@ -637,6 +730,7 @@ public StoredPaymentMethodResource type(String type) { /** * The type of payment method. + * * @return type The type of payment method. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -656,9 +750,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this StoredPaymentMethodResource object is equal to o. - */ + /** Return true if this StoredPaymentMethodResource object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -668,28 +760,49 @@ public boolean equals(Object o) { return false; } StoredPaymentMethodResource storedPaymentMethodResource = (StoredPaymentMethodResource) o; - return Objects.equals(this.brand, storedPaymentMethodResource.brand) && - Objects.equals(this.expiryMonth, storedPaymentMethodResource.expiryMonth) && - Objects.equals(this.expiryYear, storedPaymentMethodResource.expiryYear) && - Objects.equals(this.externalResponseCode, storedPaymentMethodResource.externalResponseCode) && - Objects.equals(this.externalTokenReference, storedPaymentMethodResource.externalTokenReference) && - Objects.equals(this.holderName, storedPaymentMethodResource.holderName) && - Objects.equals(this.iban, storedPaymentMethodResource.iban) && - Objects.equals(this.id, storedPaymentMethodResource.id) && - Objects.equals(this.issuerName, storedPaymentMethodResource.issuerName) && - Objects.equals(this.lastFour, storedPaymentMethodResource.lastFour) && - Objects.equals(this.name, storedPaymentMethodResource.name) && - Objects.equals(this.networkTxReference, storedPaymentMethodResource.networkTxReference) && - Objects.equals(this.ownerName, storedPaymentMethodResource.ownerName) && - Objects.equals(this.shopperEmail, storedPaymentMethodResource.shopperEmail) && - Objects.equals(this.shopperReference, storedPaymentMethodResource.shopperReference) && - Objects.equals(this.supportedRecurringProcessingModels, storedPaymentMethodResource.supportedRecurringProcessingModels) && - Objects.equals(this.type, storedPaymentMethodResource.type); + return Objects.equals(this.brand, storedPaymentMethodResource.brand) + && Objects.equals(this.expiryMonth, storedPaymentMethodResource.expiryMonth) + && Objects.equals(this.expiryYear, storedPaymentMethodResource.expiryYear) + && Objects.equals( + this.externalResponseCode, storedPaymentMethodResource.externalResponseCode) + && Objects.equals( + this.externalTokenReference, storedPaymentMethodResource.externalTokenReference) + && Objects.equals(this.holderName, storedPaymentMethodResource.holderName) + && Objects.equals(this.iban, storedPaymentMethodResource.iban) + && Objects.equals(this.id, storedPaymentMethodResource.id) + && Objects.equals(this.issuerName, storedPaymentMethodResource.issuerName) + && Objects.equals(this.lastFour, storedPaymentMethodResource.lastFour) + && Objects.equals(this.name, storedPaymentMethodResource.name) + && Objects.equals(this.networkTxReference, storedPaymentMethodResource.networkTxReference) + && Objects.equals(this.ownerName, storedPaymentMethodResource.ownerName) + && Objects.equals(this.shopperEmail, storedPaymentMethodResource.shopperEmail) + && Objects.equals(this.shopperReference, storedPaymentMethodResource.shopperReference) + && Objects.equals( + this.supportedRecurringProcessingModels, + storedPaymentMethodResource.supportedRecurringProcessingModels) + && Objects.equals(this.type, storedPaymentMethodResource.type); } @Override public int hashCode() { - return Objects.hash(brand, expiryMonth, expiryYear, externalResponseCode, externalTokenReference, holderName, iban, id, issuerName, lastFour, name, networkTxReference, ownerName, shopperEmail, shopperReference, supportedRecurringProcessingModels, type); + return Objects.hash( + brand, + expiryMonth, + expiryYear, + externalResponseCode, + externalTokenReference, + holderName, + iban, + id, + issuerName, + lastFour, + name, + networkTxReference, + ownerName, + shopperEmail, + shopperReference, + supportedRecurringProcessingModels, + type); } @Override @@ -699,8 +812,12 @@ public String toString() { sb.append(" brand: ").append(toIndentedString(brand)).append("\n"); sb.append(" expiryMonth: ").append(toIndentedString(expiryMonth)).append("\n"); sb.append(" expiryYear: ").append(toIndentedString(expiryYear)).append("\n"); - sb.append(" externalResponseCode: ").append(toIndentedString(externalResponseCode)).append("\n"); - sb.append(" externalTokenReference: ").append(toIndentedString(externalTokenReference)).append("\n"); + sb.append(" externalResponseCode: ") + .append(toIndentedString(externalResponseCode)) + .append("\n"); + sb.append(" externalTokenReference: ") + .append(toIndentedString(externalTokenReference)) + .append("\n"); sb.append(" holderName: ").append(toIndentedString(holderName)).append("\n"); sb.append(" iban: ").append(toIndentedString(iban)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); @@ -711,15 +828,16 @@ public String toString() { sb.append(" ownerName: ").append(toIndentedString(ownerName)).append("\n"); sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); - sb.append(" supportedRecurringProcessingModels: ").append(toIndentedString(supportedRecurringProcessingModels)).append("\n"); + sb.append(" supportedRecurringProcessingModels: ") + .append(toIndentedString(supportedRecurringProcessingModels)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -728,21 +846,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of StoredPaymentMethodResource given an JSON string * * @param jsonString JSON string * @return An instance of StoredPaymentMethodResource - * @throws JsonProcessingException if the JSON string is invalid with respect to StoredPaymentMethodResource + * @throws JsonProcessingException if the JSON string is invalid with respect to + * StoredPaymentMethodResource */ - public static StoredPaymentMethodResource fromJson(String jsonString) throws JsonProcessingException { + public static StoredPaymentMethodResource fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoredPaymentMethodResource.class); } -/** - * Convert an instance of StoredPaymentMethodResource to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of StoredPaymentMethodResource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/SubInputDetail.java b/src/main/java/com/adyen/model/checkout/SubInputDetail.java index 624a39fdb..eb296ac31 100644 --- a/src/main/java/com/adyen/model/checkout/SubInputDetail.java +++ b/src/main/java/com/adyen/model/checkout/SubInputDetail.java @@ -2,36 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Item; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; -import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -/** - * SubInputDetail - */ +/** SubInputDetail */ @JsonPropertyOrder({ SubInputDetail.JSON_PROPERTY_CONFIGURATION, SubInputDetail.JSON_PROPERTY_ITEMS, @@ -40,7 +30,6 @@ SubInputDetail.JSON_PROPERTY_TYPE, SubInputDetail.JSON_PROPERTY_VALUE }) - public class SubInputDetail { public static final String JSON_PROPERTY_CONFIGURATION = "configuration"; private Map configuration; @@ -60,8 +49,7 @@ public class SubInputDetail { public static final String JSON_PROPERTY_VALUE = "value"; private String value; - public SubInputDetail() { - } + public SubInputDetail() {} /** * Configuration parameters for the required input. @@ -84,6 +72,7 @@ public SubInputDetail putConfigurationItem(String key, String configurationItem) /** * Configuration parameters for the required input. + * * @return configuration Configuration parameters for the required input. */ @JsonProperty(JSON_PROPERTY_CONFIGURATION) @@ -124,6 +113,7 @@ public SubInputDetail addItemsItem(Item itemsItem) { /** * In case of a select, the items to choose from. + * * @return items In case of a select, the items to choose from. */ @JsonProperty(JSON_PROPERTY_ITEMS) @@ -156,6 +146,7 @@ public SubInputDetail key(String key) { /** * The value to provide in the result. + * * @return key The value to provide in the result. */ @JsonProperty(JSON_PROPERTY_KEY) @@ -188,6 +179,7 @@ public SubInputDetail optional(Boolean optional) { /** * True if this input is optional to provide. + * * @return optional True if this input is optional to provide. */ @JsonProperty(JSON_PROPERTY_OPTIONAL) @@ -220,6 +212,7 @@ public SubInputDetail type(String type) { /** * The type of the required input. + * * @return type The type of the required input. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -252,6 +245,7 @@ public SubInputDetail value(String value) { /** * The value can be pre-filled, if available. + * * @return value The value can be pre-filled, if available. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -271,9 +265,7 @@ public void setValue(String value) { this.value = value; } - /** - * Return true if this SubInputDetail object is equal to o. - */ + /** Return true if this SubInputDetail object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -283,12 +275,12 @@ public boolean equals(Object o) { return false; } SubInputDetail subInputDetail = (SubInputDetail) o; - return Objects.equals(this.configuration, subInputDetail.configuration) && - Objects.equals(this.items, subInputDetail.items) && - Objects.equals(this.key, subInputDetail.key) && - Objects.equals(this.optional, subInputDetail.optional) && - Objects.equals(this.type, subInputDetail.type) && - Objects.equals(this.value, subInputDetail.value); + return Objects.equals(this.configuration, subInputDetail.configuration) + && Objects.equals(this.items, subInputDetail.items) + && Objects.equals(this.key, subInputDetail.key) + && Objects.equals(this.optional, subInputDetail.optional) + && Objects.equals(this.type, subInputDetail.type) + && Objects.equals(this.value, subInputDetail.value); } @Override @@ -311,8 +303,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -321,7 +312,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SubInputDetail given an JSON string * * @param jsonString JSON string @@ -331,11 +322,12 @@ private String toIndentedString(Object o) { public static SubInputDetail fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SubInputDetail.class); } -/** - * Convert an instance of SubInputDetail to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SubInputDetail to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/SubMerchant.java b/src/main/java/com/adyen/model/checkout/SubMerchant.java index c264f2cde..be16e3e08 100644 --- a/src/main/java/com/adyen/model/checkout/SubMerchant.java +++ b/src/main/java/com/adyen/model/checkout/SubMerchant.java @@ -2,31 +2,22 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * SubMerchant - */ +/** SubMerchant */ @JsonPropertyOrder({ SubMerchant.JSON_PROPERTY_CITY, SubMerchant.JSON_PROPERTY_COUNTRY, @@ -34,7 +25,6 @@ SubMerchant.JSON_PROPERTY_NAME, SubMerchant.JSON_PROPERTY_TAX_ID }) - public class SubMerchant { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -51,13 +41,14 @@ public class SubMerchant { public static final String JSON_PROPERTY_TAX_ID = "taxId"; private String taxId; - public SubMerchant() { - } + public SubMerchant() {} /** - * The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters + * The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 + * characters * - * @param city The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters + * @param city The city of the sub-merchant's address. * Format: Alphanumeric * Maximum + * length: 13 characters * @return the current {@code SubMerchant} instance, allowing for method chaining */ public SubMerchant city(String city) { @@ -66,8 +57,11 @@ public SubMerchant city(String city) { } /** - * The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters - * @return city The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters + * The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 + * characters + * + * @return city The city of the sub-merchant's address. * Format: Alphanumeric * Maximum + * length: 13 characters */ @JsonProperty(JSON_PROPERTY_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -76,9 +70,11 @@ public String getCity() { } /** - * The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters + * The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 + * characters * - * @param city The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters + * @param city The city of the sub-merchant's address. * Format: Alphanumeric * Maximum + * length: 13 characters */ @JsonProperty(JSON_PROPERTY_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,9 +83,13 @@ public void setCity(String city) { } /** - * The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * The three-letter country code of the sub-merchant's address. For example, **BRA** for + * Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * + * Fixed length: 3 characters * - * @param country The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * @param country The three-letter country code of the sub-merchant's address. For example, + * **BRA** for Brazil. * Format: [ISO 3166-1 + * alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters * @return the current {@code SubMerchant} instance, allowing for method chaining */ public SubMerchant country(String country) { @@ -98,8 +98,13 @@ public SubMerchant country(String country) { } /** - * The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters - * @return country The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * The three-letter country code of the sub-merchant's address. For example, **BRA** for + * Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * + * Fixed length: 3 characters + * + * @return country The three-letter country code of the sub-merchant's address. For example, + * **BRA** for Brazil. * Format: [ISO 3166-1 + * alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,9 +113,13 @@ public String getCountry() { } /** - * The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * The three-letter country code of the sub-merchant's address. For example, **BRA** for + * Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * + * Fixed length: 3 characters * - * @param country The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * @param country The three-letter country code of the sub-merchant's address. For example, + * **BRA** for Brazil. * Format: [ISO 3166-1 + * alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -119,9 +128,11 @@ public void setCountry(String country) { } /** - * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: + * 4 digits * - * @param mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * @param mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * + * Fixed length: 4 digits * @return the current {@code SubMerchant} instance, allowing for method chaining */ public SubMerchant mcc(String mcc) { @@ -130,8 +141,11 @@ public SubMerchant mcc(String mcc) { } /** - * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits - * @return mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: + * 4 digits + * + * @return mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * + * Fixed length: 4 digits */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,9 +154,11 @@ public String getMcc() { } /** - * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: + * 4 digits * - * @param mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * @param mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * + * Fixed length: 4 digits */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,9 +167,13 @@ public void setMcc(String mcc) { } /** - * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters + * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the + * shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum + * length: 22 characters * - * @param name The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters + * @param name The name of the sub-merchant. Based on scheme specifications, this value will + * overwrite the shopper statement that will appear in the card statement. * Format: + * Alphanumeric * Maximum length: 22 characters * @return the current {@code SubMerchant} instance, allowing for method chaining */ public SubMerchant name(String name) { @@ -162,8 +182,13 @@ public SubMerchant name(String name) { } /** - * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters - * @return name The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters + * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the + * shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum + * length: 22 characters + * + * @return name The name of the sub-merchant. Based on scheme specifications, this value will + * overwrite the shopper statement that will appear in the card statement. * Format: + * Alphanumeric * Maximum length: 22 characters */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,9 +197,13 @@ public String getName() { } /** - * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters + * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the + * shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum + * length: 22 characters * - * @param name The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters + * @param name The name of the sub-merchant. Based on scheme specifications, this value will + * overwrite the shopper statement that will appear in the card statement. * Format: + * Alphanumeric * Maximum length: 22 characters */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,9 +212,11 @@ public void setName(String name) { } /** - * The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 + * digits for the CNPJ * - * @param taxId The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * @param taxId The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for + * the CPF or 14 digits for the CNPJ * @return the current {@code SubMerchant} instance, allowing for method chaining */ public SubMerchant taxId(String taxId) { @@ -194,8 +225,11 @@ public SubMerchant taxId(String taxId) { } /** - * The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ - * @return taxId The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 + * digits for the CNPJ + * + * @return taxId The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for + * the CPF or 14 digits for the CNPJ */ @JsonProperty(JSON_PROPERTY_TAX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,9 +238,11 @@ public String getTaxId() { } /** - * The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 + * digits for the CNPJ * - * @param taxId The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * @param taxId The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for + * the CPF or 14 digits for the CNPJ */ @JsonProperty(JSON_PROPERTY_TAX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,9 +250,7 @@ public void setTaxId(String taxId) { this.taxId = taxId; } - /** - * Return true if this SubMerchant object is equal to o. - */ + /** Return true if this SubMerchant object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -226,11 +260,11 @@ public boolean equals(Object o) { return false; } SubMerchant subMerchant = (SubMerchant) o; - return Objects.equals(this.city, subMerchant.city) && - Objects.equals(this.country, subMerchant.country) && - Objects.equals(this.mcc, subMerchant.mcc) && - Objects.equals(this.name, subMerchant.name) && - Objects.equals(this.taxId, subMerchant.taxId); + return Objects.equals(this.city, subMerchant.city) + && Objects.equals(this.country, subMerchant.country) + && Objects.equals(this.mcc, subMerchant.mcc) + && Objects.equals(this.name, subMerchant.name) + && Objects.equals(this.taxId, subMerchant.taxId); } @Override @@ -252,8 +286,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -262,7 +295,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SubMerchant given an JSON string * * @param jsonString JSON string @@ -272,11 +305,12 @@ private String toIndentedString(Object o) { public static SubMerchant fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SubMerchant.class); } -/** - * Convert an instance of SubMerchant to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SubMerchant to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/SubMerchantInfo.java b/src/main/java/com/adyen/model/checkout/SubMerchantInfo.java index d4b028f6b..9cdb9eb25 100644 --- a/src/main/java/com/adyen/model/checkout/SubMerchantInfo.java +++ b/src/main/java/com/adyen/model/checkout/SubMerchantInfo.java @@ -2,33 +2,22 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Amount; -import com.adyen.model.checkout.BillingAddress; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * SubMerchantInfo - */ +/** SubMerchantInfo */ @JsonPropertyOrder({ SubMerchantInfo.JSON_PROPERTY_ADDRESS, SubMerchantInfo.JSON_PROPERTY_AMOUNT, @@ -41,7 +30,6 @@ SubMerchantInfo.JSON_PROPERTY_TAX_ID, SubMerchantInfo.JSON_PROPERTY_URL }) - public class SubMerchantInfo { public static final String JSON_PROPERTY_ADDRESS = "address"; private BillingAddress address; @@ -73,13 +61,12 @@ public class SubMerchantInfo { public static final String JSON_PROPERTY_URL = "url"; private String url; - public SubMerchantInfo() { - } + public SubMerchantInfo() {} /** * address * - * @param address + * @param address * @return the current {@code SubMerchantInfo} instance, allowing for method chaining */ public SubMerchantInfo address(BillingAddress address) { @@ -89,7 +76,8 @@ public SubMerchantInfo address(BillingAddress address) { /** * Get address - * @return address + * + * @return address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,7 +88,7 @@ public BillingAddress getAddress() { /** * address * - * @param address + * @param address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,7 +99,7 @@ public void setAddress(BillingAddress address) { /** * amount * - * @param amount + * @param amount * @return the current {@code SubMerchantInfo} instance, allowing for method chaining */ public SubMerchantInfo amount(Amount amount) { @@ -121,7 +109,8 @@ public SubMerchantInfo amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,7 +121,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -141,9 +130,11 @@ public void setAmount(Amount amount) { } /** - * Required for transactions performed by registered payment facilitators. The email associated with the sub-merchant's account. + * Required for transactions performed by registered payment facilitators. The email associated + * with the sub-merchant's account. * - * @param email Required for transactions performed by registered payment facilitators. The email associated with the sub-merchant's account. + * @param email Required for transactions performed by registered payment facilitators. The email + * associated with the sub-merchant's account. * @return the current {@code SubMerchantInfo} instance, allowing for method chaining */ public SubMerchantInfo email(String email) { @@ -152,8 +143,11 @@ public SubMerchantInfo email(String email) { } /** - * Required for transactions performed by registered payment facilitators. The email associated with the sub-merchant's account. - * @return email Required for transactions performed by registered payment facilitators. The email associated with the sub-merchant's account. + * Required for transactions performed by registered payment facilitators. The email associated + * with the sub-merchant's account. + * + * @return email Required for transactions performed by registered payment facilitators. The email + * associated with the sub-merchant's account. */ @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -162,9 +156,11 @@ public String getEmail() { } /** - * Required for transactions performed by registered payment facilitators. The email associated with the sub-merchant's account. + * Required for transactions performed by registered payment facilitators. The email associated + * with the sub-merchant's account. * - * @param email Required for transactions performed by registered payment facilitators. The email associated with the sub-merchant's account. + * @param email Required for transactions performed by registered payment facilitators. The email + * associated with the sub-merchant's account. */ @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,9 +169,13 @@ public void setEmail(String email) { } /** - * Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * Required for transactions performed by registered payment facilitators. A unique identifier + * that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: + * Alphanumeric * Maximum length: 15 characters * - * @param id Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * @param id Required for transactions performed by registered payment facilitators. A unique + * identifier that you create for the sub-merchant, used by schemes to identify the + * sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters * @return the current {@code SubMerchantInfo} instance, allowing for method chaining */ public SubMerchantInfo id(String id) { @@ -184,8 +184,13 @@ public SubMerchantInfo id(String id) { } /** - * Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters - * @return id Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * Required for transactions performed by registered payment facilitators. A unique identifier + * that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: + * Alphanumeric * Maximum length: 15 characters + * + * @return id Required for transactions performed by registered payment facilitators. A unique + * identifier that you create for the sub-merchant, used by schemes to identify the + * sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,9 +199,13 @@ public String getId() { } /** - * Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * Required for transactions performed by registered payment facilitators. A unique identifier + * that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: + * Alphanumeric * Maximum length: 15 characters * - * @param id Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * @param id Required for transactions performed by registered payment facilitators. A unique + * identifier that you create for the sub-merchant, used by schemes to identify the + * sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -205,9 +214,12 @@ public void setId(String id) { } /** - * Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * Required for transactions performed by registered payment facilitators. The sub-merchant's + * 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits * - * @param mcc Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * @param mcc Required for transactions performed by registered payment facilitators. The + * sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: + * 4 digits * @return the current {@code SubMerchantInfo} instance, allowing for method chaining */ public SubMerchantInfo mcc(String mcc) { @@ -216,8 +228,12 @@ public SubMerchantInfo mcc(String mcc) { } /** - * Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits - * @return mcc Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * Required for transactions performed by registered payment facilitators. The sub-merchant's + * 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * + * @return mcc Required for transactions performed by registered payment facilitators. The + * sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: + * 4 digits */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -226,9 +242,12 @@ public String getMcc() { } /** - * Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * Required for transactions performed by registered payment facilitators. The sub-merchant's + * 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits * - * @param mcc Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * @param mcc Required for transactions performed by registered payment facilitators. The + * sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: + * 4 digits */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,9 +256,16 @@ public void setMcc(String mcc) { } /** - * Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters + * Required for transactions performed by registered payment facilitators. The name of the + * sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement + * that will appear in the card statement. Exception: for acquirers in Brazil, this value does not + * overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters * - * @param name Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters + * @param name Required for transactions performed by registered payment facilitators. The name of + * the sub-merchant. Based on scheme specifications, this value will overwrite the shopper + * statement that will appear in the card statement. Exception: for acquirers in Brazil, this + * value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 + * characters * @return the current {@code SubMerchantInfo} instance, allowing for method chaining */ public SubMerchantInfo name(String name) { @@ -248,8 +274,16 @@ public SubMerchantInfo name(String name) { } /** - * Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters - * @return name Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters + * Required for transactions performed by registered payment facilitators. The name of the + * sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement + * that will appear in the card statement. Exception: for acquirers in Brazil, this value does not + * overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters + * + * @return name Required for transactions performed by registered payment facilitators. The name + * of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper + * statement that will appear in the card statement. Exception: for acquirers in Brazil, this + * value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 + * characters */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -258,9 +292,16 @@ public String getName() { } /** - * Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters + * Required for transactions performed by registered payment facilitators. The name of the + * sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement + * that will appear in the card statement. Exception: for acquirers in Brazil, this value does not + * overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters * - * @param name Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters + * @param name Required for transactions performed by registered payment facilitators. The name of + * the sub-merchant. Based on scheme specifications, this value will overwrite the shopper + * statement that will appear in the card statement. Exception: for acquirers in Brazil, this + * value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 + * characters */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -269,9 +310,11 @@ public void setName(String name) { } /** - * Required for transactions performed by registered payment facilitators. The phone number associated with the sub-merchant's account. + * Required for transactions performed by registered payment facilitators. The phone number + * associated with the sub-merchant's account. * - * @param phoneNumber Required for transactions performed by registered payment facilitators. The phone number associated with the sub-merchant's account. + * @param phoneNumber Required for transactions performed by registered payment facilitators. The + * phone number associated with the sub-merchant's account. * @return the current {@code SubMerchantInfo} instance, allowing for method chaining */ public SubMerchantInfo phoneNumber(String phoneNumber) { @@ -280,8 +323,11 @@ public SubMerchantInfo phoneNumber(String phoneNumber) { } /** - * Required for transactions performed by registered payment facilitators. The phone number associated with the sub-merchant's account. - * @return phoneNumber Required for transactions performed by registered payment facilitators. The phone number associated with the sub-merchant's account. + * Required for transactions performed by registered payment facilitators. The phone number + * associated with the sub-merchant's account. + * + * @return phoneNumber Required for transactions performed by registered payment facilitators. The + * phone number associated with the sub-merchant's account. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -290,9 +336,11 @@ public String getPhoneNumber() { } /** - * Required for transactions performed by registered payment facilitators. The phone number associated with the sub-merchant's account. + * Required for transactions performed by registered payment facilitators. The phone number + * associated with the sub-merchant's account. * - * @param phoneNumber Required for transactions performed by registered payment facilitators. The phone number associated with the sub-merchant's account. + * @param phoneNumber Required for transactions performed by registered payment facilitators. The + * phone number associated with the sub-merchant's account. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -303,7 +351,7 @@ public void setPhoneNumber(String phoneNumber) { /** * registeredSince * - * @param registeredSince + * @param registeredSince * @return the current {@code SubMerchantInfo} instance, allowing for method chaining */ public SubMerchantInfo registeredSince(String registeredSince) { @@ -313,7 +361,8 @@ public SubMerchantInfo registeredSince(String registeredSince) { /** * Get registeredSince - * @return registeredSince + * + * @return registeredSince */ @JsonProperty(JSON_PROPERTY_REGISTERED_SINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -324,7 +373,7 @@ public String getRegisteredSince() { /** * registeredSince * - * @param registeredSince + * @param registeredSince */ @JsonProperty(JSON_PROPERTY_REGISTERED_SINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -333,9 +382,12 @@ public void setRegisteredSince(String registeredSince) { } /** - * Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * Required for transactions performed by registered payment facilitators. The tax ID of the + * sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ * - * @param taxId Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * @param taxId Required for transactions performed by registered payment facilitators. The tax ID + * of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits + * for the CNPJ * @return the current {@code SubMerchantInfo} instance, allowing for method chaining */ public SubMerchantInfo taxId(String taxId) { @@ -344,8 +396,12 @@ public SubMerchantInfo taxId(String taxId) { } /** - * Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ - * @return taxId Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * Required for transactions performed by registered payment facilitators. The tax ID of the + * sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * + * @return taxId Required for transactions performed by registered payment facilitators. The tax + * ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 + * digits for the CNPJ */ @JsonProperty(JSON_PROPERTY_TAX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -354,9 +410,12 @@ public String getTaxId() { } /** - * Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * Required for transactions performed by registered payment facilitators. The tax ID of the + * sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ * - * @param taxId Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * @param taxId Required for transactions performed by registered payment facilitators. The tax ID + * of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits + * for the CNPJ */ @JsonProperty(JSON_PROPERTY_TAX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -365,9 +424,11 @@ public void setTaxId(String taxId) { } /** - * Required for transactions performed by registered payment facilitators. The sub-merchant's URL on the platform, i.e. the sub-merchant's shop. + * Required for transactions performed by registered payment facilitators. The sub-merchant's + * URL on the platform, i.e. the sub-merchant's shop. * - * @param url Required for transactions performed by registered payment facilitators. The sub-merchant's URL on the platform, i.e. the sub-merchant's shop. + * @param url Required for transactions performed by registered payment facilitators. The + * sub-merchant's URL on the platform, i.e. the sub-merchant's shop. * @return the current {@code SubMerchantInfo} instance, allowing for method chaining */ public SubMerchantInfo url(String url) { @@ -376,8 +437,11 @@ public SubMerchantInfo url(String url) { } /** - * Required for transactions performed by registered payment facilitators. The sub-merchant's URL on the platform, i.e. the sub-merchant's shop. - * @return url Required for transactions performed by registered payment facilitators. The sub-merchant's URL on the platform, i.e. the sub-merchant's shop. + * Required for transactions performed by registered payment facilitators. The sub-merchant's + * URL on the platform, i.e. the sub-merchant's shop. + * + * @return url Required for transactions performed by registered payment facilitators. The + * sub-merchant's URL on the platform, i.e. the sub-merchant's shop. */ @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -386,9 +450,11 @@ public String getUrl() { } /** - * Required for transactions performed by registered payment facilitators. The sub-merchant's URL on the platform, i.e. the sub-merchant's shop. + * Required for transactions performed by registered payment facilitators. The sub-merchant's + * URL on the platform, i.e. the sub-merchant's shop. * - * @param url Required for transactions performed by registered payment facilitators. The sub-merchant's URL on the platform, i.e. the sub-merchant's shop. + * @param url Required for transactions performed by registered payment facilitators. The + * sub-merchant's URL on the platform, i.e. the sub-merchant's shop. */ @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -396,9 +462,7 @@ public void setUrl(String url) { this.url = url; } - /** - * Return true if this SubMerchantInfo object is equal to o. - */ + /** Return true if this SubMerchantInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -408,21 +472,22 @@ public boolean equals(Object o) { return false; } SubMerchantInfo subMerchantInfo = (SubMerchantInfo) o; - return Objects.equals(this.address, subMerchantInfo.address) && - Objects.equals(this.amount, subMerchantInfo.amount) && - Objects.equals(this.email, subMerchantInfo.email) && - Objects.equals(this.id, subMerchantInfo.id) && - Objects.equals(this.mcc, subMerchantInfo.mcc) && - Objects.equals(this.name, subMerchantInfo.name) && - Objects.equals(this.phoneNumber, subMerchantInfo.phoneNumber) && - Objects.equals(this.registeredSince, subMerchantInfo.registeredSince) && - Objects.equals(this.taxId, subMerchantInfo.taxId) && - Objects.equals(this.url, subMerchantInfo.url); + return Objects.equals(this.address, subMerchantInfo.address) + && Objects.equals(this.amount, subMerchantInfo.amount) + && Objects.equals(this.email, subMerchantInfo.email) + && Objects.equals(this.id, subMerchantInfo.id) + && Objects.equals(this.mcc, subMerchantInfo.mcc) + && Objects.equals(this.name, subMerchantInfo.name) + && Objects.equals(this.phoneNumber, subMerchantInfo.phoneNumber) + && Objects.equals(this.registeredSince, subMerchantInfo.registeredSince) + && Objects.equals(this.taxId, subMerchantInfo.taxId) + && Objects.equals(this.url, subMerchantInfo.url); } @Override public int hashCode() { - return Objects.hash(address, amount, email, id, mcc, name, phoneNumber, registeredSince, taxId, url); + return Objects.hash( + address, amount, email, id, mcc, name, phoneNumber, registeredSince, taxId, url); } @Override @@ -444,8 +509,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -454,7 +518,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SubMerchantInfo given an JSON string * * @param jsonString JSON string @@ -464,11 +528,12 @@ private String toIndentedString(Object o) { public static SubMerchantInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SubMerchantInfo.class); } -/** - * Convert an instance of SubMerchantInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SubMerchantInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Surcharge.java b/src/main/java/com/adyen/model/checkout/Surcharge.java index 862c04dc3..0ae6704cf 100644 --- a/src/main/java/com/adyen/model/checkout/Surcharge.java +++ b/src/main/java/com/adyen/model/checkout/Surcharge.java @@ -2,46 +2,44 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Surcharge - */ -@JsonPropertyOrder({ - Surcharge.JSON_PROPERTY_VALUE -}) - +/** Surcharge */ +@JsonPropertyOrder({Surcharge.JSON_PROPERTY_VALUE}) public class Surcharge { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Surcharge() { - } + public Surcharge() {} /** - * The [surcharge](https://docs.adyen.com/online-payments/surcharge/) amount to apply to the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). When you apply surcharge, include the surcharge in the `amount.value` field. Review our [Surcharge compliance guide](https://docs.adyen.com/development-resources/surcharge-compliance/) to learn about how to comply with regulatory requirements when applying surcharge. + * The [surcharge](https://docs.adyen.com/online-payments/surcharge/) amount to apply to the + * transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * When you apply surcharge, include the surcharge in the `amount.value` field. Review + * our [Surcharge compliance + * guide](https://docs.adyen.com/development-resources/surcharge-compliance/) to learn about how + * to comply with regulatory requirements when applying surcharge. * - * @param value The [surcharge](https://docs.adyen.com/online-payments/surcharge/) amount to apply to the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). When you apply surcharge, include the surcharge in the `amount.value` field. Review our [Surcharge compliance guide](https://docs.adyen.com/development-resources/surcharge-compliance/) to learn about how to comply with regulatory requirements when applying surcharge. + * @param value The [surcharge](https://docs.adyen.com/online-payments/surcharge/) amount to apply + * to the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). When you apply + * surcharge, include the surcharge in the `amount.value` field. Review our + * [Surcharge compliance + * guide](https://docs.adyen.com/development-resources/surcharge-compliance/) to learn about + * how to comply with regulatory requirements when applying surcharge. * @return the current {@code Surcharge} instance, allowing for method chaining */ public Surcharge value(Long value) { @@ -50,8 +48,20 @@ public Surcharge value(Long value) { } /** - * The [surcharge](https://docs.adyen.com/online-payments/surcharge/) amount to apply to the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). When you apply surcharge, include the surcharge in the `amount.value` field. Review our [Surcharge compliance guide](https://docs.adyen.com/development-resources/surcharge-compliance/) to learn about how to comply with regulatory requirements when applying surcharge. - * @return value The [surcharge](https://docs.adyen.com/online-payments/surcharge/) amount to apply to the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). When you apply surcharge, include the surcharge in the `amount.value` field. Review our [Surcharge compliance guide](https://docs.adyen.com/development-resources/surcharge-compliance/) to learn about how to comply with regulatory requirements when applying surcharge. + * The [surcharge](https://docs.adyen.com/online-payments/surcharge/) amount to apply to the + * transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * When you apply surcharge, include the surcharge in the `amount.value` field. Review + * our [Surcharge compliance + * guide](https://docs.adyen.com/development-resources/surcharge-compliance/) to learn about how + * to comply with regulatory requirements when applying surcharge. + * + * @return value The [surcharge](https://docs.adyen.com/online-payments/surcharge/) amount to + * apply to the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). When you apply + * surcharge, include the surcharge in the `amount.value` field. Review our + * [Surcharge compliance + * guide](https://docs.adyen.com/development-resources/surcharge-compliance/) to learn about + * how to comply with regulatory requirements when applying surcharge. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,9 +70,20 @@ public Long getValue() { } /** - * The [surcharge](https://docs.adyen.com/online-payments/surcharge/) amount to apply to the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). When you apply surcharge, include the surcharge in the `amount.value` field. Review our [Surcharge compliance guide](https://docs.adyen.com/development-resources/surcharge-compliance/) to learn about how to comply with regulatory requirements when applying surcharge. + * The [surcharge](https://docs.adyen.com/online-payments/surcharge/) amount to apply to the + * transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * When you apply surcharge, include the surcharge in the `amount.value` field. Review + * our [Surcharge compliance + * guide](https://docs.adyen.com/development-resources/surcharge-compliance/) to learn about how + * to comply with regulatory requirements when applying surcharge. * - * @param value The [surcharge](https://docs.adyen.com/online-payments/surcharge/) amount to apply to the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). When you apply surcharge, include the surcharge in the `amount.value` field. Review our [Surcharge compliance guide](https://docs.adyen.com/development-resources/surcharge-compliance/) to learn about how to comply with regulatory requirements when applying surcharge. + * @param value The [surcharge](https://docs.adyen.com/online-payments/surcharge/) amount to apply + * to the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). When you apply + * surcharge, include the surcharge in the `amount.value` field. Review our + * [Surcharge compliance + * guide](https://docs.adyen.com/development-resources/surcharge-compliance/) to learn about + * how to comply with regulatory requirements when applying surcharge. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +91,7 @@ public void setValue(Long value) { this.value = value; } - /** - * Return true if this Surcharge object is equal to o. - */ + /** Return true if this Surcharge object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +119,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,7 +128,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Surcharge given an JSON string * * @param jsonString JSON string @@ -120,11 +138,12 @@ private String toIndentedString(Object o) { public static Surcharge fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Surcharge.class); } -/** - * Convert an instance of Surcharge to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Surcharge to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/TaxTotal.java b/src/main/java/com/adyen/model/checkout/TaxTotal.java index de8a5c36d..a97781446 100644 --- a/src/main/java/com/adyen/model/checkout/TaxTotal.java +++ b/src/main/java/com/adyen/model/checkout/TaxTotal.java @@ -2,47 +2,33 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TaxTotal - */ -@JsonPropertyOrder({ - TaxTotal.JSON_PROPERTY_AMOUNT -}) - +/** TaxTotal */ +@JsonPropertyOrder({TaxTotal.JSON_PROPERTY_AMOUNT}) public class TaxTotal { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; - public TaxTotal() { - } + public TaxTotal() {} /** * amount * - * @param amount + * @param amount * @return the current {@code TaxTotal} instance, allowing for method chaining */ public TaxTotal amount(Amount amount) { @@ -52,7 +38,8 @@ public TaxTotal amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,7 +50,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,9 +58,7 @@ public void setAmount(Amount amount) { this.amount = amount; } - /** - * Return true if this TaxTotal object is equal to o. - */ + /** Return true if this TaxTotal object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -101,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -111,7 +95,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TaxTotal given an JSON string * * @param jsonString JSON string @@ -121,11 +105,12 @@ private String toIndentedString(Object o) { public static TaxTotal fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TaxTotal.class); } -/** - * Convert an instance of TaxTotal to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TaxTotal to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ThreeDS2RequestData.java b/src/main/java/com/adyen/model/checkout/ThreeDS2RequestData.java index 9604c2e7f..7eee2029a 100644 --- a/src/main/java/com/adyen/model/checkout/ThreeDS2RequestData.java +++ b/src/main/java/com/adyen/model/checkout/ThreeDS2RequestData.java @@ -2,37 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.AcctInfo; -import com.adyen.model.checkout.DeviceRenderOptions; -import com.adyen.model.checkout.Phone; -import com.adyen.model.checkout.SDKEphemPubKey; -import com.adyen.model.checkout.ThreeDSRequestorAuthenticationInfo; -import com.adyen.model.checkout.ThreeDSRequestorPriorAuthenticationInfo; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * ThreeDS2RequestData - */ +/** ThreeDS2RequestData */ @JsonPropertyOrder({ ThreeDS2RequestData.JSON_PROPERTY_ACCT_INFO, ThreeDS2RequestData.JSON_PROPERTY_ACCT_TYPE, @@ -74,16 +63,15 @@ ThreeDS2RequestData.JSON_PROPERTY_WHITE_LIST_STATUS, ThreeDS2RequestData.JSON_PROPERTY_WORK_PHONE }) - public class ThreeDS2RequestData { public static final String JSON_PROPERTY_ACCT_INFO = "acctInfo"; private AcctInfo acctInfo; /** - * Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + * Indicates the type of account. For example, for a multi-account card product. Length: 2 + * characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit */ public enum AcctTypeEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -95,7 +83,7 @@ public enum AcctTypeEnum { private String value; AcctTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -116,7 +104,11 @@ public static AcctTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AcctTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AcctTypeEnum.values())); + LOG.warning( + "AcctTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AcctTypeEnum.values())); return null; } } @@ -131,10 +123,11 @@ public static AcctTypeEnum fromValue(String value) { private String acquirerMerchantID; /** - * Indicates whether the cardholder shipping address and cardholder billing address are the same. Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address does not match billing address. + * Indicates whether the cardholder shipping address and cardholder billing address are the same. + * Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address + * does not match billing address. */ public enum AddrMatchEnum { - Y(String.valueOf("Y")), N(String.valueOf("N")); @@ -144,7 +137,7 @@ public enum AddrMatchEnum { private String value; AddrMatchEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -165,7 +158,11 @@ public static AddrMatchEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AddrMatchEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AddrMatchEnum.values())); + LOG.warning( + "AddrMatchEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AddrMatchEnum.values())); return null; } } @@ -178,10 +175,11 @@ public static AddrMatchEnum fromValue(String value) { private Boolean authenticationOnly; /** - * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` + * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: + * * `noPreference` * `requestNoChallenge` * `requestChallenge` * + * `requestChallengeAsMandate` */ public enum ChallengeIndicatorEnum { - NOPREFERENCE(String.valueOf("noPreference")), REQUESTNOCHALLENGE(String.valueOf("requestNoChallenge")), @@ -195,7 +193,7 @@ public enum ChallengeIndicatorEnum { private String value; ChallengeIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -216,13 +214,18 @@ public static ChallengeIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ChallengeIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChallengeIndicatorEnum.values())); + LOG.warning( + "ChallengeIndicatorEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ChallengeIndicatorEnum.values())); return null; } } public static final String JSON_PROPERTY_CHALLENGE_INDICATOR = "challengeIndicator"; - @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` + // instead. private ChallengeIndicatorEnum challengeIndicator; public static final String JSON_PROPERTY_DEVICE_CHANNEL = "deviceChannel"; @@ -252,7 +255,8 @@ public static ChallengeIndicatorEnum fromValue(String value) { public static final String JSON_PROPERTY_PAY_TOKEN_IND = "payTokenInd"; private Boolean payTokenInd; - public static final String JSON_PROPERTY_PAYMENT_AUTHENTICATION_USE_CASE = "paymentAuthenticationUseCase"; + public static final String JSON_PROPERTY_PAYMENT_AUTHENTICATION_USE_CASE = + "paymentAuthenticationUseCase"; private String paymentAuthenticationUseCase; public static final String JSON_PROPERTY_PURCHASE_INSTAL_DATA = "purchaseInstalData"; @@ -288,17 +292,21 @@ public static ChallengeIndicatorEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_COMP_IND = "threeDSCompInd"; private String threeDSCompInd; - public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_IND = "threeDSRequestorAuthenticationInd"; + public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_IND = + "threeDSRequestorAuthenticationInd"; private String threeDSRequestorAuthenticationInd; - public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_INFO = "threeDSRequestorAuthenticationInfo"; + public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_INFO = + "threeDSRequestorAuthenticationInfo"; private ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo; /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No + * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor + * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional + * risk analysis is already performed) * **06** — Data Only */ public enum ThreeDSRequestorChallengeIndEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -311,12 +319,13 @@ public enum ThreeDSRequestorChallengeIndEnum { _06(String.valueOf("06")); - private static final Logger LOG = Logger.getLogger(ThreeDSRequestorChallengeIndEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(ThreeDSRequestorChallengeIndEnum.class.getName()); private String value; ThreeDSRequestorChallengeIndEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -337,12 +346,17 @@ public static ThreeDSRequestorChallengeIndEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ThreeDSRequestorChallengeIndEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ThreeDSRequestorChallengeIndEnum.values())); + LOG.warning( + "ThreeDSRequestorChallengeIndEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ThreeDSRequestorChallengeIndEnum.values())); return null; } } - public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND = "threeDSRequestorChallengeInd"; + public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND = + "threeDSRequestorChallengeInd"; private ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd; public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_I_D = "threeDSRequestorID"; @@ -351,17 +365,19 @@ public static ThreeDSRequestorChallengeIndEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_NAME = "threeDSRequestorName"; private String threeDSRequestorName; - public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_PRIOR_AUTHENTICATION_INFO = "threeDSRequestorPriorAuthenticationInfo"; + public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_PRIOR_AUTHENTICATION_INFO = + "threeDSRequestorPriorAuthenticationInfo"; private ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo; public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_U_R_L = "threeDSRequestorURL"; private String threeDSRequestorURL; /** - * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * + * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** + * — Quasi-Cash Transaction * **28** — Prepaid Activation and Load */ public enum TransTypeEnum { - _01(String.valueOf("01")), _03(String.valueOf("03")), @@ -377,7 +393,7 @@ public enum TransTypeEnum { private String value; TransTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -398,7 +414,11 @@ public static TransTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TransTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TransTypeEnum.values())); + LOG.warning( + "TransTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TransTypeEnum.values())); return null; } } @@ -406,11 +426,8 @@ public static TransTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANS_TYPE = "transType"; private TransTypeEnum transType; - /** - * Identify the type of the transaction being authenticated. - */ + /** Identify the type of the transaction being authenticated. */ public enum TransactionTypeEnum { - GOODSORSERVICEPURCHASE(String.valueOf("goodsOrServicePurchase")), CHECKACCEPTANCE(String.valueOf("checkAcceptance")), @@ -426,7 +443,7 @@ public enum TransactionTypeEnum { private String value; TransactionTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -447,7 +464,11 @@ public static TransactionTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TransactionTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TransactionTypeEnum.values())); + LOG.warning( + "TransactionTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TransactionTypeEnum.values())); return null; } } @@ -461,13 +482,12 @@ public static TransactionTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_WORK_PHONE = "workPhone"; private Phone workPhone; - public ThreeDS2RequestData() { - } + public ThreeDS2RequestData() {} /** * acctInfo * - * @param acctInfo + * @param acctInfo * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData acctInfo(AcctInfo acctInfo) { @@ -477,7 +497,8 @@ public ThreeDS2RequestData acctInfo(AcctInfo acctInfo) { /** * Get acctInfo - * @return acctInfo + * + * @return acctInfo */ @JsonProperty(JSON_PROPERTY_ACCT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -488,7 +509,7 @@ public AcctInfo getAcctInfo() { /** * acctInfo * - * @param acctInfo + * @param acctInfo */ @JsonProperty(JSON_PROPERTY_ACCT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -497,9 +518,12 @@ public void setAcctInfo(AcctInfo acctInfo) { } /** - * Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + * Indicates the type of account. For example, for a multi-account card product. Length: 2 + * characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit * - * @param acctType Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + * @param acctType Indicates the type of account. For example, for a multi-account card product. + * Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** + * — Debit * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData acctType(AcctTypeEnum acctType) { @@ -508,8 +532,12 @@ public ThreeDS2RequestData acctType(AcctTypeEnum acctType) { } /** - * Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit - * @return acctType Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + * Indicates the type of account. For example, for a multi-account card product. Length: 2 + * characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + * + * @return acctType Indicates the type of account. For example, for a multi-account card product. + * Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** + * — Debit */ @JsonProperty(JSON_PROPERTY_ACCT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -518,9 +546,12 @@ public AcctTypeEnum getAcctType() { } /** - * Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + * Indicates the type of account. For example, for a multi-account card product. Length: 2 + * characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit * - * @param acctType Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + * @param acctType Indicates the type of account. For example, for a multi-account card product. + * Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** + * — Debit */ @JsonProperty(JSON_PROPERTY_ACCT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -529,9 +560,15 @@ public void setAcctType(AcctTypeEnum acctType) { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will + * use in the authorisation. Use 123456 on the Test platform. * - * @param acquirerBIN Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * @param acquirerBIN Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you + * will use in the authorisation. Use 123456 on the Test platform. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData acquirerBIN(String acquirerBIN) { @@ -540,8 +577,15 @@ public ThreeDS2RequestData acquirerBIN(String acquirerBIN) { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. - * @return acquirerBIN Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will + * use in the authorisation. Use 123456 on the Test platform. + * + * @return acquirerBIN Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you + * will use in the authorisation. Use 123456 on the Test platform. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_B_I_N) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -550,9 +594,15 @@ public String getAcquirerBIN() { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will + * use in the authorisation. Use 123456 on the Test platform. * - * @param acquirerBIN Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * @param acquirerBIN Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you + * will use in the authorisation. Use 123456 on the Test platform. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_B_I_N) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -561,9 +611,16 @@ public void setAcquirerBIN(String acquirerBIN) { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string + * should match the value that you will use in the authorisation. Use 123456 on the Test platform. * - * @param acquirerMerchantID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * @param acquirerMerchantID Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string + * should match the value that you will use in the authorisation. Use 123456 on the Test + * platform. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData acquirerMerchantID(String acquirerMerchantID) { @@ -572,8 +629,16 @@ public ThreeDS2RequestData acquirerMerchantID(String acquirerMerchantID) { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. - * @return acquirerMerchantID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string + * should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * + * @return acquirerMerchantID Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string + * should match the value that you will use in the authorisation. Use 123456 on the Test + * platform. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_MERCHANT_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -582,9 +647,16 @@ public String getAcquirerMerchantID() { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string + * should match the value that you will use in the authorisation. Use 123456 on the Test platform. * - * @param acquirerMerchantID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * @param acquirerMerchantID Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string + * should match the value that you will use in the authorisation. Use 123456 on the Test + * platform. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_MERCHANT_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -593,9 +665,13 @@ public void setAcquirerMerchantID(String acquirerMerchantID) { } /** - * Indicates whether the cardholder shipping address and cardholder billing address are the same. Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address does not match billing address. + * Indicates whether the cardholder shipping address and cardholder billing address are the same. + * Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address + * does not match billing address. * - * @param addrMatch Indicates whether the cardholder shipping address and cardholder billing address are the same. Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address does not match billing address. + * @param addrMatch Indicates whether the cardholder shipping address and cardholder billing + * address are the same. Allowed values: * **Y** — Shipping address matches billing address. * + * **N** — Shipping address does not match billing address. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData addrMatch(AddrMatchEnum addrMatch) { @@ -604,8 +680,13 @@ public ThreeDS2RequestData addrMatch(AddrMatchEnum addrMatch) { } /** - * Indicates whether the cardholder shipping address and cardholder billing address are the same. Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address does not match billing address. - * @return addrMatch Indicates whether the cardholder shipping address and cardholder billing address are the same. Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address does not match billing address. + * Indicates whether the cardholder shipping address and cardholder billing address are the same. + * Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address + * does not match billing address. + * + * @return addrMatch Indicates whether the cardholder shipping address and cardholder billing + * address are the same. Allowed values: * **Y** — Shipping address matches billing address. * + * **N** — Shipping address does not match billing address. */ @JsonProperty(JSON_PROPERTY_ADDR_MATCH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -614,9 +695,13 @@ public AddrMatchEnum getAddrMatch() { } /** - * Indicates whether the cardholder shipping address and cardholder billing address are the same. Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address does not match billing address. + * Indicates whether the cardholder shipping address and cardholder billing address are the same. + * Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address + * does not match billing address. * - * @param addrMatch Indicates whether the cardholder shipping address and cardholder billing address are the same. Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address does not match billing address. + * @param addrMatch Indicates whether the cardholder shipping address and cardholder billing + * address are the same. Allowed values: * **Y** — Shipping address matches billing address. * + * **N** — Shipping address does not match billing address. */ @JsonProperty(JSON_PROPERTY_ADDR_MATCH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -625,13 +710,15 @@ public void setAddrMatch(AddrMatchEnum addrMatch) { } /** - * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. + * If set to true, you will only perform the [3D Secure 2 + * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), + * and not the payment authorisation. * - * @param authenticationOnly If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. + * @param authenticationOnly If set to true, you will only perform the [3D Secure 2 + * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), + * and not the payment authorisation. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v50 - * Use `threeDSAuthenticationOnly` instead. + * @deprecated since Adyen Checkout API v50 Use `threeDSAuthenticationOnly` instead. */ @Deprecated // deprecated since Adyen Checkout API v50: Use `threeDSAuthenticationOnly` instead. public ThreeDS2RequestData authenticationOnly(Boolean authenticationOnly) { @@ -640,9 +727,15 @@ public ThreeDS2RequestData authenticationOnly(Boolean authenticationOnly) { } /** - * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. - * @return authenticationOnly If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. - * @deprecated // deprecated since Adyen Checkout API v50: Use `threeDSAuthenticationOnly` instead. + * If set to true, you will only perform the [3D Secure 2 + * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), + * and not the payment authorisation. + * + * @return authenticationOnly If set to true, you will only perform the [3D Secure 2 + * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), + * and not the payment authorisation. + * @deprecated // deprecated since Adyen Checkout API v50: Use `threeDSAuthenticationOnly` + * instead. */ @Deprecated // deprecated since Adyen Checkout API v50: Use `threeDSAuthenticationOnly` instead. @JsonProperty(JSON_PROPERTY_AUTHENTICATION_ONLY) @@ -652,12 +745,14 @@ public Boolean getAuthenticationOnly() { } /** - * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. + * If set to true, you will only perform the [3D Secure 2 + * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), + * and not the payment authorisation. * - * @param authenticationOnly If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. - * - * @deprecated since Adyen Checkout API v50 - * Use `threeDSAuthenticationOnly` instead. + * @param authenticationOnly If set to true, you will only perform the [3D Secure 2 + * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), + * and not the payment authorisation. + * @deprecated since Adyen Checkout API v50 Use `threeDSAuthenticationOnly` instead. */ @Deprecated // deprecated since Adyen Checkout API v50: Use `threeDSAuthenticationOnly` instead. @JsonProperty(JSON_PROPERTY_AUTHENTICATION_ONLY) @@ -667,26 +762,36 @@ public void setAuthenticationOnly(Boolean authenticationOnly) { } /** - * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` + * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: + * * `noPreference` * `requestNoChallenge` * `requestChallenge` * + * `requestChallengeAsMandate` * - * @param challengeIndicator Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` + * @param challengeIndicator Possibility to specify a preference for receiving a challenge from + * the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * + * `requestChallenge` * `requestChallengeAsMandate` * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v68 - * Use `threeDSRequestorChallengeInd` instead. + * @deprecated since Adyen Checkout API v68 Use `threeDSRequestorChallengeInd` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` + // instead. public ThreeDS2RequestData challengeIndicator(ChallengeIndicatorEnum challengeIndicator) { this.challengeIndicator = challengeIndicator; return this; } /** - * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` - * @return challengeIndicator Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` - * @deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` instead. + * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: + * * `noPreference` * `requestNoChallenge` * `requestChallenge` * + * `requestChallengeAsMandate` + * + * @return challengeIndicator Possibility to specify a preference for receiving a challenge from + * the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * + * `requestChallenge` * `requestChallengeAsMandate` + * @deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` + * instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` + // instead. @JsonProperty(JSON_PROPERTY_CHALLENGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ChallengeIndicatorEnum getChallengeIndicator() { @@ -694,14 +799,17 @@ public ChallengeIndicatorEnum getChallengeIndicator() { } /** - * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` - * - * @param challengeIndicator Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` + * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: + * * `noPreference` * `requestNoChallenge` * `requestChallenge` * + * `requestChallengeAsMandate` * - * @deprecated since Adyen Checkout API v68 - * Use `threeDSRequestorChallengeInd` instead. + * @param challengeIndicator Possibility to specify a preference for receiving a challenge from + * the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * + * `requestChallenge` * `requestChallengeAsMandate` + * @deprecated since Adyen Checkout API v68 Use `threeDSRequestorChallengeInd` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` + // instead. @JsonProperty(JSON_PROPERTY_CHALLENGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setChallengeIndicator(ChallengeIndicatorEnum challengeIndicator) { @@ -711,7 +819,8 @@ public void setChallengeIndicator(ChallengeIndicatorEnum challengeIndicator) { /** * The environment of the shopper. Allowed values: * `app` * `browser` * - * @param deviceChannel The environment of the shopper. Allowed values: * `app` * `browser` + * @param deviceChannel The environment of the shopper. Allowed values: * `app` * + * `browser` * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData deviceChannel(String deviceChannel) { @@ -721,7 +830,9 @@ public ThreeDS2RequestData deviceChannel(String deviceChannel) { /** * The environment of the shopper. Allowed values: * `app` * `browser` - * @return deviceChannel The environment of the shopper. Allowed values: * `app` * `browser` + * + * @return deviceChannel The environment of the shopper. Allowed values: * `app` * + * `browser` */ @JsonProperty(JSON_PROPERTY_DEVICE_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -732,7 +843,8 @@ public String getDeviceChannel() { /** * The environment of the shopper. Allowed values: * `app` * `browser` * - * @param deviceChannel The environment of the shopper. Allowed values: * `app` * `browser` + * @param deviceChannel The environment of the shopper. Allowed values: * `app` * + * `browser` */ @JsonProperty(JSON_PROPERTY_DEVICE_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -743,7 +855,7 @@ public void setDeviceChannel(String deviceChannel) { /** * deviceRenderOptions * - * @param deviceRenderOptions + * @param deviceRenderOptions * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData deviceRenderOptions(DeviceRenderOptions deviceRenderOptions) { @@ -753,7 +865,8 @@ public ThreeDS2RequestData deviceRenderOptions(DeviceRenderOptions deviceRenderO /** * Get deviceRenderOptions - * @return deviceRenderOptions + * + * @return deviceRenderOptions */ @JsonProperty(JSON_PROPERTY_DEVICE_RENDER_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -764,7 +877,7 @@ public DeviceRenderOptions getDeviceRenderOptions() { /** * deviceRenderOptions * - * @param deviceRenderOptions + * @param deviceRenderOptions */ @JsonProperty(JSON_PROPERTY_DEVICE_RENDER_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -775,7 +888,7 @@ public void setDeviceRenderOptions(DeviceRenderOptions deviceRenderOptions) { /** * homePhone * - * @param homePhone + * @param homePhone * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData homePhone(Phone homePhone) { @@ -785,7 +898,8 @@ public ThreeDS2RequestData homePhone(Phone homePhone) { /** * Get homePhone - * @return homePhone + * + * @return homePhone */ @JsonProperty(JSON_PROPERTY_HOME_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -796,7 +910,7 @@ public Phone getHomePhone() { /** * homePhone * - * @param homePhone + * @param homePhone */ @JsonProperty(JSON_PROPERTY_HOME_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -805,9 +919,17 @@ public void setHomePhone(Phone homePhone) { } /** - * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. + * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, + * mostly [authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The `mcc` is a four-digit code with which the previously given + * `acquirerMerchantID` is registered at the scheme. * - * @param mcc Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. + * @param mcc Required for merchants that have been enrolled for 3D Secure 2 by another party than + * Adyen, mostly [authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The `mcc` is a four-digit code with which the previously given + * `acquirerMerchantID` is registered at the scheme. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData mcc(String mcc) { @@ -816,8 +938,17 @@ public ThreeDS2RequestData mcc(String mcc) { } /** - * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. - * @return mcc Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. + * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, + * mostly [authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The `mcc` is a four-digit code with which the previously given + * `acquirerMerchantID` is registered at the scheme. + * + * @return mcc Required for merchants that have been enrolled for 3D Secure 2 by another party + * than Adyen, mostly [authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The `mcc` is a four-digit code with which the previously given + * `acquirerMerchantID` is registered at the scheme. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -826,9 +957,17 @@ public String getMcc() { } /** - * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. + * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, + * mostly [authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The `mcc` is a four-digit code with which the previously given + * `acquirerMerchantID` is registered at the scheme. * - * @param mcc Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. + * @param mcc Required for merchants that have been enrolled for 3D Secure 2 by another party than + * Adyen, mostly [authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The `mcc` is a four-digit code with which the previously given + * `acquirerMerchantID` is registered at the scheme. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -837,9 +976,23 @@ public void setMcc(String mcc) { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. - * - * @param merchantName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchant name that the issuer presents to the shopper if they get a challenge. We recommend + * to use the same value that you will use in the authorization. Maximum length is 40 characters. + * > Optional for a [full 3D Secure 2 + * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use + * this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name + * already configured on your account. + * + * @param merchantName Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchant name that the issuer presents to the shopper if they get a challenge. We + * recommend to use the same value that you will use in the authorization. Maximum length is + * 40 characters. > Optional for a [full 3D Secure 2 + * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). + * Use this field if you are enrolled for 3D Secure 2 with us and want to override the + * merchant name already configured on your account. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData merchantName(String merchantName) { @@ -848,8 +1001,23 @@ public ThreeDS2RequestData merchantName(String merchantName) { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. - * @return merchantName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchant name that the issuer presents to the shopper if they get a challenge. We recommend + * to use the same value that you will use in the authorization. Maximum length is 40 characters. + * > Optional for a [full 3D Secure 2 + * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use + * this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name + * already configured on your account. + * + * @return merchantName Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchant name that the issuer presents to the shopper if they get a challenge. We + * recommend to use the same value that you will use in the authorization. Maximum length is + * 40 characters. > Optional for a [full 3D Secure 2 + * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). + * Use this field if you are enrolled for 3D Secure 2 with us and want to override the + * merchant name already configured on your account. */ @JsonProperty(JSON_PROPERTY_MERCHANT_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -858,9 +1026,23 @@ public String getMerchantName() { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchant name that the issuer presents to the shopper if they get a challenge. We recommend + * to use the same value that you will use in the authorization. Maximum length is 40 characters. + * > Optional for a [full 3D Secure 2 + * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use + * this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name + * already configured on your account. * - * @param merchantName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. + * @param merchantName Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchant name that the issuer presents to the shopper if they get a challenge. We + * recommend to use the same value that you will use in the authorization. Maximum length is + * 40 characters. > Optional for a [full 3D Secure 2 + * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). + * Use this field if you are enrolled for 3D Secure 2 with us and want to override the + * merchant name already configured on your account. */ @JsonProperty(JSON_PROPERTY_MERCHANT_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -871,7 +1053,8 @@ public void setMerchantName(String merchantName) { /** * The `messageVersion` value indicating the 3D Secure 2 protocol version. * - * @param messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol version. + * @param messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol + * version. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData messageVersion(String messageVersion) { @@ -881,7 +1064,9 @@ public ThreeDS2RequestData messageVersion(String messageVersion) { /** * The `messageVersion` value indicating the 3D Secure 2 protocol version. - * @return messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol version. + * + * @return messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol + * version. */ @JsonProperty(JSON_PROPERTY_MESSAGE_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -892,7 +1077,8 @@ public String getMessageVersion() { /** * The `messageVersion` value indicating the 3D Secure 2 protocol version. * - * @param messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol version. + * @param messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol + * version. */ @JsonProperty(JSON_PROPERTY_MESSAGE_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -903,7 +1089,7 @@ public void setMessageVersion(String messageVersion) { /** * mobilePhone * - * @param mobilePhone + * @param mobilePhone * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData mobilePhone(Phone mobilePhone) { @@ -913,7 +1099,8 @@ public ThreeDS2RequestData mobilePhone(Phone mobilePhone) { /** * Get mobilePhone - * @return mobilePhone + * + * @return mobilePhone */ @JsonProperty(JSON_PROPERTY_MOBILE_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -924,7 +1111,7 @@ public Phone getMobilePhone() { /** * mobilePhone * - * @param mobilePhone + * @param mobilePhone */ @JsonProperty(JSON_PROPERTY_MOBILE_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -933,9 +1120,13 @@ public void setMobilePhone(Phone mobilePhone) { } /** - * URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. + * URL to where the issuer should send the `CRes`. Required if you are not using + * components for `channel` **Web** or if you are using classic integration + * `deviceChannel` **browser**. * - * @param notificationURL URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. + * @param notificationURL URL to where the issuer should send the `CRes`. Required if + * you are not using components for `channel` **Web** or if you are using classic + * integration `deviceChannel` **browser**. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData notificationURL(String notificationURL) { @@ -944,8 +1135,13 @@ public ThreeDS2RequestData notificationURL(String notificationURL) { } /** - * URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. - * @return notificationURL URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. + * URL to where the issuer should send the `CRes`. Required if you are not using + * components for `channel` **Web** or if you are using classic integration + * `deviceChannel` **browser**. + * + * @return notificationURL URL to where the issuer should send the `CRes`. Required if + * you are not using components for `channel` **Web** or if you are using classic + * integration `deviceChannel` **browser**. */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -954,9 +1150,13 @@ public String getNotificationURL() { } /** - * URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. + * URL to where the issuer should send the `CRes`. Required if you are not using + * components for `channel` **Web** or if you are using classic integration + * `deviceChannel` **browser**. * - * @param notificationURL URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. + * @param notificationURL URL to where the issuer should send the `CRes`. Required if + * you are not using components for `channel` **Web** or if you are using classic + * integration `deviceChannel` **browser**. */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -965,9 +1165,11 @@ public void setNotificationURL(String notificationURL) { } /** - * Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. + * Value **true** indicates that the transaction was de-tokenised prior to being received by the + * ACS. * - * @param payTokenInd Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. + * @param payTokenInd Value **true** indicates that the transaction was de-tokenised prior to + * being received by the ACS. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData payTokenInd(Boolean payTokenInd) { @@ -976,8 +1178,11 @@ public ThreeDS2RequestData payTokenInd(Boolean payTokenInd) { } /** - * Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. - * @return payTokenInd Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. + * Value **true** indicates that the transaction was de-tokenised prior to being received by the + * ACS. + * + * @return payTokenInd Value **true** indicates that the transaction was de-tokenised prior to + * being received by the ACS. */ @JsonProperty(JSON_PROPERTY_PAY_TOKEN_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -986,9 +1191,11 @@ public Boolean getPayTokenInd() { } /** - * Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. + * Value **true** indicates that the transaction was de-tokenised prior to being received by the + * ACS. * - * @param payTokenInd Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. + * @param payTokenInd Value **true** indicates that the transaction was de-tokenised prior to + * being received by the ACS. */ @JsonProperty(JSON_PROPERTY_PAY_TOKEN_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -999,7 +1206,8 @@ public void setPayTokenInd(Boolean payTokenInd) { /** * Indicates the type of payment for which an authentication is requested (message extension) * - * @param paymentAuthenticationUseCase Indicates the type of payment for which an authentication is requested (message extension) + * @param paymentAuthenticationUseCase Indicates the type of payment for which an authentication + * is requested (message extension) * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData paymentAuthenticationUseCase(String paymentAuthenticationUseCase) { @@ -1009,7 +1217,9 @@ public ThreeDS2RequestData paymentAuthenticationUseCase(String paymentAuthentica /** * Indicates the type of payment for which an authentication is requested (message extension) - * @return paymentAuthenticationUseCase Indicates the type of payment for which an authentication is requested (message extension) + * + * @return paymentAuthenticationUseCase Indicates the type of payment for which an authentication + * is requested (message extension) */ @JsonProperty(JSON_PROPERTY_PAYMENT_AUTHENTICATION_USE_CASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1020,7 +1230,8 @@ public String getPaymentAuthenticationUseCase() { /** * Indicates the type of payment for which an authentication is requested (message extension) * - * @param paymentAuthenticationUseCase Indicates the type of payment for which an authentication is requested (message extension) + * @param paymentAuthenticationUseCase Indicates the type of payment for which an authentication + * is requested (message extension) */ @JsonProperty(JSON_PROPERTY_PAYMENT_AUTHENTICATION_USE_CASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1029,9 +1240,11 @@ public void setPaymentAuthenticationUseCase(String paymentAuthenticationUseCase) } /** - * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. + * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 + * characters. * - * @param purchaseInstalData Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. + * @param purchaseInstalData Indicates the maximum number of authorisations permitted for + * instalment payments. Length: 1–3 characters. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData purchaseInstalData(String purchaseInstalData) { @@ -1040,8 +1253,11 @@ public ThreeDS2RequestData purchaseInstalData(String purchaseInstalData) { } /** - * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. - * @return purchaseInstalData Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. + * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 + * characters. + * + * @return purchaseInstalData Indicates the maximum number of authorisations permitted for + * instalment payments. Length: 1–3 characters. */ @JsonProperty(JSON_PROPERTY_PURCHASE_INSTAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1050,9 +1266,11 @@ public String getPurchaseInstalData() { } /** - * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. + * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 + * characters. * - * @param purchaseInstalData Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. + * @param purchaseInstalData Indicates the maximum number of authorisations permitted for + * instalment payments. Length: 1–3 characters. */ @JsonProperty(JSON_PROPERTY_PURCHASE_INSTAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1063,7 +1281,8 @@ public void setPurchaseInstalData(String purchaseInstalData) { /** * Date after which no further authorisations shall be performed. Format: YYYYMMDD * - * @param recurringExpiry Date after which no further authorisations shall be performed. Format: YYYYMMDD + * @param recurringExpiry Date after which no further authorisations shall be performed. Format: + * YYYYMMDD * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData recurringExpiry(String recurringExpiry) { @@ -1073,7 +1292,9 @@ public ThreeDS2RequestData recurringExpiry(String recurringExpiry) { /** * Date after which no further authorisations shall be performed. Format: YYYYMMDD - * @return recurringExpiry Date after which no further authorisations shall be performed. Format: YYYYMMDD + * + * @return recurringExpiry Date after which no further authorisations shall be performed. Format: + * YYYYMMDD */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1084,7 +1305,8 @@ public String getRecurringExpiry() { /** * Date after which no further authorisations shall be performed. Format: YYYYMMDD * - * @param recurringExpiry Date after which no further authorisations shall be performed. Format: YYYYMMDD + * @param recurringExpiry Date after which no further authorisations shall be performed. Format: + * YYYYMMDD */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1095,7 +1317,8 @@ public void setRecurringExpiry(String recurringExpiry) { /** * Indicates the minimum number of days between authorisations. Maximum length: 4 characters. * - * @param recurringFrequency Indicates the minimum number of days between authorisations. Maximum length: 4 characters. + * @param recurringFrequency Indicates the minimum number of days between authorisations. Maximum + * length: 4 characters. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData recurringFrequency(String recurringFrequency) { @@ -1105,7 +1328,9 @@ public ThreeDS2RequestData recurringFrequency(String recurringFrequency) { /** * Indicates the minimum number of days between authorisations. Maximum length: 4 characters. - * @return recurringFrequency Indicates the minimum number of days between authorisations. Maximum length: 4 characters. + * + * @return recurringFrequency Indicates the minimum number of days between authorisations. Maximum + * length: 4 characters. */ @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1116,7 +1341,8 @@ public String getRecurringFrequency() { /** * Indicates the minimum number of days between authorisations. Maximum length: 4 characters. * - * @param recurringFrequency Indicates the minimum number of days between authorisations. Maximum length: 4 characters. + * @param recurringFrequency Indicates the minimum number of days between authorisations. Maximum + * length: 4 characters. */ @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1125,9 +1351,11 @@ public void setRecurringFrequency(String recurringFrequency) { } /** - * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for + * `deviceChannel` set to **app**. * - * @param sdkAppID The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + * @param sdkAppID The `sdkAppID` value as received from the 3D Secure 2 SDK. Required + * for `deviceChannel` set to **app**. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData sdkAppID(String sdkAppID) { @@ -1136,8 +1364,11 @@ public ThreeDS2RequestData sdkAppID(String sdkAppID) { } /** - * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. - * @return sdkAppID The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for + * `deviceChannel` set to **app**. + * + * @return sdkAppID The `sdkAppID` value as received from the 3D Secure 2 SDK. Required + * for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_APP_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1146,9 +1377,11 @@ public String getSdkAppID() { } /** - * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for + * `deviceChannel` set to **app**. * - * @param sdkAppID The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + * @param sdkAppID The `sdkAppID` value as received from the 3D Secure 2 SDK. Required + * for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_APP_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1157,9 +1390,11 @@ public void setSdkAppID(String sdkAppID) { } /** - * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for + * `deviceChannel` set to **app**. * - * @param sdkEncData The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + * @param sdkEncData The `sdkEncData` value as received from the 3D Secure 2 SDK. + * Required for `deviceChannel` set to **app**. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData sdkEncData(String sdkEncData) { @@ -1168,8 +1403,11 @@ public ThreeDS2RequestData sdkEncData(String sdkEncData) { } /** - * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. - * @return sdkEncData The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for + * `deviceChannel` set to **app**. + * + * @return sdkEncData The `sdkEncData` value as received from the 3D Secure 2 SDK. + * Required for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_ENC_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1178,9 +1416,11 @@ public String getSdkEncData() { } /** - * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for + * `deviceChannel` set to **app**. * - * @param sdkEncData The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + * @param sdkEncData The `sdkEncData` value as received from the 3D Secure 2 SDK. + * Required for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_ENC_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1191,7 +1431,7 @@ public void setSdkEncData(String sdkEncData) { /** * sdkEphemPubKey * - * @param sdkEphemPubKey + * @param sdkEphemPubKey * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData sdkEphemPubKey(SDKEphemPubKey sdkEphemPubKey) { @@ -1201,7 +1441,8 @@ public ThreeDS2RequestData sdkEphemPubKey(SDKEphemPubKey sdkEphemPubKey) { /** * Get sdkEphemPubKey - * @return sdkEphemPubKey + * + * @return sdkEphemPubKey */ @JsonProperty(JSON_PROPERTY_SDK_EPHEM_PUB_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1212,7 +1453,7 @@ public SDKEphemPubKey getSdkEphemPubKey() { /** * sdkEphemPubKey * - * @param sdkEphemPubKey + * @param sdkEphemPubKey */ @JsonProperty(JSON_PROPERTY_SDK_EPHEM_PUB_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1221,9 +1462,12 @@ public void setSdkEphemPubKey(SDKEphemPubKey sdkEphemPubKey) { } /** - * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. + * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and + * only for `deviceChannel` set to **app**. Defaults to **60** minutes. * - * @param sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. + * @param sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication + * process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** + * minutes. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData sdkMaxTimeout(Integer sdkMaxTimeout) { @@ -1232,8 +1476,12 @@ public ThreeDS2RequestData sdkMaxTimeout(Integer sdkMaxTimeout) { } /** - * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. - * @return sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. + * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and + * only for `deviceChannel` set to **app**. Defaults to **60** minutes. + * + * @return sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication + * process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** + * minutes. */ @JsonProperty(JSON_PROPERTY_SDK_MAX_TIMEOUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1242,9 +1490,12 @@ public Integer getSdkMaxTimeout() { } /** - * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. + * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and + * only for `deviceChannel` set to **app**. Defaults to **60** minutes. * - * @param sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. + * @param sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication + * process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** + * minutes. */ @JsonProperty(JSON_PROPERTY_SDK_MAX_TIMEOUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1253,9 +1504,11 @@ public void setSdkMaxTimeout(Integer sdkMaxTimeout) { } /** - * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for + * `deviceChannel` set to **app**. * - * @param sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + * @param sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D + * Secure 2 SDK. Only for `deviceChannel` set to **app**. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData sdkReferenceNumber(String sdkReferenceNumber) { @@ -1264,8 +1517,11 @@ public ThreeDS2RequestData sdkReferenceNumber(String sdkReferenceNumber) { } /** - * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. - * @return sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for + * `deviceChannel` set to **app**. + * + * @return sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D + * Secure 2 SDK. Only for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1274,9 +1530,11 @@ public String getSdkReferenceNumber() { } /** - * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for + * `deviceChannel` set to **app**. * - * @param sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + * @param sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D + * Secure 2 SDK. Only for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1285,9 +1543,11 @@ public void setSdkReferenceNumber(String sdkReferenceNumber) { } /** - * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for + * `deviceChannel` set to **app**. * - * @param sdkTransID The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + * @param sdkTransID The `sdkTransID` value as received from the 3D Secure 2 SDK. Only + * for `deviceChannel` set to **app**. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData sdkTransID(String sdkTransID) { @@ -1296,8 +1556,11 @@ public ThreeDS2RequestData sdkTransID(String sdkTransID) { } /** - * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. - * @return sdkTransID The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for + * `deviceChannel` set to **app**. + * + * @return sdkTransID The `sdkTransID` value as received from the 3D Secure 2 SDK. Only + * for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1306,9 +1569,11 @@ public String getSdkTransID() { } /** - * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for + * `deviceChannel` set to **app**. * - * @param sdkTransID The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + * @param sdkTransID The `sdkTransID` value as received from the 3D Secure 2 SDK. Only + * for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1317,9 +1582,10 @@ public void setSdkTransID(String sdkTransID) { } /** - * Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. + * Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. * - * @param sdkVersion Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. + * @param sdkVersion Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set + * to **app**. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData sdkVersion(String sdkVersion) { @@ -1328,8 +1594,10 @@ public ThreeDS2RequestData sdkVersion(String sdkVersion) { } /** - * Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. - * @return sdkVersion Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. + * Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. + * + * @return sdkVersion Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` + * set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1338,9 +1606,10 @@ public String getSdkVersion() { } /** - * Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. + * Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. * - * @param sdkVersion Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. + * @param sdkVersion Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set + * to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1361,6 +1630,7 @@ public ThreeDS2RequestData threeDSCompInd(String threeDSCompInd) { /** * Completion indicator for the device fingerprinting. + * * @return threeDSCompInd Completion indicator for the device fingerprinting. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_COMP_IND) @@ -1386,13 +1656,15 @@ public void setThreeDSCompInd(String threeDSCompInd) { * @param threeDSRequestorAuthenticationInd Indicates the type of Authentication request. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ - public ThreeDS2RequestData threeDSRequestorAuthenticationInd(String threeDSRequestorAuthenticationInd) { + public ThreeDS2RequestData threeDSRequestorAuthenticationInd( + String threeDSRequestorAuthenticationInd) { this.threeDSRequestorAuthenticationInd = threeDSRequestorAuthenticationInd; return this; } /** * Indicates the type of Authentication request. + * * @return threeDSRequestorAuthenticationInd Indicates the type of Authentication request. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_IND) @@ -1415,17 +1687,19 @@ public void setThreeDSRequestorAuthenticationInd(String threeDSRequestorAuthenti /** * threeDSRequestorAuthenticationInfo * - * @param threeDSRequestorAuthenticationInfo + * @param threeDSRequestorAuthenticationInfo * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ - public ThreeDS2RequestData threeDSRequestorAuthenticationInfo(ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo) { + public ThreeDS2RequestData threeDSRequestorAuthenticationInfo( + ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo) { this.threeDSRequestorAuthenticationInfo = threeDSRequestorAuthenticationInfo; return this; } /** * Get threeDSRequestorAuthenticationInfo - * @return threeDSRequestorAuthenticationInfo + * + * @return threeDSRequestorAuthenticationInfo */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1436,28 +1710,45 @@ public ThreeDSRequestorAuthenticationInfo getThreeDSRequestorAuthenticationInfo( /** * threeDSRequestorAuthenticationInfo * - * @param threeDSRequestorAuthenticationInfo + * @param threeDSRequestorAuthenticationInfo */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setThreeDSRequestorAuthenticationInfo(ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo) { + public void setThreeDSRequestorAuthenticationInfo( + ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo) { this.threeDSRequestorAuthenticationInfo = threeDSRequestorAuthenticationInfo; } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No + * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor + * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional + * risk analysis is already performed) * **06** — Data Only * - * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this + * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * + * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested + * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * + * **06** — Data Only * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ - public ThreeDS2RequestData threeDSRequestorChallengeInd(ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { + public ThreeDS2RequestData threeDSRequestorChallengeInd( + ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { this.threeDSRequestorChallengeInd = threeDSRequestorChallengeInd; return this; } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only - * @return threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No + * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor + * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional + * risk analysis is already performed) * **06** — Data Only + * + * @return threeDSRequestorChallengeInd Indicates whether a challenge is requested for this + * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * + * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested + * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * + * **06** — Data Only */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1466,20 +1757,34 @@ public ThreeDSRequestorChallengeIndEnum getThreeDSRequestorChallengeInd() { } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No + * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor + * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional + * risk analysis is already performed) * **06** — Data Only * - * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this + * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * + * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested + * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * + * **06** — Data Only */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setThreeDSRequestorChallengeInd(ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { + public void setThreeDSRequestorChallengeInd( + ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { this.threeDSRequestorChallengeInd = threeDSRequestorChallengeInd; } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol + * for 3D Secure 2. * - * @param threeDSRequestorID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. + * @param threeDSRequestorID Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you + * enrol for 3D Secure 2. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData threeDSRequestorID(String threeDSRequestorID) { @@ -1488,8 +1793,15 @@ public ThreeDS2RequestData threeDSRequestorID(String threeDSRequestorID) { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. - * @return threeDSRequestorID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol + * for 3D Secure 2. + * + * @return threeDSRequestorID Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you + * enrol for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1498,9 +1810,15 @@ public String getThreeDSRequestorID() { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol + * for 3D Secure 2. * - * @param threeDSRequestorID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. + * @param threeDSRequestorID Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you + * enrol for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1509,9 +1827,15 @@ public void setThreeDSRequestorID(String threeDSRequestorID) { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for + * 3D Secure 2. * - * @param threeDSRequestorName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. + * @param threeDSRequestorName Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol + * for 3D Secure 2. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData threeDSRequestorName(String threeDSRequestorName) { @@ -1520,8 +1844,15 @@ public ThreeDS2RequestData threeDSRequestorName(String threeDSRequestorName) { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. - * @return threeDSRequestorName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for + * 3D Secure 2. + * + * @return threeDSRequestorName Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol + * for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1530,9 +1861,15 @@ public String getThreeDSRequestorName() { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for + * 3D Secure 2. * - * @param threeDSRequestorName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. + * @param threeDSRequestorName Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol + * for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1543,17 +1880,19 @@ public void setThreeDSRequestorName(String threeDSRequestorName) { /** * threeDSRequestorPriorAuthenticationInfo * - * @param threeDSRequestorPriorAuthenticationInfo + * @param threeDSRequestorPriorAuthenticationInfo * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ - public ThreeDS2RequestData threeDSRequestorPriorAuthenticationInfo(ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo) { + public ThreeDS2RequestData threeDSRequestorPriorAuthenticationInfo( + ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo) { this.threeDSRequestorPriorAuthenticationInfo = threeDSRequestorPriorAuthenticationInfo; return this; } /** * Get threeDSRequestorPriorAuthenticationInfo - * @return threeDSRequestorPriorAuthenticationInfo + * + * @return threeDSRequestorPriorAuthenticationInfo */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_PRIOR_AUTHENTICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1564,18 +1903,21 @@ public ThreeDSRequestorPriorAuthenticationInfo getThreeDSRequestorPriorAuthentic /** * threeDSRequestorPriorAuthenticationInfo * - * @param threeDSRequestorPriorAuthenticationInfo + * @param threeDSRequestorPriorAuthenticationInfo */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_PRIOR_AUTHENTICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setThreeDSRequestorPriorAuthenticationInfo(ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo) { + public void setThreeDSRequestorPriorAuthenticationInfo( + ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo) { this.threeDSRequestorPriorAuthenticationInfo = threeDSRequestorPriorAuthenticationInfo; } /** - * URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. + * URL of the (customer service) website that will be shown to the shopper in case of technical + * errors during the 3D Secure 2 process. * - * @param threeDSRequestorURL URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. + * @param threeDSRequestorURL URL of the (customer service) website that will be shown to the + * shopper in case of technical errors during the 3D Secure 2 process. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData threeDSRequestorURL(String threeDSRequestorURL) { @@ -1584,8 +1926,11 @@ public ThreeDS2RequestData threeDSRequestorURL(String threeDSRequestorURL) { } /** - * URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. - * @return threeDSRequestorURL URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. + * URL of the (customer service) website that will be shown to the shopper in case of technical + * errors during the 3D Secure 2 process. + * + * @return threeDSRequestorURL URL of the (customer service) website that will be shown to the + * shopper in case of technical errors during the 3D Secure 2 process. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1594,9 +1939,11 @@ public String getThreeDSRequestorURL() { } /** - * URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. + * URL of the (customer service) website that will be shown to the shopper in case of technical + * errors during the 3D Secure 2 process. * - * @param threeDSRequestorURL URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. + * @param threeDSRequestorURL URL of the (customer service) website that will be shown to the + * shopper in case of technical errors during the 3D Secure 2 process. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1605,9 +1952,13 @@ public void setThreeDSRequestorURL(String threeDSRequestorURL) { } /** - * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * + * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** + * — Quasi-Cash Transaction * **28** — Prepaid Activation and Load * - * @param transType Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * @param transType Identifies the type of transaction being authenticated. Length: 2 characters. + * Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — + * Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData transType(TransTypeEnum transType) { @@ -1616,8 +1967,13 @@ public ThreeDS2RequestData transType(TransTypeEnum transType) { } /** - * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load - * @return transType Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * + * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** + * — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * + * @return transType Identifies the type of transaction being authenticated. Length: 2 characters. + * Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — + * Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load */ @JsonProperty(JSON_PROPERTY_TRANS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1626,9 +1982,13 @@ public TransTypeEnum getTransType() { } /** - * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * + * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** + * — Quasi-Cash Transaction * **28** — Prepaid Activation and Load * - * @param transType Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * @param transType Identifies the type of transaction being authenticated. Length: 2 characters. + * Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — + * Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load */ @JsonProperty(JSON_PROPERTY_TRANS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1649,6 +2009,7 @@ public ThreeDS2RequestData transactionType(TransactionTypeEnum transactionType) /** * Identify the type of the transaction being authenticated. + * * @return transactionType Identify the type of the transaction being authenticated. */ @JsonProperty(JSON_PROPERTY_TRANSACTION_TYPE) @@ -1669,9 +2030,11 @@ public void setTransactionType(TransactionTypeEnum transactionType) { } /** - * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. + * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only + * applicable for 3D Secure 2 protocol version 2.2.0. * - * @param whiteListStatus The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. + * @param whiteListStatus The `whiteListStatus` value returned from a previous 3D Secure + * 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData whiteListStatus(String whiteListStatus) { @@ -1680,8 +2043,11 @@ public ThreeDS2RequestData whiteListStatus(String whiteListStatus) { } /** - * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. - * @return whiteListStatus The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. + * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only + * applicable for 3D Secure 2 protocol version 2.2.0. + * + * @return whiteListStatus The `whiteListStatus` value returned from a previous 3D + * Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. */ @JsonProperty(JSON_PROPERTY_WHITE_LIST_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1690,9 +2056,11 @@ public String getWhiteListStatus() { } /** - * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. + * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only + * applicable for 3D Secure 2 protocol version 2.2.0. * - * @param whiteListStatus The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. + * @param whiteListStatus The `whiteListStatus` value returned from a previous 3D Secure + * 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. */ @JsonProperty(JSON_PROPERTY_WHITE_LIST_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1703,7 +2071,7 @@ public void setWhiteListStatus(String whiteListStatus) { /** * workPhone * - * @param workPhone + * @param workPhone * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData workPhone(Phone workPhone) { @@ -1713,7 +2081,8 @@ public ThreeDS2RequestData workPhone(Phone workPhone) { /** * Get workPhone - * @return workPhone + * + * @return workPhone */ @JsonProperty(JSON_PROPERTY_WORK_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1724,7 +2093,7 @@ public Phone getWorkPhone() { /** * workPhone * - * @param workPhone + * @param workPhone */ @JsonProperty(JSON_PROPERTY_WORK_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1732,9 +2101,7 @@ public void setWorkPhone(Phone workPhone) { this.workPhone = workPhone; } - /** - * Return true if this ThreeDS2RequestData object is equal to o. - */ + /** Return true if this ThreeDS2RequestData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -1744,50 +2111,97 @@ public boolean equals(Object o) { return false; } ThreeDS2RequestData threeDS2RequestData = (ThreeDS2RequestData) o; - return Objects.equals(this.acctInfo, threeDS2RequestData.acctInfo) && - Objects.equals(this.acctType, threeDS2RequestData.acctType) && - Objects.equals(this.acquirerBIN, threeDS2RequestData.acquirerBIN) && - Objects.equals(this.acquirerMerchantID, threeDS2RequestData.acquirerMerchantID) && - Objects.equals(this.addrMatch, threeDS2RequestData.addrMatch) && - Objects.equals(this.authenticationOnly, threeDS2RequestData.authenticationOnly) && - Objects.equals(this.challengeIndicator, threeDS2RequestData.challengeIndicator) && - Objects.equals(this.deviceChannel, threeDS2RequestData.deviceChannel) && - Objects.equals(this.deviceRenderOptions, threeDS2RequestData.deviceRenderOptions) && - Objects.equals(this.homePhone, threeDS2RequestData.homePhone) && - Objects.equals(this.mcc, threeDS2RequestData.mcc) && - Objects.equals(this.merchantName, threeDS2RequestData.merchantName) && - Objects.equals(this.messageVersion, threeDS2RequestData.messageVersion) && - Objects.equals(this.mobilePhone, threeDS2RequestData.mobilePhone) && - Objects.equals(this.notificationURL, threeDS2RequestData.notificationURL) && - Objects.equals(this.payTokenInd, threeDS2RequestData.payTokenInd) && - Objects.equals(this.paymentAuthenticationUseCase, threeDS2RequestData.paymentAuthenticationUseCase) && - Objects.equals(this.purchaseInstalData, threeDS2RequestData.purchaseInstalData) && - Objects.equals(this.recurringExpiry, threeDS2RequestData.recurringExpiry) && - Objects.equals(this.recurringFrequency, threeDS2RequestData.recurringFrequency) && - Objects.equals(this.sdkAppID, threeDS2RequestData.sdkAppID) && - Objects.equals(this.sdkEncData, threeDS2RequestData.sdkEncData) && - Objects.equals(this.sdkEphemPubKey, threeDS2RequestData.sdkEphemPubKey) && - Objects.equals(this.sdkMaxTimeout, threeDS2RequestData.sdkMaxTimeout) && - Objects.equals(this.sdkReferenceNumber, threeDS2RequestData.sdkReferenceNumber) && - Objects.equals(this.sdkTransID, threeDS2RequestData.sdkTransID) && - Objects.equals(this.sdkVersion, threeDS2RequestData.sdkVersion) && - Objects.equals(this.threeDSCompInd, threeDS2RequestData.threeDSCompInd) && - Objects.equals(this.threeDSRequestorAuthenticationInd, threeDS2RequestData.threeDSRequestorAuthenticationInd) && - Objects.equals(this.threeDSRequestorAuthenticationInfo, threeDS2RequestData.threeDSRequestorAuthenticationInfo) && - Objects.equals(this.threeDSRequestorChallengeInd, threeDS2RequestData.threeDSRequestorChallengeInd) && - Objects.equals(this.threeDSRequestorID, threeDS2RequestData.threeDSRequestorID) && - Objects.equals(this.threeDSRequestorName, threeDS2RequestData.threeDSRequestorName) && - Objects.equals(this.threeDSRequestorPriorAuthenticationInfo, threeDS2RequestData.threeDSRequestorPriorAuthenticationInfo) && - Objects.equals(this.threeDSRequestorURL, threeDS2RequestData.threeDSRequestorURL) && - Objects.equals(this.transType, threeDS2RequestData.transType) && - Objects.equals(this.transactionType, threeDS2RequestData.transactionType) && - Objects.equals(this.whiteListStatus, threeDS2RequestData.whiteListStatus) && - Objects.equals(this.workPhone, threeDS2RequestData.workPhone); + return Objects.equals(this.acctInfo, threeDS2RequestData.acctInfo) + && Objects.equals(this.acctType, threeDS2RequestData.acctType) + && Objects.equals(this.acquirerBIN, threeDS2RequestData.acquirerBIN) + && Objects.equals(this.acquirerMerchantID, threeDS2RequestData.acquirerMerchantID) + && Objects.equals(this.addrMatch, threeDS2RequestData.addrMatch) + && Objects.equals(this.authenticationOnly, threeDS2RequestData.authenticationOnly) + && Objects.equals(this.challengeIndicator, threeDS2RequestData.challengeIndicator) + && Objects.equals(this.deviceChannel, threeDS2RequestData.deviceChannel) + && Objects.equals(this.deviceRenderOptions, threeDS2RequestData.deviceRenderOptions) + && Objects.equals(this.homePhone, threeDS2RequestData.homePhone) + && Objects.equals(this.mcc, threeDS2RequestData.mcc) + && Objects.equals(this.merchantName, threeDS2RequestData.merchantName) + && Objects.equals(this.messageVersion, threeDS2RequestData.messageVersion) + && Objects.equals(this.mobilePhone, threeDS2RequestData.mobilePhone) + && Objects.equals(this.notificationURL, threeDS2RequestData.notificationURL) + && Objects.equals(this.payTokenInd, threeDS2RequestData.payTokenInd) + && Objects.equals( + this.paymentAuthenticationUseCase, threeDS2RequestData.paymentAuthenticationUseCase) + && Objects.equals(this.purchaseInstalData, threeDS2RequestData.purchaseInstalData) + && Objects.equals(this.recurringExpiry, threeDS2RequestData.recurringExpiry) + && Objects.equals(this.recurringFrequency, threeDS2RequestData.recurringFrequency) + && Objects.equals(this.sdkAppID, threeDS2RequestData.sdkAppID) + && Objects.equals(this.sdkEncData, threeDS2RequestData.sdkEncData) + && Objects.equals(this.sdkEphemPubKey, threeDS2RequestData.sdkEphemPubKey) + && Objects.equals(this.sdkMaxTimeout, threeDS2RequestData.sdkMaxTimeout) + && Objects.equals(this.sdkReferenceNumber, threeDS2RequestData.sdkReferenceNumber) + && Objects.equals(this.sdkTransID, threeDS2RequestData.sdkTransID) + && Objects.equals(this.sdkVersion, threeDS2RequestData.sdkVersion) + && Objects.equals(this.threeDSCompInd, threeDS2RequestData.threeDSCompInd) + && Objects.equals( + this.threeDSRequestorAuthenticationInd, + threeDS2RequestData.threeDSRequestorAuthenticationInd) + && Objects.equals( + this.threeDSRequestorAuthenticationInfo, + threeDS2RequestData.threeDSRequestorAuthenticationInfo) + && Objects.equals( + this.threeDSRequestorChallengeInd, threeDS2RequestData.threeDSRequestorChallengeInd) + && Objects.equals(this.threeDSRequestorID, threeDS2RequestData.threeDSRequestorID) + && Objects.equals(this.threeDSRequestorName, threeDS2RequestData.threeDSRequestorName) + && Objects.equals( + this.threeDSRequestorPriorAuthenticationInfo, + threeDS2RequestData.threeDSRequestorPriorAuthenticationInfo) + && Objects.equals(this.threeDSRequestorURL, threeDS2RequestData.threeDSRequestorURL) + && Objects.equals(this.transType, threeDS2RequestData.transType) + && Objects.equals(this.transactionType, threeDS2RequestData.transactionType) + && Objects.equals(this.whiteListStatus, threeDS2RequestData.whiteListStatus) + && Objects.equals(this.workPhone, threeDS2RequestData.workPhone); } @Override public int hashCode() { - return Objects.hash(acctInfo, acctType, acquirerBIN, acquirerMerchantID, addrMatch, authenticationOnly, challengeIndicator, deviceChannel, deviceRenderOptions, homePhone, mcc, merchantName, messageVersion, mobilePhone, notificationURL, payTokenInd, paymentAuthenticationUseCase, purchaseInstalData, recurringExpiry, recurringFrequency, sdkAppID, sdkEncData, sdkEphemPubKey, sdkMaxTimeout, sdkReferenceNumber, sdkTransID, sdkVersion, threeDSCompInd, threeDSRequestorAuthenticationInd, threeDSRequestorAuthenticationInfo, threeDSRequestorChallengeInd, threeDSRequestorID, threeDSRequestorName, threeDSRequestorPriorAuthenticationInfo, threeDSRequestorURL, transType, transactionType, whiteListStatus, workPhone); + return Objects.hash( + acctInfo, + acctType, + acquirerBIN, + acquirerMerchantID, + addrMatch, + authenticationOnly, + challengeIndicator, + deviceChannel, + deviceRenderOptions, + homePhone, + mcc, + merchantName, + messageVersion, + mobilePhone, + notificationURL, + payTokenInd, + paymentAuthenticationUseCase, + purchaseInstalData, + recurringExpiry, + recurringFrequency, + sdkAppID, + sdkEncData, + sdkEphemPubKey, + sdkMaxTimeout, + sdkReferenceNumber, + sdkTransID, + sdkVersion, + threeDSCompInd, + threeDSRequestorAuthenticationInd, + threeDSRequestorAuthenticationInfo, + threeDSRequestorChallengeInd, + threeDSRequestorID, + threeDSRequestorName, + threeDSRequestorPriorAuthenticationInfo, + threeDSRequestorURL, + transType, + transactionType, + whiteListStatus, + workPhone); } @Override @@ -1802,7 +2216,9 @@ public String toString() { sb.append(" authenticationOnly: ").append(toIndentedString(authenticationOnly)).append("\n"); sb.append(" challengeIndicator: ").append(toIndentedString(challengeIndicator)).append("\n"); sb.append(" deviceChannel: ").append(toIndentedString(deviceChannel)).append("\n"); - sb.append(" deviceRenderOptions: ").append(toIndentedString(deviceRenderOptions)).append("\n"); + sb.append(" deviceRenderOptions: ") + .append(toIndentedString(deviceRenderOptions)) + .append("\n"); sb.append(" homePhone: ").append(toIndentedString(homePhone)).append("\n"); sb.append(" mcc: ").append(toIndentedString(mcc)).append("\n"); sb.append(" merchantName: ").append(toIndentedString(merchantName)).append("\n"); @@ -1810,7 +2226,9 @@ public String toString() { sb.append(" mobilePhone: ").append(toIndentedString(mobilePhone)).append("\n"); sb.append(" notificationURL: ").append(toIndentedString(notificationURL)).append("\n"); sb.append(" payTokenInd: ").append(toIndentedString(payTokenInd)).append("\n"); - sb.append(" paymentAuthenticationUseCase: ").append(toIndentedString(paymentAuthenticationUseCase)).append("\n"); + sb.append(" paymentAuthenticationUseCase: ") + .append(toIndentedString(paymentAuthenticationUseCase)) + .append("\n"); sb.append(" purchaseInstalData: ").append(toIndentedString(purchaseInstalData)).append("\n"); sb.append(" recurringExpiry: ").append(toIndentedString(recurringExpiry)).append("\n"); sb.append(" recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n"); @@ -1822,13 +2240,25 @@ public String toString() { sb.append(" sdkTransID: ").append(toIndentedString(sdkTransID)).append("\n"); sb.append(" sdkVersion: ").append(toIndentedString(sdkVersion)).append("\n"); sb.append(" threeDSCompInd: ").append(toIndentedString(threeDSCompInd)).append("\n"); - sb.append(" threeDSRequestorAuthenticationInd: ").append(toIndentedString(threeDSRequestorAuthenticationInd)).append("\n"); - sb.append(" threeDSRequestorAuthenticationInfo: ").append(toIndentedString(threeDSRequestorAuthenticationInfo)).append("\n"); - sb.append(" threeDSRequestorChallengeInd: ").append(toIndentedString(threeDSRequestorChallengeInd)).append("\n"); + sb.append(" threeDSRequestorAuthenticationInd: ") + .append(toIndentedString(threeDSRequestorAuthenticationInd)) + .append("\n"); + sb.append(" threeDSRequestorAuthenticationInfo: ") + .append(toIndentedString(threeDSRequestorAuthenticationInfo)) + .append("\n"); + sb.append(" threeDSRequestorChallengeInd: ") + .append(toIndentedString(threeDSRequestorChallengeInd)) + .append("\n"); sb.append(" threeDSRequestorID: ").append(toIndentedString(threeDSRequestorID)).append("\n"); - sb.append(" threeDSRequestorName: ").append(toIndentedString(threeDSRequestorName)).append("\n"); - sb.append(" threeDSRequestorPriorAuthenticationInfo: ").append(toIndentedString(threeDSRequestorPriorAuthenticationInfo)).append("\n"); - sb.append(" threeDSRequestorURL: ").append(toIndentedString(threeDSRequestorURL)).append("\n"); + sb.append(" threeDSRequestorName: ") + .append(toIndentedString(threeDSRequestorName)) + .append("\n"); + sb.append(" threeDSRequestorPriorAuthenticationInfo: ") + .append(toIndentedString(threeDSRequestorPriorAuthenticationInfo)) + .append("\n"); + sb.append(" threeDSRequestorURL: ") + .append(toIndentedString(threeDSRequestorURL)) + .append("\n"); sb.append(" transType: ").append(toIndentedString(transType)).append("\n"); sb.append(" transactionType: ").append(toIndentedString(transactionType)).append("\n"); sb.append(" whiteListStatus: ").append(toIndentedString(whiteListStatus)).append("\n"); @@ -1838,8 +2268,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1848,21 +2277,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ThreeDS2RequestData given an JSON string * * @param jsonString JSON string * @return An instance of ThreeDS2RequestData - * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDS2RequestData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ThreeDS2RequestData */ public static ThreeDS2RequestData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDS2RequestData.class); } -/** - * Convert an instance of ThreeDS2RequestData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ThreeDS2RequestData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ThreeDS2RequestFields.java b/src/main/java/com/adyen/model/checkout/ThreeDS2RequestFields.java index 8ce838d97..a8895bd16 100644 --- a/src/main/java/com/adyen/model/checkout/ThreeDS2RequestFields.java +++ b/src/main/java/com/adyen/model/checkout/ThreeDS2RequestFields.java @@ -2,37 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.AcctInfo; -import com.adyen.model.checkout.DeviceRenderOptions; -import com.adyen.model.checkout.Phone; -import com.adyen.model.checkout.SDKEphemPubKey; -import com.adyen.model.checkout.ThreeDSRequestorAuthenticationInfo; -import com.adyen.model.checkout.ThreeDSRequestorPriorAuthenticationInfo; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * ThreeDS2RequestFields - */ +/** ThreeDS2RequestFields */ @JsonPropertyOrder({ ThreeDS2RequestFields.JSON_PROPERTY_ACCT_INFO, ThreeDS2RequestFields.JSON_PROPERTY_ACCT_TYPE, @@ -71,16 +60,15 @@ ThreeDS2RequestFields.JSON_PROPERTY_WHITE_LIST_STATUS, ThreeDS2RequestFields.JSON_PROPERTY_WORK_PHONE }) - public class ThreeDS2RequestFields { public static final String JSON_PROPERTY_ACCT_INFO = "acctInfo"; private AcctInfo acctInfo; /** - * Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + * Indicates the type of account. For example, for a multi-account card product. Length: 2 + * characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit */ public enum AcctTypeEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -92,7 +80,7 @@ public enum AcctTypeEnum { private String value; AcctTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -113,7 +101,11 @@ public static AcctTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AcctTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AcctTypeEnum.values())); + LOG.warning( + "AcctTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AcctTypeEnum.values())); return null; } } @@ -128,10 +120,11 @@ public static AcctTypeEnum fromValue(String value) { private String acquirerMerchantID; /** - * Indicates whether the cardholder shipping Address and cardholder billing address are the same. Allowed values: * **Y** — Shipping Address matches Billing Address. * **N** — Shipping Address does not match Billing Address. + * Indicates whether the cardholder shipping Address and cardholder billing address are the same. + * Allowed values: * **Y** — Shipping Address matches Billing Address. * **N** — Shipping Address + * does not match Billing Address. */ public enum AddrMatchEnum { - Y(String.valueOf("Y")), N(String.valueOf("N")); @@ -141,7 +134,7 @@ public enum AddrMatchEnum { private String value; AddrMatchEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -162,7 +155,11 @@ public static AddrMatchEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AddrMatchEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AddrMatchEnum.values())); + LOG.warning( + "AddrMatchEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AddrMatchEnum.values())); return null; } } @@ -175,10 +172,11 @@ public static AddrMatchEnum fromValue(String value) { private Boolean authenticationOnly; /** - * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` + * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: + * * `noPreference` * `requestNoChallenge` * `requestChallenge` * + * `requestChallengeAsMandate` */ public enum ChallengeIndicatorEnum { - NOPREFERENCE(String.valueOf("noPreference")), REQUESTNOCHALLENGE(String.valueOf("requestNoChallenge")), @@ -192,7 +190,7 @@ public enum ChallengeIndicatorEnum { private String value; ChallengeIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -213,13 +211,18 @@ public static ChallengeIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ChallengeIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChallengeIndicatorEnum.values())); + LOG.warning( + "ChallengeIndicatorEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ChallengeIndicatorEnum.values())); return null; } } public static final String JSON_PROPERTY_CHALLENGE_INDICATOR = "challengeIndicator"; - @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` + // instead. private ChallengeIndicatorEnum challengeIndicator; public static final String JSON_PROPERTY_DEVICE_RENDER_OPTIONS = "deviceRenderOptions"; @@ -246,7 +249,8 @@ public static ChallengeIndicatorEnum fromValue(String value) { public static final String JSON_PROPERTY_PAY_TOKEN_IND = "payTokenInd"; private Boolean payTokenInd; - public static final String JSON_PROPERTY_PAYMENT_AUTHENTICATION_USE_CASE = "paymentAuthenticationUseCase"; + public static final String JSON_PROPERTY_PAYMENT_AUTHENTICATION_USE_CASE = + "paymentAuthenticationUseCase"; private String paymentAuthenticationUseCase; public static final String JSON_PROPERTY_PURCHASE_INSTAL_DATA = "purchaseInstalData"; @@ -276,17 +280,21 @@ public static ChallengeIndicatorEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_COMP_IND = "threeDSCompInd"; private String threeDSCompInd; - public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_IND = "threeDSRequestorAuthenticationInd"; + public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_IND = + "threeDSRequestorAuthenticationInd"; private String threeDSRequestorAuthenticationInd; - public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_INFO = "threeDSRequestorAuthenticationInfo"; + public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_INFO = + "threeDSRequestorAuthenticationInfo"; private ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo; /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No + * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor + * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional + * risk analysis is already performed) * **06** — Data Only */ public enum ThreeDSRequestorChallengeIndEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -299,12 +307,13 @@ public enum ThreeDSRequestorChallengeIndEnum { _06(String.valueOf("06")); - private static final Logger LOG = Logger.getLogger(ThreeDSRequestorChallengeIndEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(ThreeDSRequestorChallengeIndEnum.class.getName()); private String value; ThreeDSRequestorChallengeIndEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -325,12 +334,17 @@ public static ThreeDSRequestorChallengeIndEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ThreeDSRequestorChallengeIndEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ThreeDSRequestorChallengeIndEnum.values())); + LOG.warning( + "ThreeDSRequestorChallengeIndEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ThreeDSRequestorChallengeIndEnum.values())); return null; } } - public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND = "threeDSRequestorChallengeInd"; + public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND = + "threeDSRequestorChallengeInd"; private ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd; public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_I_D = "threeDSRequestorID"; @@ -339,17 +353,19 @@ public static ThreeDSRequestorChallengeIndEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_NAME = "threeDSRequestorName"; private String threeDSRequestorName; - public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_PRIOR_AUTHENTICATION_INFO = "threeDSRequestorPriorAuthenticationInfo"; + public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_PRIOR_AUTHENTICATION_INFO = + "threeDSRequestorPriorAuthenticationInfo"; private ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo; public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_U_R_L = "threeDSRequestorURL"; private String threeDSRequestorURL; /** - * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * + * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** + * — Quasi-Cash Transaction * **28** — Prepaid Activation and Load */ public enum TransTypeEnum { - _01(String.valueOf("01")), _03(String.valueOf("03")), @@ -365,7 +381,7 @@ public enum TransTypeEnum { private String value; TransTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -386,7 +402,11 @@ public static TransTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TransTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TransTypeEnum.values())); + LOG.warning( + "TransTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TransTypeEnum.values())); return null; } } @@ -394,11 +414,8 @@ public static TransTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANS_TYPE = "transType"; private TransTypeEnum transType; - /** - * Identify the type of the transaction being authenticated. - */ + /** Identify the type of the transaction being authenticated. */ public enum TransactionTypeEnum { - GOODSORSERVICEPURCHASE(String.valueOf("goodsOrServicePurchase")), CHECKACCEPTANCE(String.valueOf("checkAcceptance")), @@ -414,7 +431,7 @@ public enum TransactionTypeEnum { private String value; TransactionTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -435,7 +452,11 @@ public static TransactionTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TransactionTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TransactionTypeEnum.values())); + LOG.warning( + "TransactionTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TransactionTypeEnum.values())); return null; } } @@ -449,13 +470,12 @@ public static TransactionTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_WORK_PHONE = "workPhone"; private Phone workPhone; - public ThreeDS2RequestFields() { - } + public ThreeDS2RequestFields() {} /** * acctInfo * - * @param acctInfo + * @param acctInfo * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields acctInfo(AcctInfo acctInfo) { @@ -465,7 +485,8 @@ public ThreeDS2RequestFields acctInfo(AcctInfo acctInfo) { /** * Get acctInfo - * @return acctInfo + * + * @return acctInfo */ @JsonProperty(JSON_PROPERTY_ACCT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -476,7 +497,7 @@ public AcctInfo getAcctInfo() { /** * acctInfo * - * @param acctInfo + * @param acctInfo */ @JsonProperty(JSON_PROPERTY_ACCT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -485,9 +506,12 @@ public void setAcctInfo(AcctInfo acctInfo) { } /** - * Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + * Indicates the type of account. For example, for a multi-account card product. Length: 2 + * characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit * - * @param acctType Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + * @param acctType Indicates the type of account. For example, for a multi-account card product. + * Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** + * — Debit * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields acctType(AcctTypeEnum acctType) { @@ -496,8 +520,12 @@ public ThreeDS2RequestFields acctType(AcctTypeEnum acctType) { } /** - * Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit - * @return acctType Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + * Indicates the type of account. For example, for a multi-account card product. Length: 2 + * characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + * + * @return acctType Indicates the type of account. For example, for a multi-account card product. + * Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** + * — Debit */ @JsonProperty(JSON_PROPERTY_ACCT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -506,9 +534,12 @@ public AcctTypeEnum getAcctType() { } /** - * Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + * Indicates the type of account. For example, for a multi-account card product. Length: 2 + * characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit * - * @param acctType Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + * @param acctType Indicates the type of account. For example, for a multi-account card product. + * Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** + * — Debit */ @JsonProperty(JSON_PROPERTY_ACCT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -517,9 +548,15 @@ public void setAcctType(AcctTypeEnum acctType) { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will + * use in the authorisation. Use 123456 on the Test platform. * - * @param acquirerBIN Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * @param acquirerBIN Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you + * will use in the authorisation. Use 123456 on the Test platform. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields acquirerBIN(String acquirerBIN) { @@ -528,8 +565,15 @@ public ThreeDS2RequestFields acquirerBIN(String acquirerBIN) { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. - * @return acquirerBIN Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will + * use in the authorisation. Use 123456 on the Test platform. + * + * @return acquirerBIN Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you + * will use in the authorisation. Use 123456 on the Test platform. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_B_I_N) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -538,9 +582,15 @@ public String getAcquirerBIN() { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will + * use in the authorisation. Use 123456 on the Test platform. * - * @param acquirerBIN Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * @param acquirerBIN Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you + * will use in the authorisation. Use 123456 on the Test platform. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_B_I_N) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -549,9 +599,16 @@ public void setAcquirerBIN(String acquirerBIN) { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string + * should match the value that you will use in the authorisation. Use 123456 on the Test platform. * - * @param acquirerMerchantID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * @param acquirerMerchantID Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string + * should match the value that you will use in the authorisation. Use 123456 on the Test + * platform. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields acquirerMerchantID(String acquirerMerchantID) { @@ -560,8 +617,16 @@ public ThreeDS2RequestFields acquirerMerchantID(String acquirerMerchantID) { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. - * @return acquirerMerchantID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string + * should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * + * @return acquirerMerchantID Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string + * should match the value that you will use in the authorisation. Use 123456 on the Test + * platform. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_MERCHANT_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -570,9 +635,16 @@ public String getAcquirerMerchantID() { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string + * should match the value that you will use in the authorisation. Use 123456 on the Test platform. * - * @param acquirerMerchantID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * @param acquirerMerchantID Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string + * should match the value that you will use in the authorisation. Use 123456 on the Test + * platform. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_MERCHANT_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -581,9 +653,13 @@ public void setAcquirerMerchantID(String acquirerMerchantID) { } /** - * Indicates whether the cardholder shipping Address and cardholder billing address are the same. Allowed values: * **Y** — Shipping Address matches Billing Address. * **N** — Shipping Address does not match Billing Address. + * Indicates whether the cardholder shipping Address and cardholder billing address are the same. + * Allowed values: * **Y** — Shipping Address matches Billing Address. * **N** — Shipping Address + * does not match Billing Address. * - * @param addrMatch Indicates whether the cardholder shipping Address and cardholder billing address are the same. Allowed values: * **Y** — Shipping Address matches Billing Address. * **N** — Shipping Address does not match Billing Address. + * @param addrMatch Indicates whether the cardholder shipping Address and cardholder billing + * address are the same. Allowed values: * **Y** — Shipping Address matches Billing Address. * + * **N** — Shipping Address does not match Billing Address. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields addrMatch(AddrMatchEnum addrMatch) { @@ -592,8 +668,13 @@ public ThreeDS2RequestFields addrMatch(AddrMatchEnum addrMatch) { } /** - * Indicates whether the cardholder shipping Address and cardholder billing address are the same. Allowed values: * **Y** — Shipping Address matches Billing Address. * **N** — Shipping Address does not match Billing Address. - * @return addrMatch Indicates whether the cardholder shipping Address and cardholder billing address are the same. Allowed values: * **Y** — Shipping Address matches Billing Address. * **N** — Shipping Address does not match Billing Address. + * Indicates whether the cardholder shipping Address and cardholder billing address are the same. + * Allowed values: * **Y** — Shipping Address matches Billing Address. * **N** — Shipping Address + * does not match Billing Address. + * + * @return addrMatch Indicates whether the cardholder shipping Address and cardholder billing + * address are the same. Allowed values: * **Y** — Shipping Address matches Billing Address. * + * **N** — Shipping Address does not match Billing Address. */ @JsonProperty(JSON_PROPERTY_ADDR_MATCH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -602,9 +683,13 @@ public AddrMatchEnum getAddrMatch() { } /** - * Indicates whether the cardholder shipping Address and cardholder billing address are the same. Allowed values: * **Y** — Shipping Address matches Billing Address. * **N** — Shipping Address does not match Billing Address. + * Indicates whether the cardholder shipping Address and cardholder billing address are the same. + * Allowed values: * **Y** — Shipping Address matches Billing Address. * **N** — Shipping Address + * does not match Billing Address. * - * @param addrMatch Indicates whether the cardholder shipping Address and cardholder billing address are the same. Allowed values: * **Y** — Shipping Address matches Billing Address. * **N** — Shipping Address does not match Billing Address. + * @param addrMatch Indicates whether the cardholder shipping Address and cardholder billing + * address are the same. Allowed values: * **Y** — Shipping Address matches Billing Address. * + * **N** — Shipping Address does not match Billing Address. */ @JsonProperty(JSON_PROPERTY_ADDR_MATCH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -613,13 +698,15 @@ public void setAddrMatch(AddrMatchEnum addrMatch) { } /** - * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. + * If set to true, you will only perform the [3D Secure 2 + * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), + * and not the payment authorisation. * - * @param authenticationOnly If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. + * @param authenticationOnly If set to true, you will only perform the [3D Secure 2 + * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), + * and not the payment authorisation. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v50 - * Use `threeDSAuthenticationOnly` instead. + * @deprecated since Adyen Checkout API v50 Use `threeDSAuthenticationOnly` instead. */ @Deprecated // deprecated since Adyen Checkout API v50: Use `threeDSAuthenticationOnly` instead. public ThreeDS2RequestFields authenticationOnly(Boolean authenticationOnly) { @@ -628,9 +715,15 @@ public ThreeDS2RequestFields authenticationOnly(Boolean authenticationOnly) { } /** - * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. - * @return authenticationOnly If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. - * @deprecated // deprecated since Adyen Checkout API v50: Use `threeDSAuthenticationOnly` instead. + * If set to true, you will only perform the [3D Secure 2 + * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), + * and not the payment authorisation. + * + * @return authenticationOnly If set to true, you will only perform the [3D Secure 2 + * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), + * and not the payment authorisation. + * @deprecated // deprecated since Adyen Checkout API v50: Use `threeDSAuthenticationOnly` + * instead. */ @Deprecated // deprecated since Adyen Checkout API v50: Use `threeDSAuthenticationOnly` instead. @JsonProperty(JSON_PROPERTY_AUTHENTICATION_ONLY) @@ -640,12 +733,14 @@ public Boolean getAuthenticationOnly() { } /** - * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. - * - * @param authenticationOnly If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. + * If set to true, you will only perform the [3D Secure 2 + * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), + * and not the payment authorisation. * - * @deprecated since Adyen Checkout API v50 - * Use `threeDSAuthenticationOnly` instead. + * @param authenticationOnly If set to true, you will only perform the [3D Secure 2 + * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), + * and not the payment authorisation. + * @deprecated since Adyen Checkout API v50 Use `threeDSAuthenticationOnly` instead. */ @Deprecated // deprecated since Adyen Checkout API v50: Use `threeDSAuthenticationOnly` instead. @JsonProperty(JSON_PROPERTY_AUTHENTICATION_ONLY) @@ -655,26 +750,36 @@ public void setAuthenticationOnly(Boolean authenticationOnly) { } /** - * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` + * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: + * * `noPreference` * `requestNoChallenge` * `requestChallenge` * + * `requestChallengeAsMandate` * - * @param challengeIndicator Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` + * @param challengeIndicator Possibility to specify a preference for receiving a challenge from + * the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * + * `requestChallenge` * `requestChallengeAsMandate` * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v68 - * Use `threeDSRequestorChallengeInd` instead. + * @deprecated since Adyen Checkout API v68 Use `threeDSRequestorChallengeInd` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` + // instead. public ThreeDS2RequestFields challengeIndicator(ChallengeIndicatorEnum challengeIndicator) { this.challengeIndicator = challengeIndicator; return this; } /** - * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` - * @return challengeIndicator Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` - * @deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` instead. + * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: + * * `noPreference` * `requestNoChallenge` * `requestChallenge` * + * `requestChallengeAsMandate` + * + * @return challengeIndicator Possibility to specify a preference for receiving a challenge from + * the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * + * `requestChallenge` * `requestChallengeAsMandate` + * @deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` + * instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` + // instead. @JsonProperty(JSON_PROPERTY_CHALLENGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ChallengeIndicatorEnum getChallengeIndicator() { @@ -682,14 +787,17 @@ public ChallengeIndicatorEnum getChallengeIndicator() { } /** - * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` + * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: + * * `noPreference` * `requestNoChallenge` * `requestChallenge` * + * `requestChallengeAsMandate` * - * @param challengeIndicator Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` - * - * @deprecated since Adyen Checkout API v68 - * Use `threeDSRequestorChallengeInd` instead. + * @param challengeIndicator Possibility to specify a preference for receiving a challenge from + * the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * + * `requestChallenge` * `requestChallengeAsMandate` + * @deprecated since Adyen Checkout API v68 Use `threeDSRequestorChallengeInd` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` instead. + @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` + // instead. @JsonProperty(JSON_PROPERTY_CHALLENGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setChallengeIndicator(ChallengeIndicatorEnum challengeIndicator) { @@ -699,7 +807,7 @@ public void setChallengeIndicator(ChallengeIndicatorEnum challengeIndicator) { /** * deviceRenderOptions * - * @param deviceRenderOptions + * @param deviceRenderOptions * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields deviceRenderOptions(DeviceRenderOptions deviceRenderOptions) { @@ -709,7 +817,8 @@ public ThreeDS2RequestFields deviceRenderOptions(DeviceRenderOptions deviceRende /** * Get deviceRenderOptions - * @return deviceRenderOptions + * + * @return deviceRenderOptions */ @JsonProperty(JSON_PROPERTY_DEVICE_RENDER_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -720,7 +829,7 @@ public DeviceRenderOptions getDeviceRenderOptions() { /** * deviceRenderOptions * - * @param deviceRenderOptions + * @param deviceRenderOptions */ @JsonProperty(JSON_PROPERTY_DEVICE_RENDER_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -731,7 +840,7 @@ public void setDeviceRenderOptions(DeviceRenderOptions deviceRenderOptions) { /** * homePhone * - * @param homePhone + * @param homePhone * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields homePhone(Phone homePhone) { @@ -741,7 +850,8 @@ public ThreeDS2RequestFields homePhone(Phone homePhone) { /** * Get homePhone - * @return homePhone + * + * @return homePhone */ @JsonProperty(JSON_PROPERTY_HOME_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -752,7 +862,7 @@ public Phone getHomePhone() { /** * homePhone * - * @param homePhone + * @param homePhone */ @JsonProperty(JSON_PROPERTY_HOME_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -761,9 +871,17 @@ public void setHomePhone(Phone homePhone) { } /** - * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. + * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, + * mostly [authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The `mcc` is a four-digit code with which the previously given + * `acquirerMerchantID` is registered at the scheme. * - * @param mcc Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. + * @param mcc Required for merchants that have been enrolled for 3D Secure 2 by another party than + * Adyen, mostly [authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The `mcc` is a four-digit code with which the previously given + * `acquirerMerchantID` is registered at the scheme. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields mcc(String mcc) { @@ -772,8 +890,17 @@ public ThreeDS2RequestFields mcc(String mcc) { } /** - * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. - * @return mcc Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. + * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, + * mostly [authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The `mcc` is a four-digit code with which the previously given + * `acquirerMerchantID` is registered at the scheme. + * + * @return mcc Required for merchants that have been enrolled for 3D Secure 2 by another party + * than Adyen, mostly [authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The `mcc` is a four-digit code with which the previously given + * `acquirerMerchantID` is registered at the scheme. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -782,9 +909,17 @@ public String getMcc() { } /** - * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. + * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, + * mostly [authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The `mcc` is a four-digit code with which the previously given + * `acquirerMerchantID` is registered at the scheme. * - * @param mcc Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. + * @param mcc Required for merchants that have been enrolled for 3D Secure 2 by another party than + * Adyen, mostly [authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The `mcc` is a four-digit code with which the previously given + * `acquirerMerchantID` is registered at the scheme. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -793,9 +928,23 @@ public void setMcc(String mcc) { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. - * - * @param merchantName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchant name that the issuer presents to the shopper if they get a challenge. We recommend + * to use the same value that you will use in the authorization. Maximum length is 40 characters. + * > Optional for a [full 3D Secure 2 + * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use + * this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name + * already configured on your account. + * + * @param merchantName Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchant name that the issuer presents to the shopper if they get a challenge. We + * recommend to use the same value that you will use in the authorization. Maximum length is + * 40 characters. > Optional for a [full 3D Secure 2 + * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). + * Use this field if you are enrolled for 3D Secure 2 with us and want to override the + * merchant name already configured on your account. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields merchantName(String merchantName) { @@ -804,8 +953,23 @@ public ThreeDS2RequestFields merchantName(String merchantName) { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. - * @return merchantName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchant name that the issuer presents to the shopper if they get a challenge. We recommend + * to use the same value that you will use in the authorization. Maximum length is 40 characters. + * > Optional for a [full 3D Secure 2 + * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use + * this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name + * already configured on your account. + * + * @return merchantName Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchant name that the issuer presents to the shopper if they get a challenge. We + * recommend to use the same value that you will use in the authorization. Maximum length is + * 40 characters. > Optional for a [full 3D Secure 2 + * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). + * Use this field if you are enrolled for 3D Secure 2 with us and want to override the + * merchant name already configured on your account. */ @JsonProperty(JSON_PROPERTY_MERCHANT_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -814,9 +978,23 @@ public String getMerchantName() { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchant name that the issuer presents to the shopper if they get a challenge. We recommend + * to use the same value that you will use in the authorization. Maximum length is 40 characters. + * > Optional for a [full 3D Secure 2 + * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use + * this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name + * already configured on your account. * - * @param merchantName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. + * @param merchantName Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchant name that the issuer presents to the shopper if they get a challenge. We + * recommend to use the same value that you will use in the authorization. Maximum length is + * 40 characters. > Optional for a [full 3D Secure 2 + * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). + * Use this field if you are enrolled for 3D Secure 2 with us and want to override the + * merchant name already configured on your account. */ @JsonProperty(JSON_PROPERTY_MERCHANT_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -827,7 +1005,8 @@ public void setMerchantName(String merchantName) { /** * The `messageVersion` value indicating the 3D Secure 2 protocol version. * - * @param messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol version. + * @param messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol + * version. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields messageVersion(String messageVersion) { @@ -837,7 +1016,9 @@ public ThreeDS2RequestFields messageVersion(String messageVersion) { /** * The `messageVersion` value indicating the 3D Secure 2 protocol version. - * @return messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol version. + * + * @return messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol + * version. */ @JsonProperty(JSON_PROPERTY_MESSAGE_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -848,7 +1029,8 @@ public String getMessageVersion() { /** * The `messageVersion` value indicating the 3D Secure 2 protocol version. * - * @param messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol version. + * @param messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol + * version. */ @JsonProperty(JSON_PROPERTY_MESSAGE_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -859,7 +1041,7 @@ public void setMessageVersion(String messageVersion) { /** * mobilePhone * - * @param mobilePhone + * @param mobilePhone * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields mobilePhone(Phone mobilePhone) { @@ -869,7 +1051,8 @@ public ThreeDS2RequestFields mobilePhone(Phone mobilePhone) { /** * Get mobilePhone - * @return mobilePhone + * + * @return mobilePhone */ @JsonProperty(JSON_PROPERTY_MOBILE_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -880,7 +1063,7 @@ public Phone getMobilePhone() { /** * mobilePhone * - * @param mobilePhone + * @param mobilePhone */ @JsonProperty(JSON_PROPERTY_MOBILE_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -889,9 +1072,13 @@ public void setMobilePhone(Phone mobilePhone) { } /** - * URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. + * URL to where the issuer should send the `CRes`. Required if you are not using + * components for `channel` **Web** or if you are using classic integration + * `deviceChannel` **browser**. * - * @param notificationURL URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. + * @param notificationURL URL to where the issuer should send the `CRes`. Required if + * you are not using components for `channel` **Web** or if you are using classic + * integration `deviceChannel` **browser**. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields notificationURL(String notificationURL) { @@ -900,8 +1087,13 @@ public ThreeDS2RequestFields notificationURL(String notificationURL) { } /** - * URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. - * @return notificationURL URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. + * URL to where the issuer should send the `CRes`. Required if you are not using + * components for `channel` **Web** or if you are using classic integration + * `deviceChannel` **browser**. + * + * @return notificationURL URL to where the issuer should send the `CRes`. Required if + * you are not using components for `channel` **Web** or if you are using classic + * integration `deviceChannel` **browser**. */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -910,9 +1102,13 @@ public String getNotificationURL() { } /** - * URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. + * URL to where the issuer should send the `CRes`. Required if you are not using + * components for `channel` **Web** or if you are using classic integration + * `deviceChannel` **browser**. * - * @param notificationURL URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. + * @param notificationURL URL to where the issuer should send the `CRes`. Required if + * you are not using components for `channel` **Web** or if you are using classic + * integration `deviceChannel` **browser**. */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -921,9 +1117,11 @@ public void setNotificationURL(String notificationURL) { } /** - * Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. + * Value **true** indicates that the transaction was de-tokenised prior to being received by the + * ACS. * - * @param payTokenInd Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. + * @param payTokenInd Value **true** indicates that the transaction was de-tokenised prior to + * being received by the ACS. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields payTokenInd(Boolean payTokenInd) { @@ -932,8 +1130,11 @@ public ThreeDS2RequestFields payTokenInd(Boolean payTokenInd) { } /** - * Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. - * @return payTokenInd Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. + * Value **true** indicates that the transaction was de-tokenised prior to being received by the + * ACS. + * + * @return payTokenInd Value **true** indicates that the transaction was de-tokenised prior to + * being received by the ACS. */ @JsonProperty(JSON_PROPERTY_PAY_TOKEN_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -942,9 +1143,11 @@ public Boolean getPayTokenInd() { } /** - * Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. + * Value **true** indicates that the transaction was de-tokenised prior to being received by the + * ACS. * - * @param payTokenInd Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. + * @param payTokenInd Value **true** indicates that the transaction was de-tokenised prior to + * being received by the ACS. */ @JsonProperty(JSON_PROPERTY_PAY_TOKEN_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -955,7 +1158,8 @@ public void setPayTokenInd(Boolean payTokenInd) { /** * Indicates the type of payment for which an authentication is requested (message extension) * - * @param paymentAuthenticationUseCase Indicates the type of payment for which an authentication is requested (message extension) + * @param paymentAuthenticationUseCase Indicates the type of payment for which an authentication + * is requested (message extension) * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields paymentAuthenticationUseCase(String paymentAuthenticationUseCase) { @@ -965,7 +1169,9 @@ public ThreeDS2RequestFields paymentAuthenticationUseCase(String paymentAuthenti /** * Indicates the type of payment for which an authentication is requested (message extension) - * @return paymentAuthenticationUseCase Indicates the type of payment for which an authentication is requested (message extension) + * + * @return paymentAuthenticationUseCase Indicates the type of payment for which an authentication + * is requested (message extension) */ @JsonProperty(JSON_PROPERTY_PAYMENT_AUTHENTICATION_USE_CASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -976,7 +1182,8 @@ public String getPaymentAuthenticationUseCase() { /** * Indicates the type of payment for which an authentication is requested (message extension) * - * @param paymentAuthenticationUseCase Indicates the type of payment for which an authentication is requested (message extension) + * @param paymentAuthenticationUseCase Indicates the type of payment for which an authentication + * is requested (message extension) */ @JsonProperty(JSON_PROPERTY_PAYMENT_AUTHENTICATION_USE_CASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -985,9 +1192,11 @@ public void setPaymentAuthenticationUseCase(String paymentAuthenticationUseCase) } /** - * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. + * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 + * characters. * - * @param purchaseInstalData Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. + * @param purchaseInstalData Indicates the maximum number of authorisations permitted for + * instalment payments. Length: 1–3 characters. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields purchaseInstalData(String purchaseInstalData) { @@ -996,8 +1205,11 @@ public ThreeDS2RequestFields purchaseInstalData(String purchaseInstalData) { } /** - * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. - * @return purchaseInstalData Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. + * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 + * characters. + * + * @return purchaseInstalData Indicates the maximum number of authorisations permitted for + * instalment payments. Length: 1–3 characters. */ @JsonProperty(JSON_PROPERTY_PURCHASE_INSTAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1006,9 +1218,11 @@ public String getPurchaseInstalData() { } /** - * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. + * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 + * characters. * - * @param purchaseInstalData Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. + * @param purchaseInstalData Indicates the maximum number of authorisations permitted for + * instalment payments. Length: 1–3 characters. */ @JsonProperty(JSON_PROPERTY_PURCHASE_INSTAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1019,7 +1233,8 @@ public void setPurchaseInstalData(String purchaseInstalData) { /** * Date after which no further authorisations shall be performed. Format: YYYYMMDD * - * @param recurringExpiry Date after which no further authorisations shall be performed. Format: YYYYMMDD + * @param recurringExpiry Date after which no further authorisations shall be performed. Format: + * YYYYMMDD * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields recurringExpiry(String recurringExpiry) { @@ -1029,7 +1244,9 @@ public ThreeDS2RequestFields recurringExpiry(String recurringExpiry) { /** * Date after which no further authorisations shall be performed. Format: YYYYMMDD - * @return recurringExpiry Date after which no further authorisations shall be performed. Format: YYYYMMDD + * + * @return recurringExpiry Date after which no further authorisations shall be performed. Format: + * YYYYMMDD */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1040,7 +1257,8 @@ public String getRecurringExpiry() { /** * Date after which no further authorisations shall be performed. Format: YYYYMMDD * - * @param recurringExpiry Date after which no further authorisations shall be performed. Format: YYYYMMDD + * @param recurringExpiry Date after which no further authorisations shall be performed. Format: + * YYYYMMDD */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1051,7 +1269,8 @@ public void setRecurringExpiry(String recurringExpiry) { /** * Indicates the minimum number of days between authorisations. Maximum length: 4 characters. * - * @param recurringFrequency Indicates the minimum number of days between authorisations. Maximum length: 4 characters. + * @param recurringFrequency Indicates the minimum number of days between authorisations. Maximum + * length: 4 characters. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields recurringFrequency(String recurringFrequency) { @@ -1061,7 +1280,9 @@ public ThreeDS2RequestFields recurringFrequency(String recurringFrequency) { /** * Indicates the minimum number of days between authorisations. Maximum length: 4 characters. - * @return recurringFrequency Indicates the minimum number of days between authorisations. Maximum length: 4 characters. + * + * @return recurringFrequency Indicates the minimum number of days between authorisations. Maximum + * length: 4 characters. */ @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1072,7 +1293,8 @@ public String getRecurringFrequency() { /** * Indicates the minimum number of days between authorisations. Maximum length: 4 characters. * - * @param recurringFrequency Indicates the minimum number of days between authorisations. Maximum length: 4 characters. + * @param recurringFrequency Indicates the minimum number of days between authorisations. Maximum + * length: 4 characters. */ @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1093,6 +1315,7 @@ public ThreeDS2RequestFields sdkAppID(String sdkAppID) { /** * The `sdkAppID` value as received from the 3D Secure 2 SDK. + * * @return sdkAppID The `sdkAppID` value as received from the 3D Secure 2 SDK. */ @JsonProperty(JSON_PROPERTY_SDK_APP_I_D) @@ -1115,7 +1338,7 @@ public void setSdkAppID(String sdkAppID) { /** * sdkEphemPubKey * - * @param sdkEphemPubKey + * @param sdkEphemPubKey * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields sdkEphemPubKey(SDKEphemPubKey sdkEphemPubKey) { @@ -1125,7 +1348,8 @@ public ThreeDS2RequestFields sdkEphemPubKey(SDKEphemPubKey sdkEphemPubKey) { /** * Get sdkEphemPubKey - * @return sdkEphemPubKey + * + * @return sdkEphemPubKey */ @JsonProperty(JSON_PROPERTY_SDK_EPHEM_PUB_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1136,7 +1360,7 @@ public SDKEphemPubKey getSdkEphemPubKey() { /** * sdkEphemPubKey * - * @param sdkEphemPubKey + * @param sdkEphemPubKey */ @JsonProperty(JSON_PROPERTY_SDK_EPHEM_PUB_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1145,9 +1369,12 @@ public void setSdkEphemPubKey(SDKEphemPubKey sdkEphemPubKey) { } /** - * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. + * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and + * only for `deviceChannel` set to **app**. Defaults to **60** minutes. * - * @param sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. + * @param sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication + * process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** + * minutes. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields sdkMaxTimeout(Integer sdkMaxTimeout) { @@ -1156,8 +1383,12 @@ public ThreeDS2RequestFields sdkMaxTimeout(Integer sdkMaxTimeout) { } /** - * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. - * @return sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. + * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and + * only for `deviceChannel` set to **app**. Defaults to **60** minutes. + * + * @return sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication + * process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** + * minutes. */ @JsonProperty(JSON_PROPERTY_SDK_MAX_TIMEOUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1166,9 +1397,12 @@ public Integer getSdkMaxTimeout() { } /** - * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. + * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and + * only for `deviceChannel` set to **app**. Defaults to **60** minutes. * - * @param sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. + * @param sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication + * process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** + * minutes. */ @JsonProperty(JSON_PROPERTY_SDK_MAX_TIMEOUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1179,7 +1413,8 @@ public void setSdkMaxTimeout(Integer sdkMaxTimeout) { /** * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. * - * @param sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. + * @param sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D + * Secure 2 SDK. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields sdkReferenceNumber(String sdkReferenceNumber) { @@ -1189,7 +1424,9 @@ public ThreeDS2RequestFields sdkReferenceNumber(String sdkReferenceNumber) { /** * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. - * @return sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. + * + * @return sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D + * Secure 2 SDK. */ @JsonProperty(JSON_PROPERTY_SDK_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1200,7 +1437,8 @@ public String getSdkReferenceNumber() { /** * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. * - * @param sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. + * @param sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D + * Secure 2 SDK. */ @JsonProperty(JSON_PROPERTY_SDK_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1221,6 +1459,7 @@ public ThreeDS2RequestFields sdkTransID(String sdkTransID) { /** * The `sdkTransID` value as received from the 3D Secure 2 SDK. + * * @return sdkTransID The `sdkTransID` value as received from the 3D Secure 2 SDK. */ @JsonProperty(JSON_PROPERTY_SDK_TRANS_I_D) @@ -1253,6 +1492,7 @@ public ThreeDS2RequestFields threeDSCompInd(String threeDSCompInd) { /** * Completion indicator for the device fingerprinting. + * * @return threeDSCompInd Completion indicator for the device fingerprinting. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_COMP_IND) @@ -1278,13 +1518,15 @@ public void setThreeDSCompInd(String threeDSCompInd) { * @param threeDSRequestorAuthenticationInd Indicates the type of Authentication request. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ - public ThreeDS2RequestFields threeDSRequestorAuthenticationInd(String threeDSRequestorAuthenticationInd) { + public ThreeDS2RequestFields threeDSRequestorAuthenticationInd( + String threeDSRequestorAuthenticationInd) { this.threeDSRequestorAuthenticationInd = threeDSRequestorAuthenticationInd; return this; } /** * Indicates the type of Authentication request. + * * @return threeDSRequestorAuthenticationInd Indicates the type of Authentication request. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_IND) @@ -1307,17 +1549,19 @@ public void setThreeDSRequestorAuthenticationInd(String threeDSRequestorAuthenti /** * threeDSRequestorAuthenticationInfo * - * @param threeDSRequestorAuthenticationInfo + * @param threeDSRequestorAuthenticationInfo * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ - public ThreeDS2RequestFields threeDSRequestorAuthenticationInfo(ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo) { + public ThreeDS2RequestFields threeDSRequestorAuthenticationInfo( + ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo) { this.threeDSRequestorAuthenticationInfo = threeDSRequestorAuthenticationInfo; return this; } /** * Get threeDSRequestorAuthenticationInfo - * @return threeDSRequestorAuthenticationInfo + * + * @return threeDSRequestorAuthenticationInfo */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1328,28 +1572,45 @@ public ThreeDSRequestorAuthenticationInfo getThreeDSRequestorAuthenticationInfo( /** * threeDSRequestorAuthenticationInfo * - * @param threeDSRequestorAuthenticationInfo + * @param threeDSRequestorAuthenticationInfo */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setThreeDSRequestorAuthenticationInfo(ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo) { + public void setThreeDSRequestorAuthenticationInfo( + ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo) { this.threeDSRequestorAuthenticationInfo = threeDSRequestorAuthenticationInfo; } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No + * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor + * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional + * risk analysis is already performed) * **06** — Data Only * - * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this + * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * + * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested + * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * + * **06** — Data Only * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ - public ThreeDS2RequestFields threeDSRequestorChallengeInd(ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { + public ThreeDS2RequestFields threeDSRequestorChallengeInd( + ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { this.threeDSRequestorChallengeInd = threeDSRequestorChallengeInd; return this; } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only - * @return threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No + * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor + * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional + * risk analysis is already performed) * **06** — Data Only + * + * @return threeDSRequestorChallengeInd Indicates whether a challenge is requested for this + * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * + * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested + * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * + * **06** — Data Only */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1358,20 +1619,34 @@ public ThreeDSRequestorChallengeIndEnum getThreeDSRequestorChallengeInd() { } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No + * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor + * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional + * risk analysis is already performed) * **06** — Data Only * - * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this + * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * + * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested + * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * + * **06** — Data Only */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setThreeDSRequestorChallengeInd(ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { + public void setThreeDSRequestorChallengeInd( + ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { this.threeDSRequestorChallengeInd = threeDSRequestorChallengeInd; } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol + * for 3D Secure 2. * - * @param threeDSRequestorID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. + * @param threeDSRequestorID Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you + * enrol for 3D Secure 2. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields threeDSRequestorID(String threeDSRequestorID) { @@ -1380,8 +1655,15 @@ public ThreeDS2RequestFields threeDSRequestorID(String threeDSRequestorID) { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. - * @return threeDSRequestorID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol + * for 3D Secure 2. + * + * @return threeDSRequestorID Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you + * enrol for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1390,9 +1672,15 @@ public String getThreeDSRequestorID() { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol + * for 3D Secure 2. * - * @param threeDSRequestorID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. + * @param threeDSRequestorID Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you + * enrol for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1401,9 +1689,15 @@ public void setThreeDSRequestorID(String threeDSRequestorID) { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for + * 3D Secure 2. * - * @param threeDSRequestorName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. + * @param threeDSRequestorName Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol + * for 3D Secure 2. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields threeDSRequestorName(String threeDSRequestorName) { @@ -1412,8 +1706,15 @@ public ThreeDS2RequestFields threeDSRequestorName(String threeDSRequestorName) { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. - * @return threeDSRequestorName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for + * 3D Secure 2. + * + * @return threeDSRequestorName Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol + * for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1422,9 +1723,15 @@ public String getThreeDSRequestorName() { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for + * 3D Secure 2. * - * @param threeDSRequestorName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. + * @param threeDSRequestorName Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol + * for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1435,17 +1742,19 @@ public void setThreeDSRequestorName(String threeDSRequestorName) { /** * threeDSRequestorPriorAuthenticationInfo * - * @param threeDSRequestorPriorAuthenticationInfo + * @param threeDSRequestorPriorAuthenticationInfo * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ - public ThreeDS2RequestFields threeDSRequestorPriorAuthenticationInfo(ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo) { + public ThreeDS2RequestFields threeDSRequestorPriorAuthenticationInfo( + ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo) { this.threeDSRequestorPriorAuthenticationInfo = threeDSRequestorPriorAuthenticationInfo; return this; } /** * Get threeDSRequestorPriorAuthenticationInfo - * @return threeDSRequestorPriorAuthenticationInfo + * + * @return threeDSRequestorPriorAuthenticationInfo */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_PRIOR_AUTHENTICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1456,18 +1765,21 @@ public ThreeDSRequestorPriorAuthenticationInfo getThreeDSRequestorPriorAuthentic /** * threeDSRequestorPriorAuthenticationInfo * - * @param threeDSRequestorPriorAuthenticationInfo + * @param threeDSRequestorPriorAuthenticationInfo */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_PRIOR_AUTHENTICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setThreeDSRequestorPriorAuthenticationInfo(ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo) { + public void setThreeDSRequestorPriorAuthenticationInfo( + ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo) { this.threeDSRequestorPriorAuthenticationInfo = threeDSRequestorPriorAuthenticationInfo; } /** - * URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. + * URL of the (customer service) website that will be shown to the shopper in case of technical + * errors during the 3D Secure 2 process. * - * @param threeDSRequestorURL URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. + * @param threeDSRequestorURL URL of the (customer service) website that will be shown to the + * shopper in case of technical errors during the 3D Secure 2 process. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields threeDSRequestorURL(String threeDSRequestorURL) { @@ -1476,8 +1788,11 @@ public ThreeDS2RequestFields threeDSRequestorURL(String threeDSRequestorURL) { } /** - * URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. - * @return threeDSRequestorURL URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. + * URL of the (customer service) website that will be shown to the shopper in case of technical + * errors during the 3D Secure 2 process. + * + * @return threeDSRequestorURL URL of the (customer service) website that will be shown to the + * shopper in case of technical errors during the 3D Secure 2 process. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1486,9 +1801,11 @@ public String getThreeDSRequestorURL() { } /** - * URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. + * URL of the (customer service) website that will be shown to the shopper in case of technical + * errors during the 3D Secure 2 process. * - * @param threeDSRequestorURL URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. + * @param threeDSRequestorURL URL of the (customer service) website that will be shown to the + * shopper in case of technical errors during the 3D Secure 2 process. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1497,9 +1814,13 @@ public void setThreeDSRequestorURL(String threeDSRequestorURL) { } /** - * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * + * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** + * — Quasi-Cash Transaction * **28** — Prepaid Activation and Load * - * @param transType Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * @param transType Identifies the type of transaction being authenticated. Length: 2 characters. + * Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — + * Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields transType(TransTypeEnum transType) { @@ -1508,8 +1829,13 @@ public ThreeDS2RequestFields transType(TransTypeEnum transType) { } /** - * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load - * @return transType Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * + * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** + * — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * + * @return transType Identifies the type of transaction being authenticated. Length: 2 characters. + * Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — + * Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load */ @JsonProperty(JSON_PROPERTY_TRANS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1518,9 +1844,13 @@ public TransTypeEnum getTransType() { } /** - * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * + * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** + * — Quasi-Cash Transaction * **28** — Prepaid Activation and Load * - * @param transType Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * @param transType Identifies the type of transaction being authenticated. Length: 2 characters. + * Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — + * Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load */ @JsonProperty(JSON_PROPERTY_TRANS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1541,6 +1871,7 @@ public ThreeDS2RequestFields transactionType(TransactionTypeEnum transactionType /** * Identify the type of the transaction being authenticated. + * * @return transactionType Identify the type of the transaction being authenticated. */ @JsonProperty(JSON_PROPERTY_TRANSACTION_TYPE) @@ -1561,9 +1892,11 @@ public void setTransactionType(TransactionTypeEnum transactionType) { } /** - * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. + * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only + * applicable for 3D Secure 2 protocol version 2.2.0. * - * @param whiteListStatus The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. + * @param whiteListStatus The `whiteListStatus` value returned from a previous 3D Secure + * 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields whiteListStatus(String whiteListStatus) { @@ -1572,8 +1905,11 @@ public ThreeDS2RequestFields whiteListStatus(String whiteListStatus) { } /** - * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. - * @return whiteListStatus The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. + * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only + * applicable for 3D Secure 2 protocol version 2.2.0. + * + * @return whiteListStatus The `whiteListStatus` value returned from a previous 3D + * Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. */ @JsonProperty(JSON_PROPERTY_WHITE_LIST_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1582,9 +1918,11 @@ public String getWhiteListStatus() { } /** - * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. + * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only + * applicable for 3D Secure 2 protocol version 2.2.0. * - * @param whiteListStatus The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. + * @param whiteListStatus The `whiteListStatus` value returned from a previous 3D Secure + * 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. */ @JsonProperty(JSON_PROPERTY_WHITE_LIST_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1595,7 +1933,7 @@ public void setWhiteListStatus(String whiteListStatus) { /** * workPhone * - * @param workPhone + * @param workPhone * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining */ public ThreeDS2RequestFields workPhone(Phone workPhone) { @@ -1605,7 +1943,8 @@ public ThreeDS2RequestFields workPhone(Phone workPhone) { /** * Get workPhone - * @return workPhone + * + * @return workPhone */ @JsonProperty(JSON_PROPERTY_WORK_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1616,7 +1955,7 @@ public Phone getWorkPhone() { /** * workPhone * - * @param workPhone + * @param workPhone */ @JsonProperty(JSON_PROPERTY_WORK_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1624,9 +1963,7 @@ public void setWorkPhone(Phone workPhone) { this.workPhone = workPhone; } - /** - * Return true if this ThreeDS2RequestFields object is equal to o. - */ + /** Return true if this ThreeDS2RequestFields object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -1636,47 +1973,91 @@ public boolean equals(Object o) { return false; } ThreeDS2RequestFields threeDS2RequestFields = (ThreeDS2RequestFields) o; - return Objects.equals(this.acctInfo, threeDS2RequestFields.acctInfo) && - Objects.equals(this.acctType, threeDS2RequestFields.acctType) && - Objects.equals(this.acquirerBIN, threeDS2RequestFields.acquirerBIN) && - Objects.equals(this.acquirerMerchantID, threeDS2RequestFields.acquirerMerchantID) && - Objects.equals(this.addrMatch, threeDS2RequestFields.addrMatch) && - Objects.equals(this.authenticationOnly, threeDS2RequestFields.authenticationOnly) && - Objects.equals(this.challengeIndicator, threeDS2RequestFields.challengeIndicator) && - Objects.equals(this.deviceRenderOptions, threeDS2RequestFields.deviceRenderOptions) && - Objects.equals(this.homePhone, threeDS2RequestFields.homePhone) && - Objects.equals(this.mcc, threeDS2RequestFields.mcc) && - Objects.equals(this.merchantName, threeDS2RequestFields.merchantName) && - Objects.equals(this.messageVersion, threeDS2RequestFields.messageVersion) && - Objects.equals(this.mobilePhone, threeDS2RequestFields.mobilePhone) && - Objects.equals(this.notificationURL, threeDS2RequestFields.notificationURL) && - Objects.equals(this.payTokenInd, threeDS2RequestFields.payTokenInd) && - Objects.equals(this.paymentAuthenticationUseCase, threeDS2RequestFields.paymentAuthenticationUseCase) && - Objects.equals(this.purchaseInstalData, threeDS2RequestFields.purchaseInstalData) && - Objects.equals(this.recurringExpiry, threeDS2RequestFields.recurringExpiry) && - Objects.equals(this.recurringFrequency, threeDS2RequestFields.recurringFrequency) && - Objects.equals(this.sdkAppID, threeDS2RequestFields.sdkAppID) && - Objects.equals(this.sdkEphemPubKey, threeDS2RequestFields.sdkEphemPubKey) && - Objects.equals(this.sdkMaxTimeout, threeDS2RequestFields.sdkMaxTimeout) && - Objects.equals(this.sdkReferenceNumber, threeDS2RequestFields.sdkReferenceNumber) && - Objects.equals(this.sdkTransID, threeDS2RequestFields.sdkTransID) && - Objects.equals(this.threeDSCompInd, threeDS2RequestFields.threeDSCompInd) && - Objects.equals(this.threeDSRequestorAuthenticationInd, threeDS2RequestFields.threeDSRequestorAuthenticationInd) && - Objects.equals(this.threeDSRequestorAuthenticationInfo, threeDS2RequestFields.threeDSRequestorAuthenticationInfo) && - Objects.equals(this.threeDSRequestorChallengeInd, threeDS2RequestFields.threeDSRequestorChallengeInd) && - Objects.equals(this.threeDSRequestorID, threeDS2RequestFields.threeDSRequestorID) && - Objects.equals(this.threeDSRequestorName, threeDS2RequestFields.threeDSRequestorName) && - Objects.equals(this.threeDSRequestorPriorAuthenticationInfo, threeDS2RequestFields.threeDSRequestorPriorAuthenticationInfo) && - Objects.equals(this.threeDSRequestorURL, threeDS2RequestFields.threeDSRequestorURL) && - Objects.equals(this.transType, threeDS2RequestFields.transType) && - Objects.equals(this.transactionType, threeDS2RequestFields.transactionType) && - Objects.equals(this.whiteListStatus, threeDS2RequestFields.whiteListStatus) && - Objects.equals(this.workPhone, threeDS2RequestFields.workPhone); + return Objects.equals(this.acctInfo, threeDS2RequestFields.acctInfo) + && Objects.equals(this.acctType, threeDS2RequestFields.acctType) + && Objects.equals(this.acquirerBIN, threeDS2RequestFields.acquirerBIN) + && Objects.equals(this.acquirerMerchantID, threeDS2RequestFields.acquirerMerchantID) + && Objects.equals(this.addrMatch, threeDS2RequestFields.addrMatch) + && Objects.equals(this.authenticationOnly, threeDS2RequestFields.authenticationOnly) + && Objects.equals(this.challengeIndicator, threeDS2RequestFields.challengeIndicator) + && Objects.equals(this.deviceRenderOptions, threeDS2RequestFields.deviceRenderOptions) + && Objects.equals(this.homePhone, threeDS2RequestFields.homePhone) + && Objects.equals(this.mcc, threeDS2RequestFields.mcc) + && Objects.equals(this.merchantName, threeDS2RequestFields.merchantName) + && Objects.equals(this.messageVersion, threeDS2RequestFields.messageVersion) + && Objects.equals(this.mobilePhone, threeDS2RequestFields.mobilePhone) + && Objects.equals(this.notificationURL, threeDS2RequestFields.notificationURL) + && Objects.equals(this.payTokenInd, threeDS2RequestFields.payTokenInd) + && Objects.equals( + this.paymentAuthenticationUseCase, threeDS2RequestFields.paymentAuthenticationUseCase) + && Objects.equals(this.purchaseInstalData, threeDS2RequestFields.purchaseInstalData) + && Objects.equals(this.recurringExpiry, threeDS2RequestFields.recurringExpiry) + && Objects.equals(this.recurringFrequency, threeDS2RequestFields.recurringFrequency) + && Objects.equals(this.sdkAppID, threeDS2RequestFields.sdkAppID) + && Objects.equals(this.sdkEphemPubKey, threeDS2RequestFields.sdkEphemPubKey) + && Objects.equals(this.sdkMaxTimeout, threeDS2RequestFields.sdkMaxTimeout) + && Objects.equals(this.sdkReferenceNumber, threeDS2RequestFields.sdkReferenceNumber) + && Objects.equals(this.sdkTransID, threeDS2RequestFields.sdkTransID) + && Objects.equals(this.threeDSCompInd, threeDS2RequestFields.threeDSCompInd) + && Objects.equals( + this.threeDSRequestorAuthenticationInd, + threeDS2RequestFields.threeDSRequestorAuthenticationInd) + && Objects.equals( + this.threeDSRequestorAuthenticationInfo, + threeDS2RequestFields.threeDSRequestorAuthenticationInfo) + && Objects.equals( + this.threeDSRequestorChallengeInd, threeDS2RequestFields.threeDSRequestorChallengeInd) + && Objects.equals(this.threeDSRequestorID, threeDS2RequestFields.threeDSRequestorID) + && Objects.equals(this.threeDSRequestorName, threeDS2RequestFields.threeDSRequestorName) + && Objects.equals( + this.threeDSRequestorPriorAuthenticationInfo, + threeDS2RequestFields.threeDSRequestorPriorAuthenticationInfo) + && Objects.equals(this.threeDSRequestorURL, threeDS2RequestFields.threeDSRequestorURL) + && Objects.equals(this.transType, threeDS2RequestFields.transType) + && Objects.equals(this.transactionType, threeDS2RequestFields.transactionType) + && Objects.equals(this.whiteListStatus, threeDS2RequestFields.whiteListStatus) + && Objects.equals(this.workPhone, threeDS2RequestFields.workPhone); } @Override public int hashCode() { - return Objects.hash(acctInfo, acctType, acquirerBIN, acquirerMerchantID, addrMatch, authenticationOnly, challengeIndicator, deviceRenderOptions, homePhone, mcc, merchantName, messageVersion, mobilePhone, notificationURL, payTokenInd, paymentAuthenticationUseCase, purchaseInstalData, recurringExpiry, recurringFrequency, sdkAppID, sdkEphemPubKey, sdkMaxTimeout, sdkReferenceNumber, sdkTransID, threeDSCompInd, threeDSRequestorAuthenticationInd, threeDSRequestorAuthenticationInfo, threeDSRequestorChallengeInd, threeDSRequestorID, threeDSRequestorName, threeDSRequestorPriorAuthenticationInfo, threeDSRequestorURL, transType, transactionType, whiteListStatus, workPhone); + return Objects.hash( + acctInfo, + acctType, + acquirerBIN, + acquirerMerchantID, + addrMatch, + authenticationOnly, + challengeIndicator, + deviceRenderOptions, + homePhone, + mcc, + merchantName, + messageVersion, + mobilePhone, + notificationURL, + payTokenInd, + paymentAuthenticationUseCase, + purchaseInstalData, + recurringExpiry, + recurringFrequency, + sdkAppID, + sdkEphemPubKey, + sdkMaxTimeout, + sdkReferenceNumber, + sdkTransID, + threeDSCompInd, + threeDSRequestorAuthenticationInd, + threeDSRequestorAuthenticationInfo, + threeDSRequestorChallengeInd, + threeDSRequestorID, + threeDSRequestorName, + threeDSRequestorPriorAuthenticationInfo, + threeDSRequestorURL, + transType, + transactionType, + whiteListStatus, + workPhone); } @Override @@ -1690,7 +2071,9 @@ public String toString() { sb.append(" addrMatch: ").append(toIndentedString(addrMatch)).append("\n"); sb.append(" authenticationOnly: ").append(toIndentedString(authenticationOnly)).append("\n"); sb.append(" challengeIndicator: ").append(toIndentedString(challengeIndicator)).append("\n"); - sb.append(" deviceRenderOptions: ").append(toIndentedString(deviceRenderOptions)).append("\n"); + sb.append(" deviceRenderOptions: ") + .append(toIndentedString(deviceRenderOptions)) + .append("\n"); sb.append(" homePhone: ").append(toIndentedString(homePhone)).append("\n"); sb.append(" mcc: ").append(toIndentedString(mcc)).append("\n"); sb.append(" merchantName: ").append(toIndentedString(merchantName)).append("\n"); @@ -1698,7 +2081,9 @@ public String toString() { sb.append(" mobilePhone: ").append(toIndentedString(mobilePhone)).append("\n"); sb.append(" notificationURL: ").append(toIndentedString(notificationURL)).append("\n"); sb.append(" payTokenInd: ").append(toIndentedString(payTokenInd)).append("\n"); - sb.append(" paymentAuthenticationUseCase: ").append(toIndentedString(paymentAuthenticationUseCase)).append("\n"); + sb.append(" paymentAuthenticationUseCase: ") + .append(toIndentedString(paymentAuthenticationUseCase)) + .append("\n"); sb.append(" purchaseInstalData: ").append(toIndentedString(purchaseInstalData)).append("\n"); sb.append(" recurringExpiry: ").append(toIndentedString(recurringExpiry)).append("\n"); sb.append(" recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n"); @@ -1708,13 +2093,25 @@ public String toString() { sb.append(" sdkReferenceNumber: ").append(toIndentedString(sdkReferenceNumber)).append("\n"); sb.append(" sdkTransID: ").append(toIndentedString(sdkTransID)).append("\n"); sb.append(" threeDSCompInd: ").append(toIndentedString(threeDSCompInd)).append("\n"); - sb.append(" threeDSRequestorAuthenticationInd: ").append(toIndentedString(threeDSRequestorAuthenticationInd)).append("\n"); - sb.append(" threeDSRequestorAuthenticationInfo: ").append(toIndentedString(threeDSRequestorAuthenticationInfo)).append("\n"); - sb.append(" threeDSRequestorChallengeInd: ").append(toIndentedString(threeDSRequestorChallengeInd)).append("\n"); + sb.append(" threeDSRequestorAuthenticationInd: ") + .append(toIndentedString(threeDSRequestorAuthenticationInd)) + .append("\n"); + sb.append(" threeDSRequestorAuthenticationInfo: ") + .append(toIndentedString(threeDSRequestorAuthenticationInfo)) + .append("\n"); + sb.append(" threeDSRequestorChallengeInd: ") + .append(toIndentedString(threeDSRequestorChallengeInd)) + .append("\n"); sb.append(" threeDSRequestorID: ").append(toIndentedString(threeDSRequestorID)).append("\n"); - sb.append(" threeDSRequestorName: ").append(toIndentedString(threeDSRequestorName)).append("\n"); - sb.append(" threeDSRequestorPriorAuthenticationInfo: ").append(toIndentedString(threeDSRequestorPriorAuthenticationInfo)).append("\n"); - sb.append(" threeDSRequestorURL: ").append(toIndentedString(threeDSRequestorURL)).append("\n"); + sb.append(" threeDSRequestorName: ") + .append(toIndentedString(threeDSRequestorName)) + .append("\n"); + sb.append(" threeDSRequestorPriorAuthenticationInfo: ") + .append(toIndentedString(threeDSRequestorPriorAuthenticationInfo)) + .append("\n"); + sb.append(" threeDSRequestorURL: ") + .append(toIndentedString(threeDSRequestorURL)) + .append("\n"); sb.append(" transType: ").append(toIndentedString(transType)).append("\n"); sb.append(" transactionType: ").append(toIndentedString(transactionType)).append("\n"); sb.append(" whiteListStatus: ").append(toIndentedString(whiteListStatus)).append("\n"); @@ -1724,8 +2121,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1734,21 +2130,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ThreeDS2RequestFields given an JSON string * * @param jsonString JSON string * @return An instance of ThreeDS2RequestFields - * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDS2RequestFields + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ThreeDS2RequestFields */ public static ThreeDS2RequestFields fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDS2RequestFields.class); } -/** - * Convert an instance of ThreeDS2RequestFields to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ThreeDS2RequestFields to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ThreeDS2ResponseData.java b/src/main/java/com/adyen/model/checkout/ThreeDS2ResponseData.java index d8e9b100b..0820a8dc0 100644 --- a/src/main/java/com/adyen/model/checkout/ThreeDS2ResponseData.java +++ b/src/main/java/com/adyen/model/checkout/ThreeDS2ResponseData.java @@ -2,31 +2,22 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ThreeDS2ResponseData - */ +/** ThreeDS2ResponseData */ @JsonPropertyOrder({ ThreeDS2ResponseData.JSON_PROPERTY_ACS_CHALLENGE_MANDATED, ThreeDS2ResponseData.JSON_PROPERTY_ACS_OPERATOR_I_D, @@ -48,7 +39,6 @@ ThreeDS2ResponseData.JSON_PROPERTY_TRANS_STATUS, ThreeDS2ResponseData.JSON_PROPERTY_TRANS_STATUS_REASON }) - public class ThreeDS2ResponseData { public static final String JSON_PROPERTY_ACS_CHALLENGE_MANDATED = "acsChallengeMandated"; private String acsChallengeMandated; @@ -107,13 +97,12 @@ public class ThreeDS2ResponseData { public static final String JSON_PROPERTY_TRANS_STATUS_REASON = "transStatusReason"; private String transStatusReason; - public ThreeDS2ResponseData() { - } + public ThreeDS2ResponseData() {} /** * acsChallengeMandated * - * @param acsChallengeMandated + * @param acsChallengeMandated * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData acsChallengeMandated(String acsChallengeMandated) { @@ -123,7 +112,8 @@ public ThreeDS2ResponseData acsChallengeMandated(String acsChallengeMandated) { /** * Get acsChallengeMandated - * @return acsChallengeMandated + * + * @return acsChallengeMandated */ @JsonProperty(JSON_PROPERTY_ACS_CHALLENGE_MANDATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -134,7 +124,7 @@ public String getAcsChallengeMandated() { /** * acsChallengeMandated * - * @param acsChallengeMandated + * @param acsChallengeMandated */ @JsonProperty(JSON_PROPERTY_ACS_CHALLENGE_MANDATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,7 +135,7 @@ public void setAcsChallengeMandated(String acsChallengeMandated) { /** * acsOperatorID * - * @param acsOperatorID + * @param acsOperatorID * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData acsOperatorID(String acsOperatorID) { @@ -155,7 +145,8 @@ public ThreeDS2ResponseData acsOperatorID(String acsOperatorID) { /** * Get acsOperatorID - * @return acsOperatorID + * + * @return acsOperatorID */ @JsonProperty(JSON_PROPERTY_ACS_OPERATOR_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -166,7 +157,7 @@ public String getAcsOperatorID() { /** * acsOperatorID * - * @param acsOperatorID + * @param acsOperatorID */ @JsonProperty(JSON_PROPERTY_ACS_OPERATOR_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,7 +168,7 @@ public void setAcsOperatorID(String acsOperatorID) { /** * acsReferenceNumber * - * @param acsReferenceNumber + * @param acsReferenceNumber * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData acsReferenceNumber(String acsReferenceNumber) { @@ -187,7 +178,8 @@ public ThreeDS2ResponseData acsReferenceNumber(String acsReferenceNumber) { /** * Get acsReferenceNumber - * @return acsReferenceNumber + * + * @return acsReferenceNumber */ @JsonProperty(JSON_PROPERTY_ACS_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,7 +190,7 @@ public String getAcsReferenceNumber() { /** * acsReferenceNumber * - * @param acsReferenceNumber + * @param acsReferenceNumber */ @JsonProperty(JSON_PROPERTY_ACS_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -209,7 +201,7 @@ public void setAcsReferenceNumber(String acsReferenceNumber) { /** * acsSignedContent * - * @param acsSignedContent + * @param acsSignedContent * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData acsSignedContent(String acsSignedContent) { @@ -219,7 +211,8 @@ public ThreeDS2ResponseData acsSignedContent(String acsSignedContent) { /** * Get acsSignedContent - * @return acsSignedContent + * + * @return acsSignedContent */ @JsonProperty(JSON_PROPERTY_ACS_SIGNED_CONTENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -230,7 +223,7 @@ public String getAcsSignedContent() { /** * acsSignedContent * - * @param acsSignedContent + * @param acsSignedContent */ @JsonProperty(JSON_PROPERTY_ACS_SIGNED_CONTENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -241,7 +234,7 @@ public void setAcsSignedContent(String acsSignedContent) { /** * acsTransID * - * @param acsTransID + * @param acsTransID * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData acsTransID(String acsTransID) { @@ -251,7 +244,8 @@ public ThreeDS2ResponseData acsTransID(String acsTransID) { /** * Get acsTransID - * @return acsTransID + * + * @return acsTransID */ @JsonProperty(JSON_PROPERTY_ACS_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -262,7 +256,7 @@ public String getAcsTransID() { /** * acsTransID * - * @param acsTransID + * @param acsTransID */ @JsonProperty(JSON_PROPERTY_ACS_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -273,7 +267,7 @@ public void setAcsTransID(String acsTransID) { /** * acsURL * - * @param acsURL + * @param acsURL * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData acsURL(String acsURL) { @@ -283,7 +277,8 @@ public ThreeDS2ResponseData acsURL(String acsURL) { /** * Get acsURL - * @return acsURL + * + * @return acsURL */ @JsonProperty(JSON_PROPERTY_ACS_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -294,7 +289,7 @@ public String getAcsURL() { /** * acsURL * - * @param acsURL + * @param acsURL */ @JsonProperty(JSON_PROPERTY_ACS_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -305,7 +300,7 @@ public void setAcsURL(String acsURL) { /** * authenticationType * - * @param authenticationType + * @param authenticationType * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData authenticationType(String authenticationType) { @@ -315,7 +310,8 @@ public ThreeDS2ResponseData authenticationType(String authenticationType) { /** * Get authenticationType - * @return authenticationType + * + * @return authenticationType */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -326,7 +322,7 @@ public String getAuthenticationType() { /** * authenticationType * - * @param authenticationType + * @param authenticationType */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -337,7 +333,7 @@ public void setAuthenticationType(String authenticationType) { /** * cardHolderInfo * - * @param cardHolderInfo + * @param cardHolderInfo * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData cardHolderInfo(String cardHolderInfo) { @@ -347,7 +343,8 @@ public ThreeDS2ResponseData cardHolderInfo(String cardHolderInfo) { /** * Get cardHolderInfo - * @return cardHolderInfo + * + * @return cardHolderInfo */ @JsonProperty(JSON_PROPERTY_CARD_HOLDER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -358,7 +355,7 @@ public String getCardHolderInfo() { /** * cardHolderInfo * - * @param cardHolderInfo + * @param cardHolderInfo */ @JsonProperty(JSON_PROPERTY_CARD_HOLDER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -369,7 +366,7 @@ public void setCardHolderInfo(String cardHolderInfo) { /** * cavvAlgorithm * - * @param cavvAlgorithm + * @param cavvAlgorithm * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData cavvAlgorithm(String cavvAlgorithm) { @@ -379,7 +376,8 @@ public ThreeDS2ResponseData cavvAlgorithm(String cavvAlgorithm) { /** * Get cavvAlgorithm - * @return cavvAlgorithm + * + * @return cavvAlgorithm */ @JsonProperty(JSON_PROPERTY_CAVV_ALGORITHM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -390,7 +388,7 @@ public String getCavvAlgorithm() { /** * cavvAlgorithm * - * @param cavvAlgorithm + * @param cavvAlgorithm */ @JsonProperty(JSON_PROPERTY_CAVV_ALGORITHM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -401,7 +399,7 @@ public void setCavvAlgorithm(String cavvAlgorithm) { /** * challengeIndicator * - * @param challengeIndicator + * @param challengeIndicator * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData challengeIndicator(String challengeIndicator) { @@ -411,7 +409,8 @@ public ThreeDS2ResponseData challengeIndicator(String challengeIndicator) { /** * Get challengeIndicator - * @return challengeIndicator + * + * @return challengeIndicator */ @JsonProperty(JSON_PROPERTY_CHALLENGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -422,7 +421,7 @@ public String getChallengeIndicator() { /** * challengeIndicator * - * @param challengeIndicator + * @param challengeIndicator */ @JsonProperty(JSON_PROPERTY_CHALLENGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -433,7 +432,7 @@ public void setChallengeIndicator(String challengeIndicator) { /** * dsReferenceNumber * - * @param dsReferenceNumber + * @param dsReferenceNumber * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData dsReferenceNumber(String dsReferenceNumber) { @@ -443,7 +442,8 @@ public ThreeDS2ResponseData dsReferenceNumber(String dsReferenceNumber) { /** * Get dsReferenceNumber - * @return dsReferenceNumber + * + * @return dsReferenceNumber */ @JsonProperty(JSON_PROPERTY_DS_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -454,7 +454,7 @@ public String getDsReferenceNumber() { /** * dsReferenceNumber * - * @param dsReferenceNumber + * @param dsReferenceNumber */ @JsonProperty(JSON_PROPERTY_DS_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -465,7 +465,7 @@ public void setDsReferenceNumber(String dsReferenceNumber) { /** * dsTransID * - * @param dsTransID + * @param dsTransID * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData dsTransID(String dsTransID) { @@ -475,7 +475,8 @@ public ThreeDS2ResponseData dsTransID(String dsTransID) { /** * Get dsTransID - * @return dsTransID + * + * @return dsTransID */ @JsonProperty(JSON_PROPERTY_DS_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -486,7 +487,7 @@ public String getDsTransID() { /** * dsTransID * - * @param dsTransID + * @param dsTransID */ @JsonProperty(JSON_PROPERTY_DS_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -497,7 +498,7 @@ public void setDsTransID(String dsTransID) { /** * exemptionIndicator * - * @param exemptionIndicator + * @param exemptionIndicator * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData exemptionIndicator(String exemptionIndicator) { @@ -507,7 +508,8 @@ public ThreeDS2ResponseData exemptionIndicator(String exemptionIndicator) { /** * Get exemptionIndicator - * @return exemptionIndicator + * + * @return exemptionIndicator */ @JsonProperty(JSON_PROPERTY_EXEMPTION_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -518,7 +520,7 @@ public String getExemptionIndicator() { /** * exemptionIndicator * - * @param exemptionIndicator + * @param exemptionIndicator */ @JsonProperty(JSON_PROPERTY_EXEMPTION_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -529,7 +531,7 @@ public void setExemptionIndicator(String exemptionIndicator) { /** * messageVersion * - * @param messageVersion + * @param messageVersion * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData messageVersion(String messageVersion) { @@ -539,7 +541,8 @@ public ThreeDS2ResponseData messageVersion(String messageVersion) { /** * Get messageVersion - * @return messageVersion + * + * @return messageVersion */ @JsonProperty(JSON_PROPERTY_MESSAGE_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -550,7 +553,7 @@ public String getMessageVersion() { /** * messageVersion * - * @param messageVersion + * @param messageVersion */ @JsonProperty(JSON_PROPERTY_MESSAGE_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -561,7 +564,7 @@ public void setMessageVersion(String messageVersion) { /** * riskScore * - * @param riskScore + * @param riskScore * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData riskScore(String riskScore) { @@ -571,7 +574,8 @@ public ThreeDS2ResponseData riskScore(String riskScore) { /** * Get riskScore - * @return riskScore + * + * @return riskScore */ @JsonProperty(JSON_PROPERTY_RISK_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -582,7 +586,7 @@ public String getRiskScore() { /** * riskScore * - * @param riskScore + * @param riskScore */ @JsonProperty(JSON_PROPERTY_RISK_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -593,7 +597,7 @@ public void setRiskScore(String riskScore) { /** * sdkEphemPubKey * - * @param sdkEphemPubKey + * @param sdkEphemPubKey * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData sdkEphemPubKey(String sdkEphemPubKey) { @@ -603,7 +607,8 @@ public ThreeDS2ResponseData sdkEphemPubKey(String sdkEphemPubKey) { /** * Get sdkEphemPubKey - * @return sdkEphemPubKey + * + * @return sdkEphemPubKey */ @JsonProperty(JSON_PROPERTY_SDK_EPHEM_PUB_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -614,7 +619,7 @@ public String getSdkEphemPubKey() { /** * sdkEphemPubKey * - * @param sdkEphemPubKey + * @param sdkEphemPubKey */ @JsonProperty(JSON_PROPERTY_SDK_EPHEM_PUB_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -625,7 +630,7 @@ public void setSdkEphemPubKey(String sdkEphemPubKey) { /** * threeDSServerTransID * - * @param threeDSServerTransID + * @param threeDSServerTransID * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData threeDSServerTransID(String threeDSServerTransID) { @@ -635,7 +640,8 @@ public ThreeDS2ResponseData threeDSServerTransID(String threeDSServerTransID) { /** * Get threeDSServerTransID - * @return threeDSServerTransID + * + * @return threeDSServerTransID */ @JsonProperty(JSON_PROPERTY_THREE_D_S_SERVER_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -646,7 +652,7 @@ public String getThreeDSServerTransID() { /** * threeDSServerTransID * - * @param threeDSServerTransID + * @param threeDSServerTransID */ @JsonProperty(JSON_PROPERTY_THREE_D_S_SERVER_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -657,7 +663,7 @@ public void setThreeDSServerTransID(String threeDSServerTransID) { /** * transStatus * - * @param transStatus + * @param transStatus * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData transStatus(String transStatus) { @@ -667,7 +673,8 @@ public ThreeDS2ResponseData transStatus(String transStatus) { /** * Get transStatus - * @return transStatus + * + * @return transStatus */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -678,7 +685,7 @@ public String getTransStatus() { /** * transStatus * - * @param transStatus + * @param transStatus */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -689,7 +696,7 @@ public void setTransStatus(String transStatus) { /** * transStatusReason * - * @param transStatusReason + * @param transStatusReason * @return the current {@code ThreeDS2ResponseData} instance, allowing for method chaining */ public ThreeDS2ResponseData transStatusReason(String transStatusReason) { @@ -699,7 +706,8 @@ public ThreeDS2ResponseData transStatusReason(String transStatusReason) { /** * Get transStatusReason - * @return transStatusReason + * + * @return transStatusReason */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -710,7 +718,7 @@ public String getTransStatusReason() { /** * transStatusReason * - * @param transStatusReason + * @param transStatusReason */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -718,9 +726,7 @@ public void setTransStatusReason(String transStatusReason) { this.transStatusReason = transStatusReason; } - /** - * Return true if this ThreeDS2ResponseData object is equal to o. - */ + /** Return true if this ThreeDS2ResponseData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -730,37 +736,58 @@ public boolean equals(Object o) { return false; } ThreeDS2ResponseData threeDS2ResponseData = (ThreeDS2ResponseData) o; - return Objects.equals(this.acsChallengeMandated, threeDS2ResponseData.acsChallengeMandated) && - Objects.equals(this.acsOperatorID, threeDS2ResponseData.acsOperatorID) && - Objects.equals(this.acsReferenceNumber, threeDS2ResponseData.acsReferenceNumber) && - Objects.equals(this.acsSignedContent, threeDS2ResponseData.acsSignedContent) && - Objects.equals(this.acsTransID, threeDS2ResponseData.acsTransID) && - Objects.equals(this.acsURL, threeDS2ResponseData.acsURL) && - Objects.equals(this.authenticationType, threeDS2ResponseData.authenticationType) && - Objects.equals(this.cardHolderInfo, threeDS2ResponseData.cardHolderInfo) && - Objects.equals(this.cavvAlgorithm, threeDS2ResponseData.cavvAlgorithm) && - Objects.equals(this.challengeIndicator, threeDS2ResponseData.challengeIndicator) && - Objects.equals(this.dsReferenceNumber, threeDS2ResponseData.dsReferenceNumber) && - Objects.equals(this.dsTransID, threeDS2ResponseData.dsTransID) && - Objects.equals(this.exemptionIndicator, threeDS2ResponseData.exemptionIndicator) && - Objects.equals(this.messageVersion, threeDS2ResponseData.messageVersion) && - Objects.equals(this.riskScore, threeDS2ResponseData.riskScore) && - Objects.equals(this.sdkEphemPubKey, threeDS2ResponseData.sdkEphemPubKey) && - Objects.equals(this.threeDSServerTransID, threeDS2ResponseData.threeDSServerTransID) && - Objects.equals(this.transStatus, threeDS2ResponseData.transStatus) && - Objects.equals(this.transStatusReason, threeDS2ResponseData.transStatusReason); + return Objects.equals(this.acsChallengeMandated, threeDS2ResponseData.acsChallengeMandated) + && Objects.equals(this.acsOperatorID, threeDS2ResponseData.acsOperatorID) + && Objects.equals(this.acsReferenceNumber, threeDS2ResponseData.acsReferenceNumber) + && Objects.equals(this.acsSignedContent, threeDS2ResponseData.acsSignedContent) + && Objects.equals(this.acsTransID, threeDS2ResponseData.acsTransID) + && Objects.equals(this.acsURL, threeDS2ResponseData.acsURL) + && Objects.equals(this.authenticationType, threeDS2ResponseData.authenticationType) + && Objects.equals(this.cardHolderInfo, threeDS2ResponseData.cardHolderInfo) + && Objects.equals(this.cavvAlgorithm, threeDS2ResponseData.cavvAlgorithm) + && Objects.equals(this.challengeIndicator, threeDS2ResponseData.challengeIndicator) + && Objects.equals(this.dsReferenceNumber, threeDS2ResponseData.dsReferenceNumber) + && Objects.equals(this.dsTransID, threeDS2ResponseData.dsTransID) + && Objects.equals(this.exemptionIndicator, threeDS2ResponseData.exemptionIndicator) + && Objects.equals(this.messageVersion, threeDS2ResponseData.messageVersion) + && Objects.equals(this.riskScore, threeDS2ResponseData.riskScore) + && Objects.equals(this.sdkEphemPubKey, threeDS2ResponseData.sdkEphemPubKey) + && Objects.equals(this.threeDSServerTransID, threeDS2ResponseData.threeDSServerTransID) + && Objects.equals(this.transStatus, threeDS2ResponseData.transStatus) + && Objects.equals(this.transStatusReason, threeDS2ResponseData.transStatusReason); } @Override public int hashCode() { - return Objects.hash(acsChallengeMandated, acsOperatorID, acsReferenceNumber, acsSignedContent, acsTransID, acsURL, authenticationType, cardHolderInfo, cavvAlgorithm, challengeIndicator, dsReferenceNumber, dsTransID, exemptionIndicator, messageVersion, riskScore, sdkEphemPubKey, threeDSServerTransID, transStatus, transStatusReason); + return Objects.hash( + acsChallengeMandated, + acsOperatorID, + acsReferenceNumber, + acsSignedContent, + acsTransID, + acsURL, + authenticationType, + cardHolderInfo, + cavvAlgorithm, + challengeIndicator, + dsReferenceNumber, + dsTransID, + exemptionIndicator, + messageVersion, + riskScore, + sdkEphemPubKey, + threeDSServerTransID, + transStatus, + transStatusReason); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ThreeDS2ResponseData {\n"); - sb.append(" acsChallengeMandated: ").append(toIndentedString(acsChallengeMandated)).append("\n"); + sb.append(" acsChallengeMandated: ") + .append(toIndentedString(acsChallengeMandated)) + .append("\n"); sb.append(" acsOperatorID: ").append(toIndentedString(acsOperatorID)).append("\n"); sb.append(" acsReferenceNumber: ").append(toIndentedString(acsReferenceNumber)).append("\n"); sb.append(" acsSignedContent: ").append(toIndentedString(acsSignedContent)).append("\n"); @@ -776,7 +803,9 @@ public String toString() { sb.append(" messageVersion: ").append(toIndentedString(messageVersion)).append("\n"); sb.append(" riskScore: ").append(toIndentedString(riskScore)).append("\n"); sb.append(" sdkEphemPubKey: ").append(toIndentedString(sdkEphemPubKey)).append("\n"); - sb.append(" threeDSServerTransID: ").append(toIndentedString(threeDSServerTransID)).append("\n"); + sb.append(" threeDSServerTransID: ") + .append(toIndentedString(threeDSServerTransID)) + .append("\n"); sb.append(" transStatus: ").append(toIndentedString(transStatus)).append("\n"); sb.append(" transStatusReason: ").append(toIndentedString(transStatusReason)).append("\n"); sb.append("}"); @@ -784,8 +813,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -794,21 +822,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ThreeDS2ResponseData given an JSON string * * @param jsonString JSON string * @return An instance of ThreeDS2ResponseData - * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDS2ResponseData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ThreeDS2ResponseData */ public static ThreeDS2ResponseData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDS2ResponseData.class); } -/** - * Convert an instance of ThreeDS2ResponseData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ThreeDS2ResponseData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ThreeDS2Result.java b/src/main/java/com/adyen/model/checkout/ThreeDS2Result.java index 3fbd42b5f..ad1b3164b 100644 --- a/src/main/java/com/adyen/model/checkout/ThreeDS2Result.java +++ b/src/main/java/com/adyen/model/checkout/ThreeDS2Result.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * ThreeDS2Result - */ +/** ThreeDS2Result */ @JsonPropertyOrder({ ThreeDS2Result.JSON_PROPERTY_AUTHENTICATION_VALUE, ThreeDS2Result.JSON_PROPERTY_CAVV_ALGORITHM, @@ -43,7 +38,6 @@ ThreeDS2Result.JSON_PROPERTY_TRANS_STATUS_REASON, ThreeDS2Result.JSON_PROPERTY_WHITE_LIST_STATUS }) - public class ThreeDS2Result { public static final String JSON_PROPERTY_AUTHENTICATION_VALUE = "authenticationValue"; private String authenticationValue; @@ -52,10 +46,11 @@ public class ThreeDS2Result { private String cavvAlgorithm; /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the + * authentication has been cancelled. For possible values, refer to [3D Secure API + * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). */ public enum ChallengeCancelEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -75,7 +70,7 @@ public enum ChallengeCancelEnum { private String value; ChallengeCancelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -96,7 +91,11 @@ public static ChallengeCancelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ChallengeCancelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChallengeCancelEnum.values())); + LOG.warning( + "ChallengeCancelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ChallengeCancelEnum.values())); return null; } } @@ -111,10 +110,11 @@ public static ChallengeCancelEnum fromValue(String value) { private String eci; /** - * Indicates the exemption type that was applied by the issuer to the authentication, if exemption applied. Allowed values: * `lowValue` * `secureCorporate` * `trustedBeneficiary` * `transactionRiskAnalysis` + * Indicates the exemption type that was applied by the issuer to the authentication, if exemption + * applied. Allowed values: * `lowValue` * `secureCorporate` * + * `trustedBeneficiary` * `transactionRiskAnalysis` */ public enum ExemptionIndicatorEnum { - LOWVALUE(String.valueOf("lowValue")), SECURECORPORATE(String.valueOf("secureCorporate")), @@ -128,7 +128,7 @@ public enum ExemptionIndicatorEnum { private String value; ExemptionIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -149,7 +149,11 @@ public static ExemptionIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ExemptionIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ExemptionIndicatorEnum.values())); + LOG.warning( + "ExemptionIndicatorEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ExemptionIndicatorEnum.values())); return null; } } @@ -164,10 +168,12 @@ public static ExemptionIndicatorEnum fromValue(String value) { private String riskScore; /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No + * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor + * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional + * risk analysis is already performed) * **06** — Data Only */ public enum ThreeDSRequestorChallengeIndEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -180,12 +186,13 @@ public enum ThreeDSRequestorChallengeIndEnum { _06(String.valueOf("06")); - private static final Logger LOG = Logger.getLogger(ThreeDSRequestorChallengeIndEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(ThreeDSRequestorChallengeIndEnum.class.getName()); private String value; ThreeDSRequestorChallengeIndEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -206,12 +213,17 @@ public static ThreeDSRequestorChallengeIndEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ThreeDSRequestorChallengeIndEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ThreeDSRequestorChallengeIndEnum.values())); + LOG.warning( + "ThreeDSRequestorChallengeIndEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ThreeDSRequestorChallengeIndEnum.values())); return null; } } - public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND = "threeDSRequestorChallengeInd"; + public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND = + "threeDSRequestorChallengeInd"; private ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd; public static final String JSON_PROPERTY_THREE_D_S_SERVER_TRANS_I_D = "threeDSServerTransID"; @@ -229,13 +241,13 @@ public static ThreeDSRequestorChallengeIndEnum fromValue(String value) { public static final String JSON_PROPERTY_WHITE_LIST_STATUS = "whiteListStatus"; private String whiteListStatus; - public ThreeDS2Result() { - } + public ThreeDS2Result() {} /** * The `authenticationValue` value as defined in the 3D Secure 2 specification. * - * @param authenticationValue The `authenticationValue` value as defined in the 3D Secure 2 specification. + * @param authenticationValue The `authenticationValue` value as defined in the 3D + * Secure 2 specification. * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result authenticationValue(String authenticationValue) { @@ -245,7 +257,9 @@ public ThreeDS2Result authenticationValue(String authenticationValue) { /** * The `authenticationValue` value as defined in the 3D Secure 2 specification. - * @return authenticationValue The `authenticationValue` value as defined in the 3D Secure 2 specification. + * + * @return authenticationValue The `authenticationValue` value as defined in the 3D + * Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -256,7 +270,8 @@ public String getAuthenticationValue() { /** * The `authenticationValue` value as defined in the 3D Secure 2 specification. * - * @param authenticationValue The `authenticationValue` value as defined in the 3D Secure 2 specification. + * @param authenticationValue The `authenticationValue` value as defined in the 3D + * Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -265,9 +280,11 @@ public void setAuthenticationValue(String authenticationValue) { } /** - * The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires integrations. + * The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires + * integrations. * - * @param cavvAlgorithm The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires integrations. + * @param cavvAlgorithm The algorithm used by the ACS to calculate the authentication value, only + * for Cartes Bancaires integrations. * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result cavvAlgorithm(String cavvAlgorithm) { @@ -276,8 +293,11 @@ public ThreeDS2Result cavvAlgorithm(String cavvAlgorithm) { } /** - * The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires integrations. - * @return cavvAlgorithm The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires integrations. + * The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires + * integrations. + * + * @return cavvAlgorithm The algorithm used by the ACS to calculate the authentication value, only + * for Cartes Bancaires integrations. */ @JsonProperty(JSON_PROPERTY_CAVV_ALGORITHM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -286,9 +306,11 @@ public String getCavvAlgorithm() { } /** - * The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires integrations. + * The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires + * integrations. * - * @param cavvAlgorithm The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires integrations. + * @param cavvAlgorithm The algorithm used by the ACS to calculate the authentication value, only + * for Cartes Bancaires integrations. */ @JsonProperty(JSON_PROPERTY_CAVV_ALGORITHM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -297,9 +319,14 @@ public void setCavvAlgorithm(String cavvAlgorithm) { } /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the + * authentication has been cancelled. For possible values, refer to [3D Secure API + * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). * - * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory + * Server (DS) that the authentication has been cancelled. For possible values, refer to [3D + * Secure API + * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result challengeCancel(ChallengeCancelEnum challengeCancel) { @@ -308,8 +335,14 @@ public ThreeDS2Result challengeCancel(ChallengeCancelEnum challengeCancel) { } /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). - * @return challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the + * authentication has been cancelled. For possible values, refer to [3D Secure API + * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * + * @return challengeCancel Indicator informing the Access Control Server (ACS) and the Directory + * Server (DS) that the authentication has been cancelled. For possible values, refer to [3D + * Secure API + * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). */ @JsonProperty(JSON_PROPERTY_CHALLENGE_CANCEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -318,9 +351,14 @@ public ChallengeCancelEnum getChallengeCancel() { } /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the + * authentication has been cancelled. For possible values, refer to [3D Secure API + * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). * - * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory + * Server (DS) that the authentication has been cancelled. For possible values, refer to [3D + * Secure API + * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). */ @JsonProperty(JSON_PROPERTY_CHALLENGE_CANCEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -341,6 +379,7 @@ public ThreeDS2Result dsTransID(String dsTransID) { /** * The `dsTransID` value as defined in the 3D Secure 2 specification. + * * @return dsTransID The `dsTransID` value as defined in the 3D Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_DS_TRANS_I_D) @@ -373,6 +412,7 @@ public ThreeDS2Result eci(String eci) { /** * The `eci` value as defined in the 3D Secure 2 specification. + * * @return eci The `eci` value as defined in the 3D Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_ECI) @@ -393,9 +433,14 @@ public void setEci(String eci) { } /** - * Indicates the exemption type that was applied by the issuer to the authentication, if exemption applied. Allowed values: * `lowValue` * `secureCorporate` * `trustedBeneficiary` * `transactionRiskAnalysis` + * Indicates the exemption type that was applied by the issuer to the authentication, if exemption + * applied. Allowed values: * `lowValue` * `secureCorporate` * + * `trustedBeneficiary` * `transactionRiskAnalysis` * - * @param exemptionIndicator Indicates the exemption type that was applied by the issuer to the authentication, if exemption applied. Allowed values: * `lowValue` * `secureCorporate` * `trustedBeneficiary` * `transactionRiskAnalysis` + * @param exemptionIndicator Indicates the exemption type that was applied by the issuer to the + * authentication, if exemption applied. Allowed values: * `lowValue` * + * `secureCorporate` * `trustedBeneficiary` * + * `transactionRiskAnalysis` * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result exemptionIndicator(ExemptionIndicatorEnum exemptionIndicator) { @@ -404,8 +449,14 @@ public ThreeDS2Result exemptionIndicator(ExemptionIndicatorEnum exemptionIndicat } /** - * Indicates the exemption type that was applied by the issuer to the authentication, if exemption applied. Allowed values: * `lowValue` * `secureCorporate` * `trustedBeneficiary` * `transactionRiskAnalysis` - * @return exemptionIndicator Indicates the exemption type that was applied by the issuer to the authentication, if exemption applied. Allowed values: * `lowValue` * `secureCorporate` * `trustedBeneficiary` * `transactionRiskAnalysis` + * Indicates the exemption type that was applied by the issuer to the authentication, if exemption + * applied. Allowed values: * `lowValue` * `secureCorporate` * + * `trustedBeneficiary` * `transactionRiskAnalysis` + * + * @return exemptionIndicator Indicates the exemption type that was applied by the issuer to the + * authentication, if exemption applied. Allowed values: * `lowValue` * + * `secureCorporate` * `trustedBeneficiary` * + * `transactionRiskAnalysis` */ @JsonProperty(JSON_PROPERTY_EXEMPTION_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -414,9 +465,14 @@ public ExemptionIndicatorEnum getExemptionIndicator() { } /** - * Indicates the exemption type that was applied by the issuer to the authentication, if exemption applied. Allowed values: * `lowValue` * `secureCorporate` * `trustedBeneficiary` * `transactionRiskAnalysis` + * Indicates the exemption type that was applied by the issuer to the authentication, if exemption + * applied. Allowed values: * `lowValue` * `secureCorporate` * + * `trustedBeneficiary` * `transactionRiskAnalysis` * - * @param exemptionIndicator Indicates the exemption type that was applied by the issuer to the authentication, if exemption applied. Allowed values: * `lowValue` * `secureCorporate` * `trustedBeneficiary` * `transactionRiskAnalysis` + * @param exemptionIndicator Indicates the exemption type that was applied by the issuer to the + * authentication, if exemption applied. Allowed values: * `lowValue` * + * `secureCorporate` * `trustedBeneficiary` * + * `transactionRiskAnalysis` */ @JsonProperty(JSON_PROPERTY_EXEMPTION_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -427,7 +483,8 @@ public void setExemptionIndicator(ExemptionIndicatorEnum exemptionIndicator) { /** * The `messageVersion` value as defined in the 3D Secure 2 specification. * - * @param messageVersion The `messageVersion` value as defined in the 3D Secure 2 specification. + * @param messageVersion The `messageVersion` value as defined in the 3D Secure 2 + * specification. * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result messageVersion(String messageVersion) { @@ -437,7 +494,9 @@ public ThreeDS2Result messageVersion(String messageVersion) { /** * The `messageVersion` value as defined in the 3D Secure 2 specification. - * @return messageVersion The `messageVersion` value as defined in the 3D Secure 2 specification. + * + * @return messageVersion The `messageVersion` value as defined in the 3D Secure 2 + * specification. */ @JsonProperty(JSON_PROPERTY_MESSAGE_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -448,7 +507,8 @@ public String getMessageVersion() { /** * The `messageVersion` value as defined in the 3D Secure 2 specification. * - * @param messageVersion The `messageVersion` value as defined in the 3D Secure 2 specification. + * @param messageVersion The `messageVersion` value as defined in the 3D Secure 2 + * specification. */ @JsonProperty(JSON_PROPERTY_MESSAGE_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -469,6 +529,7 @@ public ThreeDS2Result riskScore(String riskScore) { /** * Risk score calculated by Cartes Bancaires Directory Server (DS). + * * @return riskScore Risk score calculated by Cartes Bancaires Directory Server (DS). */ @JsonProperty(JSON_PROPERTY_RISK_SCORE) @@ -489,19 +550,35 @@ public void setRiskScore(String riskScore) { } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No + * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor + * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional + * risk analysis is already performed) * **06** — Data Only * - * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this + * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * + * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested + * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * + * **06** — Data Only * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ - public ThreeDS2Result threeDSRequestorChallengeInd(ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { + public ThreeDS2Result threeDSRequestorChallengeInd( + ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { this.threeDSRequestorChallengeInd = threeDSRequestorChallengeInd; return this; } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only - * @return threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No + * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor + * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional + * risk analysis is already performed) * **06** — Data Only + * + * @return threeDSRequestorChallengeInd Indicates whether a challenge is requested for this + * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * + * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested + * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * + * **06** — Data Only */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -510,20 +587,29 @@ public ThreeDSRequestorChallengeIndEnum getThreeDSRequestorChallengeInd() { } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No + * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor + * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional + * risk analysis is already performed) * **06** — Data Only * - * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this + * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * + * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested + * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * + * **06** — Data Only */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setThreeDSRequestorChallengeInd(ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { + public void setThreeDSRequestorChallengeInd( + ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { this.threeDSRequestorChallengeInd = threeDSRequestorChallengeInd; } /** * The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. * - * @param threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. + * @param threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D + * Secure 2 specification. * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result threeDSServerTransID(String threeDSServerTransID) { @@ -533,7 +619,9 @@ public ThreeDS2Result threeDSServerTransID(String threeDSServerTransID) { /** * The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. - * @return threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. + * + * @return threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D + * Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_SERVER_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -544,7 +632,8 @@ public String getThreeDSServerTransID() { /** * The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. * - * @param threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. + * @param threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D + * Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_SERVER_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -565,6 +654,7 @@ public ThreeDS2Result timestamp(String timestamp) { /** * The `timestamp` value of the 3D Secure 2 authentication. + * * @return timestamp The `timestamp` value of the 3D Secure 2 authentication. */ @JsonProperty(JSON_PROPERTY_TIMESTAMP) @@ -587,7 +677,8 @@ public void setTimestamp(String timestamp) { /** * The `transStatus` value as defined in the 3D Secure 2 specification. * - * @param transStatus The `transStatus` value as defined in the 3D Secure 2 specification. + * @param transStatus The `transStatus` value as defined in the 3D Secure 2 + * specification. * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result transStatus(String transStatus) { @@ -597,7 +688,9 @@ public ThreeDS2Result transStatus(String transStatus) { /** * The `transStatus` value as defined in the 3D Secure 2 specification. - * @return transStatus The `transStatus` value as defined in the 3D Secure 2 specification. + * + * @return transStatus The `transStatus` value as defined in the 3D Secure 2 + * specification. */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -608,7 +701,8 @@ public String getTransStatus() { /** * The `transStatus` value as defined in the 3D Secure 2 specification. * - * @param transStatus The `transStatus` value as defined in the 3D Secure 2 specification. + * @param transStatus The `transStatus` value as defined in the 3D Secure 2 + * specification. */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -617,9 +711,13 @@ public void setTransStatus(String transStatus) { } /** - * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * Provides information on why the `transStatus` field has the specified value. For + * possible values, refer to [our + * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). * - * @param transStatusReason Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * @param transStatusReason Provides information on why the `transStatus` field has the + * specified value. For possible values, refer to [our + * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result transStatusReason(String transStatusReason) { @@ -628,8 +726,13 @@ public ThreeDS2Result transStatusReason(String transStatusReason) { } /** - * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). - * @return transStatusReason Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * Provides information on why the `transStatus` field has the specified value. For + * possible values, refer to [our + * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * + * @return transStatusReason Provides information on why the `transStatus` field has the + * specified value. For possible values, refer to [our + * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -638,9 +741,13 @@ public String getTransStatusReason() { } /** - * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * Provides information on why the `transStatus` field has the specified value. For + * possible values, refer to [our + * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). * - * @param transStatusReason Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * @param transStatusReason Provides information on why the `transStatus` field has the + * specified value. For possible values, refer to [our + * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -651,7 +758,8 @@ public void setTransStatusReason(String transStatusReason) { /** * The `whiteListStatus` value as defined in the 3D Secure 2 specification. * - * @param whiteListStatus The `whiteListStatus` value as defined in the 3D Secure 2 specification. + * @param whiteListStatus The `whiteListStatus` value as defined in the 3D Secure 2 + * specification. * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result whiteListStatus(String whiteListStatus) { @@ -661,7 +769,9 @@ public ThreeDS2Result whiteListStatus(String whiteListStatus) { /** * The `whiteListStatus` value as defined in the 3D Secure 2 specification. - * @return whiteListStatus The `whiteListStatus` value as defined in the 3D Secure 2 specification. + * + * @return whiteListStatus The `whiteListStatus` value as defined in the 3D Secure 2 + * specification. */ @JsonProperty(JSON_PROPERTY_WHITE_LIST_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -672,7 +782,8 @@ public String getWhiteListStatus() { /** * The `whiteListStatus` value as defined in the 3D Secure 2 specification. * - * @param whiteListStatus The `whiteListStatus` value as defined in the 3D Secure 2 specification. + * @param whiteListStatus The `whiteListStatus` value as defined in the 3D Secure 2 + * specification. */ @JsonProperty(JSON_PROPERTY_WHITE_LIST_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -680,9 +791,7 @@ public void setWhiteListStatus(String whiteListStatus) { this.whiteListStatus = whiteListStatus; } - /** - * Return true if this ThreeDS2Result object is equal to o. - */ + /** Return true if this ThreeDS2Result object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -692,32 +801,49 @@ public boolean equals(Object o) { return false; } ThreeDS2Result threeDS2Result = (ThreeDS2Result) o; - return Objects.equals(this.authenticationValue, threeDS2Result.authenticationValue) && - Objects.equals(this.cavvAlgorithm, threeDS2Result.cavvAlgorithm) && - Objects.equals(this.challengeCancel, threeDS2Result.challengeCancel) && - Objects.equals(this.dsTransID, threeDS2Result.dsTransID) && - Objects.equals(this.eci, threeDS2Result.eci) && - Objects.equals(this.exemptionIndicator, threeDS2Result.exemptionIndicator) && - Objects.equals(this.messageVersion, threeDS2Result.messageVersion) && - Objects.equals(this.riskScore, threeDS2Result.riskScore) && - Objects.equals(this.threeDSRequestorChallengeInd, threeDS2Result.threeDSRequestorChallengeInd) && - Objects.equals(this.threeDSServerTransID, threeDS2Result.threeDSServerTransID) && - Objects.equals(this.timestamp, threeDS2Result.timestamp) && - Objects.equals(this.transStatus, threeDS2Result.transStatus) && - Objects.equals(this.transStatusReason, threeDS2Result.transStatusReason) && - Objects.equals(this.whiteListStatus, threeDS2Result.whiteListStatus); + return Objects.equals(this.authenticationValue, threeDS2Result.authenticationValue) + && Objects.equals(this.cavvAlgorithm, threeDS2Result.cavvAlgorithm) + && Objects.equals(this.challengeCancel, threeDS2Result.challengeCancel) + && Objects.equals(this.dsTransID, threeDS2Result.dsTransID) + && Objects.equals(this.eci, threeDS2Result.eci) + && Objects.equals(this.exemptionIndicator, threeDS2Result.exemptionIndicator) + && Objects.equals(this.messageVersion, threeDS2Result.messageVersion) + && Objects.equals(this.riskScore, threeDS2Result.riskScore) + && Objects.equals( + this.threeDSRequestorChallengeInd, threeDS2Result.threeDSRequestorChallengeInd) + && Objects.equals(this.threeDSServerTransID, threeDS2Result.threeDSServerTransID) + && Objects.equals(this.timestamp, threeDS2Result.timestamp) + && Objects.equals(this.transStatus, threeDS2Result.transStatus) + && Objects.equals(this.transStatusReason, threeDS2Result.transStatusReason) + && Objects.equals(this.whiteListStatus, threeDS2Result.whiteListStatus); } @Override public int hashCode() { - return Objects.hash(authenticationValue, cavvAlgorithm, challengeCancel, dsTransID, eci, exemptionIndicator, messageVersion, riskScore, threeDSRequestorChallengeInd, threeDSServerTransID, timestamp, transStatus, transStatusReason, whiteListStatus); + return Objects.hash( + authenticationValue, + cavvAlgorithm, + challengeCancel, + dsTransID, + eci, + exemptionIndicator, + messageVersion, + riskScore, + threeDSRequestorChallengeInd, + threeDSServerTransID, + timestamp, + transStatus, + transStatusReason, + whiteListStatus); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ThreeDS2Result {\n"); - sb.append(" authenticationValue: ").append(toIndentedString(authenticationValue)).append("\n"); + sb.append(" authenticationValue: ") + .append(toIndentedString(authenticationValue)) + .append("\n"); sb.append(" cavvAlgorithm: ").append(toIndentedString(cavvAlgorithm)).append("\n"); sb.append(" challengeCancel: ").append(toIndentedString(challengeCancel)).append("\n"); sb.append(" dsTransID: ").append(toIndentedString(dsTransID)).append("\n"); @@ -725,8 +851,12 @@ public String toString() { sb.append(" exemptionIndicator: ").append(toIndentedString(exemptionIndicator)).append("\n"); sb.append(" messageVersion: ").append(toIndentedString(messageVersion)).append("\n"); sb.append(" riskScore: ").append(toIndentedString(riskScore)).append("\n"); - sb.append(" threeDSRequestorChallengeInd: ").append(toIndentedString(threeDSRequestorChallengeInd)).append("\n"); - sb.append(" threeDSServerTransID: ").append(toIndentedString(threeDSServerTransID)).append("\n"); + sb.append(" threeDSRequestorChallengeInd: ") + .append(toIndentedString(threeDSRequestorChallengeInd)) + .append("\n"); + sb.append(" threeDSServerTransID: ") + .append(toIndentedString(threeDSServerTransID)) + .append("\n"); sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); sb.append(" transStatus: ").append(toIndentedString(transStatus)).append("\n"); sb.append(" transStatusReason: ").append(toIndentedString(transStatusReason)).append("\n"); @@ -736,8 +866,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -746,7 +875,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ThreeDS2Result given an JSON string * * @param jsonString JSON string @@ -756,11 +885,12 @@ private String toIndentedString(Object o) { public static ThreeDS2Result fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDS2Result.class); } -/** - * Convert an instance of ThreeDS2Result to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ThreeDS2Result to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ThreeDSRequestData.java b/src/main/java/com/adyen/model/checkout/ThreeDSRequestData.java index 9409ce597..a6be4a5a3 100644 --- a/src/main/java/com/adyen/model/checkout/ThreeDSRequestData.java +++ b/src/main/java/com/adyen/model/checkout/ThreeDSRequestData.java @@ -2,44 +2,39 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * ThreeDSRequestData - */ +/** ThreeDSRequestData */ @JsonPropertyOrder({ ThreeDSRequestData.JSON_PROPERTY_CHALLENGE_WINDOW_SIZE, ThreeDSRequestData.JSON_PROPERTY_DATA_ONLY, ThreeDSRequestData.JSON_PROPERTY_NATIVE_THREE_D_S, ThreeDSRequestData.JSON_PROPERTY_THREE_D_S_VERSION }) - public class ThreeDSRequestData { /** - * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * + * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size + * of 600x400 * **05** - Fullscreen */ public enum ChallengeWindowSizeEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -55,7 +50,7 @@ public enum ChallengeWindowSizeEnum { private String value; ChallengeWindowSizeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -76,7 +71,11 @@ public static ChallengeWindowSizeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ChallengeWindowSizeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChallengeWindowSizeEnum.values())); + LOG.warning( + "ChallengeWindowSizeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ChallengeWindowSizeEnum.values())); return null; } } @@ -85,10 +84,11 @@ public static ChallengeWindowSizeEnum fromValue(String value) { private ChallengeWindowSizeEnum challengeWindowSize; /** - * Required to trigger the [data-only flow](https://docs.adyen.com/online-payments/3d-secure/data-only/). When set to **true**, forces the 3D Secure 2 data-only flow for all transactions where it is possible. + * Required to trigger the [data-only + * flow](https://docs.adyen.com/online-payments/3d-secure/data-only/). When set to **true**, + * forces the 3D Secure 2 data-only flow for all transactions where it is possible. */ public enum DataOnlyEnum { - FALSE(String.valueOf("false")), TRUE(String.valueOf("true")); @@ -98,7 +98,7 @@ public enum DataOnlyEnum { private String value; DataOnlyEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -119,7 +119,11 @@ public static DataOnlyEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("DataOnlyEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(DataOnlyEnum.values())); + LOG.warning( + "DataOnlyEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(DataOnlyEnum.values())); return null; } } @@ -128,10 +132,14 @@ public static DataOnlyEnum fromValue(String value) { private DataOnlyEnum dataOnly; /** - * Indicates if [native 3D Secure authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be triggered when available. Adyen can still select to fallback to the redirect flow to optimize authorization rates and improve the shopper's experience. Possible values: * **preferred**: Use native 3D Secure authentication when available. * **disabled**: Use the redirect 3D Secure authentication flow. + * Indicates if [native 3D Secure + * authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be + * triggered when available. Adyen can still select to fallback to the redirect flow to optimize + * authorization rates and improve the shopper's experience. Possible values: * **preferred**: + * Use native 3D Secure authentication when available. * **disabled**: Use the redirect 3D Secure + * authentication flow. */ public enum NativeThreeDSEnum { - PREFERRED(String.valueOf("preferred")), DISABLED(String.valueOf("disabled")); @@ -141,7 +149,7 @@ public enum NativeThreeDSEnum { private String value; NativeThreeDSEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -162,7 +170,11 @@ public static NativeThreeDSEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("NativeThreeDSEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(NativeThreeDSEnum.values())); + LOG.warning( + "NativeThreeDSEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(NativeThreeDSEnum.values())); return null; } } @@ -170,11 +182,8 @@ public static NativeThreeDSEnum fromValue(String value) { public static final String JSON_PROPERTY_NATIVE_THREE_D_S = "nativeThreeDS"; private NativeThreeDSEnum nativeThreeDS; - /** - * The version of 3D Secure to use. Possible values: * **2.1.0** * **2.2.0** - */ + /** The version of 3D Secure to use. Possible values: * **2.1.0** * **2.2.0** */ public enum ThreeDSVersionEnum { - _2_1_0(String.valueOf("2.1.0")), _2_2_0(String.valueOf("2.2.0")); @@ -184,7 +193,7 @@ public enum ThreeDSVersionEnum { private String value; ThreeDSVersionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -205,7 +214,11 @@ public static ThreeDSVersionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ThreeDSVersionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ThreeDSVersionEnum.values())); + LOG.warning( + "ThreeDSVersionEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ThreeDSVersionEnum.values())); return null; } } @@ -213,13 +226,16 @@ public static ThreeDSVersionEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_VERSION = "threeDSVersion"; private ThreeDSVersionEnum threeDSVersion; - public ThreeDSRequestData() { - } + public ThreeDSRequestData() {} /** - * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * + * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size + * of 600x400 * **05** - Fullscreen * - * @param challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + * @param challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the + * cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** + * - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen * @return the current {@code ThreeDSRequestData} instance, allowing for method chaining */ public ThreeDSRequestData challengeWindowSize(ChallengeWindowSizeEnum challengeWindowSize) { @@ -228,8 +244,13 @@ public ThreeDSRequestData challengeWindowSize(ChallengeWindowSizeEnum challengeW } /** - * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen - * @return challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * + * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size + * of 600x400 * **05** - Fullscreen + * + * @return challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the + * cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** + * - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen */ @JsonProperty(JSON_PROPERTY_CHALLENGE_WINDOW_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -238,9 +259,13 @@ public ChallengeWindowSizeEnum getChallengeWindowSize() { } /** - * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * + * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size + * of 600x400 * **05** - Fullscreen * - * @param challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + * @param challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the + * cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** + * - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen */ @JsonProperty(JSON_PROPERTY_CHALLENGE_WINDOW_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -249,9 +274,13 @@ public void setChallengeWindowSize(ChallengeWindowSizeEnum challengeWindowSize) } /** - * Required to trigger the [data-only flow](https://docs.adyen.com/online-payments/3d-secure/data-only/). When set to **true**, forces the 3D Secure 2 data-only flow for all transactions where it is possible. + * Required to trigger the [data-only + * flow](https://docs.adyen.com/online-payments/3d-secure/data-only/). When set to **true**, + * forces the 3D Secure 2 data-only flow for all transactions where it is possible. * - * @param dataOnly Required to trigger the [data-only flow](https://docs.adyen.com/online-payments/3d-secure/data-only/). When set to **true**, forces the 3D Secure 2 data-only flow for all transactions where it is possible. + * @param dataOnly Required to trigger the [data-only + * flow](https://docs.adyen.com/online-payments/3d-secure/data-only/). When set to **true**, + * forces the 3D Secure 2 data-only flow for all transactions where it is possible. * @return the current {@code ThreeDSRequestData} instance, allowing for method chaining */ public ThreeDSRequestData dataOnly(DataOnlyEnum dataOnly) { @@ -260,8 +289,13 @@ public ThreeDSRequestData dataOnly(DataOnlyEnum dataOnly) { } /** - * Required to trigger the [data-only flow](https://docs.adyen.com/online-payments/3d-secure/data-only/). When set to **true**, forces the 3D Secure 2 data-only flow for all transactions where it is possible. - * @return dataOnly Required to trigger the [data-only flow](https://docs.adyen.com/online-payments/3d-secure/data-only/). When set to **true**, forces the 3D Secure 2 data-only flow for all transactions where it is possible. + * Required to trigger the [data-only + * flow](https://docs.adyen.com/online-payments/3d-secure/data-only/). When set to **true**, + * forces the 3D Secure 2 data-only flow for all transactions where it is possible. + * + * @return dataOnly Required to trigger the [data-only + * flow](https://docs.adyen.com/online-payments/3d-secure/data-only/). When set to **true**, + * forces the 3D Secure 2 data-only flow for all transactions where it is possible. */ @JsonProperty(JSON_PROPERTY_DATA_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -270,9 +304,13 @@ public DataOnlyEnum getDataOnly() { } /** - * Required to trigger the [data-only flow](https://docs.adyen.com/online-payments/3d-secure/data-only/). When set to **true**, forces the 3D Secure 2 data-only flow for all transactions where it is possible. + * Required to trigger the [data-only + * flow](https://docs.adyen.com/online-payments/3d-secure/data-only/). When set to **true**, + * forces the 3D Secure 2 data-only flow for all transactions where it is possible. * - * @param dataOnly Required to trigger the [data-only flow](https://docs.adyen.com/online-payments/3d-secure/data-only/). When set to **true**, forces the 3D Secure 2 data-only flow for all transactions where it is possible. + * @param dataOnly Required to trigger the [data-only + * flow](https://docs.adyen.com/online-payments/3d-secure/data-only/). When set to **true**, + * forces the 3D Secure 2 data-only flow for all transactions where it is possible. */ @JsonProperty(JSON_PROPERTY_DATA_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -281,9 +319,19 @@ public void setDataOnly(DataOnlyEnum dataOnly) { } /** - * Indicates if [native 3D Secure authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be triggered when available. Adyen can still select to fallback to the redirect flow to optimize authorization rates and improve the shopper's experience. Possible values: * **preferred**: Use native 3D Secure authentication when available. * **disabled**: Use the redirect 3D Secure authentication flow. + * Indicates if [native 3D Secure + * authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be + * triggered when available. Adyen can still select to fallback to the redirect flow to optimize + * authorization rates and improve the shopper's experience. Possible values: * **preferred**: + * Use native 3D Secure authentication when available. * **disabled**: Use the redirect 3D Secure + * authentication flow. * - * @param nativeThreeDS Indicates if [native 3D Secure authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be triggered when available. Adyen can still select to fallback to the redirect flow to optimize authorization rates and improve the shopper's experience. Possible values: * **preferred**: Use native 3D Secure authentication when available. * **disabled**: Use the redirect 3D Secure authentication flow. + * @param nativeThreeDS Indicates if [native 3D Secure + * authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be + * triggered when available. Adyen can still select to fallback to the redirect flow to + * optimize authorization rates and improve the shopper's experience. Possible values: * + * **preferred**: Use native 3D Secure authentication when available. * **disabled**: Use the + * redirect 3D Secure authentication flow. * @return the current {@code ThreeDSRequestData} instance, allowing for method chaining */ public ThreeDSRequestData nativeThreeDS(NativeThreeDSEnum nativeThreeDS) { @@ -292,8 +340,19 @@ public ThreeDSRequestData nativeThreeDS(NativeThreeDSEnum nativeThreeDS) { } /** - * Indicates if [native 3D Secure authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be triggered when available. Adyen can still select to fallback to the redirect flow to optimize authorization rates and improve the shopper's experience. Possible values: * **preferred**: Use native 3D Secure authentication when available. * **disabled**: Use the redirect 3D Secure authentication flow. - * @return nativeThreeDS Indicates if [native 3D Secure authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be triggered when available. Adyen can still select to fallback to the redirect flow to optimize authorization rates and improve the shopper's experience. Possible values: * **preferred**: Use native 3D Secure authentication when available. * **disabled**: Use the redirect 3D Secure authentication flow. + * Indicates if [native 3D Secure + * authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be + * triggered when available. Adyen can still select to fallback to the redirect flow to optimize + * authorization rates and improve the shopper's experience. Possible values: * **preferred**: + * Use native 3D Secure authentication when available. * **disabled**: Use the redirect 3D Secure + * authentication flow. + * + * @return nativeThreeDS Indicates if [native 3D Secure + * authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be + * triggered when available. Adyen can still select to fallback to the redirect flow to + * optimize authorization rates and improve the shopper's experience. Possible values: * + * **preferred**: Use native 3D Secure authentication when available. * **disabled**: Use the + * redirect 3D Secure authentication flow. */ @JsonProperty(JSON_PROPERTY_NATIVE_THREE_D_S) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -302,9 +361,19 @@ public NativeThreeDSEnum getNativeThreeDS() { } /** - * Indicates if [native 3D Secure authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be triggered when available. Adyen can still select to fallback to the redirect flow to optimize authorization rates and improve the shopper's experience. Possible values: * **preferred**: Use native 3D Secure authentication when available. * **disabled**: Use the redirect 3D Secure authentication flow. + * Indicates if [native 3D Secure + * authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be + * triggered when available. Adyen can still select to fallback to the redirect flow to optimize + * authorization rates and improve the shopper's experience. Possible values: * **preferred**: + * Use native 3D Secure authentication when available. * **disabled**: Use the redirect 3D Secure + * authentication flow. * - * @param nativeThreeDS Indicates if [native 3D Secure authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be triggered when available. Adyen can still select to fallback to the redirect flow to optimize authorization rates and improve the shopper's experience. Possible values: * **preferred**: Use native 3D Secure authentication when available. * **disabled**: Use the redirect 3D Secure authentication flow. + * @param nativeThreeDS Indicates if [native 3D Secure + * authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be + * triggered when available. Adyen can still select to fallback to the redirect flow to + * optimize authorization rates and improve the shopper's experience. Possible values: * + * **preferred**: Use native 3D Secure authentication when available. * **disabled**: Use the + * redirect 3D Secure authentication flow. */ @JsonProperty(JSON_PROPERTY_NATIVE_THREE_D_S) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -313,9 +382,9 @@ public void setNativeThreeDS(NativeThreeDSEnum nativeThreeDS) { } /** - * The version of 3D Secure to use. Possible values: * **2.1.0** * **2.2.0** + * The version of 3D Secure to use. Possible values: * **2.1.0** * **2.2.0** * - * @param threeDSVersion The version of 3D Secure to use. Possible values: * **2.1.0** * **2.2.0** + * @param threeDSVersion The version of 3D Secure to use. Possible values: * **2.1.0** * **2.2.0** * @return the current {@code ThreeDSRequestData} instance, allowing for method chaining */ public ThreeDSRequestData threeDSVersion(ThreeDSVersionEnum threeDSVersion) { @@ -324,8 +393,10 @@ public ThreeDSRequestData threeDSVersion(ThreeDSVersionEnum threeDSVersion) { } /** - * The version of 3D Secure to use. Possible values: * **2.1.0** * **2.2.0** - * @return threeDSVersion The version of 3D Secure to use. Possible values: * **2.1.0** * **2.2.0** + * The version of 3D Secure to use. Possible values: * **2.1.0** * **2.2.0** + * + * @return threeDSVersion The version of 3D Secure to use. Possible values: * **2.1.0** * + * **2.2.0** */ @JsonProperty(JSON_PROPERTY_THREE_D_S_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -334,9 +405,9 @@ public ThreeDSVersionEnum getThreeDSVersion() { } /** - * The version of 3D Secure to use. Possible values: * **2.1.0** * **2.2.0** + * The version of 3D Secure to use. Possible values: * **2.1.0** * **2.2.0** * - * @param threeDSVersion The version of 3D Secure to use. Possible values: * **2.1.0** * **2.2.0** + * @param threeDSVersion The version of 3D Secure to use. Possible values: * **2.1.0** * **2.2.0** */ @JsonProperty(JSON_PROPERTY_THREE_D_S_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -344,9 +415,7 @@ public void setThreeDSVersion(ThreeDSVersionEnum threeDSVersion) { this.threeDSVersion = threeDSVersion; } - /** - * Return true if this ThreeDSRequestData object is equal to o. - */ + /** Return true if this ThreeDSRequestData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -356,10 +425,10 @@ public boolean equals(Object o) { return false; } ThreeDSRequestData threeDSRequestData = (ThreeDSRequestData) o; - return Objects.equals(this.challengeWindowSize, threeDSRequestData.challengeWindowSize) && - Objects.equals(this.dataOnly, threeDSRequestData.dataOnly) && - Objects.equals(this.nativeThreeDS, threeDSRequestData.nativeThreeDS) && - Objects.equals(this.threeDSVersion, threeDSRequestData.threeDSVersion); + return Objects.equals(this.challengeWindowSize, threeDSRequestData.challengeWindowSize) + && Objects.equals(this.dataOnly, threeDSRequestData.dataOnly) + && Objects.equals(this.nativeThreeDS, threeDSRequestData.nativeThreeDS) + && Objects.equals(this.threeDSVersion, threeDSRequestData.threeDSVersion); } @Override @@ -371,7 +440,9 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ThreeDSRequestData {\n"); - sb.append(" challengeWindowSize: ").append(toIndentedString(challengeWindowSize)).append("\n"); + sb.append(" challengeWindowSize: ") + .append(toIndentedString(challengeWindowSize)) + .append("\n"); sb.append(" dataOnly: ").append(toIndentedString(dataOnly)).append("\n"); sb.append(" nativeThreeDS: ").append(toIndentedString(nativeThreeDS)).append("\n"); sb.append(" threeDSVersion: ").append(toIndentedString(threeDSVersion)).append("\n"); @@ -380,8 +451,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -390,21 +460,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ThreeDSRequestData given an JSON string * * @param jsonString JSON string * @return An instance of ThreeDSRequestData - * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDSRequestData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ThreeDSRequestData */ public static ThreeDSRequestData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDSRequestData.class); } -/** - * Convert an instance of ThreeDSRequestData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ThreeDSRequestData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ThreeDSRequestorAuthenticationInfo.java b/src/main/java/com/adyen/model/checkout/ThreeDSRequestorAuthenticationInfo.java index 8d38dffc5..308310740 100644 --- a/src/main/java/com/adyen/model/checkout/ThreeDSRequestorAuthenticationInfo.java +++ b/src/main/java/com/adyen/model/checkout/ThreeDSRequestorAuthenticationInfo.java @@ -2,46 +2,46 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * ThreeDSRequestorAuthenticationInfo - */ +/** ThreeDSRequestorAuthenticationInfo */ @JsonPropertyOrder({ ThreeDSRequestorAuthenticationInfo.JSON_PROPERTY_THREE_D_S_REQ_AUTH_DATA, ThreeDSRequestorAuthenticationInfo.JSON_PROPERTY_THREE_D_S_REQ_AUTH_METHOD, ThreeDSRequestorAuthenticationInfo.JSON_PROPERTY_THREE_D_S_REQ_AUTH_TIMESTAMP }) - public class ThreeDSRequestorAuthenticationInfo { public static final String JSON_PROPERTY_THREE_D_S_REQ_AUTH_DATA = "threeDSReqAuthData"; private String threeDSReqAuthData; /** - * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system using third-party authentication. * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator. + * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** + * — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * + * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own + * credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using + * federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using + * issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system + * using third-party authentication. * **06** — Login to the cardholder account at the 3DS + * Requestor system using FIDO Authenticator. */ public enum ThreeDSReqAuthMethodEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -59,7 +59,7 @@ public enum ThreeDSReqAuthMethodEnum { private String value; ThreeDSReqAuthMethodEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -80,7 +80,11 @@ public static ThreeDSReqAuthMethodEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ThreeDSReqAuthMethodEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ThreeDSReqAuthMethodEnum.values())); + LOG.warning( + "ThreeDSReqAuthMethodEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ThreeDSReqAuthMethodEnum.values())); return null; } } @@ -91,14 +95,15 @@ public static ThreeDSReqAuthMethodEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_REQ_AUTH_TIMESTAMP = "threeDSReqAuthTimestamp"; private String threeDSReqAuthTimestamp; - public ThreeDSRequestorAuthenticationInfo() { - } + public ThreeDSRequestorAuthenticationInfo() {} /** * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. * - * @param threeDSReqAuthData Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. - * @return the current {@code ThreeDSRequestorAuthenticationInfo} instance, allowing for method chaining + * @param threeDSReqAuthData Data that documents and supports a specific authentication process. + * Maximum length: 2048 bytes. + * @return the current {@code ThreeDSRequestorAuthenticationInfo} instance, allowing for method + * chaining */ public ThreeDSRequestorAuthenticationInfo threeDSReqAuthData(String threeDSReqAuthData) { this.threeDSReqAuthData = threeDSReqAuthData; @@ -107,7 +112,9 @@ public ThreeDSRequestorAuthenticationInfo threeDSReqAuthData(String threeDSReqAu /** * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. - * @return threeDSReqAuthData Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. + * + * @return threeDSReqAuthData Data that documents and supports a specific authentication process. + * Maximum length: 2048 bytes. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_AUTH_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,7 +125,8 @@ public String getThreeDSReqAuthData() { /** * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. * - * @param threeDSReqAuthData Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. + * @param threeDSReqAuthData Data that documents and supports a specific authentication process. + * Maximum length: 2048 bytes. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_AUTH_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,19 +135,52 @@ public void setThreeDSReqAuthData(String threeDSReqAuthData) { } /** - * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system using third-party authentication. * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator. + * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** + * — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * + * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own + * credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using + * federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using + * issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system + * using third-party authentication. * **06** — Login to the cardholder account at the 3DS + * Requestor system using FIDO Authenticator. * - * @param threeDSReqAuthMethod Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system using third-party authentication. * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator. - * @return the current {@code ThreeDSRequestorAuthenticationInfo} instance, allowing for method chaining + * @param threeDSReqAuthMethod Mechanism used by the Cardholder to authenticate to the 3DS + * Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for + * example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at + * the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the + * cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the + * cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login + * to the cardholder account at the 3DS Requestor system using third-party authentication. * + * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO + * Authenticator. + * @return the current {@code ThreeDSRequestorAuthenticationInfo} instance, allowing for method + * chaining */ - public ThreeDSRequestorAuthenticationInfo threeDSReqAuthMethod(ThreeDSReqAuthMethodEnum threeDSReqAuthMethod) { + public ThreeDSRequestorAuthenticationInfo threeDSReqAuthMethod( + ThreeDSReqAuthMethodEnum threeDSReqAuthMethod) { this.threeDSReqAuthMethod = threeDSReqAuthMethod; return this; } /** - * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system using third-party authentication. * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator. - * @return threeDSReqAuthMethod Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system using third-party authentication. * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator. + * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** + * — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * + * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own + * credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using + * federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using + * issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system + * using third-party authentication. * **06** — Login to the cardholder account at the 3DS + * Requestor system using FIDO Authenticator. + * + * @return threeDSReqAuthMethod Mechanism used by the Cardholder to authenticate to the 3DS + * Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for + * example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at + * the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the + * cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the + * cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login + * to the cardholder account at the 3DS Requestor system using third-party authentication. * + * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO + * Authenticator. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_AUTH_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,9 +189,24 @@ public ThreeDSReqAuthMethodEnum getThreeDSReqAuthMethod() { } /** - * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system using third-party authentication. * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator. + * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** + * — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * + * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own + * credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using + * federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using + * issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system + * using third-party authentication. * **06** — Login to the cardholder account at the 3DS + * Requestor system using FIDO Authenticator. * - * @param threeDSReqAuthMethod Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system using third-party authentication. * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator. + * @param threeDSReqAuthMethod Mechanism used by the Cardholder to authenticate to the 3DS + * Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for + * example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at + * the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the + * cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the + * cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login + * to the cardholder account at the 3DS Requestor system using third-party authentication. * + * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO + * Authenticator. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_AUTH_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,17 +217,22 @@ public void setThreeDSReqAuthMethod(ThreeDSReqAuthMethodEnum threeDSReqAuthMetho /** * Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM * - * @param threeDSReqAuthTimestamp Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM - * @return the current {@code ThreeDSRequestorAuthenticationInfo} instance, allowing for method chaining + * @param threeDSReqAuthTimestamp Date and time in UTC of the cardholder authentication. Format: + * YYYYMMDDHHMM + * @return the current {@code ThreeDSRequestorAuthenticationInfo} instance, allowing for method + * chaining */ - public ThreeDSRequestorAuthenticationInfo threeDSReqAuthTimestamp(String threeDSReqAuthTimestamp) { + public ThreeDSRequestorAuthenticationInfo threeDSReqAuthTimestamp( + String threeDSReqAuthTimestamp) { this.threeDSReqAuthTimestamp = threeDSReqAuthTimestamp; return this; } /** * Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM - * @return threeDSReqAuthTimestamp Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM + * + * @return threeDSReqAuthTimestamp Date and time in UTC of the cardholder authentication. Format: + * YYYYMMDDHHMM */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_AUTH_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,7 +243,8 @@ public String getThreeDSReqAuthTimestamp() { /** * Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM * - * @param threeDSReqAuthTimestamp Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM + * @param threeDSReqAuthTimestamp Date and time in UTC of the cardholder authentication. Format: + * YYYYMMDDHHMM */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_AUTH_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,9 +252,7 @@ public void setThreeDSReqAuthTimestamp(String threeDSReqAuthTimestamp) { this.threeDSReqAuthTimestamp = threeDSReqAuthTimestamp; } - /** - * Return true if this ThreeDSRequestorAuthenticationInfo object is equal to o. - */ + /** Return true if this ThreeDSRequestorAuthenticationInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -201,10 +261,15 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo = (ThreeDSRequestorAuthenticationInfo) o; - return Objects.equals(this.threeDSReqAuthData, threeDSRequestorAuthenticationInfo.threeDSReqAuthData) && - Objects.equals(this.threeDSReqAuthMethod, threeDSRequestorAuthenticationInfo.threeDSReqAuthMethod) && - Objects.equals(this.threeDSReqAuthTimestamp, threeDSRequestorAuthenticationInfo.threeDSReqAuthTimestamp); + ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo = + (ThreeDSRequestorAuthenticationInfo) o; + return Objects.equals( + this.threeDSReqAuthData, threeDSRequestorAuthenticationInfo.threeDSReqAuthData) + && Objects.equals( + this.threeDSReqAuthMethod, threeDSRequestorAuthenticationInfo.threeDSReqAuthMethod) + && Objects.equals( + this.threeDSReqAuthTimestamp, + threeDSRequestorAuthenticationInfo.threeDSReqAuthTimestamp); } @Override @@ -217,15 +282,18 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ThreeDSRequestorAuthenticationInfo {\n"); sb.append(" threeDSReqAuthData: ").append(toIndentedString(threeDSReqAuthData)).append("\n"); - sb.append(" threeDSReqAuthMethod: ").append(toIndentedString(threeDSReqAuthMethod)).append("\n"); - sb.append(" threeDSReqAuthTimestamp: ").append(toIndentedString(threeDSReqAuthTimestamp)).append("\n"); + sb.append(" threeDSReqAuthMethod: ") + .append(toIndentedString(threeDSReqAuthMethod)) + .append("\n"); + sb.append(" threeDSReqAuthTimestamp: ") + .append(toIndentedString(threeDSReqAuthTimestamp)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -234,21 +302,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ThreeDSRequestorAuthenticationInfo given an JSON string * * @param jsonString JSON string * @return An instance of ThreeDSRequestorAuthenticationInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDSRequestorAuthenticationInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ThreeDSRequestorAuthenticationInfo */ - public static ThreeDSRequestorAuthenticationInfo fromJson(String jsonString) throws JsonProcessingException { + public static ThreeDSRequestorAuthenticationInfo fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDSRequestorAuthenticationInfo.class); } -/** - * Convert an instance of ThreeDSRequestorAuthenticationInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ThreeDSRequestorAuthenticationInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ThreeDSRequestorPriorAuthenticationInfo.java b/src/main/java/com/adyen/model/checkout/ThreeDSRequestorPriorAuthenticationInfo.java index ddbc281a0..024ad833a 100644 --- a/src/main/java/com/adyen/model/checkout/ThreeDSRequestorPriorAuthenticationInfo.java +++ b/src/main/java/com/adyen/model/checkout/ThreeDSRequestorPriorAuthenticationInfo.java @@ -2,47 +2,43 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * ThreeDSRequestorPriorAuthenticationInfo - */ +/** ThreeDSRequestorPriorAuthenticationInfo */ @JsonPropertyOrder({ ThreeDSRequestorPriorAuthenticationInfo.JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_DATA, ThreeDSRequestorPriorAuthenticationInfo.JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_METHOD, ThreeDSRequestorPriorAuthenticationInfo.JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_TIMESTAMP, ThreeDSRequestorPriorAuthenticationInfo.JSON_PROPERTY_THREE_D_S_REQ_PRIOR_REF }) - public class ThreeDSRequestorPriorAuthenticationInfo { - public static final String JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_DATA = "threeDSReqPriorAuthData"; + public static final String JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_DATA = + "threeDSReqPriorAuthData"; private String threeDSReqPriorAuthData; /** - * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. + * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed + * values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge + * occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. */ public enum ThreeDSReqPriorAuthMethodEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -51,12 +47,13 @@ public enum ThreeDSReqPriorAuthMethodEnum { _04(String.valueOf("04")); - private static final Logger LOG = Logger.getLogger(ThreeDSReqPriorAuthMethodEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(ThreeDSReqPriorAuthMethodEnum.class.getName()); private String value; ThreeDSReqPriorAuthMethodEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -77,37 +74,47 @@ public static ThreeDSReqPriorAuthMethodEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ThreeDSReqPriorAuthMethodEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ThreeDSReqPriorAuthMethodEnum.values())); + LOG.warning( + "ThreeDSReqPriorAuthMethodEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ThreeDSReqPriorAuthMethodEnum.values())); return null; } } - public static final String JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_METHOD = "threeDSReqPriorAuthMethod"; + public static final String JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_METHOD = + "threeDSReqPriorAuthMethod"; private ThreeDSReqPriorAuthMethodEnum threeDSReqPriorAuthMethod; - public static final String JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_TIMESTAMP = "threeDSReqPriorAuthTimestamp"; + public static final String JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_TIMESTAMP = + "threeDSReqPriorAuthTimestamp"; private String threeDSReqPriorAuthTimestamp; public static final String JSON_PROPERTY_THREE_D_S_REQ_PRIOR_REF = "threeDSReqPriorRef"; private String threeDSReqPriorRef; - public ThreeDSRequestorPriorAuthenticationInfo() { - } + public ThreeDSRequestorPriorAuthenticationInfo() {} /** * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. * - * @param threeDSReqPriorAuthData Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. - * @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for method chaining + * @param threeDSReqPriorAuthData Data that documents and supports a specific authentication + * process. Maximum length: 2048 bytes. + * @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for + * method chaining */ - public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorAuthData(String threeDSReqPriorAuthData) { + public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorAuthData( + String threeDSReqPriorAuthData) { this.threeDSReqPriorAuthData = threeDSReqPriorAuthData; return this; } /** * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. - * @return threeDSReqPriorAuthData Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. + * + * @return threeDSReqPriorAuthData Data that documents and supports a specific authentication + * process. Maximum length: 2048 bytes. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,7 +125,8 @@ public String getThreeDSReqPriorAuthData() { /** * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. * - * @param threeDSReqPriorAuthData Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. + * @param threeDSReqPriorAuthData Data that documents and supports a specific authentication + * process. Maximum length: 2048 bytes. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,19 +135,32 @@ public void setThreeDSReqPriorAuthData(String threeDSReqPriorAuthData) { } /** - * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. + * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed + * values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge + * occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. * - * @param threeDSReqPriorAuthMethod Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. - * @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for method chaining + * @param threeDSReqPriorAuthMethod Mechanism used by the Cardholder to previously authenticate to + * the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. + * * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other + * issuer methods. + * @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for + * method chaining */ - public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorAuthMethod(ThreeDSReqPriorAuthMethodEnum threeDSReqPriorAuthMethod) { + public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorAuthMethod( + ThreeDSReqPriorAuthMethodEnum threeDSReqPriorAuthMethod) { this.threeDSReqPriorAuthMethod = threeDSReqPriorAuthMethod; return this; } /** - * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. - * @return threeDSReqPriorAuthMethod Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. + * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed + * values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge + * occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. + * + * @return threeDSReqPriorAuthMethod Mechanism used by the Cardholder to previously authenticate + * to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by + * ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — + * Other issuer methods. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,30 +169,41 @@ public ThreeDSReqPriorAuthMethodEnum getThreeDSReqPriorAuthMethod() { } /** - * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. + * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed + * values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge + * occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. * - * @param threeDSReqPriorAuthMethod Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. + * @param threeDSReqPriorAuthMethod Mechanism used by the Cardholder to previously authenticate to + * the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. + * * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other + * issuer methods. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setThreeDSReqPriorAuthMethod(ThreeDSReqPriorAuthMethodEnum threeDSReqPriorAuthMethod) { + public void setThreeDSReqPriorAuthMethod( + ThreeDSReqPriorAuthMethodEnum threeDSReqPriorAuthMethod) { this.threeDSReqPriorAuthMethod = threeDSReqPriorAuthMethod; } /** * Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM * - * @param threeDSReqPriorAuthTimestamp Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM - * @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for method chaining + * @param threeDSReqPriorAuthTimestamp Date and time in UTC of the prior cardholder + * authentication. Format: YYYYMMDDHHMM + * @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for + * method chaining */ - public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorAuthTimestamp(String threeDSReqPriorAuthTimestamp) { + public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorAuthTimestamp( + String threeDSReqPriorAuthTimestamp) { this.threeDSReqPriorAuthTimestamp = threeDSReqPriorAuthTimestamp; return this; } /** * Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM - * @return threeDSReqPriorAuthTimestamp Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM + * + * @return threeDSReqPriorAuthTimestamp Date and time in UTC of the prior cardholder + * authentication. Format: YYYYMMDDHHMM */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,7 +214,8 @@ public String getThreeDSReqPriorAuthTimestamp() { /** * Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM * - * @param threeDSReqPriorAuthTimestamp Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM + * @param threeDSReqPriorAuthTimestamp Date and time in UTC of the prior cardholder + * authentication. Format: YYYYMMDDHHMM */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,10 +224,17 @@ public void setThreeDSReqPriorAuthTimestamp(String threeDSReqPriorAuthTimestamp) } /** - * This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters. + * This data element provides additional information to the ACS to determine the best approach for + * handing a request. This data element contains an ACS Transaction ID for a prior authenticated + * transaction. For example, the first recurring transaction that was authenticated with the + * cardholder. Length: 30 characters. * - * @param threeDSReqPriorRef This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters. - * @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for method chaining + * @param threeDSReqPriorRef This data element provides additional information to the ACS to + * determine the best approach for handing a request. This data element contains an ACS + * Transaction ID for a prior authenticated transaction. For example, the first recurring + * transaction that was authenticated with the cardholder. Length: 30 characters. + * @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for + * method chaining */ public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorRef(String threeDSReqPriorRef) { this.threeDSReqPriorRef = threeDSReqPriorRef; @@ -202,8 +242,15 @@ public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorRef(String threeDS } /** - * This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters. - * @return threeDSReqPriorRef This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters. + * This data element provides additional information to the ACS to determine the best approach for + * handing a request. This data element contains an ACS Transaction ID for a prior authenticated + * transaction. For example, the first recurring transaction that was authenticated with the + * cardholder. Length: 30 characters. + * + * @return threeDSReqPriorRef This data element provides additional information to the ACS to + * determine the best approach for handing a request. This data element contains an ACS + * Transaction ID for a prior authenticated transaction. For example, the first recurring + * transaction that was authenticated with the cardholder. Length: 30 characters. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -212,9 +259,15 @@ public String getThreeDSReqPriorRef() { } /** - * This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters. + * This data element provides additional information to the ACS to determine the best approach for + * handing a request. This data element contains an ACS Transaction ID for a prior authenticated + * transaction. For example, the first recurring transaction that was authenticated with the + * cardholder. Length: 30 characters. * - * @param threeDSReqPriorRef This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters. + * @param threeDSReqPriorRef This data element provides additional information to the ACS to + * determine the best approach for handing a request. This data element contains an ACS + * Transaction ID for a prior authenticated transaction. For example, the first recurring + * transaction that was authenticated with the cardholder. Length: 30 characters. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -222,9 +275,7 @@ public void setThreeDSReqPriorRef(String threeDSReqPriorRef) { this.threeDSReqPriorRef = threeDSReqPriorRef; } - /** - * Return true if this ThreeDSRequestorPriorAuthenticationInfo object is equal to o. - */ + /** Return true if this ThreeDSRequestorPriorAuthenticationInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -233,33 +284,50 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo = (ThreeDSRequestorPriorAuthenticationInfo) o; - return Objects.equals(this.threeDSReqPriorAuthData, threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorAuthData) && - Objects.equals(this.threeDSReqPriorAuthMethod, threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorAuthMethod) && - Objects.equals(this.threeDSReqPriorAuthTimestamp, threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorAuthTimestamp) && - Objects.equals(this.threeDSReqPriorRef, threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorRef); + ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo = + (ThreeDSRequestorPriorAuthenticationInfo) o; + return Objects.equals( + this.threeDSReqPriorAuthData, + threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorAuthData) + && Objects.equals( + this.threeDSReqPriorAuthMethod, + threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorAuthMethod) + && Objects.equals( + this.threeDSReqPriorAuthTimestamp, + threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorAuthTimestamp) + && Objects.equals( + this.threeDSReqPriorRef, threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorRef); } @Override public int hashCode() { - return Objects.hash(threeDSReqPriorAuthData, threeDSReqPriorAuthMethod, threeDSReqPriorAuthTimestamp, threeDSReqPriorRef); + return Objects.hash( + threeDSReqPriorAuthData, + threeDSReqPriorAuthMethod, + threeDSReqPriorAuthTimestamp, + threeDSReqPriorRef); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ThreeDSRequestorPriorAuthenticationInfo {\n"); - sb.append(" threeDSReqPriorAuthData: ").append(toIndentedString(threeDSReqPriorAuthData)).append("\n"); - sb.append(" threeDSReqPriorAuthMethod: ").append(toIndentedString(threeDSReqPriorAuthMethod)).append("\n"); - sb.append(" threeDSReqPriorAuthTimestamp: ").append(toIndentedString(threeDSReqPriorAuthTimestamp)).append("\n"); + sb.append(" threeDSReqPriorAuthData: ") + .append(toIndentedString(threeDSReqPriorAuthData)) + .append("\n"); + sb.append(" threeDSReqPriorAuthMethod: ") + .append(toIndentedString(threeDSReqPriorAuthMethod)) + .append("\n"); + sb.append(" threeDSReqPriorAuthTimestamp: ") + .append(toIndentedString(threeDSReqPriorAuthTimestamp)) + .append("\n"); sb.append(" threeDSReqPriorRef: ").append(toIndentedString(threeDSReqPriorRef)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -268,21 +336,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ThreeDSRequestorPriorAuthenticationInfo given an JSON string * * @param jsonString JSON string * @return An instance of ThreeDSRequestorPriorAuthenticationInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDSRequestorPriorAuthenticationInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ThreeDSRequestorPriorAuthenticationInfo */ - public static ThreeDSRequestorPriorAuthenticationInfo fromJson(String jsonString) throws JsonProcessingException { + public static ThreeDSRequestorPriorAuthenticationInfo fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDSRequestorPriorAuthenticationInfo.class); } -/** - * Convert an instance of ThreeDSRequestorPriorAuthenticationInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ThreeDSRequestorPriorAuthenticationInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ThreeDSecureData.java b/src/main/java/com/adyen/model/checkout/ThreeDSecureData.java index 5c3acc8e2..a3a49acb1 100644 --- a/src/main/java/com/adyen/model/checkout/ThreeDSecureData.java +++ b/src/main/java/com/adyen/model/checkout/ThreeDSecureData.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * ThreeDSecureData - */ +/** ThreeDSecureData */ @JsonPropertyOrder({ ThreeDSecureData.JSON_PROPERTY_AUTHENTICATION_RESPONSE, ThreeDSecureData.JSON_PROPERTY_CAVV, @@ -41,13 +36,12 @@ ThreeDSecureData.JSON_PROPERTY_TRANS_STATUS_REASON, ThreeDSecureData.JSON_PROPERTY_XID }) - public class ThreeDSecureData { /** - * In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. + * In 3D Secure 2, this is the `transStatus` from the challenge result. If the + * transaction was frictionless, omit this parameter. */ public enum AuthenticationResponseEnum { - Y(String.valueOf("Y")), N(String.valueOf("N")), @@ -61,7 +55,7 @@ public enum AuthenticationResponseEnum { private String value; AuthenticationResponseEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -82,7 +76,11 @@ public static AuthenticationResponseEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AuthenticationResponseEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AuthenticationResponseEnum.values())); + LOG.warning( + "AuthenticationResponseEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AuthenticationResponseEnum.values())); return null; } } @@ -97,10 +95,11 @@ public static AuthenticationResponseEnum fromValue(String value) { private String cavvAlgorithm; /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the + * authentication has been cancelled. For possible values, refer to [3D Secure API + * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). */ public enum ChallengeCancelEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -120,7 +119,7 @@ public enum ChallengeCancelEnum { private String value; ChallengeCancelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -141,7 +140,11 @@ public static ChallengeCancelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ChallengeCancelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChallengeCancelEnum.values())); + LOG.warning( + "ChallengeCancelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ChallengeCancelEnum.values())); return null; } } @@ -149,11 +152,8 @@ public static ChallengeCancelEnum fromValue(String value) { public static final String JSON_PROPERTY_CHALLENGE_CANCEL = "challengeCancel"; private ChallengeCancelEnum challengeCancel; - /** - * In 3D Secure 2, this is the `transStatus` from the `ARes`. - */ + /** In 3D Secure 2, this is the `transStatus` from the `ARes`. */ public enum DirectoryResponseEnum { - A(String.valueOf("A")), C(String.valueOf("C")), @@ -175,7 +175,7 @@ public enum DirectoryResponseEnum { private String value; DirectoryResponseEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -196,7 +196,11 @@ public static DirectoryResponseEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("DirectoryResponseEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(DirectoryResponseEnum.values())); + LOG.warning( + "DirectoryResponseEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(DirectoryResponseEnum.values())); return null; } } @@ -216,7 +220,8 @@ public static DirectoryResponseEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_VERSION = "threeDSVersion"; private String threeDSVersion; - public static final String JSON_PROPERTY_TOKEN_AUTHENTICATION_VERIFICATION_VALUE = "tokenAuthenticationVerificationValue"; + public static final String JSON_PROPERTY_TOKEN_AUTHENTICATION_VERIFICATION_VALUE = + "tokenAuthenticationVerificationValue"; private byte[] tokenAuthenticationVerificationValue; public static final String JSON_PROPERTY_TRANS_STATUS_REASON = "transStatusReason"; @@ -225,23 +230,28 @@ public static DirectoryResponseEnum fromValue(String value) { public static final String JSON_PROPERTY_XID = "xid"; private byte[] xid; - public ThreeDSecureData() { - } + public ThreeDSecureData() {} /** - * In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. + * In 3D Secure 2, this is the `transStatus` from the challenge result. If the + * transaction was frictionless, omit this parameter. * - * @param authenticationResponse In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. + * @param authenticationResponse In 3D Secure 2, this is the `transStatus` from the + * challenge result. If the transaction was frictionless, omit this parameter. * @return the current {@code ThreeDSecureData} instance, allowing for method chaining */ - public ThreeDSecureData authenticationResponse(AuthenticationResponseEnum authenticationResponse) { + public ThreeDSecureData authenticationResponse( + AuthenticationResponseEnum authenticationResponse) { this.authenticationResponse = authenticationResponse; return this; } /** - * In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. - * @return authenticationResponse In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. + * In 3D Secure 2, this is the `transStatus` from the challenge result. If the + * transaction was frictionless, omit this parameter. + * + * @return authenticationResponse In 3D Secure 2, this is the `transStatus` from the + * challenge result. If the transaction was frictionless, omit this parameter. */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,9 +260,11 @@ public AuthenticationResponseEnum getAuthenticationResponse() { } /** - * In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. + * In 3D Secure 2, this is the `transStatus` from the challenge result. If the + * transaction was frictionless, omit this parameter. * - * @param authenticationResponse In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. + * @param authenticationResponse In 3D Secure 2, this is the `transStatus` from the + * challenge result. If the transaction was frictionless, omit this parameter. */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -273,6 +285,7 @@ public ThreeDSecureData cavv(byte[] cavv) { /** * The cardholder authentication value (base64 encoded, 20 bytes in a decoded form). + * * @return cavv The cardholder authentication value (base64 encoded, 20 bytes in a decoded form). */ @JsonProperty(JSON_PROPERTY_CAVV) @@ -305,6 +318,7 @@ public ThreeDSecureData cavvAlgorithm(String cavvAlgorithm) { /** * The CAVV algorithm used. Include this only for 3D Secure 1. + * * @return cavvAlgorithm The CAVV algorithm used. Include this only for 3D Secure 1. */ @JsonProperty(JSON_PROPERTY_CAVV_ALGORITHM) @@ -325,9 +339,14 @@ public void setCavvAlgorithm(String cavvAlgorithm) { } /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the + * authentication has been cancelled. For possible values, refer to [3D Secure API + * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). * - * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory + * Server (DS) that the authentication has been cancelled. For possible values, refer to [3D + * Secure API + * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). * @return the current {@code ThreeDSecureData} instance, allowing for method chaining */ public ThreeDSecureData challengeCancel(ChallengeCancelEnum challengeCancel) { @@ -336,8 +355,14 @@ public ThreeDSecureData challengeCancel(ChallengeCancelEnum challengeCancel) { } /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). - * @return challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the + * authentication has been cancelled. For possible values, refer to [3D Secure API + * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * + * @return challengeCancel Indicator informing the Access Control Server (ACS) and the Directory + * Server (DS) that the authentication has been cancelled. For possible values, refer to [3D + * Secure API + * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). */ @JsonProperty(JSON_PROPERTY_CHALLENGE_CANCEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -346,9 +371,14 @@ public ChallengeCancelEnum getChallengeCancel() { } /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the + * authentication has been cancelled. For possible values, refer to [3D Secure API + * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). * - * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory + * Server (DS) that the authentication has been cancelled. For possible values, refer to [3D + * Secure API + * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). */ @JsonProperty(JSON_PROPERTY_CHALLENGE_CANCEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -357,9 +387,10 @@ public void setChallengeCancel(ChallengeCancelEnum challengeCancel) { } /** - * In 3D Secure 2, this is the `transStatus` from the `ARes`. + * In 3D Secure 2, this is the `transStatus` from the `ARes`. * - * @param directoryResponse In 3D Secure 2, this is the `transStatus` from the `ARes`. + * @param directoryResponse In 3D Secure 2, this is the `transStatus` from the + * `ARes`. * @return the current {@code ThreeDSecureData} instance, allowing for method chaining */ public ThreeDSecureData directoryResponse(DirectoryResponseEnum directoryResponse) { @@ -368,8 +399,10 @@ public ThreeDSecureData directoryResponse(DirectoryResponseEnum directoryRespons } /** - * In 3D Secure 2, this is the `transStatus` from the `ARes`. - * @return directoryResponse In 3D Secure 2, this is the `transStatus` from the `ARes`. + * In 3D Secure 2, this is the `transStatus` from the `ARes`. + * + * @return directoryResponse In 3D Secure 2, this is the `transStatus` from the + * `ARes`. */ @JsonProperty(JSON_PROPERTY_DIRECTORY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -378,9 +411,10 @@ public DirectoryResponseEnum getDirectoryResponse() { } /** - * In 3D Secure 2, this is the `transStatus` from the `ARes`. + * In 3D Secure 2, this is the `transStatus` from the `ARes`. * - * @param directoryResponse In 3D Secure 2, this is the `transStatus` from the `ARes`. + * @param directoryResponse In 3D Secure 2, this is the `transStatus` from the + * `ARes`. */ @JsonProperty(JSON_PROPERTY_DIRECTORY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -389,9 +423,11 @@ public void setDirectoryResponse(DirectoryResponseEnum directoryResponse) { } /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. + * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server + * (DS) to identify a single transaction. * - * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. + * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the + * Directory Server (DS) to identify a single transaction. * @return the current {@code ThreeDSecureData} instance, allowing for method chaining */ public ThreeDSecureData dsTransID(String dsTransID) { @@ -400,8 +436,11 @@ public ThreeDSecureData dsTransID(String dsTransID) { } /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. - * @return dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. + * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server + * (DS) to identify a single transaction. + * + * @return dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the + * Directory Server (DS) to identify a single transaction. */ @JsonProperty(JSON_PROPERTY_DS_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -410,9 +449,11 @@ public String getDsTransID() { } /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. + * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server + * (DS) to identify a single transaction. * - * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. + * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the + * Directory Server (DS) to identify a single transaction. */ @JsonProperty(JSON_PROPERTY_DS_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -433,6 +474,7 @@ public ThreeDSecureData eci(String eci) { /** * The electronic commerce indicator. + * * @return eci The electronic commerce indicator. */ @JsonProperty(JSON_PROPERTY_ECI) @@ -455,7 +497,8 @@ public void setEci(String eci) { /** * Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations. * - * @param riskScore Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations. + * @param riskScore Risk score calculated by Directory Server (DS). Required for Cartes Bancaires + * integrations. * @return the current {@code ThreeDSecureData} instance, allowing for method chaining */ public ThreeDSecureData riskScore(String riskScore) { @@ -465,7 +508,9 @@ public ThreeDSecureData riskScore(String riskScore) { /** * Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations. - * @return riskScore Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations. + * + * @return riskScore Risk score calculated by Directory Server (DS). Required for Cartes Bancaires + * integrations. */ @JsonProperty(JSON_PROPERTY_RISK_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -476,7 +521,8 @@ public String getRiskScore() { /** * Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations. * - * @param riskScore Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations. + * @param riskScore Risk score calculated by Directory Server (DS). Required for Cartes Bancaires + * integrations. */ @JsonProperty(JSON_PROPERTY_RISK_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -497,6 +543,7 @@ public ThreeDSecureData threeDSVersion(String threeDSVersion) { /** * The version of the 3D Secure protocol. + * * @return threeDSVersion The version of the 3D Secure protocol. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_VERSION) @@ -519,17 +566,21 @@ public void setThreeDSVersion(String threeDSVersion) { /** * Network token authentication verification value (TAVV). The network token cryptogram. * - * @param tokenAuthenticationVerificationValue Network token authentication verification value (TAVV). The network token cryptogram. + * @param tokenAuthenticationVerificationValue Network token authentication verification value + * (TAVV). The network token cryptogram. * @return the current {@code ThreeDSecureData} instance, allowing for method chaining */ - public ThreeDSecureData tokenAuthenticationVerificationValue(byte[] tokenAuthenticationVerificationValue) { + public ThreeDSecureData tokenAuthenticationVerificationValue( + byte[] tokenAuthenticationVerificationValue) { this.tokenAuthenticationVerificationValue = tokenAuthenticationVerificationValue; return this; } /** * Network token authentication verification value (TAVV). The network token cryptogram. - * @return tokenAuthenticationVerificationValue Network token authentication verification value (TAVV). The network token cryptogram. + * + * @return tokenAuthenticationVerificationValue Network token authentication verification value + * (TAVV). The network token cryptogram. */ @JsonProperty(JSON_PROPERTY_TOKEN_AUTHENTICATION_VERIFICATION_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -540,7 +591,8 @@ public byte[] getTokenAuthenticationVerificationValue() { /** * Network token authentication verification value (TAVV). The network token cryptogram. * - * @param tokenAuthenticationVerificationValue Network token authentication verification value (TAVV). The network token cryptogram. + * @param tokenAuthenticationVerificationValue Network token authentication verification value + * (TAVV). The network token cryptogram. */ @JsonProperty(JSON_PROPERTY_TOKEN_AUTHENTICATION_VERIFICATION_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -549,9 +601,13 @@ public void setTokenAuthenticationVerificationValue(byte[] tokenAuthenticationVe } /** - * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * Provides information on why the `transStatus` field has the specified value. For + * possible values, refer to [our + * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). * - * @param transStatusReason Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * @param transStatusReason Provides information on why the `transStatus` field has the + * specified value. For possible values, refer to [our + * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). * @return the current {@code ThreeDSecureData} instance, allowing for method chaining */ public ThreeDSecureData transStatusReason(String transStatusReason) { @@ -560,8 +616,13 @@ public ThreeDSecureData transStatusReason(String transStatusReason) { } /** - * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). - * @return transStatusReason Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * Provides information on why the `transStatus` field has the specified value. For + * possible values, refer to [our + * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * + * @return transStatusReason Provides information on why the `transStatus` field has the + * specified value. For possible values, refer to [our + * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -570,9 +631,13 @@ public String getTransStatusReason() { } /** - * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * Provides information on why the `transStatus` field has the specified value. For + * possible values, refer to [our + * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). * - * @param transStatusReason Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * @param transStatusReason Provides information on why the `transStatus` field has the + * specified value. For possible values, refer to [our + * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -581,9 +646,11 @@ public void setTransStatusReason(String transStatusReason) { } /** - * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). + * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded + * form). * - * @param xid Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). + * @param xid Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a + * decoded form). * @return the current {@code ThreeDSecureData} instance, allowing for method chaining */ public ThreeDSecureData xid(byte[] xid) { @@ -592,8 +659,11 @@ public ThreeDSecureData xid(byte[] xid) { } /** - * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). - * @return xid Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). + * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded + * form). + * + * @return xid Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in + * a decoded form). */ @JsonProperty(JSON_PROPERTY_XID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -602,9 +672,11 @@ public byte[] getXid() { } /** - * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). + * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded + * form). * - * @param xid Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). + * @param xid Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a + * decoded form). */ @JsonProperty(JSON_PROPERTY_XID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -612,9 +684,7 @@ public void setXid(byte[] xid) { this.xid = xid; } - /** - * Return true if this ThreeDSecureData object is equal to o. - */ + /** Return true if this ThreeDSecureData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -624,30 +694,46 @@ public boolean equals(Object o) { return false; } ThreeDSecureData threeDSecureData = (ThreeDSecureData) o; - return Objects.equals(this.authenticationResponse, threeDSecureData.authenticationResponse) && - Arrays.equals(this.cavv, threeDSecureData.cavv) && - Objects.equals(this.cavvAlgorithm, threeDSecureData.cavvAlgorithm) && - Objects.equals(this.challengeCancel, threeDSecureData.challengeCancel) && - Objects.equals(this.directoryResponse, threeDSecureData.directoryResponse) && - Objects.equals(this.dsTransID, threeDSecureData.dsTransID) && - Objects.equals(this.eci, threeDSecureData.eci) && - Objects.equals(this.riskScore, threeDSecureData.riskScore) && - Objects.equals(this.threeDSVersion, threeDSecureData.threeDSVersion) && - Arrays.equals(this.tokenAuthenticationVerificationValue, threeDSecureData.tokenAuthenticationVerificationValue) && - Objects.equals(this.transStatusReason, threeDSecureData.transStatusReason) && - Arrays.equals(this.xid, threeDSecureData.xid); + return Objects.equals(this.authenticationResponse, threeDSecureData.authenticationResponse) + && Arrays.equals(this.cavv, threeDSecureData.cavv) + && Objects.equals(this.cavvAlgorithm, threeDSecureData.cavvAlgorithm) + && Objects.equals(this.challengeCancel, threeDSecureData.challengeCancel) + && Objects.equals(this.directoryResponse, threeDSecureData.directoryResponse) + && Objects.equals(this.dsTransID, threeDSecureData.dsTransID) + && Objects.equals(this.eci, threeDSecureData.eci) + && Objects.equals(this.riskScore, threeDSecureData.riskScore) + && Objects.equals(this.threeDSVersion, threeDSecureData.threeDSVersion) + && Arrays.equals( + this.tokenAuthenticationVerificationValue, + threeDSecureData.tokenAuthenticationVerificationValue) + && Objects.equals(this.transStatusReason, threeDSecureData.transStatusReason) + && Arrays.equals(this.xid, threeDSecureData.xid); } @Override public int hashCode() { - return Objects.hash(authenticationResponse, Arrays.hashCode(cavv), cavvAlgorithm, challengeCancel, directoryResponse, dsTransID, eci, riskScore, threeDSVersion, Arrays.hashCode(tokenAuthenticationVerificationValue), transStatusReason, Arrays.hashCode(xid)); + return Objects.hash( + authenticationResponse, + Arrays.hashCode(cavv), + cavvAlgorithm, + challengeCancel, + directoryResponse, + dsTransID, + eci, + riskScore, + threeDSVersion, + Arrays.hashCode(tokenAuthenticationVerificationValue), + transStatusReason, + Arrays.hashCode(xid)); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ThreeDSecureData {\n"); - sb.append(" authenticationResponse: ").append(toIndentedString(authenticationResponse)).append("\n"); + sb.append(" authenticationResponse: ") + .append(toIndentedString(authenticationResponse)) + .append("\n"); sb.append(" cavv: ").append(toIndentedString(cavv)).append("\n"); sb.append(" cavvAlgorithm: ").append(toIndentedString(cavvAlgorithm)).append("\n"); sb.append(" challengeCancel: ").append(toIndentedString(challengeCancel)).append("\n"); @@ -656,7 +742,9 @@ public String toString() { sb.append(" eci: ").append(toIndentedString(eci)).append("\n"); sb.append(" riskScore: ").append(toIndentedString(riskScore)).append("\n"); sb.append(" threeDSVersion: ").append(toIndentedString(threeDSVersion)).append("\n"); - sb.append(" tokenAuthenticationVerificationValue: ").append(toIndentedString(tokenAuthenticationVerificationValue)).append("\n"); + sb.append(" tokenAuthenticationVerificationValue: ") + .append(toIndentedString(tokenAuthenticationVerificationValue)) + .append("\n"); sb.append(" transStatusReason: ").append(toIndentedString(transStatusReason)).append("\n"); sb.append(" xid: ").append(toIndentedString(xid)).append("\n"); sb.append("}"); @@ -664,8 +752,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -674,7 +761,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ThreeDSecureData given an JSON string * * @param jsonString JSON string @@ -684,11 +771,12 @@ private String toIndentedString(Object o) { public static ThreeDSecureData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDSecureData.class); } -/** - * Convert an instance of ThreeDSecureData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ThreeDSecureData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/Ticket.java b/src/main/java/com/adyen/model/checkout/Ticket.java index 38d185137..bf48628c4 100644 --- a/src/main/java/com/adyen/model/checkout/Ticket.java +++ b/src/main/java/com/adyen/model/checkout/Ticket.java @@ -2,38 +2,28 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.LocalDate; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.time.LocalDate; +import java.util.*; - -/** - * Ticket - */ +/** Ticket */ @JsonPropertyOrder({ Ticket.JSON_PROPERTY_ISSUE_ADDRESS, Ticket.JSON_PROPERTY_ISSUE_DATE, Ticket.JSON_PROPERTY_NUMBER }) - public class Ticket { public static final String JSON_PROPERTY_ISSUE_ADDRESS = "issueAddress"; private String issueAddress; @@ -44,13 +34,14 @@ public class Ticket { public static final String JSON_PROPERTY_NUMBER = "number"; private String number; - public Ticket() { - } + public Ticket() {} /** - * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters + * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: + * 16 characters * - * @param issueAddress The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters + * @param issueAddress The address of the organization that issued the ticket. * minLength: 0 + * characters * maxLength: 16 characters * @return the current {@code Ticket} instance, allowing for method chaining */ public Ticket issueAddress(String issueAddress) { @@ -59,8 +50,11 @@ public Ticket issueAddress(String issueAddress) { } /** - * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters - * @return issueAddress The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters + * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: + * 16 characters + * + * @return issueAddress The address of the organization that issued the ticket. * minLength: 0 + * characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_ISSUE_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -69,9 +63,11 @@ public String getIssueAddress() { } /** - * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters + * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: + * 16 characters * - * @param issueAddress The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters + * @param issueAddress The address of the organization that issued the ticket. * minLength: 0 + * characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_ISSUE_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,9 +76,12 @@ public void setIssueAddress(String issueAddress) { } /** - * The date that the ticket was issued to the passenger. * minLength: 10 characters * maxLength: 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd + * The date that the ticket was issued to the passenger. * minLength: 10 characters * maxLength: + * 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd * - * @param issueDate The date that the ticket was issued to the passenger. * minLength: 10 characters * maxLength: 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd + * @param issueDate The date that the ticket was issued to the passenger. * minLength: 10 + * characters * maxLength: 10 characters * Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd * @return the current {@code Ticket} instance, allowing for method chaining */ public Ticket issueDate(LocalDate issueDate) { @@ -91,8 +90,12 @@ public Ticket issueDate(LocalDate issueDate) { } /** - * The date that the ticket was issued to the passenger. * minLength: 10 characters * maxLength: 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd - * @return issueDate The date that the ticket was issued to the passenger. * minLength: 10 characters * maxLength: 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd + * The date that the ticket was issued to the passenger. * minLength: 10 characters * maxLength: + * 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd + * + * @return issueDate The date that the ticket was issued to the passenger. * minLength: 10 + * characters * maxLength: 10 characters * Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd */ @JsonProperty(JSON_PROPERTY_ISSUE_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,9 +104,12 @@ public LocalDate getIssueDate() { } /** - * The date that the ticket was issued to the passenger. * minLength: 10 characters * maxLength: 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd + * The date that the ticket was issued to the passenger. * minLength: 10 characters * maxLength: + * 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd * - * @param issueDate The date that the ticket was issued to the passenger. * minLength: 10 characters * maxLength: 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd + * @param issueDate The date that the ticket was issued to the passenger. * minLength: 10 + * characters * maxLength: 10 characters * Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd */ @JsonProperty(JSON_PROPERTY_ISSUE_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,9 +118,11 @@ public void setIssueDate(LocalDate issueDate) { } /** - * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must + * not start with a space or be all spaces. * Must not be all zeros. * - * @param number The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param number The ticket's unique identifier. * minLength: 1 character * maxLength: 15 + * characters * Must not start with a space or be all spaces. * Must not be all zeros. * @return the current {@code Ticket} instance, allowing for method chaining */ public Ticket number(String number) { @@ -123,8 +131,11 @@ public Ticket number(String number) { } /** - * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all spaces. * Must not be all zeros. - * @return number The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must + * not start with a space or be all spaces. * Must not be all zeros. + * + * @return number The ticket's unique identifier. * minLength: 1 character * maxLength: 15 + * characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -133,9 +144,11 @@ public String getNumber() { } /** - * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must + * not start with a space or be all spaces. * Must not be all zeros. * - * @param number The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param number The ticket's unique identifier. * minLength: 1 character * maxLength: 15 + * characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,9 +156,7 @@ public void setNumber(String number) { this.number = number; } - /** - * Return true if this Ticket object is equal to o. - */ + /** Return true if this Ticket object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -155,9 +166,9 @@ public boolean equals(Object o) { return false; } Ticket ticket = (Ticket) o; - return Objects.equals(this.issueAddress, ticket.issueAddress) && - Objects.equals(this.issueDate, ticket.issueDate) && - Objects.equals(this.number, ticket.number); + return Objects.equals(this.issueAddress, ticket.issueAddress) + && Objects.equals(this.issueDate, ticket.issueDate) + && Objects.equals(this.number, ticket.number); } @Override @@ -177,8 +188,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -187,7 +197,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Ticket given an JSON string * * @param jsonString JSON string @@ -197,11 +207,12 @@ private String toIndentedString(Object o) { public static Ticket fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Ticket.class); } -/** - * Convert an instance of Ticket to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Ticket to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/TravelAgency.java b/src/main/java/com/adyen/model/checkout/TravelAgency.java index 7923a668f..c8f2cd418 100644 --- a/src/main/java/com/adyen/model/checkout/TravelAgency.java +++ b/src/main/java/com/adyen/model/checkout/TravelAgency.java @@ -2,36 +2,23 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TravelAgency - */ -@JsonPropertyOrder({ - TravelAgency.JSON_PROPERTY_CODE, - TravelAgency.JSON_PROPERTY_NAME -}) - +/** TravelAgency */ +@JsonPropertyOrder({TravelAgency.JSON_PROPERTY_CODE, TravelAgency.JSON_PROPERTY_NAME}) public class TravelAgency { public static final String JSON_PROPERTY_CODE = "code"; private String code; @@ -39,13 +26,16 @@ public class TravelAgency { public static final String JSON_PROPERTY_NAME = "name"; private String name; - public TravelAgency() { - } + public TravelAgency() {} /** - * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * + * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not start with a + * space or be all spaces. * Must not be all zeros. * - * @param code The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param code The unique identifier from IATA or ARC for the travel agency that issues the + * ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not + * start with a space or be all spaces. * Must not be all zeros. * @return the current {@code TravelAgency} instance, allowing for method chaining */ public TravelAgency code(String code) { @@ -54,8 +44,13 @@ public TravelAgency code(String code) { } /** - * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not start with a space or be all spaces. * Must not be all zeros. - * @return code The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * + * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not start with a + * space or be all spaces. * Must not be all zeros. + * + * @return code The unique identifier from IATA or ARC for the travel agency that issues the + * ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not + * start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +59,13 @@ public String getCode() { } /** - * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * + * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not start with a + * space or be all spaces. * Must not be all zeros. * - * @param code The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param code The unique identifier from IATA or ARC for the travel agency that issues the + * ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not + * start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,9 +74,12 @@ public void setCode(String code) { } /** - * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 + * characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param name The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param name The name of the travel agency. * Encoding: ASCII * minLength: 1 character * + * maxLength: 25 characters * Must not start with a space or be all spaces. * Must not be all + * zeros. * @return the current {@code TravelAgency} instance, allowing for method chaining */ public TravelAgency name(String name) { @@ -86,8 +88,12 @@ public TravelAgency name(String name) { } /** - * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. - * @return name The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 + * characters * Must not start with a space or be all spaces. * Must not be all zeros. + * + * @return name The name of the travel agency. * Encoding: ASCII * minLength: 1 character * + * maxLength: 25 characters * Must not start with a space or be all spaces. * Must not be all + * zeros. */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +102,12 @@ public String getName() { } /** - * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 + * characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param name The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param name The name of the travel agency. * Encoding: ASCII * minLength: 1 character * + * maxLength: 25 characters * Must not start with a space or be all spaces. * Must not be all + * zeros. */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +115,7 @@ public void setName(String name) { this.name = name; } - /** - * Return true if this TravelAgency object is equal to o. - */ + /** Return true if this TravelAgency object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +125,8 @@ public boolean equals(Object o) { return false; } TravelAgency travelAgency = (TravelAgency) o; - return Objects.equals(this.code, travelAgency.code) && - Objects.equals(this.name, travelAgency.name); + return Objects.equals(this.code, travelAgency.code) + && Objects.equals(this.name, travelAgency.name); } @Override @@ -138,8 +145,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +154,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TravelAgency given an JSON string * * @param jsonString JSON string @@ -158,11 +164,12 @@ private String toIndentedString(Object o) { public static TravelAgency fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TravelAgency.class); } -/** - * Convert an instance of TravelAgency to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TravelAgency to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/TwintDetails.java b/src/main/java/com/adyen/model/checkout/TwintDetails.java index 8e7f14dc6..03ecbd7eb 100644 --- a/src/main/java/com/adyen/model/checkout/TwintDetails.java +++ b/src/main/java/com/adyen/model/checkout/TwintDetails.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * TwintDetails - */ +/** TwintDetails */ @JsonPropertyOrder({ TwintDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, TwintDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, @@ -34,7 +29,6 @@ TwintDetails.JSON_PROPERTY_SUBTYPE, TwintDetails.JSON_PROPERTY_TYPE }) - public class TwintDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -49,11 +43,8 @@ public class TwintDetails { public static final String JSON_PROPERTY_SUBTYPE = "subtype"; private String subtype; - /** - * The payment method type. - */ + /** The payment method type. */ public enum TypeEnum { - TWINT(String.valueOf("twint")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -61,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -82,7 +73,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -90,8 +85,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public TwintDetails() { - } + public TwintDetails() {} /** * The checkout attempt identifier. @@ -106,6 +100,7 @@ public TwintDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -126,13 +121,13 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code TwintDetails} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public TwintDetails recurringDetailReference(String recurringDetailReference) { @@ -141,8 +136,11 @@ public TwintDetails recurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -153,12 +151,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -168,9 +166,11 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code TwintDetails} instance, allowing for method chaining */ public TwintDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -179,8 +179,11 @@ public TwintDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,9 +192,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -212,6 +217,7 @@ public TwintDetails subtype(String subtype) { /** * The type of flow to initiate. + * * @return subtype The type of flow to initiate. */ @JsonProperty(JSON_PROPERTY_SUBTYPE) @@ -244,6 +250,7 @@ public TwintDetails type(TypeEnum type) { /** * The payment method type. + * * @return type The payment method type. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -263,9 +270,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this TwintDetails object is equal to o. - */ + /** Return true if this TwintDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -275,16 +280,17 @@ public boolean equals(Object o) { return false; } TwintDetails twintDetails = (TwintDetails) o; - return Objects.equals(this.checkoutAttemptId, twintDetails.checkoutAttemptId) && - Objects.equals(this.recurringDetailReference, twintDetails.recurringDetailReference) && - Objects.equals(this.storedPaymentMethodId, twintDetails.storedPaymentMethodId) && - Objects.equals(this.subtype, twintDetails.subtype) && - Objects.equals(this.type, twintDetails.type); + return Objects.equals(this.checkoutAttemptId, twintDetails.checkoutAttemptId) + && Objects.equals(this.recurringDetailReference, twintDetails.recurringDetailReference) + && Objects.equals(this.storedPaymentMethodId, twintDetails.storedPaymentMethodId) + && Objects.equals(this.subtype, twintDetails.subtype) + && Objects.equals(this.type, twintDetails.type); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, recurringDetailReference, storedPaymentMethodId, subtype, type); + return Objects.hash( + checkoutAttemptId, recurringDetailReference, storedPaymentMethodId, subtype, type); } @Override @@ -292,8 +298,12 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TwintDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -301,8 +311,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -311,7 +320,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TwintDetails given an JSON string * * @param jsonString JSON string @@ -321,11 +330,12 @@ private String toIndentedString(Object o) { public static TwintDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TwintDetails.class); } -/** - * Convert an instance of TwintDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TwintDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/UPIPaymentMethod.java b/src/main/java/com/adyen/model/checkout/UPIPaymentMethod.java index e63b4597f..fbb9998c4 100644 --- a/src/main/java/com/adyen/model/checkout/UPIPaymentMethod.java +++ b/src/main/java/com/adyen/model/checkout/UPIPaymentMethod.java @@ -2,56 +2,46 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.ShopperIdPaymentMethod; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * UPIPaymentMethod - */ -@JsonPropertyOrder({ - UPIPaymentMethod.JSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS -}) - +/** UPIPaymentMethod */ +@JsonPropertyOrder({UPIPaymentMethod.JSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS}) @JsonIgnoreProperties( - value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization - allowSetters = true // allows the type to be set during deserialization -) -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) - + value = + "type", // ignore manually set type, it will be automatically generated by Jackson during + // serialization + allowSetters = true // allows the type to be set during deserialization + ) +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.PROPERTY, + property = "type", + visible = true) public class UPIPaymentMethod extends ShopperIdPaymentMethod { public static final String JSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS = "virtualPaymentAddress"; private String virtualPaymentAddress; - public UPIPaymentMethod() { - } + public UPIPaymentMethod() {} /** * virtualPaymentAddress * - * @param virtualPaymentAddress + * @param virtualPaymentAddress * @return the current {@code UPIPaymentMethod} instance, allowing for method chaining */ public UPIPaymentMethod virtualPaymentAddress(String virtualPaymentAddress) { @@ -61,7 +51,8 @@ public UPIPaymentMethod virtualPaymentAddress(String virtualPaymentAddress) { /** * Get virtualPaymentAddress - * @return virtualPaymentAddress + * + * @return virtualPaymentAddress */ @JsonProperty(JSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -72,7 +63,7 @@ public String getVirtualPaymentAddress() { /** * virtualPaymentAddress * - * @param virtualPaymentAddress + * @param virtualPaymentAddress */ @JsonProperty(JSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,9 +71,7 @@ public void setVirtualPaymentAddress(String virtualPaymentAddress) { this.virtualPaymentAddress = virtualPaymentAddress; } - /** - * Return true if this UPIPaymentMethod object is equal to o. - */ + /** Return true if this UPIPaymentMethod object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -92,8 +81,8 @@ public boolean equals(Object o) { return false; } UPIPaymentMethod upIPaymentMethod = (UPIPaymentMethod) o; - return Objects.equals(this.virtualPaymentAddress, upIPaymentMethod.virtualPaymentAddress) && - super.equals(o); + return Objects.equals(this.virtualPaymentAddress, upIPaymentMethod.virtualPaymentAddress) + && super.equals(o); } @Override @@ -106,14 +95,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UPIPaymentMethod {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" virtualPaymentAddress: ").append(toIndentedString(virtualPaymentAddress)).append("\n"); + sb.append(" virtualPaymentAddress: ") + .append(toIndentedString(virtualPaymentAddress)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -128,7 +118,8 @@ private String toIndentedString(Object o) { mappings.put("UPIPaymentMethod", UPIPaymentMethod.class); JSON.registerDiscriminator(UPIPaymentMethod.class, "type", mappings); } -/** + + /** * Create an instance of UPIPaymentMethod given an JSON string * * @param jsonString JSON string @@ -138,11 +129,12 @@ private String toIndentedString(Object o) { public static UPIPaymentMethod fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UPIPaymentMethod.class); } -/** - * Convert an instance of UPIPaymentMethod to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of UPIPaymentMethod to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/UpdatePaymentLinkRequest.java b/src/main/java/com/adyen/model/checkout/UpdatePaymentLinkRequest.java index f5ebaaacc..8c2a9b740 100644 --- a/src/main/java/com/adyen/model/checkout/UpdatePaymentLinkRequest.java +++ b/src/main/java/com/adyen/model/checkout/UpdatePaymentLinkRequest.java @@ -2,41 +2,30 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * UpdatePaymentLinkRequest - */ -@JsonPropertyOrder({ - UpdatePaymentLinkRequest.JSON_PROPERTY_STATUS -}) - +/** UpdatePaymentLinkRequest */ +@JsonPropertyOrder({UpdatePaymentLinkRequest.JSON_PROPERTY_STATUS}) public class UpdatePaymentLinkRequest { - /** - * Status of the payment link. Possible values: * **expired** - */ + /** Status of the payment link. Possible values: * **expired** */ public enum StatusEnum { - EXPIRED(String.valueOf("expired")); private static final Logger LOG = Logger.getLogger(StatusEnum.class.getName()); @@ -44,7 +33,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -65,7 +54,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -73,8 +66,7 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; - public UpdatePaymentLinkRequest() { - } + public UpdatePaymentLinkRequest() {} /** * Status of the payment link. Possible values: * **expired** @@ -89,6 +81,7 @@ public UpdatePaymentLinkRequest status(StatusEnum status) { /** * Status of the payment link. Possible values: * **expired** + * * @return status Status of the payment link. Possible values: * **expired** */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -108,9 +101,7 @@ public void setStatus(StatusEnum status) { this.status = status; } - /** - * Return true if this UpdatePaymentLinkRequest object is equal to o. - */ + /** Return true if this UpdatePaymentLinkRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -138,8 +129,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +138,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of UpdatePaymentLinkRequest given an JSON string * * @param jsonString JSON string * @return An instance of UpdatePaymentLinkRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to UpdatePaymentLinkRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * UpdatePaymentLinkRequest */ - public static UpdatePaymentLinkRequest fromJson(String jsonString) throws JsonProcessingException { + public static UpdatePaymentLinkRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdatePaymentLinkRequest.class); } -/** - * Convert an instance of UpdatePaymentLinkRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of UpdatePaymentLinkRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/UpiCollectDetails.java b/src/main/java/com/adyen/model/checkout/UpiCollectDetails.java index fc1046acb..bb75b9500 100644 --- a/src/main/java/com/adyen/model/checkout/UpiCollectDetails.java +++ b/src/main/java/com/adyen/model/checkout/UpiCollectDetails.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * UpiCollectDetails - */ +/** UpiCollectDetails */ @JsonPropertyOrder({ UpiCollectDetails.JSON_PROPERTY_BILLING_SEQUENCE_NUMBER, UpiCollectDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, @@ -36,7 +31,6 @@ UpiCollectDetails.JSON_PROPERTY_TYPE, UpiCollectDetails.JSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS }) - public class UpiCollectDetails { public static final String JSON_PROPERTY_BILLING_SEQUENCE_NUMBER = "billingSequenceNumber"; private String billingSequenceNumber; @@ -48,17 +42,15 @@ public class UpiCollectDetails { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; - public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE = "shopperNotificationReference"; + public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE = + "shopperNotificationReference"; private String shopperNotificationReference; public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** - * **upi_collect** - */ + /** **upi_collect** */ public enum TypeEnum { - UPI_COLLECT(String.valueOf("upi_collect")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -66,7 +58,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -87,7 +79,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -98,13 +94,15 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS = "virtualPaymentAddress"; private String virtualPaymentAddress; - public UpiCollectDetails() { - } + public UpiCollectDetails() {} /** - * The sequence number for the debit. For example, send **2** if this is the second debit for the subscription. The sequence number is included in the notification sent to the shopper. + * The sequence number for the debit. For example, send **2** if this is the second debit for the + * subscription. The sequence number is included in the notification sent to the shopper. * - * @param billingSequenceNumber The sequence number for the debit. For example, send **2** if this is the second debit for the subscription. The sequence number is included in the notification sent to the shopper. + * @param billingSequenceNumber The sequence number for the debit. For example, send **2** if this + * is the second debit for the subscription. The sequence number is included in the + * notification sent to the shopper. * @return the current {@code UpiCollectDetails} instance, allowing for method chaining */ public UpiCollectDetails billingSequenceNumber(String billingSequenceNumber) { @@ -113,8 +111,12 @@ public UpiCollectDetails billingSequenceNumber(String billingSequenceNumber) { } /** - * The sequence number for the debit. For example, send **2** if this is the second debit for the subscription. The sequence number is included in the notification sent to the shopper. - * @return billingSequenceNumber The sequence number for the debit. For example, send **2** if this is the second debit for the subscription. The sequence number is included in the notification sent to the shopper. + * The sequence number for the debit. For example, send **2** if this is the second debit for the + * subscription. The sequence number is included in the notification sent to the shopper. + * + * @return billingSequenceNumber The sequence number for the debit. For example, send **2** if + * this is the second debit for the subscription. The sequence number is included in the + * notification sent to the shopper. */ @JsonProperty(JSON_PROPERTY_BILLING_SEQUENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,9 +125,12 @@ public String getBillingSequenceNumber() { } /** - * The sequence number for the debit. For example, send **2** if this is the second debit for the subscription. The sequence number is included in the notification sent to the shopper. + * The sequence number for the debit. For example, send **2** if this is the second debit for the + * subscription. The sequence number is included in the notification sent to the shopper. * - * @param billingSequenceNumber The sequence number for the debit. For example, send **2** if this is the second debit for the subscription. The sequence number is included in the notification sent to the shopper. + * @param billingSequenceNumber The sequence number for the debit. For example, send **2** if this + * is the second debit for the subscription. The sequence number is included in the + * notification sent to the shopper. */ @JsonProperty(JSON_PROPERTY_BILLING_SEQUENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,6 +151,7 @@ public UpiCollectDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -166,13 +172,13 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code UpiCollectDetails} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public UpiCollectDetails recurringDetailReference(String recurringDetailReference) { @@ -181,8 +187,11 @@ public UpiCollectDetails recurringDetailReference(String recurringDetailReferenc } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -193,12 +202,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -208,9 +217,11 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. + * The `shopperNotificationReference` returned in the response when you requested to + * notify the shopper. Used for recurring payment only. * - * @param shopperNotificationReference The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. + * @param shopperNotificationReference The `shopperNotificationReference` returned in + * the response when you requested to notify the shopper. Used for recurring payment only. * @return the current {@code UpiCollectDetails} instance, allowing for method chaining */ public UpiCollectDetails shopperNotificationReference(String shopperNotificationReference) { @@ -219,8 +230,11 @@ public UpiCollectDetails shopperNotificationReference(String shopperNotification } /** - * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. - * @return shopperNotificationReference The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. + * The `shopperNotificationReference` returned in the response when you requested to + * notify the shopper. Used for recurring payment only. + * + * @return shopperNotificationReference The `shopperNotificationReference` returned in + * the response when you requested to notify the shopper. Used for recurring payment only. */ @JsonProperty(JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -229,9 +243,11 @@ public String getShopperNotificationReference() { } /** - * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. + * The `shopperNotificationReference` returned in the response when you requested to + * notify the shopper. Used for recurring payment only. * - * @param shopperNotificationReference The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. + * @param shopperNotificationReference The `shopperNotificationReference` returned in + * the response when you requested to notify the shopper. Used for recurring payment only. */ @JsonProperty(JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,9 +256,11 @@ public void setShopperNotificationReference(String shopperNotificationReference) } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code UpiCollectDetails} instance, allowing for method chaining */ public UpiCollectDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -251,8 +269,11 @@ public UpiCollectDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -261,9 +282,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,6 +307,7 @@ public UpiCollectDetails type(TypeEnum type) { /** * **upi_collect** + * * @return type **upi_collect** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -316,6 +340,7 @@ public UpiCollectDetails virtualPaymentAddress(String virtualPaymentAddress) { /** * The virtual payment address for UPI. + * * @return virtualPaymentAddress The virtual payment address for UPI. */ @JsonProperty(JSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS) @@ -335,9 +360,7 @@ public void setVirtualPaymentAddress(String virtualPaymentAddress) { this.virtualPaymentAddress = virtualPaymentAddress; } - /** - * Return true if this UpiCollectDetails object is equal to o. - */ + /** Return true if this UpiCollectDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -347,38 +370,55 @@ public boolean equals(Object o) { return false; } UpiCollectDetails upiCollectDetails = (UpiCollectDetails) o; - return Objects.equals(this.billingSequenceNumber, upiCollectDetails.billingSequenceNumber) && - Objects.equals(this.checkoutAttemptId, upiCollectDetails.checkoutAttemptId) && - Objects.equals(this.recurringDetailReference, upiCollectDetails.recurringDetailReference) && - Objects.equals(this.shopperNotificationReference, upiCollectDetails.shopperNotificationReference) && - Objects.equals(this.storedPaymentMethodId, upiCollectDetails.storedPaymentMethodId) && - Objects.equals(this.type, upiCollectDetails.type) && - Objects.equals(this.virtualPaymentAddress, upiCollectDetails.virtualPaymentAddress); + return Objects.equals(this.billingSequenceNumber, upiCollectDetails.billingSequenceNumber) + && Objects.equals(this.checkoutAttemptId, upiCollectDetails.checkoutAttemptId) + && Objects.equals(this.recurringDetailReference, upiCollectDetails.recurringDetailReference) + && Objects.equals( + this.shopperNotificationReference, upiCollectDetails.shopperNotificationReference) + && Objects.equals(this.storedPaymentMethodId, upiCollectDetails.storedPaymentMethodId) + && Objects.equals(this.type, upiCollectDetails.type) + && Objects.equals(this.virtualPaymentAddress, upiCollectDetails.virtualPaymentAddress); } @Override public int hashCode() { - return Objects.hash(billingSequenceNumber, checkoutAttemptId, recurringDetailReference, shopperNotificationReference, storedPaymentMethodId, type, virtualPaymentAddress); + return Objects.hash( + billingSequenceNumber, + checkoutAttemptId, + recurringDetailReference, + shopperNotificationReference, + storedPaymentMethodId, + type, + virtualPaymentAddress); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpiCollectDetails {\n"); - sb.append(" billingSequenceNumber: ").append(toIndentedString(billingSequenceNumber)).append("\n"); + sb.append(" billingSequenceNumber: ") + .append(toIndentedString(billingSequenceNumber)) + .append("\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" shopperNotificationReference: ").append(toIndentedString(shopperNotificationReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" shopperNotificationReference: ") + .append(toIndentedString(shopperNotificationReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" virtualPaymentAddress: ").append(toIndentedString(virtualPaymentAddress)).append("\n"); + sb.append(" virtualPaymentAddress: ") + .append(toIndentedString(virtualPaymentAddress)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -387,7 +427,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of UpiCollectDetails given an JSON string * * @param jsonString JSON string @@ -397,11 +437,12 @@ private String toIndentedString(Object o) { public static UpiCollectDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpiCollectDetails.class); } -/** - * Convert an instance of UpiCollectDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of UpiCollectDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/UpiIntentDetails.java b/src/main/java/com/adyen/model/checkout/UpiIntentDetails.java index 681610d83..b462082d3 100644 --- a/src/main/java/com/adyen/model/checkout/UpiIntentDetails.java +++ b/src/main/java/com/adyen/model/checkout/UpiIntentDetails.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * UpiIntentDetails - */ +/** UpiIntentDetails */ @JsonPropertyOrder({ UpiIntentDetails.JSON_PROPERTY_APP_ID, UpiIntentDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, @@ -35,7 +30,6 @@ UpiIntentDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, UpiIntentDetails.JSON_PROPERTY_TYPE }) - public class UpiIntentDetails { public static final String JSON_PROPERTY_APP_ID = "appId"; private String appId; @@ -47,17 +41,15 @@ public class UpiIntentDetails { @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. private String recurringDetailReference; - public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE = "shopperNotificationReference"; + public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE = + "shopperNotificationReference"; private String shopperNotificationReference; public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** - * **upi_intent** - */ + /** **upi_intent** */ public enum TypeEnum { - UPI_INTENT(String.valueOf("upi_intent")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -65,7 +57,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -86,7 +78,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -94,8 +90,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public UpiIntentDetails() { - } + public UpiIntentDetails() {} /** * TPAP (Third Party Application) Id that is being used to make the UPI payment @@ -110,6 +105,7 @@ public UpiIntentDetails appId(String appId) { /** * TPAP (Third Party Application) Id that is being used to make the UPI payment + * * @return appId TPAP (Third Party Application) Id that is being used to make the UPI payment */ @JsonProperty(JSON_PROPERTY_APP_ID) @@ -142,6 +138,7 @@ public UpiIntentDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -162,13 +159,13 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code UpiIntentDetails} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public UpiIntentDetails recurringDetailReference(String recurringDetailReference) { @@ -177,8 +174,11 @@ public UpiIntentDetails recurringDetailReference(String recurringDetailReference } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -189,12 +189,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -204,9 +204,11 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. + * The `shopperNotificationReference` returned in the response when you requested to + * notify the shopper. Used for recurring payment only. * - * @param shopperNotificationReference The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. + * @param shopperNotificationReference The `shopperNotificationReference` returned in + * the response when you requested to notify the shopper. Used for recurring payment only. * @return the current {@code UpiIntentDetails} instance, allowing for method chaining */ public UpiIntentDetails shopperNotificationReference(String shopperNotificationReference) { @@ -215,8 +217,11 @@ public UpiIntentDetails shopperNotificationReference(String shopperNotificationR } /** - * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. - * @return shopperNotificationReference The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. + * The `shopperNotificationReference` returned in the response when you requested to + * notify the shopper. Used for recurring payment only. + * + * @return shopperNotificationReference The `shopperNotificationReference` returned in + * the response when you requested to notify the shopper. Used for recurring payment only. */ @JsonProperty(JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -225,9 +230,11 @@ public String getShopperNotificationReference() { } /** - * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. + * The `shopperNotificationReference` returned in the response when you requested to + * notify the shopper. Used for recurring payment only. * - * @param shopperNotificationReference The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. + * @param shopperNotificationReference The `shopperNotificationReference` returned in + * the response when you requested to notify the shopper. Used for recurring payment only. */ @JsonProperty(JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -236,9 +243,11 @@ public void setShopperNotificationReference(String shopperNotificationReference) } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code UpiIntentDetails} instance, allowing for method chaining */ public UpiIntentDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -247,8 +256,11 @@ public UpiIntentDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -257,9 +269,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -280,6 +294,7 @@ public UpiIntentDetails type(TypeEnum type) { /** * **upi_intent** + * * @return type **upi_intent** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -299,9 +314,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this UpiIntentDetails object is equal to o. - */ + /** Return true if this UpiIntentDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -311,17 +324,24 @@ public boolean equals(Object o) { return false; } UpiIntentDetails upiIntentDetails = (UpiIntentDetails) o; - return Objects.equals(this.appId, upiIntentDetails.appId) && - Objects.equals(this.checkoutAttemptId, upiIntentDetails.checkoutAttemptId) && - Objects.equals(this.recurringDetailReference, upiIntentDetails.recurringDetailReference) && - Objects.equals(this.shopperNotificationReference, upiIntentDetails.shopperNotificationReference) && - Objects.equals(this.storedPaymentMethodId, upiIntentDetails.storedPaymentMethodId) && - Objects.equals(this.type, upiIntentDetails.type); + return Objects.equals(this.appId, upiIntentDetails.appId) + && Objects.equals(this.checkoutAttemptId, upiIntentDetails.checkoutAttemptId) + && Objects.equals(this.recurringDetailReference, upiIntentDetails.recurringDetailReference) + && Objects.equals( + this.shopperNotificationReference, upiIntentDetails.shopperNotificationReference) + && Objects.equals(this.storedPaymentMethodId, upiIntentDetails.storedPaymentMethodId) + && Objects.equals(this.type, upiIntentDetails.type); } @Override public int hashCode() { - return Objects.hash(appId, checkoutAttemptId, recurringDetailReference, shopperNotificationReference, storedPaymentMethodId, type); + return Objects.hash( + appId, + checkoutAttemptId, + recurringDetailReference, + shopperNotificationReference, + storedPaymentMethodId, + type); } @Override @@ -330,17 +350,22 @@ public String toString() { sb.append("class UpiIntentDetails {\n"); sb.append(" appId: ").append(toIndentedString(appId)).append("\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" shopperNotificationReference: ").append(toIndentedString(shopperNotificationReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" shopperNotificationReference: ") + .append(toIndentedString(shopperNotificationReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -349,7 +374,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of UpiIntentDetails given an JSON string * * @param jsonString JSON string @@ -359,11 +384,12 @@ private String toIndentedString(Object o) { public static UpiIntentDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpiIntentDetails.class); } -/** - * Convert an instance of UpiIntentDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of UpiIntentDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/UtilityRequest.java b/src/main/java/com/adyen/model/checkout/UtilityRequest.java index 033a5f748..cff9c4bd7 100644 --- a/src/main/java/com/adyen/model/checkout/UtilityRequest.java +++ b/src/main/java/com/adyen/model/checkout/UtilityRequest.java @@ -2,43 +2,30 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * UtilityRequest - */ -@JsonPropertyOrder({ - UtilityRequest.JSON_PROPERTY_ORIGIN_DOMAINS -}) - +/** UtilityRequest */ +@JsonPropertyOrder({UtilityRequest.JSON_PROPERTY_ORIGIN_DOMAINS}) public class UtilityRequest { public static final String JSON_PROPERTY_ORIGIN_DOMAINS = "originDomains"; private List originDomains; - public UtilityRequest() { - } + public UtilityRequest() {} /** * The list of origin domains, for which origin keys are requested. @@ -61,6 +48,7 @@ public UtilityRequest addOriginDomainsItem(String originDomainsItem) { /** * The list of origin domains, for which origin keys are requested. + * * @return originDomains The list of origin domains, for which origin keys are requested. */ @JsonProperty(JSON_PROPERTY_ORIGIN_DOMAINS) @@ -80,9 +68,7 @@ public void setOriginDomains(List originDomains) { this.originDomains = originDomains; } - /** - * Return true if this UtilityRequest object is equal to o. - */ + /** Return true if this UtilityRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -110,8 +96,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -120,7 +105,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of UtilityRequest given an JSON string * * @param jsonString JSON string @@ -130,11 +115,12 @@ private String toIndentedString(Object o) { public static UtilityRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UtilityRequest.class); } -/** - * Convert an instance of UtilityRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of UtilityRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/UtilityResponse.java b/src/main/java/com/adyen/model/checkout/UtilityResponse.java index c30305ae4..fcf98951d 100644 --- a/src/main/java/com/adyen/model/checkout/UtilityResponse.java +++ b/src/main/java/com/adyen/model/checkout/UtilityResponse.java @@ -2,48 +2,37 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.HashMap; +import java.util.Map; - -/** - * UtilityResponse - */ -@JsonPropertyOrder({ - UtilityResponse.JSON_PROPERTY_ORIGIN_KEYS -}) - +/** UtilityResponse */ +@JsonPropertyOrder({UtilityResponse.JSON_PROPERTY_ORIGIN_KEYS}) public class UtilityResponse { public static final String JSON_PROPERTY_ORIGIN_KEYS = "originKeys"; private Map originKeys; - public UtilityResponse() { - } + public UtilityResponse() {} /** - * The list of origin keys for all requested domains. For each list item, the key is the domain and the value is the origin key. + * The list of origin keys for all requested domains. For each list item, the key is the domain + * and the value is the origin key. * - * @param originKeys The list of origin keys for all requested domains. For each list item, the key is the domain and the value is the origin key. + * @param originKeys The list of origin keys for all requested domains. For each list item, the + * key is the domain and the value is the origin key. * @return the current {@code UtilityResponse} instance, allowing for method chaining */ public UtilityResponse originKeys(Map originKeys) { @@ -60,8 +49,11 @@ public UtilityResponse putOriginKeysItem(String key, String originKeysItem) { } /** - * The list of origin keys for all requested domains. For each list item, the key is the domain and the value is the origin key. - * @return originKeys The list of origin keys for all requested domains. For each list item, the key is the domain and the value is the origin key. + * The list of origin keys for all requested domains. For each list item, the key is the domain + * and the value is the origin key. + * + * @return originKeys The list of origin keys for all requested domains. For each list item, the + * key is the domain and the value is the origin key. */ @JsonProperty(JSON_PROPERTY_ORIGIN_KEYS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +62,11 @@ public Map getOriginKeys() { } /** - * The list of origin keys for all requested domains. For each list item, the key is the domain and the value is the origin key. + * The list of origin keys for all requested domains. For each list item, the key is the domain + * and the value is the origin key. * - * @param originKeys The list of origin keys for all requested domains. For each list item, the key is the domain and the value is the origin key. + * @param originKeys The list of origin keys for all requested domains. For each list item, the + * key is the domain and the value is the origin key. */ @JsonProperty(JSON_PROPERTY_ORIGIN_KEYS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,9 +74,7 @@ public void setOriginKeys(Map originKeys) { this.originKeys = originKeys; } - /** - * Return true if this UtilityResponse object is equal to o. - */ + /** Return true if this UtilityResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -110,8 +102,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -120,7 +111,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of UtilityResponse given an JSON string * * @param jsonString JSON string @@ -130,11 +121,12 @@ private String toIndentedString(Object o) { public static UtilityResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UtilityResponse.class); } -/** - * Convert an instance of UtilityResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of UtilityResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ValidateShopperIdRequest.java b/src/main/java/com/adyen/model/checkout/ValidateShopperIdRequest.java index 62599b864..61bd95a9c 100644 --- a/src/main/java/com/adyen/model/checkout/ValidateShopperIdRequest.java +++ b/src/main/java/com/adyen/model/checkout/ValidateShopperIdRequest.java @@ -2,32 +2,22 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.ShopperIdPaymentMethod; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ValidateShopperIdRequest - */ +/** ValidateShopperIdRequest */ @JsonPropertyOrder({ ValidateShopperIdRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, ValidateShopperIdRequest.JSON_PROPERTY_PAYMENT_METHOD, @@ -35,7 +25,6 @@ ValidateShopperIdRequest.JSON_PROPERTY_SHOPPER_I_P, ValidateShopperIdRequest.JSON_PROPERTY_SHOPPER_REFERENCE }) - public class ValidateShopperIdRequest { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; @@ -52,13 +41,13 @@ public class ValidateShopperIdRequest { public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference"; private String shopperReference; - public ValidateShopperIdRequest() { - } + public ValidateShopperIdRequest() {} /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. * @return the current {@code ValidateShopperIdRequest} instance, allowing for method chaining */ public ValidateShopperIdRequest merchantAccount(String merchantAccount) { @@ -68,7 +57,9 @@ public ValidateShopperIdRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * @return merchantAccount The merchant account identifier, with which you want to process the transaction. + * + * @return merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,7 +70,8 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -90,7 +82,7 @@ public void setMerchantAccount(String merchantAccount) { /** * paymentMethod * - * @param paymentMethod + * @param paymentMethod * @return the current {@code ValidateShopperIdRequest} instance, allowing for method chaining */ public ValidateShopperIdRequest paymentMethod(ShopperIdPaymentMethod paymentMethod) { @@ -100,7 +92,8 @@ public ValidateShopperIdRequest paymentMethod(ShopperIdPaymentMethod paymentMeth /** * Get paymentMethod - * @return paymentMethod + * + * @return paymentMethod */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,7 +104,7 @@ public ShopperIdPaymentMethod getPaymentMethod() { /** * paymentMethod * - * @param paymentMethod + * @param paymentMethod */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -122,7 +115,7 @@ public void setPaymentMethod(ShopperIdPaymentMethod paymentMethod) { /** * shopperEmail * - * @param shopperEmail + * @param shopperEmail * @return the current {@code ValidateShopperIdRequest} instance, allowing for method chaining */ public ValidateShopperIdRequest shopperEmail(String shopperEmail) { @@ -132,7 +125,8 @@ public ValidateShopperIdRequest shopperEmail(String shopperEmail) { /** * Get shopperEmail - * @return shopperEmail + * + * @return shopperEmail */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,7 +137,7 @@ public String getShopperEmail() { /** * shopperEmail * - * @param shopperEmail + * @param shopperEmail */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -154,7 +148,7 @@ public void setShopperEmail(String shopperEmail) { /** * shopperIP * - * @param shopperIP + * @param shopperIP * @return the current {@code ValidateShopperIdRequest} instance, allowing for method chaining */ public ValidateShopperIdRequest shopperIP(String shopperIP) { @@ -164,7 +158,8 @@ public ValidateShopperIdRequest shopperIP(String shopperIP) { /** * Get shopperIP - * @return shopperIP + * + * @return shopperIP */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -175,7 +170,7 @@ public String getShopperIP() { /** * shopperIP * - * @param shopperIP + * @param shopperIP */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,7 +181,7 @@ public void setShopperIP(String shopperIP) { /** * shopperReference * - * @param shopperReference + * @param shopperReference * @return the current {@code ValidateShopperIdRequest} instance, allowing for method chaining */ public ValidateShopperIdRequest shopperReference(String shopperReference) { @@ -196,7 +191,8 @@ public ValidateShopperIdRequest shopperReference(String shopperReference) { /** * Get shopperReference - * @return shopperReference + * + * @return shopperReference */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -207,7 +203,7 @@ public String getShopperReference() { /** * shopperReference * - * @param shopperReference + * @param shopperReference */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -215,9 +211,7 @@ public void setShopperReference(String shopperReference) { this.shopperReference = shopperReference; } - /** - * Return true if this ValidateShopperIdRequest object is equal to o. - */ + /** Return true if this ValidateShopperIdRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -227,11 +221,11 @@ public boolean equals(Object o) { return false; } ValidateShopperIdRequest validateShopperIdRequest = (ValidateShopperIdRequest) o; - return Objects.equals(this.merchantAccount, validateShopperIdRequest.merchantAccount) && - Objects.equals(this.paymentMethod, validateShopperIdRequest.paymentMethod) && - Objects.equals(this.shopperEmail, validateShopperIdRequest.shopperEmail) && - Objects.equals(this.shopperIP, validateShopperIdRequest.shopperIP) && - Objects.equals(this.shopperReference, validateShopperIdRequest.shopperReference); + return Objects.equals(this.merchantAccount, validateShopperIdRequest.merchantAccount) + && Objects.equals(this.paymentMethod, validateShopperIdRequest.paymentMethod) + && Objects.equals(this.shopperEmail, validateShopperIdRequest.shopperEmail) + && Objects.equals(this.shopperIP, validateShopperIdRequest.shopperIP) + && Objects.equals(this.shopperReference, validateShopperIdRequest.shopperReference); } @Override @@ -253,8 +247,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -263,21 +256,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ValidateShopperIdRequest given an JSON string * * @param jsonString JSON string * @return An instance of ValidateShopperIdRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to ValidateShopperIdRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ValidateShopperIdRequest */ - public static ValidateShopperIdRequest fromJson(String jsonString) throws JsonProcessingException { + public static ValidateShopperIdRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ValidateShopperIdRequest.class); } -/** - * Convert an instance of ValidateShopperIdRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ValidateShopperIdRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ValidateShopperIdResponse.java b/src/main/java/com/adyen/model/checkout/ValidateShopperIdResponse.java index ae731934e..6cfb52834 100644 --- a/src/main/java/com/adyen/model/checkout/ValidateShopperIdResponse.java +++ b/src/main/java/com/adyen/model/checkout/ValidateShopperIdResponse.java @@ -2,37 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.checkout.Result; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ValidateShopperIdResponse - */ +/** ValidateShopperIdResponse */ @JsonPropertyOrder({ ValidateShopperIdResponse.JSON_PROPERTY_REASON, ValidateShopperIdResponse.JSON_PROPERTY_RESULT }) - public class ValidateShopperIdResponse { public static final String JSON_PROPERTY_REASON = "reason"; private String reason; @@ -40,8 +29,7 @@ public class ValidateShopperIdResponse { public static final String JSON_PROPERTY_RESULT = "result"; private Result result; - public ValidateShopperIdResponse() { - } + public ValidateShopperIdResponse() {} /** * Reason for the result. @@ -56,6 +44,7 @@ public ValidateShopperIdResponse reason(String reason) { /** * Reason for the result. + * * @return reason Reason for the result. */ @JsonProperty(JSON_PROPERTY_REASON) @@ -78,7 +67,7 @@ public void setReason(String reason) { /** * result * - * @param result + * @param result * @return the current {@code ValidateShopperIdResponse} instance, allowing for method chaining */ public ValidateShopperIdResponse result(Result result) { @@ -88,7 +77,8 @@ public ValidateShopperIdResponse result(Result result) { /** * Get result - * @return result + * + * @return result */ @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,7 +89,7 @@ public Result getResult() { /** * result * - * @param result + * @param result */ @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,9 +97,7 @@ public void setResult(Result result) { this.result = result; } - /** - * Return true if this ValidateShopperIdResponse object is equal to o. - */ + /** Return true if this ValidateShopperIdResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -119,8 +107,8 @@ public boolean equals(Object o) { return false; } ValidateShopperIdResponse validateShopperIdResponse = (ValidateShopperIdResponse) o; - return Objects.equals(this.reason, validateShopperIdResponse.reason) && - Objects.equals(this.result, validateShopperIdResponse.result); + return Objects.equals(this.reason, validateShopperIdResponse.reason) + && Objects.equals(this.result, validateShopperIdResponse.result); } @Override @@ -139,8 +127,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -149,21 +136,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ValidateShopperIdResponse given an JSON string * * @param jsonString JSON string * @return An instance of ValidateShopperIdResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to ValidateShopperIdResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ValidateShopperIdResponse */ - public static ValidateShopperIdResponse fromJson(String jsonString) throws JsonProcessingException { + public static ValidateShopperIdResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ValidateShopperIdResponse.class); } -/** - * Convert an instance of ValidateShopperIdResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ValidateShopperIdResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/VippsDetails.java b/src/main/java/com/adyen/model/checkout/VippsDetails.java index 6130970f9..40f1654e4 100644 --- a/src/main/java/com/adyen/model/checkout/VippsDetails.java +++ b/src/main/java/com/adyen/model/checkout/VippsDetails.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * VippsDetails - */ +/** VippsDetails */ @JsonPropertyOrder({ VippsDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, VippsDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, @@ -34,7 +29,6 @@ VippsDetails.JSON_PROPERTY_TELEPHONE_NUMBER, VippsDetails.JSON_PROPERTY_TYPE }) - public class VippsDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -49,11 +43,8 @@ public class VippsDetails { public static final String JSON_PROPERTY_TELEPHONE_NUMBER = "telephoneNumber"; private String telephoneNumber; - /** - * **vipps** - */ + /** **vipps** */ public enum TypeEnum { - VIPPS(String.valueOf("vipps")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -61,7 +52,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -82,7 +73,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -90,8 +85,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public VippsDetails() { - } + public VippsDetails() {} /** * The checkout attempt identifier. @@ -106,6 +100,7 @@ public VippsDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -126,13 +121,13 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code VippsDetails} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public VippsDetails recurringDetailReference(String recurringDetailReference) { @@ -141,8 +136,11 @@ public VippsDetails recurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -153,12 +151,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -168,9 +166,11 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code VippsDetails} instance, allowing for method chaining */ public VippsDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -179,8 +179,11 @@ public VippsDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,9 +192,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,9 +205,7 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { } /** - * - * - * @param telephoneNumber + * @param telephoneNumber * @return the current {@code VippsDetails} instance, allowing for method chaining */ public VippsDetails telephoneNumber(String telephoneNumber) { @@ -211,8 +214,7 @@ public VippsDetails telephoneNumber(String telephoneNumber) { } /** - * - * @return telephoneNumber + * @return telephoneNumber */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,9 +223,7 @@ public String getTelephoneNumber() { } /** - * - * - * @param telephoneNumber + * @param telephoneNumber */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,6 +244,7 @@ public VippsDetails type(TypeEnum type) { /** * **vipps** + * * @return type **vipps** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -263,9 +264,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this VippsDetails object is equal to o. - */ + /** Return true if this VippsDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -275,16 +274,17 @@ public boolean equals(Object o) { return false; } VippsDetails vippsDetails = (VippsDetails) o; - return Objects.equals(this.checkoutAttemptId, vippsDetails.checkoutAttemptId) && - Objects.equals(this.recurringDetailReference, vippsDetails.recurringDetailReference) && - Objects.equals(this.storedPaymentMethodId, vippsDetails.storedPaymentMethodId) && - Objects.equals(this.telephoneNumber, vippsDetails.telephoneNumber) && - Objects.equals(this.type, vippsDetails.type); + return Objects.equals(this.checkoutAttemptId, vippsDetails.checkoutAttemptId) + && Objects.equals(this.recurringDetailReference, vippsDetails.recurringDetailReference) + && Objects.equals(this.storedPaymentMethodId, vippsDetails.storedPaymentMethodId) + && Objects.equals(this.telephoneNumber, vippsDetails.telephoneNumber) + && Objects.equals(this.type, vippsDetails.type); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, recurringDetailReference, storedPaymentMethodId, telephoneNumber, type); + return Objects.hash( + checkoutAttemptId, recurringDetailReference, storedPaymentMethodId, telephoneNumber, type); } @Override @@ -292,8 +292,12 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class VippsDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -301,8 +305,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -311,7 +314,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of VippsDetails given an JSON string * * @param jsonString JSON string @@ -321,11 +324,12 @@ private String toIndentedString(Object o) { public static VippsDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, VippsDetails.class); } -/** - * Convert an instance of VippsDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of VippsDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/VisaCheckoutDetails.java b/src/main/java/com/adyen/model/checkout/VisaCheckoutDetails.java index 993cb5af0..e9bf15507 100644 --- a/src/main/java/com/adyen/model/checkout/VisaCheckoutDetails.java +++ b/src/main/java/com/adyen/model/checkout/VisaCheckoutDetails.java @@ -2,47 +2,41 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * VisaCheckoutDetails - */ +/** VisaCheckoutDetails */ @JsonPropertyOrder({ VisaCheckoutDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, VisaCheckoutDetails.JSON_PROPERTY_FUNDING_SOURCE, VisaCheckoutDetails.JSON_PROPERTY_TYPE, VisaCheckoutDetails.JSON_PROPERTY_VISA_CHECKOUT_CALL_ID }) - public class VisaCheckoutDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. */ public enum FundingSourceEnum { - CREDIT(String.valueOf("credit")), DEBIT(String.valueOf("debit")); @@ -52,7 +46,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +67,11 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); + LOG.warning( + "FundingSourceEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -81,11 +79,8 @@ public static FundingSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_FUNDING_SOURCE = "fundingSource"; private FundingSourceEnum fundingSource; - /** - * **visacheckout** - */ + /** **visacheckout** */ public enum TypeEnum { - VISACHECKOUT(String.valueOf("visacheckout")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -93,7 +88,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -114,7 +109,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -125,8 +124,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VISA_CHECKOUT_CALL_ID = "visaCheckoutCallId"; private String visaCheckoutCallId; - public VisaCheckoutDetails() { - } + public VisaCheckoutDetails() {} /** * The checkout attempt identifier. @@ -141,6 +139,7 @@ public VisaCheckoutDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -161,9 +160,12 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. * @return the current {@code VisaCheckoutDetails} instance, allowing for method chaining */ public VisaCheckoutDetails fundingSource(FundingSourceEnum fundingSource) { @@ -172,8 +174,12 @@ public VisaCheckoutDetails fundingSource(FundingSourceEnum fundingSource) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. - * @return fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * + * @return fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,9 +188,12 @@ public FundingSourceEnum getFundingSource() { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -205,6 +214,7 @@ public VisaCheckoutDetails type(TypeEnum type) { /** * **visacheckout** + * * @return type **visacheckout** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -225,9 +235,12 @@ public void setType(TypeEnum type) { } /** - * The Visa Click to Pay Call ID value. When your shopper selects a payment and/or a shipping address from Visa Click to Pay, you will receive a Visa Click to Pay Call ID. + * The Visa Click to Pay Call ID value. When your shopper selects a payment and/or a shipping + * address from Visa Click to Pay, you will receive a Visa Click to Pay Call ID. * - * @param visaCheckoutCallId The Visa Click to Pay Call ID value. When your shopper selects a payment and/or a shipping address from Visa Click to Pay, you will receive a Visa Click to Pay Call ID. + * @param visaCheckoutCallId The Visa Click to Pay Call ID value. When your shopper selects a + * payment and/or a shipping address from Visa Click to Pay, you will receive a Visa Click to + * Pay Call ID. * @return the current {@code VisaCheckoutDetails} instance, allowing for method chaining */ public VisaCheckoutDetails visaCheckoutCallId(String visaCheckoutCallId) { @@ -236,8 +249,12 @@ public VisaCheckoutDetails visaCheckoutCallId(String visaCheckoutCallId) { } /** - * The Visa Click to Pay Call ID value. When your shopper selects a payment and/or a shipping address from Visa Click to Pay, you will receive a Visa Click to Pay Call ID. - * @return visaCheckoutCallId The Visa Click to Pay Call ID value. When your shopper selects a payment and/or a shipping address from Visa Click to Pay, you will receive a Visa Click to Pay Call ID. + * The Visa Click to Pay Call ID value. When your shopper selects a payment and/or a shipping + * address from Visa Click to Pay, you will receive a Visa Click to Pay Call ID. + * + * @return visaCheckoutCallId The Visa Click to Pay Call ID value. When your shopper selects a + * payment and/or a shipping address from Visa Click to Pay, you will receive a Visa Click to + * Pay Call ID. */ @JsonProperty(JSON_PROPERTY_VISA_CHECKOUT_CALL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -246,9 +263,12 @@ public String getVisaCheckoutCallId() { } /** - * The Visa Click to Pay Call ID value. When your shopper selects a payment and/or a shipping address from Visa Click to Pay, you will receive a Visa Click to Pay Call ID. + * The Visa Click to Pay Call ID value. When your shopper selects a payment and/or a shipping + * address from Visa Click to Pay, you will receive a Visa Click to Pay Call ID. * - * @param visaCheckoutCallId The Visa Click to Pay Call ID value. When your shopper selects a payment and/or a shipping address from Visa Click to Pay, you will receive a Visa Click to Pay Call ID. + * @param visaCheckoutCallId The Visa Click to Pay Call ID value. When your shopper selects a + * payment and/or a shipping address from Visa Click to Pay, you will receive a Visa Click to + * Pay Call ID. */ @JsonProperty(JSON_PROPERTY_VISA_CHECKOUT_CALL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -256,9 +276,7 @@ public void setVisaCheckoutCallId(String visaCheckoutCallId) { this.visaCheckoutCallId = visaCheckoutCallId; } - /** - * Return true if this VisaCheckoutDetails object is equal to o. - */ + /** Return true if this VisaCheckoutDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -268,10 +286,10 @@ public boolean equals(Object o) { return false; } VisaCheckoutDetails visaCheckoutDetails = (VisaCheckoutDetails) o; - return Objects.equals(this.checkoutAttemptId, visaCheckoutDetails.checkoutAttemptId) && - Objects.equals(this.fundingSource, visaCheckoutDetails.fundingSource) && - Objects.equals(this.type, visaCheckoutDetails.type) && - Objects.equals(this.visaCheckoutCallId, visaCheckoutDetails.visaCheckoutCallId); + return Objects.equals(this.checkoutAttemptId, visaCheckoutDetails.checkoutAttemptId) + && Objects.equals(this.fundingSource, visaCheckoutDetails.fundingSource) + && Objects.equals(this.type, visaCheckoutDetails.type) + && Objects.equals(this.visaCheckoutCallId, visaCheckoutDetails.visaCheckoutCallId); } @Override @@ -292,8 +310,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -302,21 +319,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of VisaCheckoutDetails given an JSON string * * @param jsonString JSON string * @return An instance of VisaCheckoutDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to VisaCheckoutDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to + * VisaCheckoutDetails */ public static VisaCheckoutDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, VisaCheckoutDetails.class); } -/** - * Convert an instance of VisaCheckoutDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of VisaCheckoutDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/WeChatPayDetails.java b/src/main/java/com/adyen/model/checkout/WeChatPayDetails.java index f2a6a5307..74cabefcb 100644 --- a/src/main/java/com/adyen/model/checkout/WeChatPayDetails.java +++ b/src/main/java/com/adyen/model/checkout/WeChatPayDetails.java @@ -2,45 +2,36 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * WeChatPayDetails - */ +/** WeChatPayDetails */ @JsonPropertyOrder({ WeChatPayDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, WeChatPayDetails.JSON_PROPERTY_TYPE }) - public class WeChatPayDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; - /** - * **wechatpay** - */ + /** **wechatpay** */ public enum TypeEnum { - WECHATPAY(String.valueOf("wechatpay")), WECHATPAY_POS(String.valueOf("wechatpay_pos")); @@ -50,7 +41,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -71,7 +62,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -79,8 +74,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public WeChatPayDetails() { - } + public WeChatPayDetails() {} /** * The checkout attempt identifier. @@ -95,6 +89,7 @@ public WeChatPayDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -127,6 +122,7 @@ public WeChatPayDetails type(TypeEnum type) { /** * **wechatpay** + * * @return type **wechatpay** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -146,9 +142,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this WeChatPayDetails object is equal to o. - */ + /** Return true if this WeChatPayDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -158,8 +152,8 @@ public boolean equals(Object o) { return false; } WeChatPayDetails weChatPayDetails = (WeChatPayDetails) o; - return Objects.equals(this.checkoutAttemptId, weChatPayDetails.checkoutAttemptId) && - Objects.equals(this.type, weChatPayDetails.type); + return Objects.equals(this.checkoutAttemptId, weChatPayDetails.checkoutAttemptId) + && Objects.equals(this.type, weChatPayDetails.type); } @Override @@ -178,8 +172,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -188,7 +181,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of WeChatPayDetails given an JSON string * * @param jsonString JSON string @@ -198,11 +191,12 @@ private String toIndentedString(Object o) { public static WeChatPayDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, WeChatPayDetails.class); } -/** - * Convert an instance of WeChatPayDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of WeChatPayDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/WeChatPayMiniProgramDetails.java b/src/main/java/com/adyen/model/checkout/WeChatPayMiniProgramDetails.java index 42249514e..9cb5ea8e1 100644 --- a/src/main/java/com/adyen/model/checkout/WeChatPayMiniProgramDetails.java +++ b/src/main/java/com/adyen/model/checkout/WeChatPayMiniProgramDetails.java @@ -2,38 +2,32 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * WeChatPayMiniProgramDetails - */ +/** WeChatPayMiniProgramDetails */ @JsonPropertyOrder({ WeChatPayMiniProgramDetails.JSON_PROPERTY_APP_ID, WeChatPayMiniProgramDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, WeChatPayMiniProgramDetails.JSON_PROPERTY_OPENID, WeChatPayMiniProgramDetails.JSON_PROPERTY_TYPE }) - public class WeChatPayMiniProgramDetails { public static final String JSON_PROPERTY_APP_ID = "appId"; private String appId; @@ -44,11 +38,8 @@ public class WeChatPayMiniProgramDetails { public static final String JSON_PROPERTY_OPENID = "openid"; private String openid; - /** - * **wechatpayMiniProgram** - */ + /** **wechatpayMiniProgram** */ public enum TypeEnum { - WECHATPAYMINIPROGRAM(String.valueOf("wechatpayMiniProgram")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -56,7 +47,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -77,7 +68,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -85,13 +80,12 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public WeChatPayMiniProgramDetails() { - } + public WeChatPayMiniProgramDetails() {} /** * appId * - * @param appId + * @param appId * @return the current {@code WeChatPayMiniProgramDetails} instance, allowing for method chaining */ public WeChatPayMiniProgramDetails appId(String appId) { @@ -101,7 +95,8 @@ public WeChatPayMiniProgramDetails appId(String appId) { /** * Get appId - * @return appId + * + * @return appId */ @JsonProperty(JSON_PROPERTY_APP_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,7 +107,7 @@ public String getAppId() { /** * appId * - * @param appId + * @param appId */ @JsonProperty(JSON_PROPERTY_APP_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -133,6 +128,7 @@ public WeChatPayMiniProgramDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -155,7 +151,7 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { /** * openid * - * @param openid + * @param openid * @return the current {@code WeChatPayMiniProgramDetails} instance, allowing for method chaining */ public WeChatPayMiniProgramDetails openid(String openid) { @@ -165,7 +161,8 @@ public WeChatPayMiniProgramDetails openid(String openid) { /** * Get openid - * @return openid + * + * @return openid */ @JsonProperty(JSON_PROPERTY_OPENID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,7 +173,7 @@ public String getOpenid() { /** * openid * - * @param openid + * @param openid */ @JsonProperty(JSON_PROPERTY_OPENID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -197,6 +194,7 @@ public WeChatPayMiniProgramDetails type(TypeEnum type) { /** * **wechatpayMiniProgram** + * * @return type **wechatpayMiniProgram** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -216,9 +214,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this WeChatPayMiniProgramDetails object is equal to o. - */ + /** Return true if this WeChatPayMiniProgramDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -228,10 +224,10 @@ public boolean equals(Object o) { return false; } WeChatPayMiniProgramDetails weChatPayMiniProgramDetails = (WeChatPayMiniProgramDetails) o; - return Objects.equals(this.appId, weChatPayMiniProgramDetails.appId) && - Objects.equals(this.checkoutAttemptId, weChatPayMiniProgramDetails.checkoutAttemptId) && - Objects.equals(this.openid, weChatPayMiniProgramDetails.openid) && - Objects.equals(this.type, weChatPayMiniProgramDetails.type); + return Objects.equals(this.appId, weChatPayMiniProgramDetails.appId) + && Objects.equals(this.checkoutAttemptId, weChatPayMiniProgramDetails.checkoutAttemptId) + && Objects.equals(this.openid, weChatPayMiniProgramDetails.openid) + && Objects.equals(this.type, weChatPayMiniProgramDetails.type); } @Override @@ -252,8 +248,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -262,21 +257,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of WeChatPayMiniProgramDetails given an JSON string * * @param jsonString JSON string * @return An instance of WeChatPayMiniProgramDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to WeChatPayMiniProgramDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to + * WeChatPayMiniProgramDetails */ - public static WeChatPayMiniProgramDetails fromJson(String jsonString) throws JsonProcessingException { + public static WeChatPayMiniProgramDetails fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, WeChatPayMiniProgramDetails.class); } -/** - * Convert an instance of WeChatPayMiniProgramDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of WeChatPayMiniProgramDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/checkout/ZipDetails.java b/src/main/java/com/adyen/model/checkout/ZipDetails.java index 39ce78bd7..368c13648 100644 --- a/src/main/java/com/adyen/model/checkout/ZipDetails.java +++ b/src/main/java/com/adyen/model/checkout/ZipDetails.java @@ -2,31 +2,26 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.checkout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * ZipDetails - */ +/** ZipDetails */ @JsonPropertyOrder({ ZipDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, ZipDetails.JSON_PROPERTY_CLICK_AND_COLLECT, @@ -34,7 +29,6 @@ ZipDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, ZipDetails.JSON_PROPERTY_TYPE }) - public class ZipDetails { public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; private String checkoutAttemptId; @@ -49,11 +43,8 @@ public class ZipDetails { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - /** - * **zip** - */ + /** **zip** */ public enum TypeEnum { - ZIP(String.valueOf("zip")), ZIP_POS(String.valueOf("zip_pos")); @@ -63,7 +54,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -84,7 +75,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -92,8 +87,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public ZipDetails() { - } + public ZipDetails() {} /** * The checkout attempt identifier. @@ -108,6 +102,7 @@ public ZipDetails checkoutAttemptId(String checkoutAttemptId) { /** * The checkout attempt identifier. + * * @return checkoutAttemptId The checkout attempt identifier. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) @@ -128,9 +123,11 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { } /** - * Set this to **true** if the shopper would like to pick up and collect their order, instead of having the goods delivered to them. + * Set this to **true** if the shopper would like to pick up and collect their order, instead of + * having the goods delivered to them. * - * @param clickAndCollect Set this to **true** if the shopper would like to pick up and collect their order, instead of having the goods delivered to them. + * @param clickAndCollect Set this to **true** if the shopper would like to pick up and collect + * their order, instead of having the goods delivered to them. * @return the current {@code ZipDetails} instance, allowing for method chaining */ public ZipDetails clickAndCollect(String clickAndCollect) { @@ -139,8 +136,11 @@ public ZipDetails clickAndCollect(String clickAndCollect) { } /** - * Set this to **true** if the shopper would like to pick up and collect their order, instead of having the goods delivered to them. - * @return clickAndCollect Set this to **true** if the shopper would like to pick up and collect their order, instead of having the goods delivered to them. + * Set this to **true** if the shopper would like to pick up and collect their order, instead of + * having the goods delivered to them. + * + * @return clickAndCollect Set this to **true** if the shopper would like to pick up and collect + * their order, instead of having the goods delivered to them. */ @JsonProperty(JSON_PROPERTY_CLICK_AND_COLLECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -149,9 +149,11 @@ public String getClickAndCollect() { } /** - * Set this to **true** if the shopper would like to pick up and collect their order, instead of having the goods delivered to them. + * Set this to **true** if the shopper would like to pick up and collect their order, instead of + * having the goods delivered to them. * - * @param clickAndCollect Set this to **true** if the shopper would like to pick up and collect their order, instead of having the goods delivered to them. + * @param clickAndCollect Set this to **true** if the shopper would like to pick up and collect + * their order, instead of having the goods delivered to them. */ @JsonProperty(JSON_PROPERTY_CLICK_AND_COLLECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,13 +162,13 @@ public void setClickAndCollect(String clickAndCollect) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code ZipDetails} instance, allowing for method chaining - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. public ZipDetails recurringDetailReference(String recurringDetailReference) { @@ -175,8 +177,11 @@ public ZipDetails recurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @@ -187,12 +192,12 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. - * - * @deprecated since Adyen Checkout API v49 - * Use `storedPaymentMethodId` instead. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -202,9 +207,11 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code ZipDetails} instance, allowing for method chaining */ public ZipDetails storedPaymentMethodId(String storedPaymentMethodId) { @@ -213,8 +220,11 @@ public ZipDetails storedPaymentMethodId(String storedPaymentMethodId) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,9 +233,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -246,6 +258,7 @@ public ZipDetails type(TypeEnum type) { /** * **zip** + * * @return type **zip** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -265,9 +278,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this ZipDetails object is equal to o. - */ + /** Return true if this ZipDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -277,16 +288,17 @@ public boolean equals(Object o) { return false; } ZipDetails zipDetails = (ZipDetails) o; - return Objects.equals(this.checkoutAttemptId, zipDetails.checkoutAttemptId) && - Objects.equals(this.clickAndCollect, zipDetails.clickAndCollect) && - Objects.equals(this.recurringDetailReference, zipDetails.recurringDetailReference) && - Objects.equals(this.storedPaymentMethodId, zipDetails.storedPaymentMethodId) && - Objects.equals(this.type, zipDetails.type); + return Objects.equals(this.checkoutAttemptId, zipDetails.checkoutAttemptId) + && Objects.equals(this.clickAndCollect, zipDetails.clickAndCollect) + && Objects.equals(this.recurringDetailReference, zipDetails.recurringDetailReference) + && Objects.equals(this.storedPaymentMethodId, zipDetails.storedPaymentMethodId) + && Objects.equals(this.type, zipDetails.type); } @Override public int hashCode() { - return Objects.hash(checkoutAttemptId, clickAndCollect, recurringDetailReference, storedPaymentMethodId, type); + return Objects.hash( + checkoutAttemptId, clickAndCollect, recurringDetailReference, storedPaymentMethodId, type); } @Override @@ -295,16 +307,19 @@ public String toString() { sb.append("class ZipDetails {\n"); sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); sb.append(" clickAndCollect: ").append(toIndentedString(clickAndCollect)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -313,7 +328,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ZipDetails given an JSON string * * @param jsonString JSON string @@ -323,11 +338,12 @@ private String toIndentedString(Object o) { public static ZipDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ZipDetails.class); } -/** - * Convert an instance of ZipDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ZipDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/configurationwebhooks/AbstractOpenApiSchema.java index 28470cad6..3cfc72ea4 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/AbstractOpenApiSchema.java @@ -2,145 +2,141 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.Objects; -import java.util.Map; -import jakarta.ws.rs.core.GenericType; - import com.fasterxml.jackson.annotation.JsonValue; +import jakarta.ws.rs.core.GenericType; +import java.util.Map; +import java.util.Objects; -/** - * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec - */ +/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() {return instance;} - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) {this.instance = instance;} - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); - } else { - return object.getActualInstance(); - } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() { + return instance; + } + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) { + this.instance = instance; + } + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf + * schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); + } else { + return object.getActualInstance(); } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) && - Objects.equals(this.isNullable, a.isNullable) && - Objects.equals(this.schemaType, a.schemaType); + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; } + return o.toString().replace("\n", "\n "); + } - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); + public boolean equals(Object o) { + if (this == o) { + return true; } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); + if (o == null || getClass() != o.getClass()) { + return false; } - - - -} \ No newline at end of file + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) + && Objects.equals(this.isNullable, a.isNullable) + && Objects.equals(this.schemaType, a.schemaType); + } + + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); + } + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); + } +} diff --git a/src/main/java/com/adyen/model/configurationwebhooks/AccountHolder.java b/src/main/java/com/adyen/model/configurationwebhooks/AccountHolder.java index e2a42e844..7b41ee8d7 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/AccountHolder.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/AccountHolder.java @@ -2,38 +2,30 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.configurationwebhooks.AccountHolderCapability; -import com.adyen.model.configurationwebhooks.ContactDetails; -import com.adyen.model.configurationwebhooks.VerificationDeadline; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * AccountHolder - */ +/** AccountHolder */ @JsonPropertyOrder({ AccountHolder.JSON_PROPERTY_BALANCE_PLATFORM, AccountHolder.JSON_PROPERTY_CAPABILITIES, @@ -49,7 +41,6 @@ AccountHolder.JSON_PROPERTY_TIME_ZONE, AccountHolder.JSON_PROPERTY_VERIFICATION_DEADLINES }) - public class AccountHolder { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; @@ -58,7 +49,7 @@ public class AccountHolder { private Map capabilities; public static final String JSON_PROPERTY_CONTACT_DETAILS = "contactDetails"; - @Deprecated // deprecated + @Deprecated // deprecated private ContactDetails contactDetails; public static final String JSON_PROPERTY_DESCRIPTION = "description"; @@ -73,7 +64,8 @@ public class AccountHolder { public static final String JSON_PROPERTY_METADATA = "metadata"; private Map metadata; - public static final String JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE = "migratedAccountHolderCode"; + public static final String JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE = + "migratedAccountHolderCode"; private String migratedAccountHolderCode; public static final String JSON_PROPERTY_PRIMARY_BALANCE_ACCOUNT = "primaryBalanceAccount"; @@ -83,10 +75,14 @@ public class AccountHolder { private String reference; /** - * The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. + * The status of the account holder. Possible values: * **active**: The account holder is active + * and allowed to use its capabilities. This is the initial status for account holders and balance + * accounts. You can change this status to **suspended** or **closed**. * **suspended**: The + * account holder is temporarily disabled and payouts are blocked. You can change this status to + * **active** or **closed**. * **closed**: The account holder and all of its capabilities are + * permanently disabled. This is a final status and cannot be changed. */ public enum StatusEnum { - ACTIVE(String.valueOf("active")), CLOSED(String.valueOf("closed")), @@ -98,7 +94,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -119,7 +115,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -133,13 +133,18 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_VERIFICATION_DEADLINES = "verificationDeadlines"; private List verificationDeadlines; - public AccountHolder() { - } + public AccountHolder() {} /** - * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. + * The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the account holder belongs. Required in the request if your API credentials can be + * used for multiple balance platforms. * - * @param balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. + * @param balancePlatform The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the account holder belongs. Required in the request if your API credentials can be + * used for multiple balance platforms. * @return the current {@code AccountHolder} instance, allowing for method chaining */ public AccountHolder balancePlatform(String balancePlatform) { @@ -148,8 +153,15 @@ public AccountHolder balancePlatform(String balancePlatform) { } /** - * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. - * @return balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. + * The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the account holder belongs. Required in the request if your API credentials can be + * used for multiple balance platforms. + * + * @return balancePlatform The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the account holder belongs. Required in the request if your API credentials can be + * used for multiple balance platforms. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,9 +170,15 @@ public String getBalancePlatform() { } /** - * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. + * The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the account holder belongs. Required in the request if your API credentials can be + * used for multiple balance platforms. * - * @param balancePlatform The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. + * @param balancePlatform The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) + * to which the account holder belongs. Required in the request if your API credentials can be + * used for multiple balance platforms. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,9 +187,14 @@ public void setBalancePlatform(String balancePlatform) { } /** - * Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that an account holder can do in your + * platform. The key is a capability required for your integration. For example, **issueCard** for + * Issuing. The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * @param capabilities Contains key-value pairs that specify the actions that an account holder + * can do in your platform. The key is a capability required for your integration. For + * example, **issueCard** for Issuing. The value is an object containing the settings for the + * capability. * @return the current {@code AccountHolder} instance, allowing for method chaining */ public AccountHolder capabilities(Map capabilities) { @@ -188,8 +211,14 @@ public AccountHolder putCapabilitiesItem(String key, AccountHolderCapability cap } /** - * Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. - * @return capabilities Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that an account holder can do in your + * platform. The key is a capability required for your integration. For example, **issueCard** for + * Issuing. The value is an object containing the settings for the capability. + * + * @return capabilities Contains key-value pairs that specify the actions that an account holder + * can do in your platform. The key is a capability required for your integration. For + * example, **issueCard** for Issuing. The value is an object containing the settings for the + * capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,9 +227,14 @@ public Map getCapabilities() { } /** - * Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that an account holder can do in your + * platform. The key is a capability required for your integration. For example, **issueCard** for + * Issuing. The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * @param capabilities Contains key-value pairs that specify the actions that an account holder + * can do in your platform. The key is a capability required for your integration. For + * example, **issueCard** for Issuing. The value is an object containing the settings for the + * capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,12 +245,11 @@ public void setCapabilities(Map capabilities) { /** * contactDetails * - * @param contactDetails + * @param contactDetails * @return the current {@code AccountHolder} instance, allowing for method chaining - * - * @deprecated + * @deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated public AccountHolder contactDetails(ContactDetails contactDetails) { this.contactDetails = contactDetails; return this; @@ -224,10 +257,11 @@ public AccountHolder contactDetails(ContactDetails contactDetails) { /** * Get contactDetails - * @return contactDetails - * @deprecated // deprecated + * + * @return contactDetails + * @deprecated // deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated @JsonProperty(JSON_PROPERTY_CONTACT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ContactDetails getContactDetails() { @@ -237,11 +271,10 @@ public ContactDetails getContactDetails() { /** * contactDetails * - * @param contactDetails - * - * @deprecated + * @param contactDetails + * @deprecated */ - @Deprecated // deprecated + @Deprecated // deprecated @JsonProperty(JSON_PROPERTY_CONTACT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setContactDetails(ContactDetails contactDetails) { @@ -261,6 +294,7 @@ public AccountHolder description(String description) { /** * Your description for the account holder. + * * @return description Your description for the account holder. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -293,6 +327,7 @@ public AccountHolder id(String id) { /** * The unique identifier of the account holder. + * * @return id The unique identifier of the account holder. */ @JsonProperty(JSON_PROPERTY_ID) @@ -313,9 +348,15 @@ public void setId(String id) { } /** - * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. + * The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) + * associated with the account holder. Adyen performs a verification process against the legal + * entity of the account holder. * - * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. + * @param legalEntityId The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) + * associated with the account holder. Adyen performs a verification process against the legal + * entity of the account holder. * @return the current {@code AccountHolder} instance, allowing for method chaining */ public AccountHolder legalEntityId(String legalEntityId) { @@ -324,8 +365,15 @@ public AccountHolder legalEntityId(String legalEntityId) { } /** - * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. - * @return legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. + * The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) + * associated with the account holder. Adyen performs a verification process against the legal + * entity of the account holder. + * + * @return legalEntityId The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) + * associated with the account holder. Adyen performs a verification process against the legal + * entity of the account holder. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -334,9 +382,15 @@ public String getLegalEntityId() { } /** - * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. + * The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) + * associated with the account holder. Adyen performs a verification process against the legal + * entity of the account holder. * - * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. + * @param legalEntityId The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) + * associated with the account holder. Adyen performs a verification process against the legal + * entity of the account holder. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -345,9 +399,14 @@ public void setLegalEntityId(String legalEntityId) { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be + * used for storing miscellaneous data as desired. > Note that during an update of metadata, + * the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific + * names and may be used for storing miscellaneous data as desired. > Note that during an + * update of metadata, the omission of existing key-value pairs will result in the deletion of + * those key-value pairs. * @return the current {@code AccountHolder} instance, allowing for method chaining */ public AccountHolder metadata(Map metadata) { @@ -364,8 +423,14 @@ public AccountHolder putMetadataItem(String key, String metadataItem) { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. - * @return metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be + * used for storing miscellaneous data as desired. > Note that during an update of metadata, + * the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * + * @return metadata A set of key and value pairs for general use. The keys do not have specific + * names and may be used for storing miscellaneous data as desired. > Note that during an + * update of metadata, the omission of existing key-value pairs will result in the deletion of + * those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -374,9 +439,14 @@ public Map getMetadata() { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be + * used for storing miscellaneous data as desired. > Note that during an update of metadata, + * the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific + * names and may be used for storing miscellaneous data as desired. > Note that during an + * update of metadata, the omission of existing key-value pairs will result in the deletion of + * those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -387,7 +457,8 @@ public void setMetadata(Map metadata) { /** * The unique identifier of the migrated account holder in the classic integration. * - * @param migratedAccountHolderCode The unique identifier of the migrated account holder in the classic integration. + * @param migratedAccountHolderCode The unique identifier of the migrated account holder in the + * classic integration. * @return the current {@code AccountHolder} instance, allowing for method chaining */ public AccountHolder migratedAccountHolderCode(String migratedAccountHolderCode) { @@ -397,7 +468,9 @@ public AccountHolder migratedAccountHolderCode(String migratedAccountHolderCode) /** * The unique identifier of the migrated account holder in the classic integration. - * @return migratedAccountHolderCode The unique identifier of the migrated account holder in the classic integration. + * + * @return migratedAccountHolderCode The unique identifier of the migrated account holder in the + * classic integration. */ @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -408,7 +481,8 @@ public String getMigratedAccountHolderCode() { /** * The unique identifier of the migrated account holder in the classic integration. * - * @param migratedAccountHolderCode The unique identifier of the migrated account holder in the classic integration. + * @param migratedAccountHolderCode The unique identifier of the migrated account holder in the + * classic integration. */ @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -417,9 +491,13 @@ public void setMigratedAccountHolderCode(String migratedAccountHolderCode) { } /** - * The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. + * The ID of the account holder's primary balance account. By default, this is set to the + * first balance account that you create for the account holder. To assign a different balance + * account, send a PATCH request. * - * @param primaryBalanceAccount The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. + * @param primaryBalanceAccount The ID of the account holder's primary balance account. By + * default, this is set to the first balance account that you create for the account holder. + * To assign a different balance account, send a PATCH request. * @return the current {@code AccountHolder} instance, allowing for method chaining */ public AccountHolder primaryBalanceAccount(String primaryBalanceAccount) { @@ -428,8 +506,13 @@ public AccountHolder primaryBalanceAccount(String primaryBalanceAccount) { } /** - * The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. - * @return primaryBalanceAccount The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. + * The ID of the account holder's primary balance account. By default, this is set to the + * first balance account that you create for the account holder. To assign a different balance + * account, send a PATCH request. + * + * @return primaryBalanceAccount The ID of the account holder's primary balance account. By + * default, this is set to the first balance account that you create for the account holder. + * To assign a different balance account, send a PATCH request. */ @JsonProperty(JSON_PROPERTY_PRIMARY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -438,9 +521,13 @@ public String getPrimaryBalanceAccount() { } /** - * The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. + * The ID of the account holder's primary balance account. By default, this is set to the + * first balance account that you create for the account holder. To assign a different balance + * account, send a PATCH request. * - * @param primaryBalanceAccount The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. + * @param primaryBalanceAccount The ID of the account holder's primary balance account. By + * default, this is set to the first balance account that you create for the account holder. + * To assign a different balance account, send a PATCH request. */ @JsonProperty(JSON_PROPERTY_PRIMARY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -461,6 +548,7 @@ public AccountHolder reference(String reference) { /** * Your reference for the account holder. + * * @return reference Your reference for the account holder. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -481,9 +569,20 @@ public void setReference(String reference) { } /** - * The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. + * The status of the account holder. Possible values: * **active**: The account holder is active + * and allowed to use its capabilities. This is the initial status for account holders and balance + * accounts. You can change this status to **suspended** or **closed**. * **suspended**: The + * account holder is temporarily disabled and payouts are blocked. You can change this status to + * **active** or **closed**. * **closed**: The account holder and all of its capabilities are + * permanently disabled. This is a final status and cannot be changed. * - * @param status The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. + * @param status The status of the account holder. Possible values: * **active**: The account + * holder is active and allowed to use its capabilities. This is the initial status for + * account holders and balance accounts. You can change this status to **suspended** or + * **closed**. * **suspended**: The account holder is temporarily disabled and payouts are + * blocked. You can change this status to **active** or **closed**. * **closed**: The account + * holder and all of its capabilities are permanently disabled. This is a final status and + * cannot be changed. * @return the current {@code AccountHolder} instance, allowing for method chaining */ public AccountHolder status(StatusEnum status) { @@ -492,8 +591,20 @@ public AccountHolder status(StatusEnum status) { } /** - * The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. - * @return status The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. + * The status of the account holder. Possible values: * **active**: The account holder is active + * and allowed to use its capabilities. This is the initial status for account holders and balance + * accounts. You can change this status to **suspended** or **closed**. * **suspended**: The + * account holder is temporarily disabled and payouts are blocked. You can change this status to + * **active** or **closed**. * **closed**: The account holder and all of its capabilities are + * permanently disabled. This is a final status and cannot be changed. + * + * @return status The status of the account holder. Possible values: * **active**: The account + * holder is active and allowed to use its capabilities. This is the initial status for + * account holders and balance accounts. You can change this status to **suspended** or + * **closed**. * **suspended**: The account holder is temporarily disabled and payouts are + * blocked. You can change this status to **active** or **closed**. * **closed**: The account + * holder and all of its capabilities are permanently disabled. This is a final status and + * cannot be changed. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -502,9 +613,20 @@ public StatusEnum getStatus() { } /** - * The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. + * The status of the account holder. Possible values: * **active**: The account holder is active + * and allowed to use its capabilities. This is the initial status for account holders and balance + * accounts. You can change this status to **suspended** or **closed**. * **suspended**: The + * account holder is temporarily disabled and payouts are blocked. You can change this status to + * **active** or **closed**. * **closed**: The account holder and all of its capabilities are + * permanently disabled. This is a final status and cannot be changed. * - * @param status The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. + * @param status The status of the account holder. Possible values: * **active**: The account + * holder is active and allowed to use its capabilities. This is the initial status for + * account holders and balance accounts. You can change this status to **suspended** or + * **closed**. * **suspended**: The account holder is temporarily disabled and payouts are + * blocked. You can change this status to **active** or **closed**. * **closed**: The account + * holder and all of its capabilities are permanently disabled. This is a final status and + * cannot be changed. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -513,9 +635,14 @@ public void setStatus(StatusEnum status) { } /** - * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time + * zone of the balance platform if no time zone is set. For possible values, see the [list of time + * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. + * Defaults to the time zone of the balance platform if no time zone is set. For possible + * values, see the [list of time zone + * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * @return the current {@code AccountHolder} instance, allowing for method chaining */ public AccountHolder timeZone(String timeZone) { @@ -524,8 +651,14 @@ public AccountHolder timeZone(String timeZone) { } /** - * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). - * @return timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time + * zone of the balance platform if no time zone is set. For possible values, see the [list of time + * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * + * @return timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. + * Defaults to the time zone of the balance platform if no time zone is set. For possible + * values, see the [list of time zone + * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -534,9 +667,14 @@ public String getTimeZone() { } /** - * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time + * zone of the balance platform if no time zone is set. For possible values, see the [list of time + * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. + * Defaults to the time zone of the balance platform if no time zone is set. For possible + * values, see the [list of time zone + * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -545,9 +683,11 @@ public void setTimeZone(String timeZone) { } /** - * List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. + * List of verification deadlines and the capabilities that will be disallowed if verification + * errors are not resolved. * - * @param verificationDeadlines List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. + * @param verificationDeadlines List of verification deadlines and the capabilities that will be + * disallowed if verification errors are not resolved. * @return the current {@code AccountHolder} instance, allowing for method chaining */ public AccountHolder verificationDeadlines(List verificationDeadlines) { @@ -555,7 +695,8 @@ public AccountHolder verificationDeadlines(List verificati return this; } - public AccountHolder addVerificationDeadlinesItem(VerificationDeadline verificationDeadlinesItem) { + public AccountHolder addVerificationDeadlinesItem( + VerificationDeadline verificationDeadlinesItem) { if (this.verificationDeadlines == null) { this.verificationDeadlines = new ArrayList<>(); } @@ -564,8 +705,11 @@ public AccountHolder addVerificationDeadlinesItem(VerificationDeadline verificat } /** - * List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. - * @return verificationDeadlines List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. + * List of verification deadlines and the capabilities that will be disallowed if verification + * errors are not resolved. + * + * @return verificationDeadlines List of verification deadlines and the capabilities that will be + * disallowed if verification errors are not resolved. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_DEADLINES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -574,9 +718,11 @@ public List getVerificationDeadlines() { } /** - * List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. + * List of verification deadlines and the capabilities that will be disallowed if verification + * errors are not resolved. * - * @param verificationDeadlines List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. + * @param verificationDeadlines List of verification deadlines and the capabilities that will be + * disallowed if verification errors are not resolved. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_DEADLINES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -584,9 +730,7 @@ public void setVerificationDeadlines(List verificationDead this.verificationDeadlines = verificationDeadlines; } - /** - * Return true if this AccountHolder object is equal to o. - */ + /** Return true if this AccountHolder object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -596,24 +740,37 @@ public boolean equals(Object o) { return false; } AccountHolder accountHolder = (AccountHolder) o; - return Objects.equals(this.balancePlatform, accountHolder.balancePlatform) && - Objects.equals(this.capabilities, accountHolder.capabilities) && - Objects.equals(this.contactDetails, accountHolder.contactDetails) && - Objects.equals(this.description, accountHolder.description) && - Objects.equals(this.id, accountHolder.id) && - Objects.equals(this.legalEntityId, accountHolder.legalEntityId) && - Objects.equals(this.metadata, accountHolder.metadata) && - Objects.equals(this.migratedAccountHolderCode, accountHolder.migratedAccountHolderCode) && - Objects.equals(this.primaryBalanceAccount, accountHolder.primaryBalanceAccount) && - Objects.equals(this.reference, accountHolder.reference) && - Objects.equals(this.status, accountHolder.status) && - Objects.equals(this.timeZone, accountHolder.timeZone) && - Objects.equals(this.verificationDeadlines, accountHolder.verificationDeadlines); + return Objects.equals(this.balancePlatform, accountHolder.balancePlatform) + && Objects.equals(this.capabilities, accountHolder.capabilities) + && Objects.equals(this.contactDetails, accountHolder.contactDetails) + && Objects.equals(this.description, accountHolder.description) + && Objects.equals(this.id, accountHolder.id) + && Objects.equals(this.legalEntityId, accountHolder.legalEntityId) + && Objects.equals(this.metadata, accountHolder.metadata) + && Objects.equals(this.migratedAccountHolderCode, accountHolder.migratedAccountHolderCode) + && Objects.equals(this.primaryBalanceAccount, accountHolder.primaryBalanceAccount) + && Objects.equals(this.reference, accountHolder.reference) + && Objects.equals(this.status, accountHolder.status) + && Objects.equals(this.timeZone, accountHolder.timeZone) + && Objects.equals(this.verificationDeadlines, accountHolder.verificationDeadlines); } @Override public int hashCode() { - return Objects.hash(balancePlatform, capabilities, contactDetails, description, id, legalEntityId, metadata, migratedAccountHolderCode, primaryBalanceAccount, reference, status, timeZone, verificationDeadlines); + return Objects.hash( + balancePlatform, + capabilities, + contactDetails, + description, + id, + legalEntityId, + metadata, + migratedAccountHolderCode, + primaryBalanceAccount, + reference, + status, + timeZone, + verificationDeadlines); } @Override @@ -627,19 +784,24 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" legalEntityId: ").append(toIndentedString(legalEntityId)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" migratedAccountHolderCode: ").append(toIndentedString(migratedAccountHolderCode)).append("\n"); - sb.append(" primaryBalanceAccount: ").append(toIndentedString(primaryBalanceAccount)).append("\n"); + sb.append(" migratedAccountHolderCode: ") + .append(toIndentedString(migratedAccountHolderCode)) + .append("\n"); + sb.append(" primaryBalanceAccount: ") + .append(toIndentedString(primaryBalanceAccount)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); - sb.append(" verificationDeadlines: ").append(toIndentedString(verificationDeadlines)).append("\n"); + sb.append(" verificationDeadlines: ") + .append(toIndentedString(verificationDeadlines)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -648,7 +810,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AccountHolder given an JSON string * * @param jsonString JSON string @@ -658,11 +820,12 @@ private String toIndentedString(Object o) { public static AccountHolder fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountHolder.class); } -/** - * Convert an instance of AccountHolder to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AccountHolder to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderCapability.java b/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderCapability.java index 8a1fe200d..f4919a926 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderCapability.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderCapability.java @@ -2,36 +2,28 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.configurationwebhooks.AccountSupportingEntityCapability; -import com.adyen.model.configurationwebhooks.CapabilityProblem; -import com.adyen.model.configurationwebhooks.CapabilitySettings; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * AccountHolderCapability - */ +/** AccountHolderCapability */ @JsonPropertyOrder({ AccountHolderCapability.JSON_PROPERTY_ALLOWED, AccountHolderCapability.JSON_PROPERTY_ALLOWED_LEVEL, @@ -44,16 +36,15 @@ AccountHolderCapability.JSON_PROPERTY_TRANSFER_INSTRUMENTS, AccountHolderCapability.JSON_PROPERTY_VERIFICATION_STATUS }) - public class AccountHolderCapability { public static final String JSON_PROPERTY_ALLOWED = "allowed"; private Boolean allowed; /** - * The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The capability level that is allowed for the account holder. Possible values: + * **notApplicable**, **low**, **medium**, **high**. */ public enum AllowedLevelEnum { - HIGH(String.valueOf("high")), LOW(String.valueOf("low")), @@ -67,7 +58,7 @@ public enum AllowedLevelEnum { private String value; AllowedLevelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -88,7 +79,11 @@ public static AllowedLevelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AllowedLevelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AllowedLevelEnum.values())); + LOG.warning( + "AllowedLevelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AllowedLevelEnum.values())); return null; } } @@ -109,10 +104,12 @@ public static AllowedLevelEnum fromValue(String value) { private Boolean requested; /** - * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The requested level of the capability. Some capabilities, such as those used in [card + * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different + * levels. Levels increase the capability, but also require additional checks and increased + * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. */ public enum RequestedLevelEnum { - HIGH(String.valueOf("high")), LOW(String.valueOf("low")), @@ -126,7 +123,7 @@ public enum RequestedLevelEnum { private String value; RequestedLevelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -147,7 +144,11 @@ public static RequestedLevelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("RequestedLevelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RequestedLevelEnum.values())); + LOG.warning( + "RequestedLevelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(RequestedLevelEnum.values())); return null; } } @@ -162,10 +163,13 @@ public static RequestedLevelEnum fromValue(String value) { private List transferInstruments; /** - * The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. + * The status of the verification checks for the capability. Possible values: * **pending**: Adyen + * is running the verification. * **invalid**: The verification failed. Check if the + * `errors` array contains more information. * **valid**: The verification has been + * successfully completed. * **rejected**: Adyen has verified the information, but found reasons + * to not allow the capability. */ public enum VerificationStatusEnum { - INVALID(String.valueOf("invalid")), PENDING(String.valueOf("pending")), @@ -179,7 +183,7 @@ public enum VerificationStatusEnum { private String value; VerificationStatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -200,7 +204,11 @@ public static VerificationStatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("VerificationStatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(VerificationStatusEnum.values())); + LOG.warning( + "VerificationStatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(VerificationStatusEnum.values())); return null; } } @@ -208,13 +216,14 @@ public static VerificationStatusEnum fromValue(String value) { public static final String JSON_PROPERTY_VERIFICATION_STATUS = "verificationStatus"; private VerificationStatusEnum verificationStatus; - public AccountHolderCapability() { - } + public AccountHolderCapability() {} /** - * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. + * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is + * successful and the account holder is permitted to use the capability. * - * @param allowed Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. + * @param allowed Indicates whether the capability is allowed. Adyen sets this to **true** if the + * verification is successful and the account holder is permitted to use the capability. * @return the current {@code AccountHolderCapability} instance, allowing for method chaining */ public AccountHolderCapability allowed(Boolean allowed) { @@ -223,8 +232,11 @@ public AccountHolderCapability allowed(Boolean allowed) { } /** - * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. - * @return allowed Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. + * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is + * successful and the account holder is permitted to use the capability. + * + * @return allowed Indicates whether the capability is allowed. Adyen sets this to **true** if the + * verification is successful and the account holder is permitted to use the capability. */ @JsonProperty(JSON_PROPERTY_ALLOWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -233,9 +245,11 @@ public Boolean getAllowed() { } /** - * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. + * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is + * successful and the account holder is permitted to use the capability. * - * @param allowed Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. + * @param allowed Indicates whether the capability is allowed. Adyen sets this to **true** if the + * verification is successful and the account holder is permitted to use the capability. */ @JsonProperty(JSON_PROPERTY_ALLOWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,9 +258,11 @@ public void setAllowed(Boolean allowed) { } /** - * The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The capability level that is allowed for the account holder. Possible values: + * **notApplicable**, **low**, **medium**, **high**. * - * @param allowedLevel The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. + * @param allowedLevel The capability level that is allowed for the account holder. Possible + * values: **notApplicable**, **low**, **medium**, **high**. * @return the current {@code AccountHolderCapability} instance, allowing for method chaining */ public AccountHolderCapability allowedLevel(AllowedLevelEnum allowedLevel) { @@ -255,8 +271,11 @@ public AccountHolderCapability allowedLevel(AllowedLevelEnum allowedLevel) { } /** - * The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. - * @return allowedLevel The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The capability level that is allowed for the account holder. Possible values: + * **notApplicable**, **low**, **medium**, **high**. + * + * @return allowedLevel The capability level that is allowed for the account holder. Possible + * values: **notApplicable**, **low**, **medium**, **high**. */ @JsonProperty(JSON_PROPERTY_ALLOWED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -265,9 +284,11 @@ public AllowedLevelEnum getAllowedLevel() { } /** - * The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The capability level that is allowed for the account holder. Possible values: + * **notApplicable**, **low**, **medium**, **high**. * - * @param allowedLevel The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. + * @param allowedLevel The capability level that is allowed for the account holder. Possible + * values: **notApplicable**, **low**, **medium**, **high**. */ @JsonProperty(JSON_PROPERTY_ALLOWED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -278,7 +299,7 @@ public void setAllowedLevel(AllowedLevelEnum allowedLevel) { /** * allowedSettings * - * @param allowedSettings + * @param allowedSettings * @return the current {@code AccountHolderCapability} instance, allowing for method chaining */ public AccountHolderCapability allowedSettings(CapabilitySettings allowedSettings) { @@ -288,7 +309,8 @@ public AccountHolderCapability allowedSettings(CapabilitySettings allowedSetting /** * Get allowedSettings - * @return allowedSettings + * + * @return allowedSettings */ @JsonProperty(JSON_PROPERTY_ALLOWED_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -299,7 +321,7 @@ public CapabilitySettings getAllowedSettings() { /** * allowedSettings * - * @param allowedSettings + * @param allowedSettings */ @JsonProperty(JSON_PROPERTY_ALLOWED_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -308,9 +330,11 @@ public void setAllowedSettings(CapabilitySettings allowedSettings) { } /** - * Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. + * Indicates whether the capability is enabled. If **false**, the capability is temporarily + * disabled for the account holder. * - * @param enabled Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. + * @param enabled Indicates whether the capability is enabled. If **false**, the capability is + * temporarily disabled for the account holder. * @return the current {@code AccountHolderCapability} instance, allowing for method chaining */ public AccountHolderCapability enabled(Boolean enabled) { @@ -319,8 +343,11 @@ public AccountHolderCapability enabled(Boolean enabled) { } /** - * Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. - * @return enabled Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. + * Indicates whether the capability is enabled. If **false**, the capability is temporarily + * disabled for the account holder. + * + * @return enabled Indicates whether the capability is enabled. If **false**, the capability is + * temporarily disabled for the account holder. */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -329,9 +356,11 @@ public Boolean getEnabled() { } /** - * Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. + * Indicates whether the capability is enabled. If **false**, the capability is temporarily + * disabled for the account holder. * - * @param enabled Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. + * @param enabled Indicates whether the capability is enabled. If **false**, the capability is + * temporarily disabled for the account holder. */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -360,7 +389,9 @@ public AccountHolderCapability addProblemsItem(CapabilityProblem problemsItem) { /** * Contains verification errors and the actions that you can take to resolve them. - * @return problems Contains verification errors and the actions that you can take to resolve them. + * + * @return problems Contains verification errors and the actions that you can take to resolve + * them. */ @JsonProperty(JSON_PROPERTY_PROBLEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -380,9 +411,11 @@ public void setProblems(List problems) { } /** - * Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. + * Indicates whether the capability is requested. To check whether the account holder is permitted + * to use the capability, refer to the `allowed` field. * - * @param requested Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. + * @param requested Indicates whether the capability is requested. To check whether the account + * holder is permitted to use the capability, refer to the `allowed` field. * @return the current {@code AccountHolderCapability} instance, allowing for method chaining */ public AccountHolderCapability requested(Boolean requested) { @@ -391,8 +424,11 @@ public AccountHolderCapability requested(Boolean requested) { } /** - * Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. - * @return requested Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. + * Indicates whether the capability is requested. To check whether the account holder is permitted + * to use the capability, refer to the `allowed` field. + * + * @return requested Indicates whether the capability is requested. To check whether the account + * holder is permitted to use the capability, refer to the `allowed` field. */ @JsonProperty(JSON_PROPERTY_REQUESTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -401,9 +437,11 @@ public Boolean getRequested() { } /** - * Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. + * Indicates whether the capability is requested. To check whether the account holder is permitted + * to use the capability, refer to the `allowed` field. * - * @param requested Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. + * @param requested Indicates whether the capability is requested. To check whether the account + * holder is permitted to use the capability, refer to the `allowed` field. */ @JsonProperty(JSON_PROPERTY_REQUESTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -412,9 +450,16 @@ public void setRequested(Boolean requested) { } /** - * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The requested level of the capability. Some capabilities, such as those used in [card + * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different + * levels. Levels increase the capability, but also require additional checks and increased + * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. * - * @param requestedLevel The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * @param requestedLevel The requested level of the capability. Some capabilities, such as those + * used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), + * have different levels. Levels increase the capability, but also require additional checks + * and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, + * **high**. * @return the current {@code AccountHolderCapability} instance, allowing for method chaining */ public AccountHolderCapability requestedLevel(RequestedLevelEnum requestedLevel) { @@ -423,8 +468,16 @@ public AccountHolderCapability requestedLevel(RequestedLevelEnum requestedLevel) } /** - * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. - * @return requestedLevel The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The requested level of the capability. Some capabilities, such as those used in [card + * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different + * levels. Levels increase the capability, but also require additional checks and increased + * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * + * @return requestedLevel The requested level of the capability. Some capabilities, such as those + * used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), + * have different levels. Levels increase the capability, but also require additional checks + * and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, + * **high**. */ @JsonProperty(JSON_PROPERTY_REQUESTED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -433,9 +486,16 @@ public RequestedLevelEnum getRequestedLevel() { } /** - * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The requested level of the capability. Some capabilities, such as those used in [card + * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different + * levels. Levels increase the capability, but also require additional checks and increased + * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. * - * @param requestedLevel The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * @param requestedLevel The requested level of the capability. Some capabilities, such as those + * used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), + * have different levels. Levels increase the capability, but also require additional checks + * and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, + * **high**. */ @JsonProperty(JSON_PROPERTY_REQUESTED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -446,7 +506,7 @@ public void setRequestedLevel(RequestedLevelEnum requestedLevel) { /** * requestedSettings * - * @param requestedSettings + * @param requestedSettings * @return the current {@code AccountHolderCapability} instance, allowing for method chaining */ public AccountHolderCapability requestedSettings(CapabilitySettings requestedSettings) { @@ -456,7 +516,8 @@ public AccountHolderCapability requestedSettings(CapabilitySettings requestedSet /** * Get requestedSettings - * @return requestedSettings + * + * @return requestedSettings */ @JsonProperty(JSON_PROPERTY_REQUESTED_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -467,7 +528,7 @@ public CapabilitySettings getRequestedSettings() { /** * requestedSettings * - * @param requestedSettings + * @param requestedSettings */ @JsonProperty(JSON_PROPERTY_REQUESTED_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -476,17 +537,20 @@ public void setRequestedSettings(CapabilitySettings requestedSettings) { } /** - * Contains the status of the transfer instruments associated with this capability. + * Contains the status of the transfer instruments associated with this capability. * - * @param transferInstruments Contains the status of the transfer instruments associated with this capability. + * @param transferInstruments Contains the status of the transfer instruments associated with this + * capability. * @return the current {@code AccountHolderCapability} instance, allowing for method chaining */ - public AccountHolderCapability transferInstruments(List transferInstruments) { + public AccountHolderCapability transferInstruments( + List transferInstruments) { this.transferInstruments = transferInstruments; return this; } - public AccountHolderCapability addTransferInstrumentsItem(AccountSupportingEntityCapability transferInstrumentsItem) { + public AccountHolderCapability addTransferInstrumentsItem( + AccountSupportingEntityCapability transferInstrumentsItem) { if (this.transferInstruments == null) { this.transferInstruments = new ArrayList<>(); } @@ -495,8 +559,10 @@ public AccountHolderCapability addTransferInstrumentsItem(AccountSupportingEntit } /** - * Contains the status of the transfer instruments associated with this capability. - * @return transferInstruments Contains the status of the transfer instruments associated with this capability. + * Contains the status of the transfer instruments associated with this capability. + * + * @return transferInstruments Contains the status of the transfer instruments associated with + * this capability. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -505,9 +571,10 @@ public List getTransferInstruments() { } /** - * Contains the status of the transfer instruments associated with this capability. + * Contains the status of the transfer instruments associated with this capability. * - * @param transferInstruments Contains the status of the transfer instruments associated with this capability. + * @param transferInstruments Contains the status of the transfer instruments associated with this + * capability. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -516,9 +583,17 @@ public void setTransferInstruments(List trans } /** - * The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. + * The status of the verification checks for the capability. Possible values: * **pending**: Adyen + * is running the verification. * **invalid**: The verification failed. Check if the + * `errors` array contains more information. * **valid**: The verification has been + * successfully completed. * **rejected**: Adyen has verified the information, but found reasons + * to not allow the capability. * - * @param verificationStatus The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. + * @param verificationStatus The status of the verification checks for the capability. Possible + * values: * **pending**: Adyen is running the verification. * **invalid**: The verification + * failed. Check if the `errors` array contains more information. * **valid**: The + * verification has been successfully completed. * **rejected**: Adyen has verified the + * information, but found reasons to not allow the capability. * @return the current {@code AccountHolderCapability} instance, allowing for method chaining */ public AccountHolderCapability verificationStatus(VerificationStatusEnum verificationStatus) { @@ -527,8 +602,17 @@ public AccountHolderCapability verificationStatus(VerificationStatusEnum verific } /** - * The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. - * @return verificationStatus The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. + * The status of the verification checks for the capability. Possible values: * **pending**: Adyen + * is running the verification. * **invalid**: The verification failed. Check if the + * `errors` array contains more information. * **valid**: The verification has been + * successfully completed. * **rejected**: Adyen has verified the information, but found reasons + * to not allow the capability. + * + * @return verificationStatus The status of the verification checks for the capability. Possible + * values: * **pending**: Adyen is running the verification. * **invalid**: The verification + * failed. Check if the `errors` array contains more information. * **valid**: The + * verification has been successfully completed. * **rejected**: Adyen has verified the + * information, but found reasons to not allow the capability. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -537,9 +621,17 @@ public VerificationStatusEnum getVerificationStatus() { } /** - * The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. + * The status of the verification checks for the capability. Possible values: * **pending**: Adyen + * is running the verification. * **invalid**: The verification failed. Check if the + * `errors` array contains more information. * **valid**: The verification has been + * successfully completed. * **rejected**: Adyen has verified the information, but found reasons + * to not allow the capability. * - * @param verificationStatus The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. + * @param verificationStatus The status of the verification checks for the capability. Possible + * values: * **pending**: Adyen is running the verification. * **invalid**: The verification + * failed. Check if the `errors` array contains more information. * **valid**: The + * verification has been successfully completed. * **rejected**: Adyen has verified the + * information, but found reasons to not allow the capability. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -547,9 +639,7 @@ public void setVerificationStatus(VerificationStatusEnum verificationStatus) { this.verificationStatus = verificationStatus; } - /** - * Return true if this AccountHolderCapability object is equal to o. - */ + /** Return true if this AccountHolderCapability object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -559,21 +649,31 @@ public boolean equals(Object o) { return false; } AccountHolderCapability accountHolderCapability = (AccountHolderCapability) o; - return Objects.equals(this.allowed, accountHolderCapability.allowed) && - Objects.equals(this.allowedLevel, accountHolderCapability.allowedLevel) && - Objects.equals(this.allowedSettings, accountHolderCapability.allowedSettings) && - Objects.equals(this.enabled, accountHolderCapability.enabled) && - Objects.equals(this.problems, accountHolderCapability.problems) && - Objects.equals(this.requested, accountHolderCapability.requested) && - Objects.equals(this.requestedLevel, accountHolderCapability.requestedLevel) && - Objects.equals(this.requestedSettings, accountHolderCapability.requestedSettings) && - Objects.equals(this.transferInstruments, accountHolderCapability.transferInstruments) && - Objects.equals(this.verificationStatus, accountHolderCapability.verificationStatus); + return Objects.equals(this.allowed, accountHolderCapability.allowed) + && Objects.equals(this.allowedLevel, accountHolderCapability.allowedLevel) + && Objects.equals(this.allowedSettings, accountHolderCapability.allowedSettings) + && Objects.equals(this.enabled, accountHolderCapability.enabled) + && Objects.equals(this.problems, accountHolderCapability.problems) + && Objects.equals(this.requested, accountHolderCapability.requested) + && Objects.equals(this.requestedLevel, accountHolderCapability.requestedLevel) + && Objects.equals(this.requestedSettings, accountHolderCapability.requestedSettings) + && Objects.equals(this.transferInstruments, accountHolderCapability.transferInstruments) + && Objects.equals(this.verificationStatus, accountHolderCapability.verificationStatus); } @Override public int hashCode() { - return Objects.hash(allowed, allowedLevel, allowedSettings, enabled, problems, requested, requestedLevel, requestedSettings, transferInstruments, verificationStatus); + return Objects.hash( + allowed, + allowedLevel, + allowedSettings, + enabled, + problems, + requested, + requestedLevel, + requestedSettings, + transferInstruments, + verificationStatus); } @Override @@ -588,15 +688,16 @@ public String toString() { sb.append(" requested: ").append(toIndentedString(requested)).append("\n"); sb.append(" requestedLevel: ").append(toIndentedString(requestedLevel)).append("\n"); sb.append(" requestedSettings: ").append(toIndentedString(requestedSettings)).append("\n"); - sb.append(" transferInstruments: ").append(toIndentedString(transferInstruments)).append("\n"); + sb.append(" transferInstruments: ") + .append(toIndentedString(transferInstruments)) + .append("\n"); sb.append(" verificationStatus: ").append(toIndentedString(verificationStatus)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -605,21 +706,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AccountHolderCapability given an JSON string * * @param jsonString JSON string * @return An instance of AccountHolderCapability - * @throws JsonProcessingException if the JSON string is invalid with respect to AccountHolderCapability + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AccountHolderCapability */ public static AccountHolderCapability fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountHolderCapability.class); } -/** - * Convert an instance of AccountHolderCapability to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AccountHolderCapability to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderNotificationData.java b/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderNotificationData.java index 7a02c8ff8..d85544171 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderNotificationData.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderNotificationData.java @@ -2,37 +2,26 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.configurationwebhooks.AccountHolder; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AccountHolderNotificationData - */ +/** AccountHolderNotificationData */ @JsonPropertyOrder({ AccountHolderNotificationData.JSON_PROPERTY_ACCOUNT_HOLDER, AccountHolderNotificationData.JSON_PROPERTY_BALANCE_PLATFORM }) - public class AccountHolderNotificationData { public static final String JSON_PROPERTY_ACCOUNT_HOLDER = "accountHolder"; private AccountHolder accountHolder; @@ -40,14 +29,14 @@ public class AccountHolderNotificationData { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; - public AccountHolderNotificationData() { - } + public AccountHolderNotificationData() {} /** * accountHolder * - * @param accountHolder - * @return the current {@code AccountHolderNotificationData} instance, allowing for method chaining + * @param accountHolder + * @return the current {@code AccountHolderNotificationData} instance, allowing for method + * chaining */ public AccountHolderNotificationData accountHolder(AccountHolder accountHolder) { this.accountHolder = accountHolder; @@ -56,7 +45,8 @@ public AccountHolderNotificationData accountHolder(AccountHolder accountHolder) /** * Get accountHolder - * @return accountHolder + * + * @return accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -67,7 +57,7 @@ public AccountHolder getAccountHolder() { /** * accountHolder * - * @param accountHolder + * @param accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,7 +69,8 @@ public void setAccountHolder(AccountHolder accountHolder) { * The unique identifier of the balance platform. * * @param balancePlatform The unique identifier of the balance platform. - * @return the current {@code AccountHolderNotificationData} instance, allowing for method chaining + * @return the current {@code AccountHolderNotificationData} instance, allowing for method + * chaining */ public AccountHolderNotificationData balancePlatform(String balancePlatform) { this.balancePlatform = balancePlatform; @@ -88,6 +79,7 @@ public AccountHolderNotificationData balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. + * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -107,9 +99,7 @@ public void setBalancePlatform(String balancePlatform) { this.balancePlatform = balancePlatform; } - /** - * Return true if this AccountHolderNotificationData object is equal to o. - */ + /** Return true if this AccountHolderNotificationData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -119,8 +109,8 @@ public boolean equals(Object o) { return false; } AccountHolderNotificationData accountHolderNotificationData = (AccountHolderNotificationData) o; - return Objects.equals(this.accountHolder, accountHolderNotificationData.accountHolder) && - Objects.equals(this.balancePlatform, accountHolderNotificationData.balancePlatform); + return Objects.equals(this.accountHolder, accountHolderNotificationData.accountHolder) + && Objects.equals(this.balancePlatform, accountHolderNotificationData.balancePlatform); } @Override @@ -139,8 +129,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -149,21 +138,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AccountHolderNotificationData given an JSON string * * @param jsonString JSON string * @return An instance of AccountHolderNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to AccountHolderNotificationData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AccountHolderNotificationData */ - public static AccountHolderNotificationData fromJson(String jsonString) throws JsonProcessingException { + public static AccountHolderNotificationData fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountHolderNotificationData.class); } -/** - * Convert an instance of AccountHolderNotificationData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AccountHolderNotificationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderNotificationRequest.java b/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderNotificationRequest.java index 242476b56..437fb8cb1 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderNotificationRequest.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderNotificationRequest.java @@ -2,40 +2,33 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.configurationwebhooks.AccountHolderNotificationData; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * AccountHolderNotificationRequest - */ +/** AccountHolderNotificationRequest */ @JsonPropertyOrder({ AccountHolderNotificationRequest.JSON_PROPERTY_DATA, AccountHolderNotificationRequest.JSON_PROPERTY_ENVIRONMENT, AccountHolderNotificationRequest.JSON_PROPERTY_TIMESTAMP, AccountHolderNotificationRequest.JSON_PROPERTY_TYPE }) - public class AccountHolderNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private AccountHolderNotificationData data; @@ -46,11 +39,8 @@ public class AccountHolderNotificationRequest { public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; private OffsetDateTime timestamp; - /** - * Type of webhook. - */ + /** Type of webhook. */ public enum TypeEnum { - BALANCEPLATFORM_ACCOUNTHOLDER_UPDATED(String.valueOf("balancePlatform.accountHolder.updated")), BALANCEPLATFORM_ACCOUNTHOLDER_CREATED(String.valueOf("balancePlatform.accountHolder.created")); @@ -60,7 +50,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -81,7 +71,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -89,14 +83,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AccountHolderNotificationRequest() { - } + public AccountHolderNotificationRequest() {} /** * data * - * @param data - * @return the current {@code AccountHolderNotificationRequest} instance, allowing for method chaining + * @param data + * @return the current {@code AccountHolderNotificationRequest} instance, allowing for method + * chaining */ public AccountHolderNotificationRequest data(AccountHolderNotificationData data) { this.data = data; @@ -105,7 +99,8 @@ public AccountHolderNotificationRequest data(AccountHolderNotificationData data) /** * Get data - * @return data + * + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,7 +111,7 @@ public AccountHolderNotificationData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,10 +120,12 @@ public void setData(AccountHolderNotificationData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. - * @return the current {@code AccountHolderNotificationRequest} instance, allowing for method chaining + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. + * @return the current {@code AccountHolderNotificationRequest} instance, allowing for method + * chaining */ public AccountHolderNotificationRequest environment(String environment) { this.environment = environment; @@ -136,8 +133,10 @@ public AccountHolderNotificationRequest environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * + * @return environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,9 +145,10 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,7 +160,8 @@ public void setEnvironment(String environment) { * When the event was queued. * * @param timestamp When the event was queued. - * @return the current {@code AccountHolderNotificationRequest} instance, allowing for method chaining + * @return the current {@code AccountHolderNotificationRequest} instance, allowing for method + * chaining */ public AccountHolderNotificationRequest timestamp(OffsetDateTime timestamp) { this.timestamp = timestamp; @@ -169,6 +170,7 @@ public AccountHolderNotificationRequest timestamp(OffsetDateTime timestamp) { /** * When the event was queued. + * * @return timestamp When the event was queued. */ @JsonProperty(JSON_PROPERTY_TIMESTAMP) @@ -192,7 +194,8 @@ public void setTimestamp(OffsetDateTime timestamp) { * Type of webhook. * * @param type Type of webhook. - * @return the current {@code AccountHolderNotificationRequest} instance, allowing for method chaining + * @return the current {@code AccountHolderNotificationRequest} instance, allowing for method + * chaining */ public AccountHolderNotificationRequest type(TypeEnum type) { this.type = type; @@ -201,6 +204,7 @@ public AccountHolderNotificationRequest type(TypeEnum type) { /** * Type of webhook. + * * @return type Type of webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -220,9 +224,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this AccountHolderNotificationRequest object is equal to o. - */ + /** Return true if this AccountHolderNotificationRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -231,11 +233,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AccountHolderNotificationRequest accountHolderNotificationRequest = (AccountHolderNotificationRequest) o; - return Objects.equals(this.data, accountHolderNotificationRequest.data) && - Objects.equals(this.environment, accountHolderNotificationRequest.environment) && - Objects.equals(this.timestamp, accountHolderNotificationRequest.timestamp) && - Objects.equals(this.type, accountHolderNotificationRequest.type); + AccountHolderNotificationRequest accountHolderNotificationRequest = + (AccountHolderNotificationRequest) o; + return Objects.equals(this.data, accountHolderNotificationRequest.data) + && Objects.equals(this.environment, accountHolderNotificationRequest.environment) + && Objects.equals(this.timestamp, accountHolderNotificationRequest.timestamp) + && Objects.equals(this.type, accountHolderNotificationRequest.type); } @Override @@ -256,8 +259,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -266,21 +268,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AccountHolderNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of AccountHolderNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to AccountHolderNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AccountHolderNotificationRequest */ - public static AccountHolderNotificationRequest fromJson(String jsonString) throws JsonProcessingException { + public static AccountHolderNotificationRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountHolderNotificationRequest.class); } -/** - * Convert an instance of AccountHolderNotificationRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AccountHolderNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/AccountSupportingEntityCapability.java b/src/main/java/com/adyen/model/configurationwebhooks/AccountSupportingEntityCapability.java index a64483c72..a433c3279 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/AccountSupportingEntityCapability.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/AccountSupportingEntityCapability.java @@ -2,31 +2,26 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * AccountSupportingEntityCapability - */ +/** AccountSupportingEntityCapability */ @JsonPropertyOrder({ AccountSupportingEntityCapability.JSON_PROPERTY_ALLOWED, AccountSupportingEntityCapability.JSON_PROPERTY_ALLOWED_LEVEL, @@ -36,16 +31,15 @@ AccountSupportingEntityCapability.JSON_PROPERTY_REQUESTED_LEVEL, AccountSupportingEntityCapability.JSON_PROPERTY_VERIFICATION_STATUS }) - public class AccountSupportingEntityCapability { public static final String JSON_PROPERTY_ALLOWED = "allowed"; private Boolean allowed; /** - * The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The capability level that is allowed for the account holder. Possible values: + * **notApplicable**, **low**, **medium**, **high**. */ public enum AllowedLevelEnum { - HIGH(String.valueOf("high")), LOW(String.valueOf("low")), @@ -59,7 +53,7 @@ public enum AllowedLevelEnum { private String value; AllowedLevelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -80,7 +74,11 @@ public static AllowedLevelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AllowedLevelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AllowedLevelEnum.values())); + LOG.warning( + "AllowedLevelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AllowedLevelEnum.values())); return null; } } @@ -98,10 +96,12 @@ public static AllowedLevelEnum fromValue(String value) { private Boolean requested; /** - * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The requested level of the capability. Some capabilities, such as those used in [card + * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different + * levels. Levels increase the capability, but also require additional checks and increased + * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. */ public enum RequestedLevelEnum { - HIGH(String.valueOf("high")), LOW(String.valueOf("low")), @@ -115,7 +115,7 @@ public enum RequestedLevelEnum { private String value; RequestedLevelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -136,7 +136,11 @@ public static RequestedLevelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("RequestedLevelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RequestedLevelEnum.values())); + LOG.warning( + "RequestedLevelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(RequestedLevelEnum.values())); return null; } } @@ -145,10 +149,13 @@ public static RequestedLevelEnum fromValue(String value) { private RequestedLevelEnum requestedLevel; /** - * The status of the verification checks for the supporting entity capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. + * The status of the verification checks for the supporting entity capability. Possible values: * + * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check + * if the `errors` array contains more information. * **valid**: The verification has + * been successfully completed. * **rejected**: Adyen has verified the information, but found + * reasons to not allow the capability. */ public enum VerificationStatusEnum { - INVALID(String.valueOf("invalid")), PENDING(String.valueOf("pending")), @@ -162,7 +169,7 @@ public enum VerificationStatusEnum { private String value; VerificationStatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -183,7 +190,11 @@ public static VerificationStatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("VerificationStatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(VerificationStatusEnum.values())); + LOG.warning( + "VerificationStatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(VerificationStatusEnum.values())); return null; } } @@ -191,14 +202,17 @@ public static VerificationStatusEnum fromValue(String value) { public static final String JSON_PROPERTY_VERIFICATION_STATUS = "verificationStatus"; private VerificationStatusEnum verificationStatus; - public AccountSupportingEntityCapability() { - } + public AccountSupportingEntityCapability() {} /** - * Indicates whether the supporting entity capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. + * Indicates whether the supporting entity capability is allowed. Adyen sets this to **true** if + * the verification is successful and the account holder is permitted to use the capability. * - * @param allowed Indicates whether the supporting entity capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. - * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method chaining + * @param allowed Indicates whether the supporting entity capability is allowed. Adyen sets this + * to **true** if the verification is successful and the account holder is permitted to use + * the capability. + * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method + * chaining */ public AccountSupportingEntityCapability allowed(Boolean allowed) { this.allowed = allowed; @@ -206,8 +220,12 @@ public AccountSupportingEntityCapability allowed(Boolean allowed) { } /** - * Indicates whether the supporting entity capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. - * @return allowed Indicates whether the supporting entity capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. + * Indicates whether the supporting entity capability is allowed. Adyen sets this to **true** if + * the verification is successful and the account holder is permitted to use the capability. + * + * @return allowed Indicates whether the supporting entity capability is allowed. Adyen sets this + * to **true** if the verification is successful and the account holder is permitted to use + * the capability. */ @JsonProperty(JSON_PROPERTY_ALLOWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -216,9 +234,12 @@ public Boolean getAllowed() { } /** - * Indicates whether the supporting entity capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. + * Indicates whether the supporting entity capability is allowed. Adyen sets this to **true** if + * the verification is successful and the account holder is permitted to use the capability. * - * @param allowed Indicates whether the supporting entity capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. + * @param allowed Indicates whether the supporting entity capability is allowed. Adyen sets this + * to **true** if the verification is successful and the account holder is permitted to use + * the capability. */ @JsonProperty(JSON_PROPERTY_ALLOWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -227,10 +248,13 @@ public void setAllowed(Boolean allowed) { } /** - * The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The capability level that is allowed for the account holder. Possible values: + * **notApplicable**, **low**, **medium**, **high**. * - * @param allowedLevel The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. - * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method chaining + * @param allowedLevel The capability level that is allowed for the account holder. Possible + * values: **notApplicable**, **low**, **medium**, **high**. + * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method + * chaining */ public AccountSupportingEntityCapability allowedLevel(AllowedLevelEnum allowedLevel) { this.allowedLevel = allowedLevel; @@ -238,8 +262,11 @@ public AccountSupportingEntityCapability allowedLevel(AllowedLevelEnum allowedLe } /** - * The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. - * @return allowedLevel The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The capability level that is allowed for the account holder. Possible values: + * **notApplicable**, **low**, **medium**, **high**. + * + * @return allowedLevel The capability level that is allowed for the account holder. Possible + * values: **notApplicable**, **low**, **medium**, **high**. */ @JsonProperty(JSON_PROPERTY_ALLOWED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -248,9 +275,11 @@ public AllowedLevelEnum getAllowedLevel() { } /** - * The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The capability level that is allowed for the account holder. Possible values: + * **notApplicable**, **low**, **medium**, **high**. * - * @param allowedLevel The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. + * @param allowedLevel The capability level that is allowed for the account holder. Possible + * values: **notApplicable**, **low**, **medium**, **high**. */ @JsonProperty(JSON_PROPERTY_ALLOWED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -259,10 +288,13 @@ public void setAllowedLevel(AllowedLevelEnum allowedLevel) { } /** - * Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. + * Indicates whether the capability is enabled. If **false**, the capability is temporarily + * disabled for the account holder. * - * @param enabled Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. - * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method chaining + * @param enabled Indicates whether the capability is enabled. If **false**, the capability is + * temporarily disabled for the account holder. + * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method + * chaining */ public AccountSupportingEntityCapability enabled(Boolean enabled) { this.enabled = enabled; @@ -270,8 +302,11 @@ public AccountSupportingEntityCapability enabled(Boolean enabled) { } /** - * Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. - * @return enabled Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. + * Indicates whether the capability is enabled. If **false**, the capability is temporarily + * disabled for the account holder. + * + * @return enabled Indicates whether the capability is enabled. If **false**, the capability is + * temporarily disabled for the account holder. */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -280,9 +315,11 @@ public Boolean getEnabled() { } /** - * Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. + * Indicates whether the capability is enabled. If **false**, the capability is temporarily + * disabled for the account holder. * - * @param enabled Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. + * @param enabled Indicates whether the capability is enabled. If **false**, the capability is + * temporarily disabled for the account holder. */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -294,7 +331,8 @@ public void setEnabled(Boolean enabled) { * The ID of the supporting entity. * * @param id The ID of the supporting entity. - * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method chaining + * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method + * chaining */ public AccountSupportingEntityCapability id(String id) { this.id = id; @@ -303,6 +341,7 @@ public AccountSupportingEntityCapability id(String id) { /** * The ID of the supporting entity. + * * @return id The ID of the supporting entity. */ @JsonProperty(JSON_PROPERTY_ID) @@ -323,10 +362,13 @@ public void setId(String id) { } /** - * Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. + * Indicates whether the capability is requested. To check whether the account holder is permitted + * to use the capability, refer to the `allowed` field. * - * @param requested Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. - * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method chaining + * @param requested Indicates whether the capability is requested. To check whether the account + * holder is permitted to use the capability, refer to the `allowed` field. + * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method + * chaining */ public AccountSupportingEntityCapability requested(Boolean requested) { this.requested = requested; @@ -334,8 +376,11 @@ public AccountSupportingEntityCapability requested(Boolean requested) { } /** - * Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. - * @return requested Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. + * Indicates whether the capability is requested. To check whether the account holder is permitted + * to use the capability, refer to the `allowed` field. + * + * @return requested Indicates whether the capability is requested. To check whether the account + * holder is permitted to use the capability, refer to the `allowed` field. */ @JsonProperty(JSON_PROPERTY_REQUESTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -344,9 +389,11 @@ public Boolean getRequested() { } /** - * Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. + * Indicates whether the capability is requested. To check whether the account holder is permitted + * to use the capability, refer to the `allowed` field. * - * @param requested Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. + * @param requested Indicates whether the capability is requested. To check whether the account + * holder is permitted to use the capability, refer to the `allowed` field. */ @JsonProperty(JSON_PROPERTY_REQUESTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -355,10 +402,18 @@ public void setRequested(Boolean requested) { } /** - * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The requested level of the capability. Some capabilities, such as those used in [card + * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different + * levels. Levels increase the capability, but also require additional checks and increased + * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. * - * @param requestedLevel The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. - * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method chaining + * @param requestedLevel The requested level of the capability. Some capabilities, such as those + * used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), + * have different levels. Levels increase the capability, but also require additional checks + * and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, + * **high**. + * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method + * chaining */ public AccountSupportingEntityCapability requestedLevel(RequestedLevelEnum requestedLevel) { this.requestedLevel = requestedLevel; @@ -366,8 +421,16 @@ public AccountSupportingEntityCapability requestedLevel(RequestedLevelEnum reque } /** - * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. - * @return requestedLevel The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The requested level of the capability. Some capabilities, such as those used in [card + * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different + * levels. Levels increase the capability, but also require additional checks and increased + * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * + * @return requestedLevel The requested level of the capability. Some capabilities, such as those + * used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), + * have different levels. Levels increase the capability, but also require additional checks + * and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, + * **high**. */ @JsonProperty(JSON_PROPERTY_REQUESTED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -376,9 +439,16 @@ public RequestedLevelEnum getRequestedLevel() { } /** - * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The requested level of the capability. Some capabilities, such as those used in [card + * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different + * levels. Levels increase the capability, but also require additional checks and increased + * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. * - * @param requestedLevel The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * @param requestedLevel The requested level of the capability. Some capabilities, such as those + * used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), + * have different levels. Levels increase the capability, but also require additional checks + * and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, + * **high**. */ @JsonProperty(JSON_PROPERTY_REQUESTED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -387,19 +457,38 @@ public void setRequestedLevel(RequestedLevelEnum requestedLevel) { } /** - * The status of the verification checks for the supporting entity capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. + * The status of the verification checks for the supporting entity capability. Possible values: * + * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check + * if the `errors` array contains more information. * **valid**: The verification has + * been successfully completed. * **rejected**: Adyen has verified the information, but found + * reasons to not allow the capability. * - * @param verificationStatus The status of the verification checks for the supporting entity capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. - * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method chaining + * @param verificationStatus The status of the verification checks for the supporting entity + * capability. Possible values: * **pending**: Adyen is running the verification. * + * **invalid**: The verification failed. Check if the `errors` array contains more + * information. * **valid**: The verification has been successfully completed. * **rejected**: + * Adyen has verified the information, but found reasons to not allow the capability. + * @return the current {@code AccountSupportingEntityCapability} instance, allowing for method + * chaining */ - public AccountSupportingEntityCapability verificationStatus(VerificationStatusEnum verificationStatus) { + public AccountSupportingEntityCapability verificationStatus( + VerificationStatusEnum verificationStatus) { this.verificationStatus = verificationStatus; return this; } /** - * The status of the verification checks for the supporting entity capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. - * @return verificationStatus The status of the verification checks for the supporting entity capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. + * The status of the verification checks for the supporting entity capability. Possible values: * + * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check + * if the `errors` array contains more information. * **valid**: The verification has + * been successfully completed. * **rejected**: Adyen has verified the information, but found + * reasons to not allow the capability. + * + * @return verificationStatus The status of the verification checks for the supporting entity + * capability. Possible values: * **pending**: Adyen is running the verification. * + * **invalid**: The verification failed. Check if the `errors` array contains more + * information. * **valid**: The verification has been successfully completed. * **rejected**: + * Adyen has verified the information, but found reasons to not allow the capability. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -408,9 +497,17 @@ public VerificationStatusEnum getVerificationStatus() { } /** - * The status of the verification checks for the supporting entity capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. + * The status of the verification checks for the supporting entity capability. Possible values: * + * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check + * if the `errors` array contains more information. * **valid**: The verification has + * been successfully completed. * **rejected**: Adyen has verified the information, but found + * reasons to not allow the capability. * - * @param verificationStatus The status of the verification checks for the supporting entity capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. + * @param verificationStatus The status of the verification checks for the supporting entity + * capability. Possible values: * **pending**: Adyen is running the verification. * + * **invalid**: The verification failed. Check if the `errors` array contains more + * information. * **valid**: The verification has been successfully completed. * **rejected**: + * Adyen has verified the information, but found reasons to not allow the capability. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -418,9 +515,7 @@ public void setVerificationStatus(VerificationStatusEnum verificationStatus) { this.verificationStatus = verificationStatus; } - /** - * Return true if this AccountSupportingEntityCapability object is equal to o. - */ + /** Return true if this AccountSupportingEntityCapability object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -429,19 +524,22 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AccountSupportingEntityCapability accountSupportingEntityCapability = (AccountSupportingEntityCapability) o; - return Objects.equals(this.allowed, accountSupportingEntityCapability.allowed) && - Objects.equals(this.allowedLevel, accountSupportingEntityCapability.allowedLevel) && - Objects.equals(this.enabled, accountSupportingEntityCapability.enabled) && - Objects.equals(this.id, accountSupportingEntityCapability.id) && - Objects.equals(this.requested, accountSupportingEntityCapability.requested) && - Objects.equals(this.requestedLevel, accountSupportingEntityCapability.requestedLevel) && - Objects.equals(this.verificationStatus, accountSupportingEntityCapability.verificationStatus); + AccountSupportingEntityCapability accountSupportingEntityCapability = + (AccountSupportingEntityCapability) o; + return Objects.equals(this.allowed, accountSupportingEntityCapability.allowed) + && Objects.equals(this.allowedLevel, accountSupportingEntityCapability.allowedLevel) + && Objects.equals(this.enabled, accountSupportingEntityCapability.enabled) + && Objects.equals(this.id, accountSupportingEntityCapability.id) + && Objects.equals(this.requested, accountSupportingEntityCapability.requested) + && Objects.equals(this.requestedLevel, accountSupportingEntityCapability.requestedLevel) + && Objects.equals( + this.verificationStatus, accountSupportingEntityCapability.verificationStatus); } @Override public int hashCode() { - return Objects.hash(allowed, allowedLevel, enabled, id, requested, requestedLevel, verificationStatus); + return Objects.hash( + allowed, allowedLevel, enabled, id, requested, requestedLevel, verificationStatus); } @Override @@ -460,8 +558,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -470,21 +567,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AccountSupportingEntityCapability given an JSON string * * @param jsonString JSON string * @return An instance of AccountSupportingEntityCapability - * @throws JsonProcessingException if the JSON string is invalid with respect to AccountSupportingEntityCapability + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AccountSupportingEntityCapability */ - public static AccountSupportingEntityCapability fromJson(String jsonString) throws JsonProcessingException { + public static AccountSupportingEntityCapability fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountSupportingEntityCapability.class); } -/** - * Convert an instance of AccountSupportingEntityCapability to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AccountSupportingEntityCapability to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Address.java b/src/main/java/com/adyen/model/configurationwebhooks/Address.java index 776671a28..5acb96d00 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Address.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Address.java @@ -2,31 +2,22 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Address - */ +/** Address */ @JsonPropertyOrder({ Address.JSON_PROPERTY_CITY, Address.JSON_PROPERTY_COUNTRY, @@ -35,7 +26,6 @@ Address.JSON_PROPERTY_STATE_OR_PROVINCE, Address.JSON_PROPERTY_STREET }) - public class Address { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -55,8 +45,7 @@ public class Address { public static final String JSON_PROPERTY_STREET = "street"; private String street; - public Address() { - } + public Address() {} /** * The name of the city. Maximum length: 3000 characters. @@ -71,6 +60,7 @@ public Address city(String city) { /** * The name of the city. Maximum length: 3000 characters. + * * @return city The name of the city. Maximum length: 3000 characters. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -91,9 +81,13 @@ public void setCity(String city) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't + * know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If + * you don't know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. * @return the current {@code Address} instance, allowing for method chaining */ public Address country(String country) { @@ -102,8 +96,13 @@ public Address country(String country) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. - * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't + * know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. + * + * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If + * you don't know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,9 +111,13 @@ public String getCountry() { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't + * know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If + * you don't know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,6 +138,7 @@ public Address houseNumberOrName(String houseNumberOrName) { /** * The number or name of the house. Maximum length: 3000 characters. + * * @return houseNumberOrName The number or name of the house. Maximum length: 3000 characters. */ @JsonProperty(JSON_PROPERTY_HOUSE_NUMBER_OR_NAME) @@ -155,9 +159,11 @@ public void setHouseNumberOrName(String houseNumberOrName) { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an + * address in all other countries. * - * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten + * characters for an address in all other countries. * @return the current {@code Address} instance, allowing for method chaining */ public Address postalCode(String postalCode) { @@ -166,8 +172,11 @@ public Address postalCode(String postalCode) { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. - * @return postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an + * address in all other countries. + * + * @return postalCode A maximum of five digits for an address in the US, or a maximum of ten + * characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,9 +185,11 @@ public String getPostalCode() { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an + * address in all other countries. * - * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten + * characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,9 +198,11 @@ public void setPostalCode(String postalCode) { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in + * Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** + * in the US or **ON** in Canada. > Required for the US and Canada. * @return the current {@code Address} instance, allowing for method chaining */ public Address stateOrProvince(String stateOrProvince) { @@ -198,8 +211,11 @@ public Address stateOrProvince(String stateOrProvince) { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. - * @return stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in + * Canada. > Required for the US and Canada. + * + * @return stateOrProvince The two-character ISO 3166-2 state or province code. For example, + * **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,9 +224,11 @@ public String getStateOrProvince() { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in + * Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** + * in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,9 +237,12 @@ public void setStateOrProvince(String stateOrProvince) { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be + * included in this field; it should be separately provided via `houseNumberOrName`. * - * @param street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * @param street The name of the street. Maximum length: 3000 characters. > The house number + * should not be included in this field; it should be separately provided via + * `houseNumberOrName`. * @return the current {@code Address} instance, allowing for method chaining */ public Address street(String street) { @@ -230,8 +251,12 @@ public Address street(String street) { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. - * @return street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be + * included in this field; it should be separately provided via `houseNumberOrName`. + * + * @return street The name of the street. Maximum length: 3000 characters. > The house number + * should not be included in this field; it should be separately provided via + * `houseNumberOrName`. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,9 +265,12 @@ public String getStreet() { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be + * included in this field; it should be separately provided via `houseNumberOrName`. * - * @param street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * @param street The name of the street. Maximum length: 3000 characters. > The house number + * should not be included in this field; it should be separately provided via + * `houseNumberOrName`. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,9 +278,7 @@ public void setStreet(String street) { this.street = street; } - /** - * Return true if this Address object is equal to o. - */ + /** Return true if this Address object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -262,12 +288,12 @@ public boolean equals(Object o) { return false; } Address address = (Address) o; - return Objects.equals(this.city, address.city) && - Objects.equals(this.country, address.country) && - Objects.equals(this.houseNumberOrName, address.houseNumberOrName) && - Objects.equals(this.postalCode, address.postalCode) && - Objects.equals(this.stateOrProvince, address.stateOrProvince) && - Objects.equals(this.street, address.street); + return Objects.equals(this.city, address.city) + && Objects.equals(this.country, address.country) + && Objects.equals(this.houseNumberOrName, address.houseNumberOrName) + && Objects.equals(this.postalCode, address.postalCode) + && Objects.equals(this.stateOrProvince, address.stateOrProvince) + && Objects.equals(this.street, address.street); } @Override @@ -290,8 +316,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -300,7 +325,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Address given an JSON string * * @param jsonString JSON string @@ -310,11 +335,12 @@ private String toIndentedString(Object o) { public static Address fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Address.class); } -/** - * Convert an instance of Address to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Address to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Amount.java b/src/main/java/com/adyen/model/configurationwebhooks/Amount.java index 3d6abaedf..706cfa8f0 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Amount.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Amount.java @@ -2,36 +2,23 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Amount - */ -@JsonPropertyOrder({ - Amount.JSON_PROPERTY_CURRENCY, - Amount.JSON_PROPERTY_VALUE -}) - +/** Amount */ +@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -39,13 +26,14 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() { - } + public Amount() {} /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount currency(String currency) { @@ -54,8 +42,11 @@ public Amount currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +55,11 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,9 +68,11 @@ public void setCurrency(String currency) { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount value(Long value) { @@ -86,8 +81,11 @@ public Amount value(Long value) { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). - * @return value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * + * @return value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +94,11 @@ public Long getValue() { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +106,7 @@ public void setValue(Long value) { this.value = value; } - /** - * Return true if this Amount object is equal to o. - */ + /** Return true if this Amount object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +116,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) && - Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) + && Objects.equals(this.value, amount.value); } @Override @@ -138,8 +136,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +145,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -158,11 +155,12 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } -/** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Authentication.java b/src/main/java/com/adyen/model/configurationwebhooks/Authentication.java index 879082631..940164259 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Authentication.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Authentication.java @@ -2,38 +2,27 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.configurationwebhooks.Phone; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Authentication - */ +/** Authentication */ @JsonPropertyOrder({ Authentication.JSON_PROPERTY_EMAIL, Authentication.JSON_PROPERTY_PASSWORD, Authentication.JSON_PROPERTY_PHONE }) - public class Authentication { public static final String JSON_PROPERTY_EMAIL = "email"; private String email; @@ -44,8 +33,7 @@ public class Authentication { public static final String JSON_PROPERTY_PHONE = "phone"; private Phone phone; - public Authentication() { - } + public Authentication() {} /** * The email address where the one-time password (OTP) is sent. @@ -60,6 +48,7 @@ public Authentication email(String email) { /** * The email address where the one-time password (OTP) is sent. + * * @return email The email address where the one-time password (OTP) is sent. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -80,9 +69,15 @@ public void setEmail(String email) { } /** - * The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters. * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** + * The password used for 3D Secure password-based authentication. The value must be between 1 to + * 30 characters and must only contain the following supported characters. * Characters between + * **a-z**, **A-Z**, and **0-9** * Special characters: + * **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** * - * @param password The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters. * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** + * @param password The password used for 3D Secure password-based authentication. The value must + * be between 1 to 30 characters and must only contain the following supported characters. * + * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: + * **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** * @return the current {@code Authentication} instance, allowing for method chaining */ public Authentication password(String password) { @@ -91,8 +86,15 @@ public Authentication password(String password) { } /** - * The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters. * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** - * @return password The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters. * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** + * The password used for 3D Secure password-based authentication. The value must be between 1 to + * 30 characters and must only contain the following supported characters. * Characters between + * **a-z**, **A-Z**, and **0-9** * Special characters: + * **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** + * + * @return password The password used for 3D Secure password-based authentication. The value must + * be between 1 to 30 characters and must only contain the following supported characters. * + * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: + * **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** */ @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,9 +103,15 @@ public String getPassword() { } /** - * The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters. * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** + * The password used for 3D Secure password-based authentication. The value must be between 1 to + * 30 characters and must only contain the following supported characters. * Characters between + * **a-z**, **A-Z**, and **0-9** * Special characters: + * **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** * - * @param password The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters. * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** + * @param password The password used for 3D Secure password-based authentication. The value must + * be between 1 to 30 characters and must only contain the following supported characters. * + * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: + * **äöüßÄÖÜ+-*_/ç%()=?!~#'\",;:$&àùòâôûáúó** */ @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,7 +122,7 @@ public void setPassword(String password) { /** * phone * - * @param phone + * @param phone * @return the current {@code Authentication} instance, allowing for method chaining */ public Authentication phone(Phone phone) { @@ -124,7 +132,8 @@ public Authentication phone(Phone phone) { /** * Get phone - * @return phone + * + * @return phone */ @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,7 +144,7 @@ public Phone getPhone() { /** * phone * - * @param phone + * @param phone */ @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,9 +152,7 @@ public void setPhone(Phone phone) { this.phone = phone; } - /** - * Return true if this Authentication object is equal to o. - */ + /** Return true if this Authentication object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -155,9 +162,9 @@ public boolean equals(Object o) { return false; } Authentication authentication = (Authentication) o; - return Objects.equals(this.email, authentication.email) && - Objects.equals(this.password, authentication.password) && - Objects.equals(this.phone, authentication.phone); + return Objects.equals(this.email, authentication.email) + && Objects.equals(this.password, authentication.password) + && Objects.equals(this.phone, authentication.phone); } @Override @@ -177,8 +184,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -187,7 +193,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Authentication given an JSON string * * @param jsonString JSON string @@ -197,11 +203,12 @@ private String toIndentedString(Object o) { public static Authentication fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Authentication.class); } -/** - * Convert an instance of Authentication to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Authentication to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Balance.java b/src/main/java/com/adyen/model/configurationwebhooks/Balance.java index 55d204116..6f9b28e06 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Balance.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Balance.java @@ -2,31 +2,22 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Balance - */ +/** Balance */ @JsonPropertyOrder({ Balance.JSON_PROPERTY_AVAILABLE, Balance.JSON_PROPERTY_BALANCE, @@ -34,7 +25,6 @@ Balance.JSON_PROPERTY_PENDING, Balance.JSON_PROPERTY_RESERVED }) - public class Balance { public static final String JSON_PROPERTY_AVAILABLE = "available"; private Long available; @@ -51,8 +41,7 @@ public class Balance { public static final String JSON_PROPERTY_RESERVED = "reserved"; private Long reserved; - public Balance() { - } + public Balance() {} /** * The balance available for use. @@ -67,6 +56,7 @@ public Balance available(Long available) { /** * The balance available for use. + * * @return available The balance available for use. */ @JsonProperty(JSON_PROPERTY_AVAILABLE) @@ -99,6 +89,7 @@ public Balance balance(Long balance) { /** * The sum of the transactions that have already been settled. + * * @return balance The sum of the transactions that have already been settled. */ @JsonProperty(JSON_PROPERTY_BALANCE) @@ -119,9 +110,11 @@ public void setBalance(Long balance) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. * @return the current {@code Balance} instance, allowing for method chaining */ public Balance currency(String currency) { @@ -130,8 +123,11 @@ public Balance currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,9 +136,11 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,6 +161,7 @@ public Balance pending(Long pending) { /** * The sum of the transactions that will be settled in the future. + * * @return pending The sum of the transactions that will be settled in the future. */ @JsonProperty(JSON_PROPERTY_PENDING) @@ -195,6 +194,7 @@ public Balance reserved(Long reserved) { /** * The balance currently held in reserve. + * * @return reserved The balance currently held in reserve. */ @JsonProperty(JSON_PROPERTY_RESERVED) @@ -214,9 +214,7 @@ public void setReserved(Long reserved) { this.reserved = reserved; } - /** - * Return true if this Balance object is equal to o. - */ + /** Return true if this Balance object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -226,11 +224,11 @@ public boolean equals(Object o) { return false; } Balance balance = (Balance) o; - return Objects.equals(this.available, balance.available) && - Objects.equals(this.balance, balance.balance) && - Objects.equals(this.currency, balance.currency) && - Objects.equals(this.pending, balance.pending) && - Objects.equals(this.reserved, balance.reserved); + return Objects.equals(this.available, balance.available) + && Objects.equals(this.balance, balance.balance) + && Objects.equals(this.currency, balance.currency) + && Objects.equals(this.pending, balance.pending) + && Objects.equals(this.reserved, balance.reserved); } @Override @@ -252,8 +250,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -262,7 +259,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Balance given an JSON string * * @param jsonString JSON string @@ -272,11 +269,12 @@ private String toIndentedString(Object o) { public static Balance fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Balance.class); } -/** - * Convert an instance of Balance to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Balance to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccount.java b/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccount.java index 34482fa71..fe5eb468f 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccount.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccount.java @@ -2,37 +2,30 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.configurationwebhooks.Balance; -import com.adyen.model.configurationwebhooks.PlatformPaymentConfiguration; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * BalanceAccount - */ +/** BalanceAccount */ @JsonPropertyOrder({ BalanceAccount.JSON_PROPERTY_ACCOUNT_HOLDER_ID, BalanceAccount.JSON_PROPERTY_BALANCES, @@ -46,7 +39,6 @@ BalanceAccount.JSON_PROPERTY_STATUS, BalanceAccount.JSON_PROPERTY_TIME_ZONE }) - public class BalanceAccount { public static final String JSON_PROPERTY_ACCOUNT_HOLDER_ID = "accountHolderId"; private String accountHolderId; @@ -69,17 +61,15 @@ public class BalanceAccount { public static final String JSON_PROPERTY_MIGRATED_ACCOUNT_CODE = "migratedAccountCode"; private String migratedAccountCode; - public static final String JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION = "platformPaymentConfiguration"; + public static final String JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION = + "platformPaymentConfiguration"; private PlatformPaymentConfiguration platformPaymentConfiguration; public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - /** - * The status of the balance account, set to **active** by default. - */ + /** The status of the balance account, set to **active** by default. */ public enum StatusEnum { - ACTIVE(String.valueOf("active")), CLOSED(String.valueOf("closed")), @@ -93,7 +83,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -114,7 +104,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -125,13 +119,16 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_TIME_ZONE = "timeZone"; private String timeZone; - public BalanceAccount() { - } + public BalanceAccount() {} /** - * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. + * The unique identifier of the [account + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) + * associated with the balance account. * - * @param accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. + * @param accountHolderId The unique identifier of the [account + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) + * associated with the balance account. * @return the current {@code BalanceAccount} instance, allowing for method chaining */ public BalanceAccount accountHolderId(String accountHolderId) { @@ -140,8 +137,13 @@ public BalanceAccount accountHolderId(String accountHolderId) { } /** - * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. - * @return accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. + * The unique identifier of the [account + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) + * associated with the balance account. + * + * @return accountHolderId The unique identifier of the [account + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) + * associated with the balance account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,9 +152,13 @@ public String getAccountHolderId() { } /** - * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. + * The unique identifier of the [account + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) + * associated with the balance account. * - * @param accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. + * @param accountHolderId The unique identifier of the [account + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) + * associated with the balance account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,6 +187,7 @@ public BalanceAccount addBalancesItem(Balance balancesItem) { /** * List of balances with the amount and currency. + * * @return balances List of balances with the amount and currency. */ @JsonProperty(JSON_PROPERTY_BALANCES) @@ -201,9 +208,17 @@ public void setBalances(List balances) { } /** - * The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. + * The default three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This + * is the currency displayed on the Balance Account overview page in your Customer Area. The + * default value is **EUR**. > After a balance account is created, you cannot change its + * default currency. * - * @param defaultCurrencyCode The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. + * @param defaultCurrencyCode The default three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. + * This is the currency displayed on the Balance Account overview page in your Customer Area. + * The default value is **EUR**. > After a balance account is created, you cannot change + * its default currency. * @return the current {@code BalanceAccount} instance, allowing for method chaining */ public BalanceAccount defaultCurrencyCode(String defaultCurrencyCode) { @@ -212,8 +227,17 @@ public BalanceAccount defaultCurrencyCode(String defaultCurrencyCode) { } /** - * The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. - * @return defaultCurrencyCode The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. + * The default three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This + * is the currency displayed on the Balance Account overview page in your Customer Area. The + * default value is **EUR**. > After a balance account is created, you cannot change its + * default currency. + * + * @return defaultCurrencyCode The default three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. + * This is the currency displayed on the Balance Account overview page in your Customer Area. + * The default value is **EUR**. > After a balance account is created, you cannot change + * its default currency. */ @JsonProperty(JSON_PROPERTY_DEFAULT_CURRENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -222,9 +246,17 @@ public String getDefaultCurrencyCode() { } /** - * The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. + * The default three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This + * is the currency displayed on the Balance Account overview page in your Customer Area. The + * default value is **EUR**. > After a balance account is created, you cannot change its + * default currency. * - * @param defaultCurrencyCode The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. + * @param defaultCurrencyCode The default three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. + * This is the currency displayed on the Balance Account overview page in your Customer Area. + * The default value is **EUR**. > After a balance account is created, you cannot change + * its default currency. */ @JsonProperty(JSON_PROPERTY_DEFAULT_CURRENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -233,9 +265,12 @@ public void setDefaultCurrencyCode(String defaultCurrencyCode) { } /** - * A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. + * A human-readable description of the balance account, maximum 300 characters. You can use this + * parameter to distinguish between multiple balance accounts under an account holder. * - * @param description A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. + * @param description A human-readable description of the balance account, maximum 300 characters. + * You can use this parameter to distinguish between multiple balance accounts under an + * account holder. * @return the current {@code BalanceAccount} instance, allowing for method chaining */ public BalanceAccount description(String description) { @@ -244,8 +279,12 @@ public BalanceAccount description(String description) { } /** - * A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. - * @return description A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. + * A human-readable description of the balance account, maximum 300 characters. You can use this + * parameter to distinguish between multiple balance accounts under an account holder. + * + * @return description A human-readable description of the balance account, maximum 300 + * characters. You can use this parameter to distinguish between multiple balance accounts + * under an account holder. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -254,9 +293,12 @@ public String getDescription() { } /** - * A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. + * A human-readable description of the balance account, maximum 300 characters. You can use this + * parameter to distinguish between multiple balance accounts under an account holder. * - * @param description A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. + * @param description A human-readable description of the balance account, maximum 300 characters. + * You can use this parameter to distinguish between multiple balance accounts under an + * account holder. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -277,6 +319,7 @@ public BalanceAccount id(String id) { /** * The unique identifier of the balance account. + * * @return id The unique identifier of the balance account. */ @JsonProperty(JSON_PROPERTY_ID) @@ -297,9 +340,14 @@ public void setId(String id) { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be + * used for storing miscellaneous data as desired. > Note that during an update of metadata, + * the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific + * names and may be used for storing miscellaneous data as desired. > Note that during an + * update of metadata, the omission of existing key-value pairs will result in the deletion of + * those key-value pairs. * @return the current {@code BalanceAccount} instance, allowing for method chaining */ public BalanceAccount metadata(Map metadata) { @@ -316,8 +364,14 @@ public BalanceAccount putMetadataItem(String key, String metadataItem) { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. - * @return metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be + * used for storing miscellaneous data as desired. > Note that during an update of metadata, + * the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * + * @return metadata A set of key and value pairs for general use. The keys do not have specific + * names and may be used for storing miscellaneous data as desired. > Note that during an + * update of metadata, the omission of existing key-value pairs will result in the deletion of + * those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -326,9 +380,14 @@ public Map getMetadata() { } /** - * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * A set of key and value pairs for general use. The keys do not have specific names and may be + * used for storing miscellaneous data as desired. > Note that during an update of metadata, + * the omission of existing key-value pairs will result in the deletion of those key-value pairs. * - * @param metadata A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + * @param metadata A set of key and value pairs for general use. The keys do not have specific + * names and may be used for storing miscellaneous data as desired. > Note that during an + * update of metadata, the omission of existing key-value pairs will result in the deletion of + * those key-value pairs. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -339,7 +398,8 @@ public void setMetadata(Map metadata) { /** * The unique identifier of the account of the migrated account holder in the classic integration. * - * @param migratedAccountCode The unique identifier of the account of the migrated account holder in the classic integration. + * @param migratedAccountCode The unique identifier of the account of the migrated account holder + * in the classic integration. * @return the current {@code BalanceAccount} instance, allowing for method chaining */ public BalanceAccount migratedAccountCode(String migratedAccountCode) { @@ -349,7 +409,9 @@ public BalanceAccount migratedAccountCode(String migratedAccountCode) { /** * The unique identifier of the account of the migrated account holder in the classic integration. - * @return migratedAccountCode The unique identifier of the account of the migrated account holder in the classic integration. + * + * @return migratedAccountCode The unique identifier of the account of the migrated account holder + * in the classic integration. */ @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -360,7 +422,8 @@ public String getMigratedAccountCode() { /** * The unique identifier of the account of the migrated account holder in the classic integration. * - * @param migratedAccountCode The unique identifier of the account of the migrated account holder in the classic integration. + * @param migratedAccountCode The unique identifier of the account of the migrated account holder + * in the classic integration. */ @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -371,17 +434,19 @@ public void setMigratedAccountCode(String migratedAccountCode) { /** * platformPaymentConfiguration * - * @param platformPaymentConfiguration + * @param platformPaymentConfiguration * @return the current {@code BalanceAccount} instance, allowing for method chaining */ - public BalanceAccount platformPaymentConfiguration(PlatformPaymentConfiguration platformPaymentConfiguration) { + public BalanceAccount platformPaymentConfiguration( + PlatformPaymentConfiguration platformPaymentConfiguration) { this.platformPaymentConfiguration = platformPaymentConfiguration; return this; } /** * Get platformPaymentConfiguration - * @return platformPaymentConfiguration + * + * @return platformPaymentConfiguration */ @JsonProperty(JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -392,11 +457,12 @@ public PlatformPaymentConfiguration getPlatformPaymentConfiguration() { /** * platformPaymentConfiguration * - * @param platformPaymentConfiguration + * @param platformPaymentConfiguration */ @JsonProperty(JSON_PROPERTY_PLATFORM_PAYMENT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPlatformPaymentConfiguration(PlatformPaymentConfiguration platformPaymentConfiguration) { + public void setPlatformPaymentConfiguration( + PlatformPaymentConfiguration platformPaymentConfiguration) { this.platformPaymentConfiguration = platformPaymentConfiguration; } @@ -413,6 +479,7 @@ public BalanceAccount reference(String reference) { /** * Your reference for the balance account, maximum 150 characters. + * * @return reference Your reference for the balance account, maximum 150 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -433,9 +500,9 @@ public void setReference(String reference) { } /** - * The status of the balance account, set to **active** by default. + * The status of the balance account, set to **active** by default. * - * @param status The status of the balance account, set to **active** by default. + * @param status The status of the balance account, set to **active** by default. * @return the current {@code BalanceAccount} instance, allowing for method chaining */ public BalanceAccount status(StatusEnum status) { @@ -444,8 +511,9 @@ public BalanceAccount status(StatusEnum status) { } /** - * The status of the balance account, set to **active** by default. - * @return status The status of the balance account, set to **active** by default. + * The status of the balance account, set to **active** by default. + * + * @return status The status of the balance account, set to **active** by default. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -454,9 +522,9 @@ public StatusEnum getStatus() { } /** - * The status of the balance account, set to **active** by default. + * The status of the balance account, set to **active** by default. * - * @param status The status of the balance account, set to **active** by default. + * @param status The status of the balance account, set to **active** by default. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -465,9 +533,14 @@ public void setStatus(StatusEnum status) { } /** - * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time + * zone of the account holder if no time zone is set. For possible values, see the [list of time + * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. + * Defaults to the time zone of the account holder if no time zone is set. For possible + * values, see the [list of time zone + * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * @return the current {@code BalanceAccount} instance, allowing for method chaining */ public BalanceAccount timeZone(String timeZone) { @@ -476,8 +549,14 @@ public BalanceAccount timeZone(String timeZone) { } /** - * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). - * @return timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time + * zone of the account holder if no time zone is set. For possible values, see the [list of time + * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * + * @return timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. + * Defaults to the time zone of the account holder if no time zone is set. For possible + * values, see the [list of time zone + * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -486,9 +565,14 @@ public String getTimeZone() { } /** - * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time + * zone of the account holder if no time zone is set. For possible values, see the [list of time + * zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * - * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. + * Defaults to the time zone of the account holder if no time zone is set. For possible + * values, see the [list of time zone + * codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ @JsonProperty(JSON_PROPERTY_TIME_ZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -496,9 +580,7 @@ public void setTimeZone(String timeZone) { this.timeZone = timeZone; } - /** - * Return true if this BalanceAccount object is equal to o. - */ + /** Return true if this BalanceAccount object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -508,22 +590,34 @@ public boolean equals(Object o) { return false; } BalanceAccount balanceAccount = (BalanceAccount) o; - return Objects.equals(this.accountHolderId, balanceAccount.accountHolderId) && - Objects.equals(this.balances, balanceAccount.balances) && - Objects.equals(this.defaultCurrencyCode, balanceAccount.defaultCurrencyCode) && - Objects.equals(this.description, balanceAccount.description) && - Objects.equals(this.id, balanceAccount.id) && - Objects.equals(this.metadata, balanceAccount.metadata) && - Objects.equals(this.migratedAccountCode, balanceAccount.migratedAccountCode) && - Objects.equals(this.platformPaymentConfiguration, balanceAccount.platformPaymentConfiguration) && - Objects.equals(this.reference, balanceAccount.reference) && - Objects.equals(this.status, balanceAccount.status) && - Objects.equals(this.timeZone, balanceAccount.timeZone); + return Objects.equals(this.accountHolderId, balanceAccount.accountHolderId) + && Objects.equals(this.balances, balanceAccount.balances) + && Objects.equals(this.defaultCurrencyCode, balanceAccount.defaultCurrencyCode) + && Objects.equals(this.description, balanceAccount.description) + && Objects.equals(this.id, balanceAccount.id) + && Objects.equals(this.metadata, balanceAccount.metadata) + && Objects.equals(this.migratedAccountCode, balanceAccount.migratedAccountCode) + && Objects.equals( + this.platformPaymentConfiguration, balanceAccount.platformPaymentConfiguration) + && Objects.equals(this.reference, balanceAccount.reference) + && Objects.equals(this.status, balanceAccount.status) + && Objects.equals(this.timeZone, balanceAccount.timeZone); } @Override public int hashCode() { - return Objects.hash(accountHolderId, balances, defaultCurrencyCode, description, id, metadata, migratedAccountCode, platformPaymentConfiguration, reference, status, timeZone); + return Objects.hash( + accountHolderId, + balances, + defaultCurrencyCode, + description, + id, + metadata, + migratedAccountCode, + platformPaymentConfiguration, + reference, + status, + timeZone); } @Override @@ -532,12 +626,18 @@ public String toString() { sb.append("class BalanceAccount {\n"); sb.append(" accountHolderId: ").append(toIndentedString(accountHolderId)).append("\n"); sb.append(" balances: ").append(toIndentedString(balances)).append("\n"); - sb.append(" defaultCurrencyCode: ").append(toIndentedString(defaultCurrencyCode)).append("\n"); + sb.append(" defaultCurrencyCode: ") + .append(toIndentedString(defaultCurrencyCode)) + .append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" migratedAccountCode: ").append(toIndentedString(migratedAccountCode)).append("\n"); - sb.append(" platformPaymentConfiguration: ").append(toIndentedString(platformPaymentConfiguration)).append("\n"); + sb.append(" migratedAccountCode: ") + .append(toIndentedString(migratedAccountCode)) + .append("\n"); + sb.append(" platformPaymentConfiguration: ") + .append(toIndentedString(platformPaymentConfiguration)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); @@ -546,8 +646,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -556,7 +655,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BalanceAccount given an JSON string * * @param jsonString JSON string @@ -566,11 +665,12 @@ private String toIndentedString(Object o) { public static BalanceAccount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceAccount.class); } -/** - * Convert an instance of BalanceAccount to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BalanceAccount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccountNotificationData.java b/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccountNotificationData.java index 14dd71a69..98f88d5a1 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccountNotificationData.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccountNotificationData.java @@ -2,37 +2,26 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.configurationwebhooks.BalanceAccount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * BalanceAccountNotificationData - */ +/** BalanceAccountNotificationData */ @JsonPropertyOrder({ BalanceAccountNotificationData.JSON_PROPERTY_BALANCE_ACCOUNT, BalanceAccountNotificationData.JSON_PROPERTY_BALANCE_PLATFORM }) - public class BalanceAccountNotificationData { public static final String JSON_PROPERTY_BALANCE_ACCOUNT = "balanceAccount"; private BalanceAccount balanceAccount; @@ -40,14 +29,14 @@ public class BalanceAccountNotificationData { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; - public BalanceAccountNotificationData() { - } + public BalanceAccountNotificationData() {} /** * balanceAccount * - * @param balanceAccount - * @return the current {@code BalanceAccountNotificationData} instance, allowing for method chaining + * @param balanceAccount + * @return the current {@code BalanceAccountNotificationData} instance, allowing for method + * chaining */ public BalanceAccountNotificationData balanceAccount(BalanceAccount balanceAccount) { this.balanceAccount = balanceAccount; @@ -56,7 +45,8 @@ public BalanceAccountNotificationData balanceAccount(BalanceAccount balanceAccou /** * Get balanceAccount - * @return balanceAccount + * + * @return balanceAccount */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -67,7 +57,7 @@ public BalanceAccount getBalanceAccount() { /** * balanceAccount * - * @param balanceAccount + * @param balanceAccount */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,7 +69,8 @@ public void setBalanceAccount(BalanceAccount balanceAccount) { * The unique identifier of the balance platform. * * @param balancePlatform The unique identifier of the balance platform. - * @return the current {@code BalanceAccountNotificationData} instance, allowing for method chaining + * @return the current {@code BalanceAccountNotificationData} instance, allowing for method + * chaining */ public BalanceAccountNotificationData balancePlatform(String balancePlatform) { this.balancePlatform = balancePlatform; @@ -88,6 +79,7 @@ public BalanceAccountNotificationData balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. + * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -107,9 +99,7 @@ public void setBalancePlatform(String balancePlatform) { this.balancePlatform = balancePlatform; } - /** - * Return true if this BalanceAccountNotificationData object is equal to o. - */ + /** Return true if this BalanceAccountNotificationData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,9 +108,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - BalanceAccountNotificationData balanceAccountNotificationData = (BalanceAccountNotificationData) o; - return Objects.equals(this.balanceAccount, balanceAccountNotificationData.balanceAccount) && - Objects.equals(this.balancePlatform, balanceAccountNotificationData.balancePlatform); + BalanceAccountNotificationData balanceAccountNotificationData = + (BalanceAccountNotificationData) o; + return Objects.equals(this.balanceAccount, balanceAccountNotificationData.balanceAccount) + && Objects.equals(this.balancePlatform, balanceAccountNotificationData.balancePlatform); } @Override @@ -139,8 +130,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -149,21 +139,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BalanceAccountNotificationData given an JSON string * * @param jsonString JSON string * @return An instance of BalanceAccountNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceAccountNotificationData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BalanceAccountNotificationData */ - public static BalanceAccountNotificationData fromJson(String jsonString) throws JsonProcessingException { + public static BalanceAccountNotificationData fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceAccountNotificationData.class); } -/** - * Convert an instance of BalanceAccountNotificationData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BalanceAccountNotificationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccountNotificationRequest.java b/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccountNotificationRequest.java index 13f6021e5..36906dadb 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccountNotificationRequest.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccountNotificationRequest.java @@ -2,40 +2,33 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.configurationwebhooks.BalanceAccountNotificationData; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * BalanceAccountNotificationRequest - */ +/** BalanceAccountNotificationRequest */ @JsonPropertyOrder({ BalanceAccountNotificationRequest.JSON_PROPERTY_DATA, BalanceAccountNotificationRequest.JSON_PROPERTY_ENVIRONMENT, BalanceAccountNotificationRequest.JSON_PROPERTY_TIMESTAMP, BalanceAccountNotificationRequest.JSON_PROPERTY_TYPE }) - public class BalanceAccountNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private BalanceAccountNotificationData data; @@ -46,21 +39,20 @@ public class BalanceAccountNotificationRequest { public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; private OffsetDateTime timestamp; - /** - * Type of webhook. - */ + /** Type of webhook. */ public enum TypeEnum { + BALANCEPLATFORM_BALANCEACCOUNT_UPDATED( + String.valueOf("balancePlatform.balanceAccount.updated")), - BALANCEPLATFORM_BALANCEACCOUNT_UPDATED(String.valueOf("balancePlatform.balanceAccount.updated")), - - BALANCEPLATFORM_BALANCEACCOUNT_CREATED(String.valueOf("balancePlatform.balanceAccount.created")); + BALANCEPLATFORM_BALANCEACCOUNT_CREATED( + String.valueOf("balancePlatform.balanceAccount.created")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -81,7 +73,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -89,14 +85,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public BalanceAccountNotificationRequest() { - } + public BalanceAccountNotificationRequest() {} /** * data * - * @param data - * @return the current {@code BalanceAccountNotificationRequest} instance, allowing for method chaining + * @param data + * @return the current {@code BalanceAccountNotificationRequest} instance, allowing for method + * chaining */ public BalanceAccountNotificationRequest data(BalanceAccountNotificationData data) { this.data = data; @@ -105,7 +101,8 @@ public BalanceAccountNotificationRequest data(BalanceAccountNotificationData dat /** * Get data - * @return data + * + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,7 +113,7 @@ public BalanceAccountNotificationData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,10 +122,12 @@ public void setData(BalanceAccountNotificationData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. - * @return the current {@code BalanceAccountNotificationRequest} instance, allowing for method chaining + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. + * @return the current {@code BalanceAccountNotificationRequest} instance, allowing for method + * chaining */ public BalanceAccountNotificationRequest environment(String environment) { this.environment = environment; @@ -136,8 +135,10 @@ public BalanceAccountNotificationRequest environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * + * @return environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,9 +147,10 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,7 +162,8 @@ public void setEnvironment(String environment) { * When the event was queued. * * @param timestamp When the event was queued. - * @return the current {@code BalanceAccountNotificationRequest} instance, allowing for method chaining + * @return the current {@code BalanceAccountNotificationRequest} instance, allowing for method + * chaining */ public BalanceAccountNotificationRequest timestamp(OffsetDateTime timestamp) { this.timestamp = timestamp; @@ -169,6 +172,7 @@ public BalanceAccountNotificationRequest timestamp(OffsetDateTime timestamp) { /** * When the event was queued. + * * @return timestamp When the event was queued. */ @JsonProperty(JSON_PROPERTY_TIMESTAMP) @@ -192,7 +196,8 @@ public void setTimestamp(OffsetDateTime timestamp) { * Type of webhook. * * @param type Type of webhook. - * @return the current {@code BalanceAccountNotificationRequest} instance, allowing for method chaining + * @return the current {@code BalanceAccountNotificationRequest} instance, allowing for method + * chaining */ public BalanceAccountNotificationRequest type(TypeEnum type) { this.type = type; @@ -201,6 +206,7 @@ public BalanceAccountNotificationRequest type(TypeEnum type) { /** * Type of webhook. + * * @return type Type of webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -220,9 +226,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this BalanceAccountNotificationRequest object is equal to o. - */ + /** Return true if this BalanceAccountNotificationRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -231,11 +235,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - BalanceAccountNotificationRequest balanceAccountNotificationRequest = (BalanceAccountNotificationRequest) o; - return Objects.equals(this.data, balanceAccountNotificationRequest.data) && - Objects.equals(this.environment, balanceAccountNotificationRequest.environment) && - Objects.equals(this.timestamp, balanceAccountNotificationRequest.timestamp) && - Objects.equals(this.type, balanceAccountNotificationRequest.type); + BalanceAccountNotificationRequest balanceAccountNotificationRequest = + (BalanceAccountNotificationRequest) o; + return Objects.equals(this.data, balanceAccountNotificationRequest.data) + && Objects.equals(this.environment, balanceAccountNotificationRequest.environment) + && Objects.equals(this.timestamp, balanceAccountNotificationRequest.timestamp) + && Objects.equals(this.type, balanceAccountNotificationRequest.type); } @Override @@ -256,8 +261,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -266,21 +270,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BalanceAccountNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of BalanceAccountNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceAccountNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BalanceAccountNotificationRequest */ - public static BalanceAccountNotificationRequest fromJson(String jsonString) throws JsonProcessingException { + public static BalanceAccountNotificationRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceAccountNotificationRequest.class); } -/** - * Convert an instance of BalanceAccountNotificationRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BalanceAccountNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/BalancePlatformNotificationResponse.java b/src/main/java/com/adyen/model/configurationwebhooks/BalancePlatformNotificationResponse.java index d6dd9f08b..c004a6522 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/BalancePlatformNotificationResponse.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/BalancePlatformNotificationResponse.java @@ -2,47 +2,37 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * BalancePlatformNotificationResponse - */ -@JsonPropertyOrder({ - BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE -}) - +/** BalancePlatformNotificationResponse */ +@JsonPropertyOrder({BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) public class BalancePlatformNotificationResponse { public static final String JSON_PROPERTY_NOTIFICATION_RESPONSE = "notificationResponse"; private String notificationResponse; - public BalancePlatformNotificationResponse() { - } + public BalancePlatformNotificationResponse() {} /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method chaining + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method + * chaining */ public BalancePlatformNotificationResponse notificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; @@ -50,8 +40,11 @@ public BalancePlatformNotificationResponse notificationResponse(String notificat } /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * + * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,9 +53,11 @@ public String getNotificationResponse() { } /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +65,7 @@ public void setNotificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; } - /** - * Return true if this BalancePlatformNotificationResponse object is equal to o. - */ + /** Return true if this BalancePlatformNotificationResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -81,8 +74,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - BalancePlatformNotificationResponse balancePlatformNotificationResponse = (BalancePlatformNotificationResponse) o; - return Objects.equals(this.notificationResponse, balancePlatformNotificationResponse.notificationResponse); + BalancePlatformNotificationResponse balancePlatformNotificationResponse = + (BalancePlatformNotificationResponse) o; + return Objects.equals( + this.notificationResponse, balancePlatformNotificationResponse.notificationResponse); } @Override @@ -94,14 +89,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BalancePlatformNotificationResponse {\n"); - sb.append(" notificationResponse: ").append(toIndentedString(notificationResponse)).append("\n"); + sb.append(" notificationResponse: ") + .append(toIndentedString(notificationResponse)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +106,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BalancePlatformNotificationResponse given an JSON string * * @param jsonString JSON string * @return An instance of BalancePlatformNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to BalancePlatformNotificationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BalancePlatformNotificationResponse */ - public static BalancePlatformNotificationResponse fromJson(String jsonString) throws JsonProcessingException { + public static BalancePlatformNotificationResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalancePlatformNotificationResponse.class); } -/** - * Convert an instance of BalancePlatformNotificationResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BalancePlatformNotificationResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/BankAccountDetails.java b/src/main/java/com/adyen/model/configurationwebhooks/BankAccountDetails.java index 6b62e00cc..a23641709 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/BankAccountDetails.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/BankAccountDetails.java @@ -2,31 +2,22 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * BankAccountDetails - */ +/** BankAccountDetails */ @JsonPropertyOrder({ BankAccountDetails.JSON_PROPERTY_ACCOUNT_NUMBER, BankAccountDetails.JSON_PROPERTY_ACCOUNT_TYPE, @@ -37,7 +28,6 @@ BankAccountDetails.JSON_PROPERTY_SORT_CODE, BankAccountDetails.JSON_PROPERTY_TYPE }) - public class BankAccountDetails { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -63,8 +53,7 @@ public class BankAccountDetails { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public BankAccountDetails() { - } + public BankAccountDetails() {} /** * The bank account number, without separators or whitespace. @@ -79,6 +68,7 @@ public BankAccountDetails accountNumber(String accountNumber) { /** * The bank account number, without separators or whitespace. + * * @return accountNumber The bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -99,9 +89,10 @@ public void setAccountNumber(String accountNumber) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. + * Defaults to **checking**. * @return the current {@code BankAccountDetails} instance, allowing for method chaining */ public BankAccountDetails accountType(String accountType) { @@ -110,8 +101,10 @@ public BankAccountDetails accountType(String accountType) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. - * @return accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * + * @return accountType The bank account type. Possible values: **checking** or **savings**. + * Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -120,9 +113,10 @@ public String getAccountType() { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. + * Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,6 +137,7 @@ public BankAccountDetails branchNumber(String branchNumber) { /** * The bank account branch number, without separators or whitespace + * * @return branchNumber The bank account branch number, without separators or whitespace */ @JsonProperty(JSON_PROPERTY_BRANCH_NUMBER) @@ -163,9 +158,19 @@ public void setBranchNumber(String branchNumber) { } /** - * Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. + * Business accounts with a `formFactor` value of **physical** are business accounts + * issued under the central bank of that country. The default value is **physical** for NL, US, + * and UK business accounts. Adyen creates a local IBAN for business accounts when the + * `formFactor` value is set to **virtual**. The local IBANs that are supported are for + * DE and FR, which reference a physical NL account, with funds being routed through the central + * bank of NL. * - * @param formFactor Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. + * @param formFactor Business accounts with a `formFactor` value of **physical** are + * business accounts issued under the central bank of that country. The default value is + * **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business + * accounts when the `formFactor` value is set to **virtual**. The local IBANs that + * are supported are for DE and FR, which reference a physical NL account, with funds being + * routed through the central bank of NL. * @return the current {@code BankAccountDetails} instance, allowing for method chaining */ public BankAccountDetails formFactor(String formFactor) { @@ -174,8 +179,19 @@ public BankAccountDetails formFactor(String formFactor) { } /** - * Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. - * @return formFactor Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. + * Business accounts with a `formFactor` value of **physical** are business accounts + * issued under the central bank of that country. The default value is **physical** for NL, US, + * and UK business accounts. Adyen creates a local IBAN for business accounts when the + * `formFactor` value is set to **virtual**. The local IBANs that are supported are for + * DE and FR, which reference a physical NL account, with funds being routed through the central + * bank of NL. + * + * @return formFactor Business accounts with a `formFactor` value of **physical** are + * business accounts issued under the central bank of that country. The default value is + * **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business + * accounts when the `formFactor` value is set to **virtual**. The local IBANs that + * are supported are for DE and FR, which reference a physical NL account, with funds being + * routed through the central bank of NL. */ @JsonProperty(JSON_PROPERTY_FORM_FACTOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -184,9 +200,19 @@ public String getFormFactor() { } /** - * Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. + * Business accounts with a `formFactor` value of **physical** are business accounts + * issued under the central bank of that country. The default value is **physical** for NL, US, + * and UK business accounts. Adyen creates a local IBAN for business accounts when the + * `formFactor` value is set to **virtual**. The local IBANs that are supported are for + * DE and FR, which reference a physical NL account, with funds being routed through the central + * bank of NL. * - * @param formFactor Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. + * @param formFactor Business accounts with a `formFactor` value of **physical** are + * business accounts issued under the central bank of that country. The default value is + * **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business + * accounts when the `formFactor` value is set to **virtual**. The local IBANs that + * are supported are for DE and FR, which reference a physical NL account, with funds being + * routed through the central bank of NL. */ @JsonProperty(JSON_PROPERTY_FORM_FACTOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,9 +221,11 @@ public void setFormFactor(String formFactor) { } /** - * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. * - * @param iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @param iban The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. * @return the current {@code BankAccountDetails} instance, allowing for method chaining */ public BankAccountDetails iban(String iban) { @@ -206,8 +234,11 @@ public BankAccountDetails iban(String iban) { } /** - * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. - * @return iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * + * @return iban The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -216,9 +247,11 @@ public String getIban() { } /** - * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. * - * @param iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @param iban The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -227,9 +260,12 @@ public void setIban(String iban) { } /** - * The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without + * separators or whitespace. * - * @param routingNumber The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * @param routingNumber The [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * whitespace. * @return the current {@code BankAccountDetails} instance, allowing for method chaining */ public BankAccountDetails routingNumber(String routingNumber) { @@ -238,8 +274,12 @@ public BankAccountDetails routingNumber(String routingNumber) { } /** - * The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. - * @return routingNumber The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without + * separators or whitespace. + * + * @return routingNumber The [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * whitespace. */ @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -248,9 +288,12 @@ public String getRoutingNumber() { } /** - * The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without + * separators or whitespace. * - * @param routingNumber The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * @param routingNumber The [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * whitespace. */ @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -261,7 +304,8 @@ public void setRoutingNumber(String routingNumber) { /** * The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. * - * @param sortCode The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. + * @param sortCode The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or + * whitespace. * @return the current {@code BankAccountDetails} instance, allowing for method chaining */ public BankAccountDetails sortCode(String sortCode) { @@ -271,7 +315,9 @@ public BankAccountDetails sortCode(String sortCode) { /** * The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. - * @return sortCode The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. + * + * @return sortCode The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators + * or whitespace. */ @JsonProperty(JSON_PROPERTY_SORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -282,7 +328,8 @@ public String getSortCode() { /** * The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. * - * @param sortCode The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. + * @param sortCode The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or + * whitespace. */ @JsonProperty(JSON_PROPERTY_SORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -303,6 +350,7 @@ public BankAccountDetails type(String type) { /** * **iban** or **usLocal** or **ukLocal** + * * @return type **iban** or **usLocal** or **ukLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -322,9 +370,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this BankAccountDetails object is equal to o. - */ + /** Return true if this BankAccountDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -334,19 +380,20 @@ public boolean equals(Object o) { return false; } BankAccountDetails bankAccountDetails = (BankAccountDetails) o; - return Objects.equals(this.accountNumber, bankAccountDetails.accountNumber) && - Objects.equals(this.accountType, bankAccountDetails.accountType) && - Objects.equals(this.branchNumber, bankAccountDetails.branchNumber) && - Objects.equals(this.formFactor, bankAccountDetails.formFactor) && - Objects.equals(this.iban, bankAccountDetails.iban) && - Objects.equals(this.routingNumber, bankAccountDetails.routingNumber) && - Objects.equals(this.sortCode, bankAccountDetails.sortCode) && - Objects.equals(this.type, bankAccountDetails.type); + return Objects.equals(this.accountNumber, bankAccountDetails.accountNumber) + && Objects.equals(this.accountType, bankAccountDetails.accountType) + && Objects.equals(this.branchNumber, bankAccountDetails.branchNumber) + && Objects.equals(this.formFactor, bankAccountDetails.formFactor) + && Objects.equals(this.iban, bankAccountDetails.iban) + && Objects.equals(this.routingNumber, bankAccountDetails.routingNumber) + && Objects.equals(this.sortCode, bankAccountDetails.sortCode) + && Objects.equals(this.type, bankAccountDetails.type); } @Override public int hashCode() { - return Objects.hash(accountNumber, accountType, branchNumber, formFactor, iban, routingNumber, sortCode, type); + return Objects.hash( + accountNumber, accountType, branchNumber, formFactor, iban, routingNumber, sortCode, type); } @Override @@ -366,8 +413,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -376,21 +422,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BankAccountDetails given an JSON string * * @param jsonString JSON string * @return An instance of BankAccountDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to BankAccountDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BankAccountDetails */ public static BankAccountDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankAccountDetails.class); } -/** - * Convert an instance of BankAccountDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BankAccountDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/BankScoreSignalTriggeredData.java b/src/main/java/com/adyen/model/configurationwebhooks/BankScoreSignalTriggeredData.java index edd6dc576..51cabd168 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/BankScoreSignalTriggeredData.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/BankScoreSignalTriggeredData.java @@ -2,35 +2,25 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.configurationwebhooks.ResourceReference; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -/** - * BankScoreSignalTriggeredData - */ +/** BankScoreSignalTriggeredData */ @JsonPropertyOrder({ BankScoreSignalTriggeredData.JSON_PROPERTY_ACCOUNT_HOLDER, BankScoreSignalTriggeredData.JSON_PROPERTY_ACCOUNT_HOLDER_STATUS, @@ -42,7 +32,6 @@ BankScoreSignalTriggeredData.JSON_PROPERTY_SCORE_SIGNALS_TRIGGERED, BankScoreSignalTriggeredData.JSON_PROPERTY_SIGNAL_SOURCE_TYPES }) - public class BankScoreSignalTriggeredData { public static final String JSON_PROPERTY_ACCOUNT_HOLDER = "accountHolder"; private ResourceReference accountHolder; @@ -71,13 +60,12 @@ public class BankScoreSignalTriggeredData { public static final String JSON_PROPERTY_SIGNAL_SOURCE_TYPES = "signalSourceTypes"; private List signalSourceTypes; - public BankScoreSignalTriggeredData() { - } + public BankScoreSignalTriggeredData() {} /** * accountHolder * - * @param accountHolder + * @param accountHolder * @return the current {@code BankScoreSignalTriggeredData} instance, allowing for method chaining */ public BankScoreSignalTriggeredData accountHolder(ResourceReference accountHolder) { @@ -87,7 +75,8 @@ public BankScoreSignalTriggeredData accountHolder(ResourceReference accountHolde /** * Get accountHolder - * @return accountHolder + * + * @return accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -98,7 +87,7 @@ public ResourceReference getAccountHolder() { /** * accountHolder * - * @param accountHolder + * @param accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -119,6 +108,7 @@ public BankScoreSignalTriggeredData accountHolderStatus(String accountHolderStat /** * The status of the account holder. + * * @return accountHolderStatus The status of the account holder. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_STATUS) @@ -141,7 +131,8 @@ public void setAccountHolderStatus(String accountHolderStatus) { /** * The automated action(s) taken as a result of the score signals that were triggered. * - * @param automatedActions The automated action(s) taken as a result of the score signals that were triggered. + * @param automatedActions The automated action(s) taken as a result of the score signals that + * were triggered. * @return the current {@code BankScoreSignalTriggeredData} instance, allowing for method chaining */ public BankScoreSignalTriggeredData automatedActions(List automatedActions) { @@ -159,7 +150,9 @@ public BankScoreSignalTriggeredData addAutomatedActionsItem(String automatedActi /** * The automated action(s) taken as a result of the score signals that were triggered. - * @return automatedActions The automated action(s) taken as a result of the score signals that were triggered. + * + * @return automatedActions The automated action(s) taken as a result of the score signals that + * were triggered. */ @JsonProperty(JSON_PROPERTY_AUTOMATED_ACTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -170,7 +163,8 @@ public List getAutomatedActions() { /** * The automated action(s) taken as a result of the score signals that were triggered. * - * @param automatedActions The automated action(s) taken as a result of the score signals that were triggered. + * @param automatedActions The automated action(s) taken as a result of the score signals that + * were triggered. */ @JsonProperty(JSON_PROPERTY_AUTOMATED_ACTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,6 +185,7 @@ public BankScoreSignalTriggeredData balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. + * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -211,9 +206,11 @@ public void setBalancePlatform(String balancePlatform) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code BankScoreSignalTriggeredData} instance, allowing for method chaining */ public BankScoreSignalTriggeredData creationDate(OffsetDateTime creationDate) { @@ -222,8 +219,11 @@ public BankScoreSignalTriggeredData creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. + * + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,9 +232,11 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -255,6 +257,7 @@ public BankScoreSignalTriggeredData id(String id) { /** * The ID of the resource. + * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -287,6 +290,7 @@ public BankScoreSignalTriggeredData riskScore(Integer riskScore) { /** * The score of the identity resulting from the signal(s) that were triggered. + * * @return riskScore The score of the identity resulting from the signal(s) that were triggered. */ @JsonProperty(JSON_PROPERTY_RISK_SCORE) @@ -317,7 +321,8 @@ public BankScoreSignalTriggeredData scoreSignalsTriggered(List scoreSign return this; } - public BankScoreSignalTriggeredData addScoreSignalsTriggeredItem(String scoreSignalsTriggeredItem) { + public BankScoreSignalTriggeredData addScoreSignalsTriggeredItem( + String scoreSignalsTriggeredItem) { if (this.scoreSignalsTriggered == null) { this.scoreSignalsTriggered = new ArrayList<>(); } @@ -327,6 +332,7 @@ public BankScoreSignalTriggeredData addScoreSignalsTriggeredItem(String scoreSig /** * The name(s) of the score signals that were triggered. + * * @return scoreSignalsTriggered The name(s) of the score signals that were triggered. */ @JsonProperty(JSON_PROPERTY_SCORE_SIGNALS_TRIGGERED) @@ -367,6 +373,7 @@ public BankScoreSignalTriggeredData addSignalSourceTypesItem(String signalSource /** * The type(s) of the score signals that were triggered. + * * @return signalSourceTypes The type(s) of the score signals that were triggered. */ @JsonProperty(JSON_PROPERTY_SIGNAL_SOURCE_TYPES) @@ -386,9 +393,7 @@ public void setSignalSourceTypes(List signalSourceTypes) { this.signalSourceTypes = signalSourceTypes; } - /** - * Return true if this BankScoreSignalTriggeredData object is equal to o. - */ + /** Return true if this BankScoreSignalTriggeredData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -398,20 +403,31 @@ public boolean equals(Object o) { return false; } BankScoreSignalTriggeredData bankScoreSignalTriggeredData = (BankScoreSignalTriggeredData) o; - return Objects.equals(this.accountHolder, bankScoreSignalTriggeredData.accountHolder) && - Objects.equals(this.accountHolderStatus, bankScoreSignalTriggeredData.accountHolderStatus) && - Objects.equals(this.automatedActions, bankScoreSignalTriggeredData.automatedActions) && - Objects.equals(this.balancePlatform, bankScoreSignalTriggeredData.balancePlatform) && - Objects.equals(this.creationDate, bankScoreSignalTriggeredData.creationDate) && - Objects.equals(this.id, bankScoreSignalTriggeredData.id) && - Objects.equals(this.riskScore, bankScoreSignalTriggeredData.riskScore) && - Objects.equals(this.scoreSignalsTriggered, bankScoreSignalTriggeredData.scoreSignalsTriggered) && - Objects.equals(this.signalSourceTypes, bankScoreSignalTriggeredData.signalSourceTypes); + return Objects.equals(this.accountHolder, bankScoreSignalTriggeredData.accountHolder) + && Objects.equals( + this.accountHolderStatus, bankScoreSignalTriggeredData.accountHolderStatus) + && Objects.equals(this.automatedActions, bankScoreSignalTriggeredData.automatedActions) + && Objects.equals(this.balancePlatform, bankScoreSignalTriggeredData.balancePlatform) + && Objects.equals(this.creationDate, bankScoreSignalTriggeredData.creationDate) + && Objects.equals(this.id, bankScoreSignalTriggeredData.id) + && Objects.equals(this.riskScore, bankScoreSignalTriggeredData.riskScore) + && Objects.equals( + this.scoreSignalsTriggered, bankScoreSignalTriggeredData.scoreSignalsTriggered) + && Objects.equals(this.signalSourceTypes, bankScoreSignalTriggeredData.signalSourceTypes); } @Override public int hashCode() { - return Objects.hash(accountHolder, accountHolderStatus, automatedActions, balancePlatform, creationDate, id, riskScore, scoreSignalsTriggered, signalSourceTypes); + return Objects.hash( + accountHolder, + accountHolderStatus, + automatedActions, + balancePlatform, + creationDate, + id, + riskScore, + scoreSignalsTriggered, + signalSourceTypes); } @Override @@ -419,21 +435,24 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BankScoreSignalTriggeredData {\n"); sb.append(" accountHolder: ").append(toIndentedString(accountHolder)).append("\n"); - sb.append(" accountHolderStatus: ").append(toIndentedString(accountHolderStatus)).append("\n"); + sb.append(" accountHolderStatus: ") + .append(toIndentedString(accountHolderStatus)) + .append("\n"); sb.append(" automatedActions: ").append(toIndentedString(automatedActions)).append("\n"); sb.append(" balancePlatform: ").append(toIndentedString(balancePlatform)).append("\n"); sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" riskScore: ").append(toIndentedString(riskScore)).append("\n"); - sb.append(" scoreSignalsTriggered: ").append(toIndentedString(scoreSignalsTriggered)).append("\n"); + sb.append(" scoreSignalsTriggered: ") + .append(toIndentedString(scoreSignalsTriggered)) + .append("\n"); sb.append(" signalSourceTypes: ").append(toIndentedString(signalSourceTypes)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -442,21 +461,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BankScoreSignalTriggeredData given an JSON string * * @param jsonString JSON string * @return An instance of BankScoreSignalTriggeredData - * @throws JsonProcessingException if the JSON string is invalid with respect to BankScoreSignalTriggeredData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BankScoreSignalTriggeredData */ - public static BankScoreSignalTriggeredData fromJson(String jsonString) throws JsonProcessingException { + public static BankScoreSignalTriggeredData fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankScoreSignalTriggeredData.class); } -/** - * Convert an instance of BankScoreSignalTriggeredData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BankScoreSignalTriggeredData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/BulkAddress.java b/src/main/java/com/adyen/model/configurationwebhooks/BulkAddress.java index dfb1871b4..915c510ce 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/BulkAddress.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/BulkAddress.java @@ -2,31 +2,22 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * BulkAddress - */ +/** BulkAddress */ @JsonPropertyOrder({ BulkAddress.JSON_PROPERTY_CITY, BulkAddress.JSON_PROPERTY_COMPANY, @@ -38,7 +29,6 @@ BulkAddress.JSON_PROPERTY_STATE_OR_PROVINCE, BulkAddress.JSON_PROPERTY_STREET }) - public class BulkAddress { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -67,8 +57,7 @@ public class BulkAddress { public static final String JSON_PROPERTY_STREET = "street"; private String street; - public BulkAddress() { - } + public BulkAddress() {} /** * The name of the city. @@ -83,6 +72,7 @@ public BulkAddress city(String city) { /** * The name of the city. + * * @return city The name of the city. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -115,6 +105,7 @@ public BulkAddress company(String company) { /** * The name of the company. + * * @return company The name of the company. */ @JsonProperty(JSON_PROPERTY_COMPANY) @@ -147,6 +138,7 @@ public BulkAddress country(String country) { /** * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. + * * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @@ -179,6 +171,7 @@ public BulkAddress email(String email) { /** * The email address. + * * @return email The email address. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -211,6 +204,7 @@ public BulkAddress houseNumberOrName(String houseNumberOrName) { /** * The house number or name. + * * @return houseNumberOrName The house number or name. */ @JsonProperty(JSON_PROPERTY_HOUSE_NUMBER_OR_NAME) @@ -243,6 +237,7 @@ public BulkAddress mobile(String mobile) { /** * The full telephone number. + * * @return mobile The full telephone number. */ @JsonProperty(JSON_PROPERTY_MOBILE) @@ -263,9 +258,11 @@ public void setMobile(String mobile) { } /** - * The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries. + * The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all + * other countries. * - * @param postalCode The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries. + * @param postalCode The postal code. Maximum length: * 5 digits for addresses in the US. * 10 + * characters for all other countries. * @return the current {@code BulkAddress} instance, allowing for method chaining */ public BulkAddress postalCode(String postalCode) { @@ -274,8 +271,11 @@ public BulkAddress postalCode(String postalCode) { } /** - * The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries. - * @return postalCode The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries. + * The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all + * other countries. + * + * @return postalCode The postal code. Maximum length: * 5 digits for addresses in the US. * 10 + * characters for all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,9 +284,11 @@ public String getPostalCode() { } /** - * The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries. + * The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all + * other countries. * - * @param postalCode The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries. + * @param postalCode The postal code. Maximum length: * 5 digits for addresses in the US. * 10 + * characters for all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -295,9 +297,11 @@ public void setPostalCode(String postalCode) { } /** - * The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in the US. + * The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in + * the US. * - * @param stateOrProvince The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in the US. + * @param stateOrProvince The two-letter ISO 3166-2 state or province code. Maximum length: 2 + * characters for addresses in the US. * @return the current {@code BulkAddress} instance, allowing for method chaining */ public BulkAddress stateOrProvince(String stateOrProvince) { @@ -306,8 +310,11 @@ public BulkAddress stateOrProvince(String stateOrProvince) { } /** - * The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in the US. - * @return stateOrProvince The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in the US. + * The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in + * the US. + * + * @return stateOrProvince The two-letter ISO 3166-2 state or province code. Maximum length: 2 + * characters for addresses in the US. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -316,9 +323,11 @@ public String getStateOrProvince() { } /** - * The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in the US. + * The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in + * the US. * - * @param stateOrProvince The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in the US. + * @param stateOrProvince The two-letter ISO 3166-2 state or province code. Maximum length: 2 + * characters for addresses in the US. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -339,6 +348,7 @@ public BulkAddress street(String street) { /** * The streetname of the house. + * * @return street The streetname of the house. */ @JsonProperty(JSON_PROPERTY_STREET) @@ -358,9 +368,7 @@ public void setStreet(String street) { this.street = street; } - /** - * Return true if this BulkAddress object is equal to o. - */ + /** Return true if this BulkAddress object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -370,20 +378,29 @@ public boolean equals(Object o) { return false; } BulkAddress bulkAddress = (BulkAddress) o; - return Objects.equals(this.city, bulkAddress.city) && - Objects.equals(this.company, bulkAddress.company) && - Objects.equals(this.country, bulkAddress.country) && - Objects.equals(this.email, bulkAddress.email) && - Objects.equals(this.houseNumberOrName, bulkAddress.houseNumberOrName) && - Objects.equals(this.mobile, bulkAddress.mobile) && - Objects.equals(this.postalCode, bulkAddress.postalCode) && - Objects.equals(this.stateOrProvince, bulkAddress.stateOrProvince) && - Objects.equals(this.street, bulkAddress.street); + return Objects.equals(this.city, bulkAddress.city) + && Objects.equals(this.company, bulkAddress.company) + && Objects.equals(this.country, bulkAddress.country) + && Objects.equals(this.email, bulkAddress.email) + && Objects.equals(this.houseNumberOrName, bulkAddress.houseNumberOrName) + && Objects.equals(this.mobile, bulkAddress.mobile) + && Objects.equals(this.postalCode, bulkAddress.postalCode) + && Objects.equals(this.stateOrProvince, bulkAddress.stateOrProvince) + && Objects.equals(this.street, bulkAddress.street); } @Override public int hashCode() { - return Objects.hash(city, company, country, email, houseNumberOrName, mobile, postalCode, stateOrProvince, street); + return Objects.hash( + city, + company, + country, + email, + houseNumberOrName, + mobile, + postalCode, + stateOrProvince, + street); } @Override @@ -404,8 +421,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -414,7 +430,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BulkAddress given an JSON string * * @param jsonString JSON string @@ -424,11 +440,12 @@ private String toIndentedString(Object o) { public static BulkAddress fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BulkAddress.class); } -/** - * Convert an instance of BulkAddress to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BulkAddress to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblem.java b/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblem.java index 3327ec072..405a147aa 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblem.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblem.java @@ -2,40 +2,28 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.configurationwebhooks.CapabilityProblemEntity; -import com.adyen.model.configurationwebhooks.VerificationError; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * CapabilityProblem - */ +/** CapabilityProblem */ @JsonPropertyOrder({ CapabilityProblem.JSON_PROPERTY_ENTITY, CapabilityProblem.JSON_PROPERTY_VERIFICATION_ERRORS }) - public class CapabilityProblem { public static final String JSON_PROPERTY_ENTITY = "entity"; private CapabilityProblemEntity entity; @@ -43,13 +31,12 @@ public class CapabilityProblem { public static final String JSON_PROPERTY_VERIFICATION_ERRORS = "verificationErrors"; private List verificationErrors; - public CapabilityProblem() { - } + public CapabilityProblem() {} /** * entity * - * @param entity + * @param entity * @return the current {@code CapabilityProblem} instance, allowing for method chaining */ public CapabilityProblem entity(CapabilityProblemEntity entity) { @@ -59,7 +46,8 @@ public CapabilityProblem entity(CapabilityProblemEntity entity) { /** * Get entity - * @return entity + * + * @return entity */ @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,7 +58,7 @@ public CapabilityProblemEntity getEntity() { /** * entity * - * @param entity + * @param entity */ @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,6 +87,7 @@ public CapabilityProblem addVerificationErrorsItem(VerificationError verificatio /** * Contains information about the verification error. + * * @return verificationErrors Contains information about the verification error. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_ERRORS) @@ -118,9 +107,7 @@ public void setVerificationErrors(List verificationErrors) { this.verificationErrors = verificationErrors; } - /** - * Return true if this CapabilityProblem object is equal to o. - */ + /** Return true if this CapabilityProblem object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -130,8 +117,8 @@ public boolean equals(Object o) { return false; } CapabilityProblem capabilityProblem = (CapabilityProblem) o; - return Objects.equals(this.entity, capabilityProblem.entity) && - Objects.equals(this.verificationErrors, capabilityProblem.verificationErrors); + return Objects.equals(this.entity, capabilityProblem.entity) + && Objects.equals(this.verificationErrors, capabilityProblem.verificationErrors); } @Override @@ -150,8 +137,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -160,7 +146,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CapabilityProblem given an JSON string * * @param jsonString JSON string @@ -170,11 +156,12 @@ private String toIndentedString(Object o) { public static CapabilityProblem fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapabilityProblem.class); } -/** - * Convert an instance of CapabilityProblem to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CapabilityProblem to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblemEntity.java b/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblemEntity.java index 12db946c8..9e69b916a 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblemEntity.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblemEntity.java @@ -2,41 +2,34 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.configurationwebhooks.CapabilityProblemEntityRecursive; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * CapabilityProblemEntity - */ +/** CapabilityProblemEntity */ @JsonPropertyOrder({ CapabilityProblemEntity.JSON_PROPERTY_DOCUMENTS, CapabilityProblemEntity.JSON_PROPERTY_ID, CapabilityProblemEntity.JSON_PROPERTY_OWNER, CapabilityProblemEntity.JSON_PROPERTY_TYPE }) - public class CapabilityProblemEntity { public static final String JSON_PROPERTY_DOCUMENTS = "documents"; private List documents; @@ -47,11 +40,8 @@ public class CapabilityProblemEntity { public static final String JSON_PROPERTY_OWNER = "owner"; private CapabilityProblemEntityRecursive owner; - /** - * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. - */ + /** Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. */ public enum TypeEnum { - BANKACCOUNT(String.valueOf("BankAccount")), DOCUMENT(String.valueOf("Document")), @@ -63,7 +53,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -84,7 +74,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -92,13 +86,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CapabilityProblemEntity() { - } + public CapabilityProblemEntity() {} /** - * List of document IDs to which the verification errors related to the capabilities correspond to. + * List of document IDs to which the verification errors related to the capabilities correspond + * to. * - * @param documents List of document IDs to which the verification errors related to the capabilities correspond to. + * @param documents List of document IDs to which the verification errors related to the + * capabilities correspond to. * @return the current {@code CapabilityProblemEntity} instance, allowing for method chaining */ public CapabilityProblemEntity documents(List documents) { @@ -115,8 +110,11 @@ public CapabilityProblemEntity addDocumentsItem(String documentsItem) { } /** - * List of document IDs to which the verification errors related to the capabilities correspond to. - * @return documents List of document IDs to which the verification errors related to the capabilities correspond to. + * List of document IDs to which the verification errors related to the capabilities correspond + * to. + * + * @return documents List of document IDs to which the verification errors related to the + * capabilities correspond to. */ @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,9 +123,11 @@ public List getDocuments() { } /** - * List of document IDs to which the verification errors related to the capabilities correspond to. + * List of document IDs to which the verification errors related to the capabilities correspond + * to. * - * @param documents List of document IDs to which the verification errors related to the capabilities correspond to. + * @param documents List of document IDs to which the verification errors related to the + * capabilities correspond to. */ @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,6 +148,7 @@ public CapabilityProblemEntity id(String id) { /** * The ID of the entity. + * * @return id The ID of the entity. */ @JsonProperty(JSON_PROPERTY_ID) @@ -170,7 +171,7 @@ public void setId(String id) { /** * owner * - * @param owner + * @param owner * @return the current {@code CapabilityProblemEntity} instance, allowing for method chaining */ public CapabilityProblemEntity owner(CapabilityProblemEntityRecursive owner) { @@ -180,7 +181,8 @@ public CapabilityProblemEntity owner(CapabilityProblemEntityRecursive owner) { /** * Get owner - * @return owner + * + * @return owner */ @JsonProperty(JSON_PROPERTY_OWNER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,7 +193,7 @@ public CapabilityProblemEntityRecursive getOwner() { /** * owner * - * @param owner + * @param owner */ @JsonProperty(JSON_PROPERTY_OWNER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,9 +202,9 @@ public void setOwner(CapabilityProblemEntityRecursive owner) { } /** - * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. * - * @param type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * @param type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. * @return the current {@code CapabilityProblemEntity} instance, allowing for method chaining */ public CapabilityProblemEntity type(TypeEnum type) { @@ -211,8 +213,9 @@ public CapabilityProblemEntity type(TypeEnum type) { } /** - * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. - * @return type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * + * @return type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,9 +224,9 @@ public TypeEnum getType() { } /** - * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. * - * @param type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * @param type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -231,9 +234,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this CapabilityProblemEntity object is equal to o. - */ + /** Return true if this CapabilityProblemEntity object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -243,10 +244,10 @@ public boolean equals(Object o) { return false; } CapabilityProblemEntity capabilityProblemEntity = (CapabilityProblemEntity) o; - return Objects.equals(this.documents, capabilityProblemEntity.documents) && - Objects.equals(this.id, capabilityProblemEntity.id) && - Objects.equals(this.owner, capabilityProblemEntity.owner) && - Objects.equals(this.type, capabilityProblemEntity.type); + return Objects.equals(this.documents, capabilityProblemEntity.documents) + && Objects.equals(this.id, capabilityProblemEntity.id) + && Objects.equals(this.owner, capabilityProblemEntity.owner) + && Objects.equals(this.type, capabilityProblemEntity.type); } @Override @@ -267,8 +268,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -277,21 +277,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CapabilityProblemEntity given an JSON string * * @param jsonString JSON string * @return An instance of CapabilityProblemEntity - * @throws JsonProcessingException if the JSON string is invalid with respect to CapabilityProblemEntity + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CapabilityProblemEntity */ public static CapabilityProblemEntity fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapabilityProblemEntity.class); } -/** - * Convert an instance of CapabilityProblemEntity to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CapabilityProblemEntity to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblemEntityRecursive.java b/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblemEntityRecursive.java index 708860895..f553e8278 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblemEntityRecursive.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblemEntityRecursive.java @@ -2,40 +2,35 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * CapabilityProblemEntityRecursive - */ +/** CapabilityProblemEntityRecursive */ @JsonPropertyOrder({ CapabilityProblemEntityRecursive.JSON_PROPERTY_DOCUMENTS, CapabilityProblemEntityRecursive.JSON_PROPERTY_ID, CapabilityProblemEntityRecursive.JSON_PROPERTY_TYPE }) @JsonTypeName("CapabilityProblemEntity-recursive") - public class CapabilityProblemEntityRecursive { public static final String JSON_PROPERTY_DOCUMENTS = "documents"; private List documents; @@ -43,11 +38,8 @@ public class CapabilityProblemEntityRecursive { public static final String JSON_PROPERTY_ID = "id"; private String id; - /** - * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. - */ + /** Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. */ public enum TypeEnum { - BANKACCOUNT(String.valueOf("BankAccount")), DOCUMENT(String.valueOf("Document")), @@ -59,7 +51,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -80,7 +72,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -88,14 +84,16 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CapabilityProblemEntityRecursive() { - } + public CapabilityProblemEntityRecursive() {} /** - * List of document IDs to which the verification errors related to the capabilities correspond to. + * List of document IDs to which the verification errors related to the capabilities correspond + * to. * - * @param documents List of document IDs to which the verification errors related to the capabilities correspond to. - * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method chaining + * @param documents List of document IDs to which the verification errors related to the + * capabilities correspond to. + * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method + * chaining */ public CapabilityProblemEntityRecursive documents(List documents) { this.documents = documents; @@ -111,8 +109,11 @@ public CapabilityProblemEntityRecursive addDocumentsItem(String documentsItem) { } /** - * List of document IDs to which the verification errors related to the capabilities correspond to. - * @return documents List of document IDs to which the verification errors related to the capabilities correspond to. + * List of document IDs to which the verification errors related to the capabilities correspond + * to. + * + * @return documents List of document IDs to which the verification errors related to the + * capabilities correspond to. */ @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,9 +122,11 @@ public List getDocuments() { } /** - * List of document IDs to which the verification errors related to the capabilities correspond to. + * List of document IDs to which the verification errors related to the capabilities correspond + * to. * - * @param documents List of document IDs to which the verification errors related to the capabilities correspond to. + * @param documents List of document IDs to which the verification errors related to the + * capabilities correspond to. */ @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,7 +138,8 @@ public void setDocuments(List documents) { * The ID of the entity. * * @param id The ID of the entity. - * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method chaining + * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method + * chaining */ public CapabilityProblemEntityRecursive id(String id) { this.id = id; @@ -144,6 +148,7 @@ public CapabilityProblemEntityRecursive id(String id) { /** * The ID of the entity. + * * @return id The ID of the entity. */ @JsonProperty(JSON_PROPERTY_ID) @@ -164,10 +169,11 @@ public void setId(String id) { } /** - * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. * - * @param type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. - * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method chaining + * @param type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method + * chaining */ public CapabilityProblemEntityRecursive type(TypeEnum type) { this.type = type; @@ -175,8 +181,9 @@ public CapabilityProblemEntityRecursive type(TypeEnum type) { } /** - * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. - * @return type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * + * @return type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,9 +192,9 @@ public TypeEnum getType() { } /** - * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. * - * @param type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + * @param type Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,9 +202,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this CapabilityProblemEntity-recursive object is equal to o. - */ + /** Return true if this CapabilityProblemEntity-recursive object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -206,10 +211,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CapabilityProblemEntityRecursive capabilityProblemEntityRecursive = (CapabilityProblemEntityRecursive) o; - return Objects.equals(this.documents, capabilityProblemEntityRecursive.documents) && - Objects.equals(this.id, capabilityProblemEntityRecursive.id) && - Objects.equals(this.type, capabilityProblemEntityRecursive.type); + CapabilityProblemEntityRecursive capabilityProblemEntityRecursive = + (CapabilityProblemEntityRecursive) o; + return Objects.equals(this.documents, capabilityProblemEntityRecursive.documents) + && Objects.equals(this.id, capabilityProblemEntityRecursive.id) + && Objects.equals(this.type, capabilityProblemEntityRecursive.type); } @Override @@ -229,8 +235,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -239,21 +244,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CapabilityProblemEntityRecursive given an JSON string * * @param jsonString JSON string * @return An instance of CapabilityProblemEntityRecursive - * @throws JsonProcessingException if the JSON string is invalid with respect to CapabilityProblemEntityRecursive + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CapabilityProblemEntityRecursive */ - public static CapabilityProblemEntityRecursive fromJson(String jsonString) throws JsonProcessingException { + public static CapabilityProblemEntityRecursive fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapabilityProblemEntityRecursive.class); } -/** - * Convert an instance of CapabilityProblemEntityRecursive to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CapabilityProblemEntityRecursive to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/CapabilitySettings.java b/src/main/java/com/adyen/model/configurationwebhooks/CapabilitySettings.java index 8fa2b7b62..816edc10c 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/CapabilitySettings.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/CapabilitySettings.java @@ -2,36 +2,30 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.configurationwebhooks.Amount; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * CapabilitySettings - */ +/** CapabilitySettings */ @JsonPropertyOrder({ CapabilitySettings.JSON_PROPERTY_AMOUNT_PER_INDUSTRY, CapabilitySettings.JSON_PROPERTY_AUTHORIZED_CARD_USERS, @@ -39,7 +33,6 @@ CapabilitySettings.JSON_PROPERTY_INTERVAL, CapabilitySettings.JSON_PROPERTY_MAX_AMOUNT }) - public class CapabilitySettings { public static final String JSON_PROPERTY_AMOUNT_PER_INDUSTRY = "amountPerIndustry"; private Map amountPerIndustry; @@ -47,11 +40,8 @@ public class CapabilitySettings { public static final String JSON_PROPERTY_AUTHORIZED_CARD_USERS = "authorizedCardUsers"; private Boolean authorizedCardUsers; - /** - * Gets or Sets fundingSource - */ + /** Gets or Sets fundingSource */ public enum FundingSourceEnum { - CREDIT(String.valueOf("credit")), DEBIT(String.valueOf("debit")), @@ -63,7 +53,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -84,7 +74,11 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); + LOG.warning( + "FundingSourceEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -92,11 +86,8 @@ public static FundingSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_FUNDING_SOURCE = "fundingSource"; private List fundingSource; - /** - * - */ + /** */ public enum IntervalEnum { - DAILY(String.valueOf("daily")), MONTHLY(String.valueOf("monthly")), @@ -108,7 +99,7 @@ public enum IntervalEnum { private String value; IntervalEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -129,7 +120,11 @@ public static IntervalEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("IntervalEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(IntervalEnum.values())); + LOG.warning( + "IntervalEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(IntervalEnum.values())); return null; } } @@ -140,13 +135,10 @@ public static IntervalEnum fromValue(String value) { public static final String JSON_PROPERTY_MAX_AMOUNT = "maxAmount"; private Amount maxAmount; - public CapabilitySettings() { - } + public CapabilitySettings() {} /** - * - * - * @param amountPerIndustry + * @param amountPerIndustry * @return the current {@code CapabilitySettings} instance, allowing for method chaining */ public CapabilitySettings amountPerIndustry(Map amountPerIndustry) { @@ -163,8 +155,7 @@ public CapabilitySettings putAmountPerIndustryItem(String key, Amount amountPerI } /** - * - * @return amountPerIndustry + * @return amountPerIndustry */ @JsonProperty(JSON_PROPERTY_AMOUNT_PER_INDUSTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,9 +164,7 @@ public Map getAmountPerIndustry() { } /** - * - * - * @param amountPerIndustry + * @param amountPerIndustry */ @JsonProperty(JSON_PROPERTY_AMOUNT_PER_INDUSTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -184,9 +173,7 @@ public void setAmountPerIndustry(Map amountPerIndustry) { } /** - * - * - * @param authorizedCardUsers + * @param authorizedCardUsers * @return the current {@code CapabilitySettings} instance, allowing for method chaining */ public CapabilitySettings authorizedCardUsers(Boolean authorizedCardUsers) { @@ -195,8 +182,7 @@ public CapabilitySettings authorizedCardUsers(Boolean authorizedCardUsers) { } /** - * - * @return authorizedCardUsers + * @return authorizedCardUsers */ @JsonProperty(JSON_PROPERTY_AUTHORIZED_CARD_USERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -205,9 +191,7 @@ public Boolean getAuthorizedCardUsers() { } /** - * - * - * @param authorizedCardUsers + * @param authorizedCardUsers */ @JsonProperty(JSON_PROPERTY_AUTHORIZED_CARD_USERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -216,9 +200,7 @@ public void setAuthorizedCardUsers(Boolean authorizedCardUsers) { } /** - * - * - * @param fundingSource + * @param fundingSource * @return the current {@code CapabilitySettings} instance, allowing for method chaining */ public CapabilitySettings fundingSource(List fundingSource) { @@ -235,8 +217,7 @@ public CapabilitySettings addFundingSourceItem(FundingSourceEnum fundingSourceIt } /** - * - * @return fundingSource + * @return fundingSource */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -245,9 +226,7 @@ public List getFundingSource() { } /** - * - * - * @param fundingSource + * @param fundingSource */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -256,9 +235,7 @@ public void setFundingSource(List fundingSource) { } /** - * - * - * @param interval + * @param interval * @return the current {@code CapabilitySettings} instance, allowing for method chaining */ public CapabilitySettings interval(IntervalEnum interval) { @@ -267,8 +244,7 @@ public CapabilitySettings interval(IntervalEnum interval) { } /** - * - * @return interval + * @return interval */ @JsonProperty(JSON_PROPERTY_INTERVAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -277,9 +253,7 @@ public IntervalEnum getInterval() { } /** - * - * - * @param interval + * @param interval */ @JsonProperty(JSON_PROPERTY_INTERVAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -290,7 +264,7 @@ public void setInterval(IntervalEnum interval) { /** * maxAmount * - * @param maxAmount + * @param maxAmount * @return the current {@code CapabilitySettings} instance, allowing for method chaining */ public CapabilitySettings maxAmount(Amount maxAmount) { @@ -300,7 +274,8 @@ public CapabilitySettings maxAmount(Amount maxAmount) { /** * Get maxAmount - * @return maxAmount + * + * @return maxAmount */ @JsonProperty(JSON_PROPERTY_MAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -311,7 +286,7 @@ public Amount getMaxAmount() { /** * maxAmount * - * @param maxAmount + * @param maxAmount */ @JsonProperty(JSON_PROPERTY_MAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -319,9 +294,7 @@ public void setMaxAmount(Amount maxAmount) { this.maxAmount = maxAmount; } - /** - * Return true if this CapabilitySettings object is equal to o. - */ + /** Return true if this CapabilitySettings object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -331,11 +304,11 @@ public boolean equals(Object o) { return false; } CapabilitySettings capabilitySettings = (CapabilitySettings) o; - return Objects.equals(this.amountPerIndustry, capabilitySettings.amountPerIndustry) && - Objects.equals(this.authorizedCardUsers, capabilitySettings.authorizedCardUsers) && - Objects.equals(this.fundingSource, capabilitySettings.fundingSource) && - Objects.equals(this.interval, capabilitySettings.interval) && - Objects.equals(this.maxAmount, capabilitySettings.maxAmount); + return Objects.equals(this.amountPerIndustry, capabilitySettings.amountPerIndustry) + && Objects.equals(this.authorizedCardUsers, capabilitySettings.authorizedCardUsers) + && Objects.equals(this.fundingSource, capabilitySettings.fundingSource) + && Objects.equals(this.interval, capabilitySettings.interval) + && Objects.equals(this.maxAmount, capabilitySettings.maxAmount); } @Override @@ -348,7 +321,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CapabilitySettings {\n"); sb.append(" amountPerIndustry: ").append(toIndentedString(amountPerIndustry)).append("\n"); - sb.append(" authorizedCardUsers: ").append(toIndentedString(authorizedCardUsers)).append("\n"); + sb.append(" authorizedCardUsers: ") + .append(toIndentedString(authorizedCardUsers)) + .append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); sb.append(" interval: ").append(toIndentedString(interval)).append("\n"); sb.append(" maxAmount: ").append(toIndentedString(maxAmount)).append("\n"); @@ -357,8 +332,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -367,21 +341,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CapabilitySettings given an JSON string * * @param jsonString JSON string * @return An instance of CapabilitySettings - * @throws JsonProcessingException if the JSON string is invalid with respect to CapabilitySettings + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CapabilitySettings */ public static CapabilitySettings fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapabilitySettings.class); } -/** - * Convert an instance of CapabilitySettings to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CapabilitySettings to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Card.java b/src/main/java/com/adyen/model/configurationwebhooks/Card.java index 9110d2a24..e2086496b 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Card.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Card.java @@ -2,35 +2,26 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.configurationwebhooks.Authentication; -import com.adyen.model.configurationwebhooks.CardConfiguration; -import com.adyen.model.configurationwebhooks.DeliveryContact; -import com.adyen.model.configurationwebhooks.Expiry; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * Card - */ +/** Card */ @JsonPropertyOrder({ Card.JSON_PROPERTY_AUTHENTICATION, Card.JSON_PROPERTY_BIN, @@ -47,7 +38,6 @@ Card.JSON_PROPERTY_THREE_D_SECURE, Card.JSON_PROPERTY_USAGE }) - public class Card { public static final String JSON_PROPERTY_AUTHENTICATION = "authentication"; private Authentication authentication; @@ -76,11 +66,8 @@ public class Card { public static final String JSON_PROPERTY_EXPIRATION = "expiration"; private Expiry expiration; - /** - * The form factor of the card. Possible values: **virtual**, **physical**. - */ + /** The form factor of the card. Possible values: **virtual**, **physical**. */ public enum FormFactorEnum { - PHYSICAL(String.valueOf("physical")), UNKNOWN(String.valueOf("unknown")), @@ -92,7 +79,7 @@ public enum FormFactorEnum { private String value; FormFactorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -113,7 +100,11 @@ public static FormFactorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FormFactorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FormFactorEnum.values())); + LOG.warning( + "FormFactorEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FormFactorEnum.values())); return null; } } @@ -133,13 +124,12 @@ public static FormFactorEnum fromValue(String value) { public static final String JSON_PROPERTY_USAGE = "usage"; private String usage; - public Card() { - } + public Card() {} /** * authentication * - * @param authentication + * @param authentication * @return the current {@code Card} instance, allowing for method chaining */ public Card authentication(Authentication authentication) { @@ -149,7 +139,8 @@ public Card authentication(Authentication authentication) { /** * Get authentication - * @return authentication + * + * @return authentication */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,7 +151,7 @@ public Authentication getAuthentication() { /** * authentication * - * @param authentication + * @param authentication */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,6 +172,7 @@ public Card bin(String bin) { /** * The bank identification number (BIN) of the card number. + * * @return bin The bank identification number (BIN) of the card number. */ @JsonProperty(JSON_PROPERTY_BIN) @@ -213,6 +205,7 @@ public Card brand(String brand) { /** * The brand of the physical or the virtual card. Possible values: **visa**, **mc**. + * * @return brand The brand of the physical or the virtual card. Possible values: **visa**, **mc**. */ @JsonProperty(JSON_PROPERTY_BRAND) @@ -233,9 +226,13 @@ public void setBrand(String brand) { } /** - * The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. + * The brand variant of the physical or the virtual card. For example, **visadebit** or + * **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your + * integration. * - * @param brandVariant The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. + * @param brandVariant The brand variant of the physical or the virtual card. For example, + * **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values + * relevant for your integration. * @return the current {@code Card} instance, allowing for method chaining */ public Card brandVariant(String brandVariant) { @@ -244,8 +241,13 @@ public Card brandVariant(String brandVariant) { } /** - * The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. - * @return brandVariant The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. + * The brand variant of the physical or the virtual card. For example, **visadebit** or + * **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your + * integration. + * + * @return brandVariant The brand variant of the physical or the virtual card. For example, + * **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values + * relevant for your integration. */ @JsonProperty(JSON_PROPERTY_BRAND_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -254,9 +256,13 @@ public String getBrandVariant() { } /** - * The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. + * The brand variant of the physical or the virtual card. For example, **visadebit** or + * **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your + * integration. * - * @param brandVariant The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. + * @param brandVariant The brand variant of the physical or the virtual card. For example, + * **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values + * relevant for your integration. */ @JsonProperty(JSON_PROPERTY_BRAND_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -265,9 +271,9 @@ public void setBrandVariant(String brandVariant) { } /** - * The name of the cardholder. Maximum length: 26 characters. + * The name of the cardholder. Maximum length: 26 characters. * - * @param cardholderName The name of the cardholder. Maximum length: 26 characters. + * @param cardholderName The name of the cardholder. Maximum length: 26 characters. * @return the current {@code Card} instance, allowing for method chaining */ public Card cardholderName(String cardholderName) { @@ -276,8 +282,9 @@ public Card cardholderName(String cardholderName) { } /** - * The name of the cardholder. Maximum length: 26 characters. - * @return cardholderName The name of the cardholder. Maximum length: 26 characters. + * The name of the cardholder. Maximum length: 26 characters. + * + * @return cardholderName The name of the cardholder. Maximum length: 26 characters. */ @JsonProperty(JSON_PROPERTY_CARDHOLDER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -286,9 +293,9 @@ public String getCardholderName() { } /** - * The name of the cardholder. Maximum length: 26 characters. + * The name of the cardholder. Maximum length: 26 characters. * - * @param cardholderName The name of the cardholder. Maximum length: 26 characters. + * @param cardholderName The name of the cardholder. Maximum length: 26 characters. */ @JsonProperty(JSON_PROPERTY_CARDHOLDER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -299,7 +306,7 @@ public void setCardholderName(String cardholderName) { /** * configuration * - * @param configuration + * @param configuration * @return the current {@code Card} instance, allowing for method chaining */ public Card configuration(CardConfiguration configuration) { @@ -309,7 +316,8 @@ public Card configuration(CardConfiguration configuration) { /** * Get configuration - * @return configuration + * + * @return configuration */ @JsonProperty(JSON_PROPERTY_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -320,7 +328,7 @@ public CardConfiguration getConfiguration() { /** * configuration * - * @param configuration + * @param configuration */ @JsonProperty(JSON_PROPERTY_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -329,9 +337,11 @@ public void setConfiguration(CardConfiguration configuration) { } /** - * The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards. + * The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the + * `POST` response for single-use virtual cards. * - * @param cvc The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards. + * @param cvc The CVC2 value of the card. > The CVC2 is not sent by default. This is only + * returned in the `POST` response for single-use virtual cards. * @return the current {@code Card} instance, allowing for method chaining */ public Card cvc(String cvc) { @@ -340,8 +350,11 @@ public Card cvc(String cvc) { } /** - * The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards. - * @return cvc The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards. + * The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the + * `POST` response for single-use virtual cards. + * + * @return cvc The CVC2 value of the card. > The CVC2 is not sent by default. This is only + * returned in the `POST` response for single-use virtual cards. */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -350,9 +363,11 @@ public String getCvc() { } /** - * The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards. + * The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the + * `POST` response for single-use virtual cards. * - * @param cvc The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards. + * @param cvc The CVC2 value of the card. > The CVC2 is not sent by default. This is only + * returned in the `POST` response for single-use virtual cards. */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -363,7 +378,7 @@ public void setCvc(String cvc) { /** * deliveryContact * - * @param deliveryContact + * @param deliveryContact * @return the current {@code Card} instance, allowing for method chaining */ public Card deliveryContact(DeliveryContact deliveryContact) { @@ -373,7 +388,8 @@ public Card deliveryContact(DeliveryContact deliveryContact) { /** * Get deliveryContact - * @return deliveryContact + * + * @return deliveryContact */ @JsonProperty(JSON_PROPERTY_DELIVERY_CONTACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -384,7 +400,7 @@ public DeliveryContact getDeliveryContact() { /** * deliveryContact * - * @param deliveryContact + * @param deliveryContact */ @JsonProperty(JSON_PROPERTY_DELIVERY_CONTACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -395,7 +411,7 @@ public void setDeliveryContact(DeliveryContact deliveryContact) { /** * expiration * - * @param expiration + * @param expiration * @return the current {@code Card} instance, allowing for method chaining */ public Card expiration(Expiry expiration) { @@ -405,7 +421,8 @@ public Card expiration(Expiry expiration) { /** * Get expiration - * @return expiration + * + * @return expiration */ @JsonProperty(JSON_PROPERTY_EXPIRATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -416,7 +433,7 @@ public Expiry getExpiration() { /** * expiration * - * @param expiration + * @param expiration */ @JsonProperty(JSON_PROPERTY_EXPIRATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -437,6 +454,7 @@ public Card formFactor(FormFactorEnum formFactor) { /** * The form factor of the card. Possible values: **virtual**, **physical**. + * * @return formFactor The form factor of the card. Possible values: **virtual**, **physical**. */ @JsonProperty(JSON_PROPERTY_FORM_FACTOR) @@ -469,6 +487,7 @@ public Card lastFour(String lastFour) { /** * Last last four digits of the card number. + * * @return lastFour Last last four digits of the card number. */ @JsonProperty(JSON_PROPERTY_LAST_FOUR) @@ -489,9 +508,11 @@ public void setLastFour(String lastFour) { } /** - * The primary account number (PAN) of the card. > The PAN is masked by default and returned only for single-use virtual cards. + * The primary account number (PAN) of the card. > The PAN is masked by default and returned + * only for single-use virtual cards. * - * @param number The primary account number (PAN) of the card. > The PAN is masked by default and returned only for single-use virtual cards. + * @param number The primary account number (PAN) of the card. > The PAN is masked by default + * and returned only for single-use virtual cards. * @return the current {@code Card} instance, allowing for method chaining */ public Card number(String number) { @@ -500,8 +521,11 @@ public Card number(String number) { } /** - * The primary account number (PAN) of the card. > The PAN is masked by default and returned only for single-use virtual cards. - * @return number The primary account number (PAN) of the card. > The PAN is masked by default and returned only for single-use virtual cards. + * The primary account number (PAN) of the card. > The PAN is masked by default and returned + * only for single-use virtual cards. + * + * @return number The primary account number (PAN) of the card. > The PAN is masked by default + * and returned only for single-use virtual cards. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -510,9 +534,11 @@ public String getNumber() { } /** - * The primary account number (PAN) of the card. > The PAN is masked by default and returned only for single-use virtual cards. + * The primary account number (PAN) of the card. > The PAN is masked by default and returned + * only for single-use virtual cards. * - * @param number The primary account number (PAN) of the card. > The PAN is masked by default and returned only for single-use virtual cards. + * @param number The primary account number (PAN) of the card. > The PAN is masked by default + * and returned only for single-use virtual cards. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -521,9 +547,13 @@ public void setNumber(String number) { } /** - * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. + * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, + * **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your + * integration. * - * @param threeDSecure The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. + * @param threeDSecure The 3DS configuration of the physical or the virtual card. Possible values: + * **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the + * values relevant for your integration. * @return the current {@code Card} instance, allowing for method chaining */ public Card threeDSecure(String threeDSecure) { @@ -532,8 +562,13 @@ public Card threeDSecure(String threeDSecure) { } /** - * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. - * @return threeDSecure The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. + * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, + * **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your + * integration. + * + * @return threeDSecure The 3DS configuration of the physical or the virtual card. Possible + * values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to + * get the values relevant for your integration. */ @JsonProperty(JSON_PROPERTY_THREE_D_SECURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -542,9 +577,13 @@ public String getThreeDSecure() { } /** - * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. + * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, + * **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your + * integration. * - * @param threeDSecure The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. + * @param threeDSecure The 3DS configuration of the physical or the virtual card. Possible values: + * **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the + * values relevant for your integration. */ @JsonProperty(JSON_PROPERTY_THREE_D_SECURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -553,9 +592,12 @@ public void setThreeDSecure(String threeDSecure) { } /** - * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. + * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. + * > Reach out to your Adyen contact to determine the value relevant for your integration. * - * @param usage Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. + * @param usage Specifies how many times the card can be used. Possible values: **singleUse**, + * **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your + * integration. * @return the current {@code Card} instance, allowing for method chaining */ public Card usage(String usage) { @@ -564,8 +606,12 @@ public Card usage(String usage) { } /** - * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. - * @return usage Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. + * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. + * > Reach out to your Adyen contact to determine the value relevant for your integration. + * + * @return usage Specifies how many times the card can be used. Possible values: **singleUse**, + * **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your + * integration. */ @JsonProperty(JSON_PROPERTY_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -574,9 +620,12 @@ public String getUsage() { } /** - * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. + * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. + * > Reach out to your Adyen contact to determine the value relevant for your integration. * - * @param usage Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. + * @param usage Specifies how many times the card can be used. Possible values: **singleUse**, + * **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your + * integration. */ @JsonProperty(JSON_PROPERTY_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -584,9 +633,7 @@ public void setUsage(String usage) { this.usage = usage; } - /** - * Return true if this Card object is equal to o. - */ + /** Return true if this Card object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -596,25 +643,39 @@ public boolean equals(Object o) { return false; } Card card = (Card) o; - return Objects.equals(this.authentication, card.authentication) && - Objects.equals(this.bin, card.bin) && - Objects.equals(this.brand, card.brand) && - Objects.equals(this.brandVariant, card.brandVariant) && - Objects.equals(this.cardholderName, card.cardholderName) && - Objects.equals(this.configuration, card.configuration) && - Objects.equals(this.cvc, card.cvc) && - Objects.equals(this.deliveryContact, card.deliveryContact) && - Objects.equals(this.expiration, card.expiration) && - Objects.equals(this.formFactor, card.formFactor) && - Objects.equals(this.lastFour, card.lastFour) && - Objects.equals(this.number, card.number) && - Objects.equals(this.threeDSecure, card.threeDSecure) && - Objects.equals(this.usage, card.usage); + return Objects.equals(this.authentication, card.authentication) + && Objects.equals(this.bin, card.bin) + && Objects.equals(this.brand, card.brand) + && Objects.equals(this.brandVariant, card.brandVariant) + && Objects.equals(this.cardholderName, card.cardholderName) + && Objects.equals(this.configuration, card.configuration) + && Objects.equals(this.cvc, card.cvc) + && Objects.equals(this.deliveryContact, card.deliveryContact) + && Objects.equals(this.expiration, card.expiration) + && Objects.equals(this.formFactor, card.formFactor) + && Objects.equals(this.lastFour, card.lastFour) + && Objects.equals(this.number, card.number) + && Objects.equals(this.threeDSecure, card.threeDSecure) + && Objects.equals(this.usage, card.usage); } @Override public int hashCode() { - return Objects.hash(authentication, bin, brand, brandVariant, cardholderName, configuration, cvc, deliveryContact, expiration, formFactor, lastFour, number, threeDSecure, usage); + return Objects.hash( + authentication, + bin, + brand, + brandVariant, + cardholderName, + configuration, + cvc, + deliveryContact, + expiration, + formFactor, + lastFour, + number, + threeDSecure, + usage); } @Override @@ -640,8 +701,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -650,7 +710,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Card given an JSON string * * @param jsonString JSON string @@ -660,11 +720,12 @@ private String toIndentedString(Object o) { public static Card fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Card.class); } -/** - * Convert an instance of Card to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Card to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/CardConfiguration.java b/src/main/java/com/adyen/model/configurationwebhooks/CardConfiguration.java index f4b6f56d4..dd2eeaa80 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/CardConfiguration.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/CardConfiguration.java @@ -2,32 +2,22 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.configurationwebhooks.BulkAddress; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * CardConfiguration - */ +/** CardConfiguration */ @JsonPropertyOrder({ CardConfiguration.JSON_PROPERTY_ACTIVATION, CardConfiguration.JSON_PROPERTY_ACTIVATION_URL, @@ -44,7 +34,6 @@ CardConfiguration.JSON_PROPERTY_PIN_MAILER, CardConfiguration.JSON_PROPERTY_SHIPMENT_METHOD }) - public class CardConfiguration { public static final String JSON_PROPERTY_ACTIVATION = "activation"; private String activation; @@ -88,13 +77,15 @@ public class CardConfiguration { public static final String JSON_PROPERTY_SHIPMENT_METHOD = "shipmentMethod"; private String shipmentMethod; - public CardConfiguration() { - } + public CardConfiguration() {} /** - * Overrides the activation label design ID defined in the `configurationProfileId`. The activation label is attached to the card and contains the activation instructions. + * Overrides the activation label design ID defined in the `configurationProfileId`. The + * activation label is attached to the card and contains the activation instructions. * - * @param activation Overrides the activation label design ID defined in the `configurationProfileId`. The activation label is attached to the card and contains the activation instructions. + * @param activation Overrides the activation label design ID defined in the + * `configurationProfileId`. The activation label is attached to the card and + * contains the activation instructions. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration activation(String activation) { @@ -103,8 +94,12 @@ public CardConfiguration activation(String activation) { } /** - * Overrides the activation label design ID defined in the `configurationProfileId`. The activation label is attached to the card and contains the activation instructions. - * @return activation Overrides the activation label design ID defined in the `configurationProfileId`. The activation label is attached to the card and contains the activation instructions. + * Overrides the activation label design ID defined in the `configurationProfileId`. The + * activation label is attached to the card and contains the activation instructions. + * + * @return activation Overrides the activation label design ID defined in the + * `configurationProfileId`. The activation label is attached to the card and + * contains the activation instructions. */ @JsonProperty(JSON_PROPERTY_ACTIVATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,9 +108,12 @@ public String getActivation() { } /** - * Overrides the activation label design ID defined in the `configurationProfileId`. The activation label is attached to the card and contains the activation instructions. + * Overrides the activation label design ID defined in the `configurationProfileId`. The + * activation label is attached to the card and contains the activation instructions. * - * @param activation Overrides the activation label design ID defined in the `configurationProfileId`. The activation label is attached to the card and contains the activation instructions. + * @param activation Overrides the activation label design ID defined in the + * `configurationProfileId`. The activation label is attached to the card and + * contains the activation instructions. */ @JsonProperty(JSON_PROPERTY_ACTIVATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,9 +122,15 @@ public void setActivation(String activation) { } /** - * Your app's URL, if you want to activate cards through your app. For example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR code process. Maximum length: 255 characters. + * Your app's URL, if you want to activate cards through your app. For example, + * **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the + * carrier. Before you use this field, reach out to your Adyen contact to set up the QR code + * process. Maximum length: 255 characters. * - * @param activationUrl Your app's URL, if you want to activate cards through your app. For example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR code process. Maximum length: 255 characters. + * @param activationUrl Your app's URL, if you want to activate cards through your app. For + * example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included + * in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR + * code process. Maximum length: 255 characters. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration activationUrl(String activationUrl) { @@ -135,8 +139,15 @@ public CardConfiguration activationUrl(String activationUrl) { } /** - * Your app's URL, if you want to activate cards through your app. For example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR code process. Maximum length: 255 characters. - * @return activationUrl Your app's URL, if you want to activate cards through your app. For example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR code process. Maximum length: 255 characters. + * Your app's URL, if you want to activate cards through your app. For example, + * **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the + * carrier. Before you use this field, reach out to your Adyen contact to set up the QR code + * process. Maximum length: 255 characters. + * + * @return activationUrl Your app's URL, if you want to activate cards through your app. For + * example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included + * in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR + * code process. Maximum length: 255 characters. */ @JsonProperty(JSON_PROPERTY_ACTIVATION_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,9 +156,15 @@ public String getActivationUrl() { } /** - * Your app's URL, if you want to activate cards through your app. For example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR code process. Maximum length: 255 characters. + * Your app's URL, if you want to activate cards through your app. For example, + * **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the + * carrier. Before you use this field, reach out to your Adyen contact to set up the QR code + * process. Maximum length: 255 characters. * - * @param activationUrl Your app's URL, if you want to activate cards through your app. For example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR code process. Maximum length: 255 characters. + * @param activationUrl Your app's URL, if you want to activate cards through your app. For + * example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included + * in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR + * code process. Maximum length: 255 characters. */ @JsonProperty(JSON_PROPERTY_ACTIVATION_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,7 +175,7 @@ public void setActivationUrl(String activationUrl) { /** * bulkAddress * - * @param bulkAddress + * @param bulkAddress * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration bulkAddress(BulkAddress bulkAddress) { @@ -168,7 +185,8 @@ public CardConfiguration bulkAddress(BulkAddress bulkAddress) { /** * Get bulkAddress - * @return bulkAddress + * + * @return bulkAddress */ @JsonProperty(JSON_PROPERTY_BULK_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,7 +197,7 @@ public BulkAddress getBulkAddress() { /** * bulkAddress * - * @param bulkAddress + * @param bulkAddress */ @JsonProperty(JSON_PROPERTY_BULK_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,7 +208,8 @@ public void setBulkAddress(BulkAddress bulkAddress) { /** * The ID of the card image. This is the image that will be printed on the full front of the card. * - * @param cardImageId The ID of the card image. This is the image that will be printed on the full front of the card. + * @param cardImageId The ID of the card image. This is the image that will be printed on the full + * front of the card. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration cardImageId(String cardImageId) { @@ -200,7 +219,9 @@ public CardConfiguration cardImageId(String cardImageId) { /** * The ID of the card image. This is the image that will be printed on the full front of the card. - * @return cardImageId The ID of the card image. This is the image that will be printed on the full front of the card. + * + * @return cardImageId The ID of the card image. This is the image that will be printed on the + * full front of the card. */ @JsonProperty(JSON_PROPERTY_CARD_IMAGE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,7 +232,8 @@ public String getCardImageId() { /** * The ID of the card image. This is the image that will be printed on the full front of the card. * - * @param cardImageId The ID of the card image. This is the image that will be printed on the full front of the card. + * @param cardImageId The ID of the card image. This is the image that will be printed on the full + * front of the card. */ @JsonProperty(JSON_PROPERTY_CARD_IMAGE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -220,9 +242,12 @@ public void setCardImageId(String cardImageId) { } /** - * Overrides the carrier design ID defined in the `configurationProfileId`. The carrier is the letter or packaging to which the card is attached. + * Overrides the carrier design ID defined in the `configurationProfileId`. The carrier + * is the letter or packaging to which the card is attached. * - * @param carrier Overrides the carrier design ID defined in the `configurationProfileId`. The carrier is the letter or packaging to which the card is attached. + * @param carrier Overrides the carrier design ID defined in the + * `configurationProfileId`. The carrier is the letter or packaging to which the + * card is attached. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration carrier(String carrier) { @@ -231,8 +256,12 @@ public CardConfiguration carrier(String carrier) { } /** - * Overrides the carrier design ID defined in the `configurationProfileId`. The carrier is the letter or packaging to which the card is attached. - * @return carrier Overrides the carrier design ID defined in the `configurationProfileId`. The carrier is the letter or packaging to which the card is attached. + * Overrides the carrier design ID defined in the `configurationProfileId`. The carrier + * is the letter or packaging to which the card is attached. + * + * @return carrier Overrides the carrier design ID defined in the + * `configurationProfileId`. The carrier is the letter or packaging to which the + * card is attached. */ @JsonProperty(JSON_PROPERTY_CARRIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -241,9 +270,12 @@ public String getCarrier() { } /** - * Overrides the carrier design ID defined in the `configurationProfileId`. The carrier is the letter or packaging to which the card is attached. + * Overrides the carrier design ID defined in the `configurationProfileId`. The carrier + * is the letter or packaging to which the card is attached. * - * @param carrier Overrides the carrier design ID defined in the `configurationProfileId`. The carrier is the letter or packaging to which the card is attached. + * @param carrier Overrides the carrier design ID defined in the + * `configurationProfileId`. The carrier is the letter or packaging to which the + * card is attached. */ @JsonProperty(JSON_PROPERTY_CARRIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,9 +284,11 @@ public void setCarrier(String carrier) { } /** - * The ID of the carrier image. This is the image that will printed on the letter to which the card is attached. + * The ID of the carrier image. This is the image that will printed on the letter to which the + * card is attached. * - * @param carrierImageId The ID of the carrier image. This is the image that will printed on the letter to which the card is attached. + * @param carrierImageId The ID of the carrier image. This is the image that will printed on the + * letter to which the card is attached. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration carrierImageId(String carrierImageId) { @@ -263,8 +297,11 @@ public CardConfiguration carrierImageId(String carrierImageId) { } /** - * The ID of the carrier image. This is the image that will printed on the letter to which the card is attached. - * @return carrierImageId The ID of the carrier image. This is the image that will printed on the letter to which the card is attached. + * The ID of the carrier image. This is the image that will printed on the letter to which the + * card is attached. + * + * @return carrierImageId The ID of the carrier image. This is the image that will printed on the + * letter to which the card is attached. */ @JsonProperty(JSON_PROPERTY_CARRIER_IMAGE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -273,9 +310,11 @@ public String getCarrierImageId() { } /** - * The ID of the carrier image. This is the image that will printed on the letter to which the card is attached. + * The ID of the carrier image. This is the image that will printed on the letter to which the + * card is attached. * - * @param carrierImageId The ID of the carrier image. This is the image that will printed on the letter to which the card is attached. + * @param carrierImageId The ID of the carrier image. This is the image that will printed on the + * letter to which the card is attached. */ @JsonProperty(JSON_PROPERTY_CARRIER_IMAGE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,9 +323,18 @@ public void setCarrierImageId(String carrierImageId) { } /** - * The ID of the card configuration profile that contains the settings of the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. All the settings in the profile are applied to the card, unless you provide other fields to override them. For example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile. + * The ID of the card configuration profile that contains the settings of the card. For example, + * the envelope and PIN mailer designs or the logistics company handling the shipment. All the + * settings in the profile are applied to the card, unless you provide other fields to override + * them. For example, send the `shipmentMethod` to override the logistics company + * defined in the card configuration profile. * - * @param configurationProfileId The ID of the card configuration profile that contains the settings of the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. All the settings in the profile are applied to the card, unless you provide other fields to override them. For example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile. + * @param configurationProfileId The ID of the card configuration profile that contains the + * settings of the card. For example, the envelope and PIN mailer designs or the logistics + * company handling the shipment. All the settings in the profile are applied to the card, + * unless you provide other fields to override them. For example, send the + * `shipmentMethod` to override the logistics company defined in the card + * configuration profile. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration configurationProfileId(String configurationProfileId) { @@ -295,8 +343,18 @@ public CardConfiguration configurationProfileId(String configurationProfileId) { } /** - * The ID of the card configuration profile that contains the settings of the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. All the settings in the profile are applied to the card, unless you provide other fields to override them. For example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile. - * @return configurationProfileId The ID of the card configuration profile that contains the settings of the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. All the settings in the profile are applied to the card, unless you provide other fields to override them. For example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile. + * The ID of the card configuration profile that contains the settings of the card. For example, + * the envelope and PIN mailer designs or the logistics company handling the shipment. All the + * settings in the profile are applied to the card, unless you provide other fields to override + * them. For example, send the `shipmentMethod` to override the logistics company + * defined in the card configuration profile. + * + * @return configurationProfileId The ID of the card configuration profile that contains the + * settings of the card. For example, the envelope and PIN mailer designs or the logistics + * company handling the shipment. All the settings in the profile are applied to the card, + * unless you provide other fields to override them. For example, send the + * `shipmentMethod` to override the logistics company defined in the card + * configuration profile. */ @JsonProperty(JSON_PROPERTY_CONFIGURATION_PROFILE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -305,9 +363,18 @@ public String getConfigurationProfileId() { } /** - * The ID of the card configuration profile that contains the settings of the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. All the settings in the profile are applied to the card, unless you provide other fields to override them. For example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile. + * The ID of the card configuration profile that contains the settings of the card. For example, + * the envelope and PIN mailer designs or the logistics company handling the shipment. All the + * settings in the profile are applied to the card, unless you provide other fields to override + * them. For example, send the `shipmentMethod` to override the logistics company + * defined in the card configuration profile. * - * @param configurationProfileId The ID of the card configuration profile that contains the settings of the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. All the settings in the profile are applied to the card, unless you provide other fields to override them. For example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile. + * @param configurationProfileId The ID of the card configuration profile that contains the + * settings of the card. For example, the envelope and PIN mailer designs or the logistics + * company handling the shipment. All the settings in the profile are applied to the card, + * unless you provide other fields to override them. For example, send the + * `shipmentMethod` to override the logistics company defined in the card + * configuration profile. */ @JsonProperty(JSON_PROPERTY_CONFIGURATION_PROFILE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -316,9 +383,11 @@ public void setConfigurationProfileId(String configurationProfileId) { } /** - * The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. + * The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. + * For example, **EUR**. * - * @param currency The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. + * @param currency The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency + * code of the card. For example, **EUR**. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration currency(String currency) { @@ -327,8 +396,11 @@ public CardConfiguration currency(String currency) { } /** - * The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. - * @return currency The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. + * The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. + * For example, **EUR**. + * + * @return currency The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency + * code of the card. For example, **EUR**. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -337,9 +409,11 @@ public String getCurrency() { } /** - * The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. + * The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. + * For example, **EUR**. * - * @param currency The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. + * @param currency The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency + * code of the card. For example, **EUR**. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -348,9 +422,10 @@ public void setCurrency(String currency) { } /** - * Overrides the envelope design ID defined in the `configurationProfileId`. + * Overrides the envelope design ID defined in the `configurationProfileId`. * - * @param envelope Overrides the envelope design ID defined in the `configurationProfileId`. + * @param envelope Overrides the envelope design ID defined in the + * `configurationProfileId`. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration envelope(String envelope) { @@ -359,8 +434,10 @@ public CardConfiguration envelope(String envelope) { } /** - * Overrides the envelope design ID defined in the `configurationProfileId`. - * @return envelope Overrides the envelope design ID defined in the `configurationProfileId`. + * Overrides the envelope design ID defined in the `configurationProfileId`. + * + * @return envelope Overrides the envelope design ID defined in the + * `configurationProfileId`. */ @JsonProperty(JSON_PROPERTY_ENVELOPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -369,9 +446,10 @@ public String getEnvelope() { } /** - * Overrides the envelope design ID defined in the `configurationProfileId`. + * Overrides the envelope design ID defined in the `configurationProfileId`. * - * @param envelope Overrides the envelope design ID defined in the `configurationProfileId`. + * @param envelope Overrides the envelope design ID defined in the + * `configurationProfileId`. */ @JsonProperty(JSON_PROPERTY_ENVELOPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -380,9 +458,12 @@ public void setEnvelope(String envelope) { } /** - * Overrides the insert design ID defined in the `configurationProfileId`. An insert is any additional material, such as marketing materials, that are shipped together with the card. + * Overrides the insert design ID defined in the `configurationProfileId`. An insert is + * any additional material, such as marketing materials, that are shipped together with the card. * - * @param insert Overrides the insert design ID defined in the `configurationProfileId`. An insert is any additional material, such as marketing materials, that are shipped together with the card. + * @param insert Overrides the insert design ID defined in the `configurationProfileId`. + * An insert is any additional material, such as marketing materials, that are shipped + * together with the card. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration insert(String insert) { @@ -391,8 +472,12 @@ public CardConfiguration insert(String insert) { } /** - * Overrides the insert design ID defined in the `configurationProfileId`. An insert is any additional material, such as marketing materials, that are shipped together with the card. - * @return insert Overrides the insert design ID defined in the `configurationProfileId`. An insert is any additional material, such as marketing materials, that are shipped together with the card. + * Overrides the insert design ID defined in the `configurationProfileId`. An insert is + * any additional material, such as marketing materials, that are shipped together with the card. + * + * @return insert Overrides the insert design ID defined in the + * `configurationProfileId`. An insert is any additional material, such as marketing + * materials, that are shipped together with the card. */ @JsonProperty(JSON_PROPERTY_INSERT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -401,9 +486,12 @@ public String getInsert() { } /** - * Overrides the insert design ID defined in the `configurationProfileId`. An insert is any additional material, such as marketing materials, that are shipped together with the card. + * Overrides the insert design ID defined in the `configurationProfileId`. An insert is + * any additional material, such as marketing materials, that are shipped together with the card. * - * @param insert Overrides the insert design ID defined in the `configurationProfileId`. An insert is any additional material, such as marketing materials, that are shipped together with the card. + * @param insert Overrides the insert design ID defined in the `configurationProfileId`. + * An insert is any additional material, such as marketing materials, that are shipped + * together with the card. */ @JsonProperty(JSON_PROPERTY_INSERT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -412,9 +500,12 @@ public void setInsert(String insert) { } /** - * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the card. For example, **en**. + * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code + * of the card. For example, **en**. * - * @param language The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the card. For example, **en**. + * @param language The two-letter + * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the + * card. For example, **en**. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration language(String language) { @@ -423,8 +514,12 @@ public CardConfiguration language(String language) { } /** - * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the card. For example, **en**. - * @return language The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the card. For example, **en**. + * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code + * of the card. For example, **en**. + * + * @return language The two-letter + * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the + * card. For example, **en**. */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -433,9 +528,12 @@ public String getLanguage() { } /** - * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the card. For example, **en**. + * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code + * of the card. For example, **en**. * - * @param language The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the card. For example, **en**. + * @param language The two-letter + * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the + * card. For example, **en**. */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -444,9 +542,11 @@ public void setLanguage(String language) { } /** - * The ID of the logo image. This is the image that will be printed on the partial front of the card, such as a logo on the upper right corner. + * The ID of the logo image. This is the image that will be printed on the partial front of the + * card, such as a logo on the upper right corner. * - * @param logoImageId The ID of the logo image. This is the image that will be printed on the partial front of the card, such as a logo on the upper right corner. + * @param logoImageId The ID of the logo image. This is the image that will be printed on the + * partial front of the card, such as a logo on the upper right corner. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration logoImageId(String logoImageId) { @@ -455,8 +555,11 @@ public CardConfiguration logoImageId(String logoImageId) { } /** - * The ID of the logo image. This is the image that will be printed on the partial front of the card, such as a logo on the upper right corner. - * @return logoImageId The ID of the logo image. This is the image that will be printed on the partial front of the card, such as a logo on the upper right corner. + * The ID of the logo image. This is the image that will be printed on the partial front of the + * card, such as a logo on the upper right corner. + * + * @return logoImageId The ID of the logo image. This is the image that will be printed on the + * partial front of the card, such as a logo on the upper right corner. */ @JsonProperty(JSON_PROPERTY_LOGO_IMAGE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -465,9 +568,11 @@ public String getLogoImageId() { } /** - * The ID of the logo image. This is the image that will be printed on the partial front of the card, such as a logo on the upper right corner. + * The ID of the logo image. This is the image that will be printed on the partial front of the + * card, such as a logo on the upper right corner. * - * @param logoImageId The ID of the logo image. This is the image that will be printed on the partial front of the card, such as a logo on the upper right corner. + * @param logoImageId The ID of the logo image. This is the image that will be printed on the + * partial front of the card, such as a logo on the upper right corner. */ @JsonProperty(JSON_PROPERTY_LOGO_IMAGE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -476,9 +581,12 @@ public void setLogoImageId(String logoImageId) { } /** - * Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN mailer is the letter on which the PIN is printed. + * Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN + * mailer is the letter on which the PIN is printed. * - * @param pinMailer Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN mailer is the letter on which the PIN is printed. + * @param pinMailer Overrides the PIN mailer design ID defined in the + * `configurationProfileId`. The PIN mailer is the letter on which the PIN is + * printed. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration pinMailer(String pinMailer) { @@ -487,8 +595,12 @@ public CardConfiguration pinMailer(String pinMailer) { } /** - * Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN mailer is the letter on which the PIN is printed. - * @return pinMailer Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN mailer is the letter on which the PIN is printed. + * Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN + * mailer is the letter on which the PIN is printed. + * + * @return pinMailer Overrides the PIN mailer design ID defined in the + * `configurationProfileId`. The PIN mailer is the letter on which the PIN is + * printed. */ @JsonProperty(JSON_PROPERTY_PIN_MAILER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -497,9 +609,12 @@ public String getPinMailer() { } /** - * Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN mailer is the letter on which the PIN is printed. + * Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN + * mailer is the letter on which the PIN is printed. * - * @param pinMailer Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN mailer is the letter on which the PIN is printed. + * @param pinMailer Overrides the PIN mailer design ID defined in the + * `configurationProfileId`. The PIN mailer is the letter on which the PIN is + * printed. */ @JsonProperty(JSON_PROPERTY_PIN_MAILER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -510,7 +625,8 @@ public void setPinMailer(String pinMailer) { /** * Overrides the logistics company defined in the `configurationProfileId`. * - * @param shipmentMethod Overrides the logistics company defined in the `configurationProfileId`. + * @param shipmentMethod Overrides the logistics company defined in the + * `configurationProfileId`. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration shipmentMethod(String shipmentMethod) { @@ -520,7 +636,9 @@ public CardConfiguration shipmentMethod(String shipmentMethod) { /** * Overrides the logistics company defined in the `configurationProfileId`. - * @return shipmentMethod Overrides the logistics company defined in the `configurationProfileId`. + * + * @return shipmentMethod Overrides the logistics company defined in the + * `configurationProfileId`. */ @JsonProperty(JSON_PROPERTY_SHIPMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -531,7 +649,8 @@ public String getShipmentMethod() { /** * Overrides the logistics company defined in the `configurationProfileId`. * - * @param shipmentMethod Overrides the logistics company defined in the `configurationProfileId`. + * @param shipmentMethod Overrides the logistics company defined in the + * `configurationProfileId`. */ @JsonProperty(JSON_PROPERTY_SHIPMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -539,9 +658,7 @@ public void setShipmentMethod(String shipmentMethod) { this.shipmentMethod = shipmentMethod; } - /** - * Return true if this CardConfiguration object is equal to o. - */ + /** Return true if this CardConfiguration object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -551,25 +668,39 @@ public boolean equals(Object o) { return false; } CardConfiguration cardConfiguration = (CardConfiguration) o; - return Objects.equals(this.activation, cardConfiguration.activation) && - Objects.equals(this.activationUrl, cardConfiguration.activationUrl) && - Objects.equals(this.bulkAddress, cardConfiguration.bulkAddress) && - Objects.equals(this.cardImageId, cardConfiguration.cardImageId) && - Objects.equals(this.carrier, cardConfiguration.carrier) && - Objects.equals(this.carrierImageId, cardConfiguration.carrierImageId) && - Objects.equals(this.configurationProfileId, cardConfiguration.configurationProfileId) && - Objects.equals(this.currency, cardConfiguration.currency) && - Objects.equals(this.envelope, cardConfiguration.envelope) && - Objects.equals(this.insert, cardConfiguration.insert) && - Objects.equals(this.language, cardConfiguration.language) && - Objects.equals(this.logoImageId, cardConfiguration.logoImageId) && - Objects.equals(this.pinMailer, cardConfiguration.pinMailer) && - Objects.equals(this.shipmentMethod, cardConfiguration.shipmentMethod); + return Objects.equals(this.activation, cardConfiguration.activation) + && Objects.equals(this.activationUrl, cardConfiguration.activationUrl) + && Objects.equals(this.bulkAddress, cardConfiguration.bulkAddress) + && Objects.equals(this.cardImageId, cardConfiguration.cardImageId) + && Objects.equals(this.carrier, cardConfiguration.carrier) + && Objects.equals(this.carrierImageId, cardConfiguration.carrierImageId) + && Objects.equals(this.configurationProfileId, cardConfiguration.configurationProfileId) + && Objects.equals(this.currency, cardConfiguration.currency) + && Objects.equals(this.envelope, cardConfiguration.envelope) + && Objects.equals(this.insert, cardConfiguration.insert) + && Objects.equals(this.language, cardConfiguration.language) + && Objects.equals(this.logoImageId, cardConfiguration.logoImageId) + && Objects.equals(this.pinMailer, cardConfiguration.pinMailer) + && Objects.equals(this.shipmentMethod, cardConfiguration.shipmentMethod); } @Override public int hashCode() { - return Objects.hash(activation, activationUrl, bulkAddress, cardImageId, carrier, carrierImageId, configurationProfileId, currency, envelope, insert, language, logoImageId, pinMailer, shipmentMethod); + return Objects.hash( + activation, + activationUrl, + bulkAddress, + cardImageId, + carrier, + carrierImageId, + configurationProfileId, + currency, + envelope, + insert, + language, + logoImageId, + pinMailer, + shipmentMethod); } @Override @@ -582,7 +713,9 @@ public String toString() { sb.append(" cardImageId: ").append(toIndentedString(cardImageId)).append("\n"); sb.append(" carrier: ").append(toIndentedString(carrier)).append("\n"); sb.append(" carrierImageId: ").append(toIndentedString(carrierImageId)).append("\n"); - sb.append(" configurationProfileId: ").append(toIndentedString(configurationProfileId)).append("\n"); + sb.append(" configurationProfileId: ") + .append(toIndentedString(configurationProfileId)) + .append("\n"); sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); sb.append(" envelope: ").append(toIndentedString(envelope)).append("\n"); sb.append(" insert: ").append(toIndentedString(insert)).append("\n"); @@ -595,8 +728,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -605,7 +737,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CardConfiguration given an JSON string * * @param jsonString JSON string @@ -615,11 +747,12 @@ private String toIndentedString(Object o) { public static CardConfiguration fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardConfiguration.class); } -/** - * Convert an instance of CardConfiguration to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CardConfiguration to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/CardOrderItem.java b/src/main/java/com/adyen/model/configurationwebhooks/CardOrderItem.java index f21bcf821..6b607b4d7 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/CardOrderItem.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/CardOrderItem.java @@ -2,33 +2,23 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.configurationwebhooks.CardOrderItemDeliveryStatus; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.time.OffsetDateTime; +import java.util.*; - -/** - * CardOrderItem - */ +/** CardOrderItem */ @JsonPropertyOrder({ CardOrderItem.JSON_PROPERTY_BALANCE_PLATFORM, CardOrderItem.JSON_PROPERTY_CARD, @@ -39,7 +29,6 @@ CardOrderItem.JSON_PROPERTY_PIN, CardOrderItem.JSON_PROPERTY_SHIPPING_METHOD }) - public class CardOrderItem { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; @@ -65,8 +54,7 @@ public class CardOrderItem { public static final String JSON_PROPERTY_SHIPPING_METHOD = "shippingMethod"; private String shippingMethod; - public CardOrderItem() { - } + public CardOrderItem() {} /** * The unique identifier of the balance platform. @@ -81,6 +69,7 @@ public CardOrderItem balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. + * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -103,7 +92,7 @@ public void setBalancePlatform(String balancePlatform) { /** * card * - * @param card + * @param card * @return the current {@code CardOrderItem} instance, allowing for method chaining */ public CardOrderItem card(CardOrderItemDeliveryStatus card) { @@ -113,7 +102,8 @@ public CardOrderItem card(CardOrderItemDeliveryStatus card) { /** * Get card - * @return card + * + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,7 +114,7 @@ public CardOrderItemDeliveryStatus getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,6 +135,7 @@ public CardOrderItem cardOrderItemId(String cardOrderItemId) { /** * The unique identifier of the card order item. + * * @return cardOrderItemId The unique identifier of the card order item. */ @JsonProperty(JSON_PROPERTY_CARD_ORDER_ITEM_ID) @@ -165,9 +156,11 @@ public void setCardOrderItemId(String cardOrderItemId) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code CardOrderItem} instance, allowing for method chaining */ public CardOrderItem creationDate(OffsetDateTime creationDate) { @@ -176,8 +169,11 @@ public CardOrderItem creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. + * + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,9 +182,11 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -209,6 +207,7 @@ public CardOrderItem id(String id) { /** * The ID of the resource. + * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -231,7 +230,8 @@ public void setId(String id) { /** * The unique identifier of the payment instrument related to the card order item. * - * @param paymentInstrumentId The unique identifier of the payment instrument related to the card order item. + * @param paymentInstrumentId The unique identifier of the payment instrument related to the card + * order item. * @return the current {@code CardOrderItem} instance, allowing for method chaining */ public CardOrderItem paymentInstrumentId(String paymentInstrumentId) { @@ -241,7 +241,9 @@ public CardOrderItem paymentInstrumentId(String paymentInstrumentId) { /** * The unique identifier of the payment instrument related to the card order item. - * @return paymentInstrumentId The unique identifier of the payment instrument related to the card order item. + * + * @return paymentInstrumentId The unique identifier of the payment instrument related to the card + * order item. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,7 +254,8 @@ public String getPaymentInstrumentId() { /** * The unique identifier of the payment instrument related to the card order item. * - * @param paymentInstrumentId The unique identifier of the payment instrument related to the card order item. + * @param paymentInstrumentId The unique identifier of the payment instrument related to the card + * order item. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -263,7 +266,7 @@ public void setPaymentInstrumentId(String paymentInstrumentId) { /** * pin * - * @param pin + * @param pin * @return the current {@code CardOrderItem} instance, allowing for method chaining */ public CardOrderItem pin(CardOrderItemDeliveryStatus pin) { @@ -273,7 +276,8 @@ public CardOrderItem pin(CardOrderItemDeliveryStatus pin) { /** * Get pin - * @return pin + * + * @return pin */ @JsonProperty(JSON_PROPERTY_PIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,7 +288,7 @@ public CardOrderItemDeliveryStatus getPin() { /** * pin * - * @param pin + * @param pin */ @JsonProperty(JSON_PROPERTY_PIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -305,6 +309,7 @@ public CardOrderItem shippingMethod(String shippingMethod) { /** * The shipping method used to deliver the card or the PIN. + * * @return shippingMethod The shipping method used to deliver the card or the PIN. */ @JsonProperty(JSON_PROPERTY_SHIPPING_METHOD) @@ -324,9 +329,7 @@ public void setShippingMethod(String shippingMethod) { this.shippingMethod = shippingMethod; } - /** - * Return true if this CardOrderItem object is equal to o. - */ + /** Return true if this CardOrderItem object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -336,19 +339,27 @@ public boolean equals(Object o) { return false; } CardOrderItem cardOrderItem = (CardOrderItem) o; - return Objects.equals(this.balancePlatform, cardOrderItem.balancePlatform) && - Objects.equals(this.card, cardOrderItem.card) && - Objects.equals(this.cardOrderItemId, cardOrderItem.cardOrderItemId) && - Objects.equals(this.creationDate, cardOrderItem.creationDate) && - Objects.equals(this.id, cardOrderItem.id) && - Objects.equals(this.paymentInstrumentId, cardOrderItem.paymentInstrumentId) && - Objects.equals(this.pin, cardOrderItem.pin) && - Objects.equals(this.shippingMethod, cardOrderItem.shippingMethod); + return Objects.equals(this.balancePlatform, cardOrderItem.balancePlatform) + && Objects.equals(this.card, cardOrderItem.card) + && Objects.equals(this.cardOrderItemId, cardOrderItem.cardOrderItemId) + && Objects.equals(this.creationDate, cardOrderItem.creationDate) + && Objects.equals(this.id, cardOrderItem.id) + && Objects.equals(this.paymentInstrumentId, cardOrderItem.paymentInstrumentId) + && Objects.equals(this.pin, cardOrderItem.pin) + && Objects.equals(this.shippingMethod, cardOrderItem.shippingMethod); } @Override public int hashCode() { - return Objects.hash(balancePlatform, card, cardOrderItemId, creationDate, id, paymentInstrumentId, pin, shippingMethod); + return Objects.hash( + balancePlatform, + card, + cardOrderItemId, + creationDate, + id, + paymentInstrumentId, + pin, + shippingMethod); } @Override @@ -360,7 +371,9 @@ public String toString() { sb.append(" cardOrderItemId: ").append(toIndentedString(cardOrderItemId)).append("\n"); sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" paymentInstrumentId: ").append(toIndentedString(paymentInstrumentId)).append("\n"); + sb.append(" paymentInstrumentId: ") + .append(toIndentedString(paymentInstrumentId)) + .append("\n"); sb.append(" pin: ").append(toIndentedString(pin)).append("\n"); sb.append(" shippingMethod: ").append(toIndentedString(shippingMethod)).append("\n"); sb.append("}"); @@ -368,8 +381,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -378,7 +390,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CardOrderItem given an JSON string * * @param jsonString JSON string @@ -388,11 +400,12 @@ private String toIndentedString(Object o) { public static CardOrderItem fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardOrderItem.class); } -/** - * Convert an instance of CardOrderItem to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CardOrderItem to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/CardOrderItemDeliveryStatus.java b/src/main/java/com/adyen/model/configurationwebhooks/CardOrderItemDeliveryStatus.java index a2baee7a1..23c35058f 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/CardOrderItemDeliveryStatus.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/CardOrderItemDeliveryStatus.java @@ -2,46 +2,37 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * CardOrderItemDeliveryStatus - */ +/** CardOrderItemDeliveryStatus */ @JsonPropertyOrder({ CardOrderItemDeliveryStatus.JSON_PROPERTY_ERROR_MESSAGE, CardOrderItemDeliveryStatus.JSON_PROPERTY_STATUS, CardOrderItemDeliveryStatus.JSON_PROPERTY_TRACKING_NUMBER }) - public class CardOrderItemDeliveryStatus { public static final String JSON_PROPERTY_ERROR_MESSAGE = "errorMessage"; private String errorMessage; - /** - * The status of the PIN delivery. - */ + /** The status of the PIN delivery. */ public enum StatusEnum { - CREATED(String.valueOf("created")), DELIVERED(String.valueOf("delivered")), @@ -63,7 +54,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -84,7 +75,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -95,8 +90,7 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_TRACKING_NUMBER = "trackingNumber"; private String trackingNumber; - public CardOrderItemDeliveryStatus() { - } + public CardOrderItemDeliveryStatus() {} /** * An error message. @@ -111,6 +105,7 @@ public CardOrderItemDeliveryStatus errorMessage(String errorMessage) { /** * An error message. + * * @return errorMessage An error message. */ @JsonProperty(JSON_PROPERTY_ERROR_MESSAGE) @@ -143,6 +138,7 @@ public CardOrderItemDeliveryStatus status(StatusEnum status) { /** * The status of the PIN delivery. + * * @return status The status of the PIN delivery. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -175,6 +171,7 @@ public CardOrderItemDeliveryStatus trackingNumber(String trackingNumber) { /** * The tracking number of the PIN delivery. + * * @return trackingNumber The tracking number of the PIN delivery. */ @JsonProperty(JSON_PROPERTY_TRACKING_NUMBER) @@ -194,9 +191,7 @@ public void setTrackingNumber(String trackingNumber) { this.trackingNumber = trackingNumber; } - /** - * Return true if this CardOrderItemDeliveryStatus object is equal to o. - */ + /** Return true if this CardOrderItemDeliveryStatus object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -206,9 +201,9 @@ public boolean equals(Object o) { return false; } CardOrderItemDeliveryStatus cardOrderItemDeliveryStatus = (CardOrderItemDeliveryStatus) o; - return Objects.equals(this.errorMessage, cardOrderItemDeliveryStatus.errorMessage) && - Objects.equals(this.status, cardOrderItemDeliveryStatus.status) && - Objects.equals(this.trackingNumber, cardOrderItemDeliveryStatus.trackingNumber); + return Objects.equals(this.errorMessage, cardOrderItemDeliveryStatus.errorMessage) + && Objects.equals(this.status, cardOrderItemDeliveryStatus.status) + && Objects.equals(this.trackingNumber, cardOrderItemDeliveryStatus.trackingNumber); } @Override @@ -228,8 +223,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -238,21 +232,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CardOrderItemDeliveryStatus given an JSON string * * @param jsonString JSON string * @return An instance of CardOrderItemDeliveryStatus - * @throws JsonProcessingException if the JSON string is invalid with respect to CardOrderItemDeliveryStatus + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CardOrderItemDeliveryStatus */ - public static CardOrderItemDeliveryStatus fromJson(String jsonString) throws JsonProcessingException { + public static CardOrderItemDeliveryStatus fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardOrderItemDeliveryStatus.class); } -/** - * Convert an instance of CardOrderItemDeliveryStatus to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CardOrderItemDeliveryStatus to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/CardOrderNotificationRequest.java b/src/main/java/com/adyen/model/configurationwebhooks/CardOrderNotificationRequest.java index dce590fe6..28b6962e0 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/CardOrderNotificationRequest.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/CardOrderNotificationRequest.java @@ -2,40 +2,33 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.configurationwebhooks.CardOrderItem; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * CardOrderNotificationRequest - */ +/** CardOrderNotificationRequest */ @JsonPropertyOrder({ CardOrderNotificationRequest.JSON_PROPERTY_DATA, CardOrderNotificationRequest.JSON_PROPERTY_ENVIRONMENT, CardOrderNotificationRequest.JSON_PROPERTY_TIMESTAMP, CardOrderNotificationRequest.JSON_PROPERTY_TYPE }) - public class CardOrderNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private CardOrderItem data; @@ -46,11 +39,8 @@ public class CardOrderNotificationRequest { public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; private OffsetDateTime timestamp; - /** - * Type of webhook. - */ + /** Type of webhook. */ public enum TypeEnum { - BALANCEPLATFORM_CARDORDER_CREATED(String.valueOf("balancePlatform.cardorder.created")), BALANCEPLATFORM_CARDORDER_UPDATED(String.valueOf("balancePlatform.cardorder.updated")); @@ -60,7 +50,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -81,7 +71,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -89,13 +83,12 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CardOrderNotificationRequest() { - } + public CardOrderNotificationRequest() {} /** * data * - * @param data + * @param data * @return the current {@code CardOrderNotificationRequest} instance, allowing for method chaining */ public CardOrderNotificationRequest data(CardOrderItem data) { @@ -105,7 +98,8 @@ public CardOrderNotificationRequest data(CardOrderItem data) { /** * Get data - * @return data + * + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,7 +110,7 @@ public CardOrderItem getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,9 +119,10 @@ public void setData(CardOrderItem data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. * @return the current {@code CardOrderNotificationRequest} instance, allowing for method chaining */ public CardOrderNotificationRequest environment(String environment) { @@ -136,8 +131,10 @@ public CardOrderNotificationRequest environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * + * @return environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,9 +143,10 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,6 +167,7 @@ public CardOrderNotificationRequest timestamp(OffsetDateTime timestamp) { /** * When the event was queued. + * * @return timestamp When the event was queued. */ @JsonProperty(JSON_PROPERTY_TIMESTAMP) @@ -201,6 +200,7 @@ public CardOrderNotificationRequest type(TypeEnum type) { /** * Type of webhook. + * * @return type Type of webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -220,9 +220,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this CardOrderNotificationRequest object is equal to o. - */ + /** Return true if this CardOrderNotificationRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -232,10 +230,10 @@ public boolean equals(Object o) { return false; } CardOrderNotificationRequest cardOrderNotificationRequest = (CardOrderNotificationRequest) o; - return Objects.equals(this.data, cardOrderNotificationRequest.data) && - Objects.equals(this.environment, cardOrderNotificationRequest.environment) && - Objects.equals(this.timestamp, cardOrderNotificationRequest.timestamp) && - Objects.equals(this.type, cardOrderNotificationRequest.type); + return Objects.equals(this.data, cardOrderNotificationRequest.data) + && Objects.equals(this.environment, cardOrderNotificationRequest.environment) + && Objects.equals(this.timestamp, cardOrderNotificationRequest.timestamp) + && Objects.equals(this.type, cardOrderNotificationRequest.type); } @Override @@ -256,8 +254,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -266,21 +263,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CardOrderNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of CardOrderNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to CardOrderNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CardOrderNotificationRequest */ - public static CardOrderNotificationRequest fromJson(String jsonString) throws JsonProcessingException { + public static CardOrderNotificationRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardOrderNotificationRequest.class); } -/** - * Convert an instance of CardOrderNotificationRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CardOrderNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/ConfigurationWebhooksHandler.java b/src/main/java/com/adyen/model/configurationwebhooks/ConfigurationWebhooksHandler.java index 8b34e06e3..6cd42a068 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/ConfigurationWebhooksHandler.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/ConfigurationWebhooksHandler.java @@ -2,7 +2,7 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,195 +16,199 @@ /** * Handler for processing ConfigurationWebhooks. - *

- * This class provides functionality to deserialize the payload of ConfigurationWebhooks events. + * + *

This class provides functionality to deserialize the payload of ConfigurationWebhooks events. */ public class ConfigurationWebhooksHandler { - private static final Logger LOG = Logger.getLogger(ConfigurationWebhooksHandler.class.getName()); - - private final String payload; - - /** - * Constructs a new handler for the given webhook payload - * - * @param payload the raw JSON payload from the webhook - */ - public ConfigurationWebhooksHandler(String payload) { - this.payload = payload; + private static final Logger LOG = Logger.getLogger(ConfigurationWebhooksHandler.class.getName()); + + private final String payload; + + /** + * Constructs a new handler for the given webhook payload + * + * @param payload the raw JSON payload from the webhook + */ + public ConfigurationWebhooksHandler(String payload) { + this.payload = payload; + } + + /** + * Attempts to deserialize the webhook payload into a AccountHolderNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getAccountHolderNotificationRequest() { + + var optionalAccountHolderNotificationRequest = + getOptionalField(AccountHolderNotificationRequest.class); + + if (optionalAccountHolderNotificationRequest.isPresent()) { + // verify event type + for (var value : AccountHolderNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalAccountHolderNotificationRequest.get().getType())) { + // found matching event type + return optionalAccountHolderNotificationRequest; + } + } } - /** - * Attempts to deserialize the webhook payload into a AccountHolderNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getAccountHolderNotificationRequest() { - - var optionalAccountHolderNotificationRequest = getOptionalField(AccountHolderNotificationRequest.class); - - if(optionalAccountHolderNotificationRequest.isPresent()) { - // verify event type - for (var value : AccountHolderNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalAccountHolderNotificationRequest.get().getType())) { - // found matching event type - return optionalAccountHolderNotificationRequest; - } - } + return Optional.empty(); + } + + /** + * Attempts to deserialize the webhook payload into a BalanceAccountNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getBalanceAccountNotificationRequest() { + + var optionalBalanceAccountNotificationRequest = + getOptionalField(BalanceAccountNotificationRequest.class); + + if (optionalBalanceAccountNotificationRequest.isPresent()) { + // verify event type + for (var value : BalanceAccountNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalBalanceAccountNotificationRequest.get().getType())) { + // found matching event type + return optionalBalanceAccountNotificationRequest; } - - return Optional.empty(); + } } - /** - * Attempts to deserialize the webhook payload into a BalanceAccountNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getBalanceAccountNotificationRequest() { - - var optionalBalanceAccountNotificationRequest = getOptionalField(BalanceAccountNotificationRequest.class); - - if(optionalBalanceAccountNotificationRequest.isPresent()) { - // verify event type - for (var value : BalanceAccountNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalBalanceAccountNotificationRequest.get().getType())) { - // found matching event type - return optionalBalanceAccountNotificationRequest; - } - } - } + return Optional.empty(); + } - return Optional.empty(); - } + /** + * Attempts to deserialize the webhook payload into a CardOrderNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getCardOrderNotificationRequest() { - /** - * Attempts to deserialize the webhook payload into a CardOrderNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getCardOrderNotificationRequest() { - - var optionalCardOrderNotificationRequest = getOptionalField(CardOrderNotificationRequest.class); - - if(optionalCardOrderNotificationRequest.isPresent()) { - // verify event type - for (var value : CardOrderNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalCardOrderNotificationRequest.get().getType())) { - // found matching event type - return optionalCardOrderNotificationRequest; - } - } - } + var optionalCardOrderNotificationRequest = getOptionalField(CardOrderNotificationRequest.class); - return Optional.empty(); + if (optionalCardOrderNotificationRequest.isPresent()) { + // verify event type + for (var value : CardOrderNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalCardOrderNotificationRequest.get().getType())) { + // found matching event type + return optionalCardOrderNotificationRequest; + } + } } - /** - * Attempts to deserialize the webhook payload into a NetworkTokenNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getNetworkTokenNotificationRequest() { - - var optionalNetworkTokenNotificationRequest = getOptionalField(NetworkTokenNotificationRequest.class); - - if(optionalNetworkTokenNotificationRequest.isPresent()) { - // verify event type - for (var value : NetworkTokenNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalNetworkTokenNotificationRequest.get().getType())) { - // found matching event type - return optionalNetworkTokenNotificationRequest; - } - } + return Optional.empty(); + } + + /** + * Attempts to deserialize the webhook payload into a NetworkTokenNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getNetworkTokenNotificationRequest() { + + var optionalNetworkTokenNotificationRequest = + getOptionalField(NetworkTokenNotificationRequest.class); + + if (optionalNetworkTokenNotificationRequest.isPresent()) { + // verify event type + for (var value : NetworkTokenNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalNetworkTokenNotificationRequest.get().getType())) { + // found matching event type + return optionalNetworkTokenNotificationRequest; } - - return Optional.empty(); + } } - /** - * Attempts to deserialize the webhook payload into a PaymentNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getPaymentNotificationRequest() { - - var optionalPaymentNotificationRequest = getOptionalField(PaymentNotificationRequest.class); - - if(optionalPaymentNotificationRequest.isPresent()) { - // verify event type - for (var value : PaymentNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalPaymentNotificationRequest.get().getType())) { - // found matching event type - return optionalPaymentNotificationRequest; - } - } - } + return Optional.empty(); + } - return Optional.empty(); - } + /** + * Attempts to deserialize the webhook payload into a PaymentNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getPaymentNotificationRequest() { - /** - * Attempts to deserialize the webhook payload into a ScoreNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getScoreNotificationRequest() { - - var optionalScoreNotificationRequest = getOptionalField(ScoreNotificationRequest.class); - - if(optionalScoreNotificationRequest.isPresent()) { - // verify event type - for (var value : ScoreNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalScoreNotificationRequest.get().getType())) { - // found matching event type - return optionalScoreNotificationRequest; - } - } - } + var optionalPaymentNotificationRequest = getOptionalField(PaymentNotificationRequest.class); - return Optional.empty(); + if (optionalPaymentNotificationRequest.isPresent()) { + // verify event type + for (var value : PaymentNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalPaymentNotificationRequest.get().getType())) { + // found matching event type + return optionalPaymentNotificationRequest; + } + } } - /** - * Attempts to deserialize the webhook payload into a SweepConfigurationNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getSweepConfigurationNotificationRequest() { - - var optionalSweepConfigurationNotificationRequest = getOptionalField(SweepConfigurationNotificationRequest.class); - - if(optionalSweepConfigurationNotificationRequest.isPresent()) { - // verify event type - for (var value : SweepConfigurationNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalSweepConfigurationNotificationRequest.get().getType())) { - // found matching event type - return optionalSweepConfigurationNotificationRequest; - } - } - } + return Optional.empty(); + } + + /** + * Attempts to deserialize the webhook payload into a ScoreNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getScoreNotificationRequest() { + + var optionalScoreNotificationRequest = getOptionalField(ScoreNotificationRequest.class); - return Optional.empty(); + if (optionalScoreNotificationRequest.isPresent()) { + // verify event type + for (var value : ScoreNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalScoreNotificationRequest.get().getType())) { + // found matching event type + return optionalScoreNotificationRequest; + } + } } - /** - * Deserializes the payload into the specified class type. - * - * @param clazz the class to deserialize into - * @param the type of the class - * @return an Optional containing the deserialized object, or empty if an error occurs - */ - private Optional getOptionalField(Class clazz) { - try { - T val = JSON.getMapper().readValue(payload, clazz); - return Optional.ofNullable(val); - } catch (Exception e) { - // an error has occurred during deserialization (object not found, deserialization error) - LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); - LOG.warning("Deserialization error: " + e.getMessage()); - return Optional.empty(); + return Optional.empty(); + } + + /** + * Attempts to deserialize the webhook payload into a SweepConfigurationNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional + getSweepConfigurationNotificationRequest() { + + var optionalSweepConfigurationNotificationRequest = + getOptionalField(SweepConfigurationNotificationRequest.class); + + if (optionalSweepConfigurationNotificationRequest.isPresent()) { + // verify event type + for (var value : SweepConfigurationNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalSweepConfigurationNotificationRequest.get().getType())) { + // found matching event type + return optionalSweepConfigurationNotificationRequest; } + } } -} \ No newline at end of file + return Optional.empty(); + } + + /** + * Deserializes the payload into the specified class type. + * + * @param clazz the class to deserialize into + * @param the type of the class + * @return an Optional containing the deserialized object, or empty if an error occurs + */ + private Optional getOptionalField(Class clazz) { + try { + T val = JSON.getMapper().readValue(payload, clazz); + return Optional.ofNullable(val); + } catch (Exception e) { + // an error has occurred during deserialization (object not found, deserialization error) + LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); + LOG.warning("Deserialization error: " + e.getMessage()); + return Optional.empty(); + } + } +} diff --git a/src/main/java/com/adyen/model/configurationwebhooks/ContactDetails.java b/src/main/java/com/adyen/model/configurationwebhooks/ContactDetails.java index f7715e59c..c938ba416 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/ContactDetails.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/ContactDetails.java @@ -2,33 +2,25 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.configurationwebhooks.Address; -import com.adyen.model.configurationwebhooks.Phone; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.*; /** * ContactDetails - * @deprecated + * + * @deprecated */ @Deprecated @JsonPropertyOrder({ @@ -37,7 +29,6 @@ ContactDetails.JSON_PROPERTY_PHONE, ContactDetails.JSON_PROPERTY_WEB_ADDRESS }) - public class ContactDetails { public static final String JSON_PROPERTY_ADDRESS = "address"; private Address address; @@ -51,13 +42,12 @@ public class ContactDetails { public static final String JSON_PROPERTY_WEB_ADDRESS = "webAddress"; private String webAddress; - public ContactDetails() { - } + public ContactDetails() {} /** * address * - * @param address + * @param address * @return the current {@code ContactDetails} instance, allowing for method chaining */ public ContactDetails address(Address address) { @@ -67,7 +57,8 @@ public ContactDetails address(Address address) { /** * Get address - * @return address + * + * @return address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -78,7 +69,7 @@ public Address getAddress() { /** * address * - * @param address + * @param address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,6 +90,7 @@ public ContactDetails email(String email) { /** * The email address of the account holder. + * * @return email The email address of the account holder. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -121,7 +113,7 @@ public void setEmail(String email) { /** * phone * - * @param phone + * @param phone * @return the current {@code ContactDetails} instance, allowing for method chaining */ public ContactDetails phone(Phone phone) { @@ -131,7 +123,8 @@ public ContactDetails phone(Phone phone) { /** * Get phone - * @return phone + * + * @return phone */ @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,7 +135,7 @@ public Phone getPhone() { /** * phone * - * @param phone + * @param phone */ @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,6 +156,7 @@ public ContactDetails webAddress(String webAddress) { /** * The URL of the account holder's website. + * * @return webAddress The URL of the account holder's website. */ @JsonProperty(JSON_PROPERTY_WEB_ADDRESS) @@ -182,9 +176,7 @@ public void setWebAddress(String webAddress) { this.webAddress = webAddress; } - /** - * Return true if this ContactDetails object is equal to o. - */ + /** Return true if this ContactDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -194,10 +186,10 @@ public boolean equals(Object o) { return false; } ContactDetails contactDetails = (ContactDetails) o; - return Objects.equals(this.address, contactDetails.address) && - Objects.equals(this.email, contactDetails.email) && - Objects.equals(this.phone, contactDetails.phone) && - Objects.equals(this.webAddress, contactDetails.webAddress); + return Objects.equals(this.address, contactDetails.address) + && Objects.equals(this.email, contactDetails.email) + && Objects.equals(this.phone, contactDetails.phone) + && Objects.equals(this.webAddress, contactDetails.webAddress); } @Override @@ -218,8 +210,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -228,7 +219,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ContactDetails given an JSON string * * @param jsonString JSON string @@ -238,11 +229,12 @@ private String toIndentedString(Object o) { public static ContactDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ContactDetails.class); } -/** - * Convert an instance of ContactDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ContactDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/DeliveryAddress.java b/src/main/java/com/adyen/model/configurationwebhooks/DeliveryAddress.java index c6e10e655..7a23d99ef 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/DeliveryAddress.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/DeliveryAddress.java @@ -2,31 +2,22 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * DeliveryAddress - */ +/** DeliveryAddress */ @JsonPropertyOrder({ DeliveryAddress.JSON_PROPERTY_CITY, DeliveryAddress.JSON_PROPERTY_COUNTRY, @@ -36,7 +27,6 @@ DeliveryAddress.JSON_PROPERTY_POSTAL_CODE, DeliveryAddress.JSON_PROPERTY_STATE_OR_PROVINCE }) - public class DeliveryAddress { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -59,8 +49,7 @@ public class DeliveryAddress { public static final String JSON_PROPERTY_STATE_OR_PROVINCE = "stateOrProvince"; private String stateOrProvince; - public DeliveryAddress() { - } + public DeliveryAddress() {} /** * The name of the city. @@ -75,6 +64,7 @@ public DeliveryAddress city(String city) { /** * The name of the city. + * * @return city The name of the city. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -95,9 +85,13 @@ public void setCity(String city) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't + * know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If + * you don't know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress country(String country) { @@ -106,8 +100,13 @@ public DeliveryAddress country(String country) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. - * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't + * know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. + * + * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If + * you don't know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,9 +115,13 @@ public String getCountry() { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't + * know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If + * you don't know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,9 +130,11 @@ public void setCountry(String country) { } /** - * The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. + * The name of the street. Do not include the number of the building. For example, if the address + * is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. * - * @param line1 The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. + * @param line1 The name of the street. Do not include the number of the building. For example, if + * the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress line1(String line1) { @@ -138,8 +143,11 @@ public DeliveryAddress line1(String line1) { } /** - * The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. - * @return line1 The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. + * The name of the street. Do not include the number of the building. For example, if the address + * is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. + * + * @return line1 The name of the street. Do not include the number of the building. For example, + * if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. */ @JsonProperty(JSON_PROPERTY_LINE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,9 +156,11 @@ public String getLine1() { } /** - * The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. + * The name of the street. Do not include the number of the building. For example, if the address + * is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. * - * @param line1 The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. + * @param line1 The name of the street. Do not include the number of the building. For example, if + * the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. */ @JsonProperty(JSON_PROPERTY_LINE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,9 +169,11 @@ public void setLine1(String line1) { } /** - * The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**. + * The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide + * **6-50**. * - * @param line2 The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**. + * @param line2 The number of the building. For example, if the address is Simon Carmiggeltstraat + * 6-50, provide **6-50**. * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress line2(String line2) { @@ -170,8 +182,11 @@ public DeliveryAddress line2(String line2) { } /** - * The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**. - * @return line2 The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**. + * The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide + * **6-50**. + * + * @return line2 The number of the building. For example, if the address is Simon Carmiggeltstraat + * 6-50, provide **6-50**. */ @JsonProperty(JSON_PROPERTY_LINE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -180,9 +195,11 @@ public String getLine2() { } /** - * The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**. + * The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide + * **6-50**. * - * @param line2 The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**. + * @param line2 The number of the building. For example, if the address is Simon Carmiggeltstraat + * 6-50, provide **6-50**. */ @JsonProperty(JSON_PROPERTY_LINE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -203,6 +220,7 @@ public DeliveryAddress line3(String line3) { /** * Additional information about the delivery address. + * * @return line3 Additional information about the delivery address. */ @JsonProperty(JSON_PROPERTY_LINE3) @@ -223,9 +241,11 @@ public void setLine3(String line3) { } /** - * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. + * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an + * address in all other countries. * - * @param postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. + * @param postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 + * characters for an address in all other countries. * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress postalCode(String postalCode) { @@ -234,8 +254,11 @@ public DeliveryAddress postalCode(String postalCode) { } /** - * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. - * @return postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. + * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an + * address in all other countries. + * + * @return postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 + * characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,9 +267,11 @@ public String getPostalCode() { } /** - * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. + * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an + * address in all other countries. * - * @param postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. + * @param postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 + * characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -255,9 +280,12 @@ public void setPostalCode(String postalCode) { } /** - * The state or province code, maximum 3 characters. For example, **CA** for California in the US or **ON** for Ontario in Canada. > Required for the US and Canada. + * The state or province code, maximum 3 characters. For example, **CA** for California in the US + * or **ON** for Ontario in Canada. > Required for the US and Canada. * - * @param stateOrProvince The state or province code, maximum 3 characters. For example, **CA** for California in the US or **ON** for Ontario in Canada. > Required for the US and Canada. + * @param stateOrProvince The state or province code, maximum 3 characters. For example, **CA** + * for California in the US or **ON** for Ontario in Canada. > Required for the US and + * Canada. * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress stateOrProvince(String stateOrProvince) { @@ -266,8 +294,12 @@ public DeliveryAddress stateOrProvince(String stateOrProvince) { } /** - * The state or province code, maximum 3 characters. For example, **CA** for California in the US or **ON** for Ontario in Canada. > Required for the US and Canada. - * @return stateOrProvince The state or province code, maximum 3 characters. For example, **CA** for California in the US or **ON** for Ontario in Canada. > Required for the US and Canada. + * The state or province code, maximum 3 characters. For example, **CA** for California in the US + * or **ON** for Ontario in Canada. > Required for the US and Canada. + * + * @return stateOrProvince The state or province code, maximum 3 characters. For example, **CA** + * for California in the US or **ON** for Ontario in Canada. > Required for the US and + * Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -276,9 +308,12 @@ public String getStateOrProvince() { } /** - * The state or province code, maximum 3 characters. For example, **CA** for California in the US or **ON** for Ontario in Canada. > Required for the US and Canada. + * The state or province code, maximum 3 characters. For example, **CA** for California in the US + * or **ON** for Ontario in Canada. > Required for the US and Canada. * - * @param stateOrProvince The state or province code, maximum 3 characters. For example, **CA** for California in the US or **ON** for Ontario in Canada. > Required for the US and Canada. + * @param stateOrProvince The state or province code, maximum 3 characters. For example, **CA** + * for California in the US or **ON** for Ontario in Canada. > Required for the US and + * Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -286,9 +321,7 @@ public void setStateOrProvince(String stateOrProvince) { this.stateOrProvince = stateOrProvince; } - /** - * Return true if this DeliveryAddress object is equal to o. - */ + /** Return true if this DeliveryAddress object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -298,13 +331,13 @@ public boolean equals(Object o) { return false; } DeliveryAddress deliveryAddress = (DeliveryAddress) o; - return Objects.equals(this.city, deliveryAddress.city) && - Objects.equals(this.country, deliveryAddress.country) && - Objects.equals(this.line1, deliveryAddress.line1) && - Objects.equals(this.line2, deliveryAddress.line2) && - Objects.equals(this.line3, deliveryAddress.line3) && - Objects.equals(this.postalCode, deliveryAddress.postalCode) && - Objects.equals(this.stateOrProvince, deliveryAddress.stateOrProvince); + return Objects.equals(this.city, deliveryAddress.city) + && Objects.equals(this.country, deliveryAddress.country) + && Objects.equals(this.line1, deliveryAddress.line1) + && Objects.equals(this.line2, deliveryAddress.line2) + && Objects.equals(this.line3, deliveryAddress.line3) + && Objects.equals(this.postalCode, deliveryAddress.postalCode) + && Objects.equals(this.stateOrProvince, deliveryAddress.stateOrProvince); } @Override @@ -328,8 +361,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -338,7 +370,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DeliveryAddress given an JSON string * * @param jsonString JSON string @@ -348,11 +380,12 @@ private String toIndentedString(Object o) { public static DeliveryAddress fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DeliveryAddress.class); } -/** - * Convert an instance of DeliveryAddress to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DeliveryAddress to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/DeliveryContact.java b/src/main/java/com/adyen/model/configurationwebhooks/DeliveryContact.java index a0304d9b3..4e9478cbc 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/DeliveryContact.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/DeliveryContact.java @@ -2,34 +2,22 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.configurationwebhooks.DeliveryAddress; -import com.adyen.model.configurationwebhooks.Name; -import com.adyen.model.configurationwebhooks.PhoneNumber; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * DeliveryContact - */ +/** DeliveryContact */ @JsonPropertyOrder({ DeliveryContact.JSON_PROPERTY_ADDRESS, DeliveryContact.JSON_PROPERTY_COMPANY, @@ -39,7 +27,6 @@ DeliveryContact.JSON_PROPERTY_PHONE_NUMBER, DeliveryContact.JSON_PROPERTY_WEB_ADDRESS }) - public class DeliveryContact { public static final String JSON_PROPERTY_ADDRESS = "address"; private DeliveryAddress address; @@ -62,13 +49,12 @@ public class DeliveryContact { public static final String JSON_PROPERTY_WEB_ADDRESS = "webAddress"; private String webAddress; - public DeliveryContact() { - } + public DeliveryContact() {} /** * address * - * @param address + * @param address * @return the current {@code DeliveryContact} instance, allowing for method chaining */ public DeliveryContact address(DeliveryAddress address) { @@ -78,7 +64,8 @@ public DeliveryContact address(DeliveryAddress address) { /** * Get address - * @return address + * + * @return address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -89,7 +76,7 @@ public DeliveryAddress getAddress() { /** * address * - * @param address + * @param address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,6 +97,7 @@ public DeliveryContact company(String company) { /** * The company name of the contact. + * * @return company The company name of the contact. */ @JsonProperty(JSON_PROPERTY_COMPANY) @@ -142,6 +130,7 @@ public DeliveryContact email(String email) { /** * The email address of the contact. + * * @return email The email address of the contact. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -162,9 +151,13 @@ public void setEmail(String email) { } /** - * The full phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\" + * The full phone number of the contact provided as a single string. It will be handled as a + * landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", + * \"(0031) 611223344\" * - * @param fullPhoneNumber The full phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\" + * @param fullPhoneNumber The full phone number of the contact provided as a single string. It + * will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", + * \"+316/1122-3344\", \"(0031) 611223344\" * @return the current {@code DeliveryContact} instance, allowing for method chaining */ public DeliveryContact fullPhoneNumber(String fullPhoneNumber) { @@ -173,8 +166,13 @@ public DeliveryContact fullPhoneNumber(String fullPhoneNumber) { } /** - * The full phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\" - * @return fullPhoneNumber The full phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\" + * The full phone number of the contact provided as a single string. It will be handled as a + * landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", + * \"(0031) 611223344\" + * + * @return fullPhoneNumber The full phone number of the contact provided as a single string. It + * will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", + * \"+316/1122-3344\", \"(0031) 611223344\" */ @JsonProperty(JSON_PROPERTY_FULL_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,9 +181,13 @@ public String getFullPhoneNumber() { } /** - * The full phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\" + * The full phone number of the contact provided as a single string. It will be handled as a + * landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", + * \"(0031) 611223344\" * - * @param fullPhoneNumber The full phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\" + * @param fullPhoneNumber The full phone number of the contact provided as a single string. It + * will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", + * \"+316/1122-3344\", \"(0031) 611223344\" */ @JsonProperty(JSON_PROPERTY_FULL_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -196,7 +198,7 @@ public void setFullPhoneNumber(String fullPhoneNumber) { /** * name * - * @param name + * @param name * @return the current {@code DeliveryContact} instance, allowing for method chaining */ public DeliveryContact name(Name name) { @@ -206,7 +208,8 @@ public DeliveryContact name(Name name) { /** * Get name - * @return name + * + * @return name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -217,7 +220,7 @@ public Name getName() { /** * name * - * @param name + * @param name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -228,7 +231,7 @@ public void setName(Name name) { /** * phoneNumber * - * @param phoneNumber + * @param phoneNumber * @return the current {@code DeliveryContact} instance, allowing for method chaining */ public DeliveryContact phoneNumber(PhoneNumber phoneNumber) { @@ -238,7 +241,8 @@ public DeliveryContact phoneNumber(PhoneNumber phoneNumber) { /** * Get phoneNumber - * @return phoneNumber + * + * @return phoneNumber */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -249,7 +253,7 @@ public PhoneNumber getPhoneNumber() { /** * phoneNumber * - * @param phoneNumber + * @param phoneNumber */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -270,6 +274,7 @@ public DeliveryContact webAddress(String webAddress) { /** * The URL of the contact's website. + * * @return webAddress The URL of the contact's website. */ @JsonProperty(JSON_PROPERTY_WEB_ADDRESS) @@ -289,9 +294,7 @@ public void setWebAddress(String webAddress) { this.webAddress = webAddress; } - /** - * Return true if this DeliveryContact object is equal to o. - */ + /** Return true if this DeliveryContact object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -301,13 +304,13 @@ public boolean equals(Object o) { return false; } DeliveryContact deliveryContact = (DeliveryContact) o; - return Objects.equals(this.address, deliveryContact.address) && - Objects.equals(this.company, deliveryContact.company) && - Objects.equals(this.email, deliveryContact.email) && - Objects.equals(this.fullPhoneNumber, deliveryContact.fullPhoneNumber) && - Objects.equals(this.name, deliveryContact.name) && - Objects.equals(this.phoneNumber, deliveryContact.phoneNumber) && - Objects.equals(this.webAddress, deliveryContact.webAddress); + return Objects.equals(this.address, deliveryContact.address) + && Objects.equals(this.company, deliveryContact.company) + && Objects.equals(this.email, deliveryContact.email) + && Objects.equals(this.fullPhoneNumber, deliveryContact.fullPhoneNumber) + && Objects.equals(this.name, deliveryContact.name) + && Objects.equals(this.phoneNumber, deliveryContact.phoneNumber) + && Objects.equals(this.webAddress, deliveryContact.webAddress); } @Override @@ -331,8 +334,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -341,7 +343,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DeliveryContact given an JSON string * * @param jsonString JSON string @@ -351,11 +353,12 @@ private String toIndentedString(Object o) { public static DeliveryContact fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DeliveryContact.class); } -/** - * Convert an instance of DeliveryContact to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DeliveryContact to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Device.java b/src/main/java/com/adyen/model/configurationwebhooks/Device.java index aeebc238e..a156b2279 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Device.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Device.java @@ -2,36 +2,23 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Device - */ -@JsonPropertyOrder({ - Device.JSON_PROPERTY_FORM_FACTOR, - Device.JSON_PROPERTY_OS_NAME -}) - +/** Device */ +@JsonPropertyOrder({Device.JSON_PROPERTY_FORM_FACTOR, Device.JSON_PROPERTY_OS_NAME}) public class Device { public static final String JSON_PROPERTY_FORM_FACTOR = "formFactor"; private String formFactor; @@ -39,13 +26,14 @@ public class Device { public static final String JSON_PROPERTY_OS_NAME = "osName"; private String osName; - public Device() { - } + public Device() {} /** - * The type of the device used for provisioning the network token. For example, **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc + * The type of the device used for provisioning the network token. For example, **phone**, + * **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc * - * @param formFactor The type of the device used for provisioning the network token. For example, **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc + * @param formFactor The type of the device used for provisioning the network token. For example, + * **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc * @return the current {@code Device} instance, allowing for method chaining */ public Device formFactor(String formFactor) { @@ -54,8 +42,11 @@ public Device formFactor(String formFactor) { } /** - * The type of the device used for provisioning the network token. For example, **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc - * @return formFactor The type of the device used for provisioning the network token. For example, **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc + * The type of the device used for provisioning the network token. For example, **phone**, + * **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc + * + * @return formFactor The type of the device used for provisioning the network token. For example, + * **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc */ @JsonProperty(JSON_PROPERTY_FORM_FACTOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +55,11 @@ public String getFormFactor() { } /** - * The type of the device used for provisioning the network token. For example, **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc + * The type of the device used for provisioning the network token. For example, **phone**, + * **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc * - * @param formFactor The type of the device used for provisioning the network token. For example, **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc + * @param formFactor The type of the device used for provisioning the network token. For example, + * **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc */ @JsonProperty(JSON_PROPERTY_FORM_FACTOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,6 +80,7 @@ public Device osName(String osName) { /** * The operating system of the device used for provisioning the network token. + * * @return osName The operating system of the device used for provisioning the network token. */ @JsonProperty(JSON_PROPERTY_OS_NAME) @@ -106,9 +100,7 @@ public void setOsName(String osName) { this.osName = osName; } - /** - * Return true if this Device object is equal to o. - */ + /** Return true if this Device object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +110,8 @@ public boolean equals(Object o) { return false; } Device device = (Device) o; - return Objects.equals(this.formFactor, device.formFactor) && - Objects.equals(this.osName, device.osName); + return Objects.equals(this.formFactor, device.formFactor) + && Objects.equals(this.osName, device.osName); } @Override @@ -138,8 +130,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +139,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Device given an JSON string * * @param jsonString JSON string @@ -158,11 +149,12 @@ private String toIndentedString(Object o) { public static Device fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Device.class); } -/** - * Convert an instance of Device to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Device to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Expiry.java b/src/main/java/com/adyen/model/configurationwebhooks/Expiry.java index c40ba1658..eeaac49df 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Expiry.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Expiry.java @@ -2,36 +2,23 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Expiry - */ -@JsonPropertyOrder({ - Expiry.JSON_PROPERTY_MONTH, - Expiry.JSON_PROPERTY_YEAR -}) - +/** Expiry */ +@JsonPropertyOrder({Expiry.JSON_PROPERTY_MONTH, Expiry.JSON_PROPERTY_YEAR}) public class Expiry { public static final String JSON_PROPERTY_MONTH = "month"; private String month; @@ -39,8 +26,7 @@ public class Expiry { public static final String JSON_PROPERTY_YEAR = "year"; private String year; - public Expiry() { - } + public Expiry() {} /** * The month in which the card will expire. @@ -55,6 +41,7 @@ public Expiry month(String month) { /** * The month in which the card will expire. + * * @return month The month in which the card will expire. */ @JsonProperty(JSON_PROPERTY_MONTH) @@ -87,6 +74,7 @@ public Expiry year(String year) { /** * The year in which the card will expire. + * * @return year The year in which the card will expire. */ @JsonProperty(JSON_PROPERTY_YEAR) @@ -106,9 +94,7 @@ public void setYear(String year) { this.year = year; } - /** - * Return true if this Expiry object is equal to o. - */ + /** Return true if this Expiry object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +104,7 @@ public boolean equals(Object o) { return false; } Expiry expiry = (Expiry) o; - return Objects.equals(this.month, expiry.month) && - Objects.equals(this.year, expiry.year); + return Objects.equals(this.month, expiry.month) && Objects.equals(this.year, expiry.year); } @Override @@ -138,8 +123,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +132,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Expiry given an JSON string * * @param jsonString JSON string @@ -158,11 +142,12 @@ private String toIndentedString(Object o) { public static Expiry fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Expiry.class); } -/** - * Convert an instance of Expiry to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Expiry to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/IbanAccountIdentification.java b/src/main/java/com/adyen/model/configurationwebhooks/IbanAccountIdentification.java index 6a6642b60..fa9be03e0 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/IbanAccountIdentification.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/IbanAccountIdentification.java @@ -2,45 +2,36 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * IbanAccountIdentification - */ +/** IbanAccountIdentification */ @JsonPropertyOrder({ IbanAccountIdentification.JSON_PROPERTY_IBAN, IbanAccountIdentification.JSON_PROPERTY_TYPE }) - public class IbanAccountIdentification { public static final String JSON_PROPERTY_IBAN = "iban"; private String iban; - /** - * **iban** - */ + /** **iban** */ public enum TypeEnum { - IBAN(String.valueOf("iban")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +39,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,13 +72,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public IbanAccountIdentification() { - } + public IbanAccountIdentification() {} /** - * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. * - * @param iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @param iban The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. * @return the current {@code IbanAccountIdentification} instance, allowing for method chaining */ public IbanAccountIdentification iban(String iban) { @@ -92,8 +88,11 @@ public IbanAccountIdentification iban(String iban) { } /** - * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. - * @return iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * + * @return iban The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,9 +101,11 @@ public String getIban() { } /** - * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. * - * @param iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @param iban The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,6 +126,7 @@ public IbanAccountIdentification type(TypeEnum type) { /** * **iban** + * * @return type **iban** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -144,9 +146,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this IbanAccountIdentification object is equal to o. - */ + /** Return true if this IbanAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +156,8 @@ public boolean equals(Object o) { return false; } IbanAccountIdentification ibanAccountIdentification = (IbanAccountIdentification) o; - return Objects.equals(this.iban, ibanAccountIdentification.iban) && - Objects.equals(this.type, ibanAccountIdentification.type); + return Objects.equals(this.iban, ibanAccountIdentification.iban) + && Objects.equals(this.type, ibanAccountIdentification.type); } @Override @@ -176,8 +176,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +185,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of IbanAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of IbanAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to IbanAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * IbanAccountIdentification */ - public static IbanAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static IbanAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, IbanAccountIdentification.class); } -/** - * Convert an instance of IbanAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of IbanAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/JSON.java b/src/main/java/com/adyen/model/configurationwebhooks/JSON.java index 1016896cc..a7359241d 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/JSON.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/JSON.java @@ -1,21 +1,18 @@ package com.adyen.model.configurationwebhooks; -import com.adyen.serializer.ByteArraySerializer; import com.adyen.serializer.ByteArrayDeserializer; +import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import com.adyen.model.configurationwebhooks.*; - +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -40,6 +37,7 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. + * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -56,11 +54,13 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { return mapper; } + public static ObjectMapper getMapper() { + return mapper; + } /** - * Returns the target model class that should be used to deserialize the input data. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,9 +73,7 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** - * Helper class to register the discriminator mappings. - */ + /** Helper class to register the discriminator mappings. */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -117,9 +115,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. - * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. This + * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -164,13 +162,14 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, - * so it's not possible to use the instanceof keyword. + *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so + * it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf( + Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -194,59 +193,58 @@ public static boolean isInstanceOf(Class modelClass, Object inst, Set, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); + /** A map of discriminators for all model classes. */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = + new HashMap, ClassDiscriminatorMapping>(); - /** - * A map of oneOf/anyOf descendants for each model class. - */ + /** A map of oneOf/anyOf descendants for each model class. */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator( + Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = + new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants(Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants( + Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static - { + static { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Name.java b/src/main/java/com/adyen/model/configurationwebhooks/Name.java index eb9fb2150..ce1fdf421 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Name.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Name.java @@ -2,36 +2,23 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Name - */ -@JsonPropertyOrder({ - Name.JSON_PROPERTY_FIRST_NAME, - Name.JSON_PROPERTY_LAST_NAME -}) - +/** Name */ +@JsonPropertyOrder({Name.JSON_PROPERTY_FIRST_NAME, Name.JSON_PROPERTY_LAST_NAME}) public class Name { public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; private String firstName; @@ -39,8 +26,7 @@ public class Name { public static final String JSON_PROPERTY_LAST_NAME = "lastName"; private String lastName; - public Name() { - } + public Name() {} /** * The first name. @@ -55,6 +41,7 @@ public Name firstName(String firstName) { /** * The first name. + * * @return firstName The first name. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @@ -87,6 +74,7 @@ public Name lastName(String lastName) { /** * The last name. + * * @return lastName The last name. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @@ -106,9 +94,7 @@ public void setLastName(String lastName) { this.lastName = lastName; } - /** - * Return true if this Name object is equal to o. - */ + /** Return true if this Name object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +104,8 @@ public boolean equals(Object o) { return false; } Name name = (Name) o; - return Objects.equals(this.firstName, name.firstName) && - Objects.equals(this.lastName, name.lastName); + return Objects.equals(this.firstName, name.firstName) + && Objects.equals(this.lastName, name.lastName); } @Override @@ -138,8 +124,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +133,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Name given an JSON string * * @param jsonString JSON string @@ -158,11 +143,12 @@ private String toIndentedString(Object o) { public static Name fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Name.class); } -/** - * Convert an instance of Name to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Name to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenNotificationDataV2.java b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenNotificationDataV2.java index 0d057684a..be67d535d 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenNotificationDataV2.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenNotificationDataV2.java @@ -2,38 +2,24 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.configurationwebhooks.NetworkTokenRequestor; -import com.adyen.model.configurationwebhooks.NetworkTokenTransactionRulesResult; -import com.adyen.model.configurationwebhooks.TokenAuthentication; -import com.adyen.model.configurationwebhooks.ValidationFacts; -import com.adyen.model.configurationwebhooks.Wallet; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * NetworkTokenNotificationDataV2 - */ +/** NetworkTokenNotificationDataV2 */ @JsonPropertyOrder({ NetworkTokenNotificationDataV2.JSON_PROPERTY_AUTHENTICATION, NetworkTokenNotificationDataV2.JSON_PROPERTY_AUTHENTICATION_APPLIED, @@ -49,7 +35,6 @@ NetworkTokenNotificationDataV2.JSON_PROPERTY_VALIDATION_FACTS, NetworkTokenNotificationDataV2.JSON_PROPERTY_WALLET }) - public class NetworkTokenNotificationDataV2 { public static final String JSON_PROPERTY_AUTHENTICATION = "authentication"; private TokenAuthentication authentication; @@ -90,14 +75,14 @@ public class NetworkTokenNotificationDataV2 { public static final String JSON_PROPERTY_WALLET = "wallet"; private Wallet wallet; - public NetworkTokenNotificationDataV2() { - } + public NetworkTokenNotificationDataV2() {} /** * authentication * - * @param authentication - * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method chaining + * @param authentication + * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method + * chaining */ public NetworkTokenNotificationDataV2 authentication(TokenAuthentication authentication) { this.authentication = authentication; @@ -106,7 +91,8 @@ public NetworkTokenNotificationDataV2 authentication(TokenAuthentication authent /** * Get authentication - * @return authentication + * + * @return authentication */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,7 +103,7 @@ public TokenAuthentication getAuthentication() { /** * authentication * - * @param authentication + * @param authentication */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,8 +114,10 @@ public void setAuthentication(TokenAuthentication authentication) { /** * Specifies whether the authentication process was triggered during token provisioning. * - * @param authenticationApplied Specifies whether the authentication process was triggered during token provisioning. - * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method chaining + * @param authenticationApplied Specifies whether the authentication process was triggered during + * token provisioning. + * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method + * chaining */ public NetworkTokenNotificationDataV2 authenticationApplied(Boolean authenticationApplied) { this.authenticationApplied = authenticationApplied; @@ -138,7 +126,9 @@ public NetworkTokenNotificationDataV2 authenticationApplied(Boolean authenticati /** * Specifies whether the authentication process was triggered during token provisioning. - * @return authenticationApplied Specifies whether the authentication process was triggered during token provisioning. + * + * @return authenticationApplied Specifies whether the authentication process was triggered during + * token provisioning. */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_APPLIED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -149,7 +139,8 @@ public Boolean getAuthenticationApplied() { /** * Specifies whether the authentication process was triggered during token provisioning. * - * @param authenticationApplied Specifies whether the authentication process was triggered during token provisioning. + * @param authenticationApplied Specifies whether the authentication process was triggered during + * token provisioning. */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_APPLIED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,7 +152,8 @@ public void setAuthenticationApplied(Boolean authenticationApplied) { * The unique identifier of the balance platform. * * @param balancePlatform The unique identifier of the balance platform. - * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method chaining + * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method + * chaining */ public NetworkTokenNotificationDataV2 balancePlatform(String balancePlatform) { this.balancePlatform = balancePlatform; @@ -170,6 +162,7 @@ public NetworkTokenNotificationDataV2 balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. + * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -190,10 +183,13 @@ public void setBalancePlatform(String balancePlatform) { } /** - * The decision about the network token provisioning. Possible values: **approved**, **declined**, **requiresAuthentication**. + * The decision about the network token provisioning. Possible values: **approved**, **declined**, + * **requiresAuthentication**. * - * @param decision The decision about the network token provisioning. Possible values: **approved**, **declined**, **requiresAuthentication**. - * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method chaining + * @param decision The decision about the network token provisioning. Possible values: + * **approved**, **declined**, **requiresAuthentication**. + * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method + * chaining */ public NetworkTokenNotificationDataV2 decision(String decision) { this.decision = decision; @@ -201,8 +197,11 @@ public NetworkTokenNotificationDataV2 decision(String decision) { } /** - * The decision about the network token provisioning. Possible values: **approved**, **declined**, **requiresAuthentication**. - * @return decision The decision about the network token provisioning. Possible values: **approved**, **declined**, **requiresAuthentication**. + * The decision about the network token provisioning. Possible values: **approved**, **declined**, + * **requiresAuthentication**. + * + * @return decision The decision about the network token provisioning. Possible values: + * **approved**, **declined**, **requiresAuthentication**. */ @JsonProperty(JSON_PROPERTY_DECISION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,9 +210,11 @@ public String getDecision() { } /** - * The decision about the network token provisioning. Possible values: **approved**, **declined**, **requiresAuthentication**. + * The decision about the network token provisioning. Possible values: **approved**, **declined**, + * **requiresAuthentication**. * - * @param decision The decision about the network token provisioning. Possible values: **approved**, **declined**, **requiresAuthentication**. + * @param decision The decision about the network token provisioning. Possible values: + * **approved**, **declined**, **requiresAuthentication**. */ @JsonProperty(JSON_PROPERTY_DECISION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -225,7 +226,8 @@ public void setDecision(String decision) { * The unique identifier of the network token. * * @param id The unique identifier of the network token. - * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method chaining + * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method + * chaining */ public NetworkTokenNotificationDataV2 id(String id) { this.id = id; @@ -234,6 +236,7 @@ public NetworkTokenNotificationDataV2 id(String id) { /** * The unique identifier of the network token. + * * @return id The unique identifier of the network token. */ @JsonProperty(JSON_PROPERTY_ID) @@ -256,8 +259,10 @@ public void setId(String id) { /** * The unique identifier of the payment instrument to which the network token is associated. * - * @param paymentInstrumentId The unique identifier of the payment instrument to which the network token is associated. - * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method chaining + * @param paymentInstrumentId The unique identifier of the payment instrument to which the network + * token is associated. + * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method + * chaining */ public NetworkTokenNotificationDataV2 paymentInstrumentId(String paymentInstrumentId) { this.paymentInstrumentId = paymentInstrumentId; @@ -266,7 +271,9 @@ public NetworkTokenNotificationDataV2 paymentInstrumentId(String paymentInstrume /** * The unique identifier of the payment instrument to which the network token is associated. - * @return paymentInstrumentId The unique identifier of the payment instrument to which the network token is associated. + * + * @return paymentInstrumentId The unique identifier of the payment instrument to which the + * network token is associated. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -277,7 +284,8 @@ public String getPaymentInstrumentId() { /** * The unique identifier of the payment instrument to which the network token is associated. * - * @param paymentInstrumentId The unique identifier of the payment instrument to which the network token is associated. + * @param paymentInstrumentId The unique identifier of the payment instrument to which the network + * token is associated. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -289,7 +297,8 @@ public void setPaymentInstrumentId(String paymentInstrumentId) { * The status of the network token. * * @param status The status of the network token. - * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method chaining + * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method + * chaining */ public NetworkTokenNotificationDataV2 status(String status) { this.status = status; @@ -298,6 +307,7 @@ public NetworkTokenNotificationDataV2 status(String status) { /** * The status of the network token. + * * @return status The status of the network token. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -318,10 +328,13 @@ public void setStatus(String status) { } /** - * The last four digits of the network token. Use this value to help your user to identify their network token. + * The last four digits of the network token. Use this value to help your user to identify their + * network token. * - * @param tokenLastFour The last four digits of the network token. Use this value to help your user to identify their network token. - * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method chaining + * @param tokenLastFour The last four digits of the network token. Use this value to help your + * user to identify their network token. + * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method + * chaining */ public NetworkTokenNotificationDataV2 tokenLastFour(String tokenLastFour) { this.tokenLastFour = tokenLastFour; @@ -329,8 +342,11 @@ public NetworkTokenNotificationDataV2 tokenLastFour(String tokenLastFour) { } /** - * The last four digits of the network token. Use this value to help your user to identify their network token. - * @return tokenLastFour The last four digits of the network token. Use this value to help your user to identify their network token. + * The last four digits of the network token. Use this value to help your user to identify their + * network token. + * + * @return tokenLastFour The last four digits of the network token. Use this value to help your + * user to identify their network token. */ @JsonProperty(JSON_PROPERTY_TOKEN_LAST_FOUR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -339,9 +355,11 @@ public String getTokenLastFour() { } /** - * The last four digits of the network token. Use this value to help your user to identify their network token. + * The last four digits of the network token. Use this value to help your user to identify their + * network token. * - * @param tokenLastFour The last four digits of the network token. Use this value to help your user to identify their network token. + * @param tokenLastFour The last four digits of the network token. Use this value to help your + * user to identify their network token. */ @JsonProperty(JSON_PROPERTY_TOKEN_LAST_FOUR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -352,8 +370,9 @@ public void setTokenLastFour(String tokenLastFour) { /** * tokenRequestor * - * @param tokenRequestor - * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method chaining + * @param tokenRequestor + * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method + * chaining */ public NetworkTokenNotificationDataV2 tokenRequestor(NetworkTokenRequestor tokenRequestor) { this.tokenRequestor = tokenRequestor; @@ -362,7 +381,8 @@ public NetworkTokenNotificationDataV2 tokenRequestor(NetworkTokenRequestor token /** * Get tokenRequestor - * @return tokenRequestor + * + * @return tokenRequestor */ @JsonProperty(JSON_PROPERTY_TOKEN_REQUESTOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -373,7 +393,7 @@ public NetworkTokenRequestor getTokenRequestor() { /** * tokenRequestor * - * @param tokenRequestor + * @param tokenRequestor */ @JsonProperty(JSON_PROPERTY_TOKEN_REQUESTOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -384,17 +404,20 @@ public void setTokenRequestor(NetworkTokenRequestor tokenRequestor) { /** * transactionRulesResult * - * @param transactionRulesResult - * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method chaining + * @param transactionRulesResult + * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method + * chaining */ - public NetworkTokenNotificationDataV2 transactionRulesResult(NetworkTokenTransactionRulesResult transactionRulesResult) { + public NetworkTokenNotificationDataV2 transactionRulesResult( + NetworkTokenTransactionRulesResult transactionRulesResult) { this.transactionRulesResult = transactionRulesResult; return this; } /** * Get transactionRulesResult - * @return transactionRulesResult + * + * @return transactionRulesResult */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULES_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -405,7 +428,7 @@ public NetworkTokenTransactionRulesResult getTransactionRulesResult() { /** * transactionRulesResult * - * @param transactionRulesResult + * @param transactionRulesResult */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULES_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -414,10 +437,11 @@ public void setTransactionRulesResult(NetworkTokenTransactionRulesResult transac } /** - * The type of network token. Possible values: **wallet**, **cof**. + * The type of network token. Possible values: **wallet**, **cof**. * - * @param type The type of network token. Possible values: **wallet**, **cof**. - * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method chaining + * @param type The type of network token. Possible values: **wallet**, **cof**. + * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method + * chaining */ public NetworkTokenNotificationDataV2 type(String type) { this.type = type; @@ -425,8 +449,9 @@ public NetworkTokenNotificationDataV2 type(String type) { } /** - * The type of network token. Possible values: **wallet**, **cof**. - * @return type The type of network token. Possible values: **wallet**, **cof**. + * The type of network token. Possible values: **wallet**, **cof**. + * + * @return type The type of network token. Possible values: **wallet**, **cof**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -435,9 +460,9 @@ public String getType() { } /** - * The type of network token. Possible values: **wallet**, **cof**. + * The type of network token. Possible values: **wallet**, **cof**. * - * @param type The type of network token. Possible values: **wallet**, **cof**. + * @param type The type of network token. Possible values: **wallet**, **cof**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -448,15 +473,18 @@ public void setType(String type) { /** * The rules used to validate the request for provisioning the network token. * - * @param validationFacts The rules used to validate the request for provisioning the network token. - * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method chaining + * @param validationFacts The rules used to validate the request for provisioning the network + * token. + * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method + * chaining */ public NetworkTokenNotificationDataV2 validationFacts(List validationFacts) { this.validationFacts = validationFacts; return this; } - public NetworkTokenNotificationDataV2 addValidationFactsItem(ValidationFacts validationFactsItem) { + public NetworkTokenNotificationDataV2 addValidationFactsItem( + ValidationFacts validationFactsItem) { if (this.validationFacts == null) { this.validationFacts = new ArrayList<>(); } @@ -466,7 +494,9 @@ public NetworkTokenNotificationDataV2 addValidationFactsItem(ValidationFacts val /** * The rules used to validate the request for provisioning the network token. - * @return validationFacts The rules used to validate the request for provisioning the network token. + * + * @return validationFacts The rules used to validate the request for provisioning the network + * token. */ @JsonProperty(JSON_PROPERTY_VALIDATION_FACTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -477,7 +507,8 @@ public List getValidationFacts() { /** * The rules used to validate the request for provisioning the network token. * - * @param validationFacts The rules used to validate the request for provisioning the network token. + * @param validationFacts The rules used to validate the request for provisioning the network + * token. */ @JsonProperty(JSON_PROPERTY_VALIDATION_FACTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -488,8 +519,9 @@ public void setValidationFacts(List validationFacts) { /** * wallet * - * @param wallet - * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method chaining + * @param wallet + * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method + * chaining */ public NetworkTokenNotificationDataV2 wallet(Wallet wallet) { this.wallet = wallet; @@ -498,7 +530,8 @@ public NetworkTokenNotificationDataV2 wallet(Wallet wallet) { /** * Get wallet - * @return wallet + * + * @return wallet */ @JsonProperty(JSON_PROPERTY_WALLET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -509,7 +542,7 @@ public Wallet getWallet() { /** * wallet * - * @param wallet + * @param wallet */ @JsonProperty(JSON_PROPERTY_WALLET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -517,9 +550,7 @@ public void setWallet(Wallet wallet) { this.wallet = wallet; } - /** - * Return true if this NetworkTokenNotificationDataV2 object is equal to o. - */ + /** Return true if this NetworkTokenNotificationDataV2 object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -528,25 +559,42 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - NetworkTokenNotificationDataV2 networkTokenNotificationDataV2 = (NetworkTokenNotificationDataV2) o; - return Objects.equals(this.authentication, networkTokenNotificationDataV2.authentication) && - Objects.equals(this.authenticationApplied, networkTokenNotificationDataV2.authenticationApplied) && - Objects.equals(this.balancePlatform, networkTokenNotificationDataV2.balancePlatform) && - Objects.equals(this.decision, networkTokenNotificationDataV2.decision) && - Objects.equals(this.id, networkTokenNotificationDataV2.id) && - Objects.equals(this.paymentInstrumentId, networkTokenNotificationDataV2.paymentInstrumentId) && - Objects.equals(this.status, networkTokenNotificationDataV2.status) && - Objects.equals(this.tokenLastFour, networkTokenNotificationDataV2.tokenLastFour) && - Objects.equals(this.tokenRequestor, networkTokenNotificationDataV2.tokenRequestor) && - Objects.equals(this.transactionRulesResult, networkTokenNotificationDataV2.transactionRulesResult) && - Objects.equals(this.type, networkTokenNotificationDataV2.type) && - Objects.equals(this.validationFacts, networkTokenNotificationDataV2.validationFacts) && - Objects.equals(this.wallet, networkTokenNotificationDataV2.wallet); + NetworkTokenNotificationDataV2 networkTokenNotificationDataV2 = + (NetworkTokenNotificationDataV2) o; + return Objects.equals(this.authentication, networkTokenNotificationDataV2.authentication) + && Objects.equals( + this.authenticationApplied, networkTokenNotificationDataV2.authenticationApplied) + && Objects.equals(this.balancePlatform, networkTokenNotificationDataV2.balancePlatform) + && Objects.equals(this.decision, networkTokenNotificationDataV2.decision) + && Objects.equals(this.id, networkTokenNotificationDataV2.id) + && Objects.equals( + this.paymentInstrumentId, networkTokenNotificationDataV2.paymentInstrumentId) + && Objects.equals(this.status, networkTokenNotificationDataV2.status) + && Objects.equals(this.tokenLastFour, networkTokenNotificationDataV2.tokenLastFour) + && Objects.equals(this.tokenRequestor, networkTokenNotificationDataV2.tokenRequestor) + && Objects.equals( + this.transactionRulesResult, networkTokenNotificationDataV2.transactionRulesResult) + && Objects.equals(this.type, networkTokenNotificationDataV2.type) + && Objects.equals(this.validationFacts, networkTokenNotificationDataV2.validationFacts) + && Objects.equals(this.wallet, networkTokenNotificationDataV2.wallet); } @Override public int hashCode() { - return Objects.hash(authentication, authenticationApplied, balancePlatform, decision, id, paymentInstrumentId, status, tokenLastFour, tokenRequestor, transactionRulesResult, type, validationFacts, wallet); + return Objects.hash( + authentication, + authenticationApplied, + balancePlatform, + decision, + id, + paymentInstrumentId, + status, + tokenLastFour, + tokenRequestor, + transactionRulesResult, + type, + validationFacts, + wallet); } @Override @@ -554,15 +602,21 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NetworkTokenNotificationDataV2 {\n"); sb.append(" authentication: ").append(toIndentedString(authentication)).append("\n"); - sb.append(" authenticationApplied: ").append(toIndentedString(authenticationApplied)).append("\n"); + sb.append(" authenticationApplied: ") + .append(toIndentedString(authenticationApplied)) + .append("\n"); sb.append(" balancePlatform: ").append(toIndentedString(balancePlatform)).append("\n"); sb.append(" decision: ").append(toIndentedString(decision)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" paymentInstrumentId: ").append(toIndentedString(paymentInstrumentId)).append("\n"); + sb.append(" paymentInstrumentId: ") + .append(toIndentedString(paymentInstrumentId)) + .append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" tokenLastFour: ").append(toIndentedString(tokenLastFour)).append("\n"); sb.append(" tokenRequestor: ").append(toIndentedString(tokenRequestor)).append("\n"); - sb.append(" transactionRulesResult: ").append(toIndentedString(transactionRulesResult)).append("\n"); + sb.append(" transactionRulesResult: ") + .append(toIndentedString(transactionRulesResult)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" validationFacts: ").append(toIndentedString(validationFacts)).append("\n"); sb.append(" wallet: ").append(toIndentedString(wallet)).append("\n"); @@ -571,8 +625,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -581,21 +634,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of NetworkTokenNotificationDataV2 given an JSON string * * @param jsonString JSON string * @return An instance of NetworkTokenNotificationDataV2 - * @throws JsonProcessingException if the JSON string is invalid with respect to NetworkTokenNotificationDataV2 + * @throws JsonProcessingException if the JSON string is invalid with respect to + * NetworkTokenNotificationDataV2 */ - public static NetworkTokenNotificationDataV2 fromJson(String jsonString) throws JsonProcessingException { + public static NetworkTokenNotificationDataV2 fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NetworkTokenNotificationDataV2.class); } -/** - * Convert an instance of NetworkTokenNotificationDataV2 to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of NetworkTokenNotificationDataV2 to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenNotificationRequest.java b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenNotificationRequest.java index 0607cf246..e17f650ab 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenNotificationRequest.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenNotificationRequest.java @@ -2,40 +2,33 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.configurationwebhooks.NetworkTokenNotificationDataV2; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * NetworkTokenNotificationRequest - */ +/** NetworkTokenNotificationRequest */ @JsonPropertyOrder({ NetworkTokenNotificationRequest.JSON_PROPERTY_DATA, NetworkTokenNotificationRequest.JSON_PROPERTY_ENVIRONMENT, NetworkTokenNotificationRequest.JSON_PROPERTY_TIMESTAMP, NetworkTokenNotificationRequest.JSON_PROPERTY_TYPE }) - public class NetworkTokenNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private NetworkTokenNotificationDataV2 data; @@ -46,11 +39,8 @@ public class NetworkTokenNotificationRequest { public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; private OffsetDateTime timestamp; - /** - * The type of webhook. - */ + /** The type of webhook. */ public enum TypeEnum { - BALANCEPLATFORM_NETWORKTOKEN_CREATED(String.valueOf("balancePlatform.networkToken.created")), BALANCEPLATFORM_NETWORKTOKEN_UPDATED(String.valueOf("balancePlatform.networkToken.updated")); @@ -60,7 +50,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -81,7 +71,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -89,14 +83,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public NetworkTokenNotificationRequest() { - } + public NetworkTokenNotificationRequest() {} /** * data * - * @param data - * @return the current {@code NetworkTokenNotificationRequest} instance, allowing for method chaining + * @param data + * @return the current {@code NetworkTokenNotificationRequest} instance, allowing for method + * chaining */ public NetworkTokenNotificationRequest data(NetworkTokenNotificationDataV2 data) { this.data = data; @@ -105,7 +99,8 @@ public NetworkTokenNotificationRequest data(NetworkTokenNotificationDataV2 data) /** * Get data - * @return data + * + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,7 +111,7 @@ public NetworkTokenNotificationDataV2 getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,10 +120,12 @@ public void setData(NetworkTokenNotificationDataV2 data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. - * @return the current {@code NetworkTokenNotificationRequest} instance, allowing for method chaining + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. + * @return the current {@code NetworkTokenNotificationRequest} instance, allowing for method + * chaining */ public NetworkTokenNotificationRequest environment(String environment) { this.environment = environment; @@ -136,8 +133,10 @@ public NetworkTokenNotificationRequest environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * + * @return environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,9 +145,10 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,7 +160,8 @@ public void setEnvironment(String environment) { * When the event was queued. * * @param timestamp When the event was queued. - * @return the current {@code NetworkTokenNotificationRequest} instance, allowing for method chaining + * @return the current {@code NetworkTokenNotificationRequest} instance, allowing for method + * chaining */ public NetworkTokenNotificationRequest timestamp(OffsetDateTime timestamp) { this.timestamp = timestamp; @@ -169,6 +170,7 @@ public NetworkTokenNotificationRequest timestamp(OffsetDateTime timestamp) { /** * When the event was queued. + * * @return timestamp When the event was queued. */ @JsonProperty(JSON_PROPERTY_TIMESTAMP) @@ -192,7 +194,8 @@ public void setTimestamp(OffsetDateTime timestamp) { * The type of webhook. * * @param type The type of webhook. - * @return the current {@code NetworkTokenNotificationRequest} instance, allowing for method chaining + * @return the current {@code NetworkTokenNotificationRequest} instance, allowing for method + * chaining */ public NetworkTokenNotificationRequest type(TypeEnum type) { this.type = type; @@ -201,6 +204,7 @@ public NetworkTokenNotificationRequest type(TypeEnum type) { /** * The type of webhook. + * * @return type The type of webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -220,9 +224,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this NetworkTokenNotificationRequest object is equal to o. - */ + /** Return true if this NetworkTokenNotificationRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -231,11 +233,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - NetworkTokenNotificationRequest networkTokenNotificationRequest = (NetworkTokenNotificationRequest) o; - return Objects.equals(this.data, networkTokenNotificationRequest.data) && - Objects.equals(this.environment, networkTokenNotificationRequest.environment) && - Objects.equals(this.timestamp, networkTokenNotificationRequest.timestamp) && - Objects.equals(this.type, networkTokenNotificationRequest.type); + NetworkTokenNotificationRequest networkTokenNotificationRequest = + (NetworkTokenNotificationRequest) o; + return Objects.equals(this.data, networkTokenNotificationRequest.data) + && Objects.equals(this.environment, networkTokenNotificationRequest.environment) + && Objects.equals(this.timestamp, networkTokenNotificationRequest.timestamp) + && Objects.equals(this.type, networkTokenNotificationRequest.type); } @Override @@ -256,8 +259,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -266,21 +268,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of NetworkTokenNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of NetworkTokenNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to NetworkTokenNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * NetworkTokenNotificationRequest */ - public static NetworkTokenNotificationRequest fromJson(String jsonString) throws JsonProcessingException { + public static NetworkTokenNotificationRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NetworkTokenNotificationRequest.class); } -/** - * Convert an instance of NetworkTokenNotificationRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of NetworkTokenNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRequestor.java b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRequestor.java index 73a0da7c9..60aa90363 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRequestor.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRequestor.java @@ -2,36 +2,26 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * NetworkTokenRequestor - */ +/** NetworkTokenRequestor */ @JsonPropertyOrder({ NetworkTokenRequestor.JSON_PROPERTY_ID, NetworkTokenRequestor.JSON_PROPERTY_NAME }) - public class NetworkTokenRequestor { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -39,8 +29,7 @@ public class NetworkTokenRequestor { public static final String JSON_PROPERTY_NAME = "name"; private String name; - public NetworkTokenRequestor() { - } + public NetworkTokenRequestor() {} /** * The unique identifier of the network token requestor. @@ -55,6 +44,7 @@ public NetworkTokenRequestor id(String id) { /** * The unique identifier of the network token requestor. + * * @return id The unique identifier of the network token requestor. */ @JsonProperty(JSON_PROPERTY_ID) @@ -87,6 +77,7 @@ public NetworkTokenRequestor name(String name) { /** * The name of the network token requestor. + * * @return name The name of the network token requestor. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -106,9 +97,7 @@ public void setName(String name) { this.name = name; } - /** - * Return true if this NetworkTokenRequestor object is equal to o. - */ + /** Return true if this NetworkTokenRequestor object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +107,8 @@ public boolean equals(Object o) { return false; } NetworkTokenRequestor networkTokenRequestor = (NetworkTokenRequestor) o; - return Objects.equals(this.id, networkTokenRequestor.id) && - Objects.equals(this.name, networkTokenRequestor.name); + return Objects.equals(this.id, networkTokenRequestor.id) + && Objects.equals(this.name, networkTokenRequestor.name); } @Override @@ -138,8 +127,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +136,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of NetworkTokenRequestor given an JSON string * * @param jsonString JSON string * @return An instance of NetworkTokenRequestor - * @throws JsonProcessingException if the JSON string is invalid with respect to NetworkTokenRequestor + * @throws JsonProcessingException if the JSON string is invalid with respect to + * NetworkTokenRequestor */ public static NetworkTokenRequestor fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NetworkTokenRequestor.class); } -/** - * Convert an instance of NetworkTokenRequestor to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of NetworkTokenRequestor to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRiskRuleData.java b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRiskRuleData.java index 99f8bc42b..6cb95aa83 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRiskRuleData.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRiskRuleData.java @@ -2,31 +2,22 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * NetworkTokenRiskRuleData - */ +/** NetworkTokenRiskRuleData */ @JsonPropertyOrder({ NetworkTokenRiskRuleData.JSON_PROPERTY_DESCRIPTION, NetworkTokenRiskRuleData.JSON_PROPERTY_ID, @@ -34,7 +25,6 @@ NetworkTokenRiskRuleData.JSON_PROPERTY_REFERENCE, NetworkTokenRiskRuleData.JSON_PROPERTY_SCORE }) - public class NetworkTokenRiskRuleData { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -51,8 +41,7 @@ public class NetworkTokenRiskRuleData { public static final String JSON_PROPERTY_SCORE = "score"; private Integer score; - public NetworkTokenRiskRuleData() { - } + public NetworkTokenRiskRuleData() {} /** * The description of the transaction rule. @@ -67,6 +56,7 @@ public NetworkTokenRiskRuleData description(String description) { /** * The description of the transaction rule. + * * @return description The description of the transaction rule. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -99,6 +89,7 @@ public NetworkTokenRiskRuleData id(String id) { /** * The unique identifier of the transaction rule. + * * @return id The unique identifier of the transaction rule. */ @JsonProperty(JSON_PROPERTY_ID) @@ -131,6 +122,7 @@ public NetworkTokenRiskRuleData outcomeType(String outcomeType) { /** * The outcome type of the transaction rule. + * * @return outcomeType The outcome type of the transaction rule. */ @JsonProperty(JSON_PROPERTY_OUTCOME_TYPE) @@ -163,6 +155,7 @@ public NetworkTokenRiskRuleData reference(String reference) { /** * The reference for the transaction rule. + * * @return reference The reference for the transaction rule. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -195,6 +188,7 @@ public NetworkTokenRiskRuleData score(Integer score) { /** * The transaction score determined by the rule. + * * @return score The transaction score determined by the rule. */ @JsonProperty(JSON_PROPERTY_SCORE) @@ -214,9 +208,7 @@ public void setScore(Integer score) { this.score = score; } - /** - * Return true if this NetworkTokenRiskRuleData object is equal to o. - */ + /** Return true if this NetworkTokenRiskRuleData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -226,11 +218,11 @@ public boolean equals(Object o) { return false; } NetworkTokenRiskRuleData networkTokenRiskRuleData = (NetworkTokenRiskRuleData) o; - return Objects.equals(this.description, networkTokenRiskRuleData.description) && - Objects.equals(this.id, networkTokenRiskRuleData.id) && - Objects.equals(this.outcomeType, networkTokenRiskRuleData.outcomeType) && - Objects.equals(this.reference, networkTokenRiskRuleData.reference) && - Objects.equals(this.score, networkTokenRiskRuleData.score); + return Objects.equals(this.description, networkTokenRiskRuleData.description) + && Objects.equals(this.id, networkTokenRiskRuleData.id) + && Objects.equals(this.outcomeType, networkTokenRiskRuleData.outcomeType) + && Objects.equals(this.reference, networkTokenRiskRuleData.reference) + && Objects.equals(this.score, networkTokenRiskRuleData.score); } @Override @@ -252,8 +244,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -262,21 +253,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of NetworkTokenRiskRuleData given an JSON string * * @param jsonString JSON string * @return An instance of NetworkTokenRiskRuleData - * @throws JsonProcessingException if the JSON string is invalid with respect to NetworkTokenRiskRuleData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * NetworkTokenRiskRuleData */ - public static NetworkTokenRiskRuleData fromJson(String jsonString) throws JsonProcessingException { + public static NetworkTokenRiskRuleData fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NetworkTokenRiskRuleData.class); } -/** - * Convert an instance of NetworkTokenRiskRuleData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of NetworkTokenRiskRuleData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRiskRuleSource.java b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRiskRuleSource.java index 17862845a..4a5f85e4f 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRiskRuleSource.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRiskRuleSource.java @@ -2,36 +2,26 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * NetworkTokenRiskRuleSource - */ +/** NetworkTokenRiskRuleSource */ @JsonPropertyOrder({ NetworkTokenRiskRuleSource.JSON_PROPERTY_ID, NetworkTokenRiskRuleSource.JSON_PROPERTY_TYPE }) - public class NetworkTokenRiskRuleSource { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -39,8 +29,7 @@ public class NetworkTokenRiskRuleSource { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public NetworkTokenRiskRuleSource() { - } + public NetworkTokenRiskRuleSource() {} /** * The unique identifier of the resource to which the transaction rule applies. @@ -55,6 +44,7 @@ public NetworkTokenRiskRuleSource id(String id) { /** * The unique identifier of the resource to which the transaction rule applies. + * * @return id The unique identifier of the resource to which the transaction rule applies. */ @JsonProperty(JSON_PROPERTY_ID) @@ -75,9 +65,15 @@ public void setId(String id) { } /** - * Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. + * Indicates the type of resource for which the transaction rule is defined. Possible values: * + * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * + * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule + * imposed by Adyen. * - * @param type Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. + * @param type Indicates the type of resource for which the transaction rule is defined. Possible + * values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * + * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide + * rule imposed by Adyen. * @return the current {@code NetworkTokenRiskRuleSource} instance, allowing for method chaining */ public NetworkTokenRiskRuleSource type(String type) { @@ -86,8 +82,15 @@ public NetworkTokenRiskRuleSource type(String type) { } /** - * Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. - * @return type Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. + * Indicates the type of resource for which the transaction rule is defined. Possible values: * + * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * + * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule + * imposed by Adyen. + * + * @return type Indicates the type of resource for which the transaction rule is defined. Possible + * values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * + * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide + * rule imposed by Adyen. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +99,15 @@ public String getType() { } /** - * Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. + * Indicates the type of resource for which the transaction rule is defined. Possible values: * + * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * + * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule + * imposed by Adyen. * - * @param type Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. + * @param type Indicates the type of resource for which the transaction rule is defined. Possible + * values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * + * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide + * rule imposed by Adyen. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +115,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this NetworkTokenRiskRuleSource object is equal to o. - */ + /** Return true if this NetworkTokenRiskRuleSource object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +125,8 @@ public boolean equals(Object o) { return false; } NetworkTokenRiskRuleSource networkTokenRiskRuleSource = (NetworkTokenRiskRuleSource) o; - return Objects.equals(this.id, networkTokenRiskRuleSource.id) && - Objects.equals(this.type, networkTokenRiskRuleSource.type); + return Objects.equals(this.id, networkTokenRiskRuleSource.id) + && Objects.equals(this.type, networkTokenRiskRuleSource.type); } @Override @@ -138,8 +145,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +154,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of NetworkTokenRiskRuleSource given an JSON string * * @param jsonString JSON string * @return An instance of NetworkTokenRiskRuleSource - * @throws JsonProcessingException if the JSON string is invalid with respect to NetworkTokenRiskRuleSource + * @throws JsonProcessingException if the JSON string is invalid with respect to + * NetworkTokenRiskRuleSource */ - public static NetworkTokenRiskRuleSource fromJson(String jsonString) throws JsonProcessingException { + public static NetworkTokenRiskRuleSource fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NetworkTokenRiskRuleSource.class); } -/** - * Convert an instance of NetworkTokenRiskRuleSource to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of NetworkTokenRiskRuleSource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenTransactionRulesResult.java b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenTransactionRulesResult.java index 01efd0e83..3a6444eeb 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenTransactionRulesResult.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenTransactionRulesResult.java @@ -2,41 +2,30 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.configurationwebhooks.NetworkTokenTriggeredRiskRule; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * NetworkTokenTransactionRulesResult - */ +/** NetworkTokenTransactionRulesResult */ @JsonPropertyOrder({ NetworkTokenTransactionRulesResult.JSON_PROPERTY_ADVICE, NetworkTokenTransactionRulesResult.JSON_PROPERTY_ALL_HARD_BLOCK_RULES_PASSED, NetworkTokenTransactionRulesResult.JSON_PROPERTY_SCORE, NetworkTokenTransactionRulesResult.JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES }) - public class NetworkTokenTransactionRulesResult { public static final String JSON_PROPERTY_ADVICE = "advice"; private String advice; @@ -47,17 +36,18 @@ public class NetworkTokenTransactionRulesResult { public static final String JSON_PROPERTY_SCORE = "score"; private Integer score; - public static final String JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES = "triggeredTransactionRules"; + public static final String JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES = + "triggeredTransactionRules"; private List triggeredTransactionRules; - public NetworkTokenTransactionRulesResult() { - } + public NetworkTokenTransactionRulesResult() {} /** * The advice given by the Risk analysis. * * @param advice The advice given by the Risk analysis. - * @return the current {@code NetworkTokenTransactionRulesResult} instance, allowing for method chaining + * @return the current {@code NetworkTokenTransactionRulesResult} instance, allowing for method + * chaining */ public NetworkTokenTransactionRulesResult advice(String advice) { this.advice = advice; @@ -66,6 +56,7 @@ public NetworkTokenTransactionRulesResult advice(String advice) { /** * The advice given by the Risk analysis. + * * @return advice The advice given by the Risk analysis. */ @JsonProperty(JSON_PROPERTY_ADVICE) @@ -88,17 +79,22 @@ public void setAdvice(String advice) { /** * Indicates whether the transaction passed all rules with `outcomeType` **hardBlock**. * - * @param allHardBlockRulesPassed Indicates whether the transaction passed all rules with `outcomeType` **hardBlock**. - * @return the current {@code NetworkTokenTransactionRulesResult} instance, allowing for method chaining + * @param allHardBlockRulesPassed Indicates whether the transaction passed all rules with + * `outcomeType` **hardBlock**. + * @return the current {@code NetworkTokenTransactionRulesResult} instance, allowing for method + * chaining */ - public NetworkTokenTransactionRulesResult allHardBlockRulesPassed(Boolean allHardBlockRulesPassed) { + public NetworkTokenTransactionRulesResult allHardBlockRulesPassed( + Boolean allHardBlockRulesPassed) { this.allHardBlockRulesPassed = allHardBlockRulesPassed; return this; } /** * Indicates whether the transaction passed all rules with `outcomeType` **hardBlock**. - * @return allHardBlockRulesPassed Indicates whether the transaction passed all rules with `outcomeType` **hardBlock**. + * + * @return allHardBlockRulesPassed Indicates whether the transaction passed all rules with + * `outcomeType` **hardBlock**. */ @JsonProperty(JSON_PROPERTY_ALL_HARD_BLOCK_RULES_PASSED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -109,7 +105,8 @@ public Boolean getAllHardBlockRulesPassed() { /** * Indicates whether the transaction passed all rules with `outcomeType` **hardBlock**. * - * @param allHardBlockRulesPassed Indicates whether the transaction passed all rules with `outcomeType` **hardBlock**. + * @param allHardBlockRulesPassed Indicates whether the transaction passed all rules with + * `outcomeType` **hardBlock**. */ @JsonProperty(JSON_PROPERTY_ALL_HARD_BLOCK_RULES_PASSED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,7 +118,8 @@ public void setAllHardBlockRulesPassed(Boolean allHardBlockRulesPassed) { * The score of the Risk analysis. * * @param score The score of the Risk analysis. - * @return the current {@code NetworkTokenTransactionRulesResult} instance, allowing for method chaining + * @return the current {@code NetworkTokenTransactionRulesResult} instance, allowing for method + * chaining */ public NetworkTokenTransactionRulesResult score(Integer score) { this.score = score; @@ -130,6 +128,7 @@ public NetworkTokenTransactionRulesResult score(Integer score) { /** * The score of the Risk analysis. + * * @return score The score of the Risk analysis. */ @JsonProperty(JSON_PROPERTY_SCORE) @@ -152,15 +151,19 @@ public void setScore(Integer score) { /** * Contains a list of all triggered transaction rules and the corresponding data. * - * @param triggeredTransactionRules Contains a list of all triggered transaction rules and the corresponding data. - * @return the current {@code NetworkTokenTransactionRulesResult} instance, allowing for method chaining + * @param triggeredTransactionRules Contains a list of all triggered transaction rules and the + * corresponding data. + * @return the current {@code NetworkTokenTransactionRulesResult} instance, allowing for method + * chaining */ - public NetworkTokenTransactionRulesResult triggeredTransactionRules(List triggeredTransactionRules) { + public NetworkTokenTransactionRulesResult triggeredTransactionRules( + List triggeredTransactionRules) { this.triggeredTransactionRules = triggeredTransactionRules; return this; } - public NetworkTokenTransactionRulesResult addTriggeredTransactionRulesItem(NetworkTokenTriggeredRiskRule triggeredTransactionRulesItem) { + public NetworkTokenTransactionRulesResult addTriggeredTransactionRulesItem( + NetworkTokenTriggeredRiskRule triggeredTransactionRulesItem) { if (this.triggeredTransactionRules == null) { this.triggeredTransactionRules = new ArrayList<>(); } @@ -170,7 +173,9 @@ public NetworkTokenTransactionRulesResult addTriggeredTransactionRulesItem(Netwo /** * Contains a list of all triggered transaction rules and the corresponding data. - * @return triggeredTransactionRules Contains a list of all triggered transaction rules and the corresponding data. + * + * @return triggeredTransactionRules Contains a list of all triggered transaction rules and the + * corresponding data. */ @JsonProperty(JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,17 +186,17 @@ public List getTriggeredTransactionRules() { /** * Contains a list of all triggered transaction rules and the corresponding data. * - * @param triggeredTransactionRules Contains a list of all triggered transaction rules and the corresponding data. + * @param triggeredTransactionRules Contains a list of all triggered transaction rules and the + * corresponding data. */ @JsonProperty(JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTriggeredTransactionRules(List triggeredTransactionRules) { + public void setTriggeredTransactionRules( + List triggeredTransactionRules) { this.triggeredTransactionRules = triggeredTransactionRules; } - /** - * Return true if this NetworkTokenTransactionRulesResult object is equal to o. - */ + /** Return true if this NetworkTokenTransactionRulesResult object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -200,11 +205,16 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - NetworkTokenTransactionRulesResult networkTokenTransactionRulesResult = (NetworkTokenTransactionRulesResult) o; - return Objects.equals(this.advice, networkTokenTransactionRulesResult.advice) && - Objects.equals(this.allHardBlockRulesPassed, networkTokenTransactionRulesResult.allHardBlockRulesPassed) && - Objects.equals(this.score, networkTokenTransactionRulesResult.score) && - Objects.equals(this.triggeredTransactionRules, networkTokenTransactionRulesResult.triggeredTransactionRules); + NetworkTokenTransactionRulesResult networkTokenTransactionRulesResult = + (NetworkTokenTransactionRulesResult) o; + return Objects.equals(this.advice, networkTokenTransactionRulesResult.advice) + && Objects.equals( + this.allHardBlockRulesPassed, + networkTokenTransactionRulesResult.allHardBlockRulesPassed) + && Objects.equals(this.score, networkTokenTransactionRulesResult.score) + && Objects.equals( + this.triggeredTransactionRules, + networkTokenTransactionRulesResult.triggeredTransactionRules); } @Override @@ -217,16 +227,19 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NetworkTokenTransactionRulesResult {\n"); sb.append(" advice: ").append(toIndentedString(advice)).append("\n"); - sb.append(" allHardBlockRulesPassed: ").append(toIndentedString(allHardBlockRulesPassed)).append("\n"); + sb.append(" allHardBlockRulesPassed: ") + .append(toIndentedString(allHardBlockRulesPassed)) + .append("\n"); sb.append(" score: ").append(toIndentedString(score)).append("\n"); - sb.append(" triggeredTransactionRules: ").append(toIndentedString(triggeredTransactionRules)).append("\n"); + sb.append(" triggeredTransactionRules: ") + .append(toIndentedString(triggeredTransactionRules)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -235,21 +248,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of NetworkTokenTransactionRulesResult given an JSON string * * @param jsonString JSON string * @return An instance of NetworkTokenTransactionRulesResult - * @throws JsonProcessingException if the JSON string is invalid with respect to NetworkTokenTransactionRulesResult + * @throws JsonProcessingException if the JSON string is invalid with respect to + * NetworkTokenTransactionRulesResult */ - public static NetworkTokenTransactionRulesResult fromJson(String jsonString) throws JsonProcessingException { + public static NetworkTokenTransactionRulesResult fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NetworkTokenTransactionRulesResult.class); } -/** - * Convert an instance of NetworkTokenTransactionRulesResult to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of NetworkTokenTransactionRulesResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenTriggeredRiskRule.java b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenTriggeredRiskRule.java index 66b42808b..b9e7c9203 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenTriggeredRiskRule.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenTriggeredRiskRule.java @@ -2,39 +2,27 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.configurationwebhooks.NetworkTokenRiskRuleData; -import com.adyen.model.configurationwebhooks.NetworkTokenRiskRuleSource; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * NetworkTokenTriggeredRiskRule - */ +/** NetworkTokenTriggeredRiskRule */ @JsonPropertyOrder({ NetworkTokenTriggeredRiskRule.JSON_PROPERTY_REASON, NetworkTokenTriggeredRiskRule.JSON_PROPERTY_TRANSACTION_RULE, NetworkTokenTriggeredRiskRule.JSON_PROPERTY_TRANSACTION_RULE_SOURCE }) - public class NetworkTokenTriggeredRiskRule { public static final String JSON_PROPERTY_REASON = "reason"; private String reason; @@ -45,14 +33,14 @@ public class NetworkTokenTriggeredRiskRule { public static final String JSON_PROPERTY_TRANSACTION_RULE_SOURCE = "transactionRuleSource"; private NetworkTokenRiskRuleSource transactionRuleSource; - public NetworkTokenTriggeredRiskRule() { - } + public NetworkTokenTriggeredRiskRule() {} /** * Explains why the transaction rule failed. * * @param reason Explains why the transaction rule failed. - * @return the current {@code NetworkTokenTriggeredRiskRule} instance, allowing for method chaining + * @return the current {@code NetworkTokenTriggeredRiskRule} instance, allowing for method + * chaining */ public NetworkTokenTriggeredRiskRule reason(String reason) { this.reason = reason; @@ -61,6 +49,7 @@ public NetworkTokenTriggeredRiskRule reason(String reason) { /** * Explains why the transaction rule failed. + * * @return reason Explains why the transaction rule failed. */ @JsonProperty(JSON_PROPERTY_REASON) @@ -83,8 +72,9 @@ public void setReason(String reason) { /** * transactionRule * - * @param transactionRule - * @return the current {@code NetworkTokenTriggeredRiskRule} instance, allowing for method chaining + * @param transactionRule + * @return the current {@code NetworkTokenTriggeredRiskRule} instance, allowing for method + * chaining */ public NetworkTokenTriggeredRiskRule transactionRule(NetworkTokenRiskRuleData transactionRule) { this.transactionRule = transactionRule; @@ -93,7 +83,8 @@ public NetworkTokenTriggeredRiskRule transactionRule(NetworkTokenRiskRuleData tr /** * Get transactionRule - * @return transactionRule + * + * @return transactionRule */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,7 +95,7 @@ public NetworkTokenRiskRuleData getTransactionRule() { /** * transactionRule * - * @param transactionRule + * @param transactionRule */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,17 +106,20 @@ public void setTransactionRule(NetworkTokenRiskRuleData transactionRule) { /** * transactionRuleSource * - * @param transactionRuleSource - * @return the current {@code NetworkTokenTriggeredRiskRule} instance, allowing for method chaining + * @param transactionRuleSource + * @return the current {@code NetworkTokenTriggeredRiskRule} instance, allowing for method + * chaining */ - public NetworkTokenTriggeredRiskRule transactionRuleSource(NetworkTokenRiskRuleSource transactionRuleSource) { + public NetworkTokenTriggeredRiskRule transactionRuleSource( + NetworkTokenRiskRuleSource transactionRuleSource) { this.transactionRuleSource = transactionRuleSource; return this; } /** * Get transactionRuleSource - * @return transactionRuleSource + * + * @return transactionRuleSource */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULE_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,7 +130,7 @@ public NetworkTokenRiskRuleSource getTransactionRuleSource() { /** * transactionRuleSource * - * @param transactionRuleSource + * @param transactionRuleSource */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULE_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,9 +138,7 @@ public void setTransactionRuleSource(NetworkTokenRiskRuleSource transactionRuleS this.transactionRuleSource = transactionRuleSource; } - /** - * Return true if this NetworkTokenTriggeredRiskRule object is equal to o. - */ + /** Return true if this NetworkTokenTriggeredRiskRule object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,9 +148,10 @@ public boolean equals(Object o) { return false; } NetworkTokenTriggeredRiskRule networkTokenTriggeredRiskRule = (NetworkTokenTriggeredRiskRule) o; - return Objects.equals(this.reason, networkTokenTriggeredRiskRule.reason) && - Objects.equals(this.transactionRule, networkTokenTriggeredRiskRule.transactionRule) && - Objects.equals(this.transactionRuleSource, networkTokenTriggeredRiskRule.transactionRuleSource); + return Objects.equals(this.reason, networkTokenTriggeredRiskRule.reason) + && Objects.equals(this.transactionRule, networkTokenTriggeredRiskRule.transactionRule) + && Objects.equals( + this.transactionRuleSource, networkTokenTriggeredRiskRule.transactionRuleSource); } @Override @@ -172,14 +165,15 @@ public String toString() { sb.append("class NetworkTokenTriggeredRiskRule {\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" transactionRule: ").append(toIndentedString(transactionRule)).append("\n"); - sb.append(" transactionRuleSource: ").append(toIndentedString(transactionRuleSource)).append("\n"); + sb.append(" transactionRuleSource: ") + .append(toIndentedString(transactionRuleSource)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -188,21 +182,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of NetworkTokenTriggeredRiskRule given an JSON string * * @param jsonString JSON string * @return An instance of NetworkTokenTriggeredRiskRule - * @throws JsonProcessingException if the JSON string is invalid with respect to NetworkTokenTriggeredRiskRule + * @throws JsonProcessingException if the JSON string is invalid with respect to + * NetworkTokenTriggeredRiskRule */ - public static NetworkTokenTriggeredRiskRule fromJson(String jsonString) throws JsonProcessingException { + public static NetworkTokenTriggeredRiskRule fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NetworkTokenTriggeredRiskRule.class); } -/** - * Convert an instance of NetworkTokenTriggeredRiskRule to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of NetworkTokenTriggeredRiskRule to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrument.java b/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrument.java index 20b8611f0..fb4aad75d 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrument.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrument.java @@ -2,36 +2,28 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.configurationwebhooks.BankAccountDetails; -import com.adyen.model.configurationwebhooks.Card; -import com.adyen.model.configurationwebhooks.PaymentInstrumentAdditionalBankAccountIdentificationsInner; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * PaymentInstrument - */ +/** PaymentInstrument */ @JsonPropertyOrder({ PaymentInstrument.JSON_PROPERTY_ADDITIONAL_BANK_ACCOUNT_IDENTIFICATIONS, PaymentInstrument.JSON_PROPERTY_BALANCE_ACCOUNT_ID, @@ -49,11 +41,12 @@ PaymentInstrument.JSON_PROPERTY_STATUS_REASON, PaymentInstrument.JSON_PROPERTY_TYPE }) - public class PaymentInstrument { - public static final String JSON_PROPERTY_ADDITIONAL_BANK_ACCOUNT_IDENTIFICATIONS = "additionalBankAccountIdentifications"; + public static final String JSON_PROPERTY_ADDITIONAL_BANK_ACCOUNT_IDENTIFICATIONS = + "additionalBankAccountIdentifications"; @Deprecated // deprecated since Configuration webhooks v2: Please use `bankAccount` object instead - private List additionalBankAccountIdentifications; + private List + additionalBankAccountIdentifications; public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; @@ -86,10 +79,16 @@ public class PaymentInstrument { private String replacementOfId; /** - * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment + * instrument, it is set to **active** by default. However, there can be exceptions for cards + * based on the `card.formFactor` and the `issuingCountryCode`. For example, + * when issuing physical cards in the US, the default status is **inactive**. Possible values: * + * **active**: The payment instrument is active and can be used to make payments. * **inactive**: + * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The + * payment instrument is suspended, either because it was stolen or lost. * **closed**: The + * payment instrument is permanently closed. This action cannot be undone. */ public enum StatusEnum { - ACTIVE(String.valueOf("active")), CLOSED(String.valueOf("closed")), @@ -103,7 +102,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -124,7 +123,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -136,10 +139,12 @@ public static StatusEnum fromValue(String value) { private String statusComment; /** - * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * The reason for the status of the payment instrument. Possible values: **accountClosure**, + * **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, + * **transactionRule**, **other**. If the reason is **other**, you must also send the + * `statusComment` parameter describing the status change. */ public enum StatusReasonEnum { - ACCOUNTCLOSURE(String.valueOf("accountClosure")), DAMAGED(String.valueOf("damaged")), @@ -163,7 +168,7 @@ public enum StatusReasonEnum { private String value; StatusReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -184,7 +189,11 @@ public static StatusReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusReasonEnum.values())); + LOG.warning( + "StatusReasonEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusReasonEnum.values())); return null; } } @@ -192,11 +201,8 @@ public static StatusReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS_REASON = "statusReason"; private StatusReasonEnum statusReason; - /** - * The type of payment instrument. Possible values: **card**, **bankAccount**. - */ + /** The type of payment instrument. Possible values: **card**, **bankAccount**. */ public enum TypeEnum { - BANKACCOUNT(String.valueOf("bankAccount")), CARD(String.valueOf("card")); @@ -206,7 +212,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -227,7 +233,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -235,25 +245,29 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PaymentInstrument() { - } + public PaymentInstrument() {} /** - * Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. + * Contains optional, additional business account details. Returned when you create a payment + * instrument with `type` **bankAccount**. * - * @param additionalBankAccountIdentifications Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. + * @param additionalBankAccountIdentifications Contains optional, additional business account + * details. Returned when you create a payment instrument with `type` + * **bankAccount**. * @return the current {@code PaymentInstrument} instance, allowing for method chaining - * - * @deprecated since Configuration webhooks v2 - * Please use `bankAccount` object instead + * @deprecated since Configuration webhooks v2 Please use `bankAccount` object instead */ @Deprecated // deprecated since Configuration webhooks v2: Please use `bankAccount` object instead - public PaymentInstrument additionalBankAccountIdentifications(List additionalBankAccountIdentifications) { + public PaymentInstrument additionalBankAccountIdentifications( + List + additionalBankAccountIdentifications) { this.additionalBankAccountIdentifications = additionalBankAccountIdentifications; return this; } - public PaymentInstrument addAdditionalBankAccountIdentificationsItem(PaymentInstrumentAdditionalBankAccountIdentificationsInner additionalBankAccountIdentificationsItem) { + public PaymentInstrument addAdditionalBankAccountIdentificationsItem( + PaymentInstrumentAdditionalBankAccountIdentificationsInner + additionalBankAccountIdentificationsItem) { if (this.additionalBankAccountIdentifications == null) { this.additionalBankAccountIdentifications = new ArrayList<>(); } @@ -262,36 +276,49 @@ public PaymentInstrument addAdditionalBankAccountIdentificationsItem(PaymentInst } /** - * Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. - * @return additionalBankAccountIdentifications Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. - * @deprecated // deprecated since Configuration webhooks v2: Please use `bankAccount` object instead + * Contains optional, additional business account details. Returned when you create a payment + * instrument with `type` **bankAccount**. + * + * @return additionalBankAccountIdentifications Contains optional, additional business account + * details. Returned when you create a payment instrument with `type` + * **bankAccount**. + * @deprecated // deprecated since Configuration webhooks v2: Please use `bankAccount` object + * instead */ @Deprecated // deprecated since Configuration webhooks v2: Please use `bankAccount` object instead @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_ACCOUNT_IDENTIFICATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getAdditionalBankAccountIdentifications() { + public List + getAdditionalBankAccountIdentifications() { return additionalBankAccountIdentifications; } /** - * Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. + * Contains optional, additional business account details. Returned when you create a payment + * instrument with `type` **bankAccount**. * - * @param additionalBankAccountIdentifications Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. - * - * @deprecated since Configuration webhooks v2 - * Please use `bankAccount` object instead + * @param additionalBankAccountIdentifications Contains optional, additional business account + * details. Returned when you create a payment instrument with `type` + * **bankAccount**. + * @deprecated since Configuration webhooks v2 Please use `bankAccount` object instead */ @Deprecated // deprecated since Configuration webhooks v2: Please use `bankAccount` object instead @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_ACCOUNT_IDENTIFICATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAdditionalBankAccountIdentifications(List additionalBankAccountIdentifications) { + public void setAdditionalBankAccountIdentifications( + List + additionalBankAccountIdentifications) { this.additionalBankAccountIdentifications = additionalBankAccountIdentifications; } /** - * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. + * The unique identifier of the [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) + * associated with the payment instrument. * - * @param balanceAccountId The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. + * @param balanceAccountId The unique identifier of the [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) + * associated with the payment instrument. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument balanceAccountId(String balanceAccountId) { @@ -300,8 +327,13 @@ public PaymentInstrument balanceAccountId(String balanceAccountId) { } /** - * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. - * @return balanceAccountId The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. + * The unique identifier of the [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) + * associated with the payment instrument. + * + * @return balanceAccountId The unique identifier of the [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) + * associated with the payment instrument. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -310,9 +342,13 @@ public String getBalanceAccountId() { } /** - * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. + * The unique identifier of the [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) + * associated with the payment instrument. * - * @param balanceAccountId The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. + * @param balanceAccountId The unique identifier of the [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) + * associated with the payment instrument. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -323,7 +359,7 @@ public void setBalanceAccountId(String balanceAccountId) { /** * bankAccount * - * @param bankAccount + * @param bankAccount * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument bankAccount(BankAccountDetails bankAccount) { @@ -333,7 +369,8 @@ public PaymentInstrument bankAccount(BankAccountDetails bankAccount) { /** * Get bankAccount - * @return bankAccount + * + * @return bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -344,7 +381,7 @@ public BankAccountDetails getBankAccount() { /** * bankAccount * - * @param bankAccount + * @param bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -355,7 +392,7 @@ public void setBankAccount(BankAccountDetails bankAccount) { /** * card * - * @param card + * @param card * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument card(Card card) { @@ -365,7 +402,8 @@ public PaymentInstrument card(Card card) { /** * Get card - * @return card + * + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -376,7 +414,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -397,6 +435,7 @@ public PaymentInstrument description(String description) { /** * Your description for the payment instrument, maximum 300 characters. + * * @return description Your description for the payment instrument, maximum 300 characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -429,6 +468,7 @@ public PaymentInstrument id(String id) { /** * The unique identifier of the payment instrument. + * * @return id The unique identifier of the payment instrument. */ @JsonProperty(JSON_PROPERTY_ID) @@ -449,9 +489,12 @@ public void setId(String id) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code where the payment instrument is issued. For example, **NL** or **US**. * - * @param issuingCountryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. + * @param issuingCountryCode The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment + * instrument is issued. For example, **NL** or **US**. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument issuingCountryCode(String issuingCountryCode) { @@ -460,8 +503,12 @@ public PaymentInstrument issuingCountryCode(String issuingCountryCode) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. - * @return issuingCountryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code where the payment instrument is issued. For example, **NL** or **US**. + * + * @return issuingCountryCode The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment + * instrument is issued. For example, **NL** or **US**. */ @JsonProperty(JSON_PROPERTY_ISSUING_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -470,9 +517,12 @@ public String getIssuingCountryCode() { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code where the payment instrument is issued. For example, **NL** or **US**. * - * @param issuingCountryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. + * @param issuingCountryCode The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment + * instrument is issued. For example, **NL** or **US**. */ @JsonProperty(JSON_PROPERTY_ISSUING_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -481,9 +531,13 @@ public void setIssuingCountryCode(String issuingCountryCode) { } /** - * The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. + * The unique identifier of the [payment instrument + * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) + * to which the payment instrument belongs. * - * @param paymentInstrumentGroupId The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. + * @param paymentInstrumentGroupId The unique identifier of the [payment instrument + * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) + * to which the payment instrument belongs. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument paymentInstrumentGroupId(String paymentInstrumentGroupId) { @@ -492,8 +546,13 @@ public PaymentInstrument paymentInstrumentGroupId(String paymentInstrumentGroupI } /** - * The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. - * @return paymentInstrumentGroupId The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. + * The unique identifier of the [payment instrument + * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) + * to which the payment instrument belongs. + * + * @return paymentInstrumentGroupId The unique identifier of the [payment instrument + * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) + * to which the payment instrument belongs. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_GROUP_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -502,9 +561,13 @@ public String getPaymentInstrumentGroupId() { } /** - * The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. + * The unique identifier of the [payment instrument + * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) + * to which the payment instrument belongs. * - * @param paymentInstrumentGroupId The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. + * @param paymentInstrumentGroupId The unique identifier of the [payment instrument + * group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) + * to which the payment instrument belongs. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_GROUP_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -525,6 +588,7 @@ public PaymentInstrument reference(String reference) { /** * Your reference for the payment instrument, maximum 150 characters. + * * @return reference Your reference for the payment instrument, maximum 150 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -547,7 +611,8 @@ public void setReference(String reference) { /** * The unique identifier of the payment instrument that replaced this payment instrument. * - * @param replacedById The unique identifier of the payment instrument that replaced this payment instrument. + * @param replacedById The unique identifier of the payment instrument that replaced this payment + * instrument. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument replacedById(String replacedById) { @@ -557,7 +622,9 @@ public PaymentInstrument replacedById(String replacedById) { /** * The unique identifier of the payment instrument that replaced this payment instrument. - * @return replacedById The unique identifier of the payment instrument that replaced this payment instrument. + * + * @return replacedById The unique identifier of the payment instrument that replaced this payment + * instrument. */ @JsonProperty(JSON_PROPERTY_REPLACED_BY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -568,7 +635,8 @@ public String getReplacedById() { /** * The unique identifier of the payment instrument that replaced this payment instrument. * - * @param replacedById The unique identifier of the payment instrument that replaced this payment instrument. + * @param replacedById The unique identifier of the payment instrument that replaced this payment + * instrument. */ @JsonProperty(JSON_PROPERTY_REPLACED_BY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -579,7 +647,8 @@ public void setReplacedById(String replacedById) { /** * The unique identifier of the payment instrument that is replaced by this payment instrument. * - * @param replacementOfId The unique identifier of the payment instrument that is replaced by this payment instrument. + * @param replacementOfId The unique identifier of the payment instrument that is replaced by this + * payment instrument. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument replacementOfId(String replacementOfId) { @@ -589,7 +658,9 @@ public PaymentInstrument replacementOfId(String replacementOfId) { /** * The unique identifier of the payment instrument that is replaced by this payment instrument. - * @return replacementOfId The unique identifier of the payment instrument that is replaced by this payment instrument. + * + * @return replacementOfId The unique identifier of the payment instrument that is replaced by + * this payment instrument. */ @JsonProperty(JSON_PROPERTY_REPLACEMENT_OF_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -600,7 +671,8 @@ public String getReplacementOfId() { /** * The unique identifier of the payment instrument that is replaced by this payment instrument. * - * @param replacementOfId The unique identifier of the payment instrument that is replaced by this payment instrument. + * @param replacementOfId The unique identifier of the payment instrument that is replaced by this + * payment instrument. */ @JsonProperty(JSON_PROPERTY_REPLACEMENT_OF_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -609,9 +681,24 @@ public void setReplacementOfId(String replacementOfId) { } /** - * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. - * - * @param status The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment + * instrument, it is set to **active** by default. However, there can be exceptions for cards + * based on the `card.formFactor` and the `issuingCountryCode`. For example, + * when issuing physical cards in the US, the default status is **inactive**. Possible values: * + * **active**: The payment instrument is active and can be used to make payments. * **inactive**: + * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The + * payment instrument is suspended, either because it was stolen or lost. * **closed**: The + * payment instrument is permanently closed. This action cannot be undone. + * + * @param status The status of the payment instrument. If a status is not specified when creating + * a payment instrument, it is set to **active** by default. However, there can be exceptions + * for cards based on the `card.formFactor` and the `issuingCountryCode`. + * For example, when issuing physical cards in the US, the default status is **inactive**. + * Possible values: * **active**: The payment instrument is active and can be used to make + * payments. * **inactive**: The payment instrument is inactive and cannot be used to make + * payments. * **suspended**: The payment instrument is suspended, either because it was + * stolen or lost. * **closed**: The payment instrument is permanently closed. This action + * cannot be undone. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument status(StatusEnum status) { @@ -620,8 +707,24 @@ public PaymentInstrument status(StatusEnum status) { } /** - * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. - * @return status The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment + * instrument, it is set to **active** by default. However, there can be exceptions for cards + * based on the `card.formFactor` and the `issuingCountryCode`. For example, + * when issuing physical cards in the US, the default status is **inactive**. Possible values: * + * **active**: The payment instrument is active and can be used to make payments. * **inactive**: + * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The + * payment instrument is suspended, either because it was stolen or lost. * **closed**: The + * payment instrument is permanently closed. This action cannot be undone. + * + * @return status The status of the payment instrument. If a status is not specified when creating + * a payment instrument, it is set to **active** by default. However, there can be exceptions + * for cards based on the `card.formFactor` and the `issuingCountryCode`. + * For example, when issuing physical cards in the US, the default status is **inactive**. + * Possible values: * **active**: The payment instrument is active and can be used to make + * payments. * **inactive**: The payment instrument is inactive and cannot be used to make + * payments. * **suspended**: The payment instrument is suspended, either because it was + * stolen or lost. * **closed**: The payment instrument is permanently closed. This action + * cannot be undone. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -630,9 +733,24 @@ public StatusEnum getStatus() { } /** - * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment + * instrument, it is set to **active** by default. However, there can be exceptions for cards + * based on the `card.formFactor` and the `issuingCountryCode`. For example, + * when issuing physical cards in the US, the default status is **inactive**. Possible values: * + * **active**: The payment instrument is active and can be used to make payments. * **inactive**: + * The payment instrument is inactive and cannot be used to make payments. * **suspended**: The + * payment instrument is suspended, either because it was stolen or lost. * **closed**: The + * payment instrument is permanently closed. This action cannot be undone. * - * @param status The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * @param status The status of the payment instrument. If a status is not specified when creating + * a payment instrument, it is set to **active** by default. However, there can be exceptions + * for cards based on the `card.formFactor` and the `issuingCountryCode`. + * For example, when issuing physical cards in the US, the default status is **inactive**. + * Possible values: * **active**: The payment instrument is active and can be used to make + * payments. * **inactive**: The payment instrument is inactive and cannot be used to make + * payments. * **suspended**: The payment instrument is suspended, either because it was + * stolen or lost. * **closed**: The payment instrument is permanently closed. This action + * cannot be undone. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -641,9 +759,11 @@ public void setStatus(StatusEnum status) { } /** - * The status comment provides additional information for the statusReason of the payment instrument. + * The status comment provides additional information for the statusReason of the payment + * instrument. * - * @param statusComment The status comment provides additional information for the statusReason of the payment instrument. + * @param statusComment The status comment provides additional information for the statusReason of + * the payment instrument. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument statusComment(String statusComment) { @@ -652,8 +772,11 @@ public PaymentInstrument statusComment(String statusComment) { } /** - * The status comment provides additional information for the statusReason of the payment instrument. - * @return statusComment The status comment provides additional information for the statusReason of the payment instrument. + * The status comment provides additional information for the statusReason of the payment + * instrument. + * + * @return statusComment The status comment provides additional information for the statusReason + * of the payment instrument. */ @JsonProperty(JSON_PROPERTY_STATUS_COMMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -662,9 +785,11 @@ public String getStatusComment() { } /** - * The status comment provides additional information for the statusReason of the payment instrument. + * The status comment provides additional information for the statusReason of the payment + * instrument. * - * @param statusComment The status comment provides additional information for the statusReason of the payment instrument. + * @param statusComment The status comment provides additional information for the statusReason of + * the payment instrument. */ @JsonProperty(JSON_PROPERTY_STATUS_COMMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -673,9 +798,15 @@ public void setStatusComment(String statusComment) { } /** - * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * The reason for the status of the payment instrument. Possible values: **accountClosure**, + * **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, + * **transactionRule**, **other**. If the reason is **other**, you must also send the + * `statusComment` parameter describing the status change. * - * @param statusReason The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * @param statusReason The reason for the status of the payment instrument. Possible values: + * **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, + * **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must + * also send the `statusComment` parameter describing the status change. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument statusReason(StatusReasonEnum statusReason) { @@ -684,8 +815,15 @@ public PaymentInstrument statusReason(StatusReasonEnum statusReason) { } /** - * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. - * @return statusReason The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * The reason for the status of the payment instrument. Possible values: **accountClosure**, + * **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, + * **transactionRule**, **other**. If the reason is **other**, you must also send the + * `statusComment` parameter describing the status change. + * + * @return statusReason The reason for the status of the payment instrument. Possible values: + * **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, + * **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must + * also send the `statusComment` parameter describing the status change. */ @JsonProperty(JSON_PROPERTY_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -694,9 +832,15 @@ public StatusReasonEnum getStatusReason() { } /** - * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * The reason for the status of the payment instrument. Possible values: **accountClosure**, + * **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, + * **transactionRule**, **other**. If the reason is **other**, you must also send the + * `statusComment` parameter describing the status change. * - * @param statusReason The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + * @param statusReason The reason for the status of the payment instrument. Possible values: + * **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, + * **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must + * also send the `statusComment` parameter describing the status change. */ @JsonProperty(JSON_PROPERTY_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -705,9 +849,9 @@ public void setStatusReason(StatusReasonEnum statusReason) { } /** - * The type of payment instrument. Possible values: **card**, **bankAccount**. + * The type of payment instrument. Possible values: **card**, **bankAccount**. * - * @param type The type of payment instrument. Possible values: **card**, **bankAccount**. + * @param type The type of payment instrument. Possible values: **card**, **bankAccount**. * @return the current {@code PaymentInstrument} instance, allowing for method chaining */ public PaymentInstrument type(TypeEnum type) { @@ -716,8 +860,9 @@ public PaymentInstrument type(TypeEnum type) { } /** - * The type of payment instrument. Possible values: **card**, **bankAccount**. - * @return type The type of payment instrument. Possible values: **card**, **bankAccount**. + * The type of payment instrument. Possible values: **card**, **bankAccount**. + * + * @return type The type of payment instrument. Possible values: **card**, **bankAccount**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -726,9 +871,9 @@ public TypeEnum getType() { } /** - * The type of payment instrument. Possible values: **card**, **bankAccount**. + * The type of payment instrument. Possible values: **card**, **bankAccount**. * - * @param type The type of payment instrument. Possible values: **card**, **bankAccount**. + * @param type The type of payment instrument. Possible values: **card**, **bankAccount**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -736,9 +881,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this PaymentInstrument object is equal to o. - */ + /** Return true if this PaymentInstrument object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -748,40 +891,61 @@ public boolean equals(Object o) { return false; } PaymentInstrument paymentInstrument = (PaymentInstrument) o; - return Objects.equals(this.additionalBankAccountIdentifications, paymentInstrument.additionalBankAccountIdentifications) && - Objects.equals(this.balanceAccountId, paymentInstrument.balanceAccountId) && - Objects.equals(this.bankAccount, paymentInstrument.bankAccount) && - Objects.equals(this.card, paymentInstrument.card) && - Objects.equals(this.description, paymentInstrument.description) && - Objects.equals(this.id, paymentInstrument.id) && - Objects.equals(this.issuingCountryCode, paymentInstrument.issuingCountryCode) && - Objects.equals(this.paymentInstrumentGroupId, paymentInstrument.paymentInstrumentGroupId) && - Objects.equals(this.reference, paymentInstrument.reference) && - Objects.equals(this.replacedById, paymentInstrument.replacedById) && - Objects.equals(this.replacementOfId, paymentInstrument.replacementOfId) && - Objects.equals(this.status, paymentInstrument.status) && - Objects.equals(this.statusComment, paymentInstrument.statusComment) && - Objects.equals(this.statusReason, paymentInstrument.statusReason) && - Objects.equals(this.type, paymentInstrument.type); + return Objects.equals( + this.additionalBankAccountIdentifications, + paymentInstrument.additionalBankAccountIdentifications) + && Objects.equals(this.balanceAccountId, paymentInstrument.balanceAccountId) + && Objects.equals(this.bankAccount, paymentInstrument.bankAccount) + && Objects.equals(this.card, paymentInstrument.card) + && Objects.equals(this.description, paymentInstrument.description) + && Objects.equals(this.id, paymentInstrument.id) + && Objects.equals(this.issuingCountryCode, paymentInstrument.issuingCountryCode) + && Objects.equals(this.paymentInstrumentGroupId, paymentInstrument.paymentInstrumentGroupId) + && Objects.equals(this.reference, paymentInstrument.reference) + && Objects.equals(this.replacedById, paymentInstrument.replacedById) + && Objects.equals(this.replacementOfId, paymentInstrument.replacementOfId) + && Objects.equals(this.status, paymentInstrument.status) + && Objects.equals(this.statusComment, paymentInstrument.statusComment) + && Objects.equals(this.statusReason, paymentInstrument.statusReason) + && Objects.equals(this.type, paymentInstrument.type); } @Override public int hashCode() { - return Objects.hash(additionalBankAccountIdentifications, balanceAccountId, bankAccount, card, description, id, issuingCountryCode, paymentInstrumentGroupId, reference, replacedById, replacementOfId, status, statusComment, statusReason, type); + return Objects.hash( + additionalBankAccountIdentifications, + balanceAccountId, + bankAccount, + card, + description, + id, + issuingCountryCode, + paymentInstrumentGroupId, + reference, + replacedById, + replacementOfId, + status, + statusComment, + statusReason, + type); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentInstrument {\n"); - sb.append(" additionalBankAccountIdentifications: ").append(toIndentedString(additionalBankAccountIdentifications)).append("\n"); + sb.append(" additionalBankAccountIdentifications: ") + .append(toIndentedString(additionalBankAccountIdentifications)) + .append("\n"); sb.append(" balanceAccountId: ").append(toIndentedString(balanceAccountId)).append("\n"); sb.append(" bankAccount: ").append(toIndentedString(bankAccount)).append("\n"); sb.append(" card: ").append(toIndentedString(card)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" issuingCountryCode: ").append(toIndentedString(issuingCountryCode)).append("\n"); - sb.append(" paymentInstrumentGroupId: ").append(toIndentedString(paymentInstrumentGroupId)).append("\n"); + sb.append(" paymentInstrumentGroupId: ") + .append(toIndentedString(paymentInstrumentGroupId)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" replacedById: ").append(toIndentedString(replacedById)).append("\n"); sb.append(" replacementOfId: ").append(toIndentedString(replacementOfId)).append("\n"); @@ -794,8 +958,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -804,7 +967,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentInstrument given an JSON string * * @param jsonString JSON string @@ -814,11 +977,12 @@ private String toIndentedString(Object o) { public static PaymentInstrument fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentInstrument.class); } -/** - * Convert an instance of PaymentInstrument to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentInstrument to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java b/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java index 1670c2aa4..c157a56b3 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java @@ -2,44 +2,19 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.configurationwebhooks.IbanAccountIdentification; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -import com.fasterxml.jackson.core.type.TypeReference; - -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.core.Response; -import java.io.IOException; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; - import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -49,167 +24,200 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import jakarta.ws.rs.core.GenericType; +import java.io.IOException; +import java.util.*; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.logging.Level; +import java.util.logging.Logger; - -@JsonDeserialize(using = PaymentInstrumentAdditionalBankAccountIdentificationsInner.PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer.class) -@JsonSerialize(using = PaymentInstrumentAdditionalBankAccountIdentificationsInner.PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer.class) -public class PaymentInstrumentAdditionalBankAccountIdentificationsInner extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(PaymentInstrumentAdditionalBankAccountIdentificationsInner.class.getName()); - - public static class PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer extends StdSerializer { - public PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer(Class t) { - super(t); - } - - public PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer() { - this(null); - } - - @Override - public void serialize(PaymentInstrumentAdditionalBankAccountIdentificationsInner value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer extends StdDeserializer { - public PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer() { - this(PaymentInstrumentAdditionalBankAccountIdentificationsInner.class); - } - - public PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer(Class vc) { - super(vc); - } - - @Override - public PaymentInstrumentAdditionalBankAccountIdentificationsInner deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize IbanAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(IbanAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'IbanAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'IbanAccountIdentification'", e); - } - - if (match == 1) { - PaymentInstrumentAdditionalBankAccountIdentificationsInner ret = new PaymentInstrumentAdditionalBankAccountIdentificationsInner(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException(String.format("Failed deserialization for PaymentInstrumentAdditionalBankAccountIdentificationsInner: %d classes match result, expected 1", match)); - } - - /** - * Handle deserialization of the 'null' value. - */ - @Override - public PaymentInstrumentAdditionalBankAccountIdentificationsInner getNullValue(DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "PaymentInstrumentAdditionalBankAccountIdentificationsInner cannot be null"); - } +@JsonDeserialize( + using = + PaymentInstrumentAdditionalBankAccountIdentificationsInner + .PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer.class) +@JsonSerialize( + using = + PaymentInstrumentAdditionalBankAccountIdentificationsInner + .PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer.class) +public class PaymentInstrumentAdditionalBankAccountIdentificationsInner + extends AbstractOpenApiSchema { + private static final Logger log = + Logger.getLogger(PaymentInstrumentAdditionalBankAccountIdentificationsInner.class.getName()); + + public static class PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer + extends StdSerializer { + public PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer( + Class t) { + super(t); } - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public PaymentInstrumentAdditionalBankAccountIdentificationsInner() { - super("oneOf", Boolean.FALSE); + public PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer() { + this(null); } - public PaymentInstrumentAdditionalBankAccountIdentificationsInner(IbanAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + @Override + public void serialize( + PaymentInstrumentAdditionalBankAccountIdentificationsInner value, + JsonGenerator jgen, + SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); } + } - static { - schemas.put("IbanAccountIdentification", new GenericType() { - }); - JSON.registerDescendants(PaymentInstrumentAdditionalBankAccountIdentificationsInner.class, Collections.unmodifiableMap(schemas)); + public static class PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer + extends StdDeserializer { + public PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer() { + this(PaymentInstrumentAdditionalBankAccountIdentificationsInner.class); } - @Override - public Map> getSchemas() { - return PaymentInstrumentAdditionalBankAccountIdentificationsInner.schemas; + public PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer(Class vc) { + super(vc); } - /** - * Set the instance that matches the oneOf child schema, check - * the instance parameter is valid against the oneOf child schemas: - * IbanAccountIdentification - * - * It could be an instance of the 'oneOf' schemas. - * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). - */ @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(IbanAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + public PaymentInstrumentAdditionalBankAccountIdentificationsInner deserialize( + JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize IbanAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(IbanAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'IbanAccountIdentification'"); + } } - - throw new RuntimeException("Invalid instance type. Must be IbanAccountIdentification"); + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'IbanAccountIdentification'", e); + } + + if (match == 1) { + PaymentInstrumentAdditionalBankAccountIdentificationsInner ret = + new PaymentInstrumentAdditionalBankAccountIdentificationsInner(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException( + String.format( + "Failed deserialization for PaymentInstrumentAdditionalBankAccountIdentificationsInner: %d classes match result, expected 1", + match)); } - /** - * Get the actual instance, which can be the following: - * IbanAccountIdentification - * - * @return The actual instance (IbanAccountIdentification) - */ + /** Handle deserialization of the 'null' value. */ @Override - public Object getActualInstance() { - return super.getActualInstance(); + public PaymentInstrumentAdditionalBankAccountIdentificationsInner getNullValue( + DeserializationContext ctxt) throws JsonMappingException { + throw new JsonMappingException( + ctxt.getParser(), + "PaymentInstrumentAdditionalBankAccountIdentificationsInner cannot be null"); } - - /** - * Get the actual instance of `IbanAccountIdentification`. If the actual instance is not `IbanAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `IbanAccountIdentification` - * @throws ClassCastException if the instance is not `IbanAccountIdentification` - */ - public IbanAccountIdentification getIbanAccountIdentification() throws ClassCastException { - return (IbanAccountIdentification)super.getActualInstance(); - } - - - /** - * Create an instance of PaymentInstrumentAdditionalBankAccountIdentificationsInner given an JSON string - * - * @param jsonString JSON string - * @return An instance of PaymentInstrumentAdditionalBankAccountIdentificationsInner - * @throws IOException if the JSON string is invalid with respect to PaymentInstrumentAdditionalBankAccountIdentificationsInner - */ - public static PaymentInstrumentAdditionalBankAccountIdentificationsInner fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, PaymentInstrumentAdditionalBankAccountIdentificationsInner.class); - } - - /** - * Convert an instance of PaymentInstrumentAdditionalBankAccountIdentificationsInner to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); + } + + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public PaymentInstrumentAdditionalBankAccountIdentificationsInner() { + super("oneOf", Boolean.FALSE); + } + + public PaymentInstrumentAdditionalBankAccountIdentificationsInner(IbanAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("IbanAccountIdentification", new GenericType() {}); + JSON.registerDescendants( + PaymentInstrumentAdditionalBankAccountIdentificationsInner.class, + Collections.unmodifiableMap(schemas)); + } + + @Override + public Map> getSchemas() { + return PaymentInstrumentAdditionalBankAccountIdentificationsInner.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check the instance parameter is valid + * against the oneOf child schemas: IbanAccountIdentification + * + *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a + * composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(IbanAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } + throw new RuntimeException("Invalid instance type. Must be IbanAccountIdentification"); + } + + /** + * Get the actual instance, which can be the following: IbanAccountIdentification + * + * @return The actual instance (IbanAccountIdentification) + */ + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `IbanAccountIdentification`. If the actual instance is not + * `IbanAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `IbanAccountIdentification` + * @throws ClassCastException if the instance is not `IbanAccountIdentification` + */ + public IbanAccountIdentification getIbanAccountIdentification() throws ClassCastException { + return (IbanAccountIdentification) super.getActualInstance(); + } + + /** + * Create an instance of PaymentInstrumentAdditionalBankAccountIdentificationsInner given an JSON + * string + * + * @param jsonString JSON string + * @return An instance of PaymentInstrumentAdditionalBankAccountIdentificationsInner + * @throws IOException if the JSON string is invalid with respect to + * PaymentInstrumentAdditionalBankAccountIdentificationsInner + */ + public static PaymentInstrumentAdditionalBankAccountIdentificationsInner fromJson( + String jsonString) throws IOException { + return JSON.getMapper() + .readValue(jsonString, PaymentInstrumentAdditionalBankAccountIdentificationsInner.class); + } + + /** + * Convert an instance of PaymentInstrumentAdditionalBankAccountIdentificationsInner to an JSON + * string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrumentNotificationData.java b/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrumentNotificationData.java index fa8637e26..3d37771ab 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrumentNotificationData.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrumentNotificationData.java @@ -2,37 +2,26 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.configurationwebhooks.PaymentInstrument; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * PaymentInstrumentNotificationData - */ +/** PaymentInstrumentNotificationData */ @JsonPropertyOrder({ PaymentInstrumentNotificationData.JSON_PROPERTY_BALANCE_PLATFORM, PaymentInstrumentNotificationData.JSON_PROPERTY_PAYMENT_INSTRUMENT }) - public class PaymentInstrumentNotificationData { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; @@ -40,14 +29,14 @@ public class PaymentInstrumentNotificationData { public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT = "paymentInstrument"; private PaymentInstrument paymentInstrument; - public PaymentInstrumentNotificationData() { - } + public PaymentInstrumentNotificationData() {} /** * The unique identifier of the balance platform. * * @param balancePlatform The unique identifier of the balance platform. - * @return the current {@code PaymentInstrumentNotificationData} instance, allowing for method chaining + * @return the current {@code PaymentInstrumentNotificationData} instance, allowing for method + * chaining */ public PaymentInstrumentNotificationData balancePlatform(String balancePlatform) { this.balancePlatform = balancePlatform; @@ -56,6 +45,7 @@ public PaymentInstrumentNotificationData balancePlatform(String balancePlatform) /** * The unique identifier of the balance platform. + * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -78,8 +68,9 @@ public void setBalancePlatform(String balancePlatform) { /** * paymentInstrument * - * @param paymentInstrument - * @return the current {@code PaymentInstrumentNotificationData} instance, allowing for method chaining + * @param paymentInstrument + * @return the current {@code PaymentInstrumentNotificationData} instance, allowing for method + * chaining */ public PaymentInstrumentNotificationData paymentInstrument(PaymentInstrument paymentInstrument) { this.paymentInstrument = paymentInstrument; @@ -88,7 +79,8 @@ public PaymentInstrumentNotificationData paymentInstrument(PaymentInstrument pay /** * Get paymentInstrument - * @return paymentInstrument + * + * @return paymentInstrument */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,7 +91,7 @@ public PaymentInstrument getPaymentInstrument() { /** * paymentInstrument * - * @param paymentInstrument + * @param paymentInstrument */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,9 +99,7 @@ public void setPaymentInstrument(PaymentInstrument paymentInstrument) { this.paymentInstrument = paymentInstrument; } - /** - * Return true if this PaymentInstrumentNotificationData object is equal to o. - */ + /** Return true if this PaymentInstrumentNotificationData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,9 +108,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaymentInstrumentNotificationData paymentInstrumentNotificationData = (PaymentInstrumentNotificationData) o; - return Objects.equals(this.balancePlatform, paymentInstrumentNotificationData.balancePlatform) && - Objects.equals(this.paymentInstrument, paymentInstrumentNotificationData.paymentInstrument); + PaymentInstrumentNotificationData paymentInstrumentNotificationData = + (PaymentInstrumentNotificationData) o; + return Objects.equals(this.balancePlatform, paymentInstrumentNotificationData.balancePlatform) + && Objects.equals( + this.paymentInstrument, paymentInstrumentNotificationData.paymentInstrument); } @Override @@ -139,8 +131,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -149,21 +140,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentInstrumentNotificationData given an JSON string * * @param jsonString JSON string * @return An instance of PaymentInstrumentNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentInstrumentNotificationData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentInstrumentNotificationData */ - public static PaymentInstrumentNotificationData fromJson(String jsonString) throws JsonProcessingException { + public static PaymentInstrumentNotificationData fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentInstrumentNotificationData.class); } -/** - * Convert an instance of PaymentInstrumentNotificationData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentInstrumentNotificationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/PaymentNotificationRequest.java b/src/main/java/com/adyen/model/configurationwebhooks/PaymentNotificationRequest.java index 0aa623b73..09d8479b5 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/PaymentNotificationRequest.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/PaymentNotificationRequest.java @@ -2,40 +2,33 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.configurationwebhooks.PaymentInstrumentNotificationData; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * PaymentNotificationRequest - */ +/** PaymentNotificationRequest */ @JsonPropertyOrder({ PaymentNotificationRequest.JSON_PROPERTY_DATA, PaymentNotificationRequest.JSON_PROPERTY_ENVIRONMENT, PaymentNotificationRequest.JSON_PROPERTY_TIMESTAMP, PaymentNotificationRequest.JSON_PROPERTY_TYPE }) - public class PaymentNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private PaymentInstrumentNotificationData data; @@ -46,21 +39,20 @@ public class PaymentNotificationRequest { public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; private OffsetDateTime timestamp; - /** - * Type of webhook. - */ + /** Type of webhook. */ public enum TypeEnum { + BALANCEPLATFORM_PAYMENTINSTRUMENT_CREATED( + String.valueOf("balancePlatform.paymentInstrument.created")), - BALANCEPLATFORM_PAYMENTINSTRUMENT_CREATED(String.valueOf("balancePlatform.paymentInstrument.created")), - - BALANCEPLATFORM_PAYMENTINSTRUMENT_UPDATED(String.valueOf("balancePlatform.paymentInstrument.updated")); + BALANCEPLATFORM_PAYMENTINSTRUMENT_UPDATED( + String.valueOf("balancePlatform.paymentInstrument.updated")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -81,7 +73,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -89,13 +85,12 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PaymentNotificationRequest() { - } + public PaymentNotificationRequest() {} /** * data * - * @param data + * @param data * @return the current {@code PaymentNotificationRequest} instance, allowing for method chaining */ public PaymentNotificationRequest data(PaymentInstrumentNotificationData data) { @@ -105,7 +100,8 @@ public PaymentNotificationRequest data(PaymentInstrumentNotificationData data) { /** * Get data - * @return data + * + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,7 +112,7 @@ public PaymentInstrumentNotificationData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,9 +121,10 @@ public void setData(PaymentInstrumentNotificationData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. * @return the current {@code PaymentNotificationRequest} instance, allowing for method chaining */ public PaymentNotificationRequest environment(String environment) { @@ -136,8 +133,10 @@ public PaymentNotificationRequest environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * + * @return environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,9 +145,10 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,6 +169,7 @@ public PaymentNotificationRequest timestamp(OffsetDateTime timestamp) { /** * When the event was queued. + * * @return timestamp When the event was queued. */ @JsonProperty(JSON_PROPERTY_TIMESTAMP) @@ -201,6 +202,7 @@ public PaymentNotificationRequest type(TypeEnum type) { /** * Type of webhook. + * * @return type Type of webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -220,9 +222,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this PaymentNotificationRequest object is equal to o. - */ + /** Return true if this PaymentNotificationRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -232,10 +232,10 @@ public boolean equals(Object o) { return false; } PaymentNotificationRequest paymentNotificationRequest = (PaymentNotificationRequest) o; - return Objects.equals(this.data, paymentNotificationRequest.data) && - Objects.equals(this.environment, paymentNotificationRequest.environment) && - Objects.equals(this.timestamp, paymentNotificationRequest.timestamp) && - Objects.equals(this.type, paymentNotificationRequest.type); + return Objects.equals(this.data, paymentNotificationRequest.data) + && Objects.equals(this.environment, paymentNotificationRequest.environment) + && Objects.equals(this.timestamp, paymentNotificationRequest.timestamp) + && Objects.equals(this.type, paymentNotificationRequest.type); } @Override @@ -256,8 +256,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -266,21 +265,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of PaymentNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentNotificationRequest */ - public static PaymentNotificationRequest fromJson(String jsonString) throws JsonProcessingException { + public static PaymentNotificationRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentNotificationRequest.class); } -/** - * Convert an instance of PaymentNotificationRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Phone.java b/src/main/java/com/adyen/model/configurationwebhooks/Phone.java index 6f5235765..08460eb12 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Phone.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Phone.java @@ -2,45 +2,33 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * Phone - */ -@JsonPropertyOrder({ - Phone.JSON_PROPERTY_NUMBER, - Phone.JSON_PROPERTY_TYPE -}) - +/** Phone */ +@JsonPropertyOrder({Phone.JSON_PROPERTY_NUMBER, Phone.JSON_PROPERTY_TYPE}) public class Phone { public static final String JSON_PROPERTY_NUMBER = "number"; private String number; - /** - * Type of phone number. Possible values: **Landline**, **Mobile**. - */ + /** Type of phone number. Possible values: **Landline**, **Mobile**. */ public enum TypeEnum { - LANDLINE(String.valueOf("landline")), MOBILE(String.valueOf("mobile")); @@ -50,7 +38,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -71,7 +59,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -79,13 +71,15 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public Phone() { - } + public Phone() {} /** - * The full phone number provided as a single string. For example, **\"0031 6 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. + * The full phone number provided as a single string. For example, **\"0031 6 11 22 33 + * 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. * - * @param number The full phone number provided as a single string. For example, **\"0031 6 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. + * @param number The full phone number provided as a single string. For example, **\"0031 6 + * 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) + * 611223344\"**. * @return the current {@code Phone} instance, allowing for method chaining */ public Phone number(String number) { @@ -94,8 +88,12 @@ public Phone number(String number) { } /** - * The full phone number provided as a single string. For example, **\"0031 6 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. - * @return number The full phone number provided as a single string. For example, **\"0031 6 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. + * The full phone number provided as a single string. For example, **\"0031 6 11 22 33 + * 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. + * + * @return number The full phone number provided as a single string. For example, **\"0031 6 + * 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) + * 611223344\"**. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,9 +102,12 @@ public String getNumber() { } /** - * The full phone number provided as a single string. For example, **\"0031 6 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. + * The full phone number provided as a single string. For example, **\"0031 6 11 22 33 + * 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. * - * @param number The full phone number provided as a single string. For example, **\"0031 6 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. + * @param number The full phone number provided as a single string. For example, **\"0031 6 + * 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) + * 611223344\"**. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,9 +116,9 @@ public void setNumber(String number) { } /** - * Type of phone number. Possible values: **Landline**, **Mobile**. + * Type of phone number. Possible values: **Landline**, **Mobile**. * - * @param type Type of phone number. Possible values: **Landline**, **Mobile**. + * @param type Type of phone number. Possible values: **Landline**, **Mobile**. * @return the current {@code Phone} instance, allowing for method chaining */ public Phone type(TypeEnum type) { @@ -126,8 +127,9 @@ public Phone type(TypeEnum type) { } /** - * Type of phone number. Possible values: **Landline**, **Mobile**. - * @return type Type of phone number. Possible values: **Landline**, **Mobile**. + * Type of phone number. Possible values: **Landline**, **Mobile**. + * + * @return type Type of phone number. Possible values: **Landline**, **Mobile**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,9 +138,9 @@ public TypeEnum getType() { } /** - * Type of phone number. Possible values: **Landline**, **Mobile**. + * Type of phone number. Possible values: **Landline**, **Mobile**. * - * @param type Type of phone number. Possible values: **Landline**, **Mobile**. + * @param type Type of phone number. Possible values: **Landline**, **Mobile**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,9 +148,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this Phone object is equal to o. - */ + /** Return true if this Phone object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -158,8 +158,7 @@ public boolean equals(Object o) { return false; } Phone phone = (Phone) o; - return Objects.equals(this.number, phone.number) && - Objects.equals(this.type, phone.type); + return Objects.equals(this.number, phone.number) && Objects.equals(this.type, phone.type); } @Override @@ -178,8 +177,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -188,7 +186,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Phone given an JSON string * * @param jsonString JSON string @@ -198,11 +196,12 @@ private String toIndentedString(Object o) { public static Phone fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Phone.class); } -/** - * Convert an instance of Phone to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Phone to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/PhoneNumber.java b/src/main/java/com/adyen/model/configurationwebhooks/PhoneNumber.java index bcd2f0372..d746ec95a 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/PhoneNumber.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/PhoneNumber.java @@ -2,37 +2,31 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * PhoneNumber - */ +/** PhoneNumber */ @JsonPropertyOrder({ PhoneNumber.JSON_PROPERTY_PHONE_COUNTRY_CODE, PhoneNumber.JSON_PROPERTY_PHONE_NUMBER, PhoneNumber.JSON_PROPERTY_PHONE_TYPE }) - public class PhoneNumber { public static final String JSON_PROPERTY_PHONE_COUNTRY_CODE = "phoneCountryCode"; private String phoneCountryCode; @@ -40,11 +34,8 @@ public class PhoneNumber { public static final String JSON_PROPERTY_PHONE_NUMBER = "phoneNumber"; private String phoneNumber; - /** - * The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. - */ + /** The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. */ public enum PhoneTypeEnum { - FAX(String.valueOf("Fax")), LANDLINE(String.valueOf("Landline")), @@ -58,7 +49,7 @@ public enum PhoneTypeEnum { private String value; PhoneTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -79,7 +70,11 @@ public static PhoneTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PhoneTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PhoneTypeEnum.values())); + LOG.warning( + "PhoneTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PhoneTypeEnum.values())); return null; } } @@ -87,13 +82,14 @@ public static PhoneTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_PHONE_TYPE = "phoneType"; private PhoneTypeEnum phoneType; - public PhoneNumber() { - } + public PhoneNumber() {} /** - * The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or **NL**. + * The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or + * **NL**. * - * @param phoneCountryCode The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or **NL**. + * @param phoneCountryCode The two-character ISO-3166-1 alpha-2 country code of the phone number. + * For example, **US** or **NL**. * @return the current {@code PhoneNumber} instance, allowing for method chaining */ public PhoneNumber phoneCountryCode(String phoneCountryCode) { @@ -102,8 +98,11 @@ public PhoneNumber phoneCountryCode(String phoneCountryCode) { } /** - * The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or **NL**. - * @return phoneCountryCode The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or **NL**. + * The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or + * **NL**. + * + * @return phoneCountryCode The two-character ISO-3166-1 alpha-2 country code of the phone number. + * For example, **US** or **NL**. */ @JsonProperty(JSON_PROPERTY_PHONE_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,9 +111,11 @@ public String getPhoneCountryCode() { } /** - * The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or **NL**. + * The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or + * **NL**. * - * @param phoneCountryCode The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or **NL**. + * @param phoneCountryCode The two-character ISO-3166-1 alpha-2 country code of the phone number. + * For example, **US** or **NL**. */ @JsonProperty(JSON_PROPERTY_PHONE_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,7 +126,8 @@ public void setPhoneCountryCode(String phoneCountryCode) { /** * The phone number. The inclusion of the phone number country code is not necessary. * - * @param phoneNumber The phone number. The inclusion of the phone number country code is not necessary. + * @param phoneNumber The phone number. The inclusion of the phone number country code is not + * necessary. * @return the current {@code PhoneNumber} instance, allowing for method chaining */ public PhoneNumber phoneNumber(String phoneNumber) { @@ -135,7 +137,9 @@ public PhoneNumber phoneNumber(String phoneNumber) { /** * The phone number. The inclusion of the phone number country code is not necessary. - * @return phoneNumber The phone number. The inclusion of the phone number country code is not necessary. + * + * @return phoneNumber The phone number. The inclusion of the phone number country code is not + * necessary. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,7 +150,8 @@ public String getPhoneNumber() { /** * The phone number. The inclusion of the phone number country code is not necessary. * - * @param phoneNumber The phone number. The inclusion of the phone number country code is not necessary. + * @param phoneNumber The phone number. The inclusion of the phone number country code is not + * necessary. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -157,7 +162,8 @@ public void setPhoneNumber(String phoneNumber) { /** * The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. * - * @param phoneType The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. + * @param phoneType The type of the phone number. Possible values: **Landline**, **Mobile**, + * **SIP**, **Fax**. * @return the current {@code PhoneNumber} instance, allowing for method chaining */ public PhoneNumber phoneType(PhoneTypeEnum phoneType) { @@ -167,7 +173,9 @@ public PhoneNumber phoneType(PhoneTypeEnum phoneType) { /** * The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. - * @return phoneType The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. + * + * @return phoneType The type of the phone number. Possible values: **Landline**, **Mobile**, + * **SIP**, **Fax**. */ @JsonProperty(JSON_PROPERTY_PHONE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,7 +186,8 @@ public PhoneTypeEnum getPhoneType() { /** * The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. * - * @param phoneType The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. + * @param phoneType The type of the phone number. Possible values: **Landline**, **Mobile**, + * **SIP**, **Fax**. */ @JsonProperty(JSON_PROPERTY_PHONE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,9 +195,7 @@ public void setPhoneType(PhoneTypeEnum phoneType) { this.phoneType = phoneType; } - /** - * Return true if this PhoneNumber object is equal to o. - */ + /** Return true if this PhoneNumber object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -198,9 +205,9 @@ public boolean equals(Object o) { return false; } PhoneNumber phoneNumber = (PhoneNumber) o; - return Objects.equals(this.phoneCountryCode, phoneNumber.phoneCountryCode) && - Objects.equals(this.phoneNumber, phoneNumber.phoneNumber) && - Objects.equals(this.phoneType, phoneNumber.phoneType); + return Objects.equals(this.phoneCountryCode, phoneNumber.phoneCountryCode) + && Objects.equals(this.phoneNumber, phoneNumber.phoneNumber) + && Objects.equals(this.phoneType, phoneNumber.phoneType); } @Override @@ -220,8 +227,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -230,7 +236,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PhoneNumber given an JSON string * * @param jsonString JSON string @@ -240,11 +246,12 @@ private String toIndentedString(Object o) { public static PhoneNumber fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PhoneNumber.class); } -/** - * Convert an instance of PhoneNumber to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PhoneNumber to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/PlatformPaymentConfiguration.java b/src/main/java/com/adyen/model/configurationwebhooks/PlatformPaymentConfiguration.java index 282726f85..376a23994 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/PlatformPaymentConfiguration.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/PlatformPaymentConfiguration.java @@ -2,36 +2,26 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * PlatformPaymentConfiguration - */ +/** PlatformPaymentConfiguration */ @JsonPropertyOrder({ PlatformPaymentConfiguration.JSON_PROPERTY_SALES_DAY_CLOSING_TIME, PlatformPaymentConfiguration.JSON_PROPERTY_SETTLEMENT_DELAY_DAYS }) - public class PlatformPaymentConfiguration { public static final String JSON_PROPERTY_SALES_DAY_CLOSING_TIME = "salesDayClosingTime"; private String salesDayClosingTime; @@ -39,13 +29,16 @@ public class PlatformPaymentConfiguration { public static final String JSON_PROPERTY_SETTLEMENT_DELAY_DAYS = "settlementDelayDays"; private Integer settlementDelayDays; - public PlatformPaymentConfiguration() { - } + public PlatformPaymentConfiguration() {} /** - * Specifies at what time a sales day ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**. + * Specifies at what time a sales day ends for this account. Possible values: Time in + * **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. + * Default value: **\"00:00\"**. * - * @param salesDayClosingTime Specifies at what time a sales day ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**. + * @param salesDayClosingTime Specifies at what time a sales day ends for this account. Possible + * values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** + * must be **00**. Default value: **\"00:00\"**. * @return the current {@code PlatformPaymentConfiguration} instance, allowing for method chaining */ public PlatformPaymentConfiguration salesDayClosingTime(String salesDayClosingTime) { @@ -54,8 +47,13 @@ public PlatformPaymentConfiguration salesDayClosingTime(String salesDayClosingTi } /** - * Specifies at what time a sales day ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**. - * @return salesDayClosingTime Specifies at what time a sales day ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**. + * Specifies at what time a sales day ends for this account. Possible values: Time in + * **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. + * Default value: **\"00:00\"**. + * + * @return salesDayClosingTime Specifies at what time a sales day ends for this account. Possible + * values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** + * must be **00**. Default value: **\"00:00\"**. */ @JsonProperty(JSON_PROPERTY_SALES_DAY_CLOSING_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +62,13 @@ public String getSalesDayClosingTime() { } /** - * Specifies at what time a sales day ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**. + * Specifies at what time a sales day ends for this account. Possible values: Time in + * **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. + * Default value: **\"00:00\"**. * - * @param salesDayClosingTime Specifies at what time a sales day ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**. + * @param salesDayClosingTime Specifies at what time a sales day ends for this account. Possible + * values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** + * must be **00**. Default value: **\"00:00\"**. */ @JsonProperty(JSON_PROPERTY_SALES_DAY_CLOSING_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,9 +77,12 @@ public void setSalesDayClosingTime(String salesDayClosingTime) { } /** - * Specifies after how many business days the funds in a settlement batch are made available in this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. + * Specifies after how many business days the funds in a settlement batch are made available in + * this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. * - * @param settlementDelayDays Specifies after how many business days the funds in a settlement batch are made available in this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. + * @param settlementDelayDays Specifies after how many business days the funds in a settlement + * batch are made available in this balance account. Possible values: **1** to **20**, or + * **null**. Default value: **null**. * @return the current {@code PlatformPaymentConfiguration} instance, allowing for method chaining */ public PlatformPaymentConfiguration settlementDelayDays(Integer settlementDelayDays) { @@ -86,8 +91,12 @@ public PlatformPaymentConfiguration settlementDelayDays(Integer settlementDelayD } /** - * Specifies after how many business days the funds in a settlement batch are made available in this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. - * @return settlementDelayDays Specifies after how many business days the funds in a settlement batch are made available in this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. + * Specifies after how many business days the funds in a settlement batch are made available in + * this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. + * + * @return settlementDelayDays Specifies after how many business days the funds in a settlement + * batch are made available in this balance account. Possible values: **1** to **20**, or + * **null**. Default value: **null**. */ @JsonProperty(JSON_PROPERTY_SETTLEMENT_DELAY_DAYS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +105,12 @@ public Integer getSettlementDelayDays() { } /** - * Specifies after how many business days the funds in a settlement batch are made available in this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. + * Specifies after how many business days the funds in a settlement batch are made available in + * this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. * - * @param settlementDelayDays Specifies after how many business days the funds in a settlement batch are made available in this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. + * @param settlementDelayDays Specifies after how many business days the funds in a settlement + * batch are made available in this balance account. Possible values: **1** to **20**, or + * **null**. Default value: **null**. */ @JsonProperty(JSON_PROPERTY_SETTLEMENT_DELAY_DAYS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +118,7 @@ public void setSettlementDelayDays(Integer settlementDelayDays) { this.settlementDelayDays = settlementDelayDays; } - /** - * Return true if this PlatformPaymentConfiguration object is equal to o. - */ + /** Return true if this PlatformPaymentConfiguration object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +128,10 @@ public boolean equals(Object o) { return false; } PlatformPaymentConfiguration platformPaymentConfiguration = (PlatformPaymentConfiguration) o; - return Objects.equals(this.salesDayClosingTime, platformPaymentConfiguration.salesDayClosingTime) && - Objects.equals(this.settlementDelayDays, platformPaymentConfiguration.settlementDelayDays); + return Objects.equals( + this.salesDayClosingTime, platformPaymentConfiguration.salesDayClosingTime) + && Objects.equals( + this.settlementDelayDays, platformPaymentConfiguration.settlementDelayDays); } @Override @@ -131,15 +143,18 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PlatformPaymentConfiguration {\n"); - sb.append(" salesDayClosingTime: ").append(toIndentedString(salesDayClosingTime)).append("\n"); - sb.append(" settlementDelayDays: ").append(toIndentedString(settlementDelayDays)).append("\n"); + sb.append(" salesDayClosingTime: ") + .append(toIndentedString(salesDayClosingTime)) + .append("\n"); + sb.append(" settlementDelayDays: ") + .append(toIndentedString(settlementDelayDays)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +163,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PlatformPaymentConfiguration given an JSON string * * @param jsonString JSON string * @return An instance of PlatformPaymentConfiguration - * @throws JsonProcessingException if the JSON string is invalid with respect to PlatformPaymentConfiguration + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PlatformPaymentConfiguration */ - public static PlatformPaymentConfiguration fromJson(String jsonString) throws JsonProcessingException { + public static PlatformPaymentConfiguration fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PlatformPaymentConfiguration.class); } -/** - * Convert an instance of PlatformPaymentConfiguration to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PlatformPaymentConfiguration to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/RemediatingAction.java b/src/main/java/com/adyen/model/configurationwebhooks/RemediatingAction.java index dca5d8b4a..92f4cef85 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/RemediatingAction.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/RemediatingAction.java @@ -2,36 +2,23 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * RemediatingAction - */ -@JsonPropertyOrder({ - RemediatingAction.JSON_PROPERTY_CODE, - RemediatingAction.JSON_PROPERTY_MESSAGE -}) - +/** RemediatingAction */ +@JsonPropertyOrder({RemediatingAction.JSON_PROPERTY_CODE, RemediatingAction.JSON_PROPERTY_MESSAGE}) public class RemediatingAction { public static final String JSON_PROPERTY_CODE = "code"; private String code; @@ -39,8 +26,7 @@ public class RemediatingAction { public static final String JSON_PROPERTY_MESSAGE = "message"; private String message; - public RemediatingAction() { - } + public RemediatingAction() {} /** * The remediating action code. @@ -55,6 +41,7 @@ public RemediatingAction code(String code) { /** * The remediating action code. + * * @return code The remediating action code. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -87,6 +74,7 @@ public RemediatingAction message(String message) { /** * A description of how you can resolve the verification error. + * * @return message A description of how you can resolve the verification error. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -106,9 +94,7 @@ public void setMessage(String message) { this.message = message; } - /** - * Return true if this RemediatingAction object is equal to o. - */ + /** Return true if this RemediatingAction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +104,8 @@ public boolean equals(Object o) { return false; } RemediatingAction remediatingAction = (RemediatingAction) o; - return Objects.equals(this.code, remediatingAction.code) && - Objects.equals(this.message, remediatingAction.message); + return Objects.equals(this.code, remediatingAction.code) + && Objects.equals(this.message, remediatingAction.message); } @Override @@ -138,8 +124,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +133,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RemediatingAction given an JSON string * * @param jsonString JSON string @@ -158,11 +143,12 @@ private String toIndentedString(Object o) { public static RemediatingAction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RemediatingAction.class); } -/** - * Convert an instance of RemediatingAction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RemediatingAction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Resource.java b/src/main/java/com/adyen/model/configurationwebhooks/Resource.java index e42ad6719..90f36aea5 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Resource.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Resource.java @@ -2,38 +2,28 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.time.OffsetDateTime; +import java.util.*; - -/** - * Resource - */ +/** Resource */ @JsonPropertyOrder({ Resource.JSON_PROPERTY_BALANCE_PLATFORM, Resource.JSON_PROPERTY_CREATION_DATE, Resource.JSON_PROPERTY_ID }) - public class Resource { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; @@ -44,8 +34,7 @@ public class Resource { public static final String JSON_PROPERTY_ID = "id"; private String id; - public Resource() { - } + public Resource() {} /** * The unique identifier of the balance platform. @@ -60,6 +49,7 @@ public Resource balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. + * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -80,9 +70,11 @@ public void setBalancePlatform(String balancePlatform) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code Resource} instance, allowing for method chaining */ public Resource creationDate(OffsetDateTime creationDate) { @@ -91,8 +83,11 @@ public Resource creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. + * + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,9 +96,11 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,6 +121,7 @@ public Resource id(String id) { /** * The ID of the resource. + * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -143,9 +141,7 @@ public void setId(String id) { this.id = id; } - /** - * Return true if this Resource object is equal to o. - */ + /** Return true if this Resource object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -155,9 +151,9 @@ public boolean equals(Object o) { return false; } Resource resource = (Resource) o; - return Objects.equals(this.balancePlatform, resource.balancePlatform) && - Objects.equals(this.creationDate, resource.creationDate) && - Objects.equals(this.id, resource.id); + return Objects.equals(this.balancePlatform, resource.balancePlatform) + && Objects.equals(this.creationDate, resource.creationDate) + && Objects.equals(this.id, resource.id); } @Override @@ -177,8 +173,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -187,7 +182,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Resource given an JSON string * * @param jsonString JSON string @@ -197,11 +192,12 @@ private String toIndentedString(Object o) { public static Resource fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Resource.class); } -/** - * Convert an instance of Resource to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Resource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/ResourceReference.java b/src/main/java/com/adyen/model/configurationwebhooks/ResourceReference.java index 9f9588782..a015a573b 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/ResourceReference.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/ResourceReference.java @@ -2,37 +2,27 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ResourceReference - */ +/** ResourceReference */ @JsonPropertyOrder({ ResourceReference.JSON_PROPERTY_DESCRIPTION, ResourceReference.JSON_PROPERTY_ID, ResourceReference.JSON_PROPERTY_REFERENCE }) - public class ResourceReference { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -43,8 +33,7 @@ public class ResourceReference { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public ResourceReference() { - } + public ResourceReference() {} /** * The description of the resource. @@ -59,6 +48,7 @@ public ResourceReference description(String description) { /** * The description of the resource. + * * @return description The description of the resource. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -91,6 +81,7 @@ public ResourceReference id(String id) { /** * The unique identifier of the resource. + * * @return id The unique identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -123,6 +114,7 @@ public ResourceReference reference(String reference) { /** * The reference for the resource. + * * @return reference The reference for the resource. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -142,9 +134,7 @@ public void setReference(String reference) { this.reference = reference; } - /** - * Return true if this ResourceReference object is equal to o. - */ + /** Return true if this ResourceReference object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +144,9 @@ public boolean equals(Object o) { return false; } ResourceReference resourceReference = (ResourceReference) o; - return Objects.equals(this.description, resourceReference.description) && - Objects.equals(this.id, resourceReference.id) && - Objects.equals(this.reference, resourceReference.reference); + return Objects.equals(this.description, resourceReference.description) + && Objects.equals(this.id, resourceReference.id) + && Objects.equals(this.reference, resourceReference.reference); } @Override @@ -176,8 +166,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +175,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResourceReference given an JSON string * * @param jsonString JSON string @@ -196,11 +185,12 @@ private String toIndentedString(Object o) { public static ResourceReference fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResourceReference.class); } -/** - * Convert an instance of ResourceReference to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResourceReference to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/ScoreNotificationRequest.java b/src/main/java/com/adyen/model/configurationwebhooks/ScoreNotificationRequest.java index aa506ffb0..e25fb7b3e 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/ScoreNotificationRequest.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/ScoreNotificationRequest.java @@ -2,40 +2,33 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.configurationwebhooks.BankScoreSignalTriggeredData; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * ScoreNotificationRequest - */ +/** ScoreNotificationRequest */ @JsonPropertyOrder({ ScoreNotificationRequest.JSON_PROPERTY_DATA, ScoreNotificationRequest.JSON_PROPERTY_ENVIRONMENT, ScoreNotificationRequest.JSON_PROPERTY_TIMESTAMP, ScoreNotificationRequest.JSON_PROPERTY_TYPE }) - public class ScoreNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private BankScoreSignalTriggeredData data; @@ -46,11 +39,8 @@ public class ScoreNotificationRequest { public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; private OffsetDateTime timestamp; - /** - * Type of webhook. - */ + /** Type of webhook. */ public enum TypeEnum { - BALANCEPLATFORM_SCORE_TRIGGERED(String.valueOf("balancePlatform.score.triggered")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -58,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -79,7 +69,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -87,13 +81,12 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public ScoreNotificationRequest() { - } + public ScoreNotificationRequest() {} /** * data * - * @param data + * @param data * @return the current {@code ScoreNotificationRequest} instance, allowing for method chaining */ public ScoreNotificationRequest data(BankScoreSignalTriggeredData data) { @@ -103,7 +96,8 @@ public ScoreNotificationRequest data(BankScoreSignalTriggeredData data) { /** * Get data - * @return data + * + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,7 +108,7 @@ public BankScoreSignalTriggeredData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,9 +117,10 @@ public void setData(BankScoreSignalTriggeredData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. * @return the current {@code ScoreNotificationRequest} instance, allowing for method chaining */ public ScoreNotificationRequest environment(String environment) { @@ -134,8 +129,10 @@ public ScoreNotificationRequest environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * + * @return environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,9 +141,10 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,6 +165,7 @@ public ScoreNotificationRequest timestamp(OffsetDateTime timestamp) { /** * When the event was queued. + * * @return timestamp When the event was queued. */ @JsonProperty(JSON_PROPERTY_TIMESTAMP) @@ -199,6 +198,7 @@ public ScoreNotificationRequest type(TypeEnum type) { /** * Type of webhook. + * * @return type Type of webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -218,9 +218,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this ScoreNotificationRequest object is equal to o. - */ + /** Return true if this ScoreNotificationRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -230,10 +228,10 @@ public boolean equals(Object o) { return false; } ScoreNotificationRequest scoreNotificationRequest = (ScoreNotificationRequest) o; - return Objects.equals(this.data, scoreNotificationRequest.data) && - Objects.equals(this.environment, scoreNotificationRequest.environment) && - Objects.equals(this.timestamp, scoreNotificationRequest.timestamp) && - Objects.equals(this.type, scoreNotificationRequest.type); + return Objects.equals(this.data, scoreNotificationRequest.data) + && Objects.equals(this.environment, scoreNotificationRequest.environment) + && Objects.equals(this.timestamp, scoreNotificationRequest.timestamp) + && Objects.equals(this.type, scoreNotificationRequest.type); } @Override @@ -254,8 +252,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -264,21 +261,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ScoreNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of ScoreNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to ScoreNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ScoreNotificationRequest */ - public static ScoreNotificationRequest fromJson(String jsonString) throws JsonProcessingException { + public static ScoreNotificationRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ScoreNotificationRequest.class); } -/** - * Convert an instance of ScoreNotificationRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ScoreNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationNotificationData.java b/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationNotificationData.java index c0858d035..55bcb7120 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationNotificationData.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationNotificationData.java @@ -2,38 +2,27 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.configurationwebhooks.SweepConfigurationV2; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * SweepConfigurationNotificationData - */ +/** SweepConfigurationNotificationData */ @JsonPropertyOrder({ SweepConfigurationNotificationData.JSON_PROPERTY_ACCOUNT_ID, SweepConfigurationNotificationData.JSON_PROPERTY_BALANCE_PLATFORM, SweepConfigurationNotificationData.JSON_PROPERTY_SWEEP }) - public class SweepConfigurationNotificationData { public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId"; private String accountId; @@ -44,14 +33,15 @@ public class SweepConfigurationNotificationData { public static final String JSON_PROPERTY_SWEEP = "sweep"; private SweepConfigurationV2 sweep; - public SweepConfigurationNotificationData() { - } + public SweepConfigurationNotificationData() {} /** * The unique identifier of the balance account for which the sweep was configured. * - * @param accountId The unique identifier of the balance account for which the sweep was configured. - * @return the current {@code SweepConfigurationNotificationData} instance, allowing for method chaining + * @param accountId The unique identifier of the balance account for which the sweep was + * configured. + * @return the current {@code SweepConfigurationNotificationData} instance, allowing for method + * chaining */ public SweepConfigurationNotificationData accountId(String accountId) { this.accountId = accountId; @@ -60,7 +50,9 @@ public SweepConfigurationNotificationData accountId(String accountId) { /** * The unique identifier of the balance account for which the sweep was configured. - * @return accountId The unique identifier of the balance account for which the sweep was configured. + * + * @return accountId The unique identifier of the balance account for which the sweep was + * configured. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,7 +63,8 @@ public String getAccountId() { /** * The unique identifier of the balance account for which the sweep was configured. * - * @param accountId The unique identifier of the balance account for which the sweep was configured. + * @param accountId The unique identifier of the balance account for which the sweep was + * configured. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,7 +76,8 @@ public void setAccountId(String accountId) { * The unique identifier of the balance platform. * * @param balancePlatform The unique identifier of the balance platform. - * @return the current {@code SweepConfigurationNotificationData} instance, allowing for method chaining + * @return the current {@code SweepConfigurationNotificationData} instance, allowing for method + * chaining */ public SweepConfigurationNotificationData balancePlatform(String balancePlatform) { this.balancePlatform = balancePlatform; @@ -92,6 +86,7 @@ public SweepConfigurationNotificationData balancePlatform(String balancePlatform /** * The unique identifier of the balance platform. + * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -114,8 +109,9 @@ public void setBalancePlatform(String balancePlatform) { /** * sweep * - * @param sweep - * @return the current {@code SweepConfigurationNotificationData} instance, allowing for method chaining + * @param sweep + * @return the current {@code SweepConfigurationNotificationData} instance, allowing for method + * chaining */ public SweepConfigurationNotificationData sweep(SweepConfigurationV2 sweep) { this.sweep = sweep; @@ -124,7 +120,8 @@ public SweepConfigurationNotificationData sweep(SweepConfigurationV2 sweep) { /** * Get sweep - * @return sweep + * + * @return sweep */ @JsonProperty(JSON_PROPERTY_SWEEP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,7 +132,7 @@ public SweepConfigurationV2 getSweep() { /** * sweep * - * @param sweep + * @param sweep */ @JsonProperty(JSON_PROPERTY_SWEEP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,9 +140,7 @@ public void setSweep(SweepConfigurationV2 sweep) { this.sweep = sweep; } - /** - * Return true if this SweepConfigurationNotificationData object is equal to o. - */ + /** Return true if this SweepConfigurationNotificationData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,10 +149,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SweepConfigurationNotificationData sweepConfigurationNotificationData = (SweepConfigurationNotificationData) o; - return Objects.equals(this.accountId, sweepConfigurationNotificationData.accountId) && - Objects.equals(this.balancePlatform, sweepConfigurationNotificationData.balancePlatform) && - Objects.equals(this.sweep, sweepConfigurationNotificationData.sweep); + SweepConfigurationNotificationData sweepConfigurationNotificationData = + (SweepConfigurationNotificationData) o; + return Objects.equals(this.accountId, sweepConfigurationNotificationData.accountId) + && Objects.equals(this.balancePlatform, sweepConfigurationNotificationData.balancePlatform) + && Objects.equals(this.sweep, sweepConfigurationNotificationData.sweep); } @Override @@ -177,8 +173,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -187,21 +182,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SweepConfigurationNotificationData given an JSON string * * @param jsonString JSON string * @return An instance of SweepConfigurationNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to SweepConfigurationNotificationData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SweepConfigurationNotificationData */ - public static SweepConfigurationNotificationData fromJson(String jsonString) throws JsonProcessingException { + public static SweepConfigurationNotificationData fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SweepConfigurationNotificationData.class); } -/** - * Convert an instance of SweepConfigurationNotificationData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SweepConfigurationNotificationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationNotificationRequest.java b/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationNotificationRequest.java index cd13eb6f1..fe3140ab2 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationNotificationRequest.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationNotificationRequest.java @@ -2,40 +2,33 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.configurationwebhooks.SweepConfigurationNotificationData; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * SweepConfigurationNotificationRequest - */ +/** SweepConfigurationNotificationRequest */ @JsonPropertyOrder({ SweepConfigurationNotificationRequest.JSON_PROPERTY_DATA, SweepConfigurationNotificationRequest.JSON_PROPERTY_ENVIRONMENT, SweepConfigurationNotificationRequest.JSON_PROPERTY_TIMESTAMP, SweepConfigurationNotificationRequest.JSON_PROPERTY_TYPE }) - public class SweepConfigurationNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private SweepConfigurationNotificationData data; @@ -46,23 +39,23 @@ public class SweepConfigurationNotificationRequest { public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; private OffsetDateTime timestamp; - /** - * Type of webhook. - */ + /** Type of webhook. */ public enum TypeEnum { + BALANCEPLATFORM_BALANCEACCOUNTSWEEP_CREATED( + String.valueOf("balancePlatform.balanceAccountSweep.created")), - BALANCEPLATFORM_BALANCEACCOUNTSWEEP_CREATED(String.valueOf("balancePlatform.balanceAccountSweep.created")), + BALANCEPLATFORM_BALANCEACCOUNTSWEEP_UPDATED( + String.valueOf("balancePlatform.balanceAccountSweep.updated")), - BALANCEPLATFORM_BALANCEACCOUNTSWEEP_UPDATED(String.valueOf("balancePlatform.balanceAccountSweep.updated")), - - BALANCEPLATFORM_BALANCEACCOUNTSWEEP_DELETED(String.valueOf("balancePlatform.balanceAccountSweep.deleted")); + BALANCEPLATFORM_BALANCEACCOUNTSWEEP_DELETED( + String.valueOf("balancePlatform.balanceAccountSweep.deleted")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -83,7 +76,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -91,14 +88,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public SweepConfigurationNotificationRequest() { - } + public SweepConfigurationNotificationRequest() {} /** * data * - * @param data - * @return the current {@code SweepConfigurationNotificationRequest} instance, allowing for method chaining + * @param data + * @return the current {@code SweepConfigurationNotificationRequest} instance, allowing for method + * chaining */ public SweepConfigurationNotificationRequest data(SweepConfigurationNotificationData data) { this.data = data; @@ -107,7 +104,8 @@ public SweepConfigurationNotificationRequest data(SweepConfigurationNotification /** * Get data - * @return data + * + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,7 +116,7 @@ public SweepConfigurationNotificationData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,10 +125,12 @@ public void setData(SweepConfigurationNotificationData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. - * @return the current {@code SweepConfigurationNotificationRequest} instance, allowing for method chaining + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. + * @return the current {@code SweepConfigurationNotificationRequest} instance, allowing for method + * chaining */ public SweepConfigurationNotificationRequest environment(String environment) { this.environment = environment; @@ -138,8 +138,10 @@ public SweepConfigurationNotificationRequest environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * + * @return environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,9 +150,10 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -162,7 +165,8 @@ public void setEnvironment(String environment) { * When the event was queued. * * @param timestamp When the event was queued. - * @return the current {@code SweepConfigurationNotificationRequest} instance, allowing for method chaining + * @return the current {@code SweepConfigurationNotificationRequest} instance, allowing for method + * chaining */ public SweepConfigurationNotificationRequest timestamp(OffsetDateTime timestamp) { this.timestamp = timestamp; @@ -171,6 +175,7 @@ public SweepConfigurationNotificationRequest timestamp(OffsetDateTime timestamp) /** * When the event was queued. + * * @return timestamp When the event was queued. */ @JsonProperty(JSON_PROPERTY_TIMESTAMP) @@ -194,7 +199,8 @@ public void setTimestamp(OffsetDateTime timestamp) { * Type of webhook. * * @param type Type of webhook. - * @return the current {@code SweepConfigurationNotificationRequest} instance, allowing for method chaining + * @return the current {@code SweepConfigurationNotificationRequest} instance, allowing for method + * chaining */ public SweepConfigurationNotificationRequest type(TypeEnum type) { this.type = type; @@ -203,6 +209,7 @@ public SweepConfigurationNotificationRequest type(TypeEnum type) { /** * Type of webhook. + * * @return type Type of webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -222,9 +229,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this SweepConfigurationNotificationRequest object is equal to o. - */ + /** Return true if this SweepConfigurationNotificationRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -233,11 +238,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SweepConfigurationNotificationRequest sweepConfigurationNotificationRequest = (SweepConfigurationNotificationRequest) o; - return Objects.equals(this.data, sweepConfigurationNotificationRequest.data) && - Objects.equals(this.environment, sweepConfigurationNotificationRequest.environment) && - Objects.equals(this.timestamp, sweepConfigurationNotificationRequest.timestamp) && - Objects.equals(this.type, sweepConfigurationNotificationRequest.type); + SweepConfigurationNotificationRequest sweepConfigurationNotificationRequest = + (SweepConfigurationNotificationRequest) o; + return Objects.equals(this.data, sweepConfigurationNotificationRequest.data) + && Objects.equals(this.environment, sweepConfigurationNotificationRequest.environment) + && Objects.equals(this.timestamp, sweepConfigurationNotificationRequest.timestamp) + && Objects.equals(this.type, sweepConfigurationNotificationRequest.type); } @Override @@ -258,8 +264,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -268,21 +273,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SweepConfigurationNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of SweepConfigurationNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to SweepConfigurationNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SweepConfigurationNotificationRequest */ - public static SweepConfigurationNotificationRequest fromJson(String jsonString) throws JsonProcessingException { + public static SweepConfigurationNotificationRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SweepConfigurationNotificationRequest.class); } -/** - * Convert an instance of SweepConfigurationNotificationRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SweepConfigurationNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationV2.java b/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationV2.java index 6aa743c0f..228e1fac8 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationV2.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationV2.java @@ -2,36 +2,28 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.configurationwebhooks.Amount; -import com.adyen.model.configurationwebhooks.SweepCounterparty; -import com.adyen.model.configurationwebhooks.SweepSchedule; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * SweepConfigurationV2 - */ +/** SweepConfigurationV2 */ @JsonPropertyOrder({ SweepConfigurationV2.JSON_PROPERTY_CATEGORY, SweepConfigurationV2.JSON_PROPERTY_COUNTERPARTY, @@ -50,13 +42,16 @@ SweepConfigurationV2.JSON_PROPERTY_TRIGGER_AMOUNT, SweepConfigurationV2.JSON_PROPERTY_TYPE }) - public class SweepConfigurationV2 { /** - * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. + * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a + * [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * - **internal**: Transfer to another [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. Required when setting `priorities`. */ public enum CategoryEnum { - BANK(String.valueOf("bank")), INTERNAL(String.valueOf("internal")), @@ -68,7 +63,7 @@ public enum CategoryEnum { private String value; CategoryEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -89,7 +84,11 @@ public static CategoryEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("CategoryEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CategoryEnum.values())); + LOG.warning( + "CategoryEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(CategoryEnum.values())); return null; } } @@ -109,11 +108,8 @@ public static CategoryEnum fromValue(String value) { public static final String JSON_PROPERTY_ID = "id"; private String id; - /** - * Gets or Sets priorities - */ + /** Gets or Sets priorities */ public enum PrioritiesEnum { - CROSSBORDER(String.valueOf("crossBorder")), FAST(String.valueOf("fast")), @@ -131,7 +127,7 @@ public enum PrioritiesEnum { private String value; PrioritiesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -152,7 +148,11 @@ public static PrioritiesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PrioritiesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PrioritiesEnum.values())); + LOG.warning( + "PrioritiesEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PrioritiesEnum.values())); return null; } } @@ -160,11 +160,8 @@ public static PrioritiesEnum fromValue(String value) { public static final String JSON_PROPERTY_PRIORITIES = "priorities"; private List priorities; - /** - * The reason for disabling the sweep. - */ + /** The reason for disabling the sweep. */ public enum ReasonEnum { - ACCOUNTHIERARCHYNOTACTIVE(String.valueOf("accountHierarchyNotActive")), AMOUNTLIMITEXCEEDED(String.valueOf("amountLimitExceeded")), @@ -173,7 +170,8 @@ public enum ReasonEnum { APPROVED(String.valueOf("approved")), - BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE(String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), + BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE( + String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), COUNTERPARTYACCOUNTBLOCKED(String.valueOf("counterpartyAccountBlocked")), @@ -220,7 +218,7 @@ public enum ReasonEnum { private String value; ReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -241,7 +239,11 @@ public static ReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ReasonEnum.values())); + LOG.warning( + "ReasonEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ReasonEnum.values())); return null; } } @@ -262,10 +264,11 @@ public static ReasonEnum fromValue(String value) { private SweepSchedule schedule; /** - * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * The status of the sweep. If not provided, by default, this is set to **active**. Possible + * values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on + * the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. */ public enum StatusEnum { - ACTIVE(String.valueOf("active")), INACTIVE(String.valueOf("inactive")); @@ -275,7 +278,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -296,7 +299,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -314,10 +321,12 @@ public static StatusEnum fromValue(String value) { private Amount triggerAmount; /** - * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. + * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not + * provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to + * a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source + * merchant account, transfer instrument, or balance account. */ public enum TypeEnum { - PULL(String.valueOf("pull")), PUSH(String.valueOf("push")); @@ -327,7 +336,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -348,7 +357,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -356,13 +369,22 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public SweepConfigurationV2() { - } + public SweepConfigurationV2() {} /** - * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. + * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a + * [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * - **internal**: Transfer to another [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. Required when setting `priorities`. * - * @param category The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. + * @param category The type of transfer that results from the sweep. Possible values: - **bank**: + * Sweep to a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * - **internal**: Transfer to another [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. Required when setting `priorities`. * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 category(CategoryEnum category) { @@ -371,8 +393,19 @@ public SweepConfigurationV2 category(CategoryEnum category) { } /** - * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. - * @return category The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. + * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a + * [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * - **internal**: Transfer to another [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. Required when setting `priorities`. + * + * @return category The type of transfer that results from the sweep. Possible values: - **bank**: + * Sweep to a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * - **internal**: Transfer to another [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. Required when setting `priorities`. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -381,9 +414,19 @@ public CategoryEnum getCategory() { } /** - * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. + * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a + * [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * - **internal**: Transfer to another [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. Required when setting `priorities`. * - * @param category The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. + * @param category The type of transfer that results from the sweep. Possible values: - **bank**: + * Sweep to a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * - **internal**: Transfer to another [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. Required when setting `priorities`. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -394,7 +437,7 @@ public void setCategory(CategoryEnum category) { /** * counterparty * - * @param counterparty + * @param counterparty * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 counterparty(SweepCounterparty counterparty) { @@ -404,7 +447,8 @@ public SweepConfigurationV2 counterparty(SweepCounterparty counterparty) { /** * Get counterparty - * @return counterparty + * + * @return counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -415,7 +459,7 @@ public SweepCounterparty getCounterparty() { /** * counterparty * - * @param counterparty + * @param counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -424,9 +468,15 @@ public void setCounterparty(SweepCounterparty counterparty) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, + * **EUR**. The sweep currency must match any of the [balances + * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For + * example, **EUR**. The sweep currency must match any of the [balances + * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 currency(String currency) { @@ -435,8 +485,15 @@ public SweepConfigurationV2 currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, + * **EUR**. The sweep currency must match any of the [balances + * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For + * example, **EUR**. The sweep currency must match any of the [balances + * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -445,9 +502,15 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, + * **EUR**. The sweep currency must match any of the [balances + * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For + * example, **EUR**. The sweep currency must match any of the [balances + * currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -456,9 +519,13 @@ public void setCurrency(String currency) { } /** - * The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. + * The message that will be used in the sweep transfer's description body with a maximum + * length of 140 characters. If the message is longer after replacing placeholders, the message + * will be cut off at 140 characters. * - * @param description The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. + * @param description The message that will be used in the sweep transfer's description body + * with a maximum length of 140 characters. If the message is longer after replacing + * placeholders, the message will be cut off at 140 characters. * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 description(String description) { @@ -467,8 +534,13 @@ public SweepConfigurationV2 description(String description) { } /** - * The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. - * @return description The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. + * The message that will be used in the sweep transfer's description body with a maximum + * length of 140 characters. If the message is longer after replacing placeholders, the message + * will be cut off at 140 characters. + * + * @return description The message that will be used in the sweep transfer's description body + * with a maximum length of 140 characters. If the message is longer after replacing + * placeholders, the message will be cut off at 140 characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -477,9 +549,13 @@ public String getDescription() { } /** - * The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. + * The message that will be used in the sweep transfer's description body with a maximum + * length of 140 characters. If the message is longer after replacing placeholders, the message + * will be cut off at 140 characters. * - * @param description The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. + * @param description The message that will be used in the sweep transfer's description body + * with a maximum length of 140 characters. If the message is longer after replacing + * placeholders, the message will be cut off at 140 characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -500,6 +576,7 @@ public SweepConfigurationV2 id(String id) { /** * The unique identifier of the sweep. + * * @return id The unique identifier of the sweep. */ @JsonProperty(JSON_PROPERTY_ID) @@ -520,9 +597,50 @@ public void setId(String id) { } /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent + * and the fees that you have to pay. You can provide multiple priorities, ordered by your + * preference. Adyen will try to pay out using the priorities in the given order. If the first + * priority is not currently supported or enabled for your platform, the system will try the next + * one, and so on. The request will be accepted as long as **at least one** of the provided + * priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if + * you provide `[\"wire\",\"regular\"]`, and `wire` is not + * supported but `regular` is, the request will still be accepted and processed. + * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to + * transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. + * * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). Set `category` to **bank**. For more details, see optional priorities + * setup for + * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) + * or + * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). * - * @param priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * @param priorities The list of priorities for the bank transfer. This sets the speed at which + * the transfer is sent and the fees that you have to pay. You can provide multiple + * priorities, ordered by your preference. Adyen will try to pay out using the priorities in + * the given order. If the first priority is not currently supported or enabled for your + * platform, the system will try the next one, and so on. The request will be accepted as long + * as **at least one** of the provided priorities is valid (i.e., supported by Adyen and + * activated for your platform). For example, if you provide + * `[\"wire\",\"regular\"]`, and `wire` is not + * supported but `regular` is, the request will still be accepted and processed. + * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster + * way to transfer funds, but the fees are higher. Recommended for high-priority, low-value + * transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. + * Recommended for high-priority, high-value transactions. * **instant**: for instant funds + * transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). Set `category` to **bank**. For more details, see optional + * priorities setup for + * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) + * or + * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 priorities(List priorities) { @@ -539,8 +657,50 @@ public SweepConfigurationV2 addPrioritiesItem(PrioritiesEnum prioritiesItem) { } /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). - * @return priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent + * and the fees that you have to pay. You can provide multiple priorities, ordered by your + * preference. Adyen will try to pay out using the priorities in the given order. If the first + * priority is not currently supported or enabled for your platform, the system will try the next + * one, and so on. The request will be accepted as long as **at least one** of the provided + * priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if + * you provide `[\"wire\",\"regular\"]`, and `wire` is not + * supported but `regular` is, the request will still be accepted and processed. + * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to + * transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. + * * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). Set `category` to **bank**. For more details, see optional priorities + * setup for + * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) + * or + * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * + * @return priorities The list of priorities for the bank transfer. This sets the speed at which + * the transfer is sent and the fees that you have to pay. You can provide multiple + * priorities, ordered by your preference. Adyen will try to pay out using the priorities in + * the given order. If the first priority is not currently supported or enabled for your + * platform, the system will try the next one, and so on. The request will be accepted as long + * as **at least one** of the provided priorities is valid (i.e., supported by Adyen and + * activated for your platform). For example, if you provide + * `[\"wire\",\"regular\"]`, and `wire` is not + * supported but `regular` is, the request will still be accepted and processed. + * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster + * way to transfer funds, but the fees are higher. Recommended for high-priority, low-value + * transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. + * Recommended for high-priority, high-value transactions. * **instant**: for instant funds + * transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). Set `category` to **bank**. For more details, see optional + * priorities setup for + * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) + * or + * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). */ @JsonProperty(JSON_PROPERTY_PRIORITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -549,9 +709,50 @@ public List getPriorities() { } /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent + * and the fees that you have to pay. You can provide multiple priorities, ordered by your + * preference. Adyen will try to pay out using the priorities in the given order. If the first + * priority is not currently supported or enabled for your platform, the system will try the next + * one, and so on. The request will be accepted as long as **at least one** of the provided + * priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if + * you provide `[\"wire\",\"regular\"]`, and `wire` is not + * supported but `regular` is, the request will still be accepted and processed. + * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to + * transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. + * * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). Set `category` to **bank**. For more details, see optional priorities + * setup for + * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) + * or + * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). * - * @param priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * @param priorities The list of priorities for the bank transfer. This sets the speed at which + * the transfer is sent and the fees that you have to pay. You can provide multiple + * priorities, ordered by your preference. Adyen will try to pay out using the priorities in + * the given order. If the first priority is not currently supported or enabled for your + * platform, the system will try the next one, and so on. The request will be accepted as long + * as **at least one** of the provided priorities is valid (i.e., supported by Adyen and + * activated for your platform). For example, if you provide + * `[\"wire\",\"regular\"]`, and `wire` is not + * supported but `regular` is, the request will still be accepted and processed. + * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster + * way to transfer funds, but the fees are higher. Recommended for high-priority, low-value + * transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. + * Recommended for high-priority, high-value transactions. * **instant**: for instant funds + * transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). Set `category` to **bank**. For more details, see optional + * priorities setup for + * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) + * or + * [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). */ @JsonProperty(JSON_PROPERTY_PRIORITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -572,6 +773,7 @@ public SweepConfigurationV2 reason(ReasonEnum reason) { /** * The reason for disabling the sweep. + * * @return reason The reason for disabling the sweep. */ @JsonProperty(JSON_PROPERTY_REASON) @@ -604,6 +806,7 @@ public SweepConfigurationV2 reasonDetail(String reasonDetail) { /** * The human readable reason for disabling the sweep. + * * @return reasonDetail The human readable reason for disabling the sweep. */ @JsonProperty(JSON_PROPERTY_REASON_DETAIL) @@ -636,6 +839,7 @@ public SweepConfigurationV2 reference(String reference) { /** * Your reference for the sweep configuration. + * * @return reference Your reference for the sweep configuration. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -656,9 +860,11 @@ public void setReference(String reference) { } /** - * The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. + * The reference sent to or received from the counterparty. Only alphanumeric characters are + * allowed. * - * @param referenceForBeneficiary The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. + * @param referenceForBeneficiary The reference sent to or received from the counterparty. Only + * alphanumeric characters are allowed. * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 referenceForBeneficiary(String referenceForBeneficiary) { @@ -667,8 +873,11 @@ public SweepConfigurationV2 referenceForBeneficiary(String referenceForBeneficia } /** - * The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. - * @return referenceForBeneficiary The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. + * The reference sent to or received from the counterparty. Only alphanumeric characters are + * allowed. + * + * @return referenceForBeneficiary The reference sent to or received from the counterparty. Only + * alphanumeric characters are allowed. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -677,9 +886,11 @@ public String getReferenceForBeneficiary() { } /** - * The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. + * The reference sent to or received from the counterparty. Only alphanumeric characters are + * allowed. * - * @param referenceForBeneficiary The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. + * @param referenceForBeneficiary The reference sent to or received from the counterparty. Only + * alphanumeric characters are allowed. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -690,7 +901,7 @@ public void setReferenceForBeneficiary(String referenceForBeneficiary) { /** * schedule * - * @param schedule + * @param schedule * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 schedule(SweepSchedule schedule) { @@ -700,7 +911,8 @@ public SweepConfigurationV2 schedule(SweepSchedule schedule) { /** * Get schedule - * @return schedule + * + * @return schedule */ @JsonProperty(JSON_PROPERTY_SCHEDULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -711,7 +923,7 @@ public SweepSchedule getSchedule() { /** * schedule * - * @param schedule + * @param schedule */ @JsonProperty(JSON_PROPERTY_SCHEDULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -720,9 +932,14 @@ public void setSchedule(SweepSchedule schedule) { } /** - * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * The status of the sweep. If not provided, by default, this is set to **active**. Possible + * values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on + * the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. * - * @param status The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * @param status The status of the sweep. If not provided, by default, this is set to **active**. + * Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed + * out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be + * triggered. * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 status(StatusEnum status) { @@ -731,8 +948,14 @@ public SweepConfigurationV2 status(StatusEnum status) { } /** - * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. - * @return status The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * The status of the sweep. If not provided, by default, this is set to **active**. Possible + * values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on + * the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * + * @return status The status of the sweep. If not provided, by default, this is set to **active**. + * Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed + * out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be + * triggered. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -741,9 +964,14 @@ public StatusEnum getStatus() { } /** - * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * The status of the sweep. If not provided, by default, this is set to **active**. Possible + * values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on + * the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. * - * @param status The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + * @param status The status of the sweep. If not provided, by default, this is set to **active**. + * Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed + * out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be + * triggered. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -754,7 +982,7 @@ public void setStatus(StatusEnum status) { /** * sweepAmount * - * @param sweepAmount + * @param sweepAmount * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 sweepAmount(Amount sweepAmount) { @@ -764,7 +992,8 @@ public SweepConfigurationV2 sweepAmount(Amount sweepAmount) { /** * Get sweepAmount - * @return sweepAmount + * + * @return sweepAmount */ @JsonProperty(JSON_PROPERTY_SWEEP_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -775,7 +1004,7 @@ public Amount getSweepAmount() { /** * sweepAmount * - * @param sweepAmount + * @param sweepAmount */ @JsonProperty(JSON_PROPERTY_SWEEP_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -786,7 +1015,7 @@ public void setSweepAmount(Amount sweepAmount) { /** * targetAmount * - * @param targetAmount + * @param targetAmount * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 targetAmount(Amount targetAmount) { @@ -796,7 +1025,8 @@ public SweepConfigurationV2 targetAmount(Amount targetAmount) { /** * Get targetAmount - * @return targetAmount + * + * @return targetAmount */ @JsonProperty(JSON_PROPERTY_TARGET_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -807,7 +1037,7 @@ public Amount getTargetAmount() { /** * targetAmount * - * @param targetAmount + * @param targetAmount */ @JsonProperty(JSON_PROPERTY_TARGET_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -818,7 +1048,7 @@ public void setTargetAmount(Amount targetAmount) { /** * triggerAmount * - * @param triggerAmount + * @param triggerAmount * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 triggerAmount(Amount triggerAmount) { @@ -828,7 +1058,8 @@ public SweepConfigurationV2 triggerAmount(Amount triggerAmount) { /** * Get triggerAmount - * @return triggerAmount + * + * @return triggerAmount */ @JsonProperty(JSON_PROPERTY_TRIGGER_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -839,7 +1070,7 @@ public Amount getTriggerAmount() { /** * triggerAmount * - * @param triggerAmount + * @param triggerAmount */ @JsonProperty(JSON_PROPERTY_TRIGGER_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -848,9 +1079,15 @@ public void setTriggerAmount(Amount triggerAmount) { } /** - * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. + * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not + * provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to + * a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source + * merchant account, transfer instrument, or balance account. * - * @param type The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. + * @param type The direction of sweep, whether pushing out or pulling in funds to the balance + * account. If not provided, by default, this is set to **push**. Possible values: * **push**: + * _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull + * in funds_ from a source merchant account, transfer instrument, or balance account. * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining */ public SweepConfigurationV2 type(TypeEnum type) { @@ -859,8 +1096,15 @@ public SweepConfigurationV2 type(TypeEnum type) { } /** - * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. - * @return type The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. + * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not + * provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to + * a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source + * merchant account, transfer instrument, or balance account. + * + * @return type The direction of sweep, whether pushing out or pulling in funds to the balance + * account. If not provided, by default, this is set to **push**. Possible values: * **push**: + * _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull + * in funds_ from a source merchant account, transfer instrument, or balance account. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -869,9 +1113,15 @@ public TypeEnum getType() { } /** - * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. + * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not + * provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to + * a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source + * merchant account, transfer instrument, or balance account. * - * @param type The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. + * @param type The direction of sweep, whether pushing out or pulling in funds to the balance + * account. If not provided, by default, this is set to **push**. Possible values: * **push**: + * _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull + * in funds_ from a source merchant account, transfer instrument, or balance account. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -879,9 +1129,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this SweepConfigurationV2 object is equal to o. - */ + /** Return true if this SweepConfigurationV2 object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -891,27 +1139,44 @@ public boolean equals(Object o) { return false; } SweepConfigurationV2 sweepConfigurationV2 = (SweepConfigurationV2) o; - return Objects.equals(this.category, sweepConfigurationV2.category) && - Objects.equals(this.counterparty, sweepConfigurationV2.counterparty) && - Objects.equals(this.currency, sweepConfigurationV2.currency) && - Objects.equals(this.description, sweepConfigurationV2.description) && - Objects.equals(this.id, sweepConfigurationV2.id) && - Objects.equals(this.priorities, sweepConfigurationV2.priorities) && - Objects.equals(this.reason, sweepConfigurationV2.reason) && - Objects.equals(this.reasonDetail, sweepConfigurationV2.reasonDetail) && - Objects.equals(this.reference, sweepConfigurationV2.reference) && - Objects.equals(this.referenceForBeneficiary, sweepConfigurationV2.referenceForBeneficiary) && - Objects.equals(this.schedule, sweepConfigurationV2.schedule) && - Objects.equals(this.status, sweepConfigurationV2.status) && - Objects.equals(this.sweepAmount, sweepConfigurationV2.sweepAmount) && - Objects.equals(this.targetAmount, sweepConfigurationV2.targetAmount) && - Objects.equals(this.triggerAmount, sweepConfigurationV2.triggerAmount) && - Objects.equals(this.type, sweepConfigurationV2.type); + return Objects.equals(this.category, sweepConfigurationV2.category) + && Objects.equals(this.counterparty, sweepConfigurationV2.counterparty) + && Objects.equals(this.currency, sweepConfigurationV2.currency) + && Objects.equals(this.description, sweepConfigurationV2.description) + && Objects.equals(this.id, sweepConfigurationV2.id) + && Objects.equals(this.priorities, sweepConfigurationV2.priorities) + && Objects.equals(this.reason, sweepConfigurationV2.reason) + && Objects.equals(this.reasonDetail, sweepConfigurationV2.reasonDetail) + && Objects.equals(this.reference, sweepConfigurationV2.reference) + && Objects.equals( + this.referenceForBeneficiary, sweepConfigurationV2.referenceForBeneficiary) + && Objects.equals(this.schedule, sweepConfigurationV2.schedule) + && Objects.equals(this.status, sweepConfigurationV2.status) + && Objects.equals(this.sweepAmount, sweepConfigurationV2.sweepAmount) + && Objects.equals(this.targetAmount, sweepConfigurationV2.targetAmount) + && Objects.equals(this.triggerAmount, sweepConfigurationV2.triggerAmount) + && Objects.equals(this.type, sweepConfigurationV2.type); } @Override public int hashCode() { - return Objects.hash(category, counterparty, currency, description, id, priorities, reason, reasonDetail, reference, referenceForBeneficiary, schedule, status, sweepAmount, targetAmount, triggerAmount, type); + return Objects.hash( + category, + counterparty, + currency, + description, + id, + priorities, + reason, + reasonDetail, + reference, + referenceForBeneficiary, + schedule, + status, + sweepAmount, + targetAmount, + triggerAmount, + type); } @Override @@ -927,7 +1192,9 @@ public String toString() { sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" reasonDetail: ").append(toIndentedString(reasonDetail)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); - sb.append(" referenceForBeneficiary: ").append(toIndentedString(referenceForBeneficiary)).append("\n"); + sb.append(" referenceForBeneficiary: ") + .append(toIndentedString(referenceForBeneficiary)) + .append("\n"); sb.append(" schedule: ").append(toIndentedString(schedule)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" sweepAmount: ").append(toIndentedString(sweepAmount)).append("\n"); @@ -939,8 +1206,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -949,21 +1215,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SweepConfigurationV2 given an JSON string * * @param jsonString JSON string * @return An instance of SweepConfigurationV2 - * @throws JsonProcessingException if the JSON string is invalid with respect to SweepConfigurationV2 + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SweepConfigurationV2 */ public static SweepConfigurationV2 fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SweepConfigurationV2.class); } -/** - * Convert an instance of SweepConfigurationV2 to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SweepConfigurationV2 to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/SweepCounterparty.java b/src/main/java/com/adyen/model/configurationwebhooks/SweepCounterparty.java index 86c1ffcd0..3334d36cb 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/SweepCounterparty.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/SweepCounterparty.java @@ -2,37 +2,27 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * SweepCounterparty - */ +/** SweepCounterparty */ @JsonPropertyOrder({ SweepCounterparty.JSON_PROPERTY_BALANCE_ACCOUNT_ID, SweepCounterparty.JSON_PROPERTY_MERCHANT_ACCOUNT, SweepCounterparty.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID }) - public class SweepCounterparty { public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; @@ -43,13 +33,18 @@ public class SweepCounterparty { public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_ID = "transferInstrumentId"; private String transferInstrumentId; - public SweepCounterparty() { - } + public SweepCounterparty() {} /** - * The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). > If you are updating the counterparty from a transfer instrument to a balance account, set `transferInstrumentId` to **null**. + * The unique identifier of the destination or source [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). + * > If you are updating the counterparty from a transfer instrument to a balance account, set + * `transferInstrumentId` to **null**. * - * @param balanceAccountId The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). > If you are updating the counterparty from a transfer instrument to a balance account, set `transferInstrumentId` to **null**. + * @param balanceAccountId The unique identifier of the destination or source [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). + * > If you are updating the counterparty from a transfer instrument to a balance account, + * set `transferInstrumentId` to **null**. * @return the current {@code SweepCounterparty} instance, allowing for method chaining */ public SweepCounterparty balanceAccountId(String balanceAccountId) { @@ -58,8 +53,15 @@ public SweepCounterparty balanceAccountId(String balanceAccountId) { } /** - * The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). > If you are updating the counterparty from a transfer instrument to a balance account, set `transferInstrumentId` to **null**. - * @return balanceAccountId The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). > If you are updating the counterparty from a transfer instrument to a balance account, set `transferInstrumentId` to **null**. + * The unique identifier of the destination or source [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). + * > If you are updating the counterparty from a transfer instrument to a balance account, set + * `transferInstrumentId` to **null**. + * + * @return balanceAccountId The unique identifier of the destination or source [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). + * > If you are updating the counterparty from a transfer instrument to a balance account, + * set `transferInstrumentId` to **null**. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,9 +70,15 @@ public String getBalanceAccountId() { } /** - * The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). > If you are updating the counterparty from a transfer instrument to a balance account, set `transferInstrumentId` to **null**. + * The unique identifier of the destination or source [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). + * > If you are updating the counterparty from a transfer instrument to a balance account, set + * `transferInstrumentId` to **null**. * - * @param balanceAccountId The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). > If you are updating the counterparty from a transfer instrument to a balance account, set `transferInstrumentId` to **null**. + * @param balanceAccountId The unique identifier of the destination or source [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). + * > If you are updating the counterparty from a transfer instrument to a balance account, + * set `transferInstrumentId` to **null**. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,9 +87,12 @@ public void setBalanceAccountId(String balanceAccountId) { } /** - * The merchant account that will be the source of funds. You can only use this parameter with sweeps of `type` **pull** and if you are processing payments with Adyen. + * The merchant account that will be the source of funds. You can only use this parameter with + * sweeps of `type` **pull** and if you are processing payments with Adyen. * - * @param merchantAccount The merchant account that will be the source of funds. You can only use this parameter with sweeps of `type` **pull** and if you are processing payments with Adyen. + * @param merchantAccount The merchant account that will be the source of funds. You can only use + * this parameter with sweeps of `type` **pull** and if you are processing payments + * with Adyen. * @return the current {@code SweepCounterparty} instance, allowing for method chaining */ public SweepCounterparty merchantAccount(String merchantAccount) { @@ -90,8 +101,12 @@ public SweepCounterparty merchantAccount(String merchantAccount) { } /** - * The merchant account that will be the source of funds. You can only use this parameter with sweeps of `type` **pull** and if you are processing payments with Adyen. - * @return merchantAccount The merchant account that will be the source of funds. You can only use this parameter with sweeps of `type` **pull** and if you are processing payments with Adyen. + * The merchant account that will be the source of funds. You can only use this parameter with + * sweeps of `type` **pull** and if you are processing payments with Adyen. + * + * @return merchantAccount The merchant account that will be the source of funds. You can only use + * this parameter with sweeps of `type` **pull** and if you are processing payments + * with Adyen. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,9 +115,12 @@ public String getMerchantAccount() { } /** - * The merchant account that will be the source of funds. You can only use this parameter with sweeps of `type` **pull** and if you are processing payments with Adyen. + * The merchant account that will be the source of funds. You can only use this parameter with + * sweeps of `type` **pull** and if you are processing payments with Adyen. * - * @param merchantAccount The merchant account that will be the source of funds. You can only use this parameter with sweeps of `type` **pull** and if you are processing payments with Adyen. + * @param merchantAccount The merchant account that will be the source of funds. You can only use + * this parameter with sweeps of `type` **pull** and if you are processing payments + * with Adyen. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,9 +129,28 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type` . To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.> If you are updating the counterparty from a balance account to a transfer instrument, set `balanceAccountId` to **null**. + * The unique identifier of the destination or source [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) + * depending on the sweep `type` . To set up automated top-up sweeps to balance accounts + * in your + * [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or + * [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this + * parameter in combination with a `merchantAccount` and a sweep `type` of + * **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. + * Contact Adyen Support to enable this feature.> If you are updating the counterparty from a + * balance account to a transfer instrument, set `balanceAccountId` to **null**. * - * @param transferInstrumentId The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type` . To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.> If you are updating the counterparty from a balance account to a transfer instrument, set `balanceAccountId` to **null**. + * @param transferInstrumentId The unique identifier of the destination or source [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) + * depending on the sweep `type` . To set up automated top-up sweeps to balance + * accounts in your + * [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) + * or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), + * use this parameter in combination with a `merchantAccount` and a sweep + * `type` of **pull**. Top-up sweeps start a direct debit request from the source + * transfer instrument. Contact Adyen Support to enable this feature.> If you are updating + * the counterparty from a balance account to a transfer instrument, set + * `balanceAccountId` to **null**. * @return the current {@code SweepCounterparty} instance, allowing for method chaining */ public SweepCounterparty transferInstrumentId(String transferInstrumentId) { @@ -122,8 +159,28 @@ public SweepCounterparty transferInstrumentId(String transferInstrumentId) { } /** - * The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type` . To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.> If you are updating the counterparty from a balance account to a transfer instrument, set `balanceAccountId` to **null**. - * @return transferInstrumentId The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type` . To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.> If you are updating the counterparty from a balance account to a transfer instrument, set `balanceAccountId` to **null**. + * The unique identifier of the destination or source [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) + * depending on the sweep `type` . To set up automated top-up sweeps to balance accounts + * in your + * [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or + * [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this + * parameter in combination with a `merchantAccount` and a sweep `type` of + * **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. + * Contact Adyen Support to enable this feature.> If you are updating the counterparty from a + * balance account to a transfer instrument, set `balanceAccountId` to **null**. + * + * @return transferInstrumentId The unique identifier of the destination or source [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) + * depending on the sweep `type` . To set up automated top-up sweeps to balance + * accounts in your + * [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) + * or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), + * use this parameter in combination with a `merchantAccount` and a sweep + * `type` of **pull**. Top-up sweeps start a direct debit request from the source + * transfer instrument. Contact Adyen Support to enable this feature.> If you are updating + * the counterparty from a balance account to a transfer instrument, set + * `balanceAccountId` to **null**. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,9 +189,28 @@ public String getTransferInstrumentId() { } /** - * The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type` . To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.> If you are updating the counterparty from a balance account to a transfer instrument, set `balanceAccountId` to **null**. + * The unique identifier of the destination or source [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) + * depending on the sweep `type` . To set up automated top-up sweeps to balance accounts + * in your + * [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or + * [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this + * parameter in combination with a `merchantAccount` and a sweep `type` of + * **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. + * Contact Adyen Support to enable this feature.> If you are updating the counterparty from a + * balance account to a transfer instrument, set `balanceAccountId` to **null**. * - * @param transferInstrumentId The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type` . To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.> If you are updating the counterparty from a balance account to a transfer instrument, set `balanceAccountId` to **null**. + * @param transferInstrumentId The unique identifier of the destination or source [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) + * depending on the sweep `type` . To set up automated top-up sweeps to balance + * accounts in your + * [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) + * or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), + * use this parameter in combination with a `merchantAccount` and a sweep + * `type` of **pull**. Top-up sweeps start a direct debit request from the source + * transfer instrument. Contact Adyen Support to enable this feature.> If you are updating + * the counterparty from a balance account to a transfer instrument, set + * `balanceAccountId` to **null**. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +218,7 @@ public void setTransferInstrumentId(String transferInstrumentId) { this.transferInstrumentId = transferInstrumentId; } - /** - * Return true if this SweepCounterparty object is equal to o. - */ + /** Return true if this SweepCounterparty object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +228,9 @@ public boolean equals(Object o) { return false; } SweepCounterparty sweepCounterparty = (SweepCounterparty) o; - return Objects.equals(this.balanceAccountId, sweepCounterparty.balanceAccountId) && - Objects.equals(this.merchantAccount, sweepCounterparty.merchantAccount) && - Objects.equals(this.transferInstrumentId, sweepCounterparty.transferInstrumentId); + return Objects.equals(this.balanceAccountId, sweepCounterparty.balanceAccountId) + && Objects.equals(this.merchantAccount, sweepCounterparty.merchantAccount) + && Objects.equals(this.transferInstrumentId, sweepCounterparty.transferInstrumentId); } @Override @@ -170,14 +244,15 @@ public String toString() { sb.append("class SweepCounterparty {\n"); sb.append(" balanceAccountId: ").append(toIndentedString(balanceAccountId)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" transferInstrumentId: ").append(toIndentedString(transferInstrumentId)).append("\n"); + sb.append(" transferInstrumentId: ") + .append(toIndentedString(transferInstrumentId)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +261,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SweepCounterparty given an JSON string * * @param jsonString JSON string @@ -196,11 +271,12 @@ private String toIndentedString(Object o) { public static SweepCounterparty fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SweepCounterparty.class); } -/** - * Convert an instance of SweepCounterparty to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SweepCounterparty to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/SweepSchedule.java b/src/main/java/com/adyen/model/configurationwebhooks/SweepSchedule.java index 926377094..34cb25fa4 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/SweepSchedule.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/SweepSchedule.java @@ -2,45 +2,39 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * SweepSchedule - */ -@JsonPropertyOrder({ - SweepSchedule.JSON_PROPERTY_CRON_EXPRESSION, - SweepSchedule.JSON_PROPERTY_TYPE -}) - +/** SweepSchedule */ +@JsonPropertyOrder({SweepSchedule.JSON_PROPERTY_CRON_EXPRESSION, SweepSchedule.JSON_PROPERTY_TYPE}) public class SweepSchedule { public static final String JSON_PROPERTY_CRON_EXPRESSION = "cronExpression"; private String cronExpression; /** - * The schedule type. Possible values: * **cron**: push out funds based on a `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the `triggerAmount` is reached. + * The schedule type. Possible values: * **cron**: push out funds based on a + * `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: + * push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the + * month at 07:00 AM CET. * **balance**: execute the sweep instantly if the + * `triggerAmount` is reached. */ public enum TypeEnum { - DAILY(String.valueOf("daily")), WEEKLY(String.valueOf("weekly")), @@ -56,7 +50,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -77,7 +71,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -85,13 +83,27 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public SweepSchedule() { - } + public SweepSchedule() {} /** - * A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. Required when `type` is **cron**. + * A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the + * sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * + * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated + * by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the + * month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are + * Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, + * **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. + * Required when `type` is **cron**. * - * @param cronExpression A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. Required when `type` is **cron**. + * @param cronExpression A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) + * that is used to set the sweep schedule. The schedule uses the time zone of the balance + * account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The + * expression must have five values separated by a single space in the following order: * + * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or + * **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following + * non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See + * [crontab guru](https://crontab.guru/) for more examples. Required when `type` is + * **cron**. * @return the current {@code SweepSchedule} instance, allowing for method chaining */ public SweepSchedule cronExpression(String cronExpression) { @@ -100,8 +112,24 @@ public SweepSchedule cronExpression(String cronExpression) { } /** - * A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. Required when `type` is **cron**. - * @return cronExpression A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. Required when `type` is **cron**. + * A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the + * sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * + * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated + * by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the + * month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are + * Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, + * **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. + * Required when `type` is **cron**. + * + * @return cronExpression A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) + * that is used to set the sweep schedule. The schedule uses the time zone of the balance + * account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The + * expression must have five values separated by a single space in the following order: * + * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or + * **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following + * non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See + * [crontab guru](https://crontab.guru/) for more examples. Required when `type` is + * **cron**. */ @JsonProperty(JSON_PROPERTY_CRON_EXPRESSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,9 +138,24 @@ public String getCronExpression() { } /** - * A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. Required when `type` is **cron**. + * A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the + * sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * + * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated + * by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the + * month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are + * Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, + * **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. + * Required when `type` is **cron**. * - * @param cronExpression A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. Required when `type` is **cron**. + * @param cronExpression A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) + * that is used to set the sweep schedule. The schedule uses the time zone of the balance + * account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The + * expression must have five values separated by a single space in the following order: * + * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or + * **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following + * non-standard characters are supported: **&ast;**, **L**, **#**, **W** and **_/_**. See + * [crontab guru](https://crontab.guru/) for more examples. Required when `type` is + * **cron**. */ @JsonProperty(JSON_PROPERTY_CRON_EXPRESSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,9 +164,17 @@ public void setCronExpression(String cronExpression) { } /** - * The schedule type. Possible values: * **cron**: push out funds based on a `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the `triggerAmount` is reached. + * The schedule type. Possible values: * **cron**: push out funds based on a + * `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: + * push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the + * month at 07:00 AM CET. * **balance**: execute the sweep instantly if the + * `triggerAmount` is reached. * - * @param type The schedule type. Possible values: * **cron**: push out funds based on a `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the `triggerAmount` is reached. + * @param type The schedule type. Possible values: * **cron**: push out funds based on a + * `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * + * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds + * every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the + * `triggerAmount` is reached. * @return the current {@code SweepSchedule} instance, allowing for method chaining */ public SweepSchedule type(TypeEnum type) { @@ -132,8 +183,17 @@ public SweepSchedule type(TypeEnum type) { } /** - * The schedule type. Possible values: * **cron**: push out funds based on a `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the `triggerAmount` is reached. - * @return type The schedule type. Possible values: * **cron**: push out funds based on a `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the `triggerAmount` is reached. + * The schedule type. Possible values: * **cron**: push out funds based on a + * `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: + * push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the + * month at 07:00 AM CET. * **balance**: execute the sweep instantly if the + * `triggerAmount` is reached. + * + * @return type The schedule type. Possible values: * **cron**: push out funds based on a + * `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * + * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds + * every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the + * `triggerAmount` is reached. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +202,17 @@ public TypeEnum getType() { } /** - * The schedule type. Possible values: * **cron**: push out funds based on a `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the `triggerAmount` is reached. + * The schedule type. Possible values: * **cron**: push out funds based on a + * `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: + * push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the + * month at 07:00 AM CET. * **balance**: execute the sweep instantly if the + * `triggerAmount` is reached. * - * @param type The schedule type. Possible values: * **cron**: push out funds based on a `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the `triggerAmount` is reached. + * @param type The schedule type. Possible values: * **cron**: push out funds based on a + * `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * + * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds + * every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the + * `triggerAmount` is reached. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,9 +220,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this SweepSchedule object is equal to o. - */ + /** Return true if this SweepSchedule object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -164,8 +230,8 @@ public boolean equals(Object o) { return false; } SweepSchedule sweepSchedule = (SweepSchedule) o; - return Objects.equals(this.cronExpression, sweepSchedule.cronExpression) && - Objects.equals(this.type, sweepSchedule.type); + return Objects.equals(this.cronExpression, sweepSchedule.cronExpression) + && Objects.equals(this.type, sweepSchedule.type); } @Override @@ -184,8 +250,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -194,7 +259,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SweepSchedule given an JSON string * * @param jsonString JSON string @@ -204,11 +269,12 @@ private String toIndentedString(Object o) { public static SweepSchedule fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SweepSchedule.class); } -/** - * Convert an instance of SweepSchedule to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SweepSchedule to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/TokenAuthentication.java b/src/main/java/com/adyen/model/configurationwebhooks/TokenAuthentication.java index 9f9e5716c..e5ec7a521 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/TokenAuthentication.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/TokenAuthentication.java @@ -2,36 +2,26 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TokenAuthentication - */ +/** TokenAuthentication */ @JsonPropertyOrder({ TokenAuthentication.JSON_PROPERTY_METHOD, TokenAuthentication.JSON_PROPERTY_RESULT }) - public class TokenAuthentication { public static final String JSON_PROPERTY_METHOD = "method"; private String method; @@ -39,13 +29,14 @@ public class TokenAuthentication { public static final String JSON_PROPERTY_RESULT = "result"; private String result; - public TokenAuthentication() { - } + public TokenAuthentication() {} /** - * The method used to complete the authentication process. Possible values: **sms_OTP**, **email_OTP**. + * The method used to complete the authentication process. Possible values: **sms_OTP**, + * **email_OTP**. * - * @param method The method used to complete the authentication process. Possible values: **sms_OTP**, **email_OTP**. + * @param method The method used to complete the authentication process. Possible values: + * **sms_OTP**, **email_OTP**. * @return the current {@code TokenAuthentication} instance, allowing for method chaining */ public TokenAuthentication method(String method) { @@ -54,8 +45,11 @@ public TokenAuthentication method(String method) { } /** - * The method used to complete the authentication process. Possible values: **sms_OTP**, **email_OTP**. - * @return method The method used to complete the authentication process. Possible values: **sms_OTP**, **email_OTP**. + * The method used to complete the authentication process. Possible values: **sms_OTP**, + * **email_OTP**. + * + * @return method The method used to complete the authentication process. Possible values: + * **sms_OTP**, **email_OTP**. */ @JsonProperty(JSON_PROPERTY_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +58,11 @@ public String getMethod() { } /** - * The method used to complete the authentication process. Possible values: **sms_OTP**, **email_OTP**. + * The method used to complete the authentication process. Possible values: **sms_OTP**, + * **email_OTP**. * - * @param method The method used to complete the authentication process. Possible values: **sms_OTP**, **email_OTP**. + * @param method The method used to complete the authentication process. Possible values: + * **sms_OTP**, **email_OTP**. */ @JsonProperty(JSON_PROPERTY_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,6 +83,7 @@ public TokenAuthentication result(String result) { /** * The result of the authentication process. + * * @return result The result of the authentication process. */ @JsonProperty(JSON_PROPERTY_RESULT) @@ -106,9 +103,7 @@ public void setResult(String result) { this.result = result; } - /** - * Return true if this TokenAuthentication object is equal to o. - */ + /** Return true if this TokenAuthentication object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +113,8 @@ public boolean equals(Object o) { return false; } TokenAuthentication tokenAuthentication = (TokenAuthentication) o; - return Objects.equals(this.method, tokenAuthentication.method) && - Objects.equals(this.result, tokenAuthentication.result); + return Objects.equals(this.method, tokenAuthentication.method) + && Objects.equals(this.result, tokenAuthentication.result); } @Override @@ -138,8 +133,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +142,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TokenAuthentication given an JSON string * * @param jsonString JSON string * @return An instance of TokenAuthentication - * @throws JsonProcessingException if the JSON string is invalid with respect to TokenAuthentication + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TokenAuthentication */ public static TokenAuthentication fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TokenAuthentication.class); } -/** - * Convert an instance of TokenAuthentication to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TokenAuthentication to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/ValidationFacts.java b/src/main/java/com/adyen/model/configurationwebhooks/ValidationFacts.java index b7270916a..6d65ae64c 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/ValidationFacts.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/ValidationFacts.java @@ -2,48 +2,42 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * ValidationFacts - */ +/** ValidationFacts */ @JsonPropertyOrder({ ValidationFacts.JSON_PROPERTY_REASONS, ValidationFacts.JSON_PROPERTY_RESULT, ValidationFacts.JSON_PROPERTY_TYPE }) - public class ValidationFacts { public static final String JSON_PROPERTY_REASONS = "reasons"; private List reasons; /** - * The evaluation result of the validation facts. Possible values: **valid**, **invalid**, **notValidated**, **notApplicable**. + * The evaluation result of the validation facts. Possible values: **valid**, **invalid**, + * **notValidated**, **notApplicable**. */ public enum ResultEnum { - INVALID(String.valueOf("invalid")), NOTAPPLICABLE(String.valueOf("notApplicable")), @@ -57,7 +51,7 @@ public enum ResultEnum { private String value; ResultEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -78,7 +72,11 @@ public static ResultEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ResultEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResultEnum.values())); + LOG.warning( + "ResultEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ResultEnum.values())); return null; } } @@ -89,13 +87,16 @@ public static ResultEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public ValidationFacts() { - } + public ValidationFacts() {} /** - * The reason for the `result` of the validations. This field is only sent for `validationFacts.type` **walletValidation**, when `validationFacts.result` is **invalid**. + * The reason for the `result` of the validations. This field is only sent for + * `validationFacts.type` **walletValidation**, when `validationFacts.result` + * is **invalid**. * - * @param reasons The reason for the `result` of the validations. This field is only sent for `validationFacts.type` **walletValidation**, when `validationFacts.result` is **invalid**. + * @param reasons The reason for the `result` of the validations. This field is only + * sent for `validationFacts.type` **walletValidation**, when + * `validationFacts.result` is **invalid**. * @return the current {@code ValidationFacts} instance, allowing for method chaining */ public ValidationFacts reasons(List reasons) { @@ -112,8 +113,13 @@ public ValidationFacts addReasonsItem(String reasonsItem) { } /** - * The reason for the `result` of the validations. This field is only sent for `validationFacts.type` **walletValidation**, when `validationFacts.result` is **invalid**. - * @return reasons The reason for the `result` of the validations. This field is only sent for `validationFacts.type` **walletValidation**, when `validationFacts.result` is **invalid**. + * The reason for the `result` of the validations. This field is only sent for + * `validationFacts.type` **walletValidation**, when `validationFacts.result` + * is **invalid**. + * + * @return reasons The reason for the `result` of the validations. This field is only + * sent for `validationFacts.type` **walletValidation**, when + * `validationFacts.result` is **invalid**. */ @JsonProperty(JSON_PROPERTY_REASONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -122,9 +128,13 @@ public List getReasons() { } /** - * The reason for the `result` of the validations. This field is only sent for `validationFacts.type` **walletValidation**, when `validationFacts.result` is **invalid**. + * The reason for the `result` of the validations. This field is only sent for + * `validationFacts.type` **walletValidation**, when `validationFacts.result` + * is **invalid**. * - * @param reasons The reason for the `result` of the validations. This field is only sent for `validationFacts.type` **walletValidation**, when `validationFacts.result` is **invalid**. + * @param reasons The reason for the `result` of the validations. This field is only + * sent for `validationFacts.type` **walletValidation**, when + * `validationFacts.result` is **invalid**. */ @JsonProperty(JSON_PROPERTY_REASONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -133,9 +143,11 @@ public void setReasons(List reasons) { } /** - * The evaluation result of the validation facts. Possible values: **valid**, **invalid**, **notValidated**, **notApplicable**. + * The evaluation result of the validation facts. Possible values: **valid**, **invalid**, + * **notValidated**, **notApplicable**. * - * @param result The evaluation result of the validation facts. Possible values: **valid**, **invalid**, **notValidated**, **notApplicable**. + * @param result The evaluation result of the validation facts. Possible values: **valid**, + * **invalid**, **notValidated**, **notApplicable**. * @return the current {@code ValidationFacts} instance, allowing for method chaining */ public ValidationFacts result(ResultEnum result) { @@ -144,8 +156,11 @@ public ValidationFacts result(ResultEnum result) { } /** - * The evaluation result of the validation facts. Possible values: **valid**, **invalid**, **notValidated**, **notApplicable**. - * @return result The evaluation result of the validation facts. Possible values: **valid**, **invalid**, **notValidated**, **notApplicable**. + * The evaluation result of the validation facts. Possible values: **valid**, **invalid**, + * **notValidated**, **notApplicable**. + * + * @return result The evaluation result of the validation facts. Possible values: **valid**, + * **invalid**, **notValidated**, **notApplicable**. */ @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -154,9 +169,11 @@ public ResultEnum getResult() { } /** - * The evaluation result of the validation facts. Possible values: **valid**, **invalid**, **notValidated**, **notApplicable**. + * The evaluation result of the validation facts. Possible values: **valid**, **invalid**, + * **notValidated**, **notApplicable**. * - * @param result The evaluation result of the validation facts. Possible values: **valid**, **invalid**, **notValidated**, **notApplicable**. + * @param result The evaluation result of the validation facts. Possible values: **valid**, + * **invalid**, **notValidated**, **notApplicable**. */ @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,6 +194,7 @@ public ValidationFacts type(String type) { /** * The type of the validation fact. + * * @return type The type of the validation fact. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -196,9 +214,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this ValidationFacts object is equal to o. - */ + /** Return true if this ValidationFacts object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -208,9 +224,9 @@ public boolean equals(Object o) { return false; } ValidationFacts validationFacts = (ValidationFacts) o; - return Objects.equals(this.reasons, validationFacts.reasons) && - Objects.equals(this.result, validationFacts.result) && - Objects.equals(this.type, validationFacts.type); + return Objects.equals(this.reasons, validationFacts.reasons) + && Objects.equals(this.result, validationFacts.result) + && Objects.equals(this.type, validationFacts.type); } @Override @@ -230,8 +246,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -240,7 +255,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ValidationFacts given an JSON string * * @param jsonString JSON string @@ -250,11 +265,12 @@ private String toIndentedString(Object o) { public static ValidationFacts fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ValidationFacts.class); } -/** - * Convert an instance of ValidationFacts to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ValidationFacts to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/VerificationDeadline.java b/src/main/java/com/adyen/model/configurationwebhooks/VerificationDeadline.java index fa197d7fd..1c116b82e 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/VerificationDeadline.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/VerificationDeadline.java @@ -2,61 +2,58 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * VerificationDeadline - */ +/** VerificationDeadline */ @JsonPropertyOrder({ VerificationDeadline.JSON_PROPERTY_CAPABILITIES, VerificationDeadline.JSON_PROPERTY_ENTITY_IDS, VerificationDeadline.JSON_PROPERTY_EXPIRES_AT }) - public class VerificationDeadline { - /** - * Gets or Sets capabilities - */ + /** Gets or Sets capabilities */ public enum CapabilitiesEnum { - ACCEPTEXTERNALFUNDING(String.valueOf("acceptExternalFunding")), ACCEPTPSPFUNDING(String.valueOf("acceptPspFunding")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES(String.valueOf("acceptTransactionInRestrictedCountries")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES( + String.valueOf("acceptTransactionInRestrictedCountries")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER( + String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES(String.valueOf("acceptTransactionInRestrictedIndustries")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES( + String.valueOf("acceptTransactionInRestrictedIndustries")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL( + String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER( + String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), ACQUIRING(String.valueOf("acquiring")), @@ -68,9 +65,11 @@ public enum CapabilitiesEnum { ATMWITHDRAWALINRESTRICTEDCOUNTRIES(String.valueOf("atmWithdrawalInRestrictedCountries")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER( + String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), AUTHORISEDPAYMENTINSTRUMENTUSER(String.valueOf("authorisedPaymentInstrumentUser")), @@ -126,13 +125,15 @@ public enum CapabilitiesEnum { USECARDINRESTRICTEDCOUNTRIES(String.valueOf("useCardInRestrictedCountries")), - USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedCountriesCommercial")), + USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("useCardInRestrictedCountriesCommercial")), USECARDINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("useCardInRestrictedCountriesConsumer")), USECARDINRESTRICTEDINDUSTRIES(String.valueOf("useCardInRestrictedIndustries")), - USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedIndustriesCommercial")), + USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL( + String.valueOf("useCardInRestrictedIndustriesCommercial")), USECARDINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("useCardInRestrictedIndustriesConsumer")), @@ -148,16 +149,18 @@ public enum CapabilitiesEnum { WITHDRAWFROMATMINRESTRICTEDCOUNTRIES(String.valueOf("withdrawFromAtmInRestrictedCountries")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER( + String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); private static final Logger LOG = Logger.getLogger(CapabilitiesEnum.class.getName()); private String value; CapabilitiesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -178,7 +181,11 @@ public static CapabilitiesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("CapabilitiesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CapabilitiesEnum.values())); + LOG.warning( + "CapabilitiesEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(CapabilitiesEnum.values())); return null; } } @@ -192,8 +199,7 @@ public static CapabilitiesEnum fromValue(String value) { public static final String JSON_PROPERTY_EXPIRES_AT = "expiresAt"; private OffsetDateTime expiresAt; - public VerificationDeadline() { - } + public VerificationDeadline() {} /** * The names of the capabilities to be disallowed. @@ -216,6 +222,7 @@ public VerificationDeadline addCapabilitiesItem(CapabilitiesEnum capabilitiesIte /** * The names of the capabilities to be disallowed. + * * @return capabilities The names of the capabilities to be disallowed. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @@ -256,6 +263,7 @@ public VerificationDeadline addEntityIdsItem(String entityIdsItem) { /** * The unique identifiers of the bank account(s) that the deadline applies to + * * @return entityIds The unique identifiers of the bank account(s) that the deadline applies to */ @JsonProperty(JSON_PROPERTY_ENTITY_IDS) @@ -288,6 +296,7 @@ public VerificationDeadline expiresAt(OffsetDateTime expiresAt) { /** * The date that verification is due by before capabilities are disallowed. + * * @return expiresAt The date that verification is due by before capabilities are disallowed. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @@ -307,9 +316,7 @@ public void setExpiresAt(OffsetDateTime expiresAt) { this.expiresAt = expiresAt; } - /** - * Return true if this VerificationDeadline object is equal to o. - */ + /** Return true if this VerificationDeadline object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -319,9 +326,9 @@ public boolean equals(Object o) { return false; } VerificationDeadline verificationDeadline = (VerificationDeadline) o; - return Objects.equals(this.capabilities, verificationDeadline.capabilities) && - Objects.equals(this.entityIds, verificationDeadline.entityIds) && - Objects.equals(this.expiresAt, verificationDeadline.expiresAt); + return Objects.equals(this.capabilities, verificationDeadline.capabilities) + && Objects.equals(this.entityIds, verificationDeadline.entityIds) + && Objects.equals(this.expiresAt, verificationDeadline.expiresAt); } @Override @@ -341,8 +348,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -351,21 +357,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of VerificationDeadline given an JSON string * * @param jsonString JSON string * @return An instance of VerificationDeadline - * @throws JsonProcessingException if the JSON string is invalid with respect to VerificationDeadline + * @throws JsonProcessingException if the JSON string is invalid with respect to + * VerificationDeadline */ public static VerificationDeadline fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, VerificationDeadline.class); } -/** - * Convert an instance of VerificationDeadline to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of VerificationDeadline to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/VerificationError.java b/src/main/java/com/adyen/model/configurationwebhooks/VerificationError.java index 4f2666c51..d216b880d 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/VerificationError.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/VerificationError.java @@ -2,35 +2,28 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.configurationwebhooks.RemediatingAction; -import com.adyen.model.configurationwebhooks.VerificationErrorRecursive; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * VerificationError - */ +/** VerificationError */ @JsonPropertyOrder({ VerificationError.JSON_PROPERTY_CAPABILITIES, VerificationError.JSON_PROPERTY_CODE, @@ -39,28 +32,30 @@ VerificationError.JSON_PROPERTY_SUB_ERRORS, VerificationError.JSON_PROPERTY_TYPE }) - public class VerificationError { - /** - * Gets or Sets capabilities - */ + /** Gets or Sets capabilities */ public enum CapabilitiesEnum { - ACCEPTEXTERNALFUNDING(String.valueOf("acceptExternalFunding")), ACCEPTPSPFUNDING(String.valueOf("acceptPspFunding")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES(String.valueOf("acceptTransactionInRestrictedCountries")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES( + String.valueOf("acceptTransactionInRestrictedCountries")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER( + String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES(String.valueOf("acceptTransactionInRestrictedIndustries")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES( + String.valueOf("acceptTransactionInRestrictedIndustries")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL( + String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER( + String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), ACQUIRING(String.valueOf("acquiring")), @@ -72,9 +67,11 @@ public enum CapabilitiesEnum { ATMWITHDRAWALINRESTRICTEDCOUNTRIES(String.valueOf("atmWithdrawalInRestrictedCountries")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER( + String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), AUTHORISEDPAYMENTINSTRUMENTUSER(String.valueOf("authorisedPaymentInstrumentUser")), @@ -130,13 +127,15 @@ public enum CapabilitiesEnum { USECARDINRESTRICTEDCOUNTRIES(String.valueOf("useCardInRestrictedCountries")), - USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedCountriesCommercial")), + USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("useCardInRestrictedCountriesCommercial")), USECARDINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("useCardInRestrictedCountriesConsumer")), USECARDINRESTRICTEDINDUSTRIES(String.valueOf("useCardInRestrictedIndustries")), - USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedIndustriesCommercial")), + USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL( + String.valueOf("useCardInRestrictedIndustriesCommercial")), USECARDINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("useCardInRestrictedIndustriesConsumer")), @@ -152,16 +151,18 @@ public enum CapabilitiesEnum { WITHDRAWFROMATMINRESTRICTEDCOUNTRIES(String.valueOf("withdrawFromAtmInRestrictedCountries")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER( + String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); private static final Logger LOG = Logger.getLogger(CapabilitiesEnum.class.getName()); private String value; CapabilitiesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -182,7 +183,11 @@ public static CapabilitiesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("CapabilitiesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CapabilitiesEnum.values())); + LOG.warning( + "CapabilitiesEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(CapabilitiesEnum.values())); return null; } } @@ -203,10 +208,9 @@ public static CapabilitiesEnum fromValue(String value) { private List subErrors; /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** */ public enum TypeEnum { - DATAMISSING(String.valueOf("dataMissing")), INVALIDINPUT(String.valueOf("invalidInput")), @@ -218,7 +222,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -239,7 +243,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -247,8 +255,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public VerificationError() { - } + public VerificationError() {} /** * Contains the capabilities that the verification error applies to. @@ -271,6 +278,7 @@ public VerificationError addCapabilitiesItem(CapabilitiesEnum capabilitiesItem) /** * Contains the capabilities that the verification error applies to. + * * @return capabilities Contains the capabilities that the verification error applies to. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @@ -303,6 +311,7 @@ public VerificationError code(String code) { /** * The verification error code. + * * @return code The verification error code. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -335,6 +344,7 @@ public VerificationError message(String message) { /** * A description of the error. + * * @return message A description of the error. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -357,7 +367,8 @@ public void setMessage(String message) { /** * Contains the actions that you can take to resolve the verification error. * - * @param remediatingActions Contains the actions that you can take to resolve the verification error. + * @param remediatingActions Contains the actions that you can take to resolve the verification + * error. * @return the current {@code VerificationError} instance, allowing for method chaining */ public VerificationError remediatingActions(List remediatingActions) { @@ -375,7 +386,9 @@ public VerificationError addRemediatingActionsItem(RemediatingAction remediating /** * Contains the actions that you can take to resolve the verification error. - * @return remediatingActions Contains the actions that you can take to resolve the verification error. + * + * @return remediatingActions Contains the actions that you can take to resolve the verification + * error. */ @JsonProperty(JSON_PROPERTY_REMEDIATING_ACTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -386,7 +399,8 @@ public List getRemediatingActions() { /** * Contains the actions that you can take to resolve the verification error. * - * @param remediatingActions Contains the actions that you can take to resolve the verification error. + * @param remediatingActions Contains the actions that you can take to resolve the verification + * error. */ @JsonProperty(JSON_PROPERTY_REMEDIATING_ACTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -415,6 +429,7 @@ public VerificationError addSubErrorsItem(VerificationErrorRecursive subErrorsIt /** * Contains more granular information about the verification error. + * * @return subErrors Contains more granular information about the verification error. */ @JsonProperty(JSON_PROPERTY_SUB_ERRORS) @@ -435,9 +450,10 @@ public void setSubErrors(List subErrors) { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * - * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * + * **pendingStatus** * @return the current {@code VerificationError} instance, allowing for method chaining */ public VerificationError type(TypeEnum type) { @@ -446,8 +462,10 @@ public VerificationError type(TypeEnum type) { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** - * @return type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * + * @return type The type of error. Possible values: * **invalidInput** * **dataMissing** * + * **pendingStatus** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -456,9 +474,10 @@ public TypeEnum getType() { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * - * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * + * **pendingStatus** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -466,9 +485,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this VerificationError object is equal to o. - */ + /** Return true if this VerificationError object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -478,12 +495,12 @@ public boolean equals(Object o) { return false; } VerificationError verificationError = (VerificationError) o; - return Objects.equals(this.capabilities, verificationError.capabilities) && - Objects.equals(this.code, verificationError.code) && - Objects.equals(this.message, verificationError.message) && - Objects.equals(this.remediatingActions, verificationError.remediatingActions) && - Objects.equals(this.subErrors, verificationError.subErrors) && - Objects.equals(this.type, verificationError.type); + return Objects.equals(this.capabilities, verificationError.capabilities) + && Objects.equals(this.code, verificationError.code) + && Objects.equals(this.message, verificationError.message) + && Objects.equals(this.remediatingActions, verificationError.remediatingActions) + && Objects.equals(this.subErrors, verificationError.subErrors) + && Objects.equals(this.type, verificationError.type); } @Override @@ -506,8 +523,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -516,7 +532,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of VerificationError given an JSON string * * @param jsonString JSON string @@ -526,11 +542,12 @@ private String toIndentedString(Object o) { public static VerificationError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, VerificationError.class); } -/** - * Convert an instance of VerificationError to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of VerificationError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/VerificationErrorRecursive.java b/src/main/java/com/adyen/model/configurationwebhooks/VerificationErrorRecursive.java index 5c5089e59..8dc0fe6e7 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/VerificationErrorRecursive.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/VerificationErrorRecursive.java @@ -2,34 +2,29 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.configurationwebhooks.RemediatingAction; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * VerificationErrorRecursive - */ +/** VerificationErrorRecursive */ @JsonPropertyOrder({ VerificationErrorRecursive.JSON_PROPERTY_CAPABILITIES, VerificationErrorRecursive.JSON_PROPERTY_CODE, @@ -38,28 +33,30 @@ VerificationErrorRecursive.JSON_PROPERTY_REMEDIATING_ACTIONS }) @JsonTypeName("VerificationError-recursive") - public class VerificationErrorRecursive { - /** - * Gets or Sets capabilities - */ + /** Gets or Sets capabilities */ public enum CapabilitiesEnum { - ACCEPTEXTERNALFUNDING(String.valueOf("acceptExternalFunding")), ACCEPTPSPFUNDING(String.valueOf("acceptPspFunding")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES(String.valueOf("acceptTransactionInRestrictedCountries")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES( + String.valueOf("acceptTransactionInRestrictedCountries")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER( + String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES(String.valueOf("acceptTransactionInRestrictedIndustries")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES( + String.valueOf("acceptTransactionInRestrictedIndustries")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL( + String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER( + String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), ACQUIRING(String.valueOf("acquiring")), @@ -71,9 +68,11 @@ public enum CapabilitiesEnum { ATMWITHDRAWALINRESTRICTEDCOUNTRIES(String.valueOf("atmWithdrawalInRestrictedCountries")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER( + String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), AUTHORISEDPAYMENTINSTRUMENTUSER(String.valueOf("authorisedPaymentInstrumentUser")), @@ -129,13 +128,15 @@ public enum CapabilitiesEnum { USECARDINRESTRICTEDCOUNTRIES(String.valueOf("useCardInRestrictedCountries")), - USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedCountriesCommercial")), + USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("useCardInRestrictedCountriesCommercial")), USECARDINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("useCardInRestrictedCountriesConsumer")), USECARDINRESTRICTEDINDUSTRIES(String.valueOf("useCardInRestrictedIndustries")), - USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedIndustriesCommercial")), + USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL( + String.valueOf("useCardInRestrictedIndustriesCommercial")), USECARDINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("useCardInRestrictedIndustriesConsumer")), @@ -151,16 +152,18 @@ public enum CapabilitiesEnum { WITHDRAWFROMATMINRESTRICTEDCOUNTRIES(String.valueOf("withdrawFromAtmInRestrictedCountries")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER( + String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); private static final Logger LOG = Logger.getLogger(CapabilitiesEnum.class.getName()); private String value; CapabilitiesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -181,7 +184,11 @@ public static CapabilitiesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("CapabilitiesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CapabilitiesEnum.values())); + LOG.warning( + "CapabilitiesEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(CapabilitiesEnum.values())); return null; } } @@ -196,10 +203,9 @@ public static CapabilitiesEnum fromValue(String value) { private String message; /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** */ public enum TypeEnum { - DATAMISSING(String.valueOf("dataMissing")), INVALIDINPUT(String.valueOf("invalidInput")), @@ -211,7 +217,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -232,7 +238,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -243,8 +253,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_REMEDIATING_ACTIONS = "remediatingActions"; private List remediatingActions; - public VerificationErrorRecursive() { - } + public VerificationErrorRecursive() {} /** * Contains the capabilities that the verification error applies to. @@ -267,6 +276,7 @@ public VerificationErrorRecursive addCapabilitiesItem(CapabilitiesEnum capabilit /** * Contains the capabilities that the verification error applies to. + * * @return capabilities Contains the capabilities that the verification error applies to. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @@ -299,6 +309,7 @@ public VerificationErrorRecursive code(String code) { /** * The verification error code. + * * @return code The verification error code. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -331,6 +342,7 @@ public VerificationErrorRecursive message(String message) { /** * A description of the error. + * * @return message A description of the error. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -351,9 +363,10 @@ public void setMessage(String message) { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * - * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * + * **pendingStatus** * @return the current {@code VerificationErrorRecursive} instance, allowing for method chaining */ public VerificationErrorRecursive type(TypeEnum type) { @@ -362,8 +375,10 @@ public VerificationErrorRecursive type(TypeEnum type) { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** - * @return type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * + * @return type The type of error. Possible values: * **invalidInput** * **dataMissing** * + * **pendingStatus** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -372,9 +387,10 @@ public TypeEnum getType() { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * - * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** + * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * + * **pendingStatus** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -385,7 +401,8 @@ public void setType(TypeEnum type) { /** * Contains the actions that you can take to resolve the verification error. * - * @param remediatingActions Contains the actions that you can take to resolve the verification error. + * @param remediatingActions Contains the actions that you can take to resolve the verification + * error. * @return the current {@code VerificationErrorRecursive} instance, allowing for method chaining */ public VerificationErrorRecursive remediatingActions(List remediatingActions) { @@ -393,7 +410,8 @@ public VerificationErrorRecursive remediatingActions(List rem return this; } - public VerificationErrorRecursive addRemediatingActionsItem(RemediatingAction remediatingActionsItem) { + public VerificationErrorRecursive addRemediatingActionsItem( + RemediatingAction remediatingActionsItem) { if (this.remediatingActions == null) { this.remediatingActions = new ArrayList<>(); } @@ -403,7 +421,9 @@ public VerificationErrorRecursive addRemediatingActionsItem(RemediatingAction re /** * Contains the actions that you can take to resolve the verification error. - * @return remediatingActions Contains the actions that you can take to resolve the verification error. + * + * @return remediatingActions Contains the actions that you can take to resolve the verification + * error. */ @JsonProperty(JSON_PROPERTY_REMEDIATING_ACTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -414,7 +434,8 @@ public List getRemediatingActions() { /** * Contains the actions that you can take to resolve the verification error. * - * @param remediatingActions Contains the actions that you can take to resolve the verification error. + * @param remediatingActions Contains the actions that you can take to resolve the verification + * error. */ @JsonProperty(JSON_PROPERTY_REMEDIATING_ACTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -422,9 +443,7 @@ public void setRemediatingActions(List remediatingActions) { this.remediatingActions = remediatingActions; } - /** - * Return true if this VerificationError-recursive object is equal to o. - */ + /** Return true if this VerificationError-recursive object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -434,11 +453,11 @@ public boolean equals(Object o) { return false; } VerificationErrorRecursive verificationErrorRecursive = (VerificationErrorRecursive) o; - return Objects.equals(this.capabilities, verificationErrorRecursive.capabilities) && - Objects.equals(this.code, verificationErrorRecursive.code) && - Objects.equals(this.message, verificationErrorRecursive.message) && - Objects.equals(this.type, verificationErrorRecursive.type) && - Objects.equals(this.remediatingActions, verificationErrorRecursive.remediatingActions); + return Objects.equals(this.capabilities, verificationErrorRecursive.capabilities) + && Objects.equals(this.code, verificationErrorRecursive.code) + && Objects.equals(this.message, verificationErrorRecursive.message) + && Objects.equals(this.type, verificationErrorRecursive.type) + && Objects.equals(this.remediatingActions, verificationErrorRecursive.remediatingActions); } @Override @@ -460,8 +479,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -470,21 +488,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of VerificationErrorRecursive given an JSON string * * @param jsonString JSON string * @return An instance of VerificationErrorRecursive - * @throws JsonProcessingException if the JSON string is invalid with respect to VerificationErrorRecursive + * @throws JsonProcessingException if the JSON string is invalid with respect to + * VerificationErrorRecursive */ - public static VerificationErrorRecursive fromJson(String jsonString) throws JsonProcessingException { + public static VerificationErrorRecursive fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, VerificationErrorRecursive.class); } -/** - * Convert an instance of VerificationErrorRecursive to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of VerificationErrorRecursive to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Wallet.java b/src/main/java/com/adyen/model/configurationwebhooks/Wallet.java index f72d766e3..28097d897 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Wallet.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Wallet.java @@ -2,34 +2,28 @@ * Configuration webhooks * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.configurationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.configurationwebhooks.Device; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * Wallet - */ +/** Wallet */ @JsonPropertyOrder({ Wallet.JSON_PROPERTY_ACCOUNT_SCORE, Wallet.JSON_PROPERTY_DEVICE, @@ -38,7 +32,6 @@ Wallet.JSON_PROPERTY_RECOMMENDATION_REASONS, Wallet.JSON_PROPERTY_TYPE }) - public class Wallet { public static final String JSON_PROPERTY_ACCOUNT_SCORE = "accountScore"; private String accountScore; @@ -52,11 +45,8 @@ public class Wallet { public static final String JSON_PROPERTY_PROVISIONING_METHOD = "provisioningMethod"; private String provisioningMethod; - /** - * Gets or Sets recommendationReasons - */ + /** Gets or Sets recommendationReasons */ public enum RecommendationReasonsEnum { - ACCOUNTCARDTOONEW(String.valueOf("accountCardTooNew")), ACCOUNTHIGHRISK(String.valueOf("accountHighRisk")), @@ -67,21 +57,31 @@ public enum RecommendationReasonsEnum { ACCOUNTTOONEWSINCELAUNCH(String.valueOf("accountTooNewSinceLaunch")), - CARDHOLDERPANASSOCIATEDTOACCOUNTWITHINTHRESHOLDDAYS(String.valueOf("cardholderPanAssociatedToAccountWithinThresholdDays")), + CARDHOLDERPANASSOCIATEDTOACCOUNTWITHINTHRESHOLDDAYS( + String.valueOf("cardholderPanAssociatedToAccountWithinThresholdDays")), - CHANGESMADETOACCOUNTDATAWITHINTHRESHOLDDAYS(String.valueOf("changesMadeToAccountDataWithinThresholdDays")), + CHANGESMADETOACCOUNTDATAWITHINTHRESHOLDDAYS( + String.valueOf("changesMadeToAccountDataWithinThresholdDays")), - DEVICEPROVISIONINGLOCATIONOUTSIDEOFCARDHOLDERSWALLETACCOUNTHOMECOUNTRY(String.valueOf("deviceProvisioningLocationOutsideOfCardholdersWalletAccountHomeCountry")), + DEVICEPROVISIONINGLOCATIONOUTSIDEOFCARDHOLDERSWALLETACCOUNTHOMECOUNTRY( + String.valueOf("deviceProvisioningLocationOutsideOfCardholdersWalletAccountHomeCountry")), DEVICERECENTLYLOST(String.valueOf("deviceRecentlyLost")), - ENCRYPTEDPAYMENTINSTRUMENTDATAISBEINGPUSHEDBYTHEISSUERTOTHESAMEDEVICETHATISSUERAPPLICATIONAUTHENTICATEDBUTWITHSUCCESSFULUPFRONTAUTHENTICATION(String.valueOf("encryptedPaymentInstrumentDataIsBeingPushedByTheIssuerToTheSameDeviceThatIssuerApplicationAuthenticatedButWithSuccessfulUpfrontAuthentication")), + ENCRYPTEDPAYMENTINSTRUMENTDATAISBEINGPUSHEDBYTHEISSUERTOTHESAMEDEVICETHATISSUERAPPLICATIONAUTHENTICATEDBUTWITHSUCCESSFULUPFRONTAUTHENTICATION( + String.valueOf( + "encryptedPaymentInstrumentDataIsBeingPushedByTheIssuerToTheSameDeviceThatIssuerApplicationAuthenticatedButWithSuccessfulUpfrontAuthentication")), - ENCRYPTEDPAYMENTINSTRUMENTDATAISBEINGPUSHEDBYTHEISSUERTOTHESAMEDEVICETHATISSUERAPPLICATIONAUTHENTICATEDBUTWITHOUTANYUPFRONTAUTHENTICATION(String.valueOf("encryptedPaymentInstrumentDataIsBeingPushedByTheIssuerToTheSameDeviceThatIssuerApplicationAuthenticatedButWithoutAnyUpfrontAuthentication")), + ENCRYPTEDPAYMENTINSTRUMENTDATAISBEINGPUSHEDBYTHEISSUERTOTHESAMEDEVICETHATISSUERAPPLICATIONAUTHENTICATEDBUTWITHOUTANYUPFRONTAUTHENTICATION( + String.valueOf( + "encryptedPaymentInstrumentDataIsBeingPushedByTheIssuerToTheSameDeviceThatIssuerApplicationAuthenticatedButWithoutAnyUpfrontAuthentication")), - ENCRYPTEDPAYMENTINSTRUMENTDATAISPUSHEDTOADIFFERENTDEVICETHANTHEONETHATISSUERAPPLICATIONAUTHENTICATED(String.valueOf("encryptedPaymentInstrumentDataIsPushedToADifferentDeviceThanTheOneThatIssuerApplicationAuthenticated")), + ENCRYPTEDPAYMENTINSTRUMENTDATAISPUSHEDTOADIFFERENTDEVICETHANTHEONETHATISSUERAPPLICATIONAUTHENTICATED( + String.valueOf( + "encryptedPaymentInstrumentDataIsPushedToADifferentDeviceThanTheOneThatIssuerApplicationAuthenticated")), - ENCRYPTEDPAYMENTINSTRUMENTDATAISPUSHEDTOADIFFERENTUSERTHANTHECARDHOLDER(String.valueOf("encryptedPaymentInstrumentDataIsPushedToADifferentUserThanTheCardHolder")), + ENCRYPTEDPAYMENTINSTRUMENTDATAISPUSHEDTOADIFFERENTUSERTHANTHECARDHOLDER( + String.valueOf("encryptedPaymentInstrumentDataIsPushedToADifferentUserThanTheCardHolder")), HASSUSPENDEDTOKENS(String.valueOf("hasSuspendedTokens")), @@ -89,7 +89,8 @@ public enum RecommendationReasonsEnum { ISSUERDEFERREDIDVDECISION(String.valueOf("issuerDeferredIDVDecision")), - ISSUERENCRYPTEDPAYMENTINSTRUMENTDATAEXPIRED(String.valueOf("issuerEncryptedPaymentInstrumentDataExpired")), + ISSUERENCRYPTEDPAYMENTINSTRUMENTDATAEXPIRED( + String.valueOf("issuerEncryptedPaymentInstrumentDataExpired")), LOWACCOUNTSCORE(String.valueOf("lowAccountScore")), @@ -97,27 +98,38 @@ public enum RecommendationReasonsEnum { LOWPHONENUMBERSCORE(String.valueOf("lowPhoneNumberScore")), - NUMBEROFACTIVETOKENSGREATERTHANTHRESHOLD(String.valueOf("numberOfActiveTokensGreaterThanThreshold")), + NUMBEROFACTIVETOKENSGREATERTHANTHRESHOLD( + String.valueOf("numberOfActiveTokensGreaterThanThreshold")), - NUMBEROFACTIVETOKENSONALLDEVICESISGREATERTHANTHRESHOLD(String.valueOf("numberOfActiveTokensOnAllDevicesIsGreaterThanThreshold")), + NUMBEROFACTIVETOKENSONALLDEVICESISGREATERTHANTHRESHOLD( + String.valueOf("numberOfActiveTokensOnAllDevicesIsGreaterThanThreshold")), - NUMBEROFDAYSSINCEDEVICEWASLASTREPORTEDLOSTISLESSTHANTHRESHOLDDAYS(String.valueOf("numberOfDaysSinceDeviceWasLastReportedLostIsLessThanThresholdDays")), + NUMBEROFDAYSSINCEDEVICEWASLASTREPORTEDLOSTISLESSTHANTHRESHOLDDAYS( + String.valueOf("numberOfDaysSinceDeviceWasLastReportedLostIsLessThanThresholdDays")), - NUMBEROFDEVICESWITHSAMEUSERIDWITHTOKENISGREATERTHANTHRESHOLD(String.valueOf("numberOfDevicesWithSameUseridWithTokenIsGreaterThanThreshold")), + NUMBEROFDEVICESWITHSAMEUSERIDWITHTOKENISGREATERTHANTHRESHOLD( + String.valueOf("numberOfDevicesWithSameUseridWithTokenIsGreaterThanThreshold")), - NUMBEROFTRANSACTIONSINLAST12MONTHSLESSTHANTHRESHOLDNUMBER(String.valueOf("numberOfTransactionsInLast12MonthsLessThanThresholdNumber")), + NUMBEROFTRANSACTIONSINLAST12MONTHSLESSTHANTHRESHOLDNUMBER( + String.valueOf("numberOfTransactionsInLast12MonthsLessThanThresholdNumber")), OUTSIDEHOMETERRITORY(String.valueOf("outSideHomeTerritory")), - SUSPENDEDCARDSINTHEWALLETACCOUNTISGREATERTHANTHRESHOLD(String.valueOf("suspendedCardsInTheWALLETAccountIsGreaterThanThreshold")), + SUSPENDEDCARDSINTHEWALLETACCOUNTISGREATERTHANTHRESHOLD( + String.valueOf("suspendedCardsInTheWALLETAccountIsGreaterThanThreshold")), SUSPICIOUSACTIVITY(String.valueOf("suspiciousActivity")), - THENUMBEROFPROVISIONINGATTEMPTSACROSSALLCARDSONTHISDEVICEINTHELAST24HOURSEXCEEDSTHETHRESHOLD(String.valueOf("theNumberOfProvisioningAttemptsAcrossAllCardsOnThisDeviceInTheLast24HoursExceedsTheThreshold")), + THENUMBEROFPROVISIONINGATTEMPTSACROSSALLCARDSONTHISDEVICEINTHELAST24HOURSEXCEEDSTHETHRESHOLD( + String.valueOf( + "theNumberOfProvisioningAttemptsAcrossAllCardsOnThisDeviceInTheLast24HoursExceedsTheThreshold")), - THEWALLETACCOUNTINTOWHICHTHECARDISBEINGPROVISIONEDCONTAINDISTINCTNAMESGREATERTHANTHRESHOLD(String.valueOf("theWALLETAccountIntoWhichTheCardIsBeingProvisionedContainDistinctNamesGreaterThanThreshold")), + THEWALLETACCOUNTINTOWHICHTHECARDISBEINGPROVISIONEDCONTAINDISTINCTNAMESGREATERTHANTHRESHOLD( + String.valueOf( + "theWALLETAccountIntoWhichTheCardIsBeingProvisionedContainDistinctNamesGreaterThanThreshold")), - THISACCOUNTHASNOTHADACTIVITYWITHINTHRESHOLDPERIOD(String.valueOf("thisAccountHasNotHadActivityWithinThresholdPeriod")), + THISACCOUNTHASNOTHADACTIVITYWITHINTHRESHOLDPERIOD( + String.valueOf("thisAccountHasNotHadActivityWithinThresholdPeriod")), TOOMANYDIFFERENTCARDHOLDERS(String.valueOf("tooManyDifferentCardholders")), @@ -129,22 +141,28 @@ public enum RecommendationReasonsEnum { UNKNOWN(String.valueOf("unknown")), - USERACCOUNTWASCREATEDWITHINTHRESHOLDDAYS(String.valueOf("userAccountWasCreatedWithinThresholdDays")), + USERACCOUNTWASCREATEDWITHINTHRESHOLDDAYS( + String.valueOf("userAccountWasCreatedWithinThresholdDays")), - USERDEVICERECEIVINGENCRYPTEDPAYMENTINSTRUMENTDATAISDIFFERENTTHANTHEONETHATISPROVISIONINGTHETOKEN(String.valueOf("userDeviceReceivingEncryptedPaymentInstrumentDataIsDifferentThanTheOneThatIsProvisioningTheToken")), + USERDEVICERECEIVINGENCRYPTEDPAYMENTINSTRUMENTDATAISDIFFERENTTHANTHEONETHATISPROVISIONINGTHETOKEN( + String.valueOf( + "userDeviceReceivingEncryptedPaymentInstrumentDataIsDifferentThanTheOneThatIsProvisioningTheToken")), - USERSACCOUNTONDEVICELESSTHANTHRESHOLDDAYS(String.valueOf("usersAccountOnDeviceLessThanThresholdDays")), + USERSACCOUNTONDEVICELESSTHANTHRESHOLDDAYS( + String.valueOf("usersAccountOnDeviceLessThanThresholdDays")), - WALLETACCOUNTCREATEDWITHINTHRESHOLDDAYS(String.valueOf("walletAccountCreatedWithinThresholdDays")), + WALLETACCOUNTCREATEDWITHINTHRESHOLDDAYS( + String.valueOf("walletAccountCreatedWithinThresholdDays")), - WALLETACCOUNTHOLDERNAMEONFILEDOESNOTMATCHCARDHOLDERENTEREDNAME(String.valueOf("walletAccountHolderNameOnFileDoesNotMatchCardholderEnteredName")); + WALLETACCOUNTHOLDERNAMEONFILEDOESNOTMATCHCARDHOLDERENTEREDNAME( + String.valueOf("walletAccountHolderNameOnFileDoesNotMatchCardholderEnteredName")); private static final Logger LOG = Logger.getLogger(RecommendationReasonsEnum.class.getName()); private String value; RecommendationReasonsEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -165,7 +183,11 @@ public static RecommendationReasonsEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("RecommendationReasonsEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RecommendationReasonsEnum.values())); + LOG.warning( + "RecommendationReasonsEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(RecommendationReasonsEnum.values())); return null; } } @@ -174,16 +196,20 @@ public static RecommendationReasonsEnum fromValue(String value) { private List recommendationReasons; public static final String JSON_PROPERTY_TYPE = "type"; - @Deprecated // deprecated since Configuration webhooks v2: Use name of the `tokenRequestor` instead. + @Deprecated // deprecated since Configuration webhooks v2: Use name of the `tokenRequestor` + // instead. private String type; - public Wallet() { - } + public Wallet() {} /** - * The confidence score of the wallet account, calculated by the wallet provider. A high score means that account is considered trustworthy. A low score means that the account is considered suspicious. Possible values: **1** to **5**. + * The confidence score of the wallet account, calculated by the wallet provider. A high score + * means that account is considered trustworthy. A low score means that the account is considered + * suspicious. Possible values: **1** to **5**. * - * @param accountScore The confidence score of the wallet account, calculated by the wallet provider. A high score means that account is considered trustworthy. A low score means that the account is considered suspicious. Possible values: **1** to **5**. + * @param accountScore The confidence score of the wallet account, calculated by the wallet + * provider. A high score means that account is considered trustworthy. A low score means that + * the account is considered suspicious. Possible values: **1** to **5**. * @return the current {@code Wallet} instance, allowing for method chaining */ public Wallet accountScore(String accountScore) { @@ -192,8 +218,13 @@ public Wallet accountScore(String accountScore) { } /** - * The confidence score of the wallet account, calculated by the wallet provider. A high score means that account is considered trustworthy. A low score means that the account is considered suspicious. Possible values: **1** to **5**. - * @return accountScore The confidence score of the wallet account, calculated by the wallet provider. A high score means that account is considered trustworthy. A low score means that the account is considered suspicious. Possible values: **1** to **5**. + * The confidence score of the wallet account, calculated by the wallet provider. A high score + * means that account is considered trustworthy. A low score means that the account is considered + * suspicious. Possible values: **1** to **5**. + * + * @return accountScore The confidence score of the wallet account, calculated by the wallet + * provider. A high score means that account is considered trustworthy. A low score means that + * the account is considered suspicious. Possible values: **1** to **5**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -202,9 +233,13 @@ public String getAccountScore() { } /** - * The confidence score of the wallet account, calculated by the wallet provider. A high score means that account is considered trustworthy. A low score means that the account is considered suspicious. Possible values: **1** to **5**. + * The confidence score of the wallet account, calculated by the wallet provider. A high score + * means that account is considered trustworthy. A low score means that the account is considered + * suspicious. Possible values: **1** to **5**. * - * @param accountScore The confidence score of the wallet account, calculated by the wallet provider. A high score means that account is considered trustworthy. A low score means that the account is considered suspicious. Possible values: **1** to **5**. + * @param accountScore The confidence score of the wallet account, calculated by the wallet + * provider. A high score means that account is considered trustworthy. A low score means that + * the account is considered suspicious. Possible values: **1** to **5**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -215,7 +250,7 @@ public void setAccountScore(String accountScore) { /** * device * - * @param device + * @param device * @return the current {@code Wallet} instance, allowing for method chaining */ public Wallet device(Device device) { @@ -225,7 +260,8 @@ public Wallet device(Device device) { /** * Get device - * @return device + * + * @return device */ @JsonProperty(JSON_PROPERTY_DEVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -236,7 +272,7 @@ public Device getDevice() { /** * device * - * @param device + * @param device */ @JsonProperty(JSON_PROPERTY_DEVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -245,9 +281,13 @@ public void setDevice(Device device) { } /** - * The confidence score of the device, calculated by the wallet provider. A high score means that device is considered trustworthy. A low score means that the device is considered suspicious. Possible values: **1** to **5**. + * The confidence score of the device, calculated by the wallet provider. A high score means that + * device is considered trustworthy. A low score means that the device is considered suspicious. + * Possible values: **1** to **5**. * - * @param deviceScore The confidence score of the device, calculated by the wallet provider. A high score means that device is considered trustworthy. A low score means that the device is considered suspicious. Possible values: **1** to **5**. + * @param deviceScore The confidence score of the device, calculated by the wallet provider. A + * high score means that device is considered trustworthy. A low score means that the device + * is considered suspicious. Possible values: **1** to **5**. * @return the current {@code Wallet} instance, allowing for method chaining */ public Wallet deviceScore(String deviceScore) { @@ -256,8 +296,13 @@ public Wallet deviceScore(String deviceScore) { } /** - * The confidence score of the device, calculated by the wallet provider. A high score means that device is considered trustworthy. A low score means that the device is considered suspicious. Possible values: **1** to **5**. - * @return deviceScore The confidence score of the device, calculated by the wallet provider. A high score means that device is considered trustworthy. A low score means that the device is considered suspicious. Possible values: **1** to **5**. + * The confidence score of the device, calculated by the wallet provider. A high score means that + * device is considered trustworthy. A low score means that the device is considered suspicious. + * Possible values: **1** to **5**. + * + * @return deviceScore The confidence score of the device, calculated by the wallet provider. A + * high score means that device is considered trustworthy. A low score means that the device + * is considered suspicious. Possible values: **1** to **5**. */ @JsonProperty(JSON_PROPERTY_DEVICE_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -266,9 +311,13 @@ public String getDeviceScore() { } /** - * The confidence score of the device, calculated by the wallet provider. A high score means that device is considered trustworthy. A low score means that the device is considered suspicious. Possible values: **1** to **5**. + * The confidence score of the device, calculated by the wallet provider. A high score means that + * device is considered trustworthy. A low score means that the device is considered suspicious. + * Possible values: **1** to **5**. * - * @param deviceScore The confidence score of the device, calculated by the wallet provider. A high score means that device is considered trustworthy. A low score means that the device is considered suspicious. Possible values: **1** to **5**. + * @param deviceScore The confidence score of the device, calculated by the wallet provider. A + * high score means that device is considered trustworthy. A low score means that the device + * is considered suspicious. Possible values: **1** to **5**. */ @JsonProperty(JSON_PROPERTY_DEVICE_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -277,9 +326,11 @@ public void setDeviceScore(String deviceScore) { } /** - * The method used for provisioning the network token. Possible values: **push**, **manual**, **cof**, **unknown**. + * The method used for provisioning the network token. Possible values: **push**, **manual**, + * **cof**, **unknown**. * - * @param provisioningMethod The method used for provisioning the network token. Possible values: **push**, **manual**, **cof**, **unknown**. + * @param provisioningMethod The method used for provisioning the network token. Possible values: + * **push**, **manual**, **cof**, **unknown**. * @return the current {@code Wallet} instance, allowing for method chaining */ public Wallet provisioningMethod(String provisioningMethod) { @@ -288,8 +339,11 @@ public Wallet provisioningMethod(String provisioningMethod) { } /** - * The method used for provisioning the network token. Possible values: **push**, **manual**, **cof**, **unknown**. - * @return provisioningMethod The method used for provisioning the network token. Possible values: **push**, **manual**, **cof**, **unknown**. + * The method used for provisioning the network token. Possible values: **push**, **manual**, + * **cof**, **unknown**. + * + * @return provisioningMethod The method used for provisioning the network token. Possible values: + * **push**, **manual**, **cof**, **unknown**. */ @JsonProperty(JSON_PROPERTY_PROVISIONING_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -298,9 +352,11 @@ public String getProvisioningMethod() { } /** - * The method used for provisioning the network token. Possible values: **push**, **manual**, **cof**, **unknown**. + * The method used for provisioning the network token. Possible values: **push**, **manual**, + * **cof**, **unknown**. * - * @param provisioningMethod The method used for provisioning the network token. Possible values: **push**, **manual**, **cof**, **unknown**. + * @param provisioningMethod The method used for provisioning the network token. Possible values: + * **push**, **manual**, **cof**, **unknown**. */ @JsonProperty(JSON_PROPERTY_PROVISIONING_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -309,9 +365,14 @@ public void setProvisioningMethod(String provisioningMethod) { } /** - * A list of risk indicators triggered at the time of provisioning the network token. Some example values of risk indicators are: * **accountTooNewSinceLaunch** * **tooManyRecentAttempts** * **lowDeviceScore** * **lowAccountScore** + * A list of risk indicators triggered at the time of provisioning the network token. Some example + * values of risk indicators are: * **accountTooNewSinceLaunch** * **tooManyRecentAttempts** * + * **lowDeviceScore** * **lowAccountScore** * - * @param recommendationReasons A list of risk indicators triggered at the time of provisioning the network token. Some example values of risk indicators are: * **accountTooNewSinceLaunch** * **tooManyRecentAttempts** * **lowDeviceScore** * **lowAccountScore** + * @param recommendationReasons A list of risk indicators triggered at the time of provisioning + * the network token. Some example values of risk indicators are: * + * **accountTooNewSinceLaunch** * **tooManyRecentAttempts** * **lowDeviceScore** * + * **lowAccountScore** * @return the current {@code Wallet} instance, allowing for method chaining */ public Wallet recommendationReasons(List recommendationReasons) { @@ -328,8 +389,14 @@ public Wallet addRecommendationReasonsItem(RecommendationReasonsEnum recommendat } /** - * A list of risk indicators triggered at the time of provisioning the network token. Some example values of risk indicators are: * **accountTooNewSinceLaunch** * **tooManyRecentAttempts** * **lowDeviceScore** * **lowAccountScore** - * @return recommendationReasons A list of risk indicators triggered at the time of provisioning the network token. Some example values of risk indicators are: * **accountTooNewSinceLaunch** * **tooManyRecentAttempts** * **lowDeviceScore** * **lowAccountScore** + * A list of risk indicators triggered at the time of provisioning the network token. Some example + * values of risk indicators are: * **accountTooNewSinceLaunch** * **tooManyRecentAttempts** * + * **lowDeviceScore** * **lowAccountScore** + * + * @return recommendationReasons A list of risk indicators triggered at the time of provisioning + * the network token. Some example values of risk indicators are: * + * **accountTooNewSinceLaunch** * **tooManyRecentAttempts** * **lowDeviceScore** * + * **lowAccountScore** */ @JsonProperty(JSON_PROPERTY_RECOMMENDATION_REASONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -338,9 +405,14 @@ public List getRecommendationReasons() { } /** - * A list of risk indicators triggered at the time of provisioning the network token. Some example values of risk indicators are: * **accountTooNewSinceLaunch** * **tooManyRecentAttempts** * **lowDeviceScore** * **lowAccountScore** + * A list of risk indicators triggered at the time of provisioning the network token. Some example + * values of risk indicators are: * **accountTooNewSinceLaunch** * **tooManyRecentAttempts** * + * **lowDeviceScore** * **lowAccountScore** * - * @param recommendationReasons A list of risk indicators triggered at the time of provisioning the network token. Some example values of risk indicators are: * **accountTooNewSinceLaunch** * **tooManyRecentAttempts** * **lowDeviceScore** * **lowAccountScore** + * @param recommendationReasons A list of risk indicators triggered at the time of provisioning + * the network token. Some example values of risk indicators are: * + * **accountTooNewSinceLaunch** * **tooManyRecentAttempts** * **lowDeviceScore** * + * **lowAccountScore** */ @JsonProperty(JSON_PROPERTY_RECOMMENDATION_REASONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -349,26 +421,32 @@ public void setRecommendationReasons(List recommendat } /** - * The type of wallet that the network token is associated with. Possible values: **applePay**, **googlePay**, **garminPay**. + * The type of wallet that the network token is associated with. Possible values: **applePay**, + * **googlePay**, **garminPay**. * - * @param type The type of wallet that the network token is associated with. Possible values: **applePay**, **googlePay**, **garminPay**. + * @param type The type of wallet that the network token is associated with. Possible values: + * **applePay**, **googlePay**, **garminPay**. * @return the current {@code Wallet} instance, allowing for method chaining - * - * @deprecated since Configuration webhooks v2 - * Use name of the `tokenRequestor` instead. + * @deprecated since Configuration webhooks v2 Use name of the `tokenRequestor` instead. */ - @Deprecated // deprecated since Configuration webhooks v2: Use name of the `tokenRequestor` instead. + @Deprecated // deprecated since Configuration webhooks v2: Use name of the `tokenRequestor` + // instead. public Wallet type(String type) { this.type = type; return this; } /** - * The type of wallet that the network token is associated with. Possible values: **applePay**, **googlePay**, **garminPay**. - * @return type The type of wallet that the network token is associated with. Possible values: **applePay**, **googlePay**, **garminPay**. - * @deprecated // deprecated since Configuration webhooks v2: Use name of the `tokenRequestor` instead. + * The type of wallet that the network token is associated with. Possible values: **applePay**, + * **googlePay**, **garminPay**. + * + * @return type The type of wallet that the network token is associated with. Possible values: + * **applePay**, **googlePay**, **garminPay**. + * @deprecated // deprecated since Configuration webhooks v2: Use name of the `tokenRequestor` + * instead. */ - @Deprecated // deprecated since Configuration webhooks v2: Use name of the `tokenRequestor` instead. + @Deprecated // deprecated since Configuration webhooks v2: Use name of the `tokenRequestor` + // instead. @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -376,23 +454,22 @@ public String getType() { } /** - * The type of wallet that the network token is associated with. Possible values: **applePay**, **googlePay**, **garminPay**. + * The type of wallet that the network token is associated with. Possible values: **applePay**, + * **googlePay**, **garminPay**. * - * @param type The type of wallet that the network token is associated with. Possible values: **applePay**, **googlePay**, **garminPay**. - * - * @deprecated since Configuration webhooks v2 - * Use name of the `tokenRequestor` instead. + * @param type The type of wallet that the network token is associated with. Possible values: + * **applePay**, **googlePay**, **garminPay**. + * @deprecated since Configuration webhooks v2 Use name of the `tokenRequestor` instead. */ - @Deprecated // deprecated since Configuration webhooks v2: Use name of the `tokenRequestor` instead. + @Deprecated // deprecated since Configuration webhooks v2: Use name of the `tokenRequestor` + // instead. @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(String type) { this.type = type; } - /** - * Return true if this Wallet object is equal to o. - */ + /** Return true if this Wallet object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -402,17 +479,18 @@ public boolean equals(Object o) { return false; } Wallet wallet = (Wallet) o; - return Objects.equals(this.accountScore, wallet.accountScore) && - Objects.equals(this.device, wallet.device) && - Objects.equals(this.deviceScore, wallet.deviceScore) && - Objects.equals(this.provisioningMethod, wallet.provisioningMethod) && - Objects.equals(this.recommendationReasons, wallet.recommendationReasons) && - Objects.equals(this.type, wallet.type); + return Objects.equals(this.accountScore, wallet.accountScore) + && Objects.equals(this.device, wallet.device) + && Objects.equals(this.deviceScore, wallet.deviceScore) + && Objects.equals(this.provisioningMethod, wallet.provisioningMethod) + && Objects.equals(this.recommendationReasons, wallet.recommendationReasons) + && Objects.equals(this.type, wallet.type); } @Override public int hashCode() { - return Objects.hash(accountScore, device, deviceScore, provisioningMethod, recommendationReasons, type); + return Objects.hash( + accountScore, device, deviceScore, provisioningMethod, recommendationReasons, type); } @Override @@ -423,15 +501,16 @@ public String toString() { sb.append(" device: ").append(toIndentedString(device)).append("\n"); sb.append(" deviceScore: ").append(toIndentedString(deviceScore)).append("\n"); sb.append(" provisioningMethod: ").append(toIndentedString(provisioningMethod)).append("\n"); - sb.append(" recommendationReasons: ").append(toIndentedString(recommendationReasons)).append("\n"); + sb.append(" recommendationReasons: ") + .append(toIndentedString(recommendationReasons)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -440,7 +519,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Wallet given an JSON string * * @param jsonString JSON string @@ -450,11 +529,12 @@ private String toIndentedString(Object o) { public static Wallet fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Wallet.class); } -/** - * Convert an instance of Wallet to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Wallet to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/dataprotection/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/dataprotection/AbstractOpenApiSchema.java index e72e21224..70bbc98a6 100644 --- a/src/main/java/com/adyen/model/dataprotection/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/dataprotection/AbstractOpenApiSchema.java @@ -2,145 +2,141 @@ * Adyen Data Protection API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.dataprotection; -import java.util.Objects; -import java.util.Map; -import jakarta.ws.rs.core.GenericType; - import com.fasterxml.jackson.annotation.JsonValue; +import jakarta.ws.rs.core.GenericType; +import java.util.Map; +import java.util.Objects; -/** - * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec - */ +/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() {return instance;} - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) {this.instance = instance;} - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); - } else { - return object.getActualInstance(); - } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() { + return instance; + } + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) { + this.instance = instance; + } + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf + * schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); + } else { + return object.getActualInstance(); } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) && - Objects.equals(this.isNullable, a.isNullable) && - Objects.equals(this.schemaType, a.schemaType); + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; } + return o.toString().replace("\n", "\n "); + } - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); + public boolean equals(Object o) { + if (this == o) { + return true; } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); + if (o == null || getClass() != o.getClass()) { + return false; } - - - -} \ No newline at end of file + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) + && Objects.equals(this.isNullable, a.isNullable) + && Objects.equals(this.schemaType, a.schemaType); + } + + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); + } + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); + } +} diff --git a/src/main/java/com/adyen/model/dataprotection/JSON.java b/src/main/java/com/adyen/model/dataprotection/JSON.java index cf64ba6e6..225bdcf07 100644 --- a/src/main/java/com/adyen/model/dataprotection/JSON.java +++ b/src/main/java/com/adyen/model/dataprotection/JSON.java @@ -1,21 +1,18 @@ package com.adyen.model.dataprotection; -import com.adyen.serializer.ByteArraySerializer; import com.adyen.serializer.ByteArrayDeserializer; +import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import com.adyen.model.dataprotection.*; - +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -40,6 +37,7 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. + * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -56,11 +54,13 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { return mapper; } + public static ObjectMapper getMapper() { + return mapper; + } /** - * Returns the target model class that should be used to deserialize the input data. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,9 +73,7 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** - * Helper class to register the discriminator mappings. - */ + /** Helper class to register the discriminator mappings. */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -117,9 +115,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. - * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. This + * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -164,13 +162,14 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, - * so it's not possible to use the instanceof keyword. + *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so + * it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf( + Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -194,59 +193,58 @@ public static boolean isInstanceOf(Class modelClass, Object inst, Set, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); + /** A map of discriminators for all model classes. */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = + new HashMap, ClassDiscriminatorMapping>(); - /** - * A map of oneOf/anyOf descendants for each model class. - */ + /** A map of oneOf/anyOf descendants for each model class. */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator( + Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = + new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants(Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants( + Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static - { + static { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/dataprotection/ServiceError.java b/src/main/java/com/adyen/model/dataprotection/ServiceError.java index 9ce73529f..180eb0078 100644 --- a/src/main/java/com/adyen/model/dataprotection/ServiceError.java +++ b/src/main/java/com/adyen/model/dataprotection/ServiceError.java @@ -2,31 +2,22 @@ * Adyen Data Protection API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.dataprotection; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ServiceError - */ +/** ServiceError */ @JsonPropertyOrder({ ServiceError.JSON_PROPERTY_ERROR_CODE, ServiceError.JSON_PROPERTY_ERROR_TYPE, @@ -34,7 +25,6 @@ ServiceError.JSON_PROPERTY_PSP_REFERENCE, ServiceError.JSON_PROPERTY_STATUS }) - public class ServiceError { public static final String JSON_PROPERTY_ERROR_CODE = "errorCode"; private String errorCode; @@ -51,8 +41,7 @@ public class ServiceError { public static final String JSON_PROPERTY_STATUS = "status"; private Integer status; - public ServiceError() { - } + public ServiceError() {} /** * The error code mapped to the error message. @@ -67,6 +56,7 @@ public ServiceError errorCode(String errorCode) { /** * The error code mapped to the error message. + * * @return errorCode The error code mapped to the error message. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -99,6 +89,7 @@ public ServiceError errorType(String errorType) { /** * The category of the error. + * * @return errorType The category of the error. */ @JsonProperty(JSON_PROPERTY_ERROR_TYPE) @@ -131,6 +122,7 @@ public ServiceError message(String message) { /** * A short explanation of the issue. + * * @return message A short explanation of the issue. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -163,6 +155,7 @@ public ServiceError pspReference(String pspReference) { /** * The PSP reference of the payment. + * * @return pspReference The PSP reference of the payment. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -195,6 +188,7 @@ public ServiceError status(Integer status) { /** * The HTTP response status. + * * @return status The HTTP response status. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -214,9 +208,7 @@ public void setStatus(Integer status) { this.status = status; } - /** - * Return true if this ServiceError object is equal to o. - */ + /** Return true if this ServiceError object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -226,11 +218,11 @@ public boolean equals(Object o) { return false; } ServiceError serviceError = (ServiceError) o; - return Objects.equals(this.errorCode, serviceError.errorCode) && - Objects.equals(this.errorType, serviceError.errorType) && - Objects.equals(this.message, serviceError.message) && - Objects.equals(this.pspReference, serviceError.pspReference) && - Objects.equals(this.status, serviceError.status); + return Objects.equals(this.errorCode, serviceError.errorCode) + && Objects.equals(this.errorType, serviceError.errorType) + && Objects.equals(this.message, serviceError.message) + && Objects.equals(this.pspReference, serviceError.pspReference) + && Objects.equals(this.status, serviceError.status); } @Override @@ -252,8 +244,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -262,7 +253,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ServiceError given an JSON string * * @param jsonString JSON string @@ -272,11 +263,12 @@ private String toIndentedString(Object o) { public static ServiceError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } -/** - * Convert an instance of ServiceError to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ServiceError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/dataprotection/SubjectErasureByPspReferenceRequest.java b/src/main/java/com/adyen/model/dataprotection/SubjectErasureByPspReferenceRequest.java index e35f58c84..4604a2398 100644 --- a/src/main/java/com/adyen/model/dataprotection/SubjectErasureByPspReferenceRequest.java +++ b/src/main/java/com/adyen/model/dataprotection/SubjectErasureByPspReferenceRequest.java @@ -2,37 +2,27 @@ * Adyen Data Protection API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.dataprotection; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * SubjectErasureByPspReferenceRequest - */ +/** SubjectErasureByPspReferenceRequest */ @JsonPropertyOrder({ SubjectErasureByPspReferenceRequest.JSON_PROPERTY_FORCE_ERASURE, SubjectErasureByPspReferenceRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, SubjectErasureByPspReferenceRequest.JSON_PROPERTY_PSP_REFERENCE }) - public class SubjectErasureByPspReferenceRequest { public static final String JSON_PROPERTY_FORCE_ERASURE = "forceErasure"; private Boolean forceErasure; @@ -43,14 +33,18 @@ public class SubjectErasureByPspReferenceRequest { public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference"; private String pspReference; - public SubjectErasureByPspReferenceRequest() { - } + public SubjectErasureByPspReferenceRequest() {} /** - * Set this to **true** if you want to delete shopper-related data, even if the shopper has an existing recurring transaction. This only deletes the shopper-related data for the specific payment, but does not cancel the existing recurring transaction. + * Set this to **true** if you want to delete shopper-related data, even if the shopper has an + * existing recurring transaction. This only deletes the shopper-related data for the specific + * payment, but does not cancel the existing recurring transaction. * - * @param forceErasure Set this to **true** if you want to delete shopper-related data, even if the shopper has an existing recurring transaction. This only deletes the shopper-related data for the specific payment, but does not cancel the existing recurring transaction. - * @return the current {@code SubjectErasureByPspReferenceRequest} instance, allowing for method chaining + * @param forceErasure Set this to **true** if you want to delete shopper-related data, even if + * the shopper has an existing recurring transaction. This only deletes the shopper-related + * data for the specific payment, but does not cancel the existing recurring transaction. + * @return the current {@code SubjectErasureByPspReferenceRequest} instance, allowing for method + * chaining */ public SubjectErasureByPspReferenceRequest forceErasure(Boolean forceErasure) { this.forceErasure = forceErasure; @@ -58,8 +52,13 @@ public SubjectErasureByPspReferenceRequest forceErasure(Boolean forceErasure) { } /** - * Set this to **true** if you want to delete shopper-related data, even if the shopper has an existing recurring transaction. This only deletes the shopper-related data for the specific payment, but does not cancel the existing recurring transaction. - * @return forceErasure Set this to **true** if you want to delete shopper-related data, even if the shopper has an existing recurring transaction. This only deletes the shopper-related data for the specific payment, but does not cancel the existing recurring transaction. + * Set this to **true** if you want to delete shopper-related data, even if the shopper has an + * existing recurring transaction. This only deletes the shopper-related data for the specific + * payment, but does not cancel the existing recurring transaction. + * + * @return forceErasure Set this to **true** if you want to delete shopper-related data, even if + * the shopper has an existing recurring transaction. This only deletes the shopper-related + * data for the specific payment, but does not cancel the existing recurring transaction. */ @JsonProperty(JSON_PROPERTY_FORCE_ERASURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,9 +67,13 @@ public Boolean getForceErasure() { } /** - * Set this to **true** if you want to delete shopper-related data, even if the shopper has an existing recurring transaction. This only deletes the shopper-related data for the specific payment, but does not cancel the existing recurring transaction. + * Set this to **true** if you want to delete shopper-related data, even if the shopper has an + * existing recurring transaction. This only deletes the shopper-related data for the specific + * payment, but does not cancel the existing recurring transaction. * - * @param forceErasure Set this to **true** if you want to delete shopper-related data, even if the shopper has an existing recurring transaction. This only deletes the shopper-related data for the specific payment, but does not cancel the existing recurring transaction. + * @param forceErasure Set this to **true** if you want to delete shopper-related data, even if + * the shopper has an existing recurring transaction. This only deletes the shopper-related + * data for the specific payment, but does not cancel the existing recurring transaction. */ @JsonProperty(JSON_PROPERTY_FORCE_ERASURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -82,7 +85,8 @@ public void setForceErasure(Boolean forceErasure) { * Your merchant account * * @param merchantAccount Your merchant account - * @return the current {@code SubjectErasureByPspReferenceRequest} instance, allowing for method chaining + * @return the current {@code SubjectErasureByPspReferenceRequest} instance, allowing for method + * chaining */ public SubjectErasureByPspReferenceRequest merchantAccount(String merchantAccount) { this.merchantAccount = merchantAccount; @@ -91,6 +95,7 @@ public SubjectErasureByPspReferenceRequest merchantAccount(String merchantAccoun /** * Your merchant account + * * @return merchantAccount Your merchant account */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -113,8 +118,10 @@ public void setMerchantAccount(String merchantAccount) { /** * The PSP reference of the payment. We will delete all shopper-related data for this payment. * - * @param pspReference The PSP reference of the payment. We will delete all shopper-related data for this payment. - * @return the current {@code SubjectErasureByPspReferenceRequest} instance, allowing for method chaining + * @param pspReference The PSP reference of the payment. We will delete all shopper-related data + * for this payment. + * @return the current {@code SubjectErasureByPspReferenceRequest} instance, allowing for method + * chaining */ public SubjectErasureByPspReferenceRequest pspReference(String pspReference) { this.pspReference = pspReference; @@ -123,7 +130,9 @@ public SubjectErasureByPspReferenceRequest pspReference(String pspReference) { /** * The PSP reference of the payment. We will delete all shopper-related data for this payment. - * @return pspReference The PSP reference of the payment. We will delete all shopper-related data for this payment. + * + * @return pspReference The PSP reference of the payment. We will delete all shopper-related data + * for this payment. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -134,7 +143,8 @@ public String getPspReference() { /** * The PSP reference of the payment. We will delete all shopper-related data for this payment. * - * @param pspReference The PSP reference of the payment. We will delete all shopper-related data for this payment. + * @param pspReference The PSP reference of the payment. We will delete all shopper-related data + * for this payment. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +152,7 @@ public void setPspReference(String pspReference) { this.pspReference = pspReference; } - /** - * Return true if this SubjectErasureByPspReferenceRequest object is equal to o. - */ + /** Return true if this SubjectErasureByPspReferenceRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -153,10 +161,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SubjectErasureByPspReferenceRequest subjectErasureByPspReferenceRequest = (SubjectErasureByPspReferenceRequest) o; - return Objects.equals(this.forceErasure, subjectErasureByPspReferenceRequest.forceErasure) && - Objects.equals(this.merchantAccount, subjectErasureByPspReferenceRequest.merchantAccount) && - Objects.equals(this.pspReference, subjectErasureByPspReferenceRequest.pspReference); + SubjectErasureByPspReferenceRequest subjectErasureByPspReferenceRequest = + (SubjectErasureByPspReferenceRequest) o; + return Objects.equals(this.forceErasure, subjectErasureByPspReferenceRequest.forceErasure) + && Objects.equals(this.merchantAccount, subjectErasureByPspReferenceRequest.merchantAccount) + && Objects.equals(this.pspReference, subjectErasureByPspReferenceRequest.pspReference); } @Override @@ -176,8 +185,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +194,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SubjectErasureByPspReferenceRequest given an JSON string * * @param jsonString JSON string * @return An instance of SubjectErasureByPspReferenceRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to SubjectErasureByPspReferenceRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SubjectErasureByPspReferenceRequest */ - public static SubjectErasureByPspReferenceRequest fromJson(String jsonString) throws JsonProcessingException { + public static SubjectErasureByPspReferenceRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SubjectErasureByPspReferenceRequest.class); } -/** - * Convert an instance of SubjectErasureByPspReferenceRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SubjectErasureByPspReferenceRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/dataprotection/SubjectErasureResponse.java b/src/main/java/com/adyen/model/dataprotection/SubjectErasureResponse.java index 959d6cd0b..08c2891e1 100644 --- a/src/main/java/com/adyen/model/dataprotection/SubjectErasureResponse.java +++ b/src/main/java/com/adyen/model/dataprotection/SubjectErasureResponse.java @@ -2,41 +2,30 @@ * Adyen Data Protection API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.dataprotection; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * SubjectErasureResponse - */ -@JsonPropertyOrder({ - SubjectErasureResponse.JSON_PROPERTY_RESULT -}) - +/** SubjectErasureResponse */ +@JsonPropertyOrder({SubjectErasureResponse.JSON_PROPERTY_RESULT}) public class SubjectErasureResponse { - /** - * The result of this operation. - */ + /** The result of this operation. */ public enum ResultEnum { - ACTIVE_RECURRING_TOKEN_EXISTS(String.valueOf("ACTIVE_RECURRING_TOKEN_EXISTS")), ALREADY_PROCESSED(String.valueOf("ALREADY_PROCESSED")), @@ -50,7 +39,7 @@ public enum ResultEnum { private String value; ResultEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -71,7 +60,11 @@ public static ResultEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ResultEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResultEnum.values())); + LOG.warning( + "ResultEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ResultEnum.values())); return null; } } @@ -79,8 +72,7 @@ public static ResultEnum fromValue(String value) { public static final String JSON_PROPERTY_RESULT = "result"; private ResultEnum result; - public SubjectErasureResponse() { - } + public SubjectErasureResponse() {} /** * The result of this operation. @@ -95,6 +87,7 @@ public SubjectErasureResponse result(ResultEnum result) { /** * The result of this operation. + * * @return result The result of this operation. */ @JsonProperty(JSON_PROPERTY_RESULT) @@ -114,9 +107,7 @@ public void setResult(ResultEnum result) { this.result = result; } - /** - * Return true if this SubjectErasureResponse object is equal to o. - */ + /** Return true if this SubjectErasureResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -144,8 +135,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -154,21 +144,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SubjectErasureResponse given an JSON string * * @param jsonString JSON string * @return An instance of SubjectErasureResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to SubjectErasureResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SubjectErasureResponse */ public static SubjectErasureResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SubjectErasureResponse.class); } -/** - * Convert an instance of SubjectErasureResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SubjectErasureResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputes/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/disputes/AbstractOpenApiSchema.java index 0c9a49ffb..0b0e75813 100644 --- a/src/main/java/com/adyen/model/disputes/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/disputes/AbstractOpenApiSchema.java @@ -2,145 +2,141 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.disputes; -import java.util.Objects; -import java.util.Map; -import jakarta.ws.rs.core.GenericType; - import com.fasterxml.jackson.annotation.JsonValue; +import jakarta.ws.rs.core.GenericType; +import java.util.Map; +import java.util.Objects; -/** - * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec - */ +/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() {return instance;} - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) {this.instance = instance;} - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); - } else { - return object.getActualInstance(); - } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() { + return instance; + } + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) { + this.instance = instance; + } + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf + * schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); + } else { + return object.getActualInstance(); } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) && - Objects.equals(this.isNullable, a.isNullable) && - Objects.equals(this.schemaType, a.schemaType); + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; } + return o.toString().replace("\n", "\n "); + } - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); + public boolean equals(Object o) { + if (this == o) { + return true; } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); + if (o == null || getClass() != o.getClass()) { + return false; } - - - -} \ No newline at end of file + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) + && Objects.equals(this.isNullable, a.isNullable) + && Objects.equals(this.schemaType, a.schemaType); + } + + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); + } + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); + } +} diff --git a/src/main/java/com/adyen/model/disputes/AcceptDisputeRequest.java b/src/main/java/com/adyen/model/disputes/AcceptDisputeRequest.java index 58aced05e..33fdc103c 100644 --- a/src/main/java/com/adyen/model/disputes/AcceptDisputeRequest.java +++ b/src/main/java/com/adyen/model/disputes/AcceptDisputeRequest.java @@ -2,36 +2,26 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.disputes; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AcceptDisputeRequest - */ +/** AcceptDisputeRequest */ @JsonPropertyOrder({ AcceptDisputeRequest.JSON_PROPERTY_DISPUTE_PSP_REFERENCE, AcceptDisputeRequest.JSON_PROPERTY_MERCHANT_ACCOUNT_CODE }) - public class AcceptDisputeRequest { public static final String JSON_PROPERTY_DISPUTE_PSP_REFERENCE = "disputePspReference"; private String disputePspReference; @@ -39,8 +29,7 @@ public class AcceptDisputeRequest { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT_CODE = "merchantAccountCode"; private String merchantAccountCode; - public AcceptDisputeRequest() { - } + public AcceptDisputeRequest() {} /** * The PSP reference assigned to the dispute. @@ -55,6 +44,7 @@ public AcceptDisputeRequest disputePspReference(String disputePspReference) { /** * The PSP reference assigned to the dispute. + * * @return disputePspReference The PSP reference assigned to the dispute. */ @JsonProperty(JSON_PROPERTY_DISPUTE_PSP_REFERENCE) @@ -77,7 +67,8 @@ public void setDisputePspReference(String disputePspReference) { /** * The merchant account identifier, for which you want to process the dispute transaction. * - * @param merchantAccountCode The merchant account identifier, for which you want to process the dispute transaction. + * @param merchantAccountCode The merchant account identifier, for which you want to process the + * dispute transaction. * @return the current {@code AcceptDisputeRequest} instance, allowing for method chaining */ public AcceptDisputeRequest merchantAccountCode(String merchantAccountCode) { @@ -87,7 +78,9 @@ public AcceptDisputeRequest merchantAccountCode(String merchantAccountCode) { /** * The merchant account identifier, for which you want to process the dispute transaction. - * @return merchantAccountCode The merchant account identifier, for which you want to process the dispute transaction. + * + * @return merchantAccountCode The merchant account identifier, for which you want to process the + * dispute transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -98,7 +91,8 @@ public String getMerchantAccountCode() { /** * The merchant account identifier, for which you want to process the dispute transaction. * - * @param merchantAccountCode The merchant account identifier, for which you want to process the dispute transaction. + * @param merchantAccountCode The merchant account identifier, for which you want to process the + * dispute transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +100,7 @@ public void setMerchantAccountCode(String merchantAccountCode) { this.merchantAccountCode = merchantAccountCode; } - /** - * Return true if this AcceptDisputeRequest object is equal to o. - */ + /** Return true if this AcceptDisputeRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +110,8 @@ public boolean equals(Object o) { return false; } AcceptDisputeRequest acceptDisputeRequest = (AcceptDisputeRequest) o; - return Objects.equals(this.disputePspReference, acceptDisputeRequest.disputePspReference) && - Objects.equals(this.merchantAccountCode, acceptDisputeRequest.merchantAccountCode); + return Objects.equals(this.disputePspReference, acceptDisputeRequest.disputePspReference) + && Objects.equals(this.merchantAccountCode, acceptDisputeRequest.merchantAccountCode); } @Override @@ -131,15 +123,18 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AcceptDisputeRequest {\n"); - sb.append(" disputePspReference: ").append(toIndentedString(disputePspReference)).append("\n"); - sb.append(" merchantAccountCode: ").append(toIndentedString(merchantAccountCode)).append("\n"); + sb.append(" disputePspReference: ") + .append(toIndentedString(disputePspReference)) + .append("\n"); + sb.append(" merchantAccountCode: ") + .append(toIndentedString(merchantAccountCode)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +143,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AcceptDisputeRequest given an JSON string * * @param jsonString JSON string * @return An instance of AcceptDisputeRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to AcceptDisputeRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AcceptDisputeRequest */ public static AcceptDisputeRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AcceptDisputeRequest.class); } -/** - * Convert an instance of AcceptDisputeRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AcceptDisputeRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputes/AcceptDisputeResponse.java b/src/main/java/com/adyen/model/disputes/AcceptDisputeResponse.java index a9c8d493e..57ac7ad90 100644 --- a/src/main/java/com/adyen/model/disputes/AcceptDisputeResponse.java +++ b/src/main/java/com/adyen/model/disputes/AcceptDisputeResponse.java @@ -2,47 +2,33 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.disputes; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.disputes.DisputeServiceResult; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AcceptDisputeResponse - */ -@JsonPropertyOrder({ - AcceptDisputeResponse.JSON_PROPERTY_DISPUTE_SERVICE_RESULT -}) - +/** AcceptDisputeResponse */ +@JsonPropertyOrder({AcceptDisputeResponse.JSON_PROPERTY_DISPUTE_SERVICE_RESULT}) public class AcceptDisputeResponse { public static final String JSON_PROPERTY_DISPUTE_SERVICE_RESULT = "disputeServiceResult"; private DisputeServiceResult disputeServiceResult; - public AcceptDisputeResponse() { - } + public AcceptDisputeResponse() {} /** * disputeServiceResult * - * @param disputeServiceResult + * @param disputeServiceResult * @return the current {@code AcceptDisputeResponse} instance, allowing for method chaining */ public AcceptDisputeResponse disputeServiceResult(DisputeServiceResult disputeServiceResult) { @@ -52,7 +38,8 @@ public AcceptDisputeResponse disputeServiceResult(DisputeServiceResult disputeSe /** * Get disputeServiceResult - * @return disputeServiceResult + * + * @return disputeServiceResult */ @JsonProperty(JSON_PROPERTY_DISPUTE_SERVICE_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,7 +50,7 @@ public DisputeServiceResult getDisputeServiceResult() { /** * disputeServiceResult * - * @param disputeServiceResult + * @param disputeServiceResult */ @JsonProperty(JSON_PROPERTY_DISPUTE_SERVICE_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,9 +58,7 @@ public void setDisputeServiceResult(DisputeServiceResult disputeServiceResult) { this.disputeServiceResult = disputeServiceResult; } - /** - * Return true if this AcceptDisputeResponse object is equal to o. - */ + /** Return true if this AcceptDisputeResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -95,14 +80,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AcceptDisputeResponse {\n"); - sb.append(" disputeServiceResult: ").append(toIndentedString(disputeServiceResult)).append("\n"); + sb.append(" disputeServiceResult: ") + .append(toIndentedString(disputeServiceResult)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -111,21 +97,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AcceptDisputeResponse given an JSON string * * @param jsonString JSON string * @return An instance of AcceptDisputeResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to AcceptDisputeResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AcceptDisputeResponse */ public static AcceptDisputeResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AcceptDisputeResponse.class); } -/** - * Convert an instance of AcceptDisputeResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AcceptDisputeResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputes/DefendDisputeRequest.java b/src/main/java/com/adyen/model/disputes/DefendDisputeRequest.java index 692c445ef..d9469e27d 100644 --- a/src/main/java/com/adyen/model/disputes/DefendDisputeRequest.java +++ b/src/main/java/com/adyen/model/disputes/DefendDisputeRequest.java @@ -2,37 +2,27 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.disputes; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * DefendDisputeRequest - */ +/** DefendDisputeRequest */ @JsonPropertyOrder({ DefendDisputeRequest.JSON_PROPERTY_DEFENSE_REASON_CODE, DefendDisputeRequest.JSON_PROPERTY_DISPUTE_PSP_REFERENCE, DefendDisputeRequest.JSON_PROPERTY_MERCHANT_ACCOUNT_CODE }) - public class DefendDisputeRequest { public static final String JSON_PROPERTY_DEFENSE_REASON_CODE = "defenseReasonCode"; private String defenseReasonCode; @@ -43,8 +33,7 @@ public class DefendDisputeRequest { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT_CODE = "merchantAccountCode"; private String merchantAccountCode; - public DefendDisputeRequest() { - } + public DefendDisputeRequest() {} /** * The defense reason code that was selected to defend this dispute. @@ -59,6 +48,7 @@ public DefendDisputeRequest defenseReasonCode(String defenseReasonCode) { /** * The defense reason code that was selected to defend this dispute. + * * @return defenseReasonCode The defense reason code that was selected to defend this dispute. */ @JsonProperty(JSON_PROPERTY_DEFENSE_REASON_CODE) @@ -91,6 +81,7 @@ public DefendDisputeRequest disputePspReference(String disputePspReference) { /** * The PSP reference assigned to the dispute. + * * @return disputePspReference The PSP reference assigned to the dispute. */ @JsonProperty(JSON_PROPERTY_DISPUTE_PSP_REFERENCE) @@ -113,7 +104,8 @@ public void setDisputePspReference(String disputePspReference) { /** * The merchant account identifier, for which you want to process the dispute transaction. * - * @param merchantAccountCode The merchant account identifier, for which you want to process the dispute transaction. + * @param merchantAccountCode The merchant account identifier, for which you want to process the + * dispute transaction. * @return the current {@code DefendDisputeRequest} instance, allowing for method chaining */ public DefendDisputeRequest merchantAccountCode(String merchantAccountCode) { @@ -123,7 +115,9 @@ public DefendDisputeRequest merchantAccountCode(String merchantAccountCode) { /** * The merchant account identifier, for which you want to process the dispute transaction. - * @return merchantAccountCode The merchant account identifier, for which you want to process the dispute transaction. + * + * @return merchantAccountCode The merchant account identifier, for which you want to process the + * dispute transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -134,7 +128,8 @@ public String getMerchantAccountCode() { /** * The merchant account identifier, for which you want to process the dispute transaction. * - * @param merchantAccountCode The merchant account identifier, for which you want to process the dispute transaction. + * @param merchantAccountCode The merchant account identifier, for which you want to process the + * dispute transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +137,7 @@ public void setMerchantAccountCode(String merchantAccountCode) { this.merchantAccountCode = merchantAccountCode; } - /** - * Return true if this DefendDisputeRequest object is equal to o. - */ + /** Return true if this DefendDisputeRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +147,9 @@ public boolean equals(Object o) { return false; } DefendDisputeRequest defendDisputeRequest = (DefendDisputeRequest) o; - return Objects.equals(this.defenseReasonCode, defendDisputeRequest.defenseReasonCode) && - Objects.equals(this.disputePspReference, defendDisputeRequest.disputePspReference) && - Objects.equals(this.merchantAccountCode, defendDisputeRequest.merchantAccountCode); + return Objects.equals(this.defenseReasonCode, defendDisputeRequest.defenseReasonCode) + && Objects.equals(this.disputePspReference, defendDisputeRequest.disputePspReference) + && Objects.equals(this.merchantAccountCode, defendDisputeRequest.merchantAccountCode); } @Override @@ -169,15 +162,18 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DefendDisputeRequest {\n"); sb.append(" defenseReasonCode: ").append(toIndentedString(defenseReasonCode)).append("\n"); - sb.append(" disputePspReference: ").append(toIndentedString(disputePspReference)).append("\n"); - sb.append(" merchantAccountCode: ").append(toIndentedString(merchantAccountCode)).append("\n"); + sb.append(" disputePspReference: ") + .append(toIndentedString(disputePspReference)) + .append("\n"); + sb.append(" merchantAccountCode: ") + .append(toIndentedString(merchantAccountCode)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +182,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DefendDisputeRequest given an JSON string * * @param jsonString JSON string * @return An instance of DefendDisputeRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to DefendDisputeRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DefendDisputeRequest */ public static DefendDisputeRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DefendDisputeRequest.class); } -/** - * Convert an instance of DefendDisputeRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DefendDisputeRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputes/DefendDisputeResponse.java b/src/main/java/com/adyen/model/disputes/DefendDisputeResponse.java index 07ad213e8..e9105ad79 100644 --- a/src/main/java/com/adyen/model/disputes/DefendDisputeResponse.java +++ b/src/main/java/com/adyen/model/disputes/DefendDisputeResponse.java @@ -2,47 +2,33 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.disputes; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.disputes.DisputeServiceResult; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * DefendDisputeResponse - */ -@JsonPropertyOrder({ - DefendDisputeResponse.JSON_PROPERTY_DISPUTE_SERVICE_RESULT -}) - +/** DefendDisputeResponse */ +@JsonPropertyOrder({DefendDisputeResponse.JSON_PROPERTY_DISPUTE_SERVICE_RESULT}) public class DefendDisputeResponse { public static final String JSON_PROPERTY_DISPUTE_SERVICE_RESULT = "disputeServiceResult"; private DisputeServiceResult disputeServiceResult; - public DefendDisputeResponse() { - } + public DefendDisputeResponse() {} /** * disputeServiceResult * - * @param disputeServiceResult + * @param disputeServiceResult * @return the current {@code DefendDisputeResponse} instance, allowing for method chaining */ public DefendDisputeResponse disputeServiceResult(DisputeServiceResult disputeServiceResult) { @@ -52,7 +38,8 @@ public DefendDisputeResponse disputeServiceResult(DisputeServiceResult disputeSe /** * Get disputeServiceResult - * @return disputeServiceResult + * + * @return disputeServiceResult */ @JsonProperty(JSON_PROPERTY_DISPUTE_SERVICE_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,7 +50,7 @@ public DisputeServiceResult getDisputeServiceResult() { /** * disputeServiceResult * - * @param disputeServiceResult + * @param disputeServiceResult */ @JsonProperty(JSON_PROPERTY_DISPUTE_SERVICE_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,9 +58,7 @@ public void setDisputeServiceResult(DisputeServiceResult disputeServiceResult) { this.disputeServiceResult = disputeServiceResult; } - /** - * Return true if this DefendDisputeResponse object is equal to o. - */ + /** Return true if this DefendDisputeResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -95,14 +80,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DefendDisputeResponse {\n"); - sb.append(" disputeServiceResult: ").append(toIndentedString(disputeServiceResult)).append("\n"); + sb.append(" disputeServiceResult: ") + .append(toIndentedString(disputeServiceResult)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -111,21 +97,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DefendDisputeResponse given an JSON string * * @param jsonString JSON string * @return An instance of DefendDisputeResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to DefendDisputeResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DefendDisputeResponse */ public static DefendDisputeResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DefendDisputeResponse.class); } -/** - * Convert an instance of DefendDisputeResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DefendDisputeResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputes/DefenseDocument.java b/src/main/java/com/adyen/model/disputes/DefenseDocument.java index bec233f80..b0e433107 100644 --- a/src/main/java/com/adyen/model/disputes/DefenseDocument.java +++ b/src/main/java/com/adyen/model/disputes/DefenseDocument.java @@ -2,37 +2,28 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.disputes; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; - -/** - * DefenseDocument - */ +/** DefenseDocument */ @JsonPropertyOrder({ DefenseDocument.JSON_PROPERTY_CONTENT, DefenseDocument.JSON_PROPERTY_CONTENT_TYPE, DefenseDocument.JSON_PROPERTY_DEFENSE_DOCUMENT_TYPE_CODE }) - public class DefenseDocument { public static final String JSON_PROPERTY_CONTENT = "content"; private byte[] content; @@ -43,8 +34,7 @@ public class DefenseDocument { public static final String JSON_PROPERTY_DEFENSE_DOCUMENT_TYPE_CODE = "defenseDocumentTypeCode"; private String defenseDocumentTypeCode; - public DefenseDocument() { - } + public DefenseDocument() {} /** * The content of the defense document. @@ -59,6 +49,7 @@ public DefenseDocument content(byte[] content) { /** * The content of the defense document. + * * @return content The content of the defense document. */ @JsonProperty(JSON_PROPERTY_CONTENT) @@ -91,6 +82,7 @@ public DefenseDocument contentType(String contentType) { /** * The content type of the defense document. + * * @return contentType The content type of the defense document. */ @JsonProperty(JSON_PROPERTY_CONTENT_TYPE) @@ -123,6 +115,7 @@ public DefenseDocument defenseDocumentTypeCode(String defenseDocumentTypeCode) { /** * The document type code of the defense document. + * * @return defenseDocumentTypeCode The document type code of the defense document. */ @JsonProperty(JSON_PROPERTY_DEFENSE_DOCUMENT_TYPE_CODE) @@ -142,9 +135,7 @@ public void setDefenseDocumentTypeCode(String defenseDocumentTypeCode) { this.defenseDocumentTypeCode = defenseDocumentTypeCode; } - /** - * Return true if this DefenseDocument object is equal to o. - */ + /** Return true if this DefenseDocument object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +145,9 @@ public boolean equals(Object o) { return false; } DefenseDocument defenseDocument = (DefenseDocument) o; - return Arrays.equals(this.content, defenseDocument.content) && - Objects.equals(this.contentType, defenseDocument.contentType) && - Objects.equals(this.defenseDocumentTypeCode, defenseDocument.defenseDocumentTypeCode); + return Arrays.equals(this.content, defenseDocument.content) + && Objects.equals(this.contentType, defenseDocument.contentType) + && Objects.equals(this.defenseDocumentTypeCode, defenseDocument.defenseDocumentTypeCode); } @Override @@ -170,14 +161,15 @@ public String toString() { sb.append("class DefenseDocument {\n"); sb.append(" content: ").append(toIndentedString(content)).append("\n"); sb.append(" contentType: ").append(toIndentedString(contentType)).append("\n"); - sb.append(" defenseDocumentTypeCode: ").append(toIndentedString(defenseDocumentTypeCode)).append("\n"); + sb.append(" defenseDocumentTypeCode: ") + .append(toIndentedString(defenseDocumentTypeCode)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +178,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DefenseDocument given an JSON string * * @param jsonString JSON string @@ -196,11 +188,12 @@ private String toIndentedString(Object o) { public static DefenseDocument fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DefenseDocument.class); } -/** - * Convert an instance of DefenseDocument to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DefenseDocument to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputes/DefenseDocumentType.java b/src/main/java/com/adyen/model/disputes/DefenseDocumentType.java index 2db6b2ab0..fdee69c07 100644 --- a/src/main/java/com/adyen/model/disputes/DefenseDocumentType.java +++ b/src/main/java/com/adyen/model/disputes/DefenseDocumentType.java @@ -2,37 +2,27 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.disputes; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * DefenseDocumentType - */ +/** DefenseDocumentType */ @JsonPropertyOrder({ DefenseDocumentType.JSON_PROPERTY_AVAILABLE, DefenseDocumentType.JSON_PROPERTY_DEFENSE_DOCUMENT_TYPE_CODE, DefenseDocumentType.JSON_PROPERTY_REQUIREMENT_LEVEL }) - public class DefenseDocumentType { public static final String JSON_PROPERTY_AVAILABLE = "available"; private Boolean available; @@ -43,13 +33,14 @@ public class DefenseDocumentType { public static final String JSON_PROPERTY_REQUIREMENT_LEVEL = "requirementLevel"; private String requirementLevel; - public DefenseDocumentType() { - } + public DefenseDocumentType() {} /** - * When **true**, you've successfully uploaded this type of defense document. When **false**, you haven't uploaded this defense document type. + * When **true**, you've successfully uploaded this type of defense document. When **false**, + * you haven't uploaded this defense document type. * - * @param available When **true**, you've successfully uploaded this type of defense document. When **false**, you haven't uploaded this defense document type. + * @param available When **true**, you've successfully uploaded this type of defense document. + * When **false**, you haven't uploaded this defense document type. * @return the current {@code DefenseDocumentType} instance, allowing for method chaining */ public DefenseDocumentType available(Boolean available) { @@ -58,8 +49,11 @@ public DefenseDocumentType available(Boolean available) { } /** - * When **true**, you've successfully uploaded this type of defense document. When **false**, you haven't uploaded this defense document type. - * @return available When **true**, you've successfully uploaded this type of defense document. When **false**, you haven't uploaded this defense document type. + * When **true**, you've successfully uploaded this type of defense document. When **false**, + * you haven't uploaded this defense document type. + * + * @return available When **true**, you've successfully uploaded this type of defense + * document. When **false**, you haven't uploaded this defense document type. */ @JsonProperty(JSON_PROPERTY_AVAILABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,9 +62,11 @@ public Boolean getAvailable() { } /** - * When **true**, you've successfully uploaded this type of defense document. When **false**, you haven't uploaded this defense document type. + * When **true**, you've successfully uploaded this type of defense document. When **false**, + * you haven't uploaded this defense document type. * - * @param available When **true**, you've successfully uploaded this type of defense document. When **false**, you haven't uploaded this defense document type. + * @param available When **true**, you've successfully uploaded this type of defense document. + * When **false**, you haven't uploaded this defense document type. */ @JsonProperty(JSON_PROPERTY_AVAILABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -91,6 +87,7 @@ public DefenseDocumentType defenseDocumentTypeCode(String defenseDocumentTypeCod /** * The document type code of the defense document. + * * @return defenseDocumentTypeCode The document type code of the defense document. */ @JsonProperty(JSON_PROPERTY_DEFENSE_DOCUMENT_TYPE_CODE) @@ -111,9 +108,19 @@ public void setDefenseDocumentTypeCode(String defenseDocumentTypeCode) { } /** - * Indicates to what extent the defense document is required in the defense process. Possible values: * **Required**: You must supply the document. * **OneOrMore**: You must supply at least one of the documents with this label. * **Optional**: You can choose to supply the document. * **AlternativeRequired**: You must supply a generic defense document. To enable this functionality, contact our Support Team. When enabled, you can supply a generic defense document for all schemes. + * Indicates to what extent the defense document is required in the defense process. Possible + * values: * **Required**: You must supply the document. * **OneOrMore**: You must supply at least + * one of the documents with this label. * **Optional**: You can choose to supply the document. * + * **AlternativeRequired**: You must supply a generic defense document. To enable this + * functionality, contact our Support Team. When enabled, you can supply a generic defense + * document for all schemes. * - * @param requirementLevel Indicates to what extent the defense document is required in the defense process. Possible values: * **Required**: You must supply the document. * **OneOrMore**: You must supply at least one of the documents with this label. * **Optional**: You can choose to supply the document. * **AlternativeRequired**: You must supply a generic defense document. To enable this functionality, contact our Support Team. When enabled, you can supply a generic defense document for all schemes. + * @param requirementLevel Indicates to what extent the defense document is required in the + * defense process. Possible values: * **Required**: You must supply the document. * + * **OneOrMore**: You must supply at least one of the documents with this label. * + * **Optional**: You can choose to supply the document. * **AlternativeRequired**: You must + * supply a generic defense document. To enable this functionality, contact our Support Team. + * When enabled, you can supply a generic defense document for all schemes. * @return the current {@code DefenseDocumentType} instance, allowing for method chaining */ public DefenseDocumentType requirementLevel(String requirementLevel) { @@ -122,8 +129,19 @@ public DefenseDocumentType requirementLevel(String requirementLevel) { } /** - * Indicates to what extent the defense document is required in the defense process. Possible values: * **Required**: You must supply the document. * **OneOrMore**: You must supply at least one of the documents with this label. * **Optional**: You can choose to supply the document. * **AlternativeRequired**: You must supply a generic defense document. To enable this functionality, contact our Support Team. When enabled, you can supply a generic defense document for all schemes. - * @return requirementLevel Indicates to what extent the defense document is required in the defense process. Possible values: * **Required**: You must supply the document. * **OneOrMore**: You must supply at least one of the documents with this label. * **Optional**: You can choose to supply the document. * **AlternativeRequired**: You must supply a generic defense document. To enable this functionality, contact our Support Team. When enabled, you can supply a generic defense document for all schemes. + * Indicates to what extent the defense document is required in the defense process. Possible + * values: * **Required**: You must supply the document. * **OneOrMore**: You must supply at least + * one of the documents with this label. * **Optional**: You can choose to supply the document. * + * **AlternativeRequired**: You must supply a generic defense document. To enable this + * functionality, contact our Support Team. When enabled, you can supply a generic defense + * document for all schemes. + * + * @return requirementLevel Indicates to what extent the defense document is required in the + * defense process. Possible values: * **Required**: You must supply the document. * + * **OneOrMore**: You must supply at least one of the documents with this label. * + * **Optional**: You can choose to supply the document. * **AlternativeRequired**: You must + * supply a generic defense document. To enable this functionality, contact our Support Team. + * When enabled, you can supply a generic defense document for all schemes. */ @JsonProperty(JSON_PROPERTY_REQUIREMENT_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,9 +150,19 @@ public String getRequirementLevel() { } /** - * Indicates to what extent the defense document is required in the defense process. Possible values: * **Required**: You must supply the document. * **OneOrMore**: You must supply at least one of the documents with this label. * **Optional**: You can choose to supply the document. * **AlternativeRequired**: You must supply a generic defense document. To enable this functionality, contact our Support Team. When enabled, you can supply a generic defense document for all schemes. + * Indicates to what extent the defense document is required in the defense process. Possible + * values: * **Required**: You must supply the document. * **OneOrMore**: You must supply at least + * one of the documents with this label. * **Optional**: You can choose to supply the document. * + * **AlternativeRequired**: You must supply a generic defense document. To enable this + * functionality, contact our Support Team. When enabled, you can supply a generic defense + * document for all schemes. * - * @param requirementLevel Indicates to what extent the defense document is required in the defense process. Possible values: * **Required**: You must supply the document. * **OneOrMore**: You must supply at least one of the documents with this label. * **Optional**: You can choose to supply the document. * **AlternativeRequired**: You must supply a generic defense document. To enable this functionality, contact our Support Team. When enabled, you can supply a generic defense document for all schemes. + * @param requirementLevel Indicates to what extent the defense document is required in the + * defense process. Possible values: * **Required**: You must supply the document. * + * **OneOrMore**: You must supply at least one of the documents with this label. * + * **Optional**: You can choose to supply the document. * **AlternativeRequired**: You must + * supply a generic defense document. To enable this functionality, contact our Support Team. + * When enabled, you can supply a generic defense document for all schemes. */ @JsonProperty(JSON_PROPERTY_REQUIREMENT_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +170,7 @@ public void setRequirementLevel(String requirementLevel) { this.requirementLevel = requirementLevel; } - /** - * Return true if this DefenseDocumentType object is equal to o. - */ + /** Return true if this DefenseDocumentType object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +180,9 @@ public boolean equals(Object o) { return false; } DefenseDocumentType defenseDocumentType = (DefenseDocumentType) o; - return Objects.equals(this.available, defenseDocumentType.available) && - Objects.equals(this.defenseDocumentTypeCode, defenseDocumentType.defenseDocumentTypeCode) && - Objects.equals(this.requirementLevel, defenseDocumentType.requirementLevel); + return Objects.equals(this.available, defenseDocumentType.available) + && Objects.equals(this.defenseDocumentTypeCode, defenseDocumentType.defenseDocumentTypeCode) + && Objects.equals(this.requirementLevel, defenseDocumentType.requirementLevel); } @Override @@ -169,15 +195,16 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DefenseDocumentType {\n"); sb.append(" available: ").append(toIndentedString(available)).append("\n"); - sb.append(" defenseDocumentTypeCode: ").append(toIndentedString(defenseDocumentTypeCode)).append("\n"); + sb.append(" defenseDocumentTypeCode: ") + .append(toIndentedString(defenseDocumentTypeCode)) + .append("\n"); sb.append(" requirementLevel: ").append(toIndentedString(requirementLevel)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +213,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DefenseDocumentType given an JSON string * * @param jsonString JSON string * @return An instance of DefenseDocumentType - * @throws JsonProcessingException if the JSON string is invalid with respect to DefenseDocumentType + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DefenseDocumentType */ public static DefenseDocumentType fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DefenseDocumentType.class); } -/** - * Convert an instance of DefenseDocumentType to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DefenseDocumentType to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputes/DefenseReason.java b/src/main/java/com/adyen/model/disputes/DefenseReason.java index d652bf257..326bd6d1c 100644 --- a/src/main/java/com/adyen/model/disputes/DefenseReason.java +++ b/src/main/java/com/adyen/model/disputes/DefenseReason.java @@ -2,40 +2,29 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.disputes; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.disputes.DefenseDocumentType; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * DefenseReason - */ +/** DefenseReason */ @JsonPropertyOrder({ DefenseReason.JSON_PROPERTY_DEFENSE_DOCUMENT_TYPES, DefenseReason.JSON_PROPERTY_DEFENSE_REASON_CODE, DefenseReason.JSON_PROPERTY_SATISFIED }) - public class DefenseReason { public static final String JSON_PROPERTY_DEFENSE_DOCUMENT_TYPES = "defenseDocumentTypes"; private List defenseDocumentTypes; @@ -46,13 +35,15 @@ public class DefenseReason { public static final String JSON_PROPERTY_SATISFIED = "satisfied"; private Boolean satisfied; - public DefenseReason() { - } + public DefenseReason() {} /** - * Array of defense document types for a specific defense reason. Indicates the document types that you can submit to the schemes to defend this dispute, and whether they are required. + * Array of defense document types for a specific defense reason. Indicates the document types + * that you can submit to the schemes to defend this dispute, and whether they are required. * - * @param defenseDocumentTypes Array of defense document types for a specific defense reason. Indicates the document types that you can submit to the schemes to defend this dispute, and whether they are required. + * @param defenseDocumentTypes Array of defense document types for a specific defense reason. + * Indicates the document types that you can submit to the schemes to defend this dispute, and + * whether they are required. * @return the current {@code DefenseReason} instance, allowing for method chaining */ public DefenseReason defenseDocumentTypes(List defenseDocumentTypes) { @@ -69,8 +60,12 @@ public DefenseReason addDefenseDocumentTypesItem(DefenseDocumentType defenseDocu } /** - * Array of defense document types for a specific defense reason. Indicates the document types that you can submit to the schemes to defend this dispute, and whether they are required. - * @return defenseDocumentTypes Array of defense document types for a specific defense reason. Indicates the document types that you can submit to the schemes to defend this dispute, and whether they are required. + * Array of defense document types for a specific defense reason. Indicates the document types + * that you can submit to the schemes to defend this dispute, and whether they are required. + * + * @return defenseDocumentTypes Array of defense document types for a specific defense reason. + * Indicates the document types that you can submit to the schemes to defend this dispute, and + * whether they are required. */ @JsonProperty(JSON_PROPERTY_DEFENSE_DOCUMENT_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,9 +74,12 @@ public List getDefenseDocumentTypes() { } /** - * Array of defense document types for a specific defense reason. Indicates the document types that you can submit to the schemes to defend this dispute, and whether they are required. + * Array of defense document types for a specific defense reason. Indicates the document types + * that you can submit to the schemes to defend this dispute, and whether they are required. * - * @param defenseDocumentTypes Array of defense document types for a specific defense reason. Indicates the document types that you can submit to the schemes to defend this dispute, and whether they are required. + * @param defenseDocumentTypes Array of defense document types for a specific defense reason. + * Indicates the document types that you can submit to the schemes to defend this dispute, and + * whether they are required. */ @JsonProperty(JSON_PROPERTY_DEFENSE_DOCUMENT_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,6 +100,7 @@ public DefenseReason defenseReasonCode(String defenseReasonCode) { /** * The defense reason code that was selected to defend this dispute. + * * @return defenseReasonCode The defense reason code that was selected to defend this dispute. */ @JsonProperty(JSON_PROPERTY_DEFENSE_REASON_CODE) @@ -134,6 +133,7 @@ public DefenseReason satisfied(Boolean satisfied) { /** * Indicates if sufficient defense material has been supplied. + * * @return satisfied Indicates if sufficient defense material has been supplied. */ @JsonProperty(JSON_PROPERTY_SATISFIED) @@ -153,9 +153,7 @@ public void setSatisfied(Boolean satisfied) { this.satisfied = satisfied; } - /** - * Return true if this DefenseReason object is equal to o. - */ + /** Return true if this DefenseReason object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -165,9 +163,9 @@ public boolean equals(Object o) { return false; } DefenseReason defenseReason = (DefenseReason) o; - return Objects.equals(this.defenseDocumentTypes, defenseReason.defenseDocumentTypes) && - Objects.equals(this.defenseReasonCode, defenseReason.defenseReasonCode) && - Objects.equals(this.satisfied, defenseReason.satisfied); + return Objects.equals(this.defenseDocumentTypes, defenseReason.defenseDocumentTypes) + && Objects.equals(this.defenseReasonCode, defenseReason.defenseReasonCode) + && Objects.equals(this.satisfied, defenseReason.satisfied); } @Override @@ -179,7 +177,9 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DefenseReason {\n"); - sb.append(" defenseDocumentTypes: ").append(toIndentedString(defenseDocumentTypes)).append("\n"); + sb.append(" defenseDocumentTypes: ") + .append(toIndentedString(defenseDocumentTypes)) + .append("\n"); sb.append(" defenseReasonCode: ").append(toIndentedString(defenseReasonCode)).append("\n"); sb.append(" satisfied: ").append(toIndentedString(satisfied)).append("\n"); sb.append("}"); @@ -187,8 +187,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -197,7 +196,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DefenseReason given an JSON string * * @param jsonString JSON string @@ -207,11 +206,12 @@ private String toIndentedString(Object o) { public static DefenseReason fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DefenseReason.class); } -/** - * Convert an instance of DefenseReason to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DefenseReason to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputes/DefenseReasonsRequest.java b/src/main/java/com/adyen/model/disputes/DefenseReasonsRequest.java index 3e05503af..44632e0b6 100644 --- a/src/main/java/com/adyen/model/disputes/DefenseReasonsRequest.java +++ b/src/main/java/com/adyen/model/disputes/DefenseReasonsRequest.java @@ -2,36 +2,26 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.disputes; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * DefenseReasonsRequest - */ +/** DefenseReasonsRequest */ @JsonPropertyOrder({ DefenseReasonsRequest.JSON_PROPERTY_DISPUTE_PSP_REFERENCE, DefenseReasonsRequest.JSON_PROPERTY_MERCHANT_ACCOUNT_CODE }) - public class DefenseReasonsRequest { public static final String JSON_PROPERTY_DISPUTE_PSP_REFERENCE = "disputePspReference"; private String disputePspReference; @@ -39,8 +29,7 @@ public class DefenseReasonsRequest { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT_CODE = "merchantAccountCode"; private String merchantAccountCode; - public DefenseReasonsRequest() { - } + public DefenseReasonsRequest() {} /** * The PSP reference assigned to the dispute. @@ -55,6 +44,7 @@ public DefenseReasonsRequest disputePspReference(String disputePspReference) { /** * The PSP reference assigned to the dispute. + * * @return disputePspReference The PSP reference assigned to the dispute. */ @JsonProperty(JSON_PROPERTY_DISPUTE_PSP_REFERENCE) @@ -77,7 +67,8 @@ public void setDisputePspReference(String disputePspReference) { /** * The merchant account identifier, for which you want to process the dispute transaction. * - * @param merchantAccountCode The merchant account identifier, for which you want to process the dispute transaction. + * @param merchantAccountCode The merchant account identifier, for which you want to process the + * dispute transaction. * @return the current {@code DefenseReasonsRequest} instance, allowing for method chaining */ public DefenseReasonsRequest merchantAccountCode(String merchantAccountCode) { @@ -87,7 +78,9 @@ public DefenseReasonsRequest merchantAccountCode(String merchantAccountCode) { /** * The merchant account identifier, for which you want to process the dispute transaction. - * @return merchantAccountCode The merchant account identifier, for which you want to process the dispute transaction. + * + * @return merchantAccountCode The merchant account identifier, for which you want to process the + * dispute transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -98,7 +91,8 @@ public String getMerchantAccountCode() { /** * The merchant account identifier, for which you want to process the dispute transaction. * - * @param merchantAccountCode The merchant account identifier, for which you want to process the dispute transaction. + * @param merchantAccountCode The merchant account identifier, for which you want to process the + * dispute transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +100,7 @@ public void setMerchantAccountCode(String merchantAccountCode) { this.merchantAccountCode = merchantAccountCode; } - /** - * Return true if this DefenseReasonsRequest object is equal to o. - */ + /** Return true if this DefenseReasonsRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +110,8 @@ public boolean equals(Object o) { return false; } DefenseReasonsRequest defenseReasonsRequest = (DefenseReasonsRequest) o; - return Objects.equals(this.disputePspReference, defenseReasonsRequest.disputePspReference) && - Objects.equals(this.merchantAccountCode, defenseReasonsRequest.merchantAccountCode); + return Objects.equals(this.disputePspReference, defenseReasonsRequest.disputePspReference) + && Objects.equals(this.merchantAccountCode, defenseReasonsRequest.merchantAccountCode); } @Override @@ -131,15 +123,18 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DefenseReasonsRequest {\n"); - sb.append(" disputePspReference: ").append(toIndentedString(disputePspReference)).append("\n"); - sb.append(" merchantAccountCode: ").append(toIndentedString(merchantAccountCode)).append("\n"); + sb.append(" disputePspReference: ") + .append(toIndentedString(disputePspReference)) + .append("\n"); + sb.append(" merchantAccountCode: ") + .append(toIndentedString(merchantAccountCode)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +143,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DefenseReasonsRequest given an JSON string * * @param jsonString JSON string * @return An instance of DefenseReasonsRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to DefenseReasonsRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DefenseReasonsRequest */ public static DefenseReasonsRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DefenseReasonsRequest.class); } -/** - * Convert an instance of DefenseReasonsRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DefenseReasonsRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputes/DefenseReasonsResponse.java b/src/main/java/com/adyen/model/disputes/DefenseReasonsResponse.java index f1266a020..101b2c02c 100644 --- a/src/main/java/com/adyen/model/disputes/DefenseReasonsResponse.java +++ b/src/main/java/com/adyen/model/disputes/DefenseReasonsResponse.java @@ -2,40 +2,28 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.disputes; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.disputes.DefenseReason; -import com.adyen.model.disputes.DisputeServiceResult; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * DefenseReasonsResponse - */ +/** DefenseReasonsResponse */ @JsonPropertyOrder({ DefenseReasonsResponse.JSON_PROPERTY_DEFENSE_REASONS, DefenseReasonsResponse.JSON_PROPERTY_DISPUTE_SERVICE_RESULT }) - public class DefenseReasonsResponse { public static final String JSON_PROPERTY_DEFENSE_REASONS = "defenseReasons"; private List defenseReasons; @@ -43,8 +31,7 @@ public class DefenseReasonsResponse { public static final String JSON_PROPERTY_DISPUTE_SERVICE_RESULT = "disputeServiceResult"; private DisputeServiceResult disputeServiceResult; - public DefenseReasonsResponse() { - } + public DefenseReasonsResponse() {} /** * The defense reasons that can be used to defend the dispute. @@ -67,6 +54,7 @@ public DefenseReasonsResponse addDefenseReasonsItem(DefenseReason defenseReasons /** * The defense reasons that can be used to defend the dispute. + * * @return defenseReasons The defense reasons that can be used to defend the dispute. */ @JsonProperty(JSON_PROPERTY_DEFENSE_REASONS) @@ -89,7 +77,7 @@ public void setDefenseReasons(List defenseReasons) { /** * disputeServiceResult * - * @param disputeServiceResult + * @param disputeServiceResult * @return the current {@code DefenseReasonsResponse} instance, allowing for method chaining */ public DefenseReasonsResponse disputeServiceResult(DisputeServiceResult disputeServiceResult) { @@ -99,7 +87,8 @@ public DefenseReasonsResponse disputeServiceResult(DisputeServiceResult disputeS /** * Get disputeServiceResult - * @return disputeServiceResult + * + * @return disputeServiceResult */ @JsonProperty(JSON_PROPERTY_DISPUTE_SERVICE_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,7 +99,7 @@ public DisputeServiceResult getDisputeServiceResult() { /** * disputeServiceResult * - * @param disputeServiceResult + * @param disputeServiceResult */ @JsonProperty(JSON_PROPERTY_DISPUTE_SERVICE_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,9 +107,7 @@ public void setDisputeServiceResult(DisputeServiceResult disputeServiceResult) { this.disputeServiceResult = disputeServiceResult; } - /** - * Return true if this DefenseReasonsResponse object is equal to o. - */ + /** Return true if this DefenseReasonsResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -130,8 +117,8 @@ public boolean equals(Object o) { return false; } DefenseReasonsResponse defenseReasonsResponse = (DefenseReasonsResponse) o; - return Objects.equals(this.defenseReasons, defenseReasonsResponse.defenseReasons) && - Objects.equals(this.disputeServiceResult, defenseReasonsResponse.disputeServiceResult); + return Objects.equals(this.defenseReasons, defenseReasonsResponse.defenseReasons) + && Objects.equals(this.disputeServiceResult, defenseReasonsResponse.disputeServiceResult); } @Override @@ -144,14 +131,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DefenseReasonsResponse {\n"); sb.append(" defenseReasons: ").append(toIndentedString(defenseReasons)).append("\n"); - sb.append(" disputeServiceResult: ").append(toIndentedString(disputeServiceResult)).append("\n"); + sb.append(" disputeServiceResult: ") + .append(toIndentedString(disputeServiceResult)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -160,21 +148,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DefenseReasonsResponse given an JSON string * * @param jsonString JSON string * @return An instance of DefenseReasonsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to DefenseReasonsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DefenseReasonsResponse */ public static DefenseReasonsResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DefenseReasonsResponse.class); } -/** - * Convert an instance of DefenseReasonsResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DefenseReasonsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputes/DeleteDefenseDocumentRequest.java b/src/main/java/com/adyen/model/disputes/DeleteDefenseDocumentRequest.java index 9b57ea7fd..ff04185ed 100644 --- a/src/main/java/com/adyen/model/disputes/DeleteDefenseDocumentRequest.java +++ b/src/main/java/com/adyen/model/disputes/DeleteDefenseDocumentRequest.java @@ -2,37 +2,27 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.disputes; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * DeleteDefenseDocumentRequest - */ +/** DeleteDefenseDocumentRequest */ @JsonPropertyOrder({ DeleteDefenseDocumentRequest.JSON_PROPERTY_DEFENSE_DOCUMENT_TYPE, DeleteDefenseDocumentRequest.JSON_PROPERTY_DISPUTE_PSP_REFERENCE, DeleteDefenseDocumentRequest.JSON_PROPERTY_MERCHANT_ACCOUNT_CODE }) - public class DeleteDefenseDocumentRequest { public static final String JSON_PROPERTY_DEFENSE_DOCUMENT_TYPE = "defenseDocumentType"; private String defenseDocumentType; @@ -43,8 +33,7 @@ public class DeleteDefenseDocumentRequest { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT_CODE = "merchantAccountCode"; private String merchantAccountCode; - public DeleteDefenseDocumentRequest() { - } + public DeleteDefenseDocumentRequest() {} /** * The document type code of the defense document. @@ -59,6 +48,7 @@ public DeleteDefenseDocumentRequest defenseDocumentType(String defenseDocumentTy /** * The document type code of the defense document. + * * @return defenseDocumentType The document type code of the defense document. */ @JsonProperty(JSON_PROPERTY_DEFENSE_DOCUMENT_TYPE) @@ -91,6 +81,7 @@ public DeleteDefenseDocumentRequest disputePspReference(String disputePspReferen /** * The PSP reference assigned to the dispute. + * * @return disputePspReference The PSP reference assigned to the dispute. */ @JsonProperty(JSON_PROPERTY_DISPUTE_PSP_REFERENCE) @@ -113,7 +104,8 @@ public void setDisputePspReference(String disputePspReference) { /** * The merchant account identifier, for which you want to process the dispute transaction. * - * @param merchantAccountCode The merchant account identifier, for which you want to process the dispute transaction. + * @param merchantAccountCode The merchant account identifier, for which you want to process the + * dispute transaction. * @return the current {@code DeleteDefenseDocumentRequest} instance, allowing for method chaining */ public DeleteDefenseDocumentRequest merchantAccountCode(String merchantAccountCode) { @@ -123,7 +115,9 @@ public DeleteDefenseDocumentRequest merchantAccountCode(String merchantAccountCo /** * The merchant account identifier, for which you want to process the dispute transaction. - * @return merchantAccountCode The merchant account identifier, for which you want to process the dispute transaction. + * + * @return merchantAccountCode The merchant account identifier, for which you want to process the + * dispute transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -134,7 +128,8 @@ public String getMerchantAccountCode() { /** * The merchant account identifier, for which you want to process the dispute transaction. * - * @param merchantAccountCode The merchant account identifier, for which you want to process the dispute transaction. + * @param merchantAccountCode The merchant account identifier, for which you want to process the + * dispute transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +137,7 @@ public void setMerchantAccountCode(String merchantAccountCode) { this.merchantAccountCode = merchantAccountCode; } - /** - * Return true if this DeleteDefenseDocumentRequest object is equal to o. - */ + /** Return true if this DeleteDefenseDocumentRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +147,12 @@ public boolean equals(Object o) { return false; } DeleteDefenseDocumentRequest deleteDefenseDocumentRequest = (DeleteDefenseDocumentRequest) o; - return Objects.equals(this.defenseDocumentType, deleteDefenseDocumentRequest.defenseDocumentType) && - Objects.equals(this.disputePspReference, deleteDefenseDocumentRequest.disputePspReference) && - Objects.equals(this.merchantAccountCode, deleteDefenseDocumentRequest.merchantAccountCode); + return Objects.equals( + this.defenseDocumentType, deleteDefenseDocumentRequest.defenseDocumentType) + && Objects.equals( + this.disputePspReference, deleteDefenseDocumentRequest.disputePspReference) + && Objects.equals( + this.merchantAccountCode, deleteDefenseDocumentRequest.merchantAccountCode); } @Override @@ -168,16 +164,21 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeleteDefenseDocumentRequest {\n"); - sb.append(" defenseDocumentType: ").append(toIndentedString(defenseDocumentType)).append("\n"); - sb.append(" disputePspReference: ").append(toIndentedString(disputePspReference)).append("\n"); - sb.append(" merchantAccountCode: ").append(toIndentedString(merchantAccountCode)).append("\n"); + sb.append(" defenseDocumentType: ") + .append(toIndentedString(defenseDocumentType)) + .append("\n"); + sb.append(" disputePspReference: ") + .append(toIndentedString(disputePspReference)) + .append("\n"); + sb.append(" merchantAccountCode: ") + .append(toIndentedString(merchantAccountCode)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +187,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DeleteDefenseDocumentRequest given an JSON string * * @param jsonString JSON string * @return An instance of DeleteDefenseDocumentRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to DeleteDefenseDocumentRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DeleteDefenseDocumentRequest */ - public static DeleteDefenseDocumentRequest fromJson(String jsonString) throws JsonProcessingException { + public static DeleteDefenseDocumentRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DeleteDefenseDocumentRequest.class); } -/** - * Convert an instance of DeleteDefenseDocumentRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DeleteDefenseDocumentRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputes/DeleteDefenseDocumentResponse.java b/src/main/java/com/adyen/model/disputes/DeleteDefenseDocumentResponse.java index e8714ad75..65526c3a0 100644 --- a/src/main/java/com/adyen/model/disputes/DeleteDefenseDocumentResponse.java +++ b/src/main/java/com/adyen/model/disputes/DeleteDefenseDocumentResponse.java @@ -2,57 +2,46 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.disputes; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.disputes.DisputeServiceResult; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * DeleteDefenseDocumentResponse - */ -@JsonPropertyOrder({ - DeleteDefenseDocumentResponse.JSON_PROPERTY_DISPUTE_SERVICE_RESULT -}) - +/** DeleteDefenseDocumentResponse */ +@JsonPropertyOrder({DeleteDefenseDocumentResponse.JSON_PROPERTY_DISPUTE_SERVICE_RESULT}) public class DeleteDefenseDocumentResponse { public static final String JSON_PROPERTY_DISPUTE_SERVICE_RESULT = "disputeServiceResult"; private DisputeServiceResult disputeServiceResult; - public DeleteDefenseDocumentResponse() { - } + public DeleteDefenseDocumentResponse() {} /** * disputeServiceResult * - * @param disputeServiceResult - * @return the current {@code DeleteDefenseDocumentResponse} instance, allowing for method chaining + * @param disputeServiceResult + * @return the current {@code DeleteDefenseDocumentResponse} instance, allowing for method + * chaining */ - public DeleteDefenseDocumentResponse disputeServiceResult(DisputeServiceResult disputeServiceResult) { + public DeleteDefenseDocumentResponse disputeServiceResult( + DisputeServiceResult disputeServiceResult) { this.disputeServiceResult = disputeServiceResult; return this; } /** * Get disputeServiceResult - * @return disputeServiceResult + * + * @return disputeServiceResult */ @JsonProperty(JSON_PROPERTY_DISPUTE_SERVICE_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,7 +52,7 @@ public DisputeServiceResult getDisputeServiceResult() { /** * disputeServiceResult * - * @param disputeServiceResult + * @param disputeServiceResult */ @JsonProperty(JSON_PROPERTY_DISPUTE_SERVICE_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,9 +60,7 @@ public void setDisputeServiceResult(DisputeServiceResult disputeServiceResult) { this.disputeServiceResult = disputeServiceResult; } - /** - * Return true if this DeleteDefenseDocumentResponse object is equal to o. - */ + /** Return true if this DeleteDefenseDocumentResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -83,7 +70,8 @@ public boolean equals(Object o) { return false; } DeleteDefenseDocumentResponse deleteDefenseDocumentResponse = (DeleteDefenseDocumentResponse) o; - return Objects.equals(this.disputeServiceResult, deleteDefenseDocumentResponse.disputeServiceResult); + return Objects.equals( + this.disputeServiceResult, deleteDefenseDocumentResponse.disputeServiceResult); } @Override @@ -95,14 +83,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeleteDefenseDocumentResponse {\n"); - sb.append(" disputeServiceResult: ").append(toIndentedString(disputeServiceResult)).append("\n"); + sb.append(" disputeServiceResult: ") + .append(toIndentedString(disputeServiceResult)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -111,21 +100,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DeleteDefenseDocumentResponse given an JSON string * * @param jsonString JSON string * @return An instance of DeleteDefenseDocumentResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to DeleteDefenseDocumentResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DeleteDefenseDocumentResponse */ - public static DeleteDefenseDocumentResponse fromJson(String jsonString) throws JsonProcessingException { + public static DeleteDefenseDocumentResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DeleteDefenseDocumentResponse.class); } -/** - * Convert an instance of DeleteDefenseDocumentResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DeleteDefenseDocumentResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputes/DisputeServiceResult.java b/src/main/java/com/adyen/model/disputes/DisputeServiceResult.java index 7c1fe08ef..b975f1173 100644 --- a/src/main/java/com/adyen/model/disputes/DisputeServiceResult.java +++ b/src/main/java/com/adyen/model/disputes/DisputeServiceResult.java @@ -2,36 +2,26 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.disputes; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * DisputeServiceResult - */ +/** DisputeServiceResult */ @JsonPropertyOrder({ DisputeServiceResult.JSON_PROPERTY_ERROR_MESSAGE, DisputeServiceResult.JSON_PROPERTY_SUCCESS }) - public class DisputeServiceResult { public static final String JSON_PROPERTY_ERROR_MESSAGE = "errorMessage"; private String errorMessage; @@ -39,8 +29,7 @@ public class DisputeServiceResult { public static final String JSON_PROPERTY_SUCCESS = "success"; private Boolean success; - public DisputeServiceResult() { - } + public DisputeServiceResult() {} /** * The general error message. @@ -55,6 +44,7 @@ public DisputeServiceResult errorMessage(String errorMessage) { /** * The general error message. + * * @return errorMessage The general error message. */ @JsonProperty(JSON_PROPERTY_ERROR_MESSAGE) @@ -87,6 +77,7 @@ public DisputeServiceResult success(Boolean success) { /** * Indicates whether the request succeeded. + * * @return success Indicates whether the request succeeded. */ @JsonProperty(JSON_PROPERTY_SUCCESS) @@ -106,9 +97,7 @@ public void setSuccess(Boolean success) { this.success = success; } - /** - * Return true if this DisputeServiceResult object is equal to o. - */ + /** Return true if this DisputeServiceResult object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +107,8 @@ public boolean equals(Object o) { return false; } DisputeServiceResult disputeServiceResult = (DisputeServiceResult) o; - return Objects.equals(this.errorMessage, disputeServiceResult.errorMessage) && - Objects.equals(this.success, disputeServiceResult.success); + return Objects.equals(this.errorMessage, disputeServiceResult.errorMessage) + && Objects.equals(this.success, disputeServiceResult.success); } @Override @@ -138,8 +127,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +136,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DisputeServiceResult given an JSON string * * @param jsonString JSON string * @return An instance of DisputeServiceResult - * @throws JsonProcessingException if the JSON string is invalid with respect to DisputeServiceResult + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DisputeServiceResult */ public static DisputeServiceResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DisputeServiceResult.class); } -/** - * Convert an instance of DisputeServiceResult to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DisputeServiceResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputes/JSON.java b/src/main/java/com/adyen/model/disputes/JSON.java index 4c0929ca5..7b749e401 100644 --- a/src/main/java/com/adyen/model/disputes/JSON.java +++ b/src/main/java/com/adyen/model/disputes/JSON.java @@ -1,21 +1,18 @@ package com.adyen.model.disputes; -import com.adyen.serializer.ByteArraySerializer; import com.adyen.serializer.ByteArrayDeserializer; +import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import com.adyen.model.disputes.*; - +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -40,6 +37,7 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. + * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -56,11 +54,13 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { return mapper; } + public static ObjectMapper getMapper() { + return mapper; + } /** - * Returns the target model class that should be used to deserialize the input data. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,9 +73,7 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** - * Helper class to register the discriminator mappings. - */ + /** Helper class to register the discriminator mappings. */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -117,9 +115,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. - * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. This + * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -164,13 +162,14 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, - * so it's not possible to use the instanceof keyword. + *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so + * it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf( + Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -194,59 +193,58 @@ public static boolean isInstanceOf(Class modelClass, Object inst, Set, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); + /** A map of discriminators for all model classes. */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = + new HashMap, ClassDiscriminatorMapping>(); - /** - * A map of oneOf/anyOf descendants for each model class. - */ + /** A map of oneOf/anyOf descendants for each model class. */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator( + Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = + new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants(Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants( + Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static - { + static { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/disputes/ServiceError.java b/src/main/java/com/adyen/model/disputes/ServiceError.java index d297dbfcd..d8f51bd6d 100644 --- a/src/main/java/com/adyen/model/disputes/ServiceError.java +++ b/src/main/java/com/adyen/model/disputes/ServiceError.java @@ -2,31 +2,22 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.disputes; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ServiceError - */ +/** ServiceError */ @JsonPropertyOrder({ ServiceError.JSON_PROPERTY_ERROR_CODE, ServiceError.JSON_PROPERTY_ERROR_TYPE, @@ -34,7 +25,6 @@ ServiceError.JSON_PROPERTY_PSP_REFERENCE, ServiceError.JSON_PROPERTY_STATUS }) - public class ServiceError { public static final String JSON_PROPERTY_ERROR_CODE = "errorCode"; private String errorCode; @@ -51,8 +41,7 @@ public class ServiceError { public static final String JSON_PROPERTY_STATUS = "status"; private Integer status; - public ServiceError() { - } + public ServiceError() {} /** * The error code mapped to the error message. @@ -67,6 +56,7 @@ public ServiceError errorCode(String errorCode) { /** * The error code mapped to the error message. + * * @return errorCode The error code mapped to the error message. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -99,6 +89,7 @@ public ServiceError errorType(String errorType) { /** * The category of the error. + * * @return errorType The category of the error. */ @JsonProperty(JSON_PROPERTY_ERROR_TYPE) @@ -131,6 +122,7 @@ public ServiceError message(String message) { /** * A short explanation of the issue. + * * @return message A short explanation of the issue. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -163,6 +155,7 @@ public ServiceError pspReference(String pspReference) { /** * The PSP reference of the payment. + * * @return pspReference The PSP reference of the payment. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -195,6 +188,7 @@ public ServiceError status(Integer status) { /** * The HTTP response status. + * * @return status The HTTP response status. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -214,9 +208,7 @@ public void setStatus(Integer status) { this.status = status; } - /** - * Return true if this ServiceError object is equal to o. - */ + /** Return true if this ServiceError object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -226,11 +218,11 @@ public boolean equals(Object o) { return false; } ServiceError serviceError = (ServiceError) o; - return Objects.equals(this.errorCode, serviceError.errorCode) && - Objects.equals(this.errorType, serviceError.errorType) && - Objects.equals(this.message, serviceError.message) && - Objects.equals(this.pspReference, serviceError.pspReference) && - Objects.equals(this.status, serviceError.status); + return Objects.equals(this.errorCode, serviceError.errorCode) + && Objects.equals(this.errorType, serviceError.errorType) + && Objects.equals(this.message, serviceError.message) + && Objects.equals(this.pspReference, serviceError.pspReference) + && Objects.equals(this.status, serviceError.status); } @Override @@ -252,8 +244,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -262,7 +253,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ServiceError given an JSON string * * @param jsonString JSON string @@ -272,11 +263,12 @@ private String toIndentedString(Object o) { public static ServiceError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } -/** - * Convert an instance of ServiceError to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ServiceError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputes/SupplyDefenseDocumentRequest.java b/src/main/java/com/adyen/model/disputes/SupplyDefenseDocumentRequest.java index b5701ffc3..26602008d 100644 --- a/src/main/java/com/adyen/model/disputes/SupplyDefenseDocumentRequest.java +++ b/src/main/java/com/adyen/model/disputes/SupplyDefenseDocumentRequest.java @@ -2,40 +2,29 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.disputes; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.disputes.DefenseDocument; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * SupplyDefenseDocumentRequest - */ +/** SupplyDefenseDocumentRequest */ @JsonPropertyOrder({ SupplyDefenseDocumentRequest.JSON_PROPERTY_DEFENSE_DOCUMENTS, SupplyDefenseDocumentRequest.JSON_PROPERTY_DISPUTE_PSP_REFERENCE, SupplyDefenseDocumentRequest.JSON_PROPERTY_MERCHANT_ACCOUNT_CODE }) - public class SupplyDefenseDocumentRequest { public static final String JSON_PROPERTY_DEFENSE_DOCUMENTS = "defenseDocuments"; private List defenseDocuments; @@ -46,8 +35,7 @@ public class SupplyDefenseDocumentRequest { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT_CODE = "merchantAccountCode"; private String merchantAccountCode; - public SupplyDefenseDocumentRequest() { - } + public SupplyDefenseDocumentRequest() {} /** * An array containing a list of the defense documents. @@ -60,7 +48,8 @@ public SupplyDefenseDocumentRequest defenseDocuments(List defen return this; } - public SupplyDefenseDocumentRequest addDefenseDocumentsItem(DefenseDocument defenseDocumentsItem) { + public SupplyDefenseDocumentRequest addDefenseDocumentsItem( + DefenseDocument defenseDocumentsItem) { if (this.defenseDocuments == null) { this.defenseDocuments = new ArrayList<>(); } @@ -70,6 +59,7 @@ public SupplyDefenseDocumentRequest addDefenseDocumentsItem(DefenseDocument defe /** * An array containing a list of the defense documents. + * * @return defenseDocuments An array containing a list of the defense documents. */ @JsonProperty(JSON_PROPERTY_DEFENSE_DOCUMENTS) @@ -102,6 +92,7 @@ public SupplyDefenseDocumentRequest disputePspReference(String disputePspReferen /** * The PSP reference assigned to the dispute. + * * @return disputePspReference The PSP reference assigned to the dispute. */ @JsonProperty(JSON_PROPERTY_DISPUTE_PSP_REFERENCE) @@ -124,7 +115,8 @@ public void setDisputePspReference(String disputePspReference) { /** * The merchant account identifier, for which you want to process the dispute transaction. * - * @param merchantAccountCode The merchant account identifier, for which you want to process the dispute transaction. + * @param merchantAccountCode The merchant account identifier, for which you want to process the + * dispute transaction. * @return the current {@code SupplyDefenseDocumentRequest} instance, allowing for method chaining */ public SupplyDefenseDocumentRequest merchantAccountCode(String merchantAccountCode) { @@ -134,7 +126,9 @@ public SupplyDefenseDocumentRequest merchantAccountCode(String merchantAccountCo /** * The merchant account identifier, for which you want to process the dispute transaction. - * @return merchantAccountCode The merchant account identifier, for which you want to process the dispute transaction. + * + * @return merchantAccountCode The merchant account identifier, for which you want to process the + * dispute transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,7 +139,8 @@ public String getMerchantAccountCode() { /** * The merchant account identifier, for which you want to process the dispute transaction. * - * @param merchantAccountCode The merchant account identifier, for which you want to process the dispute transaction. + * @param merchantAccountCode The merchant account identifier, for which you want to process the + * dispute transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -153,9 +148,7 @@ public void setMerchantAccountCode(String merchantAccountCode) { this.merchantAccountCode = merchantAccountCode; } - /** - * Return true if this SupplyDefenseDocumentRequest object is equal to o. - */ + /** Return true if this SupplyDefenseDocumentRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -165,9 +158,11 @@ public boolean equals(Object o) { return false; } SupplyDefenseDocumentRequest supplyDefenseDocumentRequest = (SupplyDefenseDocumentRequest) o; - return Objects.equals(this.defenseDocuments, supplyDefenseDocumentRequest.defenseDocuments) && - Objects.equals(this.disputePspReference, supplyDefenseDocumentRequest.disputePspReference) && - Objects.equals(this.merchantAccountCode, supplyDefenseDocumentRequest.merchantAccountCode); + return Objects.equals(this.defenseDocuments, supplyDefenseDocumentRequest.defenseDocuments) + && Objects.equals( + this.disputePspReference, supplyDefenseDocumentRequest.disputePspReference) + && Objects.equals( + this.merchantAccountCode, supplyDefenseDocumentRequest.merchantAccountCode); } @Override @@ -180,15 +175,18 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SupplyDefenseDocumentRequest {\n"); sb.append(" defenseDocuments: ").append(toIndentedString(defenseDocuments)).append("\n"); - sb.append(" disputePspReference: ").append(toIndentedString(disputePspReference)).append("\n"); - sb.append(" merchantAccountCode: ").append(toIndentedString(merchantAccountCode)).append("\n"); + sb.append(" disputePspReference: ") + .append(toIndentedString(disputePspReference)) + .append("\n"); + sb.append(" merchantAccountCode: ") + .append(toIndentedString(merchantAccountCode)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -197,21 +195,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SupplyDefenseDocumentRequest given an JSON string * * @param jsonString JSON string * @return An instance of SupplyDefenseDocumentRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to SupplyDefenseDocumentRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SupplyDefenseDocumentRequest */ - public static SupplyDefenseDocumentRequest fromJson(String jsonString) throws JsonProcessingException { + public static SupplyDefenseDocumentRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SupplyDefenseDocumentRequest.class); } -/** - * Convert an instance of SupplyDefenseDocumentRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SupplyDefenseDocumentRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputes/SupplyDefenseDocumentResponse.java b/src/main/java/com/adyen/model/disputes/SupplyDefenseDocumentResponse.java index a0e0ba9a2..5290497df 100644 --- a/src/main/java/com/adyen/model/disputes/SupplyDefenseDocumentResponse.java +++ b/src/main/java/com/adyen/model/disputes/SupplyDefenseDocumentResponse.java @@ -2,57 +2,46 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.disputes; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.disputes.DisputeServiceResult; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * SupplyDefenseDocumentResponse - */ -@JsonPropertyOrder({ - SupplyDefenseDocumentResponse.JSON_PROPERTY_DISPUTE_SERVICE_RESULT -}) - +/** SupplyDefenseDocumentResponse */ +@JsonPropertyOrder({SupplyDefenseDocumentResponse.JSON_PROPERTY_DISPUTE_SERVICE_RESULT}) public class SupplyDefenseDocumentResponse { public static final String JSON_PROPERTY_DISPUTE_SERVICE_RESULT = "disputeServiceResult"; private DisputeServiceResult disputeServiceResult; - public SupplyDefenseDocumentResponse() { - } + public SupplyDefenseDocumentResponse() {} /** * disputeServiceResult * - * @param disputeServiceResult - * @return the current {@code SupplyDefenseDocumentResponse} instance, allowing for method chaining + * @param disputeServiceResult + * @return the current {@code SupplyDefenseDocumentResponse} instance, allowing for method + * chaining */ - public SupplyDefenseDocumentResponse disputeServiceResult(DisputeServiceResult disputeServiceResult) { + public SupplyDefenseDocumentResponse disputeServiceResult( + DisputeServiceResult disputeServiceResult) { this.disputeServiceResult = disputeServiceResult; return this; } /** * Get disputeServiceResult - * @return disputeServiceResult + * + * @return disputeServiceResult */ @JsonProperty(JSON_PROPERTY_DISPUTE_SERVICE_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,7 +52,7 @@ public DisputeServiceResult getDisputeServiceResult() { /** * disputeServiceResult * - * @param disputeServiceResult + * @param disputeServiceResult */ @JsonProperty(JSON_PROPERTY_DISPUTE_SERVICE_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,9 +60,7 @@ public void setDisputeServiceResult(DisputeServiceResult disputeServiceResult) { this.disputeServiceResult = disputeServiceResult; } - /** - * Return true if this SupplyDefenseDocumentResponse object is equal to o. - */ + /** Return true if this SupplyDefenseDocumentResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -83,7 +70,8 @@ public boolean equals(Object o) { return false; } SupplyDefenseDocumentResponse supplyDefenseDocumentResponse = (SupplyDefenseDocumentResponse) o; - return Objects.equals(this.disputeServiceResult, supplyDefenseDocumentResponse.disputeServiceResult); + return Objects.equals( + this.disputeServiceResult, supplyDefenseDocumentResponse.disputeServiceResult); } @Override @@ -95,14 +83,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SupplyDefenseDocumentResponse {\n"); - sb.append(" disputeServiceResult: ").append(toIndentedString(disputeServiceResult)).append("\n"); + sb.append(" disputeServiceResult: ") + .append(toIndentedString(disputeServiceResult)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -111,21 +100,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SupplyDefenseDocumentResponse given an JSON string * * @param jsonString JSON string * @return An instance of SupplyDefenseDocumentResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to SupplyDefenseDocumentResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SupplyDefenseDocumentResponse */ - public static SupplyDefenseDocumentResponse fromJson(String jsonString) throws JsonProcessingException { + public static SupplyDefenseDocumentResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SupplyDefenseDocumentResponse.class); } -/** - * Convert an instance of SupplyDefenseDocumentResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SupplyDefenseDocumentResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputewebhooks/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/disputewebhooks/AbstractOpenApiSchema.java index 7cffce63e..5187ef4af 100644 --- a/src/main/java/com/adyen/model/disputewebhooks/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/disputewebhooks/AbstractOpenApiSchema.java @@ -2,145 +2,141 @@ * Dispute webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.disputewebhooks; -import java.util.Objects; -import java.util.Map; -import jakarta.ws.rs.core.GenericType; - import com.fasterxml.jackson.annotation.JsonValue; +import jakarta.ws.rs.core.GenericType; +import java.util.Map; +import java.util.Objects; -/** - * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec - */ +/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() {return instance;} - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) {this.instance = instance;} - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); - } else { - return object.getActualInstance(); - } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() { + return instance; + } + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) { + this.instance = instance; + } + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf + * schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); + } else { + return object.getActualInstance(); } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) && - Objects.equals(this.isNullable, a.isNullable) && - Objects.equals(this.schemaType, a.schemaType); + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; } + return o.toString().replace("\n", "\n "); + } - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); + public boolean equals(Object o) { + if (this == o) { + return true; } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); + if (o == null || getClass() != o.getClass()) { + return false; } - - - -} \ No newline at end of file + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) + && Objects.equals(this.isNullable, a.isNullable) + && Objects.equals(this.schemaType, a.schemaType); + } + + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); + } + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); + } +} diff --git a/src/main/java/com/adyen/model/disputewebhooks/Amount.java b/src/main/java/com/adyen/model/disputewebhooks/Amount.java index 797fdfeae..a9259cf49 100644 --- a/src/main/java/com/adyen/model/disputewebhooks/Amount.java +++ b/src/main/java/com/adyen/model/disputewebhooks/Amount.java @@ -2,36 +2,23 @@ * Dispute webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.disputewebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Amount - */ -@JsonPropertyOrder({ - Amount.JSON_PROPERTY_CURRENCY, - Amount.JSON_PROPERTY_VALUE -}) - +/** Amount */ +@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -39,13 +26,14 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() { - } + public Amount() {} /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount currency(String currency) { @@ -54,8 +42,11 @@ public Amount currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +55,11 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,9 +68,11 @@ public void setCurrency(String currency) { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount value(Long value) { @@ -86,8 +81,11 @@ public Amount value(Long value) { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). - * @return value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * + * @return value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +94,11 @@ public Long getValue() { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +106,7 @@ public void setValue(Long value) { this.value = value; } - /** - * Return true if this Amount object is equal to o. - */ + /** Return true if this Amount object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +116,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) && - Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) + && Objects.equals(this.value, amount.value); } @Override @@ -138,8 +136,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +145,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -158,11 +155,12 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } -/** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputewebhooks/BalancePlatformNotificationResponse.java b/src/main/java/com/adyen/model/disputewebhooks/BalancePlatformNotificationResponse.java index 277b25d8b..4423e0810 100644 --- a/src/main/java/com/adyen/model/disputewebhooks/BalancePlatformNotificationResponse.java +++ b/src/main/java/com/adyen/model/disputewebhooks/BalancePlatformNotificationResponse.java @@ -2,47 +2,37 @@ * Dispute webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.disputewebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * BalancePlatformNotificationResponse - */ -@JsonPropertyOrder({ - BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE -}) - +/** BalancePlatformNotificationResponse */ +@JsonPropertyOrder({BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) public class BalancePlatformNotificationResponse { public static final String JSON_PROPERTY_NOTIFICATION_RESPONSE = "notificationResponse"; private String notificationResponse; - public BalancePlatformNotificationResponse() { - } + public BalancePlatformNotificationResponse() {} /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). - * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method chaining + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method + * chaining */ public BalancePlatformNotificationResponse notificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; @@ -50,8 +40,11 @@ public BalancePlatformNotificationResponse notificationResponse(String notificat } /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). - * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * + * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,9 +53,11 @@ public String getNotificationResponse() { } /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +65,7 @@ public void setNotificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; } - /** - * Return true if this BalancePlatformNotificationResponse object is equal to o. - */ + /** Return true if this BalancePlatformNotificationResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -81,8 +74,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - BalancePlatformNotificationResponse balancePlatformNotificationResponse = (BalancePlatformNotificationResponse) o; - return Objects.equals(this.notificationResponse, balancePlatformNotificationResponse.notificationResponse); + BalancePlatformNotificationResponse balancePlatformNotificationResponse = + (BalancePlatformNotificationResponse) o; + return Objects.equals( + this.notificationResponse, balancePlatformNotificationResponse.notificationResponse); } @Override @@ -94,14 +89,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BalancePlatformNotificationResponse {\n"); - sb.append(" notificationResponse: ").append(toIndentedString(notificationResponse)).append("\n"); + sb.append(" notificationResponse: ") + .append(toIndentedString(notificationResponse)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +106,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BalancePlatformNotificationResponse given an JSON string * * @param jsonString JSON string * @return An instance of BalancePlatformNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to BalancePlatformNotificationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BalancePlatformNotificationResponse */ - public static BalancePlatformNotificationResponse fromJson(String jsonString) throws JsonProcessingException { + public static BalancePlatformNotificationResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalancePlatformNotificationResponse.class); } -/** - * Convert an instance of BalancePlatformNotificationResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BalancePlatformNotificationResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputewebhooks/DisputeEventNotification.java b/src/main/java/com/adyen/model/disputewebhooks/DisputeEventNotification.java index 074e956ea..3ddb164b0 100644 --- a/src/main/java/com/adyen/model/disputewebhooks/DisputeEventNotification.java +++ b/src/main/java/com/adyen/model/disputewebhooks/DisputeEventNotification.java @@ -2,33 +2,27 @@ * Dispute webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.disputewebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.disputewebhooks.Amount; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * DisputeEventNotification - */ +/** DisputeEventNotification */ @JsonPropertyOrder({ DisputeEventNotification.JSON_PROPERTY_ARN, DisputeEventNotification.JSON_PROPERTY_BALANCE_PLATFORM, @@ -41,7 +35,6 @@ DisputeEventNotification.JSON_PROPERTY_TRANSACTION_ID, DisputeEventNotification.JSON_PROPERTY_TYPE }) - public class DisputeEventNotification { public static final String JSON_PROPERTY_ARN = "arn"; private String arn; @@ -70,11 +63,8 @@ public class DisputeEventNotification { public static final String JSON_PROPERTY_TRANSACTION_ID = "transactionId"; private String transactionId; - /** - * The type of dispute raised for the transaction. - */ + /** The type of dispute raised for the transaction. */ public enum TypeEnum { - FRAUD(String.valueOf("fraud")), NOTDELIVERED(String.valueOf("notDelivered")), @@ -86,7 +76,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -107,7 +97,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -115,13 +109,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public DisputeEventNotification() { - } + public DisputeEventNotification() {} /** - * The unique Acquirer Reference Number (arn) generated by the card scheme for each capture. You can use the arn to trace the transaction through its lifecycle. + * The unique Acquirer Reference Number (arn) generated by the card scheme for each capture. You + * can use the arn to trace the transaction through its lifecycle. * - * @param arn The unique Acquirer Reference Number (arn) generated by the card scheme for each capture. You can use the arn to trace the transaction through its lifecycle. + * @param arn The unique Acquirer Reference Number (arn) generated by the card scheme for each + * capture. You can use the arn to trace the transaction through its lifecycle. * @return the current {@code DisputeEventNotification} instance, allowing for method chaining */ public DisputeEventNotification arn(String arn) { @@ -130,8 +125,11 @@ public DisputeEventNotification arn(String arn) { } /** - * The unique Acquirer Reference Number (arn) generated by the card scheme for each capture. You can use the arn to trace the transaction through its lifecycle. - * @return arn The unique Acquirer Reference Number (arn) generated by the card scheme for each capture. You can use the arn to trace the transaction through its lifecycle. + * The unique Acquirer Reference Number (arn) generated by the card scheme for each capture. You + * can use the arn to trace the transaction through its lifecycle. + * + * @return arn The unique Acquirer Reference Number (arn) generated by the card scheme for each + * capture. You can use the arn to trace the transaction through its lifecycle. */ @JsonProperty(JSON_PROPERTY_ARN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,9 +138,11 @@ public String getArn() { } /** - * The unique Acquirer Reference Number (arn) generated by the card scheme for each capture. You can use the arn to trace the transaction through its lifecycle. + * The unique Acquirer Reference Number (arn) generated by the card scheme for each capture. You + * can use the arn to trace the transaction through its lifecycle. * - * @param arn The unique Acquirer Reference Number (arn) generated by the card scheme for each capture. You can use the arn to trace the transaction through its lifecycle. + * @param arn The unique Acquirer Reference Number (arn) generated by the card scheme for each + * capture. You can use the arn to trace the transaction through its lifecycle. */ @JsonProperty(JSON_PROPERTY_ARN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,6 +163,7 @@ public DisputeEventNotification balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. + * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -183,9 +184,11 @@ public void setBalancePlatform(String balancePlatform) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2020-12-18T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2020-12-18T10:15:30+01:00**. * @return the current {@code DisputeEventNotification} instance, allowing for method chaining */ public DisputeEventNotification creationDate(OffsetDateTime creationDate) { @@ -194,8 +197,11 @@ public DisputeEventNotification creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2020-12-18T10:15:30+01:00**. + * + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,9 +210,11 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2020-12-18T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -227,6 +235,7 @@ public DisputeEventNotification description(String description) { /** * Contains information about the dispute. + * * @return description Contains information about the dispute. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -249,7 +258,7 @@ public void setDescription(String description) { /** * disputedAmount * - * @param disputedAmount + * @param disputedAmount * @return the current {@code DisputeEventNotification} instance, allowing for method chaining */ public DisputeEventNotification disputedAmount(Amount disputedAmount) { @@ -259,7 +268,8 @@ public DisputeEventNotification disputedAmount(Amount disputedAmount) { /** * Get disputedAmount - * @return disputedAmount + * + * @return disputedAmount */ @JsonProperty(JSON_PROPERTY_DISPUTED_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -270,7 +280,7 @@ public Amount getDisputedAmount() { /** * disputedAmount * - * @param disputedAmount + * @param disputedAmount */ @JsonProperty(JSON_PROPERTY_DISPUTED_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -291,6 +301,7 @@ public DisputeEventNotification id(String id) { /** * The ID of the resource. + * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -323,6 +334,7 @@ public DisputeEventNotification status(String status) { /** * The current status of the dispute. + * * @return status The current status of the dispute. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -355,6 +367,7 @@ public DisputeEventNotification statusDetail(String statusDetail) { /** * Additional information about the status of the dispute, when available. + * * @return statusDetail Additional information about the status of the dispute, when available. */ @JsonProperty(JSON_PROPERTY_STATUS_DETAIL) @@ -377,7 +390,8 @@ public void setStatusDetail(String statusDetail) { /** * The unique reference of the transaction for which the dispute is requested. * - * @param transactionId The unique reference of the transaction for which the dispute is requested. + * @param transactionId The unique reference of the transaction for which the dispute is + * requested. * @return the current {@code DisputeEventNotification} instance, allowing for method chaining */ public DisputeEventNotification transactionId(String transactionId) { @@ -387,7 +401,9 @@ public DisputeEventNotification transactionId(String transactionId) { /** * The unique reference of the transaction for which the dispute is requested. - * @return transactionId The unique reference of the transaction for which the dispute is requested. + * + * @return transactionId The unique reference of the transaction for which the dispute is + * requested. */ @JsonProperty(JSON_PROPERTY_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -398,7 +414,8 @@ public String getTransactionId() { /** * The unique reference of the transaction for which the dispute is requested. * - * @param transactionId The unique reference of the transaction for which the dispute is requested. + * @param transactionId The unique reference of the transaction for which the dispute is + * requested. */ @JsonProperty(JSON_PROPERTY_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -419,6 +436,7 @@ public DisputeEventNotification type(TypeEnum type) { /** * The type of dispute raised for the transaction. + * * @return type The type of dispute raised for the transaction. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -438,9 +456,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this DisputeEventNotification object is equal to o. - */ + /** Return true if this DisputeEventNotification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -450,21 +466,31 @@ public boolean equals(Object o) { return false; } DisputeEventNotification disputeEventNotification = (DisputeEventNotification) o; - return Objects.equals(this.arn, disputeEventNotification.arn) && - Objects.equals(this.balancePlatform, disputeEventNotification.balancePlatform) && - Objects.equals(this.creationDate, disputeEventNotification.creationDate) && - Objects.equals(this.description, disputeEventNotification.description) && - Objects.equals(this.disputedAmount, disputeEventNotification.disputedAmount) && - Objects.equals(this.id, disputeEventNotification.id) && - Objects.equals(this.status, disputeEventNotification.status) && - Objects.equals(this.statusDetail, disputeEventNotification.statusDetail) && - Objects.equals(this.transactionId, disputeEventNotification.transactionId) && - Objects.equals(this.type, disputeEventNotification.type); + return Objects.equals(this.arn, disputeEventNotification.arn) + && Objects.equals(this.balancePlatform, disputeEventNotification.balancePlatform) + && Objects.equals(this.creationDate, disputeEventNotification.creationDate) + && Objects.equals(this.description, disputeEventNotification.description) + && Objects.equals(this.disputedAmount, disputeEventNotification.disputedAmount) + && Objects.equals(this.id, disputeEventNotification.id) + && Objects.equals(this.status, disputeEventNotification.status) + && Objects.equals(this.statusDetail, disputeEventNotification.statusDetail) + && Objects.equals(this.transactionId, disputeEventNotification.transactionId) + && Objects.equals(this.type, disputeEventNotification.type); } @Override public int hashCode() { - return Objects.hash(arn, balancePlatform, creationDate, description, disputedAmount, id, status, statusDetail, transactionId, type); + return Objects.hash( + arn, + balancePlatform, + creationDate, + description, + disputedAmount, + id, + status, + statusDetail, + transactionId, + type); } @Override @@ -486,8 +512,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -496,21 +521,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DisputeEventNotification given an JSON string * * @param jsonString JSON string * @return An instance of DisputeEventNotification - * @throws JsonProcessingException if the JSON string is invalid with respect to DisputeEventNotification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DisputeEventNotification */ - public static DisputeEventNotification fromJson(String jsonString) throws JsonProcessingException { + public static DisputeEventNotification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DisputeEventNotification.class); } -/** - * Convert an instance of DisputeEventNotification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DisputeEventNotification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputewebhooks/DisputeNotificationRequest.java b/src/main/java/com/adyen/model/disputewebhooks/DisputeNotificationRequest.java index c77b51b92..f3ce75be5 100644 --- a/src/main/java/com/adyen/model/disputewebhooks/DisputeNotificationRequest.java +++ b/src/main/java/com/adyen/model/disputewebhooks/DisputeNotificationRequest.java @@ -2,46 +2,36 @@ * Dispute webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.disputewebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.disputewebhooks.DisputeEventNotification; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * DisputeNotificationRequest - */ +/** DisputeNotificationRequest */ @JsonPropertyOrder({ DisputeNotificationRequest.JSON_PROPERTY_DATA, DisputeNotificationRequest.JSON_PROPERTY_TYPE }) - public class DisputeNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private DisputeEventNotification data; - /** - * Type of webhook. - */ + /** Type of webhook. */ public enum TypeEnum { - BALANCEPLATFORM_DISPUTE_CREATED(String.valueOf("balancePlatform.dispute.created")), BALANCEPLATFORM_DISPUTE_UPDATED(String.valueOf("balancePlatform.dispute.updated")); @@ -51,7 +41,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -72,7 +62,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -80,13 +74,12 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public DisputeNotificationRequest() { - } + public DisputeNotificationRequest() {} /** * data * - * @param data + * @param data * @return the current {@code DisputeNotificationRequest} instance, allowing for method chaining */ public DisputeNotificationRequest data(DisputeEventNotification data) { @@ -96,7 +89,8 @@ public DisputeNotificationRequest data(DisputeEventNotification data) { /** * Get data - * @return data + * + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,7 +101,7 @@ public DisputeEventNotification getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,6 +122,7 @@ public DisputeNotificationRequest type(TypeEnum type) { /** * Type of webhook. + * * @return type Type of webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -147,9 +142,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this DisputeNotificationRequest object is equal to o. - */ + /** Return true if this DisputeNotificationRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -159,8 +152,8 @@ public boolean equals(Object o) { return false; } DisputeNotificationRequest disputeNotificationRequest = (DisputeNotificationRequest) o; - return Objects.equals(this.data, disputeNotificationRequest.data) && - Objects.equals(this.type, disputeNotificationRequest.type); + return Objects.equals(this.data, disputeNotificationRequest.data) + && Objects.equals(this.type, disputeNotificationRequest.type); } @Override @@ -179,8 +172,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -189,21 +181,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DisputeNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of DisputeNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to DisputeNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DisputeNotificationRequest */ - public static DisputeNotificationRequest fromJson(String jsonString) throws JsonProcessingException { + public static DisputeNotificationRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DisputeNotificationRequest.class); } -/** - * Convert an instance of DisputeNotificationRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DisputeNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/disputewebhooks/DisputeWebhooksHandler.java b/src/main/java/com/adyen/model/disputewebhooks/DisputeWebhooksHandler.java index 4d0bc083d..d78ff5a4c 100644 --- a/src/main/java/com/adyen/model/disputewebhooks/DisputeWebhooksHandler.java +++ b/src/main/java/com/adyen/model/disputewebhooks/DisputeWebhooksHandler.java @@ -2,7 +2,7 @@ * Dispute webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,63 +16,62 @@ /** * Handler for processing DisputeWebhooks. - *

- * This class provides functionality to deserialize the payload of DisputeWebhooks events. + * + *

This class provides functionality to deserialize the payload of DisputeWebhooks events. */ public class DisputeWebhooksHandler { - private static final Logger LOG = Logger.getLogger(DisputeWebhooksHandler.class.getName()); + private static final Logger LOG = Logger.getLogger(DisputeWebhooksHandler.class.getName()); - private final String payload; + private final String payload; - /** - * Constructs a new handler for the given webhook payload - * - * @param payload the raw JSON payload from the webhook - */ - public DisputeWebhooksHandler(String payload) { - this.payload = payload; - } + /** + * Constructs a new handler for the given webhook payload + * + * @param payload the raw JSON payload from the webhook + */ + public DisputeWebhooksHandler(String payload) { + this.payload = payload; + } - /** - * Attempts to deserialize the webhook payload into a DisputeNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getDisputeNotificationRequest() { + /** + * Attempts to deserialize the webhook payload into a DisputeNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getDisputeNotificationRequest() { - var optionalDisputeNotificationRequest = getOptionalField(DisputeNotificationRequest.class); + var optionalDisputeNotificationRequest = getOptionalField(DisputeNotificationRequest.class); - if(optionalDisputeNotificationRequest.isPresent()) { - // verify event type - for (var value : DisputeNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalDisputeNotificationRequest.get().getType())) { - // found matching event type - return optionalDisputeNotificationRequest; - } - } + if (optionalDisputeNotificationRequest.isPresent()) { + // verify event type + for (var value : DisputeNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalDisputeNotificationRequest.get().getType())) { + // found matching event type + return optionalDisputeNotificationRequest; } - - return Optional.empty(); + } } - /** - * Deserializes the payload into the specified class type. - * - * @param clazz the class to deserialize into - * @param the type of the class - * @return an Optional containing the deserialized object, or empty if an error occurs - */ - private Optional getOptionalField(Class clazz) { - try { - T val = JSON.getMapper().readValue(payload, clazz); - return Optional.ofNullable(val); - } catch (Exception e) { - // an error has occurred during deserialization (object not found, deserialization error) - LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); - LOG.warning("Deserialization error: " + e.getMessage()); - return Optional.empty(); - } - } + return Optional.empty(); + } -} \ No newline at end of file + /** + * Deserializes the payload into the specified class type. + * + * @param clazz the class to deserialize into + * @param the type of the class + * @return an Optional containing the deserialized object, or empty if an error occurs + */ + private Optional getOptionalField(Class clazz) { + try { + T val = JSON.getMapper().readValue(payload, clazz); + return Optional.ofNullable(val); + } catch (Exception e) { + // an error has occurred during deserialization (object not found, deserialization error) + LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); + LOG.warning("Deserialization error: " + e.getMessage()); + return Optional.empty(); + } + } +} diff --git a/src/main/java/com/adyen/model/disputewebhooks/JSON.java b/src/main/java/com/adyen/model/disputewebhooks/JSON.java index f7038dfa3..b144e9daa 100644 --- a/src/main/java/com/adyen/model/disputewebhooks/JSON.java +++ b/src/main/java/com/adyen/model/disputewebhooks/JSON.java @@ -1,21 +1,18 @@ package com.adyen.model.disputewebhooks; -import com.adyen.serializer.ByteArraySerializer; import com.adyen.serializer.ByteArrayDeserializer; +import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import com.adyen.model.disputewebhooks.*; - +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -40,6 +37,7 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. + * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -56,11 +54,13 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { return mapper; } + public static ObjectMapper getMapper() { + return mapper; + } /** - * Returns the target model class that should be used to deserialize the input data. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,9 +73,7 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** - * Helper class to register the discriminator mappings. - */ + /** Helper class to register the discriminator mappings. */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -117,9 +115,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. - * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. This + * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -164,13 +162,14 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, - * so it's not possible to use the instanceof keyword. + *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so + * it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf( + Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -194,59 +193,58 @@ public static boolean isInstanceOf(Class modelClass, Object inst, Set, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); + /** A map of discriminators for all model classes. */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = + new HashMap, ClassDiscriminatorMapping>(); - /** - * A map of oneOf/anyOf descendants for each model class. - */ + /** A map of oneOf/anyOf descendants for each model class. */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator( + Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = + new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants(Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants( + Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static - { + static { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/AULocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/AULocalAccountIdentification.java index 372cb1c41..524e4c508 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/AULocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/AULocalAccountIdentification.java @@ -2,37 +2,31 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * AULocalAccountIdentification - */ +/** AULocalAccountIdentification */ @JsonPropertyOrder({ AULocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, AULocalAccountIdentification.JSON_PROPERTY_BSB_CODE, AULocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class AULocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -40,11 +34,8 @@ public class AULocalAccountIdentification { public static final String JSON_PROPERTY_BSB_CODE = "bsbCode"; private String bsbCode; - /** - * **auLocal** - */ + /** **auLocal** */ public enum TypeEnum { - AULOCAL(String.valueOf("auLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +43,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +64,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,8 +76,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AULocalAccountIdentification() { - } + public AULocalAccountIdentification() {} /** * The bank account number, without separators or whitespace. @@ -97,6 +91,7 @@ public AULocalAccountIdentification accountNumber(String accountNumber) { /** * The bank account number, without separators or whitespace. + * * @return accountNumber The bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -117,9 +112,11 @@ public void setAccountNumber(String accountNumber) { } /** - * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), + * without separators or whitespace. * - * @param bsbCode The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * @param bsbCode The 6-digit [Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. * @return the current {@code AULocalAccountIdentification} instance, allowing for method chaining */ public AULocalAccountIdentification bsbCode(String bsbCode) { @@ -128,8 +125,11 @@ public AULocalAccountIdentification bsbCode(String bsbCode) { } /** - * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. - * @return bsbCode The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), + * without separators or whitespace. + * + * @return bsbCode The 6-digit [Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_BSB_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,9 +138,11 @@ public String getBsbCode() { } /** - * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), + * without separators or whitespace. * - * @param bsbCode The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * @param bsbCode The 6-digit [Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_BSB_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,6 +163,7 @@ public AULocalAccountIdentification type(TypeEnum type) { /** * **auLocal** + * * @return type **auLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +183,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this AULocalAccountIdentification object is equal to o. - */ + /** Return true if this AULocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +193,9 @@ public boolean equals(Object o) { return false; } AULocalAccountIdentification auLocalAccountIdentification = (AULocalAccountIdentification) o; - return Objects.equals(this.accountNumber, auLocalAccountIdentification.accountNumber) && - Objects.equals(this.bsbCode, auLocalAccountIdentification.bsbCode) && - Objects.equals(this.type, auLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, auLocalAccountIdentification.accountNumber) + && Objects.equals(this.bsbCode, auLocalAccountIdentification.bsbCode) + && Objects.equals(this.type, auLocalAccountIdentification.type); } @Override @@ -214,8 +215,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +224,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AULocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of AULocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to AULocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AULocalAccountIdentification */ - public static AULocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static AULocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AULocalAccountIdentification.class); } -/** - * Convert an instance of AULocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AULocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/legalentitymanagement/AbstractOpenApiSchema.java index a00797c8d..a0cf16462 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/AbstractOpenApiSchema.java @@ -2,145 +2,141 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.Objects; -import java.util.Map; -import jakarta.ws.rs.core.GenericType; - import com.fasterxml.jackson.annotation.JsonValue; +import jakarta.ws.rs.core.GenericType; +import java.util.Map; +import java.util.Objects; -/** - * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec - */ +/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() {return instance;} - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) {this.instance = instance;} - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); - } else { - return object.getActualInstance(); - } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() { + return instance; + } + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) { + this.instance = instance; + } + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf + * schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); + } else { + return object.getActualInstance(); } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) && - Objects.equals(this.isNullable, a.isNullable) && - Objects.equals(this.schemaType, a.schemaType); + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; } + return o.toString().replace("\n", "\n "); + } - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); + public boolean equals(Object o) { + if (this == o) { + return true; } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); + if (o == null || getClass() != o.getClass()) { + return false; } - - - -} \ No newline at end of file + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) + && Objects.equals(this.isNullable, a.isNullable) + && Objects.equals(this.schemaType, a.schemaType); + } + + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); + } + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); + } +} diff --git a/src/main/java/com/adyen/model/legalentitymanagement/AcceptTermsOfServiceRequest.java b/src/main/java/com/adyen/model/legalentitymanagement/AcceptTermsOfServiceRequest.java index 9ad55920e..8d9a85466 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/AcceptTermsOfServiceRequest.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/AcceptTermsOfServiceRequest.java @@ -2,36 +2,26 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AcceptTermsOfServiceRequest - */ +/** AcceptTermsOfServiceRequest */ @JsonPropertyOrder({ AcceptTermsOfServiceRequest.JSON_PROPERTY_ACCEPTED_BY, AcceptTermsOfServiceRequest.JSON_PROPERTY_IP_ADDRESS }) - public class AcceptTermsOfServiceRequest { public static final String JSON_PROPERTY_ACCEPTED_BY = "acceptedBy"; private String acceptedBy; @@ -39,13 +29,19 @@ public class AcceptTermsOfServiceRequest { public static final String JSON_PROPERTY_IP_ADDRESS = "ipAddress"; private String ipAddress; - public AcceptTermsOfServiceRequest() { - } + public AcceptTermsOfServiceRequest() {} /** - * The legal entity ID of the user accepting the Terms of Service. For organizations, this must be the individual legal entity ID of an authorized signatory for the organization. For sole proprietorships, this must be the individual legal entity ID of the owner. For individuals, this must be the individual legal entity id of either the individual, parent, or guardian. + * The legal entity ID of the user accepting the Terms of Service. For organizations, this must be + * the individual legal entity ID of an authorized signatory for the organization. For sole + * proprietorships, this must be the individual legal entity ID of the owner. For individuals, + * this must be the individual legal entity id of either the individual, parent, or guardian. * - * @param acceptedBy The legal entity ID of the user accepting the Terms of Service. For organizations, this must be the individual legal entity ID of an authorized signatory for the organization. For sole proprietorships, this must be the individual legal entity ID of the owner. For individuals, this must be the individual legal entity id of either the individual, parent, or guardian. + * @param acceptedBy The legal entity ID of the user accepting the Terms of Service. For + * organizations, this must be the individual legal entity ID of an authorized signatory for + * the organization. For sole proprietorships, this must be the individual legal entity ID of + * the owner. For individuals, this must be the individual legal entity id of either the + * individual, parent, or guardian. * @return the current {@code AcceptTermsOfServiceRequest} instance, allowing for method chaining */ public AcceptTermsOfServiceRequest acceptedBy(String acceptedBy) { @@ -54,8 +50,16 @@ public AcceptTermsOfServiceRequest acceptedBy(String acceptedBy) { } /** - * The legal entity ID of the user accepting the Terms of Service. For organizations, this must be the individual legal entity ID of an authorized signatory for the organization. For sole proprietorships, this must be the individual legal entity ID of the owner. For individuals, this must be the individual legal entity id of either the individual, parent, or guardian. - * @return acceptedBy The legal entity ID of the user accepting the Terms of Service. For organizations, this must be the individual legal entity ID of an authorized signatory for the organization. For sole proprietorships, this must be the individual legal entity ID of the owner. For individuals, this must be the individual legal entity id of either the individual, parent, or guardian. + * The legal entity ID of the user accepting the Terms of Service. For organizations, this must be + * the individual legal entity ID of an authorized signatory for the organization. For sole + * proprietorships, this must be the individual legal entity ID of the owner. For individuals, + * this must be the individual legal entity id of either the individual, parent, or guardian. + * + * @return acceptedBy The legal entity ID of the user accepting the Terms of Service. For + * organizations, this must be the individual legal entity ID of an authorized signatory for + * the organization. For sole proprietorships, this must be the individual legal entity ID of + * the owner. For individuals, this must be the individual legal entity id of either the + * individual, parent, or guardian. */ @JsonProperty(JSON_PROPERTY_ACCEPTED_BY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +68,16 @@ public String getAcceptedBy() { } /** - * The legal entity ID of the user accepting the Terms of Service. For organizations, this must be the individual legal entity ID of an authorized signatory for the organization. For sole proprietorships, this must be the individual legal entity ID of the owner. For individuals, this must be the individual legal entity id of either the individual, parent, or guardian. + * The legal entity ID of the user accepting the Terms of Service. For organizations, this must be + * the individual legal entity ID of an authorized signatory for the organization. For sole + * proprietorships, this must be the individual legal entity ID of the owner. For individuals, + * this must be the individual legal entity id of either the individual, parent, or guardian. * - * @param acceptedBy The legal entity ID of the user accepting the Terms of Service. For organizations, this must be the individual legal entity ID of an authorized signatory for the organization. For sole proprietorships, this must be the individual legal entity ID of the owner. For individuals, this must be the individual legal entity id of either the individual, parent, or guardian. + * @param acceptedBy The legal entity ID of the user accepting the Terms of Service. For + * organizations, this must be the individual legal entity ID of an authorized signatory for + * the organization. For sole proprietorships, this must be the individual legal entity ID of + * the owner. For individuals, this must be the individual legal entity id of either the + * individual, parent, or guardian. */ @JsonProperty(JSON_PROPERTY_ACCEPTED_BY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,6 +98,7 @@ public AcceptTermsOfServiceRequest ipAddress(String ipAddress) { /** * The IP address of the user accepting the Terms of Service. + * * @return ipAddress The IP address of the user accepting the Terms of Service. */ @JsonProperty(JSON_PROPERTY_IP_ADDRESS) @@ -106,9 +118,7 @@ public void setIpAddress(String ipAddress) { this.ipAddress = ipAddress; } - /** - * Return true if this AcceptTermsOfServiceRequest object is equal to o. - */ + /** Return true if this AcceptTermsOfServiceRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +128,8 @@ public boolean equals(Object o) { return false; } AcceptTermsOfServiceRequest acceptTermsOfServiceRequest = (AcceptTermsOfServiceRequest) o; - return Objects.equals(this.acceptedBy, acceptTermsOfServiceRequest.acceptedBy) && - Objects.equals(this.ipAddress, acceptTermsOfServiceRequest.ipAddress); + return Objects.equals(this.acceptedBy, acceptTermsOfServiceRequest.acceptedBy) + && Objects.equals(this.ipAddress, acceptTermsOfServiceRequest.ipAddress); } @Override @@ -138,8 +148,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +157,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AcceptTermsOfServiceRequest given an JSON string * * @param jsonString JSON string * @return An instance of AcceptTermsOfServiceRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to AcceptTermsOfServiceRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AcceptTermsOfServiceRequest */ - public static AcceptTermsOfServiceRequest fromJson(String jsonString) throws JsonProcessingException { + public static AcceptTermsOfServiceRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AcceptTermsOfServiceRequest.class); } -/** - * Convert an instance of AcceptTermsOfServiceRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AcceptTermsOfServiceRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/AcceptTermsOfServiceResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/AcceptTermsOfServiceResponse.java index 499651960..005f1e000 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/AcceptTermsOfServiceResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/AcceptTermsOfServiceResponse.java @@ -2,31 +2,26 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * AcceptTermsOfServiceResponse - */ +/** AcceptTermsOfServiceResponse */ @JsonPropertyOrder({ AcceptTermsOfServiceResponse.JSON_PROPERTY_ACCEPTED_BY, AcceptTermsOfServiceResponse.JSON_PROPERTY_ID, @@ -35,7 +30,6 @@ AcceptTermsOfServiceResponse.JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_ID, AcceptTermsOfServiceResponse.JSON_PROPERTY_TYPE }) - public class AcceptTermsOfServiceResponse { public static final String JSON_PROPERTY_ACCEPTED_BY = "acceptedBy"; private String acceptedBy; @@ -49,14 +43,16 @@ public class AcceptTermsOfServiceResponse { public static final String JSON_PROPERTY_LANGUAGE = "language"; private String language; - public static final String JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_ID = "termsOfServiceDocumentId"; + public static final String JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_ID = + "termsOfServiceDocumentId"; private String termsOfServiceDocumentId; /** - * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** + * * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * + * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** */ public enum TypeEnum { - ADYENACCOUNT(String.valueOf("adyenAccount")), ADYENCAPITAL(String.valueOf("adyenCapital")), @@ -82,7 +78,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -103,7 +99,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -111,8 +111,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AcceptTermsOfServiceResponse() { - } + public AcceptTermsOfServiceResponse() {} /** * The unique identifier of the user that accepted the Terms of Service. @@ -127,6 +126,7 @@ public AcceptTermsOfServiceResponse acceptedBy(String acceptedBy) { /** * The unique identifier of the user that accepted the Terms of Service. + * * @return acceptedBy The unique identifier of the user that accepted the Terms of Service. */ @JsonProperty(JSON_PROPERTY_ACCEPTED_BY) @@ -159,6 +159,7 @@ public AcceptTermsOfServiceResponse id(String id) { /** * The unique identifier of the Terms of Service acceptance. + * * @return id The unique identifier of the Terms of Service acceptance. */ @JsonProperty(JSON_PROPERTY_ID) @@ -191,6 +192,7 @@ public AcceptTermsOfServiceResponse ipAddress(String ipAddress) { /** * The IP address of the user that accepted the Terms of Service. + * * @return ipAddress The IP address of the user that accepted the Terms of Service. */ @JsonProperty(JSON_PROPERTY_IP_ADDRESS) @@ -211,9 +213,17 @@ public void setIpAddress(String ipAddress) { } /** - * The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English or **fr** for French. Note that French is only available for some integration types in certain countries/regions. Reach out to your Adyen contact for more information. + * The language used for the Terms of Service document, specified by the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: + * **en** for English or **fr** for French. Note that French is only available for some + * integration types in certain countries/regions. Reach out to your Adyen contact for more + * information. * - * @param language The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English or **fr** for French. Note that French is only available for some integration types in certain countries/regions. Reach out to your Adyen contact for more information. + * @param language The language used for the Terms of Service document, specified by the + * two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language + * code. Possible value: **en** for English or **fr** for French. Note that French is only + * available for some integration types in certain countries/regions. Reach out to your Adyen + * contact for more information. * @return the current {@code AcceptTermsOfServiceResponse} instance, allowing for method chaining */ public AcceptTermsOfServiceResponse language(String language) { @@ -222,8 +232,17 @@ public AcceptTermsOfServiceResponse language(String language) { } /** - * The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English or **fr** for French. Note that French is only available for some integration types in certain countries/regions. Reach out to your Adyen contact for more information. - * @return language The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English or **fr** for French. Note that French is only available for some integration types in certain countries/regions. Reach out to your Adyen contact for more information. + * The language used for the Terms of Service document, specified by the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: + * **en** for English or **fr** for French. Note that French is only available for some + * integration types in certain countries/regions. Reach out to your Adyen contact for more + * information. + * + * @return language The language used for the Terms of Service document, specified by the + * two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language + * code. Possible value: **en** for English or **fr** for French. Note that French is only + * available for some integration types in certain countries/regions. Reach out to your Adyen + * contact for more information. */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,9 +251,17 @@ public String getLanguage() { } /** - * The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English or **fr** for French. Note that French is only available for some integration types in certain countries/regions. Reach out to your Adyen contact for more information. + * The language used for the Terms of Service document, specified by the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: + * **en** for English or **fr** for French. Note that French is only available for some + * integration types in certain countries/regions. Reach out to your Adyen contact for more + * information. * - * @param language The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English or **fr** for French. Note that French is only available for some integration types in certain countries/regions. Reach out to your Adyen contact for more information. + * @param language The language used for the Terms of Service document, specified by the + * two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language + * code. Possible value: **en** for English or **fr** for French. Note that French is only + * available for some integration types in certain countries/regions. Reach out to your Adyen + * contact for more information. */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -255,6 +282,7 @@ public AcceptTermsOfServiceResponse termsOfServiceDocumentId(String termsOfServi /** * The unique identifier of the Terms of Service document. + * * @return termsOfServiceDocumentId The unique identifier of the Terms of Service document. */ @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_ID) @@ -275,9 +303,13 @@ public void setTermsOfServiceDocumentId(String termsOfServiceDocumentId) { } /** - * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** + * * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * + * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** * - * @param type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * @param type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * + * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * + * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** * @return the current {@code AcceptTermsOfServiceResponse} instance, allowing for method chaining */ public AcceptTermsOfServiceResponse type(TypeEnum type) { @@ -286,8 +318,13 @@ public AcceptTermsOfServiceResponse type(TypeEnum type) { } /** - * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** - * @return type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** + * * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * + * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * + * @return type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * + * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * + * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -296,9 +333,13 @@ public TypeEnum getType() { } /** - * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** + * * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * + * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** * - * @param type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * @param type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * + * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * + * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -306,9 +347,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this AcceptTermsOfServiceResponse object is equal to o. - */ + /** Return true if this AcceptTermsOfServiceResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -318,12 +357,13 @@ public boolean equals(Object o) { return false; } AcceptTermsOfServiceResponse acceptTermsOfServiceResponse = (AcceptTermsOfServiceResponse) o; - return Objects.equals(this.acceptedBy, acceptTermsOfServiceResponse.acceptedBy) && - Objects.equals(this.id, acceptTermsOfServiceResponse.id) && - Objects.equals(this.ipAddress, acceptTermsOfServiceResponse.ipAddress) && - Objects.equals(this.language, acceptTermsOfServiceResponse.language) && - Objects.equals(this.termsOfServiceDocumentId, acceptTermsOfServiceResponse.termsOfServiceDocumentId) && - Objects.equals(this.type, acceptTermsOfServiceResponse.type); + return Objects.equals(this.acceptedBy, acceptTermsOfServiceResponse.acceptedBy) + && Objects.equals(this.id, acceptTermsOfServiceResponse.id) + && Objects.equals(this.ipAddress, acceptTermsOfServiceResponse.ipAddress) + && Objects.equals(this.language, acceptTermsOfServiceResponse.language) + && Objects.equals( + this.termsOfServiceDocumentId, acceptTermsOfServiceResponse.termsOfServiceDocumentId) + && Objects.equals(this.type, acceptTermsOfServiceResponse.type); } @Override @@ -339,15 +379,16 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" ipAddress: ").append(toIndentedString(ipAddress)).append("\n"); sb.append(" language: ").append(toIndentedString(language)).append("\n"); - sb.append(" termsOfServiceDocumentId: ").append(toIndentedString(termsOfServiceDocumentId)).append("\n"); + sb.append(" termsOfServiceDocumentId: ") + .append(toIndentedString(termsOfServiceDocumentId)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -356,21 +397,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AcceptTermsOfServiceResponse given an JSON string * * @param jsonString JSON string * @return An instance of AcceptTermsOfServiceResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to AcceptTermsOfServiceResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AcceptTermsOfServiceResponse */ - public static AcceptTermsOfServiceResponse fromJson(String jsonString) throws JsonProcessingException { + public static AcceptTermsOfServiceResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AcceptTermsOfServiceResponse.class); } -/** - * Convert an instance of AcceptTermsOfServiceResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AcceptTermsOfServiceResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/AdditionalBankIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/AdditionalBankIdentification.java index 43907795c..122b3895d 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/AdditionalBankIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/AdditionalBankIdentification.java @@ -2,45 +2,47 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * AdditionalBankIdentification - */ +/** AdditionalBankIdentification */ @JsonPropertyOrder({ AdditionalBankIdentification.JSON_PROPERTY_CODE, AdditionalBankIdentification.JSON_PROPERTY_TYPE }) - public class AdditionalBankIdentification { public static final String JSON_PROPERTY_CODE = "code"; private String code; /** - * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * The type of additional bank identification, depending on the country. Possible values: * + * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. */ public enum TypeEnum { - AUBSBCODE(String.valueOf("auBsbCode")), CAROUTINGNUMBER(String.valueOf("caRoutingNumber")), @@ -54,7 +56,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -75,7 +77,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -83,8 +89,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AdditionalBankIdentification() { - } + public AdditionalBankIdentification() {} /** * The value of the additional bank identification. @@ -99,6 +104,7 @@ public AdditionalBankIdentification code(String code) { /** * The value of the additional bank identification. + * * @return code The value of the additional bank identification. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -119,9 +125,27 @@ public void setCode(String code) { } /** - * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * The type of additional bank identification, depending on the country. Possible values: * + * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. * - * @param type The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * @param type The type of additional bank identification, depending on the country. Possible + * values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. * @return the current {@code AdditionalBankIdentification} instance, allowing for method chaining */ public AdditionalBankIdentification type(TypeEnum type) { @@ -130,8 +154,27 @@ public AdditionalBankIdentification type(TypeEnum type) { } /** - * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. - * @return type The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * The type of additional bank identification, depending on the country. Possible values: * + * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. + * + * @return type The type of additional bank identification, depending on the country. Possible + * values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,9 +183,27 @@ public TypeEnum getType() { } /** - * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * The type of additional bank identification, depending on the country. Possible values: * + * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. * - * @param type The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * @param type The type of additional bank identification, depending on the country. Possible + * values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,9 +211,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this AdditionalBankIdentification object is equal to o. - */ + /** Return true if this AdditionalBankIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -162,8 +221,8 @@ public boolean equals(Object o) { return false; } AdditionalBankIdentification additionalBankIdentification = (AdditionalBankIdentification) o; - return Objects.equals(this.code, additionalBankIdentification.code) && - Objects.equals(this.type, additionalBankIdentification.type); + return Objects.equals(this.code, additionalBankIdentification.code) + && Objects.equals(this.type, additionalBankIdentification.type); } @Override @@ -182,8 +241,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -192,21 +250,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalBankIdentification given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalBankIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalBankIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalBankIdentification */ - public static AdditionalBankIdentification fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalBankIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalBankIdentification.class); } -/** - * Convert an instance of AdditionalBankIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalBankIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/Address.java b/src/main/java/com/adyen/model/legalentitymanagement/Address.java index 1051ac5e2..bf74541dd 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/Address.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/Address.java @@ -2,31 +2,22 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Address - */ +/** Address */ @JsonPropertyOrder({ Address.JSON_PROPERTY_CITY, Address.JSON_PROPERTY_COUNTRY, @@ -35,7 +26,6 @@ Address.JSON_PROPERTY_STREET, Address.JSON_PROPERTY_STREET2 }) - public class Address { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -55,13 +45,14 @@ public class Address { public static final String JSON_PROPERTY_STREET2 = "street2"; private String street2; - public Address() { - } + public Address() {} /** - * The name of the city. Required if `stateOrProvince` is provided. If you specify the city, you must also send `postalCode` and `street`. + * The name of the city. Required if `stateOrProvince` is provided. If you specify the + * city, you must also send `postalCode` and `street`. * - * @param city The name of the city. Required if `stateOrProvince` is provided. If you specify the city, you must also send `postalCode` and `street`. + * @param city The name of the city. Required if `stateOrProvince` is provided. If you + * specify the city, you must also send `postalCode` and `street`. * @return the current {@code Address} instance, allowing for method chaining */ public Address city(String city) { @@ -70,8 +61,11 @@ public Address city(String city) { } /** - * The name of the city. Required if `stateOrProvince` is provided. If you specify the city, you must also send `postalCode` and `street`. - * @return city The name of the city. Required if `stateOrProvince` is provided. If you specify the city, you must also send `postalCode` and `street`. + * The name of the city. Required if `stateOrProvince` is provided. If you specify the + * city, you must also send `postalCode` and `street`. + * + * @return city The name of the city. Required if `stateOrProvince` is provided. If you + * specify the city, you must also send `postalCode` and `street`. */ @JsonProperty(JSON_PROPERTY_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,9 +74,11 @@ public String getCity() { } /** - * The name of the city. Required if `stateOrProvince` is provided. If you specify the city, you must also send `postalCode` and `street`. + * The name of the city. Required if `stateOrProvince` is provided. If you specify the + * city, you must also send `postalCode` and `street`. * - * @param city The name of the city. Required if `stateOrProvince` is provided. If you specify the city, you must also send `postalCode` and `street`. + * @param city The name of the city. Required if `stateOrProvince` is provided. If you + * specify the city, you must also send `postalCode` and `street`. */ @JsonProperty(JSON_PROPERTY_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -91,9 +87,11 @@ public void setCity(String city) { } /** - * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. + * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country + * code. * - * @param country The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. + * @param country The two-letter [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. * @return the current {@code Address} instance, allowing for method chaining */ public Address country(String country) { @@ -102,8 +100,11 @@ public Address country(String country) { } /** - * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. - * @return country The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. + * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country + * code. + * + * @return country The two-letter [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,9 +113,11 @@ public String getCountry() { } /** - * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. + * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country + * code. * - * @param country The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. + * @param country The two-letter [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,9 +126,13 @@ public void setCountry(String country) { } /** - * The postal code. Required if `stateOrProvince` and/or `city` is provided. When using alphanumeric postal codes, all letters must be uppercase. For example, 1234 AB or SW1A 1AA. + * The postal code. Required if `stateOrProvince` and/or `city` is provided. + * When using alphanumeric postal codes, all letters must be uppercase. For example, 1234 AB or + * SW1A 1AA. * - * @param postalCode The postal code. Required if `stateOrProvince` and/or `city` is provided. When using alphanumeric postal codes, all letters must be uppercase. For example, 1234 AB or SW1A 1AA. + * @param postalCode The postal code. Required if `stateOrProvince` and/or + * `city` is provided. When using alphanumeric postal codes, all letters must be + * uppercase. For example, 1234 AB or SW1A 1AA. * @return the current {@code Address} instance, allowing for method chaining */ public Address postalCode(String postalCode) { @@ -134,8 +141,13 @@ public Address postalCode(String postalCode) { } /** - * The postal code. Required if `stateOrProvince` and/or `city` is provided. When using alphanumeric postal codes, all letters must be uppercase. For example, 1234 AB or SW1A 1AA. - * @return postalCode The postal code. Required if `stateOrProvince` and/or `city` is provided. When using alphanumeric postal codes, all letters must be uppercase. For example, 1234 AB or SW1A 1AA. + * The postal code. Required if `stateOrProvince` and/or `city` is provided. + * When using alphanumeric postal codes, all letters must be uppercase. For example, 1234 AB or + * SW1A 1AA. + * + * @return postalCode The postal code. Required if `stateOrProvince` and/or + * `city` is provided. When using alphanumeric postal codes, all letters must be + * uppercase. For example, 1234 AB or SW1A 1AA. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,9 +156,13 @@ public String getPostalCode() { } /** - * The postal code. Required if `stateOrProvince` and/or `city` is provided. When using alphanumeric postal codes, all letters must be uppercase. For example, 1234 AB or SW1A 1AA. + * The postal code. Required if `stateOrProvince` and/or `city` is provided. + * When using alphanumeric postal codes, all letters must be uppercase. For example, 1234 AB or + * SW1A 1AA. * - * @param postalCode The postal code. Required if `stateOrProvince` and/or `city` is provided. When using alphanumeric postal codes, all letters must be uppercase. For example, 1234 AB or SW1A 1AA. + * @param postalCode The postal code. Required if `stateOrProvince` and/or + * `city` is provided. When using alphanumeric postal codes, all letters must be + * uppercase. For example, 1234 AB or SW1A 1AA. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -155,9 +171,13 @@ public void setPostalCode(String postalCode) { } /** - * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. Required for Australia and New Zealand. If you specify the state or province, you must also send `city`, `postalCode`, and `street`. + * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. Required for + * Australia and New Zealand. If you specify the state or province, you must also send + * `city`, `postalCode`, and `street`. * - * @param stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. Required for Australia and New Zealand. If you specify the state or province, you must also send `city`, `postalCode`, and `street`. + * @param stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in + * the US. Required for Australia and New Zealand. If you specify the state or province, you + * must also send `city`, `postalCode`, and `street`. * @return the current {@code Address} instance, allowing for method chaining */ public Address stateOrProvince(String stateOrProvince) { @@ -166,8 +186,13 @@ public Address stateOrProvince(String stateOrProvince) { } /** - * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. Required for Australia and New Zealand. If you specify the state or province, you must also send `city`, `postalCode`, and `street`. - * @return stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. Required for Australia and New Zealand. If you specify the state or province, you must also send `city`, `postalCode`, and `street`. + * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. Required for + * Australia and New Zealand. If you specify the state or province, you must also send + * `city`, `postalCode`, and `street`. + * + * @return stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** + * in the US. Required for Australia and New Zealand. If you specify the state or province, + * you must also send `city`, `postalCode`, and `street`. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,9 +201,13 @@ public String getStateOrProvince() { } /** - * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. Required for Australia and New Zealand. If you specify the state or province, you must also send `city`, `postalCode`, and `street`. + * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. Required for + * Australia and New Zealand. If you specify the state or province, you must also send + * `city`, `postalCode`, and `street`. * - * @param stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. Required for Australia and New Zealand. If you specify the state or province, you must also send `city`, `postalCode`, and `street`. + * @param stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in + * the US. Required for Australia and New Zealand. If you specify the state or province, you + * must also send `city`, `postalCode`, and `street`. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,9 +216,11 @@ public void setStateOrProvince(String stateOrProvince) { } /** - * The name of the street, and the house or building number. Required if `stateOrProvince` and/or `city` is provided. + * The name of the street, and the house or building number. Required if + * `stateOrProvince` and/or `city` is provided. * - * @param street The name of the street, and the house or building number. Required if `stateOrProvince` and/or `city` is provided. + * @param street The name of the street, and the house or building number. Required if + * `stateOrProvince` and/or `city` is provided. * @return the current {@code Address} instance, allowing for method chaining */ public Address street(String street) { @@ -198,8 +229,11 @@ public Address street(String street) { } /** - * The name of the street, and the house or building number. Required if `stateOrProvince` and/or `city` is provided. - * @return street The name of the street, and the house or building number. Required if `stateOrProvince` and/or `city` is provided. + * The name of the street, and the house or building number. Required if + * `stateOrProvince` and/or `city` is provided. + * + * @return street The name of the street, and the house or building number. Required if + * `stateOrProvince` and/or `city` is provided. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,9 +242,11 @@ public String getStreet() { } /** - * The name of the street, and the house or building number. Required if `stateOrProvince` and/or `city` is provided. + * The name of the street, and the house or building number. Required if + * `stateOrProvince` and/or `city` is provided. * - * @param street The name of the street, and the house or building number. Required if `stateOrProvince` and/or `city` is provided. + * @param street The name of the street, and the house or building number. Required if + * `stateOrProvince` and/or `city` is provided. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -231,6 +267,7 @@ public Address street2(String street2) { /** * The apartment, unit, or suite number. + * * @return street2 The apartment, unit, or suite number. */ @JsonProperty(JSON_PROPERTY_STREET2) @@ -250,9 +287,7 @@ public void setStreet2(String street2) { this.street2 = street2; } - /** - * Return true if this Address object is equal to o. - */ + /** Return true if this Address object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -262,12 +297,12 @@ public boolean equals(Object o) { return false; } Address address = (Address) o; - return Objects.equals(this.city, address.city) && - Objects.equals(this.country, address.country) && - Objects.equals(this.postalCode, address.postalCode) && - Objects.equals(this.stateOrProvince, address.stateOrProvince) && - Objects.equals(this.street, address.street) && - Objects.equals(this.street2, address.street2); + return Objects.equals(this.city, address.city) + && Objects.equals(this.country, address.country) + && Objects.equals(this.postalCode, address.postalCode) + && Objects.equals(this.stateOrProvince, address.stateOrProvince) + && Objects.equals(this.street, address.street) + && Objects.equals(this.street2, address.street2); } @Override @@ -290,8 +325,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -300,7 +334,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Address given an JSON string * * @param jsonString JSON string @@ -310,11 +344,12 @@ private String toIndentedString(Object o) { public static Address fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Address.class); } -/** - * Convert an instance of Address to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Address to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/Amount.java b/src/main/java/com/adyen/model/legalentitymanagement/Amount.java index 95c94efbc..04c852298 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/Amount.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/Amount.java @@ -2,36 +2,23 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Amount - */ -@JsonPropertyOrder({ - Amount.JSON_PROPERTY_CURRENCY, - Amount.JSON_PROPERTY_VALUE -}) - +/** Amount */ +@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -39,8 +26,7 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() { - } + public Amount() {} /** * The type of currency. Must be EUR (or EUR equivalent) @@ -55,6 +41,7 @@ public Amount currency(String currency) { /** * The type of currency. Must be EUR (or EUR equivalent) + * * @return currency The type of currency. Must be EUR (or EUR equivalent) */ @JsonProperty(JSON_PROPERTY_CURRENCY) @@ -87,6 +74,7 @@ public Amount value(Long value) { /** * Total value of amount. Must be >= 0 + * * @return value Total value of amount. Must be >= 0 */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -106,9 +94,7 @@ public void setValue(Long value) { this.value = value; } - /** - * Return true if this Amount object is equal to o. - */ + /** Return true if this Amount object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +104,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) && - Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) + && Objects.equals(this.value, amount.value); } @Override @@ -138,8 +124,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +133,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -158,11 +143,12 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } -/** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/Attachment.java b/src/main/java/com/adyen/model/legalentitymanagement/Attachment.java index 5f9a06b1e..b35c4e6b7 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/Attachment.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/Attachment.java @@ -2,31 +2,23 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; - -/** - * Attachment - */ +/** Attachment */ @JsonPropertyOrder({ Attachment.JSON_PROPERTY_CONTENT, Attachment.JSON_PROPERTY_CONTENT_TYPE, @@ -34,7 +26,6 @@ Attachment.JSON_PROPERTY_PAGE_NAME, Attachment.JSON_PROPERTY_PAGE_TYPE }) - public class Attachment { public static final String JSON_PROPERTY_CONTENT = "content"; private byte[] content; @@ -53,8 +44,7 @@ public class Attachment { public static final String JSON_PROPERTY_PAGE_TYPE = "pageType"; private String pageType; - public Attachment() { - } + public Attachment() {} /** * The document in Base64-encoded string format. @@ -69,6 +59,7 @@ public Attachment content(byte[] content) { /** * The document in Base64-encoded string format. + * * @return content The document in Base64-encoded string format. */ @JsonProperty(JSON_PROPERTY_CONTENT) @@ -89,11 +80,12 @@ public void setContent(byte[] content) { } /** - * The file format. Possible values: **application/pdf**, **image/jpg**, **image/jpeg**, **image/png**. + * The file format. Possible values: **application/pdf**, **image/jpg**, **image/jpeg**, + * **image/png**. * - * @param contentType The file format. Possible values: **application/pdf**, **image/jpg**, **image/jpeg**, **image/png**. + * @param contentType The file format. Possible values: **application/pdf**, **image/jpg**, + * **image/jpeg**, **image/png**. * @return the current {@code Attachment} instance, allowing for method chaining - * * @deprecated since Legal Entity Management API v1 */ @Deprecated // deprecated since Legal Entity Management API v1 @@ -103,8 +95,11 @@ public Attachment contentType(String contentType) { } /** - * The file format. Possible values: **application/pdf**, **image/jpg**, **image/jpeg**, **image/png**. - * @return contentType The file format. Possible values: **application/pdf**, **image/jpg**, **image/jpeg**, **image/png**. + * The file format. Possible values: **application/pdf**, **image/jpg**, **image/jpeg**, + * **image/png**. + * + * @return contentType The file format. Possible values: **application/pdf**, **image/jpg**, + * **image/jpeg**, **image/png**. * @deprecated // deprecated since Legal Entity Management API v1 */ @Deprecated // deprecated since Legal Entity Management API v1 @@ -115,10 +110,11 @@ public String getContentType() { } /** - * The file format. Possible values: **application/pdf**, **image/jpg**, **image/jpeg**, **image/png**. - * - * @param contentType The file format. Possible values: **application/pdf**, **image/jpg**, **image/jpeg**, **image/png**. + * The file format. Possible values: **application/pdf**, **image/jpg**, **image/jpeg**, + * **image/png**. * + * @param contentType The file format. Possible values: **application/pdf**, **image/jpg**, + * **image/jpeg**, **image/png**. * @deprecated since Legal Entity Management API v1 */ @Deprecated // deprecated since Legal Entity Management API v1 @@ -133,7 +129,6 @@ public void setContentType(String contentType) { * * @param filename The name of the file including the file extension. * @return the current {@code Attachment} instance, allowing for method chaining - * * @deprecated since Legal Entity Management API v1 */ @Deprecated // deprecated since Legal Entity Management API v1 @@ -144,6 +139,7 @@ public Attachment filename(String filename) { /** * The name of the file including the file extension. + * * @return filename The name of the file including the file extension. * @deprecated // deprecated since Legal Entity Management API v1 */ @@ -158,7 +154,6 @@ public String getFilename() { * The name of the file including the file extension. * * @param filename The name of the file including the file extension. - * * @deprecated since Legal Entity Management API v1 */ @Deprecated // deprecated since Legal Entity Management API v1 @@ -181,6 +176,7 @@ public Attachment pageName(String pageName) { /** * The name of the file including the file extension. + * * @return pageName The name of the file including the file extension. */ @JsonProperty(JSON_PROPERTY_PAGE_NAME) @@ -201,9 +197,14 @@ public void setPageName(String pageName) { } /** - * Specifies which side of the ID card is uploaded. * If the `type` is **driversLicense** or **identityCard**, you must set this to **front** or **back**. * For any other types, when this is omitted, we infer the page number based on the order of attachments. + * Specifies which side of the ID card is uploaded. * If the `type` is + * **driversLicense** or **identityCard**, you must set this to **front** or **back**. * For any + * other types, when this is omitted, we infer the page number based on the order of attachments. * - * @param pageType Specifies which side of the ID card is uploaded. * If the `type` is **driversLicense** or **identityCard**, you must set this to **front** or **back**. * For any other types, when this is omitted, we infer the page number based on the order of attachments. + * @param pageType Specifies which side of the ID card is uploaded. * If the `type` is + * **driversLicense** or **identityCard**, you must set this to **front** or **back**. * For + * any other types, when this is omitted, we infer the page number based on the order of + * attachments. * @return the current {@code Attachment} instance, allowing for method chaining */ public Attachment pageType(String pageType) { @@ -212,8 +213,14 @@ public Attachment pageType(String pageType) { } /** - * Specifies which side of the ID card is uploaded. * If the `type` is **driversLicense** or **identityCard**, you must set this to **front** or **back**. * For any other types, when this is omitted, we infer the page number based on the order of attachments. - * @return pageType Specifies which side of the ID card is uploaded. * If the `type` is **driversLicense** or **identityCard**, you must set this to **front** or **back**. * For any other types, when this is omitted, we infer the page number based on the order of attachments. + * Specifies which side of the ID card is uploaded. * If the `type` is + * **driversLicense** or **identityCard**, you must set this to **front** or **back**. * For any + * other types, when this is omitted, we infer the page number based on the order of attachments. + * + * @return pageType Specifies which side of the ID card is uploaded. * If the `type` is + * **driversLicense** or **identityCard**, you must set this to **front** or **back**. * For + * any other types, when this is omitted, we infer the page number based on the order of + * attachments. */ @JsonProperty(JSON_PROPERTY_PAGE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -222,9 +229,14 @@ public String getPageType() { } /** - * Specifies which side of the ID card is uploaded. * If the `type` is **driversLicense** or **identityCard**, you must set this to **front** or **back**. * For any other types, when this is omitted, we infer the page number based on the order of attachments. + * Specifies which side of the ID card is uploaded. * If the `type` is + * **driversLicense** or **identityCard**, you must set this to **front** or **back**. * For any + * other types, when this is omitted, we infer the page number based on the order of attachments. * - * @param pageType Specifies which side of the ID card is uploaded. * If the `type` is **driversLicense** or **identityCard**, you must set this to **front** or **back**. * For any other types, when this is omitted, we infer the page number based on the order of attachments. + * @param pageType Specifies which side of the ID card is uploaded. * If the `type` is + * **driversLicense** or **identityCard**, you must set this to **front** or **back**. * For + * any other types, when this is omitted, we infer the page number based on the order of + * attachments. */ @JsonProperty(JSON_PROPERTY_PAGE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,9 +244,7 @@ public void setPageType(String pageType) { this.pageType = pageType; } - /** - * Return true if this Attachment object is equal to o. - */ + /** Return true if this Attachment object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -244,11 +254,11 @@ public boolean equals(Object o) { return false; } Attachment attachment = (Attachment) o; - return Arrays.equals(this.content, attachment.content) && - Objects.equals(this.contentType, attachment.contentType) && - Objects.equals(this.filename, attachment.filename) && - Objects.equals(this.pageName, attachment.pageName) && - Objects.equals(this.pageType, attachment.pageType); + return Arrays.equals(this.content, attachment.content) + && Objects.equals(this.contentType, attachment.contentType) + && Objects.equals(this.filename, attachment.filename) + && Objects.equals(this.pageName, attachment.pageName) + && Objects.equals(this.pageType, attachment.pageType); } @Override @@ -270,8 +280,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -280,7 +289,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Attachment given an JSON string * * @param jsonString JSON string @@ -290,11 +299,12 @@ private String toIndentedString(Object o) { public static Attachment fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Attachment.class); } -/** - * Convert an instance of Attachment to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Attachment to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/BankAccountInfo.java b/src/main/java/com/adyen/model/legalentitymanagement/BankAccountInfo.java index 4a26df23a..04d5aea09 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/BankAccountInfo.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/BankAccountInfo.java @@ -2,32 +2,23 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.legalentitymanagement.BankAccountInfoAccountIdentification; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * BankAccountInfo - */ +/** BankAccountInfo */ @JsonPropertyOrder({ BankAccountInfo.JSON_PROPERTY_ACCOUNT_IDENTIFICATION, BankAccountInfo.JSON_PROPERTY_ACCOUNT_TYPE, @@ -35,7 +26,6 @@ BankAccountInfo.JSON_PROPERTY_COUNTRY_CODE, BankAccountInfo.JSON_PROPERTY_TRUSTED_SOURCE }) - public class BankAccountInfo { public static final String JSON_PROPERTY_ACCOUNT_IDENTIFICATION = "accountIdentification"; private BankAccountInfoAccountIdentification accountIdentification; @@ -53,13 +43,10 @@ public class BankAccountInfo { public static final String JSON_PROPERTY_TRUSTED_SOURCE = "trustedSource"; private Boolean trustedSource; - public BankAccountInfo() { - } + public BankAccountInfo() {} @JsonCreator - public BankAccountInfo( - @JsonProperty(JSON_PROPERTY_TRUSTED_SOURCE) Boolean trustedSource - ) { + public BankAccountInfo(@JsonProperty(JSON_PROPERTY_TRUSTED_SOURCE) Boolean trustedSource) { this(); this.trustedSource = trustedSource; } @@ -67,17 +54,19 @@ public BankAccountInfo( /** * accountIdentification * - * @param accountIdentification + * @param accountIdentification * @return the current {@code BankAccountInfo} instance, allowing for method chaining */ - public BankAccountInfo accountIdentification(BankAccountInfoAccountIdentification accountIdentification) { + public BankAccountInfo accountIdentification( + BankAccountInfoAccountIdentification accountIdentification) { this.accountIdentification = accountIdentification; return this; } /** * Get accountIdentification - * @return accountIdentification + * + * @return accountIdentification */ @JsonProperty(JSON_PROPERTY_ACCOUNT_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -88,7 +77,7 @@ public BankAccountInfoAccountIdentification getAccountIdentification() { /** * accountIdentification * - * @param accountIdentification + * @param accountIdentification */ @JsonProperty(JSON_PROPERTY_ACCOUNT_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,7 +90,6 @@ public void setAccountIdentification(BankAccountInfoAccountIdentification accoun * * @param accountType The type of bank account. * @return the current {@code BankAccountInfo} instance, allowing for method chaining - * * @deprecated since Legal Entity Management API v2 */ @Deprecated // deprecated since Legal Entity Management API v2 @@ -112,6 +100,7 @@ public BankAccountInfo accountType(String accountType) { /** * The type of bank account. + * * @return accountType The type of bank account. * @deprecated // deprecated since Legal Entity Management API v2 */ @@ -126,7 +115,6 @@ public String getAccountType() { * The type of bank account. * * @param accountType The type of bank account. - * * @deprecated since Legal Entity Management API v2 */ @Deprecated // deprecated since Legal Entity Management API v2 @@ -149,6 +137,7 @@ public BankAccountInfo bankName(String bankName) { /** * The name of the banking institution where the bank account is held. + * * @return bankName The name of the banking institution where the bank account is held. */ @JsonProperty(JSON_PROPERTY_BANK_NAME) @@ -169,9 +158,12 @@ public void setBankName(String bankName) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the bank account is registered. For example, **NL**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code where the bank account is registered. For example, **NL**. * - * @param countryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the bank account is registered. For example, **NL**. + * @param countryCode The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the bank + * account is registered. For example, **NL**. * @return the current {@code BankAccountInfo} instance, allowing for method chaining */ public BankAccountInfo countryCode(String countryCode) { @@ -180,8 +172,12 @@ public BankAccountInfo countryCode(String countryCode) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the bank account is registered. For example, **NL**. - * @return countryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the bank account is registered. For example, **NL**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code where the bank account is registered. For example, **NL**. + * + * @return countryCode The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the bank + * account is registered. For example, **NL**. */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,9 +186,12 @@ public String getCountryCode() { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the bank account is registered. For example, **NL**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code where the bank account is registered. For example, **NL**. * - * @param countryCode The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the bank account is registered. For example, **NL**. + * @param countryCode The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the bank + * account is registered. For example, **NL**. */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -201,8 +200,11 @@ public void setCountryCode(String countryCode) { } /** - * Identifies if the bank account was created through [instant bank verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding). - * @return trustedSource Identifies if the bank account was created through [instant bank verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding). + * Identifies if the bank account was created through [instant bank + * verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding). + * + * @return trustedSource Identifies if the bank account was created through [instant bank + * verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding). */ @JsonProperty(JSON_PROPERTY_TRUSTED_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -210,10 +212,7 @@ public Boolean getTrustedSource() { return trustedSource; } - - /** - * Return true if this BankAccountInfo object is equal to o. - */ + /** Return true if this BankAccountInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -223,11 +222,11 @@ public boolean equals(Object o) { return false; } BankAccountInfo bankAccountInfo = (BankAccountInfo) o; - return Objects.equals(this.accountIdentification, bankAccountInfo.accountIdentification) && - Objects.equals(this.accountType, bankAccountInfo.accountType) && - Objects.equals(this.bankName, bankAccountInfo.bankName) && - Objects.equals(this.countryCode, bankAccountInfo.countryCode) && - Objects.equals(this.trustedSource, bankAccountInfo.trustedSource); + return Objects.equals(this.accountIdentification, bankAccountInfo.accountIdentification) + && Objects.equals(this.accountType, bankAccountInfo.accountType) + && Objects.equals(this.bankName, bankAccountInfo.bankName) + && Objects.equals(this.countryCode, bankAccountInfo.countryCode) + && Objects.equals(this.trustedSource, bankAccountInfo.trustedSource); } @Override @@ -239,7 +238,9 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BankAccountInfo {\n"); - sb.append(" accountIdentification: ").append(toIndentedString(accountIdentification)).append("\n"); + sb.append(" accountIdentification: ") + .append(toIndentedString(accountIdentification)) + .append("\n"); sb.append(" accountType: ").append(toIndentedString(accountType)).append("\n"); sb.append(" bankName: ").append(toIndentedString(bankName)).append("\n"); sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n"); @@ -249,8 +250,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -259,7 +259,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BankAccountInfo given an JSON string * * @param jsonString JSON string @@ -269,11 +269,12 @@ private String toIndentedString(Object o) { public static BankAccountInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankAccountInfo.class); } -/** - * Convert an instance of BankAccountInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BankAccountInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/BankAccountInfoAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/BankAccountInfoAccountIdentification.java index 54d1174ff..bc122bd32 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/BankAccountInfoAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/BankAccountInfoAccountIdentification.java @@ -2,59 +2,19 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.legalentitymanagement.AULocalAccountIdentification; -import com.adyen.model.legalentitymanagement.AdditionalBankIdentification; -import com.adyen.model.legalentitymanagement.CALocalAccountIdentification; -import com.adyen.model.legalentitymanagement.CZLocalAccountIdentification; -import com.adyen.model.legalentitymanagement.DKLocalAccountIdentification; -import com.adyen.model.legalentitymanagement.HKLocalAccountIdentification; -import com.adyen.model.legalentitymanagement.HULocalAccountIdentification; -import com.adyen.model.legalentitymanagement.IbanAccountIdentification; -import com.adyen.model.legalentitymanagement.NOLocalAccountIdentification; -import com.adyen.model.legalentitymanagement.NZLocalAccountIdentification; -import com.adyen.model.legalentitymanagement.NumberAndBicAccountIdentification; -import com.adyen.model.legalentitymanagement.PLLocalAccountIdentification; -import com.adyen.model.legalentitymanagement.SELocalAccountIdentification; -import com.adyen.model.legalentitymanagement.SGLocalAccountIdentification; -import com.adyen.model.legalentitymanagement.UKLocalAccountIdentification; -import com.adyen.model.legalentitymanagement.USLocalAccountIdentification; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -import com.fasterxml.jackson.core.type.TypeReference; - -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.core.Response; -import java.io.IOException; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; - import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -64,825 +24,895 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import jakarta.ws.rs.core.GenericType; +import java.io.IOException; +import java.util.*; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.logging.Level; +import java.util.logging.Logger; - -@JsonDeserialize(using = BankAccountInfoAccountIdentification.BankAccountInfoAccountIdentificationDeserializer.class) -@JsonSerialize(using = BankAccountInfoAccountIdentification.BankAccountInfoAccountIdentificationSerializer.class) +@JsonDeserialize( + using = + BankAccountInfoAccountIdentification.BankAccountInfoAccountIdentificationDeserializer.class) +@JsonSerialize( + using = + BankAccountInfoAccountIdentification.BankAccountInfoAccountIdentificationSerializer.class) public class BankAccountInfoAccountIdentification extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(BankAccountInfoAccountIdentification.class.getName()); - - public static class BankAccountInfoAccountIdentificationSerializer extends StdSerializer { - public BankAccountInfoAccountIdentificationSerializer(Class t) { - super(t); - } - - public BankAccountInfoAccountIdentificationSerializer() { - this(null); - } - - @Override - public void serialize(BankAccountInfoAccountIdentification value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } + private static final Logger log = + Logger.getLogger(BankAccountInfoAccountIdentification.class.getName()); - public static class BankAccountInfoAccountIdentificationDeserializer extends StdDeserializer { - public BankAccountInfoAccountIdentificationDeserializer() { - this(BankAccountInfoAccountIdentification.class); - } - - public BankAccountInfoAccountIdentificationDeserializer(Class vc) { - super(vc); - } - - @Override - public BankAccountInfoAccountIdentification deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize AULocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(AULocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AULocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AULocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AULocalAccountIdentification'", e); - } - - // deserialize CALocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(CALocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CALocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CALocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CALocalAccountIdentification'", e); - } - - // deserialize CZLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(CZLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CZLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CZLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CZLocalAccountIdentification'", e); - } - - // deserialize DKLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(DKLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(DKLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'DKLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'DKLocalAccountIdentification'", e); - } - - // deserialize HKLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(HKLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(HKLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'HKLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'HKLocalAccountIdentification'", e); - } - - // deserialize HULocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(HULocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(HULocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'HULocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'HULocalAccountIdentification'", e); - } - - // deserialize IbanAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(IbanAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'IbanAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'IbanAccountIdentification'", e); - } - - // deserialize NOLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(NOLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(NOLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'NOLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'NOLocalAccountIdentification'", e); - } - - // deserialize NZLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(NZLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(NZLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'NZLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'NZLocalAccountIdentification'", e); - } - - // deserialize NumberAndBicAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(NumberAndBicAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(NumberAndBicAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'NumberAndBicAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'NumberAndBicAccountIdentification'", e); - } - - // deserialize PLLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(PLLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PLLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PLLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PLLocalAccountIdentification'", e); - } - - // deserialize SELocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(SELocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(SELocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SELocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'SELocalAccountIdentification'", e); - } - - // deserialize SGLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(SGLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(SGLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SGLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'SGLocalAccountIdentification'", e); - } - - // deserialize UKLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(UKLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(UKLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'UKLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'UKLocalAccountIdentification'", e); - } - - // deserialize USLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(USLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(USLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'USLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'USLocalAccountIdentification'", e); - } - - if (match == 1) { - BankAccountInfoAccountIdentification ret = new BankAccountInfoAccountIdentification(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException(String.format("Failed deserialization for BankAccountInfoAccountIdentification: %d classes match result, expected 1", match)); - } - - /** - * Handle deserialization of the 'null' value. - */ - @Override - public BankAccountInfoAccountIdentification getNullValue(DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "BankAccountInfoAccountIdentification cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public BankAccountInfoAccountIdentification() { - super("oneOf", Boolean.FALSE); - } - - public BankAccountInfoAccountIdentification(AULocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountInfoAccountIdentification(CALocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountInfoAccountIdentification(CZLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + public static class BankAccountInfoAccountIdentificationSerializer + extends StdSerializer { + public BankAccountInfoAccountIdentificationSerializer( + Class t) { + super(t); } - public BankAccountInfoAccountIdentification(DKLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + public BankAccountInfoAccountIdentificationSerializer() { + this(null); } - public BankAccountInfoAccountIdentification(HKLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountInfoAccountIdentification(HULocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountInfoAccountIdentification(IbanAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountInfoAccountIdentification(NOLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountInfoAccountIdentification(NZLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountInfoAccountIdentification(NumberAndBicAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountInfoAccountIdentification(PLLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountInfoAccountIdentification(SELocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountInfoAccountIdentification(SGLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountInfoAccountIdentification(UKLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountInfoAccountIdentification(USLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + @Override + public void serialize( + BankAccountInfoAccountIdentification value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); } + } - static { - schemas.put("AULocalAccountIdentification", new GenericType() { - }); - schemas.put("CALocalAccountIdentification", new GenericType() { - }); - schemas.put("CZLocalAccountIdentification", new GenericType() { - }); - schemas.put("DKLocalAccountIdentification", new GenericType() { - }); - schemas.put("HKLocalAccountIdentification", new GenericType() { - }); - schemas.put("HULocalAccountIdentification", new GenericType() { - }); - schemas.put("IbanAccountIdentification", new GenericType() { - }); - schemas.put("NOLocalAccountIdentification", new GenericType() { - }); - schemas.put("NZLocalAccountIdentification", new GenericType() { - }); - schemas.put("NumberAndBicAccountIdentification", new GenericType() { - }); - schemas.put("PLLocalAccountIdentification", new GenericType() { - }); - schemas.put("SELocalAccountIdentification", new GenericType() { - }); - schemas.put("SGLocalAccountIdentification", new GenericType() { - }); - schemas.put("UKLocalAccountIdentification", new GenericType() { - }); - schemas.put("USLocalAccountIdentification", new GenericType() { - }); - JSON.registerDescendants(BankAccountInfoAccountIdentification.class, Collections.unmodifiableMap(schemas)); + public static class BankAccountInfoAccountIdentificationDeserializer + extends StdDeserializer { + public BankAccountInfoAccountIdentificationDeserializer() { + this(BankAccountInfoAccountIdentification.class); } - @Override - public Map> getSchemas() { - return BankAccountInfoAccountIdentification.schemas; + public BankAccountInfoAccountIdentificationDeserializer(Class vc) { + super(vc); } - /** - * Set the instance that matches the oneOf child schema, check - * the instance parameter is valid against the oneOf child schemas: - * AULocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification - * - * It could be an instance of the 'oneOf' schemas. - * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). - */ @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(AULocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + public BankAccountInfoAccountIdentification deserialize( + JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize AULocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(AULocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(AULocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'AULocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(CALocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'AULocalAccountIdentification'", e); + } + + // deserialize CALocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(CALocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(CALocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CALocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(CZLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CALocalAccountIdentification'", e); + } + + // deserialize CZLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(CZLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(CZLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CZLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(DKLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CZLocalAccountIdentification'", e); + } + + // deserialize DKLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(DKLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(DKLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'DKLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(HKLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'DKLocalAccountIdentification'", e); + } + + // deserialize HKLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(HKLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(HKLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'HKLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(HULocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'HKLocalAccountIdentification'", e); + } + + // deserialize HULocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(HULocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(HULocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'HULocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(IbanAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'HULocalAccountIdentification'", e); + } + + // deserialize IbanAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(IbanAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'IbanAccountIdentification'"); + } } - - if (JSON.isInstanceOf(NOLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'IbanAccountIdentification'", e); + } + + // deserialize NOLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(NOLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(NOLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'NOLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(NZLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'NOLocalAccountIdentification'", e); + } + + // deserialize NZLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(NZLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(NZLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'NZLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(NumberAndBicAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'NZLocalAccountIdentification'", e); + } + + // deserialize NumberAndBicAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(NumberAndBicAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(NumberAndBicAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'NumberAndBicAccountIdentification'"); + } } - - if (JSON.isInstanceOf(PLLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log( + Level.FINER, "Input data does not match schema 'NumberAndBicAccountIdentification'", e); + } + + // deserialize PLLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(PLLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(PLLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PLLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(SELocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PLLocalAccountIdentification'", e); + } + + // deserialize SELocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(SELocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(SELocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'SELocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(SGLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'SELocalAccountIdentification'", e); + } + + // deserialize SGLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(SGLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(SGLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'SGLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(UKLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'SGLocalAccountIdentification'", e); + } + + // deserialize UKLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(UKLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(UKLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'UKLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(USLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'UKLocalAccountIdentification'", e); + } + + // deserialize USLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(USLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(USLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'USLocalAccountIdentification'"); + } } - - throw new RuntimeException("Invalid instance type. Must be AULocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification"); - } - - /** - * Get the actual instance, which can be the following: - * AULocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification - * - * @return The actual instance (AULocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification) - */ + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'USLocalAccountIdentification'", e); + } + + if (match == 1) { + BankAccountInfoAccountIdentification ret = new BankAccountInfoAccountIdentification(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException( + String.format( + "Failed deserialization for BankAccountInfoAccountIdentification: %d classes match result, expected 1", + match)); + } + + /** Handle deserialization of the 'null' value. */ @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `AULocalAccountIdentification`. If the actual instance is not `AULocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `AULocalAccountIdentification` - * @throws ClassCastException if the instance is not `AULocalAccountIdentification` - */ - public AULocalAccountIdentification getAULocalAccountIdentification() throws ClassCastException { - return (AULocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `CALocalAccountIdentification`. If the actual instance is not `CALocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CALocalAccountIdentification` - * @throws ClassCastException if the instance is not `CALocalAccountIdentification` - */ - public CALocalAccountIdentification getCALocalAccountIdentification() throws ClassCastException { - return (CALocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `CZLocalAccountIdentification`. If the actual instance is not `CZLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CZLocalAccountIdentification` - * @throws ClassCastException if the instance is not `CZLocalAccountIdentification` - */ - public CZLocalAccountIdentification getCZLocalAccountIdentification() throws ClassCastException { - return (CZLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `DKLocalAccountIdentification`. If the actual instance is not `DKLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `DKLocalAccountIdentification` - * @throws ClassCastException if the instance is not `DKLocalAccountIdentification` - */ - public DKLocalAccountIdentification getDKLocalAccountIdentification() throws ClassCastException { - return (DKLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `HKLocalAccountIdentification`. If the actual instance is not `HKLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `HKLocalAccountIdentification` - * @throws ClassCastException if the instance is not `HKLocalAccountIdentification` - */ - public HKLocalAccountIdentification getHKLocalAccountIdentification() throws ClassCastException { - return (HKLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `HULocalAccountIdentification`. If the actual instance is not `HULocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `HULocalAccountIdentification` - * @throws ClassCastException if the instance is not `HULocalAccountIdentification` - */ - public HULocalAccountIdentification getHULocalAccountIdentification() throws ClassCastException { - return (HULocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `IbanAccountIdentification`. If the actual instance is not `IbanAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `IbanAccountIdentification` - * @throws ClassCastException if the instance is not `IbanAccountIdentification` - */ - public IbanAccountIdentification getIbanAccountIdentification() throws ClassCastException { - return (IbanAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `NOLocalAccountIdentification`. If the actual instance is not `NOLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `NOLocalAccountIdentification` - * @throws ClassCastException if the instance is not `NOLocalAccountIdentification` - */ - public NOLocalAccountIdentification getNOLocalAccountIdentification() throws ClassCastException { - return (NOLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `NZLocalAccountIdentification`. If the actual instance is not `NZLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `NZLocalAccountIdentification` - * @throws ClassCastException if the instance is not `NZLocalAccountIdentification` - */ - public NZLocalAccountIdentification getNZLocalAccountIdentification() throws ClassCastException { - return (NZLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `NumberAndBicAccountIdentification`. If the actual instance is not `NumberAndBicAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `NumberAndBicAccountIdentification` - * @throws ClassCastException if the instance is not `NumberAndBicAccountIdentification` - */ - public NumberAndBicAccountIdentification getNumberAndBicAccountIdentification() throws ClassCastException { - return (NumberAndBicAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `PLLocalAccountIdentification`. If the actual instance is not `PLLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PLLocalAccountIdentification` - * @throws ClassCastException if the instance is not `PLLocalAccountIdentification` - */ - public PLLocalAccountIdentification getPLLocalAccountIdentification() throws ClassCastException { - return (PLLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `SELocalAccountIdentification`. If the actual instance is not `SELocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `SELocalAccountIdentification` - * @throws ClassCastException if the instance is not `SELocalAccountIdentification` - */ - public SELocalAccountIdentification getSELocalAccountIdentification() throws ClassCastException { - return (SELocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `SGLocalAccountIdentification`. If the actual instance is not `SGLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `SGLocalAccountIdentification` - * @throws ClassCastException if the instance is not `SGLocalAccountIdentification` - */ - public SGLocalAccountIdentification getSGLocalAccountIdentification() throws ClassCastException { - return (SGLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `UKLocalAccountIdentification`. If the actual instance is not `UKLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `UKLocalAccountIdentification` - * @throws ClassCastException if the instance is not `UKLocalAccountIdentification` - */ - public UKLocalAccountIdentification getUKLocalAccountIdentification() throws ClassCastException { - return (UKLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `USLocalAccountIdentification`. If the actual instance is not `USLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `USLocalAccountIdentification` - * @throws ClassCastException if the instance is not `USLocalAccountIdentification` - */ - public USLocalAccountIdentification getUSLocalAccountIdentification() throws ClassCastException { - return (USLocalAccountIdentification)super.getActualInstance(); - } - - - /** - * Create an instance of BankAccountInfoAccountIdentification given an JSON string - * - * @param jsonString JSON string - * @return An instance of BankAccountInfoAccountIdentification - * @throws IOException if the JSON string is invalid with respect to BankAccountInfoAccountIdentification - */ - public static BankAccountInfoAccountIdentification fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, BankAccountInfoAccountIdentification.class); - } - - /** - * Convert an instance of BankAccountInfoAccountIdentification to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); - } - + public BankAccountInfoAccountIdentification getNullValue(DeserializationContext ctxt) + throws JsonMappingException { + throw new JsonMappingException( + ctxt.getParser(), "BankAccountInfoAccountIdentification cannot be null"); + } + } + + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public BankAccountInfoAccountIdentification() { + super("oneOf", Boolean.FALSE); + } + + public BankAccountInfoAccountIdentification(AULocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountInfoAccountIdentification(CALocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountInfoAccountIdentification(CZLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountInfoAccountIdentification(DKLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountInfoAccountIdentification(HKLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountInfoAccountIdentification(HULocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountInfoAccountIdentification(IbanAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountInfoAccountIdentification(NOLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountInfoAccountIdentification(NZLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountInfoAccountIdentification(NumberAndBicAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountInfoAccountIdentification(PLLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountInfoAccountIdentification(SELocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountInfoAccountIdentification(SGLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountInfoAccountIdentification(UKLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountInfoAccountIdentification(USLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("AULocalAccountIdentification", new GenericType() {}); + schemas.put("CALocalAccountIdentification", new GenericType() {}); + schemas.put("CZLocalAccountIdentification", new GenericType() {}); + schemas.put("DKLocalAccountIdentification", new GenericType() {}); + schemas.put("HKLocalAccountIdentification", new GenericType() {}); + schemas.put("HULocalAccountIdentification", new GenericType() {}); + schemas.put("IbanAccountIdentification", new GenericType() {}); + schemas.put("NOLocalAccountIdentification", new GenericType() {}); + schemas.put("NZLocalAccountIdentification", new GenericType() {}); + schemas.put( + "NumberAndBicAccountIdentification", + new GenericType() {}); + schemas.put("PLLocalAccountIdentification", new GenericType() {}); + schemas.put("SELocalAccountIdentification", new GenericType() {}); + schemas.put("SGLocalAccountIdentification", new GenericType() {}); + schemas.put("UKLocalAccountIdentification", new GenericType() {}); + schemas.put("USLocalAccountIdentification", new GenericType() {}); + JSON.registerDescendants( + BankAccountInfoAccountIdentification.class, Collections.unmodifiableMap(schemas)); + } + + @Override + public Map> getSchemas() { + return BankAccountInfoAccountIdentification.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check the instance parameter is valid + * against the oneOf child schemas: AULocalAccountIdentification, CALocalAccountIdentification, + * CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, + * HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, + * NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, + * SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, + * USLocalAccountIdentification + * + *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a + * composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(AULocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(CALocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(CZLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(DKLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(HKLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(HULocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(IbanAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(NOLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(NZLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(NumberAndBicAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(PLLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(SELocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(SGLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(UKLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(USLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException( + "Invalid instance type. Must be AULocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification"); + } + + /** + * Get the actual instance, which can be the following: AULocalAccountIdentification, + * CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, + * HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, + * NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, + * PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, + * UKLocalAccountIdentification, USLocalAccountIdentification + * + * @return The actual instance (AULocalAccountIdentification, CALocalAccountIdentification, + * CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, + * HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, + * NZLocalAccountIdentification, NumberAndBicAccountIdentification, + * PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, + * UKLocalAccountIdentification, USLocalAccountIdentification) + */ + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `AULocalAccountIdentification`. If the actual instance is not + * `AULocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `AULocalAccountIdentification` + * @throws ClassCastException if the instance is not `AULocalAccountIdentification` + */ + public AULocalAccountIdentification getAULocalAccountIdentification() throws ClassCastException { + return (AULocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `CALocalAccountIdentification`. If the actual instance is not + * `CALocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `CALocalAccountIdentification` + * @throws ClassCastException if the instance is not `CALocalAccountIdentification` + */ + public CALocalAccountIdentification getCALocalAccountIdentification() throws ClassCastException { + return (CALocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `CZLocalAccountIdentification`. If the actual instance is not + * `CZLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `CZLocalAccountIdentification` + * @throws ClassCastException if the instance is not `CZLocalAccountIdentification` + */ + public CZLocalAccountIdentification getCZLocalAccountIdentification() throws ClassCastException { + return (CZLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `DKLocalAccountIdentification`. If the actual instance is not + * `DKLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `DKLocalAccountIdentification` + * @throws ClassCastException if the instance is not `DKLocalAccountIdentification` + */ + public DKLocalAccountIdentification getDKLocalAccountIdentification() throws ClassCastException { + return (DKLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `HKLocalAccountIdentification`. If the actual instance is not + * `HKLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `HKLocalAccountIdentification` + * @throws ClassCastException if the instance is not `HKLocalAccountIdentification` + */ + public HKLocalAccountIdentification getHKLocalAccountIdentification() throws ClassCastException { + return (HKLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `HULocalAccountIdentification`. If the actual instance is not + * `HULocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `HULocalAccountIdentification` + * @throws ClassCastException if the instance is not `HULocalAccountIdentification` + */ + public HULocalAccountIdentification getHULocalAccountIdentification() throws ClassCastException { + return (HULocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `IbanAccountIdentification`. If the actual instance is not + * `IbanAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `IbanAccountIdentification` + * @throws ClassCastException if the instance is not `IbanAccountIdentification` + */ + public IbanAccountIdentification getIbanAccountIdentification() throws ClassCastException { + return (IbanAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `NOLocalAccountIdentification`. If the actual instance is not + * `NOLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `NOLocalAccountIdentification` + * @throws ClassCastException if the instance is not `NOLocalAccountIdentification` + */ + public NOLocalAccountIdentification getNOLocalAccountIdentification() throws ClassCastException { + return (NOLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `NZLocalAccountIdentification`. If the actual instance is not + * `NZLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `NZLocalAccountIdentification` + * @throws ClassCastException if the instance is not `NZLocalAccountIdentification` + */ + public NZLocalAccountIdentification getNZLocalAccountIdentification() throws ClassCastException { + return (NZLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `NumberAndBicAccountIdentification`. If the actual instance is not + * `NumberAndBicAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `NumberAndBicAccountIdentification` + * @throws ClassCastException if the instance is not `NumberAndBicAccountIdentification` + */ + public NumberAndBicAccountIdentification getNumberAndBicAccountIdentification() + throws ClassCastException { + return (NumberAndBicAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `PLLocalAccountIdentification`. If the actual instance is not + * `PLLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `PLLocalAccountIdentification` + * @throws ClassCastException if the instance is not `PLLocalAccountIdentification` + */ + public PLLocalAccountIdentification getPLLocalAccountIdentification() throws ClassCastException { + return (PLLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `SELocalAccountIdentification`. If the actual instance is not + * `SELocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `SELocalAccountIdentification` + * @throws ClassCastException if the instance is not `SELocalAccountIdentification` + */ + public SELocalAccountIdentification getSELocalAccountIdentification() throws ClassCastException { + return (SELocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `SGLocalAccountIdentification`. If the actual instance is not + * `SGLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `SGLocalAccountIdentification` + * @throws ClassCastException if the instance is not `SGLocalAccountIdentification` + */ + public SGLocalAccountIdentification getSGLocalAccountIdentification() throws ClassCastException { + return (SGLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `UKLocalAccountIdentification`. If the actual instance is not + * `UKLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `UKLocalAccountIdentification` + * @throws ClassCastException if the instance is not `UKLocalAccountIdentification` + */ + public UKLocalAccountIdentification getUKLocalAccountIdentification() throws ClassCastException { + return (UKLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `USLocalAccountIdentification`. If the actual instance is not + * `USLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `USLocalAccountIdentification` + * @throws ClassCastException if the instance is not `USLocalAccountIdentification` + */ + public USLocalAccountIdentification getUSLocalAccountIdentification() throws ClassCastException { + return (USLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Create an instance of BankAccountInfoAccountIdentification given an JSON string + * + * @param jsonString JSON string + * @return An instance of BankAccountInfoAccountIdentification + * @throws IOException if the JSON string is invalid with respect to + * BankAccountInfoAccountIdentification + */ + public static BankAccountInfoAccountIdentification fromJson(String jsonString) + throws IOException { + return JSON.getMapper().readValue(jsonString, BankAccountInfoAccountIdentification.class); + } + + /** + * Convert an instance of BankAccountInfoAccountIdentification to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/BirthData.java b/src/main/java/com/adyen/model/legalentitymanagement/BirthData.java index 3dd3ab99f..d1c8a1725 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/BirthData.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/BirthData.java @@ -2,41 +2,28 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * BirthData - */ -@JsonPropertyOrder({ - BirthData.JSON_PROPERTY_DATE_OF_BIRTH -}) - +/** BirthData */ +@JsonPropertyOrder({BirthData.JSON_PROPERTY_DATE_OF_BIRTH}) public class BirthData { public static final String JSON_PROPERTY_DATE_OF_BIRTH = "dateOfBirth"; private String dateOfBirth; - public BirthData() { - } + public BirthData() {} /** * The individual's date of birth, in YYYY-MM-DD format. @@ -51,6 +38,7 @@ public BirthData dateOfBirth(String dateOfBirth) { /** * The individual's date of birth, in YYYY-MM-DD format. + * * @return dateOfBirth The individual's date of birth, in YYYY-MM-DD format. */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @@ -70,9 +58,7 @@ public void setDateOfBirth(String dateOfBirth) { this.dateOfBirth = dateOfBirth; } - /** - * Return true if this BirthData object is equal to o. - */ + /** Return true if this BirthData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,7 +95,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BirthData given an JSON string * * @param jsonString JSON string @@ -120,11 +105,12 @@ private String toIndentedString(Object o) { public static BirthData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BirthData.class); } -/** - * Convert an instance of BirthData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BirthData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/BusinessLine.java b/src/main/java/com/adyen/model/legalentitymanagement/BusinessLine.java index 8a7ed6a69..bb3ffec01 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/BusinessLine.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/BusinessLine.java @@ -2,37 +2,28 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.legalentitymanagement.CapabilityProblem; -import com.adyen.model.legalentitymanagement.SourceOfFunds; -import com.adyen.model.legalentitymanagement.WebData; -import com.adyen.model.legalentitymanagement.WebDataExemption; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * BusinessLine - */ +/** BusinessLine */ @JsonPropertyOrder({ BusinessLine.JSON_PROPERTY_CAPABILITY, BusinessLine.JSON_PROPERTY_ID, @@ -45,13 +36,12 @@ BusinessLine.JSON_PROPERTY_WEB_DATA, BusinessLine.JSON_PROPERTY_WEB_DATA_EXEMPTION }) - public class BusinessLine { /** - * The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** + * The capability for which you are creating the business line. Possible values: + * **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** */ public enum CapabilityEnum { - RECEIVEPAYMENTS(String.valueOf("receivePayments")), RECEIVEFROMPLATFORMPAYMENTS(String.valueOf("receiveFromPlatformPayments")), @@ -63,7 +53,7 @@ public enum CapabilityEnum { private String value; CapabilityEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -84,7 +74,11 @@ public static CapabilityEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("CapabilityEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CapabilityEnum.values())); + LOG.warning( + "CapabilityEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(CapabilityEnum.values())); return null; } } @@ -109,10 +103,10 @@ public static CapabilityEnum fromValue(String value) { private List salesChannels; /** - * The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** + * The service for which you are creating the business line. Possible values: * + * **paymentProcessing** * **banking** */ public enum ServiceEnum { - PAYMENTPROCESSING(String.valueOf("paymentProcessing")), BANKING(String.valueOf("banking")); @@ -122,7 +116,7 @@ public enum ServiceEnum { private String value; ServiceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -143,7 +137,11 @@ public static ServiceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ServiceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ServiceEnum.values())); + LOG.warning( + "ServiceEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ServiceEnum.values())); return null; } } @@ -160,25 +158,22 @@ public static ServiceEnum fromValue(String value) { public static final String JSON_PROPERTY_WEB_DATA_EXEMPTION = "webDataExemption"; private WebDataExemption webDataExemption; - public BusinessLine() { - } + public BusinessLine() {} @JsonCreator - public BusinessLine( - @JsonProperty(JSON_PROPERTY_ID) String id - ) { + public BusinessLine(@JsonProperty(JSON_PROPERTY_ID) String id) { this(); this.id = id; } /** - * The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** + * The capability for which you are creating the business line. Possible values: + * **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** * - * @param capability The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** + * @param capability The capability for which you are creating the business line. Possible values: + * **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** * @return the current {@code BusinessLine} instance, allowing for method chaining - * - * @deprecated since Legal Entity Management API v3 - * Use `service` instead. + * @deprecated since Legal Entity Management API v3 Use `service` instead. */ @Deprecated // deprecated since Legal Entity Management API v3: Use `service` instead. public BusinessLine capability(CapabilityEnum capability) { @@ -187,8 +182,11 @@ public BusinessLine capability(CapabilityEnum capability) { } /** - * The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** - * @return capability The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** + * The capability for which you are creating the business line. Possible values: + * **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** + * + * @return capability The capability for which you are creating the business line. Possible + * values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** * @deprecated // deprecated since Legal Entity Management API v3: Use `service` instead. */ @Deprecated // deprecated since Legal Entity Management API v3: Use `service` instead. @@ -199,12 +197,12 @@ public CapabilityEnum getCapability() { } /** - * The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** - * - * @param capability The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** + * The capability for which you are creating the business line. Possible values: + * **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** * - * @deprecated since Legal Entity Management API v3 - * Use `service` instead. + * @param capability The capability for which you are creating the business line. Possible values: + * **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** + * @deprecated since Legal Entity Management API v3 Use `service` instead. */ @Deprecated // deprecated since Legal Entity Management API v3: Use `service` instead. @JsonProperty(JSON_PROPERTY_CAPABILITY) @@ -215,6 +213,7 @@ public void setCapability(CapabilityEnum capability) { /** * The unique identifier of the business line. + * * @return id The unique identifier of the business line. */ @JsonProperty(JSON_PROPERTY_ID) @@ -223,11 +222,18 @@ public String getId() { return id; } - /** - * A code that represents the industry of the legal entity for [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) or [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). For example, **4431A** for computer software stores. + * A code that represents the industry of the legal entity for + * [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) + * or + * [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). + * For example, **4431A** for computer software stores. * - * @param industryCode A code that represents the industry of the legal entity for [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) or [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). For example, **4431A** for computer software stores. + * @param industryCode A code that represents the industry of the legal entity for + * [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) + * or + * [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). + * For example, **4431A** for computer software stores. * @return the current {@code BusinessLine} instance, allowing for method chaining */ public BusinessLine industryCode(String industryCode) { @@ -236,8 +242,17 @@ public BusinessLine industryCode(String industryCode) { } /** - * A code that represents the industry of the legal entity for [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) or [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). For example, **4431A** for computer software stores. - * @return industryCode A code that represents the industry of the legal entity for [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) or [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). For example, **4431A** for computer software stores. + * A code that represents the industry of the legal entity for + * [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) + * or + * [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). + * For example, **4431A** for computer software stores. + * + * @return industryCode A code that represents the industry of the legal entity for + * [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) + * or + * [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). + * For example, **4431A** for computer software stores. */ @JsonProperty(JSON_PROPERTY_INDUSTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -246,9 +261,17 @@ public String getIndustryCode() { } /** - * A code that represents the industry of the legal entity for [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) or [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). For example, **4431A** for computer software stores. + * A code that represents the industry of the legal entity for + * [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) + * or + * [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). + * For example, **4431A** for computer software stores. * - * @param industryCode A code that represents the industry of the legal entity for [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) or [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). For example, **4431A** for computer software stores. + * @param industryCode A code that represents the industry of the legal entity for + * [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) + * or + * [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). + * For example, **4431A** for computer software stores. */ @JsonProperty(JSON_PROPERTY_INDUSTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -257,9 +280,13 @@ public void setIndustryCode(String industryCode) { } /** - * Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line. + * Unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) + * that owns the business line. * - * @param legalEntityId Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line. + * @param legalEntityId Unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) + * that owns the business line. * @return the current {@code BusinessLine} instance, allowing for method chaining */ public BusinessLine legalEntityId(String legalEntityId) { @@ -268,8 +295,13 @@ public BusinessLine legalEntityId(String legalEntityId) { } /** - * Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line. - * @return legalEntityId Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line. + * Unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) + * that owns the business line. + * + * @return legalEntityId Unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) + * that owns the business line. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -278,9 +310,13 @@ public String getLegalEntityId() { } /** - * Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line. + * Unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) + * that owns the business line. * - * @param legalEntityId Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line. + * @param legalEntityId Unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) + * that owns the business line. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -309,6 +345,7 @@ public BusinessLine addProblemsItem(CapabilityProblem problemsItem) { /** * The verification errors related to capabilities for this supporting entity. + * * @return problems The verification errors related to capabilities for this supporting entity. */ @JsonProperty(JSON_PROPERTY_PROBLEMS) @@ -329,9 +366,13 @@ public void setProblems(List problems) { } /** - * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. + * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, + * **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the + * `service` **paymentProcessing**. * - * @param salesChannels A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. + * @param salesChannels A list of channels where goods or services are sold. Possible values: + * **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in + * combination with the `service` **paymentProcessing**. * @return the current {@code BusinessLine} instance, allowing for method chaining */ public BusinessLine salesChannels(List salesChannels) { @@ -348,8 +389,13 @@ public BusinessLine addSalesChannelsItem(String salesChannelsItem) { } /** - * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. - * @return salesChannels A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. + * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, + * **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the + * `service` **paymentProcessing**. + * + * @return salesChannels A list of channels where goods or services are sold. Possible values: + * **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in + * combination with the `service` **paymentProcessing**. */ @JsonProperty(JSON_PROPERTY_SALES_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -358,9 +404,13 @@ public List getSalesChannels() { } /** - * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. + * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, + * **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the + * `service` **paymentProcessing**. * - * @param salesChannels A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. + * @param salesChannels A list of channels where goods or services are sold. Possible values: + * **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in + * combination with the `service` **paymentProcessing**. */ @JsonProperty(JSON_PROPERTY_SALES_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -369,9 +419,11 @@ public void setSalesChannels(List salesChannels) { } /** - * The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** + * The service for which you are creating the business line. Possible values: * + * **paymentProcessing** * **banking** * - * @param service The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** + * @param service The service for which you are creating the business line. Possible values: * + * **paymentProcessing** * **banking** * @return the current {@code BusinessLine} instance, allowing for method chaining */ public BusinessLine service(ServiceEnum service) { @@ -380,8 +432,11 @@ public BusinessLine service(ServiceEnum service) { } /** - * The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** - * @return service The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** + * The service for which you are creating the business line. Possible values: * + * **paymentProcessing** * **banking** + * + * @return service The service for which you are creating the business line. Possible values: * + * **paymentProcessing** * **banking** */ @JsonProperty(JSON_PROPERTY_SERVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -390,9 +445,11 @@ public ServiceEnum getService() { } /** - * The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** + * The service for which you are creating the business line. Possible values: * + * **paymentProcessing** * **banking** * - * @param service The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** + * @param service The service for which you are creating the business line. Possible values: * + * **paymentProcessing** * **banking** */ @JsonProperty(JSON_PROPERTY_SERVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -403,7 +460,7 @@ public void setService(ServiceEnum service) { /** * sourceOfFunds * - * @param sourceOfFunds + * @param sourceOfFunds * @return the current {@code BusinessLine} instance, allowing for method chaining */ public BusinessLine sourceOfFunds(SourceOfFunds sourceOfFunds) { @@ -413,7 +470,8 @@ public BusinessLine sourceOfFunds(SourceOfFunds sourceOfFunds) { /** * Get sourceOfFunds - * @return sourceOfFunds + * + * @return sourceOfFunds */ @JsonProperty(JSON_PROPERTY_SOURCE_OF_FUNDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -424,7 +482,7 @@ public SourceOfFunds getSourceOfFunds() { /** * sourceOfFunds * - * @param sourceOfFunds + * @param sourceOfFunds */ @JsonProperty(JSON_PROPERTY_SOURCE_OF_FUNDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -433,9 +491,13 @@ public void setSourceOfFunds(SourceOfFunds sourceOfFunds) { } /** - * List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. + * List of website URLs where your user's goods or services are sold. When this is required + * for a service but your user does not have an online presence, provide the reason in the + * `webDataExemption` object. * - * @param webData List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. + * @param webData List of website URLs where your user's goods or services are sold. When this + * is required for a service but your user does not have an online presence, provide the + * reason in the `webDataExemption` object. * @return the current {@code BusinessLine} instance, allowing for method chaining */ public BusinessLine webData(List webData) { @@ -452,8 +514,13 @@ public BusinessLine addWebDataItem(WebData webDataItem) { } /** - * List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. - * @return webData List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. + * List of website URLs where your user's goods or services are sold. When this is required + * for a service but your user does not have an online presence, provide the reason in the + * `webDataExemption` object. + * + * @return webData List of website URLs where your user's goods or services are sold. When + * this is required for a service but your user does not have an online presence, provide the + * reason in the `webDataExemption` object. */ @JsonProperty(JSON_PROPERTY_WEB_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -462,9 +529,13 @@ public List getWebData() { } /** - * List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. + * List of website URLs where your user's goods or services are sold. When this is required + * for a service but your user does not have an online presence, provide the reason in the + * `webDataExemption` object. * - * @param webData List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. + * @param webData List of website URLs where your user's goods or services are sold. When this + * is required for a service but your user does not have an online presence, provide the + * reason in the `webDataExemption` object. */ @JsonProperty(JSON_PROPERTY_WEB_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -475,7 +546,7 @@ public void setWebData(List webData) { /** * webDataExemption * - * @param webDataExemption + * @param webDataExemption * @return the current {@code BusinessLine} instance, allowing for method chaining */ public BusinessLine webDataExemption(WebDataExemption webDataExemption) { @@ -485,7 +556,8 @@ public BusinessLine webDataExemption(WebDataExemption webDataExemption) { /** * Get webDataExemption - * @return webDataExemption + * + * @return webDataExemption */ @JsonProperty(JSON_PROPERTY_WEB_DATA_EXEMPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -496,7 +568,7 @@ public WebDataExemption getWebDataExemption() { /** * webDataExemption * - * @param webDataExemption + * @param webDataExemption */ @JsonProperty(JSON_PROPERTY_WEB_DATA_EXEMPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -504,9 +576,7 @@ public void setWebDataExemption(WebDataExemption webDataExemption) { this.webDataExemption = webDataExemption; } - /** - * Return true if this BusinessLine object is equal to o. - */ + /** Return true if this BusinessLine object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -516,21 +586,31 @@ public boolean equals(Object o) { return false; } BusinessLine businessLine = (BusinessLine) o; - return Objects.equals(this.capability, businessLine.capability) && - Objects.equals(this.id, businessLine.id) && - Objects.equals(this.industryCode, businessLine.industryCode) && - Objects.equals(this.legalEntityId, businessLine.legalEntityId) && - Objects.equals(this.problems, businessLine.problems) && - Objects.equals(this.salesChannels, businessLine.salesChannels) && - Objects.equals(this.service, businessLine.service) && - Objects.equals(this.sourceOfFunds, businessLine.sourceOfFunds) && - Objects.equals(this.webData, businessLine.webData) && - Objects.equals(this.webDataExemption, businessLine.webDataExemption); + return Objects.equals(this.capability, businessLine.capability) + && Objects.equals(this.id, businessLine.id) + && Objects.equals(this.industryCode, businessLine.industryCode) + && Objects.equals(this.legalEntityId, businessLine.legalEntityId) + && Objects.equals(this.problems, businessLine.problems) + && Objects.equals(this.salesChannels, businessLine.salesChannels) + && Objects.equals(this.service, businessLine.service) + && Objects.equals(this.sourceOfFunds, businessLine.sourceOfFunds) + && Objects.equals(this.webData, businessLine.webData) + && Objects.equals(this.webDataExemption, businessLine.webDataExemption); } @Override public int hashCode() { - return Objects.hash(capability, id, industryCode, legalEntityId, problems, salesChannels, service, sourceOfFunds, webData, webDataExemption); + return Objects.hash( + capability, + id, + industryCode, + legalEntityId, + problems, + salesChannels, + service, + sourceOfFunds, + webData, + webDataExemption); } @Override @@ -552,8 +632,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -562,7 +641,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BusinessLine given an JSON string * * @param jsonString JSON string @@ -572,11 +651,12 @@ private String toIndentedString(Object o) { public static BusinessLine fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BusinessLine.class); } -/** - * Convert an instance of BusinessLine to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BusinessLine to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/BusinessLineInfo.java b/src/main/java/com/adyen/model/legalentitymanagement/BusinessLineInfo.java index 4c11cd038..019d198cc 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/BusinessLineInfo.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/BusinessLineInfo.java @@ -2,36 +2,28 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.legalentitymanagement.SourceOfFunds; -import com.adyen.model.legalentitymanagement.WebData; -import com.adyen.model.legalentitymanagement.WebDataExemption; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * BusinessLineInfo - */ +/** BusinessLineInfo */ @JsonPropertyOrder({ BusinessLineInfo.JSON_PROPERTY_CAPABILITY, BusinessLineInfo.JSON_PROPERTY_INDUSTRY_CODE, @@ -42,13 +34,12 @@ BusinessLineInfo.JSON_PROPERTY_WEB_DATA, BusinessLineInfo.JSON_PROPERTY_WEB_DATA_EXEMPTION }) - public class BusinessLineInfo { /** - * The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** + * The capability for which you are creating the business line. Possible values: + * **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** */ public enum CapabilityEnum { - RECEIVEPAYMENTS(String.valueOf("receivePayments")), RECEIVEFROMPLATFORMPAYMENTS(String.valueOf("receiveFromPlatformPayments")), @@ -60,7 +51,7 @@ public enum CapabilityEnum { private String value; CapabilityEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -81,7 +72,11 @@ public static CapabilityEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("CapabilityEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CapabilityEnum.values())); + LOG.warning( + "CapabilityEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(CapabilityEnum.values())); return null; } } @@ -100,10 +95,10 @@ public static CapabilityEnum fromValue(String value) { private List salesChannels; /** - * The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** + * The service for which you are creating the business line. Possible values: * + * **paymentProcessing** * **banking** */ public enum ServiceEnum { - PAYMENTPROCESSING(String.valueOf("paymentProcessing")), BANKING(String.valueOf("banking")); @@ -113,7 +108,7 @@ public enum ServiceEnum { private String value; ServiceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -134,7 +129,11 @@ public static ServiceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ServiceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ServiceEnum.values())); + LOG.warning( + "ServiceEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ServiceEnum.values())); return null; } } @@ -151,17 +150,16 @@ public static ServiceEnum fromValue(String value) { public static final String JSON_PROPERTY_WEB_DATA_EXEMPTION = "webDataExemption"; private WebDataExemption webDataExemption; - public BusinessLineInfo() { - } + public BusinessLineInfo() {} /** - * The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** + * The capability for which you are creating the business line. Possible values: + * **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** * - * @param capability The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** + * @param capability The capability for which you are creating the business line. Possible values: + * **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** * @return the current {@code BusinessLineInfo} instance, allowing for method chaining - * - * @deprecated since Legal Entity Management API v3 - * Use `service` instead. + * @deprecated since Legal Entity Management API v3 Use `service` instead. */ @Deprecated // deprecated since Legal Entity Management API v3: Use `service` instead. public BusinessLineInfo capability(CapabilityEnum capability) { @@ -170,8 +168,11 @@ public BusinessLineInfo capability(CapabilityEnum capability) { } /** - * The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** - * @return capability The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** + * The capability for which you are creating the business line. Possible values: + * **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** + * + * @return capability The capability for which you are creating the business line. Possible + * values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** * @deprecated // deprecated since Legal Entity Management API v3: Use `service` instead. */ @Deprecated // deprecated since Legal Entity Management API v3: Use `service` instead. @@ -182,12 +183,12 @@ public CapabilityEnum getCapability() { } /** - * The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** - * - * @param capability The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** + * The capability for which you are creating the business line. Possible values: + * **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** * - * @deprecated since Legal Entity Management API v3 - * Use `service` instead. + * @param capability The capability for which you are creating the business line. Possible values: + * **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** + * @deprecated since Legal Entity Management API v3 Use `service` instead. */ @Deprecated // deprecated since Legal Entity Management API v3: Use `service` instead. @JsonProperty(JSON_PROPERTY_CAPABILITY) @@ -197,9 +198,17 @@ public void setCapability(CapabilityEnum capability) { } /** - * A code that represents the industry of the legal entity for [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) or [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). For example, **4431A** for computer software stores. + * A code that represents the industry of the legal entity for + * [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) + * or + * [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). + * For example, **4431A** for computer software stores. * - * @param industryCode A code that represents the industry of the legal entity for [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) or [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). For example, **4431A** for computer software stores. + * @param industryCode A code that represents the industry of the legal entity for + * [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) + * or + * [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). + * For example, **4431A** for computer software stores. * @return the current {@code BusinessLineInfo} instance, allowing for method chaining */ public BusinessLineInfo industryCode(String industryCode) { @@ -208,8 +217,17 @@ public BusinessLineInfo industryCode(String industryCode) { } /** - * A code that represents the industry of the legal entity for [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) or [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). For example, **4431A** for computer software stores. - * @return industryCode A code that represents the industry of the legal entity for [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) or [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). For example, **4431A** for computer software stores. + * A code that represents the industry of the legal entity for + * [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) + * or + * [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). + * For example, **4431A** for computer software stores. + * + * @return industryCode A code that represents the industry of the legal entity for + * [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) + * or + * [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). + * For example, **4431A** for computer software stores. */ @JsonProperty(JSON_PROPERTY_INDUSTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -218,9 +236,17 @@ public String getIndustryCode() { } /** - * A code that represents the industry of the legal entity for [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) or [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). For example, **4431A** for computer software stores. + * A code that represents the industry of the legal entity for + * [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) + * or + * [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). + * For example, **4431A** for computer software stores. * - * @param industryCode A code that represents the industry of the legal entity for [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) or [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). For example, **4431A** for computer software stores. + * @param industryCode A code that represents the industry of the legal entity for + * [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) + * or + * [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). + * For example, **4431A** for computer software stores. */ @JsonProperty(JSON_PROPERTY_INDUSTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -229,9 +255,13 @@ public void setIndustryCode(String industryCode) { } /** - * Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line. + * Unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) + * that owns the business line. * - * @param legalEntityId Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line. + * @param legalEntityId Unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) + * that owns the business line. * @return the current {@code BusinessLineInfo} instance, allowing for method chaining */ public BusinessLineInfo legalEntityId(String legalEntityId) { @@ -240,8 +270,13 @@ public BusinessLineInfo legalEntityId(String legalEntityId) { } /** - * Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line. - * @return legalEntityId Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line. + * Unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) + * that owns the business line. + * + * @return legalEntityId Unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) + * that owns the business line. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,9 +285,13 @@ public String getLegalEntityId() { } /** - * Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line. + * Unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) + * that owns the business line. * - * @param legalEntityId Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line. + * @param legalEntityId Unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) + * that owns the business line. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -261,9 +300,13 @@ public void setLegalEntityId(String legalEntityId) { } /** - * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. + * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, + * **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the + * `service` **paymentProcessing**. * - * @param salesChannels A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. + * @param salesChannels A list of channels where goods or services are sold. Possible values: + * **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in + * combination with the `service` **paymentProcessing**. * @return the current {@code BusinessLineInfo} instance, allowing for method chaining */ public BusinessLineInfo salesChannels(List salesChannels) { @@ -280,8 +323,13 @@ public BusinessLineInfo addSalesChannelsItem(String salesChannelsItem) { } /** - * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. - * @return salesChannels A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. + * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, + * **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the + * `service` **paymentProcessing**. + * + * @return salesChannels A list of channels where goods or services are sold. Possible values: + * **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in + * combination with the `service` **paymentProcessing**. */ @JsonProperty(JSON_PROPERTY_SALES_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -290,9 +338,13 @@ public List getSalesChannels() { } /** - * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. + * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, + * **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the + * `service` **paymentProcessing**. * - * @param salesChannels A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. + * @param salesChannels A list of channels where goods or services are sold. Possible values: + * **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in + * combination with the `service` **paymentProcessing**. */ @JsonProperty(JSON_PROPERTY_SALES_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -301,9 +353,11 @@ public void setSalesChannels(List salesChannels) { } /** - * The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** + * The service for which you are creating the business line. Possible values: * + * **paymentProcessing** * **banking** * - * @param service The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** + * @param service The service for which you are creating the business line. Possible values: * + * **paymentProcessing** * **banking** * @return the current {@code BusinessLineInfo} instance, allowing for method chaining */ public BusinessLineInfo service(ServiceEnum service) { @@ -312,8 +366,11 @@ public BusinessLineInfo service(ServiceEnum service) { } /** - * The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** - * @return service The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** + * The service for which you are creating the business line. Possible values: * + * **paymentProcessing** * **banking** + * + * @return service The service for which you are creating the business line. Possible values: * + * **paymentProcessing** * **banking** */ @JsonProperty(JSON_PROPERTY_SERVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -322,9 +379,11 @@ public ServiceEnum getService() { } /** - * The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** + * The service for which you are creating the business line. Possible values: * + * **paymentProcessing** * **banking** * - * @param service The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** + * @param service The service for which you are creating the business line. Possible values: * + * **paymentProcessing** * **banking** */ @JsonProperty(JSON_PROPERTY_SERVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -335,7 +394,7 @@ public void setService(ServiceEnum service) { /** * sourceOfFunds * - * @param sourceOfFunds + * @param sourceOfFunds * @return the current {@code BusinessLineInfo} instance, allowing for method chaining */ public BusinessLineInfo sourceOfFunds(SourceOfFunds sourceOfFunds) { @@ -345,7 +404,8 @@ public BusinessLineInfo sourceOfFunds(SourceOfFunds sourceOfFunds) { /** * Get sourceOfFunds - * @return sourceOfFunds + * + * @return sourceOfFunds */ @JsonProperty(JSON_PROPERTY_SOURCE_OF_FUNDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -356,7 +416,7 @@ public SourceOfFunds getSourceOfFunds() { /** * sourceOfFunds * - * @param sourceOfFunds + * @param sourceOfFunds */ @JsonProperty(JSON_PROPERTY_SOURCE_OF_FUNDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -365,9 +425,13 @@ public void setSourceOfFunds(SourceOfFunds sourceOfFunds) { } /** - * List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. + * List of website URLs where your user's goods or services are sold. When this is required + * for a service but your user does not have an online presence, provide the reason in the + * `webDataExemption` object. * - * @param webData List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. + * @param webData List of website URLs where your user's goods or services are sold. When this + * is required for a service but your user does not have an online presence, provide the + * reason in the `webDataExemption` object. * @return the current {@code BusinessLineInfo} instance, allowing for method chaining */ public BusinessLineInfo webData(List webData) { @@ -384,8 +448,13 @@ public BusinessLineInfo addWebDataItem(WebData webDataItem) { } /** - * List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. - * @return webData List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. + * List of website URLs where your user's goods or services are sold. When this is required + * for a service but your user does not have an online presence, provide the reason in the + * `webDataExemption` object. + * + * @return webData List of website URLs where your user's goods or services are sold. When + * this is required for a service but your user does not have an online presence, provide the + * reason in the `webDataExemption` object. */ @JsonProperty(JSON_PROPERTY_WEB_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -394,9 +463,13 @@ public List getWebData() { } /** - * List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. + * List of website URLs where your user's goods or services are sold. When this is required + * for a service but your user does not have an online presence, provide the reason in the + * `webDataExemption` object. * - * @param webData List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. + * @param webData List of website URLs where your user's goods or services are sold. When this + * is required for a service but your user does not have an online presence, provide the + * reason in the `webDataExemption` object. */ @JsonProperty(JSON_PROPERTY_WEB_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -407,7 +480,7 @@ public void setWebData(List webData) { /** * webDataExemption * - * @param webDataExemption + * @param webDataExemption * @return the current {@code BusinessLineInfo} instance, allowing for method chaining */ public BusinessLineInfo webDataExemption(WebDataExemption webDataExemption) { @@ -417,7 +490,8 @@ public BusinessLineInfo webDataExemption(WebDataExemption webDataExemption) { /** * Get webDataExemption - * @return webDataExemption + * + * @return webDataExemption */ @JsonProperty(JSON_PROPERTY_WEB_DATA_EXEMPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -428,7 +502,7 @@ public WebDataExemption getWebDataExemption() { /** * webDataExemption * - * @param webDataExemption + * @param webDataExemption */ @JsonProperty(JSON_PROPERTY_WEB_DATA_EXEMPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -436,9 +510,7 @@ public void setWebDataExemption(WebDataExemption webDataExemption) { this.webDataExemption = webDataExemption; } - /** - * Return true if this BusinessLineInfo object is equal to o. - */ + /** Return true if this BusinessLineInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -448,19 +520,27 @@ public boolean equals(Object o) { return false; } BusinessLineInfo businessLineInfo = (BusinessLineInfo) o; - return Objects.equals(this.capability, businessLineInfo.capability) && - Objects.equals(this.industryCode, businessLineInfo.industryCode) && - Objects.equals(this.legalEntityId, businessLineInfo.legalEntityId) && - Objects.equals(this.salesChannels, businessLineInfo.salesChannels) && - Objects.equals(this.service, businessLineInfo.service) && - Objects.equals(this.sourceOfFunds, businessLineInfo.sourceOfFunds) && - Objects.equals(this.webData, businessLineInfo.webData) && - Objects.equals(this.webDataExemption, businessLineInfo.webDataExemption); + return Objects.equals(this.capability, businessLineInfo.capability) + && Objects.equals(this.industryCode, businessLineInfo.industryCode) + && Objects.equals(this.legalEntityId, businessLineInfo.legalEntityId) + && Objects.equals(this.salesChannels, businessLineInfo.salesChannels) + && Objects.equals(this.service, businessLineInfo.service) + && Objects.equals(this.sourceOfFunds, businessLineInfo.sourceOfFunds) + && Objects.equals(this.webData, businessLineInfo.webData) + && Objects.equals(this.webDataExemption, businessLineInfo.webDataExemption); } @Override public int hashCode() { - return Objects.hash(capability, industryCode, legalEntityId, salesChannels, service, sourceOfFunds, webData, webDataExemption); + return Objects.hash( + capability, + industryCode, + legalEntityId, + salesChannels, + service, + sourceOfFunds, + webData, + webDataExemption); } @Override @@ -480,8 +560,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -490,7 +569,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BusinessLineInfo given an JSON string * * @param jsonString JSON string @@ -500,11 +579,12 @@ private String toIndentedString(Object o) { public static BusinessLineInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BusinessLineInfo.class); } -/** - * Convert an instance of BusinessLineInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BusinessLineInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/BusinessLineInfoUpdate.java b/src/main/java/com/adyen/model/legalentitymanagement/BusinessLineInfoUpdate.java index 0d6db4a4f..90f19b691 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/BusinessLineInfoUpdate.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/BusinessLineInfoUpdate.java @@ -2,36 +2,24 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.legalentitymanagement.SourceOfFunds; -import com.adyen.model.legalentitymanagement.WebData; -import com.adyen.model.legalentitymanagement.WebDataExemption; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * BusinessLineInfoUpdate - */ +/** BusinessLineInfoUpdate */ @JsonPropertyOrder({ BusinessLineInfoUpdate.JSON_PROPERTY_INDUSTRY_CODE, BusinessLineInfoUpdate.JSON_PROPERTY_SALES_CHANNELS, @@ -39,7 +27,6 @@ BusinessLineInfoUpdate.JSON_PROPERTY_WEB_DATA, BusinessLineInfoUpdate.JSON_PROPERTY_WEB_DATA_EXEMPTION }) - public class BusinessLineInfoUpdate { public static final String JSON_PROPERTY_INDUSTRY_CODE = "industryCode"; private String industryCode; @@ -56,13 +43,14 @@ public class BusinessLineInfoUpdate { public static final String JSON_PROPERTY_WEB_DATA_EXEMPTION = "webDataExemption"; private WebDataExemption webDataExemption; - public BusinessLineInfoUpdate() { - } + public BusinessLineInfoUpdate() {} /** - * A code that represents the industry of your legal entity. For example, **4431A** for computer software stores. + * A code that represents the industry of your legal entity. For example, **4431A** for computer + * software stores. * - * @param industryCode A code that represents the industry of your legal entity. For example, **4431A** for computer software stores. + * @param industryCode A code that represents the industry of your legal entity. For example, + * **4431A** for computer software stores. * @return the current {@code BusinessLineInfoUpdate} instance, allowing for method chaining */ public BusinessLineInfoUpdate industryCode(String industryCode) { @@ -71,8 +59,11 @@ public BusinessLineInfoUpdate industryCode(String industryCode) { } /** - * A code that represents the industry of your legal entity. For example, **4431A** for computer software stores. - * @return industryCode A code that represents the industry of your legal entity. For example, **4431A** for computer software stores. + * A code that represents the industry of your legal entity. For example, **4431A** for computer + * software stores. + * + * @return industryCode A code that represents the industry of your legal entity. For example, + * **4431A** for computer software stores. */ @JsonProperty(JSON_PROPERTY_INDUSTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -81,9 +72,11 @@ public String getIndustryCode() { } /** - * A code that represents the industry of your legal entity. For example, **4431A** for computer software stores. + * A code that represents the industry of your legal entity. For example, **4431A** for computer + * software stores. * - * @param industryCode A code that represents the industry of your legal entity. For example, **4431A** for computer software stores. + * @param industryCode A code that represents the industry of your legal entity. For example, + * **4431A** for computer software stores. */ @JsonProperty(JSON_PROPERTY_INDUSTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -92,9 +85,13 @@ public void setIndustryCode(String industryCode) { } /** - * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. + * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, + * **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the + * `service` **paymentProcessing**. * - * @param salesChannels A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. + * @param salesChannels A list of channels where goods or services are sold. Possible values: + * **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in + * combination with the `service` **paymentProcessing**. * @return the current {@code BusinessLineInfoUpdate} instance, allowing for method chaining */ public BusinessLineInfoUpdate salesChannels(List salesChannels) { @@ -111,8 +108,13 @@ public BusinessLineInfoUpdate addSalesChannelsItem(String salesChannelsItem) { } /** - * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. - * @return salesChannels A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. + * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, + * **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the + * `service` **paymentProcessing**. + * + * @return salesChannels A list of channels where goods or services are sold. Possible values: + * **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in + * combination with the `service` **paymentProcessing**. */ @JsonProperty(JSON_PROPERTY_SALES_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,9 +123,13 @@ public List getSalesChannels() { } /** - * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. + * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, + * **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the + * `service` **paymentProcessing**. * - * @param salesChannels A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. + * @param salesChannels A list of channels where goods or services are sold. Possible values: + * **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in + * combination with the `service` **paymentProcessing**. */ @JsonProperty(JSON_PROPERTY_SALES_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -134,7 +140,7 @@ public void setSalesChannels(List salesChannels) { /** * sourceOfFunds * - * @param sourceOfFunds + * @param sourceOfFunds * @return the current {@code BusinessLineInfoUpdate} instance, allowing for method chaining */ public BusinessLineInfoUpdate sourceOfFunds(SourceOfFunds sourceOfFunds) { @@ -144,7 +150,8 @@ public BusinessLineInfoUpdate sourceOfFunds(SourceOfFunds sourceOfFunds) { /** * Get sourceOfFunds - * @return sourceOfFunds + * + * @return sourceOfFunds */ @JsonProperty(JSON_PROPERTY_SOURCE_OF_FUNDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -155,7 +162,7 @@ public SourceOfFunds getSourceOfFunds() { /** * sourceOfFunds * - * @param sourceOfFunds + * @param sourceOfFunds */ @JsonProperty(JSON_PROPERTY_SOURCE_OF_FUNDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -164,9 +171,13 @@ public void setSourceOfFunds(SourceOfFunds sourceOfFunds) { } /** - * List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. + * List of website URLs where your user's goods or services are sold. When this is required + * for a service but your user does not have an online presence, provide the reason in the + * `webDataExemption` object. * - * @param webData List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. + * @param webData List of website URLs where your user's goods or services are sold. When this + * is required for a service but your user does not have an online presence, provide the + * reason in the `webDataExemption` object. * @return the current {@code BusinessLineInfoUpdate} instance, allowing for method chaining */ public BusinessLineInfoUpdate webData(List webData) { @@ -183,8 +194,13 @@ public BusinessLineInfoUpdate addWebDataItem(WebData webDataItem) { } /** - * List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. - * @return webData List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. + * List of website URLs where your user's goods or services are sold. When this is required + * for a service but your user does not have an online presence, provide the reason in the + * `webDataExemption` object. + * + * @return webData List of website URLs where your user's goods or services are sold. When + * this is required for a service but your user does not have an online presence, provide the + * reason in the `webDataExemption` object. */ @JsonProperty(JSON_PROPERTY_WEB_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,9 +209,13 @@ public List getWebData() { } /** - * List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. + * List of website URLs where your user's goods or services are sold. When this is required + * for a service but your user does not have an online presence, provide the reason in the + * `webDataExemption` object. * - * @param webData List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. + * @param webData List of website URLs where your user's goods or services are sold. When this + * is required for a service but your user does not have an online presence, provide the + * reason in the `webDataExemption` object. */ @JsonProperty(JSON_PROPERTY_WEB_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -206,7 +226,7 @@ public void setWebData(List webData) { /** * webDataExemption * - * @param webDataExemption + * @param webDataExemption * @return the current {@code BusinessLineInfoUpdate} instance, allowing for method chaining */ public BusinessLineInfoUpdate webDataExemption(WebDataExemption webDataExemption) { @@ -216,7 +236,8 @@ public BusinessLineInfoUpdate webDataExemption(WebDataExemption webDataExemption /** * Get webDataExemption - * @return webDataExemption + * + * @return webDataExemption */ @JsonProperty(JSON_PROPERTY_WEB_DATA_EXEMPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -227,7 +248,7 @@ public WebDataExemption getWebDataExemption() { /** * webDataExemption * - * @param webDataExemption + * @param webDataExemption */ @JsonProperty(JSON_PROPERTY_WEB_DATA_EXEMPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -235,9 +256,7 @@ public void setWebDataExemption(WebDataExemption webDataExemption) { this.webDataExemption = webDataExemption; } - /** - * Return true if this BusinessLineInfoUpdate object is equal to o. - */ + /** Return true if this BusinessLineInfoUpdate object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -247,11 +266,11 @@ public boolean equals(Object o) { return false; } BusinessLineInfoUpdate businessLineInfoUpdate = (BusinessLineInfoUpdate) o; - return Objects.equals(this.industryCode, businessLineInfoUpdate.industryCode) && - Objects.equals(this.salesChannels, businessLineInfoUpdate.salesChannels) && - Objects.equals(this.sourceOfFunds, businessLineInfoUpdate.sourceOfFunds) && - Objects.equals(this.webData, businessLineInfoUpdate.webData) && - Objects.equals(this.webDataExemption, businessLineInfoUpdate.webDataExemption); + return Objects.equals(this.industryCode, businessLineInfoUpdate.industryCode) + && Objects.equals(this.salesChannels, businessLineInfoUpdate.salesChannels) + && Objects.equals(this.sourceOfFunds, businessLineInfoUpdate.sourceOfFunds) + && Objects.equals(this.webData, businessLineInfoUpdate.webData) + && Objects.equals(this.webDataExemption, businessLineInfoUpdate.webDataExemption); } @Override @@ -273,8 +292,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -283,21 +301,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BusinessLineInfoUpdate given an JSON string * * @param jsonString JSON string * @return An instance of BusinessLineInfoUpdate - * @throws JsonProcessingException if the JSON string is invalid with respect to BusinessLineInfoUpdate + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BusinessLineInfoUpdate */ public static BusinessLineInfoUpdate fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BusinessLineInfoUpdate.class); } -/** - * Convert an instance of BusinessLineInfoUpdate to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BusinessLineInfoUpdate to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/BusinessLines.java b/src/main/java/com/adyen/model/legalentitymanagement/BusinessLines.java index 7d1d0d399..77abea064 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/BusinessLines.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/BusinessLines.java @@ -2,44 +2,30 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.legalentitymanagement.BusinessLine; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * BusinessLines - */ -@JsonPropertyOrder({ - BusinessLines.JSON_PROPERTY_BUSINESS_LINES -}) - +/** BusinessLines */ +@JsonPropertyOrder({BusinessLines.JSON_PROPERTY_BUSINESS_LINES}) public class BusinessLines { public static final String JSON_PROPERTY_BUSINESS_LINES = "businessLines"; private List businessLines; - public BusinessLines() { - } + public BusinessLines() {} /** * List of business lines. @@ -62,6 +48,7 @@ public BusinessLines addBusinessLinesItem(BusinessLine businessLinesItem) { /** * List of business lines. + * * @return businessLines List of business lines. */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINES) @@ -81,9 +68,7 @@ public void setBusinessLines(List businessLines) { this.businessLines = businessLines; } - /** - * Return true if this BusinessLines object is equal to o. - */ + /** Return true if this BusinessLines object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -111,8 +96,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -121,7 +105,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BusinessLines given an JSON string * * @param jsonString JSON string @@ -131,11 +115,12 @@ private String toIndentedString(Object o) { public static BusinessLines fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BusinessLines.class); } -/** - * Convert an instance of BusinessLines to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BusinessLines to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/CALocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/CALocalAccountIdentification.java index 1c3996e95..dac3a1497 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/CALocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/CALocalAccountIdentification.java @@ -2,31 +2,26 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * CALocalAccountIdentification - */ +/** CALocalAccountIdentification */ @JsonPropertyOrder({ CALocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, CALocalAccountIdentification.JSON_PROPERTY_ACCOUNT_TYPE, @@ -34,16 +29,14 @@ CALocalAccountIdentification.JSON_PROPERTY_TRANSIT_NUMBER, CALocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class CALocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ public enum AccountTypeEnum { - CHECKING(String.valueOf("checking")), SAVINGS(String.valueOf("savings")); @@ -53,7 +46,7 @@ public enum AccountTypeEnum { private String value; AccountTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -74,7 +67,11 @@ public static AccountTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AccountTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AccountTypeEnum.values())); + LOG.warning( + "AccountTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AccountTypeEnum.values())); return null; } } @@ -88,11 +85,8 @@ public static AccountTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANSIT_NUMBER = "transitNumber"; private String transitNumber; - /** - * **caLocal** - */ + /** **caLocal** */ public enum TypeEnum { - CALOCAL(String.valueOf("caLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -100,7 +94,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -121,7 +115,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -129,8 +127,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CALocalAccountIdentification() { - } + public CALocalAccountIdentification() {} /** * The 5- to 12-digit bank account number, without separators or whitespace. @@ -145,6 +142,7 @@ public CALocalAccountIdentification accountNumber(String accountNumber) { /** * The 5- to 12-digit bank account number, without separators or whitespace. + * * @return accountNumber The 5- to 12-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -165,9 +163,10 @@ public void setAccountNumber(String accountNumber) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. + * Defaults to **checking**. * @return the current {@code CALocalAccountIdentification} instance, allowing for method chaining */ public CALocalAccountIdentification accountType(AccountTypeEnum accountType) { @@ -176,8 +175,10 @@ public CALocalAccountIdentification accountType(AccountTypeEnum accountType) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. - * @return accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * + * @return accountType The bank account type. Possible values: **checking** or **savings**. + * Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,9 +187,10 @@ public AccountTypeEnum getAccountType() { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. + * Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -209,6 +211,7 @@ public CALocalAccountIdentification institutionNumber(String institutionNumber) /** * The 3-digit institution number, without separators or whitespace. + * * @return institutionNumber The 3-digit institution number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_INSTITUTION_NUMBER) @@ -241,6 +244,7 @@ public CALocalAccountIdentification transitNumber(String transitNumber) { /** * The 5-digit transit number, without separators or whitespace. + * * @return transitNumber The 5-digit transit number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_TRANSIT_NUMBER) @@ -273,6 +277,7 @@ public CALocalAccountIdentification type(TypeEnum type) { /** * **caLocal** + * * @return type **caLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -292,9 +297,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this CALocalAccountIdentification object is equal to o. - */ + /** Return true if this CALocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -304,11 +307,11 @@ public boolean equals(Object o) { return false; } CALocalAccountIdentification caLocalAccountIdentification = (CALocalAccountIdentification) o; - return Objects.equals(this.accountNumber, caLocalAccountIdentification.accountNumber) && - Objects.equals(this.accountType, caLocalAccountIdentification.accountType) && - Objects.equals(this.institutionNumber, caLocalAccountIdentification.institutionNumber) && - Objects.equals(this.transitNumber, caLocalAccountIdentification.transitNumber) && - Objects.equals(this.type, caLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, caLocalAccountIdentification.accountNumber) + && Objects.equals(this.accountType, caLocalAccountIdentification.accountType) + && Objects.equals(this.institutionNumber, caLocalAccountIdentification.institutionNumber) + && Objects.equals(this.transitNumber, caLocalAccountIdentification.transitNumber) + && Objects.equals(this.type, caLocalAccountIdentification.type); } @Override @@ -330,8 +333,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -340,21 +342,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CALocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of CALocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to CALocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CALocalAccountIdentification */ - public static CALocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static CALocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CALocalAccountIdentification.class); } -/** - * Convert an instance of CALocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CALocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/CZLocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/CZLocalAccountIdentification.java index 70dac89da..d8859760c 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/CZLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/CZLocalAccountIdentification.java @@ -2,37 +2,31 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * CZLocalAccountIdentification - */ +/** CZLocalAccountIdentification */ @JsonPropertyOrder({ CZLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, CZLocalAccountIdentification.JSON_PROPERTY_BANK_CODE, CZLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class CZLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -40,11 +34,8 @@ public class CZLocalAccountIdentification { public static final String JSON_PROPERTY_BANK_CODE = "bankCode"; private String bankCode; - /** - * **czLocal** - */ + /** **czLocal** */ public enum TypeEnum { - CZLOCAL(String.valueOf("czLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +43,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +64,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,13 +76,20 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CZLocalAccountIdentification() { - } + public CZLocalAccountIdentification() {} /** - * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) + * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional + * prefix (předčíslí). - The required second part (základní část) which must be at least two + * non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - + * **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, + * normalized) * - * @param accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) + * @param accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following + * format: - The optional prefix (předčíslí). - The required second part (základní část) which + * must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** + * (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** + * (without prefix, normalized) * @return the current {@code CZLocalAccountIdentification} instance, allowing for method chaining */ public CZLocalAccountIdentification accountNumber(String accountNumber) { @@ -96,8 +98,17 @@ public CZLocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) - * @return accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) + * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional + * prefix (předčíslí). - The required second part (základní část) which must be at least two + * non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - + * **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, + * normalized) + * + * @return accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following + * format: - The optional prefix (předčíslí). - The required second part (základní část) which + * must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** + * (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** + * (without prefix, normalized) */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +117,17 @@ public String getAccountNumber() { } /** - * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) + * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional + * prefix (předčíslí). - The required second part (základní část) which must be at least two + * non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - + * **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, + * normalized) * - * @param accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) + * @param accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following + * format: - The optional prefix (předčíslí). - The required second part (základní část) which + * must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** + * (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** + * (without prefix, normalized) */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,6 +148,7 @@ public CZLocalAccountIdentification bankCode(String bankCode) { /** * The 4-digit bank code (Kód banky), without separators or whitespace. + * * @return bankCode The 4-digit bank code (Kód banky), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_BANK_CODE) @@ -161,6 +181,7 @@ public CZLocalAccountIdentification type(TypeEnum type) { /** * **czLocal** + * * @return type **czLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +201,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this CZLocalAccountIdentification object is equal to o. - */ + /** Return true if this CZLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +211,9 @@ public boolean equals(Object o) { return false; } CZLocalAccountIdentification czLocalAccountIdentification = (CZLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, czLocalAccountIdentification.accountNumber) && - Objects.equals(this.bankCode, czLocalAccountIdentification.bankCode) && - Objects.equals(this.type, czLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, czLocalAccountIdentification.accountNumber) + && Objects.equals(this.bankCode, czLocalAccountIdentification.bankCode) + && Objects.equals(this.type, czLocalAccountIdentification.type); } @Override @@ -214,8 +233,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +242,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CZLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of CZLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to CZLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CZLocalAccountIdentification */ - public static CZLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static CZLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CZLocalAccountIdentification.class); } -/** - * Convert an instance of CZLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CZLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/CalculatePciStatusRequest.java b/src/main/java/com/adyen/model/legalentitymanagement/CalculatePciStatusRequest.java index e989c7651..7fa37cf0d 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/CalculatePciStatusRequest.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/CalculatePciStatusRequest.java @@ -2,43 +2,32 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - - -/** - * CalculatePciStatusRequest - */ -@JsonPropertyOrder({ - CalculatePciStatusRequest.JSON_PROPERTY_ADDITIONAL_SALES_CHANNELS -}) +import java.util.logging.Logger; +/** CalculatePciStatusRequest */ +@JsonPropertyOrder({CalculatePciStatusRequest.JSON_PROPERTY_ADDITIONAL_SALES_CHANNELS}) public class CalculatePciStatusRequest { - /** - * Gets or Sets additionalSalesChannels - */ + /** Gets or Sets additionalSalesChannels */ public enum AdditionalSalesChannelsEnum { - ECOMMERCE(String.valueOf("eCommerce")), ECOMMOTO(String.valueOf("ecomMoto")), @@ -52,7 +41,7 @@ public enum AdditionalSalesChannelsEnum { private String value; AdditionalSalesChannelsEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +62,11 @@ public static AdditionalSalesChannelsEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AdditionalSalesChannelsEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AdditionalSalesChannelsEnum.values())); + LOG.warning( + "AdditionalSalesChannelsEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AdditionalSalesChannelsEnum.values())); return null; } } @@ -81,21 +74,30 @@ public static AdditionalSalesChannelsEnum fromValue(String value) { public static final String JSON_PROPERTY_ADDITIONAL_SALES_CHANNELS = "additionalSalesChannels"; private List additionalSalesChannels; - public CalculatePciStatusRequest() { - } + public CalculatePciStatusRequest() {} /** - * An array of additional sales channels to generate PCI questionnaires. Include the relevant sales channels if you need your user to sign PCI questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** + * An array of additional sales channels to generate PCI questionnaires. Include the relevant + * sales channels if you need your user to sign PCI questionnaires. Not required if you [create + * stores](https://docs.adyen.com/platforms) and [add payment + * methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the + * questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** * - * @param additionalSalesChannels An array of additional sales channels to generate PCI questionnaires. Include the relevant sales channels if you need your user to sign PCI questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** + * @param additionalSalesChannels An array of additional sales channels to generate PCI + * questionnaires. Include the relevant sales channels if you need your user to sign PCI + * questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and + * [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate + * the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** * @return the current {@code CalculatePciStatusRequest} instance, allowing for method chaining */ - public CalculatePciStatusRequest additionalSalesChannels(List additionalSalesChannels) { + public CalculatePciStatusRequest additionalSalesChannels( + List additionalSalesChannels) { this.additionalSalesChannels = additionalSalesChannels; return this; } - public CalculatePciStatusRequest addAdditionalSalesChannelsItem(AdditionalSalesChannelsEnum additionalSalesChannelsItem) { + public CalculatePciStatusRequest addAdditionalSalesChannelsItem( + AdditionalSalesChannelsEnum additionalSalesChannelsItem) { if (this.additionalSalesChannels == null) { this.additionalSalesChannels = new ArrayList<>(); } @@ -104,8 +106,17 @@ public CalculatePciStatusRequest addAdditionalSalesChannelsItem(AdditionalSalesC } /** - * An array of additional sales channels to generate PCI questionnaires. Include the relevant sales channels if you need your user to sign PCI questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** - * @return additionalSalesChannels An array of additional sales channels to generate PCI questionnaires. Include the relevant sales channels if you need your user to sign PCI questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** + * An array of additional sales channels to generate PCI questionnaires. Include the relevant + * sales channels if you need your user to sign PCI questionnaires. Not required if you [create + * stores](https://docs.adyen.com/platforms) and [add payment + * methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the + * questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** + * + * @return additionalSalesChannels An array of additional sales channels to generate PCI + * questionnaires. Include the relevant sales channels if you need your user to sign PCI + * questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and + * [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate + * the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_SALES_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,19 +125,26 @@ public List getAdditionalSalesChannels() { } /** - * An array of additional sales channels to generate PCI questionnaires. Include the relevant sales channels if you need your user to sign PCI questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** + * An array of additional sales channels to generate PCI questionnaires. Include the relevant + * sales channels if you need your user to sign PCI questionnaires. Not required if you [create + * stores](https://docs.adyen.com/platforms) and [add payment + * methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the + * questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** * - * @param additionalSalesChannels An array of additional sales channels to generate PCI questionnaires. Include the relevant sales channels if you need your user to sign PCI questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** + * @param additionalSalesChannels An array of additional sales channels to generate PCI + * questionnaires. Include the relevant sales channels if you need your user to sign PCI + * questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and + * [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate + * the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_SALES_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAdditionalSalesChannels(List additionalSalesChannels) { + public void setAdditionalSalesChannels( + List additionalSalesChannels) { this.additionalSalesChannels = additionalSalesChannels; } - /** - * Return true if this CalculatePciStatusRequest object is equal to o. - */ + /** Return true if this CalculatePciStatusRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -136,7 +154,8 @@ public boolean equals(Object o) { return false; } CalculatePciStatusRequest calculatePciStatusRequest = (CalculatePciStatusRequest) o; - return Objects.equals(this.additionalSalesChannels, calculatePciStatusRequest.additionalSalesChannels); + return Objects.equals( + this.additionalSalesChannels, calculatePciStatusRequest.additionalSalesChannels); } @Override @@ -148,14 +167,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CalculatePciStatusRequest {\n"); - sb.append(" additionalSalesChannels: ").append(toIndentedString(additionalSalesChannels)).append("\n"); + sb.append(" additionalSalesChannels: ") + .append(toIndentedString(additionalSalesChannels)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -164,21 +184,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CalculatePciStatusRequest given an JSON string * * @param jsonString JSON string * @return An instance of CalculatePciStatusRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to CalculatePciStatusRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CalculatePciStatusRequest */ - public static CalculatePciStatusRequest fromJson(String jsonString) throws JsonProcessingException { + public static CalculatePciStatusRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CalculatePciStatusRequest.class); } -/** - * Convert an instance of CalculatePciStatusRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CalculatePciStatusRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/CalculatePciStatusResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/CalculatePciStatusResponse.java index 22b467b4f..7d9b2a2cd 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/CalculatePciStatusResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/CalculatePciStatusResponse.java @@ -2,46 +2,35 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * CalculatePciStatusResponse - */ -@JsonPropertyOrder({ - CalculatePciStatusResponse.JSON_PROPERTY_SIGNING_REQUIRED -}) - +/** CalculatePciStatusResponse */ +@JsonPropertyOrder({CalculatePciStatusResponse.JSON_PROPERTY_SIGNING_REQUIRED}) public class CalculatePciStatusResponse { public static final String JSON_PROPERTY_SIGNING_REQUIRED = "signingRequired"; private Boolean signingRequired; - public CalculatePciStatusResponse() { - } + public CalculatePciStatusResponse() {} /** - * Indicates if the user is required to sign PCI questionnaires. If **false**, they do not need to sign any questionnaires. + * Indicates if the user is required to sign PCI questionnaires. If **false**, they do not need to + * sign any questionnaires. * - * @param signingRequired Indicates if the user is required to sign PCI questionnaires. If **false**, they do not need to sign any questionnaires. + * @param signingRequired Indicates if the user is required to sign PCI questionnaires. If + * **false**, they do not need to sign any questionnaires. * @return the current {@code CalculatePciStatusResponse} instance, allowing for method chaining */ public CalculatePciStatusResponse signingRequired(Boolean signingRequired) { @@ -50,8 +39,11 @@ public CalculatePciStatusResponse signingRequired(Boolean signingRequired) { } /** - * Indicates if the user is required to sign PCI questionnaires. If **false**, they do not need to sign any questionnaires. - * @return signingRequired Indicates if the user is required to sign PCI questionnaires. If **false**, they do not need to sign any questionnaires. + * Indicates if the user is required to sign PCI questionnaires. If **false**, they do not need to + * sign any questionnaires. + * + * @return signingRequired Indicates if the user is required to sign PCI questionnaires. If + * **false**, they do not need to sign any questionnaires. */ @JsonProperty(JSON_PROPERTY_SIGNING_REQUIRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,9 +52,11 @@ public Boolean getSigningRequired() { } /** - * Indicates if the user is required to sign PCI questionnaires. If **false**, they do not need to sign any questionnaires. + * Indicates if the user is required to sign PCI questionnaires. If **false**, they do not need to + * sign any questionnaires. * - * @param signingRequired Indicates if the user is required to sign PCI questionnaires. If **false**, they do not need to sign any questionnaires. + * @param signingRequired Indicates if the user is required to sign PCI questionnaires. If + * **false**, they do not need to sign any questionnaires. */ @JsonProperty(JSON_PROPERTY_SIGNING_REQUIRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +64,7 @@ public void setSigningRequired(Boolean signingRequired) { this.signingRequired = signingRequired; } - /** - * Return true if this CalculatePciStatusResponse object is equal to o. - */ + /** Return true if this CalculatePciStatusResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +92,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +101,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CalculatePciStatusResponse given an JSON string * * @param jsonString JSON string * @return An instance of CalculatePciStatusResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to CalculatePciStatusResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CalculatePciStatusResponse */ - public static CalculatePciStatusResponse fromJson(String jsonString) throws JsonProcessingException { + public static CalculatePciStatusResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CalculatePciStatusResponse.class); } -/** - * Convert an instance of CalculatePciStatusResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CalculatePciStatusResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/CalculateTermsOfServiceStatusResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/CalculateTermsOfServiceStatusResponse.java index 573165728..2cfeac7d2 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/CalculateTermsOfServiceStatusResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/CalculateTermsOfServiceStatusResponse.java @@ -2,43 +2,32 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - - -/** - * CalculateTermsOfServiceStatusResponse - */ -@JsonPropertyOrder({ - CalculateTermsOfServiceStatusResponse.JSON_PROPERTY_TERMS_OF_SERVICE_TYPES -}) +import java.util.logging.Logger; +/** CalculateTermsOfServiceStatusResponse */ +@JsonPropertyOrder({CalculateTermsOfServiceStatusResponse.JSON_PROPERTY_TERMS_OF_SERVICE_TYPES}) public class CalculateTermsOfServiceStatusResponse { - /** - * Gets or Sets termsOfServiceTypes - */ + /** Gets or Sets termsOfServiceTypes */ public enum TermsOfServiceTypesEnum { - ADYENACCOUNT(String.valueOf("adyenAccount")), ADYENCAPITAL(String.valueOf("adyenCapital")), @@ -64,7 +53,7 @@ public enum TermsOfServiceTypesEnum { private String value; TermsOfServiceTypesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -85,7 +74,11 @@ public static TermsOfServiceTypesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TermsOfServiceTypesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TermsOfServiceTypesEnum.values())); + LOG.warning( + "TermsOfServiceTypesEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TermsOfServiceTypesEnum.values())); return null; } } @@ -93,21 +86,25 @@ public static TermsOfServiceTypesEnum fromValue(String value) { public static final String JSON_PROPERTY_TERMS_OF_SERVICE_TYPES = "termsOfServiceTypes"; private List termsOfServiceTypes; - public CalculateTermsOfServiceStatusResponse() { - } + public CalculateTermsOfServiceStatusResponse() {} /** - * The type of Terms of Service that the legal entity needs to accept. If empty, no Terms of Service needs to be accepted. + * The type of Terms of Service that the legal entity needs to accept. If empty, no Terms of + * Service needs to be accepted. * - * @param termsOfServiceTypes The type of Terms of Service that the legal entity needs to accept. If empty, no Terms of Service needs to be accepted. - * @return the current {@code CalculateTermsOfServiceStatusResponse} instance, allowing for method chaining + * @param termsOfServiceTypes The type of Terms of Service that the legal entity needs to accept. + * If empty, no Terms of Service needs to be accepted. + * @return the current {@code CalculateTermsOfServiceStatusResponse} instance, allowing for method + * chaining */ - public CalculateTermsOfServiceStatusResponse termsOfServiceTypes(List termsOfServiceTypes) { + public CalculateTermsOfServiceStatusResponse termsOfServiceTypes( + List termsOfServiceTypes) { this.termsOfServiceTypes = termsOfServiceTypes; return this; } - public CalculateTermsOfServiceStatusResponse addTermsOfServiceTypesItem(TermsOfServiceTypesEnum termsOfServiceTypesItem) { + public CalculateTermsOfServiceStatusResponse addTermsOfServiceTypesItem( + TermsOfServiceTypesEnum termsOfServiceTypesItem) { if (this.termsOfServiceTypes == null) { this.termsOfServiceTypes = new ArrayList<>(); } @@ -116,8 +113,11 @@ public CalculateTermsOfServiceStatusResponse addTermsOfServiceTypesItem(TermsOfS } /** - * The type of Terms of Service that the legal entity needs to accept. If empty, no Terms of Service needs to be accepted. - * @return termsOfServiceTypes The type of Terms of Service that the legal entity needs to accept. If empty, no Terms of Service needs to be accepted. + * The type of Terms of Service that the legal entity needs to accept. If empty, no Terms of + * Service needs to be accepted. + * + * @return termsOfServiceTypes The type of Terms of Service that the legal entity needs to accept. + * If empty, no Terms of Service needs to be accepted. */ @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,9 +126,11 @@ public List getTermsOfServiceTypes() { } /** - * The type of Terms of Service that the legal entity needs to accept. If empty, no Terms of Service needs to be accepted. + * The type of Terms of Service that the legal entity needs to accept. If empty, no Terms of + * Service needs to be accepted. * - * @param termsOfServiceTypes The type of Terms of Service that the legal entity needs to accept. If empty, no Terms of Service needs to be accepted. + * @param termsOfServiceTypes The type of Terms of Service that the legal entity needs to accept. + * If empty, no Terms of Service needs to be accepted. */ @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,9 +138,7 @@ public void setTermsOfServiceTypes(List termsOfServiceT this.termsOfServiceTypes = termsOfServiceTypes; } - /** - * Return true if this CalculateTermsOfServiceStatusResponse object is equal to o. - */ + /** Return true if this CalculateTermsOfServiceStatusResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -147,8 +147,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CalculateTermsOfServiceStatusResponse calculateTermsOfServiceStatusResponse = (CalculateTermsOfServiceStatusResponse) o; - return Objects.equals(this.termsOfServiceTypes, calculateTermsOfServiceStatusResponse.termsOfServiceTypes); + CalculateTermsOfServiceStatusResponse calculateTermsOfServiceStatusResponse = + (CalculateTermsOfServiceStatusResponse) o; + return Objects.equals( + this.termsOfServiceTypes, calculateTermsOfServiceStatusResponse.termsOfServiceTypes); } @Override @@ -160,14 +162,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CalculateTermsOfServiceStatusResponse {\n"); - sb.append(" termsOfServiceTypes: ").append(toIndentedString(termsOfServiceTypes)).append("\n"); + sb.append(" termsOfServiceTypes: ") + .append(toIndentedString(termsOfServiceTypes)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -176,21 +179,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CalculateTermsOfServiceStatusResponse given an JSON string * * @param jsonString JSON string * @return An instance of CalculateTermsOfServiceStatusResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to CalculateTermsOfServiceStatusResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CalculateTermsOfServiceStatusResponse */ - public static CalculateTermsOfServiceStatusResponse fromJson(String jsonString) throws JsonProcessingException { + public static CalculateTermsOfServiceStatusResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CalculateTermsOfServiceStatusResponse.class); } -/** - * Convert an instance of CalculateTermsOfServiceStatusResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CalculateTermsOfServiceStatusResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblem.java b/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblem.java index 789f3be4c..e3a58302a 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblem.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblem.java @@ -2,40 +2,28 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.legalentitymanagement.CapabilityProblemEntity; -import com.adyen.model.legalentitymanagement.VerificationError; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * CapabilityProblem - */ +/** CapabilityProblem */ @JsonPropertyOrder({ CapabilityProblem.JSON_PROPERTY_ENTITY, CapabilityProblem.JSON_PROPERTY_VERIFICATION_ERRORS }) - public class CapabilityProblem { public static final String JSON_PROPERTY_ENTITY = "entity"; private CapabilityProblemEntity entity; @@ -43,13 +31,12 @@ public class CapabilityProblem { public static final String JSON_PROPERTY_VERIFICATION_ERRORS = "verificationErrors"; private List verificationErrors; - public CapabilityProblem() { - } + public CapabilityProblem() {} /** * entity * - * @param entity + * @param entity * @return the current {@code CapabilityProblem} instance, allowing for method chaining */ public CapabilityProblem entity(CapabilityProblemEntity entity) { @@ -59,7 +46,8 @@ public CapabilityProblem entity(CapabilityProblemEntity entity) { /** * Get entity - * @return entity + * + * @return entity */ @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,7 +58,7 @@ public CapabilityProblemEntity getEntity() { /** * entity * - * @param entity + * @param entity */ @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -81,7 +69,7 @@ public void setEntity(CapabilityProblemEntity entity) { /** * verificationErrors * - * @param verificationErrors + * @param verificationErrors * @return the current {@code CapabilityProblem} instance, allowing for method chaining */ public CapabilityProblem verificationErrors(List verificationErrors) { @@ -99,7 +87,8 @@ public CapabilityProblem addVerificationErrorsItem(VerificationError verificatio /** * Get verificationErrors - * @return verificationErrors + * + * @return verificationErrors */ @JsonProperty(JSON_PROPERTY_VERIFICATION_ERRORS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,7 +99,7 @@ public List getVerificationErrors() { /** * verificationErrors * - * @param verificationErrors + * @param verificationErrors */ @JsonProperty(JSON_PROPERTY_VERIFICATION_ERRORS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,9 +107,7 @@ public void setVerificationErrors(List verificationErrors) { this.verificationErrors = verificationErrors; } - /** - * Return true if this CapabilityProblem object is equal to o. - */ + /** Return true if this CapabilityProblem object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -130,8 +117,8 @@ public boolean equals(Object o) { return false; } CapabilityProblem capabilityProblem = (CapabilityProblem) o; - return Objects.equals(this.entity, capabilityProblem.entity) && - Objects.equals(this.verificationErrors, capabilityProblem.verificationErrors); + return Objects.equals(this.entity, capabilityProblem.entity) + && Objects.equals(this.verificationErrors, capabilityProblem.verificationErrors); } @Override @@ -150,8 +137,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -160,7 +146,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CapabilityProblem given an JSON string * * @param jsonString JSON string @@ -170,11 +156,12 @@ private String toIndentedString(Object o) { public static CapabilityProblem fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapabilityProblem.class); } -/** - * Convert an instance of CapabilityProblem to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CapabilityProblem to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblemEntity.java b/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblemEntity.java index b45ab15d0..e80d56a9b 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblemEntity.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblemEntity.java @@ -2,41 +2,34 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.legalentitymanagement.CapabilityProblemEntityRecursive; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * CapabilityProblemEntity - */ +/** CapabilityProblemEntity */ @JsonPropertyOrder({ CapabilityProblemEntity.JSON_PROPERTY_DOCUMENTS, CapabilityProblemEntity.JSON_PROPERTY_ID, CapabilityProblemEntity.JSON_PROPERTY_OWNER, CapabilityProblemEntity.JSON_PROPERTY_TYPE }) - public class CapabilityProblemEntity { public static final String JSON_PROPERTY_DOCUMENTS = "documents"; private List documents; @@ -47,11 +40,8 @@ public class CapabilityProblemEntity { public static final String JSON_PROPERTY_OWNER = "owner"; private CapabilityProblemEntityRecursive owner; - /** - * Gets or Sets type - */ + /** Gets or Sets type */ public enum TypeEnum { - BANKACCOUNT(String.valueOf("BankAccount")), DOCUMENT(String.valueOf("Document")), @@ -65,7 +55,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -86,7 +76,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -94,13 +88,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CapabilityProblemEntity() { - } + public CapabilityProblemEntity() {} /** * List of document IDs corresponding to the verification errors from capabilities. * - * @param documents List of document IDs corresponding to the verification errors from capabilities. + * @param documents List of document IDs corresponding to the verification errors from + * capabilities. * @return the current {@code CapabilityProblemEntity} instance, allowing for method chaining */ public CapabilityProblemEntity documents(List documents) { @@ -118,7 +112,9 @@ public CapabilityProblemEntity addDocumentsItem(String documentsItem) { /** * List of document IDs corresponding to the verification errors from capabilities. - * @return documents List of document IDs corresponding to the verification errors from capabilities. + * + * @return documents List of document IDs corresponding to the verification errors from + * capabilities. */ @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,7 +125,8 @@ public List getDocuments() { /** * List of document IDs corresponding to the verification errors from capabilities. * - * @param documents List of document IDs corresponding to the verification errors from capabilities. + * @param documents List of document IDs corresponding to the verification errors from + * capabilities. */ @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,7 +137,7 @@ public void setDocuments(List documents) { /** * id * - * @param id + * @param id * @return the current {@code CapabilityProblemEntity} instance, allowing for method chaining */ public CapabilityProblemEntity id(String id) { @@ -150,7 +147,8 @@ public CapabilityProblemEntity id(String id) { /** * Get id - * @return id + * + * @return id */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,7 +159,7 @@ public String getId() { /** * id * - * @param id + * @param id */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,7 +170,7 @@ public void setId(String id) { /** * owner * - * @param owner + * @param owner * @return the current {@code CapabilityProblemEntity} instance, allowing for method chaining */ public CapabilityProblemEntity owner(CapabilityProblemEntityRecursive owner) { @@ -182,7 +180,8 @@ public CapabilityProblemEntity owner(CapabilityProblemEntityRecursive owner) { /** * Get owner - * @return owner + * + * @return owner */ @JsonProperty(JSON_PROPERTY_OWNER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,7 +192,7 @@ public CapabilityProblemEntityRecursive getOwner() { /** * owner * - * @param owner + * @param owner */ @JsonProperty(JSON_PROPERTY_OWNER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,7 +203,7 @@ public void setOwner(CapabilityProblemEntityRecursive owner) { /** * type * - * @param type + * @param type * @return the current {@code CapabilityProblemEntity} instance, allowing for method chaining */ public CapabilityProblemEntity type(TypeEnum type) { @@ -214,7 +213,8 @@ public CapabilityProblemEntity type(TypeEnum type) { /** * Get type - * @return type + * + * @return type */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -225,7 +225,7 @@ public TypeEnum getType() { /** * type * - * @param type + * @param type */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -233,9 +233,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this CapabilityProblemEntity object is equal to o. - */ + /** Return true if this CapabilityProblemEntity object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -245,10 +243,10 @@ public boolean equals(Object o) { return false; } CapabilityProblemEntity capabilityProblemEntity = (CapabilityProblemEntity) o; - return Objects.equals(this.documents, capabilityProblemEntity.documents) && - Objects.equals(this.id, capabilityProblemEntity.id) && - Objects.equals(this.owner, capabilityProblemEntity.owner) && - Objects.equals(this.type, capabilityProblemEntity.type); + return Objects.equals(this.documents, capabilityProblemEntity.documents) + && Objects.equals(this.id, capabilityProblemEntity.id) + && Objects.equals(this.owner, capabilityProblemEntity.owner) + && Objects.equals(this.type, capabilityProblemEntity.type); } @Override @@ -269,8 +267,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -279,21 +276,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CapabilityProblemEntity given an JSON string * * @param jsonString JSON string * @return An instance of CapabilityProblemEntity - * @throws JsonProcessingException if the JSON string is invalid with respect to CapabilityProblemEntity + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CapabilityProblemEntity */ public static CapabilityProblemEntity fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapabilityProblemEntity.class); } -/** - * Convert an instance of CapabilityProblemEntity to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CapabilityProblemEntity to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblemEntityRecursive.java b/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblemEntityRecursive.java index 4e4f13ee1..356d6625d 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblemEntityRecursive.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblemEntityRecursive.java @@ -2,40 +2,35 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * CapabilityProblemEntityRecursive - */ +/** CapabilityProblemEntityRecursive */ @JsonPropertyOrder({ CapabilityProblemEntityRecursive.JSON_PROPERTY_DOCUMENTS, CapabilityProblemEntityRecursive.JSON_PROPERTY_ID, CapabilityProblemEntityRecursive.JSON_PROPERTY_TYPE }) @JsonTypeName("CapabilityProblemEntity-recursive") - public class CapabilityProblemEntityRecursive { public static final String JSON_PROPERTY_DOCUMENTS = "documents"; private List documents; @@ -43,11 +38,8 @@ public class CapabilityProblemEntityRecursive { public static final String JSON_PROPERTY_ID = "id"; private String id; - /** - * Gets or Sets type - */ + /** Gets or Sets type */ public enum TypeEnum { - BANKACCOUNT(String.valueOf("BankAccount")), DOCUMENT(String.valueOf("Document")), @@ -61,7 +53,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -82,7 +74,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -90,14 +86,15 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CapabilityProblemEntityRecursive() { - } + public CapabilityProblemEntityRecursive() {} /** * List of document IDs corresponding to the verification errors from capabilities. * - * @param documents List of document IDs corresponding to the verification errors from capabilities. - * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method chaining + * @param documents List of document IDs corresponding to the verification errors from + * capabilities. + * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method + * chaining */ public CapabilityProblemEntityRecursive documents(List documents) { this.documents = documents; @@ -114,7 +111,9 @@ public CapabilityProblemEntityRecursive addDocumentsItem(String documentsItem) { /** * List of document IDs corresponding to the verification errors from capabilities. - * @return documents List of document IDs corresponding to the verification errors from capabilities. + * + * @return documents List of document IDs corresponding to the verification errors from + * capabilities. */ @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,7 +124,8 @@ public List getDocuments() { /** * List of document IDs corresponding to the verification errors from capabilities. * - * @param documents List of document IDs corresponding to the verification errors from capabilities. + * @param documents List of document IDs corresponding to the verification errors from + * capabilities. */ @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,8 +136,9 @@ public void setDocuments(List documents) { /** * id * - * @param id - * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method chaining + * @param id + * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method + * chaining */ public CapabilityProblemEntityRecursive id(String id) { this.id = id; @@ -146,7 +147,8 @@ public CapabilityProblemEntityRecursive id(String id) { /** * Get id - * @return id + * + * @return id */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -157,7 +159,7 @@ public String getId() { /** * id * - * @param id + * @param id */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,8 +170,9 @@ public void setId(String id) { /** * type * - * @param type - * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method chaining + * @param type + * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method + * chaining */ public CapabilityProblemEntityRecursive type(TypeEnum type) { this.type = type; @@ -178,7 +181,8 @@ public CapabilityProblemEntityRecursive type(TypeEnum type) { /** * Get type - * @return type + * + * @return type */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,7 +193,7 @@ public TypeEnum getType() { /** * type * - * @param type + * @param type */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -197,9 +201,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this CapabilityProblemEntity-recursive object is equal to o. - */ + /** Return true if this CapabilityProblemEntity-recursive object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -208,10 +210,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CapabilityProblemEntityRecursive capabilityProblemEntityRecursive = (CapabilityProblemEntityRecursive) o; - return Objects.equals(this.documents, capabilityProblemEntityRecursive.documents) && - Objects.equals(this.id, capabilityProblemEntityRecursive.id) && - Objects.equals(this.type, capabilityProblemEntityRecursive.type); + CapabilityProblemEntityRecursive capabilityProblemEntityRecursive = + (CapabilityProblemEntityRecursive) o; + return Objects.equals(this.documents, capabilityProblemEntityRecursive.documents) + && Objects.equals(this.id, capabilityProblemEntityRecursive.id) + && Objects.equals(this.type, capabilityProblemEntityRecursive.type); } @Override @@ -231,8 +234,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -241,21 +243,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CapabilityProblemEntityRecursive given an JSON string * * @param jsonString JSON string * @return An instance of CapabilityProblemEntityRecursive - * @throws JsonProcessingException if the JSON string is invalid with respect to CapabilityProblemEntityRecursive + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CapabilityProblemEntityRecursive */ - public static CapabilityProblemEntityRecursive fromJson(String jsonString) throws JsonProcessingException { + public static CapabilityProblemEntityRecursive fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapabilityProblemEntityRecursive.class); } -/** - * Convert an instance of CapabilityProblemEntityRecursive to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CapabilityProblemEntityRecursive to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/CapabilitySettings.java b/src/main/java/com/adyen/model/legalentitymanagement/CapabilitySettings.java index 1455e7b24..0229f9ef6 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/CapabilitySettings.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/CapabilitySettings.java @@ -2,36 +2,30 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.legalentitymanagement.Amount; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * CapabilitySettings - */ +/** CapabilitySettings */ @JsonPropertyOrder({ CapabilitySettings.JSON_PROPERTY_AMOUNT_PER_INDUSTRY, CapabilitySettings.JSON_PROPERTY_AUTHORIZED_CARD_USERS, @@ -39,7 +33,6 @@ CapabilitySettings.JSON_PROPERTY_INTERVAL, CapabilitySettings.JSON_PROPERTY_MAX_AMOUNT }) - public class CapabilitySettings { public static final String JSON_PROPERTY_AMOUNT_PER_INDUSTRY = "amountPerIndustry"; private Map amountPerIndustry; @@ -47,11 +40,8 @@ public class CapabilitySettings { public static final String JSON_PROPERTY_AUTHORIZED_CARD_USERS = "authorizedCardUsers"; private Boolean authorizedCardUsers; - /** - * Gets or Sets fundingSource - */ + /** Gets or Sets fundingSource */ public enum FundingSourceEnum { - CREDIT(String.valueOf("credit")), DEBIT(String.valueOf("debit")), @@ -63,7 +53,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -84,7 +74,11 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); + LOG.warning( + "FundingSourceEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -92,11 +86,8 @@ public static FundingSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_FUNDING_SOURCE = "fundingSource"; private List fundingSource; - /** - * The period when the rule conditions apply. - */ + /** The period when the rule conditions apply. */ public enum IntervalEnum { - DAILY(String.valueOf("daily")), MONTHLY(String.valueOf("monthly")), @@ -108,7 +99,7 @@ public enum IntervalEnum { private String value; IntervalEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -129,7 +120,11 @@ public static IntervalEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("IntervalEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(IntervalEnum.values())); + LOG.warning( + "IntervalEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(IntervalEnum.values())); return null; } } @@ -140,8 +135,7 @@ public static IntervalEnum fromValue(String value) { public static final String JSON_PROPERTY_MAX_AMOUNT = "maxAmount"; private Amount maxAmount; - public CapabilitySettings() { - } + public CapabilitySettings() {} /** * The maximum amount a card holder can spend per industry. @@ -164,6 +158,7 @@ public CapabilitySettings putAmountPerIndustryItem(String key, Amount amountPerI /** * The maximum amount a card holder can spend per industry. + * * @return amountPerIndustry The maximum amount a card holder can spend per industry. */ @JsonProperty(JSON_PROPERTY_AMOUNT_PER_INDUSTRY) @@ -196,6 +191,7 @@ public CapabilitySettings authorizedCardUsers(Boolean authorizedCardUsers) { /** * The number of card holders who can use the card. + * * @return authorizedCardUsers The number of card holders who can use the card. */ @JsonProperty(JSON_PROPERTY_AUTHORIZED_CARD_USERS) @@ -236,6 +232,7 @@ public CapabilitySettings addFundingSourceItem(FundingSourceEnum fundingSourceIt /** * The funding source of the card, for example **debit**. + * * @return fundingSource The funding source of the card, for example **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @@ -268,6 +265,7 @@ public CapabilitySettings interval(IntervalEnum interval) { /** * The period when the rule conditions apply. + * * @return interval The period when the rule conditions apply. */ @JsonProperty(JSON_PROPERTY_INTERVAL) @@ -290,7 +288,7 @@ public void setInterval(IntervalEnum interval) { /** * maxAmount * - * @param maxAmount + * @param maxAmount * @return the current {@code CapabilitySettings} instance, allowing for method chaining */ public CapabilitySettings maxAmount(Amount maxAmount) { @@ -300,7 +298,8 @@ public CapabilitySettings maxAmount(Amount maxAmount) { /** * Get maxAmount - * @return maxAmount + * + * @return maxAmount */ @JsonProperty(JSON_PROPERTY_MAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -311,7 +310,7 @@ public Amount getMaxAmount() { /** * maxAmount * - * @param maxAmount + * @param maxAmount */ @JsonProperty(JSON_PROPERTY_MAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -319,9 +318,7 @@ public void setMaxAmount(Amount maxAmount) { this.maxAmount = maxAmount; } - /** - * Return true if this CapabilitySettings object is equal to o. - */ + /** Return true if this CapabilitySettings object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -331,11 +328,11 @@ public boolean equals(Object o) { return false; } CapabilitySettings capabilitySettings = (CapabilitySettings) o; - return Objects.equals(this.amountPerIndustry, capabilitySettings.amountPerIndustry) && - Objects.equals(this.authorizedCardUsers, capabilitySettings.authorizedCardUsers) && - Objects.equals(this.fundingSource, capabilitySettings.fundingSource) && - Objects.equals(this.interval, capabilitySettings.interval) && - Objects.equals(this.maxAmount, capabilitySettings.maxAmount); + return Objects.equals(this.amountPerIndustry, capabilitySettings.amountPerIndustry) + && Objects.equals(this.authorizedCardUsers, capabilitySettings.authorizedCardUsers) + && Objects.equals(this.fundingSource, capabilitySettings.fundingSource) + && Objects.equals(this.interval, capabilitySettings.interval) + && Objects.equals(this.maxAmount, capabilitySettings.maxAmount); } @Override @@ -348,7 +345,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CapabilitySettings {\n"); sb.append(" amountPerIndustry: ").append(toIndentedString(amountPerIndustry)).append("\n"); - sb.append(" authorizedCardUsers: ").append(toIndentedString(authorizedCardUsers)).append("\n"); + sb.append(" authorizedCardUsers: ") + .append(toIndentedString(authorizedCardUsers)) + .append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); sb.append(" interval: ").append(toIndentedString(interval)).append("\n"); sb.append(" maxAmount: ").append(toIndentedString(maxAmount)).append("\n"); @@ -357,8 +356,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -367,21 +365,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CapabilitySettings given an JSON string * * @param jsonString JSON string * @return An instance of CapabilitySettings - * @throws JsonProcessingException if the JSON string is invalid with respect to CapabilitySettings + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CapabilitySettings */ public static CapabilitySettings fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapabilitySettings.class); } -/** - * Convert an instance of CapabilitySettings to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CapabilitySettings to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/CheckTaxElectronicDeliveryConsentResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/CheckTaxElectronicDeliveryConsentResponse.java index 934f18267..04ed2559c 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/CheckTaxElectronicDeliveryConsentResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/CheckTaxElectronicDeliveryConsentResponse.java @@ -2,47 +2,35 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * CheckTaxElectronicDeliveryConsentResponse - */ -@JsonPropertyOrder({ - CheckTaxElectronicDeliveryConsentResponse.JSON_PROPERTY_US1099K -}) - +/** CheckTaxElectronicDeliveryConsentResponse */ +@JsonPropertyOrder({CheckTaxElectronicDeliveryConsentResponse.JSON_PROPERTY_US1099K}) public class CheckTaxElectronicDeliveryConsentResponse { public static final String JSON_PROPERTY_US1099K = "US1099k"; private Boolean us1099k; - public CheckTaxElectronicDeliveryConsentResponse() { - } + public CheckTaxElectronicDeliveryConsentResponse() {} /** * Consent to electronically deliver tax form US1099-K. * * @param us1099k Consent to electronically deliver tax form US1099-K. - * @return the current {@code CheckTaxElectronicDeliveryConsentResponse} instance, allowing for method chaining + * @return the current {@code CheckTaxElectronicDeliveryConsentResponse} instance, allowing for + * method chaining */ public CheckTaxElectronicDeliveryConsentResponse us1099k(Boolean us1099k) { this.us1099k = us1099k; @@ -51,6 +39,7 @@ public CheckTaxElectronicDeliveryConsentResponse us1099k(Boolean us1099k) { /** * Consent to electronically deliver tax form US1099-K. + * * @return us1099k Consent to electronically deliver tax form US1099-K. */ @JsonProperty(JSON_PROPERTY_US1099K) @@ -70,9 +59,7 @@ public void setUs1099k(Boolean us1099k) { this.us1099k = us1099k; } - /** - * Return true if this CheckTaxElectronicDeliveryConsentResponse object is equal to o. - */ + /** Return true if this CheckTaxElectronicDeliveryConsentResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -81,7 +68,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CheckTaxElectronicDeliveryConsentResponse checkTaxElectronicDeliveryConsentResponse = (CheckTaxElectronicDeliveryConsentResponse) o; + CheckTaxElectronicDeliveryConsentResponse checkTaxElectronicDeliveryConsentResponse = + (CheckTaxElectronicDeliveryConsentResponse) o; return Objects.equals(this.us1099k, checkTaxElectronicDeliveryConsentResponse.us1099k); } @@ -100,8 +88,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +97,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CheckTaxElectronicDeliveryConsentResponse given an JSON string * * @param jsonString JSON string * @return An instance of CheckTaxElectronicDeliveryConsentResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to CheckTaxElectronicDeliveryConsentResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CheckTaxElectronicDeliveryConsentResponse */ - public static CheckTaxElectronicDeliveryConsentResponse fromJson(String jsonString) throws JsonProcessingException { + public static CheckTaxElectronicDeliveryConsentResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CheckTaxElectronicDeliveryConsentResponse.class); } -/** - * Convert an instance of CheckTaxElectronicDeliveryConsentResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CheckTaxElectronicDeliveryConsentResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/DKLocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/DKLocalAccountIdentification.java index cac2d2cfc..23d1a22fd 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/DKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/DKLocalAccountIdentification.java @@ -2,37 +2,31 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * DKLocalAccountIdentification - */ +/** DKLocalAccountIdentification */ @JsonPropertyOrder({ DKLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, DKLocalAccountIdentification.JSON_PROPERTY_BANK_CODE, DKLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class DKLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -40,11 +34,8 @@ public class DKLocalAccountIdentification { public static final String JSON_PROPERTY_BANK_CODE = "bankCode"; private String bankCode; - /** - * **dkLocal** - */ + /** **dkLocal** */ public enum TypeEnum { - DKLOCAL(String.valueOf("dkLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +43,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +64,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,13 +76,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public DKLocalAccountIdentification() { - } + public DKLocalAccountIdentification() {} /** * The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). * - * @param accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). + * @param accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or + * whitespace). * @return the current {@code DKLocalAccountIdentification} instance, allowing for method chaining */ public DKLocalAccountIdentification accountNumber(String accountNumber) { @@ -97,7 +92,9 @@ public DKLocalAccountIdentification accountNumber(String accountNumber) { /** * The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). - * @return accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). + * + * @return accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or + * whitespace). */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,7 +105,8 @@ public String getAccountNumber() { /** * The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). * - * @param accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). + * @param accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or + * whitespace). */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,7 +127,9 @@ public DKLocalAccountIdentification bankCode(String bankCode) { /** * The 4-digit bank code (Registreringsnummer) (without separators or whitespace). - * @return bankCode The 4-digit bank code (Registreringsnummer) (without separators or whitespace). + * + * @return bankCode The 4-digit bank code (Registreringsnummer) (without separators or + * whitespace). */ @JsonProperty(JSON_PROPERTY_BANK_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,6 +161,7 @@ public DKLocalAccountIdentification type(TypeEnum type) { /** * **dkLocal** + * * @return type **dkLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +181,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this DKLocalAccountIdentification object is equal to o. - */ + /** Return true if this DKLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +191,9 @@ public boolean equals(Object o) { return false; } DKLocalAccountIdentification dkLocalAccountIdentification = (DKLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, dkLocalAccountIdentification.accountNumber) && - Objects.equals(this.bankCode, dkLocalAccountIdentification.bankCode) && - Objects.equals(this.type, dkLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, dkLocalAccountIdentification.accountNumber) + && Objects.equals(this.bankCode, dkLocalAccountIdentification.bankCode) + && Objects.equals(this.type, dkLocalAccountIdentification.type); } @Override @@ -214,8 +213,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +222,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DKLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of DKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to DKLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DKLocalAccountIdentification */ - public static DKLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static DKLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DKLocalAccountIdentification.class); } -/** - * Convert an instance of DKLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DKLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/DataReviewConfirmationResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/DataReviewConfirmationResponse.java index 7af2ec394..ac435905a 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/DataReviewConfirmationResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/DataReviewConfirmationResponse.java @@ -2,47 +2,35 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * DataReviewConfirmationResponse - */ -@JsonPropertyOrder({ - DataReviewConfirmationResponse.JSON_PROPERTY_DATA_REVIEWED_AT -}) - +/** DataReviewConfirmationResponse */ +@JsonPropertyOrder({DataReviewConfirmationResponse.JSON_PROPERTY_DATA_REVIEWED_AT}) public class DataReviewConfirmationResponse { public static final String JSON_PROPERTY_DATA_REVIEWED_AT = "dataReviewedAt"; private String dataReviewedAt; - public DataReviewConfirmationResponse() { - } + public DataReviewConfirmationResponse() {} /** * Date when data review was confirmed. * * @param dataReviewedAt Date when data review was confirmed. - * @return the current {@code DataReviewConfirmationResponse} instance, allowing for method chaining + * @return the current {@code DataReviewConfirmationResponse} instance, allowing for method + * chaining */ public DataReviewConfirmationResponse dataReviewedAt(String dataReviewedAt) { this.dataReviewedAt = dataReviewedAt; @@ -51,6 +39,7 @@ public DataReviewConfirmationResponse dataReviewedAt(String dataReviewedAt) { /** * Date when data review was confirmed. + * * @return dataReviewedAt Date when data review was confirmed. */ @JsonProperty(JSON_PROPERTY_DATA_REVIEWED_AT) @@ -70,9 +59,7 @@ public void setDataReviewedAt(String dataReviewedAt) { this.dataReviewedAt = dataReviewedAt; } - /** - * Return true if this DataReviewConfirmationResponse object is equal to o. - */ + /** Return true if this DataReviewConfirmationResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -81,7 +68,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - DataReviewConfirmationResponse dataReviewConfirmationResponse = (DataReviewConfirmationResponse) o; + DataReviewConfirmationResponse dataReviewConfirmationResponse = + (DataReviewConfirmationResponse) o; return Objects.equals(this.dataReviewedAt, dataReviewConfirmationResponse.dataReviewedAt); } @@ -100,8 +88,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +97,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DataReviewConfirmationResponse given an JSON string * * @param jsonString JSON string * @return An instance of DataReviewConfirmationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to DataReviewConfirmationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DataReviewConfirmationResponse */ - public static DataReviewConfirmationResponse fromJson(String jsonString) throws JsonProcessingException { + public static DataReviewConfirmationResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DataReviewConfirmationResponse.class); } -/** - * Convert an instance of DataReviewConfirmationResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DataReviewConfirmationResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/Document.java b/src/main/java/com/adyen/model/legalentitymanagement/Document.java index 1e926ab16..1f44345bf 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/Document.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/Document.java @@ -2,36 +2,29 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.legalentitymanagement.Attachment; -import com.adyen.model.legalentitymanagement.OwnerEntity; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * Document - */ +/** Document */ @JsonPropertyOrder({ Document.JSON_PROPERTY_ATTACHMENT, Document.JSON_PROPERTY_ATTACHMENTS, @@ -47,7 +40,6 @@ Document.JSON_PROPERTY_OWNER, Document.JSON_PROPERTY_TYPE }) - public class Document { public static final String JSON_PROPERTY_ATTACHMENT = "attachment"; private Attachment attachment; @@ -89,10 +81,21 @@ public class Document { private OwnerEntity owner; /** - * Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value is **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * Type of document, used when providing an ID number or uploading a document. The possible values + * depend on the legal entity type. * For **organization**, the `type` values can be + * **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, + * **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or + * **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be + * **identityCard**, **driversLicense**, **passport**, **liveSelfie**, + * **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, + * **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For + * **soleProprietorship**, the `type` values can be **constitutionalDocument**, + * **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is + * **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value is + * **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). */ public enum TypeEnum { - BANKSTATEMENT(String.valueOf("bankStatement")), DRIVERSLICENSE(String.valueOf("driversLicense")), @@ -136,7 +139,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -157,7 +160,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -165,15 +172,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public Document() { - } + public Document() {} @JsonCreator public Document( - @JsonProperty(JSON_PROPERTY_CREATION_DATE) OffsetDateTime creationDate, - @JsonProperty(JSON_PROPERTY_ID) String id, - @JsonProperty(JSON_PROPERTY_MODIFICATION_DATE) OffsetDateTime modificationDate - ) { + @JsonProperty(JSON_PROPERTY_CREATION_DATE) OffsetDateTime creationDate, + @JsonProperty(JSON_PROPERTY_ID) String id, + @JsonProperty(JSON_PROPERTY_MODIFICATION_DATE) OffsetDateTime modificationDate) { this(); this.creationDate = creationDate; this.id = id; @@ -183,7 +188,7 @@ public Document( /** * attachment * - * @param attachment + * @param attachment * @return the current {@code Document} instance, allowing for method chaining */ public Document attachment(Attachment attachment) { @@ -193,7 +198,8 @@ public Document attachment(Attachment attachment) { /** * Get attachment - * @return attachment + * + * @return attachment */ @JsonProperty(JSON_PROPERTY_ATTACHMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,7 +210,7 @@ public Attachment getAttachment() { /** * attachment * - * @param attachment + * @param attachment */ @JsonProperty(JSON_PROPERTY_ATTACHMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -213,9 +219,11 @@ public void setAttachment(Attachment attachment) { } /** - * Array that contains the document. The array supports multiple attachments for uploading different sides or pages of a document. + * Array that contains the document. The array supports multiple attachments for uploading + * different sides or pages of a document. * - * @param attachments Array that contains the document. The array supports multiple attachments for uploading different sides or pages of a document. + * @param attachments Array that contains the document. The array supports multiple attachments + * for uploading different sides or pages of a document. * @return the current {@code Document} instance, allowing for method chaining */ public Document attachments(List attachments) { @@ -232,8 +240,11 @@ public Document addAttachmentsItem(Attachment attachmentsItem) { } /** - * Array that contains the document. The array supports multiple attachments for uploading different sides or pages of a document. - * @return attachments Array that contains the document. The array supports multiple attachments for uploading different sides or pages of a document. + * Array that contains the document. The array supports multiple attachments for uploading + * different sides or pages of a document. + * + * @return attachments Array that contains the document. The array supports multiple attachments + * for uploading different sides or pages of a document. */ @JsonProperty(JSON_PROPERTY_ATTACHMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,9 +253,11 @@ public List getAttachments() { } /** - * Array that contains the document. The array supports multiple attachments for uploading different sides or pages of a document. + * Array that contains the document. The array supports multiple attachments for uploading + * different sides or pages of a document. * - * @param attachments Array that contains the document. The array supports multiple attachments for uploading different sides or pages of a document. + * @param attachments Array that contains the document. The array supports multiple attachments + * for uploading different sides or pages of a document. */ @JsonProperty(JSON_PROPERTY_ATTACHMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -254,6 +267,7 @@ public void setAttachments(List attachments) { /** * The creation date of the document. + * * @return creationDate The creation date of the document. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @@ -262,7 +276,6 @@ public OffsetDateTime getCreationDate() { return creationDate; } - /** * Your description for the document. * @@ -276,6 +289,7 @@ public Document description(String description) { /** * Your description for the document. + * * @return description Your description for the document. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -300,7 +314,6 @@ public void setDescription(String description) { * * @param expiryDate The expiry date of the document, in YYYY-MM-DD format. * @return the current {@code Document} instance, allowing for method chaining - * * @deprecated since Legal Entity Management API v1 */ @Deprecated // deprecated since Legal Entity Management API v1 @@ -311,6 +324,7 @@ public Document expiryDate(String expiryDate) { /** * The expiry date of the document, in YYYY-MM-DD format. + * * @return expiryDate The expiry date of the document, in YYYY-MM-DD format. * @deprecated // deprecated since Legal Entity Management API v1 */ @@ -325,7 +339,6 @@ public String getExpiryDate() { * The expiry date of the document, in YYYY-MM-DD format. * * @param expiryDate The expiry date of the document, in YYYY-MM-DD format. - * * @deprecated since Legal Entity Management API v1 */ @Deprecated // deprecated since Legal Entity Management API v1 @@ -348,6 +361,7 @@ public Document fileName(String fileName) { /** * The filename of the document. + * * @return fileName The filename of the document. */ @JsonProperty(JSON_PROPERTY_FILE_NAME) @@ -369,6 +383,7 @@ public void setFileName(String fileName) { /** * The unique identifier of the document. + * * @return id The unique identifier of the document. */ @JsonProperty(JSON_PROPERTY_ID) @@ -377,13 +392,14 @@ public String getId() { return id; } - /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code where the document was issued. For example, **US**. * - * @param issuerCountry The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**. + * @param issuerCountry The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document + * was issued. For example, **US**. * @return the current {@code Document} instance, allowing for method chaining - * * @deprecated since Legal Entity Management API v1 */ @Deprecated // deprecated since Legal Entity Management API v1 @@ -393,8 +409,12 @@ public Document issuerCountry(String issuerCountry) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**. - * @return issuerCountry The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code where the document was issued. For example, **US**. + * + * @return issuerCountry The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document + * was issued. For example, **US**. * @deprecated // deprecated since Legal Entity Management API v1 */ @Deprecated // deprecated since Legal Entity Management API v1 @@ -405,10 +425,12 @@ public String getIssuerCountry() { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**. - * - * @param issuerCountry The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code where the document was issued. For example, **US**. * + * @param issuerCountry The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document + * was issued. For example, **US**. * @deprecated since Legal Entity Management API v1 */ @Deprecated // deprecated since Legal Entity Management API v1 @@ -423,7 +445,6 @@ public void setIssuerCountry(String issuerCountry) { * * @param issuerState The state or province where the document was issued (AU only). * @return the current {@code Document} instance, allowing for method chaining - * * @deprecated since Legal Entity Management API v1 */ @Deprecated // deprecated since Legal Entity Management API v1 @@ -434,6 +455,7 @@ public Document issuerState(String issuerState) { /** * The state or province where the document was issued (AU only). + * * @return issuerState The state or province where the document was issued (AU only). * @deprecated // deprecated since Legal Entity Management API v1 */ @@ -448,7 +470,6 @@ public String getIssuerState() { * The state or province where the document was issued (AU only). * * @param issuerState The state or province where the document was issued (AU only). - * * @deprecated since Legal Entity Management API v1 */ @Deprecated // deprecated since Legal Entity Management API v1 @@ -460,6 +481,7 @@ public void setIssuerState(String issuerState) { /** * The modification date of the document. + * * @return modificationDate The modification date of the document. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_DATE) @@ -468,7 +490,6 @@ public OffsetDateTime getModificationDate() { return modificationDate; } - /** * The number in the document. * @@ -482,6 +503,7 @@ public Document number(String number) { /** * The number in the document. + * * @return number The number in the document. */ @JsonProperty(JSON_PROPERTY_NUMBER) @@ -504,7 +526,7 @@ public void setNumber(String number) { /** * owner * - * @param owner + * @param owner * @return the current {@code Document} instance, allowing for method chaining */ public Document owner(OwnerEntity owner) { @@ -514,7 +536,8 @@ public Document owner(OwnerEntity owner) { /** * Get owner - * @return owner + * + * @return owner */ @JsonProperty(JSON_PROPERTY_OWNER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -525,7 +548,7 @@ public OwnerEntity getOwner() { /** * owner * - * @param owner + * @param owner */ @JsonProperty(JSON_PROPERTY_OWNER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -534,9 +557,33 @@ public void setOwner(OwnerEntity owner) { } /** - * Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value is **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * Type of document, used when providing an ID number or uploading a document. The possible values + * depend on the legal entity type. * For **organization**, the `type` values can be + * **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, + * **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or + * **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be + * **identityCard**, **driversLicense**, **passport**, **liveSelfie**, + * **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, + * **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For + * **soleProprietorship**, the `type` values can be **constitutionalDocument**, + * **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is + * **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value is + * **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). * - * @param type Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value is **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * @param type Type of document, used when providing an ID number or uploading a document. The + * possible values depend on the legal entity type. * For **organization**, the + * `type` values can be **proofOfAddress**, **registrationDocument**, + * **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, + * **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the + * `type` values can be **identityCard**, **driversLicense**, **passport**, + * **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, + * **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * + * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, + * **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is + * **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value + * is **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). * @return the current {@code Document} instance, allowing for method chaining */ public Document type(TypeEnum type) { @@ -545,8 +592,33 @@ public Document type(TypeEnum type) { } /** - * Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value is **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - * @return type Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value is **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * Type of document, used when providing an ID number or uploading a document. The possible values + * depend on the legal entity type. * For **organization**, the `type` values can be + * **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, + * **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or + * **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be + * **identityCard**, **driversLicense**, **passport**, **liveSelfie**, + * **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, + * **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For + * **soleProprietorship**, the `type` values can be **constitutionalDocument**, + * **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is + * **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value is + * **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * + * @return type Type of document, used when providing an ID number or uploading a document. The + * possible values depend on the legal entity type. * For **organization**, the + * `type` values can be **proofOfAddress**, **registrationDocument**, + * **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, + * **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the + * `type` values can be **identityCard**, **driversLicense**, **passport**, + * **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, + * **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * + * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, + * **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is + * **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value + * is **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -555,9 +627,33 @@ public TypeEnum getType() { } /** - * Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value is **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * Type of document, used when providing an ID number or uploading a document. The possible values + * depend on the legal entity type. * For **organization**, the `type` values can be + * **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, + * **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or + * **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be + * **identityCard**, **driversLicense**, **passport**, **liveSelfie**, + * **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, + * **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For + * **soleProprietorship**, the `type` values can be **constitutionalDocument**, + * **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is + * **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value is + * **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). * - * @param type Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value is **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * @param type Type of document, used when providing an ID number or uploading a document. The + * possible values depend on the legal entity type. * For **organization**, the + * `type` values can be **proofOfAddress**, **registrationDocument**, + * **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, + * **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the + * `type` values can be **identityCard**, **driversLicense**, **passport**, + * **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, + * **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * + * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, + * **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is + * **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value + * is **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -565,9 +661,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this Document object is equal to o. - */ + /** Return true if this Document object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -577,24 +671,37 @@ public boolean equals(Object o) { return false; } Document document = (Document) o; - return Objects.equals(this.attachment, document.attachment) && - Objects.equals(this.attachments, document.attachments) && - Objects.equals(this.creationDate, document.creationDate) && - Objects.equals(this.description, document.description) && - Objects.equals(this.expiryDate, document.expiryDate) && - Objects.equals(this.fileName, document.fileName) && - Objects.equals(this.id, document.id) && - Objects.equals(this.issuerCountry, document.issuerCountry) && - Objects.equals(this.issuerState, document.issuerState) && - Objects.equals(this.modificationDate, document.modificationDate) && - Objects.equals(this.number, document.number) && - Objects.equals(this.owner, document.owner) && - Objects.equals(this.type, document.type); + return Objects.equals(this.attachment, document.attachment) + && Objects.equals(this.attachments, document.attachments) + && Objects.equals(this.creationDate, document.creationDate) + && Objects.equals(this.description, document.description) + && Objects.equals(this.expiryDate, document.expiryDate) + && Objects.equals(this.fileName, document.fileName) + && Objects.equals(this.id, document.id) + && Objects.equals(this.issuerCountry, document.issuerCountry) + && Objects.equals(this.issuerState, document.issuerState) + && Objects.equals(this.modificationDate, document.modificationDate) + && Objects.equals(this.number, document.number) + && Objects.equals(this.owner, document.owner) + && Objects.equals(this.type, document.type); } @Override public int hashCode() { - return Objects.hash(attachment, attachments, creationDate, description, expiryDate, fileName, id, issuerCountry, issuerState, modificationDate, number, owner, type); + return Objects.hash( + attachment, + attachments, + creationDate, + description, + expiryDate, + fileName, + id, + issuerCountry, + issuerState, + modificationDate, + number, + owner, + type); } @Override @@ -619,8 +726,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -629,7 +735,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Document given an JSON string * * @param jsonString JSON string @@ -639,11 +745,12 @@ private String toIndentedString(Object o) { public static Document fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Document.class); } -/** - * Convert an instance of Document to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Document to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/DocumentPage.java b/src/main/java/com/adyen/model/legalentitymanagement/DocumentPage.java index 9af191953..3bbb85673 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/DocumentPage.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/DocumentPage.java @@ -2,37 +2,31 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * DocumentPage - */ +/** DocumentPage */ @JsonPropertyOrder({ DocumentPage.JSON_PROPERTY_PAGE_NAME, DocumentPage.JSON_PROPERTY_PAGE_NUMBER, DocumentPage.JSON_PROPERTY_TYPE }) - public class DocumentPage { public static final String JSON_PROPERTY_PAGE_NAME = "pageName"; private String pageName; @@ -40,11 +34,8 @@ public class DocumentPage { public static final String JSON_PROPERTY_PAGE_NUMBER = "pageNumber"; private Integer pageNumber; - /** - * Gets or Sets type - */ + /** Gets or Sets type */ public enum TypeEnum { - BACK(String.valueOf("BACK")), FRONT(String.valueOf("FRONT")), @@ -56,7 +47,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -77,7 +68,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -85,13 +80,12 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public DocumentPage() { - } + public DocumentPage() {} /** * pageName * - * @param pageName + * @param pageName * @return the current {@code DocumentPage} instance, allowing for method chaining */ public DocumentPage pageName(String pageName) { @@ -101,7 +95,8 @@ public DocumentPage pageName(String pageName) { /** * Get pageName - * @return pageName + * + * @return pageName */ @JsonProperty(JSON_PROPERTY_PAGE_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,7 +107,7 @@ public String getPageName() { /** * pageName * - * @param pageName + * @param pageName */ @JsonProperty(JSON_PROPERTY_PAGE_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,7 +118,7 @@ public void setPageName(String pageName) { /** * pageNumber * - * @param pageNumber + * @param pageNumber * @return the current {@code DocumentPage} instance, allowing for method chaining */ public DocumentPage pageNumber(Integer pageNumber) { @@ -133,7 +128,8 @@ public DocumentPage pageNumber(Integer pageNumber) { /** * Get pageNumber - * @return pageNumber + * + * @return pageNumber */ @JsonProperty(JSON_PROPERTY_PAGE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,7 +140,7 @@ public Integer getPageNumber() { /** * pageNumber * - * @param pageNumber + * @param pageNumber */ @JsonProperty(JSON_PROPERTY_PAGE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -155,7 +151,7 @@ public void setPageNumber(Integer pageNumber) { /** * type * - * @param type + * @param type * @return the current {@code DocumentPage} instance, allowing for method chaining */ public DocumentPage type(TypeEnum type) { @@ -165,7 +161,8 @@ public DocumentPage type(TypeEnum type) { /** * Get type - * @return type + * + * @return type */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,7 +173,7 @@ public TypeEnum getType() { /** * type * - * @param type + * @param type */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -184,9 +181,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this DocumentPage object is equal to o. - */ + /** Return true if this DocumentPage object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -196,9 +191,9 @@ public boolean equals(Object o) { return false; } DocumentPage documentPage = (DocumentPage) o; - return Objects.equals(this.pageName, documentPage.pageName) && - Objects.equals(this.pageNumber, documentPage.pageNumber) && - Objects.equals(this.type, documentPage.type); + return Objects.equals(this.pageName, documentPage.pageName) + && Objects.equals(this.pageNumber, documentPage.pageNumber) + && Objects.equals(this.type, documentPage.type); } @Override @@ -218,8 +213,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -228,7 +222,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DocumentPage given an JSON string * * @param jsonString JSON string @@ -238,11 +232,12 @@ private String toIndentedString(Object o) { public static DocumentPage fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DocumentPage.class); } -/** - * Convert an instance of DocumentPage to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DocumentPage to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/DocumentReference.java b/src/main/java/com/adyen/model/legalentitymanagement/DocumentReference.java index 9ffd0349b..1f8721c29 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/DocumentReference.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/DocumentReference.java @@ -2,35 +2,25 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.legalentitymanagement.DocumentPage; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -/** - * DocumentReference - */ +/** DocumentReference */ @JsonPropertyOrder({ DocumentReference.JSON_PROPERTY_ACTIVE, DocumentReference.JSON_PROPERTY_DESCRIPTION, @@ -40,7 +30,6 @@ DocumentReference.JSON_PROPERTY_PAGES, DocumentReference.JSON_PROPERTY_TYPE }) - public class DocumentReference { public static final String JSON_PROPERTY_ACTIVE = "active"; private Boolean active; @@ -63,8 +52,7 @@ public class DocumentReference { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public DocumentReference() { - } + public DocumentReference() {} /** * Identifies whether the document is active and used for checks. @@ -79,6 +67,7 @@ public DocumentReference active(Boolean active) { /** * Identifies whether the document is active and used for checks. + * * @return active Identifies whether the document is active and used for checks. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @@ -111,6 +100,7 @@ public DocumentReference description(String description) { /** * Your description for the document. + * * @return description Your description for the document. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -143,6 +133,7 @@ public DocumentReference fileName(String fileName) { /** * Document name. + * * @return fileName Document name. */ @JsonProperty(JSON_PROPERTY_FILE_NAME) @@ -175,6 +166,7 @@ public DocumentReference id(String id) { /** * The unique identifier of the resource. + * * @return id The unique identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -207,6 +199,7 @@ public DocumentReference modificationDate(OffsetDateTime modificationDate) { /** * The modification date of the document. + * * @return modificationDate The modification date of the document. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_DATE) @@ -247,6 +240,7 @@ public DocumentReference addPagesItem(DocumentPage pagesItem) { /** * List of document pages + * * @return pages List of document pages */ @JsonProperty(JSON_PROPERTY_PAGES) @@ -279,6 +273,7 @@ public DocumentReference type(String type) { /** * Type of document, used when providing an ID number or uploading a document. + * * @return type Type of document, used when providing an ID number or uploading a document. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -298,9 +293,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this DocumentReference object is equal to o. - */ + /** Return true if this DocumentReference object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -310,13 +303,13 @@ public boolean equals(Object o) { return false; } DocumentReference documentReference = (DocumentReference) o; - return Objects.equals(this.active, documentReference.active) && - Objects.equals(this.description, documentReference.description) && - Objects.equals(this.fileName, documentReference.fileName) && - Objects.equals(this.id, documentReference.id) && - Objects.equals(this.modificationDate, documentReference.modificationDate) && - Objects.equals(this.pages, documentReference.pages) && - Objects.equals(this.type, documentReference.type); + return Objects.equals(this.active, documentReference.active) + && Objects.equals(this.description, documentReference.description) + && Objects.equals(this.fileName, documentReference.fileName) + && Objects.equals(this.id, documentReference.id) + && Objects.equals(this.modificationDate, documentReference.modificationDate) + && Objects.equals(this.pages, documentReference.pages) + && Objects.equals(this.type, documentReference.type); } @Override @@ -340,8 +333,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -350,7 +342,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DocumentReference given an JSON string * * @param jsonString JSON string @@ -360,11 +352,12 @@ private String toIndentedString(Object o) { public static DocumentReference fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DocumentReference.class); } -/** - * Convert an instance of DocumentReference to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DocumentReference to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/EntityReference.java b/src/main/java/com/adyen/model/legalentitymanagement/EntityReference.java index 47a95f84c..4c35780d0 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/EntityReference.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/EntityReference.java @@ -2,41 +2,28 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * EntityReference - */ -@JsonPropertyOrder({ - EntityReference.JSON_PROPERTY_ID -}) - +/** EntityReference */ +@JsonPropertyOrder({EntityReference.JSON_PROPERTY_ID}) public class EntityReference { public static final String JSON_PROPERTY_ID = "id"; private String id; - public EntityReference() { - } + public EntityReference() {} /** * The unique identifier of the resource. @@ -51,6 +38,7 @@ public EntityReference id(String id) { /** * The unique identifier of the resource. + * * @return id The unique identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -70,9 +58,7 @@ public void setId(String id) { this.id = id; } - /** - * Return true if this EntityReference object is equal to o. - */ + /** Return true if this EntityReference object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,7 +95,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of EntityReference given an JSON string * * @param jsonString JSON string @@ -120,11 +105,12 @@ private String toIndentedString(Object o) { public static EntityReference fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, EntityReference.class); } -/** - * Convert an instance of EntityReference to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of EntityReference to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/FinancialReport.java b/src/main/java/com/adyen/model/legalentitymanagement/FinancialReport.java index dd73f10b5..c11ca5ed7 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/FinancialReport.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/FinancialReport.java @@ -2,31 +2,22 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * FinancialReport - */ +/** FinancialReport */ @JsonPropertyOrder({ FinancialReport.JSON_PROPERTY_ANNUAL_TURNOVER, FinancialReport.JSON_PROPERTY_BALANCE_SHEET_TOTAL, @@ -35,7 +26,6 @@ FinancialReport.JSON_PROPERTY_EMPLOYEE_COUNT, FinancialReport.JSON_PROPERTY_NET_ASSETS }) - public class FinancialReport { public static final String JSON_PROPERTY_ANNUAL_TURNOVER = "annualTurnover"; private String annualTurnover; @@ -55,8 +45,7 @@ public class FinancialReport { public static final String JSON_PROPERTY_NET_ASSETS = "netAssets"; private String netAssets; - public FinancialReport() { - } + public FinancialReport() {} /** * The annual turnover of the business. @@ -71,6 +60,7 @@ public FinancialReport annualTurnover(String annualTurnover) { /** * The annual turnover of the business. + * * @return annualTurnover The annual turnover of the business. */ @JsonProperty(JSON_PROPERTY_ANNUAL_TURNOVER) @@ -103,6 +93,7 @@ public FinancialReport balanceSheetTotal(String balanceSheetTotal) { /** * The balance sheet total of the business. + * * @return balanceSheetTotal The balance sheet total of the business. */ @JsonProperty(JSON_PROPERTY_BALANCE_SHEET_TOTAL) @@ -125,7 +116,8 @@ public void setBalanceSheetTotal(String balanceSheetTotal) { /** * The currency used for the annual turnover, balance sheet total, and net assets. * - * @param currencyOfFinancialData The currency used for the annual turnover, balance sheet total, and net assets. + * @param currencyOfFinancialData The currency used for the annual turnover, balance sheet total, + * and net assets. * @return the current {@code FinancialReport} instance, allowing for method chaining */ public FinancialReport currencyOfFinancialData(String currencyOfFinancialData) { @@ -135,7 +127,9 @@ public FinancialReport currencyOfFinancialData(String currencyOfFinancialData) { /** * The currency used for the annual turnover, balance sheet total, and net assets. - * @return currencyOfFinancialData The currency used for the annual turnover, balance sheet total, and net assets. + * + * @return currencyOfFinancialData The currency used for the annual turnover, balance sheet total, + * and net assets. */ @JsonProperty(JSON_PROPERTY_CURRENCY_OF_FINANCIAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,7 +140,8 @@ public String getCurrencyOfFinancialData() { /** * The currency used for the annual turnover, balance sheet total, and net assets. * - * @param currencyOfFinancialData The currency used for the annual turnover, balance sheet total, and net assets. + * @param currencyOfFinancialData The currency used for the annual turnover, balance sheet total, + * and net assets. */ @JsonProperty(JSON_PROPERTY_CURRENCY_OF_FINANCIAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,6 +162,7 @@ public FinancialReport dateOfFinancialData(String dateOfFinancialData) { /** * The date the financial data were provided, in YYYY-MM-DD format. + * * @return dateOfFinancialData The date the financial data were provided, in YYYY-MM-DD format. */ @JsonProperty(JSON_PROPERTY_DATE_OF_FINANCIAL_DATA) @@ -199,6 +195,7 @@ public FinancialReport employeeCount(String employeeCount) { /** * The number of employees of the business. + * * @return employeeCount The number of employees of the business. */ @JsonProperty(JSON_PROPERTY_EMPLOYEE_COUNT) @@ -231,6 +228,7 @@ public FinancialReport netAssets(String netAssets) { /** * The net assets of the business. + * * @return netAssets The net assets of the business. */ @JsonProperty(JSON_PROPERTY_NET_ASSETS) @@ -250,9 +248,7 @@ public void setNetAssets(String netAssets) { this.netAssets = netAssets; } - /** - * Return true if this FinancialReport object is equal to o. - */ + /** Return true if this FinancialReport object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -262,17 +258,23 @@ public boolean equals(Object o) { return false; } FinancialReport financialReport = (FinancialReport) o; - return Objects.equals(this.annualTurnover, financialReport.annualTurnover) && - Objects.equals(this.balanceSheetTotal, financialReport.balanceSheetTotal) && - Objects.equals(this.currencyOfFinancialData, financialReport.currencyOfFinancialData) && - Objects.equals(this.dateOfFinancialData, financialReport.dateOfFinancialData) && - Objects.equals(this.employeeCount, financialReport.employeeCount) && - Objects.equals(this.netAssets, financialReport.netAssets); + return Objects.equals(this.annualTurnover, financialReport.annualTurnover) + && Objects.equals(this.balanceSheetTotal, financialReport.balanceSheetTotal) + && Objects.equals(this.currencyOfFinancialData, financialReport.currencyOfFinancialData) + && Objects.equals(this.dateOfFinancialData, financialReport.dateOfFinancialData) + && Objects.equals(this.employeeCount, financialReport.employeeCount) + && Objects.equals(this.netAssets, financialReport.netAssets); } @Override public int hashCode() { - return Objects.hash(annualTurnover, balanceSheetTotal, currencyOfFinancialData, dateOfFinancialData, employeeCount, netAssets); + return Objects.hash( + annualTurnover, + balanceSheetTotal, + currencyOfFinancialData, + dateOfFinancialData, + employeeCount, + netAssets); } @Override @@ -281,8 +283,12 @@ public String toString() { sb.append("class FinancialReport {\n"); sb.append(" annualTurnover: ").append(toIndentedString(annualTurnover)).append("\n"); sb.append(" balanceSheetTotal: ").append(toIndentedString(balanceSheetTotal)).append("\n"); - sb.append(" currencyOfFinancialData: ").append(toIndentedString(currencyOfFinancialData)).append("\n"); - sb.append(" dateOfFinancialData: ").append(toIndentedString(dateOfFinancialData)).append("\n"); + sb.append(" currencyOfFinancialData: ") + .append(toIndentedString(currencyOfFinancialData)) + .append("\n"); + sb.append(" dateOfFinancialData: ") + .append(toIndentedString(dateOfFinancialData)) + .append("\n"); sb.append(" employeeCount: ").append(toIndentedString(employeeCount)).append("\n"); sb.append(" netAssets: ").append(toIndentedString(netAssets)).append("\n"); sb.append("}"); @@ -290,8 +296,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -300,7 +305,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of FinancialReport given an JSON string * * @param jsonString JSON string @@ -310,11 +315,12 @@ private String toIndentedString(Object o) { public static FinancialReport fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, FinancialReport.class); } -/** - * Convert an instance of FinancialReport to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of FinancialReport to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/GeneratePciDescriptionRequest.java b/src/main/java/com/adyen/model/legalentitymanagement/GeneratePciDescriptionRequest.java index 681b507e8..48b8a536d 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/GeneratePciDescriptionRequest.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/GeneratePciDescriptionRequest.java @@ -2,44 +2,35 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * GeneratePciDescriptionRequest - */ +/** GeneratePciDescriptionRequest */ @JsonPropertyOrder({ GeneratePciDescriptionRequest.JSON_PROPERTY_ADDITIONAL_SALES_CHANNELS, GeneratePciDescriptionRequest.JSON_PROPERTY_LANGUAGE }) - public class GeneratePciDescriptionRequest { - /** - * Gets or Sets additionalSalesChannels - */ + /** Gets or Sets additionalSalesChannels */ public enum AdditionalSalesChannelsEnum { - ECOMMERCE(String.valueOf("eCommerce")), ECOMMOTO(String.valueOf("ecomMoto")), @@ -53,7 +44,7 @@ public enum AdditionalSalesChannelsEnum { private String value; AdditionalSalesChannelsEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -74,7 +65,11 @@ public static AdditionalSalesChannelsEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AdditionalSalesChannelsEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AdditionalSalesChannelsEnum.values())); + LOG.warning( + "AdditionalSalesChannelsEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AdditionalSalesChannelsEnum.values())); return null; } } @@ -85,21 +80,31 @@ public static AdditionalSalesChannelsEnum fromValue(String value) { public static final String JSON_PROPERTY_LANGUAGE = "language"; private String language; - public GeneratePciDescriptionRequest() { - } + public GeneratePciDescriptionRequest() {} /** - * An array of additional sales channels to generate PCI questionnaires. Include the relevant sales channels if you need your user to sign PCI questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** + * An array of additional sales channels to generate PCI questionnaires. Include the relevant + * sales channels if you need your user to sign PCI questionnaires. Not required if you [create + * stores](https://docs.adyen.com/platforms) and [add payment + * methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the + * questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** * - * @param additionalSalesChannels An array of additional sales channels to generate PCI questionnaires. Include the relevant sales channels if you need your user to sign PCI questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** - * @return the current {@code GeneratePciDescriptionRequest} instance, allowing for method chaining + * @param additionalSalesChannels An array of additional sales channels to generate PCI + * questionnaires. Include the relevant sales channels if you need your user to sign PCI + * questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and + * [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate + * the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** + * @return the current {@code GeneratePciDescriptionRequest} instance, allowing for method + * chaining */ - public GeneratePciDescriptionRequest additionalSalesChannels(List additionalSalesChannels) { + public GeneratePciDescriptionRequest additionalSalesChannels( + List additionalSalesChannels) { this.additionalSalesChannels = additionalSalesChannels; return this; } - public GeneratePciDescriptionRequest addAdditionalSalesChannelsItem(AdditionalSalesChannelsEnum additionalSalesChannelsItem) { + public GeneratePciDescriptionRequest addAdditionalSalesChannelsItem( + AdditionalSalesChannelsEnum additionalSalesChannelsItem) { if (this.additionalSalesChannels == null) { this.additionalSalesChannels = new ArrayList<>(); } @@ -108,8 +113,17 @@ public GeneratePciDescriptionRequest addAdditionalSalesChannelsItem(AdditionalSa } /** - * An array of additional sales channels to generate PCI questionnaires. Include the relevant sales channels if you need your user to sign PCI questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** - * @return additionalSalesChannels An array of additional sales channels to generate PCI questionnaires. Include the relevant sales channels if you need your user to sign PCI questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** + * An array of additional sales channels to generate PCI questionnaires. Include the relevant + * sales channels if you need your user to sign PCI questionnaires. Not required if you [create + * stores](https://docs.adyen.com/platforms) and [add payment + * methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the + * questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** + * + * @return additionalSalesChannels An array of additional sales channels to generate PCI + * questionnaires. Include the relevant sales channels if you need your user to sign PCI + * questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and + * [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate + * the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_SALES_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,21 +132,33 @@ public List getAdditionalSalesChannels() { } /** - * An array of additional sales channels to generate PCI questionnaires. Include the relevant sales channels if you need your user to sign PCI questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** + * An array of additional sales channels to generate PCI questionnaires. Include the relevant + * sales channels if you need your user to sign PCI questionnaires. Not required if you [create + * stores](https://docs.adyen.com/platforms) and [add payment + * methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the + * questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** * - * @param additionalSalesChannels An array of additional sales channels to generate PCI questionnaires. Include the relevant sales channels if you need your user to sign PCI questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** + * @param additionalSalesChannels An array of additional sales channels to generate PCI + * questionnaires. Include the relevant sales channels if you need your user to sign PCI + * questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and + * [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate + * the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_SALES_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAdditionalSalesChannels(List additionalSalesChannels) { + public void setAdditionalSalesChannels( + List additionalSalesChannels) { this.additionalSalesChannels = additionalSalesChannels; } /** - * Sets the language of the PCI questionnaire. Its value is a two-character [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) language code, for example, **en**. + * Sets the language of the PCI questionnaire. Its value is a two-character [ISO + * 639-1](https://en.wikipedia.org/wiki/ISO_639-1) language code, for example, **en**. * - * @param language Sets the language of the PCI questionnaire. Its value is a two-character [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) language code, for example, **en**. - * @return the current {@code GeneratePciDescriptionRequest} instance, allowing for method chaining + * @param language Sets the language of the PCI questionnaire. Its value is a two-character [ISO + * 639-1](https://en.wikipedia.org/wiki/ISO_639-1) language code, for example, **en**. + * @return the current {@code GeneratePciDescriptionRequest} instance, allowing for method + * chaining */ public GeneratePciDescriptionRequest language(String language) { this.language = language; @@ -140,8 +166,11 @@ public GeneratePciDescriptionRequest language(String language) { } /** - * Sets the language of the PCI questionnaire. Its value is a two-character [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) language code, for example, **en**. - * @return language Sets the language of the PCI questionnaire. Its value is a two-character [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) language code, for example, **en**. + * Sets the language of the PCI questionnaire. Its value is a two-character [ISO + * 639-1](https://en.wikipedia.org/wiki/ISO_639-1) language code, for example, **en**. + * + * @return language Sets the language of the PCI questionnaire. Its value is a two-character [ISO + * 639-1](https://en.wikipedia.org/wiki/ISO_639-1) language code, for example, **en**. */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,9 +179,11 @@ public String getLanguage() { } /** - * Sets the language of the PCI questionnaire. Its value is a two-character [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) language code, for example, **en**. + * Sets the language of the PCI questionnaire. Its value is a two-character [ISO + * 639-1](https://en.wikipedia.org/wiki/ISO_639-1) language code, for example, **en**. * - * @param language Sets the language of the PCI questionnaire. Its value is a two-character [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) language code, for example, **en**. + * @param language Sets the language of the PCI questionnaire. Its value is a two-character [ISO + * 639-1](https://en.wikipedia.org/wiki/ISO_639-1) language code, for example, **en**. */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,9 +191,7 @@ public void setLanguage(String language) { this.language = language; } - /** - * Return true if this GeneratePciDescriptionRequest object is equal to o. - */ + /** Return true if this GeneratePciDescriptionRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -172,8 +201,9 @@ public boolean equals(Object o) { return false; } GeneratePciDescriptionRequest generatePciDescriptionRequest = (GeneratePciDescriptionRequest) o; - return Objects.equals(this.additionalSalesChannels, generatePciDescriptionRequest.additionalSalesChannels) && - Objects.equals(this.language, generatePciDescriptionRequest.language); + return Objects.equals( + this.additionalSalesChannels, generatePciDescriptionRequest.additionalSalesChannels) + && Objects.equals(this.language, generatePciDescriptionRequest.language); } @Override @@ -185,15 +215,16 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GeneratePciDescriptionRequest {\n"); - sb.append(" additionalSalesChannels: ").append(toIndentedString(additionalSalesChannels)).append("\n"); + sb.append(" additionalSalesChannels: ") + .append(toIndentedString(additionalSalesChannels)) + .append("\n"); sb.append(" language: ").append(toIndentedString(language)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -202,21 +233,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of GeneratePciDescriptionRequest given an JSON string * * @param jsonString JSON string * @return An instance of GeneratePciDescriptionRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to GeneratePciDescriptionRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * GeneratePciDescriptionRequest */ - public static GeneratePciDescriptionRequest fromJson(String jsonString) throws JsonProcessingException { + public static GeneratePciDescriptionRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GeneratePciDescriptionRequest.class); } -/** - * Convert an instance of GeneratePciDescriptionRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of GeneratePciDescriptionRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/GeneratePciDescriptionResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/GeneratePciDescriptionResponse.java index d39bf84d4..55e0136e8 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/GeneratePciDescriptionResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/GeneratePciDescriptionResponse.java @@ -2,39 +2,30 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -/** - * GeneratePciDescriptionResponse - */ +/** GeneratePciDescriptionResponse */ @JsonPropertyOrder({ GeneratePciDescriptionResponse.JSON_PROPERTY_CONTENT, GeneratePciDescriptionResponse.JSON_PROPERTY_LANGUAGE, GeneratePciDescriptionResponse.JSON_PROPERTY_PCI_TEMPLATE_REFERENCES }) - public class GeneratePciDescriptionResponse { public static final String JSON_PROPERTY_CONTENT = "content"; private byte[] content; @@ -45,14 +36,14 @@ public class GeneratePciDescriptionResponse { public static final String JSON_PROPERTY_PCI_TEMPLATE_REFERENCES = "pciTemplateReferences"; private List pciTemplateReferences; - public GeneratePciDescriptionResponse() { - } + public GeneratePciDescriptionResponse() {} /** * The generated questionnaires in a base64 encoded format. * * @param content The generated questionnaires in a base64 encoded format. - * @return the current {@code GeneratePciDescriptionResponse} instance, allowing for method chaining + * @return the current {@code GeneratePciDescriptionResponse} instance, allowing for method + * chaining */ public GeneratePciDescriptionResponse content(byte[] content) { this.content = content; @@ -61,6 +52,7 @@ public GeneratePciDescriptionResponse content(byte[] content) { /** * The generated questionnaires in a base64 encoded format. + * * @return content The generated questionnaires in a base64 encoded format. */ @JsonProperty(JSON_PROPERTY_CONTENT) @@ -81,10 +73,14 @@ public void setContent(byte[] content) { } /** - * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code for the questionnaire. For example, **en**. + * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code + * for the questionnaire. For example, **en**. * - * @param language The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code for the questionnaire. For example, **en**. - * @return the current {@code GeneratePciDescriptionResponse} instance, allowing for method chaining + * @param language The two-letter + * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code for the + * questionnaire. For example, **en**. + * @return the current {@code GeneratePciDescriptionResponse} instance, allowing for method + * chaining */ public GeneratePciDescriptionResponse language(String language) { this.language = language; @@ -92,8 +88,12 @@ public GeneratePciDescriptionResponse language(String language) { } /** - * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code for the questionnaire. For example, **en**. - * @return language The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code for the questionnaire. For example, **en**. + * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code + * for the questionnaire. For example, **en**. + * + * @return language The two-letter + * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code for the + * questionnaire. For example, **en**. */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,9 +102,12 @@ public String getLanguage() { } /** - * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code for the questionnaire. For example, **en**. + * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code + * for the questionnaire. For example, **en**. * - * @param language The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code for the questionnaire. For example, **en**. + * @param language The two-letter + * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code for the + * questionnaire. For example, **en**. */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,17 +116,21 @@ public void setLanguage(String language) { } /** - * The array of Adyen-generated unique identifiers for the questionnaires. If empty, the user is not required to sign questionnaires. + * The array of Adyen-generated unique identifiers for the questionnaires. If empty, the user is + * not required to sign questionnaires. * - * @param pciTemplateReferences The array of Adyen-generated unique identifiers for the questionnaires. If empty, the user is not required to sign questionnaires. - * @return the current {@code GeneratePciDescriptionResponse} instance, allowing for method chaining + * @param pciTemplateReferences The array of Adyen-generated unique identifiers for the + * questionnaires. If empty, the user is not required to sign questionnaires. + * @return the current {@code GeneratePciDescriptionResponse} instance, allowing for method + * chaining */ public GeneratePciDescriptionResponse pciTemplateReferences(List pciTemplateReferences) { this.pciTemplateReferences = pciTemplateReferences; return this; } - public GeneratePciDescriptionResponse addPciTemplateReferencesItem(String pciTemplateReferencesItem) { + public GeneratePciDescriptionResponse addPciTemplateReferencesItem( + String pciTemplateReferencesItem) { if (this.pciTemplateReferences == null) { this.pciTemplateReferences = new ArrayList<>(); } @@ -132,8 +139,11 @@ public GeneratePciDescriptionResponse addPciTemplateReferencesItem(String pciTem } /** - * The array of Adyen-generated unique identifiers for the questionnaires. If empty, the user is not required to sign questionnaires. - * @return pciTemplateReferences The array of Adyen-generated unique identifiers for the questionnaires. If empty, the user is not required to sign questionnaires. + * The array of Adyen-generated unique identifiers for the questionnaires. If empty, the user is + * not required to sign questionnaires. + * + * @return pciTemplateReferences The array of Adyen-generated unique identifiers for the + * questionnaires. If empty, the user is not required to sign questionnaires. */ @JsonProperty(JSON_PROPERTY_PCI_TEMPLATE_REFERENCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +152,11 @@ public List getPciTemplateReferences() { } /** - * The array of Adyen-generated unique identifiers for the questionnaires. If empty, the user is not required to sign questionnaires. + * The array of Adyen-generated unique identifiers for the questionnaires. If empty, the user is + * not required to sign questionnaires. * - * @param pciTemplateReferences The array of Adyen-generated unique identifiers for the questionnaires. If empty, the user is not required to sign questionnaires. + * @param pciTemplateReferences The array of Adyen-generated unique identifiers for the + * questionnaires. If empty, the user is not required to sign questionnaires. */ @JsonProperty(JSON_PROPERTY_PCI_TEMPLATE_REFERENCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,9 +164,7 @@ public void setPciTemplateReferences(List pciTemplateReferences) { this.pciTemplateReferences = pciTemplateReferences; } - /** - * Return true if this GeneratePciDescriptionResponse object is equal to o. - */ + /** Return true if this GeneratePciDescriptionResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -163,10 +173,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - GeneratePciDescriptionResponse generatePciDescriptionResponse = (GeneratePciDescriptionResponse) o; - return Arrays.equals(this.content, generatePciDescriptionResponse.content) && - Objects.equals(this.language, generatePciDescriptionResponse.language) && - Objects.equals(this.pciTemplateReferences, generatePciDescriptionResponse.pciTemplateReferences); + GeneratePciDescriptionResponse generatePciDescriptionResponse = + (GeneratePciDescriptionResponse) o; + return Arrays.equals(this.content, generatePciDescriptionResponse.content) + && Objects.equals(this.language, generatePciDescriptionResponse.language) + && Objects.equals( + this.pciTemplateReferences, generatePciDescriptionResponse.pciTemplateReferences); } @Override @@ -180,14 +192,15 @@ public String toString() { sb.append("class GeneratePciDescriptionResponse {\n"); sb.append(" content: ").append(toIndentedString(content)).append("\n"); sb.append(" language: ").append(toIndentedString(language)).append("\n"); - sb.append(" pciTemplateReferences: ").append(toIndentedString(pciTemplateReferences)).append("\n"); + sb.append(" pciTemplateReferences: ") + .append(toIndentedString(pciTemplateReferences)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -196,21 +209,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of GeneratePciDescriptionResponse given an JSON string * * @param jsonString JSON string * @return An instance of GeneratePciDescriptionResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to GeneratePciDescriptionResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * GeneratePciDescriptionResponse */ - public static GeneratePciDescriptionResponse fromJson(String jsonString) throws JsonProcessingException { + public static GeneratePciDescriptionResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GeneratePciDescriptionResponse.class); } -/** - * Convert an instance of GeneratePciDescriptionResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of GeneratePciDescriptionResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/GetAcceptedTermsOfServiceDocumentResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/GetAcceptedTermsOfServiceDocumentResponse.java index 1229dc6cc..1aff8b866 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/GetAcceptedTermsOfServiceDocumentResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/GetAcceptedTermsOfServiceDocumentResponse.java @@ -2,38 +2,32 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * GetAcceptedTermsOfServiceDocumentResponse - */ +/** GetAcceptedTermsOfServiceDocumentResponse */ @JsonPropertyOrder({ GetAcceptedTermsOfServiceDocumentResponse.JSON_PROPERTY_DOCUMENT, GetAcceptedTermsOfServiceDocumentResponse.JSON_PROPERTY_ID, GetAcceptedTermsOfServiceDocumentResponse.JSON_PROPERTY_TERMS_OF_SERVICE_ACCEPTANCE_REFERENCE, GetAcceptedTermsOfServiceDocumentResponse.JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT }) - public class GetAcceptedTermsOfServiceDocumentResponse { public static final String JSON_PROPERTY_DOCUMENT = "document"; private byte[] document; @@ -41,26 +35,25 @@ public class GetAcceptedTermsOfServiceDocumentResponse { public static final String JSON_PROPERTY_ID = "id"; private String id; - public static final String JSON_PROPERTY_TERMS_OF_SERVICE_ACCEPTANCE_REFERENCE = "termsOfServiceAcceptanceReference"; + public static final String JSON_PROPERTY_TERMS_OF_SERVICE_ACCEPTANCE_REFERENCE = + "termsOfServiceAcceptanceReference"; private String termsOfServiceAcceptanceReference; - /** - * The format of the Terms of Service document. - */ + /** The format of the Terms of Service document. */ public enum TermsOfServiceDocumentFormatEnum { - JSON(String.valueOf("JSON")), PDF(String.valueOf("PDF")), TXT(String.valueOf("TXT")); - private static final Logger LOG = Logger.getLogger(TermsOfServiceDocumentFormatEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(TermsOfServiceDocumentFormatEnum.class.getName()); private String value; TermsOfServiceDocumentFormatEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -81,22 +74,29 @@ public static TermsOfServiceDocumentFormatEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TermsOfServiceDocumentFormatEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TermsOfServiceDocumentFormatEnum.values())); + LOG.warning( + "TermsOfServiceDocumentFormatEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TermsOfServiceDocumentFormatEnum.values())); return null; } } - public static final String JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT = "termsOfServiceDocumentFormat"; + public static final String JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT = + "termsOfServiceDocumentFormat"; private TermsOfServiceDocumentFormatEnum termsOfServiceDocumentFormat; - public GetAcceptedTermsOfServiceDocumentResponse() { - } + public GetAcceptedTermsOfServiceDocumentResponse() {} /** - * The accepted Terms of Service document in the requested format represented as a Base64-encoded bytes array. + * The accepted Terms of Service document in the requested format represented as a Base64-encoded + * bytes array. * - * @param document The accepted Terms of Service document in the requested format represented as a Base64-encoded bytes array. - * @return the current {@code GetAcceptedTermsOfServiceDocumentResponse} instance, allowing for method chaining + * @param document The accepted Terms of Service document in the requested format represented as a + * Base64-encoded bytes array. + * @return the current {@code GetAcceptedTermsOfServiceDocumentResponse} instance, allowing for + * method chaining */ public GetAcceptedTermsOfServiceDocumentResponse document(byte[] document) { this.document = document; @@ -104,8 +104,11 @@ public GetAcceptedTermsOfServiceDocumentResponse document(byte[] document) { } /** - * The accepted Terms of Service document in the requested format represented as a Base64-encoded bytes array. - * @return document The accepted Terms of Service document in the requested format represented as a Base64-encoded bytes array. + * The accepted Terms of Service document in the requested format represented as a Base64-encoded + * bytes array. + * + * @return document The accepted Terms of Service document in the requested format represented as + * a Base64-encoded bytes array. */ @JsonProperty(JSON_PROPERTY_DOCUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,9 +117,11 @@ public byte[] getDocument() { } /** - * The accepted Terms of Service document in the requested format represented as a Base64-encoded bytes array. + * The accepted Terms of Service document in the requested format represented as a Base64-encoded + * bytes array. * - * @param document The accepted Terms of Service document in the requested format represented as a Base64-encoded bytes array. + * @param document The accepted Terms of Service document in the requested format represented as a + * Base64-encoded bytes array. */ @JsonProperty(JSON_PROPERTY_DOCUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,7 +133,8 @@ public void setDocument(byte[] document) { * The unique identifier of the legal entity. * * @param id The unique identifier of the legal entity. - * @return the current {@code GetAcceptedTermsOfServiceDocumentResponse} instance, allowing for method chaining + * @return the current {@code GetAcceptedTermsOfServiceDocumentResponse} instance, allowing for + * method chaining */ public GetAcceptedTermsOfServiceDocumentResponse id(String id) { this.id = id; @@ -137,6 +143,7 @@ public GetAcceptedTermsOfServiceDocumentResponse id(String id) { /** * The unique identifier of the legal entity. + * * @return id The unique identifier of the legal entity. */ @JsonProperty(JSON_PROPERTY_ID) @@ -159,17 +166,22 @@ public void setId(String id) { /** * An Adyen-generated reference for the accepted Terms of Service. * - * @param termsOfServiceAcceptanceReference An Adyen-generated reference for the accepted Terms of Service. - * @return the current {@code GetAcceptedTermsOfServiceDocumentResponse} instance, allowing for method chaining + * @param termsOfServiceAcceptanceReference An Adyen-generated reference for the accepted Terms of + * Service. + * @return the current {@code GetAcceptedTermsOfServiceDocumentResponse} instance, allowing for + * method chaining */ - public GetAcceptedTermsOfServiceDocumentResponse termsOfServiceAcceptanceReference(String termsOfServiceAcceptanceReference) { + public GetAcceptedTermsOfServiceDocumentResponse termsOfServiceAcceptanceReference( + String termsOfServiceAcceptanceReference) { this.termsOfServiceAcceptanceReference = termsOfServiceAcceptanceReference; return this; } /** * An Adyen-generated reference for the accepted Terms of Service. - * @return termsOfServiceAcceptanceReference An Adyen-generated reference for the accepted Terms of Service. + * + * @return termsOfServiceAcceptanceReference An Adyen-generated reference for the accepted Terms + * of Service. */ @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_ACCEPTANCE_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -180,7 +192,8 @@ public String getTermsOfServiceAcceptanceReference() { /** * An Adyen-generated reference for the accepted Terms of Service. * - * @param termsOfServiceAcceptanceReference An Adyen-generated reference for the accepted Terms of Service. + * @param termsOfServiceAcceptanceReference An Adyen-generated reference for the accepted Terms of + * Service. */ @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_ACCEPTANCE_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,15 +205,18 @@ public void setTermsOfServiceAcceptanceReference(String termsOfServiceAcceptance * The format of the Terms of Service document. * * @param termsOfServiceDocumentFormat The format of the Terms of Service document. - * @return the current {@code GetAcceptedTermsOfServiceDocumentResponse} instance, allowing for method chaining + * @return the current {@code GetAcceptedTermsOfServiceDocumentResponse} instance, allowing for + * method chaining */ - public GetAcceptedTermsOfServiceDocumentResponse termsOfServiceDocumentFormat(TermsOfServiceDocumentFormatEnum termsOfServiceDocumentFormat) { + public GetAcceptedTermsOfServiceDocumentResponse termsOfServiceDocumentFormat( + TermsOfServiceDocumentFormatEnum termsOfServiceDocumentFormat) { this.termsOfServiceDocumentFormat = termsOfServiceDocumentFormat; return this; } /** * The format of the Terms of Service document. + * * @return termsOfServiceDocumentFormat The format of the Terms of Service document. */ @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT) @@ -216,13 +232,12 @@ public TermsOfServiceDocumentFormatEnum getTermsOfServiceDocumentFormat() { */ @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTermsOfServiceDocumentFormat(TermsOfServiceDocumentFormatEnum termsOfServiceDocumentFormat) { + public void setTermsOfServiceDocumentFormat( + TermsOfServiceDocumentFormatEnum termsOfServiceDocumentFormat) { this.termsOfServiceDocumentFormat = termsOfServiceDocumentFormat; } - /** - * Return true if this GetAcceptedTermsOfServiceDocumentResponse object is equal to o. - */ + /** Return true if this GetAcceptedTermsOfServiceDocumentResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -231,16 +246,25 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - GetAcceptedTermsOfServiceDocumentResponse getAcceptedTermsOfServiceDocumentResponse = (GetAcceptedTermsOfServiceDocumentResponse) o; - return Arrays.equals(this.document, getAcceptedTermsOfServiceDocumentResponse.document) && - Objects.equals(this.id, getAcceptedTermsOfServiceDocumentResponse.id) && - Objects.equals(this.termsOfServiceAcceptanceReference, getAcceptedTermsOfServiceDocumentResponse.termsOfServiceAcceptanceReference) && - Objects.equals(this.termsOfServiceDocumentFormat, getAcceptedTermsOfServiceDocumentResponse.termsOfServiceDocumentFormat); + GetAcceptedTermsOfServiceDocumentResponse getAcceptedTermsOfServiceDocumentResponse = + (GetAcceptedTermsOfServiceDocumentResponse) o; + return Arrays.equals(this.document, getAcceptedTermsOfServiceDocumentResponse.document) + && Objects.equals(this.id, getAcceptedTermsOfServiceDocumentResponse.id) + && Objects.equals( + this.termsOfServiceAcceptanceReference, + getAcceptedTermsOfServiceDocumentResponse.termsOfServiceAcceptanceReference) + && Objects.equals( + this.termsOfServiceDocumentFormat, + getAcceptedTermsOfServiceDocumentResponse.termsOfServiceDocumentFormat); } @Override public int hashCode() { - return Objects.hash(Arrays.hashCode(document), id, termsOfServiceAcceptanceReference, termsOfServiceDocumentFormat); + return Objects.hash( + Arrays.hashCode(document), + id, + termsOfServiceAcceptanceReference, + termsOfServiceDocumentFormat); } @Override @@ -249,15 +273,18 @@ public String toString() { sb.append("class GetAcceptedTermsOfServiceDocumentResponse {\n"); sb.append(" document: ").append(toIndentedString(document)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" termsOfServiceAcceptanceReference: ").append(toIndentedString(termsOfServiceAcceptanceReference)).append("\n"); - sb.append(" termsOfServiceDocumentFormat: ").append(toIndentedString(termsOfServiceDocumentFormat)).append("\n"); + sb.append(" termsOfServiceAcceptanceReference: ") + .append(toIndentedString(termsOfServiceAcceptanceReference)) + .append("\n"); + sb.append(" termsOfServiceDocumentFormat: ") + .append(toIndentedString(termsOfServiceDocumentFormat)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -266,21 +293,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of GetAcceptedTermsOfServiceDocumentResponse given an JSON string * * @param jsonString JSON string * @return An instance of GetAcceptedTermsOfServiceDocumentResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to GetAcceptedTermsOfServiceDocumentResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * GetAcceptedTermsOfServiceDocumentResponse */ - public static GetAcceptedTermsOfServiceDocumentResponse fromJson(String jsonString) throws JsonProcessingException { + public static GetAcceptedTermsOfServiceDocumentResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GetAcceptedTermsOfServiceDocumentResponse.class); } -/** - * Convert an instance of GetAcceptedTermsOfServiceDocumentResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of GetAcceptedTermsOfServiceDocumentResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/GetPciQuestionnaireInfosResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/GetPciQuestionnaireInfosResponse.java index 19052f605..efb843f3f 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/GetPciQuestionnaireInfosResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/GetPciQuestionnaireInfosResponse.java @@ -2,50 +2,37 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.legalentitymanagement.PciDocumentInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * GetPciQuestionnaireInfosResponse - */ -@JsonPropertyOrder({ - GetPciQuestionnaireInfosResponse.JSON_PROPERTY_DATA -}) - +/** GetPciQuestionnaireInfosResponse */ +@JsonPropertyOrder({GetPciQuestionnaireInfosResponse.JSON_PROPERTY_DATA}) public class GetPciQuestionnaireInfosResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; - public GetPciQuestionnaireInfosResponse() { - } + public GetPciQuestionnaireInfosResponse() {} /** * Information about the signed PCI questionnaires. * * @param data Information about the signed PCI questionnaires. - * @return the current {@code GetPciQuestionnaireInfosResponse} instance, allowing for method chaining + * @return the current {@code GetPciQuestionnaireInfosResponse} instance, allowing for method + * chaining */ public GetPciQuestionnaireInfosResponse data(List data) { this.data = data; @@ -62,6 +49,7 @@ public GetPciQuestionnaireInfosResponse addDataItem(PciDocumentInfo dataItem) { /** * Information about the signed PCI questionnaires. + * * @return data Information about the signed PCI questionnaires. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -81,9 +69,7 @@ public void setData(List data) { this.data = data; } - /** - * Return true if this GetPciQuestionnaireInfosResponse object is equal to o. - */ + /** Return true if this GetPciQuestionnaireInfosResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -92,7 +78,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - GetPciQuestionnaireInfosResponse getPciQuestionnaireInfosResponse = (GetPciQuestionnaireInfosResponse) o; + GetPciQuestionnaireInfosResponse getPciQuestionnaireInfosResponse = + (GetPciQuestionnaireInfosResponse) o; return Objects.equals(this.data, getPciQuestionnaireInfosResponse.data); } @@ -111,8 +98,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -121,21 +107,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of GetPciQuestionnaireInfosResponse given an JSON string * * @param jsonString JSON string * @return An instance of GetPciQuestionnaireInfosResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to GetPciQuestionnaireInfosResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * GetPciQuestionnaireInfosResponse */ - public static GetPciQuestionnaireInfosResponse fromJson(String jsonString) throws JsonProcessingException { + public static GetPciQuestionnaireInfosResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GetPciQuestionnaireInfosResponse.class); } -/** - * Convert an instance of GetPciQuestionnaireInfosResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of GetPciQuestionnaireInfosResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/GetPciQuestionnaireResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/GetPciQuestionnaireResponse.java index 23071af47..61f9275fe 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/GetPciQuestionnaireResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/GetPciQuestionnaireResponse.java @@ -2,39 +2,30 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.time.OffsetDateTime; +import java.util.*; +import java.util.Arrays; - -/** - * GetPciQuestionnaireResponse - */ +/** GetPciQuestionnaireResponse */ @JsonPropertyOrder({ GetPciQuestionnaireResponse.JSON_PROPERTY_CONTENT, GetPciQuestionnaireResponse.JSON_PROPERTY_CREATED_AT, GetPciQuestionnaireResponse.JSON_PROPERTY_ID, GetPciQuestionnaireResponse.JSON_PROPERTY_VALID_UNTIL }) - public class GetPciQuestionnaireResponse { public static final String JSON_PROPERTY_CONTENT = "content"; private byte[] content; @@ -48,8 +39,7 @@ public class GetPciQuestionnaireResponse { public static final String JSON_PROPERTY_VALID_UNTIL = "validUntil"; private OffsetDateTime validUntil; - public GetPciQuestionnaireResponse() { - } + public GetPciQuestionnaireResponse() {} /** * The generated questionnaire in a base64 encoded format. @@ -64,6 +54,7 @@ public GetPciQuestionnaireResponse content(byte[] content) { /** * The generated questionnaire in a base64 encoded format. + * * @return content The generated questionnaire in a base64 encoded format. */ @JsonProperty(JSON_PROPERTY_CONTENT) @@ -84,9 +75,11 @@ public void setContent(byte[] content) { } /** - * The date the questionnaire was created, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 + * The date the questionnaire was created, in ISO 8601 extended format. For example, + * 2022-12-18T10:15:30+01:00 * - * @param createdAt The date the questionnaire was created, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 + * @param createdAt The date the questionnaire was created, in ISO 8601 extended format. For + * example, 2022-12-18T10:15:30+01:00 * @return the current {@code GetPciQuestionnaireResponse} instance, allowing for method chaining */ public GetPciQuestionnaireResponse createdAt(OffsetDateTime createdAt) { @@ -95,8 +88,11 @@ public GetPciQuestionnaireResponse createdAt(OffsetDateTime createdAt) { } /** - * The date the questionnaire was created, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 - * @return createdAt The date the questionnaire was created, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 + * The date the questionnaire was created, in ISO 8601 extended format. For example, + * 2022-12-18T10:15:30+01:00 + * + * @return createdAt The date the questionnaire was created, in ISO 8601 extended format. For + * example, 2022-12-18T10:15:30+01:00 */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,9 +101,11 @@ public OffsetDateTime getCreatedAt() { } /** - * The date the questionnaire was created, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 + * The date the questionnaire was created, in ISO 8601 extended format. For example, + * 2022-12-18T10:15:30+01:00 * - * @param createdAt The date the questionnaire was created, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 + * @param createdAt The date the questionnaire was created, in ISO 8601 extended format. For + * example, 2022-12-18T10:15:30+01:00 */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,6 +126,7 @@ public GetPciQuestionnaireResponse id(String id) { /** * The unique identifier of the signed questionnaire. + * * @return id The unique identifier of the signed questionnaire. */ @JsonProperty(JSON_PROPERTY_ID) @@ -148,9 +147,11 @@ public void setId(String id) { } /** - * The expiration date of the questionnaire, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 + * The expiration date of the questionnaire, in ISO 8601 extended format. For example, + * 2022-12-18T10:15:30+01:00 * - * @param validUntil The expiration date of the questionnaire, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 + * @param validUntil The expiration date of the questionnaire, in ISO 8601 extended format. For + * example, 2022-12-18T10:15:30+01:00 * @return the current {@code GetPciQuestionnaireResponse} instance, allowing for method chaining */ public GetPciQuestionnaireResponse validUntil(OffsetDateTime validUntil) { @@ -159,8 +160,11 @@ public GetPciQuestionnaireResponse validUntil(OffsetDateTime validUntil) { } /** - * The expiration date of the questionnaire, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 - * @return validUntil The expiration date of the questionnaire, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 + * The expiration date of the questionnaire, in ISO 8601 extended format. For example, + * 2022-12-18T10:15:30+01:00 + * + * @return validUntil The expiration date of the questionnaire, in ISO 8601 extended format. For + * example, 2022-12-18T10:15:30+01:00 */ @JsonProperty(JSON_PROPERTY_VALID_UNTIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,9 +173,11 @@ public OffsetDateTime getValidUntil() { } /** - * The expiration date of the questionnaire, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 + * The expiration date of the questionnaire, in ISO 8601 extended format. For example, + * 2022-12-18T10:15:30+01:00 * - * @param validUntil The expiration date of the questionnaire, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 + * @param validUntil The expiration date of the questionnaire, in ISO 8601 extended format. For + * example, 2022-12-18T10:15:30+01:00 */ @JsonProperty(JSON_PROPERTY_VALID_UNTIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,9 +185,7 @@ public void setValidUntil(OffsetDateTime validUntil) { this.validUntil = validUntil; } - /** - * Return true if this GetPciQuestionnaireResponse object is equal to o. - */ + /** Return true if this GetPciQuestionnaireResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -191,10 +195,10 @@ public boolean equals(Object o) { return false; } GetPciQuestionnaireResponse getPciQuestionnaireResponse = (GetPciQuestionnaireResponse) o; - return Arrays.equals(this.content, getPciQuestionnaireResponse.content) && - Objects.equals(this.createdAt, getPciQuestionnaireResponse.createdAt) && - Objects.equals(this.id, getPciQuestionnaireResponse.id) && - Objects.equals(this.validUntil, getPciQuestionnaireResponse.validUntil); + return Arrays.equals(this.content, getPciQuestionnaireResponse.content) + && Objects.equals(this.createdAt, getPciQuestionnaireResponse.createdAt) + && Objects.equals(this.id, getPciQuestionnaireResponse.id) + && Objects.equals(this.validUntil, getPciQuestionnaireResponse.validUntil); } @Override @@ -215,8 +219,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -225,21 +228,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of GetPciQuestionnaireResponse given an JSON string * * @param jsonString JSON string * @return An instance of GetPciQuestionnaireResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to GetPciQuestionnaireResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * GetPciQuestionnaireResponse */ - public static GetPciQuestionnaireResponse fromJson(String jsonString) throws JsonProcessingException { + public static GetPciQuestionnaireResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GetPciQuestionnaireResponse.class); } -/** - * Convert an instance of GetPciQuestionnaireResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of GetPciQuestionnaireResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceAcceptanceInfosResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceAcceptanceInfosResponse.java index 5755d6bba..20029f20a 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceAcceptanceInfosResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceAcceptanceInfosResponse.java @@ -2,57 +2,45 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.legalentitymanagement.TermsOfServiceAcceptanceInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * GetTermsOfServiceAcceptanceInfosResponse - */ -@JsonPropertyOrder({ - GetTermsOfServiceAcceptanceInfosResponse.JSON_PROPERTY_DATA -}) - +/** GetTermsOfServiceAcceptanceInfosResponse */ +@JsonPropertyOrder({GetTermsOfServiceAcceptanceInfosResponse.JSON_PROPERTY_DATA}) public class GetTermsOfServiceAcceptanceInfosResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; - public GetTermsOfServiceAcceptanceInfosResponse() { - } + public GetTermsOfServiceAcceptanceInfosResponse() {} /** * The Terms of Service acceptance information. * * @param data The Terms of Service acceptance information. - * @return the current {@code GetTermsOfServiceAcceptanceInfosResponse} instance, allowing for method chaining + * @return the current {@code GetTermsOfServiceAcceptanceInfosResponse} instance, allowing for + * method chaining */ public GetTermsOfServiceAcceptanceInfosResponse data(List data) { this.data = data; return this; } - public GetTermsOfServiceAcceptanceInfosResponse addDataItem(TermsOfServiceAcceptanceInfo dataItem) { + public GetTermsOfServiceAcceptanceInfosResponse addDataItem( + TermsOfServiceAcceptanceInfo dataItem) { if (this.data == null) { this.data = new ArrayList<>(); } @@ -62,6 +50,7 @@ public GetTermsOfServiceAcceptanceInfosResponse addDataItem(TermsOfServiceAccept /** * The Terms of Service acceptance information. + * * @return data The Terms of Service acceptance information. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -81,9 +70,7 @@ public void setData(List data) { this.data = data; } - /** - * Return true if this GetTermsOfServiceAcceptanceInfosResponse object is equal to o. - */ + /** Return true if this GetTermsOfServiceAcceptanceInfosResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -92,7 +79,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - GetTermsOfServiceAcceptanceInfosResponse getTermsOfServiceAcceptanceInfosResponse = (GetTermsOfServiceAcceptanceInfosResponse) o; + GetTermsOfServiceAcceptanceInfosResponse getTermsOfServiceAcceptanceInfosResponse = + (GetTermsOfServiceAcceptanceInfosResponse) o; return Objects.equals(this.data, getTermsOfServiceAcceptanceInfosResponse.data); } @@ -111,8 +99,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -121,21 +108,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of GetTermsOfServiceAcceptanceInfosResponse given an JSON string * * @param jsonString JSON string * @return An instance of GetTermsOfServiceAcceptanceInfosResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to GetTermsOfServiceAcceptanceInfosResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * GetTermsOfServiceAcceptanceInfosResponse */ - public static GetTermsOfServiceAcceptanceInfosResponse fromJson(String jsonString) throws JsonProcessingException { + public static GetTermsOfServiceAcceptanceInfosResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GetTermsOfServiceAcceptanceInfosResponse.class); } -/** - * Convert an instance of GetTermsOfServiceAcceptanceInfosResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of GetTermsOfServiceAcceptanceInfosResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceDocumentRequest.java b/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceDocumentRequest.java index 51a1a71fa..b09c37bbd 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceDocumentRequest.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceDocumentRequest.java @@ -2,49 +2,45 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * GetTermsOfServiceDocumentRequest - */ +/** GetTermsOfServiceDocumentRequest */ @JsonPropertyOrder({ GetTermsOfServiceDocumentRequest.JSON_PROPERTY_LANGUAGE, GetTermsOfServiceDocumentRequest.JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT, GetTermsOfServiceDocumentRequest.JSON_PROPERTY_TYPE }) - public class GetTermsOfServiceDocumentRequest { public static final String JSON_PROPERTY_LANGUAGE = "language"; private String language; - public static final String JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT = "termsOfServiceDocumentFormat"; + public static final String JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT = + "termsOfServiceDocumentFormat"; private String termsOfServiceDocumentFormat; /** - * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** + * * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * + * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** */ public enum TypeEnum { - ADYENACCOUNT(String.valueOf("adyenAccount")), ADYENCAPITAL(String.valueOf("adyenCapital")), @@ -70,7 +66,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -91,7 +87,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -99,14 +99,18 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public GetTermsOfServiceDocumentRequest() { - } + public GetTermsOfServiceDocumentRequest() {} /** - * The language to be used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English. + * The language to be used for the Terms of Service document, specified by the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: + * **en** for English. * - * @param language The language to be used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English. - * @return the current {@code GetTermsOfServiceDocumentRequest} instance, allowing for method chaining + * @param language The language to be used for the Terms of Service document, specified by the + * two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language + * code. Possible value: **en** for English. + * @return the current {@code GetTermsOfServiceDocumentRequest} instance, allowing for method + * chaining */ public GetTermsOfServiceDocumentRequest language(String language) { this.language = language; @@ -114,8 +118,13 @@ public GetTermsOfServiceDocumentRequest language(String language) { } /** - * The language to be used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English. - * @return language The language to be used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English. + * The language to be used for the Terms of Service document, specified by the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: + * **en** for English. + * + * @return language The language to be used for the Terms of Service document, specified by the + * two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language + * code. Possible value: **en** for English. */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,9 +133,13 @@ public String getLanguage() { } /** - * The language to be used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English. + * The language to be used for the Terms of Service document, specified by the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: + * **en** for English. * - * @param language The language to be used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English. + * @param language The language to be used for the Terms of Service document, specified by the + * two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language + * code. Possible value: **en** for English. */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,19 +148,26 @@ public void setLanguage(String language) { } /** - * The requested format for the Terms of Service document. Default value: JSON. Possible values: **JSON**, **PDF**, or **TXT**. + * The requested format for the Terms of Service document. Default value: JSON. Possible values: + * **JSON**, **PDF**, or **TXT**. * - * @param termsOfServiceDocumentFormat The requested format for the Terms of Service document. Default value: JSON. Possible values: **JSON**, **PDF**, or **TXT**. - * @return the current {@code GetTermsOfServiceDocumentRequest} instance, allowing for method chaining + * @param termsOfServiceDocumentFormat The requested format for the Terms of Service document. + * Default value: JSON. Possible values: **JSON**, **PDF**, or **TXT**. + * @return the current {@code GetTermsOfServiceDocumentRequest} instance, allowing for method + * chaining */ - public GetTermsOfServiceDocumentRequest termsOfServiceDocumentFormat(String termsOfServiceDocumentFormat) { + public GetTermsOfServiceDocumentRequest termsOfServiceDocumentFormat( + String termsOfServiceDocumentFormat) { this.termsOfServiceDocumentFormat = termsOfServiceDocumentFormat; return this; } /** - * The requested format for the Terms of Service document. Default value: JSON. Possible values: **JSON**, **PDF**, or **TXT**. - * @return termsOfServiceDocumentFormat The requested format for the Terms of Service document. Default value: JSON. Possible values: **JSON**, **PDF**, or **TXT**. + * The requested format for the Terms of Service document. Default value: JSON. Possible values: + * **JSON**, **PDF**, or **TXT**. + * + * @return termsOfServiceDocumentFormat The requested format for the Terms of Service document. + * Default value: JSON. Possible values: **JSON**, **PDF**, or **TXT**. */ @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,9 +176,11 @@ public String getTermsOfServiceDocumentFormat() { } /** - * The requested format for the Terms of Service document. Default value: JSON. Possible values: **JSON**, **PDF**, or **TXT**. + * The requested format for the Terms of Service document. Default value: JSON. Possible values: + * **JSON**, **PDF**, or **TXT**. * - * @param termsOfServiceDocumentFormat The requested format for the Terms of Service document. Default value: JSON. Possible values: **JSON**, **PDF**, or **TXT**. + * @param termsOfServiceDocumentFormat The requested format for the Terms of Service document. + * Default value: JSON. Possible values: **JSON**, **PDF**, or **TXT**. */ @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,10 +189,15 @@ public void setTermsOfServiceDocumentFormat(String termsOfServiceDocumentFormat) } /** - * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** + * * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * + * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** * - * @param type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** - * @return the current {@code GetTermsOfServiceDocumentRequest} instance, allowing for method chaining + * @param type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * + * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * + * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * @return the current {@code GetTermsOfServiceDocumentRequest} instance, allowing for method + * chaining */ public GetTermsOfServiceDocumentRequest type(TypeEnum type) { this.type = type; @@ -178,8 +205,13 @@ public GetTermsOfServiceDocumentRequest type(TypeEnum type) { } /** - * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** - * @return type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** + * * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * + * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * + * @return type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * + * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * + * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,9 +220,13 @@ public TypeEnum getType() { } /** - * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** + * * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * + * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** * - * @param type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * @param type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * + * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * + * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,9 +234,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this GetTermsOfServiceDocumentRequest object is equal to o. - */ + /** Return true if this GetTermsOfServiceDocumentRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -209,10 +243,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - GetTermsOfServiceDocumentRequest getTermsOfServiceDocumentRequest = (GetTermsOfServiceDocumentRequest) o; - return Objects.equals(this.language, getTermsOfServiceDocumentRequest.language) && - Objects.equals(this.termsOfServiceDocumentFormat, getTermsOfServiceDocumentRequest.termsOfServiceDocumentFormat) && - Objects.equals(this.type, getTermsOfServiceDocumentRequest.type); + GetTermsOfServiceDocumentRequest getTermsOfServiceDocumentRequest = + (GetTermsOfServiceDocumentRequest) o; + return Objects.equals(this.language, getTermsOfServiceDocumentRequest.language) + && Objects.equals( + this.termsOfServiceDocumentFormat, + getTermsOfServiceDocumentRequest.termsOfServiceDocumentFormat) + && Objects.equals(this.type, getTermsOfServiceDocumentRequest.type); } @Override @@ -225,15 +262,16 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetTermsOfServiceDocumentRequest {\n"); sb.append(" language: ").append(toIndentedString(language)).append("\n"); - sb.append(" termsOfServiceDocumentFormat: ").append(toIndentedString(termsOfServiceDocumentFormat)).append("\n"); + sb.append(" termsOfServiceDocumentFormat: ") + .append(toIndentedString(termsOfServiceDocumentFormat)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -242,21 +280,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of GetTermsOfServiceDocumentRequest given an JSON string * * @param jsonString JSON string * @return An instance of GetTermsOfServiceDocumentRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to GetTermsOfServiceDocumentRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * GetTermsOfServiceDocumentRequest */ - public static GetTermsOfServiceDocumentRequest fromJson(String jsonString) throws JsonProcessingException { + public static GetTermsOfServiceDocumentRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GetTermsOfServiceDocumentRequest.class); } -/** - * Convert an instance of GetTermsOfServiceDocumentRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of GetTermsOfServiceDocumentRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceDocumentResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceDocumentResponse.java index fe76042b8..e9f335ec4 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceDocumentResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceDocumentResponse.java @@ -2,31 +2,26 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * GetTermsOfServiceDocumentResponse - */ +/** GetTermsOfServiceDocumentResponse */ @JsonPropertyOrder({ GetTermsOfServiceDocumentResponse.JSON_PROPERTY_DOCUMENT, GetTermsOfServiceDocumentResponse.JSON_PROPERTY_ID, @@ -35,7 +30,6 @@ GetTermsOfServiceDocumentResponse.JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_ID, GetTermsOfServiceDocumentResponse.JSON_PROPERTY_TYPE }) - public class GetTermsOfServiceDocumentResponse { public static final String JSON_PROPERTY_DOCUMENT = "document"; private byte[] document; @@ -46,17 +40,20 @@ public class GetTermsOfServiceDocumentResponse { public static final String JSON_PROPERTY_LANGUAGE = "language"; private String language; - public static final String JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT = "termsOfServiceDocumentFormat"; + public static final String JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT = + "termsOfServiceDocumentFormat"; private String termsOfServiceDocumentFormat; - public static final String JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_ID = "termsOfServiceDocumentId"; + public static final String JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_ID = + "termsOfServiceDocumentId"; private String termsOfServiceDocumentId; /** - * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** + * * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * + * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** */ public enum TypeEnum { - ADYENACCOUNT(String.valueOf("adyenAccount")), ADYENCAPITAL(String.valueOf("adyenCapital")), @@ -82,7 +79,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -103,7 +100,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -111,14 +112,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public GetTermsOfServiceDocumentResponse() { - } + public GetTermsOfServiceDocumentResponse() {} /** * The Terms of Service document in Base64-encoded format. * * @param document The Terms of Service document in Base64-encoded format. - * @return the current {@code GetTermsOfServiceDocumentResponse} instance, allowing for method chaining + * @return the current {@code GetTermsOfServiceDocumentResponse} instance, allowing for method + * chaining */ public GetTermsOfServiceDocumentResponse document(byte[] document) { this.document = document; @@ -127,6 +128,7 @@ public GetTermsOfServiceDocumentResponse document(byte[] document) { /** * The Terms of Service document in Base64-encoded format. + * * @return document The Terms of Service document in Base64-encoded format. */ @JsonProperty(JSON_PROPERTY_DOCUMENT) @@ -150,7 +152,8 @@ public void setDocument(byte[] document) { * The unique identifier of the legal entity. * * @param id The unique identifier of the legal entity. - * @return the current {@code GetTermsOfServiceDocumentResponse} instance, allowing for method chaining + * @return the current {@code GetTermsOfServiceDocumentResponse} instance, allowing for method + * chaining */ public GetTermsOfServiceDocumentResponse id(String id) { this.id = id; @@ -159,6 +162,7 @@ public GetTermsOfServiceDocumentResponse id(String id) { /** * The unique identifier of the legal entity. + * * @return id The unique identifier of the legal entity. */ @JsonProperty(JSON_PROPERTY_ID) @@ -179,10 +183,19 @@ public void setId(String id) { } /** - * The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English or **fr** for French. Note that French is only available for some integration types in certain countries/regions. Reach out to your Adyen contact for more information. + * The language used for the Terms of Service document, specified by the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: + * **en** for English or **fr** for French. Note that French is only available for some + * integration types in certain countries/regions. Reach out to your Adyen contact for more + * information. * - * @param language The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English or **fr** for French. Note that French is only available for some integration types in certain countries/regions. Reach out to your Adyen contact for more information. - * @return the current {@code GetTermsOfServiceDocumentResponse} instance, allowing for method chaining + * @param language The language used for the Terms of Service document, specified by the + * two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language + * code. Possible value: **en** for English or **fr** for French. Note that French is only + * available for some integration types in certain countries/regions. Reach out to your Adyen + * contact for more information. + * @return the current {@code GetTermsOfServiceDocumentResponse} instance, allowing for method + * chaining */ public GetTermsOfServiceDocumentResponse language(String language) { this.language = language; @@ -190,8 +203,17 @@ public GetTermsOfServiceDocumentResponse language(String language) { } /** - * The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English or **fr** for French. Note that French is only available for some integration types in certain countries/regions. Reach out to your Adyen contact for more information. - * @return language The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English or **fr** for French. Note that French is only available for some integration types in certain countries/regions. Reach out to your Adyen contact for more information. + * The language used for the Terms of Service document, specified by the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: + * **en** for English or **fr** for French. Note that French is only available for some + * integration types in certain countries/regions. Reach out to your Adyen contact for more + * information. + * + * @return language The language used for the Terms of Service document, specified by the + * two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language + * code. Possible value: **en** for English or **fr** for French. Note that French is only + * available for some integration types in certain countries/regions. Reach out to your Adyen + * contact for more information. */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,9 +222,17 @@ public String getLanguage() { } /** - * The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English or **fr** for French. Note that French is only available for some integration types in certain countries/regions. Reach out to your Adyen contact for more information. + * The language used for the Terms of Service document, specified by the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: + * **en** for English or **fr** for French. Note that French is only available for some + * integration types in certain countries/regions. Reach out to your Adyen contact for more + * information. * - * @param language The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English or **fr** for French. Note that French is only available for some integration types in certain countries/regions. Reach out to your Adyen contact for more information. + * @param language The language used for the Terms of Service document, specified by the + * two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language + * code. Possible value: **en** for English or **fr** for French. Note that French is only + * available for some integration types in certain countries/regions. Reach out to your Adyen + * contact for more information. */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,15 +244,18 @@ public void setLanguage(String language) { * The format of the Terms of Service document. * * @param termsOfServiceDocumentFormat The format of the Terms of Service document. - * @return the current {@code GetTermsOfServiceDocumentResponse} instance, allowing for method chaining + * @return the current {@code GetTermsOfServiceDocumentResponse} instance, allowing for method + * chaining */ - public GetTermsOfServiceDocumentResponse termsOfServiceDocumentFormat(String termsOfServiceDocumentFormat) { + public GetTermsOfServiceDocumentResponse termsOfServiceDocumentFormat( + String termsOfServiceDocumentFormat) { this.termsOfServiceDocumentFormat = termsOfServiceDocumentFormat; return this; } /** * The format of the Terms of Service document. + * * @return termsOfServiceDocumentFormat The format of the Terms of Service document. */ @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT) @@ -246,15 +279,18 @@ public void setTermsOfServiceDocumentFormat(String termsOfServiceDocumentFormat) * The unique identifier of the Terms of Service document. * * @param termsOfServiceDocumentId The unique identifier of the Terms of Service document. - * @return the current {@code GetTermsOfServiceDocumentResponse} instance, allowing for method chaining + * @return the current {@code GetTermsOfServiceDocumentResponse} instance, allowing for method + * chaining */ - public GetTermsOfServiceDocumentResponse termsOfServiceDocumentId(String termsOfServiceDocumentId) { + public GetTermsOfServiceDocumentResponse termsOfServiceDocumentId( + String termsOfServiceDocumentId) { this.termsOfServiceDocumentId = termsOfServiceDocumentId; return this; } /** * The unique identifier of the Terms of Service document. + * * @return termsOfServiceDocumentId The unique identifier of the Terms of Service document. */ @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_ID) @@ -275,10 +311,15 @@ public void setTermsOfServiceDocumentId(String termsOfServiceDocumentId) { } /** - * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** + * * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * + * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** * - * @param type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** - * @return the current {@code GetTermsOfServiceDocumentResponse} instance, allowing for method chaining + * @param type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * + * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * + * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * @return the current {@code GetTermsOfServiceDocumentResponse} instance, allowing for method + * chaining */ public GetTermsOfServiceDocumentResponse type(TypeEnum type) { this.type = type; @@ -286,8 +327,13 @@ public GetTermsOfServiceDocumentResponse type(TypeEnum type) { } /** - * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** - * @return type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** + * * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * + * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * + * @return type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * + * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * + * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -296,9 +342,13 @@ public TypeEnum getType() { } /** - * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** + * * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * + * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** * - * @param type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * @param type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * + * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * + * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -306,9 +356,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this GetTermsOfServiceDocumentResponse object is equal to o. - */ + /** Return true if this GetTermsOfServiceDocumentResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -317,18 +365,29 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - GetTermsOfServiceDocumentResponse getTermsOfServiceDocumentResponse = (GetTermsOfServiceDocumentResponse) o; - return Arrays.equals(this.document, getTermsOfServiceDocumentResponse.document) && - Objects.equals(this.id, getTermsOfServiceDocumentResponse.id) && - Objects.equals(this.language, getTermsOfServiceDocumentResponse.language) && - Objects.equals(this.termsOfServiceDocumentFormat, getTermsOfServiceDocumentResponse.termsOfServiceDocumentFormat) && - Objects.equals(this.termsOfServiceDocumentId, getTermsOfServiceDocumentResponse.termsOfServiceDocumentId) && - Objects.equals(this.type, getTermsOfServiceDocumentResponse.type); + GetTermsOfServiceDocumentResponse getTermsOfServiceDocumentResponse = + (GetTermsOfServiceDocumentResponse) o; + return Arrays.equals(this.document, getTermsOfServiceDocumentResponse.document) + && Objects.equals(this.id, getTermsOfServiceDocumentResponse.id) + && Objects.equals(this.language, getTermsOfServiceDocumentResponse.language) + && Objects.equals( + this.termsOfServiceDocumentFormat, + getTermsOfServiceDocumentResponse.termsOfServiceDocumentFormat) + && Objects.equals( + this.termsOfServiceDocumentId, + getTermsOfServiceDocumentResponse.termsOfServiceDocumentId) + && Objects.equals(this.type, getTermsOfServiceDocumentResponse.type); } @Override public int hashCode() { - return Objects.hash(Arrays.hashCode(document), id, language, termsOfServiceDocumentFormat, termsOfServiceDocumentId, type); + return Objects.hash( + Arrays.hashCode(document), + id, + language, + termsOfServiceDocumentFormat, + termsOfServiceDocumentId, + type); } @Override @@ -338,16 +397,19 @@ public String toString() { sb.append(" document: ").append(toIndentedString(document)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" language: ").append(toIndentedString(language)).append("\n"); - sb.append(" termsOfServiceDocumentFormat: ").append(toIndentedString(termsOfServiceDocumentFormat)).append("\n"); - sb.append(" termsOfServiceDocumentId: ").append(toIndentedString(termsOfServiceDocumentId)).append("\n"); + sb.append(" termsOfServiceDocumentFormat: ") + .append(toIndentedString(termsOfServiceDocumentFormat)) + .append("\n"); + sb.append(" termsOfServiceDocumentId: ") + .append(toIndentedString(termsOfServiceDocumentId)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -356,21 +418,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of GetTermsOfServiceDocumentResponse given an JSON string * * @param jsonString JSON string * @return An instance of GetTermsOfServiceDocumentResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to GetTermsOfServiceDocumentResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * GetTermsOfServiceDocumentResponse */ - public static GetTermsOfServiceDocumentResponse fromJson(String jsonString) throws JsonProcessingException { + public static GetTermsOfServiceDocumentResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GetTermsOfServiceDocumentResponse.class); } -/** - * Convert an instance of GetTermsOfServiceDocumentResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of GetTermsOfServiceDocumentResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/HKLocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/HKLocalAccountIdentification.java index 4180ac3c6..9cf49d19a 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/HKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/HKLocalAccountIdentification.java @@ -2,37 +2,31 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * HKLocalAccountIdentification - */ +/** HKLocalAccountIdentification */ @JsonPropertyOrder({ HKLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, HKLocalAccountIdentification.JSON_PROPERTY_CLEARING_CODE, HKLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class HKLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -40,11 +34,8 @@ public class HKLocalAccountIdentification { public static final String JSON_PROPERTY_CLEARING_CODE = "clearingCode"; private String clearingCode; - /** - * **hkLocal** - */ + /** **hkLocal** */ public enum TypeEnum { - HKLOCAL(String.valueOf("hkLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +43,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +64,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,13 +76,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public HKLocalAccountIdentification() { - } + public HKLocalAccountIdentification() {} /** - * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. + * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. + * Starts with the 3-digit branch code. * - * @param accountNumber The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. + * @param accountNumber The 9- to 15-character bank account number (alphanumeric), without + * separators or whitespace. Starts with the 3-digit branch code. * @return the current {@code HKLocalAccountIdentification} instance, allowing for method chaining */ public HKLocalAccountIdentification accountNumber(String accountNumber) { @@ -96,8 +92,11 @@ public HKLocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. - * @return accountNumber The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. + * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. + * Starts with the 3-digit branch code. + * + * @return accountNumber The 9- to 15-character bank account number (alphanumeric), without + * separators or whitespace. Starts with the 3-digit branch code. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +105,11 @@ public String getAccountNumber() { } /** - * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. + * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. + * Starts with the 3-digit branch code. * - * @param accountNumber The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. + * @param accountNumber The 9- to 15-character bank account number (alphanumeric), without + * separators or whitespace. Starts with the 3-digit branch code. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,6 +130,7 @@ public HKLocalAccountIdentification clearingCode(String clearingCode) { /** * The 3-digit clearing code, without separators or whitespace. + * * @return clearingCode The 3-digit clearing code, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_CLEARING_CODE) @@ -161,6 +163,7 @@ public HKLocalAccountIdentification type(TypeEnum type) { /** * **hkLocal** + * * @return type **hkLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +183,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this HKLocalAccountIdentification object is equal to o. - */ + /** Return true if this HKLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +193,9 @@ public boolean equals(Object o) { return false; } HKLocalAccountIdentification hkLocalAccountIdentification = (HKLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, hkLocalAccountIdentification.accountNumber) && - Objects.equals(this.clearingCode, hkLocalAccountIdentification.clearingCode) && - Objects.equals(this.type, hkLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, hkLocalAccountIdentification.accountNumber) + && Objects.equals(this.clearingCode, hkLocalAccountIdentification.clearingCode) + && Objects.equals(this.type, hkLocalAccountIdentification.type); } @Override @@ -214,8 +215,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +224,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of HKLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of HKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to HKLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * HKLocalAccountIdentification */ - public static HKLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static HKLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, HKLocalAccountIdentification.class); } -/** - * Convert an instance of HKLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of HKLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/HULocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/HULocalAccountIdentification.java index 43478d7fa..6ec6a1e75 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/HULocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/HULocalAccountIdentification.java @@ -2,45 +2,36 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * HULocalAccountIdentification - */ +/** HULocalAccountIdentification */ @JsonPropertyOrder({ HULocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, HULocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class HULocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - /** - * **huLocal** - */ + /** **huLocal** */ public enum TypeEnum { - HULOCAL(String.valueOf("huLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +39,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,8 +72,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public HULocalAccountIdentification() { - } + public HULocalAccountIdentification() {} /** * The 24-digit bank account number, without separators or whitespace. @@ -93,6 +87,7 @@ public HULocalAccountIdentification accountNumber(String accountNumber) { /** * The 24-digit bank account number, without separators or whitespace. + * * @return accountNumber The 24-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -125,6 +120,7 @@ public HULocalAccountIdentification type(TypeEnum type) { /** * **huLocal** + * * @return type **huLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -144,9 +140,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this HULocalAccountIdentification object is equal to o. - */ + /** Return true if this HULocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +150,8 @@ public boolean equals(Object o) { return false; } HULocalAccountIdentification huLocalAccountIdentification = (HULocalAccountIdentification) o; - return Objects.equals(this.accountNumber, huLocalAccountIdentification.accountNumber) && - Objects.equals(this.type, huLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, huLocalAccountIdentification.accountNumber) + && Objects.equals(this.type, huLocalAccountIdentification.type); } @Override @@ -176,8 +170,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +179,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of HULocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of HULocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to HULocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * HULocalAccountIdentification */ - public static HULocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static HULocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, HULocalAccountIdentification.class); } -/** - * Convert an instance of HULocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of HULocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/IbanAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/IbanAccountIdentification.java index 712455282..d87703bf2 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/IbanAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/IbanAccountIdentification.java @@ -2,45 +2,36 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * IbanAccountIdentification - */ +/** IbanAccountIdentification */ @JsonPropertyOrder({ IbanAccountIdentification.JSON_PROPERTY_IBAN, IbanAccountIdentification.JSON_PROPERTY_TYPE }) - public class IbanAccountIdentification { public static final String JSON_PROPERTY_IBAN = "iban"; private String iban; - /** - * **iban** - */ + /** **iban** */ public enum TypeEnum { - IBAN(String.valueOf("iban")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +39,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,13 +72,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public IbanAccountIdentification() { - } + public IbanAccountIdentification() {} /** - * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. * - * @param iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @param iban The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. * @return the current {@code IbanAccountIdentification} instance, allowing for method chaining */ public IbanAccountIdentification iban(String iban) { @@ -92,8 +88,11 @@ public IbanAccountIdentification iban(String iban) { } /** - * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. - * @return iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * + * @return iban The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,9 +101,11 @@ public String getIban() { } /** - * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. * - * @param iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @param iban The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,6 +126,7 @@ public IbanAccountIdentification type(TypeEnum type) { /** * **iban** + * * @return type **iban** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -144,9 +146,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this IbanAccountIdentification object is equal to o. - */ + /** Return true if this IbanAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +156,8 @@ public boolean equals(Object o) { return false; } IbanAccountIdentification ibanAccountIdentification = (IbanAccountIdentification) o; - return Objects.equals(this.iban, ibanAccountIdentification.iban) && - Objects.equals(this.type, ibanAccountIdentification.type); + return Objects.equals(this.iban, ibanAccountIdentification.iban) + && Objects.equals(this.type, ibanAccountIdentification.type); } @Override @@ -176,8 +176,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +185,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of IbanAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of IbanAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to IbanAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * IbanAccountIdentification */ - public static IbanAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static IbanAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, IbanAccountIdentification.class); } -/** - * Convert an instance of IbanAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of IbanAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/IdentificationData.java b/src/main/java/com/adyen/model/legalentitymanagement/IdentificationData.java index 8b253e9db..03ef78daf 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/IdentificationData.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/IdentificationData.java @@ -2,31 +2,26 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * IdentificationData - */ +/** IdentificationData */ @JsonPropertyOrder({ IdentificationData.JSON_PROPERTY_CARD_NUMBER, IdentificationData.JSON_PROPERTY_EXPIRY_DATE, @@ -36,7 +31,6 @@ IdentificationData.JSON_PROPERTY_NUMBER, IdentificationData.JSON_PROPERTY_TYPE }) - public class IdentificationData { public static final String JSON_PROPERTY_CARD_NUMBER = "cardNumber"; private String cardNumber; @@ -58,10 +52,14 @@ public class IdentificationData { private String number; /** - * Type of identity data. For individuals, the following types are supported. See our [onboarding guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber** + * Type of identity data. For individuals, the following types are supported. See our [onboarding + * guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) + * for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: + * **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, + * **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other + * supported countries: **nationalIdNumber** */ public enum TypeEnum { - NATIONALIDNUMBER(String.valueOf("nationalIdNumber")), PASSPORT(String.valueOf("passport")), @@ -75,7 +73,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -96,7 +94,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -104,8 +106,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public IdentificationData() { - } + public IdentificationData() {} /** * The card number of the document that was issued (AU only). @@ -120,6 +121,7 @@ public IdentificationData cardNumber(String cardNumber) { /** * The card number of the document that was issued (AU only). + * * @return cardNumber The card number of the document that was issued (AU only). */ @JsonProperty(JSON_PROPERTY_CARD_NUMBER) @@ -152,6 +154,7 @@ public IdentificationData expiryDate(String expiryDate) { /** * The expiry date of the document, in YYYY-MM-DD format. + * * @return expiryDate The expiry date of the document, in YYYY-MM-DD format. */ @JsonProperty(JSON_PROPERTY_EXPIRY_DATE) @@ -172,11 +175,13 @@ public void setExpiryDate(String expiryDate) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code where the document was issued. For example, **US**. * - * @param issuerCountry The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**. + * @param issuerCountry The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document + * was issued. For example, **US**. * @return the current {@code IdentificationData} instance, allowing for method chaining - * * @deprecated since Legal Entity Management API v1 */ @Deprecated // deprecated since Legal Entity Management API v1 @@ -186,8 +191,12 @@ public IdentificationData issuerCountry(String issuerCountry) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**. - * @return issuerCountry The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code where the document was issued. For example, **US**. + * + * @return issuerCountry The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document + * was issued. For example, **US**. * @deprecated // deprecated since Legal Entity Management API v1 */ @Deprecated // deprecated since Legal Entity Management API v1 @@ -198,10 +207,12 @@ public String getIssuerCountry() { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**. - * - * @param issuerCountry The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code where the document was issued. For example, **US**. * + * @param issuerCountry The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document + * was issued. For example, **US**. * @deprecated since Legal Entity Management API v1 */ @Deprecated // deprecated since Legal Entity Management API v1 @@ -224,6 +235,7 @@ public IdentificationData issuerState(String issuerState) { /** * The state or province where the document was issued (AU only). + * * @return issuerState The state or province where the document was issued (AU only). */ @JsonProperty(JSON_PROPERTY_ISSUER_STATE) @@ -244,9 +256,12 @@ public void setIssuerState(String issuerState) { } /** - * Applies only to individuals in the US. Set to **true** if the individual does not have an SSN. To verify their identity, Adyen will require them to upload an ID document. + * Applies only to individuals in the US. Set to **true** if the individual does not have an SSN. + * To verify their identity, Adyen will require them to upload an ID document. * - * @param nationalIdExempt Applies only to individuals in the US. Set to **true** if the individual does not have an SSN. To verify their identity, Adyen will require them to upload an ID document. + * @param nationalIdExempt Applies only to individuals in the US. Set to **true** if the + * individual does not have an SSN. To verify their identity, Adyen will require them to + * upload an ID document. * @return the current {@code IdentificationData} instance, allowing for method chaining */ public IdentificationData nationalIdExempt(Boolean nationalIdExempt) { @@ -255,8 +270,12 @@ public IdentificationData nationalIdExempt(Boolean nationalIdExempt) { } /** - * Applies only to individuals in the US. Set to **true** if the individual does not have an SSN. To verify their identity, Adyen will require them to upload an ID document. - * @return nationalIdExempt Applies only to individuals in the US. Set to **true** if the individual does not have an SSN. To verify their identity, Adyen will require them to upload an ID document. + * Applies only to individuals in the US. Set to **true** if the individual does not have an SSN. + * To verify their identity, Adyen will require them to upload an ID document. + * + * @return nationalIdExempt Applies only to individuals in the US. Set to **true** if the + * individual does not have an SSN. To verify their identity, Adyen will require them to + * upload an ID document. */ @JsonProperty(JSON_PROPERTY_NATIONAL_ID_EXEMPT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -265,9 +284,12 @@ public Boolean getNationalIdExempt() { } /** - * Applies only to individuals in the US. Set to **true** if the individual does not have an SSN. To verify their identity, Adyen will require them to upload an ID document. + * Applies only to individuals in the US. Set to **true** if the individual does not have an SSN. + * To verify their identity, Adyen will require them to upload an ID document. * - * @param nationalIdExempt Applies only to individuals in the US. Set to **true** if the individual does not have an SSN. To verify their identity, Adyen will require them to upload an ID document. + * @param nationalIdExempt Applies only to individuals in the US. Set to **true** if the + * individual does not have an SSN. To verify their identity, Adyen will require them to + * upload an ID document. */ @JsonProperty(JSON_PROPERTY_NATIONAL_ID_EXEMPT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -288,6 +310,7 @@ public IdentificationData number(String number) { /** * The number in the document. + * * @return number The number in the document. */ @JsonProperty(JSON_PROPERTY_NUMBER) @@ -308,9 +331,20 @@ public void setNumber(String number) { } /** - * Type of identity data. For individuals, the following types are supported. See our [onboarding guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber** + * Type of identity data. For individuals, the following types are supported. See our [onboarding + * guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) + * for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: + * **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, + * **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other + * supported countries: **nationalIdNumber** * - * @param type Type of identity data. For individuals, the following types are supported. See our [onboarding guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber** + * @param type Type of identity data. For individuals, the following types are supported. See our + * [onboarding + * guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) + * for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: + * **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, + * **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All + * other supported countries: **nationalIdNumber** * @return the current {@code IdentificationData} instance, allowing for method chaining */ public IdentificationData type(TypeEnum type) { @@ -319,8 +353,20 @@ public IdentificationData type(TypeEnum type) { } /** - * Type of identity data. For individuals, the following types are supported. See our [onboarding guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber** - * @return type Type of identity data. For individuals, the following types are supported. See our [onboarding guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber** + * Type of identity data. For individuals, the following types are supported. See our [onboarding + * guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) + * for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: + * **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, + * **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other + * supported countries: **nationalIdNumber** + * + * @return type Type of identity data. For individuals, the following types are supported. See our + * [onboarding + * guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) + * for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: + * **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, + * **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All + * other supported countries: **nationalIdNumber** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -329,9 +375,20 @@ public TypeEnum getType() { } /** - * Type of identity data. For individuals, the following types are supported. See our [onboarding guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber** + * Type of identity data. For individuals, the following types are supported. See our [onboarding + * guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) + * for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: + * **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, + * **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other + * supported countries: **nationalIdNumber** * - * @param type Type of identity data. For individuals, the following types are supported. See our [onboarding guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber** + * @param type Type of identity data. For individuals, the following types are supported. See our + * [onboarding + * guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) + * for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: + * **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, + * **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All + * other supported countries: **nationalIdNumber** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -339,9 +396,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this IdentificationData object is equal to o. - */ + /** Return true if this IdentificationData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -351,18 +406,19 @@ public boolean equals(Object o) { return false; } IdentificationData identificationData = (IdentificationData) o; - return Objects.equals(this.cardNumber, identificationData.cardNumber) && - Objects.equals(this.expiryDate, identificationData.expiryDate) && - Objects.equals(this.issuerCountry, identificationData.issuerCountry) && - Objects.equals(this.issuerState, identificationData.issuerState) && - Objects.equals(this.nationalIdExempt, identificationData.nationalIdExempt) && - Objects.equals(this.number, identificationData.number) && - Objects.equals(this.type, identificationData.type); + return Objects.equals(this.cardNumber, identificationData.cardNumber) + && Objects.equals(this.expiryDate, identificationData.expiryDate) + && Objects.equals(this.issuerCountry, identificationData.issuerCountry) + && Objects.equals(this.issuerState, identificationData.issuerState) + && Objects.equals(this.nationalIdExempt, identificationData.nationalIdExempt) + && Objects.equals(this.number, identificationData.number) + && Objects.equals(this.type, identificationData.type); } @Override public int hashCode() { - return Objects.hash(cardNumber, expiryDate, issuerCountry, issuerState, nationalIdExempt, number, type); + return Objects.hash( + cardNumber, expiryDate, issuerCountry, issuerState, nationalIdExempt, number, type); } @Override @@ -381,8 +437,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -391,21 +446,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of IdentificationData given an JSON string * * @param jsonString JSON string * @return An instance of IdentificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to IdentificationData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * IdentificationData */ public static IdentificationData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, IdentificationData.class); } -/** - * Convert an instance of IdentificationData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of IdentificationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/Individual.java b/src/main/java/com/adyen/model/legalentitymanagement/Individual.java index 85a768225..c87d41a5a 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/Individual.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/Individual.java @@ -2,40 +2,24 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.legalentitymanagement.Address; -import com.adyen.model.legalentitymanagement.BirthData; -import com.adyen.model.legalentitymanagement.IdentificationData; -import com.adyen.model.legalentitymanagement.Name; -import com.adyen.model.legalentitymanagement.PhoneNumber; -import com.adyen.model.legalentitymanagement.TaxInformation; -import com.adyen.model.legalentitymanagement.WebData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * Individual - */ +/** Individual */ @JsonPropertyOrder({ Individual.JSON_PROPERTY_BIRTH_DATA, Individual.JSON_PROPERTY_EMAIL, @@ -47,7 +31,6 @@ Individual.JSON_PROPERTY_TAX_INFORMATION, Individual.JSON_PROPERTY_WEB_DATA }) - public class Individual { public static final String JSON_PROPERTY_BIRTH_DATA = "birthData"; private BirthData birthData; @@ -76,13 +59,12 @@ public class Individual { public static final String JSON_PROPERTY_WEB_DATA = "webData"; private WebData webData; - public Individual() { - } + public Individual() {} /** * birthData * - * @param birthData + * @param birthData * @return the current {@code Individual} instance, allowing for method chaining */ public Individual birthData(BirthData birthData) { @@ -92,7 +74,8 @@ public Individual birthData(BirthData birthData) { /** * Get birthData - * @return birthData + * + * @return birthData */ @JsonProperty(JSON_PROPERTY_BIRTH_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -103,7 +86,7 @@ public BirthData getBirthData() { /** * birthData * - * @param birthData + * @param birthData */ @JsonProperty(JSON_PROPERTY_BIRTH_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,6 +107,7 @@ public Individual email(String email) { /** * The email address of the legal entity. + * * @return email The email address of the legal entity. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -146,7 +130,7 @@ public void setEmail(String email) { /** * identificationData * - * @param identificationData + * @param identificationData * @return the current {@code Individual} instance, allowing for method chaining */ public Individual identificationData(IdentificationData identificationData) { @@ -156,7 +140,8 @@ public Individual identificationData(IdentificationData identificationData) { /** * Get identificationData - * @return identificationData + * + * @return identificationData */ @JsonProperty(JSON_PROPERTY_IDENTIFICATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,7 +152,7 @@ public IdentificationData getIdentificationData() { /** * identificationData * - * @param identificationData + * @param identificationData */ @JsonProperty(JSON_PROPERTY_IDENTIFICATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,7 +163,7 @@ public void setIdentificationData(IdentificationData identificationData) { /** * name * - * @param name + * @param name * @return the current {@code Individual} instance, allowing for method chaining */ public Individual name(Name name) { @@ -188,7 +173,8 @@ public Individual name(Name name) { /** * Get name - * @return name + * + * @return name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -199,7 +185,7 @@ public Name getName() { /** * name * - * @param name + * @param name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -220,6 +206,7 @@ public Individual nationality(String nationality) { /** * The individual's nationality. + * * @return nationality The individual's nationality. */ @JsonProperty(JSON_PROPERTY_NATIONALITY) @@ -242,7 +229,7 @@ public void setNationality(String nationality) { /** * phone * - * @param phone + * @param phone * @return the current {@code Individual} instance, allowing for method chaining */ public Individual phone(PhoneNumber phone) { @@ -252,7 +239,8 @@ public Individual phone(PhoneNumber phone) { /** * Get phone - * @return phone + * + * @return phone */ @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -263,7 +251,7 @@ public PhoneNumber getPhone() { /** * phone * - * @param phone + * @param phone */ @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -274,7 +262,7 @@ public void setPhone(PhoneNumber phone) { /** * residentialAddress * - * @param residentialAddress + * @param residentialAddress * @return the current {@code Individual} instance, allowing for method chaining */ public Individual residentialAddress(Address residentialAddress) { @@ -284,7 +272,8 @@ public Individual residentialAddress(Address residentialAddress) { /** * Get residentialAddress - * @return residentialAddress + * + * @return residentialAddress */ @JsonProperty(JSON_PROPERTY_RESIDENTIAL_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -295,7 +284,7 @@ public Address getResidentialAddress() { /** * residentialAddress * - * @param residentialAddress + * @param residentialAddress */ @JsonProperty(JSON_PROPERTY_RESIDENTIAL_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -324,6 +313,7 @@ public Individual addTaxInformationItem(TaxInformation taxInformationItem) { /** * The tax information of the individual. + * * @return taxInformation The tax information of the individual. */ @JsonProperty(JSON_PROPERTY_TAX_INFORMATION) @@ -346,7 +336,7 @@ public void setTaxInformation(List taxInformation) { /** * webData * - * @param webData + * @param webData * @return the current {@code Individual} instance, allowing for method chaining */ public Individual webData(WebData webData) { @@ -356,7 +346,8 @@ public Individual webData(WebData webData) { /** * Get webData - * @return webData + * + * @return webData */ @JsonProperty(JSON_PROPERTY_WEB_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -367,7 +358,7 @@ public WebData getWebData() { /** * webData * - * @param webData + * @param webData */ @JsonProperty(JSON_PROPERTY_WEB_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -375,9 +366,7 @@ public void setWebData(WebData webData) { this.webData = webData; } - /** - * Return true if this Individual object is equal to o. - */ + /** Return true if this Individual object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -387,20 +376,29 @@ public boolean equals(Object o) { return false; } Individual individual = (Individual) o; - return Objects.equals(this.birthData, individual.birthData) && - Objects.equals(this.email, individual.email) && - Objects.equals(this.identificationData, individual.identificationData) && - Objects.equals(this.name, individual.name) && - Objects.equals(this.nationality, individual.nationality) && - Objects.equals(this.phone, individual.phone) && - Objects.equals(this.residentialAddress, individual.residentialAddress) && - Objects.equals(this.taxInformation, individual.taxInformation) && - Objects.equals(this.webData, individual.webData); + return Objects.equals(this.birthData, individual.birthData) + && Objects.equals(this.email, individual.email) + && Objects.equals(this.identificationData, individual.identificationData) + && Objects.equals(this.name, individual.name) + && Objects.equals(this.nationality, individual.nationality) + && Objects.equals(this.phone, individual.phone) + && Objects.equals(this.residentialAddress, individual.residentialAddress) + && Objects.equals(this.taxInformation, individual.taxInformation) + && Objects.equals(this.webData, individual.webData); } @Override public int hashCode() { - return Objects.hash(birthData, email, identificationData, name, nationality, phone, residentialAddress, taxInformation, webData); + return Objects.hash( + birthData, + email, + identificationData, + name, + nationality, + phone, + residentialAddress, + taxInformation, + webData); } @Override @@ -421,8 +419,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -431,7 +428,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Individual given an JSON string * * @param jsonString JSON string @@ -441,11 +438,12 @@ private String toIndentedString(Object o) { public static Individual fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Individual.class); } -/** - * Convert an instance of Individual to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Individual to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/JSON.java b/src/main/java/com/adyen/model/legalentitymanagement/JSON.java index aca0e272c..8d3432cd1 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/JSON.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/JSON.java @@ -1,21 +1,18 @@ package com.adyen.model.legalentitymanagement; -import com.adyen.serializer.ByteArraySerializer; import com.adyen.serializer.ByteArrayDeserializer; +import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import com.adyen.model.legalentitymanagement.*; - +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -40,6 +37,7 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. + * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -56,11 +54,13 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { return mapper; } + public static ObjectMapper getMapper() { + return mapper; + } /** - * Returns the target model class that should be used to deserialize the input data. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,9 +73,7 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** - * Helper class to register the discriminator mappings. - */ + /** Helper class to register the discriminator mappings. */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -117,9 +115,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. - * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. This + * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -164,13 +162,14 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, - * so it's not possible to use the instanceof keyword. + *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so + * it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf( + Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -194,59 +193,58 @@ public static boolean isInstanceOf(Class modelClass, Object inst, Set, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); + /** A map of discriminators for all model classes. */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = + new HashMap, ClassDiscriminatorMapping>(); - /** - * A map of oneOf/anyOf descendants for each model class. - */ + /** A map of oneOf/anyOf descendants for each model class. */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator( + Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = + new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants(Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants( + Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static - { + static { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/LegalEntity.java b/src/main/java/com/adyen/model/legalentitymanagement/LegalEntity.java index 25013f1f8..664e8c779 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/LegalEntity.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/LegalEntity.java @@ -2,47 +2,30 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.legalentitymanagement.CapabilityProblem; -import com.adyen.model.legalentitymanagement.DocumentReference; -import com.adyen.model.legalentitymanagement.EntityReference; -import com.adyen.model.legalentitymanagement.Individual; -import com.adyen.model.legalentitymanagement.LegalEntityAssociation; -import com.adyen.model.legalentitymanagement.LegalEntityCapability; -import com.adyen.model.legalentitymanagement.Organization; -import com.adyen.model.legalentitymanagement.SoleProprietorship; -import com.adyen.model.legalentitymanagement.TransferInstrumentReference; -import com.adyen.model.legalentitymanagement.Trust; -import com.adyen.model.legalentitymanagement.UnincorporatedPartnership; -import com.adyen.model.legalentitymanagement.VerificationDeadline; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * LegalEntity - */ +/** LegalEntity */ @JsonPropertyOrder({ LegalEntity.JSON_PROPERTY_CAPABILITIES, LegalEntity.JSON_PROPERTY_DOCUMENT_DETAILS, @@ -61,7 +44,6 @@ LegalEntity.JSON_PROPERTY_VERIFICATION_DEADLINES, LegalEntity.JSON_PROPERTY_VERIFICATION_PLAN }) - public class LegalEntity { public static final String JSON_PROPERTY_CAPABILITIES = "capabilities"; private Map capabilities; @@ -70,7 +52,8 @@ public class LegalEntity { private List documentDetails; public static final String JSON_PROPERTY_DOCUMENTS = "documents"; - @Deprecated // deprecated since Legal Entity Management API v1: Use the `documentDetails` array instead. + @Deprecated // deprecated since Legal Entity Management API v1: Use the `documentDetails` array + // instead. private List documents; public static final String JSON_PROPERTY_ENTITY_ASSOCIATIONS = "entityAssociations"; @@ -101,10 +84,10 @@ public class LegalEntity { private Trust trust; /** - * The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. + * The type of legal entity. Possible values: **individual**, **organization**, + * **soleProprietorship**, or **trust**. */ public enum TypeEnum { - INDIVIDUAL(String.valueOf("individual")), ORGANIZATION(String.valueOf("organization")), @@ -120,7 +103,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -141,7 +124,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -158,15 +145,15 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VERIFICATION_PLAN = "verificationPlan"; private String verificationPlan; - public LegalEntity() { - } + public LegalEntity() {} @JsonCreator public LegalEntity( - @JsonProperty(JSON_PROPERTY_ID) String id, - @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENTS) List transferInstruments, - @JsonProperty(JSON_PROPERTY_VERIFICATION_DEADLINES) List verificationDeadlines - ) { + @JsonProperty(JSON_PROPERTY_ID) String id, + @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENTS) + List transferInstruments, + @JsonProperty(JSON_PROPERTY_VERIFICATION_DEADLINES) + List verificationDeadlines) { this(); this.id = id; this.transferInstruments = transferInstruments; @@ -174,9 +161,14 @@ public LegalEntity( } /** - * Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that the legal entity can do in your + * platform.The key is a capability required for your integration. For example, **issueCard** for + * Issuing. The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * @param capabilities Contains key-value pairs that specify the actions that the legal entity can + * do in your platform.The key is a capability required for your integration. For example, + * **issueCard** for Issuing. The value is an object containing the settings for the + * capability. * @return the current {@code LegalEntity} instance, allowing for method chaining */ public LegalEntity capabilities(Map capabilities) { @@ -193,8 +185,14 @@ public LegalEntity putCapabilitiesItem(String key, LegalEntityCapability capabil } /** - * Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. - * @return capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that the legal entity can do in your + * platform.The key is a capability required for your integration. For example, **issueCard** for + * Issuing. The value is an object containing the settings for the capability. + * + * @return capabilities Contains key-value pairs that specify the actions that the legal entity + * can do in your platform.The key is a capability required for your integration. For example, + * **issueCard** for Issuing. The value is an object containing the settings for the + * capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -203,9 +201,14 @@ public Map getCapabilities() { } /** - * Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that the legal entity can do in your + * platform.The key is a capability required for your integration. For example, **issueCard** for + * Issuing. The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * @param capabilities Contains key-value pairs that specify the actions that the legal entity can + * do in your platform.The key is a capability required for your integration. For example, + * **issueCard** for Issuing. The value is an object containing the settings for the + * capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -234,6 +237,7 @@ public LegalEntity addDocumentDetailsItem(DocumentReference documentDetailsItem) /** * List of documents uploaded for the legal entity. + * * @return documentDetails List of documents uploaded for the legal entity. */ @JsonProperty(JSON_PROPERTY_DOCUMENT_DETAILS) @@ -258,11 +262,11 @@ public void setDocumentDetails(List documentDetails) { * * @param documents List of documents uploaded for the legal entity. * @return the current {@code LegalEntity} instance, allowing for method chaining - * - * @deprecated since Legal Entity Management API v1 - * Use the `documentDetails` array instead. + * @deprecated since Legal Entity Management API v1 Use the `documentDetails` array + * instead. */ - @Deprecated // deprecated since Legal Entity Management API v1: Use the `documentDetails` array instead. + @Deprecated // deprecated since Legal Entity Management API v1: Use the `documentDetails` array + // instead. public LegalEntity documents(List documents) { this.documents = documents; return this; @@ -278,10 +282,13 @@ public LegalEntity addDocumentsItem(EntityReference documentsItem) { /** * List of documents uploaded for the legal entity. + * * @return documents List of documents uploaded for the legal entity. - * @deprecated // deprecated since Legal Entity Management API v1: Use the `documentDetails` array instead. + * @deprecated // deprecated since Legal Entity Management API v1: Use the `documentDetails` array + * instead. */ - @Deprecated // deprecated since Legal Entity Management API v1: Use the `documentDetails` array instead. + @Deprecated // deprecated since Legal Entity Management API v1: Use the `documentDetails` array + // instead. @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getDocuments() { @@ -292,11 +299,11 @@ public List getDocuments() { * List of documents uploaded for the legal entity. * * @param documents List of documents uploaded for the legal entity. - * - * @deprecated since Legal Entity Management API v1 - * Use the `documentDetails` array instead. + * @deprecated since Legal Entity Management API v1 Use the `documentDetails` array + * instead. */ - @Deprecated // deprecated since Legal Entity Management API v1: Use the `documentDetails` array instead. + @Deprecated // deprecated since Legal Entity Management API v1: Use the `documentDetails` array + // instead. @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDocuments(List documents) { @@ -304,9 +311,13 @@ public void setDocuments(List documents) { } /** - * List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. + * List of legal entities associated with the current legal entity. For example, ultimate + * beneficial owners associated with an organization through ownership or control, or as + * signatories. * - * @param entityAssociations List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. + * @param entityAssociations List of legal entities associated with the current legal entity. For + * example, ultimate beneficial owners associated with an organization through ownership or + * control, or as signatories. * @return the current {@code LegalEntity} instance, allowing for method chaining */ public LegalEntity entityAssociations(List entityAssociations) { @@ -323,8 +334,13 @@ public LegalEntity addEntityAssociationsItem(LegalEntityAssociation entityAssoci } /** - * List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. - * @return entityAssociations List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. + * List of legal entities associated with the current legal entity. For example, ultimate + * beneficial owners associated with an organization through ownership or control, or as + * signatories. + * + * @return entityAssociations List of legal entities associated with the current legal entity. For + * example, ultimate beneficial owners associated with an organization through ownership or + * control, or as signatories. */ @JsonProperty(JSON_PROPERTY_ENTITY_ASSOCIATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -333,9 +349,13 @@ public List getEntityAssociations() { } /** - * List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. + * List of legal entities associated with the current legal entity. For example, ultimate + * beneficial owners associated with an organization through ownership or control, or as + * signatories. * - * @param entityAssociations List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. + * @param entityAssociations List of legal entities associated with the current legal entity. For + * example, ultimate beneficial owners associated with an organization through ownership or + * control, or as signatories. */ @JsonProperty(JSON_PROPERTY_ENTITY_ASSOCIATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -345,6 +365,7 @@ public void setEntityAssociations(List entityAssociation /** * The unique identifier of the legal entity. + * * @return id The unique identifier of the legal entity. */ @JsonProperty(JSON_PROPERTY_ID) @@ -353,11 +374,10 @@ public String getId() { return id; } - /** * individual * - * @param individual + * @param individual * @return the current {@code LegalEntity} instance, allowing for method chaining */ public LegalEntity individual(Individual individual) { @@ -367,7 +387,8 @@ public LegalEntity individual(Individual individual) { /** * Get individual - * @return individual + * + * @return individual */ @JsonProperty(JSON_PROPERTY_INDIVIDUAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -378,7 +399,7 @@ public Individual getIndividual() { /** * individual * - * @param individual + * @param individual */ @JsonProperty(JSON_PROPERTY_INDIVIDUAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -389,7 +410,7 @@ public void setIndividual(Individual individual) { /** * organization * - * @param organization + * @param organization * @return the current {@code LegalEntity} instance, allowing for method chaining */ public LegalEntity organization(Organization organization) { @@ -399,7 +420,8 @@ public LegalEntity organization(Organization organization) { /** * Get organization - * @return organization + * + * @return organization */ @JsonProperty(JSON_PROPERTY_ORGANIZATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -410,7 +432,7 @@ public Organization getOrganization() { /** * organization * - * @param organization + * @param organization */ @JsonProperty(JSON_PROPERTY_ORGANIZATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -439,6 +461,7 @@ public LegalEntity addProblemsItem(CapabilityProblem problemsItem) { /** * List of verification errors related to capabilities for the legal entity. + * * @return problems List of verification errors related to capabilities for the legal entity. */ @JsonProperty(JSON_PROPERTY_PROBLEMS) @@ -471,6 +494,7 @@ public LegalEntity reference(String reference) { /** * Your reference for the legal entity, maximum 150 characters. + * * @return reference Your reference for the legal entity, maximum 150 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -493,7 +517,7 @@ public void setReference(String reference) { /** * soleProprietorship * - * @param soleProprietorship + * @param soleProprietorship * @return the current {@code LegalEntity} instance, allowing for method chaining */ public LegalEntity soleProprietorship(SoleProprietorship soleProprietorship) { @@ -503,7 +527,8 @@ public LegalEntity soleProprietorship(SoleProprietorship soleProprietorship) { /** * Get soleProprietorship - * @return soleProprietorship + * + * @return soleProprietorship */ @JsonProperty(JSON_PROPERTY_SOLE_PROPRIETORSHIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -514,7 +539,7 @@ public SoleProprietorship getSoleProprietorship() { /** * soleProprietorship * - * @param soleProprietorship + * @param soleProprietorship */ @JsonProperty(JSON_PROPERTY_SOLE_PROPRIETORSHIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -524,6 +549,7 @@ public void setSoleProprietorship(SoleProprietorship soleProprietorship) { /** * List of transfer instruments that the legal entity owns. + * * @return transferInstruments List of transfer instruments that the legal entity owns. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENTS) @@ -532,11 +558,10 @@ public List getTransferInstruments() { return transferInstruments; } - /** * trust * - * @param trust + * @param trust * @return the current {@code LegalEntity} instance, allowing for method chaining */ public LegalEntity trust(Trust trust) { @@ -546,7 +571,8 @@ public LegalEntity trust(Trust trust) { /** * Get trust - * @return trust + * + * @return trust */ @JsonProperty(JSON_PROPERTY_TRUST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -557,7 +583,7 @@ public Trust getTrust() { /** * trust * - * @param trust + * @param trust */ @JsonProperty(JSON_PROPERTY_TRUST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -566,9 +592,11 @@ public void setTrust(Trust trust) { } /** - * The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. + * The type of legal entity. Possible values: **individual**, **organization**, + * **soleProprietorship**, or **trust**. * - * @param type The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. + * @param type The type of legal entity. Possible values: **individual**, **organization**, + * **soleProprietorship**, or **trust**. * @return the current {@code LegalEntity} instance, allowing for method chaining */ public LegalEntity type(TypeEnum type) { @@ -577,8 +605,11 @@ public LegalEntity type(TypeEnum type) { } /** - * The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. - * @return type The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. + * The type of legal entity. Possible values: **individual**, **organization**, + * **soleProprietorship**, or **trust**. + * + * @return type The type of legal entity. Possible values: **individual**, **organization**, + * **soleProprietorship**, or **trust**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -587,9 +618,11 @@ public TypeEnum getType() { } /** - * The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. + * The type of legal entity. Possible values: **individual**, **organization**, + * **soleProprietorship**, or **trust**. * - * @param type The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. + * @param type The type of legal entity. Possible values: **individual**, **organization**, + * **soleProprietorship**, or **trust**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -600,17 +633,19 @@ public void setType(TypeEnum type) { /** * unincorporatedPartnership * - * @param unincorporatedPartnership + * @param unincorporatedPartnership * @return the current {@code LegalEntity} instance, allowing for method chaining */ - public LegalEntity unincorporatedPartnership(UnincorporatedPartnership unincorporatedPartnership) { + public LegalEntity unincorporatedPartnership( + UnincorporatedPartnership unincorporatedPartnership) { this.unincorporatedPartnership = unincorporatedPartnership; return this; } /** * Get unincorporatedPartnership - * @return unincorporatedPartnership + * + * @return unincorporatedPartnership */ @JsonProperty(JSON_PROPERTY_UNINCORPORATED_PARTNERSHIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -621,7 +656,7 @@ public UnincorporatedPartnership getUnincorporatedPartnership() { /** * unincorporatedPartnership * - * @param unincorporatedPartnership + * @param unincorporatedPartnership */ @JsonProperty(JSON_PROPERTY_UNINCORPORATED_PARTNERSHIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -630,8 +665,11 @@ public void setUnincorporatedPartnership(UnincorporatedPartnership unincorporate } /** - * List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. - * @return verificationDeadlines List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. + * List of verification deadlines and the capabilities that will be disallowed if verification + * errors are not resolved. + * + * @return verificationDeadlines List of verification deadlines and the capabilities that will be + * disallowed if verification errors are not resolved. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_DEADLINES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -639,11 +677,14 @@ public List getVerificationDeadlines() { return verificationDeadlines; } - /** - * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** + * for upfront verification for + * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). * - * @param verificationPlan A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * @param verificationPlan A key-value pair that specifies the verification process for a legal + * entity. Set to **upfront** for upfront verification for + * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). * @return the current {@code LegalEntity} instance, allowing for method chaining */ public LegalEntity verificationPlan(String verificationPlan) { @@ -652,8 +693,13 @@ public LegalEntity verificationPlan(String verificationPlan) { } /** - * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). - * @return verificationPlan A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** + * for upfront verification for + * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * + * @return verificationPlan A key-value pair that specifies the verification process for a legal + * entity. Set to **upfront** for upfront verification for + * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). */ @JsonProperty(JSON_PROPERTY_VERIFICATION_PLAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -662,9 +708,13 @@ public String getVerificationPlan() { } /** - * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** + * for upfront verification for + * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). * - * @param verificationPlan A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * @param verificationPlan A key-value pair that specifies the verification process for a legal + * entity. Set to **upfront** for upfront verification for + * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). */ @JsonProperty(JSON_PROPERTY_VERIFICATION_PLAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -672,9 +722,7 @@ public void setVerificationPlan(String verificationPlan) { this.verificationPlan = verificationPlan; } - /** - * Return true if this LegalEntity object is equal to o. - */ + /** Return true if this LegalEntity object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -684,27 +732,43 @@ public boolean equals(Object o) { return false; } LegalEntity legalEntity = (LegalEntity) o; - return Objects.equals(this.capabilities, legalEntity.capabilities) && - Objects.equals(this.documentDetails, legalEntity.documentDetails) && - Objects.equals(this.documents, legalEntity.documents) && - Objects.equals(this.entityAssociations, legalEntity.entityAssociations) && - Objects.equals(this.id, legalEntity.id) && - Objects.equals(this.individual, legalEntity.individual) && - Objects.equals(this.organization, legalEntity.organization) && - Objects.equals(this.problems, legalEntity.problems) && - Objects.equals(this.reference, legalEntity.reference) && - Objects.equals(this.soleProprietorship, legalEntity.soleProprietorship) && - Objects.equals(this.transferInstruments, legalEntity.transferInstruments) && - Objects.equals(this.trust, legalEntity.trust) && - Objects.equals(this.type, legalEntity.type) && - Objects.equals(this.unincorporatedPartnership, legalEntity.unincorporatedPartnership) && - Objects.equals(this.verificationDeadlines, legalEntity.verificationDeadlines) && - Objects.equals(this.verificationPlan, legalEntity.verificationPlan); + return Objects.equals(this.capabilities, legalEntity.capabilities) + && Objects.equals(this.documentDetails, legalEntity.documentDetails) + && Objects.equals(this.documents, legalEntity.documents) + && Objects.equals(this.entityAssociations, legalEntity.entityAssociations) + && Objects.equals(this.id, legalEntity.id) + && Objects.equals(this.individual, legalEntity.individual) + && Objects.equals(this.organization, legalEntity.organization) + && Objects.equals(this.problems, legalEntity.problems) + && Objects.equals(this.reference, legalEntity.reference) + && Objects.equals(this.soleProprietorship, legalEntity.soleProprietorship) + && Objects.equals(this.transferInstruments, legalEntity.transferInstruments) + && Objects.equals(this.trust, legalEntity.trust) + && Objects.equals(this.type, legalEntity.type) + && Objects.equals(this.unincorporatedPartnership, legalEntity.unincorporatedPartnership) + && Objects.equals(this.verificationDeadlines, legalEntity.verificationDeadlines) + && Objects.equals(this.verificationPlan, legalEntity.verificationPlan); } @Override public int hashCode() { - return Objects.hash(capabilities, documentDetails, documents, entityAssociations, id, individual, organization, problems, reference, soleProprietorship, transferInstruments, trust, type, unincorporatedPartnership, verificationDeadlines, verificationPlan); + return Objects.hash( + capabilities, + documentDetails, + documents, + entityAssociations, + id, + individual, + organization, + problems, + reference, + soleProprietorship, + transferInstruments, + trust, + type, + unincorporatedPartnership, + verificationDeadlines, + verificationPlan); } @Override @@ -721,19 +785,24 @@ public String toString() { sb.append(" problems: ").append(toIndentedString(problems)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" soleProprietorship: ").append(toIndentedString(soleProprietorship)).append("\n"); - sb.append(" transferInstruments: ").append(toIndentedString(transferInstruments)).append("\n"); + sb.append(" transferInstruments: ") + .append(toIndentedString(transferInstruments)) + .append("\n"); sb.append(" trust: ").append(toIndentedString(trust)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" unincorporatedPartnership: ").append(toIndentedString(unincorporatedPartnership)).append("\n"); - sb.append(" verificationDeadlines: ").append(toIndentedString(verificationDeadlines)).append("\n"); + sb.append(" unincorporatedPartnership: ") + .append(toIndentedString(unincorporatedPartnership)) + .append("\n"); + sb.append(" verificationDeadlines: ") + .append(toIndentedString(verificationDeadlines)) + .append("\n"); sb.append(" verificationPlan: ").append(toIndentedString(verificationPlan)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -742,7 +811,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of LegalEntity given an JSON string * * @param jsonString JSON string @@ -752,11 +821,12 @@ private String toIndentedString(Object o) { public static LegalEntity fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, LegalEntity.class); } -/** - * Convert an instance of LegalEntity to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of LegalEntity to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityAssociation.java b/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityAssociation.java index fb1a5bc65..db7981053 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityAssociation.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityAssociation.java @@ -2,33 +2,28 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * LegalEntityAssociation - */ +/** LegalEntityAssociation */ @JsonPropertyOrder({ LegalEntityAssociation.JSON_PROPERTY_ASSOCIATOR_ID, LegalEntityAssociation.JSON_PROPERTY_ENTITY_TYPE, @@ -40,7 +35,6 @@ LegalEntityAssociation.JSON_PROPERTY_SETTLOR_EXEMPTION_REASON, LegalEntityAssociation.JSON_PROPERTY_TYPE }) - public class LegalEntityAssociation { public static final String JSON_PROPERTY_ASSOCIATOR_ID = "associatorId"; private String associatorId; @@ -67,10 +61,17 @@ public class LegalEntityAssociation { private List settlorExemptionReason; /** - * Defines the relationship of the legal entity to the current legal entity. Possible value for individuals: **legalRepresentative**. Possible values for organizations: **director**, **signatory**, **trustOwnership**, **uboThroughOwnership**, **uboThroughControl**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust**. Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**. Possible value for unincorporated partnership: **unincorporatedPartnership**. Possible values for unincorporated partnership members: **secondaryPartner**, **uboThroughControl**, **uboThroughOwnership** + * Defines the relationship of the legal entity to the current legal entity. Possible value for + * individuals: **legalRepresentative**. Possible values for organizations: **director**, + * **signatory**, **trustOwnership**, **uboThroughOwnership**, **uboThroughControl**, or + * **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. + * Possible value for trusts: **trust**. Possible values for trust members: + * **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, + * **uboThroughControl**, or **uboThroughOwnership**. Possible value for unincorporated + * partnership: **unincorporatedPartnership**. Possible values for unincorporated partnership + * members: **secondaryPartner**, **uboThroughControl**, **uboThroughOwnership** */ public enum TypeEnum { - DEFINEDBENEFICIARY(String.valueOf("definedBeneficiary")), DIRECTOR(String.valueOf("director")), @@ -112,7 +113,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -133,7 +134,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -141,15 +146,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public LegalEntityAssociation() { - } + public LegalEntityAssociation() {} @JsonCreator public LegalEntityAssociation( - @JsonProperty(JSON_PROPERTY_ASSOCIATOR_ID) String associatorId, - @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) String entityType, - @JsonProperty(JSON_PROPERTY_NAME) String name - ) { + @JsonProperty(JSON_PROPERTY_ASSOCIATOR_ID) String associatorId, + @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) String entityType, + @JsonProperty(JSON_PROPERTY_NAME) String name) { this(); this.associatorId = associatorId; this.entityType = entityType; @@ -157,8 +160,13 @@ public LegalEntityAssociation( } /** - * The unique identifier of another legal entity with which the `legalEntityId` is associated. When the `legalEntityId` is associated to legal entities other than the current one, the response returns all the associations. - * @return associatorId The unique identifier of another legal entity with which the `legalEntityId` is associated. When the `legalEntityId` is associated to legal entities other than the current one, the response returns all the associations. + * The unique identifier of another legal entity with which the `legalEntityId` is + * associated. When the `legalEntityId` is associated to legal entities other than the + * current one, the response returns all the associations. + * + * @return associatorId The unique identifier of another legal entity with which the + * `legalEntityId` is associated. When the `legalEntityId` is associated + * to legal entities other than the current one, the response returns all the associations. */ @JsonProperty(JSON_PROPERTY_ASSOCIATOR_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -166,10 +174,12 @@ public String getAssociatorId() { return associatorId; } - /** - * The legal entity type of associated legal entity. For example, **organization**, **soleProprietorship** or **individual**. - * @return entityType The legal entity type of associated legal entity. For example, **organization**, **soleProprietorship** or **individual**. + * The legal entity type of associated legal entity. For example, **organization**, + * **soleProprietorship** or **individual**. + * + * @return entityType The legal entity type of associated legal entity. For example, + * **organization**, **soleProprietorship** or **individual**. */ @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,11 +187,12 @@ public String getEntityType() { return entityType; } - /** - * The individual's job title if the `type` is **uboThroughControl** or **signatory**. + * The individual's job title if the `type` is **uboThroughControl** or + * **signatory**. * - * @param jobTitle The individual's job title if the `type` is **uboThroughControl** or **signatory**. + * @param jobTitle The individual's job title if the `type` is **uboThroughControl** + * or **signatory**. * @return the current {@code LegalEntityAssociation} instance, allowing for method chaining */ public LegalEntityAssociation jobTitle(String jobTitle) { @@ -190,8 +201,11 @@ public LegalEntityAssociation jobTitle(String jobTitle) { } /** - * The individual's job title if the `type` is **uboThroughControl** or **signatory**. - * @return jobTitle The individual's job title if the `type` is **uboThroughControl** or **signatory**. + * The individual's job title if the `type` is **uboThroughControl** or + * **signatory**. + * + * @return jobTitle The individual's job title if the `type` is + * **uboThroughControl** or **signatory**. */ @JsonProperty(JSON_PROPERTY_JOB_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,9 +214,11 @@ public String getJobTitle() { } /** - * The individual's job title if the `type` is **uboThroughControl** or **signatory**. + * The individual's job title if the `type` is **uboThroughControl** or + * **signatory**. * - * @param jobTitle The individual's job title if the `type` is **uboThroughControl** or **signatory**. + * @param jobTitle The individual's job title if the `type` is **uboThroughControl** + * or **signatory**. */ @JsonProperty(JSON_PROPERTY_JOB_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,9 +227,11 @@ public void setJobTitle(String jobTitle) { } /** - * The unique identifier of the associated [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * The unique identifier of the associated [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). * - * @param legalEntityId The unique identifier of the associated [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * @param legalEntityId The unique identifier of the associated [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). * @return the current {@code LegalEntityAssociation} instance, allowing for method chaining */ public LegalEntityAssociation legalEntityId(String legalEntityId) { @@ -222,8 +240,11 @@ public LegalEntityAssociation legalEntityId(String legalEntityId) { } /** - * The unique identifier of the associated [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). - * @return legalEntityId The unique identifier of the associated [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * The unique identifier of the associated [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * + * @return legalEntityId The unique identifier of the associated [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,9 +253,11 @@ public String getLegalEntityId() { } /** - * The unique identifier of the associated [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * The unique identifier of the associated [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). * - * @param legalEntityId The unique identifier of the associated [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * @param legalEntityId The unique identifier of the associated [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -243,8 +266,15 @@ public void setLegalEntityId(String legalEntityId) { } /** - * The name of the associated [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). - For **individual**, `name.firstName` and `name.lastName`. - For **organization**, `legalName`. - For **soleProprietorship**, `name`. - * @return name The name of the associated [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). - For **individual**, `name.firstName` and `name.lastName`. - For **organization**, `legalName`. - For **soleProprietorship**, `name`. + * The name of the associated [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * - For **individual**, `name.firstName` and `name.lastName`. - For + * **organization**, `legalName`. - For **soleProprietorship**, `name`. + * + * @return name The name of the associated [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * - For **individual**, `name.firstName` and `name.lastName`. - For + * **organization**, `legalName`. - For **soleProprietorship**, `name`. */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,11 +282,14 @@ public String getName() { return name; } - /** - * Default value: **false** Set to **true** if the entity association `type` **director**, **secondaryPartner** or **shareholder** is also a nominee. Only applicable to New Zealand. + * Default value: **false** Set to **true** if the entity association `type` + * **director**, **secondaryPartner** or **shareholder** is also a nominee. Only applicable to New + * Zealand. * - * @param nominee Default value: **false** Set to **true** if the entity association `type` **director**, **secondaryPartner** or **shareholder** is also a nominee. Only applicable to New Zealand. + * @param nominee Default value: **false** Set to **true** if the entity association + * `type` **director**, **secondaryPartner** or **shareholder** is also a nominee. + * Only applicable to New Zealand. * @return the current {@code LegalEntityAssociation} instance, allowing for method chaining */ public LegalEntityAssociation nominee(Boolean nominee) { @@ -265,8 +298,13 @@ public LegalEntityAssociation nominee(Boolean nominee) { } /** - * Default value: **false** Set to **true** if the entity association `type` **director**, **secondaryPartner** or **shareholder** is also a nominee. Only applicable to New Zealand. - * @return nominee Default value: **false** Set to **true** if the entity association `type` **director**, **secondaryPartner** or **shareholder** is also a nominee. Only applicable to New Zealand. + * Default value: **false** Set to **true** if the entity association `type` + * **director**, **secondaryPartner** or **shareholder** is also a nominee. Only applicable to New + * Zealand. + * + * @return nominee Default value: **false** Set to **true** if the entity association + * `type` **director**, **secondaryPartner** or **shareholder** is also a nominee. + * Only applicable to New Zealand. */ @JsonProperty(JSON_PROPERTY_NOMINEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -275,9 +313,13 @@ public Boolean getNominee() { } /** - * Default value: **false** Set to **true** if the entity association `type` **director**, **secondaryPartner** or **shareholder** is also a nominee. Only applicable to New Zealand. + * Default value: **false** Set to **true** if the entity association `type` + * **director**, **secondaryPartner** or **shareholder** is also a nominee. Only applicable to New + * Zealand. * - * @param nominee Default value: **false** Set to **true** if the entity association `type` **director**, **secondaryPartner** or **shareholder** is also a nominee. Only applicable to New Zealand. + * @param nominee Default value: **false** Set to **true** if the entity association + * `type` **director**, **secondaryPartner** or **shareholder** is also a nominee. + * Only applicable to New Zealand. */ @JsonProperty(JSON_PROPERTY_NOMINEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -286,9 +328,11 @@ public void setNominee(Boolean nominee) { } /** - * The individual's relationship to a legal representative if the `type` is **legalRepresentative**. Possible values: **parent**, **guardian**. + * The individual's relationship to a legal representative if the `type` is + * **legalRepresentative**. Possible values: **parent**, **guardian**. * - * @param relationship The individual's relationship to a legal representative if the `type` is **legalRepresentative**. Possible values: **parent**, **guardian**. + * @param relationship The individual's relationship to a legal representative if the + * `type` is **legalRepresentative**. Possible values: **parent**, **guardian**. * @return the current {@code LegalEntityAssociation} instance, allowing for method chaining */ public LegalEntityAssociation relationship(String relationship) { @@ -297,8 +341,11 @@ public LegalEntityAssociation relationship(String relationship) { } /** - * The individual's relationship to a legal representative if the `type` is **legalRepresentative**. Possible values: **parent**, **guardian**. - * @return relationship The individual's relationship to a legal representative if the `type` is **legalRepresentative**. Possible values: **parent**, **guardian**. + * The individual's relationship to a legal representative if the `type` is + * **legalRepresentative**. Possible values: **parent**, **guardian**. + * + * @return relationship The individual's relationship to a legal representative if the + * `type` is **legalRepresentative**. Possible values: **parent**, **guardian**. */ @JsonProperty(JSON_PROPERTY_RELATIONSHIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -307,9 +354,11 @@ public String getRelationship() { } /** - * The individual's relationship to a legal representative if the `type` is **legalRepresentative**. Possible values: **parent**, **guardian**. + * The individual's relationship to a legal representative if the `type` is + * **legalRepresentative**. Possible values: **parent**, **guardian**. * - * @param relationship The individual's relationship to a legal representative if the `type` is **legalRepresentative**. Possible values: **parent**, **guardian**. + * @param relationship The individual's relationship to a legal representative if the + * `type` is **legalRepresentative**. Possible values: **parent**, **guardian**. */ @JsonProperty(JSON_PROPERTY_RELATIONSHIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -318,9 +367,13 @@ public void setRelationship(String relationship) { } /** - * Defines the KYC exemption reason for a settlor associated with a trust. Only applicable to trusts in Australia. For example, **professionalServiceProvider**, **deceased**, or **contributionBelowThreshold**. + * Defines the KYC exemption reason for a settlor associated with a trust. Only applicable to + * trusts in Australia. For example, **professionalServiceProvider**, **deceased**, or + * **contributionBelowThreshold**. * - * @param settlorExemptionReason Defines the KYC exemption reason for a settlor associated with a trust. Only applicable to trusts in Australia. For example, **professionalServiceProvider**, **deceased**, or **contributionBelowThreshold**. + * @param settlorExemptionReason Defines the KYC exemption reason for a settlor associated with a + * trust. Only applicable to trusts in Australia. For example, + * **professionalServiceProvider**, **deceased**, or **contributionBelowThreshold**. * @return the current {@code LegalEntityAssociation} instance, allowing for method chaining */ public LegalEntityAssociation settlorExemptionReason(List settlorExemptionReason) { @@ -337,8 +390,13 @@ public LegalEntityAssociation addSettlorExemptionReasonItem(String settlorExempt } /** - * Defines the KYC exemption reason for a settlor associated with a trust. Only applicable to trusts in Australia. For example, **professionalServiceProvider**, **deceased**, or **contributionBelowThreshold**. - * @return settlorExemptionReason Defines the KYC exemption reason for a settlor associated with a trust. Only applicable to trusts in Australia. For example, **professionalServiceProvider**, **deceased**, or **contributionBelowThreshold**. + * Defines the KYC exemption reason for a settlor associated with a trust. Only applicable to + * trusts in Australia. For example, **professionalServiceProvider**, **deceased**, or + * **contributionBelowThreshold**. + * + * @return settlorExemptionReason Defines the KYC exemption reason for a settlor associated with a + * trust. Only applicable to trusts in Australia. For example, + * **professionalServiceProvider**, **deceased**, or **contributionBelowThreshold**. */ @JsonProperty(JSON_PROPERTY_SETTLOR_EXEMPTION_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -347,9 +405,13 @@ public List getSettlorExemptionReason() { } /** - * Defines the KYC exemption reason for a settlor associated with a trust. Only applicable to trusts in Australia. For example, **professionalServiceProvider**, **deceased**, or **contributionBelowThreshold**. + * Defines the KYC exemption reason for a settlor associated with a trust. Only applicable to + * trusts in Australia. For example, **professionalServiceProvider**, **deceased**, or + * **contributionBelowThreshold**. * - * @param settlorExemptionReason Defines the KYC exemption reason for a settlor associated with a trust. Only applicable to trusts in Australia. For example, **professionalServiceProvider**, **deceased**, or **contributionBelowThreshold**. + * @param settlorExemptionReason Defines the KYC exemption reason for a settlor associated with a + * trust. Only applicable to trusts in Australia. For example, + * **professionalServiceProvider**, **deceased**, or **contributionBelowThreshold**. */ @JsonProperty(JSON_PROPERTY_SETTLOR_EXEMPTION_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -358,9 +420,26 @@ public void setSettlorExemptionReason(List settlorExemptionReason) { } /** - * Defines the relationship of the legal entity to the current legal entity. Possible value for individuals: **legalRepresentative**. Possible values for organizations: **director**, **signatory**, **trustOwnership**, **uboThroughOwnership**, **uboThroughControl**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust**. Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**. Possible value for unincorporated partnership: **unincorporatedPartnership**. Possible values for unincorporated partnership members: **secondaryPartner**, **uboThroughControl**, **uboThroughOwnership** + * Defines the relationship of the legal entity to the current legal entity. Possible value for + * individuals: **legalRepresentative**. Possible values for organizations: **director**, + * **signatory**, **trustOwnership**, **uboThroughOwnership**, **uboThroughControl**, or + * **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. + * Possible value for trusts: **trust**. Possible values for trust members: + * **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, + * **uboThroughControl**, or **uboThroughOwnership**. Possible value for unincorporated + * partnership: **unincorporatedPartnership**. Possible values for unincorporated partnership + * members: **secondaryPartner**, **uboThroughControl**, **uboThroughOwnership** * - * @param type Defines the relationship of the legal entity to the current legal entity. Possible value for individuals: **legalRepresentative**. Possible values for organizations: **director**, **signatory**, **trustOwnership**, **uboThroughOwnership**, **uboThroughControl**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust**. Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**. Possible value for unincorporated partnership: **unincorporatedPartnership**. Possible values for unincorporated partnership members: **secondaryPartner**, **uboThroughControl**, **uboThroughOwnership** + * @param type Defines the relationship of the legal entity to the current legal entity. Possible + * value for individuals: **legalRepresentative**. Possible values for organizations: + * **director**, **signatory**, **trustOwnership**, **uboThroughOwnership**, + * **uboThroughControl**, or **ultimateParentCompany**. Possible values for sole + * proprietorships: **soleProprietorship**. Possible value for trusts: **trust**. Possible + * values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, + * **settlor**, **uboThroughControl**, or **uboThroughOwnership**. Possible value for + * unincorporated partnership: **unincorporatedPartnership**. Possible values for + * unincorporated partnership members: **secondaryPartner**, **uboThroughControl**, + * **uboThroughOwnership** * @return the current {@code LegalEntityAssociation} instance, allowing for method chaining */ public LegalEntityAssociation type(TypeEnum type) { @@ -369,8 +448,26 @@ public LegalEntityAssociation type(TypeEnum type) { } /** - * Defines the relationship of the legal entity to the current legal entity. Possible value for individuals: **legalRepresentative**. Possible values for organizations: **director**, **signatory**, **trustOwnership**, **uboThroughOwnership**, **uboThroughControl**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust**. Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**. Possible value for unincorporated partnership: **unincorporatedPartnership**. Possible values for unincorporated partnership members: **secondaryPartner**, **uboThroughControl**, **uboThroughOwnership** - * @return type Defines the relationship of the legal entity to the current legal entity. Possible value for individuals: **legalRepresentative**. Possible values for organizations: **director**, **signatory**, **trustOwnership**, **uboThroughOwnership**, **uboThroughControl**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust**. Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**. Possible value for unincorporated partnership: **unincorporatedPartnership**. Possible values for unincorporated partnership members: **secondaryPartner**, **uboThroughControl**, **uboThroughOwnership** + * Defines the relationship of the legal entity to the current legal entity. Possible value for + * individuals: **legalRepresentative**. Possible values for organizations: **director**, + * **signatory**, **trustOwnership**, **uboThroughOwnership**, **uboThroughControl**, or + * **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. + * Possible value for trusts: **trust**. Possible values for trust members: + * **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, + * **uboThroughControl**, or **uboThroughOwnership**. Possible value for unincorporated + * partnership: **unincorporatedPartnership**. Possible values for unincorporated partnership + * members: **secondaryPartner**, **uboThroughControl**, **uboThroughOwnership** + * + * @return type Defines the relationship of the legal entity to the current legal entity. Possible + * value for individuals: **legalRepresentative**. Possible values for organizations: + * **director**, **signatory**, **trustOwnership**, **uboThroughOwnership**, + * **uboThroughControl**, or **ultimateParentCompany**. Possible values for sole + * proprietorships: **soleProprietorship**. Possible value for trusts: **trust**. Possible + * values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, + * **settlor**, **uboThroughControl**, or **uboThroughOwnership**. Possible value for + * unincorporated partnership: **unincorporatedPartnership**. Possible values for + * unincorporated partnership members: **secondaryPartner**, **uboThroughControl**, + * **uboThroughOwnership** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -379,9 +476,26 @@ public TypeEnum getType() { } /** - * Defines the relationship of the legal entity to the current legal entity. Possible value for individuals: **legalRepresentative**. Possible values for organizations: **director**, **signatory**, **trustOwnership**, **uboThroughOwnership**, **uboThroughControl**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust**. Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**. Possible value for unincorporated partnership: **unincorporatedPartnership**. Possible values for unincorporated partnership members: **secondaryPartner**, **uboThroughControl**, **uboThroughOwnership** + * Defines the relationship of the legal entity to the current legal entity. Possible value for + * individuals: **legalRepresentative**. Possible values for organizations: **director**, + * **signatory**, **trustOwnership**, **uboThroughOwnership**, **uboThroughControl**, or + * **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. + * Possible value for trusts: **trust**. Possible values for trust members: + * **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, + * **uboThroughControl**, or **uboThroughOwnership**. Possible value for unincorporated + * partnership: **unincorporatedPartnership**. Possible values for unincorporated partnership + * members: **secondaryPartner**, **uboThroughControl**, **uboThroughOwnership** * - * @param type Defines the relationship of the legal entity to the current legal entity. Possible value for individuals: **legalRepresentative**. Possible values for organizations: **director**, **signatory**, **trustOwnership**, **uboThroughOwnership**, **uboThroughControl**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust**. Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**. Possible value for unincorporated partnership: **unincorporatedPartnership**. Possible values for unincorporated partnership members: **secondaryPartner**, **uboThroughControl**, **uboThroughOwnership** + * @param type Defines the relationship of the legal entity to the current legal entity. Possible + * value for individuals: **legalRepresentative**. Possible values for organizations: + * **director**, **signatory**, **trustOwnership**, **uboThroughOwnership**, + * **uboThroughControl**, or **ultimateParentCompany**. Possible values for sole + * proprietorships: **soleProprietorship**. Possible value for trusts: **trust**. Possible + * values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, + * **settlor**, **uboThroughControl**, or **uboThroughOwnership**. Possible value for + * unincorporated partnership: **unincorporatedPartnership**. Possible values for + * unincorporated partnership members: **secondaryPartner**, **uboThroughControl**, + * **uboThroughOwnership** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -389,9 +503,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this LegalEntityAssociation object is equal to o. - */ + /** Return true if this LegalEntityAssociation object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -401,20 +513,30 @@ public boolean equals(Object o) { return false; } LegalEntityAssociation legalEntityAssociation = (LegalEntityAssociation) o; - return Objects.equals(this.associatorId, legalEntityAssociation.associatorId) && - Objects.equals(this.entityType, legalEntityAssociation.entityType) && - Objects.equals(this.jobTitle, legalEntityAssociation.jobTitle) && - Objects.equals(this.legalEntityId, legalEntityAssociation.legalEntityId) && - Objects.equals(this.name, legalEntityAssociation.name) && - Objects.equals(this.nominee, legalEntityAssociation.nominee) && - Objects.equals(this.relationship, legalEntityAssociation.relationship) && - Objects.equals(this.settlorExemptionReason, legalEntityAssociation.settlorExemptionReason) && - Objects.equals(this.type, legalEntityAssociation.type); + return Objects.equals(this.associatorId, legalEntityAssociation.associatorId) + && Objects.equals(this.entityType, legalEntityAssociation.entityType) + && Objects.equals(this.jobTitle, legalEntityAssociation.jobTitle) + && Objects.equals(this.legalEntityId, legalEntityAssociation.legalEntityId) + && Objects.equals(this.name, legalEntityAssociation.name) + && Objects.equals(this.nominee, legalEntityAssociation.nominee) + && Objects.equals(this.relationship, legalEntityAssociation.relationship) + && Objects.equals( + this.settlorExemptionReason, legalEntityAssociation.settlorExemptionReason) + && Objects.equals(this.type, legalEntityAssociation.type); } @Override public int hashCode() { - return Objects.hash(associatorId, entityType, jobTitle, legalEntityId, name, nominee, relationship, settlorExemptionReason, type); + return Objects.hash( + associatorId, + entityType, + jobTitle, + legalEntityId, + name, + nominee, + relationship, + settlorExemptionReason, + type); } @Override @@ -428,15 +550,16 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" nominee: ").append(toIndentedString(nominee)).append("\n"); sb.append(" relationship: ").append(toIndentedString(relationship)).append("\n"); - sb.append(" settlorExemptionReason: ").append(toIndentedString(settlorExemptionReason)).append("\n"); + sb.append(" settlorExemptionReason: ") + .append(toIndentedString(settlorExemptionReason)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -445,21 +568,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of LegalEntityAssociation given an JSON string * * @param jsonString JSON string * @return An instance of LegalEntityAssociation - * @throws JsonProcessingException if the JSON string is invalid with respect to LegalEntityAssociation + * @throws JsonProcessingException if the JSON string is invalid with respect to + * LegalEntityAssociation */ public static LegalEntityAssociation fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, LegalEntityAssociation.class); } -/** - * Convert an instance of LegalEntityAssociation to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of LegalEntityAssociation to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityCapability.java b/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityCapability.java index c7f01a009..6df061ffb 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityCapability.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityCapability.java @@ -2,35 +2,27 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.legalentitymanagement.CapabilitySettings; -import com.adyen.model.legalentitymanagement.SupportingEntityCapability; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * LegalEntityCapability - */ +/** LegalEntityCapability */ @JsonPropertyOrder({ LegalEntityCapability.JSON_PROPERTY_ALLOWED, LegalEntityCapability.JSON_PROPERTY_ALLOWED_LEVEL, @@ -41,16 +33,15 @@ LegalEntityCapability.JSON_PROPERTY_TRANSFER_INSTRUMENTS, LegalEntityCapability.JSON_PROPERTY_VERIFICATION_STATUS }) - public class LegalEntityCapability { public static final String JSON_PROPERTY_ALLOWED = "allowed"; private Boolean allowed; /** - * The capability level that is allowed for the legal entity. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The capability level that is allowed for the legal entity. Possible values: **notApplicable**, + * **low**, **medium**, **high**. */ public enum AllowedLevelEnum { - HIGH(String.valueOf("high")), LOW(String.valueOf("low")), @@ -64,7 +55,7 @@ public enum AllowedLevelEnum { private String value; AllowedLevelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -85,7 +76,11 @@ public static AllowedLevelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AllowedLevelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AllowedLevelEnum.values())); + LOG.warning( + "AllowedLevelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AllowedLevelEnum.values())); return null; } } @@ -100,10 +95,12 @@ public static AllowedLevelEnum fromValue(String value) { private Boolean requested; /** - * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The requested level of the capability. Some capabilities, such as those used in [card + * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different + * levels. Levels increase the capability, but also require additional checks and increased + * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. */ public enum RequestedLevelEnum { - HIGH(String.valueOf("high")), LOW(String.valueOf("low")), @@ -117,7 +114,7 @@ public enum RequestedLevelEnum { private String value; RequestedLevelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -138,7 +135,11 @@ public static RequestedLevelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("RequestedLevelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RequestedLevelEnum.values())); + LOG.warning( + "RequestedLevelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(RequestedLevelEnum.values())); return null; } } @@ -155,18 +156,17 @@ public static RequestedLevelEnum fromValue(String value) { public static final String JSON_PROPERTY_VERIFICATION_STATUS = "verificationStatus"; private String verificationStatus; - public LegalEntityCapability() { - } + public LegalEntityCapability() {} @JsonCreator public LegalEntityCapability( - @JsonProperty(JSON_PROPERTY_ALLOWED) Boolean allowed, - @JsonProperty(JSON_PROPERTY_ALLOWED_LEVEL) AllowedLevelEnum allowedLevel, - @JsonProperty(JSON_PROPERTY_REQUESTED) Boolean requested, - @JsonProperty(JSON_PROPERTY_REQUESTED_LEVEL) RequestedLevelEnum requestedLevel, - @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENTS) List transferInstruments, - @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) String verificationStatus - ) { + @JsonProperty(JSON_PROPERTY_ALLOWED) Boolean allowed, + @JsonProperty(JSON_PROPERTY_ALLOWED_LEVEL) AllowedLevelEnum allowedLevel, + @JsonProperty(JSON_PROPERTY_REQUESTED) Boolean requested, + @JsonProperty(JSON_PROPERTY_REQUESTED_LEVEL) RequestedLevelEnum requestedLevel, + @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENTS) + List transferInstruments, + @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) String verificationStatus) { this(); this.allowed = allowed; this.allowedLevel = allowedLevel; @@ -177,8 +177,11 @@ public LegalEntityCapability( } /** - * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful. - * @return allowed Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful. + * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is + * successful. + * + * @return allowed Indicates whether the capability is allowed. Adyen sets this to **true** if the + * verification is successful. */ @JsonProperty(JSON_PROPERTY_ALLOWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,10 +189,12 @@ public Boolean getAllowed() { return allowed; } - /** - * The capability level that is allowed for the legal entity. Possible values: **notApplicable**, **low**, **medium**, **high**. - * @return allowedLevel The capability level that is allowed for the legal entity. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The capability level that is allowed for the legal entity. Possible values: **notApplicable**, + * **low**, **medium**, **high**. + * + * @return allowedLevel The capability level that is allowed for the legal entity. Possible + * values: **notApplicable**, **low**, **medium**, **high**. */ @JsonProperty(JSON_PROPERTY_ALLOWED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -197,11 +202,10 @@ public AllowedLevelEnum getAllowedLevel() { return allowedLevel; } - /** * allowedSettings * - * @param allowedSettings + * @param allowedSettings * @return the current {@code LegalEntityCapability} instance, allowing for method chaining */ public LegalEntityCapability allowedSettings(CapabilitySettings allowedSettings) { @@ -211,7 +215,8 @@ public LegalEntityCapability allowedSettings(CapabilitySettings allowedSettings) /** * Get allowedSettings - * @return allowedSettings + * + * @return allowedSettings */ @JsonProperty(JSON_PROPERTY_ALLOWED_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -222,7 +227,7 @@ public CapabilitySettings getAllowedSettings() { /** * allowedSettings * - * @param allowedSettings + * @param allowedSettings */ @JsonProperty(JSON_PROPERTY_ALLOWED_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -231,8 +236,11 @@ public void setAllowedSettings(CapabilitySettings allowedSettings) { } /** - * Indicates whether the capability is requested. To check whether the legal entity is permitted to use the capability, refer to the `allowed` field. - * @return requested Indicates whether the capability is requested. To check whether the legal entity is permitted to use the capability, refer to the `allowed` field. + * Indicates whether the capability is requested. To check whether the legal entity is permitted + * to use the capability, refer to the `allowed` field. + * + * @return requested Indicates whether the capability is requested. To check whether the legal + * entity is permitted to use the capability, refer to the `allowed` field. */ @JsonProperty(JSON_PROPERTY_REQUESTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,10 +248,17 @@ public Boolean getRequested() { return requested; } - /** - * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. - * @return requestedLevel The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * The requested level of the capability. Some capabilities, such as those used in [card + * issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different + * levels. Levels increase the capability, but also require additional checks and increased + * monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + * + * @return requestedLevel The requested level of the capability. Some capabilities, such as those + * used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), + * have different levels. Levels increase the capability, but also require additional checks + * and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, + * **high**. */ @JsonProperty(JSON_PROPERTY_REQUESTED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -251,11 +266,10 @@ public RequestedLevelEnum getRequestedLevel() { return requestedLevel; } - /** * requestedSettings * - * @param requestedSettings + * @param requestedSettings * @return the current {@code LegalEntityCapability} instance, allowing for method chaining */ public LegalEntityCapability requestedSettings(CapabilitySettings requestedSettings) { @@ -265,7 +279,8 @@ public LegalEntityCapability requestedSettings(CapabilitySettings requestedSetti /** * Get requestedSettings - * @return requestedSettings + * + * @return requestedSettings */ @JsonProperty(JSON_PROPERTY_REQUESTED_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -276,7 +291,7 @@ public CapabilitySettings getRequestedSettings() { /** * requestedSettings * - * @param requestedSettings + * @param requestedSettings */ @JsonProperty(JSON_PROPERTY_REQUESTED_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -286,7 +301,9 @@ public void setRequestedSettings(CapabilitySettings requestedSettings) { /** * The capability status of transfer instruments associated with the legal entity. - * @return transferInstruments The capability status of transfer instruments associated with the legal entity. + * + * @return transferInstruments The capability status of transfer instruments associated with the + * legal entity. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -294,10 +311,18 @@ public List getTransferInstruments() { return transferInstruments; } - /** - * The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. - * @return verificationStatus The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. + * The status of the verification checks for the capability. Possible values: * **pending**: Adyen + * is running the verification. * **invalid**: The verification failed. Check if the + * `errors` array contains more information. * **valid**: The verification has been + * successfully completed. * **rejected**: Adyen has verified the information, but found reasons + * to not allow the capability. + * + * @return verificationStatus The status of the verification checks for the capability. Possible + * values: * **pending**: Adyen is running the verification. * **invalid**: The verification + * failed. Check if the `errors` array contains more information. * **valid**: The + * verification has been successfully completed. * **rejected**: Adyen has verified the + * information, but found reasons to not allow the capability. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -305,10 +330,7 @@ public String getVerificationStatus() { return verificationStatus; } - - /** - * Return true if this LegalEntityCapability object is equal to o. - */ + /** Return true if this LegalEntityCapability object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -318,19 +340,27 @@ public boolean equals(Object o) { return false; } LegalEntityCapability legalEntityCapability = (LegalEntityCapability) o; - return Objects.equals(this.allowed, legalEntityCapability.allowed) && - Objects.equals(this.allowedLevel, legalEntityCapability.allowedLevel) && - Objects.equals(this.allowedSettings, legalEntityCapability.allowedSettings) && - Objects.equals(this.requested, legalEntityCapability.requested) && - Objects.equals(this.requestedLevel, legalEntityCapability.requestedLevel) && - Objects.equals(this.requestedSettings, legalEntityCapability.requestedSettings) && - Objects.equals(this.transferInstruments, legalEntityCapability.transferInstruments) && - Objects.equals(this.verificationStatus, legalEntityCapability.verificationStatus); + return Objects.equals(this.allowed, legalEntityCapability.allowed) + && Objects.equals(this.allowedLevel, legalEntityCapability.allowedLevel) + && Objects.equals(this.allowedSettings, legalEntityCapability.allowedSettings) + && Objects.equals(this.requested, legalEntityCapability.requested) + && Objects.equals(this.requestedLevel, legalEntityCapability.requestedLevel) + && Objects.equals(this.requestedSettings, legalEntityCapability.requestedSettings) + && Objects.equals(this.transferInstruments, legalEntityCapability.transferInstruments) + && Objects.equals(this.verificationStatus, legalEntityCapability.verificationStatus); } @Override public int hashCode() { - return Objects.hash(allowed, allowedLevel, allowedSettings, requested, requestedLevel, requestedSettings, transferInstruments, verificationStatus); + return Objects.hash( + allowed, + allowedLevel, + allowedSettings, + requested, + requestedLevel, + requestedSettings, + transferInstruments, + verificationStatus); } @Override @@ -343,15 +373,16 @@ public String toString() { sb.append(" requested: ").append(toIndentedString(requested)).append("\n"); sb.append(" requestedLevel: ").append(toIndentedString(requestedLevel)).append("\n"); sb.append(" requestedSettings: ").append(toIndentedString(requestedSettings)).append("\n"); - sb.append(" transferInstruments: ").append(toIndentedString(transferInstruments)).append("\n"); + sb.append(" transferInstruments: ") + .append(toIndentedString(transferInstruments)) + .append("\n"); sb.append(" verificationStatus: ").append(toIndentedString(verificationStatus)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -360,21 +391,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of LegalEntityCapability given an JSON string * * @param jsonString JSON string * @return An instance of LegalEntityCapability - * @throws JsonProcessingException if the JSON string is invalid with respect to LegalEntityCapability + * @throws JsonProcessingException if the JSON string is invalid with respect to + * LegalEntityCapability */ public static LegalEntityCapability fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, LegalEntityCapability.class); } -/** - * Convert an instance of LegalEntityCapability to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of LegalEntityCapability to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityInfo.java b/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityInfo.java index db3a817cd..c58e8e5c9 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityInfo.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityInfo.java @@ -2,42 +2,30 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.legalentitymanagement.Individual; -import com.adyen.model.legalentitymanagement.LegalEntityAssociation; -import com.adyen.model.legalentitymanagement.LegalEntityCapability; -import com.adyen.model.legalentitymanagement.Organization; -import com.adyen.model.legalentitymanagement.SoleProprietorship; -import com.adyen.model.legalentitymanagement.Trust; -import com.adyen.model.legalentitymanagement.UnincorporatedPartnership; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * LegalEntityInfo - */ +/** LegalEntityInfo */ @JsonPropertyOrder({ LegalEntityInfo.JSON_PROPERTY_CAPABILITIES, LegalEntityInfo.JSON_PROPERTY_ENTITY_ASSOCIATIONS, @@ -50,7 +38,6 @@ LegalEntityInfo.JSON_PROPERTY_UNINCORPORATED_PARTNERSHIP, LegalEntityInfo.JSON_PROPERTY_VERIFICATION_PLAN }) - public class LegalEntityInfo { public static final String JSON_PROPERTY_CAPABILITIES = "capabilities"; private Map capabilities; @@ -74,10 +61,10 @@ public class LegalEntityInfo { private Trust trust; /** - * The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. + * The type of legal entity. Possible values: **individual**, **organization**, + * **soleProprietorship**, or **trust**. */ public enum TypeEnum { - INDIVIDUAL(String.valueOf("individual")), ORGANIZATION(String.valueOf("organization")), @@ -93,7 +80,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -114,7 +101,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -128,13 +119,17 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VERIFICATION_PLAN = "verificationPlan"; private String verificationPlan; - public LegalEntityInfo() { - } + public LegalEntityInfo() {} /** - * Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that the legal entity can do in your + * platform.The key is a capability required for your integration. For example, **issueCard** for + * Issuing. The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * @param capabilities Contains key-value pairs that specify the actions that the legal entity can + * do in your platform.The key is a capability required for your integration. For example, + * **issueCard** for Issuing. The value is an object containing the settings for the + * capability. * @return the current {@code LegalEntityInfo} instance, allowing for method chaining */ public LegalEntityInfo capabilities(Map capabilities) { @@ -151,8 +146,14 @@ public LegalEntityInfo putCapabilitiesItem(String key, LegalEntityCapability cap } /** - * Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. - * @return capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that the legal entity can do in your + * platform.The key is a capability required for your integration. For example, **issueCard** for + * Issuing. The value is an object containing the settings for the capability. + * + * @return capabilities Contains key-value pairs that specify the actions that the legal entity + * can do in your platform.The key is a capability required for your integration. For example, + * **issueCard** for Issuing. The value is an object containing the settings for the + * capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,9 +162,14 @@ public Map getCapabilities() { } /** - * Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that the legal entity can do in your + * platform.The key is a capability required for your integration. For example, **issueCard** for + * Issuing. The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * @param capabilities Contains key-value pairs that specify the actions that the legal entity can + * do in your platform.The key is a capability required for your integration. For example, + * **issueCard** for Issuing. The value is an object containing the settings for the + * capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,9 +178,13 @@ public void setCapabilities(Map capabilities) { } /** - * List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. + * List of legal entities associated with the current legal entity. For example, ultimate + * beneficial owners associated with an organization through ownership or control, or as + * signatories. * - * @param entityAssociations List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. + * @param entityAssociations List of legal entities associated with the current legal entity. For + * example, ultimate beneficial owners associated with an organization through ownership or + * control, or as signatories. * @return the current {@code LegalEntityInfo} instance, allowing for method chaining */ public LegalEntityInfo entityAssociations(List entityAssociations) { @@ -191,8 +201,13 @@ public LegalEntityInfo addEntityAssociationsItem(LegalEntityAssociation entityAs } /** - * List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. - * @return entityAssociations List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. + * List of legal entities associated with the current legal entity. For example, ultimate + * beneficial owners associated with an organization through ownership or control, or as + * signatories. + * + * @return entityAssociations List of legal entities associated with the current legal entity. For + * example, ultimate beneficial owners associated with an organization through ownership or + * control, or as signatories. */ @JsonProperty(JSON_PROPERTY_ENTITY_ASSOCIATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -201,9 +216,13 @@ public List getEntityAssociations() { } /** - * List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. + * List of legal entities associated with the current legal entity. For example, ultimate + * beneficial owners associated with an organization through ownership or control, or as + * signatories. * - * @param entityAssociations List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. + * @param entityAssociations List of legal entities associated with the current legal entity. For + * example, ultimate beneficial owners associated with an organization through ownership or + * control, or as signatories. */ @JsonProperty(JSON_PROPERTY_ENTITY_ASSOCIATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,7 +233,7 @@ public void setEntityAssociations(List entityAssociation /** * individual * - * @param individual + * @param individual * @return the current {@code LegalEntityInfo} instance, allowing for method chaining */ public LegalEntityInfo individual(Individual individual) { @@ -224,7 +243,8 @@ public LegalEntityInfo individual(Individual individual) { /** * Get individual - * @return individual + * + * @return individual */ @JsonProperty(JSON_PROPERTY_INDIVIDUAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -235,7 +255,7 @@ public Individual getIndividual() { /** * individual * - * @param individual + * @param individual */ @JsonProperty(JSON_PROPERTY_INDIVIDUAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -246,7 +266,7 @@ public void setIndividual(Individual individual) { /** * organization * - * @param organization + * @param organization * @return the current {@code LegalEntityInfo} instance, allowing for method chaining */ public LegalEntityInfo organization(Organization organization) { @@ -256,7 +276,8 @@ public LegalEntityInfo organization(Organization organization) { /** * Get organization - * @return organization + * + * @return organization */ @JsonProperty(JSON_PROPERTY_ORGANIZATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -267,7 +288,7 @@ public Organization getOrganization() { /** * organization * - * @param organization + * @param organization */ @JsonProperty(JSON_PROPERTY_ORGANIZATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -288,6 +309,7 @@ public LegalEntityInfo reference(String reference) { /** * Your reference for the legal entity, maximum 150 characters. + * * @return reference Your reference for the legal entity, maximum 150 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -310,7 +332,7 @@ public void setReference(String reference) { /** * soleProprietorship * - * @param soleProprietorship + * @param soleProprietorship * @return the current {@code LegalEntityInfo} instance, allowing for method chaining */ public LegalEntityInfo soleProprietorship(SoleProprietorship soleProprietorship) { @@ -320,7 +342,8 @@ public LegalEntityInfo soleProprietorship(SoleProprietorship soleProprietorship) /** * Get soleProprietorship - * @return soleProprietorship + * + * @return soleProprietorship */ @JsonProperty(JSON_PROPERTY_SOLE_PROPRIETORSHIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -331,7 +354,7 @@ public SoleProprietorship getSoleProprietorship() { /** * soleProprietorship * - * @param soleProprietorship + * @param soleProprietorship */ @JsonProperty(JSON_PROPERTY_SOLE_PROPRIETORSHIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -342,7 +365,7 @@ public void setSoleProprietorship(SoleProprietorship soleProprietorship) { /** * trust * - * @param trust + * @param trust * @return the current {@code LegalEntityInfo} instance, allowing for method chaining */ public LegalEntityInfo trust(Trust trust) { @@ -352,7 +375,8 @@ public LegalEntityInfo trust(Trust trust) { /** * Get trust - * @return trust + * + * @return trust */ @JsonProperty(JSON_PROPERTY_TRUST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -363,7 +387,7 @@ public Trust getTrust() { /** * trust * - * @param trust + * @param trust */ @JsonProperty(JSON_PROPERTY_TRUST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -372,9 +396,11 @@ public void setTrust(Trust trust) { } /** - * The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. + * The type of legal entity. Possible values: **individual**, **organization**, + * **soleProprietorship**, or **trust**. * - * @param type The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. + * @param type The type of legal entity. Possible values: **individual**, **organization**, + * **soleProprietorship**, or **trust**. * @return the current {@code LegalEntityInfo} instance, allowing for method chaining */ public LegalEntityInfo type(TypeEnum type) { @@ -383,8 +409,11 @@ public LegalEntityInfo type(TypeEnum type) { } /** - * The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. - * @return type The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. + * The type of legal entity. Possible values: **individual**, **organization**, + * **soleProprietorship**, or **trust**. + * + * @return type The type of legal entity. Possible values: **individual**, **organization**, + * **soleProprietorship**, or **trust**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -393,9 +422,11 @@ public TypeEnum getType() { } /** - * The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. + * The type of legal entity. Possible values: **individual**, **organization**, + * **soleProprietorship**, or **trust**. * - * @param type The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. + * @param type The type of legal entity. Possible values: **individual**, **organization**, + * **soleProprietorship**, or **trust**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -406,17 +437,19 @@ public void setType(TypeEnum type) { /** * unincorporatedPartnership * - * @param unincorporatedPartnership + * @param unincorporatedPartnership * @return the current {@code LegalEntityInfo} instance, allowing for method chaining */ - public LegalEntityInfo unincorporatedPartnership(UnincorporatedPartnership unincorporatedPartnership) { + public LegalEntityInfo unincorporatedPartnership( + UnincorporatedPartnership unincorporatedPartnership) { this.unincorporatedPartnership = unincorporatedPartnership; return this; } /** * Get unincorporatedPartnership - * @return unincorporatedPartnership + * + * @return unincorporatedPartnership */ @JsonProperty(JSON_PROPERTY_UNINCORPORATED_PARTNERSHIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -427,7 +460,7 @@ public UnincorporatedPartnership getUnincorporatedPartnership() { /** * unincorporatedPartnership * - * @param unincorporatedPartnership + * @param unincorporatedPartnership */ @JsonProperty(JSON_PROPERTY_UNINCORPORATED_PARTNERSHIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -436,9 +469,13 @@ public void setUnincorporatedPartnership(UnincorporatedPartnership unincorporate } /** - * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** + * for upfront verification for + * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). * - * @param verificationPlan A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * @param verificationPlan A key-value pair that specifies the verification process for a legal + * entity. Set to **upfront** for upfront verification for + * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). * @return the current {@code LegalEntityInfo} instance, allowing for method chaining */ public LegalEntityInfo verificationPlan(String verificationPlan) { @@ -447,8 +484,13 @@ public LegalEntityInfo verificationPlan(String verificationPlan) { } /** - * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). - * @return verificationPlan A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** + * for upfront verification for + * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * + * @return verificationPlan A key-value pair that specifies the verification process for a legal + * entity. Set to **upfront** for upfront verification for + * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). */ @JsonProperty(JSON_PROPERTY_VERIFICATION_PLAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -457,9 +499,13 @@ public String getVerificationPlan() { } /** - * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** + * for upfront verification for + * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). * - * @param verificationPlan A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * @param verificationPlan A key-value pair that specifies the verification process for a legal + * entity. Set to **upfront** for upfront verification for + * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). */ @JsonProperty(JSON_PROPERTY_VERIFICATION_PLAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -467,9 +513,7 @@ public void setVerificationPlan(String verificationPlan) { this.verificationPlan = verificationPlan; } - /** - * Return true if this LegalEntityInfo object is equal to o. - */ + /** Return true if this LegalEntityInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -479,21 +523,31 @@ public boolean equals(Object o) { return false; } LegalEntityInfo legalEntityInfo = (LegalEntityInfo) o; - return Objects.equals(this.capabilities, legalEntityInfo.capabilities) && - Objects.equals(this.entityAssociations, legalEntityInfo.entityAssociations) && - Objects.equals(this.individual, legalEntityInfo.individual) && - Objects.equals(this.organization, legalEntityInfo.organization) && - Objects.equals(this.reference, legalEntityInfo.reference) && - Objects.equals(this.soleProprietorship, legalEntityInfo.soleProprietorship) && - Objects.equals(this.trust, legalEntityInfo.trust) && - Objects.equals(this.type, legalEntityInfo.type) && - Objects.equals(this.unincorporatedPartnership, legalEntityInfo.unincorporatedPartnership) && - Objects.equals(this.verificationPlan, legalEntityInfo.verificationPlan); + return Objects.equals(this.capabilities, legalEntityInfo.capabilities) + && Objects.equals(this.entityAssociations, legalEntityInfo.entityAssociations) + && Objects.equals(this.individual, legalEntityInfo.individual) + && Objects.equals(this.organization, legalEntityInfo.organization) + && Objects.equals(this.reference, legalEntityInfo.reference) + && Objects.equals(this.soleProprietorship, legalEntityInfo.soleProprietorship) + && Objects.equals(this.trust, legalEntityInfo.trust) + && Objects.equals(this.type, legalEntityInfo.type) + && Objects.equals(this.unincorporatedPartnership, legalEntityInfo.unincorporatedPartnership) + && Objects.equals(this.verificationPlan, legalEntityInfo.verificationPlan); } @Override public int hashCode() { - return Objects.hash(capabilities, entityAssociations, individual, organization, reference, soleProprietorship, trust, type, unincorporatedPartnership, verificationPlan); + return Objects.hash( + capabilities, + entityAssociations, + individual, + organization, + reference, + soleProprietorship, + trust, + type, + unincorporatedPartnership, + verificationPlan); } @Override @@ -508,15 +562,16 @@ public String toString() { sb.append(" soleProprietorship: ").append(toIndentedString(soleProprietorship)).append("\n"); sb.append(" trust: ").append(toIndentedString(trust)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" unincorporatedPartnership: ").append(toIndentedString(unincorporatedPartnership)).append("\n"); + sb.append(" unincorporatedPartnership: ") + .append(toIndentedString(unincorporatedPartnership)) + .append("\n"); sb.append(" verificationPlan: ").append(toIndentedString(verificationPlan)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -525,7 +580,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of LegalEntityInfo given an JSON string * * @param jsonString JSON string @@ -535,11 +590,12 @@ private String toIndentedString(Object o) { public static LegalEntityInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, LegalEntityInfo.class); } -/** - * Convert an instance of LegalEntityInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of LegalEntityInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityInfoRequiredType.java b/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityInfoRequiredType.java index e8f210cfc..d0c58eb98 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityInfoRequiredType.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityInfoRequiredType.java @@ -2,42 +2,30 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.legalentitymanagement.Individual; -import com.adyen.model.legalentitymanagement.LegalEntityAssociation; -import com.adyen.model.legalentitymanagement.LegalEntityCapability; -import com.adyen.model.legalentitymanagement.Organization; -import com.adyen.model.legalentitymanagement.SoleProprietorship; -import com.adyen.model.legalentitymanagement.Trust; -import com.adyen.model.legalentitymanagement.UnincorporatedPartnership; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * LegalEntityInfoRequiredType - */ +/** LegalEntityInfoRequiredType */ @JsonPropertyOrder({ LegalEntityInfoRequiredType.JSON_PROPERTY_CAPABILITIES, LegalEntityInfoRequiredType.JSON_PROPERTY_ENTITY_ASSOCIATIONS, @@ -50,7 +38,6 @@ LegalEntityInfoRequiredType.JSON_PROPERTY_UNINCORPORATED_PARTNERSHIP, LegalEntityInfoRequiredType.JSON_PROPERTY_VERIFICATION_PLAN }) - public class LegalEntityInfoRequiredType { public static final String JSON_PROPERTY_CAPABILITIES = "capabilities"; private Map capabilities; @@ -74,10 +61,10 @@ public class LegalEntityInfoRequiredType { private Trust trust; /** - * The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. + * The type of legal entity. Possible values: **individual**, **organization**, + * **soleProprietorship**, or **trust**. */ public enum TypeEnum { - INDIVIDUAL(String.valueOf("individual")), ORGANIZATION(String.valueOf("organization")), @@ -93,7 +80,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -114,7 +101,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -128,13 +119,17 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VERIFICATION_PLAN = "verificationPlan"; private String verificationPlan; - public LegalEntityInfoRequiredType() { - } + public LegalEntityInfoRequiredType() {} /** - * Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that the legal entity can do in your + * platform.The key is a capability required for your integration. For example, **issueCard** for + * Issuing. The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * @param capabilities Contains key-value pairs that specify the actions that the legal entity can + * do in your platform.The key is a capability required for your integration. For example, + * **issueCard** for Issuing. The value is an object containing the settings for the + * capability. * @return the current {@code LegalEntityInfoRequiredType} instance, allowing for method chaining */ public LegalEntityInfoRequiredType capabilities(Map capabilities) { @@ -142,7 +137,8 @@ public LegalEntityInfoRequiredType capabilities(Map(); } @@ -151,8 +147,14 @@ public LegalEntityInfoRequiredType putCapabilitiesItem(String key, LegalEntityCa } /** - * Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. - * @return capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that the legal entity can do in your + * platform.The key is a capability required for your integration. For example, **issueCard** for + * Issuing. The value is an object containing the settings for the capability. + * + * @return capabilities Contains key-value pairs that specify the actions that the legal entity + * can do in your platform.The key is a capability required for your integration. For example, + * **issueCard** for Issuing. The value is an object containing the settings for the + * capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,9 +163,14 @@ public Map getCapabilities() { } /** - * Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that the legal entity can do in your + * platform.The key is a capability required for your integration. For example, **issueCard** for + * Issuing. The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + * @param capabilities Contains key-value pairs that specify the actions that the legal entity can + * do in your platform.The key is a capability required for your integration. For example, + * **issueCard** for Issuing. The value is an object containing the settings for the + * capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,17 +179,23 @@ public void setCapabilities(Map capabilities) { } /** - * List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. + * List of legal entities associated with the current legal entity. For example, ultimate + * beneficial owners associated with an organization through ownership or control, or as + * signatories. * - * @param entityAssociations List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. + * @param entityAssociations List of legal entities associated with the current legal entity. For + * example, ultimate beneficial owners associated with an organization through ownership or + * control, or as signatories. * @return the current {@code LegalEntityInfoRequiredType} instance, allowing for method chaining */ - public LegalEntityInfoRequiredType entityAssociations(List entityAssociations) { + public LegalEntityInfoRequiredType entityAssociations( + List entityAssociations) { this.entityAssociations = entityAssociations; return this; } - public LegalEntityInfoRequiredType addEntityAssociationsItem(LegalEntityAssociation entityAssociationsItem) { + public LegalEntityInfoRequiredType addEntityAssociationsItem( + LegalEntityAssociation entityAssociationsItem) { if (this.entityAssociations == null) { this.entityAssociations = new ArrayList<>(); } @@ -191,8 +204,13 @@ public LegalEntityInfoRequiredType addEntityAssociationsItem(LegalEntityAssociat } /** - * List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. - * @return entityAssociations List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. + * List of legal entities associated with the current legal entity. For example, ultimate + * beneficial owners associated with an organization through ownership or control, or as + * signatories. + * + * @return entityAssociations List of legal entities associated with the current legal entity. For + * example, ultimate beneficial owners associated with an organization through ownership or + * control, or as signatories. */ @JsonProperty(JSON_PROPERTY_ENTITY_ASSOCIATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -201,9 +219,13 @@ public List getEntityAssociations() { } /** - * List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. + * List of legal entities associated with the current legal entity. For example, ultimate + * beneficial owners associated with an organization through ownership or control, or as + * signatories. * - * @param entityAssociations List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. + * @param entityAssociations List of legal entities associated with the current legal entity. For + * example, ultimate beneficial owners associated with an organization through ownership or + * control, or as signatories. */ @JsonProperty(JSON_PROPERTY_ENTITY_ASSOCIATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,7 +236,7 @@ public void setEntityAssociations(List entityAssociation /** * individual * - * @param individual + * @param individual * @return the current {@code LegalEntityInfoRequiredType} instance, allowing for method chaining */ public LegalEntityInfoRequiredType individual(Individual individual) { @@ -224,7 +246,8 @@ public LegalEntityInfoRequiredType individual(Individual individual) { /** * Get individual - * @return individual + * + * @return individual */ @JsonProperty(JSON_PROPERTY_INDIVIDUAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -235,7 +258,7 @@ public Individual getIndividual() { /** * individual * - * @param individual + * @param individual */ @JsonProperty(JSON_PROPERTY_INDIVIDUAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -246,7 +269,7 @@ public void setIndividual(Individual individual) { /** * organization * - * @param organization + * @param organization * @return the current {@code LegalEntityInfoRequiredType} instance, allowing for method chaining */ public LegalEntityInfoRequiredType organization(Organization organization) { @@ -256,7 +279,8 @@ public LegalEntityInfoRequiredType organization(Organization organization) { /** * Get organization - * @return organization + * + * @return organization */ @JsonProperty(JSON_PROPERTY_ORGANIZATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -267,7 +291,7 @@ public Organization getOrganization() { /** * organization * - * @param organization + * @param organization */ @JsonProperty(JSON_PROPERTY_ORGANIZATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -288,6 +312,7 @@ public LegalEntityInfoRequiredType reference(String reference) { /** * Your reference for the legal entity, maximum 150 characters. + * * @return reference Your reference for the legal entity, maximum 150 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -310,7 +335,7 @@ public void setReference(String reference) { /** * soleProprietorship * - * @param soleProprietorship + * @param soleProprietorship * @return the current {@code LegalEntityInfoRequiredType} instance, allowing for method chaining */ public LegalEntityInfoRequiredType soleProprietorship(SoleProprietorship soleProprietorship) { @@ -320,7 +345,8 @@ public LegalEntityInfoRequiredType soleProprietorship(SoleProprietorship solePro /** * Get soleProprietorship - * @return soleProprietorship + * + * @return soleProprietorship */ @JsonProperty(JSON_PROPERTY_SOLE_PROPRIETORSHIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -331,7 +357,7 @@ public SoleProprietorship getSoleProprietorship() { /** * soleProprietorship * - * @param soleProprietorship + * @param soleProprietorship */ @JsonProperty(JSON_PROPERTY_SOLE_PROPRIETORSHIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -342,7 +368,7 @@ public void setSoleProprietorship(SoleProprietorship soleProprietorship) { /** * trust * - * @param trust + * @param trust * @return the current {@code LegalEntityInfoRequiredType} instance, allowing for method chaining */ public LegalEntityInfoRequiredType trust(Trust trust) { @@ -352,7 +378,8 @@ public LegalEntityInfoRequiredType trust(Trust trust) { /** * Get trust - * @return trust + * + * @return trust */ @JsonProperty(JSON_PROPERTY_TRUST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -363,7 +390,7 @@ public Trust getTrust() { /** * trust * - * @param trust + * @param trust */ @JsonProperty(JSON_PROPERTY_TRUST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -372,9 +399,11 @@ public void setTrust(Trust trust) { } /** - * The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. + * The type of legal entity. Possible values: **individual**, **organization**, + * **soleProprietorship**, or **trust**. * - * @param type The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. + * @param type The type of legal entity. Possible values: **individual**, **organization**, + * **soleProprietorship**, or **trust**. * @return the current {@code LegalEntityInfoRequiredType} instance, allowing for method chaining */ public LegalEntityInfoRequiredType type(TypeEnum type) { @@ -383,8 +412,11 @@ public LegalEntityInfoRequiredType type(TypeEnum type) { } /** - * The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. - * @return type The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. + * The type of legal entity. Possible values: **individual**, **organization**, + * **soleProprietorship**, or **trust**. + * + * @return type The type of legal entity. Possible values: **individual**, **organization**, + * **soleProprietorship**, or **trust**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -393,9 +425,11 @@ public TypeEnum getType() { } /** - * The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. + * The type of legal entity. Possible values: **individual**, **organization**, + * **soleProprietorship**, or **trust**. * - * @param type The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. + * @param type The type of legal entity. Possible values: **individual**, **organization**, + * **soleProprietorship**, or **trust**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -406,17 +440,19 @@ public void setType(TypeEnum type) { /** * unincorporatedPartnership * - * @param unincorporatedPartnership + * @param unincorporatedPartnership * @return the current {@code LegalEntityInfoRequiredType} instance, allowing for method chaining */ - public LegalEntityInfoRequiredType unincorporatedPartnership(UnincorporatedPartnership unincorporatedPartnership) { + public LegalEntityInfoRequiredType unincorporatedPartnership( + UnincorporatedPartnership unincorporatedPartnership) { this.unincorporatedPartnership = unincorporatedPartnership; return this; } /** * Get unincorporatedPartnership - * @return unincorporatedPartnership + * + * @return unincorporatedPartnership */ @JsonProperty(JSON_PROPERTY_UNINCORPORATED_PARTNERSHIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -427,7 +463,7 @@ public UnincorporatedPartnership getUnincorporatedPartnership() { /** * unincorporatedPartnership * - * @param unincorporatedPartnership + * @param unincorporatedPartnership */ @JsonProperty(JSON_PROPERTY_UNINCORPORATED_PARTNERSHIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -436,9 +472,13 @@ public void setUnincorporatedPartnership(UnincorporatedPartnership unincorporate } /** - * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** + * for upfront verification for + * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). * - * @param verificationPlan A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * @param verificationPlan A key-value pair that specifies the verification process for a legal + * entity. Set to **upfront** for upfront verification for + * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). * @return the current {@code LegalEntityInfoRequiredType} instance, allowing for method chaining */ public LegalEntityInfoRequiredType verificationPlan(String verificationPlan) { @@ -447,8 +487,13 @@ public LegalEntityInfoRequiredType verificationPlan(String verificationPlan) { } /** - * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). - * @return verificationPlan A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** + * for upfront verification for + * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * + * @return verificationPlan A key-value pair that specifies the verification process for a legal + * entity. Set to **upfront** for upfront verification for + * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). */ @JsonProperty(JSON_PROPERTY_VERIFICATION_PLAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -457,9 +502,13 @@ public String getVerificationPlan() { } /** - * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** + * for upfront verification for + * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). * - * @param verificationPlan A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). + * @param verificationPlan A key-value pair that specifies the verification process for a legal + * entity. Set to **upfront** for upfront verification for + * [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). */ @JsonProperty(JSON_PROPERTY_VERIFICATION_PLAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -467,9 +516,7 @@ public void setVerificationPlan(String verificationPlan) { this.verificationPlan = verificationPlan; } - /** - * Return true if this LegalEntityInfoRequiredType object is equal to o. - */ + /** Return true if this LegalEntityInfoRequiredType object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -479,21 +526,32 @@ public boolean equals(Object o) { return false; } LegalEntityInfoRequiredType legalEntityInfoRequiredType = (LegalEntityInfoRequiredType) o; - return Objects.equals(this.capabilities, legalEntityInfoRequiredType.capabilities) && - Objects.equals(this.entityAssociations, legalEntityInfoRequiredType.entityAssociations) && - Objects.equals(this.individual, legalEntityInfoRequiredType.individual) && - Objects.equals(this.organization, legalEntityInfoRequiredType.organization) && - Objects.equals(this.reference, legalEntityInfoRequiredType.reference) && - Objects.equals(this.soleProprietorship, legalEntityInfoRequiredType.soleProprietorship) && - Objects.equals(this.trust, legalEntityInfoRequiredType.trust) && - Objects.equals(this.type, legalEntityInfoRequiredType.type) && - Objects.equals(this.unincorporatedPartnership, legalEntityInfoRequiredType.unincorporatedPartnership) && - Objects.equals(this.verificationPlan, legalEntityInfoRequiredType.verificationPlan); + return Objects.equals(this.capabilities, legalEntityInfoRequiredType.capabilities) + && Objects.equals(this.entityAssociations, legalEntityInfoRequiredType.entityAssociations) + && Objects.equals(this.individual, legalEntityInfoRequiredType.individual) + && Objects.equals(this.organization, legalEntityInfoRequiredType.organization) + && Objects.equals(this.reference, legalEntityInfoRequiredType.reference) + && Objects.equals(this.soleProprietorship, legalEntityInfoRequiredType.soleProprietorship) + && Objects.equals(this.trust, legalEntityInfoRequiredType.trust) + && Objects.equals(this.type, legalEntityInfoRequiredType.type) + && Objects.equals( + this.unincorporatedPartnership, legalEntityInfoRequiredType.unincorporatedPartnership) + && Objects.equals(this.verificationPlan, legalEntityInfoRequiredType.verificationPlan); } @Override public int hashCode() { - return Objects.hash(capabilities, entityAssociations, individual, organization, reference, soleProprietorship, trust, type, unincorporatedPartnership, verificationPlan); + return Objects.hash( + capabilities, + entityAssociations, + individual, + organization, + reference, + soleProprietorship, + trust, + type, + unincorporatedPartnership, + verificationPlan); } @Override @@ -508,15 +566,16 @@ public String toString() { sb.append(" soleProprietorship: ").append(toIndentedString(soleProprietorship)).append("\n"); sb.append(" trust: ").append(toIndentedString(trust)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" unincorporatedPartnership: ").append(toIndentedString(unincorporatedPartnership)).append("\n"); + sb.append(" unincorporatedPartnership: ") + .append(toIndentedString(unincorporatedPartnership)) + .append("\n"); sb.append(" verificationPlan: ").append(toIndentedString(verificationPlan)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -525,21 +584,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of LegalEntityInfoRequiredType given an JSON string * * @param jsonString JSON string * @return An instance of LegalEntityInfoRequiredType - * @throws JsonProcessingException if the JSON string is invalid with respect to LegalEntityInfoRequiredType + * @throws JsonProcessingException if the JSON string is invalid with respect to + * LegalEntityInfoRequiredType */ - public static LegalEntityInfoRequiredType fromJson(String jsonString) throws JsonProcessingException { + public static LegalEntityInfoRequiredType fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, LegalEntityInfoRequiredType.class); } -/** - * Convert an instance of LegalEntityInfoRequiredType to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of LegalEntityInfoRequiredType to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/NOLocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/NOLocalAccountIdentification.java index a6f040b24..2e8c865c8 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/NOLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/NOLocalAccountIdentification.java @@ -2,45 +2,36 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * NOLocalAccountIdentification - */ +/** NOLocalAccountIdentification */ @JsonPropertyOrder({ NOLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, NOLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class NOLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - /** - * **noLocal** - */ + /** **noLocal** */ public enum TypeEnum { - NOLOCAL(String.valueOf("noLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +39,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,8 +72,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public NOLocalAccountIdentification() { - } + public NOLocalAccountIdentification() {} /** * The 11-digit bank account number, without separators or whitespace. @@ -93,6 +87,7 @@ public NOLocalAccountIdentification accountNumber(String accountNumber) { /** * The 11-digit bank account number, without separators or whitespace. + * * @return accountNumber The 11-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -125,6 +120,7 @@ public NOLocalAccountIdentification type(TypeEnum type) { /** * **noLocal** + * * @return type **noLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -144,9 +140,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this NOLocalAccountIdentification object is equal to o. - */ + /** Return true if this NOLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +150,8 @@ public boolean equals(Object o) { return false; } NOLocalAccountIdentification noLocalAccountIdentification = (NOLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, noLocalAccountIdentification.accountNumber) && - Objects.equals(this.type, noLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, noLocalAccountIdentification.accountNumber) + && Objects.equals(this.type, noLocalAccountIdentification.type); } @Override @@ -176,8 +170,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +179,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of NOLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of NOLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to NOLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * NOLocalAccountIdentification */ - public static NOLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static NOLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NOLocalAccountIdentification.class); } -/** - * Convert an instance of NOLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of NOLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/NZLocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/NZLocalAccountIdentification.java index fde7163eb..7e8c6ea1c 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/NZLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/NZLocalAccountIdentification.java @@ -2,45 +2,36 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * NZLocalAccountIdentification - */ +/** NZLocalAccountIdentification */ @JsonPropertyOrder({ NZLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, NZLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class NZLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - /** - * **nzLocal** - */ + /** **nzLocal** */ public enum TypeEnum { - NZLOCAL(String.valueOf("nzLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +39,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,13 +72,16 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public NZLocalAccountIdentification() { - } + public NZLocalAccountIdentification() {} /** - * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. + * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits + * are the branch number, the next 7 digits are the account number, and the final 2-3 digits are + * the suffix. * - * @param accountNumber The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. + * @param accountNumber The 15-16 digit bank account number. The first 2 digits are the bank + * number, the next 4 digits are the branch number, the next 7 digits are the account number, + * and the final 2-3 digits are the suffix. * @return the current {@code NZLocalAccountIdentification} instance, allowing for method chaining */ public NZLocalAccountIdentification accountNumber(String accountNumber) { @@ -92,8 +90,13 @@ public NZLocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. - * @return accountNumber The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. + * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits + * are the branch number, the next 7 digits are the account number, and the final 2-3 digits are + * the suffix. + * + * @return accountNumber The 15-16 digit bank account number. The first 2 digits are the bank + * number, the next 4 digits are the branch number, the next 7 digits are the account number, + * and the final 2-3 digits are the suffix. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,9 +105,13 @@ public String getAccountNumber() { } /** - * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. + * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits + * are the branch number, the next 7 digits are the account number, and the final 2-3 digits are + * the suffix. * - * @param accountNumber The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. + * @param accountNumber The 15-16 digit bank account number. The first 2 digits are the bank + * number, the next 4 digits are the branch number, the next 7 digits are the account number, + * and the final 2-3 digits are the suffix. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,6 +132,7 @@ public NZLocalAccountIdentification type(TypeEnum type) { /** * **nzLocal** + * * @return type **nzLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -144,9 +152,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this NZLocalAccountIdentification object is equal to o. - */ + /** Return true if this NZLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +162,8 @@ public boolean equals(Object o) { return false; } NZLocalAccountIdentification nzLocalAccountIdentification = (NZLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, nzLocalAccountIdentification.accountNumber) && - Objects.equals(this.type, nzLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, nzLocalAccountIdentification.accountNumber) + && Objects.equals(this.type, nzLocalAccountIdentification.type); } @Override @@ -176,8 +182,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +191,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of NZLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of NZLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to NZLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * NZLocalAccountIdentification */ - public static NZLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static NZLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NZLocalAccountIdentification.class); } -/** - * Convert an instance of NZLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of NZLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/Name.java b/src/main/java/com/adyen/model/legalentitymanagement/Name.java index 46af315a7..e2a0f9175 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/Name.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/Name.java @@ -2,37 +2,27 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Name - */ +/** Name */ @JsonPropertyOrder({ Name.JSON_PROPERTY_FIRST_NAME, Name.JSON_PROPERTY_INFIX, Name.JSON_PROPERTY_LAST_NAME }) - public class Name { public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; private String firstName; @@ -43,8 +33,7 @@ public class Name { public static final String JSON_PROPERTY_LAST_NAME = "lastName"; private String lastName; - public Name() { - } + public Name() {} /** * The individual's first name. Must not be blank. @@ -59,6 +48,7 @@ public Name firstName(String firstName) { /** * The individual's first name. Must not be blank. + * * @return firstName The individual's first name. Must not be blank. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @@ -91,6 +81,7 @@ public Name infix(String infix) { /** * The infix in the individual's name, if any. + * * @return infix The infix in the individual's name, if any. */ @JsonProperty(JSON_PROPERTY_INFIX) @@ -123,6 +114,7 @@ public Name lastName(String lastName) { /** * The individual's last name. Must not be blank. + * * @return lastName The individual's last name. Must not be blank. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @@ -142,9 +134,7 @@ public void setLastName(String lastName) { this.lastName = lastName; } - /** - * Return true if this Name object is equal to o. - */ + /** Return true if this Name object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +144,9 @@ public boolean equals(Object o) { return false; } Name name = (Name) o; - return Objects.equals(this.firstName, name.firstName) && - Objects.equals(this.infix, name.infix) && - Objects.equals(this.lastName, name.lastName); + return Objects.equals(this.firstName, name.firstName) + && Objects.equals(this.infix, name.infix) + && Objects.equals(this.lastName, name.lastName); } @Override @@ -176,8 +166,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +175,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Name given an JSON string * * @param jsonString JSON string @@ -196,11 +185,12 @@ private String toIndentedString(Object o) { public static Name fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Name.class); } -/** - * Convert an instance of Name to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Name to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/NumberAndBicAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/NumberAndBicAccountIdentification.java index ec3903d27..76ce81b25 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/NumberAndBicAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/NumberAndBicAccountIdentification.java @@ -2,54 +2,45 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.legalentitymanagement.AdditionalBankIdentification; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * NumberAndBicAccountIdentification - */ +/** NumberAndBicAccountIdentification */ @JsonPropertyOrder({ NumberAndBicAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, NumberAndBicAccountIdentification.JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION, NumberAndBicAccountIdentification.JSON_PROPERTY_BIC, NumberAndBicAccountIdentification.JSON_PROPERTY_TYPE }) - public class NumberAndBicAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - public static final String JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION = "additionalBankIdentification"; + public static final String JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION = + "additionalBankIdentification"; private AdditionalBankIdentification additionalBankIdentification; public static final String JSON_PROPERTY_BIC = "bic"; private String bic; - /** - * **numberAndBic** - */ + /** **numberAndBic** */ public enum TypeEnum { - NUMBERANDBIC(String.valueOf("numberAndBic")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -57,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -78,7 +69,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -86,14 +81,16 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public NumberAndBicAccountIdentification() { - } + public NumberAndBicAccountIdentification() {} /** - * The bank account number, without separators or whitespace. The length and format depends on the bank or country. + * The bank account number, without separators or whitespace. The length and format depends on the + * bank or country. * - * @param accountNumber The bank account number, without separators or whitespace. The length and format depends on the bank or country. - * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method chaining + * @param accountNumber The bank account number, without separators or whitespace. The length and + * format depends on the bank or country. + * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method + * chaining */ public NumberAndBicAccountIdentification accountNumber(String accountNumber) { this.accountNumber = accountNumber; @@ -101,8 +98,11 @@ public NumberAndBicAccountIdentification accountNumber(String accountNumber) { } /** - * The bank account number, without separators or whitespace. The length and format depends on the bank or country. - * @return accountNumber The bank account number, without separators or whitespace. The length and format depends on the bank or country. + * The bank account number, without separators or whitespace. The length and format depends on the + * bank or country. + * + * @return accountNumber The bank account number, without separators or whitespace. The length and + * format depends on the bank or country. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,9 +111,11 @@ public String getAccountNumber() { } /** - * The bank account number, without separators or whitespace. The length and format depends on the bank or country. + * The bank account number, without separators or whitespace. The length and format depends on the + * bank or country. * - * @param accountNumber The bank account number, without separators or whitespace. The length and format depends on the bank or country. + * @param accountNumber The bank account number, without separators or whitespace. The length and + * format depends on the bank or country. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,17 +126,20 @@ public void setAccountNumber(String accountNumber) { /** * additionalBankIdentification * - * @param additionalBankIdentification - * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method chaining + * @param additionalBankIdentification + * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method + * chaining */ - public NumberAndBicAccountIdentification additionalBankIdentification(AdditionalBankIdentification additionalBankIdentification) { + public NumberAndBicAccountIdentification additionalBankIdentification( + AdditionalBankIdentification additionalBankIdentification) { this.additionalBankIdentification = additionalBankIdentification; return this; } /** * Get additionalBankIdentification - * @return additionalBankIdentification + * + * @return additionalBankIdentification */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,11 +150,12 @@ public AdditionalBankIdentification getAdditionalBankIdentification() { /** * additionalBankIdentification * - * @param additionalBankIdentification + * @param additionalBankIdentification */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAdditionalBankIdentification(AdditionalBankIdentification additionalBankIdentification) { + public void setAdditionalBankIdentification( + AdditionalBankIdentification additionalBankIdentification) { this.additionalBankIdentification = additionalBankIdentification; } @@ -157,7 +163,8 @@ public void setAdditionalBankIdentification(AdditionalBankIdentification additio * The bank's 8- or 11-character BIC or SWIFT code. * * @param bic The bank's 8- or 11-character BIC or SWIFT code. - * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method chaining + * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method + * chaining */ public NumberAndBicAccountIdentification bic(String bic) { this.bic = bic; @@ -166,6 +173,7 @@ public NumberAndBicAccountIdentification bic(String bic) { /** * The bank's 8- or 11-character BIC or SWIFT code. + * * @return bic The bank's 8- or 11-character BIC or SWIFT code. */ @JsonProperty(JSON_PROPERTY_BIC) @@ -189,7 +197,8 @@ public void setBic(String bic) { * **numberAndBic** * * @param type **numberAndBic** - * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method chaining + * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method + * chaining */ public NumberAndBicAccountIdentification type(TypeEnum type) { this.type = type; @@ -198,6 +207,7 @@ public NumberAndBicAccountIdentification type(TypeEnum type) { /** * **numberAndBic** + * * @return type **numberAndBic** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -217,9 +227,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this NumberAndBicAccountIdentification object is equal to o. - */ + /** Return true if this NumberAndBicAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -228,11 +236,14 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - NumberAndBicAccountIdentification numberAndBicAccountIdentification = (NumberAndBicAccountIdentification) o; - return Objects.equals(this.accountNumber, numberAndBicAccountIdentification.accountNumber) && - Objects.equals(this.additionalBankIdentification, numberAndBicAccountIdentification.additionalBankIdentification) && - Objects.equals(this.bic, numberAndBicAccountIdentification.bic) && - Objects.equals(this.type, numberAndBicAccountIdentification.type); + NumberAndBicAccountIdentification numberAndBicAccountIdentification = + (NumberAndBicAccountIdentification) o; + return Objects.equals(this.accountNumber, numberAndBicAccountIdentification.accountNumber) + && Objects.equals( + this.additionalBankIdentification, + numberAndBicAccountIdentification.additionalBankIdentification) + && Objects.equals(this.bic, numberAndBicAccountIdentification.bic) + && Objects.equals(this.type, numberAndBicAccountIdentification.type); } @Override @@ -245,7 +256,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NumberAndBicAccountIdentification {\n"); sb.append(" accountNumber: ").append(toIndentedString(accountNumber)).append("\n"); - sb.append(" additionalBankIdentification: ").append(toIndentedString(additionalBankIdentification)).append("\n"); + sb.append(" additionalBankIdentification: ") + .append(toIndentedString(additionalBankIdentification)) + .append("\n"); sb.append(" bic: ").append(toIndentedString(bic)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -253,8 +266,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -263,21 +275,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of NumberAndBicAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of NumberAndBicAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to NumberAndBicAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * NumberAndBicAccountIdentification */ - public static NumberAndBicAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static NumberAndBicAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NumberAndBicAccountIdentification.class); } -/** - * Convert an instance of NumberAndBicAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of NumberAndBicAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLink.java b/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLink.java index 86e0a3f64..08c65afde 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLink.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLink.java @@ -2,46 +2,37 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * OnboardingLink - */ -@JsonPropertyOrder({ - OnboardingLink.JSON_PROPERTY_URL -}) - +/** OnboardingLink */ +@JsonPropertyOrder({OnboardingLink.JSON_PROPERTY_URL}) public class OnboardingLink { public static final String JSON_PROPERTY_URL = "url"; private String url; - public OnboardingLink() { - } + public OnboardingLink() {} /** - * The URL of the hosted onboarding page where you need to redirect your user. This URL: - Expires after 4 minutes. - Can only be used once. - Can only be clicked once by the user. If the link expires, you need to create a new link. + * The URL of the hosted onboarding page where you need to redirect your user. This URL: - Expires + * after 4 minutes. - Can only be used once. - Can only be clicked once by the user. If the link + * expires, you need to create a new link. * - * @param url The URL of the hosted onboarding page where you need to redirect your user. This URL: - Expires after 4 minutes. - Can only be used once. - Can only be clicked once by the user. If the link expires, you need to create a new link. + * @param url The URL of the hosted onboarding page where you need to redirect your user. This + * URL: - Expires after 4 minutes. - Can only be used once. - Can only be clicked once by the + * user. If the link expires, you need to create a new link. * @return the current {@code OnboardingLink} instance, allowing for method chaining */ public OnboardingLink url(String url) { @@ -50,8 +41,13 @@ public OnboardingLink url(String url) { } /** - * The URL of the hosted onboarding page where you need to redirect your user. This URL: - Expires after 4 minutes. - Can only be used once. - Can only be clicked once by the user. If the link expires, you need to create a new link. - * @return url The URL of the hosted onboarding page where you need to redirect your user. This URL: - Expires after 4 minutes. - Can only be used once. - Can only be clicked once by the user. If the link expires, you need to create a new link. + * The URL of the hosted onboarding page where you need to redirect your user. This URL: - Expires + * after 4 minutes. - Can only be used once. - Can only be clicked once by the user. If the link + * expires, you need to create a new link. + * + * @return url The URL of the hosted onboarding page where you need to redirect your user. This + * URL: - Expires after 4 minutes. - Can only be used once. - Can only be clicked once by the + * user. If the link expires, you need to create a new link. */ @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,9 +56,13 @@ public String getUrl() { } /** - * The URL of the hosted onboarding page where you need to redirect your user. This URL: - Expires after 4 minutes. - Can only be used once. - Can only be clicked once by the user. If the link expires, you need to create a new link. + * The URL of the hosted onboarding page where you need to redirect your user. This URL: - Expires + * after 4 minutes. - Can only be used once. - Can only be clicked once by the user. If the link + * expires, you need to create a new link. * - * @param url The URL of the hosted onboarding page where you need to redirect your user. This URL: - Expires after 4 minutes. - Can only be used once. - Can only be clicked once by the user. If the link expires, you need to create a new link. + * @param url The URL of the hosted onboarding page where you need to redirect your user. This + * URL: - Expires after 4 minutes. - Can only be used once. - Can only be clicked once by the + * user. If the link expires, you need to create a new link. */ @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +70,7 @@ public void setUrl(String url) { this.url = url; } - /** - * Return true if this OnboardingLink object is equal to o. - */ + /** Return true if this OnboardingLink object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +98,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,7 +107,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of OnboardingLink given an JSON string * * @param jsonString JSON string @@ -120,11 +117,12 @@ private String toIndentedString(Object o) { public static OnboardingLink fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, OnboardingLink.class); } -/** - * Convert an instance of OnboardingLink to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of OnboardingLink to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLinkInfo.java b/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLinkInfo.java index 461853567..d20610c0e 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLinkInfo.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLinkInfo.java @@ -2,39 +2,28 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.legalentitymanagement.OnboardingLinkSettings; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * OnboardingLinkInfo - */ +/** OnboardingLinkInfo */ @JsonPropertyOrder({ OnboardingLinkInfo.JSON_PROPERTY_LOCALE, OnboardingLinkInfo.JSON_PROPERTY_REDIRECT_URL, OnboardingLinkInfo.JSON_PROPERTY_SETTINGS, OnboardingLinkInfo.JSON_PROPERTY_THEME_ID }) - public class OnboardingLinkInfo { public static final String JSON_PROPERTY_LOCALE = "locale"; private String locale; @@ -48,13 +37,27 @@ public class OnboardingLinkInfo { public static final String JSON_PROPERTY_THEME_ID = "themeId"; private String themeId; - public OnboardingLinkInfo() { - } + public OnboardingLinkInfo() {} /** - * The language that will be used for the page, specified by a combination of two letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language and [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. See possible valuesfor [marketplaces](https://docs.adyen.com/marketplaces/onboard-users/hosted#supported-languages) or [platforms](https://docs.adyen.com/platforms/onboard-users/hosted#supported-languages). If not specified in the request or if the language is not supported, the page uses the browser language. If the browser language is not supported, the page uses **en-US** by default. + * The language that will be used for the page, specified by a combination of two letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language and [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. See possible + * valuesfor + * [marketplaces](https://docs.adyen.com/marketplaces/onboard-users/hosted#supported-languages) or + * [platforms](https://docs.adyen.com/platforms/onboard-users/hosted#supported-languages). If not + * specified in the request or if the language is not supported, the page uses the browser + * language. If the browser language is not supported, the page uses **en-US** by default. * - * @param locale The language that will be used for the page, specified by a combination of two letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language and [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. See possible valuesfor [marketplaces](https://docs.adyen.com/marketplaces/onboard-users/hosted#supported-languages) or [platforms](https://docs.adyen.com/platforms/onboard-users/hosted#supported-languages). If not specified in the request or if the language is not supported, the page uses the browser language. If the browser language is not supported, the page uses **en-US** by default. + * @param locale The language that will be used for the page, specified by a combination of two + * letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language and [ISO + * 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. See + * possible valuesfor + * [marketplaces](https://docs.adyen.com/marketplaces/onboard-users/hosted#supported-languages) + * or [platforms](https://docs.adyen.com/platforms/onboard-users/hosted#supported-languages). + * If not specified in the request or if the language is not supported, the page uses the + * browser language. If the browser language is not supported, the page uses **en-US** by + * default. * @return the current {@code OnboardingLinkInfo} instance, allowing for method chaining */ public OnboardingLinkInfo locale(String locale) { @@ -63,8 +66,24 @@ public OnboardingLinkInfo locale(String locale) { } /** - * The language that will be used for the page, specified by a combination of two letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language and [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. See possible valuesfor [marketplaces](https://docs.adyen.com/marketplaces/onboard-users/hosted#supported-languages) or [platforms](https://docs.adyen.com/platforms/onboard-users/hosted#supported-languages). If not specified in the request or if the language is not supported, the page uses the browser language. If the browser language is not supported, the page uses **en-US** by default. - * @return locale The language that will be used for the page, specified by a combination of two letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language and [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. See possible valuesfor [marketplaces](https://docs.adyen.com/marketplaces/onboard-users/hosted#supported-languages) or [platforms](https://docs.adyen.com/platforms/onboard-users/hosted#supported-languages). If not specified in the request or if the language is not supported, the page uses the browser language. If the browser language is not supported, the page uses **en-US** by default. + * The language that will be used for the page, specified by a combination of two letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language and [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. See possible + * valuesfor + * [marketplaces](https://docs.adyen.com/marketplaces/onboard-users/hosted#supported-languages) or + * [platforms](https://docs.adyen.com/platforms/onboard-users/hosted#supported-languages). If not + * specified in the request or if the language is not supported, the page uses the browser + * language. If the browser language is not supported, the page uses **en-US** by default. + * + * @return locale The language that will be used for the page, specified by a combination of two + * letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language and [ISO + * 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. See + * possible valuesfor + * [marketplaces](https://docs.adyen.com/marketplaces/onboard-users/hosted#supported-languages) + * or [platforms](https://docs.adyen.com/platforms/onboard-users/hosted#supported-languages). + * If not specified in the request or if the language is not supported, the page uses the + * browser language. If the browser language is not supported, the page uses **en-US** by + * default. */ @JsonProperty(JSON_PROPERTY_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -73,9 +92,24 @@ public String getLocale() { } /** - * The language that will be used for the page, specified by a combination of two letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language and [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. See possible valuesfor [marketplaces](https://docs.adyen.com/marketplaces/onboard-users/hosted#supported-languages) or [platforms](https://docs.adyen.com/platforms/onboard-users/hosted#supported-languages). If not specified in the request or if the language is not supported, the page uses the browser language. If the browser language is not supported, the page uses **en-US** by default. + * The language that will be used for the page, specified by a combination of two letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language and [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. See possible + * valuesfor + * [marketplaces](https://docs.adyen.com/marketplaces/onboard-users/hosted#supported-languages) or + * [platforms](https://docs.adyen.com/platforms/onboard-users/hosted#supported-languages). If not + * specified in the request or if the language is not supported, the page uses the browser + * language. If the browser language is not supported, the page uses **en-US** by default. * - * @param locale The language that will be used for the page, specified by a combination of two letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language and [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. See possible valuesfor [marketplaces](https://docs.adyen.com/marketplaces/onboard-users/hosted#supported-languages) or [platforms](https://docs.adyen.com/platforms/onboard-users/hosted#supported-languages). If not specified in the request or if the language is not supported, the page uses the browser language. If the browser language is not supported, the page uses **en-US** by default. + * @param locale The language that will be used for the page, specified by a combination of two + * letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language and [ISO + * 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. See + * possible valuesfor + * [marketplaces](https://docs.adyen.com/marketplaces/onboard-users/hosted#supported-languages) + * or [platforms](https://docs.adyen.com/platforms/onboard-users/hosted#supported-languages). + * If not specified in the request or if the language is not supported, the page uses the + * browser language. If the browser language is not supported, the page uses **en-US** by + * default. */ @JsonProperty(JSON_PROPERTY_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,6 +130,7 @@ public OnboardingLinkInfo redirectUrl(String redirectUrl) { /** * The URL where the user is redirected after they complete hosted onboarding. + * * @return redirectUrl The URL where the user is redirected after they complete hosted onboarding. */ @JsonProperty(JSON_PROPERTY_REDIRECT_URL) @@ -118,7 +153,7 @@ public void setRedirectUrl(String redirectUrl) { /** * settings * - * @param settings + * @param settings * @return the current {@code OnboardingLinkInfo} instance, allowing for method chaining */ public OnboardingLinkInfo settings(OnboardingLinkSettings settings) { @@ -128,7 +163,8 @@ public OnboardingLinkInfo settings(OnboardingLinkSettings settings) { /** * Get settings - * @return settings + * + * @return settings */ @JsonProperty(JSON_PROPERTY_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,7 +175,7 @@ public OnboardingLinkSettings getSettings() { /** * settings * - * @param settings + * @param settings */ @JsonProperty(JSON_PROPERTY_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,6 +196,7 @@ public OnboardingLinkInfo themeId(String themeId) { /** * The unique identifier of the hosted onboarding theme. + * * @return themeId The unique identifier of the hosted onboarding theme. */ @JsonProperty(JSON_PROPERTY_THEME_ID) @@ -179,9 +216,7 @@ public void setThemeId(String themeId) { this.themeId = themeId; } - /** - * Return true if this OnboardingLinkInfo object is equal to o. - */ + /** Return true if this OnboardingLinkInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -191,10 +226,10 @@ public boolean equals(Object o) { return false; } OnboardingLinkInfo onboardingLinkInfo = (OnboardingLinkInfo) o; - return Objects.equals(this.locale, onboardingLinkInfo.locale) && - Objects.equals(this.redirectUrl, onboardingLinkInfo.redirectUrl) && - Objects.equals(this.settings, onboardingLinkInfo.settings) && - Objects.equals(this.themeId, onboardingLinkInfo.themeId); + return Objects.equals(this.locale, onboardingLinkInfo.locale) + && Objects.equals(this.redirectUrl, onboardingLinkInfo.redirectUrl) + && Objects.equals(this.settings, onboardingLinkInfo.settings) + && Objects.equals(this.themeId, onboardingLinkInfo.themeId); } @Override @@ -215,8 +250,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -225,21 +259,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of OnboardingLinkInfo given an JSON string * * @param jsonString JSON string * @return An instance of OnboardingLinkInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to OnboardingLinkInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to + * OnboardingLinkInfo */ public static OnboardingLinkInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, OnboardingLinkInfo.class); } -/** - * Convert an instance of OnboardingLinkInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of OnboardingLinkInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLinkSettings.java b/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLinkSettings.java index 2069f9f1d..c84792882 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLinkSettings.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLinkSettings.java @@ -2,33 +2,24 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * OnboardingLinkSettings - */ +/** OnboardingLinkSettings */ @JsonPropertyOrder({ OnboardingLinkSettings.JSON_PROPERTY_ACCEPTED_COUNTRIES, OnboardingLinkSettings.JSON_PROPERTY_ALLOW_BANK_ACCOUNT_FORMAT_SELECTION, @@ -48,18 +39,19 @@ OnboardingLinkSettings.JSON_PROPERTY_REQUIRE_PCI_SIGN_POS_MOTO, OnboardingLinkSettings.JSON_PROPERTY_TRANSFER_INSTRUMENT_LIMIT }) - public class OnboardingLinkSettings { public static final String JSON_PROPERTY_ACCEPTED_COUNTRIES = "acceptedCountries"; private List acceptedCountries; - public static final String JSON_PROPERTY_ALLOW_BANK_ACCOUNT_FORMAT_SELECTION = "allowBankAccountFormatSelection"; + public static final String JSON_PROPERTY_ALLOW_BANK_ACCOUNT_FORMAT_SELECTION = + "allowBankAccountFormatSelection"; private Boolean allowBankAccountFormatSelection; public static final String JSON_PROPERTY_ALLOW_DEBUG_UI = "allowDebugUi"; private Boolean allowDebugUi; - public static final String JSON_PROPERTY_ALLOW_INTRA_REGION_CROSS_BORDER_PAYOUT = "allowIntraRegionCrossBorderPayout"; + public static final String JSON_PROPERTY_ALLOW_INTRA_REGION_CROSS_BORDER_PAYOUT = + "allowIntraRegionCrossBorderPayout"; private Boolean allowIntraRegionCrossBorderPayout; public static final String JSON_PROPERTY_CHANGE_LEGAL_ENTITY_TYPE = "changeLegalEntityType"; @@ -71,16 +63,20 @@ public class OnboardingLinkSettings { public static final String JSON_PROPERTY_ENFORCE_LEGAL_AGE = "enforceLegalAge"; private Boolean enforceLegalAge; - public static final String JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_INDIVIDUAL = "hideOnboardingIntroductionIndividual"; + public static final String JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_INDIVIDUAL = + "hideOnboardingIntroductionIndividual"; private Boolean hideOnboardingIntroductionIndividual; - public static final String JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_ORGANIZATION = "hideOnboardingIntroductionOrganization"; + public static final String JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_ORGANIZATION = + "hideOnboardingIntroductionOrganization"; private Boolean hideOnboardingIntroductionOrganization; - public static final String JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_SOLE_PROPRIETOR = "hideOnboardingIntroductionSoleProprietor"; + public static final String JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_SOLE_PROPRIETOR = + "hideOnboardingIntroductionSoleProprietor"; private Boolean hideOnboardingIntroductionSoleProprietor; - public static final String JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_TRUST = "hideOnboardingIntroductionTrust"; + public static final String JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_TRUST = + "hideOnboardingIntroductionTrust"; private Boolean hideOnboardingIntroductionTrust; public static final String JSON_PROPERTY_INSTANT_BANK_VERIFICATION = "instantBankVerification"; @@ -101,13 +97,20 @@ public class OnboardingLinkSettings { public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_LIMIT = "transferInstrumentLimit"; private Integer transferInstrumentLimit; - public OnboardingLinkSettings() { - } + public OnboardingLinkSettings() {} /** - * The list of countries the user can choose from in hosted onboarding when `editPrefilledCountry` is allowed. The value must be in the two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code format. The array is empty by default, allowing all [countries and regions supported by hosted onboarding](https://docs.adyen.com/platforms/onboard-users/#hosted-onboarding). + * The list of countries the user can choose from in hosted onboarding when + * `editPrefilledCountry` is allowed. The value must be in the two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code format. The array is + * empty by default, allowing all [countries and regions supported by hosted + * onboarding](https://docs.adyen.com/platforms/onboard-users/#hosted-onboarding). * - * @param acceptedCountries The list of countries the user can choose from in hosted onboarding when `editPrefilledCountry` is allowed. The value must be in the two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code format. The array is empty by default, allowing all [countries and regions supported by hosted onboarding](https://docs.adyen.com/platforms/onboard-users/#hosted-onboarding). + * @param acceptedCountries The list of countries the user can choose from in hosted onboarding + * when `editPrefilledCountry` is allowed. The value must be in the two-character + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code format. + * The array is empty by default, allowing all [countries and regions supported by hosted + * onboarding](https://docs.adyen.com/platforms/onboard-users/#hosted-onboarding). * @return the current {@code OnboardingLinkSettings} instance, allowing for method chaining */ public OnboardingLinkSettings acceptedCountries(List acceptedCountries) { @@ -124,8 +127,17 @@ public OnboardingLinkSettings addAcceptedCountriesItem(String acceptedCountriesI } /** - * The list of countries the user can choose from in hosted onboarding when `editPrefilledCountry` is allowed. The value must be in the two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code format. The array is empty by default, allowing all [countries and regions supported by hosted onboarding](https://docs.adyen.com/platforms/onboard-users/#hosted-onboarding). - * @return acceptedCountries The list of countries the user can choose from in hosted onboarding when `editPrefilledCountry` is allowed. The value must be in the two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code format. The array is empty by default, allowing all [countries and regions supported by hosted onboarding](https://docs.adyen.com/platforms/onboard-users/#hosted-onboarding). + * The list of countries the user can choose from in hosted onboarding when + * `editPrefilledCountry` is allowed. The value must be in the two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code format. The array is + * empty by default, allowing all [countries and regions supported by hosted + * onboarding](https://docs.adyen.com/platforms/onboard-users/#hosted-onboarding). + * + * @return acceptedCountries The list of countries the user can choose from in hosted onboarding + * when `editPrefilledCountry` is allowed. The value must be in the two-character + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code format. + * The array is empty by default, allowing all [countries and regions supported by hosted + * onboarding](https://docs.adyen.com/platforms/onboard-users/#hosted-onboarding). */ @JsonProperty(JSON_PROPERTY_ACCEPTED_COUNTRIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -134,9 +146,17 @@ public List getAcceptedCountries() { } /** - * The list of countries the user can choose from in hosted onboarding when `editPrefilledCountry` is allowed. The value must be in the two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code format. The array is empty by default, allowing all [countries and regions supported by hosted onboarding](https://docs.adyen.com/platforms/onboard-users/#hosted-onboarding). + * The list of countries the user can choose from in hosted onboarding when + * `editPrefilledCountry` is allowed. The value must be in the two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code format. The array is + * empty by default, allowing all [countries and regions supported by hosted + * onboarding](https://docs.adyen.com/platforms/onboard-users/#hosted-onboarding). * - * @param acceptedCountries The list of countries the user can choose from in hosted onboarding when `editPrefilledCountry` is allowed. The value must be in the two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code format. The array is empty by default, allowing all [countries and regions supported by hosted onboarding](https://docs.adyen.com/platforms/onboard-users/#hosted-onboarding). + * @param acceptedCountries The list of countries the user can choose from in hosted onboarding + * when `editPrefilledCountry` is allowed. The value must be in the two-character + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code format. + * The array is empty by default, allowing all [countries and regions supported by hosted + * onboarding](https://docs.adyen.com/platforms/onboard-users/#hosted-onboarding). */ @JsonProperty(JSON_PROPERTY_ACCEPTED_COUNTRIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,19 +165,25 @@ public void setAcceptedCountries(List acceptedCountries) { } /** - * Default value: **false** Indicates if the user can select the format for their payout account (if applicable). + * Default value: **false** Indicates if the user can select the format for their payout account + * (if applicable). * - * @param allowBankAccountFormatSelection Default value: **false** Indicates if the user can select the format for their payout account (if applicable). + * @param allowBankAccountFormatSelection Default value: **false** Indicates if the user can + * select the format for their payout account (if applicable). * @return the current {@code OnboardingLinkSettings} instance, allowing for method chaining */ - public OnboardingLinkSettings allowBankAccountFormatSelection(Boolean allowBankAccountFormatSelection) { + public OnboardingLinkSettings allowBankAccountFormatSelection( + Boolean allowBankAccountFormatSelection) { this.allowBankAccountFormatSelection = allowBankAccountFormatSelection; return this; } /** - * Default value: **false** Indicates if the user can select the format for their payout account (if applicable). - * @return allowBankAccountFormatSelection Default value: **false** Indicates if the user can select the format for their payout account (if applicable). + * Default value: **false** Indicates if the user can select the format for their payout account + * (if applicable). + * + * @return allowBankAccountFormatSelection Default value: **false** Indicates if the user can + * select the format for their payout account (if applicable). */ @JsonProperty(JSON_PROPERTY_ALLOW_BANK_ACCOUNT_FORMAT_SELECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -166,9 +192,11 @@ public Boolean getAllowBankAccountFormatSelection() { } /** - * Default value: **false** Indicates if the user can select the format for their payout account (if applicable). + * Default value: **false** Indicates if the user can select the format for their payout account + * (if applicable). * - * @param allowBankAccountFormatSelection Default value: **false** Indicates if the user can select the format for their payout account (if applicable). + * @param allowBankAccountFormatSelection Default value: **false** Indicates if the user can + * select the format for their payout account (if applicable). */ @JsonProperty(JSON_PROPERTY_ALLOW_BANK_ACCOUNT_FORMAT_SELECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,9 +205,13 @@ public void setAllowBankAccountFormatSelection(Boolean allowBankAccountFormatSel } /** - * Default value: **true** Indicates whether the debug user interface (UI) is enabled. The debug UI provides information for your support staff to diagnose and resolve user issues during onboarding. It can be accessed using a keyboard shortcut. + * Default value: **true** Indicates whether the debug user interface (UI) is enabled. The debug + * UI provides information for your support staff to diagnose and resolve user issues during + * onboarding. It can be accessed using a keyboard shortcut. * - * @param allowDebugUi Default value: **true** Indicates whether the debug user interface (UI) is enabled. The debug UI provides information for your support staff to diagnose and resolve user issues during onboarding. It can be accessed using a keyboard shortcut. + * @param allowDebugUi Default value: **true** Indicates whether the debug user interface (UI) is + * enabled. The debug UI provides information for your support staff to diagnose and resolve + * user issues during onboarding. It can be accessed using a keyboard shortcut. * @return the current {@code OnboardingLinkSettings} instance, allowing for method chaining */ public OnboardingLinkSettings allowDebugUi(Boolean allowDebugUi) { @@ -188,8 +220,13 @@ public OnboardingLinkSettings allowDebugUi(Boolean allowDebugUi) { } /** - * Default value: **true** Indicates whether the debug user interface (UI) is enabled. The debug UI provides information for your support staff to diagnose and resolve user issues during onboarding. It can be accessed using a keyboard shortcut. - * @return allowDebugUi Default value: **true** Indicates whether the debug user interface (UI) is enabled. The debug UI provides information for your support staff to diagnose and resolve user issues during onboarding. It can be accessed using a keyboard shortcut. + * Default value: **true** Indicates whether the debug user interface (UI) is enabled. The debug + * UI provides information for your support staff to diagnose and resolve user issues during + * onboarding. It can be accessed using a keyboard shortcut. + * + * @return allowDebugUi Default value: **true** Indicates whether the debug user interface (UI) is + * enabled. The debug UI provides information for your support staff to diagnose and resolve + * user issues during onboarding. It can be accessed using a keyboard shortcut. */ @JsonProperty(JSON_PROPERTY_ALLOW_DEBUG_UI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,9 +235,13 @@ public Boolean getAllowDebugUi() { } /** - * Default value: **true** Indicates whether the debug user interface (UI) is enabled. The debug UI provides information for your support staff to diagnose and resolve user issues during onboarding. It can be accessed using a keyboard shortcut. + * Default value: **true** Indicates whether the debug user interface (UI) is enabled. The debug + * UI provides information for your support staff to diagnose and resolve user issues during + * onboarding. It can be accessed using a keyboard shortcut. * - * @param allowDebugUi Default value: **true** Indicates whether the debug user interface (UI) is enabled. The debug UI provides information for your support staff to diagnose and resolve user issues during onboarding. It can be accessed using a keyboard shortcut. + * @param allowDebugUi Default value: **true** Indicates whether the debug user interface (UI) is + * enabled. The debug UI provides information for your support staff to diagnose and resolve + * user issues during onboarding. It can be accessed using a keyboard shortcut. */ @JsonProperty(JSON_PROPERTY_ALLOW_DEBUG_UI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -209,19 +250,27 @@ public void setAllowDebugUi(Boolean allowDebugUi) { } /** - * Default value: **false** Indicates if the user can select a payout account in a different EU/EEA location (including Switzerland and the UK) than the location of their legal entity. + * Default value: **false** Indicates if the user can select a payout account in a different + * EU/EEA location (including Switzerland and the UK) than the location of their legal entity. * - * @param allowIntraRegionCrossBorderPayout Default value: **false** Indicates if the user can select a payout account in a different EU/EEA location (including Switzerland and the UK) than the location of their legal entity. + * @param allowIntraRegionCrossBorderPayout Default value: **false** Indicates if the user can + * select a payout account in a different EU/EEA location (including Switzerland and the UK) + * than the location of their legal entity. * @return the current {@code OnboardingLinkSettings} instance, allowing for method chaining */ - public OnboardingLinkSettings allowIntraRegionCrossBorderPayout(Boolean allowIntraRegionCrossBorderPayout) { + public OnboardingLinkSettings allowIntraRegionCrossBorderPayout( + Boolean allowIntraRegionCrossBorderPayout) { this.allowIntraRegionCrossBorderPayout = allowIntraRegionCrossBorderPayout; return this; } /** - * Default value: **false** Indicates if the user can select a payout account in a different EU/EEA location (including Switzerland and the UK) than the location of their legal entity. - * @return allowIntraRegionCrossBorderPayout Default value: **false** Indicates if the user can select a payout account in a different EU/EEA location (including Switzerland and the UK) than the location of their legal entity. + * Default value: **false** Indicates if the user can select a payout account in a different + * EU/EEA location (including Switzerland and the UK) than the location of their legal entity. + * + * @return allowIntraRegionCrossBorderPayout Default value: **false** Indicates if the user can + * select a payout account in a different EU/EEA location (including Switzerland and the UK) + * than the location of their legal entity. */ @JsonProperty(JSON_PROPERTY_ALLOW_INTRA_REGION_CROSS_BORDER_PAYOUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -230,9 +279,12 @@ public Boolean getAllowIntraRegionCrossBorderPayout() { } /** - * Default value: **false** Indicates if the user can select a payout account in a different EU/EEA location (including Switzerland and the UK) than the location of their legal entity. + * Default value: **false** Indicates if the user can select a payout account in a different + * EU/EEA location (including Switzerland and the UK) than the location of their legal entity. * - * @param allowIntraRegionCrossBorderPayout Default value: **false** Indicates if the user can select a payout account in a different EU/EEA location (including Switzerland and the UK) than the location of their legal entity. + * @param allowIntraRegionCrossBorderPayout Default value: **false** Indicates if the user can + * select a payout account in a different EU/EEA location (including Switzerland and the UK) + * than the location of their legal entity. */ @JsonProperty(JSON_PROPERTY_ALLOW_INTRA_REGION_CROSS_BORDER_PAYOUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -241,9 +293,10 @@ public void setAllowIntraRegionCrossBorderPayout(Boolean allowIntraRegionCrossBo } /** - * Default value: **true** Indicates if the user can change their legal entity type. + * Default value: **true** Indicates if the user can change their legal entity type. * - * @param changeLegalEntityType Default value: **true** Indicates if the user can change their legal entity type. + * @param changeLegalEntityType Default value: **true** Indicates if the user can change their + * legal entity type. * @return the current {@code OnboardingLinkSettings} instance, allowing for method chaining */ public OnboardingLinkSettings changeLegalEntityType(Boolean changeLegalEntityType) { @@ -252,8 +305,10 @@ public OnboardingLinkSettings changeLegalEntityType(Boolean changeLegalEntityTyp } /** - * Default value: **true** Indicates if the user can change their legal entity type. - * @return changeLegalEntityType Default value: **true** Indicates if the user can change their legal entity type. + * Default value: **true** Indicates if the user can change their legal entity type. + * + * @return changeLegalEntityType Default value: **true** Indicates if the user can change their + * legal entity type. */ @JsonProperty(JSON_PROPERTY_CHANGE_LEGAL_ENTITY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -262,9 +317,10 @@ public Boolean getChangeLegalEntityType() { } /** - * Default value: **true** Indicates if the user can change their legal entity type. + * Default value: **true** Indicates if the user can change their legal entity type. * - * @param changeLegalEntityType Default value: **true** Indicates if the user can change their legal entity type. + * @param changeLegalEntityType Default value: **true** Indicates if the user can change their + * legal entity type. */ @JsonProperty(JSON_PROPERTY_CHANGE_LEGAL_ENTITY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -273,9 +329,12 @@ public void setChangeLegalEntityType(Boolean changeLegalEntityType) { } /** - * Default value: **true** Indicates if the user can change the country of their legal entity's address, for example the registered address of an organization. + * Default value: **true** Indicates if the user can change the country of their legal + * entity's address, for example the registered address of an organization. * - * @param editPrefilledCountry Default value: **true** Indicates if the user can change the country of their legal entity's address, for example the registered address of an organization. + * @param editPrefilledCountry Default value: **true** Indicates if the user can change the + * country of their legal entity's address, for example the registered address of an + * organization. * @return the current {@code OnboardingLinkSettings} instance, allowing for method chaining */ public OnboardingLinkSettings editPrefilledCountry(Boolean editPrefilledCountry) { @@ -284,8 +343,12 @@ public OnboardingLinkSettings editPrefilledCountry(Boolean editPrefilledCountry) } /** - * Default value: **true** Indicates if the user can change the country of their legal entity's address, for example the registered address of an organization. - * @return editPrefilledCountry Default value: **true** Indicates if the user can change the country of their legal entity's address, for example the registered address of an organization. + * Default value: **true** Indicates if the user can change the country of their legal + * entity's address, for example the registered address of an organization. + * + * @return editPrefilledCountry Default value: **true** Indicates if the user can change the + * country of their legal entity's address, for example the registered address of an + * organization. */ @JsonProperty(JSON_PROPERTY_EDIT_PREFILLED_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -294,9 +357,12 @@ public Boolean getEditPrefilledCountry() { } /** - * Default value: **true** Indicates if the user can change the country of their legal entity's address, for example the registered address of an organization. + * Default value: **true** Indicates if the user can change the country of their legal + * entity's address, for example the registered address of an organization. * - * @param editPrefilledCountry Default value: **true** Indicates if the user can change the country of their legal entity's address, for example the registered address of an organization. + * @param editPrefilledCountry Default value: **true** Indicates if the user can change the + * country of their legal entity's address, for example the registered address of an + * organization. */ @JsonProperty(JSON_PROPERTY_EDIT_PREFILLED_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -305,9 +371,10 @@ public void setEditPrefilledCountry(Boolean editPrefilledCountry) { } /** - * Default value: **false** Indicates if only users above the age of 18 can be onboarded. + * Default value: **false** Indicates if only users above the age of 18 can be onboarded. * - * @param enforceLegalAge Default value: **false** Indicates if only users above the age of 18 can be onboarded. + * @param enforceLegalAge Default value: **false** Indicates if only users above the age of 18 can + * be onboarded. * @return the current {@code OnboardingLinkSettings} instance, allowing for method chaining */ public OnboardingLinkSettings enforceLegalAge(Boolean enforceLegalAge) { @@ -316,8 +383,10 @@ public OnboardingLinkSettings enforceLegalAge(Boolean enforceLegalAge) { } /** - * Default value: **false** Indicates if only users above the age of 18 can be onboarded. - * @return enforceLegalAge Default value: **false** Indicates if only users above the age of 18 can be onboarded. + * Default value: **false** Indicates if only users above the age of 18 can be onboarded. + * + * @return enforceLegalAge Default value: **false** Indicates if only users above the age of 18 + * can be onboarded. */ @JsonProperty(JSON_PROPERTY_ENFORCE_LEGAL_AGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -326,9 +395,10 @@ public Boolean getEnforceLegalAge() { } /** - * Default value: **false** Indicates if only users above the age of 18 can be onboarded. + * Default value: **false** Indicates if only users above the age of 18 can be onboarded. * - * @param enforceLegalAge Default value: **false** Indicates if only users above the age of 18 can be onboarded. + * @param enforceLegalAge Default value: **false** Indicates if only users above the age of 18 can + * be onboarded. */ @JsonProperty(JSON_PROPERTY_ENFORCE_LEGAL_AGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -337,19 +407,31 @@ public void setEnforceLegalAge(Boolean enforceLegalAge) { } /** - * Default value: **true** Indicates whether the introduction screen is hidden for the user of the individual legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. + * Default value: **true** Indicates whether the introduction screen is hidden for the user of the + * individual legal entity type. The introduction screen provides brief instructions for the + * subsequent steps in the hosted onboarding process. * - * @param hideOnboardingIntroductionIndividual Default value: **true** Indicates whether the introduction screen is hidden for the user of the individual legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. + * @param hideOnboardingIntroductionIndividual Default value: **true** Indicates whether the + * introduction screen is hidden for the user of the individual legal entity type. The + * introduction screen provides brief instructions for the subsequent steps in the hosted + * onboarding process. * @return the current {@code OnboardingLinkSettings} instance, allowing for method chaining */ - public OnboardingLinkSettings hideOnboardingIntroductionIndividual(Boolean hideOnboardingIntroductionIndividual) { + public OnboardingLinkSettings hideOnboardingIntroductionIndividual( + Boolean hideOnboardingIntroductionIndividual) { this.hideOnboardingIntroductionIndividual = hideOnboardingIntroductionIndividual; return this; } /** - * Default value: **true** Indicates whether the introduction screen is hidden for the user of the individual legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. - * @return hideOnboardingIntroductionIndividual Default value: **true** Indicates whether the introduction screen is hidden for the user of the individual legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. + * Default value: **true** Indicates whether the introduction screen is hidden for the user of the + * individual legal entity type. The introduction screen provides brief instructions for the + * subsequent steps in the hosted onboarding process. + * + * @return hideOnboardingIntroductionIndividual Default value: **true** Indicates whether the + * introduction screen is hidden for the user of the individual legal entity type. The + * introduction screen provides brief instructions for the subsequent steps in the hosted + * onboarding process. */ @JsonProperty(JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_INDIVIDUAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -358,30 +440,48 @@ public Boolean getHideOnboardingIntroductionIndividual() { } /** - * Default value: **true** Indicates whether the introduction screen is hidden for the user of the individual legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. + * Default value: **true** Indicates whether the introduction screen is hidden for the user of the + * individual legal entity type. The introduction screen provides brief instructions for the + * subsequent steps in the hosted onboarding process. * - * @param hideOnboardingIntroductionIndividual Default value: **true** Indicates whether the introduction screen is hidden for the user of the individual legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. + * @param hideOnboardingIntroductionIndividual Default value: **true** Indicates whether the + * introduction screen is hidden for the user of the individual legal entity type. The + * introduction screen provides brief instructions for the subsequent steps in the hosted + * onboarding process. */ @JsonProperty(JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_INDIVIDUAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHideOnboardingIntroductionIndividual(Boolean hideOnboardingIntroductionIndividual) { + public void setHideOnboardingIntroductionIndividual( + Boolean hideOnboardingIntroductionIndividual) { this.hideOnboardingIntroductionIndividual = hideOnboardingIntroductionIndividual; } /** - * Default value: **true** Indicates whether the introduction screen is hidden for the user of the organization legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. + * Default value: **true** Indicates whether the introduction screen is hidden for the user of the + * organization legal entity type. The introduction screen provides brief instructions for the + * subsequent steps in the hosted onboarding process. * - * @param hideOnboardingIntroductionOrganization Default value: **true** Indicates whether the introduction screen is hidden for the user of the organization legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. + * @param hideOnboardingIntroductionOrganization Default value: **true** Indicates whether the + * introduction screen is hidden for the user of the organization legal entity type. The + * introduction screen provides brief instructions for the subsequent steps in the hosted + * onboarding process. * @return the current {@code OnboardingLinkSettings} instance, allowing for method chaining */ - public OnboardingLinkSettings hideOnboardingIntroductionOrganization(Boolean hideOnboardingIntroductionOrganization) { + public OnboardingLinkSettings hideOnboardingIntroductionOrganization( + Boolean hideOnboardingIntroductionOrganization) { this.hideOnboardingIntroductionOrganization = hideOnboardingIntroductionOrganization; return this; } /** - * Default value: **true** Indicates whether the introduction screen is hidden for the user of the organization legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. - * @return hideOnboardingIntroductionOrganization Default value: **true** Indicates whether the introduction screen is hidden for the user of the organization legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. + * Default value: **true** Indicates whether the introduction screen is hidden for the user of the + * organization legal entity type. The introduction screen provides brief instructions for the + * subsequent steps in the hosted onboarding process. + * + * @return hideOnboardingIntroductionOrganization Default value: **true** Indicates whether the + * introduction screen is hidden for the user of the organization legal entity type. The + * introduction screen provides brief instructions for the subsequent steps in the hosted + * onboarding process. */ @JsonProperty(JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_ORGANIZATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -390,30 +490,48 @@ public Boolean getHideOnboardingIntroductionOrganization() { } /** - * Default value: **true** Indicates whether the introduction screen is hidden for the user of the organization legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. + * Default value: **true** Indicates whether the introduction screen is hidden for the user of the + * organization legal entity type. The introduction screen provides brief instructions for the + * subsequent steps in the hosted onboarding process. * - * @param hideOnboardingIntroductionOrganization Default value: **true** Indicates whether the introduction screen is hidden for the user of the organization legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. + * @param hideOnboardingIntroductionOrganization Default value: **true** Indicates whether the + * introduction screen is hidden for the user of the organization legal entity type. The + * introduction screen provides brief instructions for the subsequent steps in the hosted + * onboarding process. */ @JsonProperty(JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_ORGANIZATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHideOnboardingIntroductionOrganization(Boolean hideOnboardingIntroductionOrganization) { + public void setHideOnboardingIntroductionOrganization( + Boolean hideOnboardingIntroductionOrganization) { this.hideOnboardingIntroductionOrganization = hideOnboardingIntroductionOrganization; } /** - * Default value: **true** Indicates whether the introduction screen is hidden for the user of the sole proprietorship legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. + * Default value: **true** Indicates whether the introduction screen is hidden for the user of the + * sole proprietorship legal entity type. The introduction screen provides brief instructions for + * the subsequent steps in the hosted onboarding process. * - * @param hideOnboardingIntroductionSoleProprietor Default value: **true** Indicates whether the introduction screen is hidden for the user of the sole proprietorship legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. + * @param hideOnboardingIntroductionSoleProprietor Default value: **true** Indicates whether the + * introduction screen is hidden for the user of the sole proprietorship legal entity type. + * The introduction screen provides brief instructions for the subsequent steps in the hosted + * onboarding process. * @return the current {@code OnboardingLinkSettings} instance, allowing for method chaining */ - public OnboardingLinkSettings hideOnboardingIntroductionSoleProprietor(Boolean hideOnboardingIntroductionSoleProprietor) { + public OnboardingLinkSettings hideOnboardingIntroductionSoleProprietor( + Boolean hideOnboardingIntroductionSoleProprietor) { this.hideOnboardingIntroductionSoleProprietor = hideOnboardingIntroductionSoleProprietor; return this; } /** - * Default value: **true** Indicates whether the introduction screen is hidden for the user of the sole proprietorship legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. - * @return hideOnboardingIntroductionSoleProprietor Default value: **true** Indicates whether the introduction screen is hidden for the user of the sole proprietorship legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. + * Default value: **true** Indicates whether the introduction screen is hidden for the user of the + * sole proprietorship legal entity type. The introduction screen provides brief instructions for + * the subsequent steps in the hosted onboarding process. + * + * @return hideOnboardingIntroductionSoleProprietor Default value: **true** Indicates whether the + * introduction screen is hidden for the user of the sole proprietorship legal entity type. + * The introduction screen provides brief instructions for the subsequent steps in the hosted + * onboarding process. */ @JsonProperty(JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_SOLE_PROPRIETOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -422,30 +540,48 @@ public Boolean getHideOnboardingIntroductionSoleProprietor() { } /** - * Default value: **true** Indicates whether the introduction screen is hidden for the user of the sole proprietorship legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. + * Default value: **true** Indicates whether the introduction screen is hidden for the user of the + * sole proprietorship legal entity type. The introduction screen provides brief instructions for + * the subsequent steps in the hosted onboarding process. * - * @param hideOnboardingIntroductionSoleProprietor Default value: **true** Indicates whether the introduction screen is hidden for the user of the sole proprietorship legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. + * @param hideOnboardingIntroductionSoleProprietor Default value: **true** Indicates whether the + * introduction screen is hidden for the user of the sole proprietorship legal entity type. + * The introduction screen provides brief instructions for the subsequent steps in the hosted + * onboarding process. */ @JsonProperty(JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_SOLE_PROPRIETOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHideOnboardingIntroductionSoleProprietor(Boolean hideOnboardingIntroductionSoleProprietor) { + public void setHideOnboardingIntroductionSoleProprietor( + Boolean hideOnboardingIntroductionSoleProprietor) { this.hideOnboardingIntroductionSoleProprietor = hideOnboardingIntroductionSoleProprietor; } /** - * Default value: **true** Indicates whether the introduction screen is hidden for the user of the trust legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. + * Default value: **true** Indicates whether the introduction screen is hidden for the user of the + * trust legal entity type. The introduction screen provides brief instructions for the subsequent + * steps in the hosted onboarding process. * - * @param hideOnboardingIntroductionTrust Default value: **true** Indicates whether the introduction screen is hidden for the user of the trust legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. + * @param hideOnboardingIntroductionTrust Default value: **true** Indicates whether the + * introduction screen is hidden for the user of the trust legal entity type. The introduction + * screen provides brief instructions for the subsequent steps in the hosted onboarding + * process. * @return the current {@code OnboardingLinkSettings} instance, allowing for method chaining */ - public OnboardingLinkSettings hideOnboardingIntroductionTrust(Boolean hideOnboardingIntroductionTrust) { + public OnboardingLinkSettings hideOnboardingIntroductionTrust( + Boolean hideOnboardingIntroductionTrust) { this.hideOnboardingIntroductionTrust = hideOnboardingIntroductionTrust; return this; } /** - * Default value: **true** Indicates whether the introduction screen is hidden for the user of the trust legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. - * @return hideOnboardingIntroductionTrust Default value: **true** Indicates whether the introduction screen is hidden for the user of the trust legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. + * Default value: **true** Indicates whether the introduction screen is hidden for the user of the + * trust legal entity type. The introduction screen provides brief instructions for the subsequent + * steps in the hosted onboarding process. + * + * @return hideOnboardingIntroductionTrust Default value: **true** Indicates whether the + * introduction screen is hidden for the user of the trust legal entity type. The introduction + * screen provides brief instructions for the subsequent steps in the hosted onboarding + * process. */ @JsonProperty(JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_TRUST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -454,9 +590,14 @@ public Boolean getHideOnboardingIntroductionTrust() { } /** - * Default value: **true** Indicates whether the introduction screen is hidden for the user of the trust legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. + * Default value: **true** Indicates whether the introduction screen is hidden for the user of the + * trust legal entity type. The introduction screen provides brief instructions for the subsequent + * steps in the hosted onboarding process. * - * @param hideOnboardingIntroductionTrust Default value: **true** Indicates whether the introduction screen is hidden for the user of the trust legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. + * @param hideOnboardingIntroductionTrust Default value: **true** Indicates whether the + * introduction screen is hidden for the user of the trust legal entity type. The introduction + * screen provides brief instructions for the subsequent steps in the hosted onboarding + * process. */ @JsonProperty(JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_TRUST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -465,9 +606,11 @@ public void setHideOnboardingIntroductionTrust(Boolean hideOnboardingIntroductio } /** - * Default value: **true** Indicates if the user can initiate the verification process through open banking providers, like Plaid or Tink. + * Default value: **true** Indicates if the user can initiate the verification process through + * open banking providers, like Plaid or Tink. * - * @param instantBankVerification Default value: **true** Indicates if the user can initiate the verification process through open banking providers, like Plaid or Tink. + * @param instantBankVerification Default value: **true** Indicates if the user can initiate the + * verification process through open banking providers, like Plaid or Tink. * @return the current {@code OnboardingLinkSettings} instance, allowing for method chaining */ public OnboardingLinkSettings instantBankVerification(Boolean instantBankVerification) { @@ -476,8 +619,11 @@ public OnboardingLinkSettings instantBankVerification(Boolean instantBankVerific } /** - * Default value: **true** Indicates if the user can initiate the verification process through open banking providers, like Plaid or Tink. - * @return instantBankVerification Default value: **true** Indicates if the user can initiate the verification process through open banking providers, like Plaid or Tink. + * Default value: **true** Indicates if the user can initiate the verification process through + * open banking providers, like Plaid or Tink. + * + * @return instantBankVerification Default value: **true** Indicates if the user can initiate the + * verification process through open banking providers, like Plaid or Tink. */ @JsonProperty(JSON_PROPERTY_INSTANT_BANK_VERIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -486,9 +632,11 @@ public Boolean getInstantBankVerification() { } /** - * Default value: **true** Indicates if the user can initiate the verification process through open banking providers, like Plaid or Tink. + * Default value: **true** Indicates if the user can initiate the verification process through + * open banking providers, like Plaid or Tink. * - * @param instantBankVerification Default value: **true** Indicates if the user can initiate the verification process through open banking providers, like Plaid or Tink. + * @param instantBankVerification Default value: **true** Indicates if the user can initiate the + * verification process through open banking providers, like Plaid or Tink. */ @JsonProperty(JSON_PROPERTY_INSTANT_BANK_VERIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -497,9 +645,11 @@ public void setInstantBankVerification(Boolean instantBankVerification) { } /** - * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **ecomMoto** sales channel type. + * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the + * **ecomMoto** sales channel type. * - * @param requirePciSignEcomMoto Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **ecomMoto** sales channel type. + * @param requirePciSignEcomMoto Default value: **false** Indicates if the user is required to + * sign a PCI questionnaires for the **ecomMoto** sales channel type. * @return the current {@code OnboardingLinkSettings} instance, allowing for method chaining */ public OnboardingLinkSettings requirePciSignEcomMoto(Boolean requirePciSignEcomMoto) { @@ -508,8 +658,11 @@ public OnboardingLinkSettings requirePciSignEcomMoto(Boolean requirePciSignEcomM } /** - * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **ecomMoto** sales channel type. - * @return requirePciSignEcomMoto Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **ecomMoto** sales channel type. + * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the + * **ecomMoto** sales channel type. + * + * @return requirePciSignEcomMoto Default value: **false** Indicates if the user is required to + * sign a PCI questionnaires for the **ecomMoto** sales channel type. */ @JsonProperty(JSON_PROPERTY_REQUIRE_PCI_SIGN_ECOM_MOTO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -518,9 +671,11 @@ public Boolean getRequirePciSignEcomMoto() { } /** - * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **ecomMoto** sales channel type. + * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the + * **ecomMoto** sales channel type. * - * @param requirePciSignEcomMoto Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **ecomMoto** sales channel type. + * @param requirePciSignEcomMoto Default value: **false** Indicates if the user is required to + * sign a PCI questionnaires for the **ecomMoto** sales channel type. */ @JsonProperty(JSON_PROPERTY_REQUIRE_PCI_SIGN_ECOM_MOTO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -529,9 +684,11 @@ public void setRequirePciSignEcomMoto(Boolean requirePciSignEcomMoto) { } /** - * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **eCommerce** sales channel type. + * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the + * **eCommerce** sales channel type. * - * @param requirePciSignEcommerce Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **eCommerce** sales channel type. + * @param requirePciSignEcommerce Default value: **false** Indicates if the user is required to + * sign a PCI questionnaires for the **eCommerce** sales channel type. * @return the current {@code OnboardingLinkSettings} instance, allowing for method chaining */ public OnboardingLinkSettings requirePciSignEcommerce(Boolean requirePciSignEcommerce) { @@ -540,8 +697,11 @@ public OnboardingLinkSettings requirePciSignEcommerce(Boolean requirePciSignEcom } /** - * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **eCommerce** sales channel type. - * @return requirePciSignEcommerce Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **eCommerce** sales channel type. + * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the + * **eCommerce** sales channel type. + * + * @return requirePciSignEcommerce Default value: **false** Indicates if the user is required to + * sign a PCI questionnaires for the **eCommerce** sales channel type. */ @JsonProperty(JSON_PROPERTY_REQUIRE_PCI_SIGN_ECOMMERCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -550,9 +710,11 @@ public Boolean getRequirePciSignEcommerce() { } /** - * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **eCommerce** sales channel type. + * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the + * **eCommerce** sales channel type. * - * @param requirePciSignEcommerce Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **eCommerce** sales channel type. + * @param requirePciSignEcommerce Default value: **false** Indicates if the user is required to + * sign a PCI questionnaires for the **eCommerce** sales channel type. */ @JsonProperty(JSON_PROPERTY_REQUIRE_PCI_SIGN_ECOMMERCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -561,9 +723,11 @@ public void setRequirePciSignEcommerce(Boolean requirePciSignEcommerce) { } /** - * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **pos** sales channel type. + * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the + * **pos** sales channel type. * - * @param requirePciSignPos Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **pos** sales channel type. + * @param requirePciSignPos Default value: **false** Indicates if the user is required to sign a + * PCI questionnaires for the **pos** sales channel type. * @return the current {@code OnboardingLinkSettings} instance, allowing for method chaining */ public OnboardingLinkSettings requirePciSignPos(Boolean requirePciSignPos) { @@ -572,8 +736,11 @@ public OnboardingLinkSettings requirePciSignPos(Boolean requirePciSignPos) { } /** - * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **pos** sales channel type. - * @return requirePciSignPos Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **pos** sales channel type. + * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the + * **pos** sales channel type. + * + * @return requirePciSignPos Default value: **false** Indicates if the user is required to sign a + * PCI questionnaires for the **pos** sales channel type. */ @JsonProperty(JSON_PROPERTY_REQUIRE_PCI_SIGN_POS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -582,9 +749,11 @@ public Boolean getRequirePciSignPos() { } /** - * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **pos** sales channel type. + * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the + * **pos** sales channel type. * - * @param requirePciSignPos Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **pos** sales channel type. + * @param requirePciSignPos Default value: **false** Indicates if the user is required to sign a + * PCI questionnaires for the **pos** sales channel type. */ @JsonProperty(JSON_PROPERTY_REQUIRE_PCI_SIGN_POS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -593,9 +762,11 @@ public void setRequirePciSignPos(Boolean requirePciSignPos) { } /** - * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **posMoto** sales channel type. + * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the + * **posMoto** sales channel type. * - * @param requirePciSignPosMoto Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **posMoto** sales channel type. + * @param requirePciSignPosMoto Default value: **false** Indicates if the user is required to sign + * a PCI questionnaires for the **posMoto** sales channel type. * @return the current {@code OnboardingLinkSettings} instance, allowing for method chaining */ public OnboardingLinkSettings requirePciSignPosMoto(Boolean requirePciSignPosMoto) { @@ -604,8 +775,11 @@ public OnboardingLinkSettings requirePciSignPosMoto(Boolean requirePciSignPosMot } /** - * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **posMoto** sales channel type. - * @return requirePciSignPosMoto Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **posMoto** sales channel type. + * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the + * **posMoto** sales channel type. + * + * @return requirePciSignPosMoto Default value: **false** Indicates if the user is required to + * sign a PCI questionnaires for the **posMoto** sales channel type. */ @JsonProperty(JSON_PROPERTY_REQUIRE_PCI_SIGN_POS_MOTO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -614,9 +788,11 @@ public Boolean getRequirePciSignPosMoto() { } /** - * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **posMoto** sales channel type. + * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the + * **posMoto** sales channel type. * - * @param requirePciSignPosMoto Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **posMoto** sales channel type. + * @param requirePciSignPosMoto Default value: **false** Indicates if the user is required to sign + * a PCI questionnaires for the **posMoto** sales channel type. */ @JsonProperty(JSON_PROPERTY_REQUIRE_PCI_SIGN_POS_MOTO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -637,6 +813,7 @@ public OnboardingLinkSettings transferInstrumentLimit(Integer transferInstrument /** * The maximum number of transfer instruments the user can create. + * * @return transferInstrumentLimit The maximum number of transfer instruments the user can create. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_LIMIT) @@ -656,9 +833,7 @@ public void setTransferInstrumentLimit(Integer transferInstrumentLimit) { this.transferInstrumentLimit = transferInstrumentLimit; } - /** - * Return true if this OnboardingLinkSettings object is equal to o. - */ + /** Return true if this OnboardingLinkSettings object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -668,28 +843,61 @@ public boolean equals(Object o) { return false; } OnboardingLinkSettings onboardingLinkSettings = (OnboardingLinkSettings) o; - return Objects.equals(this.acceptedCountries, onboardingLinkSettings.acceptedCountries) && - Objects.equals(this.allowBankAccountFormatSelection, onboardingLinkSettings.allowBankAccountFormatSelection) && - Objects.equals(this.allowDebugUi, onboardingLinkSettings.allowDebugUi) && - Objects.equals(this.allowIntraRegionCrossBorderPayout, onboardingLinkSettings.allowIntraRegionCrossBorderPayout) && - Objects.equals(this.changeLegalEntityType, onboardingLinkSettings.changeLegalEntityType) && - Objects.equals(this.editPrefilledCountry, onboardingLinkSettings.editPrefilledCountry) && - Objects.equals(this.enforceLegalAge, onboardingLinkSettings.enforceLegalAge) && - Objects.equals(this.hideOnboardingIntroductionIndividual, onboardingLinkSettings.hideOnboardingIntroductionIndividual) && - Objects.equals(this.hideOnboardingIntroductionOrganization, onboardingLinkSettings.hideOnboardingIntroductionOrganization) && - Objects.equals(this.hideOnboardingIntroductionSoleProprietor, onboardingLinkSettings.hideOnboardingIntroductionSoleProprietor) && - Objects.equals(this.hideOnboardingIntroductionTrust, onboardingLinkSettings.hideOnboardingIntroductionTrust) && - Objects.equals(this.instantBankVerification, onboardingLinkSettings.instantBankVerification) && - Objects.equals(this.requirePciSignEcomMoto, onboardingLinkSettings.requirePciSignEcomMoto) && - Objects.equals(this.requirePciSignEcommerce, onboardingLinkSettings.requirePciSignEcommerce) && - Objects.equals(this.requirePciSignPos, onboardingLinkSettings.requirePciSignPos) && - Objects.equals(this.requirePciSignPosMoto, onboardingLinkSettings.requirePciSignPosMoto) && - Objects.equals(this.transferInstrumentLimit, onboardingLinkSettings.transferInstrumentLimit); + return Objects.equals(this.acceptedCountries, onboardingLinkSettings.acceptedCountries) + && Objects.equals( + this.allowBankAccountFormatSelection, + onboardingLinkSettings.allowBankAccountFormatSelection) + && Objects.equals(this.allowDebugUi, onboardingLinkSettings.allowDebugUi) + && Objects.equals( + this.allowIntraRegionCrossBorderPayout, + onboardingLinkSettings.allowIntraRegionCrossBorderPayout) + && Objects.equals(this.changeLegalEntityType, onboardingLinkSettings.changeLegalEntityType) + && Objects.equals(this.editPrefilledCountry, onboardingLinkSettings.editPrefilledCountry) + && Objects.equals(this.enforceLegalAge, onboardingLinkSettings.enforceLegalAge) + && Objects.equals( + this.hideOnboardingIntroductionIndividual, + onboardingLinkSettings.hideOnboardingIntroductionIndividual) + && Objects.equals( + this.hideOnboardingIntroductionOrganization, + onboardingLinkSettings.hideOnboardingIntroductionOrganization) + && Objects.equals( + this.hideOnboardingIntroductionSoleProprietor, + onboardingLinkSettings.hideOnboardingIntroductionSoleProprietor) + && Objects.equals( + this.hideOnboardingIntroductionTrust, + onboardingLinkSettings.hideOnboardingIntroductionTrust) + && Objects.equals( + this.instantBankVerification, onboardingLinkSettings.instantBankVerification) + && Objects.equals( + this.requirePciSignEcomMoto, onboardingLinkSettings.requirePciSignEcomMoto) + && Objects.equals( + this.requirePciSignEcommerce, onboardingLinkSettings.requirePciSignEcommerce) + && Objects.equals(this.requirePciSignPos, onboardingLinkSettings.requirePciSignPos) + && Objects.equals(this.requirePciSignPosMoto, onboardingLinkSettings.requirePciSignPosMoto) + && Objects.equals( + this.transferInstrumentLimit, onboardingLinkSettings.transferInstrumentLimit); } @Override public int hashCode() { - return Objects.hash(acceptedCountries, allowBankAccountFormatSelection, allowDebugUi, allowIntraRegionCrossBorderPayout, changeLegalEntityType, editPrefilledCountry, enforceLegalAge, hideOnboardingIntroductionIndividual, hideOnboardingIntroductionOrganization, hideOnboardingIntroductionSoleProprietor, hideOnboardingIntroductionTrust, instantBankVerification, requirePciSignEcomMoto, requirePciSignEcommerce, requirePciSignPos, requirePciSignPosMoto, transferInstrumentLimit); + return Objects.hash( + acceptedCountries, + allowBankAccountFormatSelection, + allowDebugUi, + allowIntraRegionCrossBorderPayout, + changeLegalEntityType, + editPrefilledCountry, + enforceLegalAge, + hideOnboardingIntroductionIndividual, + hideOnboardingIntroductionOrganization, + hideOnboardingIntroductionSoleProprietor, + hideOnboardingIntroductionTrust, + instantBankVerification, + requirePciSignEcomMoto, + requirePciSignEcommerce, + requirePciSignPos, + requirePciSignPosMoto, + transferInstrumentLimit); } @Override @@ -697,29 +905,54 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OnboardingLinkSettings {\n"); sb.append(" acceptedCountries: ").append(toIndentedString(acceptedCountries)).append("\n"); - sb.append(" allowBankAccountFormatSelection: ").append(toIndentedString(allowBankAccountFormatSelection)).append("\n"); + sb.append(" allowBankAccountFormatSelection: ") + .append(toIndentedString(allowBankAccountFormatSelection)) + .append("\n"); sb.append(" allowDebugUi: ").append(toIndentedString(allowDebugUi)).append("\n"); - sb.append(" allowIntraRegionCrossBorderPayout: ").append(toIndentedString(allowIntraRegionCrossBorderPayout)).append("\n"); - sb.append(" changeLegalEntityType: ").append(toIndentedString(changeLegalEntityType)).append("\n"); - sb.append(" editPrefilledCountry: ").append(toIndentedString(editPrefilledCountry)).append("\n"); + sb.append(" allowIntraRegionCrossBorderPayout: ") + .append(toIndentedString(allowIntraRegionCrossBorderPayout)) + .append("\n"); + sb.append(" changeLegalEntityType: ") + .append(toIndentedString(changeLegalEntityType)) + .append("\n"); + sb.append(" editPrefilledCountry: ") + .append(toIndentedString(editPrefilledCountry)) + .append("\n"); sb.append(" enforceLegalAge: ").append(toIndentedString(enforceLegalAge)).append("\n"); - sb.append(" hideOnboardingIntroductionIndividual: ").append(toIndentedString(hideOnboardingIntroductionIndividual)).append("\n"); - sb.append(" hideOnboardingIntroductionOrganization: ").append(toIndentedString(hideOnboardingIntroductionOrganization)).append("\n"); - sb.append(" hideOnboardingIntroductionSoleProprietor: ").append(toIndentedString(hideOnboardingIntroductionSoleProprietor)).append("\n"); - sb.append(" hideOnboardingIntroductionTrust: ").append(toIndentedString(hideOnboardingIntroductionTrust)).append("\n"); - sb.append(" instantBankVerification: ").append(toIndentedString(instantBankVerification)).append("\n"); - sb.append(" requirePciSignEcomMoto: ").append(toIndentedString(requirePciSignEcomMoto)).append("\n"); - sb.append(" requirePciSignEcommerce: ").append(toIndentedString(requirePciSignEcommerce)).append("\n"); + sb.append(" hideOnboardingIntroductionIndividual: ") + .append(toIndentedString(hideOnboardingIntroductionIndividual)) + .append("\n"); + sb.append(" hideOnboardingIntroductionOrganization: ") + .append(toIndentedString(hideOnboardingIntroductionOrganization)) + .append("\n"); + sb.append(" hideOnboardingIntroductionSoleProprietor: ") + .append(toIndentedString(hideOnboardingIntroductionSoleProprietor)) + .append("\n"); + sb.append(" hideOnboardingIntroductionTrust: ") + .append(toIndentedString(hideOnboardingIntroductionTrust)) + .append("\n"); + sb.append(" instantBankVerification: ") + .append(toIndentedString(instantBankVerification)) + .append("\n"); + sb.append(" requirePciSignEcomMoto: ") + .append(toIndentedString(requirePciSignEcomMoto)) + .append("\n"); + sb.append(" requirePciSignEcommerce: ") + .append(toIndentedString(requirePciSignEcommerce)) + .append("\n"); sb.append(" requirePciSignPos: ").append(toIndentedString(requirePciSignPos)).append("\n"); - sb.append(" requirePciSignPosMoto: ").append(toIndentedString(requirePciSignPosMoto)).append("\n"); - sb.append(" transferInstrumentLimit: ").append(toIndentedString(transferInstrumentLimit)).append("\n"); + sb.append(" requirePciSignPosMoto: ") + .append(toIndentedString(requirePciSignPosMoto)) + .append("\n"); + sb.append(" transferInstrumentLimit: ") + .append(toIndentedString(transferInstrumentLimit)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -728,21 +961,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of OnboardingLinkSettings given an JSON string * * @param jsonString JSON string * @return An instance of OnboardingLinkSettings - * @throws JsonProcessingException if the JSON string is invalid with respect to OnboardingLinkSettings + * @throws JsonProcessingException if the JSON string is invalid with respect to + * OnboardingLinkSettings */ public static OnboardingLinkSettings fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, OnboardingLinkSettings.class); } -/** - * Convert an instance of OnboardingLinkSettings to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of OnboardingLinkSettings to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/OnboardingTheme.java b/src/main/java/com/adyen/model/legalentitymanagement/OnboardingTheme.java index 5864a6f58..b8ac887ed 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/OnboardingTheme.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/OnboardingTheme.java @@ -2,34 +2,25 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.Arrays; +import java.util.*; import java.util.HashMap; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -/** - * OnboardingTheme - */ +/** OnboardingTheme */ @JsonPropertyOrder({ OnboardingTheme.JSON_PROPERTY_CREATED_AT, OnboardingTheme.JSON_PROPERTY_DESCRIPTION, @@ -37,7 +28,6 @@ OnboardingTheme.JSON_PROPERTY_PROPERTIES, OnboardingTheme.JSON_PROPERTY_UPDATED_AT }) - public class OnboardingTheme { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -54,8 +44,7 @@ public class OnboardingTheme { public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt"; private OffsetDateTime updatedAt; - public OnboardingTheme() { - } + public OnboardingTheme() {} /** * The creation date of the theme. @@ -70,6 +59,7 @@ public OnboardingTheme createdAt(OffsetDateTime createdAt) { /** * The creation date of the theme. + * * @return createdAt The creation date of the theme. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @@ -102,6 +92,7 @@ public OnboardingTheme description(String description) { /** * The description of the theme. + * * @return description The description of the theme. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -134,6 +125,7 @@ public OnboardingTheme id(String id) { /** * The unique identifier of the theme. + * * @return id The unique identifier of the theme. */ @JsonProperty(JSON_PROPERTY_ID) @@ -174,6 +166,7 @@ public OnboardingTheme putPropertiesItem(String key, String propertiesItem) { /** * The properties of the theme. + * * @return properties The properties of the theme. */ @JsonProperty(JSON_PROPERTY_PROPERTIES) @@ -206,6 +199,7 @@ public OnboardingTheme updatedAt(OffsetDateTime updatedAt) { /** * The date when the theme was last updated. + * * @return updatedAt The date when the theme was last updated. */ @JsonProperty(JSON_PROPERTY_UPDATED_AT) @@ -225,9 +219,7 @@ public void setUpdatedAt(OffsetDateTime updatedAt) { this.updatedAt = updatedAt; } - /** - * Return true if this OnboardingTheme object is equal to o. - */ + /** Return true if this OnboardingTheme object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -237,11 +229,11 @@ public boolean equals(Object o) { return false; } OnboardingTheme onboardingTheme = (OnboardingTheme) o; - return Objects.equals(this.createdAt, onboardingTheme.createdAt) && - Objects.equals(this.description, onboardingTheme.description) && - Objects.equals(this.id, onboardingTheme.id) && - Objects.equals(this.properties, onboardingTheme.properties) && - Objects.equals(this.updatedAt, onboardingTheme.updatedAt); + return Objects.equals(this.createdAt, onboardingTheme.createdAt) + && Objects.equals(this.description, onboardingTheme.description) + && Objects.equals(this.id, onboardingTheme.id) + && Objects.equals(this.properties, onboardingTheme.properties) + && Objects.equals(this.updatedAt, onboardingTheme.updatedAt); } @Override @@ -263,8 +255,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -273,7 +264,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of OnboardingTheme given an JSON string * * @param jsonString JSON string @@ -283,11 +274,12 @@ private String toIndentedString(Object o) { public static OnboardingTheme fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, OnboardingTheme.class); } -/** - * Convert an instance of OnboardingTheme to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of OnboardingTheme to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/OnboardingThemes.java b/src/main/java/com/adyen/model/legalentitymanagement/OnboardingThemes.java index dcdbb2318..19920f98f 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/OnboardingThemes.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/OnboardingThemes.java @@ -2,40 +2,29 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.legalentitymanagement.OnboardingTheme; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * OnboardingThemes - */ +/** OnboardingThemes */ @JsonPropertyOrder({ OnboardingThemes.JSON_PROPERTY_NEXT, OnboardingThemes.JSON_PROPERTY_PREVIOUS, OnboardingThemes.JSON_PROPERTY_THEMES }) - public class OnboardingThemes { public static final String JSON_PROPERTY_NEXT = "next"; private String next; @@ -46,8 +35,7 @@ public class OnboardingThemes { public static final String JSON_PROPERTY_THEMES = "themes"; private List themes; - public OnboardingThemes() { - } + public OnboardingThemes() {} /** * The next page. Only present if there is a next page. @@ -62,6 +50,7 @@ public OnboardingThemes next(String next) { /** * The next page. Only present if there is a next page. + * * @return next The next page. Only present if there is a next page. */ @JsonProperty(JSON_PROPERTY_NEXT) @@ -94,6 +83,7 @@ public OnboardingThemes previous(String previous) { /** * The previous page. Only present if there is a previous page. + * * @return previous The previous page. Only present if there is a previous page. */ @JsonProperty(JSON_PROPERTY_PREVIOUS) @@ -134,6 +124,7 @@ public OnboardingThemes addThemesItem(OnboardingTheme themesItem) { /** * List of onboarding themes. + * * @return themes List of onboarding themes. */ @JsonProperty(JSON_PROPERTY_THEMES) @@ -153,9 +144,7 @@ public void setThemes(List themes) { this.themes = themes; } - /** - * Return true if this OnboardingThemes object is equal to o. - */ + /** Return true if this OnboardingThemes object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -165,9 +154,9 @@ public boolean equals(Object o) { return false; } OnboardingThemes onboardingThemes = (OnboardingThemes) o; - return Objects.equals(this.next, onboardingThemes.next) && - Objects.equals(this.previous, onboardingThemes.previous) && - Objects.equals(this.themes, onboardingThemes.themes); + return Objects.equals(this.next, onboardingThemes.next) + && Objects.equals(this.previous, onboardingThemes.previous) + && Objects.equals(this.themes, onboardingThemes.themes); } @Override @@ -187,8 +176,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -197,7 +185,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of OnboardingThemes given an JSON string * * @param jsonString JSON string @@ -207,11 +195,12 @@ private String toIndentedString(Object o) { public static OnboardingThemes fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, OnboardingThemes.class); } -/** - * Convert an instance of OnboardingThemes to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of OnboardingThemes to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/Organization.java b/src/main/java/com/adyen/model/legalentitymanagement/Organization.java index abb82393f..df777866d 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/Organization.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/Organization.java @@ -2,40 +2,28 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.legalentitymanagement.Address; -import com.adyen.model.legalentitymanagement.FinancialReport; -import com.adyen.model.legalentitymanagement.PhoneNumber; -import com.adyen.model.legalentitymanagement.StockData; -import com.adyen.model.legalentitymanagement.TaxInformation; -import com.adyen.model.legalentitymanagement.TaxReportingClassification; -import com.adyen.model.legalentitymanagement.WebData; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * Organization - */ +/** Organization */ @JsonPropertyOrder({ Organization.JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW, Organization.JSON_PROPERTY_DATE_OF_INCORPORATION, @@ -56,7 +44,6 @@ Organization.JSON_PROPERTY_VAT_NUMBER, Organization.JSON_PROPERTY_WEB_DATA }) - public class Organization { public static final String JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW = "countryOfGoverningLaw"; private String countryOfGoverningLaw; @@ -97,14 +84,16 @@ public class Organization { public static final String JSON_PROPERTY_TAX_INFORMATION = "taxInformation"; private List taxInformation; - public static final String JSON_PROPERTY_TAX_REPORTING_CLASSIFICATION = "taxReportingClassification"; + public static final String JSON_PROPERTY_TAX_REPORTING_CLASSIFICATION = + "taxReportingClassification"; private TaxReportingClassification taxReportingClassification; /** - * Type of organization. Possible values: **associationIncorporated**, **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, **partnershipIncorporated**, **privateCompany**. + * Type of organization. Possible values: **associationIncorporated**, + * **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, + * **partnershipIncorporated**, **privateCompany**. */ public enum TypeEnum { - ASSOCIATIONINCORPORATED(String.valueOf("associationIncorporated")), GOVERNMENTALORGANIZATION(String.valueOf("governmentalOrganization")), @@ -122,7 +111,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -143,7 +132,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -152,10 +145,10 @@ public static TypeEnum fromValue(String value) { private TypeEnum type; /** - * The reason the organization has not provided a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + * The reason the organization has not provided a VAT number. Possible values: + * **industryExemption**, **belowTaxThreshold**. */ public enum VatAbsenceReasonEnum { - INDUSTRYEXEMPTION(String.valueOf("industryExemption")), BELOWTAXTHRESHOLD(String.valueOf("belowTaxThreshold")); @@ -165,7 +158,7 @@ public enum VatAbsenceReasonEnum { private String value; VatAbsenceReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -186,7 +179,11 @@ public static VatAbsenceReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("VatAbsenceReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(VatAbsenceReasonEnum.values())); + LOG.warning( + "VatAbsenceReasonEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(VatAbsenceReasonEnum.values())); return null; } } @@ -200,13 +197,15 @@ public static VatAbsenceReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_WEB_DATA = "webData"; private WebData webData; - public Organization() { - } + public Organization() {} /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code of the governing country. * - * @param countryOfGoverningLaw The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. + * @param countryOfGoverningLaw The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing + * country. * @return the current {@code Organization} instance, allowing for method chaining */ public Organization countryOfGoverningLaw(String countryOfGoverningLaw) { @@ -215,8 +214,12 @@ public Organization countryOfGoverningLaw(String countryOfGoverningLaw) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. - * @return countryOfGoverningLaw The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code of the governing country. + * + * @return countryOfGoverningLaw The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing + * country. */ @JsonProperty(JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -225,9 +228,12 @@ public String getCountryOfGoverningLaw() { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code of the governing country. * - * @param countryOfGoverningLaw The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. + * @param countryOfGoverningLaw The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing + * country. */ @JsonProperty(JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -238,7 +244,8 @@ public void setCountryOfGoverningLaw(String countryOfGoverningLaw) { /** * The date when the organization was incorporated in YYYY-MM-DD format. * - * @param dateOfIncorporation The date when the organization was incorporated in YYYY-MM-DD format. + * @param dateOfIncorporation The date when the organization was incorporated in YYYY-MM-DD + * format. * @return the current {@code Organization} instance, allowing for method chaining */ public Organization dateOfIncorporation(String dateOfIncorporation) { @@ -248,7 +255,9 @@ public Organization dateOfIncorporation(String dateOfIncorporation) { /** * The date when the organization was incorporated in YYYY-MM-DD format. - * @return dateOfIncorporation The date when the organization was incorporated in YYYY-MM-DD format. + * + * @return dateOfIncorporation The date when the organization was incorporated in YYYY-MM-DD + * format. */ @JsonProperty(JSON_PROPERTY_DATE_OF_INCORPORATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -259,7 +268,8 @@ public String getDateOfIncorporation() { /** * The date when the organization was incorporated in YYYY-MM-DD format. * - * @param dateOfIncorporation The date when the organization was incorporated in YYYY-MM-DD format. + * @param dateOfIncorporation The date when the organization was incorporated in YYYY-MM-DD + * format. */ @JsonProperty(JSON_PROPERTY_DATE_OF_INCORPORATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -280,6 +290,7 @@ public Organization description(String description) { /** * Your description for the organization. + * * @return description Your description for the organization. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -302,7 +313,8 @@ public void setDescription(String description) { /** * The organization's trading name, if different from the registered legal name. * - * @param doingBusinessAs The organization's trading name, if different from the registered legal name. + * @param doingBusinessAs The organization's trading name, if different from the registered + * legal name. * @return the current {@code Organization} instance, allowing for method chaining */ public Organization doingBusinessAs(String doingBusinessAs) { @@ -312,7 +324,9 @@ public Organization doingBusinessAs(String doingBusinessAs) { /** * The organization's trading name, if different from the registered legal name. - * @return doingBusinessAs The organization's trading name, if different from the registered legal name. + * + * @return doingBusinessAs The organization's trading name, if different from the registered + * legal name. */ @JsonProperty(JSON_PROPERTY_DOING_BUSINESS_AS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -323,7 +337,8 @@ public String getDoingBusinessAs() { /** * The organization's trading name, if different from the registered legal name. * - * @param doingBusinessAs The organization's trading name, if different from the registered legal name. + * @param doingBusinessAs The organization's trading name, if different from the registered + * legal name. */ @JsonProperty(JSON_PROPERTY_DOING_BUSINESS_AS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -344,6 +359,7 @@ public Organization email(String email) { /** * The email address of the legal entity. + * * @return email The email address of the legal entity. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -384,6 +400,7 @@ public Organization addFinancialReportsItem(FinancialReport financialReportsItem /** * The financial report information of the organization. + * * @return financialReports The financial report information of the organization. */ @JsonProperty(JSON_PROPERTY_FINANCIAL_REPORTS) @@ -416,6 +433,7 @@ public Organization legalName(String legalName) { /** * The organization's legal name. + * * @return legalName The organization's legal name. */ @JsonProperty(JSON_PROPERTY_LEGAL_NAME) @@ -438,7 +456,7 @@ public void setLegalName(String legalName) { /** * phone * - * @param phone + * @param phone * @return the current {@code Organization} instance, allowing for method chaining */ public Organization phone(PhoneNumber phone) { @@ -448,7 +466,8 @@ public Organization phone(PhoneNumber phone) { /** * Get phone - * @return phone + * + * @return phone */ @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -459,7 +478,7 @@ public PhoneNumber getPhone() { /** * phone * - * @param phone + * @param phone */ @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -470,7 +489,7 @@ public void setPhone(PhoneNumber phone) { /** * principalPlaceOfBusiness * - * @param principalPlaceOfBusiness + * @param principalPlaceOfBusiness * @return the current {@code Organization} instance, allowing for method chaining */ public Organization principalPlaceOfBusiness(Address principalPlaceOfBusiness) { @@ -480,7 +499,8 @@ public Organization principalPlaceOfBusiness(Address principalPlaceOfBusiness) { /** * Get principalPlaceOfBusiness - * @return principalPlaceOfBusiness + * + * @return principalPlaceOfBusiness */ @JsonProperty(JSON_PROPERTY_PRINCIPAL_PLACE_OF_BUSINESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -491,7 +511,7 @@ public Address getPrincipalPlaceOfBusiness() { /** * principalPlaceOfBusiness * - * @param principalPlaceOfBusiness + * @param principalPlaceOfBusiness */ @JsonProperty(JSON_PROPERTY_PRINCIPAL_PLACE_OF_BUSINESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -502,7 +522,7 @@ public void setPrincipalPlaceOfBusiness(Address principalPlaceOfBusiness) { /** * registeredAddress * - * @param registeredAddress + * @param registeredAddress * @return the current {@code Organization} instance, allowing for method chaining */ public Organization registeredAddress(Address registeredAddress) { @@ -512,7 +532,8 @@ public Organization registeredAddress(Address registeredAddress) { /** * Get registeredAddress - * @return registeredAddress + * + * @return registeredAddress */ @JsonProperty(JSON_PROPERTY_REGISTERED_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -523,7 +544,7 @@ public Address getRegisteredAddress() { /** * registeredAddress * - * @param registeredAddress + * @param registeredAddress */ @JsonProperty(JSON_PROPERTY_REGISTERED_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -544,6 +565,7 @@ public Organization registrationNumber(String registrationNumber) { /** * The organization's registration number. + * * @return registrationNumber The organization's registration number. */ @JsonProperty(JSON_PROPERTY_REGISTRATION_NUMBER) @@ -566,7 +588,7 @@ public void setRegistrationNumber(String registrationNumber) { /** * stockData * - * @param stockData + * @param stockData * @return the current {@code Organization} instance, allowing for method chaining */ public Organization stockData(StockData stockData) { @@ -576,7 +598,8 @@ public Organization stockData(StockData stockData) { /** * Get stockData - * @return stockData + * + * @return stockData */ @JsonProperty(JSON_PROPERTY_STOCK_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -587,7 +610,7 @@ public StockData getStockData() { /** * stockData * - * @param stockData + * @param stockData */ @JsonProperty(JSON_PROPERTY_STOCK_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -616,6 +639,7 @@ public Organization addTaxInformationItem(TaxInformation taxInformationItem) { /** * The tax information of the organization. + * * @return taxInformation The tax information of the organization. */ @JsonProperty(JSON_PROPERTY_TAX_INFORMATION) @@ -638,17 +662,19 @@ public void setTaxInformation(List taxInformation) { /** * taxReportingClassification * - * @param taxReportingClassification + * @param taxReportingClassification * @return the current {@code Organization} instance, allowing for method chaining */ - public Organization taxReportingClassification(TaxReportingClassification taxReportingClassification) { + public Organization taxReportingClassification( + TaxReportingClassification taxReportingClassification) { this.taxReportingClassification = taxReportingClassification; return this; } /** * Get taxReportingClassification - * @return taxReportingClassification + * + * @return taxReportingClassification */ @JsonProperty(JSON_PROPERTY_TAX_REPORTING_CLASSIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -659,7 +685,7 @@ public TaxReportingClassification getTaxReportingClassification() { /** * taxReportingClassification * - * @param taxReportingClassification + * @param taxReportingClassification */ @JsonProperty(JSON_PROPERTY_TAX_REPORTING_CLASSIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -668,9 +694,13 @@ public void setTaxReportingClassification(TaxReportingClassification taxReportin } /** - * Type of organization. Possible values: **associationIncorporated**, **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, **partnershipIncorporated**, **privateCompany**. + * Type of organization. Possible values: **associationIncorporated**, + * **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, + * **partnershipIncorporated**, **privateCompany**. * - * @param type Type of organization. Possible values: **associationIncorporated**, **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, **partnershipIncorporated**, **privateCompany**. + * @param type Type of organization. Possible values: **associationIncorporated**, + * **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, + * **partnershipIncorporated**, **privateCompany**. * @return the current {@code Organization} instance, allowing for method chaining */ public Organization type(TypeEnum type) { @@ -679,8 +709,13 @@ public Organization type(TypeEnum type) { } /** - * Type of organization. Possible values: **associationIncorporated**, **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, **partnershipIncorporated**, **privateCompany**. - * @return type Type of organization. Possible values: **associationIncorporated**, **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, **partnershipIncorporated**, **privateCompany**. + * Type of organization. Possible values: **associationIncorporated**, + * **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, + * **partnershipIncorporated**, **privateCompany**. + * + * @return type Type of organization. Possible values: **associationIncorporated**, + * **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, + * **partnershipIncorporated**, **privateCompany**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -689,9 +724,13 @@ public TypeEnum getType() { } /** - * Type of organization. Possible values: **associationIncorporated**, **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, **partnershipIncorporated**, **privateCompany**. + * Type of organization. Possible values: **associationIncorporated**, + * **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, + * **partnershipIncorporated**, **privateCompany**. * - * @param type Type of organization. Possible values: **associationIncorporated**, **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, **partnershipIncorporated**, **privateCompany**. + * @param type Type of organization. Possible values: **associationIncorporated**, + * **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, + * **partnershipIncorporated**, **privateCompany**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -700,9 +739,11 @@ public void setType(TypeEnum type) { } /** - * The reason the organization has not provided a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + * The reason the organization has not provided a VAT number. Possible values: + * **industryExemption**, **belowTaxThreshold**. * - * @param vatAbsenceReason The reason the organization has not provided a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + * @param vatAbsenceReason The reason the organization has not provided a VAT number. Possible + * values: **industryExemption**, **belowTaxThreshold**. * @return the current {@code Organization} instance, allowing for method chaining */ public Organization vatAbsenceReason(VatAbsenceReasonEnum vatAbsenceReason) { @@ -711,8 +752,11 @@ public Organization vatAbsenceReason(VatAbsenceReasonEnum vatAbsenceReason) { } /** - * The reason the organization has not provided a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. - * @return vatAbsenceReason The reason the organization has not provided a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + * The reason the organization has not provided a VAT number. Possible values: + * **industryExemption**, **belowTaxThreshold**. + * + * @return vatAbsenceReason The reason the organization has not provided a VAT number. Possible + * values: **industryExemption**, **belowTaxThreshold**. */ @JsonProperty(JSON_PROPERTY_VAT_ABSENCE_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -721,9 +765,11 @@ public VatAbsenceReasonEnum getVatAbsenceReason() { } /** - * The reason the organization has not provided a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + * The reason the organization has not provided a VAT number. Possible values: + * **industryExemption**, **belowTaxThreshold**. * - * @param vatAbsenceReason The reason the organization has not provided a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + * @param vatAbsenceReason The reason the organization has not provided a VAT number. Possible + * values: **industryExemption**, **belowTaxThreshold**. */ @JsonProperty(JSON_PROPERTY_VAT_ABSENCE_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -744,6 +790,7 @@ public Organization vatNumber(String vatNumber) { /** * The organization's VAT number. + * * @return vatNumber The organization's VAT number. */ @JsonProperty(JSON_PROPERTY_VAT_NUMBER) @@ -766,7 +813,7 @@ public void setVatNumber(String vatNumber) { /** * webData * - * @param webData + * @param webData * @return the current {@code Organization} instance, allowing for method chaining */ public Organization webData(WebData webData) { @@ -776,7 +823,8 @@ public Organization webData(WebData webData) { /** * Get webData - * @return webData + * + * @return webData */ @JsonProperty(JSON_PROPERTY_WEB_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -787,7 +835,7 @@ public WebData getWebData() { /** * webData * - * @param webData + * @param webData */ @JsonProperty(JSON_PROPERTY_WEB_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -795,9 +843,7 @@ public void setWebData(WebData webData) { this.webData = webData; } - /** - * Return true if this Organization object is equal to o. - */ + /** Return true if this Organization object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -807,49 +853,75 @@ public boolean equals(Object o) { return false; } Organization organization = (Organization) o; - return Objects.equals(this.countryOfGoverningLaw, organization.countryOfGoverningLaw) && - Objects.equals(this.dateOfIncorporation, organization.dateOfIncorporation) && - Objects.equals(this.description, organization.description) && - Objects.equals(this.doingBusinessAs, organization.doingBusinessAs) && - Objects.equals(this.email, organization.email) && - Objects.equals(this.financialReports, organization.financialReports) && - Objects.equals(this.legalName, organization.legalName) && - Objects.equals(this.phone, organization.phone) && - Objects.equals(this.principalPlaceOfBusiness, organization.principalPlaceOfBusiness) && - Objects.equals(this.registeredAddress, organization.registeredAddress) && - Objects.equals(this.registrationNumber, organization.registrationNumber) && - Objects.equals(this.stockData, organization.stockData) && - Objects.equals(this.taxInformation, organization.taxInformation) && - Objects.equals(this.taxReportingClassification, organization.taxReportingClassification) && - Objects.equals(this.type, organization.type) && - Objects.equals(this.vatAbsenceReason, organization.vatAbsenceReason) && - Objects.equals(this.vatNumber, organization.vatNumber) && - Objects.equals(this.webData, organization.webData); + return Objects.equals(this.countryOfGoverningLaw, organization.countryOfGoverningLaw) + && Objects.equals(this.dateOfIncorporation, organization.dateOfIncorporation) + && Objects.equals(this.description, organization.description) + && Objects.equals(this.doingBusinessAs, organization.doingBusinessAs) + && Objects.equals(this.email, organization.email) + && Objects.equals(this.financialReports, organization.financialReports) + && Objects.equals(this.legalName, organization.legalName) + && Objects.equals(this.phone, organization.phone) + && Objects.equals(this.principalPlaceOfBusiness, organization.principalPlaceOfBusiness) + && Objects.equals(this.registeredAddress, organization.registeredAddress) + && Objects.equals(this.registrationNumber, organization.registrationNumber) + && Objects.equals(this.stockData, organization.stockData) + && Objects.equals(this.taxInformation, organization.taxInformation) + && Objects.equals(this.taxReportingClassification, organization.taxReportingClassification) + && Objects.equals(this.type, organization.type) + && Objects.equals(this.vatAbsenceReason, organization.vatAbsenceReason) + && Objects.equals(this.vatNumber, organization.vatNumber) + && Objects.equals(this.webData, organization.webData); } @Override public int hashCode() { - return Objects.hash(countryOfGoverningLaw, dateOfIncorporation, description, doingBusinessAs, email, financialReports, legalName, phone, principalPlaceOfBusiness, registeredAddress, registrationNumber, stockData, taxInformation, taxReportingClassification, type, vatAbsenceReason, vatNumber, webData); + return Objects.hash( + countryOfGoverningLaw, + dateOfIncorporation, + description, + doingBusinessAs, + email, + financialReports, + legalName, + phone, + principalPlaceOfBusiness, + registeredAddress, + registrationNumber, + stockData, + taxInformation, + taxReportingClassification, + type, + vatAbsenceReason, + vatNumber, + webData); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Organization {\n"); - sb.append(" countryOfGoverningLaw: ").append(toIndentedString(countryOfGoverningLaw)).append("\n"); - sb.append(" dateOfIncorporation: ").append(toIndentedString(dateOfIncorporation)).append("\n"); + sb.append(" countryOfGoverningLaw: ") + .append(toIndentedString(countryOfGoverningLaw)) + .append("\n"); + sb.append(" dateOfIncorporation: ") + .append(toIndentedString(dateOfIncorporation)) + .append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" doingBusinessAs: ").append(toIndentedString(doingBusinessAs)).append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" financialReports: ").append(toIndentedString(financialReports)).append("\n"); sb.append(" legalName: ").append(toIndentedString(legalName)).append("\n"); sb.append(" phone: ").append(toIndentedString(phone)).append("\n"); - sb.append(" principalPlaceOfBusiness: ").append(toIndentedString(principalPlaceOfBusiness)).append("\n"); + sb.append(" principalPlaceOfBusiness: ") + .append(toIndentedString(principalPlaceOfBusiness)) + .append("\n"); sb.append(" registeredAddress: ").append(toIndentedString(registeredAddress)).append("\n"); sb.append(" registrationNumber: ").append(toIndentedString(registrationNumber)).append("\n"); sb.append(" stockData: ").append(toIndentedString(stockData)).append("\n"); sb.append(" taxInformation: ").append(toIndentedString(taxInformation)).append("\n"); - sb.append(" taxReportingClassification: ").append(toIndentedString(taxReportingClassification)).append("\n"); + sb.append(" taxReportingClassification: ") + .append(toIndentedString(taxReportingClassification)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" vatAbsenceReason: ").append(toIndentedString(vatAbsenceReason)).append("\n"); sb.append(" vatNumber: ").append(toIndentedString(vatNumber)).append("\n"); @@ -859,8 +931,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -869,7 +940,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Organization given an JSON string * * @param jsonString JSON string @@ -879,11 +950,12 @@ private String toIndentedString(Object o) { public static Organization fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Organization.class); } -/** - * Convert an instance of Organization to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Organization to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/OwnerEntity.java b/src/main/java/com/adyen/model/legalentitymanagement/OwnerEntity.java index fc6676988..e69d72bac 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/OwnerEntity.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/OwnerEntity.java @@ -2,36 +2,23 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * OwnerEntity - */ -@JsonPropertyOrder({ - OwnerEntity.JSON_PROPERTY_ID, - OwnerEntity.JSON_PROPERTY_TYPE -}) - +/** OwnerEntity */ +@JsonPropertyOrder({OwnerEntity.JSON_PROPERTY_ID, OwnerEntity.JSON_PROPERTY_TYPE}) public class OwnerEntity { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -39,13 +26,20 @@ public class OwnerEntity { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public OwnerEntity() { - } + public OwnerEntity() {} /** - * Unique identifier of the resource that owns the document. For `type` **legalEntity**, this value is the unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). For `type` **bankAccount**, this value is the unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * Unique identifier of the resource that owns the document. For `type` **legalEntity**, + * this value is the unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * For `type` **bankAccount**, this value is the unique identifier of the [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). * - * @param id Unique identifier of the resource that owns the document. For `type` **legalEntity**, this value is the unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). For `type` **bankAccount**, this value is the unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * @param id Unique identifier of the resource that owns the document. For `type` + * **legalEntity**, this value is the unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * For `type` **bankAccount**, this value is the unique identifier of the [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). * @return the current {@code OwnerEntity} instance, allowing for method chaining */ public OwnerEntity id(String id) { @@ -54,8 +48,17 @@ public OwnerEntity id(String id) { } /** - * Unique identifier of the resource that owns the document. For `type` **legalEntity**, this value is the unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). For `type` **bankAccount**, this value is the unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). - * @return id Unique identifier of the resource that owns the document. For `type` **legalEntity**, this value is the unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). For `type` **bankAccount**, this value is the unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * Unique identifier of the resource that owns the document. For `type` **legalEntity**, + * this value is the unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * For `type` **bankAccount**, this value is the unique identifier of the [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * + * @return id Unique identifier of the resource that owns the document. For `type` + * **legalEntity**, this value is the unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * For `type` **bankAccount**, this value is the unique identifier of the [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +67,17 @@ public String getId() { } /** - * Unique identifier of the resource that owns the document. For `type` **legalEntity**, this value is the unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). For `type` **bankAccount**, this value is the unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * Unique identifier of the resource that owns the document. For `type` **legalEntity**, + * this value is the unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * For `type` **bankAccount**, this value is the unique identifier of the [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). * - * @param id Unique identifier of the resource that owns the document. For `type` **legalEntity**, this value is the unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). For `type` **bankAccount**, this value is the unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * @param id Unique identifier of the resource that owns the document. For `type` + * **legalEntity**, this value is the unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * For `type` **bankAccount**, this value is the unique identifier of the [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,9 +86,10 @@ public void setId(String id) { } /** - * Type of resource that owns the document. Possible values: **legalEntity**, **bankAccount**. + * Type of resource that owns the document. Possible values: **legalEntity**, **bankAccount**. * - * @param type Type of resource that owns the document. Possible values: **legalEntity**, **bankAccount**. + * @param type Type of resource that owns the document. Possible values: **legalEntity**, + * **bankAccount**. * @return the current {@code OwnerEntity} instance, allowing for method chaining */ public OwnerEntity type(String type) { @@ -86,8 +98,10 @@ public OwnerEntity type(String type) { } /** - * Type of resource that owns the document. Possible values: **legalEntity**, **bankAccount**. - * @return type Type of resource that owns the document. Possible values: **legalEntity**, **bankAccount**. + * Type of resource that owns the document. Possible values: **legalEntity**, **bankAccount**. + * + * @return type Type of resource that owns the document. Possible values: **legalEntity**, + * **bankAccount**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +110,10 @@ public String getType() { } /** - * Type of resource that owns the document. Possible values: **legalEntity**, **bankAccount**. + * Type of resource that owns the document. Possible values: **legalEntity**, **bankAccount**. * - * @param type Type of resource that owns the document. Possible values: **legalEntity**, **bankAccount**. + * @param type Type of resource that owns the document. Possible values: **legalEntity**, + * **bankAccount**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +121,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this OwnerEntity object is equal to o. - */ + /** Return true if this OwnerEntity object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +131,7 @@ public boolean equals(Object o) { return false; } OwnerEntity ownerEntity = (OwnerEntity) o; - return Objects.equals(this.id, ownerEntity.id) && - Objects.equals(this.type, ownerEntity.type); + return Objects.equals(this.id, ownerEntity.id) && Objects.equals(this.type, ownerEntity.type); } @Override @@ -138,8 +150,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +159,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of OwnerEntity given an JSON string * * @param jsonString JSON string @@ -158,11 +169,12 @@ private String toIndentedString(Object o) { public static OwnerEntity fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, OwnerEntity.class); } -/** - * Convert an instance of OwnerEntity to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of OwnerEntity to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/PLLocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/PLLocalAccountIdentification.java index efe5d59f4..036d0ad13 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/PLLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/PLLocalAccountIdentification.java @@ -2,45 +2,36 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * PLLocalAccountIdentification - */ +/** PLLocalAccountIdentification */ @JsonPropertyOrder({ PLLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, PLLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class PLLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - /** - * **plLocal** - */ + /** **plLocal** */ public enum TypeEnum { - PLLOCAL(String.valueOf("plLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +39,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,13 +72,16 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PLLocalAccountIdentification() { - } + public PLLocalAccountIdentification() {} /** - * The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. + * The 26-digit bank account number ([Numer + * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or + * whitespace. * - * @param accountNumber The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. + * @param accountNumber The 26-digit bank account number ([Numer + * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or + * whitespace. * @return the current {@code PLLocalAccountIdentification} instance, allowing for method chaining */ public PLLocalAccountIdentification accountNumber(String accountNumber) { @@ -92,8 +90,13 @@ public PLLocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. - * @return accountNumber The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. + * The 26-digit bank account number ([Numer + * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or + * whitespace. + * + * @return accountNumber The 26-digit bank account number ([Numer + * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or + * whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,9 +105,13 @@ public String getAccountNumber() { } /** - * The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. + * The 26-digit bank account number ([Numer + * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or + * whitespace. * - * @param accountNumber The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. + * @param accountNumber The 26-digit bank account number ([Numer + * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or + * whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,6 +132,7 @@ public PLLocalAccountIdentification type(TypeEnum type) { /** * **plLocal** + * * @return type **plLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -144,9 +152,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this PLLocalAccountIdentification object is equal to o. - */ + /** Return true if this PLLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +162,8 @@ public boolean equals(Object o) { return false; } PLLocalAccountIdentification plLocalAccountIdentification = (PLLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, plLocalAccountIdentification.accountNumber) && - Objects.equals(this.type, plLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, plLocalAccountIdentification.accountNumber) + && Objects.equals(this.type, plLocalAccountIdentification.type); } @Override @@ -176,8 +182,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +191,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PLLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of PLLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to PLLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PLLocalAccountIdentification */ - public static PLLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static PLLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PLLocalAccountIdentification.class); } -/** - * Convert an instance of PLLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PLLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/PciDocumentInfo.java b/src/main/java/com/adyen/model/legalentitymanagement/PciDocumentInfo.java index b798ff4d9..0ca4baa81 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/PciDocumentInfo.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/PciDocumentInfo.java @@ -2,38 +2,28 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.time.OffsetDateTime; +import java.util.*; - -/** - * PciDocumentInfo - */ +/** PciDocumentInfo */ @JsonPropertyOrder({ PciDocumentInfo.JSON_PROPERTY_CREATED_AT, PciDocumentInfo.JSON_PROPERTY_ID, PciDocumentInfo.JSON_PROPERTY_VALID_UNTIL }) - public class PciDocumentInfo { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -44,13 +34,14 @@ public class PciDocumentInfo { public static final String JSON_PROPERTY_VALID_UNTIL = "validUntil"; private OffsetDateTime validUntil; - public PciDocumentInfo() { - } + public PciDocumentInfo() {} /** - * The date the questionnaire was created, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 + * The date the questionnaire was created, in ISO 8601 extended format. For example, + * 2022-12-18T10:15:30+01:00 * - * @param createdAt The date the questionnaire was created, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 + * @param createdAt The date the questionnaire was created, in ISO 8601 extended format. For + * example, 2022-12-18T10:15:30+01:00 * @return the current {@code PciDocumentInfo} instance, allowing for method chaining */ public PciDocumentInfo createdAt(OffsetDateTime createdAt) { @@ -59,8 +50,11 @@ public PciDocumentInfo createdAt(OffsetDateTime createdAt) { } /** - * The date the questionnaire was created, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 - * @return createdAt The date the questionnaire was created, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 + * The date the questionnaire was created, in ISO 8601 extended format. For example, + * 2022-12-18T10:15:30+01:00 + * + * @return createdAt The date the questionnaire was created, in ISO 8601 extended format. For + * example, 2022-12-18T10:15:30+01:00 */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -69,9 +63,11 @@ public OffsetDateTime getCreatedAt() { } /** - * The date the questionnaire was created, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 + * The date the questionnaire was created, in ISO 8601 extended format. For example, + * 2022-12-18T10:15:30+01:00 * - * @param createdAt The date the questionnaire was created, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 + * @param createdAt The date the questionnaire was created, in ISO 8601 extended format. For + * example, 2022-12-18T10:15:30+01:00 */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -92,6 +88,7 @@ public PciDocumentInfo id(String id) { /** * The unique identifier of the signed questionnaire. + * * @return id The unique identifier of the signed questionnaire. */ @JsonProperty(JSON_PROPERTY_ID) @@ -112,9 +109,11 @@ public void setId(String id) { } /** - * The expiration date of the questionnaire, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 + * The expiration date of the questionnaire, in ISO 8601 extended format. For example, + * 2022-12-18T10:15:30+01:00 * - * @param validUntil The expiration date of the questionnaire, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 + * @param validUntil The expiration date of the questionnaire, in ISO 8601 extended format. For + * example, 2022-12-18T10:15:30+01:00 * @return the current {@code PciDocumentInfo} instance, allowing for method chaining */ public PciDocumentInfo validUntil(OffsetDateTime validUntil) { @@ -123,8 +122,11 @@ public PciDocumentInfo validUntil(OffsetDateTime validUntil) { } /** - * The expiration date of the questionnaire, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 - * @return validUntil The expiration date of the questionnaire, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 + * The expiration date of the questionnaire, in ISO 8601 extended format. For example, + * 2022-12-18T10:15:30+01:00 + * + * @return validUntil The expiration date of the questionnaire, in ISO 8601 extended format. For + * example, 2022-12-18T10:15:30+01:00 */ @JsonProperty(JSON_PROPERTY_VALID_UNTIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -133,9 +135,11 @@ public OffsetDateTime getValidUntil() { } /** - * The expiration date of the questionnaire, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 + * The expiration date of the questionnaire, in ISO 8601 extended format. For example, + * 2022-12-18T10:15:30+01:00 * - * @param validUntil The expiration date of the questionnaire, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 + * @param validUntil The expiration date of the questionnaire, in ISO 8601 extended format. For + * example, 2022-12-18T10:15:30+01:00 */ @JsonProperty(JSON_PROPERTY_VALID_UNTIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,9 +147,7 @@ public void setValidUntil(OffsetDateTime validUntil) { this.validUntil = validUntil; } - /** - * Return true if this PciDocumentInfo object is equal to o. - */ + /** Return true if this PciDocumentInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -155,9 +157,9 @@ public boolean equals(Object o) { return false; } PciDocumentInfo pciDocumentInfo = (PciDocumentInfo) o; - return Objects.equals(this.createdAt, pciDocumentInfo.createdAt) && - Objects.equals(this.id, pciDocumentInfo.id) && - Objects.equals(this.validUntil, pciDocumentInfo.validUntil); + return Objects.equals(this.createdAt, pciDocumentInfo.createdAt) + && Objects.equals(this.id, pciDocumentInfo.id) + && Objects.equals(this.validUntil, pciDocumentInfo.validUntil); } @Override @@ -177,8 +179,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -187,7 +188,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PciDocumentInfo given an JSON string * * @param jsonString JSON string @@ -197,11 +198,12 @@ private String toIndentedString(Object o) { public static PciDocumentInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PciDocumentInfo.class); } -/** - * Convert an instance of PciDocumentInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PciDocumentInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/PciSigningRequest.java b/src/main/java/com/adyen/model/legalentitymanagement/PciSigningRequest.java index 75fb86fba..770c47a04 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/PciSigningRequest.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/PciSigningRequest.java @@ -2,38 +2,28 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * PciSigningRequest - */ +/** PciSigningRequest */ @JsonPropertyOrder({ PciSigningRequest.JSON_PROPERTY_PCI_TEMPLATE_REFERENCES, PciSigningRequest.JSON_PROPERTY_SIGNED_BY }) - public class PciSigningRequest { public static final String JSON_PROPERTY_PCI_TEMPLATE_REFERENCES = "pciTemplateReferences"; private List pciTemplateReferences; @@ -41,13 +31,13 @@ public class PciSigningRequest { public static final String JSON_PROPERTY_SIGNED_BY = "signedBy"; private String signedBy; - public PciSigningRequest() { - } + public PciSigningRequest() {} /** * The array of Adyen-generated unique identifiers for the questionnaires. * - * @param pciTemplateReferences The array of Adyen-generated unique identifiers for the questionnaires. + * @param pciTemplateReferences The array of Adyen-generated unique identifiers for the + * questionnaires. * @return the current {@code PciSigningRequest} instance, allowing for method chaining */ public PciSigningRequest pciTemplateReferences(List pciTemplateReferences) { @@ -65,7 +55,9 @@ public PciSigningRequest addPciTemplateReferencesItem(String pciTemplateReferenc /** * The array of Adyen-generated unique identifiers for the questionnaires. - * @return pciTemplateReferences The array of Adyen-generated unique identifiers for the questionnaires. + * + * @return pciTemplateReferences The array of Adyen-generated unique identifiers for the + * questionnaires. */ @JsonProperty(JSON_PROPERTY_PCI_TEMPLATE_REFERENCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -76,7 +68,8 @@ public List getPciTemplateReferences() { /** * The array of Adyen-generated unique identifiers for the questionnaires. * - * @param pciTemplateReferences The array of Adyen-generated unique identifiers for the questionnaires. + * @param pciTemplateReferences The array of Adyen-generated unique identifiers for the + * questionnaires. */ @JsonProperty(JSON_PROPERTY_PCI_TEMPLATE_REFERENCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -85,9 +78,13 @@ public void setPciTemplateReferences(List pciTemplateReferences) { } /** - * The [legal entity ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) of the individual who signs the PCI questionnaire. + * The [legal entity + * ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) + * of the individual who signs the PCI questionnaire. * - * @param signedBy The [legal entity ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) of the individual who signs the PCI questionnaire. + * @param signedBy The [legal entity + * ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) + * of the individual who signs the PCI questionnaire. * @return the current {@code PciSigningRequest} instance, allowing for method chaining */ public PciSigningRequest signedBy(String signedBy) { @@ -96,8 +93,13 @@ public PciSigningRequest signedBy(String signedBy) { } /** - * The [legal entity ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) of the individual who signs the PCI questionnaire. - * @return signedBy The [legal entity ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) of the individual who signs the PCI questionnaire. + * The [legal entity + * ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) + * of the individual who signs the PCI questionnaire. + * + * @return signedBy The [legal entity + * ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) + * of the individual who signs the PCI questionnaire. */ @JsonProperty(JSON_PROPERTY_SIGNED_BY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +108,13 @@ public String getSignedBy() { } /** - * The [legal entity ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) of the individual who signs the PCI questionnaire. + * The [legal entity + * ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) + * of the individual who signs the PCI questionnaire. * - * @param signedBy The [legal entity ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) of the individual who signs the PCI questionnaire. + * @param signedBy The [legal entity + * ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) + * of the individual who signs the PCI questionnaire. */ @JsonProperty(JSON_PROPERTY_SIGNED_BY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,9 +122,7 @@ public void setSignedBy(String signedBy) { this.signedBy = signedBy; } - /** - * Return true if this PciSigningRequest object is equal to o. - */ + /** Return true if this PciSigningRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -128,8 +132,8 @@ public boolean equals(Object o) { return false; } PciSigningRequest pciSigningRequest = (PciSigningRequest) o; - return Objects.equals(this.pciTemplateReferences, pciSigningRequest.pciTemplateReferences) && - Objects.equals(this.signedBy, pciSigningRequest.signedBy); + return Objects.equals(this.pciTemplateReferences, pciSigningRequest.pciTemplateReferences) + && Objects.equals(this.signedBy, pciSigningRequest.signedBy); } @Override @@ -141,15 +145,16 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PciSigningRequest {\n"); - sb.append(" pciTemplateReferences: ").append(toIndentedString(pciTemplateReferences)).append("\n"); + sb.append(" pciTemplateReferences: ") + .append(toIndentedString(pciTemplateReferences)) + .append("\n"); sb.append(" signedBy: ").append(toIndentedString(signedBy)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -158,7 +163,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PciSigningRequest given an JSON string * * @param jsonString JSON string @@ -168,11 +173,12 @@ private String toIndentedString(Object o) { public static PciSigningRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PciSigningRequest.class); } -/** - * Convert an instance of PciSigningRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PciSigningRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/PciSigningResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/PciSigningResponse.java index 069a9e4d0..dfdc01879 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/PciSigningResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/PciSigningResponse.java @@ -2,38 +2,28 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * PciSigningResponse - */ +/** PciSigningResponse */ @JsonPropertyOrder({ PciSigningResponse.JSON_PROPERTY_PCI_QUESTIONNAIRE_IDS, PciSigningResponse.JSON_PROPERTY_SIGNED_BY }) - public class PciSigningResponse { public static final String JSON_PROPERTY_PCI_QUESTIONNAIRE_IDS = "pciQuestionnaireIds"; private List pciQuestionnaireIds; @@ -41,8 +31,7 @@ public class PciSigningResponse { public static final String JSON_PROPERTY_SIGNED_BY = "signedBy"; private String signedBy; - public PciSigningResponse() { - } + public PciSigningResponse() {} /** * The unique identifiers of the signed PCI documents. @@ -65,6 +54,7 @@ public PciSigningResponse addPciQuestionnaireIdsItem(String pciQuestionnaireIdsI /** * The unique identifiers of the signed PCI documents. + * * @return pciQuestionnaireIds The unique identifiers of the signed PCI documents. */ @JsonProperty(JSON_PROPERTY_PCI_QUESTIONNAIRE_IDS) @@ -85,9 +75,13 @@ public void setPciQuestionnaireIds(List pciQuestionnaireIds) { } /** - * The [legal entity ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) of the individual who signed the PCI questionnaire. + * The [legal entity + * ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) + * of the individual who signed the PCI questionnaire. * - * @param signedBy The [legal entity ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) of the individual who signed the PCI questionnaire. + * @param signedBy The [legal entity + * ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) + * of the individual who signed the PCI questionnaire. * @return the current {@code PciSigningResponse} instance, allowing for method chaining */ public PciSigningResponse signedBy(String signedBy) { @@ -96,8 +90,13 @@ public PciSigningResponse signedBy(String signedBy) { } /** - * The [legal entity ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) of the individual who signed the PCI questionnaire. - * @return signedBy The [legal entity ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) of the individual who signed the PCI questionnaire. + * The [legal entity + * ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) + * of the individual who signed the PCI questionnaire. + * + * @return signedBy The [legal entity + * ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) + * of the individual who signed the PCI questionnaire. */ @JsonProperty(JSON_PROPERTY_SIGNED_BY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +105,13 @@ public String getSignedBy() { } /** - * The [legal entity ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) of the individual who signed the PCI questionnaire. + * The [legal entity + * ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) + * of the individual who signed the PCI questionnaire. * - * @param signedBy The [legal entity ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) of the individual who signed the PCI questionnaire. + * @param signedBy The [legal entity + * ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) + * of the individual who signed the PCI questionnaire. */ @JsonProperty(JSON_PROPERTY_SIGNED_BY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,9 +119,7 @@ public void setSignedBy(String signedBy) { this.signedBy = signedBy; } - /** - * Return true if this PciSigningResponse object is equal to o. - */ + /** Return true if this PciSigningResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -128,8 +129,8 @@ public boolean equals(Object o) { return false; } PciSigningResponse pciSigningResponse = (PciSigningResponse) o; - return Objects.equals(this.pciQuestionnaireIds, pciSigningResponse.pciQuestionnaireIds) && - Objects.equals(this.signedBy, pciSigningResponse.signedBy); + return Objects.equals(this.pciQuestionnaireIds, pciSigningResponse.pciQuestionnaireIds) + && Objects.equals(this.signedBy, pciSigningResponse.signedBy); } @Override @@ -141,15 +142,16 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PciSigningResponse {\n"); - sb.append(" pciQuestionnaireIds: ").append(toIndentedString(pciQuestionnaireIds)).append("\n"); + sb.append(" pciQuestionnaireIds: ") + .append(toIndentedString(pciQuestionnaireIds)) + .append("\n"); sb.append(" signedBy: ").append(toIndentedString(signedBy)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -158,21 +160,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PciSigningResponse given an JSON string * * @param jsonString JSON string * @return An instance of PciSigningResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to PciSigningResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PciSigningResponse */ public static PciSigningResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PciSigningResponse.class); } -/** - * Convert an instance of PciSigningResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PciSigningResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/PhoneNumber.java b/src/main/java/com/adyen/model/legalentitymanagement/PhoneNumber.java index 4e11f975a..ea075054a 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/PhoneNumber.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/PhoneNumber.java @@ -2,37 +2,28 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * PhoneNumber - */ +/** PhoneNumber */ @JsonPropertyOrder({ PhoneNumber.JSON_PROPERTY_NUMBER, PhoneNumber.JSON_PROPERTY_PHONE_COUNTRY_CODE, PhoneNumber.JSON_PROPERTY_TYPE }) - public class PhoneNumber { public static final String JSON_PROPERTY_NUMBER = "number"; private String number; @@ -43,13 +34,10 @@ public class PhoneNumber { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public PhoneNumber() { - } + public PhoneNumber() {} @JsonCreator - public PhoneNumber( - @JsonProperty(JSON_PROPERTY_PHONE_COUNTRY_CODE) String phoneCountryCode - ) { + public PhoneNumber(@JsonProperty(JSON_PROPERTY_PHONE_COUNTRY_CODE) String phoneCountryCode) { this(); this.phoneCountryCode = phoneCountryCode; } @@ -67,6 +55,7 @@ public PhoneNumber number(String number) { /** * The full phone number, including the country code. For example, **+3112345678**. + * * @return number The full phone number, including the country code. For example, **+3112345678**. */ @JsonProperty(JSON_PROPERTY_NUMBER) @@ -87,8 +76,15 @@ public void setNumber(String number) { } /** - * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code prefix of the phone number. For example, **US** or **NL**. The value of the `phoneCountryCode` is determined by the country code digit(s) of `phone.number` - * @return phoneCountryCode The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code prefix of the phone number. For example, **US** or **NL**. The value of the `phoneCountryCode` is determined by the country code digit(s) of `phone.number` + * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country + * code prefix of the phone number. For example, **US** or **NL**. The value of the + * `phoneCountryCode` is determined by the country code digit(s) of + * `phone.number` + * + * @return phoneCountryCode The two-letter [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code prefix of the phone + * number. For example, **US** or **NL**. The value of the `phoneCountryCode` is + * determined by the country code digit(s) of `phone.number` */ @JsonProperty(JSON_PROPERTY_PHONE_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,11 +92,11 @@ public String getPhoneCountryCode() { return phoneCountryCode; } - /** - * The type of phone number. Possible values: **mobile**, **landline**, **sip**, **fax.** + * The type of phone number. Possible values: **mobile**, **landline**, **sip**, **fax.** * - * @param type The type of phone number. Possible values: **mobile**, **landline**, **sip**, **fax.** + * @param type The type of phone number. Possible values: **mobile**, **landline**, **sip**, + * **fax.** * @return the current {@code PhoneNumber} instance, allowing for method chaining */ public PhoneNumber type(String type) { @@ -109,8 +105,10 @@ public PhoneNumber type(String type) { } /** - * The type of phone number. Possible values: **mobile**, **landline**, **sip**, **fax.** - * @return type The type of phone number. Possible values: **mobile**, **landline**, **sip**, **fax.** + * The type of phone number. Possible values: **mobile**, **landline**, **sip**, **fax.** + * + * @return type The type of phone number. Possible values: **mobile**, **landline**, **sip**, + * **fax.** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -119,9 +117,10 @@ public String getType() { } /** - * The type of phone number. Possible values: **mobile**, **landline**, **sip**, **fax.** + * The type of phone number. Possible values: **mobile**, **landline**, **sip**, **fax.** * - * @param type The type of phone number. Possible values: **mobile**, **landline**, **sip**, **fax.** + * @param type The type of phone number. Possible values: **mobile**, **landline**, **sip**, + * **fax.** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,9 +128,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this PhoneNumber object is equal to o. - */ + /** Return true if this PhoneNumber object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -141,9 +138,9 @@ public boolean equals(Object o) { return false; } PhoneNumber phoneNumber = (PhoneNumber) o; - return Objects.equals(this.number, phoneNumber.number) && - Objects.equals(this.phoneCountryCode, phoneNumber.phoneCountryCode) && - Objects.equals(this.type, phoneNumber.type); + return Objects.equals(this.number, phoneNumber.number) + && Objects.equals(this.phoneCountryCode, phoneNumber.phoneCountryCode) + && Objects.equals(this.type, phoneNumber.type); } @Override @@ -163,8 +160,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,7 +169,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PhoneNumber given an JSON string * * @param jsonString JSON string @@ -183,11 +179,12 @@ private String toIndentedString(Object o) { public static PhoneNumber fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PhoneNumber.class); } -/** - * Convert an instance of PhoneNumber to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PhoneNumber to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/RemediatingAction.java b/src/main/java/com/adyen/model/legalentitymanagement/RemediatingAction.java index eb8b3a809..709dae2ba 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/RemediatingAction.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/RemediatingAction.java @@ -2,36 +2,23 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * RemediatingAction - */ -@JsonPropertyOrder({ - RemediatingAction.JSON_PROPERTY_CODE, - RemediatingAction.JSON_PROPERTY_MESSAGE -}) - +/** RemediatingAction */ +@JsonPropertyOrder({RemediatingAction.JSON_PROPERTY_CODE, RemediatingAction.JSON_PROPERTY_MESSAGE}) public class RemediatingAction { public static final String JSON_PROPERTY_CODE = "code"; private String code; @@ -39,13 +26,12 @@ public class RemediatingAction { public static final String JSON_PROPERTY_MESSAGE = "message"; private String message; - public RemediatingAction() { - } + public RemediatingAction() {} /** * code * - * @param code + * @param code * @return the current {@code RemediatingAction} instance, allowing for method chaining */ public RemediatingAction code(String code) { @@ -55,7 +41,8 @@ public RemediatingAction code(String code) { /** * Get code - * @return code + * + * @return code */ @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -66,7 +53,7 @@ public String getCode() { /** * code * - * @param code + * @param code */ @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -77,7 +64,7 @@ public void setCode(String code) { /** * message * - * @param message + * @param message * @return the current {@code RemediatingAction} instance, allowing for method chaining */ public RemediatingAction message(String message) { @@ -87,7 +74,8 @@ public RemediatingAction message(String message) { /** * Get message - * @return message + * + * @return message */ @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -98,7 +86,7 @@ public String getMessage() { /** * message * - * @param message + * @param message */ @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +94,7 @@ public void setMessage(String message) { this.message = message; } - /** - * Return true if this RemediatingAction object is equal to o. - */ + /** Return true if this RemediatingAction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +104,8 @@ public boolean equals(Object o) { return false; } RemediatingAction remediatingAction = (RemediatingAction) o; - return Objects.equals(this.code, remediatingAction.code) && - Objects.equals(this.message, remediatingAction.message); + return Objects.equals(this.code, remediatingAction.code) + && Objects.equals(this.message, remediatingAction.message); } @Override @@ -138,8 +124,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +133,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RemediatingAction given an JSON string * * @param jsonString JSON string @@ -158,11 +143,12 @@ private String toIndentedString(Object o) { public static RemediatingAction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RemediatingAction.class); } -/** - * Convert an instance of RemediatingAction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RemediatingAction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/SELocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/SELocalAccountIdentification.java index 4bcf2b2e3..0315f0c46 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/SELocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/SELocalAccountIdentification.java @@ -2,37 +2,31 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * SELocalAccountIdentification - */ +/** SELocalAccountIdentification */ @JsonPropertyOrder({ SELocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, SELocalAccountIdentification.JSON_PROPERTY_CLEARING_NUMBER, SELocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class SELocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -40,11 +34,8 @@ public class SELocalAccountIdentification { public static final String JSON_PROPERTY_CLEARING_NUMBER = "clearingNumber"; private String clearingNumber; - /** - * **seLocal** - */ + /** **seLocal** */ public enum TypeEnum { - SELOCAL(String.valueOf("seLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +43,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +64,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,13 +76,16 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public SELocalAccountIdentification() { - } + public SELocalAccountIdentification() {} /** - * The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. + * The 7- to 10-digit bank account number + * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, + * separators, or whitespace. * - * @param accountNumber The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. + * @param accountNumber The 7- to 10-digit bank account number + * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, + * separators, or whitespace. * @return the current {@code SELocalAccountIdentification} instance, allowing for method chaining */ public SELocalAccountIdentification accountNumber(String accountNumber) { @@ -96,8 +94,13 @@ public SELocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. - * @return accountNumber The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. + * The 7- to 10-digit bank account number + * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, + * separators, or whitespace. + * + * @return accountNumber The 7- to 10-digit bank account number + * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, + * separators, or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +109,13 @@ public String getAccountNumber() { } /** - * The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. + * The 7- to 10-digit bank account number + * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, + * separators, or whitespace. * - * @param accountNumber The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. + * @param accountNumber The 7- to 10-digit bank account number + * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, + * separators, or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,9 +124,13 @@ public void setAccountNumber(String accountNumber) { } /** - * The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. + * The 4- to 5-digit clearing number + * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or + * whitespace. * - * @param clearingNumber The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. + * @param clearingNumber The 4- to 5-digit clearing number + * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or + * whitespace. * @return the current {@code SELocalAccountIdentification} instance, allowing for method chaining */ public SELocalAccountIdentification clearingNumber(String clearingNumber) { @@ -128,8 +139,13 @@ public SELocalAccountIdentification clearingNumber(String clearingNumber) { } /** - * The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. - * @return clearingNumber The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. + * The 4- to 5-digit clearing number + * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or + * whitespace. + * + * @return clearingNumber The 4- to 5-digit clearing number + * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or + * whitespace. */ @JsonProperty(JSON_PROPERTY_CLEARING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,9 +154,13 @@ public String getClearingNumber() { } /** - * The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. + * The 4- to 5-digit clearing number + * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or + * whitespace. * - * @param clearingNumber The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. + * @param clearingNumber The 4- to 5-digit clearing number + * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or + * whitespace. */ @JsonProperty(JSON_PROPERTY_CLEARING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,6 +181,7 @@ public SELocalAccountIdentification type(TypeEnum type) { /** * **seLocal** + * * @return type **seLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +201,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this SELocalAccountIdentification object is equal to o. - */ + /** Return true if this SELocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +211,9 @@ public boolean equals(Object o) { return false; } SELocalAccountIdentification seLocalAccountIdentification = (SELocalAccountIdentification) o; - return Objects.equals(this.accountNumber, seLocalAccountIdentification.accountNumber) && - Objects.equals(this.clearingNumber, seLocalAccountIdentification.clearingNumber) && - Objects.equals(this.type, seLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, seLocalAccountIdentification.accountNumber) + && Objects.equals(this.clearingNumber, seLocalAccountIdentification.clearingNumber) + && Objects.equals(this.type, seLocalAccountIdentification.type); } @Override @@ -214,8 +233,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +242,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SELocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of SELocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to SELocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SELocalAccountIdentification */ - public static SELocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static SELocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SELocalAccountIdentification.class); } -/** - * Convert an instance of SELocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SELocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/SGLocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/SGLocalAccountIdentification.java index 941d7c03c..10e34d286 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/SGLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/SGLocalAccountIdentification.java @@ -2,37 +2,31 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * SGLocalAccountIdentification - */ +/** SGLocalAccountIdentification */ @JsonPropertyOrder({ SGLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, SGLocalAccountIdentification.JSON_PROPERTY_BIC, SGLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class SGLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -40,11 +34,8 @@ public class SGLocalAccountIdentification { public static final String JSON_PROPERTY_BIC = "bic"; private String bic; - /** - * **sgLocal** - */ + /** **sgLocal** */ public enum TypeEnum { - SGLOCAL(String.valueOf("sgLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +43,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +64,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,8 +76,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public SGLocalAccountIdentification() { - } + public SGLocalAccountIdentification() {} /** * The 4- to 19-digit bank account number, without separators or whitespace. @@ -97,6 +91,7 @@ public SGLocalAccountIdentification accountNumber(String accountNumber) { /** * The 4- to 19-digit bank account number, without separators or whitespace. + * * @return accountNumber The 4- to 19-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -129,6 +124,7 @@ public SGLocalAccountIdentification bic(String bic) { /** * The bank's 8- or 11-character BIC or SWIFT code. + * * @return bic The bank's 8- or 11-character BIC or SWIFT code. */ @JsonProperty(JSON_PROPERTY_BIC) @@ -161,6 +157,7 @@ public SGLocalAccountIdentification type(TypeEnum type) { /** * **sgLocal** + * * @return type **sgLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +177,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this SGLocalAccountIdentification object is equal to o. - */ + /** Return true if this SGLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +187,9 @@ public boolean equals(Object o) { return false; } SGLocalAccountIdentification sgLocalAccountIdentification = (SGLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, sgLocalAccountIdentification.accountNumber) && - Objects.equals(this.bic, sgLocalAccountIdentification.bic) && - Objects.equals(this.type, sgLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, sgLocalAccountIdentification.accountNumber) + && Objects.equals(this.bic, sgLocalAccountIdentification.bic) + && Objects.equals(this.type, sgLocalAccountIdentification.type); } @Override @@ -214,8 +209,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +218,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SGLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of SGLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to SGLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SGLocalAccountIdentification */ - public static SGLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static SGLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SGLocalAccountIdentification.class); } -/** - * Convert an instance of SGLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SGLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/ServiceError.java b/src/main/java/com/adyen/model/legalentitymanagement/ServiceError.java index 3eb6d1454..eb287c934 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/ServiceError.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/ServiceError.java @@ -2,31 +2,22 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ServiceError - */ +/** ServiceError */ @JsonPropertyOrder({ ServiceError.JSON_PROPERTY_ERROR_CODE, ServiceError.JSON_PROPERTY_ERROR_TYPE, @@ -34,7 +25,6 @@ ServiceError.JSON_PROPERTY_PSP_REFERENCE, ServiceError.JSON_PROPERTY_STATUS }) - public class ServiceError { public static final String JSON_PROPERTY_ERROR_CODE = "errorCode"; private String errorCode; @@ -51,8 +41,7 @@ public class ServiceError { public static final String JSON_PROPERTY_STATUS = "status"; private Integer status; - public ServiceError() { - } + public ServiceError() {} /** * The error code mapped to the error message. @@ -67,6 +56,7 @@ public ServiceError errorCode(String errorCode) { /** * The error code mapped to the error message. + * * @return errorCode The error code mapped to the error message. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -99,6 +89,7 @@ public ServiceError errorType(String errorType) { /** * The category of the error. + * * @return errorType The category of the error. */ @JsonProperty(JSON_PROPERTY_ERROR_TYPE) @@ -131,6 +122,7 @@ public ServiceError message(String message) { /** * A short explanation of the issue. + * * @return message A short explanation of the issue. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -163,6 +155,7 @@ public ServiceError pspReference(String pspReference) { /** * The PSP reference of the payment. + * * @return pspReference The PSP reference of the payment. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -195,6 +188,7 @@ public ServiceError status(Integer status) { /** * The HTTP response status. + * * @return status The HTTP response status. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -214,9 +208,7 @@ public void setStatus(Integer status) { this.status = status; } - /** - * Return true if this ServiceError object is equal to o. - */ + /** Return true if this ServiceError object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -226,11 +218,11 @@ public boolean equals(Object o) { return false; } ServiceError serviceError = (ServiceError) o; - return Objects.equals(this.errorCode, serviceError.errorCode) && - Objects.equals(this.errorType, serviceError.errorType) && - Objects.equals(this.message, serviceError.message) && - Objects.equals(this.pspReference, serviceError.pspReference) && - Objects.equals(this.status, serviceError.status); + return Objects.equals(this.errorCode, serviceError.errorCode) + && Objects.equals(this.errorType, serviceError.errorType) + && Objects.equals(this.message, serviceError.message) + && Objects.equals(this.pspReference, serviceError.pspReference) + && Objects.equals(this.status, serviceError.status); } @Override @@ -252,8 +244,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -262,7 +253,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ServiceError given an JSON string * * @param jsonString JSON string @@ -272,11 +263,12 @@ private String toIndentedString(Object o) { public static ServiceError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } -/** - * Convert an instance of ServiceError to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ServiceError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/SetTaxElectronicDeliveryConsentRequest.java b/src/main/java/com/adyen/model/legalentitymanagement/SetTaxElectronicDeliveryConsentRequest.java index 7ffb02010..e1c9896c5 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/SetTaxElectronicDeliveryConsentRequest.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/SetTaxElectronicDeliveryConsentRequest.java @@ -2,47 +2,35 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * SetTaxElectronicDeliveryConsentRequest - */ -@JsonPropertyOrder({ - SetTaxElectronicDeliveryConsentRequest.JSON_PROPERTY_US1099K -}) - +/** SetTaxElectronicDeliveryConsentRequest */ +@JsonPropertyOrder({SetTaxElectronicDeliveryConsentRequest.JSON_PROPERTY_US1099K}) public class SetTaxElectronicDeliveryConsentRequest { public static final String JSON_PROPERTY_US1099K = "US1099k"; private Boolean us1099k; - public SetTaxElectronicDeliveryConsentRequest() { - } + public SetTaxElectronicDeliveryConsentRequest() {} /** * Consent to electronically deliver tax form US1099-K. * * @param us1099k Consent to electronically deliver tax form US1099-K. - * @return the current {@code SetTaxElectronicDeliveryConsentRequest} instance, allowing for method chaining + * @return the current {@code SetTaxElectronicDeliveryConsentRequest} instance, allowing for + * method chaining */ public SetTaxElectronicDeliveryConsentRequest us1099k(Boolean us1099k) { this.us1099k = us1099k; @@ -51,6 +39,7 @@ public SetTaxElectronicDeliveryConsentRequest us1099k(Boolean us1099k) { /** * Consent to electronically deliver tax form US1099-K. + * * @return us1099k Consent to electronically deliver tax form US1099-K. */ @JsonProperty(JSON_PROPERTY_US1099K) @@ -70,9 +59,7 @@ public void setUs1099k(Boolean us1099k) { this.us1099k = us1099k; } - /** - * Return true if this SetTaxElectronicDeliveryConsentRequest object is equal to o. - */ + /** Return true if this SetTaxElectronicDeliveryConsentRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -81,7 +68,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SetTaxElectronicDeliveryConsentRequest setTaxElectronicDeliveryConsentRequest = (SetTaxElectronicDeliveryConsentRequest) o; + SetTaxElectronicDeliveryConsentRequest setTaxElectronicDeliveryConsentRequest = + (SetTaxElectronicDeliveryConsentRequest) o; return Objects.equals(this.us1099k, setTaxElectronicDeliveryConsentRequest.us1099k); } @@ -100,8 +88,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +97,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SetTaxElectronicDeliveryConsentRequest given an JSON string * * @param jsonString JSON string * @return An instance of SetTaxElectronicDeliveryConsentRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to SetTaxElectronicDeliveryConsentRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SetTaxElectronicDeliveryConsentRequest */ - public static SetTaxElectronicDeliveryConsentRequest fromJson(String jsonString) throws JsonProcessingException { + public static SetTaxElectronicDeliveryConsentRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SetTaxElectronicDeliveryConsentRequest.class); } -/** - * Convert an instance of SetTaxElectronicDeliveryConsentRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SetTaxElectronicDeliveryConsentRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/SoleProprietorship.java b/src/main/java/com/adyen/model/legalentitymanagement/SoleProprietorship.java index df0bf7980..cc02ed9eb 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/SoleProprietorship.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/SoleProprietorship.java @@ -2,36 +2,28 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.legalentitymanagement.Address; -import com.adyen.model.legalentitymanagement.FinancialReport; -import com.adyen.model.legalentitymanagement.TaxInformation; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * SoleProprietorship - */ +/** SoleProprietorship */ @JsonPropertyOrder({ SoleProprietorship.JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW, SoleProprietorship.JSON_PROPERTY_DATE_OF_INCORPORATION, @@ -46,7 +38,6 @@ SoleProprietorship.JSON_PROPERTY_VAT_ABSENCE_REASON, SoleProprietorship.JSON_PROPERTY_VAT_NUMBER }) - public class SoleProprietorship { public static final String JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW = "countryOfGoverningLaw"; private String countryOfGoverningLaw; @@ -79,10 +70,10 @@ public class SoleProprietorship { private List taxInformation; /** - * The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + * The reason for not providing a VAT number. Possible values: **industryExemption**, + * **belowTaxThreshold**. */ public enum VatAbsenceReasonEnum { - INDUSTRYEXEMPTION(String.valueOf("industryExemption")), BELOWTAXTHRESHOLD(String.valueOf("belowTaxThreshold")); @@ -92,7 +83,7 @@ public enum VatAbsenceReasonEnum { private String value; VatAbsenceReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -113,7 +104,11 @@ public static VatAbsenceReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("VatAbsenceReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(VatAbsenceReasonEnum.values())); + LOG.warning( + "VatAbsenceReasonEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(VatAbsenceReasonEnum.values())); return null; } } @@ -124,13 +119,15 @@ public static VatAbsenceReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_VAT_NUMBER = "vatNumber"; private String vatNumber; - public SoleProprietorship() { - } + public SoleProprietorship() {} /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code of the governing country. * - * @param countryOfGoverningLaw The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. + * @param countryOfGoverningLaw The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing + * country. * @return the current {@code SoleProprietorship} instance, allowing for method chaining */ public SoleProprietorship countryOfGoverningLaw(String countryOfGoverningLaw) { @@ -139,8 +136,12 @@ public SoleProprietorship countryOfGoverningLaw(String countryOfGoverningLaw) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. - * @return countryOfGoverningLaw The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code of the governing country. + * + * @return countryOfGoverningLaw The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing + * country. */ @JsonProperty(JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -149,9 +150,12 @@ public String getCountryOfGoverningLaw() { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code of the governing country. * - * @param countryOfGoverningLaw The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. + * @param countryOfGoverningLaw The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing + * country. */ @JsonProperty(JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -162,7 +166,8 @@ public void setCountryOfGoverningLaw(String countryOfGoverningLaw) { /** * The date when the legal arrangement was incorporated in YYYY-MM-DD format. * - * @param dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD format. + * @param dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD + * format. * @return the current {@code SoleProprietorship} instance, allowing for method chaining */ public SoleProprietorship dateOfIncorporation(String dateOfIncorporation) { @@ -172,7 +177,9 @@ public SoleProprietorship dateOfIncorporation(String dateOfIncorporation) { /** * The date when the legal arrangement was incorporated in YYYY-MM-DD format. - * @return dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD format. + * + * @return dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD + * format. */ @JsonProperty(JSON_PROPERTY_DATE_OF_INCORPORATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,7 +190,8 @@ public String getDateOfIncorporation() { /** * The date when the legal arrangement was incorporated in YYYY-MM-DD format. * - * @param dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD format. + * @param dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD + * format. */ @JsonProperty(JSON_PROPERTY_DATE_OF_INCORPORATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,6 +212,7 @@ public SoleProprietorship doingBusinessAs(String doingBusinessAs) { /** * The registered name, if different from the `name`. + * * @return doingBusinessAs The registered name, if different from the `name`. */ @JsonProperty(JSON_PROPERTY_DOING_BUSINESS_AS) @@ -244,6 +253,7 @@ public SoleProprietorship addFinancialReportsItem(FinancialReport financialRepor /** * The information from the financial report of the sole proprietorship. + * * @return financialReports The information from the financial report of the sole proprietorship. */ @JsonProperty(JSON_PROPERTY_FINANCIAL_REPORTS) @@ -276,6 +286,7 @@ public SoleProprietorship name(String name) { /** * The legal name. + * * @return name The legal name. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -298,7 +309,7 @@ public void setName(String name) { /** * principalPlaceOfBusiness * - * @param principalPlaceOfBusiness + * @param principalPlaceOfBusiness * @return the current {@code SoleProprietorship} instance, allowing for method chaining */ public SoleProprietorship principalPlaceOfBusiness(Address principalPlaceOfBusiness) { @@ -308,7 +319,8 @@ public SoleProprietorship principalPlaceOfBusiness(Address principalPlaceOfBusin /** * Get principalPlaceOfBusiness - * @return principalPlaceOfBusiness + * + * @return principalPlaceOfBusiness */ @JsonProperty(JSON_PROPERTY_PRINCIPAL_PLACE_OF_BUSINESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -319,7 +331,7 @@ public Address getPrincipalPlaceOfBusiness() { /** * principalPlaceOfBusiness * - * @param principalPlaceOfBusiness + * @param principalPlaceOfBusiness */ @JsonProperty(JSON_PROPERTY_PRINCIPAL_PLACE_OF_BUSINESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -330,7 +342,7 @@ public void setPrincipalPlaceOfBusiness(Address principalPlaceOfBusiness) { /** * registeredAddress * - * @param registeredAddress + * @param registeredAddress * @return the current {@code SoleProprietorship} instance, allowing for method chaining */ public SoleProprietorship registeredAddress(Address registeredAddress) { @@ -340,7 +352,8 @@ public SoleProprietorship registeredAddress(Address registeredAddress) { /** * Get registeredAddress - * @return registeredAddress + * + * @return registeredAddress */ @JsonProperty(JSON_PROPERTY_REGISTERED_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -351,7 +364,7 @@ public Address getRegisteredAddress() { /** * registeredAddress * - * @param registeredAddress + * @param registeredAddress */ @JsonProperty(JSON_PROPERTY_REGISTERED_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -372,6 +385,7 @@ public SoleProprietorship registrationNumber(String registrationNumber) { /** * The registration number. + * * @return registrationNumber The registration number. */ @JsonProperty(JSON_PROPERTY_REGISTRATION_NUMBER) @@ -404,6 +418,7 @@ public SoleProprietorship taxAbsent(Boolean taxAbsent) { /** * The tax information is absent. + * * @return taxAbsent The tax information is absent. */ @JsonProperty(JSON_PROPERTY_TAX_ABSENT) @@ -444,6 +459,7 @@ public SoleProprietorship addTaxInformationItem(TaxInformation taxInformationIte /** * The tax information of the entity. + * * @return taxInformation The tax information of the entity. */ @JsonProperty(JSON_PROPERTY_TAX_INFORMATION) @@ -464,9 +480,11 @@ public void setTaxInformation(List taxInformation) { } /** - * The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + * The reason for not providing a VAT number. Possible values: **industryExemption**, + * **belowTaxThreshold**. * - * @param vatAbsenceReason The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + * @param vatAbsenceReason The reason for not providing a VAT number. Possible values: + * **industryExemption**, **belowTaxThreshold**. * @return the current {@code SoleProprietorship} instance, allowing for method chaining */ public SoleProprietorship vatAbsenceReason(VatAbsenceReasonEnum vatAbsenceReason) { @@ -475,8 +493,11 @@ public SoleProprietorship vatAbsenceReason(VatAbsenceReasonEnum vatAbsenceReason } /** - * The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. - * @return vatAbsenceReason The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + * The reason for not providing a VAT number. Possible values: **industryExemption**, + * **belowTaxThreshold**. + * + * @return vatAbsenceReason The reason for not providing a VAT number. Possible values: + * **industryExemption**, **belowTaxThreshold**. */ @JsonProperty(JSON_PROPERTY_VAT_ABSENCE_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -485,9 +506,11 @@ public VatAbsenceReasonEnum getVatAbsenceReason() { } /** - * The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + * The reason for not providing a VAT number. Possible values: **industryExemption**, + * **belowTaxThreshold**. * - * @param vatAbsenceReason The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + * @param vatAbsenceReason The reason for not providing a VAT number. Possible values: + * **industryExemption**, **belowTaxThreshold**. */ @JsonProperty(JSON_PROPERTY_VAT_ABSENCE_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -508,6 +531,7 @@ public SoleProprietorship vatNumber(String vatNumber) { /** * The VAT number. + * * @return vatNumber The VAT number. */ @JsonProperty(JSON_PROPERTY_VAT_NUMBER) @@ -527,9 +551,7 @@ public void setVatNumber(String vatNumber) { this.vatNumber = vatNumber; } - /** - * Return true if this SoleProprietorship object is equal to o. - */ + /** Return true if this SoleProprietorship object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -539,35 +561,54 @@ public boolean equals(Object o) { return false; } SoleProprietorship soleProprietorship = (SoleProprietorship) o; - return Objects.equals(this.countryOfGoverningLaw, soleProprietorship.countryOfGoverningLaw) && - Objects.equals(this.dateOfIncorporation, soleProprietorship.dateOfIncorporation) && - Objects.equals(this.doingBusinessAs, soleProprietorship.doingBusinessAs) && - Objects.equals(this.financialReports, soleProprietorship.financialReports) && - Objects.equals(this.name, soleProprietorship.name) && - Objects.equals(this.principalPlaceOfBusiness, soleProprietorship.principalPlaceOfBusiness) && - Objects.equals(this.registeredAddress, soleProprietorship.registeredAddress) && - Objects.equals(this.registrationNumber, soleProprietorship.registrationNumber) && - Objects.equals(this.taxAbsent, soleProprietorship.taxAbsent) && - Objects.equals(this.taxInformation, soleProprietorship.taxInformation) && - Objects.equals(this.vatAbsenceReason, soleProprietorship.vatAbsenceReason) && - Objects.equals(this.vatNumber, soleProprietorship.vatNumber); + return Objects.equals(this.countryOfGoverningLaw, soleProprietorship.countryOfGoverningLaw) + && Objects.equals(this.dateOfIncorporation, soleProprietorship.dateOfIncorporation) + && Objects.equals(this.doingBusinessAs, soleProprietorship.doingBusinessAs) + && Objects.equals(this.financialReports, soleProprietorship.financialReports) + && Objects.equals(this.name, soleProprietorship.name) + && Objects.equals( + this.principalPlaceOfBusiness, soleProprietorship.principalPlaceOfBusiness) + && Objects.equals(this.registeredAddress, soleProprietorship.registeredAddress) + && Objects.equals(this.registrationNumber, soleProprietorship.registrationNumber) + && Objects.equals(this.taxAbsent, soleProprietorship.taxAbsent) + && Objects.equals(this.taxInformation, soleProprietorship.taxInformation) + && Objects.equals(this.vatAbsenceReason, soleProprietorship.vatAbsenceReason) + && Objects.equals(this.vatNumber, soleProprietorship.vatNumber); } @Override public int hashCode() { - return Objects.hash(countryOfGoverningLaw, dateOfIncorporation, doingBusinessAs, financialReports, name, principalPlaceOfBusiness, registeredAddress, registrationNumber, taxAbsent, taxInformation, vatAbsenceReason, vatNumber); + return Objects.hash( + countryOfGoverningLaw, + dateOfIncorporation, + doingBusinessAs, + financialReports, + name, + principalPlaceOfBusiness, + registeredAddress, + registrationNumber, + taxAbsent, + taxInformation, + vatAbsenceReason, + vatNumber); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SoleProprietorship {\n"); - sb.append(" countryOfGoverningLaw: ").append(toIndentedString(countryOfGoverningLaw)).append("\n"); - sb.append(" dateOfIncorporation: ").append(toIndentedString(dateOfIncorporation)).append("\n"); + sb.append(" countryOfGoverningLaw: ") + .append(toIndentedString(countryOfGoverningLaw)) + .append("\n"); + sb.append(" dateOfIncorporation: ") + .append(toIndentedString(dateOfIncorporation)) + .append("\n"); sb.append(" doingBusinessAs: ").append(toIndentedString(doingBusinessAs)).append("\n"); sb.append(" financialReports: ").append(toIndentedString(financialReports)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" principalPlaceOfBusiness: ").append(toIndentedString(principalPlaceOfBusiness)).append("\n"); + sb.append(" principalPlaceOfBusiness: ") + .append(toIndentedString(principalPlaceOfBusiness)) + .append("\n"); sb.append(" registeredAddress: ").append(toIndentedString(registeredAddress)).append("\n"); sb.append(" registrationNumber: ").append(toIndentedString(registrationNumber)).append("\n"); sb.append(" taxAbsent: ").append(toIndentedString(taxAbsent)).append("\n"); @@ -579,8 +620,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -589,21 +629,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SoleProprietorship given an JSON string * * @param jsonString JSON string * @return An instance of SoleProprietorship - * @throws JsonProcessingException if the JSON string is invalid with respect to SoleProprietorship + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SoleProprietorship */ public static SoleProprietorship fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SoleProprietorship.class); } -/** - * Convert an instance of SoleProprietorship to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SoleProprietorship to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/SourceOfFunds.java b/src/main/java/com/adyen/model/legalentitymanagement/SourceOfFunds.java index 6fceeebc6..a9df859e5 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/SourceOfFunds.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/SourceOfFunds.java @@ -2,38 +2,32 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * SourceOfFunds - */ +/** SourceOfFunds */ @JsonPropertyOrder({ SourceOfFunds.JSON_PROPERTY_ACQUIRING_BUSINESS_LINE_ID, SourceOfFunds.JSON_PROPERTY_ADYEN_PROCESSED_FUNDS, SourceOfFunds.JSON_PROPERTY_DESCRIPTION, SourceOfFunds.JSON_PROPERTY_TYPE }) - public class SourceOfFunds { public static final String JSON_PROPERTY_ACQUIRING_BUSINESS_LINE_ID = "acquiringBusinessLineId"; @Deprecated // deprecated since Legal Entity Management API v3: This field will be removed in v4. @@ -45,11 +39,8 @@ public class SourceOfFunds { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; - /** - * The type of the source of funds. Possible value: **business**. - */ + /** The type of the source of funds. Possible value: **business**. */ public enum TypeEnum { - BUSINESS(String.valueOf("business")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -57,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -78,7 +69,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -86,17 +81,17 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public SourceOfFunds() { - } + public SourceOfFunds() {} /** - * The unique identifier of the business line that is the source of funds.This must be a business line for a **receivePayments** or **receiveFromPlatformPayments** capability. + * The unique identifier of the business line that is the source of funds.This must be a business + * line for a **receivePayments** or **receiveFromPlatformPayments** capability. * - * @param acquiringBusinessLineId The unique identifier of the business line that is the source of funds.This must be a business line for a **receivePayments** or **receiveFromPlatformPayments** capability. + * @param acquiringBusinessLineId The unique identifier of the business line that is the source of + * funds.This must be a business line for a **receivePayments** or + * **receiveFromPlatformPayments** capability. * @return the current {@code SourceOfFunds} instance, allowing for method chaining - * - * @deprecated since Legal Entity Management API v3 - * This field will be removed in v4. + * @deprecated since Legal Entity Management API v3 This field will be removed in v4. */ @Deprecated // deprecated since Legal Entity Management API v3: This field will be removed in v4. public SourceOfFunds acquiringBusinessLineId(String acquiringBusinessLineId) { @@ -105,9 +100,14 @@ public SourceOfFunds acquiringBusinessLineId(String acquiringBusinessLineId) { } /** - * The unique identifier of the business line that is the source of funds.This must be a business line for a **receivePayments** or **receiveFromPlatformPayments** capability. - * @return acquiringBusinessLineId The unique identifier of the business line that is the source of funds.This must be a business line for a **receivePayments** or **receiveFromPlatformPayments** capability. - * @deprecated // deprecated since Legal Entity Management API v3: This field will be removed in v4. + * The unique identifier of the business line that is the source of funds.This must be a business + * line for a **receivePayments** or **receiveFromPlatformPayments** capability. + * + * @return acquiringBusinessLineId The unique identifier of the business line that is the source + * of funds.This must be a business line for a **receivePayments** or + * **receiveFromPlatformPayments** capability. + * @deprecated // deprecated since Legal Entity Management API v3: This field will be removed in + * v4. */ @Deprecated // deprecated since Legal Entity Management API v3: This field will be removed in v4. @JsonProperty(JSON_PROPERTY_ACQUIRING_BUSINESS_LINE_ID) @@ -117,12 +117,13 @@ public String getAcquiringBusinessLineId() { } /** - * The unique identifier of the business line that is the source of funds.This must be a business line for a **receivePayments** or **receiveFromPlatformPayments** capability. - * - * @param acquiringBusinessLineId The unique identifier of the business line that is the source of funds.This must be a business line for a **receivePayments** or **receiveFromPlatformPayments** capability. + * The unique identifier of the business line that is the source of funds.This must be a business + * line for a **receivePayments** or **receiveFromPlatformPayments** capability. * - * @deprecated since Legal Entity Management API v3 - * This field will be removed in v4. + * @param acquiringBusinessLineId The unique identifier of the business line that is the source of + * funds.This must be a business line for a **receivePayments** or + * **receiveFromPlatformPayments** capability. + * @deprecated since Legal Entity Management API v3 This field will be removed in v4. */ @Deprecated // deprecated since Legal Entity Management API v3: This field will be removed in v4. @JsonProperty(JSON_PROPERTY_ACQUIRING_BUSINESS_LINE_ID) @@ -132,9 +133,11 @@ public void setAcquiringBusinessLineId(String acquiringBusinessLineId) { } /** - * Indicates whether the funds are coming from transactions processed by Adyen. If **false**, a `description` is required. + * Indicates whether the funds are coming from transactions processed by Adyen. If **false**, a + * `description` is required. * - * @param adyenProcessedFunds Indicates whether the funds are coming from transactions processed by Adyen. If **false**, a `description` is required. + * @param adyenProcessedFunds Indicates whether the funds are coming from transactions processed + * by Adyen. If **false**, a `description` is required. * @return the current {@code SourceOfFunds} instance, allowing for method chaining */ public SourceOfFunds adyenProcessedFunds(Boolean adyenProcessedFunds) { @@ -143,8 +146,11 @@ public SourceOfFunds adyenProcessedFunds(Boolean adyenProcessedFunds) { } /** - * Indicates whether the funds are coming from transactions processed by Adyen. If **false**, a `description` is required. - * @return adyenProcessedFunds Indicates whether the funds are coming from transactions processed by Adyen. If **false**, a `description` is required. + * Indicates whether the funds are coming from transactions processed by Adyen. If **false**, a + * `description` is required. + * + * @return adyenProcessedFunds Indicates whether the funds are coming from transactions processed + * by Adyen. If **false**, a `description` is required. */ @JsonProperty(JSON_PROPERTY_ADYEN_PROCESSED_FUNDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -153,9 +159,11 @@ public Boolean getAdyenProcessedFunds() { } /** - * Indicates whether the funds are coming from transactions processed by Adyen. If **false**, a `description` is required. + * Indicates whether the funds are coming from transactions processed by Adyen. If **false**, a + * `description` is required. * - * @param adyenProcessedFunds Indicates whether the funds are coming from transactions processed by Adyen. If **false**, a `description` is required. + * @param adyenProcessedFunds Indicates whether the funds are coming from transactions processed + * by Adyen. If **false**, a `description` is required. */ @JsonProperty(JSON_PROPERTY_ADYEN_PROCESSED_FUNDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -164,9 +172,13 @@ public void setAdyenProcessedFunds(Boolean adyenProcessedFunds) { } /** - * Text describing the source of funds. For example, for `type` **business**, provide a description of where the business transactions come from, such as payments through bank transfer. Required when `adyenProcessedFunds` is **false**. + * Text describing the source of funds. For example, for `type` **business**, provide a + * description of where the business transactions come from, such as payments through bank + * transfer. Required when `adyenProcessedFunds` is **false**. * - * @param description Text describing the source of funds. For example, for `type` **business**, provide a description of where the business transactions come from, such as payments through bank transfer. Required when `adyenProcessedFunds` is **false**. + * @param description Text describing the source of funds. For example, for `type` + * **business**, provide a description of where the business transactions come from, such as + * payments through bank transfer. Required when `adyenProcessedFunds` is **false**. * @return the current {@code SourceOfFunds} instance, allowing for method chaining */ public SourceOfFunds description(String description) { @@ -175,8 +187,13 @@ public SourceOfFunds description(String description) { } /** - * Text describing the source of funds. For example, for `type` **business**, provide a description of where the business transactions come from, such as payments through bank transfer. Required when `adyenProcessedFunds` is **false**. - * @return description Text describing the source of funds. For example, for `type` **business**, provide a description of where the business transactions come from, such as payments through bank transfer. Required when `adyenProcessedFunds` is **false**. + * Text describing the source of funds. For example, for `type` **business**, provide a + * description of where the business transactions come from, such as payments through bank + * transfer. Required when `adyenProcessedFunds` is **false**. + * + * @return description Text describing the source of funds. For example, for `type` + * **business**, provide a description of where the business transactions come from, such as + * payments through bank transfer. Required when `adyenProcessedFunds` is **false**. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,9 +202,13 @@ public String getDescription() { } /** - * Text describing the source of funds. For example, for `type` **business**, provide a description of where the business transactions come from, such as payments through bank transfer. Required when `adyenProcessedFunds` is **false**. + * Text describing the source of funds. For example, for `type` **business**, provide a + * description of where the business transactions come from, such as payments through bank + * transfer. Required when `adyenProcessedFunds` is **false**. * - * @param description Text describing the source of funds. For example, for `type` **business**, provide a description of where the business transactions come from, such as payments through bank transfer. Required when `adyenProcessedFunds` is **false**. + * @param description Text describing the source of funds. For example, for `type` + * **business**, provide a description of where the business transactions come from, such as + * payments through bank transfer. Required when `adyenProcessedFunds` is **false**. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,6 +229,7 @@ public SourceOfFunds type(TypeEnum type) { /** * The type of the source of funds. Possible value: **business**. + * * @return type The type of the source of funds. Possible value: **business**. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -227,9 +249,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this SourceOfFunds object is equal to o. - */ + /** Return true if this SourceOfFunds object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -239,10 +259,10 @@ public boolean equals(Object o) { return false; } SourceOfFunds sourceOfFunds = (SourceOfFunds) o; - return Objects.equals(this.acquiringBusinessLineId, sourceOfFunds.acquiringBusinessLineId) && - Objects.equals(this.adyenProcessedFunds, sourceOfFunds.adyenProcessedFunds) && - Objects.equals(this.description, sourceOfFunds.description) && - Objects.equals(this.type, sourceOfFunds.type); + return Objects.equals(this.acquiringBusinessLineId, sourceOfFunds.acquiringBusinessLineId) + && Objects.equals(this.adyenProcessedFunds, sourceOfFunds.adyenProcessedFunds) + && Objects.equals(this.description, sourceOfFunds.description) + && Objects.equals(this.type, sourceOfFunds.type); } @Override @@ -254,8 +274,12 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SourceOfFunds {\n"); - sb.append(" acquiringBusinessLineId: ").append(toIndentedString(acquiringBusinessLineId)).append("\n"); - sb.append(" adyenProcessedFunds: ").append(toIndentedString(adyenProcessedFunds)).append("\n"); + sb.append(" acquiringBusinessLineId: ") + .append(toIndentedString(acquiringBusinessLineId)) + .append("\n"); + sb.append(" adyenProcessedFunds: ") + .append(toIndentedString(adyenProcessedFunds)) + .append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -263,8 +287,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -273,7 +296,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SourceOfFunds given an JSON string * * @param jsonString JSON string @@ -283,11 +306,12 @@ private String toIndentedString(Object o) { public static SourceOfFunds fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SourceOfFunds.class); } -/** - * Convert an instance of SourceOfFunds to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SourceOfFunds to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/StockData.java b/src/main/java/com/adyen/model/legalentitymanagement/StockData.java index 70ac38837..8dc2aaf30 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/StockData.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/StockData.java @@ -2,37 +2,27 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * StockData - */ +/** StockData */ @JsonPropertyOrder({ StockData.JSON_PROPERTY_MARKET_IDENTIFIER, StockData.JSON_PROPERTY_STOCK_NUMBER, StockData.JSON_PROPERTY_TICKER_SYMBOL }) - public class StockData { public static final String JSON_PROPERTY_MARKET_IDENTIFIER = "marketIdentifier"; private String marketIdentifier; @@ -43,13 +33,15 @@ public class StockData { public static final String JSON_PROPERTY_TICKER_SYMBOL = "tickerSymbol"; private String tickerSymbol; - public StockData() { - } + public StockData() {} /** - * The four-digit [Market Identifier Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) of the stock market where the organization's stocks are traded. + * The four-digit [Market Identifier Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) + * of the stock market where the organization's stocks are traded. * - * @param marketIdentifier The four-digit [Market Identifier Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) of the stock market where the organization's stocks are traded. + * @param marketIdentifier The four-digit [Market Identifier + * Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) of the stock market where the + * organization's stocks are traded. * @return the current {@code StockData} instance, allowing for method chaining */ public StockData marketIdentifier(String marketIdentifier) { @@ -58,8 +50,12 @@ public StockData marketIdentifier(String marketIdentifier) { } /** - * The four-digit [Market Identifier Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) of the stock market where the organization's stocks are traded. - * @return marketIdentifier The four-digit [Market Identifier Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) of the stock market where the organization's stocks are traded. + * The four-digit [Market Identifier Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) + * of the stock market where the organization's stocks are traded. + * + * @return marketIdentifier The four-digit [Market Identifier + * Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) of the stock market where the + * organization's stocks are traded. */ @JsonProperty(JSON_PROPERTY_MARKET_IDENTIFIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,9 +64,12 @@ public String getMarketIdentifier() { } /** - * The four-digit [Market Identifier Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) of the stock market where the organization's stocks are traded. + * The four-digit [Market Identifier Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) + * of the stock market where the organization's stocks are traded. * - * @param marketIdentifier The four-digit [Market Identifier Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) of the stock market where the organization's stocks are traded. + * @param marketIdentifier The four-digit [Market Identifier + * Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) of the stock market where the + * organization's stocks are traded. */ @JsonProperty(JSON_PROPERTY_MARKET_IDENTIFIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,9 +78,11 @@ public void setMarketIdentifier(String marketIdentifier) { } /** - * The 12-digit International Securities Identification Number (ISIN) of the company, without dashes (-). + * The 12-digit International Securities Identification Number (ISIN) of the company, without + * dashes (-). * - * @param stockNumber The 12-digit International Securities Identification Number (ISIN) of the company, without dashes (-). + * @param stockNumber The 12-digit International Securities Identification Number (ISIN) of the + * company, without dashes (-). * @return the current {@code StockData} instance, allowing for method chaining */ public StockData stockNumber(String stockNumber) { @@ -90,8 +91,11 @@ public StockData stockNumber(String stockNumber) { } /** - * The 12-digit International Securities Identification Number (ISIN) of the company, without dashes (-). - * @return stockNumber The 12-digit International Securities Identification Number (ISIN) of the company, without dashes (-). + * The 12-digit International Securities Identification Number (ISIN) of the company, without + * dashes (-). + * + * @return stockNumber The 12-digit International Securities Identification Number (ISIN) of the + * company, without dashes (-). */ @JsonProperty(JSON_PROPERTY_STOCK_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,9 +104,11 @@ public String getStockNumber() { } /** - * The 12-digit International Securities Identification Number (ISIN) of the company, without dashes (-). + * The 12-digit International Securities Identification Number (ISIN) of the company, without + * dashes (-). * - * @param stockNumber The 12-digit International Securities Identification Number (ISIN) of the company, without dashes (-). + * @param stockNumber The 12-digit International Securities Identification Number (ISIN) of the + * company, without dashes (-). */ @JsonProperty(JSON_PROPERTY_STOCK_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,6 +129,7 @@ public StockData tickerSymbol(String tickerSymbol) { /** * The stock ticker symbol. + * * @return tickerSymbol The stock ticker symbol. */ @JsonProperty(JSON_PROPERTY_TICKER_SYMBOL) @@ -142,9 +149,7 @@ public void setTickerSymbol(String tickerSymbol) { this.tickerSymbol = tickerSymbol; } - /** - * Return true if this StockData object is equal to o. - */ + /** Return true if this StockData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +159,9 @@ public boolean equals(Object o) { return false; } StockData stockData = (StockData) o; - return Objects.equals(this.marketIdentifier, stockData.marketIdentifier) && - Objects.equals(this.stockNumber, stockData.stockNumber) && - Objects.equals(this.tickerSymbol, stockData.tickerSymbol); + return Objects.equals(this.marketIdentifier, stockData.marketIdentifier) + && Objects.equals(this.stockNumber, stockData.stockNumber) + && Objects.equals(this.tickerSymbol, stockData.tickerSymbol); } @Override @@ -176,8 +181,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +190,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of StockData given an JSON string * * @param jsonString JSON string @@ -196,11 +200,12 @@ private String toIndentedString(Object o) { public static StockData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StockData.class); } -/** - * Convert an instance of StockData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of StockData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/SupportingEntityCapability.java b/src/main/java/com/adyen/model/legalentitymanagement/SupportingEntityCapability.java index ce5e99bae..a3d1e87ab 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/SupportingEntityCapability.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/SupportingEntityCapability.java @@ -2,38 +2,29 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * SupportingEntityCapability - */ +/** SupportingEntityCapability */ @JsonPropertyOrder({ SupportingEntityCapability.JSON_PROPERTY_ALLOWED, SupportingEntityCapability.JSON_PROPERTY_ID, SupportingEntityCapability.JSON_PROPERTY_REQUESTED, SupportingEntityCapability.JSON_PROPERTY_VERIFICATION_STATUS }) - public class SupportingEntityCapability { public static final String JSON_PROPERTY_ALLOWED = "allowed"; private Boolean allowed; @@ -47,16 +38,14 @@ public class SupportingEntityCapability { public static final String JSON_PROPERTY_VERIFICATION_STATUS = "verificationStatus"; private String verificationStatus; - public SupportingEntityCapability() { - } + public SupportingEntityCapability() {} @JsonCreator public SupportingEntityCapability( - @JsonProperty(JSON_PROPERTY_ALLOWED) Boolean allowed, - @JsonProperty(JSON_PROPERTY_ID) String id, - @JsonProperty(JSON_PROPERTY_REQUESTED) Boolean requested, - @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) String verificationStatus - ) { + @JsonProperty(JSON_PROPERTY_ALLOWED) Boolean allowed, + @JsonProperty(JSON_PROPERTY_ID) String id, + @JsonProperty(JSON_PROPERTY_REQUESTED) Boolean requested, + @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) String verificationStatus) { this(); this.allowed = allowed; this.id = id; @@ -65,8 +54,16 @@ public SupportingEntityCapability( } /** - * Indicates whether the capability is allowed for the supporting entity. If a capability is allowed for a supporting entity but not for the parent legal entity, this means the legal entity has other supporting entities that failed verification. **You can use the allowed supporting entity** regardless of the verification status of other supporting entities. - * @return allowed Indicates whether the capability is allowed for the supporting entity. If a capability is allowed for a supporting entity but not for the parent legal entity, this means the legal entity has other supporting entities that failed verification. **You can use the allowed supporting entity** regardless of the verification status of other supporting entities. + * Indicates whether the capability is allowed for the supporting entity. If a capability is + * allowed for a supporting entity but not for the parent legal entity, this means the legal + * entity has other supporting entities that failed verification. **You can use the allowed + * supporting entity** regardless of the verification status of other supporting entities. + * + * @return allowed Indicates whether the capability is allowed for the supporting entity. If a + * capability is allowed for a supporting entity but not for the parent legal entity, this + * means the legal entity has other supporting entities that failed verification. **You can + * use the allowed supporting entity** regardless of the verification status of other + * supporting entities. */ @JsonProperty(JSON_PROPERTY_ALLOWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -74,10 +71,10 @@ public Boolean getAllowed() { return allowed; } - /** - * Supporting entity reference - * @return id Supporting entity reference + * Supporting entity reference + * + * @return id Supporting entity reference */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -85,10 +82,10 @@ public String getId() { return id; } - /** - * Indicates whether the supporting entity capability is requested. - * @return requested Indicates whether the supporting entity capability is requested. + * Indicates whether the supporting entity capability is requested. + * + * @return requested Indicates whether the supporting entity capability is requested. */ @JsonProperty(JSON_PROPERTY_REQUESTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,10 +93,18 @@ public Boolean getRequested() { return requested; } - /** - * The status of the verification checks for the capability of the supporting entity. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. - * @return verificationStatus The status of the verification checks for the capability of the supporting entity. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. + * The status of the verification checks for the capability of the supporting entity. Possible + * values: * **pending**: Adyen is running the verification. * **invalid**: The verification + * failed. Check if the `errors` array contains more information. * **valid**: The + * verification has been successfully completed. * **rejected**: Adyen has verified the + * information, but found reasons to not allow the capability. + * + * @return verificationStatus The status of the verification checks for the capability of the + * supporting entity. Possible values: * **pending**: Adyen is running the verification. * + * **invalid**: The verification failed. Check if the `errors` array contains more + * information. * **valid**: The verification has been successfully completed. * **rejected**: + * Adyen has verified the information, but found reasons to not allow the capability. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,10 +112,7 @@ public String getVerificationStatus() { return verificationStatus; } - - /** - * Return true if this SupportingEntityCapability object is equal to o. - */ + /** Return true if this SupportingEntityCapability object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -120,10 +122,10 @@ public boolean equals(Object o) { return false; } SupportingEntityCapability supportingEntityCapability = (SupportingEntityCapability) o; - return Objects.equals(this.allowed, supportingEntityCapability.allowed) && - Objects.equals(this.id, supportingEntityCapability.id) && - Objects.equals(this.requested, supportingEntityCapability.requested) && - Objects.equals(this.verificationStatus, supportingEntityCapability.verificationStatus); + return Objects.equals(this.allowed, supportingEntityCapability.allowed) + && Objects.equals(this.id, supportingEntityCapability.id) + && Objects.equals(this.requested, supportingEntityCapability.requested) + && Objects.equals(this.verificationStatus, supportingEntityCapability.verificationStatus); } @Override @@ -144,8 +146,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -154,21 +155,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SupportingEntityCapability given an JSON string * * @param jsonString JSON string * @return An instance of SupportingEntityCapability - * @throws JsonProcessingException if the JSON string is invalid with respect to SupportingEntityCapability + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SupportingEntityCapability */ - public static SupportingEntityCapability fromJson(String jsonString) throws JsonProcessingException { + public static SupportingEntityCapability fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SupportingEntityCapability.class); } -/** - * Convert an instance of SupportingEntityCapability to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SupportingEntityCapability to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/TaxInformation.java b/src/main/java/com/adyen/model/legalentitymanagement/TaxInformation.java index e11fff52c..af0838080 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/TaxInformation.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/TaxInformation.java @@ -2,37 +2,27 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TaxInformation - */ +/** TaxInformation */ @JsonPropertyOrder({ TaxInformation.JSON_PROPERTY_COUNTRY, TaxInformation.JSON_PROPERTY_NUMBER, TaxInformation.JSON_PROPERTY_TYPE }) - public class TaxInformation { public static final String JSON_PROPERTY_COUNTRY = "country"; private String country; @@ -43,13 +33,14 @@ public class TaxInformation { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public TaxInformation() { - } + public TaxInformation() {} /** - * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. + * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country + * code. * - * @param country The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. + * @param country The two-letter [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. * @return the current {@code TaxInformation} instance, allowing for method chaining */ public TaxInformation country(String country) { @@ -58,8 +49,11 @@ public TaxInformation country(String country) { } /** - * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. - * @return country The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. + * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country + * code. + * + * @return country The two-letter [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,9 +62,11 @@ public String getCountry() { } /** - * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. + * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country + * code. * - * @param country The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. + * @param country The two-letter [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -91,6 +87,7 @@ public TaxInformation number(String number) { /** * The tax ID number (TIN) of the organization or individual. + * * @return number The tax ID number (TIN) of the organization or individual. */ @JsonProperty(JSON_PROPERTY_NUMBER) @@ -111,9 +108,13 @@ public void setNumber(String number) { } /** - * The TIN type depending on the country where it was issued. Only provide if the country has multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, or **ITIN** for the US. + * The TIN type depending on the country where it was issued. Only provide if the country has + * multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, + * or **ITIN** for the US. * - * @param type The TIN type depending on the country where it was issued. Only provide if the country has multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, or **ITIN** for the US. + * @param type The TIN type depending on the country where it was issued. Only provide if the + * country has multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide + * **SSN**, **EIN**, or **ITIN** for the US. * @return the current {@code TaxInformation} instance, allowing for method chaining */ public TaxInformation type(String type) { @@ -122,8 +123,13 @@ public TaxInformation type(String type) { } /** - * The TIN type depending on the country where it was issued. Only provide if the country has multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, or **ITIN** for the US. - * @return type The TIN type depending on the country where it was issued. Only provide if the country has multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, or **ITIN** for the US. + * The TIN type depending on the country where it was issued. Only provide if the country has + * multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, + * or **ITIN** for the US. + * + * @return type The TIN type depending on the country where it was issued. Only provide if the + * country has multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide + * **SSN**, **EIN**, or **ITIN** for the US. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,9 +138,13 @@ public String getType() { } /** - * The TIN type depending on the country where it was issued. Only provide if the country has multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, or **ITIN** for the US. + * The TIN type depending on the country where it was issued. Only provide if the country has + * multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, + * or **ITIN** for the US. * - * @param type The TIN type depending on the country where it was issued. Only provide if the country has multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, or **ITIN** for the US. + * @param type The TIN type depending on the country where it was issued. Only provide if the + * country has multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide + * **SSN**, **EIN**, or **ITIN** for the US. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +152,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this TaxInformation object is equal to o. - */ + /** Return true if this TaxInformation object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +162,9 @@ public boolean equals(Object o) { return false; } TaxInformation taxInformation = (TaxInformation) o; - return Objects.equals(this.country, taxInformation.country) && - Objects.equals(this.number, taxInformation.number) && - Objects.equals(this.type, taxInformation.type); + return Objects.equals(this.country, taxInformation.country) + && Objects.equals(this.number, taxInformation.number) + && Objects.equals(this.type, taxInformation.type); } @Override @@ -176,8 +184,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +193,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TaxInformation given an JSON string * * @param jsonString JSON string @@ -196,11 +203,12 @@ private String toIndentedString(Object o) { public static TaxInformation fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TaxInformation.class); } -/** - * Convert an instance of TaxInformation to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TaxInformation to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/TaxReportingClassification.java b/src/main/java/com/adyen/model/legalentitymanagement/TaxReportingClassification.java index 4c489d3f1..b26a39dee 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/TaxReportingClassification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/TaxReportingClassification.java @@ -2,44 +2,39 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * TaxReportingClassification - */ +/** TaxReportingClassification */ @JsonPropertyOrder({ TaxReportingClassification.JSON_PROPERTY_BUSINESS_TYPE, TaxReportingClassification.JSON_PROPERTY_FINANCIAL_INSTITUTION_NUMBER, TaxReportingClassification.JSON_PROPERTY_MAIN_SOURCE_OF_INCOME, TaxReportingClassification.JSON_PROPERTY_TYPE }) - public class TaxReportingClassification { /** - * The organization's business type. Possible values: **other**, **listedPublicCompany**, **subsidiaryOfListedPublicCompany**, **governmentalOrganization**, **internationalOrganization**, **financialInstitution**. + * The organization's business type. Possible values: **other**, **listedPublicCompany**, + * **subsidiaryOfListedPublicCompany**, **governmentalOrganization**, + * **internationalOrganization**, **financialInstitution**. */ public enum BusinessTypeEnum { - OTHER(String.valueOf("other")), LISTEDPUBLICCOMPANY(String.valueOf("listedPublicCompany")), @@ -57,7 +52,7 @@ public enum BusinessTypeEnum { private String value; BusinessTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -78,7 +73,11 @@ public static BusinessTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("BusinessTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(BusinessTypeEnum.values())); + LOG.warning( + "BusinessTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(BusinessTypeEnum.values())); return null; } } @@ -86,14 +85,16 @@ public static BusinessTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_BUSINESS_TYPE = "businessType"; private BusinessTypeEnum businessType; - public static final String JSON_PROPERTY_FINANCIAL_INSTITUTION_NUMBER = "financialInstitutionNumber"; + public static final String JSON_PROPERTY_FINANCIAL_INSTITUTION_NUMBER = + "financialInstitutionNumber"; private String financialInstitutionNumber; /** - * The organization's main source of income. Only required if `businessType` is **other**. Possible values: **businessOperation**, **realEstateSales**, **investmentInterestOrRoyalty**, **propertyRental**, **other**. + * The organization's main source of income. Only required if `businessType` is + * **other**. Possible values: **businessOperation**, **realEstateSales**, + * **investmentInterestOrRoyalty**, **propertyRental**, **other**. */ public enum MainSourceOfIncomeEnum { - BUSINESSOPERATION(String.valueOf("businessOperation")), REALESTATESALES(String.valueOf("realEstateSales")), @@ -109,7 +110,7 @@ public enum MainSourceOfIncomeEnum { private String value; MainSourceOfIncomeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -130,7 +131,11 @@ public static MainSourceOfIncomeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("MainSourceOfIncomeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(MainSourceOfIncomeEnum.values())); + LOG.warning( + "MainSourceOfIncomeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(MainSourceOfIncomeEnum.values())); return null; } } @@ -139,10 +144,10 @@ public static MainSourceOfIncomeEnum fromValue(String value) { private MainSourceOfIncomeEnum mainSourceOfIncome; /** - * The tax reporting classification type. Possible values: **nonFinancialNonReportable**, **financialNonReportable**, **nonFinancialActive**, **nonFinancialPassive**. + * The tax reporting classification type. Possible values: **nonFinancialNonReportable**, + * **financialNonReportable**, **nonFinancialActive**, **nonFinancialPassive**. */ public enum TypeEnum { - NONFINANCIALNONREPORTABLE(String.valueOf("nonFinancialNonReportable")), FINANCIALNONREPORTABLE(String.valueOf("financialNonReportable")), @@ -156,7 +161,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -177,7 +182,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -185,13 +194,16 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public TaxReportingClassification() { - } + public TaxReportingClassification() {} /** - * The organization's business type. Possible values: **other**, **listedPublicCompany**, **subsidiaryOfListedPublicCompany**, **governmentalOrganization**, **internationalOrganization**, **financialInstitution**. + * The organization's business type. Possible values: **other**, **listedPublicCompany**, + * **subsidiaryOfListedPublicCompany**, **governmentalOrganization**, + * **internationalOrganization**, **financialInstitution**. * - * @param businessType The organization's business type. Possible values: **other**, **listedPublicCompany**, **subsidiaryOfListedPublicCompany**, **governmentalOrganization**, **internationalOrganization**, **financialInstitution**. + * @param businessType The organization's business type. Possible values: **other**, + * **listedPublicCompany**, **subsidiaryOfListedPublicCompany**, **governmentalOrganization**, + * **internationalOrganization**, **financialInstitution**. * @return the current {@code TaxReportingClassification} instance, allowing for method chaining */ public TaxReportingClassification businessType(BusinessTypeEnum businessType) { @@ -200,8 +212,13 @@ public TaxReportingClassification businessType(BusinessTypeEnum businessType) { } /** - * The organization's business type. Possible values: **other**, **listedPublicCompany**, **subsidiaryOfListedPublicCompany**, **governmentalOrganization**, **internationalOrganization**, **financialInstitution**. - * @return businessType The organization's business type. Possible values: **other**, **listedPublicCompany**, **subsidiaryOfListedPublicCompany**, **governmentalOrganization**, **internationalOrganization**, **financialInstitution**. + * The organization's business type. Possible values: **other**, **listedPublicCompany**, + * **subsidiaryOfListedPublicCompany**, **governmentalOrganization**, + * **internationalOrganization**, **financialInstitution**. + * + * @return businessType The organization's business type. Possible values: **other**, + * **listedPublicCompany**, **subsidiaryOfListedPublicCompany**, **governmentalOrganization**, + * **internationalOrganization**, **financialInstitution**. */ @JsonProperty(JSON_PROPERTY_BUSINESS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -210,9 +227,13 @@ public BusinessTypeEnum getBusinessType() { } /** - * The organization's business type. Possible values: **other**, **listedPublicCompany**, **subsidiaryOfListedPublicCompany**, **governmentalOrganization**, **internationalOrganization**, **financialInstitution**. + * The organization's business type. Possible values: **other**, **listedPublicCompany**, + * **subsidiaryOfListedPublicCompany**, **governmentalOrganization**, + * **internationalOrganization**, **financialInstitution**. * - * @param businessType The organization's business type. Possible values: **other**, **listedPublicCompany**, **subsidiaryOfListedPublicCompany**, **governmentalOrganization**, **internationalOrganization**, **financialInstitution**. + * @param businessType The organization's business type. Possible values: **other**, + * **listedPublicCompany**, **subsidiaryOfListedPublicCompany**, **governmentalOrganization**, + * **internationalOrganization**, **financialInstitution**. */ @JsonProperty(JSON_PROPERTY_BUSINESS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,9 +242,13 @@ public void setBusinessType(BusinessTypeEnum businessType) { } /** - * The Global Intermediary Identification Number (GIIN) required for FATCA. Only required if the organization is a US financial institution and the `businessType` is **financialInstitution**. + * The Global Intermediary Identification Number (GIIN) required for FATCA. Only required if the + * organization is a US financial institution and the `businessType` is + * **financialInstitution**. * - * @param financialInstitutionNumber The Global Intermediary Identification Number (GIIN) required for FATCA. Only required if the organization is a US financial institution and the `businessType` is **financialInstitution**. + * @param financialInstitutionNumber The Global Intermediary Identification Number (GIIN) required + * for FATCA. Only required if the organization is a US financial institution and the + * `businessType` is **financialInstitution**. * @return the current {@code TaxReportingClassification} instance, allowing for method chaining */ public TaxReportingClassification financialInstitutionNumber(String financialInstitutionNumber) { @@ -232,8 +257,13 @@ public TaxReportingClassification financialInstitutionNumber(String financialIns } /** - * The Global Intermediary Identification Number (GIIN) required for FATCA. Only required if the organization is a US financial institution and the `businessType` is **financialInstitution**. - * @return financialInstitutionNumber The Global Intermediary Identification Number (GIIN) required for FATCA. Only required if the organization is a US financial institution and the `businessType` is **financialInstitution**. + * The Global Intermediary Identification Number (GIIN) required for FATCA. Only required if the + * organization is a US financial institution and the `businessType` is + * **financialInstitution**. + * + * @return financialInstitutionNumber The Global Intermediary Identification Number (GIIN) + * required for FATCA. Only required if the organization is a US financial institution and the + * `businessType` is **financialInstitution**. */ @JsonProperty(JSON_PROPERTY_FINANCIAL_INSTITUTION_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,9 +272,13 @@ public String getFinancialInstitutionNumber() { } /** - * The Global Intermediary Identification Number (GIIN) required for FATCA. Only required if the organization is a US financial institution and the `businessType` is **financialInstitution**. + * The Global Intermediary Identification Number (GIIN) required for FATCA. Only required if the + * organization is a US financial institution and the `businessType` is + * **financialInstitution**. * - * @param financialInstitutionNumber The Global Intermediary Identification Number (GIIN) required for FATCA. Only required if the organization is a US financial institution and the `businessType` is **financialInstitution**. + * @param financialInstitutionNumber The Global Intermediary Identification Number (GIIN) required + * for FATCA. Only required if the organization is a US financial institution and the + * `businessType` is **financialInstitution**. */ @JsonProperty(JSON_PROPERTY_FINANCIAL_INSTITUTION_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -253,9 +287,13 @@ public void setFinancialInstitutionNumber(String financialInstitutionNumber) { } /** - * The organization's main source of income. Only required if `businessType` is **other**. Possible values: **businessOperation**, **realEstateSales**, **investmentInterestOrRoyalty**, **propertyRental**, **other**. + * The organization's main source of income. Only required if `businessType` is + * **other**. Possible values: **businessOperation**, **realEstateSales**, + * **investmentInterestOrRoyalty**, **propertyRental**, **other**. * - * @param mainSourceOfIncome The organization's main source of income. Only required if `businessType` is **other**. Possible values: **businessOperation**, **realEstateSales**, **investmentInterestOrRoyalty**, **propertyRental**, **other**. + * @param mainSourceOfIncome The organization's main source of income. Only required if + * `businessType` is **other**. Possible values: **businessOperation**, + * **realEstateSales**, **investmentInterestOrRoyalty**, **propertyRental**, **other**. * @return the current {@code TaxReportingClassification} instance, allowing for method chaining */ public TaxReportingClassification mainSourceOfIncome(MainSourceOfIncomeEnum mainSourceOfIncome) { @@ -264,8 +302,13 @@ public TaxReportingClassification mainSourceOfIncome(MainSourceOfIncomeEnum main } /** - * The organization's main source of income. Only required if `businessType` is **other**. Possible values: **businessOperation**, **realEstateSales**, **investmentInterestOrRoyalty**, **propertyRental**, **other**. - * @return mainSourceOfIncome The organization's main source of income. Only required if `businessType` is **other**. Possible values: **businessOperation**, **realEstateSales**, **investmentInterestOrRoyalty**, **propertyRental**, **other**. + * The organization's main source of income. Only required if `businessType` is + * **other**. Possible values: **businessOperation**, **realEstateSales**, + * **investmentInterestOrRoyalty**, **propertyRental**, **other**. + * + * @return mainSourceOfIncome The organization's main source of income. Only required if + * `businessType` is **other**. Possible values: **businessOperation**, + * **realEstateSales**, **investmentInterestOrRoyalty**, **propertyRental**, **other**. */ @JsonProperty(JSON_PROPERTY_MAIN_SOURCE_OF_INCOME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -274,9 +317,13 @@ public MainSourceOfIncomeEnum getMainSourceOfIncome() { } /** - * The organization's main source of income. Only required if `businessType` is **other**. Possible values: **businessOperation**, **realEstateSales**, **investmentInterestOrRoyalty**, **propertyRental**, **other**. + * The organization's main source of income. Only required if `businessType` is + * **other**. Possible values: **businessOperation**, **realEstateSales**, + * **investmentInterestOrRoyalty**, **propertyRental**, **other**. * - * @param mainSourceOfIncome The organization's main source of income. Only required if `businessType` is **other**. Possible values: **businessOperation**, **realEstateSales**, **investmentInterestOrRoyalty**, **propertyRental**, **other**. + * @param mainSourceOfIncome The organization's main source of income. Only required if + * `businessType` is **other**. Possible values: **businessOperation**, + * **realEstateSales**, **investmentInterestOrRoyalty**, **propertyRental**, **other**. */ @JsonProperty(JSON_PROPERTY_MAIN_SOURCE_OF_INCOME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -285,9 +332,12 @@ public void setMainSourceOfIncome(MainSourceOfIncomeEnum mainSourceOfIncome) { } /** - * The tax reporting classification type. Possible values: **nonFinancialNonReportable**, **financialNonReportable**, **nonFinancialActive**, **nonFinancialPassive**. + * The tax reporting classification type. Possible values: **nonFinancialNonReportable**, + * **financialNonReportable**, **nonFinancialActive**, **nonFinancialPassive**. * - * @param type The tax reporting classification type. Possible values: **nonFinancialNonReportable**, **financialNonReportable**, **nonFinancialActive**, **nonFinancialPassive**. + * @param type The tax reporting classification type. Possible values: + * **nonFinancialNonReportable**, **financialNonReportable**, **nonFinancialActive**, + * **nonFinancialPassive**. * @return the current {@code TaxReportingClassification} instance, allowing for method chaining */ public TaxReportingClassification type(TypeEnum type) { @@ -296,8 +346,12 @@ public TaxReportingClassification type(TypeEnum type) { } /** - * The tax reporting classification type. Possible values: **nonFinancialNonReportable**, **financialNonReportable**, **nonFinancialActive**, **nonFinancialPassive**. - * @return type The tax reporting classification type. Possible values: **nonFinancialNonReportable**, **financialNonReportable**, **nonFinancialActive**, **nonFinancialPassive**. + * The tax reporting classification type. Possible values: **nonFinancialNonReportable**, + * **financialNonReportable**, **nonFinancialActive**, **nonFinancialPassive**. + * + * @return type The tax reporting classification type. Possible values: + * **nonFinancialNonReportable**, **financialNonReportable**, **nonFinancialActive**, + * **nonFinancialPassive**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -306,9 +360,12 @@ public TypeEnum getType() { } /** - * The tax reporting classification type. Possible values: **nonFinancialNonReportable**, **financialNonReportable**, **nonFinancialActive**, **nonFinancialPassive**. + * The tax reporting classification type. Possible values: **nonFinancialNonReportable**, + * **financialNonReportable**, **nonFinancialActive**, **nonFinancialPassive**. * - * @param type The tax reporting classification type. Possible values: **nonFinancialNonReportable**, **financialNonReportable**, **nonFinancialActive**, **nonFinancialPassive**. + * @param type The tax reporting classification type. Possible values: + * **nonFinancialNonReportable**, **financialNonReportable**, **nonFinancialActive**, + * **nonFinancialPassive**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -316,9 +373,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this TaxReportingClassification object is equal to o. - */ + /** Return true if this TaxReportingClassification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -328,10 +383,11 @@ public boolean equals(Object o) { return false; } TaxReportingClassification taxReportingClassification = (TaxReportingClassification) o; - return Objects.equals(this.businessType, taxReportingClassification.businessType) && - Objects.equals(this.financialInstitutionNumber, taxReportingClassification.financialInstitutionNumber) && - Objects.equals(this.mainSourceOfIncome, taxReportingClassification.mainSourceOfIncome) && - Objects.equals(this.type, taxReportingClassification.type); + return Objects.equals(this.businessType, taxReportingClassification.businessType) + && Objects.equals( + this.financialInstitutionNumber, taxReportingClassification.financialInstitutionNumber) + && Objects.equals(this.mainSourceOfIncome, taxReportingClassification.mainSourceOfIncome) + && Objects.equals(this.type, taxReportingClassification.type); } @Override @@ -344,7 +400,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TaxReportingClassification {\n"); sb.append(" businessType: ").append(toIndentedString(businessType)).append("\n"); - sb.append(" financialInstitutionNumber: ").append(toIndentedString(financialInstitutionNumber)).append("\n"); + sb.append(" financialInstitutionNumber: ") + .append(toIndentedString(financialInstitutionNumber)) + .append("\n"); sb.append(" mainSourceOfIncome: ").append(toIndentedString(mainSourceOfIncome)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -352,8 +410,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -362,21 +419,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TaxReportingClassification given an JSON string * * @param jsonString JSON string * @return An instance of TaxReportingClassification - * @throws JsonProcessingException if the JSON string is invalid with respect to TaxReportingClassification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TaxReportingClassification */ - public static TaxReportingClassification fromJson(String jsonString) throws JsonProcessingException { + public static TaxReportingClassification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TaxReportingClassification.class); } -/** - * Convert an instance of TaxReportingClassification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TaxReportingClassification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/TermsOfServiceAcceptanceInfo.java b/src/main/java/com/adyen/model/legalentitymanagement/TermsOfServiceAcceptanceInfo.java index 949a832fa..efa7ab76e 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/TermsOfServiceAcceptanceInfo.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/TermsOfServiceAcceptanceInfo.java @@ -2,32 +2,27 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * TermsOfServiceAcceptanceInfo - */ +/** TermsOfServiceAcceptanceInfo */ @JsonPropertyOrder({ TermsOfServiceAcceptanceInfo.JSON_PROPERTY_ACCEPTED_BY, TermsOfServiceAcceptanceInfo.JSON_PROPERTY_ACCEPTED_FOR, @@ -36,7 +31,6 @@ TermsOfServiceAcceptanceInfo.JSON_PROPERTY_TYPE, TermsOfServiceAcceptanceInfo.JSON_PROPERTY_VALID_TO }) - public class TermsOfServiceAcceptanceInfo { public static final String JSON_PROPERTY_ACCEPTED_BY = "acceptedBy"; private String acceptedBy; @@ -51,10 +45,11 @@ public class TermsOfServiceAcceptanceInfo { private String id; /** - * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** + * * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * + * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** */ public enum TypeEnum { - ADYENACCOUNT(String.valueOf("adyenAccount")), ADYENCAPITAL(String.valueOf("adyenCapital")), @@ -80,7 +75,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -101,7 +96,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -112,8 +111,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VALID_TO = "validTo"; private OffsetDateTime validTo; - public TermsOfServiceAcceptanceInfo() { - } + public TermsOfServiceAcceptanceInfo() {} /** * The unique identifier of the user that accepted the Terms of Service. @@ -128,6 +126,7 @@ public TermsOfServiceAcceptanceInfo acceptedBy(String acceptedBy) { /** * The unique identifier of the user that accepted the Terms of Service. + * * @return acceptedBy The unique identifier of the user that accepted the Terms of Service. */ @JsonProperty(JSON_PROPERTY_ACCEPTED_BY) @@ -150,7 +149,8 @@ public void setAcceptedBy(String acceptedBy) { /** * The unique identifier of the legal entity for which the Terms of Service are accepted. * - * @param acceptedFor The unique identifier of the legal entity for which the Terms of Service are accepted. + * @param acceptedFor The unique identifier of the legal entity for which the Terms of Service are + * accepted. * @return the current {@code TermsOfServiceAcceptanceInfo} instance, allowing for method chaining */ public TermsOfServiceAcceptanceInfo acceptedFor(String acceptedFor) { @@ -160,7 +160,9 @@ public TermsOfServiceAcceptanceInfo acceptedFor(String acceptedFor) { /** * The unique identifier of the legal entity for which the Terms of Service are accepted. - * @return acceptedFor The unique identifier of the legal entity for which the Terms of Service are accepted. + * + * @return acceptedFor The unique identifier of the legal entity for which the Terms of Service + * are accepted. */ @JsonProperty(JSON_PROPERTY_ACCEPTED_FOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -171,7 +173,8 @@ public String getAcceptedFor() { /** * The unique identifier of the legal entity for which the Terms of Service are accepted. * - * @param acceptedFor The unique identifier of the legal entity for which the Terms of Service are accepted. + * @param acceptedFor The unique identifier of the legal entity for which the Terms of Service are + * accepted. */ @JsonProperty(JSON_PROPERTY_ACCEPTED_FOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -180,9 +183,11 @@ public void setAcceptedFor(String acceptedFor) { } /** - * The date when the Terms of Service were accepted, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00. + * The date when the Terms of Service were accepted, in ISO 8601 extended format. For example, + * 2022-12-18T10:15:30+01:00. * - * @param createdAt The date when the Terms of Service were accepted, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00. + * @param createdAt The date when the Terms of Service were accepted, in ISO 8601 extended format. + * For example, 2022-12-18T10:15:30+01:00. * @return the current {@code TermsOfServiceAcceptanceInfo} instance, allowing for method chaining */ public TermsOfServiceAcceptanceInfo createdAt(OffsetDateTime createdAt) { @@ -191,8 +196,11 @@ public TermsOfServiceAcceptanceInfo createdAt(OffsetDateTime createdAt) { } /** - * The date when the Terms of Service were accepted, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00. - * @return createdAt The date when the Terms of Service were accepted, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00. + * The date when the Terms of Service were accepted, in ISO 8601 extended format. For example, + * 2022-12-18T10:15:30+01:00. + * + * @return createdAt The date when the Terms of Service were accepted, in ISO 8601 extended + * format. For example, 2022-12-18T10:15:30+01:00. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -201,9 +209,11 @@ public OffsetDateTime getCreatedAt() { } /** - * The date when the Terms of Service were accepted, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00. + * The date when the Terms of Service were accepted, in ISO 8601 extended format. For example, + * 2022-12-18T10:15:30+01:00. * - * @param createdAt The date when the Terms of Service were accepted, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00. + * @param createdAt The date when the Terms of Service were accepted, in ISO 8601 extended format. + * For example, 2022-12-18T10:15:30+01:00. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,6 +234,7 @@ public TermsOfServiceAcceptanceInfo id(String id) { /** * An Adyen-generated reference for the accepted Terms of Service. + * * @return id An Adyen-generated reference for the accepted Terms of Service. */ @JsonProperty(JSON_PROPERTY_ID) @@ -244,9 +255,13 @@ public void setId(String id) { } /** - * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** + * * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * + * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** * - * @param type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * @param type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * + * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * + * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** * @return the current {@code TermsOfServiceAcceptanceInfo} instance, allowing for method chaining */ public TermsOfServiceAcceptanceInfo type(TypeEnum type) { @@ -255,8 +270,13 @@ public TermsOfServiceAcceptanceInfo type(TypeEnum type) { } /** - * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** - * @return type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** + * * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * + * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * + * @return type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * + * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * + * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -265,9 +285,13 @@ public TypeEnum getType() { } /** - * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** + * * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * + * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** * - * @param type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** + * @param type The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * + * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * + * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -276,9 +300,11 @@ public void setType(TypeEnum type) { } /** - * The expiration date for the Terms of Service acceptance, in ISO 8601 extended format. For example, 2022-12-18T00:00:00+01:00. + * The expiration date for the Terms of Service acceptance, in ISO 8601 extended format. For + * example, 2022-12-18T00:00:00+01:00. * - * @param validTo The expiration date for the Terms of Service acceptance, in ISO 8601 extended format. For example, 2022-12-18T00:00:00+01:00. + * @param validTo The expiration date for the Terms of Service acceptance, in ISO 8601 extended + * format. For example, 2022-12-18T00:00:00+01:00. * @return the current {@code TermsOfServiceAcceptanceInfo} instance, allowing for method chaining */ public TermsOfServiceAcceptanceInfo validTo(OffsetDateTime validTo) { @@ -287,8 +313,11 @@ public TermsOfServiceAcceptanceInfo validTo(OffsetDateTime validTo) { } /** - * The expiration date for the Terms of Service acceptance, in ISO 8601 extended format. For example, 2022-12-18T00:00:00+01:00. - * @return validTo The expiration date for the Terms of Service acceptance, in ISO 8601 extended format. For example, 2022-12-18T00:00:00+01:00. + * The expiration date for the Terms of Service acceptance, in ISO 8601 extended format. For + * example, 2022-12-18T00:00:00+01:00. + * + * @return validTo The expiration date for the Terms of Service acceptance, in ISO 8601 extended + * format. For example, 2022-12-18T00:00:00+01:00. */ @JsonProperty(JSON_PROPERTY_VALID_TO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -297,9 +326,11 @@ public OffsetDateTime getValidTo() { } /** - * The expiration date for the Terms of Service acceptance, in ISO 8601 extended format. For example, 2022-12-18T00:00:00+01:00. + * The expiration date for the Terms of Service acceptance, in ISO 8601 extended format. For + * example, 2022-12-18T00:00:00+01:00. * - * @param validTo The expiration date for the Terms of Service acceptance, in ISO 8601 extended format. For example, 2022-12-18T00:00:00+01:00. + * @param validTo The expiration date for the Terms of Service acceptance, in ISO 8601 extended + * format. For example, 2022-12-18T00:00:00+01:00. */ @JsonProperty(JSON_PROPERTY_VALID_TO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -307,9 +338,7 @@ public void setValidTo(OffsetDateTime validTo) { this.validTo = validTo; } - /** - * Return true if this TermsOfServiceAcceptanceInfo object is equal to o. - */ + /** Return true if this TermsOfServiceAcceptanceInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -319,12 +348,12 @@ public boolean equals(Object o) { return false; } TermsOfServiceAcceptanceInfo termsOfServiceAcceptanceInfo = (TermsOfServiceAcceptanceInfo) o; - return Objects.equals(this.acceptedBy, termsOfServiceAcceptanceInfo.acceptedBy) && - Objects.equals(this.acceptedFor, termsOfServiceAcceptanceInfo.acceptedFor) && - Objects.equals(this.createdAt, termsOfServiceAcceptanceInfo.createdAt) && - Objects.equals(this.id, termsOfServiceAcceptanceInfo.id) && - Objects.equals(this.type, termsOfServiceAcceptanceInfo.type) && - Objects.equals(this.validTo, termsOfServiceAcceptanceInfo.validTo); + return Objects.equals(this.acceptedBy, termsOfServiceAcceptanceInfo.acceptedBy) + && Objects.equals(this.acceptedFor, termsOfServiceAcceptanceInfo.acceptedFor) + && Objects.equals(this.createdAt, termsOfServiceAcceptanceInfo.createdAt) + && Objects.equals(this.id, termsOfServiceAcceptanceInfo.id) + && Objects.equals(this.type, termsOfServiceAcceptanceInfo.type) + && Objects.equals(this.validTo, termsOfServiceAcceptanceInfo.validTo); } @Override @@ -347,8 +376,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -357,21 +385,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TermsOfServiceAcceptanceInfo given an JSON string * * @param jsonString JSON string * @return An instance of TermsOfServiceAcceptanceInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to TermsOfServiceAcceptanceInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TermsOfServiceAcceptanceInfo */ - public static TermsOfServiceAcceptanceInfo fromJson(String jsonString) throws JsonProcessingException { + public static TermsOfServiceAcceptanceInfo fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TermsOfServiceAcceptanceInfo.class); } -/** - * Convert an instance of TermsOfServiceAcceptanceInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TermsOfServiceAcceptanceInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrument.java b/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrument.java index 2202d8185..f6def62aa 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrument.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrument.java @@ -2,39 +2,30 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.legalentitymanagement.BankAccountInfo; -import com.adyen.model.legalentitymanagement.CapabilityProblem; -import com.adyen.model.legalentitymanagement.DocumentReference; -import com.adyen.model.legalentitymanagement.SupportingEntityCapability; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * TransferInstrument - */ +/** TransferInstrument */ @JsonPropertyOrder({ TransferInstrument.JSON_PROPERTY_BANK_ACCOUNT, TransferInstrument.JSON_PROPERTY_CAPABILITIES, @@ -44,7 +35,6 @@ TransferInstrument.JSON_PROPERTY_PROBLEMS, TransferInstrument.JSON_PROPERTY_TYPE }) - public class TransferInstrument { public static final String JSON_PROPERTY_BANK_ACCOUNT = "bankAccount"; private BankAccountInfo bankAccount; @@ -64,11 +54,8 @@ public class TransferInstrument { public static final String JSON_PROPERTY_PROBLEMS = "problems"; private List problems; - /** - * The type of transfer instrument. Possible value: **bankAccount**. - */ + /** The type of transfer instrument. Possible value: **bankAccount**. */ public enum TypeEnum { - BANKACCOUNT(String.valueOf("bankAccount")), RECURRINGDETAIL(String.valueOf("recurringDetail")); @@ -78,7 +65,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -99,7 +86,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -107,13 +98,10 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public TransferInstrument() { - } + public TransferInstrument() {} @JsonCreator - public TransferInstrument( - @JsonProperty(JSON_PROPERTY_ID) String id - ) { + public TransferInstrument(@JsonProperty(JSON_PROPERTY_ID) String id) { this(); this.id = id; } @@ -121,7 +109,7 @@ public TransferInstrument( /** * bankAccount * - * @param bankAccount + * @param bankAccount * @return the current {@code TransferInstrument} instance, allowing for method chaining */ public TransferInstrument bankAccount(BankAccountInfo bankAccount) { @@ -131,7 +119,8 @@ public TransferInstrument bankAccount(BankAccountInfo bankAccount) { /** * Get bankAccount - * @return bankAccount + * + * @return bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,7 +131,7 @@ public BankAccountInfo getBankAccount() { /** * bankAccount * - * @param bankAccount + * @param bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,7 +150,8 @@ public TransferInstrument capabilities(Map c return this; } - public TransferInstrument putCapabilitiesItem(String key, SupportingEntityCapability capabilitiesItem) { + public TransferInstrument putCapabilitiesItem( + String key, SupportingEntityCapability capabilitiesItem) { if (this.capabilities == null) { this.capabilities = new HashMap<>(); } @@ -171,6 +161,7 @@ public TransferInstrument putCapabilitiesItem(String key, SupportingEntityCapabi /** * List of capabilities for this transfer instrument. + * * @return capabilities List of capabilities for this transfer instrument. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @@ -211,6 +202,7 @@ public TransferInstrument addDocumentDetailsItem(DocumentReference documentDetai /** * List of documents uploaded for the transfer instrument. + * * @return documentDetails List of documents uploaded for the transfer instrument. */ @JsonProperty(JSON_PROPERTY_DOCUMENT_DETAILS) @@ -232,6 +224,7 @@ public void setDocumentDetails(List documentDetails) { /** * The unique identifier of the transfer instrument. + * * @return id The unique identifier of the transfer instrument. */ @JsonProperty(JSON_PROPERTY_ID) @@ -240,11 +233,14 @@ public String getId() { return id; } - /** - * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) that owns the transfer instrument. + * The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) + * that owns the transfer instrument. * - * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) that owns the transfer instrument. + * @param legalEntityId The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) + * that owns the transfer instrument. * @return the current {@code TransferInstrument} instance, allowing for method chaining */ public TransferInstrument legalEntityId(String legalEntityId) { @@ -253,8 +249,13 @@ public TransferInstrument legalEntityId(String legalEntityId) { } /** - * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) that owns the transfer instrument. - * @return legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) that owns the transfer instrument. + * The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) + * that owns the transfer instrument. + * + * @return legalEntityId The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) + * that owns the transfer instrument. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -263,9 +264,13 @@ public String getLegalEntityId() { } /** - * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) that owns the transfer instrument. + * The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) + * that owns the transfer instrument. * - * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) that owns the transfer instrument. + * @param legalEntityId The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) + * that owns the transfer instrument. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -294,6 +299,7 @@ public TransferInstrument addProblemsItem(CapabilityProblem problemsItem) { /** * The verification errors related to capabilities for this transfer instrument. + * * @return problems The verification errors related to capabilities for this transfer instrument. */ @JsonProperty(JSON_PROPERTY_PROBLEMS) @@ -314,9 +320,9 @@ public void setProblems(List problems) { } /** - * The type of transfer instrument. Possible value: **bankAccount**. + * The type of transfer instrument. Possible value: **bankAccount**. * - * @param type The type of transfer instrument. Possible value: **bankAccount**. + * @param type The type of transfer instrument. Possible value: **bankAccount**. * @return the current {@code TransferInstrument} instance, allowing for method chaining */ public TransferInstrument type(TypeEnum type) { @@ -325,8 +331,9 @@ public TransferInstrument type(TypeEnum type) { } /** - * The type of transfer instrument. Possible value: **bankAccount**. - * @return type The type of transfer instrument. Possible value: **bankAccount**. + * The type of transfer instrument. Possible value: **bankAccount**. + * + * @return type The type of transfer instrument. Possible value: **bankAccount**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -335,9 +342,9 @@ public TypeEnum getType() { } /** - * The type of transfer instrument. Possible value: **bankAccount**. + * The type of transfer instrument. Possible value: **bankAccount**. * - * @param type The type of transfer instrument. Possible value: **bankAccount**. + * @param type The type of transfer instrument. Possible value: **bankAccount**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -345,9 +352,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this TransferInstrument object is equal to o. - */ + /** Return true if this TransferInstrument object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -357,18 +362,19 @@ public boolean equals(Object o) { return false; } TransferInstrument transferInstrument = (TransferInstrument) o; - return Objects.equals(this.bankAccount, transferInstrument.bankAccount) && - Objects.equals(this.capabilities, transferInstrument.capabilities) && - Objects.equals(this.documentDetails, transferInstrument.documentDetails) && - Objects.equals(this.id, transferInstrument.id) && - Objects.equals(this.legalEntityId, transferInstrument.legalEntityId) && - Objects.equals(this.problems, transferInstrument.problems) && - Objects.equals(this.type, transferInstrument.type); + return Objects.equals(this.bankAccount, transferInstrument.bankAccount) + && Objects.equals(this.capabilities, transferInstrument.capabilities) + && Objects.equals(this.documentDetails, transferInstrument.documentDetails) + && Objects.equals(this.id, transferInstrument.id) + && Objects.equals(this.legalEntityId, transferInstrument.legalEntityId) + && Objects.equals(this.problems, transferInstrument.problems) + && Objects.equals(this.type, transferInstrument.type); } @Override public int hashCode() { - return Objects.hash(bankAccount, capabilities, documentDetails, id, legalEntityId, problems, type); + return Objects.hash( + bankAccount, capabilities, documentDetails, id, legalEntityId, problems, type); } @Override @@ -387,8 +393,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -397,21 +402,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransferInstrument given an JSON string * * @param jsonString JSON string * @return An instance of TransferInstrument - * @throws JsonProcessingException if the JSON string is invalid with respect to TransferInstrument + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TransferInstrument */ public static TransferInstrument fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferInstrument.class); } -/** - * Convert an instance of TransferInstrument to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransferInstrument to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrumentInfo.java b/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrumentInfo.java index 732bd9100..9462f5064 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrumentInfo.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrumentInfo.java @@ -2,38 +2,31 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.legalentitymanagement.BankAccountInfo; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * TransferInstrumentInfo - */ +/** TransferInstrumentInfo */ @JsonPropertyOrder({ TransferInstrumentInfo.JSON_PROPERTY_BANK_ACCOUNT, TransferInstrumentInfo.JSON_PROPERTY_LEGAL_ENTITY_ID, TransferInstrumentInfo.JSON_PROPERTY_TYPE }) - public class TransferInstrumentInfo { public static final String JSON_PROPERTY_BANK_ACCOUNT = "bankAccount"; private BankAccountInfo bankAccount; @@ -41,11 +34,8 @@ public class TransferInstrumentInfo { public static final String JSON_PROPERTY_LEGAL_ENTITY_ID = "legalEntityId"; private String legalEntityId; - /** - * The type of transfer instrument. Possible value: **bankAccount**. - */ + /** The type of transfer instrument. Possible value: **bankAccount**. */ public enum TypeEnum { - BANKACCOUNT(String.valueOf("bankAccount")), RECURRINGDETAIL(String.valueOf("recurringDetail")); @@ -55,7 +45,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -76,7 +66,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -84,13 +78,12 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public TransferInstrumentInfo() { - } + public TransferInstrumentInfo() {} /** * bankAccount * - * @param bankAccount + * @param bankAccount * @return the current {@code TransferInstrumentInfo} instance, allowing for method chaining */ public TransferInstrumentInfo bankAccount(BankAccountInfo bankAccount) { @@ -100,7 +93,8 @@ public TransferInstrumentInfo bankAccount(BankAccountInfo bankAccount) { /** * Get bankAccount - * @return bankAccount + * + * @return bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,7 +105,7 @@ public BankAccountInfo getBankAccount() { /** * bankAccount * - * @param bankAccount + * @param bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -120,9 +114,13 @@ public void setBankAccount(BankAccountInfo bankAccount) { } /** - * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) that owns the transfer instrument. + * The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) + * that owns the transfer instrument. * - * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) that owns the transfer instrument. + * @param legalEntityId The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) + * that owns the transfer instrument. * @return the current {@code TransferInstrumentInfo} instance, allowing for method chaining */ public TransferInstrumentInfo legalEntityId(String legalEntityId) { @@ -131,8 +129,13 @@ public TransferInstrumentInfo legalEntityId(String legalEntityId) { } /** - * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) that owns the transfer instrument. - * @return legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) that owns the transfer instrument. + * The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) + * that owns the transfer instrument. + * + * @return legalEntityId The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) + * that owns the transfer instrument. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -141,9 +144,13 @@ public String getLegalEntityId() { } /** - * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) that owns the transfer instrument. + * The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) + * that owns the transfer instrument. * - * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) that owns the transfer instrument. + * @param legalEntityId The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) + * that owns the transfer instrument. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,9 +159,9 @@ public void setLegalEntityId(String legalEntityId) { } /** - * The type of transfer instrument. Possible value: **bankAccount**. + * The type of transfer instrument. Possible value: **bankAccount**. * - * @param type The type of transfer instrument. Possible value: **bankAccount**. + * @param type The type of transfer instrument. Possible value: **bankAccount**. * @return the current {@code TransferInstrumentInfo} instance, allowing for method chaining */ public TransferInstrumentInfo type(TypeEnum type) { @@ -163,8 +170,9 @@ public TransferInstrumentInfo type(TypeEnum type) { } /** - * The type of transfer instrument. Possible value: **bankAccount**. - * @return type The type of transfer instrument. Possible value: **bankAccount**. + * The type of transfer instrument. Possible value: **bankAccount**. + * + * @return type The type of transfer instrument. Possible value: **bankAccount**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,9 +181,9 @@ public TypeEnum getType() { } /** - * The type of transfer instrument. Possible value: **bankAccount**. + * The type of transfer instrument. Possible value: **bankAccount**. * - * @param type The type of transfer instrument. Possible value: **bankAccount**. + * @param type The type of transfer instrument. Possible value: **bankAccount**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,9 +191,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this TransferInstrumentInfo object is equal to o. - */ + /** Return true if this TransferInstrumentInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -195,9 +201,9 @@ public boolean equals(Object o) { return false; } TransferInstrumentInfo transferInstrumentInfo = (TransferInstrumentInfo) o; - return Objects.equals(this.bankAccount, transferInstrumentInfo.bankAccount) && - Objects.equals(this.legalEntityId, transferInstrumentInfo.legalEntityId) && - Objects.equals(this.type, transferInstrumentInfo.type); + return Objects.equals(this.bankAccount, transferInstrumentInfo.bankAccount) + && Objects.equals(this.legalEntityId, transferInstrumentInfo.legalEntityId) + && Objects.equals(this.type, transferInstrumentInfo.type); } @Override @@ -217,8 +223,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -227,21 +232,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransferInstrumentInfo given an JSON string * * @param jsonString JSON string * @return An instance of TransferInstrumentInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to TransferInstrumentInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TransferInstrumentInfo */ public static TransferInstrumentInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferInstrumentInfo.class); } -/** - * Convert an instance of TransferInstrumentInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransferInstrumentInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrumentReference.java b/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrumentReference.java index 1abc2e55b..38e64c543 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrumentReference.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrumentReference.java @@ -2,38 +2,29 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TransferInstrumentReference - */ +/** TransferInstrumentReference */ @JsonPropertyOrder({ TransferInstrumentReference.JSON_PROPERTY_ACCOUNT_IDENTIFIER, TransferInstrumentReference.JSON_PROPERTY_ID, TransferInstrumentReference.JSON_PROPERTY_REAL_LAST_FOUR, TransferInstrumentReference.JSON_PROPERTY_TRUSTED_SOURCE }) - public class TransferInstrumentReference { public static final String JSON_PROPERTY_ACCOUNT_IDENTIFIER = "accountIdentifier"; private String accountIdentifier; @@ -47,13 +38,11 @@ public class TransferInstrumentReference { public static final String JSON_PROPERTY_TRUSTED_SOURCE = "trustedSource"; private Boolean trustedSource; - public TransferInstrumentReference() { - } + public TransferInstrumentReference() {} @JsonCreator public TransferInstrumentReference( - @JsonProperty(JSON_PROPERTY_TRUSTED_SOURCE) Boolean trustedSource - ) { + @JsonProperty(JSON_PROPERTY_TRUSTED_SOURCE) Boolean trustedSource) { this(); this.trustedSource = trustedSource; } @@ -71,6 +60,7 @@ public TransferInstrumentReference accountIdentifier(String accountIdentifier) { /** * The masked IBAN or bank account number. + * * @return accountIdentifier The masked IBAN or bank account number. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_IDENTIFIER) @@ -103,6 +93,7 @@ public TransferInstrumentReference id(String id) { /** * The unique identifier of the resource. + * * @return id The unique identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -123,9 +114,17 @@ public void setId(String id) { } /** - * Four last digits of the bank account number. If the transfer instrument is created using [instant bank account verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding), and it is a virtual bank account, these digits may be different from the last four digits of the masked account number. + * Four last digits of the bank account number. If the transfer instrument is created using + * [instant bank account + * verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding), + * and it is a virtual bank account, these digits may be different from the last four digits of + * the masked account number. * - * @param realLastFour Four last digits of the bank account number. If the transfer instrument is created using [instant bank account verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding), and it is a virtual bank account, these digits may be different from the last four digits of the masked account number. + * @param realLastFour Four last digits of the bank account number. If the transfer instrument is + * created using [instant bank account + * verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding), + * and it is a virtual bank account, these digits may be different from the last four digits + * of the masked account number. * @return the current {@code TransferInstrumentReference} instance, allowing for method chaining */ public TransferInstrumentReference realLastFour(String realLastFour) { @@ -134,8 +133,17 @@ public TransferInstrumentReference realLastFour(String realLastFour) { } /** - * Four last digits of the bank account number. If the transfer instrument is created using [instant bank account verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding), and it is a virtual bank account, these digits may be different from the last four digits of the masked account number. - * @return realLastFour Four last digits of the bank account number. If the transfer instrument is created using [instant bank account verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding), and it is a virtual bank account, these digits may be different from the last four digits of the masked account number. + * Four last digits of the bank account number. If the transfer instrument is created using + * [instant bank account + * verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding), + * and it is a virtual bank account, these digits may be different from the last four digits of + * the masked account number. + * + * @return realLastFour Four last digits of the bank account number. If the transfer instrument is + * created using [instant bank account + * verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding), + * and it is a virtual bank account, these digits may be different from the last four digits + * of the masked account number. */ @JsonProperty(JSON_PROPERTY_REAL_LAST_FOUR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,9 +152,17 @@ public String getRealLastFour() { } /** - * Four last digits of the bank account number. If the transfer instrument is created using [instant bank account verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding), and it is a virtual bank account, these digits may be different from the last four digits of the masked account number. + * Four last digits of the bank account number. If the transfer instrument is created using + * [instant bank account + * verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding), + * and it is a virtual bank account, these digits may be different from the last four digits of + * the masked account number. * - * @param realLastFour Four last digits of the bank account number. If the transfer instrument is created using [instant bank account verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding), and it is a virtual bank account, these digits may be different from the last four digits of the masked account number. + * @param realLastFour Four last digits of the bank account number. If the transfer instrument is + * created using [instant bank account + * verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding), + * and it is a virtual bank account, these digits may be different from the last four digits + * of the masked account number. */ @JsonProperty(JSON_PROPERTY_REAL_LAST_FOUR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -155,8 +171,11 @@ public void setRealLastFour(String realLastFour) { } /** - * Identifies if the bank account was created through [instant bank verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding). - * @return trustedSource Identifies if the bank account was created through [instant bank verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding). + * Identifies if the bank account was created through [instant bank + * verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding). + * + * @return trustedSource Identifies if the bank account was created through [instant bank + * verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding). */ @JsonProperty(JSON_PROPERTY_TRUSTED_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -164,10 +183,7 @@ public Boolean getTrustedSource() { return trustedSource; } - - /** - * Return true if this TransferInstrumentReference object is equal to o. - */ + /** Return true if this TransferInstrumentReference object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -177,10 +193,10 @@ public boolean equals(Object o) { return false; } TransferInstrumentReference transferInstrumentReference = (TransferInstrumentReference) o; - return Objects.equals(this.accountIdentifier, transferInstrumentReference.accountIdentifier) && - Objects.equals(this.id, transferInstrumentReference.id) && - Objects.equals(this.realLastFour, transferInstrumentReference.realLastFour) && - Objects.equals(this.trustedSource, transferInstrumentReference.trustedSource); + return Objects.equals(this.accountIdentifier, transferInstrumentReference.accountIdentifier) + && Objects.equals(this.id, transferInstrumentReference.id) + && Objects.equals(this.realLastFour, transferInstrumentReference.realLastFour) + && Objects.equals(this.trustedSource, transferInstrumentReference.trustedSource); } @Override @@ -201,8 +217,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -211,21 +226,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransferInstrumentReference given an JSON string * * @param jsonString JSON string * @return An instance of TransferInstrumentReference - * @throws JsonProcessingException if the JSON string is invalid with respect to TransferInstrumentReference + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TransferInstrumentReference */ - public static TransferInstrumentReference fromJson(String jsonString) throws JsonProcessingException { + public static TransferInstrumentReference fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferInstrumentReference.class); } -/** - * Convert an instance of TransferInstrumentReference to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransferInstrumentReference to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/Trust.java b/src/main/java/com/adyen/model/legalentitymanagement/Trust.java index c577fd640..32dd259f6 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/Trust.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/Trust.java @@ -2,36 +2,28 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.legalentitymanagement.Address; -import com.adyen.model.legalentitymanagement.TaxInformation; -import com.adyen.model.legalentitymanagement.UndefinedBeneficiary; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * Trust - */ +/** Trust */ @JsonPropertyOrder({ Trust.JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW, Trust.JSON_PROPERTY_DATE_OF_INCORPORATION, @@ -47,7 +39,6 @@ Trust.JSON_PROPERTY_VAT_ABSENCE_REASON, Trust.JSON_PROPERTY_VAT_NUMBER }) - public class Trust { public static final String JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW = "countryOfGoverningLaw"; private String countryOfGoverningLaw; @@ -77,10 +68,12 @@ public class Trust { private List taxInformation; /** - * Type of trust. See possible values for trusts in [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) and [New Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand). + * Type of trust. See possible values for trusts in + * [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) + * and [New + * Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand). */ public enum TypeEnum { - BUSINESSTRUST(String.valueOf("businessTrust")), CASHMANAGEMENTTRUST(String.valueOf("cashManagementTrust")), @@ -124,7 +117,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -145,7 +138,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -157,10 +154,10 @@ public static TypeEnum fromValue(String value) { private List undefinedBeneficiaryInfo; /** - * The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + * The reason for not providing a VAT number. Possible values: **industryExemption**, + * **belowTaxThreshold**. */ public enum VatAbsenceReasonEnum { - INDUSTRYEXEMPTION(String.valueOf("industryExemption")), BELOWTAXTHRESHOLD(String.valueOf("belowTaxThreshold")); @@ -170,7 +167,7 @@ public enum VatAbsenceReasonEnum { private String value; VatAbsenceReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -191,7 +188,11 @@ public static VatAbsenceReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("VatAbsenceReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(VatAbsenceReasonEnum.values())); + LOG.warning( + "VatAbsenceReasonEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(VatAbsenceReasonEnum.values())); return null; } } @@ -202,13 +203,15 @@ public static VatAbsenceReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_VAT_NUMBER = "vatNumber"; private String vatNumber; - public Trust() { - } + public Trust() {} /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code of the governing country. * - * @param countryOfGoverningLaw The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. + * @param countryOfGoverningLaw The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing + * country. * @return the current {@code Trust} instance, allowing for method chaining */ public Trust countryOfGoverningLaw(String countryOfGoverningLaw) { @@ -217,8 +220,12 @@ public Trust countryOfGoverningLaw(String countryOfGoverningLaw) { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. - * @return countryOfGoverningLaw The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code of the governing country. + * + * @return countryOfGoverningLaw The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing + * country. */ @JsonProperty(JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -227,9 +234,12 @@ public String getCountryOfGoverningLaw() { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code of the governing country. * - * @param countryOfGoverningLaw The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. + * @param countryOfGoverningLaw The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing + * country. */ @JsonProperty(JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,7 +250,8 @@ public void setCountryOfGoverningLaw(String countryOfGoverningLaw) { /** * The date when the legal arrangement was incorporated in YYYY-MM-DD format. * - * @param dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD format. + * @param dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD + * format. * @return the current {@code Trust} instance, allowing for method chaining */ public Trust dateOfIncorporation(String dateOfIncorporation) { @@ -250,7 +261,9 @@ public Trust dateOfIncorporation(String dateOfIncorporation) { /** * The date when the legal arrangement was incorporated in YYYY-MM-DD format. - * @return dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD format. + * + * @return dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD + * format. */ @JsonProperty(JSON_PROPERTY_DATE_OF_INCORPORATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -261,7 +274,8 @@ public String getDateOfIncorporation() { /** * The date when the legal arrangement was incorporated in YYYY-MM-DD format. * - * @param dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD format. + * @param dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD + * format. */ @JsonProperty(JSON_PROPERTY_DATE_OF_INCORPORATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -272,7 +286,8 @@ public void setDateOfIncorporation(String dateOfIncorporation) { /** * A short description about the trust. Only applicable for charitable trusts in New Zealand. * - * @param description A short description about the trust. Only applicable for charitable trusts in New Zealand. + * @param description A short description about the trust. Only applicable for charitable trusts + * in New Zealand. * @return the current {@code Trust} instance, allowing for method chaining */ public Trust description(String description) { @@ -282,7 +297,9 @@ public Trust description(String description) { /** * A short description about the trust. Only applicable for charitable trusts in New Zealand. - * @return description A short description about the trust. Only applicable for charitable trusts in New Zealand. + * + * @return description A short description about the trust. Only applicable for charitable trusts + * in New Zealand. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -293,7 +310,8 @@ public String getDescription() { /** * A short description about the trust. Only applicable for charitable trusts in New Zealand. * - * @param description A short description about the trust. Only applicable for charitable trusts in New Zealand. + * @param description A short description about the trust. Only applicable for charitable trusts + * in New Zealand. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -314,6 +332,7 @@ public Trust doingBusinessAs(String doingBusinessAs) { /** * The registered name, if different from the `name`. + * * @return doingBusinessAs The registered name, if different from the `name`. */ @JsonProperty(JSON_PROPERTY_DOING_BUSINESS_AS) @@ -346,6 +365,7 @@ public Trust name(String name) { /** * The legal name. + * * @return name The legal name. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -368,7 +388,7 @@ public void setName(String name) { /** * principalPlaceOfBusiness * - * @param principalPlaceOfBusiness + * @param principalPlaceOfBusiness * @return the current {@code Trust} instance, allowing for method chaining */ public Trust principalPlaceOfBusiness(Address principalPlaceOfBusiness) { @@ -378,7 +398,8 @@ public Trust principalPlaceOfBusiness(Address principalPlaceOfBusiness) { /** * Get principalPlaceOfBusiness - * @return principalPlaceOfBusiness + * + * @return principalPlaceOfBusiness */ @JsonProperty(JSON_PROPERTY_PRINCIPAL_PLACE_OF_BUSINESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -389,7 +410,7 @@ public Address getPrincipalPlaceOfBusiness() { /** * principalPlaceOfBusiness * - * @param principalPlaceOfBusiness + * @param principalPlaceOfBusiness */ @JsonProperty(JSON_PROPERTY_PRINCIPAL_PLACE_OF_BUSINESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -400,7 +421,7 @@ public void setPrincipalPlaceOfBusiness(Address principalPlaceOfBusiness) { /** * registeredAddress * - * @param registeredAddress + * @param registeredAddress * @return the current {@code Trust} instance, allowing for method chaining */ public Trust registeredAddress(Address registeredAddress) { @@ -410,7 +431,8 @@ public Trust registeredAddress(Address registeredAddress) { /** * Get registeredAddress - * @return registeredAddress + * + * @return registeredAddress */ @JsonProperty(JSON_PROPERTY_REGISTERED_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -421,7 +443,7 @@ public Address getRegisteredAddress() { /** * registeredAddress * - * @param registeredAddress + * @param registeredAddress */ @JsonProperty(JSON_PROPERTY_REGISTERED_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -442,6 +464,7 @@ public Trust registrationNumber(String registrationNumber) { /** * The registration number. + * * @return registrationNumber The registration number. */ @JsonProperty(JSON_PROPERTY_REGISTRATION_NUMBER) @@ -482,6 +505,7 @@ public Trust addTaxInformationItem(TaxInformation taxInformationItem) { /** * The tax information of the entity. + * * @return taxInformation The tax information of the entity. */ @JsonProperty(JSON_PROPERTY_TAX_INFORMATION) @@ -502,9 +526,15 @@ public void setTaxInformation(List taxInformation) { } /** - * Type of trust. See possible values for trusts in [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) and [New Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand). + * Type of trust. See possible values for trusts in + * [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) + * and [New + * Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand). * - * @param type Type of trust. See possible values for trusts in [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) and [New Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand). + * @param type Type of trust. See possible values for trusts in + * [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) + * and [New + * Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand). * @return the current {@code Trust} instance, allowing for method chaining */ public Trust type(TypeEnum type) { @@ -513,8 +543,15 @@ public Trust type(TypeEnum type) { } /** - * Type of trust. See possible values for trusts in [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) and [New Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand). - * @return type Type of trust. See possible values for trusts in [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) and [New Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand). + * Type of trust. See possible values for trusts in + * [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) + * and [New + * Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand). + * + * @return type Type of trust. See possible values for trusts in + * [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) + * and [New + * Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand). */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -523,9 +560,15 @@ public TypeEnum getType() { } /** - * Type of trust. See possible values for trusts in [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) and [New Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand). + * Type of trust. See possible values for trusts in + * [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) + * and [New + * Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand). * - * @param type Type of trust. See possible values for trusts in [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) and [New Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand). + * @param type Type of trust. See possible values for trusts in + * [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) + * and [New + * Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand). */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -554,6 +597,7 @@ public Trust addUndefinedBeneficiaryInfoItem(UndefinedBeneficiary undefinedBenef /** * The undefined beneficiary information of the entity. + * * @return undefinedBeneficiaryInfo The undefined beneficiary information of the entity. */ @JsonProperty(JSON_PROPERTY_UNDEFINED_BENEFICIARY_INFO) @@ -574,9 +618,11 @@ public void setUndefinedBeneficiaryInfo(List undefinedBene } /** - * The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + * The reason for not providing a VAT number. Possible values: **industryExemption**, + * **belowTaxThreshold**. * - * @param vatAbsenceReason The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + * @param vatAbsenceReason The reason for not providing a VAT number. Possible values: + * **industryExemption**, **belowTaxThreshold**. * @return the current {@code Trust} instance, allowing for method chaining */ public Trust vatAbsenceReason(VatAbsenceReasonEnum vatAbsenceReason) { @@ -585,8 +631,11 @@ public Trust vatAbsenceReason(VatAbsenceReasonEnum vatAbsenceReason) { } /** - * The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. - * @return vatAbsenceReason The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + * The reason for not providing a VAT number. Possible values: **industryExemption**, + * **belowTaxThreshold**. + * + * @return vatAbsenceReason The reason for not providing a VAT number. Possible values: + * **industryExemption**, **belowTaxThreshold**. */ @JsonProperty(JSON_PROPERTY_VAT_ABSENCE_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -595,9 +644,11 @@ public VatAbsenceReasonEnum getVatAbsenceReason() { } /** - * The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + * The reason for not providing a VAT number. Possible values: **industryExemption**, + * **belowTaxThreshold**. * - * @param vatAbsenceReason The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + * @param vatAbsenceReason The reason for not providing a VAT number. Possible values: + * **industryExemption**, **belowTaxThreshold**. */ @JsonProperty(JSON_PROPERTY_VAT_ABSENCE_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -618,6 +669,7 @@ public Trust vatNumber(String vatNumber) { /** * The VAT number. + * * @return vatNumber The VAT number. */ @JsonProperty(JSON_PROPERTY_VAT_NUMBER) @@ -637,9 +689,7 @@ public void setVatNumber(String vatNumber) { this.vatNumber = vatNumber; } - /** - * Return true if this Trust object is equal to o. - */ + /** Return true if this Trust object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -649,41 +699,62 @@ public boolean equals(Object o) { return false; } Trust trust = (Trust) o; - return Objects.equals(this.countryOfGoverningLaw, trust.countryOfGoverningLaw) && - Objects.equals(this.dateOfIncorporation, trust.dateOfIncorporation) && - Objects.equals(this.description, trust.description) && - Objects.equals(this.doingBusinessAs, trust.doingBusinessAs) && - Objects.equals(this.name, trust.name) && - Objects.equals(this.principalPlaceOfBusiness, trust.principalPlaceOfBusiness) && - Objects.equals(this.registeredAddress, trust.registeredAddress) && - Objects.equals(this.registrationNumber, trust.registrationNumber) && - Objects.equals(this.taxInformation, trust.taxInformation) && - Objects.equals(this.type, trust.type) && - Objects.equals(this.undefinedBeneficiaryInfo, trust.undefinedBeneficiaryInfo) && - Objects.equals(this.vatAbsenceReason, trust.vatAbsenceReason) && - Objects.equals(this.vatNumber, trust.vatNumber); + return Objects.equals(this.countryOfGoverningLaw, trust.countryOfGoverningLaw) + && Objects.equals(this.dateOfIncorporation, trust.dateOfIncorporation) + && Objects.equals(this.description, trust.description) + && Objects.equals(this.doingBusinessAs, trust.doingBusinessAs) + && Objects.equals(this.name, trust.name) + && Objects.equals(this.principalPlaceOfBusiness, trust.principalPlaceOfBusiness) + && Objects.equals(this.registeredAddress, trust.registeredAddress) + && Objects.equals(this.registrationNumber, trust.registrationNumber) + && Objects.equals(this.taxInformation, trust.taxInformation) + && Objects.equals(this.type, trust.type) + && Objects.equals(this.undefinedBeneficiaryInfo, trust.undefinedBeneficiaryInfo) + && Objects.equals(this.vatAbsenceReason, trust.vatAbsenceReason) + && Objects.equals(this.vatNumber, trust.vatNumber); } @Override public int hashCode() { - return Objects.hash(countryOfGoverningLaw, dateOfIncorporation, description, doingBusinessAs, name, principalPlaceOfBusiness, registeredAddress, registrationNumber, taxInformation, type, undefinedBeneficiaryInfo, vatAbsenceReason, vatNumber); + return Objects.hash( + countryOfGoverningLaw, + dateOfIncorporation, + description, + doingBusinessAs, + name, + principalPlaceOfBusiness, + registeredAddress, + registrationNumber, + taxInformation, + type, + undefinedBeneficiaryInfo, + vatAbsenceReason, + vatNumber); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Trust {\n"); - sb.append(" countryOfGoverningLaw: ").append(toIndentedString(countryOfGoverningLaw)).append("\n"); - sb.append(" dateOfIncorporation: ").append(toIndentedString(dateOfIncorporation)).append("\n"); + sb.append(" countryOfGoverningLaw: ") + .append(toIndentedString(countryOfGoverningLaw)) + .append("\n"); + sb.append(" dateOfIncorporation: ") + .append(toIndentedString(dateOfIncorporation)) + .append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" doingBusinessAs: ").append(toIndentedString(doingBusinessAs)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" principalPlaceOfBusiness: ").append(toIndentedString(principalPlaceOfBusiness)).append("\n"); + sb.append(" principalPlaceOfBusiness: ") + .append(toIndentedString(principalPlaceOfBusiness)) + .append("\n"); sb.append(" registeredAddress: ").append(toIndentedString(registeredAddress)).append("\n"); sb.append(" registrationNumber: ").append(toIndentedString(registrationNumber)).append("\n"); sb.append(" taxInformation: ").append(toIndentedString(taxInformation)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" undefinedBeneficiaryInfo: ").append(toIndentedString(undefinedBeneficiaryInfo)).append("\n"); + sb.append(" undefinedBeneficiaryInfo: ") + .append(toIndentedString(undefinedBeneficiaryInfo)) + .append("\n"); sb.append(" vatAbsenceReason: ").append(toIndentedString(vatAbsenceReason)).append("\n"); sb.append(" vatNumber: ").append(toIndentedString(vatNumber)).append("\n"); sb.append("}"); @@ -691,8 +762,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -701,7 +771,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Trust given an JSON string * * @param jsonString JSON string @@ -711,11 +781,12 @@ private String toIndentedString(Object o) { public static Trust fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Trust.class); } -/** - * Convert an instance of Trust to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Trust to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/UKLocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/UKLocalAccountIdentification.java index 80015a950..e0da46fa0 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/UKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/UKLocalAccountIdentification.java @@ -2,37 +2,31 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * UKLocalAccountIdentification - */ +/** UKLocalAccountIdentification */ @JsonPropertyOrder({ UKLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, UKLocalAccountIdentification.JSON_PROPERTY_SORT_CODE, UKLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class UKLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -40,11 +34,8 @@ public class UKLocalAccountIdentification { public static final String JSON_PROPERTY_SORT_CODE = "sortCode"; private String sortCode; - /** - * **ukLocal** - */ + /** **ukLocal** */ public enum TypeEnum { - UKLOCAL(String.valueOf("ukLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +43,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +64,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,8 +76,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public UKLocalAccountIdentification() { - } + public UKLocalAccountIdentification() {} /** * The 8-digit bank account number, without separators or whitespace. @@ -97,6 +91,7 @@ public UKLocalAccountIdentification accountNumber(String accountNumber) { /** * The 8-digit bank account number, without separators or whitespace. + * * @return accountNumber The 8-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -117,9 +112,11 @@ public void setAccountNumber(String accountNumber) { } /** - * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. + * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or + * whitespace. * - * @param sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. + * @param sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without + * separators or whitespace. * @return the current {@code UKLocalAccountIdentification} instance, allowing for method chaining */ public UKLocalAccountIdentification sortCode(String sortCode) { @@ -128,8 +125,11 @@ public UKLocalAccountIdentification sortCode(String sortCode) { } /** - * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. - * @return sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. + * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or + * whitespace. + * + * @return sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without + * separators or whitespace. */ @JsonProperty(JSON_PROPERTY_SORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,9 +138,11 @@ public String getSortCode() { } /** - * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. + * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or + * whitespace. * - * @param sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. + * @param sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without + * separators or whitespace. */ @JsonProperty(JSON_PROPERTY_SORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,6 +163,7 @@ public UKLocalAccountIdentification type(TypeEnum type) { /** * **ukLocal** + * * @return type **ukLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +183,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this UKLocalAccountIdentification object is equal to o. - */ + /** Return true if this UKLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +193,9 @@ public boolean equals(Object o) { return false; } UKLocalAccountIdentification ukLocalAccountIdentification = (UKLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, ukLocalAccountIdentification.accountNumber) && - Objects.equals(this.sortCode, ukLocalAccountIdentification.sortCode) && - Objects.equals(this.type, ukLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, ukLocalAccountIdentification.accountNumber) + && Objects.equals(this.sortCode, ukLocalAccountIdentification.sortCode) + && Objects.equals(this.type, ukLocalAccountIdentification.type); } @Override @@ -214,8 +215,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +224,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of UKLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of UKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to UKLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * UKLocalAccountIdentification */ - public static UKLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static UKLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UKLocalAccountIdentification.class); } -/** - * Convert an instance of UKLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of UKLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/USLocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/USLocalAccountIdentification.java index 28a57113a..5fb130f5a 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/USLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/USLocalAccountIdentification.java @@ -2,47 +2,40 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * USLocalAccountIdentification - */ +/** USLocalAccountIdentification */ @JsonPropertyOrder({ USLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, USLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_TYPE, USLocalAccountIdentification.JSON_PROPERTY_ROUTING_NUMBER, USLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class USLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ public enum AccountTypeEnum { - CHECKING(String.valueOf("checking")), SAVINGS(String.valueOf("savings")); @@ -52,7 +45,7 @@ public enum AccountTypeEnum { private String value; AccountTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +66,11 @@ public static AccountTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AccountTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AccountTypeEnum.values())); + LOG.warning( + "AccountTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AccountTypeEnum.values())); return null; } } @@ -84,11 +81,8 @@ public static AccountTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_ROUTING_NUMBER = "routingNumber"; private String routingNumber; - /** - * **usLocal** - */ + /** **usLocal** */ public enum TypeEnum { - USLOCAL(String.valueOf("usLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -96,7 +90,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -117,7 +111,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -125,8 +123,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public USLocalAccountIdentification() { - } + public USLocalAccountIdentification() {} /** * The bank account number, without separators or whitespace. @@ -141,6 +138,7 @@ public USLocalAccountIdentification accountNumber(String accountNumber) { /** * The bank account number, without separators or whitespace. + * * @return accountNumber The bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -161,9 +159,10 @@ public void setAccountNumber(String accountNumber) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. + * Defaults to **checking**. * @return the current {@code USLocalAccountIdentification} instance, allowing for method chaining */ public USLocalAccountIdentification accountType(AccountTypeEnum accountType) { @@ -172,8 +171,10 @@ public USLocalAccountIdentification accountType(AccountTypeEnum accountType) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. - * @return accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * + * @return accountType The bank account type. Possible values: **checking** or **savings**. + * Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,9 +183,10 @@ public AccountTypeEnum getAccountType() { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. + * Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,9 +195,12 @@ public void setAccountType(AccountTypeEnum accountType) { } /** - * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without + * separators or whitespace. * - * @param routingNumber The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * @param routingNumber The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * whitespace. * @return the current {@code USLocalAccountIdentification} instance, allowing for method chaining */ public USLocalAccountIdentification routingNumber(String routingNumber) { @@ -204,8 +209,12 @@ public USLocalAccountIdentification routingNumber(String routingNumber) { } /** - * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. - * @return routingNumber The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without + * separators or whitespace. + * + * @return routingNumber The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * whitespace. */ @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,9 +223,12 @@ public String getRoutingNumber() { } /** - * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without + * separators or whitespace. * - * @param routingNumber The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * @param routingNumber The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * whitespace. */ @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,6 +249,7 @@ public USLocalAccountIdentification type(TypeEnum type) { /** * **usLocal** + * * @return type **usLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -256,9 +269,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this USLocalAccountIdentification object is equal to o. - */ + /** Return true if this USLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -268,10 +279,10 @@ public boolean equals(Object o) { return false; } USLocalAccountIdentification usLocalAccountIdentification = (USLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, usLocalAccountIdentification.accountNumber) && - Objects.equals(this.accountType, usLocalAccountIdentification.accountType) && - Objects.equals(this.routingNumber, usLocalAccountIdentification.routingNumber) && - Objects.equals(this.type, usLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, usLocalAccountIdentification.accountNumber) + && Objects.equals(this.accountType, usLocalAccountIdentification.accountType) + && Objects.equals(this.routingNumber, usLocalAccountIdentification.routingNumber) + && Objects.equals(this.type, usLocalAccountIdentification.type); } @Override @@ -292,8 +303,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -302,21 +312,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of USLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of USLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to USLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * USLocalAccountIdentification */ - public static USLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static USLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, USLocalAccountIdentification.class); } -/** - * Convert an instance of USLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of USLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/UndefinedBeneficiary.java b/src/main/java/com/adyen/model/legalentitymanagement/UndefinedBeneficiary.java index bf2640183..e72f5fed2 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/UndefinedBeneficiary.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/UndefinedBeneficiary.java @@ -2,36 +2,27 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * UndefinedBeneficiary - */ +/** UndefinedBeneficiary */ @JsonPropertyOrder({ UndefinedBeneficiary.JSON_PROPERTY_DESCRIPTION, UndefinedBeneficiary.JSON_PROPERTY_REFERENCE }) - public class UndefinedBeneficiary { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -39,13 +30,10 @@ public class UndefinedBeneficiary { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public UndefinedBeneficiary() { - } + public UndefinedBeneficiary() {} @JsonCreator - public UndefinedBeneficiary( - @JsonProperty(JSON_PROPERTY_REFERENCE) String reference - ) { + public UndefinedBeneficiary(@JsonProperty(JSON_PROPERTY_REFERENCE) String reference) { this(); this.reference = reference; } @@ -63,6 +51,7 @@ public UndefinedBeneficiary description(String description) { /** * The details of the undefined beneficiary. + * * @return description The details of the undefined beneficiary. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -84,6 +73,7 @@ public void setDescription(String description) { /** * The reference of the undefined beneficiary. + * * @return reference The reference of the undefined beneficiary. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -92,10 +82,7 @@ public String getReference() { return reference; } - - /** - * Return true if this UndefinedBeneficiary object is equal to o. - */ + /** Return true if this UndefinedBeneficiary object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -105,8 +92,8 @@ public boolean equals(Object o) { return false; } UndefinedBeneficiary undefinedBeneficiary = (UndefinedBeneficiary) o; - return Objects.equals(this.description, undefinedBeneficiary.description) && - Objects.equals(this.reference, undefinedBeneficiary.reference); + return Objects.equals(this.description, undefinedBeneficiary.description) + && Objects.equals(this.reference, undefinedBeneficiary.reference); } @Override @@ -125,8 +112,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -135,21 +121,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of UndefinedBeneficiary given an JSON string * * @param jsonString JSON string * @return An instance of UndefinedBeneficiary - * @throws JsonProcessingException if the JSON string is invalid with respect to UndefinedBeneficiary + * @throws JsonProcessingException if the JSON string is invalid with respect to + * UndefinedBeneficiary */ public static UndefinedBeneficiary fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UndefinedBeneficiary.class); } -/** - * Convert an instance of UndefinedBeneficiary to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of UndefinedBeneficiary to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/UnincorporatedPartnership.java b/src/main/java/com/adyen/model/legalentitymanagement/UnincorporatedPartnership.java index b62f28e81..6526408db 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/UnincorporatedPartnership.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/UnincorporatedPartnership.java @@ -2,35 +2,28 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.legalentitymanagement.Address; -import com.adyen.model.legalentitymanagement.TaxInformation; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * UnincorporatedPartnership - */ +/** UnincorporatedPartnership */ @JsonPropertyOrder({ UnincorporatedPartnership.JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW, UnincorporatedPartnership.JSON_PROPERTY_DATE_OF_INCORPORATION, @@ -45,7 +38,6 @@ UnincorporatedPartnership.JSON_PROPERTY_VAT_ABSENCE_REASON, UnincorporatedPartnership.JSON_PROPERTY_VAT_NUMBER }) - public class UnincorporatedPartnership { public static final String JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW = "countryOfGoverningLaw"; private String countryOfGoverningLaw; @@ -75,10 +67,15 @@ public class UnincorporatedPartnership { private List taxInformation; /** - * Type of Partnership. Possible values: * **limitedPartnership** * **generalPartnership** * **familyPartnership** * **commercialPartnership** * **publicPartnership** * **otherPartnership** * **gbr** * **gmbh** * **kgaa** * **cv** * **vof** * **maatschap** * **privateFundLimitedPartnership** * **businessTrustEntity** * **businessPartnership** * **limitedLiabilityPartnership** * **eg** * **cooperative** * **vos** * **comunidadDeBienes** * **herenciaYacente** * **comunidadDePropietarios** * **sep** * **sca** * **bt** * **kkt** * **scs** * **snc** + * Type of Partnership. Possible values: * **limitedPartnership** * **generalPartnership** * + * **familyPartnership** * **commercialPartnership** * **publicPartnership** * + * **otherPartnership** * **gbr** * **gmbh** * **kgaa** * **cv** * **vof** * **maatschap** * + * **privateFundLimitedPartnership** * **businessTrustEntity** * **businessPartnership** * + * **limitedLiabilityPartnership** * **eg** * **cooperative** * **vos** * **comunidadDeBienes** * + * **herenciaYacente** * **comunidadDePropietarios** * **sep** * **sca** * **bt** * **kkt** * + * **scs** * **snc** */ public enum TypeEnum { - LIMITEDPARTNERSHIP(String.valueOf("limitedPartnership")), GENERALPARTNERSHIP(String.valueOf("generalPartnership")), @@ -140,7 +137,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -161,7 +158,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -170,10 +171,10 @@ public static TypeEnum fromValue(String value) { private TypeEnum type; /** - * The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + * The reason for not providing a VAT number. Possible values: **industryExemption**, + * **belowTaxThreshold**. */ public enum VatAbsenceReasonEnum { - INDUSTRYEXEMPTION(String.valueOf("industryExemption")), BELOWTAXTHRESHOLD(String.valueOf("belowTaxThreshold")); @@ -183,7 +184,7 @@ public enum VatAbsenceReasonEnum { private String value; VatAbsenceReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -204,7 +205,11 @@ public static VatAbsenceReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("VatAbsenceReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(VatAbsenceReasonEnum.values())); + LOG.warning( + "VatAbsenceReasonEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(VatAbsenceReasonEnum.values())); return null; } } @@ -215,21 +220,21 @@ public static VatAbsenceReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_VAT_NUMBER = "vatNumber"; private String vatNumber; - public UnincorporatedPartnership() { - } + public UnincorporatedPartnership() {} @JsonCreator - public UnincorporatedPartnership( - @JsonProperty(JSON_PROPERTY_TYPE) TypeEnum type - ) { + public UnincorporatedPartnership(@JsonProperty(JSON_PROPERTY_TYPE) TypeEnum type) { this(); this.type = type; } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code of the governing country. * - * @param countryOfGoverningLaw The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. + * @param countryOfGoverningLaw The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing + * country. * @return the current {@code UnincorporatedPartnership} instance, allowing for method chaining */ public UnincorporatedPartnership countryOfGoverningLaw(String countryOfGoverningLaw) { @@ -238,8 +243,12 @@ public UnincorporatedPartnership countryOfGoverningLaw(String countryOfGoverning } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. - * @return countryOfGoverningLaw The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code of the governing country. + * + * @return countryOfGoverningLaw The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing + * country. */ @JsonProperty(JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -248,9 +257,12 @@ public String getCountryOfGoverningLaw() { } /** - * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code of the governing country. * - * @param countryOfGoverningLaw The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. + * @param countryOfGoverningLaw The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing + * country. */ @JsonProperty(JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -261,7 +273,8 @@ public void setCountryOfGoverningLaw(String countryOfGoverningLaw) { /** * The date when the legal arrangement was incorporated in YYYY-MM-DD format. * - * @param dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD format. + * @param dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD + * format. * @return the current {@code UnincorporatedPartnership} instance, allowing for method chaining */ public UnincorporatedPartnership dateOfIncorporation(String dateOfIncorporation) { @@ -271,7 +284,9 @@ public UnincorporatedPartnership dateOfIncorporation(String dateOfIncorporation) /** * The date when the legal arrangement was incorporated in YYYY-MM-DD format. - * @return dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD format. + * + * @return dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD + * format. */ @JsonProperty(JSON_PROPERTY_DATE_OF_INCORPORATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -282,7 +297,8 @@ public String getDateOfIncorporation() { /** * The date when the legal arrangement was incorporated in YYYY-MM-DD format. * - * @param dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD format. + * @param dateOfIncorporation The date when the legal arrangement was incorporated in YYYY-MM-DD + * format. */ @JsonProperty(JSON_PROPERTY_DATE_OF_INCORPORATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -303,6 +319,7 @@ public UnincorporatedPartnership description(String description) { /** * Short description about the Legal Arrangement. + * * @return description Short description about the Legal Arrangement. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -335,6 +352,7 @@ public UnincorporatedPartnership doingBusinessAs(String doingBusinessAs) { /** * The registered name, if different from the `name`. + * * @return doingBusinessAs The registered name, if different from the `name`. */ @JsonProperty(JSON_PROPERTY_DOING_BUSINESS_AS) @@ -367,6 +385,7 @@ public UnincorporatedPartnership name(String name) { /** * The legal name. + * * @return name The legal name. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -389,7 +408,7 @@ public void setName(String name) { /** * principalPlaceOfBusiness * - * @param principalPlaceOfBusiness + * @param principalPlaceOfBusiness * @return the current {@code UnincorporatedPartnership} instance, allowing for method chaining */ public UnincorporatedPartnership principalPlaceOfBusiness(Address principalPlaceOfBusiness) { @@ -399,7 +418,8 @@ public UnincorporatedPartnership principalPlaceOfBusiness(Address principalPlace /** * Get principalPlaceOfBusiness - * @return principalPlaceOfBusiness + * + * @return principalPlaceOfBusiness */ @JsonProperty(JSON_PROPERTY_PRINCIPAL_PLACE_OF_BUSINESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -410,7 +430,7 @@ public Address getPrincipalPlaceOfBusiness() { /** * principalPlaceOfBusiness * - * @param principalPlaceOfBusiness + * @param principalPlaceOfBusiness */ @JsonProperty(JSON_PROPERTY_PRINCIPAL_PLACE_OF_BUSINESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -421,7 +441,7 @@ public void setPrincipalPlaceOfBusiness(Address principalPlaceOfBusiness) { /** * registeredAddress * - * @param registeredAddress + * @param registeredAddress * @return the current {@code UnincorporatedPartnership} instance, allowing for method chaining */ public UnincorporatedPartnership registeredAddress(Address registeredAddress) { @@ -431,7 +451,8 @@ public UnincorporatedPartnership registeredAddress(Address registeredAddress) { /** * Get registeredAddress - * @return registeredAddress + * + * @return registeredAddress */ @JsonProperty(JSON_PROPERTY_REGISTERED_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -442,7 +463,7 @@ public Address getRegisteredAddress() { /** * registeredAddress * - * @param registeredAddress + * @param registeredAddress */ @JsonProperty(JSON_PROPERTY_REGISTERED_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -463,6 +484,7 @@ public UnincorporatedPartnership registrationNumber(String registrationNumber) { /** * The registration number. + * * @return registrationNumber The registration number. */ @JsonProperty(JSON_PROPERTY_REGISTRATION_NUMBER) @@ -503,6 +525,7 @@ public UnincorporatedPartnership addTaxInformationItem(TaxInformation taxInforma /** * The tax information of the entity. + * * @return taxInformation The tax information of the entity. */ @JsonProperty(JSON_PROPERTY_TAX_INFORMATION) @@ -523,8 +546,21 @@ public void setTaxInformation(List taxInformation) { } /** - * Type of Partnership. Possible values: * **limitedPartnership** * **generalPartnership** * **familyPartnership** * **commercialPartnership** * **publicPartnership** * **otherPartnership** * **gbr** * **gmbh** * **kgaa** * **cv** * **vof** * **maatschap** * **privateFundLimitedPartnership** * **businessTrustEntity** * **businessPartnership** * **limitedLiabilityPartnership** * **eg** * **cooperative** * **vos** * **comunidadDeBienes** * **herenciaYacente** * **comunidadDePropietarios** * **sep** * **sca** * **bt** * **kkt** * **scs** * **snc** - * @return type Type of Partnership. Possible values: * **limitedPartnership** * **generalPartnership** * **familyPartnership** * **commercialPartnership** * **publicPartnership** * **otherPartnership** * **gbr** * **gmbh** * **kgaa** * **cv** * **vof** * **maatschap** * **privateFundLimitedPartnership** * **businessTrustEntity** * **businessPartnership** * **limitedLiabilityPartnership** * **eg** * **cooperative** * **vos** * **comunidadDeBienes** * **herenciaYacente** * **comunidadDePropietarios** * **sep** * **sca** * **bt** * **kkt** * **scs** * **snc** + * Type of Partnership. Possible values: * **limitedPartnership** * **generalPartnership** * + * **familyPartnership** * **commercialPartnership** * **publicPartnership** * + * **otherPartnership** * **gbr** * **gmbh** * **kgaa** * **cv** * **vof** * **maatschap** * + * **privateFundLimitedPartnership** * **businessTrustEntity** * **businessPartnership** * + * **limitedLiabilityPartnership** * **eg** * **cooperative** * **vos** * **comunidadDeBienes** * + * **herenciaYacente** * **comunidadDePropietarios** * **sep** * **sca** * **bt** * **kkt** * + * **scs** * **snc** + * + * @return type Type of Partnership. Possible values: * **limitedPartnership** * + * **generalPartnership** * **familyPartnership** * **commercialPartnership** * + * **publicPartnership** * **otherPartnership** * **gbr** * **gmbh** * **kgaa** * **cv** * + * **vof** * **maatschap** * **privateFundLimitedPartnership** * **businessTrustEntity** * + * **businessPartnership** * **limitedLiabilityPartnership** * **eg** * **cooperative** * + * **vos** * **comunidadDeBienes** * **herenciaYacente** * **comunidadDePropietarios** * + * **sep** * **sca** * **bt** * **kkt** * **scs** * **snc** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -532,11 +568,12 @@ public TypeEnum getType() { return type; } - /** - * The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + * The reason for not providing a VAT number. Possible values: **industryExemption**, + * **belowTaxThreshold**. * - * @param vatAbsenceReason The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + * @param vatAbsenceReason The reason for not providing a VAT number. Possible values: + * **industryExemption**, **belowTaxThreshold**. * @return the current {@code UnincorporatedPartnership} instance, allowing for method chaining */ public UnincorporatedPartnership vatAbsenceReason(VatAbsenceReasonEnum vatAbsenceReason) { @@ -545,8 +582,11 @@ public UnincorporatedPartnership vatAbsenceReason(VatAbsenceReasonEnum vatAbsenc } /** - * The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. - * @return vatAbsenceReason The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + * The reason for not providing a VAT number. Possible values: **industryExemption**, + * **belowTaxThreshold**. + * + * @return vatAbsenceReason The reason for not providing a VAT number. Possible values: + * **industryExemption**, **belowTaxThreshold**. */ @JsonProperty(JSON_PROPERTY_VAT_ABSENCE_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -555,9 +595,11 @@ public VatAbsenceReasonEnum getVatAbsenceReason() { } /** - * The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + * The reason for not providing a VAT number. Possible values: **industryExemption**, + * **belowTaxThreshold**. * - * @param vatAbsenceReason The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + * @param vatAbsenceReason The reason for not providing a VAT number. Possible values: + * **industryExemption**, **belowTaxThreshold**. */ @JsonProperty(JSON_PROPERTY_VAT_ABSENCE_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -578,6 +620,7 @@ public UnincorporatedPartnership vatNumber(String vatNumber) { /** * The VAT number. + * * @return vatNumber The VAT number. */ @JsonProperty(JSON_PROPERTY_VAT_NUMBER) @@ -597,9 +640,7 @@ public void setVatNumber(String vatNumber) { this.vatNumber = vatNumber; } - /** - * Return true if this UnincorporatedPartnership object is equal to o. - */ + /** Return true if this UnincorporatedPartnership object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -609,35 +650,55 @@ public boolean equals(Object o) { return false; } UnincorporatedPartnership unincorporatedPartnership = (UnincorporatedPartnership) o; - return Objects.equals(this.countryOfGoverningLaw, unincorporatedPartnership.countryOfGoverningLaw) && - Objects.equals(this.dateOfIncorporation, unincorporatedPartnership.dateOfIncorporation) && - Objects.equals(this.description, unincorporatedPartnership.description) && - Objects.equals(this.doingBusinessAs, unincorporatedPartnership.doingBusinessAs) && - Objects.equals(this.name, unincorporatedPartnership.name) && - Objects.equals(this.principalPlaceOfBusiness, unincorporatedPartnership.principalPlaceOfBusiness) && - Objects.equals(this.registeredAddress, unincorporatedPartnership.registeredAddress) && - Objects.equals(this.registrationNumber, unincorporatedPartnership.registrationNumber) && - Objects.equals(this.taxInformation, unincorporatedPartnership.taxInformation) && - Objects.equals(this.type, unincorporatedPartnership.type) && - Objects.equals(this.vatAbsenceReason, unincorporatedPartnership.vatAbsenceReason) && - Objects.equals(this.vatNumber, unincorporatedPartnership.vatNumber); + return Objects.equals( + this.countryOfGoverningLaw, unincorporatedPartnership.countryOfGoverningLaw) + && Objects.equals(this.dateOfIncorporation, unincorporatedPartnership.dateOfIncorporation) + && Objects.equals(this.description, unincorporatedPartnership.description) + && Objects.equals(this.doingBusinessAs, unincorporatedPartnership.doingBusinessAs) + && Objects.equals(this.name, unincorporatedPartnership.name) + && Objects.equals( + this.principalPlaceOfBusiness, unincorporatedPartnership.principalPlaceOfBusiness) + && Objects.equals(this.registeredAddress, unincorporatedPartnership.registeredAddress) + && Objects.equals(this.registrationNumber, unincorporatedPartnership.registrationNumber) + && Objects.equals(this.taxInformation, unincorporatedPartnership.taxInformation) + && Objects.equals(this.type, unincorporatedPartnership.type) + && Objects.equals(this.vatAbsenceReason, unincorporatedPartnership.vatAbsenceReason) + && Objects.equals(this.vatNumber, unincorporatedPartnership.vatNumber); } @Override public int hashCode() { - return Objects.hash(countryOfGoverningLaw, dateOfIncorporation, description, doingBusinessAs, name, principalPlaceOfBusiness, registeredAddress, registrationNumber, taxInformation, type, vatAbsenceReason, vatNumber); + return Objects.hash( + countryOfGoverningLaw, + dateOfIncorporation, + description, + doingBusinessAs, + name, + principalPlaceOfBusiness, + registeredAddress, + registrationNumber, + taxInformation, + type, + vatAbsenceReason, + vatNumber); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UnincorporatedPartnership {\n"); - sb.append(" countryOfGoverningLaw: ").append(toIndentedString(countryOfGoverningLaw)).append("\n"); - sb.append(" dateOfIncorporation: ").append(toIndentedString(dateOfIncorporation)).append("\n"); + sb.append(" countryOfGoverningLaw: ") + .append(toIndentedString(countryOfGoverningLaw)) + .append("\n"); + sb.append(" dateOfIncorporation: ") + .append(toIndentedString(dateOfIncorporation)) + .append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" doingBusinessAs: ").append(toIndentedString(doingBusinessAs)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" principalPlaceOfBusiness: ").append(toIndentedString(principalPlaceOfBusiness)).append("\n"); + sb.append(" principalPlaceOfBusiness: ") + .append(toIndentedString(principalPlaceOfBusiness)) + .append("\n"); sb.append(" registeredAddress: ").append(toIndentedString(registeredAddress)).append("\n"); sb.append(" registrationNumber: ").append(toIndentedString(registrationNumber)).append("\n"); sb.append(" taxInformation: ").append(toIndentedString(taxInformation)).append("\n"); @@ -649,8 +710,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -659,21 +719,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of UnincorporatedPartnership given an JSON string * * @param jsonString JSON string * @return An instance of UnincorporatedPartnership - * @throws JsonProcessingException if the JSON string is invalid with respect to UnincorporatedPartnership + * @throws JsonProcessingException if the JSON string is invalid with respect to + * UnincorporatedPartnership */ - public static UnincorporatedPartnership fromJson(String jsonString) throws JsonProcessingException { + public static UnincorporatedPartnership fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UnincorporatedPartnership.class); } -/** - * Convert an instance of UnincorporatedPartnership to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of UnincorporatedPartnership to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/VerificationDeadline.java b/src/main/java/com/adyen/model/legalentitymanagement/VerificationDeadline.java index 440bd4e8f..3e9b342fd 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/VerificationDeadline.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/VerificationDeadline.java @@ -2,61 +2,57 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; -import java.util.ArrayList; +import java.util.*; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * VerificationDeadline - */ +/** VerificationDeadline */ @JsonPropertyOrder({ VerificationDeadline.JSON_PROPERTY_CAPABILITIES, VerificationDeadline.JSON_PROPERTY_ENTITY_IDS, VerificationDeadline.JSON_PROPERTY_EXPIRES_AT }) - public class VerificationDeadline { - /** - * Gets or Sets capabilities - */ + /** Gets or Sets capabilities */ public enum CapabilitiesEnum { - ACCEPTEXTERNALFUNDING(String.valueOf("acceptExternalFunding")), ACCEPTPSPFUNDING(String.valueOf("acceptPspFunding")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES(String.valueOf("acceptTransactionInRestrictedCountries")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES( + String.valueOf("acceptTransactionInRestrictedCountries")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER( + String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES(String.valueOf("acceptTransactionInRestrictedIndustries")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES( + String.valueOf("acceptTransactionInRestrictedIndustries")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL( + String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER( + String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), ACQUIRING(String.valueOf("acquiring")), @@ -68,9 +64,11 @@ public enum CapabilitiesEnum { ATMWITHDRAWALINRESTRICTEDCOUNTRIES(String.valueOf("atmWithdrawalInRestrictedCountries")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER( + String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), AUTHORISEDPAYMENTINSTRUMENTUSER(String.valueOf("authorisedPaymentInstrumentUser")), @@ -126,13 +124,15 @@ public enum CapabilitiesEnum { USECARDINRESTRICTEDCOUNTRIES(String.valueOf("useCardInRestrictedCountries")), - USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedCountriesCommercial")), + USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("useCardInRestrictedCountriesCommercial")), USECARDINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("useCardInRestrictedCountriesConsumer")), USECARDINRESTRICTEDINDUSTRIES(String.valueOf("useCardInRestrictedIndustries")), - USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedIndustriesCommercial")), + USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL( + String.valueOf("useCardInRestrictedIndustriesCommercial")), USECARDINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("useCardInRestrictedIndustriesConsumer")), @@ -148,16 +148,18 @@ public enum CapabilitiesEnum { WITHDRAWFROMATMINRESTRICTEDCOUNTRIES(String.valueOf("withdrawFromAtmInRestrictedCountries")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER( + String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); private static final Logger LOG = Logger.getLogger(CapabilitiesEnum.class.getName()); private String value; CapabilitiesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -178,7 +180,11 @@ public static CapabilitiesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("CapabilitiesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CapabilitiesEnum.values())); + LOG.warning( + "CapabilitiesEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(CapabilitiesEnum.values())); return null; } } @@ -192,15 +198,13 @@ public static CapabilitiesEnum fromValue(String value) { public static final String JSON_PROPERTY_EXPIRES_AT = "expiresAt"; private OffsetDateTime expiresAt; - public VerificationDeadline() { - } + public VerificationDeadline() {} @JsonCreator public VerificationDeadline( - @JsonProperty(JSON_PROPERTY_CAPABILITIES) List capabilities, - @JsonProperty(JSON_PROPERTY_ENTITY_IDS) List entityIds, - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) OffsetDateTime expiresAt - ) { + @JsonProperty(JSON_PROPERTY_CAPABILITIES) List capabilities, + @JsonProperty(JSON_PROPERTY_ENTITY_IDS) List entityIds, + @JsonProperty(JSON_PROPERTY_EXPIRES_AT) OffsetDateTime expiresAt) { this(); this.capabilities = capabilities; this.entityIds = entityIds; @@ -208,8 +212,11 @@ public VerificationDeadline( } /** - * The list of capabilities that will be disallowed if information is not reviewed by the time of the deadline - * @return capabilities The list of capabilities that will be disallowed if information is not reviewed by the time of the deadline + * The list of capabilities that will be disallowed if information is not reviewed by the time of + * the deadline + * + * @return capabilities The list of capabilities that will be disallowed if information is not + * reviewed by the time of the deadline */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -217,10 +224,11 @@ public List getCapabilities() { return capabilities; } - /** * The unique identifiers of the legal entity or supporting entities that the deadline applies to - * @return entityIds The unique identifiers of the legal entity or supporting entities that the deadline applies to + * + * @return entityIds The unique identifiers of the legal entity or supporting entities that the + * deadline applies to */ @JsonProperty(JSON_PROPERTY_ENTITY_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -228,9 +236,9 @@ public List getEntityIds() { return entityIds; } - /** * The date that verification is due by before capabilities are disallowed. + * * @return expiresAt The date that verification is due by before capabilities are disallowed. */ @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @@ -239,10 +247,7 @@ public OffsetDateTime getExpiresAt() { return expiresAt; } - - /** - * Return true if this VerificationDeadline object is equal to o. - */ + /** Return true if this VerificationDeadline object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -252,9 +257,9 @@ public boolean equals(Object o) { return false; } VerificationDeadline verificationDeadline = (VerificationDeadline) o; - return Objects.equals(this.capabilities, verificationDeadline.capabilities) && - Objects.equals(this.entityIds, verificationDeadline.entityIds) && - Objects.equals(this.expiresAt, verificationDeadline.expiresAt); + return Objects.equals(this.capabilities, verificationDeadline.capabilities) + && Objects.equals(this.entityIds, verificationDeadline.entityIds) + && Objects.equals(this.expiresAt, verificationDeadline.expiresAt); } @Override @@ -274,8 +279,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -284,21 +288,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of VerificationDeadline given an JSON string * * @param jsonString JSON string * @return An instance of VerificationDeadline - * @throws JsonProcessingException if the JSON string is invalid with respect to VerificationDeadline + * @throws JsonProcessingException if the JSON string is invalid with respect to + * VerificationDeadline */ public static VerificationDeadline fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, VerificationDeadline.class); } -/** - * Convert an instance of VerificationDeadline to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of VerificationDeadline to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/VerificationError.java b/src/main/java/com/adyen/model/legalentitymanagement/VerificationError.java index 23f4d300b..222814811 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/VerificationError.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/VerificationError.java @@ -2,35 +2,28 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.legalentitymanagement.RemediatingAction; -import com.adyen.model.legalentitymanagement.VerificationErrorRecursive; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * VerificationError - */ +/** VerificationError */ @JsonPropertyOrder({ VerificationError.JSON_PROPERTY_CAPABILITIES, VerificationError.JSON_PROPERTY_CODE, @@ -39,28 +32,30 @@ VerificationError.JSON_PROPERTY_SUB_ERRORS, VerificationError.JSON_PROPERTY_TYPE }) - public class VerificationError { - /** - * Gets or Sets capabilities - */ + /** Gets or Sets capabilities */ public enum CapabilitiesEnum { - ACCEPTEXTERNALFUNDING(String.valueOf("acceptExternalFunding")), ACCEPTPSPFUNDING(String.valueOf("acceptPspFunding")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES(String.valueOf("acceptTransactionInRestrictedCountries")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES( + String.valueOf("acceptTransactionInRestrictedCountries")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER( + String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES(String.valueOf("acceptTransactionInRestrictedIndustries")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES( + String.valueOf("acceptTransactionInRestrictedIndustries")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL( + String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER( + String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), ACQUIRING(String.valueOf("acquiring")), @@ -72,9 +67,11 @@ public enum CapabilitiesEnum { ATMWITHDRAWALINRESTRICTEDCOUNTRIES(String.valueOf("atmWithdrawalInRestrictedCountries")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER( + String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), AUTHORISEDPAYMENTINSTRUMENTUSER(String.valueOf("authorisedPaymentInstrumentUser")), @@ -130,13 +127,15 @@ public enum CapabilitiesEnum { USECARDINRESTRICTEDCOUNTRIES(String.valueOf("useCardInRestrictedCountries")), - USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedCountriesCommercial")), + USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("useCardInRestrictedCountriesCommercial")), USECARDINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("useCardInRestrictedCountriesConsumer")), USECARDINRESTRICTEDINDUSTRIES(String.valueOf("useCardInRestrictedIndustries")), - USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedIndustriesCommercial")), + USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL( + String.valueOf("useCardInRestrictedIndustriesCommercial")), USECARDINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("useCardInRestrictedIndustriesConsumer")), @@ -152,16 +151,18 @@ public enum CapabilitiesEnum { WITHDRAWFROMATMINRESTRICTEDCOUNTRIES(String.valueOf("withdrawFromAtmInRestrictedCountries")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER( + String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); private static final Logger LOG = Logger.getLogger(CapabilitiesEnum.class.getName()); private String value; CapabilitiesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -182,7 +183,11 @@ public static CapabilitiesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("CapabilitiesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CapabilitiesEnum.values())); + LOG.warning( + "CapabilitiesEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(CapabilitiesEnum.values())); return null; } } @@ -203,10 +208,10 @@ public static CapabilitiesEnum fromValue(String value) { private List subErrors; /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * + * **rejected** * **dataReview** */ public enum TypeEnum { - DATAMISSING(String.valueOf("dataMissing")), DATAREVIEW(String.valueOf("dataReview")), @@ -222,7 +227,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -243,7 +248,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -251,13 +260,17 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public VerificationError() { - } + public VerificationError() {} /** - * Contains key-value pairs that specify the actions that the legal entity can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that the legal entity can do in your + * platform. The key is a capability required for your integration. For example, **issueCard** for + * Issuing.The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability. + * @param capabilities Contains key-value pairs that specify the actions that the legal entity can + * do in your platform. The key is a capability required for your integration. For example, + * **issueCard** for Issuing.The value is an object containing the settings for the + * capability. * @return the current {@code VerificationError} instance, allowing for method chaining */ public VerificationError capabilities(List capabilities) { @@ -274,8 +287,14 @@ public VerificationError addCapabilitiesItem(CapabilitiesEnum capabilitiesItem) } /** - * Contains key-value pairs that specify the actions that the legal entity can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability. - * @return capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that the legal entity can do in your + * platform. The key is a capability required for your integration. For example, **issueCard** for + * Issuing.The value is an object containing the settings for the capability. + * + * @return capabilities Contains key-value pairs that specify the actions that the legal entity + * can do in your platform. The key is a capability required for your integration. For + * example, **issueCard** for Issuing.The value is an object containing the settings for the + * capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,9 +303,14 @@ public List getCapabilities() { } /** - * Contains key-value pairs that specify the actions that the legal entity can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that the legal entity can do in your + * platform. The key is a capability required for your integration. For example, **issueCard** for + * Issuing.The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability. + * @param capabilities Contains key-value pairs that specify the actions that the legal entity can + * do in your platform. The key is a capability required for your integration. For example, + * **issueCard** for Issuing.The value is an object containing the settings for the + * capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -307,6 +331,7 @@ public VerificationError code(String code) { /** * The general error code. + * * @return code The general error code. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -339,6 +364,7 @@ public VerificationError message(String message) { /** * The general error message. + * * @return message The general error message. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -379,6 +405,7 @@ public VerificationError addRemediatingActionsItem(RemediatingAction remediating /** * An object containing possible solutions to fix a verification error. + * * @return remediatingActions An object containing possible solutions to fix a verification error. */ @JsonProperty(JSON_PROPERTY_REMEDIATING_ACTIONS) @@ -401,7 +428,8 @@ public void setRemediatingActions(List remediatingActions) { /** * An array containing more granular information about the cause of the verification error. * - * @param subErrors An array containing more granular information about the cause of the verification error. + * @param subErrors An array containing more granular information about the cause of the + * verification error. * @return the current {@code VerificationError} instance, allowing for method chaining */ public VerificationError subErrors(List subErrors) { @@ -419,7 +447,9 @@ public VerificationError addSubErrorsItem(VerificationErrorRecursive subErrorsIt /** * An array containing more granular information about the cause of the verification error. - * @return subErrors An array containing more granular information about the cause of the verification error. + * + * @return subErrors An array containing more granular information about the cause of the + * verification error. */ @JsonProperty(JSON_PROPERTY_SUB_ERRORS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -430,7 +460,8 @@ public List getSubErrors() { /** * An array containing more granular information about the cause of the verification error. * - * @param subErrors An array containing more granular information about the cause of the verification error. + * @param subErrors An array containing more granular information about the cause of the + * verification error. */ @JsonProperty(JSON_PROPERTY_SUB_ERRORS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -439,9 +470,11 @@ public void setSubErrors(List subErrors) { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * + * **rejected** * **dataReview** * - * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** + * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * + * **pendingStatus** * **rejected** * **dataReview** * @return the current {@code VerificationError} instance, allowing for method chaining */ public VerificationError type(TypeEnum type) { @@ -450,8 +483,11 @@ public VerificationError type(TypeEnum type) { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** - * @return type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * + * **rejected** * **dataReview** + * + * @return type The type of error. Possible values: * **invalidInput** * **dataMissing** * + * **pendingStatus** * **rejected** * **dataReview** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -460,9 +496,11 @@ public TypeEnum getType() { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * + * **rejected** * **dataReview** * - * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** + * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * + * **pendingStatus** * **rejected** * **dataReview** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -470,9 +508,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this VerificationError object is equal to o. - */ + /** Return true if this VerificationError object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -482,12 +518,12 @@ public boolean equals(Object o) { return false; } VerificationError verificationError = (VerificationError) o; - return Objects.equals(this.capabilities, verificationError.capabilities) && - Objects.equals(this.code, verificationError.code) && - Objects.equals(this.message, verificationError.message) && - Objects.equals(this.remediatingActions, verificationError.remediatingActions) && - Objects.equals(this.subErrors, verificationError.subErrors) && - Objects.equals(this.type, verificationError.type); + return Objects.equals(this.capabilities, verificationError.capabilities) + && Objects.equals(this.code, verificationError.code) + && Objects.equals(this.message, verificationError.message) + && Objects.equals(this.remediatingActions, verificationError.remediatingActions) + && Objects.equals(this.subErrors, verificationError.subErrors) + && Objects.equals(this.type, verificationError.type); } @Override @@ -510,8 +546,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -520,7 +555,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of VerificationError given an JSON string * * @param jsonString JSON string @@ -530,11 +565,12 @@ private String toIndentedString(Object o) { public static VerificationError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, VerificationError.class); } -/** - * Convert an instance of VerificationError to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of VerificationError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/VerificationErrorRecursive.java b/src/main/java/com/adyen/model/legalentitymanagement/VerificationErrorRecursive.java index 44057230e..d651ca8f2 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/VerificationErrorRecursive.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/VerificationErrorRecursive.java @@ -2,34 +2,29 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.legalentitymanagement.RemediatingAction; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * VerificationErrorRecursive - */ +/** VerificationErrorRecursive */ @JsonPropertyOrder({ VerificationErrorRecursive.JSON_PROPERTY_CAPABILITIES, VerificationErrorRecursive.JSON_PROPERTY_CODE, @@ -38,28 +33,30 @@ VerificationErrorRecursive.JSON_PROPERTY_REMEDIATING_ACTIONS }) @JsonTypeName("VerificationError-recursive") - public class VerificationErrorRecursive { - /** - * Gets or Sets capabilities - */ + /** Gets or Sets capabilities */ public enum CapabilitiesEnum { - ACCEPTEXTERNALFUNDING(String.valueOf("acceptExternalFunding")), ACCEPTPSPFUNDING(String.valueOf("acceptPspFunding")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES(String.valueOf("acceptTransactionInRestrictedCountries")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES( + String.valueOf("acceptTransactionInRestrictedCountries")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("acceptTransactionInRestrictedCountriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER( + String.valueOf("acceptTransactionInRestrictedCountriesConsumer")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES(String.valueOf("acceptTransactionInRestrictedIndustries")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES( + String.valueOf("acceptTransactionInRestrictedIndustries")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL( + String.valueOf("acceptTransactionInRestrictedIndustriesCommercial")), - ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), + ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER( + String.valueOf("acceptTransactionInRestrictedIndustriesConsumer")), ACQUIRING(String.valueOf("acquiring")), @@ -71,9 +68,11 @@ public enum CapabilitiesEnum { ATMWITHDRAWALINRESTRICTEDCOUNTRIES(String.valueOf("atmWithdrawalInRestrictedCountries")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("atmWithdrawalInRestrictedCountriesCommercial")), - ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), + ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER( + String.valueOf("atmWithdrawalInRestrictedCountriesConsumer")), AUTHORISEDPAYMENTINSTRUMENTUSER(String.valueOf("authorisedPaymentInstrumentUser")), @@ -129,13 +128,15 @@ public enum CapabilitiesEnum { USECARDINRESTRICTEDCOUNTRIES(String.valueOf("useCardInRestrictedCountries")), - USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedCountriesCommercial")), + USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("useCardInRestrictedCountriesCommercial")), USECARDINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("useCardInRestrictedCountriesConsumer")), USECARDINRESTRICTEDINDUSTRIES(String.valueOf("useCardInRestrictedIndustries")), - USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL(String.valueOf("useCardInRestrictedIndustriesCommercial")), + USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL( + String.valueOf("useCardInRestrictedIndustriesCommercial")), USECARDINRESTRICTEDINDUSTRIESCONSUMER(String.valueOf("useCardInRestrictedIndustriesConsumer")), @@ -151,16 +152,18 @@ public enum CapabilitiesEnum { WITHDRAWFROMATMINRESTRICTEDCOUNTRIES(String.valueOf("withdrawFromAtmInRestrictedCountries")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL(String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL( + String.valueOf("withdrawFromAtmInRestrictedCountriesCommercial")), - WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER(String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); + WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER( + String.valueOf("withdrawFromAtmInRestrictedCountriesConsumer")); private static final Logger LOG = Logger.getLogger(CapabilitiesEnum.class.getName()); private String value; CapabilitiesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -181,7 +184,11 @@ public static CapabilitiesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("CapabilitiesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CapabilitiesEnum.values())); + LOG.warning( + "CapabilitiesEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(CapabilitiesEnum.values())); return null; } } @@ -196,10 +203,10 @@ public static CapabilitiesEnum fromValue(String value) { private String message; /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * + * **rejected** * **dataReview** */ public enum TypeEnum { - DATAMISSING(String.valueOf("dataMissing")), DATAREVIEW(String.valueOf("dataReview")), @@ -215,7 +222,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -236,7 +243,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -247,13 +258,17 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_REMEDIATING_ACTIONS = "remediatingActions"; private List remediatingActions; - public VerificationErrorRecursive() { - } + public VerificationErrorRecursive() {} /** - * Contains key-value pairs that specify the actions that the legal entity can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that the legal entity can do in your + * platform. The key is a capability required for your integration. For example, **issueCard** for + * Issuing.The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability. + * @param capabilities Contains key-value pairs that specify the actions that the legal entity can + * do in your platform. The key is a capability required for your integration. For example, + * **issueCard** for Issuing.The value is an object containing the settings for the + * capability. * @return the current {@code VerificationErrorRecursive} instance, allowing for method chaining */ public VerificationErrorRecursive capabilities(List capabilities) { @@ -270,8 +285,14 @@ public VerificationErrorRecursive addCapabilitiesItem(CapabilitiesEnum capabilit } /** - * Contains key-value pairs that specify the actions that the legal entity can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability. - * @return capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that the legal entity can do in your + * platform. The key is a capability required for your integration. For example, **issueCard** for + * Issuing.The value is an object containing the settings for the capability. + * + * @return capabilities Contains key-value pairs that specify the actions that the legal entity + * can do in your platform. The key is a capability required for your integration. For + * example, **issueCard** for Issuing.The value is an object containing the settings for the + * capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -280,9 +301,14 @@ public List getCapabilities() { } /** - * Contains key-value pairs that specify the actions that the legal entity can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability. + * Contains key-value pairs that specify the actions that the legal entity can do in your + * platform. The key is a capability required for your integration. For example, **issueCard** for + * Issuing.The value is an object containing the settings for the capability. * - * @param capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability. + * @param capabilities Contains key-value pairs that specify the actions that the legal entity can + * do in your platform. The key is a capability required for your integration. For example, + * **issueCard** for Issuing.The value is an object containing the settings for the + * capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -303,6 +329,7 @@ public VerificationErrorRecursive code(String code) { /** * The general error code. + * * @return code The general error code. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -335,6 +362,7 @@ public VerificationErrorRecursive message(String message) { /** * The general error message. + * * @return message The general error message. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -355,9 +383,11 @@ public void setMessage(String message) { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * + * **rejected** * **dataReview** * - * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** + * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * + * **pendingStatus** * **rejected** * **dataReview** * @return the current {@code VerificationErrorRecursive} instance, allowing for method chaining */ public VerificationErrorRecursive type(TypeEnum type) { @@ -366,8 +396,11 @@ public VerificationErrorRecursive type(TypeEnum type) { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** - * @return type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * + * **rejected** * **dataReview** + * + * @return type The type of error. Possible values: * **invalidInput** * **dataMissing** * + * **pendingStatus** * **rejected** * **dataReview** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -376,9 +409,11 @@ public TypeEnum getType() { } /** - * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * + * **rejected** * **dataReview** * - * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** + * @param type The type of error. Possible values: * **invalidInput** * **dataMissing** * + * **pendingStatus** * **rejected** * **dataReview** */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -397,7 +432,8 @@ public VerificationErrorRecursive remediatingActions(List rem return this; } - public VerificationErrorRecursive addRemediatingActionsItem(RemediatingAction remediatingActionsItem) { + public VerificationErrorRecursive addRemediatingActionsItem( + RemediatingAction remediatingActionsItem) { if (this.remediatingActions == null) { this.remediatingActions = new ArrayList<>(); } @@ -407,6 +443,7 @@ public VerificationErrorRecursive addRemediatingActionsItem(RemediatingAction re /** * An object containing possible solutions to fix a verification error. + * * @return remediatingActions An object containing possible solutions to fix a verification error. */ @JsonProperty(JSON_PROPERTY_REMEDIATING_ACTIONS) @@ -426,9 +463,7 @@ public void setRemediatingActions(List remediatingActions) { this.remediatingActions = remediatingActions; } - /** - * Return true if this VerificationError-recursive object is equal to o. - */ + /** Return true if this VerificationError-recursive object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -438,11 +473,11 @@ public boolean equals(Object o) { return false; } VerificationErrorRecursive verificationErrorRecursive = (VerificationErrorRecursive) o; - return Objects.equals(this.capabilities, verificationErrorRecursive.capabilities) && - Objects.equals(this.code, verificationErrorRecursive.code) && - Objects.equals(this.message, verificationErrorRecursive.message) && - Objects.equals(this.type, verificationErrorRecursive.type) && - Objects.equals(this.remediatingActions, verificationErrorRecursive.remediatingActions); + return Objects.equals(this.capabilities, verificationErrorRecursive.capabilities) + && Objects.equals(this.code, verificationErrorRecursive.code) + && Objects.equals(this.message, verificationErrorRecursive.message) + && Objects.equals(this.type, verificationErrorRecursive.type) + && Objects.equals(this.remediatingActions, verificationErrorRecursive.remediatingActions); } @Override @@ -464,8 +499,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -474,21 +508,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of VerificationErrorRecursive given an JSON string * * @param jsonString JSON string * @return An instance of VerificationErrorRecursive - * @throws JsonProcessingException if the JSON string is invalid with respect to VerificationErrorRecursive + * @throws JsonProcessingException if the JSON string is invalid with respect to + * VerificationErrorRecursive */ - public static VerificationErrorRecursive fromJson(String jsonString) throws JsonProcessingException { + public static VerificationErrorRecursive fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, VerificationErrorRecursive.class); } -/** - * Convert an instance of VerificationErrorRecursive to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of VerificationErrorRecursive to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/VerificationErrors.java b/src/main/java/com/adyen/model/legalentitymanagement/VerificationErrors.java index e02f4952a..6e88832c7 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/VerificationErrors.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/VerificationErrors.java @@ -2,44 +2,30 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.legalentitymanagement.CapabilityProblem; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * VerificationErrors - */ -@JsonPropertyOrder({ - VerificationErrors.JSON_PROPERTY_PROBLEMS -}) - +/** VerificationErrors */ +@JsonPropertyOrder({VerificationErrors.JSON_PROPERTY_PROBLEMS}) public class VerificationErrors { public static final String JSON_PROPERTY_PROBLEMS = "problems"; private List problems; - public VerificationErrors() { - } + public VerificationErrors() {} /** * List of the verification errors. @@ -62,6 +48,7 @@ public VerificationErrors addProblemsItem(CapabilityProblem problemsItem) { /** * List of the verification errors. + * * @return problems List of the verification errors. */ @JsonProperty(JSON_PROPERTY_PROBLEMS) @@ -81,9 +68,7 @@ public void setProblems(List problems) { this.problems = problems; } - /** - * Return true if this VerificationErrors object is equal to o. - */ + /** Return true if this VerificationErrors object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -111,8 +96,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -121,21 +105,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of VerificationErrors given an JSON string * * @param jsonString JSON string * @return An instance of VerificationErrors - * @throws JsonProcessingException if the JSON string is invalid with respect to VerificationErrors + * @throws JsonProcessingException if the JSON string is invalid with respect to + * VerificationErrors */ public static VerificationErrors fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, VerificationErrors.class); } -/** - * Convert an instance of VerificationErrors to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of VerificationErrors to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/WebData.java b/src/main/java/com/adyen/model/legalentitymanagement/WebData.java index 63c94d932..b5d556615 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/WebData.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/WebData.java @@ -2,36 +2,24 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * WebData - */ -@JsonPropertyOrder({ - WebData.JSON_PROPERTY_WEB_ADDRESS, - WebData.JSON_PROPERTY_WEB_ADDRESS_ID -}) - +/** WebData */ +@JsonPropertyOrder({WebData.JSON_PROPERTY_WEB_ADDRESS, WebData.JSON_PROPERTY_WEB_ADDRESS_ID}) public class WebData { public static final String JSON_PROPERTY_WEB_ADDRESS = "webAddress"; private String webAddress; @@ -39,13 +27,10 @@ public class WebData { public static final String JSON_PROPERTY_WEB_ADDRESS_ID = "webAddressId"; private String webAddressId; - public WebData() { - } + public WebData() {} @JsonCreator - public WebData( - @JsonProperty(JSON_PROPERTY_WEB_ADDRESS_ID) String webAddressId - ) { + public WebData(@JsonProperty(JSON_PROPERTY_WEB_ADDRESS_ID) String webAddressId) { this(); this.webAddressId = webAddressId; } @@ -63,6 +48,7 @@ public WebData webAddress(String webAddress) { /** * The URL of the website or the app store URL. + * * @return webAddress The URL of the website or the app store URL. */ @JsonProperty(JSON_PROPERTY_WEB_ADDRESS) @@ -84,6 +70,7 @@ public void setWebAddress(String webAddress) { /** * The unique identifier of the web address. + * * @return webAddressId The unique identifier of the web address. */ @JsonProperty(JSON_PROPERTY_WEB_ADDRESS_ID) @@ -92,10 +79,7 @@ public String getWebAddressId() { return webAddressId; } - - /** - * Return true if this WebData object is equal to o. - */ + /** Return true if this WebData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -105,8 +89,8 @@ public boolean equals(Object o) { return false; } WebData webData = (WebData) o; - return Objects.equals(this.webAddress, webData.webAddress) && - Objects.equals(this.webAddressId, webData.webAddressId); + return Objects.equals(this.webAddress, webData.webAddress) + && Objects.equals(this.webAddressId, webData.webAddressId); } @Override @@ -125,8 +109,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -135,7 +118,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of WebData given an JSON string * * @param jsonString JSON string @@ -145,11 +128,12 @@ private String toIndentedString(Object o) { public static WebData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, WebData.class); } -/** - * Convert an instance of WebData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of WebData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/WebDataExemption.java b/src/main/java/com/adyen/model/legalentitymanagement/WebDataExemption.java index 61382338d..1b7e17b88 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/WebDataExemption.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/WebDataExemption.java @@ -2,41 +2,30 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.legalentitymanagement; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * WebDataExemption - */ -@JsonPropertyOrder({ - WebDataExemption.JSON_PROPERTY_REASON -}) - +/** WebDataExemption */ +@JsonPropertyOrder({WebDataExemption.JSON_PROPERTY_REASON}) public class WebDataExemption { - /** - * The reason why the web data was not provided. Possible value: **noOnlinePresence**. - */ + /** The reason why the web data was not provided. Possible value: **noOnlinePresence**. */ public enum ReasonEnum { - NOONLINEPRESENCE(String.valueOf("noOnlinePresence")), NOTCOLLECTEDDURINGONBOARDING(String.valueOf("notCollectedDuringOnboarding")); @@ -46,7 +35,7 @@ public enum ReasonEnum { private String value; ReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -67,7 +56,11 @@ public static ReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ReasonEnum.values())); + LOG.warning( + "ReasonEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ReasonEnum.values())); return null; } } @@ -75,13 +68,13 @@ public static ReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_REASON = "reason"; private ReasonEnum reason; - public WebDataExemption() { - } + public WebDataExemption() {} /** * The reason why the web data was not provided. Possible value: **noOnlinePresence**. * - * @param reason The reason why the web data was not provided. Possible value: **noOnlinePresence**. + * @param reason The reason why the web data was not provided. Possible value: + * **noOnlinePresence**. * @return the current {@code WebDataExemption} instance, allowing for method chaining */ public WebDataExemption reason(ReasonEnum reason) { @@ -91,7 +84,9 @@ public WebDataExemption reason(ReasonEnum reason) { /** * The reason why the web data was not provided. Possible value: **noOnlinePresence**. - * @return reason The reason why the web data was not provided. Possible value: **noOnlinePresence**. + * + * @return reason The reason why the web data was not provided. Possible value: + * **noOnlinePresence**. */ @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,7 +97,8 @@ public ReasonEnum getReason() { /** * The reason why the web data was not provided. Possible value: **noOnlinePresence**. * - * @param reason The reason why the web data was not provided. Possible value: **noOnlinePresence**. + * @param reason The reason why the web data was not provided. Possible value: + * **noOnlinePresence**. */ @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,9 +106,7 @@ public void setReason(ReasonEnum reason) { this.reason = reason; } - /** - * Return true if this WebDataExemption object is equal to o. - */ + /** Return true if this WebDataExemption object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -140,8 +134,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -150,7 +143,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of WebDataExemption given an JSON string * * @param jsonString JSON string @@ -160,11 +153,12 @@ private String toIndentedString(Object o) { public static WebDataExemption fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, WebDataExemption.class); } -/** - * Convert an instance of WebDataExemption to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of WebDataExemption to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/management/AbstractOpenApiSchema.java index 0517f07e2..dec7eddcb 100644 --- a/src/main/java/com/adyen/model/management/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/management/AbstractOpenApiSchema.java @@ -2,145 +2,141 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.Objects; -import java.util.Map; -import jakarta.ws.rs.core.GenericType; - import com.fasterxml.jackson.annotation.JsonValue; +import jakarta.ws.rs.core.GenericType; +import java.util.Map; +import java.util.Objects; -/** - * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec - */ +/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() {return instance;} - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) {this.instance = instance;} - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); - } else { - return object.getActualInstance(); - } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() { + return instance; + } + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) { + this.instance = instance; + } + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf + * schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); + } else { + return object.getActualInstance(); } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) && - Objects.equals(this.isNullable, a.isNullable) && - Objects.equals(this.schemaType, a.schemaType); + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; } + return o.toString().replace("\n", "\n "); + } - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); + public boolean equals(Object o) { + if (this == o) { + return true; } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); + if (o == null || getClass() != o.getClass()) { + return false; } - - - -} \ No newline at end of file + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) + && Objects.equals(this.isNullable, a.isNullable) + && Objects.equals(this.schemaType, a.schemaType); + } + + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); + } + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); + } +} diff --git a/src/main/java/com/adyen/model/management/AccelInfo.java b/src/main/java/com/adyen/model/management/AccelInfo.java index 1b2df5f85..54579153a 100644 --- a/src/main/java/com/adyen/model/management/AccelInfo.java +++ b/src/main/java/com/adyen/model/management/AccelInfo.java @@ -2,43 +2,40 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.TransactionDescriptionInfo; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * AccelInfo - */ +/** AccelInfo */ @JsonPropertyOrder({ AccelInfo.JSON_PROPERTY_PROCESSING_TYPE, AccelInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION }) - public class AccelInfo { /** - * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * The type of transactions processed over this payment method. Allowed values: - **pos** for + * in-person payments. - **billpay** for subscription payments, both the initial payment and the + * later recurring payments. These transactions have `recurringProcessingModel` + * **Subscription**. - **ecom** for all other card not present transactions. This includes + * non-recurring transactions and transactions with `recurringProcessingModel` + * **CardOnFile** or **UnscheduledCardOnFile**. */ public enum ProcessingTypeEnum { - BILLPAY(String.valueOf("billpay")), ECOM(String.valueOf("ecom")), @@ -50,7 +47,7 @@ public enum ProcessingTypeEnum { private String value; ProcessingTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -71,7 +68,11 @@ public static ProcessingTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ProcessingTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ProcessingTypeEnum.values())); + LOG.warning( + "ProcessingTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ProcessingTypeEnum.values())); return null; } } @@ -82,13 +83,22 @@ public static ProcessingTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANSACTION_DESCRIPTION = "transactionDescription"; private TransactionDescriptionInfo transactionDescription; - public AccelInfo() { - } + public AccelInfo() {} /** - * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * The type of transactions processed over this payment method. Allowed values: - **pos** for + * in-person payments. - **billpay** for subscription payments, both the initial payment and the + * later recurring payments. These transactions have `recurringProcessingModel` + * **Subscription**. - **ecom** for all other card not present transactions. This includes + * non-recurring transactions and transactions with `recurringProcessingModel` + * **CardOnFile** or **UnscheduledCardOnFile**. * - * @param processingType The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * @param processingType The type of transactions processed over this payment method. Allowed + * values: - **pos** for in-person payments. - **billpay** for subscription payments, both the + * initial payment and the later recurring payments. These transactions have + * `recurringProcessingModel` **Subscription**. - **ecom** for all other card not + * present transactions. This includes non-recurring transactions and transactions with + * `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. * @return the current {@code AccelInfo} instance, allowing for method chaining */ public AccelInfo processingType(ProcessingTypeEnum processingType) { @@ -97,8 +107,19 @@ public AccelInfo processingType(ProcessingTypeEnum processingType) { } /** - * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. - * @return processingType The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * The type of transactions processed over this payment method. Allowed values: - **pos** for + * in-person payments. - **billpay** for subscription payments, both the initial payment and the + * later recurring payments. These transactions have `recurringProcessingModel` + * **Subscription**. - **ecom** for all other card not present transactions. This includes + * non-recurring transactions and transactions with `recurringProcessingModel` + * **CardOnFile** or **UnscheduledCardOnFile**. + * + * @return processingType The type of transactions processed over this payment method. Allowed + * values: - **pos** for in-person payments. - **billpay** for subscription payments, both the + * initial payment and the later recurring payments. These transactions have + * `recurringProcessingModel` **Subscription**. - **ecom** for all other card not + * present transactions. This includes non-recurring transactions and transactions with + * `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. */ @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,9 +128,19 @@ public ProcessingTypeEnum getProcessingType() { } /** - * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * The type of transactions processed over this payment method. Allowed values: - **pos** for + * in-person payments. - **billpay** for subscription payments, both the initial payment and the + * later recurring payments. These transactions have `recurringProcessingModel` + * **Subscription**. - **ecom** for all other card not present transactions. This includes + * non-recurring transactions and transactions with `recurringProcessingModel` + * **CardOnFile** or **UnscheduledCardOnFile**. * - * @param processingType The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * @param processingType The type of transactions processed over this payment method. Allowed + * values: - **pos** for in-person payments. - **billpay** for subscription payments, both the + * initial payment and the later recurring payments. These transactions have + * `recurringProcessingModel` **Subscription**. - **ecom** for all other card not + * present transactions. This includes non-recurring transactions and transactions with + * `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. */ @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -120,7 +151,7 @@ public void setProcessingType(ProcessingTypeEnum processingType) { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription * @return the current {@code AccelInfo} instance, allowing for method chaining */ public AccelInfo transactionDescription(TransactionDescriptionInfo transactionDescription) { @@ -130,7 +161,8 @@ public AccelInfo transactionDescription(TransactionDescriptionInfo transactionDe /** * Get transactionDescription - * @return transactionDescription + * + * @return transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -141,7 +173,7 @@ public TransactionDescriptionInfo getTransactionDescription() { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -149,9 +181,7 @@ public void setTransactionDescription(TransactionDescriptionInfo transactionDesc this.transactionDescription = transactionDescription; } - /** - * Return true if this AccelInfo object is equal to o. - */ + /** Return true if this AccelInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -161,8 +191,8 @@ public boolean equals(Object o) { return false; } AccelInfo accelInfo = (AccelInfo) o; - return Objects.equals(this.processingType, accelInfo.processingType) && - Objects.equals(this.transactionDescription, accelInfo.transactionDescription); + return Objects.equals(this.processingType, accelInfo.processingType) + && Objects.equals(this.transactionDescription, accelInfo.transactionDescription); } @Override @@ -175,14 +205,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AccelInfo {\n"); sb.append(" processingType: ").append(toIndentedString(processingType)).append("\n"); - sb.append(" transactionDescription: ").append(toIndentedString(transactionDescription)).append("\n"); + sb.append(" transactionDescription: ") + .append(toIndentedString(transactionDescription)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -191,7 +222,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AccelInfo given an JSON string * * @param jsonString JSON string @@ -201,11 +232,12 @@ private String toIndentedString(Object o) { public static AccelInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccelInfo.class); } -/** - * Convert an instance of AccelInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AccelInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/AdditionalCommission.java b/src/main/java/com/adyen/model/management/AdditionalCommission.java index 1ce0ef6a1..aea996a40 100644 --- a/src/main/java/com/adyen/model/management/AdditionalCommission.java +++ b/src/main/java/com/adyen/model/management/AdditionalCommission.java @@ -2,37 +2,27 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AdditionalCommission - */ +/** AdditionalCommission */ @JsonPropertyOrder({ AdditionalCommission.JSON_PROPERTY_BALANCE_ACCOUNT_ID, AdditionalCommission.JSON_PROPERTY_FIXED_AMOUNT, AdditionalCommission.JSON_PROPERTY_VARIABLE_PERCENTAGE }) - public class AdditionalCommission { public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; @@ -43,13 +33,13 @@ public class AdditionalCommission { public static final String JSON_PROPERTY_VARIABLE_PERCENTAGE = "variablePercentage"; private Long variablePercentage; - public AdditionalCommission() { - } + public AdditionalCommission() {} /** * Unique identifier of the balance account to which the additional commission is booked. * - * @param balanceAccountId Unique identifier of the balance account to which the additional commission is booked. + * @param balanceAccountId Unique identifier of the balance account to which the additional + * commission is booked. * @return the current {@code AdditionalCommission} instance, allowing for method chaining */ public AdditionalCommission balanceAccountId(String balanceAccountId) { @@ -59,7 +49,9 @@ public AdditionalCommission balanceAccountId(String balanceAccountId) { /** * Unique identifier of the balance account to which the additional commission is booked. - * @return balanceAccountId Unique identifier of the balance account to which the additional commission is booked. + * + * @return balanceAccountId Unique identifier of the balance account to which the additional + * commission is booked. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,7 +62,8 @@ public String getBalanceAccountId() { /** * Unique identifier of the balance account to which the additional commission is booked. * - * @param balanceAccountId Unique identifier of the balance account to which the additional commission is booked. + * @param balanceAccountId Unique identifier of the balance account to which the additional + * commission is booked. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -91,6 +84,7 @@ public AdditionalCommission fixedAmount(Long fixedAmount) { /** * A fixed commission fee, in minor units. + * * @return fixedAmount A fixed commission fee, in minor units. */ @JsonProperty(JSON_PROPERTY_FIXED_AMOUNT) @@ -123,6 +117,7 @@ public AdditionalCommission variablePercentage(Long variablePercentage) { /** * A variable commission fee, in basis points. + * * @return variablePercentage A variable commission fee, in basis points. */ @JsonProperty(JSON_PROPERTY_VARIABLE_PERCENTAGE) @@ -142,9 +137,7 @@ public void setVariablePercentage(Long variablePercentage) { this.variablePercentage = variablePercentage; } - /** - * Return true if this AdditionalCommission object is equal to o. - */ + /** Return true if this AdditionalCommission object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +147,9 @@ public boolean equals(Object o) { return false; } AdditionalCommission additionalCommission = (AdditionalCommission) o; - return Objects.equals(this.balanceAccountId, additionalCommission.balanceAccountId) && - Objects.equals(this.fixedAmount, additionalCommission.fixedAmount) && - Objects.equals(this.variablePercentage, additionalCommission.variablePercentage); + return Objects.equals(this.balanceAccountId, additionalCommission.balanceAccountId) + && Objects.equals(this.fixedAmount, additionalCommission.fixedAmount) + && Objects.equals(this.variablePercentage, additionalCommission.variablePercentage); } @Override @@ -176,8 +169,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +178,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalCommission given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalCommission - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalCommission + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalCommission */ public static AdditionalCommission fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalCommission.class); } -/** - * Convert an instance of AdditionalCommission to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalCommission to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/AdditionalSettings.java b/src/main/java/com/adyen/model/management/AdditionalSettings.java index a5c7ab687..5c6397fdf 100644 --- a/src/main/java/com/adyen/model/management/AdditionalSettings.java +++ b/src/main/java/com/adyen/model/management/AdditionalSettings.java @@ -2,40 +2,30 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; -import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -/** - * AdditionalSettings - */ +/** AdditionalSettings */ @JsonPropertyOrder({ AdditionalSettings.JSON_PROPERTY_INCLUDE_EVENT_CODES, AdditionalSettings.JSON_PROPERTY_PROPERTIES }) - public class AdditionalSettings { public static final String JSON_PROPERTY_INCLUDE_EVENT_CODES = "includeEventCodes"; private List includeEventCodes; @@ -43,13 +33,13 @@ public class AdditionalSettings { public static final String JSON_PROPERTY_PROPERTIES = "properties"; private Map properties; - public AdditionalSettings() { - } + public AdditionalSettings() {} /** - * Object containing list of event codes for which the notification will be sent. + * Object containing list of event codes for which the notification will be sent. * - * @param includeEventCodes Object containing list of event codes for which the notification will be sent. + * @param includeEventCodes Object containing list of event codes for which the notification will + * be sent. * @return the current {@code AdditionalSettings} instance, allowing for method chaining */ public AdditionalSettings includeEventCodes(List includeEventCodes) { @@ -66,8 +56,10 @@ public AdditionalSettings addIncludeEventCodesItem(String includeEventCodesItem) } /** - * Object containing list of event codes for which the notification will be sent. - * @return includeEventCodes Object containing list of event codes for which the notification will be sent. + * Object containing list of event codes for which the notification will be sent. + * + * @return includeEventCodes Object containing list of event codes for which the notification will + * be sent. */ @JsonProperty(JSON_PROPERTY_INCLUDE_EVENT_CODES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -76,9 +68,10 @@ public List getIncludeEventCodes() { } /** - * Object containing list of event codes for which the notification will be sent. + * Object containing list of event codes for which the notification will be sent. * - * @param includeEventCodes Object containing list of event codes for which the notification will be sent. + * @param includeEventCodes Object containing list of event codes for which the notification will + * be sent. */ @JsonProperty(JSON_PROPERTY_INCLUDE_EVENT_CODES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,9 +80,18 @@ public void setIncludeEventCodes(List includeEventCodes) { } /** - * Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `captureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured. + * Object containing boolean key-value pairs. The key can be any [standard webhook additional + * setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the + * value indicates if the setting is enabled. For example, `captureDelayHours`: **true** + * means the standard notifications you get will contain the number of hours remaining until the + * payment will be captured. * - * @param properties Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `captureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured. + * @param properties Object containing boolean key-value pairs. The key can be any [standard + * webhook additional + * setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and + * the value indicates if the setting is enabled. For example, `captureDelayHours`: + * **true** means the standard notifications you get will contain the number of hours + * remaining until the payment will be captured. * @return the current {@code AdditionalSettings} instance, allowing for method chaining */ public AdditionalSettings properties(Map properties) { @@ -106,8 +108,18 @@ public AdditionalSettings putPropertiesItem(String key, Boolean propertiesItem) } /** - * Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `captureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured. - * @return properties Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `captureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured. + * Object containing boolean key-value pairs. The key can be any [standard webhook additional + * setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the + * value indicates if the setting is enabled. For example, `captureDelayHours`: **true** + * means the standard notifications you get will contain the number of hours remaining until the + * payment will be captured. + * + * @return properties Object containing boolean key-value pairs. The key can be any [standard + * webhook additional + * setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and + * the value indicates if the setting is enabled. For example, `captureDelayHours`: + * **true** means the standard notifications you get will contain the number of hours + * remaining until the payment will be captured. */ @JsonProperty(JSON_PROPERTY_PROPERTIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,9 +128,18 @@ public Map getProperties() { } /** - * Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `captureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured. + * Object containing boolean key-value pairs. The key can be any [standard webhook additional + * setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the + * value indicates if the setting is enabled. For example, `captureDelayHours`: **true** + * means the standard notifications you get will contain the number of hours remaining until the + * payment will be captured. * - * @param properties Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `captureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured. + * @param properties Object containing boolean key-value pairs. The key can be any [standard + * webhook additional + * setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and + * the value indicates if the setting is enabled. For example, `captureDelayHours`: + * **true** means the standard notifications you get will contain the number of hours + * remaining until the payment will be captured. */ @JsonProperty(JSON_PROPERTY_PROPERTIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,9 +147,7 @@ public void setProperties(Map properties) { this.properties = properties; } - /** - * Return true if this AdditionalSettings object is equal to o. - */ + /** Return true if this AdditionalSettings object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -138,8 +157,8 @@ public boolean equals(Object o) { return false; } AdditionalSettings additionalSettings = (AdditionalSettings) o; - return Objects.equals(this.includeEventCodes, additionalSettings.includeEventCodes) && - Objects.equals(this.properties, additionalSettings.properties); + return Objects.equals(this.includeEventCodes, additionalSettings.includeEventCodes) + && Objects.equals(this.properties, additionalSettings.properties); } @Override @@ -158,8 +177,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -168,21 +186,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalSettings given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalSettings - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalSettings + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalSettings */ public static AdditionalSettings fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalSettings.class); } -/** - * Convert an instance of AdditionalSettings to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalSettings to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/AdditionalSettingsResponse.java b/src/main/java/com/adyen/model/management/AdditionalSettingsResponse.java index f62d6c2a8..27aab59e8 100644 --- a/src/main/java/com/adyen/model/management/AdditionalSettingsResponse.java +++ b/src/main/java/com/adyen/model/management/AdditionalSettingsResponse.java @@ -2,41 +2,31 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; -import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -/** - * AdditionalSettingsResponse - */ +/** AdditionalSettingsResponse */ @JsonPropertyOrder({ AdditionalSettingsResponse.JSON_PROPERTY_EXCLUDE_EVENT_CODES, AdditionalSettingsResponse.JSON_PROPERTY_INCLUDE_EVENT_CODES, AdditionalSettingsResponse.JSON_PROPERTY_PROPERTIES }) - public class AdditionalSettingsResponse { public static final String JSON_PROPERTY_EXCLUDE_EVENT_CODES = "excludeEventCodes"; private List excludeEventCodes; @@ -47,13 +37,13 @@ public class AdditionalSettingsResponse { public static final String JSON_PROPERTY_PROPERTIES = "properties"; private Map properties; - public AdditionalSettingsResponse() { - } + public AdditionalSettingsResponse() {} /** - * Object containing list of event codes for which the notification will not be sent. + * Object containing list of event codes for which the notification will not be sent. * - * @param excludeEventCodes Object containing list of event codes for which the notification will not be sent. + * @param excludeEventCodes Object containing list of event codes for which the notification will + * not be sent. * @return the current {@code AdditionalSettingsResponse} instance, allowing for method chaining */ public AdditionalSettingsResponse excludeEventCodes(List excludeEventCodes) { @@ -70,8 +60,10 @@ public AdditionalSettingsResponse addExcludeEventCodesItem(String excludeEventCo } /** - * Object containing list of event codes for which the notification will not be sent. - * @return excludeEventCodes Object containing list of event codes for which the notification will not be sent. + * Object containing list of event codes for which the notification will not be sent. + * + * @return excludeEventCodes Object containing list of event codes for which the notification will + * not be sent. */ @JsonProperty(JSON_PROPERTY_EXCLUDE_EVENT_CODES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,9 +72,10 @@ public List getExcludeEventCodes() { } /** - * Object containing list of event codes for which the notification will not be sent. + * Object containing list of event codes for which the notification will not be sent. * - * @param excludeEventCodes Object containing list of event codes for which the notification will not be sent. + * @param excludeEventCodes Object containing list of event codes for which the notification will + * not be sent. */ @JsonProperty(JSON_PROPERTY_EXCLUDE_EVENT_CODES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -91,9 +84,10 @@ public void setExcludeEventCodes(List excludeEventCodes) { } /** - * Object containing list of event codes for which the notification will be sent. + * Object containing list of event codes for which the notification will be sent. * - * @param includeEventCodes Object containing list of event codes for which the notification will be sent. + * @param includeEventCodes Object containing list of event codes for which the notification will + * be sent. * @return the current {@code AdditionalSettingsResponse} instance, allowing for method chaining */ public AdditionalSettingsResponse includeEventCodes(List includeEventCodes) { @@ -110,8 +104,10 @@ public AdditionalSettingsResponse addIncludeEventCodesItem(String includeEventCo } /** - * Object containing list of event codes for which the notification will be sent. - * @return includeEventCodes Object containing list of event codes for which the notification will be sent. + * Object containing list of event codes for which the notification will be sent. + * + * @return includeEventCodes Object containing list of event codes for which the notification will + * be sent. */ @JsonProperty(JSON_PROPERTY_INCLUDE_EVENT_CODES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -120,9 +116,10 @@ public List getIncludeEventCodes() { } /** - * Object containing list of event codes for which the notification will be sent. + * Object containing list of event codes for which the notification will be sent. * - * @param includeEventCodes Object containing list of event codes for which the notification will be sent. + * @param includeEventCodes Object containing list of event codes for which the notification will + * be sent. */ @JsonProperty(JSON_PROPERTY_INCLUDE_EVENT_CODES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -131,9 +128,18 @@ public void setIncludeEventCodes(List includeEventCodes) { } /** - * Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `captureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured. + * Object containing boolean key-value pairs. The key can be any [standard webhook additional + * setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the + * value indicates if the setting is enabled. For example, `captureDelayHours`: **true** + * means the standard notifications you get will contain the number of hours remaining until the + * payment will be captured. * - * @param properties Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `captureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured. + * @param properties Object containing boolean key-value pairs. The key can be any [standard + * webhook additional + * setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and + * the value indicates if the setting is enabled. For example, `captureDelayHours`: + * **true** means the standard notifications you get will contain the number of hours + * remaining until the payment will be captured. * @return the current {@code AdditionalSettingsResponse} instance, allowing for method chaining */ public AdditionalSettingsResponse properties(Map properties) { @@ -150,8 +156,18 @@ public AdditionalSettingsResponse putPropertiesItem(String key, Boolean properti } /** - * Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `captureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured. - * @return properties Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `captureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured. + * Object containing boolean key-value pairs. The key can be any [standard webhook additional + * setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the + * value indicates if the setting is enabled. For example, `captureDelayHours`: **true** + * means the standard notifications you get will contain the number of hours remaining until the + * payment will be captured. + * + * @return properties Object containing boolean key-value pairs. The key can be any [standard + * webhook additional + * setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and + * the value indicates if the setting is enabled. For example, `captureDelayHours`: + * **true** means the standard notifications you get will contain the number of hours + * remaining until the payment will be captured. */ @JsonProperty(JSON_PROPERTY_PROPERTIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,9 +176,18 @@ public Map getProperties() { } /** - * Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `captureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured. + * Object containing boolean key-value pairs. The key can be any [standard webhook additional + * setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the + * value indicates if the setting is enabled. For example, `captureDelayHours`: **true** + * means the standard notifications you get will contain the number of hours remaining until the + * payment will be captured. * - * @param properties Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `captureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured. + * @param properties Object containing boolean key-value pairs. The key can be any [standard + * webhook additional + * setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and + * the value indicates if the setting is enabled. For example, `captureDelayHours`: + * **true** means the standard notifications you get will contain the number of hours + * remaining until the payment will be captured. */ @JsonProperty(JSON_PROPERTY_PROPERTIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -170,9 +195,7 @@ public void setProperties(Map properties) { this.properties = properties; } - /** - * Return true if this AdditionalSettingsResponse object is equal to o. - */ + /** Return true if this AdditionalSettingsResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -182,9 +205,9 @@ public boolean equals(Object o) { return false; } AdditionalSettingsResponse additionalSettingsResponse = (AdditionalSettingsResponse) o; - return Objects.equals(this.excludeEventCodes, additionalSettingsResponse.excludeEventCodes) && - Objects.equals(this.includeEventCodes, additionalSettingsResponse.includeEventCodes) && - Objects.equals(this.properties, additionalSettingsResponse.properties); + return Objects.equals(this.excludeEventCodes, additionalSettingsResponse.excludeEventCodes) + && Objects.equals(this.includeEventCodes, additionalSettingsResponse.includeEventCodes) + && Objects.equals(this.properties, additionalSettingsResponse.properties); } @Override @@ -204,8 +227,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -214,21 +236,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalSettingsResponse given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalSettingsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalSettingsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalSettingsResponse */ - public static AdditionalSettingsResponse fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalSettingsResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalSettingsResponse.class); } -/** - * Convert an instance of AdditionalSettingsResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalSettingsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Address.java b/src/main/java/com/adyen/model/management/Address.java index 1597c4aa4..bd851098a 100644 --- a/src/main/java/com/adyen/model/management/Address.java +++ b/src/main/java/com/adyen/model/management/Address.java @@ -2,31 +2,22 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Address - */ +/** Address */ @JsonPropertyOrder({ Address.JSON_PROPERTY_CITY, Address.JSON_PROPERTY_COMPANY_NAME, @@ -36,7 +27,6 @@ Address.JSON_PROPERTY_STREET_ADDRESS, Address.JSON_PROPERTY_STREET_ADDRESS2 }) - public class Address { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -59,8 +49,7 @@ public class Address { public static final String JSON_PROPERTY_STREET_ADDRESS2 = "streetAddress2"; private String streetAddress2; - public Address() { - } + public Address() {} /** * The name of the city. @@ -75,6 +64,7 @@ public Address city(String city) { /** * The name of the city. + * * @return city The name of the city. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -107,6 +97,7 @@ public Address companyName(String companyName) { /** * The name of the company. + * * @return companyName The name of the company. */ @JsonProperty(JSON_PROPERTY_COMPANY_NAME) @@ -127,9 +118,11 @@ public void setCompanyName(String companyName) { } /** - * The two-letter country code, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. + * The two-letter country code, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * - * @param country The two-letter country code, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. + * @param country The two-letter country code, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * @return the current {@code Address} instance, allowing for method chaining */ public Address country(String country) { @@ -138,8 +131,11 @@ public Address country(String country) { } /** - * The two-letter country code, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. - * @return country The two-letter country code, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. + * The two-letter country code, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. + * + * @return country The two-letter country code, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,9 +144,11 @@ public String getCountry() { } /** - * The two-letter country code, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. + * The two-letter country code, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * - * @param country The two-letter country code, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. + * @param country The two-letter country code, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -171,6 +169,7 @@ public Address postalCode(String postalCode) { /** * The postal code. + * * @return postalCode The postal code. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @@ -191,9 +190,14 @@ public void setPostalCode(String postalCode) { } /** - * The state or province as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Applicable for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States + * The state or province as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For + * example, **ON** for Ontario, Canada. Applicable for the following countries: - Australia - + * Brazil - Canada - India - Mexico - New Zealand - United States * - * @param stateOrProvince The state or province as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Applicable for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States + * @param stateOrProvince The state or province as defined in [ISO + * 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. + * Applicable for the following countries: - Australia - Brazil - Canada - India - Mexico - + * New Zealand - United States * @return the current {@code Address} instance, allowing for method chaining */ public Address stateOrProvince(String stateOrProvince) { @@ -202,8 +206,14 @@ public Address stateOrProvince(String stateOrProvince) { } /** - * The state or province as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Applicable for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States - * @return stateOrProvince The state or province as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Applicable for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States + * The state or province as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For + * example, **ON** for Ontario, Canada. Applicable for the following countries: - Australia - + * Brazil - Canada - India - Mexico - New Zealand - United States + * + * @return stateOrProvince The state or province as defined in [ISO + * 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. + * Applicable for the following countries: - Australia - Brazil - Canada - India - Mexico - + * New Zealand - United States */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -212,9 +222,14 @@ public String getStateOrProvince() { } /** - * The state or province as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Applicable for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States + * The state or province as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For + * example, **ON** for Ontario, Canada. Applicable for the following countries: - Australia - + * Brazil - Canada - India - Mexico - New Zealand - United States * - * @param stateOrProvince The state or province as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Applicable for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States + * @param stateOrProvince The state or province as defined in [ISO + * 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. + * Applicable for the following countries: - Australia - Brazil - Canada - India - Mexico - + * New Zealand - United States */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -235,6 +250,7 @@ public Address streetAddress(String streetAddress) { /** * The name of the street, and the house or building number. + * * @return streetAddress The name of the street, and the house or building number. */ @JsonProperty(JSON_PROPERTY_STREET_ADDRESS) @@ -267,6 +283,7 @@ public Address streetAddress2(String streetAddress2) { /** * Additional address details, if any. + * * @return streetAddress2 Additional address details, if any. */ @JsonProperty(JSON_PROPERTY_STREET_ADDRESS2) @@ -286,9 +303,7 @@ public void setStreetAddress2(String streetAddress2) { this.streetAddress2 = streetAddress2; } - /** - * Return true if this Address object is equal to o. - */ + /** Return true if this Address object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -298,18 +313,19 @@ public boolean equals(Object o) { return false; } Address address = (Address) o; - return Objects.equals(this.city, address.city) && - Objects.equals(this.companyName, address.companyName) && - Objects.equals(this.country, address.country) && - Objects.equals(this.postalCode, address.postalCode) && - Objects.equals(this.stateOrProvince, address.stateOrProvince) && - Objects.equals(this.streetAddress, address.streetAddress) && - Objects.equals(this.streetAddress2, address.streetAddress2); + return Objects.equals(this.city, address.city) + && Objects.equals(this.companyName, address.companyName) + && Objects.equals(this.country, address.country) + && Objects.equals(this.postalCode, address.postalCode) + && Objects.equals(this.stateOrProvince, address.stateOrProvince) + && Objects.equals(this.streetAddress, address.streetAddress) + && Objects.equals(this.streetAddress2, address.streetAddress2); } @Override public int hashCode() { - return Objects.hash(city, companyName, country, postalCode, stateOrProvince, streetAddress, streetAddress2); + return Objects.hash( + city, companyName, country, postalCode, stateOrProvince, streetAddress, streetAddress2); } @Override @@ -328,8 +344,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -338,7 +353,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Address given an JSON string * * @param jsonString JSON string @@ -348,11 +363,12 @@ private String toIndentedString(Object o) { public static Address fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Address.class); } -/** - * Convert an instance of Address to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Address to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/AffirmInfo.java b/src/main/java/com/adyen/model/management/AffirmInfo.java index 5169a422a..cd316e382 100644 --- a/src/main/java/com/adyen/model/management/AffirmInfo.java +++ b/src/main/java/com/adyen/model/management/AffirmInfo.java @@ -2,41 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AffirmInfo - */ -@JsonPropertyOrder({ - AffirmInfo.JSON_PROPERTY_SUPPORT_EMAIL -}) - +/** AffirmInfo */ +@JsonPropertyOrder({AffirmInfo.JSON_PROPERTY_SUPPORT_EMAIL}) public class AffirmInfo { public static final String JSON_PROPERTY_SUPPORT_EMAIL = "supportEmail"; private String supportEmail; - public AffirmInfo() { - } + public AffirmInfo() {} /** * Merchant support email @@ -51,6 +38,7 @@ public AffirmInfo supportEmail(String supportEmail) { /** * Merchant support email + * * @return supportEmail Merchant support email */ @JsonProperty(JSON_PROPERTY_SUPPORT_EMAIL) @@ -70,9 +58,7 @@ public void setSupportEmail(String supportEmail) { this.supportEmail = supportEmail; } - /** - * Return true if this AffirmInfo object is equal to o. - */ + /** Return true if this AffirmInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,7 +95,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AffirmInfo given an JSON string * * @param jsonString JSON string @@ -120,11 +105,12 @@ private String toIndentedString(Object o) { public static AffirmInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AffirmInfo.class); } -/** - * Convert an instance of AffirmInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AffirmInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/AfterpayTouchInfo.java b/src/main/java/com/adyen/model/management/AfterpayTouchInfo.java index cc19c2fbb..9e35f4215 100644 --- a/src/main/java/com/adyen/model/management/AfterpayTouchInfo.java +++ b/src/main/java/com/adyen/model/management/AfterpayTouchInfo.java @@ -2,36 +2,26 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AfterpayTouchInfo - */ +/** AfterpayTouchInfo */ @JsonPropertyOrder({ AfterpayTouchInfo.JSON_PROPERTY_SUPPORT_EMAIL, AfterpayTouchInfo.JSON_PROPERTY_SUPPORT_URL }) - public class AfterpayTouchInfo { public static final String JSON_PROPERTY_SUPPORT_EMAIL = "supportEmail"; private String supportEmail; @@ -39,8 +29,7 @@ public class AfterpayTouchInfo { public static final String JSON_PROPERTY_SUPPORT_URL = "supportUrl"; private String supportUrl; - public AfterpayTouchInfo() { - } + public AfterpayTouchInfo() {} /** * Support Email @@ -55,6 +44,7 @@ public AfterpayTouchInfo supportEmail(String supportEmail) { /** * Support Email + * * @return supportEmail Support Email */ @JsonProperty(JSON_PROPERTY_SUPPORT_EMAIL) @@ -87,6 +77,7 @@ public AfterpayTouchInfo supportUrl(String supportUrl) { /** * Support Url + * * @return supportUrl Support Url */ @JsonProperty(JSON_PROPERTY_SUPPORT_URL) @@ -106,9 +97,7 @@ public void setSupportUrl(String supportUrl) { this.supportUrl = supportUrl; } - /** - * Return true if this AfterpayTouchInfo object is equal to o. - */ + /** Return true if this AfterpayTouchInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +107,8 @@ public boolean equals(Object o) { return false; } AfterpayTouchInfo afterpayTouchInfo = (AfterpayTouchInfo) o; - return Objects.equals(this.supportEmail, afterpayTouchInfo.supportEmail) && - Objects.equals(this.supportUrl, afterpayTouchInfo.supportUrl); + return Objects.equals(this.supportEmail, afterpayTouchInfo.supportEmail) + && Objects.equals(this.supportUrl, afterpayTouchInfo.supportUrl); } @Override @@ -138,8 +127,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +136,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AfterpayTouchInfo given an JSON string * * @param jsonString JSON string @@ -158,11 +146,12 @@ private String toIndentedString(Object o) { public static AfterpayTouchInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AfterpayTouchInfo.class); } -/** - * Convert an instance of AfterpayTouchInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AfterpayTouchInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/AlipayPlusInfo.java b/src/main/java/com/adyen/model/management/AlipayPlusInfo.java index e0d450378..1923a39a6 100644 --- a/src/main/java/com/adyen/model/management/AlipayPlusInfo.java +++ b/src/main/java/com/adyen/model/management/AlipayPlusInfo.java @@ -2,41 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AlipayPlusInfo - */ -@JsonPropertyOrder({ - AlipayPlusInfo.JSON_PROPERTY_SETTLEMENT_CURRENCY_CODE -}) - +/** AlipayPlusInfo */ +@JsonPropertyOrder({AlipayPlusInfo.JSON_PROPERTY_SETTLEMENT_CURRENCY_CODE}) public class AlipayPlusInfo { public static final String JSON_PROPERTY_SETTLEMENT_CURRENCY_CODE = "settlementCurrencyCode"; private String settlementCurrencyCode; - public AlipayPlusInfo() { - } + public AlipayPlusInfo() {} /** * The currency used for settlement. Defaults to USD. @@ -51,6 +38,7 @@ public AlipayPlusInfo settlementCurrencyCode(String settlementCurrencyCode) { /** * The currency used for settlement. Defaults to USD. + * * @return settlementCurrencyCode The currency used for settlement. Defaults to USD. */ @JsonProperty(JSON_PROPERTY_SETTLEMENT_CURRENCY_CODE) @@ -70,9 +58,7 @@ public void setSettlementCurrencyCode(String settlementCurrencyCode) { this.settlementCurrencyCode = settlementCurrencyCode; } - /** - * Return true if this AlipayPlusInfo object is equal to o. - */ + /** Return true if this AlipayPlusInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -94,14 +80,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AlipayPlusInfo {\n"); - sb.append(" settlementCurrencyCode: ").append(toIndentedString(settlementCurrencyCode)).append("\n"); + sb.append(" settlementCurrencyCode: ") + .append(toIndentedString(settlementCurrencyCode)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,7 +97,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AlipayPlusInfo given an JSON string * * @param jsonString JSON string @@ -120,11 +107,12 @@ private String toIndentedString(Object o) { public static AlipayPlusInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AlipayPlusInfo.class); } -/** - * Convert an instance of AlipayPlusInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AlipayPlusInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/AllowedOrigin.java b/src/main/java/com/adyen/model/management/AllowedOrigin.java index 436877bab..10b23b032 100644 --- a/src/main/java/com/adyen/model/management/AllowedOrigin.java +++ b/src/main/java/com/adyen/model/management/AllowedOrigin.java @@ -2,38 +2,27 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.Links; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AllowedOrigin - */ +/** AllowedOrigin */ @JsonPropertyOrder({ AllowedOrigin.JSON_PROPERTY_LINKS, AllowedOrigin.JSON_PROPERTY_DOMAIN, AllowedOrigin.JSON_PROPERTY_ID }) - public class AllowedOrigin { public static final String JSON_PROPERTY_LINKS = "_links"; private Links links; @@ -44,13 +33,12 @@ public class AllowedOrigin { public static final String JSON_PROPERTY_ID = "id"; private String id; - public AllowedOrigin() { - } + public AllowedOrigin() {} /** * links * - * @param links + * @param links * @return the current {@code AllowedOrigin} instance, allowing for method chaining */ public AllowedOrigin links(Links links) { @@ -60,7 +48,8 @@ public AllowedOrigin links(Links links) { /** * Get links - * @return links + * + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,7 +60,7 @@ public Links getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -92,6 +81,7 @@ public AllowedOrigin domain(String domain) { /** * Domain of the allowed origin. + * * @return domain Domain of the allowed origin. */ @JsonProperty(JSON_PROPERTY_DOMAIN) @@ -124,6 +114,7 @@ public AllowedOrigin id(String id) { /** * Unique identifier of the allowed origin. + * * @return id Unique identifier of the allowed origin. */ @JsonProperty(JSON_PROPERTY_ID) @@ -143,9 +134,7 @@ public void setId(String id) { this.id = id; } - /** - * Return true if this AllowedOrigin object is equal to o. - */ + /** Return true if this AllowedOrigin object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -155,9 +144,9 @@ public boolean equals(Object o) { return false; } AllowedOrigin allowedOrigin = (AllowedOrigin) o; - return Objects.equals(this.links, allowedOrigin.links) && - Objects.equals(this.domain, allowedOrigin.domain) && - Objects.equals(this.id, allowedOrigin.id); + return Objects.equals(this.links, allowedOrigin.links) + && Objects.equals(this.domain, allowedOrigin.domain) + && Objects.equals(this.id, allowedOrigin.id); } @Override @@ -177,8 +166,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -187,7 +175,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AllowedOrigin given an JSON string * * @param jsonString JSON string @@ -197,11 +185,12 @@ private String toIndentedString(Object o) { public static AllowedOrigin fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AllowedOrigin.class); } -/** - * Convert an instance of AllowedOrigin to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AllowedOrigin to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/AllowedOriginsResponse.java b/src/main/java/com/adyen/model/management/AllowedOriginsResponse.java index 5d49b2c52..8554427ea 100644 --- a/src/main/java/com/adyen/model/management/AllowedOriginsResponse.java +++ b/src/main/java/com/adyen/model/management/AllowedOriginsResponse.java @@ -2,44 +2,30 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.AllowedOrigin; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * AllowedOriginsResponse - */ -@JsonPropertyOrder({ - AllowedOriginsResponse.JSON_PROPERTY_DATA -}) - +/** AllowedOriginsResponse */ +@JsonPropertyOrder({AllowedOriginsResponse.JSON_PROPERTY_DATA}) public class AllowedOriginsResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; - public AllowedOriginsResponse() { - } + public AllowedOriginsResponse() {} /** * List of allowed origins. @@ -62,6 +48,7 @@ public AllowedOriginsResponse addDataItem(AllowedOrigin dataItem) { /** * List of allowed origins. + * * @return data List of allowed origins. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -81,9 +68,7 @@ public void setData(List data) { this.data = data; } - /** - * Return true if this AllowedOriginsResponse object is equal to o. - */ + /** Return true if this AllowedOriginsResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -111,8 +96,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -121,21 +105,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AllowedOriginsResponse given an JSON string * * @param jsonString JSON string * @return An instance of AllowedOriginsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to AllowedOriginsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AllowedOriginsResponse */ public static AllowedOriginsResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AllowedOriginsResponse.class); } -/** - * Convert an instance of AllowedOriginsResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AllowedOriginsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/AmexInfo.java b/src/main/java/com/adyen/model/management/AmexInfo.java index 6eabdc88c..75fdef543 100644 --- a/src/main/java/com/adyen/model/management/AmexInfo.java +++ b/src/main/java/com/adyen/model/management/AmexInfo.java @@ -2,37 +2,31 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * AmexInfo - */ +/** AmexInfo */ @JsonPropertyOrder({ AmexInfo.JSON_PROPERTY_MID_NUMBER, AmexInfo.JSON_PROPERTY_REUSE_MID_NUMBER, AmexInfo.JSON_PROPERTY_SERVICE_LEVEL }) - public class AmexInfo { public static final String JSON_PROPERTY_MID_NUMBER = "midNumber"; private String midNumber; @@ -41,10 +35,13 @@ public class AmexInfo { private Boolean reuseMidNumber; /** - * Specifies the service level (settlement type) of this payment method. Possible values: * **noContract**: Adyen holds the contract with American Express. * **gatewayContract**: American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Adyen receives the settlement, and handles disputes and payouts. + * Specifies the service level (settlement type) of this payment method. Possible values: * + * **noContract**: Adyen holds the contract with American Express. * **gatewayContract**: American + * Express receives the settlement and handles disputes, then pays out to you or your sub-merchant + * directly. * **paymentDesignatorContract**: Adyen receives the settlement, and handles disputes + * and payouts. */ public enum ServiceLevelEnum { - NOCONTRACT(String.valueOf("noContract")), GATEWAYCONTRACT(String.valueOf("gatewayContract")), @@ -56,7 +53,7 @@ public enum ServiceLevelEnum { private String value; ServiceLevelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -77,7 +74,11 @@ public static ServiceLevelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ServiceLevelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ServiceLevelEnum.values())); + LOG.warning( + "ServiceLevelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ServiceLevelEnum.values())); return null; } } @@ -85,13 +86,15 @@ public static ServiceLevelEnum fromValue(String value) { public static final String JSON_PROPERTY_SERVICE_LEVEL = "serviceLevel"; private ServiceLevelEnum serviceLevel; - public AmexInfo() { - } + public AmexInfo() {} /** - * Merchant ID (MID) number. Format: 10 numeric characters. You must provide this field when you request `gatewayContract` or `paymentDesignatorContract` service levels. + * Merchant ID (MID) number. Format: 10 numeric characters. You must provide this field when you + * request `gatewayContract` or `paymentDesignatorContract` service levels. * - * @param midNumber Merchant ID (MID) number. Format: 10 numeric characters. You must provide this field when you request `gatewayContract` or `paymentDesignatorContract` service levels. + * @param midNumber Merchant ID (MID) number. Format: 10 numeric characters. You must provide this + * field when you request `gatewayContract` or `paymentDesignatorContract` + * service levels. * @return the current {@code AmexInfo} instance, allowing for method chaining */ public AmexInfo midNumber(String midNumber) { @@ -100,8 +103,12 @@ public AmexInfo midNumber(String midNumber) { } /** - * Merchant ID (MID) number. Format: 10 numeric characters. You must provide this field when you request `gatewayContract` or `paymentDesignatorContract` service levels. - * @return midNumber Merchant ID (MID) number. Format: 10 numeric characters. You must provide this field when you request `gatewayContract` or `paymentDesignatorContract` service levels. + * Merchant ID (MID) number. Format: 10 numeric characters. You must provide this field when you + * request `gatewayContract` or `paymentDesignatorContract` service levels. + * + * @return midNumber Merchant ID (MID) number. Format: 10 numeric characters. You must provide + * this field when you request `gatewayContract` or + * `paymentDesignatorContract` service levels. */ @JsonProperty(JSON_PROPERTY_MID_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,9 +117,12 @@ public String getMidNumber() { } /** - * Merchant ID (MID) number. Format: 10 numeric characters. You must provide this field when you request `gatewayContract` or `paymentDesignatorContract` service levels. + * Merchant ID (MID) number. Format: 10 numeric characters. You must provide this field when you + * request `gatewayContract` or `paymentDesignatorContract` service levels. * - * @param midNumber Merchant ID (MID) number. Format: 10 numeric characters. You must provide this field when you request `gatewayContract` or `paymentDesignatorContract` service levels. + * @param midNumber Merchant ID (MID) number. Format: 10 numeric characters. You must provide this + * field when you request `gatewayContract` or `paymentDesignatorContract` + * service levels. */ @JsonProperty(JSON_PROPERTY_MID_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,9 +131,13 @@ public void setMidNumber(String midNumber) { } /** - * Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method. This is only applicable for `gatewayContract` and `paymentDesignatorContract` service levels. The default value is **false**. + * Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method. + * This is only applicable for `gatewayContract` and + * `paymentDesignatorContract` service levels. The default value is **false**. * - * @param reuseMidNumber Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method. This is only applicable for `gatewayContract` and `paymentDesignatorContract` service levels. The default value is **false**. + * @param reuseMidNumber Indicates whether the Amex Merchant ID is reused from a previously setup + * Amex payment method. This is only applicable for `gatewayContract` and + * `paymentDesignatorContract` service levels. The default value is **false**. * @return the current {@code AmexInfo} instance, allowing for method chaining */ public AmexInfo reuseMidNumber(Boolean reuseMidNumber) { @@ -132,8 +146,13 @@ public AmexInfo reuseMidNumber(Boolean reuseMidNumber) { } /** - * Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method. This is only applicable for `gatewayContract` and `paymentDesignatorContract` service levels. The default value is **false**. - * @return reuseMidNumber Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method. This is only applicable for `gatewayContract` and `paymentDesignatorContract` service levels. The default value is **false**. + * Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method. + * This is only applicable for `gatewayContract` and + * `paymentDesignatorContract` service levels. The default value is **false**. + * + * @return reuseMidNumber Indicates whether the Amex Merchant ID is reused from a previously setup + * Amex payment method. This is only applicable for `gatewayContract` and + * `paymentDesignatorContract` service levels. The default value is **false**. */ @JsonProperty(JSON_PROPERTY_REUSE_MID_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +161,13 @@ public Boolean getReuseMidNumber() { } /** - * Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method. This is only applicable for `gatewayContract` and `paymentDesignatorContract` service levels. The default value is **false**. + * Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method. + * This is only applicable for `gatewayContract` and + * `paymentDesignatorContract` service levels. The default value is **false**. * - * @param reuseMidNumber Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method. This is only applicable for `gatewayContract` and `paymentDesignatorContract` service levels. The default value is **false**. + * @param reuseMidNumber Indicates whether the Amex Merchant ID is reused from a previously setup + * Amex payment method. This is only applicable for `gatewayContract` and + * `paymentDesignatorContract` service levels. The default value is **false**. */ @JsonProperty(JSON_PROPERTY_REUSE_MID_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -153,9 +176,17 @@ public void setReuseMidNumber(Boolean reuseMidNumber) { } /** - * Specifies the service level (settlement type) of this payment method. Possible values: * **noContract**: Adyen holds the contract with American Express. * **gatewayContract**: American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Adyen receives the settlement, and handles disputes and payouts. + * Specifies the service level (settlement type) of this payment method. Possible values: * + * **noContract**: Adyen holds the contract with American Express. * **gatewayContract**: American + * Express receives the settlement and handles disputes, then pays out to you or your sub-merchant + * directly. * **paymentDesignatorContract**: Adyen receives the settlement, and handles disputes + * and payouts. * - * @param serviceLevel Specifies the service level (settlement type) of this payment method. Possible values: * **noContract**: Adyen holds the contract with American Express. * **gatewayContract**: American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Adyen receives the settlement, and handles disputes and payouts. + * @param serviceLevel Specifies the service level (settlement type) of this payment method. + * Possible values: * **noContract**: Adyen holds the contract with American Express. * + * **gatewayContract**: American Express receives the settlement and handles disputes, then + * pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Adyen + * receives the settlement, and handles disputes and payouts. * @return the current {@code AmexInfo} instance, allowing for method chaining */ public AmexInfo serviceLevel(ServiceLevelEnum serviceLevel) { @@ -164,8 +195,17 @@ public AmexInfo serviceLevel(ServiceLevelEnum serviceLevel) { } /** - * Specifies the service level (settlement type) of this payment method. Possible values: * **noContract**: Adyen holds the contract with American Express. * **gatewayContract**: American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Adyen receives the settlement, and handles disputes and payouts. - * @return serviceLevel Specifies the service level (settlement type) of this payment method. Possible values: * **noContract**: Adyen holds the contract with American Express. * **gatewayContract**: American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Adyen receives the settlement, and handles disputes and payouts. + * Specifies the service level (settlement type) of this payment method. Possible values: * + * **noContract**: Adyen holds the contract with American Express. * **gatewayContract**: American + * Express receives the settlement and handles disputes, then pays out to you or your sub-merchant + * directly. * **paymentDesignatorContract**: Adyen receives the settlement, and handles disputes + * and payouts. + * + * @return serviceLevel Specifies the service level (settlement type) of this payment method. + * Possible values: * **noContract**: Adyen holds the contract with American Express. * + * **gatewayContract**: American Express receives the settlement and handles disputes, then + * pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Adyen + * receives the settlement, and handles disputes and payouts. */ @JsonProperty(JSON_PROPERTY_SERVICE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -174,9 +214,17 @@ public ServiceLevelEnum getServiceLevel() { } /** - * Specifies the service level (settlement type) of this payment method. Possible values: * **noContract**: Adyen holds the contract with American Express. * **gatewayContract**: American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Adyen receives the settlement, and handles disputes and payouts. + * Specifies the service level (settlement type) of this payment method. Possible values: * + * **noContract**: Adyen holds the contract with American Express. * **gatewayContract**: American + * Express receives the settlement and handles disputes, then pays out to you or your sub-merchant + * directly. * **paymentDesignatorContract**: Adyen receives the settlement, and handles disputes + * and payouts. * - * @param serviceLevel Specifies the service level (settlement type) of this payment method. Possible values: * **noContract**: Adyen holds the contract with American Express. * **gatewayContract**: American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Adyen receives the settlement, and handles disputes and payouts. + * @param serviceLevel Specifies the service level (settlement type) of this payment method. + * Possible values: * **noContract**: Adyen holds the contract with American Express. * + * **gatewayContract**: American Express receives the settlement and handles disputes, then + * pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Adyen + * receives the settlement, and handles disputes and payouts. */ @JsonProperty(JSON_PROPERTY_SERVICE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -184,9 +232,7 @@ public void setServiceLevel(ServiceLevelEnum serviceLevel) { this.serviceLevel = serviceLevel; } - /** - * Return true if this AmexInfo object is equal to o. - */ + /** Return true if this AmexInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -196,9 +242,9 @@ public boolean equals(Object o) { return false; } AmexInfo amexInfo = (AmexInfo) o; - return Objects.equals(this.midNumber, amexInfo.midNumber) && - Objects.equals(this.reuseMidNumber, amexInfo.reuseMidNumber) && - Objects.equals(this.serviceLevel, amexInfo.serviceLevel); + return Objects.equals(this.midNumber, amexInfo.midNumber) + && Objects.equals(this.reuseMidNumber, amexInfo.reuseMidNumber) + && Objects.equals(this.serviceLevel, amexInfo.serviceLevel); } @Override @@ -218,8 +264,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -228,7 +273,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AmexInfo given an JSON string * * @param jsonString JSON string @@ -238,11 +283,12 @@ private String toIndentedString(Object o) { public static AmexInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AmexInfo.class); } -/** - * Convert an instance of AmexInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AmexInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Amount.java b/src/main/java/com/adyen/model/management/Amount.java index eba90d106..949e47a06 100644 --- a/src/main/java/com/adyen/model/management/Amount.java +++ b/src/main/java/com/adyen/model/management/Amount.java @@ -2,36 +2,23 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Amount - */ -@JsonPropertyOrder({ - Amount.JSON_PROPERTY_CURRENCY, - Amount.JSON_PROPERTY_VALUE -}) - +/** Amount */ +@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -39,13 +26,14 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() { - } + public Amount() {} /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount currency(String currency) { @@ -54,8 +42,11 @@ public Amount currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +55,11 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,9 +68,11 @@ public void setCurrency(String currency) { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount value(Long value) { @@ -86,8 +81,11 @@ public Amount value(Long value) { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). - * @return value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * + * @return value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +94,11 @@ public Long getValue() { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +106,7 @@ public void setValue(Long value) { this.value = value; } - /** - * Return true if this Amount object is equal to o. - */ + /** Return true if this Amount object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +116,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) && - Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) + && Objects.equals(this.value, amount.value); } @Override @@ -138,8 +136,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +145,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -158,11 +155,12 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } -/** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/AndroidApp.java b/src/main/java/com/adyen/model/management/AndroidApp.java index 6c815eea0..63a7015dc 100644 --- a/src/main/java/com/adyen/model/management/AndroidApp.java +++ b/src/main/java/com/adyen/model/management/AndroidApp.java @@ -2,34 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.AndroidAppError; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * AndroidApp - */ +/** AndroidApp */ @JsonPropertyOrder({ AndroidApp.JSON_PROPERTY_DESCRIPTION, AndroidApp.JSON_PROPERTY_ERROR_CODE, @@ -41,7 +35,6 @@ AndroidApp.JSON_PROPERTY_VERSION_CODE, AndroidApp.JSON_PROPERTY_VERSION_NAME }) - public class AndroidApp { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -63,10 +56,15 @@ public class AndroidApp { private String packageName; /** - * The status of the app. Possible values: * `processing`: the app is being signed and converted to a format that the terminal can handle. * `error`: something went wrong. Check that the app matches the [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * `invalid`: there is something wrong with the APK file of the app. * `ready`: the app has been signed and converted. * `archived`: the app is no longer available. + * The status of the app. Possible values: * `processing`: the app is being signed and + * converted to a format that the terminal can handle. * `error`: something went wrong. + * Check that the app matches the + * [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * + * `invalid`: there is something wrong with the APK file of the app. * + * `ready`: the app has been signed and converted. * `archived`: the app is no + * longer available. */ public enum StatusEnum { - ARCHIVED(String.valueOf("archived")), ERROR(String.valueOf("error")), @@ -82,7 +80,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -103,7 +101,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -117,13 +119,14 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_VERSION_NAME = "versionName"; private String versionName; - public AndroidApp() { - } + public AndroidApp() {} /** - * The description that was provided when uploading the app. The description is not shown on the terminal. + * The description that was provided when uploading the app. The description is not shown on the + * terminal. * - * @param description The description that was provided when uploading the app. The description is not shown on the terminal. + * @param description The description that was provided when uploading the app. The description is + * not shown on the terminal. * @return the current {@code AndroidApp} instance, allowing for method chaining */ public AndroidApp description(String description) { @@ -132,8 +135,11 @@ public AndroidApp description(String description) { } /** - * The description that was provided when uploading the app. The description is not shown on the terminal. - * @return description The description that was provided when uploading the app. The description is not shown on the terminal. + * The description that was provided when uploading the app. The description is not shown on the + * terminal. + * + * @return description The description that was provided when uploading the app. The description + * is not shown on the terminal. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +148,11 @@ public String getDescription() { } /** - * The description that was provided when uploading the app. The description is not shown on the terminal. + * The description that was provided when uploading the app. The description is not shown on the + * terminal. * - * @param description The description that was provided when uploading the app. The description is not shown on the terminal. + * @param description The description that was provided when uploading the app. The description is + * not shown on the terminal. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -153,13 +161,13 @@ public void setDescription(String description) { } /** - * The error code of the Android app with the `status` of either **error** or **invalid**. + * The error code of the Android app with the `status` of either **error** or + * **invalid**. * - * @param errorCode The error code of the Android app with the `status` of either **error** or **invalid**. + * @param errorCode The error code of the Android app with the `status` of either + * **error** or **invalid**. * @return the current {@code AndroidApp} instance, allowing for method chaining - * - * @deprecated since Management API v3 - * Use `errors` instead. + * @deprecated since Management API v3 Use `errors` instead. */ @Deprecated // deprecated since Management API v3: Use `errors` instead. public AndroidApp errorCode(String errorCode) { @@ -168,8 +176,11 @@ public AndroidApp errorCode(String errorCode) { } /** - * The error code of the Android app with the `status` of either **error** or **invalid**. - * @return errorCode The error code of the Android app with the `status` of either **error** or **invalid**. + * The error code of the Android app with the `status` of either **error** or + * **invalid**. + * + * @return errorCode The error code of the Android app with the `status` of either + * **error** or **invalid**. * @deprecated // deprecated since Management API v3: Use `errors` instead. */ @Deprecated // deprecated since Management API v3: Use `errors` instead. @@ -180,12 +191,12 @@ public String getErrorCode() { } /** - * The error code of the Android app with the `status` of either **error** or **invalid**. - * - * @param errorCode The error code of the Android app with the `status` of either **error** or **invalid**. + * The error code of the Android app with the `status` of either **error** or + * **invalid**. * - * @deprecated since Management API v3 - * Use `errors` instead. + * @param errorCode The error code of the Android app with the `status` of either + * **error** or **invalid**. + * @deprecated since Management API v3 Use `errors` instead. */ @Deprecated // deprecated since Management API v3: Use `errors` instead. @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -215,6 +226,7 @@ public AndroidApp addErrorsItem(AndroidAppError errorsItem) { /** * The list of errors of the Android app. + * * @return errors The list of errors of the Android app. */ @JsonProperty(JSON_PROPERTY_ERRORS) @@ -247,6 +259,7 @@ public AndroidApp id(String id) { /** * The unique identifier of the app. + * * @return id The unique identifier of the app. */ @JsonProperty(JSON_PROPERTY_ID) @@ -279,6 +292,7 @@ public AndroidApp label(String label) { /** * The app name that is shown on the terminal. + * * @return label The app name that is shown on the terminal. */ @JsonProperty(JSON_PROPERTY_LABEL) @@ -311,6 +325,7 @@ public AndroidApp packageName(String packageName) { /** * The package name that uniquely identifies the Android app. + * * @return packageName The package name that uniquely identifies the Android app. */ @JsonProperty(JSON_PROPERTY_PACKAGE_NAME) @@ -331,9 +346,21 @@ public void setPackageName(String packageName) { } /** - * The status of the app. Possible values: * `processing`: the app is being signed and converted to a format that the terminal can handle. * `error`: something went wrong. Check that the app matches the [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * `invalid`: there is something wrong with the APK file of the app. * `ready`: the app has been signed and converted. * `archived`: the app is no longer available. + * The status of the app. Possible values: * `processing`: the app is being signed and + * converted to a format that the terminal can handle. * `error`: something went wrong. + * Check that the app matches the + * [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * + * `invalid`: there is something wrong with the APK file of the app. * + * `ready`: the app has been signed and converted. * `archived`: the app is no + * longer available. * - * @param status The status of the app. Possible values: * `processing`: the app is being signed and converted to a format that the terminal can handle. * `error`: something went wrong. Check that the app matches the [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * `invalid`: there is something wrong with the APK file of the app. * `ready`: the app has been signed and converted. * `archived`: the app is no longer available. + * @param status The status of the app. Possible values: * `processing`: the app is + * being signed and converted to a format that the terminal can handle. * `error`: + * something went wrong. Check that the app matches the + * [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * + * `invalid`: there is something wrong with the APK file of the app. * + * `ready`: the app has been signed and converted. * `archived`: the app + * is no longer available. * @return the current {@code AndroidApp} instance, allowing for method chaining */ public AndroidApp status(StatusEnum status) { @@ -342,8 +369,21 @@ public AndroidApp status(StatusEnum status) { } /** - * The status of the app. Possible values: * `processing`: the app is being signed and converted to a format that the terminal can handle. * `error`: something went wrong. Check that the app matches the [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * `invalid`: there is something wrong with the APK file of the app. * `ready`: the app has been signed and converted. * `archived`: the app is no longer available. - * @return status The status of the app. Possible values: * `processing`: the app is being signed and converted to a format that the terminal can handle. * `error`: something went wrong. Check that the app matches the [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * `invalid`: there is something wrong with the APK file of the app. * `ready`: the app has been signed and converted. * `archived`: the app is no longer available. + * The status of the app. Possible values: * `processing`: the app is being signed and + * converted to a format that the terminal can handle. * `error`: something went wrong. + * Check that the app matches the + * [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * + * `invalid`: there is something wrong with the APK file of the app. * + * `ready`: the app has been signed and converted. * `archived`: the app is no + * longer available. + * + * @return status The status of the app. Possible values: * `processing`: the app is + * being signed and converted to a format that the terminal can handle. * `error`: + * something went wrong. Check that the app matches the + * [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * + * `invalid`: there is something wrong with the APK file of the app. * + * `ready`: the app has been signed and converted. * `archived`: the app + * is no longer available. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -352,9 +392,21 @@ public StatusEnum getStatus() { } /** - * The status of the app. Possible values: * `processing`: the app is being signed and converted to a format that the terminal can handle. * `error`: something went wrong. Check that the app matches the [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * `invalid`: there is something wrong with the APK file of the app. * `ready`: the app has been signed and converted. * `archived`: the app is no longer available. + * The status of the app. Possible values: * `processing`: the app is being signed and + * converted to a format that the terminal can handle. * `error`: something went wrong. + * Check that the app matches the + * [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * + * `invalid`: there is something wrong with the APK file of the app. * + * `ready`: the app has been signed and converted. * `archived`: the app is no + * longer available. * - * @param status The status of the app. Possible values: * `processing`: the app is being signed and converted to a format that the terminal can handle. * `error`: something went wrong. Check that the app matches the [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * `invalid`: there is something wrong with the APK file of the app. * `ready`: the app has been signed and converted. * `archived`: the app is no longer available. + * @param status The status of the app. Possible values: * `processing`: the app is + * being signed and converted to a format that the terminal can handle. * `error`: + * something went wrong. Check that the app matches the + * [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * + * `invalid`: there is something wrong with the APK file of the app. * + * `ready`: the app has been signed and converted. * `archived`: the app + * is no longer available. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -375,6 +427,7 @@ public AndroidApp versionCode(Integer versionCode) { /** * The version number of the app. + * * @return versionCode The version number of the app. */ @JsonProperty(JSON_PROPERTY_VERSION_CODE) @@ -407,6 +460,7 @@ public AndroidApp versionName(String versionName) { /** * The app version number that is shown on the terminal. + * * @return versionName The app version number that is shown on the terminal. */ @JsonProperty(JSON_PROPERTY_VERSION_NAME) @@ -426,9 +480,7 @@ public void setVersionName(String versionName) { this.versionName = versionName; } - /** - * Return true if this AndroidApp object is equal to o. - */ + /** Return true if this AndroidApp object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -438,20 +490,21 @@ public boolean equals(Object o) { return false; } AndroidApp androidApp = (AndroidApp) o; - return Objects.equals(this.description, androidApp.description) && - Objects.equals(this.errorCode, androidApp.errorCode) && - Objects.equals(this.errors, androidApp.errors) && - Objects.equals(this.id, androidApp.id) && - Objects.equals(this.label, androidApp.label) && - Objects.equals(this.packageName, androidApp.packageName) && - Objects.equals(this.status, androidApp.status) && - Objects.equals(this.versionCode, androidApp.versionCode) && - Objects.equals(this.versionName, androidApp.versionName); + return Objects.equals(this.description, androidApp.description) + && Objects.equals(this.errorCode, androidApp.errorCode) + && Objects.equals(this.errors, androidApp.errors) + && Objects.equals(this.id, androidApp.id) + && Objects.equals(this.label, androidApp.label) + && Objects.equals(this.packageName, androidApp.packageName) + && Objects.equals(this.status, androidApp.status) + && Objects.equals(this.versionCode, androidApp.versionCode) + && Objects.equals(this.versionName, androidApp.versionName); } @Override public int hashCode() { - return Objects.hash(description, errorCode, errors, id, label, packageName, status, versionCode, versionName); + return Objects.hash( + description, errorCode, errors, id, label, packageName, status, versionCode, versionName); } @Override @@ -472,8 +525,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -482,7 +534,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AndroidApp given an JSON string * * @param jsonString JSON string @@ -492,11 +544,12 @@ private String toIndentedString(Object o) { public static AndroidApp fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AndroidApp.class); } -/** - * Convert an instance of AndroidApp to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AndroidApp to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/AndroidAppError.java b/src/main/java/com/adyen/model/management/AndroidAppError.java index 4427b1df5..0717ae8eb 100644 --- a/src/main/java/com/adyen/model/management/AndroidAppError.java +++ b/src/main/java/com/adyen/model/management/AndroidAppError.java @@ -2,38 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * AndroidAppError - */ +/** AndroidAppError */ @JsonPropertyOrder({ AndroidAppError.JSON_PROPERTY_ERROR_CODE, AndroidAppError.JSON_PROPERTY_TERMINAL_MODELS }) - public class AndroidAppError { public static final String JSON_PROPERTY_ERROR_CODE = "errorCode"; private String errorCode; @@ -41,13 +31,14 @@ public class AndroidAppError { public static final String JSON_PROPERTY_TERMINAL_MODELS = "terminalModels"; private List terminalModels; - public AndroidAppError() { - } + public AndroidAppError() {} /** - * The error code of the Android app with the `status` of either **error** or **invalid**. + * The error code of the Android app with the `status` of either **error** or + * **invalid**. * - * @param errorCode The error code of the Android app with the `status` of either **error** or **invalid**. + * @param errorCode The error code of the Android app with the `status` of either + * **error** or **invalid**. * @return the current {@code AndroidAppError} instance, allowing for method chaining */ public AndroidAppError errorCode(String errorCode) { @@ -56,8 +47,11 @@ public AndroidAppError errorCode(String errorCode) { } /** - * The error code of the Android app with the `status` of either **error** or **invalid**. - * @return errorCode The error code of the Android app with the `status` of either **error** or **invalid**. + * The error code of the Android app with the `status` of either **error** or + * **invalid**. + * + * @return errorCode The error code of the Android app with the `status` of either + * **error** or **invalid**. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -66,9 +60,11 @@ public String getErrorCode() { } /** - * The error code of the Android app with the `status` of either **error** or **invalid**. + * The error code of the Android app with the `status` of either **error** or + * **invalid**. * - * @param errorCode The error code of the Android app with the `status` of either **error** or **invalid**. + * @param errorCode The error code of the Android app with the `status` of either + * **error** or **invalid**. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,7 +75,8 @@ public void setErrorCode(String errorCode) { /** * The list of payment terminal models to which the returned `errorCode` applies. * - * @param terminalModels The list of payment terminal models to which the returned `errorCode` applies. + * @param terminalModels The list of payment terminal models to which the returned + * `errorCode` applies. * @return the current {@code AndroidAppError} instance, allowing for method chaining */ public AndroidAppError terminalModels(List terminalModels) { @@ -97,7 +94,9 @@ public AndroidAppError addTerminalModelsItem(String terminalModelsItem) { /** * The list of payment terminal models to which the returned `errorCode` applies. - * @return terminalModels The list of payment terminal models to which the returned `errorCode` applies. + * + * @return terminalModels The list of payment terminal models to which the returned + * `errorCode` applies. */ @JsonProperty(JSON_PROPERTY_TERMINAL_MODELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,7 +107,8 @@ public List getTerminalModels() { /** * The list of payment terminal models to which the returned `errorCode` applies. * - * @param terminalModels The list of payment terminal models to which the returned `errorCode` applies. + * @param terminalModels The list of payment terminal models to which the returned + * `errorCode` applies. */ @JsonProperty(JSON_PROPERTY_TERMINAL_MODELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,9 +116,7 @@ public void setTerminalModels(List terminalModels) { this.terminalModels = terminalModels; } - /** - * Return true if this AndroidAppError object is equal to o. - */ + /** Return true if this AndroidAppError object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -128,8 +126,8 @@ public boolean equals(Object o) { return false; } AndroidAppError androidAppError = (AndroidAppError) o; - return Objects.equals(this.errorCode, androidAppError.errorCode) && - Objects.equals(this.terminalModels, androidAppError.terminalModels); + return Objects.equals(this.errorCode, androidAppError.errorCode) + && Objects.equals(this.terminalModels, androidAppError.terminalModels); } @Override @@ -148,8 +146,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -158,7 +155,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AndroidAppError given an JSON string * * @param jsonString JSON string @@ -168,11 +165,12 @@ private String toIndentedString(Object o) { public static AndroidAppError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AndroidAppError.class); } -/** - * Convert an instance of AndroidAppError to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AndroidAppError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/AndroidAppsResponse.java b/src/main/java/com/adyen/model/management/AndroidAppsResponse.java index 9a934a10b..877a2f114 100644 --- a/src/main/java/com/adyen/model/management/AndroidAppsResponse.java +++ b/src/main/java/com/adyen/model/management/AndroidAppsResponse.java @@ -2,44 +2,30 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.AndroidApp; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * AndroidAppsResponse - */ -@JsonPropertyOrder({ - AndroidAppsResponse.JSON_PROPERTY_DATA -}) - +/** AndroidAppsResponse */ +@JsonPropertyOrder({AndroidAppsResponse.JSON_PROPERTY_DATA}) public class AndroidAppsResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; - public AndroidAppsResponse() { - } + public AndroidAppsResponse() {} /** * Apps uploaded for Android payment terminals. @@ -62,6 +48,7 @@ public AndroidAppsResponse addDataItem(AndroidApp dataItem) { /** * Apps uploaded for Android payment terminals. + * * @return data Apps uploaded for Android payment terminals. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -81,9 +68,7 @@ public void setData(List data) { this.data = data; } - /** - * Return true if this AndroidAppsResponse object is equal to o. - */ + /** Return true if this AndroidAppsResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -111,8 +96,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -121,21 +105,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AndroidAppsResponse given an JSON string * * @param jsonString JSON string * @return An instance of AndroidAppsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to AndroidAppsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AndroidAppsResponse */ public static AndroidAppsResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AndroidAppsResponse.class); } -/** - * Convert an instance of AndroidAppsResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AndroidAppsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/AndroidCertificate.java b/src/main/java/com/adyen/model/management/AndroidCertificate.java index ee5cb517b..50dfab66c 100644 --- a/src/main/java/com/adyen/model/management/AndroidCertificate.java +++ b/src/main/java/com/adyen/model/management/AndroidCertificate.java @@ -2,32 +2,23 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.time.OffsetDateTime; +import java.util.*; - -/** - * AndroidCertificate - */ +/** AndroidCertificate */ @JsonPropertyOrder({ AndroidCertificate.JSON_PROPERTY_DESCRIPTION, AndroidCertificate.JSON_PROPERTY_EXTENSION, @@ -37,7 +28,6 @@ AndroidCertificate.JSON_PROPERTY_NOT_BEFORE, AndroidCertificate.JSON_PROPERTY_STATUS }) - public class AndroidCertificate { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -60,8 +50,7 @@ public class AndroidCertificate { public static final String JSON_PROPERTY_STATUS = "status"; private String status; - public AndroidCertificate() { - } + public AndroidCertificate() {} /** * The description that was provided when uploading the certificate. @@ -76,6 +65,7 @@ public AndroidCertificate description(String description) { /** * The description that was provided when uploading the certificate. + * * @return description The description that was provided when uploading the certificate. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -96,9 +86,11 @@ public void setDescription(String description) { } /** - * The file format of the certificate, as indicated by the file extension. For example, **.cert** or **.pem**. + * The file format of the certificate, as indicated by the file extension. For example, **.cert** + * or **.pem**. * - * @param extension The file format of the certificate, as indicated by the file extension. For example, **.cert** or **.pem**. + * @param extension The file format of the certificate, as indicated by the file extension. For + * example, **.cert** or **.pem**. * @return the current {@code AndroidCertificate} instance, allowing for method chaining */ public AndroidCertificate extension(String extension) { @@ -107,8 +99,11 @@ public AndroidCertificate extension(String extension) { } /** - * The file format of the certificate, as indicated by the file extension. For example, **.cert** or **.pem**. - * @return extension The file format of the certificate, as indicated by the file extension. For example, **.cert** or **.pem**. + * The file format of the certificate, as indicated by the file extension. For example, **.cert** + * or **.pem**. + * + * @return extension The file format of the certificate, as indicated by the file extension. For + * example, **.cert** or **.pem**. */ @JsonProperty(JSON_PROPERTY_EXTENSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,9 +112,11 @@ public String getExtension() { } /** - * The file format of the certificate, as indicated by the file extension. For example, **.cert** or **.pem**. + * The file format of the certificate, as indicated by the file extension. For example, **.cert** + * or **.pem**. * - * @param extension The file format of the certificate, as indicated by the file extension. For example, **.cert** or **.pem**. + * @param extension The file format of the certificate, as indicated by the file extension. For + * example, **.cert** or **.pem**. */ @JsonProperty(JSON_PROPERTY_EXTENSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,6 +137,7 @@ public AndroidCertificate id(String id) { /** * The unique identifier of the certificate. + * * @return id The unique identifier of the certificate. */ @JsonProperty(JSON_PROPERTY_ID) @@ -172,6 +170,7 @@ public AndroidCertificate name(String name) { /** * The file name of the certificate. For example, **mycert**. + * * @return name The file name of the certificate. For example, **mycert**. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -204,6 +203,7 @@ public AndroidCertificate notAfter(OffsetDateTime notAfter) { /** * The date when the certificate stops to be valid. + * * @return notAfter The date when the certificate stops to be valid. */ @JsonProperty(JSON_PROPERTY_NOT_AFTER) @@ -236,6 +236,7 @@ public AndroidCertificate notBefore(OffsetDateTime notBefore) { /** * The date when the certificate starts to be valid. + * * @return notBefore The date when the certificate starts to be valid. */ @JsonProperty(JSON_PROPERTY_NOT_BEFORE) @@ -268,6 +269,7 @@ public AndroidCertificate status(String status) { /** * The status of the certificate. + * * @return status The status of the certificate. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -287,9 +289,7 @@ public void setStatus(String status) { this.status = status; } - /** - * Return true if this AndroidCertificate object is equal to o. - */ + /** Return true if this AndroidCertificate object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -299,13 +299,13 @@ public boolean equals(Object o) { return false; } AndroidCertificate androidCertificate = (AndroidCertificate) o; - return Objects.equals(this.description, androidCertificate.description) && - Objects.equals(this.extension, androidCertificate.extension) && - Objects.equals(this.id, androidCertificate.id) && - Objects.equals(this.name, androidCertificate.name) && - Objects.equals(this.notAfter, androidCertificate.notAfter) && - Objects.equals(this.notBefore, androidCertificate.notBefore) && - Objects.equals(this.status, androidCertificate.status); + return Objects.equals(this.description, androidCertificate.description) + && Objects.equals(this.extension, androidCertificate.extension) + && Objects.equals(this.id, androidCertificate.id) + && Objects.equals(this.name, androidCertificate.name) + && Objects.equals(this.notAfter, androidCertificate.notAfter) + && Objects.equals(this.notBefore, androidCertificate.notBefore) + && Objects.equals(this.status, androidCertificate.status); } @Override @@ -329,8 +329,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -339,21 +338,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AndroidCertificate given an JSON string * * @param jsonString JSON string * @return An instance of AndroidCertificate - * @throws JsonProcessingException if the JSON string is invalid with respect to AndroidCertificate + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AndroidCertificate */ public static AndroidCertificate fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AndroidCertificate.class); } -/** - * Convert an instance of AndroidCertificate to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AndroidCertificate to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/AndroidCertificatesResponse.java b/src/main/java/com/adyen/model/management/AndroidCertificatesResponse.java index 04fac9fee..bf8bdf6ea 100644 --- a/src/main/java/com/adyen/model/management/AndroidCertificatesResponse.java +++ b/src/main/java/com/adyen/model/management/AndroidCertificatesResponse.java @@ -2,44 +2,30 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.AndroidCertificate; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * AndroidCertificatesResponse - */ -@JsonPropertyOrder({ - AndroidCertificatesResponse.JSON_PROPERTY_DATA -}) - +/** AndroidCertificatesResponse */ +@JsonPropertyOrder({AndroidCertificatesResponse.JSON_PROPERTY_DATA}) public class AndroidCertificatesResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; - public AndroidCertificatesResponse() { - } + public AndroidCertificatesResponse() {} /** * Uploaded Android certificates for Android payment terminals. @@ -62,6 +48,7 @@ public AndroidCertificatesResponse addDataItem(AndroidCertificate dataItem) { /** * Uploaded Android certificates for Android payment terminals. + * * @return data Uploaded Android certificates for Android payment terminals. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -81,9 +68,7 @@ public void setData(List data) { this.data = data; } - /** - * Return true if this AndroidCertificatesResponse object is equal to o. - */ + /** Return true if this AndroidCertificatesResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -111,8 +96,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -121,21 +105,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AndroidCertificatesResponse given an JSON string * * @param jsonString JSON string * @return An instance of AndroidCertificatesResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to AndroidCertificatesResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AndroidCertificatesResponse */ - public static AndroidCertificatesResponse fromJson(String jsonString) throws JsonProcessingException { + public static AndroidCertificatesResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AndroidCertificatesResponse.class); } -/** - * Convert an instance of AndroidCertificatesResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AndroidCertificatesResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ApiCredential.java b/src/main/java/com/adyen/model/management/ApiCredential.java index ad147690f..efb12f8cb 100644 --- a/src/main/java/com/adyen/model/management/ApiCredential.java +++ b/src/main/java/com/adyen/model/management/ApiCredential.java @@ -2,35 +2,24 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.AllowedOrigin; -import com.adyen.model.management.ApiCredentialLinks; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * ApiCredential - */ +/** ApiCredential */ @JsonPropertyOrder({ ApiCredential.JSON_PROPERTY_LINKS, ApiCredential.JSON_PROPERTY_ACTIVE, @@ -42,7 +31,6 @@ ApiCredential.JSON_PROPERTY_ROLES, ApiCredential.JSON_PROPERTY_USERNAME }) - public class ApiCredential { public static final String JSON_PROPERTY_LINKS = "_links"; private ApiCredentialLinks links; @@ -71,13 +59,12 @@ public class ApiCredential { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public ApiCredential() { - } + public ApiCredential() {} /** * links * - * @param links + * @param links * @return the current {@code ApiCredential} instance, allowing for method chaining */ public ApiCredential links(ApiCredentialLinks links) { @@ -87,7 +74,8 @@ public ApiCredential links(ApiCredentialLinks links) { /** * Get links - * @return links + * + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -98,7 +86,7 @@ public ApiCredentialLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,9 +95,11 @@ public void setLinks(ApiCredentialLinks links) { } /** - * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in + * your integration. * - * @param active Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + * @param active Indicates if the API credential is enabled. Must be set to **true** to use the + * credential in your integration. * @return the current {@code ApiCredential} instance, allowing for method chaining */ public ApiCredential active(Boolean active) { @@ -118,8 +108,11 @@ public ApiCredential active(Boolean active) { } /** - * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. - * @return active Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in + * your integration. + * + * @return active Indicates if the API credential is enabled. Must be set to **true** to use the + * credential in your integration. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,9 +121,11 @@ public Boolean getActive() { } /** - * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in + * your integration. * - * @param active Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + * @param active Indicates if the API credential is enabled. Must be set to **true** to use the + * credential in your integration. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,9 +134,13 @@ public void setActive(Boolean active) { } /** - * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + * List of IP addresses from which your client can make requests. If the list is empty, we allow + * requests from any IP. If the list is not empty and we get a request from an IP which is not on + * the list, you get a security error. * - * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the + * list is empty, we allow requests from any IP. If the list is not empty and we get a request + * from an IP which is not on the list, you get a security error. * @return the current {@code ApiCredential} instance, allowing for method chaining */ public ApiCredential allowedIpAddresses(List allowedIpAddresses) { @@ -158,8 +157,13 @@ public ApiCredential addAllowedIpAddressesItem(String allowedIpAddressesItem) { } /** - * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. - * @return allowedIpAddresses List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + * List of IP addresses from which your client can make requests. If the list is empty, we allow + * requests from any IP. If the list is not empty and we get a request from an IP which is not on + * the list, you get a security error. + * + * @return allowedIpAddresses List of IP addresses from which your client can make requests. If + * the list is empty, we allow requests from any IP. If the list is not empty and we get a + * request from an IP which is not on the list, you get a security error. */ @JsonProperty(JSON_PROPERTY_ALLOWED_IP_ADDRESSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,9 +172,13 @@ public List getAllowedIpAddresses() { } /** - * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + * List of IP addresses from which your client can make requests. If the list is empty, we allow + * requests from any IP. If the list is not empty and we get a request from an IP which is not on + * the list, you get a security error. * - * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the + * list is empty, we allow requests from any IP. If the list is not empty and we get a request + * from an IP which is not on the list, you get a security error. */ @JsonProperty(JSON_PROPERTY_ALLOWED_IP_ADDRESSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,9 +187,13 @@ public void setAllowedIpAddresses(List allowedIpAddresses) { } /** - * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + * List containing the [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * linked to the API credential. * - * @param allowedOrigins List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + * @param allowedOrigins List containing the [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * linked to the API credential. * @return the current {@code ApiCredential} instance, allowing for method chaining */ public ApiCredential allowedOrigins(List allowedOrigins) { @@ -198,8 +210,13 @@ public ApiCredential addAllowedOriginsItem(AllowedOrigin allowedOriginsItem) { } /** - * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. - * @return allowedOrigins List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + * List containing the [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * linked to the API credential. + * + * @return allowedOrigins List containing the [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * linked to the API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,9 +225,13 @@ public List getAllowedOrigins() { } /** - * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + * List containing the [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * linked to the API credential. * - * @param allowedOrigins List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + * @param allowedOrigins List containing the [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * linked to the API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,9 +240,13 @@ public void setAllowedOrigins(List allowedOrigins) { } /** - * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + * Public key used for [client-side + * authentication](https://docs.adyen.com/development-resources/client-side-authentication). The + * client key is required for Drop-in and Components integrations. * - * @param clientKey Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + * @param clientKey Public key used for [client-side + * authentication](https://docs.adyen.com/development-resources/client-side-authentication). + * The client key is required for Drop-in and Components integrations. * @return the current {@code ApiCredential} instance, allowing for method chaining */ public ApiCredential clientKey(String clientKey) { @@ -230,8 +255,13 @@ public ApiCredential clientKey(String clientKey) { } /** - * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. - * @return clientKey Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + * Public key used for [client-side + * authentication](https://docs.adyen.com/development-resources/client-side-authentication). The + * client key is required for Drop-in and Components integrations. + * + * @return clientKey Public key used for [client-side + * authentication](https://docs.adyen.com/development-resources/client-side-authentication). + * The client key is required for Drop-in and Components integrations. */ @JsonProperty(JSON_PROPERTY_CLIENT_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,9 +270,13 @@ public String getClientKey() { } /** - * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + * Public key used for [client-side + * authentication](https://docs.adyen.com/development-resources/client-side-authentication). The + * client key is required for Drop-in and Components integrations. * - * @param clientKey Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + * @param clientKey Public key used for [client-side + * authentication](https://docs.adyen.com/development-resources/client-side-authentication). + * The client key is required for Drop-in and Components integrations. */ @JsonProperty(JSON_PROPERTY_CLIENT_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -263,6 +297,7 @@ public ApiCredential description(String description) { /** * Description of the API credential. + * * @return description Description of the API credential. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -295,6 +330,7 @@ public ApiCredential id(String id) { /** * Unique identifier of the API credential. + * * @return id Unique identifier of the API credential. */ @JsonProperty(JSON_PROPERTY_ID) @@ -315,9 +351,12 @@ public void setId(String id) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the + * API credential. * - * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + * @param roles List of + * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API + * credential. * @return the current {@code ApiCredential} instance, allowing for method chaining */ public ApiCredential roles(List roles) { @@ -334,8 +373,12 @@ public ApiCredential addRolesItem(String rolesItem) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. - * @return roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the + * API credential. + * + * @return roles List of + * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API + * credential. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -344,9 +387,12 @@ public List getRoles() { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the + * API credential. * - * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + * @param roles List of + * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API + * credential. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -355,9 +401,12 @@ public void setRoles(List roles) { } /** - * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), + * for example **ws@Company.TestCompany**. * - * @param username The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + * @param username The name of the [API + * credential](https://docs.adyen.com/development-resources/api-credentials), for example + * **ws@Company.TestCompany**. * @return the current {@code ApiCredential} instance, allowing for method chaining */ public ApiCredential username(String username) { @@ -366,8 +415,12 @@ public ApiCredential username(String username) { } /** - * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. - * @return username The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), + * for example **ws@Company.TestCompany**. + * + * @return username The name of the [API + * credential](https://docs.adyen.com/development-resources/api-credentials), for example + * **ws@Company.TestCompany**. */ @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -376,9 +429,12 @@ public String getUsername() { } /** - * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), + * for example **ws@Company.TestCompany**. * - * @param username The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + * @param username The name of the [API + * credential](https://docs.adyen.com/development-resources/api-credentials), for example + * **ws@Company.TestCompany**. */ @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -386,9 +442,7 @@ public void setUsername(String username) { this.username = username; } - /** - * Return true if this ApiCredential object is equal to o. - */ + /** Return true if this ApiCredential object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -398,20 +452,29 @@ public boolean equals(Object o) { return false; } ApiCredential apiCredential = (ApiCredential) o; - return Objects.equals(this.links, apiCredential.links) && - Objects.equals(this.active, apiCredential.active) && - Objects.equals(this.allowedIpAddresses, apiCredential.allowedIpAddresses) && - Objects.equals(this.allowedOrigins, apiCredential.allowedOrigins) && - Objects.equals(this.clientKey, apiCredential.clientKey) && - Objects.equals(this.description, apiCredential.description) && - Objects.equals(this.id, apiCredential.id) && - Objects.equals(this.roles, apiCredential.roles) && - Objects.equals(this.username, apiCredential.username); + return Objects.equals(this.links, apiCredential.links) + && Objects.equals(this.active, apiCredential.active) + && Objects.equals(this.allowedIpAddresses, apiCredential.allowedIpAddresses) + && Objects.equals(this.allowedOrigins, apiCredential.allowedOrigins) + && Objects.equals(this.clientKey, apiCredential.clientKey) + && Objects.equals(this.description, apiCredential.description) + && Objects.equals(this.id, apiCredential.id) + && Objects.equals(this.roles, apiCredential.roles) + && Objects.equals(this.username, apiCredential.username); } @Override public int hashCode() { - return Objects.hash(links, active, allowedIpAddresses, allowedOrigins, clientKey, description, id, roles, username); + return Objects.hash( + links, + active, + allowedIpAddresses, + allowedOrigins, + clientKey, + description, + id, + roles, + username); } @Override @@ -432,8 +495,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -442,7 +504,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ApiCredential given an JSON string * * @param jsonString JSON string @@ -452,11 +514,12 @@ private String toIndentedString(Object o) { public static ApiCredential fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ApiCredential.class); } -/** - * Convert an instance of ApiCredential to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ApiCredential to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ApiCredentialLinks.java b/src/main/java/com/adyen/model/management/ApiCredentialLinks.java index f371e3c8c..1d41e1e26 100644 --- a/src/main/java/com/adyen/model/management/ApiCredentialLinks.java +++ b/src/main/java/com/adyen/model/management/ApiCredentialLinks.java @@ -2,32 +2,22 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.LinksElement; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ApiCredentialLinks - */ +/** ApiCredentialLinks */ @JsonPropertyOrder({ ApiCredentialLinks.JSON_PROPERTY_ALLOWED_ORIGINS, ApiCredentialLinks.JSON_PROPERTY_COMPANY, @@ -36,7 +26,6 @@ ApiCredentialLinks.JSON_PROPERTY_MERCHANT, ApiCredentialLinks.JSON_PROPERTY_SELF }) - public class ApiCredentialLinks { public static final String JSON_PROPERTY_ALLOWED_ORIGINS = "allowedOrigins"; private LinksElement allowedOrigins; @@ -56,13 +45,12 @@ public class ApiCredentialLinks { public static final String JSON_PROPERTY_SELF = "self"; private LinksElement self; - public ApiCredentialLinks() { - } + public ApiCredentialLinks() {} /** * allowedOrigins * - * @param allowedOrigins + * @param allowedOrigins * @return the current {@code ApiCredentialLinks} instance, allowing for method chaining */ public ApiCredentialLinks allowedOrigins(LinksElement allowedOrigins) { @@ -72,7 +60,8 @@ public ApiCredentialLinks allowedOrigins(LinksElement allowedOrigins) { /** * Get allowedOrigins - * @return allowedOrigins + * + * @return allowedOrigins */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,7 +72,7 @@ public LinksElement getAllowedOrigins() { /** * allowedOrigins * - * @param allowedOrigins + * @param allowedOrigins */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,7 +83,7 @@ public void setAllowedOrigins(LinksElement allowedOrigins) { /** * company * - * @param company + * @param company * @return the current {@code ApiCredentialLinks} instance, allowing for method chaining */ public ApiCredentialLinks company(LinksElement company) { @@ -104,7 +93,8 @@ public ApiCredentialLinks company(LinksElement company) { /** * Get company - * @return company + * + * @return company */ @JsonProperty(JSON_PROPERTY_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,7 +105,7 @@ public LinksElement getCompany() { /** * company * - * @param company + * @param company */ @JsonProperty(JSON_PROPERTY_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,7 +116,7 @@ public void setCompany(LinksElement company) { /** * generateApiKey * - * @param generateApiKey + * @param generateApiKey * @return the current {@code ApiCredentialLinks} instance, allowing for method chaining */ public ApiCredentialLinks generateApiKey(LinksElement generateApiKey) { @@ -136,7 +126,8 @@ public ApiCredentialLinks generateApiKey(LinksElement generateApiKey) { /** * Get generateApiKey - * @return generateApiKey + * + * @return generateApiKey */ @JsonProperty(JSON_PROPERTY_GENERATE_API_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,7 +138,7 @@ public LinksElement getGenerateApiKey() { /** * generateApiKey * - * @param generateApiKey + * @param generateApiKey */ @JsonProperty(JSON_PROPERTY_GENERATE_API_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,7 +149,7 @@ public void setGenerateApiKey(LinksElement generateApiKey) { /** * generateClientKey * - * @param generateClientKey + * @param generateClientKey * @return the current {@code ApiCredentialLinks} instance, allowing for method chaining */ public ApiCredentialLinks generateClientKey(LinksElement generateClientKey) { @@ -168,7 +159,8 @@ public ApiCredentialLinks generateClientKey(LinksElement generateClientKey) { /** * Get generateClientKey - * @return generateClientKey + * + * @return generateClientKey */ @JsonProperty(JSON_PROPERTY_GENERATE_CLIENT_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,7 +171,7 @@ public LinksElement getGenerateClientKey() { /** * generateClientKey * - * @param generateClientKey + * @param generateClientKey */ @JsonProperty(JSON_PROPERTY_GENERATE_CLIENT_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,7 +182,7 @@ public void setGenerateClientKey(LinksElement generateClientKey) { /** * merchant * - * @param merchant + * @param merchant * @return the current {@code ApiCredentialLinks} instance, allowing for method chaining */ public ApiCredentialLinks merchant(LinksElement merchant) { @@ -200,7 +192,8 @@ public ApiCredentialLinks merchant(LinksElement merchant) { /** * Get merchant - * @return merchant + * + * @return merchant */ @JsonProperty(JSON_PROPERTY_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,7 +204,7 @@ public LinksElement getMerchant() { /** * merchant * - * @param merchant + * @param merchant */ @JsonProperty(JSON_PROPERTY_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -222,7 +215,7 @@ public void setMerchant(LinksElement merchant) { /** * self * - * @param self + * @param self * @return the current {@code ApiCredentialLinks} instance, allowing for method chaining */ public ApiCredentialLinks self(LinksElement self) { @@ -232,7 +225,8 @@ public ApiCredentialLinks self(LinksElement self) { /** * Get self - * @return self + * + * @return self */ @JsonProperty(JSON_PROPERTY_SELF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -243,7 +237,7 @@ public LinksElement getSelf() { /** * self * - * @param self + * @param self */ @JsonProperty(JSON_PROPERTY_SELF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -251,9 +245,7 @@ public void setSelf(LinksElement self) { this.self = self; } - /** - * Return true if this ApiCredentialLinks object is equal to o. - */ + /** Return true if this ApiCredentialLinks object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -263,12 +255,12 @@ public boolean equals(Object o) { return false; } ApiCredentialLinks apiCredentialLinks = (ApiCredentialLinks) o; - return Objects.equals(this.allowedOrigins, apiCredentialLinks.allowedOrigins) && - Objects.equals(this.company, apiCredentialLinks.company) && - Objects.equals(this.generateApiKey, apiCredentialLinks.generateApiKey) && - Objects.equals(this.generateClientKey, apiCredentialLinks.generateClientKey) && - Objects.equals(this.merchant, apiCredentialLinks.merchant) && - Objects.equals(this.self, apiCredentialLinks.self); + return Objects.equals(this.allowedOrigins, apiCredentialLinks.allowedOrigins) + && Objects.equals(this.company, apiCredentialLinks.company) + && Objects.equals(this.generateApiKey, apiCredentialLinks.generateApiKey) + && Objects.equals(this.generateClientKey, apiCredentialLinks.generateClientKey) + && Objects.equals(this.merchant, apiCredentialLinks.merchant) + && Objects.equals(this.self, apiCredentialLinks.self); } @Override @@ -291,8 +283,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -301,21 +292,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ApiCredentialLinks given an JSON string * * @param jsonString JSON string * @return An instance of ApiCredentialLinks - * @throws JsonProcessingException if the JSON string is invalid with respect to ApiCredentialLinks + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ApiCredentialLinks */ public static ApiCredentialLinks fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ApiCredentialLinks.class); } -/** - * Convert an instance of ApiCredentialLinks to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ApiCredentialLinks to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ApplePayInfo.java b/src/main/java/com/adyen/model/management/ApplePayInfo.java index bfccbed99..72ce35805 100644 --- a/src/main/java/com/adyen/model/management/ApplePayInfo.java +++ b/src/main/java/com/adyen/model/management/ApplePayInfo.java @@ -2,48 +2,39 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * ApplePayInfo - */ -@JsonPropertyOrder({ - ApplePayInfo.JSON_PROPERTY_DOMAINS -}) - +/** ApplePayInfo */ +@JsonPropertyOrder({ApplePayInfo.JSON_PROPERTY_DOMAINS}) public class ApplePayInfo { public static final String JSON_PROPERTY_DOMAINS = "domains"; private List domains; - public ApplePayInfo() { - } + public ApplePayInfo() {} /** - * The list of merchant domains. Maximum: 99 domains per request. For more information, see [Apple Pay documentation](https://docs.adyen.com/payment-methods/apple-pay/web-drop-in?tab=adyen-certificate-live_1#going-live). + * The list of merchant domains. Maximum: 99 domains per request. For more information, see [Apple + * Pay + * documentation](https://docs.adyen.com/payment-methods/apple-pay/web-drop-in?tab=adyen-certificate-live_1#going-live). * - * @param domains The list of merchant domains. Maximum: 99 domains per request. For more information, see [Apple Pay documentation](https://docs.adyen.com/payment-methods/apple-pay/web-drop-in?tab=adyen-certificate-live_1#going-live). + * @param domains The list of merchant domains. Maximum: 99 domains per request. For more + * information, see [Apple Pay + * documentation](https://docs.adyen.com/payment-methods/apple-pay/web-drop-in?tab=adyen-certificate-live_1#going-live). * @return the current {@code ApplePayInfo} instance, allowing for method chaining */ public ApplePayInfo domains(List domains) { @@ -60,8 +51,13 @@ public ApplePayInfo addDomainsItem(String domainsItem) { } /** - * The list of merchant domains. Maximum: 99 domains per request. For more information, see [Apple Pay documentation](https://docs.adyen.com/payment-methods/apple-pay/web-drop-in?tab=adyen-certificate-live_1#going-live). - * @return domains The list of merchant domains. Maximum: 99 domains per request. For more information, see [Apple Pay documentation](https://docs.adyen.com/payment-methods/apple-pay/web-drop-in?tab=adyen-certificate-live_1#going-live). + * The list of merchant domains. Maximum: 99 domains per request. For more information, see [Apple + * Pay + * documentation](https://docs.adyen.com/payment-methods/apple-pay/web-drop-in?tab=adyen-certificate-live_1#going-live). + * + * @return domains The list of merchant domains. Maximum: 99 domains per request. For more + * information, see [Apple Pay + * documentation](https://docs.adyen.com/payment-methods/apple-pay/web-drop-in?tab=adyen-certificate-live_1#going-live). */ @JsonProperty(JSON_PROPERTY_DOMAINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +66,13 @@ public List getDomains() { } /** - * The list of merchant domains. Maximum: 99 domains per request. For more information, see [Apple Pay documentation](https://docs.adyen.com/payment-methods/apple-pay/web-drop-in?tab=adyen-certificate-live_1#going-live). + * The list of merchant domains. Maximum: 99 domains per request. For more information, see [Apple + * Pay + * documentation](https://docs.adyen.com/payment-methods/apple-pay/web-drop-in?tab=adyen-certificate-live_1#going-live). * - * @param domains The list of merchant domains. Maximum: 99 domains per request. For more information, see [Apple Pay documentation](https://docs.adyen.com/payment-methods/apple-pay/web-drop-in?tab=adyen-certificate-live_1#going-live). + * @param domains The list of merchant domains. Maximum: 99 domains per request. For more + * information, see [Apple Pay + * documentation](https://docs.adyen.com/payment-methods/apple-pay/web-drop-in?tab=adyen-certificate-live_1#going-live). */ @JsonProperty(JSON_PROPERTY_DOMAINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,9 +80,7 @@ public void setDomains(List domains) { this.domains = domains; } - /** - * Return true if this ApplePayInfo object is equal to o. - */ + /** Return true if this ApplePayInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -110,8 +108,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -120,7 +117,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ApplePayInfo given an JSON string * * @param jsonString JSON string @@ -130,11 +127,12 @@ private String toIndentedString(Object o) { public static ApplePayInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ApplePayInfo.class); } -/** - * Convert an instance of ApplePayInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ApplePayInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/BcmcInfo.java b/src/main/java/com/adyen/model/management/BcmcInfo.java index 93d2f8253..69b5ed78e 100644 --- a/src/main/java/com/adyen/model/management/BcmcInfo.java +++ b/src/main/java/com/adyen/model/management/BcmcInfo.java @@ -2,46 +2,35 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * BcmcInfo - */ -@JsonPropertyOrder({ - BcmcInfo.JSON_PROPERTY_ENABLE_BCMC_MOBILE -}) - +/** BcmcInfo */ +@JsonPropertyOrder({BcmcInfo.JSON_PROPERTY_ENABLE_BCMC_MOBILE}) public class BcmcInfo { public static final String JSON_PROPERTY_ENABLE_BCMC_MOBILE = "enableBcmcMobile"; private Boolean enableBcmcMobile; - public BcmcInfo() { - } + public BcmcInfo() {} /** - * Indicates if [Bancontact mobile](https://docs.adyen.com/payment-methods/bancontact/bancontact-mobile) is enabled. + * Indicates if [Bancontact + * mobile](https://docs.adyen.com/payment-methods/bancontact/bancontact-mobile) is enabled. * - * @param enableBcmcMobile Indicates if [Bancontact mobile](https://docs.adyen.com/payment-methods/bancontact/bancontact-mobile) is enabled. + * @param enableBcmcMobile Indicates if [Bancontact + * mobile](https://docs.adyen.com/payment-methods/bancontact/bancontact-mobile) is enabled. * @return the current {@code BcmcInfo} instance, allowing for method chaining */ public BcmcInfo enableBcmcMobile(Boolean enableBcmcMobile) { @@ -50,8 +39,11 @@ public BcmcInfo enableBcmcMobile(Boolean enableBcmcMobile) { } /** - * Indicates if [Bancontact mobile](https://docs.adyen.com/payment-methods/bancontact/bancontact-mobile) is enabled. - * @return enableBcmcMobile Indicates if [Bancontact mobile](https://docs.adyen.com/payment-methods/bancontact/bancontact-mobile) is enabled. + * Indicates if [Bancontact + * mobile](https://docs.adyen.com/payment-methods/bancontact/bancontact-mobile) is enabled. + * + * @return enableBcmcMobile Indicates if [Bancontact + * mobile](https://docs.adyen.com/payment-methods/bancontact/bancontact-mobile) is enabled. */ @JsonProperty(JSON_PROPERTY_ENABLE_BCMC_MOBILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,9 +52,11 @@ public Boolean getEnableBcmcMobile() { } /** - * Indicates if [Bancontact mobile](https://docs.adyen.com/payment-methods/bancontact/bancontact-mobile) is enabled. + * Indicates if [Bancontact + * mobile](https://docs.adyen.com/payment-methods/bancontact/bancontact-mobile) is enabled. * - * @param enableBcmcMobile Indicates if [Bancontact mobile](https://docs.adyen.com/payment-methods/bancontact/bancontact-mobile) is enabled. + * @param enableBcmcMobile Indicates if [Bancontact + * mobile](https://docs.adyen.com/payment-methods/bancontact/bancontact-mobile) is enabled. */ @JsonProperty(JSON_PROPERTY_ENABLE_BCMC_MOBILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +64,7 @@ public void setEnableBcmcMobile(Boolean enableBcmcMobile) { this.enableBcmcMobile = enableBcmcMobile; } - /** - * Return true if this BcmcInfo object is equal to o. - */ + /** Return true if this BcmcInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +92,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,7 +101,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BcmcInfo given an JSON string * * @param jsonString JSON string @@ -120,11 +111,12 @@ private String toIndentedString(Object o) { public static BcmcInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BcmcInfo.class); } -/** - * Convert an instance of BcmcInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BcmcInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/BillingEntitiesResponse.java b/src/main/java/com/adyen/model/management/BillingEntitiesResponse.java index 68fa780a4..688cdd3f3 100644 --- a/src/main/java/com/adyen/model/management/BillingEntitiesResponse.java +++ b/src/main/java/com/adyen/model/management/BillingEntitiesResponse.java @@ -2,44 +2,30 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.BillingEntity; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * BillingEntitiesResponse - */ -@JsonPropertyOrder({ - BillingEntitiesResponse.JSON_PROPERTY_DATA -}) - +/** BillingEntitiesResponse */ +@JsonPropertyOrder({BillingEntitiesResponse.JSON_PROPERTY_DATA}) public class BillingEntitiesResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; - public BillingEntitiesResponse() { - } + public BillingEntitiesResponse() {} /** * List of legal entities that can be used for the billing of orders. @@ -62,6 +48,7 @@ public BillingEntitiesResponse addDataItem(BillingEntity dataItem) { /** * List of legal entities that can be used for the billing of orders. + * * @return data List of legal entities that can be used for the billing of orders. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -81,9 +68,7 @@ public void setData(List data) { this.data = data; } - /** - * Return true if this BillingEntitiesResponse object is equal to o. - */ + /** Return true if this BillingEntitiesResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -111,8 +96,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -121,21 +105,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BillingEntitiesResponse given an JSON string * * @param jsonString JSON string * @return An instance of BillingEntitiesResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to BillingEntitiesResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BillingEntitiesResponse */ public static BillingEntitiesResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BillingEntitiesResponse.class); } -/** - * Convert an instance of BillingEntitiesResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BillingEntitiesResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/BillingEntity.java b/src/main/java/com/adyen/model/management/BillingEntity.java index 3100a8911..93f2c7a40 100644 --- a/src/main/java/com/adyen/model/management/BillingEntity.java +++ b/src/main/java/com/adyen/model/management/BillingEntity.java @@ -2,32 +2,22 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.Address; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * BillingEntity - */ +/** BillingEntity */ @JsonPropertyOrder({ BillingEntity.JSON_PROPERTY_ADDRESS, BillingEntity.JSON_PROPERTY_EMAIL, @@ -35,7 +25,6 @@ BillingEntity.JSON_PROPERTY_NAME, BillingEntity.JSON_PROPERTY_TAX_ID }) - public class BillingEntity { public static final String JSON_PROPERTY_ADDRESS = "address"; private Address address; @@ -52,13 +41,12 @@ public class BillingEntity { public static final String JSON_PROPERTY_TAX_ID = "taxId"; private String taxId; - public BillingEntity() { - } + public BillingEntity() {} /** * address * - * @param address + * @param address * @return the current {@code BillingEntity} instance, allowing for method chaining */ public BillingEntity address(Address address) { @@ -68,7 +56,8 @@ public BillingEntity address(Address address) { /** * Get address - * @return address + * + * @return address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,7 +68,7 @@ public Address getAddress() { /** * address * - * @param address + * @param address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,6 +89,7 @@ public BillingEntity email(String email) { /** * The email address of the billing entity. + * * @return email The email address of the billing entity. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -120,9 +110,11 @@ public void setEmail(String email) { } /** - * The unique identifier of the billing entity, for use as `billingEntityId` when creating an order. + * The unique identifier of the billing entity, for use as `billingEntityId` when + * creating an order. * - * @param id The unique identifier of the billing entity, for use as `billingEntityId` when creating an order. + * @param id The unique identifier of the billing entity, for use as `billingEntityId` + * when creating an order. * @return the current {@code BillingEntity} instance, allowing for method chaining */ public BillingEntity id(String id) { @@ -131,8 +123,11 @@ public BillingEntity id(String id) { } /** - * The unique identifier of the billing entity, for use as `billingEntityId` when creating an order. - * @return id The unique identifier of the billing entity, for use as `billingEntityId` when creating an order. + * The unique identifier of the billing entity, for use as `billingEntityId` when + * creating an order. + * + * @return id The unique identifier of the billing entity, for use as `billingEntityId` + * when creating an order. */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -141,9 +136,11 @@ public String getId() { } /** - * The unique identifier of the billing entity, for use as `billingEntityId` when creating an order. + * The unique identifier of the billing entity, for use as `billingEntityId` when + * creating an order. * - * @param id The unique identifier of the billing entity, for use as `billingEntityId` when creating an order. + * @param id The unique identifier of the billing entity, for use as `billingEntityId` + * when creating an order. */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -164,6 +161,7 @@ public BillingEntity name(String name) { /** * The unique name of the billing entity. + * * @return name The unique name of the billing entity. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -196,6 +194,7 @@ public BillingEntity taxId(String taxId) { /** * The tax number of the billing entity. + * * @return taxId The tax number of the billing entity. */ @JsonProperty(JSON_PROPERTY_TAX_ID) @@ -215,9 +214,7 @@ public void setTaxId(String taxId) { this.taxId = taxId; } - /** - * Return true if this BillingEntity object is equal to o. - */ + /** Return true if this BillingEntity object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -227,11 +224,11 @@ public boolean equals(Object o) { return false; } BillingEntity billingEntity = (BillingEntity) o; - return Objects.equals(this.address, billingEntity.address) && - Objects.equals(this.email, billingEntity.email) && - Objects.equals(this.id, billingEntity.id) && - Objects.equals(this.name, billingEntity.name) && - Objects.equals(this.taxId, billingEntity.taxId); + return Objects.equals(this.address, billingEntity.address) + && Objects.equals(this.email, billingEntity.email) + && Objects.equals(this.id, billingEntity.id) + && Objects.equals(this.name, billingEntity.name) + && Objects.equals(this.taxId, billingEntity.taxId); } @Override @@ -253,8 +250,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -263,7 +259,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BillingEntity given an JSON string * * @param jsonString JSON string @@ -273,11 +269,12 @@ private String toIndentedString(Object o) { public static BillingEntity fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BillingEntity.class); } -/** - * Convert an instance of BillingEntity to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BillingEntity to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CardholderReceipt.java b/src/main/java/com/adyen/model/management/CardholderReceipt.java index 4e7e3d2e3..a4faacf84 100644 --- a/src/main/java/com/adyen/model/management/CardholderReceipt.java +++ b/src/main/java/com/adyen/model/management/CardholderReceipt.java @@ -2,46 +2,37 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * CardholderReceipt - */ -@JsonPropertyOrder({ - CardholderReceipt.JSON_PROPERTY_HEADER_FOR_AUTHORIZED_RECEIPT -}) - +/** CardholderReceipt */ +@JsonPropertyOrder({CardholderReceipt.JSON_PROPERTY_HEADER_FOR_AUTHORIZED_RECEIPT}) public class CardholderReceipt { - public static final String JSON_PROPERTY_HEADER_FOR_AUTHORIZED_RECEIPT = "headerForAuthorizedReceipt"; + public static final String JSON_PROPERTY_HEADER_FOR_AUTHORIZED_RECEIPT = + "headerForAuthorizedReceipt"; private String headerForAuthorizedReceipt; - public CardholderReceipt() { - } + public CardholderReceipt() {} /** - * A custom header to show on the shopper receipt for an authorised transaction. Allows one or two comma-separated header lines, and blank lines. For example, `header,header,filler` + * A custom header to show on the shopper receipt for an authorised transaction. Allows one or two + * comma-separated header lines, and blank lines. For example, `header,header,filler` * - * @param headerForAuthorizedReceipt A custom header to show on the shopper receipt for an authorised transaction. Allows one or two comma-separated header lines, and blank lines. For example, `header,header,filler` + * @param headerForAuthorizedReceipt A custom header to show on the shopper receipt for an + * authorised transaction. Allows one or two comma-separated header lines, and blank lines. + * For example, `header,header,filler` * @return the current {@code CardholderReceipt} instance, allowing for method chaining */ public CardholderReceipt headerForAuthorizedReceipt(String headerForAuthorizedReceipt) { @@ -50,8 +41,12 @@ public CardholderReceipt headerForAuthorizedReceipt(String headerForAuthorizedRe } /** - * A custom header to show on the shopper receipt for an authorised transaction. Allows one or two comma-separated header lines, and blank lines. For example, `header,header,filler` - * @return headerForAuthorizedReceipt A custom header to show on the shopper receipt for an authorised transaction. Allows one or two comma-separated header lines, and blank lines. For example, `header,header,filler` + * A custom header to show on the shopper receipt for an authorised transaction. Allows one or two + * comma-separated header lines, and blank lines. For example, `header,header,filler` + * + * @return headerForAuthorizedReceipt A custom header to show on the shopper receipt for an + * authorised transaction. Allows one or two comma-separated header lines, and blank lines. + * For example, `header,header,filler` */ @JsonProperty(JSON_PROPERTY_HEADER_FOR_AUTHORIZED_RECEIPT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,9 +55,12 @@ public String getHeaderForAuthorizedReceipt() { } /** - * A custom header to show on the shopper receipt for an authorised transaction. Allows one or two comma-separated header lines, and blank lines. For example, `header,header,filler` + * A custom header to show on the shopper receipt for an authorised transaction. Allows one or two + * comma-separated header lines, and blank lines. For example, `header,header,filler` * - * @param headerForAuthorizedReceipt A custom header to show on the shopper receipt for an authorised transaction. Allows one or two comma-separated header lines, and blank lines. For example, `header,header,filler` + * @param headerForAuthorizedReceipt A custom header to show on the shopper receipt for an + * authorised transaction. Allows one or two comma-separated header lines, and blank lines. + * For example, `header,header,filler` */ @JsonProperty(JSON_PROPERTY_HEADER_FOR_AUTHORIZED_RECEIPT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +68,7 @@ public void setHeaderForAuthorizedReceipt(String headerForAuthorizedReceipt) { this.headerForAuthorizedReceipt = headerForAuthorizedReceipt; } - /** - * Return true if this CardholderReceipt object is equal to o. - */ + /** Return true if this CardholderReceipt object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -82,7 +78,8 @@ public boolean equals(Object o) { return false; } CardholderReceipt cardholderReceipt = (CardholderReceipt) o; - return Objects.equals(this.headerForAuthorizedReceipt, cardholderReceipt.headerForAuthorizedReceipt); + return Objects.equals( + this.headerForAuthorizedReceipt, cardholderReceipt.headerForAuthorizedReceipt); } @Override @@ -94,14 +91,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CardholderReceipt {\n"); - sb.append(" headerForAuthorizedReceipt: ").append(toIndentedString(headerForAuthorizedReceipt)).append("\n"); + sb.append(" headerForAuthorizedReceipt: ") + .append(toIndentedString(headerForAuthorizedReceipt)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,7 +108,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CardholderReceipt given an JSON string * * @param jsonString JSON string @@ -120,11 +118,12 @@ private String toIndentedString(Object o) { public static CardholderReceipt fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardholderReceipt.class); } -/** - * Convert an instance of CardholderReceipt to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CardholderReceipt to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CartesBancairesInfo.java b/src/main/java/com/adyen/model/management/CartesBancairesInfo.java index 1ddfdbf8f..a0506cb87 100644 --- a/src/main/java/com/adyen/model/management/CartesBancairesInfo.java +++ b/src/main/java/com/adyen/model/management/CartesBancairesInfo.java @@ -2,37 +2,26 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.TransactionDescriptionInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * CartesBancairesInfo - */ +/** CartesBancairesInfo */ @JsonPropertyOrder({ CartesBancairesInfo.JSON_PROPERTY_SIRET, CartesBancairesInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION }) - public class CartesBancairesInfo { public static final String JSON_PROPERTY_SIRET = "siret"; private String siret; @@ -40,8 +29,7 @@ public class CartesBancairesInfo { public static final String JSON_PROPERTY_TRANSACTION_DESCRIPTION = "transactionDescription"; private TransactionDescriptionInfo transactionDescription; - public CartesBancairesInfo() { - } + public CartesBancairesInfo() {} /** * Cartes Bancaires SIRET. Format: 14 digits. @@ -56,6 +44,7 @@ public CartesBancairesInfo siret(String siret) { /** * Cartes Bancaires SIRET. Format: 14 digits. + * * @return siret Cartes Bancaires SIRET. Format: 14 digits. */ @JsonProperty(JSON_PROPERTY_SIRET) @@ -78,17 +67,19 @@ public void setSiret(String siret) { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription * @return the current {@code CartesBancairesInfo} instance, allowing for method chaining */ - public CartesBancairesInfo transactionDescription(TransactionDescriptionInfo transactionDescription) { + public CartesBancairesInfo transactionDescription( + TransactionDescriptionInfo transactionDescription) { this.transactionDescription = transactionDescription; return this; } /** * Get transactionDescription - * @return transactionDescription + * + * @return transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,7 +90,7 @@ public TransactionDescriptionInfo getTransactionDescription() { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,9 +98,7 @@ public void setTransactionDescription(TransactionDescriptionInfo transactionDesc this.transactionDescription = transactionDescription; } - /** - * Return true if this CartesBancairesInfo object is equal to o. - */ + /** Return true if this CartesBancairesInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -119,8 +108,8 @@ public boolean equals(Object o) { return false; } CartesBancairesInfo cartesBancairesInfo = (CartesBancairesInfo) o; - return Objects.equals(this.siret, cartesBancairesInfo.siret) && - Objects.equals(this.transactionDescription, cartesBancairesInfo.transactionDescription); + return Objects.equals(this.siret, cartesBancairesInfo.siret) + && Objects.equals(this.transactionDescription, cartesBancairesInfo.transactionDescription); } @Override @@ -133,14 +122,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CartesBancairesInfo {\n"); sb.append(" siret: ").append(toIndentedString(siret)).append("\n"); - sb.append(" transactionDescription: ").append(toIndentedString(transactionDescription)).append("\n"); + sb.append(" transactionDescription: ") + .append(toIndentedString(transactionDescription)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -149,21 +139,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CartesBancairesInfo given an JSON string * * @param jsonString JSON string * @return An instance of CartesBancairesInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to CartesBancairesInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CartesBancairesInfo */ public static CartesBancairesInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CartesBancairesInfo.class); } -/** - * Convert an instance of CartesBancairesInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CartesBancairesInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ClearpayInfo.java b/src/main/java/com/adyen/model/management/ClearpayInfo.java index dc0b0e9d4..faabca50c 100644 --- a/src/main/java/com/adyen/model/management/ClearpayInfo.java +++ b/src/main/java/com/adyen/model/management/ClearpayInfo.java @@ -2,41 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ClearpayInfo - */ -@JsonPropertyOrder({ - ClearpayInfo.JSON_PROPERTY_SUPPORT_URL -}) - +/** ClearpayInfo */ +@JsonPropertyOrder({ClearpayInfo.JSON_PROPERTY_SUPPORT_URL}) public class ClearpayInfo { public static final String JSON_PROPERTY_SUPPORT_URL = "supportUrl"; private String supportUrl; - public ClearpayInfo() { - } + public ClearpayInfo() {} /** * Support Url @@ -51,6 +38,7 @@ public ClearpayInfo supportUrl(String supportUrl) { /** * Support Url + * * @return supportUrl Support Url */ @JsonProperty(JSON_PROPERTY_SUPPORT_URL) @@ -70,9 +58,7 @@ public void setSupportUrl(String supportUrl) { this.supportUrl = supportUrl; } - /** - * Return true if this ClearpayInfo object is equal to o. - */ + /** Return true if this ClearpayInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,7 +95,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ClearpayInfo given an JSON string * * @param jsonString JSON string @@ -120,11 +105,12 @@ private String toIndentedString(Object o) { public static ClearpayInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ClearpayInfo.class); } -/** - * Convert an instance of ClearpayInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ClearpayInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Commission.java b/src/main/java/com/adyen/model/management/Commission.java index 66b94a9b9..e19533f03 100644 --- a/src/main/java/com/adyen/model/management/Commission.java +++ b/src/main/java/com/adyen/model/management/Commission.java @@ -2,36 +2,26 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Commission - */ +/** Commission */ @JsonPropertyOrder({ Commission.JSON_PROPERTY_FIXED_AMOUNT, Commission.JSON_PROPERTY_VARIABLE_PERCENTAGE }) - public class Commission { public static final String JSON_PROPERTY_FIXED_AMOUNT = "fixedAmount"; private Long fixedAmount; @@ -39,8 +29,7 @@ public class Commission { public static final String JSON_PROPERTY_VARIABLE_PERCENTAGE = "variablePercentage"; private Long variablePercentage; - public Commission() { - } + public Commission() {} /** * A fixed commission fee, in minor units. @@ -55,6 +44,7 @@ public Commission fixedAmount(Long fixedAmount) { /** * A fixed commission fee, in minor units. + * * @return fixedAmount A fixed commission fee, in minor units. */ @JsonProperty(JSON_PROPERTY_FIXED_AMOUNT) @@ -87,6 +77,7 @@ public Commission variablePercentage(Long variablePercentage) { /** * A variable commission fee, in basis points. + * * @return variablePercentage A variable commission fee, in basis points. */ @JsonProperty(JSON_PROPERTY_VARIABLE_PERCENTAGE) @@ -106,9 +97,7 @@ public void setVariablePercentage(Long variablePercentage) { this.variablePercentage = variablePercentage; } - /** - * Return true if this Commission object is equal to o. - */ + /** Return true if this Commission object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +107,8 @@ public boolean equals(Object o) { return false; } Commission commission = (Commission) o; - return Objects.equals(this.fixedAmount, commission.fixedAmount) && - Objects.equals(this.variablePercentage, commission.variablePercentage); + return Objects.equals(this.fixedAmount, commission.fixedAmount) + && Objects.equals(this.variablePercentage, commission.variablePercentage); } @Override @@ -138,8 +127,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +136,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Commission given an JSON string * * @param jsonString JSON string @@ -158,11 +146,12 @@ private String toIndentedString(Object o) { public static Commission fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Commission.class); } -/** - * Convert an instance of Commission to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Commission to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Company.java b/src/main/java/com/adyen/model/management/Company.java index 8b0b1f1cd..04397848a 100644 --- a/src/main/java/com/adyen/model/management/Company.java +++ b/src/main/java/com/adyen/model/management/Company.java @@ -2,35 +2,24 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.CompanyLinks; -import com.adyen.model.management.DataCenter; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * Company - */ +/** Company */ @JsonPropertyOrder({ Company.JSON_PROPERTY_LINKS, Company.JSON_PROPERTY_DATA_CENTERS, @@ -40,7 +29,6 @@ Company.JSON_PROPERTY_REFERENCE, Company.JSON_PROPERTY_STATUS }) - public class Company { public static final String JSON_PROPERTY_LINKS = "_links"; private CompanyLinks links; @@ -63,13 +51,12 @@ public class Company { public static final String JSON_PROPERTY_STATUS = "status"; private String status; - public Company() { - } + public Company() {} /** * links * - * @param links + * @param links * @return the current {@code Company} instance, allowing for method chaining */ public Company links(CompanyLinks links) { @@ -79,7 +66,8 @@ public Company links(CompanyLinks links) { /** * Get links - * @return links + * + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -90,7 +78,7 @@ public CompanyLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,9 +87,13 @@ public void setLinks(CompanyLinks links) { } /** - * List of available data centers. Adyen has several data centers around the world.In the URL that you use for making API requests, we recommend you use the live URL prefix from the data center closest to your shoppers. + * List of available data centers. Adyen has several data centers around the world.In the URL that + * you use for making API requests, we recommend you use the live URL prefix from the data center + * closest to your shoppers. * - * @param dataCenters List of available data centers. Adyen has several data centers around the world.In the URL that you use for making API requests, we recommend you use the live URL prefix from the data center closest to your shoppers. + * @param dataCenters List of available data centers. Adyen has several data centers around the + * world.In the URL that you use for making API requests, we recommend you use the live URL + * prefix from the data center closest to your shoppers. * @return the current {@code Company} instance, allowing for method chaining */ public Company dataCenters(List dataCenters) { @@ -118,8 +110,13 @@ public Company addDataCentersItem(DataCenter dataCentersItem) { } /** - * List of available data centers. Adyen has several data centers around the world.In the URL that you use for making API requests, we recommend you use the live URL prefix from the data center closest to your shoppers. - * @return dataCenters List of available data centers. Adyen has several data centers around the world.In the URL that you use for making API requests, we recommend you use the live URL prefix from the data center closest to your shoppers. + * List of available data centers. Adyen has several data centers around the world.In the URL that + * you use for making API requests, we recommend you use the live URL prefix from the data center + * closest to your shoppers. + * + * @return dataCenters List of available data centers. Adyen has several data centers around the + * world.In the URL that you use for making API requests, we recommend you use the live URL + * prefix from the data center closest to your shoppers. */ @JsonProperty(JSON_PROPERTY_DATA_CENTERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,9 +125,13 @@ public List getDataCenters() { } /** - * List of available data centers. Adyen has several data centers around the world.In the URL that you use for making API requests, we recommend you use the live URL prefix from the data center closest to your shoppers. + * List of available data centers. Adyen has several data centers around the world.In the URL that + * you use for making API requests, we recommend you use the live URL prefix from the data center + * closest to your shoppers. * - * @param dataCenters List of available data centers. Adyen has several data centers around the world.In the URL that you use for making API requests, we recommend you use the live URL prefix from the data center closest to your shoppers. + * @param dataCenters List of available data centers. Adyen has several data centers around the + * world.In the URL that you use for making API requests, we recommend you use the live URL + * prefix from the data center closest to your shoppers. */ @JsonProperty(JSON_PROPERTY_DATA_CENTERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,6 +152,7 @@ public Company description(String description) { /** * Your description for the company account, maximum 300 characters + * * @return description Your description for the company account, maximum 300 characters */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -183,6 +185,7 @@ public Company id(String id) { /** * The unique identifier of the company account. + * * @return id The unique identifier of the company account. */ @JsonProperty(JSON_PROPERTY_ID) @@ -215,6 +218,7 @@ public Company name(String name) { /** * The legal or trading name of the company. + * * @return name The legal or trading name of the company. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -247,6 +251,7 @@ public Company reference(String reference) { /** * Your reference to the account + * * @return reference Your reference to the account */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -267,9 +272,17 @@ public void setReference(String reference) { } /** - * The status of the company account. Possible values: * **Active**: Users can log in. Processing and payout capabilities depend on the status of the merchant account. * **Inactive**: Users can log in. Payment processing and payouts are disabled. * **Closed**: The company account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. + * The status of the company account. Possible values: * **Active**: Users can log in. Processing + * and payout capabilities depend on the status of the merchant account. * **Inactive**: Users can + * log in. Payment processing and payouts are disabled. * **Closed**: The company account is + * closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are + * disabled. * - * @param status The status of the company account. Possible values: * **Active**: Users can log in. Processing and payout capabilities depend on the status of the merchant account. * **Inactive**: Users can log in. Payment processing and payouts are disabled. * **Closed**: The company account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. + * @param status The status of the company account. Possible values: * **Active**: Users can log + * in. Processing and payout capabilities depend on the status of the merchant account. * + * **Inactive**: Users can log in. Payment processing and payouts are disabled. * **Closed**: + * The company account is closed and this cannot be reversed. Users cannot log in. Payment + * processing and payouts are disabled. * @return the current {@code Company} instance, allowing for method chaining */ public Company status(String status) { @@ -278,8 +291,17 @@ public Company status(String status) { } /** - * The status of the company account. Possible values: * **Active**: Users can log in. Processing and payout capabilities depend on the status of the merchant account. * **Inactive**: Users can log in. Payment processing and payouts are disabled. * **Closed**: The company account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. - * @return status The status of the company account. Possible values: * **Active**: Users can log in. Processing and payout capabilities depend on the status of the merchant account. * **Inactive**: Users can log in. Payment processing and payouts are disabled. * **Closed**: The company account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. + * The status of the company account. Possible values: * **Active**: Users can log in. Processing + * and payout capabilities depend on the status of the merchant account. * **Inactive**: Users can + * log in. Payment processing and payouts are disabled. * **Closed**: The company account is + * closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are + * disabled. + * + * @return status The status of the company account. Possible values: * **Active**: Users can log + * in. Processing and payout capabilities depend on the status of the merchant account. * + * **Inactive**: Users can log in. Payment processing and payouts are disabled. * **Closed**: + * The company account is closed and this cannot be reversed. Users cannot log in. Payment + * processing and payouts are disabled. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -288,9 +310,17 @@ public String getStatus() { } /** - * The status of the company account. Possible values: * **Active**: Users can log in. Processing and payout capabilities depend on the status of the merchant account. * **Inactive**: Users can log in. Payment processing and payouts are disabled. * **Closed**: The company account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. + * The status of the company account. Possible values: * **Active**: Users can log in. Processing + * and payout capabilities depend on the status of the merchant account. * **Inactive**: Users can + * log in. Payment processing and payouts are disabled. * **Closed**: The company account is + * closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are + * disabled. * - * @param status The status of the company account. Possible values: * **Active**: Users can log in. Processing and payout capabilities depend on the status of the merchant account. * **Inactive**: Users can log in. Payment processing and payouts are disabled. * **Closed**: The company account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. + * @param status The status of the company account. Possible values: * **Active**: Users can log + * in. Processing and payout capabilities depend on the status of the merchant account. * + * **Inactive**: Users can log in. Payment processing and payouts are disabled. * **Closed**: + * The company account is closed and this cannot be reversed. Users cannot log in. Payment + * processing and payouts are disabled. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -298,9 +328,7 @@ public void setStatus(String status) { this.status = status; } - /** - * Return true if this Company object is equal to o. - */ + /** Return true if this Company object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -310,13 +338,13 @@ public boolean equals(Object o) { return false; } Company company = (Company) o; - return Objects.equals(this.links, company.links) && - Objects.equals(this.dataCenters, company.dataCenters) && - Objects.equals(this.description, company.description) && - Objects.equals(this.id, company.id) && - Objects.equals(this.name, company.name) && - Objects.equals(this.reference, company.reference) && - Objects.equals(this.status, company.status); + return Objects.equals(this.links, company.links) + && Objects.equals(this.dataCenters, company.dataCenters) + && Objects.equals(this.description, company.description) + && Objects.equals(this.id, company.id) + && Objects.equals(this.name, company.name) + && Objects.equals(this.reference, company.reference) + && Objects.equals(this.status, company.status); } @Override @@ -340,8 +368,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -350,7 +377,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Company given an JSON string * * @param jsonString JSON string @@ -360,11 +387,12 @@ private String toIndentedString(Object o) { public static Company fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Company.class); } -/** - * Convert an instance of Company to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Company to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CompanyApiCredential.java b/src/main/java/com/adyen/model/management/CompanyApiCredential.java index bc7fe8c34..8482c2b3e 100644 --- a/src/main/java/com/adyen/model/management/CompanyApiCredential.java +++ b/src/main/java/com/adyen/model/management/CompanyApiCredential.java @@ -2,35 +2,24 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.AllowedOrigin; -import com.adyen.model.management.ApiCredentialLinks; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * CompanyApiCredential - */ +/** CompanyApiCredential */ @JsonPropertyOrder({ CompanyApiCredential.JSON_PROPERTY_LINKS, CompanyApiCredential.JSON_PROPERTY_ACTIVE, @@ -43,7 +32,6 @@ CompanyApiCredential.JSON_PROPERTY_ROLES, CompanyApiCredential.JSON_PROPERTY_USERNAME }) - public class CompanyApiCredential { public static final String JSON_PROPERTY_LINKS = "_links"; private ApiCredentialLinks links; @@ -57,7 +45,8 @@ public class CompanyApiCredential { public static final String JSON_PROPERTY_ALLOWED_ORIGINS = "allowedOrigins"; private List allowedOrigins; - public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS = "associatedMerchantAccounts"; + public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS = + "associatedMerchantAccounts"; private List associatedMerchantAccounts; public static final String JSON_PROPERTY_CLIENT_KEY = "clientKey"; @@ -75,13 +64,12 @@ public class CompanyApiCredential { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public CompanyApiCredential() { - } + public CompanyApiCredential() {} /** * links * - * @param links + * @param links * @return the current {@code CompanyApiCredential} instance, allowing for method chaining */ public CompanyApiCredential links(ApiCredentialLinks links) { @@ -91,7 +79,8 @@ public CompanyApiCredential links(ApiCredentialLinks links) { /** * Get links - * @return links + * + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,7 +91,7 @@ public ApiCredentialLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,9 +100,11 @@ public void setLinks(ApiCredentialLinks links) { } /** - * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in + * your integration. * - * @param active Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + * @param active Indicates if the API credential is enabled. Must be set to **true** to use the + * credential in your integration. * @return the current {@code CompanyApiCredential} instance, allowing for method chaining */ public CompanyApiCredential active(Boolean active) { @@ -122,8 +113,11 @@ public CompanyApiCredential active(Boolean active) { } /** - * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. - * @return active Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in + * your integration. + * + * @return active Indicates if the API credential is enabled. Must be set to **true** to use the + * credential in your integration. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,9 +126,11 @@ public Boolean getActive() { } /** - * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in + * your integration. * - * @param active Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + * @param active Indicates if the API credential is enabled. Must be set to **true** to use the + * credential in your integration. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,9 +139,13 @@ public void setActive(Boolean active) { } /** - * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + * List of IP addresses from which your client can make requests. If the list is empty, we allow + * requests from any IP. If the list is not empty and we get a request from an IP which is not on + * the list, you get a security error. * - * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the + * list is empty, we allow requests from any IP. If the list is not empty and we get a request + * from an IP which is not on the list, you get a security error. * @return the current {@code CompanyApiCredential} instance, allowing for method chaining */ public CompanyApiCredential allowedIpAddresses(List allowedIpAddresses) { @@ -162,8 +162,13 @@ public CompanyApiCredential addAllowedIpAddressesItem(String allowedIpAddressesI } /** - * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. - * @return allowedIpAddresses List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + * List of IP addresses from which your client can make requests. If the list is empty, we allow + * requests from any IP. If the list is not empty and we get a request from an IP which is not on + * the list, you get a security error. + * + * @return allowedIpAddresses List of IP addresses from which your client can make requests. If + * the list is empty, we allow requests from any IP. If the list is not empty and we get a + * request from an IP which is not on the list, you get a security error. */ @JsonProperty(JSON_PROPERTY_ALLOWED_IP_ADDRESSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,9 +177,13 @@ public List getAllowedIpAddresses() { } /** - * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + * List of IP addresses from which your client can make requests. If the list is empty, we allow + * requests from any IP. If the list is not empty and we get a request from an IP which is not on + * the list, you get a security error. * - * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the + * list is empty, we allow requests from any IP. If the list is not empty and we get a request + * from an IP which is not on the list, you get a security error. */ @JsonProperty(JSON_PROPERTY_ALLOWED_IP_ADDRESSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,9 +192,13 @@ public void setAllowedIpAddresses(List allowedIpAddresses) { } /** - * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + * List containing the [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * linked to the API credential. * - * @param allowedOrigins List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + * @param allowedOrigins List containing the [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * linked to the API credential. * @return the current {@code CompanyApiCredential} instance, allowing for method chaining */ public CompanyApiCredential allowedOrigins(List allowedOrigins) { @@ -202,8 +215,13 @@ public CompanyApiCredential addAllowedOriginsItem(AllowedOrigin allowedOriginsIt } /** - * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. - * @return allowedOrigins List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + * List containing the [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * linked to the API credential. + * + * @return allowedOrigins List containing the [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * linked to the API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -212,9 +230,13 @@ public List getAllowedOrigins() { } /** - * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + * List containing the [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * linked to the API credential. * - * @param allowedOrigins List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + * @param allowedOrigins List containing the [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * linked to the API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,9 +245,13 @@ public void setAllowedOrigins(List allowedOrigins) { } /** - * List of merchant accounts that the API credential has explicit access to. If the credential has access to a company, this implies access to all merchant accounts and no merchants for that company will be included. + * List of merchant accounts that the API credential has explicit access to. If the credential has + * access to a company, this implies access to all merchant accounts and no merchants for that + * company will be included. * - * @param associatedMerchantAccounts List of merchant accounts that the API credential has explicit access to. If the credential has access to a company, this implies access to all merchant accounts and no merchants for that company will be included. + * @param associatedMerchantAccounts List of merchant accounts that the API credential has + * explicit access to. If the credential has access to a company, this implies access to all + * merchant accounts and no merchants for that company will be included. * @return the current {@code CompanyApiCredential} instance, allowing for method chaining */ public CompanyApiCredential associatedMerchantAccounts(List associatedMerchantAccounts) { @@ -233,7 +259,8 @@ public CompanyApiCredential associatedMerchantAccounts(List associatedMe return this; } - public CompanyApiCredential addAssociatedMerchantAccountsItem(String associatedMerchantAccountsItem) { + public CompanyApiCredential addAssociatedMerchantAccountsItem( + String associatedMerchantAccountsItem) { if (this.associatedMerchantAccounts == null) { this.associatedMerchantAccounts = new ArrayList<>(); } @@ -242,8 +269,13 @@ public CompanyApiCredential addAssociatedMerchantAccountsItem(String associatedM } /** - * List of merchant accounts that the API credential has explicit access to. If the credential has access to a company, this implies access to all merchant accounts and no merchants for that company will be included. - * @return associatedMerchantAccounts List of merchant accounts that the API credential has explicit access to. If the credential has access to a company, this implies access to all merchant accounts and no merchants for that company will be included. + * List of merchant accounts that the API credential has explicit access to. If the credential has + * access to a company, this implies access to all merchant accounts and no merchants for that + * company will be included. + * + * @return associatedMerchantAccounts List of merchant accounts that the API credential has + * explicit access to. If the credential has access to a company, this implies access to all + * merchant accounts and no merchants for that company will be included. */ @JsonProperty(JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,9 +284,13 @@ public List getAssociatedMerchantAccounts() { } /** - * List of merchant accounts that the API credential has explicit access to. If the credential has access to a company, this implies access to all merchant accounts and no merchants for that company will be included. + * List of merchant accounts that the API credential has explicit access to. If the credential has + * access to a company, this implies access to all merchant accounts and no merchants for that + * company will be included. * - * @param associatedMerchantAccounts List of merchant accounts that the API credential has explicit access to. If the credential has access to a company, this implies access to all merchant accounts and no merchants for that company will be included. + * @param associatedMerchantAccounts List of merchant accounts that the API credential has + * explicit access to. If the credential has access to a company, this implies access to all + * merchant accounts and no merchants for that company will be included. */ @JsonProperty(JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -263,9 +299,13 @@ public void setAssociatedMerchantAccounts(List associatedMerchantAccount } /** - * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + * Public key used for [client-side + * authentication](https://docs.adyen.com/development-resources/client-side-authentication). The + * client key is required for Drop-in and Components integrations. * - * @param clientKey Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + * @param clientKey Public key used for [client-side + * authentication](https://docs.adyen.com/development-resources/client-side-authentication). + * The client key is required for Drop-in and Components integrations. * @return the current {@code CompanyApiCredential} instance, allowing for method chaining */ public CompanyApiCredential clientKey(String clientKey) { @@ -274,8 +314,13 @@ public CompanyApiCredential clientKey(String clientKey) { } /** - * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. - * @return clientKey Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + * Public key used for [client-side + * authentication](https://docs.adyen.com/development-resources/client-side-authentication). The + * client key is required for Drop-in and Components integrations. + * + * @return clientKey Public key used for [client-side + * authentication](https://docs.adyen.com/development-resources/client-side-authentication). + * The client key is required for Drop-in and Components integrations. */ @JsonProperty(JSON_PROPERTY_CLIENT_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,9 +329,13 @@ public String getClientKey() { } /** - * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + * Public key used for [client-side + * authentication](https://docs.adyen.com/development-resources/client-side-authentication). The + * client key is required for Drop-in and Components integrations. * - * @param clientKey Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + * @param clientKey Public key used for [client-side + * authentication](https://docs.adyen.com/development-resources/client-side-authentication). + * The client key is required for Drop-in and Components integrations. */ @JsonProperty(JSON_PROPERTY_CLIENT_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -307,6 +356,7 @@ public CompanyApiCredential description(String description) { /** * Description of the API credential. + * * @return description Description of the API credential. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -339,6 +389,7 @@ public CompanyApiCredential id(String id) { /** * Unique identifier of the API credential. + * * @return id Unique identifier of the API credential. */ @JsonProperty(JSON_PROPERTY_ID) @@ -359,9 +410,12 @@ public void setId(String id) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the + * API credential. * - * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + * @param roles List of + * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API + * credential. * @return the current {@code CompanyApiCredential} instance, allowing for method chaining */ public CompanyApiCredential roles(List roles) { @@ -378,8 +432,12 @@ public CompanyApiCredential addRolesItem(String rolesItem) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. - * @return roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the + * API credential. + * + * @return roles List of + * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API + * credential. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -388,9 +446,12 @@ public List getRoles() { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the + * API credential. * - * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + * @param roles List of + * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API + * credential. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -399,9 +460,12 @@ public void setRoles(List roles) { } /** - * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), + * for example **ws@Company.TestCompany**. * - * @param username The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + * @param username The name of the [API + * credential](https://docs.adyen.com/development-resources/api-credentials), for example + * **ws@Company.TestCompany**. * @return the current {@code CompanyApiCredential} instance, allowing for method chaining */ public CompanyApiCredential username(String username) { @@ -410,8 +474,12 @@ public CompanyApiCredential username(String username) { } /** - * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. - * @return username The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), + * for example **ws@Company.TestCompany**. + * + * @return username The name of the [API + * credential](https://docs.adyen.com/development-resources/api-credentials), for example + * **ws@Company.TestCompany**. */ @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -420,9 +488,12 @@ public String getUsername() { } /** - * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), + * for example **ws@Company.TestCompany**. * - * @param username The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + * @param username The name of the [API + * credential](https://docs.adyen.com/development-resources/api-credentials), for example + * **ws@Company.TestCompany**. */ @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -430,9 +501,7 @@ public void setUsername(String username) { this.username = username; } - /** - * Return true if this CompanyApiCredential object is equal to o. - */ + /** Return true if this CompanyApiCredential object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -442,21 +511,32 @@ public boolean equals(Object o) { return false; } CompanyApiCredential companyApiCredential = (CompanyApiCredential) o; - return Objects.equals(this.links, companyApiCredential.links) && - Objects.equals(this.active, companyApiCredential.active) && - Objects.equals(this.allowedIpAddresses, companyApiCredential.allowedIpAddresses) && - Objects.equals(this.allowedOrigins, companyApiCredential.allowedOrigins) && - Objects.equals(this.associatedMerchantAccounts, companyApiCredential.associatedMerchantAccounts) && - Objects.equals(this.clientKey, companyApiCredential.clientKey) && - Objects.equals(this.description, companyApiCredential.description) && - Objects.equals(this.id, companyApiCredential.id) && - Objects.equals(this.roles, companyApiCredential.roles) && - Objects.equals(this.username, companyApiCredential.username); + return Objects.equals(this.links, companyApiCredential.links) + && Objects.equals(this.active, companyApiCredential.active) + && Objects.equals(this.allowedIpAddresses, companyApiCredential.allowedIpAddresses) + && Objects.equals(this.allowedOrigins, companyApiCredential.allowedOrigins) + && Objects.equals( + this.associatedMerchantAccounts, companyApiCredential.associatedMerchantAccounts) + && Objects.equals(this.clientKey, companyApiCredential.clientKey) + && Objects.equals(this.description, companyApiCredential.description) + && Objects.equals(this.id, companyApiCredential.id) + && Objects.equals(this.roles, companyApiCredential.roles) + && Objects.equals(this.username, companyApiCredential.username); } @Override public int hashCode() { - return Objects.hash(links, active, allowedIpAddresses, allowedOrigins, associatedMerchantAccounts, clientKey, description, id, roles, username); + return Objects.hash( + links, + active, + allowedIpAddresses, + allowedOrigins, + associatedMerchantAccounts, + clientKey, + description, + id, + roles, + username); } @Override @@ -467,7 +547,9 @@ public String toString() { sb.append(" active: ").append(toIndentedString(active)).append("\n"); sb.append(" allowedIpAddresses: ").append(toIndentedString(allowedIpAddresses)).append("\n"); sb.append(" allowedOrigins: ").append(toIndentedString(allowedOrigins)).append("\n"); - sb.append(" associatedMerchantAccounts: ").append(toIndentedString(associatedMerchantAccounts)).append("\n"); + sb.append(" associatedMerchantAccounts: ") + .append(toIndentedString(associatedMerchantAccounts)) + .append("\n"); sb.append(" clientKey: ").append(toIndentedString(clientKey)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); @@ -478,8 +560,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -488,21 +569,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CompanyApiCredential given an JSON string * * @param jsonString JSON string * @return An instance of CompanyApiCredential - * @throws JsonProcessingException if the JSON string is invalid with respect to CompanyApiCredential + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CompanyApiCredential */ public static CompanyApiCredential fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CompanyApiCredential.class); } -/** - * Convert an instance of CompanyApiCredential to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CompanyApiCredential to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CompanyLinks.java b/src/main/java/com/adyen/model/management/CompanyLinks.java index fd37ef10a..0bd1a6468 100644 --- a/src/main/java/com/adyen/model/management/CompanyLinks.java +++ b/src/main/java/com/adyen/model/management/CompanyLinks.java @@ -2,39 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.LinksElement; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * CompanyLinks - */ +/** CompanyLinks */ @JsonPropertyOrder({ CompanyLinks.JSON_PROPERTY_API_CREDENTIALS, CompanyLinks.JSON_PROPERTY_SELF, CompanyLinks.JSON_PROPERTY_USERS, CompanyLinks.JSON_PROPERTY_WEBHOOKS }) - public class CompanyLinks { public static final String JSON_PROPERTY_API_CREDENTIALS = "apiCredentials"; private LinksElement apiCredentials; @@ -48,13 +37,12 @@ public class CompanyLinks { public static final String JSON_PROPERTY_WEBHOOKS = "webhooks"; private LinksElement webhooks; - public CompanyLinks() { - } + public CompanyLinks() {} /** * apiCredentials * - * @param apiCredentials + * @param apiCredentials * @return the current {@code CompanyLinks} instance, allowing for method chaining */ public CompanyLinks apiCredentials(LinksElement apiCredentials) { @@ -64,7 +52,8 @@ public CompanyLinks apiCredentials(LinksElement apiCredentials) { /** * Get apiCredentials - * @return apiCredentials + * + * @return apiCredentials */ @JsonProperty(JSON_PROPERTY_API_CREDENTIALS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,7 +64,7 @@ public LinksElement getApiCredentials() { /** * apiCredentials * - * @param apiCredentials + * @param apiCredentials */ @JsonProperty(JSON_PROPERTY_API_CREDENTIALS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -86,7 +75,7 @@ public void setApiCredentials(LinksElement apiCredentials) { /** * self * - * @param self + * @param self * @return the current {@code CompanyLinks} instance, allowing for method chaining */ public CompanyLinks self(LinksElement self) { @@ -96,7 +85,8 @@ public CompanyLinks self(LinksElement self) { /** * Get self - * @return self + * + * @return self */ @JsonProperty(JSON_PROPERTY_SELF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,7 +97,7 @@ public LinksElement getSelf() { /** * self * - * @param self + * @param self */ @JsonProperty(JSON_PROPERTY_SELF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,7 +108,7 @@ public void setSelf(LinksElement self) { /** * users * - * @param users + * @param users * @return the current {@code CompanyLinks} instance, allowing for method chaining */ public CompanyLinks users(LinksElement users) { @@ -128,7 +118,8 @@ public CompanyLinks users(LinksElement users) { /** * Get users - * @return users + * + * @return users */ @JsonProperty(JSON_PROPERTY_USERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,7 +130,7 @@ public LinksElement getUsers() { /** * users * - * @param users + * @param users */ @JsonProperty(JSON_PROPERTY_USERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,7 +141,7 @@ public void setUsers(LinksElement users) { /** * webhooks * - * @param webhooks + * @param webhooks * @return the current {@code CompanyLinks} instance, allowing for method chaining */ public CompanyLinks webhooks(LinksElement webhooks) { @@ -160,7 +151,8 @@ public CompanyLinks webhooks(LinksElement webhooks) { /** * Get webhooks - * @return webhooks + * + * @return webhooks */ @JsonProperty(JSON_PROPERTY_WEBHOOKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -171,7 +163,7 @@ public LinksElement getWebhooks() { /** * webhooks * - * @param webhooks + * @param webhooks */ @JsonProperty(JSON_PROPERTY_WEBHOOKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,9 +171,7 @@ public void setWebhooks(LinksElement webhooks) { this.webhooks = webhooks; } - /** - * Return true if this CompanyLinks object is equal to o. - */ + /** Return true if this CompanyLinks object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -191,10 +181,10 @@ public boolean equals(Object o) { return false; } CompanyLinks companyLinks = (CompanyLinks) o; - return Objects.equals(this.apiCredentials, companyLinks.apiCredentials) && - Objects.equals(this.self, companyLinks.self) && - Objects.equals(this.users, companyLinks.users) && - Objects.equals(this.webhooks, companyLinks.webhooks); + return Objects.equals(this.apiCredentials, companyLinks.apiCredentials) + && Objects.equals(this.self, companyLinks.self) + && Objects.equals(this.users, companyLinks.users) + && Objects.equals(this.webhooks, companyLinks.webhooks); } @Override @@ -215,8 +205,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -225,7 +214,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CompanyLinks given an JSON string * * @param jsonString JSON string @@ -235,11 +224,12 @@ private String toIndentedString(Object o) { public static CompanyLinks fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CompanyLinks.class); } -/** - * Convert an instance of CompanyLinks to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CompanyLinks to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CompanyUser.java b/src/main/java/com/adyen/model/management/CompanyUser.java index 0c8e00ee6..75297787c 100644 --- a/src/main/java/com/adyen/model/management/CompanyUser.java +++ b/src/main/java/com/adyen/model/management/CompanyUser.java @@ -2,35 +2,24 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.Links; -import com.adyen.model.management.Name; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * CompanyUser - */ +/** CompanyUser */ @JsonPropertyOrder({ CompanyUser.JSON_PROPERTY_LINKS, CompanyUser.JSON_PROPERTY_ACCOUNT_GROUPS, @@ -44,7 +33,6 @@ CompanyUser.JSON_PROPERTY_TIME_ZONE_CODE, CompanyUser.JSON_PROPERTY_USERNAME }) - public class CompanyUser { public static final String JSON_PROPERTY_LINKS = "_links"; private Links links; @@ -58,7 +46,8 @@ public class CompanyUser { public static final String JSON_PROPERTY_APPS = "apps"; private List apps; - public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS = "associatedMerchantAccounts"; + public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS = + "associatedMerchantAccounts"; private List associatedMerchantAccounts; public static final String JSON_PROPERTY_EMAIL = "email"; @@ -79,13 +68,12 @@ public class CompanyUser { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public CompanyUser() { - } + public CompanyUser() {} /** * links * - * @param links + * @param links * @return the current {@code CompanyUser} instance, allowing for method chaining */ public CompanyUser links(Links links) { @@ -95,7 +83,8 @@ public CompanyUser links(Links links) { /** * Get links - * @return links + * + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,7 +95,7 @@ public Links getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,9 +104,12 @@ public void setLinks(Links links) { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) + * associated with this user. * - * @param accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * @param accountGroups The list of [account + * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with + * this user. * @return the current {@code CompanyUser} instance, allowing for method chaining */ public CompanyUser accountGroups(List accountGroups) { @@ -134,8 +126,12 @@ public CompanyUser addAccountGroupsItem(String accountGroupsItem) { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. - * @return accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) + * associated with this user. + * + * @return accountGroups The list of [account + * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with + * this user. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,9 +140,12 @@ public List getAccountGroups() { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) + * associated with this user. * - * @param accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * @param accountGroups The list of [account + * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with + * this user. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,6 +166,7 @@ public CompanyUser active(Boolean active) { /** * Indicates whether this user is active. + * * @return active Indicates whether this user is active. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @@ -207,6 +207,7 @@ public CompanyUser addAppsItem(String appsItem) { /** * Set of apps available to this user + * * @return apps Set of apps available to this user */ @JsonProperty(JSON_PROPERTY_APPS) @@ -227,9 +228,13 @@ public void setApps(List apps) { } /** - * The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. + * The list of [merchant + * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with + * this user. * - * @param associatedMerchantAccounts The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. + * @param associatedMerchantAccounts The list of [merchant + * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated + * with this user. * @return the current {@code CompanyUser} instance, allowing for method chaining */ public CompanyUser associatedMerchantAccounts(List associatedMerchantAccounts) { @@ -246,8 +251,13 @@ public CompanyUser addAssociatedMerchantAccountsItem(String associatedMerchantAc } /** - * The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. - * @return associatedMerchantAccounts The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. + * The list of [merchant + * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with + * this user. + * + * @return associatedMerchantAccounts The list of [merchant + * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated + * with this user. */ @JsonProperty(JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -256,9 +266,13 @@ public List getAssociatedMerchantAccounts() { } /** - * The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. + * The list of [merchant + * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with + * this user. * - * @param associatedMerchantAccounts The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. + * @param associatedMerchantAccounts The list of [merchant + * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated + * with this user. */ @JsonProperty(JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -279,6 +293,7 @@ public CompanyUser email(String email) { /** * The email address of the user. + * * @return email The email address of the user. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -311,6 +326,7 @@ public CompanyUser id(String id) { /** * The unique identifier of the user. + * * @return id The unique identifier of the user. */ @JsonProperty(JSON_PROPERTY_ID) @@ -333,7 +349,7 @@ public void setId(String id) { /** * name * - * @param name + * @param name * @return the current {@code CompanyUser} instance, allowing for method chaining */ public CompanyUser name(Name name) { @@ -343,7 +359,8 @@ public CompanyUser name(Name name) { /** * Get name - * @return name + * + * @return name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -354,7 +371,7 @@ public Name getName() { /** * name * - * @param name + * @param name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -383,6 +400,7 @@ public CompanyUser addRolesItem(String rolesItem) { /** * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. + * * @return roles The list of [roles](https://docs.adyen.com/account/user-roles) for this user. */ @JsonProperty(JSON_PROPERTY_ROLES) @@ -403,9 +421,12 @@ public void setRoles(List roles) { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the + * time zone of the user. For example, **Europe/Amsterdam**. * - * @param timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * @param timeZoneCode The [tz database + * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the + * user. For example, **Europe/Amsterdam**. * @return the current {@code CompanyUser} instance, allowing for method chaining */ public CompanyUser timeZoneCode(String timeZoneCode) { @@ -414,8 +435,12 @@ public CompanyUser timeZoneCode(String timeZoneCode) { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. - * @return timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the + * time zone of the user. For example, **Europe/Amsterdam**. + * + * @return timeZoneCode The [tz database + * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the + * user. For example, **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -424,9 +449,12 @@ public String getTimeZoneCode() { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the + * time zone of the user. For example, **Europe/Amsterdam**. * - * @param timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * @param timeZoneCode The [tz database + * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the + * user. For example, **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -447,6 +475,7 @@ public CompanyUser username(String username) { /** * The username for this user. + * * @return username The username for this user. */ @JsonProperty(JSON_PROPERTY_USERNAME) @@ -466,9 +495,7 @@ public void setUsername(String username) { this.username = username; } - /** - * Return true if this CompanyUser object is equal to o. - */ + /** Return true if this CompanyUser object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -478,22 +505,33 @@ public boolean equals(Object o) { return false; } CompanyUser companyUser = (CompanyUser) o; - return Objects.equals(this.links, companyUser.links) && - Objects.equals(this.accountGroups, companyUser.accountGroups) && - Objects.equals(this.active, companyUser.active) && - Objects.equals(this.apps, companyUser.apps) && - Objects.equals(this.associatedMerchantAccounts, companyUser.associatedMerchantAccounts) && - Objects.equals(this.email, companyUser.email) && - Objects.equals(this.id, companyUser.id) && - Objects.equals(this.name, companyUser.name) && - Objects.equals(this.roles, companyUser.roles) && - Objects.equals(this.timeZoneCode, companyUser.timeZoneCode) && - Objects.equals(this.username, companyUser.username); + return Objects.equals(this.links, companyUser.links) + && Objects.equals(this.accountGroups, companyUser.accountGroups) + && Objects.equals(this.active, companyUser.active) + && Objects.equals(this.apps, companyUser.apps) + && Objects.equals(this.associatedMerchantAccounts, companyUser.associatedMerchantAccounts) + && Objects.equals(this.email, companyUser.email) + && Objects.equals(this.id, companyUser.id) + && Objects.equals(this.name, companyUser.name) + && Objects.equals(this.roles, companyUser.roles) + && Objects.equals(this.timeZoneCode, companyUser.timeZoneCode) + && Objects.equals(this.username, companyUser.username); } @Override public int hashCode() { - return Objects.hash(links, accountGroups, active, apps, associatedMerchantAccounts, email, id, name, roles, timeZoneCode, username); + return Objects.hash( + links, + accountGroups, + active, + apps, + associatedMerchantAccounts, + email, + id, + name, + roles, + timeZoneCode, + username); } @Override @@ -504,7 +542,9 @@ public String toString() { sb.append(" accountGroups: ").append(toIndentedString(accountGroups)).append("\n"); sb.append(" active: ").append(toIndentedString(active)).append("\n"); sb.append(" apps: ").append(toIndentedString(apps)).append("\n"); - sb.append(" associatedMerchantAccounts: ").append(toIndentedString(associatedMerchantAccounts)).append("\n"); + sb.append(" associatedMerchantAccounts: ") + .append(toIndentedString(associatedMerchantAccounts)) + .append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); @@ -516,8 +556,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -526,7 +565,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CompanyUser given an JSON string * * @param jsonString JSON string @@ -536,11 +575,12 @@ private String toIndentedString(Object o) { public static CompanyUser fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CompanyUser.class); } -/** - * Convert an instance of CompanyUser to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CompanyUser to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Connectivity.java b/src/main/java/com/adyen/model/management/Connectivity.java index 90e060fb6..cc71800e0 100644 --- a/src/main/java/com/adyen/model/management/Connectivity.java +++ b/src/main/java/com/adyen/model/management/Connectivity.java @@ -2,43 +2,39 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.EventUrl; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * Connectivity - */ +/** Connectivity */ @JsonPropertyOrder({ Connectivity.JSON_PROPERTY_SIMCARD_STATUS, Connectivity.JSON_PROPERTY_TERMINAL_I_P_ADDRESS_U_R_L }) - public class Connectivity { /** - * Indicates the status of the SIM card in the payment terminal. Can be updated and received only at terminal level, and only for models that support cellular connectivity. Possible values: * **ACTIVATED**: the SIM card is activated. Cellular connectivity may still need to be enabled on the terminal itself, in the **Network** settings. * **INVENTORY**: the SIM card is not activated. The terminal can't use cellular connectivity. + * Indicates the status of the SIM card in the payment terminal. Can be updated and received only + * at terminal level, and only for models that support cellular connectivity. Possible values: * + * **ACTIVATED**: the SIM card is activated. Cellular connectivity may still need to be enabled on + * the terminal itself, in the **Network** settings. * **INVENTORY**: the SIM card is not + * activated. The terminal can't use cellular connectivity. */ public enum SimcardStatusEnum { - ACTIVATED(String.valueOf("ACTIVATED")), INVENTORY(String.valueOf("INVENTORY")); @@ -48,7 +44,7 @@ public enum SimcardStatusEnum { private String value; SimcardStatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +65,11 @@ public static SimcardStatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("SimcardStatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(SimcardStatusEnum.values())); + LOG.warning( + "SimcardStatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(SimcardStatusEnum.values())); return null; } } @@ -80,13 +80,21 @@ public static SimcardStatusEnum fromValue(String value) { public static final String JSON_PROPERTY_TERMINAL_I_P_ADDRESS_U_R_L = "terminalIPAddressURL"; private EventUrl terminalIPAddressURL; - public Connectivity() { - } + public Connectivity() {} /** - * Indicates the status of the SIM card in the payment terminal. Can be updated and received only at terminal level, and only for models that support cellular connectivity. Possible values: * **ACTIVATED**: the SIM card is activated. Cellular connectivity may still need to be enabled on the terminal itself, in the **Network** settings. * **INVENTORY**: the SIM card is not activated. The terminal can't use cellular connectivity. + * Indicates the status of the SIM card in the payment terminal. Can be updated and received only + * at terminal level, and only for models that support cellular connectivity. Possible values: * + * **ACTIVATED**: the SIM card is activated. Cellular connectivity may still need to be enabled on + * the terminal itself, in the **Network** settings. * **INVENTORY**: the SIM card is not + * activated. The terminal can't use cellular connectivity. * - * @param simcardStatus Indicates the status of the SIM card in the payment terminal. Can be updated and received only at terminal level, and only for models that support cellular connectivity. Possible values: * **ACTIVATED**: the SIM card is activated. Cellular connectivity may still need to be enabled on the terminal itself, in the **Network** settings. * **INVENTORY**: the SIM card is not activated. The terminal can't use cellular connectivity. + * @param simcardStatus Indicates the status of the SIM card in the payment terminal. Can be + * updated and received only at terminal level, and only for models that support cellular + * connectivity. Possible values: * **ACTIVATED**: the SIM card is activated. Cellular + * connectivity may still need to be enabled on the terminal itself, in the **Network** + * settings. * **INVENTORY**: the SIM card is not activated. The terminal can't use + * cellular connectivity. * @return the current {@code Connectivity} instance, allowing for method chaining */ public Connectivity simcardStatus(SimcardStatusEnum simcardStatus) { @@ -95,8 +103,18 @@ public Connectivity simcardStatus(SimcardStatusEnum simcardStatus) { } /** - * Indicates the status of the SIM card in the payment terminal. Can be updated and received only at terminal level, and only for models that support cellular connectivity. Possible values: * **ACTIVATED**: the SIM card is activated. Cellular connectivity may still need to be enabled on the terminal itself, in the **Network** settings. * **INVENTORY**: the SIM card is not activated. The terminal can't use cellular connectivity. - * @return simcardStatus Indicates the status of the SIM card in the payment terminal. Can be updated and received only at terminal level, and only for models that support cellular connectivity. Possible values: * **ACTIVATED**: the SIM card is activated. Cellular connectivity may still need to be enabled on the terminal itself, in the **Network** settings. * **INVENTORY**: the SIM card is not activated. The terminal can't use cellular connectivity. + * Indicates the status of the SIM card in the payment terminal. Can be updated and received only + * at terminal level, and only for models that support cellular connectivity. Possible values: * + * **ACTIVATED**: the SIM card is activated. Cellular connectivity may still need to be enabled on + * the terminal itself, in the **Network** settings. * **INVENTORY**: the SIM card is not + * activated. The terminal can't use cellular connectivity. + * + * @return simcardStatus Indicates the status of the SIM card in the payment terminal. Can be + * updated and received only at terminal level, and only for models that support cellular + * connectivity. Possible values: * **ACTIVATED**: the SIM card is activated. Cellular + * connectivity may still need to be enabled on the terminal itself, in the **Network** + * settings. * **INVENTORY**: the SIM card is not activated. The terminal can't use + * cellular connectivity. */ @JsonProperty(JSON_PROPERTY_SIMCARD_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,9 +123,18 @@ public SimcardStatusEnum getSimcardStatus() { } /** - * Indicates the status of the SIM card in the payment terminal. Can be updated and received only at terminal level, and only for models that support cellular connectivity. Possible values: * **ACTIVATED**: the SIM card is activated. Cellular connectivity may still need to be enabled on the terminal itself, in the **Network** settings. * **INVENTORY**: the SIM card is not activated. The terminal can't use cellular connectivity. + * Indicates the status of the SIM card in the payment terminal. Can be updated and received only + * at terminal level, and only for models that support cellular connectivity. Possible values: * + * **ACTIVATED**: the SIM card is activated. Cellular connectivity may still need to be enabled on + * the terminal itself, in the **Network** settings. * **INVENTORY**: the SIM card is not + * activated. The terminal can't use cellular connectivity. * - * @param simcardStatus Indicates the status of the SIM card in the payment terminal. Can be updated and received only at terminal level, and only for models that support cellular connectivity. Possible values: * **ACTIVATED**: the SIM card is activated. Cellular connectivity may still need to be enabled on the terminal itself, in the **Network** settings. * **INVENTORY**: the SIM card is not activated. The terminal can't use cellular connectivity. + * @param simcardStatus Indicates the status of the SIM card in the payment terminal. Can be + * updated and received only at terminal level, and only for models that support cellular + * connectivity. Possible values: * **ACTIVATED**: the SIM card is activated. Cellular + * connectivity may still need to be enabled on the terminal itself, in the **Network** + * settings. * **INVENTORY**: the SIM card is not activated. The terminal can't use + * cellular connectivity. */ @JsonProperty(JSON_PROPERTY_SIMCARD_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,7 +145,7 @@ public void setSimcardStatus(SimcardStatusEnum simcardStatus) { /** * terminalIPAddressURL * - * @param terminalIPAddressURL + * @param terminalIPAddressURL * @return the current {@code Connectivity} instance, allowing for method chaining */ public Connectivity terminalIPAddressURL(EventUrl terminalIPAddressURL) { @@ -128,7 +155,8 @@ public Connectivity terminalIPAddressURL(EventUrl terminalIPAddressURL) { /** * Get terminalIPAddressURL - * @return terminalIPAddressURL + * + * @return terminalIPAddressURL */ @JsonProperty(JSON_PROPERTY_TERMINAL_I_P_ADDRESS_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,7 +167,7 @@ public EventUrl getTerminalIPAddressURL() { /** * terminalIPAddressURL * - * @param terminalIPAddressURL + * @param terminalIPAddressURL */ @JsonProperty(JSON_PROPERTY_TERMINAL_I_P_ADDRESS_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,9 +175,7 @@ public void setTerminalIPAddressURL(EventUrl terminalIPAddressURL) { this.terminalIPAddressURL = terminalIPAddressURL; } - /** - * Return true if this Connectivity object is equal to o. - */ + /** Return true if this Connectivity object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -159,8 +185,8 @@ public boolean equals(Object o) { return false; } Connectivity connectivity = (Connectivity) o; - return Objects.equals(this.simcardStatus, connectivity.simcardStatus) && - Objects.equals(this.terminalIPAddressURL, connectivity.terminalIPAddressURL); + return Objects.equals(this.simcardStatus, connectivity.simcardStatus) + && Objects.equals(this.terminalIPAddressURL, connectivity.terminalIPAddressURL); } @Override @@ -173,14 +199,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Connectivity {\n"); sb.append(" simcardStatus: ").append(toIndentedString(simcardStatus)).append("\n"); - sb.append(" terminalIPAddressURL: ").append(toIndentedString(terminalIPAddressURL)).append("\n"); + sb.append(" terminalIPAddressURL: ") + .append(toIndentedString(terminalIPAddressURL)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -189,7 +216,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Connectivity given an JSON string * * @param jsonString JSON string @@ -199,11 +226,12 @@ private String toIndentedString(Object o) { public static Connectivity fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Connectivity.class); } -/** - * Convert an instance of Connectivity to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Connectivity to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Contact.java b/src/main/java/com/adyen/model/management/Contact.java index 11380af9d..31c3d3c44 100644 --- a/src/main/java/com/adyen/model/management/Contact.java +++ b/src/main/java/com/adyen/model/management/Contact.java @@ -2,31 +2,22 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Contact - */ +/** Contact */ @JsonPropertyOrder({ Contact.JSON_PROPERTY_EMAIL, Contact.JSON_PROPERTY_FIRST_NAME, @@ -34,7 +25,6 @@ Contact.JSON_PROPERTY_LAST_NAME, Contact.JSON_PROPERTY_PHONE_NUMBER }) - public class Contact { public static final String JSON_PROPERTY_EMAIL = "email"; private String email; @@ -51,8 +41,7 @@ public class Contact { public static final String JSON_PROPERTY_PHONE_NUMBER = "phoneNumber"; private String phoneNumber; - public Contact() { - } + public Contact() {} /** * The individual's email address. @@ -67,6 +56,7 @@ public Contact email(String email) { /** * The individual's email address. + * * @return email The individual's email address. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -99,6 +89,7 @@ public Contact firstName(String firstName) { /** * The individual's first name. + * * @return firstName The individual's first name. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @@ -131,6 +122,7 @@ public Contact infix(String infix) { /** * The infix in the individual's name, if any. + * * @return infix The infix in the individual's name, if any. */ @JsonProperty(JSON_PROPERTY_INFIX) @@ -163,6 +155,7 @@ public Contact lastName(String lastName) { /** * The individual's last name. + * * @return lastName The individual's last name. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @@ -183,9 +176,11 @@ public void setLastName(String lastName) { } /** - * The individual's phone number, specified as 10-14 digits with an optional `+` prefix. + * The individual's phone number, specified as 10-14 digits with an optional `+` + * prefix. * - * @param phoneNumber The individual's phone number, specified as 10-14 digits with an optional `+` prefix. + * @param phoneNumber The individual's phone number, specified as 10-14 digits with an + * optional `+` prefix. * @return the current {@code Contact} instance, allowing for method chaining */ public Contact phoneNumber(String phoneNumber) { @@ -194,8 +189,11 @@ public Contact phoneNumber(String phoneNumber) { } /** - * The individual's phone number, specified as 10-14 digits with an optional `+` prefix. - * @return phoneNumber The individual's phone number, specified as 10-14 digits with an optional `+` prefix. + * The individual's phone number, specified as 10-14 digits with an optional `+` + * prefix. + * + * @return phoneNumber The individual's phone number, specified as 10-14 digits with an + * optional `+` prefix. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,9 +202,11 @@ public String getPhoneNumber() { } /** - * The individual's phone number, specified as 10-14 digits with an optional `+` prefix. + * The individual's phone number, specified as 10-14 digits with an optional `+` + * prefix. * - * @param phoneNumber The individual's phone number, specified as 10-14 digits with an optional `+` prefix. + * @param phoneNumber The individual's phone number, specified as 10-14 digits with an + * optional `+` prefix. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,9 +214,7 @@ public void setPhoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; } - /** - * Return true if this Contact object is equal to o. - */ + /** Return true if this Contact object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -226,11 +224,11 @@ public boolean equals(Object o) { return false; } Contact contact = (Contact) o; - return Objects.equals(this.email, contact.email) && - Objects.equals(this.firstName, contact.firstName) && - Objects.equals(this.infix, contact.infix) && - Objects.equals(this.lastName, contact.lastName) && - Objects.equals(this.phoneNumber, contact.phoneNumber); + return Objects.equals(this.email, contact.email) + && Objects.equals(this.firstName, contact.firstName) + && Objects.equals(this.infix, contact.infix) + && Objects.equals(this.lastName, contact.lastName) + && Objects.equals(this.phoneNumber, contact.phoneNumber); } @Override @@ -252,8 +250,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -262,7 +259,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Contact given an JSON string * * @param jsonString JSON string @@ -272,11 +269,12 @@ private String toIndentedString(Object o) { public static Contact fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Contact.class); } -/** - * Convert an instance of Contact to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Contact to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CreateAllowedOriginRequest.java b/src/main/java/com/adyen/model/management/CreateAllowedOriginRequest.java index e1d8b3ecf..68063d5da 100644 --- a/src/main/java/com/adyen/model/management/CreateAllowedOriginRequest.java +++ b/src/main/java/com/adyen/model/management/CreateAllowedOriginRequest.java @@ -2,38 +2,27 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.Links; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * CreateAllowedOriginRequest - */ +/** CreateAllowedOriginRequest */ @JsonPropertyOrder({ CreateAllowedOriginRequest.JSON_PROPERTY_LINKS, CreateAllowedOriginRequest.JSON_PROPERTY_DOMAIN, CreateAllowedOriginRequest.JSON_PROPERTY_ID }) - public class CreateAllowedOriginRequest { public static final String JSON_PROPERTY_LINKS = "_links"; private Links links; @@ -44,13 +33,12 @@ public class CreateAllowedOriginRequest { public static final String JSON_PROPERTY_ID = "id"; private String id; - public CreateAllowedOriginRequest() { - } + public CreateAllowedOriginRequest() {} /** * links * - * @param links + * @param links * @return the current {@code CreateAllowedOriginRequest} instance, allowing for method chaining */ public CreateAllowedOriginRequest links(Links links) { @@ -60,7 +48,8 @@ public CreateAllowedOriginRequest links(Links links) { /** * Get links - * @return links + * + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,7 +60,7 @@ public Links getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -92,6 +81,7 @@ public CreateAllowedOriginRequest domain(String domain) { /** * Domain of the allowed origin. + * * @return domain Domain of the allowed origin. */ @JsonProperty(JSON_PROPERTY_DOMAIN) @@ -124,6 +114,7 @@ public CreateAllowedOriginRequest id(String id) { /** * Unique identifier of the allowed origin. + * * @return id Unique identifier of the allowed origin. */ @JsonProperty(JSON_PROPERTY_ID) @@ -143,9 +134,7 @@ public void setId(String id) { this.id = id; } - /** - * Return true if this CreateAllowedOriginRequest object is equal to o. - */ + /** Return true if this CreateAllowedOriginRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -155,9 +144,9 @@ public boolean equals(Object o) { return false; } CreateAllowedOriginRequest createAllowedOriginRequest = (CreateAllowedOriginRequest) o; - return Objects.equals(this.links, createAllowedOriginRequest.links) && - Objects.equals(this.domain, createAllowedOriginRequest.domain) && - Objects.equals(this.id, createAllowedOriginRequest.id); + return Objects.equals(this.links, createAllowedOriginRequest.links) + && Objects.equals(this.domain, createAllowedOriginRequest.domain) + && Objects.equals(this.id, createAllowedOriginRequest.id); } @Override @@ -177,8 +166,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -187,21 +175,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CreateAllowedOriginRequest given an JSON string * * @param jsonString JSON string * @return An instance of CreateAllowedOriginRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to CreateAllowedOriginRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CreateAllowedOriginRequest */ - public static CreateAllowedOriginRequest fromJson(String jsonString) throws JsonProcessingException { + public static CreateAllowedOriginRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateAllowedOriginRequest.class); } -/** - * Convert an instance of CreateAllowedOriginRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CreateAllowedOriginRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CreateApiCredentialResponse.java b/src/main/java/com/adyen/model/management/CreateApiCredentialResponse.java index dfb2f5802..4983dbbcb 100644 --- a/src/main/java/com/adyen/model/management/CreateApiCredentialResponse.java +++ b/src/main/java/com/adyen/model/management/CreateApiCredentialResponse.java @@ -2,35 +2,24 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.AllowedOrigin; -import com.adyen.model.management.ApiCredentialLinks; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * CreateApiCredentialResponse - */ +/** CreateApiCredentialResponse */ @JsonPropertyOrder({ CreateApiCredentialResponse.JSON_PROPERTY_LINKS, CreateApiCredentialResponse.JSON_PROPERTY_ACTIVE, @@ -44,7 +33,6 @@ CreateApiCredentialResponse.JSON_PROPERTY_ROLES, CreateApiCredentialResponse.JSON_PROPERTY_USERNAME }) - public class CreateApiCredentialResponse { public static final String JSON_PROPERTY_LINKS = "_links"; private ApiCredentialLinks links; @@ -79,13 +67,12 @@ public class CreateApiCredentialResponse { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public CreateApiCredentialResponse() { - } + public CreateApiCredentialResponse() {} /** * links * - * @param links + * @param links * @return the current {@code CreateApiCredentialResponse} instance, allowing for method chaining */ public CreateApiCredentialResponse links(ApiCredentialLinks links) { @@ -95,7 +82,8 @@ public CreateApiCredentialResponse links(ApiCredentialLinks links) { /** * Get links - * @return links + * + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,7 +94,7 @@ public ApiCredentialLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,9 +103,11 @@ public void setLinks(ApiCredentialLinks links) { } /** - * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in + * your integration. * - * @param active Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + * @param active Indicates if the API credential is enabled. Must be set to **true** to use the + * credential in your integration. * @return the current {@code CreateApiCredentialResponse} instance, allowing for method chaining */ public CreateApiCredentialResponse active(Boolean active) { @@ -126,8 +116,11 @@ public CreateApiCredentialResponse active(Boolean active) { } /** - * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. - * @return active Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in + * your integration. + * + * @return active Indicates if the API credential is enabled. Must be set to **true** to use the + * credential in your integration. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,9 +129,11 @@ public Boolean getActive() { } /** - * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in + * your integration. * - * @param active Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + * @param active Indicates if the API credential is enabled. Must be set to **true** to use the + * credential in your integration. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,9 +142,13 @@ public void setActive(Boolean active) { } /** - * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + * List of IP addresses from which your client can make requests. If the list is empty, we allow + * requests from any IP. If the list is not empty and we get a request from an IP which is not on + * the list, you get a security error. * - * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the + * list is empty, we allow requests from any IP. If the list is not empty and we get a request + * from an IP which is not on the list, you get a security error. * @return the current {@code CreateApiCredentialResponse} instance, allowing for method chaining */ public CreateApiCredentialResponse allowedIpAddresses(List allowedIpAddresses) { @@ -166,8 +165,13 @@ public CreateApiCredentialResponse addAllowedIpAddressesItem(String allowedIpAdd } /** - * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. - * @return allowedIpAddresses List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + * List of IP addresses from which your client can make requests. If the list is empty, we allow + * requests from any IP. If the list is not empty and we get a request from an IP which is not on + * the list, you get a security error. + * + * @return allowedIpAddresses List of IP addresses from which your client can make requests. If + * the list is empty, we allow requests from any IP. If the list is not empty and we get a + * request from an IP which is not on the list, you get a security error. */ @JsonProperty(JSON_PROPERTY_ALLOWED_IP_ADDRESSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,9 +180,13 @@ public List getAllowedIpAddresses() { } /** - * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + * List of IP addresses from which your client can make requests. If the list is empty, we allow + * requests from any IP. If the list is not empty and we get a request from an IP which is not on + * the list, you get a security error. * - * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the + * list is empty, we allow requests from any IP. If the list is not empty and we get a request + * from an IP which is not on the list, you get a security error. */ @JsonProperty(JSON_PROPERTY_ALLOWED_IP_ADDRESSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,9 +195,13 @@ public void setAllowedIpAddresses(List allowedIpAddresses) { } /** - * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + * List containing the [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * linked to the API credential. * - * @param allowedOrigins List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + * @param allowedOrigins List containing the [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * linked to the API credential. * @return the current {@code CreateApiCredentialResponse} instance, allowing for method chaining */ public CreateApiCredentialResponse allowedOrigins(List allowedOrigins) { @@ -206,8 +218,13 @@ public CreateApiCredentialResponse addAllowedOriginsItem(AllowedOrigin allowedOr } /** - * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. - * @return allowedOrigins List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + * List containing the [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * linked to the API credential. + * + * @return allowedOrigins List containing the [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * linked to the API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -216,9 +233,13 @@ public List getAllowedOrigins() { } /** - * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + * List containing the [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * linked to the API credential. * - * @param allowedOrigins List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + * @param allowedOrigins List containing the [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * linked to the API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -239,6 +260,7 @@ public CreateApiCredentialResponse apiKey(String apiKey) { /** * The API key for the API credential that was created. + * * @return apiKey The API key for the API credential that was created. */ @JsonProperty(JSON_PROPERTY_API_KEY) @@ -259,9 +281,13 @@ public void setApiKey(String apiKey) { } /** - * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + * Public key used for [client-side + * authentication](https://docs.adyen.com/development-resources/client-side-authentication). The + * client key is required for Drop-in and Components integrations. * - * @param clientKey Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + * @param clientKey Public key used for [client-side + * authentication](https://docs.adyen.com/development-resources/client-side-authentication). + * The client key is required for Drop-in and Components integrations. * @return the current {@code CreateApiCredentialResponse} instance, allowing for method chaining */ public CreateApiCredentialResponse clientKey(String clientKey) { @@ -270,8 +296,13 @@ public CreateApiCredentialResponse clientKey(String clientKey) { } /** - * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. - * @return clientKey Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + * Public key used for [client-side + * authentication](https://docs.adyen.com/development-resources/client-side-authentication). The + * client key is required for Drop-in and Components integrations. + * + * @return clientKey Public key used for [client-side + * authentication](https://docs.adyen.com/development-resources/client-side-authentication). + * The client key is required for Drop-in and Components integrations. */ @JsonProperty(JSON_PROPERTY_CLIENT_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -280,9 +311,13 @@ public String getClientKey() { } /** - * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + * Public key used for [client-side + * authentication](https://docs.adyen.com/development-resources/client-side-authentication). The + * client key is required for Drop-in and Components integrations. * - * @param clientKey Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + * @param clientKey Public key used for [client-side + * authentication](https://docs.adyen.com/development-resources/client-side-authentication). + * The client key is required for Drop-in and Components integrations. */ @JsonProperty(JSON_PROPERTY_CLIENT_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -303,6 +338,7 @@ public CreateApiCredentialResponse description(String description) { /** * Description of the API credential. + * * @return description Description of the API credential. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -335,6 +371,7 @@ public CreateApiCredentialResponse id(String id) { /** * Unique identifier of the API credential. + * * @return id Unique identifier of the API credential. */ @JsonProperty(JSON_PROPERTY_ID) @@ -367,6 +404,7 @@ public CreateApiCredentialResponse password(String password) { /** * The password for the API credential that was created. + * * @return password The password for the API credential that was created. */ @JsonProperty(JSON_PROPERTY_PASSWORD) @@ -387,9 +425,12 @@ public void setPassword(String password) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the + * API credential. * - * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + * @param roles List of + * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API + * credential. * @return the current {@code CreateApiCredentialResponse} instance, allowing for method chaining */ public CreateApiCredentialResponse roles(List roles) { @@ -406,8 +447,12 @@ public CreateApiCredentialResponse addRolesItem(String rolesItem) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. - * @return roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the + * API credential. + * + * @return roles List of + * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API + * credential. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -416,9 +461,12 @@ public List getRoles() { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the + * API credential. * - * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + * @param roles List of + * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API + * credential. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -427,9 +475,12 @@ public void setRoles(List roles) { } /** - * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), + * for example **ws@Company.TestCompany**. * - * @param username The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + * @param username The name of the [API + * credential](https://docs.adyen.com/development-resources/api-credentials), for example + * **ws@Company.TestCompany**. * @return the current {@code CreateApiCredentialResponse} instance, allowing for method chaining */ public CreateApiCredentialResponse username(String username) { @@ -438,8 +489,12 @@ public CreateApiCredentialResponse username(String username) { } /** - * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. - * @return username The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), + * for example **ws@Company.TestCompany**. + * + * @return username The name of the [API + * credential](https://docs.adyen.com/development-resources/api-credentials), for example + * **ws@Company.TestCompany**. */ @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -448,9 +503,12 @@ public String getUsername() { } /** - * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), + * for example **ws@Company.TestCompany**. * - * @param username The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + * @param username The name of the [API + * credential](https://docs.adyen.com/development-resources/api-credentials), for example + * **ws@Company.TestCompany**. */ @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -458,9 +516,7 @@ public void setUsername(String username) { this.username = username; } - /** - * Return true if this CreateApiCredentialResponse object is equal to o. - */ + /** Return true if this CreateApiCredentialResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -470,22 +526,33 @@ public boolean equals(Object o) { return false; } CreateApiCredentialResponse createApiCredentialResponse = (CreateApiCredentialResponse) o; - return Objects.equals(this.links, createApiCredentialResponse.links) && - Objects.equals(this.active, createApiCredentialResponse.active) && - Objects.equals(this.allowedIpAddresses, createApiCredentialResponse.allowedIpAddresses) && - Objects.equals(this.allowedOrigins, createApiCredentialResponse.allowedOrigins) && - Objects.equals(this.apiKey, createApiCredentialResponse.apiKey) && - Objects.equals(this.clientKey, createApiCredentialResponse.clientKey) && - Objects.equals(this.description, createApiCredentialResponse.description) && - Objects.equals(this.id, createApiCredentialResponse.id) && - Objects.equals(this.password, createApiCredentialResponse.password) && - Objects.equals(this.roles, createApiCredentialResponse.roles) && - Objects.equals(this.username, createApiCredentialResponse.username); + return Objects.equals(this.links, createApiCredentialResponse.links) + && Objects.equals(this.active, createApiCredentialResponse.active) + && Objects.equals(this.allowedIpAddresses, createApiCredentialResponse.allowedIpAddresses) + && Objects.equals(this.allowedOrigins, createApiCredentialResponse.allowedOrigins) + && Objects.equals(this.apiKey, createApiCredentialResponse.apiKey) + && Objects.equals(this.clientKey, createApiCredentialResponse.clientKey) + && Objects.equals(this.description, createApiCredentialResponse.description) + && Objects.equals(this.id, createApiCredentialResponse.id) + && Objects.equals(this.password, createApiCredentialResponse.password) + && Objects.equals(this.roles, createApiCredentialResponse.roles) + && Objects.equals(this.username, createApiCredentialResponse.username); } @Override public int hashCode() { - return Objects.hash(links, active, allowedIpAddresses, allowedOrigins, apiKey, clientKey, description, id, password, roles, username); + return Objects.hash( + links, + active, + allowedIpAddresses, + allowedOrigins, + apiKey, + clientKey, + description, + id, + password, + roles, + username); } @Override @@ -508,8 +575,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -518,21 +584,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CreateApiCredentialResponse given an JSON string * * @param jsonString JSON string * @return An instance of CreateApiCredentialResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to CreateApiCredentialResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CreateApiCredentialResponse */ - public static CreateApiCredentialResponse fromJson(String jsonString) throws JsonProcessingException { + public static CreateApiCredentialResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateApiCredentialResponse.class); } -/** - * Convert an instance of CreateApiCredentialResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CreateApiCredentialResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CreateCompanyApiCredentialRequest.java b/src/main/java/com/adyen/model/management/CreateCompanyApiCredentialRequest.java index ccd4628a5..7e5c031c3 100644 --- a/src/main/java/com/adyen/model/management/CreateCompanyApiCredentialRequest.java +++ b/src/main/java/com/adyen/model/management/CreateCompanyApiCredentialRequest.java @@ -2,45 +2,36 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * CreateCompanyApiCredentialRequest - */ +/** CreateCompanyApiCredentialRequest */ @JsonPropertyOrder({ CreateCompanyApiCredentialRequest.JSON_PROPERTY_ALLOWED_ORIGINS, CreateCompanyApiCredentialRequest.JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS, CreateCompanyApiCredentialRequest.JSON_PROPERTY_DESCRIPTION, CreateCompanyApiCredentialRequest.JSON_PROPERTY_ROLES }) - public class CreateCompanyApiCredentialRequest { public static final String JSON_PROPERTY_ALLOWED_ORIGINS = "allowedOrigins"; private List allowedOrigins; - public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS = "associatedMerchantAccounts"; + public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS = + "associatedMerchantAccounts"; private List associatedMerchantAccounts; public static final String JSON_PROPERTY_DESCRIPTION = "description"; @@ -49,14 +40,18 @@ public class CreateCompanyApiCredentialRequest { public static final String JSON_PROPERTY_ROLES = "roles"; private List roles; - public CreateCompanyApiCredentialRequest() { - } + public CreateCompanyApiCredentialRequest() {} /** - * List of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential. + * List of [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * for the new API credential. * - * @param allowedOrigins List of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential. - * @return the current {@code CreateCompanyApiCredentialRequest} instance, allowing for method chaining + * @param allowedOrigins List of [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * for the new API credential. + * @return the current {@code CreateCompanyApiCredentialRequest} instance, allowing for method + * chaining */ public CreateCompanyApiCredentialRequest allowedOrigins(List allowedOrigins) { this.allowedOrigins = allowedOrigins; @@ -72,8 +67,13 @@ public CreateCompanyApiCredentialRequest addAllowedOriginsItem(String allowedOri } /** - * List of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential. - * @return allowedOrigins List of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential. + * List of [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * for the new API credential. + * + * @return allowedOrigins List of [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * for the new API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -82,9 +82,13 @@ public List getAllowedOrigins() { } /** - * List of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential. + * List of [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * for the new API credential. * - * @param allowedOrigins List of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential. + * @param allowedOrigins List of [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * for the new API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -95,15 +99,19 @@ public void setAllowedOrigins(List allowedOrigins) { /** * List of merchant accounts that the API credential has access to. * - * @param associatedMerchantAccounts List of merchant accounts that the API credential has access to. - * @return the current {@code CreateCompanyApiCredentialRequest} instance, allowing for method chaining + * @param associatedMerchantAccounts List of merchant accounts that the API credential has access + * to. + * @return the current {@code CreateCompanyApiCredentialRequest} instance, allowing for method + * chaining */ - public CreateCompanyApiCredentialRequest associatedMerchantAccounts(List associatedMerchantAccounts) { + public CreateCompanyApiCredentialRequest associatedMerchantAccounts( + List associatedMerchantAccounts) { this.associatedMerchantAccounts = associatedMerchantAccounts; return this; } - public CreateCompanyApiCredentialRequest addAssociatedMerchantAccountsItem(String associatedMerchantAccountsItem) { + public CreateCompanyApiCredentialRequest addAssociatedMerchantAccountsItem( + String associatedMerchantAccountsItem) { if (this.associatedMerchantAccounts == null) { this.associatedMerchantAccounts = new ArrayList<>(); } @@ -113,7 +121,9 @@ public CreateCompanyApiCredentialRequest addAssociatedMerchantAccountsItem(Strin /** * List of merchant accounts that the API credential has access to. - * @return associatedMerchantAccounts List of merchant accounts that the API credential has access to. + * + * @return associatedMerchantAccounts List of merchant accounts that the API credential has access + * to. */ @JsonProperty(JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,7 +134,8 @@ public List getAssociatedMerchantAccounts() { /** * List of merchant accounts that the API credential has access to. * - * @param associatedMerchantAccounts List of merchant accounts that the API credential has access to. + * @param associatedMerchantAccounts List of merchant accounts that the API credential has access + * to. */ @JsonProperty(JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,7 +147,8 @@ public void setAssociatedMerchantAccounts(List associatedMerchantAccount * Description of the API credential. * * @param description Description of the API credential. - * @return the current {@code CreateCompanyApiCredentialRequest} instance, allowing for method chaining + * @return the current {@code CreateCompanyApiCredentialRequest} instance, allowing for method + * chaining */ public CreateCompanyApiCredentialRequest description(String description) { this.description = description; @@ -145,6 +157,7 @@ public CreateCompanyApiCredentialRequest description(String description) { /** * Description of the API credential. + * * @return description Description of the API credential. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -165,10 +178,16 @@ public void setDescription(String description) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the + * API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned + * to other API credentials. * - * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. - * @return the current {@code CreateCompanyApiCredentialRequest} instance, allowing for method chaining + * @param roles List of + * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API + * credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned + * to other API credentials. + * @return the current {@code CreateCompanyApiCredentialRequest} instance, allowing for method + * chaining */ public CreateCompanyApiCredentialRequest roles(List roles) { this.roles = roles; @@ -184,8 +203,14 @@ public CreateCompanyApiCredentialRequest addRolesItem(String rolesItem) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. - * @return roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the + * API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned + * to other API credentials. + * + * @return roles List of + * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API + * credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned + * to other API credentials. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,9 +219,14 @@ public List getRoles() { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the + * API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned + * to other API credentials. * - * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. + * @param roles List of + * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API + * credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned + * to other API credentials. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,9 +234,7 @@ public void setRoles(List roles) { this.roles = roles; } - /** - * Return true if this CreateCompanyApiCredentialRequest object is equal to o. - */ + /** Return true if this CreateCompanyApiCredentialRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -215,11 +243,14 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CreateCompanyApiCredentialRequest createCompanyApiCredentialRequest = (CreateCompanyApiCredentialRequest) o; - return Objects.equals(this.allowedOrigins, createCompanyApiCredentialRequest.allowedOrigins) && - Objects.equals(this.associatedMerchantAccounts, createCompanyApiCredentialRequest.associatedMerchantAccounts) && - Objects.equals(this.description, createCompanyApiCredentialRequest.description) && - Objects.equals(this.roles, createCompanyApiCredentialRequest.roles); + CreateCompanyApiCredentialRequest createCompanyApiCredentialRequest = + (CreateCompanyApiCredentialRequest) o; + return Objects.equals(this.allowedOrigins, createCompanyApiCredentialRequest.allowedOrigins) + && Objects.equals( + this.associatedMerchantAccounts, + createCompanyApiCredentialRequest.associatedMerchantAccounts) + && Objects.equals(this.description, createCompanyApiCredentialRequest.description) + && Objects.equals(this.roles, createCompanyApiCredentialRequest.roles); } @Override @@ -232,7 +263,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateCompanyApiCredentialRequest {\n"); sb.append(" allowedOrigins: ").append(toIndentedString(allowedOrigins)).append("\n"); - sb.append(" associatedMerchantAccounts: ").append(toIndentedString(associatedMerchantAccounts)).append("\n"); + sb.append(" associatedMerchantAccounts: ") + .append(toIndentedString(associatedMerchantAccounts)) + .append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" roles: ").append(toIndentedString(roles)).append("\n"); sb.append("}"); @@ -240,8 +273,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -250,21 +282,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CreateCompanyApiCredentialRequest given an JSON string * * @param jsonString JSON string * @return An instance of CreateCompanyApiCredentialRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to CreateCompanyApiCredentialRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CreateCompanyApiCredentialRequest */ - public static CreateCompanyApiCredentialRequest fromJson(String jsonString) throws JsonProcessingException { + public static CreateCompanyApiCredentialRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateCompanyApiCredentialRequest.class); } -/** - * Convert an instance of CreateCompanyApiCredentialRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CreateCompanyApiCredentialRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CreateCompanyApiCredentialResponse.java b/src/main/java/com/adyen/model/management/CreateCompanyApiCredentialResponse.java index 1d760e977..b726a313b 100644 --- a/src/main/java/com/adyen/model/management/CreateCompanyApiCredentialResponse.java +++ b/src/main/java/com/adyen/model/management/CreateCompanyApiCredentialResponse.java @@ -2,35 +2,24 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.AllowedOrigin; -import com.adyen.model.management.ApiCredentialLinks; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * CreateCompanyApiCredentialResponse - */ +/** CreateCompanyApiCredentialResponse */ @JsonPropertyOrder({ CreateCompanyApiCredentialResponse.JSON_PROPERTY_LINKS, CreateCompanyApiCredentialResponse.JSON_PROPERTY_ACTIVE, @@ -45,7 +34,6 @@ CreateCompanyApiCredentialResponse.JSON_PROPERTY_ROLES, CreateCompanyApiCredentialResponse.JSON_PROPERTY_USERNAME }) - public class CreateCompanyApiCredentialResponse { public static final String JSON_PROPERTY_LINKS = "_links"; private ApiCredentialLinks links; @@ -62,7 +50,8 @@ public class CreateCompanyApiCredentialResponse { public static final String JSON_PROPERTY_API_KEY = "apiKey"; private String apiKey; - public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS = "associatedMerchantAccounts"; + public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS = + "associatedMerchantAccounts"; private List associatedMerchantAccounts; public static final String JSON_PROPERTY_CLIENT_KEY = "clientKey"; @@ -83,14 +72,14 @@ public class CreateCompanyApiCredentialResponse { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public CreateCompanyApiCredentialResponse() { - } + public CreateCompanyApiCredentialResponse() {} /** * links * - * @param links - * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method chaining + * @param links + * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method + * chaining */ public CreateCompanyApiCredentialResponse links(ApiCredentialLinks links) { this.links = links; @@ -99,7 +88,8 @@ public CreateCompanyApiCredentialResponse links(ApiCredentialLinks links) { /** * Get links - * @return links + * + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,7 +100,7 @@ public ApiCredentialLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -119,10 +109,13 @@ public void setLinks(ApiCredentialLinks links) { } /** - * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in + * your integration. * - * @param active Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. - * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method chaining + * @param active Indicates if the API credential is enabled. Must be set to **true** to use the + * credential in your integration. + * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method + * chaining */ public CreateCompanyApiCredentialResponse active(Boolean active) { this.active = active; @@ -130,8 +123,11 @@ public CreateCompanyApiCredentialResponse active(Boolean active) { } /** - * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. - * @return active Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in + * your integration. + * + * @return active Indicates if the API credential is enabled. Must be set to **true** to use the + * credential in your integration. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,9 +136,11 @@ public Boolean getActive() { } /** - * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in + * your integration. * - * @param active Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + * @param active Indicates if the API credential is enabled. Must be set to **true** to use the + * credential in your integration. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,17 +149,23 @@ public void setActive(Boolean active) { } /** - * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + * List of IP addresses from which your client can make requests. If the list is empty, we allow + * requests from any IP. If the list is not empty and we get a request from an IP which is not on + * the list, you get a security error. * - * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. - * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method chaining + * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the + * list is empty, we allow requests from any IP. If the list is not empty and we get a request + * from an IP which is not on the list, you get a security error. + * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method + * chaining */ public CreateCompanyApiCredentialResponse allowedIpAddresses(List allowedIpAddresses) { this.allowedIpAddresses = allowedIpAddresses; return this; } - public CreateCompanyApiCredentialResponse addAllowedIpAddressesItem(String allowedIpAddressesItem) { + public CreateCompanyApiCredentialResponse addAllowedIpAddressesItem( + String allowedIpAddressesItem) { if (this.allowedIpAddresses == null) { this.allowedIpAddresses = new ArrayList<>(); } @@ -170,8 +174,13 @@ public CreateCompanyApiCredentialResponse addAllowedIpAddressesItem(String allow } /** - * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. - * @return allowedIpAddresses List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + * List of IP addresses from which your client can make requests. If the list is empty, we allow + * requests from any IP. If the list is not empty and we get a request from an IP which is not on + * the list, you get a security error. + * + * @return allowedIpAddresses List of IP addresses from which your client can make requests. If + * the list is empty, we allow requests from any IP. If the list is not empty and we get a + * request from an IP which is not on the list, you get a security error. */ @JsonProperty(JSON_PROPERTY_ALLOWED_IP_ADDRESSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -180,9 +189,13 @@ public List getAllowedIpAddresses() { } /** - * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + * List of IP addresses from which your client can make requests. If the list is empty, we allow + * requests from any IP. If the list is not empty and we get a request from an IP which is not on + * the list, you get a security error. * - * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the + * list is empty, we allow requests from any IP. If the list is not empty and we get a request + * from an IP which is not on the list, you get a security error. */ @JsonProperty(JSON_PROPERTY_ALLOWED_IP_ADDRESSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,17 +204,23 @@ public void setAllowedIpAddresses(List allowedIpAddresses) { } /** - * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + * List containing the [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * linked to the API credential. * - * @param allowedOrigins List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. - * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method chaining + * @param allowedOrigins List containing the [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * linked to the API credential. + * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method + * chaining */ public CreateCompanyApiCredentialResponse allowedOrigins(List allowedOrigins) { this.allowedOrigins = allowedOrigins; return this; } - public CreateCompanyApiCredentialResponse addAllowedOriginsItem(AllowedOrigin allowedOriginsItem) { + public CreateCompanyApiCredentialResponse addAllowedOriginsItem( + AllowedOrigin allowedOriginsItem) { if (this.allowedOrigins == null) { this.allowedOrigins = new ArrayList<>(); } @@ -210,8 +229,13 @@ public CreateCompanyApiCredentialResponse addAllowedOriginsItem(AllowedOrigin al } /** - * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. - * @return allowedOrigins List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + * List containing the [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * linked to the API credential. + * + * @return allowedOrigins List containing the [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * linked to the API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -220,9 +244,13 @@ public List getAllowedOrigins() { } /** - * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + * List containing the [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * linked to the API credential. * - * @param allowedOrigins List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + * @param allowedOrigins List containing the [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * linked to the API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -234,7 +262,8 @@ public void setAllowedOrigins(List allowedOrigins) { * The API key for the API credential that was created. * * @param apiKey The API key for the API credential that was created. - * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method chaining + * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method + * chaining */ public CreateCompanyApiCredentialResponse apiKey(String apiKey) { this.apiKey = apiKey; @@ -243,6 +272,7 @@ public CreateCompanyApiCredentialResponse apiKey(String apiKey) { /** * The API key for the API credential that was created. + * * @return apiKey The API key for the API credential that was created. */ @JsonProperty(JSON_PROPERTY_API_KEY) @@ -265,15 +295,19 @@ public void setApiKey(String apiKey) { /** * List of merchant accounts that the API credential has access to. * - * @param associatedMerchantAccounts List of merchant accounts that the API credential has access to. - * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method chaining + * @param associatedMerchantAccounts List of merchant accounts that the API credential has access + * to. + * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method + * chaining */ - public CreateCompanyApiCredentialResponse associatedMerchantAccounts(List associatedMerchantAccounts) { + public CreateCompanyApiCredentialResponse associatedMerchantAccounts( + List associatedMerchantAccounts) { this.associatedMerchantAccounts = associatedMerchantAccounts; return this; } - public CreateCompanyApiCredentialResponse addAssociatedMerchantAccountsItem(String associatedMerchantAccountsItem) { + public CreateCompanyApiCredentialResponse addAssociatedMerchantAccountsItem( + String associatedMerchantAccountsItem) { if (this.associatedMerchantAccounts == null) { this.associatedMerchantAccounts = new ArrayList<>(); } @@ -283,7 +317,9 @@ public CreateCompanyApiCredentialResponse addAssociatedMerchantAccountsItem(Stri /** * List of merchant accounts that the API credential has access to. - * @return associatedMerchantAccounts List of merchant accounts that the API credential has access to. + * + * @return associatedMerchantAccounts List of merchant accounts that the API credential has access + * to. */ @JsonProperty(JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -294,7 +330,8 @@ public List getAssociatedMerchantAccounts() { /** * List of merchant accounts that the API credential has access to. * - * @param associatedMerchantAccounts List of merchant accounts that the API credential has access to. + * @param associatedMerchantAccounts List of merchant accounts that the API credential has access + * to. */ @JsonProperty(JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -303,10 +340,15 @@ public void setAssociatedMerchantAccounts(List associatedMerchantAccount } /** - * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + * Public key used for [client-side + * authentication](https://docs.adyen.com/development-resources/client-side-authentication). The + * client key is required for Drop-in and Components integrations. * - * @param clientKey Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. - * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method chaining + * @param clientKey Public key used for [client-side + * authentication](https://docs.adyen.com/development-resources/client-side-authentication). + * The client key is required for Drop-in and Components integrations. + * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method + * chaining */ public CreateCompanyApiCredentialResponse clientKey(String clientKey) { this.clientKey = clientKey; @@ -314,8 +356,13 @@ public CreateCompanyApiCredentialResponse clientKey(String clientKey) { } /** - * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. - * @return clientKey Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + * Public key used for [client-side + * authentication](https://docs.adyen.com/development-resources/client-side-authentication). The + * client key is required for Drop-in and Components integrations. + * + * @return clientKey Public key used for [client-side + * authentication](https://docs.adyen.com/development-resources/client-side-authentication). + * The client key is required for Drop-in and Components integrations. */ @JsonProperty(JSON_PROPERTY_CLIENT_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -324,9 +371,13 @@ public String getClientKey() { } /** - * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + * Public key used for [client-side + * authentication](https://docs.adyen.com/development-resources/client-side-authentication). The + * client key is required for Drop-in and Components integrations. * - * @param clientKey Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + * @param clientKey Public key used for [client-side + * authentication](https://docs.adyen.com/development-resources/client-side-authentication). + * The client key is required for Drop-in and Components integrations. */ @JsonProperty(JSON_PROPERTY_CLIENT_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -338,7 +389,8 @@ public void setClientKey(String clientKey) { * Description of the API credential. * * @param description Description of the API credential. - * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method chaining + * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method + * chaining */ public CreateCompanyApiCredentialResponse description(String description) { this.description = description; @@ -347,6 +399,7 @@ public CreateCompanyApiCredentialResponse description(String description) { /** * Description of the API credential. + * * @return description Description of the API credential. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -370,7 +423,8 @@ public void setDescription(String description) { * Unique identifier of the API credential. * * @param id Unique identifier of the API credential. - * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method chaining + * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method + * chaining */ public CreateCompanyApiCredentialResponse id(String id) { this.id = id; @@ -379,6 +433,7 @@ public CreateCompanyApiCredentialResponse id(String id) { /** * Unique identifier of the API credential. + * * @return id Unique identifier of the API credential. */ @JsonProperty(JSON_PROPERTY_ID) @@ -402,7 +457,8 @@ public void setId(String id) { * The password for the API credential that was created. * * @param password The password for the API credential that was created. - * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method chaining + * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method + * chaining */ public CreateCompanyApiCredentialResponse password(String password) { this.password = password; @@ -411,6 +467,7 @@ public CreateCompanyApiCredentialResponse password(String password) { /** * The password for the API credential that was created. + * * @return password The password for the API credential that was created. */ @JsonProperty(JSON_PROPERTY_PASSWORD) @@ -431,10 +488,14 @@ public void setPassword(String password) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the + * API credential. * - * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. - * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method chaining + * @param roles List of + * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API + * credential. + * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method + * chaining */ public CreateCompanyApiCredentialResponse roles(List roles) { this.roles = roles; @@ -450,8 +511,12 @@ public CreateCompanyApiCredentialResponse addRolesItem(String rolesItem) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. - * @return roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the + * API credential. + * + * @return roles List of + * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API + * credential. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -460,9 +525,12 @@ public List getRoles() { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the + * API credential. * - * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + * @param roles List of + * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API + * credential. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -471,10 +539,14 @@ public void setRoles(List roles) { } /** - * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), + * for example **ws@Company.TestCompany**. * - * @param username The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. - * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method chaining + * @param username The name of the [API + * credential](https://docs.adyen.com/development-resources/api-credentials), for example + * **ws@Company.TestCompany**. + * @return the current {@code CreateCompanyApiCredentialResponse} instance, allowing for method + * chaining */ public CreateCompanyApiCredentialResponse username(String username) { this.username = username; @@ -482,8 +554,12 @@ public CreateCompanyApiCredentialResponse username(String username) { } /** - * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. - * @return username The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), + * for example **ws@Company.TestCompany**. + * + * @return username The name of the [API + * credential](https://docs.adyen.com/development-resources/api-credentials), for example + * **ws@Company.TestCompany**. */ @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -492,9 +568,12 @@ public String getUsername() { } /** - * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), + * for example **ws@Company.TestCompany**. * - * @param username The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + * @param username The name of the [API + * credential](https://docs.adyen.com/development-resources/api-credentials), for example + * **ws@Company.TestCompany**. */ @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -502,9 +581,7 @@ public void setUsername(String username) { this.username = username; } - /** - * Return true if this CreateCompanyApiCredentialResponse object is equal to o. - */ + /** Return true if this CreateCompanyApiCredentialResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -513,24 +590,40 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CreateCompanyApiCredentialResponse createCompanyApiCredentialResponse = (CreateCompanyApiCredentialResponse) o; - return Objects.equals(this.links, createCompanyApiCredentialResponse.links) && - Objects.equals(this.active, createCompanyApiCredentialResponse.active) && - Objects.equals(this.allowedIpAddresses, createCompanyApiCredentialResponse.allowedIpAddresses) && - Objects.equals(this.allowedOrigins, createCompanyApiCredentialResponse.allowedOrigins) && - Objects.equals(this.apiKey, createCompanyApiCredentialResponse.apiKey) && - Objects.equals(this.associatedMerchantAccounts, createCompanyApiCredentialResponse.associatedMerchantAccounts) && - Objects.equals(this.clientKey, createCompanyApiCredentialResponse.clientKey) && - Objects.equals(this.description, createCompanyApiCredentialResponse.description) && - Objects.equals(this.id, createCompanyApiCredentialResponse.id) && - Objects.equals(this.password, createCompanyApiCredentialResponse.password) && - Objects.equals(this.roles, createCompanyApiCredentialResponse.roles) && - Objects.equals(this.username, createCompanyApiCredentialResponse.username); + CreateCompanyApiCredentialResponse createCompanyApiCredentialResponse = + (CreateCompanyApiCredentialResponse) o; + return Objects.equals(this.links, createCompanyApiCredentialResponse.links) + && Objects.equals(this.active, createCompanyApiCredentialResponse.active) + && Objects.equals( + this.allowedIpAddresses, createCompanyApiCredentialResponse.allowedIpAddresses) + && Objects.equals(this.allowedOrigins, createCompanyApiCredentialResponse.allowedOrigins) + && Objects.equals(this.apiKey, createCompanyApiCredentialResponse.apiKey) + && Objects.equals( + this.associatedMerchantAccounts, + createCompanyApiCredentialResponse.associatedMerchantAccounts) + && Objects.equals(this.clientKey, createCompanyApiCredentialResponse.clientKey) + && Objects.equals(this.description, createCompanyApiCredentialResponse.description) + && Objects.equals(this.id, createCompanyApiCredentialResponse.id) + && Objects.equals(this.password, createCompanyApiCredentialResponse.password) + && Objects.equals(this.roles, createCompanyApiCredentialResponse.roles) + && Objects.equals(this.username, createCompanyApiCredentialResponse.username); } @Override public int hashCode() { - return Objects.hash(links, active, allowedIpAddresses, allowedOrigins, apiKey, associatedMerchantAccounts, clientKey, description, id, password, roles, username); + return Objects.hash( + links, + active, + allowedIpAddresses, + allowedOrigins, + apiKey, + associatedMerchantAccounts, + clientKey, + description, + id, + password, + roles, + username); } @Override @@ -542,7 +635,9 @@ public String toString() { sb.append(" allowedIpAddresses: ").append(toIndentedString(allowedIpAddresses)).append("\n"); sb.append(" allowedOrigins: ").append(toIndentedString(allowedOrigins)).append("\n"); sb.append(" apiKey: ").append(toIndentedString(apiKey)).append("\n"); - sb.append(" associatedMerchantAccounts: ").append(toIndentedString(associatedMerchantAccounts)).append("\n"); + sb.append(" associatedMerchantAccounts: ") + .append(toIndentedString(associatedMerchantAccounts)) + .append("\n"); sb.append(" clientKey: ").append(toIndentedString(clientKey)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); @@ -554,8 +649,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -564,21 +658,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CreateCompanyApiCredentialResponse given an JSON string * * @param jsonString JSON string * @return An instance of CreateCompanyApiCredentialResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to CreateCompanyApiCredentialResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CreateCompanyApiCredentialResponse */ - public static CreateCompanyApiCredentialResponse fromJson(String jsonString) throws JsonProcessingException { + public static CreateCompanyApiCredentialResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateCompanyApiCredentialResponse.class); } -/** - * Convert an instance of CreateCompanyApiCredentialResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CreateCompanyApiCredentialResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CreateCompanyUserRequest.java b/src/main/java/com/adyen/model/management/CreateCompanyUserRequest.java index 5236d6241..2cf512441 100644 --- a/src/main/java/com/adyen/model/management/CreateCompanyUserRequest.java +++ b/src/main/java/com/adyen/model/management/CreateCompanyUserRequest.java @@ -2,34 +2,24 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.Name; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * CreateCompanyUserRequest - */ +/** CreateCompanyUserRequest */ @JsonPropertyOrder({ CreateCompanyUserRequest.JSON_PROPERTY_ACCOUNT_GROUPS, CreateCompanyUserRequest.JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS, @@ -40,12 +30,12 @@ CreateCompanyUserRequest.JSON_PROPERTY_TIME_ZONE_CODE, CreateCompanyUserRequest.JSON_PROPERTY_USERNAME }) - public class CreateCompanyUserRequest { public static final String JSON_PROPERTY_ACCOUNT_GROUPS = "accountGroups"; private List accountGroups; - public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS = "associatedMerchantAccounts"; + public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS = + "associatedMerchantAccounts"; private List associatedMerchantAccounts; public static final String JSON_PROPERTY_EMAIL = "email"; @@ -66,13 +56,15 @@ public class CreateCompanyUserRequest { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public CreateCompanyUserRequest() { - } + public CreateCompanyUserRequest() {} /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) + * associated with this user. * - * @param accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * @param accountGroups The list of [account + * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with + * this user. * @return the current {@code CreateCompanyUserRequest} instance, allowing for method chaining */ public CreateCompanyUserRequest accountGroups(List accountGroups) { @@ -89,8 +81,12 @@ public CreateCompanyUserRequest addAccountGroupsItem(String accountGroupsItem) { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. - * @return accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) + * associated with this user. + * + * @return accountGroups The list of [account + * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with + * this user. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,9 +95,12 @@ public List getAccountGroups() { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) + * associated with this user. * - * @param accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * @param accountGroups The list of [account + * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with + * this user. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,17 +109,23 @@ public void setAccountGroups(List accountGroups) { } /** - * The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. + * The list of [merchant + * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with + * this user. * - * @param associatedMerchantAccounts The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. + * @param associatedMerchantAccounts The list of [merchant + * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated + * with this user. * @return the current {@code CreateCompanyUserRequest} instance, allowing for method chaining */ - public CreateCompanyUserRequest associatedMerchantAccounts(List associatedMerchantAccounts) { + public CreateCompanyUserRequest associatedMerchantAccounts( + List associatedMerchantAccounts) { this.associatedMerchantAccounts = associatedMerchantAccounts; return this; } - public CreateCompanyUserRequest addAssociatedMerchantAccountsItem(String associatedMerchantAccountsItem) { + public CreateCompanyUserRequest addAssociatedMerchantAccountsItem( + String associatedMerchantAccountsItem) { if (this.associatedMerchantAccounts == null) { this.associatedMerchantAccounts = new ArrayList<>(); } @@ -129,8 +134,13 @@ public CreateCompanyUserRequest addAssociatedMerchantAccountsItem(String associa } /** - * The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. - * @return associatedMerchantAccounts The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. + * The list of [merchant + * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with + * this user. + * + * @return associatedMerchantAccounts The list of [merchant + * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated + * with this user. */ @JsonProperty(JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,9 +149,13 @@ public List getAssociatedMerchantAccounts() { } /** - * The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. + * The list of [merchant + * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with + * this user. * - * @param associatedMerchantAccounts The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. + * @param associatedMerchantAccounts The list of [merchant + * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated + * with this user. */ @JsonProperty(JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -162,6 +176,7 @@ public CreateCompanyUserRequest email(String email) { /** * The email address of the user. + * * @return email The email address of the user. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -182,9 +197,13 @@ public void setEmail(String email) { } /** - * The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** + * The requested login method for the user. To use SSO, you must already have SSO configured with + * Adyen before creating the user. Possible values: **Username & account**, **Email**, or + * **SSO** * - * @param loginMethod The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** + * @param loginMethod The requested login method for the user. To use SSO, you must already have + * SSO configured with Adyen before creating the user. Possible values: **Username & + * account**, **Email**, or **SSO** * @return the current {@code CreateCompanyUserRequest} instance, allowing for method chaining */ public CreateCompanyUserRequest loginMethod(String loginMethod) { @@ -193,8 +212,13 @@ public CreateCompanyUserRequest loginMethod(String loginMethod) { } /** - * The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** - * @return loginMethod The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** + * The requested login method for the user. To use SSO, you must already have SSO configured with + * Adyen before creating the user. Possible values: **Username & account**, **Email**, or + * **SSO** + * + * @return loginMethod The requested login method for the user. To use SSO, you must already have + * SSO configured with Adyen before creating the user. Possible values: **Username & + * account**, **Email**, or **SSO** */ @JsonProperty(JSON_PROPERTY_LOGIN_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -203,9 +227,13 @@ public String getLoginMethod() { } /** - * The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** + * The requested login method for the user. To use SSO, you must already have SSO configured with + * Adyen before creating the user. Possible values: **Username & account**, **Email**, or + * **SSO** * - * @param loginMethod The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** + * @param loginMethod The requested login method for the user. To use SSO, you must already have + * SSO configured with Adyen before creating the user. Possible values: **Username & + * account**, **Email**, or **SSO** */ @JsonProperty(JSON_PROPERTY_LOGIN_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -216,7 +244,7 @@ public void setLoginMethod(String loginMethod) { /** * name * - * @param name + * @param name * @return the current {@code CreateCompanyUserRequest} instance, allowing for method chaining */ public CreateCompanyUserRequest name(Name name) { @@ -226,7 +254,8 @@ public CreateCompanyUserRequest name(Name name) { /** * Get name - * @return name + * + * @return name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,7 +266,7 @@ public Name getName() { /** * name * - * @param name + * @param name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -266,6 +295,7 @@ public CreateCompanyUserRequest addRolesItem(String rolesItem) { /** * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. + * * @return roles The list of [roles](https://docs.adyen.com/account/user-roles) for this user. */ @JsonProperty(JSON_PROPERTY_ROLES) @@ -286,9 +316,12 @@ public void setRoles(List roles) { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the + * time zone of the user. For example, **Europe/Amsterdam**. * - * @param timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * @param timeZoneCode The [tz database + * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the + * user. For example, **Europe/Amsterdam**. * @return the current {@code CreateCompanyUserRequest} instance, allowing for method chaining */ public CreateCompanyUserRequest timeZoneCode(String timeZoneCode) { @@ -297,8 +330,12 @@ public CreateCompanyUserRequest timeZoneCode(String timeZoneCode) { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. - * @return timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the + * time zone of the user. For example, **Europe/Amsterdam**. + * + * @return timeZoneCode The [tz database + * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the + * user. For example, **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -307,9 +344,12 @@ public String getTimeZoneCode() { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the + * time zone of the user. For example, **Europe/Amsterdam**. * - * @param timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * @param timeZoneCode The [tz database + * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the + * user. For example, **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -318,9 +358,11 @@ public void setTimeZoneCode(String timeZoneCode) { } /** - * The user's email address that will be their username. Must be the same as the one in the `email` field. + * The user's email address that will be their username. Must be the same as the one in the + * `email` field. * - * @param username The user's email address that will be their username. Must be the same as the one in the `email` field. + * @param username The user's email address that will be their username. Must be the same as + * the one in the `email` field. * @return the current {@code CreateCompanyUserRequest} instance, allowing for method chaining */ public CreateCompanyUserRequest username(String username) { @@ -329,8 +371,11 @@ public CreateCompanyUserRequest username(String username) { } /** - * The user's email address that will be their username. Must be the same as the one in the `email` field. - * @return username The user's email address that will be their username. Must be the same as the one in the `email` field. + * The user's email address that will be their username. Must be the same as the one in the + * `email` field. + * + * @return username The user's email address that will be their username. Must be the same as + * the one in the `email` field. */ @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -339,9 +384,11 @@ public String getUsername() { } /** - * The user's email address that will be their username. Must be the same as the one in the `email` field. + * The user's email address that will be their username. Must be the same as the one in the + * `email` field. * - * @param username The user's email address that will be their username. Must be the same as the one in the `email` field. + * @param username The user's email address that will be their username. Must be the same as + * the one in the `email` field. */ @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -349,9 +396,7 @@ public void setUsername(String username) { this.username = username; } - /** - * Return true if this CreateCompanyUserRequest object is equal to o. - */ + /** Return true if this CreateCompanyUserRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -361,19 +406,28 @@ public boolean equals(Object o) { return false; } CreateCompanyUserRequest createCompanyUserRequest = (CreateCompanyUserRequest) o; - return Objects.equals(this.accountGroups, createCompanyUserRequest.accountGroups) && - Objects.equals(this.associatedMerchantAccounts, createCompanyUserRequest.associatedMerchantAccounts) && - Objects.equals(this.email, createCompanyUserRequest.email) && - Objects.equals(this.loginMethod, createCompanyUserRequest.loginMethod) && - Objects.equals(this.name, createCompanyUserRequest.name) && - Objects.equals(this.roles, createCompanyUserRequest.roles) && - Objects.equals(this.timeZoneCode, createCompanyUserRequest.timeZoneCode) && - Objects.equals(this.username, createCompanyUserRequest.username); + return Objects.equals(this.accountGroups, createCompanyUserRequest.accountGroups) + && Objects.equals( + this.associatedMerchantAccounts, createCompanyUserRequest.associatedMerchantAccounts) + && Objects.equals(this.email, createCompanyUserRequest.email) + && Objects.equals(this.loginMethod, createCompanyUserRequest.loginMethod) + && Objects.equals(this.name, createCompanyUserRequest.name) + && Objects.equals(this.roles, createCompanyUserRequest.roles) + && Objects.equals(this.timeZoneCode, createCompanyUserRequest.timeZoneCode) + && Objects.equals(this.username, createCompanyUserRequest.username); } @Override public int hashCode() { - return Objects.hash(accountGroups, associatedMerchantAccounts, email, loginMethod, name, roles, timeZoneCode, username); + return Objects.hash( + accountGroups, + associatedMerchantAccounts, + email, + loginMethod, + name, + roles, + timeZoneCode, + username); } @Override @@ -381,7 +435,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateCompanyUserRequest {\n"); sb.append(" accountGroups: ").append(toIndentedString(accountGroups)).append("\n"); - sb.append(" associatedMerchantAccounts: ").append(toIndentedString(associatedMerchantAccounts)).append("\n"); + sb.append(" associatedMerchantAccounts: ") + .append(toIndentedString(associatedMerchantAccounts)) + .append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" loginMethod: ").append(toIndentedString(loginMethod)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); @@ -393,8 +449,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -403,21 +458,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CreateCompanyUserRequest given an JSON string * * @param jsonString JSON string * @return An instance of CreateCompanyUserRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to CreateCompanyUserRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CreateCompanyUserRequest */ - public static CreateCompanyUserRequest fromJson(String jsonString) throws JsonProcessingException { + public static CreateCompanyUserRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateCompanyUserRequest.class); } -/** - * Convert an instance of CreateCompanyUserRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CreateCompanyUserRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CreateCompanyUserResponse.java b/src/main/java/com/adyen/model/management/CreateCompanyUserResponse.java index 0256f0dcf..d00f39902 100644 --- a/src/main/java/com/adyen/model/management/CreateCompanyUserResponse.java +++ b/src/main/java/com/adyen/model/management/CreateCompanyUserResponse.java @@ -2,35 +2,24 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.Links; -import com.adyen.model.management.Name; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * CreateCompanyUserResponse - */ +/** CreateCompanyUserResponse */ @JsonPropertyOrder({ CreateCompanyUserResponse.JSON_PROPERTY_LINKS, CreateCompanyUserResponse.JSON_PROPERTY_ACCOUNT_GROUPS, @@ -44,7 +33,6 @@ CreateCompanyUserResponse.JSON_PROPERTY_TIME_ZONE_CODE, CreateCompanyUserResponse.JSON_PROPERTY_USERNAME }) - public class CreateCompanyUserResponse { public static final String JSON_PROPERTY_LINKS = "_links"; private Links links; @@ -58,7 +46,8 @@ public class CreateCompanyUserResponse { public static final String JSON_PROPERTY_APPS = "apps"; private List apps; - public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS = "associatedMerchantAccounts"; + public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS = + "associatedMerchantAccounts"; private List associatedMerchantAccounts; public static final String JSON_PROPERTY_EMAIL = "email"; @@ -79,13 +68,12 @@ public class CreateCompanyUserResponse { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public CreateCompanyUserResponse() { - } + public CreateCompanyUserResponse() {} /** * links * - * @param links + * @param links * @return the current {@code CreateCompanyUserResponse} instance, allowing for method chaining */ public CreateCompanyUserResponse links(Links links) { @@ -95,7 +83,8 @@ public CreateCompanyUserResponse links(Links links) { /** * Get links - * @return links + * + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,7 +95,7 @@ public Links getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,9 +104,12 @@ public void setLinks(Links links) { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) + * associated with this user. * - * @param accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * @param accountGroups The list of [account + * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with + * this user. * @return the current {@code CreateCompanyUserResponse} instance, allowing for method chaining */ public CreateCompanyUserResponse accountGroups(List accountGroups) { @@ -134,8 +126,12 @@ public CreateCompanyUserResponse addAccountGroupsItem(String accountGroupsItem) } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. - * @return accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) + * associated with this user. + * + * @return accountGroups The list of [account + * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with + * this user. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,9 +140,12 @@ public List getAccountGroups() { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) + * associated with this user. * - * @param accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * @param accountGroups The list of [account + * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with + * this user. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,6 +166,7 @@ public CreateCompanyUserResponse active(Boolean active) { /** * Indicates whether this user is active. + * * @return active Indicates whether this user is active. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @@ -207,6 +207,7 @@ public CreateCompanyUserResponse addAppsItem(String appsItem) { /** * Set of apps available to this user + * * @return apps Set of apps available to this user */ @JsonProperty(JSON_PROPERTY_APPS) @@ -227,17 +228,23 @@ public void setApps(List apps) { } /** - * The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. + * The list of [merchant + * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with + * this user. * - * @param associatedMerchantAccounts The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. + * @param associatedMerchantAccounts The list of [merchant + * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated + * with this user. * @return the current {@code CreateCompanyUserResponse} instance, allowing for method chaining */ - public CreateCompanyUserResponse associatedMerchantAccounts(List associatedMerchantAccounts) { + public CreateCompanyUserResponse associatedMerchantAccounts( + List associatedMerchantAccounts) { this.associatedMerchantAccounts = associatedMerchantAccounts; return this; } - public CreateCompanyUserResponse addAssociatedMerchantAccountsItem(String associatedMerchantAccountsItem) { + public CreateCompanyUserResponse addAssociatedMerchantAccountsItem( + String associatedMerchantAccountsItem) { if (this.associatedMerchantAccounts == null) { this.associatedMerchantAccounts = new ArrayList<>(); } @@ -246,8 +253,13 @@ public CreateCompanyUserResponse addAssociatedMerchantAccountsItem(String associ } /** - * The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. - * @return associatedMerchantAccounts The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. + * The list of [merchant + * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with + * this user. + * + * @return associatedMerchantAccounts The list of [merchant + * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated + * with this user. */ @JsonProperty(JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -256,9 +268,13 @@ public List getAssociatedMerchantAccounts() { } /** - * The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. + * The list of [merchant + * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with + * this user. * - * @param associatedMerchantAccounts The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. + * @param associatedMerchantAccounts The list of [merchant + * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated + * with this user. */ @JsonProperty(JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -279,6 +295,7 @@ public CreateCompanyUserResponse email(String email) { /** * The email address of the user. + * * @return email The email address of the user. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -311,6 +328,7 @@ public CreateCompanyUserResponse id(String id) { /** * The unique identifier of the user. + * * @return id The unique identifier of the user. */ @JsonProperty(JSON_PROPERTY_ID) @@ -333,7 +351,7 @@ public void setId(String id) { /** * name * - * @param name + * @param name * @return the current {@code CreateCompanyUserResponse} instance, allowing for method chaining */ public CreateCompanyUserResponse name(Name name) { @@ -343,7 +361,8 @@ public CreateCompanyUserResponse name(Name name) { /** * Get name - * @return name + * + * @return name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -354,7 +373,7 @@ public Name getName() { /** * name * - * @param name + * @param name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -383,6 +402,7 @@ public CreateCompanyUserResponse addRolesItem(String rolesItem) { /** * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. + * * @return roles The list of [roles](https://docs.adyen.com/account/user-roles) for this user. */ @JsonProperty(JSON_PROPERTY_ROLES) @@ -403,9 +423,12 @@ public void setRoles(List roles) { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the + * time zone of the user. For example, **Europe/Amsterdam**. * - * @param timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * @param timeZoneCode The [tz database + * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the + * user. For example, **Europe/Amsterdam**. * @return the current {@code CreateCompanyUserResponse} instance, allowing for method chaining */ public CreateCompanyUserResponse timeZoneCode(String timeZoneCode) { @@ -414,8 +437,12 @@ public CreateCompanyUserResponse timeZoneCode(String timeZoneCode) { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. - * @return timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the + * time zone of the user. For example, **Europe/Amsterdam**. + * + * @return timeZoneCode The [tz database + * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the + * user. For example, **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -424,9 +451,12 @@ public String getTimeZoneCode() { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the + * time zone of the user. For example, **Europe/Amsterdam**. * - * @param timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * @param timeZoneCode The [tz database + * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the + * user. For example, **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -447,6 +477,7 @@ public CreateCompanyUserResponse username(String username) { /** * The username for this user. + * * @return username The username for this user. */ @JsonProperty(JSON_PROPERTY_USERNAME) @@ -466,9 +497,7 @@ public void setUsername(String username) { this.username = username; } - /** - * Return true if this CreateCompanyUserResponse object is equal to o. - */ + /** Return true if this CreateCompanyUserResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -478,22 +507,34 @@ public boolean equals(Object o) { return false; } CreateCompanyUserResponse createCompanyUserResponse = (CreateCompanyUserResponse) o; - return Objects.equals(this.links, createCompanyUserResponse.links) && - Objects.equals(this.accountGroups, createCompanyUserResponse.accountGroups) && - Objects.equals(this.active, createCompanyUserResponse.active) && - Objects.equals(this.apps, createCompanyUserResponse.apps) && - Objects.equals(this.associatedMerchantAccounts, createCompanyUserResponse.associatedMerchantAccounts) && - Objects.equals(this.email, createCompanyUserResponse.email) && - Objects.equals(this.id, createCompanyUserResponse.id) && - Objects.equals(this.name, createCompanyUserResponse.name) && - Objects.equals(this.roles, createCompanyUserResponse.roles) && - Objects.equals(this.timeZoneCode, createCompanyUserResponse.timeZoneCode) && - Objects.equals(this.username, createCompanyUserResponse.username); + return Objects.equals(this.links, createCompanyUserResponse.links) + && Objects.equals(this.accountGroups, createCompanyUserResponse.accountGroups) + && Objects.equals(this.active, createCompanyUserResponse.active) + && Objects.equals(this.apps, createCompanyUserResponse.apps) + && Objects.equals( + this.associatedMerchantAccounts, createCompanyUserResponse.associatedMerchantAccounts) + && Objects.equals(this.email, createCompanyUserResponse.email) + && Objects.equals(this.id, createCompanyUserResponse.id) + && Objects.equals(this.name, createCompanyUserResponse.name) + && Objects.equals(this.roles, createCompanyUserResponse.roles) + && Objects.equals(this.timeZoneCode, createCompanyUserResponse.timeZoneCode) + && Objects.equals(this.username, createCompanyUserResponse.username); } @Override public int hashCode() { - return Objects.hash(links, accountGroups, active, apps, associatedMerchantAccounts, email, id, name, roles, timeZoneCode, username); + return Objects.hash( + links, + accountGroups, + active, + apps, + associatedMerchantAccounts, + email, + id, + name, + roles, + timeZoneCode, + username); } @Override @@ -504,7 +545,9 @@ public String toString() { sb.append(" accountGroups: ").append(toIndentedString(accountGroups)).append("\n"); sb.append(" active: ").append(toIndentedString(active)).append("\n"); sb.append(" apps: ").append(toIndentedString(apps)).append("\n"); - sb.append(" associatedMerchantAccounts: ").append(toIndentedString(associatedMerchantAccounts)).append("\n"); + sb.append(" associatedMerchantAccounts: ") + .append(toIndentedString(associatedMerchantAccounts)) + .append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); @@ -516,8 +559,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -526,21 +568,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CreateCompanyUserResponse given an JSON string * * @param jsonString JSON string * @return An instance of CreateCompanyUserResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to CreateCompanyUserResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CreateCompanyUserResponse */ - public static CreateCompanyUserResponse fromJson(String jsonString) throws JsonProcessingException { + public static CreateCompanyUserResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateCompanyUserResponse.class); } -/** - * Convert an instance of CreateCompanyUserResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CreateCompanyUserResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CreateCompanyWebhookRequest.java b/src/main/java/com/adyen/model/management/CreateCompanyWebhookRequest.java index b99578e78..2a46821cd 100644 --- a/src/main/java/com/adyen/model/management/CreateCompanyWebhookRequest.java +++ b/src/main/java/com/adyen/model/management/CreateCompanyWebhookRequest.java @@ -2,34 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.AdditionalSettings; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * CreateCompanyWebhookRequest - */ +/** CreateCompanyWebhookRequest */ @JsonPropertyOrder({ CreateCompanyWebhookRequest.JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE, CreateCompanyWebhookRequest.JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE, @@ -48,15 +42,17 @@ CreateCompanyWebhookRequest.JSON_PROPERTY_URL, CreateCompanyWebhookRequest.JSON_PROPERTY_USERNAME }) - public class CreateCompanyWebhookRequest { - public static final String JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE = "acceptsExpiredCertificate"; + public static final String JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE = + "acceptsExpiredCertificate"; private Boolean acceptsExpiredCertificate; - public static final String JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE = "acceptsSelfSignedCertificate"; + public static final String JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE = + "acceptsSelfSignedCertificate"; private Boolean acceptsSelfSignedCertificate; - public static final String JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE = "acceptsUntrustedRootCertificate"; + public static final String JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE = + "acceptsUntrustedRootCertificate"; private Boolean acceptsUntrustedRootCertificate; public static final String JSON_PROPERTY_ACTIVE = "active"; @@ -66,10 +62,9 @@ public class CreateCompanyWebhookRequest { private AdditionalSettings additionalSettings; /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** */ public enum CommunicationFormatEnum { - HTTP(String.valueOf("http")), JSON(String.valueOf("json")), @@ -81,7 +76,7 @@ public enum CommunicationFormatEnum { private String value; CommunicationFormatEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -102,7 +97,11 @@ public static CommunicationFormatEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("CommunicationFormatEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CommunicationFormatEnum.values())); + LOG.warning( + "CommunicationFormatEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(CommunicationFormatEnum.values())); return null; } } @@ -114,10 +113,11 @@ public static CommunicationFormatEnum fromValue(String value) { private String description; /** - * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible + * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not + * specified, the webhook will use `sslVersion`: **TLSv1.2**. */ public enum EncryptionProtocolEnum { - HTTP(String.valueOf("HTTP")), TLSV1_2(String.valueOf("TLSv1.2")), @@ -129,7 +129,7 @@ public enum EncryptionProtocolEnum { private String value; EncryptionProtocolEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -150,7 +150,11 @@ public static EncryptionProtocolEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("EncryptionProtocolEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(EncryptionProtocolEnum.values())); + LOG.warning( + "EncryptionProtocolEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(EncryptionProtocolEnum.values())); return null; } } @@ -159,22 +163,27 @@ public static EncryptionProtocolEnum fromValue(String value) { private EncryptionProtocolEnum encryptionProtocol; /** - * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **allAccounts** : Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. * **includeAccounts** : The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts** : The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. + * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * + * **allAccounts** : Includes all merchant accounts, and does not require specifying + * `filterMerchantAccounts`. * **includeAccounts** : The webhook is configured for the + * merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts** : The + * webhook is not configured for the merchant accounts listed in + * `filterMerchantAccounts`. */ public enum FilterMerchantAccountTypeEnum { - ALLACCOUNTS(String.valueOf("allAccounts")), EXCLUDEACCOUNTS(String.valueOf("excludeAccounts")), INCLUDEACCOUNTS(String.valueOf("includeAccounts")); - private static final Logger LOG = Logger.getLogger(FilterMerchantAccountTypeEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(FilterMerchantAccountTypeEnum.class.getName()); private String value; FilterMerchantAccountTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -195,22 +204,27 @@ public static FilterMerchantAccountTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FilterMerchantAccountTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FilterMerchantAccountTypeEnum.values())); + LOG.warning( + "FilterMerchantAccountTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FilterMerchantAccountTypeEnum.values())); return null; } } - public static final String JSON_PROPERTY_FILTER_MERCHANT_ACCOUNT_TYPE = "filterMerchantAccountType"; + public static final String JSON_PROPERTY_FILTER_MERCHANT_ACCOUNT_TYPE = + "filterMerchantAccountType"; private FilterMerchantAccountTypeEnum filterMerchantAccountType; public static final String JSON_PROPERTY_FILTER_MERCHANT_ACCOUNTS = "filterMerchantAccounts"; private List filterMerchantAccounts; /** - * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** + * Default Value: **public**. */ public enum NetworkTypeEnum { - LOCAL(String.valueOf("local")), PUBLIC(String.valueOf("public")); @@ -220,7 +234,7 @@ public enum NetworkTypeEnum { private String value; NetworkTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -241,7 +255,11 @@ public static NetworkTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("NetworkTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(NetworkTypeEnum.values())); + LOG.warning( + "NetworkTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(NetworkTypeEnum.values())); return null; } } @@ -264,13 +282,13 @@ public static NetworkTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public CreateCompanyWebhookRequest() { - } + public CreateCompanyWebhookRequest() {} /** * Indicates if expired SSL certificates are accepted. Default value: **false**. * - * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default value: **false**. + * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default + * value: **false**. * @return the current {@code CreateCompanyWebhookRequest} instance, allowing for method chaining */ public CreateCompanyWebhookRequest acceptsExpiredCertificate(Boolean acceptsExpiredCertificate) { @@ -280,7 +298,9 @@ public CreateCompanyWebhookRequest acceptsExpiredCertificate(Boolean acceptsExpi /** * Indicates if expired SSL certificates are accepted. Default value: **false**. - * @return acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default value: **false**. + * + * @return acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default + * value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -291,7 +311,8 @@ public Boolean getAcceptsExpiredCertificate() { /** * Indicates if expired SSL certificates are accepted. Default value: **false**. * - * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default value: **false**. + * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default + * value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -302,17 +323,21 @@ public void setAcceptsExpiredCertificate(Boolean acceptsExpiredCertificate) { /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. * - * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. Default value: **false**. + * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. + * Default value: **false**. * @return the current {@code CreateCompanyWebhookRequest} instance, allowing for method chaining */ - public CreateCompanyWebhookRequest acceptsSelfSignedCertificate(Boolean acceptsSelfSignedCertificate) { + public CreateCompanyWebhookRequest acceptsSelfSignedCertificate( + Boolean acceptsSelfSignedCertificate) { this.acceptsSelfSignedCertificate = acceptsSelfSignedCertificate; return this; } /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. - * @return acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. Default value: **false**. + * + * @return acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. + * Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -323,7 +348,8 @@ public Boolean getAcceptsSelfSignedCertificate() { /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. * - * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. Default value: **false**. + * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. + * Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -334,17 +360,21 @@ public void setAcceptsSelfSignedCertificate(Boolean acceptsSelfSignedCertificate /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. * - * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. Default value: **false**. + * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. + * Default value: **false**. * @return the current {@code CreateCompanyWebhookRequest} instance, allowing for method chaining */ - public CreateCompanyWebhookRequest acceptsUntrustedRootCertificate(Boolean acceptsUntrustedRootCertificate) { + public CreateCompanyWebhookRequest acceptsUntrustedRootCertificate( + Boolean acceptsUntrustedRootCertificate) { this.acceptsUntrustedRootCertificate = acceptsUntrustedRootCertificate; return this; } /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. - * @return acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. Default value: **false**. + * + * @return acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. + * Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -355,7 +385,8 @@ public Boolean getAcceptsUntrustedRootCertificate() { /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. * - * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. Default value: **false**. + * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. + * Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -364,9 +395,11 @@ public void setAcceptsUntrustedRootCertificate(Boolean acceptsUntrustedRootCerti } /** - * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. + * Indicates if the webhook configuration is active. The field must be **true** for us to send + * webhooks about events related an account. * - * @param active Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. + * @param active Indicates if the webhook configuration is active. The field must be **true** for + * us to send webhooks about events related an account. * @return the current {@code CreateCompanyWebhookRequest} instance, allowing for method chaining */ public CreateCompanyWebhookRequest active(Boolean active) { @@ -375,8 +408,11 @@ public CreateCompanyWebhookRequest active(Boolean active) { } /** - * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. - * @return active Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. + * Indicates if the webhook configuration is active. The field must be **true** for us to send + * webhooks about events related an account. + * + * @return active Indicates if the webhook configuration is active. The field must be **true** for + * us to send webhooks about events related an account. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -385,9 +421,11 @@ public Boolean getActive() { } /** - * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. + * Indicates if the webhook configuration is active. The field must be **true** for us to send + * webhooks about events related an account. * - * @param active Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. + * @param active Indicates if the webhook configuration is active. The field must be **true** for + * us to send webhooks about events related an account. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -398,7 +436,7 @@ public void setActive(Boolean active) { /** * additionalSettings * - * @param additionalSettings + * @param additionalSettings * @return the current {@code CreateCompanyWebhookRequest} instance, allowing for method chaining */ public CreateCompanyWebhookRequest additionalSettings(AdditionalSettings additionalSettings) { @@ -408,7 +446,8 @@ public CreateCompanyWebhookRequest additionalSettings(AdditionalSettings additio /** * Get additionalSettings - * @return additionalSettings + * + * @return additionalSettings */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -419,7 +458,7 @@ public AdditionalSettings getAdditionalSettings() { /** * additionalSettings * - * @param additionalSettings + * @param additionalSettings */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -428,19 +467,23 @@ public void setAdditionalSettings(AdditionalSettings additionalSettings) { } /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** * - * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * + * **soap** * **http** * **json** * @return the current {@code CreateCompanyWebhookRequest} instance, allowing for method chaining */ - public CreateCompanyWebhookRequest communicationFormat(CommunicationFormatEnum communicationFormat) { + public CreateCompanyWebhookRequest communicationFormat( + CommunicationFormatEnum communicationFormat) { this.communicationFormat = communicationFormat; return this; } /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** - * @return communicationFormat Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * + * @return communicationFormat Format or protocol for receiving webhooks. Possible values: * + * **soap** * **http** * **json** */ @JsonProperty(JSON_PROPERTY_COMMUNICATION_FORMAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -449,9 +492,10 @@ public CommunicationFormatEnum getCommunicationFormat() { } /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** * - * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * + * **soap** * **http** * **json** */ @JsonProperty(JSON_PROPERTY_COMMUNICATION_FORMAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -472,6 +516,7 @@ public CreateCompanyWebhookRequest description(String description) { /** * Your description for this webhook configuration. + * * @return description Your description for this webhook configuration. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -492,9 +537,14 @@ public void setDescription(String description) { } /** - * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible + * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not + * specified, the webhook will use `sslVersion`: **TLSv1.2**. * - * @param encryptionProtocol SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * @param encryptionProtocol SSL version to access the public webhook URL specified in the + * `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only + * allowed on Test environment. If not specified, the webhook will use `sslVersion`: + * **TLSv1.2**. * @return the current {@code CreateCompanyWebhookRequest} instance, allowing for method chaining */ public CreateCompanyWebhookRequest encryptionProtocol(EncryptionProtocolEnum encryptionProtocol) { @@ -503,8 +553,14 @@ public CreateCompanyWebhookRequest encryptionProtocol(EncryptionProtocolEnum enc } /** - * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. - * @return encryptionProtocol SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible + * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not + * specified, the webhook will use `sslVersion`: **TLSv1.2**. + * + * @return encryptionProtocol SSL version to access the public webhook URL specified in the + * `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only + * allowed on Test environment. If not specified, the webhook will use `sslVersion`: + * **TLSv1.2**. */ @JsonProperty(JSON_PROPERTY_ENCRYPTION_PROTOCOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -513,9 +569,14 @@ public EncryptionProtocolEnum getEncryptionProtocol() { } /** - * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible + * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not + * specified, the webhook will use `sslVersion`: **TLSv1.2**. * - * @param encryptionProtocol SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * @param encryptionProtocol SSL version to access the public webhook URL specified in the + * `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only + * allowed on Test environment. If not specified, the webhook will use `sslVersion`: + * **TLSv1.2**. */ @JsonProperty(JSON_PROPERTY_ENCRYPTION_PROTOCOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -524,19 +585,41 @@ public void setEncryptionProtocol(EncryptionProtocolEnum encryptionProtocol) { } /** - * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **allAccounts** : Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. * **includeAccounts** : The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts** : The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. + * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * + * **allAccounts** : Includes all merchant accounts, and does not require specifying + * `filterMerchantAccounts`. * **includeAccounts** : The webhook is configured for the + * merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts** : The + * webhook is not configured for the merchant accounts listed in + * `filterMerchantAccounts`. * - * @param filterMerchantAccountType Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **allAccounts** : Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. * **includeAccounts** : The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts** : The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. + * @param filterMerchantAccountType Shows how merchant accounts are filtered when configuring the + * webhook. Possible values: * **allAccounts** : Includes all merchant accounts, and does not + * require specifying `filterMerchantAccounts`. * **includeAccounts** : The webhook + * is configured for the merchant accounts listed in `filterMerchantAccounts`. * + * **excludeAccounts** : The webhook is not configured for the merchant accounts listed in + * `filterMerchantAccounts`. * @return the current {@code CreateCompanyWebhookRequest} instance, allowing for method chaining */ - public CreateCompanyWebhookRequest filterMerchantAccountType(FilterMerchantAccountTypeEnum filterMerchantAccountType) { + public CreateCompanyWebhookRequest filterMerchantAccountType( + FilterMerchantAccountTypeEnum filterMerchantAccountType) { this.filterMerchantAccountType = filterMerchantAccountType; return this; } /** - * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **allAccounts** : Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. * **includeAccounts** : The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts** : The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. - * @return filterMerchantAccountType Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **allAccounts** : Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. * **includeAccounts** : The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts** : The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. + * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * + * **allAccounts** : Includes all merchant accounts, and does not require specifying + * `filterMerchantAccounts`. * **includeAccounts** : The webhook is configured for the + * merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts** : The + * webhook is not configured for the merchant accounts listed in + * `filterMerchantAccounts`. + * + * @return filterMerchantAccountType Shows how merchant accounts are filtered when configuring the + * webhook. Possible values: * **allAccounts** : Includes all merchant accounts, and does not + * require specifying `filterMerchantAccounts`. * **includeAccounts** : The webhook + * is configured for the merchant accounts listed in `filterMerchantAccounts`. * + * **excludeAccounts** : The webhook is not configured for the merchant accounts listed in + * `filterMerchantAccounts`. */ @JsonProperty(JSON_PROPERTY_FILTER_MERCHANT_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -545,20 +628,38 @@ public FilterMerchantAccountTypeEnum getFilterMerchantAccountType() { } /** - * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **allAccounts** : Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. * **includeAccounts** : The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts** : The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. + * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * + * **allAccounts** : Includes all merchant accounts, and does not require specifying + * `filterMerchantAccounts`. * **includeAccounts** : The webhook is configured for the + * merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts** : The + * webhook is not configured for the merchant accounts listed in + * `filterMerchantAccounts`. * - * @param filterMerchantAccountType Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **allAccounts** : Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. * **includeAccounts** : The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts** : The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. + * @param filterMerchantAccountType Shows how merchant accounts are filtered when configuring the + * webhook. Possible values: * **allAccounts** : Includes all merchant accounts, and does not + * require specifying `filterMerchantAccounts`. * **includeAccounts** : The webhook + * is configured for the merchant accounts listed in `filterMerchantAccounts`. * + * **excludeAccounts** : The webhook is not configured for the merchant accounts listed in + * `filterMerchantAccounts`. */ @JsonProperty(JSON_PROPERTY_FILTER_MERCHANT_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFilterMerchantAccountType(FilterMerchantAccountTypeEnum filterMerchantAccountType) { + public void setFilterMerchantAccountType( + FilterMerchantAccountTypeEnum filterMerchantAccountType) { this.filterMerchantAccountType = filterMerchantAccountType; } /** - * A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. + * A list of merchant account names that are included or excluded from receiving the webhook. + * Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. + * Required if `filterMerchantAccountType` is either: * **includeAccounts** * + * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. * - * @param filterMerchantAccounts A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. + * @param filterMerchantAccounts A list of merchant account names that are included or excluded + * from receiving the webhook. Inclusion or exclusion is based on the value defined for + * `filterMerchantAccountType`. Required if `filterMerchantAccountType` is + * either: * **includeAccounts** * **excludeAccounts** Not needed for + * `filterMerchantAccountType`: **allAccounts**. * @return the current {@code CreateCompanyWebhookRequest} instance, allowing for method chaining */ public CreateCompanyWebhookRequest filterMerchantAccounts(List filterMerchantAccounts) { @@ -566,7 +667,8 @@ public CreateCompanyWebhookRequest filterMerchantAccounts(List filterMer return this; } - public CreateCompanyWebhookRequest addFilterMerchantAccountsItem(String filterMerchantAccountsItem) { + public CreateCompanyWebhookRequest addFilterMerchantAccountsItem( + String filterMerchantAccountsItem) { if (this.filterMerchantAccounts == null) { this.filterMerchantAccounts = new ArrayList<>(); } @@ -575,8 +677,16 @@ public CreateCompanyWebhookRequest addFilterMerchantAccountsItem(String filterMe } /** - * A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. - * @return filterMerchantAccounts A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. + * A list of merchant account names that are included or excluded from receiving the webhook. + * Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. + * Required if `filterMerchantAccountType` is either: * **includeAccounts** * + * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. + * + * @return filterMerchantAccounts A list of merchant account names that are included or excluded + * from receiving the webhook. Inclusion or exclusion is based on the value defined for + * `filterMerchantAccountType`. Required if `filterMerchantAccountType` is + * either: * **includeAccounts** * **excludeAccounts** Not needed for + * `filterMerchantAccountType`: **allAccounts**. */ @JsonProperty(JSON_PROPERTY_FILTER_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -585,9 +695,16 @@ public List getFilterMerchantAccounts() { } /** - * A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. + * A list of merchant account names that are included or excluded from receiving the webhook. + * Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. + * Required if `filterMerchantAccountType` is either: * **includeAccounts** * + * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. * - * @param filterMerchantAccounts A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. + * @param filterMerchantAccounts A list of merchant account names that are included or excluded + * from receiving the webhook. Inclusion or exclusion is based on the value defined for + * `filterMerchantAccountType`. Required if `filterMerchantAccountType` is + * either: * **includeAccounts** * **excludeAccounts** Not needed for + * `filterMerchantAccountType`: **allAccounts**. */ @JsonProperty(JSON_PROPERTY_FILTER_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -596,9 +713,11 @@ public void setFilterMerchantAccounts(List filterMerchantAccounts) { } /** - * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** + * Default Value: **public**. * - * @param networkType Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. + * @param networkType Network type for Terminal API notification webhooks. Possible values: * + * **public** * **local** Default Value: **public**. * @return the current {@code CreateCompanyWebhookRequest} instance, allowing for method chaining */ public CreateCompanyWebhookRequest networkType(NetworkTypeEnum networkType) { @@ -607,8 +726,11 @@ public CreateCompanyWebhookRequest networkType(NetworkTypeEnum networkType) { } /** - * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. - * @return networkType Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** + * Default Value: **public**. + * + * @return networkType Network type for Terminal API notification webhooks. Possible values: * + * **public** * **local** Default Value: **public**. */ @JsonProperty(JSON_PROPERTY_NETWORK_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -617,9 +739,11 @@ public NetworkTypeEnum getNetworkType() { } /** - * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** + * Default Value: **public**. * - * @param networkType Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. + * @param networkType Network type for Terminal API notification webhooks. Possible values: * + * **public** * **local** Default Value: **public**. */ @JsonProperty(JSON_PROPERTY_NETWORK_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -640,6 +764,7 @@ public CreateCompanyWebhookRequest password(String password) { /** * Password to access the webhook URL. + * * @return password Password to access the webhook URL. */ @JsonProperty(JSON_PROPERTY_PASSWORD) @@ -660,9 +785,11 @@ public void setPassword(String password) { } /** - * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only + * applies if `communicationFormat`: **soap**. * - * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. + * Default value: **false**. Only applies if `communicationFormat`: **soap**. * @return the current {@code CreateCompanyWebhookRequest} instance, allowing for method chaining */ public CreateCompanyWebhookRequest populateSoapActionHeader(Boolean populateSoapActionHeader) { @@ -671,8 +798,11 @@ public CreateCompanyWebhookRequest populateSoapActionHeader(Boolean populateSoap } /** - * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. - * @return populateSoapActionHeader Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only + * applies if `communicationFormat`: **soap**. + * + * @return populateSoapActionHeader Indicates if the SOAP action header needs to be populated. + * Default value: **false**. Only applies if `communicationFormat`: **soap**. */ @JsonProperty(JSON_PROPERTY_POPULATE_SOAP_ACTION_HEADER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -681,9 +811,11 @@ public Boolean getPopulateSoapActionHeader() { } /** - * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only + * applies if `communicationFormat`: **soap**. * - * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. + * Default value: **false**. Only applies if `communicationFormat`: **soap**. */ @JsonProperty(JSON_PROPERTY_POPULATE_SOAP_ACTION_HEADER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -692,9 +824,28 @@ public void setPopulateSoapActionHeader(Boolean populateSoapActionHeader) { } /** - * The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * The type of webhook that is being created. Possible values are: - **standard** - + * **account-settings-notification** - **banktransfer-notification** - + * **boletobancario-notification** - **directdebit-notification** - + * **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - + * **pending-notification** - **ideal-notification** - **ideal-pending-notification** - + * **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** + * Find out more about [standard + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and + * [other types of + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). * - * @param type The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * @param type The type of webhook that is being created. Possible values are: - **standard** - + * **account-settings-notification** - **banktransfer-notification** - + * **boletobancario-notification** - **directdebit-notification** - + * **ach-notification-of-change-notification** - + * **direct-debit-notice-of-change-notification** - **pending-notification** - + * **ideal-notification** - **ideal-pending-notification** - **report-notification** - + * **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about + * [standard + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) + * and [other types of + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). * @return the current {@code CreateCompanyWebhookRequest} instance, allowing for method chaining */ public CreateCompanyWebhookRequest type(String type) { @@ -703,8 +854,28 @@ public CreateCompanyWebhookRequest type(String type) { } /** - * The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). - * @return type The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * The type of webhook that is being created. Possible values are: - **standard** - + * **account-settings-notification** - **banktransfer-notification** - + * **boletobancario-notification** - **directdebit-notification** - + * **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - + * **pending-notification** - **ideal-notification** - **ideal-pending-notification** - + * **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** + * Find out more about [standard + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and + * [other types of + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * + * @return type The type of webhook that is being created. Possible values are: - **standard** - + * **account-settings-notification** - **banktransfer-notification** - + * **boletobancario-notification** - **directdebit-notification** - + * **ach-notification-of-change-notification** - + * **direct-debit-notice-of-change-notification** - **pending-notification** - + * **ideal-notification** - **ideal-pending-notification** - **report-notification** - + * **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about + * [standard + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) + * and [other types of + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -713,9 +884,28 @@ public String getType() { } /** - * The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * The type of webhook that is being created. Possible values are: - **standard** - + * **account-settings-notification** - **banktransfer-notification** - + * **boletobancario-notification** - **directdebit-notification** - + * **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - + * **pending-notification** - **ideal-notification** - **ideal-pending-notification** - + * **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** + * Find out more about [standard + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and + * [other types of + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). * - * @param type The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * @param type The type of webhook that is being created. Possible values are: - **standard** - + * **account-settings-notification** - **banktransfer-notification** - + * **boletobancario-notification** - **directdebit-notification** - + * **ach-notification-of-change-notification** - + * **direct-debit-notice-of-change-notification** - **pending-notification** - + * **ideal-notification** - **ideal-pending-notification** - **report-notification** - + * **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about + * [standard + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) + * and [other types of + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -724,9 +914,11 @@ public void setType(String type) { } /** - * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + * Public URL where webhooks will be sent, for example + * **https://www.domain.com/webhook-endpoint**. * - * @param url Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + * @param url Public URL where webhooks will be sent, for example + * **https://www.domain.com/webhook-endpoint**. * @return the current {@code CreateCompanyWebhookRequest} instance, allowing for method chaining */ public CreateCompanyWebhookRequest url(String url) { @@ -735,8 +927,11 @@ public CreateCompanyWebhookRequest url(String url) { } /** - * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. - * @return url Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + * Public URL where webhooks will be sent, for example + * **https://www.domain.com/webhook-endpoint**. + * + * @return url Public URL where webhooks will be sent, for example + * **https://www.domain.com/webhook-endpoint**. */ @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -745,9 +940,11 @@ public String getUrl() { } /** - * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + * Public URL where webhooks will be sent, for example + * **https://www.domain.com/webhook-endpoint**. * - * @param url Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + * @param url Public URL where webhooks will be sent, for example + * **https://www.domain.com/webhook-endpoint**. */ @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -768,6 +965,7 @@ public CreateCompanyWebhookRequest username(String username) { /** * Username to access the webhook URL. + * * @return username Username to access the webhook URL. */ @JsonProperty(JSON_PROPERTY_USERNAME) @@ -787,9 +985,7 @@ public void setUsername(String username) { this.username = username; } - /** - * Return true if this CreateCompanyWebhookRequest object is equal to o. - */ + /** Return true if this CreateCompanyWebhookRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -799,46 +995,84 @@ public boolean equals(Object o) { return false; } CreateCompanyWebhookRequest createCompanyWebhookRequest = (CreateCompanyWebhookRequest) o; - return Objects.equals(this.acceptsExpiredCertificate, createCompanyWebhookRequest.acceptsExpiredCertificate) && - Objects.equals(this.acceptsSelfSignedCertificate, createCompanyWebhookRequest.acceptsSelfSignedCertificate) && - Objects.equals(this.acceptsUntrustedRootCertificate, createCompanyWebhookRequest.acceptsUntrustedRootCertificate) && - Objects.equals(this.active, createCompanyWebhookRequest.active) && - Objects.equals(this.additionalSettings, createCompanyWebhookRequest.additionalSettings) && - Objects.equals(this.communicationFormat, createCompanyWebhookRequest.communicationFormat) && - Objects.equals(this.description, createCompanyWebhookRequest.description) && - Objects.equals(this.encryptionProtocol, createCompanyWebhookRequest.encryptionProtocol) && - Objects.equals(this.filterMerchantAccountType, createCompanyWebhookRequest.filterMerchantAccountType) && - Objects.equals(this.filterMerchantAccounts, createCompanyWebhookRequest.filterMerchantAccounts) && - Objects.equals(this.networkType, createCompanyWebhookRequest.networkType) && - Objects.equals(this.password, createCompanyWebhookRequest.password) && - Objects.equals(this.populateSoapActionHeader, createCompanyWebhookRequest.populateSoapActionHeader) && - Objects.equals(this.type, createCompanyWebhookRequest.type) && - Objects.equals(this.url, createCompanyWebhookRequest.url) && - Objects.equals(this.username, createCompanyWebhookRequest.username); + return Objects.equals( + this.acceptsExpiredCertificate, createCompanyWebhookRequest.acceptsExpiredCertificate) + && Objects.equals( + this.acceptsSelfSignedCertificate, + createCompanyWebhookRequest.acceptsSelfSignedCertificate) + && Objects.equals( + this.acceptsUntrustedRootCertificate, + createCompanyWebhookRequest.acceptsUntrustedRootCertificate) + && Objects.equals(this.active, createCompanyWebhookRequest.active) + && Objects.equals(this.additionalSettings, createCompanyWebhookRequest.additionalSettings) + && Objects.equals(this.communicationFormat, createCompanyWebhookRequest.communicationFormat) + && Objects.equals(this.description, createCompanyWebhookRequest.description) + && Objects.equals(this.encryptionProtocol, createCompanyWebhookRequest.encryptionProtocol) + && Objects.equals( + this.filterMerchantAccountType, createCompanyWebhookRequest.filterMerchantAccountType) + && Objects.equals( + this.filterMerchantAccounts, createCompanyWebhookRequest.filterMerchantAccounts) + && Objects.equals(this.networkType, createCompanyWebhookRequest.networkType) + && Objects.equals(this.password, createCompanyWebhookRequest.password) + && Objects.equals( + this.populateSoapActionHeader, createCompanyWebhookRequest.populateSoapActionHeader) + && Objects.equals(this.type, createCompanyWebhookRequest.type) + && Objects.equals(this.url, createCompanyWebhookRequest.url) + && Objects.equals(this.username, createCompanyWebhookRequest.username); } @Override public int hashCode() { - return Objects.hash(acceptsExpiredCertificate, acceptsSelfSignedCertificate, acceptsUntrustedRootCertificate, active, additionalSettings, communicationFormat, description, encryptionProtocol, filterMerchantAccountType, filterMerchantAccounts, networkType, password, populateSoapActionHeader, type, url, username); + return Objects.hash( + acceptsExpiredCertificate, + acceptsSelfSignedCertificate, + acceptsUntrustedRootCertificate, + active, + additionalSettings, + communicationFormat, + description, + encryptionProtocol, + filterMerchantAccountType, + filterMerchantAccounts, + networkType, + password, + populateSoapActionHeader, + type, + url, + username); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateCompanyWebhookRequest {\n"); - sb.append(" acceptsExpiredCertificate: ").append(toIndentedString(acceptsExpiredCertificate)).append("\n"); - sb.append(" acceptsSelfSignedCertificate: ").append(toIndentedString(acceptsSelfSignedCertificate)).append("\n"); - sb.append(" acceptsUntrustedRootCertificate: ").append(toIndentedString(acceptsUntrustedRootCertificate)).append("\n"); + sb.append(" acceptsExpiredCertificate: ") + .append(toIndentedString(acceptsExpiredCertificate)) + .append("\n"); + sb.append(" acceptsSelfSignedCertificate: ") + .append(toIndentedString(acceptsSelfSignedCertificate)) + .append("\n"); + sb.append(" acceptsUntrustedRootCertificate: ") + .append(toIndentedString(acceptsUntrustedRootCertificate)) + .append("\n"); sb.append(" active: ").append(toIndentedString(active)).append("\n"); sb.append(" additionalSettings: ").append(toIndentedString(additionalSettings)).append("\n"); - sb.append(" communicationFormat: ").append(toIndentedString(communicationFormat)).append("\n"); + sb.append(" communicationFormat: ") + .append(toIndentedString(communicationFormat)) + .append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" encryptionProtocol: ").append(toIndentedString(encryptionProtocol)).append("\n"); - sb.append(" filterMerchantAccountType: ").append(toIndentedString(filterMerchantAccountType)).append("\n"); - sb.append(" filterMerchantAccounts: ").append(toIndentedString(filterMerchantAccounts)).append("\n"); + sb.append(" filterMerchantAccountType: ") + .append(toIndentedString(filterMerchantAccountType)) + .append("\n"); + sb.append(" filterMerchantAccounts: ") + .append(toIndentedString(filterMerchantAccounts)) + .append("\n"); sb.append(" networkType: ").append(toIndentedString(networkType)).append("\n"); sb.append(" password: ").append(toIndentedString(password)).append("\n"); - sb.append(" populateSoapActionHeader: ").append(toIndentedString(populateSoapActionHeader)).append("\n"); + sb.append(" populateSoapActionHeader: ") + .append(toIndentedString(populateSoapActionHeader)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" username: ").append(toIndentedString(username)).append("\n"); @@ -847,8 +1081,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -857,21 +1090,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CreateCompanyWebhookRequest given an JSON string * * @param jsonString JSON string * @return An instance of CreateCompanyWebhookRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to CreateCompanyWebhookRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CreateCompanyWebhookRequest */ - public static CreateCompanyWebhookRequest fromJson(String jsonString) throws JsonProcessingException { + public static CreateCompanyWebhookRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateCompanyWebhookRequest.class); } -/** - * Convert an instance of CreateCompanyWebhookRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CreateCompanyWebhookRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CreateMerchantApiCredentialRequest.java b/src/main/java/com/adyen/model/management/CreateMerchantApiCredentialRequest.java index 4525ca690..2f313925b 100644 --- a/src/main/java/com/adyen/model/management/CreateMerchantApiCredentialRequest.java +++ b/src/main/java/com/adyen/model/management/CreateMerchantApiCredentialRequest.java @@ -2,39 +2,29 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * CreateMerchantApiCredentialRequest - */ +/** CreateMerchantApiCredentialRequest */ @JsonPropertyOrder({ CreateMerchantApiCredentialRequest.JSON_PROPERTY_ALLOWED_ORIGINS, CreateMerchantApiCredentialRequest.JSON_PROPERTY_DESCRIPTION, CreateMerchantApiCredentialRequest.JSON_PROPERTY_ROLES }) - public class CreateMerchantApiCredentialRequest { public static final String JSON_PROPERTY_ALLOWED_ORIGINS = "allowedOrigins"; private List allowedOrigins; @@ -45,14 +35,18 @@ public class CreateMerchantApiCredentialRequest { public static final String JSON_PROPERTY_ROLES = "roles"; private List roles; - public CreateMerchantApiCredentialRequest() { - } + public CreateMerchantApiCredentialRequest() {} /** - * The list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential. + * The list of [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * for the new API credential. * - * @param allowedOrigins The list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential. - * @return the current {@code CreateMerchantApiCredentialRequest} instance, allowing for method chaining + * @param allowedOrigins The list of [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * for the new API credential. + * @return the current {@code CreateMerchantApiCredentialRequest} instance, allowing for method + * chaining */ public CreateMerchantApiCredentialRequest allowedOrigins(List allowedOrigins) { this.allowedOrigins = allowedOrigins; @@ -68,8 +62,13 @@ public CreateMerchantApiCredentialRequest addAllowedOriginsItem(String allowedOr } /** - * The list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential. - * @return allowedOrigins The list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential. + * The list of [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * for the new API credential. + * + * @return allowedOrigins The list of [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * for the new API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -78,9 +77,13 @@ public List getAllowedOrigins() { } /** - * The list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential. + * The list of [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * for the new API credential. * - * @param allowedOrigins The list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential. + * @param allowedOrigins The list of [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * for the new API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -92,7 +95,8 @@ public void setAllowedOrigins(List allowedOrigins) { * Description of the API credential. * * @param description Description of the API credential. - * @return the current {@code CreateMerchantApiCredentialRequest} instance, allowing for method chaining + * @return the current {@code CreateMerchantApiCredentialRequest} instance, allowing for method + * chaining */ public CreateMerchantApiCredentialRequest description(String description) { this.description = description; @@ -101,6 +105,7 @@ public CreateMerchantApiCredentialRequest description(String description) { /** * Description of the API credential. + * * @return description Description of the API credential. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -121,10 +126,16 @@ public void setDescription(String description) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the + * API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned + * to other API credentials. * - * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. - * @return the current {@code CreateMerchantApiCredentialRequest} instance, allowing for method chaining + * @param roles List of + * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API + * credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned + * to other API credentials. + * @return the current {@code CreateMerchantApiCredentialRequest} instance, allowing for method + * chaining */ public CreateMerchantApiCredentialRequest roles(List roles) { this.roles = roles; @@ -140,8 +151,14 @@ public CreateMerchantApiCredentialRequest addRolesItem(String rolesItem) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. - * @return roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the + * API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned + * to other API credentials. + * + * @return roles List of + * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API + * credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned + * to other API credentials. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,9 +167,14 @@ public List getRoles() { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the + * API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned + * to other API credentials. * - * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. + * @param roles List of + * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API + * credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned + * to other API credentials. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,9 +182,7 @@ public void setRoles(List roles) { this.roles = roles; } - /** - * Return true if this CreateMerchantApiCredentialRequest object is equal to o. - */ + /** Return true if this CreateMerchantApiCredentialRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -171,10 +191,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CreateMerchantApiCredentialRequest createMerchantApiCredentialRequest = (CreateMerchantApiCredentialRequest) o; - return Objects.equals(this.allowedOrigins, createMerchantApiCredentialRequest.allowedOrigins) && - Objects.equals(this.description, createMerchantApiCredentialRequest.description) && - Objects.equals(this.roles, createMerchantApiCredentialRequest.roles); + CreateMerchantApiCredentialRequest createMerchantApiCredentialRequest = + (CreateMerchantApiCredentialRequest) o; + return Objects.equals(this.allowedOrigins, createMerchantApiCredentialRequest.allowedOrigins) + && Objects.equals(this.description, createMerchantApiCredentialRequest.description) + && Objects.equals(this.roles, createMerchantApiCredentialRequest.roles); } @Override @@ -194,8 +215,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -204,21 +224,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CreateMerchantApiCredentialRequest given an JSON string * * @param jsonString JSON string * @return An instance of CreateMerchantApiCredentialRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to CreateMerchantApiCredentialRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CreateMerchantApiCredentialRequest */ - public static CreateMerchantApiCredentialRequest fromJson(String jsonString) throws JsonProcessingException { + public static CreateMerchantApiCredentialRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateMerchantApiCredentialRequest.class); } -/** - * Convert an instance of CreateMerchantApiCredentialRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CreateMerchantApiCredentialRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CreateMerchantRequest.java b/src/main/java/com/adyen/model/management/CreateMerchantRequest.java index d59b52d79..624ca2f9f 100644 --- a/src/main/java/com/adyen/model/management/CreateMerchantRequest.java +++ b/src/main/java/com/adyen/model/management/CreateMerchantRequest.java @@ -2,33 +2,24 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * CreateMerchantRequest - */ +/** CreateMerchantRequest */ @JsonPropertyOrder({ CreateMerchantRequest.JSON_PROPERTY_BUSINESS_LINE_ID, CreateMerchantRequest.JSON_PROPERTY_COMPANY_ID, @@ -38,7 +29,6 @@ CreateMerchantRequest.JSON_PROPERTY_REFERENCE, CreateMerchantRequest.JSON_PROPERTY_SALES_CHANNELS }) - public class CreateMerchantRequest { public static final String JSON_PROPERTY_BUSINESS_LINE_ID = "businessLineId"; private String businessLineId; @@ -61,13 +51,16 @@ public class CreateMerchantRequest { public static final String JSON_PROPERTY_SALES_CHANNELS = "salesChannels"; private List salesChannels; - public CreateMerchantRequest() { - } + public CreateMerchantRequest() {} /** - * The unique identifier of the [business line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). Required for an Adyen for Platforms Manage integration. + * The unique identifier of the [business + * line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). Required + * for an Adyen for Platforms Manage integration. * - * @param businessLineId The unique identifier of the [business line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). Required for an Adyen for Platforms Manage integration. + * @param businessLineId The unique identifier of the [business + * line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). + * Required for an Adyen for Platforms Manage integration. * @return the current {@code CreateMerchantRequest} instance, allowing for method chaining */ public CreateMerchantRequest businessLineId(String businessLineId) { @@ -76,8 +69,13 @@ public CreateMerchantRequest businessLineId(String businessLineId) { } /** - * The unique identifier of the [business line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). Required for an Adyen for Platforms Manage integration. - * @return businessLineId The unique identifier of the [business line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). Required for an Adyen for Platforms Manage integration. + * The unique identifier of the [business + * line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). Required + * for an Adyen for Platforms Manage integration. + * + * @return businessLineId The unique identifier of the [business + * line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). + * Required for an Adyen for Platforms Manage integration. */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -86,9 +84,13 @@ public String getBusinessLineId() { } /** - * The unique identifier of the [business line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). Required for an Adyen for Platforms Manage integration. + * The unique identifier of the [business + * line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). Required + * for an Adyen for Platforms Manage integration. * - * @param businessLineId The unique identifier of the [business line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). Required for an Adyen for Platforms Manage integration. + * @param businessLineId The unique identifier of the [business + * line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). + * Required for an Adyen for Platforms Manage integration. */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -109,6 +111,7 @@ public CreateMerchantRequest companyId(String companyId) { /** * The unique identifier of the company account. + * * @return companyId The unique identifier of the company account. */ @JsonProperty(JSON_PROPERTY_COMPANY_ID) @@ -141,6 +144,7 @@ public CreateMerchantRequest description(String description) { /** * Your description for the merchant account, maximum 300 characters. + * * @return description Your description for the merchant account, maximum 300 characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -161,9 +165,13 @@ public void setDescription(String description) { } /** - * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). Required for an Adyen for Platforms Manage integration. + * The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). Required + * for an Adyen for Platforms Manage integration. * - * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). Required for an Adyen for Platforms Manage integration. + * @param legalEntityId The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). + * Required for an Adyen for Platforms Manage integration. * @return the current {@code CreateMerchantRequest} instance, allowing for method chaining */ public CreateMerchantRequest legalEntityId(String legalEntityId) { @@ -172,8 +180,13 @@ public CreateMerchantRequest legalEntityId(String legalEntityId) { } /** - * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). Required for an Adyen for Platforms Manage integration. - * @return legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). Required for an Adyen for Platforms Manage integration. + * The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). Required + * for an Adyen for Platforms Manage integration. + * + * @return legalEntityId The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). + * Required for an Adyen for Platforms Manage integration. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,9 +195,13 @@ public String getLegalEntityId() { } /** - * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). Required for an Adyen for Platforms Manage integration. + * The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). Required + * for an Adyen for Platforms Manage integration. * - * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). Required for an Adyen for Platforms Manage integration. + * @param legalEntityId The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). + * Required for an Adyen for Platforms Manage integration. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,9 +210,11 @@ public void setLegalEntityId(String legalEntityId) { } /** - * Sets the pricing plan for the merchant account. Required for an Adyen for Platforms Manage integration. Your Adyen contact will provide the values that you can use. + * Sets the pricing plan for the merchant account. Required for an Adyen for Platforms Manage + * integration. Your Adyen contact will provide the values that you can use. * - * @param pricingPlan Sets the pricing plan for the merchant account. Required for an Adyen for Platforms Manage integration. Your Adyen contact will provide the values that you can use. + * @param pricingPlan Sets the pricing plan for the merchant account. Required for an Adyen for + * Platforms Manage integration. Your Adyen contact will provide the values that you can use. * @return the current {@code CreateMerchantRequest} instance, allowing for method chaining */ public CreateMerchantRequest pricingPlan(String pricingPlan) { @@ -204,8 +223,11 @@ public CreateMerchantRequest pricingPlan(String pricingPlan) { } /** - * Sets the pricing plan for the merchant account. Required for an Adyen for Platforms Manage integration. Your Adyen contact will provide the values that you can use. - * @return pricingPlan Sets the pricing plan for the merchant account. Required for an Adyen for Platforms Manage integration. Your Adyen contact will provide the values that you can use. + * Sets the pricing plan for the merchant account. Required for an Adyen for Platforms Manage + * integration. Your Adyen contact will provide the values that you can use. + * + * @return pricingPlan Sets the pricing plan for the merchant account. Required for an Adyen for + * Platforms Manage integration. Your Adyen contact will provide the values that you can use. */ @JsonProperty(JSON_PROPERTY_PRICING_PLAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,9 +236,11 @@ public String getPricingPlan() { } /** - * Sets the pricing plan for the merchant account. Required for an Adyen for Platforms Manage integration. Your Adyen contact will provide the values that you can use. + * Sets the pricing plan for the merchant account. Required for an Adyen for Platforms Manage + * integration. Your Adyen contact will provide the values that you can use. * - * @param pricingPlan Sets the pricing plan for the merchant account. Required for an Adyen for Platforms Manage integration. Your Adyen contact will provide the values that you can use. + * @param pricingPlan Sets the pricing plan for the merchant account. Required for an Adyen for + * Platforms Manage integration. Your Adyen contact will provide the values that you can use. */ @JsonProperty(JSON_PROPERTY_PRICING_PLAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -225,9 +249,17 @@ public void setPricingPlan(String pricingPlan) { } /** - * Your reference for the merchant account. To make this reference the unique identifier of the merchant account, your Adyen contact can set up a template on your company account. The template can have 6 to 255 characters with upper- and lower-case letters, underscores, and numbers. When your company account has a template, then the `reference` is required and must be unique within the company account. + * Your reference for the merchant account. To make this reference the unique identifier of the + * merchant account, your Adyen contact can set up a template on your company account. The + * template can have 6 to 255 characters with upper- and lower-case letters, underscores, and + * numbers. When your company account has a template, then the `reference` is required + * and must be unique within the company account. * - * @param reference Your reference for the merchant account. To make this reference the unique identifier of the merchant account, your Adyen contact can set up a template on your company account. The template can have 6 to 255 characters with upper- and lower-case letters, underscores, and numbers. When your company account has a template, then the `reference` is required and must be unique within the company account. + * @param reference Your reference for the merchant account. To make this reference the unique + * identifier of the merchant account, your Adyen contact can set up a template on your + * company account. The template can have 6 to 255 characters with upper- and lower-case + * letters, underscores, and numbers. When your company account has a template, then the + * `reference` is required and must be unique within the company account. * @return the current {@code CreateMerchantRequest} instance, allowing for method chaining */ public CreateMerchantRequest reference(String reference) { @@ -236,8 +268,17 @@ public CreateMerchantRequest reference(String reference) { } /** - * Your reference for the merchant account. To make this reference the unique identifier of the merchant account, your Adyen contact can set up a template on your company account. The template can have 6 to 255 characters with upper- and lower-case letters, underscores, and numbers. When your company account has a template, then the `reference` is required and must be unique within the company account. - * @return reference Your reference for the merchant account. To make this reference the unique identifier of the merchant account, your Adyen contact can set up a template on your company account. The template can have 6 to 255 characters with upper- and lower-case letters, underscores, and numbers. When your company account has a template, then the `reference` is required and must be unique within the company account. + * Your reference for the merchant account. To make this reference the unique identifier of the + * merchant account, your Adyen contact can set up a template on your company account. The + * template can have 6 to 255 characters with upper- and lower-case letters, underscores, and + * numbers. When your company account has a template, then the `reference` is required + * and must be unique within the company account. + * + * @return reference Your reference for the merchant account. To make this reference the unique + * identifier of the merchant account, your Adyen contact can set up a template on your + * company account. The template can have 6 to 255 characters with upper- and lower-case + * letters, underscores, and numbers. When your company account has a template, then the + * `reference` is required and must be unique within the company account. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -246,9 +287,17 @@ public String getReference() { } /** - * Your reference for the merchant account. To make this reference the unique identifier of the merchant account, your Adyen contact can set up a template on your company account. The template can have 6 to 255 characters with upper- and lower-case letters, underscores, and numbers. When your company account has a template, then the `reference` is required and must be unique within the company account. + * Your reference for the merchant account. To make this reference the unique identifier of the + * merchant account, your Adyen contact can set up a template on your company account. The + * template can have 6 to 255 characters with upper- and lower-case letters, underscores, and + * numbers. When your company account has a template, then the `reference` is required + * and must be unique within the company account. * - * @param reference Your reference for the merchant account. To make this reference the unique identifier of the merchant account, your Adyen contact can set up a template on your company account. The template can have 6 to 255 characters with upper- and lower-case letters, underscores, and numbers. When your company account has a template, then the `reference` is required and must be unique within the company account. + * @param reference Your reference for the merchant account. To make this reference the unique + * identifier of the merchant account, your Adyen contact can set up a template on your + * company account. The template can have 6 to 255 characters with upper- and lower-case + * letters, underscores, and numbers. When your company account has a template, then the + * `reference` is required and must be unique within the company account. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -277,6 +326,7 @@ public CreateMerchantRequest addSalesChannelsItem(String salesChannelsItem) { /** * List of sales channels that the merchant will process payments with + * * @return salesChannels List of sales channels that the merchant will process payments with */ @JsonProperty(JSON_PROPERTY_SALES_CHANNELS) @@ -296,9 +346,7 @@ public void setSalesChannels(List salesChannels) { this.salesChannels = salesChannels; } - /** - * Return true if this CreateMerchantRequest object is equal to o. - */ + /** Return true if this CreateMerchantRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -308,18 +356,25 @@ public boolean equals(Object o) { return false; } CreateMerchantRequest createMerchantRequest = (CreateMerchantRequest) o; - return Objects.equals(this.businessLineId, createMerchantRequest.businessLineId) && - Objects.equals(this.companyId, createMerchantRequest.companyId) && - Objects.equals(this.description, createMerchantRequest.description) && - Objects.equals(this.legalEntityId, createMerchantRequest.legalEntityId) && - Objects.equals(this.pricingPlan, createMerchantRequest.pricingPlan) && - Objects.equals(this.reference, createMerchantRequest.reference) && - Objects.equals(this.salesChannels, createMerchantRequest.salesChannels); + return Objects.equals(this.businessLineId, createMerchantRequest.businessLineId) + && Objects.equals(this.companyId, createMerchantRequest.companyId) + && Objects.equals(this.description, createMerchantRequest.description) + && Objects.equals(this.legalEntityId, createMerchantRequest.legalEntityId) + && Objects.equals(this.pricingPlan, createMerchantRequest.pricingPlan) + && Objects.equals(this.reference, createMerchantRequest.reference) + && Objects.equals(this.salesChannels, createMerchantRequest.salesChannels); } @Override public int hashCode() { - return Objects.hash(businessLineId, companyId, description, legalEntityId, pricingPlan, reference, salesChannels); + return Objects.hash( + businessLineId, + companyId, + description, + legalEntityId, + pricingPlan, + reference, + salesChannels); } @Override @@ -338,8 +393,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -348,21 +402,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CreateMerchantRequest given an JSON string * * @param jsonString JSON string * @return An instance of CreateMerchantRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to CreateMerchantRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CreateMerchantRequest */ public static CreateMerchantRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateMerchantRequest.class); } -/** - * Convert an instance of CreateMerchantRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CreateMerchantRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CreateMerchantResponse.java b/src/main/java/com/adyen/model/management/CreateMerchantResponse.java index c8286d399..99288a57b 100644 --- a/src/main/java/com/adyen/model/management/CreateMerchantResponse.java +++ b/src/main/java/com/adyen/model/management/CreateMerchantResponse.java @@ -2,31 +2,22 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * CreateMerchantResponse - */ +/** CreateMerchantResponse */ @JsonPropertyOrder({ CreateMerchantResponse.JSON_PROPERTY_BUSINESS_LINE_ID, CreateMerchantResponse.JSON_PROPERTY_COMPANY_ID, @@ -36,7 +27,6 @@ CreateMerchantResponse.JSON_PROPERTY_PRICING_PLAN, CreateMerchantResponse.JSON_PROPERTY_REFERENCE }) - public class CreateMerchantResponse { public static final String JSON_PROPERTY_BUSINESS_LINE_ID = "businessLineId"; private String businessLineId; @@ -59,13 +49,14 @@ public class CreateMerchantResponse { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public CreateMerchantResponse() { - } + public CreateMerchantResponse() {} /** - * The unique identifier of the [business line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). + * The unique identifier of the [business + * line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). * - * @param businessLineId The unique identifier of the [business line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). + * @param businessLineId The unique identifier of the [business + * line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). * @return the current {@code CreateMerchantResponse} instance, allowing for method chaining */ public CreateMerchantResponse businessLineId(String businessLineId) { @@ -74,8 +65,11 @@ public CreateMerchantResponse businessLineId(String businessLineId) { } /** - * The unique identifier of the [business line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). - * @return businessLineId The unique identifier of the [business line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). + * The unique identifier of the [business + * line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). + * + * @return businessLineId The unique identifier of the [business + * line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -84,9 +78,11 @@ public String getBusinessLineId() { } /** - * The unique identifier of the [business line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). + * The unique identifier of the [business + * line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). * - * @param businessLineId The unique identifier of the [business line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). + * @param businessLineId The unique identifier of the [business + * line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,6 +103,7 @@ public CreateMerchantResponse companyId(String companyId) { /** * The unique identifier of the company account. + * * @return companyId The unique identifier of the company account. */ @JsonProperty(JSON_PROPERTY_COMPANY_ID) @@ -139,6 +136,7 @@ public CreateMerchantResponse description(String description) { /** * Your description for the merchant account, maximum 300 characters. + * * @return description Your description for the merchant account, maximum 300 characters. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -159,9 +157,14 @@ public void setDescription(String description) { } /** - * The unique identifier of the merchant account. If Adyen set up a template for the `reference`, then the `id` will have the same value as the `reference` that you sent in the request. Otherwise, the value is generated by Adyen. + * The unique identifier of the merchant account. If Adyen set up a template for the + * `reference`, then the `id` will have the same value as the + * `reference` that you sent in the request. Otherwise, the value is generated by Adyen. * - * @param id The unique identifier of the merchant account. If Adyen set up a template for the `reference`, then the `id` will have the same value as the `reference` that you sent in the request. Otherwise, the value is generated by Adyen. + * @param id The unique identifier of the merchant account. If Adyen set up a template for the + * `reference`, then the `id` will have the same value as the + * `reference` that you sent in the request. Otherwise, the value is generated by + * Adyen. * @return the current {@code CreateMerchantResponse} instance, allowing for method chaining */ public CreateMerchantResponse id(String id) { @@ -170,8 +173,14 @@ public CreateMerchantResponse id(String id) { } /** - * The unique identifier of the merchant account. If Adyen set up a template for the `reference`, then the `id` will have the same value as the `reference` that you sent in the request. Otherwise, the value is generated by Adyen. - * @return id The unique identifier of the merchant account. If Adyen set up a template for the `reference`, then the `id` will have the same value as the `reference` that you sent in the request. Otherwise, the value is generated by Adyen. + * The unique identifier of the merchant account. If Adyen set up a template for the + * `reference`, then the `id` will have the same value as the + * `reference` that you sent in the request. Otherwise, the value is generated by Adyen. + * + * @return id The unique identifier of the merchant account. If Adyen set up a template for the + * `reference`, then the `id` will have the same value as the + * `reference` that you sent in the request. Otherwise, the value is generated by + * Adyen. */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -180,9 +189,14 @@ public String getId() { } /** - * The unique identifier of the merchant account. If Adyen set up a template for the `reference`, then the `id` will have the same value as the `reference` that you sent in the request. Otherwise, the value is generated by Adyen. + * The unique identifier of the merchant account. If Adyen set up a template for the + * `reference`, then the `id` will have the same value as the + * `reference` that you sent in the request. Otherwise, the value is generated by Adyen. * - * @param id The unique identifier of the merchant account. If Adyen set up a template for the `reference`, then the `id` will have the same value as the `reference` that you sent in the request. Otherwise, the value is generated by Adyen. + * @param id The unique identifier of the merchant account. If Adyen set up a template for the + * `reference`, then the `id` will have the same value as the + * `reference` that you sent in the request. Otherwise, the value is generated by + * Adyen. */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,9 +205,11 @@ public void setId(String id) { } /** - * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). + * The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). * - * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). + * @param legalEntityId The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). * @return the current {@code CreateMerchantResponse} instance, allowing for method chaining */ public CreateMerchantResponse legalEntityId(String legalEntityId) { @@ -202,8 +218,11 @@ public CreateMerchantResponse legalEntityId(String legalEntityId) { } /** - * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). - * @return legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). + * The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). + * + * @return legalEntityId The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -212,9 +231,11 @@ public String getLegalEntityId() { } /** - * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). + * The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). * - * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). + * @param legalEntityId The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,9 +244,11 @@ public void setLegalEntityId(String legalEntityId) { } /** - * Partner pricing plan for the merchant, applicable for merchants under AfP managed company accounts. + * Partner pricing plan for the merchant, applicable for merchants under AfP managed company + * accounts. * - * @param pricingPlan Partner pricing plan for the merchant, applicable for merchants under AfP managed company accounts. + * @param pricingPlan Partner pricing plan for the merchant, applicable for merchants under AfP + * managed company accounts. * @return the current {@code CreateMerchantResponse} instance, allowing for method chaining */ public CreateMerchantResponse pricingPlan(String pricingPlan) { @@ -234,8 +257,11 @@ public CreateMerchantResponse pricingPlan(String pricingPlan) { } /** - * Partner pricing plan for the merchant, applicable for merchants under AfP managed company accounts. - * @return pricingPlan Partner pricing plan for the merchant, applicable for merchants under AfP managed company accounts. + * Partner pricing plan for the merchant, applicable for merchants under AfP managed company + * accounts. + * + * @return pricingPlan Partner pricing plan for the merchant, applicable for merchants under AfP + * managed company accounts. */ @JsonProperty(JSON_PROPERTY_PRICING_PLAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,9 +270,11 @@ public String getPricingPlan() { } /** - * Partner pricing plan for the merchant, applicable for merchants under AfP managed company accounts. + * Partner pricing plan for the merchant, applicable for merchants under AfP managed company + * accounts. * - * @param pricingPlan Partner pricing plan for the merchant, applicable for merchants under AfP managed company accounts. + * @param pricingPlan Partner pricing plan for the merchant, applicable for merchants under AfP + * managed company accounts. */ @JsonProperty(JSON_PROPERTY_PRICING_PLAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -267,6 +295,7 @@ public CreateMerchantResponse reference(String reference) { /** * Your reference for the merchant account. + * * @return reference Your reference for the merchant account. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -286,9 +315,7 @@ public void setReference(String reference) { this.reference = reference; } - /** - * Return true if this CreateMerchantResponse object is equal to o. - */ + /** Return true if this CreateMerchantResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -298,18 +325,19 @@ public boolean equals(Object o) { return false; } CreateMerchantResponse createMerchantResponse = (CreateMerchantResponse) o; - return Objects.equals(this.businessLineId, createMerchantResponse.businessLineId) && - Objects.equals(this.companyId, createMerchantResponse.companyId) && - Objects.equals(this.description, createMerchantResponse.description) && - Objects.equals(this.id, createMerchantResponse.id) && - Objects.equals(this.legalEntityId, createMerchantResponse.legalEntityId) && - Objects.equals(this.pricingPlan, createMerchantResponse.pricingPlan) && - Objects.equals(this.reference, createMerchantResponse.reference); + return Objects.equals(this.businessLineId, createMerchantResponse.businessLineId) + && Objects.equals(this.companyId, createMerchantResponse.companyId) + && Objects.equals(this.description, createMerchantResponse.description) + && Objects.equals(this.id, createMerchantResponse.id) + && Objects.equals(this.legalEntityId, createMerchantResponse.legalEntityId) + && Objects.equals(this.pricingPlan, createMerchantResponse.pricingPlan) + && Objects.equals(this.reference, createMerchantResponse.reference); } @Override public int hashCode() { - return Objects.hash(businessLineId, companyId, description, id, legalEntityId, pricingPlan, reference); + return Objects.hash( + businessLineId, companyId, description, id, legalEntityId, pricingPlan, reference); } @Override @@ -328,8 +356,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -338,21 +365,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CreateMerchantResponse given an JSON string * * @param jsonString JSON string * @return An instance of CreateMerchantResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to CreateMerchantResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CreateMerchantResponse */ public static CreateMerchantResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateMerchantResponse.class); } -/** - * Convert an instance of CreateMerchantResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CreateMerchantResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CreateMerchantUserRequest.java b/src/main/java/com/adyen/model/management/CreateMerchantUserRequest.java index fe926ad87..660bc0a8a 100644 --- a/src/main/java/com/adyen/model/management/CreateMerchantUserRequest.java +++ b/src/main/java/com/adyen/model/management/CreateMerchantUserRequest.java @@ -2,34 +2,24 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.Name; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * CreateMerchantUserRequest - */ +/** CreateMerchantUserRequest */ @JsonPropertyOrder({ CreateMerchantUserRequest.JSON_PROPERTY_ACCOUNT_GROUPS, CreateMerchantUserRequest.JSON_PROPERTY_EMAIL, @@ -39,7 +29,6 @@ CreateMerchantUserRequest.JSON_PROPERTY_TIME_ZONE_CODE, CreateMerchantUserRequest.JSON_PROPERTY_USERNAME }) - public class CreateMerchantUserRequest { public static final String JSON_PROPERTY_ACCOUNT_GROUPS = "accountGroups"; private List accountGroups; @@ -62,13 +51,15 @@ public class CreateMerchantUserRequest { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public CreateMerchantUserRequest() { - } + public CreateMerchantUserRequest() {} /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) + * associated with this user. * - * @param accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * @param accountGroups The list of [account + * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with + * this user. * @return the current {@code CreateMerchantUserRequest} instance, allowing for method chaining */ public CreateMerchantUserRequest accountGroups(List accountGroups) { @@ -85,8 +76,12 @@ public CreateMerchantUserRequest addAccountGroupsItem(String accountGroupsItem) } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. - * @return accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) + * associated with this user. + * + * @return accountGroups The list of [account + * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with + * this user. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -95,9 +90,12 @@ public List getAccountGroups() { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) + * associated with this user. * - * @param accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * @param accountGroups The list of [account + * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with + * this user. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,6 +116,7 @@ public CreateMerchantUserRequest email(String email) { /** * The email address of the user. + * * @return email The email address of the user. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -138,9 +137,13 @@ public void setEmail(String email) { } /** - * The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** + * The requested login method for the user. To use SSO, you must already have SSO configured with + * Adyen before creating the user. Possible values: **Username & account**, **Email**, or + * **SSO** * - * @param loginMethod The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** + * @param loginMethod The requested login method for the user. To use SSO, you must already have + * SSO configured with Adyen before creating the user. Possible values: **Username & + * account**, **Email**, or **SSO** * @return the current {@code CreateMerchantUserRequest} instance, allowing for method chaining */ public CreateMerchantUserRequest loginMethod(String loginMethod) { @@ -149,8 +152,13 @@ public CreateMerchantUserRequest loginMethod(String loginMethod) { } /** - * The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** - * @return loginMethod The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** + * The requested login method for the user. To use SSO, you must already have SSO configured with + * Adyen before creating the user. Possible values: **Username & account**, **Email**, or + * **SSO** + * + * @return loginMethod The requested login method for the user. To use SSO, you must already have + * SSO configured with Adyen before creating the user. Possible values: **Username & + * account**, **Email**, or **SSO** */ @JsonProperty(JSON_PROPERTY_LOGIN_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,9 +167,13 @@ public String getLoginMethod() { } /** - * The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** + * The requested login method for the user. To use SSO, you must already have SSO configured with + * Adyen before creating the user. Possible values: **Username & account**, **Email**, or + * **SSO** * - * @param loginMethod The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** + * @param loginMethod The requested login method for the user. To use SSO, you must already have + * SSO configured with Adyen before creating the user. Possible values: **Username & + * account**, **Email**, or **SSO** */ @JsonProperty(JSON_PROPERTY_LOGIN_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,7 +184,7 @@ public void setLoginMethod(String loginMethod) { /** * name * - * @param name + * @param name * @return the current {@code CreateMerchantUserRequest} instance, allowing for method chaining */ public CreateMerchantUserRequest name(Name name) { @@ -182,7 +194,8 @@ public CreateMerchantUserRequest name(Name name) { /** * Get name - * @return name + * + * @return name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,7 +206,7 @@ public Name getName() { /** * name * - * @param name + * @param name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -222,6 +235,7 @@ public CreateMerchantUserRequest addRolesItem(String rolesItem) { /** * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. + * * @return roles The list of [roles](https://docs.adyen.com/account/user-roles) for this user. */ @JsonProperty(JSON_PROPERTY_ROLES) @@ -242,9 +256,12 @@ public void setRoles(List roles) { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the + * time zone of the user. For example, **Europe/Amsterdam**. * - * @param timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * @param timeZoneCode The [tz database + * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the + * user. For example, **Europe/Amsterdam**. * @return the current {@code CreateMerchantUserRequest} instance, allowing for method chaining */ public CreateMerchantUserRequest timeZoneCode(String timeZoneCode) { @@ -253,8 +270,12 @@ public CreateMerchantUserRequest timeZoneCode(String timeZoneCode) { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. - * @return timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the + * time zone of the user. For example, **Europe/Amsterdam**. + * + * @return timeZoneCode The [tz database + * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the + * user. For example, **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -263,9 +284,12 @@ public String getTimeZoneCode() { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the + * time zone of the user. For example, **Europe/Amsterdam**. * - * @param timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * @param timeZoneCode The [tz database + * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the + * user. For example, **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -274,9 +298,11 @@ public void setTimeZoneCode(String timeZoneCode) { } /** - * The user's email address that will be their username. Must be the same as the one in the `email` field. + * The user's email address that will be their username. Must be the same as the one in the + * `email` field. * - * @param username The user's email address that will be their username. Must be the same as the one in the `email` field. + * @param username The user's email address that will be their username. Must be the same as + * the one in the `email` field. * @return the current {@code CreateMerchantUserRequest} instance, allowing for method chaining */ public CreateMerchantUserRequest username(String username) { @@ -285,8 +311,11 @@ public CreateMerchantUserRequest username(String username) { } /** - * The user's email address that will be their username. Must be the same as the one in the `email` field. - * @return username The user's email address that will be their username. Must be the same as the one in the `email` field. + * The user's email address that will be their username. Must be the same as the one in the + * `email` field. + * + * @return username The user's email address that will be their username. Must be the same as + * the one in the `email` field. */ @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -295,9 +324,11 @@ public String getUsername() { } /** - * The user's email address that will be their username. Must be the same as the one in the `email` field. + * The user's email address that will be their username. Must be the same as the one in the + * `email` field. * - * @param username The user's email address that will be their username. Must be the same as the one in the `email` field. + * @param username The user's email address that will be their username. Must be the same as + * the one in the `email` field. */ @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -305,9 +336,7 @@ public void setUsername(String username) { this.username = username; } - /** - * Return true if this CreateMerchantUserRequest object is equal to o. - */ + /** Return true if this CreateMerchantUserRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -317,13 +346,13 @@ public boolean equals(Object o) { return false; } CreateMerchantUserRequest createMerchantUserRequest = (CreateMerchantUserRequest) o; - return Objects.equals(this.accountGroups, createMerchantUserRequest.accountGroups) && - Objects.equals(this.email, createMerchantUserRequest.email) && - Objects.equals(this.loginMethod, createMerchantUserRequest.loginMethod) && - Objects.equals(this.name, createMerchantUserRequest.name) && - Objects.equals(this.roles, createMerchantUserRequest.roles) && - Objects.equals(this.timeZoneCode, createMerchantUserRequest.timeZoneCode) && - Objects.equals(this.username, createMerchantUserRequest.username); + return Objects.equals(this.accountGroups, createMerchantUserRequest.accountGroups) + && Objects.equals(this.email, createMerchantUserRequest.email) + && Objects.equals(this.loginMethod, createMerchantUserRequest.loginMethod) + && Objects.equals(this.name, createMerchantUserRequest.name) + && Objects.equals(this.roles, createMerchantUserRequest.roles) + && Objects.equals(this.timeZoneCode, createMerchantUserRequest.timeZoneCode) + && Objects.equals(this.username, createMerchantUserRequest.username); } @Override @@ -347,8 +376,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -357,21 +385,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CreateMerchantUserRequest given an JSON string * * @param jsonString JSON string * @return An instance of CreateMerchantUserRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to CreateMerchantUserRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CreateMerchantUserRequest */ - public static CreateMerchantUserRequest fromJson(String jsonString) throws JsonProcessingException { + public static CreateMerchantUserRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateMerchantUserRequest.class); } -/** - * Convert an instance of CreateMerchantUserRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CreateMerchantUserRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CreateMerchantWebhookRequest.java b/src/main/java/com/adyen/model/management/CreateMerchantWebhookRequest.java index 1b74deed4..1e78bf263 100644 --- a/src/main/java/com/adyen/model/management/CreateMerchantWebhookRequest.java +++ b/src/main/java/com/adyen/model/management/CreateMerchantWebhookRequest.java @@ -2,32 +2,26 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.AdditionalSettings; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * CreateMerchantWebhookRequest - */ +/** CreateMerchantWebhookRequest */ @JsonPropertyOrder({ CreateMerchantWebhookRequest.JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE, CreateMerchantWebhookRequest.JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE, @@ -44,15 +38,17 @@ CreateMerchantWebhookRequest.JSON_PROPERTY_URL, CreateMerchantWebhookRequest.JSON_PROPERTY_USERNAME }) - public class CreateMerchantWebhookRequest { - public static final String JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE = "acceptsExpiredCertificate"; + public static final String JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE = + "acceptsExpiredCertificate"; private Boolean acceptsExpiredCertificate; - public static final String JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE = "acceptsSelfSignedCertificate"; + public static final String JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE = + "acceptsSelfSignedCertificate"; private Boolean acceptsSelfSignedCertificate; - public static final String JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE = "acceptsUntrustedRootCertificate"; + public static final String JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE = + "acceptsUntrustedRootCertificate"; private Boolean acceptsUntrustedRootCertificate; public static final String JSON_PROPERTY_ACTIVE = "active"; @@ -62,10 +58,9 @@ public class CreateMerchantWebhookRequest { private AdditionalSettings additionalSettings; /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** */ public enum CommunicationFormatEnum { - HTTP(String.valueOf("http")), JSON(String.valueOf("json")), @@ -77,7 +72,7 @@ public enum CommunicationFormatEnum { private String value; CommunicationFormatEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -98,7 +93,11 @@ public static CommunicationFormatEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("CommunicationFormatEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CommunicationFormatEnum.values())); + LOG.warning( + "CommunicationFormatEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(CommunicationFormatEnum.values())); return null; } } @@ -110,10 +109,11 @@ public static CommunicationFormatEnum fromValue(String value) { private String description; /** - * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible + * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not + * specified, the webhook will use `sslVersion`: **TLSv1.2**. */ public enum EncryptionProtocolEnum { - HTTP(String.valueOf("HTTP")), TLSV1_2(String.valueOf("TLSv1.2")), @@ -125,7 +125,7 @@ public enum EncryptionProtocolEnum { private String value; EncryptionProtocolEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -146,7 +146,11 @@ public static EncryptionProtocolEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("EncryptionProtocolEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(EncryptionProtocolEnum.values())); + LOG.warning( + "EncryptionProtocolEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(EncryptionProtocolEnum.values())); return null; } } @@ -155,10 +159,10 @@ public static EncryptionProtocolEnum fromValue(String value) { private EncryptionProtocolEnum encryptionProtocol; /** - * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** + * Default Value: **public**. */ public enum NetworkTypeEnum { - LOCAL(String.valueOf("local")), PUBLIC(String.valueOf("public")); @@ -168,7 +172,7 @@ public enum NetworkTypeEnum { private String value; NetworkTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -189,7 +193,11 @@ public static NetworkTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("NetworkTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(NetworkTypeEnum.values())); + LOG.warning( + "NetworkTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(NetworkTypeEnum.values())); return null; } } @@ -212,13 +220,13 @@ public static NetworkTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public CreateMerchantWebhookRequest() { - } + public CreateMerchantWebhookRequest() {} /** * Indicates if expired SSL certificates are accepted. Default value: **false**. * - * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default value: **false**. + * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default + * value: **false**. * @return the current {@code CreateMerchantWebhookRequest} instance, allowing for method chaining */ public CreateMerchantWebhookRequest acceptsExpiredCertificate(Boolean acceptsExpiredCertificate) { @@ -228,7 +236,9 @@ public CreateMerchantWebhookRequest acceptsExpiredCertificate(Boolean acceptsExp /** * Indicates if expired SSL certificates are accepted. Default value: **false**. - * @return acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default value: **false**. + * + * @return acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default + * value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -239,7 +249,8 @@ public Boolean getAcceptsExpiredCertificate() { /** * Indicates if expired SSL certificates are accepted. Default value: **false**. * - * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default value: **false**. + * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default + * value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,17 +261,21 @@ public void setAcceptsExpiredCertificate(Boolean acceptsExpiredCertificate) { /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. * - * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. Default value: **false**. + * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. + * Default value: **false**. * @return the current {@code CreateMerchantWebhookRequest} instance, allowing for method chaining */ - public CreateMerchantWebhookRequest acceptsSelfSignedCertificate(Boolean acceptsSelfSignedCertificate) { + public CreateMerchantWebhookRequest acceptsSelfSignedCertificate( + Boolean acceptsSelfSignedCertificate) { this.acceptsSelfSignedCertificate = acceptsSelfSignedCertificate; return this; } /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. - * @return acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. Default value: **false**. + * + * @return acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. + * Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -271,7 +286,8 @@ public Boolean getAcceptsSelfSignedCertificate() { /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. * - * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. Default value: **false**. + * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. + * Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -282,17 +298,21 @@ public void setAcceptsSelfSignedCertificate(Boolean acceptsSelfSignedCertificate /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. * - * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. Default value: **false**. + * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. + * Default value: **false**. * @return the current {@code CreateMerchantWebhookRequest} instance, allowing for method chaining */ - public CreateMerchantWebhookRequest acceptsUntrustedRootCertificate(Boolean acceptsUntrustedRootCertificate) { + public CreateMerchantWebhookRequest acceptsUntrustedRootCertificate( + Boolean acceptsUntrustedRootCertificate) { this.acceptsUntrustedRootCertificate = acceptsUntrustedRootCertificate; return this; } /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. - * @return acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. Default value: **false**. + * + * @return acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. + * Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -303,7 +323,8 @@ public Boolean getAcceptsUntrustedRootCertificate() { /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. * - * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. Default value: **false**. + * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. + * Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -312,9 +333,11 @@ public void setAcceptsUntrustedRootCertificate(Boolean acceptsUntrustedRootCerti } /** - * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. + * Indicates if the webhook configuration is active. The field must be **true** for us to send + * webhooks about events related an account. * - * @param active Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. + * @param active Indicates if the webhook configuration is active. The field must be **true** for + * us to send webhooks about events related an account. * @return the current {@code CreateMerchantWebhookRequest} instance, allowing for method chaining */ public CreateMerchantWebhookRequest active(Boolean active) { @@ -323,8 +346,11 @@ public CreateMerchantWebhookRequest active(Boolean active) { } /** - * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. - * @return active Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. + * Indicates if the webhook configuration is active. The field must be **true** for us to send + * webhooks about events related an account. + * + * @return active Indicates if the webhook configuration is active. The field must be **true** for + * us to send webhooks about events related an account. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -333,9 +359,11 @@ public Boolean getActive() { } /** - * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. + * Indicates if the webhook configuration is active. The field must be **true** for us to send + * webhooks about events related an account. * - * @param active Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. + * @param active Indicates if the webhook configuration is active. The field must be **true** for + * us to send webhooks about events related an account. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -346,7 +374,7 @@ public void setActive(Boolean active) { /** * additionalSettings * - * @param additionalSettings + * @param additionalSettings * @return the current {@code CreateMerchantWebhookRequest} instance, allowing for method chaining */ public CreateMerchantWebhookRequest additionalSettings(AdditionalSettings additionalSettings) { @@ -356,7 +384,8 @@ public CreateMerchantWebhookRequest additionalSettings(AdditionalSettings additi /** * Get additionalSettings - * @return additionalSettings + * + * @return additionalSettings */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -367,7 +396,7 @@ public AdditionalSettings getAdditionalSettings() { /** * additionalSettings * - * @param additionalSettings + * @param additionalSettings */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -376,19 +405,23 @@ public void setAdditionalSettings(AdditionalSettings additionalSettings) { } /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** * - * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * + * **soap** * **http** * **json** * @return the current {@code CreateMerchantWebhookRequest} instance, allowing for method chaining */ - public CreateMerchantWebhookRequest communicationFormat(CommunicationFormatEnum communicationFormat) { + public CreateMerchantWebhookRequest communicationFormat( + CommunicationFormatEnum communicationFormat) { this.communicationFormat = communicationFormat; return this; } /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** - * @return communicationFormat Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * + * @return communicationFormat Format or protocol for receiving webhooks. Possible values: * + * **soap** * **http** * **json** */ @JsonProperty(JSON_PROPERTY_COMMUNICATION_FORMAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -397,9 +430,10 @@ public CommunicationFormatEnum getCommunicationFormat() { } /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** * - * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * + * **soap** * **http** * **json** */ @JsonProperty(JSON_PROPERTY_COMMUNICATION_FORMAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -420,6 +454,7 @@ public CreateMerchantWebhookRequest description(String description) { /** * Your description for this webhook configuration. + * * @return description Your description for this webhook configuration. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -440,19 +475,31 @@ public void setDescription(String description) { } /** - * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible + * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not + * specified, the webhook will use `sslVersion`: **TLSv1.2**. * - * @param encryptionProtocol SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * @param encryptionProtocol SSL version to access the public webhook URL specified in the + * `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only + * allowed on Test environment. If not specified, the webhook will use `sslVersion`: + * **TLSv1.2**. * @return the current {@code CreateMerchantWebhookRequest} instance, allowing for method chaining */ - public CreateMerchantWebhookRequest encryptionProtocol(EncryptionProtocolEnum encryptionProtocol) { + public CreateMerchantWebhookRequest encryptionProtocol( + EncryptionProtocolEnum encryptionProtocol) { this.encryptionProtocol = encryptionProtocol; return this; } /** - * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. - * @return encryptionProtocol SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible + * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not + * specified, the webhook will use `sslVersion`: **TLSv1.2**. + * + * @return encryptionProtocol SSL version to access the public webhook URL specified in the + * `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only + * allowed on Test environment. If not specified, the webhook will use `sslVersion`: + * **TLSv1.2**. */ @JsonProperty(JSON_PROPERTY_ENCRYPTION_PROTOCOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -461,9 +508,14 @@ public EncryptionProtocolEnum getEncryptionProtocol() { } /** - * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible + * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not + * specified, the webhook will use `sslVersion`: **TLSv1.2**. * - * @param encryptionProtocol SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * @param encryptionProtocol SSL version to access the public webhook URL specified in the + * `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only + * allowed on Test environment. If not specified, the webhook will use `sslVersion`: + * **TLSv1.2**. */ @JsonProperty(JSON_PROPERTY_ENCRYPTION_PROTOCOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -472,9 +524,11 @@ public void setEncryptionProtocol(EncryptionProtocolEnum encryptionProtocol) { } /** - * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** + * Default Value: **public**. * - * @param networkType Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. + * @param networkType Network type for Terminal API notification webhooks. Possible values: * + * **public** * **local** Default Value: **public**. * @return the current {@code CreateMerchantWebhookRequest} instance, allowing for method chaining */ public CreateMerchantWebhookRequest networkType(NetworkTypeEnum networkType) { @@ -483,8 +537,11 @@ public CreateMerchantWebhookRequest networkType(NetworkTypeEnum networkType) { } /** - * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. - * @return networkType Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** + * Default Value: **public**. + * + * @return networkType Network type for Terminal API notification webhooks. Possible values: * + * **public** * **local** Default Value: **public**. */ @JsonProperty(JSON_PROPERTY_NETWORK_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -493,9 +550,11 @@ public NetworkTypeEnum getNetworkType() { } /** - * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** + * Default Value: **public**. * - * @param networkType Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. + * @param networkType Network type for Terminal API notification webhooks. Possible values: * + * **public** * **local** Default Value: **public**. */ @JsonProperty(JSON_PROPERTY_NETWORK_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -516,6 +575,7 @@ public CreateMerchantWebhookRequest password(String password) { /** * Password to access the webhook URL. + * * @return password Password to access the webhook URL. */ @JsonProperty(JSON_PROPERTY_PASSWORD) @@ -536,9 +596,11 @@ public void setPassword(String password) { } /** - * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only + * applies if `communicationFormat`: **soap**. * - * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. + * Default value: **false**. Only applies if `communicationFormat`: **soap**. * @return the current {@code CreateMerchantWebhookRequest} instance, allowing for method chaining */ public CreateMerchantWebhookRequest populateSoapActionHeader(Boolean populateSoapActionHeader) { @@ -547,8 +609,11 @@ public CreateMerchantWebhookRequest populateSoapActionHeader(Boolean populateSoa } /** - * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. - * @return populateSoapActionHeader Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only + * applies if `communicationFormat`: **soap**. + * + * @return populateSoapActionHeader Indicates if the SOAP action header needs to be populated. + * Default value: **false**. Only applies if `communicationFormat`: **soap**. */ @JsonProperty(JSON_PROPERTY_POPULATE_SOAP_ACTION_HEADER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -557,9 +622,11 @@ public Boolean getPopulateSoapActionHeader() { } /** - * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only + * applies if `communicationFormat`: **soap**. * - * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. + * Default value: **false**. Only applies if `communicationFormat`: **soap**. */ @JsonProperty(JSON_PROPERTY_POPULATE_SOAP_ACTION_HEADER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -568,9 +635,28 @@ public void setPopulateSoapActionHeader(Boolean populateSoapActionHeader) { } /** - * The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * The type of webhook that is being created. Possible values are: - **standard** - + * **account-settings-notification** - **banktransfer-notification** - + * **boletobancario-notification** - **directdebit-notification** - + * **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - + * **pending-notification** - **ideal-notification** - **ideal-pending-notification** - + * **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** + * Find out more about [standard + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and + * [other types of + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). * - * @param type The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * @param type The type of webhook that is being created. Possible values are: - **standard** - + * **account-settings-notification** - **banktransfer-notification** - + * **boletobancario-notification** - **directdebit-notification** - + * **ach-notification-of-change-notification** - + * **direct-debit-notice-of-change-notification** - **pending-notification** - + * **ideal-notification** - **ideal-pending-notification** - **report-notification** - + * **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about + * [standard + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) + * and [other types of + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). * @return the current {@code CreateMerchantWebhookRequest} instance, allowing for method chaining */ public CreateMerchantWebhookRequest type(String type) { @@ -579,8 +665,28 @@ public CreateMerchantWebhookRequest type(String type) { } /** - * The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). - * @return type The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * The type of webhook that is being created. Possible values are: - **standard** - + * **account-settings-notification** - **banktransfer-notification** - + * **boletobancario-notification** - **directdebit-notification** - + * **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - + * **pending-notification** - **ideal-notification** - **ideal-pending-notification** - + * **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** + * Find out more about [standard + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and + * [other types of + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * + * @return type The type of webhook that is being created. Possible values are: - **standard** - + * **account-settings-notification** - **banktransfer-notification** - + * **boletobancario-notification** - **directdebit-notification** - + * **ach-notification-of-change-notification** - + * **direct-debit-notice-of-change-notification** - **pending-notification** - + * **ideal-notification** - **ideal-pending-notification** - **report-notification** - + * **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about + * [standard + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) + * and [other types of + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -589,9 +695,28 @@ public String getType() { } /** - * The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * The type of webhook that is being created. Possible values are: - **standard** - + * **account-settings-notification** - **banktransfer-notification** - + * **boletobancario-notification** - **directdebit-notification** - + * **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - + * **pending-notification** - **ideal-notification** - **ideal-pending-notification** - + * **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** + * Find out more about [standard + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and + * [other types of + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). * - * @param type The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * @param type The type of webhook that is being created. Possible values are: - **standard** - + * **account-settings-notification** - **banktransfer-notification** - + * **boletobancario-notification** - **directdebit-notification** - + * **ach-notification-of-change-notification** - + * **direct-debit-notice-of-change-notification** - **pending-notification** - + * **ideal-notification** - **ideal-pending-notification** - **report-notification** - + * **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about + * [standard + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) + * and [other types of + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -600,9 +725,11 @@ public void setType(String type) { } /** - * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + * Public URL where webhooks will be sent, for example + * **https://www.domain.com/webhook-endpoint**. * - * @param url Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + * @param url Public URL where webhooks will be sent, for example + * **https://www.domain.com/webhook-endpoint**. * @return the current {@code CreateMerchantWebhookRequest} instance, allowing for method chaining */ public CreateMerchantWebhookRequest url(String url) { @@ -611,8 +738,11 @@ public CreateMerchantWebhookRequest url(String url) { } /** - * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. - * @return url Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + * Public URL where webhooks will be sent, for example + * **https://www.domain.com/webhook-endpoint**. + * + * @return url Public URL where webhooks will be sent, for example + * **https://www.domain.com/webhook-endpoint**. */ @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -621,9 +751,11 @@ public String getUrl() { } /** - * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + * Public URL where webhooks will be sent, for example + * **https://www.domain.com/webhook-endpoint**. * - * @param url Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + * @param url Public URL where webhooks will be sent, for example + * **https://www.domain.com/webhook-endpoint**. */ @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -644,6 +776,7 @@ public CreateMerchantWebhookRequest username(String username) { /** * Username to access the webhook URL. + * * @return username Username to access the webhook URL. */ @JsonProperty(JSON_PROPERTY_USERNAME) @@ -663,9 +796,7 @@ public void setUsername(String username) { this.username = username; } - /** - * Return true if this CreateMerchantWebhookRequest object is equal to o. - */ + /** Return true if this CreateMerchantWebhookRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -675,42 +806,73 @@ public boolean equals(Object o) { return false; } CreateMerchantWebhookRequest createMerchantWebhookRequest = (CreateMerchantWebhookRequest) o; - return Objects.equals(this.acceptsExpiredCertificate, createMerchantWebhookRequest.acceptsExpiredCertificate) && - Objects.equals(this.acceptsSelfSignedCertificate, createMerchantWebhookRequest.acceptsSelfSignedCertificate) && - Objects.equals(this.acceptsUntrustedRootCertificate, createMerchantWebhookRequest.acceptsUntrustedRootCertificate) && - Objects.equals(this.active, createMerchantWebhookRequest.active) && - Objects.equals(this.additionalSettings, createMerchantWebhookRequest.additionalSettings) && - Objects.equals(this.communicationFormat, createMerchantWebhookRequest.communicationFormat) && - Objects.equals(this.description, createMerchantWebhookRequest.description) && - Objects.equals(this.encryptionProtocol, createMerchantWebhookRequest.encryptionProtocol) && - Objects.equals(this.networkType, createMerchantWebhookRequest.networkType) && - Objects.equals(this.password, createMerchantWebhookRequest.password) && - Objects.equals(this.populateSoapActionHeader, createMerchantWebhookRequest.populateSoapActionHeader) && - Objects.equals(this.type, createMerchantWebhookRequest.type) && - Objects.equals(this.url, createMerchantWebhookRequest.url) && - Objects.equals(this.username, createMerchantWebhookRequest.username); + return Objects.equals( + this.acceptsExpiredCertificate, createMerchantWebhookRequest.acceptsExpiredCertificate) + && Objects.equals( + this.acceptsSelfSignedCertificate, + createMerchantWebhookRequest.acceptsSelfSignedCertificate) + && Objects.equals( + this.acceptsUntrustedRootCertificate, + createMerchantWebhookRequest.acceptsUntrustedRootCertificate) + && Objects.equals(this.active, createMerchantWebhookRequest.active) + && Objects.equals(this.additionalSettings, createMerchantWebhookRequest.additionalSettings) + && Objects.equals( + this.communicationFormat, createMerchantWebhookRequest.communicationFormat) + && Objects.equals(this.description, createMerchantWebhookRequest.description) + && Objects.equals(this.encryptionProtocol, createMerchantWebhookRequest.encryptionProtocol) + && Objects.equals(this.networkType, createMerchantWebhookRequest.networkType) + && Objects.equals(this.password, createMerchantWebhookRequest.password) + && Objects.equals( + this.populateSoapActionHeader, createMerchantWebhookRequest.populateSoapActionHeader) + && Objects.equals(this.type, createMerchantWebhookRequest.type) + && Objects.equals(this.url, createMerchantWebhookRequest.url) + && Objects.equals(this.username, createMerchantWebhookRequest.username); } @Override public int hashCode() { - return Objects.hash(acceptsExpiredCertificate, acceptsSelfSignedCertificate, acceptsUntrustedRootCertificate, active, additionalSettings, communicationFormat, description, encryptionProtocol, networkType, password, populateSoapActionHeader, type, url, username); + return Objects.hash( + acceptsExpiredCertificate, + acceptsSelfSignedCertificate, + acceptsUntrustedRootCertificate, + active, + additionalSettings, + communicationFormat, + description, + encryptionProtocol, + networkType, + password, + populateSoapActionHeader, + type, + url, + username); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateMerchantWebhookRequest {\n"); - sb.append(" acceptsExpiredCertificate: ").append(toIndentedString(acceptsExpiredCertificate)).append("\n"); - sb.append(" acceptsSelfSignedCertificate: ").append(toIndentedString(acceptsSelfSignedCertificate)).append("\n"); - sb.append(" acceptsUntrustedRootCertificate: ").append(toIndentedString(acceptsUntrustedRootCertificate)).append("\n"); + sb.append(" acceptsExpiredCertificate: ") + .append(toIndentedString(acceptsExpiredCertificate)) + .append("\n"); + sb.append(" acceptsSelfSignedCertificate: ") + .append(toIndentedString(acceptsSelfSignedCertificate)) + .append("\n"); + sb.append(" acceptsUntrustedRootCertificate: ") + .append(toIndentedString(acceptsUntrustedRootCertificate)) + .append("\n"); sb.append(" active: ").append(toIndentedString(active)).append("\n"); sb.append(" additionalSettings: ").append(toIndentedString(additionalSettings)).append("\n"); - sb.append(" communicationFormat: ").append(toIndentedString(communicationFormat)).append("\n"); + sb.append(" communicationFormat: ") + .append(toIndentedString(communicationFormat)) + .append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" encryptionProtocol: ").append(toIndentedString(encryptionProtocol)).append("\n"); sb.append(" networkType: ").append(toIndentedString(networkType)).append("\n"); sb.append(" password: ").append(toIndentedString(password)).append("\n"); - sb.append(" populateSoapActionHeader: ").append(toIndentedString(populateSoapActionHeader)).append("\n"); + sb.append(" populateSoapActionHeader: ") + .append(toIndentedString(populateSoapActionHeader)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" username: ").append(toIndentedString(username)).append("\n"); @@ -719,8 +881,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -729,21 +890,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CreateMerchantWebhookRequest given an JSON string * * @param jsonString JSON string * @return An instance of CreateMerchantWebhookRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to CreateMerchantWebhookRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CreateMerchantWebhookRequest */ - public static CreateMerchantWebhookRequest fromJson(String jsonString) throws JsonProcessingException { + public static CreateMerchantWebhookRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateMerchantWebhookRequest.class); } -/** - * Convert an instance of CreateMerchantWebhookRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CreateMerchantWebhookRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CreateUserResponse.java b/src/main/java/com/adyen/model/management/CreateUserResponse.java index 05e331cc6..95060b260 100644 --- a/src/main/java/com/adyen/model/management/CreateUserResponse.java +++ b/src/main/java/com/adyen/model/management/CreateUserResponse.java @@ -2,35 +2,24 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.Links; -import com.adyen.model.management.Name; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * CreateUserResponse - */ +/** CreateUserResponse */ @JsonPropertyOrder({ CreateUserResponse.JSON_PROPERTY_LINKS, CreateUserResponse.JSON_PROPERTY_ACCOUNT_GROUPS, @@ -43,7 +32,6 @@ CreateUserResponse.JSON_PROPERTY_TIME_ZONE_CODE, CreateUserResponse.JSON_PROPERTY_USERNAME }) - public class CreateUserResponse { public static final String JSON_PROPERTY_LINKS = "_links"; private Links links; @@ -75,13 +63,12 @@ public class CreateUserResponse { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public CreateUserResponse() { - } + public CreateUserResponse() {} /** * links * - * @param links + * @param links * @return the current {@code CreateUserResponse} instance, allowing for method chaining */ public CreateUserResponse links(Links links) { @@ -91,7 +78,8 @@ public CreateUserResponse links(Links links) { /** * Get links - * @return links + * + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,7 +90,7 @@ public Links getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,9 +99,12 @@ public void setLinks(Links links) { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) + * associated with this user. * - * @param accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * @param accountGroups The list of [account + * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with + * this user. * @return the current {@code CreateUserResponse} instance, allowing for method chaining */ public CreateUserResponse accountGroups(List accountGroups) { @@ -130,8 +121,12 @@ public CreateUserResponse addAccountGroupsItem(String accountGroupsItem) { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. - * @return accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) + * associated with this user. + * + * @return accountGroups The list of [account + * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with + * this user. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,9 +135,12 @@ public List getAccountGroups() { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) + * associated with this user. * - * @param accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * @param accountGroups The list of [account + * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with + * this user. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,6 +161,7 @@ public CreateUserResponse active(Boolean active) { /** * Indicates whether this user is active. + * * @return active Indicates whether this user is active. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @@ -203,6 +202,7 @@ public CreateUserResponse addAppsItem(String appsItem) { /** * Set of apps available to this user + * * @return apps Set of apps available to this user */ @JsonProperty(JSON_PROPERTY_APPS) @@ -235,6 +235,7 @@ public CreateUserResponse email(String email) { /** * The email address of the user. + * * @return email The email address of the user. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -267,6 +268,7 @@ public CreateUserResponse id(String id) { /** * The unique identifier of the user. + * * @return id The unique identifier of the user. */ @JsonProperty(JSON_PROPERTY_ID) @@ -289,7 +291,7 @@ public void setId(String id) { /** * name * - * @param name + * @param name * @return the current {@code CreateUserResponse} instance, allowing for method chaining */ public CreateUserResponse name(Name name) { @@ -299,7 +301,8 @@ public CreateUserResponse name(Name name) { /** * Get name - * @return name + * + * @return name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -310,7 +313,7 @@ public Name getName() { /** * name * - * @param name + * @param name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -339,6 +342,7 @@ public CreateUserResponse addRolesItem(String rolesItem) { /** * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. + * * @return roles The list of [roles](https://docs.adyen.com/account/user-roles) for this user. */ @JsonProperty(JSON_PROPERTY_ROLES) @@ -359,9 +363,12 @@ public void setRoles(List roles) { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the + * time zone of the user. For example, **Europe/Amsterdam**. * - * @param timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * @param timeZoneCode The [tz database + * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the + * user. For example, **Europe/Amsterdam**. * @return the current {@code CreateUserResponse} instance, allowing for method chaining */ public CreateUserResponse timeZoneCode(String timeZoneCode) { @@ -370,8 +377,12 @@ public CreateUserResponse timeZoneCode(String timeZoneCode) { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. - * @return timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the + * time zone of the user. For example, **Europe/Amsterdam**. + * + * @return timeZoneCode The [tz database + * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the + * user. For example, **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -380,9 +391,12 @@ public String getTimeZoneCode() { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the + * time zone of the user. For example, **Europe/Amsterdam**. * - * @param timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * @param timeZoneCode The [tz database + * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the + * user. For example, **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -403,6 +417,7 @@ public CreateUserResponse username(String username) { /** * The username for this user. + * * @return username The username for this user. */ @JsonProperty(JSON_PROPERTY_USERNAME) @@ -422,9 +437,7 @@ public void setUsername(String username) { this.username = username; } - /** - * Return true if this CreateUserResponse object is equal to o. - */ + /** Return true if this CreateUserResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -434,21 +447,22 @@ public boolean equals(Object o) { return false; } CreateUserResponse createUserResponse = (CreateUserResponse) o; - return Objects.equals(this.links, createUserResponse.links) && - Objects.equals(this.accountGroups, createUserResponse.accountGroups) && - Objects.equals(this.active, createUserResponse.active) && - Objects.equals(this.apps, createUserResponse.apps) && - Objects.equals(this.email, createUserResponse.email) && - Objects.equals(this.id, createUserResponse.id) && - Objects.equals(this.name, createUserResponse.name) && - Objects.equals(this.roles, createUserResponse.roles) && - Objects.equals(this.timeZoneCode, createUserResponse.timeZoneCode) && - Objects.equals(this.username, createUserResponse.username); + return Objects.equals(this.links, createUserResponse.links) + && Objects.equals(this.accountGroups, createUserResponse.accountGroups) + && Objects.equals(this.active, createUserResponse.active) + && Objects.equals(this.apps, createUserResponse.apps) + && Objects.equals(this.email, createUserResponse.email) + && Objects.equals(this.id, createUserResponse.id) + && Objects.equals(this.name, createUserResponse.name) + && Objects.equals(this.roles, createUserResponse.roles) + && Objects.equals(this.timeZoneCode, createUserResponse.timeZoneCode) + && Objects.equals(this.username, createUserResponse.username); } @Override public int hashCode() { - return Objects.hash(links, accountGroups, active, apps, email, id, name, roles, timeZoneCode, username); + return Objects.hash( + links, accountGroups, active, apps, email, id, name, roles, timeZoneCode, username); } @Override @@ -470,8 +484,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -480,21 +493,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CreateUserResponse given an JSON string * * @param jsonString JSON string * @return An instance of CreateUserResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to CreateUserResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CreateUserResponse */ public static CreateUserResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateUserResponse.class); } -/** - * Convert an instance of CreateUserResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CreateUserResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Currency.java b/src/main/java/com/adyen/model/management/Currency.java index b0c8b581d..803201ed1 100644 --- a/src/main/java/com/adyen/model/management/Currency.java +++ b/src/main/java/com/adyen/model/management/Currency.java @@ -2,38 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Currency - */ +/** Currency */ @JsonPropertyOrder({ Currency.JSON_PROPERTY_AMOUNT, Currency.JSON_PROPERTY_CURRENCY_CODE, Currency.JSON_PROPERTY_MAX_AMOUNT, Currency.JSON_PROPERTY_PERCENTAGE }) - public class Currency { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Integer amount; @@ -47,13 +37,14 @@ public class Currency { public static final String JSON_PROPERTY_PERCENTAGE = "percentage"; private Double percentage; - public Currency() { - } + public Currency() {} /** - * Surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * Surcharge amount per transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * - * @param amount Surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @param amount Surcharge amount per transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code Currency} instance, allowing for method chaining */ public Currency amount(Integer amount) { @@ -62,8 +53,11 @@ public Currency amount(Integer amount) { } /** - * Surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). - * @return amount Surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * Surcharge amount per transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). + * + * @return amount Surcharge amount per transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -72,9 +66,11 @@ public Integer getAmount() { } /** - * Surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * Surcharge amount per transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * - * @param amount Surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @param amount Surcharge amount per transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,9 +79,11 @@ public void setAmount(Integer amount) { } /** - * Three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, **AUD**. + * Three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). For example, **AUD**. * - * @param currencyCode Three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, **AUD**. + * @param currencyCode Three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). For example, **AUD**. * @return the current {@code Currency} instance, allowing for method chaining */ public Currency currencyCode(String currencyCode) { @@ -94,8 +92,11 @@ public Currency currencyCode(String currencyCode) { } /** - * Three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, **AUD**. - * @return currencyCode Three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, **AUD**. + * Three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). For example, **AUD**. + * + * @return currencyCode Three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). For example, **AUD**. */ @JsonProperty(JSON_PROPERTY_CURRENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,9 +105,11 @@ public String getCurrencyCode() { } /** - * Three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, **AUD**. + * Three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). For example, **AUD**. * - * @param currencyCode Three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, **AUD**. + * @param currencyCode Three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). For example, **AUD**. */ @JsonProperty(JSON_PROPERTY_CURRENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,9 +118,11 @@ public void setCurrencyCode(String currencyCode) { } /** - * The maximum surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The maximum surcharge amount per transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * - * @param maxAmount The maximum surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @param maxAmount The maximum surcharge amount per transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code Currency} instance, allowing for method chaining */ public Currency maxAmount(Integer maxAmount) { @@ -126,8 +131,11 @@ public Currency maxAmount(Integer maxAmount) { } /** - * The maximum surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). - * @return maxAmount The maximum surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The maximum surcharge amount per transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). + * + * @return maxAmount The maximum surcharge amount per transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_MAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,9 +144,11 @@ public Integer getMaxAmount() { } /** - * The maximum surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The maximum surcharge amount per transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * - * @param maxAmount The maximum surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @param maxAmount The maximum surcharge amount per transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_MAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,9 +157,11 @@ public void setMaxAmount(Integer maxAmount) { } /** - * Surcharge percentage per transaction. The maximum number of decimal places is two. For example, **1%** or **2.27%**. + * Surcharge percentage per transaction. The maximum number of decimal places is two. For example, + * **1%** or **2.27%**. * - * @param percentage Surcharge percentage per transaction. The maximum number of decimal places is two. For example, **1%** or **2.27%**. + * @param percentage Surcharge percentage per transaction. The maximum number of decimal places is + * two. For example, **1%** or **2.27%**. * @return the current {@code Currency} instance, allowing for method chaining */ public Currency percentage(Double percentage) { @@ -158,8 +170,11 @@ public Currency percentage(Double percentage) { } /** - * Surcharge percentage per transaction. The maximum number of decimal places is two. For example, **1%** or **2.27%**. - * @return percentage Surcharge percentage per transaction. The maximum number of decimal places is two. For example, **1%** or **2.27%**. + * Surcharge percentage per transaction. The maximum number of decimal places is two. For example, + * **1%** or **2.27%**. + * + * @return percentage Surcharge percentage per transaction. The maximum number of decimal places + * is two. For example, **1%** or **2.27%**. */ @JsonProperty(JSON_PROPERTY_PERCENTAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,9 +183,11 @@ public Double getPercentage() { } /** - * Surcharge percentage per transaction. The maximum number of decimal places is two. For example, **1%** or **2.27%**. + * Surcharge percentage per transaction. The maximum number of decimal places is two. For example, + * **1%** or **2.27%**. * - * @param percentage Surcharge percentage per transaction. The maximum number of decimal places is two. For example, **1%** or **2.27%**. + * @param percentage Surcharge percentage per transaction. The maximum number of decimal places is + * two. For example, **1%** or **2.27%**. */ @JsonProperty(JSON_PROPERTY_PERCENTAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,9 +195,7 @@ public void setPercentage(Double percentage) { this.percentage = percentage; } - /** - * Return true if this Currency object is equal to o. - */ + /** Return true if this Currency object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -190,10 +205,10 @@ public boolean equals(Object o) { return false; } Currency currency = (Currency) o; - return Objects.equals(this.amount, currency.amount) && - Objects.equals(this.currencyCode, currency.currencyCode) && - Objects.equals(this.maxAmount, currency.maxAmount) && - Objects.equals(this.percentage, currency.percentage); + return Objects.equals(this.amount, currency.amount) + && Objects.equals(this.currencyCode, currency.currencyCode) + && Objects.equals(this.maxAmount, currency.maxAmount) + && Objects.equals(this.percentage, currency.percentage); } @Override @@ -214,8 +229,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,7 +238,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Currency given an JSON string * * @param jsonString JSON string @@ -234,11 +248,12 @@ private String toIndentedString(Object o) { public static Currency fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Currency.class); } -/** - * Convert an instance of Currency to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Currency to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/CustomNotification.java b/src/main/java/com/adyen/model/management/CustomNotification.java index 58a2bcfc9..706f3a800 100644 --- a/src/main/java/com/adyen/model/management/CustomNotification.java +++ b/src/main/java/com/adyen/model/management/CustomNotification.java @@ -2,33 +2,23 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.time.OffsetDateTime; +import java.util.*; - -/** - * CustomNotification - */ +/** CustomNotification */ @JsonPropertyOrder({ CustomNotification.JSON_PROPERTY_AMOUNT, CustomNotification.JSON_PROPERTY_EVENT_CODE, @@ -38,7 +28,6 @@ CustomNotification.JSON_PROPERTY_REASON, CustomNotification.JSON_PROPERTY_SUCCESS }) - public class CustomNotification { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -61,13 +50,12 @@ public class CustomNotification { public static final String JSON_PROPERTY_SUCCESS = "success"; private Boolean success; - public CustomNotification() { - } + public CustomNotification() {} /** * amount * - * @param amount + * @param amount * @return the current {@code CustomNotification} instance, allowing for method chaining */ public CustomNotification amount(Amount amount) { @@ -77,7 +65,8 @@ public CustomNotification amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -88,7 +77,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,9 +86,17 @@ public void setAmount(Amount amount) { } /** - * The event that caused the notification to be sent.Currently supported values: * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **REPORT_AVAILABLE** * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** + * The event that caused the notification to be sent.Currently supported values: * + * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **REPORT_AVAILABLE** * + * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * + * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * + * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * - * @param eventCode The event that caused the notification to be sent.Currently supported values: * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **REPORT_AVAILABLE** * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** + * @param eventCode The event that caused the notification to be sent.Currently supported values: + * * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **REPORT_AVAILABLE** * + * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * + * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * + * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * @return the current {@code CustomNotification} instance, allowing for method chaining */ public CustomNotification eventCode(String eventCode) { @@ -108,8 +105,17 @@ public CustomNotification eventCode(String eventCode) { } /** - * The event that caused the notification to be sent.Currently supported values: * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **REPORT_AVAILABLE** * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** - * @return eventCode The event that caused the notification to be sent.Currently supported values: * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **REPORT_AVAILABLE** * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** + * The event that caused the notification to be sent.Currently supported values: * + * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **REPORT_AVAILABLE** * + * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * + * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * + * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** + * + * @return eventCode The event that caused the notification to be sent.Currently supported values: + * * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **REPORT_AVAILABLE** * + * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * + * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * + * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** */ @JsonProperty(JSON_PROPERTY_EVENT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,9 +124,17 @@ public String getEventCode() { } /** - * The event that caused the notification to be sent.Currently supported values: * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **REPORT_AVAILABLE** * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** + * The event that caused the notification to be sent.Currently supported values: * + * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **REPORT_AVAILABLE** * + * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * + * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * + * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * - * @param eventCode The event that caused the notification to be sent.Currently supported values: * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **REPORT_AVAILABLE** * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** + * @param eventCode The event that caused the notification to be sent.Currently supported values: + * * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **REPORT_AVAILABLE** * + * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * + * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * + * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** */ @JsonProperty(JSON_PROPERTY_EVENT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,9 +143,11 @@ public void setEventCode(String eventCode) { } /** - * The time of the event. Format: [ISO 8601](http://www.w3.org/TR/NOTE-datetime), YYYY-MM-DDThh:mm:ssTZD. + * The time of the event. Format: [ISO 8601](http://www.w3.org/TR/NOTE-datetime), + * YYYY-MM-DDThh:mm:ssTZD. * - * @param eventDate The time of the event. Format: [ISO 8601](http://www.w3.org/TR/NOTE-datetime), YYYY-MM-DDThh:mm:ssTZD. + * @param eventDate The time of the event. Format: [ISO 8601](http://www.w3.org/TR/NOTE-datetime), + * YYYY-MM-DDThh:mm:ssTZD. * @return the current {@code CustomNotification} instance, allowing for method chaining */ public CustomNotification eventDate(OffsetDateTime eventDate) { @@ -140,8 +156,11 @@ public CustomNotification eventDate(OffsetDateTime eventDate) { } /** - * The time of the event. Format: [ISO 8601](http://www.w3.org/TR/NOTE-datetime), YYYY-MM-DDThh:mm:ssTZD. - * @return eventDate The time of the event. Format: [ISO 8601](http://www.w3.org/TR/NOTE-datetime), YYYY-MM-DDThh:mm:ssTZD. + * The time of the event. Format: [ISO 8601](http://www.w3.org/TR/NOTE-datetime), + * YYYY-MM-DDThh:mm:ssTZD. + * + * @return eventDate The time of the event. Format: [ISO + * 8601](http://www.w3.org/TR/NOTE-datetime), YYYY-MM-DDThh:mm:ssTZD. */ @JsonProperty(JSON_PROPERTY_EVENT_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,9 +169,11 @@ public OffsetDateTime getEventDate() { } /** - * The time of the event. Format: [ISO 8601](http://www.w3.org/TR/NOTE-datetime), YYYY-MM-DDThh:mm:ssTZD. + * The time of the event. Format: [ISO 8601](http://www.w3.org/TR/NOTE-datetime), + * YYYY-MM-DDThh:mm:ssTZD. * - * @param eventDate The time of the event. Format: [ISO 8601](http://www.w3.org/TR/NOTE-datetime), YYYY-MM-DDThh:mm:ssTZD. + * @param eventDate The time of the event. Format: [ISO 8601](http://www.w3.org/TR/NOTE-datetime), + * YYYY-MM-DDThh:mm:ssTZD. */ @JsonProperty(JSON_PROPERTY_EVENT_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,6 +194,7 @@ public CustomNotification merchantReference(String merchantReference) { /** * Your reference for the custom test notification. + * * @return merchantReference Your reference for the custom test notification. */ @JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCE) @@ -193,9 +215,14 @@ public void setMerchantReference(String merchantReference) { } /** - * The payment method for the payment that the notification is about. Possible values: * **amex** * **visa** * **mc** * **maestro** * **bcmc** * **paypal** * **sms** * **bankTransfer_NL** * **bankTransfer_DE** * **bankTransfer_BE** * **ideal** * **elv** * **sepadirectdebit** + * The payment method for the payment that the notification is about. Possible values: * **amex** + * * **visa** * **mc** * **maestro** * **bcmc** * **paypal** * **sms** * **bankTransfer_NL** * + * **bankTransfer_DE** * **bankTransfer_BE** * **ideal** * **elv** * **sepadirectdebit** * - * @param paymentMethod The payment method for the payment that the notification is about. Possible values: * **amex** * **visa** * **mc** * **maestro** * **bcmc** * **paypal** * **sms** * **bankTransfer_NL** * **bankTransfer_DE** * **bankTransfer_BE** * **ideal** * **elv** * **sepadirectdebit** + * @param paymentMethod The payment method for the payment that the notification is about. + * Possible values: * **amex** * **visa** * **mc** * **maestro** * **bcmc** * **paypal** * + * **sms** * **bankTransfer_NL** * **bankTransfer_DE** * **bankTransfer_BE** * **ideal** * + * **elv** * **sepadirectdebit** * @return the current {@code CustomNotification} instance, allowing for method chaining */ public CustomNotification paymentMethod(String paymentMethod) { @@ -204,8 +231,14 @@ public CustomNotification paymentMethod(String paymentMethod) { } /** - * The payment method for the payment that the notification is about. Possible values: * **amex** * **visa** * **mc** * **maestro** * **bcmc** * **paypal** * **sms** * **bankTransfer_NL** * **bankTransfer_DE** * **bankTransfer_BE** * **ideal** * **elv** * **sepadirectdebit** - * @return paymentMethod The payment method for the payment that the notification is about. Possible values: * **amex** * **visa** * **mc** * **maestro** * **bcmc** * **paypal** * **sms** * **bankTransfer_NL** * **bankTransfer_DE** * **bankTransfer_BE** * **ideal** * **elv** * **sepadirectdebit** + * The payment method for the payment that the notification is about. Possible values: * **amex** + * * **visa** * **mc** * **maestro** * **bcmc** * **paypal** * **sms** * **bankTransfer_NL** * + * **bankTransfer_DE** * **bankTransfer_BE** * **ideal** * **elv** * **sepadirectdebit** + * + * @return paymentMethod The payment method for the payment that the notification is about. + * Possible values: * **amex** * **visa** * **mc** * **maestro** * **bcmc** * **paypal** * + * **sms** * **bankTransfer_NL** * **bankTransfer_DE** * **bankTransfer_BE** * **ideal** * + * **elv** * **sepadirectdebit** */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,9 +247,14 @@ public String getPaymentMethod() { } /** - * The payment method for the payment that the notification is about. Possible values: * **amex** * **visa** * **mc** * **maestro** * **bcmc** * **paypal** * **sms** * **bankTransfer_NL** * **bankTransfer_DE** * **bankTransfer_BE** * **ideal** * **elv** * **sepadirectdebit** + * The payment method for the payment that the notification is about. Possible values: * **amex** + * * **visa** * **mc** * **maestro** * **bcmc** * **paypal** * **sms** * **bankTransfer_NL** * + * **bankTransfer_DE** * **bankTransfer_BE** * **ideal** * **elv** * **sepadirectdebit** * - * @param paymentMethod The payment method for the payment that the notification is about. Possible values: * **amex** * **visa** * **mc** * **maestro** * **bcmc** * **paypal** * **sms** * **bankTransfer_NL** * **bankTransfer_DE** * **bankTransfer_BE** * **ideal** * **elv** * **sepadirectdebit** + * @param paymentMethod The payment method for the payment that the notification is about. + * Possible values: * **amex** * **visa** * **mc** * **maestro** * **bcmc** * **paypal** * + * **sms** * **bankTransfer_NL** * **bankTransfer_DE** * **bankTransfer_BE** * **ideal** * + * **elv** * **sepadirectdebit** */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,6 +275,7 @@ public CustomNotification reason(String reason) { /** * A description of what caused the notification. + * * @return reason A description of what caused the notification. */ @JsonProperty(JSON_PROPERTY_REASON) @@ -257,9 +296,10 @@ public void setReason(String reason) { } /** - * The outcome of the event which the notification is about. Set to either **true** or **false**. + * The outcome of the event which the notification is about. Set to either **true** or **false**. * - * @param success The outcome of the event which the notification is about. Set to either **true** or **false**. + * @param success The outcome of the event which the notification is about. Set to either **true** + * or **false**. * @return the current {@code CustomNotification} instance, allowing for method chaining */ public CustomNotification success(Boolean success) { @@ -268,8 +308,10 @@ public CustomNotification success(Boolean success) { } /** - * The outcome of the event which the notification is about. Set to either **true** or **false**. - * @return success The outcome of the event which the notification is about. Set to either **true** or **false**. + * The outcome of the event which the notification is about. Set to either **true** or **false**. + * + * @return success The outcome of the event which the notification is about. Set to either + * **true** or **false**. */ @JsonProperty(JSON_PROPERTY_SUCCESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -278,9 +320,10 @@ public Boolean getSuccess() { } /** - * The outcome of the event which the notification is about. Set to either **true** or **false**. + * The outcome of the event which the notification is about. Set to either **true** or **false**. * - * @param success The outcome of the event which the notification is about. Set to either **true** or **false**. + * @param success The outcome of the event which the notification is about. Set to either **true** + * or **false**. */ @JsonProperty(JSON_PROPERTY_SUCCESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -288,9 +331,7 @@ public void setSuccess(Boolean success) { this.success = success; } - /** - * Return true if this CustomNotification object is equal to o. - */ + /** Return true if this CustomNotification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -300,18 +341,19 @@ public boolean equals(Object o) { return false; } CustomNotification customNotification = (CustomNotification) o; - return Objects.equals(this.amount, customNotification.amount) && - Objects.equals(this.eventCode, customNotification.eventCode) && - Objects.equals(this.eventDate, customNotification.eventDate) && - Objects.equals(this.merchantReference, customNotification.merchantReference) && - Objects.equals(this.paymentMethod, customNotification.paymentMethod) && - Objects.equals(this.reason, customNotification.reason) && - Objects.equals(this.success, customNotification.success); + return Objects.equals(this.amount, customNotification.amount) + && Objects.equals(this.eventCode, customNotification.eventCode) + && Objects.equals(this.eventDate, customNotification.eventDate) + && Objects.equals(this.merchantReference, customNotification.merchantReference) + && Objects.equals(this.paymentMethod, customNotification.paymentMethod) + && Objects.equals(this.reason, customNotification.reason) + && Objects.equals(this.success, customNotification.success); } @Override public int hashCode() { - return Objects.hash(amount, eventCode, eventDate, merchantReference, paymentMethod, reason, success); + return Objects.hash( + amount, eventCode, eventDate, merchantReference, paymentMethod, reason, success); } @Override @@ -330,8 +372,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -340,21 +381,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CustomNotification given an JSON string * * @param jsonString JSON string * @return An instance of CustomNotification - * @throws JsonProcessingException if the JSON string is invalid with respect to CustomNotification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CustomNotification */ public static CustomNotification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CustomNotification.class); } -/** - * Convert an instance of CustomNotification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CustomNotification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/DataCenter.java b/src/main/java/com/adyen/model/management/DataCenter.java index d8e466e0c..49d454d91 100644 --- a/src/main/java/com/adyen/model/management/DataCenter.java +++ b/src/main/java/com/adyen/model/management/DataCenter.java @@ -2,36 +2,23 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * DataCenter - */ -@JsonPropertyOrder({ - DataCenter.JSON_PROPERTY_LIVE_PREFIX, - DataCenter.JSON_PROPERTY_NAME -}) - +/** DataCenter */ +@JsonPropertyOrder({DataCenter.JSON_PROPERTY_LIVE_PREFIX, DataCenter.JSON_PROPERTY_NAME}) public class DataCenter { public static final String JSON_PROPERTY_LIVE_PREFIX = "livePrefix"; private String livePrefix; @@ -39,13 +26,18 @@ public class DataCenter { public static final String JSON_PROPERTY_NAME = "name"; private String name; - public DataCenter() { - } + public DataCenter() {} /** - * The unique [live URL prefix](https://docs.adyen.com/development-resources/live-endpoints#live-url-prefix) for your live endpoint. Each data center has its own live URL prefix. This field is empty for requests made in the test environment. + * The unique [live URL + * prefix](https://docs.adyen.com/development-resources/live-endpoints#live-url-prefix) for your + * live endpoint. Each data center has its own live URL prefix. This field is empty for requests + * made in the test environment. * - * @param livePrefix The unique [live URL prefix](https://docs.adyen.com/development-resources/live-endpoints#live-url-prefix) for your live endpoint. Each data center has its own live URL prefix. This field is empty for requests made in the test environment. + * @param livePrefix The unique [live URL + * prefix](https://docs.adyen.com/development-resources/live-endpoints#live-url-prefix) for + * your live endpoint. Each data center has its own live URL prefix. This field is empty for + * requests made in the test environment. * @return the current {@code DataCenter} instance, allowing for method chaining */ public DataCenter livePrefix(String livePrefix) { @@ -54,8 +46,15 @@ public DataCenter livePrefix(String livePrefix) { } /** - * The unique [live URL prefix](https://docs.adyen.com/development-resources/live-endpoints#live-url-prefix) for your live endpoint. Each data center has its own live URL prefix. This field is empty for requests made in the test environment. - * @return livePrefix The unique [live URL prefix](https://docs.adyen.com/development-resources/live-endpoints#live-url-prefix) for your live endpoint. Each data center has its own live URL prefix. This field is empty for requests made in the test environment. + * The unique [live URL + * prefix](https://docs.adyen.com/development-resources/live-endpoints#live-url-prefix) for your + * live endpoint. Each data center has its own live URL prefix. This field is empty for requests + * made in the test environment. + * + * @return livePrefix The unique [live URL + * prefix](https://docs.adyen.com/development-resources/live-endpoints#live-url-prefix) for + * your live endpoint. Each data center has its own live URL prefix. This field is empty for + * requests made in the test environment. */ @JsonProperty(JSON_PROPERTY_LIVE_PREFIX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +63,15 @@ public String getLivePrefix() { } /** - * The unique [live URL prefix](https://docs.adyen.com/development-resources/live-endpoints#live-url-prefix) for your live endpoint. Each data center has its own live URL prefix. This field is empty for requests made in the test environment. + * The unique [live URL + * prefix](https://docs.adyen.com/development-resources/live-endpoints#live-url-prefix) for your + * live endpoint. Each data center has its own live URL prefix. This field is empty for requests + * made in the test environment. * - * @param livePrefix The unique [live URL prefix](https://docs.adyen.com/development-resources/live-endpoints#live-url-prefix) for your live endpoint. Each data center has its own live URL prefix. This field is empty for requests made in the test environment. + * @param livePrefix The unique [live URL + * prefix](https://docs.adyen.com/development-resources/live-endpoints#live-url-prefix) for + * your live endpoint. Each data center has its own live URL prefix. This field is empty for + * requests made in the test environment. */ @JsonProperty(JSON_PROPERTY_LIVE_PREFIX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,9 +80,13 @@ public void setLivePrefix(String livePrefix) { } /** - * The name assigned to a data center, for example **EU** for the European data center. Possible values are: * **default**: the European data center. This value is always returned in the test environment. * **AU** * **EU** * **US** + * The name assigned to a data center, for example **EU** for the European data center. Possible + * values are: * **default**: the European data center. This value is always returned in the test + * environment. * **AU** * **EU** * **US** * - * @param name The name assigned to a data center, for example **EU** for the European data center. Possible values are: * **default**: the European data center. This value is always returned in the test environment. * **AU** * **EU** * **US** + * @param name The name assigned to a data center, for example **EU** for the European data + * center. Possible values are: * **default**: the European data center. This value is always + * returned in the test environment. * **AU** * **EU** * **US** * @return the current {@code DataCenter} instance, allowing for method chaining */ public DataCenter name(String name) { @@ -86,8 +95,13 @@ public DataCenter name(String name) { } /** - * The name assigned to a data center, for example **EU** for the European data center. Possible values are: * **default**: the European data center. This value is always returned in the test environment. * **AU** * **EU** * **US** - * @return name The name assigned to a data center, for example **EU** for the European data center. Possible values are: * **default**: the European data center. This value is always returned in the test environment. * **AU** * **EU** * **US** + * The name assigned to a data center, for example **EU** for the European data center. Possible + * values are: * **default**: the European data center. This value is always returned in the test + * environment. * **AU** * **EU** * **US** + * + * @return name The name assigned to a data center, for example **EU** for the European data + * center. Possible values are: * **default**: the European data center. This value is always + * returned in the test environment. * **AU** * **EU** * **US** */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +110,13 @@ public String getName() { } /** - * The name assigned to a data center, for example **EU** for the European data center. Possible values are: * **default**: the European data center. This value is always returned in the test environment. * **AU** * **EU** * **US** + * The name assigned to a data center, for example **EU** for the European data center. Possible + * values are: * **default**: the European data center. This value is always returned in the test + * environment. * **AU** * **EU** * **US** * - * @param name The name assigned to a data center, for example **EU** for the European data center. Possible values are: * **default**: the European data center. This value is always returned in the test environment. * **AU** * **EU** * **US** + * @param name The name assigned to a data center, for example **EU** for the European data + * center. Possible values are: * **default**: the European data center. This value is always + * returned in the test environment. * **AU** * **EU** * **US** */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +124,7 @@ public void setName(String name) { this.name = name; } - /** - * Return true if this DataCenter object is equal to o. - */ + /** Return true if this DataCenter object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +134,8 @@ public boolean equals(Object o) { return false; } DataCenter dataCenter = (DataCenter) o; - return Objects.equals(this.livePrefix, dataCenter.livePrefix) && - Objects.equals(this.name, dataCenter.name); + return Objects.equals(this.livePrefix, dataCenter.livePrefix) + && Objects.equals(this.name, dataCenter.name); } @Override @@ -138,8 +154,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +163,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DataCenter given an JSON string * * @param jsonString JSON string @@ -158,11 +173,12 @@ private String toIndentedString(Object o) { public static DataCenter fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DataCenter.class); } -/** - * Convert an instance of DataCenter to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DataCenter to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/DinersInfo.java b/src/main/java/com/adyen/model/management/DinersInfo.java index 402aea149..880ba0682 100644 --- a/src/main/java/com/adyen/model/management/DinersInfo.java +++ b/src/main/java/com/adyen/model/management/DinersInfo.java @@ -2,39 +2,32 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.TransactionDescriptionInfo; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * DinersInfo - */ +/** DinersInfo */ @JsonPropertyOrder({ DinersInfo.JSON_PROPERTY_MID_NUMBER, DinersInfo.JSON_PROPERTY_REUSE_MID_NUMBER, DinersInfo.JSON_PROPERTY_SERVICE_LEVEL, DinersInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION }) - public class DinersInfo { public static final String JSON_PROPERTY_MID_NUMBER = "midNumber"; private String midNumber; @@ -43,10 +36,12 @@ public class DinersInfo { private Boolean reuseMidNumber; /** - * Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. + * Specifies the service level (settlement type) of this payment method. Required for merchants + * operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * + * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or + * your sub-merchant directly. */ public enum ServiceLevelEnum { - NOCONTRACT(String.valueOf("noContract")), GATEWAYCONTRACT(String.valueOf("gatewayContract")); @@ -56,7 +51,7 @@ public enum ServiceLevelEnum { private String value; ServiceLevelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -77,7 +72,11 @@ public static ServiceLevelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ServiceLevelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ServiceLevelEnum.values())); + LOG.warning( + "ServiceLevelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ServiceLevelEnum.values())); return null; } } @@ -88,13 +87,14 @@ public static ServiceLevelEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANSACTION_DESCRIPTION = "transactionDescription"; private TransactionDescriptionInfo transactionDescription; - public DinersInfo() { - } + public DinersInfo() {} /** - * MID (Merchant ID) number. Required for merchants operating in Japan. Format: 14 numeric characters. + * MID (Merchant ID) number. Required for merchants operating in Japan. Format: 14 numeric + * characters. * - * @param midNumber MID (Merchant ID) number. Required for merchants operating in Japan. Format: 14 numeric characters. + * @param midNumber MID (Merchant ID) number. Required for merchants operating in Japan. Format: + * 14 numeric characters. * @return the current {@code DinersInfo} instance, allowing for method chaining */ public DinersInfo midNumber(String midNumber) { @@ -103,8 +103,11 @@ public DinersInfo midNumber(String midNumber) { } /** - * MID (Merchant ID) number. Required for merchants operating in Japan. Format: 14 numeric characters. - * @return midNumber MID (Merchant ID) number. Required for merchants operating in Japan. Format: 14 numeric characters. + * MID (Merchant ID) number. Required for merchants operating in Japan. Format: 14 numeric + * characters. + * + * @return midNumber MID (Merchant ID) number. Required for merchants operating in Japan. Format: + * 14 numeric characters. */ @JsonProperty(JSON_PROPERTY_MID_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,9 +116,11 @@ public String getMidNumber() { } /** - * MID (Merchant ID) number. Required for merchants operating in Japan. Format: 14 numeric characters. + * MID (Merchant ID) number. Required for merchants operating in Japan. Format: 14 numeric + * characters. * - * @param midNumber MID (Merchant ID) number. Required for merchants operating in Japan. Format: 14 numeric characters. + * @param midNumber MID (Merchant ID) number. Required for merchants operating in Japan. Format: + * 14 numeric characters. */ @JsonProperty(JSON_PROPERTY_MID_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,9 +129,13 @@ public void setMidNumber(String midNumber) { } /** - * Indicates whether the JCB Merchant ID is reused from a previously configured JCB payment method. The default value is **false**. For merchants operating in Japan, this field is required and must be set to **true**. + * Indicates whether the JCB Merchant ID is reused from a previously configured JCB payment + * method. The default value is **false**. For merchants operating in Japan, this field is + * required and must be set to **true**. * - * @param reuseMidNumber Indicates whether the JCB Merchant ID is reused from a previously configured JCB payment method. The default value is **false**. For merchants operating in Japan, this field is required and must be set to **true**. + * @param reuseMidNumber Indicates whether the JCB Merchant ID is reused from a previously + * configured JCB payment method. The default value is **false**. For merchants operating in + * Japan, this field is required and must be set to **true**. * @return the current {@code DinersInfo} instance, allowing for method chaining */ public DinersInfo reuseMidNumber(Boolean reuseMidNumber) { @@ -135,8 +144,13 @@ public DinersInfo reuseMidNumber(Boolean reuseMidNumber) { } /** - * Indicates whether the JCB Merchant ID is reused from a previously configured JCB payment method. The default value is **false**. For merchants operating in Japan, this field is required and must be set to **true**. - * @return reuseMidNumber Indicates whether the JCB Merchant ID is reused from a previously configured JCB payment method. The default value is **false**. For merchants operating in Japan, this field is required and must be set to **true**. + * Indicates whether the JCB Merchant ID is reused from a previously configured JCB payment + * method. The default value is **false**. For merchants operating in Japan, this field is + * required and must be set to **true**. + * + * @return reuseMidNumber Indicates whether the JCB Merchant ID is reused from a previously + * configured JCB payment method. The default value is **false**. For merchants operating in + * Japan, this field is required and must be set to **true**. */ @JsonProperty(JSON_PROPERTY_REUSE_MID_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,9 +159,13 @@ public Boolean getReuseMidNumber() { } /** - * Indicates whether the JCB Merchant ID is reused from a previously configured JCB payment method. The default value is **false**. For merchants operating in Japan, this field is required and must be set to **true**. + * Indicates whether the JCB Merchant ID is reused from a previously configured JCB payment + * method. The default value is **false**. For merchants operating in Japan, this field is + * required and must be set to **true**. * - * @param reuseMidNumber Indicates whether the JCB Merchant ID is reused from a previously configured JCB payment method. The default value is **false**. For merchants operating in Japan, this field is required and must be set to **true**. + * @param reuseMidNumber Indicates whether the JCB Merchant ID is reused from a previously + * configured JCB payment method. The default value is **false**. For merchants operating in + * Japan, this field is required and must be set to **true**. */ @JsonProperty(JSON_PROPERTY_REUSE_MID_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,9 +174,15 @@ public void setReuseMidNumber(Boolean reuseMidNumber) { } /** - * Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. + * Specifies the service level (settlement type) of this payment method. Required for merchants + * operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * + * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or + * your sub-merchant directly. * - * @param serviceLevel Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. + * @param serviceLevel Specifies the service level (settlement type) of this payment method. + * Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds + * the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles + * disputes, then pays out to you or your sub-merchant directly. * @return the current {@code DinersInfo} instance, allowing for method chaining */ public DinersInfo serviceLevel(ServiceLevelEnum serviceLevel) { @@ -167,8 +191,15 @@ public DinersInfo serviceLevel(ServiceLevelEnum serviceLevel) { } /** - * Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. - * @return serviceLevel Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. + * Specifies the service level (settlement type) of this payment method. Required for merchants + * operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * + * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or + * your sub-merchant directly. + * + * @return serviceLevel Specifies the service level (settlement type) of this payment method. + * Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds + * the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles + * disputes, then pays out to you or your sub-merchant directly. */ @JsonProperty(JSON_PROPERTY_SERVICE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,9 +208,15 @@ public ServiceLevelEnum getServiceLevel() { } /** - * Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. + * Specifies the service level (settlement type) of this payment method. Required for merchants + * operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * + * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or + * your sub-merchant directly. * - * @param serviceLevel Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. + * @param serviceLevel Specifies the service level (settlement type) of this payment method. + * Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds + * the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles + * disputes, then pays out to you or your sub-merchant directly. */ @JsonProperty(JSON_PROPERTY_SERVICE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,7 +227,7 @@ public void setServiceLevel(ServiceLevelEnum serviceLevel) { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription * @return the current {@code DinersInfo} instance, allowing for method chaining */ public DinersInfo transactionDescription(TransactionDescriptionInfo transactionDescription) { @@ -200,7 +237,8 @@ public DinersInfo transactionDescription(TransactionDescriptionInfo transactionD /** * Get transactionDescription - * @return transactionDescription + * + * @return transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,7 +249,7 @@ public TransactionDescriptionInfo getTransactionDescription() { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,9 +257,7 @@ public void setTransactionDescription(TransactionDescriptionInfo transactionDesc this.transactionDescription = transactionDescription; } - /** - * Return true if this DinersInfo object is equal to o. - */ + /** Return true if this DinersInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -231,10 +267,10 @@ public boolean equals(Object o) { return false; } DinersInfo dinersInfo = (DinersInfo) o; - return Objects.equals(this.midNumber, dinersInfo.midNumber) && - Objects.equals(this.reuseMidNumber, dinersInfo.reuseMidNumber) && - Objects.equals(this.serviceLevel, dinersInfo.serviceLevel) && - Objects.equals(this.transactionDescription, dinersInfo.transactionDescription); + return Objects.equals(this.midNumber, dinersInfo.midNumber) + && Objects.equals(this.reuseMidNumber, dinersInfo.reuseMidNumber) + && Objects.equals(this.serviceLevel, dinersInfo.serviceLevel) + && Objects.equals(this.transactionDescription, dinersInfo.transactionDescription); } @Override @@ -249,14 +285,15 @@ public String toString() { sb.append(" midNumber: ").append(toIndentedString(midNumber)).append("\n"); sb.append(" reuseMidNumber: ").append(toIndentedString(reuseMidNumber)).append("\n"); sb.append(" serviceLevel: ").append(toIndentedString(serviceLevel)).append("\n"); - sb.append(" transactionDescription: ").append(toIndentedString(transactionDescription)).append("\n"); + sb.append(" transactionDescription: ") + .append(toIndentedString(transactionDescription)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -265,7 +302,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DinersInfo given an JSON string * * @param jsonString JSON string @@ -275,11 +312,12 @@ private String toIndentedString(Object o) { public static DinersInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DinersInfo.class); } -/** - * Convert an instance of DinersInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DinersInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/EventUrl.java b/src/main/java/com/adyen/model/management/EventUrl.java index 1f0d68103..a029193e9 100644 --- a/src/main/java/com/adyen/model/management/EventUrl.java +++ b/src/main/java/com/adyen/model/management/EventUrl.java @@ -2,39 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.Url; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * EventUrl - */ +/** EventUrl */ @JsonPropertyOrder({ EventUrl.JSON_PROPERTY_EVENT_LOCAL_URLS, EventUrl.JSON_PROPERTY_EVENT_PUBLIC_URLS }) - public class EventUrl { public static final String JSON_PROPERTY_EVENT_LOCAL_URLS = "eventLocalUrls"; private List eventLocalUrls; @@ -42,13 +31,13 @@ public class EventUrl { public static final String JSON_PROPERTY_EVENT_PUBLIC_URLS = "eventPublicUrls"; private List eventPublicUrls; - public EventUrl() { - } + public EventUrl() {} /** * One or more local URLs to send event notifications to when using Terminal API. * - * @param eventLocalUrls One or more local URLs to send event notifications to when using Terminal API. + * @param eventLocalUrls One or more local URLs to send event notifications to when using Terminal + * API. * @return the current {@code EventUrl} instance, allowing for method chaining */ public EventUrl eventLocalUrls(List eventLocalUrls) { @@ -66,7 +55,9 @@ public EventUrl addEventLocalUrlsItem(Url eventLocalUrlsItem) { /** * One or more local URLs to send event notifications to when using Terminal API. - * @return eventLocalUrls One or more local URLs to send event notifications to when using Terminal API. + * + * @return eventLocalUrls One or more local URLs to send event notifications to when using + * Terminal API. */ @JsonProperty(JSON_PROPERTY_EVENT_LOCAL_URLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -77,7 +68,8 @@ public List getEventLocalUrls() { /** * One or more local URLs to send event notifications to when using Terminal API. * - * @param eventLocalUrls One or more local URLs to send event notifications to when using Terminal API. + * @param eventLocalUrls One or more local URLs to send event notifications to when using Terminal + * API. */ @JsonProperty(JSON_PROPERTY_EVENT_LOCAL_URLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -88,7 +80,8 @@ public void setEventLocalUrls(List eventLocalUrls) { /** * One or more public URLs to send event notifications to when using Terminal API. * - * @param eventPublicUrls One or more public URLs to send event notifications to when using Terminal API. + * @param eventPublicUrls One or more public URLs to send event notifications to when using + * Terminal API. * @return the current {@code EventUrl} instance, allowing for method chaining */ public EventUrl eventPublicUrls(List eventPublicUrls) { @@ -106,7 +99,9 @@ public EventUrl addEventPublicUrlsItem(Url eventPublicUrlsItem) { /** * One or more public URLs to send event notifications to when using Terminal API. - * @return eventPublicUrls One or more public URLs to send event notifications to when using Terminal API. + * + * @return eventPublicUrls One or more public URLs to send event notifications to when using + * Terminal API. */ @JsonProperty(JSON_PROPERTY_EVENT_PUBLIC_URLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,7 +112,8 @@ public List getEventPublicUrls() { /** * One or more public URLs to send event notifications to when using Terminal API. * - * @param eventPublicUrls One or more public URLs to send event notifications to when using Terminal API. + * @param eventPublicUrls One or more public URLs to send event notifications to when using + * Terminal API. */ @JsonProperty(JSON_PROPERTY_EVENT_PUBLIC_URLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,9 +121,7 @@ public void setEventPublicUrls(List eventPublicUrls) { this.eventPublicUrls = eventPublicUrls; } - /** - * Return true if this EventUrl object is equal to o. - */ + /** Return true if this EventUrl object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -137,8 +131,8 @@ public boolean equals(Object o) { return false; } EventUrl eventUrl = (EventUrl) o; - return Objects.equals(this.eventLocalUrls, eventUrl.eventLocalUrls) && - Objects.equals(this.eventPublicUrls, eventUrl.eventPublicUrls); + return Objects.equals(this.eventLocalUrls, eventUrl.eventLocalUrls) + && Objects.equals(this.eventPublicUrls, eventUrl.eventPublicUrls); } @Override @@ -157,8 +151,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -167,7 +160,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of EventUrl given an JSON string * * @param jsonString JSON string @@ -177,11 +170,12 @@ private String toIndentedString(Object o) { public static EventUrl fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, EventUrl.class); } -/** - * Convert an instance of EventUrl to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of EventUrl to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ExternalTerminalAction.java b/src/main/java/com/adyen/model/management/ExternalTerminalAction.java index 3462510a1..615dab977 100644 --- a/src/main/java/com/adyen/model/management/ExternalTerminalAction.java +++ b/src/main/java/com/adyen/model/management/ExternalTerminalAction.java @@ -2,32 +2,23 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.time.OffsetDateTime; +import java.util.*; - -/** - * ExternalTerminalAction - */ +/** ExternalTerminalAction */ @JsonPropertyOrder({ ExternalTerminalAction.JSON_PROPERTY_ACTION_TYPE, ExternalTerminalAction.JSON_PROPERTY_CONFIG, @@ -38,7 +29,6 @@ ExternalTerminalAction.JSON_PROPERTY_STATUS, ExternalTerminalAction.JSON_PROPERTY_TERMINAL_ID }) - public class ExternalTerminalAction { public static final String JSON_PROPERTY_ACTION_TYPE = "actionType"; private String actionType; @@ -64,13 +54,14 @@ public class ExternalTerminalAction { public static final String JSON_PROPERTY_TERMINAL_ID = "terminalId"; private String terminalId; - public ExternalTerminalAction() { - } + public ExternalTerminalAction() {} /** - * The type of terminal action: **InstallAndroidApp**, **UninstallAndroidApp**, **InstallAndroidCertificate**, or **UninstallAndroidCertificate**. + * The type of terminal action: **InstallAndroidApp**, **UninstallAndroidApp**, + * **InstallAndroidCertificate**, or **UninstallAndroidCertificate**. * - * @param actionType The type of terminal action: **InstallAndroidApp**, **UninstallAndroidApp**, **InstallAndroidCertificate**, or **UninstallAndroidCertificate**. + * @param actionType The type of terminal action: **InstallAndroidApp**, **UninstallAndroidApp**, + * **InstallAndroidCertificate**, or **UninstallAndroidCertificate**. * @return the current {@code ExternalTerminalAction} instance, allowing for method chaining */ public ExternalTerminalAction actionType(String actionType) { @@ -79,8 +70,11 @@ public ExternalTerminalAction actionType(String actionType) { } /** - * The type of terminal action: **InstallAndroidApp**, **UninstallAndroidApp**, **InstallAndroidCertificate**, or **UninstallAndroidCertificate**. - * @return actionType The type of terminal action: **InstallAndroidApp**, **UninstallAndroidApp**, **InstallAndroidCertificate**, or **UninstallAndroidCertificate**. + * The type of terminal action: **InstallAndroidApp**, **UninstallAndroidApp**, + * **InstallAndroidCertificate**, or **UninstallAndroidCertificate**. + * + * @return actionType The type of terminal action: **InstallAndroidApp**, **UninstallAndroidApp**, + * **InstallAndroidCertificate**, or **UninstallAndroidCertificate**. */ @JsonProperty(JSON_PROPERTY_ACTION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -89,9 +83,11 @@ public String getActionType() { } /** - * The type of terminal action: **InstallAndroidApp**, **UninstallAndroidApp**, **InstallAndroidCertificate**, or **UninstallAndroidCertificate**. + * The type of terminal action: **InstallAndroidApp**, **UninstallAndroidApp**, + * **InstallAndroidCertificate**, or **UninstallAndroidCertificate**. * - * @param actionType The type of terminal action: **InstallAndroidApp**, **UninstallAndroidApp**, **InstallAndroidCertificate**, or **UninstallAndroidCertificate**. + * @param actionType The type of terminal action: **InstallAndroidApp**, **UninstallAndroidApp**, + * **InstallAndroidCertificate**, or **UninstallAndroidCertificate**. */ @JsonProperty(JSON_PROPERTY_ACTION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,6 +108,7 @@ public ExternalTerminalAction config(String config) { /** * Technical information about the terminal action. + * * @return config Technical information about the terminal action. */ @JsonProperty(JSON_PROPERTY_CONFIG) @@ -144,6 +141,7 @@ public ExternalTerminalAction confirmedAt(OffsetDateTime confirmedAt) { /** * The date and time when the action was carried out. + * * @return confirmedAt The date and time when the action was carried out. */ @JsonProperty(JSON_PROPERTY_CONFIRMED_AT) @@ -176,6 +174,7 @@ public ExternalTerminalAction id(String id) { /** * The unique ID of the terminal action. + * * @return id The unique ID of the terminal action. */ @JsonProperty(JSON_PROPERTY_ID) @@ -208,6 +207,7 @@ public ExternalTerminalAction result(String result) { /** * The result message for the action. + * * @return result The result message for the action. */ @JsonProperty(JSON_PROPERTY_RESULT) @@ -240,6 +240,7 @@ public ExternalTerminalAction scheduledAt(OffsetDateTime scheduledAt) { /** * The date and time when the action was scheduled to happen. + * * @return scheduledAt The date and time when the action was scheduled to happen. */ @JsonProperty(JSON_PROPERTY_SCHEDULED_AT) @@ -260,9 +261,11 @@ public void setScheduledAt(OffsetDateTime scheduledAt) { } /** - * The status of the terminal action: **pending**, **successful**, **failed**, **cancelled**, or **tryLater**. + * The status of the terminal action: **pending**, **successful**, **failed**, **cancelled**, or + * **tryLater**. * - * @param status The status of the terminal action: **pending**, **successful**, **failed**, **cancelled**, or **tryLater**. + * @param status The status of the terminal action: **pending**, **successful**, **failed**, + * **cancelled**, or **tryLater**. * @return the current {@code ExternalTerminalAction} instance, allowing for method chaining */ public ExternalTerminalAction status(String status) { @@ -271,8 +274,11 @@ public ExternalTerminalAction status(String status) { } /** - * The status of the terminal action: **pending**, **successful**, **failed**, **cancelled**, or **tryLater**. - * @return status The status of the terminal action: **pending**, **successful**, **failed**, **cancelled**, or **tryLater**. + * The status of the terminal action: **pending**, **successful**, **failed**, **cancelled**, or + * **tryLater**. + * + * @return status The status of the terminal action: **pending**, **successful**, **failed**, + * **cancelled**, or **tryLater**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -281,9 +287,11 @@ public String getStatus() { } /** - * The status of the terminal action: **pending**, **successful**, **failed**, **cancelled**, or **tryLater**. + * The status of the terminal action: **pending**, **successful**, **failed**, **cancelled**, or + * **tryLater**. * - * @param status The status of the terminal action: **pending**, **successful**, **failed**, **cancelled**, or **tryLater**. + * @param status The status of the terminal action: **pending**, **successful**, **failed**, + * **cancelled**, or **tryLater**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -304,6 +312,7 @@ public ExternalTerminalAction terminalId(String terminalId) { /** * The unique ID of the terminal that the action applies to. + * * @return terminalId The unique ID of the terminal that the action applies to. */ @JsonProperty(JSON_PROPERTY_TERMINAL_ID) @@ -323,9 +332,7 @@ public void setTerminalId(String terminalId) { this.terminalId = terminalId; } - /** - * Return true if this ExternalTerminalAction object is equal to o. - */ + /** Return true if this ExternalTerminalAction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -335,19 +342,20 @@ public boolean equals(Object o) { return false; } ExternalTerminalAction externalTerminalAction = (ExternalTerminalAction) o; - return Objects.equals(this.actionType, externalTerminalAction.actionType) && - Objects.equals(this.config, externalTerminalAction.config) && - Objects.equals(this.confirmedAt, externalTerminalAction.confirmedAt) && - Objects.equals(this.id, externalTerminalAction.id) && - Objects.equals(this.result, externalTerminalAction.result) && - Objects.equals(this.scheduledAt, externalTerminalAction.scheduledAt) && - Objects.equals(this.status, externalTerminalAction.status) && - Objects.equals(this.terminalId, externalTerminalAction.terminalId); + return Objects.equals(this.actionType, externalTerminalAction.actionType) + && Objects.equals(this.config, externalTerminalAction.config) + && Objects.equals(this.confirmedAt, externalTerminalAction.confirmedAt) + && Objects.equals(this.id, externalTerminalAction.id) + && Objects.equals(this.result, externalTerminalAction.result) + && Objects.equals(this.scheduledAt, externalTerminalAction.scheduledAt) + && Objects.equals(this.status, externalTerminalAction.status) + && Objects.equals(this.terminalId, externalTerminalAction.terminalId); } @Override public int hashCode() { - return Objects.hash(actionType, config, confirmedAt, id, result, scheduledAt, status, terminalId); + return Objects.hash( + actionType, config, confirmedAt, id, result, scheduledAt, status, terminalId); } @Override @@ -367,8 +375,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -377,21 +384,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ExternalTerminalAction given an JSON string * * @param jsonString JSON string * @return An instance of ExternalTerminalAction - * @throws JsonProcessingException if the JSON string is invalid with respect to ExternalTerminalAction + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ExternalTerminalAction */ public static ExternalTerminalAction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ExternalTerminalAction.class); } -/** - * Convert an instance of ExternalTerminalAction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ExternalTerminalAction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/GenerateApiKeyResponse.java b/src/main/java/com/adyen/model/management/GenerateApiKeyResponse.java index c967df2e8..905832071 100644 --- a/src/main/java/com/adyen/model/management/GenerateApiKeyResponse.java +++ b/src/main/java/com/adyen/model/management/GenerateApiKeyResponse.java @@ -2,41 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * GenerateApiKeyResponse - */ -@JsonPropertyOrder({ - GenerateApiKeyResponse.JSON_PROPERTY_API_KEY -}) - +/** GenerateApiKeyResponse */ +@JsonPropertyOrder({GenerateApiKeyResponse.JSON_PROPERTY_API_KEY}) public class GenerateApiKeyResponse { public static final String JSON_PROPERTY_API_KEY = "apiKey"; private String apiKey; - public GenerateApiKeyResponse() { - } + public GenerateApiKeyResponse() {} /** * The generated API key. @@ -51,6 +38,7 @@ public GenerateApiKeyResponse apiKey(String apiKey) { /** * The generated API key. + * * @return apiKey The generated API key. */ @JsonProperty(JSON_PROPERTY_API_KEY) @@ -70,9 +58,7 @@ public void setApiKey(String apiKey) { this.apiKey = apiKey; } - /** - * Return true if this GenerateApiKeyResponse object is equal to o. - */ + /** Return true if this GenerateApiKeyResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +95,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of GenerateApiKeyResponse given an JSON string * * @param jsonString JSON string * @return An instance of GenerateApiKeyResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to GenerateApiKeyResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * GenerateApiKeyResponse */ public static GenerateApiKeyResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GenerateApiKeyResponse.class); } -/** - * Convert an instance of GenerateApiKeyResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of GenerateApiKeyResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/GenerateClientKeyResponse.java b/src/main/java/com/adyen/model/management/GenerateClientKeyResponse.java index 26ccf4db7..90d774d75 100644 --- a/src/main/java/com/adyen/model/management/GenerateClientKeyResponse.java +++ b/src/main/java/com/adyen/model/management/GenerateClientKeyResponse.java @@ -2,41 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * GenerateClientKeyResponse - */ -@JsonPropertyOrder({ - GenerateClientKeyResponse.JSON_PROPERTY_CLIENT_KEY -}) - +/** GenerateClientKeyResponse */ +@JsonPropertyOrder({GenerateClientKeyResponse.JSON_PROPERTY_CLIENT_KEY}) public class GenerateClientKeyResponse { public static final String JSON_PROPERTY_CLIENT_KEY = "clientKey"; private String clientKey; - public GenerateClientKeyResponse() { - } + public GenerateClientKeyResponse() {} /** * Generated client key @@ -51,6 +38,7 @@ public GenerateClientKeyResponse clientKey(String clientKey) { /** * Generated client key + * * @return clientKey Generated client key */ @JsonProperty(JSON_PROPERTY_CLIENT_KEY) @@ -70,9 +58,7 @@ public void setClientKey(String clientKey) { this.clientKey = clientKey; } - /** - * Return true if this GenerateClientKeyResponse object is equal to o. - */ + /** Return true if this GenerateClientKeyResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +95,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of GenerateClientKeyResponse given an JSON string * * @param jsonString JSON string * @return An instance of GenerateClientKeyResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to GenerateClientKeyResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * GenerateClientKeyResponse */ - public static GenerateClientKeyResponse fromJson(String jsonString) throws JsonProcessingException { + public static GenerateClientKeyResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GenerateClientKeyResponse.class); } -/** - * Convert an instance of GenerateClientKeyResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of GenerateClientKeyResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/GenerateHmacKeyResponse.java b/src/main/java/com/adyen/model/management/GenerateHmacKeyResponse.java index 58d80697c..4fe3a2eec 100644 --- a/src/main/java/com/adyen/model/management/GenerateHmacKeyResponse.java +++ b/src/main/java/com/adyen/model/management/GenerateHmacKeyResponse.java @@ -2,41 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * GenerateHmacKeyResponse - */ -@JsonPropertyOrder({ - GenerateHmacKeyResponse.JSON_PROPERTY_HMAC_KEY -}) - +/** GenerateHmacKeyResponse */ +@JsonPropertyOrder({GenerateHmacKeyResponse.JSON_PROPERTY_HMAC_KEY}) public class GenerateHmacKeyResponse { public static final String JSON_PROPERTY_HMAC_KEY = "hmacKey"; private String hmacKey; - public GenerateHmacKeyResponse() { - } + public GenerateHmacKeyResponse() {} /** * The HMAC key generated for this webhook. @@ -51,6 +38,7 @@ public GenerateHmacKeyResponse hmacKey(String hmacKey) { /** * The HMAC key generated for this webhook. + * * @return hmacKey The HMAC key generated for this webhook. */ @JsonProperty(JSON_PROPERTY_HMAC_KEY) @@ -70,9 +58,7 @@ public void setHmacKey(String hmacKey) { this.hmacKey = hmacKey; } - /** - * Return true if this GenerateHmacKeyResponse object is equal to o. - */ + /** Return true if this GenerateHmacKeyResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +95,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of GenerateHmacKeyResponse given an JSON string * * @param jsonString JSON string * @return An instance of GenerateHmacKeyResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to GenerateHmacKeyResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * GenerateHmacKeyResponse */ public static GenerateHmacKeyResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GenerateHmacKeyResponse.class); } -/** - * Convert an instance of GenerateHmacKeyResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of GenerateHmacKeyResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/GenericPmWithTdiInfo.java b/src/main/java/com/adyen/model/management/GenericPmWithTdiInfo.java index d3f4fbb2b..81850fe8b 100644 --- a/src/main/java/com/adyen/model/management/GenericPmWithTdiInfo.java +++ b/src/main/java/com/adyen/model/management/GenericPmWithTdiInfo.java @@ -2,57 +2,45 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.TransactionDescriptionInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * GenericPmWithTdiInfo - */ -@JsonPropertyOrder({ - GenericPmWithTdiInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION -}) - +/** GenericPmWithTdiInfo */ +@JsonPropertyOrder({GenericPmWithTdiInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION}) public class GenericPmWithTdiInfo { public static final String JSON_PROPERTY_TRANSACTION_DESCRIPTION = "transactionDescription"; private TransactionDescriptionInfo transactionDescription; - public GenericPmWithTdiInfo() { - } + public GenericPmWithTdiInfo() {} /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription * @return the current {@code GenericPmWithTdiInfo} instance, allowing for method chaining */ - public GenericPmWithTdiInfo transactionDescription(TransactionDescriptionInfo transactionDescription) { + public GenericPmWithTdiInfo transactionDescription( + TransactionDescriptionInfo transactionDescription) { this.transactionDescription = transactionDescription; return this; } /** * Get transactionDescription - * @return transactionDescription + * + * @return transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,7 +51,7 @@ public TransactionDescriptionInfo getTransactionDescription() { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,9 +59,7 @@ public void setTransactionDescription(TransactionDescriptionInfo transactionDesc this.transactionDescription = transactionDescription; } - /** - * Return true if this GenericPmWithTdiInfo object is equal to o. - */ + /** Return true if this GenericPmWithTdiInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -95,14 +81,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GenericPmWithTdiInfo {\n"); - sb.append(" transactionDescription: ").append(toIndentedString(transactionDescription)).append("\n"); + sb.append(" transactionDescription: ") + .append(toIndentedString(transactionDescription)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -111,21 +98,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of GenericPmWithTdiInfo given an JSON string * * @param jsonString JSON string * @return An instance of GenericPmWithTdiInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to GenericPmWithTdiInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to + * GenericPmWithTdiInfo */ public static GenericPmWithTdiInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GenericPmWithTdiInfo.class); } -/** - * Convert an instance of GenericPmWithTdiInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of GenericPmWithTdiInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/GooglePayInfo.java b/src/main/java/com/adyen/model/management/GooglePayInfo.java index d8d5b26e3..4d2a92daa 100644 --- a/src/main/java/com/adyen/model/management/GooglePayInfo.java +++ b/src/main/java/com/adyen/model/management/GooglePayInfo.java @@ -2,36 +2,26 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * GooglePayInfo - */ +/** GooglePayInfo */ @JsonPropertyOrder({ GooglePayInfo.JSON_PROPERTY_MERCHANT_ID, GooglePayInfo.JSON_PROPERTY_REUSE_MERCHANT_ID }) - public class GooglePayInfo { public static final String JSON_PROPERTY_MERCHANT_ID = "merchantId"; private String merchantId; @@ -39,13 +29,15 @@ public class GooglePayInfo { public static final String JSON_PROPERTY_REUSE_MERCHANT_ID = "reuseMerchantId"; private Boolean reuseMerchantId; - public GooglePayInfo() { - } + public GooglePayInfo() {} /** - * Google Pay [Merchant ID](https://support.google.com/paymentscenter/answer/7163092?hl=en). Character length and limitations: 16 alphanumeric characters or 20 numeric characters. + * Google Pay [Merchant ID](https://support.google.com/paymentscenter/answer/7163092?hl=en). + * Character length and limitations: 16 alphanumeric characters or 20 numeric characters. * - * @param merchantId Google Pay [Merchant ID](https://support.google.com/paymentscenter/answer/7163092?hl=en). Character length and limitations: 16 alphanumeric characters or 20 numeric characters. + * @param merchantId Google Pay [Merchant + * ID](https://support.google.com/paymentscenter/answer/7163092?hl=en). Character length + * and limitations: 16 alphanumeric characters or 20 numeric characters. * @return the current {@code GooglePayInfo} instance, allowing for method chaining */ public GooglePayInfo merchantId(String merchantId) { @@ -54,8 +46,12 @@ public GooglePayInfo merchantId(String merchantId) { } /** - * Google Pay [Merchant ID](https://support.google.com/paymentscenter/answer/7163092?hl=en). Character length and limitations: 16 alphanumeric characters or 20 numeric characters. - * @return merchantId Google Pay [Merchant ID](https://support.google.com/paymentscenter/answer/7163092?hl=en). Character length and limitations: 16 alphanumeric characters or 20 numeric characters. + * Google Pay [Merchant ID](https://support.google.com/paymentscenter/answer/7163092?hl=en). + * Character length and limitations: 16 alphanumeric characters or 20 numeric characters. + * + * @return merchantId Google Pay [Merchant + * ID](https://support.google.com/paymentscenter/answer/7163092?hl=en). Character length + * and limitations: 16 alphanumeric characters or 20 numeric characters. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +60,12 @@ public String getMerchantId() { } /** - * Google Pay [Merchant ID](https://support.google.com/paymentscenter/answer/7163092?hl=en). Character length and limitations: 16 alphanumeric characters or 20 numeric characters. + * Google Pay [Merchant ID](https://support.google.com/paymentscenter/answer/7163092?hl=en). + * Character length and limitations: 16 alphanumeric characters or 20 numeric characters. * - * @param merchantId Google Pay [Merchant ID](https://support.google.com/paymentscenter/answer/7163092?hl=en). Character length and limitations: 16 alphanumeric characters or 20 numeric characters. + * @param merchantId Google Pay [Merchant + * ID](https://support.google.com/paymentscenter/answer/7163092?hl=en). Character length + * and limitations: 16 alphanumeric characters or 20 numeric characters. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,9 +74,11 @@ public void setMerchantId(String merchantId) { } /** - * Indicates whether the Google Pay Merchant ID is used for several merchant accounts. Default value: **false**. + * Indicates whether the Google Pay Merchant ID is used for several merchant accounts. Default + * value: **false**. * - * @param reuseMerchantId Indicates whether the Google Pay Merchant ID is used for several merchant accounts. Default value: **false**. + * @param reuseMerchantId Indicates whether the Google Pay Merchant ID is used for several + * merchant accounts. Default value: **false**. * @return the current {@code GooglePayInfo} instance, allowing for method chaining */ public GooglePayInfo reuseMerchantId(Boolean reuseMerchantId) { @@ -86,8 +87,11 @@ public GooglePayInfo reuseMerchantId(Boolean reuseMerchantId) { } /** - * Indicates whether the Google Pay Merchant ID is used for several merchant accounts. Default value: **false**. - * @return reuseMerchantId Indicates whether the Google Pay Merchant ID is used for several merchant accounts. Default value: **false**. + * Indicates whether the Google Pay Merchant ID is used for several merchant accounts. Default + * value: **false**. + * + * @return reuseMerchantId Indicates whether the Google Pay Merchant ID is used for several + * merchant accounts. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_REUSE_MERCHANT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +100,11 @@ public Boolean getReuseMerchantId() { } /** - * Indicates whether the Google Pay Merchant ID is used for several merchant accounts. Default value: **false**. + * Indicates whether the Google Pay Merchant ID is used for several merchant accounts. Default + * value: **false**. * - * @param reuseMerchantId Indicates whether the Google Pay Merchant ID is used for several merchant accounts. Default value: **false**. + * @param reuseMerchantId Indicates whether the Google Pay Merchant ID is used for several + * merchant accounts. Default value: **false**. */ @JsonProperty(JSON_PROPERTY_REUSE_MERCHANT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +112,7 @@ public void setReuseMerchantId(Boolean reuseMerchantId) { this.reuseMerchantId = reuseMerchantId; } - /** - * Return true if this GooglePayInfo object is equal to o. - */ + /** Return true if this GooglePayInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +122,8 @@ public boolean equals(Object o) { return false; } GooglePayInfo googlePayInfo = (GooglePayInfo) o; - return Objects.equals(this.merchantId, googlePayInfo.merchantId) && - Objects.equals(this.reuseMerchantId, googlePayInfo.reuseMerchantId); + return Objects.equals(this.merchantId, googlePayInfo.merchantId) + && Objects.equals(this.reuseMerchantId, googlePayInfo.reuseMerchantId); } @Override @@ -138,8 +142,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +151,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of GooglePayInfo given an JSON string * * @param jsonString JSON string @@ -158,11 +161,12 @@ private String toIndentedString(Object o) { public static GooglePayInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, GooglePayInfo.class); } -/** - * Convert an instance of GooglePayInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of GooglePayInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Gratuity.java b/src/main/java/com/adyen/model/management/Gratuity.java index 0d9238e02..8b6f1daa4 100644 --- a/src/main/java/com/adyen/model/management/Gratuity.java +++ b/src/main/java/com/adyen/model/management/Gratuity.java @@ -2,40 +2,30 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * Gratuity - */ +/** Gratuity */ @JsonPropertyOrder({ Gratuity.JSON_PROPERTY_ALLOW_CUSTOM_AMOUNT, Gratuity.JSON_PROPERTY_CURRENCY, Gratuity.JSON_PROPERTY_PREDEFINED_TIP_ENTRIES, Gratuity.JSON_PROPERTY_USE_PREDEFINED_TIP_ENTRIES }) - public class Gratuity { public static final String JSON_PROPERTY_ALLOW_CUSTOM_AMOUNT = "allowCustomAmount"; private Boolean allowCustomAmount; @@ -49,13 +39,16 @@ public class Gratuity { public static final String JSON_PROPERTY_USE_PREDEFINED_TIP_ENTRIES = "usePredefinedTipEntries"; private Boolean usePredefinedTipEntries; - public Gratuity() { - } + public Gratuity() {} /** - * Indicates whether one of the predefined tipping options is to let the shopper enter a custom tip. If **true**, only three of the other options defined in `predefinedTipEntries` are shown. + * Indicates whether one of the predefined tipping options is to let the shopper enter a custom + * tip. If **true**, only three of the other options defined in `predefinedTipEntries` + * are shown. * - * @param allowCustomAmount Indicates whether one of the predefined tipping options is to let the shopper enter a custom tip. If **true**, only three of the other options defined in `predefinedTipEntries` are shown. + * @param allowCustomAmount Indicates whether one of the predefined tipping options is to let the + * shopper enter a custom tip. If **true**, only three of the other options defined in + * `predefinedTipEntries` are shown. * @return the current {@code Gratuity} instance, allowing for method chaining */ public Gratuity allowCustomAmount(Boolean allowCustomAmount) { @@ -64,8 +57,13 @@ public Gratuity allowCustomAmount(Boolean allowCustomAmount) { } /** - * Indicates whether one of the predefined tipping options is to let the shopper enter a custom tip. If **true**, only three of the other options defined in `predefinedTipEntries` are shown. - * @return allowCustomAmount Indicates whether one of the predefined tipping options is to let the shopper enter a custom tip. If **true**, only three of the other options defined in `predefinedTipEntries` are shown. + * Indicates whether one of the predefined tipping options is to let the shopper enter a custom + * tip. If **true**, only three of the other options defined in `predefinedTipEntries` + * are shown. + * + * @return allowCustomAmount Indicates whether one of the predefined tipping options is to let the + * shopper enter a custom tip. If **true**, only three of the other options defined in + * `predefinedTipEntries` are shown. */ @JsonProperty(JSON_PROPERTY_ALLOW_CUSTOM_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -74,9 +72,13 @@ public Boolean getAllowCustomAmount() { } /** - * Indicates whether one of the predefined tipping options is to let the shopper enter a custom tip. If **true**, only three of the other options defined in `predefinedTipEntries` are shown. + * Indicates whether one of the predefined tipping options is to let the shopper enter a custom + * tip. If **true**, only three of the other options defined in `predefinedTipEntries` + * are shown. * - * @param allowCustomAmount Indicates whether one of the predefined tipping options is to let the shopper enter a custom tip. If **true**, only three of the other options defined in `predefinedTipEntries` are shown. + * @param allowCustomAmount Indicates whether one of the predefined tipping options is to let the + * shopper enter a custom tip. If **true**, only three of the other options defined in + * `predefinedTipEntries` are shown. */ @JsonProperty(JSON_PROPERTY_ALLOW_CUSTOM_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,6 +99,7 @@ public Gratuity currency(String currency) { /** * The currency that the tipping settings apply to. + * * @return currency The currency that the tipping settings apply to. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @@ -117,9 +120,18 @@ public void setCurrency(String currency) { } /** - * Tipping options the shopper can choose from if `usePredefinedTipEntries` is **true**. The maximum number of predefined options is four, or three plus the option to enter a custom tip. The options can be a mix of: - A percentage of the transaction amount. Example: **5%** - A tip amount in [minor units](https://docs.adyen.com/development-resources/currency-codes). Example: **500** for a EUR 5 tip. + * Tipping options the shopper can choose from if `usePredefinedTipEntries` is **true**. + * The maximum number of predefined options is four, or three plus the option to enter a custom + * tip. The options can be a mix of: - A percentage of the transaction amount. Example: **5%** - A + * tip amount in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * Example: **500** for a EUR 5 tip. * - * @param predefinedTipEntries Tipping options the shopper can choose from if `usePredefinedTipEntries` is **true**. The maximum number of predefined options is four, or three plus the option to enter a custom tip. The options can be a mix of: - A percentage of the transaction amount. Example: **5%** - A tip amount in [minor units](https://docs.adyen.com/development-resources/currency-codes). Example: **500** for a EUR 5 tip. + * @param predefinedTipEntries Tipping options the shopper can choose from if + * `usePredefinedTipEntries` is **true**. The maximum number of predefined options + * is four, or three plus the option to enter a custom tip. The options can be a mix of: - A + * percentage of the transaction amount. Example: **5%** - A tip amount in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). Example: **500** for a + * EUR 5 tip. * @return the current {@code Gratuity} instance, allowing for method chaining */ public Gratuity predefinedTipEntries(List predefinedTipEntries) { @@ -136,8 +148,18 @@ public Gratuity addPredefinedTipEntriesItem(String predefinedTipEntriesItem) { } /** - * Tipping options the shopper can choose from if `usePredefinedTipEntries` is **true**. The maximum number of predefined options is four, or three plus the option to enter a custom tip. The options can be a mix of: - A percentage of the transaction amount. Example: **5%** - A tip amount in [minor units](https://docs.adyen.com/development-resources/currency-codes). Example: **500** for a EUR 5 tip. - * @return predefinedTipEntries Tipping options the shopper can choose from if `usePredefinedTipEntries` is **true**. The maximum number of predefined options is four, or three plus the option to enter a custom tip. The options can be a mix of: - A percentage of the transaction amount. Example: **5%** - A tip amount in [minor units](https://docs.adyen.com/development-resources/currency-codes). Example: **500** for a EUR 5 tip. + * Tipping options the shopper can choose from if `usePredefinedTipEntries` is **true**. + * The maximum number of predefined options is four, or three plus the option to enter a custom + * tip. The options can be a mix of: - A percentage of the transaction amount. Example: **5%** - A + * tip amount in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * Example: **500** for a EUR 5 tip. + * + * @return predefinedTipEntries Tipping options the shopper can choose from if + * `usePredefinedTipEntries` is **true**. The maximum number of predefined options + * is four, or three plus the option to enter a custom tip. The options can be a mix of: - A + * percentage of the transaction amount. Example: **5%** - A tip amount in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). Example: **500** for a + * EUR 5 tip. */ @JsonProperty(JSON_PROPERTY_PREDEFINED_TIP_ENTRIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,9 +168,18 @@ public List getPredefinedTipEntries() { } /** - * Tipping options the shopper can choose from if `usePredefinedTipEntries` is **true**. The maximum number of predefined options is four, or three plus the option to enter a custom tip. The options can be a mix of: - A percentage of the transaction amount. Example: **5%** - A tip amount in [minor units](https://docs.adyen.com/development-resources/currency-codes). Example: **500** for a EUR 5 tip. + * Tipping options the shopper can choose from if `usePredefinedTipEntries` is **true**. + * The maximum number of predefined options is four, or three plus the option to enter a custom + * tip. The options can be a mix of: - A percentage of the transaction amount. Example: **5%** - A + * tip amount in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * Example: **500** for a EUR 5 tip. * - * @param predefinedTipEntries Tipping options the shopper can choose from if `usePredefinedTipEntries` is **true**. The maximum number of predefined options is four, or three plus the option to enter a custom tip. The options can be a mix of: - A percentage of the transaction amount. Example: **5%** - A tip amount in [minor units](https://docs.adyen.com/development-resources/currency-codes). Example: **500** for a EUR 5 tip. + * @param predefinedTipEntries Tipping options the shopper can choose from if + * `usePredefinedTipEntries` is **true**. The maximum number of predefined options + * is four, or three plus the option to enter a custom tip. The options can be a mix of: - A + * percentage of the transaction amount. Example: **5%** - A tip amount in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). Example: **500** for a + * EUR 5 tip. */ @JsonProperty(JSON_PROPERTY_PREDEFINED_TIP_ENTRIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -157,9 +188,11 @@ public void setPredefinedTipEntries(List predefinedTipEntries) { } /** - * Indicates whether the terminal shows a prompt to enter a tip (**false**), or predefined tipping options to choose from (**true**). + * Indicates whether the terminal shows a prompt to enter a tip (**false**), or predefined tipping + * options to choose from (**true**). * - * @param usePredefinedTipEntries Indicates whether the terminal shows a prompt to enter a tip (**false**), or predefined tipping options to choose from (**true**). + * @param usePredefinedTipEntries Indicates whether the terminal shows a prompt to enter a tip + * (**false**), or predefined tipping options to choose from (**true**). * @return the current {@code Gratuity} instance, allowing for method chaining */ public Gratuity usePredefinedTipEntries(Boolean usePredefinedTipEntries) { @@ -168,8 +201,11 @@ public Gratuity usePredefinedTipEntries(Boolean usePredefinedTipEntries) { } /** - * Indicates whether the terminal shows a prompt to enter a tip (**false**), or predefined tipping options to choose from (**true**). - * @return usePredefinedTipEntries Indicates whether the terminal shows a prompt to enter a tip (**false**), or predefined tipping options to choose from (**true**). + * Indicates whether the terminal shows a prompt to enter a tip (**false**), or predefined tipping + * options to choose from (**true**). + * + * @return usePredefinedTipEntries Indicates whether the terminal shows a prompt to enter a tip + * (**false**), or predefined tipping options to choose from (**true**). */ @JsonProperty(JSON_PROPERTY_USE_PREDEFINED_TIP_ENTRIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,9 +214,11 @@ public Boolean getUsePredefinedTipEntries() { } /** - * Indicates whether the terminal shows a prompt to enter a tip (**false**), or predefined tipping options to choose from (**true**). + * Indicates whether the terminal shows a prompt to enter a tip (**false**), or predefined tipping + * options to choose from (**true**). * - * @param usePredefinedTipEntries Indicates whether the terminal shows a prompt to enter a tip (**false**), or predefined tipping options to choose from (**true**). + * @param usePredefinedTipEntries Indicates whether the terminal shows a prompt to enter a tip + * (**false**), or predefined tipping options to choose from (**true**). */ @JsonProperty(JSON_PROPERTY_USE_PREDEFINED_TIP_ENTRIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,9 +226,7 @@ public void setUsePredefinedTipEntries(Boolean usePredefinedTipEntries) { this.usePredefinedTipEntries = usePredefinedTipEntries; } - /** - * Return true if this Gratuity object is equal to o. - */ + /** Return true if this Gratuity object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -200,10 +236,10 @@ public boolean equals(Object o) { return false; } Gratuity gratuity = (Gratuity) o; - return Objects.equals(this.allowCustomAmount, gratuity.allowCustomAmount) && - Objects.equals(this.currency, gratuity.currency) && - Objects.equals(this.predefinedTipEntries, gratuity.predefinedTipEntries) && - Objects.equals(this.usePredefinedTipEntries, gratuity.usePredefinedTipEntries); + return Objects.equals(this.allowCustomAmount, gratuity.allowCustomAmount) + && Objects.equals(this.currency, gratuity.currency) + && Objects.equals(this.predefinedTipEntries, gratuity.predefinedTipEntries) + && Objects.equals(this.usePredefinedTipEntries, gratuity.usePredefinedTipEntries); } @Override @@ -217,15 +253,18 @@ public String toString() { sb.append("class Gratuity {\n"); sb.append(" allowCustomAmount: ").append(toIndentedString(allowCustomAmount)).append("\n"); sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); - sb.append(" predefinedTipEntries: ").append(toIndentedString(predefinedTipEntries)).append("\n"); - sb.append(" usePredefinedTipEntries: ").append(toIndentedString(usePredefinedTipEntries)).append("\n"); + sb.append(" predefinedTipEntries: ") + .append(toIndentedString(predefinedTipEntries)) + .append("\n"); + sb.append(" usePredefinedTipEntries: ") + .append(toIndentedString(usePredefinedTipEntries)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -234,7 +273,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Gratuity given an JSON string * * @param jsonString JSON string @@ -244,11 +283,12 @@ private String toIndentedString(Object o) { public static Gratuity fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Gratuity.class); } -/** - * Convert an instance of Gratuity to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Gratuity to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Hardware.java b/src/main/java/com/adyen/model/management/Hardware.java index 95c3f20c5..34f2b2f48 100644 --- a/src/main/java/com/adyen/model/management/Hardware.java +++ b/src/main/java/com/adyen/model/management/Hardware.java @@ -2,37 +2,27 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Hardware - */ +/** Hardware */ @JsonPropertyOrder({ Hardware.JSON_PROPERTY_DISPLAY_MAXIMUM_BACK_LIGHT, Hardware.JSON_PROPERTY_RESET_TOTALS_HOUR, Hardware.JSON_PROPERTY_RESTART_HOUR }) - public class Hardware { public static final String JSON_PROPERTY_DISPLAY_MAXIMUM_BACK_LIGHT = "displayMaximumBackLight"; private Integer displayMaximumBackLight; @@ -43,13 +33,13 @@ public class Hardware { public static final String JSON_PROPERTY_RESTART_HOUR = "restartHour"; private Integer restartHour; - public Hardware() { - } + public Hardware() {} /** * The brightness of the display when the terminal is being used, expressed as a percentage. * - * @param displayMaximumBackLight The brightness of the display when the terminal is being used, expressed as a percentage. + * @param displayMaximumBackLight The brightness of the display when the terminal is being used, + * expressed as a percentage. * @return the current {@code Hardware} instance, allowing for method chaining */ public Hardware displayMaximumBackLight(Integer displayMaximumBackLight) { @@ -59,7 +49,9 @@ public Hardware displayMaximumBackLight(Integer displayMaximumBackLight) { /** * The brightness of the display when the terminal is being used, expressed as a percentage. - * @return displayMaximumBackLight The brightness of the display when the terminal is being used, expressed as a percentage. + * + * @return displayMaximumBackLight The brightness of the display when the terminal is being used, + * expressed as a percentage. */ @JsonProperty(JSON_PROPERTY_DISPLAY_MAXIMUM_BACK_LIGHT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,7 +62,8 @@ public Integer getDisplayMaximumBackLight() { /** * The brightness of the display when the terminal is being used, expressed as a percentage. * - * @param displayMaximumBackLight The brightness of the display when the terminal is being used, expressed as a percentage. + * @param displayMaximumBackLight The brightness of the display when the terminal is being used, + * expressed as a percentage. */ @JsonProperty(JSON_PROPERTY_DISPLAY_MAXIMUM_BACK_LIGHT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,9 +72,12 @@ public void setDisplayMaximumBackLight(Integer displayMaximumBackLight) { } /** - * The hour of the day when the terminal is set to reset the Totals report. By default, the reset hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, maximum value: 23. + * The hour of the day when the terminal is set to reset the Totals report. By default, the reset + * hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, maximum value: 23. * - * @param resetTotalsHour The hour of the day when the terminal is set to reset the Totals report. By default, the reset hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, maximum value: 23. + * @param resetTotalsHour The hour of the day when the terminal is set to reset the Totals report. + * By default, the reset hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, + * maximum value: 23. * @return the current {@code Hardware} instance, allowing for method chaining */ public Hardware resetTotalsHour(Integer resetTotalsHour) { @@ -90,8 +86,12 @@ public Hardware resetTotalsHour(Integer resetTotalsHour) { } /** - * The hour of the day when the terminal is set to reset the Totals report. By default, the reset hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, maximum value: 23. - * @return resetTotalsHour The hour of the day when the terminal is set to reset the Totals report. By default, the reset hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, maximum value: 23. + * The hour of the day when the terminal is set to reset the Totals report. By default, the reset + * hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, maximum value: 23. + * + * @return resetTotalsHour The hour of the day when the terminal is set to reset the Totals + * report. By default, the reset hour is at 6:00 AM in the timezone of the terminal. Minimum + * value: 0, maximum value: 23. */ @JsonProperty(JSON_PROPERTY_RESET_TOTALS_HOUR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,9 +100,12 @@ public Integer getResetTotalsHour() { } /** - * The hour of the day when the terminal is set to reset the Totals report. By default, the reset hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, maximum value: 23. + * The hour of the day when the terminal is set to reset the Totals report. By default, the reset + * hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, maximum value: 23. * - * @param resetTotalsHour The hour of the day when the terminal is set to reset the Totals report. By default, the reset hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, maximum value: 23. + * @param resetTotalsHour The hour of the day when the terminal is set to reset the Totals report. + * By default, the reset hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, + * maximum value: 23. */ @JsonProperty(JSON_PROPERTY_RESET_TOTALS_HOUR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,9 +114,13 @@ public void setResetTotalsHour(Integer resetTotalsHour) { } /** - * The hour of the day when the terminal is set to reboot to apply the configuration and software updates. By default, the restart hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, maximum value: 23. + * The hour of the day when the terminal is set to reboot to apply the configuration and software + * updates. By default, the restart hour is at 6:00 AM in the timezone of the terminal. Minimum + * value: 0, maximum value: 23. * - * @param restartHour The hour of the day when the terminal is set to reboot to apply the configuration and software updates. By default, the restart hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, maximum value: 23. + * @param restartHour The hour of the day when the terminal is set to reboot to apply the + * configuration and software updates. By default, the restart hour is at 6:00 AM in the + * timezone of the terminal. Minimum value: 0, maximum value: 23. * @return the current {@code Hardware} instance, allowing for method chaining */ public Hardware restartHour(Integer restartHour) { @@ -122,8 +129,13 @@ public Hardware restartHour(Integer restartHour) { } /** - * The hour of the day when the terminal is set to reboot to apply the configuration and software updates. By default, the restart hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, maximum value: 23. - * @return restartHour The hour of the day when the terminal is set to reboot to apply the configuration and software updates. By default, the restart hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, maximum value: 23. + * The hour of the day when the terminal is set to reboot to apply the configuration and software + * updates. By default, the restart hour is at 6:00 AM in the timezone of the terminal. Minimum + * value: 0, maximum value: 23. + * + * @return restartHour The hour of the day when the terminal is set to reboot to apply the + * configuration and software updates. By default, the restart hour is at 6:00 AM in the + * timezone of the terminal. Minimum value: 0, maximum value: 23. */ @JsonProperty(JSON_PROPERTY_RESTART_HOUR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,9 +144,13 @@ public Integer getRestartHour() { } /** - * The hour of the day when the terminal is set to reboot to apply the configuration and software updates. By default, the restart hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, maximum value: 23. + * The hour of the day when the terminal is set to reboot to apply the configuration and software + * updates. By default, the restart hour is at 6:00 AM in the timezone of the terminal. Minimum + * value: 0, maximum value: 23. * - * @param restartHour The hour of the day when the terminal is set to reboot to apply the configuration and software updates. By default, the restart hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, maximum value: 23. + * @param restartHour The hour of the day when the terminal is set to reboot to apply the + * configuration and software updates. By default, the restart hour is at 6:00 AM in the + * timezone of the terminal. Minimum value: 0, maximum value: 23. */ @JsonProperty(JSON_PROPERTY_RESTART_HOUR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +158,7 @@ public void setRestartHour(Integer restartHour) { this.restartHour = restartHour; } - /** - * Return true if this Hardware object is equal to o. - */ + /** Return true if this Hardware object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +168,9 @@ public boolean equals(Object o) { return false; } Hardware hardware = (Hardware) o; - return Objects.equals(this.displayMaximumBackLight, hardware.displayMaximumBackLight) && - Objects.equals(this.resetTotalsHour, hardware.resetTotalsHour) && - Objects.equals(this.restartHour, hardware.restartHour); + return Objects.equals(this.displayMaximumBackLight, hardware.displayMaximumBackLight) + && Objects.equals(this.resetTotalsHour, hardware.resetTotalsHour) + && Objects.equals(this.restartHour, hardware.restartHour); } @Override @@ -168,7 +182,9 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Hardware {\n"); - sb.append(" displayMaximumBackLight: ").append(toIndentedString(displayMaximumBackLight)).append("\n"); + sb.append(" displayMaximumBackLight: ") + .append(toIndentedString(displayMaximumBackLight)) + .append("\n"); sb.append(" resetTotalsHour: ").append(toIndentedString(resetTotalsHour)).append("\n"); sb.append(" restartHour: ").append(toIndentedString(restartHour)).append("\n"); sb.append("}"); @@ -176,8 +192,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +201,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Hardware given an JSON string * * @param jsonString JSON string @@ -196,11 +211,12 @@ private String toIndentedString(Object o) { public static Hardware fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Hardware.class); } -/** - * Convert an instance of Hardware to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Hardware to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/IdName.java b/src/main/java/com/adyen/model/management/IdName.java index 08bd6ed07..1dcd38a4d 100644 --- a/src/main/java/com/adyen/model/management/IdName.java +++ b/src/main/java/com/adyen/model/management/IdName.java @@ -2,36 +2,23 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * IdName - */ -@JsonPropertyOrder({ - IdName.JSON_PROPERTY_ID, - IdName.JSON_PROPERTY_NAME -}) - +/** IdName */ +@JsonPropertyOrder({IdName.JSON_PROPERTY_ID, IdName.JSON_PROPERTY_NAME}) public class IdName { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -39,8 +26,7 @@ public class IdName { public static final String JSON_PROPERTY_NAME = "name"; private String name; - public IdName() { - } + public IdName() {} /** * The identifier of the terminal model. @@ -55,6 +41,7 @@ public IdName id(String id) { /** * The identifier of the terminal model. + * * @return id The identifier of the terminal model. */ @JsonProperty(JSON_PROPERTY_ID) @@ -87,6 +74,7 @@ public IdName name(String name) { /** * The name of the terminal model. + * * @return name The name of the terminal model. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -106,9 +94,7 @@ public void setName(String name) { this.name = name; } - /** - * Return true if this IdName object is equal to o. - */ + /** Return true if this IdName object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +104,7 @@ public boolean equals(Object o) { return false; } IdName idName = (IdName) o; - return Objects.equals(this.id, idName.id) && - Objects.equals(this.name, idName.name); + return Objects.equals(this.id, idName.id) && Objects.equals(this.name, idName.name); } @Override @@ -138,8 +123,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +132,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of IdName given an JSON string * * @param jsonString JSON string @@ -158,11 +142,12 @@ private String toIndentedString(Object o) { public static IdName fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, IdName.class); } -/** - * Convert an instance of IdName to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of IdName to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/InstallAndroidAppDetails.java b/src/main/java/com/adyen/model/management/InstallAndroidAppDetails.java index 40ed88ad2..f8329e57a 100644 --- a/src/main/java/com/adyen/model/management/InstallAndroidAppDetails.java +++ b/src/main/java/com/adyen/model/management/InstallAndroidAppDetails.java @@ -2,45 +2,36 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * InstallAndroidAppDetails - */ +/** InstallAndroidAppDetails */ @JsonPropertyOrder({ InstallAndroidAppDetails.JSON_PROPERTY_APP_ID, InstallAndroidAppDetails.JSON_PROPERTY_TYPE }) - public class InstallAndroidAppDetails { public static final String JSON_PROPERTY_APP_ID = "appId"; private String appId; - /** - * Type of terminal action: Install an Android app. - */ + /** Type of terminal action: Install an Android app. */ public enum TypeEnum { - INSTALLANDROIDAPP(String.valueOf("InstallAndroidApp")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +39,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,8 +72,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public InstallAndroidAppDetails() { - } + public InstallAndroidAppDetails() {} /** * The unique identifier of the app to be installed. @@ -93,6 +87,7 @@ public InstallAndroidAppDetails appId(String appId) { /** * The unique identifier of the app to be installed. + * * @return appId The unique identifier of the app to be installed. */ @JsonProperty(JSON_PROPERTY_APP_ID) @@ -125,6 +120,7 @@ public InstallAndroidAppDetails type(TypeEnum type) { /** * Type of terminal action: Install an Android app. + * * @return type Type of terminal action: Install an Android app. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -144,9 +140,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this InstallAndroidAppDetails object is equal to o. - */ + /** Return true if this InstallAndroidAppDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +150,8 @@ public boolean equals(Object o) { return false; } InstallAndroidAppDetails installAndroidAppDetails = (InstallAndroidAppDetails) o; - return Objects.equals(this.appId, installAndroidAppDetails.appId) && - Objects.equals(this.type, installAndroidAppDetails.type); + return Objects.equals(this.appId, installAndroidAppDetails.appId) + && Objects.equals(this.type, installAndroidAppDetails.type); } @Override @@ -176,8 +170,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +179,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of InstallAndroidAppDetails given an JSON string * * @param jsonString JSON string * @return An instance of InstallAndroidAppDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to InstallAndroidAppDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to + * InstallAndroidAppDetails */ - public static InstallAndroidAppDetails fromJson(String jsonString) throws JsonProcessingException { + public static InstallAndroidAppDetails fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, InstallAndroidAppDetails.class); } -/** - * Convert an instance of InstallAndroidAppDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of InstallAndroidAppDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/InstallAndroidCertificateDetails.java b/src/main/java/com/adyen/model/management/InstallAndroidCertificateDetails.java index a5b2a1c0a..9ac2d7086 100644 --- a/src/main/java/com/adyen/model/management/InstallAndroidCertificateDetails.java +++ b/src/main/java/com/adyen/model/management/InstallAndroidCertificateDetails.java @@ -2,45 +2,36 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * InstallAndroidCertificateDetails - */ +/** InstallAndroidCertificateDetails */ @JsonPropertyOrder({ InstallAndroidCertificateDetails.JSON_PROPERTY_CERTIFICATE_ID, InstallAndroidCertificateDetails.JSON_PROPERTY_TYPE }) - public class InstallAndroidCertificateDetails { public static final String JSON_PROPERTY_CERTIFICATE_ID = "certificateId"; private String certificateId; - /** - * Type of terminal action: Install an Android certificate. - */ + /** Type of terminal action: Install an Android certificate. */ public enum TypeEnum { - INSTALLANDROIDCERTIFICATE(String.valueOf("InstallAndroidCertificate")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +39,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,14 +72,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public InstallAndroidCertificateDetails() { - } + public InstallAndroidCertificateDetails() {} /** * The unique identifier of the certificate to be installed. * * @param certificateId The unique identifier of the certificate to be installed. - * @return the current {@code InstallAndroidCertificateDetails} instance, allowing for method chaining + * @return the current {@code InstallAndroidCertificateDetails} instance, allowing for method + * chaining */ public InstallAndroidCertificateDetails certificateId(String certificateId) { this.certificateId = certificateId; @@ -93,6 +88,7 @@ public InstallAndroidCertificateDetails certificateId(String certificateId) { /** * The unique identifier of the certificate to be installed. + * * @return certificateId The unique identifier of the certificate to be installed. */ @JsonProperty(JSON_PROPERTY_CERTIFICATE_ID) @@ -116,7 +112,8 @@ public void setCertificateId(String certificateId) { * Type of terminal action: Install an Android certificate. * * @param type Type of terminal action: Install an Android certificate. - * @return the current {@code InstallAndroidCertificateDetails} instance, allowing for method chaining + * @return the current {@code InstallAndroidCertificateDetails} instance, allowing for method + * chaining */ public InstallAndroidCertificateDetails type(TypeEnum type) { this.type = type; @@ -125,6 +122,7 @@ public InstallAndroidCertificateDetails type(TypeEnum type) { /** * Type of terminal action: Install an Android certificate. + * * @return type Type of terminal action: Install an Android certificate. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -144,9 +142,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this InstallAndroidCertificateDetails object is equal to o. - */ + /** Return true if this InstallAndroidCertificateDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -155,9 +151,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InstallAndroidCertificateDetails installAndroidCertificateDetails = (InstallAndroidCertificateDetails) o; - return Objects.equals(this.certificateId, installAndroidCertificateDetails.certificateId) && - Objects.equals(this.type, installAndroidCertificateDetails.type); + InstallAndroidCertificateDetails installAndroidCertificateDetails = + (InstallAndroidCertificateDetails) o; + return Objects.equals(this.certificateId, installAndroidCertificateDetails.certificateId) + && Objects.equals(this.type, installAndroidCertificateDetails.type); } @Override @@ -176,8 +173,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +182,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of InstallAndroidCertificateDetails given an JSON string * * @param jsonString JSON string * @return An instance of InstallAndroidCertificateDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to InstallAndroidCertificateDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to + * InstallAndroidCertificateDetails */ - public static InstallAndroidCertificateDetails fromJson(String jsonString) throws JsonProcessingException { + public static InstallAndroidCertificateDetails fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, InstallAndroidCertificateDetails.class); } -/** - * Convert an instance of InstallAndroidCertificateDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of InstallAndroidCertificateDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/InvalidField.java b/src/main/java/com/adyen/model/management/InvalidField.java index 11421e274..fdaa21552 100644 --- a/src/main/java/com/adyen/model/management/InvalidField.java +++ b/src/main/java/com/adyen/model/management/InvalidField.java @@ -2,37 +2,27 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * InvalidField - */ +/** InvalidField */ @JsonPropertyOrder({ InvalidField.JSON_PROPERTY_MESSAGE, InvalidField.JSON_PROPERTY_NAME, InvalidField.JSON_PROPERTY_VALUE }) - public class InvalidField { public static final String JSON_PROPERTY_MESSAGE = "message"; private String message; @@ -43,8 +33,7 @@ public class InvalidField { public static final String JSON_PROPERTY_VALUE = "value"; private String value; - public InvalidField() { - } + public InvalidField() {} /** * Description of the validation error. @@ -59,6 +48,7 @@ public InvalidField message(String message) { /** * Description of the validation error. + * * @return message Description of the validation error. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -91,6 +81,7 @@ public InvalidField name(String name) { /** * The field that has an invalid value. + * * @return name The field that has an invalid value. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -123,6 +114,7 @@ public InvalidField value(String value) { /** * The invalid value. + * * @return value The invalid value. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -142,9 +134,7 @@ public void setValue(String value) { this.value = value; } - /** - * Return true if this InvalidField object is equal to o. - */ + /** Return true if this InvalidField object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +144,9 @@ public boolean equals(Object o) { return false; } InvalidField invalidField = (InvalidField) o; - return Objects.equals(this.message, invalidField.message) && - Objects.equals(this.name, invalidField.name) && - Objects.equals(this.value, invalidField.value); + return Objects.equals(this.message, invalidField.message) + && Objects.equals(this.name, invalidField.name) + && Objects.equals(this.value, invalidField.value); } @Override @@ -176,8 +166,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +175,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of InvalidField given an JSON string * * @param jsonString JSON string @@ -196,11 +185,12 @@ private String toIndentedString(Object o) { public static InvalidField fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, InvalidField.class); } -/** - * Convert an instance of InvalidField to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of InvalidField to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/JCBInfo.java b/src/main/java/com/adyen/model/management/JCBInfo.java index b5bb3b5d4..3b00c0e63 100644 --- a/src/main/java/com/adyen/model/management/JCBInfo.java +++ b/src/main/java/com/adyen/model/management/JCBInfo.java @@ -2,39 +2,32 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.TransactionDescriptionInfo; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * JCBInfo - */ +/** JCBInfo */ @JsonPropertyOrder({ JCBInfo.JSON_PROPERTY_MID_NUMBER, JCBInfo.JSON_PROPERTY_REUSE_MID_NUMBER, JCBInfo.JSON_PROPERTY_SERVICE_LEVEL, JCBInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION }) - public class JCBInfo { public static final String JSON_PROPERTY_MID_NUMBER = "midNumber"; private String midNumber; @@ -43,10 +36,15 @@ public class JCBInfo { private Boolean reuseMidNumber; /** - * Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB for merchants operating in Japan or American Express for merchants operating in Canada, Australia and New Zealand. * **gatewayContract**: JCB or American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Available only for merchants operating in Canada, Australia and New Zealand. Adyen receives the settlement, and handles disputes and payouts. + * Specifies the service level (settlement type) of this payment method. Required for merchants + * operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB for + * merchants operating in Japan or American Express for merchants operating in Canada, Australia + * and New Zealand. * **gatewayContract**: JCB or American Express receives the settlement and + * handles disputes, then pays out to you or your sub-merchant directly. * + * **paymentDesignatorContract**: Available only for merchants operating in Canada, Australia and + * New Zealand. Adyen receives the settlement, and handles disputes and payouts. */ public enum ServiceLevelEnum { - NOCONTRACT(String.valueOf("noContract")), GATEWAYCONTRACT(String.valueOf("gatewayContract")), @@ -58,7 +56,7 @@ public enum ServiceLevelEnum { private String value; ServiceLevelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -79,7 +77,11 @@ public static ServiceLevelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ServiceLevelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ServiceLevelEnum.values())); + LOG.warning( + "ServiceLevelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ServiceLevelEnum.values())); return null; } } @@ -90,13 +92,19 @@ public static ServiceLevelEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANSACTION_DESCRIPTION = "transactionDescription"; private TransactionDescriptionInfo transactionDescription; - public JCBInfo() { - } + public JCBInfo() {} /** - * MID (Merchant ID) number. Required for merchants operating in Japan or merchants operating in Canada, Australia and New Zealand when requesting `gatewayContract` or `paymentDesignatorContract` service levels.Format: 14 numeric characters for Japan, 10 numeric characters for Canada, Australia and New Zealand. + * MID (Merchant ID) number. Required for merchants operating in Japan or merchants operating in + * Canada, Australia and New Zealand when requesting `gatewayContract` or + * `paymentDesignatorContract` service levels.Format: 14 numeric characters for Japan, + * 10 numeric characters for Canada, Australia and New Zealand. * - * @param midNumber MID (Merchant ID) number. Required for merchants operating in Japan or merchants operating in Canada, Australia and New Zealand when requesting `gatewayContract` or `paymentDesignatorContract` service levels.Format: 14 numeric characters for Japan, 10 numeric characters for Canada, Australia and New Zealand. + * @param midNumber MID (Merchant ID) number. Required for merchants operating in Japan or + * merchants operating in Canada, Australia and New Zealand when requesting + * `gatewayContract` or `paymentDesignatorContract` service levels.Format: + * 14 numeric characters for Japan, 10 numeric characters for Canada, Australia and New + * Zealand. * @return the current {@code JCBInfo} instance, allowing for method chaining */ public JCBInfo midNumber(String midNumber) { @@ -105,8 +113,16 @@ public JCBInfo midNumber(String midNumber) { } /** - * MID (Merchant ID) number. Required for merchants operating in Japan or merchants operating in Canada, Australia and New Zealand when requesting `gatewayContract` or `paymentDesignatorContract` service levels.Format: 14 numeric characters for Japan, 10 numeric characters for Canada, Australia and New Zealand. - * @return midNumber MID (Merchant ID) number. Required for merchants operating in Japan or merchants operating in Canada, Australia and New Zealand when requesting `gatewayContract` or `paymentDesignatorContract` service levels.Format: 14 numeric characters for Japan, 10 numeric characters for Canada, Australia and New Zealand. + * MID (Merchant ID) number. Required for merchants operating in Japan or merchants operating in + * Canada, Australia and New Zealand when requesting `gatewayContract` or + * `paymentDesignatorContract` service levels.Format: 14 numeric characters for Japan, + * 10 numeric characters for Canada, Australia and New Zealand. + * + * @return midNumber MID (Merchant ID) number. Required for merchants operating in Japan or + * merchants operating in Canada, Australia and New Zealand when requesting + * `gatewayContract` or `paymentDesignatorContract` service levels.Format: + * 14 numeric characters for Japan, 10 numeric characters for Canada, Australia and New + * Zealand. */ @JsonProperty(JSON_PROPERTY_MID_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,9 +131,16 @@ public String getMidNumber() { } /** - * MID (Merchant ID) number. Required for merchants operating in Japan or merchants operating in Canada, Australia and New Zealand when requesting `gatewayContract` or `paymentDesignatorContract` service levels.Format: 14 numeric characters for Japan, 10 numeric characters for Canada, Australia and New Zealand. + * MID (Merchant ID) number. Required for merchants operating in Japan or merchants operating in + * Canada, Australia and New Zealand when requesting `gatewayContract` or + * `paymentDesignatorContract` service levels.Format: 14 numeric characters for Japan, + * 10 numeric characters for Canada, Australia and New Zealand. * - * @param midNumber MID (Merchant ID) number. Required for merchants operating in Japan or merchants operating in Canada, Australia and New Zealand when requesting `gatewayContract` or `paymentDesignatorContract` service levels.Format: 14 numeric characters for Japan, 10 numeric characters for Canada, Australia and New Zealand. + * @param midNumber MID (Merchant ID) number. Required for merchants operating in Japan or + * merchants operating in Canada, Australia and New Zealand when requesting + * `gatewayContract` or `paymentDesignatorContract` service levels.Format: + * 14 numeric characters for Japan, 10 numeric characters for Canada, Australia and New + * Zealand. */ @JsonProperty(JSON_PROPERTY_MID_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,9 +149,13 @@ public void setMidNumber(String midNumber) { } /** - * Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method. The default value is **false**.For merchants operating in Japan, this field is required and must be set to **true**. + * Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method. The + * default value is **false**.For merchants operating in Japan, this field is required and must be + * set to **true**. * - * @param reuseMidNumber Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method. The default value is **false**.For merchants operating in Japan, this field is required and must be set to **true**. + * @param reuseMidNumber Indicates whether the JCB Merchant ID is reused from a previously setup + * JCB payment method. The default value is **false**.For merchants operating in Japan, this + * field is required and must be set to **true**. * @return the current {@code JCBInfo} instance, allowing for method chaining */ public JCBInfo reuseMidNumber(Boolean reuseMidNumber) { @@ -137,8 +164,13 @@ public JCBInfo reuseMidNumber(Boolean reuseMidNumber) { } /** - * Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method. The default value is **false**.For merchants operating in Japan, this field is required and must be set to **true**. - * @return reuseMidNumber Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method. The default value is **false**.For merchants operating in Japan, this field is required and must be set to **true**. + * Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method. The + * default value is **false**.For merchants operating in Japan, this field is required and must be + * set to **true**. + * + * @return reuseMidNumber Indicates whether the JCB Merchant ID is reused from a previously setup + * JCB payment method. The default value is **false**.For merchants operating in Japan, this + * field is required and must be set to **true**. */ @JsonProperty(JSON_PROPERTY_REUSE_MID_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,9 +179,13 @@ public Boolean getReuseMidNumber() { } /** - * Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method. The default value is **false**.For merchants operating in Japan, this field is required and must be set to **true**. + * Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method. The + * default value is **false**.For merchants operating in Japan, this field is required and must be + * set to **true**. * - * @param reuseMidNumber Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method. The default value is **false**.For merchants operating in Japan, this field is required and must be set to **true**. + * @param reuseMidNumber Indicates whether the JCB Merchant ID is reused from a previously setup + * JCB payment method. The default value is **false**.For merchants operating in Japan, this + * field is required and must be set to **true**. */ @JsonProperty(JSON_PROPERTY_REUSE_MID_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,9 +194,22 @@ public void setReuseMidNumber(Boolean reuseMidNumber) { } /** - * Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB for merchants operating in Japan or American Express for merchants operating in Canada, Australia and New Zealand. * **gatewayContract**: JCB or American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Available only for merchants operating in Canada, Australia and New Zealand. Adyen receives the settlement, and handles disputes and payouts. + * Specifies the service level (settlement type) of this payment method. Required for merchants + * operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB for + * merchants operating in Japan or American Express for merchants operating in Canada, Australia + * and New Zealand. * **gatewayContract**: JCB or American Express receives the settlement and + * handles disputes, then pays out to you or your sub-merchant directly. * + * **paymentDesignatorContract**: Available only for merchants operating in Canada, Australia and + * New Zealand. Adyen receives the settlement, and handles disputes and payouts. * - * @param serviceLevel Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB for merchants operating in Japan or American Express for merchants operating in Canada, Australia and New Zealand. * **gatewayContract**: JCB or American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Available only for merchants operating in Canada, Australia and New Zealand. Adyen receives the settlement, and handles disputes and payouts. + * @param serviceLevel Specifies the service level (settlement type) of this payment method. + * Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds + * the contract with JCB for merchants operating in Japan or American Express for merchants + * operating in Canada, Australia and New Zealand. * **gatewayContract**: JCB or American + * Express receives the settlement and handles disputes, then pays out to you or your + * sub-merchant directly. * **paymentDesignatorContract**: Available only for merchants + * operating in Canada, Australia and New Zealand. Adyen receives the settlement, and handles + * disputes and payouts. * @return the current {@code JCBInfo} instance, allowing for method chaining */ public JCBInfo serviceLevel(ServiceLevelEnum serviceLevel) { @@ -169,8 +218,22 @@ public JCBInfo serviceLevel(ServiceLevelEnum serviceLevel) { } /** - * Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB for merchants operating in Japan or American Express for merchants operating in Canada, Australia and New Zealand. * **gatewayContract**: JCB or American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Available only for merchants operating in Canada, Australia and New Zealand. Adyen receives the settlement, and handles disputes and payouts. - * @return serviceLevel Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB for merchants operating in Japan or American Express for merchants operating in Canada, Australia and New Zealand. * **gatewayContract**: JCB or American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Available only for merchants operating in Canada, Australia and New Zealand. Adyen receives the settlement, and handles disputes and payouts. + * Specifies the service level (settlement type) of this payment method. Required for merchants + * operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB for + * merchants operating in Japan or American Express for merchants operating in Canada, Australia + * and New Zealand. * **gatewayContract**: JCB or American Express receives the settlement and + * handles disputes, then pays out to you or your sub-merchant directly. * + * **paymentDesignatorContract**: Available only for merchants operating in Canada, Australia and + * New Zealand. Adyen receives the settlement, and handles disputes and payouts. + * + * @return serviceLevel Specifies the service level (settlement type) of this payment method. + * Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds + * the contract with JCB for merchants operating in Japan or American Express for merchants + * operating in Canada, Australia and New Zealand. * **gatewayContract**: JCB or American + * Express receives the settlement and handles disputes, then pays out to you or your + * sub-merchant directly. * **paymentDesignatorContract**: Available only for merchants + * operating in Canada, Australia and New Zealand. Adyen receives the settlement, and handles + * disputes and payouts. */ @JsonProperty(JSON_PROPERTY_SERVICE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,9 +242,22 @@ public ServiceLevelEnum getServiceLevel() { } /** - * Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB for merchants operating in Japan or American Express for merchants operating in Canada, Australia and New Zealand. * **gatewayContract**: JCB or American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Available only for merchants operating in Canada, Australia and New Zealand. Adyen receives the settlement, and handles disputes and payouts. + * Specifies the service level (settlement type) of this payment method. Required for merchants + * operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB for + * merchants operating in Japan or American Express for merchants operating in Canada, Australia + * and New Zealand. * **gatewayContract**: JCB or American Express receives the settlement and + * handles disputes, then pays out to you or your sub-merchant directly. * + * **paymentDesignatorContract**: Available only for merchants operating in Canada, Australia and + * New Zealand. Adyen receives the settlement, and handles disputes and payouts. * - * @param serviceLevel Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB for merchants operating in Japan or American Express for merchants operating in Canada, Australia and New Zealand. * **gatewayContract**: JCB or American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Available only for merchants operating in Canada, Australia and New Zealand. Adyen receives the settlement, and handles disputes and payouts. + * @param serviceLevel Specifies the service level (settlement type) of this payment method. + * Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds + * the contract with JCB for merchants operating in Japan or American Express for merchants + * operating in Canada, Australia and New Zealand. * **gatewayContract**: JCB or American + * Express receives the settlement and handles disputes, then pays out to you or your + * sub-merchant directly. * **paymentDesignatorContract**: Available only for merchants + * operating in Canada, Australia and New Zealand. Adyen receives the settlement, and handles + * disputes and payouts. */ @JsonProperty(JSON_PROPERTY_SERVICE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,7 +268,7 @@ public void setServiceLevel(ServiceLevelEnum serviceLevel) { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription * @return the current {@code JCBInfo} instance, allowing for method chaining */ public JCBInfo transactionDescription(TransactionDescriptionInfo transactionDescription) { @@ -202,7 +278,8 @@ public JCBInfo transactionDescription(TransactionDescriptionInfo transactionDesc /** * Get transactionDescription - * @return transactionDescription + * + * @return transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -213,7 +290,7 @@ public TransactionDescriptionInfo getTransactionDescription() { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,9 +298,7 @@ public void setTransactionDescription(TransactionDescriptionInfo transactionDesc this.transactionDescription = transactionDescription; } - /** - * Return true if this JCBInfo object is equal to o. - */ + /** Return true if this JCBInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -233,10 +308,10 @@ public boolean equals(Object o) { return false; } JCBInfo jcBInfo = (JCBInfo) o; - return Objects.equals(this.midNumber, jcBInfo.midNumber) && - Objects.equals(this.reuseMidNumber, jcBInfo.reuseMidNumber) && - Objects.equals(this.serviceLevel, jcBInfo.serviceLevel) && - Objects.equals(this.transactionDescription, jcBInfo.transactionDescription); + return Objects.equals(this.midNumber, jcBInfo.midNumber) + && Objects.equals(this.reuseMidNumber, jcBInfo.reuseMidNumber) + && Objects.equals(this.serviceLevel, jcBInfo.serviceLevel) + && Objects.equals(this.transactionDescription, jcBInfo.transactionDescription); } @Override @@ -251,14 +326,15 @@ public String toString() { sb.append(" midNumber: ").append(toIndentedString(midNumber)).append("\n"); sb.append(" reuseMidNumber: ").append(toIndentedString(reuseMidNumber)).append("\n"); sb.append(" serviceLevel: ").append(toIndentedString(serviceLevel)).append("\n"); - sb.append(" transactionDescription: ").append(toIndentedString(transactionDescription)).append("\n"); + sb.append(" transactionDescription: ") + .append(toIndentedString(transactionDescription)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -267,7 +343,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of JCBInfo given an JSON string * * @param jsonString JSON string @@ -277,11 +353,12 @@ private String toIndentedString(Object o) { public static JCBInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, JCBInfo.class); } -/** - * Convert an instance of JCBInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of JCBInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/JSON.java b/src/main/java/com/adyen/model/management/JSON.java index d2eea1607..e7636df03 100644 --- a/src/main/java/com/adyen/model/management/JSON.java +++ b/src/main/java/com/adyen/model/management/JSON.java @@ -1,21 +1,18 @@ package com.adyen.model.management; -import com.adyen.serializer.ByteArraySerializer; import com.adyen.serializer.ByteArrayDeserializer; +import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import com.adyen.model.management.*; - +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -40,6 +37,7 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. + * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -56,11 +54,13 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { return mapper; } + public static ObjectMapper getMapper() { + return mapper; + } /** - * Returns the target model class that should be used to deserialize the input data. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,9 +73,7 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** - * Helper class to register the discriminator mappings. - */ + /** Helper class to register the discriminator mappings. */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -117,9 +115,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. - * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. This + * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -164,13 +162,14 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, - * so it's not possible to use the instanceof keyword. + *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so + * it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf( + Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -194,59 +193,58 @@ public static boolean isInstanceOf(Class modelClass, Object inst, Set, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); + /** A map of discriminators for all model classes. */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = + new HashMap, ClassDiscriminatorMapping>(); - /** - * A map of oneOf/anyOf descendants for each model class. - */ + /** A map of oneOf/anyOf descendants for each model class. */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator( + Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = + new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants(Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants( + Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static - { + static { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/management/Key.java b/src/main/java/com/adyen/model/management/Key.java index c1e3405b9..1c23741fd 100644 --- a/src/main/java/com/adyen/model/management/Key.java +++ b/src/main/java/com/adyen/model/management/Key.java @@ -2,37 +2,27 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Key - */ +/** Key */ @JsonPropertyOrder({ Key.JSON_PROPERTY_IDENTIFIER, Key.JSON_PROPERTY_PASSPHRASE, Key.JSON_PROPERTY_VERSION }) - public class Key { public static final String JSON_PROPERTY_IDENTIFIER = "identifier"; private String identifier; @@ -43,8 +33,7 @@ public class Key { public static final String JSON_PROPERTY_VERSION = "version"; private Integer version; - public Key() { - } + public Key() {} /** * The unique identifier of the shared key. @@ -59,6 +48,7 @@ public Key identifier(String identifier) { /** * The unique identifier of the shared key. + * * @return identifier The unique identifier of the shared key. */ @JsonProperty(JSON_PROPERTY_IDENTIFIER) @@ -79,9 +69,23 @@ public void setIdentifier(String identifier) { } /** - * The secure passphrase to protect the shared key. Must consist of: * At least 12 characters. * At least 1 uppercase letter: `[A-Z]`. * At least 1 lowercase letter: `[a-z]`. * At least 1 digit: `[0-9]`. * At least 1 special character. Limited to the following: `~`, `@`, `$`, `%`, `^`, `&`, `*`, `(`, `)`, `_`, `+`, `=`, `}`, `{`, `]`, `[`, `;`, `:`, `?`, `.`, `,`, `>`, `<`. + * The secure passphrase to protect the shared key. Must consist of: * At least 12 characters. * + * At least 1 uppercase letter: `[A-Z]`. * At least 1 lowercase letter: + * `[a-z]`. * At least 1 digit: `[0-9]`. * At least 1 special character. + * Limited to the following: `~`, `@`, `$`, `%`, + * `^`, `&`, `*`, `(`, `)`, `_`, + * `+`, `=`, `}`, `{`, `]`, `[`, + * `;`, `:`, `?`, `.`, `,`, `>`, + * `<`. * - * @param passphrase The secure passphrase to protect the shared key. Must consist of: * At least 12 characters. * At least 1 uppercase letter: `[A-Z]`. * At least 1 lowercase letter: `[a-z]`. * At least 1 digit: `[0-9]`. * At least 1 special character. Limited to the following: `~`, `@`, `$`, `%`, `^`, `&`, `*`, `(`, `)`, `_`, `+`, `=`, `}`, `{`, `]`, `[`, `;`, `:`, `?`, `.`, `,`, `>`, `<`. + * @param passphrase The secure passphrase to protect the shared key. Must consist of: * At least + * 12 characters. * At least 1 uppercase letter: `[A-Z]`. * At least 1 lowercase + * letter: `[a-z]`. * At least 1 digit: `[0-9]`. * At least 1 special + * character. Limited to the following: `~`, `@`, `$`, + * `%`, `^`, `&`, `*`, `(`, + * `)`, `_`, `+`, `=`, `}`, + * `{`, `]`, `[`, `;`, `:`, `?`, + * `.`, `,`, `>`, `<`. * @return the current {@code Key} instance, allowing for method chaining */ public Key passphrase(String passphrase) { @@ -90,8 +94,23 @@ public Key passphrase(String passphrase) { } /** - * The secure passphrase to protect the shared key. Must consist of: * At least 12 characters. * At least 1 uppercase letter: `[A-Z]`. * At least 1 lowercase letter: `[a-z]`. * At least 1 digit: `[0-9]`. * At least 1 special character. Limited to the following: `~`, `@`, `$`, `%`, `^`, `&`, `*`, `(`, `)`, `_`, `+`, `=`, `}`, `{`, `]`, `[`, `;`, `:`, `?`, `.`, `,`, `>`, `<`. - * @return passphrase The secure passphrase to protect the shared key. Must consist of: * At least 12 characters. * At least 1 uppercase letter: `[A-Z]`. * At least 1 lowercase letter: `[a-z]`. * At least 1 digit: `[0-9]`. * At least 1 special character. Limited to the following: `~`, `@`, `$`, `%`, `^`, `&`, `*`, `(`, `)`, `_`, `+`, `=`, `}`, `{`, `]`, `[`, `;`, `:`, `?`, `.`, `,`, `>`, `<`. + * The secure passphrase to protect the shared key. Must consist of: * At least 12 characters. * + * At least 1 uppercase letter: `[A-Z]`. * At least 1 lowercase letter: + * `[a-z]`. * At least 1 digit: `[0-9]`. * At least 1 special character. + * Limited to the following: `~`, `@`, `$`, `%`, + * `^`, `&`, `*`, `(`, `)`, `_`, + * `+`, `=`, `}`, `{`, `]`, `[`, + * `;`, `:`, `?`, `.`, `,`, `>`, + * `<`. + * + * @return passphrase The secure passphrase to protect the shared key. Must consist of: * At least + * 12 characters. * At least 1 uppercase letter: `[A-Z]`. * At least 1 lowercase + * letter: `[a-z]`. * At least 1 digit: `[0-9]`. * At least 1 special + * character. Limited to the following: `~`, `@`, `$`, + * `%`, `^`, `&`, `*`, `(`, + * `)`, `_`, `+`, `=`, `}`, + * `{`, `]`, `[`, `;`, `:`, `?`, + * `.`, `,`, `>`, `<`. */ @JsonProperty(JSON_PROPERTY_PASSPHRASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,9 +119,23 @@ public String getPassphrase() { } /** - * The secure passphrase to protect the shared key. Must consist of: * At least 12 characters. * At least 1 uppercase letter: `[A-Z]`. * At least 1 lowercase letter: `[a-z]`. * At least 1 digit: `[0-9]`. * At least 1 special character. Limited to the following: `~`, `@`, `$`, `%`, `^`, `&`, `*`, `(`, `)`, `_`, `+`, `=`, `}`, `{`, `]`, `[`, `;`, `:`, `?`, `.`, `,`, `>`, `<`. + * The secure passphrase to protect the shared key. Must consist of: * At least 12 characters. * + * At least 1 uppercase letter: `[A-Z]`. * At least 1 lowercase letter: + * `[a-z]`. * At least 1 digit: `[0-9]`. * At least 1 special character. + * Limited to the following: `~`, `@`, `$`, `%`, + * `^`, `&`, `*`, `(`, `)`, `_`, + * `+`, `=`, `}`, `{`, `]`, `[`, + * `;`, `:`, `?`, `.`, `,`, `>`, + * `<`. * - * @param passphrase The secure passphrase to protect the shared key. Must consist of: * At least 12 characters. * At least 1 uppercase letter: `[A-Z]`. * At least 1 lowercase letter: `[a-z]`. * At least 1 digit: `[0-9]`. * At least 1 special character. Limited to the following: `~`, `@`, `$`, `%`, `^`, `&`, `*`, `(`, `)`, `_`, `+`, `=`, `}`, `{`, `]`, `[`, `;`, `:`, `?`, `.`, `,`, `>`, `<`. + * @param passphrase The secure passphrase to protect the shared key. Must consist of: * At least + * 12 characters. * At least 1 uppercase letter: `[A-Z]`. * At least 1 lowercase + * letter: `[a-z]`. * At least 1 digit: `[0-9]`. * At least 1 special + * character. Limited to the following: `~`, `@`, `$`, + * `%`, `^`, `&`, `*`, `(`, + * `)`, `_`, `+`, `=`, `}`, + * `{`, `]`, `[`, `;`, `:`, `?`, + * `.`, `,`, `>`, `<`. */ @JsonProperty(JSON_PROPERTY_PASSPHRASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,6 +156,7 @@ public Key version(Integer version) { /** * The version number of the shared key. + * * @return version The version number of the shared key. */ @JsonProperty(JSON_PROPERTY_VERSION) @@ -142,9 +176,7 @@ public void setVersion(Integer version) { this.version = version; } - /** - * Return true if this Key object is equal to o. - */ + /** Return true if this Key object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +186,9 @@ public boolean equals(Object o) { return false; } Key key = (Key) o; - return Objects.equals(this.identifier, key.identifier) && - Objects.equals(this.passphrase, key.passphrase) && - Objects.equals(this.version, key.version); + return Objects.equals(this.identifier, key.identifier) + && Objects.equals(this.passphrase, key.passphrase) + && Objects.equals(this.version, key.version); } @Override @@ -176,8 +208,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +217,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Key given an JSON string * * @param jsonString JSON string @@ -196,11 +227,12 @@ private String toIndentedString(Object o) { public static Key fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Key.class); } -/** - * Convert an instance of Key to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Key to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/KlarnaInfo.java b/src/main/java/com/adyen/model/management/KlarnaInfo.java index 8559766cd..edf6c51e5 100644 --- a/src/main/java/com/adyen/model/management/KlarnaInfo.java +++ b/src/main/java/com/adyen/model/management/KlarnaInfo.java @@ -2,38 +2,32 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * KlarnaInfo - */ +/** KlarnaInfo */ @JsonPropertyOrder({ KlarnaInfo.JSON_PROPERTY_AUTO_CAPTURE, KlarnaInfo.JSON_PROPERTY_DISPUTE_EMAIL, KlarnaInfo.JSON_PROPERTY_REGION, KlarnaInfo.JSON_PROPERTY_SUPPORT_EMAIL }) - public class KlarnaInfo { public static final String JSON_PROPERTY_AUTO_CAPTURE = "autoCapture"; private Boolean autoCapture; @@ -41,11 +35,8 @@ public class KlarnaInfo { public static final String JSON_PROPERTY_DISPUTE_EMAIL = "disputeEmail"; private String disputeEmail; - /** - * The region of operation. For example, **NA**, **EU**, **CH**, **AU**. - */ + /** The region of operation. For example, **NA**, **EU**, **CH**, **AU**. */ public enum RegionEnum { - NA(String.valueOf("NA")), EU(String.valueOf("EU")), @@ -59,7 +50,7 @@ public enum RegionEnum { private String value; RegionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -80,7 +71,11 @@ public static RegionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("RegionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RegionEnum.values())); + LOG.warning( + "RegionEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(RegionEnum.values())); return null; } } @@ -91,13 +86,16 @@ public static RegionEnum fromValue(String value) { public static final String JSON_PROPERTY_SUPPORT_EMAIL = "supportEmail"; private String supportEmail; - public KlarnaInfo() { - } + public KlarnaInfo() {} /** - * Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture). Default value: **false**. + * Indicates the status of [Automatic + * capture](https://docs.adyen.com/online-payments/capture#automatic-capture). Default value: + * **false**. * - * @param autoCapture Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture). Default value: **false**. + * @param autoCapture Indicates the status of [Automatic + * capture](https://docs.adyen.com/online-payments/capture#automatic-capture). Default value: + * **false**. * @return the current {@code KlarnaInfo} instance, allowing for method chaining */ public KlarnaInfo autoCapture(Boolean autoCapture) { @@ -106,8 +104,13 @@ public KlarnaInfo autoCapture(Boolean autoCapture) { } /** - * Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture). Default value: **false**. - * @return autoCapture Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture). Default value: **false**. + * Indicates the status of [Automatic + * capture](https://docs.adyen.com/online-payments/capture#automatic-capture). Default value: + * **false**. + * + * @return autoCapture Indicates the status of [Automatic + * capture](https://docs.adyen.com/online-payments/capture#automatic-capture). Default value: + * **false**. */ @JsonProperty(JSON_PROPERTY_AUTO_CAPTURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,9 +119,13 @@ public Boolean getAutoCapture() { } /** - * Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture). Default value: **false**. + * Indicates the status of [Automatic + * capture](https://docs.adyen.com/online-payments/capture#automatic-capture). Default value: + * **false**. * - * @param autoCapture Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture). Default value: **false**. + * @param autoCapture Indicates the status of [Automatic + * capture](https://docs.adyen.com/online-payments/capture#automatic-capture). Default value: + * **false**. */ @JsonProperty(JSON_PROPERTY_AUTO_CAPTURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,6 +146,7 @@ public KlarnaInfo disputeEmail(String disputeEmail) { /** * The email address for disputes. + * * @return disputeEmail The email address for disputes. */ @JsonProperty(JSON_PROPERTY_DISPUTE_EMAIL) @@ -171,6 +179,7 @@ public KlarnaInfo region(RegionEnum region) { /** * The region of operation. For example, **NA**, **EU**, **CH**, **AU**. + * * @return region The region of operation. For example, **NA**, **EU**, **CH**, **AU**. */ @JsonProperty(JSON_PROPERTY_REGION) @@ -203,6 +212,7 @@ public KlarnaInfo supportEmail(String supportEmail) { /** * The email address of merchant support. + * * @return supportEmail The email address of merchant support. */ @JsonProperty(JSON_PROPERTY_SUPPORT_EMAIL) @@ -222,9 +232,7 @@ public void setSupportEmail(String supportEmail) { this.supportEmail = supportEmail; } - /** - * Return true if this KlarnaInfo object is equal to o. - */ + /** Return true if this KlarnaInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -234,10 +242,10 @@ public boolean equals(Object o) { return false; } KlarnaInfo klarnaInfo = (KlarnaInfo) o; - return Objects.equals(this.autoCapture, klarnaInfo.autoCapture) && - Objects.equals(this.disputeEmail, klarnaInfo.disputeEmail) && - Objects.equals(this.region, klarnaInfo.region) && - Objects.equals(this.supportEmail, klarnaInfo.supportEmail); + return Objects.equals(this.autoCapture, klarnaInfo.autoCapture) + && Objects.equals(this.disputeEmail, klarnaInfo.disputeEmail) + && Objects.equals(this.region, klarnaInfo.region) + && Objects.equals(this.supportEmail, klarnaInfo.supportEmail); } @Override @@ -258,8 +266,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -268,7 +275,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of KlarnaInfo given an JSON string * * @param jsonString JSON string @@ -278,11 +285,12 @@ private String toIndentedString(Object o) { public static KlarnaInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, KlarnaInfo.class); } -/** - * Convert an instance of KlarnaInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of KlarnaInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Links.java b/src/main/java/com/adyen/model/management/Links.java index 62e2bf7ef..731c2c4a2 100644 --- a/src/main/java/com/adyen/model/management/Links.java +++ b/src/main/java/com/adyen/model/management/Links.java @@ -2,47 +2,33 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.LinksElement; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Links - */ -@JsonPropertyOrder({ - Links.JSON_PROPERTY_SELF -}) - +/** Links */ +@JsonPropertyOrder({Links.JSON_PROPERTY_SELF}) public class Links { public static final String JSON_PROPERTY_SELF = "self"; private LinksElement self; - public Links() { - } + public Links() {} /** * self * - * @param self + * @param self * @return the current {@code Links} instance, allowing for method chaining */ public Links self(LinksElement self) { @@ -52,7 +38,8 @@ public Links self(LinksElement self) { /** * Get self - * @return self + * + * @return self */ @JsonProperty(JSON_PROPERTY_SELF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,7 +50,7 @@ public LinksElement getSelf() { /** * self * - * @param self + * @param self */ @JsonProperty(JSON_PROPERTY_SELF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,9 +58,7 @@ public void setSelf(LinksElement self) { this.self = self; } - /** - * Return true if this Links object is equal to o. - */ + /** Return true if this Links object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -101,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -111,7 +95,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Links given an JSON string * * @param jsonString JSON string @@ -121,11 +105,12 @@ private String toIndentedString(Object o) { public static Links fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Links.class); } -/** - * Convert an instance of Links to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Links to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/LinksElement.java b/src/main/java/com/adyen/model/management/LinksElement.java index 9315dd2f4..c8635f861 100644 --- a/src/main/java/com/adyen/model/management/LinksElement.java +++ b/src/main/java/com/adyen/model/management/LinksElement.java @@ -2,46 +2,33 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * LinksElement - */ -@JsonPropertyOrder({ - LinksElement.JSON_PROPERTY_HREF -}) - +/** LinksElement */ +@JsonPropertyOrder({LinksElement.JSON_PROPERTY_HREF}) public class LinksElement { public static final String JSON_PROPERTY_HREF = "href"; private String href; - public LinksElement() { - } + public LinksElement() {} /** * href * - * @param href + * @param href * @return the current {@code LinksElement} instance, allowing for method chaining */ public LinksElement href(String href) { @@ -51,7 +38,8 @@ public LinksElement href(String href) { /** * Get href - * @return href + * + * @return href */ @JsonProperty(JSON_PROPERTY_HREF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -62,7 +50,7 @@ public String getHref() { /** * href * - * @param href + * @param href */ @JsonProperty(JSON_PROPERTY_HREF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +58,7 @@ public void setHref(String href) { this.href = href; } - /** - * Return true if this LinksElement object is equal to o. - */ + /** Return true if this LinksElement object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,7 +95,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of LinksElement given an JSON string * * @param jsonString JSON string @@ -120,11 +105,12 @@ private String toIndentedString(Object o) { public static LinksElement fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, LinksElement.class); } -/** - * Convert an instance of LinksElement to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of LinksElement to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ListCompanyApiCredentialsResponse.java b/src/main/java/com/adyen/model/management/ListCompanyApiCredentialsResponse.java index dfe34ab4c..4553fc5a3 100644 --- a/src/main/java/com/adyen/model/management/ListCompanyApiCredentialsResponse.java +++ b/src/main/java/com/adyen/model/management/ListCompanyApiCredentialsResponse.java @@ -2,42 +2,30 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.CompanyApiCredential; -import com.adyen.model.management.PaginationLinks; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * ListCompanyApiCredentialsResponse - */ +/** ListCompanyApiCredentialsResponse */ @JsonPropertyOrder({ ListCompanyApiCredentialsResponse.JSON_PROPERTY_LINKS, ListCompanyApiCredentialsResponse.JSON_PROPERTY_DATA, ListCompanyApiCredentialsResponse.JSON_PROPERTY_ITEMS_TOTAL, ListCompanyApiCredentialsResponse.JSON_PROPERTY_PAGES_TOTAL }) - public class ListCompanyApiCredentialsResponse { public static final String JSON_PROPERTY_LINKS = "_links"; private PaginationLinks links; @@ -51,14 +39,14 @@ public class ListCompanyApiCredentialsResponse { public static final String JSON_PROPERTY_PAGES_TOTAL = "pagesTotal"; private Integer pagesTotal; - public ListCompanyApiCredentialsResponse() { - } + public ListCompanyApiCredentialsResponse() {} /** * links * - * @param links - * @return the current {@code ListCompanyApiCredentialsResponse} instance, allowing for method chaining + * @param links + * @return the current {@code ListCompanyApiCredentialsResponse} instance, allowing for method + * chaining */ public ListCompanyApiCredentialsResponse links(PaginationLinks links) { this.links = links; @@ -67,7 +55,8 @@ public ListCompanyApiCredentialsResponse links(PaginationLinks links) { /** * Get links - * @return links + * + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -78,7 +67,7 @@ public PaginationLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -90,7 +79,8 @@ public void setLinks(PaginationLinks links) { * The list of API credentials. * * @param data The list of API credentials. - * @return the current {@code ListCompanyApiCredentialsResponse} instance, allowing for method chaining + * @return the current {@code ListCompanyApiCredentialsResponse} instance, allowing for method + * chaining */ public ListCompanyApiCredentialsResponse data(List data) { this.data = data; @@ -107,6 +97,7 @@ public ListCompanyApiCredentialsResponse addDataItem(CompanyApiCredential dataIt /** * The list of API credentials. + * * @return data The list of API credentials. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -130,7 +121,8 @@ public void setData(List data) { * Total number of items. * * @param itemsTotal Total number of items. - * @return the current {@code ListCompanyApiCredentialsResponse} instance, allowing for method chaining + * @return the current {@code ListCompanyApiCredentialsResponse} instance, allowing for method + * chaining */ public ListCompanyApiCredentialsResponse itemsTotal(Integer itemsTotal) { this.itemsTotal = itemsTotal; @@ -139,6 +131,7 @@ public ListCompanyApiCredentialsResponse itemsTotal(Integer itemsTotal) { /** * Total number of items. + * * @return itemsTotal Total number of items. */ @JsonProperty(JSON_PROPERTY_ITEMS_TOTAL) @@ -162,7 +155,8 @@ public void setItemsTotal(Integer itemsTotal) { * Total number of pages. * * @param pagesTotal Total number of pages. - * @return the current {@code ListCompanyApiCredentialsResponse} instance, allowing for method chaining + * @return the current {@code ListCompanyApiCredentialsResponse} instance, allowing for method + * chaining */ public ListCompanyApiCredentialsResponse pagesTotal(Integer pagesTotal) { this.pagesTotal = pagesTotal; @@ -171,6 +165,7 @@ public ListCompanyApiCredentialsResponse pagesTotal(Integer pagesTotal) { /** * Total number of pages. + * * @return pagesTotal Total number of pages. */ @JsonProperty(JSON_PROPERTY_PAGES_TOTAL) @@ -190,9 +185,7 @@ public void setPagesTotal(Integer pagesTotal) { this.pagesTotal = pagesTotal; } - /** - * Return true if this ListCompanyApiCredentialsResponse object is equal to o. - */ + /** Return true if this ListCompanyApiCredentialsResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -201,11 +194,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ListCompanyApiCredentialsResponse listCompanyApiCredentialsResponse = (ListCompanyApiCredentialsResponse) o; - return Objects.equals(this.links, listCompanyApiCredentialsResponse.links) && - Objects.equals(this.data, listCompanyApiCredentialsResponse.data) && - Objects.equals(this.itemsTotal, listCompanyApiCredentialsResponse.itemsTotal) && - Objects.equals(this.pagesTotal, listCompanyApiCredentialsResponse.pagesTotal); + ListCompanyApiCredentialsResponse listCompanyApiCredentialsResponse = + (ListCompanyApiCredentialsResponse) o; + return Objects.equals(this.links, listCompanyApiCredentialsResponse.links) + && Objects.equals(this.data, listCompanyApiCredentialsResponse.data) + && Objects.equals(this.itemsTotal, listCompanyApiCredentialsResponse.itemsTotal) + && Objects.equals(this.pagesTotal, listCompanyApiCredentialsResponse.pagesTotal); } @Override @@ -226,8 +220,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -236,21 +229,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ListCompanyApiCredentialsResponse given an JSON string * * @param jsonString JSON string * @return An instance of ListCompanyApiCredentialsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to ListCompanyApiCredentialsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ListCompanyApiCredentialsResponse */ - public static ListCompanyApiCredentialsResponse fromJson(String jsonString) throws JsonProcessingException { + public static ListCompanyApiCredentialsResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ListCompanyApiCredentialsResponse.class); } -/** - * Convert an instance of ListCompanyApiCredentialsResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ListCompanyApiCredentialsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ListCompanyResponse.java b/src/main/java/com/adyen/model/management/ListCompanyResponse.java index 5627e23b4..31433449a 100644 --- a/src/main/java/com/adyen/model/management/ListCompanyResponse.java +++ b/src/main/java/com/adyen/model/management/ListCompanyResponse.java @@ -2,42 +2,30 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.Company; -import com.adyen.model.management.PaginationLinks; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * ListCompanyResponse - */ +/** ListCompanyResponse */ @JsonPropertyOrder({ ListCompanyResponse.JSON_PROPERTY_LINKS, ListCompanyResponse.JSON_PROPERTY_DATA, ListCompanyResponse.JSON_PROPERTY_ITEMS_TOTAL, ListCompanyResponse.JSON_PROPERTY_PAGES_TOTAL }) - public class ListCompanyResponse { public static final String JSON_PROPERTY_LINKS = "_links"; private PaginationLinks links; @@ -51,13 +39,12 @@ public class ListCompanyResponse { public static final String JSON_PROPERTY_PAGES_TOTAL = "pagesTotal"; private Integer pagesTotal; - public ListCompanyResponse() { - } + public ListCompanyResponse() {} /** * links * - * @param links + * @param links * @return the current {@code ListCompanyResponse} instance, allowing for method chaining */ public ListCompanyResponse links(PaginationLinks links) { @@ -67,7 +54,8 @@ public ListCompanyResponse links(PaginationLinks links) { /** * Get links - * @return links + * + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -78,7 +66,7 @@ public PaginationLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,6 +95,7 @@ public ListCompanyResponse addDataItem(Company dataItem) { /** * The list of companies. + * * @return data The list of companies. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -139,6 +128,7 @@ public ListCompanyResponse itemsTotal(Integer itemsTotal) { /** * Total number of items. + * * @return itemsTotal Total number of items. */ @JsonProperty(JSON_PROPERTY_ITEMS_TOTAL) @@ -171,6 +161,7 @@ public ListCompanyResponse pagesTotal(Integer pagesTotal) { /** * Total number of pages. + * * @return pagesTotal Total number of pages. */ @JsonProperty(JSON_PROPERTY_PAGES_TOTAL) @@ -190,9 +181,7 @@ public void setPagesTotal(Integer pagesTotal) { this.pagesTotal = pagesTotal; } - /** - * Return true if this ListCompanyResponse object is equal to o. - */ + /** Return true if this ListCompanyResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -202,10 +191,10 @@ public boolean equals(Object o) { return false; } ListCompanyResponse listCompanyResponse = (ListCompanyResponse) o; - return Objects.equals(this.links, listCompanyResponse.links) && - Objects.equals(this.data, listCompanyResponse.data) && - Objects.equals(this.itemsTotal, listCompanyResponse.itemsTotal) && - Objects.equals(this.pagesTotal, listCompanyResponse.pagesTotal); + return Objects.equals(this.links, listCompanyResponse.links) + && Objects.equals(this.data, listCompanyResponse.data) + && Objects.equals(this.itemsTotal, listCompanyResponse.itemsTotal) + && Objects.equals(this.pagesTotal, listCompanyResponse.pagesTotal); } @Override @@ -226,8 +215,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -236,21 +224,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ListCompanyResponse given an JSON string * * @param jsonString JSON string * @return An instance of ListCompanyResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to ListCompanyResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ListCompanyResponse */ public static ListCompanyResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ListCompanyResponse.class); } -/** - * Convert an instance of ListCompanyResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ListCompanyResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ListCompanyUsersResponse.java b/src/main/java/com/adyen/model/management/ListCompanyUsersResponse.java index 88bc15b62..cdf2f1f38 100644 --- a/src/main/java/com/adyen/model/management/ListCompanyUsersResponse.java +++ b/src/main/java/com/adyen/model/management/ListCompanyUsersResponse.java @@ -2,42 +2,30 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.CompanyUser; -import com.adyen.model.management.PaginationLinks; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * ListCompanyUsersResponse - */ +/** ListCompanyUsersResponse */ @JsonPropertyOrder({ ListCompanyUsersResponse.JSON_PROPERTY_LINKS, ListCompanyUsersResponse.JSON_PROPERTY_DATA, ListCompanyUsersResponse.JSON_PROPERTY_ITEMS_TOTAL, ListCompanyUsersResponse.JSON_PROPERTY_PAGES_TOTAL }) - public class ListCompanyUsersResponse { public static final String JSON_PROPERTY_LINKS = "_links"; private PaginationLinks links; @@ -51,13 +39,12 @@ public class ListCompanyUsersResponse { public static final String JSON_PROPERTY_PAGES_TOTAL = "pagesTotal"; private Integer pagesTotal; - public ListCompanyUsersResponse() { - } + public ListCompanyUsersResponse() {} /** * links * - * @param links + * @param links * @return the current {@code ListCompanyUsersResponse} instance, allowing for method chaining */ public ListCompanyUsersResponse links(PaginationLinks links) { @@ -67,7 +54,8 @@ public ListCompanyUsersResponse links(PaginationLinks links) { /** * Get links - * @return links + * + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -78,7 +66,7 @@ public PaginationLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,6 +95,7 @@ public ListCompanyUsersResponse addDataItem(CompanyUser dataItem) { /** * The list of users. + * * @return data The list of users. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -139,6 +128,7 @@ public ListCompanyUsersResponse itemsTotal(Integer itemsTotal) { /** * Total number of items. + * * @return itemsTotal Total number of items. */ @JsonProperty(JSON_PROPERTY_ITEMS_TOTAL) @@ -171,6 +161,7 @@ public ListCompanyUsersResponse pagesTotal(Integer pagesTotal) { /** * Total number of pages. + * * @return pagesTotal Total number of pages. */ @JsonProperty(JSON_PROPERTY_PAGES_TOTAL) @@ -190,9 +181,7 @@ public void setPagesTotal(Integer pagesTotal) { this.pagesTotal = pagesTotal; } - /** - * Return true if this ListCompanyUsersResponse object is equal to o. - */ + /** Return true if this ListCompanyUsersResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -202,10 +191,10 @@ public boolean equals(Object o) { return false; } ListCompanyUsersResponse listCompanyUsersResponse = (ListCompanyUsersResponse) o; - return Objects.equals(this.links, listCompanyUsersResponse.links) && - Objects.equals(this.data, listCompanyUsersResponse.data) && - Objects.equals(this.itemsTotal, listCompanyUsersResponse.itemsTotal) && - Objects.equals(this.pagesTotal, listCompanyUsersResponse.pagesTotal); + return Objects.equals(this.links, listCompanyUsersResponse.links) + && Objects.equals(this.data, listCompanyUsersResponse.data) + && Objects.equals(this.itemsTotal, listCompanyUsersResponse.itemsTotal) + && Objects.equals(this.pagesTotal, listCompanyUsersResponse.pagesTotal); } @Override @@ -226,8 +215,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -236,21 +224,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ListCompanyUsersResponse given an JSON string * * @param jsonString JSON string * @return An instance of ListCompanyUsersResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to ListCompanyUsersResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ListCompanyUsersResponse */ - public static ListCompanyUsersResponse fromJson(String jsonString) throws JsonProcessingException { + public static ListCompanyUsersResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ListCompanyUsersResponse.class); } -/** - * Convert an instance of ListCompanyUsersResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ListCompanyUsersResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ListExternalTerminalActionsResponse.java b/src/main/java/com/adyen/model/management/ListExternalTerminalActionsResponse.java index 85bbb4237..13399982d 100644 --- a/src/main/java/com/adyen/model/management/ListExternalTerminalActionsResponse.java +++ b/src/main/java/com/adyen/model/management/ListExternalTerminalActionsResponse.java @@ -2,50 +2,37 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.ExternalTerminalAction; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * ListExternalTerminalActionsResponse - */ -@JsonPropertyOrder({ - ListExternalTerminalActionsResponse.JSON_PROPERTY_DATA -}) - +/** ListExternalTerminalActionsResponse */ +@JsonPropertyOrder({ListExternalTerminalActionsResponse.JSON_PROPERTY_DATA}) public class ListExternalTerminalActionsResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; - public ListExternalTerminalActionsResponse() { - } + public ListExternalTerminalActionsResponse() {} /** * The list of terminal actions. * * @param data The list of terminal actions. - * @return the current {@code ListExternalTerminalActionsResponse} instance, allowing for method chaining + * @return the current {@code ListExternalTerminalActionsResponse} instance, allowing for method + * chaining */ public ListExternalTerminalActionsResponse data(List data) { this.data = data; @@ -62,6 +49,7 @@ public ListExternalTerminalActionsResponse addDataItem(ExternalTerminalAction da /** * The list of terminal actions. + * * @return data The list of terminal actions. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -81,9 +69,7 @@ public void setData(List data) { this.data = data; } - /** - * Return true if this ListExternalTerminalActionsResponse object is equal to o. - */ + /** Return true if this ListExternalTerminalActionsResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -92,7 +78,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ListExternalTerminalActionsResponse listExternalTerminalActionsResponse = (ListExternalTerminalActionsResponse) o; + ListExternalTerminalActionsResponse listExternalTerminalActionsResponse = + (ListExternalTerminalActionsResponse) o; return Objects.equals(this.data, listExternalTerminalActionsResponse.data); } @@ -111,8 +98,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -121,21 +107,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ListExternalTerminalActionsResponse given an JSON string * * @param jsonString JSON string * @return An instance of ListExternalTerminalActionsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to ListExternalTerminalActionsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ListExternalTerminalActionsResponse */ - public static ListExternalTerminalActionsResponse fromJson(String jsonString) throws JsonProcessingException { + public static ListExternalTerminalActionsResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ListExternalTerminalActionsResponse.class); } -/** - * Convert an instance of ListExternalTerminalActionsResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ListExternalTerminalActionsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ListMerchantApiCredentialsResponse.java b/src/main/java/com/adyen/model/management/ListMerchantApiCredentialsResponse.java index bf4fc99b9..2b9ffcf28 100644 --- a/src/main/java/com/adyen/model/management/ListMerchantApiCredentialsResponse.java +++ b/src/main/java/com/adyen/model/management/ListMerchantApiCredentialsResponse.java @@ -2,42 +2,30 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.ApiCredential; -import com.adyen.model.management.PaginationLinks; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * ListMerchantApiCredentialsResponse - */ +/** ListMerchantApiCredentialsResponse */ @JsonPropertyOrder({ ListMerchantApiCredentialsResponse.JSON_PROPERTY_LINKS, ListMerchantApiCredentialsResponse.JSON_PROPERTY_DATA, ListMerchantApiCredentialsResponse.JSON_PROPERTY_ITEMS_TOTAL, ListMerchantApiCredentialsResponse.JSON_PROPERTY_PAGES_TOTAL }) - public class ListMerchantApiCredentialsResponse { public static final String JSON_PROPERTY_LINKS = "_links"; private PaginationLinks links; @@ -51,14 +39,14 @@ public class ListMerchantApiCredentialsResponse { public static final String JSON_PROPERTY_PAGES_TOTAL = "pagesTotal"; private Integer pagesTotal; - public ListMerchantApiCredentialsResponse() { - } + public ListMerchantApiCredentialsResponse() {} /** * links * - * @param links - * @return the current {@code ListMerchantApiCredentialsResponse} instance, allowing for method chaining + * @param links + * @return the current {@code ListMerchantApiCredentialsResponse} instance, allowing for method + * chaining */ public ListMerchantApiCredentialsResponse links(PaginationLinks links) { this.links = links; @@ -67,7 +55,8 @@ public ListMerchantApiCredentialsResponse links(PaginationLinks links) { /** * Get links - * @return links + * + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -78,7 +67,7 @@ public PaginationLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -90,7 +79,8 @@ public void setLinks(PaginationLinks links) { * The list of API credentials. * * @param data The list of API credentials. - * @return the current {@code ListMerchantApiCredentialsResponse} instance, allowing for method chaining + * @return the current {@code ListMerchantApiCredentialsResponse} instance, allowing for method + * chaining */ public ListMerchantApiCredentialsResponse data(List data) { this.data = data; @@ -107,6 +97,7 @@ public ListMerchantApiCredentialsResponse addDataItem(ApiCredential dataItem) { /** * The list of API credentials. + * * @return data The list of API credentials. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -130,7 +121,8 @@ public void setData(List data) { * Total number of items. * * @param itemsTotal Total number of items. - * @return the current {@code ListMerchantApiCredentialsResponse} instance, allowing for method chaining + * @return the current {@code ListMerchantApiCredentialsResponse} instance, allowing for method + * chaining */ public ListMerchantApiCredentialsResponse itemsTotal(Integer itemsTotal) { this.itemsTotal = itemsTotal; @@ -139,6 +131,7 @@ public ListMerchantApiCredentialsResponse itemsTotal(Integer itemsTotal) { /** * Total number of items. + * * @return itemsTotal Total number of items. */ @JsonProperty(JSON_PROPERTY_ITEMS_TOTAL) @@ -162,7 +155,8 @@ public void setItemsTotal(Integer itemsTotal) { * Total number of pages. * * @param pagesTotal Total number of pages. - * @return the current {@code ListMerchantApiCredentialsResponse} instance, allowing for method chaining + * @return the current {@code ListMerchantApiCredentialsResponse} instance, allowing for method + * chaining */ public ListMerchantApiCredentialsResponse pagesTotal(Integer pagesTotal) { this.pagesTotal = pagesTotal; @@ -171,6 +165,7 @@ public ListMerchantApiCredentialsResponse pagesTotal(Integer pagesTotal) { /** * Total number of pages. + * * @return pagesTotal Total number of pages. */ @JsonProperty(JSON_PROPERTY_PAGES_TOTAL) @@ -190,9 +185,7 @@ public void setPagesTotal(Integer pagesTotal) { this.pagesTotal = pagesTotal; } - /** - * Return true if this ListMerchantApiCredentialsResponse object is equal to o. - */ + /** Return true if this ListMerchantApiCredentialsResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -201,11 +194,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ListMerchantApiCredentialsResponse listMerchantApiCredentialsResponse = (ListMerchantApiCredentialsResponse) o; - return Objects.equals(this.links, listMerchantApiCredentialsResponse.links) && - Objects.equals(this.data, listMerchantApiCredentialsResponse.data) && - Objects.equals(this.itemsTotal, listMerchantApiCredentialsResponse.itemsTotal) && - Objects.equals(this.pagesTotal, listMerchantApiCredentialsResponse.pagesTotal); + ListMerchantApiCredentialsResponse listMerchantApiCredentialsResponse = + (ListMerchantApiCredentialsResponse) o; + return Objects.equals(this.links, listMerchantApiCredentialsResponse.links) + && Objects.equals(this.data, listMerchantApiCredentialsResponse.data) + && Objects.equals(this.itemsTotal, listMerchantApiCredentialsResponse.itemsTotal) + && Objects.equals(this.pagesTotal, listMerchantApiCredentialsResponse.pagesTotal); } @Override @@ -226,8 +220,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -236,21 +229,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ListMerchantApiCredentialsResponse given an JSON string * * @param jsonString JSON string * @return An instance of ListMerchantApiCredentialsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to ListMerchantApiCredentialsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ListMerchantApiCredentialsResponse */ - public static ListMerchantApiCredentialsResponse fromJson(String jsonString) throws JsonProcessingException { + public static ListMerchantApiCredentialsResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ListMerchantApiCredentialsResponse.class); } -/** - * Convert an instance of ListMerchantApiCredentialsResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ListMerchantApiCredentialsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ListMerchantResponse.java b/src/main/java/com/adyen/model/management/ListMerchantResponse.java index 6f9b4e5b4..743f1cd1a 100644 --- a/src/main/java/com/adyen/model/management/ListMerchantResponse.java +++ b/src/main/java/com/adyen/model/management/ListMerchantResponse.java @@ -2,42 +2,30 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.Merchant; -import com.adyen.model.management.PaginationLinks; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * ListMerchantResponse - */ +/** ListMerchantResponse */ @JsonPropertyOrder({ ListMerchantResponse.JSON_PROPERTY_LINKS, ListMerchantResponse.JSON_PROPERTY_DATA, ListMerchantResponse.JSON_PROPERTY_ITEMS_TOTAL, ListMerchantResponse.JSON_PROPERTY_PAGES_TOTAL }) - public class ListMerchantResponse { public static final String JSON_PROPERTY_LINKS = "_links"; private PaginationLinks links; @@ -51,13 +39,12 @@ public class ListMerchantResponse { public static final String JSON_PROPERTY_PAGES_TOTAL = "pagesTotal"; private Integer pagesTotal; - public ListMerchantResponse() { - } + public ListMerchantResponse() {} /** * links * - * @param links + * @param links * @return the current {@code ListMerchantResponse} instance, allowing for method chaining */ public ListMerchantResponse links(PaginationLinks links) { @@ -67,7 +54,8 @@ public ListMerchantResponse links(PaginationLinks links) { /** * Get links - * @return links + * + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -78,7 +66,7 @@ public PaginationLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,6 +95,7 @@ public ListMerchantResponse addDataItem(Merchant dataItem) { /** * The list of merchant accounts. + * * @return data The list of merchant accounts. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -139,6 +128,7 @@ public ListMerchantResponse itemsTotal(Integer itemsTotal) { /** * Total number of items. + * * @return itemsTotal Total number of items. */ @JsonProperty(JSON_PROPERTY_ITEMS_TOTAL) @@ -171,6 +161,7 @@ public ListMerchantResponse pagesTotal(Integer pagesTotal) { /** * Total number of pages. + * * @return pagesTotal Total number of pages. */ @JsonProperty(JSON_PROPERTY_PAGES_TOTAL) @@ -190,9 +181,7 @@ public void setPagesTotal(Integer pagesTotal) { this.pagesTotal = pagesTotal; } - /** - * Return true if this ListMerchantResponse object is equal to o. - */ + /** Return true if this ListMerchantResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -202,10 +191,10 @@ public boolean equals(Object o) { return false; } ListMerchantResponse listMerchantResponse = (ListMerchantResponse) o; - return Objects.equals(this.links, listMerchantResponse.links) && - Objects.equals(this.data, listMerchantResponse.data) && - Objects.equals(this.itemsTotal, listMerchantResponse.itemsTotal) && - Objects.equals(this.pagesTotal, listMerchantResponse.pagesTotal); + return Objects.equals(this.links, listMerchantResponse.links) + && Objects.equals(this.data, listMerchantResponse.data) + && Objects.equals(this.itemsTotal, listMerchantResponse.itemsTotal) + && Objects.equals(this.pagesTotal, listMerchantResponse.pagesTotal); } @Override @@ -226,8 +215,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -236,21 +224,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ListMerchantResponse given an JSON string * * @param jsonString JSON string * @return An instance of ListMerchantResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to ListMerchantResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ListMerchantResponse */ public static ListMerchantResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ListMerchantResponse.class); } -/** - * Convert an instance of ListMerchantResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ListMerchantResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ListMerchantUsersResponse.java b/src/main/java/com/adyen/model/management/ListMerchantUsersResponse.java index 3d25b5807..342f9dacb 100644 --- a/src/main/java/com/adyen/model/management/ListMerchantUsersResponse.java +++ b/src/main/java/com/adyen/model/management/ListMerchantUsersResponse.java @@ -2,42 +2,30 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.PaginationLinks; -import com.adyen.model.management.User; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * ListMerchantUsersResponse - */ +/** ListMerchantUsersResponse */ @JsonPropertyOrder({ ListMerchantUsersResponse.JSON_PROPERTY_LINKS, ListMerchantUsersResponse.JSON_PROPERTY_DATA, ListMerchantUsersResponse.JSON_PROPERTY_ITEMS_TOTAL, ListMerchantUsersResponse.JSON_PROPERTY_PAGES_TOTAL }) - public class ListMerchantUsersResponse { public static final String JSON_PROPERTY_LINKS = "_links"; private PaginationLinks links; @@ -51,13 +39,12 @@ public class ListMerchantUsersResponse { public static final String JSON_PROPERTY_PAGES_TOTAL = "pagesTotal"; private Integer pagesTotal; - public ListMerchantUsersResponse() { - } + public ListMerchantUsersResponse() {} /** * links * - * @param links + * @param links * @return the current {@code ListMerchantUsersResponse} instance, allowing for method chaining */ public ListMerchantUsersResponse links(PaginationLinks links) { @@ -67,7 +54,8 @@ public ListMerchantUsersResponse links(PaginationLinks links) { /** * Get links - * @return links + * + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -78,7 +66,7 @@ public PaginationLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,6 +95,7 @@ public ListMerchantUsersResponse addDataItem(User dataItem) { /** * The list of users. + * * @return data The list of users. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -139,6 +128,7 @@ public ListMerchantUsersResponse itemsTotal(Integer itemsTotal) { /** * Total number of items. + * * @return itemsTotal Total number of items. */ @JsonProperty(JSON_PROPERTY_ITEMS_TOTAL) @@ -171,6 +161,7 @@ public ListMerchantUsersResponse pagesTotal(Integer pagesTotal) { /** * Total number of pages. + * * @return pagesTotal Total number of pages. */ @JsonProperty(JSON_PROPERTY_PAGES_TOTAL) @@ -190,9 +181,7 @@ public void setPagesTotal(Integer pagesTotal) { this.pagesTotal = pagesTotal; } - /** - * Return true if this ListMerchantUsersResponse object is equal to o. - */ + /** Return true if this ListMerchantUsersResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -202,10 +191,10 @@ public boolean equals(Object o) { return false; } ListMerchantUsersResponse listMerchantUsersResponse = (ListMerchantUsersResponse) o; - return Objects.equals(this.links, listMerchantUsersResponse.links) && - Objects.equals(this.data, listMerchantUsersResponse.data) && - Objects.equals(this.itemsTotal, listMerchantUsersResponse.itemsTotal) && - Objects.equals(this.pagesTotal, listMerchantUsersResponse.pagesTotal); + return Objects.equals(this.links, listMerchantUsersResponse.links) + && Objects.equals(this.data, listMerchantUsersResponse.data) + && Objects.equals(this.itemsTotal, listMerchantUsersResponse.itemsTotal) + && Objects.equals(this.pagesTotal, listMerchantUsersResponse.pagesTotal); } @Override @@ -226,8 +215,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -236,21 +224,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ListMerchantUsersResponse given an JSON string * * @param jsonString JSON string * @return An instance of ListMerchantUsersResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to ListMerchantUsersResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ListMerchantUsersResponse */ - public static ListMerchantUsersResponse fromJson(String jsonString) throws JsonProcessingException { + public static ListMerchantUsersResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ListMerchantUsersResponse.class); } -/** - * Convert an instance of ListMerchantUsersResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ListMerchantUsersResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ListStoresResponse.java b/src/main/java/com/adyen/model/management/ListStoresResponse.java index 7ca0c7614..828cc53d8 100644 --- a/src/main/java/com/adyen/model/management/ListStoresResponse.java +++ b/src/main/java/com/adyen/model/management/ListStoresResponse.java @@ -2,42 +2,30 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.PaginationLinks; -import com.adyen.model.management.Store; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * ListStoresResponse - */ +/** ListStoresResponse */ @JsonPropertyOrder({ ListStoresResponse.JSON_PROPERTY_LINKS, ListStoresResponse.JSON_PROPERTY_DATA, ListStoresResponse.JSON_PROPERTY_ITEMS_TOTAL, ListStoresResponse.JSON_PROPERTY_PAGES_TOTAL }) - public class ListStoresResponse { public static final String JSON_PROPERTY_LINKS = "_links"; private PaginationLinks links; @@ -51,13 +39,12 @@ public class ListStoresResponse { public static final String JSON_PROPERTY_PAGES_TOTAL = "pagesTotal"; private Integer pagesTotal; - public ListStoresResponse() { - } + public ListStoresResponse() {} /** * links * - * @param links + * @param links * @return the current {@code ListStoresResponse} instance, allowing for method chaining */ public ListStoresResponse links(PaginationLinks links) { @@ -67,7 +54,8 @@ public ListStoresResponse links(PaginationLinks links) { /** * Get links - * @return links + * + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -78,7 +66,7 @@ public PaginationLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,6 +95,7 @@ public ListStoresResponse addDataItem(Store dataItem) { /** * List of stores + * * @return data List of stores */ @JsonProperty(JSON_PROPERTY_DATA) @@ -139,6 +128,7 @@ public ListStoresResponse itemsTotal(Integer itemsTotal) { /** * Total number of items. + * * @return itemsTotal Total number of items. */ @JsonProperty(JSON_PROPERTY_ITEMS_TOTAL) @@ -171,6 +161,7 @@ public ListStoresResponse pagesTotal(Integer pagesTotal) { /** * Total number of pages. + * * @return pagesTotal Total number of pages. */ @JsonProperty(JSON_PROPERTY_PAGES_TOTAL) @@ -190,9 +181,7 @@ public void setPagesTotal(Integer pagesTotal) { this.pagesTotal = pagesTotal; } - /** - * Return true if this ListStoresResponse object is equal to o. - */ + /** Return true if this ListStoresResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -202,10 +191,10 @@ public boolean equals(Object o) { return false; } ListStoresResponse listStoresResponse = (ListStoresResponse) o; - return Objects.equals(this.links, listStoresResponse.links) && - Objects.equals(this.data, listStoresResponse.data) && - Objects.equals(this.itemsTotal, listStoresResponse.itemsTotal) && - Objects.equals(this.pagesTotal, listStoresResponse.pagesTotal); + return Objects.equals(this.links, listStoresResponse.links) + && Objects.equals(this.data, listStoresResponse.data) + && Objects.equals(this.itemsTotal, listStoresResponse.itemsTotal) + && Objects.equals(this.pagesTotal, listStoresResponse.pagesTotal); } @Override @@ -226,8 +215,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -236,21 +224,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ListStoresResponse given an JSON string * * @param jsonString JSON string * @return An instance of ListStoresResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to ListStoresResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ListStoresResponse */ public static ListStoresResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ListStoresResponse.class); } -/** - * Convert an instance of ListStoresResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ListStoresResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ListTerminalsResponse.java b/src/main/java/com/adyen/model/management/ListTerminalsResponse.java index 792531946..00742e8f7 100644 --- a/src/main/java/com/adyen/model/management/ListTerminalsResponse.java +++ b/src/main/java/com/adyen/model/management/ListTerminalsResponse.java @@ -2,42 +2,30 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.PaginationLinks; -import com.adyen.model.management.Terminal; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * ListTerminalsResponse - */ +/** ListTerminalsResponse */ @JsonPropertyOrder({ ListTerminalsResponse.JSON_PROPERTY_LINKS, ListTerminalsResponse.JSON_PROPERTY_DATA, ListTerminalsResponse.JSON_PROPERTY_ITEMS_TOTAL, ListTerminalsResponse.JSON_PROPERTY_PAGES_TOTAL }) - public class ListTerminalsResponse { public static final String JSON_PROPERTY_LINKS = "_links"; private PaginationLinks links; @@ -51,13 +39,12 @@ public class ListTerminalsResponse { public static final String JSON_PROPERTY_PAGES_TOTAL = "pagesTotal"; private Integer pagesTotal; - public ListTerminalsResponse() { - } + public ListTerminalsResponse() {} /** * links * - * @param links + * @param links * @return the current {@code ListTerminalsResponse} instance, allowing for method chaining */ public ListTerminalsResponse links(PaginationLinks links) { @@ -67,7 +54,8 @@ public ListTerminalsResponse links(PaginationLinks links) { /** * Get links - * @return links + * + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -78,7 +66,7 @@ public PaginationLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,6 +95,7 @@ public ListTerminalsResponse addDataItem(Terminal dataItem) { /** * The list of terminals and their details. + * * @return data The list of terminals and their details. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -139,6 +128,7 @@ public ListTerminalsResponse itemsTotal(Integer itemsTotal) { /** * Total number of items. + * * @return itemsTotal Total number of items. */ @JsonProperty(JSON_PROPERTY_ITEMS_TOTAL) @@ -171,6 +161,7 @@ public ListTerminalsResponse pagesTotal(Integer pagesTotal) { /** * Total number of pages. + * * @return pagesTotal Total number of pages. */ @JsonProperty(JSON_PROPERTY_PAGES_TOTAL) @@ -190,9 +181,7 @@ public void setPagesTotal(Integer pagesTotal) { this.pagesTotal = pagesTotal; } - /** - * Return true if this ListTerminalsResponse object is equal to o. - */ + /** Return true if this ListTerminalsResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -202,10 +191,10 @@ public boolean equals(Object o) { return false; } ListTerminalsResponse listTerminalsResponse = (ListTerminalsResponse) o; - return Objects.equals(this.links, listTerminalsResponse.links) && - Objects.equals(this.data, listTerminalsResponse.data) && - Objects.equals(this.itemsTotal, listTerminalsResponse.itemsTotal) && - Objects.equals(this.pagesTotal, listTerminalsResponse.pagesTotal); + return Objects.equals(this.links, listTerminalsResponse.links) + && Objects.equals(this.data, listTerminalsResponse.data) + && Objects.equals(this.itemsTotal, listTerminalsResponse.itemsTotal) + && Objects.equals(this.pagesTotal, listTerminalsResponse.pagesTotal); } @Override @@ -226,8 +215,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -236,21 +224,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ListTerminalsResponse given an JSON string * * @param jsonString JSON string * @return An instance of ListTerminalsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to ListTerminalsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ListTerminalsResponse */ public static ListTerminalsResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ListTerminalsResponse.class); } -/** - * Convert an instance of ListTerminalsResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ListTerminalsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ListWebhooksResponse.java b/src/main/java/com/adyen/model/management/ListWebhooksResponse.java index bac1b587c..e6ced68b2 100644 --- a/src/main/java/com/adyen/model/management/ListWebhooksResponse.java +++ b/src/main/java/com/adyen/model/management/ListWebhooksResponse.java @@ -2,35 +2,24 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.PaginationLinks; -import com.adyen.model.management.Webhook; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * ListWebhooksResponse - */ +/** ListWebhooksResponse */ @JsonPropertyOrder({ ListWebhooksResponse.JSON_PROPERTY_LINKS, ListWebhooksResponse.JSON_PROPERTY_ACCOUNT_REFERENCE, @@ -38,7 +27,6 @@ ListWebhooksResponse.JSON_PROPERTY_ITEMS_TOTAL, ListWebhooksResponse.JSON_PROPERTY_PAGES_TOTAL }) - public class ListWebhooksResponse { public static final String JSON_PROPERTY_LINKS = "_links"; private PaginationLinks links; @@ -55,13 +43,12 @@ public class ListWebhooksResponse { public static final String JSON_PROPERTY_PAGES_TOTAL = "pagesTotal"; private Integer pagesTotal; - public ListWebhooksResponse() { - } + public ListWebhooksResponse() {} /** * links * - * @param links + * @param links * @return the current {@code ListWebhooksResponse} instance, allowing for method chaining */ public ListWebhooksResponse links(PaginationLinks links) { @@ -71,7 +58,8 @@ public ListWebhooksResponse links(PaginationLinks links) { /** * Get links - * @return links + * + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -82,7 +70,7 @@ public PaginationLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -103,6 +91,7 @@ public ListWebhooksResponse accountReference(String accountReference) { /** * Reference to the account. + * * @return accountReference Reference to the account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_REFERENCE) @@ -143,6 +132,7 @@ public ListWebhooksResponse addDataItem(Webhook dataItem) { /** * The list of webhooks configured for this account. + * * @return data The list of webhooks configured for this account. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -175,6 +165,7 @@ public ListWebhooksResponse itemsTotal(Integer itemsTotal) { /** * Total number of items. + * * @return itemsTotal Total number of items. */ @JsonProperty(JSON_PROPERTY_ITEMS_TOTAL) @@ -207,6 +198,7 @@ public ListWebhooksResponse pagesTotal(Integer pagesTotal) { /** * Total number of pages. + * * @return pagesTotal Total number of pages. */ @JsonProperty(JSON_PROPERTY_PAGES_TOTAL) @@ -226,9 +218,7 @@ public void setPagesTotal(Integer pagesTotal) { this.pagesTotal = pagesTotal; } - /** - * Return true if this ListWebhooksResponse object is equal to o. - */ + /** Return true if this ListWebhooksResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -238,11 +228,11 @@ public boolean equals(Object o) { return false; } ListWebhooksResponse listWebhooksResponse = (ListWebhooksResponse) o; - return Objects.equals(this.links, listWebhooksResponse.links) && - Objects.equals(this.accountReference, listWebhooksResponse.accountReference) && - Objects.equals(this.data, listWebhooksResponse.data) && - Objects.equals(this.itemsTotal, listWebhooksResponse.itemsTotal) && - Objects.equals(this.pagesTotal, listWebhooksResponse.pagesTotal); + return Objects.equals(this.links, listWebhooksResponse.links) + && Objects.equals(this.accountReference, listWebhooksResponse.accountReference) + && Objects.equals(this.data, listWebhooksResponse.data) + && Objects.equals(this.itemsTotal, listWebhooksResponse.itemsTotal) + && Objects.equals(this.pagesTotal, listWebhooksResponse.pagesTotal); } @Override @@ -264,8 +254,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -274,21 +263,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ListWebhooksResponse given an JSON string * * @param jsonString JSON string * @return An instance of ListWebhooksResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to ListWebhooksResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ListWebhooksResponse */ public static ListWebhooksResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ListWebhooksResponse.class); } -/** - * Convert an instance of ListWebhooksResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ListWebhooksResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Localization.java b/src/main/java/com/adyen/model/management/Localization.java index dc88a51ac..b84d6ba66 100644 --- a/src/main/java/com/adyen/model/management/Localization.java +++ b/src/main/java/com/adyen/model/management/Localization.java @@ -2,37 +2,27 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Localization - */ +/** Localization */ @JsonPropertyOrder({ Localization.JSON_PROPERTY_LANGUAGE, Localization.JSON_PROPERTY_SECONDARY_LANGUAGE, Localization.JSON_PROPERTY_TIMEZONE }) - public class Localization { public static final String JSON_PROPERTY_LANGUAGE = "language"; private String language; @@ -43,8 +33,7 @@ public class Localization { public static final String JSON_PROPERTY_TIMEZONE = "timezone"; private String timezone; - public Localization() { - } + public Localization() {} /** * Language of the terminal. @@ -59,6 +48,7 @@ public Localization language(String language) { /** * Language of the terminal. + * * @return language Language of the terminal. */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @@ -91,6 +81,7 @@ public Localization secondaryLanguage(String secondaryLanguage) { /** * Secondary language of the terminal. + * * @return secondaryLanguage Secondary language of the terminal. */ @JsonProperty(JSON_PROPERTY_SECONDARY_LANGUAGE) @@ -123,6 +114,7 @@ public Localization timezone(String timezone) { /** * The time zone of the terminal. + * * @return timezone The time zone of the terminal. */ @JsonProperty(JSON_PROPERTY_TIMEZONE) @@ -142,9 +134,7 @@ public void setTimezone(String timezone) { this.timezone = timezone; } - /** - * Return true if this Localization object is equal to o. - */ + /** Return true if this Localization object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +144,9 @@ public boolean equals(Object o) { return false; } Localization localization = (Localization) o; - return Objects.equals(this.language, localization.language) && - Objects.equals(this.secondaryLanguage, localization.secondaryLanguage) && - Objects.equals(this.timezone, localization.timezone); + return Objects.equals(this.language, localization.language) + && Objects.equals(this.secondaryLanguage, localization.secondaryLanguage) + && Objects.equals(this.timezone, localization.timezone); } @Override @@ -176,8 +166,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +175,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Localization given an JSON string * * @param jsonString JSON string @@ -196,11 +185,12 @@ private String toIndentedString(Object o) { public static Localization fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Localization.class); } -/** - * Convert an instance of Localization to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Localization to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Logo.java b/src/main/java/com/adyen/model/management/Logo.java index 2f04227b0..a11a105c0 100644 --- a/src/main/java/com/adyen/model/management/Logo.java +++ b/src/main/java/com/adyen/model/management/Logo.java @@ -2,46 +2,34 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Logo - */ -@JsonPropertyOrder({ - Logo.JSON_PROPERTY_DATA -}) - +/** Logo */ +@JsonPropertyOrder({Logo.JSON_PROPERTY_DATA}) public class Logo { public static final String JSON_PROPERTY_DATA = "data"; private String data; - public Logo() { - } + public Logo() {} /** * The image file, converted to a Base64-encoded string, of the logo to be shown on the terminal. * - * @param data The image file, converted to a Base64-encoded string, of the logo to be shown on the terminal. + * @param data The image file, converted to a Base64-encoded string, of the logo to be shown on + * the terminal. * @return the current {@code Logo} instance, allowing for method chaining */ public Logo data(String data) { @@ -51,7 +39,9 @@ public Logo data(String data) { /** * The image file, converted to a Base64-encoded string, of the logo to be shown on the terminal. - * @return data The image file, converted to a Base64-encoded string, of the logo to be shown on the terminal. + * + * @return data The image file, converted to a Base64-encoded string, of the logo to be shown on + * the terminal. */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -62,7 +52,8 @@ public String getData() { /** * The image file, converted to a Base64-encoded string, of the logo to be shown on the terminal. * - * @param data The image file, converted to a Base64-encoded string, of the logo to be shown on the terminal. + * @param data The image file, converted to a Base64-encoded string, of the logo to be shown on + * the terminal. */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +61,7 @@ public void setData(String data) { this.data = data; } - /** - * Return true if this Logo object is equal to o. - */ + /** Return true if this Logo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +89,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,7 +98,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Logo given an JSON string * * @param jsonString JSON string @@ -120,11 +108,12 @@ private String toIndentedString(Object o) { public static Logo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Logo.class); } -/** - * Convert an instance of Logo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Logo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/MeApiCredential.java b/src/main/java/com/adyen/model/management/MeApiCredential.java index c7c4599f8..d3dbbbd42 100644 --- a/src/main/java/com/adyen/model/management/MeApiCredential.java +++ b/src/main/java/com/adyen/model/management/MeApiCredential.java @@ -2,35 +2,24 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.AllowedOrigin; -import com.adyen.model.management.ApiCredentialLinks; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * MeApiCredential - */ +/** MeApiCredential */ @JsonPropertyOrder({ MeApiCredential.JSON_PROPERTY_LINKS, MeApiCredential.JSON_PROPERTY_ACTIVE, @@ -43,7 +32,6 @@ MeApiCredential.JSON_PROPERTY_ROLES, MeApiCredential.JSON_PROPERTY_USERNAME }) - public class MeApiCredential { public static final String JSON_PROPERTY_LINKS = "_links"; private ApiCredentialLinks links; @@ -75,13 +63,12 @@ public class MeApiCredential { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public MeApiCredential() { - } + public MeApiCredential() {} /** * links * - * @param links + * @param links * @return the current {@code MeApiCredential} instance, allowing for method chaining */ public MeApiCredential links(ApiCredentialLinks links) { @@ -91,7 +78,8 @@ public MeApiCredential links(ApiCredentialLinks links) { /** * Get links - * @return links + * + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,7 +90,7 @@ public ApiCredentialLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,9 +99,11 @@ public void setLinks(ApiCredentialLinks links) { } /** - * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in + * your integration. * - * @param active Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + * @param active Indicates if the API credential is enabled. Must be set to **true** to use the + * credential in your integration. * @return the current {@code MeApiCredential} instance, allowing for method chaining */ public MeApiCredential active(Boolean active) { @@ -122,8 +112,11 @@ public MeApiCredential active(Boolean active) { } /** - * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. - * @return active Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in + * your integration. + * + * @return active Indicates if the API credential is enabled. Must be set to **true** to use the + * credential in your integration. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,9 +125,11 @@ public Boolean getActive() { } /** - * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in + * your integration. * - * @param active Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + * @param active Indicates if the API credential is enabled. Must be set to **true** to use the + * credential in your integration. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,9 +138,13 @@ public void setActive(Boolean active) { } /** - * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + * List of IP addresses from which your client can make requests. If the list is empty, we allow + * requests from any IP. If the list is not empty and we get a request from an IP which is not on + * the list, you get a security error. * - * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the + * list is empty, we allow requests from any IP. If the list is not empty and we get a request + * from an IP which is not on the list, you get a security error. * @return the current {@code MeApiCredential} instance, allowing for method chaining */ public MeApiCredential allowedIpAddresses(List allowedIpAddresses) { @@ -162,8 +161,13 @@ public MeApiCredential addAllowedIpAddressesItem(String allowedIpAddressesItem) } /** - * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. - * @return allowedIpAddresses List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + * List of IP addresses from which your client can make requests. If the list is empty, we allow + * requests from any IP. If the list is not empty and we get a request from an IP which is not on + * the list, you get a security error. + * + * @return allowedIpAddresses List of IP addresses from which your client can make requests. If + * the list is empty, we allow requests from any IP. If the list is not empty and we get a + * request from an IP which is not on the list, you get a security error. */ @JsonProperty(JSON_PROPERTY_ALLOWED_IP_ADDRESSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,9 +176,13 @@ public List getAllowedIpAddresses() { } /** - * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + * List of IP addresses from which your client can make requests. If the list is empty, we allow + * requests from any IP. If the list is not empty and we get a request from an IP which is not on + * the list, you get a security error. * - * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + * @param allowedIpAddresses List of IP addresses from which your client can make requests. If the + * list is empty, we allow requests from any IP. If the list is not empty and we get a request + * from an IP which is not on the list, you get a security error. */ @JsonProperty(JSON_PROPERTY_ALLOWED_IP_ADDRESSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,9 +191,13 @@ public void setAllowedIpAddresses(List allowedIpAddresses) { } /** - * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + * List containing the [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * linked to the API credential. * - * @param allowedOrigins List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + * @param allowedOrigins List containing the [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * linked to the API credential. * @return the current {@code MeApiCredential} instance, allowing for method chaining */ public MeApiCredential allowedOrigins(List allowedOrigins) { @@ -202,8 +214,13 @@ public MeApiCredential addAllowedOriginsItem(AllowedOrigin allowedOriginsItem) { } /** - * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. - * @return allowedOrigins List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + * List containing the [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * linked to the API credential. + * + * @return allowedOrigins List containing the [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * linked to the API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -212,9 +229,13 @@ public List getAllowedOrigins() { } /** - * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + * List containing the [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * linked to the API credential. * - * @param allowedOrigins List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + * @param allowedOrigins List containing the [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * linked to the API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,9 +244,13 @@ public void setAllowedOrigins(List allowedOrigins) { } /** - * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + * Public key used for [client-side + * authentication](https://docs.adyen.com/development-resources/client-side-authentication). The + * client key is required for Drop-in and Components integrations. * - * @param clientKey Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + * @param clientKey Public key used for [client-side + * authentication](https://docs.adyen.com/development-resources/client-side-authentication). + * The client key is required for Drop-in and Components integrations. * @return the current {@code MeApiCredential} instance, allowing for method chaining */ public MeApiCredential clientKey(String clientKey) { @@ -234,8 +259,13 @@ public MeApiCredential clientKey(String clientKey) { } /** - * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. - * @return clientKey Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + * Public key used for [client-side + * authentication](https://docs.adyen.com/development-resources/client-side-authentication). The + * client key is required for Drop-in and Components integrations. + * + * @return clientKey Public key used for [client-side + * authentication](https://docs.adyen.com/development-resources/client-side-authentication). + * The client key is required for Drop-in and Components integrations. */ @JsonProperty(JSON_PROPERTY_CLIENT_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,9 +274,13 @@ public String getClientKey() { } /** - * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + * Public key used for [client-side + * authentication](https://docs.adyen.com/development-resources/client-side-authentication). The + * client key is required for Drop-in and Components integrations. * - * @param clientKey Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + * @param clientKey Public key used for [client-side + * authentication](https://docs.adyen.com/development-resources/client-side-authentication). + * The client key is required for Drop-in and Components integrations. */ @JsonProperty(JSON_PROPERTY_CLIENT_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -267,6 +301,7 @@ public MeApiCredential companyName(String companyName) { /** * Name of the company linked to the API credential. + * * @return companyName Name of the company linked to the API credential. */ @JsonProperty(JSON_PROPERTY_COMPANY_NAME) @@ -299,6 +334,7 @@ public MeApiCredential description(String description) { /** * Description of the API credential. + * * @return description Description of the API credential. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -331,6 +367,7 @@ public MeApiCredential id(String id) { /** * Unique identifier of the API credential. + * * @return id Unique identifier of the API credential. */ @JsonProperty(JSON_PROPERTY_ID) @@ -351,9 +388,12 @@ public void setId(String id) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the + * API credential. * - * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + * @param roles List of + * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API + * credential. * @return the current {@code MeApiCredential} instance, allowing for method chaining */ public MeApiCredential roles(List roles) { @@ -370,8 +410,12 @@ public MeApiCredential addRolesItem(String rolesItem) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. - * @return roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the + * API credential. + * + * @return roles List of + * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API + * credential. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -380,9 +424,12 @@ public List getRoles() { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the + * API credential. * - * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + * @param roles List of + * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API + * credential. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -391,9 +438,12 @@ public void setRoles(List roles) { } /** - * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), + * for example **ws@Company.TestCompany**. * - * @param username The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + * @param username The name of the [API + * credential](https://docs.adyen.com/development-resources/api-credentials), for example + * **ws@Company.TestCompany**. * @return the current {@code MeApiCredential} instance, allowing for method chaining */ public MeApiCredential username(String username) { @@ -402,8 +452,12 @@ public MeApiCredential username(String username) { } /** - * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. - * @return username The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), + * for example **ws@Company.TestCompany**. + * + * @return username The name of the [API + * credential](https://docs.adyen.com/development-resources/api-credentials), for example + * **ws@Company.TestCompany**. */ @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -412,9 +466,12 @@ public String getUsername() { } /** - * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), + * for example **ws@Company.TestCompany**. * - * @param username The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + * @param username The name of the [API + * credential](https://docs.adyen.com/development-resources/api-credentials), for example + * **ws@Company.TestCompany**. */ @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -422,9 +479,7 @@ public void setUsername(String username) { this.username = username; } - /** - * Return true if this MeApiCredential object is equal to o. - */ + /** Return true if this MeApiCredential object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -434,21 +489,31 @@ public boolean equals(Object o) { return false; } MeApiCredential meApiCredential = (MeApiCredential) o; - return Objects.equals(this.links, meApiCredential.links) && - Objects.equals(this.active, meApiCredential.active) && - Objects.equals(this.allowedIpAddresses, meApiCredential.allowedIpAddresses) && - Objects.equals(this.allowedOrigins, meApiCredential.allowedOrigins) && - Objects.equals(this.clientKey, meApiCredential.clientKey) && - Objects.equals(this.companyName, meApiCredential.companyName) && - Objects.equals(this.description, meApiCredential.description) && - Objects.equals(this.id, meApiCredential.id) && - Objects.equals(this.roles, meApiCredential.roles) && - Objects.equals(this.username, meApiCredential.username); + return Objects.equals(this.links, meApiCredential.links) + && Objects.equals(this.active, meApiCredential.active) + && Objects.equals(this.allowedIpAddresses, meApiCredential.allowedIpAddresses) + && Objects.equals(this.allowedOrigins, meApiCredential.allowedOrigins) + && Objects.equals(this.clientKey, meApiCredential.clientKey) + && Objects.equals(this.companyName, meApiCredential.companyName) + && Objects.equals(this.description, meApiCredential.description) + && Objects.equals(this.id, meApiCredential.id) + && Objects.equals(this.roles, meApiCredential.roles) + && Objects.equals(this.username, meApiCredential.username); } @Override public int hashCode() { - return Objects.hash(links, active, allowedIpAddresses, allowedOrigins, clientKey, companyName, description, id, roles, username); + return Objects.hash( + links, + active, + allowedIpAddresses, + allowedOrigins, + clientKey, + companyName, + description, + id, + roles, + username); } @Override @@ -470,8 +535,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -480,7 +544,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of MeApiCredential given an JSON string * * @param jsonString JSON string @@ -490,11 +554,12 @@ private String toIndentedString(Object o) { public static MeApiCredential fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MeApiCredential.class); } -/** - * Convert an instance of MeApiCredential to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of MeApiCredential to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/MealVoucherFRInfo.java b/src/main/java/com/adyen/model/management/MealVoucherFRInfo.java index 382786efa..68ea513e2 100644 --- a/src/main/java/com/adyen/model/management/MealVoucherFRInfo.java +++ b/src/main/java/com/adyen/model/management/MealVoucherFRInfo.java @@ -2,39 +2,29 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * MealVoucherFRInfo - */ +/** MealVoucherFRInfo */ @JsonPropertyOrder({ MealVoucherFRInfo.JSON_PROPERTY_CONECS_ID, MealVoucherFRInfo.JSON_PROPERTY_SIRET, MealVoucherFRInfo.JSON_PROPERTY_SUB_TYPES }) - public class MealVoucherFRInfo { public static final String JSON_PROPERTY_CONECS_ID = "conecsId"; private String conecsId; @@ -45,8 +35,7 @@ public class MealVoucherFRInfo { public static final String JSON_PROPERTY_SUB_TYPES = "subTypes"; private List subTypes; - public MealVoucherFRInfo() { - } + public MealVoucherFRInfo() {} /** * Meal Voucher conecsId. Format: digits only @@ -61,6 +50,7 @@ public MealVoucherFRInfo conecsId(String conecsId) { /** * Meal Voucher conecsId. Format: digits only + * * @return conecsId Meal Voucher conecsId. Format: digits only */ @JsonProperty(JSON_PROPERTY_CONECS_ID) @@ -93,6 +83,7 @@ public MealVoucherFRInfo siret(String siret) { /** * Meal Voucher siret. Format: 14 digits. + * * @return siret Meal Voucher siret. Format: 14 digits. */ @JsonProperty(JSON_PROPERTY_SIRET) @@ -113,9 +104,12 @@ public void setSiret(String siret) { } /** - * The list of additional payment methods. Allowed values: **mealVoucher_FR_edenred**, **mealVoucher_FR_groupeup**, **mealVoucher_FR_natixis**, **mealVoucher_FR_sodexo**. + * The list of additional payment methods. Allowed values: **mealVoucher_FR_edenred**, + * **mealVoucher_FR_groupeup**, **mealVoucher_FR_natixis**, **mealVoucher_FR_sodexo**. * - * @param subTypes The list of additional payment methods. Allowed values: **mealVoucher_FR_edenred**, **mealVoucher_FR_groupeup**, **mealVoucher_FR_natixis**, **mealVoucher_FR_sodexo**. + * @param subTypes The list of additional payment methods. Allowed values: + * **mealVoucher_FR_edenred**, **mealVoucher_FR_groupeup**, **mealVoucher_FR_natixis**, + * **mealVoucher_FR_sodexo**. * @return the current {@code MealVoucherFRInfo} instance, allowing for method chaining */ public MealVoucherFRInfo subTypes(List subTypes) { @@ -132,8 +126,12 @@ public MealVoucherFRInfo addSubTypesItem(String subTypesItem) { } /** - * The list of additional payment methods. Allowed values: **mealVoucher_FR_edenred**, **mealVoucher_FR_groupeup**, **mealVoucher_FR_natixis**, **mealVoucher_FR_sodexo**. - * @return subTypes The list of additional payment methods. Allowed values: **mealVoucher_FR_edenred**, **mealVoucher_FR_groupeup**, **mealVoucher_FR_natixis**, **mealVoucher_FR_sodexo**. + * The list of additional payment methods. Allowed values: **mealVoucher_FR_edenred**, + * **mealVoucher_FR_groupeup**, **mealVoucher_FR_natixis**, **mealVoucher_FR_sodexo**. + * + * @return subTypes The list of additional payment methods. Allowed values: + * **mealVoucher_FR_edenred**, **mealVoucher_FR_groupeup**, **mealVoucher_FR_natixis**, + * **mealVoucher_FR_sodexo**. */ @JsonProperty(JSON_PROPERTY_SUB_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +140,12 @@ public List getSubTypes() { } /** - * The list of additional payment methods. Allowed values: **mealVoucher_FR_edenred**, **mealVoucher_FR_groupeup**, **mealVoucher_FR_natixis**, **mealVoucher_FR_sodexo**. + * The list of additional payment methods. Allowed values: **mealVoucher_FR_edenred**, + * **mealVoucher_FR_groupeup**, **mealVoucher_FR_natixis**, **mealVoucher_FR_sodexo**. * - * @param subTypes The list of additional payment methods. Allowed values: **mealVoucher_FR_edenred**, **mealVoucher_FR_groupeup**, **mealVoucher_FR_natixis**, **mealVoucher_FR_sodexo**. + * @param subTypes The list of additional payment methods. Allowed values: + * **mealVoucher_FR_edenred**, **mealVoucher_FR_groupeup**, **mealVoucher_FR_natixis**, + * **mealVoucher_FR_sodexo**. */ @JsonProperty(JSON_PROPERTY_SUB_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,9 +153,7 @@ public void setSubTypes(List subTypes) { this.subTypes = subTypes; } - /** - * Return true if this MealVoucherFRInfo object is equal to o. - */ + /** Return true if this MealVoucherFRInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -164,9 +163,9 @@ public boolean equals(Object o) { return false; } MealVoucherFRInfo mealVoucherFRInfo = (MealVoucherFRInfo) o; - return Objects.equals(this.conecsId, mealVoucherFRInfo.conecsId) && - Objects.equals(this.siret, mealVoucherFRInfo.siret) && - Objects.equals(this.subTypes, mealVoucherFRInfo.subTypes); + return Objects.equals(this.conecsId, mealVoucherFRInfo.conecsId) + && Objects.equals(this.siret, mealVoucherFRInfo.siret) + && Objects.equals(this.subTypes, mealVoucherFRInfo.subTypes); } @Override @@ -186,8 +185,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -196,7 +194,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of MealVoucherFRInfo given an JSON string * * @param jsonString JSON string @@ -206,11 +204,12 @@ private String toIndentedString(Object o) { public static MealVoucherFRInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MealVoucherFRInfo.class); } -/** - * Convert an instance of MealVoucherFRInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of MealVoucherFRInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Merchant.java b/src/main/java/com/adyen/model/management/Merchant.java index 94637bd12..9550cdae3 100644 --- a/src/main/java/com/adyen/model/management/Merchant.java +++ b/src/main/java/com/adyen/model/management/Merchant.java @@ -2,35 +2,24 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.DataCenter; -import com.adyen.model.management.MerchantLinks; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * Merchant - */ +/** Merchant */ @JsonPropertyOrder({ Merchant.JSON_PROPERTY_LINKS, Merchant.JSON_PROPERTY_CAPTURE_DELAY, @@ -47,7 +36,6 @@ Merchant.JSON_PROPERTY_SHOP_WEB_ADDRESS, Merchant.JSON_PROPERTY_STATUS }) - public class Merchant { public static final String JSON_PROPERTY_LINKS = "_links"; private MerchantLinks links; @@ -61,7 +49,8 @@ public class Merchant { public static final String JSON_PROPERTY_DATA_CENTERS = "dataCenters"; private List dataCenters; - public static final String JSON_PROPERTY_DEFAULT_SHOPPER_INTERACTION = "defaultShopperInteraction"; + public static final String JSON_PROPERTY_DEFAULT_SHOPPER_INTERACTION = + "defaultShopperInteraction"; private String defaultShopperInteraction; public static final String JSON_PROPERTY_DESCRIPTION = "description"; @@ -79,7 +68,8 @@ public class Merchant { public static final String JSON_PROPERTY_PRICING_PLAN = "pricingPlan"; private String pricingPlan; - public static final String JSON_PROPERTY_PRIMARY_SETTLEMENT_CURRENCY = "primarySettlementCurrency"; + public static final String JSON_PROPERTY_PRIMARY_SETTLEMENT_CURRENCY = + "primarySettlementCurrency"; private String primarySettlementCurrency; public static final String JSON_PROPERTY_REFERENCE = "reference"; @@ -91,13 +81,12 @@ public class Merchant { public static final String JSON_PROPERTY_STATUS = "status"; private String status; - public Merchant() { - } + public Merchant() {} /** * links * - * @param links + * @param links * @return the current {@code Merchant} instance, allowing for method chaining */ public Merchant links(MerchantLinks links) { @@ -107,7 +96,8 @@ public Merchant links(MerchantLinks links) { /** * Get links - * @return links + * + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,7 +108,7 @@ public MerchantLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,9 +117,14 @@ public void setLinks(MerchantLinks links) { } /** - * The [capture delay](https://docs.adyen.com/online-payments/capture#capture-delay) set for the merchant account. Possible values: * **Immediate** * **Manual** * Number of days from **1** to **29** + * The [capture delay](https://docs.adyen.com/online-payments/capture#capture-delay) set for the + * merchant account. Possible values: * **Immediate** * **Manual** * Number of days from **1** to + * **29** * - * @param captureDelay The [capture delay](https://docs.adyen.com/online-payments/capture#capture-delay) set for the merchant account. Possible values: * **Immediate** * **Manual** * Number of days from **1** to **29** + * @param captureDelay The [capture + * delay](https://docs.adyen.com/online-payments/capture#capture-delay) set for the merchant + * account. Possible values: * **Immediate** * **Manual** * Number of days from **1** to + * **29** * @return the current {@code Merchant} instance, allowing for method chaining */ public Merchant captureDelay(String captureDelay) { @@ -138,8 +133,14 @@ public Merchant captureDelay(String captureDelay) { } /** - * The [capture delay](https://docs.adyen.com/online-payments/capture#capture-delay) set for the merchant account. Possible values: * **Immediate** * **Manual** * Number of days from **1** to **29** - * @return captureDelay The [capture delay](https://docs.adyen.com/online-payments/capture#capture-delay) set for the merchant account. Possible values: * **Immediate** * **Manual** * Number of days from **1** to **29** + * The [capture delay](https://docs.adyen.com/online-payments/capture#capture-delay) set for the + * merchant account. Possible values: * **Immediate** * **Manual** * Number of days from **1** to + * **29** + * + * @return captureDelay The [capture + * delay](https://docs.adyen.com/online-payments/capture#capture-delay) set for the merchant + * account. Possible values: * **Immediate** * **Manual** * Number of days from **1** to + * **29** */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,9 +149,14 @@ public String getCaptureDelay() { } /** - * The [capture delay](https://docs.adyen.com/online-payments/capture#capture-delay) set for the merchant account. Possible values: * **Immediate** * **Manual** * Number of days from **1** to **29** + * The [capture delay](https://docs.adyen.com/online-payments/capture#capture-delay) set for the + * merchant account. Possible values: * **Immediate** * **Manual** * Number of days from **1** to + * **29** * - * @param captureDelay The [capture delay](https://docs.adyen.com/online-payments/capture#capture-delay) set for the merchant account. Possible values: * **Immediate** * **Manual** * Number of days from **1** to **29** + * @param captureDelay The [capture + * delay](https://docs.adyen.com/online-payments/capture#capture-delay) set for the merchant + * account. Possible values: * **Immediate** * **Manual** * Number of days from **1** to + * **29** */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -171,6 +177,7 @@ public Merchant companyId(String companyId) { /** * The unique identifier of the company account this merchant belongs to + * * @return companyId The unique identifier of the company account this merchant belongs to */ @JsonProperty(JSON_PROPERTY_COMPANY_ID) @@ -191,9 +198,13 @@ public void setCompanyId(String companyId) { } /** - * List of available data centers. Adyen has several data centers around the world.In the URL that you use for making API requests, we recommend you use the live URL prefix from the data center closest to your shoppers. + * List of available data centers. Adyen has several data centers around the world.In the URL that + * you use for making API requests, we recommend you use the live URL prefix from the data center + * closest to your shoppers. * - * @param dataCenters List of available data centers. Adyen has several data centers around the world.In the URL that you use for making API requests, we recommend you use the live URL prefix from the data center closest to your shoppers. + * @param dataCenters List of available data centers. Adyen has several data centers around the + * world.In the URL that you use for making API requests, we recommend you use the live URL + * prefix from the data center closest to your shoppers. * @return the current {@code Merchant} instance, allowing for method chaining */ public Merchant dataCenters(List dataCenters) { @@ -210,8 +221,13 @@ public Merchant addDataCentersItem(DataCenter dataCentersItem) { } /** - * List of available data centers. Adyen has several data centers around the world.In the URL that you use for making API requests, we recommend you use the live URL prefix from the data center closest to your shoppers. - * @return dataCenters List of available data centers. Adyen has several data centers around the world.In the URL that you use for making API requests, we recommend you use the live URL prefix from the data center closest to your shoppers. + * List of available data centers. Adyen has several data centers around the world.In the URL that + * you use for making API requests, we recommend you use the live URL prefix from the data center + * closest to your shoppers. + * + * @return dataCenters List of available data centers. Adyen has several data centers around the + * world.In the URL that you use for making API requests, we recommend you use the live URL + * prefix from the data center closest to your shoppers. */ @JsonProperty(JSON_PROPERTY_DATA_CENTERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -220,9 +236,13 @@ public List getDataCenters() { } /** - * List of available data centers. Adyen has several data centers around the world.In the URL that you use for making API requests, we recommend you use the live URL prefix from the data center closest to your shoppers. + * List of available data centers. Adyen has several data centers around the world.In the URL that + * you use for making API requests, we recommend you use the live URL prefix from the data center + * closest to your shoppers. * - * @param dataCenters List of available data centers. Adyen has several data centers around the world.In the URL that you use for making API requests, we recommend you use the live URL prefix from the data center closest to your shoppers. + * @param dataCenters List of available data centers. Adyen has several data centers around the + * world.In the URL that you use for making API requests, we recommend you use the live URL + * prefix from the data center closest to your shoppers. */ @JsonProperty(JSON_PROPERTY_DATA_CENTERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -231,9 +251,13 @@ public void setDataCenters(List dataCenters) { } /** - * The default [`shopperInteraction`](https://docs.adyen.com/api-explorer/#/CheckoutService/v68/post/payments__reqParam_shopperInteraction) value used when processing payments through this merchant account. + * The default + * [`shopperInteraction`](https://docs.adyen.com/api-explorer/#/CheckoutService/v68/post/payments__reqParam_shopperInteraction) + * value used when processing payments through this merchant account. * - * @param defaultShopperInteraction The default [`shopperInteraction`](https://docs.adyen.com/api-explorer/#/CheckoutService/v68/post/payments__reqParam_shopperInteraction) value used when processing payments through this merchant account. + * @param defaultShopperInteraction The default + * [`shopperInteraction`](https://docs.adyen.com/api-explorer/#/CheckoutService/v68/post/payments__reqParam_shopperInteraction) + * value used when processing payments through this merchant account. * @return the current {@code Merchant} instance, allowing for method chaining */ public Merchant defaultShopperInteraction(String defaultShopperInteraction) { @@ -242,8 +266,13 @@ public Merchant defaultShopperInteraction(String defaultShopperInteraction) { } /** - * The default [`shopperInteraction`](https://docs.adyen.com/api-explorer/#/CheckoutService/v68/post/payments__reqParam_shopperInteraction) value used when processing payments through this merchant account. - * @return defaultShopperInteraction The default [`shopperInteraction`](https://docs.adyen.com/api-explorer/#/CheckoutService/v68/post/payments__reqParam_shopperInteraction) value used when processing payments through this merchant account. + * The default + * [`shopperInteraction`](https://docs.adyen.com/api-explorer/#/CheckoutService/v68/post/payments__reqParam_shopperInteraction) + * value used when processing payments through this merchant account. + * + * @return defaultShopperInteraction The default + * [`shopperInteraction`](https://docs.adyen.com/api-explorer/#/CheckoutService/v68/post/payments__reqParam_shopperInteraction) + * value used when processing payments through this merchant account. */ @JsonProperty(JSON_PROPERTY_DEFAULT_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,9 +281,13 @@ public String getDefaultShopperInteraction() { } /** - * The default [`shopperInteraction`](https://docs.adyen.com/api-explorer/#/CheckoutService/v68/post/payments__reqParam_shopperInteraction) value used when processing payments through this merchant account. + * The default + * [`shopperInteraction`](https://docs.adyen.com/api-explorer/#/CheckoutService/v68/post/payments__reqParam_shopperInteraction) + * value used when processing payments through this merchant account. * - * @param defaultShopperInteraction The default [`shopperInteraction`](https://docs.adyen.com/api-explorer/#/CheckoutService/v68/post/payments__reqParam_shopperInteraction) value used when processing payments through this merchant account. + * @param defaultShopperInteraction The default + * [`shopperInteraction`](https://docs.adyen.com/api-explorer/#/CheckoutService/v68/post/payments__reqParam_shopperInteraction) + * value used when processing payments through this merchant account. */ @JsonProperty(JSON_PROPERTY_DEFAULT_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -275,6 +308,7 @@ public Merchant description(String description) { /** * Your description for the merchant account, maximum 300 characters + * * @return description Your description for the merchant account, maximum 300 characters */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -307,6 +341,7 @@ public Merchant id(String id) { /** * The unique identifier of the merchant account. + * * @return id The unique identifier of the merchant account. */ @JsonProperty(JSON_PROPERTY_ID) @@ -339,6 +374,7 @@ public Merchant merchantCity(String merchantCity) { /** * The city where the legal entity of this merchant account is registered. + * * @return merchantCity The city where the legal entity of this merchant account is registered. */ @JsonProperty(JSON_PROPERTY_MERCHANT_CITY) @@ -371,6 +407,7 @@ public Merchant name(String name) { /** * The name of the legal entity associated with the merchant account. + * * @return name The name of the legal entity associated with the merchant account. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -391,9 +428,11 @@ public void setName(String name) { } /** - * Only applies to merchant accounts managed by Adyen's partners. The name of the pricing plan assigned to the merchant account. + * Only applies to merchant accounts managed by Adyen's partners. The name of the pricing plan + * assigned to the merchant account. * - * @param pricingPlan Only applies to merchant accounts managed by Adyen's partners. The name of the pricing plan assigned to the merchant account. + * @param pricingPlan Only applies to merchant accounts managed by Adyen's partners. The name + * of the pricing plan assigned to the merchant account. * @return the current {@code Merchant} instance, allowing for method chaining */ public Merchant pricingPlan(String pricingPlan) { @@ -402,8 +441,11 @@ public Merchant pricingPlan(String pricingPlan) { } /** - * Only applies to merchant accounts managed by Adyen's partners. The name of the pricing plan assigned to the merchant account. - * @return pricingPlan Only applies to merchant accounts managed by Adyen's partners. The name of the pricing plan assigned to the merchant account. + * Only applies to merchant accounts managed by Adyen's partners. The name of the pricing plan + * assigned to the merchant account. + * + * @return pricingPlan Only applies to merchant accounts managed by Adyen's partners. The name + * of the pricing plan assigned to the merchant account. */ @JsonProperty(JSON_PROPERTY_PRICING_PLAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -412,9 +454,11 @@ public String getPricingPlan() { } /** - * Only applies to merchant accounts managed by Adyen's partners. The name of the pricing plan assigned to the merchant account. + * Only applies to merchant accounts managed by Adyen's partners. The name of the pricing plan + * assigned to the merchant account. * - * @param pricingPlan Only applies to merchant accounts managed by Adyen's partners. The name of the pricing plan assigned to the merchant account. + * @param pricingPlan Only applies to merchant accounts managed by Adyen's partners. The name + * of the pricing plan assigned to the merchant account. */ @JsonProperty(JSON_PROPERTY_PRICING_PLAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -423,9 +467,14 @@ public void setPricingPlan(String pricingPlan) { } /** - * The currency of the country where the legal entity of this merchant account is registered. Format: [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, a legal entity based in the United States has USD as the primary settlement currency. + * The currency of the country where the legal entity of this merchant account is registered. + * Format: [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For + * example, a legal entity based in the United States has USD as the primary settlement currency. * - * @param primarySettlementCurrency The currency of the country where the legal entity of this merchant account is registered. Format: [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, a legal entity based in the United States has USD as the primary settlement currency. + * @param primarySettlementCurrency The currency of the country where the legal entity of this + * merchant account is registered. Format: [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). For example, a legal + * entity based in the United States has USD as the primary settlement currency. * @return the current {@code Merchant} instance, allowing for method chaining */ public Merchant primarySettlementCurrency(String primarySettlementCurrency) { @@ -434,8 +483,14 @@ public Merchant primarySettlementCurrency(String primarySettlementCurrency) { } /** - * The currency of the country where the legal entity of this merchant account is registered. Format: [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, a legal entity based in the United States has USD as the primary settlement currency. - * @return primarySettlementCurrency The currency of the country where the legal entity of this merchant account is registered. Format: [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, a legal entity based in the United States has USD as the primary settlement currency. + * The currency of the country where the legal entity of this merchant account is registered. + * Format: [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For + * example, a legal entity based in the United States has USD as the primary settlement currency. + * + * @return primarySettlementCurrency The currency of the country where the legal entity of this + * merchant account is registered. Format: [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). For example, a legal + * entity based in the United States has USD as the primary settlement currency. */ @JsonProperty(JSON_PROPERTY_PRIMARY_SETTLEMENT_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -444,9 +499,14 @@ public String getPrimarySettlementCurrency() { } /** - * The currency of the country where the legal entity of this merchant account is registered. Format: [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, a legal entity based in the United States has USD as the primary settlement currency. + * The currency of the country where the legal entity of this merchant account is registered. + * Format: [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For + * example, a legal entity based in the United States has USD as the primary settlement currency. * - * @param primarySettlementCurrency The currency of the country where the legal entity of this merchant account is registered. Format: [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, a legal entity based in the United States has USD as the primary settlement currency. + * @param primarySettlementCurrency The currency of the country where the legal entity of this + * merchant account is registered. Format: [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). For example, a legal + * entity based in the United States has USD as the primary settlement currency. */ @JsonProperty(JSON_PROPERTY_PRIMARY_SETTLEMENT_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -467,6 +527,7 @@ public Merchant reference(String reference) { /** * Reference of the merchant account. + * * @return reference Reference of the merchant account. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -499,6 +560,7 @@ public Merchant shopWebAddress(String shopWebAddress) { /** * The URL for the ecommerce website used with this merchant account. + * * @return shopWebAddress The URL for the ecommerce website used with this merchant account. */ @JsonProperty(JSON_PROPERTY_SHOP_WEB_ADDRESS) @@ -519,9 +581,26 @@ public void setShopWebAddress(String shopWebAddress) { } /** - * The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. You cannot process new payments but you can still modify payments, for example issue refunds. You can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. + * The status of the merchant account. Possible values: * **PreActive**: The merchant account has + * been created. Users cannot access the merchant account in the Customer Area. The account cannot + * process payments. * **Active**: Users can access the merchant account in the Customer Area. If + * the company account is also **Active**, then payment processing and payouts are enabled. * + * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. You + * cannot process new payments but you can still modify payments, for example issue refunds. You + * can still receive payouts. * **Inactive**: Users can access the merchant account in the + * Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed + * and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. * - * @param status The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. You cannot process new payments but you can still modify payments, for example issue refunds. You can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. + * @param status The status of the merchant account. Possible values: * **PreActive**: The + * merchant account has been created. Users cannot access the merchant account in the Customer + * Area. The account cannot process payments. * **Active**: Users can access the merchant + * account in the Customer Area. If the company account is also **Active**, then payment + * processing and payouts are enabled. * **InactiveWithModifications**: Users can access the + * merchant account in the Customer Area. You cannot process new payments but you can still + * modify payments, for example issue refunds. You can still receive payouts. * **Inactive**: + * Users can access the merchant account in the Customer Area. Payment processing and payouts + * are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot + * log in. Payment processing and payouts are disabled. * @return the current {@code Merchant} instance, allowing for method chaining */ public Merchant status(String status) { @@ -530,8 +609,26 @@ public Merchant status(String status) { } /** - * The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. You cannot process new payments but you can still modify payments, for example issue refunds. You can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. - * @return status The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. You cannot process new payments but you can still modify payments, for example issue refunds. You can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. + * The status of the merchant account. Possible values: * **PreActive**: The merchant account has + * been created. Users cannot access the merchant account in the Customer Area. The account cannot + * process payments. * **Active**: Users can access the merchant account in the Customer Area. If + * the company account is also **Active**, then payment processing and payouts are enabled. * + * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. You + * cannot process new payments but you can still modify payments, for example issue refunds. You + * can still receive payouts. * **Inactive**: Users can access the merchant account in the + * Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed + * and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. + * + * @return status The status of the merchant account. Possible values: * **PreActive**: The + * merchant account has been created. Users cannot access the merchant account in the Customer + * Area. The account cannot process payments. * **Active**: Users can access the merchant + * account in the Customer Area. If the company account is also **Active**, then payment + * processing and payouts are enabled. * **InactiveWithModifications**: Users can access the + * merchant account in the Customer Area. You cannot process new payments but you can still + * modify payments, for example issue refunds. You can still receive payouts. * **Inactive**: + * Users can access the merchant account in the Customer Area. Payment processing and payouts + * are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot + * log in. Payment processing and payouts are disabled. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -540,9 +637,26 @@ public String getStatus() { } /** - * The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. You cannot process new payments but you can still modify payments, for example issue refunds. You can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. + * The status of the merchant account. Possible values: * **PreActive**: The merchant account has + * been created. Users cannot access the merchant account in the Customer Area. The account cannot + * process payments. * **Active**: Users can access the merchant account in the Customer Area. If + * the company account is also **Active**, then payment processing and payouts are enabled. * + * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. You + * cannot process new payments but you can still modify payments, for example issue refunds. You + * can still receive payouts. * **Inactive**: Users can access the merchant account in the + * Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed + * and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. * - * @param status The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. You cannot process new payments but you can still modify payments, for example issue refunds. You can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. + * @param status The status of the merchant account. Possible values: * **PreActive**: The + * merchant account has been created. Users cannot access the merchant account in the Customer + * Area. The account cannot process payments. * **Active**: Users can access the merchant + * account in the Customer Area. If the company account is also **Active**, then payment + * processing and payouts are enabled. * **InactiveWithModifications**: Users can access the + * merchant account in the Customer Area. You cannot process new payments but you can still + * modify payments, for example issue refunds. You can still receive payouts. * **Inactive**: + * Users can access the merchant account in the Customer Area. Payment processing and payouts + * are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot + * log in. Payment processing and payouts are disabled. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -550,9 +664,7 @@ public void setStatus(String status) { this.status = status; } - /** - * Return true if this Merchant object is equal to o. - */ + /** Return true if this Merchant object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -562,25 +674,39 @@ public boolean equals(Object o) { return false; } Merchant merchant = (Merchant) o; - return Objects.equals(this.links, merchant.links) && - Objects.equals(this.captureDelay, merchant.captureDelay) && - Objects.equals(this.companyId, merchant.companyId) && - Objects.equals(this.dataCenters, merchant.dataCenters) && - Objects.equals(this.defaultShopperInteraction, merchant.defaultShopperInteraction) && - Objects.equals(this.description, merchant.description) && - Objects.equals(this.id, merchant.id) && - Objects.equals(this.merchantCity, merchant.merchantCity) && - Objects.equals(this.name, merchant.name) && - Objects.equals(this.pricingPlan, merchant.pricingPlan) && - Objects.equals(this.primarySettlementCurrency, merchant.primarySettlementCurrency) && - Objects.equals(this.reference, merchant.reference) && - Objects.equals(this.shopWebAddress, merchant.shopWebAddress) && - Objects.equals(this.status, merchant.status); + return Objects.equals(this.links, merchant.links) + && Objects.equals(this.captureDelay, merchant.captureDelay) + && Objects.equals(this.companyId, merchant.companyId) + && Objects.equals(this.dataCenters, merchant.dataCenters) + && Objects.equals(this.defaultShopperInteraction, merchant.defaultShopperInteraction) + && Objects.equals(this.description, merchant.description) + && Objects.equals(this.id, merchant.id) + && Objects.equals(this.merchantCity, merchant.merchantCity) + && Objects.equals(this.name, merchant.name) + && Objects.equals(this.pricingPlan, merchant.pricingPlan) + && Objects.equals(this.primarySettlementCurrency, merchant.primarySettlementCurrency) + && Objects.equals(this.reference, merchant.reference) + && Objects.equals(this.shopWebAddress, merchant.shopWebAddress) + && Objects.equals(this.status, merchant.status); } @Override public int hashCode() { - return Objects.hash(links, captureDelay, companyId, dataCenters, defaultShopperInteraction, description, id, merchantCity, name, pricingPlan, primarySettlementCurrency, reference, shopWebAddress, status); + return Objects.hash( + links, + captureDelay, + companyId, + dataCenters, + defaultShopperInteraction, + description, + id, + merchantCity, + name, + pricingPlan, + primarySettlementCurrency, + reference, + shopWebAddress, + status); } @Override @@ -591,13 +717,17 @@ public String toString() { sb.append(" captureDelay: ").append(toIndentedString(captureDelay)).append("\n"); sb.append(" companyId: ").append(toIndentedString(companyId)).append("\n"); sb.append(" dataCenters: ").append(toIndentedString(dataCenters)).append("\n"); - sb.append(" defaultShopperInteraction: ").append(toIndentedString(defaultShopperInteraction)).append("\n"); + sb.append(" defaultShopperInteraction: ") + .append(toIndentedString(defaultShopperInteraction)) + .append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" merchantCity: ").append(toIndentedString(merchantCity)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" pricingPlan: ").append(toIndentedString(pricingPlan)).append("\n"); - sb.append(" primarySettlementCurrency: ").append(toIndentedString(primarySettlementCurrency)).append("\n"); + sb.append(" primarySettlementCurrency: ") + .append(toIndentedString(primarySettlementCurrency)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" shopWebAddress: ").append(toIndentedString(shopWebAddress)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); @@ -606,8 +736,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -616,7 +745,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Merchant given an JSON string * * @param jsonString JSON string @@ -626,11 +755,12 @@ private String toIndentedString(Object o) { public static Merchant fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Merchant.class); } -/** - * Convert an instance of Merchant to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Merchant to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/MerchantLinks.java b/src/main/java/com/adyen/model/management/MerchantLinks.java index ac39c5eaf..9d551d61e 100644 --- a/src/main/java/com/adyen/model/management/MerchantLinks.java +++ b/src/main/java/com/adyen/model/management/MerchantLinks.java @@ -2,39 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.LinksElement; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * MerchantLinks - */ +/** MerchantLinks */ @JsonPropertyOrder({ MerchantLinks.JSON_PROPERTY_API_CREDENTIALS, MerchantLinks.JSON_PROPERTY_SELF, MerchantLinks.JSON_PROPERTY_USERS, MerchantLinks.JSON_PROPERTY_WEBHOOKS }) - public class MerchantLinks { public static final String JSON_PROPERTY_API_CREDENTIALS = "apiCredentials"; private LinksElement apiCredentials; @@ -48,13 +37,12 @@ public class MerchantLinks { public static final String JSON_PROPERTY_WEBHOOKS = "webhooks"; private LinksElement webhooks; - public MerchantLinks() { - } + public MerchantLinks() {} /** * apiCredentials * - * @param apiCredentials + * @param apiCredentials * @return the current {@code MerchantLinks} instance, allowing for method chaining */ public MerchantLinks apiCredentials(LinksElement apiCredentials) { @@ -64,7 +52,8 @@ public MerchantLinks apiCredentials(LinksElement apiCredentials) { /** * Get apiCredentials - * @return apiCredentials + * + * @return apiCredentials */ @JsonProperty(JSON_PROPERTY_API_CREDENTIALS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,7 +64,7 @@ public LinksElement getApiCredentials() { /** * apiCredentials * - * @param apiCredentials + * @param apiCredentials */ @JsonProperty(JSON_PROPERTY_API_CREDENTIALS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -86,7 +75,7 @@ public void setApiCredentials(LinksElement apiCredentials) { /** * self * - * @param self + * @param self * @return the current {@code MerchantLinks} instance, allowing for method chaining */ public MerchantLinks self(LinksElement self) { @@ -96,7 +85,8 @@ public MerchantLinks self(LinksElement self) { /** * Get self - * @return self + * + * @return self */ @JsonProperty(JSON_PROPERTY_SELF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,7 +97,7 @@ public LinksElement getSelf() { /** * self * - * @param self + * @param self */ @JsonProperty(JSON_PROPERTY_SELF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,7 +108,7 @@ public void setSelf(LinksElement self) { /** * users * - * @param users + * @param users * @return the current {@code MerchantLinks} instance, allowing for method chaining */ public MerchantLinks users(LinksElement users) { @@ -128,7 +118,8 @@ public MerchantLinks users(LinksElement users) { /** * Get users - * @return users + * + * @return users */ @JsonProperty(JSON_PROPERTY_USERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,7 +130,7 @@ public LinksElement getUsers() { /** * users * - * @param users + * @param users */ @JsonProperty(JSON_PROPERTY_USERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,7 +141,7 @@ public void setUsers(LinksElement users) { /** * webhooks * - * @param webhooks + * @param webhooks * @return the current {@code MerchantLinks} instance, allowing for method chaining */ public MerchantLinks webhooks(LinksElement webhooks) { @@ -160,7 +151,8 @@ public MerchantLinks webhooks(LinksElement webhooks) { /** * Get webhooks - * @return webhooks + * + * @return webhooks */ @JsonProperty(JSON_PROPERTY_WEBHOOKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -171,7 +163,7 @@ public LinksElement getWebhooks() { /** * webhooks * - * @param webhooks + * @param webhooks */ @JsonProperty(JSON_PROPERTY_WEBHOOKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,9 +171,7 @@ public void setWebhooks(LinksElement webhooks) { this.webhooks = webhooks; } - /** - * Return true if this MerchantLinks object is equal to o. - */ + /** Return true if this MerchantLinks object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -191,10 +181,10 @@ public boolean equals(Object o) { return false; } MerchantLinks merchantLinks = (MerchantLinks) o; - return Objects.equals(this.apiCredentials, merchantLinks.apiCredentials) && - Objects.equals(this.self, merchantLinks.self) && - Objects.equals(this.users, merchantLinks.users) && - Objects.equals(this.webhooks, merchantLinks.webhooks); + return Objects.equals(this.apiCredentials, merchantLinks.apiCredentials) + && Objects.equals(this.self, merchantLinks.self) + && Objects.equals(this.users, merchantLinks.users) + && Objects.equals(this.webhooks, merchantLinks.webhooks); } @Override @@ -215,8 +205,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -225,7 +214,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of MerchantLinks given an JSON string * * @param jsonString JSON string @@ -235,11 +224,12 @@ private String toIndentedString(Object o) { public static MerchantLinks fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MerchantLinks.class); } -/** - * Convert an instance of MerchantLinks to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of MerchantLinks to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/MinorUnitsMonetaryValue.java b/src/main/java/com/adyen/model/management/MinorUnitsMonetaryValue.java index 3b6abb299..b45fab988 100644 --- a/src/main/java/com/adyen/model/management/MinorUnitsMonetaryValue.java +++ b/src/main/java/com/adyen/model/management/MinorUnitsMonetaryValue.java @@ -2,36 +2,26 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * MinorUnitsMonetaryValue - */ +/** MinorUnitsMonetaryValue */ @JsonPropertyOrder({ MinorUnitsMonetaryValue.JSON_PROPERTY_AMOUNT, MinorUnitsMonetaryValue.JSON_PROPERTY_CURRENCY_CODE }) - public class MinorUnitsMonetaryValue { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Integer amount; @@ -39,13 +29,14 @@ public class MinorUnitsMonetaryValue { public static final String JSON_PROPERTY_CURRENCY_CODE = "currencyCode"; private String currencyCode; - public MinorUnitsMonetaryValue() { - } + public MinorUnitsMonetaryValue() {} /** - * The transaction amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The transaction amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * - * @param amount The transaction amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @param amount The transaction amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code MinorUnitsMonetaryValue} instance, allowing for method chaining */ public MinorUnitsMonetaryValue amount(Integer amount) { @@ -54,8 +45,11 @@ public MinorUnitsMonetaryValue amount(Integer amount) { } /** - * The transaction amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). - * @return amount The transaction amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The transaction amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). + * + * @return amount The transaction amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +58,11 @@ public Integer getAmount() { } /** - * The transaction amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The transaction amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * - * @param amount The transaction amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @param amount The transaction amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,9 +71,11 @@ public void setAmount(Integer amount) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currencyCode The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @param currencyCode The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code MinorUnitsMonetaryValue} instance, allowing for method chaining */ public MinorUnitsMonetaryValue currencyCode(String currencyCode) { @@ -86,8 +84,11 @@ public MinorUnitsMonetaryValue currencyCode(String currencyCode) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). - * @return currencyCode The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). + * + * @return currencyCode The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +97,11 @@ public String getCurrencyCode() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currencyCode The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @param currencyCode The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +109,7 @@ public void setCurrencyCode(String currencyCode) { this.currencyCode = currencyCode; } - /** - * Return true if this MinorUnitsMonetaryValue object is equal to o. - */ + /** Return true if this MinorUnitsMonetaryValue object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +119,8 @@ public boolean equals(Object o) { return false; } MinorUnitsMonetaryValue minorUnitsMonetaryValue = (MinorUnitsMonetaryValue) o; - return Objects.equals(this.amount, minorUnitsMonetaryValue.amount) && - Objects.equals(this.currencyCode, minorUnitsMonetaryValue.currencyCode); + return Objects.equals(this.amount, minorUnitsMonetaryValue.amount) + && Objects.equals(this.currencyCode, minorUnitsMonetaryValue.currencyCode); } @Override @@ -138,8 +139,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +148,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of MinorUnitsMonetaryValue given an JSON string * * @param jsonString JSON string * @return An instance of MinorUnitsMonetaryValue - * @throws JsonProcessingException if the JSON string is invalid with respect to MinorUnitsMonetaryValue + * @throws JsonProcessingException if the JSON string is invalid with respect to + * MinorUnitsMonetaryValue */ public static MinorUnitsMonetaryValue fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MinorUnitsMonetaryValue.class); } -/** - * Convert an instance of MinorUnitsMonetaryValue to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of MinorUnitsMonetaryValue to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ModelConfiguration.java b/src/main/java/com/adyen/model/management/ModelConfiguration.java index 70dd74563..e41bba672 100644 --- a/src/main/java/com/adyen/model/management/ModelConfiguration.java +++ b/src/main/java/com/adyen/model/management/ModelConfiguration.java @@ -2,34 +2,25 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.Currency; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -/** - * ModelConfiguration - */ +/** ModelConfiguration */ @JsonPropertyOrder({ ModelConfiguration.JSON_PROPERTY_BRAND, ModelConfiguration.JSON_PROPERTY_COMMERCIAL, @@ -38,7 +29,6 @@ ModelConfiguration.JSON_PROPERTY_SOURCES }) @JsonTypeName("Configuration") - public class ModelConfiguration { public static final String JSON_PROPERTY_BRAND = "brand"; private String brand; @@ -55,13 +45,14 @@ public class ModelConfiguration { public static final String JSON_PROPERTY_SOURCES = "sources"; private List sources; - public ModelConfiguration() { - } + public ModelConfiguration() {} /** - * Payment method, like **eftpos_australia** or **mc**. See the [possible values](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * Payment method, like **eftpos_australia** or **mc**. See the [possible + * values](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). * - * @param brand Payment method, like **eftpos_australia** or **mc**. See the [possible values](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * @param brand Payment method, like **eftpos_australia** or **mc**. See the [possible + * values](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). * @return the current {@code ModelConfiguration} instance, allowing for method chaining */ public ModelConfiguration brand(String brand) { @@ -70,8 +61,11 @@ public ModelConfiguration brand(String brand) { } /** - * Payment method, like **eftpos_australia** or **mc**. See the [possible values](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). - * @return brand Payment method, like **eftpos_australia** or **mc**. See the [possible values](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * Payment method, like **eftpos_australia** or **mc**. See the [possible + * values](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * + * @return brand Payment method, like **eftpos_australia** or **mc**. See the [possible + * values](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). */ @JsonProperty(JSON_PROPERTY_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,9 +74,11 @@ public String getBrand() { } /** - * Payment method, like **eftpos_australia** or **mc**. See the [possible values](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * Payment method, like **eftpos_australia** or **mc**. See the [possible + * values](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). * - * @param brand Payment method, like **eftpos_australia** or **mc**. See the [possible values](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * @param brand Payment method, like **eftpos_australia** or **mc**. See the [possible + * values](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). */ @JsonProperty(JSON_PROPERTY_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -103,6 +99,7 @@ public ModelConfiguration commercial(Boolean commercial) { /** * Set to **true** to apply surcharges only to commercial/business cards. + * * @return commercial Set to **true** to apply surcharges only to commercial/business cards. */ @JsonProperty(JSON_PROPERTY_COMMERCIAL) @@ -123,9 +120,11 @@ public void setCommercial(Boolean commercial) { } /** - * The country/region of the card issuer. If used, the surcharge settings only apply to the card issued in that country/region. + * The country/region of the card issuer. If used, the surcharge settings only apply to the card + * issued in that country/region. * - * @param country The country/region of the card issuer. If used, the surcharge settings only apply to the card issued in that country/region. + * @param country The country/region of the card issuer. If used, the surcharge settings only + * apply to the card issued in that country/region. * @return the current {@code ModelConfiguration} instance, allowing for method chaining */ public ModelConfiguration country(List country) { @@ -142,8 +141,11 @@ public ModelConfiguration addCountryItem(String countryItem) { } /** - * The country/region of the card issuer. If used, the surcharge settings only apply to the card issued in that country/region. - * @return country The country/region of the card issuer. If used, the surcharge settings only apply to the card issued in that country/region. + * The country/region of the card issuer. If used, the surcharge settings only apply to the card + * issued in that country/region. + * + * @return country The country/region of the card issuer. If used, the surcharge settings only + * apply to the card issued in that country/region. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,9 +154,11 @@ public List getCountry() { } /** - * The country/region of the card issuer. If used, the surcharge settings only apply to the card issued in that country/region. + * The country/region of the card issuer. If used, the surcharge settings only apply to the card + * issued in that country/region. * - * @param country The country/region of the card issuer. If used, the surcharge settings only apply to the card issued in that country/region. + * @param country The country/region of the card issuer. If used, the surcharge settings only + * apply to the card issued in that country/region. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,6 +187,7 @@ public ModelConfiguration addCurrenciesItem(Currency currenciesItem) { /** * Currency and percentage or amount of the surcharge. + * * @return currencies Currency and percentage or amount of the surcharge. */ @JsonProperty(JSON_PROPERTY_CURRENCIES) @@ -223,6 +228,7 @@ public ModelConfiguration addSourcesItem(String sourcesItem) { /** * Funding source. Possible values: * **Credit** * **Debit** + * * @return sources Funding source. Possible values: * **Credit** * **Debit** */ @JsonProperty(JSON_PROPERTY_SOURCES) @@ -242,9 +248,7 @@ public void setSources(List sources) { this.sources = sources; } - /** - * Return true if this Configuration object is equal to o. - */ + /** Return true if this Configuration object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -254,11 +258,11 @@ public boolean equals(Object o) { return false; } ModelConfiguration configuration = (ModelConfiguration) o; - return Objects.equals(this.brand, configuration.brand) && - Objects.equals(this.commercial, configuration.commercial) && - Objects.equals(this.country, configuration.country) && - Objects.equals(this.currencies, configuration.currencies) && - Objects.equals(this.sources, configuration.sources); + return Objects.equals(this.brand, configuration.brand) + && Objects.equals(this.commercial, configuration.commercial) + && Objects.equals(this.country, configuration.country) + && Objects.equals(this.currencies, configuration.currencies) + && Objects.equals(this.sources, configuration.sources); } @Override @@ -280,8 +284,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -290,21 +293,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ModelConfiguration given an JSON string * * @param jsonString JSON string * @return An instance of ModelConfiguration - * @throws JsonProcessingException if the JSON string is invalid with respect to ModelConfiguration + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ModelConfiguration */ public static ModelConfiguration fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ModelConfiguration.class); } -/** - * Convert an instance of ModelConfiguration to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ModelConfiguration to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ModelFile.java b/src/main/java/com/adyen/model/management/ModelFile.java index cc1359fa6..c3b456cf6 100644 --- a/src/main/java/com/adyen/model/management/ModelFile.java +++ b/src/main/java/com/adyen/model/management/ModelFile.java @@ -2,37 +2,25 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ModelFile - */ -@JsonPropertyOrder({ - ModelFile.JSON_PROPERTY_DATA, - ModelFile.JSON_PROPERTY_NAME -}) +/** ModelFile */ +@JsonPropertyOrder({ModelFile.JSON_PROPERTY_DATA, ModelFile.JSON_PROPERTY_NAME}) @JsonTypeName("File") - public class ModelFile { public static final String JSON_PROPERTY_DATA = "data"; private String data; @@ -40,8 +28,7 @@ public class ModelFile { public static final String JSON_PROPERTY_NAME = "name"; private String name; - public ModelFile() { - } + public ModelFile() {} /** * The certificate content converted to a Base64-encoded string. @@ -56,6 +43,7 @@ public ModelFile data(String data) { /** * The certificate content converted to a Base64-encoded string. + * * @return data The certificate content converted to a Base64-encoded string. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -88,6 +76,7 @@ public ModelFile name(String name) { /** * The name of the certificate. Must be unique across Wi-Fi profiles. + * * @return name The name of the certificate. Must be unique across Wi-Fi profiles. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -107,9 +96,7 @@ public void setName(String name) { this.name = name; } - /** - * Return true if this File object is equal to o. - */ + /** Return true if this File object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -119,8 +106,7 @@ public boolean equals(Object o) { return false; } ModelFile _file = (ModelFile) o; - return Objects.equals(this.data, _file.data) && - Objects.equals(this.name, _file.name); + return Objects.equals(this.data, _file.data) && Objects.equals(this.name, _file.name); } @Override @@ -139,8 +125,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -149,7 +134,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ModelFile given an JSON string * * @param jsonString JSON string @@ -159,11 +144,12 @@ private String toIndentedString(Object o) { public static ModelFile fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ModelFile.class); } -/** - * Convert an instance of ModelFile to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ModelFile to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Name.java b/src/main/java/com/adyen/model/management/Name.java index 4476f34cf..bc24079c8 100644 --- a/src/main/java/com/adyen/model/management/Name.java +++ b/src/main/java/com/adyen/model/management/Name.java @@ -2,36 +2,23 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Name - */ -@JsonPropertyOrder({ - Name.JSON_PROPERTY_FIRST_NAME, - Name.JSON_PROPERTY_LAST_NAME -}) - +/** Name */ +@JsonPropertyOrder({Name.JSON_PROPERTY_FIRST_NAME, Name.JSON_PROPERTY_LAST_NAME}) public class Name { public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; private String firstName; @@ -39,8 +26,7 @@ public class Name { public static final String JSON_PROPERTY_LAST_NAME = "lastName"; private String lastName; - public Name() { - } + public Name() {} /** * The first name. @@ -55,6 +41,7 @@ public Name firstName(String firstName) { /** * The first name. + * * @return firstName The first name. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @@ -87,6 +74,7 @@ public Name lastName(String lastName) { /** * The last name. + * * @return lastName The last name. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @@ -106,9 +94,7 @@ public void setLastName(String lastName) { this.lastName = lastName; } - /** - * Return true if this Name object is equal to o. - */ + /** Return true if this Name object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +104,8 @@ public boolean equals(Object o) { return false; } Name name = (Name) o; - return Objects.equals(this.firstName, name.firstName) && - Objects.equals(this.lastName, name.lastName); + return Objects.equals(this.firstName, name.firstName) + && Objects.equals(this.lastName, name.lastName); } @Override @@ -138,8 +124,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +133,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Name given an JSON string * * @param jsonString JSON string @@ -158,11 +143,12 @@ private String toIndentedString(Object o) { public static Name fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Name.class); } -/** - * Convert an instance of Name to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Name to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Name2.java b/src/main/java/com/adyen/model/management/Name2.java index 95cb755c8..8c671e1ed 100644 --- a/src/main/java/com/adyen/model/management/Name2.java +++ b/src/main/java/com/adyen/model/management/Name2.java @@ -2,36 +2,23 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Name2 - */ -@JsonPropertyOrder({ - Name2.JSON_PROPERTY_FIRST_NAME, - Name2.JSON_PROPERTY_LAST_NAME -}) - +/** Name2 */ +@JsonPropertyOrder({Name2.JSON_PROPERTY_FIRST_NAME, Name2.JSON_PROPERTY_LAST_NAME}) public class Name2 { public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; private String firstName; @@ -39,8 +26,7 @@ public class Name2 { public static final String JSON_PROPERTY_LAST_NAME = "lastName"; private String lastName; - public Name2() { - } + public Name2() {} /** * The first name. @@ -55,6 +41,7 @@ public Name2 firstName(String firstName) { /** * The first name. + * * @return firstName The first name. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @@ -87,6 +74,7 @@ public Name2 lastName(String lastName) { /** * The last name. + * * @return lastName The last name. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @@ -106,9 +94,7 @@ public void setLastName(String lastName) { this.lastName = lastName; } - /** - * Return true if this Name2 object is equal to o. - */ + /** Return true if this Name2 object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +104,8 @@ public boolean equals(Object o) { return false; } Name2 name2 = (Name2) o; - return Objects.equals(this.firstName, name2.firstName) && - Objects.equals(this.lastName, name2.lastName); + return Objects.equals(this.firstName, name2.firstName) + && Objects.equals(this.lastName, name2.lastName); } @Override @@ -138,8 +124,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +133,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Name2 given an JSON string * * @param jsonString JSON string @@ -158,11 +143,12 @@ private String toIndentedString(Object o) { public static Name2 fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Name2.class); } -/** - * Convert an instance of Name2 to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Name2 to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Nexo.java b/src/main/java/com/adyen/model/management/Nexo.java index 093a2924d..b6aaa0414 100644 --- a/src/main/java/com/adyen/model/management/Nexo.java +++ b/src/main/java/com/adyen/model/management/Nexo.java @@ -2,37 +2,24 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.EventUrl; -import com.adyen.model.management.Key; -import com.adyen.model.management.Notification; -import com.adyen.model.management.NotificationUrl; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * Nexo - */ +/** Nexo */ @JsonPropertyOrder({ Nexo.JSON_PROPERTY_DISPLAY_URLS, Nexo.JSON_PROPERTY_ENCRYPTION_KEY, @@ -40,7 +27,6 @@ Nexo.JSON_PROPERTY_NEXO_EVENT_URLS, Nexo.JSON_PROPERTY_NOTIFICATION }) - public class Nexo { public static final String JSON_PROPERTY_DISPLAY_URLS = "displayUrls"; private NotificationUrl displayUrls; @@ -58,13 +44,12 @@ public class Nexo { public static final String JSON_PROPERTY_NOTIFICATION = "notification"; private Notification notification; - public Nexo() { - } + public Nexo() {} /** * displayUrls * - * @param displayUrls + * @param displayUrls * @return the current {@code Nexo} instance, allowing for method chaining */ public Nexo displayUrls(NotificationUrl displayUrls) { @@ -74,7 +59,8 @@ public Nexo displayUrls(NotificationUrl displayUrls) { /** * Get displayUrls - * @return displayUrls + * + * @return displayUrls */ @JsonProperty(JSON_PROPERTY_DISPLAY_URLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -85,7 +71,7 @@ public NotificationUrl getDisplayUrls() { /** * displayUrls * - * @param displayUrls + * @param displayUrls */ @JsonProperty(JSON_PROPERTY_DISPLAY_URLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,7 +82,7 @@ public void setDisplayUrls(NotificationUrl displayUrls) { /** * encryptionKey * - * @param encryptionKey + * @param encryptionKey * @return the current {@code Nexo} instance, allowing for method chaining */ public Nexo encryptionKey(Key encryptionKey) { @@ -106,7 +92,8 @@ public Nexo encryptionKey(Key encryptionKey) { /** * Get encryptionKey - * @return encryptionKey + * + * @return encryptionKey */ @JsonProperty(JSON_PROPERTY_ENCRYPTION_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,7 +104,7 @@ public Key getEncryptionKey() { /** * encryptionKey * - * @param encryptionKey + * @param encryptionKey */ @JsonProperty(JSON_PROPERTY_ENCRYPTION_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,7 +115,7 @@ public void setEncryptionKey(Key encryptionKey) { /** * eventUrls * - * @param eventUrls + * @param eventUrls * @return the current {@code Nexo} instance, allowing for method chaining */ public Nexo eventUrls(EventUrl eventUrls) { @@ -138,7 +125,8 @@ public Nexo eventUrls(EventUrl eventUrls) { /** * Get eventUrls - * @return eventUrls + * + * @return eventUrls */ @JsonProperty(JSON_PROPERTY_EVENT_URLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -149,7 +137,7 @@ public EventUrl getEventUrls() { /** * eventUrls * - * @param eventUrls + * @param eventUrls */ @JsonProperty(JSON_PROPERTY_EVENT_URLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -162,9 +150,7 @@ public void setEventUrls(EventUrl eventUrls) { * * @param nexoEventUrls One or more URLs to send event messages to when using Terminal API. * @return the current {@code Nexo} instance, allowing for method chaining - * - * @deprecated since Management API v1 - * Use `eventUrls` instead. + * @deprecated since Management API v1 Use `eventUrls` instead. */ @Deprecated // deprecated since Management API v1: Use `eventUrls` instead. public Nexo nexoEventUrls(List nexoEventUrls) { @@ -182,6 +168,7 @@ public Nexo addNexoEventUrlsItem(String nexoEventUrlsItem) { /** * One or more URLs to send event messages to when using Terminal API. + * * @return nexoEventUrls One or more URLs to send event messages to when using Terminal API. * @deprecated // deprecated since Management API v1: Use `eventUrls` instead. */ @@ -196,9 +183,7 @@ public List getNexoEventUrls() { * One or more URLs to send event messages to when using Terminal API. * * @param nexoEventUrls One or more URLs to send event messages to when using Terminal API. - * - * @deprecated since Management API v1 - * Use `eventUrls` instead. + * @deprecated since Management API v1 Use `eventUrls` instead. */ @Deprecated // deprecated since Management API v1: Use `eventUrls` instead. @JsonProperty(JSON_PROPERTY_NEXO_EVENT_URLS) @@ -210,7 +195,7 @@ public void setNexoEventUrls(List nexoEventUrls) { /** * notification * - * @param notification + * @param notification * @return the current {@code Nexo} instance, allowing for method chaining */ public Nexo notification(Notification notification) { @@ -220,7 +205,8 @@ public Nexo notification(Notification notification) { /** * Get notification - * @return notification + * + * @return notification */ @JsonProperty(JSON_PROPERTY_NOTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -231,7 +217,7 @@ public Notification getNotification() { /** * notification * - * @param notification + * @param notification */ @JsonProperty(JSON_PROPERTY_NOTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -239,9 +225,7 @@ public void setNotification(Notification notification) { this.notification = notification; } - /** - * Return true if this Nexo object is equal to o. - */ + /** Return true if this Nexo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -251,11 +235,11 @@ public boolean equals(Object o) { return false; } Nexo nexo = (Nexo) o; - return Objects.equals(this.displayUrls, nexo.displayUrls) && - Objects.equals(this.encryptionKey, nexo.encryptionKey) && - Objects.equals(this.eventUrls, nexo.eventUrls) && - Objects.equals(this.nexoEventUrls, nexo.nexoEventUrls) && - Objects.equals(this.notification, nexo.notification); + return Objects.equals(this.displayUrls, nexo.displayUrls) + && Objects.equals(this.encryptionKey, nexo.encryptionKey) + && Objects.equals(this.eventUrls, nexo.eventUrls) + && Objects.equals(this.nexoEventUrls, nexo.nexoEventUrls) + && Objects.equals(this.notification, nexo.notification); } @Override @@ -277,8 +261,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -287,7 +270,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Nexo given an JSON string * * @param jsonString JSON string @@ -297,11 +280,12 @@ private String toIndentedString(Object o) { public static Nexo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Nexo.class); } -/** - * Convert an instance of Nexo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Nexo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Notification.java b/src/main/java/com/adyen/model/management/Notification.java index 8df6fba28..b00824e95 100644 --- a/src/main/java/com/adyen/model/management/Notification.java +++ b/src/main/java/com/adyen/model/management/Notification.java @@ -2,31 +2,26 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * Notification - */ +/** Notification */ @JsonPropertyOrder({ Notification.JSON_PROPERTY_CATEGORY, Notification.JSON_PROPERTY_DETAILS, @@ -34,13 +29,9 @@ Notification.JSON_PROPERTY_SHOW_BUTTON, Notification.JSON_PROPERTY_TITLE }) - public class Notification { - /** - * The type of event notification sent when you select the notification button. - */ + /** The type of event notification sent when you select the notification button. */ public enum CategoryEnum { - SALEWAKEUP(String.valueOf("SaleWakeUp")), KEYPRESSED(String.valueOf("KeyPressed")), @@ -52,7 +43,7 @@ public enum CategoryEnum { private String value; CategoryEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +64,11 @@ public static CategoryEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("CategoryEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CategoryEnum.values())); + LOG.warning( + "CategoryEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(CategoryEnum.values())); return null; } } @@ -93,8 +88,7 @@ public static CategoryEnum fromValue(String value) { public static final String JSON_PROPERTY_TITLE = "title"; private String title; - public Notification() { - } + public Notification() {} /** * The type of event notification sent when you select the notification button. @@ -109,6 +103,7 @@ public Notification category(CategoryEnum category) { /** * The type of event notification sent when you select the notification button. + * * @return category The type of event notification sent when you select the notification button. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @@ -129,9 +124,11 @@ public void setCategory(CategoryEnum category) { } /** - * The text shown in the prompt which opens when you select the notification button. For example, the description of the input box for pay-at-table. + * The text shown in the prompt which opens when you select the notification button. For example, + * the description of the input box for pay-at-table. * - * @param details The text shown in the prompt which opens when you select the notification button. For example, the description of the input box for pay-at-table. + * @param details The text shown in the prompt which opens when you select the notification + * button. For example, the description of the input box for pay-at-table. * @return the current {@code Notification} instance, allowing for method chaining */ public Notification details(String details) { @@ -140,8 +137,11 @@ public Notification details(String details) { } /** - * The text shown in the prompt which opens when you select the notification button. For example, the description of the input box for pay-at-table. - * @return details The text shown in the prompt which opens when you select the notification button. For example, the description of the input box for pay-at-table. + * The text shown in the prompt which opens when you select the notification button. For example, + * the description of the input box for pay-at-table. + * + * @return details The text shown in the prompt which opens when you select the notification + * button. For example, the description of the input box for pay-at-table. */ @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,9 +150,11 @@ public String getDetails() { } /** - * The text shown in the prompt which opens when you select the notification button. For example, the description of the input box for pay-at-table. + * The text shown in the prompt which opens when you select the notification button. For example, + * the description of the input box for pay-at-table. * - * @param details The text shown in the prompt which opens when you select the notification button. For example, the description of the input box for pay-at-table. + * @param details The text shown in the prompt which opens when you select the notification + * button. For example, the description of the input box for pay-at-table. */ @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,9 +163,11 @@ public void setDetails(String details) { } /** - * Enables sending event notifications either by pressing the Confirm key on terminals with a keypad or by tapping the event notification button on the terminal screen. + * Enables sending event notifications either by pressing the Confirm key on terminals with a + * keypad or by tapping the event notification button on the terminal screen. * - * @param enabled Enables sending event notifications either by pressing the Confirm key on terminals with a keypad or by tapping the event notification button on the terminal screen. + * @param enabled Enables sending event notifications either by pressing the Confirm key on + * terminals with a keypad or by tapping the event notification button on the terminal screen. * @return the current {@code Notification} instance, allowing for method chaining */ public Notification enabled(Boolean enabled) { @@ -172,8 +176,11 @@ public Notification enabled(Boolean enabled) { } /** - * Enables sending event notifications either by pressing the Confirm key on terminals with a keypad or by tapping the event notification button on the terminal screen. - * @return enabled Enables sending event notifications either by pressing the Confirm key on terminals with a keypad or by tapping the event notification button on the terminal screen. + * Enables sending event notifications either by pressing the Confirm key on terminals with a + * keypad or by tapping the event notification button on the terminal screen. + * + * @return enabled Enables sending event notifications either by pressing the Confirm key on + * terminals with a keypad or by tapping the event notification button on the terminal screen. */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,9 +189,11 @@ public Boolean getEnabled() { } /** - * Enables sending event notifications either by pressing the Confirm key on terminals with a keypad or by tapping the event notification button on the terminal screen. + * Enables sending event notifications either by pressing the Confirm key on terminals with a + * keypad or by tapping the event notification button on the terminal screen. * - * @param enabled Enables sending event notifications either by pressing the Confirm key on terminals with a keypad or by tapping the event notification button on the terminal screen. + * @param enabled Enables sending event notifications either by pressing the Confirm key on + * terminals with a keypad or by tapping the event notification button on the terminal screen. */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,9 +202,11 @@ public void setEnabled(Boolean enabled) { } /** - * Shows or hides the event notification button on the screen of terminal models that have a keypad. + * Shows or hides the event notification button on the screen of terminal models that have a + * keypad. * - * @param showButton Shows or hides the event notification button on the screen of terminal models that have a keypad. + * @param showButton Shows or hides the event notification button on the screen of terminal models + * that have a keypad. * @return the current {@code Notification} instance, allowing for method chaining */ public Notification showButton(Boolean showButton) { @@ -204,8 +215,11 @@ public Notification showButton(Boolean showButton) { } /** - * Shows or hides the event notification button on the screen of terminal models that have a keypad. - * @return showButton Shows or hides the event notification button on the screen of terminal models that have a keypad. + * Shows or hides the event notification button on the screen of terminal models that have a + * keypad. + * + * @return showButton Shows or hides the event notification button on the screen of terminal + * models that have a keypad. */ @JsonProperty(JSON_PROPERTY_SHOW_BUTTON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,9 +228,11 @@ public Boolean getShowButton() { } /** - * Shows or hides the event notification button on the screen of terminal models that have a keypad. + * Shows or hides the event notification button on the screen of terminal models that have a + * keypad. * - * @param showButton Shows or hides the event notification button on the screen of terminal models that have a keypad. + * @param showButton Shows or hides the event notification button on the screen of terminal models + * that have a keypad. */ @JsonProperty(JSON_PROPERTY_SHOW_BUTTON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,6 +253,7 @@ public Notification title(String title) { /** * The name of the notification button on the terminal screen. + * * @return title The name of the notification button on the terminal screen. */ @JsonProperty(JSON_PROPERTY_TITLE) @@ -256,9 +273,7 @@ public void setTitle(String title) { this.title = title; } - /** - * Return true if this Notification object is equal to o. - */ + /** Return true if this Notification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -268,11 +283,11 @@ public boolean equals(Object o) { return false; } Notification notification = (Notification) o; - return Objects.equals(this.category, notification.category) && - Objects.equals(this.details, notification.details) && - Objects.equals(this.enabled, notification.enabled) && - Objects.equals(this.showButton, notification.showButton) && - Objects.equals(this.title, notification.title); + return Objects.equals(this.category, notification.category) + && Objects.equals(this.details, notification.details) + && Objects.equals(this.enabled, notification.enabled) + && Objects.equals(this.showButton, notification.showButton) + && Objects.equals(this.title, notification.title); } @Override @@ -294,8 +309,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -304,7 +318,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Notification given an JSON string * * @param jsonString JSON string @@ -314,11 +328,12 @@ private String toIndentedString(Object o) { public static Notification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Notification.class); } -/** - * Convert an instance of Notification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Notification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/NotificationUrl.java b/src/main/java/com/adyen/model/management/NotificationUrl.java index c9befe067..e3ff20222 100644 --- a/src/main/java/com/adyen/model/management/NotificationUrl.java +++ b/src/main/java/com/adyen/model/management/NotificationUrl.java @@ -2,39 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.Url; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * NotificationUrl - */ +/** NotificationUrl */ @JsonPropertyOrder({ NotificationUrl.JSON_PROPERTY_LOCAL_URLS, NotificationUrl.JSON_PROPERTY_PUBLIC_URLS }) - public class NotificationUrl { public static final String JSON_PROPERTY_LOCAL_URLS = "localUrls"; private List localUrls; @@ -42,8 +31,7 @@ public class NotificationUrl { public static final String JSON_PROPERTY_PUBLIC_URLS = "publicUrls"; private List publicUrls; - public NotificationUrl() { - } + public NotificationUrl() {} /** * One or more local URLs to send notifications to when using Terminal API. @@ -66,6 +54,7 @@ public NotificationUrl addLocalUrlsItem(Url localUrlsItem) { /** * One or more local URLs to send notifications to when using Terminal API. + * * @return localUrls One or more local URLs to send notifications to when using Terminal API. */ @JsonProperty(JSON_PROPERTY_LOCAL_URLS) @@ -106,6 +95,7 @@ public NotificationUrl addPublicUrlsItem(Url publicUrlsItem) { /** * One or more public URLs to send notifications to when using Terminal API. + * * @return publicUrls One or more public URLs to send notifications to when using Terminal API. */ @JsonProperty(JSON_PROPERTY_PUBLIC_URLS) @@ -125,9 +115,7 @@ public void setPublicUrls(List publicUrls) { this.publicUrls = publicUrls; } - /** - * Return true if this NotificationUrl object is equal to o. - */ + /** Return true if this NotificationUrl object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -137,8 +125,8 @@ public boolean equals(Object o) { return false; } NotificationUrl notificationUrl = (NotificationUrl) o; - return Objects.equals(this.localUrls, notificationUrl.localUrls) && - Objects.equals(this.publicUrls, notificationUrl.publicUrls); + return Objects.equals(this.localUrls, notificationUrl.localUrls) + && Objects.equals(this.publicUrls, notificationUrl.publicUrls); } @Override @@ -157,8 +145,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -167,7 +154,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of NotificationUrl given an JSON string * * @param jsonString JSON string @@ -177,11 +164,12 @@ private String toIndentedString(Object o) { public static NotificationUrl fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NotificationUrl.class); } -/** - * Convert an instance of NotificationUrl to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of NotificationUrl to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/NyceInfo.java b/src/main/java/com/adyen/model/management/NyceInfo.java index f387482a0..e3b13ccd8 100644 --- a/src/main/java/com/adyen/model/management/NyceInfo.java +++ b/src/main/java/com/adyen/model/management/NyceInfo.java @@ -2,43 +2,40 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.TransactionDescriptionInfo; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * NyceInfo - */ +/** NyceInfo */ @JsonPropertyOrder({ NyceInfo.JSON_PROPERTY_PROCESSING_TYPE, NyceInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION }) - public class NyceInfo { /** - * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * The type of transactions processed over this payment method. Allowed values: - **pos** for + * in-person payments. - **billpay** for subscription payments, both the initial payment and the + * later recurring payments. These transactions have `recurringProcessingModel` + * **Subscription**. - **ecom** for all other card not present transactions. This includes + * non-recurring transactions and transactions with `recurringProcessingModel` + * **CardOnFile** or **UnscheduledCardOnFile**. */ public enum ProcessingTypeEnum { - BILLPAY(String.valueOf("billpay")), ECOM(String.valueOf("ecom")), @@ -50,7 +47,7 @@ public enum ProcessingTypeEnum { private String value; ProcessingTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -71,7 +68,11 @@ public static ProcessingTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ProcessingTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ProcessingTypeEnum.values())); + LOG.warning( + "ProcessingTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ProcessingTypeEnum.values())); return null; } } @@ -82,13 +83,22 @@ public static ProcessingTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANSACTION_DESCRIPTION = "transactionDescription"; private TransactionDescriptionInfo transactionDescription; - public NyceInfo() { - } + public NyceInfo() {} /** - * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * The type of transactions processed over this payment method. Allowed values: - **pos** for + * in-person payments. - **billpay** for subscription payments, both the initial payment and the + * later recurring payments. These transactions have `recurringProcessingModel` + * **Subscription**. - **ecom** for all other card not present transactions. This includes + * non-recurring transactions and transactions with `recurringProcessingModel` + * **CardOnFile** or **UnscheduledCardOnFile**. * - * @param processingType The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * @param processingType The type of transactions processed over this payment method. Allowed + * values: - **pos** for in-person payments. - **billpay** for subscription payments, both the + * initial payment and the later recurring payments. These transactions have + * `recurringProcessingModel` **Subscription**. - **ecom** for all other card not + * present transactions. This includes non-recurring transactions and transactions with + * `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. * @return the current {@code NyceInfo} instance, allowing for method chaining */ public NyceInfo processingType(ProcessingTypeEnum processingType) { @@ -97,8 +107,19 @@ public NyceInfo processingType(ProcessingTypeEnum processingType) { } /** - * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. - * @return processingType The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * The type of transactions processed over this payment method. Allowed values: - **pos** for + * in-person payments. - **billpay** for subscription payments, both the initial payment and the + * later recurring payments. These transactions have `recurringProcessingModel` + * **Subscription**. - **ecom** for all other card not present transactions. This includes + * non-recurring transactions and transactions with `recurringProcessingModel` + * **CardOnFile** or **UnscheduledCardOnFile**. + * + * @return processingType The type of transactions processed over this payment method. Allowed + * values: - **pos** for in-person payments. - **billpay** for subscription payments, both the + * initial payment and the later recurring payments. These transactions have + * `recurringProcessingModel` **Subscription**. - **ecom** for all other card not + * present transactions. This includes non-recurring transactions and transactions with + * `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. */ @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,9 +128,19 @@ public ProcessingTypeEnum getProcessingType() { } /** - * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * The type of transactions processed over this payment method. Allowed values: - **pos** for + * in-person payments. - **billpay** for subscription payments, both the initial payment and the + * later recurring payments. These transactions have `recurringProcessingModel` + * **Subscription**. - **ecom** for all other card not present transactions. This includes + * non-recurring transactions and transactions with `recurringProcessingModel` + * **CardOnFile** or **UnscheduledCardOnFile**. * - * @param processingType The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * @param processingType The type of transactions processed over this payment method. Allowed + * values: - **pos** for in-person payments. - **billpay** for subscription payments, both the + * initial payment and the later recurring payments. These transactions have + * `recurringProcessingModel` **Subscription**. - **ecom** for all other card not + * present transactions. This includes non-recurring transactions and transactions with + * `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. */ @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -120,7 +151,7 @@ public void setProcessingType(ProcessingTypeEnum processingType) { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription * @return the current {@code NyceInfo} instance, allowing for method chaining */ public NyceInfo transactionDescription(TransactionDescriptionInfo transactionDescription) { @@ -130,7 +161,8 @@ public NyceInfo transactionDescription(TransactionDescriptionInfo transactionDes /** * Get transactionDescription - * @return transactionDescription + * + * @return transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -141,7 +173,7 @@ public TransactionDescriptionInfo getTransactionDescription() { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -149,9 +181,7 @@ public void setTransactionDescription(TransactionDescriptionInfo transactionDesc this.transactionDescription = transactionDescription; } - /** - * Return true if this NyceInfo object is equal to o. - */ + /** Return true if this NyceInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -161,8 +191,8 @@ public boolean equals(Object o) { return false; } NyceInfo nyceInfo = (NyceInfo) o; - return Objects.equals(this.processingType, nyceInfo.processingType) && - Objects.equals(this.transactionDescription, nyceInfo.transactionDescription); + return Objects.equals(this.processingType, nyceInfo.processingType) + && Objects.equals(this.transactionDescription, nyceInfo.transactionDescription); } @Override @@ -175,14 +205,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NyceInfo {\n"); sb.append(" processingType: ").append(toIndentedString(processingType)).append("\n"); - sb.append(" transactionDescription: ").append(toIndentedString(transactionDescription)).append("\n"); + sb.append(" transactionDescription: ") + .append(toIndentedString(transactionDescription)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -191,7 +222,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of NyceInfo given an JSON string * * @param jsonString JSON string @@ -201,11 +232,12 @@ private String toIndentedString(Object o) { public static NyceInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NyceInfo.class); } -/** - * Convert an instance of NyceInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of NyceInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/OfflineProcessing.java b/src/main/java/com/adyen/model/management/OfflineProcessing.java index b0177aab0..f803e3522 100644 --- a/src/main/java/com/adyen/model/management/OfflineProcessing.java +++ b/src/main/java/com/adyen/model/management/OfflineProcessing.java @@ -2,39 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.MinorUnitsMonetaryValue; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * OfflineProcessing - */ +/** OfflineProcessing */ @JsonPropertyOrder({ OfflineProcessing.JSON_PROPERTY_CHIP_FLOOR_LIMIT, OfflineProcessing.JSON_PROPERTY_OFFLINE_SWIPE_LIMITS }) - public class OfflineProcessing { public static final String JSON_PROPERTY_CHIP_FLOOR_LIMIT = "chipFloorLimit"; private Integer chipFloorLimit; @@ -42,13 +31,15 @@ public class OfflineProcessing { public static final String JSON_PROPERTY_OFFLINE_SWIPE_LIMITS = "offlineSwipeLimits"; private List offlineSwipeLimits; - public OfflineProcessing() { - } + public OfflineProcessing() {} /** - * The maximum offline transaction amount for chip cards, in the processing currency and specified in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The maximum offline transaction amount for chip cards, in the processing currency and specified + * in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * @param chipFloorLimit The maximum offline transaction amount for chip cards, in the processing currency and specified in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @param chipFloorLimit The maximum offline transaction amount for chip cards, in the processing + * currency and specified in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code OfflineProcessing} instance, allowing for method chaining */ public OfflineProcessing chipFloorLimit(Integer chipFloorLimit) { @@ -57,8 +48,12 @@ public OfflineProcessing chipFloorLimit(Integer chipFloorLimit) { } /** - * The maximum offline transaction amount for chip cards, in the processing currency and specified in [minor units](https://docs.adyen.com/development-resources/currency-codes). - * @return chipFloorLimit The maximum offline transaction amount for chip cards, in the processing currency and specified in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The maximum offline transaction amount for chip cards, in the processing currency and specified + * in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * + * @return chipFloorLimit The maximum offline transaction amount for chip cards, in the processing + * currency and specified in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CHIP_FLOOR_LIMIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -67,9 +62,12 @@ public Integer getChipFloorLimit() { } /** - * The maximum offline transaction amount for chip cards, in the processing currency and specified in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The maximum offline transaction amount for chip cards, in the processing currency and specified + * in [minor units](https://docs.adyen.com/development-resources/currency-codes). * - * @param chipFloorLimit The maximum offline transaction amount for chip cards, in the processing currency and specified in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @param chipFloorLimit The maximum offline transaction amount for chip cards, in the processing + * currency and specified in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CHIP_FLOOR_LIMIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,7 +78,8 @@ public void setChipFloorLimit(Integer chipFloorLimit) { /** * The maximum offline transaction amount for swiped cards, in the specified currency. * - * @param offlineSwipeLimits The maximum offline transaction amount for swiped cards, in the specified currency. + * @param offlineSwipeLimits The maximum offline transaction amount for swiped cards, in the + * specified currency. * @return the current {@code OfflineProcessing} instance, allowing for method chaining */ public OfflineProcessing offlineSwipeLimits(List offlineSwipeLimits) { @@ -88,7 +87,8 @@ public OfflineProcessing offlineSwipeLimits(List offlin return this; } - public OfflineProcessing addOfflineSwipeLimitsItem(MinorUnitsMonetaryValue offlineSwipeLimitsItem) { + public OfflineProcessing addOfflineSwipeLimitsItem( + MinorUnitsMonetaryValue offlineSwipeLimitsItem) { if (this.offlineSwipeLimits == null) { this.offlineSwipeLimits = new ArrayList<>(); } @@ -98,7 +98,9 @@ public OfflineProcessing addOfflineSwipeLimitsItem(MinorUnitsMonetaryValue offli /** * The maximum offline transaction amount for swiped cards, in the specified currency. - * @return offlineSwipeLimits The maximum offline transaction amount for swiped cards, in the specified currency. + * + * @return offlineSwipeLimits The maximum offline transaction amount for swiped cards, in the + * specified currency. */ @JsonProperty(JSON_PROPERTY_OFFLINE_SWIPE_LIMITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -109,7 +111,8 @@ public List getOfflineSwipeLimits() { /** * The maximum offline transaction amount for swiped cards, in the specified currency. * - * @param offlineSwipeLimits The maximum offline transaction amount for swiped cards, in the specified currency. + * @param offlineSwipeLimits The maximum offline transaction amount for swiped cards, in the + * specified currency. */ @JsonProperty(JSON_PROPERTY_OFFLINE_SWIPE_LIMITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,9 +120,7 @@ public void setOfflineSwipeLimits(List offlineSwipeLimi this.offlineSwipeLimits = offlineSwipeLimits; } - /** - * Return true if this OfflineProcessing object is equal to o. - */ + /** Return true if this OfflineProcessing object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -129,8 +130,8 @@ public boolean equals(Object o) { return false; } OfflineProcessing offlineProcessing = (OfflineProcessing) o; - return Objects.equals(this.chipFloorLimit, offlineProcessing.chipFloorLimit) && - Objects.equals(this.offlineSwipeLimits, offlineProcessing.offlineSwipeLimits); + return Objects.equals(this.chipFloorLimit, offlineProcessing.chipFloorLimit) + && Objects.equals(this.offlineSwipeLimits, offlineProcessing.offlineSwipeLimits); } @Override @@ -149,8 +150,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -159,7 +159,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of OfflineProcessing given an JSON string * * @param jsonString JSON string @@ -169,11 +169,12 @@ private String toIndentedString(Object o) { public static OfflineProcessing fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, OfflineProcessing.class); } -/** - * Convert an instance of OfflineProcessing to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of OfflineProcessing to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Opi.java b/src/main/java/com/adyen/model/management/Opi.java index 0534289f9..bed060a63 100644 --- a/src/main/java/com/adyen/model/management/Opi.java +++ b/src/main/java/com/adyen/model/management/Opi.java @@ -2,37 +2,27 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Opi - */ +/** Opi */ @JsonPropertyOrder({ Opi.JSON_PROPERTY_ENABLE_PAY_AT_TABLE, Opi.JSON_PROPERTY_PAY_AT_TABLE_STORE_NUMBER, Opi.JSON_PROPERTY_PAY_AT_TABLE_U_R_L }) - public class Opi { public static final String JSON_PROPERTY_ENABLE_PAY_AT_TABLE = "enablePayAtTable"; private Boolean enablePayAtTable; @@ -43,8 +33,7 @@ public class Opi { public static final String JSON_PROPERTY_PAY_AT_TABLE_U_R_L = "payAtTableURL"; private String payAtTableURL; - public Opi() { - } + public Opi() {} /** * Indicates if Pay at table is enabled. @@ -59,6 +48,7 @@ public Opi enablePayAtTable(Boolean enablePayAtTable) { /** * Indicates if Pay at table is enabled. + * * @return enablePayAtTable Indicates if Pay at table is enabled. */ @JsonProperty(JSON_PROPERTY_ENABLE_PAY_AT_TABLE) @@ -91,6 +81,7 @@ public Opi payAtTableStoreNumber(String payAtTableStoreNumber) { /** * The store number to use for Pay at Table. + * * @return payAtTableStoreNumber The store number to use for Pay at Table. */ @JsonProperty(JSON_PROPERTY_PAY_AT_TABLE_STORE_NUMBER) @@ -123,6 +114,7 @@ public Opi payAtTableURL(String payAtTableURL) { /** * The URL and port number used for Pay at Table communication. + * * @return payAtTableURL The URL and port number used for Pay at Table communication. */ @JsonProperty(JSON_PROPERTY_PAY_AT_TABLE_U_R_L) @@ -142,9 +134,7 @@ public void setPayAtTableURL(String payAtTableURL) { this.payAtTableURL = payAtTableURL; } - /** - * Return true if this Opi object is equal to o. - */ + /** Return true if this Opi object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +144,9 @@ public boolean equals(Object o) { return false; } Opi opi = (Opi) o; - return Objects.equals(this.enablePayAtTable, opi.enablePayAtTable) && - Objects.equals(this.payAtTableStoreNumber, opi.payAtTableStoreNumber) && - Objects.equals(this.payAtTableURL, opi.payAtTableURL); + return Objects.equals(this.enablePayAtTable, opi.enablePayAtTable) + && Objects.equals(this.payAtTableStoreNumber, opi.payAtTableStoreNumber) + && Objects.equals(this.payAtTableURL, opi.payAtTableURL); } @Override @@ -169,15 +159,16 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Opi {\n"); sb.append(" enablePayAtTable: ").append(toIndentedString(enablePayAtTable)).append("\n"); - sb.append(" payAtTableStoreNumber: ").append(toIndentedString(payAtTableStoreNumber)).append("\n"); + sb.append(" payAtTableStoreNumber: ") + .append(toIndentedString(payAtTableStoreNumber)) + .append("\n"); sb.append(" payAtTableURL: ").append(toIndentedString(payAtTableURL)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +177,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Opi given an JSON string * * @param jsonString JSON string @@ -196,11 +187,12 @@ private String toIndentedString(Object o) { public static Opi fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Opi.class); } -/** - * Convert an instance of Opi to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Opi to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/OrderItem.java b/src/main/java/com/adyen/model/management/OrderItem.java index fbdabbcdd..cc61b7f58 100644 --- a/src/main/java/com/adyen/model/management/OrderItem.java +++ b/src/main/java/com/adyen/model/management/OrderItem.java @@ -2,38 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * OrderItem - */ +/** OrderItem */ @JsonPropertyOrder({ OrderItem.JSON_PROPERTY_ID, OrderItem.JSON_PROPERTY_INSTALLMENTS, OrderItem.JSON_PROPERTY_NAME, OrderItem.JSON_PROPERTY_QUANTITY }) - public class OrderItem { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -47,8 +37,7 @@ public class OrderItem { public static final String JSON_PROPERTY_QUANTITY = "quantity"; private Integer quantity; - public OrderItem() { - } + public OrderItem() {} /** * The unique identifier of the product. @@ -63,6 +52,7 @@ public OrderItem id(String id) { /** * The unique identifier of the product. + * * @return id The unique identifier of the product. */ @JsonProperty(JSON_PROPERTY_ID) @@ -95,6 +85,7 @@ public OrderItem installments(Long installments) { /** * The number of installments for the specified product `id`. + * * @return installments The number of installments for the specified product `id`. */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS) @@ -127,6 +118,7 @@ public OrderItem name(String name) { /** * The name of the product. + * * @return name The name of the product. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -149,7 +141,8 @@ public void setName(String name) { /** * The number of items with the specified product `id` included in the order. * - * @param quantity The number of items with the specified product `id` included in the order. + * @param quantity The number of items with the specified product `id` included in the + * order. * @return the current {@code OrderItem} instance, allowing for method chaining */ public OrderItem quantity(Integer quantity) { @@ -159,7 +152,9 @@ public OrderItem quantity(Integer quantity) { /** * The number of items with the specified product `id` included in the order. - * @return quantity The number of items with the specified product `id` included in the order. + * + * @return quantity The number of items with the specified product `id` included in the + * order. */ @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -170,7 +165,8 @@ public Integer getQuantity() { /** * The number of items with the specified product `id` included in the order. * - * @param quantity The number of items with the specified product `id` included in the order. + * @param quantity The number of items with the specified product `id` included in the + * order. */ @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,9 +174,7 @@ public void setQuantity(Integer quantity) { this.quantity = quantity; } - /** - * Return true if this OrderItem object is equal to o. - */ + /** Return true if this OrderItem object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -190,10 +184,10 @@ public boolean equals(Object o) { return false; } OrderItem orderItem = (OrderItem) o; - return Objects.equals(this.id, orderItem.id) && - Objects.equals(this.installments, orderItem.installments) && - Objects.equals(this.name, orderItem.name) && - Objects.equals(this.quantity, orderItem.quantity); + return Objects.equals(this.id, orderItem.id) + && Objects.equals(this.installments, orderItem.installments) + && Objects.equals(this.name, orderItem.name) + && Objects.equals(this.quantity, orderItem.quantity); } @Override @@ -214,8 +208,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,7 +217,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of OrderItem given an JSON string * * @param jsonString JSON string @@ -234,11 +227,12 @@ private String toIndentedString(Object o) { public static OrderItem fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, OrderItem.class); } -/** - * Convert an instance of OrderItem to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of OrderItem to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/PaginationLinks.java b/src/main/java/com/adyen/model/management/PaginationLinks.java index 509d47d1c..11e174229 100644 --- a/src/main/java/com/adyen/model/management/PaginationLinks.java +++ b/src/main/java/com/adyen/model/management/PaginationLinks.java @@ -2,32 +2,22 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.LinksElement; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * PaginationLinks - */ +/** PaginationLinks */ @JsonPropertyOrder({ PaginationLinks.JSON_PROPERTY_FIRST, PaginationLinks.JSON_PROPERTY_LAST, @@ -35,7 +25,6 @@ PaginationLinks.JSON_PROPERTY_PREV, PaginationLinks.JSON_PROPERTY_SELF }) - public class PaginationLinks { public static final String JSON_PROPERTY_FIRST = "first"; private LinksElement first; @@ -52,13 +41,12 @@ public class PaginationLinks { public static final String JSON_PROPERTY_SELF = "self"; private LinksElement self; - public PaginationLinks() { - } + public PaginationLinks() {} /** * first * - * @param first + * @param first * @return the current {@code PaginationLinks} instance, allowing for method chaining */ public PaginationLinks first(LinksElement first) { @@ -68,7 +56,8 @@ public PaginationLinks first(LinksElement first) { /** * Get first - * @return first + * + * @return first */ @JsonProperty(JSON_PROPERTY_FIRST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,7 +68,7 @@ public LinksElement getFirst() { /** * first * - * @param first + * @param first */ @JsonProperty(JSON_PROPERTY_FIRST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -90,7 +79,7 @@ public void setFirst(LinksElement first) { /** * last * - * @param last + * @param last * @return the current {@code PaginationLinks} instance, allowing for method chaining */ public PaginationLinks last(LinksElement last) { @@ -100,7 +89,8 @@ public PaginationLinks last(LinksElement last) { /** * Get last - * @return last + * + * @return last */ @JsonProperty(JSON_PROPERTY_LAST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,7 +101,7 @@ public LinksElement getLast() { /** * last * - * @param last + * @param last */ @JsonProperty(JSON_PROPERTY_LAST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -122,7 +112,7 @@ public void setLast(LinksElement last) { /** * next * - * @param next + * @param next * @return the current {@code PaginationLinks} instance, allowing for method chaining */ public PaginationLinks next(LinksElement next) { @@ -132,7 +122,8 @@ public PaginationLinks next(LinksElement next) { /** * Get next - * @return next + * + * @return next */ @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,7 +134,7 @@ public LinksElement getNext() { /** * next * - * @param next + * @param next */ @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -154,7 +145,7 @@ public void setNext(LinksElement next) { /** * prev * - * @param prev + * @param prev * @return the current {@code PaginationLinks} instance, allowing for method chaining */ public PaginationLinks prev(LinksElement prev) { @@ -164,7 +155,8 @@ public PaginationLinks prev(LinksElement prev) { /** * Get prev - * @return prev + * + * @return prev */ @JsonProperty(JSON_PROPERTY_PREV) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -175,7 +167,7 @@ public LinksElement getPrev() { /** * prev * - * @param prev + * @param prev */ @JsonProperty(JSON_PROPERTY_PREV) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,7 +178,7 @@ public void setPrev(LinksElement prev) { /** * self * - * @param self + * @param self * @return the current {@code PaginationLinks} instance, allowing for method chaining */ public PaginationLinks self(LinksElement self) { @@ -196,7 +188,8 @@ public PaginationLinks self(LinksElement self) { /** * Get self - * @return self + * + * @return self */ @JsonProperty(JSON_PROPERTY_SELF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -207,7 +200,7 @@ public LinksElement getSelf() { /** * self * - * @param self + * @param self */ @JsonProperty(JSON_PROPERTY_SELF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -215,9 +208,7 @@ public void setSelf(LinksElement self) { this.self = self; } - /** - * Return true if this PaginationLinks object is equal to o. - */ + /** Return true if this PaginationLinks object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -227,11 +218,11 @@ public boolean equals(Object o) { return false; } PaginationLinks paginationLinks = (PaginationLinks) o; - return Objects.equals(this.first, paginationLinks.first) && - Objects.equals(this.last, paginationLinks.last) && - Objects.equals(this.next, paginationLinks.next) && - Objects.equals(this.prev, paginationLinks.prev) && - Objects.equals(this.self, paginationLinks.self); + return Objects.equals(this.first, paginationLinks.first) + && Objects.equals(this.last, paginationLinks.last) + && Objects.equals(this.next, paginationLinks.next) + && Objects.equals(this.prev, paginationLinks.prev) + && Objects.equals(this.self, paginationLinks.self); } @Override @@ -253,8 +244,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -263,7 +253,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaginationLinks given an JSON string * * @param jsonString JSON string @@ -273,11 +263,12 @@ private String toIndentedString(Object o) { public static PaginationLinks fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaginationLinks.class); } -/** - * Convert an instance of PaginationLinks to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaginationLinks to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Passcodes.java b/src/main/java/com/adyen/model/management/Passcodes.java index de029a124..54f11c8ff 100644 --- a/src/main/java/com/adyen/model/management/Passcodes.java +++ b/src/main/java/com/adyen/model/management/Passcodes.java @@ -2,38 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Passcodes - */ +/** Passcodes */ @JsonPropertyOrder({ Passcodes.JSON_PROPERTY_ADMIN_MENU_PIN, Passcodes.JSON_PROPERTY_REFUND_PIN, Passcodes.JSON_PROPERTY_SCREEN_LOCK_PIN, Passcodes.JSON_PROPERTY_TX_MENU_PIN }) - public class Passcodes { public static final String JSON_PROPERTY_ADMIN_MENU_PIN = "adminMenuPin"; private String adminMenuPin; @@ -47,8 +37,7 @@ public class Passcodes { public static final String JSON_PROPERTY_TX_MENU_PIN = "txMenuPin"; private String txMenuPin; - public Passcodes() { - } + public Passcodes() {} /** * The passcode for the Admin menu and the Settings menu. @@ -63,6 +52,7 @@ public Passcodes adminMenuPin(String adminMenuPin) { /** * The passcode for the Admin menu and the Settings menu. + * * @return adminMenuPin The passcode for the Admin menu and the Settings menu. */ @JsonProperty(JSON_PROPERTY_ADMIN_MENU_PIN) @@ -95,6 +85,7 @@ public Passcodes refundPin(String refundPin) { /** * The passcode for referenced and unreferenced refunds on standalone terminals. + * * @return refundPin The passcode for referenced and unreferenced refunds on standalone terminals. */ @JsonProperty(JSON_PROPERTY_REFUND_PIN) @@ -127,6 +118,7 @@ public Passcodes screenLockPin(String screenLockPin) { /** * The passcode to unlock the terminal screen after a timeout. + * * @return screenLockPin The passcode to unlock the terminal screen after a timeout. */ @JsonProperty(JSON_PROPERTY_SCREEN_LOCK_PIN) @@ -159,6 +151,7 @@ public Passcodes txMenuPin(String txMenuPin) { /** * The passcode for the Transactions menu. + * * @return txMenuPin The passcode for the Transactions menu. */ @JsonProperty(JSON_PROPERTY_TX_MENU_PIN) @@ -178,9 +171,7 @@ public void setTxMenuPin(String txMenuPin) { this.txMenuPin = txMenuPin; } - /** - * Return true if this Passcodes object is equal to o. - */ + /** Return true if this Passcodes object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -190,10 +181,10 @@ public boolean equals(Object o) { return false; } Passcodes passcodes = (Passcodes) o; - return Objects.equals(this.adminMenuPin, passcodes.adminMenuPin) && - Objects.equals(this.refundPin, passcodes.refundPin) && - Objects.equals(this.screenLockPin, passcodes.screenLockPin) && - Objects.equals(this.txMenuPin, passcodes.txMenuPin); + return Objects.equals(this.adminMenuPin, passcodes.adminMenuPin) + && Objects.equals(this.refundPin, passcodes.refundPin) + && Objects.equals(this.screenLockPin, passcodes.screenLockPin) + && Objects.equals(this.txMenuPin, passcodes.txMenuPin); } @Override @@ -214,8 +205,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,7 +214,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Passcodes given an JSON string * * @param jsonString JSON string @@ -234,11 +224,12 @@ private String toIndentedString(Object o) { public static Passcodes fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Passcodes.class); } -/** - * Convert an instance of Passcodes to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Passcodes to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/PayAtTable.java b/src/main/java/com/adyen/model/management/PayAtTable.java index c48229b9c..a9384caa3 100644 --- a/src/main/java/com/adyen/model/management/PayAtTable.java +++ b/src/main/java/com/adyen/model/management/PayAtTable.java @@ -2,43 +2,34 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * PayAtTable - */ +/** PayAtTable */ @JsonPropertyOrder({ PayAtTable.JSON_PROPERTY_AUTHENTICATION_METHOD, PayAtTable.JSON_PROPERTY_ENABLE_PAY_AT_TABLE, PayAtTable.JSON_PROPERTY_PAYMENT_INSTRUMENT }) - public class PayAtTable { - /** - * Allowed authentication methods: Magswipe, Manual Entry. - */ + /** Allowed authentication methods: Magswipe, Manual Entry. */ public enum AuthenticationMethodEnum { - MAGSWIPE(String.valueOf("MAGSWIPE")), MKE(String.valueOf("MKE")); @@ -48,7 +39,7 @@ public enum AuthenticationMethodEnum { private String value; AuthenticationMethodEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static AuthenticationMethodEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AuthenticationMethodEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AuthenticationMethodEnum.values())); + LOG.warning( + "AuthenticationMethodEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AuthenticationMethodEnum.values())); return null; } } @@ -81,10 +76,10 @@ public static AuthenticationMethodEnum fromValue(String value) { private Boolean enablePayAtTable; /** - * Sets the allowed payment instrument for Pay at table transactions. Can be: **cash** or **card**. If not set, the terminal presents both options. + * Sets the allowed payment instrument for Pay at table transactions. Can be: **cash** or + * **card**. If not set, the terminal presents both options. */ public enum PaymentInstrumentEnum { - CASH(String.valueOf("Cash")), CARD(String.valueOf("Card")); @@ -94,7 +89,7 @@ public enum PaymentInstrumentEnum { private String value; PaymentInstrumentEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -115,7 +110,11 @@ public static PaymentInstrumentEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PaymentInstrumentEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PaymentInstrumentEnum.values())); + LOG.warning( + "PaymentInstrumentEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PaymentInstrumentEnum.values())); return null; } } @@ -123,8 +122,7 @@ public static PaymentInstrumentEnum fromValue(String value) { public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT = "paymentInstrument"; private PaymentInstrumentEnum paymentInstrument; - public PayAtTable() { - } + public PayAtTable() {} /** * Allowed authentication methods: Magswipe, Manual Entry. @@ -139,6 +137,7 @@ public PayAtTable authenticationMethod(AuthenticationMethodEnum authenticationMe /** * Allowed authentication methods: Magswipe, Manual Entry. + * * @return authenticationMethod Allowed authentication methods: Magswipe, Manual Entry. */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_METHOD) @@ -171,6 +170,7 @@ public PayAtTable enablePayAtTable(Boolean enablePayAtTable) { /** * Enable Pay at table. + * * @return enablePayAtTable Enable Pay at table. */ @JsonProperty(JSON_PROPERTY_ENABLE_PAY_AT_TABLE) @@ -191,9 +191,11 @@ public void setEnablePayAtTable(Boolean enablePayAtTable) { } /** - * Sets the allowed payment instrument for Pay at table transactions. Can be: **cash** or **card**. If not set, the terminal presents both options. + * Sets the allowed payment instrument for Pay at table transactions. Can be: **cash** or + * **card**. If not set, the terminal presents both options. * - * @param paymentInstrument Sets the allowed payment instrument for Pay at table transactions. Can be: **cash** or **card**. If not set, the terminal presents both options. + * @param paymentInstrument Sets the allowed payment instrument for Pay at table transactions. Can + * be: **cash** or **card**. If not set, the terminal presents both options. * @return the current {@code PayAtTable} instance, allowing for method chaining */ public PayAtTable paymentInstrument(PaymentInstrumentEnum paymentInstrument) { @@ -202,8 +204,11 @@ public PayAtTable paymentInstrument(PaymentInstrumentEnum paymentInstrument) { } /** - * Sets the allowed payment instrument for Pay at table transactions. Can be: **cash** or **card**. If not set, the terminal presents both options. - * @return paymentInstrument Sets the allowed payment instrument for Pay at table transactions. Can be: **cash** or **card**. If not set, the terminal presents both options. + * Sets the allowed payment instrument for Pay at table transactions. Can be: **cash** or + * **card**. If not set, the terminal presents both options. + * + * @return paymentInstrument Sets the allowed payment instrument for Pay at table transactions. + * Can be: **cash** or **card**. If not set, the terminal presents both options. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -212,9 +217,11 @@ public PaymentInstrumentEnum getPaymentInstrument() { } /** - * Sets the allowed payment instrument for Pay at table transactions. Can be: **cash** or **card**. If not set, the terminal presents both options. + * Sets the allowed payment instrument for Pay at table transactions. Can be: **cash** or + * **card**. If not set, the terminal presents both options. * - * @param paymentInstrument Sets the allowed payment instrument for Pay at table transactions. Can be: **cash** or **card**. If not set, the terminal presents both options. + * @param paymentInstrument Sets the allowed payment instrument for Pay at table transactions. Can + * be: **cash** or **card**. If not set, the terminal presents both options. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -222,9 +229,7 @@ public void setPaymentInstrument(PaymentInstrumentEnum paymentInstrument) { this.paymentInstrument = paymentInstrument; } - /** - * Return true if this PayAtTable object is equal to o. - */ + /** Return true if this PayAtTable object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -234,9 +239,9 @@ public boolean equals(Object o) { return false; } PayAtTable payAtTable = (PayAtTable) o; - return Objects.equals(this.authenticationMethod, payAtTable.authenticationMethod) && - Objects.equals(this.enablePayAtTable, payAtTable.enablePayAtTable) && - Objects.equals(this.paymentInstrument, payAtTable.paymentInstrument); + return Objects.equals(this.authenticationMethod, payAtTable.authenticationMethod) + && Objects.equals(this.enablePayAtTable, payAtTable.enablePayAtTable) + && Objects.equals(this.paymentInstrument, payAtTable.paymentInstrument); } @Override @@ -248,7 +253,9 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PayAtTable {\n"); - sb.append(" authenticationMethod: ").append(toIndentedString(authenticationMethod)).append("\n"); + sb.append(" authenticationMethod: ") + .append(toIndentedString(authenticationMethod)) + .append("\n"); sb.append(" enablePayAtTable: ").append(toIndentedString(enablePayAtTable)).append("\n"); sb.append(" paymentInstrument: ").append(toIndentedString(paymentInstrument)).append("\n"); sb.append("}"); @@ -256,8 +263,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -266,7 +272,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PayAtTable given an JSON string * * @param jsonString JSON string @@ -276,11 +282,12 @@ private String toIndentedString(Object o) { public static PayAtTable fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayAtTable.class); } -/** - * Convert an instance of PayAtTable to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PayAtTable to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/PayByBankPlaidInfo.java b/src/main/java/com/adyen/model/management/PayByBankPlaidInfo.java index 1146484ec..c5e4cab2f 100644 --- a/src/main/java/com/adyen/model/management/PayByBankPlaidInfo.java +++ b/src/main/java/com/adyen/model/management/PayByBankPlaidInfo.java @@ -2,37 +2,26 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.TransactionDescriptionInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * PayByBankPlaidInfo - */ +/** PayByBankPlaidInfo */ @JsonPropertyOrder({ PayByBankPlaidInfo.JSON_PROPERTY_LOGO, PayByBankPlaidInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION }) - public class PayByBankPlaidInfo { public static final String JSON_PROPERTY_LOGO = "logo"; private String logo; @@ -40,8 +29,7 @@ public class PayByBankPlaidInfo { public static final String JSON_PROPERTY_TRANSACTION_DESCRIPTION = "transactionDescription"; private TransactionDescriptionInfo transactionDescription; - public PayByBankPlaidInfo() { - } + public PayByBankPlaidInfo() {} /** * Merchant logo (max. size 150kB). Format: Base64-encoded string. @@ -56,6 +44,7 @@ public PayByBankPlaidInfo logo(String logo) { /** * Merchant logo (max. size 150kB). Format: Base64-encoded string. + * * @return logo Merchant logo (max. size 150kB). Format: Base64-encoded string. */ @JsonProperty(JSON_PROPERTY_LOGO) @@ -78,17 +67,19 @@ public void setLogo(String logo) { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription * @return the current {@code PayByBankPlaidInfo} instance, allowing for method chaining */ - public PayByBankPlaidInfo transactionDescription(TransactionDescriptionInfo transactionDescription) { + public PayByBankPlaidInfo transactionDescription( + TransactionDescriptionInfo transactionDescription) { this.transactionDescription = transactionDescription; return this; } /** * Get transactionDescription - * @return transactionDescription + * + * @return transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,7 +90,7 @@ public TransactionDescriptionInfo getTransactionDescription() { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,9 +98,7 @@ public void setTransactionDescription(TransactionDescriptionInfo transactionDesc this.transactionDescription = transactionDescription; } - /** - * Return true if this PayByBankPlaidInfo object is equal to o. - */ + /** Return true if this PayByBankPlaidInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -119,8 +108,8 @@ public boolean equals(Object o) { return false; } PayByBankPlaidInfo payByBankPlaidInfo = (PayByBankPlaidInfo) o; - return Objects.equals(this.logo, payByBankPlaidInfo.logo) && - Objects.equals(this.transactionDescription, payByBankPlaidInfo.transactionDescription); + return Objects.equals(this.logo, payByBankPlaidInfo.logo) + && Objects.equals(this.transactionDescription, payByBankPlaidInfo.transactionDescription); } @Override @@ -133,14 +122,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PayByBankPlaidInfo {\n"); sb.append(" logo: ").append(toIndentedString(logo)).append("\n"); - sb.append(" transactionDescription: ").append(toIndentedString(transactionDescription)).append("\n"); + sb.append(" transactionDescription: ") + .append(toIndentedString(transactionDescription)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -149,21 +139,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PayByBankPlaidInfo given an JSON string * * @param jsonString JSON string * @return An instance of PayByBankPlaidInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to PayByBankPlaidInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PayByBankPlaidInfo */ public static PayByBankPlaidInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayByBankPlaidInfo.class); } -/** - * Convert an instance of PayByBankPlaidInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PayByBankPlaidInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/PayMeInfo.java b/src/main/java/com/adyen/model/management/PayMeInfo.java index e98da58ac..ec69758ab 100644 --- a/src/main/java/com/adyen/model/management/PayMeInfo.java +++ b/src/main/java/com/adyen/model/management/PayMeInfo.java @@ -2,37 +2,27 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * PayMeInfo - */ +/** PayMeInfo */ @JsonPropertyOrder({ PayMeInfo.JSON_PROPERTY_DISPLAY_NAME, PayMeInfo.JSON_PROPERTY_LOGO, PayMeInfo.JSON_PROPERTY_SUPPORT_EMAIL }) - public class PayMeInfo { public static final String JSON_PROPERTY_DISPLAY_NAME = "displayName"; private String displayName; @@ -43,8 +33,7 @@ public class PayMeInfo { public static final String JSON_PROPERTY_SUPPORT_EMAIL = "supportEmail"; private String supportEmail; - public PayMeInfo() { - } + public PayMeInfo() {} /** * Merchant display name @@ -59,6 +48,7 @@ public PayMeInfo displayName(String displayName) { /** * Merchant display name + * * @return displayName Merchant display name */ @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) @@ -91,6 +81,7 @@ public PayMeInfo logo(String logo) { /** * Merchant logo. Format: Base64-encoded string. + * * @return logo Merchant logo. Format: Base64-encoded string. */ @JsonProperty(JSON_PROPERTY_LOGO) @@ -123,6 +114,7 @@ public PayMeInfo supportEmail(String supportEmail) { /** * The email address of merchant support. + * * @return supportEmail The email address of merchant support. */ @JsonProperty(JSON_PROPERTY_SUPPORT_EMAIL) @@ -142,9 +134,7 @@ public void setSupportEmail(String supportEmail) { this.supportEmail = supportEmail; } - /** - * Return true if this PayMeInfo object is equal to o. - */ + /** Return true if this PayMeInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +144,9 @@ public boolean equals(Object o) { return false; } PayMeInfo payMeInfo = (PayMeInfo) o; - return Objects.equals(this.displayName, payMeInfo.displayName) && - Objects.equals(this.logo, payMeInfo.logo) && - Objects.equals(this.supportEmail, payMeInfo.supportEmail); + return Objects.equals(this.displayName, payMeInfo.displayName) + && Objects.equals(this.logo, payMeInfo.logo) + && Objects.equals(this.supportEmail, payMeInfo.supportEmail); } @Override @@ -176,8 +166,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +175,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PayMeInfo given an JSON string * * @param jsonString JSON string @@ -196,11 +185,12 @@ private String toIndentedString(Object o) { public static PayMeInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayMeInfo.class); } -/** - * Convert an instance of PayMeInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PayMeInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/PayPalInfo.java b/src/main/java/com/adyen/model/management/PayPalInfo.java index 9825b9c56..40647827a 100644 --- a/src/main/java/com/adyen/model/management/PayPalInfo.java +++ b/src/main/java/com/adyen/model/management/PayPalInfo.java @@ -2,37 +2,27 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * PayPalInfo - */ +/** PayPalInfo */ @JsonPropertyOrder({ PayPalInfo.JSON_PROPERTY_DIRECT_CAPTURE, PayPalInfo.JSON_PROPERTY_PAYER_ID, PayPalInfo.JSON_PROPERTY_SUBJECT }) - public class PayPalInfo { public static final String JSON_PROPERTY_DIRECT_CAPTURE = "directCapture"; private Boolean directCapture; @@ -43,13 +33,17 @@ public class PayPalInfo { public static final String JSON_PROPERTY_SUBJECT = "subject"; private String subject; - public PayPalInfo() { - } + public PayPalInfo() {} /** - * Indicates if direct (immediate) capture for PayPal is enabled. If set to **true**, this setting overrides the [capture](https://docs.adyen.com/online-payments/capture) settings of your merchant account. Default value: **true**. + * Indicates if direct (immediate) capture for PayPal is enabled. If set to **true**, this setting + * overrides the [capture](https://docs.adyen.com/online-payments/capture) settings of your + * merchant account. Default value: **true**. * - * @param directCapture Indicates if direct (immediate) capture for PayPal is enabled. If set to **true**, this setting overrides the [capture](https://docs.adyen.com/online-payments/capture) settings of your merchant account. Default value: **true**. + * @param directCapture Indicates if direct (immediate) capture for PayPal is enabled. If set to + * **true**, this setting overrides the + * [capture](https://docs.adyen.com/online-payments/capture) settings of your merchant + * account. Default value: **true**. * @return the current {@code PayPalInfo} instance, allowing for method chaining */ public PayPalInfo directCapture(Boolean directCapture) { @@ -58,8 +52,14 @@ public PayPalInfo directCapture(Boolean directCapture) { } /** - * Indicates if direct (immediate) capture for PayPal is enabled. If set to **true**, this setting overrides the [capture](https://docs.adyen.com/online-payments/capture) settings of your merchant account. Default value: **true**. - * @return directCapture Indicates if direct (immediate) capture for PayPal is enabled. If set to **true**, this setting overrides the [capture](https://docs.adyen.com/online-payments/capture) settings of your merchant account. Default value: **true**. + * Indicates if direct (immediate) capture for PayPal is enabled. If set to **true**, this setting + * overrides the [capture](https://docs.adyen.com/online-payments/capture) settings of your + * merchant account. Default value: **true**. + * + * @return directCapture Indicates if direct (immediate) capture for PayPal is enabled. If set to + * **true**, this setting overrides the + * [capture](https://docs.adyen.com/online-payments/capture) settings of your merchant + * account. Default value: **true**. */ @JsonProperty(JSON_PROPERTY_DIRECT_CAPTURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,9 +68,14 @@ public Boolean getDirectCapture() { } /** - * Indicates if direct (immediate) capture for PayPal is enabled. If set to **true**, this setting overrides the [capture](https://docs.adyen.com/online-payments/capture) settings of your merchant account. Default value: **true**. + * Indicates if direct (immediate) capture for PayPal is enabled. If set to **true**, this setting + * overrides the [capture](https://docs.adyen.com/online-payments/capture) settings of your + * merchant account. Default value: **true**. * - * @param directCapture Indicates if direct (immediate) capture for PayPal is enabled. If set to **true**, this setting overrides the [capture](https://docs.adyen.com/online-payments/capture) settings of your merchant account. Default value: **true**. + * @param directCapture Indicates if direct (immediate) capture for PayPal is enabled. If set to + * **true**, this setting overrides the + * [capture](https://docs.adyen.com/online-payments/capture) settings of your merchant + * account. Default value: **true**. */ @JsonProperty(JSON_PROPERTY_DIRECT_CAPTURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -81,7 +86,8 @@ public void setDirectCapture(Boolean directCapture) { /** * PayPal Merchant ID. Character length and limitations: 13 single-byte alphanumeric characters. * - * @param payerId PayPal Merchant ID. Character length and limitations: 13 single-byte alphanumeric characters. + * @param payerId PayPal Merchant ID. Character length and limitations: 13 single-byte + * alphanumeric characters. * @return the current {@code PayPalInfo} instance, allowing for method chaining */ public PayPalInfo payerId(String payerId) { @@ -91,7 +97,9 @@ public PayPalInfo payerId(String payerId) { /** * PayPal Merchant ID. Character length and limitations: 13 single-byte alphanumeric characters. - * @return payerId PayPal Merchant ID. Character length and limitations: 13 single-byte alphanumeric characters. + * + * @return payerId PayPal Merchant ID. Character length and limitations: 13 single-byte + * alphanumeric characters. */ @JsonProperty(JSON_PROPERTY_PAYER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,7 +110,8 @@ public String getPayerId() { /** * PayPal Merchant ID. Character length and limitations: 13 single-byte alphanumeric characters. * - * @param payerId PayPal Merchant ID. Character length and limitations: 13 single-byte alphanumeric characters. + * @param payerId PayPal Merchant ID. Character length and limitations: 13 single-byte + * alphanumeric characters. */ @JsonProperty(JSON_PROPERTY_PAYER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,6 +132,7 @@ public PayPalInfo subject(String subject) { /** * Your business email address. + * * @return subject Your business email address. */ @JsonProperty(JSON_PROPERTY_SUBJECT) @@ -142,9 +152,7 @@ public void setSubject(String subject) { this.subject = subject; } - /** - * Return true if this PayPalInfo object is equal to o. - */ + /** Return true if this PayPalInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +162,9 @@ public boolean equals(Object o) { return false; } PayPalInfo payPalInfo = (PayPalInfo) o; - return Objects.equals(this.directCapture, payPalInfo.directCapture) && - Objects.equals(this.payerId, payPalInfo.payerId) && - Objects.equals(this.subject, payPalInfo.subject); + return Objects.equals(this.directCapture, payPalInfo.directCapture) + && Objects.equals(this.payerId, payPalInfo.payerId) + && Objects.equals(this.subject, payPalInfo.subject); } @Override @@ -176,8 +184,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +193,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PayPalInfo given an JSON string * * @param jsonString JSON string @@ -196,11 +203,12 @@ private String toIndentedString(Object o) { public static PayPalInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayPalInfo.class); } -/** - * Convert an instance of PayPalInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PayPalInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/PayToInfo.java b/src/main/java/com/adyen/model/management/PayToInfo.java index 2745d26ff..40d04c272 100644 --- a/src/main/java/com/adyen/model/management/PayToInfo.java +++ b/src/main/java/com/adyen/model/management/PayToInfo.java @@ -2,36 +2,23 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * PayToInfo - */ -@JsonPropertyOrder({ - PayToInfo.JSON_PROPERTY_MERCHANT_NAME, - PayToInfo.JSON_PROPERTY_PAY_TO_PURPOSE -}) - +/** PayToInfo */ +@JsonPropertyOrder({PayToInfo.JSON_PROPERTY_MERCHANT_NAME, PayToInfo.JSON_PROPERTY_PAY_TO_PURPOSE}) public class PayToInfo { public static final String JSON_PROPERTY_MERCHANT_NAME = "merchantName"; private String merchantName; @@ -39,8 +26,7 @@ public class PayToInfo { public static final String JSON_PROPERTY_PAY_TO_PURPOSE = "payToPurpose"; private String payToPurpose; - public PayToInfo() { - } + public PayToInfo() {} /** * Merchant name displayed to the shopper in the Agreements @@ -55,6 +41,7 @@ public PayToInfo merchantName(String merchantName) { /** * Merchant name displayed to the shopper in the Agreements + * * @return merchantName Merchant name displayed to the shopper in the Agreements */ @JsonProperty(JSON_PROPERTY_MERCHANT_NAME) @@ -75,9 +62,13 @@ public void setMerchantName(String merchantName) { } /** - * Represents the purpose of the Agreements created, it relates to the business type **Allowed values**: mortgage, utility, loan, gambling, retail, salary, personal, government, pension, tax, other + * Represents the purpose of the Agreements created, it relates to the business type **Allowed + * values**: mortgage, utility, loan, gambling, retail, salary, personal, government, pension, + * tax, other * - * @param payToPurpose Represents the purpose of the Agreements created, it relates to the business type **Allowed values**: mortgage, utility, loan, gambling, retail, salary, personal, government, pension, tax, other + * @param payToPurpose Represents the purpose of the Agreements created, it relates to the + * business type **Allowed values**: mortgage, utility, loan, gambling, retail, salary, + * personal, government, pension, tax, other * @return the current {@code PayToInfo} instance, allowing for method chaining */ public PayToInfo payToPurpose(String payToPurpose) { @@ -86,8 +77,13 @@ public PayToInfo payToPurpose(String payToPurpose) { } /** - * Represents the purpose of the Agreements created, it relates to the business type **Allowed values**: mortgage, utility, loan, gambling, retail, salary, personal, government, pension, tax, other - * @return payToPurpose Represents the purpose of the Agreements created, it relates to the business type **Allowed values**: mortgage, utility, loan, gambling, retail, salary, personal, government, pension, tax, other + * Represents the purpose of the Agreements created, it relates to the business type **Allowed + * values**: mortgage, utility, loan, gambling, retail, salary, personal, government, pension, + * tax, other + * + * @return payToPurpose Represents the purpose of the Agreements created, it relates to the + * business type **Allowed values**: mortgage, utility, loan, gambling, retail, salary, + * personal, government, pension, tax, other */ @JsonProperty(JSON_PROPERTY_PAY_TO_PURPOSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +92,13 @@ public String getPayToPurpose() { } /** - * Represents the purpose of the Agreements created, it relates to the business type **Allowed values**: mortgage, utility, loan, gambling, retail, salary, personal, government, pension, tax, other + * Represents the purpose of the Agreements created, it relates to the business type **Allowed + * values**: mortgage, utility, loan, gambling, retail, salary, personal, government, pension, + * tax, other * - * @param payToPurpose Represents the purpose of the Agreements created, it relates to the business type **Allowed values**: mortgage, utility, loan, gambling, retail, salary, personal, government, pension, tax, other + * @param payToPurpose Represents the purpose of the Agreements created, it relates to the + * business type **Allowed values**: mortgage, utility, loan, gambling, retail, salary, + * personal, government, pension, tax, other */ @JsonProperty(JSON_PROPERTY_PAY_TO_PURPOSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +106,7 @@ public void setPayToPurpose(String payToPurpose) { this.payToPurpose = payToPurpose; } - /** - * Return true if this PayToInfo object is equal to o. - */ + /** Return true if this PayToInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +116,8 @@ public boolean equals(Object o) { return false; } PayToInfo payToInfo = (PayToInfo) o; - return Objects.equals(this.merchantName, payToInfo.merchantName) && - Objects.equals(this.payToPurpose, payToInfo.payToPurpose); + return Objects.equals(this.merchantName, payToInfo.merchantName) + && Objects.equals(this.payToPurpose, payToInfo.payToPurpose); } @Override @@ -138,8 +136,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +145,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PayToInfo given an JSON string * * @param jsonString JSON string @@ -158,11 +155,12 @@ private String toIndentedString(Object o) { public static PayToInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayToInfo.class); } -/** - * Convert an instance of PayToInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PayToInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Payment.java b/src/main/java/com/adyen/model/management/Payment.java index 787064b27..98af0953d 100644 --- a/src/main/java/com/adyen/model/management/Payment.java +++ b/src/main/java/com/adyen/model/management/Payment.java @@ -2,52 +2,45 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * Payment - */ +/** Payment */ @JsonPropertyOrder({ Payment.JSON_PROPERTY_CONTACTLESS_CURRENCY, Payment.JSON_PROPERTY_HIDE_MINOR_UNITS_IN_CURRENCIES }) - public class Payment { public static final String JSON_PROPERTY_CONTACTLESS_CURRENCY = "contactlessCurrency"; private String contactlessCurrency; - public static final String JSON_PROPERTY_HIDE_MINOR_UNITS_IN_CURRENCIES = "hideMinorUnitsInCurrencies"; + public static final String JSON_PROPERTY_HIDE_MINOR_UNITS_IN_CURRENCIES = + "hideMinorUnitsInCurrencies"; private List hideMinorUnitsInCurrencies; - public Payment() { - } + public Payment() {} /** - * The default currency for contactless payments on the payment terminal, as the three-letter [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. + * The default currency for contactless payments on the payment terminal, as the three-letter [ISO + * 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. * - * @param contactlessCurrency The default currency for contactless payments on the payment terminal, as the three-letter [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. + * @param contactlessCurrency The default currency for contactless payments on the payment + * terminal, as the three-letter [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency + * code. * @return the current {@code Payment} instance, allowing for method chaining */ public Payment contactlessCurrency(String contactlessCurrency) { @@ -56,8 +49,12 @@ public Payment contactlessCurrency(String contactlessCurrency) { } /** - * The default currency for contactless payments on the payment terminal, as the three-letter [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. - * @return contactlessCurrency The default currency for contactless payments on the payment terminal, as the three-letter [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. + * The default currency for contactless payments on the payment terminal, as the three-letter [ISO + * 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. + * + * @return contactlessCurrency The default currency for contactless payments on the payment + * terminal, as the three-letter [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency + * code. */ @JsonProperty(JSON_PROPERTY_CONTACTLESS_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -66,9 +63,12 @@ public String getContactlessCurrency() { } /** - * The default currency for contactless payments on the payment terminal, as the three-letter [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. + * The default currency for contactless payments on the payment terminal, as the three-letter [ISO + * 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. * - * @param contactlessCurrency The default currency for contactless payments on the payment terminal, as the three-letter [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. + * @param contactlessCurrency The default currency for contactless payments on the payment + * terminal, as the three-letter [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency + * code. */ @JsonProperty(JSON_PROPERTY_CONTACTLESS_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -77,9 +77,11 @@ public void setContactlessCurrency(String contactlessCurrency) { } /** - * Hides the minor units for the listed [ISO currency codes](https://en.wikipedia.org/wiki/ISO_4217). + * Hides the minor units for the listed [ISO currency + * codes](https://en.wikipedia.org/wiki/ISO_4217). * - * @param hideMinorUnitsInCurrencies Hides the minor units for the listed [ISO currency codes](https://en.wikipedia.org/wiki/ISO_4217). + * @param hideMinorUnitsInCurrencies Hides the minor units for the listed [ISO currency + * codes](https://en.wikipedia.org/wiki/ISO_4217). * @return the current {@code Payment} instance, allowing for method chaining */ public Payment hideMinorUnitsInCurrencies(List hideMinorUnitsInCurrencies) { @@ -96,8 +98,11 @@ public Payment addHideMinorUnitsInCurrenciesItem(String hideMinorUnitsInCurrenci } /** - * Hides the minor units for the listed [ISO currency codes](https://en.wikipedia.org/wiki/ISO_4217). - * @return hideMinorUnitsInCurrencies Hides the minor units for the listed [ISO currency codes](https://en.wikipedia.org/wiki/ISO_4217). + * Hides the minor units for the listed [ISO currency + * codes](https://en.wikipedia.org/wiki/ISO_4217). + * + * @return hideMinorUnitsInCurrencies Hides the minor units for the listed [ISO currency + * codes](https://en.wikipedia.org/wiki/ISO_4217). */ @JsonProperty(JSON_PROPERTY_HIDE_MINOR_UNITS_IN_CURRENCIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +111,11 @@ public List getHideMinorUnitsInCurrencies() { } /** - * Hides the minor units for the listed [ISO currency codes](https://en.wikipedia.org/wiki/ISO_4217). + * Hides the minor units for the listed [ISO currency + * codes](https://en.wikipedia.org/wiki/ISO_4217). * - * @param hideMinorUnitsInCurrencies Hides the minor units for the listed [ISO currency codes](https://en.wikipedia.org/wiki/ISO_4217). + * @param hideMinorUnitsInCurrencies Hides the minor units for the listed [ISO currency + * codes](https://en.wikipedia.org/wiki/ISO_4217). */ @JsonProperty(JSON_PROPERTY_HIDE_MINOR_UNITS_IN_CURRENCIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,9 +123,7 @@ public void setHideMinorUnitsInCurrencies(List hideMinorUnitsInCurrencie this.hideMinorUnitsInCurrencies = hideMinorUnitsInCurrencies; } - /** - * Return true if this Payment object is equal to o. - */ + /** Return true if this Payment object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -128,8 +133,8 @@ public boolean equals(Object o) { return false; } Payment payment = (Payment) o; - return Objects.equals(this.contactlessCurrency, payment.contactlessCurrency) && - Objects.equals(this.hideMinorUnitsInCurrencies, payment.hideMinorUnitsInCurrencies); + return Objects.equals(this.contactlessCurrency, payment.contactlessCurrency) + && Objects.equals(this.hideMinorUnitsInCurrencies, payment.hideMinorUnitsInCurrencies); } @Override @@ -141,15 +146,18 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Payment {\n"); - sb.append(" contactlessCurrency: ").append(toIndentedString(contactlessCurrency)).append("\n"); - sb.append(" hideMinorUnitsInCurrencies: ").append(toIndentedString(hideMinorUnitsInCurrencies)).append("\n"); + sb.append(" contactlessCurrency: ") + .append(toIndentedString(contactlessCurrency)) + .append("\n"); + sb.append(" hideMinorUnitsInCurrencies: ") + .append(toIndentedString(hideMinorUnitsInCurrencies)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -158,7 +166,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Payment given an JSON string * * @param jsonString JSON string @@ -168,11 +176,12 @@ private String toIndentedString(Object o) { public static Payment fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Payment.class); } -/** - * Convert an instance of Payment to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Payment to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/PaymentMethod.java b/src/main/java/com/adyen/model/management/PaymentMethod.java index 425b49cf4..81968c2a0 100644 --- a/src/main/java/com/adyen/model/management/PaymentMethod.java +++ b/src/main/java/com/adyen/model/management/PaymentMethod.java @@ -2,64 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.AccelInfo; -import com.adyen.model.management.AffirmInfo; -import com.adyen.model.management.AfterpayTouchInfo; -import com.adyen.model.management.AlipayPlusInfo; -import com.adyen.model.management.AmexInfo; -import com.adyen.model.management.ApplePayInfo; -import com.adyen.model.management.BcmcInfo; -import com.adyen.model.management.CartesBancairesInfo; -import com.adyen.model.management.ClearpayInfo; -import com.adyen.model.management.DinersInfo; -import com.adyen.model.management.GenericPmWithTdiInfo; -import com.adyen.model.management.GooglePayInfo; -import com.adyen.model.management.JCBInfo; -import com.adyen.model.management.KlarnaInfo; -import com.adyen.model.management.MealVoucherFRInfo; -import com.adyen.model.management.NyceInfo; -import com.adyen.model.management.PayByBankPlaidInfo; -import com.adyen.model.management.PayMeInfo; -import com.adyen.model.management.PayPalInfo; -import com.adyen.model.management.PayToInfo; -import com.adyen.model.management.PulseInfo; -import com.adyen.model.management.SepaDirectDebitInfo; -import com.adyen.model.management.SodexoInfo; -import com.adyen.model.management.SofortInfo; -import com.adyen.model.management.StarInfo; -import com.adyen.model.management.SwishInfo; -import com.adyen.model.management.TicketInfo; -import com.adyen.model.management.TwintInfo; -import com.adyen.model.management.VippsInfo; -import com.adyen.model.management.WeChatPayInfo; -import com.adyen.model.management.WeChatPayPosInfo; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * PaymentMethod - */ +/** PaymentMethod */ @JsonPropertyOrder({ PaymentMethod.JSON_PROPERTY_ACCEL, PaymentMethod.JSON_PROPERTY_AFFIRM, @@ -115,7 +79,6 @@ PaymentMethod.JSON_PROPERTY_WECHATPAY, PaymentMethod.JSON_PROPERTY_WECHATPAY_POS }) - public class PaymentMethod { public static final String JSON_PROPERTY_ACCEL = "accel"; private AccelInfo accel; @@ -265,7 +228,6 @@ public class PaymentMethod { * Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** */ public enum VerificationStatusEnum { - VALID(String.valueOf("valid")), PENDING(String.valueOf("pending")), @@ -279,7 +241,7 @@ public enum VerificationStatusEnum { private String value; VerificationStatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -300,7 +262,11 @@ public static VerificationStatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("VerificationStatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(VerificationStatusEnum.values())); + LOG.warning( + "VerificationStatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(VerificationStatusEnum.values())); return null; } } @@ -320,13 +286,12 @@ public static VerificationStatusEnum fromValue(String value) { public static final String JSON_PROPERTY_WECHATPAY_POS = "wechatpay_pos"; private WeChatPayPosInfo wechatpayPos; - public PaymentMethod() { - } + public PaymentMethod() {} /** * accel * - * @param accel + * @param accel * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod accel(AccelInfo accel) { @@ -336,7 +301,8 @@ public PaymentMethod accel(AccelInfo accel) { /** * Get accel - * @return accel + * + * @return accel */ @JsonProperty(JSON_PROPERTY_ACCEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -347,7 +313,7 @@ public AccelInfo getAccel() { /** * accel * - * @param accel + * @param accel */ @JsonProperty(JSON_PROPERTY_ACCEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -358,7 +324,7 @@ public void setAccel(AccelInfo accel) { /** * affirm * - * @param affirm + * @param affirm * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod affirm(AffirmInfo affirm) { @@ -368,7 +334,8 @@ public PaymentMethod affirm(AffirmInfo affirm) { /** * Get affirm - * @return affirm + * + * @return affirm */ @JsonProperty(JSON_PROPERTY_AFFIRM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -379,7 +346,7 @@ public AffirmInfo getAffirm() { /** * affirm * - * @param affirm + * @param affirm */ @JsonProperty(JSON_PROPERTY_AFFIRM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -390,7 +357,7 @@ public void setAffirm(AffirmInfo affirm) { /** * afterpayTouch * - * @param afterpayTouch + * @param afterpayTouch * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod afterpayTouch(AfterpayTouchInfo afterpayTouch) { @@ -400,7 +367,8 @@ public PaymentMethod afterpayTouch(AfterpayTouchInfo afterpayTouch) { /** * Get afterpayTouch - * @return afterpayTouch + * + * @return afterpayTouch */ @JsonProperty(JSON_PROPERTY_AFTERPAY_TOUCH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -411,7 +379,7 @@ public AfterpayTouchInfo getAfterpayTouch() { /** * afterpayTouch * - * @param afterpayTouch + * @param afterpayTouch */ @JsonProperty(JSON_PROPERTY_AFTERPAY_TOUCH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -422,7 +390,7 @@ public void setAfterpayTouch(AfterpayTouchInfo afterpayTouch) { /** * alipayPlus * - * @param alipayPlus + * @param alipayPlus * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod alipayPlus(AlipayPlusInfo alipayPlus) { @@ -432,7 +400,8 @@ public PaymentMethod alipayPlus(AlipayPlusInfo alipayPlus) { /** * Get alipayPlus - * @return alipayPlus + * + * @return alipayPlus */ @JsonProperty(JSON_PROPERTY_ALIPAY_PLUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -443,7 +412,7 @@ public AlipayPlusInfo getAlipayPlus() { /** * alipayPlus * - * @param alipayPlus + * @param alipayPlus */ @JsonProperty(JSON_PROPERTY_ALIPAY_PLUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -452,9 +421,11 @@ public void setAlipayPlus(AlipayPlusInfo alipayPlus) { } /** - * Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account. + * Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after + * screening your merchant account. * - * @param allowed Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account. + * @param allowed Indicates whether receiving payments is allowed. This value is set to **true** + * by Adyen after screening your merchant account. * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod allowed(Boolean allowed) { @@ -463,8 +434,11 @@ public PaymentMethod allowed(Boolean allowed) { } /** - * Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account. - * @return allowed Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account. + * Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after + * screening your merchant account. + * + * @return allowed Indicates whether receiving payments is allowed. This value is set to **true** + * by Adyen after screening your merchant account. */ @JsonProperty(JSON_PROPERTY_ALLOWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -473,9 +447,11 @@ public Boolean getAllowed() { } /** - * Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account. + * Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after + * screening your merchant account. * - * @param allowed Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account. + * @param allowed Indicates whether receiving payments is allowed. This value is set to **true** + * by Adyen after screening your merchant account. */ @JsonProperty(JSON_PROPERTY_ALLOWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -486,7 +462,7 @@ public void setAllowed(Boolean allowed) { /** * amex * - * @param amex + * @param amex * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod amex(AmexInfo amex) { @@ -496,7 +472,8 @@ public PaymentMethod amex(AmexInfo amex) { /** * Get amex - * @return amex + * + * @return amex */ @JsonProperty(JSON_PROPERTY_AMEX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -507,7 +484,7 @@ public AmexInfo getAmex() { /** * amex * - * @param amex + * @param amex */ @JsonProperty(JSON_PROPERTY_AMEX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -518,7 +495,7 @@ public void setAmex(AmexInfo amex) { /** * applePay * - * @param applePay + * @param applePay * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod applePay(ApplePayInfo applePay) { @@ -528,7 +505,8 @@ public PaymentMethod applePay(ApplePayInfo applePay) { /** * Get applePay - * @return applePay + * + * @return applePay */ @JsonProperty(JSON_PROPERTY_APPLE_PAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -539,7 +517,7 @@ public ApplePayInfo getApplePay() { /** * applePay * - * @param applePay + * @param applePay */ @JsonProperty(JSON_PROPERTY_APPLE_PAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -550,7 +528,7 @@ public void setApplePay(ApplePayInfo applePay) { /** * bcmc * - * @param bcmc + * @param bcmc * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod bcmc(BcmcInfo bcmc) { @@ -560,7 +538,8 @@ public PaymentMethod bcmc(BcmcInfo bcmc) { /** * Get bcmc - * @return bcmc + * + * @return bcmc */ @JsonProperty(JSON_PROPERTY_BCMC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -571,7 +550,7 @@ public BcmcInfo getBcmc() { /** * bcmc * - * @param bcmc + * @param bcmc */ @JsonProperty(JSON_PROPERTY_BCMC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -580,9 +559,11 @@ public void setBcmc(BcmcInfo bcmc) { } /** - * The unique identifier of the business line. Required if you are a [platform model](https://docs.adyen.com/platforms). + * The unique identifier of the business line. Required if you are a [platform + * model](https://docs.adyen.com/platforms). * - * @param businessLineId The unique identifier of the business line. Required if you are a [platform model](https://docs.adyen.com/platforms). + * @param businessLineId The unique identifier of the business line. Required if you are a + * [platform model](https://docs.adyen.com/platforms). * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod businessLineId(String businessLineId) { @@ -591,8 +572,11 @@ public PaymentMethod businessLineId(String businessLineId) { } /** - * The unique identifier of the business line. Required if you are a [platform model](https://docs.adyen.com/platforms). - * @return businessLineId The unique identifier of the business line. Required if you are a [platform model](https://docs.adyen.com/platforms). + * The unique identifier of the business line. Required if you are a [platform + * model](https://docs.adyen.com/platforms). + * + * @return businessLineId The unique identifier of the business line. Required if you are a + * [platform model](https://docs.adyen.com/platforms). */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -601,9 +585,11 @@ public String getBusinessLineId() { } /** - * The unique identifier of the business line. Required if you are a [platform model](https://docs.adyen.com/platforms). + * The unique identifier of the business line. Required if you are a [platform + * model](https://docs.adyen.com/platforms). * - * @param businessLineId The unique identifier of the business line. Required if you are a [platform model](https://docs.adyen.com/platforms). + * @param businessLineId The unique identifier of the business line. Required if you are a + * [platform model](https://docs.adyen.com/platforms). */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -614,7 +600,7 @@ public void setBusinessLineId(String businessLineId) { /** * cartesBancaires * - * @param cartesBancaires + * @param cartesBancaires * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod cartesBancaires(CartesBancairesInfo cartesBancaires) { @@ -624,7 +610,8 @@ public PaymentMethod cartesBancaires(CartesBancairesInfo cartesBancaires) { /** * Get cartesBancaires - * @return cartesBancaires + * + * @return cartesBancaires */ @JsonProperty(JSON_PROPERTY_CARTES_BANCAIRES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -635,7 +622,7 @@ public CartesBancairesInfo getCartesBancaires() { /** * cartesBancaires * - * @param cartesBancaires + * @param cartesBancaires */ @JsonProperty(JSON_PROPERTY_CARTES_BANCAIRES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -646,7 +633,7 @@ public void setCartesBancaires(CartesBancairesInfo cartesBancaires) { /** * clearpay * - * @param clearpay + * @param clearpay * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod clearpay(ClearpayInfo clearpay) { @@ -656,7 +643,8 @@ public PaymentMethod clearpay(ClearpayInfo clearpay) { /** * Get clearpay - * @return clearpay + * + * @return clearpay */ @JsonProperty(JSON_PROPERTY_CLEARPAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -667,7 +655,7 @@ public ClearpayInfo getClearpay() { /** * clearpay * - * @param clearpay + * @param clearpay */ @JsonProperty(JSON_PROPERTY_CLEARPAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -676,9 +664,11 @@ public void setClearpay(ClearpayInfo clearpay) { } /** - * The list of countries where a payment method is available. By default, all countries supported by the payment method. + * The list of countries where a payment method is available. By default, all countries supported + * by the payment method. * - * @param countries The list of countries where a payment method is available. By default, all countries supported by the payment method. + * @param countries The list of countries where a payment method is available. By default, all + * countries supported by the payment method. * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod countries(List countries) { @@ -695,8 +685,11 @@ public PaymentMethod addCountriesItem(String countriesItem) { } /** - * The list of countries where a payment method is available. By default, all countries supported by the payment method. - * @return countries The list of countries where a payment method is available. By default, all countries supported by the payment method. + * The list of countries where a payment method is available. By default, all countries supported + * by the payment method. + * + * @return countries The list of countries where a payment method is available. By default, all + * countries supported by the payment method. */ @JsonProperty(JSON_PROPERTY_COUNTRIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -705,9 +698,11 @@ public List getCountries() { } /** - * The list of countries where a payment method is available. By default, all countries supported by the payment method. + * The list of countries where a payment method is available. By default, all countries supported + * by the payment method. * - * @param countries The list of countries where a payment method is available. By default, all countries supported by the payment method. + * @param countries The list of countries where a payment method is available. By default, all + * countries supported by the payment method. */ @JsonProperty(JSON_PROPERTY_COUNTRIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -718,7 +713,7 @@ public void setCountries(List countries) { /** * cup * - * @param cup + * @param cup * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod cup(GenericPmWithTdiInfo cup) { @@ -728,7 +723,8 @@ public PaymentMethod cup(GenericPmWithTdiInfo cup) { /** * Get cup - * @return cup + * + * @return cup */ @JsonProperty(JSON_PROPERTY_CUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -739,7 +735,7 @@ public GenericPmWithTdiInfo getCup() { /** * cup * - * @param cup + * @param cup */ @JsonProperty(JSON_PROPERTY_CUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -748,9 +744,11 @@ public void setCup(GenericPmWithTdiInfo cup) { } /** - * The list of currencies that a payment method supports. By default, all currencies supported by the payment method. + * The list of currencies that a payment method supports. By default, all currencies supported by + * the payment method. * - * @param currencies The list of currencies that a payment method supports. By default, all currencies supported by the payment method. + * @param currencies The list of currencies that a payment method supports. By default, all + * currencies supported by the payment method. * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod currencies(List currencies) { @@ -767,8 +765,11 @@ public PaymentMethod addCurrenciesItem(String currenciesItem) { } /** - * The list of currencies that a payment method supports. By default, all currencies supported by the payment method. - * @return currencies The list of currencies that a payment method supports. By default, all currencies supported by the payment method. + * The list of currencies that a payment method supports. By default, all currencies supported by + * the payment method. + * + * @return currencies The list of currencies that a payment method supports. By default, all + * currencies supported by the payment method. */ @JsonProperty(JSON_PROPERTY_CURRENCIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -777,9 +778,11 @@ public List getCurrencies() { } /** - * The list of currencies that a payment method supports. By default, all currencies supported by the payment method. + * The list of currencies that a payment method supports. By default, all currencies supported by + * the payment method. * - * @param currencies The list of currencies that a payment method supports. By default, all currencies supported by the payment method. + * @param currencies The list of currencies that a payment method supports. By default, all + * currencies supported by the payment method. */ @JsonProperty(JSON_PROPERTY_CURRENCIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -790,7 +793,8 @@ public void setCurrencies(List currencies) { /** * The list of custom routing flags to route payment to the intended acquirer. * - * @param customRoutingFlags The list of custom routing flags to route payment to the intended acquirer. + * @param customRoutingFlags The list of custom routing flags to route payment to the intended + * acquirer. * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod customRoutingFlags(List customRoutingFlags) { @@ -808,7 +812,9 @@ public PaymentMethod addCustomRoutingFlagsItem(String customRoutingFlagsItem) { /** * The list of custom routing flags to route payment to the intended acquirer. - * @return customRoutingFlags The list of custom routing flags to route payment to the intended acquirer. + * + * @return customRoutingFlags The list of custom routing flags to route payment to the intended + * acquirer. */ @JsonProperty(JSON_PROPERTY_CUSTOM_ROUTING_FLAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -819,7 +825,8 @@ public List getCustomRoutingFlags() { /** * The list of custom routing flags to route payment to the intended acquirer. * - * @param customRoutingFlags The list of custom routing flags to route payment to the intended acquirer. + * @param customRoutingFlags The list of custom routing flags to route payment to the intended + * acquirer. */ @JsonProperty(JSON_PROPERTY_CUSTOM_ROUTING_FLAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -830,7 +837,7 @@ public void setCustomRoutingFlags(List customRoutingFlags) { /** * diners * - * @param diners + * @param diners * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod diners(DinersInfo diners) { @@ -840,7 +847,8 @@ public PaymentMethod diners(DinersInfo diners) { /** * Get diners - * @return diners + * + * @return diners */ @JsonProperty(JSON_PROPERTY_DINERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -851,7 +859,7 @@ public DinersInfo getDiners() { /** * diners * - * @param diners + * @param diners */ @JsonProperty(JSON_PROPERTY_DINERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -862,7 +870,7 @@ public void setDiners(DinersInfo diners) { /** * discover * - * @param discover + * @param discover * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod discover(GenericPmWithTdiInfo discover) { @@ -872,7 +880,8 @@ public PaymentMethod discover(GenericPmWithTdiInfo discover) { /** * Get discover - * @return discover + * + * @return discover */ @JsonProperty(JSON_PROPERTY_DISCOVER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -883,7 +892,7 @@ public GenericPmWithTdiInfo getDiscover() { /** * discover * - * @param discover + * @param discover */ @JsonProperty(JSON_PROPERTY_DISCOVER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -894,7 +903,7 @@ public void setDiscover(GenericPmWithTdiInfo discover) { /** * eftDirectdebitCA * - * @param eftDirectdebitCA + * @param eftDirectdebitCA * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod eftDirectdebitCA(GenericPmWithTdiInfo eftDirectdebitCA) { @@ -904,7 +913,8 @@ public PaymentMethod eftDirectdebitCA(GenericPmWithTdiInfo eftDirectdebitCA) { /** * Get eftDirectdebitCA - * @return eftDirectdebitCA + * + * @return eftDirectdebitCA */ @JsonProperty(JSON_PROPERTY_EFT_DIRECTDEBIT_C_A) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -915,7 +925,7 @@ public GenericPmWithTdiInfo getEftDirectdebitCA() { /** * eftDirectdebitCA * - * @param eftDirectdebitCA + * @param eftDirectdebitCA */ @JsonProperty(JSON_PROPERTY_EFT_DIRECTDEBIT_C_A) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -926,7 +936,7 @@ public void setEftDirectdebitCA(GenericPmWithTdiInfo eftDirectdebitCA) { /** * eftposAustralia * - * @param eftposAustralia + * @param eftposAustralia * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod eftposAustralia(GenericPmWithTdiInfo eftposAustralia) { @@ -936,7 +946,8 @@ public PaymentMethod eftposAustralia(GenericPmWithTdiInfo eftposAustralia) { /** * Get eftposAustralia - * @return eftposAustralia + * + * @return eftposAustralia */ @JsonProperty(JSON_PROPERTY_EFTPOS_AUSTRALIA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -947,7 +958,7 @@ public GenericPmWithTdiInfo getEftposAustralia() { /** * eftposAustralia * - * @param eftposAustralia + * @param eftposAustralia */ @JsonProperty(JSON_PROPERTY_EFTPOS_AUSTRALIA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -958,7 +969,8 @@ public void setEftposAustralia(GenericPmWithTdiInfo eftposAustralia) { /** * Indicates whether the payment method is enabled (**true**) or disabled (**false**). * - * @param enabled Indicates whether the payment method is enabled (**true**) or disabled (**false**). + * @param enabled Indicates whether the payment method is enabled (**true**) or disabled + * (**false**). * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod enabled(Boolean enabled) { @@ -968,7 +980,9 @@ public PaymentMethod enabled(Boolean enabled) { /** * Indicates whether the payment method is enabled (**true**) or disabled (**false**). - * @return enabled Indicates whether the payment method is enabled (**true**) or disabled (**false**). + * + * @return enabled Indicates whether the payment method is enabled (**true**) or disabled + * (**false**). */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -979,7 +993,8 @@ public Boolean getEnabled() { /** * Indicates whether the payment method is enabled (**true**) or disabled (**false**). * - * @param enabled Indicates whether the payment method is enabled (**true**) or disabled (**false**). + * @param enabled Indicates whether the payment method is enabled (**true**) or disabled + * (**false**). */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -990,7 +1005,7 @@ public void setEnabled(Boolean enabled) { /** * girocard * - * @param girocard + * @param girocard * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod girocard(GenericPmWithTdiInfo girocard) { @@ -1000,7 +1015,8 @@ public PaymentMethod girocard(GenericPmWithTdiInfo girocard) { /** * Get girocard - * @return girocard + * + * @return girocard */ @JsonProperty(JSON_PROPERTY_GIROCARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1011,7 +1027,7 @@ public GenericPmWithTdiInfo getGirocard() { /** * girocard * - * @param girocard + * @param girocard */ @JsonProperty(JSON_PROPERTY_GIROCARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1022,7 +1038,7 @@ public void setGirocard(GenericPmWithTdiInfo girocard) { /** * googlePay * - * @param googlePay + * @param googlePay * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod googlePay(GooglePayInfo googlePay) { @@ -1032,7 +1048,8 @@ public PaymentMethod googlePay(GooglePayInfo googlePay) { /** * Get googlePay - * @return googlePay + * + * @return googlePay */ @JsonProperty(JSON_PROPERTY_GOOGLE_PAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1043,7 +1060,7 @@ public GooglePayInfo getGooglePay() { /** * googlePay * - * @param googlePay + * @param googlePay */ @JsonProperty(JSON_PROPERTY_GOOGLE_PAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1064,6 +1081,7 @@ public PaymentMethod id(String id) { /** * The identifier of the resource. + * * @return id The identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -1086,7 +1104,7 @@ public void setId(String id) { /** * ideal * - * @param ideal + * @param ideal * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod ideal(GenericPmWithTdiInfo ideal) { @@ -1096,7 +1114,8 @@ public PaymentMethod ideal(GenericPmWithTdiInfo ideal) { /** * Get ideal - * @return ideal + * + * @return ideal */ @JsonProperty(JSON_PROPERTY_IDEAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1107,7 +1126,7 @@ public GenericPmWithTdiInfo getIdeal() { /** * ideal * - * @param ideal + * @param ideal */ @JsonProperty(JSON_PROPERTY_IDEAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1118,7 +1137,7 @@ public void setIdeal(GenericPmWithTdiInfo ideal) { /** * interacCard * - * @param interacCard + * @param interacCard * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod interacCard(GenericPmWithTdiInfo interacCard) { @@ -1128,7 +1147,8 @@ public PaymentMethod interacCard(GenericPmWithTdiInfo interacCard) { /** * Get interacCard - * @return interacCard + * + * @return interacCard */ @JsonProperty(JSON_PROPERTY_INTERAC_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1139,7 +1159,7 @@ public GenericPmWithTdiInfo getInteracCard() { /** * interacCard * - * @param interacCard + * @param interacCard */ @JsonProperty(JSON_PROPERTY_INTERAC_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1150,7 +1170,7 @@ public void setInteracCard(GenericPmWithTdiInfo interacCard) { /** * jcb * - * @param jcb + * @param jcb * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod jcb(JCBInfo jcb) { @@ -1160,7 +1180,8 @@ public PaymentMethod jcb(JCBInfo jcb) { /** * Get jcb - * @return jcb + * + * @return jcb */ @JsonProperty(JSON_PROPERTY_JCB) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1171,7 +1192,7 @@ public JCBInfo getJcb() { /** * jcb * - * @param jcb + * @param jcb */ @JsonProperty(JSON_PROPERTY_JCB) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1182,7 +1203,7 @@ public void setJcb(JCBInfo jcb) { /** * klarna * - * @param klarna + * @param klarna * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod klarna(KlarnaInfo klarna) { @@ -1192,7 +1213,8 @@ public PaymentMethod klarna(KlarnaInfo klarna) { /** * Get klarna - * @return klarna + * + * @return klarna */ @JsonProperty(JSON_PROPERTY_KLARNA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1203,7 +1225,7 @@ public KlarnaInfo getKlarna() { /** * klarna * - * @param klarna + * @param klarna */ @JsonProperty(JSON_PROPERTY_KLARNA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1214,7 +1236,7 @@ public void setKlarna(KlarnaInfo klarna) { /** * maestro * - * @param maestro + * @param maestro * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod maestro(GenericPmWithTdiInfo maestro) { @@ -1224,7 +1246,8 @@ public PaymentMethod maestro(GenericPmWithTdiInfo maestro) { /** * Get maestro - * @return maestro + * + * @return maestro */ @JsonProperty(JSON_PROPERTY_MAESTRO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1235,7 +1258,7 @@ public GenericPmWithTdiInfo getMaestro() { /** * maestro * - * @param maestro + * @param maestro */ @JsonProperty(JSON_PROPERTY_MAESTRO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1246,7 +1269,7 @@ public void setMaestro(GenericPmWithTdiInfo maestro) { /** * maestroUsa * - * @param maestroUsa + * @param maestroUsa * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod maestroUsa(GenericPmWithTdiInfo maestroUsa) { @@ -1256,7 +1279,8 @@ public PaymentMethod maestroUsa(GenericPmWithTdiInfo maestroUsa) { /** * Get maestroUsa - * @return maestroUsa + * + * @return maestroUsa */ @JsonProperty(JSON_PROPERTY_MAESTRO_USA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1267,7 +1291,7 @@ public GenericPmWithTdiInfo getMaestroUsa() { /** * maestroUsa * - * @param maestroUsa + * @param maestroUsa */ @JsonProperty(JSON_PROPERTY_MAESTRO_USA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1278,7 +1302,7 @@ public void setMaestroUsa(GenericPmWithTdiInfo maestroUsa) { /** * mc * - * @param mc + * @param mc * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod mc(GenericPmWithTdiInfo mc) { @@ -1288,7 +1312,8 @@ public PaymentMethod mc(GenericPmWithTdiInfo mc) { /** * Get mc - * @return mc + * + * @return mc */ @JsonProperty(JSON_PROPERTY_MC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1299,7 +1324,7 @@ public GenericPmWithTdiInfo getMc() { /** * mc * - * @param mc + * @param mc */ @JsonProperty(JSON_PROPERTY_MC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1310,7 +1335,7 @@ public void setMc(GenericPmWithTdiInfo mc) { /** * mealVoucherFR * - * @param mealVoucherFR + * @param mealVoucherFR * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod mealVoucherFR(MealVoucherFRInfo mealVoucherFR) { @@ -1320,7 +1345,8 @@ public PaymentMethod mealVoucherFR(MealVoucherFRInfo mealVoucherFR) { /** * Get mealVoucherFR - * @return mealVoucherFR + * + * @return mealVoucherFR */ @JsonProperty(JSON_PROPERTY_MEAL_VOUCHER_F_R) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1331,7 +1357,7 @@ public MealVoucherFRInfo getMealVoucherFR() { /** * mealVoucherFR * - * @param mealVoucherFR + * @param mealVoucherFR */ @JsonProperty(JSON_PROPERTY_MEAL_VOUCHER_F_R) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1342,7 +1368,7 @@ public void setMealVoucherFR(MealVoucherFRInfo mealVoucherFR) { /** * nyce * - * @param nyce + * @param nyce * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod nyce(NyceInfo nyce) { @@ -1352,7 +1378,8 @@ public PaymentMethod nyce(NyceInfo nyce) { /** * Get nyce - * @return nyce + * + * @return nyce */ @JsonProperty(JSON_PROPERTY_NYCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1363,7 +1390,7 @@ public NyceInfo getNyce() { /** * nyce * - * @param nyce + * @param nyce */ @JsonProperty(JSON_PROPERTY_NYCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1374,7 +1401,7 @@ public void setNyce(NyceInfo nyce) { /** * paybybankPlaid * - * @param paybybankPlaid + * @param paybybankPlaid * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod paybybankPlaid(PayByBankPlaidInfo paybybankPlaid) { @@ -1384,7 +1411,8 @@ public PaymentMethod paybybankPlaid(PayByBankPlaidInfo paybybankPlaid) { /** * Get paybybankPlaid - * @return paybybankPlaid + * + * @return paybybankPlaid */ @JsonProperty(JSON_PROPERTY_PAYBYBANK_PLAID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1395,7 +1423,7 @@ public PayByBankPlaidInfo getPaybybankPlaid() { /** * paybybankPlaid * - * @param paybybankPlaid + * @param paybybankPlaid */ @JsonProperty(JSON_PROPERTY_PAYBYBANK_PLAID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1406,7 +1434,7 @@ public void setPaybybankPlaid(PayByBankPlaidInfo paybybankPlaid) { /** * payme * - * @param payme + * @param payme * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod payme(PayMeInfo payme) { @@ -1416,7 +1444,8 @@ public PaymentMethod payme(PayMeInfo payme) { /** * Get payme - * @return payme + * + * @return payme */ @JsonProperty(JSON_PROPERTY_PAYME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1427,7 +1456,7 @@ public PayMeInfo getPayme() { /** * payme * - * @param payme + * @param payme */ @JsonProperty(JSON_PROPERTY_PAYME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1438,7 +1467,7 @@ public void setPayme(PayMeInfo payme) { /** * paypal * - * @param paypal + * @param paypal * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod paypal(PayPalInfo paypal) { @@ -1448,7 +1477,8 @@ public PaymentMethod paypal(PayPalInfo paypal) { /** * Get paypal - * @return paypal + * + * @return paypal */ @JsonProperty(JSON_PROPERTY_PAYPAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1459,7 +1489,7 @@ public PayPalInfo getPaypal() { /** * paypal * - * @param paypal + * @param paypal */ @JsonProperty(JSON_PROPERTY_PAYPAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1470,7 +1500,7 @@ public void setPaypal(PayPalInfo paypal) { /** * payto * - * @param payto + * @param payto * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod payto(PayToInfo payto) { @@ -1480,7 +1510,8 @@ public PaymentMethod payto(PayToInfo payto) { /** * Get payto - * @return payto + * + * @return payto */ @JsonProperty(JSON_PROPERTY_PAYTO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1491,7 +1522,7 @@ public PayToInfo getPayto() { /** * payto * - * @param payto + * @param payto */ @JsonProperty(JSON_PROPERTY_PAYTO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1502,7 +1533,7 @@ public void setPayto(PayToInfo payto) { /** * pulse * - * @param pulse + * @param pulse * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod pulse(PulseInfo pulse) { @@ -1512,7 +1543,8 @@ public PaymentMethod pulse(PulseInfo pulse) { /** * Get pulse - * @return pulse + * + * @return pulse */ @JsonProperty(JSON_PROPERTY_PULSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1523,7 +1555,7 @@ public PulseInfo getPulse() { /** * pulse * - * @param pulse + * @param pulse */ @JsonProperty(JSON_PROPERTY_PULSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1544,6 +1576,7 @@ public PaymentMethod reference(String reference) { /** * Your reference for the payment method. Supported characters a-z, A-Z, 0-9. + * * @return reference Your reference for the payment method. Supported characters a-z, A-Z, 0-9. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -1566,7 +1599,7 @@ public void setReference(String reference) { /** * sepadirectdebit * - * @param sepadirectdebit + * @param sepadirectdebit * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod sepadirectdebit(SepaDirectDebitInfo sepadirectdebit) { @@ -1576,7 +1609,8 @@ public PaymentMethod sepadirectdebit(SepaDirectDebitInfo sepadirectdebit) { /** * Get sepadirectdebit - * @return sepadirectdebit + * + * @return sepadirectdebit */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1587,7 +1621,7 @@ public SepaDirectDebitInfo getSepadirectdebit() { /** * sepadirectdebit * - * @param sepadirectdebit + * @param sepadirectdebit */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1608,6 +1642,7 @@ public PaymentMethod shopperInteraction(String shopperInteraction) { /** * The sales channel. + * * @return shopperInteraction The sales channel. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @@ -1630,7 +1665,7 @@ public void setShopperInteraction(String shopperInteraction) { /** * sodexo * - * @param sodexo + * @param sodexo * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod sodexo(SodexoInfo sodexo) { @@ -1640,7 +1675,8 @@ public PaymentMethod sodexo(SodexoInfo sodexo) { /** * Get sodexo - * @return sodexo + * + * @return sodexo */ @JsonProperty(JSON_PROPERTY_SODEXO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1651,7 +1687,7 @@ public SodexoInfo getSodexo() { /** * sodexo * - * @param sodexo + * @param sodexo */ @JsonProperty(JSON_PROPERTY_SODEXO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1662,7 +1698,7 @@ public void setSodexo(SodexoInfo sodexo) { /** * sofort * - * @param sofort + * @param sofort * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod sofort(SofortInfo sofort) { @@ -1672,7 +1708,8 @@ public PaymentMethod sofort(SofortInfo sofort) { /** * Get sofort - * @return sofort + * + * @return sofort */ @JsonProperty(JSON_PROPERTY_SOFORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1683,7 +1720,7 @@ public SofortInfo getSofort() { /** * sofort * - * @param sofort + * @param sofort */ @JsonProperty(JSON_PROPERTY_SOFORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1694,7 +1731,7 @@ public void setSofort(SofortInfo sofort) { /** * star * - * @param star + * @param star * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod star(StarInfo star) { @@ -1704,7 +1741,8 @@ public PaymentMethod star(StarInfo star) { /** * Get star - * @return star + * + * @return star */ @JsonProperty(JSON_PROPERTY_STAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1715,7 +1753,7 @@ public StarInfo getStar() { /** * star * - * @param star + * @param star */ @JsonProperty(JSON_PROPERTY_STAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1726,7 +1764,8 @@ public void setStar(StarInfo star) { /** * The unique identifier of the store for which to configure the payment method, if any. * - * @param storeIds The unique identifier of the store for which to configure the payment method, if any. + * @param storeIds The unique identifier of the store for which to configure the payment method, + * if any. * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod storeIds(List storeIds) { @@ -1744,7 +1783,9 @@ public PaymentMethod addStoreIdsItem(String storeIdsItem) { /** * The unique identifier of the store for which to configure the payment method, if any. - * @return storeIds The unique identifier of the store for which to configure the payment method, if any. + * + * @return storeIds The unique identifier of the store for which to configure the payment method, + * if any. */ @JsonProperty(JSON_PROPERTY_STORE_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1755,7 +1796,8 @@ public List getStoreIds() { /** * The unique identifier of the store for which to configure the payment method, if any. * - * @param storeIds The unique identifier of the store for which to configure the payment method, if any. + * @param storeIds The unique identifier of the store for which to configure the payment method, + * if any. */ @JsonProperty(JSON_PROPERTY_STORE_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1766,7 +1808,7 @@ public void setStoreIds(List storeIds) { /** * swish * - * @param swish + * @param swish * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod swish(SwishInfo swish) { @@ -1776,7 +1818,8 @@ public PaymentMethod swish(SwishInfo swish) { /** * Get swish - * @return swish + * + * @return swish */ @JsonProperty(JSON_PROPERTY_SWISH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1787,7 +1830,7 @@ public SwishInfo getSwish() { /** * swish * - * @param swish + * @param swish */ @JsonProperty(JSON_PROPERTY_SWISH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1798,7 +1841,7 @@ public void setSwish(SwishInfo swish) { /** * ticket * - * @param ticket + * @param ticket * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod ticket(TicketInfo ticket) { @@ -1808,7 +1851,8 @@ public PaymentMethod ticket(TicketInfo ticket) { /** * Get ticket - * @return ticket + * + * @return ticket */ @JsonProperty(JSON_PROPERTY_TICKET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1819,7 +1863,7 @@ public TicketInfo getTicket() { /** * ticket * - * @param ticket + * @param ticket */ @JsonProperty(JSON_PROPERTY_TICKET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1830,7 +1874,7 @@ public void setTicket(TicketInfo ticket) { /** * twint * - * @param twint + * @param twint * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod twint(TwintInfo twint) { @@ -1840,7 +1884,8 @@ public PaymentMethod twint(TwintInfo twint) { /** * Get twint - * @return twint + * + * @return twint */ @JsonProperty(JSON_PROPERTY_TWINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1851,7 +1896,7 @@ public TwintInfo getTwint() { /** * twint * - * @param twint + * @param twint */ @JsonProperty(JSON_PROPERTY_TWINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1860,9 +1905,11 @@ public void setTwint(TwintInfo twint) { } /** - * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * Payment method + * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). * - * @param type Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * @param type Payment method + * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod type(String type) { @@ -1871,8 +1918,11 @@ public PaymentMethod type(String type) { } /** - * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). - * @return type Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * Payment method + * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * + * @return type Payment method + * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1881,9 +1931,11 @@ public String getType() { } /** - * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * Payment method + * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). * - * @param type Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * @param type Payment method + * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1894,7 +1946,8 @@ public void setType(String type) { /** * Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** * - * @param verificationStatus Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** + * @param verificationStatus Payment method status. Possible values: * **valid** * **pending** * + * **invalid** * **rejected** * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod verificationStatus(VerificationStatusEnum verificationStatus) { @@ -1904,7 +1957,9 @@ public PaymentMethod verificationStatus(VerificationStatusEnum verificationStatu /** * Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** - * @return verificationStatus Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** + * + * @return verificationStatus Payment method status. Possible values: * **valid** * **pending** * + * **invalid** * **rejected** */ @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1915,7 +1970,8 @@ public VerificationStatusEnum getVerificationStatus() { /** * Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** * - * @param verificationStatus Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** + * @param verificationStatus Payment method status. Possible values: * **valid** * **pending** * + * **invalid** * **rejected** */ @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1926,7 +1982,7 @@ public void setVerificationStatus(VerificationStatusEnum verificationStatus) { /** * vipps * - * @param vipps + * @param vipps * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod vipps(VippsInfo vipps) { @@ -1936,7 +1992,8 @@ public PaymentMethod vipps(VippsInfo vipps) { /** * Get vipps - * @return vipps + * + * @return vipps */ @JsonProperty(JSON_PROPERTY_VIPPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1947,7 +2004,7 @@ public VippsInfo getVipps() { /** * vipps * - * @param vipps + * @param vipps */ @JsonProperty(JSON_PROPERTY_VIPPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1958,7 +2015,7 @@ public void setVipps(VippsInfo vipps) { /** * visa * - * @param visa + * @param visa * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod visa(GenericPmWithTdiInfo visa) { @@ -1968,7 +2025,8 @@ public PaymentMethod visa(GenericPmWithTdiInfo visa) { /** * Get visa - * @return visa + * + * @return visa */ @JsonProperty(JSON_PROPERTY_VISA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1979,7 +2037,7 @@ public GenericPmWithTdiInfo getVisa() { /** * visa * - * @param visa + * @param visa */ @JsonProperty(JSON_PROPERTY_VISA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1990,7 +2048,7 @@ public void setVisa(GenericPmWithTdiInfo visa) { /** * wechatpay * - * @param wechatpay + * @param wechatpay * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod wechatpay(WeChatPayInfo wechatpay) { @@ -2000,7 +2058,8 @@ public PaymentMethod wechatpay(WeChatPayInfo wechatpay) { /** * Get wechatpay - * @return wechatpay + * + * @return wechatpay */ @JsonProperty(JSON_PROPERTY_WECHATPAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2011,7 +2070,7 @@ public WeChatPayInfo getWechatpay() { /** * wechatpay * - * @param wechatpay + * @param wechatpay */ @JsonProperty(JSON_PROPERTY_WECHATPAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2022,7 +2081,7 @@ public void setWechatpay(WeChatPayInfo wechatpay) { /** * wechatpayPos * - * @param wechatpayPos + * @param wechatpayPos * @return the current {@code PaymentMethod} instance, allowing for method chaining */ public PaymentMethod wechatpayPos(WeChatPayPosInfo wechatpayPos) { @@ -2032,7 +2091,8 @@ public PaymentMethod wechatpayPos(WeChatPayPosInfo wechatpayPos) { /** * Get wechatpayPos - * @return wechatpayPos + * + * @return wechatpayPos */ @JsonProperty(JSON_PROPERTY_WECHATPAY_POS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2043,7 +2103,7 @@ public WeChatPayPosInfo getWechatpayPos() { /** * wechatpayPos * - * @param wechatpayPos + * @param wechatpayPos */ @JsonProperty(JSON_PROPERTY_WECHATPAY_POS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2051,9 +2111,7 @@ public void setWechatpayPos(WeChatPayPosInfo wechatpayPos) { this.wechatpayPos = wechatpayPos; } - /** - * Return true if this PaymentMethod object is equal to o. - */ + /** Return true if this PaymentMethod object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -2063,64 +2121,117 @@ public boolean equals(Object o) { return false; } PaymentMethod paymentMethod = (PaymentMethod) o; - return Objects.equals(this.accel, paymentMethod.accel) && - Objects.equals(this.affirm, paymentMethod.affirm) && - Objects.equals(this.afterpayTouch, paymentMethod.afterpayTouch) && - Objects.equals(this.alipayPlus, paymentMethod.alipayPlus) && - Objects.equals(this.allowed, paymentMethod.allowed) && - Objects.equals(this.amex, paymentMethod.amex) && - Objects.equals(this.applePay, paymentMethod.applePay) && - Objects.equals(this.bcmc, paymentMethod.bcmc) && - Objects.equals(this.businessLineId, paymentMethod.businessLineId) && - Objects.equals(this.cartesBancaires, paymentMethod.cartesBancaires) && - Objects.equals(this.clearpay, paymentMethod.clearpay) && - Objects.equals(this.countries, paymentMethod.countries) && - Objects.equals(this.cup, paymentMethod.cup) && - Objects.equals(this.currencies, paymentMethod.currencies) && - Objects.equals(this.customRoutingFlags, paymentMethod.customRoutingFlags) && - Objects.equals(this.diners, paymentMethod.diners) && - Objects.equals(this.discover, paymentMethod.discover) && - Objects.equals(this.eftDirectdebitCA, paymentMethod.eftDirectdebitCA) && - Objects.equals(this.eftposAustralia, paymentMethod.eftposAustralia) && - Objects.equals(this.enabled, paymentMethod.enabled) && - Objects.equals(this.girocard, paymentMethod.girocard) && - Objects.equals(this.googlePay, paymentMethod.googlePay) && - Objects.equals(this.id, paymentMethod.id) && - Objects.equals(this.ideal, paymentMethod.ideal) && - Objects.equals(this.interacCard, paymentMethod.interacCard) && - Objects.equals(this.jcb, paymentMethod.jcb) && - Objects.equals(this.klarna, paymentMethod.klarna) && - Objects.equals(this.maestro, paymentMethod.maestro) && - Objects.equals(this.maestroUsa, paymentMethod.maestroUsa) && - Objects.equals(this.mc, paymentMethod.mc) && - Objects.equals(this.mealVoucherFR, paymentMethod.mealVoucherFR) && - Objects.equals(this.nyce, paymentMethod.nyce) && - Objects.equals(this.paybybankPlaid, paymentMethod.paybybankPlaid) && - Objects.equals(this.payme, paymentMethod.payme) && - Objects.equals(this.paypal, paymentMethod.paypal) && - Objects.equals(this.payto, paymentMethod.payto) && - Objects.equals(this.pulse, paymentMethod.pulse) && - Objects.equals(this.reference, paymentMethod.reference) && - Objects.equals(this.sepadirectdebit, paymentMethod.sepadirectdebit) && - Objects.equals(this.shopperInteraction, paymentMethod.shopperInteraction) && - Objects.equals(this.sodexo, paymentMethod.sodexo) && - Objects.equals(this.sofort, paymentMethod.sofort) && - Objects.equals(this.star, paymentMethod.star) && - Objects.equals(this.storeIds, paymentMethod.storeIds) && - Objects.equals(this.swish, paymentMethod.swish) && - Objects.equals(this.ticket, paymentMethod.ticket) && - Objects.equals(this.twint, paymentMethod.twint) && - Objects.equals(this.type, paymentMethod.type) && - Objects.equals(this.verificationStatus, paymentMethod.verificationStatus) && - Objects.equals(this.vipps, paymentMethod.vipps) && - Objects.equals(this.visa, paymentMethod.visa) && - Objects.equals(this.wechatpay, paymentMethod.wechatpay) && - Objects.equals(this.wechatpayPos, paymentMethod.wechatpayPos); + return Objects.equals(this.accel, paymentMethod.accel) + && Objects.equals(this.affirm, paymentMethod.affirm) + && Objects.equals(this.afterpayTouch, paymentMethod.afterpayTouch) + && Objects.equals(this.alipayPlus, paymentMethod.alipayPlus) + && Objects.equals(this.allowed, paymentMethod.allowed) + && Objects.equals(this.amex, paymentMethod.amex) + && Objects.equals(this.applePay, paymentMethod.applePay) + && Objects.equals(this.bcmc, paymentMethod.bcmc) + && Objects.equals(this.businessLineId, paymentMethod.businessLineId) + && Objects.equals(this.cartesBancaires, paymentMethod.cartesBancaires) + && Objects.equals(this.clearpay, paymentMethod.clearpay) + && Objects.equals(this.countries, paymentMethod.countries) + && Objects.equals(this.cup, paymentMethod.cup) + && Objects.equals(this.currencies, paymentMethod.currencies) + && Objects.equals(this.customRoutingFlags, paymentMethod.customRoutingFlags) + && Objects.equals(this.diners, paymentMethod.diners) + && Objects.equals(this.discover, paymentMethod.discover) + && Objects.equals(this.eftDirectdebitCA, paymentMethod.eftDirectdebitCA) + && Objects.equals(this.eftposAustralia, paymentMethod.eftposAustralia) + && Objects.equals(this.enabled, paymentMethod.enabled) + && Objects.equals(this.girocard, paymentMethod.girocard) + && Objects.equals(this.googlePay, paymentMethod.googlePay) + && Objects.equals(this.id, paymentMethod.id) + && Objects.equals(this.ideal, paymentMethod.ideal) + && Objects.equals(this.interacCard, paymentMethod.interacCard) + && Objects.equals(this.jcb, paymentMethod.jcb) + && Objects.equals(this.klarna, paymentMethod.klarna) + && Objects.equals(this.maestro, paymentMethod.maestro) + && Objects.equals(this.maestroUsa, paymentMethod.maestroUsa) + && Objects.equals(this.mc, paymentMethod.mc) + && Objects.equals(this.mealVoucherFR, paymentMethod.mealVoucherFR) + && Objects.equals(this.nyce, paymentMethod.nyce) + && Objects.equals(this.paybybankPlaid, paymentMethod.paybybankPlaid) + && Objects.equals(this.payme, paymentMethod.payme) + && Objects.equals(this.paypal, paymentMethod.paypal) + && Objects.equals(this.payto, paymentMethod.payto) + && Objects.equals(this.pulse, paymentMethod.pulse) + && Objects.equals(this.reference, paymentMethod.reference) + && Objects.equals(this.sepadirectdebit, paymentMethod.sepadirectdebit) + && Objects.equals(this.shopperInteraction, paymentMethod.shopperInteraction) + && Objects.equals(this.sodexo, paymentMethod.sodexo) + && Objects.equals(this.sofort, paymentMethod.sofort) + && Objects.equals(this.star, paymentMethod.star) + && Objects.equals(this.storeIds, paymentMethod.storeIds) + && Objects.equals(this.swish, paymentMethod.swish) + && Objects.equals(this.ticket, paymentMethod.ticket) + && Objects.equals(this.twint, paymentMethod.twint) + && Objects.equals(this.type, paymentMethod.type) + && Objects.equals(this.verificationStatus, paymentMethod.verificationStatus) + && Objects.equals(this.vipps, paymentMethod.vipps) + && Objects.equals(this.visa, paymentMethod.visa) + && Objects.equals(this.wechatpay, paymentMethod.wechatpay) + && Objects.equals(this.wechatpayPos, paymentMethod.wechatpayPos); } @Override public int hashCode() { - return Objects.hash(accel, affirm, afterpayTouch, alipayPlus, allowed, amex, applePay, bcmc, businessLineId, cartesBancaires, clearpay, countries, cup, currencies, customRoutingFlags, diners, discover, eftDirectdebitCA, eftposAustralia, enabled, girocard, googlePay, id, ideal, interacCard, jcb, klarna, maestro, maestroUsa, mc, mealVoucherFR, nyce, paybybankPlaid, payme, paypal, payto, pulse, reference, sepadirectdebit, shopperInteraction, sodexo, sofort, star, storeIds, swish, ticket, twint, type, verificationStatus, vipps, visa, wechatpay, wechatpayPos); + return Objects.hash( + accel, + affirm, + afterpayTouch, + alipayPlus, + allowed, + amex, + applePay, + bcmc, + businessLineId, + cartesBancaires, + clearpay, + countries, + cup, + currencies, + customRoutingFlags, + diners, + discover, + eftDirectdebitCA, + eftposAustralia, + enabled, + girocard, + googlePay, + id, + ideal, + interacCard, + jcb, + klarna, + maestro, + maestroUsa, + mc, + mealVoucherFR, + nyce, + paybybankPlaid, + payme, + paypal, + payto, + pulse, + reference, + sepadirectdebit, + shopperInteraction, + sodexo, + sofort, + star, + storeIds, + swish, + ticket, + twint, + type, + verificationStatus, + vipps, + visa, + wechatpay, + wechatpayPos); } @Override @@ -2185,8 +2296,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -2195,7 +2305,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentMethod given an JSON string * * @param jsonString JSON string @@ -2205,11 +2315,12 @@ private String toIndentedString(Object o) { public static PaymentMethod fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentMethod.class); } -/** - * Convert an instance of PaymentMethod to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentMethod to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/PaymentMethodResponse.java b/src/main/java/com/adyen/model/management/PaymentMethodResponse.java index a9103fc7a..f2760c092 100644 --- a/src/main/java/com/adyen/model/management/PaymentMethodResponse.java +++ b/src/main/java/com/adyen/model/management/PaymentMethodResponse.java @@ -2,35 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.PaginationLinks; -import com.adyen.model.management.PaymentMethod; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * PaymentMethodResponse - */ +/** PaymentMethodResponse */ @JsonPropertyOrder({ PaymentMethodResponse.JSON_PROPERTY_LINKS, PaymentMethodResponse.JSON_PROPERTY_DATA, @@ -38,7 +31,6 @@ PaymentMethodResponse.JSON_PROPERTY_PAGES_TOTAL, PaymentMethodResponse.JSON_PROPERTY_TYPES_WITH_ERRORS }) - public class PaymentMethodResponse { public static final String JSON_PROPERTY_LINKS = "_links"; private PaginationLinks links; @@ -52,11 +44,8 @@ public class PaymentMethodResponse { public static final String JSON_PROPERTY_PAGES_TOTAL = "pagesTotal"; private Integer pagesTotal; - /** - * Gets or Sets typesWithErrors - */ + /** Gets or Sets typesWithErrors */ public enum TypesWithErrorsEnum { - ABRAPETITE(String.valueOf("abrapetite")), ABRAPETITE_CREDIT(String.valueOf("abrapetite_credit")), @@ -320,7 +309,7 @@ public enum TypesWithErrorsEnum { private String value; TypesWithErrorsEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -341,7 +330,11 @@ public static TypesWithErrorsEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypesWithErrorsEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypesWithErrorsEnum.values())); + LOG.warning( + "TypesWithErrorsEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypesWithErrorsEnum.values())); return null; } } @@ -349,13 +342,12 @@ public static TypesWithErrorsEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPES_WITH_ERRORS = "typesWithErrors"; private List typesWithErrors; - public PaymentMethodResponse() { - } + public PaymentMethodResponse() {} /** * links * - * @param links + * @param links * @return the current {@code PaymentMethodResponse} instance, allowing for method chaining */ public PaymentMethodResponse links(PaginationLinks links) { @@ -365,7 +357,8 @@ public PaymentMethodResponse links(PaginationLinks links) { /** * Get links - * @return links + * + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -376,7 +369,7 @@ public PaginationLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -405,6 +398,7 @@ public PaymentMethodResponse addDataItem(PaymentMethod dataItem) { /** * The list of supported payment methods and their details. + * * @return data The list of supported payment methods and their details. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -437,6 +431,7 @@ public PaymentMethodResponse itemsTotal(Integer itemsTotal) { /** * Total number of items. + * * @return itemsTotal Total number of items. */ @JsonProperty(JSON_PROPERTY_ITEMS_TOTAL) @@ -469,6 +464,7 @@ public PaymentMethodResponse pagesTotal(Integer pagesTotal) { /** * Total number of pages. + * * @return pagesTotal Total number of pages. */ @JsonProperty(JSON_PROPERTY_PAGES_TOTAL) @@ -491,7 +487,8 @@ public void setPagesTotal(Integer pagesTotal) { /** * The payment method types that were not successfully requested and their corresponding errors. * - * @param typesWithErrors The payment method types that were not successfully requested and their corresponding errors. + * @param typesWithErrors The payment method types that were not successfully requested and their + * corresponding errors. * @return the current {@code PaymentMethodResponse} instance, allowing for method chaining */ public PaymentMethodResponse typesWithErrors(List typesWithErrors) { @@ -509,7 +506,9 @@ public PaymentMethodResponse addTypesWithErrorsItem(TypesWithErrorsEnum typesWit /** * The payment method types that were not successfully requested and their corresponding errors. - * @return typesWithErrors The payment method types that were not successfully requested and their corresponding errors. + * + * @return typesWithErrors The payment method types that were not successfully requested and their + * corresponding errors. */ @JsonProperty(JSON_PROPERTY_TYPES_WITH_ERRORS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -520,7 +519,8 @@ public List getTypesWithErrors() { /** * The payment method types that were not successfully requested and their corresponding errors. * - * @param typesWithErrors The payment method types that were not successfully requested and their corresponding errors. + * @param typesWithErrors The payment method types that were not successfully requested and their + * corresponding errors. */ @JsonProperty(JSON_PROPERTY_TYPES_WITH_ERRORS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -528,9 +528,7 @@ public void setTypesWithErrors(List typesWithErrors) { this.typesWithErrors = typesWithErrors; } - /** - * Return true if this PaymentMethodResponse object is equal to o. - */ + /** Return true if this PaymentMethodResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -540,11 +538,11 @@ public boolean equals(Object o) { return false; } PaymentMethodResponse paymentMethodResponse = (PaymentMethodResponse) o; - return Objects.equals(this.links, paymentMethodResponse.links) && - Objects.equals(this.data, paymentMethodResponse.data) && - Objects.equals(this.itemsTotal, paymentMethodResponse.itemsTotal) && - Objects.equals(this.pagesTotal, paymentMethodResponse.pagesTotal) && - Objects.equals(this.typesWithErrors, paymentMethodResponse.typesWithErrors); + return Objects.equals(this.links, paymentMethodResponse.links) + && Objects.equals(this.data, paymentMethodResponse.data) + && Objects.equals(this.itemsTotal, paymentMethodResponse.itemsTotal) + && Objects.equals(this.pagesTotal, paymentMethodResponse.pagesTotal) + && Objects.equals(this.typesWithErrors, paymentMethodResponse.typesWithErrors); } @Override @@ -566,8 +564,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -576,21 +573,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentMethodResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaymentMethodResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethodResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentMethodResponse */ public static PaymentMethodResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentMethodResponse.class); } -/** - * Convert an instance of PaymentMethodResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentMethodResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/PaymentMethodSetupInfo.java b/src/main/java/com/adyen/model/management/PaymentMethodSetupInfo.java index 771020d34..7b9eb9ccb 100644 --- a/src/main/java/com/adyen/model/management/PaymentMethodSetupInfo.java +++ b/src/main/java/com/adyen/model/management/PaymentMethodSetupInfo.java @@ -2,64 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.AccelInfo; -import com.adyen.model.management.AffirmInfo; -import com.adyen.model.management.AfterpayTouchInfo; -import com.adyen.model.management.AlipayPlusInfo; -import com.adyen.model.management.AmexInfo; -import com.adyen.model.management.ApplePayInfo; -import com.adyen.model.management.BcmcInfo; -import com.adyen.model.management.CartesBancairesInfo; -import com.adyen.model.management.ClearpayInfo; -import com.adyen.model.management.DinersInfo; -import com.adyen.model.management.GenericPmWithTdiInfo; -import com.adyen.model.management.GooglePayInfo; -import com.adyen.model.management.JCBInfo; -import com.adyen.model.management.KlarnaInfo; -import com.adyen.model.management.MealVoucherFRInfo; -import com.adyen.model.management.NyceInfo; -import com.adyen.model.management.PayByBankPlaidInfo; -import com.adyen.model.management.PayMeInfo; -import com.adyen.model.management.PayPalInfo; -import com.adyen.model.management.PayToInfo; -import com.adyen.model.management.PulseInfo; -import com.adyen.model.management.SepaDirectDebitInfo; -import com.adyen.model.management.SodexoInfo; -import com.adyen.model.management.SofortInfo; -import com.adyen.model.management.StarInfo; -import com.adyen.model.management.SwishInfo; -import com.adyen.model.management.TicketInfo; -import com.adyen.model.management.TwintInfo; -import com.adyen.model.management.VippsInfo; -import com.adyen.model.management.WeChatPayInfo; -import com.adyen.model.management.WeChatPayPosInfo; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * PaymentMethodSetupInfo - */ +/** PaymentMethodSetupInfo */ @JsonPropertyOrder({ PaymentMethodSetupInfo.JSON_PROPERTY_ACCEL, PaymentMethodSetupInfo.JSON_PROPERTY_AFFIRM, @@ -111,7 +75,6 @@ PaymentMethodSetupInfo.JSON_PROPERTY_WECHATPAY, PaymentMethodSetupInfo.JSON_PROPERTY_WECHATPAY_POS }) - public class PaymentMethodSetupInfo { public static final String JSON_PROPERTY_ACCEL = "accel"; private AccelInfo accel; @@ -222,10 +185,11 @@ public class PaymentMethodSetupInfo { private SepaDirectDebitInfo sepadirectdebit; /** - * The sales channel. Required if the merchant account does not have a sales channel. When you provide this field, it overrides the default sales channel set on the merchant account. Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. + * The sales channel. Required if the merchant account does not have a sales channel. When you + * provide this field, it overrides the default sales channel set on the merchant account. + * Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. */ public enum ShopperInteractionEnum { - ECOMMERCE(String.valueOf("eCommerce")), POS(String.valueOf("pos")), @@ -239,7 +203,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -260,7 +224,11 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning( + "ShopperInteractionEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -290,10 +258,10 @@ public static ShopperInteractionEnum fromValue(String value) { private TwintInfo twint; /** - * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * Payment method + * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). */ public enum TypeEnum { - ABRAPETITE(String.valueOf("abrapetite")), ABRAPETITE_CREDIT(String.valueOf("abrapetite_credit")), @@ -557,7 +525,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -578,7 +546,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -598,13 +570,12 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_WECHATPAY_POS = "wechatpay_pos"; private WeChatPayPosInfo wechatpayPos; - public PaymentMethodSetupInfo() { - } + public PaymentMethodSetupInfo() {} /** * accel * - * @param accel + * @param accel * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo accel(AccelInfo accel) { @@ -614,7 +585,8 @@ public PaymentMethodSetupInfo accel(AccelInfo accel) { /** * Get accel - * @return accel + * + * @return accel */ @JsonProperty(JSON_PROPERTY_ACCEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -625,7 +597,7 @@ public AccelInfo getAccel() { /** * accel * - * @param accel + * @param accel */ @JsonProperty(JSON_PROPERTY_ACCEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -636,7 +608,7 @@ public void setAccel(AccelInfo accel) { /** * affirm * - * @param affirm + * @param affirm * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo affirm(AffirmInfo affirm) { @@ -646,7 +618,8 @@ public PaymentMethodSetupInfo affirm(AffirmInfo affirm) { /** * Get affirm - * @return affirm + * + * @return affirm */ @JsonProperty(JSON_PROPERTY_AFFIRM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -657,7 +630,7 @@ public AffirmInfo getAffirm() { /** * affirm * - * @param affirm + * @param affirm */ @JsonProperty(JSON_PROPERTY_AFFIRM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -668,7 +641,7 @@ public void setAffirm(AffirmInfo affirm) { /** * afterpayTouch * - * @param afterpayTouch + * @param afterpayTouch * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo afterpayTouch(AfterpayTouchInfo afterpayTouch) { @@ -678,7 +651,8 @@ public PaymentMethodSetupInfo afterpayTouch(AfterpayTouchInfo afterpayTouch) { /** * Get afterpayTouch - * @return afterpayTouch + * + * @return afterpayTouch */ @JsonProperty(JSON_PROPERTY_AFTERPAY_TOUCH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -689,7 +663,7 @@ public AfterpayTouchInfo getAfterpayTouch() { /** * afterpayTouch * - * @param afterpayTouch + * @param afterpayTouch */ @JsonProperty(JSON_PROPERTY_AFTERPAY_TOUCH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -700,7 +674,7 @@ public void setAfterpayTouch(AfterpayTouchInfo afterpayTouch) { /** * alipayPlus * - * @param alipayPlus + * @param alipayPlus * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo alipayPlus(AlipayPlusInfo alipayPlus) { @@ -710,7 +684,8 @@ public PaymentMethodSetupInfo alipayPlus(AlipayPlusInfo alipayPlus) { /** * Get alipayPlus - * @return alipayPlus + * + * @return alipayPlus */ @JsonProperty(JSON_PROPERTY_ALIPAY_PLUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -721,7 +696,7 @@ public AlipayPlusInfo getAlipayPlus() { /** * alipayPlus * - * @param alipayPlus + * @param alipayPlus */ @JsonProperty(JSON_PROPERTY_ALIPAY_PLUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -732,7 +707,7 @@ public void setAlipayPlus(AlipayPlusInfo alipayPlus) { /** * amex * - * @param amex + * @param amex * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo amex(AmexInfo amex) { @@ -742,7 +717,8 @@ public PaymentMethodSetupInfo amex(AmexInfo amex) { /** * Get amex - * @return amex + * + * @return amex */ @JsonProperty(JSON_PROPERTY_AMEX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -753,7 +729,7 @@ public AmexInfo getAmex() { /** * amex * - * @param amex + * @param amex */ @JsonProperty(JSON_PROPERTY_AMEX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -764,7 +740,7 @@ public void setAmex(AmexInfo amex) { /** * applePay * - * @param applePay + * @param applePay * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo applePay(ApplePayInfo applePay) { @@ -774,7 +750,8 @@ public PaymentMethodSetupInfo applePay(ApplePayInfo applePay) { /** * Get applePay - * @return applePay + * + * @return applePay */ @JsonProperty(JSON_PROPERTY_APPLE_PAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -785,7 +762,7 @@ public ApplePayInfo getApplePay() { /** * applePay * - * @param applePay + * @param applePay */ @JsonProperty(JSON_PROPERTY_APPLE_PAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -796,7 +773,7 @@ public void setApplePay(ApplePayInfo applePay) { /** * bcmc * - * @param bcmc + * @param bcmc * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo bcmc(BcmcInfo bcmc) { @@ -806,7 +783,8 @@ public PaymentMethodSetupInfo bcmc(BcmcInfo bcmc) { /** * Get bcmc - * @return bcmc + * + * @return bcmc */ @JsonProperty(JSON_PROPERTY_BCMC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -817,7 +795,7 @@ public BcmcInfo getBcmc() { /** * bcmc * - * @param bcmc + * @param bcmc */ @JsonProperty(JSON_PROPERTY_BCMC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -826,9 +804,11 @@ public void setBcmc(BcmcInfo bcmc) { } /** - * The unique identifier of the business line. Required if you are a [platform model](https://docs.adyen.com/platforms). + * The unique identifier of the business line. Required if you are a [platform + * model](https://docs.adyen.com/platforms). * - * @param businessLineId The unique identifier of the business line. Required if you are a [platform model](https://docs.adyen.com/platforms). + * @param businessLineId The unique identifier of the business line. Required if you are a + * [platform model](https://docs.adyen.com/platforms). * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo businessLineId(String businessLineId) { @@ -837,8 +817,11 @@ public PaymentMethodSetupInfo businessLineId(String businessLineId) { } /** - * The unique identifier of the business line. Required if you are a [platform model](https://docs.adyen.com/platforms). - * @return businessLineId The unique identifier of the business line. Required if you are a [platform model](https://docs.adyen.com/platforms). + * The unique identifier of the business line. Required if you are a [platform + * model](https://docs.adyen.com/platforms). + * + * @return businessLineId The unique identifier of the business line. Required if you are a + * [platform model](https://docs.adyen.com/platforms). */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -847,9 +830,11 @@ public String getBusinessLineId() { } /** - * The unique identifier of the business line. Required if you are a [platform model](https://docs.adyen.com/platforms). + * The unique identifier of the business line. Required if you are a [platform + * model](https://docs.adyen.com/platforms). * - * @param businessLineId The unique identifier of the business line. Required if you are a [platform model](https://docs.adyen.com/platforms). + * @param businessLineId The unique identifier of the business line. Required if you are a + * [platform model](https://docs.adyen.com/platforms). */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -860,7 +845,7 @@ public void setBusinessLineId(String businessLineId) { /** * cartesBancaires * - * @param cartesBancaires + * @param cartesBancaires * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo cartesBancaires(CartesBancairesInfo cartesBancaires) { @@ -870,7 +855,8 @@ public PaymentMethodSetupInfo cartesBancaires(CartesBancairesInfo cartesBancaire /** * Get cartesBancaires - * @return cartesBancaires + * + * @return cartesBancaires */ @JsonProperty(JSON_PROPERTY_CARTES_BANCAIRES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -881,7 +867,7 @@ public CartesBancairesInfo getCartesBancaires() { /** * cartesBancaires * - * @param cartesBancaires + * @param cartesBancaires */ @JsonProperty(JSON_PROPERTY_CARTES_BANCAIRES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -892,7 +878,7 @@ public void setCartesBancaires(CartesBancairesInfo cartesBancaires) { /** * clearpay * - * @param clearpay + * @param clearpay * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo clearpay(ClearpayInfo clearpay) { @@ -902,7 +888,8 @@ public PaymentMethodSetupInfo clearpay(ClearpayInfo clearpay) { /** * Get clearpay - * @return clearpay + * + * @return clearpay */ @JsonProperty(JSON_PROPERTY_CLEARPAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -913,7 +900,7 @@ public ClearpayInfo getClearpay() { /** * clearpay * - * @param clearpay + * @param clearpay */ @JsonProperty(JSON_PROPERTY_CLEARPAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -922,9 +909,11 @@ public void setClearpay(ClearpayInfo clearpay) { } /** - * The list of countries where a payment method is available. By default, all countries supported by the payment method. + * The list of countries where a payment method is available. By default, all countries supported + * by the payment method. * - * @param countries The list of countries where a payment method is available. By default, all countries supported by the payment method. + * @param countries The list of countries where a payment method is available. By default, all + * countries supported by the payment method. * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo countries(List countries) { @@ -941,8 +930,11 @@ public PaymentMethodSetupInfo addCountriesItem(String countriesItem) { } /** - * The list of countries where a payment method is available. By default, all countries supported by the payment method. - * @return countries The list of countries where a payment method is available. By default, all countries supported by the payment method. + * The list of countries where a payment method is available. By default, all countries supported + * by the payment method. + * + * @return countries The list of countries where a payment method is available. By default, all + * countries supported by the payment method. */ @JsonProperty(JSON_PROPERTY_COUNTRIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -951,9 +943,11 @@ public List getCountries() { } /** - * The list of countries where a payment method is available. By default, all countries supported by the payment method. + * The list of countries where a payment method is available. By default, all countries supported + * by the payment method. * - * @param countries The list of countries where a payment method is available. By default, all countries supported by the payment method. + * @param countries The list of countries where a payment method is available. By default, all + * countries supported by the payment method. */ @JsonProperty(JSON_PROPERTY_COUNTRIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -964,7 +958,7 @@ public void setCountries(List countries) { /** * cup * - * @param cup + * @param cup * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo cup(GenericPmWithTdiInfo cup) { @@ -974,7 +968,8 @@ public PaymentMethodSetupInfo cup(GenericPmWithTdiInfo cup) { /** * Get cup - * @return cup + * + * @return cup */ @JsonProperty(JSON_PROPERTY_CUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -985,7 +980,7 @@ public GenericPmWithTdiInfo getCup() { /** * cup * - * @param cup + * @param cup */ @JsonProperty(JSON_PROPERTY_CUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -994,9 +989,11 @@ public void setCup(GenericPmWithTdiInfo cup) { } /** - * The list of currencies that a payment method supports. By default, all currencies supported by the payment method. + * The list of currencies that a payment method supports. By default, all currencies supported by + * the payment method. * - * @param currencies The list of currencies that a payment method supports. By default, all currencies supported by the payment method. + * @param currencies The list of currencies that a payment method supports. By default, all + * currencies supported by the payment method. * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo currencies(List currencies) { @@ -1013,8 +1010,11 @@ public PaymentMethodSetupInfo addCurrenciesItem(String currenciesItem) { } /** - * The list of currencies that a payment method supports. By default, all currencies supported by the payment method. - * @return currencies The list of currencies that a payment method supports. By default, all currencies supported by the payment method. + * The list of currencies that a payment method supports. By default, all currencies supported by + * the payment method. + * + * @return currencies The list of currencies that a payment method supports. By default, all + * currencies supported by the payment method. */ @JsonProperty(JSON_PROPERTY_CURRENCIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1023,9 +1023,11 @@ public List getCurrencies() { } /** - * The list of currencies that a payment method supports. By default, all currencies supported by the payment method. + * The list of currencies that a payment method supports. By default, all currencies supported by + * the payment method. * - * @param currencies The list of currencies that a payment method supports. By default, all currencies supported by the payment method. + * @param currencies The list of currencies that a payment method supports. By default, all + * currencies supported by the payment method. */ @JsonProperty(JSON_PROPERTY_CURRENCIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1036,7 +1038,8 @@ public void setCurrencies(List currencies) { /** * The list of custom routing flags to route payment to the intended acquirer. * - * @param customRoutingFlags The list of custom routing flags to route payment to the intended acquirer. + * @param customRoutingFlags The list of custom routing flags to route payment to the intended + * acquirer. * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo customRoutingFlags(List customRoutingFlags) { @@ -1054,7 +1057,9 @@ public PaymentMethodSetupInfo addCustomRoutingFlagsItem(String customRoutingFlag /** * The list of custom routing flags to route payment to the intended acquirer. - * @return customRoutingFlags The list of custom routing flags to route payment to the intended acquirer. + * + * @return customRoutingFlags The list of custom routing flags to route payment to the intended + * acquirer. */ @JsonProperty(JSON_PROPERTY_CUSTOM_ROUTING_FLAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1065,7 +1070,8 @@ public List getCustomRoutingFlags() { /** * The list of custom routing flags to route payment to the intended acquirer. * - * @param customRoutingFlags The list of custom routing flags to route payment to the intended acquirer. + * @param customRoutingFlags The list of custom routing flags to route payment to the intended + * acquirer. */ @JsonProperty(JSON_PROPERTY_CUSTOM_ROUTING_FLAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1076,7 +1082,7 @@ public void setCustomRoutingFlags(List customRoutingFlags) { /** * diners * - * @param diners + * @param diners * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo diners(DinersInfo diners) { @@ -1086,7 +1092,8 @@ public PaymentMethodSetupInfo diners(DinersInfo diners) { /** * Get diners - * @return diners + * + * @return diners */ @JsonProperty(JSON_PROPERTY_DINERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1097,7 +1104,7 @@ public DinersInfo getDiners() { /** * diners * - * @param diners + * @param diners */ @JsonProperty(JSON_PROPERTY_DINERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1108,7 +1115,7 @@ public void setDiners(DinersInfo diners) { /** * discover * - * @param discover + * @param discover * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo discover(GenericPmWithTdiInfo discover) { @@ -1118,7 +1125,8 @@ public PaymentMethodSetupInfo discover(GenericPmWithTdiInfo discover) { /** * Get discover - * @return discover + * + * @return discover */ @JsonProperty(JSON_PROPERTY_DISCOVER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1129,7 +1137,7 @@ public GenericPmWithTdiInfo getDiscover() { /** * discover * - * @param discover + * @param discover */ @JsonProperty(JSON_PROPERTY_DISCOVER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1140,7 +1148,7 @@ public void setDiscover(GenericPmWithTdiInfo discover) { /** * eftDirectdebitCA * - * @param eftDirectdebitCA + * @param eftDirectdebitCA * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo eftDirectdebitCA(GenericPmWithTdiInfo eftDirectdebitCA) { @@ -1150,7 +1158,8 @@ public PaymentMethodSetupInfo eftDirectdebitCA(GenericPmWithTdiInfo eftDirectdeb /** * Get eftDirectdebitCA - * @return eftDirectdebitCA + * + * @return eftDirectdebitCA */ @JsonProperty(JSON_PROPERTY_EFT_DIRECTDEBIT_C_A) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1161,7 +1170,7 @@ public GenericPmWithTdiInfo getEftDirectdebitCA() { /** * eftDirectdebitCA * - * @param eftDirectdebitCA + * @param eftDirectdebitCA */ @JsonProperty(JSON_PROPERTY_EFT_DIRECTDEBIT_C_A) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1172,7 +1181,7 @@ public void setEftDirectdebitCA(GenericPmWithTdiInfo eftDirectdebitCA) { /** * eftposAustralia * - * @param eftposAustralia + * @param eftposAustralia * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo eftposAustralia(GenericPmWithTdiInfo eftposAustralia) { @@ -1182,7 +1191,8 @@ public PaymentMethodSetupInfo eftposAustralia(GenericPmWithTdiInfo eftposAustral /** * Get eftposAustralia - * @return eftposAustralia + * + * @return eftposAustralia */ @JsonProperty(JSON_PROPERTY_EFTPOS_AUSTRALIA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1193,7 +1203,7 @@ public GenericPmWithTdiInfo getEftposAustralia() { /** * eftposAustralia * - * @param eftposAustralia + * @param eftposAustralia */ @JsonProperty(JSON_PROPERTY_EFTPOS_AUSTRALIA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1204,7 +1214,7 @@ public void setEftposAustralia(GenericPmWithTdiInfo eftposAustralia) { /** * girocard * - * @param girocard + * @param girocard * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo girocard(GenericPmWithTdiInfo girocard) { @@ -1214,7 +1224,8 @@ public PaymentMethodSetupInfo girocard(GenericPmWithTdiInfo girocard) { /** * Get girocard - * @return girocard + * + * @return girocard */ @JsonProperty(JSON_PROPERTY_GIROCARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1225,7 +1236,7 @@ public GenericPmWithTdiInfo getGirocard() { /** * girocard * - * @param girocard + * @param girocard */ @JsonProperty(JSON_PROPERTY_GIROCARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1236,7 +1247,7 @@ public void setGirocard(GenericPmWithTdiInfo girocard) { /** * googlePay * - * @param googlePay + * @param googlePay * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo googlePay(GooglePayInfo googlePay) { @@ -1246,7 +1257,8 @@ public PaymentMethodSetupInfo googlePay(GooglePayInfo googlePay) { /** * Get googlePay - * @return googlePay + * + * @return googlePay */ @JsonProperty(JSON_PROPERTY_GOOGLE_PAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1257,7 +1269,7 @@ public GooglePayInfo getGooglePay() { /** * googlePay * - * @param googlePay + * @param googlePay */ @JsonProperty(JSON_PROPERTY_GOOGLE_PAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1268,7 +1280,7 @@ public void setGooglePay(GooglePayInfo googlePay) { /** * ideal * - * @param ideal + * @param ideal * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo ideal(GenericPmWithTdiInfo ideal) { @@ -1278,7 +1290,8 @@ public PaymentMethodSetupInfo ideal(GenericPmWithTdiInfo ideal) { /** * Get ideal - * @return ideal + * + * @return ideal */ @JsonProperty(JSON_PROPERTY_IDEAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1289,7 +1302,7 @@ public GenericPmWithTdiInfo getIdeal() { /** * ideal * - * @param ideal + * @param ideal */ @JsonProperty(JSON_PROPERTY_IDEAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1300,7 +1313,7 @@ public void setIdeal(GenericPmWithTdiInfo ideal) { /** * interacCard * - * @param interacCard + * @param interacCard * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo interacCard(GenericPmWithTdiInfo interacCard) { @@ -1310,7 +1323,8 @@ public PaymentMethodSetupInfo interacCard(GenericPmWithTdiInfo interacCard) { /** * Get interacCard - * @return interacCard + * + * @return interacCard */ @JsonProperty(JSON_PROPERTY_INTERAC_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1321,7 +1335,7 @@ public GenericPmWithTdiInfo getInteracCard() { /** * interacCard * - * @param interacCard + * @param interacCard */ @JsonProperty(JSON_PROPERTY_INTERAC_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1332,7 +1346,7 @@ public void setInteracCard(GenericPmWithTdiInfo interacCard) { /** * jcb * - * @param jcb + * @param jcb * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo jcb(JCBInfo jcb) { @@ -1342,7 +1356,8 @@ public PaymentMethodSetupInfo jcb(JCBInfo jcb) { /** * Get jcb - * @return jcb + * + * @return jcb */ @JsonProperty(JSON_PROPERTY_JCB) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1353,7 +1368,7 @@ public JCBInfo getJcb() { /** * jcb * - * @param jcb + * @param jcb */ @JsonProperty(JSON_PROPERTY_JCB) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1364,7 +1379,7 @@ public void setJcb(JCBInfo jcb) { /** * klarna * - * @param klarna + * @param klarna * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo klarna(KlarnaInfo klarna) { @@ -1374,7 +1389,8 @@ public PaymentMethodSetupInfo klarna(KlarnaInfo klarna) { /** * Get klarna - * @return klarna + * + * @return klarna */ @JsonProperty(JSON_PROPERTY_KLARNA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1385,7 +1401,7 @@ public KlarnaInfo getKlarna() { /** * klarna * - * @param klarna + * @param klarna */ @JsonProperty(JSON_PROPERTY_KLARNA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1396,7 +1412,7 @@ public void setKlarna(KlarnaInfo klarna) { /** * maestro * - * @param maestro + * @param maestro * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo maestro(GenericPmWithTdiInfo maestro) { @@ -1406,7 +1422,8 @@ public PaymentMethodSetupInfo maestro(GenericPmWithTdiInfo maestro) { /** * Get maestro - * @return maestro + * + * @return maestro */ @JsonProperty(JSON_PROPERTY_MAESTRO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1417,7 +1434,7 @@ public GenericPmWithTdiInfo getMaestro() { /** * maestro * - * @param maestro + * @param maestro */ @JsonProperty(JSON_PROPERTY_MAESTRO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1428,7 +1445,7 @@ public void setMaestro(GenericPmWithTdiInfo maestro) { /** * maestroUsa * - * @param maestroUsa + * @param maestroUsa * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo maestroUsa(GenericPmWithTdiInfo maestroUsa) { @@ -1438,7 +1455,8 @@ public PaymentMethodSetupInfo maestroUsa(GenericPmWithTdiInfo maestroUsa) { /** * Get maestroUsa - * @return maestroUsa + * + * @return maestroUsa */ @JsonProperty(JSON_PROPERTY_MAESTRO_USA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1449,7 +1467,7 @@ public GenericPmWithTdiInfo getMaestroUsa() { /** * maestroUsa * - * @param maestroUsa + * @param maestroUsa */ @JsonProperty(JSON_PROPERTY_MAESTRO_USA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1460,7 +1478,7 @@ public void setMaestroUsa(GenericPmWithTdiInfo maestroUsa) { /** * mc * - * @param mc + * @param mc * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo mc(GenericPmWithTdiInfo mc) { @@ -1470,7 +1488,8 @@ public PaymentMethodSetupInfo mc(GenericPmWithTdiInfo mc) { /** * Get mc - * @return mc + * + * @return mc */ @JsonProperty(JSON_PROPERTY_MC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1481,7 +1500,7 @@ public GenericPmWithTdiInfo getMc() { /** * mc * - * @param mc + * @param mc */ @JsonProperty(JSON_PROPERTY_MC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1492,7 +1511,7 @@ public void setMc(GenericPmWithTdiInfo mc) { /** * mealVoucherFR * - * @param mealVoucherFR + * @param mealVoucherFR * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo mealVoucherFR(MealVoucherFRInfo mealVoucherFR) { @@ -1502,7 +1521,8 @@ public PaymentMethodSetupInfo mealVoucherFR(MealVoucherFRInfo mealVoucherFR) { /** * Get mealVoucherFR - * @return mealVoucherFR + * + * @return mealVoucherFR */ @JsonProperty(JSON_PROPERTY_MEAL_VOUCHER_F_R) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1513,7 +1533,7 @@ public MealVoucherFRInfo getMealVoucherFR() { /** * mealVoucherFR * - * @param mealVoucherFR + * @param mealVoucherFR */ @JsonProperty(JSON_PROPERTY_MEAL_VOUCHER_F_R) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1524,7 +1544,7 @@ public void setMealVoucherFR(MealVoucherFRInfo mealVoucherFR) { /** * nyce * - * @param nyce + * @param nyce * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo nyce(NyceInfo nyce) { @@ -1534,7 +1554,8 @@ public PaymentMethodSetupInfo nyce(NyceInfo nyce) { /** * Get nyce - * @return nyce + * + * @return nyce */ @JsonProperty(JSON_PROPERTY_NYCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1545,7 +1566,7 @@ public NyceInfo getNyce() { /** * nyce * - * @param nyce + * @param nyce */ @JsonProperty(JSON_PROPERTY_NYCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1556,7 +1577,7 @@ public void setNyce(NyceInfo nyce) { /** * paybybankPlaid * - * @param paybybankPlaid + * @param paybybankPlaid * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo paybybankPlaid(PayByBankPlaidInfo paybybankPlaid) { @@ -1566,7 +1587,8 @@ public PaymentMethodSetupInfo paybybankPlaid(PayByBankPlaidInfo paybybankPlaid) /** * Get paybybankPlaid - * @return paybybankPlaid + * + * @return paybybankPlaid */ @JsonProperty(JSON_PROPERTY_PAYBYBANK_PLAID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1577,7 +1599,7 @@ public PayByBankPlaidInfo getPaybybankPlaid() { /** * paybybankPlaid * - * @param paybybankPlaid + * @param paybybankPlaid */ @JsonProperty(JSON_PROPERTY_PAYBYBANK_PLAID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1588,7 +1610,7 @@ public void setPaybybankPlaid(PayByBankPlaidInfo paybybankPlaid) { /** * payme * - * @param payme + * @param payme * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo payme(PayMeInfo payme) { @@ -1598,7 +1620,8 @@ public PaymentMethodSetupInfo payme(PayMeInfo payme) { /** * Get payme - * @return payme + * + * @return payme */ @JsonProperty(JSON_PROPERTY_PAYME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1609,7 +1632,7 @@ public PayMeInfo getPayme() { /** * payme * - * @param payme + * @param payme */ @JsonProperty(JSON_PROPERTY_PAYME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1620,7 +1643,7 @@ public void setPayme(PayMeInfo payme) { /** * paypal * - * @param paypal + * @param paypal * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo paypal(PayPalInfo paypal) { @@ -1630,7 +1653,8 @@ public PaymentMethodSetupInfo paypal(PayPalInfo paypal) { /** * Get paypal - * @return paypal + * + * @return paypal */ @JsonProperty(JSON_PROPERTY_PAYPAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1641,7 +1665,7 @@ public PayPalInfo getPaypal() { /** * paypal * - * @param paypal + * @param paypal */ @JsonProperty(JSON_PROPERTY_PAYPAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1652,7 +1676,7 @@ public void setPaypal(PayPalInfo paypal) { /** * payto * - * @param payto + * @param payto * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo payto(PayToInfo payto) { @@ -1662,7 +1686,8 @@ public PaymentMethodSetupInfo payto(PayToInfo payto) { /** * Get payto - * @return payto + * + * @return payto */ @JsonProperty(JSON_PROPERTY_PAYTO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1673,7 +1698,7 @@ public PayToInfo getPayto() { /** * payto * - * @param payto + * @param payto */ @JsonProperty(JSON_PROPERTY_PAYTO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1684,7 +1709,7 @@ public void setPayto(PayToInfo payto) { /** * pulse * - * @param pulse + * @param pulse * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo pulse(PulseInfo pulse) { @@ -1694,7 +1719,8 @@ public PaymentMethodSetupInfo pulse(PulseInfo pulse) { /** * Get pulse - * @return pulse + * + * @return pulse */ @JsonProperty(JSON_PROPERTY_PULSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1705,7 +1731,7 @@ public PulseInfo getPulse() { /** * pulse * - * @param pulse + * @param pulse */ @JsonProperty(JSON_PROPERTY_PULSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1726,6 +1752,7 @@ public PaymentMethodSetupInfo reference(String reference) { /** * Your reference for the payment method. Supported characters a-z, A-Z, 0-9. + * * @return reference Your reference for the payment method. Supported characters a-z, A-Z, 0-9. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -1748,7 +1775,7 @@ public void setReference(String reference) { /** * sepadirectdebit * - * @param sepadirectdebit + * @param sepadirectdebit * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo sepadirectdebit(SepaDirectDebitInfo sepadirectdebit) { @@ -1758,7 +1785,8 @@ public PaymentMethodSetupInfo sepadirectdebit(SepaDirectDebitInfo sepadirectdebi /** * Get sepadirectdebit - * @return sepadirectdebit + * + * @return sepadirectdebit */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1769,7 +1797,7 @@ public SepaDirectDebitInfo getSepadirectdebit() { /** * sepadirectdebit * - * @param sepadirectdebit + * @param sepadirectdebit */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1778,9 +1806,13 @@ public void setSepadirectdebit(SepaDirectDebitInfo sepadirectdebit) { } /** - * The sales channel. Required if the merchant account does not have a sales channel. When you provide this field, it overrides the default sales channel set on the merchant account. Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. + * The sales channel. Required if the merchant account does not have a sales channel. When you + * provide this field, it overrides the default sales channel set on the merchant account. + * Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. * - * @param shopperInteraction The sales channel. Required if the merchant account does not have a sales channel. When you provide this field, it overrides the default sales channel set on the merchant account. Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. + * @param shopperInteraction The sales channel. Required if the merchant account does not have a + * sales channel. When you provide this field, it overrides the default sales channel set on + * the merchant account. Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo shopperInteraction(ShopperInteractionEnum shopperInteraction) { @@ -1789,8 +1821,13 @@ public PaymentMethodSetupInfo shopperInteraction(ShopperInteractionEnum shopperI } /** - * The sales channel. Required if the merchant account does not have a sales channel. When you provide this field, it overrides the default sales channel set on the merchant account. Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. - * @return shopperInteraction The sales channel. Required if the merchant account does not have a sales channel. When you provide this field, it overrides the default sales channel set on the merchant account. Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. + * The sales channel. Required if the merchant account does not have a sales channel. When you + * provide this field, it overrides the default sales channel set on the merchant account. + * Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. + * + * @return shopperInteraction The sales channel. Required if the merchant account does not have a + * sales channel. When you provide this field, it overrides the default sales channel set on + * the merchant account. Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1799,9 +1836,13 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * The sales channel. Required if the merchant account does not have a sales channel. When you provide this field, it overrides the default sales channel set on the merchant account. Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. + * The sales channel. Required if the merchant account does not have a sales channel. When you + * provide this field, it overrides the default sales channel set on the merchant account. + * Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. * - * @param shopperInteraction The sales channel. Required if the merchant account does not have a sales channel. When you provide this field, it overrides the default sales channel set on the merchant account. Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. + * @param shopperInteraction The sales channel. Required if the merchant account does not have a + * sales channel. When you provide this field, it overrides the default sales channel set on + * the merchant account. Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1812,7 +1853,7 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { /** * sodexo * - * @param sodexo + * @param sodexo * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo sodexo(SodexoInfo sodexo) { @@ -1822,7 +1863,8 @@ public PaymentMethodSetupInfo sodexo(SodexoInfo sodexo) { /** * Get sodexo - * @return sodexo + * + * @return sodexo */ @JsonProperty(JSON_PROPERTY_SODEXO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1833,7 +1875,7 @@ public SodexoInfo getSodexo() { /** * sodexo * - * @param sodexo + * @param sodexo */ @JsonProperty(JSON_PROPERTY_SODEXO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1844,7 +1886,7 @@ public void setSodexo(SodexoInfo sodexo) { /** * sofort * - * @param sofort + * @param sofort * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo sofort(SofortInfo sofort) { @@ -1854,7 +1896,8 @@ public PaymentMethodSetupInfo sofort(SofortInfo sofort) { /** * Get sofort - * @return sofort + * + * @return sofort */ @JsonProperty(JSON_PROPERTY_SOFORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1865,7 +1908,7 @@ public SofortInfo getSofort() { /** * sofort * - * @param sofort + * @param sofort */ @JsonProperty(JSON_PROPERTY_SOFORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1876,7 +1919,7 @@ public void setSofort(SofortInfo sofort) { /** * star * - * @param star + * @param star * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo star(StarInfo star) { @@ -1886,7 +1929,8 @@ public PaymentMethodSetupInfo star(StarInfo star) { /** * Get star - * @return star + * + * @return star */ @JsonProperty(JSON_PROPERTY_STAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1897,7 +1941,7 @@ public StarInfo getStar() { /** * star * - * @param star + * @param star */ @JsonProperty(JSON_PROPERTY_STAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1908,7 +1952,8 @@ public void setStar(StarInfo star) { /** * The unique identifier of the store for which to configure the payment method, if any. * - * @param storeIds The unique identifier of the store for which to configure the payment method, if any. + * @param storeIds The unique identifier of the store for which to configure the payment method, + * if any. * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo storeIds(List storeIds) { @@ -1926,7 +1971,9 @@ public PaymentMethodSetupInfo addStoreIdsItem(String storeIdsItem) { /** * The unique identifier of the store for which to configure the payment method, if any. - * @return storeIds The unique identifier of the store for which to configure the payment method, if any. + * + * @return storeIds The unique identifier of the store for which to configure the payment method, + * if any. */ @JsonProperty(JSON_PROPERTY_STORE_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1937,7 +1984,8 @@ public List getStoreIds() { /** * The unique identifier of the store for which to configure the payment method, if any. * - * @param storeIds The unique identifier of the store for which to configure the payment method, if any. + * @param storeIds The unique identifier of the store for which to configure the payment method, + * if any. */ @JsonProperty(JSON_PROPERTY_STORE_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1948,7 +1996,7 @@ public void setStoreIds(List storeIds) { /** * swish * - * @param swish + * @param swish * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo swish(SwishInfo swish) { @@ -1958,7 +2006,8 @@ public PaymentMethodSetupInfo swish(SwishInfo swish) { /** * Get swish - * @return swish + * + * @return swish */ @JsonProperty(JSON_PROPERTY_SWISH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1969,7 +2018,7 @@ public SwishInfo getSwish() { /** * swish * - * @param swish + * @param swish */ @JsonProperty(JSON_PROPERTY_SWISH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1980,7 +2029,7 @@ public void setSwish(SwishInfo swish) { /** * ticket * - * @param ticket + * @param ticket * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo ticket(TicketInfo ticket) { @@ -1990,7 +2039,8 @@ public PaymentMethodSetupInfo ticket(TicketInfo ticket) { /** * Get ticket - * @return ticket + * + * @return ticket */ @JsonProperty(JSON_PROPERTY_TICKET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2001,7 +2051,7 @@ public TicketInfo getTicket() { /** * ticket * - * @param ticket + * @param ticket */ @JsonProperty(JSON_PROPERTY_TICKET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2012,7 +2062,7 @@ public void setTicket(TicketInfo ticket) { /** * twint * - * @param twint + * @param twint * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo twint(TwintInfo twint) { @@ -2022,7 +2072,8 @@ public PaymentMethodSetupInfo twint(TwintInfo twint) { /** * Get twint - * @return twint + * + * @return twint */ @JsonProperty(JSON_PROPERTY_TWINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2033,7 +2084,7 @@ public TwintInfo getTwint() { /** * twint * - * @param twint + * @param twint */ @JsonProperty(JSON_PROPERTY_TWINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2042,9 +2093,11 @@ public void setTwint(TwintInfo twint) { } /** - * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * Payment method + * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). * - * @param type Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * @param type Payment method + * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo type(TypeEnum type) { @@ -2053,8 +2106,11 @@ public PaymentMethodSetupInfo type(TypeEnum type) { } /** - * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). - * @return type Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * Payment method + * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * + * @return type Payment method + * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2063,9 +2119,11 @@ public TypeEnum getType() { } /** - * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * Payment method + * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). * - * @param type Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * @param type Payment method + * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2076,7 +2134,7 @@ public void setType(TypeEnum type) { /** * vipps * - * @param vipps + * @param vipps * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo vipps(VippsInfo vipps) { @@ -2086,7 +2144,8 @@ public PaymentMethodSetupInfo vipps(VippsInfo vipps) { /** * Get vipps - * @return vipps + * + * @return vipps */ @JsonProperty(JSON_PROPERTY_VIPPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2097,7 +2156,7 @@ public VippsInfo getVipps() { /** * vipps * - * @param vipps + * @param vipps */ @JsonProperty(JSON_PROPERTY_VIPPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2108,7 +2167,7 @@ public void setVipps(VippsInfo vipps) { /** * visa * - * @param visa + * @param visa * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo visa(GenericPmWithTdiInfo visa) { @@ -2118,7 +2177,8 @@ public PaymentMethodSetupInfo visa(GenericPmWithTdiInfo visa) { /** * Get visa - * @return visa + * + * @return visa */ @JsonProperty(JSON_PROPERTY_VISA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2129,7 +2189,7 @@ public GenericPmWithTdiInfo getVisa() { /** * visa * - * @param visa + * @param visa */ @JsonProperty(JSON_PROPERTY_VISA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2140,7 +2200,7 @@ public void setVisa(GenericPmWithTdiInfo visa) { /** * wechatpay * - * @param wechatpay + * @param wechatpay * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo wechatpay(WeChatPayInfo wechatpay) { @@ -2150,7 +2210,8 @@ public PaymentMethodSetupInfo wechatpay(WeChatPayInfo wechatpay) { /** * Get wechatpay - * @return wechatpay + * + * @return wechatpay */ @JsonProperty(JSON_PROPERTY_WECHATPAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2161,7 +2222,7 @@ public WeChatPayInfo getWechatpay() { /** * wechatpay * - * @param wechatpay + * @param wechatpay */ @JsonProperty(JSON_PROPERTY_WECHATPAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2172,7 +2233,7 @@ public void setWechatpay(WeChatPayInfo wechatpay) { /** * wechatpayPos * - * @param wechatpayPos + * @param wechatpayPos * @return the current {@code PaymentMethodSetupInfo} instance, allowing for method chaining */ public PaymentMethodSetupInfo wechatpayPos(WeChatPayPosInfo wechatpayPos) { @@ -2182,7 +2243,8 @@ public PaymentMethodSetupInfo wechatpayPos(WeChatPayPosInfo wechatpayPos) { /** * Get wechatpayPos - * @return wechatpayPos + * + * @return wechatpayPos */ @JsonProperty(JSON_PROPERTY_WECHATPAY_POS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2193,7 +2255,7 @@ public WeChatPayPosInfo getWechatpayPos() { /** * wechatpayPos * - * @param wechatpayPos + * @param wechatpayPos */ @JsonProperty(JSON_PROPERTY_WECHATPAY_POS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2201,9 +2263,7 @@ public void setWechatpayPos(WeChatPayPosInfo wechatpayPos) { this.wechatpayPos = wechatpayPos; } - /** - * Return true if this PaymentMethodSetupInfo object is equal to o. - */ + /** Return true if this PaymentMethodSetupInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -2213,60 +2273,109 @@ public boolean equals(Object o) { return false; } PaymentMethodSetupInfo paymentMethodSetupInfo = (PaymentMethodSetupInfo) o; - return Objects.equals(this.accel, paymentMethodSetupInfo.accel) && - Objects.equals(this.affirm, paymentMethodSetupInfo.affirm) && - Objects.equals(this.afterpayTouch, paymentMethodSetupInfo.afterpayTouch) && - Objects.equals(this.alipayPlus, paymentMethodSetupInfo.alipayPlus) && - Objects.equals(this.amex, paymentMethodSetupInfo.amex) && - Objects.equals(this.applePay, paymentMethodSetupInfo.applePay) && - Objects.equals(this.bcmc, paymentMethodSetupInfo.bcmc) && - Objects.equals(this.businessLineId, paymentMethodSetupInfo.businessLineId) && - Objects.equals(this.cartesBancaires, paymentMethodSetupInfo.cartesBancaires) && - Objects.equals(this.clearpay, paymentMethodSetupInfo.clearpay) && - Objects.equals(this.countries, paymentMethodSetupInfo.countries) && - Objects.equals(this.cup, paymentMethodSetupInfo.cup) && - Objects.equals(this.currencies, paymentMethodSetupInfo.currencies) && - Objects.equals(this.customRoutingFlags, paymentMethodSetupInfo.customRoutingFlags) && - Objects.equals(this.diners, paymentMethodSetupInfo.diners) && - Objects.equals(this.discover, paymentMethodSetupInfo.discover) && - Objects.equals(this.eftDirectdebitCA, paymentMethodSetupInfo.eftDirectdebitCA) && - Objects.equals(this.eftposAustralia, paymentMethodSetupInfo.eftposAustralia) && - Objects.equals(this.girocard, paymentMethodSetupInfo.girocard) && - Objects.equals(this.googlePay, paymentMethodSetupInfo.googlePay) && - Objects.equals(this.ideal, paymentMethodSetupInfo.ideal) && - Objects.equals(this.interacCard, paymentMethodSetupInfo.interacCard) && - Objects.equals(this.jcb, paymentMethodSetupInfo.jcb) && - Objects.equals(this.klarna, paymentMethodSetupInfo.klarna) && - Objects.equals(this.maestro, paymentMethodSetupInfo.maestro) && - Objects.equals(this.maestroUsa, paymentMethodSetupInfo.maestroUsa) && - Objects.equals(this.mc, paymentMethodSetupInfo.mc) && - Objects.equals(this.mealVoucherFR, paymentMethodSetupInfo.mealVoucherFR) && - Objects.equals(this.nyce, paymentMethodSetupInfo.nyce) && - Objects.equals(this.paybybankPlaid, paymentMethodSetupInfo.paybybankPlaid) && - Objects.equals(this.payme, paymentMethodSetupInfo.payme) && - Objects.equals(this.paypal, paymentMethodSetupInfo.paypal) && - Objects.equals(this.payto, paymentMethodSetupInfo.payto) && - Objects.equals(this.pulse, paymentMethodSetupInfo.pulse) && - Objects.equals(this.reference, paymentMethodSetupInfo.reference) && - Objects.equals(this.sepadirectdebit, paymentMethodSetupInfo.sepadirectdebit) && - Objects.equals(this.shopperInteraction, paymentMethodSetupInfo.shopperInteraction) && - Objects.equals(this.sodexo, paymentMethodSetupInfo.sodexo) && - Objects.equals(this.sofort, paymentMethodSetupInfo.sofort) && - Objects.equals(this.star, paymentMethodSetupInfo.star) && - Objects.equals(this.storeIds, paymentMethodSetupInfo.storeIds) && - Objects.equals(this.swish, paymentMethodSetupInfo.swish) && - Objects.equals(this.ticket, paymentMethodSetupInfo.ticket) && - Objects.equals(this.twint, paymentMethodSetupInfo.twint) && - Objects.equals(this.type, paymentMethodSetupInfo.type) && - Objects.equals(this.vipps, paymentMethodSetupInfo.vipps) && - Objects.equals(this.visa, paymentMethodSetupInfo.visa) && - Objects.equals(this.wechatpay, paymentMethodSetupInfo.wechatpay) && - Objects.equals(this.wechatpayPos, paymentMethodSetupInfo.wechatpayPos); + return Objects.equals(this.accel, paymentMethodSetupInfo.accel) + && Objects.equals(this.affirm, paymentMethodSetupInfo.affirm) + && Objects.equals(this.afterpayTouch, paymentMethodSetupInfo.afterpayTouch) + && Objects.equals(this.alipayPlus, paymentMethodSetupInfo.alipayPlus) + && Objects.equals(this.amex, paymentMethodSetupInfo.amex) + && Objects.equals(this.applePay, paymentMethodSetupInfo.applePay) + && Objects.equals(this.bcmc, paymentMethodSetupInfo.bcmc) + && Objects.equals(this.businessLineId, paymentMethodSetupInfo.businessLineId) + && Objects.equals(this.cartesBancaires, paymentMethodSetupInfo.cartesBancaires) + && Objects.equals(this.clearpay, paymentMethodSetupInfo.clearpay) + && Objects.equals(this.countries, paymentMethodSetupInfo.countries) + && Objects.equals(this.cup, paymentMethodSetupInfo.cup) + && Objects.equals(this.currencies, paymentMethodSetupInfo.currencies) + && Objects.equals(this.customRoutingFlags, paymentMethodSetupInfo.customRoutingFlags) + && Objects.equals(this.diners, paymentMethodSetupInfo.diners) + && Objects.equals(this.discover, paymentMethodSetupInfo.discover) + && Objects.equals(this.eftDirectdebitCA, paymentMethodSetupInfo.eftDirectdebitCA) + && Objects.equals(this.eftposAustralia, paymentMethodSetupInfo.eftposAustralia) + && Objects.equals(this.girocard, paymentMethodSetupInfo.girocard) + && Objects.equals(this.googlePay, paymentMethodSetupInfo.googlePay) + && Objects.equals(this.ideal, paymentMethodSetupInfo.ideal) + && Objects.equals(this.interacCard, paymentMethodSetupInfo.interacCard) + && Objects.equals(this.jcb, paymentMethodSetupInfo.jcb) + && Objects.equals(this.klarna, paymentMethodSetupInfo.klarna) + && Objects.equals(this.maestro, paymentMethodSetupInfo.maestro) + && Objects.equals(this.maestroUsa, paymentMethodSetupInfo.maestroUsa) + && Objects.equals(this.mc, paymentMethodSetupInfo.mc) + && Objects.equals(this.mealVoucherFR, paymentMethodSetupInfo.mealVoucherFR) + && Objects.equals(this.nyce, paymentMethodSetupInfo.nyce) + && Objects.equals(this.paybybankPlaid, paymentMethodSetupInfo.paybybankPlaid) + && Objects.equals(this.payme, paymentMethodSetupInfo.payme) + && Objects.equals(this.paypal, paymentMethodSetupInfo.paypal) + && Objects.equals(this.payto, paymentMethodSetupInfo.payto) + && Objects.equals(this.pulse, paymentMethodSetupInfo.pulse) + && Objects.equals(this.reference, paymentMethodSetupInfo.reference) + && Objects.equals(this.sepadirectdebit, paymentMethodSetupInfo.sepadirectdebit) + && Objects.equals(this.shopperInteraction, paymentMethodSetupInfo.shopperInteraction) + && Objects.equals(this.sodexo, paymentMethodSetupInfo.sodexo) + && Objects.equals(this.sofort, paymentMethodSetupInfo.sofort) + && Objects.equals(this.star, paymentMethodSetupInfo.star) + && Objects.equals(this.storeIds, paymentMethodSetupInfo.storeIds) + && Objects.equals(this.swish, paymentMethodSetupInfo.swish) + && Objects.equals(this.ticket, paymentMethodSetupInfo.ticket) + && Objects.equals(this.twint, paymentMethodSetupInfo.twint) + && Objects.equals(this.type, paymentMethodSetupInfo.type) + && Objects.equals(this.vipps, paymentMethodSetupInfo.vipps) + && Objects.equals(this.visa, paymentMethodSetupInfo.visa) + && Objects.equals(this.wechatpay, paymentMethodSetupInfo.wechatpay) + && Objects.equals(this.wechatpayPos, paymentMethodSetupInfo.wechatpayPos); } @Override public int hashCode() { - return Objects.hash(accel, affirm, afterpayTouch, alipayPlus, amex, applePay, bcmc, businessLineId, cartesBancaires, clearpay, countries, cup, currencies, customRoutingFlags, diners, discover, eftDirectdebitCA, eftposAustralia, girocard, googlePay, ideal, interacCard, jcb, klarna, maestro, maestroUsa, mc, mealVoucherFR, nyce, paybybankPlaid, payme, paypal, payto, pulse, reference, sepadirectdebit, shopperInteraction, sodexo, sofort, star, storeIds, swish, ticket, twint, type, vipps, visa, wechatpay, wechatpayPos); + return Objects.hash( + accel, + affirm, + afterpayTouch, + alipayPlus, + amex, + applePay, + bcmc, + businessLineId, + cartesBancaires, + clearpay, + countries, + cup, + currencies, + customRoutingFlags, + diners, + discover, + eftDirectdebitCA, + eftposAustralia, + girocard, + googlePay, + ideal, + interacCard, + jcb, + klarna, + maestro, + maestroUsa, + mc, + mealVoucherFR, + nyce, + paybybankPlaid, + payme, + paypal, + payto, + pulse, + reference, + sepadirectdebit, + shopperInteraction, + sodexo, + sofort, + star, + storeIds, + swish, + ticket, + twint, + type, + vipps, + visa, + wechatpay, + wechatpayPos); } @Override @@ -2327,8 +2436,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -2337,21 +2445,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentMethodSetupInfo given an JSON string * * @param jsonString JSON string * @return An instance of PaymentMethodSetupInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethodSetupInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentMethodSetupInfo */ public static PaymentMethodSetupInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentMethodSetupInfo.class); } -/** - * Convert an instance of PaymentMethodSetupInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentMethodSetupInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/PayoutSettings.java b/src/main/java/com/adyen/model/management/PayoutSettings.java index 75058fa5a..77ef9b840 100644 --- a/src/main/java/com/adyen/model/management/PayoutSettings.java +++ b/src/main/java/com/adyen/model/management/PayoutSettings.java @@ -2,31 +2,26 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * PayoutSettings - */ +/** PayoutSettings */ @JsonPropertyOrder({ PayoutSettings.JSON_PROPERTY_ALLOWED, PayoutSettings.JSON_PROPERTY_ENABLED, @@ -36,7 +31,6 @@ PayoutSettings.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID, PayoutSettings.JSON_PROPERTY_VERIFICATION_STATUS }) - public class PayoutSettings { public static final String JSON_PROPERTY_ALLOWED = "allowed"; private Boolean allowed; @@ -51,10 +45,13 @@ public class PayoutSettings { private String id; /** - * Determines how long it takes for the funds to reach the bank account. Adyen pays out based on the [payout frequency](https://docs.adyen.com/account/getting-paid#payout-frequency). Depending on the currencies and banks involved in transferring the money, it may take up to three days for the payout funds to arrive in the bank account. Possible values: * **first**: same day. * **urgent**: the next day. * **normal**: between 1 and 3 days. + * Determines how long it takes for the funds to reach the bank account. Adyen pays out based on + * the [payout frequency](https://docs.adyen.com/account/getting-paid#payout-frequency). Depending + * on the currencies and banks involved in transferring the money, it may take up to three days + * for the payout funds to arrive in the bank account. Possible values: * **first**: same day. * + * **urgent**: the next day. * **normal**: between 1 and 3 days. */ public enum PriorityEnum { - FIRST(String.valueOf("first")), NORMAL(String.valueOf("normal")), @@ -66,7 +63,7 @@ public enum PriorityEnum { private String value; PriorityEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -87,7 +84,11 @@ public static PriorityEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PriorityEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PriorityEnum.values())); + LOG.warning( + "PriorityEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PriorityEnum.values())); return null; } } @@ -99,10 +100,12 @@ public static PriorityEnum fromValue(String value) { private String transferInstrumentId; /** - * The status of the verification process for the bank account. Possible values: * **valid**: the verification was successful. * **pending**: the verification is in progress. * **invalid**: the information provided is not complete. * **rejected**: there are reasons to refuse working with this entity. + * The status of the verification process for the bank account. Possible values: * **valid**: the + * verification was successful. * **pending**: the verification is in progress. * **invalid**: the + * information provided is not complete. * **rejected**: there are reasons to refuse working with + * this entity. */ public enum VerificationStatusEnum { - INVALID(String.valueOf("invalid")), PENDING(String.valueOf("pending")), @@ -116,7 +119,7 @@ public enum VerificationStatusEnum { private String value; VerificationStatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -137,7 +140,11 @@ public static VerificationStatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("VerificationStatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(VerificationStatusEnum.values())); + LOG.warning( + "VerificationStatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(VerificationStatusEnum.values())); return null; } } @@ -145,13 +152,16 @@ public static VerificationStatusEnum fromValue(String value) { public static final String JSON_PROPERTY_VERIFICATION_STATUS = "verificationStatus"; private VerificationStatusEnum verificationStatus; - public PayoutSettings() { - } + public PayoutSettings() {} /** - * Indicates if payouts to the bank account are allowed. This value is set automatically based on the status of the verification process. The value is: * **true** if `verificationStatus` is **valid**. * **false** for all other values. + * Indicates if payouts to the bank account are allowed. This value is set automatically based on + * the status of the verification process. The value is: * **true** if + * `verificationStatus` is **valid**. * **false** for all other values. * - * @param allowed Indicates if payouts to the bank account are allowed. This value is set automatically based on the status of the verification process. The value is: * **true** if `verificationStatus` is **valid**. * **false** for all other values. + * @param allowed Indicates if payouts to the bank account are allowed. This value is set + * automatically based on the status of the verification process. The value is: * **true** if + * `verificationStatus` is **valid**. * **false** for all other values. * @return the current {@code PayoutSettings} instance, allowing for method chaining */ public PayoutSettings allowed(Boolean allowed) { @@ -160,8 +170,13 @@ public PayoutSettings allowed(Boolean allowed) { } /** - * Indicates if payouts to the bank account are allowed. This value is set automatically based on the status of the verification process. The value is: * **true** if `verificationStatus` is **valid**. * **false** for all other values. - * @return allowed Indicates if payouts to the bank account are allowed. This value is set automatically based on the status of the verification process. The value is: * **true** if `verificationStatus` is **valid**. * **false** for all other values. + * Indicates if payouts to the bank account are allowed. This value is set automatically based on + * the status of the verification process. The value is: * **true** if + * `verificationStatus` is **valid**. * **false** for all other values. + * + * @return allowed Indicates if payouts to the bank account are allowed. This value is set + * automatically based on the status of the verification process. The value is: * **true** if + * `verificationStatus` is **valid**. * **false** for all other values. */ @JsonProperty(JSON_PROPERTY_ALLOWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -170,9 +185,13 @@ public Boolean getAllowed() { } /** - * Indicates if payouts to the bank account are allowed. This value is set automatically based on the status of the verification process. The value is: * **true** if `verificationStatus` is **valid**. * **false** for all other values. + * Indicates if payouts to the bank account are allowed. This value is set automatically based on + * the status of the verification process. The value is: * **true** if + * `verificationStatus` is **valid**. * **false** for all other values. * - * @param allowed Indicates if payouts to the bank account are allowed. This value is set automatically based on the status of the verification process. The value is: * **true** if `verificationStatus` is **valid**. * **false** for all other values. + * @param allowed Indicates if payouts to the bank account are allowed. This value is set + * automatically based on the status of the verification process. The value is: * **true** if + * `verificationStatus` is **valid**. * **false** for all other values. */ @JsonProperty(JSON_PROPERTY_ALLOWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,9 +200,12 @@ public void setAllowed(Boolean allowed) { } /** - * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. + * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts + * into this bank account, both `enabled` and `allowed` must be **true**. * - * @param enabled Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. + * @param enabled Indicates if payouts to this bank account are enabled. Default: **true**. To + * receive payouts into this bank account, both `enabled` and `allowed` + * must be **true**. * @return the current {@code PayoutSettings} instance, allowing for method chaining */ public PayoutSettings enabled(Boolean enabled) { @@ -192,8 +214,12 @@ public PayoutSettings enabled(Boolean enabled) { } /** - * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. - * @return enabled Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. + * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts + * into this bank account, both `enabled` and `allowed` must be **true**. + * + * @return enabled Indicates if payouts to this bank account are enabled. Default: **true**. To + * receive payouts into this bank account, both `enabled` and `allowed` + * must be **true**. */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -202,9 +228,12 @@ public Boolean getEnabled() { } /** - * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. + * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts + * into this bank account, both `enabled` and `allowed` must be **true**. * - * @param enabled Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. + * @param enabled Indicates if payouts to this bank account are enabled. Default: **true**. To + * receive payouts into this bank account, both `enabled` and `allowed` + * must be **true**. */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -213,9 +242,22 @@ public void setEnabled(Boolean enabled) { } /** - * The date when Adyen starts paying out to this bank account. Format: [ISO 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if payouts are enabled for this bank account. If a date is specified and: * `enabled`: **true**, payouts are enabled starting the specified date. * `enabled`: **false**, payouts are disabled until the specified date. On the specified date, `enabled` changes to **true** and this field is reset to **null**. + * The date when Adyen starts paying out to this bank account. Format: [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or + * **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if + * payouts are enabled for this bank account. If a date is specified and: * `enabled`: + * **true**, payouts are enabled starting the specified date. * `enabled`: **false**, + * payouts are disabled until the specified date. On the specified date, `enabled` + * changes to **true** and this field is reset to **null**. * - * @param enabledFromDate The date when Adyen starts paying out to this bank account. Format: [ISO 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if payouts are enabled for this bank account. If a date is specified and: * `enabled`: **true**, payouts are enabled starting the specified date. * `enabled`: **false**, payouts are disabled until the specified date. On the specified date, `enabled` changes to **true** and this field is reset to **null**. + * @param enabledFromDate The date when Adyen starts paying out to this bank account. Format: [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or + * **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if + * payouts are enabled for this bank account. If a date is specified and: * + * `enabled`: **true**, payouts are enabled starting the specified date. * + * `enabled`: **false**, payouts are disabled until the specified date. On the + * specified date, `enabled` changes to **true** and this field is reset to + * **null**. * @return the current {@code PayoutSettings} instance, allowing for method chaining */ public PayoutSettings enabledFromDate(String enabledFromDate) { @@ -224,8 +266,22 @@ public PayoutSettings enabledFromDate(String enabledFromDate) { } /** - * The date when Adyen starts paying out to this bank account. Format: [ISO 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if payouts are enabled for this bank account. If a date is specified and: * `enabled`: **true**, payouts are enabled starting the specified date. * `enabled`: **false**, payouts are disabled until the specified date. On the specified date, `enabled` changes to **true** and this field is reset to **null**. - * @return enabledFromDate The date when Adyen starts paying out to this bank account. Format: [ISO 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if payouts are enabled for this bank account. If a date is specified and: * `enabled`: **true**, payouts are enabled starting the specified date. * `enabled`: **false**, payouts are disabled until the specified date. On the specified date, `enabled` changes to **true** and this field is reset to **null**. + * The date when Adyen starts paying out to this bank account. Format: [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or + * **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if + * payouts are enabled for this bank account. If a date is specified and: * `enabled`: + * **true**, payouts are enabled starting the specified date. * `enabled`: **false**, + * payouts are disabled until the specified date. On the specified date, `enabled` + * changes to **true** and this field is reset to **null**. + * + * @return enabledFromDate The date when Adyen starts paying out to this bank account. Format: + * [ISO 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or + * **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if + * payouts are enabled for this bank account. If a date is specified and: * + * `enabled`: **true**, payouts are enabled starting the specified date. * + * `enabled`: **false**, payouts are disabled until the specified date. On the + * specified date, `enabled` changes to **true** and this field is reset to + * **null**. */ @JsonProperty(JSON_PROPERTY_ENABLED_FROM_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -234,9 +290,22 @@ public String getEnabledFromDate() { } /** - * The date when Adyen starts paying out to this bank account. Format: [ISO 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if payouts are enabled for this bank account. If a date is specified and: * `enabled`: **true**, payouts are enabled starting the specified date. * `enabled`: **false**, payouts are disabled until the specified date. On the specified date, `enabled` changes to **true** and this field is reset to **null**. + * The date when Adyen starts paying out to this bank account. Format: [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or + * **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if + * payouts are enabled for this bank account. If a date is specified and: * `enabled`: + * **true**, payouts are enabled starting the specified date. * `enabled`: **false**, + * payouts are disabled until the specified date. On the specified date, `enabled` + * changes to **true** and this field is reset to **null**. * - * @param enabledFromDate The date when Adyen starts paying out to this bank account. Format: [ISO 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if payouts are enabled for this bank account. If a date is specified and: * `enabled`: **true**, payouts are enabled starting the specified date. * `enabled`: **false**, payouts are disabled until the specified date. On the specified date, `enabled` changes to **true** and this field is reset to **null**. + * @param enabledFromDate The date when Adyen starts paying out to this bank account. Format: [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or + * **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if + * payouts are enabled for this bank account. If a date is specified and: * + * `enabled`: **true**, payouts are enabled starting the specified date. * + * `enabled`: **false**, payouts are disabled until the specified date. On the + * specified date, `enabled` changes to **true** and this field is reset to + * **null**. */ @JsonProperty(JSON_PROPERTY_ENABLED_FROM_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -257,6 +326,7 @@ public PayoutSettings id(String id) { /** * The unique identifier of the payout setting. + * * @return id The unique identifier of the payout setting. */ @JsonProperty(JSON_PROPERTY_ID) @@ -277,9 +347,18 @@ public void setId(String id) { } /** - * Determines how long it takes for the funds to reach the bank account. Adyen pays out based on the [payout frequency](https://docs.adyen.com/account/getting-paid#payout-frequency). Depending on the currencies and banks involved in transferring the money, it may take up to three days for the payout funds to arrive in the bank account. Possible values: * **first**: same day. * **urgent**: the next day. * **normal**: between 1 and 3 days. + * Determines how long it takes for the funds to reach the bank account. Adyen pays out based on + * the [payout frequency](https://docs.adyen.com/account/getting-paid#payout-frequency). Depending + * on the currencies and banks involved in transferring the money, it may take up to three days + * for the payout funds to arrive in the bank account. Possible values: * **first**: same day. * + * **urgent**: the next day. * **normal**: between 1 and 3 days. * - * @param priority Determines how long it takes for the funds to reach the bank account. Adyen pays out based on the [payout frequency](https://docs.adyen.com/account/getting-paid#payout-frequency). Depending on the currencies and banks involved in transferring the money, it may take up to three days for the payout funds to arrive in the bank account. Possible values: * **first**: same day. * **urgent**: the next day. * **normal**: between 1 and 3 days. + * @param priority Determines how long it takes for the funds to reach the bank account. Adyen + * pays out based on the [payout + * frequency](https://docs.adyen.com/account/getting-paid#payout-frequency). Depending on the + * currencies and banks involved in transferring the money, it may take up to three days for + * the payout funds to arrive in the bank account. Possible values: * **first**: same day. * + * **urgent**: the next day. * **normal**: between 1 and 3 days. * @return the current {@code PayoutSettings} instance, allowing for method chaining */ public PayoutSettings priority(PriorityEnum priority) { @@ -288,8 +367,18 @@ public PayoutSettings priority(PriorityEnum priority) { } /** - * Determines how long it takes for the funds to reach the bank account. Adyen pays out based on the [payout frequency](https://docs.adyen.com/account/getting-paid#payout-frequency). Depending on the currencies and banks involved in transferring the money, it may take up to three days for the payout funds to arrive in the bank account. Possible values: * **first**: same day. * **urgent**: the next day. * **normal**: between 1 and 3 days. - * @return priority Determines how long it takes for the funds to reach the bank account. Adyen pays out based on the [payout frequency](https://docs.adyen.com/account/getting-paid#payout-frequency). Depending on the currencies and banks involved in transferring the money, it may take up to three days for the payout funds to arrive in the bank account. Possible values: * **first**: same day. * **urgent**: the next day. * **normal**: between 1 and 3 days. + * Determines how long it takes for the funds to reach the bank account. Adyen pays out based on + * the [payout frequency](https://docs.adyen.com/account/getting-paid#payout-frequency). Depending + * on the currencies and banks involved in transferring the money, it may take up to three days + * for the payout funds to arrive in the bank account. Possible values: * **first**: same day. * + * **urgent**: the next day. * **normal**: between 1 and 3 days. + * + * @return priority Determines how long it takes for the funds to reach the bank account. Adyen + * pays out based on the [payout + * frequency](https://docs.adyen.com/account/getting-paid#payout-frequency). Depending on the + * currencies and banks involved in transferring the money, it may take up to three days for + * the payout funds to arrive in the bank account. Possible values: * **first**: same day. * + * **urgent**: the next day. * **normal**: between 1 and 3 days. */ @JsonProperty(JSON_PROPERTY_PRIORITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -298,9 +387,18 @@ public PriorityEnum getPriority() { } /** - * Determines how long it takes for the funds to reach the bank account. Adyen pays out based on the [payout frequency](https://docs.adyen.com/account/getting-paid#payout-frequency). Depending on the currencies and banks involved in transferring the money, it may take up to three days for the payout funds to arrive in the bank account. Possible values: * **first**: same day. * **urgent**: the next day. * **normal**: between 1 and 3 days. + * Determines how long it takes for the funds to reach the bank account. Adyen pays out based on + * the [payout frequency](https://docs.adyen.com/account/getting-paid#payout-frequency). Depending + * on the currencies and banks involved in transferring the money, it may take up to three days + * for the payout funds to arrive in the bank account. Possible values: * **first**: same day. * + * **urgent**: the next day. * **normal**: between 1 and 3 days. * - * @param priority Determines how long it takes for the funds to reach the bank account. Adyen pays out based on the [payout frequency](https://docs.adyen.com/account/getting-paid#payout-frequency). Depending on the currencies and banks involved in transferring the money, it may take up to three days for the payout funds to arrive in the bank account. Possible values: * **first**: same day. * **urgent**: the next day. * **normal**: between 1 and 3 days. + * @param priority Determines how long it takes for the funds to reach the bank account. Adyen + * pays out based on the [payout + * frequency](https://docs.adyen.com/account/getting-paid#payout-frequency). Depending on the + * currencies and banks involved in transferring the money, it may take up to three days for + * the payout funds to arrive in the bank account. Possible values: * **first**: same day. * + * **urgent**: the next day. * **normal**: between 1 and 3 days. */ @JsonProperty(JSON_PROPERTY_PRIORITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -309,9 +407,13 @@ public void setPriority(PriorityEnum priority) { } /** - * The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) that contains the details of the bank account. + * The unique identifier of the [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) + * that contains the details of the bank account. * - * @param transferInstrumentId The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) that contains the details of the bank account. + * @param transferInstrumentId The unique identifier of the [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) + * that contains the details of the bank account. * @return the current {@code PayoutSettings} instance, allowing for method chaining */ public PayoutSettings transferInstrumentId(String transferInstrumentId) { @@ -320,8 +422,13 @@ public PayoutSettings transferInstrumentId(String transferInstrumentId) { } /** - * The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) that contains the details of the bank account. - * @return transferInstrumentId The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) that contains the details of the bank account. + * The unique identifier of the [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) + * that contains the details of the bank account. + * + * @return transferInstrumentId The unique identifier of the [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) + * that contains the details of the bank account. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -330,9 +437,13 @@ public String getTransferInstrumentId() { } /** - * The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) that contains the details of the bank account. + * The unique identifier of the [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) + * that contains the details of the bank account. * - * @param transferInstrumentId The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) that contains the details of the bank account. + * @param transferInstrumentId The unique identifier of the [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) + * that contains the details of the bank account. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -341,9 +452,15 @@ public void setTransferInstrumentId(String transferInstrumentId) { } /** - * The status of the verification process for the bank account. Possible values: * **valid**: the verification was successful. * **pending**: the verification is in progress. * **invalid**: the information provided is not complete. * **rejected**: there are reasons to refuse working with this entity. + * The status of the verification process for the bank account. Possible values: * **valid**: the + * verification was successful. * **pending**: the verification is in progress. * **invalid**: the + * information provided is not complete. * **rejected**: there are reasons to refuse working with + * this entity. * - * @param verificationStatus The status of the verification process for the bank account. Possible values: * **valid**: the verification was successful. * **pending**: the verification is in progress. * **invalid**: the information provided is not complete. * **rejected**: there are reasons to refuse working with this entity. + * @param verificationStatus The status of the verification process for the bank account. Possible + * values: * **valid**: the verification was successful. * **pending**: the verification is in + * progress. * **invalid**: the information provided is not complete. * **rejected**: there + * are reasons to refuse working with this entity. * @return the current {@code PayoutSettings} instance, allowing for method chaining */ public PayoutSettings verificationStatus(VerificationStatusEnum verificationStatus) { @@ -352,8 +469,15 @@ public PayoutSettings verificationStatus(VerificationStatusEnum verificationStat } /** - * The status of the verification process for the bank account. Possible values: * **valid**: the verification was successful. * **pending**: the verification is in progress. * **invalid**: the information provided is not complete. * **rejected**: there are reasons to refuse working with this entity. - * @return verificationStatus The status of the verification process for the bank account. Possible values: * **valid**: the verification was successful. * **pending**: the verification is in progress. * **invalid**: the information provided is not complete. * **rejected**: there are reasons to refuse working with this entity. + * The status of the verification process for the bank account. Possible values: * **valid**: the + * verification was successful. * **pending**: the verification is in progress. * **invalid**: the + * information provided is not complete. * **rejected**: there are reasons to refuse working with + * this entity. + * + * @return verificationStatus The status of the verification process for the bank account. + * Possible values: * **valid**: the verification was successful. * **pending**: the + * verification is in progress. * **invalid**: the information provided is not complete. * + * **rejected**: there are reasons to refuse working with this entity. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -362,9 +486,15 @@ public VerificationStatusEnum getVerificationStatus() { } /** - * The status of the verification process for the bank account. Possible values: * **valid**: the verification was successful. * **pending**: the verification is in progress. * **invalid**: the information provided is not complete. * **rejected**: there are reasons to refuse working with this entity. + * The status of the verification process for the bank account. Possible values: * **valid**: the + * verification was successful. * **pending**: the verification is in progress. * **invalid**: the + * information provided is not complete. * **rejected**: there are reasons to refuse working with + * this entity. * - * @param verificationStatus The status of the verification process for the bank account. Possible values: * **valid**: the verification was successful. * **pending**: the verification is in progress. * **invalid**: the information provided is not complete. * **rejected**: there are reasons to refuse working with this entity. + * @param verificationStatus The status of the verification process for the bank account. Possible + * values: * **valid**: the verification was successful. * **pending**: the verification is in + * progress. * **invalid**: the information provided is not complete. * **rejected**: there + * are reasons to refuse working with this entity. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -372,9 +502,7 @@ public void setVerificationStatus(VerificationStatusEnum verificationStatus) { this.verificationStatus = verificationStatus; } - /** - * Return true if this PayoutSettings object is equal to o. - */ + /** Return true if this PayoutSettings object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -384,18 +512,19 @@ public boolean equals(Object o) { return false; } PayoutSettings payoutSettings = (PayoutSettings) o; - return Objects.equals(this.allowed, payoutSettings.allowed) && - Objects.equals(this.enabled, payoutSettings.enabled) && - Objects.equals(this.enabledFromDate, payoutSettings.enabledFromDate) && - Objects.equals(this.id, payoutSettings.id) && - Objects.equals(this.priority, payoutSettings.priority) && - Objects.equals(this.transferInstrumentId, payoutSettings.transferInstrumentId) && - Objects.equals(this.verificationStatus, payoutSettings.verificationStatus); + return Objects.equals(this.allowed, payoutSettings.allowed) + && Objects.equals(this.enabled, payoutSettings.enabled) + && Objects.equals(this.enabledFromDate, payoutSettings.enabledFromDate) + && Objects.equals(this.id, payoutSettings.id) + && Objects.equals(this.priority, payoutSettings.priority) + && Objects.equals(this.transferInstrumentId, payoutSettings.transferInstrumentId) + && Objects.equals(this.verificationStatus, payoutSettings.verificationStatus); } @Override public int hashCode() { - return Objects.hash(allowed, enabled, enabledFromDate, id, priority, transferInstrumentId, verificationStatus); + return Objects.hash( + allowed, enabled, enabledFromDate, id, priority, transferInstrumentId, verificationStatus); } @Override @@ -407,15 +536,16 @@ public String toString() { sb.append(" enabledFromDate: ").append(toIndentedString(enabledFromDate)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); - sb.append(" transferInstrumentId: ").append(toIndentedString(transferInstrumentId)).append("\n"); + sb.append(" transferInstrumentId: ") + .append(toIndentedString(transferInstrumentId)) + .append("\n"); sb.append(" verificationStatus: ").append(toIndentedString(verificationStatus)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -424,7 +554,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PayoutSettings given an JSON string * * @param jsonString JSON string @@ -434,11 +564,12 @@ private String toIndentedString(Object o) { public static PayoutSettings fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayoutSettings.class); } -/** - * Convert an instance of PayoutSettings to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PayoutSettings to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/PayoutSettingsRequest.java b/src/main/java/com/adyen/model/management/PayoutSettingsRequest.java index fc78fae18..2a2c98116 100644 --- a/src/main/java/com/adyen/model/management/PayoutSettingsRequest.java +++ b/src/main/java/com/adyen/model/management/PayoutSettingsRequest.java @@ -2,37 +2,27 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * PayoutSettingsRequest - */ +/** PayoutSettingsRequest */ @JsonPropertyOrder({ PayoutSettingsRequest.JSON_PROPERTY_ENABLED, PayoutSettingsRequest.JSON_PROPERTY_ENABLED_FROM_DATE, PayoutSettingsRequest.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID }) - public class PayoutSettingsRequest { public static final String JSON_PROPERTY_ENABLED = "enabled"; private Boolean enabled; @@ -43,13 +33,15 @@ public class PayoutSettingsRequest { public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_ID = "transferInstrumentId"; private String transferInstrumentId; - public PayoutSettingsRequest() { - } + public PayoutSettingsRequest() {} /** - * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. + * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts + * into this bank account, both `enabled` and `allowed` must be **true**. * - * @param enabled Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. + * @param enabled Indicates if payouts to this bank account are enabled. Default: **true**. To + * receive payouts into this bank account, both `enabled` and `allowed` + * must be **true**. * @return the current {@code PayoutSettingsRequest} instance, allowing for method chaining */ public PayoutSettingsRequest enabled(Boolean enabled) { @@ -58,8 +50,12 @@ public PayoutSettingsRequest enabled(Boolean enabled) { } /** - * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. - * @return enabled Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. + * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts + * into this bank account, both `enabled` and `allowed` must be **true**. + * + * @return enabled Indicates if payouts to this bank account are enabled. Default: **true**. To + * receive payouts into this bank account, both `enabled` and `allowed` + * must be **true**. */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,9 +64,12 @@ public Boolean getEnabled() { } /** - * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. + * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts + * into this bank account, both `enabled` and `allowed` must be **true**. * - * @param enabled Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. + * @param enabled Indicates if payouts to this bank account are enabled. Default: **true**. To + * receive payouts into this bank account, both `enabled` and `allowed` + * must be **true**. */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,9 +78,22 @@ public void setEnabled(Boolean enabled) { } /** - * The date when Adyen starts paying out to this bank account. Format: [ISO 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if payouts are enabled for this bank account. If a date is specified and: * `enabled`: **true**, payouts are enabled starting the specified date. * `enabled`: **false**, payouts are disabled until the specified date. On the specified date, `enabled` changes to **true** and this field is reset to **null**. + * The date when Adyen starts paying out to this bank account. Format: [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or + * **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if + * payouts are enabled for this bank account. If a date is specified and: * `enabled`: + * **true**, payouts are enabled starting the specified date. * `enabled`: **false**, + * payouts are disabled until the specified date. On the specified date, `enabled` + * changes to **true** and this field is reset to **null**. * - * @param enabledFromDate The date when Adyen starts paying out to this bank account. Format: [ISO 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if payouts are enabled for this bank account. If a date is specified and: * `enabled`: **true**, payouts are enabled starting the specified date. * `enabled`: **false**, payouts are disabled until the specified date. On the specified date, `enabled` changes to **true** and this field is reset to **null**. + * @param enabledFromDate The date when Adyen starts paying out to this bank account. Format: [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or + * **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if + * payouts are enabled for this bank account. If a date is specified and: * + * `enabled`: **true**, payouts are enabled starting the specified date. * + * `enabled`: **false**, payouts are disabled until the specified date. On the + * specified date, `enabled` changes to **true** and this field is reset to + * **null**. * @return the current {@code PayoutSettingsRequest} instance, allowing for method chaining */ public PayoutSettingsRequest enabledFromDate(String enabledFromDate) { @@ -90,8 +102,22 @@ public PayoutSettingsRequest enabledFromDate(String enabledFromDate) { } /** - * The date when Adyen starts paying out to this bank account. Format: [ISO 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if payouts are enabled for this bank account. If a date is specified and: * `enabled`: **true**, payouts are enabled starting the specified date. * `enabled`: **false**, payouts are disabled until the specified date. On the specified date, `enabled` changes to **true** and this field is reset to **null**. - * @return enabledFromDate The date when Adyen starts paying out to this bank account. Format: [ISO 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if payouts are enabled for this bank account. If a date is specified and: * `enabled`: **true**, payouts are enabled starting the specified date. * `enabled`: **false**, payouts are disabled until the specified date. On the specified date, `enabled` changes to **true** and this field is reset to **null**. + * The date when Adyen starts paying out to this bank account. Format: [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or + * **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if + * payouts are enabled for this bank account. If a date is specified and: * `enabled`: + * **true**, payouts are enabled starting the specified date. * `enabled`: **false**, + * payouts are disabled until the specified date. On the specified date, `enabled` + * changes to **true** and this field is reset to **null**. + * + * @return enabledFromDate The date when Adyen starts paying out to this bank account. Format: + * [ISO 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or + * **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if + * payouts are enabled for this bank account. If a date is specified and: * + * `enabled`: **true**, payouts are enabled starting the specified date. * + * `enabled`: **false**, payouts are disabled until the specified date. On the + * specified date, `enabled` changes to **true** and this field is reset to + * **null**. */ @JsonProperty(JSON_PROPERTY_ENABLED_FROM_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,9 +126,22 @@ public String getEnabledFromDate() { } /** - * The date when Adyen starts paying out to this bank account. Format: [ISO 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if payouts are enabled for this bank account. If a date is specified and: * `enabled`: **true**, payouts are enabled starting the specified date. * `enabled`: **false**, payouts are disabled until the specified date. On the specified date, `enabled` changes to **true** and this field is reset to **null**. + * The date when Adyen starts paying out to this bank account. Format: [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or + * **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if + * payouts are enabled for this bank account. If a date is specified and: * `enabled`: + * **true**, payouts are enabled starting the specified date. * `enabled`: **false**, + * payouts are disabled until the specified date. On the specified date, `enabled` + * changes to **true** and this field is reset to **null**. * - * @param enabledFromDate The date when Adyen starts paying out to this bank account. Format: [ISO 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if payouts are enabled for this bank account. If a date is specified and: * `enabled`: **true**, payouts are enabled starting the specified date. * `enabled`: **false**, payouts are disabled until the specified date. On the specified date, `enabled` changes to **true** and this field is reset to **null**. + * @param enabledFromDate The date when Adyen starts paying out to this bank account. Format: [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or + * **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if + * payouts are enabled for this bank account. If a date is specified and: * + * `enabled`: **true**, payouts are enabled starting the specified date. * + * `enabled`: **false**, payouts are disabled until the specified date. On the + * specified date, `enabled` changes to **true** and this field is reset to + * **null**. */ @JsonProperty(JSON_PROPERTY_ENABLED_FROM_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,9 +150,13 @@ public void setEnabledFromDate(String enabledFromDate) { } /** - * The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) that contains the details of the bank account. + * The unique identifier of the [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) + * that contains the details of the bank account. * - * @param transferInstrumentId The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) that contains the details of the bank account. + * @param transferInstrumentId The unique identifier of the [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) + * that contains the details of the bank account. * @return the current {@code PayoutSettingsRequest} instance, allowing for method chaining */ public PayoutSettingsRequest transferInstrumentId(String transferInstrumentId) { @@ -122,8 +165,13 @@ public PayoutSettingsRequest transferInstrumentId(String transferInstrumentId) { } /** - * The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) that contains the details of the bank account. - * @return transferInstrumentId The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) that contains the details of the bank account. + * The unique identifier of the [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) + * that contains the details of the bank account. + * + * @return transferInstrumentId The unique identifier of the [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) + * that contains the details of the bank account. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,9 +180,13 @@ public String getTransferInstrumentId() { } /** - * The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) that contains the details of the bank account. + * The unique identifier of the [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) + * that contains the details of the bank account. * - * @param transferInstrumentId The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) that contains the details of the bank account. + * @param transferInstrumentId The unique identifier of the [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) + * that contains the details of the bank account. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +194,7 @@ public void setTransferInstrumentId(String transferInstrumentId) { this.transferInstrumentId = transferInstrumentId; } - /** - * Return true if this PayoutSettingsRequest object is equal to o. - */ + /** Return true if this PayoutSettingsRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +204,9 @@ public boolean equals(Object o) { return false; } PayoutSettingsRequest payoutSettingsRequest = (PayoutSettingsRequest) o; - return Objects.equals(this.enabled, payoutSettingsRequest.enabled) && - Objects.equals(this.enabledFromDate, payoutSettingsRequest.enabledFromDate) && - Objects.equals(this.transferInstrumentId, payoutSettingsRequest.transferInstrumentId); + return Objects.equals(this.enabled, payoutSettingsRequest.enabled) + && Objects.equals(this.enabledFromDate, payoutSettingsRequest.enabledFromDate) + && Objects.equals(this.transferInstrumentId, payoutSettingsRequest.transferInstrumentId); } @Override @@ -170,14 +220,15 @@ public String toString() { sb.append("class PayoutSettingsRequest {\n"); sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); sb.append(" enabledFromDate: ").append(toIndentedString(enabledFromDate)).append("\n"); - sb.append(" transferInstrumentId: ").append(toIndentedString(transferInstrumentId)).append("\n"); + sb.append(" transferInstrumentId: ") + .append(toIndentedString(transferInstrumentId)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +237,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PayoutSettingsRequest given an JSON string * * @param jsonString JSON string * @return An instance of PayoutSettingsRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to PayoutSettingsRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PayoutSettingsRequest */ public static PayoutSettingsRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayoutSettingsRequest.class); } -/** - * Convert an instance of PayoutSettingsRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PayoutSettingsRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/PayoutSettingsResponse.java b/src/main/java/com/adyen/model/management/PayoutSettingsResponse.java index 01fc014eb..f30730c44 100644 --- a/src/main/java/com/adyen/model/management/PayoutSettingsResponse.java +++ b/src/main/java/com/adyen/model/management/PayoutSettingsResponse.java @@ -2,44 +2,30 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.PayoutSettings; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * PayoutSettingsResponse - */ -@JsonPropertyOrder({ - PayoutSettingsResponse.JSON_PROPERTY_DATA -}) - +/** PayoutSettingsResponse */ +@JsonPropertyOrder({PayoutSettingsResponse.JSON_PROPERTY_DATA}) public class PayoutSettingsResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; - public PayoutSettingsResponse() { - } + public PayoutSettingsResponse() {} /** * The list of payout accounts. @@ -62,6 +48,7 @@ public PayoutSettingsResponse addDataItem(PayoutSettings dataItem) { /** * The list of payout accounts. + * * @return data The list of payout accounts. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -81,9 +68,7 @@ public void setData(List data) { this.data = data; } - /** - * Return true if this PayoutSettingsResponse object is equal to o. - */ + /** Return true if this PayoutSettingsResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -111,8 +96,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -121,21 +105,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PayoutSettingsResponse given an JSON string * * @param jsonString JSON string * @return An instance of PayoutSettingsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to PayoutSettingsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PayoutSettingsResponse */ public static PayoutSettingsResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayoutSettingsResponse.class); } -/** - * Convert an instance of PayoutSettingsResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PayoutSettingsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Profile.java b/src/main/java/com/adyen/model/management/Profile.java index 6f5c9b450..e3af506ef 100644 --- a/src/main/java/com/adyen/model/management/Profile.java +++ b/src/main/java/com/adyen/model/management/Profile.java @@ -2,32 +2,22 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.ModelFile; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Profile - */ +/** Profile */ @JsonPropertyOrder({ Profile.JSON_PROPERTY_AUTH_TYPE, Profile.JSON_PROPERTY_AUTO_WIFI, @@ -49,7 +39,6 @@ Profile.JSON_PROPERTY_SSID, Profile.JSON_PROPERTY_WSEC }) - public class Profile { public static final String JSON_PROPERTY_AUTH_TYPE = "authType"; private String authType; @@ -108,13 +97,14 @@ public class Profile { public static final String JSON_PROPERTY_WSEC = "wsec"; private String wsec; - public Profile() { - } + public Profile() {} /** - * The type of Wi-Fi network. Possible values: **wpa-psk**, **wpa2-psk**, **wpa-eap**, **wpa2-eap**. + * The type of Wi-Fi network. Possible values: **wpa-psk**, **wpa2-psk**, **wpa-eap**, + * **wpa2-eap**. * - * @param authType The type of Wi-Fi network. Possible values: **wpa-psk**, **wpa2-psk**, **wpa-eap**, **wpa2-eap**. + * @param authType The type of Wi-Fi network. Possible values: **wpa-psk**, **wpa2-psk**, + * **wpa-eap**, **wpa2-eap**. * @return the current {@code Profile} instance, allowing for method chaining */ public Profile authType(String authType) { @@ -123,8 +113,11 @@ public Profile authType(String authType) { } /** - * The type of Wi-Fi network. Possible values: **wpa-psk**, **wpa2-psk**, **wpa-eap**, **wpa2-eap**. - * @return authType The type of Wi-Fi network. Possible values: **wpa-psk**, **wpa2-psk**, **wpa-eap**, **wpa2-eap**. + * The type of Wi-Fi network. Possible values: **wpa-psk**, **wpa2-psk**, **wpa-eap**, + * **wpa2-eap**. + * + * @return authType The type of Wi-Fi network. Possible values: **wpa-psk**, **wpa2-psk**, + * **wpa-eap**, **wpa2-eap**. */ @JsonProperty(JSON_PROPERTY_AUTH_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -133,9 +126,11 @@ public String getAuthType() { } /** - * The type of Wi-Fi network. Possible values: **wpa-psk**, **wpa2-psk**, **wpa-eap**, **wpa2-eap**. + * The type of Wi-Fi network. Possible values: **wpa-psk**, **wpa2-psk**, **wpa-eap**, + * **wpa2-eap**. * - * @param authType The type of Wi-Fi network. Possible values: **wpa-psk**, **wpa2-psk**, **wpa-eap**, **wpa2-eap**. + * @param authType The type of Wi-Fi network. Possible values: **wpa-psk**, **wpa2-psk**, + * **wpa-eap**, **wpa2-eap**. */ @JsonProperty(JSON_PROPERTY_AUTH_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,9 +139,11 @@ public void setAuthType(String authType) { } /** - * Indicates whether to automatically select the best authentication method available. Does not work on older terminal models. + * Indicates whether to automatically select the best authentication method available. Does not + * work on older terminal models. * - * @param autoWifi Indicates whether to automatically select the best authentication method available. Does not work on older terminal models. + * @param autoWifi Indicates whether to automatically select the best authentication method + * available. Does not work on older terminal models. * @return the current {@code Profile} instance, allowing for method chaining */ public Profile autoWifi(Boolean autoWifi) { @@ -155,8 +152,11 @@ public Profile autoWifi(Boolean autoWifi) { } /** - * Indicates whether to automatically select the best authentication method available. Does not work on older terminal models. - * @return autoWifi Indicates whether to automatically select the best authentication method available. Does not work on older terminal models. + * Indicates whether to automatically select the best authentication method available. Does not + * work on older terminal models. + * + * @return autoWifi Indicates whether to automatically select the best authentication method + * available. Does not work on older terminal models. */ @JsonProperty(JSON_PROPERTY_AUTO_WIFI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -165,9 +165,11 @@ public Boolean getAutoWifi() { } /** - * Indicates whether to automatically select the best authentication method available. Does not work on older terminal models. + * Indicates whether to automatically select the best authentication method available. Does not + * work on older terminal models. * - * @param autoWifi Indicates whether to automatically select the best authentication method available. Does not work on older terminal models. + * @param autoWifi Indicates whether to automatically select the best authentication method + * available. Does not work on older terminal models. */ @JsonProperty(JSON_PROPERTY_AUTO_WIFI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,9 +178,11 @@ public void setAutoWifi(Boolean autoWifi) { } /** - * Use **infra** for infrastructure-based networks. This applies to most networks. Use **adhoc** only if the communication is p2p-based between base stations. + * Use **infra** for infrastructure-based networks. This applies to most networks. Use **adhoc** + * only if the communication is p2p-based between base stations. * - * @param bssType Use **infra** for infrastructure-based networks. This applies to most networks. Use **adhoc** only if the communication is p2p-based between base stations. + * @param bssType Use **infra** for infrastructure-based networks. This applies to most networks. + * Use **adhoc** only if the communication is p2p-based between base stations. * @return the current {@code Profile} instance, allowing for method chaining */ public Profile bssType(String bssType) { @@ -187,8 +191,11 @@ public Profile bssType(String bssType) { } /** - * Use **infra** for infrastructure-based networks. This applies to most networks. Use **adhoc** only if the communication is p2p-based between base stations. - * @return bssType Use **infra** for infrastructure-based networks. This applies to most networks. Use **adhoc** only if the communication is p2p-based between base stations. + * Use **infra** for infrastructure-based networks. This applies to most networks. Use **adhoc** + * only if the communication is p2p-based between base stations. + * + * @return bssType Use **infra** for infrastructure-based networks. This applies to most networks. + * Use **adhoc** only if the communication is p2p-based between base stations. */ @JsonProperty(JSON_PROPERTY_BSS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -197,9 +204,11 @@ public String getBssType() { } /** - * Use **infra** for infrastructure-based networks. This applies to most networks. Use **adhoc** only if the communication is p2p-based between base stations. + * Use **infra** for infrastructure-based networks. This applies to most networks. Use **adhoc** + * only if the communication is p2p-based between base stations. * - * @param bssType Use **infra** for infrastructure-based networks. This applies to most networks. Use **adhoc** only if the communication is p2p-based between base stations. + * @param bssType Use **infra** for infrastructure-based networks. This applies to most networks. + * Use **adhoc** only if the communication is p2p-based between base stations. */ @JsonProperty(JSON_PROPERTY_BSS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,9 +217,11 @@ public void setBssType(String bssType) { } /** - * The channel number of the Wi-Fi network. The recommended setting is **0** for automatic channel selection. + * The channel number of the Wi-Fi network. The recommended setting is **0** for automatic channel + * selection. * - * @param channel The channel number of the Wi-Fi network. The recommended setting is **0** for automatic channel selection. + * @param channel The channel number of the Wi-Fi network. The recommended setting is **0** for + * automatic channel selection. * @return the current {@code Profile} instance, allowing for method chaining */ public Profile channel(Integer channel) { @@ -219,8 +230,11 @@ public Profile channel(Integer channel) { } /** - * The channel number of the Wi-Fi network. The recommended setting is **0** for automatic channel selection. - * @return channel The channel number of the Wi-Fi network. The recommended setting is **0** for automatic channel selection. + * The channel number of the Wi-Fi network. The recommended setting is **0** for automatic channel + * selection. + * + * @return channel The channel number of the Wi-Fi network. The recommended setting is **0** for + * automatic channel selection. */ @JsonProperty(JSON_PROPERTY_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -229,9 +243,11 @@ public Integer getChannel() { } /** - * The channel number of the Wi-Fi network. The recommended setting is **0** for automatic channel selection. + * The channel number of the Wi-Fi network. The recommended setting is **0** for automatic channel + * selection. * - * @param channel The channel number of the Wi-Fi network. The recommended setting is **0** for automatic channel selection. + * @param channel The channel number of the Wi-Fi network. The recommended setting is **0** for + * automatic channel selection. */ @JsonProperty(JSON_PROPERTY_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,9 +256,11 @@ public void setChannel(Integer channel) { } /** - * Indicates whether this is your preferred wireless network. If **true**, the terminal will try connecting to this network first. + * Indicates whether this is your preferred wireless network. If **true**, the terminal will try + * connecting to this network first. * - * @param defaultProfile Indicates whether this is your preferred wireless network. If **true**, the terminal will try connecting to this network first. + * @param defaultProfile Indicates whether this is your preferred wireless network. If **true**, + * the terminal will try connecting to this network first. * @return the current {@code Profile} instance, allowing for method chaining */ public Profile defaultProfile(Boolean defaultProfile) { @@ -251,8 +269,11 @@ public Profile defaultProfile(Boolean defaultProfile) { } /** - * Indicates whether this is your preferred wireless network. If **true**, the terminal will try connecting to this network first. - * @return defaultProfile Indicates whether this is your preferred wireless network. If **true**, the terminal will try connecting to this network first. + * Indicates whether this is your preferred wireless network. If **true**, the terminal will try + * connecting to this network first. + * + * @return defaultProfile Indicates whether this is your preferred wireless network. If **true**, + * the terminal will try connecting to this network first. */ @JsonProperty(JSON_PROPERTY_DEFAULT_PROFILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -261,9 +282,11 @@ public Boolean getDefaultProfile() { } /** - * Indicates whether this is your preferred wireless network. If **true**, the terminal will try connecting to this network first. + * Indicates whether this is your preferred wireless network. If **true**, the terminal will try + * connecting to this network first. * - * @param defaultProfile Indicates whether this is your preferred wireless network. If **true**, the terminal will try connecting to this network first. + * @param defaultProfile Indicates whether this is your preferred wireless network. If **true**, + * the terminal will try connecting to this network first. */ @JsonProperty(JSON_PROPERTY_DEFAULT_PROFILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -272,9 +295,11 @@ public void setDefaultProfile(Boolean defaultProfile) { } /** - * Specifies the server domain name for EAP-TLS and EAP-PEAP WiFi profiles on Android 11 and above. + * Specifies the server domain name for EAP-TLS and EAP-PEAP WiFi profiles on Android 11 and + * above. * - * @param domainSuffix Specifies the server domain name for EAP-TLS and EAP-PEAP WiFi profiles on Android 11 and above. + * @param domainSuffix Specifies the server domain name for EAP-TLS and EAP-PEAP WiFi profiles on + * Android 11 and above. * @return the current {@code Profile} instance, allowing for method chaining */ public Profile domainSuffix(String domainSuffix) { @@ -283,8 +308,11 @@ public Profile domainSuffix(String domainSuffix) { } /** - * Specifies the server domain name for EAP-TLS and EAP-PEAP WiFi profiles on Android 11 and above. - * @return domainSuffix Specifies the server domain name for EAP-TLS and EAP-PEAP WiFi profiles on Android 11 and above. + * Specifies the server domain name for EAP-TLS and EAP-PEAP WiFi profiles on Android 11 and + * above. + * + * @return domainSuffix Specifies the server domain name for EAP-TLS and EAP-PEAP WiFi profiles on + * Android 11 and above. */ @JsonProperty(JSON_PROPERTY_DOMAIN_SUFFIX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -293,9 +321,11 @@ public String getDomainSuffix() { } /** - * Specifies the server domain name for EAP-TLS and EAP-PEAP WiFi profiles on Android 11 and above. + * Specifies the server domain name for EAP-TLS and EAP-PEAP WiFi profiles on Android 11 and + * above. * - * @param domainSuffix Specifies the server domain name for EAP-TLS and EAP-PEAP WiFi profiles on Android 11 and above. + * @param domainSuffix Specifies the server domain name for EAP-TLS and EAP-PEAP WiFi profiles on + * Android 11 and above. */ @JsonProperty(JSON_PROPERTY_DOMAIN_SUFFIX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -304,9 +334,11 @@ public void setDomainSuffix(String domainSuffix) { } /** - * For `authType` **wpa-eap** or **wpa2-eap**. Possible values: **tls**, **peap**, **leap**, **fast** + * For `authType` **wpa-eap** or **wpa2-eap**. Possible values: **tls**, **peap**, + * **leap**, **fast** * - * @param eap For `authType` **wpa-eap** or **wpa2-eap**. Possible values: **tls**, **peap**, **leap**, **fast** + * @param eap For `authType` **wpa-eap** or **wpa2-eap**. Possible values: **tls**, + * **peap**, **leap**, **fast** * @return the current {@code Profile} instance, allowing for method chaining */ public Profile eap(String eap) { @@ -315,8 +347,11 @@ public Profile eap(String eap) { } /** - * For `authType` **wpa-eap** or **wpa2-eap**. Possible values: **tls**, **peap**, **leap**, **fast** - * @return eap For `authType` **wpa-eap** or **wpa2-eap**. Possible values: **tls**, **peap**, **leap**, **fast** + * For `authType` **wpa-eap** or **wpa2-eap**. Possible values: **tls**, **peap**, + * **leap**, **fast** + * + * @return eap For `authType` **wpa-eap** or **wpa2-eap**. Possible values: **tls**, + * **peap**, **leap**, **fast** */ @JsonProperty(JSON_PROPERTY_EAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -325,9 +360,11 @@ public String getEap() { } /** - * For `authType` **wpa-eap** or **wpa2-eap**. Possible values: **tls**, **peap**, **leap**, **fast** + * For `authType` **wpa-eap** or **wpa2-eap**. Possible values: **tls**, **peap**, + * **leap**, **fast** * - * @param eap For `authType` **wpa-eap** or **wpa2-eap**. Possible values: **tls**, **peap**, **leap**, **fast** + * @param eap For `authType` **wpa-eap** or **wpa2-eap**. Possible values: **tls**, + * **peap**, **leap**, **fast** */ @JsonProperty(JSON_PROPERTY_EAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -338,7 +375,7 @@ public void setEap(String eap) { /** * eapCaCert * - * @param eapCaCert + * @param eapCaCert * @return the current {@code Profile} instance, allowing for method chaining */ public Profile eapCaCert(ModelFile eapCaCert) { @@ -348,7 +385,8 @@ public Profile eapCaCert(ModelFile eapCaCert) { /** * Get eapCaCert - * @return eapCaCert + * + * @return eapCaCert */ @JsonProperty(JSON_PROPERTY_EAP_CA_CERT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -359,7 +397,7 @@ public ModelFile getEapCaCert() { /** * eapCaCert * - * @param eapCaCert + * @param eapCaCert */ @JsonProperty(JSON_PROPERTY_EAP_CA_CERT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -370,7 +408,7 @@ public void setEapCaCert(ModelFile eapCaCert) { /** * eapClientCert * - * @param eapClientCert + * @param eapClientCert * @return the current {@code Profile} instance, allowing for method chaining */ public Profile eapClientCert(ModelFile eapClientCert) { @@ -380,7 +418,8 @@ public Profile eapClientCert(ModelFile eapClientCert) { /** * Get eapClientCert - * @return eapClientCert + * + * @return eapClientCert */ @JsonProperty(JSON_PROPERTY_EAP_CLIENT_CERT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -391,7 +430,7 @@ public ModelFile getEapClientCert() { /** * eapClientCert * - * @param eapClientCert + * @param eapClientCert */ @JsonProperty(JSON_PROPERTY_EAP_CLIENT_CERT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -402,7 +441,7 @@ public void setEapClientCert(ModelFile eapClientCert) { /** * eapClientKey * - * @param eapClientKey + * @param eapClientKey * @return the current {@code Profile} instance, allowing for method chaining */ public Profile eapClientKey(ModelFile eapClientKey) { @@ -412,7 +451,8 @@ public Profile eapClientKey(ModelFile eapClientKey) { /** * Get eapClientKey - * @return eapClientKey + * + * @return eapClientKey */ @JsonProperty(JSON_PROPERTY_EAP_CLIENT_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -423,7 +463,7 @@ public ModelFile getEapClientKey() { /** * eapClientKey * - * @param eapClientKey + * @param eapClientKey */ @JsonProperty(JSON_PROPERTY_EAP_CLIENT_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -432,9 +472,11 @@ public void setEapClientKey(ModelFile eapClientKey) { } /** - * For `eap` **tls**. The password of the RSA key file, if that file is password-protected. + * For `eap` **tls**. The password of the RSA key file, if that file is + * password-protected. * - * @param eapClientPwd For `eap` **tls**. The password of the RSA key file, if that file is password-protected. + * @param eapClientPwd For `eap` **tls**. The password of the RSA key file, if that file + * is password-protected. * @return the current {@code Profile} instance, allowing for method chaining */ public Profile eapClientPwd(String eapClientPwd) { @@ -443,8 +485,11 @@ public Profile eapClientPwd(String eapClientPwd) { } /** - * For `eap` **tls**. The password of the RSA key file, if that file is password-protected. - * @return eapClientPwd For `eap` **tls**. The password of the RSA key file, if that file is password-protected. + * For `eap` **tls**. The password of the RSA key file, if that file is + * password-protected. + * + * @return eapClientPwd For `eap` **tls**. The password of the RSA key file, if that + * file is password-protected. */ @JsonProperty(JSON_PROPERTY_EAP_CLIENT_PWD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -453,9 +498,11 @@ public String getEapClientPwd() { } /** - * For `eap` **tls**. The password of the RSA key file, if that file is password-protected. + * For `eap` **tls**. The password of the RSA key file, if that file is + * password-protected. * - * @param eapClientPwd For `eap` **tls**. The password of the RSA key file, if that file is password-protected. + * @param eapClientPwd For `eap` **tls**. The password of the RSA key file, if that file + * is password-protected. */ @JsonProperty(JSON_PROPERTY_EAP_CLIENT_PWD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -464,9 +511,11 @@ public void setEapClientPwd(String eapClientPwd) { } /** - * For `authType` **wpa-eap** or **wpa2-eap**. The EAP-PEAP username from your MS-CHAP account. Must match the configuration of your RADIUS server. + * For `authType` **wpa-eap** or **wpa2-eap**. The EAP-PEAP username from your MS-CHAP + * account. Must match the configuration of your RADIUS server. * - * @param eapIdentity For `authType` **wpa-eap** or **wpa2-eap**. The EAP-PEAP username from your MS-CHAP account. Must match the configuration of your RADIUS server. + * @param eapIdentity For `authType` **wpa-eap** or **wpa2-eap**. The EAP-PEAP username + * from your MS-CHAP account. Must match the configuration of your RADIUS server. * @return the current {@code Profile} instance, allowing for method chaining */ public Profile eapIdentity(String eapIdentity) { @@ -475,8 +524,11 @@ public Profile eapIdentity(String eapIdentity) { } /** - * For `authType` **wpa-eap** or **wpa2-eap**. The EAP-PEAP username from your MS-CHAP account. Must match the configuration of your RADIUS server. - * @return eapIdentity For `authType` **wpa-eap** or **wpa2-eap**. The EAP-PEAP username from your MS-CHAP account. Must match the configuration of your RADIUS server. + * For `authType` **wpa-eap** or **wpa2-eap**. The EAP-PEAP username from your MS-CHAP + * account. Must match the configuration of your RADIUS server. + * + * @return eapIdentity For `authType` **wpa-eap** or **wpa2-eap**. The EAP-PEAP username + * from your MS-CHAP account. Must match the configuration of your RADIUS server. */ @JsonProperty(JSON_PROPERTY_EAP_IDENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -485,9 +537,11 @@ public String getEapIdentity() { } /** - * For `authType` **wpa-eap** or **wpa2-eap**. The EAP-PEAP username from your MS-CHAP account. Must match the configuration of your RADIUS server. + * For `authType` **wpa-eap** or **wpa2-eap**. The EAP-PEAP username from your MS-CHAP + * account. Must match the configuration of your RADIUS server. * - * @param eapIdentity For `authType` **wpa-eap** or **wpa2-eap**. The EAP-PEAP username from your MS-CHAP account. Must match the configuration of your RADIUS server. + * @param eapIdentity For `authType` **wpa-eap** or **wpa2-eap**. The EAP-PEAP username + * from your MS-CHAP account. Must match the configuration of your RADIUS server. */ @JsonProperty(JSON_PROPERTY_EAP_IDENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -498,7 +552,7 @@ public void setEapIdentity(String eapIdentity) { /** * eapIntermediateCert * - * @param eapIntermediateCert + * @param eapIntermediateCert * @return the current {@code Profile} instance, allowing for method chaining */ public Profile eapIntermediateCert(ModelFile eapIntermediateCert) { @@ -508,7 +562,8 @@ public Profile eapIntermediateCert(ModelFile eapIntermediateCert) { /** * Get eapIntermediateCert - * @return eapIntermediateCert + * + * @return eapIntermediateCert */ @JsonProperty(JSON_PROPERTY_EAP_INTERMEDIATE_CERT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -519,7 +574,7 @@ public ModelFile getEapIntermediateCert() { /** * eapIntermediateCert * - * @param eapIntermediateCert + * @param eapIntermediateCert */ @JsonProperty(JSON_PROPERTY_EAP_INTERMEDIATE_CERT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -528,9 +583,11 @@ public void setEapIntermediateCert(ModelFile eapIntermediateCert) { } /** - * For `eap` **peap**. The EAP-PEAP password from your MS-CHAP account. Must match the configuration of your RADIUS server. + * For `eap` **peap**. The EAP-PEAP password from your MS-CHAP account. Must match the + * configuration of your RADIUS server. * - * @param eapPwd For `eap` **peap**. The EAP-PEAP password from your MS-CHAP account. Must match the configuration of your RADIUS server. + * @param eapPwd For `eap` **peap**. The EAP-PEAP password from your MS-CHAP account. + * Must match the configuration of your RADIUS server. * @return the current {@code Profile} instance, allowing for method chaining */ public Profile eapPwd(String eapPwd) { @@ -539,8 +596,11 @@ public Profile eapPwd(String eapPwd) { } /** - * For `eap` **peap**. The EAP-PEAP password from your MS-CHAP account. Must match the configuration of your RADIUS server. - * @return eapPwd For `eap` **peap**. The EAP-PEAP password from your MS-CHAP account. Must match the configuration of your RADIUS server. + * For `eap` **peap**. The EAP-PEAP password from your MS-CHAP account. Must match the + * configuration of your RADIUS server. + * + * @return eapPwd For `eap` **peap**. The EAP-PEAP password from your MS-CHAP account. + * Must match the configuration of your RADIUS server. */ @JsonProperty(JSON_PROPERTY_EAP_PWD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -549,9 +609,11 @@ public String getEapPwd() { } /** - * For `eap` **peap**. The EAP-PEAP password from your MS-CHAP account. Must match the configuration of your RADIUS server. + * For `eap` **peap**. The EAP-PEAP password from your MS-CHAP account. Must match the + * configuration of your RADIUS server. * - * @param eapPwd For `eap` **peap**. The EAP-PEAP password from your MS-CHAP account. Must match the configuration of your RADIUS server. + * @param eapPwd For `eap` **peap**. The EAP-PEAP password from your MS-CHAP account. + * Must match the configuration of your RADIUS server. */ @JsonProperty(JSON_PROPERTY_EAP_PWD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -560,9 +622,12 @@ public void setEapPwd(String eapPwd) { } /** - * Indicates if the network doesn't broadcast its SSID. Mandatory for Android terminals, because these terminals rely on this setting to be able to connect to any network. + * Indicates if the network doesn't broadcast its SSID. Mandatory for Android terminals, + * because these terminals rely on this setting to be able to connect to any network. * - * @param hiddenSsid Indicates if the network doesn't broadcast its SSID. Mandatory for Android terminals, because these terminals rely on this setting to be able to connect to any network. + * @param hiddenSsid Indicates if the network doesn't broadcast its SSID. Mandatory for + * Android terminals, because these terminals rely on this setting to be able to connect to + * any network. * @return the current {@code Profile} instance, allowing for method chaining */ public Profile hiddenSsid(Boolean hiddenSsid) { @@ -571,8 +636,12 @@ public Profile hiddenSsid(Boolean hiddenSsid) { } /** - * Indicates if the network doesn't broadcast its SSID. Mandatory for Android terminals, because these terminals rely on this setting to be able to connect to any network. - * @return hiddenSsid Indicates if the network doesn't broadcast its SSID. Mandatory for Android terminals, because these terminals rely on this setting to be able to connect to any network. + * Indicates if the network doesn't broadcast its SSID. Mandatory for Android terminals, + * because these terminals rely on this setting to be able to connect to any network. + * + * @return hiddenSsid Indicates if the network doesn't broadcast its SSID. Mandatory for + * Android terminals, because these terminals rely on this setting to be able to connect to + * any network. */ @JsonProperty(JSON_PROPERTY_HIDDEN_SSID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -581,9 +650,12 @@ public Boolean getHiddenSsid() { } /** - * Indicates if the network doesn't broadcast its SSID. Mandatory for Android terminals, because these terminals rely on this setting to be able to connect to any network. + * Indicates if the network doesn't broadcast its SSID. Mandatory for Android terminals, + * because these terminals rely on this setting to be able to connect to any network. * - * @param hiddenSsid Indicates if the network doesn't broadcast its SSID. Mandatory for Android terminals, because these terminals rely on this setting to be able to connect to any network. + * @param hiddenSsid Indicates if the network doesn't broadcast its SSID. Mandatory for + * Android terminals, because these terminals rely on this setting to be able to connect to + * any network. */ @JsonProperty(JSON_PROPERTY_HIDDEN_SSID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -604,6 +676,7 @@ public Profile name(String name) { /** * Your name for the Wi-Fi profile. + * * @return name Your name for the Wi-Fi profile. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -626,7 +699,8 @@ public void setName(String name) { /** * For `authType` **wpa-psk or **wpa2-psk**. The password to the wireless network. * - * @param psk For `authType` **wpa-psk or **wpa2-psk**. The password to the wireless network. + * @param psk For `authType` **wpa-psk or **wpa2-psk**. The password to the wireless + * network. * @return the current {@code Profile} instance, allowing for method chaining */ public Profile psk(String psk) { @@ -636,7 +710,9 @@ public Profile psk(String psk) { /** * For `authType` **wpa-psk or **wpa2-psk**. The password to the wireless network. - * @return psk For `authType` **wpa-psk or **wpa2-psk**. The password to the wireless network. + * + * @return psk For `authType` **wpa-psk or **wpa2-psk**. The password to the wireless + * network. */ @JsonProperty(JSON_PROPERTY_PSK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -647,7 +723,8 @@ public String getPsk() { /** * For `authType` **wpa-psk or **wpa2-psk**. The password to the wireless network. * - * @param psk For `authType` **wpa-psk or **wpa2-psk**. The password to the wireless network. + * @param psk For `authType` **wpa-psk or **wpa2-psk**. The password to the wireless + * network. */ @JsonProperty(JSON_PROPERTY_PSK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -668,6 +745,7 @@ public Profile ssid(String ssid) { /** * The name of the wireless network. + * * @return ssid The name of the wireless network. */ @JsonProperty(JSON_PROPERTY_SSID) @@ -700,7 +778,9 @@ public Profile wsec(String wsec) { /** * The type of encryption. Possible values: **auto**, **ccmp** (recommended), **tkip** - * @return wsec The type of encryption. Possible values: **auto**, **ccmp** (recommended), **tkip** + * + * @return wsec The type of encryption. Possible values: **auto**, **ccmp** (recommended), + * **tkip** */ @JsonProperty(JSON_PROPERTY_WSEC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -719,9 +799,7 @@ public void setWsec(String wsec) { this.wsec = wsec; } - /** - * Return true if this Profile object is equal to o. - */ + /** Return true if this Profile object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -731,30 +809,49 @@ public boolean equals(Object o) { return false; } Profile profile = (Profile) o; - return Objects.equals(this.authType, profile.authType) && - Objects.equals(this.autoWifi, profile.autoWifi) && - Objects.equals(this.bssType, profile.bssType) && - Objects.equals(this.channel, profile.channel) && - Objects.equals(this.defaultProfile, profile.defaultProfile) && - Objects.equals(this.domainSuffix, profile.domainSuffix) && - Objects.equals(this.eap, profile.eap) && - Objects.equals(this.eapCaCert, profile.eapCaCert) && - Objects.equals(this.eapClientCert, profile.eapClientCert) && - Objects.equals(this.eapClientKey, profile.eapClientKey) && - Objects.equals(this.eapClientPwd, profile.eapClientPwd) && - Objects.equals(this.eapIdentity, profile.eapIdentity) && - Objects.equals(this.eapIntermediateCert, profile.eapIntermediateCert) && - Objects.equals(this.eapPwd, profile.eapPwd) && - Objects.equals(this.hiddenSsid, profile.hiddenSsid) && - Objects.equals(this.name, profile.name) && - Objects.equals(this.psk, profile.psk) && - Objects.equals(this.ssid, profile.ssid) && - Objects.equals(this.wsec, profile.wsec); + return Objects.equals(this.authType, profile.authType) + && Objects.equals(this.autoWifi, profile.autoWifi) + && Objects.equals(this.bssType, profile.bssType) + && Objects.equals(this.channel, profile.channel) + && Objects.equals(this.defaultProfile, profile.defaultProfile) + && Objects.equals(this.domainSuffix, profile.domainSuffix) + && Objects.equals(this.eap, profile.eap) + && Objects.equals(this.eapCaCert, profile.eapCaCert) + && Objects.equals(this.eapClientCert, profile.eapClientCert) + && Objects.equals(this.eapClientKey, profile.eapClientKey) + && Objects.equals(this.eapClientPwd, profile.eapClientPwd) + && Objects.equals(this.eapIdentity, profile.eapIdentity) + && Objects.equals(this.eapIntermediateCert, profile.eapIntermediateCert) + && Objects.equals(this.eapPwd, profile.eapPwd) + && Objects.equals(this.hiddenSsid, profile.hiddenSsid) + && Objects.equals(this.name, profile.name) + && Objects.equals(this.psk, profile.psk) + && Objects.equals(this.ssid, profile.ssid) + && Objects.equals(this.wsec, profile.wsec); } @Override public int hashCode() { - return Objects.hash(authType, autoWifi, bssType, channel, defaultProfile, domainSuffix, eap, eapCaCert, eapClientCert, eapClientKey, eapClientPwd, eapIdentity, eapIntermediateCert, eapPwd, hiddenSsid, name, psk, ssid, wsec); + return Objects.hash( + authType, + autoWifi, + bssType, + channel, + defaultProfile, + domainSuffix, + eap, + eapCaCert, + eapClientCert, + eapClientKey, + eapClientPwd, + eapIdentity, + eapIntermediateCert, + eapPwd, + hiddenSsid, + name, + psk, + ssid, + wsec); } @Override @@ -773,7 +870,9 @@ public String toString() { sb.append(" eapClientKey: ").append(toIndentedString(eapClientKey)).append("\n"); sb.append(" eapClientPwd: ").append(toIndentedString(eapClientPwd)).append("\n"); sb.append(" eapIdentity: ").append(toIndentedString(eapIdentity)).append("\n"); - sb.append(" eapIntermediateCert: ").append(toIndentedString(eapIntermediateCert)).append("\n"); + sb.append(" eapIntermediateCert: ") + .append(toIndentedString(eapIntermediateCert)) + .append("\n"); sb.append(" eapPwd: ").append(toIndentedString(eapPwd)).append("\n"); sb.append(" hiddenSsid: ").append(toIndentedString(hiddenSsid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); @@ -785,8 +884,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -795,7 +893,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Profile given an JSON string * * @param jsonString JSON string @@ -805,11 +903,12 @@ private String toIndentedString(Object o) { public static Profile fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Profile.class); } -/** - * Convert an instance of Profile to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Profile to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/PulseInfo.java b/src/main/java/com/adyen/model/management/PulseInfo.java index 0558edc72..8e7789e94 100644 --- a/src/main/java/com/adyen/model/management/PulseInfo.java +++ b/src/main/java/com/adyen/model/management/PulseInfo.java @@ -2,43 +2,40 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.TransactionDescriptionInfo; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * PulseInfo - */ +/** PulseInfo */ @JsonPropertyOrder({ PulseInfo.JSON_PROPERTY_PROCESSING_TYPE, PulseInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION }) - public class PulseInfo { /** - * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * The type of transactions processed over this payment method. Allowed values: - **pos** for + * in-person payments. - **billpay** for subscription payments, both the initial payment and the + * later recurring payments. These transactions have `recurringProcessingModel` + * **Subscription**. - **ecom** for all other card not present transactions. This includes + * non-recurring transactions and transactions with `recurringProcessingModel` + * **CardOnFile** or **UnscheduledCardOnFile**. */ public enum ProcessingTypeEnum { - BILLPAY(String.valueOf("billpay")), ECOM(String.valueOf("ecom")), @@ -50,7 +47,7 @@ public enum ProcessingTypeEnum { private String value; ProcessingTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -71,7 +68,11 @@ public static ProcessingTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ProcessingTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ProcessingTypeEnum.values())); + LOG.warning( + "ProcessingTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ProcessingTypeEnum.values())); return null; } } @@ -82,13 +83,22 @@ public static ProcessingTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANSACTION_DESCRIPTION = "transactionDescription"; private TransactionDescriptionInfo transactionDescription; - public PulseInfo() { - } + public PulseInfo() {} /** - * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * The type of transactions processed over this payment method. Allowed values: - **pos** for + * in-person payments. - **billpay** for subscription payments, both the initial payment and the + * later recurring payments. These transactions have `recurringProcessingModel` + * **Subscription**. - **ecom** for all other card not present transactions. This includes + * non-recurring transactions and transactions with `recurringProcessingModel` + * **CardOnFile** or **UnscheduledCardOnFile**. * - * @param processingType The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * @param processingType The type of transactions processed over this payment method. Allowed + * values: - **pos** for in-person payments. - **billpay** for subscription payments, both the + * initial payment and the later recurring payments. These transactions have + * `recurringProcessingModel` **Subscription**. - **ecom** for all other card not + * present transactions. This includes non-recurring transactions and transactions with + * `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. * @return the current {@code PulseInfo} instance, allowing for method chaining */ public PulseInfo processingType(ProcessingTypeEnum processingType) { @@ -97,8 +107,19 @@ public PulseInfo processingType(ProcessingTypeEnum processingType) { } /** - * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. - * @return processingType The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * The type of transactions processed over this payment method. Allowed values: - **pos** for + * in-person payments. - **billpay** for subscription payments, both the initial payment and the + * later recurring payments. These transactions have `recurringProcessingModel` + * **Subscription**. - **ecom** for all other card not present transactions. This includes + * non-recurring transactions and transactions with `recurringProcessingModel` + * **CardOnFile** or **UnscheduledCardOnFile**. + * + * @return processingType The type of transactions processed over this payment method. Allowed + * values: - **pos** for in-person payments. - **billpay** for subscription payments, both the + * initial payment and the later recurring payments. These transactions have + * `recurringProcessingModel` **Subscription**. - **ecom** for all other card not + * present transactions. This includes non-recurring transactions and transactions with + * `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. */ @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,9 +128,19 @@ public ProcessingTypeEnum getProcessingType() { } /** - * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * The type of transactions processed over this payment method. Allowed values: - **pos** for + * in-person payments. - **billpay** for subscription payments, both the initial payment and the + * later recurring payments. These transactions have `recurringProcessingModel` + * **Subscription**. - **ecom** for all other card not present transactions. This includes + * non-recurring transactions and transactions with `recurringProcessingModel` + * **CardOnFile** or **UnscheduledCardOnFile**. * - * @param processingType The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * @param processingType The type of transactions processed over this payment method. Allowed + * values: - **pos** for in-person payments. - **billpay** for subscription payments, both the + * initial payment and the later recurring payments. These transactions have + * `recurringProcessingModel` **Subscription**. - **ecom** for all other card not + * present transactions. This includes non-recurring transactions and transactions with + * `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. */ @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -120,7 +151,7 @@ public void setProcessingType(ProcessingTypeEnum processingType) { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription * @return the current {@code PulseInfo} instance, allowing for method chaining */ public PulseInfo transactionDescription(TransactionDescriptionInfo transactionDescription) { @@ -130,7 +161,8 @@ public PulseInfo transactionDescription(TransactionDescriptionInfo transactionDe /** * Get transactionDescription - * @return transactionDescription + * + * @return transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -141,7 +173,7 @@ public TransactionDescriptionInfo getTransactionDescription() { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -149,9 +181,7 @@ public void setTransactionDescription(TransactionDescriptionInfo transactionDesc this.transactionDescription = transactionDescription; } - /** - * Return true if this PulseInfo object is equal to o. - */ + /** Return true if this PulseInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -161,8 +191,8 @@ public boolean equals(Object o) { return false; } PulseInfo pulseInfo = (PulseInfo) o; - return Objects.equals(this.processingType, pulseInfo.processingType) && - Objects.equals(this.transactionDescription, pulseInfo.transactionDescription); + return Objects.equals(this.processingType, pulseInfo.processingType) + && Objects.equals(this.transactionDescription, pulseInfo.transactionDescription); } @Override @@ -175,14 +205,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PulseInfo {\n"); sb.append(" processingType: ").append(toIndentedString(processingType)).append("\n"); - sb.append(" transactionDescription: ").append(toIndentedString(transactionDescription)).append("\n"); + sb.append(" transactionDescription: ") + .append(toIndentedString(transactionDescription)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -191,7 +222,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PulseInfo given an JSON string * * @param jsonString JSON string @@ -201,11 +232,12 @@ private String toIndentedString(Object o) { public static PulseInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PulseInfo.class); } -/** - * Convert an instance of PulseInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PulseInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ReceiptOptions.java b/src/main/java/com/adyen/model/management/ReceiptOptions.java index 5b599d377..b98015426 100644 --- a/src/main/java/com/adyen/model/management/ReceiptOptions.java +++ b/src/main/java/com/adyen/model/management/ReceiptOptions.java @@ -2,37 +2,27 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ReceiptOptions - */ +/** ReceiptOptions */ @JsonPropertyOrder({ ReceiptOptions.JSON_PROPERTY_LOGO, ReceiptOptions.JSON_PROPERTY_PROMPT_BEFORE_PRINTING, ReceiptOptions.JSON_PROPERTY_QR_CODE_DATA }) - public class ReceiptOptions { public static final String JSON_PROPERTY_LOGO = "logo"; private String logo; @@ -43,13 +33,14 @@ public class ReceiptOptions { public static final String JSON_PROPERTY_QR_CODE_DATA = "qrCodeData"; private String qrCodeData; - public ReceiptOptions() { - } + public ReceiptOptions() {} /** - * The receipt logo converted to a Base64-encoded string. The image must be a .bmp file of < 256 KB, dimensions 240 (H) x 384 (W) px. + * The receipt logo converted to a Base64-encoded string. The image must be a .bmp file of < + * 256 KB, dimensions 240 (H) x 384 (W) px. * - * @param logo The receipt logo converted to a Base64-encoded string. The image must be a .bmp file of < 256 KB, dimensions 240 (H) x 384 (W) px. + * @param logo The receipt logo converted to a Base64-encoded string. The image must be a .bmp + * file of < 256 KB, dimensions 240 (H) x 384 (W) px. * @return the current {@code ReceiptOptions} instance, allowing for method chaining */ public ReceiptOptions logo(String logo) { @@ -58,8 +49,11 @@ public ReceiptOptions logo(String logo) { } /** - * The receipt logo converted to a Base64-encoded string. The image must be a .bmp file of < 256 KB, dimensions 240 (H) x 384 (W) px. - * @return logo The receipt logo converted to a Base64-encoded string. The image must be a .bmp file of < 256 KB, dimensions 240 (H) x 384 (W) px. + * The receipt logo converted to a Base64-encoded string. The image must be a .bmp file of < + * 256 KB, dimensions 240 (H) x 384 (W) px. + * + * @return logo The receipt logo converted to a Base64-encoded string. The image must be a .bmp + * file of < 256 KB, dimensions 240 (H) x 384 (W) px. */ @JsonProperty(JSON_PROPERTY_LOGO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,9 +62,11 @@ public String getLogo() { } /** - * The receipt logo converted to a Base64-encoded string. The image must be a .bmp file of < 256 KB, dimensions 240 (H) x 384 (W) px. + * The receipt logo converted to a Base64-encoded string. The image must be a .bmp file of < + * 256 KB, dimensions 240 (H) x 384 (W) px. * - * @param logo The receipt logo converted to a Base64-encoded string. The image must be a .bmp file of < 256 KB, dimensions 240 (H) x 384 (W) px. + * @param logo The receipt logo converted to a Base64-encoded string. The image must be a .bmp + * file of < 256 KB, dimensions 240 (H) x 384 (W) px. */ @JsonProperty(JSON_PROPERTY_LOGO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -81,7 +77,8 @@ public void setLogo(String logo) { /** * Indicates whether a screen appears asking if you want to print the shopper receipt. * - * @param promptBeforePrinting Indicates whether a screen appears asking if you want to print the shopper receipt. + * @param promptBeforePrinting Indicates whether a screen appears asking if you want to print the + * shopper receipt. * @return the current {@code ReceiptOptions} instance, allowing for method chaining */ public ReceiptOptions promptBeforePrinting(Boolean promptBeforePrinting) { @@ -91,7 +88,9 @@ public ReceiptOptions promptBeforePrinting(Boolean promptBeforePrinting) { /** * Indicates whether a screen appears asking if you want to print the shopper receipt. - * @return promptBeforePrinting Indicates whether a screen appears asking if you want to print the shopper receipt. + * + * @return promptBeforePrinting Indicates whether a screen appears asking if you want to print the + * shopper receipt. */ @JsonProperty(JSON_PROPERTY_PROMPT_BEFORE_PRINTING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,7 +101,8 @@ public Boolean getPromptBeforePrinting() { /** * Indicates whether a screen appears asking if you want to print the shopper receipt. * - * @param promptBeforePrinting Indicates whether a screen appears asking if you want to print the shopper receipt. + * @param promptBeforePrinting Indicates whether a screen appears asking if you want to print the + * shopper receipt. */ @JsonProperty(JSON_PROPERTY_PROMPT_BEFORE_PRINTING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,9 +111,15 @@ public void setPromptBeforePrinting(Boolean promptBeforePrinting) { } /** - * Data to print on the receipt as a QR code. This can include static text and the following variables: - `${merchantreference}`: the merchant reference of the transaction. - `${pspreference}`: the PSP reference of the transaction. For example, **http://www.example.com/order/${pspreference}/${merchantreference}**. + * Data to print on the receipt as a QR code. This can include static text and the following + * variables: - `${merchantreference}`: the merchant reference of the transaction. - + * `${pspreference}`: the PSP reference of the transaction. For example, + * **http://www.example.com/order/${pspreference}/${merchantreference}**. * - * @param qrCodeData Data to print on the receipt as a QR code. This can include static text and the following variables: - `${merchantreference}`: the merchant reference of the transaction. - `${pspreference}`: the PSP reference of the transaction. For example, **http://www.example.com/order/${pspreference}/${merchantreference}**. + * @param qrCodeData Data to print on the receipt as a QR code. This can include static text and + * the following variables: - `${merchantreference}`: the merchant reference of the + * transaction. - `${pspreference}`: the PSP reference of the transaction. For + * example, **http://www.example.com/order/${pspreference}/${merchantreference}**. * @return the current {@code ReceiptOptions} instance, allowing for method chaining */ public ReceiptOptions qrCodeData(String qrCodeData) { @@ -122,8 +128,15 @@ public ReceiptOptions qrCodeData(String qrCodeData) { } /** - * Data to print on the receipt as a QR code. This can include static text and the following variables: - `${merchantreference}`: the merchant reference of the transaction. - `${pspreference}`: the PSP reference of the transaction. For example, **http://www.example.com/order/${pspreference}/${merchantreference}**. - * @return qrCodeData Data to print on the receipt as a QR code. This can include static text and the following variables: - `${merchantreference}`: the merchant reference of the transaction. - `${pspreference}`: the PSP reference of the transaction. For example, **http://www.example.com/order/${pspreference}/${merchantreference}**. + * Data to print on the receipt as a QR code. This can include static text and the following + * variables: - `${merchantreference}`: the merchant reference of the transaction. - + * `${pspreference}`: the PSP reference of the transaction. For example, + * **http://www.example.com/order/${pspreference}/${merchantreference}**. + * + * @return qrCodeData Data to print on the receipt as a QR code. This can include static text and + * the following variables: - `${merchantreference}`: the merchant reference of the + * transaction. - `${pspreference}`: the PSP reference of the transaction. For + * example, **http://www.example.com/order/${pspreference}/${merchantreference}**. */ @JsonProperty(JSON_PROPERTY_QR_CODE_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,9 +145,15 @@ public String getQrCodeData() { } /** - * Data to print on the receipt as a QR code. This can include static text and the following variables: - `${merchantreference}`: the merchant reference of the transaction. - `${pspreference}`: the PSP reference of the transaction. For example, **http://www.example.com/order/${pspreference}/${merchantreference}**. + * Data to print on the receipt as a QR code. This can include static text and the following + * variables: - `${merchantreference}`: the merchant reference of the transaction. - + * `${pspreference}`: the PSP reference of the transaction. For example, + * **http://www.example.com/order/${pspreference}/${merchantreference}**. * - * @param qrCodeData Data to print on the receipt as a QR code. This can include static text and the following variables: - `${merchantreference}`: the merchant reference of the transaction. - `${pspreference}`: the PSP reference of the transaction. For example, **http://www.example.com/order/${pspreference}/${merchantreference}**. + * @param qrCodeData Data to print on the receipt as a QR code. This can include static text and + * the following variables: - `${merchantreference}`: the merchant reference of the + * transaction. - `${pspreference}`: the PSP reference of the transaction. For + * example, **http://www.example.com/order/${pspreference}/${merchantreference}**. */ @JsonProperty(JSON_PROPERTY_QR_CODE_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +161,7 @@ public void setQrCodeData(String qrCodeData) { this.qrCodeData = qrCodeData; } - /** - * Return true if this ReceiptOptions object is equal to o. - */ + /** Return true if this ReceiptOptions object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +171,9 @@ public boolean equals(Object o) { return false; } ReceiptOptions receiptOptions = (ReceiptOptions) o; - return Objects.equals(this.logo, receiptOptions.logo) && - Objects.equals(this.promptBeforePrinting, receiptOptions.promptBeforePrinting) && - Objects.equals(this.qrCodeData, receiptOptions.qrCodeData); + return Objects.equals(this.logo, receiptOptions.logo) + && Objects.equals(this.promptBeforePrinting, receiptOptions.promptBeforePrinting) + && Objects.equals(this.qrCodeData, receiptOptions.qrCodeData); } @Override @@ -169,15 +186,16 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ReceiptOptions {\n"); sb.append(" logo: ").append(toIndentedString(logo)).append("\n"); - sb.append(" promptBeforePrinting: ").append(toIndentedString(promptBeforePrinting)).append("\n"); + sb.append(" promptBeforePrinting: ") + .append(toIndentedString(promptBeforePrinting)) + .append("\n"); sb.append(" qrCodeData: ").append(toIndentedString(qrCodeData)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +204,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ReceiptOptions given an JSON string * * @param jsonString JSON string @@ -196,11 +214,12 @@ private String toIndentedString(Object o) { public static ReceiptOptions fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ReceiptOptions.class); } -/** - * Convert an instance of ReceiptOptions to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ReceiptOptions to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ReceiptPrinting.java b/src/main/java/com/adyen/model/management/ReceiptPrinting.java index 32b46becb..5a2e844eb 100644 --- a/src/main/java/com/adyen/model/management/ReceiptPrinting.java +++ b/src/main/java/com/adyen/model/management/ReceiptPrinting.java @@ -2,31 +2,22 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ReceiptPrinting - */ +/** ReceiptPrinting */ @JsonPropertyOrder({ ReceiptPrinting.JSON_PROPERTY_MERCHANT_APPROVED, ReceiptPrinting.JSON_PROPERTY_MERCHANT_CANCELLED, @@ -45,7 +36,6 @@ ReceiptPrinting.JSON_PROPERTY_SHOPPER_REFUSED, ReceiptPrinting.JSON_PROPERTY_SHOPPER_VOID }) - public class ReceiptPrinting { public static final String JSON_PROPERTY_MERCHANT_APPROVED = "merchantApproved"; private Boolean merchantApproved; @@ -95,8 +85,7 @@ public class ReceiptPrinting { public static final String JSON_PROPERTY_SHOPPER_VOID = "shopperVoid"; private Boolean shopperVoid; - public ReceiptPrinting() { - } + public ReceiptPrinting() {} /** * Print a merchant receipt when the payment is approved. @@ -111,6 +100,7 @@ public ReceiptPrinting merchantApproved(Boolean merchantApproved) { /** * Print a merchant receipt when the payment is approved. + * * @return merchantApproved Print a merchant receipt when the payment is approved. */ @JsonProperty(JSON_PROPERTY_MERCHANT_APPROVED) @@ -143,6 +133,7 @@ public ReceiptPrinting merchantCancelled(Boolean merchantCancelled) { /** * Print a merchant receipt when the transaction is cancelled. + * * @return merchantCancelled Print a merchant receipt when the transaction is cancelled. */ @JsonProperty(JSON_PROPERTY_MERCHANT_CANCELLED) @@ -175,7 +166,9 @@ public ReceiptPrinting merchantCaptureApproved(Boolean merchantCaptureApproved) /** * Print a merchant receipt when capturing the payment is approved. - * @return merchantCaptureApproved Print a merchant receipt when capturing the payment is approved. + * + * @return merchantCaptureApproved Print a merchant receipt when capturing the payment is + * approved. */ @JsonProperty(JSON_PROPERTY_MERCHANT_CAPTURE_APPROVED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -207,6 +200,7 @@ public ReceiptPrinting merchantCaptureRefused(Boolean merchantCaptureRefused) { /** * Print a merchant receipt when capturing the payment is refused. + * * @return merchantCaptureRefused Print a merchant receipt when capturing the payment is refused. */ @JsonProperty(JSON_PROPERTY_MERCHANT_CAPTURE_REFUSED) @@ -239,6 +233,7 @@ public ReceiptPrinting merchantRefundApproved(Boolean merchantRefundApproved) { /** * Print a merchant receipt when the refund is approved. + * * @return merchantRefundApproved Print a merchant receipt when the refund is approved. */ @JsonProperty(JSON_PROPERTY_MERCHANT_REFUND_APPROVED) @@ -271,6 +266,7 @@ public ReceiptPrinting merchantRefundRefused(Boolean merchantRefundRefused) { /** * Print a merchant receipt when the refund is refused. + * * @return merchantRefundRefused Print a merchant receipt when the refund is refused. */ @JsonProperty(JSON_PROPERTY_MERCHANT_REFUND_REFUSED) @@ -303,6 +299,7 @@ public ReceiptPrinting merchantRefused(Boolean merchantRefused) { /** * Print a merchant receipt when the payment is refused. + * * @return merchantRefused Print a merchant receipt when the payment is refused. */ @JsonProperty(JSON_PROPERTY_MERCHANT_REFUSED) @@ -335,6 +332,7 @@ public ReceiptPrinting merchantVoid(Boolean merchantVoid) { /** * Print a merchant receipt when a previous transaction is voided. + * * @return merchantVoid Print a merchant receipt when a previous transaction is voided. */ @JsonProperty(JSON_PROPERTY_MERCHANT_VOID) @@ -367,6 +365,7 @@ public ReceiptPrinting shopperApproved(Boolean shopperApproved) { /** * Print a shopper receipt when the payment is approved. + * * @return shopperApproved Print a shopper receipt when the payment is approved. */ @JsonProperty(JSON_PROPERTY_SHOPPER_APPROVED) @@ -399,6 +398,7 @@ public ReceiptPrinting shopperCancelled(Boolean shopperCancelled) { /** * Print a shopper receipt when the transaction is cancelled. + * * @return shopperCancelled Print a shopper receipt when the transaction is cancelled. */ @JsonProperty(JSON_PROPERTY_SHOPPER_CANCELLED) @@ -431,6 +431,7 @@ public ReceiptPrinting shopperCaptureApproved(Boolean shopperCaptureApproved) { /** * Print a shopper receipt when capturing the payment is approved. + * * @return shopperCaptureApproved Print a shopper receipt when capturing the payment is approved. */ @JsonProperty(JSON_PROPERTY_SHOPPER_CAPTURE_APPROVED) @@ -463,6 +464,7 @@ public ReceiptPrinting shopperCaptureRefused(Boolean shopperCaptureRefused) { /** * Print a shopper receipt when capturing the payment is refused. + * * @return shopperCaptureRefused Print a shopper receipt when capturing the payment is refused. */ @JsonProperty(JSON_PROPERTY_SHOPPER_CAPTURE_REFUSED) @@ -495,6 +497,7 @@ public ReceiptPrinting shopperRefundApproved(Boolean shopperRefundApproved) { /** * Print a shopper receipt when the refund is approved. + * * @return shopperRefundApproved Print a shopper receipt when the refund is approved. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFUND_APPROVED) @@ -527,6 +530,7 @@ public ReceiptPrinting shopperRefundRefused(Boolean shopperRefundRefused) { /** * Print a shopper receipt when the refund is refused. + * * @return shopperRefundRefused Print a shopper receipt when the refund is refused. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFUND_REFUSED) @@ -559,6 +563,7 @@ public ReceiptPrinting shopperRefused(Boolean shopperRefused) { /** * Print a shopper receipt when the payment is refused. + * * @return shopperRefused Print a shopper receipt when the payment is refused. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFUSED) @@ -591,6 +596,7 @@ public ReceiptPrinting shopperVoid(Boolean shopperVoid) { /** * Print a shopper receipt when a previous transaction is voided. + * * @return shopperVoid Print a shopper receipt when a previous transaction is voided. */ @JsonProperty(JSON_PROPERTY_SHOPPER_VOID) @@ -610,9 +616,7 @@ public void setShopperVoid(Boolean shopperVoid) { this.shopperVoid = shopperVoid; } - /** - * Return true if this ReceiptPrinting object is equal to o. - */ + /** Return true if this ReceiptPrinting object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -622,27 +626,43 @@ public boolean equals(Object o) { return false; } ReceiptPrinting receiptPrinting = (ReceiptPrinting) o; - return Objects.equals(this.merchantApproved, receiptPrinting.merchantApproved) && - Objects.equals(this.merchantCancelled, receiptPrinting.merchantCancelled) && - Objects.equals(this.merchantCaptureApproved, receiptPrinting.merchantCaptureApproved) && - Objects.equals(this.merchantCaptureRefused, receiptPrinting.merchantCaptureRefused) && - Objects.equals(this.merchantRefundApproved, receiptPrinting.merchantRefundApproved) && - Objects.equals(this.merchantRefundRefused, receiptPrinting.merchantRefundRefused) && - Objects.equals(this.merchantRefused, receiptPrinting.merchantRefused) && - Objects.equals(this.merchantVoid, receiptPrinting.merchantVoid) && - Objects.equals(this.shopperApproved, receiptPrinting.shopperApproved) && - Objects.equals(this.shopperCancelled, receiptPrinting.shopperCancelled) && - Objects.equals(this.shopperCaptureApproved, receiptPrinting.shopperCaptureApproved) && - Objects.equals(this.shopperCaptureRefused, receiptPrinting.shopperCaptureRefused) && - Objects.equals(this.shopperRefundApproved, receiptPrinting.shopperRefundApproved) && - Objects.equals(this.shopperRefundRefused, receiptPrinting.shopperRefundRefused) && - Objects.equals(this.shopperRefused, receiptPrinting.shopperRefused) && - Objects.equals(this.shopperVoid, receiptPrinting.shopperVoid); + return Objects.equals(this.merchantApproved, receiptPrinting.merchantApproved) + && Objects.equals(this.merchantCancelled, receiptPrinting.merchantCancelled) + && Objects.equals(this.merchantCaptureApproved, receiptPrinting.merchantCaptureApproved) + && Objects.equals(this.merchantCaptureRefused, receiptPrinting.merchantCaptureRefused) + && Objects.equals(this.merchantRefundApproved, receiptPrinting.merchantRefundApproved) + && Objects.equals(this.merchantRefundRefused, receiptPrinting.merchantRefundRefused) + && Objects.equals(this.merchantRefused, receiptPrinting.merchantRefused) + && Objects.equals(this.merchantVoid, receiptPrinting.merchantVoid) + && Objects.equals(this.shopperApproved, receiptPrinting.shopperApproved) + && Objects.equals(this.shopperCancelled, receiptPrinting.shopperCancelled) + && Objects.equals(this.shopperCaptureApproved, receiptPrinting.shopperCaptureApproved) + && Objects.equals(this.shopperCaptureRefused, receiptPrinting.shopperCaptureRefused) + && Objects.equals(this.shopperRefundApproved, receiptPrinting.shopperRefundApproved) + && Objects.equals(this.shopperRefundRefused, receiptPrinting.shopperRefundRefused) + && Objects.equals(this.shopperRefused, receiptPrinting.shopperRefused) + && Objects.equals(this.shopperVoid, receiptPrinting.shopperVoid); } @Override public int hashCode() { - return Objects.hash(merchantApproved, merchantCancelled, merchantCaptureApproved, merchantCaptureRefused, merchantRefundApproved, merchantRefundRefused, merchantRefused, merchantVoid, shopperApproved, shopperCancelled, shopperCaptureApproved, shopperCaptureRefused, shopperRefundApproved, shopperRefundRefused, shopperRefused, shopperVoid); + return Objects.hash( + merchantApproved, + merchantCancelled, + merchantCaptureApproved, + merchantCaptureRefused, + merchantRefundApproved, + merchantRefundRefused, + merchantRefused, + merchantVoid, + shopperApproved, + shopperCancelled, + shopperCaptureApproved, + shopperCaptureRefused, + shopperRefundApproved, + shopperRefundRefused, + shopperRefused, + shopperVoid); } @Override @@ -651,18 +671,34 @@ public String toString() { sb.append("class ReceiptPrinting {\n"); sb.append(" merchantApproved: ").append(toIndentedString(merchantApproved)).append("\n"); sb.append(" merchantCancelled: ").append(toIndentedString(merchantCancelled)).append("\n"); - sb.append(" merchantCaptureApproved: ").append(toIndentedString(merchantCaptureApproved)).append("\n"); - sb.append(" merchantCaptureRefused: ").append(toIndentedString(merchantCaptureRefused)).append("\n"); - sb.append(" merchantRefundApproved: ").append(toIndentedString(merchantRefundApproved)).append("\n"); - sb.append(" merchantRefundRefused: ").append(toIndentedString(merchantRefundRefused)).append("\n"); + sb.append(" merchantCaptureApproved: ") + .append(toIndentedString(merchantCaptureApproved)) + .append("\n"); + sb.append(" merchantCaptureRefused: ") + .append(toIndentedString(merchantCaptureRefused)) + .append("\n"); + sb.append(" merchantRefundApproved: ") + .append(toIndentedString(merchantRefundApproved)) + .append("\n"); + sb.append(" merchantRefundRefused: ") + .append(toIndentedString(merchantRefundRefused)) + .append("\n"); sb.append(" merchantRefused: ").append(toIndentedString(merchantRefused)).append("\n"); sb.append(" merchantVoid: ").append(toIndentedString(merchantVoid)).append("\n"); sb.append(" shopperApproved: ").append(toIndentedString(shopperApproved)).append("\n"); sb.append(" shopperCancelled: ").append(toIndentedString(shopperCancelled)).append("\n"); - sb.append(" shopperCaptureApproved: ").append(toIndentedString(shopperCaptureApproved)).append("\n"); - sb.append(" shopperCaptureRefused: ").append(toIndentedString(shopperCaptureRefused)).append("\n"); - sb.append(" shopperRefundApproved: ").append(toIndentedString(shopperRefundApproved)).append("\n"); - sb.append(" shopperRefundRefused: ").append(toIndentedString(shopperRefundRefused)).append("\n"); + sb.append(" shopperCaptureApproved: ") + .append(toIndentedString(shopperCaptureApproved)) + .append("\n"); + sb.append(" shopperCaptureRefused: ") + .append(toIndentedString(shopperCaptureRefused)) + .append("\n"); + sb.append(" shopperRefundApproved: ") + .append(toIndentedString(shopperRefundApproved)) + .append("\n"); + sb.append(" shopperRefundRefused: ") + .append(toIndentedString(shopperRefundRefused)) + .append("\n"); sb.append(" shopperRefused: ").append(toIndentedString(shopperRefused)).append("\n"); sb.append(" shopperVoid: ").append(toIndentedString(shopperVoid)).append("\n"); sb.append("}"); @@ -670,8 +706,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -680,7 +715,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ReceiptPrinting given an JSON string * * @param jsonString JSON string @@ -690,11 +725,12 @@ private String toIndentedString(Object o) { public static ReceiptPrinting fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ReceiptPrinting.class); } -/** - * Convert an instance of ReceiptPrinting to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ReceiptPrinting to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Referenced.java b/src/main/java/com/adyen/model/management/Referenced.java index 2fcfda2c7..307e0c1ae 100644 --- a/src/main/java/com/adyen/model/management/Referenced.java +++ b/src/main/java/com/adyen/model/management/Referenced.java @@ -2,46 +2,34 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Referenced - */ -@JsonPropertyOrder({ - Referenced.JSON_PROPERTY_ENABLE_STANDALONE_REFUNDS -}) - +/** Referenced */ +@JsonPropertyOrder({Referenced.JSON_PROPERTY_ENABLE_STANDALONE_REFUNDS}) public class Referenced { public static final String JSON_PROPERTY_ENABLE_STANDALONE_REFUNDS = "enableStandaloneRefunds"; private Boolean enableStandaloneRefunds; - public Referenced() { - } + public Referenced() {} /** * Indicates whether referenced refunds are enabled on the standalone terminal. * - * @param enableStandaloneRefunds Indicates whether referenced refunds are enabled on the standalone terminal. + * @param enableStandaloneRefunds Indicates whether referenced refunds are enabled on the + * standalone terminal. * @return the current {@code Referenced} instance, allowing for method chaining */ public Referenced enableStandaloneRefunds(Boolean enableStandaloneRefunds) { @@ -51,7 +39,9 @@ public Referenced enableStandaloneRefunds(Boolean enableStandaloneRefunds) { /** * Indicates whether referenced refunds are enabled on the standalone terminal. - * @return enableStandaloneRefunds Indicates whether referenced refunds are enabled on the standalone terminal. + * + * @return enableStandaloneRefunds Indicates whether referenced refunds are enabled on the + * standalone terminal. */ @JsonProperty(JSON_PROPERTY_ENABLE_STANDALONE_REFUNDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -62,7 +52,8 @@ public Boolean getEnableStandaloneRefunds() { /** * Indicates whether referenced refunds are enabled on the standalone terminal. * - * @param enableStandaloneRefunds Indicates whether referenced refunds are enabled on the standalone terminal. + * @param enableStandaloneRefunds Indicates whether referenced refunds are enabled on the + * standalone terminal. */ @JsonProperty(JSON_PROPERTY_ENABLE_STANDALONE_REFUNDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +61,7 @@ public void setEnableStandaloneRefunds(Boolean enableStandaloneRefunds) { this.enableStandaloneRefunds = enableStandaloneRefunds; } - /** - * Return true if this Referenced object is equal to o. - */ + /** Return true if this Referenced object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -94,14 +83,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Referenced {\n"); - sb.append(" enableStandaloneRefunds: ").append(toIndentedString(enableStandaloneRefunds)).append("\n"); + sb.append(" enableStandaloneRefunds: ") + .append(toIndentedString(enableStandaloneRefunds)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,7 +100,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Referenced given an JSON string * * @param jsonString JSON string @@ -120,11 +110,12 @@ private String toIndentedString(Object o) { public static Referenced fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Referenced.class); } -/** - * Convert an instance of Referenced to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Referenced to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Refunds.java b/src/main/java/com/adyen/model/management/Refunds.java index eab929294..2f9a6fcf5 100644 --- a/src/main/java/com/adyen/model/management/Refunds.java +++ b/src/main/java/com/adyen/model/management/Refunds.java @@ -2,38 +2,23 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.Referenced; -import com.adyen.model.management.Unreferenced; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Refunds - */ -@JsonPropertyOrder({ - Refunds.JSON_PROPERTY_REFERENCED, - Refunds.JSON_PROPERTY_UNREFERENCED -}) - +/** Refunds */ +@JsonPropertyOrder({Refunds.JSON_PROPERTY_REFERENCED, Refunds.JSON_PROPERTY_UNREFERENCED}) public class Refunds { public static final String JSON_PROPERTY_REFERENCED = "referenced"; private Referenced referenced; @@ -41,13 +26,12 @@ public class Refunds { public static final String JSON_PROPERTY_UNREFERENCED = "unreferenced"; private Unreferenced unreferenced; - public Refunds() { - } + public Refunds() {} /** * referenced * - * @param referenced + * @param referenced * @return the current {@code Refunds} instance, allowing for method chaining */ public Refunds referenced(Referenced referenced) { @@ -57,7 +41,8 @@ public Refunds referenced(Referenced referenced) { /** * Get referenced - * @return referenced + * + * @return referenced */ @JsonProperty(JSON_PROPERTY_REFERENCED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,7 +53,7 @@ public Referenced getReferenced() { /** * referenced * - * @param referenced + * @param referenced */ @JsonProperty(JSON_PROPERTY_REFERENCED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,7 +64,7 @@ public void setReferenced(Referenced referenced) { /** * unreferenced * - * @param unreferenced + * @param unreferenced * @return the current {@code Refunds} instance, allowing for method chaining */ public Refunds unreferenced(Unreferenced unreferenced) { @@ -89,7 +74,8 @@ public Refunds unreferenced(Unreferenced unreferenced) { /** * Get unreferenced - * @return unreferenced + * + * @return unreferenced */ @JsonProperty(JSON_PROPERTY_UNREFERENCED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,7 +86,7 @@ public Unreferenced getUnreferenced() { /** * unreferenced * - * @param unreferenced + * @param unreferenced */ @JsonProperty(JSON_PROPERTY_UNREFERENCED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,9 +94,7 @@ public void setUnreferenced(Unreferenced unreferenced) { this.unreferenced = unreferenced; } - /** - * Return true if this Refunds object is equal to o. - */ + /** Return true if this Refunds object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -120,8 +104,8 @@ public boolean equals(Object o) { return false; } Refunds refunds = (Refunds) o; - return Objects.equals(this.referenced, refunds.referenced) && - Objects.equals(this.unreferenced, refunds.unreferenced); + return Objects.equals(this.referenced, refunds.referenced) + && Objects.equals(this.unreferenced, refunds.unreferenced); } @Override @@ -140,8 +124,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -150,7 +133,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Refunds given an JSON string * * @param jsonString JSON string @@ -160,11 +143,12 @@ private String toIndentedString(Object o) { public static Refunds fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Refunds.class); } -/** - * Convert an instance of Refunds to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Refunds to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ReleaseUpdateDetails.java b/src/main/java/com/adyen/model/management/ReleaseUpdateDetails.java index e970f7591..109feebbd 100644 --- a/src/main/java/com/adyen/model/management/ReleaseUpdateDetails.java +++ b/src/main/java/com/adyen/model/management/ReleaseUpdateDetails.java @@ -2,42 +2,33 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * ReleaseUpdateDetails - */ +/** ReleaseUpdateDetails */ @JsonPropertyOrder({ ReleaseUpdateDetails.JSON_PROPERTY_TYPE, ReleaseUpdateDetails.JSON_PROPERTY_UPDATE_AT_FIRST_MAINTENANCE_CALL }) - public class ReleaseUpdateDetails { - /** - * Type of terminal action: Update Release. - */ + /** Type of terminal action: Update Release. */ public enum TypeEnum { - RELEASEUPDATE(String.valueOf("ReleaseUpdate")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -45,7 +36,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -66,7 +57,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -74,11 +69,11 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public static final String JSON_PROPERTY_UPDATE_AT_FIRST_MAINTENANCE_CALL = "updateAtFirstMaintenanceCall"; + public static final String JSON_PROPERTY_UPDATE_AT_FIRST_MAINTENANCE_CALL = + "updateAtFirstMaintenanceCall"; private Boolean updateAtFirstMaintenanceCall; - public ReleaseUpdateDetails() { - } + public ReleaseUpdateDetails() {} /** * Type of terminal action: Update Release. @@ -93,6 +88,7 @@ public ReleaseUpdateDetails type(TypeEnum type) { /** * Type of terminal action: Update Release. + * * @return type Type of terminal action: Update Release. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -113,9 +109,12 @@ public void setType(TypeEnum type) { } /** - * Boolean flag that tells if the terminal should update at the first next maintenance call. If false, terminal will update on its configured reboot time. + * Boolean flag that tells if the terminal should update at the first next maintenance call. If + * false, terminal will update on its configured reboot time. * - * @param updateAtFirstMaintenanceCall Boolean flag that tells if the terminal should update at the first next maintenance call. If false, terminal will update on its configured reboot time. + * @param updateAtFirstMaintenanceCall Boolean flag that tells if the terminal should update at + * the first next maintenance call. If false, terminal will update on its configured reboot + * time. * @return the current {@code ReleaseUpdateDetails} instance, allowing for method chaining */ public ReleaseUpdateDetails updateAtFirstMaintenanceCall(Boolean updateAtFirstMaintenanceCall) { @@ -124,8 +123,12 @@ public ReleaseUpdateDetails updateAtFirstMaintenanceCall(Boolean updateAtFirstMa } /** - * Boolean flag that tells if the terminal should update at the first next maintenance call. If false, terminal will update on its configured reboot time. - * @return updateAtFirstMaintenanceCall Boolean flag that tells if the terminal should update at the first next maintenance call. If false, terminal will update on its configured reboot time. + * Boolean flag that tells if the terminal should update at the first next maintenance call. If + * false, terminal will update on its configured reboot time. + * + * @return updateAtFirstMaintenanceCall Boolean flag that tells if the terminal should update at + * the first next maintenance call. If false, terminal will update on its configured reboot + * time. */ @JsonProperty(JSON_PROPERTY_UPDATE_AT_FIRST_MAINTENANCE_CALL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -134,9 +137,12 @@ public Boolean getUpdateAtFirstMaintenanceCall() { } /** - * Boolean flag that tells if the terminal should update at the first next maintenance call. If false, terminal will update on its configured reboot time. + * Boolean flag that tells if the terminal should update at the first next maintenance call. If + * false, terminal will update on its configured reboot time. * - * @param updateAtFirstMaintenanceCall Boolean flag that tells if the terminal should update at the first next maintenance call. If false, terminal will update on its configured reboot time. + * @param updateAtFirstMaintenanceCall Boolean flag that tells if the terminal should update at + * the first next maintenance call. If false, terminal will update on its configured reboot + * time. */ @JsonProperty(JSON_PROPERTY_UPDATE_AT_FIRST_MAINTENANCE_CALL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,9 +150,7 @@ public void setUpdateAtFirstMaintenanceCall(Boolean updateAtFirstMaintenanceCall this.updateAtFirstMaintenanceCall = updateAtFirstMaintenanceCall; } - /** - * Return true if this ReleaseUpdateDetails object is equal to o. - */ + /** Return true if this ReleaseUpdateDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +160,9 @@ public boolean equals(Object o) { return false; } ReleaseUpdateDetails releaseUpdateDetails = (ReleaseUpdateDetails) o; - return Objects.equals(this.type, releaseUpdateDetails.type) && - Objects.equals(this.updateAtFirstMaintenanceCall, releaseUpdateDetails.updateAtFirstMaintenanceCall); + return Objects.equals(this.type, releaseUpdateDetails.type) + && Objects.equals( + this.updateAtFirstMaintenanceCall, releaseUpdateDetails.updateAtFirstMaintenanceCall); } @Override @@ -170,14 +175,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ReleaseUpdateDetails {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" updateAtFirstMaintenanceCall: ").append(toIndentedString(updateAtFirstMaintenanceCall)).append("\n"); + sb.append(" updateAtFirstMaintenanceCall: ") + .append(toIndentedString(updateAtFirstMaintenanceCall)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +192,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ReleaseUpdateDetails given an JSON string * * @param jsonString JSON string * @return An instance of ReleaseUpdateDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to ReleaseUpdateDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ReleaseUpdateDetails */ public static ReleaseUpdateDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ReleaseUpdateDetails.class); } -/** - * Convert an instance of ReleaseUpdateDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ReleaseUpdateDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ReprocessAndroidAppResponse.java b/src/main/java/com/adyen/model/management/ReprocessAndroidAppResponse.java index 7f43e28ed..e447f2bdc 100644 --- a/src/main/java/com/adyen/model/management/ReprocessAndroidAppResponse.java +++ b/src/main/java/com/adyen/model/management/ReprocessAndroidAppResponse.java @@ -2,41 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ReprocessAndroidAppResponse - */ -@JsonPropertyOrder({ - ReprocessAndroidAppResponse.JSON_PROPERTY_MESSAGE -}) - +/** ReprocessAndroidAppResponse */ +@JsonPropertyOrder({ReprocessAndroidAppResponse.JSON_PROPERTY_MESSAGE}) public class ReprocessAndroidAppResponse { public static final String JSON_PROPERTY_MESSAGE = "Message"; private String message; - public ReprocessAndroidAppResponse() { - } + public ReprocessAndroidAppResponse() {} /** * The result of the reprocess. @@ -51,6 +38,7 @@ public ReprocessAndroidAppResponse message(String message) { /** * The result of the reprocess. + * * @return message The result of the reprocess. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -70,9 +58,7 @@ public void setMessage(String message) { this.message = message; } - /** - * Return true if this ReprocessAndroidAppResponse object is equal to o. - */ + /** Return true if this ReprocessAndroidAppResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +95,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ReprocessAndroidAppResponse given an JSON string * * @param jsonString JSON string * @return An instance of ReprocessAndroidAppResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to ReprocessAndroidAppResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ReprocessAndroidAppResponse */ - public static ReprocessAndroidAppResponse fromJson(String jsonString) throws JsonProcessingException { + public static ReprocessAndroidAppResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ReprocessAndroidAppResponse.class); } -/** - * Convert an instance of ReprocessAndroidAppResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ReprocessAndroidAppResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/RequestActivationResponse.java b/src/main/java/com/adyen/model/management/RequestActivationResponse.java index 453342ee5..d40af6ff3 100644 --- a/src/main/java/com/adyen/model/management/RequestActivationResponse.java +++ b/src/main/java/com/adyen/model/management/RequestActivationResponse.java @@ -2,36 +2,26 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * RequestActivationResponse - */ +/** RequestActivationResponse */ @JsonPropertyOrder({ RequestActivationResponse.JSON_PROPERTY_COMPANY_ID, RequestActivationResponse.JSON_PROPERTY_MERCHANT_ID }) - public class RequestActivationResponse { public static final String JSON_PROPERTY_COMPANY_ID = "companyId"; private String companyId; @@ -39,8 +29,7 @@ public class RequestActivationResponse { public static final String JSON_PROPERTY_MERCHANT_ID = "merchantId"; private String merchantId; - public RequestActivationResponse() { - } + public RequestActivationResponse() {} /** * The unique identifier of the company account. @@ -55,6 +44,7 @@ public RequestActivationResponse companyId(String companyId) { /** * The unique identifier of the company account. + * * @return companyId The unique identifier of the company account. */ @JsonProperty(JSON_PROPERTY_COMPANY_ID) @@ -87,6 +77,7 @@ public RequestActivationResponse merchantId(String merchantId) { /** * The unique identifier of the merchant account you requested to activate. + * * @return merchantId The unique identifier of the merchant account you requested to activate. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @@ -106,9 +97,7 @@ public void setMerchantId(String merchantId) { this.merchantId = merchantId; } - /** - * Return true if this RequestActivationResponse object is equal to o. - */ + /** Return true if this RequestActivationResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +107,8 @@ public boolean equals(Object o) { return false; } RequestActivationResponse requestActivationResponse = (RequestActivationResponse) o; - return Objects.equals(this.companyId, requestActivationResponse.companyId) && - Objects.equals(this.merchantId, requestActivationResponse.merchantId); + return Objects.equals(this.companyId, requestActivationResponse.companyId) + && Objects.equals(this.merchantId, requestActivationResponse.merchantId); } @Override @@ -138,8 +127,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +136,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RequestActivationResponse given an JSON string * * @param jsonString JSON string * @return An instance of RequestActivationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to RequestActivationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * RequestActivationResponse */ - public static RequestActivationResponse fromJson(String jsonString) throws JsonProcessingException { + public static RequestActivationResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RequestActivationResponse.class); } -/** - * Convert an instance of RequestActivationResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RequestActivationResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/RestServiceError.java b/src/main/java/com/adyen/model/management/RestServiceError.java index 2350868ff..06220e69a 100644 --- a/src/main/java/com/adyen/model/management/RestServiceError.java +++ b/src/main/java/com/adyen/model/management/RestServiceError.java @@ -2,34 +2,24 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.InvalidField; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * RestServiceError - */ +/** RestServiceError */ @JsonPropertyOrder({ RestServiceError.JSON_PROPERTY_DETAIL, RestServiceError.JSON_PROPERTY_ERROR_CODE, @@ -41,7 +31,6 @@ RestServiceError.JSON_PROPERTY_TITLE, RestServiceError.JSON_PROPERTY_TYPE }) - public class RestServiceError { public static final String JSON_PROPERTY_DETAIL = "detail"; private String detail; @@ -70,8 +59,7 @@ public class RestServiceError { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public RestServiceError() { - } + public RestServiceError() {} /** * A human-readable explanation specific to this occurrence of the problem. @@ -86,6 +74,7 @@ public RestServiceError detail(String detail) { /** * A human-readable explanation specific to this occurrence of the problem. + * * @return detail A human-readable explanation specific to this occurrence of the problem. */ @JsonProperty(JSON_PROPERTY_DETAIL) @@ -118,6 +107,7 @@ public RestServiceError errorCode(String errorCode) { /** * A code that identifies the problem type. + * * @return errorCode A code that identifies the problem type. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -150,6 +140,7 @@ public RestServiceError instance(String instance) { /** * A unique URI that identifies the specific occurrence of the problem. + * * @return instance A unique URI that identifies the specific occurrence of the problem. */ @JsonProperty(JSON_PROPERTY_INSTANCE) @@ -190,6 +181,7 @@ public RestServiceError addInvalidFieldsItem(InvalidField invalidFieldsItem) { /** * Detailed explanation of each validation error, when applicable. + * * @return invalidFields Detailed explanation of each validation error, when applicable. */ @JsonProperty(JSON_PROPERTY_INVALID_FIELDS) @@ -212,7 +204,8 @@ public void setInvalidFields(List invalidFields) { /** * A unique reference for the request, essentially the same as `pspReference`. * - * @param requestId A unique reference for the request, essentially the same as `pspReference`. + * @param requestId A unique reference for the request, essentially the same as + * `pspReference`. * @return the current {@code RestServiceError} instance, allowing for method chaining */ public RestServiceError requestId(String requestId) { @@ -222,7 +215,9 @@ public RestServiceError requestId(String requestId) { /** * A unique reference for the request, essentially the same as `pspReference`. - * @return requestId A unique reference for the request, essentially the same as `pspReference`. + * + * @return requestId A unique reference for the request, essentially the same as + * `pspReference`. */ @JsonProperty(JSON_PROPERTY_REQUEST_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -233,7 +228,8 @@ public String getRequestId() { /** * A unique reference for the request, essentially the same as `pspReference`. * - * @param requestId A unique reference for the request, essentially the same as `pspReference`. + * @param requestId A unique reference for the request, essentially the same as + * `pspReference`. */ @JsonProperty(JSON_PROPERTY_REQUEST_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,7 +240,7 @@ public void setRequestId(String requestId) { /** * response * - * @param response + * @param response * @return the current {@code RestServiceError} instance, allowing for method chaining */ public RestServiceError response(Object response) { @@ -254,7 +250,8 @@ public RestServiceError response(Object response) { /** * Get response - * @return response + * + * @return response */ @JsonProperty(JSON_PROPERTY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -265,7 +262,7 @@ public Object getResponse() { /** * response * - * @param response + * @param response */ @JsonProperty(JSON_PROPERTY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -286,6 +283,7 @@ public RestServiceError status(Integer status) { /** * The HTTP status code. + * * @return status The HTTP status code. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -318,6 +316,7 @@ public RestServiceError title(String title) { /** * A short, human-readable summary of the problem type. + * * @return title A short, human-readable summary of the problem type. */ @JsonProperty(JSON_PROPERTY_TITLE) @@ -338,9 +337,11 @@ public void setTitle(String title) { } /** - * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. + * A URI that identifies the problem type, pointing to human-readable documentation on this + * problem type. * - * @param type A URI that identifies the problem type, pointing to human-readable documentation on this problem type. + * @param type A URI that identifies the problem type, pointing to human-readable documentation on + * this problem type. * @return the current {@code RestServiceError} instance, allowing for method chaining */ public RestServiceError type(String type) { @@ -349,8 +350,11 @@ public RestServiceError type(String type) { } /** - * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. - * @return type A URI that identifies the problem type, pointing to human-readable documentation on this problem type. + * A URI that identifies the problem type, pointing to human-readable documentation on this + * problem type. + * + * @return type A URI that identifies the problem type, pointing to human-readable documentation + * on this problem type. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -359,9 +363,11 @@ public String getType() { } /** - * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. + * A URI that identifies the problem type, pointing to human-readable documentation on this + * problem type. * - * @param type A URI that identifies the problem type, pointing to human-readable documentation on this problem type. + * @param type A URI that identifies the problem type, pointing to human-readable documentation on + * this problem type. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -369,9 +375,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this RestServiceError object is equal to o. - */ + /** Return true if this RestServiceError object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -381,20 +385,21 @@ public boolean equals(Object o) { return false; } RestServiceError restServiceError = (RestServiceError) o; - return Objects.equals(this.detail, restServiceError.detail) && - Objects.equals(this.errorCode, restServiceError.errorCode) && - Objects.equals(this.instance, restServiceError.instance) && - Objects.equals(this.invalidFields, restServiceError.invalidFields) && - Objects.equals(this.requestId, restServiceError.requestId) && - Objects.equals(this.response, restServiceError.response) && - Objects.equals(this.status, restServiceError.status) && - Objects.equals(this.title, restServiceError.title) && - Objects.equals(this.type, restServiceError.type); + return Objects.equals(this.detail, restServiceError.detail) + && Objects.equals(this.errorCode, restServiceError.errorCode) + && Objects.equals(this.instance, restServiceError.instance) + && Objects.equals(this.invalidFields, restServiceError.invalidFields) + && Objects.equals(this.requestId, restServiceError.requestId) + && Objects.equals(this.response, restServiceError.response) + && Objects.equals(this.status, restServiceError.status) + && Objects.equals(this.title, restServiceError.title) + && Objects.equals(this.type, restServiceError.type); } @Override public int hashCode() { - return Objects.hash(detail, errorCode, instance, invalidFields, requestId, response, status, title, type); + return Objects.hash( + detail, errorCode, instance, invalidFields, requestId, response, status, title, type); } @Override @@ -415,8 +420,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -425,7 +429,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RestServiceError given an JSON string * * @param jsonString JSON string @@ -435,11 +439,12 @@ private String toIndentedString(Object o) { public static RestServiceError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RestServiceError.class); } -/** - * Convert an instance of RestServiceError to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RestServiceError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ScheduleTerminalActionsRequest.java b/src/main/java/com/adyen/model/management/ScheduleTerminalActionsRequest.java index 17678b8a7..90da97ae3 100644 --- a/src/main/java/com/adyen/model/management/ScheduleTerminalActionsRequest.java +++ b/src/main/java/com/adyen/model/management/ScheduleTerminalActionsRequest.java @@ -2,41 +2,30 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.ScheduleTerminalActionsRequestActionDetails; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * ScheduleTerminalActionsRequest - */ +/** ScheduleTerminalActionsRequest */ @JsonPropertyOrder({ ScheduleTerminalActionsRequest.JSON_PROPERTY_ACTION_DETAILS, ScheduleTerminalActionsRequest.JSON_PROPERTY_SCHEDULED_AT, ScheduleTerminalActionsRequest.JSON_PROPERTY_STORE_ID, ScheduleTerminalActionsRequest.JSON_PROPERTY_TERMINAL_IDS }) - public class ScheduleTerminalActionsRequest { public static final String JSON_PROPERTY_ACTION_DETAILS = "actionDetails"; private ScheduleTerminalActionsRequestActionDetails actionDetails; @@ -50,23 +39,25 @@ public class ScheduleTerminalActionsRequest { public static final String JSON_PROPERTY_TERMINAL_IDS = "terminalIds"; private List terminalIds; - public ScheduleTerminalActionsRequest() { - } + public ScheduleTerminalActionsRequest() {} /** * actionDetails * - * @param actionDetails - * @return the current {@code ScheduleTerminalActionsRequest} instance, allowing for method chaining + * @param actionDetails + * @return the current {@code ScheduleTerminalActionsRequest} instance, allowing for method + * chaining */ - public ScheduleTerminalActionsRequest actionDetails(ScheduleTerminalActionsRequestActionDetails actionDetails) { + public ScheduleTerminalActionsRequest actionDetails( + ScheduleTerminalActionsRequestActionDetails actionDetails) { this.actionDetails = actionDetails; return this; } /** * Get actionDetails - * @return actionDetails + * + * @return actionDetails */ @JsonProperty(JSON_PROPERTY_ACTION_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -77,7 +68,7 @@ public ScheduleTerminalActionsRequestActionDetails getActionDetails() { /** * actionDetails * - * @param actionDetails + * @param actionDetails */ @JsonProperty(JSON_PROPERTY_ACTION_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -86,10 +77,22 @@ public void setActionDetails(ScheduleTerminalActionsRequestActionDetails actionD } /** - * The date and time when the action should happen. Format: [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) after the specified date and time in the time zone of the terminal. An empty value causes the action to be sent as soon as possible: at the next maintenance call. + * The date and time when the action should happen. Format: [RFC + * 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. + * For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance + * call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) + * after the specified date and time in the time zone of the terminal. An empty value causes the + * action to be sent as soon as possible: at the next maintenance call. * - * @param scheduledAt The date and time when the action should happen. Format: [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) after the specified date and time in the time zone of the terminal. An empty value causes the action to be sent as soon as possible: at the next maintenance call. - * @return the current {@code ScheduleTerminalActionsRequest} instance, allowing for method chaining + * @param scheduledAt The date and time when the action should happen. Format: [RFC + * 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time + * offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first + * [maintenance + * call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) + * after the specified date and time in the time zone of the terminal. An empty value causes + * the action to be sent as soon as possible: at the next maintenance call. + * @return the current {@code ScheduleTerminalActionsRequest} instance, allowing for method + * chaining */ public ScheduleTerminalActionsRequest scheduledAt(String scheduledAt) { this.scheduledAt = scheduledAt; @@ -97,8 +100,20 @@ public ScheduleTerminalActionsRequest scheduledAt(String scheduledAt) { } /** - * The date and time when the action should happen. Format: [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) after the specified date and time in the time zone of the terminal. An empty value causes the action to be sent as soon as possible: at the next maintenance call. - * @return scheduledAt The date and time when the action should happen. Format: [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) after the specified date and time in the time zone of the terminal. An empty value causes the action to be sent as soon as possible: at the next maintenance call. + * The date and time when the action should happen. Format: [RFC + * 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. + * For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance + * call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) + * after the specified date and time in the time zone of the terminal. An empty value causes the + * action to be sent as soon as possible: at the next maintenance call. + * + * @return scheduledAt The date and time when the action should happen. Format: [RFC + * 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time + * offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first + * [maintenance + * call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) + * after the specified date and time in the time zone of the terminal. An empty value causes + * the action to be sent as soon as possible: at the next maintenance call. */ @JsonProperty(JSON_PROPERTY_SCHEDULED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,9 +122,20 @@ public String getScheduledAt() { } /** - * The date and time when the action should happen. Format: [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) after the specified date and time in the time zone of the terminal. An empty value causes the action to be sent as soon as possible: at the next maintenance call. + * The date and time when the action should happen. Format: [RFC + * 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. + * For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance + * call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) + * after the specified date and time in the time zone of the terminal. An empty value causes the + * action to be sent as soon as possible: at the next maintenance call. * - * @param scheduledAt The date and time when the action should happen. Format: [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) after the specified date and time in the time zone of the terminal. An empty value causes the action to be sent as soon as possible: at the next maintenance call. + * @param scheduledAt The date and time when the action should happen. Format: [RFC + * 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time + * offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first + * [maintenance + * call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) + * after the specified date and time in the time zone of the terminal. An empty value causes + * the action to be sent as soon as possible: at the next maintenance call. */ @JsonProperty(JSON_PROPERTY_SCHEDULED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,10 +144,15 @@ public void setScheduledAt(String scheduledAt) { } /** - * The unique ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, all terminals in the `terminalIds` list must be assigned to this store. + * The unique ID of the + * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, + * all terminals in the `terminalIds` list must be assigned to this store. * - * @param storeId The unique ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, all terminals in the `terminalIds` list must be assigned to this store. - * @return the current {@code ScheduleTerminalActionsRequest} instance, allowing for method chaining + * @param storeId The unique ID of the + * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If + * present, all terminals in the `terminalIds` list must be assigned to this store. + * @return the current {@code ScheduleTerminalActionsRequest} instance, allowing for method + * chaining */ public ScheduleTerminalActionsRequest storeId(String storeId) { this.storeId = storeId; @@ -129,8 +160,13 @@ public ScheduleTerminalActionsRequest storeId(String storeId) { } /** - * The unique ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, all terminals in the `terminalIds` list must be assigned to this store. - * @return storeId The unique ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, all terminals in the `terminalIds` list must be assigned to this store. + * The unique ID of the + * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, + * all terminals in the `terminalIds` list must be assigned to this store. + * + * @return storeId The unique ID of the + * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If + * present, all terminals in the `terminalIds` list must be assigned to this store. */ @JsonProperty(JSON_PROPERTY_STORE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,9 +175,13 @@ public String getStoreId() { } /** - * The unique ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, all terminals in the `terminalIds` list must be assigned to this store. + * The unique ID of the + * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, + * all terminals in the `terminalIds` list must be assigned to this store. * - * @param storeId The unique ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, all terminals in the `terminalIds` list must be assigned to this store. + * @param storeId The unique ID of the + * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If + * present, all terminals in the `terminalIds` list must be assigned to this store. */ @JsonProperty(JSON_PROPERTY_STORE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,10 +190,17 @@ public void setStoreId(String storeId) { } /** - * A list of unique IDs of the terminals to apply the action to. You can extract the IDs from the [GET `/terminals`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/terminals) response. Maximum length: 100 IDs. + * A list of unique IDs of the terminals to apply the action to. You can extract the IDs from the + * [GET + * `/terminals`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/terminals) + * response. Maximum length: 100 IDs. * - * @param terminalIds A list of unique IDs of the terminals to apply the action to. You can extract the IDs from the [GET `/terminals`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/terminals) response. Maximum length: 100 IDs. - * @return the current {@code ScheduleTerminalActionsRequest} instance, allowing for method chaining + * @param terminalIds A list of unique IDs of the terminals to apply the action to. You can + * extract the IDs from the [GET + * `/terminals`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/terminals) + * response. Maximum length: 100 IDs. + * @return the current {@code ScheduleTerminalActionsRequest} instance, allowing for method + * chaining */ public ScheduleTerminalActionsRequest terminalIds(List terminalIds) { this.terminalIds = terminalIds; @@ -169,8 +216,15 @@ public ScheduleTerminalActionsRequest addTerminalIdsItem(String terminalIdsItem) } /** - * A list of unique IDs of the terminals to apply the action to. You can extract the IDs from the [GET `/terminals`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/terminals) response. Maximum length: 100 IDs. - * @return terminalIds A list of unique IDs of the terminals to apply the action to. You can extract the IDs from the [GET `/terminals`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/terminals) response. Maximum length: 100 IDs. + * A list of unique IDs of the terminals to apply the action to. You can extract the IDs from the + * [GET + * `/terminals`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/terminals) + * response. Maximum length: 100 IDs. + * + * @return terminalIds A list of unique IDs of the terminals to apply the action to. You can + * extract the IDs from the [GET + * `/terminals`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/terminals) + * response. Maximum length: 100 IDs. */ @JsonProperty(JSON_PROPERTY_TERMINAL_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,9 +233,15 @@ public List getTerminalIds() { } /** - * A list of unique IDs of the terminals to apply the action to. You can extract the IDs from the [GET `/terminals`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/terminals) response. Maximum length: 100 IDs. + * A list of unique IDs of the terminals to apply the action to. You can extract the IDs from the + * [GET + * `/terminals`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/terminals) + * response. Maximum length: 100 IDs. * - * @param terminalIds A list of unique IDs of the terminals to apply the action to. You can extract the IDs from the [GET `/terminals`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/terminals) response. Maximum length: 100 IDs. + * @param terminalIds A list of unique IDs of the terminals to apply the action to. You can + * extract the IDs from the [GET + * `/terminals`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/terminals) + * response. Maximum length: 100 IDs. */ @JsonProperty(JSON_PROPERTY_TERMINAL_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,9 +249,7 @@ public void setTerminalIds(List terminalIds) { this.terminalIds = terminalIds; } - /** - * Return true if this ScheduleTerminalActionsRequest object is equal to o. - */ + /** Return true if this ScheduleTerminalActionsRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -200,11 +258,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ScheduleTerminalActionsRequest scheduleTerminalActionsRequest = (ScheduleTerminalActionsRequest) o; - return Objects.equals(this.actionDetails, scheduleTerminalActionsRequest.actionDetails) && - Objects.equals(this.scheduledAt, scheduleTerminalActionsRequest.scheduledAt) && - Objects.equals(this.storeId, scheduleTerminalActionsRequest.storeId) && - Objects.equals(this.terminalIds, scheduleTerminalActionsRequest.terminalIds); + ScheduleTerminalActionsRequest scheduleTerminalActionsRequest = + (ScheduleTerminalActionsRequest) o; + return Objects.equals(this.actionDetails, scheduleTerminalActionsRequest.actionDetails) + && Objects.equals(this.scheduledAt, scheduleTerminalActionsRequest.scheduledAt) + && Objects.equals(this.storeId, scheduleTerminalActionsRequest.storeId) + && Objects.equals(this.terminalIds, scheduleTerminalActionsRequest.terminalIds); } @Override @@ -225,8 +284,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -235,21 +293,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ScheduleTerminalActionsRequest given an JSON string * * @param jsonString JSON string * @return An instance of ScheduleTerminalActionsRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to ScheduleTerminalActionsRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ScheduleTerminalActionsRequest */ - public static ScheduleTerminalActionsRequest fromJson(String jsonString) throws JsonProcessingException { + public static ScheduleTerminalActionsRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ScheduleTerminalActionsRequest.class); } -/** - * Convert an instance of ScheduleTerminalActionsRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ScheduleTerminalActionsRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ScheduleTerminalActionsRequestActionDetails.java b/src/main/java/com/adyen/model/management/ScheduleTerminalActionsRequestActionDetails.java index c50b298d1..94436e76c 100644 --- a/src/main/java/com/adyen/model/management/ScheduleTerminalActionsRequestActionDetails.java +++ b/src/main/java/com/adyen/model/management/ScheduleTerminalActionsRequestActionDetails.java @@ -2,48 +2,19 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.InstallAndroidAppDetails; -import com.adyen.model.management.InstallAndroidCertificateDetails; -import com.adyen.model.management.ReleaseUpdateDetails; -import com.adyen.model.management.UninstallAndroidAppDetails; -import com.adyen.model.management.UninstallAndroidCertificateDetails; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -import com.fasterxml.jackson.core.type.TypeReference; - -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.core.Response; -import java.io.IOException; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; - import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -53,355 +24,403 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import jakarta.ws.rs.core.GenericType; +import java.io.IOException; +import java.util.*; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.logging.Level; +import java.util.logging.Logger; - -@JsonDeserialize(using = ScheduleTerminalActionsRequestActionDetails.ScheduleTerminalActionsRequestActionDetailsDeserializer.class) -@JsonSerialize(using = ScheduleTerminalActionsRequestActionDetails.ScheduleTerminalActionsRequestActionDetailsSerializer.class) +@JsonDeserialize( + using = + ScheduleTerminalActionsRequestActionDetails + .ScheduleTerminalActionsRequestActionDetailsDeserializer.class) +@JsonSerialize( + using = + ScheduleTerminalActionsRequestActionDetails + .ScheduleTerminalActionsRequestActionDetailsSerializer.class) public class ScheduleTerminalActionsRequestActionDetails extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(ScheduleTerminalActionsRequestActionDetails.class.getName()); - - public static class ScheduleTerminalActionsRequestActionDetailsSerializer extends StdSerializer { - public ScheduleTerminalActionsRequestActionDetailsSerializer(Class t) { - super(t); - } - - public ScheduleTerminalActionsRequestActionDetailsSerializer() { - this(null); - } - - @Override - public void serialize(ScheduleTerminalActionsRequestActionDetails value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } + private static final Logger log = + Logger.getLogger(ScheduleTerminalActionsRequestActionDetails.class.getName()); + + public static class ScheduleTerminalActionsRequestActionDetailsSerializer + extends StdSerializer { + public ScheduleTerminalActionsRequestActionDetailsSerializer( + Class t) { + super(t); } - public static class ScheduleTerminalActionsRequestActionDetailsDeserializer extends StdDeserializer { - public ScheduleTerminalActionsRequestActionDetailsDeserializer() { - this(ScheduleTerminalActionsRequestActionDetails.class); - } - - public ScheduleTerminalActionsRequestActionDetailsDeserializer(Class vc) { - super(vc); - } - - @Override - public ScheduleTerminalActionsRequestActionDetails deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize InstallAndroidAppDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(InstallAndroidAppDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(InstallAndroidAppDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'InstallAndroidAppDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'InstallAndroidAppDetails'", e); - } - - // deserialize InstallAndroidCertificateDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(InstallAndroidCertificateDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(InstallAndroidCertificateDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'InstallAndroidCertificateDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'InstallAndroidCertificateDetails'", e); - } - - // deserialize ReleaseUpdateDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(ReleaseUpdateDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(ReleaseUpdateDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'ReleaseUpdateDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'ReleaseUpdateDetails'", e); - } - - // deserialize UninstallAndroidAppDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(UninstallAndroidAppDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(UninstallAndroidAppDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'UninstallAndroidAppDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'UninstallAndroidAppDetails'", e); - } - - // deserialize UninstallAndroidCertificateDetails - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(UninstallAndroidCertificateDetails.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(UninstallAndroidCertificateDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'UninstallAndroidCertificateDetails'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'UninstallAndroidCertificateDetails'", e); - } - - if (match == 1) { - ScheduleTerminalActionsRequestActionDetails ret = new ScheduleTerminalActionsRequestActionDetails(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException(String.format("Failed deserialization for ScheduleTerminalActionsRequestActionDetails: %d classes match result, expected 1", match)); - } - - /** - * Handle deserialization of the 'null' value. - */ - @Override - public ScheduleTerminalActionsRequestActionDetails getNullValue(DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "ScheduleTerminalActionsRequestActionDetails cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public ScheduleTerminalActionsRequestActionDetails() { - super("oneOf", Boolean.FALSE); - } - - public ScheduleTerminalActionsRequestActionDetails(InstallAndroidAppDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public ScheduleTerminalActionsRequestActionDetails(InstallAndroidCertificateDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public ScheduleTerminalActionsRequestActionDetails(ReleaseUpdateDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + public ScheduleTerminalActionsRequestActionDetailsSerializer() { + this(null); } - public ScheduleTerminalActionsRequestActionDetails(UninstallAndroidAppDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public ScheduleTerminalActionsRequestActionDetails(UninstallAndroidCertificateDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + @Override + public void serialize( + ScheduleTerminalActionsRequestActionDetails value, + JsonGenerator jgen, + SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); } + } - static { - schemas.put("InstallAndroidAppDetails", new GenericType() { - }); - schemas.put("InstallAndroidCertificateDetails", new GenericType() { - }); - schemas.put("ReleaseUpdateDetails", new GenericType() { - }); - schemas.put("UninstallAndroidAppDetails", new GenericType() { - }); - schemas.put("UninstallAndroidCertificateDetails", new GenericType() { - }); - JSON.registerDescendants(ScheduleTerminalActionsRequestActionDetails.class, Collections.unmodifiableMap(schemas)); + public static class ScheduleTerminalActionsRequestActionDetailsDeserializer + extends StdDeserializer { + public ScheduleTerminalActionsRequestActionDetailsDeserializer() { + this(ScheduleTerminalActionsRequestActionDetails.class); } - @Override - public Map> getSchemas() { - return ScheduleTerminalActionsRequestActionDetails.schemas; + public ScheduleTerminalActionsRequestActionDetailsDeserializer(Class vc) { + super(vc); } - /** - * Set the instance that matches the oneOf child schema, check - * the instance parameter is valid against the oneOf child schemas: - * InstallAndroidAppDetails, InstallAndroidCertificateDetails, ReleaseUpdateDetails, UninstallAndroidAppDetails, UninstallAndroidCertificateDetails - * - * It could be an instance of the 'oneOf' schemas. - * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). - */ @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(InstallAndroidAppDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + public ScheduleTerminalActionsRequestActionDetails deserialize( + JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize InstallAndroidAppDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(InstallAndroidAppDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(InstallAndroidAppDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'InstallAndroidAppDetails'"); + } } - - if (JSON.isInstanceOf(InstallAndroidCertificateDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'InstallAndroidAppDetails'", e); + } + + // deserialize InstallAndroidCertificateDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(InstallAndroidCertificateDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(InstallAndroidCertificateDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'InstallAndroidCertificateDetails'"); + } } - - if (JSON.isInstanceOf(ReleaseUpdateDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log( + Level.FINER, "Input data does not match schema 'InstallAndroidCertificateDetails'", e); + } + + // deserialize ReleaseUpdateDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(ReleaseUpdateDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(ReleaseUpdateDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'ReleaseUpdateDetails'"); + } } - - if (JSON.isInstanceOf(UninstallAndroidAppDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'ReleaseUpdateDetails'", e); + } + + // deserialize UninstallAndroidAppDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(UninstallAndroidAppDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(UninstallAndroidAppDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'UninstallAndroidAppDetails'"); + } } - - if (JSON.isInstanceOf(UninstallAndroidCertificateDetails.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'UninstallAndroidAppDetails'", e); + } + + // deserialize UninstallAndroidCertificateDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(UninstallAndroidCertificateDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(UninstallAndroidCertificateDetails.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'UninstallAndroidCertificateDetails'"); + } } - - throw new RuntimeException("Invalid instance type. Must be InstallAndroidAppDetails, InstallAndroidCertificateDetails, ReleaseUpdateDetails, UninstallAndroidAppDetails, UninstallAndroidCertificateDetails"); + } catch (Exception e) { + // deserialization failed, continue + log.log( + Level.FINER, + "Input data does not match schema 'UninstallAndroidCertificateDetails'", + e); + } + + if (match == 1) { + ScheduleTerminalActionsRequestActionDetails ret = + new ScheduleTerminalActionsRequestActionDetails(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException( + String.format( + "Failed deserialization for ScheduleTerminalActionsRequestActionDetails: %d classes match result, expected 1", + match)); } - /** - * Get the actual instance, which can be the following: - * InstallAndroidAppDetails, InstallAndroidCertificateDetails, ReleaseUpdateDetails, UninstallAndroidAppDetails, UninstallAndroidCertificateDetails - * - * @return The actual instance (InstallAndroidAppDetails, InstallAndroidCertificateDetails, ReleaseUpdateDetails, UninstallAndroidAppDetails, UninstallAndroidCertificateDetails) - */ + /** Handle deserialization of the 'null' value. */ @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `InstallAndroidAppDetails`. If the actual instance is not `InstallAndroidAppDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `InstallAndroidAppDetails` - * @throws ClassCastException if the instance is not `InstallAndroidAppDetails` - */ - public InstallAndroidAppDetails getInstallAndroidAppDetails() throws ClassCastException { - return (InstallAndroidAppDetails)super.getActualInstance(); + public ScheduleTerminalActionsRequestActionDetails getNullValue(DeserializationContext ctxt) + throws JsonMappingException { + throw new JsonMappingException( + ctxt.getParser(), "ScheduleTerminalActionsRequestActionDetails cannot be null"); } - - /** - * Get the actual instance of `InstallAndroidCertificateDetails`. If the actual instance is not `InstallAndroidCertificateDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `InstallAndroidCertificateDetails` - * @throws ClassCastException if the instance is not `InstallAndroidCertificateDetails` - */ - public InstallAndroidCertificateDetails getInstallAndroidCertificateDetails() throws ClassCastException { - return (InstallAndroidCertificateDetails)super.getActualInstance(); + } + + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public ScheduleTerminalActionsRequestActionDetails() { + super("oneOf", Boolean.FALSE); + } + + public ScheduleTerminalActionsRequestActionDetails(InstallAndroidAppDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public ScheduleTerminalActionsRequestActionDetails(InstallAndroidCertificateDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public ScheduleTerminalActionsRequestActionDetails(ReleaseUpdateDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public ScheduleTerminalActionsRequestActionDetails(UninstallAndroidAppDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public ScheduleTerminalActionsRequestActionDetails(UninstallAndroidCertificateDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("InstallAndroidAppDetails", new GenericType() {}); + schemas.put( + "InstallAndroidCertificateDetails", new GenericType() {}); + schemas.put("ReleaseUpdateDetails", new GenericType() {}); + schemas.put("UninstallAndroidAppDetails", new GenericType() {}); + schemas.put( + "UninstallAndroidCertificateDetails", + new GenericType() {}); + JSON.registerDescendants( + ScheduleTerminalActionsRequestActionDetails.class, Collections.unmodifiableMap(schemas)); + } + + @Override + public Map> getSchemas() { + return ScheduleTerminalActionsRequestActionDetails.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check the instance parameter is valid + * against the oneOf child schemas: InstallAndroidAppDetails, InstallAndroidCertificateDetails, + * ReleaseUpdateDetails, UninstallAndroidAppDetails, UninstallAndroidCertificateDetails + * + *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a + * composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(InstallAndroidAppDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `ReleaseUpdateDetails`. If the actual instance is not `ReleaseUpdateDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `ReleaseUpdateDetails` - * @throws ClassCastException if the instance is not `ReleaseUpdateDetails` - */ - public ReleaseUpdateDetails getReleaseUpdateDetails() throws ClassCastException { - return (ReleaseUpdateDetails)super.getActualInstance(); + if (JSON.isInstanceOf(InstallAndroidCertificateDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `UninstallAndroidAppDetails`. If the actual instance is not `UninstallAndroidAppDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `UninstallAndroidAppDetails` - * @throws ClassCastException if the instance is not `UninstallAndroidAppDetails` - */ - public UninstallAndroidAppDetails getUninstallAndroidAppDetails() throws ClassCastException { - return (UninstallAndroidAppDetails)super.getActualInstance(); + if (JSON.isInstanceOf(ReleaseUpdateDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `UninstallAndroidCertificateDetails`. If the actual instance is not `UninstallAndroidCertificateDetails`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `UninstallAndroidCertificateDetails` - * @throws ClassCastException if the instance is not `UninstallAndroidCertificateDetails` - */ - public UninstallAndroidCertificateDetails getUninstallAndroidCertificateDetails() throws ClassCastException { - return (UninstallAndroidCertificateDetails)super.getActualInstance(); - } - - - /** - * Create an instance of ScheduleTerminalActionsRequestActionDetails given an JSON string - * - * @param jsonString JSON string - * @return An instance of ScheduleTerminalActionsRequestActionDetails - * @throws IOException if the JSON string is invalid with respect to ScheduleTerminalActionsRequestActionDetails - */ - public static ScheduleTerminalActionsRequestActionDetails fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, ScheduleTerminalActionsRequestActionDetails.class); + if (JSON.isInstanceOf(UninstallAndroidAppDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Convert an instance of ScheduleTerminalActionsRequestActionDetails to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); + if (JSON.isInstanceOf(UninstallAndroidCertificateDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } + throw new RuntimeException( + "Invalid instance type. Must be InstallAndroidAppDetails, InstallAndroidCertificateDetails, ReleaseUpdateDetails, UninstallAndroidAppDetails, UninstallAndroidCertificateDetails"); + } + + /** + * Get the actual instance, which can be the following: InstallAndroidAppDetails, + * InstallAndroidCertificateDetails, ReleaseUpdateDetails, UninstallAndroidAppDetails, + * UninstallAndroidCertificateDetails + * + * @return The actual instance (InstallAndroidAppDetails, InstallAndroidCertificateDetails, + * ReleaseUpdateDetails, UninstallAndroidAppDetails, UninstallAndroidCertificateDetails) + */ + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `InstallAndroidAppDetails`. If the actual instance is not + * `InstallAndroidAppDetails`, the ClassCastException will be thrown. + * + * @return The actual instance of `InstallAndroidAppDetails` + * @throws ClassCastException if the instance is not `InstallAndroidAppDetails` + */ + public InstallAndroidAppDetails getInstallAndroidAppDetails() throws ClassCastException { + return (InstallAndroidAppDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `InstallAndroidCertificateDetails`. If the actual instance is not + * `InstallAndroidCertificateDetails`, the ClassCastException will be thrown. + * + * @return The actual instance of `InstallAndroidCertificateDetails` + * @throws ClassCastException if the instance is not `InstallAndroidCertificateDetails` + */ + public InstallAndroidCertificateDetails getInstallAndroidCertificateDetails() + throws ClassCastException { + return (InstallAndroidCertificateDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `ReleaseUpdateDetails`. If the actual instance is not + * `ReleaseUpdateDetails`, the ClassCastException will be thrown. + * + * @return The actual instance of `ReleaseUpdateDetails` + * @throws ClassCastException if the instance is not `ReleaseUpdateDetails` + */ + public ReleaseUpdateDetails getReleaseUpdateDetails() throws ClassCastException { + return (ReleaseUpdateDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `UninstallAndroidAppDetails`. If the actual instance is not + * `UninstallAndroidAppDetails`, the ClassCastException will be thrown. + * + * @return The actual instance of `UninstallAndroidAppDetails` + * @throws ClassCastException if the instance is not `UninstallAndroidAppDetails` + */ + public UninstallAndroidAppDetails getUninstallAndroidAppDetails() throws ClassCastException { + return (UninstallAndroidAppDetails) super.getActualInstance(); + } + + /** + * Get the actual instance of `UninstallAndroidCertificateDetails`. If the actual instance is not + * `UninstallAndroidCertificateDetails`, the ClassCastException will be thrown. + * + * @return The actual instance of `UninstallAndroidCertificateDetails` + * @throws ClassCastException if the instance is not `UninstallAndroidCertificateDetails` + */ + public UninstallAndroidCertificateDetails getUninstallAndroidCertificateDetails() + throws ClassCastException { + return (UninstallAndroidCertificateDetails) super.getActualInstance(); + } + + /** + * Create an instance of ScheduleTerminalActionsRequestActionDetails given an JSON string + * + * @param jsonString JSON string + * @return An instance of ScheduleTerminalActionsRequestActionDetails + * @throws IOException if the JSON string is invalid with respect to + * ScheduleTerminalActionsRequestActionDetails + */ + public static ScheduleTerminalActionsRequestActionDetails fromJson(String jsonString) + throws IOException { + return JSON.getMapper() + .readValue(jsonString, ScheduleTerminalActionsRequestActionDetails.class); + } + + /** + * Convert an instance of ScheduleTerminalActionsRequestActionDetails to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } } diff --git a/src/main/java/com/adyen/model/management/ScheduleTerminalActionsResponse.java b/src/main/java/com/adyen/model/management/ScheduleTerminalActionsResponse.java index d68b36b2a..3fbfc2649 100644 --- a/src/main/java/com/adyen/model/management/ScheduleTerminalActionsResponse.java +++ b/src/main/java/com/adyen/model/management/ScheduleTerminalActionsResponse.java @@ -2,37 +2,26 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.ScheduleTerminalActionsRequestActionDetails; -import com.adyen.model.management.TerminalActionScheduleDetail; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; -import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -/** - * ScheduleTerminalActionsResponse - */ +/** ScheduleTerminalActionsResponse */ @JsonPropertyOrder({ ScheduleTerminalActionsResponse.JSON_PROPERTY_ACTION_DETAILS, ScheduleTerminalActionsResponse.JSON_PROPERTY_ITEMS, @@ -42,7 +31,6 @@ ScheduleTerminalActionsResponse.JSON_PROPERTY_TOTAL_ERRORS, ScheduleTerminalActionsResponse.JSON_PROPERTY_TOTAL_SCHEDULED }) - public class ScheduleTerminalActionsResponse { public static final String JSON_PROPERTY_ACTION_DETAILS = "actionDetails"; private ScheduleTerminalActionsRequestActionDetails actionDetails; @@ -65,23 +53,25 @@ public class ScheduleTerminalActionsResponse { public static final String JSON_PROPERTY_TOTAL_SCHEDULED = "totalScheduled"; private Integer totalScheduled; - public ScheduleTerminalActionsResponse() { - } + public ScheduleTerminalActionsResponse() {} /** * actionDetails * - * @param actionDetails - * @return the current {@code ScheduleTerminalActionsResponse} instance, allowing for method chaining + * @param actionDetails + * @return the current {@code ScheduleTerminalActionsResponse} instance, allowing for method + * chaining */ - public ScheduleTerminalActionsResponse actionDetails(ScheduleTerminalActionsRequestActionDetails actionDetails) { + public ScheduleTerminalActionsResponse actionDetails( + ScheduleTerminalActionsRequestActionDetails actionDetails) { this.actionDetails = actionDetails; return this; } /** * Get actionDetails - * @return actionDetails + * + * @return actionDetails */ @JsonProperty(JSON_PROPERTY_ACTION_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -92,7 +82,7 @@ public ScheduleTerminalActionsRequestActionDetails getActionDetails() { /** * actionDetails * - * @param actionDetails + * @param actionDetails */ @JsonProperty(JSON_PROPERTY_ACTION_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,10 +91,13 @@ public void setActionDetails(ScheduleTerminalActionsRequestActionDetails actionD } /** - * A list containing a terminal ID and an action ID for each terminal that the action was scheduled for. + * A list containing a terminal ID and an action ID for each terminal that the action was + * scheduled for. * - * @param items A list containing a terminal ID and an action ID for each terminal that the action was scheduled for. - * @return the current {@code ScheduleTerminalActionsResponse} instance, allowing for method chaining + * @param items A list containing a terminal ID and an action ID for each terminal that the action + * was scheduled for. + * @return the current {@code ScheduleTerminalActionsResponse} instance, allowing for method + * chaining */ public ScheduleTerminalActionsResponse items(List items) { this.items = items; @@ -120,8 +113,11 @@ public ScheduleTerminalActionsResponse addItemsItem(TerminalActionScheduleDetail } /** - * A list containing a terminal ID and an action ID for each terminal that the action was scheduled for. - * @return items A list containing a terminal ID and an action ID for each terminal that the action was scheduled for. + * A list containing a terminal ID and an action ID for each terminal that the action was + * scheduled for. + * + * @return items A list containing a terminal ID and an action ID for each terminal that the + * action was scheduled for. */ @JsonProperty(JSON_PROPERTY_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -130,9 +126,11 @@ public List getItems() { } /** - * A list containing a terminal ID and an action ID for each terminal that the action was scheduled for. + * A list containing a terminal ID and an action ID for each terminal that the action was + * scheduled for. * - * @param items A list containing a terminal ID and an action ID for each terminal that the action was scheduled for. + * @param items A list containing a terminal ID and an action ID for each terminal that the action + * was scheduled for. */ @JsonProperty(JSON_PROPERTY_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -141,10 +139,22 @@ public void setItems(List items) { } /** - * The date and time when the action should happen. Format: [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) after the specified date and time in the time zone of the terminal. An empty value causes the action to be sent as soon as possible: at the next maintenance call. + * The date and time when the action should happen. Format: [RFC + * 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. + * For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance + * call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) + * after the specified date and time in the time zone of the terminal. An empty value causes the + * action to be sent as soon as possible: at the next maintenance call. * - * @param scheduledAt The date and time when the action should happen. Format: [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) after the specified date and time in the time zone of the terminal. An empty value causes the action to be sent as soon as possible: at the next maintenance call. - * @return the current {@code ScheduleTerminalActionsResponse} instance, allowing for method chaining + * @param scheduledAt The date and time when the action should happen. Format: [RFC + * 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time + * offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first + * [maintenance + * call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) + * after the specified date and time in the time zone of the terminal. An empty value causes + * the action to be sent as soon as possible: at the next maintenance call. + * @return the current {@code ScheduleTerminalActionsResponse} instance, allowing for method + * chaining */ public ScheduleTerminalActionsResponse scheduledAt(String scheduledAt) { this.scheduledAt = scheduledAt; @@ -152,8 +162,20 @@ public ScheduleTerminalActionsResponse scheduledAt(String scheduledAt) { } /** - * The date and time when the action should happen. Format: [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) after the specified date and time in the time zone of the terminal. An empty value causes the action to be sent as soon as possible: at the next maintenance call. - * @return scheduledAt The date and time when the action should happen. Format: [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) after the specified date and time in the time zone of the terminal. An empty value causes the action to be sent as soon as possible: at the next maintenance call. + * The date and time when the action should happen. Format: [RFC + * 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. + * For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance + * call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) + * after the specified date and time in the time zone of the terminal. An empty value causes the + * action to be sent as soon as possible: at the next maintenance call. + * + * @return scheduledAt The date and time when the action should happen. Format: [RFC + * 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time + * offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first + * [maintenance + * call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) + * after the specified date and time in the time zone of the terminal. An empty value causes + * the action to be sent as soon as possible: at the next maintenance call. */ @JsonProperty(JSON_PROPERTY_SCHEDULED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -162,9 +184,20 @@ public String getScheduledAt() { } /** - * The date and time when the action should happen. Format: [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) after the specified date and time in the time zone of the terminal. An empty value causes the action to be sent as soon as possible: at the next maintenance call. + * The date and time when the action should happen. Format: [RFC + * 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. + * For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance + * call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) + * after the specified date and time in the time zone of the terminal. An empty value causes the + * action to be sent as soon as possible: at the next maintenance call. * - * @param scheduledAt The date and time when the action should happen. Format: [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) after the specified date and time in the time zone of the terminal. An empty value causes the action to be sent as soon as possible: at the next maintenance call. + * @param scheduledAt The date and time when the action should happen. Format: [RFC + * 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time + * offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first + * [maintenance + * call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) + * after the specified date and time in the time zone of the terminal. An empty value causes + * the action to be sent as soon as possible: at the next maintenance call. */ @JsonProperty(JSON_PROPERTY_SCHEDULED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,10 +206,15 @@ public void setScheduledAt(String scheduledAt) { } /** - * The unique ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, all terminals in the `terminalIds` list must be assigned to this store. + * The unique ID of the + * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, + * all terminals in the `terminalIds` list must be assigned to this store. * - * @param storeId The unique ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, all terminals in the `terminalIds` list must be assigned to this store. - * @return the current {@code ScheduleTerminalActionsResponse} instance, allowing for method chaining + * @param storeId The unique ID of the + * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If + * present, all terminals in the `terminalIds` list must be assigned to this store. + * @return the current {@code ScheduleTerminalActionsResponse} instance, allowing for method + * chaining */ public ScheduleTerminalActionsResponse storeId(String storeId) { this.storeId = storeId; @@ -184,8 +222,13 @@ public ScheduleTerminalActionsResponse storeId(String storeId) { } /** - * The unique ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, all terminals in the `terminalIds` list must be assigned to this store. - * @return storeId The unique ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, all terminals in the `terminalIds` list must be assigned to this store. + * The unique ID of the + * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, + * all terminals in the `terminalIds` list must be assigned to this store. + * + * @return storeId The unique ID of the + * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If + * present, all terminals in the `terminalIds` list must be assigned to this store. */ @JsonProperty(JSON_PROPERTY_STORE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,9 +237,13 @@ public String getStoreId() { } /** - * The unique ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, all terminals in the `terminalIds` list must be assigned to this store. + * The unique ID of the + * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, + * all terminals in the `terminalIds` list must be assigned to this store. * - * @param storeId The unique ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, all terminals in the `terminalIds` list must be assigned to this store. + * @param storeId The unique ID of the + * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If + * present, all terminals in the `terminalIds` list must be assigned to this store. */ @JsonProperty(JSON_PROPERTY_STORE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -205,17 +252,22 @@ public void setStoreId(String storeId) { } /** - * The validation errors that occurred in the list of terminals, and for each error the IDs of the terminals that the error applies to. + * The validation errors that occurred in the list of terminals, and for each error the IDs of the + * terminals that the error applies to. * - * @param terminalsWithErrors The validation errors that occurred in the list of terminals, and for each error the IDs of the terminals that the error applies to. - * @return the current {@code ScheduleTerminalActionsResponse} instance, allowing for method chaining + * @param terminalsWithErrors The validation errors that occurred in the list of terminals, and + * for each error the IDs of the terminals that the error applies to. + * @return the current {@code ScheduleTerminalActionsResponse} instance, allowing for method + * chaining */ - public ScheduleTerminalActionsResponse terminalsWithErrors(Map> terminalsWithErrors) { + public ScheduleTerminalActionsResponse terminalsWithErrors( + Map> terminalsWithErrors) { this.terminalsWithErrors = terminalsWithErrors; return this; } - public ScheduleTerminalActionsResponse putTerminalsWithErrorsItem(String key, List terminalsWithErrorsItem) { + public ScheduleTerminalActionsResponse putTerminalsWithErrorsItem( + String key, List terminalsWithErrorsItem) { if (this.terminalsWithErrors == null) { this.terminalsWithErrors = new HashMap<>(); } @@ -224,8 +276,11 @@ public ScheduleTerminalActionsResponse putTerminalsWithErrorsItem(String key, Li } /** - * The validation errors that occurred in the list of terminals, and for each error the IDs of the terminals that the error applies to. - * @return terminalsWithErrors The validation errors that occurred in the list of terminals, and for each error the IDs of the terminals that the error applies to. + * The validation errors that occurred in the list of terminals, and for each error the IDs of the + * terminals that the error applies to. + * + * @return terminalsWithErrors The validation errors that occurred in the list of terminals, and + * for each error the IDs of the terminals that the error applies to. */ @JsonProperty(JSON_PROPERTY_TERMINALS_WITH_ERRORS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -234,9 +289,11 @@ public Map> getTerminalsWithErrors() { } /** - * The validation errors that occurred in the list of terminals, and for each error the IDs of the terminals that the error applies to. + * The validation errors that occurred in the list of terminals, and for each error the IDs of the + * terminals that the error applies to. * - * @param terminalsWithErrors The validation errors that occurred in the list of terminals, and for each error the IDs of the terminals that the error applies to. + * @param terminalsWithErrors The validation errors that occurred in the list of terminals, and + * for each error the IDs of the terminals that the error applies to. */ @JsonProperty(JSON_PROPERTY_TERMINALS_WITH_ERRORS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -248,7 +305,8 @@ public void setTerminalsWithErrors(Map> terminalsWithErrors * The number of terminals for which scheduling the action failed. * * @param totalErrors The number of terminals for which scheduling the action failed. - * @return the current {@code ScheduleTerminalActionsResponse} instance, allowing for method chaining + * @return the current {@code ScheduleTerminalActionsResponse} instance, allowing for method + * chaining */ public ScheduleTerminalActionsResponse totalErrors(Integer totalErrors) { this.totalErrors = totalErrors; @@ -257,6 +315,7 @@ public ScheduleTerminalActionsResponse totalErrors(Integer totalErrors) { /** * The number of terminals for which scheduling the action failed. + * * @return totalErrors The number of terminals for which scheduling the action failed. */ @JsonProperty(JSON_PROPERTY_TOTAL_ERRORS) @@ -277,10 +336,13 @@ public void setTotalErrors(Integer totalErrors) { } /** - * The number of terminals for which the action was successfully scheduled. This doesn't mean the action has happened yet. + * The number of terminals for which the action was successfully scheduled. This doesn't mean + * the action has happened yet. * - * @param totalScheduled The number of terminals for which the action was successfully scheduled. This doesn't mean the action has happened yet. - * @return the current {@code ScheduleTerminalActionsResponse} instance, allowing for method chaining + * @param totalScheduled The number of terminals for which the action was successfully scheduled. + * This doesn't mean the action has happened yet. + * @return the current {@code ScheduleTerminalActionsResponse} instance, allowing for method + * chaining */ public ScheduleTerminalActionsResponse totalScheduled(Integer totalScheduled) { this.totalScheduled = totalScheduled; @@ -288,8 +350,11 @@ public ScheduleTerminalActionsResponse totalScheduled(Integer totalScheduled) { } /** - * The number of terminals for which the action was successfully scheduled. This doesn't mean the action has happened yet. - * @return totalScheduled The number of terminals for which the action was successfully scheduled. This doesn't mean the action has happened yet. + * The number of terminals for which the action was successfully scheduled. This doesn't mean + * the action has happened yet. + * + * @return totalScheduled The number of terminals for which the action was successfully scheduled. + * This doesn't mean the action has happened yet. */ @JsonProperty(JSON_PROPERTY_TOTAL_SCHEDULED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -298,9 +363,11 @@ public Integer getTotalScheduled() { } /** - * The number of terminals for which the action was successfully scheduled. This doesn't mean the action has happened yet. + * The number of terminals for which the action was successfully scheduled. This doesn't mean + * the action has happened yet. * - * @param totalScheduled The number of terminals for which the action was successfully scheduled. This doesn't mean the action has happened yet. + * @param totalScheduled The number of terminals for which the action was successfully scheduled. + * This doesn't mean the action has happened yet. */ @JsonProperty(JSON_PROPERTY_TOTAL_SCHEDULED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -308,9 +375,7 @@ public void setTotalScheduled(Integer totalScheduled) { this.totalScheduled = totalScheduled; } - /** - * Return true if this ScheduleTerminalActionsResponse object is equal to o. - */ + /** Return true if this ScheduleTerminalActionsResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -319,19 +384,28 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ScheduleTerminalActionsResponse scheduleTerminalActionsResponse = (ScheduleTerminalActionsResponse) o; - return Objects.equals(this.actionDetails, scheduleTerminalActionsResponse.actionDetails) && - Objects.equals(this.items, scheduleTerminalActionsResponse.items) && - Objects.equals(this.scheduledAt, scheduleTerminalActionsResponse.scheduledAt) && - Objects.equals(this.storeId, scheduleTerminalActionsResponse.storeId) && - Objects.equals(this.terminalsWithErrors, scheduleTerminalActionsResponse.terminalsWithErrors) && - Objects.equals(this.totalErrors, scheduleTerminalActionsResponse.totalErrors) && - Objects.equals(this.totalScheduled, scheduleTerminalActionsResponse.totalScheduled); + ScheduleTerminalActionsResponse scheduleTerminalActionsResponse = + (ScheduleTerminalActionsResponse) o; + return Objects.equals(this.actionDetails, scheduleTerminalActionsResponse.actionDetails) + && Objects.equals(this.items, scheduleTerminalActionsResponse.items) + && Objects.equals(this.scheduledAt, scheduleTerminalActionsResponse.scheduledAt) + && Objects.equals(this.storeId, scheduleTerminalActionsResponse.storeId) + && Objects.equals( + this.terminalsWithErrors, scheduleTerminalActionsResponse.terminalsWithErrors) + && Objects.equals(this.totalErrors, scheduleTerminalActionsResponse.totalErrors) + && Objects.equals(this.totalScheduled, scheduleTerminalActionsResponse.totalScheduled); } @Override public int hashCode() { - return Objects.hash(actionDetails, items, scheduledAt, storeId, terminalsWithErrors, totalErrors, totalScheduled); + return Objects.hash( + actionDetails, + items, + scheduledAt, + storeId, + terminalsWithErrors, + totalErrors, + totalScheduled); } @Override @@ -342,7 +416,9 @@ public String toString() { sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" scheduledAt: ").append(toIndentedString(scheduledAt)).append("\n"); sb.append(" storeId: ").append(toIndentedString(storeId)).append("\n"); - sb.append(" terminalsWithErrors: ").append(toIndentedString(terminalsWithErrors)).append("\n"); + sb.append(" terminalsWithErrors: ") + .append(toIndentedString(terminalsWithErrors)) + .append("\n"); sb.append(" totalErrors: ").append(toIndentedString(totalErrors)).append("\n"); sb.append(" totalScheduled: ").append(toIndentedString(totalScheduled)).append("\n"); sb.append("}"); @@ -350,8 +426,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -360,21 +435,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ScheduleTerminalActionsResponse given an JSON string * * @param jsonString JSON string * @return An instance of ScheduleTerminalActionsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to ScheduleTerminalActionsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ScheduleTerminalActionsResponse */ - public static ScheduleTerminalActionsResponse fromJson(String jsonString) throws JsonProcessingException { + public static ScheduleTerminalActionsResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ScheduleTerminalActionsResponse.class); } -/** - * Convert an instance of ScheduleTerminalActionsResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ScheduleTerminalActionsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/SepaDirectDebitInfo.java b/src/main/java/com/adyen/model/management/SepaDirectDebitInfo.java index f8aaca7a8..027a311c2 100644 --- a/src/main/java/com/adyen/model/management/SepaDirectDebitInfo.java +++ b/src/main/java/com/adyen/model/management/SepaDirectDebitInfo.java @@ -2,37 +2,26 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.TransactionDescriptionInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * SepaDirectDebitInfo - */ +/** SepaDirectDebitInfo */ @JsonPropertyOrder({ SepaDirectDebitInfo.JSON_PROPERTY_CREDITOR_ID, SepaDirectDebitInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION }) - public class SepaDirectDebitInfo { public static final String JSON_PROPERTY_CREDITOR_ID = "creditorId"; private String creditorId; @@ -40,8 +29,7 @@ public class SepaDirectDebitInfo { public static final String JSON_PROPERTY_TRANSACTION_DESCRIPTION = "transactionDescription"; private TransactionDescriptionInfo transactionDescription; - public SepaDirectDebitInfo() { - } + public SepaDirectDebitInfo() {} /** * Creditor id @@ -56,6 +44,7 @@ public SepaDirectDebitInfo creditorId(String creditorId) { /** * Creditor id + * * @return creditorId Creditor id */ @JsonProperty(JSON_PROPERTY_CREDITOR_ID) @@ -78,17 +67,19 @@ public void setCreditorId(String creditorId) { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription * @return the current {@code SepaDirectDebitInfo} instance, allowing for method chaining */ - public SepaDirectDebitInfo transactionDescription(TransactionDescriptionInfo transactionDescription) { + public SepaDirectDebitInfo transactionDescription( + TransactionDescriptionInfo transactionDescription) { this.transactionDescription = transactionDescription; return this; } /** * Get transactionDescription - * @return transactionDescription + * + * @return transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,7 +90,7 @@ public TransactionDescriptionInfo getTransactionDescription() { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,9 +98,7 @@ public void setTransactionDescription(TransactionDescriptionInfo transactionDesc this.transactionDescription = transactionDescription; } - /** - * Return true if this SepaDirectDebitInfo object is equal to o. - */ + /** Return true if this SepaDirectDebitInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -119,8 +108,8 @@ public boolean equals(Object o) { return false; } SepaDirectDebitInfo sepaDirectDebitInfo = (SepaDirectDebitInfo) o; - return Objects.equals(this.creditorId, sepaDirectDebitInfo.creditorId) && - Objects.equals(this.transactionDescription, sepaDirectDebitInfo.transactionDescription); + return Objects.equals(this.creditorId, sepaDirectDebitInfo.creditorId) + && Objects.equals(this.transactionDescription, sepaDirectDebitInfo.transactionDescription); } @Override @@ -133,14 +122,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SepaDirectDebitInfo {\n"); sb.append(" creditorId: ").append(toIndentedString(creditorId)).append("\n"); - sb.append(" transactionDescription: ").append(toIndentedString(transactionDescription)).append("\n"); + sb.append(" transactionDescription: ") + .append(toIndentedString(transactionDescription)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -149,21 +139,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SepaDirectDebitInfo given an JSON string * * @param jsonString JSON string * @return An instance of SepaDirectDebitInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to SepaDirectDebitInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SepaDirectDebitInfo */ public static SepaDirectDebitInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SepaDirectDebitInfo.class); } -/** - * Convert an instance of SepaDirectDebitInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SepaDirectDebitInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Settings.java b/src/main/java/com/adyen/model/management/Settings.java index 1bfc519fa..fa074d56c 100644 --- a/src/main/java/com/adyen/model/management/Settings.java +++ b/src/main/java/com/adyen/model/management/Settings.java @@ -2,37 +2,27 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Settings - */ +/** Settings */ @JsonPropertyOrder({ Settings.JSON_PROPERTY_BAND, Settings.JSON_PROPERTY_ROAMING, Settings.JSON_PROPERTY_TIMEOUT }) - public class Settings { public static final String JSON_PROPERTY_BAND = "band"; private String band; @@ -43,13 +33,14 @@ public class Settings { public static final String JSON_PROPERTY_TIMEOUT = "timeout"; private Integer timeout; - public Settings() { - } + public Settings() {} /** - * The preferred Wi-Fi band, for use if the terminals support multiple bands. Possible values: All, 2.4GHz, 5GHz. + * The preferred Wi-Fi band, for use if the terminals support multiple bands. Possible values: + * All, 2.4GHz, 5GHz. * - * @param band The preferred Wi-Fi band, for use if the terminals support multiple bands. Possible values: All, 2.4GHz, 5GHz. + * @param band The preferred Wi-Fi band, for use if the terminals support multiple bands. Possible + * values: All, 2.4GHz, 5GHz. * @return the current {@code Settings} instance, allowing for method chaining */ public Settings band(String band) { @@ -58,8 +49,11 @@ public Settings band(String band) { } /** - * The preferred Wi-Fi band, for use if the terminals support multiple bands. Possible values: All, 2.4GHz, 5GHz. - * @return band The preferred Wi-Fi band, for use if the terminals support multiple bands. Possible values: All, 2.4GHz, 5GHz. + * The preferred Wi-Fi band, for use if the terminals support multiple bands. Possible values: + * All, 2.4GHz, 5GHz. + * + * @return band The preferred Wi-Fi band, for use if the terminals support multiple bands. + * Possible values: All, 2.4GHz, 5GHz. */ @JsonProperty(JSON_PROPERTY_BAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,9 +62,11 @@ public String getBand() { } /** - * The preferred Wi-Fi band, for use if the terminals support multiple bands. Possible values: All, 2.4GHz, 5GHz. + * The preferred Wi-Fi band, for use if the terminals support multiple bands. Possible values: + * All, 2.4GHz, 5GHz. * - * @param band The preferred Wi-Fi band, for use if the terminals support multiple bands. Possible values: All, 2.4GHz, 5GHz. + * @param band The preferred Wi-Fi band, for use if the terminals support multiple bands. Possible + * values: All, 2.4GHz, 5GHz. */ @JsonProperty(JSON_PROPERTY_BAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -91,6 +87,7 @@ public Settings roaming(Boolean roaming) { /** * Indicates whether roaming is enabled on the terminals. + * * @return roaming Indicates whether roaming is enabled on the terminals. */ @JsonProperty(JSON_PROPERTY_ROAMING) @@ -123,6 +120,7 @@ public Settings timeout(Integer timeout) { /** * The connection time-out in seconds. Minimum value: 0. + * * @return timeout The connection time-out in seconds. Minimum value: 0. */ @JsonProperty(JSON_PROPERTY_TIMEOUT) @@ -142,9 +140,7 @@ public void setTimeout(Integer timeout) { this.timeout = timeout; } - /** - * Return true if this Settings object is equal to o. - */ + /** Return true if this Settings object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +150,9 @@ public boolean equals(Object o) { return false; } Settings settings = (Settings) o; - return Objects.equals(this.band, settings.band) && - Objects.equals(this.roaming, settings.roaming) && - Objects.equals(this.timeout, settings.timeout); + return Objects.equals(this.band, settings.band) + && Objects.equals(this.roaming, settings.roaming) + && Objects.equals(this.timeout, settings.timeout); } @Override @@ -176,8 +172,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +181,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Settings given an JSON string * * @param jsonString JSON string @@ -196,11 +191,12 @@ private String toIndentedString(Object o) { public static Settings fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Settings.class); } -/** - * Convert an instance of Settings to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Settings to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ShippingLocation.java b/src/main/java/com/adyen/model/management/ShippingLocation.java index bed1ef80d..5007b1b5f 100644 --- a/src/main/java/com/adyen/model/management/ShippingLocation.java +++ b/src/main/java/com/adyen/model/management/ShippingLocation.java @@ -2,40 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.Address; -import com.adyen.model.management.Contact; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ShippingLocation - */ +/** ShippingLocation */ @JsonPropertyOrder({ ShippingLocation.JSON_PROPERTY_ADDRESS, ShippingLocation.JSON_PROPERTY_CONTACT, ShippingLocation.JSON_PROPERTY_ID, ShippingLocation.JSON_PROPERTY_NAME }) - public class ShippingLocation { public static final String JSON_PROPERTY_ADDRESS = "address"; private Address address; @@ -49,13 +37,12 @@ public class ShippingLocation { public static final String JSON_PROPERTY_NAME = "name"; private String name; - public ShippingLocation() { - } + public ShippingLocation() {} /** * address * - * @param address + * @param address * @return the current {@code ShippingLocation} instance, allowing for method chaining */ public ShippingLocation address(Address address) { @@ -65,7 +52,8 @@ public ShippingLocation address(Address address) { /** * Get address - * @return address + * + * @return address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -76,7 +64,7 @@ public Address getAddress() { /** * address * - * @param address + * @param address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,7 +75,7 @@ public void setAddress(Address address) { /** * contact * - * @param contact + * @param contact * @return the current {@code ShippingLocation} instance, allowing for method chaining */ public ShippingLocation contact(Contact contact) { @@ -97,7 +85,8 @@ public ShippingLocation contact(Contact contact) { /** * Get contact - * @return contact + * + * @return contact */ @JsonProperty(JSON_PROPERTY_CONTACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,7 +97,7 @@ public Contact getContact() { /** * contact * - * @param contact + * @param contact */ @JsonProperty(JSON_PROPERTY_CONTACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,9 +106,11 @@ public void setContact(Contact contact) { } /** - * The unique identifier of the shipping location, for use as `shippingLocationId` when creating an order. + * The unique identifier of the shipping location, for use as `shippingLocationId` when + * creating an order. * - * @param id The unique identifier of the shipping location, for use as `shippingLocationId` when creating an order. + * @param id The unique identifier of the shipping location, for use as + * `shippingLocationId` when creating an order. * @return the current {@code ShippingLocation} instance, allowing for method chaining */ public ShippingLocation id(String id) { @@ -128,8 +119,11 @@ public ShippingLocation id(String id) { } /** - * The unique identifier of the shipping location, for use as `shippingLocationId` when creating an order. - * @return id The unique identifier of the shipping location, for use as `shippingLocationId` when creating an order. + * The unique identifier of the shipping location, for use as `shippingLocationId` when + * creating an order. + * + * @return id The unique identifier of the shipping location, for use as + * `shippingLocationId` when creating an order. */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,9 +132,11 @@ public String getId() { } /** - * The unique identifier of the shipping location, for use as `shippingLocationId` when creating an order. + * The unique identifier of the shipping location, for use as `shippingLocationId` when + * creating an order. * - * @param id The unique identifier of the shipping location, for use as `shippingLocationId` when creating an order. + * @param id The unique identifier of the shipping location, for use as + * `shippingLocationId` when creating an order. */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,6 +157,7 @@ public ShippingLocation name(String name) { /** * The unique name of the shipping location. + * * @return name The unique name of the shipping location. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -180,9 +177,7 @@ public void setName(String name) { this.name = name; } - /** - * Return true if this ShippingLocation object is equal to o. - */ + /** Return true if this ShippingLocation object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,10 +187,10 @@ public boolean equals(Object o) { return false; } ShippingLocation shippingLocation = (ShippingLocation) o; - return Objects.equals(this.address, shippingLocation.address) && - Objects.equals(this.contact, shippingLocation.contact) && - Objects.equals(this.id, shippingLocation.id) && - Objects.equals(this.name, shippingLocation.name); + return Objects.equals(this.address, shippingLocation.address) + && Objects.equals(this.contact, shippingLocation.contact) + && Objects.equals(this.id, shippingLocation.id) + && Objects.equals(this.name, shippingLocation.name); } @Override @@ -216,8 +211,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -226,7 +220,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ShippingLocation given an JSON string * * @param jsonString JSON string @@ -236,11 +230,12 @@ private String toIndentedString(Object o) { public static ShippingLocation fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ShippingLocation.class); } -/** - * Convert an instance of ShippingLocation to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ShippingLocation to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/ShippingLocationsResponse.java b/src/main/java/com/adyen/model/management/ShippingLocationsResponse.java index 37ab90c6b..ddf89fcdd 100644 --- a/src/main/java/com/adyen/model/management/ShippingLocationsResponse.java +++ b/src/main/java/com/adyen/model/management/ShippingLocationsResponse.java @@ -2,44 +2,30 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.ShippingLocation; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * ShippingLocationsResponse - */ -@JsonPropertyOrder({ - ShippingLocationsResponse.JSON_PROPERTY_DATA -}) - +/** ShippingLocationsResponse */ +@JsonPropertyOrder({ShippingLocationsResponse.JSON_PROPERTY_DATA}) public class ShippingLocationsResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; - public ShippingLocationsResponse() { - } + public ShippingLocationsResponse() {} /** * Physical locations where orders can be shipped to. @@ -62,6 +48,7 @@ public ShippingLocationsResponse addDataItem(ShippingLocation dataItem) { /** * Physical locations where orders can be shipped to. + * * @return data Physical locations where orders can be shipped to. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -81,9 +68,7 @@ public void setData(List data) { this.data = data; } - /** - * Return true if this ShippingLocationsResponse object is equal to o. - */ + /** Return true if this ShippingLocationsResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -111,8 +96,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -121,21 +105,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ShippingLocationsResponse given an JSON string * * @param jsonString JSON string * @return An instance of ShippingLocationsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to ShippingLocationsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ShippingLocationsResponse */ - public static ShippingLocationsResponse fromJson(String jsonString) throws JsonProcessingException { + public static ShippingLocationsResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ShippingLocationsResponse.class); } -/** - * Convert an instance of ShippingLocationsResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ShippingLocationsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Signature.java b/src/main/java/com/adyen/model/management/Signature.java index 0017b318b..da064abe0 100644 --- a/src/main/java/com/adyen/model/management/Signature.java +++ b/src/main/java/com/adyen/model/management/Signature.java @@ -2,38 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Signature - */ +/** Signature */ @JsonPropertyOrder({ Signature.JSON_PROPERTY_ASK_SIGNATURE_ON_SCREEN, Signature.JSON_PROPERTY_DEVICE_NAME, Signature.JSON_PROPERTY_DEVICE_SLOGAN, Signature.JSON_PROPERTY_SKIP_SIGNATURE }) - public class Signature { public static final String JSON_PROPERTY_ASK_SIGNATURE_ON_SCREEN = "askSignatureOnScreen"; private Boolean askSignatureOnScreen; @@ -47,13 +37,15 @@ public class Signature { public static final String JSON_PROPERTY_SKIP_SIGNATURE = "skipSignature"; private Boolean skipSignature; - public Signature() { - } + public Signature() {} /** - * If `skipSignature` is false, indicates whether the shopper should provide a signature on the display (**true**) or on the merchant receipt (**false**). + * If `skipSignature` is false, indicates whether the shopper should provide a signature + * on the display (**true**) or on the merchant receipt (**false**). * - * @param askSignatureOnScreen If `skipSignature` is false, indicates whether the shopper should provide a signature on the display (**true**) or on the merchant receipt (**false**). + * @param askSignatureOnScreen If `skipSignature` is false, indicates whether the + * shopper should provide a signature on the display (**true**) or on the merchant receipt + * (**false**). * @return the current {@code Signature} instance, allowing for method chaining */ public Signature askSignatureOnScreen(Boolean askSignatureOnScreen) { @@ -62,8 +54,12 @@ public Signature askSignatureOnScreen(Boolean askSignatureOnScreen) { } /** - * If `skipSignature` is false, indicates whether the shopper should provide a signature on the display (**true**) or on the merchant receipt (**false**). - * @return askSignatureOnScreen If `skipSignature` is false, indicates whether the shopper should provide a signature on the display (**true**) or on the merchant receipt (**false**). + * If `skipSignature` is false, indicates whether the shopper should provide a signature + * on the display (**true**) or on the merchant receipt (**false**). + * + * @return askSignatureOnScreen If `skipSignature` is false, indicates whether the + * shopper should provide a signature on the display (**true**) or on the merchant receipt + * (**false**). */ @JsonProperty(JSON_PROPERTY_ASK_SIGNATURE_ON_SCREEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -72,9 +68,12 @@ public Boolean getAskSignatureOnScreen() { } /** - * If `skipSignature` is false, indicates whether the shopper should provide a signature on the display (**true**) or on the merchant receipt (**false**). + * If `skipSignature` is false, indicates whether the shopper should provide a signature + * on the display (**true**) or on the merchant receipt (**false**). * - * @param askSignatureOnScreen If `skipSignature` is false, indicates whether the shopper should provide a signature on the display (**true**) or on the merchant receipt (**false**). + * @param askSignatureOnScreen If `skipSignature` is false, indicates whether the + * shopper should provide a signature on the display (**true**) or on the merchant receipt + * (**false**). */ @JsonProperty(JSON_PROPERTY_ASK_SIGNATURE_ON_SCREEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -95,6 +94,7 @@ public Signature deviceName(String deviceName) { /** * Name that identifies the terminal. + * * @return deviceName Name that identifies the terminal. */ @JsonProperty(JSON_PROPERTY_DEVICE_NAME) @@ -127,6 +127,7 @@ public Signature deviceSlogan(String deviceSlogan) { /** * Slogan shown on the start screen of the device. + * * @return deviceSlogan Slogan shown on the start screen of the device. */ @JsonProperty(JSON_PROPERTY_DEVICE_SLOGAN) @@ -147,9 +148,12 @@ public void setDeviceSlogan(String deviceSlogan) { } /** - * Skip asking for a signature. This is possible because all global card schemes (American Express, Diners, Discover, JCB, MasterCard, VISA, and UnionPay) regard a signature as optional. + * Skip asking for a signature. This is possible because all global card schemes (American + * Express, Diners, Discover, JCB, MasterCard, VISA, and UnionPay) regard a signature as optional. * - * @param skipSignature Skip asking for a signature. This is possible because all global card schemes (American Express, Diners, Discover, JCB, MasterCard, VISA, and UnionPay) regard a signature as optional. + * @param skipSignature Skip asking for a signature. This is possible because all global card + * schemes (American Express, Diners, Discover, JCB, MasterCard, VISA, and UnionPay) regard a + * signature as optional. * @return the current {@code Signature} instance, allowing for method chaining */ public Signature skipSignature(Boolean skipSignature) { @@ -158,8 +162,12 @@ public Signature skipSignature(Boolean skipSignature) { } /** - * Skip asking for a signature. This is possible because all global card schemes (American Express, Diners, Discover, JCB, MasterCard, VISA, and UnionPay) regard a signature as optional. - * @return skipSignature Skip asking for a signature. This is possible because all global card schemes (American Express, Diners, Discover, JCB, MasterCard, VISA, and UnionPay) regard a signature as optional. + * Skip asking for a signature. This is possible because all global card schemes (American + * Express, Diners, Discover, JCB, MasterCard, VISA, and UnionPay) regard a signature as optional. + * + * @return skipSignature Skip asking for a signature. This is possible because all global card + * schemes (American Express, Diners, Discover, JCB, MasterCard, VISA, and UnionPay) regard a + * signature as optional. */ @JsonProperty(JSON_PROPERTY_SKIP_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,9 +176,12 @@ public Boolean getSkipSignature() { } /** - * Skip asking for a signature. This is possible because all global card schemes (American Express, Diners, Discover, JCB, MasterCard, VISA, and UnionPay) regard a signature as optional. + * Skip asking for a signature. This is possible because all global card schemes (American + * Express, Diners, Discover, JCB, MasterCard, VISA, and UnionPay) regard a signature as optional. * - * @param skipSignature Skip asking for a signature. This is possible because all global card schemes (American Express, Diners, Discover, JCB, MasterCard, VISA, and UnionPay) regard a signature as optional. + * @param skipSignature Skip asking for a signature. This is possible because all global card + * schemes (American Express, Diners, Discover, JCB, MasterCard, VISA, and UnionPay) regard a + * signature as optional. */ @JsonProperty(JSON_PROPERTY_SKIP_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,9 +189,7 @@ public void setSkipSignature(Boolean skipSignature) { this.skipSignature = skipSignature; } - /** - * Return true if this Signature object is equal to o. - */ + /** Return true if this Signature object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -190,10 +199,10 @@ public boolean equals(Object o) { return false; } Signature signature = (Signature) o; - return Objects.equals(this.askSignatureOnScreen, signature.askSignatureOnScreen) && - Objects.equals(this.deviceName, signature.deviceName) && - Objects.equals(this.deviceSlogan, signature.deviceSlogan) && - Objects.equals(this.skipSignature, signature.skipSignature); + return Objects.equals(this.askSignatureOnScreen, signature.askSignatureOnScreen) + && Objects.equals(this.deviceName, signature.deviceName) + && Objects.equals(this.deviceSlogan, signature.deviceSlogan) + && Objects.equals(this.skipSignature, signature.skipSignature); } @Override @@ -205,7 +214,9 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Signature {\n"); - sb.append(" askSignatureOnScreen: ").append(toIndentedString(askSignatureOnScreen)).append("\n"); + sb.append(" askSignatureOnScreen: ") + .append(toIndentedString(askSignatureOnScreen)) + .append("\n"); sb.append(" deviceName: ").append(toIndentedString(deviceName)).append("\n"); sb.append(" deviceSlogan: ").append(toIndentedString(deviceSlogan)).append("\n"); sb.append(" skipSignature: ").append(toIndentedString(skipSignature)).append("\n"); @@ -214,8 +225,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,7 +234,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Signature given an JSON string * * @param jsonString JSON string @@ -234,11 +244,12 @@ private String toIndentedString(Object o) { public static Signature fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Signature.class); } -/** - * Convert an instance of Signature to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Signature to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/SodexoInfo.java b/src/main/java/com/adyen/model/management/SodexoInfo.java index ad8a1b3d8..e95df5c04 100644 --- a/src/main/java/com/adyen/model/management/SodexoInfo.java +++ b/src/main/java/com/adyen/model/management/SodexoInfo.java @@ -2,41 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * SodexoInfo - */ -@JsonPropertyOrder({ - SodexoInfo.JSON_PROPERTY_MERCHANT_CONTACT_PHONE -}) - +/** SodexoInfo */ +@JsonPropertyOrder({SodexoInfo.JSON_PROPERTY_MERCHANT_CONTACT_PHONE}) public class SodexoInfo { public static final String JSON_PROPERTY_MERCHANT_CONTACT_PHONE = "merchantContactPhone"; private String merchantContactPhone; - public SodexoInfo() { - } + public SodexoInfo() {} /** * Sodexo merchantContactPhone @@ -51,6 +38,7 @@ public SodexoInfo merchantContactPhone(String merchantContactPhone) { /** * Sodexo merchantContactPhone + * * @return merchantContactPhone Sodexo merchantContactPhone */ @JsonProperty(JSON_PROPERTY_MERCHANT_CONTACT_PHONE) @@ -70,9 +58,7 @@ public void setMerchantContactPhone(String merchantContactPhone) { this.merchantContactPhone = merchantContactPhone; } - /** - * Return true if this SodexoInfo object is equal to o. - */ + /** Return true if this SodexoInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -94,14 +80,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SodexoInfo {\n"); - sb.append(" merchantContactPhone: ").append(toIndentedString(merchantContactPhone)).append("\n"); + sb.append(" merchantContactPhone: ") + .append(toIndentedString(merchantContactPhone)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,7 +97,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SodexoInfo given an JSON string * * @param jsonString JSON string @@ -120,11 +107,12 @@ private String toIndentedString(Object o) { public static SodexoInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SodexoInfo.class); } -/** - * Convert an instance of SodexoInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SodexoInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/SofortInfo.java b/src/main/java/com/adyen/model/management/SofortInfo.java index 7ceff5720..b7de0b096 100644 --- a/src/main/java/com/adyen/model/management/SofortInfo.java +++ b/src/main/java/com/adyen/model/management/SofortInfo.java @@ -2,36 +2,23 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * SofortInfo - */ -@JsonPropertyOrder({ - SofortInfo.JSON_PROPERTY_CURRENCY_CODE, - SofortInfo.JSON_PROPERTY_LOGO -}) - +/** SofortInfo */ +@JsonPropertyOrder({SofortInfo.JSON_PROPERTY_CURRENCY_CODE, SofortInfo.JSON_PROPERTY_LOGO}) public class SofortInfo { public static final String JSON_PROPERTY_CURRENCY_CODE = "currencyCode"; private String currencyCode; @@ -39,8 +26,7 @@ public class SofortInfo { public static final String JSON_PROPERTY_LOGO = "logo"; private String logo; - public SofortInfo() { - } + public SofortInfo() {} /** * Sofort currency code. For example, **EUR**. @@ -55,6 +41,7 @@ public SofortInfo currencyCode(String currencyCode) { /** * Sofort currency code. For example, **EUR**. + * * @return currencyCode Sofort currency code. For example, **EUR**. */ @JsonProperty(JSON_PROPERTY_CURRENCY_CODE) @@ -87,6 +74,7 @@ public SofortInfo logo(String logo) { /** * Sofort logo. Format: Base64-encoded string. + * * @return logo Sofort logo. Format: Base64-encoded string. */ @JsonProperty(JSON_PROPERTY_LOGO) @@ -106,9 +94,7 @@ public void setLogo(String logo) { this.logo = logo; } - /** - * Return true if this SofortInfo object is equal to o. - */ + /** Return true if this SofortInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +104,8 @@ public boolean equals(Object o) { return false; } SofortInfo sofortInfo = (SofortInfo) o; - return Objects.equals(this.currencyCode, sofortInfo.currencyCode) && - Objects.equals(this.logo, sofortInfo.logo); + return Objects.equals(this.currencyCode, sofortInfo.currencyCode) + && Objects.equals(this.logo, sofortInfo.logo); } @Override @@ -138,8 +124,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +133,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SofortInfo given an JSON string * * @param jsonString JSON string @@ -158,11 +143,12 @@ private String toIndentedString(Object o) { public static SofortInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SofortInfo.class); } -/** - * Convert an instance of SofortInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SofortInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/SplitConfiguration.java b/src/main/java/com/adyen/model/management/SplitConfiguration.java index 167b86a0d..a01df7781 100644 --- a/src/main/java/com/adyen/model/management/SplitConfiguration.java +++ b/src/main/java/com/adyen/model/management/SplitConfiguration.java @@ -2,40 +2,30 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.SplitConfigurationRule; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * SplitConfiguration - */ +/** SplitConfiguration */ @JsonPropertyOrder({ SplitConfiguration.JSON_PROPERTY_DESCRIPTION, SplitConfiguration.JSON_PROPERTY_RULES, SplitConfiguration.JSON_PROPERTY_SPLIT_CONFIGURATION_ID }) - public class SplitConfiguration { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -46,13 +36,11 @@ public class SplitConfiguration { public static final String JSON_PROPERTY_SPLIT_CONFIGURATION_ID = "splitConfigurationId"; private String splitConfigurationId; - public SplitConfiguration() { - } + public SplitConfiguration() {} @JsonCreator public SplitConfiguration( - @JsonProperty(JSON_PROPERTY_SPLIT_CONFIGURATION_ID) String splitConfigurationId - ) { + @JsonProperty(JSON_PROPERTY_SPLIT_CONFIGURATION_ID) String splitConfigurationId) { this(); this.splitConfigurationId = splitConfigurationId; } @@ -70,6 +58,7 @@ public SplitConfiguration description(String description) { /** * Your description for the split configuration. + * * @return description Your description for the split configuration. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -110,6 +99,7 @@ public SplitConfiguration addRulesItem(SplitConfigurationRule rulesItem) { /** * Array of rules that define the split configuration behavior. + * * @return rules Array of rules that define the split configuration behavior. */ @JsonProperty(JSON_PROPERTY_RULES) @@ -131,6 +121,7 @@ public void setRules(List rules) { /** * Unique identifier of the split configuration. + * * @return splitConfigurationId Unique identifier of the split configuration. */ @JsonProperty(JSON_PROPERTY_SPLIT_CONFIGURATION_ID) @@ -139,10 +130,7 @@ public String getSplitConfigurationId() { return splitConfigurationId; } - - /** - * Return true if this SplitConfiguration object is equal to o. - */ + /** Return true if this SplitConfiguration object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -152,9 +140,9 @@ public boolean equals(Object o) { return false; } SplitConfiguration splitConfiguration = (SplitConfiguration) o; - return Objects.equals(this.description, splitConfiguration.description) && - Objects.equals(this.rules, splitConfiguration.rules) && - Objects.equals(this.splitConfigurationId, splitConfiguration.splitConfigurationId); + return Objects.equals(this.description, splitConfiguration.description) + && Objects.equals(this.rules, splitConfiguration.rules) + && Objects.equals(this.splitConfigurationId, splitConfiguration.splitConfigurationId); } @Override @@ -168,14 +156,15 @@ public String toString() { sb.append("class SplitConfiguration {\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" rules: ").append(toIndentedString(rules)).append("\n"); - sb.append(" splitConfigurationId: ").append(toIndentedString(splitConfigurationId)).append("\n"); + sb.append(" splitConfigurationId: ") + .append(toIndentedString(splitConfigurationId)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -184,21 +173,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SplitConfiguration given an JSON string * * @param jsonString JSON string * @return An instance of SplitConfiguration - * @throws JsonProcessingException if the JSON string is invalid with respect to SplitConfiguration + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SplitConfiguration */ public static SplitConfiguration fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SplitConfiguration.class); } -/** - * Convert an instance of SplitConfiguration to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SplitConfiguration to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/SplitConfigurationList.java b/src/main/java/com/adyen/model/management/SplitConfigurationList.java index 9dded4421..d8289b190 100644 --- a/src/main/java/com/adyen/model/management/SplitConfigurationList.java +++ b/src/main/java/com/adyen/model/management/SplitConfigurationList.java @@ -2,44 +2,30 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.SplitConfiguration; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * SplitConfigurationList - */ -@JsonPropertyOrder({ - SplitConfigurationList.JSON_PROPERTY_DATA -}) - +/** SplitConfigurationList */ +@JsonPropertyOrder({SplitConfigurationList.JSON_PROPERTY_DATA}) public class SplitConfigurationList { public static final String JSON_PROPERTY_DATA = "data"; private List data; - public SplitConfigurationList() { - } + public SplitConfigurationList() {} /** * List of split configurations applied to the stores under the merchant account. @@ -62,6 +48,7 @@ public SplitConfigurationList addDataItem(SplitConfiguration dataItem) { /** * List of split configurations applied to the stores under the merchant account. + * * @return data List of split configurations applied to the stores under the merchant account. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -81,9 +68,7 @@ public void setData(List data) { this.data = data; } - /** - * Return true if this SplitConfigurationList object is equal to o. - */ + /** Return true if this SplitConfigurationList object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -111,8 +96,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -121,21 +105,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SplitConfigurationList given an JSON string * * @param jsonString JSON string * @return An instance of SplitConfigurationList - * @throws JsonProcessingException if the JSON string is invalid with respect to SplitConfigurationList + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SplitConfigurationList */ public static SplitConfigurationList fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SplitConfigurationList.class); } -/** - * Convert an instance of SplitConfigurationList to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SplitConfigurationList to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/SplitConfigurationLogic.java b/src/main/java/com/adyen/model/management/SplitConfigurationLogic.java index 235045a97..29587d2fb 100644 --- a/src/main/java/com/adyen/model/management/SplitConfigurationLogic.java +++ b/src/main/java/com/adyen/model/management/SplitConfigurationLogic.java @@ -2,33 +2,26 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.AdditionalCommission; -import com.adyen.model.management.Commission; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * SplitConfigurationLogic - */ +/** SplitConfigurationLogic */ @JsonPropertyOrder({ SplitConfigurationLogic.JSON_PROPERTY_ACQUIRING_FEES, SplitConfigurationLogic.JSON_PROPERTY_ADDITIONAL_COMMISSION, @@ -48,13 +41,13 @@ SplitConfigurationLogic.JSON_PROPERTY_SURCHARGE, SplitConfigurationLogic.JSON_PROPERTY_TIP }) - public class SplitConfigurationLogic { /** - * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the + * specified balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. */ public enum AcquiringFeesEnum { - DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); @@ -64,7 +57,7 @@ public enum AcquiringFeesEnum { private String value; AcquiringFeesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -85,7 +78,11 @@ public static AcquiringFeesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AcquiringFeesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AcquiringFeesEnum.values())); + LOG.warning( + "AcquiringFeesEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AcquiringFeesEnum.values())); return null; } } @@ -97,10 +94,12 @@ public static AcquiringFeesEnum fromValue(String value) { private AdditionalCommission additionalCommission; /** - * Deducts the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) + * from the specified balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. */ public enum AdyenCommissionEnum { - DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); @@ -110,7 +109,7 @@ public enum AdyenCommissionEnum { private String value; AdyenCommissionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -131,7 +130,11 @@ public static AdyenCommissionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AdyenCommissionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AdyenCommissionEnum.values())); + LOG.warning( + "AdyenCommissionEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AdyenCommissionEnum.values())); return null; } } @@ -140,10 +143,10 @@ public static AdyenCommissionEnum fromValue(String value) { private AdyenCommissionEnum adyenCommission; /** - * Deducts the fees due to Adyen (markup or commission) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the fees due to Adyen (markup or commission) from the specified balance account. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ public enum AdyenFeesEnum { - DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); @@ -153,7 +156,7 @@ public enum AdyenFeesEnum { private String value; AdyenFeesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -174,7 +177,11 @@ public static AdyenFeesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AdyenFeesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AdyenFeesEnum.values())); + LOG.warning( + "AdyenFeesEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AdyenFeesEnum.values())); return null; } } @@ -183,10 +190,11 @@ public static AdyenFeesEnum fromValue(String value) { private AdyenFeesEnum adyenFees; /** - * Deducts the transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the transaction fee due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ public enum AdyenMarkupEnum { - DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); @@ -196,7 +204,7 @@ public enum AdyenMarkupEnum { private String value; AdyenMarkupEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -217,7 +225,11 @@ public static AdyenMarkupEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AdyenMarkupEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AdyenMarkupEnum.values())); + LOG.warning( + "AdyenMarkupEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AdyenMarkupEnum.values())); return null; } } @@ -226,10 +238,11 @@ public static AdyenMarkupEnum fromValue(String value) { private AdyenMarkupEnum adyenMarkup; /** - * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible + * values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, + * **deductAccordingToSplitRatio**. */ public enum ChargebackEnum { - DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")), @@ -241,7 +254,7 @@ public enum ChargebackEnum { private String value; ChargebackEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -262,7 +275,11 @@ public static ChargebackEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ChargebackEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChargebackEnum.values())); + LOG.warning( + "ChargebackEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ChargebackEnum.values())); return null; } } @@ -271,20 +288,21 @@ public static ChargebackEnum fromValue(String value) { private ChargebackEnum chargeback; /** - * Deducts the chargeback costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * Deducts the chargeback costs from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount** */ public enum ChargebackCostAllocationEnum { - DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); - private static final Logger LOG = Logger.getLogger(ChargebackCostAllocationEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(ChargebackCostAllocationEnum.class.getName()); private String value; ChargebackCostAllocationEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -305,7 +323,11 @@ public static ChargebackCostAllocationEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ChargebackCostAllocationEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChargebackCostAllocationEnum.values())); + LOG.warning( + "ChargebackCostAllocationEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ChargebackCostAllocationEnum.values())); return null; } } @@ -317,10 +339,10 @@ public static ChargebackCostAllocationEnum fromValue(String value) { private Commission commission; /** - * Deducts the interchange fee from specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the interchange fee from specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ public enum InterchangeEnum { - DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); @@ -330,7 +352,7 @@ public enum InterchangeEnum { private String value; InterchangeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -351,7 +373,11 @@ public static InterchangeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("InterchangeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(InterchangeEnum.values())); + LOG.warning( + "InterchangeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(InterchangeEnum.values())); return null; } } @@ -360,10 +386,32 @@ public static InterchangeEnum fromValue(String value) { private InterchangeEnum interchange; /** - * Deducts all transaction fees incurred by the payment from the specified balance account. The transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to Adyen (markup or commission). You can book any and all these fees to different balance account by specifying other transaction fee parameters in your split configuration profile: - [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): The transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): The transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): The fee paid to the card scheme for using their network. - [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): The fee paid to the issuer for each payment transaction made with the card network. - [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): The aggregated amount of Adyen's commission and markup. - [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): The aggregated amount of the interchange and scheme fees. If you don't include at least one transaction fee type in the `splitLogic` object, Adyen updates the payment request with the `paymentFee` parameter, booking all transaction fees to your platform's liable balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts all transaction fees incurred by the payment from the specified balance account. The + * transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to + * Adyen (markup or commission). You can book any and all these fees to different balance account + * by specifying other transaction fee parameters in your split configuration profile: - + * [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): + * The transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). + * - + * [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): + * The transaction fee due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). + * - + * [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): + * The fee paid to the card scheme for using their network. - + * [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): + * The fee paid to the issuer for each payment transaction made with the card network. - + * [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): + * The aggregated amount of Adyen's commission and markup. - + * [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): + * The aggregated amount of the interchange and scheme fees. If you don't include at least one + * transaction fee type in the `splitLogic` object, Adyen updates the payment request + * with the `paymentFee` parameter, booking all transaction fees to your platform's + * liable balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. */ public enum PaymentFeeEnum { - DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); @@ -373,7 +421,7 @@ public enum PaymentFeeEnum { private String value; PaymentFeeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -394,7 +442,11 @@ public static PaymentFeeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PaymentFeeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PaymentFeeEnum.values())); + LOG.warning( + "PaymentFeeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PaymentFeeEnum.values())); return null; } } @@ -403,10 +455,10 @@ public static PaymentFeeEnum fromValue(String value) { private PaymentFeeEnum paymentFee; /** - * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** + * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** */ public enum RefundEnum { - DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")), @@ -418,7 +470,7 @@ public enum RefundEnum { private String value; RefundEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -439,7 +491,11 @@ public static RefundEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("RefundEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RefundEnum.values())); + LOG.warning( + "RefundEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(RefundEnum.values())); return null; } } @@ -448,10 +504,10 @@ public static RefundEnum fromValue(String value) { private RefundEnum refund; /** - * Deducts the refund costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * Deducts the refund costs from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount** */ public enum RefundCostAllocationEnum { - DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); @@ -461,7 +517,7 @@ public enum RefundCostAllocationEnum { private String value; RefundCostAllocationEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -482,7 +538,11 @@ public static RefundCostAllocationEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("RefundCostAllocationEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RefundCostAllocationEnum.values())); + LOG.warning( + "RefundCostAllocationEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(RefundCostAllocationEnum.values())); return null; } } @@ -491,10 +551,10 @@ public static RefundCostAllocationEnum fromValue(String value) { private RefundCostAllocationEnum refundCostAllocation; /** - * Books the amount left over after currency conversion to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * Books the amount left over after currency conversion to the specified balance account. Possible + * values: **addToLiableAccount**, **addToOneBalanceAccount**. */ public enum RemainderEnum { - ADDTOLIABLEACCOUNT(String.valueOf("addToLiableAccount")), ADDTOONEBALANCEACCOUNT(String.valueOf("addToOneBalanceAccount")); @@ -504,7 +564,7 @@ public enum RemainderEnum { private String value; RemainderEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -525,7 +585,11 @@ public static RemainderEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("RemainderEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RemainderEnum.values())); + LOG.warning( + "RemainderEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(RemainderEnum.values())); return null; } } @@ -534,10 +598,10 @@ public static RemainderEnum fromValue(String value) { private RemainderEnum remainder; /** - * Deducts the scheme fee from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the scheme fee from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ public enum SchemeFeeEnum { - DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); @@ -547,7 +611,7 @@ public enum SchemeFeeEnum { private String value; SchemeFeeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -568,7 +632,11 @@ public static SchemeFeeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("SchemeFeeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(SchemeFeeEnum.values())); + LOG.warning( + "SchemeFeeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(SchemeFeeEnum.values())); return null; } } @@ -580,10 +648,10 @@ public static SchemeFeeEnum fromValue(String value) { private String splitLogicId; /** - * Books the surcharge amount to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount** + * Books the surcharge amount to the specified balance account. Possible values: + * **addToLiableAccount**, **addToOneBalanceAccount** */ public enum SurchargeEnum { - ADDTOLIABLEACCOUNT(String.valueOf("addToLiableAccount")), ADDTOONEBALANCEACCOUNT(String.valueOf("addToOneBalanceAccount")); @@ -593,7 +661,7 @@ public enum SurchargeEnum { private String value; SurchargeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -614,7 +682,11 @@ public static SurchargeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("SurchargeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(SurchargeEnum.values())); + LOG.warning( + "SurchargeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(SurchargeEnum.values())); return null; } } @@ -623,10 +695,10 @@ public static SurchargeEnum fromValue(String value) { private SurchargeEnum surcharge; /** - * Books the tips (gratuity) to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * Books the tips (gratuity) to the specified balance account. Possible values: + * **addToLiableAccount**, **addToOneBalanceAccount**. */ public enum TipEnum { - ADDTOLIABLEACCOUNT(String.valueOf("addToLiableAccount")), ADDTOONEBALANCEACCOUNT(String.valueOf("addToOneBalanceAccount")); @@ -636,7 +708,7 @@ public enum TipEnum { private String value; TipEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -657,7 +729,11 @@ public static TipEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TipEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TipEnum.values())); + LOG.warning( + "TipEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TipEnum.values())); return null; } } @@ -665,21 +741,22 @@ public static TipEnum fromValue(String value) { public static final String JSON_PROPERTY_TIP = "tip"; private TipEnum tip; - public SplitConfigurationLogic() { - } + public SplitConfigurationLogic() {} @JsonCreator - public SplitConfigurationLogic( - @JsonProperty(JSON_PROPERTY_SPLIT_LOGIC_ID) String splitLogicId - ) { + public SplitConfigurationLogic(@JsonProperty(JSON_PROPERTY_SPLIT_LOGIC_ID) String splitLogicId) { this(); this.splitLogicId = splitLogicId; } /** - * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the + * specified balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. * - * @param acquiringFees Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @param acquiringFees Deducts the acquiring fees (the aggregated amount of interchange and + * scheme fee) from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * @return the current {@code SplitConfigurationLogic} instance, allowing for method chaining */ public SplitConfigurationLogic acquiringFees(AcquiringFeesEnum acquiringFees) { @@ -688,8 +765,13 @@ public SplitConfigurationLogic acquiringFees(AcquiringFeesEnum acquiringFees) { } /** - * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - * @return acquiringFees Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the + * specified balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. + * + * @return acquiringFees Deducts the acquiring fees (the aggregated amount of interchange and + * scheme fee) from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_ACQUIRING_FEES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -698,9 +780,13 @@ public AcquiringFeesEnum getAcquiringFees() { } /** - * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the + * specified balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. * - * @param acquiringFees Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @param acquiringFees Deducts the acquiring fees (the aggregated amount of interchange and + * scheme fee) from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_ACQUIRING_FEES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -711,7 +797,7 @@ public void setAcquiringFees(AcquiringFeesEnum acquiringFees) { /** * additionalCommission * - * @param additionalCommission + * @param additionalCommission * @return the current {@code SplitConfigurationLogic} instance, allowing for method chaining */ public SplitConfigurationLogic additionalCommission(AdditionalCommission additionalCommission) { @@ -721,7 +807,8 @@ public SplitConfigurationLogic additionalCommission(AdditionalCommission additio /** * Get additionalCommission - * @return additionalCommission + * + * @return additionalCommission */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_COMMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -732,7 +819,7 @@ public AdditionalCommission getAdditionalCommission() { /** * additionalCommission * - * @param additionalCommission + * @param additionalCommission */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_COMMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -741,9 +828,15 @@ public void setAdditionalCommission(AdditionalCommission additionalCommission) { } /** - * Deducts the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) + * from the specified balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. * - * @param adyenCommission Deducts the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @param adyenCommission Deducts the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) + * from the specified balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. * @return the current {@code SplitConfigurationLogic} instance, allowing for method chaining */ public SplitConfigurationLogic adyenCommission(AdyenCommissionEnum adyenCommission) { @@ -752,8 +845,15 @@ public SplitConfigurationLogic adyenCommission(AdyenCommissionEnum adyenCommissi } /** - * Deducts the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - * @return adyenCommission Deducts the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) + * from the specified balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. + * + * @return adyenCommission Deducts the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) + * from the specified balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_ADYEN_COMMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -762,9 +862,15 @@ public AdyenCommissionEnum getAdyenCommission() { } /** - * Deducts the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) + * from the specified balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. * - * @param adyenCommission Deducts the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @param adyenCommission Deducts the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) + * from the specified balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_ADYEN_COMMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -773,9 +879,12 @@ public void setAdyenCommission(AdyenCommissionEnum adyenCommission) { } /** - * Deducts the fees due to Adyen (markup or commission) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the fees due to Adyen (markup or commission) from the specified balance account. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param adyenFees Deducts the fees due to Adyen (markup or commission) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @param adyenFees Deducts the fees due to Adyen (markup or commission) from the specified + * balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. * @return the current {@code SplitConfigurationLogic} instance, allowing for method chaining */ public SplitConfigurationLogic adyenFees(AdyenFeesEnum adyenFees) { @@ -784,8 +893,12 @@ public SplitConfigurationLogic adyenFees(AdyenFeesEnum adyenFees) { } /** - * Deducts the fees due to Adyen (markup or commission) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - * @return adyenFees Deducts the fees due to Adyen (markup or commission) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the fees due to Adyen (markup or commission) from the specified balance account. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * + * @return adyenFees Deducts the fees due to Adyen (markup or commission) from the specified + * balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_ADYEN_FEES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -794,9 +907,12 @@ public AdyenFeesEnum getAdyenFees() { } /** - * Deducts the fees due to Adyen (markup or commission) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the fees due to Adyen (markup or commission) from the specified balance account. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param adyenFees Deducts the fees due to Adyen (markup or commission) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @param adyenFees Deducts the fees due to Adyen (markup or commission) from the specified + * balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_ADYEN_FEES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -805,9 +921,13 @@ public void setAdyenFees(AdyenFeesEnum adyenFees) { } /** - * Deducts the transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the transaction fee due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param adyenMarkup Deducts the transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @param adyenMarkup Deducts the transaction fee due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * @return the current {@code SplitConfigurationLogic} instance, allowing for method chaining */ public SplitConfigurationLogic adyenMarkup(AdyenMarkupEnum adyenMarkup) { @@ -816,8 +936,13 @@ public SplitConfigurationLogic adyenMarkup(AdyenMarkupEnum adyenMarkup) { } /** - * Deducts the transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - * @return adyenMarkup Deducts the transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the transaction fee due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * + * @return adyenMarkup Deducts the transaction fee due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_ADYEN_MARKUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -826,9 +951,13 @@ public AdyenMarkupEnum getAdyenMarkup() { } /** - * Deducts the transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the transaction fee due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param adyenMarkup Deducts the transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @param adyenMarkup Deducts the transaction fee due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_ADYEN_MARKUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -837,9 +966,13 @@ public void setAdyenMarkup(AdyenMarkupEnum adyenMarkup) { } /** - * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible + * values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, + * **deductAccordingToSplitRatio**. * - * @param chargeback Specifies how and from which balance account(s) to deduct the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * @param chargeback Specifies how and from which balance account(s) to deduct the chargeback + * amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, + * **deductAccordingToSplitRatio**. * @return the current {@code SplitConfigurationLogic} instance, allowing for method chaining */ public SplitConfigurationLogic chargeback(ChargebackEnum chargeback) { @@ -848,8 +981,13 @@ public SplitConfigurationLogic chargeback(ChargebackEnum chargeback) { } /** - * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. - * @return chargeback Specifies how and from which balance account(s) to deduct the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible + * values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, + * **deductAccordingToSplitRatio**. + * + * @return chargeback Specifies how and from which balance account(s) to deduct the chargeback + * amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, + * **deductAccordingToSplitRatio**. */ @JsonProperty(JSON_PROPERTY_CHARGEBACK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -858,9 +996,13 @@ public ChargebackEnum getChargeback() { } /** - * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible + * values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, + * **deductAccordingToSplitRatio**. * - * @param chargeback Specifies how and from which balance account(s) to deduct the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * @param chargeback Specifies how and from which balance account(s) to deduct the chargeback + * amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, + * **deductAccordingToSplitRatio**. */ @JsonProperty(JSON_PROPERTY_CHARGEBACK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -869,19 +1011,25 @@ public void setChargeback(ChargebackEnum chargeback) { } /** - * Deducts the chargeback costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * Deducts the chargeback costs from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount** * - * @param chargebackCostAllocation Deducts the chargeback costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * @param chargebackCostAllocation Deducts the chargeback costs from the specified balance + * account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** * @return the current {@code SplitConfigurationLogic} instance, allowing for method chaining */ - public SplitConfigurationLogic chargebackCostAllocation(ChargebackCostAllocationEnum chargebackCostAllocation) { + public SplitConfigurationLogic chargebackCostAllocation( + ChargebackCostAllocationEnum chargebackCostAllocation) { this.chargebackCostAllocation = chargebackCostAllocation; return this; } /** - * Deducts the chargeback costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** - * @return chargebackCostAllocation Deducts the chargeback costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * Deducts the chargeback costs from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * + * @return chargebackCostAllocation Deducts the chargeback costs from the specified balance + * account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** */ @JsonProperty(JSON_PROPERTY_CHARGEBACK_COST_ALLOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -890,9 +1038,11 @@ public ChargebackCostAllocationEnum getChargebackCostAllocation() { } /** - * Deducts the chargeback costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * Deducts the chargeback costs from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount** * - * @param chargebackCostAllocation Deducts the chargeback costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * @param chargebackCostAllocation Deducts the chargeback costs from the specified balance + * account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** */ @JsonProperty(JSON_PROPERTY_CHARGEBACK_COST_ALLOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -903,7 +1053,7 @@ public void setChargebackCostAllocation(ChargebackCostAllocationEnum chargebackC /** * commission * - * @param commission + * @param commission * @return the current {@code SplitConfigurationLogic} instance, allowing for method chaining */ public SplitConfigurationLogic commission(Commission commission) { @@ -913,7 +1063,8 @@ public SplitConfigurationLogic commission(Commission commission) { /** * Get commission - * @return commission + * + * @return commission */ @JsonProperty(JSON_PROPERTY_COMMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -924,7 +1075,7 @@ public Commission getCommission() { /** * commission * - * @param commission + * @param commission */ @JsonProperty(JSON_PROPERTY_COMMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -933,9 +1084,11 @@ public void setCommission(Commission commission) { } /** - * Deducts the interchange fee from specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the interchange fee from specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param interchange Deducts the interchange fee from specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @param interchange Deducts the interchange fee from specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * @return the current {@code SplitConfigurationLogic} instance, allowing for method chaining */ public SplitConfigurationLogic interchange(InterchangeEnum interchange) { @@ -944,8 +1097,11 @@ public SplitConfigurationLogic interchange(InterchangeEnum interchange) { } /** - * Deducts the interchange fee from specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - * @return interchange Deducts the interchange fee from specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the interchange fee from specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * + * @return interchange Deducts the interchange fee from specified balance account. Possible + * values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_INTERCHANGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -954,9 +1110,11 @@ public InterchangeEnum getInterchange() { } /** - * Deducts the interchange fee from specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the interchange fee from specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param interchange Deducts the interchange fee from specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @param interchange Deducts the interchange fee from specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_INTERCHANGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -965,9 +1123,56 @@ public void setInterchange(InterchangeEnum interchange) { } /** - * Deducts all transaction fees incurred by the payment from the specified balance account. The transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to Adyen (markup or commission). You can book any and all these fees to different balance account by specifying other transaction fee parameters in your split configuration profile: - [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): The transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): The transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): The fee paid to the card scheme for using their network. - [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): The fee paid to the issuer for each payment transaction made with the card network. - [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): The aggregated amount of Adyen's commission and markup. - [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): The aggregated amount of the interchange and scheme fees. If you don't include at least one transaction fee type in the `splitLogic` object, Adyen updates the payment request with the `paymentFee` parameter, booking all transaction fees to your platform's liable balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts all transaction fees incurred by the payment from the specified balance account. The + * transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to + * Adyen (markup or commission). You can book any and all these fees to different balance account + * by specifying other transaction fee parameters in your split configuration profile: - + * [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): + * The transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). + * - + * [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): + * The transaction fee due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). + * - + * [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): + * The fee paid to the card scheme for using their network. - + * [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): + * The fee paid to the issuer for each payment transaction made with the card network. - + * [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): + * The aggregated amount of Adyen's commission and markup. - + * [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): + * The aggregated amount of the interchange and scheme fees. If you don't include at least one + * transaction fee type in the `splitLogic` object, Adyen updates the payment request + * with the `paymentFee` parameter, booking all transaction fees to your platform's + * liable balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. * - * @param paymentFee Deducts all transaction fees incurred by the payment from the specified balance account. The transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to Adyen (markup or commission). You can book any and all these fees to different balance account by specifying other transaction fee parameters in your split configuration profile: - [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): The transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): The transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): The fee paid to the card scheme for using their network. - [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): The fee paid to the issuer for each payment transaction made with the card network. - [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): The aggregated amount of Adyen's commission and markup. - [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): The aggregated amount of the interchange and scheme fees. If you don't include at least one transaction fee type in the `splitLogic` object, Adyen updates the payment request with the `paymentFee` parameter, booking all transaction fees to your platform's liable balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @param paymentFee Deducts all transaction fees incurred by the payment from the specified + * balance account. The transaction fees include the acquiring fees (interchange and scheme + * fee), and the fees due to Adyen (markup or commission). You can book any and all these fees + * to different balance account by specifying other transaction fee parameters in your split + * configuration profile: - + * [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): + * The transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). + * - + * [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): + * The transaction fee due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). + * - + * [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): + * The fee paid to the card scheme for using their network. - + * [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): + * The fee paid to the issuer for each payment transaction made with the card network. - + * [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): + * The aggregated amount of Adyen's commission and markup. - + * [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): + * The aggregated amount of the interchange and scheme fees. If you don't include at least + * one transaction fee type in the `splitLogic` object, Adyen updates the payment + * request with the `paymentFee` parameter, booking all transaction fees to your + * platform's liable balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. * @return the current {@code SplitConfigurationLogic} instance, allowing for method chaining */ public SplitConfigurationLogic paymentFee(PaymentFeeEnum paymentFee) { @@ -976,8 +1181,56 @@ public SplitConfigurationLogic paymentFee(PaymentFeeEnum paymentFee) { } /** - * Deducts all transaction fees incurred by the payment from the specified balance account. The transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to Adyen (markup or commission). You can book any and all these fees to different balance account by specifying other transaction fee parameters in your split configuration profile: - [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): The transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): The transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): The fee paid to the card scheme for using their network. - [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): The fee paid to the issuer for each payment transaction made with the card network. - [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): The aggregated amount of Adyen's commission and markup. - [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): The aggregated amount of the interchange and scheme fees. If you don't include at least one transaction fee type in the `splitLogic` object, Adyen updates the payment request with the `paymentFee` parameter, booking all transaction fees to your platform's liable balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - * @return paymentFee Deducts all transaction fees incurred by the payment from the specified balance account. The transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to Adyen (markup or commission). You can book any and all these fees to different balance account by specifying other transaction fee parameters in your split configuration profile: - [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): The transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): The transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): The fee paid to the card scheme for using their network. - [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): The fee paid to the issuer for each payment transaction made with the card network. - [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): The aggregated amount of Adyen's commission and markup. - [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): The aggregated amount of the interchange and scheme fees. If you don't include at least one transaction fee type in the `splitLogic` object, Adyen updates the payment request with the `paymentFee` parameter, booking all transaction fees to your platform's liable balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts all transaction fees incurred by the payment from the specified balance account. The + * transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to + * Adyen (markup or commission). You can book any and all these fees to different balance account + * by specifying other transaction fee parameters in your split configuration profile: - + * [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): + * The transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). + * - + * [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): + * The transaction fee due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). + * - + * [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): + * The fee paid to the card scheme for using their network. - + * [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): + * The fee paid to the issuer for each payment transaction made with the card network. - + * [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): + * The aggregated amount of Adyen's commission and markup. - + * [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): + * The aggregated amount of the interchange and scheme fees. If you don't include at least one + * transaction fee type in the `splitLogic` object, Adyen updates the payment request + * with the `paymentFee` parameter, booking all transaction fees to your platform's + * liable balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. + * + * @return paymentFee Deducts all transaction fees incurred by the payment from the specified + * balance account. The transaction fees include the acquiring fees (interchange and scheme + * fee), and the fees due to Adyen (markup or commission). You can book any and all these fees + * to different balance account by specifying other transaction fee parameters in your split + * configuration profile: - + * [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): + * The transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). + * - + * [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): + * The transaction fee due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). + * - + * [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): + * The fee paid to the card scheme for using their network. - + * [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): + * The fee paid to the issuer for each payment transaction made with the card network. - + * [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): + * The aggregated amount of Adyen's commission and markup. - + * [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): + * The aggregated amount of the interchange and scheme fees. If you don't include at least + * one transaction fee type in the `splitLogic` object, Adyen updates the payment + * request with the `paymentFee` parameter, booking all transaction fees to your + * platform's liable balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_PAYMENT_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -986,9 +1239,56 @@ public PaymentFeeEnum getPaymentFee() { } /** - * Deducts all transaction fees incurred by the payment from the specified balance account. The transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to Adyen (markup or commission). You can book any and all these fees to different balance account by specifying other transaction fee parameters in your split configuration profile: - [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): The transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): The transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): The fee paid to the card scheme for using their network. - [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): The fee paid to the issuer for each payment transaction made with the card network. - [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): The aggregated amount of Adyen's commission and markup. - [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): The aggregated amount of the interchange and scheme fees. If you don't include at least one transaction fee type in the `splitLogic` object, Adyen updates the payment request with the `paymentFee` parameter, booking all transaction fees to your platform's liable balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts all transaction fees incurred by the payment from the specified balance account. The + * transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to + * Adyen (markup or commission). You can book any and all these fees to different balance account + * by specifying other transaction fee parameters in your split configuration profile: - + * [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): + * The transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). + * - + * [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): + * The transaction fee due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). + * - + * [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): + * The fee paid to the card scheme for using their network. - + * [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): + * The fee paid to the issuer for each payment transaction made with the card network. - + * [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): + * The aggregated amount of Adyen's commission and markup. - + * [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): + * The aggregated amount of the interchange and scheme fees. If you don't include at least one + * transaction fee type in the `splitLogic` object, Adyen updates the payment request + * with the `paymentFee` parameter, booking all transaction fees to your platform's + * liable balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. * - * @param paymentFee Deducts all transaction fees incurred by the payment from the specified balance account. The transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to Adyen (markup or commission). You can book any and all these fees to different balance account by specifying other transaction fee parameters in your split configuration profile: - [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): The transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): The transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): The fee paid to the card scheme for using their network. - [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): The fee paid to the issuer for each payment transaction made with the card network. - [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): The aggregated amount of Adyen's commission and markup. - [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): The aggregated amount of the interchange and scheme fees. If you don't include at least one transaction fee type in the `splitLogic` object, Adyen updates the payment request with the `paymentFee` parameter, booking all transaction fees to your platform's liable balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @param paymentFee Deducts all transaction fees incurred by the payment from the specified + * balance account. The transaction fees include the acquiring fees (interchange and scheme + * fee), and the fees due to Adyen (markup or commission). You can book any and all these fees + * to different balance account by specifying other transaction fee parameters in your split + * configuration profile: - + * [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): + * The transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). + * - + * [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): + * The transaction fee due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). + * - + * [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): + * The fee paid to the card scheme for using their network. - + * [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): + * The fee paid to the issuer for each payment transaction made with the card network. - + * [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): + * The aggregated amount of Adyen's commission and markup. - + * [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): + * The aggregated amount of the interchange and scheme fees. If you don't include at least + * one transaction fee type in the `splitLogic` object, Adyen updates the payment + * request with the `paymentFee` parameter, booking all transaction fees to your + * platform's liable balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_PAYMENT_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -997,9 +1297,12 @@ public void setPaymentFee(PaymentFeeEnum paymentFee) { } /** - * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** + * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** * - * @param refund Specifies how and from which balance account(s) to deduct the refund amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** + * @param refund Specifies how and from which balance account(s) to deduct the refund amount. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, + * **deductAccordingToSplitRatio** * @return the current {@code SplitConfigurationLogic} instance, allowing for method chaining */ public SplitConfigurationLogic refund(RefundEnum refund) { @@ -1008,8 +1311,12 @@ public SplitConfigurationLogic refund(RefundEnum refund) { } /** - * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** - * @return refund Specifies how and from which balance account(s) to deduct the refund amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** + * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** + * + * @return refund Specifies how and from which balance account(s) to deduct the refund amount. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, + * **deductAccordingToSplitRatio** */ @JsonProperty(JSON_PROPERTY_REFUND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1018,9 +1325,12 @@ public RefundEnum getRefund() { } /** - * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** + * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** * - * @param refund Specifies how and from which balance account(s) to deduct the refund amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** + * @param refund Specifies how and from which balance account(s) to deduct the refund amount. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, + * **deductAccordingToSplitRatio** */ @JsonProperty(JSON_PROPERTY_REFUND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1029,19 +1339,25 @@ public void setRefund(RefundEnum refund) { } /** - * Deducts the refund costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * Deducts the refund costs from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount** * - * @param refundCostAllocation Deducts the refund costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * @param refundCostAllocation Deducts the refund costs from the specified balance account. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** * @return the current {@code SplitConfigurationLogic} instance, allowing for method chaining */ - public SplitConfigurationLogic refundCostAllocation(RefundCostAllocationEnum refundCostAllocation) { + public SplitConfigurationLogic refundCostAllocation( + RefundCostAllocationEnum refundCostAllocation) { this.refundCostAllocation = refundCostAllocation; return this; } /** - * Deducts the refund costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** - * @return refundCostAllocation Deducts the refund costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * Deducts the refund costs from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * + * @return refundCostAllocation Deducts the refund costs from the specified balance account. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** */ @JsonProperty(JSON_PROPERTY_REFUND_COST_ALLOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1050,9 +1366,11 @@ public RefundCostAllocationEnum getRefundCostAllocation() { } /** - * Deducts the refund costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * Deducts the refund costs from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount** * - * @param refundCostAllocation Deducts the refund costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * @param refundCostAllocation Deducts the refund costs from the specified balance account. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** */ @JsonProperty(JSON_PROPERTY_REFUND_COST_ALLOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1061,9 +1379,11 @@ public void setRefundCostAllocation(RefundCostAllocationEnum refundCostAllocatio } /** - * Books the amount left over after currency conversion to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * Books the amount left over after currency conversion to the specified balance account. Possible + * values: **addToLiableAccount**, **addToOneBalanceAccount**. * - * @param remainder Books the amount left over after currency conversion to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * @param remainder Books the amount left over after currency conversion to the specified balance + * account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. * @return the current {@code SplitConfigurationLogic} instance, allowing for method chaining */ public SplitConfigurationLogic remainder(RemainderEnum remainder) { @@ -1072,8 +1392,11 @@ public SplitConfigurationLogic remainder(RemainderEnum remainder) { } /** - * Books the amount left over after currency conversion to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. - * @return remainder Books the amount left over after currency conversion to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * Books the amount left over after currency conversion to the specified balance account. Possible + * values: **addToLiableAccount**, **addToOneBalanceAccount**. + * + * @return remainder Books the amount left over after currency conversion to the specified balance + * account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_REMAINDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1082,9 +1405,11 @@ public RemainderEnum getRemainder() { } /** - * Books the amount left over after currency conversion to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * Books the amount left over after currency conversion to the specified balance account. Possible + * values: **addToLiableAccount**, **addToOneBalanceAccount**. * - * @param remainder Books the amount left over after currency conversion to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * @param remainder Books the amount left over after currency conversion to the specified balance + * account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_REMAINDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1093,9 +1418,11 @@ public void setRemainder(RemainderEnum remainder) { } /** - * Deducts the scheme fee from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the scheme fee from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param schemeFee Deducts the scheme fee from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @param schemeFee Deducts the scheme fee from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * @return the current {@code SplitConfigurationLogic} instance, allowing for method chaining */ public SplitConfigurationLogic schemeFee(SchemeFeeEnum schemeFee) { @@ -1104,8 +1431,11 @@ public SplitConfigurationLogic schemeFee(SchemeFeeEnum schemeFee) { } /** - * Deducts the scheme fee from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - * @return schemeFee Deducts the scheme fee from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the scheme fee from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * + * @return schemeFee Deducts the scheme fee from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_SCHEME_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1114,9 +1444,11 @@ public SchemeFeeEnum getSchemeFee() { } /** - * Deducts the scheme fee from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the scheme fee from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param schemeFee Deducts the scheme fee from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @param schemeFee Deducts the scheme fee from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_SCHEME_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1125,8 +1457,11 @@ public void setSchemeFee(SchemeFeeEnum schemeFee) { } /** - * Unique identifier of the collection of split instructions that are applied when the rule conditions are met. - * @return splitLogicId Unique identifier of the collection of split instructions that are applied when the rule conditions are met. + * Unique identifier of the collection of split instructions that are applied when the rule + * conditions are met. + * + * @return splitLogicId Unique identifier of the collection of split instructions that are applied + * when the rule conditions are met. */ @JsonProperty(JSON_PROPERTY_SPLIT_LOGIC_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1134,11 +1469,12 @@ public String getSplitLogicId() { return splitLogicId; } - /** - * Books the surcharge amount to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount** + * Books the surcharge amount to the specified balance account. Possible values: + * **addToLiableAccount**, **addToOneBalanceAccount** * - * @param surcharge Books the surcharge amount to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount** + * @param surcharge Books the surcharge amount to the specified balance account. Possible values: + * **addToLiableAccount**, **addToOneBalanceAccount** * @return the current {@code SplitConfigurationLogic} instance, allowing for method chaining */ public SplitConfigurationLogic surcharge(SurchargeEnum surcharge) { @@ -1147,8 +1483,11 @@ public SplitConfigurationLogic surcharge(SurchargeEnum surcharge) { } /** - * Books the surcharge amount to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount** - * @return surcharge Books the surcharge amount to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount** + * Books the surcharge amount to the specified balance account. Possible values: + * **addToLiableAccount**, **addToOneBalanceAccount** + * + * @return surcharge Books the surcharge amount to the specified balance account. Possible values: + * **addToLiableAccount**, **addToOneBalanceAccount** */ @JsonProperty(JSON_PROPERTY_SURCHARGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1157,9 +1496,11 @@ public SurchargeEnum getSurcharge() { } /** - * Books the surcharge amount to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount** + * Books the surcharge amount to the specified balance account. Possible values: + * **addToLiableAccount**, **addToOneBalanceAccount** * - * @param surcharge Books the surcharge amount to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount** + * @param surcharge Books the surcharge amount to the specified balance account. Possible values: + * **addToLiableAccount**, **addToOneBalanceAccount** */ @JsonProperty(JSON_PROPERTY_SURCHARGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1168,9 +1509,11 @@ public void setSurcharge(SurchargeEnum surcharge) { } /** - * Books the tips (gratuity) to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * Books the tips (gratuity) to the specified balance account. Possible values: + * **addToLiableAccount**, **addToOneBalanceAccount**. * - * @param tip Books the tips (gratuity) to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * @param tip Books the tips (gratuity) to the specified balance account. Possible values: + * **addToLiableAccount**, **addToOneBalanceAccount**. * @return the current {@code SplitConfigurationLogic} instance, allowing for method chaining */ public SplitConfigurationLogic tip(TipEnum tip) { @@ -1179,8 +1522,11 @@ public SplitConfigurationLogic tip(TipEnum tip) { } /** - * Books the tips (gratuity) to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. - * @return tip Books the tips (gratuity) to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * Books the tips (gratuity) to the specified balance account. Possible values: + * **addToLiableAccount**, **addToOneBalanceAccount**. + * + * @return tip Books the tips (gratuity) to the specified balance account. Possible values: + * **addToLiableAccount**, **addToOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_TIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1189,9 +1535,11 @@ public TipEnum getTip() { } /** - * Books the tips (gratuity) to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * Books the tips (gratuity) to the specified balance account. Possible values: + * **addToLiableAccount**, **addToOneBalanceAccount**. * - * @param tip Books the tips (gratuity) to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * @param tip Books the tips (gratuity) to the specified balance account. Possible values: + * **addToLiableAccount**, **addToOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_TIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1199,9 +1547,7 @@ public void setTip(TipEnum tip) { this.tip = tip; } - /** - * Return true if this SplitConfigurationLogic object is equal to o. - */ + /** Return true if this SplitConfigurationLogic object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -1211,28 +1557,46 @@ public boolean equals(Object o) { return false; } SplitConfigurationLogic splitConfigurationLogic = (SplitConfigurationLogic) o; - return Objects.equals(this.acquiringFees, splitConfigurationLogic.acquiringFees) && - Objects.equals(this.additionalCommission, splitConfigurationLogic.additionalCommission) && - Objects.equals(this.adyenCommission, splitConfigurationLogic.adyenCommission) && - Objects.equals(this.adyenFees, splitConfigurationLogic.adyenFees) && - Objects.equals(this.adyenMarkup, splitConfigurationLogic.adyenMarkup) && - Objects.equals(this.chargeback, splitConfigurationLogic.chargeback) && - Objects.equals(this.chargebackCostAllocation, splitConfigurationLogic.chargebackCostAllocation) && - Objects.equals(this.commission, splitConfigurationLogic.commission) && - Objects.equals(this.interchange, splitConfigurationLogic.interchange) && - Objects.equals(this.paymentFee, splitConfigurationLogic.paymentFee) && - Objects.equals(this.refund, splitConfigurationLogic.refund) && - Objects.equals(this.refundCostAllocation, splitConfigurationLogic.refundCostAllocation) && - Objects.equals(this.remainder, splitConfigurationLogic.remainder) && - Objects.equals(this.schemeFee, splitConfigurationLogic.schemeFee) && - Objects.equals(this.splitLogicId, splitConfigurationLogic.splitLogicId) && - Objects.equals(this.surcharge, splitConfigurationLogic.surcharge) && - Objects.equals(this.tip, splitConfigurationLogic.tip); + return Objects.equals(this.acquiringFees, splitConfigurationLogic.acquiringFees) + && Objects.equals(this.additionalCommission, splitConfigurationLogic.additionalCommission) + && Objects.equals(this.adyenCommission, splitConfigurationLogic.adyenCommission) + && Objects.equals(this.adyenFees, splitConfigurationLogic.adyenFees) + && Objects.equals(this.adyenMarkup, splitConfigurationLogic.adyenMarkup) + && Objects.equals(this.chargeback, splitConfigurationLogic.chargeback) + && Objects.equals( + this.chargebackCostAllocation, splitConfigurationLogic.chargebackCostAllocation) + && Objects.equals(this.commission, splitConfigurationLogic.commission) + && Objects.equals(this.interchange, splitConfigurationLogic.interchange) + && Objects.equals(this.paymentFee, splitConfigurationLogic.paymentFee) + && Objects.equals(this.refund, splitConfigurationLogic.refund) + && Objects.equals(this.refundCostAllocation, splitConfigurationLogic.refundCostAllocation) + && Objects.equals(this.remainder, splitConfigurationLogic.remainder) + && Objects.equals(this.schemeFee, splitConfigurationLogic.schemeFee) + && Objects.equals(this.splitLogicId, splitConfigurationLogic.splitLogicId) + && Objects.equals(this.surcharge, splitConfigurationLogic.surcharge) + && Objects.equals(this.tip, splitConfigurationLogic.tip); } @Override public int hashCode() { - return Objects.hash(acquiringFees, additionalCommission, adyenCommission, adyenFees, adyenMarkup, chargeback, chargebackCostAllocation, commission, interchange, paymentFee, refund, refundCostAllocation, remainder, schemeFee, splitLogicId, surcharge, tip); + return Objects.hash( + acquiringFees, + additionalCommission, + adyenCommission, + adyenFees, + adyenMarkup, + chargeback, + chargebackCostAllocation, + commission, + interchange, + paymentFee, + refund, + refundCostAllocation, + remainder, + schemeFee, + splitLogicId, + surcharge, + tip); } @Override @@ -1240,17 +1604,23 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SplitConfigurationLogic {\n"); sb.append(" acquiringFees: ").append(toIndentedString(acquiringFees)).append("\n"); - sb.append(" additionalCommission: ").append(toIndentedString(additionalCommission)).append("\n"); + sb.append(" additionalCommission: ") + .append(toIndentedString(additionalCommission)) + .append("\n"); sb.append(" adyenCommission: ").append(toIndentedString(adyenCommission)).append("\n"); sb.append(" adyenFees: ").append(toIndentedString(adyenFees)).append("\n"); sb.append(" adyenMarkup: ").append(toIndentedString(adyenMarkup)).append("\n"); sb.append(" chargeback: ").append(toIndentedString(chargeback)).append("\n"); - sb.append(" chargebackCostAllocation: ").append(toIndentedString(chargebackCostAllocation)).append("\n"); + sb.append(" chargebackCostAllocation: ") + .append(toIndentedString(chargebackCostAllocation)) + .append("\n"); sb.append(" commission: ").append(toIndentedString(commission)).append("\n"); sb.append(" interchange: ").append(toIndentedString(interchange)).append("\n"); sb.append(" paymentFee: ").append(toIndentedString(paymentFee)).append("\n"); sb.append(" refund: ").append(toIndentedString(refund)).append("\n"); - sb.append(" refundCostAllocation: ").append(toIndentedString(refundCostAllocation)).append("\n"); + sb.append(" refundCostAllocation: ") + .append(toIndentedString(refundCostAllocation)) + .append("\n"); sb.append(" remainder: ").append(toIndentedString(remainder)).append("\n"); sb.append(" schemeFee: ").append(toIndentedString(schemeFee)).append("\n"); sb.append(" splitLogicId: ").append(toIndentedString(splitLogicId)).append("\n"); @@ -1261,8 +1631,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1271,21 +1640,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SplitConfigurationLogic given an JSON string * * @param jsonString JSON string * @return An instance of SplitConfigurationLogic - * @throws JsonProcessingException if the JSON string is invalid with respect to SplitConfigurationLogic + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SplitConfigurationLogic */ public static SplitConfigurationLogic fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SplitConfigurationLogic.class); } -/** - * Convert an instance of SplitConfigurationLogic to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SplitConfigurationLogic to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/SplitConfigurationRule.java b/src/main/java/com/adyen/model/management/SplitConfigurationRule.java index 3fa591a7b..7d54a9fc5 100644 --- a/src/main/java/com/adyen/model/management/SplitConfigurationRule.java +++ b/src/main/java/com/adyen/model/management/SplitConfigurationRule.java @@ -2,32 +2,26 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.SplitConfigurationLogic; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * SplitConfigurationRule - */ +/** SplitConfigurationRule */ @JsonPropertyOrder({ SplitConfigurationRule.JSON_PROPERTY_CURRENCY, SplitConfigurationRule.JSON_PROPERTY_FUNDING_SOURCE, @@ -36,16 +30,15 @@ SplitConfigurationRule.JSON_PROPERTY_SHOPPER_INTERACTION, SplitConfigurationRule.JSON_PROPERTY_SPLIT_LOGIC }) - public class SplitConfigurationRule { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; /** - * The funding source of the payment method. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** + * The funding source of the payment method. Possible values: * **credit** * **debit** * + * **prepaid** * **deferred_debit** * **charged** * **ANY** */ public enum FundingSourceEnum { - CHARGED(String.valueOf("charged")), CREDIT(String.valueOf("credit")), @@ -63,7 +56,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -84,7 +77,11 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); + LOG.warning( + "FundingSourceEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -99,10 +96,15 @@ public static FundingSourceEnum fromValue(String value) { private String ruleId; /** - * The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: All sales channels. + * The sales channel condition that defines whether the split logic applies. Possible values: * + * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on + * file and/or subscription transactions, where the cardholder is known to the merchant (returning + * customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in + * contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where + * the customer is physically present to make a payment using a secure payment terminal. * + * **ANY**: All sales channels. */ public enum ShopperInteractionEnum { - ECOMMERCE(String.valueOf("Ecommerce")), CONTAUTH(String.valueOf("ContAuth")), @@ -118,7 +120,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -139,7 +141,11 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning( + "ShopperInteractionEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -150,21 +156,20 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_SPLIT_LOGIC = "splitLogic"; private SplitConfigurationLogic splitLogic; - public SplitConfigurationRule() { - } + public SplitConfigurationRule() {} @JsonCreator - public SplitConfigurationRule( - @JsonProperty(JSON_PROPERTY_RULE_ID) String ruleId - ) { + public SplitConfigurationRule(@JsonProperty(JSON_PROPERTY_RULE_ID) String ruleId) { this(); this.ruleId = ruleId; } /** - * The currency condition that defines whether the split logic applies. Its value must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * The currency condition that defines whether the split logic applies. Its value must be a + * three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). * - * @param currency The currency condition that defines whether the split logic applies. Its value must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * @param currency The currency condition that defines whether the split logic applies. Its value + * must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). * @return the current {@code SplitConfigurationRule} instance, allowing for method chaining */ public SplitConfigurationRule currency(String currency) { @@ -173,8 +178,11 @@ public SplitConfigurationRule currency(String currency) { } /** - * The currency condition that defines whether the split logic applies. Its value must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). - * @return currency The currency condition that defines whether the split logic applies. Its value must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * The currency condition that defines whether the split logic applies. Its value must be a + * three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * + * @return currency The currency condition that defines whether the split logic applies. Its value + * must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,9 +191,11 @@ public String getCurrency() { } /** - * The currency condition that defines whether the split logic applies. Its value must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * The currency condition that defines whether the split logic applies. Its value must be a + * three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). * - * @param currency The currency condition that defines whether the split logic applies. Its value must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * @param currency The currency condition that defines whether the split logic applies. Its value + * must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,9 +204,11 @@ public void setCurrency(String currency) { } /** - * The funding source of the payment method. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** + * The funding source of the payment method. Possible values: * **credit** * **debit** * + * **prepaid** * **deferred_debit** * **charged** * **ANY** * - * @param fundingSource The funding source of the payment method. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** + * @param fundingSource The funding source of the payment method. Possible values: * **credit** * + * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** * @return the current {@code SplitConfigurationRule} instance, allowing for method chaining */ public SplitConfigurationRule fundingSource(FundingSourceEnum fundingSource) { @@ -205,8 +217,11 @@ public SplitConfigurationRule fundingSource(FundingSourceEnum fundingSource) { } /** - * The funding source of the payment method. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** - * @return fundingSource The funding source of the payment method. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** + * The funding source of the payment method. Possible values: * **credit** * **debit** * + * **prepaid** * **deferred_debit** * **charged** * **ANY** + * + * @return fundingSource The funding source of the payment method. Possible values: * **credit** * + * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -215,9 +230,11 @@ public FundingSourceEnum getFundingSource() { } /** - * The funding source of the payment method. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** + * The funding source of the payment method. Possible values: * **credit** * **debit** * + * **prepaid** * **deferred_debit** * **charged** * **ANY** * - * @param fundingSource The funding source of the payment method. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** + * @param fundingSource The funding source of the payment method. Possible values: * **credit** * + * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -226,9 +243,16 @@ public void setFundingSource(FundingSourceEnum fundingSource) { } /** - * The payment method condition that defines whether the split logic applies. Possible values: * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all available payment methods. + * The payment method condition that defines whether the split logic applies. Possible values: * + * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): + * Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all + * available payment methods. * - * @param paymentMethod The payment method condition that defines whether the split logic applies. Possible values: * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all available payment methods. + * @param paymentMethod The payment method condition that defines whether the split logic applies. + * Possible values: * [Payment method + * variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the + * split logic for a specific payment method. * **ANY**: Apply the split logic for all + * available payment methods. * @return the current {@code SplitConfigurationRule} instance, allowing for method chaining */ public SplitConfigurationRule paymentMethod(String paymentMethod) { @@ -237,8 +261,16 @@ public SplitConfigurationRule paymentMethod(String paymentMethod) { } /** - * The payment method condition that defines whether the split logic applies. Possible values: * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all available payment methods. - * @return paymentMethod The payment method condition that defines whether the split logic applies. Possible values: * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all available payment methods. + * The payment method condition that defines whether the split logic applies. Possible values: * + * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): + * Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all + * available payment methods. + * + * @return paymentMethod The payment method condition that defines whether the split logic + * applies. Possible values: * [Payment method + * variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the + * split logic for a specific payment method. * **ANY**: Apply the split logic for all + * available payment methods. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -247,9 +279,16 @@ public String getPaymentMethod() { } /** - * The payment method condition that defines whether the split logic applies. Possible values: * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all available payment methods. + * The payment method condition that defines whether the split logic applies. Possible values: * + * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): + * Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all + * available payment methods. * - * @param paymentMethod The payment method condition that defines whether the split logic applies. Possible values: * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all available payment methods. + * @param paymentMethod The payment method condition that defines whether the split logic applies. + * Possible values: * [Payment method + * variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the + * split logic for a specific payment method. * **ANY**: Apply the split logic for all + * available payment methods. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -259,6 +298,7 @@ public void setPaymentMethod(String paymentMethod) { /** * The unique identifier of the split configuration rule. + * * @return ruleId The unique identifier of the split configuration rule. */ @JsonProperty(JSON_PROPERTY_RULE_ID) @@ -267,11 +307,22 @@ public String getRuleId() { return ruleId; } - /** - * The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: All sales channels. + * The sales channel condition that defines whether the split logic applies. Possible values: * + * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on + * file and/or subscription transactions, where the cardholder is known to the merchant (returning + * customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in + * contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where + * the customer is physically present to make a payment using a secure payment terminal. * + * **ANY**: All sales channels. * - * @param shopperInteraction The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: All sales channels. + * @param shopperInteraction The sales channel condition that defines whether the split logic + * applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is + * present. * **ContAuth**: Card on file and/or subscription transactions, where the + * cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and + * telephone-order transactions where the customer is in contact with the merchant via email + * or telephone. * **POS**: Point-of-sale transactions where the customer is physically + * present to make a payment using a secure payment terminal. * **ANY**: All sales channels. * @return the current {@code SplitConfigurationRule} instance, allowing for method chaining */ public SplitConfigurationRule shopperInteraction(ShopperInteractionEnum shopperInteraction) { @@ -280,8 +331,21 @@ public SplitConfigurationRule shopperInteraction(ShopperInteractionEnum shopperI } /** - * The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: All sales channels. - * @return shopperInteraction The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: All sales channels. + * The sales channel condition that defines whether the split logic applies. Possible values: * + * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on + * file and/or subscription transactions, where the cardholder is known to the merchant (returning + * customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in + * contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where + * the customer is physically present to make a payment using a secure payment terminal. * + * **ANY**: All sales channels. + * + * @return shopperInteraction The sales channel condition that defines whether the split logic + * applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is + * present. * **ContAuth**: Card on file and/or subscription transactions, where the + * cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and + * telephone-order transactions where the customer is in contact with the merchant via email + * or telephone. * **POS**: Point-of-sale transactions where the customer is physically + * present to make a payment using a secure payment terminal. * **ANY**: All sales channels. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -290,9 +354,21 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: All sales channels. + * The sales channel condition that defines whether the split logic applies. Possible values: * + * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on + * file and/or subscription transactions, where the cardholder is known to the merchant (returning + * customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in + * contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where + * the customer is physically present to make a payment using a secure payment terminal. * + * **ANY**: All sales channels. * - * @param shopperInteraction The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: All sales channels. + * @param shopperInteraction The sales channel condition that defines whether the split logic + * applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is + * present. * **ContAuth**: Card on file and/or subscription transactions, where the + * cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and + * telephone-order transactions where the customer is in contact with the merchant via email + * or telephone. * **POS**: Point-of-sale transactions where the customer is physically + * present to make a payment using a secure payment terminal. * **ANY**: All sales channels. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -303,7 +379,7 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { /** * splitLogic * - * @param splitLogic + * @param splitLogic * @return the current {@code SplitConfigurationRule} instance, allowing for method chaining */ public SplitConfigurationRule splitLogic(SplitConfigurationLogic splitLogic) { @@ -313,7 +389,8 @@ public SplitConfigurationRule splitLogic(SplitConfigurationLogic splitLogic) { /** * Get splitLogic - * @return splitLogic + * + * @return splitLogic */ @JsonProperty(JSON_PROPERTY_SPLIT_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -324,7 +401,7 @@ public SplitConfigurationLogic getSplitLogic() { /** * splitLogic * - * @param splitLogic + * @param splitLogic */ @JsonProperty(JSON_PROPERTY_SPLIT_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -332,9 +409,7 @@ public void setSplitLogic(SplitConfigurationLogic splitLogic) { this.splitLogic = splitLogic; } - /** - * Return true if this SplitConfigurationRule object is equal to o. - */ + /** Return true if this SplitConfigurationRule object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -344,17 +419,18 @@ public boolean equals(Object o) { return false; } SplitConfigurationRule splitConfigurationRule = (SplitConfigurationRule) o; - return Objects.equals(this.currency, splitConfigurationRule.currency) && - Objects.equals(this.fundingSource, splitConfigurationRule.fundingSource) && - Objects.equals(this.paymentMethod, splitConfigurationRule.paymentMethod) && - Objects.equals(this.ruleId, splitConfigurationRule.ruleId) && - Objects.equals(this.shopperInteraction, splitConfigurationRule.shopperInteraction) && - Objects.equals(this.splitLogic, splitConfigurationRule.splitLogic); + return Objects.equals(this.currency, splitConfigurationRule.currency) + && Objects.equals(this.fundingSource, splitConfigurationRule.fundingSource) + && Objects.equals(this.paymentMethod, splitConfigurationRule.paymentMethod) + && Objects.equals(this.ruleId, splitConfigurationRule.ruleId) + && Objects.equals(this.shopperInteraction, splitConfigurationRule.shopperInteraction) + && Objects.equals(this.splitLogic, splitConfigurationRule.splitLogic); } @Override public int hashCode() { - return Objects.hash(currency, fundingSource, paymentMethod, ruleId, shopperInteraction, splitLogic); + return Objects.hash( + currency, fundingSource, paymentMethod, ruleId, shopperInteraction, splitLogic); } @Override @@ -372,8 +448,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -382,21 +457,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SplitConfigurationRule given an JSON string * * @param jsonString JSON string * @return An instance of SplitConfigurationRule - * @throws JsonProcessingException if the JSON string is invalid with respect to SplitConfigurationRule + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SplitConfigurationRule */ public static SplitConfigurationRule fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SplitConfigurationRule.class); } -/** - * Convert an instance of SplitConfigurationRule to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SplitConfigurationRule to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Standalone.java b/src/main/java/com/adyen/model/management/Standalone.java index f8541c536..a84607cee 100644 --- a/src/main/java/com/adyen/model/management/Standalone.java +++ b/src/main/java/com/adyen/model/management/Standalone.java @@ -2,37 +2,27 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Standalone - */ +/** Standalone */ @JsonPropertyOrder({ Standalone.JSON_PROPERTY_CURRENCY_CODE, Standalone.JSON_PROPERTY_ENABLE_GRATUITIES, Standalone.JSON_PROPERTY_ENABLE_STANDALONE }) - public class Standalone { public static final String JSON_PROPERTY_CURRENCY_CODE = "currencyCode"; private String currencyCode; @@ -43,13 +33,14 @@ public class Standalone { public static final String JSON_PROPERTY_ENABLE_STANDALONE = "enableStandalone"; private Boolean enableStandalone; - public Standalone() { - } + public Standalone() {} /** - * The default currency of the standalone payment terminal as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. + * The default currency of the standalone payment terminal as an [ISO + * 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. * - * @param currencyCode The default currency of the standalone payment terminal as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. + * @param currencyCode The default currency of the standalone payment terminal as an [ISO + * 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. * @return the current {@code Standalone} instance, allowing for method chaining */ public Standalone currencyCode(String currencyCode) { @@ -58,8 +49,11 @@ public Standalone currencyCode(String currencyCode) { } /** - * The default currency of the standalone payment terminal as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. - * @return currencyCode The default currency of the standalone payment terminal as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. + * The default currency of the standalone payment terminal as an [ISO + * 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. + * + * @return currencyCode The default currency of the standalone payment terminal as an [ISO + * 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. */ @JsonProperty(JSON_PROPERTY_CURRENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,9 +62,11 @@ public String getCurrencyCode() { } /** - * The default currency of the standalone payment terminal as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. + * The default currency of the standalone payment terminal as an [ISO + * 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. * - * @param currencyCode The default currency of the standalone payment terminal as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. + * @param currencyCode The default currency of the standalone payment terminal as an [ISO + * 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. */ @JsonProperty(JSON_PROPERTY_CURRENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,9 +75,11 @@ public void setCurrencyCode(String currencyCode) { } /** - * Indicates whether the tipping options specified in `gratuities` are enabled on the standalone terminal. + * Indicates whether the tipping options specified in `gratuities` are enabled on the + * standalone terminal. * - * @param enableGratuities Indicates whether the tipping options specified in `gratuities` are enabled on the standalone terminal. + * @param enableGratuities Indicates whether the tipping options specified in + * `gratuities` are enabled on the standalone terminal. * @return the current {@code Standalone} instance, allowing for method chaining */ public Standalone enableGratuities(Boolean enableGratuities) { @@ -90,8 +88,11 @@ public Standalone enableGratuities(Boolean enableGratuities) { } /** - * Indicates whether the tipping options specified in `gratuities` are enabled on the standalone terminal. - * @return enableGratuities Indicates whether the tipping options specified in `gratuities` are enabled on the standalone terminal. + * Indicates whether the tipping options specified in `gratuities` are enabled on the + * standalone terminal. + * + * @return enableGratuities Indicates whether the tipping options specified in + * `gratuities` are enabled on the standalone terminal. */ @JsonProperty(JSON_PROPERTY_ENABLE_GRATUITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,9 +101,11 @@ public Boolean getEnableGratuities() { } /** - * Indicates whether the tipping options specified in `gratuities` are enabled on the standalone terminal. + * Indicates whether the tipping options specified in `gratuities` are enabled on the + * standalone terminal. * - * @param enableGratuities Indicates whether the tipping options specified in `gratuities` are enabled on the standalone terminal. + * @param enableGratuities Indicates whether the tipping options specified in + * `gratuities` are enabled on the standalone terminal. */ @JsonProperty(JSON_PROPERTY_ENABLE_GRATUITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,6 +126,7 @@ public Standalone enableStandalone(Boolean enableStandalone) { /** * Enable standalone mode. + * * @return enableStandalone Enable standalone mode. */ @JsonProperty(JSON_PROPERTY_ENABLE_STANDALONE) @@ -142,9 +146,7 @@ public void setEnableStandalone(Boolean enableStandalone) { this.enableStandalone = enableStandalone; } - /** - * Return true if this Standalone object is equal to o. - */ + /** Return true if this Standalone object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +156,9 @@ public boolean equals(Object o) { return false; } Standalone standalone = (Standalone) o; - return Objects.equals(this.currencyCode, standalone.currencyCode) && - Objects.equals(this.enableGratuities, standalone.enableGratuities) && - Objects.equals(this.enableStandalone, standalone.enableStandalone); + return Objects.equals(this.currencyCode, standalone.currencyCode) + && Objects.equals(this.enableGratuities, standalone.enableGratuities) + && Objects.equals(this.enableStandalone, standalone.enableStandalone); } @Override @@ -176,8 +178,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +187,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Standalone given an JSON string * * @param jsonString JSON string @@ -196,11 +197,12 @@ private String toIndentedString(Object o) { public static Standalone fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Standalone.class); } -/** - * Convert an instance of Standalone to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Standalone to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/StarInfo.java b/src/main/java/com/adyen/model/management/StarInfo.java index 627e8b56b..6108d1e1e 100644 --- a/src/main/java/com/adyen/model/management/StarInfo.java +++ b/src/main/java/com/adyen/model/management/StarInfo.java @@ -2,43 +2,40 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.TransactionDescriptionInfo; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * StarInfo - */ +/** StarInfo */ @JsonPropertyOrder({ StarInfo.JSON_PROPERTY_PROCESSING_TYPE, StarInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION }) - public class StarInfo { /** - * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * The type of transactions processed over this payment method. Allowed values: - **pos** for + * in-person payments. - **billpay** for subscription payments, both the initial payment and the + * later recurring payments. These transactions have `recurringProcessingModel` + * **Subscription**. - **ecom** for all other card not present transactions. This includes + * non-recurring transactions and transactions with `recurringProcessingModel` + * **CardOnFile** or **UnscheduledCardOnFile**. */ public enum ProcessingTypeEnum { - BILLPAY(String.valueOf("billpay")), ECOM(String.valueOf("ecom")), @@ -50,7 +47,7 @@ public enum ProcessingTypeEnum { private String value; ProcessingTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -71,7 +68,11 @@ public static ProcessingTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ProcessingTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ProcessingTypeEnum.values())); + LOG.warning( + "ProcessingTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ProcessingTypeEnum.values())); return null; } } @@ -82,13 +83,22 @@ public static ProcessingTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANSACTION_DESCRIPTION = "transactionDescription"; private TransactionDescriptionInfo transactionDescription; - public StarInfo() { - } + public StarInfo() {} /** - * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * The type of transactions processed over this payment method. Allowed values: - **pos** for + * in-person payments. - **billpay** for subscription payments, both the initial payment and the + * later recurring payments. These transactions have `recurringProcessingModel` + * **Subscription**. - **ecom** for all other card not present transactions. This includes + * non-recurring transactions and transactions with `recurringProcessingModel` + * **CardOnFile** or **UnscheduledCardOnFile**. * - * @param processingType The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * @param processingType The type of transactions processed over this payment method. Allowed + * values: - **pos** for in-person payments. - **billpay** for subscription payments, both the + * initial payment and the later recurring payments. These transactions have + * `recurringProcessingModel` **Subscription**. - **ecom** for all other card not + * present transactions. This includes non-recurring transactions and transactions with + * `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. * @return the current {@code StarInfo} instance, allowing for method chaining */ public StarInfo processingType(ProcessingTypeEnum processingType) { @@ -97,8 +107,19 @@ public StarInfo processingType(ProcessingTypeEnum processingType) { } /** - * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. - * @return processingType The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * The type of transactions processed over this payment method. Allowed values: - **pos** for + * in-person payments. - **billpay** for subscription payments, both the initial payment and the + * later recurring payments. These transactions have `recurringProcessingModel` + * **Subscription**. - **ecom** for all other card not present transactions. This includes + * non-recurring transactions and transactions with `recurringProcessingModel` + * **CardOnFile** or **UnscheduledCardOnFile**. + * + * @return processingType The type of transactions processed over this payment method. Allowed + * values: - **pos** for in-person payments. - **billpay** for subscription payments, both the + * initial payment and the later recurring payments. These transactions have + * `recurringProcessingModel` **Subscription**. - **ecom** for all other card not + * present transactions. This includes non-recurring transactions and transactions with + * `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. */ @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,9 +128,19 @@ public ProcessingTypeEnum getProcessingType() { } /** - * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * The type of transactions processed over this payment method. Allowed values: - **pos** for + * in-person payments. - **billpay** for subscription payments, both the initial payment and the + * later recurring payments. These transactions have `recurringProcessingModel` + * **Subscription**. - **ecom** for all other card not present transactions. This includes + * non-recurring transactions and transactions with `recurringProcessingModel` + * **CardOnFile** or **UnscheduledCardOnFile**. * - * @param processingType The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * @param processingType The type of transactions processed over this payment method. Allowed + * values: - **pos** for in-person payments. - **billpay** for subscription payments, both the + * initial payment and the later recurring payments. These transactions have + * `recurringProcessingModel` **Subscription**. - **ecom** for all other card not + * present transactions. This includes non-recurring transactions and transactions with + * `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. */ @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -120,7 +151,7 @@ public void setProcessingType(ProcessingTypeEnum processingType) { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription * @return the current {@code StarInfo} instance, allowing for method chaining */ public StarInfo transactionDescription(TransactionDescriptionInfo transactionDescription) { @@ -130,7 +161,8 @@ public StarInfo transactionDescription(TransactionDescriptionInfo transactionDes /** * Get transactionDescription - * @return transactionDescription + * + * @return transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -141,7 +173,7 @@ public TransactionDescriptionInfo getTransactionDescription() { /** * transactionDescription * - * @param transactionDescription + * @param transactionDescription */ @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -149,9 +181,7 @@ public void setTransactionDescription(TransactionDescriptionInfo transactionDesc this.transactionDescription = transactionDescription; } - /** - * Return true if this StarInfo object is equal to o. - */ + /** Return true if this StarInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -161,8 +191,8 @@ public boolean equals(Object o) { return false; } StarInfo starInfo = (StarInfo) o; - return Objects.equals(this.processingType, starInfo.processingType) && - Objects.equals(this.transactionDescription, starInfo.transactionDescription); + return Objects.equals(this.processingType, starInfo.processingType) + && Objects.equals(this.transactionDescription, starInfo.transactionDescription); } @Override @@ -175,14 +205,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class StarInfo {\n"); sb.append(" processingType: ").append(toIndentedString(processingType)).append("\n"); - sb.append(" transactionDescription: ").append(toIndentedString(transactionDescription)).append("\n"); + sb.append(" transactionDescription: ") + .append(toIndentedString(transactionDescription)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -191,7 +222,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of StarInfo given an JSON string * * @param jsonString JSON string @@ -201,11 +232,12 @@ private String toIndentedString(Object o) { public static StarInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StarInfo.class); } -/** - * Convert an instance of StarInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of StarInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Store.java b/src/main/java/com/adyen/model/management/Store.java index f2d2fd1d6..cb55cdb0a 100644 --- a/src/main/java/com/adyen/model/management/Store.java +++ b/src/main/java/com/adyen/model/management/Store.java @@ -2,37 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.Links; -import com.adyen.model.management.StoreLocation; -import com.adyen.model.management.StoreSplitConfiguration; -import com.adyen.model.management.SubMerchantData; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * Store - */ +/** Store */ @JsonPropertyOrder({ Store.JSON_PROPERTY_LINKS, Store.JSON_PROPERTY_ADDRESS, @@ -48,7 +39,6 @@ Store.JSON_PROPERTY_STATUS, Store.JSON_PROPERTY_SUB_MERCHANT_DATA }) - public class Store { public static final String JSON_PROPERTY_LINKS = "_links"; private Links links; @@ -84,10 +74,13 @@ public class Store { private StoreSplitConfiguration splitConfiguration; /** - * The status of the store. Possible values are: - **active**. This value is assigned automatically when a store is created. - **inactive**. The terminals under the store are blocked from accepting new transactions, but capturing outstanding transactions is still possible. - **closed**. This status is irreversible. The terminals under the store are reassigned to the merchant inventory. + * The status of the store. Possible values are: - **active**. This value is assigned + * automatically when a store is created. - **inactive**. The terminals under the store are + * blocked from accepting new transactions, but capturing outstanding transactions is still + * possible. - **closed**. This status is irreversible. The terminals under the store are + * reassigned to the merchant inventory. */ public enum StatusEnum { - ACTIVE(String.valueOf("active")), CLOSED(String.valueOf("closed")), @@ -99,7 +92,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -120,7 +113,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -131,13 +128,12 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_SUB_MERCHANT_DATA = "subMerchantData"; private SubMerchantData subMerchantData; - public Store() { - } + public Store() {} /** * links * - * @param links + * @param links * @return the current {@code Store} instance, allowing for method chaining */ public Store links(Links links) { @@ -147,7 +143,8 @@ public Store links(Links links) { /** * Get links - * @return links + * + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,7 +155,7 @@ public Links getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,7 +166,7 @@ public void setLinks(Links links) { /** * address * - * @param address + * @param address * @return the current {@code Store} instance, allowing for method chaining */ public Store address(StoreLocation address) { @@ -179,7 +176,8 @@ public Store address(StoreLocation address) { /** * Get address - * @return address + * + * @return address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,7 +188,7 @@ public StoreLocation getAddress() { /** * address * - * @param address + * @param address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -199,9 +197,16 @@ public void setAddress(StoreLocation address) { } /** - * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businesslines__resParam_id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. + * The unique identifiers of the [business + * lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businesslines__resParam_id) + * that the store is associated with. If not specified, the business line of the merchant account + * is used. Required when there are multiple business lines under the merchant account. * - * @param businessLineIds The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businesslines__resParam_id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. + * @param businessLineIds The unique identifiers of the [business + * lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businesslines__resParam_id) + * that the store is associated with. If not specified, the business line of the merchant + * account is used. Required when there are multiple business lines under the merchant + * account. * @return the current {@code Store} instance, allowing for method chaining */ public Store businessLineIds(List businessLineIds) { @@ -218,8 +223,16 @@ public Store addBusinessLineIdsItem(String businessLineIdsItem) { } /** - * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businesslines__resParam_id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. - * @return businessLineIds The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businesslines__resParam_id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. + * The unique identifiers of the [business + * lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businesslines__resParam_id) + * that the store is associated with. If not specified, the business line of the merchant account + * is used. Required when there are multiple business lines under the merchant account. + * + * @return businessLineIds The unique identifiers of the [business + * lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businesslines__resParam_id) + * that the store is associated with. If not specified, the business line of the merchant + * account is used. Required when there are multiple business lines under the merchant + * account. */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -228,9 +241,16 @@ public List getBusinessLineIds() { } /** - * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businesslines__resParam_id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. + * The unique identifiers of the [business + * lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businesslines__resParam_id) + * that the store is associated with. If not specified, the business line of the merchant account + * is used. Required when there are multiple business lines under the merchant account. * - * @param businessLineIds The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businesslines__resParam_id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. + * @param businessLineIds The unique identifiers of the [business + * lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businesslines__resParam_id) + * that the store is associated with. If not specified, the business line of the merchant + * account is used. Required when there are multiple business lines under the merchant + * account. */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -251,6 +271,7 @@ public Store description(String description) { /** * The description of the store. + * * @return description The description of the store. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -271,9 +292,15 @@ public void setDescription(String description) { } /** - * The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * The unique identifier of the store, used by certain payment methods and tax authorities. + * Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, + * hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip + * in Australia, up to 50 digits. * - * @param externalReferenceId The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * @param externalReferenceId The unique identifier of the store, used by certain payment methods + * and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 + * separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, + * up to 14 digits. Optional for Zip in Australia, up to 50 digits. * @return the current {@code Store} instance, allowing for method chaining */ public Store externalReferenceId(String externalReferenceId) { @@ -282,8 +309,15 @@ public Store externalReferenceId(String externalReferenceId) { } /** - * The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. - * @return externalReferenceId The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * The unique identifier of the store, used by certain payment methods and tax authorities. + * Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, + * hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip + * in Australia, up to 50 digits. + * + * @return externalReferenceId The unique identifier of the store, used by certain payment methods + * and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 + * separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, + * up to 14 digits. Optional for Zip in Australia, up to 50 digits. */ @JsonProperty(JSON_PROPERTY_EXTERNAL_REFERENCE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -292,9 +326,15 @@ public String getExternalReferenceId() { } /** - * The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * The unique identifier of the store, used by certain payment methods and tax authorities. + * Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, + * hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip + * in Australia, up to 50 digits. * - * @param externalReferenceId The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * @param externalReferenceId The unique identifier of the store, used by certain payment methods + * and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 + * separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, + * up to 14 digits. Optional for Zip in Australia, up to 50 digits. */ @JsonProperty(JSON_PROPERTY_EXTERNAL_REFERENCE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -315,6 +355,7 @@ public Store id(String id) { /** * The unique identifier of the store. This value is generated by Adyen. + * * @return id The unique identifier of the store. This value is generated by Adyen. */ @JsonProperty(JSON_PROPERTY_ID) @@ -347,6 +388,7 @@ public Store merchantId(String merchantId) { /** * The unique identifier of the merchant account that the store belongs to. + * * @return merchantId The unique identifier of the merchant account that the store belongs to. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @@ -367,9 +409,13 @@ public void setMerchantId(String merchantId) { } /** - * The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. + * The phone number of the store, including '+' and country code in the + * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we + * convert and validate the phone number against E.164. * - * @param phoneNumber The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. + * @param phoneNumber The phone number of the store, including '+' and country code in the + * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we + * convert and validate the phone number against E.164. * @return the current {@code Store} instance, allowing for method chaining */ public Store phoneNumber(String phoneNumber) { @@ -378,8 +424,13 @@ public Store phoneNumber(String phoneNumber) { } /** - * The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. - * @return phoneNumber The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. + * The phone number of the store, including '+' and country code in the + * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we + * convert and validate the phone number against E.164. + * + * @return phoneNumber The phone number of the store, including '+' and country code in + * the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, + * we convert and validate the phone number against E.164. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -388,9 +439,13 @@ public String getPhoneNumber() { } /** - * The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. + * The phone number of the store, including '+' and country code in the + * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we + * convert and validate the phone number against E.164. * - * @param phoneNumber The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. + * @param phoneNumber The phone number of the store, including '+' and country code in the + * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we + * convert and validate the phone number against E.164. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -399,9 +454,13 @@ public void setPhoneNumber(String phoneNumber) { } /** - * A reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_) + * A reference to recognize the store by. Also known as the store code. Allowed characters: + * lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and + * underscore (_) * - * @param reference A reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_) + * @param reference A reference to recognize the store by. Also known as the store code. Allowed + * characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen + * (-), and underscore (_) * @return the current {@code Store} instance, allowing for method chaining */ public Store reference(String reference) { @@ -410,8 +469,13 @@ public Store reference(String reference) { } /** - * A reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_) - * @return reference A reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_) + * A reference to recognize the store by. Also known as the store code. Allowed characters: + * lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and + * underscore (_) + * + * @return reference A reference to recognize the store by. Also known as the store code. Allowed + * characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen + * (-), and underscore (_) */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -420,9 +484,13 @@ public String getReference() { } /** - * A reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_) + * A reference to recognize the store by. Also known as the store code. Allowed characters: + * lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and + * underscore (_) * - * @param reference A reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_) + * @param reference A reference to recognize the store by. Also known as the store code. Allowed + * characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen + * (-), and underscore (_) */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -431,9 +499,11 @@ public void setReference(String reference) { } /** - * The store name shown on the shopper's bank or credit card statement and on the shopper receipt. + * The store name shown on the shopper's bank or credit card statement and on the shopper + * receipt. * - * @param shopperStatement The store name shown on the shopper's bank or credit card statement and on the shopper receipt. + * @param shopperStatement The store name shown on the shopper's bank or credit card statement + * and on the shopper receipt. * @return the current {@code Store} instance, allowing for method chaining */ public Store shopperStatement(String shopperStatement) { @@ -442,8 +512,11 @@ public Store shopperStatement(String shopperStatement) { } /** - * The store name shown on the shopper's bank or credit card statement and on the shopper receipt. - * @return shopperStatement The store name shown on the shopper's bank or credit card statement and on the shopper receipt. + * The store name shown on the shopper's bank or credit card statement and on the shopper + * receipt. + * + * @return shopperStatement The store name shown on the shopper's bank or credit card + * statement and on the shopper receipt. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -452,9 +525,11 @@ public String getShopperStatement() { } /** - * The store name shown on the shopper's bank or credit card statement and on the shopper receipt. + * The store name shown on the shopper's bank or credit card statement and on the shopper + * receipt. * - * @param shopperStatement The store name shown on the shopper's bank or credit card statement and on the shopper receipt. + * @param shopperStatement The store name shown on the shopper's bank or credit card statement + * and on the shopper receipt. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -465,7 +540,7 @@ public void setShopperStatement(String shopperStatement) { /** * splitConfiguration * - * @param splitConfiguration + * @param splitConfiguration * @return the current {@code Store} instance, allowing for method chaining */ public Store splitConfiguration(StoreSplitConfiguration splitConfiguration) { @@ -475,7 +550,8 @@ public Store splitConfiguration(StoreSplitConfiguration splitConfiguration) { /** * Get splitConfiguration - * @return splitConfiguration + * + * @return splitConfiguration */ @JsonProperty(JSON_PROPERTY_SPLIT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -486,7 +562,7 @@ public StoreSplitConfiguration getSplitConfiguration() { /** * splitConfiguration * - * @param splitConfiguration + * @param splitConfiguration */ @JsonProperty(JSON_PROPERTY_SPLIT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -495,9 +571,17 @@ public void setSplitConfiguration(StoreSplitConfiguration splitConfiguration) { } /** - * The status of the store. Possible values are: - **active**. This value is assigned automatically when a store is created. - **inactive**. The terminals under the store are blocked from accepting new transactions, but capturing outstanding transactions is still possible. - **closed**. This status is irreversible. The terminals under the store are reassigned to the merchant inventory. + * The status of the store. Possible values are: - **active**. This value is assigned + * automatically when a store is created. - **inactive**. The terminals under the store are + * blocked from accepting new transactions, but capturing outstanding transactions is still + * possible. - **closed**. This status is irreversible. The terminals under the store are + * reassigned to the merchant inventory. * - * @param status The status of the store. Possible values are: - **active**. This value is assigned automatically when a store is created. - **inactive**. The terminals under the store are blocked from accepting new transactions, but capturing outstanding transactions is still possible. - **closed**. This status is irreversible. The terminals under the store are reassigned to the merchant inventory. + * @param status The status of the store. Possible values are: - **active**. This value is + * assigned automatically when a store is created. - **inactive**. The terminals under the + * store are blocked from accepting new transactions, but capturing outstanding transactions + * is still possible. - **closed**. This status is irreversible. The terminals under the store + * are reassigned to the merchant inventory. * @return the current {@code Store} instance, allowing for method chaining */ public Store status(StatusEnum status) { @@ -506,8 +590,17 @@ public Store status(StatusEnum status) { } /** - * The status of the store. Possible values are: - **active**. This value is assigned automatically when a store is created. - **inactive**. The terminals under the store are blocked from accepting new transactions, but capturing outstanding transactions is still possible. - **closed**. This status is irreversible. The terminals under the store are reassigned to the merchant inventory. - * @return status The status of the store. Possible values are: - **active**. This value is assigned automatically when a store is created. - **inactive**. The terminals under the store are blocked from accepting new transactions, but capturing outstanding transactions is still possible. - **closed**. This status is irreversible. The terminals under the store are reassigned to the merchant inventory. + * The status of the store. Possible values are: - **active**. This value is assigned + * automatically when a store is created. - **inactive**. The terminals under the store are + * blocked from accepting new transactions, but capturing outstanding transactions is still + * possible. - **closed**. This status is irreversible. The terminals under the store are + * reassigned to the merchant inventory. + * + * @return status The status of the store. Possible values are: - **active**. This value is + * assigned automatically when a store is created. - **inactive**. The terminals under the + * store are blocked from accepting new transactions, but capturing outstanding transactions + * is still possible. - **closed**. This status is irreversible. The terminals under the store + * are reassigned to the merchant inventory. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -516,9 +609,17 @@ public StatusEnum getStatus() { } /** - * The status of the store. Possible values are: - **active**. This value is assigned automatically when a store is created. - **inactive**. The terminals under the store are blocked from accepting new transactions, but capturing outstanding transactions is still possible. - **closed**. This status is irreversible. The terminals under the store are reassigned to the merchant inventory. + * The status of the store. Possible values are: - **active**. This value is assigned + * automatically when a store is created. - **inactive**. The terminals under the store are + * blocked from accepting new transactions, but capturing outstanding transactions is still + * possible. - **closed**. This status is irreversible. The terminals under the store are + * reassigned to the merchant inventory. * - * @param status The status of the store. Possible values are: - **active**. This value is assigned automatically when a store is created. - **inactive**. The terminals under the store are blocked from accepting new transactions, but capturing outstanding transactions is still possible. - **closed**. This status is irreversible. The terminals under the store are reassigned to the merchant inventory. + * @param status The status of the store. Possible values are: - **active**. This value is + * assigned automatically when a store is created. - **inactive**. The terminals under the + * store are blocked from accepting new transactions, but capturing outstanding transactions + * is still possible. - **closed**. This status is irreversible. The terminals under the store + * are reassigned to the merchant inventory. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -529,7 +630,7 @@ public void setStatus(StatusEnum status) { /** * subMerchantData * - * @param subMerchantData + * @param subMerchantData * @return the current {@code Store} instance, allowing for method chaining */ public Store subMerchantData(SubMerchantData subMerchantData) { @@ -539,7 +640,8 @@ public Store subMerchantData(SubMerchantData subMerchantData) { /** * Get subMerchantData - * @return subMerchantData + * + * @return subMerchantData */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -550,7 +652,7 @@ public SubMerchantData getSubMerchantData() { /** * subMerchantData * - * @param subMerchantData + * @param subMerchantData */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -558,9 +660,7 @@ public void setSubMerchantData(SubMerchantData subMerchantData) { this.subMerchantData = subMerchantData; } - /** - * Return true if this Store object is equal to o. - */ + /** Return true if this Store object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -570,24 +670,37 @@ public boolean equals(Object o) { return false; } Store store = (Store) o; - return Objects.equals(this.links, store.links) && - Objects.equals(this.address, store.address) && - Objects.equals(this.businessLineIds, store.businessLineIds) && - Objects.equals(this.description, store.description) && - Objects.equals(this.externalReferenceId, store.externalReferenceId) && - Objects.equals(this.id, store.id) && - Objects.equals(this.merchantId, store.merchantId) && - Objects.equals(this.phoneNumber, store.phoneNumber) && - Objects.equals(this.reference, store.reference) && - Objects.equals(this.shopperStatement, store.shopperStatement) && - Objects.equals(this.splitConfiguration, store.splitConfiguration) && - Objects.equals(this.status, store.status) && - Objects.equals(this.subMerchantData, store.subMerchantData); + return Objects.equals(this.links, store.links) + && Objects.equals(this.address, store.address) + && Objects.equals(this.businessLineIds, store.businessLineIds) + && Objects.equals(this.description, store.description) + && Objects.equals(this.externalReferenceId, store.externalReferenceId) + && Objects.equals(this.id, store.id) + && Objects.equals(this.merchantId, store.merchantId) + && Objects.equals(this.phoneNumber, store.phoneNumber) + && Objects.equals(this.reference, store.reference) + && Objects.equals(this.shopperStatement, store.shopperStatement) + && Objects.equals(this.splitConfiguration, store.splitConfiguration) + && Objects.equals(this.status, store.status) + && Objects.equals(this.subMerchantData, store.subMerchantData); } @Override public int hashCode() { - return Objects.hash(links, address, businessLineIds, description, externalReferenceId, id, merchantId, phoneNumber, reference, shopperStatement, splitConfiguration, status, subMerchantData); + return Objects.hash( + links, + address, + businessLineIds, + description, + externalReferenceId, + id, + merchantId, + phoneNumber, + reference, + shopperStatement, + splitConfiguration, + status, + subMerchantData); } @Override @@ -598,7 +711,9 @@ public String toString() { sb.append(" address: ").append(toIndentedString(address)).append("\n"); sb.append(" businessLineIds: ").append(toIndentedString(businessLineIds)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" externalReferenceId: ").append(toIndentedString(externalReferenceId)).append("\n"); + sb.append(" externalReferenceId: ") + .append(toIndentedString(externalReferenceId)) + .append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" merchantId: ").append(toIndentedString(merchantId)).append("\n"); sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); @@ -612,8 +727,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -622,7 +736,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Store given an JSON string * * @param jsonString JSON string @@ -632,11 +746,12 @@ private String toIndentedString(Object o) { public static Store fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Store.class); } -/** - * Convert an instance of Store to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Store to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/StoreAndForward.java b/src/main/java/com/adyen/model/management/StoreAndForward.java index 0c03e3bf7..532ee2d47 100644 --- a/src/main/java/com/adyen/model/management/StoreAndForward.java +++ b/src/main/java/com/adyen/model/management/StoreAndForward.java @@ -2,41 +2,29 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.MinorUnitsMonetaryValue; -import com.adyen.model.management.SupportedCardTypes; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * StoreAndForward - */ +/** StoreAndForward */ @JsonPropertyOrder({ StoreAndForward.JSON_PROPERTY_MAX_AMOUNT, StoreAndForward.JSON_PROPERTY_MAX_PAYMENTS, StoreAndForward.JSON_PROPERTY_SUPPORTED_CARD_TYPES }) - public class StoreAndForward { public static final String JSON_PROPERTY_MAX_AMOUNT = "maxAmount"; private List maxAmount; @@ -47,13 +35,13 @@ public class StoreAndForward { public static final String JSON_PROPERTY_SUPPORTED_CARD_TYPES = "supportedCardTypes"; private SupportedCardTypes supportedCardTypes; - public StoreAndForward() { - } + public StoreAndForward() {} /** * The maximum amount that the terminal accepts for a single store-and-forward payment. * - * @param maxAmount The maximum amount that the terminal accepts for a single store-and-forward payment. + * @param maxAmount The maximum amount that the terminal accepts for a single store-and-forward + * payment. * @return the current {@code StoreAndForward} instance, allowing for method chaining */ public StoreAndForward maxAmount(List maxAmount) { @@ -71,7 +59,9 @@ public StoreAndForward addMaxAmountItem(MinorUnitsMonetaryValue maxAmountItem) { /** * The maximum amount that the terminal accepts for a single store-and-forward payment. - * @return maxAmount The maximum amount that the terminal accepts for a single store-and-forward payment. + * + * @return maxAmount The maximum amount that the terminal accepts for a single store-and-forward + * payment. */ @JsonProperty(JSON_PROPERTY_MAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -82,7 +72,8 @@ public List getMaxAmount() { /** * The maximum amount that the terminal accepts for a single store-and-forward payment. * - * @param maxAmount The maximum amount that the terminal accepts for a single store-and-forward payment. + * @param maxAmount The maximum amount that the terminal accepts for a single store-and-forward + * payment. */ @JsonProperty(JSON_PROPERTY_MAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -91,9 +82,11 @@ public void setMaxAmount(List maxAmount) { } /** - * The maximum number of store-and-forward transactions per terminal that you can process while offline. + * The maximum number of store-and-forward transactions per terminal that you can process while + * offline. * - * @param maxPayments The maximum number of store-and-forward transactions per terminal that you can process while offline. + * @param maxPayments The maximum number of store-and-forward transactions per terminal that you + * can process while offline. * @return the current {@code StoreAndForward} instance, allowing for method chaining */ public StoreAndForward maxPayments(Integer maxPayments) { @@ -102,8 +95,11 @@ public StoreAndForward maxPayments(Integer maxPayments) { } /** - * The maximum number of store-and-forward transactions per terminal that you can process while offline. - * @return maxPayments The maximum number of store-and-forward transactions per terminal that you can process while offline. + * The maximum number of store-and-forward transactions per terminal that you can process while + * offline. + * + * @return maxPayments The maximum number of store-and-forward transactions per terminal that you + * can process while offline. */ @JsonProperty(JSON_PROPERTY_MAX_PAYMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,9 +108,11 @@ public Integer getMaxPayments() { } /** - * The maximum number of store-and-forward transactions per terminal that you can process while offline. + * The maximum number of store-and-forward transactions per terminal that you can process while + * offline. * - * @param maxPayments The maximum number of store-and-forward transactions per terminal that you can process while offline. + * @param maxPayments The maximum number of store-and-forward transactions per terminal that you + * can process while offline. */ @JsonProperty(JSON_PROPERTY_MAX_PAYMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,7 +123,7 @@ public void setMaxPayments(Integer maxPayments) { /** * supportedCardTypes * - * @param supportedCardTypes + * @param supportedCardTypes * @return the current {@code StoreAndForward} instance, allowing for method chaining */ public StoreAndForward supportedCardTypes(SupportedCardTypes supportedCardTypes) { @@ -135,7 +133,8 @@ public StoreAndForward supportedCardTypes(SupportedCardTypes supportedCardTypes) /** * Get supportedCardTypes - * @return supportedCardTypes + * + * @return supportedCardTypes */ @JsonProperty(JSON_PROPERTY_SUPPORTED_CARD_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,7 +145,7 @@ public SupportedCardTypes getSupportedCardTypes() { /** * supportedCardTypes * - * @param supportedCardTypes + * @param supportedCardTypes */ @JsonProperty(JSON_PROPERTY_SUPPORTED_CARD_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -154,9 +153,7 @@ public void setSupportedCardTypes(SupportedCardTypes supportedCardTypes) { this.supportedCardTypes = supportedCardTypes; } - /** - * Return true if this StoreAndForward object is equal to o. - */ + /** Return true if this StoreAndForward object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -166,9 +163,9 @@ public boolean equals(Object o) { return false; } StoreAndForward storeAndForward = (StoreAndForward) o; - return Objects.equals(this.maxAmount, storeAndForward.maxAmount) && - Objects.equals(this.maxPayments, storeAndForward.maxPayments) && - Objects.equals(this.supportedCardTypes, storeAndForward.supportedCardTypes); + return Objects.equals(this.maxAmount, storeAndForward.maxAmount) + && Objects.equals(this.maxPayments, storeAndForward.maxPayments) + && Objects.equals(this.supportedCardTypes, storeAndForward.supportedCardTypes); } @Override @@ -188,8 +185,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -198,7 +194,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of StoreAndForward given an JSON string * * @param jsonString JSON string @@ -208,11 +204,12 @@ private String toIndentedString(Object o) { public static StoreAndForward fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoreAndForward.class); } -/** - * Convert an instance of StoreAndForward to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of StoreAndForward to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/StoreCreationRequest.java b/src/main/java/com/adyen/model/management/StoreCreationRequest.java index e3738110f..b0460a3be 100644 --- a/src/main/java/com/adyen/model/management/StoreCreationRequest.java +++ b/src/main/java/com/adyen/model/management/StoreCreationRequest.java @@ -2,36 +2,24 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.StoreLocation; -import com.adyen.model.management.StoreSplitConfiguration; -import com.adyen.model.management.SubMerchantData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * StoreCreationRequest - */ +/** StoreCreationRequest */ @JsonPropertyOrder({ StoreCreationRequest.JSON_PROPERTY_ADDRESS, StoreCreationRequest.JSON_PROPERTY_BUSINESS_LINE_IDS, @@ -43,7 +31,6 @@ StoreCreationRequest.JSON_PROPERTY_SPLIT_CONFIGURATION, StoreCreationRequest.JSON_PROPERTY_SUB_MERCHANT_DATA }) - public class StoreCreationRequest { public static final String JSON_PROPERTY_ADDRESS = "address"; private StoreLocation address; @@ -72,13 +59,12 @@ public class StoreCreationRequest { public static final String JSON_PROPERTY_SUB_MERCHANT_DATA = "subMerchantData"; private SubMerchantData subMerchantData; - public StoreCreationRequest() { - } + public StoreCreationRequest() {} /** * address * - * @param address + * @param address * @return the current {@code StoreCreationRequest} instance, allowing for method chaining */ public StoreCreationRequest address(StoreLocation address) { @@ -88,7 +74,8 @@ public StoreCreationRequest address(StoreLocation address) { /** * Get address - * @return address + * + * @return address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,7 +86,7 @@ public StoreLocation getAddress() { /** * address * - * @param address + * @param address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,9 +95,16 @@ public void setAddress(StoreLocation address) { } /** - * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. + * The unique identifiers of the [business + * lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) + * that the store is associated with. If not specified, the business line of the merchant account + * is used. Required when there are multiple business lines under the merchant account. * - * @param businessLineIds The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. + * @param businessLineIds The unique identifiers of the [business + * lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) + * that the store is associated with. If not specified, the business line of the merchant + * account is used. Required when there are multiple business lines under the merchant + * account. * @return the current {@code StoreCreationRequest} instance, allowing for method chaining */ public StoreCreationRequest businessLineIds(List businessLineIds) { @@ -127,8 +121,16 @@ public StoreCreationRequest addBusinessLineIdsItem(String businessLineIdsItem) { } /** - * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. - * @return businessLineIds The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. + * The unique identifiers of the [business + * lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) + * that the store is associated with. If not specified, the business line of the merchant account + * is used. Required when there are multiple business lines under the merchant account. + * + * @return businessLineIds The unique identifiers of the [business + * lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) + * that the store is associated with. If not specified, the business line of the merchant + * account is used. Required when there are multiple business lines under the merchant + * account. */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,9 +139,16 @@ public List getBusinessLineIds() { } /** - * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. + * The unique identifiers of the [business + * lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) + * that the store is associated with. If not specified, the business line of the merchant account + * is used. Required when there are multiple business lines under the merchant account. * - * @param businessLineIds The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. + * @param businessLineIds The unique identifiers of the [business + * lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) + * that the store is associated with. If not specified, the business line of the merchant + * account is used. Required when there are multiple business lines under the merchant + * account. */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,6 +169,7 @@ public StoreCreationRequest description(String description) { /** * Your description of the store. + * * @return description Your description of the store. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -180,9 +190,15 @@ public void setDescription(String description) { } /** - * The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * The unique identifier of the store, used by certain payment methods and tax authorities. + * Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, + * hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip + * in Australia, up to 50 digits. * - * @param externalReferenceId The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * @param externalReferenceId The unique identifier of the store, used by certain payment methods + * and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 + * separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, + * up to 14 digits. Optional for Zip in Australia, up to 50 digits. * @return the current {@code StoreCreationRequest} instance, allowing for method chaining */ public StoreCreationRequest externalReferenceId(String externalReferenceId) { @@ -191,8 +207,15 @@ public StoreCreationRequest externalReferenceId(String externalReferenceId) { } /** - * The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. - * @return externalReferenceId The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * The unique identifier of the store, used by certain payment methods and tax authorities. + * Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, + * hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip + * in Australia, up to 50 digits. + * + * @return externalReferenceId The unique identifier of the store, used by certain payment methods + * and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 + * separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, + * up to 14 digits. Optional for Zip in Australia, up to 50 digits. */ @JsonProperty(JSON_PROPERTY_EXTERNAL_REFERENCE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -201,9 +224,15 @@ public String getExternalReferenceId() { } /** - * The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * The unique identifier of the store, used by certain payment methods and tax authorities. + * Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, + * hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip + * in Australia, up to 50 digits. * - * @param externalReferenceId The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * @param externalReferenceId The unique identifier of the store, used by certain payment methods + * and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 + * separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, + * up to 14 digits. Optional for Zip in Australia, up to 50 digits. */ @JsonProperty(JSON_PROPERTY_EXTERNAL_REFERENCE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -212,9 +241,13 @@ public void setExternalReferenceId(String externalReferenceId) { } /** - * The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. + * The phone number of the store, including '+' and country code in the + * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we + * convert and validate the phone number against E.164. * - * @param phoneNumber The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. + * @param phoneNumber The phone number of the store, including '+' and country code in the + * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we + * convert and validate the phone number against E.164. * @return the current {@code StoreCreationRequest} instance, allowing for method chaining */ public StoreCreationRequest phoneNumber(String phoneNumber) { @@ -223,8 +256,13 @@ public StoreCreationRequest phoneNumber(String phoneNumber) { } /** - * The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. - * @return phoneNumber The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. + * The phone number of the store, including '+' and country code in the + * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we + * convert and validate the phone number against E.164. + * + * @return phoneNumber The phone number of the store, including '+' and country code in + * the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, + * we convert and validate the phone number against E.164. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -233,9 +271,13 @@ public String getPhoneNumber() { } /** - * The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. + * The phone number of the store, including '+' and country code in the + * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we + * convert and validate the phone number against E.164. * - * @param phoneNumber The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. + * @param phoneNumber The phone number of the store, including '+' and country code in the + * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we + * convert and validate the phone number against E.164. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,9 +286,17 @@ public void setPhoneNumber(String phoneNumber) { } /** - * Your reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, it is populated with the Adyen-generated [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). + * Your reference to recognize the store by. Also known as the store code. Allowed characters: + * lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and + * underscore (_). If you do not provide a reference in your POST request, it is populated with + * the Adyen-generated + * [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). * - * @param reference Your reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, it is populated with the Adyen-generated [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). + * @param reference Your reference to recognize the store by. Also known as the store code. + * Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through + * 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, + * it is populated with the Adyen-generated + * [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). * @return the current {@code StoreCreationRequest} instance, allowing for method chaining */ public StoreCreationRequest reference(String reference) { @@ -255,8 +305,17 @@ public StoreCreationRequest reference(String reference) { } /** - * Your reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, it is populated with the Adyen-generated [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). - * @return reference Your reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, it is populated with the Adyen-generated [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). + * Your reference to recognize the store by. Also known as the store code. Allowed characters: + * lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and + * underscore (_). If you do not provide a reference in your POST request, it is populated with + * the Adyen-generated + * [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). + * + * @return reference Your reference to recognize the store by. Also known as the store code. + * Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through + * 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, + * it is populated with the Adyen-generated + * [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -265,9 +324,17 @@ public String getReference() { } /** - * Your reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, it is populated with the Adyen-generated [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). + * Your reference to recognize the store by. Also known as the store code. Allowed characters: + * lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and + * underscore (_). If you do not provide a reference in your POST request, it is populated with + * the Adyen-generated + * [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). * - * @param reference Your reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, it is populated with the Adyen-generated [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). + * @param reference Your reference to recognize the store by. Also known as the store code. + * Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through + * 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, + * it is populated with the Adyen-generated + * [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -276,9 +343,12 @@ public void setReference(String reference) { } /** - * The store name to be shown on the shopper's bank or credit card statement and on the shopper receipt. Maximum length: 22 characters; can't be all numbers. + * The store name to be shown on the shopper's bank or credit card statement and on the + * shopper receipt. Maximum length: 22 characters; can't be all numbers. * - * @param shopperStatement The store name to be shown on the shopper's bank or credit card statement and on the shopper receipt. Maximum length: 22 characters; can't be all numbers. + * @param shopperStatement The store name to be shown on the shopper's bank or credit card + * statement and on the shopper receipt. Maximum length: 22 characters; can't be all + * numbers. * @return the current {@code StoreCreationRequest} instance, allowing for method chaining */ public StoreCreationRequest shopperStatement(String shopperStatement) { @@ -287,8 +357,12 @@ public StoreCreationRequest shopperStatement(String shopperStatement) { } /** - * The store name to be shown on the shopper's bank or credit card statement and on the shopper receipt. Maximum length: 22 characters; can't be all numbers. - * @return shopperStatement The store name to be shown on the shopper's bank or credit card statement and on the shopper receipt. Maximum length: 22 characters; can't be all numbers. + * The store name to be shown on the shopper's bank or credit card statement and on the + * shopper receipt. Maximum length: 22 characters; can't be all numbers. + * + * @return shopperStatement The store name to be shown on the shopper's bank or credit card + * statement and on the shopper receipt. Maximum length: 22 characters; can't be all + * numbers. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -297,9 +371,12 @@ public String getShopperStatement() { } /** - * The store name to be shown on the shopper's bank or credit card statement and on the shopper receipt. Maximum length: 22 characters; can't be all numbers. + * The store name to be shown on the shopper's bank or credit card statement and on the + * shopper receipt. Maximum length: 22 characters; can't be all numbers. * - * @param shopperStatement The store name to be shown on the shopper's bank or credit card statement and on the shopper receipt. Maximum length: 22 characters; can't be all numbers. + * @param shopperStatement The store name to be shown on the shopper's bank or credit card + * statement and on the shopper receipt. Maximum length: 22 characters; can't be all + * numbers. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -310,7 +387,7 @@ public void setShopperStatement(String shopperStatement) { /** * splitConfiguration * - * @param splitConfiguration + * @param splitConfiguration * @return the current {@code StoreCreationRequest} instance, allowing for method chaining */ public StoreCreationRequest splitConfiguration(StoreSplitConfiguration splitConfiguration) { @@ -320,7 +397,8 @@ public StoreCreationRequest splitConfiguration(StoreSplitConfiguration splitConf /** * Get splitConfiguration - * @return splitConfiguration + * + * @return splitConfiguration */ @JsonProperty(JSON_PROPERTY_SPLIT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -331,7 +409,7 @@ public StoreSplitConfiguration getSplitConfiguration() { /** * splitConfiguration * - * @param splitConfiguration + * @param splitConfiguration */ @JsonProperty(JSON_PROPERTY_SPLIT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -342,7 +420,7 @@ public void setSplitConfiguration(StoreSplitConfiguration splitConfiguration) { /** * subMerchantData * - * @param subMerchantData + * @param subMerchantData * @return the current {@code StoreCreationRequest} instance, allowing for method chaining */ public StoreCreationRequest subMerchantData(SubMerchantData subMerchantData) { @@ -352,7 +430,8 @@ public StoreCreationRequest subMerchantData(SubMerchantData subMerchantData) { /** * Get subMerchantData - * @return subMerchantData + * + * @return subMerchantData */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -363,7 +442,7 @@ public SubMerchantData getSubMerchantData() { /** * subMerchantData * - * @param subMerchantData + * @param subMerchantData */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -371,9 +450,7 @@ public void setSubMerchantData(SubMerchantData subMerchantData) { this.subMerchantData = subMerchantData; } - /** - * Return true if this StoreCreationRequest object is equal to o. - */ + /** Return true if this StoreCreationRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -383,20 +460,29 @@ public boolean equals(Object o) { return false; } StoreCreationRequest storeCreationRequest = (StoreCreationRequest) o; - return Objects.equals(this.address, storeCreationRequest.address) && - Objects.equals(this.businessLineIds, storeCreationRequest.businessLineIds) && - Objects.equals(this.description, storeCreationRequest.description) && - Objects.equals(this.externalReferenceId, storeCreationRequest.externalReferenceId) && - Objects.equals(this.phoneNumber, storeCreationRequest.phoneNumber) && - Objects.equals(this.reference, storeCreationRequest.reference) && - Objects.equals(this.shopperStatement, storeCreationRequest.shopperStatement) && - Objects.equals(this.splitConfiguration, storeCreationRequest.splitConfiguration) && - Objects.equals(this.subMerchantData, storeCreationRequest.subMerchantData); + return Objects.equals(this.address, storeCreationRequest.address) + && Objects.equals(this.businessLineIds, storeCreationRequest.businessLineIds) + && Objects.equals(this.description, storeCreationRequest.description) + && Objects.equals(this.externalReferenceId, storeCreationRequest.externalReferenceId) + && Objects.equals(this.phoneNumber, storeCreationRequest.phoneNumber) + && Objects.equals(this.reference, storeCreationRequest.reference) + && Objects.equals(this.shopperStatement, storeCreationRequest.shopperStatement) + && Objects.equals(this.splitConfiguration, storeCreationRequest.splitConfiguration) + && Objects.equals(this.subMerchantData, storeCreationRequest.subMerchantData); } @Override public int hashCode() { - return Objects.hash(address, businessLineIds, description, externalReferenceId, phoneNumber, reference, shopperStatement, splitConfiguration, subMerchantData); + return Objects.hash( + address, + businessLineIds, + description, + externalReferenceId, + phoneNumber, + reference, + shopperStatement, + splitConfiguration, + subMerchantData); } @Override @@ -406,7 +492,9 @@ public String toString() { sb.append(" address: ").append(toIndentedString(address)).append("\n"); sb.append(" businessLineIds: ").append(toIndentedString(businessLineIds)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" externalReferenceId: ").append(toIndentedString(externalReferenceId)).append("\n"); + sb.append(" externalReferenceId: ") + .append(toIndentedString(externalReferenceId)) + .append("\n"); sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" shopperStatement: ").append(toIndentedString(shopperStatement)).append("\n"); @@ -417,8 +505,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -427,21 +514,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of StoreCreationRequest given an JSON string * * @param jsonString JSON string * @return An instance of StoreCreationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to StoreCreationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * StoreCreationRequest */ public static StoreCreationRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoreCreationRequest.class); } -/** - * Convert an instance of StoreCreationRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of StoreCreationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/StoreCreationWithMerchantCodeRequest.java b/src/main/java/com/adyen/model/management/StoreCreationWithMerchantCodeRequest.java index 79708287b..c7da96180 100644 --- a/src/main/java/com/adyen/model/management/StoreCreationWithMerchantCodeRequest.java +++ b/src/main/java/com/adyen/model/management/StoreCreationWithMerchantCodeRequest.java @@ -2,36 +2,24 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.StoreLocation; -import com.adyen.model.management.StoreSplitConfiguration; -import com.adyen.model.management.SubMerchantData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * StoreCreationWithMerchantCodeRequest - */ +/** StoreCreationWithMerchantCodeRequest */ @JsonPropertyOrder({ StoreCreationWithMerchantCodeRequest.JSON_PROPERTY_ADDRESS, StoreCreationWithMerchantCodeRequest.JSON_PROPERTY_BUSINESS_LINE_IDS, @@ -44,7 +32,6 @@ StoreCreationWithMerchantCodeRequest.JSON_PROPERTY_SPLIT_CONFIGURATION, StoreCreationWithMerchantCodeRequest.JSON_PROPERTY_SUB_MERCHANT_DATA }) - public class StoreCreationWithMerchantCodeRequest { public static final String JSON_PROPERTY_ADDRESS = "address"; private StoreLocation address; @@ -76,14 +63,14 @@ public class StoreCreationWithMerchantCodeRequest { public static final String JSON_PROPERTY_SUB_MERCHANT_DATA = "subMerchantData"; private SubMerchantData subMerchantData; - public StoreCreationWithMerchantCodeRequest() { - } + public StoreCreationWithMerchantCodeRequest() {} /** * address * - * @param address - * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method chaining + * @param address + * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method + * chaining */ public StoreCreationWithMerchantCodeRequest address(StoreLocation address) { this.address = address; @@ -92,7 +79,8 @@ public StoreCreationWithMerchantCodeRequest address(StoreLocation address) { /** * Get address - * @return address + * + * @return address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -103,7 +91,7 @@ public StoreLocation getAddress() { /** * address * - * @param address + * @param address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,10 +100,18 @@ public void setAddress(StoreLocation address) { } /** - * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. + * The unique identifiers of the [business + * lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) + * that the store is associated with. If not specified, the business line of the merchant account + * is used. Required when there are multiple business lines under the merchant account. * - * @param businessLineIds The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. - * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method chaining + * @param businessLineIds The unique identifiers of the [business + * lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) + * that the store is associated with. If not specified, the business line of the merchant + * account is used. Required when there are multiple business lines under the merchant + * account. + * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method + * chaining */ public StoreCreationWithMerchantCodeRequest businessLineIds(List businessLineIds) { this.businessLineIds = businessLineIds; @@ -131,8 +127,16 @@ public StoreCreationWithMerchantCodeRequest addBusinessLineIdsItem(String busine } /** - * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. - * @return businessLineIds The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. + * The unique identifiers of the [business + * lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) + * that the store is associated with. If not specified, the business line of the merchant account + * is used. Required when there are multiple business lines under the merchant account. + * + * @return businessLineIds The unique identifiers of the [business + * lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) + * that the store is associated with. If not specified, the business line of the merchant + * account is used. Required when there are multiple business lines under the merchant + * account. */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -141,9 +145,16 @@ public List getBusinessLineIds() { } /** - * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. + * The unique identifiers of the [business + * lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) + * that the store is associated with. If not specified, the business line of the merchant account + * is used. Required when there are multiple business lines under the merchant account. * - * @param businessLineIds The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. + * @param businessLineIds The unique identifiers of the [business + * lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) + * that the store is associated with. If not specified, the business line of the merchant + * account is used. Required when there are multiple business lines under the merchant + * account. */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -155,7 +166,8 @@ public void setBusinessLineIds(List businessLineIds) { * Your description of the store. * * @param description Your description of the store. - * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method chaining + * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method + * chaining */ public StoreCreationWithMerchantCodeRequest description(String description) { this.description = description; @@ -164,6 +176,7 @@ public StoreCreationWithMerchantCodeRequest description(String description) { /** * Your description of the store. + * * @return description Your description of the store. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -184,10 +197,17 @@ public void setDescription(String description) { } /** - * The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * The unique identifier of the store, used by certain payment methods and tax authorities. + * Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, + * hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip + * in Australia, up to 50 digits. * - * @param externalReferenceId The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. - * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method chaining + * @param externalReferenceId The unique identifier of the store, used by certain payment methods + * and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 + * separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, + * up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method + * chaining */ public StoreCreationWithMerchantCodeRequest externalReferenceId(String externalReferenceId) { this.externalReferenceId = externalReferenceId; @@ -195,8 +215,15 @@ public StoreCreationWithMerchantCodeRequest externalReferenceId(String externalR } /** - * The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. - * @return externalReferenceId The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * The unique identifier of the store, used by certain payment methods and tax authorities. + * Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, + * hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip + * in Australia, up to 50 digits. + * + * @return externalReferenceId The unique identifier of the store, used by certain payment methods + * and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 + * separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, + * up to 14 digits. Optional for Zip in Australia, up to 50 digits. */ @JsonProperty(JSON_PROPERTY_EXTERNAL_REFERENCE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -205,9 +232,15 @@ public String getExternalReferenceId() { } /** - * The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * The unique identifier of the store, used by certain payment methods and tax authorities. + * Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, + * hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip + * in Australia, up to 50 digits. * - * @param externalReferenceId The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * @param externalReferenceId The unique identifier of the store, used by certain payment methods + * and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 + * separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, + * up to 14 digits. Optional for Zip in Australia, up to 50 digits. */ @JsonProperty(JSON_PROPERTY_EXTERNAL_REFERENCE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,7 +252,8 @@ public void setExternalReferenceId(String externalReferenceId) { * The unique identifier of the merchant account that the store belongs to. * * @param merchantId The unique identifier of the merchant account that the store belongs to. - * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method chaining + * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method + * chaining */ public StoreCreationWithMerchantCodeRequest merchantId(String merchantId) { this.merchantId = merchantId; @@ -228,6 +262,7 @@ public StoreCreationWithMerchantCodeRequest merchantId(String merchantId) { /** * The unique identifier of the merchant account that the store belongs to. + * * @return merchantId The unique identifier of the merchant account that the store belongs to. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @@ -248,10 +283,15 @@ public void setMerchantId(String merchantId) { } /** - * The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. + * The phone number of the store, including '+' and country code in the + * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we + * convert and validate the phone number against E.164. * - * @param phoneNumber The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. - * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method chaining + * @param phoneNumber The phone number of the store, including '+' and country code in the + * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we + * convert and validate the phone number against E.164. + * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method + * chaining */ public StoreCreationWithMerchantCodeRequest phoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; @@ -259,8 +299,13 @@ public StoreCreationWithMerchantCodeRequest phoneNumber(String phoneNumber) { } /** - * The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. - * @return phoneNumber The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. + * The phone number of the store, including '+' and country code in the + * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we + * convert and validate the phone number against E.164. + * + * @return phoneNumber The phone number of the store, including '+' and country code in + * the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, + * we convert and validate the phone number against E.164. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -269,9 +314,13 @@ public String getPhoneNumber() { } /** - * The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. + * The phone number of the store, including '+' and country code in the + * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we + * convert and validate the phone number against E.164. * - * @param phoneNumber The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. + * @param phoneNumber The phone number of the store, including '+' and country code in the + * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we + * convert and validate the phone number against E.164. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -280,10 +329,19 @@ public void setPhoneNumber(String phoneNumber) { } /** - * Your reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, it is populated with the Adyen-generated [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). + * Your reference to recognize the store by. Also known as the store code. Allowed characters: + * lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and + * underscore (_). If you do not provide a reference in your POST request, it is populated with + * the Adyen-generated + * [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). * - * @param reference Your reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, it is populated with the Adyen-generated [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). - * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method chaining + * @param reference Your reference to recognize the store by. Also known as the store code. + * Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through + * 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, + * it is populated with the Adyen-generated + * [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). + * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method + * chaining */ public StoreCreationWithMerchantCodeRequest reference(String reference) { this.reference = reference; @@ -291,8 +349,17 @@ public StoreCreationWithMerchantCodeRequest reference(String reference) { } /** - * Your reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, it is populated with the Adyen-generated [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). - * @return reference Your reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, it is populated with the Adyen-generated [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). + * Your reference to recognize the store by. Also known as the store code. Allowed characters: + * lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and + * underscore (_). If you do not provide a reference in your POST request, it is populated with + * the Adyen-generated + * [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). + * + * @return reference Your reference to recognize the store by. Also known as the store code. + * Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through + * 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, + * it is populated with the Adyen-generated + * [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -301,9 +368,17 @@ public String getReference() { } /** - * Your reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, it is populated with the Adyen-generated [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). + * Your reference to recognize the store by. Also known as the store code. Allowed characters: + * lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and + * underscore (_). If you do not provide a reference in your POST request, it is populated with + * the Adyen-generated + * [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). * - * @param reference Your reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, it is populated with the Adyen-generated [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). + * @param reference Your reference to recognize the store by. Also known as the store code. + * Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through + * 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, + * it is populated with the Adyen-generated + * [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -312,10 +387,14 @@ public void setReference(String reference) { } /** - * The store name to be shown on the shopper's bank or credit card statement and on the shopper receipt. Maximum length: 22 characters; can't be all numbers. + * The store name to be shown on the shopper's bank or credit card statement and on the + * shopper receipt. Maximum length: 22 characters; can't be all numbers. * - * @param shopperStatement The store name to be shown on the shopper's bank or credit card statement and on the shopper receipt. Maximum length: 22 characters; can't be all numbers. - * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method chaining + * @param shopperStatement The store name to be shown on the shopper's bank or credit card + * statement and on the shopper receipt. Maximum length: 22 characters; can't be all + * numbers. + * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method + * chaining */ public StoreCreationWithMerchantCodeRequest shopperStatement(String shopperStatement) { this.shopperStatement = shopperStatement; @@ -323,8 +402,12 @@ public StoreCreationWithMerchantCodeRequest shopperStatement(String shopperState } /** - * The store name to be shown on the shopper's bank or credit card statement and on the shopper receipt. Maximum length: 22 characters; can't be all numbers. - * @return shopperStatement The store name to be shown on the shopper's bank or credit card statement and on the shopper receipt. Maximum length: 22 characters; can't be all numbers. + * The store name to be shown on the shopper's bank or credit card statement and on the + * shopper receipt. Maximum length: 22 characters; can't be all numbers. + * + * @return shopperStatement The store name to be shown on the shopper's bank or credit card + * statement and on the shopper receipt. Maximum length: 22 characters; can't be all + * numbers. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -333,9 +416,12 @@ public String getShopperStatement() { } /** - * The store name to be shown on the shopper's bank or credit card statement and on the shopper receipt. Maximum length: 22 characters; can't be all numbers. + * The store name to be shown on the shopper's bank or credit card statement and on the + * shopper receipt. Maximum length: 22 characters; can't be all numbers. * - * @param shopperStatement The store name to be shown on the shopper's bank or credit card statement and on the shopper receipt. Maximum length: 22 characters; can't be all numbers. + * @param shopperStatement The store name to be shown on the shopper's bank or credit card + * statement and on the shopper receipt. Maximum length: 22 characters; can't be all + * numbers. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -346,17 +432,20 @@ public void setShopperStatement(String shopperStatement) { /** * splitConfiguration * - * @param splitConfiguration - * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method chaining + * @param splitConfiguration + * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method + * chaining */ - public StoreCreationWithMerchantCodeRequest splitConfiguration(StoreSplitConfiguration splitConfiguration) { + public StoreCreationWithMerchantCodeRequest splitConfiguration( + StoreSplitConfiguration splitConfiguration) { this.splitConfiguration = splitConfiguration; return this; } /** * Get splitConfiguration - * @return splitConfiguration + * + * @return splitConfiguration */ @JsonProperty(JSON_PROPERTY_SPLIT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -367,7 +456,7 @@ public StoreSplitConfiguration getSplitConfiguration() { /** * splitConfiguration * - * @param splitConfiguration + * @param splitConfiguration */ @JsonProperty(JSON_PROPERTY_SPLIT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -378,8 +467,9 @@ public void setSplitConfiguration(StoreSplitConfiguration splitConfiguration) { /** * subMerchantData * - * @param subMerchantData - * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method chaining + * @param subMerchantData + * @return the current {@code StoreCreationWithMerchantCodeRequest} instance, allowing for method + * chaining */ public StoreCreationWithMerchantCodeRequest subMerchantData(SubMerchantData subMerchantData) { this.subMerchantData = subMerchantData; @@ -388,7 +478,8 @@ public StoreCreationWithMerchantCodeRequest subMerchantData(SubMerchantData subM /** * Get subMerchantData - * @return subMerchantData + * + * @return subMerchantData */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -399,7 +490,7 @@ public SubMerchantData getSubMerchantData() { /** * subMerchantData * - * @param subMerchantData + * @param subMerchantData */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -407,9 +498,7 @@ public void setSubMerchantData(SubMerchantData subMerchantData) { this.subMerchantData = subMerchantData; } - /** - * Return true if this StoreCreationWithMerchantCodeRequest object is equal to o. - */ + /** Return true if this StoreCreationWithMerchantCodeRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -418,22 +507,38 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - StoreCreationWithMerchantCodeRequest storeCreationWithMerchantCodeRequest = (StoreCreationWithMerchantCodeRequest) o; - return Objects.equals(this.address, storeCreationWithMerchantCodeRequest.address) && - Objects.equals(this.businessLineIds, storeCreationWithMerchantCodeRequest.businessLineIds) && - Objects.equals(this.description, storeCreationWithMerchantCodeRequest.description) && - Objects.equals(this.externalReferenceId, storeCreationWithMerchantCodeRequest.externalReferenceId) && - Objects.equals(this.merchantId, storeCreationWithMerchantCodeRequest.merchantId) && - Objects.equals(this.phoneNumber, storeCreationWithMerchantCodeRequest.phoneNumber) && - Objects.equals(this.reference, storeCreationWithMerchantCodeRequest.reference) && - Objects.equals(this.shopperStatement, storeCreationWithMerchantCodeRequest.shopperStatement) && - Objects.equals(this.splitConfiguration, storeCreationWithMerchantCodeRequest.splitConfiguration) && - Objects.equals(this.subMerchantData, storeCreationWithMerchantCodeRequest.subMerchantData); + StoreCreationWithMerchantCodeRequest storeCreationWithMerchantCodeRequest = + (StoreCreationWithMerchantCodeRequest) o; + return Objects.equals(this.address, storeCreationWithMerchantCodeRequest.address) + && Objects.equals( + this.businessLineIds, storeCreationWithMerchantCodeRequest.businessLineIds) + && Objects.equals(this.description, storeCreationWithMerchantCodeRequest.description) + && Objects.equals( + this.externalReferenceId, storeCreationWithMerchantCodeRequest.externalReferenceId) + && Objects.equals(this.merchantId, storeCreationWithMerchantCodeRequest.merchantId) + && Objects.equals(this.phoneNumber, storeCreationWithMerchantCodeRequest.phoneNumber) + && Objects.equals(this.reference, storeCreationWithMerchantCodeRequest.reference) + && Objects.equals( + this.shopperStatement, storeCreationWithMerchantCodeRequest.shopperStatement) + && Objects.equals( + this.splitConfiguration, storeCreationWithMerchantCodeRequest.splitConfiguration) + && Objects.equals( + this.subMerchantData, storeCreationWithMerchantCodeRequest.subMerchantData); } @Override public int hashCode() { - return Objects.hash(address, businessLineIds, description, externalReferenceId, merchantId, phoneNumber, reference, shopperStatement, splitConfiguration, subMerchantData); + return Objects.hash( + address, + businessLineIds, + description, + externalReferenceId, + merchantId, + phoneNumber, + reference, + shopperStatement, + splitConfiguration, + subMerchantData); } @Override @@ -443,7 +548,9 @@ public String toString() { sb.append(" address: ").append(toIndentedString(address)).append("\n"); sb.append(" businessLineIds: ").append(toIndentedString(businessLineIds)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" externalReferenceId: ").append(toIndentedString(externalReferenceId)).append("\n"); + sb.append(" externalReferenceId: ") + .append(toIndentedString(externalReferenceId)) + .append("\n"); sb.append(" merchantId: ").append(toIndentedString(merchantId)).append("\n"); sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); @@ -455,8 +562,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -465,21 +571,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of StoreCreationWithMerchantCodeRequest given an JSON string * * @param jsonString JSON string * @return An instance of StoreCreationWithMerchantCodeRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to StoreCreationWithMerchantCodeRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * StoreCreationWithMerchantCodeRequest */ - public static StoreCreationWithMerchantCodeRequest fromJson(String jsonString) throws JsonProcessingException { + public static StoreCreationWithMerchantCodeRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoreCreationWithMerchantCodeRequest.class); } -/** - * Convert an instance of StoreCreationWithMerchantCodeRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of StoreCreationWithMerchantCodeRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/StoreLocation.java b/src/main/java/com/adyen/model/management/StoreLocation.java index aea8d4a5e..68b53dfd6 100644 --- a/src/main/java/com/adyen/model/management/StoreLocation.java +++ b/src/main/java/com/adyen/model/management/StoreLocation.java @@ -2,31 +2,22 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * StoreLocation - */ +/** StoreLocation */ @JsonPropertyOrder({ StoreLocation.JSON_PROPERTY_CITY, StoreLocation.JSON_PROPERTY_COUNTRY, @@ -36,7 +27,6 @@ StoreLocation.JSON_PROPERTY_POSTAL_CODE, StoreLocation.JSON_PROPERTY_STATE_OR_PROVINCE }) - public class StoreLocation { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -59,8 +49,7 @@ public class StoreLocation { public static final String JSON_PROPERTY_STATE_OR_PROVINCE = "stateOrProvince"; private String stateOrProvince; - public StoreLocation() { - } + public StoreLocation() {} /** * The name of the city. @@ -75,6 +64,7 @@ public StoreLocation city(String city) { /** * The name of the city. + * * @return city The name of the city. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -95,9 +85,11 @@ public void setCity(String city) { } /** - * The two-letter country code in [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. + * The two-letter country code in + * [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * - * @param country The two-letter country code in [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. + * @param country The two-letter country code in + * [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * @return the current {@code StoreLocation} instance, allowing for method chaining */ public StoreLocation country(String country) { @@ -106,8 +98,11 @@ public StoreLocation country(String country) { } /** - * The two-letter country code in [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. - * @return country The two-letter country code in [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. + * The two-letter country code in + * [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. + * + * @return country The two-letter country code in + * [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,9 +111,11 @@ public String getCountry() { } /** - * The two-letter country code in [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. + * The two-letter country code in + * [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * - * @param country The two-letter country code in [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. + * @param country The two-letter country code in + * [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,6 +136,7 @@ public StoreLocation line1(String line1) { /** * The street address. + * * @return line1 The street address. */ @JsonProperty(JSON_PROPERTY_LINE1) @@ -171,6 +169,7 @@ public StoreLocation line2(String line2) { /** * Second address line. + * * @return line2 Second address line. */ @JsonProperty(JSON_PROPERTY_LINE2) @@ -203,6 +202,7 @@ public StoreLocation line3(String line3) { /** * Third address line. + * * @return line3 Third address line. */ @JsonProperty(JSON_PROPERTY_LINE3) @@ -235,6 +235,7 @@ public StoreLocation postalCode(String postalCode) { /** * The postal code. + * * @return postalCode The postal code. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @@ -255,9 +256,14 @@ public void setPostalCode(String postalCode) { } /** - * The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States + * The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). + * For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - + * Brazil - Canada - India - Mexico - New Zealand - United States * - * @param stateOrProvince The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States + * @param stateOrProvince The state or province code as defined in [ISO + * 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. + * Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New + * Zealand - United States * @return the current {@code StoreLocation} instance, allowing for method chaining */ public StoreLocation stateOrProvince(String stateOrProvince) { @@ -266,8 +272,14 @@ public StoreLocation stateOrProvince(String stateOrProvince) { } /** - * The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States - * @return stateOrProvince The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States + * The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). + * For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - + * Brazil - Canada - India - Mexico - New Zealand - United States + * + * @return stateOrProvince The state or province code as defined in [ISO + * 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. + * Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New + * Zealand - United States */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -276,9 +288,14 @@ public String getStateOrProvince() { } /** - * The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States + * The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). + * For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - + * Brazil - Canada - India - Mexico - New Zealand - United States * - * @param stateOrProvince The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States + * @param stateOrProvince The state or province code as defined in [ISO + * 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. + * Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New + * Zealand - United States */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -286,9 +303,7 @@ public void setStateOrProvince(String stateOrProvince) { this.stateOrProvince = stateOrProvince; } - /** - * Return true if this StoreLocation object is equal to o. - */ + /** Return true if this StoreLocation object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -298,13 +313,13 @@ public boolean equals(Object o) { return false; } StoreLocation storeLocation = (StoreLocation) o; - return Objects.equals(this.city, storeLocation.city) && - Objects.equals(this.country, storeLocation.country) && - Objects.equals(this.line1, storeLocation.line1) && - Objects.equals(this.line2, storeLocation.line2) && - Objects.equals(this.line3, storeLocation.line3) && - Objects.equals(this.postalCode, storeLocation.postalCode) && - Objects.equals(this.stateOrProvince, storeLocation.stateOrProvince); + return Objects.equals(this.city, storeLocation.city) + && Objects.equals(this.country, storeLocation.country) + && Objects.equals(this.line1, storeLocation.line1) + && Objects.equals(this.line2, storeLocation.line2) + && Objects.equals(this.line3, storeLocation.line3) + && Objects.equals(this.postalCode, storeLocation.postalCode) + && Objects.equals(this.stateOrProvince, storeLocation.stateOrProvince); } @Override @@ -328,8 +343,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -338,7 +352,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of StoreLocation given an JSON string * * @param jsonString JSON string @@ -348,11 +362,12 @@ private String toIndentedString(Object o) { public static StoreLocation fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoreLocation.class); } -/** - * Convert an instance of StoreLocation to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of StoreLocation to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/StoreSplitConfiguration.java b/src/main/java/com/adyen/model/management/StoreSplitConfiguration.java index 5058491be..f3d476d77 100644 --- a/src/main/java/com/adyen/model/management/StoreSplitConfiguration.java +++ b/src/main/java/com/adyen/model/management/StoreSplitConfiguration.java @@ -2,36 +2,26 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * StoreSplitConfiguration - */ +/** StoreSplitConfiguration */ @JsonPropertyOrder({ StoreSplitConfiguration.JSON_PROPERTY_BALANCE_ACCOUNT_ID, StoreSplitConfiguration.JSON_PROPERTY_SPLIT_CONFIGURATION_ID }) - public class StoreSplitConfiguration { public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; @@ -39,13 +29,18 @@ public class StoreSplitConfiguration { public static final String JSON_PROPERTY_SPLIT_CONFIGURATION_ID = "splitConfigurationId"; private String splitConfigurationId; - public StoreSplitConfiguration() { - } + public StoreSplitConfiguration() {} /** - * The [unique identifier of the balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id) to which the split amount must be booked, depending on the defined [split logic](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/_merchantId_/splitConfigurations#request-rules-splitLogic). + * The [unique identifier of the balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id) + * to which the split amount must be booked, depending on the defined [split + * logic](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/_merchantId_/splitConfigurations#request-rules-splitLogic). * - * @param balanceAccountId The [unique identifier of the balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id) to which the split amount must be booked, depending on the defined [split logic](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/_merchantId_/splitConfigurations#request-rules-splitLogic). + * @param balanceAccountId The [unique identifier of the balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id) + * to which the split amount must be booked, depending on the defined [split + * logic](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/_merchantId_/splitConfigurations#request-rules-splitLogic). * @return the current {@code StoreSplitConfiguration} instance, allowing for method chaining */ public StoreSplitConfiguration balanceAccountId(String balanceAccountId) { @@ -54,8 +49,15 @@ public StoreSplitConfiguration balanceAccountId(String balanceAccountId) { } /** - * The [unique identifier of the balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id) to which the split amount must be booked, depending on the defined [split logic](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/_merchantId_/splitConfigurations#request-rules-splitLogic). - * @return balanceAccountId The [unique identifier of the balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id) to which the split amount must be booked, depending on the defined [split logic](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/_merchantId_/splitConfigurations#request-rules-splitLogic). + * The [unique identifier of the balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id) + * to which the split amount must be booked, depending on the defined [split + * logic](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/_merchantId_/splitConfigurations#request-rules-splitLogic). + * + * @return balanceAccountId The [unique identifier of the balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id) + * to which the split amount must be booked, depending on the defined [split + * logic](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/_merchantId_/splitConfigurations#request-rules-splitLogic). */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +66,15 @@ public String getBalanceAccountId() { } /** - * The [unique identifier of the balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id) to which the split amount must be booked, depending on the defined [split logic](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/_merchantId_/splitConfigurations#request-rules-splitLogic). + * The [unique identifier of the balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id) + * to which the split amount must be booked, depending on the defined [split + * logic](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/_merchantId_/splitConfigurations#request-rules-splitLogic). * - * @param balanceAccountId The [unique identifier of the balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id) to which the split amount must be booked, depending on the defined [split logic](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/_merchantId_/splitConfigurations#request-rules-splitLogic). + * @param balanceAccountId The [unique identifier of the balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id) + * to which the split amount must be booked, depending on the defined [split + * logic](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/_merchantId_/splitConfigurations#request-rules-splitLogic). */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,9 +83,11 @@ public void setBalanceAccountId(String balanceAccountId) { } /** - * The unique identifier of the [split configuration profile](https://docs.adyen.com/platforms/automatic-split-configuration/create-split-configuration/). + * The unique identifier of the [split configuration + * profile](https://docs.adyen.com/platforms/automatic-split-configuration/create-split-configuration/). * - * @param splitConfigurationId The unique identifier of the [split configuration profile](https://docs.adyen.com/platforms/automatic-split-configuration/create-split-configuration/). + * @param splitConfigurationId The unique identifier of the [split configuration + * profile](https://docs.adyen.com/platforms/automatic-split-configuration/create-split-configuration/). * @return the current {@code StoreSplitConfiguration} instance, allowing for method chaining */ public StoreSplitConfiguration splitConfigurationId(String splitConfigurationId) { @@ -86,8 +96,11 @@ public StoreSplitConfiguration splitConfigurationId(String splitConfigurationId) } /** - * The unique identifier of the [split configuration profile](https://docs.adyen.com/platforms/automatic-split-configuration/create-split-configuration/). - * @return splitConfigurationId The unique identifier of the [split configuration profile](https://docs.adyen.com/platforms/automatic-split-configuration/create-split-configuration/). + * The unique identifier of the [split configuration + * profile](https://docs.adyen.com/platforms/automatic-split-configuration/create-split-configuration/). + * + * @return splitConfigurationId The unique identifier of the [split configuration + * profile](https://docs.adyen.com/platforms/automatic-split-configuration/create-split-configuration/). */ @JsonProperty(JSON_PROPERTY_SPLIT_CONFIGURATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +109,11 @@ public String getSplitConfigurationId() { } /** - * The unique identifier of the [split configuration profile](https://docs.adyen.com/platforms/automatic-split-configuration/create-split-configuration/). + * The unique identifier of the [split configuration + * profile](https://docs.adyen.com/platforms/automatic-split-configuration/create-split-configuration/). * - * @param splitConfigurationId The unique identifier of the [split configuration profile](https://docs.adyen.com/platforms/automatic-split-configuration/create-split-configuration/). + * @param splitConfigurationId The unique identifier of the [split configuration + * profile](https://docs.adyen.com/platforms/automatic-split-configuration/create-split-configuration/). */ @JsonProperty(JSON_PROPERTY_SPLIT_CONFIGURATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +121,7 @@ public void setSplitConfigurationId(String splitConfigurationId) { this.splitConfigurationId = splitConfigurationId; } - /** - * Return true if this StoreSplitConfiguration object is equal to o. - */ + /** Return true if this StoreSplitConfiguration object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +131,8 @@ public boolean equals(Object o) { return false; } StoreSplitConfiguration storeSplitConfiguration = (StoreSplitConfiguration) o; - return Objects.equals(this.balanceAccountId, storeSplitConfiguration.balanceAccountId) && - Objects.equals(this.splitConfigurationId, storeSplitConfiguration.splitConfigurationId); + return Objects.equals(this.balanceAccountId, storeSplitConfiguration.balanceAccountId) + && Objects.equals(this.splitConfigurationId, storeSplitConfiguration.splitConfigurationId); } @Override @@ -132,14 +145,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class StoreSplitConfiguration {\n"); sb.append(" balanceAccountId: ").append(toIndentedString(balanceAccountId)).append("\n"); - sb.append(" splitConfigurationId: ").append(toIndentedString(splitConfigurationId)).append("\n"); + sb.append(" splitConfigurationId: ") + .append(toIndentedString(splitConfigurationId)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +162,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of StoreSplitConfiguration given an JSON string * * @param jsonString JSON string * @return An instance of StoreSplitConfiguration - * @throws JsonProcessingException if the JSON string is invalid with respect to StoreSplitConfiguration + * @throws JsonProcessingException if the JSON string is invalid with respect to + * StoreSplitConfiguration */ public static StoreSplitConfiguration fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoreSplitConfiguration.class); } -/** - * Convert an instance of StoreSplitConfiguration to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of StoreSplitConfiguration to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/SubMerchantData.java b/src/main/java/com/adyen/model/management/SubMerchantData.java index d2f2e87b2..de743136a 100644 --- a/src/main/java/com/adyen/model/management/SubMerchantData.java +++ b/src/main/java/com/adyen/model/management/SubMerchantData.java @@ -2,38 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * SubMerchantData - */ +/** SubMerchantData */ @JsonPropertyOrder({ SubMerchantData.JSON_PROPERTY_EMAIL, SubMerchantData.JSON_PROPERTY_ID, SubMerchantData.JSON_PROPERTY_MCC, SubMerchantData.JSON_PROPERTY_NAME }) - public class SubMerchantData { public static final String JSON_PROPERTY_EMAIL = "email"; private String email; @@ -47,8 +37,7 @@ public class SubMerchantData { public static final String JSON_PROPERTY_NAME = "name"; private String name; - public SubMerchantData() { - } + public SubMerchantData() {} /** * The email associated with the sub-merchant's account. @@ -63,6 +52,7 @@ public SubMerchantData email(String email) { /** * The email associated with the sub-merchant's account. + * * @return email The email associated with the sub-merchant's account. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -83,9 +73,11 @@ public void setEmail(String email) { } /** - * A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * A unique identifier that you create for the sub-merchant, used by schemes to identify the + * sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters * - * @param id A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * @param id A unique identifier that you create for the sub-merchant, used by schemes to identify + * the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters * @return the current {@code SubMerchantData} instance, allowing for method chaining */ public SubMerchantData id(String id) { @@ -94,8 +86,11 @@ public SubMerchantData id(String id) { } /** - * A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters - * @return id A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * A unique identifier that you create for the sub-merchant, used by schemes to identify the + * sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * + * @return id A unique identifier that you create for the sub-merchant, used by schemes to + * identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,9 +99,11 @@ public String getId() { } /** - * A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * A unique identifier that you create for the sub-merchant, used by schemes to identify the + * sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters * - * @param id A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * @param id A unique identifier that you create for the sub-merchant, used by schemes to identify + * the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,9 +112,11 @@ public void setId(String id) { } /** - * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: + * 4 digits * - * @param mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * @param mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * + * Fixed length: 4 digits * @return the current {@code SubMerchantData} instance, allowing for method chaining */ public SubMerchantData mcc(String mcc) { @@ -126,8 +125,11 @@ public SubMerchantData mcc(String mcc) { } /** - * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits - * @return mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: + * 4 digits + * + * @return mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * + * Fixed length: 4 digits */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,9 +138,11 @@ public String getMcc() { } /** - * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: + * 4 digits * - * @param mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * @param mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * + * Fixed length: 4 digits */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,9 +151,13 @@ public void setMcc(String mcc) { } /** - * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters + * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the + * shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum + * length: 22 characters * - * @param name The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters + * @param name The name of the sub-merchant. Based on scheme specifications, this value will + * overwrite the shopper statement that will appear in the card statement. * Format: + * Alphanumeric * Maximum length: 22 characters * @return the current {@code SubMerchantData} instance, allowing for method chaining */ public SubMerchantData name(String name) { @@ -158,8 +166,13 @@ public SubMerchantData name(String name) { } /** - * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters - * @return name The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters + * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the + * shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum + * length: 22 characters + * + * @return name The name of the sub-merchant. Based on scheme specifications, this value will + * overwrite the shopper statement that will appear in the card statement. * Format: + * Alphanumeric * Maximum length: 22 characters */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,9 +181,13 @@ public String getName() { } /** - * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters + * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the + * shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum + * length: 22 characters * - * @param name The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters + * @param name The name of the sub-merchant. Based on scheme specifications, this value will + * overwrite the shopper statement that will appear in the card statement. * Format: + * Alphanumeric * Maximum length: 22 characters */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,9 +195,7 @@ public void setName(String name) { this.name = name; } - /** - * Return true if this SubMerchantData object is equal to o. - */ + /** Return true if this SubMerchantData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -190,10 +205,10 @@ public boolean equals(Object o) { return false; } SubMerchantData subMerchantData = (SubMerchantData) o; - return Objects.equals(this.email, subMerchantData.email) && - Objects.equals(this.id, subMerchantData.id) && - Objects.equals(this.mcc, subMerchantData.mcc) && - Objects.equals(this.name, subMerchantData.name); + return Objects.equals(this.email, subMerchantData.email) + && Objects.equals(this.id, subMerchantData.id) + && Objects.equals(this.mcc, subMerchantData.mcc) + && Objects.equals(this.name, subMerchantData.name); } @Override @@ -214,8 +229,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,7 +238,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SubMerchantData given an JSON string * * @param jsonString JSON string @@ -234,11 +248,12 @@ private String toIndentedString(Object o) { public static SubMerchantData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SubMerchantData.class); } -/** - * Convert an instance of SubMerchantData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SubMerchantData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/SupportedCardTypes.java b/src/main/java/com/adyen/model/management/SupportedCardTypes.java index aff11a06b..aa68bebf3 100644 --- a/src/main/java/com/adyen/model/management/SupportedCardTypes.java +++ b/src/main/java/com/adyen/model/management/SupportedCardTypes.java @@ -2,31 +2,22 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * SupportedCardTypes - */ +/** SupportedCardTypes */ @JsonPropertyOrder({ SupportedCardTypes.JSON_PROPERTY_CREDIT, SupportedCardTypes.JSON_PROPERTY_DEBIT, @@ -34,7 +25,6 @@ SupportedCardTypes.JSON_PROPERTY_PREPAID, SupportedCardTypes.JSON_PROPERTY_UNKNOWN }) - public class SupportedCardTypes { public static final String JSON_PROPERTY_CREDIT = "credit"; private Boolean credit; @@ -51,8 +41,7 @@ public class SupportedCardTypes { public static final String JSON_PROPERTY_UNKNOWN = "unknown"; private Boolean unknown; - public SupportedCardTypes() { - } + public SupportedCardTypes() {} /** * Set to **true** to accept credit cards. @@ -67,6 +56,7 @@ public SupportedCardTypes credit(Boolean credit) { /** * Set to **true** to accept credit cards. + * * @return credit Set to **true** to accept credit cards. */ @JsonProperty(JSON_PROPERTY_CREDIT) @@ -99,6 +89,7 @@ public SupportedCardTypes debit(Boolean debit) { /** * Set to **true** to accept debit cards. + * * @return debit Set to **true** to accept debit cards. */ @JsonProperty(JSON_PROPERTY_DEBIT) @@ -131,6 +122,7 @@ public SupportedCardTypes deferredDebit(Boolean deferredDebit) { /** * Set to **true** to accept cards that allow deferred debit. + * * @return deferredDebit Set to **true** to accept cards that allow deferred debit. */ @JsonProperty(JSON_PROPERTY_DEFERRED_DEBIT) @@ -163,6 +155,7 @@ public SupportedCardTypes prepaid(Boolean prepaid) { /** * Set to **true** to accept prepaid cards. + * * @return prepaid Set to **true** to accept prepaid cards. */ @JsonProperty(JSON_PROPERTY_PREPAID) @@ -183,9 +176,11 @@ public void setPrepaid(Boolean prepaid) { } /** - * Set to **true** to accept card types for which the terminal can't determine the funding source while offline. + * Set to **true** to accept card types for which the terminal can't determine the funding + * source while offline. * - * @param unknown Set to **true** to accept card types for which the terminal can't determine the funding source while offline. + * @param unknown Set to **true** to accept card types for which the terminal can't determine + * the funding source while offline. * @return the current {@code SupportedCardTypes} instance, allowing for method chaining */ public SupportedCardTypes unknown(Boolean unknown) { @@ -194,8 +189,11 @@ public SupportedCardTypes unknown(Boolean unknown) { } /** - * Set to **true** to accept card types for which the terminal can't determine the funding source while offline. - * @return unknown Set to **true** to accept card types for which the terminal can't determine the funding source while offline. + * Set to **true** to accept card types for which the terminal can't determine the funding + * source while offline. + * + * @return unknown Set to **true** to accept card types for which the terminal can't determine + * the funding source while offline. */ @JsonProperty(JSON_PROPERTY_UNKNOWN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,9 +202,11 @@ public Boolean getUnknown() { } /** - * Set to **true** to accept card types for which the terminal can't determine the funding source while offline. + * Set to **true** to accept card types for which the terminal can't determine the funding + * source while offline. * - * @param unknown Set to **true** to accept card types for which the terminal can't determine the funding source while offline. + * @param unknown Set to **true** to accept card types for which the terminal can't determine + * the funding source while offline. */ @JsonProperty(JSON_PROPERTY_UNKNOWN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,9 +214,7 @@ public void setUnknown(Boolean unknown) { this.unknown = unknown; } - /** - * Return true if this SupportedCardTypes object is equal to o. - */ + /** Return true if this SupportedCardTypes object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -226,11 +224,11 @@ public boolean equals(Object o) { return false; } SupportedCardTypes supportedCardTypes = (SupportedCardTypes) o; - return Objects.equals(this.credit, supportedCardTypes.credit) && - Objects.equals(this.debit, supportedCardTypes.debit) && - Objects.equals(this.deferredDebit, supportedCardTypes.deferredDebit) && - Objects.equals(this.prepaid, supportedCardTypes.prepaid) && - Objects.equals(this.unknown, supportedCardTypes.unknown); + return Objects.equals(this.credit, supportedCardTypes.credit) + && Objects.equals(this.debit, supportedCardTypes.debit) + && Objects.equals(this.deferredDebit, supportedCardTypes.deferredDebit) + && Objects.equals(this.prepaid, supportedCardTypes.prepaid) + && Objects.equals(this.unknown, supportedCardTypes.unknown); } @Override @@ -252,8 +250,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -262,21 +259,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SupportedCardTypes given an JSON string * * @param jsonString JSON string * @return An instance of SupportedCardTypes - * @throws JsonProcessingException if the JSON string is invalid with respect to SupportedCardTypes + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SupportedCardTypes */ public static SupportedCardTypes fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SupportedCardTypes.class); } -/** - * Convert an instance of SupportedCardTypes to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SupportedCardTypes to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Surcharge.java b/src/main/java/com/adyen/model/management/Surcharge.java index 237cf0f34..8f92c3f25 100644 --- a/src/main/java/com/adyen/model/management/Surcharge.java +++ b/src/main/java/com/adyen/model/management/Surcharge.java @@ -2,40 +2,29 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.ModelConfiguration; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * Surcharge - */ +/** Surcharge */ @JsonPropertyOrder({ Surcharge.JSON_PROPERTY_ASK_CONFIRMATION, Surcharge.JSON_PROPERTY_CONFIGURATIONS, Surcharge.JSON_PROPERTY_EXCLUDE_GRATUITY_FROM_SURCHARGE }) - public class Surcharge { public static final String JSON_PROPERTY_ASK_CONFIRMATION = "askConfirmation"; private Boolean askConfirmation; @@ -43,11 +32,11 @@ public class Surcharge { public static final String JSON_PROPERTY_CONFIGURATIONS = "configurations"; private List configurations; - public static final String JSON_PROPERTY_EXCLUDE_GRATUITY_FROM_SURCHARGE = "excludeGratuityFromSurcharge"; + public static final String JSON_PROPERTY_EXCLUDE_GRATUITY_FROM_SURCHARGE = + "excludeGratuityFromSurcharge"; private Boolean excludeGratuityFromSurcharge; - public Surcharge() { - } + public Surcharge() {} /** * Show the surcharge details on the terminal, so the shopper can confirm. @@ -62,6 +51,7 @@ public Surcharge askConfirmation(Boolean askConfirmation) { /** * Show the surcharge details on the terminal, so the shopper can confirm. + * * @return askConfirmation Show the surcharge details on the terminal, so the shopper can confirm. */ @JsonProperty(JSON_PROPERTY_ASK_CONFIRMATION) @@ -82,9 +72,11 @@ public void setAskConfirmation(Boolean askConfirmation) { } /** - * Surcharge fees or percentages for specific cards, funding sources (credit or debit), and currencies. + * Surcharge fees or percentages for specific cards, funding sources (credit or debit), and + * currencies. * - * @param configurations Surcharge fees or percentages for specific cards, funding sources (credit or debit), and currencies. + * @param configurations Surcharge fees or percentages for specific cards, funding sources (credit + * or debit), and currencies. * @return the current {@code Surcharge} instance, allowing for method chaining */ public Surcharge configurations(List configurations) { @@ -101,8 +93,11 @@ public Surcharge addConfigurationsItem(ModelConfiguration configurationsItem) { } /** - * Surcharge fees or percentages for specific cards, funding sources (credit or debit), and currencies. - * @return configurations Surcharge fees or percentages for specific cards, funding sources (credit or debit), and currencies. + * Surcharge fees or percentages for specific cards, funding sources (credit or debit), and + * currencies. + * + * @return configurations Surcharge fees or percentages for specific cards, funding sources + * (credit or debit), and currencies. */ @JsonProperty(JSON_PROPERTY_CONFIGURATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,9 +106,11 @@ public List getConfigurations() { } /** - * Surcharge fees or percentages for specific cards, funding sources (credit or debit), and currencies. + * Surcharge fees or percentages for specific cards, funding sources (credit or debit), and + * currencies. * - * @param configurations Surcharge fees or percentages for specific cards, funding sources (credit or debit), and currencies. + * @param configurations Surcharge fees or percentages for specific cards, funding sources (credit + * or debit), and currencies. */ @JsonProperty(JSON_PROPERTY_CONFIGURATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -134,6 +131,7 @@ public Surcharge excludeGratuityFromSurcharge(Boolean excludeGratuityFromSurchar /** * Exclude the tip amount from the surcharge calculation. + * * @return excludeGratuityFromSurcharge Exclude the tip amount from the surcharge calculation. */ @JsonProperty(JSON_PROPERTY_EXCLUDE_GRATUITY_FROM_SURCHARGE) @@ -153,9 +151,7 @@ public void setExcludeGratuityFromSurcharge(Boolean excludeGratuityFromSurcharge this.excludeGratuityFromSurcharge = excludeGratuityFromSurcharge; } - /** - * Return true if this Surcharge object is equal to o. - */ + /** Return true if this Surcharge object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -165,9 +161,10 @@ public boolean equals(Object o) { return false; } Surcharge surcharge = (Surcharge) o; - return Objects.equals(this.askConfirmation, surcharge.askConfirmation) && - Objects.equals(this.configurations, surcharge.configurations) && - Objects.equals(this.excludeGratuityFromSurcharge, surcharge.excludeGratuityFromSurcharge); + return Objects.equals(this.askConfirmation, surcharge.askConfirmation) + && Objects.equals(this.configurations, surcharge.configurations) + && Objects.equals( + this.excludeGratuityFromSurcharge, surcharge.excludeGratuityFromSurcharge); } @Override @@ -181,14 +178,15 @@ public String toString() { sb.append("class Surcharge {\n"); sb.append(" askConfirmation: ").append(toIndentedString(askConfirmation)).append("\n"); sb.append(" configurations: ").append(toIndentedString(configurations)).append("\n"); - sb.append(" excludeGratuityFromSurcharge: ").append(toIndentedString(excludeGratuityFromSurcharge)).append("\n"); + sb.append(" excludeGratuityFromSurcharge: ") + .append(toIndentedString(excludeGratuityFromSurcharge)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -197,7 +195,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Surcharge given an JSON string * * @param jsonString JSON string @@ -207,11 +205,12 @@ private String toIndentedString(Object o) { public static Surcharge fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Surcharge.class); } -/** - * Convert an instance of Surcharge to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Surcharge to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/SwishInfo.java b/src/main/java/com/adyen/model/management/SwishInfo.java index cbbd192e3..332c6f76c 100644 --- a/src/main/java/com/adyen/model/management/SwishInfo.java +++ b/src/main/java/com/adyen/model/management/SwishInfo.java @@ -2,41 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * SwishInfo - */ -@JsonPropertyOrder({ - SwishInfo.JSON_PROPERTY_SWISH_NUMBER -}) - +/** SwishInfo */ +@JsonPropertyOrder({SwishInfo.JSON_PROPERTY_SWISH_NUMBER}) public class SwishInfo { public static final String JSON_PROPERTY_SWISH_NUMBER = "swishNumber"; private String swishNumber; - public SwishInfo() { - } + public SwishInfo() {} /** * Swish number. Format: 10 digits without spaces. For example, **1231111111**. @@ -51,7 +38,9 @@ public SwishInfo swishNumber(String swishNumber) { /** * Swish number. Format: 10 digits without spaces. For example, **1231111111**. - * @return swishNumber Swish number. Format: 10 digits without spaces. For example, **1231111111**. + * + * @return swishNumber Swish number. Format: 10 digits without spaces. For example, + * **1231111111**. */ @JsonProperty(JSON_PROPERTY_SWISH_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +59,7 @@ public void setSwishNumber(String swishNumber) { this.swishNumber = swishNumber; } - /** - * Return true if this SwishInfo object is equal to o. - */ + /** Return true if this SwishInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +87,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,7 +96,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SwishInfo given an JSON string * * @param jsonString JSON string @@ -120,11 +106,12 @@ private String toIndentedString(Object o) { public static SwishInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SwishInfo.class); } -/** - * Convert an instance of SwishInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SwishInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TapToPay.java b/src/main/java/com/adyen/model/management/TapToPay.java index f80611db8..d346f776c 100644 --- a/src/main/java/com/adyen/model/management/TapToPay.java +++ b/src/main/java/com/adyen/model/management/TapToPay.java @@ -2,41 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TapToPay - */ -@JsonPropertyOrder({ - TapToPay.JSON_PROPERTY_MERCHANT_DISPLAY_NAME -}) - +/** TapToPay */ +@JsonPropertyOrder({TapToPay.JSON_PROPERTY_MERCHANT_DISPLAY_NAME}) public class TapToPay { public static final String JSON_PROPERTY_MERCHANT_DISPLAY_NAME = "merchantDisplayName"; private String merchantDisplayName; - public TapToPay() { - } + public TapToPay() {} /** * The text shown on the screen during the Tap to Pay transaction. @@ -51,6 +38,7 @@ public TapToPay merchantDisplayName(String merchantDisplayName) { /** * The text shown on the screen during the Tap to Pay transaction. + * * @return merchantDisplayName The text shown on the screen during the Tap to Pay transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_DISPLAY_NAME) @@ -70,9 +58,7 @@ public void setMerchantDisplayName(String merchantDisplayName) { this.merchantDisplayName = merchantDisplayName; } - /** - * Return true if this TapToPay object is equal to o. - */ + /** Return true if this TapToPay object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -94,14 +80,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TapToPay {\n"); - sb.append(" merchantDisplayName: ").append(toIndentedString(merchantDisplayName)).append("\n"); + sb.append(" merchantDisplayName: ") + .append(toIndentedString(merchantDisplayName)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,7 +97,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TapToPay given an JSON string * * @param jsonString JSON string @@ -120,11 +107,12 @@ private String toIndentedString(Object o) { public static TapToPay fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TapToPay.class); } -/** - * Convert an instance of TapToPay to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TapToPay to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Terminal.java b/src/main/java/com/adyen/model/management/Terminal.java index c90ca7d2d..530fa85c3 100644 --- a/src/main/java/com/adyen/model/management/Terminal.java +++ b/src/main/java/com/adyen/model/management/Terminal.java @@ -2,34 +2,23 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.TerminalAssignment; -import com.adyen.model.management.TerminalConnectivity; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.time.OffsetDateTime; +import java.util.*; - -/** - * Terminal - */ +/** Terminal */ @JsonPropertyOrder({ Terminal.JSON_PROPERTY_ASSIGNMENT, Terminal.JSON_PROPERTY_CONNECTIVITY, @@ -41,7 +30,6 @@ Terminal.JSON_PROPERTY_RESTART_LOCAL_TIME, Terminal.JSON_PROPERTY_SERIAL_NUMBER }) - public class Terminal { public static final String JSON_PROPERTY_ASSIGNMENT = "assignment"; private TerminalAssignment assignment; @@ -70,13 +58,12 @@ public class Terminal { public static final String JSON_PROPERTY_SERIAL_NUMBER = "serialNumber"; private String serialNumber; - public Terminal() { - } + public Terminal() {} /** * assignment * - * @param assignment + * @param assignment * @return the current {@code Terminal} instance, allowing for method chaining */ public Terminal assignment(TerminalAssignment assignment) { @@ -86,7 +73,8 @@ public Terminal assignment(TerminalAssignment assignment) { /** * Get assignment - * @return assignment + * + * @return assignment */ @JsonProperty(JSON_PROPERTY_ASSIGNMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,7 +85,7 @@ public TerminalAssignment getAssignment() { /** * assignment * - * @param assignment + * @param assignment */ @JsonProperty(JSON_PROPERTY_ASSIGNMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,7 +96,7 @@ public void setAssignment(TerminalAssignment assignment) { /** * connectivity * - * @param connectivity + * @param connectivity * @return the current {@code Terminal} instance, allowing for method chaining */ public Terminal connectivity(TerminalConnectivity connectivity) { @@ -118,7 +106,8 @@ public Terminal connectivity(TerminalConnectivity connectivity) { /** * Get connectivity - * @return connectivity + * + * @return connectivity */ @JsonProperty(JSON_PROPERTY_CONNECTIVITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,7 +118,7 @@ public TerminalConnectivity getConnectivity() { /** * connectivity * - * @param connectivity + * @param connectivity */ @JsonProperty(JSON_PROPERTY_CONNECTIVITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,6 +139,7 @@ public Terminal firmwareVersion(String firmwareVersion) { /** * The software release currently in use on the terminal. + * * @return firmwareVersion The software release currently in use on the terminal. */ @JsonProperty(JSON_PROPERTY_FIRMWARE_VERSION) @@ -182,6 +172,7 @@ public Terminal id(String id) { /** * The unique identifier of the terminal. + * * @return id The unique identifier of the terminal. */ @JsonProperty(JSON_PROPERTY_ID) @@ -202,9 +193,11 @@ public void setId(String id) { } /** - * Date and time of the last activity on the terminal. Not included when the last activity was more than 14 days ago. + * Date and time of the last activity on the terminal. Not included when the last activity was + * more than 14 days ago. * - * @param lastActivityAt Date and time of the last activity on the terminal. Not included when the last activity was more than 14 days ago. + * @param lastActivityAt Date and time of the last activity on the terminal. Not included when the + * last activity was more than 14 days ago. * @return the current {@code Terminal} instance, allowing for method chaining */ public Terminal lastActivityAt(OffsetDateTime lastActivityAt) { @@ -213,8 +206,11 @@ public Terminal lastActivityAt(OffsetDateTime lastActivityAt) { } /** - * Date and time of the last activity on the terminal. Not included when the last activity was more than 14 days ago. - * @return lastActivityAt Date and time of the last activity on the terminal. Not included when the last activity was more than 14 days ago. + * Date and time of the last activity on the terminal. Not included when the last activity was + * more than 14 days ago. + * + * @return lastActivityAt Date and time of the last activity on the terminal. Not included when + * the last activity was more than 14 days ago. */ @JsonProperty(JSON_PROPERTY_LAST_ACTIVITY_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,9 +219,11 @@ public OffsetDateTime getLastActivityAt() { } /** - * Date and time of the last activity on the terminal. Not included when the last activity was more than 14 days ago. + * Date and time of the last activity on the terminal. Not included when the last activity was + * more than 14 days ago. * - * @param lastActivityAt Date and time of the last activity on the terminal. Not included when the last activity was more than 14 days ago. + * @param lastActivityAt Date and time of the last activity on the terminal. Not included when the + * last activity was more than 14 days ago. */ @JsonProperty(JSON_PROPERTY_LAST_ACTIVITY_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -234,9 +232,11 @@ public void setLastActivityAt(OffsetDateTime lastActivityAt) { } /** - * Date and time of the last transaction on the terminal. Not included when the last transaction was more than 14 days ago. + * Date and time of the last transaction on the terminal. Not included when the last transaction + * was more than 14 days ago. * - * @param lastTransactionAt Date and time of the last transaction on the terminal. Not included when the last transaction was more than 14 days ago. + * @param lastTransactionAt Date and time of the last transaction on the terminal. Not included + * when the last transaction was more than 14 days ago. * @return the current {@code Terminal} instance, allowing for method chaining */ public Terminal lastTransactionAt(OffsetDateTime lastTransactionAt) { @@ -245,8 +245,11 @@ public Terminal lastTransactionAt(OffsetDateTime lastTransactionAt) { } /** - * Date and time of the last transaction on the terminal. Not included when the last transaction was more than 14 days ago. - * @return lastTransactionAt Date and time of the last transaction on the terminal. Not included when the last transaction was more than 14 days ago. + * Date and time of the last transaction on the terminal. Not included when the last transaction + * was more than 14 days ago. + * + * @return lastTransactionAt Date and time of the last transaction on the terminal. Not included + * when the last transaction was more than 14 days ago. */ @JsonProperty(JSON_PROPERTY_LAST_TRANSACTION_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -255,9 +258,11 @@ public OffsetDateTime getLastTransactionAt() { } /** - * Date and time of the last transaction on the terminal. Not included when the last transaction was more than 14 days ago. + * Date and time of the last transaction on the terminal. Not included when the last transaction + * was more than 14 days ago. * - * @param lastTransactionAt Date and time of the last transaction on the terminal. Not included when the last transaction was more than 14 days ago. + * @param lastTransactionAt Date and time of the last transaction on the terminal. Not included + * when the last transaction was more than 14 days ago. */ @JsonProperty(JSON_PROPERTY_LAST_TRANSACTION_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -278,6 +283,7 @@ public Terminal model(String model) { /** * The model name of the terminal. + * * @return model The model name of the terminal. */ @JsonProperty(JSON_PROPERTY_MODEL) @@ -300,7 +306,8 @@ public void setModel(String model) { /** * The exact time of the terminal reboot, in the timezone of the terminal in **HH:mm** format. * - * @param restartLocalTime The exact time of the terminal reboot, in the timezone of the terminal in **HH:mm** format. + * @param restartLocalTime The exact time of the terminal reboot, in the timezone of the terminal + * in **HH:mm** format. * @return the current {@code Terminal} instance, allowing for method chaining */ public Terminal restartLocalTime(String restartLocalTime) { @@ -310,7 +317,9 @@ public Terminal restartLocalTime(String restartLocalTime) { /** * The exact time of the terminal reboot, in the timezone of the terminal in **HH:mm** format. - * @return restartLocalTime The exact time of the terminal reboot, in the timezone of the terminal in **HH:mm** format. + * + * @return restartLocalTime The exact time of the terminal reboot, in the timezone of the terminal + * in **HH:mm** format. */ @JsonProperty(JSON_PROPERTY_RESTART_LOCAL_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -321,7 +330,8 @@ public String getRestartLocalTime() { /** * The exact time of the terminal reboot, in the timezone of the terminal in **HH:mm** format. * - * @param restartLocalTime The exact time of the terminal reboot, in the timezone of the terminal in **HH:mm** format. + * @param restartLocalTime The exact time of the terminal reboot, in the timezone of the terminal + * in **HH:mm** format. */ @JsonProperty(JSON_PROPERTY_RESTART_LOCAL_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -342,6 +352,7 @@ public Terminal serialNumber(String serialNumber) { /** * The serial number of the terminal. + * * @return serialNumber The serial number of the terminal. */ @JsonProperty(JSON_PROPERTY_SERIAL_NUMBER) @@ -361,9 +372,7 @@ public void setSerialNumber(String serialNumber) { this.serialNumber = serialNumber; } - /** - * Return true if this Terminal object is equal to o. - */ + /** Return true if this Terminal object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -373,20 +382,29 @@ public boolean equals(Object o) { return false; } Terminal terminal = (Terminal) o; - return Objects.equals(this.assignment, terminal.assignment) && - Objects.equals(this.connectivity, terminal.connectivity) && - Objects.equals(this.firmwareVersion, terminal.firmwareVersion) && - Objects.equals(this.id, terminal.id) && - Objects.equals(this.lastActivityAt, terminal.lastActivityAt) && - Objects.equals(this.lastTransactionAt, terminal.lastTransactionAt) && - Objects.equals(this.model, terminal.model) && - Objects.equals(this.restartLocalTime, terminal.restartLocalTime) && - Objects.equals(this.serialNumber, terminal.serialNumber); + return Objects.equals(this.assignment, terminal.assignment) + && Objects.equals(this.connectivity, terminal.connectivity) + && Objects.equals(this.firmwareVersion, terminal.firmwareVersion) + && Objects.equals(this.id, terminal.id) + && Objects.equals(this.lastActivityAt, terminal.lastActivityAt) + && Objects.equals(this.lastTransactionAt, terminal.lastTransactionAt) + && Objects.equals(this.model, terminal.model) + && Objects.equals(this.restartLocalTime, terminal.restartLocalTime) + && Objects.equals(this.serialNumber, terminal.serialNumber); } @Override public int hashCode() { - return Objects.hash(assignment, connectivity, firmwareVersion, id, lastActivityAt, lastTransactionAt, model, restartLocalTime, serialNumber); + return Objects.hash( + assignment, + connectivity, + firmwareVersion, + id, + lastActivityAt, + lastTransactionAt, + model, + restartLocalTime, + serialNumber); } @Override @@ -407,8 +425,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -417,7 +434,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Terminal given an JSON string * * @param jsonString JSON string @@ -427,11 +444,12 @@ private String toIndentedString(Object o) { public static Terminal fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Terminal.class); } -/** - * Convert an instance of Terminal to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Terminal to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalActionScheduleDetail.java b/src/main/java/com/adyen/model/management/TerminalActionScheduleDetail.java index 6cecebd4e..97a3b5788 100644 --- a/src/main/java/com/adyen/model/management/TerminalActionScheduleDetail.java +++ b/src/main/java/com/adyen/model/management/TerminalActionScheduleDetail.java @@ -2,36 +2,26 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TerminalActionScheduleDetail - */ +/** TerminalActionScheduleDetail */ @JsonPropertyOrder({ TerminalActionScheduleDetail.JSON_PROPERTY_ID, TerminalActionScheduleDetail.JSON_PROPERTY_TERMINAL_ID }) - public class TerminalActionScheduleDetail { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -39,8 +29,7 @@ public class TerminalActionScheduleDetail { public static final String JSON_PROPERTY_TERMINAL_ID = "terminalId"; private String terminalId; - public TerminalActionScheduleDetail() { - } + public TerminalActionScheduleDetail() {} /** * The ID of the action on the specified terminal. @@ -55,6 +44,7 @@ public TerminalActionScheduleDetail id(String id) { /** * The ID of the action on the specified terminal. + * * @return id The ID of the action on the specified terminal. */ @JsonProperty(JSON_PROPERTY_ID) @@ -87,6 +77,7 @@ public TerminalActionScheduleDetail terminalId(String terminalId) { /** * The unique ID of the terminal that the action applies to. + * * @return terminalId The unique ID of the terminal that the action applies to. */ @JsonProperty(JSON_PROPERTY_TERMINAL_ID) @@ -106,9 +97,7 @@ public void setTerminalId(String terminalId) { this.terminalId = terminalId; } - /** - * Return true if this TerminalActionScheduleDetail object is equal to o. - */ + /** Return true if this TerminalActionScheduleDetail object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +107,8 @@ public boolean equals(Object o) { return false; } TerminalActionScheduleDetail terminalActionScheduleDetail = (TerminalActionScheduleDetail) o; - return Objects.equals(this.id, terminalActionScheduleDetail.id) && - Objects.equals(this.terminalId, terminalActionScheduleDetail.terminalId); + return Objects.equals(this.id, terminalActionScheduleDetail.id) + && Objects.equals(this.terminalId, terminalActionScheduleDetail.terminalId); } @Override @@ -138,8 +127,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +136,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TerminalActionScheduleDetail given an JSON string * * @param jsonString JSON string * @return An instance of TerminalActionScheduleDetail - * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalActionScheduleDetail + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TerminalActionScheduleDetail */ - public static TerminalActionScheduleDetail fromJson(String jsonString) throws JsonProcessingException { + public static TerminalActionScheduleDetail fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalActionScheduleDetail.class); } -/** - * Convert an instance of TerminalActionScheduleDetail to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TerminalActionScheduleDetail to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalAssignment.java b/src/main/java/com/adyen/model/management/TerminalAssignment.java index 32a47479b..57ab5ec52 100644 --- a/src/main/java/com/adyen/model/management/TerminalAssignment.java +++ b/src/main/java/com/adyen/model/management/TerminalAssignment.java @@ -2,32 +2,26 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.TerminalReassignmentTarget; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * TerminalAssignment - */ +/** TerminalAssignment */ @JsonPropertyOrder({ TerminalAssignment.JSON_PROPERTY_COMPANY_ID, TerminalAssignment.JSON_PROPERTY_MERCHANT_ID, @@ -35,7 +29,6 @@ TerminalAssignment.JSON_PROPERTY_STATUS, TerminalAssignment.JSON_PROPERTY_STORE_ID }) - public class TerminalAssignment { public static final String JSON_PROPERTY_COMPANY_ID = "companyId"; private String companyId; @@ -47,10 +40,14 @@ public class TerminalAssignment { private TerminalReassignmentTarget reassignmentTarget; /** - * The status of the reassignment. Possible values: * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to synchronize with the Adyen platform. * `deployed`: the terminal is deployed and reassigned. * `inventory`: the terminal is in inventory and cannot process transactions. * `boarded`: the terminal is boarded to a store, or a merchant account representing a store, and can process transactions. + * The status of the reassignment. Possible values: * `reassignmentInProgress`: the + * terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to + * synchronize with the Adyen platform. * `deployed`: the terminal is deployed and + * reassigned. * `inventory`: the terminal is in inventory and cannot process + * transactions. * `boarded`: the terminal is boarded to a store, or a merchant account + * representing a store, and can process transactions. */ public enum StatusEnum { - BOARDED(String.valueOf("boarded")), DEPLOYED(String.valueOf("deployed")), @@ -64,7 +61,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -85,7 +82,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -96,8 +97,7 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STORE_ID = "storeId"; private String storeId; - public TerminalAssignment() { - } + public TerminalAssignment() {} /** * The unique identifier of the company account to which terminal is assigned. @@ -112,6 +112,7 @@ public TerminalAssignment companyId(String companyId) { /** * The unique identifier of the company account to which terminal is assigned. + * * @return companyId The unique identifier of the company account to which terminal is assigned. */ @JsonProperty(JSON_PROPERTY_COMPANY_ID) @@ -144,6 +145,7 @@ public TerminalAssignment merchantId(String merchantId) { /** * The unique identifier of the merchant account to which terminal is assigned. + * * @return merchantId The unique identifier of the merchant account to which terminal is assigned. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @@ -166,7 +168,7 @@ public void setMerchantId(String merchantId) { /** * reassignmentTarget * - * @param reassignmentTarget + * @param reassignmentTarget * @return the current {@code TerminalAssignment} instance, allowing for method chaining */ public TerminalAssignment reassignmentTarget(TerminalReassignmentTarget reassignmentTarget) { @@ -176,7 +178,8 @@ public TerminalAssignment reassignmentTarget(TerminalReassignmentTarget reassign /** * Get reassignmentTarget - * @return reassignmentTarget + * + * @return reassignmentTarget */ @JsonProperty(JSON_PROPERTY_REASSIGNMENT_TARGET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,7 +190,7 @@ public TerminalReassignmentTarget getReassignmentTarget() { /** * reassignmentTarget * - * @param reassignmentTarget + * @param reassignmentTarget */ @JsonProperty(JSON_PROPERTY_REASSIGNMENT_TARGET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -196,9 +199,20 @@ public void setReassignmentTarget(TerminalReassignmentTarget reassignmentTarget) } /** - * The status of the reassignment. Possible values: * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to synchronize with the Adyen platform. * `deployed`: the terminal is deployed and reassigned. * `inventory`: the terminal is in inventory and cannot process transactions. * `boarded`: the terminal is boarded to a store, or a merchant account representing a store, and can process transactions. + * The status of the reassignment. Possible values: * `reassignmentInProgress`: the + * terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to + * synchronize with the Adyen platform. * `deployed`: the terminal is deployed and + * reassigned. * `inventory`: the terminal is in inventory and cannot process + * transactions. * `boarded`: the terminal is boarded to a store, or a merchant account + * representing a store, and can process transactions. * - * @param status The status of the reassignment. Possible values: * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to synchronize with the Adyen platform. * `deployed`: the terminal is deployed and reassigned. * `inventory`: the terminal is in inventory and cannot process transactions. * `boarded`: the terminal is boarded to a store, or a merchant account representing a store, and can process transactions. + * @param status The status of the reassignment. Possible values: * + * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove + * the configuration. Wait for the terminal to synchronize with the Adyen platform. * + * `deployed`: the terminal is deployed and reassigned. * `inventory`: the + * terminal is in inventory and cannot process transactions. * `boarded`: the + * terminal is boarded to a store, or a merchant account representing a store, and can process + * transactions. * @return the current {@code TerminalAssignment} instance, allowing for method chaining */ public TerminalAssignment status(StatusEnum status) { @@ -207,8 +221,20 @@ public TerminalAssignment status(StatusEnum status) { } /** - * The status of the reassignment. Possible values: * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to synchronize with the Adyen platform. * `deployed`: the terminal is deployed and reassigned. * `inventory`: the terminal is in inventory and cannot process transactions. * `boarded`: the terminal is boarded to a store, or a merchant account representing a store, and can process transactions. - * @return status The status of the reassignment. Possible values: * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to synchronize with the Adyen platform. * `deployed`: the terminal is deployed and reassigned. * `inventory`: the terminal is in inventory and cannot process transactions. * `boarded`: the terminal is boarded to a store, or a merchant account representing a store, and can process transactions. + * The status of the reassignment. Possible values: * `reassignmentInProgress`: the + * terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to + * synchronize with the Adyen platform. * `deployed`: the terminal is deployed and + * reassigned. * `inventory`: the terminal is in inventory and cannot process + * transactions. * `boarded`: the terminal is boarded to a store, or a merchant account + * representing a store, and can process transactions. + * + * @return status The status of the reassignment. Possible values: * + * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove + * the configuration. Wait for the terminal to synchronize with the Adyen platform. * + * `deployed`: the terminal is deployed and reassigned. * `inventory`: the + * terminal is in inventory and cannot process transactions. * `boarded`: the + * terminal is boarded to a store, or a merchant account representing a store, and can process + * transactions. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -217,9 +243,20 @@ public StatusEnum getStatus() { } /** - * The status of the reassignment. Possible values: * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to synchronize with the Adyen platform. * `deployed`: the terminal is deployed and reassigned. * `inventory`: the terminal is in inventory and cannot process transactions. * `boarded`: the terminal is boarded to a store, or a merchant account representing a store, and can process transactions. + * The status of the reassignment. Possible values: * `reassignmentInProgress`: the + * terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to + * synchronize with the Adyen platform. * `deployed`: the terminal is deployed and + * reassigned. * `inventory`: the terminal is in inventory and cannot process + * transactions. * `boarded`: the terminal is boarded to a store, or a merchant account + * representing a store, and can process transactions. * - * @param status The status of the reassignment. Possible values: * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to synchronize with the Adyen platform. * `deployed`: the terminal is deployed and reassigned. * `inventory`: the terminal is in inventory and cannot process transactions. * `boarded`: the terminal is boarded to a store, or a merchant account representing a store, and can process transactions. + * @param status The status of the reassignment. Possible values: * + * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove + * the configuration. Wait for the terminal to synchronize with the Adyen platform. * + * `deployed`: the terminal is deployed and reassigned. * `inventory`: the + * terminal is in inventory and cannot process transactions. * `boarded`: the + * terminal is boarded to a store, or a merchant account representing a store, and can process + * transactions. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,6 +277,7 @@ public TerminalAssignment storeId(String storeId) { /** * The unique identifier of the store to which terminal is assigned. + * * @return storeId The unique identifier of the store to which terminal is assigned. */ @JsonProperty(JSON_PROPERTY_STORE_ID) @@ -259,9 +297,7 @@ public void setStoreId(String storeId) { this.storeId = storeId; } - /** - * Return true if this TerminalAssignment object is equal to o. - */ + /** Return true if this TerminalAssignment object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -271,11 +307,11 @@ public boolean equals(Object o) { return false; } TerminalAssignment terminalAssignment = (TerminalAssignment) o; - return Objects.equals(this.companyId, terminalAssignment.companyId) && - Objects.equals(this.merchantId, terminalAssignment.merchantId) && - Objects.equals(this.reassignmentTarget, terminalAssignment.reassignmentTarget) && - Objects.equals(this.status, terminalAssignment.status) && - Objects.equals(this.storeId, terminalAssignment.storeId); + return Objects.equals(this.companyId, terminalAssignment.companyId) + && Objects.equals(this.merchantId, terminalAssignment.merchantId) + && Objects.equals(this.reassignmentTarget, terminalAssignment.reassignmentTarget) + && Objects.equals(this.status, terminalAssignment.status) + && Objects.equals(this.storeId, terminalAssignment.storeId); } @Override @@ -297,8 +333,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -307,21 +342,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TerminalAssignment given an JSON string * * @param jsonString JSON string * @return An instance of TerminalAssignment - * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalAssignment + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TerminalAssignment */ public static TerminalAssignment fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalAssignment.class); } -/** - * Convert an instance of TerminalAssignment to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TerminalAssignment to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalConnectivity.java b/src/main/java/com/adyen/model/management/TerminalConnectivity.java index 1ef11adab..08ecc7635 100644 --- a/src/main/java/com/adyen/model/management/TerminalConnectivity.java +++ b/src/main/java/com/adyen/model/management/TerminalConnectivity.java @@ -2,42 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.TerminalConnectivityBluetooth; -import com.adyen.model.management.TerminalConnectivityCellular; -import com.adyen.model.management.TerminalConnectivityEthernet; -import com.adyen.model.management.TerminalConnectivityWifi; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TerminalConnectivity - */ +/** TerminalConnectivity */ @JsonPropertyOrder({ TerminalConnectivity.JSON_PROPERTY_BLUETOOTH, TerminalConnectivity.JSON_PROPERTY_CELLULAR, TerminalConnectivity.JSON_PROPERTY_ETHERNET, TerminalConnectivity.JSON_PROPERTY_WIFI }) - public class TerminalConnectivity { public static final String JSON_PROPERTY_BLUETOOTH = "bluetooth"; private TerminalConnectivityBluetooth bluetooth; @@ -51,13 +37,12 @@ public class TerminalConnectivity { public static final String JSON_PROPERTY_WIFI = "wifi"; private TerminalConnectivityWifi wifi; - public TerminalConnectivity() { - } + public TerminalConnectivity() {} /** * bluetooth * - * @param bluetooth + * @param bluetooth * @return the current {@code TerminalConnectivity} instance, allowing for method chaining */ public TerminalConnectivity bluetooth(TerminalConnectivityBluetooth bluetooth) { @@ -67,7 +52,8 @@ public TerminalConnectivity bluetooth(TerminalConnectivityBluetooth bluetooth) { /** * Get bluetooth - * @return bluetooth + * + * @return bluetooth */ @JsonProperty(JSON_PROPERTY_BLUETOOTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -78,7 +64,7 @@ public TerminalConnectivityBluetooth getBluetooth() { /** * bluetooth * - * @param bluetooth + * @param bluetooth */ @JsonProperty(JSON_PROPERTY_BLUETOOTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -89,7 +75,7 @@ public void setBluetooth(TerminalConnectivityBluetooth bluetooth) { /** * cellular * - * @param cellular + * @param cellular * @return the current {@code TerminalConnectivity} instance, allowing for method chaining */ public TerminalConnectivity cellular(TerminalConnectivityCellular cellular) { @@ -99,7 +85,8 @@ public TerminalConnectivity cellular(TerminalConnectivityCellular cellular) { /** * Get cellular - * @return cellular + * + * @return cellular */ @JsonProperty(JSON_PROPERTY_CELLULAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,7 +97,7 @@ public TerminalConnectivityCellular getCellular() { /** * cellular * - * @param cellular + * @param cellular */ @JsonProperty(JSON_PROPERTY_CELLULAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,7 +108,7 @@ public void setCellular(TerminalConnectivityCellular cellular) { /** * ethernet * - * @param ethernet + * @param ethernet * @return the current {@code TerminalConnectivity} instance, allowing for method chaining */ public TerminalConnectivity ethernet(TerminalConnectivityEthernet ethernet) { @@ -131,7 +118,8 @@ public TerminalConnectivity ethernet(TerminalConnectivityEthernet ethernet) { /** * Get ethernet - * @return ethernet + * + * @return ethernet */ @JsonProperty(JSON_PROPERTY_ETHERNET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,7 +130,7 @@ public TerminalConnectivityEthernet getEthernet() { /** * ethernet * - * @param ethernet + * @param ethernet */ @JsonProperty(JSON_PROPERTY_ETHERNET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -153,7 +141,7 @@ public void setEthernet(TerminalConnectivityEthernet ethernet) { /** * wifi * - * @param wifi + * @param wifi * @return the current {@code TerminalConnectivity} instance, allowing for method chaining */ public TerminalConnectivity wifi(TerminalConnectivityWifi wifi) { @@ -163,7 +151,8 @@ public TerminalConnectivity wifi(TerminalConnectivityWifi wifi) { /** * Get wifi - * @return wifi + * + * @return wifi */ @JsonProperty(JSON_PROPERTY_WIFI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -174,7 +163,7 @@ public TerminalConnectivityWifi getWifi() { /** * wifi * - * @param wifi + * @param wifi */ @JsonProperty(JSON_PROPERTY_WIFI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,9 +171,7 @@ public void setWifi(TerminalConnectivityWifi wifi) { this.wifi = wifi; } - /** - * Return true if this TerminalConnectivity object is equal to o. - */ + /** Return true if this TerminalConnectivity object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -194,10 +181,10 @@ public boolean equals(Object o) { return false; } TerminalConnectivity terminalConnectivity = (TerminalConnectivity) o; - return Objects.equals(this.bluetooth, terminalConnectivity.bluetooth) && - Objects.equals(this.cellular, terminalConnectivity.cellular) && - Objects.equals(this.ethernet, terminalConnectivity.ethernet) && - Objects.equals(this.wifi, terminalConnectivity.wifi); + return Objects.equals(this.bluetooth, terminalConnectivity.bluetooth) + && Objects.equals(this.cellular, terminalConnectivity.cellular) + && Objects.equals(this.ethernet, terminalConnectivity.ethernet) + && Objects.equals(this.wifi, terminalConnectivity.wifi); } @Override @@ -218,8 +205,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -228,21 +214,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TerminalConnectivity given an JSON string * * @param jsonString JSON string * @return An instance of TerminalConnectivity - * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalConnectivity + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TerminalConnectivity */ public static TerminalConnectivity fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalConnectivity.class); } -/** - * Convert an instance of TerminalConnectivity to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TerminalConnectivity to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalConnectivityBluetooth.java b/src/main/java/com/adyen/model/management/TerminalConnectivityBluetooth.java index 9721ae466..b09333715 100644 --- a/src/main/java/com/adyen/model/management/TerminalConnectivityBluetooth.java +++ b/src/main/java/com/adyen/model/management/TerminalConnectivityBluetooth.java @@ -2,36 +2,26 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TerminalConnectivityBluetooth - */ +/** TerminalConnectivityBluetooth */ @JsonPropertyOrder({ TerminalConnectivityBluetooth.JSON_PROPERTY_IP_ADDRESS, TerminalConnectivityBluetooth.JSON_PROPERTY_MAC_ADDRESS }) - public class TerminalConnectivityBluetooth { public static final String JSON_PROPERTY_IP_ADDRESS = "ipAddress"; private String ipAddress; @@ -39,14 +29,14 @@ public class TerminalConnectivityBluetooth { public static final String JSON_PROPERTY_MAC_ADDRESS = "macAddress"; private String macAddress; - public TerminalConnectivityBluetooth() { - } + public TerminalConnectivityBluetooth() {} /** * The terminal's Bluetooth IP address. * * @param ipAddress The terminal's Bluetooth IP address. - * @return the current {@code TerminalConnectivityBluetooth} instance, allowing for method chaining + * @return the current {@code TerminalConnectivityBluetooth} instance, allowing for method + * chaining */ public TerminalConnectivityBluetooth ipAddress(String ipAddress) { this.ipAddress = ipAddress; @@ -55,6 +45,7 @@ public TerminalConnectivityBluetooth ipAddress(String ipAddress) { /** * The terminal's Bluetooth IP address. + * * @return ipAddress The terminal's Bluetooth IP address. */ @JsonProperty(JSON_PROPERTY_IP_ADDRESS) @@ -78,7 +69,8 @@ public void setIpAddress(String ipAddress) { * The terminal's Bluetooth MAC address. * * @param macAddress The terminal's Bluetooth MAC address. - * @return the current {@code TerminalConnectivityBluetooth} instance, allowing for method chaining + * @return the current {@code TerminalConnectivityBluetooth} instance, allowing for method + * chaining */ public TerminalConnectivityBluetooth macAddress(String macAddress) { this.macAddress = macAddress; @@ -87,6 +79,7 @@ public TerminalConnectivityBluetooth macAddress(String macAddress) { /** * The terminal's Bluetooth MAC address. + * * @return macAddress The terminal's Bluetooth MAC address. */ @JsonProperty(JSON_PROPERTY_MAC_ADDRESS) @@ -106,9 +99,7 @@ public void setMacAddress(String macAddress) { this.macAddress = macAddress; } - /** - * Return true if this TerminalConnectivityBluetooth object is equal to o. - */ + /** Return true if this TerminalConnectivityBluetooth object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +109,8 @@ public boolean equals(Object o) { return false; } TerminalConnectivityBluetooth terminalConnectivityBluetooth = (TerminalConnectivityBluetooth) o; - return Objects.equals(this.ipAddress, terminalConnectivityBluetooth.ipAddress) && - Objects.equals(this.macAddress, terminalConnectivityBluetooth.macAddress); + return Objects.equals(this.ipAddress, terminalConnectivityBluetooth.ipAddress) + && Objects.equals(this.macAddress, terminalConnectivityBluetooth.macAddress); } @Override @@ -138,8 +129,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +138,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TerminalConnectivityBluetooth given an JSON string * * @param jsonString JSON string * @return An instance of TerminalConnectivityBluetooth - * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalConnectivityBluetooth + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TerminalConnectivityBluetooth */ - public static TerminalConnectivityBluetooth fromJson(String jsonString) throws JsonProcessingException { + public static TerminalConnectivityBluetooth fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalConnectivityBluetooth.class); } -/** - * Convert an instance of TerminalConnectivityBluetooth to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TerminalConnectivityBluetooth to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalConnectivityCellular.java b/src/main/java/com/adyen/model/management/TerminalConnectivityCellular.java index f740300a2..b87d1a36f 100644 --- a/src/main/java/com/adyen/model/management/TerminalConnectivityCellular.java +++ b/src/main/java/com/adyen/model/management/TerminalConnectivityCellular.java @@ -2,37 +2,31 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * TerminalConnectivityCellular - */ +/** TerminalConnectivityCellular */ @JsonPropertyOrder({ TerminalConnectivityCellular.JSON_PROPERTY_ICCID, TerminalConnectivityCellular.JSON_PROPERTY_ICCID2, TerminalConnectivityCellular.JSON_PROPERTY_STATUS }) - public class TerminalConnectivityCellular { public static final String JSON_PROPERTY_ICCID = "iccid"; private String iccid; @@ -41,10 +35,10 @@ public class TerminalConnectivityCellular { private String iccid2; /** - * On a terminal that supports 3G or 4G connectivity, indicates the status of the primary SIM card in the terminal. + * On a terminal that supports 3G or 4G connectivity, indicates the status of the primary SIM card + * in the terminal. */ public enum StatusEnum { - ACTIVATED(String.valueOf("activated")), DEACTIVATED(String.valueOf("deactivated")), @@ -60,7 +54,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -81,7 +75,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -89,13 +87,13 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; - public TerminalConnectivityCellular() { - } + public TerminalConnectivityCellular() {} /** * The integrated circuit card identifier (ICCID) of the primary SIM card in the terminal. * - * @param iccid The integrated circuit card identifier (ICCID) of the primary SIM card in the terminal. + * @param iccid The integrated circuit card identifier (ICCID) of the primary SIM card in the + * terminal. * @return the current {@code TerminalConnectivityCellular} instance, allowing for method chaining */ public TerminalConnectivityCellular iccid(String iccid) { @@ -105,7 +103,9 @@ public TerminalConnectivityCellular iccid(String iccid) { /** * The integrated circuit card identifier (ICCID) of the primary SIM card in the terminal. - * @return iccid The integrated circuit card identifier (ICCID) of the primary SIM card in the terminal. + * + * @return iccid The integrated circuit card identifier (ICCID) of the primary SIM card in the + * terminal. */ @JsonProperty(JSON_PROPERTY_ICCID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,7 +116,8 @@ public String getIccid() { /** * The integrated circuit card identifier (ICCID) of the primary SIM card in the terminal. * - * @param iccid The integrated circuit card identifier (ICCID) of the primary SIM card in the terminal. + * @param iccid The integrated circuit card identifier (ICCID) of the primary SIM card in the + * terminal. */ @JsonProperty(JSON_PROPERTY_ICCID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,9 +126,13 @@ public void setIccid(String iccid) { } /** - * The integrated circuit card identifier (ICCID) of the secondary SIM card in the terminal, typically used for a [third-party SIM card](https://docs.adyen.com/point-of-sale/design-your-integration/network-and-connectivity/cellular-failover/#using-a-third-party-sim-card). + * The integrated circuit card identifier (ICCID) of the secondary SIM card in the terminal, + * typically used for a [third-party SIM + * card](https://docs.adyen.com/point-of-sale/design-your-integration/network-and-connectivity/cellular-failover/#using-a-third-party-sim-card). * - * @param iccid2 The integrated circuit card identifier (ICCID) of the secondary SIM card in the terminal, typically used for a [third-party SIM card](https://docs.adyen.com/point-of-sale/design-your-integration/network-and-connectivity/cellular-failover/#using-a-third-party-sim-card). + * @param iccid2 The integrated circuit card identifier (ICCID) of the secondary SIM card in the + * terminal, typically used for a [third-party SIM + * card](https://docs.adyen.com/point-of-sale/design-your-integration/network-and-connectivity/cellular-failover/#using-a-third-party-sim-card). * @return the current {@code TerminalConnectivityCellular} instance, allowing for method chaining */ public TerminalConnectivityCellular iccid2(String iccid2) { @@ -136,8 +141,13 @@ public TerminalConnectivityCellular iccid2(String iccid2) { } /** - * The integrated circuit card identifier (ICCID) of the secondary SIM card in the terminal, typically used for a [third-party SIM card](https://docs.adyen.com/point-of-sale/design-your-integration/network-and-connectivity/cellular-failover/#using-a-third-party-sim-card). - * @return iccid2 The integrated circuit card identifier (ICCID) of the secondary SIM card in the terminal, typically used for a [third-party SIM card](https://docs.adyen.com/point-of-sale/design-your-integration/network-and-connectivity/cellular-failover/#using-a-third-party-sim-card). + * The integrated circuit card identifier (ICCID) of the secondary SIM card in the terminal, + * typically used for a [third-party SIM + * card](https://docs.adyen.com/point-of-sale/design-your-integration/network-and-connectivity/cellular-failover/#using-a-third-party-sim-card). + * + * @return iccid2 The integrated circuit card identifier (ICCID) of the secondary SIM card in the + * terminal, typically used for a [third-party SIM + * card](https://docs.adyen.com/point-of-sale/design-your-integration/network-and-connectivity/cellular-failover/#using-a-third-party-sim-card). */ @JsonProperty(JSON_PROPERTY_ICCID2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,9 +156,13 @@ public String getIccid2() { } /** - * The integrated circuit card identifier (ICCID) of the secondary SIM card in the terminal, typically used for a [third-party SIM card](https://docs.adyen.com/point-of-sale/design-your-integration/network-and-connectivity/cellular-failover/#using-a-third-party-sim-card). + * The integrated circuit card identifier (ICCID) of the secondary SIM card in the terminal, + * typically used for a [third-party SIM + * card](https://docs.adyen.com/point-of-sale/design-your-integration/network-and-connectivity/cellular-failover/#using-a-third-party-sim-card). * - * @param iccid2 The integrated circuit card identifier (ICCID) of the secondary SIM card in the terminal, typically used for a [third-party SIM card](https://docs.adyen.com/point-of-sale/design-your-integration/network-and-connectivity/cellular-failover/#using-a-third-party-sim-card). + * @param iccid2 The integrated circuit card identifier (ICCID) of the secondary SIM card in the + * terminal, typically used for a [third-party SIM + * card](https://docs.adyen.com/point-of-sale/design-your-integration/network-and-connectivity/cellular-failover/#using-a-third-party-sim-card). */ @JsonProperty(JSON_PROPERTY_ICCID2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -157,9 +171,11 @@ public void setIccid2(String iccid2) { } /** - * On a terminal that supports 3G or 4G connectivity, indicates the status of the primary SIM card in the terminal. + * On a terminal that supports 3G or 4G connectivity, indicates the status of the primary SIM card + * in the terminal. * - * @param status On a terminal that supports 3G or 4G connectivity, indicates the status of the primary SIM card in the terminal. + * @param status On a terminal that supports 3G or 4G connectivity, indicates the status of the + * primary SIM card in the terminal. * @return the current {@code TerminalConnectivityCellular} instance, allowing for method chaining */ public TerminalConnectivityCellular status(StatusEnum status) { @@ -168,8 +184,11 @@ public TerminalConnectivityCellular status(StatusEnum status) { } /** - * On a terminal that supports 3G or 4G connectivity, indicates the status of the primary SIM card in the terminal. - * @return status On a terminal that supports 3G or 4G connectivity, indicates the status of the primary SIM card in the terminal. + * On a terminal that supports 3G or 4G connectivity, indicates the status of the primary SIM card + * in the terminal. + * + * @return status On a terminal that supports 3G or 4G connectivity, indicates the status of the + * primary SIM card in the terminal. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,9 +197,11 @@ public StatusEnum getStatus() { } /** - * On a terminal that supports 3G or 4G connectivity, indicates the status of the primary SIM card in the terminal. + * On a terminal that supports 3G or 4G connectivity, indicates the status of the primary SIM card + * in the terminal. * - * @param status On a terminal that supports 3G or 4G connectivity, indicates the status of the primary SIM card in the terminal. + * @param status On a terminal that supports 3G or 4G connectivity, indicates the status of the + * primary SIM card in the terminal. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,9 +209,7 @@ public void setStatus(StatusEnum status) { this.status = status; } - /** - * Return true if this TerminalConnectivityCellular object is equal to o. - */ + /** Return true if this TerminalConnectivityCellular object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -200,9 +219,9 @@ public boolean equals(Object o) { return false; } TerminalConnectivityCellular terminalConnectivityCellular = (TerminalConnectivityCellular) o; - return Objects.equals(this.iccid, terminalConnectivityCellular.iccid) && - Objects.equals(this.iccid2, terminalConnectivityCellular.iccid2) && - Objects.equals(this.status, terminalConnectivityCellular.status); + return Objects.equals(this.iccid, terminalConnectivityCellular.iccid) + && Objects.equals(this.iccid2, terminalConnectivityCellular.iccid2) + && Objects.equals(this.status, terminalConnectivityCellular.status); } @Override @@ -222,8 +241,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -232,21 +250,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TerminalConnectivityCellular given an JSON string * * @param jsonString JSON string * @return An instance of TerminalConnectivityCellular - * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalConnectivityCellular + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TerminalConnectivityCellular */ - public static TerminalConnectivityCellular fromJson(String jsonString) throws JsonProcessingException { + public static TerminalConnectivityCellular fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalConnectivityCellular.class); } -/** - * Convert an instance of TerminalConnectivityCellular to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TerminalConnectivityCellular to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalConnectivityEthernet.java b/src/main/java/com/adyen/model/management/TerminalConnectivityEthernet.java index d583acc26..7b992b666 100644 --- a/src/main/java/com/adyen/model/management/TerminalConnectivityEthernet.java +++ b/src/main/java/com/adyen/model/management/TerminalConnectivityEthernet.java @@ -2,37 +2,27 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TerminalConnectivityEthernet - */ +/** TerminalConnectivityEthernet */ @JsonPropertyOrder({ TerminalConnectivityEthernet.JSON_PROPERTY_IP_ADDRESS, TerminalConnectivityEthernet.JSON_PROPERTY_LINK_NEGOTIATION, TerminalConnectivityEthernet.JSON_PROPERTY_MAC_ADDRESS }) - public class TerminalConnectivityEthernet { public static final String JSON_PROPERTY_IP_ADDRESS = "ipAddress"; private String ipAddress; @@ -43,8 +33,7 @@ public class TerminalConnectivityEthernet { public static final String JSON_PROPERTY_MAC_ADDRESS = "macAddress"; private String macAddress; - public TerminalConnectivityEthernet() { - } + public TerminalConnectivityEthernet() {} /** * The terminal's ethernet IP address. @@ -59,6 +48,7 @@ public TerminalConnectivityEthernet ipAddress(String ipAddress) { /** * The terminal's ethernet IP address. + * * @return ipAddress The terminal's ethernet IP address. */ @JsonProperty(JSON_PROPERTY_IP_ADDRESS) @@ -91,6 +81,7 @@ public TerminalConnectivityEthernet linkNegotiation(String linkNegotiation) { /** * The ethernet link negotiation that the terminal uses. + * * @return linkNegotiation The ethernet link negotiation that the terminal uses. */ @JsonProperty(JSON_PROPERTY_LINK_NEGOTIATION) @@ -123,6 +114,7 @@ public TerminalConnectivityEthernet macAddress(String macAddress) { /** * The terminal's ethernet MAC address. + * * @return macAddress The terminal's ethernet MAC address. */ @JsonProperty(JSON_PROPERTY_MAC_ADDRESS) @@ -142,9 +134,7 @@ public void setMacAddress(String macAddress) { this.macAddress = macAddress; } - /** - * Return true if this TerminalConnectivityEthernet object is equal to o. - */ + /** Return true if this TerminalConnectivityEthernet object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +144,9 @@ public boolean equals(Object o) { return false; } TerminalConnectivityEthernet terminalConnectivityEthernet = (TerminalConnectivityEthernet) o; - return Objects.equals(this.ipAddress, terminalConnectivityEthernet.ipAddress) && - Objects.equals(this.linkNegotiation, terminalConnectivityEthernet.linkNegotiation) && - Objects.equals(this.macAddress, terminalConnectivityEthernet.macAddress); + return Objects.equals(this.ipAddress, terminalConnectivityEthernet.ipAddress) + && Objects.equals(this.linkNegotiation, terminalConnectivityEthernet.linkNegotiation) + && Objects.equals(this.macAddress, terminalConnectivityEthernet.macAddress); } @Override @@ -176,8 +166,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +175,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TerminalConnectivityEthernet given an JSON string * * @param jsonString JSON string * @return An instance of TerminalConnectivityEthernet - * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalConnectivityEthernet + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TerminalConnectivityEthernet */ - public static TerminalConnectivityEthernet fromJson(String jsonString) throws JsonProcessingException { + public static TerminalConnectivityEthernet fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalConnectivityEthernet.class); } -/** - * Convert an instance of TerminalConnectivityEthernet to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TerminalConnectivityEthernet to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalConnectivityWifi.java b/src/main/java/com/adyen/model/management/TerminalConnectivityWifi.java index c98813525..4280f9de1 100644 --- a/src/main/java/com/adyen/model/management/TerminalConnectivityWifi.java +++ b/src/main/java/com/adyen/model/management/TerminalConnectivityWifi.java @@ -2,37 +2,27 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TerminalConnectivityWifi - */ +/** TerminalConnectivityWifi */ @JsonPropertyOrder({ TerminalConnectivityWifi.JSON_PROPERTY_IP_ADDRESS, TerminalConnectivityWifi.JSON_PROPERTY_MAC_ADDRESS, TerminalConnectivityWifi.JSON_PROPERTY_SSID }) - public class TerminalConnectivityWifi { public static final String JSON_PROPERTY_IP_ADDRESS = "ipAddress"; private String ipAddress; @@ -43,8 +33,7 @@ public class TerminalConnectivityWifi { public static final String JSON_PROPERTY_SSID = "ssid"; private String ssid; - public TerminalConnectivityWifi() { - } + public TerminalConnectivityWifi() {} /** * The terminal's IP address in the Wi-Fi network. @@ -59,6 +48,7 @@ public TerminalConnectivityWifi ipAddress(String ipAddress) { /** * The terminal's IP address in the Wi-Fi network. + * * @return ipAddress The terminal's IP address in the Wi-Fi network. */ @JsonProperty(JSON_PROPERTY_IP_ADDRESS) @@ -91,6 +81,7 @@ public TerminalConnectivityWifi macAddress(String macAddress) { /** * The terminal's MAC address in the Wi-Fi network. + * * @return macAddress The terminal's MAC address in the Wi-Fi network. */ @JsonProperty(JSON_PROPERTY_MAC_ADDRESS) @@ -123,6 +114,7 @@ public TerminalConnectivityWifi ssid(String ssid) { /** * The SSID of the Wi-Fi network that the terminal is connected to. + * * @return ssid The SSID of the Wi-Fi network that the terminal is connected to. */ @JsonProperty(JSON_PROPERTY_SSID) @@ -142,9 +134,7 @@ public void setSsid(String ssid) { this.ssid = ssid; } - /** - * Return true if this TerminalConnectivityWifi object is equal to o. - */ + /** Return true if this TerminalConnectivityWifi object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +144,9 @@ public boolean equals(Object o) { return false; } TerminalConnectivityWifi terminalConnectivityWifi = (TerminalConnectivityWifi) o; - return Objects.equals(this.ipAddress, terminalConnectivityWifi.ipAddress) && - Objects.equals(this.macAddress, terminalConnectivityWifi.macAddress) && - Objects.equals(this.ssid, terminalConnectivityWifi.ssid); + return Objects.equals(this.ipAddress, terminalConnectivityWifi.ipAddress) + && Objects.equals(this.macAddress, terminalConnectivityWifi.macAddress) + && Objects.equals(this.ssid, terminalConnectivityWifi.ssid); } @Override @@ -176,8 +166,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +175,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TerminalConnectivityWifi given an JSON string * * @param jsonString JSON string * @return An instance of TerminalConnectivityWifi - * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalConnectivityWifi + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TerminalConnectivityWifi */ - public static TerminalConnectivityWifi fromJson(String jsonString) throws JsonProcessingException { + public static TerminalConnectivityWifi fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalConnectivityWifi.class); } -/** - * Convert an instance of TerminalConnectivityWifi to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TerminalConnectivityWifi to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalInstructions.java b/src/main/java/com/adyen/model/management/TerminalInstructions.java index 1af383062..6c9a4f5b5 100644 --- a/src/main/java/com/adyen/model/management/TerminalInstructions.java +++ b/src/main/java/com/adyen/model/management/TerminalInstructions.java @@ -2,46 +2,35 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TerminalInstructions - */ -@JsonPropertyOrder({ - TerminalInstructions.JSON_PROPERTY_ADYEN_APP_RESTART -}) - +/** TerminalInstructions */ +@JsonPropertyOrder({TerminalInstructions.JSON_PROPERTY_ADYEN_APP_RESTART}) public class TerminalInstructions { public static final String JSON_PROPERTY_ADYEN_APP_RESTART = "adyenAppRestart"; private Boolean adyenAppRestart; - public TerminalInstructions() { - } + public TerminalInstructions() {} /** - * Indicates whether the Adyen app on the payment terminal restarts automatically when the configuration is updated. + * Indicates whether the Adyen app on the payment terminal restarts automatically when the + * configuration is updated. * - * @param adyenAppRestart Indicates whether the Adyen app on the payment terminal restarts automatically when the configuration is updated. + * @param adyenAppRestart Indicates whether the Adyen app on the payment terminal restarts + * automatically when the configuration is updated. * @return the current {@code TerminalInstructions} instance, allowing for method chaining */ public TerminalInstructions adyenAppRestart(Boolean adyenAppRestart) { @@ -50,8 +39,11 @@ public TerminalInstructions adyenAppRestart(Boolean adyenAppRestart) { } /** - * Indicates whether the Adyen app on the payment terminal restarts automatically when the configuration is updated. - * @return adyenAppRestart Indicates whether the Adyen app on the payment terminal restarts automatically when the configuration is updated. + * Indicates whether the Adyen app on the payment terminal restarts automatically when the + * configuration is updated. + * + * @return adyenAppRestart Indicates whether the Adyen app on the payment terminal restarts + * automatically when the configuration is updated. */ @JsonProperty(JSON_PROPERTY_ADYEN_APP_RESTART) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,9 +52,11 @@ public Boolean getAdyenAppRestart() { } /** - * Indicates whether the Adyen app on the payment terminal restarts automatically when the configuration is updated. + * Indicates whether the Adyen app on the payment terminal restarts automatically when the + * configuration is updated. * - * @param adyenAppRestart Indicates whether the Adyen app on the payment terminal restarts automatically when the configuration is updated. + * @param adyenAppRestart Indicates whether the Adyen app on the payment terminal restarts + * automatically when the configuration is updated. */ @JsonProperty(JSON_PROPERTY_ADYEN_APP_RESTART) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +64,7 @@ public void setAdyenAppRestart(Boolean adyenAppRestart) { this.adyenAppRestart = adyenAppRestart; } - /** - * Return true if this TerminalInstructions object is equal to o. - */ + /** Return true if this TerminalInstructions object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +92,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +101,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TerminalInstructions given an JSON string * * @param jsonString JSON string * @return An instance of TerminalInstructions - * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalInstructions + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TerminalInstructions */ public static TerminalInstructions fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalInstructions.class); } -/** - * Convert an instance of TerminalInstructions to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TerminalInstructions to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalModelsResponse.java b/src/main/java/com/adyen/model/management/TerminalModelsResponse.java index 0e5c986c8..d6dd4f2cf 100644 --- a/src/main/java/com/adyen/model/management/TerminalModelsResponse.java +++ b/src/main/java/com/adyen/model/management/TerminalModelsResponse.java @@ -2,44 +2,30 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.IdName; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * TerminalModelsResponse - */ -@JsonPropertyOrder({ - TerminalModelsResponse.JSON_PROPERTY_DATA -}) - +/** TerminalModelsResponse */ +@JsonPropertyOrder({TerminalModelsResponse.JSON_PROPERTY_DATA}) public class TerminalModelsResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; - public TerminalModelsResponse() { - } + public TerminalModelsResponse() {} /** * The terminal models that the API credential has access to. @@ -62,6 +48,7 @@ public TerminalModelsResponse addDataItem(IdName dataItem) { /** * The terminal models that the API credential has access to. + * * @return data The terminal models that the API credential has access to. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -81,9 +68,7 @@ public void setData(List data) { this.data = data; } - /** - * Return true if this TerminalModelsResponse object is equal to o. - */ + /** Return true if this TerminalModelsResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -111,8 +96,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -121,21 +105,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TerminalModelsResponse given an JSON string * * @param jsonString JSON string * @return An instance of TerminalModelsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalModelsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TerminalModelsResponse */ public static TerminalModelsResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalModelsResponse.class); } -/** - * Convert an instance of TerminalModelsResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TerminalModelsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalOrder.java b/src/main/java/com/adyen/model/management/TerminalOrder.java index 3c11fe8c6..1e71b81e7 100644 --- a/src/main/java/com/adyen/model/management/TerminalOrder.java +++ b/src/main/java/com/adyen/model/management/TerminalOrder.java @@ -2,36 +2,24 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.BillingEntity; -import com.adyen.model.management.OrderItem; -import com.adyen.model.management.ShippingLocation; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * TerminalOrder - */ +/** TerminalOrder */ @JsonPropertyOrder({ TerminalOrder.JSON_PROPERTY_BILLING_ENTITY, TerminalOrder.JSON_PROPERTY_CUSTOMER_ORDER_REFERENCE, @@ -42,7 +30,6 @@ TerminalOrder.JSON_PROPERTY_STATUS, TerminalOrder.JSON_PROPERTY_TRACKING_URL }) - public class TerminalOrder { public static final String JSON_PROPERTY_BILLING_ENTITY = "billingEntity"; private BillingEntity billingEntity; @@ -68,13 +55,12 @@ public class TerminalOrder { public static final String JSON_PROPERTY_TRACKING_URL = "trackingUrl"; private String trackingUrl; - public TerminalOrder() { - } + public TerminalOrder() {} /** * billingEntity * - * @param billingEntity + * @param billingEntity * @return the current {@code TerminalOrder} instance, allowing for method chaining */ public TerminalOrder billingEntity(BillingEntity billingEntity) { @@ -84,7 +70,8 @@ public TerminalOrder billingEntity(BillingEntity billingEntity) { /** * Get billingEntity - * @return billingEntity + * + * @return billingEntity */ @JsonProperty(JSON_PROPERTY_BILLING_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -95,7 +82,7 @@ public BillingEntity getBillingEntity() { /** * billingEntity * - * @param billingEntity + * @param billingEntity */ @JsonProperty(JSON_PROPERTY_BILLING_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,7 +93,8 @@ public void setBillingEntity(BillingEntity billingEntity) { /** * The merchant-defined purchase order number. This will be printed on the packing list. * - * @param customerOrderReference The merchant-defined purchase order number. This will be printed on the packing list. + * @param customerOrderReference The merchant-defined purchase order number. This will be printed + * on the packing list. * @return the current {@code TerminalOrder} instance, allowing for method chaining */ public TerminalOrder customerOrderReference(String customerOrderReference) { @@ -116,7 +104,9 @@ public TerminalOrder customerOrderReference(String customerOrderReference) { /** * The merchant-defined purchase order number. This will be printed on the packing list. - * @return customerOrderReference The merchant-defined purchase order number. This will be printed on the packing list. + * + * @return customerOrderReference The merchant-defined purchase order number. This will be printed + * on the packing list. */ @JsonProperty(JSON_PROPERTY_CUSTOMER_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,7 +117,8 @@ public String getCustomerOrderReference() { /** * The merchant-defined purchase order number. This will be printed on the packing list. * - * @param customerOrderReference The merchant-defined purchase order number. This will be printed on the packing list. + * @param customerOrderReference The merchant-defined purchase order number. This will be printed + * on the packing list. */ @JsonProperty(JSON_PROPERTY_CUSTOMER_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,6 +139,7 @@ public TerminalOrder id(String id) { /** * The unique identifier of the order. + * * @return id The unique identifier of the order. */ @JsonProperty(JSON_PROPERTY_ID) @@ -188,6 +180,7 @@ public TerminalOrder addItemsItem(OrderItem itemsItem) { /** * The products included in the order. + * * @return items The products included in the order. */ @JsonProperty(JSON_PROPERTY_ITEMS) @@ -208,9 +201,11 @@ public void setItems(List items) { } /** - * The date and time that the order was placed, in UTC ISO 8601 format. For example, \"2011-12-03T10:15:30Z\". + * The date and time that the order was placed, in UTC ISO 8601 format. For example, + * \"2011-12-03T10:15:30Z\". * - * @param orderDate The date and time that the order was placed, in UTC ISO 8601 format. For example, \"2011-12-03T10:15:30Z\". + * @param orderDate The date and time that the order was placed, in UTC ISO 8601 format. For + * example, \"2011-12-03T10:15:30Z\". * @return the current {@code TerminalOrder} instance, allowing for method chaining */ public TerminalOrder orderDate(String orderDate) { @@ -219,8 +214,11 @@ public TerminalOrder orderDate(String orderDate) { } /** - * The date and time that the order was placed, in UTC ISO 8601 format. For example, \"2011-12-03T10:15:30Z\". - * @return orderDate The date and time that the order was placed, in UTC ISO 8601 format. For example, \"2011-12-03T10:15:30Z\". + * The date and time that the order was placed, in UTC ISO 8601 format. For example, + * \"2011-12-03T10:15:30Z\". + * + * @return orderDate The date and time that the order was placed, in UTC ISO 8601 format. For + * example, \"2011-12-03T10:15:30Z\". */ @JsonProperty(JSON_PROPERTY_ORDER_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -229,9 +227,11 @@ public String getOrderDate() { } /** - * The date and time that the order was placed, in UTC ISO 8601 format. For example, \"2011-12-03T10:15:30Z\". + * The date and time that the order was placed, in UTC ISO 8601 format. For example, + * \"2011-12-03T10:15:30Z\". * - * @param orderDate The date and time that the order was placed, in UTC ISO 8601 format. For example, \"2011-12-03T10:15:30Z\". + * @param orderDate The date and time that the order was placed, in UTC ISO 8601 format. For + * example, \"2011-12-03T10:15:30Z\". */ @JsonProperty(JSON_PROPERTY_ORDER_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,7 +242,7 @@ public void setOrderDate(String orderDate) { /** * shippingLocation * - * @param shippingLocation + * @param shippingLocation * @return the current {@code TerminalOrder} instance, allowing for method chaining */ public TerminalOrder shippingLocation(ShippingLocation shippingLocation) { @@ -252,7 +252,8 @@ public TerminalOrder shippingLocation(ShippingLocation shippingLocation) { /** * Get shippingLocation - * @return shippingLocation + * + * @return shippingLocation */ @JsonProperty(JSON_PROPERTY_SHIPPING_LOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -263,7 +264,7 @@ public ShippingLocation getShippingLocation() { /** * shippingLocation * - * @param shippingLocation + * @param shippingLocation */ @JsonProperty(JSON_PROPERTY_SHIPPING_LOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,6 +285,7 @@ public TerminalOrder status(String status) { /** * The processing status of the order. + * * @return status The processing status of the order. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -316,7 +318,9 @@ public TerminalOrder trackingUrl(String trackingUrl) { /** * The URL, provided by the carrier company, where the shipment can be tracked. - * @return trackingUrl The URL, provided by the carrier company, where the shipment can be tracked. + * + * @return trackingUrl The URL, provided by the carrier company, where the shipment can be + * tracked. */ @JsonProperty(JSON_PROPERTY_TRACKING_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -335,9 +339,7 @@ public void setTrackingUrl(String trackingUrl) { this.trackingUrl = trackingUrl; } - /** - * Return true if this TerminalOrder object is equal to o. - */ + /** Return true if this TerminalOrder object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -347,19 +349,27 @@ public boolean equals(Object o) { return false; } TerminalOrder terminalOrder = (TerminalOrder) o; - return Objects.equals(this.billingEntity, terminalOrder.billingEntity) && - Objects.equals(this.customerOrderReference, terminalOrder.customerOrderReference) && - Objects.equals(this.id, terminalOrder.id) && - Objects.equals(this.items, terminalOrder.items) && - Objects.equals(this.orderDate, terminalOrder.orderDate) && - Objects.equals(this.shippingLocation, terminalOrder.shippingLocation) && - Objects.equals(this.status, terminalOrder.status) && - Objects.equals(this.trackingUrl, terminalOrder.trackingUrl); + return Objects.equals(this.billingEntity, terminalOrder.billingEntity) + && Objects.equals(this.customerOrderReference, terminalOrder.customerOrderReference) + && Objects.equals(this.id, terminalOrder.id) + && Objects.equals(this.items, terminalOrder.items) + && Objects.equals(this.orderDate, terminalOrder.orderDate) + && Objects.equals(this.shippingLocation, terminalOrder.shippingLocation) + && Objects.equals(this.status, terminalOrder.status) + && Objects.equals(this.trackingUrl, terminalOrder.trackingUrl); } @Override public int hashCode() { - return Objects.hash(billingEntity, customerOrderReference, id, items, orderDate, shippingLocation, status, trackingUrl); + return Objects.hash( + billingEntity, + customerOrderReference, + id, + items, + orderDate, + shippingLocation, + status, + trackingUrl); } @Override @@ -367,7 +377,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TerminalOrder {\n"); sb.append(" billingEntity: ").append(toIndentedString(billingEntity)).append("\n"); - sb.append(" customerOrderReference: ").append(toIndentedString(customerOrderReference)).append("\n"); + sb.append(" customerOrderReference: ") + .append(toIndentedString(customerOrderReference)) + .append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" orderDate: ").append(toIndentedString(orderDate)).append("\n"); @@ -379,8 +391,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -389,7 +400,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TerminalOrder given an JSON string * * @param jsonString JSON string @@ -399,11 +410,12 @@ private String toIndentedString(Object o) { public static TerminalOrder fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalOrder.class); } -/** - * Convert an instance of TerminalOrder to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TerminalOrder to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalOrderRequest.java b/src/main/java/com/adyen/model/management/TerminalOrderRequest.java index b25ac9219..71387384b 100644 --- a/src/main/java/com/adyen/model/management/TerminalOrderRequest.java +++ b/src/main/java/com/adyen/model/management/TerminalOrderRequest.java @@ -2,34 +2,24 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.OrderItem; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * TerminalOrderRequest - */ +/** TerminalOrderRequest */ @JsonPropertyOrder({ TerminalOrderRequest.JSON_PROPERTY_BILLING_ENTITY_ID, TerminalOrderRequest.JSON_PROPERTY_CUSTOMER_ORDER_REFERENCE, @@ -38,7 +28,6 @@ TerminalOrderRequest.JSON_PROPERTY_SHIPPING_LOCATION_ID, TerminalOrderRequest.JSON_PROPERTY_TAX_ID }) - public class TerminalOrderRequest { public static final String JSON_PROPERTY_BILLING_ENTITY_ID = "billingEntityId"; private String billingEntityId; @@ -58,13 +47,15 @@ public class TerminalOrderRequest { public static final String JSON_PROPERTY_TAX_ID = "taxId"; private String taxId; - public TerminalOrderRequest() { - } + public TerminalOrderRequest() {} /** - * The identification of the billing entity to use for the order. > When ordering products in Brazil, you do not need to include the `billingEntityId` in the request. + * The identification of the billing entity to use for the order. > When ordering products in + * Brazil, you do not need to include the `billingEntityId` in the request. * - * @param billingEntityId The identification of the billing entity to use for the order. > When ordering products in Brazil, you do not need to include the `billingEntityId` in the request. + * @param billingEntityId The identification of the billing entity to use for the order. > When + * ordering products in Brazil, you do not need to include the `billingEntityId` in + * the request. * @return the current {@code TerminalOrderRequest} instance, allowing for method chaining */ public TerminalOrderRequest billingEntityId(String billingEntityId) { @@ -73,8 +64,12 @@ public TerminalOrderRequest billingEntityId(String billingEntityId) { } /** - * The identification of the billing entity to use for the order. > When ordering products in Brazil, you do not need to include the `billingEntityId` in the request. - * @return billingEntityId The identification of the billing entity to use for the order. > When ordering products in Brazil, you do not need to include the `billingEntityId` in the request. + * The identification of the billing entity to use for the order. > When ordering products in + * Brazil, you do not need to include the `billingEntityId` in the request. + * + * @return billingEntityId The identification of the billing entity to use for the order. > + * When ordering products in Brazil, you do not need to include the + * `billingEntityId` in the request. */ @JsonProperty(JSON_PROPERTY_BILLING_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,9 +78,12 @@ public String getBillingEntityId() { } /** - * The identification of the billing entity to use for the order. > When ordering products in Brazil, you do not need to include the `billingEntityId` in the request. + * The identification of the billing entity to use for the order. > When ordering products in + * Brazil, you do not need to include the `billingEntityId` in the request. * - * @param billingEntityId The identification of the billing entity to use for the order. > When ordering products in Brazil, you do not need to include the `billingEntityId` in the request. + * @param billingEntityId The identification of the billing entity to use for the order. > When + * ordering products in Brazil, you do not need to include the `billingEntityId` in + * the request. */ @JsonProperty(JSON_PROPERTY_BILLING_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,6 +104,7 @@ public TerminalOrderRequest customerOrderReference(String customerOrderReference /** * The merchant-defined purchase order reference. + * * @return customerOrderReference The merchant-defined purchase order reference. */ @JsonProperty(JSON_PROPERTY_CUSTOMER_ORDER_REFERENCE) @@ -146,6 +145,7 @@ public TerminalOrderRequest addItemsItem(OrderItem itemsItem) { /** * The products included in the order. + * * @return items The products included in the order. */ @JsonProperty(JSON_PROPERTY_ITEMS) @@ -178,6 +178,7 @@ public TerminalOrderRequest orderType(String orderType) { /** * Type of order + * * @return orderType Type of order */ @JsonProperty(JSON_PROPERTY_ORDER_TYPE) @@ -210,6 +211,7 @@ public TerminalOrderRequest shippingLocationId(String shippingLocationId) { /** * The identification of the shipping location to use for the order. + * * @return shippingLocationId The identification of the shipping location to use for the order. */ @JsonProperty(JSON_PROPERTY_SHIPPING_LOCATION_ID) @@ -242,6 +244,7 @@ public TerminalOrderRequest taxId(String taxId) { /** * The tax number of the billing entity. + * * @return taxId The tax number of the billing entity. */ @JsonProperty(JSON_PROPERTY_TAX_ID) @@ -261,9 +264,7 @@ public void setTaxId(String taxId) { this.taxId = taxId; } - /** - * Return true if this TerminalOrderRequest object is equal to o. - */ + /** Return true if this TerminalOrderRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -273,17 +274,18 @@ public boolean equals(Object o) { return false; } TerminalOrderRequest terminalOrderRequest = (TerminalOrderRequest) o; - return Objects.equals(this.billingEntityId, terminalOrderRequest.billingEntityId) && - Objects.equals(this.customerOrderReference, terminalOrderRequest.customerOrderReference) && - Objects.equals(this.items, terminalOrderRequest.items) && - Objects.equals(this.orderType, terminalOrderRequest.orderType) && - Objects.equals(this.shippingLocationId, terminalOrderRequest.shippingLocationId) && - Objects.equals(this.taxId, terminalOrderRequest.taxId); + return Objects.equals(this.billingEntityId, terminalOrderRequest.billingEntityId) + && Objects.equals(this.customerOrderReference, terminalOrderRequest.customerOrderReference) + && Objects.equals(this.items, terminalOrderRequest.items) + && Objects.equals(this.orderType, terminalOrderRequest.orderType) + && Objects.equals(this.shippingLocationId, terminalOrderRequest.shippingLocationId) + && Objects.equals(this.taxId, terminalOrderRequest.taxId); } @Override public int hashCode() { - return Objects.hash(billingEntityId, customerOrderReference, items, orderType, shippingLocationId, taxId); + return Objects.hash( + billingEntityId, customerOrderReference, items, orderType, shippingLocationId, taxId); } @Override @@ -291,7 +293,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TerminalOrderRequest {\n"); sb.append(" billingEntityId: ").append(toIndentedString(billingEntityId)).append("\n"); - sb.append(" customerOrderReference: ").append(toIndentedString(customerOrderReference)).append("\n"); + sb.append(" customerOrderReference: ") + .append(toIndentedString(customerOrderReference)) + .append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" orderType: ").append(toIndentedString(orderType)).append("\n"); sb.append(" shippingLocationId: ").append(toIndentedString(shippingLocationId)).append("\n"); @@ -301,8 +305,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -311,21 +314,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TerminalOrderRequest given an JSON string * * @param jsonString JSON string * @return An instance of TerminalOrderRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalOrderRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TerminalOrderRequest */ public static TerminalOrderRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalOrderRequest.class); } -/** - * Convert an instance of TerminalOrderRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TerminalOrderRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalOrdersResponse.java b/src/main/java/com/adyen/model/management/TerminalOrdersResponse.java index 7f348ad83..18691726b 100644 --- a/src/main/java/com/adyen/model/management/TerminalOrdersResponse.java +++ b/src/main/java/com/adyen/model/management/TerminalOrdersResponse.java @@ -2,44 +2,30 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.TerminalOrder; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * TerminalOrdersResponse - */ -@JsonPropertyOrder({ - TerminalOrdersResponse.JSON_PROPERTY_DATA -}) - +/** TerminalOrdersResponse */ +@JsonPropertyOrder({TerminalOrdersResponse.JSON_PROPERTY_DATA}) public class TerminalOrdersResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; - public TerminalOrdersResponse() { - } + public TerminalOrdersResponse() {} /** * List of orders for payment terminal packages and parts. @@ -62,6 +48,7 @@ public TerminalOrdersResponse addDataItem(TerminalOrder dataItem) { /** * List of orders for payment terminal packages and parts. + * * @return data List of orders for payment terminal packages and parts. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -81,9 +68,7 @@ public void setData(List data) { this.data = data; } - /** - * Return true if this TerminalOrdersResponse object is equal to o. - */ + /** Return true if this TerminalOrdersResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -111,8 +96,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -121,21 +105,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TerminalOrdersResponse given an JSON string * * @param jsonString JSON string * @return An instance of TerminalOrdersResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalOrdersResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TerminalOrdersResponse */ public static TerminalOrdersResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalOrdersResponse.class); } -/** - * Convert an instance of TerminalOrdersResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TerminalOrdersResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalProduct.java b/src/main/java/com/adyen/model/management/TerminalProduct.java index 0b9e613aa..b8d2142b8 100644 --- a/src/main/java/com/adyen/model/management/TerminalProduct.java +++ b/src/main/java/com/adyen/model/management/TerminalProduct.java @@ -2,34 +2,24 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.TerminalProductPrice; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * TerminalProduct - */ +/** TerminalProduct */ @JsonPropertyOrder({ TerminalProduct.JSON_PROPERTY_DESCRIPTION, TerminalProduct.JSON_PROPERTY_ID, @@ -37,7 +27,6 @@ TerminalProduct.JSON_PROPERTY_NAME, TerminalProduct.JSON_PROPERTY_PRICE }) - public class TerminalProduct { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -54,8 +43,7 @@ public class TerminalProduct { public static final String JSON_PROPERTY_PRICE = "price"; private TerminalProductPrice price; - public TerminalProduct() { - } + public TerminalProduct() {} /** * Information about items included and integration options. @@ -70,6 +58,7 @@ public TerminalProduct description(String description) { /** * Information about items included and integration options. + * * @return description Information about items included and integration options. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -102,6 +91,7 @@ public TerminalProduct id(String id) { /** * The unique identifier of the product. + * * @return id The unique identifier of the product. */ @JsonProperty(JSON_PROPERTY_ID) @@ -142,6 +132,7 @@ public TerminalProduct addItemsIncludedItem(String itemsIncludedItem) { /** * A list of parts included in the terminal package. + * * @return itemsIncluded A list of parts included in the terminal package. */ @JsonProperty(JSON_PROPERTY_ITEMS_INCLUDED) @@ -174,6 +165,7 @@ public TerminalProduct name(String name) { /** * The descriptive name of the product. + * * @return name The descriptive name of the product. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -196,7 +188,7 @@ public void setName(String name) { /** * price * - * @param price + * @param price * @return the current {@code TerminalProduct} instance, allowing for method chaining */ public TerminalProduct price(TerminalProductPrice price) { @@ -206,7 +198,8 @@ public TerminalProduct price(TerminalProductPrice price) { /** * Get price - * @return price + * + * @return price */ @JsonProperty(JSON_PROPERTY_PRICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -217,7 +210,7 @@ public TerminalProductPrice getPrice() { /** * price * - * @param price + * @param price */ @JsonProperty(JSON_PROPERTY_PRICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -225,9 +218,7 @@ public void setPrice(TerminalProductPrice price) { this.price = price; } - /** - * Return true if this TerminalProduct object is equal to o. - */ + /** Return true if this TerminalProduct object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -237,11 +228,11 @@ public boolean equals(Object o) { return false; } TerminalProduct terminalProduct = (TerminalProduct) o; - return Objects.equals(this.description, terminalProduct.description) && - Objects.equals(this.id, terminalProduct.id) && - Objects.equals(this.itemsIncluded, terminalProduct.itemsIncluded) && - Objects.equals(this.name, terminalProduct.name) && - Objects.equals(this.price, terminalProduct.price); + return Objects.equals(this.description, terminalProduct.description) + && Objects.equals(this.id, terminalProduct.id) + && Objects.equals(this.itemsIncluded, terminalProduct.itemsIncluded) + && Objects.equals(this.name, terminalProduct.name) + && Objects.equals(this.price, terminalProduct.price); } @Override @@ -263,8 +254,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -273,7 +263,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TerminalProduct given an JSON string * * @param jsonString JSON string @@ -283,11 +273,12 @@ private String toIndentedString(Object o) { public static TerminalProduct fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalProduct.class); } -/** - * Convert an instance of TerminalProduct to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TerminalProduct to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalProductPrice.java b/src/main/java/com/adyen/model/management/TerminalProductPrice.java index 4c20c8212..5f57d50d7 100644 --- a/src/main/java/com/adyen/model/management/TerminalProductPrice.java +++ b/src/main/java/com/adyen/model/management/TerminalProductPrice.java @@ -2,36 +2,26 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TerminalProductPrice - */ +/** TerminalProductPrice */ @JsonPropertyOrder({ TerminalProductPrice.JSON_PROPERTY_CURRENCY, TerminalProductPrice.JSON_PROPERTY_VALUE }) - public class TerminalProductPrice { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -39,13 +29,14 @@ public class TerminalProductPrice { public static final String JSON_PROPERTY_VALUE = "value"; private Double value; - public TerminalProductPrice() { - } + public TerminalProductPrice() {} /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code TerminalProductPrice} instance, allowing for method chaining */ public TerminalProductPrice currency(String currency) { @@ -54,8 +45,11 @@ public TerminalProductPrice currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +58,11 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,6 +83,7 @@ public TerminalProductPrice value(Double value) { /** * The price of the item. + * * @return value The price of the item. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -106,9 +103,7 @@ public void setValue(Double value) { this.value = value; } - /** - * Return true if this TerminalProductPrice object is equal to o. - */ + /** Return true if this TerminalProductPrice object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +113,8 @@ public boolean equals(Object o) { return false; } TerminalProductPrice terminalProductPrice = (TerminalProductPrice) o; - return Objects.equals(this.currency, terminalProductPrice.currency) && - Objects.equals(this.value, terminalProductPrice.value); + return Objects.equals(this.currency, terminalProductPrice.currency) + && Objects.equals(this.value, terminalProductPrice.value); } @Override @@ -138,8 +133,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +142,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TerminalProductPrice given an JSON string * * @param jsonString JSON string * @return An instance of TerminalProductPrice - * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalProductPrice + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TerminalProductPrice */ public static TerminalProductPrice fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalProductPrice.class); } -/** - * Convert an instance of TerminalProductPrice to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TerminalProductPrice to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalProductsResponse.java b/src/main/java/com/adyen/model/management/TerminalProductsResponse.java index 20f50bc7f..75e4fcfa8 100644 --- a/src/main/java/com/adyen/model/management/TerminalProductsResponse.java +++ b/src/main/java/com/adyen/model/management/TerminalProductsResponse.java @@ -2,44 +2,30 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.TerminalProduct; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * TerminalProductsResponse - */ -@JsonPropertyOrder({ - TerminalProductsResponse.JSON_PROPERTY_DATA -}) - +/** TerminalProductsResponse */ +@JsonPropertyOrder({TerminalProductsResponse.JSON_PROPERTY_DATA}) public class TerminalProductsResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; - public TerminalProductsResponse() { - } + public TerminalProductsResponse() {} /** * Terminal products that can be ordered. @@ -62,6 +48,7 @@ public TerminalProductsResponse addDataItem(TerminalProduct dataItem) { /** * Terminal products that can be ordered. + * * @return data Terminal products that can be ordered. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -81,9 +68,7 @@ public void setData(List data) { this.data = data; } - /** - * Return true if this TerminalProductsResponse object is equal to o. - */ + /** Return true if this TerminalProductsResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -111,8 +96,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -121,21 +105,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TerminalProductsResponse given an JSON string * * @param jsonString JSON string * @return An instance of TerminalProductsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalProductsResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TerminalProductsResponse */ - public static TerminalProductsResponse fromJson(String jsonString) throws JsonProcessingException { + public static TerminalProductsResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalProductsResponse.class); } -/** - * Convert an instance of TerminalProductsResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TerminalProductsResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalReassignmentRequest.java b/src/main/java/com/adyen/model/management/TerminalReassignmentRequest.java index e8f239fe5..24a986b00 100644 --- a/src/main/java/com/adyen/model/management/TerminalReassignmentRequest.java +++ b/src/main/java/com/adyen/model/management/TerminalReassignmentRequest.java @@ -2,38 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TerminalReassignmentRequest - */ +/** TerminalReassignmentRequest */ @JsonPropertyOrder({ TerminalReassignmentRequest.JSON_PROPERTY_COMPANY_ID, TerminalReassignmentRequest.JSON_PROPERTY_INVENTORY, TerminalReassignmentRequest.JSON_PROPERTY_MERCHANT_ID, TerminalReassignmentRequest.JSON_PROPERTY_STORE_ID }) - public class TerminalReassignmentRequest { public static final String JSON_PROPERTY_COMPANY_ID = "companyId"; private String companyId; @@ -47,13 +37,13 @@ public class TerminalReassignmentRequest { public static final String JSON_PROPERTY_STORE_ID = "storeId"; private String storeId; - public TerminalReassignmentRequest() { - } + public TerminalReassignmentRequest() {} /** * The unique identifier of the company account to which the terminal is reassigned. * - * @param companyId The unique identifier of the company account to which the terminal is reassigned. + * @param companyId The unique identifier of the company account to which the terminal is + * reassigned. * @return the current {@code TerminalReassignmentRequest} instance, allowing for method chaining */ public TerminalReassignmentRequest companyId(String companyId) { @@ -63,7 +53,9 @@ public TerminalReassignmentRequest companyId(String companyId) { /** * The unique identifier of the company account to which the terminal is reassigned. - * @return companyId The unique identifier of the company account to which the terminal is reassigned. + * + * @return companyId The unique identifier of the company account to which the terminal is + * reassigned. */ @JsonProperty(JSON_PROPERTY_COMPANY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -74,7 +66,8 @@ public String getCompanyId() { /** * The unique identifier of the company account to which the terminal is reassigned. * - * @param companyId The unique identifier of the company account to which the terminal is reassigned. + * @param companyId The unique identifier of the company account to which the terminal is + * reassigned. */ @JsonProperty(JSON_PROPERTY_COMPANY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,9 +76,15 @@ public void setCompanyId(String companyId) { } /** - * Must be specified when reassigning terminals to a merchant account: - If set to **true**, reassigns terminals to the inventory of the merchant account and the terminals cannot process transactions. - If set to **false**, reassigns terminals directly to the merchant account and the terminals can process transactions. + * Must be specified when reassigning terminals to a merchant account: - If set to **true**, + * reassigns terminals to the inventory of the merchant account and the terminals cannot process + * transactions. - If set to **false**, reassigns terminals directly to the merchant account and + * the terminals can process transactions. * - * @param inventory Must be specified when reassigning terminals to a merchant account: - If set to **true**, reassigns terminals to the inventory of the merchant account and the terminals cannot process transactions. - If set to **false**, reassigns terminals directly to the merchant account and the terminals can process transactions. + * @param inventory Must be specified when reassigning terminals to a merchant account: - If set + * to **true**, reassigns terminals to the inventory of the merchant account and the terminals + * cannot process transactions. - If set to **false**, reassigns terminals directly to the + * merchant account and the terminals can process transactions. * @return the current {@code TerminalReassignmentRequest} instance, allowing for method chaining */ public TerminalReassignmentRequest inventory(Boolean inventory) { @@ -94,8 +93,15 @@ public TerminalReassignmentRequest inventory(Boolean inventory) { } /** - * Must be specified when reassigning terminals to a merchant account: - If set to **true**, reassigns terminals to the inventory of the merchant account and the terminals cannot process transactions. - If set to **false**, reassigns terminals directly to the merchant account and the terminals can process transactions. - * @return inventory Must be specified when reassigning terminals to a merchant account: - If set to **true**, reassigns terminals to the inventory of the merchant account and the terminals cannot process transactions. - If set to **false**, reassigns terminals directly to the merchant account and the terminals can process transactions. + * Must be specified when reassigning terminals to a merchant account: - If set to **true**, + * reassigns terminals to the inventory of the merchant account and the terminals cannot process + * transactions. - If set to **false**, reassigns terminals directly to the merchant account and + * the terminals can process transactions. + * + * @return inventory Must be specified when reassigning terminals to a merchant account: - If set + * to **true**, reassigns terminals to the inventory of the merchant account and the terminals + * cannot process transactions. - If set to **false**, reassigns terminals directly to the + * merchant account and the terminals can process transactions. */ @JsonProperty(JSON_PROPERTY_INVENTORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,9 +110,15 @@ public Boolean getInventory() { } /** - * Must be specified when reassigning terminals to a merchant account: - If set to **true**, reassigns terminals to the inventory of the merchant account and the terminals cannot process transactions. - If set to **false**, reassigns terminals directly to the merchant account and the terminals can process transactions. + * Must be specified when reassigning terminals to a merchant account: - If set to **true**, + * reassigns terminals to the inventory of the merchant account and the terminals cannot process + * transactions. - If set to **false**, reassigns terminals directly to the merchant account and + * the terminals can process transactions. * - * @param inventory Must be specified when reassigning terminals to a merchant account: - If set to **true**, reassigns terminals to the inventory of the merchant account and the terminals cannot process transactions. - If set to **false**, reassigns terminals directly to the merchant account and the terminals can process transactions. + * @param inventory Must be specified when reassigning terminals to a merchant account: - If set + * to **true**, reassigns terminals to the inventory of the merchant account and the terminals + * cannot process transactions. - If set to **false**, reassigns terminals directly to the + * merchant account and the terminals can process transactions. */ @JsonProperty(JSON_PROPERTY_INVENTORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,9 +127,12 @@ public void setInventory(Boolean inventory) { } /** - * The unique identifier of the merchant account to which the terminal is reassigned. When reassigning terminals to a merchant account, you must specify the `inventory` field. + * The unique identifier of the merchant account to which the terminal is reassigned. When + * reassigning terminals to a merchant account, you must specify the `inventory` field. * - * @param merchantId The unique identifier of the merchant account to which the terminal is reassigned. When reassigning terminals to a merchant account, you must specify the `inventory` field. + * @param merchantId The unique identifier of the merchant account to which the terminal is + * reassigned. When reassigning terminals to a merchant account, you must specify the + * `inventory` field. * @return the current {@code TerminalReassignmentRequest} instance, allowing for method chaining */ public TerminalReassignmentRequest merchantId(String merchantId) { @@ -126,8 +141,12 @@ public TerminalReassignmentRequest merchantId(String merchantId) { } /** - * The unique identifier of the merchant account to which the terminal is reassigned. When reassigning terminals to a merchant account, you must specify the `inventory` field. - * @return merchantId The unique identifier of the merchant account to which the terminal is reassigned. When reassigning terminals to a merchant account, you must specify the `inventory` field. + * The unique identifier of the merchant account to which the terminal is reassigned. When + * reassigning terminals to a merchant account, you must specify the `inventory` field. + * + * @return merchantId The unique identifier of the merchant account to which the terminal is + * reassigned. When reassigning terminals to a merchant account, you must specify the + * `inventory` field. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,9 +155,12 @@ public String getMerchantId() { } /** - * The unique identifier of the merchant account to which the terminal is reassigned. When reassigning terminals to a merchant account, you must specify the `inventory` field. + * The unique identifier of the merchant account to which the terminal is reassigned. When + * reassigning terminals to a merchant account, you must specify the `inventory` field. * - * @param merchantId The unique identifier of the merchant account to which the terminal is reassigned. When reassigning terminals to a merchant account, you must specify the `inventory` field. + * @param merchantId The unique identifier of the merchant account to which the terminal is + * reassigned. When reassigning terminals to a merchant account, you must specify the + * `inventory` field. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,6 +181,7 @@ public TerminalReassignmentRequest storeId(String storeId) { /** * The unique identifier of the store to which the terminal is reassigned. + * * @return storeId The unique identifier of the store to which the terminal is reassigned. */ @JsonProperty(JSON_PROPERTY_STORE_ID) @@ -178,9 +201,7 @@ public void setStoreId(String storeId) { this.storeId = storeId; } - /** - * Return true if this TerminalReassignmentRequest object is equal to o. - */ + /** Return true if this TerminalReassignmentRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -190,10 +211,10 @@ public boolean equals(Object o) { return false; } TerminalReassignmentRequest terminalReassignmentRequest = (TerminalReassignmentRequest) o; - return Objects.equals(this.companyId, terminalReassignmentRequest.companyId) && - Objects.equals(this.inventory, terminalReassignmentRequest.inventory) && - Objects.equals(this.merchantId, terminalReassignmentRequest.merchantId) && - Objects.equals(this.storeId, terminalReassignmentRequest.storeId); + return Objects.equals(this.companyId, terminalReassignmentRequest.companyId) + && Objects.equals(this.inventory, terminalReassignmentRequest.inventory) + && Objects.equals(this.merchantId, terminalReassignmentRequest.merchantId) + && Objects.equals(this.storeId, terminalReassignmentRequest.storeId); } @Override @@ -214,8 +235,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +244,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TerminalReassignmentRequest given an JSON string * * @param jsonString JSON string * @return An instance of TerminalReassignmentRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalReassignmentRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TerminalReassignmentRequest */ - public static TerminalReassignmentRequest fromJson(String jsonString) throws JsonProcessingException { + public static TerminalReassignmentRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalReassignmentRequest.class); } -/** - * Convert an instance of TerminalReassignmentRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TerminalReassignmentRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalReassignmentTarget.java b/src/main/java/com/adyen/model/management/TerminalReassignmentTarget.java index b16b9baf6..cc2f748c6 100644 --- a/src/main/java/com/adyen/model/management/TerminalReassignmentTarget.java +++ b/src/main/java/com/adyen/model/management/TerminalReassignmentTarget.java @@ -2,38 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TerminalReassignmentTarget - */ +/** TerminalReassignmentTarget */ @JsonPropertyOrder({ TerminalReassignmentTarget.JSON_PROPERTY_COMPANY_ID, TerminalReassignmentTarget.JSON_PROPERTY_INVENTORY, TerminalReassignmentTarget.JSON_PROPERTY_MERCHANT_ID, TerminalReassignmentTarget.JSON_PROPERTY_STORE_ID }) - public class TerminalReassignmentTarget { public static final String JSON_PROPERTY_COMPANY_ID = "companyId"; private String companyId; @@ -47,13 +37,13 @@ public class TerminalReassignmentTarget { public static final String JSON_PROPERTY_STORE_ID = "storeId"; private String storeId; - public TerminalReassignmentTarget() { - } + public TerminalReassignmentTarget() {} /** * The unique identifier of the company account to which the terminal is reassigned. * - * @param companyId The unique identifier of the company account to which the terminal is reassigned. + * @param companyId The unique identifier of the company account to which the terminal is + * reassigned. * @return the current {@code TerminalReassignmentTarget} instance, allowing for method chaining */ public TerminalReassignmentTarget companyId(String companyId) { @@ -63,7 +53,9 @@ public TerminalReassignmentTarget companyId(String companyId) { /** * The unique identifier of the company account to which the terminal is reassigned. - * @return companyId The unique identifier of the company account to which the terminal is reassigned. + * + * @return companyId The unique identifier of the company account to which the terminal is + * reassigned. */ @JsonProperty(JSON_PROPERTY_COMPANY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -74,7 +66,8 @@ public String getCompanyId() { /** * The unique identifier of the company account to which the terminal is reassigned. * - * @param companyId The unique identifier of the company account to which the terminal is reassigned. + * @param companyId The unique identifier of the company account to which the terminal is + * reassigned. */ @JsonProperty(JSON_PROPERTY_COMPANY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,9 +76,15 @@ public void setCompanyId(String companyId) { } /** - * Indicates if the terminal is reassigned to the inventory of the merchant account. - If **true**, the terminal is in the inventory of the merchant account and cannot process transactions. - If **false**, the terminal is reassigned directly to the merchant account and can process transactions. + * Indicates if the terminal is reassigned to the inventory of the merchant account. - If + * **true**, the terminal is in the inventory of the merchant account and cannot process + * transactions. - If **false**, the terminal is reassigned directly to the merchant account and + * can process transactions. * - * @param inventory Indicates if the terminal is reassigned to the inventory of the merchant account. - If **true**, the terminal is in the inventory of the merchant account and cannot process transactions. - If **false**, the terminal is reassigned directly to the merchant account and can process transactions. + * @param inventory Indicates if the terminal is reassigned to the inventory of the merchant + * account. - If **true**, the terminal is in the inventory of the merchant account and cannot + * process transactions. - If **false**, the terminal is reassigned directly to the merchant + * account and can process transactions. * @return the current {@code TerminalReassignmentTarget} instance, allowing for method chaining */ public TerminalReassignmentTarget inventory(Boolean inventory) { @@ -94,8 +93,15 @@ public TerminalReassignmentTarget inventory(Boolean inventory) { } /** - * Indicates if the terminal is reassigned to the inventory of the merchant account. - If **true**, the terminal is in the inventory of the merchant account and cannot process transactions. - If **false**, the terminal is reassigned directly to the merchant account and can process transactions. - * @return inventory Indicates if the terminal is reassigned to the inventory of the merchant account. - If **true**, the terminal is in the inventory of the merchant account and cannot process transactions. - If **false**, the terminal is reassigned directly to the merchant account and can process transactions. + * Indicates if the terminal is reassigned to the inventory of the merchant account. - If + * **true**, the terminal is in the inventory of the merchant account and cannot process + * transactions. - If **false**, the terminal is reassigned directly to the merchant account and + * can process transactions. + * + * @return inventory Indicates if the terminal is reassigned to the inventory of the merchant + * account. - If **true**, the terminal is in the inventory of the merchant account and cannot + * process transactions. - If **false**, the terminal is reassigned directly to the merchant + * account and can process transactions. */ @JsonProperty(JSON_PROPERTY_INVENTORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,9 +110,15 @@ public Boolean getInventory() { } /** - * Indicates if the terminal is reassigned to the inventory of the merchant account. - If **true**, the terminal is in the inventory of the merchant account and cannot process transactions. - If **false**, the terminal is reassigned directly to the merchant account and can process transactions. + * Indicates if the terminal is reassigned to the inventory of the merchant account. - If + * **true**, the terminal is in the inventory of the merchant account and cannot process + * transactions. - If **false**, the terminal is reassigned directly to the merchant account and + * can process transactions. * - * @param inventory Indicates if the terminal is reassigned to the inventory of the merchant account. - If **true**, the terminal is in the inventory of the merchant account and cannot process transactions. - If **false**, the terminal is reassigned directly to the merchant account and can process transactions. + * @param inventory Indicates if the terminal is reassigned to the inventory of the merchant + * account. - If **true**, the terminal is in the inventory of the merchant account and cannot + * process transactions. - If **false**, the terminal is reassigned directly to the merchant + * account and can process transactions. */ @JsonProperty(JSON_PROPERTY_INVENTORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,7 +129,8 @@ public void setInventory(Boolean inventory) { /** * The unique identifier of the merchant account to which the terminal is reassigned. * - * @param merchantId The unique identifier of the merchant account to which the terminal is reassigned. + * @param merchantId The unique identifier of the merchant account to which the terminal is + * reassigned. * @return the current {@code TerminalReassignmentTarget} instance, allowing for method chaining */ public TerminalReassignmentTarget merchantId(String merchantId) { @@ -127,7 +140,9 @@ public TerminalReassignmentTarget merchantId(String merchantId) { /** * The unique identifier of the merchant account to which the terminal is reassigned. - * @return merchantId The unique identifier of the merchant account to which the terminal is reassigned. + * + * @return merchantId The unique identifier of the merchant account to which the terminal is + * reassigned. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,7 +153,8 @@ public String getMerchantId() { /** * The unique identifier of the merchant account to which the terminal is reassigned. * - * @param merchantId The unique identifier of the merchant account to which the terminal is reassigned. + * @param merchantId The unique identifier of the merchant account to which the terminal is + * reassigned. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,6 +175,7 @@ public TerminalReassignmentTarget storeId(String storeId) { /** * The unique identifier of the store to which the terminal is reassigned. + * * @return storeId The unique identifier of the store to which the terminal is reassigned. */ @JsonProperty(JSON_PROPERTY_STORE_ID) @@ -178,9 +195,7 @@ public void setStoreId(String storeId) { this.storeId = storeId; } - /** - * Return true if this TerminalReassignmentTarget object is equal to o. - */ + /** Return true if this TerminalReassignmentTarget object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -190,10 +205,10 @@ public boolean equals(Object o) { return false; } TerminalReassignmentTarget terminalReassignmentTarget = (TerminalReassignmentTarget) o; - return Objects.equals(this.companyId, terminalReassignmentTarget.companyId) && - Objects.equals(this.inventory, terminalReassignmentTarget.inventory) && - Objects.equals(this.merchantId, terminalReassignmentTarget.merchantId) && - Objects.equals(this.storeId, terminalReassignmentTarget.storeId); + return Objects.equals(this.companyId, terminalReassignmentTarget.companyId) + && Objects.equals(this.inventory, terminalReassignmentTarget.inventory) + && Objects.equals(this.merchantId, terminalReassignmentTarget.merchantId) + && Objects.equals(this.storeId, terminalReassignmentTarget.storeId); } @Override @@ -214,8 +229,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +238,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TerminalReassignmentTarget given an JSON string * * @param jsonString JSON string * @return An instance of TerminalReassignmentTarget - * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalReassignmentTarget + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TerminalReassignmentTarget */ - public static TerminalReassignmentTarget fromJson(String jsonString) throws JsonProcessingException { + public static TerminalReassignmentTarget fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalReassignmentTarget.class); } -/** - * Convert an instance of TerminalReassignmentTarget to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TerminalReassignmentTarget to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TerminalSettings.java b/src/main/java/com/adyen/model/management/TerminalSettings.java index ca0cc65a9..12dfb5dd7 100644 --- a/src/main/java/com/adyen/model/management/TerminalSettings.java +++ b/src/main/java/com/adyen/model/management/TerminalSettings.java @@ -2,55 +2,24 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.CardholderReceipt; -import com.adyen.model.management.Connectivity; -import com.adyen.model.management.Gratuity; -import com.adyen.model.management.Hardware; -import com.adyen.model.management.Localization; -import com.adyen.model.management.Nexo; -import com.adyen.model.management.OfflineProcessing; -import com.adyen.model.management.Opi; -import com.adyen.model.management.Passcodes; -import com.adyen.model.management.PayAtTable; -import com.adyen.model.management.Payment; -import com.adyen.model.management.ReceiptOptions; -import com.adyen.model.management.ReceiptPrinting; -import com.adyen.model.management.Refunds; -import com.adyen.model.management.Signature; -import com.adyen.model.management.Standalone; -import com.adyen.model.management.StoreAndForward; -import com.adyen.model.management.Surcharge; -import com.adyen.model.management.TapToPay; -import com.adyen.model.management.TerminalInstructions; -import com.adyen.model.management.Timeouts; -import com.adyen.model.management.WifiProfiles; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * TerminalSettings - */ +/** TerminalSettings */ @JsonPropertyOrder({ TerminalSettings.JSON_PROPERTY_CARDHOLDER_RECEIPT, TerminalSettings.JSON_PROPERTY_CONNECTIVITY, @@ -75,7 +44,6 @@ TerminalSettings.JSON_PROPERTY_TIMEOUTS, TerminalSettings.JSON_PROPERTY_WIFI_PROFILES }) - public class TerminalSettings { public static final String JSON_PROPERTY_CARDHOLDER_RECEIPT = "cardholderReceipt"; private CardholderReceipt cardholderReceipt; @@ -143,13 +111,12 @@ public class TerminalSettings { public static final String JSON_PROPERTY_WIFI_PROFILES = "wifiProfiles"; private WifiProfiles wifiProfiles; - public TerminalSettings() { - } + public TerminalSettings() {} /** * cardholderReceipt * - * @param cardholderReceipt + * @param cardholderReceipt * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings cardholderReceipt(CardholderReceipt cardholderReceipt) { @@ -159,7 +126,8 @@ public TerminalSettings cardholderReceipt(CardholderReceipt cardholderReceipt) { /** * Get cardholderReceipt - * @return cardholderReceipt + * + * @return cardholderReceipt */ @JsonProperty(JSON_PROPERTY_CARDHOLDER_RECEIPT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -170,7 +138,7 @@ public CardholderReceipt getCardholderReceipt() { /** * cardholderReceipt * - * @param cardholderReceipt + * @param cardholderReceipt */ @JsonProperty(JSON_PROPERTY_CARDHOLDER_RECEIPT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,7 +149,7 @@ public void setCardholderReceipt(CardholderReceipt cardholderReceipt) { /** * connectivity * - * @param connectivity + * @param connectivity * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings connectivity(Connectivity connectivity) { @@ -191,7 +159,8 @@ public TerminalSettings connectivity(Connectivity connectivity) { /** * Get connectivity - * @return connectivity + * + * @return connectivity */ @JsonProperty(JSON_PROPERTY_CONNECTIVITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -202,7 +171,7 @@ public Connectivity getConnectivity() { /** * connectivity * - * @param connectivity + * @param connectivity */ @JsonProperty(JSON_PROPERTY_CONNECTIVITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,9 +180,12 @@ public void setConnectivity(Connectivity connectivity) { } /** - * Settings for tipping with or without predefined options to choose from. The maximum number of predefined options is four, or three plus the option to enter a custom tip. + * Settings for tipping with or without predefined options to choose from. The maximum number of + * predefined options is four, or three plus the option to enter a custom tip. * - * @param gratuities Settings for tipping with or without predefined options to choose from. The maximum number of predefined options is four, or three plus the option to enter a custom tip. + * @param gratuities Settings for tipping with or without predefined options to choose from. The + * maximum number of predefined options is four, or three plus the option to enter a custom + * tip. * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings gratuities(List gratuities) { @@ -230,8 +202,12 @@ public TerminalSettings addGratuitiesItem(Gratuity gratuitiesItem) { } /** - * Settings for tipping with or without predefined options to choose from. The maximum number of predefined options is four, or three plus the option to enter a custom tip. - * @return gratuities Settings for tipping with or without predefined options to choose from. The maximum number of predefined options is four, or three plus the option to enter a custom tip. + * Settings for tipping with or without predefined options to choose from. The maximum number of + * predefined options is four, or three plus the option to enter a custom tip. + * + * @return gratuities Settings for tipping with or without predefined options to choose from. The + * maximum number of predefined options is four, or three plus the option to enter a custom + * tip. */ @JsonProperty(JSON_PROPERTY_GRATUITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,9 +216,12 @@ public List getGratuities() { } /** - * Settings for tipping with or without predefined options to choose from. The maximum number of predefined options is four, or three plus the option to enter a custom tip. + * Settings for tipping with or without predefined options to choose from. The maximum number of + * predefined options is four, or three plus the option to enter a custom tip. * - * @param gratuities Settings for tipping with or without predefined options to choose from. The maximum number of predefined options is four, or three plus the option to enter a custom tip. + * @param gratuities Settings for tipping with or without predefined options to choose from. The + * maximum number of predefined options is four, or three plus the option to enter a custom + * tip. */ @JsonProperty(JSON_PROPERTY_GRATUITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -253,7 +232,7 @@ public void setGratuities(List gratuities) { /** * hardware * - * @param hardware + * @param hardware * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings hardware(Hardware hardware) { @@ -263,7 +242,8 @@ public TerminalSettings hardware(Hardware hardware) { /** * Get hardware - * @return hardware + * + * @return hardware */ @JsonProperty(JSON_PROPERTY_HARDWARE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -274,7 +254,7 @@ public Hardware getHardware() { /** * hardware * - * @param hardware + * @param hardware */ @JsonProperty(JSON_PROPERTY_HARDWARE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -285,7 +265,7 @@ public void setHardware(Hardware hardware) { /** * localization * - * @param localization + * @param localization * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings localization(Localization localization) { @@ -295,7 +275,8 @@ public TerminalSettings localization(Localization localization) { /** * Get localization - * @return localization + * + * @return localization */ @JsonProperty(JSON_PROPERTY_LOCALIZATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -306,7 +287,7 @@ public Localization getLocalization() { /** * localization * - * @param localization + * @param localization */ @JsonProperty(JSON_PROPERTY_LOCALIZATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -317,7 +298,7 @@ public void setLocalization(Localization localization) { /** * nexo * - * @param nexo + * @param nexo * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings nexo(Nexo nexo) { @@ -327,7 +308,8 @@ public TerminalSettings nexo(Nexo nexo) { /** * Get nexo - * @return nexo + * + * @return nexo */ @JsonProperty(JSON_PROPERTY_NEXO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -338,7 +320,7 @@ public Nexo getNexo() { /** * nexo * - * @param nexo + * @param nexo */ @JsonProperty(JSON_PROPERTY_NEXO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -349,7 +331,7 @@ public void setNexo(Nexo nexo) { /** * offlineProcessing * - * @param offlineProcessing + * @param offlineProcessing * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings offlineProcessing(OfflineProcessing offlineProcessing) { @@ -359,7 +341,8 @@ public TerminalSettings offlineProcessing(OfflineProcessing offlineProcessing) { /** * Get offlineProcessing - * @return offlineProcessing + * + * @return offlineProcessing */ @JsonProperty(JSON_PROPERTY_OFFLINE_PROCESSING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -370,7 +353,7 @@ public OfflineProcessing getOfflineProcessing() { /** * offlineProcessing * - * @param offlineProcessing + * @param offlineProcessing */ @JsonProperty(JSON_PROPERTY_OFFLINE_PROCESSING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -381,7 +364,7 @@ public void setOfflineProcessing(OfflineProcessing offlineProcessing) { /** * opi * - * @param opi + * @param opi * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings opi(Opi opi) { @@ -391,7 +374,8 @@ public TerminalSettings opi(Opi opi) { /** * Get opi - * @return opi + * + * @return opi */ @JsonProperty(JSON_PROPERTY_OPI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -402,7 +386,7 @@ public Opi getOpi() { /** * opi * - * @param opi + * @param opi */ @JsonProperty(JSON_PROPERTY_OPI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -413,7 +397,7 @@ public void setOpi(Opi opi) { /** * passcodes * - * @param passcodes + * @param passcodes * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings passcodes(Passcodes passcodes) { @@ -423,7 +407,8 @@ public TerminalSettings passcodes(Passcodes passcodes) { /** * Get passcodes - * @return passcodes + * + * @return passcodes */ @JsonProperty(JSON_PROPERTY_PASSCODES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -434,7 +419,7 @@ public Passcodes getPasscodes() { /** * passcodes * - * @param passcodes + * @param passcodes */ @JsonProperty(JSON_PROPERTY_PASSCODES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -445,7 +430,7 @@ public void setPasscodes(Passcodes passcodes) { /** * payAtTable * - * @param payAtTable + * @param payAtTable * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings payAtTable(PayAtTable payAtTable) { @@ -455,7 +440,8 @@ public TerminalSettings payAtTable(PayAtTable payAtTable) { /** * Get payAtTable - * @return payAtTable + * + * @return payAtTable */ @JsonProperty(JSON_PROPERTY_PAY_AT_TABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -466,7 +452,7 @@ public PayAtTable getPayAtTable() { /** * payAtTable * - * @param payAtTable + * @param payAtTable */ @JsonProperty(JSON_PROPERTY_PAY_AT_TABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -477,7 +463,7 @@ public void setPayAtTable(PayAtTable payAtTable) { /** * payment * - * @param payment + * @param payment * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings payment(Payment payment) { @@ -487,7 +473,8 @@ public TerminalSettings payment(Payment payment) { /** * Get payment - * @return payment + * + * @return payment */ @JsonProperty(JSON_PROPERTY_PAYMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -498,7 +485,7 @@ public Payment getPayment() { /** * payment * - * @param payment + * @param payment */ @JsonProperty(JSON_PROPERTY_PAYMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -509,7 +496,7 @@ public void setPayment(Payment payment) { /** * receiptOptions * - * @param receiptOptions + * @param receiptOptions * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings receiptOptions(ReceiptOptions receiptOptions) { @@ -519,7 +506,8 @@ public TerminalSettings receiptOptions(ReceiptOptions receiptOptions) { /** * Get receiptOptions - * @return receiptOptions + * + * @return receiptOptions */ @JsonProperty(JSON_PROPERTY_RECEIPT_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -530,7 +518,7 @@ public ReceiptOptions getReceiptOptions() { /** * receiptOptions * - * @param receiptOptions + * @param receiptOptions */ @JsonProperty(JSON_PROPERTY_RECEIPT_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -541,7 +529,7 @@ public void setReceiptOptions(ReceiptOptions receiptOptions) { /** * receiptPrinting * - * @param receiptPrinting + * @param receiptPrinting * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings receiptPrinting(ReceiptPrinting receiptPrinting) { @@ -551,7 +539,8 @@ public TerminalSettings receiptPrinting(ReceiptPrinting receiptPrinting) { /** * Get receiptPrinting - * @return receiptPrinting + * + * @return receiptPrinting */ @JsonProperty(JSON_PROPERTY_RECEIPT_PRINTING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -562,7 +551,7 @@ public ReceiptPrinting getReceiptPrinting() { /** * receiptPrinting * - * @param receiptPrinting + * @param receiptPrinting */ @JsonProperty(JSON_PROPERTY_RECEIPT_PRINTING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -573,7 +562,7 @@ public void setReceiptPrinting(ReceiptPrinting receiptPrinting) { /** * refunds * - * @param refunds + * @param refunds * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings refunds(Refunds refunds) { @@ -583,7 +572,8 @@ public TerminalSettings refunds(Refunds refunds) { /** * Get refunds - * @return refunds + * + * @return refunds */ @JsonProperty(JSON_PROPERTY_REFUNDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -594,7 +584,7 @@ public Refunds getRefunds() { /** * refunds * - * @param refunds + * @param refunds */ @JsonProperty(JSON_PROPERTY_REFUNDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -605,7 +595,7 @@ public void setRefunds(Refunds refunds) { /** * signature * - * @param signature + * @param signature * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings signature(Signature signature) { @@ -615,7 +605,8 @@ public TerminalSettings signature(Signature signature) { /** * Get signature - * @return signature + * + * @return signature */ @JsonProperty(JSON_PROPERTY_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -626,7 +617,7 @@ public Signature getSignature() { /** * signature * - * @param signature + * @param signature */ @JsonProperty(JSON_PROPERTY_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -637,7 +628,7 @@ public void setSignature(Signature signature) { /** * standalone * - * @param standalone + * @param standalone * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings standalone(Standalone standalone) { @@ -647,7 +638,8 @@ public TerminalSettings standalone(Standalone standalone) { /** * Get standalone - * @return standalone + * + * @return standalone */ @JsonProperty(JSON_PROPERTY_STANDALONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -658,7 +650,7 @@ public Standalone getStandalone() { /** * standalone * - * @param standalone + * @param standalone */ @JsonProperty(JSON_PROPERTY_STANDALONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -669,7 +661,7 @@ public void setStandalone(Standalone standalone) { /** * storeAndForward * - * @param storeAndForward + * @param storeAndForward * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings storeAndForward(StoreAndForward storeAndForward) { @@ -679,7 +671,8 @@ public TerminalSettings storeAndForward(StoreAndForward storeAndForward) { /** * Get storeAndForward - * @return storeAndForward + * + * @return storeAndForward */ @JsonProperty(JSON_PROPERTY_STORE_AND_FORWARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -690,7 +683,7 @@ public StoreAndForward getStoreAndForward() { /** * storeAndForward * - * @param storeAndForward + * @param storeAndForward */ @JsonProperty(JSON_PROPERTY_STORE_AND_FORWARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -701,7 +694,7 @@ public void setStoreAndForward(StoreAndForward storeAndForward) { /** * surcharge * - * @param surcharge + * @param surcharge * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings surcharge(Surcharge surcharge) { @@ -711,7 +704,8 @@ public TerminalSettings surcharge(Surcharge surcharge) { /** * Get surcharge - * @return surcharge + * + * @return surcharge */ @JsonProperty(JSON_PROPERTY_SURCHARGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -722,7 +716,7 @@ public Surcharge getSurcharge() { /** * surcharge * - * @param surcharge + * @param surcharge */ @JsonProperty(JSON_PROPERTY_SURCHARGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -733,7 +727,7 @@ public void setSurcharge(Surcharge surcharge) { /** * tapToPay * - * @param tapToPay + * @param tapToPay * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings tapToPay(TapToPay tapToPay) { @@ -743,7 +737,8 @@ public TerminalSettings tapToPay(TapToPay tapToPay) { /** * Get tapToPay - * @return tapToPay + * + * @return tapToPay */ @JsonProperty(JSON_PROPERTY_TAP_TO_PAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -754,7 +749,7 @@ public TapToPay getTapToPay() { /** * tapToPay * - * @param tapToPay + * @param tapToPay */ @JsonProperty(JSON_PROPERTY_TAP_TO_PAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -765,7 +760,7 @@ public void setTapToPay(TapToPay tapToPay) { /** * terminalInstructions * - * @param terminalInstructions + * @param terminalInstructions * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings terminalInstructions(TerminalInstructions terminalInstructions) { @@ -775,7 +770,8 @@ public TerminalSettings terminalInstructions(TerminalInstructions terminalInstru /** * Get terminalInstructions - * @return terminalInstructions + * + * @return terminalInstructions */ @JsonProperty(JSON_PROPERTY_TERMINAL_INSTRUCTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -786,7 +782,7 @@ public TerminalInstructions getTerminalInstructions() { /** * terminalInstructions * - * @param terminalInstructions + * @param terminalInstructions */ @JsonProperty(JSON_PROPERTY_TERMINAL_INSTRUCTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -797,7 +793,7 @@ public void setTerminalInstructions(TerminalInstructions terminalInstructions) { /** * timeouts * - * @param timeouts + * @param timeouts * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings timeouts(Timeouts timeouts) { @@ -807,7 +803,8 @@ public TerminalSettings timeouts(Timeouts timeouts) { /** * Get timeouts - * @return timeouts + * + * @return timeouts */ @JsonProperty(JSON_PROPERTY_TIMEOUTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -818,7 +815,7 @@ public Timeouts getTimeouts() { /** * timeouts * - * @param timeouts + * @param timeouts */ @JsonProperty(JSON_PROPERTY_TIMEOUTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -829,7 +826,7 @@ public void setTimeouts(Timeouts timeouts) { /** * wifiProfiles * - * @param wifiProfiles + * @param wifiProfiles * @return the current {@code TerminalSettings} instance, allowing for method chaining */ public TerminalSettings wifiProfiles(WifiProfiles wifiProfiles) { @@ -839,7 +836,8 @@ public TerminalSettings wifiProfiles(WifiProfiles wifiProfiles) { /** * Get wifiProfiles - * @return wifiProfiles + * + * @return wifiProfiles */ @JsonProperty(JSON_PROPERTY_WIFI_PROFILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -850,7 +848,7 @@ public WifiProfiles getWifiProfiles() { /** * wifiProfiles * - * @param wifiProfiles + * @param wifiProfiles */ @JsonProperty(JSON_PROPERTY_WIFI_PROFILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -858,9 +856,7 @@ public void setWifiProfiles(WifiProfiles wifiProfiles) { this.wifiProfiles = wifiProfiles; } - /** - * Return true if this TerminalSettings object is equal to o. - */ + /** Return true if this TerminalSettings object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -870,33 +866,55 @@ public boolean equals(Object o) { return false; } TerminalSettings terminalSettings = (TerminalSettings) o; - return Objects.equals(this.cardholderReceipt, terminalSettings.cardholderReceipt) && - Objects.equals(this.connectivity, terminalSettings.connectivity) && - Objects.equals(this.gratuities, terminalSettings.gratuities) && - Objects.equals(this.hardware, terminalSettings.hardware) && - Objects.equals(this.localization, terminalSettings.localization) && - Objects.equals(this.nexo, terminalSettings.nexo) && - Objects.equals(this.offlineProcessing, terminalSettings.offlineProcessing) && - Objects.equals(this.opi, terminalSettings.opi) && - Objects.equals(this.passcodes, terminalSettings.passcodes) && - Objects.equals(this.payAtTable, terminalSettings.payAtTable) && - Objects.equals(this.payment, terminalSettings.payment) && - Objects.equals(this.receiptOptions, terminalSettings.receiptOptions) && - Objects.equals(this.receiptPrinting, terminalSettings.receiptPrinting) && - Objects.equals(this.refunds, terminalSettings.refunds) && - Objects.equals(this.signature, terminalSettings.signature) && - Objects.equals(this.standalone, terminalSettings.standalone) && - Objects.equals(this.storeAndForward, terminalSettings.storeAndForward) && - Objects.equals(this.surcharge, terminalSettings.surcharge) && - Objects.equals(this.tapToPay, terminalSettings.tapToPay) && - Objects.equals(this.terminalInstructions, terminalSettings.terminalInstructions) && - Objects.equals(this.timeouts, terminalSettings.timeouts) && - Objects.equals(this.wifiProfiles, terminalSettings.wifiProfiles); + return Objects.equals(this.cardholderReceipt, terminalSettings.cardholderReceipt) + && Objects.equals(this.connectivity, terminalSettings.connectivity) + && Objects.equals(this.gratuities, terminalSettings.gratuities) + && Objects.equals(this.hardware, terminalSettings.hardware) + && Objects.equals(this.localization, terminalSettings.localization) + && Objects.equals(this.nexo, terminalSettings.nexo) + && Objects.equals(this.offlineProcessing, terminalSettings.offlineProcessing) + && Objects.equals(this.opi, terminalSettings.opi) + && Objects.equals(this.passcodes, terminalSettings.passcodes) + && Objects.equals(this.payAtTable, terminalSettings.payAtTable) + && Objects.equals(this.payment, terminalSettings.payment) + && Objects.equals(this.receiptOptions, terminalSettings.receiptOptions) + && Objects.equals(this.receiptPrinting, terminalSettings.receiptPrinting) + && Objects.equals(this.refunds, terminalSettings.refunds) + && Objects.equals(this.signature, terminalSettings.signature) + && Objects.equals(this.standalone, terminalSettings.standalone) + && Objects.equals(this.storeAndForward, terminalSettings.storeAndForward) + && Objects.equals(this.surcharge, terminalSettings.surcharge) + && Objects.equals(this.tapToPay, terminalSettings.tapToPay) + && Objects.equals(this.terminalInstructions, terminalSettings.terminalInstructions) + && Objects.equals(this.timeouts, terminalSettings.timeouts) + && Objects.equals(this.wifiProfiles, terminalSettings.wifiProfiles); } @Override public int hashCode() { - return Objects.hash(cardholderReceipt, connectivity, gratuities, hardware, localization, nexo, offlineProcessing, opi, passcodes, payAtTable, payment, receiptOptions, receiptPrinting, refunds, signature, standalone, storeAndForward, surcharge, tapToPay, terminalInstructions, timeouts, wifiProfiles); + return Objects.hash( + cardholderReceipt, + connectivity, + gratuities, + hardware, + localization, + nexo, + offlineProcessing, + opi, + passcodes, + payAtTable, + payment, + receiptOptions, + receiptPrinting, + refunds, + signature, + standalone, + storeAndForward, + surcharge, + tapToPay, + terminalInstructions, + timeouts, + wifiProfiles); } @Override @@ -922,7 +940,9 @@ public String toString() { sb.append(" storeAndForward: ").append(toIndentedString(storeAndForward)).append("\n"); sb.append(" surcharge: ").append(toIndentedString(surcharge)).append("\n"); sb.append(" tapToPay: ").append(toIndentedString(tapToPay)).append("\n"); - sb.append(" terminalInstructions: ").append(toIndentedString(terminalInstructions)).append("\n"); + sb.append(" terminalInstructions: ") + .append(toIndentedString(terminalInstructions)) + .append("\n"); sb.append(" timeouts: ").append(toIndentedString(timeouts)).append("\n"); sb.append(" wifiProfiles: ").append(toIndentedString(wifiProfiles)).append("\n"); sb.append("}"); @@ -930,8 +950,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -940,7 +959,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TerminalSettings given an JSON string * * @param jsonString JSON string @@ -950,11 +969,12 @@ private String toIndentedString(Object o) { public static TerminalSettings fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalSettings.class); } -/** - * Convert an instance of TerminalSettings to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TerminalSettings to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TestCompanyWebhookRequest.java b/src/main/java/com/adyen/model/management/TestCompanyWebhookRequest.java index 7c0ed51e7..56f3d3609 100644 --- a/src/main/java/com/adyen/model/management/TestCompanyWebhookRequest.java +++ b/src/main/java/com/adyen/model/management/TestCompanyWebhookRequest.java @@ -2,40 +2,29 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.CustomNotification; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * TestCompanyWebhookRequest - */ +/** TestCompanyWebhookRequest */ @JsonPropertyOrder({ TestCompanyWebhookRequest.JSON_PROPERTY_MERCHANT_IDS, TestCompanyWebhookRequest.JSON_PROPERTY_NOTIFICATION, TestCompanyWebhookRequest.JSON_PROPERTY_TYPES }) - public class TestCompanyWebhookRequest { public static final String JSON_PROPERTY_MERCHANT_IDS = "merchantIds"; private List merchantIds; @@ -46,13 +35,20 @@ public class TestCompanyWebhookRequest { public static final String JSON_PROPERTY_TYPES = "types"; private List types; - public TestCompanyWebhookRequest() { - } + public TestCompanyWebhookRequest() {} /** - * List of `merchantId` values for which test webhooks will be sent. The list can have a maximum of 20 `merchantId` values. If not specified, we send sample notifications to all the merchant accounts that the webhook is configured for. If this is more than 20 merchant accounts, use this list to specify a subset of the merchant accounts for which to send test notifications. + * List of `merchantId` values for which test webhooks will be sent. The list can have a + * maximum of 20 `merchantId` values. If not specified, we send sample notifications to + * all the merchant accounts that the webhook is configured for. If this is more than 20 merchant + * accounts, use this list to specify a subset of the merchant accounts for which to send test + * notifications. * - * @param merchantIds List of `merchantId` values for which test webhooks will be sent. The list can have a maximum of 20 `merchantId` values. If not specified, we send sample notifications to all the merchant accounts that the webhook is configured for. If this is more than 20 merchant accounts, use this list to specify a subset of the merchant accounts for which to send test notifications. + * @param merchantIds List of `merchantId` values for which test webhooks will be sent. + * The list can have a maximum of 20 `merchantId` values. If not specified, we send + * sample notifications to all the merchant accounts that the webhook is configured for. If + * this is more than 20 merchant accounts, use this list to specify a subset of the merchant + * accounts for which to send test notifications. * @return the current {@code TestCompanyWebhookRequest} instance, allowing for method chaining */ public TestCompanyWebhookRequest merchantIds(List merchantIds) { @@ -69,8 +65,17 @@ public TestCompanyWebhookRequest addMerchantIdsItem(String merchantIdsItem) { } /** - * List of `merchantId` values for which test webhooks will be sent. The list can have a maximum of 20 `merchantId` values. If not specified, we send sample notifications to all the merchant accounts that the webhook is configured for. If this is more than 20 merchant accounts, use this list to specify a subset of the merchant accounts for which to send test notifications. - * @return merchantIds List of `merchantId` values for which test webhooks will be sent. The list can have a maximum of 20 `merchantId` values. If not specified, we send sample notifications to all the merchant accounts that the webhook is configured for. If this is more than 20 merchant accounts, use this list to specify a subset of the merchant accounts for which to send test notifications. + * List of `merchantId` values for which test webhooks will be sent. The list can have a + * maximum of 20 `merchantId` values. If not specified, we send sample notifications to + * all the merchant accounts that the webhook is configured for. If this is more than 20 merchant + * accounts, use this list to specify a subset of the merchant accounts for which to send test + * notifications. + * + * @return merchantIds List of `merchantId` values for which test webhooks will be sent. + * The list can have a maximum of 20 `merchantId` values. If not specified, we send + * sample notifications to all the merchant accounts that the webhook is configured for. If + * this is more than 20 merchant accounts, use this list to specify a subset of the merchant + * accounts for which to send test notifications. */ @JsonProperty(JSON_PROPERTY_MERCHANT_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,9 +84,17 @@ public List getMerchantIds() { } /** - * List of `merchantId` values for which test webhooks will be sent. The list can have a maximum of 20 `merchantId` values. If not specified, we send sample notifications to all the merchant accounts that the webhook is configured for. If this is more than 20 merchant accounts, use this list to specify a subset of the merchant accounts for which to send test notifications. + * List of `merchantId` values for which test webhooks will be sent. The list can have a + * maximum of 20 `merchantId` values. If not specified, we send sample notifications to + * all the merchant accounts that the webhook is configured for. If this is more than 20 merchant + * accounts, use this list to specify a subset of the merchant accounts for which to send test + * notifications. * - * @param merchantIds List of `merchantId` values for which test webhooks will be sent. The list can have a maximum of 20 `merchantId` values. If not specified, we send sample notifications to all the merchant accounts that the webhook is configured for. If this is more than 20 merchant accounts, use this list to specify a subset of the merchant accounts for which to send test notifications. + * @param merchantIds List of `merchantId` values for which test webhooks will be sent. + * The list can have a maximum of 20 `merchantId` values. If not specified, we send + * sample notifications to all the merchant accounts that the webhook is configured for. If + * this is more than 20 merchant accounts, use this list to specify a subset of the merchant + * accounts for which to send test notifications. */ @JsonProperty(JSON_PROPERTY_MERCHANT_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -92,7 +105,7 @@ public void setMerchantIds(List merchantIds) { /** * notification * - * @param notification + * @param notification * @return the current {@code TestCompanyWebhookRequest} instance, allowing for method chaining */ public TestCompanyWebhookRequest notification(CustomNotification notification) { @@ -102,7 +115,8 @@ public TestCompanyWebhookRequest notification(CustomNotification notification) { /** * Get notification - * @return notification + * + * @return notification */ @JsonProperty(JSON_PROPERTY_NOTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,7 +127,7 @@ public CustomNotification getNotification() { /** * notification * - * @param notification + * @param notification */ @JsonProperty(JSON_PROPERTY_NOTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -122,9 +136,29 @@ public void setNotification(CustomNotification notification) { } /** - * List of event codes for which to send test notifications. Only the webhook types below are supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) object. Possible values if webhook `type`: **banktransfer-notification**: * **PENDING** Possible values if webhook `type`: **report-notification**: * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * **PENDING** + * List of event codes for which to send test notifications. Only the webhook types below are + * supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * + * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * + * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * + * **CUSTOM** - set your custom notification fields in the + * [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) + * object. Possible values if webhook `type`: **banktransfer-notification**: * + * **PENDING** Possible values if webhook `type`: **report-notification**: * + * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * + * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * + * **PENDING** * - * @param types List of event codes for which to send test notifications. Only the webhook types below are supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) object. Possible values if webhook `type`: **banktransfer-notification**: * **PENDING** Possible values if webhook `type`: **report-notification**: * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * **PENDING** + * @param types List of event codes for which to send test notifications. Only the webhook types + * below are supported. Possible values if webhook `type`: **standard**: * + * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * + * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** + * * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the + * [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) + * object. Possible values if webhook `type`: **banktransfer-notification**: * + * **PENDING** Possible values if webhook `type`: **report-notification**: * + * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * + * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * + * **PENDING** * @return the current {@code TestCompanyWebhookRequest} instance, allowing for method chaining */ public TestCompanyWebhookRequest types(List types) { @@ -141,8 +175,29 @@ public TestCompanyWebhookRequest addTypesItem(String typesItem) { } /** - * List of event codes for which to send test notifications. Only the webhook types below are supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) object. Possible values if webhook `type`: **banktransfer-notification**: * **PENDING** Possible values if webhook `type`: **report-notification**: * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * **PENDING** - * @return types List of event codes for which to send test notifications. Only the webhook types below are supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) object. Possible values if webhook `type`: **banktransfer-notification**: * **PENDING** Possible values if webhook `type`: **report-notification**: * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * **PENDING** + * List of event codes for which to send test notifications. Only the webhook types below are + * supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * + * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * + * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * + * **CUSTOM** - set your custom notification fields in the + * [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) + * object. Possible values if webhook `type`: **banktransfer-notification**: * + * **PENDING** Possible values if webhook `type`: **report-notification**: * + * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * + * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * + * **PENDING** + * + * @return types List of event codes for which to send test notifications. Only the webhook types + * below are supported. Possible values if webhook `type`: **standard**: * + * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * + * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** + * * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the + * [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) + * object. Possible values if webhook `type`: **banktransfer-notification**: * + * **PENDING** Possible values if webhook `type`: **report-notification**: * + * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * + * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * + * **PENDING** */ @JsonProperty(JSON_PROPERTY_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,9 +206,29 @@ public List getTypes() { } /** - * List of event codes for which to send test notifications. Only the webhook types below are supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) object. Possible values if webhook `type`: **banktransfer-notification**: * **PENDING** Possible values if webhook `type`: **report-notification**: * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * **PENDING** + * List of event codes for which to send test notifications. Only the webhook types below are + * supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * + * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * + * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * + * **CUSTOM** - set your custom notification fields in the + * [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) + * object. Possible values if webhook `type`: **banktransfer-notification**: * + * **PENDING** Possible values if webhook `type`: **report-notification**: * + * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * + * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * + * **PENDING** * - * @param types List of event codes for which to send test notifications. Only the webhook types below are supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) object. Possible values if webhook `type`: **banktransfer-notification**: * **PENDING** Possible values if webhook `type`: **report-notification**: * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * **PENDING** + * @param types List of event codes for which to send test notifications. Only the webhook types + * below are supported. Possible values if webhook `type`: **standard**: * + * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * + * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** + * * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the + * [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) + * object. Possible values if webhook `type`: **banktransfer-notification**: * + * **PENDING** Possible values if webhook `type`: **report-notification**: * + * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * + * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * + * **PENDING** */ @JsonProperty(JSON_PROPERTY_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,9 +236,7 @@ public void setTypes(List types) { this.types = types; } - /** - * Return true if this TestCompanyWebhookRequest object is equal to o. - */ + /** Return true if this TestCompanyWebhookRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -173,9 +246,9 @@ public boolean equals(Object o) { return false; } TestCompanyWebhookRequest testCompanyWebhookRequest = (TestCompanyWebhookRequest) o; - return Objects.equals(this.merchantIds, testCompanyWebhookRequest.merchantIds) && - Objects.equals(this.notification, testCompanyWebhookRequest.notification) && - Objects.equals(this.types, testCompanyWebhookRequest.types); + return Objects.equals(this.merchantIds, testCompanyWebhookRequest.merchantIds) + && Objects.equals(this.notification, testCompanyWebhookRequest.notification) + && Objects.equals(this.types, testCompanyWebhookRequest.types); } @Override @@ -195,8 +268,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -205,21 +277,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TestCompanyWebhookRequest given an JSON string * * @param jsonString JSON string * @return An instance of TestCompanyWebhookRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to TestCompanyWebhookRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TestCompanyWebhookRequest */ - public static TestCompanyWebhookRequest fromJson(String jsonString) throws JsonProcessingException { + public static TestCompanyWebhookRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TestCompanyWebhookRequest.class); } -/** - * Convert an instance of TestCompanyWebhookRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TestCompanyWebhookRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TestOutput.java b/src/main/java/com/adyen/model/management/TestOutput.java index 6e627cd29..29208ff9f 100644 --- a/src/main/java/com/adyen/model/management/TestOutput.java +++ b/src/main/java/com/adyen/model/management/TestOutput.java @@ -2,31 +2,22 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TestOutput - */ +/** TestOutput */ @JsonPropertyOrder({ TestOutput.JSON_PROPERTY_MERCHANT_ID, TestOutput.JSON_PROPERTY_OUTPUT, @@ -35,7 +26,6 @@ TestOutput.JSON_PROPERTY_RESPONSE_TIME, TestOutput.JSON_PROPERTY_STATUS }) - public class TestOutput { public static final String JSON_PROPERTY_MERCHANT_ID = "merchantId"; private String merchantId; @@ -55,8 +45,7 @@ public class TestOutput { public static final String JSON_PROPERTY_STATUS = "status"; private String status; - public TestOutput() { - } + public TestOutput() {} /** * Unique identifier of the merchant account that the notification is about. @@ -71,6 +60,7 @@ public TestOutput merchantId(String merchantId) { /** * Unique identifier of the merchant account that the notification is about. + * * @return merchantId Unique identifier of the merchant account that the notification is about. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @@ -91,9 +81,21 @@ public void setMerchantId(String merchantId) { } /** - * A short, human-readable explanation of the test result. Your server must respond with **HTTP 2xx* for the test webhook to be successful (`data.status`: **success**). Find out more about [accepting notifications](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks) You can use the value of this field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot unsuccessful test webhooks. + * A short, human-readable explanation of the test result. Your server must respond with **HTTP + * 2xx* for the test webhook to be successful (`data.status`: **success**). Find out + * more about [accepting + * notifications](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks) You can + * use the value of this field together with the + * [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) + * value to troubleshoot unsuccessful test webhooks. * - * @param output A short, human-readable explanation of the test result. Your server must respond with **HTTP 2xx* for the test webhook to be successful (`data.status`: **success**). Find out more about [accepting notifications](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks) You can use the value of this field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot unsuccessful test webhooks. + * @param output A short, human-readable explanation of the test result. Your server must respond + * with **HTTP 2xx* for the test webhook to be successful (`data.status`: + * **success**). Find out more about [accepting + * notifications](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks) You + * can use the value of this field together with the + * [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) + * value to troubleshoot unsuccessful test webhooks. * @return the current {@code TestOutput} instance, allowing for method chaining */ public TestOutput output(String output) { @@ -102,8 +104,21 @@ public TestOutput output(String output) { } /** - * A short, human-readable explanation of the test result. Your server must respond with **HTTP 2xx* for the test webhook to be successful (`data.status`: **success**). Find out more about [accepting notifications](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks) You can use the value of this field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot unsuccessful test webhooks. - * @return output A short, human-readable explanation of the test result. Your server must respond with **HTTP 2xx* for the test webhook to be successful (`data.status`: **success**). Find out more about [accepting notifications](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks) You can use the value of this field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot unsuccessful test webhooks. + * A short, human-readable explanation of the test result. Your server must respond with **HTTP + * 2xx* for the test webhook to be successful (`data.status`: **success**). Find out + * more about [accepting + * notifications](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks) You can + * use the value of this field together with the + * [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) + * value to troubleshoot unsuccessful test webhooks. + * + * @return output A short, human-readable explanation of the test result. Your server must respond + * with **HTTP 2xx* for the test webhook to be successful (`data.status`: + * **success**). Find out more about [accepting + * notifications](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks) You + * can use the value of this field together with the + * [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) + * value to troubleshoot unsuccessful test webhooks. */ @JsonProperty(JSON_PROPERTY_OUTPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,9 +127,21 @@ public String getOutput() { } /** - * A short, human-readable explanation of the test result. Your server must respond with **HTTP 2xx* for the test webhook to be successful (`data.status`: **success**). Find out more about [accepting notifications](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks) You can use the value of this field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot unsuccessful test webhooks. + * A short, human-readable explanation of the test result. Your server must respond with **HTTP + * 2xx* for the test webhook to be successful (`data.status`: **success**). Find out + * more about [accepting + * notifications](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks) You can + * use the value of this field together with the + * [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) + * value to troubleshoot unsuccessful test webhooks. * - * @param output A short, human-readable explanation of the test result. Your server must respond with **HTTP 2xx* for the test webhook to be successful (`data.status`: **success**). Find out more about [accepting notifications](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks) You can use the value of this field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot unsuccessful test webhooks. + * @param output A short, human-readable explanation of the test result. Your server must respond + * with **HTTP 2xx* for the test webhook to be successful (`data.status`: + * **success**). Find out more about [accepting + * notifications](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks) You + * can use the value of this field together with the + * [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) + * value to troubleshoot unsuccessful test webhooks. */ @JsonProperty(JSON_PROPERTY_OUTPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,9 +150,13 @@ public void setOutput(String output) { } /** - * The [body of the notification webhook](https://docs.adyen.com/development-resources/webhooks/understand-notifications#notification-structure) that was sent to your server. + * The [body of the notification + * webhook](https://docs.adyen.com/development-resources/webhooks/understand-notifications#notification-structure) + * that was sent to your server. * - * @param requestSent The [body of the notification webhook](https://docs.adyen.com/development-resources/webhooks/understand-notifications#notification-structure) that was sent to your server. + * @param requestSent The [body of the notification + * webhook](https://docs.adyen.com/development-resources/webhooks/understand-notifications#notification-structure) + * that was sent to your server. * @return the current {@code TestOutput} instance, allowing for method chaining */ public TestOutput requestSent(String requestSent) { @@ -134,8 +165,13 @@ public TestOutput requestSent(String requestSent) { } /** - * The [body of the notification webhook](https://docs.adyen.com/development-resources/webhooks/understand-notifications#notification-structure) that was sent to your server. - * @return requestSent The [body of the notification webhook](https://docs.adyen.com/development-resources/webhooks/understand-notifications#notification-structure) that was sent to your server. + * The [body of the notification + * webhook](https://docs.adyen.com/development-resources/webhooks/understand-notifications#notification-structure) + * that was sent to your server. + * + * @return requestSent The [body of the notification + * webhook](https://docs.adyen.com/development-resources/webhooks/understand-notifications#notification-structure) + * that was sent to your server. */ @JsonProperty(JSON_PROPERTY_REQUEST_SENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,9 +180,13 @@ public String getRequestSent() { } /** - * The [body of the notification webhook](https://docs.adyen.com/development-resources/webhooks/understand-notifications#notification-structure) that was sent to your server. + * The [body of the notification + * webhook](https://docs.adyen.com/development-resources/webhooks/understand-notifications#notification-structure) + * that was sent to your server. * - * @param requestSent The [body of the notification webhook](https://docs.adyen.com/development-resources/webhooks/understand-notifications#notification-structure) that was sent to your server. + * @param requestSent The [body of the notification + * webhook](https://docs.adyen.com/development-resources/webhooks/understand-notifications#notification-structure) + * that was sent to your server. */ @JsonProperty(JSON_PROPERTY_REQUEST_SENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -155,9 +195,15 @@ public void setRequestSent(String requestSent) { } /** - * The HTTP response code for your server's response to the test webhook. You can use the value of this field together with the the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field value to troubleshoot failed test webhooks. + * The HTTP response code for your server's response to the test webhook. You can use the + * value of this field together with the the + * [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) + * field value to troubleshoot failed test webhooks. * - * @param responseCode The HTTP response code for your server's response to the test webhook. You can use the value of this field together with the the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field value to troubleshoot failed test webhooks. + * @param responseCode The HTTP response code for your server's response to the test webhook. + * You can use the value of this field together with the the + * [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) + * field value to troubleshoot failed test webhooks. * @return the current {@code TestOutput} instance, allowing for method chaining */ public TestOutput responseCode(String responseCode) { @@ -166,8 +212,15 @@ public TestOutput responseCode(String responseCode) { } /** - * The HTTP response code for your server's response to the test webhook. You can use the value of this field together with the the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field value to troubleshoot failed test webhooks. - * @return responseCode The HTTP response code for your server's response to the test webhook. You can use the value of this field together with the the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field value to troubleshoot failed test webhooks. + * The HTTP response code for your server's response to the test webhook. You can use the + * value of this field together with the the + * [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) + * field value to troubleshoot failed test webhooks. + * + * @return responseCode The HTTP response code for your server's response to the test webhook. + * You can use the value of this field together with the the + * [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) + * field value to troubleshoot failed test webhooks. */ @JsonProperty(JSON_PROPERTY_RESPONSE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,9 +229,15 @@ public String getResponseCode() { } /** - * The HTTP response code for your server's response to the test webhook. You can use the value of this field together with the the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field value to troubleshoot failed test webhooks. + * The HTTP response code for your server's response to the test webhook. You can use the + * value of this field together with the the + * [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) + * field value to troubleshoot failed test webhooks. * - * @param responseCode The HTTP response code for your server's response to the test webhook. You can use the value of this field together with the the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field value to troubleshoot failed test webhooks. + * @param responseCode The HTTP response code for your server's response to the test webhook. + * You can use the value of this field together with the the + * [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) + * field value to troubleshoot failed test webhooks. */ @JsonProperty(JSON_PROPERTY_RESPONSE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,9 +246,13 @@ public void setResponseCode(String responseCode) { } /** - * The time between sending the test webhook and receiving the response from your server. You can use it as an indication of how long your server takes to process a webhook notification. Measured in milliseconds, for example **304 ms**. + * The time between sending the test webhook and receiving the response from your server. You can + * use it as an indication of how long your server takes to process a webhook notification. + * Measured in milliseconds, for example **304 ms**. * - * @param responseTime The time between sending the test webhook and receiving the response from your server. You can use it as an indication of how long your server takes to process a webhook notification. Measured in milliseconds, for example **304 ms**. + * @param responseTime The time between sending the test webhook and receiving the response from + * your server. You can use it as an indication of how long your server takes to process a + * webhook notification. Measured in milliseconds, for example **304 ms**. * @return the current {@code TestOutput} instance, allowing for method chaining */ public TestOutput responseTime(String responseTime) { @@ -198,8 +261,13 @@ public TestOutput responseTime(String responseTime) { } /** - * The time between sending the test webhook and receiving the response from your server. You can use it as an indication of how long your server takes to process a webhook notification. Measured in milliseconds, for example **304 ms**. - * @return responseTime The time between sending the test webhook and receiving the response from your server. You can use it as an indication of how long your server takes to process a webhook notification. Measured in milliseconds, for example **304 ms**. + * The time between sending the test webhook and receiving the response from your server. You can + * use it as an indication of how long your server takes to process a webhook notification. + * Measured in milliseconds, for example **304 ms**. + * + * @return responseTime The time between sending the test webhook and receiving the response from + * your server. You can use it as an indication of how long your server takes to process a + * webhook notification. Measured in milliseconds, for example **304 ms**. */ @JsonProperty(JSON_PROPERTY_RESPONSE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,9 +276,13 @@ public String getResponseTime() { } /** - * The time between sending the test webhook and receiving the response from your server. You can use it as an indication of how long your server takes to process a webhook notification. Measured in milliseconds, for example **304 ms**. + * The time between sending the test webhook and receiving the response from your server. You can + * use it as an indication of how long your server takes to process a webhook notification. + * Measured in milliseconds, for example **304 ms**. * - * @param responseTime The time between sending the test webhook and receiving the response from your server. You can use it as an indication of how long your server takes to process a webhook notification. Measured in milliseconds, for example **304 ms**. + * @param responseTime The time between sending the test webhook and receiving the response from + * your server. You can use it as an indication of how long your server takes to process a + * webhook notification. Measured in milliseconds, for example **304 ms**. */ @JsonProperty(JSON_PROPERTY_RESPONSE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,9 +291,21 @@ public void setResponseTime(String responseTime) { } /** - * The status of the test request. Possible values are: * **success**, `data.responseCode`: **2xx**. * **failed**, in all other cases. You can use the value of the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot failed test webhooks. + * The status of the test request. Possible values are: * **success**, + * `data.responseCode`: **2xx**. * **failed**, in all other cases. You can use the value + * of the + * [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) + * field together with the + * [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) + * value to troubleshoot failed test webhooks. * - * @param status The status of the test request. Possible values are: * **success**, `data.responseCode`: **2xx**. * **failed**, in all other cases. You can use the value of the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot failed test webhooks. + * @param status The status of the test request. Possible values are: * **success**, + * `data.responseCode`: **2xx**. * **failed**, in all other cases. You can use the + * value of the + * [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) + * field together with the + * [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) + * value to troubleshoot failed test webhooks. * @return the current {@code TestOutput} instance, allowing for method chaining */ public TestOutput status(String status) { @@ -230,8 +314,21 @@ public TestOutput status(String status) { } /** - * The status of the test request. Possible values are: * **success**, `data.responseCode`: **2xx**. * **failed**, in all other cases. You can use the value of the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot failed test webhooks. - * @return status The status of the test request. Possible values are: * **success**, `data.responseCode`: **2xx**. * **failed**, in all other cases. You can use the value of the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot failed test webhooks. + * The status of the test request. Possible values are: * **success**, + * `data.responseCode`: **2xx**. * **failed**, in all other cases. You can use the value + * of the + * [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) + * field together with the + * [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) + * value to troubleshoot failed test webhooks. + * + * @return status The status of the test request. Possible values are: * **success**, + * `data.responseCode`: **2xx**. * **failed**, in all other cases. You can use the + * value of the + * [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) + * field together with the + * [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) + * value to troubleshoot failed test webhooks. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,9 +337,21 @@ public String getStatus() { } /** - * The status of the test request. Possible values are: * **success**, `data.responseCode`: **2xx**. * **failed**, in all other cases. You can use the value of the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot failed test webhooks. + * The status of the test request. Possible values are: * **success**, + * `data.responseCode`: **2xx**. * **failed**, in all other cases. You can use the value + * of the + * [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) + * field together with the + * [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) + * value to troubleshoot failed test webhooks. * - * @param status The status of the test request. Possible values are: * **success**, `data.responseCode`: **2xx**. * **failed**, in all other cases. You can use the value of the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot failed test webhooks. + * @param status The status of the test request. Possible values are: * **success**, + * `data.responseCode`: **2xx**. * **failed**, in all other cases. You can use the + * value of the + * [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) + * field together with the + * [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) + * value to troubleshoot failed test webhooks. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,9 +359,7 @@ public void setStatus(String status) { this.status = status; } - /** - * Return true if this TestOutput object is equal to o. - */ + /** Return true if this TestOutput object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -262,12 +369,12 @@ public boolean equals(Object o) { return false; } TestOutput testOutput = (TestOutput) o; - return Objects.equals(this.merchantId, testOutput.merchantId) && - Objects.equals(this.output, testOutput.output) && - Objects.equals(this.requestSent, testOutput.requestSent) && - Objects.equals(this.responseCode, testOutput.responseCode) && - Objects.equals(this.responseTime, testOutput.responseTime) && - Objects.equals(this.status, testOutput.status); + return Objects.equals(this.merchantId, testOutput.merchantId) + && Objects.equals(this.output, testOutput.output) + && Objects.equals(this.requestSent, testOutput.requestSent) + && Objects.equals(this.responseCode, testOutput.responseCode) + && Objects.equals(this.responseTime, testOutput.responseTime) + && Objects.equals(this.status, testOutput.status); } @Override @@ -290,8 +397,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -300,7 +406,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TestOutput given an JSON string * * @param jsonString JSON string @@ -310,11 +416,12 @@ private String toIndentedString(Object o) { public static TestOutput fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TestOutput.class); } -/** - * Convert an instance of TestOutput to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TestOutput to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TestWebhookRequest.java b/src/main/java/com/adyen/model/management/TestWebhookRequest.java index 3f32ff6c9..e36308bf5 100644 --- a/src/main/java/com/adyen/model/management/TestWebhookRequest.java +++ b/src/main/java/com/adyen/model/management/TestWebhookRequest.java @@ -2,39 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.CustomNotification; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * TestWebhookRequest - */ +/** TestWebhookRequest */ @JsonPropertyOrder({ TestWebhookRequest.JSON_PROPERTY_NOTIFICATION, TestWebhookRequest.JSON_PROPERTY_TYPES }) - public class TestWebhookRequest { public static final String JSON_PROPERTY_NOTIFICATION = "notification"; private CustomNotification notification; @@ -42,13 +31,12 @@ public class TestWebhookRequest { public static final String JSON_PROPERTY_TYPES = "types"; private List types; - public TestWebhookRequest() { - } + public TestWebhookRequest() {} /** * notification * - * @param notification + * @param notification * @return the current {@code TestWebhookRequest} instance, allowing for method chaining */ public TestWebhookRequest notification(CustomNotification notification) { @@ -58,7 +46,8 @@ public TestWebhookRequest notification(CustomNotification notification) { /** * Get notification - * @return notification + * + * @return notification */ @JsonProperty(JSON_PROPERTY_NOTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -69,7 +58,7 @@ public CustomNotification getNotification() { /** * notification * - * @param notification + * @param notification */ @JsonProperty(JSON_PROPERTY_NOTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -78,9 +67,29 @@ public void setNotification(CustomNotification notification) { } /** - * List of event codes for which to send test notifications. Only the webhook types below are supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) object. Possible values if webhook `type`: **banktransfer-notification**: * **PENDING** Possible values if webhook `type`: **report-notification**: * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * **PENDING** + * List of event codes for which to send test notifications. Only the webhook types below are + * supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * + * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * + * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * + * **CUSTOM** - set your custom notification fields in the + * [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) + * object. Possible values if webhook `type`: **banktransfer-notification**: * + * **PENDING** Possible values if webhook `type`: **report-notification**: * + * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * + * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * + * **PENDING** * - * @param types List of event codes for which to send test notifications. Only the webhook types below are supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) object. Possible values if webhook `type`: **banktransfer-notification**: * **PENDING** Possible values if webhook `type`: **report-notification**: * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * **PENDING** + * @param types List of event codes for which to send test notifications. Only the webhook types + * below are supported. Possible values if webhook `type`: **standard**: * + * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * + * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** + * * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the + * [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) + * object. Possible values if webhook `type`: **banktransfer-notification**: * + * **PENDING** Possible values if webhook `type`: **report-notification**: * + * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * + * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * + * **PENDING** * @return the current {@code TestWebhookRequest} instance, allowing for method chaining */ public TestWebhookRequest types(List types) { @@ -97,8 +106,29 @@ public TestWebhookRequest addTypesItem(String typesItem) { } /** - * List of event codes for which to send test notifications. Only the webhook types below are supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) object. Possible values if webhook `type`: **banktransfer-notification**: * **PENDING** Possible values if webhook `type`: **report-notification**: * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * **PENDING** - * @return types List of event codes for which to send test notifications. Only the webhook types below are supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) object. Possible values if webhook `type`: **banktransfer-notification**: * **PENDING** Possible values if webhook `type`: **report-notification**: * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * **PENDING** + * List of event codes for which to send test notifications. Only the webhook types below are + * supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * + * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * + * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * + * **CUSTOM** - set your custom notification fields in the + * [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) + * object. Possible values if webhook `type`: **banktransfer-notification**: * + * **PENDING** Possible values if webhook `type`: **report-notification**: * + * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * + * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * + * **PENDING** + * + * @return types List of event codes for which to send test notifications. Only the webhook types + * below are supported. Possible values if webhook `type`: **standard**: * + * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * + * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** + * * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the + * [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) + * object. Possible values if webhook `type`: **banktransfer-notification**: * + * **PENDING** Possible values if webhook `type`: **report-notification**: * + * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * + * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * + * **PENDING** */ @JsonProperty(JSON_PROPERTY_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,9 +137,29 @@ public List getTypes() { } /** - * List of event codes for which to send test notifications. Only the webhook types below are supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) object. Possible values if webhook `type`: **banktransfer-notification**: * **PENDING** Possible values if webhook `type`: **report-notification**: * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * **PENDING** + * List of event codes for which to send test notifications. Only the webhook types below are + * supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * + * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * + * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * + * **CUSTOM** - set your custom notification fields in the + * [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) + * object. Possible values if webhook `type`: **banktransfer-notification**: * + * **PENDING** Possible values if webhook `type`: **report-notification**: * + * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * + * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * + * **PENDING** * - * @param types List of event codes for which to send test notifications. Only the webhook types below are supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) object. Possible values if webhook `type`: **banktransfer-notification**: * **PENDING** Possible values if webhook `type`: **report-notification**: * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * **PENDING** + * @param types List of event codes for which to send test notifications. Only the webhook types + * below are supported. Possible values if webhook `type`: **standard**: * + * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * + * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** + * * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the + * [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) + * object. Possible values if webhook `type`: **banktransfer-notification**: * + * **PENDING** Possible values if webhook `type`: **report-notification**: * + * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * + * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * + * **PENDING** */ @JsonProperty(JSON_PROPERTY_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,9 +167,7 @@ public void setTypes(List types) { this.types = types; } - /** - * Return true if this TestWebhookRequest object is equal to o. - */ + /** Return true if this TestWebhookRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -129,8 +177,8 @@ public boolean equals(Object o) { return false; } TestWebhookRequest testWebhookRequest = (TestWebhookRequest) o; - return Objects.equals(this.notification, testWebhookRequest.notification) && - Objects.equals(this.types, testWebhookRequest.types); + return Objects.equals(this.notification, testWebhookRequest.notification) + && Objects.equals(this.types, testWebhookRequest.types); } @Override @@ -149,8 +197,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -159,21 +206,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TestWebhookRequest given an JSON string * * @param jsonString JSON string * @return An instance of TestWebhookRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to TestWebhookRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TestWebhookRequest */ public static TestWebhookRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TestWebhookRequest.class); } -/** - * Convert an instance of TestWebhookRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TestWebhookRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TestWebhookResponse.java b/src/main/java/com/adyen/model/management/TestWebhookResponse.java index 96a4899a6..a349f293e 100644 --- a/src/main/java/com/adyen/model/management/TestWebhookResponse.java +++ b/src/main/java/com/adyen/model/management/TestWebhookResponse.java @@ -2,49 +2,36 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.TestOutput; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * TestWebhookResponse - */ -@JsonPropertyOrder({ - TestWebhookResponse.JSON_PROPERTY_DATA -}) - +/** TestWebhookResponse */ +@JsonPropertyOrder({TestWebhookResponse.JSON_PROPERTY_DATA}) public class TestWebhookResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; - public TestWebhookResponse() { - } + public TestWebhookResponse() {} /** * List with test results. Each test webhook we send has a list element with the result. * - * @param data List with test results. Each test webhook we send has a list element with the result. + * @param data List with test results. Each test webhook we send has a list element with the + * result. * @return the current {@code TestWebhookResponse} instance, allowing for method chaining */ public TestWebhookResponse data(List data) { @@ -62,7 +49,9 @@ public TestWebhookResponse addDataItem(TestOutput dataItem) { /** * List with test results. Each test webhook we send has a list element with the result. - * @return data List with test results. Each test webhook we send has a list element with the result. + * + * @return data List with test results. Each test webhook we send has a list element with the + * result. */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -73,7 +62,8 @@ public List getData() { /** * List with test results. Each test webhook we send has a list element with the result. * - * @param data List with test results. Each test webhook we send has a list element with the result. + * @param data List with test results. Each test webhook we send has a list element with the + * result. */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -81,9 +71,7 @@ public void setData(List data) { this.data = data; } - /** - * Return true if this TestWebhookResponse object is equal to o. - */ + /** Return true if this TestWebhookResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -111,8 +99,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -121,21 +108,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TestWebhookResponse given an JSON string * * @param jsonString JSON string * @return An instance of TestWebhookResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to TestWebhookResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TestWebhookResponse */ public static TestWebhookResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TestWebhookResponse.class); } -/** - * Convert an instance of TestWebhookResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TestWebhookResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TicketInfo.java b/src/main/java/com/adyen/model/management/TicketInfo.java index 003feffa1..d7310398e 100644 --- a/src/main/java/com/adyen/model/management/TicketInfo.java +++ b/src/main/java/com/adyen/model/management/TicketInfo.java @@ -2,41 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TicketInfo - */ -@JsonPropertyOrder({ - TicketInfo.JSON_PROPERTY_REQUESTOR_ID -}) - +/** TicketInfo */ +@JsonPropertyOrder({TicketInfo.JSON_PROPERTY_REQUESTOR_ID}) public class TicketInfo { public static final String JSON_PROPERTY_REQUESTOR_ID = "requestorId"; private String requestorId; - public TicketInfo() { - } + public TicketInfo() {} /** * Ticket requestorId @@ -51,6 +38,7 @@ public TicketInfo requestorId(String requestorId) { /** * Ticket requestorId + * * @return requestorId Ticket requestorId */ @JsonProperty(JSON_PROPERTY_REQUESTOR_ID) @@ -70,9 +58,7 @@ public void setRequestorId(String requestorId) { this.requestorId = requestorId; } - /** - * Return true if this TicketInfo object is equal to o. - */ + /** Return true if this TicketInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,7 +95,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TicketInfo given an JSON string * * @param jsonString JSON string @@ -120,11 +105,12 @@ private String toIndentedString(Object o) { public static TicketInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TicketInfo.class); } -/** - * Convert an instance of TicketInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TicketInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Timeouts.java b/src/main/java/com/adyen/model/management/Timeouts.java index 7399c8a1f..640f0163b 100644 --- a/src/main/java/com/adyen/model/management/Timeouts.java +++ b/src/main/java/com/adyen/model/management/Timeouts.java @@ -2,46 +2,35 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Timeouts - */ -@JsonPropertyOrder({ - Timeouts.JSON_PROPERTY_FROM_ACTIVE_TO_SLEEP -}) - +/** Timeouts */ +@JsonPropertyOrder({Timeouts.JSON_PROPERTY_FROM_ACTIVE_TO_SLEEP}) public class Timeouts { public static final String JSON_PROPERTY_FROM_ACTIVE_TO_SLEEP = "fromActiveToSleep"; private Integer fromActiveToSleep; - public Timeouts() { - } + public Timeouts() {} /** - * Indicates the number of seconds of inactivity after which the terminal display goes into sleep mode. + * Indicates the number of seconds of inactivity after which the terminal display goes into sleep + * mode. * - * @param fromActiveToSleep Indicates the number of seconds of inactivity after which the terminal display goes into sleep mode. + * @param fromActiveToSleep Indicates the number of seconds of inactivity after which the terminal + * display goes into sleep mode. * @return the current {@code Timeouts} instance, allowing for method chaining */ public Timeouts fromActiveToSleep(Integer fromActiveToSleep) { @@ -50,8 +39,11 @@ public Timeouts fromActiveToSleep(Integer fromActiveToSleep) { } /** - * Indicates the number of seconds of inactivity after which the terminal display goes into sleep mode. - * @return fromActiveToSleep Indicates the number of seconds of inactivity after which the terminal display goes into sleep mode. + * Indicates the number of seconds of inactivity after which the terminal display goes into sleep + * mode. + * + * @return fromActiveToSleep Indicates the number of seconds of inactivity after which the + * terminal display goes into sleep mode. */ @JsonProperty(JSON_PROPERTY_FROM_ACTIVE_TO_SLEEP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,9 +52,11 @@ public Integer getFromActiveToSleep() { } /** - * Indicates the number of seconds of inactivity after which the terminal display goes into sleep mode. + * Indicates the number of seconds of inactivity after which the terminal display goes into sleep + * mode. * - * @param fromActiveToSleep Indicates the number of seconds of inactivity after which the terminal display goes into sleep mode. + * @param fromActiveToSleep Indicates the number of seconds of inactivity after which the terminal + * display goes into sleep mode. */ @JsonProperty(JSON_PROPERTY_FROM_ACTIVE_TO_SLEEP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +64,7 @@ public void setFromActiveToSleep(Integer fromActiveToSleep) { this.fromActiveToSleep = fromActiveToSleep; } - /** - * Return true if this Timeouts object is equal to o. - */ + /** Return true if this Timeouts object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +92,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,7 +101,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Timeouts given an JSON string * * @param jsonString JSON string @@ -120,11 +111,12 @@ private String toIndentedString(Object o) { public static Timeouts fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Timeouts.class); } -/** - * Convert an instance of Timeouts to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Timeouts to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TransactionDescriptionInfo.java b/src/main/java/com/adyen/model/management/TransactionDescriptionInfo.java index cb8ba1126..d4ded9458 100644 --- a/src/main/java/com/adyen/model/management/TransactionDescriptionInfo.java +++ b/src/main/java/com/adyen/model/management/TransactionDescriptionInfo.java @@ -2,45 +2,47 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * TransactionDescriptionInfo - */ +/** TransactionDescriptionInfo */ @JsonPropertyOrder({ TransactionDescriptionInfo.JSON_PROPERTY_DOING_BUSINESS_AS_NAME, TransactionDescriptionInfo.JSON_PROPERTY_TYPE }) - public class TransactionDescriptionInfo { public static final String JSON_PROPERTY_DOING_BUSINESS_AS_NAME = "doingBusinessAsName"; private String doingBusinessAsName; /** - * The type of transaction description you want to use: - **fixed**: The transaction description set in this request is used for all payments with this payment method. - **append**: The transaction description set in this request is used as a base for all payments with this payment method. The [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is appended to this base description. Note that if the combined length exceeds 22 characters, banks may truncate the string. - **dynamic**: Only the [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is used for payments with this payment method. + * The type of transaction description you want to use: - **fixed**: The transaction description + * set in this request is used for all payments with this payment method. - **append**: The + * transaction description set in this request is used as a base for all payments with this + * payment method. The [transaction description set in the request to process the + * payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) + * is appended to this base description. Note that if the combined length exceeds 22 characters, + * banks may truncate the string. - **dynamic**: Only the [transaction description set in the + * request to process the + * payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) + * is used for payments with this payment method. */ public enum TypeEnum { - APPEND(String.valueOf("append")), DYNAMIC(String.valueOf("dynamic")), @@ -52,7 +54,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +75,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,13 +87,17 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public TransactionDescriptionInfo() { - } + public TransactionDescriptionInfo() {} /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 + * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, + * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param doingBusinessAsName The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * @param doingBusinessAsName The text to be shown on the shopper's bank statement. We + * recommend sending a maximum of 22 characters, otherwise banks might truncate the string. + * Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ + * - ? + * /_**. * @return the current {@code TransactionDescriptionInfo} instance, allowing for method chaining */ public TransactionDescriptionInfo doingBusinessAsName(String doingBusinessAsName) { @@ -96,8 +106,14 @@ public TransactionDescriptionInfo doingBusinessAsName(String doingBusinessAsName } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. - * @return doingBusinessAsName The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 + * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, + * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * + * @return doingBusinessAsName The text to be shown on the shopper's bank statement. We + * recommend sending a maximum of 22 characters, otherwise banks might truncate the string. + * Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ + * - ? + * /_**. */ @JsonProperty(JSON_PROPERTY_DOING_BUSINESS_AS_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +122,14 @@ public String getDoingBusinessAsName() { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 + * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, + * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param doingBusinessAsName The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * @param doingBusinessAsName The text to be shown on the shopper's bank statement. We + * recommend sending a maximum of 22 characters, otherwise banks might truncate the string. + * Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ + * - ? + * /_**. */ @JsonProperty(JSON_PROPERTY_DOING_BUSINESS_AS_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,9 +138,28 @@ public void setDoingBusinessAsName(String doingBusinessAsName) { } /** - * The type of transaction description you want to use: - **fixed**: The transaction description set in this request is used for all payments with this payment method. - **append**: The transaction description set in this request is used as a base for all payments with this payment method. The [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is appended to this base description. Note that if the combined length exceeds 22 characters, banks may truncate the string. - **dynamic**: Only the [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is used for payments with this payment method. + * The type of transaction description you want to use: - **fixed**: The transaction description + * set in this request is used for all payments with this payment method. - **append**: The + * transaction description set in this request is used as a base for all payments with this + * payment method. The [transaction description set in the request to process the + * payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) + * is appended to this base description. Note that if the combined length exceeds 22 characters, + * banks may truncate the string. - **dynamic**: Only the [transaction description set in the + * request to process the + * payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) + * is used for payments with this payment method. * - * @param type The type of transaction description you want to use: - **fixed**: The transaction description set in this request is used for all payments with this payment method. - **append**: The transaction description set in this request is used as a base for all payments with this payment method. The [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is appended to this base description. Note that if the combined length exceeds 22 characters, banks may truncate the string. - **dynamic**: Only the [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is used for payments with this payment method. + * @param type The type of transaction description you want to use: - **fixed**: The transaction + * description set in this request is used for all payments with this payment method. - + * **append**: The transaction description set in this request is used as a base for all + * payments with this payment method. The [transaction description set in the request to + * process the + * payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) + * is appended to this base description. Note that if the combined length exceeds 22 + * characters, banks may truncate the string. - **dynamic**: Only the [transaction description + * set in the request to process the + * payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) + * is used for payments with this payment method. * @return the current {@code TransactionDescriptionInfo} instance, allowing for method chaining */ public TransactionDescriptionInfo type(TypeEnum type) { @@ -128,8 +168,28 @@ public TransactionDescriptionInfo type(TypeEnum type) { } /** - * The type of transaction description you want to use: - **fixed**: The transaction description set in this request is used for all payments with this payment method. - **append**: The transaction description set in this request is used as a base for all payments with this payment method. The [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is appended to this base description. Note that if the combined length exceeds 22 characters, banks may truncate the string. - **dynamic**: Only the [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is used for payments with this payment method. - * @return type The type of transaction description you want to use: - **fixed**: The transaction description set in this request is used for all payments with this payment method. - **append**: The transaction description set in this request is used as a base for all payments with this payment method. The [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is appended to this base description. Note that if the combined length exceeds 22 characters, banks may truncate the string. - **dynamic**: Only the [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is used for payments with this payment method. + * The type of transaction description you want to use: - **fixed**: The transaction description + * set in this request is used for all payments with this payment method. - **append**: The + * transaction description set in this request is used as a base for all payments with this + * payment method. The [transaction description set in the request to process the + * payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) + * is appended to this base description. Note that if the combined length exceeds 22 characters, + * banks may truncate the string. - **dynamic**: Only the [transaction description set in the + * request to process the + * payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) + * is used for payments with this payment method. + * + * @return type The type of transaction description you want to use: - **fixed**: The transaction + * description set in this request is used for all payments with this payment method. - + * **append**: The transaction description set in this request is used as a base for all + * payments with this payment method. The [transaction description set in the request to + * process the + * payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) + * is appended to this base description. Note that if the combined length exceeds 22 + * characters, banks may truncate the string. - **dynamic**: Only the [transaction description + * set in the request to process the + * payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) + * is used for payments with this payment method. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,9 +198,28 @@ public TypeEnum getType() { } /** - * The type of transaction description you want to use: - **fixed**: The transaction description set in this request is used for all payments with this payment method. - **append**: The transaction description set in this request is used as a base for all payments with this payment method. The [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is appended to this base description. Note that if the combined length exceeds 22 characters, banks may truncate the string. - **dynamic**: Only the [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is used for payments with this payment method. + * The type of transaction description you want to use: - **fixed**: The transaction description + * set in this request is used for all payments with this payment method. - **append**: The + * transaction description set in this request is used as a base for all payments with this + * payment method. The [transaction description set in the request to process the + * payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) + * is appended to this base description. Note that if the combined length exceeds 22 characters, + * banks may truncate the string. - **dynamic**: Only the [transaction description set in the + * request to process the + * payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) + * is used for payments with this payment method. * - * @param type The type of transaction description you want to use: - **fixed**: The transaction description set in this request is used for all payments with this payment method. - **append**: The transaction description set in this request is used as a base for all payments with this payment method. The [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is appended to this base description. Note that if the combined length exceeds 22 characters, banks may truncate the string. - **dynamic**: Only the [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is used for payments with this payment method. + * @param type The type of transaction description you want to use: - **fixed**: The transaction + * description set in this request is used for all payments with this payment method. - + * **append**: The transaction description set in this request is used as a base for all + * payments with this payment method. The [transaction description set in the request to + * process the + * payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) + * is appended to this base description. Note that if the combined length exceeds 22 + * characters, banks may truncate the string. - **dynamic**: Only the [transaction description + * set in the request to process the + * payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) + * is used for payments with this payment method. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,9 +227,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this TransactionDescriptionInfo object is equal to o. - */ + /** Return true if this TransactionDescriptionInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -160,8 +237,8 @@ public boolean equals(Object o) { return false; } TransactionDescriptionInfo transactionDescriptionInfo = (TransactionDescriptionInfo) o; - return Objects.equals(this.doingBusinessAsName, transactionDescriptionInfo.doingBusinessAsName) && - Objects.equals(this.type, transactionDescriptionInfo.type); + return Objects.equals(this.doingBusinessAsName, transactionDescriptionInfo.doingBusinessAsName) + && Objects.equals(this.type, transactionDescriptionInfo.type); } @Override @@ -173,15 +250,16 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TransactionDescriptionInfo {\n"); - sb.append(" doingBusinessAsName: ").append(toIndentedString(doingBusinessAsName)).append("\n"); + sb.append(" doingBusinessAsName: ") + .append(toIndentedString(doingBusinessAsName)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -190,21 +268,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransactionDescriptionInfo given an JSON string * * @param jsonString JSON string * @return An instance of TransactionDescriptionInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionDescriptionInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TransactionDescriptionInfo */ - public static TransactionDescriptionInfo fromJson(String jsonString) throws JsonProcessingException { + public static TransactionDescriptionInfo fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionDescriptionInfo.class); } -/** - * Convert an instance of TransactionDescriptionInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransactionDescriptionInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/TwintInfo.java b/src/main/java/com/adyen/model/management/TwintInfo.java index b343eceae..f74d93b6d 100644 --- a/src/main/java/com/adyen/model/management/TwintInfo.java +++ b/src/main/java/com/adyen/model/management/TwintInfo.java @@ -2,41 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TwintInfo - */ -@JsonPropertyOrder({ - TwintInfo.JSON_PROPERTY_LOGO -}) - +/** TwintInfo */ +@JsonPropertyOrder({TwintInfo.JSON_PROPERTY_LOGO}) public class TwintInfo { public static final String JSON_PROPERTY_LOGO = "logo"; private String logo; - public TwintInfo() { - } + public TwintInfo() {} /** * Twint logo. Format: Base64-encoded string. @@ -51,6 +38,7 @@ public TwintInfo logo(String logo) { /** * Twint logo. Format: Base64-encoded string. + * * @return logo Twint logo. Format: Base64-encoded string. */ @JsonProperty(JSON_PROPERTY_LOGO) @@ -70,9 +58,7 @@ public void setLogo(String logo) { this.logo = logo; } - /** - * Return true if this TwintInfo object is equal to o. - */ + /** Return true if this TwintInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,7 +95,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TwintInfo given an JSON string * * @param jsonString JSON string @@ -120,11 +105,12 @@ private String toIndentedString(Object o) { public static TwintInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TwintInfo.class); } -/** - * Convert an instance of TwintInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TwintInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/UninstallAndroidAppDetails.java b/src/main/java/com/adyen/model/management/UninstallAndroidAppDetails.java index 26580ca10..263fa99d4 100644 --- a/src/main/java/com/adyen/model/management/UninstallAndroidAppDetails.java +++ b/src/main/java/com/adyen/model/management/UninstallAndroidAppDetails.java @@ -2,45 +2,36 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * UninstallAndroidAppDetails - */ +/** UninstallAndroidAppDetails */ @JsonPropertyOrder({ UninstallAndroidAppDetails.JSON_PROPERTY_APP_ID, UninstallAndroidAppDetails.JSON_PROPERTY_TYPE }) - public class UninstallAndroidAppDetails { public static final String JSON_PROPERTY_APP_ID = "appId"; private String appId; - /** - * Type of terminal action: Uninstall an Android app. - */ + /** Type of terminal action: Uninstall an Android app. */ public enum TypeEnum { - UNINSTALLANDROIDAPP(String.valueOf("UninstallAndroidApp")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +39,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,8 +72,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public UninstallAndroidAppDetails() { - } + public UninstallAndroidAppDetails() {} /** * The unique identifier of the app to be uninstalled. @@ -93,6 +87,7 @@ public UninstallAndroidAppDetails appId(String appId) { /** * The unique identifier of the app to be uninstalled. + * * @return appId The unique identifier of the app to be uninstalled. */ @JsonProperty(JSON_PROPERTY_APP_ID) @@ -125,6 +120,7 @@ public UninstallAndroidAppDetails type(TypeEnum type) { /** * Type of terminal action: Uninstall an Android app. + * * @return type Type of terminal action: Uninstall an Android app. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -144,9 +140,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this UninstallAndroidAppDetails object is equal to o. - */ + /** Return true if this UninstallAndroidAppDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +150,8 @@ public boolean equals(Object o) { return false; } UninstallAndroidAppDetails uninstallAndroidAppDetails = (UninstallAndroidAppDetails) o; - return Objects.equals(this.appId, uninstallAndroidAppDetails.appId) && - Objects.equals(this.type, uninstallAndroidAppDetails.type); + return Objects.equals(this.appId, uninstallAndroidAppDetails.appId) + && Objects.equals(this.type, uninstallAndroidAppDetails.type); } @Override @@ -176,8 +170,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +179,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of UninstallAndroidAppDetails given an JSON string * * @param jsonString JSON string * @return An instance of UninstallAndroidAppDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to UninstallAndroidAppDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to + * UninstallAndroidAppDetails */ - public static UninstallAndroidAppDetails fromJson(String jsonString) throws JsonProcessingException { + public static UninstallAndroidAppDetails fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UninstallAndroidAppDetails.class); } -/** - * Convert an instance of UninstallAndroidAppDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of UninstallAndroidAppDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/UninstallAndroidCertificateDetails.java b/src/main/java/com/adyen/model/management/UninstallAndroidCertificateDetails.java index b968888c2..7c5efcfef 100644 --- a/src/main/java/com/adyen/model/management/UninstallAndroidCertificateDetails.java +++ b/src/main/java/com/adyen/model/management/UninstallAndroidCertificateDetails.java @@ -2,45 +2,36 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * UninstallAndroidCertificateDetails - */ +/** UninstallAndroidCertificateDetails */ @JsonPropertyOrder({ UninstallAndroidCertificateDetails.JSON_PROPERTY_CERTIFICATE_ID, UninstallAndroidCertificateDetails.JSON_PROPERTY_TYPE }) - public class UninstallAndroidCertificateDetails { public static final String JSON_PROPERTY_CERTIFICATE_ID = "certificateId"; private String certificateId; - /** - * Type of terminal action: Uninstall an Android certificate. - */ + /** Type of terminal action: Uninstall an Android certificate. */ public enum TypeEnum { - UNINSTALLANDROIDCERTIFICATE(String.valueOf("UninstallAndroidCertificate")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +39,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,14 +72,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public UninstallAndroidCertificateDetails() { - } + public UninstallAndroidCertificateDetails() {} /** * The unique identifier of the certificate to be uninstalled. * * @param certificateId The unique identifier of the certificate to be uninstalled. - * @return the current {@code UninstallAndroidCertificateDetails} instance, allowing for method chaining + * @return the current {@code UninstallAndroidCertificateDetails} instance, allowing for method + * chaining */ public UninstallAndroidCertificateDetails certificateId(String certificateId) { this.certificateId = certificateId; @@ -93,6 +88,7 @@ public UninstallAndroidCertificateDetails certificateId(String certificateId) { /** * The unique identifier of the certificate to be uninstalled. + * * @return certificateId The unique identifier of the certificate to be uninstalled. */ @JsonProperty(JSON_PROPERTY_CERTIFICATE_ID) @@ -116,7 +112,8 @@ public void setCertificateId(String certificateId) { * Type of terminal action: Uninstall an Android certificate. * * @param type Type of terminal action: Uninstall an Android certificate. - * @return the current {@code UninstallAndroidCertificateDetails} instance, allowing for method chaining + * @return the current {@code UninstallAndroidCertificateDetails} instance, allowing for method + * chaining */ public UninstallAndroidCertificateDetails type(TypeEnum type) { this.type = type; @@ -125,6 +122,7 @@ public UninstallAndroidCertificateDetails type(TypeEnum type) { /** * Type of terminal action: Uninstall an Android certificate. + * * @return type Type of terminal action: Uninstall an Android certificate. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -144,9 +142,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this UninstallAndroidCertificateDetails object is equal to o. - */ + /** Return true if this UninstallAndroidCertificateDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -155,9 +151,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UninstallAndroidCertificateDetails uninstallAndroidCertificateDetails = (UninstallAndroidCertificateDetails) o; - return Objects.equals(this.certificateId, uninstallAndroidCertificateDetails.certificateId) && - Objects.equals(this.type, uninstallAndroidCertificateDetails.type); + UninstallAndroidCertificateDetails uninstallAndroidCertificateDetails = + (UninstallAndroidCertificateDetails) o; + return Objects.equals(this.certificateId, uninstallAndroidCertificateDetails.certificateId) + && Objects.equals(this.type, uninstallAndroidCertificateDetails.type); } @Override @@ -176,8 +173,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +182,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of UninstallAndroidCertificateDetails given an JSON string * * @param jsonString JSON string * @return An instance of UninstallAndroidCertificateDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to UninstallAndroidCertificateDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to + * UninstallAndroidCertificateDetails */ - public static UninstallAndroidCertificateDetails fromJson(String jsonString) throws JsonProcessingException { + public static UninstallAndroidCertificateDetails fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UninstallAndroidCertificateDetails.class); } -/** - * Convert an instance of UninstallAndroidCertificateDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of UninstallAndroidCertificateDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Unreferenced.java b/src/main/java/com/adyen/model/management/Unreferenced.java index b36e7fa9f..835c1de0b 100644 --- a/src/main/java/com/adyen/model/management/Unreferenced.java +++ b/src/main/java/com/adyen/model/management/Unreferenced.java @@ -2,46 +2,35 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Unreferenced - */ -@JsonPropertyOrder({ - Unreferenced.JSON_PROPERTY_ENABLE_UNREFERENCED_REFUNDS -}) - +/** Unreferenced */ +@JsonPropertyOrder({Unreferenced.JSON_PROPERTY_ENABLE_UNREFERENCED_REFUNDS}) public class Unreferenced { - public static final String JSON_PROPERTY_ENABLE_UNREFERENCED_REFUNDS = "enableUnreferencedRefunds"; + public static final String JSON_PROPERTY_ENABLE_UNREFERENCED_REFUNDS = + "enableUnreferencedRefunds"; private Boolean enableUnreferencedRefunds; - public Unreferenced() { - } + public Unreferenced() {} /** * Indicates whether unreferenced refunds are enabled on the terminal. * - * @param enableUnreferencedRefunds Indicates whether unreferenced refunds are enabled on the terminal. + * @param enableUnreferencedRefunds Indicates whether unreferenced refunds are enabled on the + * terminal. * @return the current {@code Unreferenced} instance, allowing for method chaining */ public Unreferenced enableUnreferencedRefunds(Boolean enableUnreferencedRefunds) { @@ -51,7 +40,9 @@ public Unreferenced enableUnreferencedRefunds(Boolean enableUnreferencedRefunds) /** * Indicates whether unreferenced refunds are enabled on the terminal. - * @return enableUnreferencedRefunds Indicates whether unreferenced refunds are enabled on the terminal. + * + * @return enableUnreferencedRefunds Indicates whether unreferenced refunds are enabled on the + * terminal. */ @JsonProperty(JSON_PROPERTY_ENABLE_UNREFERENCED_REFUNDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -62,7 +53,8 @@ public Boolean getEnableUnreferencedRefunds() { /** * Indicates whether unreferenced refunds are enabled on the terminal. * - * @param enableUnreferencedRefunds Indicates whether unreferenced refunds are enabled on the terminal. + * @param enableUnreferencedRefunds Indicates whether unreferenced refunds are enabled on the + * terminal. */ @JsonProperty(JSON_PROPERTY_ENABLE_UNREFERENCED_REFUNDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +62,7 @@ public void setEnableUnreferencedRefunds(Boolean enableUnreferencedRefunds) { this.enableUnreferencedRefunds = enableUnreferencedRefunds; } - /** - * Return true if this Unreferenced object is equal to o. - */ + /** Return true if this Unreferenced object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -94,14 +84,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Unreferenced {\n"); - sb.append(" enableUnreferencedRefunds: ").append(toIndentedString(enableUnreferencedRefunds)).append("\n"); + sb.append(" enableUnreferencedRefunds: ") + .append(toIndentedString(enableUnreferencedRefunds)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,7 +101,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Unreferenced given an JSON string * * @param jsonString JSON string @@ -120,11 +111,12 @@ private String toIndentedString(Object o) { public static Unreferenced fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Unreferenced.class); } -/** - * Convert an instance of Unreferenced to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Unreferenced to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/UpdatableAddress.java b/src/main/java/com/adyen/model/management/UpdatableAddress.java index 729916fc8..b9cef7c60 100644 --- a/src/main/java/com/adyen/model/management/UpdatableAddress.java +++ b/src/main/java/com/adyen/model/management/UpdatableAddress.java @@ -2,31 +2,22 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * UpdatableAddress - */ +/** UpdatableAddress */ @JsonPropertyOrder({ UpdatableAddress.JSON_PROPERTY_CITY, UpdatableAddress.JSON_PROPERTY_LINE1, @@ -35,7 +26,6 @@ UpdatableAddress.JSON_PROPERTY_POSTAL_CODE, UpdatableAddress.JSON_PROPERTY_STATE_OR_PROVINCE }) - public class UpdatableAddress { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -55,8 +45,7 @@ public class UpdatableAddress { public static final String JSON_PROPERTY_STATE_OR_PROVINCE = "stateOrProvince"; private String stateOrProvince; - public UpdatableAddress() { - } + public UpdatableAddress() {} /** * The name of the city. @@ -71,6 +60,7 @@ public UpdatableAddress city(String city) { /** * The name of the city. + * * @return city The name of the city. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -103,6 +93,7 @@ public UpdatableAddress line1(String line1) { /** * The street address. + * * @return line1 The street address. */ @JsonProperty(JSON_PROPERTY_LINE1) @@ -135,6 +126,7 @@ public UpdatableAddress line2(String line2) { /** * Second address line. + * * @return line2 Second address line. */ @JsonProperty(JSON_PROPERTY_LINE2) @@ -167,6 +159,7 @@ public UpdatableAddress line3(String line3) { /** * Third address line. + * * @return line3 Third address line. */ @JsonProperty(JSON_PROPERTY_LINE3) @@ -199,6 +192,7 @@ public UpdatableAddress postalCode(String postalCode) { /** * The postal code. + * * @return postalCode The postal code. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @@ -219,9 +213,14 @@ public void setPostalCode(String postalCode) { } /** - * The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States + * The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). + * For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - + * Brazil - Canada - India - Mexico - New Zealand - United States * - * @param stateOrProvince The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States + * @param stateOrProvince The state or province code as defined in [ISO + * 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. + * Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New + * Zealand - United States * @return the current {@code UpdatableAddress} instance, allowing for method chaining */ public UpdatableAddress stateOrProvince(String stateOrProvince) { @@ -230,8 +229,14 @@ public UpdatableAddress stateOrProvince(String stateOrProvince) { } /** - * The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States - * @return stateOrProvince The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States + * The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). + * For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - + * Brazil - Canada - India - Mexico - New Zealand - United States + * + * @return stateOrProvince The state or province code as defined in [ISO + * 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. + * Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New + * Zealand - United States */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,9 +245,14 @@ public String getStateOrProvince() { } /** - * The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States + * The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). + * For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - + * Brazil - Canada - India - Mexico - New Zealand - United States * - * @param stateOrProvince The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States + * @param stateOrProvince The state or province code as defined in [ISO + * 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. + * Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New + * Zealand - United States */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,9 +260,7 @@ public void setStateOrProvince(String stateOrProvince) { this.stateOrProvince = stateOrProvince; } - /** - * Return true if this UpdatableAddress object is equal to o. - */ + /** Return true if this UpdatableAddress object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -262,12 +270,12 @@ public boolean equals(Object o) { return false; } UpdatableAddress updatableAddress = (UpdatableAddress) o; - return Objects.equals(this.city, updatableAddress.city) && - Objects.equals(this.line1, updatableAddress.line1) && - Objects.equals(this.line2, updatableAddress.line2) && - Objects.equals(this.line3, updatableAddress.line3) && - Objects.equals(this.postalCode, updatableAddress.postalCode) && - Objects.equals(this.stateOrProvince, updatableAddress.stateOrProvince); + return Objects.equals(this.city, updatableAddress.city) + && Objects.equals(this.line1, updatableAddress.line1) + && Objects.equals(this.line2, updatableAddress.line2) + && Objects.equals(this.line3, updatableAddress.line3) + && Objects.equals(this.postalCode, updatableAddress.postalCode) + && Objects.equals(this.stateOrProvince, updatableAddress.stateOrProvince); } @Override @@ -290,8 +298,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -300,7 +307,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of UpdatableAddress given an JSON string * * @param jsonString JSON string @@ -310,11 +317,12 @@ private String toIndentedString(Object o) { public static UpdatableAddress fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdatableAddress.class); } -/** - * Convert an instance of UpdatableAddress to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of UpdatableAddress to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/UpdateCompanyApiCredentialRequest.java b/src/main/java/com/adyen/model/management/UpdateCompanyApiCredentialRequest.java index bb232762f..dd6fd2fb1 100644 --- a/src/main/java/com/adyen/model/management/UpdateCompanyApiCredentialRequest.java +++ b/src/main/java/com/adyen/model/management/UpdateCompanyApiCredentialRequest.java @@ -2,33 +2,24 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * UpdateCompanyApiCredentialRequest - */ +/** UpdateCompanyApiCredentialRequest */ @JsonPropertyOrder({ UpdateCompanyApiCredentialRequest.JSON_PROPERTY_ACTIVE, UpdateCompanyApiCredentialRequest.JSON_PROPERTY_ALLOWED_ORIGINS, @@ -36,7 +27,6 @@ UpdateCompanyApiCredentialRequest.JSON_PROPERTY_DESCRIPTION, UpdateCompanyApiCredentialRequest.JSON_PROPERTY_ROLES }) - public class UpdateCompanyApiCredentialRequest { public static final String JSON_PROPERTY_ACTIVE = "active"; private Boolean active; @@ -44,7 +34,8 @@ public class UpdateCompanyApiCredentialRequest { public static final String JSON_PROPERTY_ALLOWED_ORIGINS = "allowedOrigins"; private List allowedOrigins; - public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS = "associatedMerchantAccounts"; + public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS = + "associatedMerchantAccounts"; private List associatedMerchantAccounts; public static final String JSON_PROPERTY_DESCRIPTION = "description"; @@ -53,14 +44,14 @@ public class UpdateCompanyApiCredentialRequest { public static final String JSON_PROPERTY_ROLES = "roles"; private List roles; - public UpdateCompanyApiCredentialRequest() { - } + public UpdateCompanyApiCredentialRequest() {} /** * Indicates if the API credential is enabled. * * @param active Indicates if the API credential is enabled. - * @return the current {@code UpdateCompanyApiCredentialRequest} instance, allowing for method chaining + * @return the current {@code UpdateCompanyApiCredentialRequest} instance, allowing for method + * chaining */ public UpdateCompanyApiCredentialRequest active(Boolean active) { this.active = active; @@ -69,6 +60,7 @@ public UpdateCompanyApiCredentialRequest active(Boolean active) { /** * Indicates if the API credential is enabled. + * * @return active Indicates if the API credential is enabled. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @@ -89,10 +81,15 @@ public void setActive(Boolean active) { } /** - * The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential. + * The new list of [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * for the API credential. * - * @param allowedOrigins The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential. - * @return the current {@code UpdateCompanyApiCredentialRequest} instance, allowing for method chaining + * @param allowedOrigins The new list of [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * for the API credential. + * @return the current {@code UpdateCompanyApiCredentialRequest} instance, allowing for method + * chaining */ public UpdateCompanyApiCredentialRequest allowedOrigins(List allowedOrigins) { this.allowedOrigins = allowedOrigins; @@ -108,8 +105,13 @@ public UpdateCompanyApiCredentialRequest addAllowedOriginsItem(String allowedOri } /** - * The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential. - * @return allowedOrigins The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential. + * The new list of [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * for the API credential. + * + * @return allowedOrigins The new list of [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * for the API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,9 +120,13 @@ public List getAllowedOrigins() { } /** - * The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential. + * The new list of [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * for the API credential. * - * @param allowedOrigins The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential. + * @param allowedOrigins The new list of [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * for the API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -131,15 +137,19 @@ public void setAllowedOrigins(List allowedOrigins) { /** * List of merchant accounts that the API credential has access to. * - * @param associatedMerchantAccounts List of merchant accounts that the API credential has access to. - * @return the current {@code UpdateCompanyApiCredentialRequest} instance, allowing for method chaining + * @param associatedMerchantAccounts List of merchant accounts that the API credential has access + * to. + * @return the current {@code UpdateCompanyApiCredentialRequest} instance, allowing for method + * chaining */ - public UpdateCompanyApiCredentialRequest associatedMerchantAccounts(List associatedMerchantAccounts) { + public UpdateCompanyApiCredentialRequest associatedMerchantAccounts( + List associatedMerchantAccounts) { this.associatedMerchantAccounts = associatedMerchantAccounts; return this; } - public UpdateCompanyApiCredentialRequest addAssociatedMerchantAccountsItem(String associatedMerchantAccountsItem) { + public UpdateCompanyApiCredentialRequest addAssociatedMerchantAccountsItem( + String associatedMerchantAccountsItem) { if (this.associatedMerchantAccounts == null) { this.associatedMerchantAccounts = new ArrayList<>(); } @@ -149,7 +159,9 @@ public UpdateCompanyApiCredentialRequest addAssociatedMerchantAccountsItem(Strin /** * List of merchant accounts that the API credential has access to. - * @return associatedMerchantAccounts List of merchant accounts that the API credential has access to. + * + * @return associatedMerchantAccounts List of merchant accounts that the API credential has access + * to. */ @JsonProperty(JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,7 +172,8 @@ public List getAssociatedMerchantAccounts() { /** * List of merchant accounts that the API credential has access to. * - * @param associatedMerchantAccounts List of merchant accounts that the API credential has access to. + * @param associatedMerchantAccounts List of merchant accounts that the API credential has access + * to. */ @JsonProperty(JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,7 +185,8 @@ public void setAssociatedMerchantAccounts(List associatedMerchantAccount * Description of the API credential. * * @param description Description of the API credential. - * @return the current {@code UpdateCompanyApiCredentialRequest} instance, allowing for method chaining + * @return the current {@code UpdateCompanyApiCredentialRequest} instance, allowing for method + * chaining */ public UpdateCompanyApiCredentialRequest description(String description) { this.description = description; @@ -181,6 +195,7 @@ public UpdateCompanyApiCredentialRequest description(String description) { /** * Description of the API credential. + * * @return description Description of the API credential. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -201,10 +216,16 @@ public void setDescription(String description) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the + * API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned + * to other API credentials. * - * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. - * @return the current {@code UpdateCompanyApiCredentialRequest} instance, allowing for method chaining + * @param roles List of + * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API + * credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned + * to other API credentials. + * @return the current {@code UpdateCompanyApiCredentialRequest} instance, allowing for method + * chaining */ public UpdateCompanyApiCredentialRequest roles(List roles) { this.roles = roles; @@ -220,8 +241,14 @@ public UpdateCompanyApiCredentialRequest addRolesItem(String rolesItem) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. - * @return roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the + * API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned + * to other API credentials. + * + * @return roles List of + * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API + * credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned + * to other API credentials. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -230,9 +257,14 @@ public List getRoles() { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the + * API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned + * to other API credentials. * - * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. + * @param roles List of + * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API + * credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned + * to other API credentials. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,9 +272,7 @@ public void setRoles(List roles) { this.roles = roles; } - /** - * Return true if this UpdateCompanyApiCredentialRequest object is equal to o. - */ + /** Return true if this UpdateCompanyApiCredentialRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -251,12 +281,15 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UpdateCompanyApiCredentialRequest updateCompanyApiCredentialRequest = (UpdateCompanyApiCredentialRequest) o; - return Objects.equals(this.active, updateCompanyApiCredentialRequest.active) && - Objects.equals(this.allowedOrigins, updateCompanyApiCredentialRequest.allowedOrigins) && - Objects.equals(this.associatedMerchantAccounts, updateCompanyApiCredentialRequest.associatedMerchantAccounts) && - Objects.equals(this.description, updateCompanyApiCredentialRequest.description) && - Objects.equals(this.roles, updateCompanyApiCredentialRequest.roles); + UpdateCompanyApiCredentialRequest updateCompanyApiCredentialRequest = + (UpdateCompanyApiCredentialRequest) o; + return Objects.equals(this.active, updateCompanyApiCredentialRequest.active) + && Objects.equals(this.allowedOrigins, updateCompanyApiCredentialRequest.allowedOrigins) + && Objects.equals( + this.associatedMerchantAccounts, + updateCompanyApiCredentialRequest.associatedMerchantAccounts) + && Objects.equals(this.description, updateCompanyApiCredentialRequest.description) + && Objects.equals(this.roles, updateCompanyApiCredentialRequest.roles); } @Override @@ -270,7 +303,9 @@ public String toString() { sb.append("class UpdateCompanyApiCredentialRequest {\n"); sb.append(" active: ").append(toIndentedString(active)).append("\n"); sb.append(" allowedOrigins: ").append(toIndentedString(allowedOrigins)).append("\n"); - sb.append(" associatedMerchantAccounts: ").append(toIndentedString(associatedMerchantAccounts)).append("\n"); + sb.append(" associatedMerchantAccounts: ") + .append(toIndentedString(associatedMerchantAccounts)) + .append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" roles: ").append(toIndentedString(roles)).append("\n"); sb.append("}"); @@ -278,8 +313,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -288,21 +322,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of UpdateCompanyApiCredentialRequest given an JSON string * * @param jsonString JSON string * @return An instance of UpdateCompanyApiCredentialRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to UpdateCompanyApiCredentialRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * UpdateCompanyApiCredentialRequest */ - public static UpdateCompanyApiCredentialRequest fromJson(String jsonString) throws JsonProcessingException { + public static UpdateCompanyApiCredentialRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdateCompanyApiCredentialRequest.class); } -/** - * Convert an instance of UpdateCompanyApiCredentialRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of UpdateCompanyApiCredentialRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/UpdateCompanyUserRequest.java b/src/main/java/com/adyen/model/management/UpdateCompanyUserRequest.java index 132b37d0d..2f35aaf35 100644 --- a/src/main/java/com/adyen/model/management/UpdateCompanyUserRequest.java +++ b/src/main/java/com/adyen/model/management/UpdateCompanyUserRequest.java @@ -2,34 +2,24 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.Name2; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * UpdateCompanyUserRequest - */ +/** UpdateCompanyUserRequest */ @JsonPropertyOrder({ UpdateCompanyUserRequest.JSON_PROPERTY_ACCOUNT_GROUPS, UpdateCompanyUserRequest.JSON_PROPERTY_ACTIVE, @@ -40,7 +30,6 @@ UpdateCompanyUserRequest.JSON_PROPERTY_ROLES, UpdateCompanyUserRequest.JSON_PROPERTY_TIME_ZONE_CODE }) - public class UpdateCompanyUserRequest { public static final String JSON_PROPERTY_ACCOUNT_GROUPS = "accountGroups"; private List accountGroups; @@ -48,7 +37,8 @@ public class UpdateCompanyUserRequest { public static final String JSON_PROPERTY_ACTIVE = "active"; private Boolean active; - public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS = "associatedMerchantAccounts"; + public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS = + "associatedMerchantAccounts"; private List associatedMerchantAccounts; public static final String JSON_PROPERTY_EMAIL = "email"; @@ -66,13 +56,15 @@ public class UpdateCompanyUserRequest { public static final String JSON_PROPERTY_TIME_ZONE_CODE = "timeZoneCode"; private String timeZoneCode; - public UpdateCompanyUserRequest() { - } + public UpdateCompanyUserRequest() {} /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) + * associated with this user. * - * @param accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * @param accountGroups The list of [account + * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with + * this user. * @return the current {@code UpdateCompanyUserRequest} instance, allowing for method chaining */ public UpdateCompanyUserRequest accountGroups(List accountGroups) { @@ -89,8 +81,12 @@ public UpdateCompanyUserRequest addAccountGroupsItem(String accountGroupsItem) { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. - * @return accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) + * associated with this user. + * + * @return accountGroups The list of [account + * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with + * this user. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,9 +95,12 @@ public List getAccountGroups() { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) + * associated with this user. * - * @param accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * @param accountGroups The list of [account + * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with + * this user. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -122,6 +121,7 @@ public UpdateCompanyUserRequest active(Boolean active) { /** * Indicates whether this user is active. + * * @return active Indicates whether this user is active. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @@ -142,17 +142,23 @@ public void setActive(Boolean active) { } /** - * The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) to associate the user with. + * The list of [merchant + * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) to associate the + * user with. * - * @param associatedMerchantAccounts The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) to associate the user with. + * @param associatedMerchantAccounts The list of [merchant + * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) to associate + * the user with. * @return the current {@code UpdateCompanyUserRequest} instance, allowing for method chaining */ - public UpdateCompanyUserRequest associatedMerchantAccounts(List associatedMerchantAccounts) { + public UpdateCompanyUserRequest associatedMerchantAccounts( + List associatedMerchantAccounts) { this.associatedMerchantAccounts = associatedMerchantAccounts; return this; } - public UpdateCompanyUserRequest addAssociatedMerchantAccountsItem(String associatedMerchantAccountsItem) { + public UpdateCompanyUserRequest addAssociatedMerchantAccountsItem( + String associatedMerchantAccountsItem) { if (this.associatedMerchantAccounts == null) { this.associatedMerchantAccounts = new ArrayList<>(); } @@ -161,8 +167,13 @@ public UpdateCompanyUserRequest addAssociatedMerchantAccountsItem(String associa } /** - * The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) to associate the user with. - * @return associatedMerchantAccounts The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) to associate the user with. + * The list of [merchant + * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) to associate the + * user with. + * + * @return associatedMerchantAccounts The list of [merchant + * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) to associate + * the user with. */ @JsonProperty(JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -171,9 +182,13 @@ public List getAssociatedMerchantAccounts() { } /** - * The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) to associate the user with. + * The list of [merchant + * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) to associate the + * user with. * - * @param associatedMerchantAccounts The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) to associate the user with. + * @param associatedMerchantAccounts The list of [merchant + * accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) to associate + * the user with. */ @JsonProperty(JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,6 +209,7 @@ public UpdateCompanyUserRequest email(String email) { /** * The email address of the user. + * * @return email The email address of the user. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -214,9 +230,13 @@ public void setEmail(String email) { } /** - * The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** + * The requested login method for the user. To use SSO, you must already have SSO configured with + * Adyen before creating the user. Possible values: **Username & account**, **Email**, or + * **SSO** * - * @param loginMethod The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** + * @param loginMethod The requested login method for the user. To use SSO, you must already have + * SSO configured with Adyen before creating the user. Possible values: **Username & + * account**, **Email**, or **SSO** * @return the current {@code UpdateCompanyUserRequest} instance, allowing for method chaining */ public UpdateCompanyUserRequest loginMethod(String loginMethod) { @@ -225,8 +245,13 @@ public UpdateCompanyUserRequest loginMethod(String loginMethod) { } /** - * The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** - * @return loginMethod The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** + * The requested login method for the user. To use SSO, you must already have SSO configured with + * Adyen before creating the user. Possible values: **Username & account**, **Email**, or + * **SSO** + * + * @return loginMethod The requested login method for the user. To use SSO, you must already have + * SSO configured with Adyen before creating the user. Possible values: **Username & + * account**, **Email**, or **SSO** */ @JsonProperty(JSON_PROPERTY_LOGIN_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -235,9 +260,13 @@ public String getLoginMethod() { } /** - * The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** + * The requested login method for the user. To use SSO, you must already have SSO configured with + * Adyen before creating the user. Possible values: **Username & account**, **Email**, or + * **SSO** * - * @param loginMethod The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** + * @param loginMethod The requested login method for the user. To use SSO, you must already have + * SSO configured with Adyen before creating the user. Possible values: **Username & + * account**, **Email**, or **SSO** */ @JsonProperty(JSON_PROPERTY_LOGIN_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -248,7 +277,7 @@ public void setLoginMethod(String loginMethod) { /** * name * - * @param name + * @param name * @return the current {@code UpdateCompanyUserRequest} instance, allowing for method chaining */ public UpdateCompanyUserRequest name(Name2 name) { @@ -258,7 +287,8 @@ public UpdateCompanyUserRequest name(Name2 name) { /** * Get name - * @return name + * + * @return name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -269,7 +299,7 @@ public Name2 getName() { /** * name * - * @param name + * @param name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -298,6 +328,7 @@ public UpdateCompanyUserRequest addRolesItem(String rolesItem) { /** * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. + * * @return roles The list of [roles](https://docs.adyen.com/account/user-roles) for this user. */ @JsonProperty(JSON_PROPERTY_ROLES) @@ -318,9 +349,12 @@ public void setRoles(List roles) { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the + * time zone of the user. For example, **Europe/Amsterdam**. * - * @param timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * @param timeZoneCode The [tz database + * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the + * user. For example, **Europe/Amsterdam**. * @return the current {@code UpdateCompanyUserRequest} instance, allowing for method chaining */ public UpdateCompanyUserRequest timeZoneCode(String timeZoneCode) { @@ -329,8 +363,12 @@ public UpdateCompanyUserRequest timeZoneCode(String timeZoneCode) { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. - * @return timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the + * time zone of the user. For example, **Europe/Amsterdam**. + * + * @return timeZoneCode The [tz database + * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the + * user. For example, **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -339,9 +377,12 @@ public String getTimeZoneCode() { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the + * time zone of the user. For example, **Europe/Amsterdam**. * - * @param timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * @param timeZoneCode The [tz database + * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the + * user. For example, **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -349,9 +390,7 @@ public void setTimeZoneCode(String timeZoneCode) { this.timeZoneCode = timeZoneCode; } - /** - * Return true if this UpdateCompanyUserRequest object is equal to o. - */ + /** Return true if this UpdateCompanyUserRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -361,19 +400,28 @@ public boolean equals(Object o) { return false; } UpdateCompanyUserRequest updateCompanyUserRequest = (UpdateCompanyUserRequest) o; - return Objects.equals(this.accountGroups, updateCompanyUserRequest.accountGroups) && - Objects.equals(this.active, updateCompanyUserRequest.active) && - Objects.equals(this.associatedMerchantAccounts, updateCompanyUserRequest.associatedMerchantAccounts) && - Objects.equals(this.email, updateCompanyUserRequest.email) && - Objects.equals(this.loginMethod, updateCompanyUserRequest.loginMethod) && - Objects.equals(this.name, updateCompanyUserRequest.name) && - Objects.equals(this.roles, updateCompanyUserRequest.roles) && - Objects.equals(this.timeZoneCode, updateCompanyUserRequest.timeZoneCode); + return Objects.equals(this.accountGroups, updateCompanyUserRequest.accountGroups) + && Objects.equals(this.active, updateCompanyUserRequest.active) + && Objects.equals( + this.associatedMerchantAccounts, updateCompanyUserRequest.associatedMerchantAccounts) + && Objects.equals(this.email, updateCompanyUserRequest.email) + && Objects.equals(this.loginMethod, updateCompanyUserRequest.loginMethod) + && Objects.equals(this.name, updateCompanyUserRequest.name) + && Objects.equals(this.roles, updateCompanyUserRequest.roles) + && Objects.equals(this.timeZoneCode, updateCompanyUserRequest.timeZoneCode); } @Override public int hashCode() { - return Objects.hash(accountGroups, active, associatedMerchantAccounts, email, loginMethod, name, roles, timeZoneCode); + return Objects.hash( + accountGroups, + active, + associatedMerchantAccounts, + email, + loginMethod, + name, + roles, + timeZoneCode); } @Override @@ -382,7 +430,9 @@ public String toString() { sb.append("class UpdateCompanyUserRequest {\n"); sb.append(" accountGroups: ").append(toIndentedString(accountGroups)).append("\n"); sb.append(" active: ").append(toIndentedString(active)).append("\n"); - sb.append(" associatedMerchantAccounts: ").append(toIndentedString(associatedMerchantAccounts)).append("\n"); + sb.append(" associatedMerchantAccounts: ") + .append(toIndentedString(associatedMerchantAccounts)) + .append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" loginMethod: ").append(toIndentedString(loginMethod)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); @@ -393,8 +443,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -403,21 +452,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of UpdateCompanyUserRequest given an JSON string * * @param jsonString JSON string * @return An instance of UpdateCompanyUserRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to UpdateCompanyUserRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * UpdateCompanyUserRequest */ - public static UpdateCompanyUserRequest fromJson(String jsonString) throws JsonProcessingException { + public static UpdateCompanyUserRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdateCompanyUserRequest.class); } -/** - * Convert an instance of UpdateCompanyUserRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of UpdateCompanyUserRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/UpdateCompanyWebhookRequest.java b/src/main/java/com/adyen/model/management/UpdateCompanyWebhookRequest.java index c18101033..a5db6c7b6 100644 --- a/src/main/java/com/adyen/model/management/UpdateCompanyWebhookRequest.java +++ b/src/main/java/com/adyen/model/management/UpdateCompanyWebhookRequest.java @@ -2,34 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.AdditionalSettings; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * UpdateCompanyWebhookRequest - */ +/** UpdateCompanyWebhookRequest */ @JsonPropertyOrder({ UpdateCompanyWebhookRequest.JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE, UpdateCompanyWebhookRequest.JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE, @@ -47,15 +41,17 @@ UpdateCompanyWebhookRequest.JSON_PROPERTY_URL, UpdateCompanyWebhookRequest.JSON_PROPERTY_USERNAME }) - public class UpdateCompanyWebhookRequest { - public static final String JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE = "acceptsExpiredCertificate"; + public static final String JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE = + "acceptsExpiredCertificate"; private Boolean acceptsExpiredCertificate; - public static final String JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE = "acceptsSelfSignedCertificate"; + public static final String JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE = + "acceptsSelfSignedCertificate"; private Boolean acceptsSelfSignedCertificate; - public static final String JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE = "acceptsUntrustedRootCertificate"; + public static final String JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE = + "acceptsUntrustedRootCertificate"; private Boolean acceptsUntrustedRootCertificate; public static final String JSON_PROPERTY_ACTIVE = "active"; @@ -65,10 +61,9 @@ public class UpdateCompanyWebhookRequest { private AdditionalSettings additionalSettings; /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** */ public enum CommunicationFormatEnum { - HTTP(String.valueOf("http")), JSON(String.valueOf("json")), @@ -80,7 +75,7 @@ public enum CommunicationFormatEnum { private String value; CommunicationFormatEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -101,7 +96,11 @@ public static CommunicationFormatEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("CommunicationFormatEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CommunicationFormatEnum.values())); + LOG.warning( + "CommunicationFormatEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(CommunicationFormatEnum.values())); return null; } } @@ -113,10 +112,11 @@ public static CommunicationFormatEnum fromValue(String value) { private String description; /** - * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible + * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not + * specified, the webhook will use `sslVersion`: **TLSv1.2**. */ public enum EncryptionProtocolEnum { - HTTP(String.valueOf("HTTP")), TLSV1_2(String.valueOf("TLSv1.2")), @@ -128,7 +128,7 @@ public enum EncryptionProtocolEnum { private String value; EncryptionProtocolEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -149,7 +149,11 @@ public static EncryptionProtocolEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("EncryptionProtocolEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(EncryptionProtocolEnum.values())); + LOG.warning( + "EncryptionProtocolEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(EncryptionProtocolEnum.values())); return null; } } @@ -158,22 +162,26 @@ public static EncryptionProtocolEnum fromValue(String value) { private EncryptionProtocolEnum encryptionProtocol; /** - * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **includeAccounts**: The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts**: The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. + * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * + * **includeAccounts**: The webhook is configured for the merchant accounts listed in + * `filterMerchantAccounts`. * **excludeAccounts**: The webhook is not configured for + * the merchant accounts listed in `filterMerchantAccounts`. * **allAccounts**: Includes + * all merchant accounts, and does not require specifying `filterMerchantAccounts`. */ public enum FilterMerchantAccountTypeEnum { - ALLACCOUNTS(String.valueOf("allAccounts")), EXCLUDEACCOUNTS(String.valueOf("excludeAccounts")), INCLUDEACCOUNTS(String.valueOf("includeAccounts")); - private static final Logger LOG = Logger.getLogger(FilterMerchantAccountTypeEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(FilterMerchantAccountTypeEnum.class.getName()); private String value; FilterMerchantAccountTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -194,22 +202,27 @@ public static FilterMerchantAccountTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FilterMerchantAccountTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FilterMerchantAccountTypeEnum.values())); + LOG.warning( + "FilterMerchantAccountTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FilterMerchantAccountTypeEnum.values())); return null; } } - public static final String JSON_PROPERTY_FILTER_MERCHANT_ACCOUNT_TYPE = "filterMerchantAccountType"; + public static final String JSON_PROPERTY_FILTER_MERCHANT_ACCOUNT_TYPE = + "filterMerchantAccountType"; private FilterMerchantAccountTypeEnum filterMerchantAccountType; public static final String JSON_PROPERTY_FILTER_MERCHANT_ACCOUNTS = "filterMerchantAccounts"; private List filterMerchantAccounts; /** - * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** + * Default Value: **public**. */ public enum NetworkTypeEnum { - LOCAL(String.valueOf("local")), PUBLIC(String.valueOf("public")); @@ -219,7 +232,7 @@ public enum NetworkTypeEnum { private String value; NetworkTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -240,7 +253,11 @@ public static NetworkTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("NetworkTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(NetworkTypeEnum.values())); + LOG.warning( + "NetworkTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(NetworkTypeEnum.values())); return null; } } @@ -260,13 +277,13 @@ public static NetworkTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public UpdateCompanyWebhookRequest() { - } + public UpdateCompanyWebhookRequest() {} /** * Indicates if expired SSL certificates are accepted. Default value: **false**. * - * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default value: **false**. + * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default + * value: **false**. * @return the current {@code UpdateCompanyWebhookRequest} instance, allowing for method chaining */ public UpdateCompanyWebhookRequest acceptsExpiredCertificate(Boolean acceptsExpiredCertificate) { @@ -276,7 +293,9 @@ public UpdateCompanyWebhookRequest acceptsExpiredCertificate(Boolean acceptsExpi /** * Indicates if expired SSL certificates are accepted. Default value: **false**. - * @return acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default value: **false**. + * + * @return acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default + * value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -287,7 +306,8 @@ public Boolean getAcceptsExpiredCertificate() { /** * Indicates if expired SSL certificates are accepted. Default value: **false**. * - * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default value: **false**. + * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default + * value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -298,17 +318,21 @@ public void setAcceptsExpiredCertificate(Boolean acceptsExpiredCertificate) { /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. * - * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. Default value: **false**. + * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. + * Default value: **false**. * @return the current {@code UpdateCompanyWebhookRequest} instance, allowing for method chaining */ - public UpdateCompanyWebhookRequest acceptsSelfSignedCertificate(Boolean acceptsSelfSignedCertificate) { + public UpdateCompanyWebhookRequest acceptsSelfSignedCertificate( + Boolean acceptsSelfSignedCertificate) { this.acceptsSelfSignedCertificate = acceptsSelfSignedCertificate; return this; } /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. - * @return acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. Default value: **false**. + * + * @return acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. + * Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -319,7 +343,8 @@ public Boolean getAcceptsSelfSignedCertificate() { /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. * - * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. Default value: **false**. + * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. + * Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -330,17 +355,21 @@ public void setAcceptsSelfSignedCertificate(Boolean acceptsSelfSignedCertificate /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. * - * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. Default value: **false**. + * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. + * Default value: **false**. * @return the current {@code UpdateCompanyWebhookRequest} instance, allowing for method chaining */ - public UpdateCompanyWebhookRequest acceptsUntrustedRootCertificate(Boolean acceptsUntrustedRootCertificate) { + public UpdateCompanyWebhookRequest acceptsUntrustedRootCertificate( + Boolean acceptsUntrustedRootCertificate) { this.acceptsUntrustedRootCertificate = acceptsUntrustedRootCertificate; return this; } /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. - * @return acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. Default value: **false**. + * + * @return acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. + * Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -351,7 +380,8 @@ public Boolean getAcceptsUntrustedRootCertificate() { /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. * - * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. Default value: **false**. + * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. + * Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -360,9 +390,11 @@ public void setAcceptsUntrustedRootCertificate(Boolean acceptsUntrustedRootCerti } /** - * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. + * Indicates if the webhook configuration is active. The field must be **true** for us to send + * webhooks about events related an account. * - * @param active Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. + * @param active Indicates if the webhook configuration is active. The field must be **true** for + * us to send webhooks about events related an account. * @return the current {@code UpdateCompanyWebhookRequest} instance, allowing for method chaining */ public UpdateCompanyWebhookRequest active(Boolean active) { @@ -371,8 +403,11 @@ public UpdateCompanyWebhookRequest active(Boolean active) { } /** - * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. - * @return active Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. + * Indicates if the webhook configuration is active. The field must be **true** for us to send + * webhooks about events related an account. + * + * @return active Indicates if the webhook configuration is active. The field must be **true** for + * us to send webhooks about events related an account. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -381,9 +416,11 @@ public Boolean getActive() { } /** - * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. + * Indicates if the webhook configuration is active. The field must be **true** for us to send + * webhooks about events related an account. * - * @param active Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. + * @param active Indicates if the webhook configuration is active. The field must be **true** for + * us to send webhooks about events related an account. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -394,7 +431,7 @@ public void setActive(Boolean active) { /** * additionalSettings * - * @param additionalSettings + * @param additionalSettings * @return the current {@code UpdateCompanyWebhookRequest} instance, allowing for method chaining */ public UpdateCompanyWebhookRequest additionalSettings(AdditionalSettings additionalSettings) { @@ -404,7 +441,8 @@ public UpdateCompanyWebhookRequest additionalSettings(AdditionalSettings additio /** * Get additionalSettings - * @return additionalSettings + * + * @return additionalSettings */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -415,7 +453,7 @@ public AdditionalSettings getAdditionalSettings() { /** * additionalSettings * - * @param additionalSettings + * @param additionalSettings */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -424,19 +462,23 @@ public void setAdditionalSettings(AdditionalSettings additionalSettings) { } /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** * - * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * + * **soap** * **http** * **json** * @return the current {@code UpdateCompanyWebhookRequest} instance, allowing for method chaining */ - public UpdateCompanyWebhookRequest communicationFormat(CommunicationFormatEnum communicationFormat) { + public UpdateCompanyWebhookRequest communicationFormat( + CommunicationFormatEnum communicationFormat) { this.communicationFormat = communicationFormat; return this; } /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** - * @return communicationFormat Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * + * @return communicationFormat Format or protocol for receiving webhooks. Possible values: * + * **soap** * **http** * **json** */ @JsonProperty(JSON_PROPERTY_COMMUNICATION_FORMAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -445,9 +487,10 @@ public CommunicationFormatEnum getCommunicationFormat() { } /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** * - * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * + * **soap** * **http** * **json** */ @JsonProperty(JSON_PROPERTY_COMMUNICATION_FORMAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -468,6 +511,7 @@ public UpdateCompanyWebhookRequest description(String description) { /** * Your description for this webhook configuration. + * * @return description Your description for this webhook configuration. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -488,9 +532,14 @@ public void setDescription(String description) { } /** - * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible + * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not + * specified, the webhook will use `sslVersion`: **TLSv1.2**. * - * @param encryptionProtocol SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * @param encryptionProtocol SSL version to access the public webhook URL specified in the + * `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only + * allowed on Test environment. If not specified, the webhook will use `sslVersion`: + * **TLSv1.2**. * @return the current {@code UpdateCompanyWebhookRequest} instance, allowing for method chaining */ public UpdateCompanyWebhookRequest encryptionProtocol(EncryptionProtocolEnum encryptionProtocol) { @@ -499,8 +548,14 @@ public UpdateCompanyWebhookRequest encryptionProtocol(EncryptionProtocolEnum enc } /** - * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. - * @return encryptionProtocol SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible + * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not + * specified, the webhook will use `sslVersion`: **TLSv1.2**. + * + * @return encryptionProtocol SSL version to access the public webhook URL specified in the + * `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only + * allowed on Test environment. If not specified, the webhook will use `sslVersion`: + * **TLSv1.2**. */ @JsonProperty(JSON_PROPERTY_ENCRYPTION_PROTOCOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -509,9 +564,14 @@ public EncryptionProtocolEnum getEncryptionProtocol() { } /** - * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible + * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not + * specified, the webhook will use `sslVersion`: **TLSv1.2**. * - * @param encryptionProtocol SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * @param encryptionProtocol SSL version to access the public webhook URL specified in the + * `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only + * allowed on Test environment. If not specified, the webhook will use `sslVersion`: + * **TLSv1.2**. */ @JsonProperty(JSON_PROPERTY_ENCRYPTION_PROTOCOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -520,19 +580,39 @@ public void setEncryptionProtocol(EncryptionProtocolEnum encryptionProtocol) { } /** - * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **includeAccounts**: The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts**: The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. + * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * + * **includeAccounts**: The webhook is configured for the merchant accounts listed in + * `filterMerchantAccounts`. * **excludeAccounts**: The webhook is not configured for + * the merchant accounts listed in `filterMerchantAccounts`. * **allAccounts**: Includes + * all merchant accounts, and does not require specifying `filterMerchantAccounts`. * - * @param filterMerchantAccountType Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **includeAccounts**: The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts**: The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. + * @param filterMerchantAccountType Shows how merchant accounts are filtered when configuring the + * webhook. Possible values: * **includeAccounts**: The webhook is configured for the merchant + * accounts listed in `filterMerchantAccounts`. * **excludeAccounts**: The webhook + * is not configured for the merchant accounts listed in `filterMerchantAccounts`. * + * **allAccounts**: Includes all merchant accounts, and does not require specifying + * `filterMerchantAccounts`. * @return the current {@code UpdateCompanyWebhookRequest} instance, allowing for method chaining */ - public UpdateCompanyWebhookRequest filterMerchantAccountType(FilterMerchantAccountTypeEnum filterMerchantAccountType) { + public UpdateCompanyWebhookRequest filterMerchantAccountType( + FilterMerchantAccountTypeEnum filterMerchantAccountType) { this.filterMerchantAccountType = filterMerchantAccountType; return this; } /** - * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **includeAccounts**: The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts**: The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. - * @return filterMerchantAccountType Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **includeAccounts**: The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts**: The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. + * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * + * **includeAccounts**: The webhook is configured for the merchant accounts listed in + * `filterMerchantAccounts`. * **excludeAccounts**: The webhook is not configured for + * the merchant accounts listed in `filterMerchantAccounts`. * **allAccounts**: Includes + * all merchant accounts, and does not require specifying `filterMerchantAccounts`. + * + * @return filterMerchantAccountType Shows how merchant accounts are filtered when configuring the + * webhook. Possible values: * **includeAccounts**: The webhook is configured for the merchant + * accounts listed in `filterMerchantAccounts`. * **excludeAccounts**: The webhook + * is not configured for the merchant accounts listed in `filterMerchantAccounts`. * + * **allAccounts**: Includes all merchant accounts, and does not require specifying + * `filterMerchantAccounts`. */ @JsonProperty(JSON_PROPERTY_FILTER_MERCHANT_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -541,20 +621,37 @@ public FilterMerchantAccountTypeEnum getFilterMerchantAccountType() { } /** - * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **includeAccounts**: The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts**: The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. + * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * + * **includeAccounts**: The webhook is configured for the merchant accounts listed in + * `filterMerchantAccounts`. * **excludeAccounts**: The webhook is not configured for + * the merchant accounts listed in `filterMerchantAccounts`. * **allAccounts**: Includes + * all merchant accounts, and does not require specifying `filterMerchantAccounts`. * - * @param filterMerchantAccountType Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **includeAccounts**: The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts**: The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. + * @param filterMerchantAccountType Shows how merchant accounts are filtered when configuring the + * webhook. Possible values: * **includeAccounts**: The webhook is configured for the merchant + * accounts listed in `filterMerchantAccounts`. * **excludeAccounts**: The webhook + * is not configured for the merchant accounts listed in `filterMerchantAccounts`. * + * **allAccounts**: Includes all merchant accounts, and does not require specifying + * `filterMerchantAccounts`. */ @JsonProperty(JSON_PROPERTY_FILTER_MERCHANT_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFilterMerchantAccountType(FilterMerchantAccountTypeEnum filterMerchantAccountType) { + public void setFilterMerchantAccountType( + FilterMerchantAccountTypeEnum filterMerchantAccountType) { this.filterMerchantAccountType = filterMerchantAccountType; } /** - * A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. + * A list of merchant account names that are included or excluded from receiving the webhook. + * Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. + * Required if `filterMerchantAccountType` is either: * **includeAccounts** * + * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. * - * @param filterMerchantAccounts A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. + * @param filterMerchantAccounts A list of merchant account names that are included or excluded + * from receiving the webhook. Inclusion or exclusion is based on the value defined for + * `filterMerchantAccountType`. Required if `filterMerchantAccountType` is + * either: * **includeAccounts** * **excludeAccounts** Not needed for + * `filterMerchantAccountType`: **allAccounts**. * @return the current {@code UpdateCompanyWebhookRequest} instance, allowing for method chaining */ public UpdateCompanyWebhookRequest filterMerchantAccounts(List filterMerchantAccounts) { @@ -562,7 +659,8 @@ public UpdateCompanyWebhookRequest filterMerchantAccounts(List filterMer return this; } - public UpdateCompanyWebhookRequest addFilterMerchantAccountsItem(String filterMerchantAccountsItem) { + public UpdateCompanyWebhookRequest addFilterMerchantAccountsItem( + String filterMerchantAccountsItem) { if (this.filterMerchantAccounts == null) { this.filterMerchantAccounts = new ArrayList<>(); } @@ -571,8 +669,16 @@ public UpdateCompanyWebhookRequest addFilterMerchantAccountsItem(String filterMe } /** - * A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. - * @return filterMerchantAccounts A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. + * A list of merchant account names that are included or excluded from receiving the webhook. + * Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. + * Required if `filterMerchantAccountType` is either: * **includeAccounts** * + * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. + * + * @return filterMerchantAccounts A list of merchant account names that are included or excluded + * from receiving the webhook. Inclusion or exclusion is based on the value defined for + * `filterMerchantAccountType`. Required if `filterMerchantAccountType` is + * either: * **includeAccounts** * **excludeAccounts** Not needed for + * `filterMerchantAccountType`: **allAccounts**. */ @JsonProperty(JSON_PROPERTY_FILTER_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -581,9 +687,16 @@ public List getFilterMerchantAccounts() { } /** - * A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. + * A list of merchant account names that are included or excluded from receiving the webhook. + * Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. + * Required if `filterMerchantAccountType` is either: * **includeAccounts** * + * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. * - * @param filterMerchantAccounts A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. + * @param filterMerchantAccounts A list of merchant account names that are included or excluded + * from receiving the webhook. Inclusion or exclusion is based on the value defined for + * `filterMerchantAccountType`. Required if `filterMerchantAccountType` is + * either: * **includeAccounts** * **excludeAccounts** Not needed for + * `filterMerchantAccountType`: **allAccounts**. */ @JsonProperty(JSON_PROPERTY_FILTER_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -592,9 +705,11 @@ public void setFilterMerchantAccounts(List filterMerchantAccounts) { } /** - * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** + * Default Value: **public**. * - * @param networkType Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. + * @param networkType Network type for Terminal API notification webhooks. Possible values: * + * **public** * **local** Default Value: **public**. * @return the current {@code UpdateCompanyWebhookRequest} instance, allowing for method chaining */ public UpdateCompanyWebhookRequest networkType(NetworkTypeEnum networkType) { @@ -603,8 +718,11 @@ public UpdateCompanyWebhookRequest networkType(NetworkTypeEnum networkType) { } /** - * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. - * @return networkType Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** + * Default Value: **public**. + * + * @return networkType Network type for Terminal API notification webhooks. Possible values: * + * **public** * **local** Default Value: **public**. */ @JsonProperty(JSON_PROPERTY_NETWORK_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -613,9 +731,11 @@ public NetworkTypeEnum getNetworkType() { } /** - * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** + * Default Value: **public**. * - * @param networkType Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. + * @param networkType Network type for Terminal API notification webhooks. Possible values: * + * **public** * **local** Default Value: **public**. */ @JsonProperty(JSON_PROPERTY_NETWORK_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -636,6 +756,7 @@ public UpdateCompanyWebhookRequest password(String password) { /** * Password to access the webhook URL. + * * @return password Password to access the webhook URL. */ @JsonProperty(JSON_PROPERTY_PASSWORD) @@ -656,9 +777,11 @@ public void setPassword(String password) { } /** - * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only + * applies if `communicationFormat`: **soap**. * - * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. + * Default value: **false**. Only applies if `communicationFormat`: **soap**. * @return the current {@code UpdateCompanyWebhookRequest} instance, allowing for method chaining */ public UpdateCompanyWebhookRequest populateSoapActionHeader(Boolean populateSoapActionHeader) { @@ -667,8 +790,11 @@ public UpdateCompanyWebhookRequest populateSoapActionHeader(Boolean populateSoap } /** - * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. - * @return populateSoapActionHeader Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only + * applies if `communicationFormat`: **soap**. + * + * @return populateSoapActionHeader Indicates if the SOAP action header needs to be populated. + * Default value: **false**. Only applies if `communicationFormat`: **soap**. */ @JsonProperty(JSON_PROPERTY_POPULATE_SOAP_ACTION_HEADER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -677,9 +803,11 @@ public Boolean getPopulateSoapActionHeader() { } /** - * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only + * applies if `communicationFormat`: **soap**. * - * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. + * Default value: **false**. Only applies if `communicationFormat`: **soap**. */ @JsonProperty(JSON_PROPERTY_POPULATE_SOAP_ACTION_HEADER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -688,9 +816,11 @@ public void setPopulateSoapActionHeader(Boolean populateSoapActionHeader) { } /** - * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + * Public URL where webhooks will be sent, for example + * **https://www.domain.com/webhook-endpoint**. * - * @param url Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + * @param url Public URL where webhooks will be sent, for example + * **https://www.domain.com/webhook-endpoint**. * @return the current {@code UpdateCompanyWebhookRequest} instance, allowing for method chaining */ public UpdateCompanyWebhookRequest url(String url) { @@ -699,8 +829,11 @@ public UpdateCompanyWebhookRequest url(String url) { } /** - * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. - * @return url Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + * Public URL where webhooks will be sent, for example + * **https://www.domain.com/webhook-endpoint**. + * + * @return url Public URL where webhooks will be sent, for example + * **https://www.domain.com/webhook-endpoint**. */ @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -709,9 +842,11 @@ public String getUrl() { } /** - * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + * Public URL where webhooks will be sent, for example + * **https://www.domain.com/webhook-endpoint**. * - * @param url Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + * @param url Public URL where webhooks will be sent, for example + * **https://www.domain.com/webhook-endpoint**. */ @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -732,6 +867,7 @@ public UpdateCompanyWebhookRequest username(String username) { /** * Username to access the webhook URL. + * * @return username Username to access the webhook URL. */ @JsonProperty(JSON_PROPERTY_USERNAME) @@ -751,9 +887,7 @@ public void setUsername(String username) { this.username = username; } - /** - * Return true if this UpdateCompanyWebhookRequest object is equal to o. - */ + /** Return true if this UpdateCompanyWebhookRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -763,45 +897,82 @@ public boolean equals(Object o) { return false; } UpdateCompanyWebhookRequest updateCompanyWebhookRequest = (UpdateCompanyWebhookRequest) o; - return Objects.equals(this.acceptsExpiredCertificate, updateCompanyWebhookRequest.acceptsExpiredCertificate) && - Objects.equals(this.acceptsSelfSignedCertificate, updateCompanyWebhookRequest.acceptsSelfSignedCertificate) && - Objects.equals(this.acceptsUntrustedRootCertificate, updateCompanyWebhookRequest.acceptsUntrustedRootCertificate) && - Objects.equals(this.active, updateCompanyWebhookRequest.active) && - Objects.equals(this.additionalSettings, updateCompanyWebhookRequest.additionalSettings) && - Objects.equals(this.communicationFormat, updateCompanyWebhookRequest.communicationFormat) && - Objects.equals(this.description, updateCompanyWebhookRequest.description) && - Objects.equals(this.encryptionProtocol, updateCompanyWebhookRequest.encryptionProtocol) && - Objects.equals(this.filterMerchantAccountType, updateCompanyWebhookRequest.filterMerchantAccountType) && - Objects.equals(this.filterMerchantAccounts, updateCompanyWebhookRequest.filterMerchantAccounts) && - Objects.equals(this.networkType, updateCompanyWebhookRequest.networkType) && - Objects.equals(this.password, updateCompanyWebhookRequest.password) && - Objects.equals(this.populateSoapActionHeader, updateCompanyWebhookRequest.populateSoapActionHeader) && - Objects.equals(this.url, updateCompanyWebhookRequest.url) && - Objects.equals(this.username, updateCompanyWebhookRequest.username); + return Objects.equals( + this.acceptsExpiredCertificate, updateCompanyWebhookRequest.acceptsExpiredCertificate) + && Objects.equals( + this.acceptsSelfSignedCertificate, + updateCompanyWebhookRequest.acceptsSelfSignedCertificate) + && Objects.equals( + this.acceptsUntrustedRootCertificate, + updateCompanyWebhookRequest.acceptsUntrustedRootCertificate) + && Objects.equals(this.active, updateCompanyWebhookRequest.active) + && Objects.equals(this.additionalSettings, updateCompanyWebhookRequest.additionalSettings) + && Objects.equals(this.communicationFormat, updateCompanyWebhookRequest.communicationFormat) + && Objects.equals(this.description, updateCompanyWebhookRequest.description) + && Objects.equals(this.encryptionProtocol, updateCompanyWebhookRequest.encryptionProtocol) + && Objects.equals( + this.filterMerchantAccountType, updateCompanyWebhookRequest.filterMerchantAccountType) + && Objects.equals( + this.filterMerchantAccounts, updateCompanyWebhookRequest.filterMerchantAccounts) + && Objects.equals(this.networkType, updateCompanyWebhookRequest.networkType) + && Objects.equals(this.password, updateCompanyWebhookRequest.password) + && Objects.equals( + this.populateSoapActionHeader, updateCompanyWebhookRequest.populateSoapActionHeader) + && Objects.equals(this.url, updateCompanyWebhookRequest.url) + && Objects.equals(this.username, updateCompanyWebhookRequest.username); } @Override public int hashCode() { - return Objects.hash(acceptsExpiredCertificate, acceptsSelfSignedCertificate, acceptsUntrustedRootCertificate, active, additionalSettings, communicationFormat, description, encryptionProtocol, filterMerchantAccountType, filterMerchantAccounts, networkType, password, populateSoapActionHeader, url, username); + return Objects.hash( + acceptsExpiredCertificate, + acceptsSelfSignedCertificate, + acceptsUntrustedRootCertificate, + active, + additionalSettings, + communicationFormat, + description, + encryptionProtocol, + filterMerchantAccountType, + filterMerchantAccounts, + networkType, + password, + populateSoapActionHeader, + url, + username); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateCompanyWebhookRequest {\n"); - sb.append(" acceptsExpiredCertificate: ").append(toIndentedString(acceptsExpiredCertificate)).append("\n"); - sb.append(" acceptsSelfSignedCertificate: ").append(toIndentedString(acceptsSelfSignedCertificate)).append("\n"); - sb.append(" acceptsUntrustedRootCertificate: ").append(toIndentedString(acceptsUntrustedRootCertificate)).append("\n"); + sb.append(" acceptsExpiredCertificate: ") + .append(toIndentedString(acceptsExpiredCertificate)) + .append("\n"); + sb.append(" acceptsSelfSignedCertificate: ") + .append(toIndentedString(acceptsSelfSignedCertificate)) + .append("\n"); + sb.append(" acceptsUntrustedRootCertificate: ") + .append(toIndentedString(acceptsUntrustedRootCertificate)) + .append("\n"); sb.append(" active: ").append(toIndentedString(active)).append("\n"); sb.append(" additionalSettings: ").append(toIndentedString(additionalSettings)).append("\n"); - sb.append(" communicationFormat: ").append(toIndentedString(communicationFormat)).append("\n"); + sb.append(" communicationFormat: ") + .append(toIndentedString(communicationFormat)) + .append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" encryptionProtocol: ").append(toIndentedString(encryptionProtocol)).append("\n"); - sb.append(" filterMerchantAccountType: ").append(toIndentedString(filterMerchantAccountType)).append("\n"); - sb.append(" filterMerchantAccounts: ").append(toIndentedString(filterMerchantAccounts)).append("\n"); + sb.append(" filterMerchantAccountType: ") + .append(toIndentedString(filterMerchantAccountType)) + .append("\n"); + sb.append(" filterMerchantAccounts: ") + .append(toIndentedString(filterMerchantAccounts)) + .append("\n"); sb.append(" networkType: ").append(toIndentedString(networkType)).append("\n"); sb.append(" password: ").append(toIndentedString(password)).append("\n"); - sb.append(" populateSoapActionHeader: ").append(toIndentedString(populateSoapActionHeader)).append("\n"); + sb.append(" populateSoapActionHeader: ") + .append(toIndentedString(populateSoapActionHeader)) + .append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" username: ").append(toIndentedString(username)).append("\n"); sb.append("}"); @@ -809,8 +980,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -819,21 +989,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of UpdateCompanyWebhookRequest given an JSON string * * @param jsonString JSON string * @return An instance of UpdateCompanyWebhookRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to UpdateCompanyWebhookRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * UpdateCompanyWebhookRequest */ - public static UpdateCompanyWebhookRequest fromJson(String jsonString) throws JsonProcessingException { + public static UpdateCompanyWebhookRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdateCompanyWebhookRequest.class); } -/** - * Convert an instance of UpdateCompanyWebhookRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of UpdateCompanyWebhookRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/UpdateMerchantApiCredentialRequest.java b/src/main/java/com/adyen/model/management/UpdateMerchantApiCredentialRequest.java index c1597fee7..6de500351 100644 --- a/src/main/java/com/adyen/model/management/UpdateMerchantApiCredentialRequest.java +++ b/src/main/java/com/adyen/model/management/UpdateMerchantApiCredentialRequest.java @@ -2,40 +2,30 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * UpdateMerchantApiCredentialRequest - */ +/** UpdateMerchantApiCredentialRequest */ @JsonPropertyOrder({ UpdateMerchantApiCredentialRequest.JSON_PROPERTY_ACTIVE, UpdateMerchantApiCredentialRequest.JSON_PROPERTY_ALLOWED_ORIGINS, UpdateMerchantApiCredentialRequest.JSON_PROPERTY_DESCRIPTION, UpdateMerchantApiCredentialRequest.JSON_PROPERTY_ROLES }) - public class UpdateMerchantApiCredentialRequest { public static final String JSON_PROPERTY_ACTIVE = "active"; private Boolean active; @@ -49,14 +39,14 @@ public class UpdateMerchantApiCredentialRequest { public static final String JSON_PROPERTY_ROLES = "roles"; private List roles; - public UpdateMerchantApiCredentialRequest() { - } + public UpdateMerchantApiCredentialRequest() {} /** * Indicates if the API credential is enabled. * * @param active Indicates if the API credential is enabled. - * @return the current {@code UpdateMerchantApiCredentialRequest} instance, allowing for method chaining + * @return the current {@code UpdateMerchantApiCredentialRequest} instance, allowing for method + * chaining */ public UpdateMerchantApiCredentialRequest active(Boolean active) { this.active = active; @@ -65,6 +55,7 @@ public UpdateMerchantApiCredentialRequest active(Boolean active) { /** * Indicates if the API credential is enabled. + * * @return active Indicates if the API credential is enabled. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @@ -85,10 +76,15 @@ public void setActive(Boolean active) { } /** - * The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential. + * The new list of [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * for the API credential. * - * @param allowedOrigins The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential. - * @return the current {@code UpdateMerchantApiCredentialRequest} instance, allowing for method chaining + * @param allowedOrigins The new list of [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * for the API credential. + * @return the current {@code UpdateMerchantApiCredentialRequest} instance, allowing for method + * chaining */ public UpdateMerchantApiCredentialRequest allowedOrigins(List allowedOrigins) { this.allowedOrigins = allowedOrigins; @@ -104,8 +100,13 @@ public UpdateMerchantApiCredentialRequest addAllowedOriginsItem(String allowedOr } /** - * The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential. - * @return allowedOrigins The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential. + * The new list of [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * for the API credential. + * + * @return allowedOrigins The new list of [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * for the API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,9 +115,13 @@ public List getAllowedOrigins() { } /** - * The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential. + * The new list of [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * for the API credential. * - * @param allowedOrigins The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential. + * @param allowedOrigins The new list of [allowed + * origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) + * for the API credential. */ @JsonProperty(JSON_PROPERTY_ALLOWED_ORIGINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,7 +133,8 @@ public void setAllowedOrigins(List allowedOrigins) { * Description of the API credential. * * @param description Description of the API credential. - * @return the current {@code UpdateMerchantApiCredentialRequest} instance, allowing for method chaining + * @return the current {@code UpdateMerchantApiCredentialRequest} instance, allowing for method + * chaining */ public UpdateMerchantApiCredentialRequest description(String description) { this.description = description; @@ -137,6 +143,7 @@ public UpdateMerchantApiCredentialRequest description(String description) { /** * Description of the API credential. + * * @return description Description of the API credential. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -157,10 +164,16 @@ public void setDescription(String description) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the + * API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned + * to other API credentials. * - * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. - * @return the current {@code UpdateMerchantApiCredentialRequest} instance, allowing for method chaining + * @param roles List of + * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API + * credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned + * to other API credentials. + * @return the current {@code UpdateMerchantApiCredentialRequest} instance, allowing for method + * chaining */ public UpdateMerchantApiCredentialRequest roles(List roles) { this.roles = roles; @@ -176,8 +189,14 @@ public UpdateMerchantApiCredentialRequest addRolesItem(String rolesItem) { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. - * @return roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the + * API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned + * to other API credentials. + * + * @return roles List of + * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API + * credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned + * to other API credentials. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,9 +205,14 @@ public List getRoles() { } /** - * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the + * API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned + * to other API credentials. * - * @param roles List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials. + * @param roles List of + * [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API + * credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned + * to other API credentials. */ @JsonProperty(JSON_PROPERTY_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -196,9 +220,7 @@ public void setRoles(List roles) { this.roles = roles; } - /** - * Return true if this UpdateMerchantApiCredentialRequest object is equal to o. - */ + /** Return true if this UpdateMerchantApiCredentialRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -207,11 +229,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UpdateMerchantApiCredentialRequest updateMerchantApiCredentialRequest = (UpdateMerchantApiCredentialRequest) o; - return Objects.equals(this.active, updateMerchantApiCredentialRequest.active) && - Objects.equals(this.allowedOrigins, updateMerchantApiCredentialRequest.allowedOrigins) && - Objects.equals(this.description, updateMerchantApiCredentialRequest.description) && - Objects.equals(this.roles, updateMerchantApiCredentialRequest.roles); + UpdateMerchantApiCredentialRequest updateMerchantApiCredentialRequest = + (UpdateMerchantApiCredentialRequest) o; + return Objects.equals(this.active, updateMerchantApiCredentialRequest.active) + && Objects.equals(this.allowedOrigins, updateMerchantApiCredentialRequest.allowedOrigins) + && Objects.equals(this.description, updateMerchantApiCredentialRequest.description) + && Objects.equals(this.roles, updateMerchantApiCredentialRequest.roles); } @Override @@ -232,8 +255,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -242,21 +264,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of UpdateMerchantApiCredentialRequest given an JSON string * * @param jsonString JSON string * @return An instance of UpdateMerchantApiCredentialRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to UpdateMerchantApiCredentialRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * UpdateMerchantApiCredentialRequest */ - public static UpdateMerchantApiCredentialRequest fromJson(String jsonString) throws JsonProcessingException { + public static UpdateMerchantApiCredentialRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdateMerchantApiCredentialRequest.class); } -/** - * Convert an instance of UpdateMerchantApiCredentialRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of UpdateMerchantApiCredentialRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/UpdateMerchantUserRequest.java b/src/main/java/com/adyen/model/management/UpdateMerchantUserRequest.java index d88471cc1..ecd1ffee4 100644 --- a/src/main/java/com/adyen/model/management/UpdateMerchantUserRequest.java +++ b/src/main/java/com/adyen/model/management/UpdateMerchantUserRequest.java @@ -2,34 +2,24 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.Name2; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * UpdateMerchantUserRequest - */ +/** UpdateMerchantUserRequest */ @JsonPropertyOrder({ UpdateMerchantUserRequest.JSON_PROPERTY_ACCOUNT_GROUPS, UpdateMerchantUserRequest.JSON_PROPERTY_ACTIVE, @@ -39,7 +29,6 @@ UpdateMerchantUserRequest.JSON_PROPERTY_ROLES, UpdateMerchantUserRequest.JSON_PROPERTY_TIME_ZONE_CODE }) - public class UpdateMerchantUserRequest { public static final String JSON_PROPERTY_ACCOUNT_GROUPS = "accountGroups"; private List accountGroups; @@ -62,13 +51,15 @@ public class UpdateMerchantUserRequest { public static final String JSON_PROPERTY_TIME_ZONE_CODE = "timeZoneCode"; private String timeZoneCode; - public UpdateMerchantUserRequest() { - } + public UpdateMerchantUserRequest() {} /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) + * associated with this user. * - * @param accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * @param accountGroups The list of [account + * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with + * this user. * @return the current {@code UpdateMerchantUserRequest} instance, allowing for method chaining */ public UpdateMerchantUserRequest accountGroups(List accountGroups) { @@ -85,8 +76,12 @@ public UpdateMerchantUserRequest addAccountGroupsItem(String accountGroupsItem) } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. - * @return accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) + * associated with this user. + * + * @return accountGroups The list of [account + * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with + * this user. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -95,9 +90,12 @@ public List getAccountGroups() { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) + * associated with this user. * - * @param accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * @param accountGroups The list of [account + * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with + * this user. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,6 +116,7 @@ public UpdateMerchantUserRequest active(Boolean active) { /** * Sets the status of the user to active (**true**) or inactive (**false**). + * * @return active Sets the status of the user to active (**true**) or inactive (**false**). */ @JsonProperty(JSON_PROPERTY_ACTIVE) @@ -150,6 +149,7 @@ public UpdateMerchantUserRequest email(String email) { /** * The email address of the user. + * * @return email The email address of the user. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -170,9 +170,13 @@ public void setEmail(String email) { } /** - * The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** + * The requested login method for the user. To use SSO, you must already have SSO configured with + * Adyen before creating the user. Possible values: **Username & account**, **Email**, or + * **SSO** * - * @param loginMethod The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** + * @param loginMethod The requested login method for the user. To use SSO, you must already have + * SSO configured with Adyen before creating the user. Possible values: **Username & + * account**, **Email**, or **SSO** * @return the current {@code UpdateMerchantUserRequest} instance, allowing for method chaining */ public UpdateMerchantUserRequest loginMethod(String loginMethod) { @@ -181,8 +185,13 @@ public UpdateMerchantUserRequest loginMethod(String loginMethod) { } /** - * The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** - * @return loginMethod The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** + * The requested login method for the user. To use SSO, you must already have SSO configured with + * Adyen before creating the user. Possible values: **Username & account**, **Email**, or + * **SSO** + * + * @return loginMethod The requested login method for the user. To use SSO, you must already have + * SSO configured with Adyen before creating the user. Possible values: **Username & + * account**, **Email**, or **SSO** */ @JsonProperty(JSON_PROPERTY_LOGIN_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,9 +200,13 @@ public String getLoginMethod() { } /** - * The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** + * The requested login method for the user. To use SSO, you must already have SSO configured with + * Adyen before creating the user. Possible values: **Username & account**, **Email**, or + * **SSO** * - * @param loginMethod The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** + * @param loginMethod The requested login method for the user. To use SSO, you must already have + * SSO configured with Adyen before creating the user. Possible values: **Username & + * account**, **Email**, or **SSO** */ @JsonProperty(JSON_PROPERTY_LOGIN_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,7 +217,7 @@ public void setLoginMethod(String loginMethod) { /** * name * - * @param name + * @param name * @return the current {@code UpdateMerchantUserRequest} instance, allowing for method chaining */ public UpdateMerchantUserRequest name(Name2 name) { @@ -214,7 +227,8 @@ public UpdateMerchantUserRequest name(Name2 name) { /** * Get name - * @return name + * + * @return name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -225,7 +239,7 @@ public Name2 getName() { /** * name * - * @param name + * @param name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -254,6 +268,7 @@ public UpdateMerchantUserRequest addRolesItem(String rolesItem) { /** * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. + * * @return roles The list of [roles](https://docs.adyen.com/account/user-roles) for this user. */ @JsonProperty(JSON_PROPERTY_ROLES) @@ -274,9 +289,12 @@ public void setRoles(List roles) { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the + * time zone of the user. For example, **Europe/Amsterdam**. * - * @param timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * @param timeZoneCode The [tz database + * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the + * user. For example, **Europe/Amsterdam**. * @return the current {@code UpdateMerchantUserRequest} instance, allowing for method chaining */ public UpdateMerchantUserRequest timeZoneCode(String timeZoneCode) { @@ -285,8 +303,12 @@ public UpdateMerchantUserRequest timeZoneCode(String timeZoneCode) { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. - * @return timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the + * time zone of the user. For example, **Europe/Amsterdam**. + * + * @return timeZoneCode The [tz database + * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the + * user. For example, **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -295,9 +317,12 @@ public String getTimeZoneCode() { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the + * time zone of the user. For example, **Europe/Amsterdam**. * - * @param timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * @param timeZoneCode The [tz database + * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the + * user. For example, **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -305,9 +330,7 @@ public void setTimeZoneCode(String timeZoneCode) { this.timeZoneCode = timeZoneCode; } - /** - * Return true if this UpdateMerchantUserRequest object is equal to o. - */ + /** Return true if this UpdateMerchantUserRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -317,13 +340,13 @@ public boolean equals(Object o) { return false; } UpdateMerchantUserRequest updateMerchantUserRequest = (UpdateMerchantUserRequest) o; - return Objects.equals(this.accountGroups, updateMerchantUserRequest.accountGroups) && - Objects.equals(this.active, updateMerchantUserRequest.active) && - Objects.equals(this.email, updateMerchantUserRequest.email) && - Objects.equals(this.loginMethod, updateMerchantUserRequest.loginMethod) && - Objects.equals(this.name, updateMerchantUserRequest.name) && - Objects.equals(this.roles, updateMerchantUserRequest.roles) && - Objects.equals(this.timeZoneCode, updateMerchantUserRequest.timeZoneCode); + return Objects.equals(this.accountGroups, updateMerchantUserRequest.accountGroups) + && Objects.equals(this.active, updateMerchantUserRequest.active) + && Objects.equals(this.email, updateMerchantUserRequest.email) + && Objects.equals(this.loginMethod, updateMerchantUserRequest.loginMethod) + && Objects.equals(this.name, updateMerchantUserRequest.name) + && Objects.equals(this.roles, updateMerchantUserRequest.roles) + && Objects.equals(this.timeZoneCode, updateMerchantUserRequest.timeZoneCode); } @Override @@ -347,8 +370,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -357,21 +379,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of UpdateMerchantUserRequest given an JSON string * * @param jsonString JSON string * @return An instance of UpdateMerchantUserRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to UpdateMerchantUserRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * UpdateMerchantUserRequest */ - public static UpdateMerchantUserRequest fromJson(String jsonString) throws JsonProcessingException { + public static UpdateMerchantUserRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdateMerchantUserRequest.class); } -/** - * Convert an instance of UpdateMerchantUserRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of UpdateMerchantUserRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/UpdateMerchantWebhookRequest.java b/src/main/java/com/adyen/model/management/UpdateMerchantWebhookRequest.java index c276d2425..16a6564a2 100644 --- a/src/main/java/com/adyen/model/management/UpdateMerchantWebhookRequest.java +++ b/src/main/java/com/adyen/model/management/UpdateMerchantWebhookRequest.java @@ -2,32 +2,26 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.AdditionalSettings; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * UpdateMerchantWebhookRequest - */ +/** UpdateMerchantWebhookRequest */ @JsonPropertyOrder({ UpdateMerchantWebhookRequest.JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE, UpdateMerchantWebhookRequest.JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE, @@ -43,15 +37,17 @@ UpdateMerchantWebhookRequest.JSON_PROPERTY_URL, UpdateMerchantWebhookRequest.JSON_PROPERTY_USERNAME }) - public class UpdateMerchantWebhookRequest { - public static final String JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE = "acceptsExpiredCertificate"; + public static final String JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE = + "acceptsExpiredCertificate"; private Boolean acceptsExpiredCertificate; - public static final String JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE = "acceptsSelfSignedCertificate"; + public static final String JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE = + "acceptsSelfSignedCertificate"; private Boolean acceptsSelfSignedCertificate; - public static final String JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE = "acceptsUntrustedRootCertificate"; + public static final String JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE = + "acceptsUntrustedRootCertificate"; private Boolean acceptsUntrustedRootCertificate; public static final String JSON_PROPERTY_ACTIVE = "active"; @@ -61,10 +57,9 @@ public class UpdateMerchantWebhookRequest { private AdditionalSettings additionalSettings; /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** */ public enum CommunicationFormatEnum { - HTTP(String.valueOf("http")), JSON(String.valueOf("json")), @@ -76,7 +71,7 @@ public enum CommunicationFormatEnum { private String value; CommunicationFormatEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -97,7 +92,11 @@ public static CommunicationFormatEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("CommunicationFormatEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CommunicationFormatEnum.values())); + LOG.warning( + "CommunicationFormatEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(CommunicationFormatEnum.values())); return null; } } @@ -109,10 +108,11 @@ public static CommunicationFormatEnum fromValue(String value) { private String description; /** - * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible + * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not + * specified, the webhook will use `sslVersion`: **TLSv1.2**. */ public enum EncryptionProtocolEnum { - HTTP(String.valueOf("HTTP")), TLSV1_2(String.valueOf("TLSv1.2")), @@ -124,7 +124,7 @@ public enum EncryptionProtocolEnum { private String value; EncryptionProtocolEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -145,7 +145,11 @@ public static EncryptionProtocolEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("EncryptionProtocolEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(EncryptionProtocolEnum.values())); + LOG.warning( + "EncryptionProtocolEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(EncryptionProtocolEnum.values())); return null; } } @@ -154,10 +158,10 @@ public static EncryptionProtocolEnum fromValue(String value) { private EncryptionProtocolEnum encryptionProtocol; /** - * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** + * Default Value: **public**. */ public enum NetworkTypeEnum { - LOCAL(String.valueOf("local")), PUBLIC(String.valueOf("public")); @@ -167,7 +171,7 @@ public enum NetworkTypeEnum { private String value; NetworkTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -188,7 +192,11 @@ public static NetworkTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("NetworkTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(NetworkTypeEnum.values())); + LOG.warning( + "NetworkTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(NetworkTypeEnum.values())); return null; } } @@ -208,13 +216,13 @@ public static NetworkTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public UpdateMerchantWebhookRequest() { - } + public UpdateMerchantWebhookRequest() {} /** * Indicates if expired SSL certificates are accepted. Default value: **false**. * - * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default value: **false**. + * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default + * value: **false**. * @return the current {@code UpdateMerchantWebhookRequest} instance, allowing for method chaining */ public UpdateMerchantWebhookRequest acceptsExpiredCertificate(Boolean acceptsExpiredCertificate) { @@ -224,7 +232,9 @@ public UpdateMerchantWebhookRequest acceptsExpiredCertificate(Boolean acceptsExp /** * Indicates if expired SSL certificates are accepted. Default value: **false**. - * @return acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default value: **false**. + * + * @return acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default + * value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -235,7 +245,8 @@ public Boolean getAcceptsExpiredCertificate() { /** * Indicates if expired SSL certificates are accepted. Default value: **false**. * - * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default value: **false**. + * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default + * value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -246,17 +257,21 @@ public void setAcceptsExpiredCertificate(Boolean acceptsExpiredCertificate) { /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. * - * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. Default value: **false**. + * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. + * Default value: **false**. * @return the current {@code UpdateMerchantWebhookRequest} instance, allowing for method chaining */ - public UpdateMerchantWebhookRequest acceptsSelfSignedCertificate(Boolean acceptsSelfSignedCertificate) { + public UpdateMerchantWebhookRequest acceptsSelfSignedCertificate( + Boolean acceptsSelfSignedCertificate) { this.acceptsSelfSignedCertificate = acceptsSelfSignedCertificate; return this; } /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. - * @return acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. Default value: **false**. + * + * @return acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. + * Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -267,7 +282,8 @@ public Boolean getAcceptsSelfSignedCertificate() { /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. * - * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. Default value: **false**. + * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. + * Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -278,17 +294,21 @@ public void setAcceptsSelfSignedCertificate(Boolean acceptsSelfSignedCertificate /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. * - * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. Default value: **false**. + * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. + * Default value: **false**. * @return the current {@code UpdateMerchantWebhookRequest} instance, allowing for method chaining */ - public UpdateMerchantWebhookRequest acceptsUntrustedRootCertificate(Boolean acceptsUntrustedRootCertificate) { + public UpdateMerchantWebhookRequest acceptsUntrustedRootCertificate( + Boolean acceptsUntrustedRootCertificate) { this.acceptsUntrustedRootCertificate = acceptsUntrustedRootCertificate; return this; } /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. - * @return acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. Default value: **false**. + * + * @return acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. + * Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -299,7 +319,8 @@ public Boolean getAcceptsUntrustedRootCertificate() { /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. * - * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. Default value: **false**. + * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. + * Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -308,9 +329,11 @@ public void setAcceptsUntrustedRootCertificate(Boolean acceptsUntrustedRootCerti } /** - * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. + * Indicates if the webhook configuration is active. The field must be **true** for us to send + * webhooks about events related an account. * - * @param active Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. + * @param active Indicates if the webhook configuration is active. The field must be **true** for + * us to send webhooks about events related an account. * @return the current {@code UpdateMerchantWebhookRequest} instance, allowing for method chaining */ public UpdateMerchantWebhookRequest active(Boolean active) { @@ -319,8 +342,11 @@ public UpdateMerchantWebhookRequest active(Boolean active) { } /** - * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. - * @return active Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. + * Indicates if the webhook configuration is active. The field must be **true** for us to send + * webhooks about events related an account. + * + * @return active Indicates if the webhook configuration is active. The field must be **true** for + * us to send webhooks about events related an account. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -329,9 +355,11 @@ public Boolean getActive() { } /** - * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. + * Indicates if the webhook configuration is active. The field must be **true** for us to send + * webhooks about events related an account. * - * @param active Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. + * @param active Indicates if the webhook configuration is active. The field must be **true** for + * us to send webhooks about events related an account. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -342,7 +370,7 @@ public void setActive(Boolean active) { /** * additionalSettings * - * @param additionalSettings + * @param additionalSettings * @return the current {@code UpdateMerchantWebhookRequest} instance, allowing for method chaining */ public UpdateMerchantWebhookRequest additionalSettings(AdditionalSettings additionalSettings) { @@ -352,7 +380,8 @@ public UpdateMerchantWebhookRequest additionalSettings(AdditionalSettings additi /** * Get additionalSettings - * @return additionalSettings + * + * @return additionalSettings */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -363,7 +392,7 @@ public AdditionalSettings getAdditionalSettings() { /** * additionalSettings * - * @param additionalSettings + * @param additionalSettings */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -372,19 +401,23 @@ public void setAdditionalSettings(AdditionalSettings additionalSettings) { } /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** * - * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * + * **soap** * **http** * **json** * @return the current {@code UpdateMerchantWebhookRequest} instance, allowing for method chaining */ - public UpdateMerchantWebhookRequest communicationFormat(CommunicationFormatEnum communicationFormat) { + public UpdateMerchantWebhookRequest communicationFormat( + CommunicationFormatEnum communicationFormat) { this.communicationFormat = communicationFormat; return this; } /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** - * @return communicationFormat Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * + * @return communicationFormat Format or protocol for receiving webhooks. Possible values: * + * **soap** * **http** * **json** */ @JsonProperty(JSON_PROPERTY_COMMUNICATION_FORMAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -393,9 +426,10 @@ public CommunicationFormatEnum getCommunicationFormat() { } /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** * - * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * + * **soap** * **http** * **json** */ @JsonProperty(JSON_PROPERTY_COMMUNICATION_FORMAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -416,6 +450,7 @@ public UpdateMerchantWebhookRequest description(String description) { /** * Your description for this webhook configuration. + * * @return description Your description for this webhook configuration. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -436,19 +471,31 @@ public void setDescription(String description) { } /** - * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible + * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not + * specified, the webhook will use `sslVersion`: **TLSv1.2**. * - * @param encryptionProtocol SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * @param encryptionProtocol SSL version to access the public webhook URL specified in the + * `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only + * allowed on Test environment. If not specified, the webhook will use `sslVersion`: + * **TLSv1.2**. * @return the current {@code UpdateMerchantWebhookRequest} instance, allowing for method chaining */ - public UpdateMerchantWebhookRequest encryptionProtocol(EncryptionProtocolEnum encryptionProtocol) { + public UpdateMerchantWebhookRequest encryptionProtocol( + EncryptionProtocolEnum encryptionProtocol) { this.encryptionProtocol = encryptionProtocol; return this; } /** - * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. - * @return encryptionProtocol SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible + * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not + * specified, the webhook will use `sslVersion`: **TLSv1.2**. + * + * @return encryptionProtocol SSL version to access the public webhook URL specified in the + * `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only + * allowed on Test environment. If not specified, the webhook will use `sslVersion`: + * **TLSv1.2**. */ @JsonProperty(JSON_PROPERTY_ENCRYPTION_PROTOCOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -457,9 +504,14 @@ public EncryptionProtocolEnum getEncryptionProtocol() { } /** - * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible + * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not + * specified, the webhook will use `sslVersion`: **TLSv1.2**. * - * @param encryptionProtocol SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * @param encryptionProtocol SSL version to access the public webhook URL specified in the + * `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only + * allowed on Test environment. If not specified, the webhook will use `sslVersion`: + * **TLSv1.2**. */ @JsonProperty(JSON_PROPERTY_ENCRYPTION_PROTOCOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -468,9 +520,11 @@ public void setEncryptionProtocol(EncryptionProtocolEnum encryptionProtocol) { } /** - * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** + * Default Value: **public**. * - * @param networkType Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. + * @param networkType Network type for Terminal API notification webhooks. Possible values: * + * **public** * **local** Default Value: **public**. * @return the current {@code UpdateMerchantWebhookRequest} instance, allowing for method chaining */ public UpdateMerchantWebhookRequest networkType(NetworkTypeEnum networkType) { @@ -479,8 +533,11 @@ public UpdateMerchantWebhookRequest networkType(NetworkTypeEnum networkType) { } /** - * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. - * @return networkType Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** + * Default Value: **public**. + * + * @return networkType Network type for Terminal API notification webhooks. Possible values: * + * **public** * **local** Default Value: **public**. */ @JsonProperty(JSON_PROPERTY_NETWORK_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -489,9 +546,11 @@ public NetworkTypeEnum getNetworkType() { } /** - * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** + * Default Value: **public**. * - * @param networkType Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. + * @param networkType Network type for Terminal API notification webhooks. Possible values: * + * **public** * **local** Default Value: **public**. */ @JsonProperty(JSON_PROPERTY_NETWORK_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -512,6 +571,7 @@ public UpdateMerchantWebhookRequest password(String password) { /** * Password to access the webhook URL. + * * @return password Password to access the webhook URL. */ @JsonProperty(JSON_PROPERTY_PASSWORD) @@ -532,9 +592,11 @@ public void setPassword(String password) { } /** - * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only + * applies if `communicationFormat`: **soap**. * - * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. + * Default value: **false**. Only applies if `communicationFormat`: **soap**. * @return the current {@code UpdateMerchantWebhookRequest} instance, allowing for method chaining */ public UpdateMerchantWebhookRequest populateSoapActionHeader(Boolean populateSoapActionHeader) { @@ -543,8 +605,11 @@ public UpdateMerchantWebhookRequest populateSoapActionHeader(Boolean populateSoa } /** - * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. - * @return populateSoapActionHeader Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only + * applies if `communicationFormat`: **soap**. + * + * @return populateSoapActionHeader Indicates if the SOAP action header needs to be populated. + * Default value: **false**. Only applies if `communicationFormat`: **soap**. */ @JsonProperty(JSON_PROPERTY_POPULATE_SOAP_ACTION_HEADER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -553,9 +618,11 @@ public Boolean getPopulateSoapActionHeader() { } /** - * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only + * applies if `communicationFormat`: **soap**. * - * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. + * Default value: **false**. Only applies if `communicationFormat`: **soap**. */ @JsonProperty(JSON_PROPERTY_POPULATE_SOAP_ACTION_HEADER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -564,9 +631,11 @@ public void setPopulateSoapActionHeader(Boolean populateSoapActionHeader) { } /** - * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + * Public URL where webhooks will be sent, for example + * **https://www.domain.com/webhook-endpoint**. * - * @param url Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + * @param url Public URL where webhooks will be sent, for example + * **https://www.domain.com/webhook-endpoint**. * @return the current {@code UpdateMerchantWebhookRequest} instance, allowing for method chaining */ public UpdateMerchantWebhookRequest url(String url) { @@ -575,8 +644,11 @@ public UpdateMerchantWebhookRequest url(String url) { } /** - * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. - * @return url Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + * Public URL where webhooks will be sent, for example + * **https://www.domain.com/webhook-endpoint**. + * + * @return url Public URL where webhooks will be sent, for example + * **https://www.domain.com/webhook-endpoint**. */ @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -585,9 +657,11 @@ public String getUrl() { } /** - * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + * Public URL where webhooks will be sent, for example + * **https://www.domain.com/webhook-endpoint**. * - * @param url Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + * @param url Public URL where webhooks will be sent, for example + * **https://www.domain.com/webhook-endpoint**. */ @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -608,6 +682,7 @@ public UpdateMerchantWebhookRequest username(String username) { /** * Username to access the webhook URL. + * * @return username Username to access the webhook URL. */ @JsonProperty(JSON_PROPERTY_USERNAME) @@ -627,9 +702,7 @@ public void setUsername(String username) { this.username = username; } - /** - * Return true if this UpdateMerchantWebhookRequest object is equal to o. - */ + /** Return true if this UpdateMerchantWebhookRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -639,41 +712,71 @@ public boolean equals(Object o) { return false; } UpdateMerchantWebhookRequest updateMerchantWebhookRequest = (UpdateMerchantWebhookRequest) o; - return Objects.equals(this.acceptsExpiredCertificate, updateMerchantWebhookRequest.acceptsExpiredCertificate) && - Objects.equals(this.acceptsSelfSignedCertificate, updateMerchantWebhookRequest.acceptsSelfSignedCertificate) && - Objects.equals(this.acceptsUntrustedRootCertificate, updateMerchantWebhookRequest.acceptsUntrustedRootCertificate) && - Objects.equals(this.active, updateMerchantWebhookRequest.active) && - Objects.equals(this.additionalSettings, updateMerchantWebhookRequest.additionalSettings) && - Objects.equals(this.communicationFormat, updateMerchantWebhookRequest.communicationFormat) && - Objects.equals(this.description, updateMerchantWebhookRequest.description) && - Objects.equals(this.encryptionProtocol, updateMerchantWebhookRequest.encryptionProtocol) && - Objects.equals(this.networkType, updateMerchantWebhookRequest.networkType) && - Objects.equals(this.password, updateMerchantWebhookRequest.password) && - Objects.equals(this.populateSoapActionHeader, updateMerchantWebhookRequest.populateSoapActionHeader) && - Objects.equals(this.url, updateMerchantWebhookRequest.url) && - Objects.equals(this.username, updateMerchantWebhookRequest.username); + return Objects.equals( + this.acceptsExpiredCertificate, updateMerchantWebhookRequest.acceptsExpiredCertificate) + && Objects.equals( + this.acceptsSelfSignedCertificate, + updateMerchantWebhookRequest.acceptsSelfSignedCertificate) + && Objects.equals( + this.acceptsUntrustedRootCertificate, + updateMerchantWebhookRequest.acceptsUntrustedRootCertificate) + && Objects.equals(this.active, updateMerchantWebhookRequest.active) + && Objects.equals(this.additionalSettings, updateMerchantWebhookRequest.additionalSettings) + && Objects.equals( + this.communicationFormat, updateMerchantWebhookRequest.communicationFormat) + && Objects.equals(this.description, updateMerchantWebhookRequest.description) + && Objects.equals(this.encryptionProtocol, updateMerchantWebhookRequest.encryptionProtocol) + && Objects.equals(this.networkType, updateMerchantWebhookRequest.networkType) + && Objects.equals(this.password, updateMerchantWebhookRequest.password) + && Objects.equals( + this.populateSoapActionHeader, updateMerchantWebhookRequest.populateSoapActionHeader) + && Objects.equals(this.url, updateMerchantWebhookRequest.url) + && Objects.equals(this.username, updateMerchantWebhookRequest.username); } @Override public int hashCode() { - return Objects.hash(acceptsExpiredCertificate, acceptsSelfSignedCertificate, acceptsUntrustedRootCertificate, active, additionalSettings, communicationFormat, description, encryptionProtocol, networkType, password, populateSoapActionHeader, url, username); + return Objects.hash( + acceptsExpiredCertificate, + acceptsSelfSignedCertificate, + acceptsUntrustedRootCertificate, + active, + additionalSettings, + communicationFormat, + description, + encryptionProtocol, + networkType, + password, + populateSoapActionHeader, + url, + username); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateMerchantWebhookRequest {\n"); - sb.append(" acceptsExpiredCertificate: ").append(toIndentedString(acceptsExpiredCertificate)).append("\n"); - sb.append(" acceptsSelfSignedCertificate: ").append(toIndentedString(acceptsSelfSignedCertificate)).append("\n"); - sb.append(" acceptsUntrustedRootCertificate: ").append(toIndentedString(acceptsUntrustedRootCertificate)).append("\n"); + sb.append(" acceptsExpiredCertificate: ") + .append(toIndentedString(acceptsExpiredCertificate)) + .append("\n"); + sb.append(" acceptsSelfSignedCertificate: ") + .append(toIndentedString(acceptsSelfSignedCertificate)) + .append("\n"); + sb.append(" acceptsUntrustedRootCertificate: ") + .append(toIndentedString(acceptsUntrustedRootCertificate)) + .append("\n"); sb.append(" active: ").append(toIndentedString(active)).append("\n"); sb.append(" additionalSettings: ").append(toIndentedString(additionalSettings)).append("\n"); - sb.append(" communicationFormat: ").append(toIndentedString(communicationFormat)).append("\n"); + sb.append(" communicationFormat: ") + .append(toIndentedString(communicationFormat)) + .append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" encryptionProtocol: ").append(toIndentedString(encryptionProtocol)).append("\n"); sb.append(" networkType: ").append(toIndentedString(networkType)).append("\n"); sb.append(" password: ").append(toIndentedString(password)).append("\n"); - sb.append(" populateSoapActionHeader: ").append(toIndentedString(populateSoapActionHeader)).append("\n"); + sb.append(" populateSoapActionHeader: ") + .append(toIndentedString(populateSoapActionHeader)) + .append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" username: ").append(toIndentedString(username)).append("\n"); sb.append("}"); @@ -681,8 +784,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -691,21 +793,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of UpdateMerchantWebhookRequest given an JSON string * * @param jsonString JSON string * @return An instance of UpdateMerchantWebhookRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to UpdateMerchantWebhookRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * UpdateMerchantWebhookRequest */ - public static UpdateMerchantWebhookRequest fromJson(String jsonString) throws JsonProcessingException { + public static UpdateMerchantWebhookRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdateMerchantWebhookRequest.class); } -/** - * Convert an instance of UpdateMerchantWebhookRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of UpdateMerchantWebhookRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/UpdatePaymentMethodInfo.java b/src/main/java/com/adyen/model/management/UpdatePaymentMethodInfo.java index 5c05d74ca..3e233f2ce 100644 --- a/src/main/java/com/adyen/model/management/UpdatePaymentMethodInfo.java +++ b/src/main/java/com/adyen/model/management/UpdatePaymentMethodInfo.java @@ -2,42 +2,24 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.AccelInfo; -import com.adyen.model.management.BcmcInfo; -import com.adyen.model.management.CartesBancairesInfo; -import com.adyen.model.management.GenericPmWithTdiInfo; -import com.adyen.model.management.NyceInfo; -import com.adyen.model.management.PayByBankPlaidInfo; -import com.adyen.model.management.PulseInfo; -import com.adyen.model.management.SepaDirectDebitInfo; -import com.adyen.model.management.StarInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * UpdatePaymentMethodInfo - */ +/** UpdatePaymentMethodInfo */ @JsonPropertyOrder({ UpdatePaymentMethodInfo.JSON_PROPERTY_ACCEL, UpdatePaymentMethodInfo.JSON_PROPERTY_BCMC, @@ -67,7 +49,6 @@ UpdatePaymentMethodInfo.JSON_PROPERTY_STORE_IDS, UpdatePaymentMethodInfo.JSON_PROPERTY_VISA }) - public class UpdatePaymentMethodInfo { public static final String JSON_PROPERTY_ACCEL = "accel"; private AccelInfo accel; @@ -145,19 +126,19 @@ public class UpdatePaymentMethodInfo { private String storeId; public static final String JSON_PROPERTY_STORE_IDS = "storeIds"; - @Deprecated // deprecated since Management API v3: Use `storeId` instead. Only one store per payment method is allowed. + @Deprecated // deprecated since Management API v3: Use `storeId` instead. Only one store per + // payment method is allowed. private List storeIds; public static final String JSON_PROPERTY_VISA = "visa"; private GenericPmWithTdiInfo visa; - public UpdatePaymentMethodInfo() { - } + public UpdatePaymentMethodInfo() {} /** * accel * - * @param accel + * @param accel * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo accel(AccelInfo accel) { @@ -167,7 +148,8 @@ public UpdatePaymentMethodInfo accel(AccelInfo accel) { /** * Get accel - * @return accel + * + * @return accel */ @JsonProperty(JSON_PROPERTY_ACCEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,7 +160,7 @@ public AccelInfo getAccel() { /** * accel * - * @param accel + * @param accel */ @JsonProperty(JSON_PROPERTY_ACCEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,7 +171,7 @@ public void setAccel(AccelInfo accel) { /** * bcmc * - * @param bcmc + * @param bcmc * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo bcmc(BcmcInfo bcmc) { @@ -199,7 +181,8 @@ public UpdatePaymentMethodInfo bcmc(BcmcInfo bcmc) { /** * Get bcmc - * @return bcmc + * + * @return bcmc */ @JsonProperty(JSON_PROPERTY_BCMC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -210,7 +193,7 @@ public BcmcInfo getBcmc() { /** * bcmc * - * @param bcmc + * @param bcmc */ @JsonProperty(JSON_PROPERTY_BCMC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,7 +204,7 @@ public void setBcmc(BcmcInfo bcmc) { /** * cartesBancaires * - * @param cartesBancaires + * @param cartesBancaires * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo cartesBancaires(CartesBancairesInfo cartesBancaires) { @@ -231,7 +214,8 @@ public UpdatePaymentMethodInfo cartesBancaires(CartesBancairesInfo cartesBancair /** * Get cartesBancaires - * @return cartesBancaires + * + * @return cartesBancaires */ @JsonProperty(JSON_PROPERTY_CARTES_BANCAIRES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,7 +226,7 @@ public CartesBancairesInfo getCartesBancaires() { /** * cartesBancaires * - * @param cartesBancaires + * @param cartesBancaires */ @JsonProperty(JSON_PROPERTY_CARTES_BANCAIRES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -251,9 +235,11 @@ public void setCartesBancaires(CartesBancairesInfo cartesBancaires) { } /** - * The list of countries where a payment method is available. By default, all countries supported by the payment method. + * The list of countries where a payment method is available. By default, all countries supported + * by the payment method. * - * @param countries The list of countries where a payment method is available. By default, all countries supported by the payment method. + * @param countries The list of countries where a payment method is available. By default, all + * countries supported by the payment method. * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo countries(List countries) { @@ -270,8 +256,11 @@ public UpdatePaymentMethodInfo addCountriesItem(String countriesItem) { } /** - * The list of countries where a payment method is available. By default, all countries supported by the payment method. - * @return countries The list of countries where a payment method is available. By default, all countries supported by the payment method. + * The list of countries where a payment method is available. By default, all countries supported + * by the payment method. + * + * @return countries The list of countries where a payment method is available. By default, all + * countries supported by the payment method. */ @JsonProperty(JSON_PROPERTY_COUNTRIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -280,9 +269,11 @@ public List getCountries() { } /** - * The list of countries where a payment method is available. By default, all countries supported by the payment method. + * The list of countries where a payment method is available. By default, all countries supported + * by the payment method. * - * @param countries The list of countries where a payment method is available. By default, all countries supported by the payment method. + * @param countries The list of countries where a payment method is available. By default, all + * countries supported by the payment method. */ @JsonProperty(JSON_PROPERTY_COUNTRIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -293,7 +284,7 @@ public void setCountries(List countries) { /** * cup * - * @param cup + * @param cup * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo cup(GenericPmWithTdiInfo cup) { @@ -303,7 +294,8 @@ public UpdatePaymentMethodInfo cup(GenericPmWithTdiInfo cup) { /** * Get cup - * @return cup + * + * @return cup */ @JsonProperty(JSON_PROPERTY_CUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -314,7 +306,7 @@ public GenericPmWithTdiInfo getCup() { /** * cup * - * @param cup + * @param cup */ @JsonProperty(JSON_PROPERTY_CUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -323,9 +315,11 @@ public void setCup(GenericPmWithTdiInfo cup) { } /** - * The list of currencies that a payment method supports. By default, all currencies supported by the payment method. + * The list of currencies that a payment method supports. By default, all currencies supported by + * the payment method. * - * @param currencies The list of currencies that a payment method supports. By default, all currencies supported by the payment method. + * @param currencies The list of currencies that a payment method supports. By default, all + * currencies supported by the payment method. * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo currencies(List currencies) { @@ -342,8 +336,11 @@ public UpdatePaymentMethodInfo addCurrenciesItem(String currenciesItem) { } /** - * The list of currencies that a payment method supports. By default, all currencies supported by the payment method. - * @return currencies The list of currencies that a payment method supports. By default, all currencies supported by the payment method. + * The list of currencies that a payment method supports. By default, all currencies supported by + * the payment method. + * + * @return currencies The list of currencies that a payment method supports. By default, all + * currencies supported by the payment method. */ @JsonProperty(JSON_PROPERTY_CURRENCIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -352,9 +349,11 @@ public List getCurrencies() { } /** - * The list of currencies that a payment method supports. By default, all currencies supported by the payment method. + * The list of currencies that a payment method supports. By default, all currencies supported by + * the payment method. * - * @param currencies The list of currencies that a payment method supports. By default, all currencies supported by the payment method. + * @param currencies The list of currencies that a payment method supports. By default, all + * currencies supported by the payment method. */ @JsonProperty(JSON_PROPERTY_CURRENCIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -383,6 +382,7 @@ public UpdatePaymentMethodInfo addCustomRoutingFlagsItem(String customRoutingFla /** * Custom routing flags for acquirer routing. + * * @return customRoutingFlags Custom routing flags for acquirer routing. */ @JsonProperty(JSON_PROPERTY_CUSTOM_ROUTING_FLAGS) @@ -405,7 +405,7 @@ public void setCustomRoutingFlags(List customRoutingFlags) { /** * diners * - * @param diners + * @param diners * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo diners(GenericPmWithTdiInfo diners) { @@ -415,7 +415,8 @@ public UpdatePaymentMethodInfo diners(GenericPmWithTdiInfo diners) { /** * Get diners - * @return diners + * + * @return diners */ @JsonProperty(JSON_PROPERTY_DINERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -426,7 +427,7 @@ public GenericPmWithTdiInfo getDiners() { /** * diners * - * @param diners + * @param diners */ @JsonProperty(JSON_PROPERTY_DINERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -437,7 +438,7 @@ public void setDiners(GenericPmWithTdiInfo diners) { /** * discover * - * @param discover + * @param discover * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo discover(GenericPmWithTdiInfo discover) { @@ -447,7 +448,8 @@ public UpdatePaymentMethodInfo discover(GenericPmWithTdiInfo discover) { /** * Get discover - * @return discover + * + * @return discover */ @JsonProperty(JSON_PROPERTY_DISCOVER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -458,7 +460,7 @@ public GenericPmWithTdiInfo getDiscover() { /** * discover * - * @param discover + * @param discover */ @JsonProperty(JSON_PROPERTY_DISCOVER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -469,7 +471,7 @@ public void setDiscover(GenericPmWithTdiInfo discover) { /** * eftDirectdebitCA * - * @param eftDirectdebitCA + * @param eftDirectdebitCA * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo eftDirectdebitCA(GenericPmWithTdiInfo eftDirectdebitCA) { @@ -479,7 +481,8 @@ public UpdatePaymentMethodInfo eftDirectdebitCA(GenericPmWithTdiInfo eftDirectde /** * Get eftDirectdebitCA - * @return eftDirectdebitCA + * + * @return eftDirectdebitCA */ @JsonProperty(JSON_PROPERTY_EFT_DIRECTDEBIT_C_A) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -490,7 +493,7 @@ public GenericPmWithTdiInfo getEftDirectdebitCA() { /** * eftDirectdebitCA * - * @param eftDirectdebitCA + * @param eftDirectdebitCA */ @JsonProperty(JSON_PROPERTY_EFT_DIRECTDEBIT_C_A) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -501,7 +504,7 @@ public void setEftDirectdebitCA(GenericPmWithTdiInfo eftDirectdebitCA) { /** * eftposAustralia * - * @param eftposAustralia + * @param eftposAustralia * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo eftposAustralia(GenericPmWithTdiInfo eftposAustralia) { @@ -511,7 +514,8 @@ public UpdatePaymentMethodInfo eftposAustralia(GenericPmWithTdiInfo eftposAustra /** * Get eftposAustralia - * @return eftposAustralia + * + * @return eftposAustralia */ @JsonProperty(JSON_PROPERTY_EFTPOS_AUSTRALIA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -522,7 +526,7 @@ public GenericPmWithTdiInfo getEftposAustralia() { /** * eftposAustralia * - * @param eftposAustralia + * @param eftposAustralia */ @JsonProperty(JSON_PROPERTY_EFTPOS_AUSTRALIA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -533,7 +537,8 @@ public void setEftposAustralia(GenericPmWithTdiInfo eftposAustralia) { /** * Indicates whether the payment method is enabled (**true**) or disabled (**false**). * - * @param enabled Indicates whether the payment method is enabled (**true**) or disabled (**false**). + * @param enabled Indicates whether the payment method is enabled (**true**) or disabled + * (**false**). * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo enabled(Boolean enabled) { @@ -543,7 +548,9 @@ public UpdatePaymentMethodInfo enabled(Boolean enabled) { /** * Indicates whether the payment method is enabled (**true**) or disabled (**false**). - * @return enabled Indicates whether the payment method is enabled (**true**) or disabled (**false**). + * + * @return enabled Indicates whether the payment method is enabled (**true**) or disabled + * (**false**). */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -554,7 +561,8 @@ public Boolean getEnabled() { /** * Indicates whether the payment method is enabled (**true**) or disabled (**false**). * - * @param enabled Indicates whether the payment method is enabled (**true**) or disabled (**false**). + * @param enabled Indicates whether the payment method is enabled (**true**) or disabled + * (**false**). */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -565,7 +573,7 @@ public void setEnabled(Boolean enabled) { /** * girocard * - * @param girocard + * @param girocard * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo girocard(GenericPmWithTdiInfo girocard) { @@ -575,7 +583,8 @@ public UpdatePaymentMethodInfo girocard(GenericPmWithTdiInfo girocard) { /** * Get girocard - * @return girocard + * + * @return girocard */ @JsonProperty(JSON_PROPERTY_GIROCARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -586,7 +595,7 @@ public GenericPmWithTdiInfo getGirocard() { /** * girocard * - * @param girocard + * @param girocard */ @JsonProperty(JSON_PROPERTY_GIROCARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -597,7 +606,7 @@ public void setGirocard(GenericPmWithTdiInfo girocard) { /** * ideal * - * @param ideal + * @param ideal * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo ideal(GenericPmWithTdiInfo ideal) { @@ -607,7 +616,8 @@ public UpdatePaymentMethodInfo ideal(GenericPmWithTdiInfo ideal) { /** * Get ideal - * @return ideal + * + * @return ideal */ @JsonProperty(JSON_PROPERTY_IDEAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -618,7 +628,7 @@ public GenericPmWithTdiInfo getIdeal() { /** * ideal * - * @param ideal + * @param ideal */ @JsonProperty(JSON_PROPERTY_IDEAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -629,7 +639,7 @@ public void setIdeal(GenericPmWithTdiInfo ideal) { /** * interacCard * - * @param interacCard + * @param interacCard * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo interacCard(GenericPmWithTdiInfo interacCard) { @@ -639,7 +649,8 @@ public UpdatePaymentMethodInfo interacCard(GenericPmWithTdiInfo interacCard) { /** * Get interacCard - * @return interacCard + * + * @return interacCard */ @JsonProperty(JSON_PROPERTY_INTERAC_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -650,7 +661,7 @@ public GenericPmWithTdiInfo getInteracCard() { /** * interacCard * - * @param interacCard + * @param interacCard */ @JsonProperty(JSON_PROPERTY_INTERAC_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -661,7 +672,7 @@ public void setInteracCard(GenericPmWithTdiInfo interacCard) { /** * jcb * - * @param jcb + * @param jcb * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo jcb(GenericPmWithTdiInfo jcb) { @@ -671,7 +682,8 @@ public UpdatePaymentMethodInfo jcb(GenericPmWithTdiInfo jcb) { /** * Get jcb - * @return jcb + * + * @return jcb */ @JsonProperty(JSON_PROPERTY_JCB) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -682,7 +694,7 @@ public GenericPmWithTdiInfo getJcb() { /** * jcb * - * @param jcb + * @param jcb */ @JsonProperty(JSON_PROPERTY_JCB) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -693,7 +705,7 @@ public void setJcb(GenericPmWithTdiInfo jcb) { /** * maestro * - * @param maestro + * @param maestro * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo maestro(GenericPmWithTdiInfo maestro) { @@ -703,7 +715,8 @@ public UpdatePaymentMethodInfo maestro(GenericPmWithTdiInfo maestro) { /** * Get maestro - * @return maestro + * + * @return maestro */ @JsonProperty(JSON_PROPERTY_MAESTRO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -714,7 +727,7 @@ public GenericPmWithTdiInfo getMaestro() { /** * maestro * - * @param maestro + * @param maestro */ @JsonProperty(JSON_PROPERTY_MAESTRO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -725,7 +738,7 @@ public void setMaestro(GenericPmWithTdiInfo maestro) { /** * maestroUsa * - * @param maestroUsa + * @param maestroUsa * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo maestroUsa(GenericPmWithTdiInfo maestroUsa) { @@ -735,7 +748,8 @@ public UpdatePaymentMethodInfo maestroUsa(GenericPmWithTdiInfo maestroUsa) { /** * Get maestroUsa - * @return maestroUsa + * + * @return maestroUsa */ @JsonProperty(JSON_PROPERTY_MAESTRO_USA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -746,7 +760,7 @@ public GenericPmWithTdiInfo getMaestroUsa() { /** * maestroUsa * - * @param maestroUsa + * @param maestroUsa */ @JsonProperty(JSON_PROPERTY_MAESTRO_USA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -757,7 +771,7 @@ public void setMaestroUsa(GenericPmWithTdiInfo maestroUsa) { /** * mc * - * @param mc + * @param mc * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo mc(GenericPmWithTdiInfo mc) { @@ -767,7 +781,8 @@ public UpdatePaymentMethodInfo mc(GenericPmWithTdiInfo mc) { /** * Get mc - * @return mc + * + * @return mc */ @JsonProperty(JSON_PROPERTY_MC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -778,7 +793,7 @@ public GenericPmWithTdiInfo getMc() { /** * mc * - * @param mc + * @param mc */ @JsonProperty(JSON_PROPERTY_MC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -789,7 +804,7 @@ public void setMc(GenericPmWithTdiInfo mc) { /** * nyce * - * @param nyce + * @param nyce * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo nyce(NyceInfo nyce) { @@ -799,7 +814,8 @@ public UpdatePaymentMethodInfo nyce(NyceInfo nyce) { /** * Get nyce - * @return nyce + * + * @return nyce */ @JsonProperty(JSON_PROPERTY_NYCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -810,7 +826,7 @@ public NyceInfo getNyce() { /** * nyce * - * @param nyce + * @param nyce */ @JsonProperty(JSON_PROPERTY_NYCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -821,7 +837,7 @@ public void setNyce(NyceInfo nyce) { /** * paybybankPlaid * - * @param paybybankPlaid + * @param paybybankPlaid * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo paybybankPlaid(PayByBankPlaidInfo paybybankPlaid) { @@ -831,7 +847,8 @@ public UpdatePaymentMethodInfo paybybankPlaid(PayByBankPlaidInfo paybybankPlaid) /** * Get paybybankPlaid - * @return paybybankPlaid + * + * @return paybybankPlaid */ @JsonProperty(JSON_PROPERTY_PAYBYBANK_PLAID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -842,7 +859,7 @@ public PayByBankPlaidInfo getPaybybankPlaid() { /** * paybybankPlaid * - * @param paybybankPlaid + * @param paybybankPlaid */ @JsonProperty(JSON_PROPERTY_PAYBYBANK_PLAID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -853,7 +870,7 @@ public void setPaybybankPlaid(PayByBankPlaidInfo paybybankPlaid) { /** * pulse * - * @param pulse + * @param pulse * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo pulse(PulseInfo pulse) { @@ -863,7 +880,8 @@ public UpdatePaymentMethodInfo pulse(PulseInfo pulse) { /** * Get pulse - * @return pulse + * + * @return pulse */ @JsonProperty(JSON_PROPERTY_PULSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -874,7 +892,7 @@ public PulseInfo getPulse() { /** * pulse * - * @param pulse + * @param pulse */ @JsonProperty(JSON_PROPERTY_PULSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -885,7 +903,7 @@ public void setPulse(PulseInfo pulse) { /** * sepadirectdebit * - * @param sepadirectdebit + * @param sepadirectdebit * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo sepadirectdebit(SepaDirectDebitInfo sepadirectdebit) { @@ -895,7 +913,8 @@ public UpdatePaymentMethodInfo sepadirectdebit(SepaDirectDebitInfo sepadirectdeb /** * Get sepadirectdebit - * @return sepadirectdebit + * + * @return sepadirectdebit */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -906,7 +925,7 @@ public SepaDirectDebitInfo getSepadirectdebit() { /** * sepadirectdebit * - * @param sepadirectdebit + * @param sepadirectdebit */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -917,7 +936,7 @@ public void setSepadirectdebit(SepaDirectDebitInfo sepadirectdebit) { /** * star * - * @param star + * @param star * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo star(StarInfo star) { @@ -927,7 +946,8 @@ public UpdatePaymentMethodInfo star(StarInfo star) { /** * Get star - * @return star + * + * @return star */ @JsonProperty(JSON_PROPERTY_STAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -938,7 +958,7 @@ public StarInfo getStar() { /** * star * - * @param star + * @param star */ @JsonProperty(JSON_PROPERTY_STAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -959,6 +979,7 @@ public UpdatePaymentMethodInfo storeId(String storeId) { /** * The store for this payment method + * * @return storeId The store for this payment method */ @JsonProperty(JSON_PROPERTY_STORE_ID) @@ -983,11 +1004,11 @@ public void setStoreId(String storeId) { * * @param storeIds The list of stores for this payment method * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining - * - * @deprecated since Management API v3 - * Use `storeId` instead. Only one store per payment method is allowed. + * @deprecated since Management API v3 Use `storeId` instead. Only one store per payment + * method is allowed. */ - @Deprecated // deprecated since Management API v3: Use `storeId` instead. Only one store per payment method is allowed. + @Deprecated // deprecated since Management API v3: Use `storeId` instead. Only one store per + // payment method is allowed. public UpdatePaymentMethodInfo storeIds(List storeIds) { this.storeIds = storeIds; return this; @@ -1003,10 +1024,13 @@ public UpdatePaymentMethodInfo addStoreIdsItem(String storeIdsItem) { /** * The list of stores for this payment method + * * @return storeIds The list of stores for this payment method - * @deprecated // deprecated since Management API v3: Use `storeId` instead. Only one store per payment method is allowed. + * @deprecated // deprecated since Management API v3: Use `storeId` instead. Only one store per + * payment method is allowed. */ - @Deprecated // deprecated since Management API v3: Use `storeId` instead. Only one store per payment method is allowed. + @Deprecated // deprecated since Management API v3: Use `storeId` instead. Only one store per + // payment method is allowed. @JsonProperty(JSON_PROPERTY_STORE_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getStoreIds() { @@ -1017,11 +1041,11 @@ public List getStoreIds() { * The list of stores for this payment method * * @param storeIds The list of stores for this payment method - * - * @deprecated since Management API v3 - * Use `storeId` instead. Only one store per payment method is allowed. + * @deprecated since Management API v3 Use `storeId` instead. Only one store per payment + * method is allowed. */ - @Deprecated // deprecated since Management API v3: Use `storeId` instead. Only one store per payment method is allowed. + @Deprecated // deprecated since Management API v3: Use `storeId` instead. Only one store per + // payment method is allowed. @JsonProperty(JSON_PROPERTY_STORE_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStoreIds(List storeIds) { @@ -1031,7 +1055,7 @@ public void setStoreIds(List storeIds) { /** * visa * - * @param visa + * @param visa * @return the current {@code UpdatePaymentMethodInfo} instance, allowing for method chaining */ public UpdatePaymentMethodInfo visa(GenericPmWithTdiInfo visa) { @@ -1041,7 +1065,8 @@ public UpdatePaymentMethodInfo visa(GenericPmWithTdiInfo visa) { /** * Get visa - * @return visa + * + * @return visa */ @JsonProperty(JSON_PROPERTY_VISA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1052,7 +1077,7 @@ public GenericPmWithTdiInfo getVisa() { /** * visa * - * @param visa + * @param visa */ @JsonProperty(JSON_PROPERTY_VISA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1060,9 +1085,7 @@ public void setVisa(GenericPmWithTdiInfo visa) { this.visa = visa; } - /** - * Return true if this UpdatePaymentMethodInfo object is equal to o. - */ + /** Return true if this UpdatePaymentMethodInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -1072,38 +1095,65 @@ public boolean equals(Object o) { return false; } UpdatePaymentMethodInfo updatePaymentMethodInfo = (UpdatePaymentMethodInfo) o; - return Objects.equals(this.accel, updatePaymentMethodInfo.accel) && - Objects.equals(this.bcmc, updatePaymentMethodInfo.bcmc) && - Objects.equals(this.cartesBancaires, updatePaymentMethodInfo.cartesBancaires) && - Objects.equals(this.countries, updatePaymentMethodInfo.countries) && - Objects.equals(this.cup, updatePaymentMethodInfo.cup) && - Objects.equals(this.currencies, updatePaymentMethodInfo.currencies) && - Objects.equals(this.customRoutingFlags, updatePaymentMethodInfo.customRoutingFlags) && - Objects.equals(this.diners, updatePaymentMethodInfo.diners) && - Objects.equals(this.discover, updatePaymentMethodInfo.discover) && - Objects.equals(this.eftDirectdebitCA, updatePaymentMethodInfo.eftDirectdebitCA) && - Objects.equals(this.eftposAustralia, updatePaymentMethodInfo.eftposAustralia) && - Objects.equals(this.enabled, updatePaymentMethodInfo.enabled) && - Objects.equals(this.girocard, updatePaymentMethodInfo.girocard) && - Objects.equals(this.ideal, updatePaymentMethodInfo.ideal) && - Objects.equals(this.interacCard, updatePaymentMethodInfo.interacCard) && - Objects.equals(this.jcb, updatePaymentMethodInfo.jcb) && - Objects.equals(this.maestro, updatePaymentMethodInfo.maestro) && - Objects.equals(this.maestroUsa, updatePaymentMethodInfo.maestroUsa) && - Objects.equals(this.mc, updatePaymentMethodInfo.mc) && - Objects.equals(this.nyce, updatePaymentMethodInfo.nyce) && - Objects.equals(this.paybybankPlaid, updatePaymentMethodInfo.paybybankPlaid) && - Objects.equals(this.pulse, updatePaymentMethodInfo.pulse) && - Objects.equals(this.sepadirectdebit, updatePaymentMethodInfo.sepadirectdebit) && - Objects.equals(this.star, updatePaymentMethodInfo.star) && - Objects.equals(this.storeId, updatePaymentMethodInfo.storeId) && - Objects.equals(this.storeIds, updatePaymentMethodInfo.storeIds) && - Objects.equals(this.visa, updatePaymentMethodInfo.visa); + return Objects.equals(this.accel, updatePaymentMethodInfo.accel) + && Objects.equals(this.bcmc, updatePaymentMethodInfo.bcmc) + && Objects.equals(this.cartesBancaires, updatePaymentMethodInfo.cartesBancaires) + && Objects.equals(this.countries, updatePaymentMethodInfo.countries) + && Objects.equals(this.cup, updatePaymentMethodInfo.cup) + && Objects.equals(this.currencies, updatePaymentMethodInfo.currencies) + && Objects.equals(this.customRoutingFlags, updatePaymentMethodInfo.customRoutingFlags) + && Objects.equals(this.diners, updatePaymentMethodInfo.diners) + && Objects.equals(this.discover, updatePaymentMethodInfo.discover) + && Objects.equals(this.eftDirectdebitCA, updatePaymentMethodInfo.eftDirectdebitCA) + && Objects.equals(this.eftposAustralia, updatePaymentMethodInfo.eftposAustralia) + && Objects.equals(this.enabled, updatePaymentMethodInfo.enabled) + && Objects.equals(this.girocard, updatePaymentMethodInfo.girocard) + && Objects.equals(this.ideal, updatePaymentMethodInfo.ideal) + && Objects.equals(this.interacCard, updatePaymentMethodInfo.interacCard) + && Objects.equals(this.jcb, updatePaymentMethodInfo.jcb) + && Objects.equals(this.maestro, updatePaymentMethodInfo.maestro) + && Objects.equals(this.maestroUsa, updatePaymentMethodInfo.maestroUsa) + && Objects.equals(this.mc, updatePaymentMethodInfo.mc) + && Objects.equals(this.nyce, updatePaymentMethodInfo.nyce) + && Objects.equals(this.paybybankPlaid, updatePaymentMethodInfo.paybybankPlaid) + && Objects.equals(this.pulse, updatePaymentMethodInfo.pulse) + && Objects.equals(this.sepadirectdebit, updatePaymentMethodInfo.sepadirectdebit) + && Objects.equals(this.star, updatePaymentMethodInfo.star) + && Objects.equals(this.storeId, updatePaymentMethodInfo.storeId) + && Objects.equals(this.storeIds, updatePaymentMethodInfo.storeIds) + && Objects.equals(this.visa, updatePaymentMethodInfo.visa); } @Override public int hashCode() { - return Objects.hash(accel, bcmc, cartesBancaires, countries, cup, currencies, customRoutingFlags, diners, discover, eftDirectdebitCA, eftposAustralia, enabled, girocard, ideal, interacCard, jcb, maestro, maestroUsa, mc, nyce, paybybankPlaid, pulse, sepadirectdebit, star, storeId, storeIds, visa); + return Objects.hash( + accel, + bcmc, + cartesBancaires, + countries, + cup, + currencies, + customRoutingFlags, + diners, + discover, + eftDirectdebitCA, + eftposAustralia, + enabled, + girocard, + ideal, + interacCard, + jcb, + maestro, + maestroUsa, + mc, + nyce, + paybybankPlaid, + pulse, + sepadirectdebit, + star, + storeId, + storeIds, + visa); } @Override @@ -1142,8 +1192,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1152,21 +1201,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of UpdatePaymentMethodInfo given an JSON string * * @param jsonString JSON string * @return An instance of UpdatePaymentMethodInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to UpdatePaymentMethodInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to + * UpdatePaymentMethodInfo */ public static UpdatePaymentMethodInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdatePaymentMethodInfo.class); } -/** - * Convert an instance of UpdatePaymentMethodInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of UpdatePaymentMethodInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/UpdatePayoutSettingsRequest.java b/src/main/java/com/adyen/model/management/UpdatePayoutSettingsRequest.java index 7b094fae8..3cce63878 100644 --- a/src/main/java/com/adyen/model/management/UpdatePayoutSettingsRequest.java +++ b/src/main/java/com/adyen/model/management/UpdatePayoutSettingsRequest.java @@ -2,46 +2,36 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * UpdatePayoutSettingsRequest - */ -@JsonPropertyOrder({ - UpdatePayoutSettingsRequest.JSON_PROPERTY_ENABLED -}) - +/** UpdatePayoutSettingsRequest */ +@JsonPropertyOrder({UpdatePayoutSettingsRequest.JSON_PROPERTY_ENABLED}) public class UpdatePayoutSettingsRequest { public static final String JSON_PROPERTY_ENABLED = "enabled"; private Boolean enabled; - public UpdatePayoutSettingsRequest() { - } + public UpdatePayoutSettingsRequest() {} /** - * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. + * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts + * into this bank account, both `enabled` and `allowed` must be **true**. * - * @param enabled Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. + * @param enabled Indicates if payouts to this bank account are enabled. Default: **true**. To + * receive payouts into this bank account, both `enabled` and `allowed` + * must be **true**. * @return the current {@code UpdatePayoutSettingsRequest} instance, allowing for method chaining */ public UpdatePayoutSettingsRequest enabled(Boolean enabled) { @@ -50,8 +40,12 @@ public UpdatePayoutSettingsRequest enabled(Boolean enabled) { } /** - * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. - * @return enabled Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. + * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts + * into this bank account, both `enabled` and `allowed` must be **true**. + * + * @return enabled Indicates if payouts to this bank account are enabled. Default: **true**. To + * receive payouts into this bank account, both `enabled` and `allowed` + * must be **true**. */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,9 +54,12 @@ public Boolean getEnabled() { } /** - * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. + * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts + * into this bank account, both `enabled` and `allowed` must be **true**. * - * @param enabled Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. + * @param enabled Indicates if payouts to this bank account are enabled. Default: **true**. To + * receive payouts into this bank account, both `enabled` and `allowed` + * must be **true**. */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +67,7 @@ public void setEnabled(Boolean enabled) { this.enabled = enabled; } - /** - * Return true if this UpdatePayoutSettingsRequest object is equal to o. - */ + /** Return true if this UpdatePayoutSettingsRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +95,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +104,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of UpdatePayoutSettingsRequest given an JSON string * * @param jsonString JSON string * @return An instance of UpdatePayoutSettingsRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to UpdatePayoutSettingsRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * UpdatePayoutSettingsRequest */ - public static UpdatePayoutSettingsRequest fromJson(String jsonString) throws JsonProcessingException { + public static UpdatePayoutSettingsRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdatePayoutSettingsRequest.class); } -/** - * Convert an instance of UpdatePayoutSettingsRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of UpdatePayoutSettingsRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/UpdateSplitConfigurationLogicRequest.java b/src/main/java/com/adyen/model/management/UpdateSplitConfigurationLogicRequest.java index 6b7c04f6a..703e37d08 100644 --- a/src/main/java/com/adyen/model/management/UpdateSplitConfigurationLogicRequest.java +++ b/src/main/java/com/adyen/model/management/UpdateSplitConfigurationLogicRequest.java @@ -2,33 +2,26 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.AdditionalCommission; -import com.adyen.model.management.Commission; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * UpdateSplitConfigurationLogicRequest - */ +/** UpdateSplitConfigurationLogicRequest */ @JsonPropertyOrder({ UpdateSplitConfigurationLogicRequest.JSON_PROPERTY_ACQUIRING_FEES, UpdateSplitConfigurationLogicRequest.JSON_PROPERTY_ADDITIONAL_COMMISSION, @@ -48,13 +41,13 @@ UpdateSplitConfigurationLogicRequest.JSON_PROPERTY_SURCHARGE, UpdateSplitConfigurationLogicRequest.JSON_PROPERTY_TIP }) - public class UpdateSplitConfigurationLogicRequest { /** - * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the + * specified balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. */ public enum AcquiringFeesEnum { - DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); @@ -64,7 +57,7 @@ public enum AcquiringFeesEnum { private String value; AcquiringFeesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -85,7 +78,11 @@ public static AcquiringFeesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AcquiringFeesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AcquiringFeesEnum.values())); + LOG.warning( + "AcquiringFeesEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AcquiringFeesEnum.values())); return null; } } @@ -97,10 +94,12 @@ public static AcquiringFeesEnum fromValue(String value) { private AdditionalCommission additionalCommission; /** - * Deducts the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) + * from the specified balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. */ public enum AdyenCommissionEnum { - DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); @@ -110,7 +109,7 @@ public enum AdyenCommissionEnum { private String value; AdyenCommissionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -131,7 +130,11 @@ public static AdyenCommissionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AdyenCommissionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AdyenCommissionEnum.values())); + LOG.warning( + "AdyenCommissionEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AdyenCommissionEnum.values())); return null; } } @@ -140,10 +143,10 @@ public static AdyenCommissionEnum fromValue(String value) { private AdyenCommissionEnum adyenCommission; /** - * Deducts the fees due to Adyen (markup or commission) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the fees due to Adyen (markup or commission) from the specified balance account. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ public enum AdyenFeesEnum { - DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); @@ -153,7 +156,7 @@ public enum AdyenFeesEnum { private String value; AdyenFeesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -174,7 +177,11 @@ public static AdyenFeesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AdyenFeesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AdyenFeesEnum.values())); + LOG.warning( + "AdyenFeesEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AdyenFeesEnum.values())); return null; } } @@ -183,10 +190,11 @@ public static AdyenFeesEnum fromValue(String value) { private AdyenFeesEnum adyenFees; /** - * Deducts the transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the transaction fee due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ public enum AdyenMarkupEnum { - DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); @@ -196,7 +204,7 @@ public enum AdyenMarkupEnum { private String value; AdyenMarkupEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -217,7 +225,11 @@ public static AdyenMarkupEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AdyenMarkupEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AdyenMarkupEnum.values())); + LOG.warning( + "AdyenMarkupEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AdyenMarkupEnum.values())); return null; } } @@ -226,10 +238,11 @@ public static AdyenMarkupEnum fromValue(String value) { private AdyenMarkupEnum adyenMarkup; /** - * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible + * values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, + * **deductAccordingToSplitRatio**. */ public enum ChargebackEnum { - DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")), @@ -241,7 +254,7 @@ public enum ChargebackEnum { private String value; ChargebackEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -262,7 +275,11 @@ public static ChargebackEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ChargebackEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChargebackEnum.values())); + LOG.warning( + "ChargebackEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ChargebackEnum.values())); return null; } } @@ -271,20 +288,21 @@ public static ChargebackEnum fromValue(String value) { private ChargebackEnum chargeback; /** - * Deducts the chargeback costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * Deducts the chargeback costs from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount** */ public enum ChargebackCostAllocationEnum { - DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); - private static final Logger LOG = Logger.getLogger(ChargebackCostAllocationEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(ChargebackCostAllocationEnum.class.getName()); private String value; ChargebackCostAllocationEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -305,7 +323,11 @@ public static ChargebackCostAllocationEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ChargebackCostAllocationEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChargebackCostAllocationEnum.values())); + LOG.warning( + "ChargebackCostAllocationEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ChargebackCostAllocationEnum.values())); return null; } } @@ -317,10 +339,10 @@ public static ChargebackCostAllocationEnum fromValue(String value) { private Commission commission; /** - * Deducts the interchange fee from specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the interchange fee from specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ public enum InterchangeEnum { - DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); @@ -330,7 +352,7 @@ public enum InterchangeEnum { private String value; InterchangeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -351,7 +373,11 @@ public static InterchangeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("InterchangeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(InterchangeEnum.values())); + LOG.warning( + "InterchangeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(InterchangeEnum.values())); return null; } } @@ -360,10 +386,32 @@ public static InterchangeEnum fromValue(String value) { private InterchangeEnum interchange; /** - * Deducts all transaction fees incurred by the payment from the specified balance account. The transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to Adyen (markup or commission). You can book any and all these fees to different balance account by specifying other transaction fee parameters in your split configuration profile: - [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): The transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): The transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): The fee paid to the card scheme for using their network. - [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): The fee paid to the issuer for each payment transaction made with the card network. - [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): The aggregated amount of Adyen's commission and markup. - [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): The aggregated amount of the interchange and scheme fees. If you don't include at least one transaction fee type in the `splitLogic` object, Adyen updates the payment request with the `paymentFee` parameter, booking all transaction fees to your platform's liable balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts all transaction fees incurred by the payment from the specified balance account. The + * transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to + * Adyen (markup or commission). You can book any and all these fees to different balance account + * by specifying other transaction fee parameters in your split configuration profile: - + * [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): + * The transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). + * - + * [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): + * The transaction fee due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). + * - + * [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): + * The fee paid to the card scheme for using their network. - + * [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): + * The fee paid to the issuer for each payment transaction made with the card network. - + * [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): + * The aggregated amount of Adyen's commission and markup. - + * [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): + * The aggregated amount of the interchange and scheme fees. If you don't include at least one + * transaction fee type in the `splitLogic` object, Adyen updates the payment request + * with the `paymentFee` parameter, booking all transaction fees to your platform's + * liable balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. */ public enum PaymentFeeEnum { - DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); @@ -373,7 +421,7 @@ public enum PaymentFeeEnum { private String value; PaymentFeeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -394,7 +442,11 @@ public static PaymentFeeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PaymentFeeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PaymentFeeEnum.values())); + LOG.warning( + "PaymentFeeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PaymentFeeEnum.values())); return null; } } @@ -403,10 +455,10 @@ public static PaymentFeeEnum fromValue(String value) { private PaymentFeeEnum paymentFee; /** - * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** + * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** */ public enum RefundEnum { - DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")), @@ -418,7 +470,7 @@ public enum RefundEnum { private String value; RefundEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -439,7 +491,11 @@ public static RefundEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("RefundEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RefundEnum.values())); + LOG.warning( + "RefundEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(RefundEnum.values())); return null; } } @@ -448,10 +504,10 @@ public static RefundEnum fromValue(String value) { private RefundEnum refund; /** - * Deducts the refund costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * Deducts the refund costs from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount** */ public enum RefundCostAllocationEnum { - DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); @@ -461,7 +517,7 @@ public enum RefundCostAllocationEnum { private String value; RefundCostAllocationEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -482,7 +538,11 @@ public static RefundCostAllocationEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("RefundCostAllocationEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RefundCostAllocationEnum.values())); + LOG.warning( + "RefundCostAllocationEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(RefundCostAllocationEnum.values())); return null; } } @@ -491,10 +551,10 @@ public static RefundCostAllocationEnum fromValue(String value) { private RefundCostAllocationEnum refundCostAllocation; /** - * Books the amount left over after currency conversion to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * Books the amount left over after currency conversion to the specified balance account. Possible + * values: **addToLiableAccount**, **addToOneBalanceAccount**. */ public enum RemainderEnum { - ADDTOLIABLEACCOUNT(String.valueOf("addToLiableAccount")), ADDTOONEBALANCEACCOUNT(String.valueOf("addToOneBalanceAccount")); @@ -504,7 +564,7 @@ public enum RemainderEnum { private String value; RemainderEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -525,7 +585,11 @@ public static RemainderEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("RemainderEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RemainderEnum.values())); + LOG.warning( + "RemainderEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(RemainderEnum.values())); return null; } } @@ -534,10 +598,10 @@ public static RemainderEnum fromValue(String value) { private RemainderEnum remainder; /** - * Deducts the scheme fee from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the scheme fee from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ public enum SchemeFeeEnum { - DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); @@ -547,7 +611,7 @@ public enum SchemeFeeEnum { private String value; SchemeFeeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -568,7 +632,11 @@ public static SchemeFeeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("SchemeFeeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(SchemeFeeEnum.values())); + LOG.warning( + "SchemeFeeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(SchemeFeeEnum.values())); return null; } } @@ -580,10 +648,10 @@ public static SchemeFeeEnum fromValue(String value) { private String splitLogicId; /** - * Books the surcharge amount to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount** + * Books the surcharge amount to the specified balance account. Possible values: + * **addToLiableAccount**, **addToOneBalanceAccount** */ public enum SurchargeEnum { - ADDTOLIABLEACCOUNT(String.valueOf("addToLiableAccount")), ADDTOONEBALANCEACCOUNT(String.valueOf("addToOneBalanceAccount")); @@ -593,7 +661,7 @@ public enum SurchargeEnum { private String value; SurchargeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -614,7 +682,11 @@ public static SurchargeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("SurchargeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(SurchargeEnum.values())); + LOG.warning( + "SurchargeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(SurchargeEnum.values())); return null; } } @@ -623,10 +695,10 @@ public static SurchargeEnum fromValue(String value) { private SurchargeEnum surcharge; /** - * Books the tips (gratuity) to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * Books the tips (gratuity) to the specified balance account. Possible values: + * **addToLiableAccount**, **addToOneBalanceAccount**. */ public enum TipEnum { - ADDTOLIABLEACCOUNT(String.valueOf("addToLiableAccount")), ADDTOONEBALANCEACCOUNT(String.valueOf("addToOneBalanceAccount")); @@ -636,7 +708,7 @@ public enum TipEnum { private String value; TipEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -657,7 +729,11 @@ public static TipEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TipEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TipEnum.values())); + LOG.warning( + "TipEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TipEnum.values())); return null; } } @@ -665,22 +741,25 @@ public static TipEnum fromValue(String value) { public static final String JSON_PROPERTY_TIP = "tip"; private TipEnum tip; - public UpdateSplitConfigurationLogicRequest() { - } + public UpdateSplitConfigurationLogicRequest() {} @JsonCreator public UpdateSplitConfigurationLogicRequest( - @JsonProperty(JSON_PROPERTY_SPLIT_LOGIC_ID) String splitLogicId - ) { + @JsonProperty(JSON_PROPERTY_SPLIT_LOGIC_ID) String splitLogicId) { this(); this.splitLogicId = splitLogicId; } /** - * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the + * specified balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. * - * @param acquiringFees Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method chaining + * @param acquiringFees Deducts the acquiring fees (the aggregated amount of interchange and + * scheme fee) from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method + * chaining */ public UpdateSplitConfigurationLogicRequest acquiringFees(AcquiringFeesEnum acquiringFees) { this.acquiringFees = acquiringFees; @@ -688,8 +767,13 @@ public UpdateSplitConfigurationLogicRequest acquiringFees(AcquiringFeesEnum acqu } /** - * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - * @return acquiringFees Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the + * specified balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. + * + * @return acquiringFees Deducts the acquiring fees (the aggregated amount of interchange and + * scheme fee) from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_ACQUIRING_FEES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -698,9 +782,13 @@ public AcquiringFeesEnum getAcquiringFees() { } /** - * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the + * specified balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. * - * @param acquiringFees Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @param acquiringFees Deducts the acquiring fees (the aggregated amount of interchange and + * scheme fee) from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_ACQUIRING_FEES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -711,17 +799,20 @@ public void setAcquiringFees(AcquiringFeesEnum acquiringFees) { /** * additionalCommission * - * @param additionalCommission - * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method chaining + * @param additionalCommission + * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method + * chaining */ - public UpdateSplitConfigurationLogicRequest additionalCommission(AdditionalCommission additionalCommission) { + public UpdateSplitConfigurationLogicRequest additionalCommission( + AdditionalCommission additionalCommission) { this.additionalCommission = additionalCommission; return this; } /** * Get additionalCommission - * @return additionalCommission + * + * @return additionalCommission */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_COMMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -732,7 +823,7 @@ public AdditionalCommission getAdditionalCommission() { /** * additionalCommission * - * @param additionalCommission + * @param additionalCommission */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_COMMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -741,10 +832,17 @@ public void setAdditionalCommission(AdditionalCommission additionalCommission) { } /** - * Deducts the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) + * from the specified balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. * - * @param adyenCommission Deducts the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method chaining + * @param adyenCommission Deducts the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) + * from the specified balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. + * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method + * chaining */ public UpdateSplitConfigurationLogicRequest adyenCommission(AdyenCommissionEnum adyenCommission) { this.adyenCommission = adyenCommission; @@ -752,8 +850,15 @@ public UpdateSplitConfigurationLogicRequest adyenCommission(AdyenCommissionEnum } /** - * Deducts the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - * @return adyenCommission Deducts the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) + * from the specified balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. + * + * @return adyenCommission Deducts the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) + * from the specified balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_ADYEN_COMMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -762,9 +867,15 @@ public AdyenCommissionEnum getAdyenCommission() { } /** - * Deducts the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) + * from the specified balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. * - * @param adyenCommission Deducts the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @param adyenCommission Deducts the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) + * from the specified balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_ADYEN_COMMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -773,10 +884,14 @@ public void setAdyenCommission(AdyenCommissionEnum adyenCommission) { } /** - * Deducts the fees due to Adyen (markup or commission) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the fees due to Adyen (markup or commission) from the specified balance account. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param adyenFees Deducts the fees due to Adyen (markup or commission) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method chaining + * @param adyenFees Deducts the fees due to Adyen (markup or commission) from the specified + * balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. + * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method + * chaining */ public UpdateSplitConfigurationLogicRequest adyenFees(AdyenFeesEnum adyenFees) { this.adyenFees = adyenFees; @@ -784,8 +899,12 @@ public UpdateSplitConfigurationLogicRequest adyenFees(AdyenFeesEnum adyenFees) { } /** - * Deducts the fees due to Adyen (markup or commission) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - * @return adyenFees Deducts the fees due to Adyen (markup or commission) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the fees due to Adyen (markup or commission) from the specified balance account. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * + * @return adyenFees Deducts the fees due to Adyen (markup or commission) from the specified + * balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_ADYEN_FEES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -794,9 +913,12 @@ public AdyenFeesEnum getAdyenFees() { } /** - * Deducts the fees due to Adyen (markup or commission) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the fees due to Adyen (markup or commission) from the specified balance account. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param adyenFees Deducts the fees due to Adyen (markup or commission) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @param adyenFees Deducts the fees due to Adyen (markup or commission) from the specified + * balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_ADYEN_FEES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -805,10 +927,15 @@ public void setAdyenFees(AdyenFeesEnum adyenFees) { } /** - * Deducts the transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the transaction fee due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param adyenMarkup Deducts the transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method chaining + * @param adyenMarkup Deducts the transaction fee due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method + * chaining */ public UpdateSplitConfigurationLogicRequest adyenMarkup(AdyenMarkupEnum adyenMarkup) { this.adyenMarkup = adyenMarkup; @@ -816,8 +943,13 @@ public UpdateSplitConfigurationLogicRequest adyenMarkup(AdyenMarkupEnum adyenMar } /** - * Deducts the transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - * @return adyenMarkup Deducts the transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the transaction fee due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * + * @return adyenMarkup Deducts the transaction fee due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_ADYEN_MARKUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -826,9 +958,13 @@ public AdyenMarkupEnum getAdyenMarkup() { } /** - * Deducts the transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the transaction fee due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param adyenMarkup Deducts the transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @param adyenMarkup Deducts the transaction fee due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_ADYEN_MARKUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -837,10 +973,15 @@ public void setAdyenMarkup(AdyenMarkupEnum adyenMarkup) { } /** - * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible + * values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, + * **deductAccordingToSplitRatio**. * - * @param chargeback Specifies how and from which balance account(s) to deduct the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. - * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method chaining + * @param chargeback Specifies how and from which balance account(s) to deduct the chargeback + * amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, + * **deductAccordingToSplitRatio**. + * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method + * chaining */ public UpdateSplitConfigurationLogicRequest chargeback(ChargebackEnum chargeback) { this.chargeback = chargeback; @@ -848,8 +989,13 @@ public UpdateSplitConfigurationLogicRequest chargeback(ChargebackEnum chargeback } /** - * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. - * @return chargeback Specifies how and from which balance account(s) to deduct the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible + * values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, + * **deductAccordingToSplitRatio**. + * + * @return chargeback Specifies how and from which balance account(s) to deduct the chargeback + * amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, + * **deductAccordingToSplitRatio**. */ @JsonProperty(JSON_PROPERTY_CHARGEBACK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -858,9 +1004,13 @@ public ChargebackEnum getChargeback() { } /** - * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible + * values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, + * **deductAccordingToSplitRatio**. * - * @param chargeback Specifies how and from which balance account(s) to deduct the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * @param chargeback Specifies how and from which balance account(s) to deduct the chargeback + * amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, + * **deductAccordingToSplitRatio**. */ @JsonProperty(JSON_PROPERTY_CHARGEBACK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -869,19 +1019,26 @@ public void setChargeback(ChargebackEnum chargeback) { } /** - * Deducts the chargeback costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * Deducts the chargeback costs from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount** * - * @param chargebackCostAllocation Deducts the chargeback costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** - * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method chaining + * @param chargebackCostAllocation Deducts the chargeback costs from the specified balance + * account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method + * chaining */ - public UpdateSplitConfigurationLogicRequest chargebackCostAllocation(ChargebackCostAllocationEnum chargebackCostAllocation) { + public UpdateSplitConfigurationLogicRequest chargebackCostAllocation( + ChargebackCostAllocationEnum chargebackCostAllocation) { this.chargebackCostAllocation = chargebackCostAllocation; return this; } /** - * Deducts the chargeback costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** - * @return chargebackCostAllocation Deducts the chargeback costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * Deducts the chargeback costs from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * + * @return chargebackCostAllocation Deducts the chargeback costs from the specified balance + * account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** */ @JsonProperty(JSON_PROPERTY_CHARGEBACK_COST_ALLOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -890,9 +1047,11 @@ public ChargebackCostAllocationEnum getChargebackCostAllocation() { } /** - * Deducts the chargeback costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * Deducts the chargeback costs from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount** * - * @param chargebackCostAllocation Deducts the chargeback costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * @param chargebackCostAllocation Deducts the chargeback costs from the specified balance + * account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** */ @JsonProperty(JSON_PROPERTY_CHARGEBACK_COST_ALLOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -903,8 +1062,9 @@ public void setChargebackCostAllocation(ChargebackCostAllocationEnum chargebackC /** * commission * - * @param commission - * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method chaining + * @param commission + * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method + * chaining */ public UpdateSplitConfigurationLogicRequest commission(Commission commission) { this.commission = commission; @@ -913,7 +1073,8 @@ public UpdateSplitConfigurationLogicRequest commission(Commission commission) { /** * Get commission - * @return commission + * + * @return commission */ @JsonProperty(JSON_PROPERTY_COMMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -924,7 +1085,7 @@ public Commission getCommission() { /** * commission * - * @param commission + * @param commission */ @JsonProperty(JSON_PROPERTY_COMMISSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -933,10 +1094,13 @@ public void setCommission(Commission commission) { } /** - * Deducts the interchange fee from specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the interchange fee from specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param interchange Deducts the interchange fee from specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method chaining + * @param interchange Deducts the interchange fee from specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method + * chaining */ public UpdateSplitConfigurationLogicRequest interchange(InterchangeEnum interchange) { this.interchange = interchange; @@ -944,8 +1108,11 @@ public UpdateSplitConfigurationLogicRequest interchange(InterchangeEnum intercha } /** - * Deducts the interchange fee from specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - * @return interchange Deducts the interchange fee from specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the interchange fee from specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * + * @return interchange Deducts the interchange fee from specified balance account. Possible + * values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_INTERCHANGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -954,9 +1121,11 @@ public InterchangeEnum getInterchange() { } /** - * Deducts the interchange fee from specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the interchange fee from specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param interchange Deducts the interchange fee from specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @param interchange Deducts the interchange fee from specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_INTERCHANGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -965,10 +1134,58 @@ public void setInterchange(InterchangeEnum interchange) { } /** - * Deducts all transaction fees incurred by the payment from the specified balance account. The transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to Adyen (markup or commission). You can book any and all these fees to different balance account by specifying other transaction fee parameters in your split configuration profile: - [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): The transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): The transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): The fee paid to the card scheme for using their network. - [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): The fee paid to the issuer for each payment transaction made with the card network. - [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): The aggregated amount of Adyen's commission and markup. - [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): The aggregated amount of the interchange and scheme fees. If you don't include at least one transaction fee type in the `splitLogic` object, Adyen updates the payment request with the `paymentFee` parameter, booking all transaction fees to your platform's liable balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts all transaction fees incurred by the payment from the specified balance account. The + * transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to + * Adyen (markup or commission). You can book any and all these fees to different balance account + * by specifying other transaction fee parameters in your split configuration profile: - + * [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): + * The transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). + * - + * [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): + * The transaction fee due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). + * - + * [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): + * The fee paid to the card scheme for using their network. - + * [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): + * The fee paid to the issuer for each payment transaction made with the card network. - + * [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): + * The aggregated amount of Adyen's commission and markup. - + * [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): + * The aggregated amount of the interchange and scheme fees. If you don't include at least one + * transaction fee type in the `splitLogic` object, Adyen updates the payment request + * with the `paymentFee` parameter, booking all transaction fees to your platform's + * liable balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. * - * @param paymentFee Deducts all transaction fees incurred by the payment from the specified balance account. The transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to Adyen (markup or commission). You can book any and all these fees to different balance account by specifying other transaction fee parameters in your split configuration profile: - [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): The transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): The transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): The fee paid to the card scheme for using their network. - [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): The fee paid to the issuer for each payment transaction made with the card network. - [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): The aggregated amount of Adyen's commission and markup. - [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): The aggregated amount of the interchange and scheme fees. If you don't include at least one transaction fee type in the `splitLogic` object, Adyen updates the payment request with the `paymentFee` parameter, booking all transaction fees to your platform's liable balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method chaining + * @param paymentFee Deducts all transaction fees incurred by the payment from the specified + * balance account. The transaction fees include the acquiring fees (interchange and scheme + * fee), and the fees due to Adyen (markup or commission). You can book any and all these fees + * to different balance account by specifying other transaction fee parameters in your split + * configuration profile: - + * [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): + * The transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). + * - + * [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): + * The transaction fee due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). + * - + * [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): + * The fee paid to the card scheme for using their network. - + * [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): + * The fee paid to the issuer for each payment transaction made with the card network. - + * [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): + * The aggregated amount of Adyen's commission and markup. - + * [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): + * The aggregated amount of the interchange and scheme fees. If you don't include at least + * one transaction fee type in the `splitLogic` object, Adyen updates the payment + * request with the `paymentFee` parameter, booking all transaction fees to your + * platform's liable balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. + * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method + * chaining */ public UpdateSplitConfigurationLogicRequest paymentFee(PaymentFeeEnum paymentFee) { this.paymentFee = paymentFee; @@ -976,8 +1193,56 @@ public UpdateSplitConfigurationLogicRequest paymentFee(PaymentFeeEnum paymentFee } /** - * Deducts all transaction fees incurred by the payment from the specified balance account. The transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to Adyen (markup or commission). You can book any and all these fees to different balance account by specifying other transaction fee parameters in your split configuration profile: - [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): The transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): The transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): The fee paid to the card scheme for using their network. - [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): The fee paid to the issuer for each payment transaction made with the card network. - [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): The aggregated amount of Adyen's commission and markup. - [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): The aggregated amount of the interchange and scheme fees. If you don't include at least one transaction fee type in the `splitLogic` object, Adyen updates the payment request with the `paymentFee` parameter, booking all transaction fees to your platform's liable balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - * @return paymentFee Deducts all transaction fees incurred by the payment from the specified balance account. The transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to Adyen (markup or commission). You can book any and all these fees to different balance account by specifying other transaction fee parameters in your split configuration profile: - [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): The transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): The transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): The fee paid to the card scheme for using their network. - [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): The fee paid to the issuer for each payment transaction made with the card network. - [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): The aggregated amount of Adyen's commission and markup. - [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): The aggregated amount of the interchange and scheme fees. If you don't include at least one transaction fee type in the `splitLogic` object, Adyen updates the payment request with the `paymentFee` parameter, booking all transaction fees to your platform's liable balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts all transaction fees incurred by the payment from the specified balance account. The + * transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to + * Adyen (markup or commission). You can book any and all these fees to different balance account + * by specifying other transaction fee parameters in your split configuration profile: - + * [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): + * The transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). + * - + * [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): + * The transaction fee due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). + * - + * [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): + * The fee paid to the card scheme for using their network. - + * [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): + * The fee paid to the issuer for each payment transaction made with the card network. - + * [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): + * The aggregated amount of Adyen's commission and markup. - + * [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): + * The aggregated amount of the interchange and scheme fees. If you don't include at least one + * transaction fee type in the `splitLogic` object, Adyen updates the payment request + * with the `paymentFee` parameter, booking all transaction fees to your platform's + * liable balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. + * + * @return paymentFee Deducts all transaction fees incurred by the payment from the specified + * balance account. The transaction fees include the acquiring fees (interchange and scheme + * fee), and the fees due to Adyen (markup or commission). You can book any and all these fees + * to different balance account by specifying other transaction fee parameters in your split + * configuration profile: - + * [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): + * The transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). + * - + * [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): + * The transaction fee due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). + * - + * [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): + * The fee paid to the card scheme for using their network. - + * [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): + * The fee paid to the issuer for each payment transaction made with the card network. - + * [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): + * The aggregated amount of Adyen's commission and markup. - + * [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): + * The aggregated amount of the interchange and scheme fees. If you don't include at least + * one transaction fee type in the `splitLogic` object, Adyen updates the payment + * request with the `paymentFee` parameter, booking all transaction fees to your + * platform's liable balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_PAYMENT_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -986,9 +1251,56 @@ public PaymentFeeEnum getPaymentFee() { } /** - * Deducts all transaction fees incurred by the payment from the specified balance account. The transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to Adyen (markup or commission). You can book any and all these fees to different balance account by specifying other transaction fee parameters in your split configuration profile: - [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): The transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): The transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): The fee paid to the card scheme for using their network. - [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): The fee paid to the issuer for each payment transaction made with the card network. - [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): The aggregated amount of Adyen's commission and markup. - [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): The aggregated amount of the interchange and scheme fees. If you don't include at least one transaction fee type in the `splitLogic` object, Adyen updates the payment request with the `paymentFee` parameter, booking all transaction fees to your platform's liable balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts all transaction fees incurred by the payment from the specified balance account. The + * transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to + * Adyen (markup or commission). You can book any and all these fees to different balance account + * by specifying other transaction fee parameters in your split configuration profile: - + * [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): + * The transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). + * - + * [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): + * The transaction fee due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). + * - + * [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): + * The fee paid to the card scheme for using their network. - + * [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): + * The fee paid to the issuer for each payment transaction made with the card network. - + * [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): + * The aggregated amount of Adyen's commission and markup. - + * [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): + * The aggregated amount of the interchange and scheme fees. If you don't include at least one + * transaction fee type in the `splitLogic` object, Adyen updates the payment request + * with the `paymentFee` parameter, booking all transaction fees to your platform's + * liable balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. * - * @param paymentFee Deducts all transaction fees incurred by the payment from the specified balance account. The transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to Adyen (markup or commission). You can book any and all these fees to different balance account by specifying other transaction fee parameters in your split configuration profile: - [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): The transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): The transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): The fee paid to the card scheme for using their network. - [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): The fee paid to the issuer for each payment transaction made with the card network. - [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): The aggregated amount of Adyen's commission and markup. - [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): The aggregated amount of the interchange and scheme fees. If you don't include at least one transaction fee type in the `splitLogic` object, Adyen updates the payment request with the `paymentFee` parameter, booking all transaction fees to your platform's liable balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @param paymentFee Deducts all transaction fees incurred by the payment from the specified + * balance account. The transaction fees include the acquiring fees (interchange and scheme + * fee), and the fees due to Adyen (markup or commission). You can book any and all these fees + * to different balance account by specifying other transaction fee parameters in your split + * configuration profile: - + * [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): + * The transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). + * - + * [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): + * The transaction fee due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). + * - + * [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): + * The fee paid to the card scheme for using their network. - + * [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): + * The fee paid to the issuer for each payment transaction made with the card network. - + * [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): + * The aggregated amount of Adyen's commission and markup. - + * [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): + * The aggregated amount of the interchange and scheme fees. If you don't include at least + * one transaction fee type in the `splitLogic` object, Adyen updates the payment + * request with the `paymentFee` parameter, booking all transaction fees to your + * platform's liable balance account. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_PAYMENT_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -997,10 +1309,14 @@ public void setPaymentFee(PaymentFeeEnum paymentFee) { } /** - * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** + * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** * - * @param refund Specifies how and from which balance account(s) to deduct the refund amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** - * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method chaining + * @param refund Specifies how and from which balance account(s) to deduct the refund amount. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, + * **deductAccordingToSplitRatio** + * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method + * chaining */ public UpdateSplitConfigurationLogicRequest refund(RefundEnum refund) { this.refund = refund; @@ -1008,8 +1324,12 @@ public UpdateSplitConfigurationLogicRequest refund(RefundEnum refund) { } /** - * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** - * @return refund Specifies how and from which balance account(s) to deduct the refund amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** + * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** + * + * @return refund Specifies how and from which balance account(s) to deduct the refund amount. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, + * **deductAccordingToSplitRatio** */ @JsonProperty(JSON_PROPERTY_REFUND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1018,9 +1338,12 @@ public RefundEnum getRefund() { } /** - * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** + * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** * - * @param refund Specifies how and from which balance account(s) to deduct the refund amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** + * @param refund Specifies how and from which balance account(s) to deduct the refund amount. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, + * **deductAccordingToSplitRatio** */ @JsonProperty(JSON_PROPERTY_REFUND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1029,19 +1352,26 @@ public void setRefund(RefundEnum refund) { } /** - * Deducts the refund costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * Deducts the refund costs from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount** * - * @param refundCostAllocation Deducts the refund costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** - * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method chaining + * @param refundCostAllocation Deducts the refund costs from the specified balance account. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method + * chaining */ - public UpdateSplitConfigurationLogicRequest refundCostAllocation(RefundCostAllocationEnum refundCostAllocation) { + public UpdateSplitConfigurationLogicRequest refundCostAllocation( + RefundCostAllocationEnum refundCostAllocation) { this.refundCostAllocation = refundCostAllocation; return this; } /** - * Deducts the refund costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** - * @return refundCostAllocation Deducts the refund costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * Deducts the refund costs from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * + * @return refundCostAllocation Deducts the refund costs from the specified balance account. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** */ @JsonProperty(JSON_PROPERTY_REFUND_COST_ALLOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1050,9 +1380,11 @@ public RefundCostAllocationEnum getRefundCostAllocation() { } /** - * Deducts the refund costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * Deducts the refund costs from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount** * - * @param refundCostAllocation Deducts the refund costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** + * @param refundCostAllocation Deducts the refund costs from the specified balance account. + * Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** */ @JsonProperty(JSON_PROPERTY_REFUND_COST_ALLOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1061,10 +1393,13 @@ public void setRefundCostAllocation(RefundCostAllocationEnum refundCostAllocatio } /** - * Books the amount left over after currency conversion to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * Books the amount left over after currency conversion to the specified balance account. Possible + * values: **addToLiableAccount**, **addToOneBalanceAccount**. * - * @param remainder Books the amount left over after currency conversion to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. - * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method chaining + * @param remainder Books the amount left over after currency conversion to the specified balance + * account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method + * chaining */ public UpdateSplitConfigurationLogicRequest remainder(RemainderEnum remainder) { this.remainder = remainder; @@ -1072,8 +1407,11 @@ public UpdateSplitConfigurationLogicRequest remainder(RemainderEnum remainder) { } /** - * Books the amount left over after currency conversion to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. - * @return remainder Books the amount left over after currency conversion to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * Books the amount left over after currency conversion to the specified balance account. Possible + * values: **addToLiableAccount**, **addToOneBalanceAccount**. + * + * @return remainder Books the amount left over after currency conversion to the specified balance + * account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_REMAINDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1082,9 +1420,11 @@ public RemainderEnum getRemainder() { } /** - * Books the amount left over after currency conversion to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * Books the amount left over after currency conversion to the specified balance account. Possible + * values: **addToLiableAccount**, **addToOneBalanceAccount**. * - * @param remainder Books the amount left over after currency conversion to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * @param remainder Books the amount left over after currency conversion to the specified balance + * account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_REMAINDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1093,10 +1433,13 @@ public void setRemainder(RemainderEnum remainder) { } /** - * Deducts the scheme fee from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the scheme fee from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param schemeFee Deducts the scheme fee from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method chaining + * @param schemeFee Deducts the scheme fee from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method + * chaining */ public UpdateSplitConfigurationLogicRequest schemeFee(SchemeFeeEnum schemeFee) { this.schemeFee = schemeFee; @@ -1104,8 +1447,11 @@ public UpdateSplitConfigurationLogicRequest schemeFee(SchemeFeeEnum schemeFee) { } /** - * Deducts the scheme fee from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. - * @return schemeFee Deducts the scheme fee from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the scheme fee from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * + * @return schemeFee Deducts the scheme fee from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_SCHEME_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1114,9 +1460,11 @@ public SchemeFeeEnum getSchemeFee() { } /** - * Deducts the scheme fee from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * Deducts the scheme fee from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. * - * @param schemeFee Deducts the scheme fee from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. + * @param schemeFee Deducts the scheme fee from the specified balance account. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_SCHEME_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1125,8 +1473,11 @@ public void setSchemeFee(SchemeFeeEnum schemeFee) { } /** - * Unique identifier of the collection of split instructions that are applied when the rule conditions are met. - * @return splitLogicId Unique identifier of the collection of split instructions that are applied when the rule conditions are met. + * Unique identifier of the collection of split instructions that are applied when the rule + * conditions are met. + * + * @return splitLogicId Unique identifier of the collection of split instructions that are applied + * when the rule conditions are met. */ @JsonProperty(JSON_PROPERTY_SPLIT_LOGIC_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1134,12 +1485,14 @@ public String getSplitLogicId() { return splitLogicId; } - /** - * Books the surcharge amount to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount** + * Books the surcharge amount to the specified balance account. Possible values: + * **addToLiableAccount**, **addToOneBalanceAccount** * - * @param surcharge Books the surcharge amount to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount** - * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method chaining + * @param surcharge Books the surcharge amount to the specified balance account. Possible values: + * **addToLiableAccount**, **addToOneBalanceAccount** + * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method + * chaining */ public UpdateSplitConfigurationLogicRequest surcharge(SurchargeEnum surcharge) { this.surcharge = surcharge; @@ -1147,8 +1500,11 @@ public UpdateSplitConfigurationLogicRequest surcharge(SurchargeEnum surcharge) { } /** - * Books the surcharge amount to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount** - * @return surcharge Books the surcharge amount to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount** + * Books the surcharge amount to the specified balance account. Possible values: + * **addToLiableAccount**, **addToOneBalanceAccount** + * + * @return surcharge Books the surcharge amount to the specified balance account. Possible values: + * **addToLiableAccount**, **addToOneBalanceAccount** */ @JsonProperty(JSON_PROPERTY_SURCHARGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1157,9 +1513,11 @@ public SurchargeEnum getSurcharge() { } /** - * Books the surcharge amount to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount** + * Books the surcharge amount to the specified balance account. Possible values: + * **addToLiableAccount**, **addToOneBalanceAccount** * - * @param surcharge Books the surcharge amount to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount** + * @param surcharge Books the surcharge amount to the specified balance account. Possible values: + * **addToLiableAccount**, **addToOneBalanceAccount** */ @JsonProperty(JSON_PROPERTY_SURCHARGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1168,10 +1526,13 @@ public void setSurcharge(SurchargeEnum surcharge) { } /** - * Books the tips (gratuity) to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * Books the tips (gratuity) to the specified balance account. Possible values: + * **addToLiableAccount**, **addToOneBalanceAccount**. * - * @param tip Books the tips (gratuity) to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. - * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method chaining + * @param tip Books the tips (gratuity) to the specified balance account. Possible values: + * **addToLiableAccount**, **addToOneBalanceAccount**. + * @return the current {@code UpdateSplitConfigurationLogicRequest} instance, allowing for method + * chaining */ public UpdateSplitConfigurationLogicRequest tip(TipEnum tip) { this.tip = tip; @@ -1179,8 +1540,11 @@ public UpdateSplitConfigurationLogicRequest tip(TipEnum tip) { } /** - * Books the tips (gratuity) to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. - * @return tip Books the tips (gratuity) to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * Books the tips (gratuity) to the specified balance account. Possible values: + * **addToLiableAccount**, **addToOneBalanceAccount**. + * + * @return tip Books the tips (gratuity) to the specified balance account. Possible values: + * **addToLiableAccount**, **addToOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_TIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1189,9 +1553,11 @@ public TipEnum getTip() { } /** - * Books the tips (gratuity) to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * Books the tips (gratuity) to the specified balance account. Possible values: + * **addToLiableAccount**, **addToOneBalanceAccount**. * - * @param tip Books the tips (gratuity) to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. + * @param tip Books the tips (gratuity) to the specified balance account. Possible values: + * **addToLiableAccount**, **addToOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_TIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1199,9 +1565,7 @@ public void setTip(TipEnum tip) { this.tip = tip; } - /** - * Return true if this UpdateSplitConfigurationLogicRequest object is equal to o. - */ + /** Return true if this UpdateSplitConfigurationLogicRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -1210,29 +1574,52 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UpdateSplitConfigurationLogicRequest updateSplitConfigurationLogicRequest = (UpdateSplitConfigurationLogicRequest) o; - return Objects.equals(this.acquiringFees, updateSplitConfigurationLogicRequest.acquiringFees) && - Objects.equals(this.additionalCommission, updateSplitConfigurationLogicRequest.additionalCommission) && - Objects.equals(this.adyenCommission, updateSplitConfigurationLogicRequest.adyenCommission) && - Objects.equals(this.adyenFees, updateSplitConfigurationLogicRequest.adyenFees) && - Objects.equals(this.adyenMarkup, updateSplitConfigurationLogicRequest.adyenMarkup) && - Objects.equals(this.chargeback, updateSplitConfigurationLogicRequest.chargeback) && - Objects.equals(this.chargebackCostAllocation, updateSplitConfigurationLogicRequest.chargebackCostAllocation) && - Objects.equals(this.commission, updateSplitConfigurationLogicRequest.commission) && - Objects.equals(this.interchange, updateSplitConfigurationLogicRequest.interchange) && - Objects.equals(this.paymentFee, updateSplitConfigurationLogicRequest.paymentFee) && - Objects.equals(this.refund, updateSplitConfigurationLogicRequest.refund) && - Objects.equals(this.refundCostAllocation, updateSplitConfigurationLogicRequest.refundCostAllocation) && - Objects.equals(this.remainder, updateSplitConfigurationLogicRequest.remainder) && - Objects.equals(this.schemeFee, updateSplitConfigurationLogicRequest.schemeFee) && - Objects.equals(this.splitLogicId, updateSplitConfigurationLogicRequest.splitLogicId) && - Objects.equals(this.surcharge, updateSplitConfigurationLogicRequest.surcharge) && - Objects.equals(this.tip, updateSplitConfigurationLogicRequest.tip); + UpdateSplitConfigurationLogicRequest updateSplitConfigurationLogicRequest = + (UpdateSplitConfigurationLogicRequest) o; + return Objects.equals(this.acquiringFees, updateSplitConfigurationLogicRequest.acquiringFees) + && Objects.equals( + this.additionalCommission, updateSplitConfigurationLogicRequest.additionalCommission) + && Objects.equals( + this.adyenCommission, updateSplitConfigurationLogicRequest.adyenCommission) + && Objects.equals(this.adyenFees, updateSplitConfigurationLogicRequest.adyenFees) + && Objects.equals(this.adyenMarkup, updateSplitConfigurationLogicRequest.adyenMarkup) + && Objects.equals(this.chargeback, updateSplitConfigurationLogicRequest.chargeback) + && Objects.equals( + this.chargebackCostAllocation, + updateSplitConfigurationLogicRequest.chargebackCostAllocation) + && Objects.equals(this.commission, updateSplitConfigurationLogicRequest.commission) + && Objects.equals(this.interchange, updateSplitConfigurationLogicRequest.interchange) + && Objects.equals(this.paymentFee, updateSplitConfigurationLogicRequest.paymentFee) + && Objects.equals(this.refund, updateSplitConfigurationLogicRequest.refund) + && Objects.equals( + this.refundCostAllocation, updateSplitConfigurationLogicRequest.refundCostAllocation) + && Objects.equals(this.remainder, updateSplitConfigurationLogicRequest.remainder) + && Objects.equals(this.schemeFee, updateSplitConfigurationLogicRequest.schemeFee) + && Objects.equals(this.splitLogicId, updateSplitConfigurationLogicRequest.splitLogicId) + && Objects.equals(this.surcharge, updateSplitConfigurationLogicRequest.surcharge) + && Objects.equals(this.tip, updateSplitConfigurationLogicRequest.tip); } @Override public int hashCode() { - return Objects.hash(acquiringFees, additionalCommission, adyenCommission, adyenFees, adyenMarkup, chargeback, chargebackCostAllocation, commission, interchange, paymentFee, refund, refundCostAllocation, remainder, schemeFee, splitLogicId, surcharge, tip); + return Objects.hash( + acquiringFees, + additionalCommission, + adyenCommission, + adyenFees, + adyenMarkup, + chargeback, + chargebackCostAllocation, + commission, + interchange, + paymentFee, + refund, + refundCostAllocation, + remainder, + schemeFee, + splitLogicId, + surcharge, + tip); } @Override @@ -1240,17 +1627,23 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateSplitConfigurationLogicRequest {\n"); sb.append(" acquiringFees: ").append(toIndentedString(acquiringFees)).append("\n"); - sb.append(" additionalCommission: ").append(toIndentedString(additionalCommission)).append("\n"); + sb.append(" additionalCommission: ") + .append(toIndentedString(additionalCommission)) + .append("\n"); sb.append(" adyenCommission: ").append(toIndentedString(adyenCommission)).append("\n"); sb.append(" adyenFees: ").append(toIndentedString(adyenFees)).append("\n"); sb.append(" adyenMarkup: ").append(toIndentedString(adyenMarkup)).append("\n"); sb.append(" chargeback: ").append(toIndentedString(chargeback)).append("\n"); - sb.append(" chargebackCostAllocation: ").append(toIndentedString(chargebackCostAllocation)).append("\n"); + sb.append(" chargebackCostAllocation: ") + .append(toIndentedString(chargebackCostAllocation)) + .append("\n"); sb.append(" commission: ").append(toIndentedString(commission)).append("\n"); sb.append(" interchange: ").append(toIndentedString(interchange)).append("\n"); sb.append(" paymentFee: ").append(toIndentedString(paymentFee)).append("\n"); sb.append(" refund: ").append(toIndentedString(refund)).append("\n"); - sb.append(" refundCostAllocation: ").append(toIndentedString(refundCostAllocation)).append("\n"); + sb.append(" refundCostAllocation: ") + .append(toIndentedString(refundCostAllocation)) + .append("\n"); sb.append(" remainder: ").append(toIndentedString(remainder)).append("\n"); sb.append(" schemeFee: ").append(toIndentedString(schemeFee)).append("\n"); sb.append(" splitLogicId: ").append(toIndentedString(splitLogicId)).append("\n"); @@ -1261,8 +1654,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1271,21 +1663,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of UpdateSplitConfigurationLogicRequest given an JSON string * * @param jsonString JSON string * @return An instance of UpdateSplitConfigurationLogicRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to UpdateSplitConfigurationLogicRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * UpdateSplitConfigurationLogicRequest */ - public static UpdateSplitConfigurationLogicRequest fromJson(String jsonString) throws JsonProcessingException { + public static UpdateSplitConfigurationLogicRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdateSplitConfigurationLogicRequest.class); } -/** - * Convert an instance of UpdateSplitConfigurationLogicRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of UpdateSplitConfigurationLogicRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/UpdateSplitConfigurationRequest.java b/src/main/java/com/adyen/model/management/UpdateSplitConfigurationRequest.java index 232169dfd..92a0f3c98 100644 --- a/src/main/java/com/adyen/model/management/UpdateSplitConfigurationRequest.java +++ b/src/main/java/com/adyen/model/management/UpdateSplitConfigurationRequest.java @@ -2,47 +2,35 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * UpdateSplitConfigurationRequest - */ -@JsonPropertyOrder({ - UpdateSplitConfigurationRequest.JSON_PROPERTY_DESCRIPTION -}) - +/** UpdateSplitConfigurationRequest */ +@JsonPropertyOrder({UpdateSplitConfigurationRequest.JSON_PROPERTY_DESCRIPTION}) public class UpdateSplitConfigurationRequest { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; - public UpdateSplitConfigurationRequest() { - } + public UpdateSplitConfigurationRequest() {} /** * Your description for the split configuration. * * @param description Your description for the split configuration. - * @return the current {@code UpdateSplitConfigurationRequest} instance, allowing for method chaining + * @return the current {@code UpdateSplitConfigurationRequest} instance, allowing for method + * chaining */ public UpdateSplitConfigurationRequest description(String description) { this.description = description; @@ -51,6 +39,7 @@ public UpdateSplitConfigurationRequest description(String description) { /** * Your description for the split configuration. + * * @return description Your description for the split configuration. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -70,9 +59,7 @@ public void setDescription(String description) { this.description = description; } - /** - * Return true if this UpdateSplitConfigurationRequest object is equal to o. - */ + /** Return true if this UpdateSplitConfigurationRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -81,7 +68,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UpdateSplitConfigurationRequest updateSplitConfigurationRequest = (UpdateSplitConfigurationRequest) o; + UpdateSplitConfigurationRequest updateSplitConfigurationRequest = + (UpdateSplitConfigurationRequest) o; return Objects.equals(this.description, updateSplitConfigurationRequest.description); } @@ -100,8 +88,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +97,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of UpdateSplitConfigurationRequest given an JSON string * * @param jsonString JSON string * @return An instance of UpdateSplitConfigurationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to UpdateSplitConfigurationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * UpdateSplitConfigurationRequest */ - public static UpdateSplitConfigurationRequest fromJson(String jsonString) throws JsonProcessingException { + public static UpdateSplitConfigurationRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdateSplitConfigurationRequest.class); } -/** - * Convert an instance of UpdateSplitConfigurationRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of UpdateSplitConfigurationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/UpdateSplitConfigurationRuleRequest.java b/src/main/java/com/adyen/model/management/UpdateSplitConfigurationRuleRequest.java index 23dfed550..62af8e983 100644 --- a/src/main/java/com/adyen/model/management/UpdateSplitConfigurationRuleRequest.java +++ b/src/main/java/com/adyen/model/management/UpdateSplitConfigurationRuleRequest.java @@ -2,38 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * UpdateSplitConfigurationRuleRequest - */ +/** UpdateSplitConfigurationRuleRequest */ @JsonPropertyOrder({ UpdateSplitConfigurationRuleRequest.JSON_PROPERTY_CURRENCY, UpdateSplitConfigurationRuleRequest.JSON_PROPERTY_FUNDING_SOURCE, UpdateSplitConfigurationRuleRequest.JSON_PROPERTY_PAYMENT_METHOD, UpdateSplitConfigurationRuleRequest.JSON_PROPERTY_SHOPPER_INTERACTION }) - public class UpdateSplitConfigurationRuleRequest { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -47,14 +37,16 @@ public class UpdateSplitConfigurationRuleRequest { public static final String JSON_PROPERTY_SHOPPER_INTERACTION = "shopperInteraction"; private String shopperInteraction; - public UpdateSplitConfigurationRuleRequest() { - } + public UpdateSplitConfigurationRuleRequest() {} /** - * The currency condition that defines whether the split logic applies. Its value must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * The currency condition that defines whether the split logic applies. Its value must be a + * three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). * - * @param currency The currency condition that defines whether the split logic applies. Its value must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). - * @return the current {@code UpdateSplitConfigurationRuleRequest} instance, allowing for method chaining + * @param currency The currency condition that defines whether the split logic applies. Its value + * must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * @return the current {@code UpdateSplitConfigurationRuleRequest} instance, allowing for method + * chaining */ public UpdateSplitConfigurationRuleRequest currency(String currency) { this.currency = currency; @@ -62,8 +54,11 @@ public UpdateSplitConfigurationRuleRequest currency(String currency) { } /** - * The currency condition that defines whether the split logic applies. Its value must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). - * @return currency The currency condition that defines whether the split logic applies. Its value must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * The currency condition that defines whether the split logic applies. Its value must be a + * three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * + * @return currency The currency condition that defines whether the split logic applies. Its value + * must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -72,9 +67,11 @@ public String getCurrency() { } /** - * The currency condition that defines whether the split logic applies. Its value must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * The currency condition that defines whether the split logic applies. Its value must be a + * three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). * - * @param currency The currency condition that defines whether the split logic applies. Its value must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * @param currency The currency condition that defines whether the split logic applies. Its value + * must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,10 +80,13 @@ public void setCurrency(String currency) { } /** - * The funding source of the payment method. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** + * The funding source of the payment method. Possible values: * **credit** * **debit** * + * **prepaid** * **deferred_debit** * **charged** * **ANY** * - * @param fundingSource The funding source of the payment method. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** - * @return the current {@code UpdateSplitConfigurationRuleRequest} instance, allowing for method chaining + * @param fundingSource The funding source of the payment method. Possible values: * **credit** * + * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** + * @return the current {@code UpdateSplitConfigurationRuleRequest} instance, allowing for method + * chaining */ public UpdateSplitConfigurationRuleRequest fundingSource(String fundingSource) { this.fundingSource = fundingSource; @@ -94,8 +94,11 @@ public UpdateSplitConfigurationRuleRequest fundingSource(String fundingSource) { } /** - * The funding source of the payment method. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** - * @return fundingSource The funding source of the payment method. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** + * The funding source of the payment method. Possible values: * **credit** * **debit** * + * **prepaid** * **deferred_debit** * **charged** * **ANY** + * + * @return fundingSource The funding source of the payment method. Possible values: * **credit** * + * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,9 +107,11 @@ public String getFundingSource() { } /** - * The funding source of the payment method. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** + * The funding source of the payment method. Possible values: * **credit** * **debit** * + * **prepaid** * **deferred_debit** * **charged** * **ANY** * - * @param fundingSource The funding source of the payment method. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** + * @param fundingSource The funding source of the payment method. Possible values: * **credit** * + * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,10 +120,18 @@ public void setFundingSource(String fundingSource) { } /** - * The payment method condition that defines whether the split logic applies. Possible values: * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all available payment methods. + * The payment method condition that defines whether the split logic applies. Possible values: * + * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): + * Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all + * available payment methods. * - * @param paymentMethod The payment method condition that defines whether the split logic applies. Possible values: * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all available payment methods. - * @return the current {@code UpdateSplitConfigurationRuleRequest} instance, allowing for method chaining + * @param paymentMethod The payment method condition that defines whether the split logic applies. + * Possible values: * [Payment method + * variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the + * split logic for a specific payment method. * **ANY**: Apply the split logic for all + * available payment methods. + * @return the current {@code UpdateSplitConfigurationRuleRequest} instance, allowing for method + * chaining */ public UpdateSplitConfigurationRuleRequest paymentMethod(String paymentMethod) { this.paymentMethod = paymentMethod; @@ -126,8 +139,16 @@ public UpdateSplitConfigurationRuleRequest paymentMethod(String paymentMethod) { } /** - * The payment method condition that defines whether the split logic applies. Possible values: * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all available payment methods. - * @return paymentMethod The payment method condition that defines whether the split logic applies. Possible values: * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all available payment methods. + * The payment method condition that defines whether the split logic applies. Possible values: * + * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): + * Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all + * available payment methods. + * + * @return paymentMethod The payment method condition that defines whether the split logic + * applies. Possible values: * [Payment method + * variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the + * split logic for a specific payment method. * **ANY**: Apply the split logic for all + * available payment methods. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,9 +157,16 @@ public String getPaymentMethod() { } /** - * The payment method condition that defines whether the split logic applies. Possible values: * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all available payment methods. + * The payment method condition that defines whether the split logic applies. Possible values: * + * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): + * Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all + * available payment methods. * - * @param paymentMethod The payment method condition that defines whether the split logic applies. Possible values: * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all available payment methods. + * @param paymentMethod The payment method condition that defines whether the split logic applies. + * Possible values: * [Payment method + * variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the + * split logic for a specific payment method. * **ANY**: Apply the split logic for all + * available payment methods. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,10 +175,23 @@ public void setPaymentMethod(String paymentMethod) { } /** - * The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: All sales channels. + * The sales channel condition that defines whether the split logic applies. Possible values: * + * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on + * file and/or subscription transactions, where the cardholder is known to the merchant (returning + * customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in + * contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where + * the customer is physically present to make a payment using a secure payment terminal. * + * **ANY**: All sales channels. * - * @param shopperInteraction The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: All sales channels. - * @return the current {@code UpdateSplitConfigurationRuleRequest} instance, allowing for method chaining + * @param shopperInteraction The sales channel condition that defines whether the split logic + * applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is + * present. * **ContAuth**: Card on file and/or subscription transactions, where the + * cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and + * telephone-order transactions where the customer is in contact with the merchant via email + * or telephone. * **POS**: Point-of-sale transactions where the customer is physically + * present to make a payment using a secure payment terminal. * **ANY**: All sales channels. + * @return the current {@code UpdateSplitConfigurationRuleRequest} instance, allowing for method + * chaining */ public UpdateSplitConfigurationRuleRequest shopperInteraction(String shopperInteraction) { this.shopperInteraction = shopperInteraction; @@ -158,8 +199,21 @@ public UpdateSplitConfigurationRuleRequest shopperInteraction(String shopperInte } /** - * The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: All sales channels. - * @return shopperInteraction The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: All sales channels. + * The sales channel condition that defines whether the split logic applies. Possible values: * + * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on + * file and/or subscription transactions, where the cardholder is known to the merchant (returning + * customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in + * contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where + * the customer is physically present to make a payment using a secure payment terminal. * + * **ANY**: All sales channels. + * + * @return shopperInteraction The sales channel condition that defines whether the split logic + * applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is + * present. * **ContAuth**: Card on file and/or subscription transactions, where the + * cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and + * telephone-order transactions where the customer is in contact with the merchant via email + * or telephone. * **POS**: Point-of-sale transactions where the customer is physically + * present to make a payment using a secure payment terminal. * **ANY**: All sales channels. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,9 +222,21 @@ public String getShopperInteraction() { } /** - * The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: All sales channels. + * The sales channel condition that defines whether the split logic applies. Possible values: * + * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on + * file and/or subscription transactions, where the cardholder is known to the merchant (returning + * customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in + * contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where + * the customer is physically present to make a payment using a secure payment terminal. * + * **ANY**: All sales channels. * - * @param shopperInteraction The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: All sales channels. + * @param shopperInteraction The sales channel condition that defines whether the split logic + * applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is + * present. * **ContAuth**: Card on file and/or subscription transactions, where the + * cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and + * telephone-order transactions where the customer is in contact with the merchant via email + * or telephone. * **POS**: Point-of-sale transactions where the customer is physically + * present to make a payment using a secure payment terminal. * **ANY**: All sales channels. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,9 +244,7 @@ public void setShopperInteraction(String shopperInteraction) { this.shopperInteraction = shopperInteraction; } - /** - * Return true if this UpdateSplitConfigurationRuleRequest object is equal to o. - */ + /** Return true if this UpdateSplitConfigurationRuleRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -189,11 +253,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UpdateSplitConfigurationRuleRequest updateSplitConfigurationRuleRequest = (UpdateSplitConfigurationRuleRequest) o; - return Objects.equals(this.currency, updateSplitConfigurationRuleRequest.currency) && - Objects.equals(this.fundingSource, updateSplitConfigurationRuleRequest.fundingSource) && - Objects.equals(this.paymentMethod, updateSplitConfigurationRuleRequest.paymentMethod) && - Objects.equals(this.shopperInteraction, updateSplitConfigurationRuleRequest.shopperInteraction); + UpdateSplitConfigurationRuleRequest updateSplitConfigurationRuleRequest = + (UpdateSplitConfigurationRuleRequest) o; + return Objects.equals(this.currency, updateSplitConfigurationRuleRequest.currency) + && Objects.equals(this.fundingSource, updateSplitConfigurationRuleRequest.fundingSource) + && Objects.equals(this.paymentMethod, updateSplitConfigurationRuleRequest.paymentMethod) + && Objects.equals( + this.shopperInteraction, updateSplitConfigurationRuleRequest.shopperInteraction); } @Override @@ -214,8 +280,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +289,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of UpdateSplitConfigurationRuleRequest given an JSON string * * @param jsonString JSON string * @return An instance of UpdateSplitConfigurationRuleRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to UpdateSplitConfigurationRuleRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * UpdateSplitConfigurationRuleRequest */ - public static UpdateSplitConfigurationRuleRequest fromJson(String jsonString) throws JsonProcessingException { + public static UpdateSplitConfigurationRuleRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdateSplitConfigurationRuleRequest.class); } -/** - * Convert an instance of UpdateSplitConfigurationRuleRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of UpdateSplitConfigurationRuleRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/UpdateStoreRequest.java b/src/main/java/com/adyen/model/management/UpdateStoreRequest.java index 09d2d4d93..2213d07de 100644 --- a/src/main/java/com/adyen/model/management/UpdateStoreRequest.java +++ b/src/main/java/com/adyen/model/management/UpdateStoreRequest.java @@ -2,36 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.StoreSplitConfiguration; -import com.adyen.model.management.SubMerchantData; -import com.adyen.model.management.UpdatableAddress; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * UpdateStoreRequest - */ +/** UpdateStoreRequest */ @JsonPropertyOrder({ UpdateStoreRequest.JSON_PROPERTY_ADDRESS, UpdateStoreRequest.JSON_PROPERTY_BUSINESS_LINE_IDS, @@ -42,7 +34,6 @@ UpdateStoreRequest.JSON_PROPERTY_STATUS, UpdateStoreRequest.JSON_PROPERTY_SUB_MERCHANT_DATA }) - public class UpdateStoreRequest { public static final String JSON_PROPERTY_ADDRESS = "address"; private UpdatableAddress address; @@ -63,10 +54,16 @@ public class UpdateStoreRequest { private StoreSplitConfiguration splitConfiguration; /** - * The status of the store. Possible values are: - **active**: This value is assigned automatically when a store is created. - **inactive**: The maximum [transaction limits and number of Store-and-Forward transactions](https://docs.adyen.com/point-of-sale/determine-account-structure/configure-features#payment-features) for the store are set to 0. This blocks new transactions, but captures are still possible. - **closed**: The terminals of the store are reassigned to the merchant inventory, so they can't process payments. You can change the status from **active** to **inactive**, and from **inactive** to **active** or **closed**. Once **closed**, a store can't be reopened. + * The status of the store. Possible values are: - **active**: This value is assigned + * automatically when a store is created. - **inactive**: The maximum [transaction limits and + * number of Store-and-Forward + * transactions](https://docs.adyen.com/point-of-sale/determine-account-structure/configure-features#payment-features) + * for the store are set to 0. This blocks new transactions, but captures are still possible. - + * **closed**: The terminals of the store are reassigned to the merchant inventory, so they + * can't process payments. You can change the status from **active** to **inactive**, and from + * **inactive** to **active** or **closed**. Once **closed**, a store can't be reopened. */ public enum StatusEnum { - ACTIVE(String.valueOf("active")), CLOSED(String.valueOf("closed")), @@ -78,7 +75,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -99,7 +96,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -110,13 +111,12 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_SUB_MERCHANT_DATA = "subMerchantData"; private SubMerchantData subMerchantData; - public UpdateStoreRequest() { - } + public UpdateStoreRequest() {} /** * address * - * @param address + * @param address * @return the current {@code UpdateStoreRequest} instance, allowing for method chaining */ public UpdateStoreRequest address(UpdatableAddress address) { @@ -126,7 +126,8 @@ public UpdateStoreRequest address(UpdatableAddress address) { /** * Get address - * @return address + * + * @return address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,7 +138,7 @@ public UpdatableAddress getAddress() { /** * address * - * @param address + * @param address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,9 +147,13 @@ public void setAddress(UpdatableAddress address) { } /** - * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines__resParam_id) that the store is associated with. + * The unique identifiers of the [business + * lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines__resParam_id) + * that the store is associated with. * - * @param businessLineIds The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines__resParam_id) that the store is associated with. + * @param businessLineIds The unique identifiers of the [business + * lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines__resParam_id) + * that the store is associated with. * @return the current {@code UpdateStoreRequest} instance, allowing for method chaining */ public UpdateStoreRequest businessLineIds(List businessLineIds) { @@ -165,8 +170,13 @@ public UpdateStoreRequest addBusinessLineIdsItem(String businessLineIdsItem) { } /** - * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines__resParam_id) that the store is associated with. - * @return businessLineIds The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines__resParam_id) that the store is associated with. + * The unique identifiers of the [business + * lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines__resParam_id) + * that the store is associated with. + * + * @return businessLineIds The unique identifiers of the [business + * lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines__resParam_id) + * that the store is associated with. */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -175,9 +185,13 @@ public List getBusinessLineIds() { } /** - * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines__resParam_id) that the store is associated with. + * The unique identifiers of the [business + * lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines__resParam_id) + * that the store is associated with. * - * @param businessLineIds The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines__resParam_id) that the store is associated with. + * @param businessLineIds The unique identifiers of the [business + * lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines__resParam_id) + * that the store is associated with. */ @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,6 +212,7 @@ public UpdateStoreRequest description(String description) { /** * The description of the store. + * * @return description The description of the store. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -218,9 +233,15 @@ public void setDescription(String description) { } /** - * The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * The unique identifier of the store, used by certain payment methods and tax authorities. + * Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, + * hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip + * in Australia, up to 50 digits. * - * @param externalReferenceId The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * @param externalReferenceId The unique identifier of the store, used by certain payment methods + * and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 + * separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, + * up to 14 digits. Optional for Zip in Australia, up to 50 digits. * @return the current {@code UpdateStoreRequest} instance, allowing for method chaining */ public UpdateStoreRequest externalReferenceId(String externalReferenceId) { @@ -229,8 +250,15 @@ public UpdateStoreRequest externalReferenceId(String externalReferenceId) { } /** - * The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. - * @return externalReferenceId The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * The unique identifier of the store, used by certain payment methods and tax authorities. + * Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, + * hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip + * in Australia, up to 50 digits. + * + * @return externalReferenceId The unique identifier of the store, used by certain payment methods + * and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 + * separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, + * up to 14 digits. Optional for Zip in Australia, up to 50 digits. */ @JsonProperty(JSON_PROPERTY_EXTERNAL_REFERENCE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -239,9 +267,15 @@ public String getExternalReferenceId() { } /** - * The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * The unique identifier of the store, used by certain payment methods and tax authorities. + * Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, + * hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip + * in Australia, up to 50 digits. * - * @param externalReferenceId The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. + * @param externalReferenceId The unique identifier of the store, used by certain payment methods + * and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 + * separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, + * up to 14 digits. Optional for Zip in Australia, up to 50 digits. */ @JsonProperty(JSON_PROPERTY_EXTERNAL_REFERENCE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,9 +284,13 @@ public void setExternalReferenceId(String externalReferenceId) { } /** - * The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. + * The phone number of the store, including '+' and country code in the + * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we + * convert and validate the phone number against E.164. * - * @param phoneNumber The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. + * @param phoneNumber The phone number of the store, including '+' and country code in the + * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we + * convert and validate the phone number against E.164. * @return the current {@code UpdateStoreRequest} instance, allowing for method chaining */ public UpdateStoreRequest phoneNumber(String phoneNumber) { @@ -261,8 +299,13 @@ public UpdateStoreRequest phoneNumber(String phoneNumber) { } /** - * The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. - * @return phoneNumber The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. + * The phone number of the store, including '+' and country code in the + * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we + * convert and validate the phone number against E.164. + * + * @return phoneNumber The phone number of the store, including '+' and country code in + * the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, + * we convert and validate the phone number against E.164. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -271,9 +314,13 @@ public String getPhoneNumber() { } /** - * The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. + * The phone number of the store, including '+' and country code in the + * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we + * convert and validate the phone number against E.164. * - * @param phoneNumber The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. + * @param phoneNumber The phone number of the store, including '+' and country code in the + * [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we + * convert and validate the phone number against E.164. */ @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,7 +331,7 @@ public void setPhoneNumber(String phoneNumber) { /** * splitConfiguration * - * @param splitConfiguration + * @param splitConfiguration * @return the current {@code UpdateStoreRequest} instance, allowing for method chaining */ public UpdateStoreRequest splitConfiguration(StoreSplitConfiguration splitConfiguration) { @@ -294,7 +341,8 @@ public UpdateStoreRequest splitConfiguration(StoreSplitConfiguration splitConfig /** * Get splitConfiguration - * @return splitConfiguration + * + * @return splitConfiguration */ @JsonProperty(JSON_PROPERTY_SPLIT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -305,7 +353,7 @@ public StoreSplitConfiguration getSplitConfiguration() { /** * splitConfiguration * - * @param splitConfiguration + * @param splitConfiguration */ @JsonProperty(JSON_PROPERTY_SPLIT_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -314,9 +362,24 @@ public void setSplitConfiguration(StoreSplitConfiguration splitConfiguration) { } /** - * The status of the store. Possible values are: - **active**: This value is assigned automatically when a store is created. - **inactive**: The maximum [transaction limits and number of Store-and-Forward transactions](https://docs.adyen.com/point-of-sale/determine-account-structure/configure-features#payment-features) for the store are set to 0. This blocks new transactions, but captures are still possible. - **closed**: The terminals of the store are reassigned to the merchant inventory, so they can't process payments. You can change the status from **active** to **inactive**, and from **inactive** to **active** or **closed**. Once **closed**, a store can't be reopened. + * The status of the store. Possible values are: - **active**: This value is assigned + * automatically when a store is created. - **inactive**: The maximum [transaction limits and + * number of Store-and-Forward + * transactions](https://docs.adyen.com/point-of-sale/determine-account-structure/configure-features#payment-features) + * for the store are set to 0. This blocks new transactions, but captures are still possible. - + * **closed**: The terminals of the store are reassigned to the merchant inventory, so they + * can't process payments. You can change the status from **active** to **inactive**, and from + * **inactive** to **active** or **closed**. Once **closed**, a store can't be reopened. * - * @param status The status of the store. Possible values are: - **active**: This value is assigned automatically when a store is created. - **inactive**: The maximum [transaction limits and number of Store-and-Forward transactions](https://docs.adyen.com/point-of-sale/determine-account-structure/configure-features#payment-features) for the store are set to 0. This blocks new transactions, but captures are still possible. - **closed**: The terminals of the store are reassigned to the merchant inventory, so they can't process payments. You can change the status from **active** to **inactive**, and from **inactive** to **active** or **closed**. Once **closed**, a store can't be reopened. + * @param status The status of the store. Possible values are: - **active**: This value is + * assigned automatically when a store is created. - **inactive**: The maximum [transaction + * limits and number of Store-and-Forward + * transactions](https://docs.adyen.com/point-of-sale/determine-account-structure/configure-features#payment-features) + * for the store are set to 0. This blocks new transactions, but captures are still possible. + * - **closed**: The terminals of the store are reassigned to the merchant inventory, so they + * can't process payments. You can change the status from **active** to **inactive**, and + * from **inactive** to **active** or **closed**. Once **closed**, a store can't be + * reopened. * @return the current {@code UpdateStoreRequest} instance, allowing for method chaining */ public UpdateStoreRequest status(StatusEnum status) { @@ -325,8 +388,24 @@ public UpdateStoreRequest status(StatusEnum status) { } /** - * The status of the store. Possible values are: - **active**: This value is assigned automatically when a store is created. - **inactive**: The maximum [transaction limits and number of Store-and-Forward transactions](https://docs.adyen.com/point-of-sale/determine-account-structure/configure-features#payment-features) for the store are set to 0. This blocks new transactions, but captures are still possible. - **closed**: The terminals of the store are reassigned to the merchant inventory, so they can't process payments. You can change the status from **active** to **inactive**, and from **inactive** to **active** or **closed**. Once **closed**, a store can't be reopened. - * @return status The status of the store. Possible values are: - **active**: This value is assigned automatically when a store is created. - **inactive**: The maximum [transaction limits and number of Store-and-Forward transactions](https://docs.adyen.com/point-of-sale/determine-account-structure/configure-features#payment-features) for the store are set to 0. This blocks new transactions, but captures are still possible. - **closed**: The terminals of the store are reassigned to the merchant inventory, so they can't process payments. You can change the status from **active** to **inactive**, and from **inactive** to **active** or **closed**. Once **closed**, a store can't be reopened. + * The status of the store. Possible values are: - **active**: This value is assigned + * automatically when a store is created. - **inactive**: The maximum [transaction limits and + * number of Store-and-Forward + * transactions](https://docs.adyen.com/point-of-sale/determine-account-structure/configure-features#payment-features) + * for the store are set to 0. This blocks new transactions, but captures are still possible. - + * **closed**: The terminals of the store are reassigned to the merchant inventory, so they + * can't process payments. You can change the status from **active** to **inactive**, and from + * **inactive** to **active** or **closed**. Once **closed**, a store can't be reopened. + * + * @return status The status of the store. Possible values are: - **active**: This value is + * assigned automatically when a store is created. - **inactive**: The maximum [transaction + * limits and number of Store-and-Forward + * transactions](https://docs.adyen.com/point-of-sale/determine-account-structure/configure-features#payment-features) + * for the store are set to 0. This blocks new transactions, but captures are still possible. + * - **closed**: The terminals of the store are reassigned to the merchant inventory, so they + * can't process payments. You can change the status from **active** to **inactive**, and + * from **inactive** to **active** or **closed**. Once **closed**, a store can't be + * reopened. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -335,9 +414,24 @@ public StatusEnum getStatus() { } /** - * The status of the store. Possible values are: - **active**: This value is assigned automatically when a store is created. - **inactive**: The maximum [transaction limits and number of Store-and-Forward transactions](https://docs.adyen.com/point-of-sale/determine-account-structure/configure-features#payment-features) for the store are set to 0. This blocks new transactions, but captures are still possible. - **closed**: The terminals of the store are reassigned to the merchant inventory, so they can't process payments. You can change the status from **active** to **inactive**, and from **inactive** to **active** or **closed**. Once **closed**, a store can't be reopened. + * The status of the store. Possible values are: - **active**: This value is assigned + * automatically when a store is created. - **inactive**: The maximum [transaction limits and + * number of Store-and-Forward + * transactions](https://docs.adyen.com/point-of-sale/determine-account-structure/configure-features#payment-features) + * for the store are set to 0. This blocks new transactions, but captures are still possible. - + * **closed**: The terminals of the store are reassigned to the merchant inventory, so they + * can't process payments. You can change the status from **active** to **inactive**, and from + * **inactive** to **active** or **closed**. Once **closed**, a store can't be reopened. * - * @param status The status of the store. Possible values are: - **active**: This value is assigned automatically when a store is created. - **inactive**: The maximum [transaction limits and number of Store-and-Forward transactions](https://docs.adyen.com/point-of-sale/determine-account-structure/configure-features#payment-features) for the store are set to 0. This blocks new transactions, but captures are still possible. - **closed**: The terminals of the store are reassigned to the merchant inventory, so they can't process payments. You can change the status from **active** to **inactive**, and from **inactive** to **active** or **closed**. Once **closed**, a store can't be reopened. + * @param status The status of the store. Possible values are: - **active**: This value is + * assigned automatically when a store is created. - **inactive**: The maximum [transaction + * limits and number of Store-and-Forward + * transactions](https://docs.adyen.com/point-of-sale/determine-account-structure/configure-features#payment-features) + * for the store are set to 0. This blocks new transactions, but captures are still possible. + * - **closed**: The terminals of the store are reassigned to the merchant inventory, so they + * can't process payments. You can change the status from **active** to **inactive**, and + * from **inactive** to **active** or **closed**. Once **closed**, a store can't be + * reopened. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -348,7 +442,7 @@ public void setStatus(StatusEnum status) { /** * subMerchantData * - * @param subMerchantData + * @param subMerchantData * @return the current {@code UpdateStoreRequest} instance, allowing for method chaining */ public UpdateStoreRequest subMerchantData(SubMerchantData subMerchantData) { @@ -358,7 +452,8 @@ public UpdateStoreRequest subMerchantData(SubMerchantData subMerchantData) { /** * Get subMerchantData - * @return subMerchantData + * + * @return subMerchantData */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -369,7 +464,7 @@ public SubMerchantData getSubMerchantData() { /** * subMerchantData * - * @param subMerchantData + * @param subMerchantData */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -377,9 +472,7 @@ public void setSubMerchantData(SubMerchantData subMerchantData) { this.subMerchantData = subMerchantData; } - /** - * Return true if this UpdateStoreRequest object is equal to o. - */ + /** Return true if this UpdateStoreRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -389,19 +482,27 @@ public boolean equals(Object o) { return false; } UpdateStoreRequest updateStoreRequest = (UpdateStoreRequest) o; - return Objects.equals(this.address, updateStoreRequest.address) && - Objects.equals(this.businessLineIds, updateStoreRequest.businessLineIds) && - Objects.equals(this.description, updateStoreRequest.description) && - Objects.equals(this.externalReferenceId, updateStoreRequest.externalReferenceId) && - Objects.equals(this.phoneNumber, updateStoreRequest.phoneNumber) && - Objects.equals(this.splitConfiguration, updateStoreRequest.splitConfiguration) && - Objects.equals(this.status, updateStoreRequest.status) && - Objects.equals(this.subMerchantData, updateStoreRequest.subMerchantData); + return Objects.equals(this.address, updateStoreRequest.address) + && Objects.equals(this.businessLineIds, updateStoreRequest.businessLineIds) + && Objects.equals(this.description, updateStoreRequest.description) + && Objects.equals(this.externalReferenceId, updateStoreRequest.externalReferenceId) + && Objects.equals(this.phoneNumber, updateStoreRequest.phoneNumber) + && Objects.equals(this.splitConfiguration, updateStoreRequest.splitConfiguration) + && Objects.equals(this.status, updateStoreRequest.status) + && Objects.equals(this.subMerchantData, updateStoreRequest.subMerchantData); } @Override public int hashCode() { - return Objects.hash(address, businessLineIds, description, externalReferenceId, phoneNumber, splitConfiguration, status, subMerchantData); + return Objects.hash( + address, + businessLineIds, + description, + externalReferenceId, + phoneNumber, + splitConfiguration, + status, + subMerchantData); } @Override @@ -411,7 +512,9 @@ public String toString() { sb.append(" address: ").append(toIndentedString(address)).append("\n"); sb.append(" businessLineIds: ").append(toIndentedString(businessLineIds)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" externalReferenceId: ").append(toIndentedString(externalReferenceId)).append("\n"); + sb.append(" externalReferenceId: ") + .append(toIndentedString(externalReferenceId)) + .append("\n"); sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); sb.append(" splitConfiguration: ").append(toIndentedString(splitConfiguration)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); @@ -421,8 +524,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -431,21 +533,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of UpdateStoreRequest given an JSON string * * @param jsonString JSON string * @return An instance of UpdateStoreRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to UpdateStoreRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * UpdateStoreRequest */ public static UpdateStoreRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UpdateStoreRequest.class); } -/** - * Convert an instance of UpdateStoreRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of UpdateStoreRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/UploadAndroidAppResponse.java b/src/main/java/com/adyen/model/management/UploadAndroidAppResponse.java index b4bc1fde5..bedc264b8 100644 --- a/src/main/java/com/adyen/model/management/UploadAndroidAppResponse.java +++ b/src/main/java/com/adyen/model/management/UploadAndroidAppResponse.java @@ -2,41 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * UploadAndroidAppResponse - */ -@JsonPropertyOrder({ - UploadAndroidAppResponse.JSON_PROPERTY_ID -}) - +/** UploadAndroidAppResponse */ +@JsonPropertyOrder({UploadAndroidAppResponse.JSON_PROPERTY_ID}) public class UploadAndroidAppResponse { public static final String JSON_PROPERTY_ID = "id"; private String id; - public UploadAndroidAppResponse() { - } + public UploadAndroidAppResponse() {} /** * The unique identifier of the uploaded Android app. @@ -51,6 +38,7 @@ public UploadAndroidAppResponse id(String id) { /** * The unique identifier of the uploaded Android app. + * * @return id The unique identifier of the uploaded Android app. */ @JsonProperty(JSON_PROPERTY_ID) @@ -70,9 +58,7 @@ public void setId(String id) { this.id = id; } - /** - * Return true if this UploadAndroidAppResponse object is equal to o. - */ + /** Return true if this UploadAndroidAppResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +95,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of UploadAndroidAppResponse given an JSON string * * @param jsonString JSON string * @return An instance of UploadAndroidAppResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to UploadAndroidAppResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * UploadAndroidAppResponse */ - public static UploadAndroidAppResponse fromJson(String jsonString) throws JsonProcessingException { + public static UploadAndroidAppResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UploadAndroidAppResponse.class); } -/** - * Convert an instance of UploadAndroidAppResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of UploadAndroidAppResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/UploadAndroidCertificateResponse.java b/src/main/java/com/adyen/model/management/UploadAndroidCertificateResponse.java index a322fa862..77feb2991 100644 --- a/src/main/java/com/adyen/model/management/UploadAndroidCertificateResponse.java +++ b/src/main/java/com/adyen/model/management/UploadAndroidCertificateResponse.java @@ -2,47 +2,35 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * UploadAndroidCertificateResponse - */ -@JsonPropertyOrder({ - UploadAndroidCertificateResponse.JSON_PROPERTY_ID -}) - +/** UploadAndroidCertificateResponse */ +@JsonPropertyOrder({UploadAndroidCertificateResponse.JSON_PROPERTY_ID}) public class UploadAndroidCertificateResponse { public static final String JSON_PROPERTY_ID = "id"; private String id; - public UploadAndroidCertificateResponse() { - } + public UploadAndroidCertificateResponse() {} /** * The unique identifier of the uploaded Android certificate. * * @param id The unique identifier of the uploaded Android certificate. - * @return the current {@code UploadAndroidCertificateResponse} instance, allowing for method chaining + * @return the current {@code UploadAndroidCertificateResponse} instance, allowing for method + * chaining */ public UploadAndroidCertificateResponse id(String id) { this.id = id; @@ -51,6 +39,7 @@ public UploadAndroidCertificateResponse id(String id) { /** * The unique identifier of the uploaded Android certificate. + * * @return id The unique identifier of the uploaded Android certificate. */ @JsonProperty(JSON_PROPERTY_ID) @@ -70,9 +59,7 @@ public void setId(String id) { this.id = id; } - /** - * Return true if this UploadAndroidCertificateResponse object is equal to o. - */ + /** Return true if this UploadAndroidCertificateResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -81,7 +68,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UploadAndroidCertificateResponse uploadAndroidCertificateResponse = (UploadAndroidCertificateResponse) o; + UploadAndroidCertificateResponse uploadAndroidCertificateResponse = + (UploadAndroidCertificateResponse) o; return Objects.equals(this.id, uploadAndroidCertificateResponse.id); } @@ -100,8 +88,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +97,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of UploadAndroidCertificateResponse given an JSON string * * @param jsonString JSON string * @return An instance of UploadAndroidCertificateResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to UploadAndroidCertificateResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * UploadAndroidCertificateResponse */ - public static UploadAndroidCertificateResponse fromJson(String jsonString) throws JsonProcessingException { + public static UploadAndroidCertificateResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UploadAndroidCertificateResponse.class); } -/** - * Convert an instance of UploadAndroidCertificateResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of UploadAndroidCertificateResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Url.java b/src/main/java/com/adyen/model/management/Url.java index 740c01cc9..5e847f927 100644 --- a/src/main/java/com/adyen/model/management/Url.java +++ b/src/main/java/com/adyen/model/management/Url.java @@ -2,38 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Url - */ +/** Url */ @JsonPropertyOrder({ Url.JSON_PROPERTY_ENCRYPTED, Url.JSON_PROPERTY_PASSWORD, Url.JSON_PROPERTY_URL, Url.JSON_PROPERTY_USERNAME }) - public class Url { public static final String JSON_PROPERTY_ENCRYPTED = "encrypted"; private Boolean encrypted; @@ -47,8 +37,7 @@ public class Url { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public Url() { - } + public Url() {} /** * Indicates if the message sent to this URL should be encrypted. @@ -63,6 +52,7 @@ public Url encrypted(Boolean encrypted) { /** * Indicates if the message sent to this URL should be encrypted. + * * @return encrypted Indicates if the message sent to this URL should be encrypted. */ @JsonProperty(JSON_PROPERTY_ENCRYPTED) @@ -95,6 +85,7 @@ public Url password(String password) { /** * The password for authentication of the notifications. + * * @return password The password for authentication of the notifications. */ @JsonProperty(JSON_PROPERTY_PASSWORD) @@ -127,6 +118,7 @@ public Url url(String url) { /** * The URL in the format: http(s)://domain.com. + * * @return url The URL in the format: http(s)://domain.com. */ @JsonProperty(JSON_PROPERTY_URL) @@ -159,6 +151,7 @@ public Url username(String username) { /** * The username for authentication of the notifications. + * * @return username The username for authentication of the notifications. */ @JsonProperty(JSON_PROPERTY_USERNAME) @@ -178,9 +171,7 @@ public void setUsername(String username) { this.username = username; } - /** - * Return true if this Url object is equal to o. - */ + /** Return true if this Url object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -190,10 +181,10 @@ public boolean equals(Object o) { return false; } Url url = (Url) o; - return Objects.equals(this.encrypted, url.encrypted) && - Objects.equals(this.password, url.password) && - Objects.equals(this.url, url.url) && - Objects.equals(this.username, url.username); + return Objects.equals(this.encrypted, url.encrypted) + && Objects.equals(this.password, url.password) + && Objects.equals(this.url, url.url) + && Objects.equals(this.username, url.username); } @Override @@ -214,8 +205,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,7 +214,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Url given an JSON string * * @param jsonString JSON string @@ -234,11 +224,12 @@ private String toIndentedString(Object o) { public static Url fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Url.class); } -/** - * Convert an instance of Url to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Url to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/User.java b/src/main/java/com/adyen/model/management/User.java index 4b5929ce8..ca16766ec 100644 --- a/src/main/java/com/adyen/model/management/User.java +++ b/src/main/java/com/adyen/model/management/User.java @@ -2,35 +2,24 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.Links; -import com.adyen.model.management.Name; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * User - */ +/** User */ @JsonPropertyOrder({ User.JSON_PROPERTY_LINKS, User.JSON_PROPERTY_ACCOUNT_GROUPS, @@ -43,7 +32,6 @@ User.JSON_PROPERTY_TIME_ZONE_CODE, User.JSON_PROPERTY_USERNAME }) - public class User { public static final String JSON_PROPERTY_LINKS = "_links"; private Links links; @@ -75,13 +63,12 @@ public class User { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public User() { - } + public User() {} /** * links * - * @param links + * @param links * @return the current {@code User} instance, allowing for method chaining */ public User links(Links links) { @@ -91,7 +78,8 @@ public User links(Links links) { /** * Get links - * @return links + * + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,7 +90,7 @@ public Links getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,9 +99,12 @@ public void setLinks(Links links) { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) + * associated with this user. * - * @param accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * @param accountGroups The list of [account + * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with + * this user. * @return the current {@code User} instance, allowing for method chaining */ public User accountGroups(List accountGroups) { @@ -130,8 +121,12 @@ public User addAccountGroupsItem(String accountGroupsItem) { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. - * @return accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) + * associated with this user. + * + * @return accountGroups The list of [account + * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with + * this user. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,9 +135,12 @@ public List getAccountGroups() { } /** - * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) + * associated with this user. * - * @param accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + * @param accountGroups The list of [account + * groups](https://docs.adyen.com/account/account-structure#account-groups) associated with + * this user. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,6 +161,7 @@ public User active(Boolean active) { /** * Indicates whether this user is active. + * * @return active Indicates whether this user is active. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @@ -203,6 +202,7 @@ public User addAppsItem(String appsItem) { /** * Set of apps available to this user + * * @return apps Set of apps available to this user */ @JsonProperty(JSON_PROPERTY_APPS) @@ -235,6 +235,7 @@ public User email(String email) { /** * The email address of the user. + * * @return email The email address of the user. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -267,6 +268,7 @@ public User id(String id) { /** * The unique identifier of the user. + * * @return id The unique identifier of the user. */ @JsonProperty(JSON_PROPERTY_ID) @@ -289,7 +291,7 @@ public void setId(String id) { /** * name * - * @param name + * @param name * @return the current {@code User} instance, allowing for method chaining */ public User name(Name name) { @@ -299,7 +301,8 @@ public User name(Name name) { /** * Get name - * @return name + * + * @return name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -310,7 +313,7 @@ public Name getName() { /** * name * - * @param name + * @param name */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -339,6 +342,7 @@ public User addRolesItem(String rolesItem) { /** * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. + * * @return roles The list of [roles](https://docs.adyen.com/account/user-roles) for this user. */ @JsonProperty(JSON_PROPERTY_ROLES) @@ -359,9 +363,12 @@ public void setRoles(List roles) { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the + * time zone of the user. For example, **Europe/Amsterdam**. * - * @param timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * @param timeZoneCode The [tz database + * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the + * user. For example, **Europe/Amsterdam**. * @return the current {@code User} instance, allowing for method chaining */ public User timeZoneCode(String timeZoneCode) { @@ -370,8 +377,12 @@ public User timeZoneCode(String timeZoneCode) { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. - * @return timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the + * time zone of the user. For example, **Europe/Amsterdam**. + * + * @return timeZoneCode The [tz database + * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the + * user. For example, **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -380,9 +391,12 @@ public String getTimeZoneCode() { } /** - * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the + * time zone of the user. For example, **Europe/Amsterdam**. * - * @param timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + * @param timeZoneCode The [tz database + * name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the + * user. For example, **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -403,6 +417,7 @@ public User username(String username) { /** * The username for this user. + * * @return username The username for this user. */ @JsonProperty(JSON_PROPERTY_USERNAME) @@ -422,9 +437,7 @@ public void setUsername(String username) { this.username = username; } - /** - * Return true if this User object is equal to o. - */ + /** Return true if this User object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -434,21 +447,22 @@ public boolean equals(Object o) { return false; } User user = (User) o; - return Objects.equals(this.links, user.links) && - Objects.equals(this.accountGroups, user.accountGroups) && - Objects.equals(this.active, user.active) && - Objects.equals(this.apps, user.apps) && - Objects.equals(this.email, user.email) && - Objects.equals(this.id, user.id) && - Objects.equals(this.name, user.name) && - Objects.equals(this.roles, user.roles) && - Objects.equals(this.timeZoneCode, user.timeZoneCode) && - Objects.equals(this.username, user.username); + return Objects.equals(this.links, user.links) + && Objects.equals(this.accountGroups, user.accountGroups) + && Objects.equals(this.active, user.active) + && Objects.equals(this.apps, user.apps) + && Objects.equals(this.email, user.email) + && Objects.equals(this.id, user.id) + && Objects.equals(this.name, user.name) + && Objects.equals(this.roles, user.roles) + && Objects.equals(this.timeZoneCode, user.timeZoneCode) + && Objects.equals(this.username, user.username); } @Override public int hashCode() { - return Objects.hash(links, accountGroups, active, apps, email, id, name, roles, timeZoneCode, username); + return Objects.hash( + links, accountGroups, active, apps, email, id, name, roles, timeZoneCode, username); } @Override @@ -470,8 +484,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -480,7 +493,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of User given an JSON string * * @param jsonString JSON string @@ -490,11 +503,12 @@ private String toIndentedString(Object o) { public static User fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, User.class); } -/** - * Convert an instance of User to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of User to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/VippsInfo.java b/src/main/java/com/adyen/model/management/VippsInfo.java index bf36bfd5e..84f9e456f 100644 --- a/src/main/java/com/adyen/model/management/VippsInfo.java +++ b/src/main/java/com/adyen/model/management/VippsInfo.java @@ -2,36 +2,23 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * VippsInfo - */ -@JsonPropertyOrder({ - VippsInfo.JSON_PROPERTY_LOGO, - VippsInfo.JSON_PROPERTY_SUBSCRIPTION_CANCEL_URL -}) - +/** VippsInfo */ +@JsonPropertyOrder({VippsInfo.JSON_PROPERTY_LOGO, VippsInfo.JSON_PROPERTY_SUBSCRIPTION_CANCEL_URL}) public class VippsInfo { public static final String JSON_PROPERTY_LOGO = "logo"; private String logo; @@ -39,8 +26,7 @@ public class VippsInfo { public static final String JSON_PROPERTY_SUBSCRIPTION_CANCEL_URL = "subscriptionCancelUrl"; private String subscriptionCancelUrl; - public VippsInfo() { - } + public VippsInfo() {} /** * Vipps logo. Format: Base64-encoded string. @@ -55,6 +41,7 @@ public VippsInfo logo(String logo) { /** * Vipps logo. Format: Base64-encoded string. + * * @return logo Vipps logo. Format: Base64-encoded string. */ @JsonProperty(JSON_PROPERTY_LOGO) @@ -75,9 +62,11 @@ public void setLogo(String logo) { } /** - * Vipps subscription cancel url (required in case of [recurring payments](https://docs.adyen.com/online-payments/tokenization)) + * Vipps subscription cancel url (required in case of [recurring + * payments](https://docs.adyen.com/online-payments/tokenization)) * - * @param subscriptionCancelUrl Vipps subscription cancel url (required in case of [recurring payments](https://docs.adyen.com/online-payments/tokenization)) + * @param subscriptionCancelUrl Vipps subscription cancel url (required in case of [recurring + * payments](https://docs.adyen.com/online-payments/tokenization)) * @return the current {@code VippsInfo} instance, allowing for method chaining */ public VippsInfo subscriptionCancelUrl(String subscriptionCancelUrl) { @@ -86,8 +75,11 @@ public VippsInfo subscriptionCancelUrl(String subscriptionCancelUrl) { } /** - * Vipps subscription cancel url (required in case of [recurring payments](https://docs.adyen.com/online-payments/tokenization)) - * @return subscriptionCancelUrl Vipps subscription cancel url (required in case of [recurring payments](https://docs.adyen.com/online-payments/tokenization)) + * Vipps subscription cancel url (required in case of [recurring + * payments](https://docs.adyen.com/online-payments/tokenization)) + * + * @return subscriptionCancelUrl Vipps subscription cancel url (required in case of [recurring + * payments](https://docs.adyen.com/online-payments/tokenization)) */ @JsonProperty(JSON_PROPERTY_SUBSCRIPTION_CANCEL_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +88,11 @@ public String getSubscriptionCancelUrl() { } /** - * Vipps subscription cancel url (required in case of [recurring payments](https://docs.adyen.com/online-payments/tokenization)) + * Vipps subscription cancel url (required in case of [recurring + * payments](https://docs.adyen.com/online-payments/tokenization)) * - * @param subscriptionCancelUrl Vipps subscription cancel url (required in case of [recurring payments](https://docs.adyen.com/online-payments/tokenization)) + * @param subscriptionCancelUrl Vipps subscription cancel url (required in case of [recurring + * payments](https://docs.adyen.com/online-payments/tokenization)) */ @JsonProperty(JSON_PROPERTY_SUBSCRIPTION_CANCEL_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +100,7 @@ public void setSubscriptionCancelUrl(String subscriptionCancelUrl) { this.subscriptionCancelUrl = subscriptionCancelUrl; } - /** - * Return true if this VippsInfo object is equal to o. - */ + /** Return true if this VippsInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +110,8 @@ public boolean equals(Object o) { return false; } VippsInfo vippsInfo = (VippsInfo) o; - return Objects.equals(this.logo, vippsInfo.logo) && - Objects.equals(this.subscriptionCancelUrl, vippsInfo.subscriptionCancelUrl); + return Objects.equals(this.logo, vippsInfo.logo) + && Objects.equals(this.subscriptionCancelUrl, vippsInfo.subscriptionCancelUrl); } @Override @@ -132,14 +124,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class VippsInfo {\n"); sb.append(" logo: ").append(toIndentedString(logo)).append("\n"); - sb.append(" subscriptionCancelUrl: ").append(toIndentedString(subscriptionCancelUrl)).append("\n"); + sb.append(" subscriptionCancelUrl: ") + .append(toIndentedString(subscriptionCancelUrl)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +141,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of VippsInfo given an JSON string * * @param jsonString JSON string @@ -158,11 +151,12 @@ private String toIndentedString(Object o) { public static VippsInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, VippsInfo.class); } -/** - * Convert an instance of VippsInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of VippsInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/WeChatPayInfo.java b/src/main/java/com/adyen/model/management/WeChatPayInfo.java index bed9649a1..b5d3aea60 100644 --- a/src/main/java/com/adyen/model/management/WeChatPayInfo.java +++ b/src/main/java/com/adyen/model/management/WeChatPayInfo.java @@ -2,36 +2,26 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * WeChatPayInfo - */ +/** WeChatPayInfo */ @JsonPropertyOrder({ WeChatPayInfo.JSON_PROPERTY_CONTACT_PERSON_NAME, WeChatPayInfo.JSON_PROPERTY_EMAIL }) - public class WeChatPayInfo { public static final String JSON_PROPERTY_CONTACT_PERSON_NAME = "contactPersonName"; private String contactPersonName; @@ -39,8 +29,7 @@ public class WeChatPayInfo { public static final String JSON_PROPERTY_EMAIL = "email"; private String email; - public WeChatPayInfo() { - } + public WeChatPayInfo() {} /** * The name of the contact person from merchant support. @@ -55,6 +44,7 @@ public WeChatPayInfo contactPersonName(String contactPersonName) { /** * The name of the contact person from merchant support. + * * @return contactPersonName The name of the contact person from merchant support. */ @JsonProperty(JSON_PROPERTY_CONTACT_PERSON_NAME) @@ -87,6 +77,7 @@ public WeChatPayInfo email(String email) { /** * The email address of merchant support. + * * @return email The email address of merchant support. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -106,9 +97,7 @@ public void setEmail(String email) { this.email = email; } - /** - * Return true if this WeChatPayInfo object is equal to o. - */ + /** Return true if this WeChatPayInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +107,8 @@ public boolean equals(Object o) { return false; } WeChatPayInfo weChatPayInfo = (WeChatPayInfo) o; - return Objects.equals(this.contactPersonName, weChatPayInfo.contactPersonName) && - Objects.equals(this.email, weChatPayInfo.email); + return Objects.equals(this.contactPersonName, weChatPayInfo.contactPersonName) + && Objects.equals(this.email, weChatPayInfo.email); } @Override @@ -138,8 +127,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +136,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of WeChatPayInfo given an JSON string * * @param jsonString JSON string @@ -158,11 +146,12 @@ private String toIndentedString(Object o) { public static WeChatPayInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, WeChatPayInfo.class); } -/** - * Convert an instance of WeChatPayInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of WeChatPayInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/WeChatPayPosInfo.java b/src/main/java/com/adyen/model/management/WeChatPayPosInfo.java index 3cbcc5e0c..ed78a488f 100644 --- a/src/main/java/com/adyen/model/management/WeChatPayPosInfo.java +++ b/src/main/java/com/adyen/model/management/WeChatPayPosInfo.java @@ -2,36 +2,26 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * WeChatPayPosInfo - */ +/** WeChatPayPosInfo */ @JsonPropertyOrder({ WeChatPayPosInfo.JSON_PROPERTY_CONTACT_PERSON_NAME, WeChatPayPosInfo.JSON_PROPERTY_EMAIL }) - public class WeChatPayPosInfo { public static final String JSON_PROPERTY_CONTACT_PERSON_NAME = "contactPersonName"; private String contactPersonName; @@ -39,8 +29,7 @@ public class WeChatPayPosInfo { public static final String JSON_PROPERTY_EMAIL = "email"; private String email; - public WeChatPayPosInfo() { - } + public WeChatPayPosInfo() {} /** * The name of the contact person from merchant support. @@ -55,6 +44,7 @@ public WeChatPayPosInfo contactPersonName(String contactPersonName) { /** * The name of the contact person from merchant support. + * * @return contactPersonName The name of the contact person from merchant support. */ @JsonProperty(JSON_PROPERTY_CONTACT_PERSON_NAME) @@ -87,6 +77,7 @@ public WeChatPayPosInfo email(String email) { /** * The email address of merchant support. + * * @return email The email address of merchant support. */ @JsonProperty(JSON_PROPERTY_EMAIL) @@ -106,9 +97,7 @@ public void setEmail(String email) { this.email = email; } - /** - * Return true if this WeChatPayPosInfo object is equal to o. - */ + /** Return true if this WeChatPayPosInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +107,8 @@ public boolean equals(Object o) { return false; } WeChatPayPosInfo weChatPayPosInfo = (WeChatPayPosInfo) o; - return Objects.equals(this.contactPersonName, weChatPayPosInfo.contactPersonName) && - Objects.equals(this.email, weChatPayPosInfo.email); + return Objects.equals(this.contactPersonName, weChatPayPosInfo.contactPersonName) + && Objects.equals(this.email, weChatPayPosInfo.email); } @Override @@ -138,8 +127,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +136,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of WeChatPayPosInfo given an JSON string * * @param jsonString JSON string @@ -158,11 +146,12 @@ private String toIndentedString(Object o) { public static WeChatPayPosInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, WeChatPayPosInfo.class); } -/** - * Convert an instance of WeChatPayPosInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of WeChatPayPosInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/Webhook.java b/src/main/java/com/adyen/model/management/Webhook.java index 9431cce6f..0a3c2c44c 100644 --- a/src/main/java/com/adyen/model/management/Webhook.java +++ b/src/main/java/com/adyen/model/management/Webhook.java @@ -2,35 +2,28 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.AdditionalSettingsResponse; -import com.adyen.model.management.WebhookLinks; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * Webhook - */ +/** Webhook */ @JsonPropertyOrder({ Webhook.JSON_PROPERTY_LINKS, Webhook.JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE, @@ -55,18 +48,20 @@ Webhook.JSON_PROPERTY_URL, Webhook.JSON_PROPERTY_USERNAME }) - public class Webhook { public static final String JSON_PROPERTY_LINKS = "_links"; private WebhookLinks links; - public static final String JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE = "acceptsExpiredCertificate"; + public static final String JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE = + "acceptsExpiredCertificate"; private Boolean acceptsExpiredCertificate; - public static final String JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE = "acceptsSelfSignedCertificate"; + public static final String JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE = + "acceptsSelfSignedCertificate"; private Boolean acceptsSelfSignedCertificate; - public static final String JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE = "acceptsUntrustedRootCertificate"; + public static final String JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE = + "acceptsUntrustedRootCertificate"; private Boolean acceptsUntrustedRootCertificate; public static final String JSON_PROPERTY_ACCOUNT_REFERENCE = "accountReference"; @@ -82,10 +77,9 @@ public class Webhook { private String certificateAlias; /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** */ public enum CommunicationFormatEnum { - HTTP(String.valueOf("http")), JSON(String.valueOf("json")), @@ -97,7 +91,7 @@ public enum CommunicationFormatEnum { private String value; CommunicationFormatEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -118,7 +112,11 @@ public static CommunicationFormatEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("CommunicationFormatEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CommunicationFormatEnum.values())); + LOG.warning( + "CommunicationFormatEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(CommunicationFormatEnum.values())); return null; } } @@ -130,10 +128,11 @@ public static CommunicationFormatEnum fromValue(String value) { private String description; /** - * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible + * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not + * specified, the webhook will use `sslVersion`: **TLSv1.2**. */ public enum EncryptionProtocolEnum { - HTTP(String.valueOf("HTTP")), TLSV1_2(String.valueOf("TLSv1.2")), @@ -145,7 +144,7 @@ public enum EncryptionProtocolEnum { private String value; EncryptionProtocolEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -166,7 +165,11 @@ public static EncryptionProtocolEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("EncryptionProtocolEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(EncryptionProtocolEnum.values())); + LOG.warning( + "EncryptionProtocolEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(EncryptionProtocolEnum.values())); return null; } } @@ -175,22 +178,24 @@ public static EncryptionProtocolEnum fromValue(String value) { private EncryptionProtocolEnum encryptionProtocol; /** - * Shows how merchant accounts are included in company-level webhooks. Possible values: * **includeAccounts** * **excludeAccounts** * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. + * Shows how merchant accounts are included in company-level webhooks. Possible values: * + * **includeAccounts** * **excludeAccounts** * **allAccounts**: Includes all merchant accounts, + * and does not require specifying `filterMerchantAccounts`. */ public enum FilterMerchantAccountTypeEnum { - ALLACCOUNTS(String.valueOf("allAccounts")), EXCLUDEACCOUNTS(String.valueOf("excludeAccounts")), INCLUDEACCOUNTS(String.valueOf("includeAccounts")); - private static final Logger LOG = Logger.getLogger(FilterMerchantAccountTypeEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(FilterMerchantAccountTypeEnum.class.getName()); private String value; FilterMerchantAccountTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -211,12 +216,17 @@ public static FilterMerchantAccountTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FilterMerchantAccountTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FilterMerchantAccountTypeEnum.values())); + LOG.warning( + "FilterMerchantAccountTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FilterMerchantAccountTypeEnum.values())); return null; } } - public static final String JSON_PROPERTY_FILTER_MERCHANT_ACCOUNT_TYPE = "filterMerchantAccountType"; + public static final String JSON_PROPERTY_FILTER_MERCHANT_ACCOUNT_TYPE = + "filterMerchantAccountType"; private FilterMerchantAccountTypeEnum filterMerchantAccountType; public static final String JSON_PROPERTY_FILTER_MERCHANT_ACCOUNTS = "filterMerchantAccounts"; @@ -234,11 +244,8 @@ public static FilterMerchantAccountTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_ID = "id"; private String id; - /** - * Network type for Terminal API details webhooks. - */ + /** Network type for Terminal API details webhooks. */ public enum NetworkTypeEnum { - LOCAL(String.valueOf("local")), PUBLIC(String.valueOf("public")); @@ -248,7 +255,7 @@ public enum NetworkTypeEnum { private String value; NetworkTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -269,7 +276,11 @@ public static NetworkTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("NetworkTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(NetworkTypeEnum.values())); + LOG.warning( + "NetworkTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(NetworkTypeEnum.values())); return null; } } @@ -289,13 +300,12 @@ public static NetworkTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public Webhook() { - } + public Webhook() {} /** * links * - * @param links + * @param links * @return the current {@code Webhook} instance, allowing for method chaining */ public Webhook links(WebhookLinks links) { @@ -305,7 +315,8 @@ public Webhook links(WebhookLinks links) { /** * Get links - * @return links + * + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -316,7 +327,7 @@ public WebhookLinks getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -327,7 +338,8 @@ public void setLinks(WebhookLinks links) { /** * Indicates if expired SSL certificates are accepted. Default value: **false**. * - * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default value: **false**. + * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default + * value: **false**. * @return the current {@code Webhook} instance, allowing for method chaining */ public Webhook acceptsExpiredCertificate(Boolean acceptsExpiredCertificate) { @@ -337,7 +349,9 @@ public Webhook acceptsExpiredCertificate(Boolean acceptsExpiredCertificate) { /** * Indicates if expired SSL certificates are accepted. Default value: **false**. - * @return acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default value: **false**. + * + * @return acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default + * value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -348,7 +362,8 @@ public Boolean getAcceptsExpiredCertificate() { /** * Indicates if expired SSL certificates are accepted. Default value: **false**. * - * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default value: **false**. + * @param acceptsExpiredCertificate Indicates if expired SSL certificates are accepted. Default + * value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -359,7 +374,8 @@ public void setAcceptsExpiredCertificate(Boolean acceptsExpiredCertificate) { /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. * - * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. Default value: **false**. + * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. + * Default value: **false**. * @return the current {@code Webhook} instance, allowing for method chaining */ public Webhook acceptsSelfSignedCertificate(Boolean acceptsSelfSignedCertificate) { @@ -369,7 +385,9 @@ public Webhook acceptsSelfSignedCertificate(Boolean acceptsSelfSignedCertificate /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. - * @return acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. Default value: **false**. + * + * @return acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. + * Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -380,7 +398,8 @@ public Boolean getAcceptsSelfSignedCertificate() { /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. * - * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. Default value: **false**. + * @param acceptsSelfSignedCertificate Indicates if self-signed SSL certificates are accepted. + * Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -391,7 +410,8 @@ public void setAcceptsSelfSignedCertificate(Boolean acceptsSelfSignedCertificate /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. * - * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. Default value: **false**. + * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. + * Default value: **false**. * @return the current {@code Webhook} instance, allowing for method chaining */ public Webhook acceptsUntrustedRootCertificate(Boolean acceptsUntrustedRootCertificate) { @@ -401,7 +421,9 @@ public Webhook acceptsUntrustedRootCertificate(Boolean acceptsUntrustedRootCerti /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. - * @return acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. Default value: **false**. + * + * @return acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. + * Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -412,7 +434,8 @@ public Boolean getAcceptsUntrustedRootCertificate() { /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. * - * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. Default value: **false**. + * @param acceptsUntrustedRootCertificate Indicates if untrusted SSL certificates are accepted. + * Default value: **false**. */ @JsonProperty(JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -433,6 +456,7 @@ public Webhook accountReference(String accountReference) { /** * Reference to the account the webook is set on. + * * @return accountReference Reference to the account the webook is set on. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_REFERENCE) @@ -453,9 +477,11 @@ public void setAccountReference(String accountReference) { } /** - * Indicates if the webhook configuration is active. The field must be **true** for you to receive webhooks about events related an account. + * Indicates if the webhook configuration is active. The field must be **true** for you to receive + * webhooks about events related an account. * - * @param active Indicates if the webhook configuration is active. The field must be **true** for you to receive webhooks about events related an account. + * @param active Indicates if the webhook configuration is active. The field must be **true** for + * you to receive webhooks about events related an account. * @return the current {@code Webhook} instance, allowing for method chaining */ public Webhook active(Boolean active) { @@ -464,8 +490,11 @@ public Webhook active(Boolean active) { } /** - * Indicates if the webhook configuration is active. The field must be **true** for you to receive webhooks about events related an account. - * @return active Indicates if the webhook configuration is active. The field must be **true** for you to receive webhooks about events related an account. + * Indicates if the webhook configuration is active. The field must be **true** for you to receive + * webhooks about events related an account. + * + * @return active Indicates if the webhook configuration is active. The field must be **true** for + * you to receive webhooks about events related an account. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -474,9 +503,11 @@ public Boolean getActive() { } /** - * Indicates if the webhook configuration is active. The field must be **true** for you to receive webhooks about events related an account. + * Indicates if the webhook configuration is active. The field must be **true** for you to receive + * webhooks about events related an account. * - * @param active Indicates if the webhook configuration is active. The field must be **true** for you to receive webhooks about events related an account. + * @param active Indicates if the webhook configuration is active. The field must be **true** for + * you to receive webhooks about events related an account. */ @JsonProperty(JSON_PROPERTY_ACTIVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -487,7 +518,7 @@ public void setActive(Boolean active) { /** * additionalSettings * - * @param additionalSettings + * @param additionalSettings * @return the current {@code Webhook} instance, allowing for method chaining */ public Webhook additionalSettings(AdditionalSettingsResponse additionalSettings) { @@ -497,7 +528,8 @@ public Webhook additionalSettings(AdditionalSettingsResponse additionalSettings) /** * Get additionalSettings - * @return additionalSettings + * + * @return additionalSettings */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -508,7 +540,7 @@ public AdditionalSettingsResponse getAdditionalSettings() { /** * additionalSettings * - * @param additionalSettings + * @param additionalSettings */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -517,9 +549,11 @@ public void setAdditionalSettings(AdditionalSettingsResponse additionalSettings) } /** - * The alias of our SSL certificate. When you receive a notification from us, the alias from the HMAC signature will match this alias. + * The alias of our SSL certificate. When you receive a notification from us, the alias from the + * HMAC signature will match this alias. * - * @param certificateAlias The alias of our SSL certificate. When you receive a notification from us, the alias from the HMAC signature will match this alias. + * @param certificateAlias The alias of our SSL certificate. When you receive a notification from + * us, the alias from the HMAC signature will match this alias. * @return the current {@code Webhook} instance, allowing for method chaining */ public Webhook certificateAlias(String certificateAlias) { @@ -528,8 +562,11 @@ public Webhook certificateAlias(String certificateAlias) { } /** - * The alias of our SSL certificate. When you receive a notification from us, the alias from the HMAC signature will match this alias. - * @return certificateAlias The alias of our SSL certificate. When you receive a notification from us, the alias from the HMAC signature will match this alias. + * The alias of our SSL certificate. When you receive a notification from us, the alias from the + * HMAC signature will match this alias. + * + * @return certificateAlias The alias of our SSL certificate. When you receive a notification from + * us, the alias from the HMAC signature will match this alias. */ @JsonProperty(JSON_PROPERTY_CERTIFICATE_ALIAS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -538,9 +575,11 @@ public String getCertificateAlias() { } /** - * The alias of our SSL certificate. When you receive a notification from us, the alias from the HMAC signature will match this alias. + * The alias of our SSL certificate. When you receive a notification from us, the alias from the + * HMAC signature will match this alias. * - * @param certificateAlias The alias of our SSL certificate. When you receive a notification from us, the alias from the HMAC signature will match this alias. + * @param certificateAlias The alias of our SSL certificate. When you receive a notification from + * us, the alias from the HMAC signature will match this alias. */ @JsonProperty(JSON_PROPERTY_CERTIFICATE_ALIAS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -549,9 +588,10 @@ public void setCertificateAlias(String certificateAlias) { } /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** * - * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * + * **soap** * **http** * **json** * @return the current {@code Webhook} instance, allowing for method chaining */ public Webhook communicationFormat(CommunicationFormatEnum communicationFormat) { @@ -560,8 +600,10 @@ public Webhook communicationFormat(CommunicationFormatEnum communicationFormat) } /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** - * @return communicationFormat Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * + * @return communicationFormat Format or protocol for receiving webhooks. Possible values: * + * **soap** * **http** * **json** */ @JsonProperty(JSON_PROPERTY_COMMUNICATION_FORMAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -570,9 +612,10 @@ public CommunicationFormatEnum getCommunicationFormat() { } /** - * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** * - * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + * @param communicationFormat Format or protocol for receiving webhooks. Possible values: * + * **soap** * **http** * **json** */ @JsonProperty(JSON_PROPERTY_COMMUNICATION_FORMAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -593,6 +636,7 @@ public Webhook description(String description) { /** * Your description for this webhook configuration. + * * @return description Your description for this webhook configuration. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -613,9 +657,14 @@ public void setDescription(String description) { } /** - * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible + * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not + * specified, the webhook will use `sslVersion`: **TLSv1.2**. * - * @param encryptionProtocol SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * @param encryptionProtocol SSL version to access the public webhook URL specified in the + * `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only + * allowed on Test environment. If not specified, the webhook will use `sslVersion`: + * **TLSv1.2**. * @return the current {@code Webhook} instance, allowing for method chaining */ public Webhook encryptionProtocol(EncryptionProtocolEnum encryptionProtocol) { @@ -624,8 +673,14 @@ public Webhook encryptionProtocol(EncryptionProtocolEnum encryptionProtocol) { } /** - * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. - * @return encryptionProtocol SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible + * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not + * specified, the webhook will use `sslVersion`: **TLSv1.2**. + * + * @return encryptionProtocol SSL version to access the public webhook URL specified in the + * `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only + * allowed on Test environment. If not specified, the webhook will use `sslVersion`: + * **TLSv1.2**. */ @JsonProperty(JSON_PROPERTY_ENCRYPTION_PROTOCOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -634,9 +689,14 @@ public EncryptionProtocolEnum getEncryptionProtocol() { } /** - * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible + * values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not + * specified, the webhook will use `sslVersion`: **TLSv1.2**. * - * @param encryptionProtocol SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * @param encryptionProtocol SSL version to access the public webhook URL specified in the + * `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only + * allowed on Test environment. If not specified, the webhook will use `sslVersion`: + * **TLSv1.2**. */ @JsonProperty(JSON_PROPERTY_ENCRYPTION_PROTOCOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -645,19 +705,31 @@ public void setEncryptionProtocol(EncryptionProtocolEnum encryptionProtocol) { } /** - * Shows how merchant accounts are included in company-level webhooks. Possible values: * **includeAccounts** * **excludeAccounts** * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. + * Shows how merchant accounts are included in company-level webhooks. Possible values: * + * **includeAccounts** * **excludeAccounts** * **allAccounts**: Includes all merchant accounts, + * and does not require specifying `filterMerchantAccounts`. * - * @param filterMerchantAccountType Shows how merchant accounts are included in company-level webhooks. Possible values: * **includeAccounts** * **excludeAccounts** * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. + * @param filterMerchantAccountType Shows how merchant accounts are included in company-level + * webhooks. Possible values: * **includeAccounts** * **excludeAccounts** * **allAccounts**: + * Includes all merchant accounts, and does not require specifying + * `filterMerchantAccounts`. * @return the current {@code Webhook} instance, allowing for method chaining */ - public Webhook filterMerchantAccountType(FilterMerchantAccountTypeEnum filterMerchantAccountType) { + public Webhook filterMerchantAccountType( + FilterMerchantAccountTypeEnum filterMerchantAccountType) { this.filterMerchantAccountType = filterMerchantAccountType; return this; } /** - * Shows how merchant accounts are included in company-level webhooks. Possible values: * **includeAccounts** * **excludeAccounts** * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. - * @return filterMerchantAccountType Shows how merchant accounts are included in company-level webhooks. Possible values: * **includeAccounts** * **excludeAccounts** * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. + * Shows how merchant accounts are included in company-level webhooks. Possible values: * + * **includeAccounts** * **excludeAccounts** * **allAccounts**: Includes all merchant accounts, + * and does not require specifying `filterMerchantAccounts`. + * + * @return filterMerchantAccountType Shows how merchant accounts are included in company-level + * webhooks. Possible values: * **includeAccounts** * **excludeAccounts** * **allAccounts**: + * Includes all merchant accounts, and does not require specifying + * `filterMerchantAccounts`. */ @JsonProperty(JSON_PROPERTY_FILTER_MERCHANT_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -666,20 +738,33 @@ public FilterMerchantAccountTypeEnum getFilterMerchantAccountType() { } /** - * Shows how merchant accounts are included in company-level webhooks. Possible values: * **includeAccounts** * **excludeAccounts** * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. + * Shows how merchant accounts are included in company-level webhooks. Possible values: * + * **includeAccounts** * **excludeAccounts** * **allAccounts**: Includes all merchant accounts, + * and does not require specifying `filterMerchantAccounts`. * - * @param filterMerchantAccountType Shows how merchant accounts are included in company-level webhooks. Possible values: * **includeAccounts** * **excludeAccounts** * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. + * @param filterMerchantAccountType Shows how merchant accounts are included in company-level + * webhooks. Possible values: * **includeAccounts** * **excludeAccounts** * **allAccounts**: + * Includes all merchant accounts, and does not require specifying + * `filterMerchantAccounts`. */ @JsonProperty(JSON_PROPERTY_FILTER_MERCHANT_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFilterMerchantAccountType(FilterMerchantAccountTypeEnum filterMerchantAccountType) { + public void setFilterMerchantAccountType( + FilterMerchantAccountTypeEnum filterMerchantAccountType) { this.filterMerchantAccountType = filterMerchantAccountType; } /** - * A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. + * A list of merchant account names that are included or excluded from receiving the webhook. + * Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. + * Required if `filterMerchantAccountType` is either: * **includeAccounts** * + * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. * - * @param filterMerchantAccounts A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. + * @param filterMerchantAccounts A list of merchant account names that are included or excluded + * from receiving the webhook. Inclusion or exclusion is based on the value defined for + * `filterMerchantAccountType`. Required if `filterMerchantAccountType` is + * either: * **includeAccounts** * **excludeAccounts** Not needed for + * `filterMerchantAccountType`: **allAccounts**. * @return the current {@code Webhook} instance, allowing for method chaining */ public Webhook filterMerchantAccounts(List filterMerchantAccounts) { @@ -696,8 +781,16 @@ public Webhook addFilterMerchantAccountsItem(String filterMerchantAccountsItem) } /** - * A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. - * @return filterMerchantAccounts A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. + * A list of merchant account names that are included or excluded from receiving the webhook. + * Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. + * Required if `filterMerchantAccountType` is either: * **includeAccounts** * + * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. + * + * @return filterMerchantAccounts A list of merchant account names that are included or excluded + * from receiving the webhook. Inclusion or exclusion is based on the value defined for + * `filterMerchantAccountType`. Required if `filterMerchantAccountType` is + * either: * **includeAccounts** * **excludeAccounts** Not needed for + * `filterMerchantAccountType`: **allAccounts**. */ @JsonProperty(JSON_PROPERTY_FILTER_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -706,9 +799,16 @@ public List getFilterMerchantAccounts() { } /** - * A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. + * A list of merchant account names that are included or excluded from receiving the webhook. + * Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. + * Required if `filterMerchantAccountType` is either: * **includeAccounts** * + * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. * - * @param filterMerchantAccounts A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. + * @param filterMerchantAccounts A list of merchant account names that are included or excluded + * from receiving the webhook. Inclusion or exclusion is based on the value defined for + * `filterMerchantAccountType`. Required if `filterMerchantAccountType` is + * either: * **includeAccounts** * **excludeAccounts** Not needed for + * `filterMerchantAccountType`: **allAccounts**. */ @JsonProperty(JSON_PROPERTY_FILTER_MERCHANT_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -717,9 +817,13 @@ public void setFilterMerchantAccounts(List filterMerchantAccounts) { } /** - * Indicates if the webhook configuration has errors that need troubleshooting. If the value is **true**, troubleshoot the configuration using the [testing endpoint](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookid}/test). + * Indicates if the webhook configuration has errors that need troubleshooting. If the value is + * **true**, troubleshoot the configuration using the [testing + * endpoint](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookid}/test). * - * @param hasError Indicates if the webhook configuration has errors that need troubleshooting. If the value is **true**, troubleshoot the configuration using the [testing endpoint](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookid}/test). + * @param hasError Indicates if the webhook configuration has errors that need troubleshooting. If + * the value is **true**, troubleshoot the configuration using the [testing + * endpoint](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookid}/test). * @return the current {@code Webhook} instance, allowing for method chaining */ public Webhook hasError(Boolean hasError) { @@ -728,8 +832,13 @@ public Webhook hasError(Boolean hasError) { } /** - * Indicates if the webhook configuration has errors that need troubleshooting. If the value is **true**, troubleshoot the configuration using the [testing endpoint](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookid}/test). - * @return hasError Indicates if the webhook configuration has errors that need troubleshooting. If the value is **true**, troubleshoot the configuration using the [testing endpoint](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookid}/test). + * Indicates if the webhook configuration has errors that need troubleshooting. If the value is + * **true**, troubleshoot the configuration using the [testing + * endpoint](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookid}/test). + * + * @return hasError Indicates if the webhook configuration has errors that need troubleshooting. + * If the value is **true**, troubleshoot the configuration using the [testing + * endpoint](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookid}/test). */ @JsonProperty(JSON_PROPERTY_HAS_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -738,9 +847,13 @@ public Boolean getHasError() { } /** - * Indicates if the webhook configuration has errors that need troubleshooting. If the value is **true**, troubleshoot the configuration using the [testing endpoint](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookid}/test). + * Indicates if the webhook configuration has errors that need troubleshooting. If the value is + * **true**, troubleshoot the configuration using the [testing + * endpoint](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookid}/test). * - * @param hasError Indicates if the webhook configuration has errors that need troubleshooting. If the value is **true**, troubleshoot the configuration using the [testing endpoint](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookid}/test). + * @param hasError Indicates if the webhook configuration has errors that need troubleshooting. If + * the value is **true**, troubleshoot the configuration using the [testing + * endpoint](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookid}/test). */ @JsonProperty(JSON_PROPERTY_HAS_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -761,6 +874,7 @@ public Webhook hasPassword(Boolean hasPassword) { /** * Indicates if the webhook is password protected. + * * @return hasPassword Indicates if the webhook is password protected. */ @JsonProperty(JSON_PROPERTY_HAS_PASSWORD) @@ -781,9 +895,13 @@ public void setHasPassword(Boolean hasPassword) { } /** - * The [checksum](https://en.wikipedia.org/wiki/Key_checksum_value) of the HMAC key generated for this webhook. You can use this value to uniquely identify the HMAC key configured for this webhook. + * The [checksum](https://en.wikipedia.org/wiki/Key_checksum_value) of the HMAC key generated for + * this webhook. You can use this value to uniquely identify the HMAC key configured for this + * webhook. * - * @param hmacKeyCheckValue The [checksum](https://en.wikipedia.org/wiki/Key_checksum_value) of the HMAC key generated for this webhook. You can use this value to uniquely identify the HMAC key configured for this webhook. + * @param hmacKeyCheckValue The [checksum](https://en.wikipedia.org/wiki/Key_checksum_value) of + * the HMAC key generated for this webhook. You can use this value to uniquely identify the + * HMAC key configured for this webhook. * @return the current {@code Webhook} instance, allowing for method chaining */ public Webhook hmacKeyCheckValue(String hmacKeyCheckValue) { @@ -792,8 +910,13 @@ public Webhook hmacKeyCheckValue(String hmacKeyCheckValue) { } /** - * The [checksum](https://en.wikipedia.org/wiki/Key_checksum_value) of the HMAC key generated for this webhook. You can use this value to uniquely identify the HMAC key configured for this webhook. - * @return hmacKeyCheckValue The [checksum](https://en.wikipedia.org/wiki/Key_checksum_value) of the HMAC key generated for this webhook. You can use this value to uniquely identify the HMAC key configured for this webhook. + * The [checksum](https://en.wikipedia.org/wiki/Key_checksum_value) of the HMAC key generated for + * this webhook. You can use this value to uniquely identify the HMAC key configured for this + * webhook. + * + * @return hmacKeyCheckValue The [checksum](https://en.wikipedia.org/wiki/Key_checksum_value) of + * the HMAC key generated for this webhook. You can use this value to uniquely identify the + * HMAC key configured for this webhook. */ @JsonProperty(JSON_PROPERTY_HMAC_KEY_CHECK_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -802,9 +925,13 @@ public String getHmacKeyCheckValue() { } /** - * The [checksum](https://en.wikipedia.org/wiki/Key_checksum_value) of the HMAC key generated for this webhook. You can use this value to uniquely identify the HMAC key configured for this webhook. + * The [checksum](https://en.wikipedia.org/wiki/Key_checksum_value) of the HMAC key generated for + * this webhook. You can use this value to uniquely identify the HMAC key configured for this + * webhook. * - * @param hmacKeyCheckValue The [checksum](https://en.wikipedia.org/wiki/Key_checksum_value) of the HMAC key generated for this webhook. You can use this value to uniquely identify the HMAC key configured for this webhook. + * @param hmacKeyCheckValue The [checksum](https://en.wikipedia.org/wiki/Key_checksum_value) of + * the HMAC key generated for this webhook. You can use this value to uniquely identify the + * HMAC key configured for this webhook. */ @JsonProperty(JSON_PROPERTY_HMAC_KEY_CHECK_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -825,6 +952,7 @@ public Webhook id(String id) { /** * Unique identifier for this webhook. + * * @return id Unique identifier for this webhook. */ @JsonProperty(JSON_PROPERTY_ID) @@ -857,6 +985,7 @@ public Webhook networkType(NetworkTypeEnum networkType) { /** * Network type for Terminal API details webhooks. + * * @return networkType Network type for Terminal API details webhooks. */ @JsonProperty(JSON_PROPERTY_NETWORK_TYPE) @@ -877,9 +1006,11 @@ public void setNetworkType(NetworkTypeEnum networkType) { } /** - * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only + * applies if `communicationFormat`: **soap**. * - * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. + * Default value: **false**. Only applies if `communicationFormat`: **soap**. * @return the current {@code Webhook} instance, allowing for method chaining */ public Webhook populateSoapActionHeader(Boolean populateSoapActionHeader) { @@ -888,8 +1019,11 @@ public Webhook populateSoapActionHeader(Boolean populateSoapActionHeader) { } /** - * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. - * @return populateSoapActionHeader Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only + * applies if `communicationFormat`: **soap**. + * + * @return populateSoapActionHeader Indicates if the SOAP action header needs to be populated. + * Default value: **false**. Only applies if `communicationFormat`: **soap**. */ @JsonProperty(JSON_PROPERTY_POPULATE_SOAP_ACTION_HEADER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -898,9 +1032,11 @@ public Boolean getPopulateSoapActionHeader() { } /** - * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only + * applies if `communicationFormat`: **soap**. * - * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + * @param populateSoapActionHeader Indicates if the SOAP action header needs to be populated. + * Default value: **false**. Only applies if `communicationFormat`: **soap**. */ @JsonProperty(JSON_PROPERTY_POPULATE_SOAP_ACTION_HEADER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -909,9 +1045,27 @@ public void setPopulateSoapActionHeader(Boolean populateSoapActionHeader) { } /** - * The type of webhook. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **terminal-api-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * The type of webhook. Possible values are: - **standard** - **account-settings-notification** - + * **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** + * - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** + * - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - + * **report-notification** - **terminal-api-notification** - **terminal-settings** - + * **terminal-boarding** Find out more about [standard + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and + * [other types of + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). * - * @param type The type of webhook. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **terminal-api-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * @param type The type of webhook. Possible values are: - **standard** - + * **account-settings-notification** - **banktransfer-notification** - + * **boletobancario-notification** - **directdebit-notification** - + * **ach-notification-of-change-notification** - + * **direct-debit-notice-of-change-notification** - **pending-notification** - + * **ideal-notification** - **ideal-pending-notification** - **report-notification** - + * **terminal-api-notification** - **terminal-settings** - **terminal-boarding** Find out more + * about [standard + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) + * and [other types of + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). * @return the current {@code Webhook} instance, allowing for method chaining */ public Webhook type(String type) { @@ -920,8 +1074,27 @@ public Webhook type(String type) { } /** - * The type of webhook. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **terminal-api-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). - * @return type The type of webhook. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **terminal-api-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * The type of webhook. Possible values are: - **standard** - **account-settings-notification** - + * **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** + * - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** + * - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - + * **report-notification** - **terminal-api-notification** - **terminal-settings** - + * **terminal-boarding** Find out more about [standard + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and + * [other types of + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * + * @return type The type of webhook. Possible values are: - **standard** - + * **account-settings-notification** - **banktransfer-notification** - + * **boletobancario-notification** - **directdebit-notification** - + * **ach-notification-of-change-notification** - + * **direct-debit-notice-of-change-notification** - **pending-notification** - + * **ideal-notification** - **ideal-pending-notification** - **report-notification** - + * **terminal-api-notification** - **terminal-settings** - **terminal-boarding** Find out more + * about [standard + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) + * and [other types of + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -930,9 +1103,27 @@ public String getType() { } /** - * The type of webhook. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **terminal-api-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * The type of webhook. Possible values are: - **standard** - **account-settings-notification** - + * **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** + * - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** + * - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - + * **report-notification** - **terminal-api-notification** - **terminal-settings** - + * **terminal-boarding** Find out more about [standard + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and + * [other types of + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). * - * @param type The type of webhook. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **terminal-api-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). + * @param type The type of webhook. Possible values are: - **standard** - + * **account-settings-notification** - **banktransfer-notification** - + * **boletobancario-notification** - **directdebit-notification** - + * **ach-notification-of-change-notification** - + * **direct-debit-notice-of-change-notification** - **pending-notification** - + * **ideal-notification** - **ideal-pending-notification** - **report-notification** - + * **terminal-api-notification** - **terminal-settings** - **terminal-boarding** Find out more + * about [standard + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) + * and [other types of + * webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -941,9 +1132,11 @@ public void setType(String type) { } /** - * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + * Public URL where webhooks will be sent, for example + * **https://www.domain.com/webhook-endpoint**. * - * @param url Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + * @param url Public URL where webhooks will be sent, for example + * **https://www.domain.com/webhook-endpoint**. * @return the current {@code Webhook} instance, allowing for method chaining */ public Webhook url(String url) { @@ -952,8 +1145,11 @@ public Webhook url(String url) { } /** - * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. - * @return url Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + * Public URL where webhooks will be sent, for example + * **https://www.domain.com/webhook-endpoint**. + * + * @return url Public URL where webhooks will be sent, for example + * **https://www.domain.com/webhook-endpoint**. */ @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -962,9 +1158,11 @@ public String getUrl() { } /** - * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + * Public URL where webhooks will be sent, for example + * **https://www.domain.com/webhook-endpoint**. * - * @param url Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + * @param url Public URL where webhooks will be sent, for example + * **https://www.domain.com/webhook-endpoint**. */ @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -985,6 +1183,7 @@ public Webhook username(String username) { /** * Username to access the webhook URL. + * * @return username Username to access the webhook URL. */ @JsonProperty(JSON_PROPERTY_USERNAME) @@ -1004,9 +1203,7 @@ public void setUsername(String username) { this.username = username; } - /** - * Return true if this Webhook object is equal to o. - */ + /** Return true if this Webhook object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -1016,33 +1213,56 @@ public boolean equals(Object o) { return false; } Webhook webhook = (Webhook) o; - return Objects.equals(this.links, webhook.links) && - Objects.equals(this.acceptsExpiredCertificate, webhook.acceptsExpiredCertificate) && - Objects.equals(this.acceptsSelfSignedCertificate, webhook.acceptsSelfSignedCertificate) && - Objects.equals(this.acceptsUntrustedRootCertificate, webhook.acceptsUntrustedRootCertificate) && - Objects.equals(this.accountReference, webhook.accountReference) && - Objects.equals(this.active, webhook.active) && - Objects.equals(this.additionalSettings, webhook.additionalSettings) && - Objects.equals(this.certificateAlias, webhook.certificateAlias) && - Objects.equals(this.communicationFormat, webhook.communicationFormat) && - Objects.equals(this.description, webhook.description) && - Objects.equals(this.encryptionProtocol, webhook.encryptionProtocol) && - Objects.equals(this.filterMerchantAccountType, webhook.filterMerchantAccountType) && - Objects.equals(this.filterMerchantAccounts, webhook.filterMerchantAccounts) && - Objects.equals(this.hasError, webhook.hasError) && - Objects.equals(this.hasPassword, webhook.hasPassword) && - Objects.equals(this.hmacKeyCheckValue, webhook.hmacKeyCheckValue) && - Objects.equals(this.id, webhook.id) && - Objects.equals(this.networkType, webhook.networkType) && - Objects.equals(this.populateSoapActionHeader, webhook.populateSoapActionHeader) && - Objects.equals(this.type, webhook.type) && - Objects.equals(this.url, webhook.url) && - Objects.equals(this.username, webhook.username); + return Objects.equals(this.links, webhook.links) + && Objects.equals(this.acceptsExpiredCertificate, webhook.acceptsExpiredCertificate) + && Objects.equals(this.acceptsSelfSignedCertificate, webhook.acceptsSelfSignedCertificate) + && Objects.equals( + this.acceptsUntrustedRootCertificate, webhook.acceptsUntrustedRootCertificate) + && Objects.equals(this.accountReference, webhook.accountReference) + && Objects.equals(this.active, webhook.active) + && Objects.equals(this.additionalSettings, webhook.additionalSettings) + && Objects.equals(this.certificateAlias, webhook.certificateAlias) + && Objects.equals(this.communicationFormat, webhook.communicationFormat) + && Objects.equals(this.description, webhook.description) + && Objects.equals(this.encryptionProtocol, webhook.encryptionProtocol) + && Objects.equals(this.filterMerchantAccountType, webhook.filterMerchantAccountType) + && Objects.equals(this.filterMerchantAccounts, webhook.filterMerchantAccounts) + && Objects.equals(this.hasError, webhook.hasError) + && Objects.equals(this.hasPassword, webhook.hasPassword) + && Objects.equals(this.hmacKeyCheckValue, webhook.hmacKeyCheckValue) + && Objects.equals(this.id, webhook.id) + && Objects.equals(this.networkType, webhook.networkType) + && Objects.equals(this.populateSoapActionHeader, webhook.populateSoapActionHeader) + && Objects.equals(this.type, webhook.type) + && Objects.equals(this.url, webhook.url) + && Objects.equals(this.username, webhook.username); } @Override public int hashCode() { - return Objects.hash(links, acceptsExpiredCertificate, acceptsSelfSignedCertificate, acceptsUntrustedRootCertificate, accountReference, active, additionalSettings, certificateAlias, communicationFormat, description, encryptionProtocol, filterMerchantAccountType, filterMerchantAccounts, hasError, hasPassword, hmacKeyCheckValue, id, networkType, populateSoapActionHeader, type, url, username); + return Objects.hash( + links, + acceptsExpiredCertificate, + acceptsSelfSignedCertificate, + acceptsUntrustedRootCertificate, + accountReference, + active, + additionalSettings, + certificateAlias, + communicationFormat, + description, + encryptionProtocol, + filterMerchantAccountType, + filterMerchantAccounts, + hasError, + hasPassword, + hmacKeyCheckValue, + id, + networkType, + populateSoapActionHeader, + type, + url, + username); } @Override @@ -1050,24 +1270,38 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Webhook {\n"); sb.append(" links: ").append(toIndentedString(links)).append("\n"); - sb.append(" acceptsExpiredCertificate: ").append(toIndentedString(acceptsExpiredCertificate)).append("\n"); - sb.append(" acceptsSelfSignedCertificate: ").append(toIndentedString(acceptsSelfSignedCertificate)).append("\n"); - sb.append(" acceptsUntrustedRootCertificate: ").append(toIndentedString(acceptsUntrustedRootCertificate)).append("\n"); + sb.append(" acceptsExpiredCertificate: ") + .append(toIndentedString(acceptsExpiredCertificate)) + .append("\n"); + sb.append(" acceptsSelfSignedCertificate: ") + .append(toIndentedString(acceptsSelfSignedCertificate)) + .append("\n"); + sb.append(" acceptsUntrustedRootCertificate: ") + .append(toIndentedString(acceptsUntrustedRootCertificate)) + .append("\n"); sb.append(" accountReference: ").append(toIndentedString(accountReference)).append("\n"); sb.append(" active: ").append(toIndentedString(active)).append("\n"); sb.append(" additionalSettings: ").append(toIndentedString(additionalSettings)).append("\n"); sb.append(" certificateAlias: ").append(toIndentedString(certificateAlias)).append("\n"); - sb.append(" communicationFormat: ").append(toIndentedString(communicationFormat)).append("\n"); + sb.append(" communicationFormat: ") + .append(toIndentedString(communicationFormat)) + .append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" encryptionProtocol: ").append(toIndentedString(encryptionProtocol)).append("\n"); - sb.append(" filterMerchantAccountType: ").append(toIndentedString(filterMerchantAccountType)).append("\n"); - sb.append(" filterMerchantAccounts: ").append(toIndentedString(filterMerchantAccounts)).append("\n"); + sb.append(" filterMerchantAccountType: ") + .append(toIndentedString(filterMerchantAccountType)) + .append("\n"); + sb.append(" filterMerchantAccounts: ") + .append(toIndentedString(filterMerchantAccounts)) + .append("\n"); sb.append(" hasError: ").append(toIndentedString(hasError)).append("\n"); sb.append(" hasPassword: ").append(toIndentedString(hasPassword)).append("\n"); sb.append(" hmacKeyCheckValue: ").append(toIndentedString(hmacKeyCheckValue)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" networkType: ").append(toIndentedString(networkType)).append("\n"); - sb.append(" populateSoapActionHeader: ").append(toIndentedString(populateSoapActionHeader)).append("\n"); + sb.append(" populateSoapActionHeader: ") + .append(toIndentedString(populateSoapActionHeader)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" username: ").append(toIndentedString(username)).append("\n"); @@ -1076,8 +1310,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1086,7 +1319,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Webhook given an JSON string * * @param jsonString JSON string @@ -1096,11 +1329,12 @@ private String toIndentedString(Object o) { public static Webhook fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Webhook.class); } -/** - * Convert an instance of Webhook to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Webhook to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/WebhookLinks.java b/src/main/java/com/adyen/model/management/WebhookLinks.java index b73f742af..fd7d6997b 100644 --- a/src/main/java/com/adyen/model/management/WebhookLinks.java +++ b/src/main/java/com/adyen/model/management/WebhookLinks.java @@ -2,32 +2,22 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.LinksElement; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * WebhookLinks - */ +/** WebhookLinks */ @JsonPropertyOrder({ WebhookLinks.JSON_PROPERTY_COMPANY, WebhookLinks.JSON_PROPERTY_GENERATE_HMAC, @@ -35,7 +25,6 @@ WebhookLinks.JSON_PROPERTY_SELF, WebhookLinks.JSON_PROPERTY_TEST_WEBHOOK }) - public class WebhookLinks { public static final String JSON_PROPERTY_COMPANY = "company"; private LinksElement company; @@ -52,13 +41,12 @@ public class WebhookLinks { public static final String JSON_PROPERTY_TEST_WEBHOOK = "testWebhook"; private LinksElement testWebhook; - public WebhookLinks() { - } + public WebhookLinks() {} /** * company * - * @param company + * @param company * @return the current {@code WebhookLinks} instance, allowing for method chaining */ public WebhookLinks company(LinksElement company) { @@ -68,7 +56,8 @@ public WebhookLinks company(LinksElement company) { /** * Get company - * @return company + * + * @return company */ @JsonProperty(JSON_PROPERTY_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,7 +68,7 @@ public LinksElement getCompany() { /** * company * - * @param company + * @param company */ @JsonProperty(JSON_PROPERTY_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -90,7 +79,7 @@ public void setCompany(LinksElement company) { /** * generateHmac * - * @param generateHmac + * @param generateHmac * @return the current {@code WebhookLinks} instance, allowing for method chaining */ public WebhookLinks generateHmac(LinksElement generateHmac) { @@ -100,7 +89,8 @@ public WebhookLinks generateHmac(LinksElement generateHmac) { /** * Get generateHmac - * @return generateHmac + * + * @return generateHmac */ @JsonProperty(JSON_PROPERTY_GENERATE_HMAC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,7 +101,7 @@ public LinksElement getGenerateHmac() { /** * generateHmac * - * @param generateHmac + * @param generateHmac */ @JsonProperty(JSON_PROPERTY_GENERATE_HMAC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -122,7 +112,7 @@ public void setGenerateHmac(LinksElement generateHmac) { /** * merchant * - * @param merchant + * @param merchant * @return the current {@code WebhookLinks} instance, allowing for method chaining */ public WebhookLinks merchant(LinksElement merchant) { @@ -132,7 +122,8 @@ public WebhookLinks merchant(LinksElement merchant) { /** * Get merchant - * @return merchant + * + * @return merchant */ @JsonProperty(JSON_PROPERTY_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,7 +134,7 @@ public LinksElement getMerchant() { /** * merchant * - * @param merchant + * @param merchant */ @JsonProperty(JSON_PROPERTY_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -154,7 +145,7 @@ public void setMerchant(LinksElement merchant) { /** * self * - * @param self + * @param self * @return the current {@code WebhookLinks} instance, allowing for method chaining */ public WebhookLinks self(LinksElement self) { @@ -164,7 +155,8 @@ public WebhookLinks self(LinksElement self) { /** * Get self - * @return self + * + * @return self */ @JsonProperty(JSON_PROPERTY_SELF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -175,7 +167,7 @@ public LinksElement getSelf() { /** * self * - * @param self + * @param self */ @JsonProperty(JSON_PROPERTY_SELF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,7 +178,7 @@ public void setSelf(LinksElement self) { /** * testWebhook * - * @param testWebhook + * @param testWebhook * @return the current {@code WebhookLinks} instance, allowing for method chaining */ public WebhookLinks testWebhook(LinksElement testWebhook) { @@ -196,7 +188,8 @@ public WebhookLinks testWebhook(LinksElement testWebhook) { /** * Get testWebhook - * @return testWebhook + * + * @return testWebhook */ @JsonProperty(JSON_PROPERTY_TEST_WEBHOOK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -207,7 +200,7 @@ public LinksElement getTestWebhook() { /** * testWebhook * - * @param testWebhook + * @param testWebhook */ @JsonProperty(JSON_PROPERTY_TEST_WEBHOOK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -215,9 +208,7 @@ public void setTestWebhook(LinksElement testWebhook) { this.testWebhook = testWebhook; } - /** - * Return true if this WebhookLinks object is equal to o. - */ + /** Return true if this WebhookLinks object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -227,11 +218,11 @@ public boolean equals(Object o) { return false; } WebhookLinks webhookLinks = (WebhookLinks) o; - return Objects.equals(this.company, webhookLinks.company) && - Objects.equals(this.generateHmac, webhookLinks.generateHmac) && - Objects.equals(this.merchant, webhookLinks.merchant) && - Objects.equals(this.self, webhookLinks.self) && - Objects.equals(this.testWebhook, webhookLinks.testWebhook); + return Objects.equals(this.company, webhookLinks.company) + && Objects.equals(this.generateHmac, webhookLinks.generateHmac) + && Objects.equals(this.merchant, webhookLinks.merchant) + && Objects.equals(this.self, webhookLinks.self) + && Objects.equals(this.testWebhook, webhookLinks.testWebhook); } @Override @@ -253,8 +244,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -263,7 +253,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of WebhookLinks given an JSON string * * @param jsonString JSON string @@ -273,11 +263,12 @@ private String toIndentedString(Object o) { public static WebhookLinks fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, WebhookLinks.class); } -/** - * Convert an instance of WebhookLinks to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of WebhookLinks to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/management/WifiProfiles.java b/src/main/java/com/adyen/model/management/WifiProfiles.java index 2e064b7db..195e6c240 100644 --- a/src/main/java/com/adyen/model/management/WifiProfiles.java +++ b/src/main/java/com/adyen/model/management/WifiProfiles.java @@ -2,40 +2,25 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.management; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.management.Profile; -import com.adyen.model.management.Settings; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * WifiProfiles - */ -@JsonPropertyOrder({ - WifiProfiles.JSON_PROPERTY_PROFILES, - WifiProfiles.JSON_PROPERTY_SETTINGS -}) - +/** WifiProfiles */ +@JsonPropertyOrder({WifiProfiles.JSON_PROPERTY_PROFILES, WifiProfiles.JSON_PROPERTY_SETTINGS}) public class WifiProfiles { public static final String JSON_PROPERTY_PROFILES = "profiles"; private List profiles; @@ -43,8 +28,7 @@ public class WifiProfiles { public static final String JSON_PROPERTY_SETTINGS = "settings"; private Settings settings; - public WifiProfiles() { - } + public WifiProfiles() {} /** * List of remote Wi-Fi profiles. @@ -67,6 +51,7 @@ public WifiProfiles addProfilesItem(Profile profilesItem) { /** * List of remote Wi-Fi profiles. + * * @return profiles List of remote Wi-Fi profiles. */ @JsonProperty(JSON_PROPERTY_PROFILES) @@ -89,7 +74,7 @@ public void setProfiles(List profiles) { /** * settings * - * @param settings + * @param settings * @return the current {@code WifiProfiles} instance, allowing for method chaining */ public WifiProfiles settings(Settings settings) { @@ -99,7 +84,8 @@ public WifiProfiles settings(Settings settings) { /** * Get settings - * @return settings + * + * @return settings */ @JsonProperty(JSON_PROPERTY_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,7 +96,7 @@ public Settings getSettings() { /** * settings * - * @param settings + * @param settings */ @JsonProperty(JSON_PROPERTY_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,9 +104,7 @@ public void setSettings(Settings settings) { this.settings = settings; } - /** - * Return true if this WifiProfiles object is equal to o. - */ + /** Return true if this WifiProfiles object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -130,8 +114,8 @@ public boolean equals(Object o) { return false; } WifiProfiles wifiProfiles = (WifiProfiles) o; - return Objects.equals(this.profiles, wifiProfiles.profiles) && - Objects.equals(this.settings, wifiProfiles.settings); + return Objects.equals(this.profiles, wifiProfiles.profiles) + && Objects.equals(this.settings, wifiProfiles.settings); } @Override @@ -150,8 +134,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -160,7 +143,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of WifiProfiles given an JSON string * * @param jsonString JSON string @@ -170,11 +153,12 @@ private String toIndentedString(Object o) { public static WifiProfiles fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, WifiProfiles.class); } -/** - * Convert an instance of WifiProfiles to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of WifiProfiles to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/managementwebhooks/AbstractOpenApiSchema.java index a786a362c..afb8c9764 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/managementwebhooks/AbstractOpenApiSchema.java @@ -2,145 +2,141 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.managementwebhooks; -import java.util.Objects; -import java.util.Map; -import jakarta.ws.rs.core.GenericType; - import com.fasterxml.jackson.annotation.JsonValue; +import jakarta.ws.rs.core.GenericType; +import java.util.Map; +import java.util.Objects; -/** - * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec - */ +/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() {return instance;} - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) {this.instance = instance;} - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); - } else { - return object.getActualInstance(); - } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() { + return instance; + } + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) { + this.instance = instance; + } + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf + * schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); + } else { + return object.getActualInstance(); } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) && - Objects.equals(this.isNullable, a.isNullable) && - Objects.equals(this.schemaType, a.schemaType); + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; } + return o.toString().replace("\n", "\n "); + } - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); + public boolean equals(Object o) { + if (this == o) { + return true; } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); + if (o == null || getClass() != o.getClass()) { + return false; } - - - -} \ No newline at end of file + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) + && Objects.equals(this.isNullable, a.isNullable) + && Objects.equals(this.schemaType, a.schemaType); + } + + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); + } + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); + } +} diff --git a/src/main/java/com/adyen/model/managementwebhooks/AccountCapabilityData.java b/src/main/java/com/adyen/model/managementwebhooks/AccountCapabilityData.java index 0b1552120..d26a45383 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/AccountCapabilityData.java +++ b/src/main/java/com/adyen/model/managementwebhooks/AccountCapabilityData.java @@ -2,35 +2,25 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.managementwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.managementwebhooks.CapabilityProblem; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -/** - * AccountCapabilityData - */ +/** AccountCapabilityData */ @JsonPropertyOrder({ AccountCapabilityData.JSON_PROPERTY_ALLOWED, AccountCapabilityData.JSON_PROPERTY_ALLOWED_LEVEL, @@ -41,7 +31,6 @@ AccountCapabilityData.JSON_PROPERTY_VERIFICATION_DEADLINE, AccountCapabilityData.JSON_PROPERTY_VERIFICATION_STATUS }) - public class AccountCapabilityData { public static final String JSON_PROPERTY_ALLOWED = "allowed"; private Boolean allowed; @@ -67,13 +56,14 @@ public class AccountCapabilityData { public static final String JSON_PROPERTY_VERIFICATION_STATUS = "verificationStatus"; private String verificationStatus; - public AccountCapabilityData() { - } + public AccountCapabilityData() {} /** - * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful. + * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is + * successful. * - * @param allowed Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful. + * @param allowed Indicates whether the capability is allowed. Adyen sets this to **true** if the + * verification is successful. * @return the current {@code AccountCapabilityData} instance, allowing for method chaining */ public AccountCapabilityData allowed(Boolean allowed) { @@ -82,8 +72,11 @@ public AccountCapabilityData allowed(Boolean allowed) { } /** - * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful. - * @return allowed Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful. + * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is + * successful. + * + * @return allowed Indicates whether the capability is allowed. Adyen sets this to **true** if the + * verification is successful. */ @JsonProperty(JSON_PROPERTY_ALLOWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -92,9 +85,11 @@ public Boolean getAllowed() { } /** - * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful. + * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is + * successful. * - * @param allowed Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful. + * @param allowed Indicates whether the capability is allowed. Adyen sets this to **true** if the + * verification is successful. */ @JsonProperty(JSON_PROPERTY_ALLOWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -103,9 +98,13 @@ public void setAllowed(Boolean allowed) { } /** - * The allowed level of the capability. Some capabilities have different levels which correspond to thresholds. Higher levels may require additional checks and increased monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. + * The allowed level of the capability. Some capabilities have different levels which correspond + * to thresholds. Higher levels may require additional checks and increased monitoring.Possible + * values: **notApplicable**, **low**, **medium**, **high**. * - * @param allowedLevel The allowed level of the capability. Some capabilities have different levels which correspond to thresholds. Higher levels may require additional checks and increased monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. + * @param allowedLevel The allowed level of the capability. Some capabilities have different + * levels which correspond to thresholds. Higher levels may require additional checks and + * increased monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. * @return the current {@code AccountCapabilityData} instance, allowing for method chaining */ public AccountCapabilityData allowedLevel(String allowedLevel) { @@ -114,8 +113,13 @@ public AccountCapabilityData allowedLevel(String allowedLevel) { } /** - * The allowed level of the capability. Some capabilities have different levels which correspond to thresholds. Higher levels may require additional checks and increased monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. - * @return allowedLevel The allowed level of the capability. Some capabilities have different levels which correspond to thresholds. Higher levels may require additional checks and increased monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. + * The allowed level of the capability. Some capabilities have different levels which correspond + * to thresholds. Higher levels may require additional checks and increased monitoring.Possible + * values: **notApplicable**, **low**, **medium**, **high**. + * + * @return allowedLevel The allowed level of the capability. Some capabilities have different + * levels which correspond to thresholds. Higher levels may require additional checks and + * increased monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. */ @JsonProperty(JSON_PROPERTY_ALLOWED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,9 +128,13 @@ public String getAllowedLevel() { } /** - * The allowed level of the capability. Some capabilities have different levels which correspond to thresholds. Higher levels may require additional checks and increased monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. + * The allowed level of the capability. Some capabilities have different levels which correspond + * to thresholds. Higher levels may require additional checks and increased monitoring.Possible + * values: **notApplicable**, **low**, **medium**, **high**. * - * @param allowedLevel The allowed level of the capability. Some capabilities have different levels which correspond to thresholds. Higher levels may require additional checks and increased monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. + * @param allowedLevel The allowed level of the capability. Some capabilities have different + * levels which correspond to thresholds. Higher levels may require additional checks and + * increased monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. */ @JsonProperty(JSON_PROPERTY_ALLOWED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,6 +155,7 @@ public AccountCapabilityData capability(String capability) { /** * The name of the capability. For example, **sendToTransferInstrument**. + * * @return capability The name of the capability. For example, **sendToTransferInstrument**. */ @JsonProperty(JSON_PROPERTY_CAPABILITY) @@ -167,9 +176,11 @@ public void setCapability(String capability) { } /** - * List of entities that has problems with verification. The information includes the details of the errors and the actions that you can take to resolve them. + * List of entities that has problems with verification. The information includes the details of + * the errors and the actions that you can take to resolve them. * - * @param problems List of entities that has problems with verification. The information includes the details of the errors and the actions that you can take to resolve them. + * @param problems List of entities that has problems with verification. The information includes + * the details of the errors and the actions that you can take to resolve them. * @return the current {@code AccountCapabilityData} instance, allowing for method chaining */ public AccountCapabilityData problems(List problems) { @@ -186,8 +197,11 @@ public AccountCapabilityData addProblemsItem(CapabilityProblem problemsItem) { } /** - * List of entities that has problems with verification. The information includes the details of the errors and the actions that you can take to resolve them. - * @return problems List of entities that has problems with verification. The information includes the details of the errors and the actions that you can take to resolve them. + * List of entities that has problems with verification. The information includes the details of + * the errors and the actions that you can take to resolve them. + * + * @return problems List of entities that has problems with verification. The information includes + * the details of the errors and the actions that you can take to resolve them. */ @JsonProperty(JSON_PROPERTY_PROBLEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -196,9 +210,11 @@ public List getProblems() { } /** - * List of entities that has problems with verification. The information includes the details of the errors and the actions that you can take to resolve them. + * List of entities that has problems with verification. The information includes the details of + * the errors and the actions that you can take to resolve them. * - * @param problems List of entities that has problems with verification. The information includes the details of the errors and the actions that you can take to resolve them. + * @param problems List of entities that has problems with verification. The information includes + * the details of the errors and the actions that you can take to resolve them. */ @JsonProperty(JSON_PROPERTY_PROBLEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,6 +235,7 @@ public AccountCapabilityData requested(Boolean requested) { /** * Indicates whether you requested the capability. + * * @return requested Indicates whether you requested the capability. */ @JsonProperty(JSON_PROPERTY_REQUESTED) @@ -239,9 +256,14 @@ public void setRequested(Boolean requested) { } /** - * The level that you requested for the capability. Some capabilities have different levels which correspond to thresholds. Higher levels may require additional checks and increased monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. + * The level that you requested for the capability. Some capabilities have different levels which + * correspond to thresholds. Higher levels may require additional checks and increased + * monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. * - * @param requestedLevel The level that you requested for the capability. Some capabilities have different levels which correspond to thresholds. Higher levels may require additional checks and increased monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. + * @param requestedLevel The level that you requested for the capability. Some capabilities have + * different levels which correspond to thresholds. Higher levels may require additional + * checks and increased monitoring.Possible values: **notApplicable**, **low**, **medium**, + * **high**. * @return the current {@code AccountCapabilityData} instance, allowing for method chaining */ public AccountCapabilityData requestedLevel(String requestedLevel) { @@ -250,8 +272,14 @@ public AccountCapabilityData requestedLevel(String requestedLevel) { } /** - * The level that you requested for the capability. Some capabilities have different levels which correspond to thresholds. Higher levels may require additional checks and increased monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. - * @return requestedLevel The level that you requested for the capability. Some capabilities have different levels which correspond to thresholds. Higher levels may require additional checks and increased monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. + * The level that you requested for the capability. Some capabilities have different levels which + * correspond to thresholds. Higher levels may require additional checks and increased + * monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. + * + * @return requestedLevel The level that you requested for the capability. Some capabilities have + * different levels which correspond to thresholds. Higher levels may require additional + * checks and increased monitoring.Possible values: **notApplicable**, **low**, **medium**, + * **high**. */ @JsonProperty(JSON_PROPERTY_REQUESTED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -260,9 +288,14 @@ public String getRequestedLevel() { } /** - * The level that you requested for the capability. Some capabilities have different levels which correspond to thresholds. Higher levels may require additional checks and increased monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. + * The level that you requested for the capability. Some capabilities have different levels which + * correspond to thresholds. Higher levels may require additional checks and increased + * monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. * - * @param requestedLevel The level that you requested for the capability. Some capabilities have different levels which correspond to thresholds. Higher levels may require additional checks and increased monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. + * @param requestedLevel The level that you requested for the capability. Some capabilities have + * different levels which correspond to thresholds. Higher levels may require additional + * checks and increased monitoring.Possible values: **notApplicable**, **low**, **medium**, + * **high**. */ @JsonProperty(JSON_PROPERTY_REQUESTED_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -271,9 +304,11 @@ public void setRequestedLevel(String requestedLevel) { } /** - * The verification deadline for the capability that will be disallowed if verification errors are not resolved. + * The verification deadline for the capability that will be disallowed if verification errors are + * not resolved. * - * @param verificationDeadline The verification deadline for the capability that will be disallowed if verification errors are not resolved. + * @param verificationDeadline The verification deadline for the capability that will be + * disallowed if verification errors are not resolved. * @return the current {@code AccountCapabilityData} instance, allowing for method chaining */ public AccountCapabilityData verificationDeadline(OffsetDateTime verificationDeadline) { @@ -282,8 +317,11 @@ public AccountCapabilityData verificationDeadline(OffsetDateTime verificationDea } /** - * The verification deadline for the capability that will be disallowed if verification errors are not resolved. - * @return verificationDeadline The verification deadline for the capability that will be disallowed if verification errors are not resolved. + * The verification deadline for the capability that will be disallowed if verification errors are + * not resolved. + * + * @return verificationDeadline The verification deadline for the capability that will be + * disallowed if verification errors are not resolved. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_DEADLINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -292,9 +330,11 @@ public OffsetDateTime getVerificationDeadline() { } /** - * The verification deadline for the capability that will be disallowed if verification errors are not resolved. + * The verification deadline for the capability that will be disallowed if verification errors are + * not resolved. * - * @param verificationDeadline The verification deadline for the capability that will be disallowed if verification errors are not resolved. + * @param verificationDeadline The verification deadline for the capability that will be + * disallowed if verification errors are not resolved. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_DEADLINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -303,9 +343,17 @@ public void setVerificationDeadline(OffsetDateTime verificationDeadline) { } /** - * The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification was successful. * **rejected**: Adyen checked the information and found reasons to not allow the capability. + * The status of the verification checks for the capability. Possible values: * **pending**: Adyen + * is running the verification. * **invalid**: The verification failed. Check if the + * `errors` array contains more information. * **valid**: The verification was + * successful. * **rejected**: Adyen checked the information and found reasons to not allow the + * capability. * - * @param verificationStatus The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification was successful. * **rejected**: Adyen checked the information and found reasons to not allow the capability. + * @param verificationStatus The status of the verification checks for the capability. Possible + * values: * **pending**: Adyen is running the verification. * **invalid**: The verification + * failed. Check if the `errors` array contains more information. * **valid**: The + * verification was successful. * **rejected**: Adyen checked the information and found + * reasons to not allow the capability. * @return the current {@code AccountCapabilityData} instance, allowing for method chaining */ public AccountCapabilityData verificationStatus(String verificationStatus) { @@ -314,8 +362,17 @@ public AccountCapabilityData verificationStatus(String verificationStatus) { } /** - * The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification was successful. * **rejected**: Adyen checked the information and found reasons to not allow the capability. - * @return verificationStatus The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification was successful. * **rejected**: Adyen checked the information and found reasons to not allow the capability. + * The status of the verification checks for the capability. Possible values: * **pending**: Adyen + * is running the verification. * **invalid**: The verification failed. Check if the + * `errors` array contains more information. * **valid**: The verification was + * successful. * **rejected**: Adyen checked the information and found reasons to not allow the + * capability. + * + * @return verificationStatus The status of the verification checks for the capability. Possible + * values: * **pending**: Adyen is running the verification. * **invalid**: The verification + * failed. Check if the `errors` array contains more information. * **valid**: The + * verification was successful. * **rejected**: Adyen checked the information and found + * reasons to not allow the capability. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -324,9 +381,17 @@ public String getVerificationStatus() { } /** - * The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification was successful. * **rejected**: Adyen checked the information and found reasons to not allow the capability. + * The status of the verification checks for the capability. Possible values: * **pending**: Adyen + * is running the verification. * **invalid**: The verification failed. Check if the + * `errors` array contains more information. * **valid**: The verification was + * successful. * **rejected**: Adyen checked the information and found reasons to not allow the + * capability. * - * @param verificationStatus The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification was successful. * **rejected**: Adyen checked the information and found reasons to not allow the capability. + * @param verificationStatus The status of the verification checks for the capability. Possible + * values: * **pending**: Adyen is running the verification. * **invalid**: The verification + * failed. Check if the `errors` array contains more information. * **valid**: The + * verification was successful. * **rejected**: Adyen checked the information and found + * reasons to not allow the capability. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -334,9 +399,7 @@ public void setVerificationStatus(String verificationStatus) { this.verificationStatus = verificationStatus; } - /** - * Return true if this AccountCapabilityData object is equal to o. - */ + /** Return true if this AccountCapabilityData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -346,19 +409,27 @@ public boolean equals(Object o) { return false; } AccountCapabilityData accountCapabilityData = (AccountCapabilityData) o; - return Objects.equals(this.allowed, accountCapabilityData.allowed) && - Objects.equals(this.allowedLevel, accountCapabilityData.allowedLevel) && - Objects.equals(this.capability, accountCapabilityData.capability) && - Objects.equals(this.problems, accountCapabilityData.problems) && - Objects.equals(this.requested, accountCapabilityData.requested) && - Objects.equals(this.requestedLevel, accountCapabilityData.requestedLevel) && - Objects.equals(this.verificationDeadline, accountCapabilityData.verificationDeadline) && - Objects.equals(this.verificationStatus, accountCapabilityData.verificationStatus); + return Objects.equals(this.allowed, accountCapabilityData.allowed) + && Objects.equals(this.allowedLevel, accountCapabilityData.allowedLevel) + && Objects.equals(this.capability, accountCapabilityData.capability) + && Objects.equals(this.problems, accountCapabilityData.problems) + && Objects.equals(this.requested, accountCapabilityData.requested) + && Objects.equals(this.requestedLevel, accountCapabilityData.requestedLevel) + && Objects.equals(this.verificationDeadline, accountCapabilityData.verificationDeadline) + && Objects.equals(this.verificationStatus, accountCapabilityData.verificationStatus); } @Override public int hashCode() { - return Objects.hash(allowed, allowedLevel, capability, problems, requested, requestedLevel, verificationDeadline, verificationStatus); + return Objects.hash( + allowed, + allowedLevel, + capability, + problems, + requested, + requestedLevel, + verificationDeadline, + verificationStatus); } @Override @@ -371,15 +442,16 @@ public String toString() { sb.append(" problems: ").append(toIndentedString(problems)).append("\n"); sb.append(" requested: ").append(toIndentedString(requested)).append("\n"); sb.append(" requestedLevel: ").append(toIndentedString(requestedLevel)).append("\n"); - sb.append(" verificationDeadline: ").append(toIndentedString(verificationDeadline)).append("\n"); + sb.append(" verificationDeadline: ") + .append(toIndentedString(verificationDeadline)) + .append("\n"); sb.append(" verificationStatus: ").append(toIndentedString(verificationStatus)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -388,21 +460,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AccountCapabilityData given an JSON string * * @param jsonString JSON string * @return An instance of AccountCapabilityData - * @throws JsonProcessingException if the JSON string is invalid with respect to AccountCapabilityData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AccountCapabilityData */ public static AccountCapabilityData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountCapabilityData.class); } -/** - * Convert an instance of AccountCapabilityData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AccountCapabilityData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/AccountCreateNotificationData.java b/src/main/java/com/adyen/model/managementwebhooks/AccountCreateNotificationData.java index cf605e190..d6a12689c 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/AccountCreateNotificationData.java +++ b/src/main/java/com/adyen/model/managementwebhooks/AccountCreateNotificationData.java @@ -2,34 +2,24 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.managementwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.managementwebhooks.AccountCapabilityData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.HashMap; +import java.util.Map; - -/** - * AccountCreateNotificationData - */ +/** AccountCreateNotificationData */ @JsonPropertyOrder({ AccountCreateNotificationData.JSON_PROPERTY_CAPABILITIES, AccountCreateNotificationData.JSON_PROPERTY_COMPANY_ID, @@ -37,7 +27,6 @@ AccountCreateNotificationData.JSON_PROPERTY_MERCHANT_ID, AccountCreateNotificationData.JSON_PROPERTY_STATUS }) - public class AccountCreateNotificationData { public static final String JSON_PROPERTY_CAPABILITIES = "capabilities"; private Map capabilities; @@ -54,21 +43,29 @@ public class AccountCreateNotificationData { public static final String JSON_PROPERTY_STATUS = "status"; private String status; - public AccountCreateNotificationData() { - } + public AccountCreateNotificationData() {} /** - * Key-value pairs that specify the actions that the merchant account can do and its settings. The key is a capability. For example, the **sendToTransferInstrument** is the capability required before you can pay out funds to the bank account. The value is an object containing the settings for the capability. + * Key-value pairs that specify the actions that the merchant account can do and its settings. The + * key is a capability. For example, the **sendToTransferInstrument** is the capability required + * before you can pay out funds to the bank account. The value is an object containing the + * settings for the capability. * - * @param capabilities Key-value pairs that specify the actions that the merchant account can do and its settings. The key is a capability. For example, the **sendToTransferInstrument** is the capability required before you can pay out funds to the bank account. The value is an object containing the settings for the capability. - * @return the current {@code AccountCreateNotificationData} instance, allowing for method chaining + * @param capabilities Key-value pairs that specify the actions that the merchant account can do + * and its settings. The key is a capability. For example, the **sendToTransferInstrument** is + * the capability required before you can pay out funds to the bank account. The value is an + * object containing the settings for the capability. + * @return the current {@code AccountCreateNotificationData} instance, allowing for method + * chaining */ - public AccountCreateNotificationData capabilities(Map capabilities) { + public AccountCreateNotificationData capabilities( + Map capabilities) { this.capabilities = capabilities; return this; } - public AccountCreateNotificationData putCapabilitiesItem(String key, AccountCapabilityData capabilitiesItem) { + public AccountCreateNotificationData putCapabilitiesItem( + String key, AccountCapabilityData capabilitiesItem) { if (this.capabilities == null) { this.capabilities = new HashMap<>(); } @@ -77,8 +74,15 @@ public AccountCreateNotificationData putCapabilitiesItem(String key, AccountCapa } /** - * Key-value pairs that specify the actions that the merchant account can do and its settings. The key is a capability. For example, the **sendToTransferInstrument** is the capability required before you can pay out funds to the bank account. The value is an object containing the settings for the capability. - * @return capabilities Key-value pairs that specify the actions that the merchant account can do and its settings. The key is a capability. For example, the **sendToTransferInstrument** is the capability required before you can pay out funds to the bank account. The value is an object containing the settings for the capability. + * Key-value pairs that specify the actions that the merchant account can do and its settings. The + * key is a capability. For example, the **sendToTransferInstrument** is the capability required + * before you can pay out funds to the bank account. The value is an object containing the + * settings for the capability. + * + * @return capabilities Key-value pairs that specify the actions that the merchant account can do + * and its settings. The key is a capability. For example, the **sendToTransferInstrument** is + * the capability required before you can pay out funds to the bank account. The value is an + * object containing the settings for the capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,9 +91,15 @@ public Map getCapabilities() { } /** - * Key-value pairs that specify the actions that the merchant account can do and its settings. The key is a capability. For example, the **sendToTransferInstrument** is the capability required before you can pay out funds to the bank account. The value is an object containing the settings for the capability. + * Key-value pairs that specify the actions that the merchant account can do and its settings. The + * key is a capability. For example, the **sendToTransferInstrument** is the capability required + * before you can pay out funds to the bank account. The value is an object containing the + * settings for the capability. * - * @param capabilities Key-value pairs that specify the actions that the merchant account can do and its settings. The key is a capability. For example, the **sendToTransferInstrument** is the capability required before you can pay out funds to the bank account. The value is an object containing the settings for the capability. + * @param capabilities Key-value pairs that specify the actions that the merchant account can do + * and its settings. The key is a capability. For example, the **sendToTransferInstrument** is + * the capability required before you can pay out funds to the bank account. The value is an + * object containing the settings for the capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,7 +111,8 @@ public void setCapabilities(Map capabilities) { * The unique identifier of the company account. * * @param companyId The unique identifier of the company account. - * @return the current {@code AccountCreateNotificationData} instance, allowing for method chaining + * @return the current {@code AccountCreateNotificationData} instance, allowing for method + * chaining */ public AccountCreateNotificationData companyId(String companyId) { this.companyId = companyId; @@ -110,6 +121,7 @@ public AccountCreateNotificationData companyId(String companyId) { /** * The unique identifier of the company account. + * * @return companyId The unique identifier of the company account. */ @JsonProperty(JSON_PROPERTY_COMPANY_ID) @@ -130,10 +142,13 @@ public void setCompanyId(String companyId) { } /** - * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). * - * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). - * @return the current {@code AccountCreateNotificationData} instance, allowing for method chaining + * @param legalEntityId The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * @return the current {@code AccountCreateNotificationData} instance, allowing for method + * chaining */ public AccountCreateNotificationData legalEntityId(String legalEntityId) { this.legalEntityId = legalEntityId; @@ -141,8 +156,11 @@ public AccountCreateNotificationData legalEntityId(String legalEntityId) { } /** - * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). - * @return legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * + * @return legalEntityId The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,9 +169,11 @@ public String getLegalEntityId() { } /** - * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). * - * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * @param legalEntityId The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -165,7 +185,8 @@ public void setLegalEntityId(String legalEntityId) { * The unique identifier of the merchant account. * * @param merchantId The unique identifier of the merchant account. - * @return the current {@code AccountCreateNotificationData} instance, allowing for method chaining + * @return the current {@code AccountCreateNotificationData} instance, allowing for method + * chaining */ public AccountCreateNotificationData merchantId(String merchantId) { this.merchantId = merchantId; @@ -174,6 +195,7 @@ public AccountCreateNotificationData merchantId(String merchantId) { /** * The unique identifier of the merchant account. + * * @return merchantId The unique identifier of the merchant account. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @@ -194,10 +216,29 @@ public void setMerchantId(String merchantId) { } /** - * The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The account cannot process new payments but can still modify payments, for example issue refunds. The account can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. + * The status of the merchant account. Possible values: * **PreActive**: The merchant account has + * been created. Users cannot access the merchant account in the Customer Area. The account cannot + * process payments. * **Active**: Users can access the merchant account in the Customer Area. If + * the company account is also **Active**, then payment processing and payouts are enabled. * + * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The + * account cannot process new payments but can still modify payments, for example issue refunds. + * The account can still receive payouts. * **Inactive**: Users can access the merchant account in + * the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is + * closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are + * disabled. * - * @param status The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The account cannot process new payments but can still modify payments, for example issue refunds. The account can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. - * @return the current {@code AccountCreateNotificationData} instance, allowing for method chaining + * @param status The status of the merchant account. Possible values: * **PreActive**: The + * merchant account has been created. Users cannot access the merchant account in the Customer + * Area. The account cannot process payments. * **Active**: Users can access the merchant + * account in the Customer Area. If the company account is also **Active**, then payment + * processing and payouts are enabled. * **InactiveWithModifications**: Users can access the + * merchant account in the Customer Area. The account cannot process new payments but can + * still modify payments, for example issue refunds. The account can still receive payouts. * + * **Inactive**: Users can access the merchant account in the Customer Area. Payment + * processing and payouts are disabled. * **Closed**: The account is closed and this cannot be + * reversed. Users cannot log in. Payment processing and payouts are disabled. + * @return the current {@code AccountCreateNotificationData} instance, allowing for method + * chaining */ public AccountCreateNotificationData status(String status) { this.status = status; @@ -205,8 +246,27 @@ public AccountCreateNotificationData status(String status) { } /** - * The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The account cannot process new payments but can still modify payments, for example issue refunds. The account can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. - * @return status The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The account cannot process new payments but can still modify payments, for example issue refunds. The account can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. + * The status of the merchant account. Possible values: * **PreActive**: The merchant account has + * been created. Users cannot access the merchant account in the Customer Area. The account cannot + * process payments. * **Active**: Users can access the merchant account in the Customer Area. If + * the company account is also **Active**, then payment processing and payouts are enabled. * + * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The + * account cannot process new payments but can still modify payments, for example issue refunds. + * The account can still receive payouts. * **Inactive**: Users can access the merchant account in + * the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is + * closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are + * disabled. + * + * @return status The status of the merchant account. Possible values: * **PreActive**: The + * merchant account has been created. Users cannot access the merchant account in the Customer + * Area. The account cannot process payments. * **Active**: Users can access the merchant + * account in the Customer Area. If the company account is also **Active**, then payment + * processing and payouts are enabled. * **InactiveWithModifications**: Users can access the + * merchant account in the Customer Area. The account cannot process new payments but can + * still modify payments, for example issue refunds. The account can still receive payouts. * + * **Inactive**: Users can access the merchant account in the Customer Area. Payment + * processing and payouts are disabled. * **Closed**: The account is closed and this cannot be + * reversed. Users cannot log in. Payment processing and payouts are disabled. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -215,9 +275,27 @@ public String getStatus() { } /** - * The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The account cannot process new payments but can still modify payments, for example issue refunds. The account can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. + * The status of the merchant account. Possible values: * **PreActive**: The merchant account has + * been created. Users cannot access the merchant account in the Customer Area. The account cannot + * process payments. * **Active**: Users can access the merchant account in the Customer Area. If + * the company account is also **Active**, then payment processing and payouts are enabled. * + * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The + * account cannot process new payments but can still modify payments, for example issue refunds. + * The account can still receive payouts. * **Inactive**: Users can access the merchant account in + * the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is + * closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are + * disabled. * - * @param status The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The account cannot process new payments but can still modify payments, for example issue refunds. The account can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. + * @param status The status of the merchant account. Possible values: * **PreActive**: The + * merchant account has been created. Users cannot access the merchant account in the Customer + * Area. The account cannot process payments. * **Active**: Users can access the merchant + * account in the Customer Area. If the company account is also **Active**, then payment + * processing and payouts are enabled. * **InactiveWithModifications**: Users can access the + * merchant account in the Customer Area. The account cannot process new payments but can + * still modify payments, for example issue refunds. The account can still receive payouts. * + * **Inactive**: Users can access the merchant account in the Customer Area. Payment + * processing and payouts are disabled. * **Closed**: The account is closed and this cannot be + * reversed. Users cannot log in. Payment processing and payouts are disabled. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -225,9 +303,7 @@ public void setStatus(String status) { this.status = status; } - /** - * Return true if this AccountCreateNotificationData object is equal to o. - */ + /** Return true if this AccountCreateNotificationData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -237,11 +313,11 @@ public boolean equals(Object o) { return false; } AccountCreateNotificationData accountCreateNotificationData = (AccountCreateNotificationData) o; - return Objects.equals(this.capabilities, accountCreateNotificationData.capabilities) && - Objects.equals(this.companyId, accountCreateNotificationData.companyId) && - Objects.equals(this.legalEntityId, accountCreateNotificationData.legalEntityId) && - Objects.equals(this.merchantId, accountCreateNotificationData.merchantId) && - Objects.equals(this.status, accountCreateNotificationData.status); + return Objects.equals(this.capabilities, accountCreateNotificationData.capabilities) + && Objects.equals(this.companyId, accountCreateNotificationData.companyId) + && Objects.equals(this.legalEntityId, accountCreateNotificationData.legalEntityId) + && Objects.equals(this.merchantId, accountCreateNotificationData.merchantId) + && Objects.equals(this.status, accountCreateNotificationData.status); } @Override @@ -263,8 +339,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -273,21 +348,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AccountCreateNotificationData given an JSON string * * @param jsonString JSON string * @return An instance of AccountCreateNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to AccountCreateNotificationData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AccountCreateNotificationData */ - public static AccountCreateNotificationData fromJson(String jsonString) throws JsonProcessingException { + public static AccountCreateNotificationData fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountCreateNotificationData.class); } -/** - * Convert an instance of AccountCreateNotificationData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AccountCreateNotificationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/AccountNotificationResponse.java b/src/main/java/com/adyen/model/managementwebhooks/AccountNotificationResponse.java index cf033dd07..8528fe458 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/AccountNotificationResponse.java +++ b/src/main/java/com/adyen/model/managementwebhooks/AccountNotificationResponse.java @@ -2,46 +2,35 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.managementwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AccountNotificationResponse - */ -@JsonPropertyOrder({ - AccountNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE -}) - +/** AccountNotificationResponse */ +@JsonPropertyOrder({AccountNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) public class AccountNotificationResponse { public static final String JSON_PROPERTY_NOTIFICATION_RESPONSE = "notificationResponse"; private String notificationResponse; - public AccountNotificationResponse() { - } + public AccountNotificationResponse() {} /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * @return the current {@code AccountNotificationResponse} instance, allowing for method chaining */ public AccountNotificationResponse notificationResponse(String notificationResponse) { @@ -50,8 +39,11 @@ public AccountNotificationResponse notificationResponse(String notificationRespo } /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * + * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,9 +52,11 @@ public String getNotificationResponse() { } /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +64,7 @@ public void setNotificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; } - /** - * Return true if this AccountNotificationResponse object is equal to o. - */ + /** Return true if this AccountNotificationResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -82,7 +74,8 @@ public boolean equals(Object o) { return false; } AccountNotificationResponse accountNotificationResponse = (AccountNotificationResponse) o; - return Objects.equals(this.notificationResponse, accountNotificationResponse.notificationResponse); + return Objects.equals( + this.notificationResponse, accountNotificationResponse.notificationResponse); } @Override @@ -94,14 +87,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AccountNotificationResponse {\n"); - sb.append(" notificationResponse: ").append(toIndentedString(notificationResponse)).append("\n"); + sb.append(" notificationResponse: ") + .append(toIndentedString(notificationResponse)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +104,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AccountNotificationResponse given an JSON string * * @param jsonString JSON string * @return An instance of AccountNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to AccountNotificationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AccountNotificationResponse */ - public static AccountNotificationResponse fromJson(String jsonString) throws JsonProcessingException { + public static AccountNotificationResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountNotificationResponse.class); } -/** - * Convert an instance of AccountNotificationResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AccountNotificationResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/AccountUpdateNotificationData.java b/src/main/java/com/adyen/model/managementwebhooks/AccountUpdateNotificationData.java index e10e08229..2a9512303 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/AccountUpdateNotificationData.java +++ b/src/main/java/com/adyen/model/managementwebhooks/AccountUpdateNotificationData.java @@ -2,41 +2,30 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.managementwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.managementwebhooks.AccountCapabilityData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.HashMap; +import java.util.Map; - -/** - * AccountUpdateNotificationData - */ +/** AccountUpdateNotificationData */ @JsonPropertyOrder({ AccountUpdateNotificationData.JSON_PROPERTY_CAPABILITIES, AccountUpdateNotificationData.JSON_PROPERTY_LEGAL_ENTITY_ID, AccountUpdateNotificationData.JSON_PROPERTY_MERCHANT_ID, AccountUpdateNotificationData.JSON_PROPERTY_STATUS }) - public class AccountUpdateNotificationData { public static final String JSON_PROPERTY_CAPABILITIES = "capabilities"; private Map capabilities; @@ -50,21 +39,31 @@ public class AccountUpdateNotificationData { public static final String JSON_PROPERTY_STATUS = "status"; private String status; - public AccountUpdateNotificationData() { - } + public AccountUpdateNotificationData() {} /** - * Key-value pairs that specify what you can do with the merchant account and its settings. The key is a capability. For example, the **sendToTransferInstrument** is the capability required before you can pay out the funds of a merchant account to a [bank account](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). The value is an object containing the settings for the capability. + * Key-value pairs that specify what you can do with the merchant account and its settings. The + * key is a capability. For example, the **sendToTransferInstrument** is the capability required + * before you can pay out the funds of a merchant account to a [bank + * account](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). The + * value is an object containing the settings for the capability. * - * @param capabilities Key-value pairs that specify what you can do with the merchant account and its settings. The key is a capability. For example, the **sendToTransferInstrument** is the capability required before you can pay out the funds of a merchant account to a [bank account](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). The value is an object containing the settings for the capability. - * @return the current {@code AccountUpdateNotificationData} instance, allowing for method chaining + * @param capabilities Key-value pairs that specify what you can do with the merchant account and + * its settings. The key is a capability. For example, the **sendToTransferInstrument** is the + * capability required before you can pay out the funds of a merchant account to a [bank + * account](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). + * The value is an object containing the settings for the capability. + * @return the current {@code AccountUpdateNotificationData} instance, allowing for method + * chaining */ - public AccountUpdateNotificationData capabilities(Map capabilities) { + public AccountUpdateNotificationData capabilities( + Map capabilities) { this.capabilities = capabilities; return this; } - public AccountUpdateNotificationData putCapabilitiesItem(String key, AccountCapabilityData capabilitiesItem) { + public AccountUpdateNotificationData putCapabilitiesItem( + String key, AccountCapabilityData capabilitiesItem) { if (this.capabilities == null) { this.capabilities = new HashMap<>(); } @@ -73,8 +72,17 @@ public AccountUpdateNotificationData putCapabilitiesItem(String key, AccountCapa } /** - * Key-value pairs that specify what you can do with the merchant account and its settings. The key is a capability. For example, the **sendToTransferInstrument** is the capability required before you can pay out the funds of a merchant account to a [bank account](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). The value is an object containing the settings for the capability. - * @return capabilities Key-value pairs that specify what you can do with the merchant account and its settings. The key is a capability. For example, the **sendToTransferInstrument** is the capability required before you can pay out the funds of a merchant account to a [bank account](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). The value is an object containing the settings for the capability. + * Key-value pairs that specify what you can do with the merchant account and its settings. The + * key is a capability. For example, the **sendToTransferInstrument** is the capability required + * before you can pay out the funds of a merchant account to a [bank + * account](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). The + * value is an object containing the settings for the capability. + * + * @return capabilities Key-value pairs that specify what you can do with the merchant account and + * its settings. The key is a capability. For example, the **sendToTransferInstrument** is the + * capability required before you can pay out the funds of a merchant account to a [bank + * account](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). + * The value is an object containing the settings for the capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,9 +91,17 @@ public Map getCapabilities() { } /** - * Key-value pairs that specify what you can do with the merchant account and its settings. The key is a capability. For example, the **sendToTransferInstrument** is the capability required before you can pay out the funds of a merchant account to a [bank account](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). The value is an object containing the settings for the capability. + * Key-value pairs that specify what you can do with the merchant account and its settings. The + * key is a capability. For example, the **sendToTransferInstrument** is the capability required + * before you can pay out the funds of a merchant account to a [bank + * account](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). The + * value is an object containing the settings for the capability. * - * @param capabilities Key-value pairs that specify what you can do with the merchant account and its settings. The key is a capability. For example, the **sendToTransferInstrument** is the capability required before you can pay out the funds of a merchant account to a [bank account](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). The value is an object containing the settings for the capability. + * @param capabilities Key-value pairs that specify what you can do with the merchant account and + * its settings. The key is a capability. For example, the **sendToTransferInstrument** is the + * capability required before you can pay out the funds of a merchant account to a [bank + * account](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). + * The value is an object containing the settings for the capability. */ @JsonProperty(JSON_PROPERTY_CAPABILITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,10 +110,13 @@ public void setCapabilities(Map capabilities) { } /** - * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). * - * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). - * @return the current {@code AccountUpdateNotificationData} instance, allowing for method chaining + * @param legalEntityId The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * @return the current {@code AccountUpdateNotificationData} instance, allowing for method + * chaining */ public AccountUpdateNotificationData legalEntityId(String legalEntityId) { this.legalEntityId = legalEntityId; @@ -105,8 +124,11 @@ public AccountUpdateNotificationData legalEntityId(String legalEntityId) { } /** - * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). - * @return legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * + * @return legalEntityId The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,9 +137,11 @@ public String getLegalEntityId() { } /** - * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). * - * @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). + * @param legalEntityId The unique identifier of the [legal + * entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,7 +153,8 @@ public void setLegalEntityId(String legalEntityId) { * The unique identifier of the merchant account. * * @param merchantId The unique identifier of the merchant account. - * @return the current {@code AccountUpdateNotificationData} instance, allowing for method chaining + * @return the current {@code AccountUpdateNotificationData} instance, allowing for method + * chaining */ public AccountUpdateNotificationData merchantId(String merchantId) { this.merchantId = merchantId; @@ -138,6 +163,7 @@ public AccountUpdateNotificationData merchantId(String merchantId) { /** * The unique identifier of the merchant account. + * * @return merchantId The unique identifier of the merchant account. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @@ -158,10 +184,29 @@ public void setMerchantId(String merchantId) { } /** - * The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The account cannot process new payments but can still modify payments, for example issue refunds. The account can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. + * The status of the merchant account. Possible values: * **PreActive**: The merchant account has + * been created. Users cannot access the merchant account in the Customer Area. The account cannot + * process payments. * **Active**: Users can access the merchant account in the Customer Area. If + * the company account is also **Active**, then payment processing and payouts are enabled. * + * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The + * account cannot process new payments but can still modify payments, for example issue refunds. + * The account can still receive payouts. * **Inactive**: Users can access the merchant account in + * the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is + * closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are + * disabled. * - * @param status The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The account cannot process new payments but can still modify payments, for example issue refunds. The account can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. - * @return the current {@code AccountUpdateNotificationData} instance, allowing for method chaining + * @param status The status of the merchant account. Possible values: * **PreActive**: The + * merchant account has been created. Users cannot access the merchant account in the Customer + * Area. The account cannot process payments. * **Active**: Users can access the merchant + * account in the Customer Area. If the company account is also **Active**, then payment + * processing and payouts are enabled. * **InactiveWithModifications**: Users can access the + * merchant account in the Customer Area. The account cannot process new payments but can + * still modify payments, for example issue refunds. The account can still receive payouts. * + * **Inactive**: Users can access the merchant account in the Customer Area. Payment + * processing and payouts are disabled. * **Closed**: The account is closed and this cannot be + * reversed. Users cannot log in. Payment processing and payouts are disabled. + * @return the current {@code AccountUpdateNotificationData} instance, allowing for method + * chaining */ public AccountUpdateNotificationData status(String status) { this.status = status; @@ -169,8 +214,27 @@ public AccountUpdateNotificationData status(String status) { } /** - * The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The account cannot process new payments but can still modify payments, for example issue refunds. The account can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. - * @return status The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The account cannot process new payments but can still modify payments, for example issue refunds. The account can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. + * The status of the merchant account. Possible values: * **PreActive**: The merchant account has + * been created. Users cannot access the merchant account in the Customer Area. The account cannot + * process payments. * **Active**: Users can access the merchant account in the Customer Area. If + * the company account is also **Active**, then payment processing and payouts are enabled. * + * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The + * account cannot process new payments but can still modify payments, for example issue refunds. + * The account can still receive payouts. * **Inactive**: Users can access the merchant account in + * the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is + * closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are + * disabled. + * + * @return status The status of the merchant account. Possible values: * **PreActive**: The + * merchant account has been created. Users cannot access the merchant account in the Customer + * Area. The account cannot process payments. * **Active**: Users can access the merchant + * account in the Customer Area. If the company account is also **Active**, then payment + * processing and payouts are enabled. * **InactiveWithModifications**: Users can access the + * merchant account in the Customer Area. The account cannot process new payments but can + * still modify payments, for example issue refunds. The account can still receive payouts. * + * **Inactive**: Users can access the merchant account in the Customer Area. Payment + * processing and payouts are disabled. * **Closed**: The account is closed and this cannot be + * reversed. Users cannot log in. Payment processing and payouts are disabled. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,9 +243,27 @@ public String getStatus() { } /** - * The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The account cannot process new payments but can still modify payments, for example issue refunds. The account can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. + * The status of the merchant account. Possible values: * **PreActive**: The merchant account has + * been created. Users cannot access the merchant account in the Customer Area. The account cannot + * process payments. * **Active**: Users can access the merchant account in the Customer Area. If + * the company account is also **Active**, then payment processing and payouts are enabled. * + * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The + * account cannot process new payments but can still modify payments, for example issue refunds. + * The account can still receive payouts. * **Inactive**: Users can access the merchant account in + * the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is + * closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are + * disabled. * - * @param status The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The account cannot process new payments but can still modify payments, for example issue refunds. The account can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. + * @param status The status of the merchant account. Possible values: * **PreActive**: The + * merchant account has been created. Users cannot access the merchant account in the Customer + * Area. The account cannot process payments. * **Active**: Users can access the merchant + * account in the Customer Area. If the company account is also **Active**, then payment + * processing and payouts are enabled. * **InactiveWithModifications**: Users can access the + * merchant account in the Customer Area. The account cannot process new payments but can + * still modify payments, for example issue refunds. The account can still receive payouts. * + * **Inactive**: Users can access the merchant account in the Customer Area. Payment + * processing and payouts are disabled. * **Closed**: The account is closed and this cannot be + * reversed. Users cannot log in. Payment processing and payouts are disabled. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,9 +271,7 @@ public void setStatus(String status) { this.status = status; } - /** - * Return true if this AccountUpdateNotificationData object is equal to o. - */ + /** Return true if this AccountUpdateNotificationData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -201,10 +281,10 @@ public boolean equals(Object o) { return false; } AccountUpdateNotificationData accountUpdateNotificationData = (AccountUpdateNotificationData) o; - return Objects.equals(this.capabilities, accountUpdateNotificationData.capabilities) && - Objects.equals(this.legalEntityId, accountUpdateNotificationData.legalEntityId) && - Objects.equals(this.merchantId, accountUpdateNotificationData.merchantId) && - Objects.equals(this.status, accountUpdateNotificationData.status); + return Objects.equals(this.capabilities, accountUpdateNotificationData.capabilities) + && Objects.equals(this.legalEntityId, accountUpdateNotificationData.legalEntityId) + && Objects.equals(this.merchantId, accountUpdateNotificationData.merchantId) + && Objects.equals(this.status, accountUpdateNotificationData.status); } @Override @@ -225,8 +305,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -235,21 +314,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AccountUpdateNotificationData given an JSON string * * @param jsonString JSON string * @return An instance of AccountUpdateNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to AccountUpdateNotificationData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AccountUpdateNotificationData */ - public static AccountUpdateNotificationData fromJson(String jsonString) throws JsonProcessingException { + public static AccountUpdateNotificationData fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountUpdateNotificationData.class); } -/** - * Convert an instance of AccountUpdateNotificationData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AccountUpdateNotificationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblem.java b/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblem.java index ca4f5310e..8f27a0397 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblem.java +++ b/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblem.java @@ -2,40 +2,28 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.managementwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.managementwebhooks.CapabilityProblemEntity; -import com.adyen.model.managementwebhooks.VerificationError; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * CapabilityProblem - */ +/** CapabilityProblem */ @JsonPropertyOrder({ CapabilityProblem.JSON_PROPERTY_ENTITY, CapabilityProblem.JSON_PROPERTY_VERIFICATION_ERRORS }) - public class CapabilityProblem { public static final String JSON_PROPERTY_ENTITY = "entity"; private CapabilityProblemEntity entity; @@ -43,13 +31,12 @@ public class CapabilityProblem { public static final String JSON_PROPERTY_VERIFICATION_ERRORS = "verificationErrors"; private List verificationErrors; - public CapabilityProblem() { - } + public CapabilityProblem() {} /** * entity * - * @param entity + * @param entity * @return the current {@code CapabilityProblem} instance, allowing for method chaining */ public CapabilityProblem entity(CapabilityProblemEntity entity) { @@ -59,7 +46,8 @@ public CapabilityProblem entity(CapabilityProblemEntity entity) { /** * Get entity - * @return entity + * + * @return entity */ @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,7 +58,7 @@ public CapabilityProblemEntity getEntity() { /** * entity * - * @param entity + * @param entity */ @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,6 +87,7 @@ public CapabilityProblem addVerificationErrorsItem(VerificationError verificatio /** * List of verification errors. + * * @return verificationErrors List of verification errors. */ @JsonProperty(JSON_PROPERTY_VERIFICATION_ERRORS) @@ -118,9 +107,7 @@ public void setVerificationErrors(List verificationErrors) { this.verificationErrors = verificationErrors; } - /** - * Return true if this CapabilityProblem object is equal to o. - */ + /** Return true if this CapabilityProblem object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -130,8 +117,8 @@ public boolean equals(Object o) { return false; } CapabilityProblem capabilityProblem = (CapabilityProblem) o; - return Objects.equals(this.entity, capabilityProblem.entity) && - Objects.equals(this.verificationErrors, capabilityProblem.verificationErrors); + return Objects.equals(this.entity, capabilityProblem.entity) + && Objects.equals(this.verificationErrors, capabilityProblem.verificationErrors); } @Override @@ -150,8 +137,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -160,7 +146,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CapabilityProblem given an JSON string * * @param jsonString JSON string @@ -170,11 +156,12 @@ private String toIndentedString(Object o) { public static CapabilityProblem fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapabilityProblem.class); } -/** - * Convert an instance of CapabilityProblem to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CapabilityProblem to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblemEntity.java b/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblemEntity.java index 83df95728..919708775 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblemEntity.java +++ b/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblemEntity.java @@ -2,41 +2,34 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.managementwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.managementwebhooks.CapabilityProblemEntityRecursive; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * CapabilityProblemEntity - */ +/** CapabilityProblemEntity */ @JsonPropertyOrder({ CapabilityProblemEntity.JSON_PROPERTY_DOCUMENTS, CapabilityProblemEntity.JSON_PROPERTY_ID, CapabilityProblemEntity.JSON_PROPERTY_OWNER, CapabilityProblemEntity.JSON_PROPERTY_TYPE }) - public class CapabilityProblemEntity { public static final String JSON_PROPERTY_DOCUMENTS = "documents"; private List documents; @@ -47,11 +40,8 @@ public class CapabilityProblemEntity { public static final String JSON_PROPERTY_OWNER = "owner"; private CapabilityProblemEntityRecursive owner; - /** - * The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. - */ + /** The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. */ public enum TypeEnum { - BANKACCOUNT(String.valueOf("BankAccount")), DOCUMENT(String.valueOf("Document")), @@ -63,7 +53,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -84,7 +74,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -92,13 +86,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CapabilityProblemEntity() { - } + public CapabilityProblemEntity() {} /** - * List of document IDs to which the verification errors related to the capabilities correspond to. + * List of document IDs to which the verification errors related to the capabilities correspond + * to. * - * @param documents List of document IDs to which the verification errors related to the capabilities correspond to. + * @param documents List of document IDs to which the verification errors related to the + * capabilities correspond to. * @return the current {@code CapabilityProblemEntity} instance, allowing for method chaining */ public CapabilityProblemEntity documents(List documents) { @@ -115,8 +110,11 @@ public CapabilityProblemEntity addDocumentsItem(String documentsItem) { } /** - * List of document IDs to which the verification errors related to the capabilities correspond to. - * @return documents List of document IDs to which the verification errors related to the capabilities correspond to. + * List of document IDs to which the verification errors related to the capabilities correspond + * to. + * + * @return documents List of document IDs to which the verification errors related to the + * capabilities correspond to. */ @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,9 +123,11 @@ public List getDocuments() { } /** - * List of document IDs to which the verification errors related to the capabilities correspond to. + * List of document IDs to which the verification errors related to the capabilities correspond + * to. * - * @param documents List of document IDs to which the verification errors related to the capabilities correspond to. + * @param documents List of document IDs to which the verification errors related to the + * capabilities correspond to. */ @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,6 +148,7 @@ public CapabilityProblemEntity id(String id) { /** * The ID of the entity. + * * @return id The ID of the entity. */ @JsonProperty(JSON_PROPERTY_ID) @@ -170,7 +171,7 @@ public void setId(String id) { /** * owner * - * @param owner + * @param owner * @return the current {@code CapabilityProblemEntity} instance, allowing for method chaining */ public CapabilityProblemEntity owner(CapabilityProblemEntityRecursive owner) { @@ -180,7 +181,8 @@ public CapabilityProblemEntity owner(CapabilityProblemEntityRecursive owner) { /** * Get owner - * @return owner + * + * @return owner */ @JsonProperty(JSON_PROPERTY_OWNER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,7 +193,7 @@ public CapabilityProblemEntityRecursive getOwner() { /** * owner * - * @param owner + * @param owner */ @JsonProperty(JSON_PROPERTY_OWNER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,9 +202,10 @@ public void setOwner(CapabilityProblemEntityRecursive owner) { } /** - * The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. + * The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. * - * @param type The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. + * @param type The type of entity. Possible values: **LegalEntity**, **BankAccount**, or + * **Document**. * @return the current {@code CapabilityProblemEntity} instance, allowing for method chaining */ public CapabilityProblemEntity type(TypeEnum type) { @@ -211,8 +214,10 @@ public CapabilityProblemEntity type(TypeEnum type) { } /** - * The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. - * @return type The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. + * The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. + * + * @return type The type of entity. Possible values: **LegalEntity**, **BankAccount**, or + * **Document**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,9 +226,10 @@ public TypeEnum getType() { } /** - * The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. + * The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. * - * @param type The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. + * @param type The type of entity. Possible values: **LegalEntity**, **BankAccount**, or + * **Document**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -231,9 +237,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this CapabilityProblemEntity object is equal to o. - */ + /** Return true if this CapabilityProblemEntity object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -243,10 +247,10 @@ public boolean equals(Object o) { return false; } CapabilityProblemEntity capabilityProblemEntity = (CapabilityProblemEntity) o; - return Objects.equals(this.documents, capabilityProblemEntity.documents) && - Objects.equals(this.id, capabilityProblemEntity.id) && - Objects.equals(this.owner, capabilityProblemEntity.owner) && - Objects.equals(this.type, capabilityProblemEntity.type); + return Objects.equals(this.documents, capabilityProblemEntity.documents) + && Objects.equals(this.id, capabilityProblemEntity.id) + && Objects.equals(this.owner, capabilityProblemEntity.owner) + && Objects.equals(this.type, capabilityProblemEntity.type); } @Override @@ -267,8 +271,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -277,21 +280,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CapabilityProblemEntity given an JSON string * * @param jsonString JSON string * @return An instance of CapabilityProblemEntity - * @throws JsonProcessingException if the JSON string is invalid with respect to CapabilityProblemEntity + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CapabilityProblemEntity */ public static CapabilityProblemEntity fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapabilityProblemEntity.class); } -/** - * Convert an instance of CapabilityProblemEntity to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CapabilityProblemEntity to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblemEntityRecursive.java b/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblemEntityRecursive.java index ee4998d94..ae32f3409 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblemEntityRecursive.java +++ b/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblemEntityRecursive.java @@ -2,40 +2,35 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.managementwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * CapabilityProblemEntityRecursive - */ +/** CapabilityProblemEntityRecursive */ @JsonPropertyOrder({ CapabilityProblemEntityRecursive.JSON_PROPERTY_DOCUMENTS, CapabilityProblemEntityRecursive.JSON_PROPERTY_ID, CapabilityProblemEntityRecursive.JSON_PROPERTY_TYPE }) @JsonTypeName("CapabilityProblemEntity-recursive") - public class CapabilityProblemEntityRecursive { public static final String JSON_PROPERTY_DOCUMENTS = "documents"; private List documents; @@ -43,11 +38,8 @@ public class CapabilityProblemEntityRecursive { public static final String JSON_PROPERTY_ID = "id"; private String id; - /** - * The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. - */ + /** The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. */ public enum TypeEnum { - BANKACCOUNT(String.valueOf("BankAccount")), DOCUMENT(String.valueOf("Document")), @@ -59,7 +51,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -80,7 +72,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -88,14 +84,16 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CapabilityProblemEntityRecursive() { - } + public CapabilityProblemEntityRecursive() {} /** - * List of document IDs to which the verification errors related to the capabilities correspond to. + * List of document IDs to which the verification errors related to the capabilities correspond + * to. * - * @param documents List of document IDs to which the verification errors related to the capabilities correspond to. - * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method chaining + * @param documents List of document IDs to which the verification errors related to the + * capabilities correspond to. + * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method + * chaining */ public CapabilityProblemEntityRecursive documents(List documents) { this.documents = documents; @@ -111,8 +109,11 @@ public CapabilityProblemEntityRecursive addDocumentsItem(String documentsItem) { } /** - * List of document IDs to which the verification errors related to the capabilities correspond to. - * @return documents List of document IDs to which the verification errors related to the capabilities correspond to. + * List of document IDs to which the verification errors related to the capabilities correspond + * to. + * + * @return documents List of document IDs to which the verification errors related to the + * capabilities correspond to. */ @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,9 +122,11 @@ public List getDocuments() { } /** - * List of document IDs to which the verification errors related to the capabilities correspond to. + * List of document IDs to which the verification errors related to the capabilities correspond + * to. * - * @param documents List of document IDs to which the verification errors related to the capabilities correspond to. + * @param documents List of document IDs to which the verification errors related to the + * capabilities correspond to. */ @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,7 +138,8 @@ public void setDocuments(List documents) { * The ID of the entity. * * @param id The ID of the entity. - * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method chaining + * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method + * chaining */ public CapabilityProblemEntityRecursive id(String id) { this.id = id; @@ -144,6 +148,7 @@ public CapabilityProblemEntityRecursive id(String id) { /** * The ID of the entity. + * * @return id The ID of the entity. */ @JsonProperty(JSON_PROPERTY_ID) @@ -164,10 +169,12 @@ public void setId(String id) { } /** - * The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. + * The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. * - * @param type The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. - * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method chaining + * @param type The type of entity. Possible values: **LegalEntity**, **BankAccount**, or + * **Document**. + * @return the current {@code CapabilityProblemEntityRecursive} instance, allowing for method + * chaining */ public CapabilityProblemEntityRecursive type(TypeEnum type) { this.type = type; @@ -175,8 +182,10 @@ public CapabilityProblemEntityRecursive type(TypeEnum type) { } /** - * The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. - * @return type The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. + * The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. + * + * @return type The type of entity. Possible values: **LegalEntity**, **BankAccount**, or + * **Document**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,9 +194,10 @@ public TypeEnum getType() { } /** - * The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. + * The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. * - * @param type The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. + * @param type The type of entity. Possible values: **LegalEntity**, **BankAccount**, or + * **Document**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,9 +205,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this CapabilityProblemEntity-recursive object is equal to o. - */ + /** Return true if this CapabilityProblemEntity-recursive object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -206,10 +214,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CapabilityProblemEntityRecursive capabilityProblemEntityRecursive = (CapabilityProblemEntityRecursive) o; - return Objects.equals(this.documents, capabilityProblemEntityRecursive.documents) && - Objects.equals(this.id, capabilityProblemEntityRecursive.id) && - Objects.equals(this.type, capabilityProblemEntityRecursive.type); + CapabilityProblemEntityRecursive capabilityProblemEntityRecursive = + (CapabilityProblemEntityRecursive) o; + return Objects.equals(this.documents, capabilityProblemEntityRecursive.documents) + && Objects.equals(this.id, capabilityProblemEntityRecursive.id) + && Objects.equals(this.type, capabilityProblemEntityRecursive.type); } @Override @@ -229,8 +238,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -239,21 +247,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CapabilityProblemEntityRecursive given an JSON string * * @param jsonString JSON string * @return An instance of CapabilityProblemEntityRecursive - * @throws JsonProcessingException if the JSON string is invalid with respect to CapabilityProblemEntityRecursive + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CapabilityProblemEntityRecursive */ - public static CapabilityProblemEntityRecursive fromJson(String jsonString) throws JsonProcessingException { + public static CapabilityProblemEntityRecursive fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapabilityProblemEntityRecursive.class); } -/** - * Convert an instance of CapabilityProblemEntityRecursive to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CapabilityProblemEntityRecursive to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/JSON.java b/src/main/java/com/adyen/model/managementwebhooks/JSON.java index 681268444..29d9aac38 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/JSON.java +++ b/src/main/java/com/adyen/model/managementwebhooks/JSON.java @@ -1,21 +1,18 @@ package com.adyen.model.managementwebhooks; -import com.adyen.serializer.ByteArraySerializer; import com.adyen.serializer.ByteArrayDeserializer; +import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import com.adyen.model.managementwebhooks.*; - +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -40,6 +37,7 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. + * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -56,11 +54,13 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { return mapper; } + public static ObjectMapper getMapper() { + return mapper; + } /** - * Returns the target model class that should be used to deserialize the input data. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,9 +73,7 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** - * Helper class to register the discriminator mappings. - */ + /** Helper class to register the discriminator mappings. */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -117,9 +115,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. - * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. This + * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -164,13 +162,14 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, - * so it's not possible to use the instanceof keyword. + *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so + * it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf( + Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -194,59 +193,58 @@ public static boolean isInstanceOf(Class modelClass, Object inst, Set, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); + /** A map of discriminators for all model classes. */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = + new HashMap, ClassDiscriminatorMapping>(); - /** - * A map of oneOf/anyOf descendants for each model class. - */ + /** A map of oneOf/anyOf descendants for each model class. */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator( + Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = + new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants(Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants( + Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static - { + static { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/managementwebhooks/ManagementWebhooksHandler.java b/src/main/java/com/adyen/model/managementwebhooks/ManagementWebhooksHandler.java index bdd14ea04..b581d86e1 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/ManagementWebhooksHandler.java +++ b/src/main/java/com/adyen/model/managementwebhooks/ManagementWebhooksHandler.java @@ -2,7 +2,7 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,195 +16,207 @@ /** * Handler for processing ManagementWebhooks. - *

- * This class provides functionality to deserialize the payload of ManagementWebhooks events. + * + *

This class provides functionality to deserialize the payload of ManagementWebhooks events. */ public class ManagementWebhooksHandler { - private static final Logger LOG = Logger.getLogger(ManagementWebhooksHandler.class.getName()); - - private final String payload; - - /** - * Constructs a new handler for the given webhook payload - * - * @param payload the raw JSON payload from the webhook - */ - public ManagementWebhooksHandler(String payload) { - this.payload = payload; - } - - /** - * Attempts to deserialize the webhook payload into a MerchantCreatedNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getMerchantCreatedNotificationRequest() { - - var optionalMerchantCreatedNotificationRequest = getOptionalField(MerchantCreatedNotificationRequest.class); - - if(optionalMerchantCreatedNotificationRequest.isPresent()) { - // verify event type - for (var value : MerchantCreatedNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalMerchantCreatedNotificationRequest.get().getType())) { - // found matching event type - return optionalMerchantCreatedNotificationRequest; - } - } + private static final Logger LOG = Logger.getLogger(ManagementWebhooksHandler.class.getName()); + + private final String payload; + + /** + * Constructs a new handler for the given webhook payload + * + * @param payload the raw JSON payload from the webhook + */ + public ManagementWebhooksHandler(String payload) { + this.payload = payload; + } + + /** + * Attempts to deserialize the webhook payload into a MerchantCreatedNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getMerchantCreatedNotificationRequest() { + + var optionalMerchantCreatedNotificationRequest = + getOptionalField(MerchantCreatedNotificationRequest.class); + + if (optionalMerchantCreatedNotificationRequest.isPresent()) { + // verify event type + for (var value : MerchantCreatedNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalMerchantCreatedNotificationRequest.get().getType())) { + // found matching event type + return optionalMerchantCreatedNotificationRequest; } - - return Optional.empty(); + } } - /** - * Attempts to deserialize the webhook payload into a MerchantUpdatedNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getMerchantUpdatedNotificationRequest() { - - var optionalMerchantUpdatedNotificationRequest = getOptionalField(MerchantUpdatedNotificationRequest.class); - - if(optionalMerchantUpdatedNotificationRequest.isPresent()) { - // verify event type - for (var value : MerchantUpdatedNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalMerchantUpdatedNotificationRequest.get().getType())) { - // found matching event type - return optionalMerchantUpdatedNotificationRequest; - } - } + return Optional.empty(); + } + + /** + * Attempts to deserialize the webhook payload into a MerchantUpdatedNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getMerchantUpdatedNotificationRequest() { + + var optionalMerchantUpdatedNotificationRequest = + getOptionalField(MerchantUpdatedNotificationRequest.class); + + if (optionalMerchantUpdatedNotificationRequest.isPresent()) { + // verify event type + for (var value : MerchantUpdatedNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalMerchantUpdatedNotificationRequest.get().getType())) { + // found matching event type + return optionalMerchantUpdatedNotificationRequest; } - - return Optional.empty(); + } } - /** - * Attempts to deserialize the webhook payload into a PaymentMethodCreatedNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getPaymentMethodCreatedNotificationRequest() { - - var optionalPaymentMethodCreatedNotificationRequest = getOptionalField(PaymentMethodCreatedNotificationRequest.class); - - if(optionalPaymentMethodCreatedNotificationRequest.isPresent()) { - // verify event type - for (var value : PaymentMethodCreatedNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalPaymentMethodCreatedNotificationRequest.get().getType())) { - // found matching event type - return optionalPaymentMethodCreatedNotificationRequest; - } - } + return Optional.empty(); + } + + /** + * Attempts to deserialize the webhook payload into a PaymentMethodCreatedNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional + getPaymentMethodCreatedNotificationRequest() { + + var optionalPaymentMethodCreatedNotificationRequest = + getOptionalField(PaymentMethodCreatedNotificationRequest.class); + + if (optionalPaymentMethodCreatedNotificationRequest.isPresent()) { + // verify event type + for (var value : PaymentMethodCreatedNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalPaymentMethodCreatedNotificationRequest.get().getType())) { + // found matching event type + return optionalPaymentMethodCreatedNotificationRequest; } - - return Optional.empty(); + } } - /** - * Attempts to deserialize the webhook payload into a PaymentMethodRequestRemovedNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getPaymentMethodRequestRemovedNotificationRequest() { - - var optionalPaymentMethodRequestRemovedNotificationRequest = getOptionalField(PaymentMethodRequestRemovedNotificationRequest.class); - - if(optionalPaymentMethodRequestRemovedNotificationRequest.isPresent()) { - // verify event type - for (var value : PaymentMethodRequestRemovedNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalPaymentMethodRequestRemovedNotificationRequest.get().getType())) { - // found matching event type - return optionalPaymentMethodRequestRemovedNotificationRequest; - } - } + return Optional.empty(); + } + + /** + * Attempts to deserialize the webhook payload into a + * PaymentMethodRequestRemovedNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional + getPaymentMethodRequestRemovedNotificationRequest() { + + var optionalPaymentMethodRequestRemovedNotificationRequest = + getOptionalField(PaymentMethodRequestRemovedNotificationRequest.class); + + if (optionalPaymentMethodRequestRemovedNotificationRequest.isPresent()) { + // verify event type + for (var value : PaymentMethodRequestRemovedNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalPaymentMethodRequestRemovedNotificationRequest.get().getType())) { + // found matching event type + return optionalPaymentMethodRequestRemovedNotificationRequest; } - - return Optional.empty(); + } } - /** - * Attempts to deserialize the webhook payload into a PaymentMethodScheduledForRemovalNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getPaymentMethodScheduledForRemovalNotificationRequest() { - - var optionalPaymentMethodScheduledForRemovalNotificationRequest = getOptionalField(PaymentMethodScheduledForRemovalNotificationRequest.class); - - if(optionalPaymentMethodScheduledForRemovalNotificationRequest.isPresent()) { - // verify event type - for (var value : PaymentMethodScheduledForRemovalNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalPaymentMethodScheduledForRemovalNotificationRequest.get().getType())) { - // found matching event type - return optionalPaymentMethodScheduledForRemovalNotificationRequest; - } - } + return Optional.empty(); + } + + /** + * Attempts to deserialize the webhook payload into a + * PaymentMethodScheduledForRemovalNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional + getPaymentMethodScheduledForRemovalNotificationRequest() { + + var optionalPaymentMethodScheduledForRemovalNotificationRequest = + getOptionalField(PaymentMethodScheduledForRemovalNotificationRequest.class); + + if (optionalPaymentMethodScheduledForRemovalNotificationRequest.isPresent()) { + // verify event type + for (var value : PaymentMethodScheduledForRemovalNotificationRequest.TypeEnum.values()) { + if (value.equals( + optionalPaymentMethodScheduledForRemovalNotificationRequest.get().getType())) { + // found matching event type + return optionalPaymentMethodScheduledForRemovalNotificationRequest; } - - return Optional.empty(); + } } - /** - * Attempts to deserialize the webhook payload into a TerminalBoardingNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getTerminalBoardingNotificationRequest() { - - var optionalTerminalBoardingNotificationRequest = getOptionalField(TerminalBoardingNotificationRequest.class); - - if(optionalTerminalBoardingNotificationRequest.isPresent()) { - // verify event type - for (var value : TerminalBoardingNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalTerminalBoardingNotificationRequest.get().getType())) { - // found matching event type - return optionalTerminalBoardingNotificationRequest; - } - } + return Optional.empty(); + } + + /** + * Attempts to deserialize the webhook payload into a TerminalBoardingNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getTerminalBoardingNotificationRequest() { + + var optionalTerminalBoardingNotificationRequest = + getOptionalField(TerminalBoardingNotificationRequest.class); + + if (optionalTerminalBoardingNotificationRequest.isPresent()) { + // verify event type + for (var value : TerminalBoardingNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalTerminalBoardingNotificationRequest.get().getType())) { + // found matching event type + return optionalTerminalBoardingNotificationRequest; } - - return Optional.empty(); + } } - /** - * Attempts to deserialize the webhook payload into a TerminalSettingsNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getTerminalSettingsNotificationRequest() { - - var optionalTerminalSettingsNotificationRequest = getOptionalField(TerminalSettingsNotificationRequest.class); - - if(optionalTerminalSettingsNotificationRequest.isPresent()) { - // verify event type - for (var value : TerminalSettingsNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalTerminalSettingsNotificationRequest.get().getType())) { - // found matching event type - return optionalTerminalSettingsNotificationRequest; - } - } + return Optional.empty(); + } + + /** + * Attempts to deserialize the webhook payload into a TerminalSettingsNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getTerminalSettingsNotificationRequest() { + + var optionalTerminalSettingsNotificationRequest = + getOptionalField(TerminalSettingsNotificationRequest.class); + + if (optionalTerminalSettingsNotificationRequest.isPresent()) { + // verify event type + for (var value : TerminalSettingsNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalTerminalSettingsNotificationRequest.get().getType())) { + // found matching event type + return optionalTerminalSettingsNotificationRequest; } - - return Optional.empty(); + } } - /** - * Deserializes the payload into the specified class type. - * - * @param clazz the class to deserialize into - * @param the type of the class - * @return an Optional containing the deserialized object, or empty if an error occurs - */ - private Optional getOptionalField(Class clazz) { - try { - T val = JSON.getMapper().readValue(payload, clazz); - return Optional.ofNullable(val); - } catch (Exception e) { - // an error has occurred during deserialization (object not found, deserialization error) - LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); - LOG.warning("Deserialization error: " + e.getMessage()); - return Optional.empty(); - } + return Optional.empty(); + } + + /** + * Deserializes the payload into the specified class type. + * + * @param clazz the class to deserialize into + * @param the type of the class + * @return an Optional containing the deserialized object, or empty if an error occurs + */ + private Optional getOptionalField(Class clazz) { + try { + T val = JSON.getMapper().readValue(payload, clazz); + return Optional.ofNullable(val); + } catch (Exception e) { + // an error has occurred during deserialization (object not found, deserialization error) + LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); + LOG.warning("Deserialization error: " + e.getMessage()); + return Optional.empty(); } - -} \ No newline at end of file + } +} diff --git a/src/main/java/com/adyen/model/managementwebhooks/MerchantCreatedNotificationRequest.java b/src/main/java/com/adyen/model/managementwebhooks/MerchantCreatedNotificationRequest.java index 2648ff6d5..aa8536e88 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/MerchantCreatedNotificationRequest.java +++ b/src/main/java/com/adyen/model/managementwebhooks/MerchantCreatedNotificationRequest.java @@ -2,40 +2,33 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.managementwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.managementwebhooks.AccountCreateNotificationData; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * MerchantCreatedNotificationRequest - */ +/** MerchantCreatedNotificationRequest */ @JsonPropertyOrder({ MerchantCreatedNotificationRequest.JSON_PROPERTY_CREATED_AT, MerchantCreatedNotificationRequest.JSON_PROPERTY_DATA, MerchantCreatedNotificationRequest.JSON_PROPERTY_ENVIRONMENT, MerchantCreatedNotificationRequest.JSON_PROPERTY_TYPE }) - public class MerchantCreatedNotificationRequest { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -46,11 +39,8 @@ public class MerchantCreatedNotificationRequest { public static final String JSON_PROPERTY_ENVIRONMENT = "environment"; private String environment; - /** - * Type of notification. - */ + /** Type of notification. */ public enum TypeEnum { - MERCHANT_CREATED(String.valueOf("merchant.created")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -58,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -79,7 +69,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -87,14 +81,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public MerchantCreatedNotificationRequest() { - } + public MerchantCreatedNotificationRequest() {} /** * Timestamp for when the webhook was created. * * @param createdAt Timestamp for when the webhook was created. - * @return the current {@code MerchantCreatedNotificationRequest} instance, allowing for method chaining + * @return the current {@code MerchantCreatedNotificationRequest} instance, allowing for method + * chaining */ public MerchantCreatedNotificationRequest createdAt(OffsetDateTime createdAt) { this.createdAt = createdAt; @@ -103,6 +97,7 @@ public MerchantCreatedNotificationRequest createdAt(OffsetDateTime createdAt) { /** * Timestamp for when the webhook was created. + * * @return createdAt Timestamp for when the webhook was created. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @@ -125,8 +120,9 @@ public void setCreatedAt(OffsetDateTime createdAt) { /** * data * - * @param data - * @return the current {@code MerchantCreatedNotificationRequest} instance, allowing for method chaining + * @param data + * @return the current {@code MerchantCreatedNotificationRequest} instance, allowing for method + * chaining */ public MerchantCreatedNotificationRequest data(AccountCreateNotificationData data) { this.data = data; @@ -135,7 +131,8 @@ public MerchantCreatedNotificationRequest data(AccountCreateNotificationData dat /** * Get data - * @return data + * + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,7 +143,7 @@ public AccountCreateNotificationData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -155,10 +152,12 @@ public void setData(AccountCreateNotificationData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. - * @return the current {@code MerchantCreatedNotificationRequest} instance, allowing for method chaining + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. + * @return the current {@code MerchantCreatedNotificationRequest} instance, allowing for method + * chaining */ public MerchantCreatedNotificationRequest environment(String environment) { this.environment = environment; @@ -166,8 +165,10 @@ public MerchantCreatedNotificationRequest environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * + * @return environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,9 +177,10 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,7 +192,8 @@ public void setEnvironment(String environment) { * Type of notification. * * @param type Type of notification. - * @return the current {@code MerchantCreatedNotificationRequest} instance, allowing for method chaining + * @return the current {@code MerchantCreatedNotificationRequest} instance, allowing for method + * chaining */ public MerchantCreatedNotificationRequest type(TypeEnum type) { this.type = type; @@ -199,6 +202,7 @@ public MerchantCreatedNotificationRequest type(TypeEnum type) { /** * Type of notification. + * * @return type Type of notification. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -218,9 +222,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this MerchantCreatedNotificationRequest object is equal to o. - */ + /** Return true if this MerchantCreatedNotificationRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -229,11 +231,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - MerchantCreatedNotificationRequest merchantCreatedNotificationRequest = (MerchantCreatedNotificationRequest) o; - return Objects.equals(this.createdAt, merchantCreatedNotificationRequest.createdAt) && - Objects.equals(this.data, merchantCreatedNotificationRequest.data) && - Objects.equals(this.environment, merchantCreatedNotificationRequest.environment) && - Objects.equals(this.type, merchantCreatedNotificationRequest.type); + MerchantCreatedNotificationRequest merchantCreatedNotificationRequest = + (MerchantCreatedNotificationRequest) o; + return Objects.equals(this.createdAt, merchantCreatedNotificationRequest.createdAt) + && Objects.equals(this.data, merchantCreatedNotificationRequest.data) + && Objects.equals(this.environment, merchantCreatedNotificationRequest.environment) + && Objects.equals(this.type, merchantCreatedNotificationRequest.type); } @Override @@ -254,8 +257,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -264,21 +266,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of MerchantCreatedNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of MerchantCreatedNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to MerchantCreatedNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * MerchantCreatedNotificationRequest */ - public static MerchantCreatedNotificationRequest fromJson(String jsonString) throws JsonProcessingException { + public static MerchantCreatedNotificationRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MerchantCreatedNotificationRequest.class); } -/** - * Convert an instance of MerchantCreatedNotificationRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of MerchantCreatedNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/MerchantUpdatedNotificationRequest.java b/src/main/java/com/adyen/model/managementwebhooks/MerchantUpdatedNotificationRequest.java index 6e07d2ffd..0e8404f70 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/MerchantUpdatedNotificationRequest.java +++ b/src/main/java/com/adyen/model/managementwebhooks/MerchantUpdatedNotificationRequest.java @@ -2,40 +2,33 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.managementwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.managementwebhooks.AccountUpdateNotificationData; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * MerchantUpdatedNotificationRequest - */ +/** MerchantUpdatedNotificationRequest */ @JsonPropertyOrder({ MerchantUpdatedNotificationRequest.JSON_PROPERTY_CREATED_AT, MerchantUpdatedNotificationRequest.JSON_PROPERTY_DATA, MerchantUpdatedNotificationRequest.JSON_PROPERTY_ENVIRONMENT, MerchantUpdatedNotificationRequest.JSON_PROPERTY_TYPE }) - public class MerchantUpdatedNotificationRequest { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -46,11 +39,8 @@ public class MerchantUpdatedNotificationRequest { public static final String JSON_PROPERTY_ENVIRONMENT = "environment"; private String environment; - /** - * Type of notification. - */ + /** Type of notification. */ public enum TypeEnum { - MERCHANT_UPDATED(String.valueOf("merchant.updated")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -58,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -79,7 +69,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -87,14 +81,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public MerchantUpdatedNotificationRequest() { - } + public MerchantUpdatedNotificationRequest() {} /** * Timestamp for when the webhook was created. * * @param createdAt Timestamp for when the webhook was created. - * @return the current {@code MerchantUpdatedNotificationRequest} instance, allowing for method chaining + * @return the current {@code MerchantUpdatedNotificationRequest} instance, allowing for method + * chaining */ public MerchantUpdatedNotificationRequest createdAt(OffsetDateTime createdAt) { this.createdAt = createdAt; @@ -103,6 +97,7 @@ public MerchantUpdatedNotificationRequest createdAt(OffsetDateTime createdAt) { /** * Timestamp for when the webhook was created. + * * @return createdAt Timestamp for when the webhook was created. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @@ -125,8 +120,9 @@ public void setCreatedAt(OffsetDateTime createdAt) { /** * data * - * @param data - * @return the current {@code MerchantUpdatedNotificationRequest} instance, allowing for method chaining + * @param data + * @return the current {@code MerchantUpdatedNotificationRequest} instance, allowing for method + * chaining */ public MerchantUpdatedNotificationRequest data(AccountUpdateNotificationData data) { this.data = data; @@ -135,7 +131,8 @@ public MerchantUpdatedNotificationRequest data(AccountUpdateNotificationData dat /** * Get data - * @return data + * + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,7 +143,7 @@ public AccountUpdateNotificationData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -155,10 +152,12 @@ public void setData(AccountUpdateNotificationData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. - * @return the current {@code MerchantUpdatedNotificationRequest} instance, allowing for method chaining + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. + * @return the current {@code MerchantUpdatedNotificationRequest} instance, allowing for method + * chaining */ public MerchantUpdatedNotificationRequest environment(String environment) { this.environment = environment; @@ -166,8 +165,10 @@ public MerchantUpdatedNotificationRequest environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * + * @return environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,9 +177,10 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,7 +192,8 @@ public void setEnvironment(String environment) { * Type of notification. * * @param type Type of notification. - * @return the current {@code MerchantUpdatedNotificationRequest} instance, allowing for method chaining + * @return the current {@code MerchantUpdatedNotificationRequest} instance, allowing for method + * chaining */ public MerchantUpdatedNotificationRequest type(TypeEnum type) { this.type = type; @@ -199,6 +202,7 @@ public MerchantUpdatedNotificationRequest type(TypeEnum type) { /** * Type of notification. + * * @return type Type of notification. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -218,9 +222,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this MerchantUpdatedNotificationRequest object is equal to o. - */ + /** Return true if this MerchantUpdatedNotificationRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -229,11 +231,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - MerchantUpdatedNotificationRequest merchantUpdatedNotificationRequest = (MerchantUpdatedNotificationRequest) o; - return Objects.equals(this.createdAt, merchantUpdatedNotificationRequest.createdAt) && - Objects.equals(this.data, merchantUpdatedNotificationRequest.data) && - Objects.equals(this.environment, merchantUpdatedNotificationRequest.environment) && - Objects.equals(this.type, merchantUpdatedNotificationRequest.type); + MerchantUpdatedNotificationRequest merchantUpdatedNotificationRequest = + (MerchantUpdatedNotificationRequest) o; + return Objects.equals(this.createdAt, merchantUpdatedNotificationRequest.createdAt) + && Objects.equals(this.data, merchantUpdatedNotificationRequest.data) + && Objects.equals(this.environment, merchantUpdatedNotificationRequest.environment) + && Objects.equals(this.type, merchantUpdatedNotificationRequest.type); } @Override @@ -254,8 +257,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -264,21 +266,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of MerchantUpdatedNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of MerchantUpdatedNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to MerchantUpdatedNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * MerchantUpdatedNotificationRequest */ - public static MerchantUpdatedNotificationRequest fromJson(String jsonString) throws JsonProcessingException { + public static MerchantUpdatedNotificationRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MerchantUpdatedNotificationRequest.class); } -/** - * Convert an instance of MerchantUpdatedNotificationRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of MerchantUpdatedNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/MidServiceNotificationData.java b/src/main/java/com/adyen/model/managementwebhooks/MidServiceNotificationData.java index 9f4280232..ed4003593 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/MidServiceNotificationData.java +++ b/src/main/java/com/adyen/model/managementwebhooks/MidServiceNotificationData.java @@ -2,31 +2,26 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.managementwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * MidServiceNotificationData - */ +/** MidServiceNotificationData */ @JsonPropertyOrder({ MidServiceNotificationData.JSON_PROPERTY_ALLOWED, MidServiceNotificationData.JSON_PROPERTY_ENABLED, @@ -38,7 +33,6 @@ MidServiceNotificationData.JSON_PROPERTY_TYPE, MidServiceNotificationData.JSON_PROPERTY_VERIFICATION_STATUS }) - public class MidServiceNotificationData { public static final String JSON_PROPERTY_ALLOWED = "allowed"; private Boolean allowed; @@ -56,10 +50,11 @@ public class MidServiceNotificationData { private String reference; /** - * The status of the request to add a payment method. Possible values: * **success**: the payment method was added. * **failure**: the request failed. * **capabilityPending**: the **receivePayments** capability is not allowed. + * The status of the request to add a payment method. Possible values: * **success**: the payment + * method was added. * **failure**: the request failed. * **capabilityPending**: the + * **receivePayments** capability is not allowed. */ public enum StatusEnum { - SUCCESS(String.valueOf("success")), FAILURE(String.valueOf("failure")), @@ -75,7 +70,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -96,7 +91,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -114,7 +113,6 @@ public static StatusEnum fromValue(String value) { * Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** */ public enum VerificationStatusEnum { - VALID(String.valueOf("valid")), PENDING(String.valueOf("pending")), @@ -128,7 +126,7 @@ public enum VerificationStatusEnum { private String value; VerificationStatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -149,7 +147,11 @@ public static VerificationStatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("VerificationStatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(VerificationStatusEnum.values())); + LOG.warning( + "VerificationStatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(VerificationStatusEnum.values())); return null; } } @@ -157,13 +159,14 @@ public static VerificationStatusEnum fromValue(String value) { public static final String JSON_PROPERTY_VERIFICATION_STATUS = "verificationStatus"; private VerificationStatusEnum verificationStatus; - public MidServiceNotificationData() { - } + public MidServiceNotificationData() {} /** - * Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account. + * Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after + * screening your merchant account. * - * @param allowed Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account. + * @param allowed Indicates whether receiving payments is allowed. This value is set to **true** + * by Adyen after screening your merchant account. * @return the current {@code MidServiceNotificationData} instance, allowing for method chaining */ public MidServiceNotificationData allowed(Boolean allowed) { @@ -172,8 +175,11 @@ public MidServiceNotificationData allowed(Boolean allowed) { } /** - * Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account. - * @return allowed Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account. + * Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after + * screening your merchant account. + * + * @return allowed Indicates whether receiving payments is allowed. This value is set to **true** + * by Adyen after screening your merchant account. */ @JsonProperty(JSON_PROPERTY_ALLOWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,9 +188,11 @@ public Boolean getAllowed() { } /** - * Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account. + * Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after + * screening your merchant account. * - * @param allowed Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account. + * @param allowed Indicates whether receiving payments is allowed. This value is set to **true** + * by Adyen after screening your merchant account. */ @JsonProperty(JSON_PROPERTY_ALLOWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,7 +203,8 @@ public void setAllowed(Boolean allowed) { /** * Indicates whether the payment method is enabled (**true**) or disabled (**false**). * - * @param enabled Indicates whether the payment method is enabled (**true**) or disabled (**false**). + * @param enabled Indicates whether the payment method is enabled (**true**) or disabled + * (**false**). * @return the current {@code MidServiceNotificationData} instance, allowing for method chaining */ public MidServiceNotificationData enabled(Boolean enabled) { @@ -205,7 +214,9 @@ public MidServiceNotificationData enabled(Boolean enabled) { /** * Indicates whether the payment method is enabled (**true**) or disabled (**false**). - * @return enabled Indicates whether the payment method is enabled (**true**) or disabled (**false**). + * + * @return enabled Indicates whether the payment method is enabled (**true**) or disabled + * (**false**). */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -216,7 +227,8 @@ public Boolean getEnabled() { /** * Indicates whether the payment method is enabled (**true**) or disabled (**false**). * - * @param enabled Indicates whether the payment method is enabled (**true**) or disabled (**false**). + * @param enabled Indicates whether the payment method is enabled (**true**) or disabled + * (**false**). */ @JsonProperty(JSON_PROPERTY_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,6 +249,7 @@ public MidServiceNotificationData id(String id) { /** * The unique identifier of the resource. + * * @return id The unique identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -269,6 +282,7 @@ public MidServiceNotificationData merchantId(String merchantId) { /** * The unique identifier of the merchant account. + * * @return merchantId The unique identifier of the merchant account. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @@ -301,6 +315,7 @@ public MidServiceNotificationData reference(String reference) { /** * Your reference for the payment method. + * * @return reference Your reference for the payment method. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -321,9 +336,13 @@ public void setReference(String reference) { } /** - * The status of the request to add a payment method. Possible values: * **success**: the payment method was added. * **failure**: the request failed. * **capabilityPending**: the **receivePayments** capability is not allowed. + * The status of the request to add a payment method. Possible values: * **success**: the payment + * method was added. * **failure**: the request failed. * **capabilityPending**: the + * **receivePayments** capability is not allowed. * - * @param status The status of the request to add a payment method. Possible values: * **success**: the payment method was added. * **failure**: the request failed. * **capabilityPending**: the **receivePayments** capability is not allowed. + * @param status The status of the request to add a payment method. Possible values: * + * **success**: the payment method was added. * **failure**: the request failed. * + * **capabilityPending**: the **receivePayments** capability is not allowed. * @return the current {@code MidServiceNotificationData} instance, allowing for method chaining */ public MidServiceNotificationData status(StatusEnum status) { @@ -332,8 +351,13 @@ public MidServiceNotificationData status(StatusEnum status) { } /** - * The status of the request to add a payment method. Possible values: * **success**: the payment method was added. * **failure**: the request failed. * **capabilityPending**: the **receivePayments** capability is not allowed. - * @return status The status of the request to add a payment method. Possible values: * **success**: the payment method was added. * **failure**: the request failed. * **capabilityPending**: the **receivePayments** capability is not allowed. + * The status of the request to add a payment method. Possible values: * **success**: the payment + * method was added. * **failure**: the request failed. * **capabilityPending**: the + * **receivePayments** capability is not allowed. + * + * @return status The status of the request to add a payment method. Possible values: * + * **success**: the payment method was added. * **failure**: the request failed. * + * **capabilityPending**: the **receivePayments** capability is not allowed. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -342,9 +366,13 @@ public StatusEnum getStatus() { } /** - * The status of the request to add a payment method. Possible values: * **success**: the payment method was added. * **failure**: the request failed. * **capabilityPending**: the **receivePayments** capability is not allowed. + * The status of the request to add a payment method. Possible values: * **success**: the payment + * method was added. * **failure**: the request failed. * **capabilityPending**: the + * **receivePayments** capability is not allowed. * - * @param status The status of the request to add a payment method. Possible values: * **success**: the payment method was added. * **failure**: the request failed. * **capabilityPending**: the **receivePayments** capability is not allowed. + * @param status The status of the request to add a payment method. Possible values: * + * **success**: the payment method was added. * **failure**: the request failed. * + * **capabilityPending**: the **receivePayments** capability is not allowed. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -353,9 +381,13 @@ public void setStatus(StatusEnum status) { } /** - * The unique identifier of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/merchants/{id}/paymentMethodSettings__reqParam_storeId), if any. + * The unique identifier of the + * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/merchants/{id}/paymentMethodSettings__reqParam_storeId), + * if any. * - * @param storeId The unique identifier of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/merchants/{id}/paymentMethodSettings__reqParam_storeId), if any. + * @param storeId The unique identifier of the + * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/merchants/{id}/paymentMethodSettings__reqParam_storeId), + * if any. * @return the current {@code MidServiceNotificationData} instance, allowing for method chaining */ public MidServiceNotificationData storeId(String storeId) { @@ -364,8 +396,13 @@ public MidServiceNotificationData storeId(String storeId) { } /** - * The unique identifier of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/merchants/{id}/paymentMethodSettings__reqParam_storeId), if any. - * @return storeId The unique identifier of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/merchants/{id}/paymentMethodSettings__reqParam_storeId), if any. + * The unique identifier of the + * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/merchants/{id}/paymentMethodSettings__reqParam_storeId), + * if any. + * + * @return storeId The unique identifier of the + * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/merchants/{id}/paymentMethodSettings__reqParam_storeId), + * if any. */ @JsonProperty(JSON_PROPERTY_STORE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -374,9 +411,13 @@ public String getStoreId() { } /** - * The unique identifier of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/merchants/{id}/paymentMethodSettings__reqParam_storeId), if any. + * The unique identifier of the + * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/merchants/{id}/paymentMethodSettings__reqParam_storeId), + * if any. * - * @param storeId The unique identifier of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/merchants/{id}/paymentMethodSettings__reqParam_storeId), if any. + * @param storeId The unique identifier of the + * [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/merchants/{id}/paymentMethodSettings__reqParam_storeId), + * if any. */ @JsonProperty(JSON_PROPERTY_STORE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -385,9 +426,11 @@ public void setStoreId(String storeId) { } /** - * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * Payment method + * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). * - * @param type Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * @param type Payment method + * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). * @return the current {@code MidServiceNotificationData} instance, allowing for method chaining */ public MidServiceNotificationData type(String type) { @@ -396,8 +439,11 @@ public MidServiceNotificationData type(String type) { } /** - * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). - * @return type Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * Payment method + * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * + * @return type Payment method + * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -406,9 +452,11 @@ public String getType() { } /** - * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * Payment method + * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). * - * @param type Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + * @param type Payment method + * [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -419,7 +467,8 @@ public void setType(String type) { /** * Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** * - * @param verificationStatus Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** + * @param verificationStatus Payment method status. Possible values: * **valid** * **pending** * + * **invalid** * **rejected** * @return the current {@code MidServiceNotificationData} instance, allowing for method chaining */ public MidServiceNotificationData verificationStatus(VerificationStatusEnum verificationStatus) { @@ -429,7 +478,9 @@ public MidServiceNotificationData verificationStatus(VerificationStatusEnum veri /** * Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** - * @return verificationStatus Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** + * + * @return verificationStatus Payment method status. Possible values: * **valid** * **pending** * + * **invalid** * **rejected** */ @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -440,7 +491,8 @@ public VerificationStatusEnum getVerificationStatus() { /** * Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** * - * @param verificationStatus Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** + * @param verificationStatus Payment method status. Possible values: * **valid** * **pending** * + * **invalid** * **rejected** */ @JsonProperty(JSON_PROPERTY_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -448,9 +500,7 @@ public void setVerificationStatus(VerificationStatusEnum verificationStatus) { this.verificationStatus = verificationStatus; } - /** - * Return true if this MidServiceNotificationData object is equal to o. - */ + /** Return true if this MidServiceNotificationData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -460,20 +510,21 @@ public boolean equals(Object o) { return false; } MidServiceNotificationData midServiceNotificationData = (MidServiceNotificationData) o; - return Objects.equals(this.allowed, midServiceNotificationData.allowed) && - Objects.equals(this.enabled, midServiceNotificationData.enabled) && - Objects.equals(this.id, midServiceNotificationData.id) && - Objects.equals(this.merchantId, midServiceNotificationData.merchantId) && - Objects.equals(this.reference, midServiceNotificationData.reference) && - Objects.equals(this.status, midServiceNotificationData.status) && - Objects.equals(this.storeId, midServiceNotificationData.storeId) && - Objects.equals(this.type, midServiceNotificationData.type) && - Objects.equals(this.verificationStatus, midServiceNotificationData.verificationStatus); + return Objects.equals(this.allowed, midServiceNotificationData.allowed) + && Objects.equals(this.enabled, midServiceNotificationData.enabled) + && Objects.equals(this.id, midServiceNotificationData.id) + && Objects.equals(this.merchantId, midServiceNotificationData.merchantId) + && Objects.equals(this.reference, midServiceNotificationData.reference) + && Objects.equals(this.status, midServiceNotificationData.status) + && Objects.equals(this.storeId, midServiceNotificationData.storeId) + && Objects.equals(this.type, midServiceNotificationData.type) + && Objects.equals(this.verificationStatus, midServiceNotificationData.verificationStatus); } @Override public int hashCode() { - return Objects.hash(allowed, enabled, id, merchantId, reference, status, storeId, type, verificationStatus); + return Objects.hash( + allowed, enabled, id, merchantId, reference, status, storeId, type, verificationStatus); } @Override @@ -494,8 +545,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -504,21 +554,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of MidServiceNotificationData given an JSON string * * @param jsonString JSON string * @return An instance of MidServiceNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to MidServiceNotificationData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * MidServiceNotificationData */ - public static MidServiceNotificationData fromJson(String jsonString) throws JsonProcessingException { + public static MidServiceNotificationData fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MidServiceNotificationData.class); } -/** - * Convert an instance of MidServiceNotificationData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of MidServiceNotificationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodCreatedNotificationRequest.java b/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodCreatedNotificationRequest.java index 2734a2b9b..280047e23 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodCreatedNotificationRequest.java +++ b/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodCreatedNotificationRequest.java @@ -2,40 +2,33 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.managementwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.managementwebhooks.MidServiceNotificationData; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * PaymentMethodCreatedNotificationRequest - */ +/** PaymentMethodCreatedNotificationRequest */ @JsonPropertyOrder({ PaymentMethodCreatedNotificationRequest.JSON_PROPERTY_CREATED_AT, PaymentMethodCreatedNotificationRequest.JSON_PROPERTY_DATA, PaymentMethodCreatedNotificationRequest.JSON_PROPERTY_ENVIRONMENT, PaymentMethodCreatedNotificationRequest.JSON_PROPERTY_TYPE }) - public class PaymentMethodCreatedNotificationRequest { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -46,11 +39,8 @@ public class PaymentMethodCreatedNotificationRequest { public static final String JSON_PROPERTY_ENVIRONMENT = "environment"; private String environment; - /** - * Type of notification. - */ + /** Type of notification. */ public enum TypeEnum { - PAYMENTMETHOD_CREATED(String.valueOf("paymentMethod.created")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -58,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -79,7 +69,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -87,14 +81,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PaymentMethodCreatedNotificationRequest() { - } + public PaymentMethodCreatedNotificationRequest() {} /** * Timestamp for when the webhook was created. * * @param createdAt Timestamp for when the webhook was created. - * @return the current {@code PaymentMethodCreatedNotificationRequest} instance, allowing for method chaining + * @return the current {@code PaymentMethodCreatedNotificationRequest} instance, allowing for + * method chaining */ public PaymentMethodCreatedNotificationRequest createdAt(OffsetDateTime createdAt) { this.createdAt = createdAt; @@ -103,6 +97,7 @@ public PaymentMethodCreatedNotificationRequest createdAt(OffsetDateTime createdA /** * Timestamp for when the webhook was created. + * * @return createdAt Timestamp for when the webhook was created. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @@ -125,8 +120,9 @@ public void setCreatedAt(OffsetDateTime createdAt) { /** * data * - * @param data - * @return the current {@code PaymentMethodCreatedNotificationRequest} instance, allowing for method chaining + * @param data + * @return the current {@code PaymentMethodCreatedNotificationRequest} instance, allowing for + * method chaining */ public PaymentMethodCreatedNotificationRequest data(MidServiceNotificationData data) { this.data = data; @@ -135,7 +131,8 @@ public PaymentMethodCreatedNotificationRequest data(MidServiceNotificationData d /** * Get data - * @return data + * + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,7 +143,7 @@ public MidServiceNotificationData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -155,10 +152,12 @@ public void setData(MidServiceNotificationData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. - * @return the current {@code PaymentMethodCreatedNotificationRequest} instance, allowing for method chaining + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. + * @return the current {@code PaymentMethodCreatedNotificationRequest} instance, allowing for + * method chaining */ public PaymentMethodCreatedNotificationRequest environment(String environment) { this.environment = environment; @@ -166,8 +165,10 @@ public PaymentMethodCreatedNotificationRequest environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * + * @return environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,9 +177,10 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,7 +192,8 @@ public void setEnvironment(String environment) { * Type of notification. * * @param type Type of notification. - * @return the current {@code PaymentMethodCreatedNotificationRequest} instance, allowing for method chaining + * @return the current {@code PaymentMethodCreatedNotificationRequest} instance, allowing for + * method chaining */ public PaymentMethodCreatedNotificationRequest type(TypeEnum type) { this.type = type; @@ -199,6 +202,7 @@ public PaymentMethodCreatedNotificationRequest type(TypeEnum type) { /** * Type of notification. + * * @return type Type of notification. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -218,9 +222,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this PaymentMethodCreatedNotificationRequest object is equal to o. - */ + /** Return true if this PaymentMethodCreatedNotificationRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -229,11 +231,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaymentMethodCreatedNotificationRequest paymentMethodCreatedNotificationRequest = (PaymentMethodCreatedNotificationRequest) o; - return Objects.equals(this.createdAt, paymentMethodCreatedNotificationRequest.createdAt) && - Objects.equals(this.data, paymentMethodCreatedNotificationRequest.data) && - Objects.equals(this.environment, paymentMethodCreatedNotificationRequest.environment) && - Objects.equals(this.type, paymentMethodCreatedNotificationRequest.type); + PaymentMethodCreatedNotificationRequest paymentMethodCreatedNotificationRequest = + (PaymentMethodCreatedNotificationRequest) o; + return Objects.equals(this.createdAt, paymentMethodCreatedNotificationRequest.createdAt) + && Objects.equals(this.data, paymentMethodCreatedNotificationRequest.data) + && Objects.equals(this.environment, paymentMethodCreatedNotificationRequest.environment) + && Objects.equals(this.type, paymentMethodCreatedNotificationRequest.type); } @Override @@ -254,8 +257,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -264,21 +266,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentMethodCreatedNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of PaymentMethodCreatedNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethodCreatedNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentMethodCreatedNotificationRequest */ - public static PaymentMethodCreatedNotificationRequest fromJson(String jsonString) throws JsonProcessingException { + public static PaymentMethodCreatedNotificationRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentMethodCreatedNotificationRequest.class); } -/** - * Convert an instance of PaymentMethodCreatedNotificationRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentMethodCreatedNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodNotificationResponse.java b/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodNotificationResponse.java index 82886bf83..05eadf327 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodNotificationResponse.java +++ b/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodNotificationResponse.java @@ -2,47 +2,37 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.managementwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * PaymentMethodNotificationResponse - */ -@JsonPropertyOrder({ - PaymentMethodNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE -}) - +/** PaymentMethodNotificationResponse */ +@JsonPropertyOrder({PaymentMethodNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) public class PaymentMethodNotificationResponse { public static final String JSON_PROPERTY_NOTIFICATION_RESPONSE = "notificationResponse"; private String notificationResponse; - public PaymentMethodNotificationResponse() { - } + public PaymentMethodNotificationResponse() {} /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return the current {@code PaymentMethodNotificationResponse} instance, allowing for method chaining + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return the current {@code PaymentMethodNotificationResponse} instance, allowing for method + * chaining */ public PaymentMethodNotificationResponse notificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; @@ -50,8 +40,11 @@ public PaymentMethodNotificationResponse notificationResponse(String notificatio } /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * + * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,9 +53,11 @@ public String getNotificationResponse() { } /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +65,7 @@ public void setNotificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; } - /** - * Return true if this PaymentMethodNotificationResponse object is equal to o. - */ + /** Return true if this PaymentMethodNotificationResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -81,8 +74,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaymentMethodNotificationResponse paymentMethodNotificationResponse = (PaymentMethodNotificationResponse) o; - return Objects.equals(this.notificationResponse, paymentMethodNotificationResponse.notificationResponse); + PaymentMethodNotificationResponse paymentMethodNotificationResponse = + (PaymentMethodNotificationResponse) o; + return Objects.equals( + this.notificationResponse, paymentMethodNotificationResponse.notificationResponse); } @Override @@ -94,14 +89,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentMethodNotificationResponse {\n"); - sb.append(" notificationResponse: ").append(toIndentedString(notificationResponse)).append("\n"); + sb.append(" notificationResponse: ") + .append(toIndentedString(notificationResponse)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +106,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentMethodNotificationResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaymentMethodNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethodNotificationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentMethodNotificationResponse */ - public static PaymentMethodNotificationResponse fromJson(String jsonString) throws JsonProcessingException { + public static PaymentMethodNotificationResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentMethodNotificationResponse.class); } -/** - * Convert an instance of PaymentMethodNotificationResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentMethodNotificationResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodRequestRemovedNotificationRequest.java b/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodRequestRemovedNotificationRequest.java index 71c8afd9b..3b5017488 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodRequestRemovedNotificationRequest.java +++ b/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodRequestRemovedNotificationRequest.java @@ -2,40 +2,33 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.managementwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.managementwebhooks.MidServiceNotificationData; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * PaymentMethodRequestRemovedNotificationRequest - */ +/** PaymentMethodRequestRemovedNotificationRequest */ @JsonPropertyOrder({ PaymentMethodRequestRemovedNotificationRequest.JSON_PROPERTY_CREATED_AT, PaymentMethodRequestRemovedNotificationRequest.JSON_PROPERTY_DATA, PaymentMethodRequestRemovedNotificationRequest.JSON_PROPERTY_ENVIRONMENT, PaymentMethodRequestRemovedNotificationRequest.JSON_PROPERTY_TYPE }) - public class PaymentMethodRequestRemovedNotificationRequest { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -46,11 +39,8 @@ public class PaymentMethodRequestRemovedNotificationRequest { public static final String JSON_PROPERTY_ENVIRONMENT = "environment"; private String environment; - /** - * Type of notification. - */ + /** Type of notification. */ public enum TypeEnum { - PAYMENTMETHODREQUEST_REMOVED(String.valueOf("paymentMethodRequest.removed")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -58,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -79,7 +69,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -87,14 +81,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PaymentMethodRequestRemovedNotificationRequest() { - } + public PaymentMethodRequestRemovedNotificationRequest() {} /** * Timestamp for when the webhook was created. * * @param createdAt Timestamp for when the webhook was created. - * @return the current {@code PaymentMethodRequestRemovedNotificationRequest} instance, allowing for method chaining + * @return the current {@code PaymentMethodRequestRemovedNotificationRequest} instance, allowing + * for method chaining */ public PaymentMethodRequestRemovedNotificationRequest createdAt(OffsetDateTime createdAt) { this.createdAt = createdAt; @@ -103,6 +97,7 @@ public PaymentMethodRequestRemovedNotificationRequest createdAt(OffsetDateTime c /** * Timestamp for when the webhook was created. + * * @return createdAt Timestamp for when the webhook was created. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @@ -125,8 +120,9 @@ public void setCreatedAt(OffsetDateTime createdAt) { /** * data * - * @param data - * @return the current {@code PaymentMethodRequestRemovedNotificationRequest} instance, allowing for method chaining + * @param data + * @return the current {@code PaymentMethodRequestRemovedNotificationRequest} instance, allowing + * for method chaining */ public PaymentMethodRequestRemovedNotificationRequest data(MidServiceNotificationData data) { this.data = data; @@ -135,7 +131,8 @@ public PaymentMethodRequestRemovedNotificationRequest data(MidServiceNotificatio /** * Get data - * @return data + * + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,7 +143,7 @@ public MidServiceNotificationData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -155,10 +152,12 @@ public void setData(MidServiceNotificationData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. - * @return the current {@code PaymentMethodRequestRemovedNotificationRequest} instance, allowing for method chaining + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. + * @return the current {@code PaymentMethodRequestRemovedNotificationRequest} instance, allowing + * for method chaining */ public PaymentMethodRequestRemovedNotificationRequest environment(String environment) { this.environment = environment; @@ -166,8 +165,10 @@ public PaymentMethodRequestRemovedNotificationRequest environment(String environ } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * + * @return environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,9 +177,10 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,7 +192,8 @@ public void setEnvironment(String environment) { * Type of notification. * * @param type Type of notification. - * @return the current {@code PaymentMethodRequestRemovedNotificationRequest} instance, allowing for method chaining + * @return the current {@code PaymentMethodRequestRemovedNotificationRequest} instance, allowing + * for method chaining */ public PaymentMethodRequestRemovedNotificationRequest type(TypeEnum type) { this.type = type; @@ -199,6 +202,7 @@ public PaymentMethodRequestRemovedNotificationRequest type(TypeEnum type) { /** * Type of notification. + * * @return type Type of notification. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -218,9 +222,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this PaymentMethodRequestRemovedNotificationRequest object is equal to o. - */ + /** Return true if this PaymentMethodRequestRemovedNotificationRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -229,11 +231,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaymentMethodRequestRemovedNotificationRequest paymentMethodRequestRemovedNotificationRequest = (PaymentMethodRequestRemovedNotificationRequest) o; - return Objects.equals(this.createdAt, paymentMethodRequestRemovedNotificationRequest.createdAt) && - Objects.equals(this.data, paymentMethodRequestRemovedNotificationRequest.data) && - Objects.equals(this.environment, paymentMethodRequestRemovedNotificationRequest.environment) && - Objects.equals(this.type, paymentMethodRequestRemovedNotificationRequest.type); + PaymentMethodRequestRemovedNotificationRequest paymentMethodRequestRemovedNotificationRequest = + (PaymentMethodRequestRemovedNotificationRequest) o; + return Objects.equals(this.createdAt, paymentMethodRequestRemovedNotificationRequest.createdAt) + && Objects.equals(this.data, paymentMethodRequestRemovedNotificationRequest.data) + && Objects.equals( + this.environment, paymentMethodRequestRemovedNotificationRequest.environment) + && Objects.equals(this.type, paymentMethodRequestRemovedNotificationRequest.type); } @Override @@ -254,8 +258,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -264,21 +267,25 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentMethodRequestRemovedNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of PaymentMethodRequestRemovedNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethodRequestRemovedNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentMethodRequestRemovedNotificationRequest */ - public static PaymentMethodRequestRemovedNotificationRequest fromJson(String jsonString) throws JsonProcessingException { - return JSON.getMapper().readValue(jsonString, PaymentMethodRequestRemovedNotificationRequest.class); + public static PaymentMethodRequestRemovedNotificationRequest fromJson(String jsonString) + throws JsonProcessingException { + return JSON.getMapper() + .readValue(jsonString, PaymentMethodRequestRemovedNotificationRequest.class); } -/** - * Convert an instance of PaymentMethodRequestRemovedNotificationRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentMethodRequestRemovedNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodScheduledForRemovalNotificationRequest.java b/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodScheduledForRemovalNotificationRequest.java index 248146d29..938a6b65d 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodScheduledForRemovalNotificationRequest.java +++ b/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodScheduledForRemovalNotificationRequest.java @@ -2,40 +2,33 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.managementwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.managementwebhooks.MidServiceNotificationData; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * PaymentMethodScheduledForRemovalNotificationRequest - */ +/** PaymentMethodScheduledForRemovalNotificationRequest */ @JsonPropertyOrder({ PaymentMethodScheduledForRemovalNotificationRequest.JSON_PROPERTY_CREATED_AT, PaymentMethodScheduledForRemovalNotificationRequest.JSON_PROPERTY_DATA, PaymentMethodScheduledForRemovalNotificationRequest.JSON_PROPERTY_ENVIRONMENT, PaymentMethodScheduledForRemovalNotificationRequest.JSON_PROPERTY_TYPE }) - public class PaymentMethodScheduledForRemovalNotificationRequest { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -46,19 +39,17 @@ public class PaymentMethodScheduledForRemovalNotificationRequest { public static final String JSON_PROPERTY_ENVIRONMENT = "environment"; private String environment; - /** - * Type of notification. - */ + /** Type of notification. */ public enum TypeEnum { - - PAYMENTMETHODREQUEST_SCHEDULEDFORREMOVAL(String.valueOf("paymentMethodRequest.scheduledForRemoval")); + PAYMENTMETHODREQUEST_SCHEDULEDFORREMOVAL( + String.valueOf("paymentMethodRequest.scheduledForRemoval")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -79,7 +70,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -87,14 +82,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PaymentMethodScheduledForRemovalNotificationRequest() { - } + public PaymentMethodScheduledForRemovalNotificationRequest() {} /** * Timestamp for when the webhook was created. * * @param createdAt Timestamp for when the webhook was created. - * @return the current {@code PaymentMethodScheduledForRemovalNotificationRequest} instance, allowing for method chaining + * @return the current {@code PaymentMethodScheduledForRemovalNotificationRequest} instance, + * allowing for method chaining */ public PaymentMethodScheduledForRemovalNotificationRequest createdAt(OffsetDateTime createdAt) { this.createdAt = createdAt; @@ -103,6 +98,7 @@ public PaymentMethodScheduledForRemovalNotificationRequest createdAt(OffsetDateT /** * Timestamp for when the webhook was created. + * * @return createdAt Timestamp for when the webhook was created. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @@ -125,8 +121,9 @@ public void setCreatedAt(OffsetDateTime createdAt) { /** * data * - * @param data - * @return the current {@code PaymentMethodScheduledForRemovalNotificationRequest} instance, allowing for method chaining + * @param data + * @return the current {@code PaymentMethodScheduledForRemovalNotificationRequest} instance, + * allowing for method chaining */ public PaymentMethodScheduledForRemovalNotificationRequest data(MidServiceNotificationData data) { this.data = data; @@ -135,7 +132,8 @@ public PaymentMethodScheduledForRemovalNotificationRequest data(MidServiceNotifi /** * Get data - * @return data + * + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,7 +144,7 @@ public MidServiceNotificationData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -155,10 +153,12 @@ public void setData(MidServiceNotificationData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. - * @return the current {@code PaymentMethodScheduledForRemovalNotificationRequest} instance, allowing for method chaining + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. + * @return the current {@code PaymentMethodScheduledForRemovalNotificationRequest} instance, + * allowing for method chaining */ public PaymentMethodScheduledForRemovalNotificationRequest environment(String environment) { this.environment = environment; @@ -166,8 +166,10 @@ public PaymentMethodScheduledForRemovalNotificationRequest environment(String en } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * + * @return environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,9 +178,10 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,7 +193,8 @@ public void setEnvironment(String environment) { * Type of notification. * * @param type Type of notification. - * @return the current {@code PaymentMethodScheduledForRemovalNotificationRequest} instance, allowing for method chaining + * @return the current {@code PaymentMethodScheduledForRemovalNotificationRequest} instance, + * allowing for method chaining */ public PaymentMethodScheduledForRemovalNotificationRequest type(TypeEnum type) { this.type = type; @@ -199,6 +203,7 @@ public PaymentMethodScheduledForRemovalNotificationRequest type(TypeEnum type) { /** * Type of notification. + * * @return type Type of notification. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -229,11 +234,15 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaymentMethodScheduledForRemovalNotificationRequest paymentMethodScheduledForRemovalNotificationRequest = (PaymentMethodScheduledForRemovalNotificationRequest) o; - return Objects.equals(this.createdAt, paymentMethodScheduledForRemovalNotificationRequest.createdAt) && - Objects.equals(this.data, paymentMethodScheduledForRemovalNotificationRequest.data) && - Objects.equals(this.environment, paymentMethodScheduledForRemovalNotificationRequest.environment) && - Objects.equals(this.type, paymentMethodScheduledForRemovalNotificationRequest.type); + PaymentMethodScheduledForRemovalNotificationRequest + paymentMethodScheduledForRemovalNotificationRequest = + (PaymentMethodScheduledForRemovalNotificationRequest) o; + return Objects.equals( + this.createdAt, paymentMethodScheduledForRemovalNotificationRequest.createdAt) + && Objects.equals(this.data, paymentMethodScheduledForRemovalNotificationRequest.data) + && Objects.equals( + this.environment, paymentMethodScheduledForRemovalNotificationRequest.environment) + && Objects.equals(this.type, paymentMethodScheduledForRemovalNotificationRequest.type); } @Override @@ -254,8 +263,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -264,21 +272,25 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentMethodScheduledForRemovalNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of PaymentMethodScheduledForRemovalNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethodScheduledForRemovalNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentMethodScheduledForRemovalNotificationRequest */ - public static PaymentMethodScheduledForRemovalNotificationRequest fromJson(String jsonString) throws JsonProcessingException { - return JSON.getMapper().readValue(jsonString, PaymentMethodScheduledForRemovalNotificationRequest.class); + public static PaymentMethodScheduledForRemovalNotificationRequest fromJson(String jsonString) + throws JsonProcessingException { + return JSON.getMapper() + .readValue(jsonString, PaymentMethodScheduledForRemovalNotificationRequest.class); } -/** - * Convert an instance of PaymentMethodScheduledForRemovalNotificationRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentMethodScheduledForRemovalNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/RemediatingAction.java b/src/main/java/com/adyen/model/managementwebhooks/RemediatingAction.java index 9531c8c58..87ac426e5 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/RemediatingAction.java +++ b/src/main/java/com/adyen/model/managementwebhooks/RemediatingAction.java @@ -2,36 +2,23 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.managementwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * RemediatingAction - */ -@JsonPropertyOrder({ - RemediatingAction.JSON_PROPERTY_CODE, - RemediatingAction.JSON_PROPERTY_MESSAGE -}) - +/** RemediatingAction */ +@JsonPropertyOrder({RemediatingAction.JSON_PROPERTY_CODE, RemediatingAction.JSON_PROPERTY_MESSAGE}) public class RemediatingAction { public static final String JSON_PROPERTY_CODE = "code"; private String code; @@ -39,8 +26,7 @@ public class RemediatingAction { public static final String JSON_PROPERTY_MESSAGE = "message"; private String message; - public RemediatingAction() { - } + public RemediatingAction() {} /** * The remediating action code. @@ -55,6 +41,7 @@ public RemediatingAction code(String code) { /** * The remediating action code. + * * @return code The remediating action code. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -87,6 +74,7 @@ public RemediatingAction message(String message) { /** * A description of how you can resolve the verification error. + * * @return message A description of how you can resolve the verification error. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -106,9 +94,7 @@ public void setMessage(String message) { this.message = message; } - /** - * Return true if this RemediatingAction object is equal to o. - */ + /** Return true if this RemediatingAction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +104,8 @@ public boolean equals(Object o) { return false; } RemediatingAction remediatingAction = (RemediatingAction) o; - return Objects.equals(this.code, remediatingAction.code) && - Objects.equals(this.message, remediatingAction.message); + return Objects.equals(this.code, remediatingAction.code) + && Objects.equals(this.message, remediatingAction.message); } @Override @@ -138,8 +124,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +133,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RemediatingAction given an JSON string * * @param jsonString JSON string @@ -158,11 +143,12 @@ private String toIndentedString(Object o) { public static RemediatingAction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RemediatingAction.class); } -/** - * Convert an instance of RemediatingAction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RemediatingAction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/TerminalAssignmentNotificationRequest.java b/src/main/java/com/adyen/model/managementwebhooks/TerminalAssignmentNotificationRequest.java index 6dd3fde2c..6f45bb4bd 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/TerminalAssignmentNotificationRequest.java +++ b/src/main/java/com/adyen/model/managementwebhooks/TerminalAssignmentNotificationRequest.java @@ -2,31 +2,22 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.managementwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TerminalAssignmentNotificationRequest - */ +/** TerminalAssignmentNotificationRequest */ @JsonPropertyOrder({ TerminalAssignmentNotificationRequest.JSON_PROPERTY_ASSIGNED_TO_ACCOUNT, TerminalAssignmentNotificationRequest.JSON_PROPERTY_ASSIGNED_TO_STORE, @@ -34,7 +25,6 @@ TerminalAssignmentNotificationRequest.JSON_PROPERTY_PSP_REFERENCE, TerminalAssignmentNotificationRequest.JSON_PROPERTY_UNIQUE_TERMINAL_ID }) - public class TerminalAssignmentNotificationRequest { public static final String JSON_PROPERTY_ASSIGNED_TO_ACCOUNT = "assignedToAccount"; private String assignedToAccount; @@ -51,14 +41,15 @@ public class TerminalAssignmentNotificationRequest { public static final String JSON_PROPERTY_UNIQUE_TERMINAL_ID = "uniqueTerminalId"; private String uniqueTerminalId; - public TerminalAssignmentNotificationRequest() { - } + public TerminalAssignmentNotificationRequest() {} /** * The unique identifier of the merchant/company account to which the terminal is assigned. * - * @param assignedToAccount The unique identifier of the merchant/company account to which the terminal is assigned. - * @return the current {@code TerminalAssignmentNotificationRequest} instance, allowing for method chaining + * @param assignedToAccount The unique identifier of the merchant/company account to which the + * terminal is assigned. + * @return the current {@code TerminalAssignmentNotificationRequest} instance, allowing for method + * chaining */ public TerminalAssignmentNotificationRequest assignedToAccount(String assignedToAccount) { this.assignedToAccount = assignedToAccount; @@ -67,7 +58,9 @@ public TerminalAssignmentNotificationRequest assignedToAccount(String assignedTo /** * The unique identifier of the merchant/company account to which the terminal is assigned. - * @return assignedToAccount The unique identifier of the merchant/company account to which the terminal is assigned. + * + * @return assignedToAccount The unique identifier of the merchant/company account to which the + * terminal is assigned. */ @JsonProperty(JSON_PROPERTY_ASSIGNED_TO_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -78,7 +71,8 @@ public String getAssignedToAccount() { /** * The unique identifier of the merchant/company account to which the terminal is assigned. * - * @param assignedToAccount The unique identifier of the merchant/company account to which the terminal is assigned. + * @param assignedToAccount The unique identifier of the merchant/company account to which the + * terminal is assigned. */ @JsonProperty(JSON_PROPERTY_ASSIGNED_TO_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -90,7 +84,8 @@ public void setAssignedToAccount(String assignedToAccount) { * The unique identifier of the store to which the terminal is assigned. * * @param assignedToStore The unique identifier of the store to which the terminal is assigned. - * @return the current {@code TerminalAssignmentNotificationRequest} instance, allowing for method chaining + * @return the current {@code TerminalAssignmentNotificationRequest} instance, allowing for method + * chaining */ public TerminalAssignmentNotificationRequest assignedToStore(String assignedToStore) { this.assignedToStore = assignedToStore; @@ -99,6 +94,7 @@ public TerminalAssignmentNotificationRequest assignedToStore(String assignedToSt /** * The unique identifier of the store to which the terminal is assigned. + * * @return assignedToStore The unique identifier of the store to which the terminal is assigned. */ @JsonProperty(JSON_PROPERTY_ASSIGNED_TO_STORE) @@ -122,7 +118,8 @@ public void setAssignedToStore(String assignedToStore) { * The date and time when an event has been completed. * * @param eventDate The date and time when an event has been completed. - * @return the current {@code TerminalAssignmentNotificationRequest} instance, allowing for method chaining + * @return the current {@code TerminalAssignmentNotificationRequest} instance, allowing for method + * chaining */ public TerminalAssignmentNotificationRequest eventDate(String eventDate) { this.eventDate = eventDate; @@ -131,6 +128,7 @@ public TerminalAssignmentNotificationRequest eventDate(String eventDate) { /** * The date and time when an event has been completed. + * * @return eventDate The date and time when an event has been completed. */ @JsonProperty(JSON_PROPERTY_EVENT_DATE) @@ -154,7 +152,8 @@ public void setEventDate(String eventDate) { * The PSP reference of the request from which the notification originates. * * @param pspReference The PSP reference of the request from which the notification originates. - * @return the current {@code TerminalAssignmentNotificationRequest} instance, allowing for method chaining + * @return the current {@code TerminalAssignmentNotificationRequest} instance, allowing for method + * chaining */ public TerminalAssignmentNotificationRequest pspReference(String pspReference) { this.pspReference = pspReference; @@ -163,6 +162,7 @@ public TerminalAssignmentNotificationRequest pspReference(String pspReference) { /** * The PSP reference of the request from which the notification originates. + * * @return pspReference The PSP reference of the request from which the notification originates. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -186,7 +186,8 @@ public void setPspReference(String pspReference) { * The unique identifier of the terminal. * * @param uniqueTerminalId The unique identifier of the terminal. - * @return the current {@code TerminalAssignmentNotificationRequest} instance, allowing for method chaining + * @return the current {@code TerminalAssignmentNotificationRequest} instance, allowing for method + * chaining */ public TerminalAssignmentNotificationRequest uniqueTerminalId(String uniqueTerminalId) { this.uniqueTerminalId = uniqueTerminalId; @@ -195,6 +196,7 @@ public TerminalAssignmentNotificationRequest uniqueTerminalId(String uniqueTermi /** * The unique identifier of the terminal. + * * @return uniqueTerminalId The unique identifier of the terminal. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @@ -214,9 +216,7 @@ public void setUniqueTerminalId(String uniqueTerminalId) { this.uniqueTerminalId = uniqueTerminalId; } - /** - * Return true if this TerminalAssignmentNotificationRequest object is equal to o. - */ + /** Return true if this TerminalAssignmentNotificationRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -225,17 +225,22 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TerminalAssignmentNotificationRequest terminalAssignmentNotificationRequest = (TerminalAssignmentNotificationRequest) o; - return Objects.equals(this.assignedToAccount, terminalAssignmentNotificationRequest.assignedToAccount) && - Objects.equals(this.assignedToStore, terminalAssignmentNotificationRequest.assignedToStore) && - Objects.equals(this.eventDate, terminalAssignmentNotificationRequest.eventDate) && - Objects.equals(this.pspReference, terminalAssignmentNotificationRequest.pspReference) && - Objects.equals(this.uniqueTerminalId, terminalAssignmentNotificationRequest.uniqueTerminalId); + TerminalAssignmentNotificationRequest terminalAssignmentNotificationRequest = + (TerminalAssignmentNotificationRequest) o; + return Objects.equals( + this.assignedToAccount, terminalAssignmentNotificationRequest.assignedToAccount) + && Objects.equals( + this.assignedToStore, terminalAssignmentNotificationRequest.assignedToStore) + && Objects.equals(this.eventDate, terminalAssignmentNotificationRequest.eventDate) + && Objects.equals(this.pspReference, terminalAssignmentNotificationRequest.pspReference) + && Objects.equals( + this.uniqueTerminalId, terminalAssignmentNotificationRequest.uniqueTerminalId); } @Override public int hashCode() { - return Objects.hash(assignedToAccount, assignedToStore, eventDate, pspReference, uniqueTerminalId); + return Objects.hash( + assignedToAccount, assignedToStore, eventDate, pspReference, uniqueTerminalId); } @Override @@ -252,8 +257,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -262,21 +266,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TerminalAssignmentNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of TerminalAssignmentNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalAssignmentNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TerminalAssignmentNotificationRequest */ - public static TerminalAssignmentNotificationRequest fromJson(String jsonString) throws JsonProcessingException { + public static TerminalAssignmentNotificationRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalAssignmentNotificationRequest.class); } -/** - * Convert an instance of TerminalAssignmentNotificationRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TerminalAssignmentNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/TerminalAssignmentNotificationResponse.java b/src/main/java/com/adyen/model/managementwebhooks/TerminalAssignmentNotificationResponse.java index 37e1650bd..bc39a097b 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/TerminalAssignmentNotificationResponse.java +++ b/src/main/java/com/adyen/model/managementwebhooks/TerminalAssignmentNotificationResponse.java @@ -2,47 +2,37 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.managementwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TerminalAssignmentNotificationResponse - */ -@JsonPropertyOrder({ - TerminalAssignmentNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE -}) - +/** TerminalAssignmentNotificationResponse */ +@JsonPropertyOrder({TerminalAssignmentNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) public class TerminalAssignmentNotificationResponse { public static final String JSON_PROPERTY_NOTIFICATION_RESPONSE = "notificationResponse"; private String notificationResponse; - public TerminalAssignmentNotificationResponse() { - } + public TerminalAssignmentNotificationResponse() {} /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return the current {@code TerminalAssignmentNotificationResponse} instance, allowing for method chaining + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return the current {@code TerminalAssignmentNotificationResponse} instance, allowing for + * method chaining */ public TerminalAssignmentNotificationResponse notificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; @@ -50,8 +40,11 @@ public TerminalAssignmentNotificationResponse notificationResponse(String notifi } /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * + * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,9 +53,11 @@ public String getNotificationResponse() { } /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +65,7 @@ public void setNotificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; } - /** - * Return true if this TerminalAssignmentNotificationResponse object is equal to o. - */ + /** Return true if this TerminalAssignmentNotificationResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -81,8 +74,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TerminalAssignmentNotificationResponse terminalAssignmentNotificationResponse = (TerminalAssignmentNotificationResponse) o; - return Objects.equals(this.notificationResponse, terminalAssignmentNotificationResponse.notificationResponse); + TerminalAssignmentNotificationResponse terminalAssignmentNotificationResponse = + (TerminalAssignmentNotificationResponse) o; + return Objects.equals( + this.notificationResponse, terminalAssignmentNotificationResponse.notificationResponse); } @Override @@ -94,14 +89,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TerminalAssignmentNotificationResponse {\n"); - sb.append(" notificationResponse: ").append(toIndentedString(notificationResponse)).append("\n"); + sb.append(" notificationResponse: ") + .append(toIndentedString(notificationResponse)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +106,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TerminalAssignmentNotificationResponse given an JSON string * * @param jsonString JSON string * @return An instance of TerminalAssignmentNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalAssignmentNotificationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TerminalAssignmentNotificationResponse */ - public static TerminalAssignmentNotificationResponse fromJson(String jsonString) throws JsonProcessingException { + public static TerminalAssignmentNotificationResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalAssignmentNotificationResponse.class); } -/** - * Convert an instance of TerminalAssignmentNotificationResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TerminalAssignmentNotificationResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingData.java b/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingData.java index 8d62e5519..debf480d9 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingData.java +++ b/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingData.java @@ -2,38 +2,28 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.managementwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TerminalBoardingData - */ +/** TerminalBoardingData */ @JsonPropertyOrder({ TerminalBoardingData.JSON_PROPERTY_COMPANY_ID, TerminalBoardingData.JSON_PROPERTY_MERCHANT_ID, TerminalBoardingData.JSON_PROPERTY_STORE_ID, TerminalBoardingData.JSON_PROPERTY_UNIQUE_TERMINAL_ID }) - public class TerminalBoardingData { public static final String JSON_PROPERTY_COMPANY_ID = "companyId"; private String companyId; @@ -47,8 +37,7 @@ public class TerminalBoardingData { public static final String JSON_PROPERTY_UNIQUE_TERMINAL_ID = "uniqueTerminalId"; private String uniqueTerminalId; - public TerminalBoardingData() { - } + public TerminalBoardingData() {} /** * The unique identifier of the company account. @@ -63,6 +52,7 @@ public TerminalBoardingData companyId(String companyId) { /** * The unique identifier of the company account. + * * @return companyId The unique identifier of the company account. */ @JsonProperty(JSON_PROPERTY_COMPANY_ID) @@ -95,6 +85,7 @@ public TerminalBoardingData merchantId(String merchantId) { /** * The unique identifier of the merchant account. + * * @return merchantId The unique identifier of the merchant account. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @@ -127,6 +118,7 @@ public TerminalBoardingData storeId(String storeId) { /** * The unique identifier of the store. + * * @return storeId The unique identifier of the store. */ @JsonProperty(JSON_PROPERTY_STORE_ID) @@ -159,6 +151,7 @@ public TerminalBoardingData uniqueTerminalId(String uniqueTerminalId) { /** * The unique identifier of the terminal. + * * @return uniqueTerminalId The unique identifier of the terminal. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @@ -178,9 +171,7 @@ public void setUniqueTerminalId(String uniqueTerminalId) { this.uniqueTerminalId = uniqueTerminalId; } - /** - * Return true if this TerminalBoardingData object is equal to o. - */ + /** Return true if this TerminalBoardingData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -190,10 +181,10 @@ public boolean equals(Object o) { return false; } TerminalBoardingData terminalBoardingData = (TerminalBoardingData) o; - return Objects.equals(this.companyId, terminalBoardingData.companyId) && - Objects.equals(this.merchantId, terminalBoardingData.merchantId) && - Objects.equals(this.storeId, terminalBoardingData.storeId) && - Objects.equals(this.uniqueTerminalId, terminalBoardingData.uniqueTerminalId); + return Objects.equals(this.companyId, terminalBoardingData.companyId) + && Objects.equals(this.merchantId, terminalBoardingData.merchantId) + && Objects.equals(this.storeId, terminalBoardingData.storeId) + && Objects.equals(this.uniqueTerminalId, terminalBoardingData.uniqueTerminalId); } @Override @@ -214,8 +205,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +214,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TerminalBoardingData given an JSON string * * @param jsonString JSON string * @return An instance of TerminalBoardingData - * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalBoardingData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TerminalBoardingData */ public static TerminalBoardingData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalBoardingData.class); } -/** - * Convert an instance of TerminalBoardingData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TerminalBoardingData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingNotificationRequest.java b/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingNotificationRequest.java index 79675fba8..f7920493e 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingNotificationRequest.java +++ b/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingNotificationRequest.java @@ -2,40 +2,33 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.managementwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.managementwebhooks.TerminalBoardingData; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * TerminalBoardingNotificationRequest - */ +/** TerminalBoardingNotificationRequest */ @JsonPropertyOrder({ TerminalBoardingNotificationRequest.JSON_PROPERTY_CREATED_AT, TerminalBoardingNotificationRequest.JSON_PROPERTY_DATA, TerminalBoardingNotificationRequest.JSON_PROPERTY_ENVIRONMENT, TerminalBoardingNotificationRequest.JSON_PROPERTY_TYPE }) - public class TerminalBoardingNotificationRequest { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -46,11 +39,8 @@ public class TerminalBoardingNotificationRequest { public static final String JSON_PROPERTY_ENVIRONMENT = "environment"; private String environment; - /** - * Type of notification. - */ + /** Type of notification. */ public enum TypeEnum { - TERMINALBOARDING_TRIGGERED(String.valueOf("terminalBoarding.triggered")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -58,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -79,7 +69,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -87,14 +81,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public TerminalBoardingNotificationRequest() { - } + public TerminalBoardingNotificationRequest() {} /** * Timestamp for when the webhook was created. * * @param createdAt Timestamp for when the webhook was created. - * @return the current {@code TerminalBoardingNotificationRequest} instance, allowing for method chaining + * @return the current {@code TerminalBoardingNotificationRequest} instance, allowing for method + * chaining */ public TerminalBoardingNotificationRequest createdAt(OffsetDateTime createdAt) { this.createdAt = createdAt; @@ -103,6 +97,7 @@ public TerminalBoardingNotificationRequest createdAt(OffsetDateTime createdAt) { /** * Timestamp for when the webhook was created. + * * @return createdAt Timestamp for when the webhook was created. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @@ -125,8 +120,9 @@ public void setCreatedAt(OffsetDateTime createdAt) { /** * data * - * @param data - * @return the current {@code TerminalBoardingNotificationRequest} instance, allowing for method chaining + * @param data + * @return the current {@code TerminalBoardingNotificationRequest} instance, allowing for method + * chaining */ public TerminalBoardingNotificationRequest data(TerminalBoardingData data) { this.data = data; @@ -135,7 +131,8 @@ public TerminalBoardingNotificationRequest data(TerminalBoardingData data) { /** * Get data - * @return data + * + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,7 +143,7 @@ public TerminalBoardingData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -155,10 +152,12 @@ public void setData(TerminalBoardingData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. - * @return the current {@code TerminalBoardingNotificationRequest} instance, allowing for method chaining + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. + * @return the current {@code TerminalBoardingNotificationRequest} instance, allowing for method + * chaining */ public TerminalBoardingNotificationRequest environment(String environment) { this.environment = environment; @@ -166,8 +165,10 @@ public TerminalBoardingNotificationRequest environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * + * @return environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,9 +177,10 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,7 +192,8 @@ public void setEnvironment(String environment) { * Type of notification. * * @param type Type of notification. - * @return the current {@code TerminalBoardingNotificationRequest} instance, allowing for method chaining + * @return the current {@code TerminalBoardingNotificationRequest} instance, allowing for method + * chaining */ public TerminalBoardingNotificationRequest type(TypeEnum type) { this.type = type; @@ -199,6 +202,7 @@ public TerminalBoardingNotificationRequest type(TypeEnum type) { /** * Type of notification. + * * @return type Type of notification. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -218,9 +222,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this TerminalBoardingNotificationRequest object is equal to o. - */ + /** Return true if this TerminalBoardingNotificationRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -229,11 +231,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TerminalBoardingNotificationRequest terminalBoardingNotificationRequest = (TerminalBoardingNotificationRequest) o; - return Objects.equals(this.createdAt, terminalBoardingNotificationRequest.createdAt) && - Objects.equals(this.data, terminalBoardingNotificationRequest.data) && - Objects.equals(this.environment, terminalBoardingNotificationRequest.environment) && - Objects.equals(this.type, terminalBoardingNotificationRequest.type); + TerminalBoardingNotificationRequest terminalBoardingNotificationRequest = + (TerminalBoardingNotificationRequest) o; + return Objects.equals(this.createdAt, terminalBoardingNotificationRequest.createdAt) + && Objects.equals(this.data, terminalBoardingNotificationRequest.data) + && Objects.equals(this.environment, terminalBoardingNotificationRequest.environment) + && Objects.equals(this.type, terminalBoardingNotificationRequest.type); } @Override @@ -254,8 +257,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -264,21 +266,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TerminalBoardingNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of TerminalBoardingNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalBoardingNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TerminalBoardingNotificationRequest */ - public static TerminalBoardingNotificationRequest fromJson(String jsonString) throws JsonProcessingException { + public static TerminalBoardingNotificationRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalBoardingNotificationRequest.class); } -/** - * Convert an instance of TerminalBoardingNotificationRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TerminalBoardingNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingNotificationResponse.java b/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingNotificationResponse.java index 5b29fe52b..1b06bf9a1 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingNotificationResponse.java +++ b/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingNotificationResponse.java @@ -2,47 +2,37 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.managementwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TerminalBoardingNotificationResponse - */ -@JsonPropertyOrder({ - TerminalBoardingNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE -}) - +/** TerminalBoardingNotificationResponse */ +@JsonPropertyOrder({TerminalBoardingNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) public class TerminalBoardingNotificationResponse { public static final String JSON_PROPERTY_NOTIFICATION_RESPONSE = "notificationResponse"; private String notificationResponse; - public TerminalBoardingNotificationResponse() { - } + public TerminalBoardingNotificationResponse() {} /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return the current {@code TerminalBoardingNotificationResponse} instance, allowing for method chaining + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return the current {@code TerminalBoardingNotificationResponse} instance, allowing for method + * chaining */ public TerminalBoardingNotificationResponse notificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; @@ -50,8 +40,11 @@ public TerminalBoardingNotificationResponse notificationResponse(String notifica } /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * + * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,9 +53,11 @@ public String getNotificationResponse() { } /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +65,7 @@ public void setNotificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; } - /** - * Return true if this TerminalBoardingNotificationResponse object is equal to o. - */ + /** Return true if this TerminalBoardingNotificationResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -81,8 +74,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TerminalBoardingNotificationResponse terminalBoardingNotificationResponse = (TerminalBoardingNotificationResponse) o; - return Objects.equals(this.notificationResponse, terminalBoardingNotificationResponse.notificationResponse); + TerminalBoardingNotificationResponse terminalBoardingNotificationResponse = + (TerminalBoardingNotificationResponse) o; + return Objects.equals( + this.notificationResponse, terminalBoardingNotificationResponse.notificationResponse); } @Override @@ -94,14 +89,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TerminalBoardingNotificationResponse {\n"); - sb.append(" notificationResponse: ").append(toIndentedString(notificationResponse)).append("\n"); + sb.append(" notificationResponse: ") + .append(toIndentedString(notificationResponse)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +106,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TerminalBoardingNotificationResponse given an JSON string * * @param jsonString JSON string * @return An instance of TerminalBoardingNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalBoardingNotificationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TerminalBoardingNotificationResponse */ - public static TerminalBoardingNotificationResponse fromJson(String jsonString) throws JsonProcessingException { + public static TerminalBoardingNotificationResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalBoardingNotificationResponse.class); } -/** - * Convert an instance of TerminalBoardingNotificationResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TerminalBoardingNotificationResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsData.java b/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsData.java index 4733f39d0..3e8624a86 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsData.java +++ b/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsData.java @@ -2,31 +2,26 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.managementwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * TerminalSettingsData - */ +/** TerminalSettingsData */ @JsonPropertyOrder({ TerminalSettingsData.JSON_PROPERTY_COMPANY_ID, TerminalSettingsData.JSON_PROPERTY_MERCHANT_ID, @@ -35,7 +30,6 @@ TerminalSettingsData.JSON_PROPERTY_UPDATE_SOURCE, TerminalSettingsData.JSON_PROPERTY_USER }) - public class TerminalSettingsData { public static final String JSON_PROPERTY_COMPANY_ID = "companyId"; private String companyId; @@ -50,10 +44,10 @@ public class TerminalSettingsData { private String terminalId; /** - * Indicates whether the terminal settings were updated using the Customer Area or the Management API. + * Indicates whether the terminal settings were updated using the Customer Area or the Management + * API. */ public enum UpdateSourceEnum { - CUSTOMER_AREA(String.valueOf("Customer Area")), MANAGEMENT_API(String.valueOf("Management Api")); @@ -63,7 +57,7 @@ public enum UpdateSourceEnum { private String value; UpdateSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -84,7 +78,11 @@ public static UpdateSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("UpdateSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(UpdateSourceEnum.values())); + LOG.warning( + "UpdateSourceEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(UpdateSourceEnum.values())); return null; } } @@ -95,8 +93,7 @@ public static UpdateSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_USER = "user"; private String user; - public TerminalSettingsData() { - } + public TerminalSettingsData() {} /** * The unique identifier of the company account. @@ -111,6 +108,7 @@ public TerminalSettingsData companyId(String companyId) { /** * The unique identifier of the company account. + * * @return companyId The unique identifier of the company account. */ @JsonProperty(JSON_PROPERTY_COMPANY_ID) @@ -143,6 +141,7 @@ public TerminalSettingsData merchantId(String merchantId) { /** * The unique identifier of the merchant account. + * * @return merchantId The unique identifier of the merchant account. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @@ -175,6 +174,7 @@ public TerminalSettingsData storeId(String storeId) { /** * The unique identifier of the store. + * * @return storeId The unique identifier of the store. */ @JsonProperty(JSON_PROPERTY_STORE_ID) @@ -207,6 +207,7 @@ public TerminalSettingsData terminalId(String terminalId) { /** * The unique identifier of the terminal. + * * @return terminalId The unique identifier of the terminal. */ @JsonProperty(JSON_PROPERTY_TERMINAL_ID) @@ -227,9 +228,11 @@ public void setTerminalId(String terminalId) { } /** - * Indicates whether the terminal settings were updated using the Customer Area or the Management API. + * Indicates whether the terminal settings were updated using the Customer Area or the Management + * API. * - * @param updateSource Indicates whether the terminal settings were updated using the Customer Area or the Management API. + * @param updateSource Indicates whether the terminal settings were updated using the Customer + * Area or the Management API. * @return the current {@code TerminalSettingsData} instance, allowing for method chaining */ public TerminalSettingsData updateSource(UpdateSourceEnum updateSource) { @@ -238,8 +241,11 @@ public TerminalSettingsData updateSource(UpdateSourceEnum updateSource) { } /** - * Indicates whether the terminal settings were updated using the Customer Area or the Management API. - * @return updateSource Indicates whether the terminal settings were updated using the Customer Area or the Management API. + * Indicates whether the terminal settings were updated using the Customer Area or the Management + * API. + * + * @return updateSource Indicates whether the terminal settings were updated using the Customer + * Area or the Management API. */ @JsonProperty(JSON_PROPERTY_UPDATE_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -248,9 +254,11 @@ public UpdateSourceEnum getUpdateSource() { } /** - * Indicates whether the terminal settings were updated using the Customer Area or the Management API. + * Indicates whether the terminal settings were updated using the Customer Area or the Management + * API. * - * @param updateSource Indicates whether the terminal settings were updated using the Customer Area or the Management API. + * @param updateSource Indicates whether the terminal settings were updated using the Customer + * Area or the Management API. */ @JsonProperty(JSON_PROPERTY_UPDATE_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -261,7 +269,8 @@ public void setUpdateSource(UpdateSourceEnum updateSource) { /** * The user that updated the terminal settings. Can be Adyen or your API credential username. * - * @param user The user that updated the terminal settings. Can be Adyen or your API credential username. + * @param user The user that updated the terminal settings. Can be Adyen or your API credential + * username. * @return the current {@code TerminalSettingsData} instance, allowing for method chaining */ public TerminalSettingsData user(String user) { @@ -271,7 +280,9 @@ public TerminalSettingsData user(String user) { /** * The user that updated the terminal settings. Can be Adyen or your API credential username. - * @return user The user that updated the terminal settings. Can be Adyen or your API credential username. + * + * @return user The user that updated the terminal settings. Can be Adyen or your API credential + * username. */ @JsonProperty(JSON_PROPERTY_USER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -282,7 +293,8 @@ public String getUser() { /** * The user that updated the terminal settings. Can be Adyen or your API credential username. * - * @param user The user that updated the terminal settings. Can be Adyen or your API credential username. + * @param user The user that updated the terminal settings. Can be Adyen or your API credential + * username. */ @JsonProperty(JSON_PROPERTY_USER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -290,9 +302,7 @@ public void setUser(String user) { this.user = user; } - /** - * Return true if this TerminalSettingsData object is equal to o. - */ + /** Return true if this TerminalSettingsData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -302,12 +312,12 @@ public boolean equals(Object o) { return false; } TerminalSettingsData terminalSettingsData = (TerminalSettingsData) o; - return Objects.equals(this.companyId, terminalSettingsData.companyId) && - Objects.equals(this.merchantId, terminalSettingsData.merchantId) && - Objects.equals(this.storeId, terminalSettingsData.storeId) && - Objects.equals(this.terminalId, terminalSettingsData.terminalId) && - Objects.equals(this.updateSource, terminalSettingsData.updateSource) && - Objects.equals(this.user, terminalSettingsData.user); + return Objects.equals(this.companyId, terminalSettingsData.companyId) + && Objects.equals(this.merchantId, terminalSettingsData.merchantId) + && Objects.equals(this.storeId, terminalSettingsData.storeId) + && Objects.equals(this.terminalId, terminalSettingsData.terminalId) + && Objects.equals(this.updateSource, terminalSettingsData.updateSource) + && Objects.equals(this.user, terminalSettingsData.user); } @Override @@ -330,8 +340,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -340,21 +349,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TerminalSettingsData given an JSON string * * @param jsonString JSON string * @return An instance of TerminalSettingsData - * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalSettingsData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TerminalSettingsData */ public static TerminalSettingsData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalSettingsData.class); } -/** - * Convert an instance of TerminalSettingsData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TerminalSettingsData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsNotificationRequest.java b/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsNotificationRequest.java index 7dc53d6f3..6f7892534 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsNotificationRequest.java +++ b/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsNotificationRequest.java @@ -2,40 +2,33 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.managementwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.managementwebhooks.TerminalSettingsData; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * TerminalSettingsNotificationRequest - */ +/** TerminalSettingsNotificationRequest */ @JsonPropertyOrder({ TerminalSettingsNotificationRequest.JSON_PROPERTY_CREATED_AT, TerminalSettingsNotificationRequest.JSON_PROPERTY_DATA, TerminalSettingsNotificationRequest.JSON_PROPERTY_ENVIRONMENT, TerminalSettingsNotificationRequest.JSON_PROPERTY_TYPE }) - public class TerminalSettingsNotificationRequest { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -46,11 +39,8 @@ public class TerminalSettingsNotificationRequest { public static final String JSON_PROPERTY_ENVIRONMENT = "environment"; private String environment; - /** - * Type of notification. - */ + /** Type of notification. */ public enum TypeEnum { - TERMINALSETTINGS_MODIFIED(String.valueOf("terminalSettings.modified")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -58,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -79,7 +69,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -87,14 +81,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public TerminalSettingsNotificationRequest() { - } + public TerminalSettingsNotificationRequest() {} /** * Timestamp for when the webhook was created. * * @param createdAt Timestamp for when the webhook was created. - * @return the current {@code TerminalSettingsNotificationRequest} instance, allowing for method chaining + * @return the current {@code TerminalSettingsNotificationRequest} instance, allowing for method + * chaining */ public TerminalSettingsNotificationRequest createdAt(OffsetDateTime createdAt) { this.createdAt = createdAt; @@ -103,6 +97,7 @@ public TerminalSettingsNotificationRequest createdAt(OffsetDateTime createdAt) { /** * Timestamp for when the webhook was created. + * * @return createdAt Timestamp for when the webhook was created. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @@ -125,8 +120,9 @@ public void setCreatedAt(OffsetDateTime createdAt) { /** * data * - * @param data - * @return the current {@code TerminalSettingsNotificationRequest} instance, allowing for method chaining + * @param data + * @return the current {@code TerminalSettingsNotificationRequest} instance, allowing for method + * chaining */ public TerminalSettingsNotificationRequest data(TerminalSettingsData data) { this.data = data; @@ -135,7 +131,8 @@ public TerminalSettingsNotificationRequest data(TerminalSettingsData data) { /** * Get data - * @return data + * + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,7 +143,7 @@ public TerminalSettingsData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -155,10 +152,12 @@ public void setData(TerminalSettingsData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. - * @return the current {@code TerminalSettingsNotificationRequest} instance, allowing for method chaining + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. + * @return the current {@code TerminalSettingsNotificationRequest} instance, allowing for method + * chaining */ public TerminalSettingsNotificationRequest environment(String environment) { this.environment = environment; @@ -166,8 +165,10 @@ public TerminalSettingsNotificationRequest environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * + * @return environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,9 +177,10 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,7 +192,8 @@ public void setEnvironment(String environment) { * Type of notification. * * @param type Type of notification. - * @return the current {@code TerminalSettingsNotificationRequest} instance, allowing for method chaining + * @return the current {@code TerminalSettingsNotificationRequest} instance, allowing for method + * chaining */ public TerminalSettingsNotificationRequest type(TypeEnum type) { this.type = type; @@ -199,6 +202,7 @@ public TerminalSettingsNotificationRequest type(TypeEnum type) { /** * Type of notification. + * * @return type Type of notification. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -218,9 +222,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this TerminalSettingsNotificationRequest object is equal to o. - */ + /** Return true if this TerminalSettingsNotificationRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -229,11 +231,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TerminalSettingsNotificationRequest terminalSettingsNotificationRequest = (TerminalSettingsNotificationRequest) o; - return Objects.equals(this.createdAt, terminalSettingsNotificationRequest.createdAt) && - Objects.equals(this.data, terminalSettingsNotificationRequest.data) && - Objects.equals(this.environment, terminalSettingsNotificationRequest.environment) && - Objects.equals(this.type, terminalSettingsNotificationRequest.type); + TerminalSettingsNotificationRequest terminalSettingsNotificationRequest = + (TerminalSettingsNotificationRequest) o; + return Objects.equals(this.createdAt, terminalSettingsNotificationRequest.createdAt) + && Objects.equals(this.data, terminalSettingsNotificationRequest.data) + && Objects.equals(this.environment, terminalSettingsNotificationRequest.environment) + && Objects.equals(this.type, terminalSettingsNotificationRequest.type); } @Override @@ -254,8 +257,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -264,21 +266,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TerminalSettingsNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of TerminalSettingsNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalSettingsNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TerminalSettingsNotificationRequest */ - public static TerminalSettingsNotificationRequest fromJson(String jsonString) throws JsonProcessingException { + public static TerminalSettingsNotificationRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalSettingsNotificationRequest.class); } -/** - * Convert an instance of TerminalSettingsNotificationRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TerminalSettingsNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsNotificationResponse.java b/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsNotificationResponse.java index b73a7d1c4..4cb54c453 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsNotificationResponse.java +++ b/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsNotificationResponse.java @@ -2,47 +2,37 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.managementwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TerminalSettingsNotificationResponse - */ -@JsonPropertyOrder({ - TerminalSettingsNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE -}) - +/** TerminalSettingsNotificationResponse */ +@JsonPropertyOrder({TerminalSettingsNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) public class TerminalSettingsNotificationResponse { public static final String JSON_PROPERTY_NOTIFICATION_RESPONSE = "notificationResponse"; private String notificationResponse; - public TerminalSettingsNotificationResponse() { - } + public TerminalSettingsNotificationResponse() {} /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return the current {@code TerminalSettingsNotificationResponse} instance, allowing for method chaining + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return the current {@code TerminalSettingsNotificationResponse} instance, allowing for method + * chaining */ public TerminalSettingsNotificationResponse notificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; @@ -50,8 +40,11 @@ public TerminalSettingsNotificationResponse notificationResponse(String notifica } /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * + * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,9 +53,11 @@ public String getNotificationResponse() { } /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +65,7 @@ public void setNotificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; } - /** - * Return true if this TerminalSettingsNotificationResponse object is equal to o. - */ + /** Return true if this TerminalSettingsNotificationResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -81,8 +74,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TerminalSettingsNotificationResponse terminalSettingsNotificationResponse = (TerminalSettingsNotificationResponse) o; - return Objects.equals(this.notificationResponse, terminalSettingsNotificationResponse.notificationResponse); + TerminalSettingsNotificationResponse terminalSettingsNotificationResponse = + (TerminalSettingsNotificationResponse) o; + return Objects.equals( + this.notificationResponse, terminalSettingsNotificationResponse.notificationResponse); } @Override @@ -94,14 +89,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TerminalSettingsNotificationResponse {\n"); - sb.append(" notificationResponse: ").append(toIndentedString(notificationResponse)).append("\n"); + sb.append(" notificationResponse: ") + .append(toIndentedString(notificationResponse)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +106,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TerminalSettingsNotificationResponse given an JSON string * * @param jsonString JSON string * @return An instance of TerminalSettingsNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalSettingsNotificationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TerminalSettingsNotificationResponse */ - public static TerminalSettingsNotificationResponse fromJson(String jsonString) throws JsonProcessingException { + public static TerminalSettingsNotificationResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TerminalSettingsNotificationResponse.class); } -/** - * Convert an instance of TerminalSettingsNotificationResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TerminalSettingsNotificationResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/VerificationError.java b/src/main/java/com/adyen/model/managementwebhooks/VerificationError.java index c4e34869c..072c39622 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/VerificationError.java +++ b/src/main/java/com/adyen/model/managementwebhooks/VerificationError.java @@ -2,35 +2,28 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.managementwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.managementwebhooks.RemediatingAction; -import com.adyen.model.managementwebhooks.VerificationErrorRecursive; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * VerificationError - */ +/** VerificationError */ @JsonPropertyOrder({ VerificationError.JSON_PROPERTY_CODE, VerificationError.JSON_PROPERTY_MESSAGE, @@ -38,7 +31,6 @@ VerificationError.JSON_PROPERTY_SUB_ERRORS, VerificationError.JSON_PROPERTY_TYPE }) - public class VerificationError { public static final String JSON_PROPERTY_CODE = "code"; private String code; @@ -53,10 +45,10 @@ public class VerificationError { private List subErrors; /** - * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and **pendingStatus**. + * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and + * **pendingStatus**. */ public enum TypeEnum { - DATAMISSING(String.valueOf("dataMissing")), INVALIDINPUT(String.valueOf("invalidInput")), @@ -68,7 +60,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -89,7 +81,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -97,8 +93,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public VerificationError() { - } + public VerificationError() {} /** * The verification error code. @@ -113,6 +108,7 @@ public VerificationError code(String code) { /** * The verification error code. + * * @return code The verification error code. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -145,6 +141,7 @@ public VerificationError message(String message) { /** * The verification error message. + * * @return message The verification error message. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -185,6 +182,7 @@ public VerificationError addRemediatingActionsItem(RemediatingAction remediating /** * The actions that you can take to resolve the verification error. + * * @return remediatingActions The actions that you can take to resolve the verification error. */ @JsonProperty(JSON_PROPERTY_REMEDIATING_ACTIONS) @@ -225,6 +223,7 @@ public VerificationError addSubErrorsItem(VerificationErrorRecursive subErrorsIt /** * More granular information about the verification error. + * * @return subErrors More granular information about the verification error. */ @JsonProperty(JSON_PROPERTY_SUB_ERRORS) @@ -245,9 +244,11 @@ public void setSubErrors(List subErrors) { } /** - * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and **pendingStatus**. + * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and + * **pendingStatus**. * - * @param type The type of verification error. Possible values: **invalidInput**, **dataMissing**, and **pendingStatus**. + * @param type The type of verification error. Possible values: **invalidInput**, **dataMissing**, + * and **pendingStatus**. * @return the current {@code VerificationError} instance, allowing for method chaining */ public VerificationError type(TypeEnum type) { @@ -256,8 +257,11 @@ public VerificationError type(TypeEnum type) { } /** - * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and **pendingStatus**. - * @return type The type of verification error. Possible values: **invalidInput**, **dataMissing**, and **pendingStatus**. + * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and + * **pendingStatus**. + * + * @return type The type of verification error. Possible values: **invalidInput**, + * **dataMissing**, and **pendingStatus**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -266,9 +270,11 @@ public TypeEnum getType() { } /** - * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and **pendingStatus**. + * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and + * **pendingStatus**. * - * @param type The type of verification error. Possible values: **invalidInput**, **dataMissing**, and **pendingStatus**. + * @param type The type of verification error. Possible values: **invalidInput**, **dataMissing**, + * and **pendingStatus**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -276,9 +282,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this VerificationError object is equal to o. - */ + /** Return true if this VerificationError object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -288,11 +292,11 @@ public boolean equals(Object o) { return false; } VerificationError verificationError = (VerificationError) o; - return Objects.equals(this.code, verificationError.code) && - Objects.equals(this.message, verificationError.message) && - Objects.equals(this.remediatingActions, verificationError.remediatingActions) && - Objects.equals(this.subErrors, verificationError.subErrors) && - Objects.equals(this.type, verificationError.type); + return Objects.equals(this.code, verificationError.code) + && Objects.equals(this.message, verificationError.message) + && Objects.equals(this.remediatingActions, verificationError.remediatingActions) + && Objects.equals(this.subErrors, verificationError.subErrors) + && Objects.equals(this.type, verificationError.type); } @Override @@ -314,8 +318,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -324,7 +327,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of VerificationError given an JSON string * * @param jsonString JSON string @@ -334,11 +337,12 @@ private String toIndentedString(Object o) { public static VerificationError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, VerificationError.class); } -/** - * Convert an instance of VerificationError to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of VerificationError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/managementwebhooks/VerificationErrorRecursive.java b/src/main/java/com/adyen/model/managementwebhooks/VerificationErrorRecursive.java index 1cbda7871..8f3fbc37f 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/VerificationErrorRecursive.java +++ b/src/main/java/com/adyen/model/managementwebhooks/VerificationErrorRecursive.java @@ -2,34 +2,29 @@ * Management Webhooks * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.managementwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.managementwebhooks.RemediatingAction; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * VerificationErrorRecursive - */ +/** VerificationErrorRecursive */ @JsonPropertyOrder({ VerificationErrorRecursive.JSON_PROPERTY_CODE, VerificationErrorRecursive.JSON_PROPERTY_MESSAGE, @@ -37,7 +32,6 @@ VerificationErrorRecursive.JSON_PROPERTY_REMEDIATING_ACTIONS }) @JsonTypeName("VerificationError-recursive") - public class VerificationErrorRecursive { public static final String JSON_PROPERTY_CODE = "code"; private String code; @@ -46,10 +40,10 @@ public class VerificationErrorRecursive { private String message; /** - * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and **pendingStatus**. + * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and + * **pendingStatus**. */ public enum TypeEnum { - DATAMISSING(String.valueOf("dataMissing")), INVALIDINPUT(String.valueOf("invalidInput")), @@ -61,7 +55,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -82,7 +76,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -93,8 +91,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_REMEDIATING_ACTIONS = "remediatingActions"; private List remediatingActions; - public VerificationErrorRecursive() { - } + public VerificationErrorRecursive() {} /** * The verification error code. @@ -109,6 +106,7 @@ public VerificationErrorRecursive code(String code) { /** * The verification error code. + * * @return code The verification error code. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -141,6 +139,7 @@ public VerificationErrorRecursive message(String message) { /** * The verification error message. + * * @return message The verification error message. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -161,9 +160,11 @@ public void setMessage(String message) { } /** - * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and **pendingStatus**. + * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and + * **pendingStatus**. * - * @param type The type of verification error. Possible values: **invalidInput**, **dataMissing**, and **pendingStatus**. + * @param type The type of verification error. Possible values: **invalidInput**, **dataMissing**, + * and **pendingStatus**. * @return the current {@code VerificationErrorRecursive} instance, allowing for method chaining */ public VerificationErrorRecursive type(TypeEnum type) { @@ -172,8 +173,11 @@ public VerificationErrorRecursive type(TypeEnum type) { } /** - * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and **pendingStatus**. - * @return type The type of verification error. Possible values: **invalidInput**, **dataMissing**, and **pendingStatus**. + * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and + * **pendingStatus**. + * + * @return type The type of verification error. Possible values: **invalidInput**, + * **dataMissing**, and **pendingStatus**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,9 +186,11 @@ public TypeEnum getType() { } /** - * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and **pendingStatus**. + * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and + * **pendingStatus**. * - * @param type The type of verification error. Possible values: **invalidInput**, **dataMissing**, and **pendingStatus**. + * @param type The type of verification error. Possible values: **invalidInput**, **dataMissing**, + * and **pendingStatus**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -203,7 +209,8 @@ public VerificationErrorRecursive remediatingActions(List rem return this; } - public VerificationErrorRecursive addRemediatingActionsItem(RemediatingAction remediatingActionsItem) { + public VerificationErrorRecursive addRemediatingActionsItem( + RemediatingAction remediatingActionsItem) { if (this.remediatingActions == null) { this.remediatingActions = new ArrayList<>(); } @@ -213,6 +220,7 @@ public VerificationErrorRecursive addRemediatingActionsItem(RemediatingAction re /** * The actions that you can take to resolve the verification error. + * * @return remediatingActions The actions that you can take to resolve the verification error. */ @JsonProperty(JSON_PROPERTY_REMEDIATING_ACTIONS) @@ -232,9 +240,7 @@ public void setRemediatingActions(List remediatingActions) { this.remediatingActions = remediatingActions; } - /** - * Return true if this VerificationError-recursive object is equal to o. - */ + /** Return true if this VerificationError-recursive object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -244,10 +250,10 @@ public boolean equals(Object o) { return false; } VerificationErrorRecursive verificationErrorRecursive = (VerificationErrorRecursive) o; - return Objects.equals(this.code, verificationErrorRecursive.code) && - Objects.equals(this.message, verificationErrorRecursive.message) && - Objects.equals(this.type, verificationErrorRecursive.type) && - Objects.equals(this.remediatingActions, verificationErrorRecursive.remediatingActions); + return Objects.equals(this.code, verificationErrorRecursive.code) + && Objects.equals(this.message, verificationErrorRecursive.message) + && Objects.equals(this.type, verificationErrorRecursive.type) + && Objects.equals(this.remediatingActions, verificationErrorRecursive.remediatingActions); } @Override @@ -268,8 +274,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -278,21 +283,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of VerificationErrorRecursive given an JSON string * * @param jsonString JSON string * @return An instance of VerificationErrorRecursive - * @throws JsonProcessingException if the JSON string is invalid with respect to VerificationErrorRecursive + * @throws JsonProcessingException if the JSON string is invalid with respect to + * VerificationErrorRecursive */ - public static VerificationErrorRecursive fromJson(String jsonString) throws JsonProcessingException { + public static VerificationErrorRecursive fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, VerificationErrorRecursive.class); } -/** - * Convert an instance of VerificationErrorRecursive to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of VerificationErrorRecursive to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/AbstractOpenApiSchema.java index 48ad1676c..d248a2531 100644 --- a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/AbstractOpenApiSchema.java @@ -1,146 +1,142 @@ /* - * Negative balance compensation warning + * Negative balance compensation warning * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.negativebalancewarningwebhooks; -import java.util.Objects; -import java.util.Map; -import jakarta.ws.rs.core.GenericType; - import com.fasterxml.jackson.annotation.JsonValue; +import jakarta.ws.rs.core.GenericType; +import java.util.Map; +import java.util.Objects; -/** - * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec - */ +/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() {return instance;} - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) {this.instance = instance;} - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); - } else { - return object.getActualInstance(); - } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() { + return instance; + } + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) { + this.instance = instance; + } + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf + * schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); + } else { + return object.getActualInstance(); } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) && - Objects.equals(this.isNullable, a.isNullable) && - Objects.equals(this.schemaType, a.schemaType); + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; } + return o.toString().replace("\n", "\n "); + } - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); + public boolean equals(Object o) { + if (this == o) { + return true; } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); + if (o == null || getClass() != o.getClass()) { + return false; } - - - -} \ No newline at end of file + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) + && Objects.equals(this.isNullable, a.isNullable) + && Objects.equals(this.schemaType, a.schemaType); + } + + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); + } + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); + } +} diff --git a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/Amount.java b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/Amount.java index e1f24005a..24a355339 100644 --- a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/Amount.java +++ b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/Amount.java @@ -1,37 +1,24 @@ /* - * Negative balance compensation warning + * Negative balance compensation warning * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.negativebalancewarningwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Amount - */ -@JsonPropertyOrder({ - Amount.JSON_PROPERTY_CURRENCY, - Amount.JSON_PROPERTY_VALUE -}) - +/** Amount */ +@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -39,13 +26,14 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() { - } + public Amount() {} /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount currency(String currency) { @@ -54,8 +42,11 @@ public Amount currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +55,11 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,9 +68,11 @@ public void setCurrency(String currency) { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount value(Long value) { @@ -86,8 +81,11 @@ public Amount value(Long value) { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). - * @return value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * + * @return value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +94,11 @@ public Long getValue() { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +106,7 @@ public void setValue(Long value) { this.value = value; } - /** - * Return true if this Amount object is equal to o. - */ + /** Return true if this Amount object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +116,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) && - Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) + && Objects.equals(this.value, amount.value); } @Override @@ -138,8 +136,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +145,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -158,11 +155,12 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } -/** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/JSON.java b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/JSON.java index 5e2dfd74c..2673db028 100644 --- a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/JSON.java +++ b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/JSON.java @@ -1,21 +1,18 @@ package com.adyen.model.negativebalancewarningwebhooks; -import com.adyen.serializer.ByteArraySerializer; import com.adyen.serializer.ByteArrayDeserializer; +import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import com.adyen.model.negativebalancewarningwebhooks.*; - +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -40,6 +37,7 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. + * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -56,11 +54,13 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { return mapper; } + public static ObjectMapper getMapper() { + return mapper; + } /** - * Returns the target model class that should be used to deserialize the input data. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,9 +73,7 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** - * Helper class to register the discriminator mappings. - */ + /** Helper class to register the discriminator mappings. */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -117,9 +115,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. - * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. This + * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -164,13 +162,14 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, - * so it's not possible to use the instanceof keyword. + *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so + * it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf( + Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -194,59 +193,58 @@ public static boolean isInstanceOf(Class modelClass, Object inst, Set, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); + /** A map of discriminators for all model classes. */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = + new HashMap, ClassDiscriminatorMapping>(); - /** - * A map of oneOf/anyOf descendants for each model class. - */ + /** A map of oneOf/anyOf descendants for each model class. */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator( + Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = + new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants(Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants( + Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static - { + static { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceCompensationWarningNotificationData.java b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceCompensationWarningNotificationData.java index 6f9674a90..db92ccaea 100644 --- a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceCompensationWarningNotificationData.java +++ b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceCompensationWarningNotificationData.java @@ -1,35 +1,24 @@ /* - * Negative balance compensation warning + * Negative balance compensation warning * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.negativebalancewarningwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.negativebalancewarningwebhooks.Amount; -import com.adyen.model.negativebalancewarningwebhooks.ResourceReference; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.time.OffsetDateTime; +import java.util.*; - -/** - * NegativeBalanceCompensationWarningNotificationData - */ +/** NegativeBalanceCompensationWarningNotificationData */ @JsonPropertyOrder({ NegativeBalanceCompensationWarningNotificationData.JSON_PROPERTY_ACCOUNT_HOLDER, NegativeBalanceCompensationWarningNotificationData.JSON_PROPERTY_AMOUNT, @@ -40,7 +29,6 @@ NegativeBalanceCompensationWarningNotificationData.JSON_PROPERTY_NEGATIVE_BALANCE_SINCE, NegativeBalanceCompensationWarningNotificationData.JSON_PROPERTY_SCHEDULED_COMPENSATION_AT }) - public class NegativeBalanceCompensationWarningNotificationData { public static final String JSON_PROPERTY_ACCOUNT_HOLDER = "accountHolder"; private ResourceReference accountHolder; @@ -66,23 +54,25 @@ public class NegativeBalanceCompensationWarningNotificationData { public static final String JSON_PROPERTY_SCHEDULED_COMPENSATION_AT = "scheduledCompensationAt"; private OffsetDateTime scheduledCompensationAt; - public NegativeBalanceCompensationWarningNotificationData() { - } + public NegativeBalanceCompensationWarningNotificationData() {} /** * accountHolder * - * @param accountHolder - * @return the current {@code NegativeBalanceCompensationWarningNotificationData} instance, allowing for method chaining + * @param accountHolder + * @return the current {@code NegativeBalanceCompensationWarningNotificationData} instance, + * allowing for method chaining */ - public NegativeBalanceCompensationWarningNotificationData accountHolder(ResourceReference accountHolder) { + public NegativeBalanceCompensationWarningNotificationData accountHolder( + ResourceReference accountHolder) { this.accountHolder = accountHolder; return this; } /** * Get accountHolder - * @return accountHolder + * + * @return accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -93,7 +83,7 @@ public ResourceReference getAccountHolder() { /** * accountHolder * - * @param accountHolder + * @param accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,8 +94,9 @@ public void setAccountHolder(ResourceReference accountHolder) { /** * amount * - * @param amount - * @return the current {@code NegativeBalanceCompensationWarningNotificationData} instance, allowing for method chaining + * @param amount + * @return the current {@code NegativeBalanceCompensationWarningNotificationData} instance, + * allowing for method chaining */ public NegativeBalanceCompensationWarningNotificationData amount(Amount amount) { this.amount = amount; @@ -114,7 +105,8 @@ public NegativeBalanceCompensationWarningNotificationData amount(Amount amount) /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,7 +117,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,15 +129,18 @@ public void setAmount(Amount amount) { * The unique identifier of the balance platform. * * @param balancePlatform The unique identifier of the balance platform. - * @return the current {@code NegativeBalanceCompensationWarningNotificationData} instance, allowing for method chaining + * @return the current {@code NegativeBalanceCompensationWarningNotificationData} instance, + * allowing for method chaining */ - public NegativeBalanceCompensationWarningNotificationData balancePlatform(String balancePlatform) { + public NegativeBalanceCompensationWarningNotificationData balancePlatform( + String balancePlatform) { this.balancePlatform = balancePlatform; return this; } /** * The unique identifier of the balance platform. + * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -166,19 +161,26 @@ public void setBalancePlatform(String balancePlatform) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. - * @return the current {@code NegativeBalanceCompensationWarningNotificationData} instance, allowing for method chaining + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. + * @return the current {@code NegativeBalanceCompensationWarningNotificationData} instance, + * allowing for method chaining */ - public NegativeBalanceCompensationWarningNotificationData creationDate(OffsetDateTime creationDate) { + public NegativeBalanceCompensationWarningNotificationData creationDate( + OffsetDateTime creationDate) { this.creationDate = creationDate; return this; } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. + * + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,9 +189,11 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -201,7 +205,8 @@ public void setCreationDate(OffsetDateTime creationDate) { * The ID of the resource. * * @param id The ID of the resource. - * @return the current {@code NegativeBalanceCompensationWarningNotificationData} instance, allowing for method chaining + * @return the current {@code NegativeBalanceCompensationWarningNotificationData} instance, + * allowing for method chaining */ public NegativeBalanceCompensationWarningNotificationData id(String id) { this.id = id; @@ -210,6 +215,7 @@ public NegativeBalanceCompensationWarningNotificationData id(String id) { /** * The ID of the resource. + * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -230,19 +236,26 @@ public void setId(String id) { } /** - * The balance account ID of the account that will be used to compensate the balance account whose balance is negative. + * The balance account ID of the account that will be used to compensate the balance account whose + * balance is negative. * - * @param liableBalanceAccountId The balance account ID of the account that will be used to compensate the balance account whose balance is negative. - * @return the current {@code NegativeBalanceCompensationWarningNotificationData} instance, allowing for method chaining + * @param liableBalanceAccountId The balance account ID of the account that will be used to + * compensate the balance account whose balance is negative. + * @return the current {@code NegativeBalanceCompensationWarningNotificationData} instance, + * allowing for method chaining */ - public NegativeBalanceCompensationWarningNotificationData liableBalanceAccountId(String liableBalanceAccountId) { + public NegativeBalanceCompensationWarningNotificationData liableBalanceAccountId( + String liableBalanceAccountId) { this.liableBalanceAccountId = liableBalanceAccountId; return this; } /** - * The balance account ID of the account that will be used to compensate the balance account whose balance is negative. - * @return liableBalanceAccountId The balance account ID of the account that will be used to compensate the balance account whose balance is negative. + * The balance account ID of the account that will be used to compensate the balance account whose + * balance is negative. + * + * @return liableBalanceAccountId The balance account ID of the account that will be used to + * compensate the balance account whose balance is negative. */ @JsonProperty(JSON_PROPERTY_LIABLE_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -251,9 +264,11 @@ public String getLiableBalanceAccountId() { } /** - * The balance account ID of the account that will be used to compensate the balance account whose balance is negative. + * The balance account ID of the account that will be used to compensate the balance account whose + * balance is negative. * - * @param liableBalanceAccountId The balance account ID of the account that will be used to compensate the balance account whose balance is negative. + * @param liableBalanceAccountId The balance account ID of the account that will be used to + * compensate the balance account whose balance is negative. */ @JsonProperty(JSON_PROPERTY_LIABLE_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -265,15 +280,18 @@ public void setLiableBalanceAccountId(String liableBalanceAccountId) { * The date the balance for the account became negative. * * @param negativeBalanceSince The date the balance for the account became negative. - * @return the current {@code NegativeBalanceCompensationWarningNotificationData} instance, allowing for method chaining + * @return the current {@code NegativeBalanceCompensationWarningNotificationData} instance, + * allowing for method chaining */ - public NegativeBalanceCompensationWarningNotificationData negativeBalanceSince(OffsetDateTime negativeBalanceSince) { + public NegativeBalanceCompensationWarningNotificationData negativeBalanceSince( + OffsetDateTime negativeBalanceSince) { this.negativeBalanceSince = negativeBalanceSince; return this; } /** * The date the balance for the account became negative. + * * @return negativeBalanceSince The date the balance for the account became negative. */ @JsonProperty(JSON_PROPERTY_NEGATIVE_BALANCE_SINCE) @@ -296,17 +314,22 @@ public void setNegativeBalanceSince(OffsetDateTime negativeBalanceSince) { /** * The date when a compensation transfer to the account is scheduled to happen. * - * @param scheduledCompensationAt The date when a compensation transfer to the account is scheduled to happen. - * @return the current {@code NegativeBalanceCompensationWarningNotificationData} instance, allowing for method chaining + * @param scheduledCompensationAt The date when a compensation transfer to the account is + * scheduled to happen. + * @return the current {@code NegativeBalanceCompensationWarningNotificationData} instance, + * allowing for method chaining */ - public NegativeBalanceCompensationWarningNotificationData scheduledCompensationAt(OffsetDateTime scheduledCompensationAt) { + public NegativeBalanceCompensationWarningNotificationData scheduledCompensationAt( + OffsetDateTime scheduledCompensationAt) { this.scheduledCompensationAt = scheduledCompensationAt; return this; } /** * The date when a compensation transfer to the account is scheduled to happen. - * @return scheduledCompensationAt The date when a compensation transfer to the account is scheduled to happen. + * + * @return scheduledCompensationAt The date when a compensation transfer to the account is + * scheduled to happen. */ @JsonProperty(JSON_PROPERTY_SCHEDULED_COMPENSATION_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -317,7 +340,8 @@ public OffsetDateTime getScheduledCompensationAt() { /** * The date when a compensation transfer to the account is scheduled to happen. * - * @param scheduledCompensationAt The date when a compensation transfer to the account is scheduled to happen. + * @param scheduledCompensationAt The date when a compensation transfer to the account is + * scheduled to happen. */ @JsonProperty(JSON_PROPERTY_SCHEDULED_COMPENSATION_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -336,20 +360,40 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - NegativeBalanceCompensationWarningNotificationData negativeBalanceCompensationWarningNotificationData = (NegativeBalanceCompensationWarningNotificationData) o; - return Objects.equals(this.accountHolder, negativeBalanceCompensationWarningNotificationData.accountHolder) && - Objects.equals(this.amount, negativeBalanceCompensationWarningNotificationData.amount) && - Objects.equals(this.balancePlatform, negativeBalanceCompensationWarningNotificationData.balancePlatform) && - Objects.equals(this.creationDate, negativeBalanceCompensationWarningNotificationData.creationDate) && - Objects.equals(this.id, negativeBalanceCompensationWarningNotificationData.id) && - Objects.equals(this.liableBalanceAccountId, negativeBalanceCompensationWarningNotificationData.liableBalanceAccountId) && - Objects.equals(this.negativeBalanceSince, negativeBalanceCompensationWarningNotificationData.negativeBalanceSince) && - Objects.equals(this.scheduledCompensationAt, negativeBalanceCompensationWarningNotificationData.scheduledCompensationAt); + NegativeBalanceCompensationWarningNotificationData + negativeBalanceCompensationWarningNotificationData = + (NegativeBalanceCompensationWarningNotificationData) o; + return Objects.equals( + this.accountHolder, negativeBalanceCompensationWarningNotificationData.accountHolder) + && Objects.equals(this.amount, negativeBalanceCompensationWarningNotificationData.amount) + && Objects.equals( + this.balancePlatform, + negativeBalanceCompensationWarningNotificationData.balancePlatform) + && Objects.equals( + this.creationDate, negativeBalanceCompensationWarningNotificationData.creationDate) + && Objects.equals(this.id, negativeBalanceCompensationWarningNotificationData.id) + && Objects.equals( + this.liableBalanceAccountId, + negativeBalanceCompensationWarningNotificationData.liableBalanceAccountId) + && Objects.equals( + this.negativeBalanceSince, + negativeBalanceCompensationWarningNotificationData.negativeBalanceSince) + && Objects.equals( + this.scheduledCompensationAt, + negativeBalanceCompensationWarningNotificationData.scheduledCompensationAt); } @Override public int hashCode() { - return Objects.hash(accountHolder, amount, balancePlatform, creationDate, id, liableBalanceAccountId, negativeBalanceSince, scheduledCompensationAt); + return Objects.hash( + accountHolder, + amount, + balancePlatform, + creationDate, + id, + liableBalanceAccountId, + negativeBalanceSince, + scheduledCompensationAt); } @Override @@ -361,16 +405,21 @@ public String toString() { sb.append(" balancePlatform: ").append(toIndentedString(balancePlatform)).append("\n"); sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" liableBalanceAccountId: ").append(toIndentedString(liableBalanceAccountId)).append("\n"); - sb.append(" negativeBalanceSince: ").append(toIndentedString(negativeBalanceSince)).append("\n"); - sb.append(" scheduledCompensationAt: ").append(toIndentedString(scheduledCompensationAt)).append("\n"); + sb.append(" liableBalanceAccountId: ") + .append(toIndentedString(liableBalanceAccountId)) + .append("\n"); + sb.append(" negativeBalanceSince: ") + .append(toIndentedString(negativeBalanceSince)) + .append("\n"); + sb.append(" scheduledCompensationAt: ") + .append(toIndentedString(scheduledCompensationAt)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -379,21 +428,25 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of NegativeBalanceCompensationWarningNotificationData given an JSON string * * @param jsonString JSON string * @return An instance of NegativeBalanceCompensationWarningNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to NegativeBalanceCompensationWarningNotificationData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * NegativeBalanceCompensationWarningNotificationData */ - public static NegativeBalanceCompensationWarningNotificationData fromJson(String jsonString) throws JsonProcessingException { - return JSON.getMapper().readValue(jsonString, NegativeBalanceCompensationWarningNotificationData.class); + public static NegativeBalanceCompensationWarningNotificationData fromJson(String jsonString) + throws JsonProcessingException { + return JSON.getMapper() + .readValue(jsonString, NegativeBalanceCompensationWarningNotificationData.class); } -/** - * Convert an instance of NegativeBalanceCompensationWarningNotificationData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of NegativeBalanceCompensationWarningNotificationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceCompensationWarningNotificationRequest.java b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceCompensationWarningNotificationRequest.java index 640b1a3fa..2add2d2cf 100644 --- a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceCompensationWarningNotificationRequest.java +++ b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceCompensationWarningNotificationRequest.java @@ -1,41 +1,34 @@ /* - * Negative balance compensation warning + * Negative balance compensation warning * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.negativebalancewarningwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.negativebalancewarningwebhooks.NegativeBalanceCompensationWarningNotificationData; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * NegativeBalanceCompensationWarningNotificationRequest - */ +/** NegativeBalanceCompensationWarningNotificationRequest */ @JsonPropertyOrder({ NegativeBalanceCompensationWarningNotificationRequest.JSON_PROPERTY_DATA, NegativeBalanceCompensationWarningNotificationRequest.JSON_PROPERTY_ENVIRONMENT, NegativeBalanceCompensationWarningNotificationRequest.JSON_PROPERTY_TIMESTAMP, NegativeBalanceCompensationWarningNotificationRequest.JSON_PROPERTY_TYPE }) - public class NegativeBalanceCompensationWarningNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private NegativeBalanceCompensationWarningNotificationData data; @@ -46,19 +39,17 @@ public class NegativeBalanceCompensationWarningNotificationRequest { public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; private OffsetDateTime timestamp; - /** - * Type of webhook. - */ + /** Type of webhook. */ public enum TypeEnum { - - BALANCEPLATFORM_NEGATIVEBALANCECOMPENSATIONWARNING_SCHEDULED(String.valueOf("balancePlatform.negativeBalanceCompensationWarning.scheduled")); + BALANCEPLATFORM_NEGATIVEBALANCECOMPENSATIONWARNING_SCHEDULED( + String.valueOf("balancePlatform.negativeBalanceCompensationWarning.scheduled")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -79,7 +70,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -87,23 +82,25 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public NegativeBalanceCompensationWarningNotificationRequest() { - } + public NegativeBalanceCompensationWarningNotificationRequest() {} /** * data * - * @param data - * @return the current {@code NegativeBalanceCompensationWarningNotificationRequest} instance, allowing for method chaining + * @param data + * @return the current {@code NegativeBalanceCompensationWarningNotificationRequest} instance, + * allowing for method chaining */ - public NegativeBalanceCompensationWarningNotificationRequest data(NegativeBalanceCompensationWarningNotificationData data) { + public NegativeBalanceCompensationWarningNotificationRequest data( + NegativeBalanceCompensationWarningNotificationData data) { this.data = data; return this; } /** * Get data - * @return data + * + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,7 +111,7 @@ public NegativeBalanceCompensationWarningNotificationData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,10 +120,12 @@ public void setData(NegativeBalanceCompensationWarningNotificationData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. - * @return the current {@code NegativeBalanceCompensationWarningNotificationRequest} instance, allowing for method chaining + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. + * @return the current {@code NegativeBalanceCompensationWarningNotificationRequest} instance, + * allowing for method chaining */ public NegativeBalanceCompensationWarningNotificationRequest environment(String environment) { this.environment = environment; @@ -134,8 +133,10 @@ public NegativeBalanceCompensationWarningNotificationRequest environment(String } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * + * @return environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,9 +145,10 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,7 +160,8 @@ public void setEnvironment(String environment) { * When the event was queued. * * @param timestamp When the event was queued. - * @return the current {@code NegativeBalanceCompensationWarningNotificationRequest} instance, allowing for method chaining + * @return the current {@code NegativeBalanceCompensationWarningNotificationRequest} instance, + * allowing for method chaining */ public NegativeBalanceCompensationWarningNotificationRequest timestamp(OffsetDateTime timestamp) { this.timestamp = timestamp; @@ -167,6 +170,7 @@ public NegativeBalanceCompensationWarningNotificationRequest timestamp(OffsetDat /** * When the event was queued. + * * @return timestamp When the event was queued. */ @JsonProperty(JSON_PROPERTY_TIMESTAMP) @@ -190,7 +194,8 @@ public void setTimestamp(OffsetDateTime timestamp) { * Type of webhook. * * @param type Type of webhook. - * @return the current {@code NegativeBalanceCompensationWarningNotificationRequest} instance, allowing for method chaining + * @return the current {@code NegativeBalanceCompensationWarningNotificationRequest} instance, + * allowing for method chaining */ public NegativeBalanceCompensationWarningNotificationRequest type(TypeEnum type) { this.type = type; @@ -199,6 +204,7 @@ public NegativeBalanceCompensationWarningNotificationRequest type(TypeEnum type) /** * Type of webhook. + * * @return type Type of webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -229,11 +235,15 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - NegativeBalanceCompensationWarningNotificationRequest negativeBalanceCompensationWarningNotificationRequest = (NegativeBalanceCompensationWarningNotificationRequest) o; - return Objects.equals(this.data, negativeBalanceCompensationWarningNotificationRequest.data) && - Objects.equals(this.environment, negativeBalanceCompensationWarningNotificationRequest.environment) && - Objects.equals(this.timestamp, negativeBalanceCompensationWarningNotificationRequest.timestamp) && - Objects.equals(this.type, negativeBalanceCompensationWarningNotificationRequest.type); + NegativeBalanceCompensationWarningNotificationRequest + negativeBalanceCompensationWarningNotificationRequest = + (NegativeBalanceCompensationWarningNotificationRequest) o; + return Objects.equals(this.data, negativeBalanceCompensationWarningNotificationRequest.data) + && Objects.equals( + this.environment, negativeBalanceCompensationWarningNotificationRequest.environment) + && Objects.equals( + this.timestamp, negativeBalanceCompensationWarningNotificationRequest.timestamp) + && Objects.equals(this.type, negativeBalanceCompensationWarningNotificationRequest.type); } @Override @@ -254,8 +264,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -264,21 +273,26 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** - * Create an instance of NegativeBalanceCompensationWarningNotificationRequest given an JSON string + /** + * Create an instance of NegativeBalanceCompensationWarningNotificationRequest given an JSON + * string * * @param jsonString JSON string * @return An instance of NegativeBalanceCompensationWarningNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to NegativeBalanceCompensationWarningNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * NegativeBalanceCompensationWarningNotificationRequest */ - public static NegativeBalanceCompensationWarningNotificationRequest fromJson(String jsonString) throws JsonProcessingException { - return JSON.getMapper().readValue(jsonString, NegativeBalanceCompensationWarningNotificationRequest.class); + public static NegativeBalanceCompensationWarningNotificationRequest fromJson(String jsonString) + throws JsonProcessingException { + return JSON.getMapper() + .readValue(jsonString, NegativeBalanceCompensationWarningNotificationRequest.class); } -/** - * Convert an instance of NegativeBalanceCompensationWarningNotificationRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of NegativeBalanceCompensationWarningNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceWarningWebhooksHandler.java b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceWarningWebhooksHandler.java index e9986c223..398a02235 100644 --- a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceWarningWebhooksHandler.java +++ b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceWarningWebhooksHandler.java @@ -1,8 +1,8 @@ /* - * Negative balance compensation warning + * Negative balance compensation warning * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,63 +16,68 @@ /** * Handler for processing NegativeBalanceWarningWebhooks. - *

- * This class provides functionality to deserialize the payload of NegativeBalanceWarningWebhooks events. + * + *

This class provides functionality to deserialize the payload of NegativeBalanceWarningWebhooks + * events. */ public class NegativeBalanceWarningWebhooksHandler { - private static final Logger LOG = Logger.getLogger(NegativeBalanceWarningWebhooksHandler.class.getName()); + private static final Logger LOG = + Logger.getLogger(NegativeBalanceWarningWebhooksHandler.class.getName()); - private final String payload; + private final String payload; - /** - * Constructs a new handler for the given webhook payload - * - * @param payload the raw JSON payload from the webhook - */ - public NegativeBalanceWarningWebhooksHandler(String payload) { - this.payload = payload; - } + /** + * Constructs a new handler for the given webhook payload + * + * @param payload the raw JSON payload from the webhook + */ + public NegativeBalanceWarningWebhooksHandler(String payload) { + this.payload = payload; + } - /** - * Attempts to deserialize the webhook payload into a NegativeBalanceCompensationWarningNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getNegativeBalanceCompensationWarningNotificationRequest() { + /** + * Attempts to deserialize the webhook payload into a + * NegativeBalanceCompensationWarningNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional + getNegativeBalanceCompensationWarningNotificationRequest() { - var optionalNegativeBalanceCompensationWarningNotificationRequest = getOptionalField(NegativeBalanceCompensationWarningNotificationRequest.class); + var optionalNegativeBalanceCompensationWarningNotificationRequest = + getOptionalField(NegativeBalanceCompensationWarningNotificationRequest.class); - if(optionalNegativeBalanceCompensationWarningNotificationRequest.isPresent()) { - // verify event type - for (var value : NegativeBalanceCompensationWarningNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalNegativeBalanceCompensationWarningNotificationRequest.get().getType())) { - // found matching event type - return optionalNegativeBalanceCompensationWarningNotificationRequest; - } - } + if (optionalNegativeBalanceCompensationWarningNotificationRequest.isPresent()) { + // verify event type + for (var value : NegativeBalanceCompensationWarningNotificationRequest.TypeEnum.values()) { + if (value.equals( + optionalNegativeBalanceCompensationWarningNotificationRequest.get().getType())) { + // found matching event type + return optionalNegativeBalanceCompensationWarningNotificationRequest; } - - return Optional.empty(); + } } - /** - * Deserializes the payload into the specified class type. - * - * @param clazz the class to deserialize into - * @param the type of the class - * @return an Optional containing the deserialized object, or empty if an error occurs - */ - private Optional getOptionalField(Class clazz) { - try { - T val = JSON.getMapper().readValue(payload, clazz); - return Optional.ofNullable(val); - } catch (Exception e) { - // an error has occurred during deserialization (object not found, deserialization error) - LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); - LOG.warning("Deserialization error: " + e.getMessage()); - return Optional.empty(); - } - } + return Optional.empty(); + } -} \ No newline at end of file + /** + * Deserializes the payload into the specified class type. + * + * @param clazz the class to deserialize into + * @param the type of the class + * @return an Optional containing the deserialized object, or empty if an error occurs + */ + private Optional getOptionalField(Class clazz) { + try { + T val = JSON.getMapper().readValue(payload, clazz); + return Optional.ofNullable(val); + } catch (Exception e) { + // an error has occurred during deserialization (object not found, deserialization error) + LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); + LOG.warning("Deserialization error: " + e.getMessage()); + return Optional.empty(); + } + } +} diff --git a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/Resource.java b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/Resource.java index aa32c466e..5e4717104 100644 --- a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/Resource.java +++ b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/Resource.java @@ -1,39 +1,29 @@ /* - * Negative balance compensation warning + * Negative balance compensation warning * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.negativebalancewarningwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.time.OffsetDateTime; +import java.util.*; - -/** - * Resource - */ +/** Resource */ @JsonPropertyOrder({ Resource.JSON_PROPERTY_BALANCE_PLATFORM, Resource.JSON_PROPERTY_CREATION_DATE, Resource.JSON_PROPERTY_ID }) - public class Resource { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; @@ -44,8 +34,7 @@ public class Resource { public static final String JSON_PROPERTY_ID = "id"; private String id; - public Resource() { - } + public Resource() {} /** * The unique identifier of the balance platform. @@ -60,6 +49,7 @@ public Resource balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. + * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -80,9 +70,11 @@ public void setBalancePlatform(String balancePlatform) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code Resource} instance, allowing for method chaining */ public Resource creationDate(OffsetDateTime creationDate) { @@ -91,8 +83,11 @@ public Resource creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. + * + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,9 +96,11 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,6 +121,7 @@ public Resource id(String id) { /** * The ID of the resource. + * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -143,9 +141,7 @@ public void setId(String id) { this.id = id; } - /** - * Return true if this Resource object is equal to o. - */ + /** Return true if this Resource object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -155,9 +151,9 @@ public boolean equals(Object o) { return false; } Resource resource = (Resource) o; - return Objects.equals(this.balancePlatform, resource.balancePlatform) && - Objects.equals(this.creationDate, resource.creationDate) && - Objects.equals(this.id, resource.id); + return Objects.equals(this.balancePlatform, resource.balancePlatform) + && Objects.equals(this.creationDate, resource.creationDate) + && Objects.equals(this.id, resource.id); } @Override @@ -177,8 +173,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -187,7 +182,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Resource given an JSON string * * @param jsonString JSON string @@ -197,11 +192,12 @@ private String toIndentedString(Object o) { public static Resource fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Resource.class); } -/** - * Convert an instance of Resource to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Resource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/ResourceReference.java b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/ResourceReference.java index 10749e5ef..1cb999a8c 100644 --- a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/ResourceReference.java +++ b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/ResourceReference.java @@ -1,38 +1,28 @@ /* - * Negative balance compensation warning + * Negative balance compensation warning * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.negativebalancewarningwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ResourceReference - */ +/** ResourceReference */ @JsonPropertyOrder({ ResourceReference.JSON_PROPERTY_DESCRIPTION, ResourceReference.JSON_PROPERTY_ID, ResourceReference.JSON_PROPERTY_REFERENCE }) - public class ResourceReference { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -43,8 +33,7 @@ public class ResourceReference { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public ResourceReference() { - } + public ResourceReference() {} /** * The description of the resource. @@ -59,6 +48,7 @@ public ResourceReference description(String description) { /** * The description of the resource. + * * @return description The description of the resource. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -91,6 +81,7 @@ public ResourceReference id(String id) { /** * The unique identifier of the resource. + * * @return id The unique identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -123,6 +114,7 @@ public ResourceReference reference(String reference) { /** * The reference for the resource. + * * @return reference The reference for the resource. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -142,9 +134,7 @@ public void setReference(String reference) { this.reference = reference; } - /** - * Return true if this ResourceReference object is equal to o. - */ + /** Return true if this ResourceReference object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +144,9 @@ public boolean equals(Object o) { return false; } ResourceReference resourceReference = (ResourceReference) o; - return Objects.equals(this.description, resourceReference.description) && - Objects.equals(this.id, resourceReference.id) && - Objects.equals(this.reference, resourceReference.reference); + return Objects.equals(this.description, resourceReference.description) + && Objects.equals(this.id, resourceReference.id) + && Objects.equals(this.reference, resourceReference.reference); } @Override @@ -176,8 +166,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +175,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResourceReference given an JSON string * * @param jsonString JSON string @@ -196,11 +185,12 @@ private String toIndentedString(Object o) { public static ResourceReference fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResourceReference.class); } -/** - * Convert an instance of ResourceReference to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResourceReference to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/nexo/PredefinedContentHelper.java b/src/main/java/com/adyen/model/nexo/PredefinedContentHelper.java index 3feb49c7c..eff0d4e1b 100644 --- a/src/main/java/com/adyen/model/nexo/PredefinedContentHelper.java +++ b/src/main/java/com/adyen/model/nexo/PredefinedContentHelper.java @@ -1,6 +1,5 @@ package com.adyen.model.nexo; -import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.nio.charset.StandardCharsets; import java.util.Collections; @@ -9,137 +8,141 @@ import java.util.Optional; /** - * A helper class to parse and manage the key-value pairs within a PredefinedContent referenceID string. - * The referenceID is expected to be in a URL query string format (e.g., {@code key1=value1&key2=value2}). + * A helper class to parse and manage the key-value pairs within a PredefinedContent referenceID + * string. The referenceID is expected to be in a URL query string format (e.g., {@code + * key1=value1&key2=value2}). */ public final class PredefinedContentHelper { - private static final String KEY_EVENT = "event"; - private static final String KEY_TRANSACTION_ID = "TransactionID"; - private static final String KEY_TIME_STAMP = "TimeStamp"; + private static final String KEY_EVENT = "event"; + private static final String KEY_TRANSACTION_ID = "TransactionID"; + private static final String KEY_TIME_STAMP = "TimeStamp"; - /** - * Defines the supported events for display notifications within a PredefinedContent reference ID. - */ - public enum DisplayNotificationEvent { - TENDER_CREATED, - CARD_INSERTED, - CARD_PRESENTED, - CARD_SWIPED, - WAIT_FOR_APP_SELECTION, - APPLICATION_SELECTED, - ASK_SIGNATURE, - CHECK_SIGNATURE, - SIGNATURE_CHECKED, - WAIT_FOR_PIN, - PIN_ENTERED, - PRINT_RECEIPT, - RECEIPT_PRINTED, - CARD_REMOVED, - TENDER_FINAL, - ASK_DCC, - DCC_ACCEPTED, - DCC_REJECTED, - ASK_GRATUITY, - GRATUITY_ENTERED, - BALANCE_QUERY_STARTED, - BALANCE_QUERY_COMPLETED, - LOAD_STARTED, - LOAD_COMPLETED, - PROVIDE_CARD_DETAILS, - CARD_DETAILS_PROVIDED - } + /** + * Defines the supported events for display notifications within a PredefinedContent reference ID. + */ + public enum DisplayNotificationEvent { + TENDER_CREATED, + CARD_INSERTED, + CARD_PRESENTED, + CARD_SWIPED, + WAIT_FOR_APP_SELECTION, + APPLICATION_SELECTED, + ASK_SIGNATURE, + CHECK_SIGNATURE, + SIGNATURE_CHECKED, + WAIT_FOR_PIN, + PIN_ENTERED, + PRINT_RECEIPT, + RECEIPT_PRINTED, + CARD_REMOVED, + TENDER_FINAL, + ASK_DCC, + DCC_ACCEPTED, + DCC_REJECTED, + ASK_GRATUITY, + GRATUITY_ENTERED, + BALANCE_QUERY_STARTED, + BALANCE_QUERY_COMPLETED, + LOAD_STARTED, + LOAD_COMPLETED, + PROVIDE_CARD_DETAILS, + CARD_DETAILS_PROVIDED + } - private final Map params; + private final Map params; - /** - * Constructs a helper instance by parsing the provided reference ID. - * - * @param referenceId The string from {@link PredefinedContent#getReferenceID()}, - * expected to be in URL query string format. - */ - public PredefinedContentHelper(String referenceId) { - this.params = parse(referenceId); - } + /** + * Constructs a helper instance by parsing the provided reference ID. + * + * @param referenceId The string from {@link PredefinedContent#getReferenceID()}, expected to be + * in URL query string format. + */ + public PredefinedContentHelper(String referenceId) { + this.params = parse(referenceId); + } - /** - * Extracts and validates the 'event' value from the reference ID. - * - * @return An {@link Optional} containing the {@link DisplayNotificationEvent} if it is present and valid, - * otherwise an empty Optional. - *

{@code
-     * PredefinedContentHelper helper = new PredefinedContentHelper("...&event=PIN_ENTERED");
-     * helper.getEvent().ifPresent(event -> System.out.println(event)); // Prints PIN_ENTERED
-     * }
- */ - public Optional getEvent() { - return get(KEY_EVENT).flatMap(eventValue -> { - try { + /** + * Extracts and validates the 'event' value from the reference ID. + * + * @return An {@link Optional} containing the {@link DisplayNotificationEvent} if it is present + * and valid, otherwise an empty Optional. + *
{@code
+   * PredefinedContentHelper helper = new PredefinedContentHelper("...&event=PIN_ENTERED");
+   * helper.getEvent().ifPresent(event -> System.out.println(event)); // Prints PIN_ENTERED
+   * }
+ */ + public Optional getEvent() { + return get(KEY_EVENT) + .flatMap( + eventValue -> { + try { return Optional.of(DisplayNotificationEvent.valueOf(eventValue)); - } catch (IllegalArgumentException e) { + } catch (IllegalArgumentException e) { return Optional.empty(); // The event string is not a valid enum constant - } - }); - } + } + }); + } - /** - * Gets the transaction ID from the reference ID. - * - * @return An {@link Optional} containing the TransactionID, or an empty Optional if not present. - */ - public Optional getTransactionId() { - return get(KEY_TRANSACTION_ID); - } + /** + * Gets the transaction ID from the reference ID. + * + * @return An {@link Optional} containing the TransactionID, or an empty Optional if not present. + */ + public Optional getTransactionId() { + return get(KEY_TRANSACTION_ID); + } - /** - * Gets the timestamp from the reference ID. - * - * @return An {@link Optional} containing the TimeStamp, or an empty Optional if not present. - */ - public Optional getTimeStamp() { - return get(KEY_TIME_STAMP); - } + /** + * Gets the timestamp from the reference ID. + * + * @return An {@link Optional} containing the TimeStamp, or an empty Optional if not present. + */ + public Optional getTimeStamp() { + return get(KEY_TIME_STAMP); + } - /** - * Gets the value for a given key from the reference ID. - * - * @param key The name of the parameter to retrieve. - * @return An {@link Optional} containing the parameter's value, or an empty Optional if not present. - */ - public Optional get(String key) { - return Optional.ofNullable(params.get(key)); - } + /** + * Gets the value for a given key from the reference ID. + * + * @param key The name of the parameter to retrieve. + * @return An {@link Optional} containing the parameter's value, or an empty Optional if not + * present. + */ + public Optional get(String key) { + return Optional.ofNullable(params.get(key)); + } - /** - * Returns an unmodifiable view of all parsed parameters. - * - * @return An unmodifiable {@link Map} of all key-value pairs from the reference ID. - */ - public Map toMap() { - return Collections.unmodifiableMap(params); - } + /** + * Returns an unmodifiable view of all parsed parameters. + * + * @return An unmodifiable {@link Map} of all key-value pairs from the reference ID. + */ + public Map toMap() { + return Collections.unmodifiableMap(params); + } - /** - * Parses a URL query-like string into a map. - * - * @param referenceId The string to parse. - * @return A map of the parsed key-value pairs. - */ - private static Map parse(String referenceId) { - if (referenceId == null || referenceId.trim().isEmpty()) { - return Collections.emptyMap(); - } + /** + * Parses a URL query-like string into a map. + * + * @param referenceId The string to parse. + * @return A map of the parsed key-value pairs. + */ + private static Map parse(String referenceId) { + if (referenceId == null || referenceId.trim().isEmpty()) { + return Collections.emptyMap(); + } - Map queryPairs = new LinkedHashMap<>(); - String[] pairs = referenceId.split("&"); - for (String pair : pairs) { - int idx = pair.indexOf("="); - if (idx > 0 && idx < pair.length() - 1) { - String key = URLDecoder.decode(pair.substring(0, idx), StandardCharsets.UTF_8); - String value = URLDecoder.decode(pair.substring(idx + 1), StandardCharsets.UTF_8); - queryPairs.put(key, value); - } - } - return queryPairs; + Map queryPairs = new LinkedHashMap<>(); + String[] pairs = referenceId.split("&"); + for (String pair : pairs) { + int idx = pair.indexOf("="); + if (idx > 0 && idx < pair.length() - 1) { + String key = URLDecoder.decode(pair.substring(0, idx), StandardCharsets.UTF_8); + String value = URLDecoder.decode(pair.substring(idx + 1), StandardCharsets.UTF_8); + queryPairs.put(key, value); + } } -} \ No newline at end of file + return queryPairs; + } +} diff --git a/src/main/java/com/adyen/model/payment/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/payment/AbstractOpenApiSchema.java index 870b4a178..1d8492f33 100644 --- a/src/main/java/com/adyen/model/payment/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/payment/AbstractOpenApiSchema.java @@ -2,145 +2,141 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.Objects; -import java.util.Map; -import jakarta.ws.rs.core.GenericType; - import com.fasterxml.jackson.annotation.JsonValue; +import jakarta.ws.rs.core.GenericType; +import java.util.Map; +import java.util.Objects; -/** - * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec - */ +/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() {return instance;} - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) {this.instance = instance;} - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); - } else { - return object.getActualInstance(); - } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() { + return instance; + } + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) { + this.instance = instance; + } + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf + * schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); + } else { + return object.getActualInstance(); } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) && - Objects.equals(this.isNullable, a.isNullable) && - Objects.equals(this.schemaType, a.schemaType); + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; } + return o.toString().replace("\n", "\n "); + } - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); + public boolean equals(Object o) { + if (this == o) { + return true; } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); + if (o == null || getClass() != o.getClass()) { + return false; } - - - -} \ No newline at end of file + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) + && Objects.equals(this.isNullable, a.isNullable) + && Objects.equals(this.schemaType, a.schemaType); + } + + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); + } + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); + } +} diff --git a/src/main/java/com/adyen/model/payment/AccountInfo.java b/src/main/java/com/adyen/model/payment/AccountInfo.java index 349b33153..4b204b5ba 100644 --- a/src/main/java/com/adyen/model/payment/AccountInfo.java +++ b/src/main/java/com/adyen/model/payment/AccountInfo.java @@ -2,32 +2,27 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * AccountInfo - */ +/** AccountInfo */ @JsonPropertyOrder({ AccountInfo.JSON_PROPERTY_ACCOUNT_AGE_INDICATOR, AccountInfo.JSON_PROPERTY_ACCOUNT_CHANGE_DATE, @@ -49,13 +44,13 @@ AccountInfo.JSON_PROPERTY_SUSPICIOUS_ACTIVITY, AccountInfo.JSON_PROPERTY_WORK_PHONE }) - public class AccountInfo { /** - * Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this shopper account was created in the merchant's + * environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * + * from30To60Days * moreThan60Days */ public enum AccountAgeIndicatorEnum { - NOTAPPLICABLE(String.valueOf("notApplicable")), THISTRANSACTION(String.valueOf("thisTransaction")), @@ -71,7 +66,7 @@ public enum AccountAgeIndicatorEnum { private String value; AccountAgeIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -92,7 +87,11 @@ public static AccountAgeIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AccountAgeIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AccountAgeIndicatorEnum.values())); + LOG.warning( + "AccountAgeIndicatorEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AccountAgeIndicatorEnum.values())); return null; } } @@ -104,10 +103,10 @@ public static AccountAgeIndicatorEnum fromValue(String value) { private OffsetDateTime accountChangeDate; /** - * Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since the shopper's account was last updated. Allowed + * values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ public enum AccountChangeIndicatorEnum { - THISTRANSACTION(String.valueOf("thisTransaction")), LESSTHAN30DAYS(String.valueOf("lessThan30Days")), @@ -121,7 +120,7 @@ public enum AccountChangeIndicatorEnum { private String value; AccountChangeIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -142,7 +141,11 @@ public static AccountChangeIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AccountChangeIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AccountChangeIndicatorEnum.values())); + LOG.warning( + "AccountChangeIndicatorEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AccountChangeIndicatorEnum.values())); return null; } } @@ -154,10 +157,10 @@ public static AccountChangeIndicatorEnum fromValue(String value) { private OffsetDateTime accountCreationDate; /** - * Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit + * Indicates the type of account. For example, for a multi-account card product. Allowed values: * + * notApplicable * credit * debit */ public enum AccountTypeEnum { - NOTAPPLICABLE(String.valueOf("notApplicable")), CREDIT(String.valueOf("credit")), @@ -169,7 +172,7 @@ public enum AccountTypeEnum { private String value; AccountTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -190,7 +193,11 @@ public static AccountTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AccountTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AccountTypeEnum.values())); + LOG.warning( + "AccountTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AccountTypeEnum.values())); return null; } } @@ -205,10 +212,10 @@ public static AccountTypeEnum fromValue(String value) { private OffsetDateTime deliveryAddressUsageDate; /** - * Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this delivery address was first used. Allowed values: * + * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ public enum DeliveryAddressUsageIndicatorEnum { - THISTRANSACTION(String.valueOf("thisTransaction")), LESSTHAN30DAYS(String.valueOf("lessThan30Days")), @@ -217,12 +224,13 @@ public enum DeliveryAddressUsageIndicatorEnum { MORETHAN60DAYS(String.valueOf("moreThan60Days")); - private static final Logger LOG = Logger.getLogger(DeliveryAddressUsageIndicatorEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(DeliveryAddressUsageIndicatorEnum.class.getName()); private String value; DeliveryAddressUsageIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -243,30 +251,37 @@ public static DeliveryAddressUsageIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("DeliveryAddressUsageIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(DeliveryAddressUsageIndicatorEnum.values())); + LOG.warning( + "DeliveryAddressUsageIndicatorEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(DeliveryAddressUsageIndicatorEnum.values())); return null; } } - public static final String JSON_PROPERTY_DELIVERY_ADDRESS_USAGE_INDICATOR = "deliveryAddressUsageIndicator"; + public static final String JSON_PROPERTY_DELIVERY_ADDRESS_USAGE_INDICATOR = + "deliveryAddressUsageIndicator"; private DeliveryAddressUsageIndicatorEnum deliveryAddressUsageIndicator; public static final String JSON_PROPERTY_HOME_PHONE = "homePhone"; - @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.homePhone` instead. + @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.homePhone` + // instead. private String homePhone; public static final String JSON_PROPERTY_MOBILE_PHONE = "mobilePhone"; - @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.mobilePhone` instead. + @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.mobilePhone` + // instead. private String mobilePhone; public static final String JSON_PROPERTY_PASSWORD_CHANGE_DATE = "passwordChangeDate"; private OffsetDateTime passwordChangeDate; /** - * Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator when the shopper has changed their password. Allowed values: * notApplicable * + * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ public enum PasswordChangeIndicatorEnum { - NOTAPPLICABLE(String.valueOf("notApplicable")), THISTRANSACTION(String.valueOf("thisTransaction")), @@ -282,7 +297,7 @@ public enum PasswordChangeIndicatorEnum { private String value; PasswordChangeIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -303,7 +318,11 @@ public static PasswordChangeIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PasswordChangeIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PasswordChangeIndicatorEnum.values())); + LOG.warning( + "PasswordChangeIndicatorEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PasswordChangeIndicatorEnum.values())); return null; } } @@ -321,10 +340,11 @@ public static PasswordChangeIndicatorEnum fromValue(String value) { private OffsetDateTime paymentAccountAge; /** - * Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this payment method was added to this shopper's + * account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * + * moreThan60Days */ public enum PaymentAccountIndicatorEnum { - NOTAPPLICABLE(String.valueOf("notApplicable")), THISTRANSACTION(String.valueOf("thisTransaction")), @@ -340,7 +360,7 @@ public enum PaymentAccountIndicatorEnum { private String value; PaymentAccountIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -361,7 +381,11 @@ public static PaymentAccountIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PaymentAccountIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PaymentAccountIndicatorEnum.values())); + LOG.warning( + "PaymentAccountIndicatorEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PaymentAccountIndicatorEnum.values())); return null; } } @@ -376,16 +400,20 @@ public static PaymentAccountIndicatorEnum fromValue(String value) { private Boolean suspiciousActivity; public static final String JSON_PROPERTY_WORK_PHONE = "workPhone"; - @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.workPhone` instead. + @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.workPhone` + // instead. private String workPhone; - public AccountInfo() { - } + public AccountInfo() {} /** - * Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this shopper account was created in the merchant's + * environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * + * from30To60Days * moreThan60Days * - * @param accountAgeIndicator Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @param accountAgeIndicator Indicator for the length of time since this shopper account was + * created in the merchant's environment. Allowed values: * notApplicable * + * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * @return the current {@code AccountInfo} instance, allowing for method chaining */ public AccountInfo accountAgeIndicator(AccountAgeIndicatorEnum accountAgeIndicator) { @@ -394,8 +422,13 @@ public AccountInfo accountAgeIndicator(AccountAgeIndicatorEnum accountAgeIndicat } /** - * Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days - * @return accountAgeIndicator Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this shopper account was created in the merchant's + * environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * + * from30To60Days * moreThan60Days + * + * @return accountAgeIndicator Indicator for the length of time since this shopper account was + * created in the merchant's environment. Allowed values: * notApplicable * + * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ @JsonProperty(JSON_PROPERTY_ACCOUNT_AGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -404,9 +437,13 @@ public AccountAgeIndicatorEnum getAccountAgeIndicator() { } /** - * Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this shopper account was created in the merchant's + * environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * + * from30To60Days * moreThan60Days * - * @param accountAgeIndicator Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @param accountAgeIndicator Indicator for the length of time since this shopper account was + * created in the merchant's environment. Allowed values: * notApplicable * + * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ @JsonProperty(JSON_PROPERTY_ACCOUNT_AGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -427,6 +464,7 @@ public AccountInfo accountChangeDate(OffsetDateTime accountChangeDate) { /** * Date when the shopper's account was last changed. + * * @return accountChangeDate Date when the shopper's account was last changed. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_CHANGE_DATE) @@ -447,9 +485,12 @@ public void setAccountChangeDate(OffsetDateTime accountChangeDate) { } /** - * Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since the shopper's account was last updated. Allowed + * values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * - * @param accountChangeIndicator Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @param accountChangeIndicator Indicator for the length of time since the shopper's account + * was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * + * moreThan60Days * @return the current {@code AccountInfo} instance, allowing for method chaining */ public AccountInfo accountChangeIndicator(AccountChangeIndicatorEnum accountChangeIndicator) { @@ -458,8 +499,12 @@ public AccountInfo accountChangeIndicator(AccountChangeIndicatorEnum accountChan } /** - * Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days - * @return accountChangeIndicator Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since the shopper's account was last updated. Allowed + * values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * + * @return accountChangeIndicator Indicator for the length of time since the shopper's account + * was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * + * moreThan60Days */ @JsonProperty(JSON_PROPERTY_ACCOUNT_CHANGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -468,9 +513,12 @@ public AccountChangeIndicatorEnum getAccountChangeIndicator() { } /** - * Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since the shopper's account was last updated. Allowed + * values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * - * @param accountChangeIndicator Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @param accountChangeIndicator Indicator for the length of time since the shopper's account + * was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * + * moreThan60Days */ @JsonProperty(JSON_PROPERTY_ACCOUNT_CHANGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -491,6 +539,7 @@ public AccountInfo accountCreationDate(OffsetDateTime accountCreationDate) { /** * Date when the shopper's account was created. + * * @return accountCreationDate Date when the shopper's account was created. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_CREATION_DATE) @@ -511,9 +560,11 @@ public void setAccountCreationDate(OffsetDateTime accountCreationDate) { } /** - * Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit + * Indicates the type of account. For example, for a multi-account card product. Allowed values: * + * notApplicable * credit * debit * - * @param accountType Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit + * @param accountType Indicates the type of account. For example, for a multi-account card + * product. Allowed values: * notApplicable * credit * debit * @return the current {@code AccountInfo} instance, allowing for method chaining */ public AccountInfo accountType(AccountTypeEnum accountType) { @@ -522,8 +573,11 @@ public AccountInfo accountType(AccountTypeEnum accountType) { } /** - * Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit - * @return accountType Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit + * Indicates the type of account. For example, for a multi-account card product. Allowed values: * + * notApplicable * credit * debit + * + * @return accountType Indicates the type of account. For example, for a multi-account card + * product. Allowed values: * notApplicable * credit * debit */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -532,9 +586,11 @@ public AccountTypeEnum getAccountType() { } /** - * Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit + * Indicates the type of account. For example, for a multi-account card product. Allowed values: * + * notApplicable * credit * debit * - * @param accountType Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit + * @param accountType Indicates the type of account. For example, for a multi-account card + * product. Allowed values: * notApplicable * credit * debit */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -545,7 +601,8 @@ public void setAccountType(AccountTypeEnum accountType) { /** * Number of attempts the shopper tried to add a card to their account in the last day. * - * @param addCardAttemptsDay Number of attempts the shopper tried to add a card to their account in the last day. + * @param addCardAttemptsDay Number of attempts the shopper tried to add a card to their account + * in the last day. * @return the current {@code AccountInfo} instance, allowing for method chaining */ public AccountInfo addCardAttemptsDay(Integer addCardAttemptsDay) { @@ -555,7 +612,9 @@ public AccountInfo addCardAttemptsDay(Integer addCardAttemptsDay) { /** * Number of attempts the shopper tried to add a card to their account in the last day. - * @return addCardAttemptsDay Number of attempts the shopper tried to add a card to their account in the last day. + * + * @return addCardAttemptsDay Number of attempts the shopper tried to add a card to their account + * in the last day. */ @JsonProperty(JSON_PROPERTY_ADD_CARD_ATTEMPTS_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -566,7 +625,8 @@ public Integer getAddCardAttemptsDay() { /** * Number of attempts the shopper tried to add a card to their account in the last day. * - * @param addCardAttemptsDay Number of attempts the shopper tried to add a card to their account in the last day. + * @param addCardAttemptsDay Number of attempts the shopper tried to add a card to their account + * in the last day. */ @JsonProperty(JSON_PROPERTY_ADD_CARD_ATTEMPTS_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -587,6 +647,7 @@ public AccountInfo deliveryAddressUsageDate(OffsetDateTime deliveryAddressUsageD /** * Date the selected delivery address was first used. + * * @return deliveryAddressUsageDate Date the selected delivery address was first used. */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS_USAGE_DATE) @@ -607,19 +668,27 @@ public void setDeliveryAddressUsageDate(OffsetDateTime deliveryAddressUsageDate) } /** - * Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this delivery address was first used. Allowed values: * + * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * - * @param deliveryAddressUsageIndicator Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @param deliveryAddressUsageIndicator Indicator for the length of time since this delivery + * address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days + * * moreThan60Days * @return the current {@code AccountInfo} instance, allowing for method chaining */ - public AccountInfo deliveryAddressUsageIndicator(DeliveryAddressUsageIndicatorEnum deliveryAddressUsageIndicator) { + public AccountInfo deliveryAddressUsageIndicator( + DeliveryAddressUsageIndicatorEnum deliveryAddressUsageIndicator) { this.deliveryAddressUsageIndicator = deliveryAddressUsageIndicator; return this; } /** - * Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days - * @return deliveryAddressUsageIndicator Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this delivery address was first used. Allowed values: * + * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * + * @return deliveryAddressUsageIndicator Indicator for the length of time since this delivery + * address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days + * * moreThan60Days */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS_USAGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -628,13 +697,17 @@ public DeliveryAddressUsageIndicatorEnum getDeliveryAddressUsageIndicator() { } /** - * Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this delivery address was first used. Allowed values: * + * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * - * @param deliveryAddressUsageIndicator Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @param deliveryAddressUsageIndicator Indicator for the length of time since this delivery + * address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days + * * moreThan60Days */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS_USAGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeliveryAddressUsageIndicator(DeliveryAddressUsageIndicatorEnum deliveryAddressUsageIndicator) { + public void setDeliveryAddressUsageIndicator( + DeliveryAddressUsageIndicatorEnum deliveryAddressUsageIndicator) { this.deliveryAddressUsageIndicator = deliveryAddressUsageIndicator; } @@ -643,11 +716,10 @@ public void setDeliveryAddressUsageIndicator(DeliveryAddressUsageIndicatorEnum d * * @param homePhone Shopper's home phone number (including the country code). * @return the current {@code AccountInfo} instance, allowing for method chaining - * - * @deprecated since Adyen Payment API v68 - * Use `ThreeDS2RequestData.homePhone` instead. + * @deprecated since Adyen Payment API v68 Use `ThreeDS2RequestData.homePhone` instead. */ - @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.homePhone` instead. + @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.homePhone` + // instead. public AccountInfo homePhone(String homePhone) { this.homePhone = homePhone; return this; @@ -655,10 +727,13 @@ public AccountInfo homePhone(String homePhone) { /** * Shopper's home phone number (including the country code). + * * @return homePhone Shopper's home phone number (including the country code). - * @deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.homePhone` instead. + * @deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.homePhone` + * instead. */ - @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.homePhone` instead. + @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.homePhone` + // instead. @JsonProperty(JSON_PROPERTY_HOME_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getHomePhone() { @@ -669,11 +744,10 @@ public String getHomePhone() { * Shopper's home phone number (including the country code). * * @param homePhone Shopper's home phone number (including the country code). - * - * @deprecated since Adyen Payment API v68 - * Use `ThreeDS2RequestData.homePhone` instead. + * @deprecated since Adyen Payment API v68 Use `ThreeDS2RequestData.homePhone` instead. */ - @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.homePhone` instead. + @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.homePhone` + // instead. @JsonProperty(JSON_PROPERTY_HOME_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHomePhone(String homePhone) { @@ -685,11 +759,11 @@ public void setHomePhone(String homePhone) { * * @param mobilePhone Shopper's mobile phone number (including the country code). * @return the current {@code AccountInfo} instance, allowing for method chaining - * - * @deprecated since Adyen Payment API v68 - * Use `ThreeDS2RequestData.mobilePhone` instead. + * @deprecated since Adyen Payment API v68 Use `ThreeDS2RequestData.mobilePhone` + * instead. */ - @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.mobilePhone` instead. + @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.mobilePhone` + // instead. public AccountInfo mobilePhone(String mobilePhone) { this.mobilePhone = mobilePhone; return this; @@ -697,10 +771,13 @@ public AccountInfo mobilePhone(String mobilePhone) { /** * Shopper's mobile phone number (including the country code). + * * @return mobilePhone Shopper's mobile phone number (including the country code). - * @deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.mobilePhone` instead. + * @deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.mobilePhone` + * instead. */ - @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.mobilePhone` instead. + @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.mobilePhone` + // instead. @JsonProperty(JSON_PROPERTY_MOBILE_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMobilePhone() { @@ -711,11 +788,11 @@ public String getMobilePhone() { * Shopper's mobile phone number (including the country code). * * @param mobilePhone Shopper's mobile phone number (including the country code). - * - * @deprecated since Adyen Payment API v68 - * Use `ThreeDS2RequestData.mobilePhone` instead. + * @deprecated since Adyen Payment API v68 Use `ThreeDS2RequestData.mobilePhone` + * instead. */ - @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.mobilePhone` instead. + @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.mobilePhone` + // instead. @JsonProperty(JSON_PROPERTY_MOBILE_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMobilePhone(String mobilePhone) { @@ -735,6 +812,7 @@ public AccountInfo passwordChangeDate(OffsetDateTime passwordChangeDate) { /** * Date when the shopper last changed their password. + * * @return passwordChangeDate Date when the shopper last changed their password. */ @JsonProperty(JSON_PROPERTY_PASSWORD_CHANGE_DATE) @@ -755,9 +833,12 @@ public void setPasswordChangeDate(OffsetDateTime passwordChangeDate) { } /** - * Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator when the shopper has changed their password. Allowed values: * notApplicable * + * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * - * @param passwordChangeIndicator Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @param passwordChangeIndicator Indicator when the shopper has changed their password. Allowed + * values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * + * moreThan60Days * @return the current {@code AccountInfo} instance, allowing for method chaining */ public AccountInfo passwordChangeIndicator(PasswordChangeIndicatorEnum passwordChangeIndicator) { @@ -766,8 +847,12 @@ public AccountInfo passwordChangeIndicator(PasswordChangeIndicatorEnum passwordC } /** - * Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days - * @return passwordChangeIndicator Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator when the shopper has changed their password. Allowed values: * notApplicable * + * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * + * @return passwordChangeIndicator Indicator when the shopper has changed their password. Allowed + * values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * + * moreThan60Days */ @JsonProperty(JSON_PROPERTY_PASSWORD_CHANGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -776,9 +861,12 @@ public PasswordChangeIndicatorEnum getPasswordChangeIndicator() { } /** - * Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator when the shopper has changed their password. Allowed values: * notApplicable * + * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days * - * @param passwordChangeIndicator Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @param passwordChangeIndicator Indicator when the shopper has changed their password. Allowed + * values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * + * moreThan60Days */ @JsonProperty(JSON_PROPERTY_PASSWORD_CHANGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -789,7 +877,8 @@ public void setPasswordChangeIndicator(PasswordChangeIndicatorEnum passwordChang /** * Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. * - * @param pastTransactionsDay Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. + * @param pastTransactionsDay Number of all transactions (successful and abandoned) from this + * shopper in the past 24 hours. * @return the current {@code AccountInfo} instance, allowing for method chaining */ public AccountInfo pastTransactionsDay(Integer pastTransactionsDay) { @@ -799,7 +888,9 @@ public AccountInfo pastTransactionsDay(Integer pastTransactionsDay) { /** * Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. - * @return pastTransactionsDay Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. + * + * @return pastTransactionsDay Number of all transactions (successful and abandoned) from this + * shopper in the past 24 hours. */ @JsonProperty(JSON_PROPERTY_PAST_TRANSACTIONS_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -810,7 +901,8 @@ public Integer getPastTransactionsDay() { /** * Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. * - * @param pastTransactionsDay Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. + * @param pastTransactionsDay Number of all transactions (successful and abandoned) from this + * shopper in the past 24 hours. */ @JsonProperty(JSON_PROPERTY_PAST_TRANSACTIONS_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -821,7 +913,8 @@ public void setPastTransactionsDay(Integer pastTransactionsDay) { /** * Number of all transactions (successful and abandoned) from this shopper in the past year. * - * @param pastTransactionsYear Number of all transactions (successful and abandoned) from this shopper in the past year. + * @param pastTransactionsYear Number of all transactions (successful and abandoned) from this + * shopper in the past year. * @return the current {@code AccountInfo} instance, allowing for method chaining */ public AccountInfo pastTransactionsYear(Integer pastTransactionsYear) { @@ -831,7 +924,9 @@ public AccountInfo pastTransactionsYear(Integer pastTransactionsYear) { /** * Number of all transactions (successful and abandoned) from this shopper in the past year. - * @return pastTransactionsYear Number of all transactions (successful and abandoned) from this shopper in the past year. + * + * @return pastTransactionsYear Number of all transactions (successful and abandoned) from this + * shopper in the past year. */ @JsonProperty(JSON_PROPERTY_PAST_TRANSACTIONS_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -842,7 +937,8 @@ public Integer getPastTransactionsYear() { /** * Number of all transactions (successful and abandoned) from this shopper in the past year. * - * @param pastTransactionsYear Number of all transactions (successful and abandoned) from this shopper in the past year. + * @param pastTransactionsYear Number of all transactions (successful and abandoned) from this + * shopper in the past year. */ @JsonProperty(JSON_PROPERTY_PAST_TRANSACTIONS_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -863,6 +959,7 @@ public AccountInfo paymentAccountAge(OffsetDateTime paymentAccountAge) { /** * Date this payment method was added to the shopper's account. + * * @return paymentAccountAge Date this payment method was added to the shopper's account. */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACCOUNT_AGE) @@ -883,9 +980,13 @@ public void setPaymentAccountAge(OffsetDateTime paymentAccountAge) { } /** - * Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this payment method was added to this shopper's + * account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * + * moreThan60Days * - * @param paymentAccountIndicator Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @param paymentAccountIndicator Indicator for the length of time since this payment method was + * added to this shopper's account. Allowed values: * notApplicable * thisTransaction * + * lessThan30Days * from30To60Days * moreThan60Days * @return the current {@code AccountInfo} instance, allowing for method chaining */ public AccountInfo paymentAccountIndicator(PaymentAccountIndicatorEnum paymentAccountIndicator) { @@ -894,8 +995,13 @@ public AccountInfo paymentAccountIndicator(PaymentAccountIndicatorEnum paymentAc } /** - * Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days - * @return paymentAccountIndicator Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this payment method was added to this shopper's + * account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * + * moreThan60Days + * + * @return paymentAccountIndicator Indicator for the length of time since this payment method was + * added to this shopper's account. Allowed values: * notApplicable * thisTransaction * + * lessThan30Days * from30To60Days * moreThan60Days */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACCOUNT_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -904,9 +1010,13 @@ public PaymentAccountIndicatorEnum getPaymentAccountIndicator() { } /** - * Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * Indicator for the length of time since this payment method was added to this shopper's + * account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * + * moreThan60Days * - * @param paymentAccountIndicator Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + * @param paymentAccountIndicator Indicator for the length of time since this payment method was + * added to this shopper's account. Allowed values: * notApplicable * thisTransaction * + * lessThan30Days * from30To60Days * moreThan60Days */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACCOUNT_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -927,6 +1037,7 @@ public AccountInfo purchasesLast6Months(Integer purchasesLast6Months) { /** * Number of successful purchases in the last six months. + * * @return purchasesLast6Months Number of successful purchases in the last six months. */ @JsonProperty(JSON_PROPERTY_PURCHASES_LAST6_MONTHS) @@ -959,6 +1070,7 @@ public AccountInfo suspiciousActivity(Boolean suspiciousActivity) { /** * Whether suspicious activity was recorded on this account. + * * @return suspiciousActivity Whether suspicious activity was recorded on this account. */ @JsonProperty(JSON_PROPERTY_SUSPICIOUS_ACTIVITY) @@ -983,11 +1095,10 @@ public void setSuspiciousActivity(Boolean suspiciousActivity) { * * @param workPhone Shopper's work phone number (including the country code). * @return the current {@code AccountInfo} instance, allowing for method chaining - * - * @deprecated since Adyen Payment API v68 - * Use `ThreeDS2RequestData.workPhone` instead. + * @deprecated since Adyen Payment API v68 Use `ThreeDS2RequestData.workPhone` instead. */ - @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.workPhone` instead. + @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.workPhone` + // instead. public AccountInfo workPhone(String workPhone) { this.workPhone = workPhone; return this; @@ -995,10 +1106,13 @@ public AccountInfo workPhone(String workPhone) { /** * Shopper's work phone number (including the country code). + * * @return workPhone Shopper's work phone number (including the country code). - * @deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.workPhone` instead. + * @deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.workPhone` + * instead. */ - @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.workPhone` instead. + @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.workPhone` + // instead. @JsonProperty(JSON_PROPERTY_WORK_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getWorkPhone() { @@ -1009,20 +1123,17 @@ public String getWorkPhone() { * Shopper's work phone number (including the country code). * * @param workPhone Shopper's work phone number (including the country code). - * - * @deprecated since Adyen Payment API v68 - * Use `ThreeDS2RequestData.workPhone` instead. + * @deprecated since Adyen Payment API v68 Use `ThreeDS2RequestData.workPhone` instead. */ - @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.workPhone` instead. + @Deprecated // deprecated since Adyen Payment API v68: Use `ThreeDS2RequestData.workPhone` + // instead. @JsonProperty(JSON_PROPERTY_WORK_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWorkPhone(String workPhone) { this.workPhone = workPhone; } - /** - * Return true if this AccountInfo object is equal to o. - */ + /** Return true if this AccountInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -1032,53 +1143,93 @@ public boolean equals(Object o) { return false; } AccountInfo accountInfo = (AccountInfo) o; - return Objects.equals(this.accountAgeIndicator, accountInfo.accountAgeIndicator) && - Objects.equals(this.accountChangeDate, accountInfo.accountChangeDate) && - Objects.equals(this.accountChangeIndicator, accountInfo.accountChangeIndicator) && - Objects.equals(this.accountCreationDate, accountInfo.accountCreationDate) && - Objects.equals(this.accountType, accountInfo.accountType) && - Objects.equals(this.addCardAttemptsDay, accountInfo.addCardAttemptsDay) && - Objects.equals(this.deliveryAddressUsageDate, accountInfo.deliveryAddressUsageDate) && - Objects.equals(this.deliveryAddressUsageIndicator, accountInfo.deliveryAddressUsageIndicator) && - Objects.equals(this.homePhone, accountInfo.homePhone) && - Objects.equals(this.mobilePhone, accountInfo.mobilePhone) && - Objects.equals(this.passwordChangeDate, accountInfo.passwordChangeDate) && - Objects.equals(this.passwordChangeIndicator, accountInfo.passwordChangeIndicator) && - Objects.equals(this.pastTransactionsDay, accountInfo.pastTransactionsDay) && - Objects.equals(this.pastTransactionsYear, accountInfo.pastTransactionsYear) && - Objects.equals(this.paymentAccountAge, accountInfo.paymentAccountAge) && - Objects.equals(this.paymentAccountIndicator, accountInfo.paymentAccountIndicator) && - Objects.equals(this.purchasesLast6Months, accountInfo.purchasesLast6Months) && - Objects.equals(this.suspiciousActivity, accountInfo.suspiciousActivity) && - Objects.equals(this.workPhone, accountInfo.workPhone); + return Objects.equals(this.accountAgeIndicator, accountInfo.accountAgeIndicator) + && Objects.equals(this.accountChangeDate, accountInfo.accountChangeDate) + && Objects.equals(this.accountChangeIndicator, accountInfo.accountChangeIndicator) + && Objects.equals(this.accountCreationDate, accountInfo.accountCreationDate) + && Objects.equals(this.accountType, accountInfo.accountType) + && Objects.equals(this.addCardAttemptsDay, accountInfo.addCardAttemptsDay) + && Objects.equals(this.deliveryAddressUsageDate, accountInfo.deliveryAddressUsageDate) + && Objects.equals( + this.deliveryAddressUsageIndicator, accountInfo.deliveryAddressUsageIndicator) + && Objects.equals(this.homePhone, accountInfo.homePhone) + && Objects.equals(this.mobilePhone, accountInfo.mobilePhone) + && Objects.equals(this.passwordChangeDate, accountInfo.passwordChangeDate) + && Objects.equals(this.passwordChangeIndicator, accountInfo.passwordChangeIndicator) + && Objects.equals(this.pastTransactionsDay, accountInfo.pastTransactionsDay) + && Objects.equals(this.pastTransactionsYear, accountInfo.pastTransactionsYear) + && Objects.equals(this.paymentAccountAge, accountInfo.paymentAccountAge) + && Objects.equals(this.paymentAccountIndicator, accountInfo.paymentAccountIndicator) + && Objects.equals(this.purchasesLast6Months, accountInfo.purchasesLast6Months) + && Objects.equals(this.suspiciousActivity, accountInfo.suspiciousActivity) + && Objects.equals(this.workPhone, accountInfo.workPhone); } @Override public int hashCode() { - return Objects.hash(accountAgeIndicator, accountChangeDate, accountChangeIndicator, accountCreationDate, accountType, addCardAttemptsDay, deliveryAddressUsageDate, deliveryAddressUsageIndicator, homePhone, mobilePhone, passwordChangeDate, passwordChangeIndicator, pastTransactionsDay, pastTransactionsYear, paymentAccountAge, paymentAccountIndicator, purchasesLast6Months, suspiciousActivity, workPhone); + return Objects.hash( + accountAgeIndicator, + accountChangeDate, + accountChangeIndicator, + accountCreationDate, + accountType, + addCardAttemptsDay, + deliveryAddressUsageDate, + deliveryAddressUsageIndicator, + homePhone, + mobilePhone, + passwordChangeDate, + passwordChangeIndicator, + pastTransactionsDay, + pastTransactionsYear, + paymentAccountAge, + paymentAccountIndicator, + purchasesLast6Months, + suspiciousActivity, + workPhone); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AccountInfo {\n"); - sb.append(" accountAgeIndicator: ").append(toIndentedString(accountAgeIndicator)).append("\n"); + sb.append(" accountAgeIndicator: ") + .append(toIndentedString(accountAgeIndicator)) + .append("\n"); sb.append(" accountChangeDate: ").append(toIndentedString(accountChangeDate)).append("\n"); - sb.append(" accountChangeIndicator: ").append(toIndentedString(accountChangeIndicator)).append("\n"); - sb.append(" accountCreationDate: ").append(toIndentedString(accountCreationDate)).append("\n"); + sb.append(" accountChangeIndicator: ") + .append(toIndentedString(accountChangeIndicator)) + .append("\n"); + sb.append(" accountCreationDate: ") + .append(toIndentedString(accountCreationDate)) + .append("\n"); sb.append(" accountType: ").append(toIndentedString(accountType)).append("\n"); sb.append(" addCardAttemptsDay: ").append(toIndentedString(addCardAttemptsDay)).append("\n"); - sb.append(" deliveryAddressUsageDate: ").append(toIndentedString(deliveryAddressUsageDate)).append("\n"); - sb.append(" deliveryAddressUsageIndicator: ").append(toIndentedString(deliveryAddressUsageIndicator)).append("\n"); + sb.append(" deliveryAddressUsageDate: ") + .append(toIndentedString(deliveryAddressUsageDate)) + .append("\n"); + sb.append(" deliveryAddressUsageIndicator: ") + .append(toIndentedString(deliveryAddressUsageIndicator)) + .append("\n"); sb.append(" homePhone: ").append(toIndentedString(homePhone)).append("\n"); sb.append(" mobilePhone: ").append(toIndentedString(mobilePhone)).append("\n"); sb.append(" passwordChangeDate: ").append(toIndentedString(passwordChangeDate)).append("\n"); - sb.append(" passwordChangeIndicator: ").append(toIndentedString(passwordChangeIndicator)).append("\n"); - sb.append(" pastTransactionsDay: ").append(toIndentedString(pastTransactionsDay)).append("\n"); - sb.append(" pastTransactionsYear: ").append(toIndentedString(pastTransactionsYear)).append("\n"); + sb.append(" passwordChangeIndicator: ") + .append(toIndentedString(passwordChangeIndicator)) + .append("\n"); + sb.append(" pastTransactionsDay: ") + .append(toIndentedString(pastTransactionsDay)) + .append("\n"); + sb.append(" pastTransactionsYear: ") + .append(toIndentedString(pastTransactionsYear)) + .append("\n"); sb.append(" paymentAccountAge: ").append(toIndentedString(paymentAccountAge)).append("\n"); - sb.append(" paymentAccountIndicator: ").append(toIndentedString(paymentAccountIndicator)).append("\n"); - sb.append(" purchasesLast6Months: ").append(toIndentedString(purchasesLast6Months)).append("\n"); + sb.append(" paymentAccountIndicator: ") + .append(toIndentedString(paymentAccountIndicator)) + .append("\n"); + sb.append(" purchasesLast6Months: ") + .append(toIndentedString(purchasesLast6Months)) + .append("\n"); sb.append(" suspiciousActivity: ").append(toIndentedString(suspiciousActivity)).append("\n"); sb.append(" workPhone: ").append(toIndentedString(workPhone)).append("\n"); sb.append("}"); @@ -1086,8 +1237,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1096,7 +1246,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AccountInfo given an JSON string * * @param jsonString JSON string @@ -1106,11 +1256,12 @@ private String toIndentedString(Object o) { public static AccountInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountInfo.class); } -/** - * Convert an instance of AccountInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AccountInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AcctInfo.java b/src/main/java/com/adyen/model/payment/AcctInfo.java index d4bc2acae..8183f8e0d 100644 --- a/src/main/java/com/adyen/model/payment/AcctInfo.java +++ b/src/main/java/com/adyen/model/payment/AcctInfo.java @@ -2,31 +2,26 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * AcctInfo - */ +/** AcctInfo */ @JsonPropertyOrder({ AcctInfo.JSON_PROPERTY_CH_ACC_AGE_IND, AcctInfo.JSON_PROPERTY_CH_ACC_CHANGE, @@ -45,13 +40,13 @@ AcctInfo.JSON_PROPERTY_TXN_ACTIVITY_DAY, AcctInfo.JSON_PROPERTY_TXN_ACTIVITY_YEAR }) - public class AcctInfo { /** - * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: + * * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * + * **04** — 30–60 days * **05** — More than 60 days */ public enum ChAccAgeIndEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -67,7 +62,7 @@ public enum ChAccAgeIndEnum { private String value; ChAccAgeIndEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -88,7 +83,11 @@ public static ChAccAgeIndEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ChAccAgeIndEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChAccAgeIndEnum.values())); + LOG.warning( + "ChAccAgeIndEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ChAccAgeIndEnum.values())); return null; } } @@ -100,10 +99,12 @@ public static ChAccAgeIndEnum fromValue(String value) { private String chAccChange; /** - * Length of time since the cardholder’s account information with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * Length of time since the cardholder’s account information with the 3DS Requestor was last + * changed, including Billing or Shipping address, new payment account, or new user(s) added. + * Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * + * **03** — 30–60 days * **04** — More than 60 days */ public enum ChAccChangeIndEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -117,7 +118,7 @@ public enum ChAccChangeIndEnum { private String value; ChAccChangeIndEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -138,7 +139,11 @@ public static ChAccChangeIndEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ChAccChangeIndEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChAccChangeIndEnum.values())); + LOG.warning( + "ChAccChangeIndEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ChAccChangeIndEnum.values())); return null; } } @@ -150,10 +155,12 @@ public static ChAccChangeIndEnum fromValue(String value) { private String chAccPwChange; /** - * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a + * password change or account reset. Allowed values: * **01** — No change * **02** — Changed + * during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than + * 60 days */ public enum ChAccPwChangeIndEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -169,7 +176,7 @@ public enum ChAccPwChangeIndEnum { private String value; ChAccPwChangeIndEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -190,7 +197,11 @@ public static ChAccPwChangeIndEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ChAccPwChangeIndEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChAccPwChangeIndEnum.values())); + LOG.warning( + "ChAccPwChangeIndEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ChAccPwChangeIndEnum.values())); return null; } } @@ -208,10 +219,12 @@ public static ChAccPwChangeIndEnum fromValue(String value) { private String paymentAccAge; /** - * Indicates the length of time that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * Indicates the length of time that the payment account was enrolled in the cardholder’s account + * with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — + * During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than + * 60 days */ public enum PaymentAccIndEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -227,7 +240,7 @@ public enum PaymentAccIndEnum { private String value; PaymentAccIndEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -248,7 +261,11 @@ public static PaymentAccIndEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PaymentAccIndEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PaymentAccIndEnum.values())); + LOG.warning( + "PaymentAccIndEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PaymentAccIndEnum.values())); return null; } } @@ -263,10 +280,11 @@ public static PaymentAccIndEnum fromValue(String value) { private String shipAddressUsage; /** - * Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * Indicates when the shipping address used for this transaction was first used with the 3DS + * Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — + * 30–60 days * **04** — More than 60 days */ public enum ShipAddressUsageIndEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -280,7 +298,7 @@ public enum ShipAddressUsageIndEnum { private String value; ShipAddressUsageIndEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -301,7 +319,11 @@ public static ShipAddressUsageIndEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ShipAddressUsageIndEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShipAddressUsageIndEnum.values())); + LOG.warning( + "ShipAddressUsageIndEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ShipAddressUsageIndEnum.values())); return null; } } @@ -310,10 +332,11 @@ public static ShipAddressUsageIndEnum fromValue(String value) { private ShipAddressUsageIndEnum shipAddressUsageInd; /** - * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — Account Name different to shipping Name + * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this + * transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — + * Account Name different to shipping Name */ public enum ShipNameIndicatorEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")); @@ -323,7 +346,7 @@ public enum ShipNameIndicatorEnum { private String value; ShipNameIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -344,7 +367,11 @@ public static ShipNameIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ShipNameIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShipNameIndicatorEnum.values())); + LOG.warning( + "ShipNameIndicatorEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ShipNameIndicatorEnum.values())); return null; } } @@ -353,10 +380,11 @@ public static ShipNameIndicatorEnum fromValue(String value) { private ShipNameIndicatorEnum shipNameIndicator; /** - * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been observed * **02** — Suspicious activity has been observed + * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous + * fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been + * observed * **02** — Suspicious activity has been observed */ public enum SuspiciousAccActivityEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")); @@ -366,7 +394,7 @@ public enum SuspiciousAccActivityEnum { private String value; SuspiciousAccActivityEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -387,7 +415,11 @@ public static SuspiciousAccActivityEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("SuspiciousAccActivityEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(SuspiciousAccActivityEnum.values())); + LOG.warning( + "SuspiciousAccActivityEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(SuspiciousAccActivityEnum.values())); return null; } } @@ -401,13 +433,16 @@ public static SuspiciousAccActivityEnum fromValue(String value) { public static final String JSON_PROPERTY_TXN_ACTIVITY_YEAR = "txnActivityYear"; private String txnActivityYear; - public AcctInfo() { - } + public AcctInfo() {} /** - * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: + * * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * + * **04** — 30–60 days * **05** — More than 60 days * - * @param chAccAgeInd Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * @param chAccAgeInd Length of time that the cardholder has had the account with the 3DS + * Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction + * * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo chAccAgeInd(ChAccAgeIndEnum chAccAgeInd) { @@ -416,8 +451,13 @@ public AcctInfo chAccAgeInd(ChAccAgeIndEnum chAccAgeInd) { } /** - * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days - * @return chAccAgeInd Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: + * * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * + * **04** — 30–60 days * **05** — More than 60 days + * + * @return chAccAgeInd Length of time that the cardholder has had the account with the 3DS + * Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction + * * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days */ @JsonProperty(JSON_PROPERTY_CH_ACC_AGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -426,9 +466,13 @@ public ChAccAgeIndEnum getChAccAgeInd() { } /** - * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: + * * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * + * **04** — 30–60 days * **05** — More than 60 days * - * @param chAccAgeInd Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * @param chAccAgeInd Length of time that the cardholder has had the account with the 3DS + * Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction + * * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days */ @JsonProperty(JSON_PROPERTY_CH_ACC_AGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -437,9 +481,12 @@ public void setChAccAgeInd(ChAccAgeIndEnum chAccAgeInd) { } /** - * Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** + * Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing + * or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** * - * @param chAccChange Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** + * @param chAccChange Date that the cardholder’s account with the 3DS Requestor was last changed, + * including Billing or Shipping address, new payment account, or new user(s) added. Format: + * **YYYYMMDD** * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo chAccChange(String chAccChange) { @@ -448,8 +495,12 @@ public AcctInfo chAccChange(String chAccChange) { } /** - * Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** - * @return chAccChange Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** + * Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing + * or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** + * + * @return chAccChange Date that the cardholder’s account with the 3DS Requestor was last changed, + * including Billing or Shipping address, new payment account, or new user(s) added. Format: + * **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_CH_ACC_CHANGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -458,9 +509,12 @@ public String getChAccChange() { } /** - * Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** + * Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing + * or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** * - * @param chAccChange Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** + * @param chAccChange Date that the cardholder’s account with the 3DS Requestor was last changed, + * including Billing or Shipping address, new payment account, or new user(s) added. Format: + * **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_CH_ACC_CHANGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -469,9 +523,15 @@ public void setChAccChange(String chAccChange) { } /** - * Length of time since the cardholder’s account information with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * Length of time since the cardholder’s account information with the 3DS Requestor was last + * changed, including Billing or Shipping address, new payment account, or new user(s) added. + * Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * + * **03** — 30–60 days * **04** — More than 60 days * - * @param chAccChangeInd Length of time since the cardholder’s account information with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * @param chAccChangeInd Length of time since the cardholder’s account information with the 3DS + * Requestor was last changed, including Billing or Shipping address, new payment account, or + * new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — + * Less than 30 days * **03** — 30–60 days * **04** — More than 60 days * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo chAccChangeInd(ChAccChangeIndEnum chAccChangeInd) { @@ -480,8 +540,15 @@ public AcctInfo chAccChangeInd(ChAccChangeIndEnum chAccChangeInd) { } /** - * Length of time since the cardholder’s account information with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days - * @return chAccChangeInd Length of time since the cardholder’s account information with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * Length of time since the cardholder’s account information with the 3DS Requestor was last + * changed, including Billing or Shipping address, new payment account, or new user(s) added. + * Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * + * **03** — 30–60 days * **04** — More than 60 days + * + * @return chAccChangeInd Length of time since the cardholder’s account information with the 3DS + * Requestor was last changed, including Billing or Shipping address, new payment account, or + * new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — + * Less than 30 days * **03** — 30–60 days * **04** — More than 60 days */ @JsonProperty(JSON_PROPERTY_CH_ACC_CHANGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -490,9 +557,15 @@ public ChAccChangeIndEnum getChAccChangeInd() { } /** - * Length of time since the cardholder’s account information with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * Length of time since the cardholder’s account information with the 3DS Requestor was last + * changed, including Billing or Shipping address, new payment account, or new user(s) added. + * Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * + * **03** — 30–60 days * **04** — More than 60 days * - * @param chAccChangeInd Length of time since the cardholder’s account information with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * @param chAccChangeInd Length of time since the cardholder’s account information with the 3DS + * Requestor was last changed, including Billing or Shipping address, new payment account, or + * new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — + * Less than 30 days * **03** — 30–60 days * **04** — More than 60 days */ @JsonProperty(JSON_PROPERTY_CH_ACC_CHANGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -501,9 +574,11 @@ public void setChAccChangeInd(ChAccChangeIndEnum chAccChangeInd) { } /** - * Date that cardholder’s account with the 3DS Requestor had a password change or account reset. Format: **YYYYMMDD** + * Date that cardholder’s account with the 3DS Requestor had a password change or account reset. + * Format: **YYYYMMDD** * - * @param chAccPwChange Date that cardholder’s account with the 3DS Requestor had a password change or account reset. Format: **YYYYMMDD** + * @param chAccPwChange Date that cardholder’s account with the 3DS Requestor had a password + * change or account reset. Format: **YYYYMMDD** * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo chAccPwChange(String chAccPwChange) { @@ -512,8 +587,11 @@ public AcctInfo chAccPwChange(String chAccPwChange) { } /** - * Date that cardholder’s account with the 3DS Requestor had a password change or account reset. Format: **YYYYMMDD** - * @return chAccPwChange Date that cardholder’s account with the 3DS Requestor had a password change or account reset. Format: **YYYYMMDD** + * Date that cardholder’s account with the 3DS Requestor had a password change or account reset. + * Format: **YYYYMMDD** + * + * @return chAccPwChange Date that cardholder’s account with the 3DS Requestor had a password + * change or account reset. Format: **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_CH_ACC_PW_CHANGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -522,9 +600,11 @@ public String getChAccPwChange() { } /** - * Date that cardholder’s account with the 3DS Requestor had a password change or account reset. Format: **YYYYMMDD** + * Date that cardholder’s account with the 3DS Requestor had a password change or account reset. + * Format: **YYYYMMDD** * - * @param chAccPwChange Date that cardholder’s account with the 3DS Requestor had a password change or account reset. Format: **YYYYMMDD** + * @param chAccPwChange Date that cardholder’s account with the 3DS Requestor had a password + * change or account reset. Format: **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_CH_ACC_PW_CHANGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -533,9 +613,15 @@ public void setChAccPwChange(String chAccPwChange) { } /** - * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a + * password change or account reset. Allowed values: * **01** — No change * **02** — Changed + * during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than + * 60 days * - * @param chAccPwChangeInd Indicates the length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * @param chAccPwChangeInd Indicates the length of time since the cardholder’s account with the + * 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change + * * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 + * days * **05** — More than 60 days * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo chAccPwChangeInd(ChAccPwChangeIndEnum chAccPwChangeInd) { @@ -544,8 +630,15 @@ public AcctInfo chAccPwChangeInd(ChAccPwChangeIndEnum chAccPwChangeInd) { } /** - * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days - * @return chAccPwChangeInd Indicates the length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a + * password change or account reset. Allowed values: * **01** — No change * **02** — Changed + * during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than + * 60 days + * + * @return chAccPwChangeInd Indicates the length of time since the cardholder’s account with the + * 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change + * * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 + * days * **05** — More than 60 days */ @JsonProperty(JSON_PROPERTY_CH_ACC_PW_CHANGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -554,9 +647,15 @@ public ChAccPwChangeIndEnum getChAccPwChangeInd() { } /** - * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a + * password change or account reset. Allowed values: * **01** — No change * **02** — Changed + * during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than + * 60 days * - * @param chAccPwChangeInd Indicates the length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * @param chAccPwChangeInd Indicates the length of time since the cardholder’s account with the + * 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change + * * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 + * days * **05** — More than 60 days */ @JsonProperty(JSON_PROPERTY_CH_ACC_PW_CHANGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -565,9 +664,10 @@ public void setChAccPwChangeInd(ChAccPwChangeIndEnum chAccPwChangeInd) { } /** - * Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** + * Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** * - * @param chAccString Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** + * @param chAccString Date that the cardholder opened the account with the 3DS Requestor. Format: + * **YYYYMMDD** * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo chAccString(String chAccString) { @@ -576,8 +676,10 @@ public AcctInfo chAccString(String chAccString) { } /** - * Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** - * @return chAccString Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** + * Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** + * + * @return chAccString Date that the cardholder opened the account with the 3DS Requestor. Format: + * **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_CH_ACC_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -586,9 +688,10 @@ public String getChAccString() { } /** - * Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** + * Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** * - * @param chAccString Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** + * @param chAccString Date that the cardholder opened the account with the 3DS Requestor. Format: + * **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_CH_ACC_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -597,9 +700,11 @@ public void setChAccString(String chAccString) { } /** - * Number of purchases with this cardholder account during the previous six months. Max length: 4 characters. + * Number of purchases with this cardholder account during the previous six months. Max length: 4 + * characters. * - * @param nbPurchaseAccount Number of purchases with this cardholder account during the previous six months. Max length: 4 characters. + * @param nbPurchaseAccount Number of purchases with this cardholder account during the previous + * six months. Max length: 4 characters. * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo nbPurchaseAccount(String nbPurchaseAccount) { @@ -608,8 +713,11 @@ public AcctInfo nbPurchaseAccount(String nbPurchaseAccount) { } /** - * Number of purchases with this cardholder account during the previous six months. Max length: 4 characters. - * @return nbPurchaseAccount Number of purchases with this cardholder account during the previous six months. Max length: 4 characters. + * Number of purchases with this cardholder account during the previous six months. Max length: 4 + * characters. + * + * @return nbPurchaseAccount Number of purchases with this cardholder account during the previous + * six months. Max length: 4 characters. */ @JsonProperty(JSON_PROPERTY_NB_PURCHASE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -618,9 +726,11 @@ public String getNbPurchaseAccount() { } /** - * Number of purchases with this cardholder account during the previous six months. Max length: 4 characters. + * Number of purchases with this cardholder account during the previous six months. Max length: 4 + * characters. * - * @param nbPurchaseAccount Number of purchases with this cardholder account during the previous six months. Max length: 4 characters. + * @param nbPurchaseAccount Number of purchases with this cardholder account during the previous + * six months. Max length: 4 characters. */ @JsonProperty(JSON_PROPERTY_NB_PURCHASE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -629,9 +739,11 @@ public void setNbPurchaseAccount(String nbPurchaseAccount) { } /** - * String that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Format: **YYYYMMDD** + * String that the payment account was enrolled in the cardholder’s account with the 3DS + * Requestor. Format: **YYYYMMDD** * - * @param paymentAccAge String that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Format: **YYYYMMDD** + * @param paymentAccAge String that the payment account was enrolled in the cardholder’s account + * with the 3DS Requestor. Format: **YYYYMMDD** * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo paymentAccAge(String paymentAccAge) { @@ -640,8 +752,11 @@ public AcctInfo paymentAccAge(String paymentAccAge) { } /** - * String that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Format: **YYYYMMDD** - * @return paymentAccAge String that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Format: **YYYYMMDD** + * String that the payment account was enrolled in the cardholder’s account with the 3DS + * Requestor. Format: **YYYYMMDD** + * + * @return paymentAccAge String that the payment account was enrolled in the cardholder’s account + * with the 3DS Requestor. Format: **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACC_AGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -650,9 +765,11 @@ public String getPaymentAccAge() { } /** - * String that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Format: **YYYYMMDD** + * String that the payment account was enrolled in the cardholder’s account with the 3DS + * Requestor. Format: **YYYYMMDD** * - * @param paymentAccAge String that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Format: **YYYYMMDD** + * @param paymentAccAge String that the payment account was enrolled in the cardholder’s account + * with the 3DS Requestor. Format: **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACC_AGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -661,9 +778,15 @@ public void setPaymentAccAge(String paymentAccAge) { } /** - * Indicates the length of time that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * Indicates the length of time that the payment account was enrolled in the cardholder’s account + * with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — + * During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than + * 60 days * - * @param paymentAccInd Indicates the length of time that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * @param paymentAccInd Indicates the length of time that the payment account was enrolled in the + * cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest + * checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 + * days * **05** — More than 60 days * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo paymentAccInd(PaymentAccIndEnum paymentAccInd) { @@ -672,8 +795,15 @@ public AcctInfo paymentAccInd(PaymentAccIndEnum paymentAccInd) { } /** - * Indicates the length of time that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days - * @return paymentAccInd Indicates the length of time that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * Indicates the length of time that the payment account was enrolled in the cardholder’s account + * with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — + * During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than + * 60 days + * + * @return paymentAccInd Indicates the length of time that the payment account was enrolled in the + * cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest + * checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 + * days * **05** — More than 60 days */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACC_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -682,9 +812,15 @@ public PaymentAccIndEnum getPaymentAccInd() { } /** - * Indicates the length of time that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * Indicates the length of time that the payment account was enrolled in the cardholder’s account + * with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — + * During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than + * 60 days * - * @param paymentAccInd Indicates the length of time that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + * @param paymentAccInd Indicates the length of time that the payment account was enrolled in the + * cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest + * checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 + * days * **05** — More than 60 days */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACC_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -695,7 +831,8 @@ public void setPaymentAccInd(PaymentAccIndEnum paymentAccInd) { /** * Number of Add Card attempts in the last 24 hours. Max length: 3 characters. * - * @param provisionAttemptsDay Number of Add Card attempts in the last 24 hours. Max length: 3 characters. + * @param provisionAttemptsDay Number of Add Card attempts in the last 24 hours. Max length: 3 + * characters. * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo provisionAttemptsDay(String provisionAttemptsDay) { @@ -705,7 +842,9 @@ public AcctInfo provisionAttemptsDay(String provisionAttemptsDay) { /** * Number of Add Card attempts in the last 24 hours. Max length: 3 characters. - * @return provisionAttemptsDay Number of Add Card attempts in the last 24 hours. Max length: 3 characters. + * + * @return provisionAttemptsDay Number of Add Card attempts in the last 24 hours. Max length: 3 + * characters. */ @JsonProperty(JSON_PROPERTY_PROVISION_ATTEMPTS_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -716,7 +855,8 @@ public String getProvisionAttemptsDay() { /** * Number of Add Card attempts in the last 24 hours. Max length: 3 characters. * - * @param provisionAttemptsDay Number of Add Card attempts in the last 24 hours. Max length: 3 characters. + * @param provisionAttemptsDay Number of Add Card attempts in the last 24 hours. Max length: 3 + * characters. */ @JsonProperty(JSON_PROPERTY_PROVISION_ATTEMPTS_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -725,9 +865,11 @@ public void setProvisionAttemptsDay(String provisionAttemptsDay) { } /** - * String when the shipping address used for this transaction was first used with the 3DS Requestor. Format: **YYYYMMDD** + * String when the shipping address used for this transaction was first used with the 3DS + * Requestor. Format: **YYYYMMDD** * - * @param shipAddressUsage String when the shipping address used for this transaction was first used with the 3DS Requestor. Format: **YYYYMMDD** + * @param shipAddressUsage String when the shipping address used for this transaction was first + * used with the 3DS Requestor. Format: **YYYYMMDD** * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo shipAddressUsage(String shipAddressUsage) { @@ -736,8 +878,11 @@ public AcctInfo shipAddressUsage(String shipAddressUsage) { } /** - * String when the shipping address used for this transaction was first used with the 3DS Requestor. Format: **YYYYMMDD** - * @return shipAddressUsage String when the shipping address used for this transaction was first used with the 3DS Requestor. Format: **YYYYMMDD** + * String when the shipping address used for this transaction was first used with the 3DS + * Requestor. Format: **YYYYMMDD** + * + * @return shipAddressUsage String when the shipping address used for this transaction was first + * used with the 3DS Requestor. Format: **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_SHIP_ADDRESS_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -746,9 +891,11 @@ public String getShipAddressUsage() { } /** - * String when the shipping address used for this transaction was first used with the 3DS Requestor. Format: **YYYYMMDD** + * String when the shipping address used for this transaction was first used with the 3DS + * Requestor. Format: **YYYYMMDD** * - * @param shipAddressUsage String when the shipping address used for this transaction was first used with the 3DS Requestor. Format: **YYYYMMDD** + * @param shipAddressUsage String when the shipping address used for this transaction was first + * used with the 3DS Requestor. Format: **YYYYMMDD** */ @JsonProperty(JSON_PROPERTY_SHIP_ADDRESS_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -757,9 +904,13 @@ public void setShipAddressUsage(String shipAddressUsage) { } /** - * Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * Indicates when the shipping address used for this transaction was first used with the 3DS + * Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — + * 30–60 days * **04** — More than 60 days * - * @param shipAddressUsageInd Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * @param shipAddressUsageInd Indicates when the shipping address used for this transaction was + * first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — + * Less than 30 days * **03** — 30–60 days * **04** — More than 60 days * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo shipAddressUsageInd(ShipAddressUsageIndEnum shipAddressUsageInd) { @@ -768,8 +919,13 @@ public AcctInfo shipAddressUsageInd(ShipAddressUsageIndEnum shipAddressUsageInd) } /** - * Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days - * @return shipAddressUsageInd Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * Indicates when the shipping address used for this transaction was first used with the 3DS + * Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — + * 30–60 days * **04** — More than 60 days + * + * @return shipAddressUsageInd Indicates when the shipping address used for this transaction was + * first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — + * Less than 30 days * **03** — 30–60 days * **04** — More than 60 days */ @JsonProperty(JSON_PROPERTY_SHIP_ADDRESS_USAGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -778,9 +934,13 @@ public ShipAddressUsageIndEnum getShipAddressUsageInd() { } /** - * Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * Indicates when the shipping address used for this transaction was first used with the 3DS + * Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — + * 30–60 days * **04** — More than 60 days * - * @param shipAddressUsageInd Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + * @param shipAddressUsageInd Indicates when the shipping address used for this transaction was + * first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — + * Less than 30 days * **03** — 30–60 days * **04** — More than 60 days */ @JsonProperty(JSON_PROPERTY_SHIP_ADDRESS_USAGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -789,9 +949,13 @@ public void setShipAddressUsageInd(ShipAddressUsageIndEnum shipAddressUsageInd) } /** - * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — Account Name different to shipping Name + * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this + * transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — + * Account Name different to shipping Name * - * @param shipNameIndicator Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — Account Name different to shipping Name + * @param shipNameIndicator Indicates if the Cardholder Name on the account is identical to the + * shipping Name used for this transaction. Allowed values: * **01** — Account Name identical + * to shipping Name * **02** — Account Name different to shipping Name * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo shipNameIndicator(ShipNameIndicatorEnum shipNameIndicator) { @@ -800,8 +964,13 @@ public AcctInfo shipNameIndicator(ShipNameIndicatorEnum shipNameIndicator) { } /** - * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — Account Name different to shipping Name - * @return shipNameIndicator Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — Account Name different to shipping Name + * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this + * transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — + * Account Name different to shipping Name + * + * @return shipNameIndicator Indicates if the Cardholder Name on the account is identical to the + * shipping Name used for this transaction. Allowed values: * **01** — Account Name identical + * to shipping Name * **02** — Account Name different to shipping Name */ @JsonProperty(JSON_PROPERTY_SHIP_NAME_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -810,9 +979,13 @@ public ShipNameIndicatorEnum getShipNameIndicator() { } /** - * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — Account Name different to shipping Name + * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this + * transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — + * Account Name different to shipping Name * - * @param shipNameIndicator Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — Account Name different to shipping Name + * @param shipNameIndicator Indicates if the Cardholder Name on the account is identical to the + * shipping Name used for this transaction. Allowed values: * **01** — Account Name identical + * to shipping Name * **02** — Account Name different to shipping Name */ @JsonProperty(JSON_PROPERTY_SHIP_NAME_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -821,9 +994,13 @@ public void setShipNameIndicator(ShipNameIndicatorEnum shipNameIndicator) { } /** - * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been observed * **02** — Suspicious activity has been observed + * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous + * fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been + * observed * **02** — Suspicious activity has been observed * - * @param suspiciousAccActivity Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been observed * **02** — Suspicious activity has been observed + * @param suspiciousAccActivity Indicates whether the 3DS Requestor has experienced suspicious + * activity (including previous fraud) on the cardholder account. Allowed values: * **01** — + * No suspicious activity has been observed * **02** — Suspicious activity has been observed * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo suspiciousAccActivity(SuspiciousAccActivityEnum suspiciousAccActivity) { @@ -832,8 +1009,13 @@ public AcctInfo suspiciousAccActivity(SuspiciousAccActivityEnum suspiciousAccAct } /** - * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been observed * **02** — Suspicious activity has been observed - * @return suspiciousAccActivity Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been observed * **02** — Suspicious activity has been observed + * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous + * fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been + * observed * **02** — Suspicious activity has been observed + * + * @return suspiciousAccActivity Indicates whether the 3DS Requestor has experienced suspicious + * activity (including previous fraud) on the cardholder account. Allowed values: * **01** — + * No suspicious activity has been observed * **02** — Suspicious activity has been observed */ @JsonProperty(JSON_PROPERTY_SUSPICIOUS_ACC_ACTIVITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -842,9 +1024,13 @@ public SuspiciousAccActivityEnum getSuspiciousAccActivity() { } /** - * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been observed * **02** — Suspicious activity has been observed + * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous + * fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been + * observed * **02** — Suspicious activity has been observed * - * @param suspiciousAccActivity Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been observed * **02** — Suspicious activity has been observed + * @param suspiciousAccActivity Indicates whether the 3DS Requestor has experienced suspicious + * activity (including previous fraud) on the cardholder account. Allowed values: * **01** — + * No suspicious activity has been observed * **02** — Suspicious activity has been observed */ @JsonProperty(JSON_PROPERTY_SUSPICIOUS_ACC_ACTIVITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -853,9 +1039,12 @@ public void setSuspiciousAccActivity(SuspiciousAccActivityEnum suspiciousAccActi } /** - * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. + * Number of transactions (successful and abandoned) for this cardholder account with the 3DS + * Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. * - * @param txnActivityDay Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. + * @param txnActivityDay Number of transactions (successful and abandoned) for this cardholder + * account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max + * length: 3 characters. * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo txnActivityDay(String txnActivityDay) { @@ -864,8 +1053,12 @@ public AcctInfo txnActivityDay(String txnActivityDay) { } /** - * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. - * @return txnActivityDay Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. + * Number of transactions (successful and abandoned) for this cardholder account with the 3DS + * Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. + * + * @return txnActivityDay Number of transactions (successful and abandoned) for this cardholder + * account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max + * length: 3 characters. */ @JsonProperty(JSON_PROPERTY_TXN_ACTIVITY_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -874,9 +1067,12 @@ public String getTxnActivityDay() { } /** - * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. + * Number of transactions (successful and abandoned) for this cardholder account with the 3DS + * Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. * - * @param txnActivityDay Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. + * @param txnActivityDay Number of transactions (successful and abandoned) for this cardholder + * account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max + * length: 3 characters. */ @JsonProperty(JSON_PROPERTY_TXN_ACTIVITY_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -885,9 +1081,12 @@ public void setTxnActivityDay(String txnActivityDay) { } /** - * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous year. Max length: 3 characters. + * Number of transactions (successful and abandoned) for this cardholder account with the 3DS + * Requestor across all payment accounts in the previous year. Max length: 3 characters. * - * @param txnActivityYear Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous year. Max length: 3 characters. + * @param txnActivityYear Number of transactions (successful and abandoned) for this cardholder + * account with the 3DS Requestor across all payment accounts in the previous year. Max + * length: 3 characters. * @return the current {@code AcctInfo} instance, allowing for method chaining */ public AcctInfo txnActivityYear(String txnActivityYear) { @@ -896,8 +1095,12 @@ public AcctInfo txnActivityYear(String txnActivityYear) { } /** - * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous year. Max length: 3 characters. - * @return txnActivityYear Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous year. Max length: 3 characters. + * Number of transactions (successful and abandoned) for this cardholder account with the 3DS + * Requestor across all payment accounts in the previous year. Max length: 3 characters. + * + * @return txnActivityYear Number of transactions (successful and abandoned) for this cardholder + * account with the 3DS Requestor across all payment accounts in the previous year. Max + * length: 3 characters. */ @JsonProperty(JSON_PROPERTY_TXN_ACTIVITY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -906,9 +1109,12 @@ public String getTxnActivityYear() { } /** - * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous year. Max length: 3 characters. + * Number of transactions (successful and abandoned) for this cardholder account with the 3DS + * Requestor across all payment accounts in the previous year. Max length: 3 characters. * - * @param txnActivityYear Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous year. Max length: 3 characters. + * @param txnActivityYear Number of transactions (successful and abandoned) for this cardholder + * account with the 3DS Requestor across all payment accounts in the previous year. Max + * length: 3 characters. */ @JsonProperty(JSON_PROPERTY_TXN_ACTIVITY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -916,9 +1122,7 @@ public void setTxnActivityYear(String txnActivityYear) { this.txnActivityYear = txnActivityYear; } - /** - * Return true if this AcctInfo object is equal to o. - */ + /** Return true if this AcctInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -928,27 +1132,43 @@ public boolean equals(Object o) { return false; } AcctInfo acctInfo = (AcctInfo) o; - return Objects.equals(this.chAccAgeInd, acctInfo.chAccAgeInd) && - Objects.equals(this.chAccChange, acctInfo.chAccChange) && - Objects.equals(this.chAccChangeInd, acctInfo.chAccChangeInd) && - Objects.equals(this.chAccPwChange, acctInfo.chAccPwChange) && - Objects.equals(this.chAccPwChangeInd, acctInfo.chAccPwChangeInd) && - Objects.equals(this.chAccString, acctInfo.chAccString) && - Objects.equals(this.nbPurchaseAccount, acctInfo.nbPurchaseAccount) && - Objects.equals(this.paymentAccAge, acctInfo.paymentAccAge) && - Objects.equals(this.paymentAccInd, acctInfo.paymentAccInd) && - Objects.equals(this.provisionAttemptsDay, acctInfo.provisionAttemptsDay) && - Objects.equals(this.shipAddressUsage, acctInfo.shipAddressUsage) && - Objects.equals(this.shipAddressUsageInd, acctInfo.shipAddressUsageInd) && - Objects.equals(this.shipNameIndicator, acctInfo.shipNameIndicator) && - Objects.equals(this.suspiciousAccActivity, acctInfo.suspiciousAccActivity) && - Objects.equals(this.txnActivityDay, acctInfo.txnActivityDay) && - Objects.equals(this.txnActivityYear, acctInfo.txnActivityYear); + return Objects.equals(this.chAccAgeInd, acctInfo.chAccAgeInd) + && Objects.equals(this.chAccChange, acctInfo.chAccChange) + && Objects.equals(this.chAccChangeInd, acctInfo.chAccChangeInd) + && Objects.equals(this.chAccPwChange, acctInfo.chAccPwChange) + && Objects.equals(this.chAccPwChangeInd, acctInfo.chAccPwChangeInd) + && Objects.equals(this.chAccString, acctInfo.chAccString) + && Objects.equals(this.nbPurchaseAccount, acctInfo.nbPurchaseAccount) + && Objects.equals(this.paymentAccAge, acctInfo.paymentAccAge) + && Objects.equals(this.paymentAccInd, acctInfo.paymentAccInd) + && Objects.equals(this.provisionAttemptsDay, acctInfo.provisionAttemptsDay) + && Objects.equals(this.shipAddressUsage, acctInfo.shipAddressUsage) + && Objects.equals(this.shipAddressUsageInd, acctInfo.shipAddressUsageInd) + && Objects.equals(this.shipNameIndicator, acctInfo.shipNameIndicator) + && Objects.equals(this.suspiciousAccActivity, acctInfo.suspiciousAccActivity) + && Objects.equals(this.txnActivityDay, acctInfo.txnActivityDay) + && Objects.equals(this.txnActivityYear, acctInfo.txnActivityYear); } @Override public int hashCode() { - return Objects.hash(chAccAgeInd, chAccChange, chAccChangeInd, chAccPwChange, chAccPwChangeInd, chAccString, nbPurchaseAccount, paymentAccAge, paymentAccInd, provisionAttemptsDay, shipAddressUsage, shipAddressUsageInd, shipNameIndicator, suspiciousAccActivity, txnActivityDay, txnActivityYear); + return Objects.hash( + chAccAgeInd, + chAccChange, + chAccChangeInd, + chAccPwChange, + chAccPwChangeInd, + chAccString, + nbPurchaseAccount, + paymentAccAge, + paymentAccInd, + provisionAttemptsDay, + shipAddressUsage, + shipAddressUsageInd, + shipNameIndicator, + suspiciousAccActivity, + txnActivityDay, + txnActivityYear); } @Override @@ -964,11 +1184,17 @@ public String toString() { sb.append(" nbPurchaseAccount: ").append(toIndentedString(nbPurchaseAccount)).append("\n"); sb.append(" paymentAccAge: ").append(toIndentedString(paymentAccAge)).append("\n"); sb.append(" paymentAccInd: ").append(toIndentedString(paymentAccInd)).append("\n"); - sb.append(" provisionAttemptsDay: ").append(toIndentedString(provisionAttemptsDay)).append("\n"); + sb.append(" provisionAttemptsDay: ") + .append(toIndentedString(provisionAttemptsDay)) + .append("\n"); sb.append(" shipAddressUsage: ").append(toIndentedString(shipAddressUsage)).append("\n"); - sb.append(" shipAddressUsageInd: ").append(toIndentedString(shipAddressUsageInd)).append("\n"); + sb.append(" shipAddressUsageInd: ") + .append(toIndentedString(shipAddressUsageInd)) + .append("\n"); sb.append(" shipNameIndicator: ").append(toIndentedString(shipNameIndicator)).append("\n"); - sb.append(" suspiciousAccActivity: ").append(toIndentedString(suspiciousAccActivity)).append("\n"); + sb.append(" suspiciousAccActivity: ") + .append(toIndentedString(suspiciousAccActivity)) + .append("\n"); sb.append(" txnActivityDay: ").append(toIndentedString(txnActivityDay)).append("\n"); sb.append(" txnActivityYear: ").append(toIndentedString(txnActivityYear)).append("\n"); sb.append("}"); @@ -976,8 +1202,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -986,7 +1211,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AcctInfo given an JSON string * * @param jsonString JSON string @@ -996,11 +1221,12 @@ private String toIndentedString(Object o) { public static AcctInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AcctInfo.class); } -/** - * Convert an instance of AcctInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AcctInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdditionalData3DSecure.java b/src/main/java/com/adyen/model/payment/AdditionalData3DSecure.java index 36217a662..a0e8d6cf9 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalData3DSecure.java +++ b/src/main/java/com/adyen/model/payment/AdditionalData3DSecure.java @@ -2,31 +2,26 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * AdditionalData3DSecure - */ +/** AdditionalData3DSecure */ @JsonPropertyOrder({ AdditionalData3DSecure.JSON_PROPERTY_ALLOW3_D_S2, AdditionalData3DSecure.JSON_PROPERTY_CHALLENGE_WINDOW_SIZE, @@ -35,16 +30,16 @@ AdditionalData3DSecure.JSON_PROPERTY_SCA_EXEMPTION, AdditionalData3DSecure.JSON_PROPERTY_THREE_D_S_VERSION }) - public class AdditionalData3DSecure { public static final String JSON_PROPERTY_ALLOW3_D_S2 = "allow3DS2"; private String allow3DS2; /** - * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * + * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size + * of 600x400 * **05** - Fullscreen */ public enum ChallengeWindowSizeEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -60,7 +55,7 @@ public enum ChallengeWindowSizeEnum { private String value; ChallengeWindowSizeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -81,7 +76,11 @@ public static ChallengeWindowSizeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ChallengeWindowSizeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChallengeWindowSizeEnum.values())); + LOG.warning( + "ChallengeWindowSizeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ChallengeWindowSizeEnum.values())); return null; } } @@ -101,13 +100,34 @@ public static ChallengeWindowSizeEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_VERSION = "threeDSVersion"; private String threeDSVersion; - public AdditionalData3DSecure() { - } + public AdditionalData3DSecure() {} /** - * Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen selects redirect or native authentication based on your configuration to optimize authorization rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication instead, based on your configuration. + * Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. + * Send this parameter when you are using `/payments` endpoint with any of our [native + * 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This + * parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if + * you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or + * send the `executeThreeD` parameter. Possible values: * **true** - Ready to support + * native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure + * 2. Adyen selects redirect or native authentication based on your configuration to optimize + * authorization rates and improve the shopper's experience. * **false** – Not ready to + * support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication + * instead, based on your configuration. * - * @param allow3DS2 Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen selects redirect or native authentication based on your configuration to optimize authorization rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication instead, based on your configuration. + * @param allow3DS2 Indicates if you are able to process 3D Secure 2 transactions natively on your + * payment page. Send this parameter when you are using `/payments` endpoint with + * any of our [native 3D Secure 2 + * solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This + * parameter only indicates readiness to support native 3D Secure 2 authentication. To specify + * if you _want_ to perform 3D Secure, use [Dynamic 3D + * Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` + * parameter. Possible values: * **true** - Ready to support native 3D Secure 2 + * authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen + * selects redirect or native authentication based on your configuration to optimize + * authorization rates and improve the shopper's experience. * **false** – Not ready to + * support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication + * instead, based on your configuration. * @return the current {@code AdditionalData3DSecure} instance, allowing for method chaining */ public AdditionalData3DSecure allow3DS2(String allow3DS2) { @@ -116,8 +136,31 @@ public AdditionalData3DSecure allow3DS2(String allow3DS2) { } /** - * Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen selects redirect or native authentication based on your configuration to optimize authorization rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication instead, based on your configuration. - * @return allow3DS2 Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen selects redirect or native authentication based on your configuration to optimize authorization rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication instead, based on your configuration. + * Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. + * Send this parameter when you are using `/payments` endpoint with any of our [native + * 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This + * parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if + * you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or + * send the `executeThreeD` parameter. Possible values: * **true** - Ready to support + * native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure + * 2. Adyen selects redirect or native authentication based on your configuration to optimize + * authorization rates and improve the shopper's experience. * **false** – Not ready to + * support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication + * instead, based on your configuration. + * + * @return allow3DS2 Indicates if you are able to process 3D Secure 2 transactions natively on + * your payment page. Send this parameter when you are using `/payments` endpoint + * with any of our [native 3D Secure 2 + * solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This + * parameter only indicates readiness to support native 3D Secure 2 authentication. To specify + * if you _want_ to perform 3D Secure, use [Dynamic 3D + * Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` + * parameter. Possible values: * **true** - Ready to support native 3D Secure 2 + * authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen + * selects redirect or native authentication based on your configuration to optimize + * authorization rates and improve the shopper's experience. * **false** – Not ready to + * support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication + * instead, based on your configuration. */ @JsonProperty(JSON_PROPERTY_ALLOW3_D_S2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,9 +169,31 @@ public String getAllow3DS2() { } /** - * Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen selects redirect or native authentication based on your configuration to optimize authorization rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication instead, based on your configuration. + * Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. + * Send this parameter when you are using `/payments` endpoint with any of our [native + * 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This + * parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if + * you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or + * send the `executeThreeD` parameter. Possible values: * **true** - Ready to support + * native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure + * 2. Adyen selects redirect or native authentication based on your configuration to optimize + * authorization rates and improve the shopper's experience. * **false** – Not ready to + * support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication + * instead, based on your configuration. * - * @param allow3DS2 Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen selects redirect or native authentication based on your configuration to optimize authorization rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication instead, based on your configuration. + * @param allow3DS2 Indicates if you are able to process 3D Secure 2 transactions natively on your + * payment page. Send this parameter when you are using `/payments` endpoint with + * any of our [native 3D Secure 2 + * solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This + * parameter only indicates readiness to support native 3D Secure 2 authentication. To specify + * if you _want_ to perform 3D Secure, use [Dynamic 3D + * Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` + * parameter. Possible values: * **true** - Ready to support native 3D Secure 2 + * authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen + * selects redirect or native authentication based on your configuration to optimize + * authorization rates and improve the shopper's experience. * **false** – Not ready to + * support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication + * instead, based on your configuration. */ @JsonProperty(JSON_PROPERTY_ALLOW3_D_S2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,9 +202,13 @@ public void setAllow3DS2(String allow3DS2) { } /** - * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * + * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size + * of 600x400 * **05** - Fullscreen * - * @param challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + * @param challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the + * cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** + * - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen * @return the current {@code AdditionalData3DSecure} instance, allowing for method chaining */ public AdditionalData3DSecure challengeWindowSize(ChallengeWindowSizeEnum challengeWindowSize) { @@ -148,8 +217,13 @@ public AdditionalData3DSecure challengeWindowSize(ChallengeWindowSizeEnum challe } /** - * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen - * @return challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * + * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size + * of 600x400 * **05** - Fullscreen + * + * @return challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the + * cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** + * - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen */ @JsonProperty(JSON_PROPERTY_CHALLENGE_WINDOW_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,9 +232,13 @@ public ChallengeWindowSizeEnum getChallengeWindowSize() { } /** - * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * + * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size + * of 600x400 * **05** - Fullscreen * - * @param challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + * @param challengeWindowSize Dimensions of the 3DS2 challenge window to be displayed to the + * cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** + * - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen */ @JsonProperty(JSON_PROPERTY_CHALLENGE_WINDOW_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,9 +247,18 @@ public void setChallengeWindowSize(ChallengeWindowSizeEnum challengeWindowSize) } /** - * Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. + * Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, + * you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for + * applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** + * – Don't perform 3D Secure authentication. Note that this setting results in refusals if the + * issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. * - * @param executeThreeD Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. + * @param executeThreeD Indicates if you want to perform 3D Secure authentication on a + * transaction. > Alternatively, you can use [Dynamic 3D + * Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. + * Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't + * perform 3D Secure authentication. Note that this setting results in refusals if the issuer + * mandates 3D Secure because of the PSD2 directive or other, national regulations. * @return the current {@code AdditionalData3DSecure} instance, allowing for method chaining */ public AdditionalData3DSecure executeThreeD(String executeThreeD) { @@ -180,8 +267,18 @@ public AdditionalData3DSecure executeThreeD(String executeThreeD) { } /** - * Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. - * @return executeThreeD Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. + * Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, + * you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for + * applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** + * – Don't perform 3D Secure authentication. Note that this setting results in refusals if the + * issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. + * + * @return executeThreeD Indicates if you want to perform 3D Secure authentication on a + * transaction. > Alternatively, you can use [Dynamic 3D + * Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. + * Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't + * perform 3D Secure authentication. Note that this setting results in refusals if the issuer + * mandates 3D Secure because of the PSD2 directive or other, national regulations. */ @JsonProperty(JSON_PROPERTY_EXECUTE_THREE_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,9 +287,18 @@ public String getExecuteThreeD() { } /** - * Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. + * Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, + * you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for + * applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** + * – Don't perform 3D Secure authentication. Note that this setting results in refusals if the + * issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. * - * @param executeThreeD Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. + * @param executeThreeD Indicates if you want to perform 3D Secure authentication on a + * transaction. > Alternatively, you can use [Dynamic 3D + * Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. + * Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't + * perform 3D Secure authentication. Note that this setting results in refusals if the issuer + * mandates 3D Secure because of the PSD2 directive or other, national regulations. */ @JsonProperty(JSON_PROPERTY_EXECUTE_THREE_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -213,6 +319,7 @@ public AdditionalData3DSecure mpiImplementationType(String mpiImplementationType /** * In case of Secure+, this field must be set to **CUPSecurePlus**. + * * @return mpiImplementationType In case of Secure+, this field must be set to **CUPSecurePlus**. */ @JsonProperty(JSON_PROPERTY_MPI_IMPLEMENTATION_TYPE) @@ -233,9 +340,15 @@ public void setMpiImplementationType(String mpiImplementationType) { } /** - * Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * Indicates the [exemption + * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) + * that you want to request for the transaction. Possible values: * **lowValue** * + * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * - * @param scaExemption Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * @param scaExemption Indicates the [exemption + * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) + * that you want to request for the transaction. Possible values: * **lowValue** * + * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * @return the current {@code AdditionalData3DSecure} instance, allowing for method chaining */ public AdditionalData3DSecure scaExemption(String scaExemption) { @@ -244,8 +357,15 @@ public AdditionalData3DSecure scaExemption(String scaExemption) { } /** - * Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** - * @return scaExemption Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * Indicates the [exemption + * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) + * that you want to request for the transaction. Possible values: * **lowValue** * + * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * + * @return scaExemption Indicates the [exemption + * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) + * that you want to request for the transaction. Possible values: * **lowValue** * + * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** */ @JsonProperty(JSON_PROPERTY_SCA_EXEMPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -254,9 +374,15 @@ public String getScaExemption() { } /** - * Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * Indicates the [exemption + * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) + * that you want to request for the transaction. Possible values: * **lowValue** * + * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * - * @param scaExemption Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * @param scaExemption Indicates the [exemption + * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) + * that you want to request for the transaction. Possible values: * **lowValue** * + * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** */ @JsonProperty(JSON_PROPERTY_SCA_EXEMPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -265,9 +391,23 @@ public void setScaExemption(String scaExemption) { } /** - * Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen's Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. * If you the BIN is not enrolled, you will receive an error. + * Indicates your preference for the 3D Secure version. > If you use this parameter, you + * override the checks from Adyen's Authentication Engine. We recommend to use this field only + * if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure + * version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support + * version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or + * 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply + * the fallback policy configured in your account. * If you the BIN is not enrolled, you will + * receive an error. * - * @param threeDSVersion Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen's Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. * If you the BIN is not enrolled, you will receive an error. + * @param threeDSVersion Indicates your preference for the 3D Secure version. > If you use this + * parameter, you override the checks from Adyen's Authentication Engine. We recommend to + * use this field only if you have an extensive knowledge of 3D Secure. Possible values: * + * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If + * the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules + * apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in + * the `ARes`, we will apply the fallback policy configured in your account. * If + * you the BIN is not enrolled, you will receive an error. * @return the current {@code AdditionalData3DSecure} instance, allowing for method chaining */ public AdditionalData3DSecure threeDSVersion(String threeDSVersion) { @@ -276,8 +416,23 @@ public AdditionalData3DSecure threeDSVersion(String threeDSVersion) { } /** - * Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen's Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. * If you the BIN is not enrolled, you will receive an error. - * @return threeDSVersion Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen's Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. * If you the BIN is not enrolled, you will receive an error. + * Indicates your preference for the 3D Secure version. > If you use this parameter, you + * override the checks from Adyen's Authentication Engine. We recommend to use this field only + * if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure + * version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support + * version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or + * 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply + * the fallback policy configured in your account. * If you the BIN is not enrolled, you will + * receive an error. + * + * @return threeDSVersion Indicates your preference for the 3D Secure version. > If you use + * this parameter, you override the checks from Adyen's Authentication Engine. We + * recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible + * values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version + * 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The + * following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative + * `transStatus` in the `ARes`, we will apply the fallback policy + * configured in your account. * If you the BIN is not enrolled, you will receive an error. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -286,9 +441,23 @@ public String getThreeDSVersion() { } /** - * Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen's Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. * If you the BIN is not enrolled, you will receive an error. + * Indicates your preference for the 3D Secure version. > If you use this parameter, you + * override the checks from Adyen's Authentication Engine. We recommend to use this field only + * if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure + * version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support + * version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or + * 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply + * the fallback policy configured in your account. * If you the BIN is not enrolled, you will + * receive an error. * - * @param threeDSVersion Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen's Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. * If you the BIN is not enrolled, you will receive an error. + * @param threeDSVersion Indicates your preference for the 3D Secure version. > If you use this + * parameter, you override the checks from Adyen's Authentication Engine. We recommend to + * use this field only if you have an extensive knowledge of 3D Secure. Possible values: * + * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If + * the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules + * apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in + * the `ARes`, we will apply the fallback policy configured in your account. * If + * you the BIN is not enrolled, you will receive an error. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -296,9 +465,7 @@ public void setThreeDSVersion(String threeDSVersion) { this.threeDSVersion = threeDSVersion; } - /** - * Return true if this AdditionalData3DSecure object is equal to o. - */ + /** Return true if this AdditionalData3DSecure object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -308,17 +475,23 @@ public boolean equals(Object o) { return false; } AdditionalData3DSecure additionalData3DSecure = (AdditionalData3DSecure) o; - return Objects.equals(this.allow3DS2, additionalData3DSecure.allow3DS2) && - Objects.equals(this.challengeWindowSize, additionalData3DSecure.challengeWindowSize) && - Objects.equals(this.executeThreeD, additionalData3DSecure.executeThreeD) && - Objects.equals(this.mpiImplementationType, additionalData3DSecure.mpiImplementationType) && - Objects.equals(this.scaExemption, additionalData3DSecure.scaExemption) && - Objects.equals(this.threeDSVersion, additionalData3DSecure.threeDSVersion); + return Objects.equals(this.allow3DS2, additionalData3DSecure.allow3DS2) + && Objects.equals(this.challengeWindowSize, additionalData3DSecure.challengeWindowSize) + && Objects.equals(this.executeThreeD, additionalData3DSecure.executeThreeD) + && Objects.equals(this.mpiImplementationType, additionalData3DSecure.mpiImplementationType) + && Objects.equals(this.scaExemption, additionalData3DSecure.scaExemption) + && Objects.equals(this.threeDSVersion, additionalData3DSecure.threeDSVersion); } @Override public int hashCode() { - return Objects.hash(allow3DS2, challengeWindowSize, executeThreeD, mpiImplementationType, scaExemption, threeDSVersion); + return Objects.hash( + allow3DS2, + challengeWindowSize, + executeThreeD, + mpiImplementationType, + scaExemption, + threeDSVersion); } @Override @@ -326,9 +499,13 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalData3DSecure {\n"); sb.append(" allow3DS2: ").append(toIndentedString(allow3DS2)).append("\n"); - sb.append(" challengeWindowSize: ").append(toIndentedString(challengeWindowSize)).append("\n"); + sb.append(" challengeWindowSize: ") + .append(toIndentedString(challengeWindowSize)) + .append("\n"); sb.append(" executeThreeD: ").append(toIndentedString(executeThreeD)).append("\n"); - sb.append(" mpiImplementationType: ").append(toIndentedString(mpiImplementationType)).append("\n"); + sb.append(" mpiImplementationType: ") + .append(toIndentedString(mpiImplementationType)) + .append("\n"); sb.append(" scaExemption: ").append(toIndentedString(scaExemption)).append("\n"); sb.append(" threeDSVersion: ").append(toIndentedString(threeDSVersion)).append("\n"); sb.append("}"); @@ -336,8 +513,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -346,21 +522,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalData3DSecure given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalData3DSecure - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalData3DSecure + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalData3DSecure */ public static AdditionalData3DSecure fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalData3DSecure.class); } -/** - * Convert an instance of AdditionalData3DSecure to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalData3DSecure to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataAirline.java b/src/main/java/com/adyen/model/payment/AdditionalDataAirline.java index b3d6118ae..5e5935a7b 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataAirline.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataAirline.java @@ -2,31 +2,22 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AdditionalDataAirline - */ +/** AdditionalDataAirline */ @JsonPropertyOrder({ AdditionalDataAirline.JSON_PROPERTY_AIRLINE_AGENCY_INVOICE_NUMBER, AdditionalDataAirline.JSON_PROPERTY_AIRLINE_AGENCY_PLAN_NAME, @@ -58,9 +49,9 @@ AdditionalDataAirline.JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_CODE, AdditionalDataAirline.JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_NAME }) - public class AdditionalDataAirline { - public static final String JSON_PROPERTY_AIRLINE_AGENCY_INVOICE_NUMBER = "airline.agency_invoice_number"; + public static final String JSON_PROPERTY_AIRLINE_AGENCY_INVOICE_NUMBER = + "airline.agency_invoice_number"; private String airlineAgencyInvoiceNumber; public static final String JSON_PROPERTY_AIRLINE_AGENCY_PLAN_NAME = "airline.agency_plan_name"; @@ -69,16 +60,19 @@ public class AdditionalDataAirline { public static final String JSON_PROPERTY_AIRLINE_AIRLINE_CODE = "airline.airline_code"; private String airlineAirlineCode; - public static final String JSON_PROPERTY_AIRLINE_AIRLINE_DESIGNATOR_CODE = "airline.airline_designator_code"; + public static final String JSON_PROPERTY_AIRLINE_AIRLINE_DESIGNATOR_CODE = + "airline.airline_designator_code"; private String airlineAirlineDesignatorCode; public static final String JSON_PROPERTY_AIRLINE_BOARDING_FEE = "airline.boarding_fee"; private String airlineBoardingFee; - public static final String JSON_PROPERTY_AIRLINE_COMPUTERIZED_RESERVATION_SYSTEM = "airline.computerized_reservation_system"; + public static final String JSON_PROPERTY_AIRLINE_COMPUTERIZED_RESERVATION_SYSTEM = + "airline.computerized_reservation_system"; private String airlineComputerizedReservationSystem; - public static final String JSON_PROPERTY_AIRLINE_CUSTOMER_REFERENCE_NUMBER = "airline.customer_reference_number"; + public static final String JSON_PROPERTY_AIRLINE_CUSTOMER_REFERENCE_NUMBER = + "airline.customer_reference_number"; private String airlineCustomerReferenceNumber; public static final String JSON_PROPERTY_AIRLINE_DOCUMENT_TYPE = "airline.document_type"; @@ -93,67 +87,82 @@ public class AdditionalDataAirline { public static final String JSON_PROPERTY_AIRLINE_LEG_CARRIER_CODE = "airline.leg.carrier_code"; private String airlineLegCarrierCode; - public static final String JSON_PROPERTY_AIRLINE_LEG_CLASS_OF_TRAVEL = "airline.leg.class_of_travel"; + public static final String JSON_PROPERTY_AIRLINE_LEG_CLASS_OF_TRAVEL = + "airline.leg.class_of_travel"; private String airlineLegClassOfTravel; - public static final String JSON_PROPERTY_AIRLINE_LEG_DATE_OF_TRAVEL = "airline.leg.date_of_travel"; + public static final String JSON_PROPERTY_AIRLINE_LEG_DATE_OF_TRAVEL = + "airline.leg.date_of_travel"; private String airlineLegDateOfTravel; - public static final String JSON_PROPERTY_AIRLINE_LEG_DEPART_AIRPORT = "airline.leg.depart_airport"; + public static final String JSON_PROPERTY_AIRLINE_LEG_DEPART_AIRPORT = + "airline.leg.depart_airport"; private String airlineLegDepartAirport; public static final String JSON_PROPERTY_AIRLINE_LEG_DEPART_TAX = "airline.leg.depart_tax"; private String airlineLegDepartTax; - public static final String JSON_PROPERTY_AIRLINE_LEG_DESTINATION_CODE = "airline.leg.destination_code"; + public static final String JSON_PROPERTY_AIRLINE_LEG_DESTINATION_CODE = + "airline.leg.destination_code"; private String airlineLegDestinationCode; - public static final String JSON_PROPERTY_AIRLINE_LEG_FARE_BASE_CODE = "airline.leg.fare_base_code"; + public static final String JSON_PROPERTY_AIRLINE_LEG_FARE_BASE_CODE = + "airline.leg.fare_base_code"; private String airlineLegFareBaseCode; public static final String JSON_PROPERTY_AIRLINE_LEG_FLIGHT_NUMBER = "airline.leg.flight_number"; private String airlineLegFlightNumber; - public static final String JSON_PROPERTY_AIRLINE_LEG_STOP_OVER_CODE = "airline.leg.stop_over_code"; + public static final String JSON_PROPERTY_AIRLINE_LEG_STOP_OVER_CODE = + "airline.leg.stop_over_code"; private String airlineLegStopOverCode; - public static final String JSON_PROPERTY_AIRLINE_PASSENGER_DATE_OF_BIRTH = "airline.passenger.date_of_birth"; + public static final String JSON_PROPERTY_AIRLINE_PASSENGER_DATE_OF_BIRTH = + "airline.passenger.date_of_birth"; private String airlinePassengerDateOfBirth; - public static final String JSON_PROPERTY_AIRLINE_PASSENGER_FIRST_NAME = "airline.passenger.first_name"; + public static final String JSON_PROPERTY_AIRLINE_PASSENGER_FIRST_NAME = + "airline.passenger.first_name"; private String airlinePassengerFirstName; - public static final String JSON_PROPERTY_AIRLINE_PASSENGER_LAST_NAME = "airline.passenger.last_name"; + public static final String JSON_PROPERTY_AIRLINE_PASSENGER_LAST_NAME = + "airline.passenger.last_name"; private String airlinePassengerLastName; - public static final String JSON_PROPERTY_AIRLINE_PASSENGER_PHONE_NUMBER = "airline.passenger.phone_number"; + public static final String JSON_PROPERTY_AIRLINE_PASSENGER_PHONE_NUMBER = + "airline.passenger.phone_number"; private String airlinePassengerPhoneNumber; - public static final String JSON_PROPERTY_AIRLINE_PASSENGER_TRAVELLER_TYPE = "airline.passenger.traveller_type"; + public static final String JSON_PROPERTY_AIRLINE_PASSENGER_TRAVELLER_TYPE = + "airline.passenger.traveller_type"; private String airlinePassengerTravellerType; public static final String JSON_PROPERTY_AIRLINE_PASSENGER_NAME = "airline.passenger_name"; private String airlinePassengerName; - public static final String JSON_PROPERTY_AIRLINE_TICKET_ISSUE_ADDRESS = "airline.ticket_issue_address"; + public static final String JSON_PROPERTY_AIRLINE_TICKET_ISSUE_ADDRESS = + "airline.ticket_issue_address"; private String airlineTicketIssueAddress; public static final String JSON_PROPERTY_AIRLINE_TICKET_NUMBER = "airline.ticket_number"; private String airlineTicketNumber; - public static final String JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_CODE = "airline.travel_agency_code"; + public static final String JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_CODE = + "airline.travel_agency_code"; private String airlineTravelAgencyCode; - public static final String JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_NAME = "airline.travel_agency_name"; + public static final String JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_NAME = + "airline.travel_agency_name"; private String airlineTravelAgencyName; - public AdditionalDataAirline() { - } + public AdditionalDataAirline() {} /** - * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters + * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 + * character * maxLength: 6 characters * - * @param airlineAgencyInvoiceNumber The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters + * @param airlineAgencyInvoiceNumber The reference number for the invoice, issued by the agency. * + * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineAgencyInvoiceNumber(String airlineAgencyInvoiceNumber) { @@ -162,8 +171,11 @@ public AdditionalDataAirline airlineAgencyInvoiceNumber(String airlineAgencyInvo } /** - * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters - * @return airlineAgencyInvoiceNumber The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters + * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 + * character * maxLength: 6 characters + * + * @return airlineAgencyInvoiceNumber The reference number for the invoice, issued by the agency. + * * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_AGENCY_INVOICE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,9 +184,11 @@ public String getAirlineAgencyInvoiceNumber() { } /** - * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters + * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 + * character * maxLength: 6 characters * - * @param airlineAgencyInvoiceNumber The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters + * @param airlineAgencyInvoiceNumber The reference number for the invoice, issued by the agency. * + * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_AGENCY_INVOICE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,9 +197,11 @@ public void setAirlineAgencyInvoiceNumber(String airlineAgencyInvoiceNumber) { } /** - * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters + * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: + * 2 characters * - * @param airlineAgencyPlanName The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters + * @param airlineAgencyPlanName The two-letter agency plan identifier. * Encoding: ASCII * + * minLength: 2 characters * maxLength: 2 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineAgencyPlanName(String airlineAgencyPlanName) { @@ -194,8 +210,11 @@ public AdditionalDataAirline airlineAgencyPlanName(String airlineAgencyPlanName) } /** - * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters - * @return airlineAgencyPlanName The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters + * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: + * 2 characters + * + * @return airlineAgencyPlanName The two-letter agency plan identifier. * Encoding: ASCII * + * minLength: 2 characters * maxLength: 2 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_AGENCY_PLAN_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,9 +223,11 @@ public String getAirlineAgencyPlanName() { } /** - * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters + * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: + * 2 characters * - * @param airlineAgencyPlanName The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters + * @param airlineAgencyPlanName The two-letter agency plan identifier. * Encoding: ASCII * + * minLength: 2 characters * maxLength: 2 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_AGENCY_PLAN_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -215,9 +236,15 @@ public void setAirlineAgencyPlanName(String airlineAgencyPlanName) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that + * identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 + * * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all + * zeros. * - * @param airlineAirlineCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * @param airlineAirlineCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit + * accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code + * (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must + * not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineAirlineCode(String airlineAirlineCode) { @@ -226,8 +253,15 @@ public AdditionalDataAirline airlineAirlineCode(String airlineAirlineCode) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. - * @return airlineAirlineCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that + * identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 + * * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all + * zeros. + * + * @return airlineAirlineCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit + * accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code + * (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must + * not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_AIRLINE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -236,9 +270,15 @@ public String getAirlineAirlineCode() { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that + * identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 + * * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all + * zeros. * - * @param airlineAirlineCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * @param airlineAirlineCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit + * accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code + * (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must + * not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_AIRLINE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -247,9 +287,14 @@ public void setAirlineAirlineCode(String airlineAirlineCode) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that + * identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * + * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineAirlineDesignatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * @param airlineAirlineDesignatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) + * 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: + * KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces + * * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineAirlineDesignatorCode(String airlineAirlineDesignatorCode) { @@ -258,8 +303,14 @@ public AdditionalDataAirline airlineAirlineDesignatorCode(String airlineAirlineD } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. - * @return airlineAirlineDesignatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that + * identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * + * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * + * @return airlineAirlineDesignatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) + * 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: + * KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces + * * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_AIRLINE_DESIGNATOR_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -268,9 +319,14 @@ public String getAirlineAirlineDesignatorCode() { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that + * identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * + * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. * - * @param airlineAirlineDesignatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * @param airlineAirlineDesignatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) + * 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: + * KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces + * * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_AIRLINE_DESIGNATOR_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -279,9 +335,13 @@ public void setAirlineAirlineDesignatorCode(String airlineAirlineDesignatorCode) } /** - * The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 18 characters + * The amount charged for boarding the plane, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * + * minLength: 1 character * maxLength: 18 characters * - * @param airlineBoardingFee The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 18 characters + * @param airlineBoardingFee The amount charged for boarding the plane, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * + * minLength: 1 character * maxLength: 18 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineBoardingFee(String airlineBoardingFee) { @@ -290,8 +350,13 @@ public AdditionalDataAirline airlineBoardingFee(String airlineBoardingFee) { } /** - * The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 18 characters - * @return airlineBoardingFee The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 18 characters + * The amount charged for boarding the plane, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * + * minLength: 1 character * maxLength: 18 characters + * + * @return airlineBoardingFee The amount charged for boarding the plane, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * + * minLength: 1 character * maxLength: 18 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_BOARDING_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -300,9 +365,13 @@ public String getAirlineBoardingFee() { } /** - * The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 18 characters + * The amount charged for boarding the plane, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * + * minLength: 1 character * maxLength: 18 characters * - * @param airlineBoardingFee The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 18 characters + * @param airlineBoardingFee The amount charged for boarding the plane, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * + * minLength: 1 character * maxLength: 18 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_BOARDING_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -311,19 +380,31 @@ public void setAirlineBoardingFee(String airlineBoardingFee) { } /** - * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters + * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the + * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 + * characters * - * @param airlineComputerizedReservationSystem The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters + * @param airlineComputerizedReservationSystem The + * [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the + * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * + * maxLength: 4 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ - public AdditionalDataAirline airlineComputerizedReservationSystem(String airlineComputerizedReservationSystem) { + public AdditionalDataAirline airlineComputerizedReservationSystem( + String airlineComputerizedReservationSystem) { this.airlineComputerizedReservationSystem = airlineComputerizedReservationSystem; return this; } /** - * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters - * @return airlineComputerizedReservationSystem The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters + * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the + * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 + * characters + * + * @return airlineComputerizedReservationSystem The + * [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the + * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * + * maxLength: 4 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_COMPUTERIZED_RESERVATION_SYSTEM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -332,9 +413,14 @@ public String getAirlineComputerizedReservationSystem() { } /** - * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters + * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the + * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 + * characters * - * @param airlineComputerizedReservationSystem The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters + * @param airlineComputerizedReservationSystem The + * [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the + * reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * + * maxLength: 4 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_COMPUTERIZED_RESERVATION_SYSTEM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -343,19 +429,29 @@ public void setAirlineComputerizedReservationSystem(String airlineComputerizedRe } /** - * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not be all spaces + * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If + * you send more than 20 characters, the customer reference number is truncated * Must not be all + * spaces * - * @param airlineCustomerReferenceNumber The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not be all spaces + * @param airlineCustomerReferenceNumber The alphanumeric customer reference number. * Encoding: + * ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer + * reference number is truncated * Must not be all spaces * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ - public AdditionalDataAirline airlineCustomerReferenceNumber(String airlineCustomerReferenceNumber) { + public AdditionalDataAirline airlineCustomerReferenceNumber( + String airlineCustomerReferenceNumber) { this.airlineCustomerReferenceNumber = airlineCustomerReferenceNumber; return this; } /** - * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not be all spaces - * @return airlineCustomerReferenceNumber The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not be all spaces + * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If + * you send more than 20 characters, the customer reference number is truncated * Must not be all + * spaces + * + * @return airlineCustomerReferenceNumber The alphanumeric customer reference number. * Encoding: + * ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer + * reference number is truncated * Must not be all spaces */ @JsonProperty(JSON_PROPERTY_AIRLINE_CUSTOMER_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -364,9 +460,13 @@ public String getAirlineCustomerReferenceNumber() { } /** - * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not be all spaces + * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If + * you send more than 20 characters, the customer reference number is truncated * Must not be all + * spaces * - * @param airlineCustomerReferenceNumber The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not be all spaces + * @param airlineCustomerReferenceNumber The alphanumeric customer reference number. * Encoding: + * ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer + * reference number is truncated * Must not be all spaces */ @JsonProperty(JSON_PROPERTY_AIRLINE_CUSTOMER_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -375,9 +475,13 @@ public void setAirlineCustomerReferenceNumber(String airlineCustomerReferenceNum } /** - * A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters + * A code that identifies the type of item bought. The description of the code can appear on + * credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 + * characters * maxLength: 2 characters * - * @param airlineDocumentType A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters + * @param airlineDocumentType A code that identifies the type of item bought. The description of + * the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger + * ticket = 01 * minLength: 2 characters * maxLength: 2 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineDocumentType(String airlineDocumentType) { @@ -386,8 +490,13 @@ public AdditionalDataAirline airlineDocumentType(String airlineDocumentType) { } /** - * A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters - * @return airlineDocumentType A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters + * A code that identifies the type of item bought. The description of the code can appear on + * credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 + * characters * maxLength: 2 characters + * + * @return airlineDocumentType A code that identifies the type of item bought. The description of + * the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger + * ticket = 01 * minLength: 2 characters * maxLength: 2 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_DOCUMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -396,9 +505,13 @@ public String getAirlineDocumentType() { } /** - * A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters + * A code that identifies the type of item bought. The description of the code can appear on + * credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 + * characters * maxLength: 2 characters * - * @param airlineDocumentType A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters + * @param airlineDocumentType A code that identifies the type of item bought. The description of + * the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger + * ticket = 01 * minLength: 2 characters * maxLength: 2 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_DOCUMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -407,9 +520,13 @@ public void setAirlineDocumentType(String airlineDocumentType) { } /** - * The flight departure date. Local time `(HH:mm)` is optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 characters * maxLength: 16 characters + * The flight departure date. Local time `(HH:mm)` is optional. * Date format: + * `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 + * characters * maxLength: 16 characters * - * @param airlineFlightDate The flight departure date. Local time `(HH:mm)` is optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 characters * maxLength: 16 characters + * @param airlineFlightDate The flight departure date. Local time `(HH:mm)` is optional. + * * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` + * * minLength: 10 characters * maxLength: 16 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineFlightDate(String airlineFlightDate) { @@ -418,8 +535,13 @@ public AdditionalDataAirline airlineFlightDate(String airlineFlightDate) { } /** - * The flight departure date. Local time `(HH:mm)` is optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 characters * maxLength: 16 characters - * @return airlineFlightDate The flight departure date. Local time `(HH:mm)` is optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 characters * maxLength: 16 characters + * The flight departure date. Local time `(HH:mm)` is optional. * Date format: + * `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 + * characters * maxLength: 16 characters + * + * @return airlineFlightDate The flight departure date. Local time `(HH:mm)` is + * optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd + * HH:mm` * minLength: 10 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_FLIGHT_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -428,9 +550,13 @@ public String getAirlineFlightDate() { } /** - * The flight departure date. Local time `(HH:mm)` is optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 characters * maxLength: 16 characters + * The flight departure date. Local time `(HH:mm)` is optional. * Date format: + * `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 + * characters * maxLength: 16 characters * - * @param airlineFlightDate The flight departure date. Local time `(HH:mm)` is optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 characters * maxLength: 16 characters + * @param airlineFlightDate The flight departure date. Local time `(HH:mm)` is optional. + * * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` + * * minLength: 10 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_FLIGHT_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -439,9 +565,11 @@ public void setAirlineFlightDate(String airlineFlightDate) { } /** - * The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 characters * Date format: YYMMDD + * The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 + * characters * Date format: YYMMDD * - * @param airlineIssueDate The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 characters * Date format: YYMMDD + * @param airlineIssueDate The date that the ticket was issued to the passenger. * minLength: 6 + * characters * maxLength: 6 characters * Date format: YYMMDD * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineIssueDate(String airlineIssueDate) { @@ -450,8 +578,11 @@ public AdditionalDataAirline airlineIssueDate(String airlineIssueDate) { } /** - * The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 characters * Date format: YYMMDD - * @return airlineIssueDate The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 characters * Date format: YYMMDD + * The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 + * characters * Date format: YYMMDD + * + * @return airlineIssueDate The date that the ticket was issued to the passenger. * minLength: 6 + * characters * maxLength: 6 characters * Date format: YYMMDD */ @JsonProperty(JSON_PROPERTY_AIRLINE_ISSUE_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -460,9 +591,11 @@ public String getAirlineIssueDate() { } /** - * The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 characters * Date format: YYMMDD + * The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 + * characters * Date format: YYMMDD * - * @param airlineIssueDate The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 characters * Date format: YYMMDD + * @param airlineIssueDate The date that the ticket was issued to the passenger. * minLength: 6 + * characters * maxLength: 6 characters * Date format: YYMMDD */ @JsonProperty(JSON_PROPERTY_AIRLINE_ISSUE_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -471,9 +604,15 @@ public void setAirlineIssueDate(String airlineIssueDate) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that + * identifies the carrier. This field is required if the airline data includes leg details. * + * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all + * spaces * Must not be all zeros. * - * @param airlineLegCarrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegCarrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) + * 2-letter accounting code (PAX) that identifies the carrier. This field is required if the + * airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * + * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegCarrierCode(String airlineLegCarrierCode) { @@ -482,8 +621,15 @@ public AdditionalDataAirline airlineLegCarrierCode(String airlineLegCarrierCode) } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. - * @return airlineLegCarrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that + * identifies the carrier. This field is required if the airline data includes leg details. * + * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all + * spaces * Must not be all zeros. + * + * @return airlineLegCarrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) + * 2-letter accounting code (PAX) that identifies the carrier. This field is required if the + * airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * + * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_CARRIER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -492,9 +638,15 @@ public String getAirlineLegCarrierCode() { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that + * identifies the carrier. This field is required if the airline data includes leg details. * + * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all + * spaces * Must not be all zeros. * - * @param airlineLegCarrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegCarrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) + * 2-letter accounting code (PAX) that identifies the carrier. This field is required if the + * airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * + * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_CARRIER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -503,9 +655,14 @@ public void setAirlineLegCarrierCode(String airlineLegCarrierCode) { } /** - * A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not be all zeros. + * A one-letter travel class identifier. The following are common: * F: first class * J: business + * class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * + * maxLength: 1 character * Must not be all spaces * Must not be all zeros. * - * @param airlineLegClassOfTravel A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not be all zeros. + * @param airlineLegClassOfTravel A one-letter travel class identifier. The following are common: + * * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: + * ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not + * be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegClassOfTravel(String airlineLegClassOfTravel) { @@ -514,8 +671,14 @@ public AdditionalDataAirline airlineLegClassOfTravel(String airlineLegClassOfTra } /** - * A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not be all zeros. - * @return airlineLegClassOfTravel A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not be all zeros. + * A one-letter travel class identifier. The following are common: * F: first class * J: business + * class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * + * maxLength: 1 character * Must not be all spaces * Must not be all zeros. + * + * @return airlineLegClassOfTravel A one-letter travel class identifier. The following are common: + * * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: + * ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not + * be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_CLASS_OF_TRAVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -524,9 +687,14 @@ public String getAirlineLegClassOfTravel() { } /** - * A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not be all zeros. + * A one-letter travel class identifier. The following are common: * F: first class * J: business + * class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * + * maxLength: 1 character * Must not be all spaces * Must not be all zeros. * - * @param airlineLegClassOfTravel A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not be all zeros. + * @param airlineLegClassOfTravel A one-letter travel class identifier. The following are common: + * * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: + * ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not + * be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_CLASS_OF_TRAVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -535,9 +703,13 @@ public void setAirlineLegClassOfTravel(String airlineLegClassOfTravel) { } /** - * Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters + * Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format + * `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 + * characters * - * @param airlineLegDateOfTravel Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters + * @param airlineLegDateOfTravel Date and time of travel in [ISO + * 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * + * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegDateOfTravel(String airlineLegDateOfTravel) { @@ -546,8 +718,13 @@ public AdditionalDataAirline airlineLegDateOfTravel(String airlineLegDateOfTrave } /** - * Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters - * @return airlineLegDateOfTravel Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters + * Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format + * `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 + * characters + * + * @return airlineLegDateOfTravel Date and time of travel in [ISO + * 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * + * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_DATE_OF_TRAVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -556,9 +733,13 @@ public String getAirlineLegDateOfTravel() { } /** - * Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters + * Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format + * `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 + * characters * - * @param airlineLegDateOfTravel Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters + * @param airlineLegDateOfTravel Date and time of travel in [ISO + * 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * + * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_DATE_OF_TRAVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -567,9 +748,15 @@ public void setAirlineLegDateOfTravel(String airlineLegDateOfTravel) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the + * departure airport. This field is required if the airline data includes leg details. * Encoding: + * ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * + * Must not be all spaces * Must not be all zeros. * - * @param airlineLegDepartAirport The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegDepartAirport The [IATA](https://www.iata.org/services/pages/codes.aspx) + * three-letter airport code of the departure airport. This field is required if the airline + * data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 + * characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegDepartAirport(String airlineLegDepartAirport) { @@ -578,8 +765,15 @@ public AdditionalDataAirline airlineLegDepartAirport(String airlineLegDepartAirp } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. - * @return airlineLegDepartAirport The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the + * departure airport. This field is required if the airline data includes leg details. * Encoding: + * ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * + * Must not be all spaces * Must not be all zeros. + * + * @return airlineLegDepartAirport The [IATA](https://www.iata.org/services/pages/codes.aspx) + * three-letter airport code of the departure airport. This field is required if the airline + * data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 + * characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_DEPART_AIRPORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -588,9 +782,15 @@ public String getAirlineLegDepartAirport() { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the + * departure airport. This field is required if the airline data includes leg details. * Encoding: + * ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * + * Must not be all spaces * Must not be all zeros. * - * @param airlineLegDepartAirport The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegDepartAirport The [IATA](https://www.iata.org/services/pages/codes.aspx) + * three-letter airport code of the departure airport. This field is required if the airline + * data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 + * characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_DEPART_AIRPORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -599,9 +799,14 @@ public void setAirlineLegDepartAirport(String airlineLegDepartAirport) { } /** - * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 12 * Must not be all zeros. + * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * + * minLength: 1 * maxLength: 12 * Must not be all zeros. * - * @param airlineLegDepartTax The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 12 * Must not be all zeros. + * @param airlineLegDepartTax The amount of [departure + * tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * + * minLength: 1 * maxLength: 12 * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegDepartTax(String airlineLegDepartTax) { @@ -610,8 +815,14 @@ public AdditionalDataAirline airlineLegDepartTax(String airlineLegDepartTax) { } /** - * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 12 * Must not be all zeros. - * @return airlineLegDepartTax The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 12 * Must not be all zeros. + * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * + * minLength: 1 * maxLength: 12 * Must not be all zeros. + * + * @return airlineLegDepartTax The amount of [departure + * tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * + * minLength: 1 * maxLength: 12 * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_DEPART_TAX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -620,9 +831,14 @@ public String getAirlineLegDepartTax() { } /** - * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 12 * Must not be all zeros. + * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * + * minLength: 1 * maxLength: 12 * Must not be all zeros. * - * @param airlineLegDepartTax The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 12 * Must not be all zeros. + * @param airlineLegDepartTax The amount of [departure + * tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * + * minLength: 1 * maxLength: 12 * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_DEPART_TAX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -631,9 +847,15 @@ public void setAirlineLegDepartTax(String airlineLegDepartTax) { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the + * destination airport. This field is required if the airline data includes leg details. * + * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 + * characters * Must not be all spaces * Must not be all zeros. * - * @param airlineLegDestinationCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegDestinationCode The [IATA](https://www.iata.org/services/pages/codes.aspx) + * 3-letter airport code of the destination airport. This field is required if the airline + * data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 + * characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegDestinationCode(String airlineLegDestinationCode) { @@ -642,8 +864,15 @@ public AdditionalDataAirline airlineLegDestinationCode(String airlineLegDestinat } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. - * @return airlineLegDestinationCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the + * destination airport. This field is required if the airline data includes leg details. * + * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 + * characters * Must not be all spaces * Must not be all zeros. + * + * @return airlineLegDestinationCode The [IATA](https://www.iata.org/services/pages/codes.aspx) + * 3-letter airport code of the destination airport. This field is required if the airline + * data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 + * characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_DESTINATION_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -652,9 +881,15 @@ public String getAirlineLegDestinationCode() { } /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the + * destination airport. This field is required if the airline data includes leg details. * + * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 + * characters * Must not be all spaces * Must not be all zeros. * - * @param airlineLegDestinationCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegDestinationCode The [IATA](https://www.iata.org/services/pages/codes.aspx) + * 3-letter airport code of the destination airport. This field is required if the airline + * data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 + * characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_DESTINATION_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -663,9 +898,13 @@ public void setAirlineLegDestinationCode(String airlineLegDestinationCode) { } /** - * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * + * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all + * zeros. * - * @param airlineLegFareBaseCode The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegFareBaseCode The [fare basis + * code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 + * character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegFareBaseCode(String airlineLegFareBaseCode) { @@ -674,8 +913,13 @@ public AdditionalDataAirline airlineLegFareBaseCode(String airlineLegFareBaseCod } /** - * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. - * @return airlineLegFareBaseCode The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * + * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all + * zeros. + * + * @return airlineLegFareBaseCode The [fare basis + * code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 + * character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_FARE_BASE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -684,9 +928,13 @@ public String getAirlineLegFareBaseCode() { } /** - * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * + * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all + * zeros. * - * @param airlineLegFareBaseCode The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegFareBaseCode The [fare basis + * code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 + * character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_FARE_BASE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -695,9 +943,11 @@ public void setAirlineLegFareBaseCode(String airlineLegFareBaseCode) { } /** - * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all spaces * Must not be all zeros. + * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all + * spaces * Must not be all zeros. * - * @param airlineLegFlightNumber The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegFlightNumber The flight identifier. * minLength: 1 character * maxLength: 5 + * characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegFlightNumber(String airlineLegFlightNumber) { @@ -706,8 +956,11 @@ public AdditionalDataAirline airlineLegFlightNumber(String airlineLegFlightNumbe } /** - * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all spaces * Must not be all zeros. - * @return airlineLegFlightNumber The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all spaces * Must not be all zeros. + * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all + * spaces * Must not be all zeros. + * + * @return airlineLegFlightNumber The flight identifier. * minLength: 1 character * maxLength: 5 + * characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_FLIGHT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -716,9 +969,11 @@ public String getAirlineLegFlightNumber() { } /** - * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all spaces * Must not be all zeros. + * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all + * spaces * Must not be all zeros. * - * @param airlineLegFlightNumber The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all spaces * Must not be all zeros. + * @param airlineLegFlightNumber The flight identifier. * minLength: 1 character * maxLength: 5 + * characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_FLIGHT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -727,9 +982,14 @@ public void setAirlineLegFlightNumber(String airlineLegFlightNumber) { } /** - * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character + * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a + * space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: + * ASCII * minLength: 1 character * maxLength: 1 character * - * @param airlineLegStopOverCode A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character + * @param airlineLegStopOverCode A one-letter code that indicates whether the passenger is + * entitled to make a stopover. Can be a space, O if the passenger is entitled to make a + * stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 + * character * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineLegStopOverCode(String airlineLegStopOverCode) { @@ -738,8 +998,14 @@ public AdditionalDataAirline airlineLegStopOverCode(String airlineLegStopOverCod } /** - * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character - * @return airlineLegStopOverCode A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character + * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a + * space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: + * ASCII * minLength: 1 character * maxLength: 1 character + * + * @return airlineLegStopOverCode A one-letter code that indicates whether the passenger is + * entitled to make a stopover. Can be a space, O if the passenger is entitled to make a + * stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 + * character */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_STOP_OVER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -748,9 +1014,14 @@ public String getAirlineLegStopOverCode() { } /** - * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character + * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a + * space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: + * ASCII * minLength: 1 character * maxLength: 1 character * - * @param airlineLegStopOverCode A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character + * @param airlineLegStopOverCode A one-letter code that indicates whether the passenger is + * entitled to make a stopover. Can be a space, O if the passenger is entitled to make a + * stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 + * character */ @JsonProperty(JSON_PROPERTY_AIRLINE_LEG_STOP_OVER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -759,9 +1030,11 @@ public void setAirlineLegStopOverCode(String airlineLegStopOverCode) { } /** - * The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 + * The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * + * maxLength: 10 * - * @param airlinePassengerDateOfBirth The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 + * @param airlinePassengerDateOfBirth The passenger's date of birth. Date format: + * `yyyy-MM-dd` * minLength: 10 * maxLength: 10 * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlinePassengerDateOfBirth(String airlinePassengerDateOfBirth) { @@ -770,8 +1043,11 @@ public AdditionalDataAirline airlinePassengerDateOfBirth(String airlinePassenger } /** - * The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 - * @return airlinePassengerDateOfBirth The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 + * The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * + * maxLength: 10 + * + * @return airlinePassengerDateOfBirth The passenger's date of birth. Date format: + * `yyyy-MM-dd` * minLength: 10 * maxLength: 10 */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -780,9 +1056,11 @@ public String getAirlinePassengerDateOfBirth() { } /** - * The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 + * The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * + * maxLength: 10 * - * @param airlinePassengerDateOfBirth The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 + * @param airlinePassengerDateOfBirth The passenger's date of birth. Date format: + * `yyyy-MM-dd` * minLength: 10 * maxLength: 10 */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -791,9 +1069,11 @@ public void setAirlinePassengerDateOfBirth(String airlinePassengerDateOfBirth) { } /** - * The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * The passenger's first name. > This field is required if the airline data includes + * passenger details or leg details. * Encoding: ASCII * - * @param airlinePassengerFirstName The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * @param airlinePassengerFirstName The passenger's first name. > This field is required if + * the airline data includes passenger details or leg details. * Encoding: ASCII * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlinePassengerFirstName(String airlinePassengerFirstName) { @@ -802,8 +1082,11 @@ public AdditionalDataAirline airlinePassengerFirstName(String airlinePassengerFi } /** - * The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII - * @return airlinePassengerFirstName The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * The passenger's first name. > This field is required if the airline data includes + * passenger details or leg details. * Encoding: ASCII + * + * @return airlinePassengerFirstName The passenger's first name. > This field is required + * if the airline data includes passenger details or leg details. * Encoding: ASCII */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -812,9 +1095,11 @@ public String getAirlinePassengerFirstName() { } /** - * The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * The passenger's first name. > This field is required if the airline data includes + * passenger details or leg details. * Encoding: ASCII * - * @param airlinePassengerFirstName The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * @param airlinePassengerFirstName The passenger's first name. > This field is required if + * the airline data includes passenger details or leg details. * Encoding: ASCII */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -823,9 +1108,11 @@ public void setAirlinePassengerFirstName(String airlinePassengerFirstName) { } /** - * The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * The passenger's last name. > This field is required if the airline data includes + * passenger details or leg details. * Encoding: ASCII * - * @param airlinePassengerLastName The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * @param airlinePassengerLastName The passenger's last name. > This field is required if + * the airline data includes passenger details or leg details. * Encoding: ASCII * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlinePassengerLastName(String airlinePassengerLastName) { @@ -834,8 +1121,11 @@ public AdditionalDataAirline airlinePassengerLastName(String airlinePassengerLas } /** - * The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII - * @return airlinePassengerLastName The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * The passenger's last name. > This field is required if the airline data includes + * passenger details or leg details. * Encoding: ASCII + * + * @return airlinePassengerLastName The passenger's last name. > This field is required if + * the airline data includes passenger details or leg details. * Encoding: ASCII */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -844,9 +1134,11 @@ public String getAirlinePassengerLastName() { } /** - * The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * The passenger's last name. > This field is required if the airline data includes + * passenger details or leg details. * Encoding: ASCII * - * @param airlinePassengerLastName The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * @param airlinePassengerLastName The passenger's last name. > This field is required if + * the airline data includes passenger details or leg details. * Encoding: ASCII */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -855,9 +1147,13 @@ public void setAirlinePassengerLastName(String airlinePassengerLastName) { } /** - * The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters + * The passenger's phone number, including country code. This is an alphanumeric field that + * can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters + * * maxLength: 30 characters * - * @param airlinePassengerPhoneNumber The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters + * @param airlinePassengerPhoneNumber The passenger's phone number, including country code. + * This is an alphanumeric field that can include the '+' and '-' signs. * + * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlinePassengerPhoneNumber(String airlinePassengerPhoneNumber) { @@ -866,8 +1162,13 @@ public AdditionalDataAirline airlinePassengerPhoneNumber(String airlinePassenger } /** - * The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters - * @return airlinePassengerPhoneNumber The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters + * The passenger's phone number, including country code. This is an alphanumeric field that + * can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters + * * maxLength: 30 characters + * + * @return airlinePassengerPhoneNumber The passenger's phone number, including country code. + * This is an alphanumeric field that can include the '+' and '-' signs. * + * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -876,9 +1177,13 @@ public String getAirlinePassengerPhoneNumber() { } /** - * The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters + * The passenger's phone number, including country code. This is an alphanumeric field that + * can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters + * * maxLength: 30 characters * - * @param airlinePassengerPhoneNumber The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters + * @param airlinePassengerPhoneNumber The passenger's phone number, including country code. + * This is an alphanumeric field that can include the '+' and '-' signs. * + * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -887,9 +1192,11 @@ public void setAirlinePassengerPhoneNumber(String airlinePassengerPhoneNumber) { } /** - * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters + * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 + * characters * - * @param airlinePassengerTravellerType The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters + * @param airlinePassengerTravellerType The IATA passenger type code (PTC). * Encoding: ASCII * + * minLength: 3 characters * maxLength: 6 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlinePassengerTravellerType(String airlinePassengerTravellerType) { @@ -898,8 +1205,11 @@ public AdditionalDataAirline airlinePassengerTravellerType(String airlinePasseng } /** - * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters - * @return airlinePassengerTravellerType The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters + * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 + * characters + * + * @return airlinePassengerTravellerType The IATA passenger type code (PTC). * Encoding: ASCII * + * minLength: 3 characters * maxLength: 6 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_TRAVELLER_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -908,9 +1218,11 @@ public String getAirlinePassengerTravellerType() { } /** - * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters + * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 + * characters * - * @param airlinePassengerTravellerType The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters + * @param airlinePassengerTravellerType The IATA passenger type code (PTC). * Encoding: ASCII * + * minLength: 3 characters * maxLength: 6 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_TRAVELLER_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -919,9 +1231,15 @@ public void setAirlinePassengerTravellerType(String airlinePassengerTravellerTyp } /** - * The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all zeros. + * The passenger's name, initials, and title. * Format: last name + first name or initials + + * title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you + * send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all + * zeros. * - * @param airlinePassengerName The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all zeros. + * @param airlinePassengerName The passenger's name, initials, and title. * Format: last name + * + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * + * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * + * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlinePassengerName(String airlinePassengerName) { @@ -930,8 +1248,15 @@ public AdditionalDataAirline airlinePassengerName(String airlinePassengerName) { } /** - * The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all zeros. - * @return airlinePassengerName The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all zeros. + * The passenger's name, initials, and title. * Format: last name + first name or initials + + * title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you + * send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all + * zeros. + * + * @return airlinePassengerName The passenger's name, initials, and title. * Format: last name + * + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * + * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * + * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -940,9 +1265,15 @@ public String getAirlinePassengerName() { } /** - * The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all zeros. + * The passenger's name, initials, and title. * Format: last name + first name or initials + + * title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you + * send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all + * zeros. * - * @param airlinePassengerName The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all zeros. + * @param airlinePassengerName The passenger's name, initials, and title. * Format: last name + * + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * + * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * + * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_PASSENGER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -951,9 +1282,11 @@ public void setAirlinePassengerName(String airlinePassengerName) { } /** - * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters + * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: + * 16 characters * - * @param airlineTicketIssueAddress The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters + * @param airlineTicketIssueAddress The address of the organization that issued the ticket. * + * minLength: 0 characters * maxLength: 16 characters * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineTicketIssueAddress(String airlineTicketIssueAddress) { @@ -962,8 +1295,11 @@ public AdditionalDataAirline airlineTicketIssueAddress(String airlineTicketIssue } /** - * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters - * @return airlineTicketIssueAddress The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters + * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: + * 16 characters + * + * @return airlineTicketIssueAddress The address of the organization that issued the ticket. * + * minLength: 0 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_TICKET_ISSUE_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -972,9 +1308,11 @@ public String getAirlineTicketIssueAddress() { } /** - * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters + * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: + * 16 characters * - * @param airlineTicketIssueAddress The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters + * @param airlineTicketIssueAddress The address of the organization that issued the ticket. * + * minLength: 0 characters * maxLength: 16 characters */ @JsonProperty(JSON_PROPERTY_AIRLINE_TICKET_ISSUE_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -983,9 +1321,11 @@ public void setAirlineTicketIssueAddress(String airlineTicketIssueAddress) { } /** - * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must + * not be all spaces * Must not be all zeros. * - * @param airlineTicketNumber The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * @param airlineTicketNumber The ticket's unique identifier. * minLength: 1 character * + * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineTicketNumber(String airlineTicketNumber) { @@ -994,8 +1334,11 @@ public AdditionalDataAirline airlineTicketNumber(String airlineTicketNumber) { } /** - * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. - * @return airlineTicketNumber The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must + * not be all spaces * Must not be all zeros. + * + * @return airlineTicketNumber The ticket's unique identifier. * minLength: 1 character * + * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_TICKET_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1004,9 +1347,11 @@ public String getAirlineTicketNumber() { } /** - * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must + * not be all spaces * Must not be all zeros. * - * @param airlineTicketNumber The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. + * @param airlineTicketNumber The ticket's unique identifier. * minLength: 1 character * + * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_TICKET_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1015,9 +1360,13 @@ public void setAirlineTicketNumber(String airlineTicketNumber) { } /** - * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * Must not be all zeros. + * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * + * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * + * Must not be all zeros. * - * @param airlineTravelAgencyCode The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * Must not be all zeros. + * @param airlineTravelAgencyCode The unique identifier from IATA or ARC for the travel agency + * that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 + * characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineTravelAgencyCode(String airlineTravelAgencyCode) { @@ -1026,8 +1375,13 @@ public AdditionalDataAirline airlineTravelAgencyCode(String airlineTravelAgencyC } /** - * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * Must not be all zeros. - * @return airlineTravelAgencyCode The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * Must not be all zeros. + * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * + * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * + * Must not be all zeros. + * + * @return airlineTravelAgencyCode The unique identifier from IATA or ARC for the travel agency + * that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 + * characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1036,9 +1390,13 @@ public String getAirlineTravelAgencyCode() { } /** - * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * Must not be all zeros. + * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * + * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * + * Must not be all zeros. * - * @param airlineTravelAgencyCode The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * Must not be all zeros. + * @param airlineTravelAgencyCode The unique identifier from IATA or ARC for the travel agency + * that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 + * characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1047,9 +1405,11 @@ public void setAirlineTravelAgencyCode(String airlineTravelAgencyCode) { } /** - * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. + * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 + * characters * Must not be all spaces * Must not be all zeros. * - * @param airlineTravelAgencyName The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. + * @param airlineTravelAgencyName The name of the travel agency. * Encoding: ASCII * minLength: 1 + * character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. * @return the current {@code AdditionalDataAirline} instance, allowing for method chaining */ public AdditionalDataAirline airlineTravelAgencyName(String airlineTravelAgencyName) { @@ -1058,8 +1418,11 @@ public AdditionalDataAirline airlineTravelAgencyName(String airlineTravelAgencyN } /** - * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. - * @return airlineTravelAgencyName The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. + * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 + * characters * Must not be all spaces * Must not be all zeros. + * + * @return airlineTravelAgencyName The name of the travel agency. * Encoding: ASCII * minLength: 1 + * character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1068,9 +1431,11 @@ public String getAirlineTravelAgencyName() { } /** - * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. + * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 + * characters * Must not be all spaces * Must not be all zeros. * - * @param airlineTravelAgencyName The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. + * @param airlineTravelAgencyName The name of the travel agency. * Encoding: ASCII * minLength: 1 + * character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_AIRLINE_TRAVEL_AGENCY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1078,9 +1443,7 @@ public void setAirlineTravelAgencyName(String airlineTravelAgencyName) { this.airlineTravelAgencyName = airlineTravelAgencyName; } - /** - * Return true if this AdditionalDataAirline object is equal to o. - */ + /** Return true if this AdditionalDataAirline object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -1090,82 +1453,177 @@ public boolean equals(Object o) { return false; } AdditionalDataAirline additionalDataAirline = (AdditionalDataAirline) o; - return Objects.equals(this.airlineAgencyInvoiceNumber, additionalDataAirline.airlineAgencyInvoiceNumber) && - Objects.equals(this.airlineAgencyPlanName, additionalDataAirline.airlineAgencyPlanName) && - Objects.equals(this.airlineAirlineCode, additionalDataAirline.airlineAirlineCode) && - Objects.equals(this.airlineAirlineDesignatorCode, additionalDataAirline.airlineAirlineDesignatorCode) && - Objects.equals(this.airlineBoardingFee, additionalDataAirline.airlineBoardingFee) && - Objects.equals(this.airlineComputerizedReservationSystem, additionalDataAirline.airlineComputerizedReservationSystem) && - Objects.equals(this.airlineCustomerReferenceNumber, additionalDataAirline.airlineCustomerReferenceNumber) && - Objects.equals(this.airlineDocumentType, additionalDataAirline.airlineDocumentType) && - Objects.equals(this.airlineFlightDate, additionalDataAirline.airlineFlightDate) && - Objects.equals(this.airlineIssueDate, additionalDataAirline.airlineIssueDate) && - Objects.equals(this.airlineLegCarrierCode, additionalDataAirline.airlineLegCarrierCode) && - Objects.equals(this.airlineLegClassOfTravel, additionalDataAirline.airlineLegClassOfTravel) && - Objects.equals(this.airlineLegDateOfTravel, additionalDataAirline.airlineLegDateOfTravel) && - Objects.equals(this.airlineLegDepartAirport, additionalDataAirline.airlineLegDepartAirport) && - Objects.equals(this.airlineLegDepartTax, additionalDataAirline.airlineLegDepartTax) && - Objects.equals(this.airlineLegDestinationCode, additionalDataAirline.airlineLegDestinationCode) && - Objects.equals(this.airlineLegFareBaseCode, additionalDataAirline.airlineLegFareBaseCode) && - Objects.equals(this.airlineLegFlightNumber, additionalDataAirline.airlineLegFlightNumber) && - Objects.equals(this.airlineLegStopOverCode, additionalDataAirline.airlineLegStopOverCode) && - Objects.equals(this.airlinePassengerDateOfBirth, additionalDataAirline.airlinePassengerDateOfBirth) && - Objects.equals(this.airlinePassengerFirstName, additionalDataAirline.airlinePassengerFirstName) && - Objects.equals(this.airlinePassengerLastName, additionalDataAirline.airlinePassengerLastName) && - Objects.equals(this.airlinePassengerPhoneNumber, additionalDataAirline.airlinePassengerPhoneNumber) && - Objects.equals(this.airlinePassengerTravellerType, additionalDataAirline.airlinePassengerTravellerType) && - Objects.equals(this.airlinePassengerName, additionalDataAirline.airlinePassengerName) && - Objects.equals(this.airlineTicketIssueAddress, additionalDataAirline.airlineTicketIssueAddress) && - Objects.equals(this.airlineTicketNumber, additionalDataAirline.airlineTicketNumber) && - Objects.equals(this.airlineTravelAgencyCode, additionalDataAirline.airlineTravelAgencyCode) && - Objects.equals(this.airlineTravelAgencyName, additionalDataAirline.airlineTravelAgencyName); + return Objects.equals( + this.airlineAgencyInvoiceNumber, additionalDataAirline.airlineAgencyInvoiceNumber) + && Objects.equals(this.airlineAgencyPlanName, additionalDataAirline.airlineAgencyPlanName) + && Objects.equals(this.airlineAirlineCode, additionalDataAirline.airlineAirlineCode) + && Objects.equals( + this.airlineAirlineDesignatorCode, additionalDataAirline.airlineAirlineDesignatorCode) + && Objects.equals(this.airlineBoardingFee, additionalDataAirline.airlineBoardingFee) + && Objects.equals( + this.airlineComputerizedReservationSystem, + additionalDataAirline.airlineComputerizedReservationSystem) + && Objects.equals( + this.airlineCustomerReferenceNumber, + additionalDataAirline.airlineCustomerReferenceNumber) + && Objects.equals(this.airlineDocumentType, additionalDataAirline.airlineDocumentType) + && Objects.equals(this.airlineFlightDate, additionalDataAirline.airlineFlightDate) + && Objects.equals(this.airlineIssueDate, additionalDataAirline.airlineIssueDate) + && Objects.equals(this.airlineLegCarrierCode, additionalDataAirline.airlineLegCarrierCode) + && Objects.equals( + this.airlineLegClassOfTravel, additionalDataAirline.airlineLegClassOfTravel) + && Objects.equals(this.airlineLegDateOfTravel, additionalDataAirline.airlineLegDateOfTravel) + && Objects.equals( + this.airlineLegDepartAirport, additionalDataAirline.airlineLegDepartAirport) + && Objects.equals(this.airlineLegDepartTax, additionalDataAirline.airlineLegDepartTax) + && Objects.equals( + this.airlineLegDestinationCode, additionalDataAirline.airlineLegDestinationCode) + && Objects.equals(this.airlineLegFareBaseCode, additionalDataAirline.airlineLegFareBaseCode) + && Objects.equals(this.airlineLegFlightNumber, additionalDataAirline.airlineLegFlightNumber) + && Objects.equals(this.airlineLegStopOverCode, additionalDataAirline.airlineLegStopOverCode) + && Objects.equals( + this.airlinePassengerDateOfBirth, additionalDataAirline.airlinePassengerDateOfBirth) + && Objects.equals( + this.airlinePassengerFirstName, additionalDataAirline.airlinePassengerFirstName) + && Objects.equals( + this.airlinePassengerLastName, additionalDataAirline.airlinePassengerLastName) + && Objects.equals( + this.airlinePassengerPhoneNumber, additionalDataAirline.airlinePassengerPhoneNumber) + && Objects.equals( + this.airlinePassengerTravellerType, additionalDataAirline.airlinePassengerTravellerType) + && Objects.equals(this.airlinePassengerName, additionalDataAirline.airlinePassengerName) + && Objects.equals( + this.airlineTicketIssueAddress, additionalDataAirline.airlineTicketIssueAddress) + && Objects.equals(this.airlineTicketNumber, additionalDataAirline.airlineTicketNumber) + && Objects.equals( + this.airlineTravelAgencyCode, additionalDataAirline.airlineTravelAgencyCode) + && Objects.equals( + this.airlineTravelAgencyName, additionalDataAirline.airlineTravelAgencyName); } @Override public int hashCode() { - return Objects.hash(airlineAgencyInvoiceNumber, airlineAgencyPlanName, airlineAirlineCode, airlineAirlineDesignatorCode, airlineBoardingFee, airlineComputerizedReservationSystem, airlineCustomerReferenceNumber, airlineDocumentType, airlineFlightDate, airlineIssueDate, airlineLegCarrierCode, airlineLegClassOfTravel, airlineLegDateOfTravel, airlineLegDepartAirport, airlineLegDepartTax, airlineLegDestinationCode, airlineLegFareBaseCode, airlineLegFlightNumber, airlineLegStopOverCode, airlinePassengerDateOfBirth, airlinePassengerFirstName, airlinePassengerLastName, airlinePassengerPhoneNumber, airlinePassengerTravellerType, airlinePassengerName, airlineTicketIssueAddress, airlineTicketNumber, airlineTravelAgencyCode, airlineTravelAgencyName); + return Objects.hash( + airlineAgencyInvoiceNumber, + airlineAgencyPlanName, + airlineAirlineCode, + airlineAirlineDesignatorCode, + airlineBoardingFee, + airlineComputerizedReservationSystem, + airlineCustomerReferenceNumber, + airlineDocumentType, + airlineFlightDate, + airlineIssueDate, + airlineLegCarrierCode, + airlineLegClassOfTravel, + airlineLegDateOfTravel, + airlineLegDepartAirport, + airlineLegDepartTax, + airlineLegDestinationCode, + airlineLegFareBaseCode, + airlineLegFlightNumber, + airlineLegStopOverCode, + airlinePassengerDateOfBirth, + airlinePassengerFirstName, + airlinePassengerLastName, + airlinePassengerPhoneNumber, + airlinePassengerTravellerType, + airlinePassengerName, + airlineTicketIssueAddress, + airlineTicketNumber, + airlineTravelAgencyCode, + airlineTravelAgencyName); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataAirline {\n"); - sb.append(" airlineAgencyInvoiceNumber: ").append(toIndentedString(airlineAgencyInvoiceNumber)).append("\n"); - sb.append(" airlineAgencyPlanName: ").append(toIndentedString(airlineAgencyPlanName)).append("\n"); + sb.append(" airlineAgencyInvoiceNumber: ") + .append(toIndentedString(airlineAgencyInvoiceNumber)) + .append("\n"); + sb.append(" airlineAgencyPlanName: ") + .append(toIndentedString(airlineAgencyPlanName)) + .append("\n"); sb.append(" airlineAirlineCode: ").append(toIndentedString(airlineAirlineCode)).append("\n"); - sb.append(" airlineAirlineDesignatorCode: ").append(toIndentedString(airlineAirlineDesignatorCode)).append("\n"); + sb.append(" airlineAirlineDesignatorCode: ") + .append(toIndentedString(airlineAirlineDesignatorCode)) + .append("\n"); sb.append(" airlineBoardingFee: ").append(toIndentedString(airlineBoardingFee)).append("\n"); - sb.append(" airlineComputerizedReservationSystem: ").append(toIndentedString(airlineComputerizedReservationSystem)).append("\n"); - sb.append(" airlineCustomerReferenceNumber: ").append(toIndentedString(airlineCustomerReferenceNumber)).append("\n"); - sb.append(" airlineDocumentType: ").append(toIndentedString(airlineDocumentType)).append("\n"); + sb.append(" airlineComputerizedReservationSystem: ") + .append(toIndentedString(airlineComputerizedReservationSystem)) + .append("\n"); + sb.append(" airlineCustomerReferenceNumber: ") + .append(toIndentedString(airlineCustomerReferenceNumber)) + .append("\n"); + sb.append(" airlineDocumentType: ") + .append(toIndentedString(airlineDocumentType)) + .append("\n"); sb.append(" airlineFlightDate: ").append(toIndentedString(airlineFlightDate)).append("\n"); sb.append(" airlineIssueDate: ").append(toIndentedString(airlineIssueDate)).append("\n"); - sb.append(" airlineLegCarrierCode: ").append(toIndentedString(airlineLegCarrierCode)).append("\n"); - sb.append(" airlineLegClassOfTravel: ").append(toIndentedString(airlineLegClassOfTravel)).append("\n"); - sb.append(" airlineLegDateOfTravel: ").append(toIndentedString(airlineLegDateOfTravel)).append("\n"); - sb.append(" airlineLegDepartAirport: ").append(toIndentedString(airlineLegDepartAirport)).append("\n"); - sb.append(" airlineLegDepartTax: ").append(toIndentedString(airlineLegDepartTax)).append("\n"); - sb.append(" airlineLegDestinationCode: ").append(toIndentedString(airlineLegDestinationCode)).append("\n"); - sb.append(" airlineLegFareBaseCode: ").append(toIndentedString(airlineLegFareBaseCode)).append("\n"); - sb.append(" airlineLegFlightNumber: ").append(toIndentedString(airlineLegFlightNumber)).append("\n"); - sb.append(" airlineLegStopOverCode: ").append(toIndentedString(airlineLegStopOverCode)).append("\n"); - sb.append(" airlinePassengerDateOfBirth: ").append(toIndentedString(airlinePassengerDateOfBirth)).append("\n"); - sb.append(" airlinePassengerFirstName: ").append(toIndentedString(airlinePassengerFirstName)).append("\n"); - sb.append(" airlinePassengerLastName: ").append(toIndentedString(airlinePassengerLastName)).append("\n"); - sb.append(" airlinePassengerPhoneNumber: ").append(toIndentedString(airlinePassengerPhoneNumber)).append("\n"); - sb.append(" airlinePassengerTravellerType: ").append(toIndentedString(airlinePassengerTravellerType)).append("\n"); - sb.append(" airlinePassengerName: ").append(toIndentedString(airlinePassengerName)).append("\n"); - sb.append(" airlineTicketIssueAddress: ").append(toIndentedString(airlineTicketIssueAddress)).append("\n"); - sb.append(" airlineTicketNumber: ").append(toIndentedString(airlineTicketNumber)).append("\n"); - sb.append(" airlineTravelAgencyCode: ").append(toIndentedString(airlineTravelAgencyCode)).append("\n"); - sb.append(" airlineTravelAgencyName: ").append(toIndentedString(airlineTravelAgencyName)).append("\n"); + sb.append(" airlineLegCarrierCode: ") + .append(toIndentedString(airlineLegCarrierCode)) + .append("\n"); + sb.append(" airlineLegClassOfTravel: ") + .append(toIndentedString(airlineLegClassOfTravel)) + .append("\n"); + sb.append(" airlineLegDateOfTravel: ") + .append(toIndentedString(airlineLegDateOfTravel)) + .append("\n"); + sb.append(" airlineLegDepartAirport: ") + .append(toIndentedString(airlineLegDepartAirport)) + .append("\n"); + sb.append(" airlineLegDepartTax: ") + .append(toIndentedString(airlineLegDepartTax)) + .append("\n"); + sb.append(" airlineLegDestinationCode: ") + .append(toIndentedString(airlineLegDestinationCode)) + .append("\n"); + sb.append(" airlineLegFareBaseCode: ") + .append(toIndentedString(airlineLegFareBaseCode)) + .append("\n"); + sb.append(" airlineLegFlightNumber: ") + .append(toIndentedString(airlineLegFlightNumber)) + .append("\n"); + sb.append(" airlineLegStopOverCode: ") + .append(toIndentedString(airlineLegStopOverCode)) + .append("\n"); + sb.append(" airlinePassengerDateOfBirth: ") + .append(toIndentedString(airlinePassengerDateOfBirth)) + .append("\n"); + sb.append(" airlinePassengerFirstName: ") + .append(toIndentedString(airlinePassengerFirstName)) + .append("\n"); + sb.append(" airlinePassengerLastName: ") + .append(toIndentedString(airlinePassengerLastName)) + .append("\n"); + sb.append(" airlinePassengerPhoneNumber: ") + .append(toIndentedString(airlinePassengerPhoneNumber)) + .append("\n"); + sb.append(" airlinePassengerTravellerType: ") + .append(toIndentedString(airlinePassengerTravellerType)) + .append("\n"); + sb.append(" airlinePassengerName: ") + .append(toIndentedString(airlinePassengerName)) + .append("\n"); + sb.append(" airlineTicketIssueAddress: ") + .append(toIndentedString(airlineTicketIssueAddress)) + .append("\n"); + sb.append(" airlineTicketNumber: ") + .append(toIndentedString(airlineTicketNumber)) + .append("\n"); + sb.append(" airlineTravelAgencyCode: ") + .append(toIndentedString(airlineTravelAgencyCode)) + .append("\n"); + sb.append(" airlineTravelAgencyName: ") + .append(toIndentedString(airlineTravelAgencyName)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1174,21 +1632,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalDataAirline given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataAirline - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataAirline + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalDataAirline */ public static AdditionalDataAirline fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataAirline.class); } -/** - * Convert an instance of AdditionalDataAirline to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalDataAirline to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataCarRental.java b/src/main/java/com/adyen/model/payment/AdditionalDataCarRental.java index 2cb497260..a260323dc 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataCarRental.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataCarRental.java @@ -2,31 +2,22 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AdditionalDataCarRental - */ +/** AdditionalDataCarRental */ @JsonPropertyOrder({ AdditionalDataCarRental.JSON_PROPERTY_CAR_RENTAL_CHECK_OUT_DATE, AdditionalDataCarRental.JSON_PROPERTY_CAR_RENTAL_CUSTOMER_SERVICE_TOLL_FREE_NUMBER, @@ -52,12 +43,12 @@ AdditionalDataCarRental.JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION, AdditionalDataCarRental.JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET }) - public class AdditionalDataCarRental { public static final String JSON_PROPERTY_CAR_RENTAL_CHECK_OUT_DATE = "carRental.checkOutDate"; private String carRentalCheckOutDate; - public static final String JSON_PROPERTY_CAR_RENTAL_CUSTOMER_SERVICE_TOLL_FREE_NUMBER = "carRental.customerServiceTollFreeNumber"; + public static final String JSON_PROPERTY_CAR_RENTAL_CUSTOMER_SERVICE_TOLL_FREE_NUMBER = + "carRental.customerServiceTollFreeNumber"; private String carRentalCustomerServiceTollFreeNumber; public static final String JSON_PROPERTY_CAR_RENTAL_DAYS_RENTED = "carRental.daysRented"; @@ -66,22 +57,27 @@ public class AdditionalDataCarRental { public static final String JSON_PROPERTY_CAR_RENTAL_FUEL_CHARGES = "carRental.fuelCharges"; private String carRentalFuelCharges; - public static final String JSON_PROPERTY_CAR_RENTAL_INSURANCE_CHARGES = "carRental.insuranceCharges"; + public static final String JSON_PROPERTY_CAR_RENTAL_INSURANCE_CHARGES = + "carRental.insuranceCharges"; private String carRentalInsuranceCharges; public static final String JSON_PROPERTY_CAR_RENTAL_LOCATION_CITY = "carRental.locationCity"; private String carRentalLocationCity; - public static final String JSON_PROPERTY_CAR_RENTAL_LOCATION_COUNTRY = "carRental.locationCountry"; + public static final String JSON_PROPERTY_CAR_RENTAL_LOCATION_COUNTRY = + "carRental.locationCountry"; private String carRentalLocationCountry; - public static final String JSON_PROPERTY_CAR_RENTAL_LOCATION_STATE_PROVINCE = "carRental.locationStateProvince"; + public static final String JSON_PROPERTY_CAR_RENTAL_LOCATION_STATE_PROVINCE = + "carRental.locationStateProvince"; private String carRentalLocationStateProvince; - public static final String JSON_PROPERTY_CAR_RENTAL_NO_SHOW_INDICATOR = "carRental.noShowIndicator"; + public static final String JSON_PROPERTY_CAR_RENTAL_NO_SHOW_INDICATOR = + "carRental.noShowIndicator"; private String carRentalNoShowIndicator; - public static final String JSON_PROPERTY_CAR_RENTAL_ONE_WAY_DROP_OFF_CHARGES = "carRental.oneWayDropOffCharges"; + public static final String JSON_PROPERTY_CAR_RENTAL_ONE_WAY_DROP_OFF_CHARGES = + "carRental.oneWayDropOffCharges"; private String carRentalOneWayDropOffCharges; public static final String JSON_PROPERTY_CAR_RENTAL_RATE = "carRental.rate"; @@ -90,7 +86,8 @@ public class AdditionalDataCarRental { public static final String JSON_PROPERTY_CAR_RENTAL_RATE_INDICATOR = "carRental.rateIndicator"; private String carRentalRateIndicator; - public static final String JSON_PROPERTY_CAR_RENTAL_RENTAL_AGREEMENT_NUMBER = "carRental.rentalAgreementNumber"; + public static final String JSON_PROPERTY_CAR_RENTAL_RENTAL_AGREEMENT_NUMBER = + "carRental.rentalAgreementNumber"; private String carRentalRentalAgreementNumber; public static final String JSON_PROPERTY_CAR_RENTAL_RENTAL_CLASS_ID = "carRental.rentalClassId"; @@ -108,23 +105,27 @@ public class AdditionalDataCarRental { public static final String JSON_PROPERTY_CAR_RENTAL_RETURN_DATE = "carRental.returnDate"; private String carRentalReturnDate; - public static final String JSON_PROPERTY_CAR_RENTAL_RETURN_LOCATION_ID = "carRental.returnLocationId"; + public static final String JSON_PROPERTY_CAR_RENTAL_RETURN_LOCATION_ID = + "carRental.returnLocationId"; private String carRentalReturnLocationId; - public static final String JSON_PROPERTY_CAR_RENTAL_RETURN_STATE_PROVINCE = "carRental.returnStateProvince"; + public static final String JSON_PROPERTY_CAR_RENTAL_RETURN_STATE_PROVINCE = + "carRental.returnStateProvince"; private String carRentalReturnStateProvince; - public static final String JSON_PROPERTY_CAR_RENTAL_TAX_EXEMPT_INDICATOR = "carRental.taxExemptIndicator"; + public static final String JSON_PROPERTY_CAR_RENTAL_TAX_EXEMPT_INDICATOR = + "carRental.taxExemptIndicator"; private String carRentalTaxExemptIndicator; - public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION = "travelEntertainmentAuthData.duration"; + public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION = + "travelEntertainmentAuthData.duration"; private String travelEntertainmentAuthDataDuration; - public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET = "travelEntertainmentAuthData.market"; + public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET = + "travelEntertainmentAuthData.market"; private String travelEntertainmentAuthDataMarket; - public AdditionalDataCarRental() { - } + public AdditionalDataCarRental() {} /** * The pick-up date. * Date format: `yyyyMMdd` @@ -139,6 +140,7 @@ public AdditionalDataCarRental carRentalCheckOutDate(String carRentalCheckOutDat /** * The pick-up date. * Date format: `yyyyMMdd` + * * @return carRentalCheckOutDate The pick-up date. * Date format: `yyyyMMdd` */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_CHECK_OUT_DATE) @@ -159,19 +161,31 @@ public void setCarRentalCheckOutDate(String carRentalCheckOutDate) { } /** - * The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. + * The customer service phone number of the car rental company. * Format: Alphanumeric * + * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a + * space * Must not contain any special characters such as + or - *Must not be all zeros. * - * @param carRentalCustomerServiceTollFreeNumber The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. + * @param carRentalCustomerServiceTollFreeNumber The customer service phone number of the car + * rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 + * characters in length * Must not start with a space * Must not contain any special + * characters such as + or - *Must not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ - public AdditionalDataCarRental carRentalCustomerServiceTollFreeNumber(String carRentalCustomerServiceTollFreeNumber) { + public AdditionalDataCarRental carRentalCustomerServiceTollFreeNumber( + String carRentalCustomerServiceTollFreeNumber) { this.carRentalCustomerServiceTollFreeNumber = carRentalCustomerServiceTollFreeNumber; return this; } /** - * The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. - * @return carRentalCustomerServiceTollFreeNumber The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. + * The customer service phone number of the car rental company. * Format: Alphanumeric * + * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a + * space * Must not contain any special characters such as + or - *Must not be all zeros. + * + * @return carRentalCustomerServiceTollFreeNumber The customer service phone number of the car + * rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 + * characters in length * Must not start with a space * Must not contain any special + * characters such as + or - *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_CUSTOMER_SERVICE_TOLL_FREE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -180,20 +194,28 @@ public String getCarRentalCustomerServiceTollFreeNumber() { } /** - * The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. + * The customer service phone number of the car rental company. * Format: Alphanumeric * + * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a + * space * Must not contain any special characters such as + or - *Must not be all zeros. * - * @param carRentalCustomerServiceTollFreeNumber The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. + * @param carRentalCustomerServiceTollFreeNumber The customer service phone number of the car + * rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 + * characters in length * Must not start with a space * Must not contain any special + * characters such as + or - *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_CUSTOMER_SERVICE_TOLL_FREE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCarRentalCustomerServiceTollFreeNumber(String carRentalCustomerServiceTollFreeNumber) { + public void setCarRentalCustomerServiceTollFreeNumber( + String carRentalCustomerServiceTollFreeNumber) { this.carRentalCustomerServiceTollFreeNumber = carRentalCustomerServiceTollFreeNumber; } /** - * Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not be all spaces + * Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not + * be all spaces * - * @param carRentalDaysRented Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not be all spaces + * @param carRentalDaysRented Number of days for which the car is being rented. * Format: Numeric + * * maxLength: 4 * Must not be all spaces * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalDaysRented(String carRentalDaysRented) { @@ -202,8 +224,11 @@ public AdditionalDataCarRental carRentalDaysRented(String carRentalDaysRented) { } /** - * Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not be all spaces - * @return carRentalDaysRented Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not be all spaces + * Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not + * be all spaces + * + * @return carRentalDaysRented Number of days for which the car is being rented. * Format: Numeric + * * maxLength: 4 * Must not be all spaces */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_DAYS_RENTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -212,9 +237,11 @@ public String getCarRentalDaysRented() { } /** - * Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not be all spaces + * Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not + * be all spaces * - * @param carRentalDaysRented Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not be all spaces + * @param carRentalDaysRented Number of days for which the car is being rented. * Format: Numeric + * * maxLength: 4 * Must not be all spaces */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_DAYS_RENTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,9 +250,13 @@ public void setCarRentalDaysRented(String carRentalDaysRented) { } /** - * Any fuel charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 + * Any fuel charges associated with the rental, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * + * maxLength: 12 * - * @param carRentalFuelCharges Any fuel charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 + * @param carRentalFuelCharges Any fuel charges associated with the rental, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * + * maxLength: 12 * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalFuelCharges(String carRentalFuelCharges) { @@ -234,8 +265,13 @@ public AdditionalDataCarRental carRentalFuelCharges(String carRentalFuelCharges) } /** - * Any fuel charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 - * @return carRentalFuelCharges Any fuel charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 + * Any fuel charges associated with the rental, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * + * maxLength: 12 + * + * @return carRentalFuelCharges Any fuel charges associated with the rental, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * + * maxLength: 12 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_FUEL_CHARGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,9 +280,13 @@ public String getCarRentalFuelCharges() { } /** - * Any fuel charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 + * Any fuel charges associated with the rental, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * + * maxLength: 12 * - * @param carRentalFuelCharges Any fuel charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 + * @param carRentalFuelCharges Any fuel charges associated with the rental, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * + * maxLength: 12 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_FUEL_CHARGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -255,9 +295,13 @@ public void setCarRentalFuelCharges(String carRentalFuelCharges) { } /** - * Any insurance charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * Must not be all spaces *Must not be all zeros. + * Any insurance charges associated with the rental, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * + * maxLength: 12 * Must not be all spaces *Must not be all zeros. * - * @param carRentalInsuranceCharges Any insurance charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * Must not be all spaces *Must not be all zeros. + * @param carRentalInsuranceCharges Any insurance charges associated with the rental, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * + * maxLength: 12 * Must not be all spaces *Must not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalInsuranceCharges(String carRentalInsuranceCharges) { @@ -266,8 +310,13 @@ public AdditionalDataCarRental carRentalInsuranceCharges(String carRentalInsuran } /** - * Any insurance charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * Must not be all spaces *Must not be all zeros. - * @return carRentalInsuranceCharges Any insurance charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * Must not be all spaces *Must not be all zeros. + * Any insurance charges associated with the rental, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * + * maxLength: 12 * Must not be all spaces *Must not be all zeros. + * + * @return carRentalInsuranceCharges Any insurance charges associated with the rental, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * + * maxLength: 12 * Must not be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_INSURANCE_CHARGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -276,9 +325,13 @@ public String getCarRentalInsuranceCharges() { } /** - * Any insurance charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * Must not be all spaces *Must not be all zeros. + * Any insurance charges associated with the rental, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * + * maxLength: 12 * Must not be all spaces *Must not be all zeros. * - * @param carRentalInsuranceCharges Any insurance charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * Must not be all spaces *Must not be all zeros. + * @param carRentalInsuranceCharges Any insurance charges associated with the rental, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * + * maxLength: 12 * Must not be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_INSURANCE_CHARGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -287,9 +340,11 @@ public void setCarRentalInsuranceCharges(String carRentalInsuranceCharges) { } /** - * The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with + * a space or be all spaces *Must not be all zeros. * - * @param carRentalLocationCity The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalLocationCity The city where the car is rented. * Format: Alphanumeric * + * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalLocationCity(String carRentalLocationCity) { @@ -298,8 +353,11 @@ public AdditionalDataCarRental carRentalLocationCity(String carRentalLocationCit } /** - * The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. - * @return carRentalLocationCity The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with + * a space or be all spaces *Must not be all zeros. + * + * @return carRentalLocationCity The city where the car is rented. * Format: Alphanumeric * + * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_LOCATION_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -308,9 +366,11 @@ public String getCarRentalLocationCity() { } /** - * The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with + * a space or be all spaces *Must not be all zeros. * - * @param carRentalLocationCity The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalLocationCity The city where the car is rented. * Format: Alphanumeric * + * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_LOCATION_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -319,9 +379,13 @@ public void setCarRentalLocationCity(String carRentalLocationCity) { } /** - * The country where the car is rented, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 + * The country where the car is rented, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * + * maxLength: 2 * - * @param carRentalLocationCountry The country where the car is rented, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 + * @param carRentalLocationCountry The country where the car is rented, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * + * maxLength: 2 * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalLocationCountry(String carRentalLocationCountry) { @@ -330,8 +394,13 @@ public AdditionalDataCarRental carRentalLocationCountry(String carRentalLocation } /** - * The country where the car is rented, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 - * @return carRentalLocationCountry The country where the car is rented, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 + * The country where the car is rented, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * + * maxLength: 2 + * + * @return carRentalLocationCountry The country where the car is rented, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * + * maxLength: 2 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_LOCATION_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -340,9 +409,13 @@ public String getCarRentalLocationCountry() { } /** - * The country where the car is rented, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 + * The country where the car is rented, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * + * maxLength: 2 * - * @param carRentalLocationCountry The country where the car is rented, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 + * @param carRentalLocationCountry The country where the car is rented, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * + * maxLength: 2 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_LOCATION_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -351,19 +424,27 @@ public void setCarRentalLocationCountry(String carRentalLocationCountry) { } /** - * The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all zeros. + * The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not + * start with a space or be all spaces *Must not be all zeros. * - * @param carRentalLocationStateProvince The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalLocationStateProvince The state or province where the car is rented. * Format: + * Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all + * zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ - public AdditionalDataCarRental carRentalLocationStateProvince(String carRentalLocationStateProvince) { + public AdditionalDataCarRental carRentalLocationStateProvince( + String carRentalLocationStateProvince) { this.carRentalLocationStateProvince = carRentalLocationStateProvince; return this; } /** - * The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all zeros. - * @return carRentalLocationStateProvince The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all zeros. + * The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not + * start with a space or be all spaces *Must not be all zeros. + * + * @return carRentalLocationStateProvince The state or province where the car is rented. * Format: + * Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all + * zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_LOCATION_STATE_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -372,9 +453,12 @@ public String getCarRentalLocationStateProvince() { } /** - * The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all zeros. + * The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not + * start with a space or be all spaces *Must not be all zeros. * - * @param carRentalLocationStateProvince The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalLocationStateProvince The state or province where the car is rented. * Format: + * Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all + * zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_LOCATION_STATE_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -383,9 +467,11 @@ public void setCarRentalLocationStateProvince(String carRentalLocationStateProvi } /** - * Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up their car * N - Not applicable + * Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up + * their car * N - Not applicable * - * @param carRentalNoShowIndicator Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up their car * N - Not applicable + * @param carRentalNoShowIndicator Indicates if the customer didn't pick up their rental car. + * * Y - Customer did not pick up their car * N - Not applicable * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalNoShowIndicator(String carRentalNoShowIndicator) { @@ -394,8 +480,11 @@ public AdditionalDataCarRental carRentalNoShowIndicator(String carRentalNoShowIn } /** - * Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up their car * N - Not applicable - * @return carRentalNoShowIndicator Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up their car * N - Not applicable + * Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up + * their car * N - Not applicable + * + * @return carRentalNoShowIndicator Indicates if the customer didn't pick up their rental car. + * * Y - Customer did not pick up their car * N - Not applicable */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_NO_SHOW_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -404,9 +493,11 @@ public String getCarRentalNoShowIndicator() { } /** - * Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up their car * N - Not applicable + * Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up + * their car * N - Not applicable * - * @param carRentalNoShowIndicator Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up their car * N - Not applicable + * @param carRentalNoShowIndicator Indicates if the customer didn't pick up their rental car. + * * Y - Customer did not pick up their car * N - Not applicable */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_NO_SHOW_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -415,19 +506,27 @@ public void setCarRentalNoShowIndicator(String carRentalNoShowIndicator) { } /** - * The charge for not returning a car to the original rental location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 + * The charge for not returning a car to the original rental location, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 * - * @param carRentalOneWayDropOffCharges The charge for not returning a car to the original rental location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 + * @param carRentalOneWayDropOffCharges The charge for not returning a car to the original rental + * location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * + * maxLength: 12 * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ - public AdditionalDataCarRental carRentalOneWayDropOffCharges(String carRentalOneWayDropOffCharges) { + public AdditionalDataCarRental carRentalOneWayDropOffCharges( + String carRentalOneWayDropOffCharges) { this.carRentalOneWayDropOffCharges = carRentalOneWayDropOffCharges; return this; } /** - * The charge for not returning a car to the original rental location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 - * @return carRentalOneWayDropOffCharges The charge for not returning a car to the original rental location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 + * The charge for not returning a car to the original rental location, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 + * + * @return carRentalOneWayDropOffCharges The charge for not returning a car to the original rental + * location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * + * maxLength: 12 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_ONE_WAY_DROP_OFF_CHARGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -436,9 +535,12 @@ public String getCarRentalOneWayDropOffCharges() { } /** - * The charge for not returning a car to the original rental location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 + * The charge for not returning a car to the original rental location, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 * - * @param carRentalOneWayDropOffCharges The charge for not returning a car to the original rental location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 + * @param carRentalOneWayDropOffCharges The charge for not returning a car to the original rental + * location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * + * maxLength: 12 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_ONE_WAY_DROP_OFF_CHARGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -447,9 +549,13 @@ public void setCarRentalOneWayDropOffCharges(String carRentalOneWayDropOffCharge } /** - * The daily rental rate, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * maxLength: 12 + * The daily rental rate, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * + * maxLength: 12 * - * @param carRentalRate The daily rental rate, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * maxLength: 12 + * @param carRentalRate The daily rental rate, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric + * * maxLength: 12 * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalRate(String carRentalRate) { @@ -458,8 +564,13 @@ public AdditionalDataCarRental carRentalRate(String carRentalRate) { } /** - * The daily rental rate, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * maxLength: 12 - * @return carRentalRate The daily rental rate, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * maxLength: 12 + * The daily rental rate, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * + * maxLength: 12 + * + * @return carRentalRate The daily rental rate, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric + * * maxLength: 12 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -468,9 +579,13 @@ public String getCarRentalRate() { } /** - * The daily rental rate, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * maxLength: 12 + * The daily rental rate, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * + * maxLength: 12 * - * @param carRentalRate The daily rental rate, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * maxLength: 12 + * @param carRentalRate The daily rental rate, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric + * * maxLength: 12 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -481,7 +596,8 @@ public void setCarRentalRate(String carRentalRate) { /** * Specifies whether the given rate is applied daily or weekly. * D - Daily rate * W - Weekly rate * - * @param carRentalRateIndicator Specifies whether the given rate is applied daily or weekly. * D - Daily rate * W - Weekly rate + * @param carRentalRateIndicator Specifies whether the given rate is applied daily or weekly. * D + * - Daily rate * W - Weekly rate * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalRateIndicator(String carRentalRateIndicator) { @@ -491,7 +607,9 @@ public AdditionalDataCarRental carRentalRateIndicator(String carRentalRateIndica /** * Specifies whether the given rate is applied daily or weekly. * D - Daily rate * W - Weekly rate - * @return carRentalRateIndicator Specifies whether the given rate is applied daily or weekly. * D - Daily rate * W - Weekly rate + * + * @return carRentalRateIndicator Specifies whether the given rate is applied daily or weekly. * D + * - Daily rate * W - Weekly rate */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RATE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -502,7 +620,8 @@ public String getCarRentalRateIndicator() { /** * Specifies whether the given rate is applied daily or weekly. * D - Daily rate * W - Weekly rate * - * @param carRentalRateIndicator Specifies whether the given rate is applied daily or weekly. * D - Daily rate * W - Weekly rate + * @param carRentalRateIndicator Specifies whether the given rate is applied daily or weekly. * D + * - Daily rate * W - Weekly rate */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RATE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -511,19 +630,27 @@ public void setCarRentalRateIndicator(String carRentalRateIndicator) { } /** - * The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all zeros. + * The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must + * not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalRentalAgreementNumber The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalRentalAgreementNumber The rental agreement number for the car rental. * Format: + * Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all + * zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ - public AdditionalDataCarRental carRentalRentalAgreementNumber(String carRentalRentalAgreementNumber) { + public AdditionalDataCarRental carRentalRentalAgreementNumber( + String carRentalRentalAgreementNumber) { this.carRentalRentalAgreementNumber = carRentalRentalAgreementNumber; return this; } /** - * The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all zeros. - * @return carRentalRentalAgreementNumber The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all zeros. + * The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must + * not start with a space or be all spaces *Must not be all zeros. + * + * @return carRentalRentalAgreementNumber The rental agreement number for the car rental. * + * Format: Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must + * not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RENTAL_AGREEMENT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -532,9 +659,12 @@ public String getCarRentalRentalAgreementNumber() { } /** - * The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all zeros. + * The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must + * not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalRentalAgreementNumber The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalRentalAgreementNumber The rental agreement number for the car rental. * Format: + * Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all + * zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RENTAL_AGREEMENT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -543,9 +673,11 @@ public void setCarRentalRentalAgreementNumber(String carRentalRentalAgreementNum } /** - * The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. + * The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start + * with a space or be all spaces *Must not be all zeros. * - * @param carRentalRentalClassId The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalRentalClassId The classification of the rental car. * Format: Alphanumeric * + * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalRentalClassId(String carRentalRentalClassId) { @@ -554,8 +686,11 @@ public AdditionalDataCarRental carRentalRentalClassId(String carRentalRentalClas } /** - * The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. - * @return carRentalRentalClassId The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. + * The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start + * with a space or be all spaces *Must not be all zeros. + * + * @return carRentalRentalClassId The classification of the rental car. * Format: Alphanumeric * + * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RENTAL_CLASS_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -564,9 +699,11 @@ public String getCarRentalRentalClassId() { } /** - * The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. + * The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start + * with a space or be all spaces *Must not be all zeros. * - * @param carRentalRentalClassId The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalRentalClassId The classification of the rental car. * Format: Alphanumeric * + * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RENTAL_CLASS_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -575,9 +712,13 @@ public void setCarRentalRentalClassId(String carRentalRentalClassId) { } /** - * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start with a space or be all spaces *Must not be all zeros. + * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send + * more than 26 characters, the name is truncated * Must not start with a space or be all spaces + * *Must not be all zeros. * - * @param carRentalRenterName The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalRenterName The name of the person renting the car. * Format: Alphanumeric * + * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start + * with a space or be all spaces *Must not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalRenterName(String carRentalRenterName) { @@ -586,8 +727,13 @@ public AdditionalDataCarRental carRentalRenterName(String carRentalRenterName) { } /** - * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start with a space or be all spaces *Must not be all zeros. - * @return carRentalRenterName The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start with a space or be all spaces *Must not be all zeros. + * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send + * more than 26 characters, the name is truncated * Must not start with a space or be all spaces + * *Must not be all zeros. + * + * @return carRentalRenterName The name of the person renting the car. * Format: Alphanumeric * + * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start + * with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RENTER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -596,9 +742,13 @@ public String getCarRentalRenterName() { } /** - * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start with a space or be all spaces *Must not be all zeros. + * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send + * more than 26 characters, the name is truncated * Must not start with a space or be all spaces + * *Must not be all zeros. * - * @param carRentalRenterName The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalRenterName The name of the person renting the car. * Format: Alphanumeric * + * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start + * with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RENTER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -607,9 +757,11 @@ public void setCarRentalRenterName(String carRentalRenterName) { } /** - * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not + * start with a space or be all spaces *Must not be all zeros. * - * @param carRentalReturnCity The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalReturnCity The city where the car must be returned. * Format: Alphanumeric * + * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalReturnCity(String carRentalReturnCity) { @@ -618,8 +770,11 @@ public AdditionalDataCarRental carRentalReturnCity(String carRentalReturnCity) { } /** - * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. - * @return carRentalReturnCity The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not + * start with a space or be all spaces *Must not be all zeros. + * + * @return carRentalReturnCity The city where the car must be returned. * Format: Alphanumeric * + * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -628,9 +783,11 @@ public String getCarRentalReturnCity() { } /** - * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not + * start with a space or be all spaces *Must not be all zeros. * - * @param carRentalReturnCity The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalReturnCity The city where the car must be returned. * Format: Alphanumeric * + * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -639,9 +796,13 @@ public void setCarRentalReturnCity(String carRentalReturnCity) { } /** - * The country where the car must be returned, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 + * The country where the car must be returned, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * + * maxLength: 2 * - * @param carRentalReturnCountry The country where the car must be returned, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 + * @param carRentalReturnCountry The country where the car must be returned, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * + * maxLength: 2 * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalReturnCountry(String carRentalReturnCountry) { @@ -650,8 +811,13 @@ public AdditionalDataCarRental carRentalReturnCountry(String carRentalReturnCoun } /** - * The country where the car must be returned, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 - * @return carRentalReturnCountry The country where the car must be returned, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 + * The country where the car must be returned, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * + * maxLength: 2 + * + * @return carRentalReturnCountry The country where the car must be returned, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * + * maxLength: 2 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -660,9 +826,13 @@ public String getCarRentalReturnCountry() { } /** - * The country where the car must be returned, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 + * The country where the car must be returned, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * + * maxLength: 2 * - * @param carRentalReturnCountry The country where the car must be returned, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 + * @param carRentalReturnCountry The country where the car must be returned, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * + * maxLength: 2 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -673,7 +843,8 @@ public void setCarRentalReturnCountry(String carRentalReturnCountry) { /** * The last date to return the car by. * Date format: `yyyyMMdd` * maxLength: 8 * - * @param carRentalReturnDate The last date to return the car by. * Date format: `yyyyMMdd` * maxLength: 8 + * @param carRentalReturnDate The last date to return the car by. * Date format: + * `yyyyMMdd` * maxLength: 8 * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalReturnDate(String carRentalReturnDate) { @@ -683,7 +854,9 @@ public AdditionalDataCarRental carRentalReturnDate(String carRentalReturnDate) { /** * The last date to return the car by. * Date format: `yyyyMMdd` * maxLength: 8 - * @return carRentalReturnDate The last date to return the car by. * Date format: `yyyyMMdd` * maxLength: 8 + * + * @return carRentalReturnDate The last date to return the car by. * Date format: + * `yyyyMMdd` * maxLength: 8 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -694,7 +867,8 @@ public String getCarRentalReturnDate() { /** * The last date to return the car by. * Date format: `yyyyMMdd` * maxLength: 8 * - * @param carRentalReturnDate The last date to return the car by. * Date format: `yyyyMMdd` * maxLength: 8 + * @param carRentalReturnDate The last date to return the car by. * Date format: + * `yyyyMMdd` * maxLength: 8 */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -703,9 +877,12 @@ public void setCarRentalReturnDate(String carRentalReturnDate) { } /** - * The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must not be all zeros. + * The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * + * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalReturnLocationId The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalReturnLocationId The agency code, phone number, or address abbreviation * + * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must + * not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalReturnLocationId(String carRentalReturnLocationId) { @@ -714,8 +891,12 @@ public AdditionalDataCarRental carRentalReturnLocationId(String carRentalReturnL } /** - * The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must not be all zeros. - * @return carRentalReturnLocationId The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must not be all zeros. + * The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * + * Must not start with a space or be all spaces *Must not be all zeros. + * + * @return carRentalReturnLocationId The agency code, phone number, or address abbreviation * + * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must + * not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -724,9 +905,12 @@ public String getCarRentalReturnLocationId() { } /** - * The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must not be all zeros. + * The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * + * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalReturnLocationId The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalReturnLocationId The agency code, phone number, or address abbreviation * + * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must + * not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -735,9 +919,12 @@ public void setCarRentalReturnLocationId(String carRentalReturnLocationId) { } /** - * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must not be all zeros. + * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * + * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalReturnStateProvince The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalReturnStateProvince The state or province where the car must be returned. * + * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must + * not be all zeros. * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalReturnStateProvince(String carRentalReturnStateProvince) { @@ -746,8 +933,12 @@ public AdditionalDataCarRental carRentalReturnStateProvince(String carRentalRetu } /** - * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must not be all zeros. - * @return carRentalReturnStateProvince The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must not be all zeros. + * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * + * Must not start with a space or be all spaces *Must not be all zeros. + * + * @return carRentalReturnStateProvince The state or province where the car must be returned. * + * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must + * not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_STATE_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -756,9 +947,12 @@ public String getCarRentalReturnStateProvince() { } /** - * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must not be all zeros. + * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * + * Must not start with a space or be all spaces *Must not be all zeros. * - * @param carRentalReturnStateProvince The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must not be all zeros. + * @param carRentalReturnStateProvince The state or province where the car must be returned. * + * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must + * not be all zeros. */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_RETURN_STATE_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -767,9 +961,12 @@ public void setCarRentalReturnStateProvince(String carRentalReturnStateProvince) } /** - * Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not collected + * Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y + * - Goods or services were tax exempt * N - Tax was not collected * - * @param carRentalTaxExemptIndicator Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not collected + * @param carRentalTaxExemptIndicator Indicates if the goods or services were tax-exempt, or if + * tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not + * collected * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ public AdditionalDataCarRental carRentalTaxExemptIndicator(String carRentalTaxExemptIndicator) { @@ -778,8 +975,12 @@ public AdditionalDataCarRental carRentalTaxExemptIndicator(String carRentalTaxEx } /** - * Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not collected - * @return carRentalTaxExemptIndicator Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not collected + * Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y + * - Goods or services were tax exempt * N - Tax was not collected + * + * @return carRentalTaxExemptIndicator Indicates if the goods or services were tax-exempt, or if + * tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not + * collected */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_TAX_EXEMPT_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -788,9 +989,12 @@ public String getCarRentalTaxExemptIndicator() { } /** - * Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not collected + * Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y + * - Goods or services were tax exempt * N - Tax was not collected * - * @param carRentalTaxExemptIndicator Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not collected + * @param carRentalTaxExemptIndicator Indicates if the goods or services were tax-exempt, or if + * tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not + * collected */ @JsonProperty(JSON_PROPERTY_CAR_RENTAL_TAX_EXEMPT_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -799,19 +1003,25 @@ public void setCarRentalTaxExemptIndicator(String carRentalTaxExemptIndicator) { } /** - * Number of days the car is rented for. This should be included in the auth message. * Format: Numeric * maxLength: 4 + * Number of days the car is rented for. This should be included in the auth message. * Format: + * Numeric * maxLength: 4 * - * @param travelEntertainmentAuthDataDuration Number of days the car is rented for. This should be included in the auth message. * Format: Numeric * maxLength: 4 + * @param travelEntertainmentAuthDataDuration Number of days the car is rented for. This should be + * included in the auth message. * Format: Numeric * maxLength: 4 * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ - public AdditionalDataCarRental travelEntertainmentAuthDataDuration(String travelEntertainmentAuthDataDuration) { + public AdditionalDataCarRental travelEntertainmentAuthDataDuration( + String travelEntertainmentAuthDataDuration) { this.travelEntertainmentAuthDataDuration = travelEntertainmentAuthDataDuration; return this; } /** - * Number of days the car is rented for. This should be included in the auth message. * Format: Numeric * maxLength: 4 - * @return travelEntertainmentAuthDataDuration Number of days the car is rented for. This should be included in the auth message. * Format: Numeric * maxLength: 4 + * Number of days the car is rented for. This should be included in the auth message. * Format: + * Numeric * maxLength: 4 + * + * @return travelEntertainmentAuthDataDuration Number of days the car is rented for. This should + * be included in the auth message. * Format: Numeric * maxLength: 4 */ @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -820,9 +1030,11 @@ public String getTravelEntertainmentAuthDataDuration() { } /** - * Number of days the car is rented for. This should be included in the auth message. * Format: Numeric * maxLength: 4 + * Number of days the car is rented for. This should be included in the auth message. * Format: + * Numeric * maxLength: 4 * - * @param travelEntertainmentAuthDataDuration Number of days the car is rented for. This should be included in the auth message. * Format: Numeric * maxLength: 4 + * @param travelEntertainmentAuthDataDuration Number of days the car is rented for. This should be + * included in the auth message. * Format: Numeric * maxLength: 4 */ @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -831,19 +1043,29 @@ public void setTravelEntertainmentAuthDataDuration(String travelEntertainmentAut } /** - * Indicates what market-specific dataset will be submitted or is being submitted. Value should be 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 + * Indicates what market-specific dataset will be submitted or is being submitted. Value should be + * 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric + * * maxLength: 1 * - * @param travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be submitted or is being submitted. Value should be 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 + * @param travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be + * submitted or is being submitted. Value should be 'A' for car rental. This should be + * included in the auth message. * Format: Alphanumeric * maxLength: 1 * @return the current {@code AdditionalDataCarRental} instance, allowing for method chaining */ - public AdditionalDataCarRental travelEntertainmentAuthDataMarket(String travelEntertainmentAuthDataMarket) { + public AdditionalDataCarRental travelEntertainmentAuthDataMarket( + String travelEntertainmentAuthDataMarket) { this.travelEntertainmentAuthDataMarket = travelEntertainmentAuthDataMarket; return this; } /** - * Indicates what market-specific dataset will be submitted or is being submitted. Value should be 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 - * @return travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be submitted or is being submitted. Value should be 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 + * Indicates what market-specific dataset will be submitted or is being submitted. Value should be + * 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric + * * maxLength: 1 + * + * @return travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be + * submitted or is being submitted. Value should be 'A' for car rental. This should be + * included in the auth message. * Format: Alphanumeric * maxLength: 1 */ @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -852,9 +1074,13 @@ public String getTravelEntertainmentAuthDataMarket() { } /** - * Indicates what market-specific dataset will be submitted or is being submitted. Value should be 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 + * Indicates what market-specific dataset will be submitted or is being submitted. Value should be + * 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric + * * maxLength: 1 * - * @param travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be submitted or is being submitted. Value should be 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 + * @param travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be + * submitted or is being submitted. Value should be 'A' for car rental. This should be + * included in the auth message. * Format: Alphanumeric * maxLength: 1 */ @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -862,9 +1088,7 @@ public void setTravelEntertainmentAuthDataMarket(String travelEntertainmentAuthD this.travelEntertainmentAuthDataMarket = travelEntertainmentAuthDataMarket; } - /** - * Return true if this AdditionalDataCarRental object is equal to o. - */ + /** Return true if this AdditionalDataCarRental object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -874,70 +1098,157 @@ public boolean equals(Object o) { return false; } AdditionalDataCarRental additionalDataCarRental = (AdditionalDataCarRental) o; - return Objects.equals(this.carRentalCheckOutDate, additionalDataCarRental.carRentalCheckOutDate) && - Objects.equals(this.carRentalCustomerServiceTollFreeNumber, additionalDataCarRental.carRentalCustomerServiceTollFreeNumber) && - Objects.equals(this.carRentalDaysRented, additionalDataCarRental.carRentalDaysRented) && - Objects.equals(this.carRentalFuelCharges, additionalDataCarRental.carRentalFuelCharges) && - Objects.equals(this.carRentalInsuranceCharges, additionalDataCarRental.carRentalInsuranceCharges) && - Objects.equals(this.carRentalLocationCity, additionalDataCarRental.carRentalLocationCity) && - Objects.equals(this.carRentalLocationCountry, additionalDataCarRental.carRentalLocationCountry) && - Objects.equals(this.carRentalLocationStateProvince, additionalDataCarRental.carRentalLocationStateProvince) && - Objects.equals(this.carRentalNoShowIndicator, additionalDataCarRental.carRentalNoShowIndicator) && - Objects.equals(this.carRentalOneWayDropOffCharges, additionalDataCarRental.carRentalOneWayDropOffCharges) && - Objects.equals(this.carRentalRate, additionalDataCarRental.carRentalRate) && - Objects.equals(this.carRentalRateIndicator, additionalDataCarRental.carRentalRateIndicator) && - Objects.equals(this.carRentalRentalAgreementNumber, additionalDataCarRental.carRentalRentalAgreementNumber) && - Objects.equals(this.carRentalRentalClassId, additionalDataCarRental.carRentalRentalClassId) && - Objects.equals(this.carRentalRenterName, additionalDataCarRental.carRentalRenterName) && - Objects.equals(this.carRentalReturnCity, additionalDataCarRental.carRentalReturnCity) && - Objects.equals(this.carRentalReturnCountry, additionalDataCarRental.carRentalReturnCountry) && - Objects.equals(this.carRentalReturnDate, additionalDataCarRental.carRentalReturnDate) && - Objects.equals(this.carRentalReturnLocationId, additionalDataCarRental.carRentalReturnLocationId) && - Objects.equals(this.carRentalReturnStateProvince, additionalDataCarRental.carRentalReturnStateProvince) && - Objects.equals(this.carRentalTaxExemptIndicator, additionalDataCarRental.carRentalTaxExemptIndicator) && - Objects.equals(this.travelEntertainmentAuthDataDuration, additionalDataCarRental.travelEntertainmentAuthDataDuration) && - Objects.equals(this.travelEntertainmentAuthDataMarket, additionalDataCarRental.travelEntertainmentAuthDataMarket); + return Objects.equals(this.carRentalCheckOutDate, additionalDataCarRental.carRentalCheckOutDate) + && Objects.equals( + this.carRentalCustomerServiceTollFreeNumber, + additionalDataCarRental.carRentalCustomerServiceTollFreeNumber) + && Objects.equals(this.carRentalDaysRented, additionalDataCarRental.carRentalDaysRented) + && Objects.equals(this.carRentalFuelCharges, additionalDataCarRental.carRentalFuelCharges) + && Objects.equals( + this.carRentalInsuranceCharges, additionalDataCarRental.carRentalInsuranceCharges) + && Objects.equals(this.carRentalLocationCity, additionalDataCarRental.carRentalLocationCity) + && Objects.equals( + this.carRentalLocationCountry, additionalDataCarRental.carRentalLocationCountry) + && Objects.equals( + this.carRentalLocationStateProvince, + additionalDataCarRental.carRentalLocationStateProvince) + && Objects.equals( + this.carRentalNoShowIndicator, additionalDataCarRental.carRentalNoShowIndicator) + && Objects.equals( + this.carRentalOneWayDropOffCharges, + additionalDataCarRental.carRentalOneWayDropOffCharges) + && Objects.equals(this.carRentalRate, additionalDataCarRental.carRentalRate) + && Objects.equals( + this.carRentalRateIndicator, additionalDataCarRental.carRentalRateIndicator) + && Objects.equals( + this.carRentalRentalAgreementNumber, + additionalDataCarRental.carRentalRentalAgreementNumber) + && Objects.equals( + this.carRentalRentalClassId, additionalDataCarRental.carRentalRentalClassId) + && Objects.equals(this.carRentalRenterName, additionalDataCarRental.carRentalRenterName) + && Objects.equals(this.carRentalReturnCity, additionalDataCarRental.carRentalReturnCity) + && Objects.equals( + this.carRentalReturnCountry, additionalDataCarRental.carRentalReturnCountry) + && Objects.equals(this.carRentalReturnDate, additionalDataCarRental.carRentalReturnDate) + && Objects.equals( + this.carRentalReturnLocationId, additionalDataCarRental.carRentalReturnLocationId) + && Objects.equals( + this.carRentalReturnStateProvince, additionalDataCarRental.carRentalReturnStateProvince) + && Objects.equals( + this.carRentalTaxExemptIndicator, additionalDataCarRental.carRentalTaxExemptIndicator) + && Objects.equals( + this.travelEntertainmentAuthDataDuration, + additionalDataCarRental.travelEntertainmentAuthDataDuration) + && Objects.equals( + this.travelEntertainmentAuthDataMarket, + additionalDataCarRental.travelEntertainmentAuthDataMarket); } @Override public int hashCode() { - return Objects.hash(carRentalCheckOutDate, carRentalCustomerServiceTollFreeNumber, carRentalDaysRented, carRentalFuelCharges, carRentalInsuranceCharges, carRentalLocationCity, carRentalLocationCountry, carRentalLocationStateProvince, carRentalNoShowIndicator, carRentalOneWayDropOffCharges, carRentalRate, carRentalRateIndicator, carRentalRentalAgreementNumber, carRentalRentalClassId, carRentalRenterName, carRentalReturnCity, carRentalReturnCountry, carRentalReturnDate, carRentalReturnLocationId, carRentalReturnStateProvince, carRentalTaxExemptIndicator, travelEntertainmentAuthDataDuration, travelEntertainmentAuthDataMarket); + return Objects.hash( + carRentalCheckOutDate, + carRentalCustomerServiceTollFreeNumber, + carRentalDaysRented, + carRentalFuelCharges, + carRentalInsuranceCharges, + carRentalLocationCity, + carRentalLocationCountry, + carRentalLocationStateProvince, + carRentalNoShowIndicator, + carRentalOneWayDropOffCharges, + carRentalRate, + carRentalRateIndicator, + carRentalRentalAgreementNumber, + carRentalRentalClassId, + carRentalRenterName, + carRentalReturnCity, + carRentalReturnCountry, + carRentalReturnDate, + carRentalReturnLocationId, + carRentalReturnStateProvince, + carRentalTaxExemptIndicator, + travelEntertainmentAuthDataDuration, + travelEntertainmentAuthDataMarket); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataCarRental {\n"); - sb.append(" carRentalCheckOutDate: ").append(toIndentedString(carRentalCheckOutDate)).append("\n"); - sb.append(" carRentalCustomerServiceTollFreeNumber: ").append(toIndentedString(carRentalCustomerServiceTollFreeNumber)).append("\n"); - sb.append(" carRentalDaysRented: ").append(toIndentedString(carRentalDaysRented)).append("\n"); - sb.append(" carRentalFuelCharges: ").append(toIndentedString(carRentalFuelCharges)).append("\n"); - sb.append(" carRentalInsuranceCharges: ").append(toIndentedString(carRentalInsuranceCharges)).append("\n"); - sb.append(" carRentalLocationCity: ").append(toIndentedString(carRentalLocationCity)).append("\n"); - sb.append(" carRentalLocationCountry: ").append(toIndentedString(carRentalLocationCountry)).append("\n"); - sb.append(" carRentalLocationStateProvince: ").append(toIndentedString(carRentalLocationStateProvince)).append("\n"); - sb.append(" carRentalNoShowIndicator: ").append(toIndentedString(carRentalNoShowIndicator)).append("\n"); - sb.append(" carRentalOneWayDropOffCharges: ").append(toIndentedString(carRentalOneWayDropOffCharges)).append("\n"); + sb.append(" carRentalCheckOutDate: ") + .append(toIndentedString(carRentalCheckOutDate)) + .append("\n"); + sb.append(" carRentalCustomerServiceTollFreeNumber: ") + .append(toIndentedString(carRentalCustomerServiceTollFreeNumber)) + .append("\n"); + sb.append(" carRentalDaysRented: ") + .append(toIndentedString(carRentalDaysRented)) + .append("\n"); + sb.append(" carRentalFuelCharges: ") + .append(toIndentedString(carRentalFuelCharges)) + .append("\n"); + sb.append(" carRentalInsuranceCharges: ") + .append(toIndentedString(carRentalInsuranceCharges)) + .append("\n"); + sb.append(" carRentalLocationCity: ") + .append(toIndentedString(carRentalLocationCity)) + .append("\n"); + sb.append(" carRentalLocationCountry: ") + .append(toIndentedString(carRentalLocationCountry)) + .append("\n"); + sb.append(" carRentalLocationStateProvince: ") + .append(toIndentedString(carRentalLocationStateProvince)) + .append("\n"); + sb.append(" carRentalNoShowIndicator: ") + .append(toIndentedString(carRentalNoShowIndicator)) + .append("\n"); + sb.append(" carRentalOneWayDropOffCharges: ") + .append(toIndentedString(carRentalOneWayDropOffCharges)) + .append("\n"); sb.append(" carRentalRate: ").append(toIndentedString(carRentalRate)).append("\n"); - sb.append(" carRentalRateIndicator: ").append(toIndentedString(carRentalRateIndicator)).append("\n"); - sb.append(" carRentalRentalAgreementNumber: ").append(toIndentedString(carRentalRentalAgreementNumber)).append("\n"); - sb.append(" carRentalRentalClassId: ").append(toIndentedString(carRentalRentalClassId)).append("\n"); - sb.append(" carRentalRenterName: ").append(toIndentedString(carRentalRenterName)).append("\n"); - sb.append(" carRentalReturnCity: ").append(toIndentedString(carRentalReturnCity)).append("\n"); - sb.append(" carRentalReturnCountry: ").append(toIndentedString(carRentalReturnCountry)).append("\n"); - sb.append(" carRentalReturnDate: ").append(toIndentedString(carRentalReturnDate)).append("\n"); - sb.append(" carRentalReturnLocationId: ").append(toIndentedString(carRentalReturnLocationId)).append("\n"); - sb.append(" carRentalReturnStateProvince: ").append(toIndentedString(carRentalReturnStateProvince)).append("\n"); - sb.append(" carRentalTaxExemptIndicator: ").append(toIndentedString(carRentalTaxExemptIndicator)).append("\n"); - sb.append(" travelEntertainmentAuthDataDuration: ").append(toIndentedString(travelEntertainmentAuthDataDuration)).append("\n"); - sb.append(" travelEntertainmentAuthDataMarket: ").append(toIndentedString(travelEntertainmentAuthDataMarket)).append("\n"); + sb.append(" carRentalRateIndicator: ") + .append(toIndentedString(carRentalRateIndicator)) + .append("\n"); + sb.append(" carRentalRentalAgreementNumber: ") + .append(toIndentedString(carRentalRentalAgreementNumber)) + .append("\n"); + sb.append(" carRentalRentalClassId: ") + .append(toIndentedString(carRentalRentalClassId)) + .append("\n"); + sb.append(" carRentalRenterName: ") + .append(toIndentedString(carRentalRenterName)) + .append("\n"); + sb.append(" carRentalReturnCity: ") + .append(toIndentedString(carRentalReturnCity)) + .append("\n"); + sb.append(" carRentalReturnCountry: ") + .append(toIndentedString(carRentalReturnCountry)) + .append("\n"); + sb.append(" carRentalReturnDate: ") + .append(toIndentedString(carRentalReturnDate)) + .append("\n"); + sb.append(" carRentalReturnLocationId: ") + .append(toIndentedString(carRentalReturnLocationId)) + .append("\n"); + sb.append(" carRentalReturnStateProvince: ") + .append(toIndentedString(carRentalReturnStateProvince)) + .append("\n"); + sb.append(" carRentalTaxExemptIndicator: ") + .append(toIndentedString(carRentalTaxExemptIndicator)) + .append("\n"); + sb.append(" travelEntertainmentAuthDataDuration: ") + .append(toIndentedString(travelEntertainmentAuthDataDuration)) + .append("\n"); + sb.append(" travelEntertainmentAuthDataMarket: ") + .append(toIndentedString(travelEntertainmentAuthDataMarket)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -946,21 +1257,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalDataCarRental given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataCarRental - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataCarRental + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalDataCarRental */ public static AdditionalDataCarRental fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataCarRental.class); } -/** - * Convert an instance of AdditionalDataCarRental to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalDataCarRental to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataCommon.java b/src/main/java/com/adyen/model/payment/AdditionalDataCommon.java index 11e14b897..05f31cf1c 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataCommon.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataCommon.java @@ -2,31 +2,26 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * AdditionalDataCommon - */ +/** AdditionalDataCommon */ @JsonPropertyOrder({ AdditionalDataCommon.JSON_PROPERTY_REQUESTED_TEST_ACQUIRER_RESPONSE_CODE, AdditionalDataCommon.JSON_PROPERTY_REQUESTED_TEST_ERROR_RESPONSE_CODE, @@ -50,12 +45,13 @@ AdditionalDataCommon.JSON_PROPERTY_SUB_MERCHANT_STREET, AdditionalDataCommon.JSON_PROPERTY_SUB_MERCHANT_TAX_ID }) - public class AdditionalDataCommon { - public static final String JSON_PROPERTY_REQUESTED_TEST_ACQUIRER_RESPONSE_CODE = "RequestedTestAcquirerResponseCode"; + public static final String JSON_PROPERTY_REQUESTED_TEST_ACQUIRER_RESPONSE_CODE = + "RequestedTestAcquirerResponseCode"; private String requestedTestAcquirerResponseCode; - public static final String JSON_PROPERTY_REQUESTED_TEST_ERROR_RESPONSE_CODE = "RequestedTestErrorResponseCode"; + public static final String JSON_PROPERTY_REQUESTED_TEST_ERROR_RESPONSE_CODE = + "RequestedTestErrorResponseCode"; private String requestedTestErrorResponseCode; public static final String JSON_PROPERTY_ALLOW_PARTIAL_AUTH = "allowPartialAuth"; @@ -71,10 +67,14 @@ public class AdditionalDataCommon { private String customRoutingFlag; /** - * In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed. + * In case of [asynchronous authorisation + * adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), + * this field denotes why the additional payment is made. Possible values: * **NoShow**: An + * incremental charge is carried out because of a no-show for a guaranteed reservation. * + * **DelayedCharge**: An incremental charge is carried out to process an additional payment after + * the original services have been rendered and the respective payment has been processed. */ public enum IndustryUsageEnum { - NOSHOW(String.valueOf("NoShow")), DELAYEDCHARGE(String.valueOf("DelayedCharge")); @@ -84,7 +84,7 @@ public enum IndustryUsageEnum { private String value; IndustryUsageEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -105,7 +105,11 @@ public static IndustryUsageEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("IndustryUsageEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(IndustryUsageEnum.values())); + LOG.warning( + "IndustryUsageEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(IndustryUsageEnum.values())); return null; } } @@ -155,23 +159,36 @@ public static IndustryUsageEnum fromValue(String value) { public static final String JSON_PROPERTY_SUB_MERCHANT_TAX_ID = "subMerchantTaxId"; private String subMerchantTaxId; - public AdditionalDataCommon() { - } + public AdditionalDataCommon() {} /** - * Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing result codes and refusal reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the possible values, and the `refusalReason` values you can trigger. + * Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing + * result codes and refusal + * reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the + * possible values, and the `refusalReason` values you can trigger. * - * @param requestedTestAcquirerResponseCode Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing result codes and refusal reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the possible values, and the `refusalReason` values you can trigger. + * @param requestedTestAcquirerResponseCode Triggers test scenarios that allow to replicate + * certain acquirer response codes. See [Testing result codes and refusal + * reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about + * the possible values, and the `refusalReason` values you can trigger. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ - public AdditionalDataCommon requestedTestAcquirerResponseCode(String requestedTestAcquirerResponseCode) { + public AdditionalDataCommon requestedTestAcquirerResponseCode( + String requestedTestAcquirerResponseCode) { this.requestedTestAcquirerResponseCode = requestedTestAcquirerResponseCode; return this; } /** - * Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing result codes and refusal reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the possible values, and the `refusalReason` values you can trigger. - * @return requestedTestAcquirerResponseCode Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing result codes and refusal reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the possible values, and the `refusalReason` values you can trigger. + * Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing + * result codes and refusal + * reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the + * possible values, and the `refusalReason` values you can trigger. + * + * @return requestedTestAcquirerResponseCode Triggers test scenarios that allow to replicate + * certain acquirer response codes. See [Testing result codes and refusal + * reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about + * the possible values, and the `refusalReason` values you can trigger. */ @JsonProperty(JSON_PROPERTY_REQUESTED_TEST_ACQUIRER_RESPONSE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -180,9 +197,15 @@ public String getRequestedTestAcquirerResponseCode() { } /** - * Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing result codes and refusal reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the possible values, and the `refusalReason` values you can trigger. + * Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing + * result codes and refusal + * reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the + * possible values, and the `refusalReason` values you can trigger. * - * @param requestedTestAcquirerResponseCode Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing result codes and refusal reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the possible values, and the `refusalReason` values you can trigger. + * @param requestedTestAcquirerResponseCode Triggers test scenarios that allow to replicate + * certain acquirer response codes. See [Testing result codes and refusal + * reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about + * the possible values, and the `refusalReason` values you can trigger. */ @JsonProperty(JSON_PROPERTY_REQUESTED_TEST_ACQUIRER_RESPONSE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,19 +214,63 @@ public void setRequestedTestAcquirerResponseCode(String requestedTestAcquirerRes } /** - * Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response. + * Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * + * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing + * communication. This is a transient, retriable error since no messaging could be initiated to an + * issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true + * is returned in the response. A subsequent request using the same idempotency key will be + * processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong + * during transmission of the message or receiving the response. This is a classified as + * non-transient because the message could have been received by the issuing party and been acted + * upon. No transient error header is returned. If using idempotency, the (error) response is + * stored as the final result for the idempotency key. Subsequent messages with the same + * idempotency key not be processed beyond returning the stored response. * - * @param requestedTestErrorResponseCode Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response. + * @param requestedTestErrorResponseCode Triggers test scenarios that allow to replicate certain + * communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a + * connection available to service the outgoing communication. This is a transient, retriable + * error since no messaging could be initiated to an issuing system (or third-party acquiring + * system). Therefore, the header Transient-Error: true is returned in the response. A + * subsequent request using the same idempotency key will be processed as if it was the first + * request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the + * message or receiving the response. This is a classified as non-transient because the + * message could have been received by the issuing party and been acted upon. No transient + * error header is returned. If using idempotency, the (error) response is stored as the final + * result for the idempotency key. Subsequent messages with the same idempotency key not be + * processed beyond returning the stored response. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ - public AdditionalDataCommon requestedTestErrorResponseCode(String requestedTestErrorResponseCode) { + public AdditionalDataCommon requestedTestErrorResponseCode( + String requestedTestErrorResponseCode) { this.requestedTestErrorResponseCode = requestedTestErrorResponseCode; return this; } /** - * Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response. - * @return requestedTestErrorResponseCode Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response. + * Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * + * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing + * communication. This is a transient, retriable error since no messaging could be initiated to an + * issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true + * is returned in the response. A subsequent request using the same idempotency key will be + * processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong + * during transmission of the message or receiving the response. This is a classified as + * non-transient because the message could have been received by the issuing party and been acted + * upon. No transient error header is returned. If using idempotency, the (error) response is + * stored as the final result for the idempotency key. Subsequent messages with the same + * idempotency key not be processed beyond returning the stored response. + * + * @return requestedTestErrorResponseCode Triggers test scenarios that allow to replicate certain + * communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a + * connection available to service the outgoing communication. This is a transient, retriable + * error since no messaging could be initiated to an issuing system (or third-party acquiring + * system). Therefore, the header Transient-Error: true is returned in the response. A + * subsequent request using the same idempotency key will be processed as if it was the first + * request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the + * message or receiving the response. This is a classified as non-transient because the + * message could have been received by the issuing party and been acted upon. No transient + * error header is returned. If using idempotency, the (error) response is stored as the final + * result for the idempotency key. Subsequent messages with the same idempotency key not be + * processed beyond returning the stored response. */ @JsonProperty(JSON_PROPERTY_REQUESTED_TEST_ERROR_RESPONSE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -212,9 +279,30 @@ public String getRequestedTestErrorResponseCode() { } /** - * Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response. + * Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * + * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing + * communication. This is a transient, retriable error since no messaging could be initiated to an + * issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true + * is returned in the response. A subsequent request using the same idempotency key will be + * processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong + * during transmission of the message or receiving the response. This is a classified as + * non-transient because the message could have been received by the issuing party and been acted + * upon. No transient error header is returned. If using idempotency, the (error) response is + * stored as the final result for the idempotency key. Subsequent messages with the same + * idempotency key not be processed beyond returning the stored response. * - * @param requestedTestErrorResponseCode Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response. + * @param requestedTestErrorResponseCode Triggers test scenarios that allow to replicate certain + * communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a + * connection available to service the outgoing communication. This is a transient, retriable + * error since no messaging could be initiated to an issuing system (or third-party acquiring + * system). Therefore, the header Transient-Error: true is returned in the response. A + * subsequent request using the same idempotency key will be processed as if it was the first + * request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the + * message or receiving the response. This is a classified as non-transient because the + * message could have been received by the issuing party and been acted upon. No transient + * error header is returned. If using idempotency, the (error) response is stored as the final + * result for the idempotency key. Subsequent messages with the same idempotency key not be + * processed beyond returning the stored response. */ @JsonProperty(JSON_PROPERTY_REQUESTED_TEST_ERROR_RESPONSE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,9 +311,16 @@ public void setRequestedTestErrorResponseCode(String requestedTestErrorResponseC } /** - * Set to true to authorise a part of the requested amount in case the cardholder does not have enough funds on their account. If a payment was partially authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount in additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. + * Set to true to authorise a part of the requested amount in case the cardholder does not have + * enough funds on their account. If a payment was partially authorised, the response includes + * resultCode: PartiallyAuthorised and the authorised amount in + * additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. * - * @param allowPartialAuth Set to true to authorise a part of the requested amount in case the cardholder does not have enough funds on their account. If a payment was partially authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount in additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. + * @param allowPartialAuth Set to true to authorise a part of the requested amount in case the + * cardholder does not have enough funds on their account. If a payment was partially + * authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount + * in additionalData.authorisedAmountValue. To enable this functionality, contact our Support + * Team. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon allowPartialAuth(String allowPartialAuth) { @@ -234,8 +329,16 @@ public AdditionalDataCommon allowPartialAuth(String allowPartialAuth) { } /** - * Set to true to authorise a part of the requested amount in case the cardholder does not have enough funds on their account. If a payment was partially authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount in additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. - * @return allowPartialAuth Set to true to authorise a part of the requested amount in case the cardholder does not have enough funds on their account. If a payment was partially authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount in additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. + * Set to true to authorise a part of the requested amount in case the cardholder does not have + * enough funds on their account. If a payment was partially authorised, the response includes + * resultCode: PartiallyAuthorised and the authorised amount in + * additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. + * + * @return allowPartialAuth Set to true to authorise a part of the requested amount in case the + * cardholder does not have enough funds on their account. If a payment was partially + * authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount + * in additionalData.authorisedAmountValue. To enable this functionality, contact our Support + * Team. */ @JsonProperty(JSON_PROPERTY_ALLOW_PARTIAL_AUTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,9 +347,16 @@ public String getAllowPartialAuth() { } /** - * Set to true to authorise a part of the requested amount in case the cardholder does not have enough funds on their account. If a payment was partially authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount in additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. + * Set to true to authorise a part of the requested amount in case the cardholder does not have + * enough funds on their account. If a payment was partially authorised, the response includes + * resultCode: PartiallyAuthorised and the authorised amount in + * additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. * - * @param allowPartialAuth Set to true to authorise a part of the requested amount in case the cardholder does not have enough funds on their account. If a payment was partially authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount in additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. + * @param allowPartialAuth Set to true to authorise a part of the requested amount in case the + * cardholder does not have enough funds on their account. If a payment was partially + * authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount + * in additionalData.authorisedAmountValue. To enable this functionality, contact our Support + * Team. */ @JsonProperty(JSON_PROPERTY_ALLOW_PARTIAL_AUTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -255,9 +365,18 @@ public void setAllowPartialAuth(String allowPartialAuth) { } /** - * Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final authorisation. + * Flags a card payment request for either pre-authorisation or final authorisation. For more + * information, refer to [Authorisation + * types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). + * Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. + * * **FinalAuth** – flags the payment request to be handled as a final authorisation. * - * @param authorisationType Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final authorisation. + * @param authorisationType Flags a card payment request for either pre-authorisation or final + * authorisation. For more information, refer to [Authorisation + * types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). + * Allowed values: * **PreAuth** – flags the payment request to be handled as a + * pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final + * authorisation. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon authorisationType(String authorisationType) { @@ -266,8 +385,18 @@ public AdditionalDataCommon authorisationType(String authorisationType) { } /** - * Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final authorisation. - * @return authorisationType Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final authorisation. + * Flags a card payment request for either pre-authorisation or final authorisation. For more + * information, refer to [Authorisation + * types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). + * Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. + * * **FinalAuth** – flags the payment request to be handled as a final authorisation. + * + * @return authorisationType Flags a card payment request for either pre-authorisation or final + * authorisation. For more information, refer to [Authorisation + * types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). + * Allowed values: * **PreAuth** – flags the payment request to be handled as a + * pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final + * authorisation. */ @JsonProperty(JSON_PROPERTY_AUTHORISATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -276,9 +405,18 @@ public String getAuthorisationType() { } /** - * Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final authorisation. + * Flags a card payment request for either pre-authorisation or final authorisation. For more + * information, refer to [Authorisation + * types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). + * Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. + * * **FinalAuth** – flags the payment request to be handled as a final authorisation. * - * @param authorisationType Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final authorisation. + * @param authorisationType Flags a card payment request for either pre-authorisation or final + * authorisation. For more information, refer to [Authorisation + * types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). + * Allowed values: * **PreAuth** – flags the payment request to be handled as a + * pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final + * authorisation. */ @JsonProperty(JSON_PROPERTY_AUTHORISATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -287,9 +425,12 @@ public void setAuthorisationType(String authorisationType) { } /** - * Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the `maxDaysToRescue` to specify a rescue window. + * Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) + * for a transaction. Use the `maxDaysToRescue` to specify a rescue window. * - * @param autoRescue Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the `maxDaysToRescue` to specify a rescue window. + * @param autoRescue Set to **true** to enable [Auto + * Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the + * `maxDaysToRescue` to specify a rescue window. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon autoRescue(String autoRescue) { @@ -298,8 +439,12 @@ public AdditionalDataCommon autoRescue(String autoRescue) { } /** - * Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the `maxDaysToRescue` to specify a rescue window. - * @return autoRescue Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the `maxDaysToRescue` to specify a rescue window. + * Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) + * for a transaction. Use the `maxDaysToRescue` to specify a rescue window. + * + * @return autoRescue Set to **true** to enable [Auto + * Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the + * `maxDaysToRescue` to specify a rescue window. */ @JsonProperty(JSON_PROPERTY_AUTO_RESCUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -308,9 +453,12 @@ public String getAutoRescue() { } /** - * Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the `maxDaysToRescue` to specify a rescue window. + * Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) + * for a transaction. Use the `maxDaysToRescue` to specify a rescue window. * - * @param autoRescue Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the `maxDaysToRescue` to specify a rescue window. + * @param autoRescue Set to **true** to enable [Auto + * Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the + * `maxDaysToRescue` to specify a rescue window. */ @JsonProperty(JSON_PROPERTY_AUTO_RESCUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -319,9 +467,18 @@ public void setAutoRescue(String autoRescue) { } /** - * Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request's additional data to target a specific acquirer. To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). + * Allows you to determine or override the acquirer account that should be used for the + * transaction. If you need to process a payment with an acquirer different from a default one, + * you can set up a corresponding configuration on the Adyen payments platform. Then you can pass + * a custom routing flag in a payment request's additional data to target a specific acquirer. + * To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param customRoutingFlag Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request's additional data to target a specific acquirer. To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). + * @param customRoutingFlag Allows you to determine or override the acquirer account that should + * be used for the transaction. If you need to process a payment with an acquirer different + * from a default one, you can set up a corresponding configuration on the Adyen payments + * platform. Then you can pass a custom routing flag in a payment request's additional + * data to target a specific acquirer. To enable this functionality, contact + * [Support](https://www.adyen.help/hc/en-us/requests/new). * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon customRoutingFlag(String customRoutingFlag) { @@ -330,8 +487,18 @@ public AdditionalDataCommon customRoutingFlag(String customRoutingFlag) { } /** - * Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request's additional data to target a specific acquirer. To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). - * @return customRoutingFlag Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request's additional data to target a specific acquirer. To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). + * Allows you to determine or override the acquirer account that should be used for the + * transaction. If you need to process a payment with an acquirer different from a default one, + * you can set up a corresponding configuration on the Adyen payments platform. Then you can pass + * a custom routing flag in a payment request's additional data to target a specific acquirer. + * To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). + * + * @return customRoutingFlag Allows you to determine or override the acquirer account that should + * be used for the transaction. If you need to process a payment with an acquirer different + * from a default one, you can set up a corresponding configuration on the Adyen payments + * platform. Then you can pass a custom routing flag in a payment request's additional + * data to target a specific acquirer. To enable this functionality, contact + * [Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_CUSTOM_ROUTING_FLAG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -340,9 +507,18 @@ public String getCustomRoutingFlag() { } /** - * Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request's additional data to target a specific acquirer. To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). + * Allows you to determine or override the acquirer account that should be used for the + * transaction. If you need to process a payment with an acquirer different from a default one, + * you can set up a corresponding configuration on the Adyen payments platform. Then you can pass + * a custom routing flag in a payment request's additional data to target a specific acquirer. + * To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param customRoutingFlag Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request's additional data to target a specific acquirer. To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). + * @param customRoutingFlag Allows you to determine or override the acquirer account that should + * be used for the transaction. If you need to process a payment with an acquirer different + * from a default one, you can set up a corresponding configuration on the Adyen payments + * platform. Then you can pass a custom routing flag in a payment request's additional + * data to target a specific acquirer. To enable this functionality, contact + * [Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_CUSTOM_ROUTING_FLAG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -351,9 +527,20 @@ public void setCustomRoutingFlag(String customRoutingFlag) { } /** - * In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed. + * In case of [asynchronous authorisation + * adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), + * this field denotes why the additional payment is made. Possible values: * **NoShow**: An + * incremental charge is carried out because of a no-show for a guaranteed reservation. * + * **DelayedCharge**: An incremental charge is carried out to process an additional payment after + * the original services have been rendered and the respective payment has been processed. * - * @param industryUsage In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed. + * @param industryUsage In case of [asynchronous authorisation + * adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), + * this field denotes why the additional payment is made. Possible values: * **NoShow**: An + * incremental charge is carried out because of a no-show for a guaranteed reservation. * + * **DelayedCharge**: An incremental charge is carried out to process an additional payment + * after the original services have been rendered and the respective payment has been + * processed. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon industryUsage(IndustryUsageEnum industryUsage) { @@ -362,8 +549,20 @@ public AdditionalDataCommon industryUsage(IndustryUsageEnum industryUsage) { } /** - * In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed. - * @return industryUsage In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed. + * In case of [asynchronous authorisation + * adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), + * this field denotes why the additional payment is made. Possible values: * **NoShow**: An + * incremental charge is carried out because of a no-show for a guaranteed reservation. * + * **DelayedCharge**: An incremental charge is carried out to process an additional payment after + * the original services have been rendered and the respective payment has been processed. + * + * @return industryUsage In case of [asynchronous authorisation + * adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), + * this field denotes why the additional payment is made. Possible values: * **NoShow**: An + * incremental charge is carried out because of a no-show for a guaranteed reservation. * + * **DelayedCharge**: An incremental charge is carried out to process an additional payment + * after the original services have been rendered and the respective payment has been + * processed. */ @JsonProperty(JSON_PROPERTY_INDUSTRY_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -372,9 +571,20 @@ public IndustryUsageEnum getIndustryUsage() { } /** - * In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed. + * In case of [asynchronous authorisation + * adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), + * this field denotes why the additional payment is made. Possible values: * **NoShow**: An + * incremental charge is carried out because of a no-show for a guaranteed reservation. * + * **DelayedCharge**: An incremental charge is carried out to process an additional payment after + * the original services have been rendered and the respective payment has been processed. * - * @param industryUsage In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed. + * @param industryUsage In case of [asynchronous authorisation + * adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), + * this field denotes why the additional payment is made. Possible values: * **NoShow**: An + * incremental charge is carried out because of a no-show for a guaranteed reservation. * + * **DelayedCharge**: An incremental charge is carried out to process an additional payment + * after the original services have been rendered and the respective payment has been + * processed. */ @JsonProperty(JSON_PROPERTY_INDUSTRY_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -383,9 +593,11 @@ public void setIndustryUsage(IndustryUsageEnum industryUsage) { } /** - * Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for the transaction. + * Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for + * the transaction. * - * @param manualCapture Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for the transaction. + * @param manualCapture Set to **true** to require [manual + * capture](https://docs.adyen.com/online-payments/capture) for the transaction. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon manualCapture(String manualCapture) { @@ -394,8 +606,11 @@ public AdditionalDataCommon manualCapture(String manualCapture) { } /** - * Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for the transaction. - * @return manualCapture Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for the transaction. + * Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for + * the transaction. + * + * @return manualCapture Set to **true** to require [manual + * capture](https://docs.adyen.com/online-payments/capture) for the transaction. */ @JsonProperty(JSON_PROPERTY_MANUAL_CAPTURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -404,9 +619,11 @@ public String getManualCapture() { } /** - * Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for the transaction. + * Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for + * the transaction. * - * @param manualCapture Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for the transaction. + * @param manualCapture Set to **true** to require [manual + * capture](https://docs.adyen.com/online-payments/capture) for the transaction. */ @JsonProperty(JSON_PROPERTY_MANUAL_CAPTURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -415,9 +632,17 @@ public void setManualCapture(String manualCapture) { } /** - * The rescue window for a transaction, in days, when `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is 42 days. + * The rescue window for a transaction, in days, when `autoRescue` is set to **true**. + * You can specify a value between 1 and 48. * For + * [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar + * month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is + * 42 days. * - * @param maxDaysToRescue The rescue window for a transaction, in days, when `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is 42 days. + * @param maxDaysToRescue The rescue window for a transaction, in days, when + * `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For + * [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one + * calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the + * default is 42 days. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon maxDaysToRescue(String maxDaysToRescue) { @@ -426,8 +651,17 @@ public AdditionalDataCommon maxDaysToRescue(String maxDaysToRescue) { } /** - * The rescue window for a transaction, in days, when `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is 42 days. - * @return maxDaysToRescue The rescue window for a transaction, in days, when `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is 42 days. + * The rescue window for a transaction, in days, when `autoRescue` is set to **true**. + * You can specify a value between 1 and 48. * For + * [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar + * month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is + * 42 days. + * + * @return maxDaysToRescue The rescue window for a transaction, in days, when + * `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For + * [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one + * calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the + * default is 42 days. */ @JsonProperty(JSON_PROPERTY_MAX_DAYS_TO_RESCUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -436,9 +670,17 @@ public String getMaxDaysToRescue() { } /** - * The rescue window for a transaction, in days, when `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is 42 days. + * The rescue window for a transaction, in days, when `autoRescue` is set to **true**. + * You can specify a value between 1 and 48. * For + * [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar + * month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is + * 42 days. * - * @param maxDaysToRescue The rescue window for a transaction, in days, when `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is 42 days. + * @param maxDaysToRescue The rescue window for a transaction, in days, when + * `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For + * [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one + * calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the + * default is 42 days. */ @JsonProperty(JSON_PROPERTY_MAX_DAYS_TO_RESCUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -447,9 +689,25 @@ public void setMaxDaysToRescue(String maxDaysToRescue) { } /** - * Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT. + * Allows you to link the transaction to the original or previous one in a + * subscription/card-on-file chain. This field is required for token-based transactions where + * Adyen does not tokenize the card. Transaction identifier from card schemes, for example, + * Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the + * contract in your payment request if you are not tokenizing card details with Adyen and are + * making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending + * `shopperInteraction` **ContAuth** and `recurringProcessingModel` + * **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as + * MIT. * - * @param networkTxReference Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT. + * @param networkTxReference Allows you to link the transaction to the original or previous one in + * a subscription/card-on-file chain. This field is required for token-based transactions + * where Adyen does not tokenize the card. Transaction identifier from card schemes, for + * example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID + * of the contract in your payment request if you are not tokenizing card details with Adyen + * and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you + * are sending `shopperInteraction` **ContAuth** and + * `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to + * ensure that the transaction is classified as MIT. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon networkTxReference(String networkTxReference) { @@ -458,8 +716,25 @@ public AdditionalDataCommon networkTxReference(String networkTxReference) { } /** - * Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT. - * @return networkTxReference Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT. + * Allows you to link the transaction to the original or previous one in a + * subscription/card-on-file chain. This field is required for token-based transactions where + * Adyen does not tokenize the card. Transaction identifier from card schemes, for example, + * Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the + * contract in your payment request if you are not tokenizing card details with Adyen and are + * making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending + * `shopperInteraction` **ContAuth** and `recurringProcessingModel` + * **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as + * MIT. + * + * @return networkTxReference Allows you to link the transaction to the original or previous one + * in a subscription/card-on-file chain. This field is required for token-based transactions + * where Adyen does not tokenize the card. Transaction identifier from card schemes, for + * example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID + * of the contract in your payment request if you are not tokenizing card details with Adyen + * and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you + * are sending `shopperInteraction` **ContAuth** and + * `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to + * ensure that the transaction is classified as MIT. */ @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -468,9 +743,25 @@ public String getNetworkTxReference() { } /** - * Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT. + * Allows you to link the transaction to the original or previous one in a + * subscription/card-on-file chain. This field is required for token-based transactions where + * Adyen does not tokenize the card. Transaction identifier from card schemes, for example, + * Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the + * contract in your payment request if you are not tokenizing card details with Adyen and are + * making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending + * `shopperInteraction` **ContAuth** and `recurringProcessingModel` + * **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as + * MIT. * - * @param networkTxReference Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT. + * @param networkTxReference Allows you to link the transaction to the original or previous one in + * a subscription/card-on-file chain. This field is required for token-based transactions + * where Adyen does not tokenize the card. Transaction identifier from card schemes, for + * example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID + * of the contract in your payment request if you are not tokenizing card details with Adyen + * and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you + * are sending `shopperInteraction` **ContAuth** and + * `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to + * ensure that the transaction is classified as MIT. */ @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -479,9 +770,15 @@ public void setNetworkTxReference(String networkTxReference) { } /** - * Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction. + * Boolean indicator that can be optionally used for performing debit transactions on combo cards + * (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this + * to true if you want to use the `selectedBrand` value to specify how to process the + * transaction. * - * @param overwriteBrand Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction. + * @param overwriteBrand Boolean indicator that can be optionally used for performing debit + * transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but + * we recommend that you set this to true if you want to use the `selectedBrand` + * value to specify how to process the transaction. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon overwriteBrand(String overwriteBrand) { @@ -490,8 +787,15 @@ public AdditionalDataCommon overwriteBrand(String overwriteBrand) { } /** - * Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction. - * @return overwriteBrand Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction. + * Boolean indicator that can be optionally used for performing debit transactions on combo cards + * (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this + * to true if you want to use the `selectedBrand` value to specify how to process the + * transaction. + * + * @return overwriteBrand Boolean indicator that can be optionally used for performing debit + * transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but + * we recommend that you set this to true if you want to use the `selectedBrand` + * value to specify how to process the transaction. */ @JsonProperty(JSON_PROPERTY_OVERWRITE_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -500,9 +804,15 @@ public String getOverwriteBrand() { } /** - * Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction. + * Boolean indicator that can be optionally used for performing debit transactions on combo cards + * (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this + * to true if you want to use the `selectedBrand` value to specify how to process the + * transaction. * - * @param overwriteBrand Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction. + * @param overwriteBrand Boolean indicator that can be optionally used for performing debit + * transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but + * we recommend that you set this to true if you want to use the `selectedBrand` + * value to specify how to process the transaction. */ @JsonProperty(JSON_PROPERTY_OVERWRITE_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -511,9 +821,13 @@ public void setOverwriteBrand(String overwriteBrand) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 13 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the city of the actual merchant's address. * Format: alpha-numeric. + * * Maximum length: 13 characters. * - * @param subMerchantCity This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 13 characters. + * @param subMerchantCity This field is required if the transaction is performed by a registered + * payment facilitator. This field must contain the city of the actual merchant's address. + * * Format: alpha-numeric. * Maximum length: 13 characters. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantCity(String subMerchantCity) { @@ -522,8 +836,13 @@ public AdditionalDataCommon subMerchantCity(String subMerchantCity) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 13 characters. - * @return subMerchantCity This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 13 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the city of the actual merchant's address. * Format: alpha-numeric. + * * Maximum length: 13 characters. + * + * @return subMerchantCity This field is required if the transaction is performed by a registered + * payment facilitator. This field must contain the city of the actual merchant's address. + * * Format: alpha-numeric. * Maximum length: 13 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -532,9 +851,13 @@ public String getSubMerchantCity() { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 13 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the city of the actual merchant's address. * Format: alpha-numeric. + * * Maximum length: 13 characters. * - * @param subMerchantCity This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 13 characters. + * @param subMerchantCity This field is required if the transaction is performed by a registered + * payment facilitator. This field must contain the city of the actual merchant's address. + * * Format: alpha-numeric. * Maximum length: 13 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -543,9 +866,13 @@ public void setSubMerchantCity(String subMerchantCity) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the three-letter country code of the actual merchant's address. * + * Format: alpha-numeric. * Fixed length: 3 characters. * - * @param subMerchantCountry This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. + * @param subMerchantCountry This field is required if the transaction is performed by a + * registered payment facilitator. This field must contain the three-letter country code of + * the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantCountry(String subMerchantCountry) { @@ -554,8 +881,13 @@ public AdditionalDataCommon subMerchantCountry(String subMerchantCountry) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. - * @return subMerchantCountry This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the three-letter country code of the actual merchant's address. * + * Format: alpha-numeric. * Fixed length: 3 characters. + * + * @return subMerchantCountry This field is required if the transaction is performed by a + * registered payment facilitator. This field must contain the three-letter country code of + * the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -564,9 +896,13 @@ public String getSubMerchantCountry() { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the three-letter country code of the actual merchant's address. * + * Format: alpha-numeric. * Fixed length: 3 characters. * - * @param subMerchantCountry This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. + * @param subMerchantCountry This field is required if the transaction is performed by a + * registered payment facilitator. This field must contain the three-letter country code of + * the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -575,9 +911,13 @@ public void setSubMerchantCountry(String subMerchantCountry) { } /** - * This field is required for transactions performed by registered payment facilitators. This field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters + * This field is required for transactions performed by registered payment facilitators. This + * field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: + * 40 characters * - * @param subMerchantEmail This field is required for transactions performed by registered payment facilitators. This field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters + * @param subMerchantEmail This field is required for transactions performed by registered payment + * facilitators. This field contains the email address of the sub-merchant. * Format: + * Alphanumeric * Maximum length: 40 characters * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantEmail(String subMerchantEmail) { @@ -586,8 +926,13 @@ public AdditionalDataCommon subMerchantEmail(String subMerchantEmail) { } /** - * This field is required for transactions performed by registered payment facilitators. This field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters - * @return subMerchantEmail This field is required for transactions performed by registered payment facilitators. This field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters + * This field is required for transactions performed by registered payment facilitators. This + * field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: + * 40 characters + * + * @return subMerchantEmail This field is required for transactions performed by registered + * payment facilitators. This field contains the email address of the sub-merchant. * Format: + * Alphanumeric * Maximum length: 40 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -596,9 +941,13 @@ public String getSubMerchantEmail() { } /** - * This field is required for transactions performed by registered payment facilitators. This field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters + * This field is required for transactions performed by registered payment facilitators. This + * field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: + * 40 characters * - * @param subMerchantEmail This field is required for transactions performed by registered payment facilitators. This field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters + * @param subMerchantEmail This field is required for transactions performed by registered payment + * facilitators. This field contains the email address of the sub-merchant. * Format: + * Alphanumeric * Maximum length: 40 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -607,9 +956,16 @@ public void setSubMerchantEmail(String subMerchantEmail) { } /** - * This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. + * This field contains an identifier of the actual merchant when a transaction is submitted via a + * payment facilitator. The payment facilitator must send in this unique ID. A unique identifier + * per submerchant that is required if the transaction is performed by a registered payment + * facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. * - * @param subMerchantID This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. + * @param subMerchantID This field contains an identifier of the actual merchant when a + * transaction is submitted via a payment facilitator. The payment facilitator must send in + * this unique ID. A unique identifier per submerchant that is required if the transaction is + * performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 + * characters. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantID(String subMerchantID) { @@ -618,8 +974,16 @@ public AdditionalDataCommon subMerchantID(String subMerchantID) { } /** - * This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. - * @return subMerchantID This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. + * This field contains an identifier of the actual merchant when a transaction is submitted via a + * payment facilitator. The payment facilitator must send in this unique ID. A unique identifier + * per submerchant that is required if the transaction is performed by a registered payment + * facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. + * + * @return subMerchantID This field contains an identifier of the actual merchant when a + * transaction is submitted via a payment facilitator. The payment facilitator must send in + * this unique ID. A unique identifier per submerchant that is required if the transaction is + * performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 + * characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -628,9 +992,16 @@ public String getSubMerchantID() { } /** - * This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. + * This field contains an identifier of the actual merchant when a transaction is submitted via a + * payment facilitator. The payment facilitator must send in this unique ID. A unique identifier + * per submerchant that is required if the transaction is performed by a registered payment + * facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. * - * @param subMerchantID This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. + * @param subMerchantID This field contains an identifier of the actual merchant when a + * transaction is submitted via a payment facilitator. The payment facilitator must send in + * this unique ID. A unique identifier per submerchant that is required if the transaction is + * performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 + * characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -639,9 +1010,13 @@ public void setSubMerchantID(String subMerchantID) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum length: 22 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum + * length: 22 characters. * - * @param subMerchantName This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum length: 22 characters. + * @param subMerchantName This field is required if the transaction is performed by a registered + * payment facilitator. This field must contain the name of the actual merchant. * Format: + * alpha-numeric. * Maximum length: 22 characters. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantName(String subMerchantName) { @@ -650,8 +1025,13 @@ public AdditionalDataCommon subMerchantName(String subMerchantName) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum length: 22 characters. - * @return subMerchantName This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum length: 22 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum + * length: 22 characters. + * + * @return subMerchantName This field is required if the transaction is performed by a registered + * payment facilitator. This field must contain the name of the actual merchant. * Format: + * alpha-numeric. * Maximum length: 22 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -660,9 +1040,13 @@ public String getSubMerchantName() { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum length: 22 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum + * length: 22 characters. * - * @param subMerchantName This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum length: 22 characters. + * @param subMerchantName This field is required if the transaction is performed by a registered + * payment facilitator. This field must contain the name of the actual merchant. * Format: + * alpha-numeric. * Maximum length: 22 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -671,9 +1055,13 @@ public void setSubMerchantName(String subMerchantName) { } /** - * This field is required for transactions performed by registered payment facilitators. This field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * This field is required for transactions performed by registered payment facilitators. This + * field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 + * characters * - * @param subMerchantPhoneNumber This field is required for transactions performed by registered payment facilitators. This field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * @param subMerchantPhoneNumber This field is required for transactions performed by registered + * payment facilitators. This field contains the phone number of the sub-merchant.* Format: + * Alphanumeric * Maximum length: 20 characters * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantPhoneNumber(String subMerchantPhoneNumber) { @@ -682,8 +1070,13 @@ public AdditionalDataCommon subMerchantPhoneNumber(String subMerchantPhoneNumber } /** - * This field is required for transactions performed by registered payment facilitators. This field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters - * @return subMerchantPhoneNumber This field is required for transactions performed by registered payment facilitators. This field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * This field is required for transactions performed by registered payment facilitators. This + * field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 + * characters + * + * @return subMerchantPhoneNumber This field is required for transactions performed by registered + * payment facilitators. This field contains the phone number of the sub-merchant.* Format: + * Alphanumeric * Maximum length: 20 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -692,9 +1085,13 @@ public String getSubMerchantPhoneNumber() { } /** - * This field is required for transactions performed by registered payment facilitators. This field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * This field is required for transactions performed by registered payment facilitators. This + * field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 + * characters * - * @param subMerchantPhoneNumber This field is required for transactions performed by registered payment facilitators. This field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * @param subMerchantPhoneNumber This field is required for transactions performed by registered + * payment facilitators. This field contains the phone number of the sub-merchant.* Format: + * Alphanumeric * Maximum length: 20 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -703,9 +1100,13 @@ public void setSubMerchantPhoneNumber(String subMerchantPhoneNumber) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the postal code of the actual merchant's address. * Format: + * alpha-numeric. * Maximum length: 10 characters. * - * @param subMerchantPostalCode This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. + * @param subMerchantPostalCode This field is required if the transaction is performed by a + * registered payment facilitator. This field must contain the postal code of the actual + * merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantPostalCode(String subMerchantPostalCode) { @@ -714,8 +1115,13 @@ public AdditionalDataCommon subMerchantPostalCode(String subMerchantPostalCode) } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. - * @return subMerchantPostalCode This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the postal code of the actual merchant's address. * Format: + * alpha-numeric. * Maximum length: 10 characters. + * + * @return subMerchantPostalCode This field is required if the transaction is performed by a + * registered payment facilitator. This field must contain the postal code of the actual + * merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -724,9 +1130,13 @@ public String getSubMerchantPostalCode() { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the postal code of the actual merchant's address. * Format: + * alpha-numeric. * Maximum length: 10 characters. * - * @param subMerchantPostalCode This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. + * @param subMerchantPostalCode This field is required if the transaction is performed by a + * registered payment facilitator. This field must contain the postal code of the actual + * merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -735,9 +1145,14 @@ public void setSubMerchantPostalCode(String subMerchantPostalCode) { } /** - * This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. + * This field is required if the transaction is performed by a registered payment facilitator, and + * if applicable to the country. This field must contain the state code of the actual + * merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. * - * @param subMerchantState This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. + * @param subMerchantState This field is required if the transaction is performed by a registered + * payment facilitator, and if applicable to the country. This field must contain the state + * code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 + * characters. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantState(String subMerchantState) { @@ -746,8 +1161,14 @@ public AdditionalDataCommon subMerchantState(String subMerchantState) { } /** - * This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. - * @return subMerchantState This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. + * This field is required if the transaction is performed by a registered payment facilitator, and + * if applicable to the country. This field must contain the state code of the actual + * merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. + * + * @return subMerchantState This field is required if the transaction is performed by a registered + * payment facilitator, and if applicable to the country. This field must contain the state + * code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 + * characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_STATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -756,9 +1177,14 @@ public String getSubMerchantState() { } /** - * This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. + * This field is required if the transaction is performed by a registered payment facilitator, and + * if applicable to the country. This field must contain the state code of the actual + * merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. * - * @param subMerchantState This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters. + * @param subMerchantState This field is required if the transaction is performed by a registered + * payment facilitator, and if applicable to the country. This field must contain the state + * code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 + * characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_STATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -767,9 +1193,13 @@ public void setSubMerchantState(String subMerchantState) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 60 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the street of the actual merchant's address. * Format: + * alpha-numeric. * Maximum length: 60 characters. * - * @param subMerchantStreet This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 60 characters. + * @param subMerchantStreet This field is required if the transaction is performed by a registered + * payment facilitator. This field must contain the street of the actual merchant's + * address. * Format: alpha-numeric. * Maximum length: 60 characters. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantStreet(String subMerchantStreet) { @@ -778,8 +1208,13 @@ public AdditionalDataCommon subMerchantStreet(String subMerchantStreet) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 60 characters. - * @return subMerchantStreet This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 60 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the street of the actual merchant's address. * Format: + * alpha-numeric. * Maximum length: 60 characters. + * + * @return subMerchantStreet This field is required if the transaction is performed by a + * registered payment facilitator. This field must contain the street of the actual + * merchant's address. * Format: alpha-numeric. * Maximum length: 60 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -788,9 +1223,13 @@ public String getSubMerchantStreet() { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 60 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the street of the actual merchant's address. * Format: + * alpha-numeric. * Maximum length: 60 characters. * - * @param subMerchantStreet This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 60 characters. + * @param subMerchantStreet This field is required if the transaction is performed by a registered + * payment facilitator. This field must contain the street of the actual merchant's + * address. * Format: alpha-numeric. * Maximum length: 60 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -799,9 +1238,13 @@ public void setSubMerchantStreet(String subMerchantStreet) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed length: 11 or 14 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed + * length: 11 or 14 characters. * - * @param subMerchantTaxId This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed length: 11 or 14 characters. + * @param subMerchantTaxId This field is required if the transaction is performed by a registered + * payment facilitator. This field must contain the tax ID of the actual merchant. * Format: + * alpha-numeric. * Fixed length: 11 or 14 characters. * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining */ public AdditionalDataCommon subMerchantTaxId(String subMerchantTaxId) { @@ -810,8 +1253,13 @@ public AdditionalDataCommon subMerchantTaxId(String subMerchantTaxId) { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed length: 11 or 14 characters. - * @return subMerchantTaxId This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed length: 11 or 14 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed + * length: 11 or 14 characters. + * + * @return subMerchantTaxId This field is required if the transaction is performed by a registered + * payment facilitator. This field must contain the tax ID of the actual merchant. * Format: + * alpha-numeric. * Fixed length: 11 or 14 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_TAX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -820,9 +1268,13 @@ public String getSubMerchantTaxId() { } /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed length: 11 or 14 characters. + * This field is required if the transaction is performed by a registered payment facilitator. + * This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed + * length: 11 or 14 characters. * - * @param subMerchantTaxId This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed length: 11 or 14 characters. + * @param subMerchantTaxId This field is required if the transaction is performed by a registered + * payment facilitator. This field must contain the tax ID of the actual merchant. * Format: + * alpha-numeric. * Fixed length: 11 or 14 characters. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_TAX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -830,9 +1282,7 @@ public void setSubMerchantTaxId(String subMerchantTaxId) { this.subMerchantTaxId = subMerchantTaxId; } - /** - * Return true if this AdditionalDataCommon object is equal to o. - */ + /** Return true if this AdditionalDataCommon object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -842,40 +1292,69 @@ public boolean equals(Object o) { return false; } AdditionalDataCommon additionalDataCommon = (AdditionalDataCommon) o; - return Objects.equals(this.requestedTestAcquirerResponseCode, additionalDataCommon.requestedTestAcquirerResponseCode) && - Objects.equals(this.requestedTestErrorResponseCode, additionalDataCommon.requestedTestErrorResponseCode) && - Objects.equals(this.allowPartialAuth, additionalDataCommon.allowPartialAuth) && - Objects.equals(this.authorisationType, additionalDataCommon.authorisationType) && - Objects.equals(this.autoRescue, additionalDataCommon.autoRescue) && - Objects.equals(this.customRoutingFlag, additionalDataCommon.customRoutingFlag) && - Objects.equals(this.industryUsage, additionalDataCommon.industryUsage) && - Objects.equals(this.manualCapture, additionalDataCommon.manualCapture) && - Objects.equals(this.maxDaysToRescue, additionalDataCommon.maxDaysToRescue) && - Objects.equals(this.networkTxReference, additionalDataCommon.networkTxReference) && - Objects.equals(this.overwriteBrand, additionalDataCommon.overwriteBrand) && - Objects.equals(this.subMerchantCity, additionalDataCommon.subMerchantCity) && - Objects.equals(this.subMerchantCountry, additionalDataCommon.subMerchantCountry) && - Objects.equals(this.subMerchantEmail, additionalDataCommon.subMerchantEmail) && - Objects.equals(this.subMerchantID, additionalDataCommon.subMerchantID) && - Objects.equals(this.subMerchantName, additionalDataCommon.subMerchantName) && - Objects.equals(this.subMerchantPhoneNumber, additionalDataCommon.subMerchantPhoneNumber) && - Objects.equals(this.subMerchantPostalCode, additionalDataCommon.subMerchantPostalCode) && - Objects.equals(this.subMerchantState, additionalDataCommon.subMerchantState) && - Objects.equals(this.subMerchantStreet, additionalDataCommon.subMerchantStreet) && - Objects.equals(this.subMerchantTaxId, additionalDataCommon.subMerchantTaxId); + return Objects.equals( + this.requestedTestAcquirerResponseCode, + additionalDataCommon.requestedTestAcquirerResponseCode) + && Objects.equals( + this.requestedTestErrorResponseCode, + additionalDataCommon.requestedTestErrorResponseCode) + && Objects.equals(this.allowPartialAuth, additionalDataCommon.allowPartialAuth) + && Objects.equals(this.authorisationType, additionalDataCommon.authorisationType) + && Objects.equals(this.autoRescue, additionalDataCommon.autoRescue) + && Objects.equals(this.customRoutingFlag, additionalDataCommon.customRoutingFlag) + && Objects.equals(this.industryUsage, additionalDataCommon.industryUsage) + && Objects.equals(this.manualCapture, additionalDataCommon.manualCapture) + && Objects.equals(this.maxDaysToRescue, additionalDataCommon.maxDaysToRescue) + && Objects.equals(this.networkTxReference, additionalDataCommon.networkTxReference) + && Objects.equals(this.overwriteBrand, additionalDataCommon.overwriteBrand) + && Objects.equals(this.subMerchantCity, additionalDataCommon.subMerchantCity) + && Objects.equals(this.subMerchantCountry, additionalDataCommon.subMerchantCountry) + && Objects.equals(this.subMerchantEmail, additionalDataCommon.subMerchantEmail) + && Objects.equals(this.subMerchantID, additionalDataCommon.subMerchantID) + && Objects.equals(this.subMerchantName, additionalDataCommon.subMerchantName) + && Objects.equals(this.subMerchantPhoneNumber, additionalDataCommon.subMerchantPhoneNumber) + && Objects.equals(this.subMerchantPostalCode, additionalDataCommon.subMerchantPostalCode) + && Objects.equals(this.subMerchantState, additionalDataCommon.subMerchantState) + && Objects.equals(this.subMerchantStreet, additionalDataCommon.subMerchantStreet) + && Objects.equals(this.subMerchantTaxId, additionalDataCommon.subMerchantTaxId); } @Override public int hashCode() { - return Objects.hash(requestedTestAcquirerResponseCode, requestedTestErrorResponseCode, allowPartialAuth, authorisationType, autoRescue, customRoutingFlag, industryUsage, manualCapture, maxDaysToRescue, networkTxReference, overwriteBrand, subMerchantCity, subMerchantCountry, subMerchantEmail, subMerchantID, subMerchantName, subMerchantPhoneNumber, subMerchantPostalCode, subMerchantState, subMerchantStreet, subMerchantTaxId); + return Objects.hash( + requestedTestAcquirerResponseCode, + requestedTestErrorResponseCode, + allowPartialAuth, + authorisationType, + autoRescue, + customRoutingFlag, + industryUsage, + manualCapture, + maxDaysToRescue, + networkTxReference, + overwriteBrand, + subMerchantCity, + subMerchantCountry, + subMerchantEmail, + subMerchantID, + subMerchantName, + subMerchantPhoneNumber, + subMerchantPostalCode, + subMerchantState, + subMerchantStreet, + subMerchantTaxId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataCommon {\n"); - sb.append(" requestedTestAcquirerResponseCode: ").append(toIndentedString(requestedTestAcquirerResponseCode)).append("\n"); - sb.append(" requestedTestErrorResponseCode: ").append(toIndentedString(requestedTestErrorResponseCode)).append("\n"); + sb.append(" requestedTestAcquirerResponseCode: ") + .append(toIndentedString(requestedTestAcquirerResponseCode)) + .append("\n"); + sb.append(" requestedTestErrorResponseCode: ") + .append(toIndentedString(requestedTestErrorResponseCode)) + .append("\n"); sb.append(" allowPartialAuth: ").append(toIndentedString(allowPartialAuth)).append("\n"); sb.append(" authorisationType: ").append(toIndentedString(authorisationType)).append("\n"); sb.append(" autoRescue: ").append(toIndentedString(autoRescue)).append("\n"); @@ -890,8 +1369,12 @@ public String toString() { sb.append(" subMerchantEmail: ").append(toIndentedString(subMerchantEmail)).append("\n"); sb.append(" subMerchantID: ").append(toIndentedString(subMerchantID)).append("\n"); sb.append(" subMerchantName: ").append(toIndentedString(subMerchantName)).append("\n"); - sb.append(" subMerchantPhoneNumber: ").append(toIndentedString(subMerchantPhoneNumber)).append("\n"); - sb.append(" subMerchantPostalCode: ").append(toIndentedString(subMerchantPostalCode)).append("\n"); + sb.append(" subMerchantPhoneNumber: ") + .append(toIndentedString(subMerchantPhoneNumber)) + .append("\n"); + sb.append(" subMerchantPostalCode: ") + .append(toIndentedString(subMerchantPostalCode)) + .append("\n"); sb.append(" subMerchantState: ").append(toIndentedString(subMerchantState)).append("\n"); sb.append(" subMerchantStreet: ").append(toIndentedString(subMerchantStreet)).append("\n"); sb.append(" subMerchantTaxId: ").append(toIndentedString(subMerchantTaxId)).append("\n"); @@ -900,8 +1383,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -910,21 +1392,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalDataCommon given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataCommon - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataCommon + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalDataCommon */ public static AdditionalDataCommon fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataCommon.class); } -/** - * Convert an instance of AdditionalDataCommon to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalDataCommon to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataLevel23.java b/src/main/java/com/adyen/model/payment/AdditionalDataLevel23.java index 0f1699fd3..2931e0bb5 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataLevel23.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataLevel23.java @@ -2,31 +2,22 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AdditionalDataLevel23 - */ +/** AdditionalDataLevel23 */ @JsonPropertyOrder({ AdditionalDataLevel23.JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE, AdditionalDataLevel23.JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_COUNTRY_CODE, @@ -46,76 +37,106 @@ AdditionalDataLevel23.JSON_PROPERTY_ENHANCED_SCHEME_DATA_SHIP_FROM_POSTAL_CODE, AdditionalDataLevel23.JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT }) - public class AdditionalDataLevel23 { - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE = "enhancedSchemeData.customerReference"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE = + "enhancedSchemeData.customerReference"; private String enhancedSchemeDataCustomerReference; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_COUNTRY_CODE = "enhancedSchemeData.destinationCountryCode"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_COUNTRY_CODE = + "enhancedSchemeData.destinationCountryCode"; private String enhancedSchemeDataDestinationCountryCode; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_POSTAL_CODE = "enhancedSchemeData.destinationPostalCode"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_POSTAL_CODE = + "enhancedSchemeData.destinationPostalCode"; private String enhancedSchemeDataDestinationPostalCode; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_STATE_PROVINCE_CODE = "enhancedSchemeData.destinationStateProvinceCode"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_STATE_PROVINCE_CODE = + "enhancedSchemeData.destinationStateProvinceCode"; private String enhancedSchemeDataDestinationStateProvinceCode; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_DUTY_AMOUNT = "enhancedSchemeData.dutyAmount"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_DUTY_AMOUNT = + "enhancedSchemeData.dutyAmount"; private String enhancedSchemeDataDutyAmount; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_FREIGHT_AMOUNT = "enhancedSchemeData.freightAmount"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_FREIGHT_AMOUNT = + "enhancedSchemeData.freightAmount"; private String enhancedSchemeDataFreightAmount; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_COMMODITY_CODE = "enhancedSchemeData.itemDetailLine[itemNr].commodityCode"; + public static final String + JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_COMMODITY_CODE = + "enhancedSchemeData.itemDetailLine[itemNr].commodityCode"; private String enhancedSchemeDataItemDetailLineItemNrCommodityCode; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DESCRIPTION = "enhancedSchemeData.itemDetailLine[itemNr].description"; + public static final String + JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DESCRIPTION = + "enhancedSchemeData.itemDetailLine[itemNr].description"; private String enhancedSchemeDataItemDetailLineItemNrDescription; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DISCOUNT_AMOUNT = "enhancedSchemeData.itemDetailLine[itemNr].discountAmount"; + public static final String + JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DISCOUNT_AMOUNT = + "enhancedSchemeData.itemDetailLine[itemNr].discountAmount"; private String enhancedSchemeDataItemDetailLineItemNrDiscountAmount; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_PRODUCT_CODE = "enhancedSchemeData.itemDetailLine[itemNr].productCode"; + public static final String + JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_PRODUCT_CODE = + "enhancedSchemeData.itemDetailLine[itemNr].productCode"; private String enhancedSchemeDataItemDetailLineItemNrProductCode; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_QUANTITY = "enhancedSchemeData.itemDetailLine[itemNr].quantity"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_QUANTITY = + "enhancedSchemeData.itemDetailLine[itemNr].quantity"; private String enhancedSchemeDataItemDetailLineItemNrQuantity; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_TOTAL_AMOUNT = "enhancedSchemeData.itemDetailLine[itemNr].totalAmount"; + public static final String + JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_TOTAL_AMOUNT = + "enhancedSchemeData.itemDetailLine[itemNr].totalAmount"; private String enhancedSchemeDataItemDetailLineItemNrTotalAmount; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_UNIT_OF_MEASURE = "enhancedSchemeData.itemDetailLine[itemNr].unitOfMeasure"; + public static final String + JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_UNIT_OF_MEASURE = + "enhancedSchemeData.itemDetailLine[itemNr].unitOfMeasure"; private String enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_UNIT_PRICE = "enhancedSchemeData.itemDetailLine[itemNr].unitPrice"; + public static final String + JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_UNIT_PRICE = + "enhancedSchemeData.itemDetailLine[itemNr].unitPrice"; private String enhancedSchemeDataItemDetailLineItemNrUnitPrice; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ORDER_DATE = "enhancedSchemeData.orderDate"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_ORDER_DATE = + "enhancedSchemeData.orderDate"; private String enhancedSchemeDataOrderDate; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_SHIP_FROM_POSTAL_CODE = "enhancedSchemeData.shipFromPostalCode"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_SHIP_FROM_POSTAL_CODE = + "enhancedSchemeData.shipFromPostalCode"; private String enhancedSchemeDataShipFromPostalCode; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT = "enhancedSchemeData.totalTaxAmount"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT = + "enhancedSchemeData.totalTaxAmount"; private String enhancedSchemeDataTotalTaxAmount; - public AdditionalDataLevel23() { - } + public AdditionalDataLevel23() {} /** - * The reference number to identify the customer and their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The reference number to identify the customer and their order. * Encoding: ASCII * Max length: + * 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataCustomerReference The reference number to identify the customer and their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataCustomerReference The reference number to identify the customer and + * their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or + * be all spaces. * Must not be all zeros. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataCustomerReference(String enhancedSchemeDataCustomerReference) { + public AdditionalDataLevel23 enhancedSchemeDataCustomerReference( + String enhancedSchemeDataCustomerReference) { this.enhancedSchemeDataCustomerReference = enhancedSchemeDataCustomerReference; return this; } /** - * The reference number to identify the customer and their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. - * @return enhancedSchemeDataCustomerReference The reference number to identify the customer and their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The reference number to identify the customer and their order. * Encoding: ASCII * Max length: + * 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * + * @return enhancedSchemeDataCustomerReference The reference number to identify the customer and + * their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or + * be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,9 +145,12 @@ public String getEnhancedSchemeDataCustomerReference() { } /** - * The reference number to identify the customer and their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The reference number to identify the customer and their order. * Encoding: ASCII * Max length: + * 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataCustomerReference The reference number to identify the customer and their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataCustomerReference The reference number to identify the customer and + * their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or + * be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,19 +159,29 @@ public void setEnhancedSchemeDataCustomerReference(String enhancedSchemeDataCust } /** - * The three-letter [ISO 3166-1 alpha-3 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * Encoding: ASCII * Fixed length: 3 characters + * The three-letter [ISO 3166-1 alpha-3 country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * + * Encoding: ASCII * Fixed length: 3 characters * - * @param enhancedSchemeDataDestinationCountryCode The three-letter [ISO 3166-1 alpha-3 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * Encoding: ASCII * Fixed length: 3 characters + * @param enhancedSchemeDataDestinationCountryCode The three-letter [ISO 3166-1 alpha-3 country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * + * Encoding: ASCII * Fixed length: 3 characters * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataDestinationCountryCode(String enhancedSchemeDataDestinationCountryCode) { + public AdditionalDataLevel23 enhancedSchemeDataDestinationCountryCode( + String enhancedSchemeDataDestinationCountryCode) { this.enhancedSchemeDataDestinationCountryCode = enhancedSchemeDataDestinationCountryCode; return this; } /** - * The three-letter [ISO 3166-1 alpha-3 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * Encoding: ASCII * Fixed length: 3 characters - * @return enhancedSchemeDataDestinationCountryCode The three-letter [ISO 3166-1 alpha-3 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * Encoding: ASCII * Fixed length: 3 characters + * The three-letter [ISO 3166-1 alpha-3 country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * + * Encoding: ASCII * Fixed length: 3 characters + * + * @return enhancedSchemeDataDestinationCountryCode The three-letter [ISO 3166-1 alpha-3 country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * + * Encoding: ASCII * Fixed length: 3 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,30 +190,49 @@ public String getEnhancedSchemeDataDestinationCountryCode() { } /** - * The three-letter [ISO 3166-1 alpha-3 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * Encoding: ASCII * Fixed length: 3 characters + * The three-letter [ISO 3166-1 alpha-3 country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * + * Encoding: ASCII * Fixed length: 3 characters * - * @param enhancedSchemeDataDestinationCountryCode The three-letter [ISO 3166-1 alpha-3 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * Encoding: ASCII * Fixed length: 3 characters + * @param enhancedSchemeDataDestinationCountryCode The three-letter [ISO 3166-1 alpha-3 country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * + * Encoding: ASCII * Fixed length: 3 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataDestinationCountryCode(String enhancedSchemeDataDestinationCountryCode) { + public void setEnhancedSchemeDataDestinationCountryCode( + String enhancedSchemeDataDestinationCountryCode) { this.enhancedSchemeDataDestinationCountryCode = enhancedSchemeDataDestinationCountryCode; } /** - * The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. + * The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * + * Must not start with a space. * For the US, it must be in five or nine digits format. For + * example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B + * 1G5. * - * @param enhancedSchemeDataDestinationPostalCode The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. + * @param enhancedSchemeDataDestinationPostalCode The postal code of the destination address. * + * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it + * must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it + * must be in 6 digits format. For example, M4B 1G5. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataDestinationPostalCode(String enhancedSchemeDataDestinationPostalCode) { + public AdditionalDataLevel23 enhancedSchemeDataDestinationPostalCode( + String enhancedSchemeDataDestinationPostalCode) { this.enhancedSchemeDataDestinationPostalCode = enhancedSchemeDataDestinationPostalCode; return this; } /** - * The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. - * @return enhancedSchemeDataDestinationPostalCode The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. + * The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * + * Must not start with a space. * For the US, it must be in five or nine digits format. For + * example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B + * 1G5. + * + * @return enhancedSchemeDataDestinationPostalCode The postal code of the destination address. * + * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it + * must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it + * must be in 6 digits format. For example, M4B 1G5. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,30 +241,46 @@ public String getEnhancedSchemeDataDestinationPostalCode() { } /** - * The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. + * The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * + * Must not start with a space. * For the US, it must be in five or nine digits format. For + * example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B + * 1G5. * - * @param enhancedSchemeDataDestinationPostalCode The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. + * @param enhancedSchemeDataDestinationPostalCode The postal code of the destination address. * + * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it + * must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it + * must be in 6 digits format. For example, M4B 1G5. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataDestinationPostalCode(String enhancedSchemeDataDestinationPostalCode) { + public void setEnhancedSchemeDataDestinationPostalCode( + String enhancedSchemeDataDestinationPostalCode) { this.enhancedSchemeDataDestinationPostalCode = enhancedSchemeDataDestinationPostalCode; } /** - * The state or province code of the destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a space. + * The state or province code of the destination address. * Encoding: ASCII * Max length: 3 + * characters * Must not start with a space. * - * @param enhancedSchemeDataDestinationStateProvinceCode The state or province code of the destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a space. + * @param enhancedSchemeDataDestinationStateProvinceCode The state or province code of the + * destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a + * space. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataDestinationStateProvinceCode(String enhancedSchemeDataDestinationStateProvinceCode) { - this.enhancedSchemeDataDestinationStateProvinceCode = enhancedSchemeDataDestinationStateProvinceCode; + public AdditionalDataLevel23 enhancedSchemeDataDestinationStateProvinceCode( + String enhancedSchemeDataDestinationStateProvinceCode) { + this.enhancedSchemeDataDestinationStateProvinceCode = + enhancedSchemeDataDestinationStateProvinceCode; return this; } /** - * The state or province code of the destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a space. - * @return enhancedSchemeDataDestinationStateProvinceCode The state or province code of the destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a space. + * The state or province code of the destination address. * Encoding: ASCII * Max length: 3 + * characters * Must not start with a space. + * + * @return enhancedSchemeDataDestinationStateProvinceCode The state or province code of the + * destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a + * space. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_STATE_PROVINCE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -220,20 +289,29 @@ public String getEnhancedSchemeDataDestinationStateProvinceCode() { } /** - * The state or province code of the destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a space. + * The state or province code of the destination address. * Encoding: ASCII * Max length: 3 + * characters * Must not start with a space. * - * @param enhancedSchemeDataDestinationStateProvinceCode The state or province code of the destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a space. + * @param enhancedSchemeDataDestinationStateProvinceCode The state or province code of the + * destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a + * space. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_DESTINATION_STATE_PROVINCE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataDestinationStateProvinceCode(String enhancedSchemeDataDestinationStateProvinceCode) { - this.enhancedSchemeDataDestinationStateProvinceCode = enhancedSchemeDataDestinationStateProvinceCode; + public void setEnhancedSchemeDataDestinationStateProvinceCode( + String enhancedSchemeDataDestinationStateProvinceCode) { + this.enhancedSchemeDataDestinationStateProvinceCode = + enhancedSchemeDataDestinationStateProvinceCode; } /** - * The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The duty tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means + * USD 20.00. * Encoding: Numeric * Max length: 12 characters * - * @param enhancedSchemeDataDutyAmount The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * @param enhancedSchemeDataDutyAmount The duty tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 + * means USD 20.00. * Encoding: Numeric * Max length: 12 characters * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ public AdditionalDataLevel23 enhancedSchemeDataDutyAmount(String enhancedSchemeDataDutyAmount) { @@ -242,8 +320,13 @@ public AdditionalDataLevel23 enhancedSchemeDataDutyAmount(String enhancedSchemeD } /** - * The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters - * @return enhancedSchemeDataDutyAmount The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The duty tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means + * USD 20.00. * Encoding: Numeric * Max length: 12 characters + * + * @return enhancedSchemeDataDutyAmount The duty tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 + * means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_DUTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,9 +335,13 @@ public String getEnhancedSchemeDataDutyAmount() { } /** - * The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The duty tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means + * USD 20.00. * Encoding: Numeric * Max length: 12 characters * - * @param enhancedSchemeDataDutyAmount The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * @param enhancedSchemeDataDutyAmount The duty tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 + * means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_DUTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -263,19 +350,29 @@ public void setEnhancedSchemeDataDutyAmount(String enhancedSchemeDataDutyAmount) } /** - * The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The shipping amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means + * USD 20.00. * Encoding: Numeric * Max length: 12 characters * - * @param enhancedSchemeDataFreightAmount The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * @param enhancedSchemeDataFreightAmount The shipping amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 + * means USD 20.00. * Encoding: Numeric * Max length: 12 characters * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataFreightAmount(String enhancedSchemeDataFreightAmount) { + public AdditionalDataLevel23 enhancedSchemeDataFreightAmount( + String enhancedSchemeDataFreightAmount) { this.enhancedSchemeDataFreightAmount = enhancedSchemeDataFreightAmount; return this; } /** - * The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters - * @return enhancedSchemeDataFreightAmount The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The shipping amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means + * USD 20.00. * Encoding: Numeric * Max length: 12 characters + * + * @return enhancedSchemeDataFreightAmount The shipping amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 + * means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_FREIGHT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,9 +381,13 @@ public String getEnhancedSchemeDataFreightAmount() { } /** - * The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The shipping amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means + * USD 20.00. * Encoding: Numeric * Max length: 12 characters * - * @param enhancedSchemeDataFreightAmount The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * @param enhancedSchemeDataFreightAmount The shipping amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 + * means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_FREIGHT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -295,19 +396,44 @@ public void setEnhancedSchemeDataFreightAmount(String enhancedSchemeDataFreightA } /** - * The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The code that identifies the item in a standardized commodity coding scheme. There are + * different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS + * commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS + * commodity codes](https://www.census.gov/naics/) * [NAPCS commodity + * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * + * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in + * a standardized commodity coding scheme. There are different commodity coding schemes: * + * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity + * codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity + * codes](https://www.census.gov/naics/) * [NAPCS commodity + * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * + * Must not start with a space or be all spaces. * Must not be all zeros. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrCommodityCode(String enhancedSchemeDataItemDetailLineItemNrCommodityCode) { - this.enhancedSchemeDataItemDetailLineItemNrCommodityCode = enhancedSchemeDataItemDetailLineItemNrCommodityCode; + public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrCommodityCode( + String enhancedSchemeDataItemDetailLineItemNrCommodityCode) { + this.enhancedSchemeDataItemDetailLineItemNrCommodityCode = + enhancedSchemeDataItemDetailLineItemNrCommodityCode; return this; } /** - * The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. - * @return enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The code that identifies the item in a standardized commodity coding scheme. There are + * different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS + * commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS + * commodity codes](https://www.census.gov/naics/) * [NAPCS commodity + * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * + * Must not start with a space or be all spaces. * Must not be all zeros. + * + * @return enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item + * in a standardized commodity coding scheme. There are different commodity coding schemes: * + * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity + * codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity + * codes](https://www.census.gov/naics/) * [NAPCS commodity + * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * + * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_COMMODITY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -316,30 +442,68 @@ public String getEnhancedSchemeDataItemDetailLineItemNrCommodityCode() { } /** - * The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The code that identifies the item in a standardized commodity coding scheme. There are + * different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS + * commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS + * commodity codes](https://www.census.gov/naics/) * [NAPCS commodity + * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * + * Must not start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in + * a standardized commodity coding scheme. There are different commodity coding schemes: * + * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity + * codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity + * codes](https://www.census.gov/naics/) * [NAPCS commodity + * codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * + * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_COMMODITY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataItemDetailLineItemNrCommodityCode(String enhancedSchemeDataItemDetailLineItemNrCommodityCode) { - this.enhancedSchemeDataItemDetailLineItemNrCommodityCode = enhancedSchemeDataItemDetailLineItemNrCommodityCode; + public void setEnhancedSchemeDataItemDetailLineItemNrCommodityCode( + String enhancedSchemeDataItemDetailLineItemNrCommodityCode) { + this.enhancedSchemeDataItemDetailLineItemNrCommodityCode = + enhancedSchemeDataItemDetailLineItemNrCommodityCode; } /** - * A description of the item, that provides details about the purchase. For Visa transactions with level 3 ESD, the description must not be the same or very similar to your merchant name, or, consist only of common words like \"product\", or \"service\". * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not be all special characters. * Must not be blank. * Must not start with a space or be all spaces. * Must not be all zeros. + * A description of the item, that provides details about the purchase. For Visa transactions with + * level 3 ESD, the description must not be the same or very similar to your merchant name, or, + * consist only of common words like \"product\", or \"service\". * Encoding: + * ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must + * not be all special characters. * Must not be blank. * Must not start with a space or be all + * spaces. * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrDescription A description of the item, that provides details about the purchase. For Visa transactions with level 3 ESD, the description must not be the same or very similar to your merchant name, or, consist only of common words like \"product\", or \"service\". * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not be all special characters. * Must not be blank. * Must not start with a space or be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrDescription A description of the item, that + * provides details about the purchase. For Visa transactions with level 3 ESD, the + * description must not be the same or very similar to your merchant name, or, consist only of + * common words like \"product\", or \"service\". * Encoding: ASCII * Max + * length: 26 characters * Must not be a single character. * Must not be blank. * Must not be + * all special characters. * Must not be blank. * Must not start with a space or be all + * spaces. * Must not be all zeros. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrDescription(String enhancedSchemeDataItemDetailLineItemNrDescription) { - this.enhancedSchemeDataItemDetailLineItemNrDescription = enhancedSchemeDataItemDetailLineItemNrDescription; + public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrDescription( + String enhancedSchemeDataItemDetailLineItemNrDescription) { + this.enhancedSchemeDataItemDetailLineItemNrDescription = + enhancedSchemeDataItemDetailLineItemNrDescription; return this; } /** - * A description of the item, that provides details about the purchase. For Visa transactions with level 3 ESD, the description must not be the same or very similar to your merchant name, or, consist only of common words like \"product\", or \"service\". * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not be all special characters. * Must not be blank. * Must not start with a space or be all spaces. * Must not be all zeros. - * @return enhancedSchemeDataItemDetailLineItemNrDescription A description of the item, that provides details about the purchase. For Visa transactions with level 3 ESD, the description must not be the same or very similar to your merchant name, or, consist only of common words like \"product\", or \"service\". * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not be all special characters. * Must not be blank. * Must not start with a space or be all spaces. * Must not be all zeros. + * A description of the item, that provides details about the purchase. For Visa transactions with + * level 3 ESD, the description must not be the same or very similar to your merchant name, or, + * consist only of common words like \"product\", or \"service\". * Encoding: + * ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must + * not be all special characters. * Must not be blank. * Must not start with a space or be all + * spaces. * Must not be all zeros. + * + * @return enhancedSchemeDataItemDetailLineItemNrDescription A description of the item, that + * provides details about the purchase. For Visa transactions with level 3 ESD, the + * description must not be the same or very similar to your merchant name, or, consist only of + * common words like \"product\", or \"service\". * Encoding: ASCII * Max + * length: 26 characters * Must not be a single character. * Must not be blank. * Must not be + * all special characters. * Must not be blank. * Must not start with a space or be all + * spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -348,30 +512,54 @@ public String getEnhancedSchemeDataItemDetailLineItemNrDescription() { } /** - * A description of the item, that provides details about the purchase. For Visa transactions with level 3 ESD, the description must not be the same or very similar to your merchant name, or, consist only of common words like \"product\", or \"service\". * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not be all special characters. * Must not be blank. * Must not start with a space or be all spaces. * Must not be all zeros. + * A description of the item, that provides details about the purchase. For Visa transactions with + * level 3 ESD, the description must not be the same or very similar to your merchant name, or, + * consist only of common words like \"product\", or \"service\". * Encoding: + * ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must + * not be all special characters. * Must not be blank. * Must not start with a space or be all + * spaces. * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrDescription A description of the item, that provides details about the purchase. For Visa transactions with level 3 ESD, the description must not be the same or very similar to your merchant name, or, consist only of common words like \"product\", or \"service\". * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not be all special characters. * Must not be blank. * Must not start with a space or be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrDescription A description of the item, that + * provides details about the purchase. For Visa transactions with level 3 ESD, the + * description must not be the same or very similar to your merchant name, or, consist only of + * common words like \"product\", or \"service\". * Encoding: ASCII * Max + * length: 26 characters * Must not be a single character. * Must not be blank. * Must not be + * all special characters. * Must not be blank. * Must not start with a space or be all + * spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataItemDetailLineItemNrDescription(String enhancedSchemeDataItemDetailLineItemNrDescription) { - this.enhancedSchemeDataItemDetailLineItemNrDescription = enhancedSchemeDataItemDetailLineItemNrDescription; + public void setEnhancedSchemeDataItemDetailLineItemNrDescription( + String enhancedSchemeDataItemDetailLineItemNrDescription) { + this.enhancedSchemeDataItemDetailLineItemNrDescription = + enhancedSchemeDataItemDetailLineItemNrDescription; } /** - * The discount amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The discount amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means + * USD 20.00. * Encoding: Numeric * Max length: 12 characters * - * @param enhancedSchemeDataItemDetailLineItemNrDiscountAmount The discount amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * @param enhancedSchemeDataItemDetailLineItemNrDiscountAmount The discount amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 + * means USD 20.00. * Encoding: Numeric * Max length: 12 characters * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrDiscountAmount(String enhancedSchemeDataItemDetailLineItemNrDiscountAmount) { - this.enhancedSchemeDataItemDetailLineItemNrDiscountAmount = enhancedSchemeDataItemDetailLineItemNrDiscountAmount; + public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrDiscountAmount( + String enhancedSchemeDataItemDetailLineItemNrDiscountAmount) { + this.enhancedSchemeDataItemDetailLineItemNrDiscountAmount = + enhancedSchemeDataItemDetailLineItemNrDiscountAmount; return this; } /** - * The discount amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters - * @return enhancedSchemeDataItemDetailLineItemNrDiscountAmount The discount amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The discount amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means + * USD 20.00. * Encoding: Numeric * Max length: 12 characters + * + * @return enhancedSchemeDataItemDetailLineItemNrDiscountAmount The discount amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 + * means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DISCOUNT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -380,30 +568,51 @@ public String getEnhancedSchemeDataItemDetailLineItemNrDiscountAmount() { } /** - * The discount amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The discount amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means + * USD 20.00. * Encoding: Numeric * Max length: 12 characters * - * @param enhancedSchemeDataItemDetailLineItemNrDiscountAmount The discount amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * @param enhancedSchemeDataItemDetailLineItemNrDiscountAmount The discount amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 + * means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DISCOUNT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataItemDetailLineItemNrDiscountAmount(String enhancedSchemeDataItemDetailLineItemNrDiscountAmount) { - this.enhancedSchemeDataItemDetailLineItemNrDiscountAmount = enhancedSchemeDataItemDetailLineItemNrDiscountAmount; + public void setEnhancedSchemeDataItemDetailLineItemNrDiscountAmount( + String enhancedSchemeDataItemDetailLineItemNrDiscountAmount) { + this.enhancedSchemeDataItemDetailLineItemNrDiscountAmount = + enhancedSchemeDataItemDetailLineItemNrDiscountAmount; } /** - * The product code. Must be a unique product code associated with the item or service. This can be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The product code. Must be a unique product code associated with the item or service. This can + * be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * + * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all + * zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrProductCode The product code. Must be a unique product code associated with the item or service. This can be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrProductCode The product code. Must be a unique + * product code associated with the item or service. This can be your unique code for the + * item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 + * characters * Must not start with a space or be all spaces. * Must not be all zeros. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrProductCode(String enhancedSchemeDataItemDetailLineItemNrProductCode) { - this.enhancedSchemeDataItemDetailLineItemNrProductCode = enhancedSchemeDataItemDetailLineItemNrProductCode; + public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrProductCode( + String enhancedSchemeDataItemDetailLineItemNrProductCode) { + this.enhancedSchemeDataItemDetailLineItemNrProductCode = + enhancedSchemeDataItemDetailLineItemNrProductCode; return this; } /** - * The product code. Must be a unique product code associated with the item or service. This can be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. - * @return enhancedSchemeDataItemDetailLineItemNrProductCode The product code. Must be a unique product code associated with the item or service. This can be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The product code. Must be a unique product code associated with the item or service. This can + * be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * + * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all + * zeros. + * + * @return enhancedSchemeDataItemDetailLineItemNrProductCode The product code. Must be a unique + * product code associated with the item or service. This can be your unique code for the + * item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 + * characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_PRODUCT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -412,30 +621,47 @@ public String getEnhancedSchemeDataItemDetailLineItemNrProductCode() { } /** - * The product code. Must be a unique product code associated with the item or service. This can be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The product code. Must be a unique product code associated with the item or service. This can + * be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * + * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all + * zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrProductCode The product code. Must be a unique product code associated with the item or service. This can be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrProductCode The product code. Must be a unique + * product code associated with the item or service. This can be your unique code for the + * item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 + * characters * Must not start with a space or be all spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_PRODUCT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataItemDetailLineItemNrProductCode(String enhancedSchemeDataItemDetailLineItemNrProductCode) { - this.enhancedSchemeDataItemDetailLineItemNrProductCode = enhancedSchemeDataItemDetailLineItemNrProductCode; + public void setEnhancedSchemeDataItemDetailLineItemNrProductCode( + String enhancedSchemeDataItemDetailLineItemNrProductCode) { + this.enhancedSchemeDataItemDetailLineItemNrProductCode = + enhancedSchemeDataItemDetailLineItemNrProductCode; } /** - * The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a space or be all spaces. + * The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 + * characters * Must not start with a space or be all spaces. * - * @param enhancedSchemeDataItemDetailLineItemNrQuantity The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a space or be all spaces. + * @param enhancedSchemeDataItemDetailLineItemNrQuantity The number of items. Must be an integer + * greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a + * space or be all spaces. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrQuantity(String enhancedSchemeDataItemDetailLineItemNrQuantity) { - this.enhancedSchemeDataItemDetailLineItemNrQuantity = enhancedSchemeDataItemDetailLineItemNrQuantity; + public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrQuantity( + String enhancedSchemeDataItemDetailLineItemNrQuantity) { + this.enhancedSchemeDataItemDetailLineItemNrQuantity = + enhancedSchemeDataItemDetailLineItemNrQuantity; return this; } /** - * The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a space or be all spaces. - * @return enhancedSchemeDataItemDetailLineItemNrQuantity The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a space or be all spaces. + * The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 + * characters * Must not start with a space or be all spaces. + * + * @return enhancedSchemeDataItemDetailLineItemNrQuantity The number of items. Must be an integer + * greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a + * space or be all spaces. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -444,30 +670,62 @@ public String getEnhancedSchemeDataItemDetailLineItemNrQuantity() { } /** - * The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a space or be all spaces. + * The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 + * characters * Must not start with a space or be all spaces. * - * @param enhancedSchemeDataItemDetailLineItemNrQuantity The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a space or be all spaces. + * @param enhancedSchemeDataItemDetailLineItemNrQuantity The number of items. Must be an integer + * greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a + * space or be all spaces. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataItemDetailLineItemNrQuantity(String enhancedSchemeDataItemDetailLineItemNrQuantity) { - this.enhancedSchemeDataItemDetailLineItemNrQuantity = enhancedSchemeDataItemDetailLineItemNrQuantity; + public void setEnhancedSchemeDataItemDetailLineItemNrQuantity( + String enhancedSchemeDataItemDetailLineItemNrQuantity) { + this.enhancedSchemeDataItemDetailLineItemNrQuantity = + enhancedSchemeDataItemDetailLineItemNrQuantity; } /** - * The total amount for the line item, in [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements for level 2/3 ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The total amount for the line item, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements + * for level 2/3 + * ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) + * to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. + * * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all + * zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrTotalAmount The total amount for the line item, in [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements for level 2/3 ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrTotalAmount The total amount for the line item, in + * [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount + * requirements for level 2/3 + * ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) + * to learn more about how to calculate the line item total. * For example, 2000 means USD + * 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must + * not be all zeros. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrTotalAmount(String enhancedSchemeDataItemDetailLineItemNrTotalAmount) { - this.enhancedSchemeDataItemDetailLineItemNrTotalAmount = enhancedSchemeDataItemDetailLineItemNrTotalAmount; + public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrTotalAmount( + String enhancedSchemeDataItemDetailLineItemNrTotalAmount) { + this.enhancedSchemeDataItemDetailLineItemNrTotalAmount = + enhancedSchemeDataItemDetailLineItemNrTotalAmount; return this; } /** - * The total amount for the line item, in [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements for level 2/3 ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. - * @return enhancedSchemeDataItemDetailLineItemNrTotalAmount The total amount for the line item, in [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements for level 2/3 ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The total amount for the line item, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements + * for level 2/3 + * ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) + * to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. + * * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all + * zeros. + * + * @return enhancedSchemeDataItemDetailLineItemNrTotalAmount The total amount for the line item, + * in [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount + * requirements for level 2/3 + * ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) + * to learn more about how to calculate the line item total. * For example, 2000 means USD + * 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must + * not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_TOTAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -476,30 +734,53 @@ public String getEnhancedSchemeDataItemDetailLineItemNrTotalAmount() { } /** - * The total amount for the line item, in [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements for level 2/3 ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The total amount for the line item, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements + * for level 2/3 + * ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) + * to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. + * * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all + * zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrTotalAmount The total amount for the line item, in [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements for level 2/3 ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrTotalAmount The total amount for the line item, in + * [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount + * requirements for level 2/3 + * ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) + * to learn more about how to calculate the line item total. * For example, 2000 means USD + * 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must + * not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_TOTAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataItemDetailLineItemNrTotalAmount(String enhancedSchemeDataItemDetailLineItemNrTotalAmount) { - this.enhancedSchemeDataItemDetailLineItemNrTotalAmount = enhancedSchemeDataItemDetailLineItemNrTotalAmount; + public void setEnhancedSchemeDataItemDetailLineItemNrTotalAmount( + String enhancedSchemeDataItemDetailLineItemNrTotalAmount) { + this.enhancedSchemeDataItemDetailLineItemNrTotalAmount = + enhancedSchemeDataItemDetailLineItemNrTotalAmount; } /** - * The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not + * start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure The unit of measurement for an item. + * * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all + * spaces. * Must not be all zeros. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure(String enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure) { - this.enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure = enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure; + public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure( + String enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure) { + this.enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure = + enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure; return this; } /** - * The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. - * @return enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not + * start with a space or be all spaces. * Must not be all zeros. + * + * @return enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure The unit of measurement for an + * item. * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all + * spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_UNIT_OF_MEASURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -508,30 +789,46 @@ public String getEnhancedSchemeDataItemDetailLineItemNrUnitOfMeasure() { } /** - * The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not + * start with a space or be all spaces. * Must not be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure The unit of measurement for an item. + * * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all + * spaces. * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_UNIT_OF_MEASURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataItemDetailLineItemNrUnitOfMeasure(String enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure) { - this.enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure = enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure; + public void setEnhancedSchemeDataItemDetailLineItemNrUnitOfMeasure( + String enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure) { + this.enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure = + enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure; } /** - * The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * + * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not + * be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrUnitPrice The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrUnitPrice The unit price in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 + * means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrUnitPrice(String enhancedSchemeDataItemDetailLineItemNrUnitPrice) { - this.enhancedSchemeDataItemDetailLineItemNrUnitPrice = enhancedSchemeDataItemDetailLineItemNrUnitPrice; + public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrUnitPrice( + String enhancedSchemeDataItemDetailLineItemNrUnitPrice) { + this.enhancedSchemeDataItemDetailLineItemNrUnitPrice = + enhancedSchemeDataItemDetailLineItemNrUnitPrice; return this; } /** - * The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. - * @return enhancedSchemeDataItemDetailLineItemNrUnitPrice The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * + * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not + * be all zeros. + * + * @return enhancedSchemeDataItemDetailLineItemNrUnitPrice The unit price in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 + * means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_UNIT_PRICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -540,20 +837,27 @@ public String getEnhancedSchemeDataItemDetailLineItemNrUnitPrice() { } /** - * The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * + * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not + * be all zeros. * - * @param enhancedSchemeDataItemDetailLineItemNrUnitPrice The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * @param enhancedSchemeDataItemDetailLineItemNrUnitPrice The unit price in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 + * means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_UNIT_PRICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnhancedSchemeDataItemDetailLineItemNrUnitPrice(String enhancedSchemeDataItemDetailLineItemNrUnitPrice) { - this.enhancedSchemeDataItemDetailLineItemNrUnitPrice = enhancedSchemeDataItemDetailLineItemNrUnitPrice; + public void setEnhancedSchemeDataItemDetailLineItemNrUnitPrice( + String enhancedSchemeDataItemDetailLineItemNrUnitPrice) { + this.enhancedSchemeDataItemDetailLineItemNrUnitPrice = + enhancedSchemeDataItemDetailLineItemNrUnitPrice; } /** * The order date. * Format: `ddMMyy` * Encoding: ASCII * Max length: 6 characters * - * @param enhancedSchemeDataOrderDate The order date. * Format: `ddMMyy` * Encoding: ASCII * Max length: 6 characters + * @param enhancedSchemeDataOrderDate The order date. * Format: `ddMMyy` * Encoding: + * ASCII * Max length: 6 characters * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ public AdditionalDataLevel23 enhancedSchemeDataOrderDate(String enhancedSchemeDataOrderDate) { @@ -563,7 +867,9 @@ public AdditionalDataLevel23 enhancedSchemeDataOrderDate(String enhancedSchemeDa /** * The order date. * Format: `ddMMyy` * Encoding: ASCII * Max length: 6 characters - * @return enhancedSchemeDataOrderDate The order date. * Format: `ddMMyy` * Encoding: ASCII * Max length: 6 characters + * + * @return enhancedSchemeDataOrderDate The order date. * Format: `ddMMyy` * Encoding: + * ASCII * Max length: 6 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ORDER_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -574,7 +880,8 @@ public String getEnhancedSchemeDataOrderDate() { /** * The order date. * Format: `ddMMyy` * Encoding: ASCII * Max length: 6 characters * - * @param enhancedSchemeDataOrderDate The order date. * Format: `ddMMyy` * Encoding: ASCII * Max length: 6 characters + * @param enhancedSchemeDataOrderDate The order date. * Format: `ddMMyy` * Encoding: + * ASCII * Max length: 6 characters */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ORDER_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -583,19 +890,35 @@ public void setEnhancedSchemeDataOrderDate(String enhancedSchemeDataOrderDate) { } /** - * The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. + * The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: + * 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the + * US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, + * it must be in 6 digits format. For example, M4B 1G5. * - * @param enhancedSchemeDataShipFromPostalCode The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. + * @param enhancedSchemeDataShipFromPostalCode The postal code of the address where the item is + * shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space + * or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits + * format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For + * example, M4B 1G5. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataShipFromPostalCode(String enhancedSchemeDataShipFromPostalCode) { + public AdditionalDataLevel23 enhancedSchemeDataShipFromPostalCode( + String enhancedSchemeDataShipFromPostalCode) { this.enhancedSchemeDataShipFromPostalCode = enhancedSchemeDataShipFromPostalCode; return this; } /** - * The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. - * @return enhancedSchemeDataShipFromPostalCode The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. + * The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: + * 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the + * US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, + * it must be in 6 digits format. For example, M4B 1G5. + * + * @return enhancedSchemeDataShipFromPostalCode The postal code of the address where the item is + * shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space + * or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits + * format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For + * example, M4B 1G5. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_SHIP_FROM_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -604,9 +927,16 @@ public String getEnhancedSchemeDataShipFromPostalCode() { } /** - * The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. + * The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: + * 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the + * US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, + * it must be in 6 digits format. For example, M4B 1G5. * - * @param enhancedSchemeDataShipFromPostalCode The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. + * @param enhancedSchemeDataShipFromPostalCode The postal code of the address where the item is + * shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space + * or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits + * format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For + * example, M4B 1G5. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_SHIP_FROM_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -615,19 +945,37 @@ public void setEnhancedSchemeDataShipFromPostalCode(String enhancedSchemeDataShi } /** - * The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * The amount of state or provincial [tax included in the total transaction + * amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), + * in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, + * 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. * - * @param enhancedSchemeDataTotalTaxAmount The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * @param enhancedSchemeDataTotalTaxAmount The amount of state or provincial [tax included in the + * total transaction + * amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), + * in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For + * example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not + * be all zeros. * @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining */ - public AdditionalDataLevel23 enhancedSchemeDataTotalTaxAmount(String enhancedSchemeDataTotalTaxAmount) { + public AdditionalDataLevel23 enhancedSchemeDataTotalTaxAmount( + String enhancedSchemeDataTotalTaxAmount) { this.enhancedSchemeDataTotalTaxAmount = enhancedSchemeDataTotalTaxAmount; return this; } /** - * The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. - * @return enhancedSchemeDataTotalTaxAmount The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * The amount of state or provincial [tax included in the total transaction + * amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), + * in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, + * 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * + * @return enhancedSchemeDataTotalTaxAmount The amount of state or provincial [tax included in the + * total transaction + * amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), + * in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For + * example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not + * be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -636,9 +984,17 @@ public String getEnhancedSchemeDataTotalTaxAmount() { } /** - * The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * The amount of state or provincial [tax included in the total transaction + * amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), + * in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, + * 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. * - * @param enhancedSchemeDataTotalTaxAmount The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * @param enhancedSchemeDataTotalTaxAmount The amount of state or provincial [tax included in the + * total transaction + * amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), + * in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For + * example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not + * be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -646,9 +1002,7 @@ public void setEnhancedSchemeDataTotalTaxAmount(String enhancedSchemeDataTotalTa this.enhancedSchemeDataTotalTaxAmount = enhancedSchemeDataTotalTaxAmount; } - /** - * Return true if this AdditionalDataLevel23 object is equal to o. - */ + /** Return true if this AdditionalDataLevel23 object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -658,58 +1012,140 @@ public boolean equals(Object o) { return false; } AdditionalDataLevel23 additionalDataLevel23 = (AdditionalDataLevel23) o; - return Objects.equals(this.enhancedSchemeDataCustomerReference, additionalDataLevel23.enhancedSchemeDataCustomerReference) && - Objects.equals(this.enhancedSchemeDataDestinationCountryCode, additionalDataLevel23.enhancedSchemeDataDestinationCountryCode) && - Objects.equals(this.enhancedSchemeDataDestinationPostalCode, additionalDataLevel23.enhancedSchemeDataDestinationPostalCode) && - Objects.equals(this.enhancedSchemeDataDestinationStateProvinceCode, additionalDataLevel23.enhancedSchemeDataDestinationStateProvinceCode) && - Objects.equals(this.enhancedSchemeDataDutyAmount, additionalDataLevel23.enhancedSchemeDataDutyAmount) && - Objects.equals(this.enhancedSchemeDataFreightAmount, additionalDataLevel23.enhancedSchemeDataFreightAmount) && - Objects.equals(this.enhancedSchemeDataItemDetailLineItemNrCommodityCode, additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrCommodityCode) && - Objects.equals(this.enhancedSchemeDataItemDetailLineItemNrDescription, additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrDescription) && - Objects.equals(this.enhancedSchemeDataItemDetailLineItemNrDiscountAmount, additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrDiscountAmount) && - Objects.equals(this.enhancedSchemeDataItemDetailLineItemNrProductCode, additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrProductCode) && - Objects.equals(this.enhancedSchemeDataItemDetailLineItemNrQuantity, additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrQuantity) && - Objects.equals(this.enhancedSchemeDataItemDetailLineItemNrTotalAmount, additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrTotalAmount) && - Objects.equals(this.enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure, additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure) && - Objects.equals(this.enhancedSchemeDataItemDetailLineItemNrUnitPrice, additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrUnitPrice) && - Objects.equals(this.enhancedSchemeDataOrderDate, additionalDataLevel23.enhancedSchemeDataOrderDate) && - Objects.equals(this.enhancedSchemeDataShipFromPostalCode, additionalDataLevel23.enhancedSchemeDataShipFromPostalCode) && - Objects.equals(this.enhancedSchemeDataTotalTaxAmount, additionalDataLevel23.enhancedSchemeDataTotalTaxAmount); + return Objects.equals( + this.enhancedSchemeDataCustomerReference, + additionalDataLevel23.enhancedSchemeDataCustomerReference) + && Objects.equals( + this.enhancedSchemeDataDestinationCountryCode, + additionalDataLevel23.enhancedSchemeDataDestinationCountryCode) + && Objects.equals( + this.enhancedSchemeDataDestinationPostalCode, + additionalDataLevel23.enhancedSchemeDataDestinationPostalCode) + && Objects.equals( + this.enhancedSchemeDataDestinationStateProvinceCode, + additionalDataLevel23.enhancedSchemeDataDestinationStateProvinceCode) + && Objects.equals( + this.enhancedSchemeDataDutyAmount, additionalDataLevel23.enhancedSchemeDataDutyAmount) + && Objects.equals( + this.enhancedSchemeDataFreightAmount, + additionalDataLevel23.enhancedSchemeDataFreightAmount) + && Objects.equals( + this.enhancedSchemeDataItemDetailLineItemNrCommodityCode, + additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrCommodityCode) + && Objects.equals( + this.enhancedSchemeDataItemDetailLineItemNrDescription, + additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrDescription) + && Objects.equals( + this.enhancedSchemeDataItemDetailLineItemNrDiscountAmount, + additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrDiscountAmount) + && Objects.equals( + this.enhancedSchemeDataItemDetailLineItemNrProductCode, + additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrProductCode) + && Objects.equals( + this.enhancedSchemeDataItemDetailLineItemNrQuantity, + additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrQuantity) + && Objects.equals( + this.enhancedSchemeDataItemDetailLineItemNrTotalAmount, + additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrTotalAmount) + && Objects.equals( + this.enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure, + additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure) + && Objects.equals( + this.enhancedSchemeDataItemDetailLineItemNrUnitPrice, + additionalDataLevel23.enhancedSchemeDataItemDetailLineItemNrUnitPrice) + && Objects.equals( + this.enhancedSchemeDataOrderDate, additionalDataLevel23.enhancedSchemeDataOrderDate) + && Objects.equals( + this.enhancedSchemeDataShipFromPostalCode, + additionalDataLevel23.enhancedSchemeDataShipFromPostalCode) + && Objects.equals( + this.enhancedSchemeDataTotalTaxAmount, + additionalDataLevel23.enhancedSchemeDataTotalTaxAmount); } @Override public int hashCode() { - return Objects.hash(enhancedSchemeDataCustomerReference, enhancedSchemeDataDestinationCountryCode, enhancedSchemeDataDestinationPostalCode, enhancedSchemeDataDestinationStateProvinceCode, enhancedSchemeDataDutyAmount, enhancedSchemeDataFreightAmount, enhancedSchemeDataItemDetailLineItemNrCommodityCode, enhancedSchemeDataItemDetailLineItemNrDescription, enhancedSchemeDataItemDetailLineItemNrDiscountAmount, enhancedSchemeDataItemDetailLineItemNrProductCode, enhancedSchemeDataItemDetailLineItemNrQuantity, enhancedSchemeDataItemDetailLineItemNrTotalAmount, enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure, enhancedSchemeDataItemDetailLineItemNrUnitPrice, enhancedSchemeDataOrderDate, enhancedSchemeDataShipFromPostalCode, enhancedSchemeDataTotalTaxAmount); + return Objects.hash( + enhancedSchemeDataCustomerReference, + enhancedSchemeDataDestinationCountryCode, + enhancedSchemeDataDestinationPostalCode, + enhancedSchemeDataDestinationStateProvinceCode, + enhancedSchemeDataDutyAmount, + enhancedSchemeDataFreightAmount, + enhancedSchemeDataItemDetailLineItemNrCommodityCode, + enhancedSchemeDataItemDetailLineItemNrDescription, + enhancedSchemeDataItemDetailLineItemNrDiscountAmount, + enhancedSchemeDataItemDetailLineItemNrProductCode, + enhancedSchemeDataItemDetailLineItemNrQuantity, + enhancedSchemeDataItemDetailLineItemNrTotalAmount, + enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure, + enhancedSchemeDataItemDetailLineItemNrUnitPrice, + enhancedSchemeDataOrderDate, + enhancedSchemeDataShipFromPostalCode, + enhancedSchemeDataTotalTaxAmount); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataLevel23 {\n"); - sb.append(" enhancedSchemeDataCustomerReference: ").append(toIndentedString(enhancedSchemeDataCustomerReference)).append("\n"); - sb.append(" enhancedSchemeDataDestinationCountryCode: ").append(toIndentedString(enhancedSchemeDataDestinationCountryCode)).append("\n"); - sb.append(" enhancedSchemeDataDestinationPostalCode: ").append(toIndentedString(enhancedSchemeDataDestinationPostalCode)).append("\n"); - sb.append(" enhancedSchemeDataDestinationStateProvinceCode: ").append(toIndentedString(enhancedSchemeDataDestinationStateProvinceCode)).append("\n"); - sb.append(" enhancedSchemeDataDutyAmount: ").append(toIndentedString(enhancedSchemeDataDutyAmount)).append("\n"); - sb.append(" enhancedSchemeDataFreightAmount: ").append(toIndentedString(enhancedSchemeDataFreightAmount)).append("\n"); - sb.append(" enhancedSchemeDataItemDetailLineItemNrCommodityCode: ").append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrCommodityCode)).append("\n"); - sb.append(" enhancedSchemeDataItemDetailLineItemNrDescription: ").append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrDescription)).append("\n"); - sb.append(" enhancedSchemeDataItemDetailLineItemNrDiscountAmount: ").append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrDiscountAmount)).append("\n"); - sb.append(" enhancedSchemeDataItemDetailLineItemNrProductCode: ").append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrProductCode)).append("\n"); - sb.append(" enhancedSchemeDataItemDetailLineItemNrQuantity: ").append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrQuantity)).append("\n"); - sb.append(" enhancedSchemeDataItemDetailLineItemNrTotalAmount: ").append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrTotalAmount)).append("\n"); - sb.append(" enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure: ").append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure)).append("\n"); - sb.append(" enhancedSchemeDataItemDetailLineItemNrUnitPrice: ").append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrUnitPrice)).append("\n"); - sb.append(" enhancedSchemeDataOrderDate: ").append(toIndentedString(enhancedSchemeDataOrderDate)).append("\n"); - sb.append(" enhancedSchemeDataShipFromPostalCode: ").append(toIndentedString(enhancedSchemeDataShipFromPostalCode)).append("\n"); - sb.append(" enhancedSchemeDataTotalTaxAmount: ").append(toIndentedString(enhancedSchemeDataTotalTaxAmount)).append("\n"); + sb.append(" enhancedSchemeDataCustomerReference: ") + .append(toIndentedString(enhancedSchemeDataCustomerReference)) + .append("\n"); + sb.append(" enhancedSchemeDataDestinationCountryCode: ") + .append(toIndentedString(enhancedSchemeDataDestinationCountryCode)) + .append("\n"); + sb.append(" enhancedSchemeDataDestinationPostalCode: ") + .append(toIndentedString(enhancedSchemeDataDestinationPostalCode)) + .append("\n"); + sb.append(" enhancedSchemeDataDestinationStateProvinceCode: ") + .append(toIndentedString(enhancedSchemeDataDestinationStateProvinceCode)) + .append("\n"); + sb.append(" enhancedSchemeDataDutyAmount: ") + .append(toIndentedString(enhancedSchemeDataDutyAmount)) + .append("\n"); + sb.append(" enhancedSchemeDataFreightAmount: ") + .append(toIndentedString(enhancedSchemeDataFreightAmount)) + .append("\n"); + sb.append(" enhancedSchemeDataItemDetailLineItemNrCommodityCode: ") + .append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrCommodityCode)) + .append("\n"); + sb.append(" enhancedSchemeDataItemDetailLineItemNrDescription: ") + .append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrDescription)) + .append("\n"); + sb.append(" enhancedSchemeDataItemDetailLineItemNrDiscountAmount: ") + .append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrDiscountAmount)) + .append("\n"); + sb.append(" enhancedSchemeDataItemDetailLineItemNrProductCode: ") + .append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrProductCode)) + .append("\n"); + sb.append(" enhancedSchemeDataItemDetailLineItemNrQuantity: ") + .append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrQuantity)) + .append("\n"); + sb.append(" enhancedSchemeDataItemDetailLineItemNrTotalAmount: ") + .append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrTotalAmount)) + .append("\n"); + sb.append(" enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure: ") + .append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure)) + .append("\n"); + sb.append(" enhancedSchemeDataItemDetailLineItemNrUnitPrice: ") + .append(toIndentedString(enhancedSchemeDataItemDetailLineItemNrUnitPrice)) + .append("\n"); + sb.append(" enhancedSchemeDataOrderDate: ") + .append(toIndentedString(enhancedSchemeDataOrderDate)) + .append("\n"); + sb.append(" enhancedSchemeDataShipFromPostalCode: ") + .append(toIndentedString(enhancedSchemeDataShipFromPostalCode)) + .append("\n"); + sb.append(" enhancedSchemeDataTotalTaxAmount: ") + .append(toIndentedString(enhancedSchemeDataTotalTaxAmount)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -718,21 +1154,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalDataLevel23 given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataLevel23 - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataLevel23 + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalDataLevel23 */ public static AdditionalDataLevel23 fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataLevel23.class); } -/** - * Convert an instance of AdditionalDataLevel23 to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalDataLevel23 to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataLodging.java b/src/main/java/com/adyen/model/payment/AdditionalDataLodging.java index 04c7667c7..c0bac4128 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataLodging.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataLodging.java @@ -2,31 +2,22 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AdditionalDataLodging - */ +/** AdditionalDataLodging */ @JsonPropertyOrder({ AdditionalDataLodging.JSON_PROPERTY_LODGING_SPECIAL_PROGRAM_CODE, AdditionalDataLodging.JSON_PROPERTY_LODGING_CHECK_IN_DATE, @@ -46,9 +37,9 @@ AdditionalDataLodging.JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION, AdditionalDataLodging.JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET }) - public class AdditionalDataLodging { - public static final String JSON_PROPERTY_LODGING_SPECIAL_PROGRAM_CODE = "lodging.SpecialProgramCode"; + public static final String JSON_PROPERTY_LODGING_SPECIAL_PROGRAM_CODE = + "lodging.SpecialProgramCode"; private String lodgingSpecialProgramCode; public static final String JSON_PROPERTY_LODGING_CHECK_IN_DATE = "lodging.checkInDate"; @@ -57,19 +48,23 @@ public class AdditionalDataLodging { public static final String JSON_PROPERTY_LODGING_CHECK_OUT_DATE = "lodging.checkOutDate"; private String lodgingCheckOutDate; - public static final String JSON_PROPERTY_LODGING_CUSTOMER_SERVICE_TOLL_FREE_NUMBER = "lodging.customerServiceTollFreeNumber"; + public static final String JSON_PROPERTY_LODGING_CUSTOMER_SERVICE_TOLL_FREE_NUMBER = + "lodging.customerServiceTollFreeNumber"; private String lodgingCustomerServiceTollFreeNumber; - public static final String JSON_PROPERTY_LODGING_FIRE_SAFETY_ACT_INDICATOR = "lodging.fireSafetyActIndicator"; + public static final String JSON_PROPERTY_LODGING_FIRE_SAFETY_ACT_INDICATOR = + "lodging.fireSafetyActIndicator"; private String lodgingFireSafetyActIndicator; - public static final String JSON_PROPERTY_LODGING_FOLIO_CASH_ADVANCES = "lodging.folioCashAdvances"; + public static final String JSON_PROPERTY_LODGING_FOLIO_CASH_ADVANCES = + "lodging.folioCashAdvances"; private String lodgingFolioCashAdvances; public static final String JSON_PROPERTY_LODGING_FOLIO_NUMBER = "lodging.folioNumber"; private String lodgingFolioNumber; - public static final String JSON_PROPERTY_LODGING_FOOD_BEVERAGE_CHARGES = "lodging.foodBeverageCharges"; + public static final String JSON_PROPERTY_LODGING_FOOD_BEVERAGE_CHARGES = + "lodging.foodBeverageCharges"; private String lodgingFoodBeverageCharges; public static final String JSON_PROPERTY_LODGING_NO_SHOW_INDICATOR = "lodging.noShowIndicator"; @@ -78,10 +73,12 @@ public class AdditionalDataLodging { public static final String JSON_PROPERTY_LODGING_PREPAID_EXPENSES = "lodging.prepaidExpenses"; private String lodgingPrepaidExpenses; - public static final String JSON_PROPERTY_LODGING_PROPERTY_PHONE_NUMBER = "lodging.propertyPhoneNumber"; + public static final String JSON_PROPERTY_LODGING_PROPERTY_PHONE_NUMBER = + "lodging.propertyPhoneNumber"; private String lodgingPropertyPhoneNumber; - public static final String JSON_PROPERTY_LODGING_ROOM1_NUMBER_OF_NIGHTS = "lodging.room1.numberOfNights"; + public static final String JSON_PROPERTY_LODGING_ROOM1_NUMBER_OF_NIGHTS = + "lodging.room1.numberOfNights"; private String lodgingRoom1NumberOfNights; public static final String JSON_PROPERTY_LODGING_ROOM1_RATE = "lodging.room1.rate"; @@ -93,19 +90,22 @@ public class AdditionalDataLodging { public static final String JSON_PROPERTY_LODGING_TOTAL_TAX = "lodging.totalTax"; private String lodgingTotalTax; - public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION = "travelEntertainmentAuthData.duration"; + public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION = + "travelEntertainmentAuthData.duration"; private String travelEntertainmentAuthDataDuration; - public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET = "travelEntertainmentAuthData.market"; + public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET = + "travelEntertainmentAuthData.market"; private String travelEntertainmentAuthDataMarket; - public AdditionalDataLodging() { - } + public AdditionalDataLodging() {} /** - * A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit + * A code that corresponds to the category of lodging charges for the payment. Possible values: * + * 1: Lodging * 2: No show reservation * 3: Advanced deposit * - * @param lodgingSpecialProgramCode A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit + * @param lodgingSpecialProgramCode A code that corresponds to the category of lodging charges for + * the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingSpecialProgramCode(String lodgingSpecialProgramCode) { @@ -114,8 +114,12 @@ public AdditionalDataLodging lodgingSpecialProgramCode(String lodgingSpecialProg } /** - * A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit - * @return lodgingSpecialProgramCode A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit + * A code that corresponds to the category of lodging charges for the payment. Possible values: * + * 1: Lodging * 2: No show reservation * 3: Advanced deposit + * + * @return lodgingSpecialProgramCode A code that corresponds to the category of lodging charges + * for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced + * deposit */ @JsonProperty(JSON_PROPERTY_LODGING_SPECIAL_PROGRAM_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,9 +128,11 @@ public String getLodgingSpecialProgramCode() { } /** - * A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit + * A code that corresponds to the category of lodging charges for the payment. Possible values: * + * 1: Lodging * 2: No show reservation * 3: Advanced deposit * - * @param lodgingSpecialProgramCode A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit + * @param lodgingSpecialProgramCode A code that corresponds to the category of lodging charges for + * the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit */ @JsonProperty(JSON_PROPERTY_LODGING_SPECIAL_PROGRAM_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,7 +143,8 @@ public void setLodgingSpecialProgramCode(String lodgingSpecialProgramCode) { /** * The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. * - * @param lodgingCheckInDate The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. + * @param lodgingCheckInDate The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 + * April 22, **20230422**. * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingCheckInDate(String lodgingCheckInDate) { @@ -147,7 +154,9 @@ public AdditionalDataLodging lodgingCheckInDate(String lodgingCheckInDate) { /** * The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. - * @return lodgingCheckInDate The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. + * + * @return lodgingCheckInDate The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 + * April 22, **20230422**. */ @JsonProperty(JSON_PROPERTY_LODGING_CHECK_IN_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,7 +167,8 @@ public String getLodgingCheckInDate() { /** * The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. * - * @param lodgingCheckInDate The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. + * @param lodgingCheckInDate The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 + * April 22, **20230422**. */ @JsonProperty(JSON_PROPERTY_LODGING_CHECK_IN_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,7 +179,8 @@ public void setLodgingCheckInDate(String lodgingCheckInDate) { /** * The departure date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. * - * @param lodgingCheckOutDate The departure date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. + * @param lodgingCheckOutDate The departure date. * Date format: **yyyyMmDd**. For example, for + * 2023 April 22, **20230422**. * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingCheckOutDate(String lodgingCheckOutDate) { @@ -179,7 +190,9 @@ public AdditionalDataLodging lodgingCheckOutDate(String lodgingCheckOutDate) { /** * The departure date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. - * @return lodgingCheckOutDate The departure date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. + * + * @return lodgingCheckOutDate The departure date. * Date format: **yyyyMmDd**. For example, for + * 2023 April 22, **20230422**. */ @JsonProperty(JSON_PROPERTY_LODGING_CHECK_OUT_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,7 +203,8 @@ public String getLodgingCheckOutDate() { /** * The departure date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. * - * @param lodgingCheckOutDate The departure date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. + * @param lodgingCheckOutDate The departure date. * Date format: **yyyyMmDd**. For example, for + * 2023 April 22, **20230422**. */ @JsonProperty(JSON_PROPERTY_LODGING_CHECK_OUT_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -199,19 +213,31 @@ public void setLodgingCheckOutDate(String lodgingCheckOutDate) { } /** - * The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. + * The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * + * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not + * contain any special characters such as + or - * Must not be all zeros. * - * @param lodgingCustomerServiceTollFreeNumber The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. + * @param lodgingCustomerServiceTollFreeNumber The toll-free phone number for the lodging. * + * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters + * in length * Must not start with a space * Must not contain any special characters such as + + * or - * Must not be all zeros. * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ - public AdditionalDataLodging lodgingCustomerServiceTollFreeNumber(String lodgingCustomerServiceTollFreeNumber) { + public AdditionalDataLodging lodgingCustomerServiceTollFreeNumber( + String lodgingCustomerServiceTollFreeNumber) { this.lodgingCustomerServiceTollFreeNumber = lodgingCustomerServiceTollFreeNumber; return this; } /** - * The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. - * @return lodgingCustomerServiceTollFreeNumber The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. + * The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * + * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not + * contain any special characters such as + or - * Must not be all zeros. + * + * @return lodgingCustomerServiceTollFreeNumber The toll-free phone number for the lodging. * + * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters + * in length * Must not start with a space * Must not contain any special characters such as + + * or - * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_LODGING_CUSTOMER_SERVICE_TOLL_FREE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -220,9 +246,14 @@ public String getLodgingCustomerServiceTollFreeNumber() { } /** - * The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. + * The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * + * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not + * contain any special characters such as + or - * Must not be all zeros. * - * @param lodgingCustomerServiceTollFreeNumber The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. + * @param lodgingCustomerServiceTollFreeNumber The toll-free phone number for the lodging. * + * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters + * in length * Must not start with a space * Must not contain any special characters such as + + * or - * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_LODGING_CUSTOMER_SERVICE_TOLL_FREE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -231,9 +262,12 @@ public void setLodgingCustomerServiceTollFreeNumber(String lodgingCustomerServic } /** - * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * Max length: 1 character + * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be + * 'Y' or 'N'. * Format: alphabetic * Max length: 1 character * - * @param lodgingFireSafetyActIndicator Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * Max length: 1 character + * @param lodgingFireSafetyActIndicator Identifies that the facility complies with the Hotel and + * Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * + * Max length: 1 character * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingFireSafetyActIndicator(String lodgingFireSafetyActIndicator) { @@ -242,8 +276,12 @@ public AdditionalDataLodging lodgingFireSafetyActIndicator(String lodgingFireSaf } /** - * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * Max length: 1 character - * @return lodgingFireSafetyActIndicator Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * Max length: 1 character + * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be + * 'Y' or 'N'. * Format: alphabetic * Max length: 1 character + * + * @return lodgingFireSafetyActIndicator Identifies that the facility complies with the Hotel and + * Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * + * Max length: 1 character */ @JsonProperty(JSON_PROPERTY_LODGING_FIRE_SAFETY_ACT_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,9 +290,12 @@ public String getLodgingFireSafetyActIndicator() { } /** - * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * Max length: 1 character + * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be + * 'Y' or 'N'. * Format: alphabetic * Max length: 1 character * - * @param lodgingFireSafetyActIndicator Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * Max length: 1 character + * @param lodgingFireSafetyActIndicator Identifies that the facility complies with the Hotel and + * Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * + * Max length: 1 character */ @JsonProperty(JSON_PROPERTY_LODGING_FIRE_SAFETY_ACT_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -263,9 +304,13 @@ public void setLodgingFireSafetyActIndicator(String lodgingFireSafetyActIndicato } /** - * The folio cash advances, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters + * The folio cash advances, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max + * length: 12 characters * - * @param lodgingFolioCashAdvances The folio cash advances, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters + * @param lodgingFolioCashAdvances The folio cash advances, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * + * Max length: 12 characters * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingFolioCashAdvances(String lodgingFolioCashAdvances) { @@ -274,8 +319,13 @@ public AdditionalDataLodging lodgingFolioCashAdvances(String lodgingFolioCashAdv } /** - * The folio cash advances, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters - * @return lodgingFolioCashAdvances The folio cash advances, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters + * The folio cash advances, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max + * length: 12 characters + * + * @return lodgingFolioCashAdvances The folio cash advances, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * + * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_LODGING_FOLIO_CASH_ADVANCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,9 +334,13 @@ public String getLodgingFolioCashAdvances() { } /** - * The folio cash advances, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters + * The folio cash advances, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max + * length: 12 characters * - * @param lodgingFolioCashAdvances The folio cash advances, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters + * @param lodgingFolioCashAdvances The folio cash advances, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * + * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_LODGING_FOLIO_CASH_ADVANCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -295,9 +349,13 @@ public void setLodgingFolioCashAdvances(String lodgingFolioCashAdvances) { } /** - * The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters * Must not start with a space * Must not contain any special characters * Must not be all zeros. + * The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 + * characters * Must not start with a space * Must not contain any special characters * Must not + * be all zeros. * - * @param lodgingFolioNumber The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters * Must not start with a space * Must not contain any special characters * Must not be all zeros. + * @param lodgingFolioNumber The card acceptor’s internal invoice or billing ID reference number. + * * Max length: 25 characters * Must not start with a space * Must not contain any special + * characters * Must not be all zeros. * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingFolioNumber(String lodgingFolioNumber) { @@ -306,8 +364,13 @@ public AdditionalDataLodging lodgingFolioNumber(String lodgingFolioNumber) { } /** - * The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters * Must not start with a space * Must not contain any special characters * Must not be all zeros. - * @return lodgingFolioNumber The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters * Must not start with a space * Must not contain any special characters * Must not be all zeros. + * The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 + * characters * Must not start with a space * Must not contain any special characters * Must not + * be all zeros. + * + * @return lodgingFolioNumber The card acceptor’s internal invoice or billing ID reference number. + * * Max length: 25 characters * Must not start with a space * Must not contain any special + * characters * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_LODGING_FOLIO_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -316,9 +379,13 @@ public String getLodgingFolioNumber() { } /** - * The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters * Must not start with a space * Must not contain any special characters * Must not be all zeros. + * The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 + * characters * Must not start with a space * Must not contain any special characters * Must not + * be all zeros. * - * @param lodgingFolioNumber The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters * Must not start with a space * Must not contain any special characters * Must not be all zeros. + * @param lodgingFolioNumber The card acceptor’s internal invoice or billing ID reference number. + * * Max length: 25 characters * Must not start with a space * Must not contain any special + * characters * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_LODGING_FOLIO_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -327,9 +394,13 @@ public void setLodgingFolioNumber(String lodgingFolioNumber) { } /** - * Any charges for food and beverages associated with the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters + * Any charges for food and beverages associated with the booking, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max + * length: 12 characters * - * @param lodgingFoodBeverageCharges Any charges for food and beverages associated with the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters + * @param lodgingFoodBeverageCharges Any charges for food and beverages associated with the + * booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * + * Format: numeric * Max length: 12 characters * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingFoodBeverageCharges(String lodgingFoodBeverageCharges) { @@ -338,8 +409,13 @@ public AdditionalDataLodging lodgingFoodBeverageCharges(String lodgingFoodBevera } /** - * Any charges for food and beverages associated with the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters - * @return lodgingFoodBeverageCharges Any charges for food and beverages associated with the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters + * Any charges for food and beverages associated with the booking, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max + * length: 12 characters + * + * @return lodgingFoodBeverageCharges Any charges for food and beverages associated with the + * booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * + * Format: numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_LODGING_FOOD_BEVERAGE_CHARGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -348,9 +424,13 @@ public String getLodgingFoodBeverageCharges() { } /** - * Any charges for food and beverages associated with the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters + * Any charges for food and beverages associated with the booking, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max + * length: 12 characters * - * @param lodgingFoodBeverageCharges Any charges for food and beverages associated with the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters + * @param lodgingFoodBeverageCharges Any charges for food and beverages associated with the + * booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * + * Format: numeric * Max length: 12 characters */ @JsonProperty(JSON_PROPERTY_LODGING_FOOD_BEVERAGE_CHARGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -359,9 +439,11 @@ public void setLodgingFoodBeverageCharges(String lodgingFoodBeverageCharges) { } /** - * Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in + * Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the + * customer didn't check in * **N**: the customer checked in * - * @param lodgingNoShowIndicator Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in + * @param lodgingNoShowIndicator Indicates if the customer didn't check in for their booking. + * Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingNoShowIndicator(String lodgingNoShowIndicator) { @@ -370,8 +452,11 @@ public AdditionalDataLodging lodgingNoShowIndicator(String lodgingNoShowIndicato } /** - * Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in - * @return lodgingNoShowIndicator Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in + * Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the + * customer didn't check in * **N**: the customer checked in + * + * @return lodgingNoShowIndicator Indicates if the customer didn't check in for their booking. + * Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in */ @JsonProperty(JSON_PROPERTY_LODGING_NO_SHOW_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -380,9 +465,11 @@ public String getLodgingNoShowIndicator() { } /** - * Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in + * Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the + * customer didn't check in * **N**: the customer checked in * - * @param lodgingNoShowIndicator Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in + * @param lodgingNoShowIndicator Indicates if the customer didn't check in for their booking. + * Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in */ @JsonProperty(JSON_PROPERTY_LODGING_NO_SHOW_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -393,7 +480,8 @@ public void setLodgingNoShowIndicator(String lodgingNoShowIndicator) { /** * The prepaid expenses for the booking. * Format: numeric * Max length: 12 characters * - * @param lodgingPrepaidExpenses The prepaid expenses for the booking. * Format: numeric * Max length: 12 characters + * @param lodgingPrepaidExpenses The prepaid expenses for the booking. * Format: numeric * Max + * length: 12 characters * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingPrepaidExpenses(String lodgingPrepaidExpenses) { @@ -403,7 +491,9 @@ public AdditionalDataLodging lodgingPrepaidExpenses(String lodgingPrepaidExpense /** * The prepaid expenses for the booking. * Format: numeric * Max length: 12 characters - * @return lodgingPrepaidExpenses The prepaid expenses for the booking. * Format: numeric * Max length: 12 characters + * + * @return lodgingPrepaidExpenses The prepaid expenses for the booking. * Format: numeric * Max + * length: 12 characters */ @JsonProperty(JSON_PROPERTY_LODGING_PREPAID_EXPENSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -414,7 +504,8 @@ public String getLodgingPrepaidExpenses() { /** * The prepaid expenses for the booking. * Format: numeric * Max length: 12 characters * - * @param lodgingPrepaidExpenses The prepaid expenses for the booking. * Format: numeric * Max length: 12 characters + * @param lodgingPrepaidExpenses The prepaid expenses for the booking. * Format: numeric * Max + * length: 12 characters */ @JsonProperty(JSON_PROPERTY_LODGING_PREPAID_EXPENSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -423,9 +514,15 @@ public void setLodgingPrepaidExpenses(String lodgingPrepaidExpenses) { } /** - * The lodging property location's phone number. * Format: numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. + * The lodging property location's phone number. * Format: numeric * Min length: 10 characters + * * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not + * start with a space * Must not contain any special characters such as + or - * Must not be all + * zeros. * - * @param lodgingPropertyPhoneNumber The lodging property location's phone number. * Format: numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. + * @param lodgingPropertyPhoneNumber The lodging property location's phone number. * Format: + * numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers + * must be 10 characters in length * Must not start with a space * Must not contain any + * special characters such as + or - * Must not be all zeros. * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingPropertyPhoneNumber(String lodgingPropertyPhoneNumber) { @@ -434,8 +531,15 @@ public AdditionalDataLodging lodgingPropertyPhoneNumber(String lodgingPropertyPh } /** - * The lodging property location's phone number. * Format: numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. - * @return lodgingPropertyPhoneNumber The lodging property location's phone number. * Format: numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. + * The lodging property location's phone number. * Format: numeric * Min length: 10 characters + * * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not + * start with a space * Must not contain any special characters such as + or - * Must not be all + * zeros. + * + * @return lodgingPropertyPhoneNumber The lodging property location's phone number. * Format: + * numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers + * must be 10 characters in length * Must not start with a space * Must not contain any + * special characters such as + or - * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_LODGING_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -444,9 +548,15 @@ public String getLodgingPropertyPhoneNumber() { } /** - * The lodging property location's phone number. * Format: numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. + * The lodging property location's phone number. * Format: numeric * Min length: 10 characters + * * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not + * start with a space * Must not contain any special characters such as + or - * Must not be all + * zeros. * - * @param lodgingPropertyPhoneNumber The lodging property location's phone number. * Format: numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. + * @param lodgingPropertyPhoneNumber The lodging property location's phone number. * Format: + * numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers + * must be 10 characters in length * Must not start with a space * Must not contain any + * special characters such as + or - * Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_LODGING_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -455,9 +565,11 @@ public void setLodgingPropertyPhoneNumber(String lodgingPropertyPhoneNumber) { } /** - * The total number of nights the room is booked for. * Format: numeric * Must be a number between 0 and 99 * Max length: 4 characters + * The total number of nights the room is booked for. * Format: numeric * Must be a number between + * 0 and 99 * Max length: 4 characters * - * @param lodgingRoom1NumberOfNights The total number of nights the room is booked for. * Format: numeric * Must be a number between 0 and 99 * Max length: 4 characters + * @param lodgingRoom1NumberOfNights The total number of nights the room is booked for. * Format: + * numeric * Must be a number between 0 and 99 * Max length: 4 characters * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingRoom1NumberOfNights(String lodgingRoom1NumberOfNights) { @@ -466,8 +578,11 @@ public AdditionalDataLodging lodgingRoom1NumberOfNights(String lodgingRoom1Numbe } /** - * The total number of nights the room is booked for. * Format: numeric * Must be a number between 0 and 99 * Max length: 4 characters - * @return lodgingRoom1NumberOfNights The total number of nights the room is booked for. * Format: numeric * Must be a number between 0 and 99 * Max length: 4 characters + * The total number of nights the room is booked for. * Format: numeric * Must be a number between + * 0 and 99 * Max length: 4 characters + * + * @return lodgingRoom1NumberOfNights The total number of nights the room is booked for. * Format: + * numeric * Must be a number between 0 and 99 * Max length: 4 characters */ @JsonProperty(JSON_PROPERTY_LODGING_ROOM1_NUMBER_OF_NIGHTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -476,9 +591,11 @@ public String getLodgingRoom1NumberOfNights() { } /** - * The total number of nights the room is booked for. * Format: numeric * Must be a number between 0 and 99 * Max length: 4 characters + * The total number of nights the room is booked for. * Format: numeric * Must be a number between + * 0 and 99 * Max length: 4 characters * - * @param lodgingRoom1NumberOfNights The total number of nights the room is booked for. * Format: numeric * Must be a number between 0 and 99 * Max length: 4 characters + * @param lodgingRoom1NumberOfNights The total number of nights the room is booked for. * Format: + * numeric * Must be a number between 0 and 99 * Max length: 4 characters */ @JsonProperty(JSON_PROPERTY_LODGING_ROOM1_NUMBER_OF_NIGHTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -487,9 +604,13 @@ public void setLodgingRoom1NumberOfNights(String lodgingRoom1NumberOfNights) { } /** - * The rate for the room, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * The rate for the room, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max + * length: 12 characters * Must not be a negative number * - * @param lodgingRoom1Rate The rate for the room, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * @param lodgingRoom1Rate The rate for the room, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * + * Max length: 12 characters * Must not be a negative number * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingRoom1Rate(String lodgingRoom1Rate) { @@ -498,8 +619,13 @@ public AdditionalDataLodging lodgingRoom1Rate(String lodgingRoom1Rate) { } /** - * The rate for the room, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number - * @return lodgingRoom1Rate The rate for the room, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * The rate for the room, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max + * length: 12 characters * Must not be a negative number + * + * @return lodgingRoom1Rate The rate for the room, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * + * Max length: 12 characters * Must not be a negative number */ @JsonProperty(JSON_PROPERTY_LODGING_ROOM1_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -508,9 +634,13 @@ public String getLodgingRoom1Rate() { } /** - * The rate for the room, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * The rate for the room, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max + * length: 12 characters * Must not be a negative number * - * @param lodgingRoom1Rate The rate for the room, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * @param lodgingRoom1Rate The rate for the room, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * + * Max length: 12 characters * Must not be a negative number */ @JsonProperty(JSON_PROPERTY_LODGING_ROOM1_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -519,9 +649,13 @@ public void setLodgingRoom1Rate(String lodgingRoom1Rate) { } /** - * The total room tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * The total room tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max + * length: 12 characters * Must not be a negative number * - * @param lodgingTotalRoomTax The total room tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * @param lodgingTotalRoomTax The total room tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * + * Max length: 12 characters * Must not be a negative number * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingTotalRoomTax(String lodgingTotalRoomTax) { @@ -530,8 +664,13 @@ public AdditionalDataLodging lodgingTotalRoomTax(String lodgingTotalRoomTax) { } /** - * The total room tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number - * @return lodgingTotalRoomTax The total room tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * The total room tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max + * length: 12 characters * Must not be a negative number + * + * @return lodgingTotalRoomTax The total room tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * + * Max length: 12 characters * Must not be a negative number */ @JsonProperty(JSON_PROPERTY_LODGING_TOTAL_ROOM_TAX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -540,9 +679,13 @@ public String getLodgingTotalRoomTax() { } /** - * The total room tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * The total room tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max + * length: 12 characters * Must not be a negative number * - * @param lodgingTotalRoomTax The total room tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * @param lodgingTotalRoomTax The total room tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * + * Max length: 12 characters * Must not be a negative number */ @JsonProperty(JSON_PROPERTY_LODGING_TOTAL_ROOM_TAX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -551,9 +694,13 @@ public void setLodgingTotalRoomTax(String lodgingTotalRoomTax) { } /** - * The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * The total tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max + * length: 12 characters * Must not be a negative number * - * @param lodgingTotalTax The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * @param lodgingTotalTax The total tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * + * Max length: 12 characters * Must not be a negative number * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ public AdditionalDataLodging lodgingTotalTax(String lodgingTotalTax) { @@ -562,8 +709,13 @@ public AdditionalDataLodging lodgingTotalTax(String lodgingTotalTax) { } /** - * The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number - * @return lodgingTotalTax The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * The total tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max + * length: 12 characters * Must not be a negative number + * + * @return lodgingTotalTax The total tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * + * Max length: 12 characters * Must not be a negative number */ @JsonProperty(JSON_PROPERTY_LODGING_TOTAL_TAX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -572,9 +724,13 @@ public String getLodgingTotalTax() { } /** - * The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * The total tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max + * length: 12 characters * Must not be a negative number * - * @param lodgingTotalTax The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number + * @param lodgingTotalTax The total tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * + * Max length: 12 characters * Must not be a negative number */ @JsonProperty(JSON_PROPERTY_LODGING_TOTAL_TAX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -583,19 +739,25 @@ public void setLodgingTotalTax(String lodgingTotalTax) { } /** - * The number of nights. This should be included in the auth message. * Format: numeric * Max length: 4 characters + * The number of nights. This should be included in the auth message. * Format: numeric * Max + * length: 4 characters * - * @param travelEntertainmentAuthDataDuration The number of nights. This should be included in the auth message. * Format: numeric * Max length: 4 characters + * @param travelEntertainmentAuthDataDuration The number of nights. This should be included in the + * auth message. * Format: numeric * Max length: 4 characters * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ - public AdditionalDataLodging travelEntertainmentAuthDataDuration(String travelEntertainmentAuthDataDuration) { + public AdditionalDataLodging travelEntertainmentAuthDataDuration( + String travelEntertainmentAuthDataDuration) { this.travelEntertainmentAuthDataDuration = travelEntertainmentAuthDataDuration; return this; } /** - * The number of nights. This should be included in the auth message. * Format: numeric * Max length: 4 characters - * @return travelEntertainmentAuthDataDuration The number of nights. This should be included in the auth message. * Format: numeric * Max length: 4 characters + * The number of nights. This should be included in the auth message. * Format: numeric * Max + * length: 4 characters + * + * @return travelEntertainmentAuthDataDuration The number of nights. This should be included in + * the auth message. * Format: numeric * Max length: 4 characters */ @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -604,9 +766,11 @@ public String getTravelEntertainmentAuthDataDuration() { } /** - * The number of nights. This should be included in the auth message. * Format: numeric * Max length: 4 characters + * The number of nights. This should be included in the auth message. * Format: numeric * Max + * length: 4 characters * - * @param travelEntertainmentAuthDataDuration The number of nights. This should be included in the auth message. * Format: numeric * Max length: 4 characters + * @param travelEntertainmentAuthDataDuration The number of nights. This should be included in the + * auth message. * Format: numeric * Max length: 4 characters */ @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -615,19 +779,27 @@ public void setTravelEntertainmentAuthDataDuration(String travelEntertainmentAut } /** - * Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This should be included in the auth message. * Format: alphanumeric * Max length: 1 character + * Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This + * should be included in the auth message. * Format: alphanumeric * Max length: 1 character * - * @param travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This should be included in the auth message. * Format: alphanumeric * Max length: 1 character + * @param travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be + * submitted. Must be 'H' for Hotel. This should be included in the auth message. * + * Format: alphanumeric * Max length: 1 character * @return the current {@code AdditionalDataLodging} instance, allowing for method chaining */ - public AdditionalDataLodging travelEntertainmentAuthDataMarket(String travelEntertainmentAuthDataMarket) { + public AdditionalDataLodging travelEntertainmentAuthDataMarket( + String travelEntertainmentAuthDataMarket) { this.travelEntertainmentAuthDataMarket = travelEntertainmentAuthDataMarket; return this; } /** - * Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This should be included in the auth message. * Format: alphanumeric * Max length: 1 character - * @return travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This should be included in the auth message. * Format: alphanumeric * Max length: 1 character + * Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This + * should be included in the auth message. * Format: alphanumeric * Max length: 1 character + * + * @return travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be + * submitted. Must be 'H' for Hotel. This should be included in the auth message. * + * Format: alphanumeric * Max length: 1 character */ @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -636,9 +808,12 @@ public String getTravelEntertainmentAuthDataMarket() { } /** - * Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This should be included in the auth message. * Format: alphanumeric * Max length: 1 character + * Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This + * should be included in the auth message. * Format: alphanumeric * Max length: 1 character * - * @param travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This should be included in the auth message. * Format: alphanumeric * Max length: 1 character + * @param travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be + * submitted. Must be 'H' for Hotel. This should be included in the auth message. * + * Format: alphanumeric * Max length: 1 character */ @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -646,9 +821,7 @@ public void setTravelEntertainmentAuthDataMarket(String travelEntertainmentAuthD this.travelEntertainmentAuthDataMarket = travelEntertainmentAuthDataMarket; } - /** - * Return true if this AdditionalDataLodging object is equal to o. - */ + /** Return true if this AdditionalDataLodging object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -658,58 +831,112 @@ public boolean equals(Object o) { return false; } AdditionalDataLodging additionalDataLodging = (AdditionalDataLodging) o; - return Objects.equals(this.lodgingSpecialProgramCode, additionalDataLodging.lodgingSpecialProgramCode) && - Objects.equals(this.lodgingCheckInDate, additionalDataLodging.lodgingCheckInDate) && - Objects.equals(this.lodgingCheckOutDate, additionalDataLodging.lodgingCheckOutDate) && - Objects.equals(this.lodgingCustomerServiceTollFreeNumber, additionalDataLodging.lodgingCustomerServiceTollFreeNumber) && - Objects.equals(this.lodgingFireSafetyActIndicator, additionalDataLodging.lodgingFireSafetyActIndicator) && - Objects.equals(this.lodgingFolioCashAdvances, additionalDataLodging.lodgingFolioCashAdvances) && - Objects.equals(this.lodgingFolioNumber, additionalDataLodging.lodgingFolioNumber) && - Objects.equals(this.lodgingFoodBeverageCharges, additionalDataLodging.lodgingFoodBeverageCharges) && - Objects.equals(this.lodgingNoShowIndicator, additionalDataLodging.lodgingNoShowIndicator) && - Objects.equals(this.lodgingPrepaidExpenses, additionalDataLodging.lodgingPrepaidExpenses) && - Objects.equals(this.lodgingPropertyPhoneNumber, additionalDataLodging.lodgingPropertyPhoneNumber) && - Objects.equals(this.lodgingRoom1NumberOfNights, additionalDataLodging.lodgingRoom1NumberOfNights) && - Objects.equals(this.lodgingRoom1Rate, additionalDataLodging.lodgingRoom1Rate) && - Objects.equals(this.lodgingTotalRoomTax, additionalDataLodging.lodgingTotalRoomTax) && - Objects.equals(this.lodgingTotalTax, additionalDataLodging.lodgingTotalTax) && - Objects.equals(this.travelEntertainmentAuthDataDuration, additionalDataLodging.travelEntertainmentAuthDataDuration) && - Objects.equals(this.travelEntertainmentAuthDataMarket, additionalDataLodging.travelEntertainmentAuthDataMarket); + return Objects.equals( + this.lodgingSpecialProgramCode, additionalDataLodging.lodgingSpecialProgramCode) + && Objects.equals(this.lodgingCheckInDate, additionalDataLodging.lodgingCheckInDate) + && Objects.equals(this.lodgingCheckOutDate, additionalDataLodging.lodgingCheckOutDate) + && Objects.equals( + this.lodgingCustomerServiceTollFreeNumber, + additionalDataLodging.lodgingCustomerServiceTollFreeNumber) + && Objects.equals( + this.lodgingFireSafetyActIndicator, additionalDataLodging.lodgingFireSafetyActIndicator) + && Objects.equals( + this.lodgingFolioCashAdvances, additionalDataLodging.lodgingFolioCashAdvances) + && Objects.equals(this.lodgingFolioNumber, additionalDataLodging.lodgingFolioNumber) + && Objects.equals( + this.lodgingFoodBeverageCharges, additionalDataLodging.lodgingFoodBeverageCharges) + && Objects.equals(this.lodgingNoShowIndicator, additionalDataLodging.lodgingNoShowIndicator) + && Objects.equals(this.lodgingPrepaidExpenses, additionalDataLodging.lodgingPrepaidExpenses) + && Objects.equals( + this.lodgingPropertyPhoneNumber, additionalDataLodging.lodgingPropertyPhoneNumber) + && Objects.equals( + this.lodgingRoom1NumberOfNights, additionalDataLodging.lodgingRoom1NumberOfNights) + && Objects.equals(this.lodgingRoom1Rate, additionalDataLodging.lodgingRoom1Rate) + && Objects.equals(this.lodgingTotalRoomTax, additionalDataLodging.lodgingTotalRoomTax) + && Objects.equals(this.lodgingTotalTax, additionalDataLodging.lodgingTotalTax) + && Objects.equals( + this.travelEntertainmentAuthDataDuration, + additionalDataLodging.travelEntertainmentAuthDataDuration) + && Objects.equals( + this.travelEntertainmentAuthDataMarket, + additionalDataLodging.travelEntertainmentAuthDataMarket); } @Override public int hashCode() { - return Objects.hash(lodgingSpecialProgramCode, lodgingCheckInDate, lodgingCheckOutDate, lodgingCustomerServiceTollFreeNumber, lodgingFireSafetyActIndicator, lodgingFolioCashAdvances, lodgingFolioNumber, lodgingFoodBeverageCharges, lodgingNoShowIndicator, lodgingPrepaidExpenses, lodgingPropertyPhoneNumber, lodgingRoom1NumberOfNights, lodgingRoom1Rate, lodgingTotalRoomTax, lodgingTotalTax, travelEntertainmentAuthDataDuration, travelEntertainmentAuthDataMarket); + return Objects.hash( + lodgingSpecialProgramCode, + lodgingCheckInDate, + lodgingCheckOutDate, + lodgingCustomerServiceTollFreeNumber, + lodgingFireSafetyActIndicator, + lodgingFolioCashAdvances, + lodgingFolioNumber, + lodgingFoodBeverageCharges, + lodgingNoShowIndicator, + lodgingPrepaidExpenses, + lodgingPropertyPhoneNumber, + lodgingRoom1NumberOfNights, + lodgingRoom1Rate, + lodgingTotalRoomTax, + lodgingTotalTax, + travelEntertainmentAuthDataDuration, + travelEntertainmentAuthDataMarket); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataLodging {\n"); - sb.append(" lodgingSpecialProgramCode: ").append(toIndentedString(lodgingSpecialProgramCode)).append("\n"); + sb.append(" lodgingSpecialProgramCode: ") + .append(toIndentedString(lodgingSpecialProgramCode)) + .append("\n"); sb.append(" lodgingCheckInDate: ").append(toIndentedString(lodgingCheckInDate)).append("\n"); - sb.append(" lodgingCheckOutDate: ").append(toIndentedString(lodgingCheckOutDate)).append("\n"); - sb.append(" lodgingCustomerServiceTollFreeNumber: ").append(toIndentedString(lodgingCustomerServiceTollFreeNumber)).append("\n"); - sb.append(" lodgingFireSafetyActIndicator: ").append(toIndentedString(lodgingFireSafetyActIndicator)).append("\n"); - sb.append(" lodgingFolioCashAdvances: ").append(toIndentedString(lodgingFolioCashAdvances)).append("\n"); + sb.append(" lodgingCheckOutDate: ") + .append(toIndentedString(lodgingCheckOutDate)) + .append("\n"); + sb.append(" lodgingCustomerServiceTollFreeNumber: ") + .append(toIndentedString(lodgingCustomerServiceTollFreeNumber)) + .append("\n"); + sb.append(" lodgingFireSafetyActIndicator: ") + .append(toIndentedString(lodgingFireSafetyActIndicator)) + .append("\n"); + sb.append(" lodgingFolioCashAdvances: ") + .append(toIndentedString(lodgingFolioCashAdvances)) + .append("\n"); sb.append(" lodgingFolioNumber: ").append(toIndentedString(lodgingFolioNumber)).append("\n"); - sb.append(" lodgingFoodBeverageCharges: ").append(toIndentedString(lodgingFoodBeverageCharges)).append("\n"); - sb.append(" lodgingNoShowIndicator: ").append(toIndentedString(lodgingNoShowIndicator)).append("\n"); - sb.append(" lodgingPrepaidExpenses: ").append(toIndentedString(lodgingPrepaidExpenses)).append("\n"); - sb.append(" lodgingPropertyPhoneNumber: ").append(toIndentedString(lodgingPropertyPhoneNumber)).append("\n"); - sb.append(" lodgingRoom1NumberOfNights: ").append(toIndentedString(lodgingRoom1NumberOfNights)).append("\n"); + sb.append(" lodgingFoodBeverageCharges: ") + .append(toIndentedString(lodgingFoodBeverageCharges)) + .append("\n"); + sb.append(" lodgingNoShowIndicator: ") + .append(toIndentedString(lodgingNoShowIndicator)) + .append("\n"); + sb.append(" lodgingPrepaidExpenses: ") + .append(toIndentedString(lodgingPrepaidExpenses)) + .append("\n"); + sb.append(" lodgingPropertyPhoneNumber: ") + .append(toIndentedString(lodgingPropertyPhoneNumber)) + .append("\n"); + sb.append(" lodgingRoom1NumberOfNights: ") + .append(toIndentedString(lodgingRoom1NumberOfNights)) + .append("\n"); sb.append(" lodgingRoom1Rate: ").append(toIndentedString(lodgingRoom1Rate)).append("\n"); - sb.append(" lodgingTotalRoomTax: ").append(toIndentedString(lodgingTotalRoomTax)).append("\n"); + sb.append(" lodgingTotalRoomTax: ") + .append(toIndentedString(lodgingTotalRoomTax)) + .append("\n"); sb.append(" lodgingTotalTax: ").append(toIndentedString(lodgingTotalTax)).append("\n"); - sb.append(" travelEntertainmentAuthDataDuration: ").append(toIndentedString(travelEntertainmentAuthDataDuration)).append("\n"); - sb.append(" travelEntertainmentAuthDataMarket: ").append(toIndentedString(travelEntertainmentAuthDataMarket)).append("\n"); + sb.append(" travelEntertainmentAuthDataDuration: ") + .append(toIndentedString(travelEntertainmentAuthDataDuration)) + .append("\n"); + sb.append(" travelEntertainmentAuthDataMarket: ") + .append(toIndentedString(travelEntertainmentAuthDataMarket)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -718,21 +945,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalDataLodging given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataLodging - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataLodging + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalDataLodging */ public static AdditionalDataLodging fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataLodging.class); } -/** - * Convert an instance of AdditionalDataLodging to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalDataLodging to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataModifications.java b/src/main/java/com/adyen/model/payment/AdditionalDataModifications.java index 5c38a7a1d..c36a6ec9b 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataModifications.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataModifications.java @@ -2,56 +2,53 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AdditionalDataModifications - */ +/** AdditionalDataModifications */ @JsonPropertyOrder({ AdditionalDataModifications.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_SELECTED_INSTALLMENT_OPTION }) - public class AdditionalDataModifications { - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_SELECTED_INSTALLMENT_OPTION = "installmentPaymentData.selectedInstallmentOption"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_SELECTED_INSTALLMENT_OPTION = + "installmentPaymentData.selectedInstallmentOption"; private String installmentPaymentDataSelectedInstallmentOption; - public AdditionalDataModifications() { - } + public AdditionalDataModifications() {} /** - * This is the installment option selected by the shopper. It is required only if specified by the user. + * This is the installment option selected by the shopper. It is required only if specified by the + * user. * - * @param installmentPaymentDataSelectedInstallmentOption This is the installment option selected by the shopper. It is required only if specified by the user. + * @param installmentPaymentDataSelectedInstallmentOption This is the installment option selected + * by the shopper. It is required only if specified by the user. * @return the current {@code AdditionalDataModifications} instance, allowing for method chaining */ - public AdditionalDataModifications installmentPaymentDataSelectedInstallmentOption(String installmentPaymentDataSelectedInstallmentOption) { - this.installmentPaymentDataSelectedInstallmentOption = installmentPaymentDataSelectedInstallmentOption; + public AdditionalDataModifications installmentPaymentDataSelectedInstallmentOption( + String installmentPaymentDataSelectedInstallmentOption) { + this.installmentPaymentDataSelectedInstallmentOption = + installmentPaymentDataSelectedInstallmentOption; return this; } /** - * This is the installment option selected by the shopper. It is required only if specified by the user. - * @return installmentPaymentDataSelectedInstallmentOption This is the installment option selected by the shopper. It is required only if specified by the user. + * This is the installment option selected by the shopper. It is required only if specified by the + * user. + * + * @return installmentPaymentDataSelectedInstallmentOption This is the installment option selected + * by the shopper. It is required only if specified by the user. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_SELECTED_INSTALLMENT_OPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,19 +57,21 @@ public String getInstallmentPaymentDataSelectedInstallmentOption() { } /** - * This is the installment option selected by the shopper. It is required only if specified by the user. + * This is the installment option selected by the shopper. It is required only if specified by the + * user. * - * @param installmentPaymentDataSelectedInstallmentOption This is the installment option selected by the shopper. It is required only if specified by the user. + * @param installmentPaymentDataSelectedInstallmentOption This is the installment option selected + * by the shopper. It is required only if specified by the user. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_SELECTED_INSTALLMENT_OPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataSelectedInstallmentOption(String installmentPaymentDataSelectedInstallmentOption) { - this.installmentPaymentDataSelectedInstallmentOption = installmentPaymentDataSelectedInstallmentOption; + public void setInstallmentPaymentDataSelectedInstallmentOption( + String installmentPaymentDataSelectedInstallmentOption) { + this.installmentPaymentDataSelectedInstallmentOption = + installmentPaymentDataSelectedInstallmentOption; } - /** - * Return true if this AdditionalDataModifications object is equal to o. - */ + /** Return true if this AdditionalDataModifications object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -82,7 +81,9 @@ public boolean equals(Object o) { return false; } AdditionalDataModifications additionalDataModifications = (AdditionalDataModifications) o; - return Objects.equals(this.installmentPaymentDataSelectedInstallmentOption, additionalDataModifications.installmentPaymentDataSelectedInstallmentOption); + return Objects.equals( + this.installmentPaymentDataSelectedInstallmentOption, + additionalDataModifications.installmentPaymentDataSelectedInstallmentOption); } @Override @@ -94,14 +95,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataModifications {\n"); - sb.append(" installmentPaymentDataSelectedInstallmentOption: ").append(toIndentedString(installmentPaymentDataSelectedInstallmentOption)).append("\n"); + sb.append(" installmentPaymentDataSelectedInstallmentOption: ") + .append(toIndentedString(installmentPaymentDataSelectedInstallmentOption)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +112,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalDataModifications given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataModifications - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataModifications + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalDataModifications */ - public static AdditionalDataModifications fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalDataModifications fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataModifications.class); } -/** - * Convert an instance of AdditionalDataModifications to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalDataModifications to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataOpenInvoice.java b/src/main/java/com/adyen/model/payment/AdditionalDataOpenInvoice.java index 0201d18a2..bf39ddf4c 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataOpenInvoice.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataOpenInvoice.java @@ -2,31 +2,22 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AdditionalDataOpenInvoice - */ +/** AdditionalDataOpenInvoice */ @JsonPropertyOrder({ AdditionalDataOpenInvoice.JSON_PROPERTY_OPENINVOICEDATA_MERCHANT_DATA, AdditionalDataOpenInvoice.JSON_PROPERTY_OPENINVOICEDATA_NUMBER_OF_LINES, @@ -47,69 +38,94 @@ AdditionalDataOpenInvoice.JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_NUMBER, AdditionalDataOpenInvoice.JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_URI }) - public class AdditionalDataOpenInvoice { - public static final String JSON_PROPERTY_OPENINVOICEDATA_MERCHANT_DATA = "openinvoicedata.merchantData"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_MERCHANT_DATA = + "openinvoicedata.merchantData"; private String openinvoicedataMerchantData; - public static final String JSON_PROPERTY_OPENINVOICEDATA_NUMBER_OF_LINES = "openinvoicedata.numberOfLines"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_NUMBER_OF_LINES = + "openinvoicedata.numberOfLines"; private String openinvoicedataNumberOfLines; - public static final String JSON_PROPERTY_OPENINVOICEDATA_RECIPIENT_FIRST_NAME = "openinvoicedata.recipientFirstName"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_RECIPIENT_FIRST_NAME = + "openinvoicedata.recipientFirstName"; private String openinvoicedataRecipientFirstName; - public static final String JSON_PROPERTY_OPENINVOICEDATA_RECIPIENT_LAST_NAME = "openinvoicedata.recipientLastName"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_RECIPIENT_LAST_NAME = + "openinvoicedata.recipientLastName"; private String openinvoicedataRecipientLastName; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_CURRENCY_CODE = "openinvoicedataLine[itemNr].currencyCode"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_CURRENCY_CODE = + "openinvoicedataLine[itemNr].currencyCode"; private String openinvoicedataLineItemNrCurrencyCode; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_DESCRIPTION = "openinvoicedataLine[itemNr].description"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_DESCRIPTION = + "openinvoicedataLine[itemNr].description"; private String openinvoicedataLineItemNrDescription; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_AMOUNT = "openinvoicedataLine[itemNr].itemAmount"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_AMOUNT = + "openinvoicedataLine[itemNr].itemAmount"; private String openinvoicedataLineItemNrItemAmount; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_ID = "openinvoicedataLine[itemNr].itemId"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_ID = + "openinvoicedataLine[itemNr].itemId"; private String openinvoicedataLineItemNrItemId; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_VAT_AMOUNT = "openinvoicedataLine[itemNr].itemVatAmount"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_VAT_AMOUNT = + "openinvoicedataLine[itemNr].itemVatAmount"; private String openinvoicedataLineItemNrItemVatAmount; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_VAT_PERCENTAGE = "openinvoicedataLine[itemNr].itemVatPercentage"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_VAT_PERCENTAGE = + "openinvoicedataLine[itemNr].itemVatPercentage"; private String openinvoicedataLineItemNrItemVatPercentage; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_NUMBER_OF_ITEMS = "openinvoicedataLine[itemNr].numberOfItems"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_NUMBER_OF_ITEMS = + "openinvoicedataLine[itemNr].numberOfItems"; private String openinvoicedataLineItemNrNumberOfItems; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_SHIPPING_COMPANY = "openinvoicedataLine[itemNr].returnShippingCompany"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_SHIPPING_COMPANY = + "openinvoicedataLine[itemNr].returnShippingCompany"; private String openinvoicedataLineItemNrReturnShippingCompany; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_TRACKING_NUMBER = "openinvoicedataLine[itemNr].returnTrackingNumber"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_TRACKING_NUMBER = + "openinvoicedataLine[itemNr].returnTrackingNumber"; private String openinvoicedataLineItemNrReturnTrackingNumber; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_TRACKING_URI = "openinvoicedataLine[itemNr].returnTrackingUri"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_TRACKING_URI = + "openinvoicedataLine[itemNr].returnTrackingUri"; private String openinvoicedataLineItemNrReturnTrackingUri; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_SHIPPING_COMPANY = "openinvoicedataLine[itemNr].shippingCompany"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_SHIPPING_COMPANY = + "openinvoicedataLine[itemNr].shippingCompany"; private String openinvoicedataLineItemNrShippingCompany; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_SHIPPING_METHOD = "openinvoicedataLine[itemNr].shippingMethod"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_SHIPPING_METHOD = + "openinvoicedataLine[itemNr].shippingMethod"; private String openinvoicedataLineItemNrShippingMethod; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_NUMBER = "openinvoicedataLine[itemNr].trackingNumber"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_NUMBER = + "openinvoicedataLine[itemNr].trackingNumber"; private String openinvoicedataLineItemNrTrackingNumber; - public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_URI = "openinvoicedataLine[itemNr].trackingUri"; + public static final String JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_URI = + "openinvoicedataLine[itemNr].trackingUri"; private String openinvoicedataLineItemNrTrackingUri; - public AdditionalDataOpenInvoice() { - } + public AdditionalDataOpenInvoice() {} /** - * Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string. The `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end. Since the field is optional, if it's not included it does not impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for the format and structure of the string. + * Holds different merchant data points like product, purchase, customer, and so on. It takes data + * in a Base64 encoded string. The `merchantData` parameter needs to be added to the + * `openinvoicedata` signature at the end. Since the field is optional, if it's not + * included it does not impact computing the merchant signature. Applies only to Klarna. You can + * contact Klarna for the format and structure of the string. * - * @param openinvoicedataMerchantData Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string. The `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end. Since the field is optional, if it's not included it does not impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for the format and structure of the string. + * @param openinvoicedataMerchantData Holds different merchant data points like product, purchase, + * customer, and so on. It takes data in a Base64 encoded string. The `merchantData` + * parameter needs to be added to the `openinvoicedata` signature at the end. Since + * the field is optional, if it's not included it does not impact computing the merchant + * signature. Applies only to Klarna. You can contact Klarna for the format and structure of + * the string. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ public AdditionalDataOpenInvoice openinvoicedataMerchantData(String openinvoicedataMerchantData) { @@ -118,8 +134,18 @@ public AdditionalDataOpenInvoice openinvoicedataMerchantData(String openinvoiced } /** - * Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string. The `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end. Since the field is optional, if it's not included it does not impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for the format and structure of the string. - * @return openinvoicedataMerchantData Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string. The `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end. Since the field is optional, if it's not included it does not impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for the format and structure of the string. + * Holds different merchant data points like product, purchase, customer, and so on. It takes data + * in a Base64 encoded string. The `merchantData` parameter needs to be added to the + * `openinvoicedata` signature at the end. Since the field is optional, if it's not + * included it does not impact computing the merchant signature. Applies only to Klarna. You can + * contact Klarna for the format and structure of the string. + * + * @return openinvoicedataMerchantData Holds different merchant data points like product, + * purchase, customer, and so on. It takes data in a Base64 encoded string. The + * `merchantData` parameter needs to be added to the `openinvoicedata` + * signature at the end. Since the field is optional, if it's not included it does not + * impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for + * the format and structure of the string. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_MERCHANT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,9 +154,18 @@ public String getOpeninvoicedataMerchantData() { } /** - * Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string. The `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end. Since the field is optional, if it's not included it does not impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for the format and structure of the string. + * Holds different merchant data points like product, purchase, customer, and so on. It takes data + * in a Base64 encoded string. The `merchantData` parameter needs to be added to the + * `openinvoicedata` signature at the end. Since the field is optional, if it's not + * included it does not impact computing the merchant signature. Applies only to Klarna. You can + * contact Klarna for the format and structure of the string. * - * @param openinvoicedataMerchantData Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string. The `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end. Since the field is optional, if it's not included it does not impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for the format and structure of the string. + * @param openinvoicedataMerchantData Holds different merchant data points like product, purchase, + * customer, and so on. It takes data in a Base64 encoded string. The `merchantData` + * parameter needs to be added to the `openinvoicedata` signature at the end. Since + * the field is optional, if it's not included it does not impact computing the merchant + * signature. Applies only to Klarna. You can contact Klarna for the format and structure of + * the string. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_MERCHANT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,19 +174,27 @@ public void setOpeninvoicedataMerchantData(String openinvoicedataMerchantData) { } /** - * The number of invoice lines included in `openinvoicedata`. There needs to be at least one line, so `numberOfLines` needs to be at least 1. + * The number of invoice lines included in `openinvoicedata`. There needs to be at least + * one line, so `numberOfLines` needs to be at least 1. * - * @param openinvoicedataNumberOfLines The number of invoice lines included in `openinvoicedata`. There needs to be at least one line, so `numberOfLines` needs to be at least 1. + * @param openinvoicedataNumberOfLines The number of invoice lines included in + * `openinvoicedata`. There needs to be at least one line, so + * `numberOfLines` needs to be at least 1. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataNumberOfLines(String openinvoicedataNumberOfLines) { + public AdditionalDataOpenInvoice openinvoicedataNumberOfLines( + String openinvoicedataNumberOfLines) { this.openinvoicedataNumberOfLines = openinvoicedataNumberOfLines; return this; } /** - * The number of invoice lines included in `openinvoicedata`. There needs to be at least one line, so `numberOfLines` needs to be at least 1. - * @return openinvoicedataNumberOfLines The number of invoice lines included in `openinvoicedata`. There needs to be at least one line, so `numberOfLines` needs to be at least 1. + * The number of invoice lines included in `openinvoicedata`. There needs to be at least + * one line, so `numberOfLines` needs to be at least 1. + * + * @return openinvoicedataNumberOfLines The number of invoice lines included in + * `openinvoicedata`. There needs to be at least one line, so + * `numberOfLines` needs to be at least 1. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_NUMBER_OF_LINES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,9 +203,12 @@ public String getOpeninvoicedataNumberOfLines() { } /** - * The number of invoice lines included in `openinvoicedata`. There needs to be at least one line, so `numberOfLines` needs to be at least 1. + * The number of invoice lines included in `openinvoicedata`. There needs to be at least + * one line, so `numberOfLines` needs to be at least 1. * - * @param openinvoicedataNumberOfLines The number of invoice lines included in `openinvoicedata`. There needs to be at least one line, so `numberOfLines` needs to be at least 1. + * @param openinvoicedataNumberOfLines The number of invoice lines included in + * `openinvoicedata`. There needs to be at least one line, so + * `numberOfLines` needs to be at least 1. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_NUMBER_OF_LINES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -171,19 +217,31 @@ public void setOpeninvoicedataNumberOfLines(String openinvoicedataNumberOfLines) } /** - * First name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * First name of the recipient. If the delivery address and the billing address are different, + * specify the `recipientFirstName` and `recipientLastName` to share the + * delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. * - * @param openinvoicedataRecipientFirstName First name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * @param openinvoicedataRecipientFirstName First name of the recipient. If the delivery address + * and the billing address are different, specify the `recipientFirstName` and + * `recipientLastName` to share the delivery address with Klarna. Otherwise, only + * the billing address is shared with Klarna. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataRecipientFirstName(String openinvoicedataRecipientFirstName) { + public AdditionalDataOpenInvoice openinvoicedataRecipientFirstName( + String openinvoicedataRecipientFirstName) { this.openinvoicedataRecipientFirstName = openinvoicedataRecipientFirstName; return this; } /** - * First name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. - * @return openinvoicedataRecipientFirstName First name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * First name of the recipient. If the delivery address and the billing address are different, + * specify the `recipientFirstName` and `recipientLastName` to share the + * delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * + * @return openinvoicedataRecipientFirstName First name of the recipient. If the delivery address + * and the billing address are different, specify the `recipientFirstName` and + * `recipientLastName` to share the delivery address with Klarna. Otherwise, only + * the billing address is shared with Klarna. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_RECIPIENT_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,9 +250,14 @@ public String getOpeninvoicedataRecipientFirstName() { } /** - * First name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * First name of the recipient. If the delivery address and the billing address are different, + * specify the `recipientFirstName` and `recipientLastName` to share the + * delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. * - * @param openinvoicedataRecipientFirstName First name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * @param openinvoicedataRecipientFirstName First name of the recipient. If the delivery address + * and the billing address are different, specify the `recipientFirstName` and + * `recipientLastName` to share the delivery address with Klarna. Otherwise, only + * the billing address is shared with Klarna. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_RECIPIENT_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -203,19 +266,31 @@ public void setOpeninvoicedataRecipientFirstName(String openinvoicedataRecipient } /** - * Last name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * Last name of the recipient. If the delivery address and the billing address are different, + * specify the `recipientFirstName` and `recipientLastName` to share the + * delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. * - * @param openinvoicedataRecipientLastName Last name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * @param openinvoicedataRecipientLastName Last name of the recipient. If the delivery address and + * the billing address are different, specify the `recipientFirstName` and + * `recipientLastName` to share the delivery address with Klarna. Otherwise, only + * the billing address is shared with Klarna. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataRecipientLastName(String openinvoicedataRecipientLastName) { + public AdditionalDataOpenInvoice openinvoicedataRecipientLastName( + String openinvoicedataRecipientLastName) { this.openinvoicedataRecipientLastName = openinvoicedataRecipientLastName; return this; } /** - * Last name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. - * @return openinvoicedataRecipientLastName Last name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * Last name of the recipient. If the delivery address and the billing address are different, + * specify the `recipientFirstName` and `recipientLastName` to share the + * delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * + * @return openinvoicedataRecipientLastName Last name of the recipient. If the delivery address + * and the billing address are different, specify the `recipientFirstName` and + * `recipientLastName` to share the delivery address with Klarna. Otherwise, only + * the billing address is shared with Klarna. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_RECIPIENT_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,9 +299,14 @@ public String getOpeninvoicedataRecipientLastName() { } /** - * Last name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * Last name of the recipient. If the delivery address and the billing address are different, + * specify the `recipientFirstName` and `recipientLastName` to share the + * delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. * - * @param openinvoicedataRecipientLastName Last name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + * @param openinvoicedataRecipientLastName Last name of the recipient. If the delivery address and + * the billing address are different, specify the `recipientFirstName` and + * `recipientLastName` to share the delivery address with Klarna. Otherwise, only + * the billing address is shared with Klarna. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_RECIPIENT_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,13 +320,15 @@ public void setOpeninvoicedataRecipientLastName(String openinvoicedataRecipientL * @param openinvoicedataLineItemNrCurrencyCode The three-character ISO currency code. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrCurrencyCode(String openinvoicedataLineItemNrCurrencyCode) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrCurrencyCode( + String openinvoicedataLineItemNrCurrencyCode) { this.openinvoicedataLineItemNrCurrencyCode = openinvoicedataLineItemNrCurrencyCode; return this; } /** * The three-character ISO currency code. + * * @return openinvoicedataLineItemNrCurrencyCode The three-character ISO currency code. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_CURRENCY_CODE) @@ -262,24 +344,29 @@ public String getOpeninvoicedataLineItemNrCurrencyCode() { */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_CURRENCY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrCurrencyCode(String openinvoicedataLineItemNrCurrencyCode) { + public void setOpeninvoicedataLineItemNrCurrencyCode( + String openinvoicedataLineItemNrCurrencyCode) { this.openinvoicedataLineItemNrCurrencyCode = openinvoicedataLineItemNrCurrencyCode; } /** * A text description of the product the invoice line refers to. * - * @param openinvoicedataLineItemNrDescription A text description of the product the invoice line refers to. + * @param openinvoicedataLineItemNrDescription A text description of the product the invoice line + * refers to. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrDescription(String openinvoicedataLineItemNrDescription) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrDescription( + String openinvoicedataLineItemNrDescription) { this.openinvoicedataLineItemNrDescription = openinvoicedataLineItemNrDescription; return this; } /** * A text description of the product the invoice line refers to. - * @return openinvoicedataLineItemNrDescription A text description of the product the invoice line refers to. + * + * @return openinvoicedataLineItemNrDescription A text description of the product the invoice line + * refers to. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -290,7 +377,8 @@ public String getOpeninvoicedataLineItemNrDescription() { /** * A text description of the product the invoice line refers to. * - * @param openinvoicedataLineItemNrDescription A text description of the product the invoice line refers to. + * @param openinvoicedataLineItemNrDescription A text description of the product the invoice line + * refers to. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -299,19 +387,25 @@ public void setOpeninvoicedataLineItemNrDescription(String openinvoicedataLineIt } /** - * The price for one item in the invoice line, represented in minor units. The due amount for the item, VAT excluded. + * The price for one item in the invoice line, represented in minor units. The due amount for the + * item, VAT excluded. * - * @param openinvoicedataLineItemNrItemAmount The price for one item in the invoice line, represented in minor units. The due amount for the item, VAT excluded. + * @param openinvoicedataLineItemNrItemAmount The price for one item in the invoice line, + * represented in minor units. The due amount for the item, VAT excluded. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrItemAmount(String openinvoicedataLineItemNrItemAmount) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrItemAmount( + String openinvoicedataLineItemNrItemAmount) { this.openinvoicedataLineItemNrItemAmount = openinvoicedataLineItemNrItemAmount; return this; } /** - * The price for one item in the invoice line, represented in minor units. The due amount for the item, VAT excluded. - * @return openinvoicedataLineItemNrItemAmount The price for one item in the invoice line, represented in minor units. The due amount for the item, VAT excluded. + * The price for one item in the invoice line, represented in minor units. The due amount for the + * item, VAT excluded. + * + * @return openinvoicedataLineItemNrItemAmount The price for one item in the invoice line, + * represented in minor units. The due amount for the item, VAT excluded. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -320,9 +414,11 @@ public String getOpeninvoicedataLineItemNrItemAmount() { } /** - * The price for one item in the invoice line, represented in minor units. The due amount for the item, VAT excluded. + * The price for one item in the invoice line, represented in minor units. The due amount for the + * item, VAT excluded. * - * @param openinvoicedataLineItemNrItemAmount The price for one item in the invoice line, represented in minor units. The due amount for the item, VAT excluded. + * @param openinvoicedataLineItemNrItemAmount The price for one item in the invoice line, + * represented in minor units. The due amount for the item, VAT excluded. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -333,17 +429,21 @@ public void setOpeninvoicedataLineItemNrItemAmount(String openinvoicedataLineIte /** * A unique id for this item. Required for RatePay if the description of each item is not unique. * - * @param openinvoicedataLineItemNrItemId A unique id for this item. Required for RatePay if the description of each item is not unique. + * @param openinvoicedataLineItemNrItemId A unique id for this item. Required for RatePay if the + * description of each item is not unique. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrItemId(String openinvoicedataLineItemNrItemId) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrItemId( + String openinvoicedataLineItemNrItemId) { this.openinvoicedataLineItemNrItemId = openinvoicedataLineItemNrItemId; return this; } /** * A unique id for this item. Required for RatePay if the description of each item is not unique. - * @return openinvoicedataLineItemNrItemId A unique id for this item. Required for RatePay if the description of each item is not unique. + * + * @return openinvoicedataLineItemNrItemId A unique id for this item. Required for RatePay if the + * description of each item is not unique. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -354,7 +454,8 @@ public String getOpeninvoicedataLineItemNrItemId() { /** * A unique id for this item. Required for RatePay if the description of each item is not unique. * - * @param openinvoicedataLineItemNrItemId A unique id for this item. Required for RatePay if the description of each item is not unique. + * @param openinvoicedataLineItemNrItemId A unique id for this item. Required for RatePay if the + * description of each item is not unique. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -365,17 +466,21 @@ public void setOpeninvoicedataLineItemNrItemId(String openinvoicedataLineItemNrI /** * The VAT due for one item in the invoice line, represented in minor units. * - * @param openinvoicedataLineItemNrItemVatAmount The VAT due for one item in the invoice line, represented in minor units. + * @param openinvoicedataLineItemNrItemVatAmount The VAT due for one item in the invoice line, + * represented in minor units. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrItemVatAmount(String openinvoicedataLineItemNrItemVatAmount) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrItemVatAmount( + String openinvoicedataLineItemNrItemVatAmount) { this.openinvoicedataLineItemNrItemVatAmount = openinvoicedataLineItemNrItemVatAmount; return this; } /** * The VAT due for one item in the invoice line, represented in minor units. - * @return openinvoicedataLineItemNrItemVatAmount The VAT due for one item in the invoice line, represented in minor units. + * + * @return openinvoicedataLineItemNrItemVatAmount The VAT due for one item in the invoice line, + * represented in minor units. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_VAT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -386,28 +491,36 @@ public String getOpeninvoicedataLineItemNrItemVatAmount() { /** * The VAT due for one item in the invoice line, represented in minor units. * - * @param openinvoicedataLineItemNrItemVatAmount The VAT due for one item in the invoice line, represented in minor units. + * @param openinvoicedataLineItemNrItemVatAmount The VAT due for one item in the invoice line, + * represented in minor units. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_VAT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrItemVatAmount(String openinvoicedataLineItemNrItemVatAmount) { + public void setOpeninvoicedataLineItemNrItemVatAmount( + String openinvoicedataLineItemNrItemVatAmount) { this.openinvoicedataLineItemNrItemVatAmount = openinvoicedataLineItemNrItemVatAmount; } /** - * The VAT percentage for one item in the invoice line, represented in minor units. For example, 19% VAT is specified as 1900. + * The VAT percentage for one item in the invoice line, represented in minor units. For example, + * 19% VAT is specified as 1900. * - * @param openinvoicedataLineItemNrItemVatPercentage The VAT percentage for one item in the invoice line, represented in minor units. For example, 19% VAT is specified as 1900. + * @param openinvoicedataLineItemNrItemVatPercentage The VAT percentage for one item in the + * invoice line, represented in minor units. For example, 19% VAT is specified as 1900. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrItemVatPercentage(String openinvoicedataLineItemNrItemVatPercentage) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrItemVatPercentage( + String openinvoicedataLineItemNrItemVatPercentage) { this.openinvoicedataLineItemNrItemVatPercentage = openinvoicedataLineItemNrItemVatPercentage; return this; } /** - * The VAT percentage for one item in the invoice line, represented in minor units. For example, 19% VAT is specified as 1900. - * @return openinvoicedataLineItemNrItemVatPercentage The VAT percentage for one item in the invoice line, represented in minor units. For example, 19% VAT is specified as 1900. + * The VAT percentage for one item in the invoice line, represented in minor units. For example, + * 19% VAT is specified as 1900. + * + * @return openinvoicedataLineItemNrItemVatPercentage The VAT percentage for one item in the + * invoice line, represented in minor units. For example, 19% VAT is specified as 1900. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_VAT_PERCENTAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -416,30 +529,37 @@ public String getOpeninvoicedataLineItemNrItemVatPercentage() { } /** - * The VAT percentage for one item in the invoice line, represented in minor units. For example, 19% VAT is specified as 1900. + * The VAT percentage for one item in the invoice line, represented in minor units. For example, + * 19% VAT is specified as 1900. * - * @param openinvoicedataLineItemNrItemVatPercentage The VAT percentage for one item in the invoice line, represented in minor units. For example, 19% VAT is specified as 1900. + * @param openinvoicedataLineItemNrItemVatPercentage The VAT percentage for one item in the + * invoice line, represented in minor units. For example, 19% VAT is specified as 1900. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_ITEM_VAT_PERCENTAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrItemVatPercentage(String openinvoicedataLineItemNrItemVatPercentage) { + public void setOpeninvoicedataLineItemNrItemVatPercentage( + String openinvoicedataLineItemNrItemVatPercentage) { this.openinvoicedataLineItemNrItemVatPercentage = openinvoicedataLineItemNrItemVatPercentage; } /** * The number of units purchased of a specific product. * - * @param openinvoicedataLineItemNrNumberOfItems The number of units purchased of a specific product. + * @param openinvoicedataLineItemNrNumberOfItems The number of units purchased of a specific + * product. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrNumberOfItems(String openinvoicedataLineItemNrNumberOfItems) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrNumberOfItems( + String openinvoicedataLineItemNrNumberOfItems) { this.openinvoicedataLineItemNrNumberOfItems = openinvoicedataLineItemNrNumberOfItems; return this; } /** * The number of units purchased of a specific product. - * @return openinvoicedataLineItemNrNumberOfItems The number of units purchased of a specific product. + * + * @return openinvoicedataLineItemNrNumberOfItems The number of units purchased of a specific + * product. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_NUMBER_OF_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -450,28 +570,35 @@ public String getOpeninvoicedataLineItemNrNumberOfItems() { /** * The number of units purchased of a specific product. * - * @param openinvoicedataLineItemNrNumberOfItems The number of units purchased of a specific product. + * @param openinvoicedataLineItemNrNumberOfItems The number of units purchased of a specific + * product. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_NUMBER_OF_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrNumberOfItems(String openinvoicedataLineItemNrNumberOfItems) { + public void setOpeninvoicedataLineItemNrNumberOfItems( + String openinvoicedataLineItemNrNumberOfItems) { this.openinvoicedataLineItemNrNumberOfItems = openinvoicedataLineItemNrNumberOfItems; } /** * Name of the shipping company handling the the return shipment. * - * @param openinvoicedataLineItemNrReturnShippingCompany Name of the shipping company handling the the return shipment. + * @param openinvoicedataLineItemNrReturnShippingCompany Name of the shipping company handling the + * the return shipment. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrReturnShippingCompany(String openinvoicedataLineItemNrReturnShippingCompany) { - this.openinvoicedataLineItemNrReturnShippingCompany = openinvoicedataLineItemNrReturnShippingCompany; + public AdditionalDataOpenInvoice openinvoicedataLineItemNrReturnShippingCompany( + String openinvoicedataLineItemNrReturnShippingCompany) { + this.openinvoicedataLineItemNrReturnShippingCompany = + openinvoicedataLineItemNrReturnShippingCompany; return this; } /** * Name of the shipping company handling the the return shipment. - * @return openinvoicedataLineItemNrReturnShippingCompany Name of the shipping company handling the the return shipment. + * + * @return openinvoicedataLineItemNrReturnShippingCompany Name of the shipping company handling + * the the return shipment. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_SHIPPING_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -482,28 +609,36 @@ public String getOpeninvoicedataLineItemNrReturnShippingCompany() { /** * Name of the shipping company handling the the return shipment. * - * @param openinvoicedataLineItemNrReturnShippingCompany Name of the shipping company handling the the return shipment. + * @param openinvoicedataLineItemNrReturnShippingCompany Name of the shipping company handling the + * the return shipment. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_SHIPPING_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrReturnShippingCompany(String openinvoicedataLineItemNrReturnShippingCompany) { - this.openinvoicedataLineItemNrReturnShippingCompany = openinvoicedataLineItemNrReturnShippingCompany; + public void setOpeninvoicedataLineItemNrReturnShippingCompany( + String openinvoicedataLineItemNrReturnShippingCompany) { + this.openinvoicedataLineItemNrReturnShippingCompany = + openinvoicedataLineItemNrReturnShippingCompany; } /** * The tracking number for the return of the shipment. * - * @param openinvoicedataLineItemNrReturnTrackingNumber The tracking number for the return of the shipment. + * @param openinvoicedataLineItemNrReturnTrackingNumber The tracking number for the return of the + * shipment. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrReturnTrackingNumber(String openinvoicedataLineItemNrReturnTrackingNumber) { - this.openinvoicedataLineItemNrReturnTrackingNumber = openinvoicedataLineItemNrReturnTrackingNumber; + public AdditionalDataOpenInvoice openinvoicedataLineItemNrReturnTrackingNumber( + String openinvoicedataLineItemNrReturnTrackingNumber) { + this.openinvoicedataLineItemNrReturnTrackingNumber = + openinvoicedataLineItemNrReturnTrackingNumber; return this; } /** * The tracking number for the return of the shipment. - * @return openinvoicedataLineItemNrReturnTrackingNumber The tracking number for the return of the shipment. + * + * @return openinvoicedataLineItemNrReturnTrackingNumber The tracking number for the return of the + * shipment. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_TRACKING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -514,28 +649,35 @@ public String getOpeninvoicedataLineItemNrReturnTrackingNumber() { /** * The tracking number for the return of the shipment. * - * @param openinvoicedataLineItemNrReturnTrackingNumber The tracking number for the return of the shipment. + * @param openinvoicedataLineItemNrReturnTrackingNumber The tracking number for the return of the + * shipment. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_TRACKING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrReturnTrackingNumber(String openinvoicedataLineItemNrReturnTrackingNumber) { - this.openinvoicedataLineItemNrReturnTrackingNumber = openinvoicedataLineItemNrReturnTrackingNumber; + public void setOpeninvoicedataLineItemNrReturnTrackingNumber( + String openinvoicedataLineItemNrReturnTrackingNumber) { + this.openinvoicedataLineItemNrReturnTrackingNumber = + openinvoicedataLineItemNrReturnTrackingNumber; } /** * URI where the customer can track the return of their shipment. * - * @param openinvoicedataLineItemNrReturnTrackingUri URI where the customer can track the return of their shipment. + * @param openinvoicedataLineItemNrReturnTrackingUri URI where the customer can track the return + * of their shipment. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrReturnTrackingUri(String openinvoicedataLineItemNrReturnTrackingUri) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrReturnTrackingUri( + String openinvoicedataLineItemNrReturnTrackingUri) { this.openinvoicedataLineItemNrReturnTrackingUri = openinvoicedataLineItemNrReturnTrackingUri; return this; } /** * URI where the customer can track the return of their shipment. - * @return openinvoicedataLineItemNrReturnTrackingUri URI where the customer can track the return of their shipment. + * + * @return openinvoicedataLineItemNrReturnTrackingUri URI where the customer can track the return + * of their shipment. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_TRACKING_URI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -546,28 +688,34 @@ public String getOpeninvoicedataLineItemNrReturnTrackingUri() { /** * URI where the customer can track the return of their shipment. * - * @param openinvoicedataLineItemNrReturnTrackingUri URI where the customer can track the return of their shipment. + * @param openinvoicedataLineItemNrReturnTrackingUri URI where the customer can track the return + * of their shipment. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_RETURN_TRACKING_URI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrReturnTrackingUri(String openinvoicedataLineItemNrReturnTrackingUri) { + public void setOpeninvoicedataLineItemNrReturnTrackingUri( + String openinvoicedataLineItemNrReturnTrackingUri) { this.openinvoicedataLineItemNrReturnTrackingUri = openinvoicedataLineItemNrReturnTrackingUri; } /** * Name of the shipping company handling the delivery. * - * @param openinvoicedataLineItemNrShippingCompany Name of the shipping company handling the delivery. + * @param openinvoicedataLineItemNrShippingCompany Name of the shipping company handling the + * delivery. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrShippingCompany(String openinvoicedataLineItemNrShippingCompany) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrShippingCompany( + String openinvoicedataLineItemNrShippingCompany) { this.openinvoicedataLineItemNrShippingCompany = openinvoicedataLineItemNrShippingCompany; return this; } /** * Name of the shipping company handling the delivery. - * @return openinvoicedataLineItemNrShippingCompany Name of the shipping company handling the delivery. + * + * @return openinvoicedataLineItemNrShippingCompany Name of the shipping company handling the + * delivery. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_SHIPPING_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -578,11 +726,13 @@ public String getOpeninvoicedataLineItemNrShippingCompany() { /** * Name of the shipping company handling the delivery. * - * @param openinvoicedataLineItemNrShippingCompany Name of the shipping company handling the delivery. + * @param openinvoicedataLineItemNrShippingCompany Name of the shipping company handling the + * delivery. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_SHIPPING_COMPANY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrShippingCompany(String openinvoicedataLineItemNrShippingCompany) { + public void setOpeninvoicedataLineItemNrShippingCompany( + String openinvoicedataLineItemNrShippingCompany) { this.openinvoicedataLineItemNrShippingCompany = openinvoicedataLineItemNrShippingCompany; } @@ -592,13 +742,15 @@ public void setOpeninvoicedataLineItemNrShippingCompany(String openinvoicedataLi * @param openinvoicedataLineItemNrShippingMethod Shipping method. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrShippingMethod(String openinvoicedataLineItemNrShippingMethod) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrShippingMethod( + String openinvoicedataLineItemNrShippingMethod) { this.openinvoicedataLineItemNrShippingMethod = openinvoicedataLineItemNrShippingMethod; return this; } /** * Shipping method. + * * @return openinvoicedataLineItemNrShippingMethod Shipping method. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_SHIPPING_METHOD) @@ -614,7 +766,8 @@ public String getOpeninvoicedataLineItemNrShippingMethod() { */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_SHIPPING_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrShippingMethod(String openinvoicedataLineItemNrShippingMethod) { + public void setOpeninvoicedataLineItemNrShippingMethod( + String openinvoicedataLineItemNrShippingMethod) { this.openinvoicedataLineItemNrShippingMethod = openinvoicedataLineItemNrShippingMethod; } @@ -624,13 +777,15 @@ public void setOpeninvoicedataLineItemNrShippingMethod(String openinvoicedataLin * @param openinvoicedataLineItemNrTrackingNumber The tracking number for the shipment. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrTrackingNumber(String openinvoicedataLineItemNrTrackingNumber) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrTrackingNumber( + String openinvoicedataLineItemNrTrackingNumber) { this.openinvoicedataLineItemNrTrackingNumber = openinvoicedataLineItemNrTrackingNumber; return this; } /** * The tracking number for the shipment. + * * @return openinvoicedataLineItemNrTrackingNumber The tracking number for the shipment. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_NUMBER) @@ -646,7 +801,8 @@ public String getOpeninvoicedataLineItemNrTrackingNumber() { */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOpeninvoicedataLineItemNrTrackingNumber(String openinvoicedataLineItemNrTrackingNumber) { + public void setOpeninvoicedataLineItemNrTrackingNumber( + String openinvoicedataLineItemNrTrackingNumber) { this.openinvoicedataLineItemNrTrackingNumber = openinvoicedataLineItemNrTrackingNumber; } @@ -656,13 +812,15 @@ public void setOpeninvoicedataLineItemNrTrackingNumber(String openinvoicedataLin * @param openinvoicedataLineItemNrTrackingUri URI where the customer can track their shipment. * @return the current {@code AdditionalDataOpenInvoice} instance, allowing for method chaining */ - public AdditionalDataOpenInvoice openinvoicedataLineItemNrTrackingUri(String openinvoicedataLineItemNrTrackingUri) { + public AdditionalDataOpenInvoice openinvoicedataLineItemNrTrackingUri( + String openinvoicedataLineItemNrTrackingUri) { this.openinvoicedataLineItemNrTrackingUri = openinvoicedataLineItemNrTrackingUri; return this; } /** * URI where the customer can track their shipment. + * * @return openinvoicedataLineItemNrTrackingUri URI where the customer can track their shipment. */ @JsonProperty(JSON_PROPERTY_OPENINVOICEDATA_LINE_ITEM_NR_TRACKING_URI) @@ -682,9 +840,7 @@ public void setOpeninvoicedataLineItemNrTrackingUri(String openinvoicedataLineIt this.openinvoicedataLineItemNrTrackingUri = openinvoicedataLineItemNrTrackingUri; } - /** - * Return true if this AdditionalDataOpenInvoice object is equal to o. - */ + /** Return true if this AdditionalDataOpenInvoice object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -694,60 +850,148 @@ public boolean equals(Object o) { return false; } AdditionalDataOpenInvoice additionalDataOpenInvoice = (AdditionalDataOpenInvoice) o; - return Objects.equals(this.openinvoicedataMerchantData, additionalDataOpenInvoice.openinvoicedataMerchantData) && - Objects.equals(this.openinvoicedataNumberOfLines, additionalDataOpenInvoice.openinvoicedataNumberOfLines) && - Objects.equals(this.openinvoicedataRecipientFirstName, additionalDataOpenInvoice.openinvoicedataRecipientFirstName) && - Objects.equals(this.openinvoicedataRecipientLastName, additionalDataOpenInvoice.openinvoicedataRecipientLastName) && - Objects.equals(this.openinvoicedataLineItemNrCurrencyCode, additionalDataOpenInvoice.openinvoicedataLineItemNrCurrencyCode) && - Objects.equals(this.openinvoicedataLineItemNrDescription, additionalDataOpenInvoice.openinvoicedataLineItemNrDescription) && - Objects.equals(this.openinvoicedataLineItemNrItemAmount, additionalDataOpenInvoice.openinvoicedataLineItemNrItemAmount) && - Objects.equals(this.openinvoicedataLineItemNrItemId, additionalDataOpenInvoice.openinvoicedataLineItemNrItemId) && - Objects.equals(this.openinvoicedataLineItemNrItemVatAmount, additionalDataOpenInvoice.openinvoicedataLineItemNrItemVatAmount) && - Objects.equals(this.openinvoicedataLineItemNrItemVatPercentage, additionalDataOpenInvoice.openinvoicedataLineItemNrItemVatPercentage) && - Objects.equals(this.openinvoicedataLineItemNrNumberOfItems, additionalDataOpenInvoice.openinvoicedataLineItemNrNumberOfItems) && - Objects.equals(this.openinvoicedataLineItemNrReturnShippingCompany, additionalDataOpenInvoice.openinvoicedataLineItemNrReturnShippingCompany) && - Objects.equals(this.openinvoicedataLineItemNrReturnTrackingNumber, additionalDataOpenInvoice.openinvoicedataLineItemNrReturnTrackingNumber) && - Objects.equals(this.openinvoicedataLineItemNrReturnTrackingUri, additionalDataOpenInvoice.openinvoicedataLineItemNrReturnTrackingUri) && - Objects.equals(this.openinvoicedataLineItemNrShippingCompany, additionalDataOpenInvoice.openinvoicedataLineItemNrShippingCompany) && - Objects.equals(this.openinvoicedataLineItemNrShippingMethod, additionalDataOpenInvoice.openinvoicedataLineItemNrShippingMethod) && - Objects.equals(this.openinvoicedataLineItemNrTrackingNumber, additionalDataOpenInvoice.openinvoicedataLineItemNrTrackingNumber) && - Objects.equals(this.openinvoicedataLineItemNrTrackingUri, additionalDataOpenInvoice.openinvoicedataLineItemNrTrackingUri); + return Objects.equals( + this.openinvoicedataMerchantData, additionalDataOpenInvoice.openinvoicedataMerchantData) + && Objects.equals( + this.openinvoicedataNumberOfLines, + additionalDataOpenInvoice.openinvoicedataNumberOfLines) + && Objects.equals( + this.openinvoicedataRecipientFirstName, + additionalDataOpenInvoice.openinvoicedataRecipientFirstName) + && Objects.equals( + this.openinvoicedataRecipientLastName, + additionalDataOpenInvoice.openinvoicedataRecipientLastName) + && Objects.equals( + this.openinvoicedataLineItemNrCurrencyCode, + additionalDataOpenInvoice.openinvoicedataLineItemNrCurrencyCode) + && Objects.equals( + this.openinvoicedataLineItemNrDescription, + additionalDataOpenInvoice.openinvoicedataLineItemNrDescription) + && Objects.equals( + this.openinvoicedataLineItemNrItemAmount, + additionalDataOpenInvoice.openinvoicedataLineItemNrItemAmount) + && Objects.equals( + this.openinvoicedataLineItemNrItemId, + additionalDataOpenInvoice.openinvoicedataLineItemNrItemId) + && Objects.equals( + this.openinvoicedataLineItemNrItemVatAmount, + additionalDataOpenInvoice.openinvoicedataLineItemNrItemVatAmount) + && Objects.equals( + this.openinvoicedataLineItemNrItemVatPercentage, + additionalDataOpenInvoice.openinvoicedataLineItemNrItemVatPercentage) + && Objects.equals( + this.openinvoicedataLineItemNrNumberOfItems, + additionalDataOpenInvoice.openinvoicedataLineItemNrNumberOfItems) + && Objects.equals( + this.openinvoicedataLineItemNrReturnShippingCompany, + additionalDataOpenInvoice.openinvoicedataLineItemNrReturnShippingCompany) + && Objects.equals( + this.openinvoicedataLineItemNrReturnTrackingNumber, + additionalDataOpenInvoice.openinvoicedataLineItemNrReturnTrackingNumber) + && Objects.equals( + this.openinvoicedataLineItemNrReturnTrackingUri, + additionalDataOpenInvoice.openinvoicedataLineItemNrReturnTrackingUri) + && Objects.equals( + this.openinvoicedataLineItemNrShippingCompany, + additionalDataOpenInvoice.openinvoicedataLineItemNrShippingCompany) + && Objects.equals( + this.openinvoicedataLineItemNrShippingMethod, + additionalDataOpenInvoice.openinvoicedataLineItemNrShippingMethod) + && Objects.equals( + this.openinvoicedataLineItemNrTrackingNumber, + additionalDataOpenInvoice.openinvoicedataLineItemNrTrackingNumber) + && Objects.equals( + this.openinvoicedataLineItemNrTrackingUri, + additionalDataOpenInvoice.openinvoicedataLineItemNrTrackingUri); } @Override public int hashCode() { - return Objects.hash(openinvoicedataMerchantData, openinvoicedataNumberOfLines, openinvoicedataRecipientFirstName, openinvoicedataRecipientLastName, openinvoicedataLineItemNrCurrencyCode, openinvoicedataLineItemNrDescription, openinvoicedataLineItemNrItemAmount, openinvoicedataLineItemNrItemId, openinvoicedataLineItemNrItemVatAmount, openinvoicedataLineItemNrItemVatPercentage, openinvoicedataLineItemNrNumberOfItems, openinvoicedataLineItemNrReturnShippingCompany, openinvoicedataLineItemNrReturnTrackingNumber, openinvoicedataLineItemNrReturnTrackingUri, openinvoicedataLineItemNrShippingCompany, openinvoicedataLineItemNrShippingMethod, openinvoicedataLineItemNrTrackingNumber, openinvoicedataLineItemNrTrackingUri); + return Objects.hash( + openinvoicedataMerchantData, + openinvoicedataNumberOfLines, + openinvoicedataRecipientFirstName, + openinvoicedataRecipientLastName, + openinvoicedataLineItemNrCurrencyCode, + openinvoicedataLineItemNrDescription, + openinvoicedataLineItemNrItemAmount, + openinvoicedataLineItemNrItemId, + openinvoicedataLineItemNrItemVatAmount, + openinvoicedataLineItemNrItemVatPercentage, + openinvoicedataLineItemNrNumberOfItems, + openinvoicedataLineItemNrReturnShippingCompany, + openinvoicedataLineItemNrReturnTrackingNumber, + openinvoicedataLineItemNrReturnTrackingUri, + openinvoicedataLineItemNrShippingCompany, + openinvoicedataLineItemNrShippingMethod, + openinvoicedataLineItemNrTrackingNumber, + openinvoicedataLineItemNrTrackingUri); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataOpenInvoice {\n"); - sb.append(" openinvoicedataMerchantData: ").append(toIndentedString(openinvoicedataMerchantData)).append("\n"); - sb.append(" openinvoicedataNumberOfLines: ").append(toIndentedString(openinvoicedataNumberOfLines)).append("\n"); - sb.append(" openinvoicedataRecipientFirstName: ").append(toIndentedString(openinvoicedataRecipientFirstName)).append("\n"); - sb.append(" openinvoicedataRecipientLastName: ").append(toIndentedString(openinvoicedataRecipientLastName)).append("\n"); - sb.append(" openinvoicedataLineItemNrCurrencyCode: ").append(toIndentedString(openinvoicedataLineItemNrCurrencyCode)).append("\n"); - sb.append(" openinvoicedataLineItemNrDescription: ").append(toIndentedString(openinvoicedataLineItemNrDescription)).append("\n"); - sb.append(" openinvoicedataLineItemNrItemAmount: ").append(toIndentedString(openinvoicedataLineItemNrItemAmount)).append("\n"); - sb.append(" openinvoicedataLineItemNrItemId: ").append(toIndentedString(openinvoicedataLineItemNrItemId)).append("\n"); - sb.append(" openinvoicedataLineItemNrItemVatAmount: ").append(toIndentedString(openinvoicedataLineItemNrItemVatAmount)).append("\n"); - sb.append(" openinvoicedataLineItemNrItemVatPercentage: ").append(toIndentedString(openinvoicedataLineItemNrItemVatPercentage)).append("\n"); - sb.append(" openinvoicedataLineItemNrNumberOfItems: ").append(toIndentedString(openinvoicedataLineItemNrNumberOfItems)).append("\n"); - sb.append(" openinvoicedataLineItemNrReturnShippingCompany: ").append(toIndentedString(openinvoicedataLineItemNrReturnShippingCompany)).append("\n"); - sb.append(" openinvoicedataLineItemNrReturnTrackingNumber: ").append(toIndentedString(openinvoicedataLineItemNrReturnTrackingNumber)).append("\n"); - sb.append(" openinvoicedataLineItemNrReturnTrackingUri: ").append(toIndentedString(openinvoicedataLineItemNrReturnTrackingUri)).append("\n"); - sb.append(" openinvoicedataLineItemNrShippingCompany: ").append(toIndentedString(openinvoicedataLineItemNrShippingCompany)).append("\n"); - sb.append(" openinvoicedataLineItemNrShippingMethod: ").append(toIndentedString(openinvoicedataLineItemNrShippingMethod)).append("\n"); - sb.append(" openinvoicedataLineItemNrTrackingNumber: ").append(toIndentedString(openinvoicedataLineItemNrTrackingNumber)).append("\n"); - sb.append(" openinvoicedataLineItemNrTrackingUri: ").append(toIndentedString(openinvoicedataLineItemNrTrackingUri)).append("\n"); + sb.append(" openinvoicedataMerchantData: ") + .append(toIndentedString(openinvoicedataMerchantData)) + .append("\n"); + sb.append(" openinvoicedataNumberOfLines: ") + .append(toIndentedString(openinvoicedataNumberOfLines)) + .append("\n"); + sb.append(" openinvoicedataRecipientFirstName: ") + .append(toIndentedString(openinvoicedataRecipientFirstName)) + .append("\n"); + sb.append(" openinvoicedataRecipientLastName: ") + .append(toIndentedString(openinvoicedataRecipientLastName)) + .append("\n"); + sb.append(" openinvoicedataLineItemNrCurrencyCode: ") + .append(toIndentedString(openinvoicedataLineItemNrCurrencyCode)) + .append("\n"); + sb.append(" openinvoicedataLineItemNrDescription: ") + .append(toIndentedString(openinvoicedataLineItemNrDescription)) + .append("\n"); + sb.append(" openinvoicedataLineItemNrItemAmount: ") + .append(toIndentedString(openinvoicedataLineItemNrItemAmount)) + .append("\n"); + sb.append(" openinvoicedataLineItemNrItemId: ") + .append(toIndentedString(openinvoicedataLineItemNrItemId)) + .append("\n"); + sb.append(" openinvoicedataLineItemNrItemVatAmount: ") + .append(toIndentedString(openinvoicedataLineItemNrItemVatAmount)) + .append("\n"); + sb.append(" openinvoicedataLineItemNrItemVatPercentage: ") + .append(toIndentedString(openinvoicedataLineItemNrItemVatPercentage)) + .append("\n"); + sb.append(" openinvoicedataLineItemNrNumberOfItems: ") + .append(toIndentedString(openinvoicedataLineItemNrNumberOfItems)) + .append("\n"); + sb.append(" openinvoicedataLineItemNrReturnShippingCompany: ") + .append(toIndentedString(openinvoicedataLineItemNrReturnShippingCompany)) + .append("\n"); + sb.append(" openinvoicedataLineItemNrReturnTrackingNumber: ") + .append(toIndentedString(openinvoicedataLineItemNrReturnTrackingNumber)) + .append("\n"); + sb.append(" openinvoicedataLineItemNrReturnTrackingUri: ") + .append(toIndentedString(openinvoicedataLineItemNrReturnTrackingUri)) + .append("\n"); + sb.append(" openinvoicedataLineItemNrShippingCompany: ") + .append(toIndentedString(openinvoicedataLineItemNrShippingCompany)) + .append("\n"); + sb.append(" openinvoicedataLineItemNrShippingMethod: ") + .append(toIndentedString(openinvoicedataLineItemNrShippingMethod)) + .append("\n"); + sb.append(" openinvoicedataLineItemNrTrackingNumber: ") + .append(toIndentedString(openinvoicedataLineItemNrTrackingNumber)) + .append("\n"); + sb.append(" openinvoicedataLineItemNrTrackingUri: ") + .append(toIndentedString(openinvoicedataLineItemNrTrackingUri)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -756,21 +1000,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalDataOpenInvoice given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataOpenInvoice - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataOpenInvoice + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalDataOpenInvoice */ - public static AdditionalDataOpenInvoice fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalDataOpenInvoice fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataOpenInvoice.class); } -/** - * Convert an instance of AdditionalDataOpenInvoice to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalDataOpenInvoice to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataOpi.java b/src/main/java/com/adyen/model/payment/AdditionalDataOpi.java index 7e5705756..1bd4169c1 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataOpi.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataOpi.java @@ -2,46 +2,40 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AdditionalDataOpi - */ -@JsonPropertyOrder({ - AdditionalDataOpi.JSON_PROPERTY_OPI_INCLUDE_TRANS_TOKEN -}) - +/** AdditionalDataOpi */ +@JsonPropertyOrder({AdditionalDataOpi.JSON_PROPERTY_OPI_INCLUDE_TRANS_TOKEN}) public class AdditionalDataOpi { public static final String JSON_PROPERTY_OPI_INCLUDE_TRANS_TOKEN = "opi.includeTransToken"; private String opiIncludeTransToken; - public AdditionalDataOpi() { - } + public AdditionalDataOpi() {} /** - * Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an `opi.transToken` as additional data in the response. You can store this Oracle Payment Interface token in your Oracle Opera database. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an + * `opi.transToken` as additional data in the response. You can store this Oracle + * Payment Interface token in your Oracle Opera database. For more information and required + * settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). * - * @param opiIncludeTransToken Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an `opi.transToken` as additional data in the response. You can store this Oracle Payment Interface token in your Oracle Opera database. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * @param opiIncludeTransToken Optional boolean indicator. Set to **true** if you want an + * ecommerce transaction to return an `opi.transToken` as additional data in the + * response. You can store this Oracle Payment Interface token in your Oracle Opera database. + * For more information and required settings, see [Oracle + * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). * @return the current {@code AdditionalDataOpi} instance, allowing for method chaining */ public AdditionalDataOpi opiIncludeTransToken(String opiIncludeTransToken) { @@ -50,8 +44,16 @@ public AdditionalDataOpi opiIncludeTransToken(String opiIncludeTransToken) { } /** - * Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an `opi.transToken` as additional data in the response. You can store this Oracle Payment Interface token in your Oracle Opera database. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). - * @return opiIncludeTransToken Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an `opi.transToken` as additional data in the response. You can store this Oracle Payment Interface token in your Oracle Opera database. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an + * `opi.transToken` as additional data in the response. You can store this Oracle + * Payment Interface token in your Oracle Opera database. For more information and required + * settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * + * @return opiIncludeTransToken Optional boolean indicator. Set to **true** if you want an + * ecommerce transaction to return an `opi.transToken` as additional data in the + * response. You can store this Oracle Payment Interface token in your Oracle Opera database. + * For more information and required settings, see [Oracle + * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). */ @JsonProperty(JSON_PROPERTY_OPI_INCLUDE_TRANS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,9 +62,16 @@ public String getOpiIncludeTransToken() { } /** - * Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an `opi.transToken` as additional data in the response. You can store this Oracle Payment Interface token in your Oracle Opera database. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an + * `opi.transToken` as additional data in the response. You can store this Oracle + * Payment Interface token in your Oracle Opera database. For more information and required + * settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). * - * @param opiIncludeTransToken Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an `opi.transToken` as additional data in the response. You can store this Oracle Payment Interface token in your Oracle Opera database. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * @param opiIncludeTransToken Optional boolean indicator. Set to **true** if you want an + * ecommerce transaction to return an `opi.transToken` as additional data in the + * response. You can store this Oracle Payment Interface token in your Oracle Opera database. + * For more information and required settings, see [Oracle + * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). */ @JsonProperty(JSON_PROPERTY_OPI_INCLUDE_TRANS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +79,7 @@ public void setOpiIncludeTransToken(String opiIncludeTransToken) { this.opiIncludeTransToken = opiIncludeTransToken; } - /** - * Return true if this AdditionalDataOpi object is equal to o. - */ + /** Return true if this AdditionalDataOpi object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -94,14 +101,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataOpi {\n"); - sb.append(" opiIncludeTransToken: ").append(toIndentedString(opiIncludeTransToken)).append("\n"); + sb.append(" opiIncludeTransToken: ") + .append(toIndentedString(opiIncludeTransToken)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,7 +118,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalDataOpi given an JSON string * * @param jsonString JSON string @@ -120,11 +128,12 @@ private String toIndentedString(Object o) { public static AdditionalDataOpi fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataOpi.class); } -/** - * Convert an instance of AdditionalDataOpi to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalDataOpi to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataRatepay.java b/src/main/java/com/adyen/model/payment/AdditionalDataRatepay.java index 1f7bd4d90..d5f232973 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataRatepay.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataRatepay.java @@ -2,31 +2,22 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AdditionalDataRatepay - */ +/** AdditionalDataRatepay */ @JsonPropertyOrder({ AdditionalDataRatepay.JSON_PROPERTY_RATEPAY_INSTALLMENT_AMOUNT, AdditionalDataRatepay.JSON_PROPERTY_RATEPAY_INTEREST_RATE, @@ -37,7 +28,6 @@ AdditionalDataRatepay.JSON_PROPERTY_RATEPAYDATA_INVOICE_DATE, AdditionalDataRatepay.JSON_PROPERTY_RATEPAYDATA_INVOICE_ID }) - public class AdditionalDataRatepay { public static final String JSON_PROPERTY_RATEPAY_INSTALLMENT_AMOUNT = "ratepay.installmentAmount"; private String ratepayInstallmentAmount; @@ -45,7 +35,8 @@ public class AdditionalDataRatepay { public static final String JSON_PROPERTY_RATEPAY_INTEREST_RATE = "ratepay.interestRate"; private String ratepayInterestRate; - public static final String JSON_PROPERTY_RATEPAY_LAST_INSTALLMENT_AMOUNT = "ratepay.lastInstallmentAmount"; + public static final String JSON_PROPERTY_RATEPAY_LAST_INSTALLMENT_AMOUNT = + "ratepay.lastInstallmentAmount"; private String ratepayLastInstallmentAmount; public static final String JSON_PROPERTY_RATEPAY_PAYMENT_FIRSTDAY = "ratepay.paymentFirstday"; @@ -63,8 +54,7 @@ public class AdditionalDataRatepay { public static final String JSON_PROPERTY_RATEPAYDATA_INVOICE_ID = "ratepaydata.invoiceId"; private String ratepaydataInvoiceId; - public AdditionalDataRatepay() { - } + public AdditionalDataRatepay() {} /** * Amount the customer has to pay each month. @@ -79,6 +69,7 @@ public AdditionalDataRatepay ratepayInstallmentAmount(String ratepayInstallmentA /** * Amount the customer has to pay each month. + * * @return ratepayInstallmentAmount Amount the customer has to pay each month. */ @JsonProperty(JSON_PROPERTY_RATEPAY_INSTALLMENT_AMOUNT) @@ -111,6 +102,7 @@ public AdditionalDataRatepay ratepayInterestRate(String ratepayInterestRate) { /** * Interest rate of this installment. + * * @return ratepayInterestRate Interest rate of this installment. */ @JsonProperty(JSON_PROPERTY_RATEPAY_INTEREST_RATE) @@ -143,6 +135,7 @@ public AdditionalDataRatepay ratepayLastInstallmentAmount(String ratepayLastInst /** * Amount of the last installment. + * * @return ratepayLastInstallmentAmount Amount of the last installment. */ @JsonProperty(JSON_PROPERTY_RATEPAY_LAST_INSTALLMENT_AMOUNT) @@ -175,6 +168,7 @@ public AdditionalDataRatepay ratepayPaymentFirstday(String ratepayPaymentFirstda /** * Calendar day of the first payment. + * * @return ratepayPaymentFirstday Calendar day of the first payment. */ @JsonProperty(JSON_PROPERTY_RATEPAY_PAYMENT_FIRSTDAY) @@ -207,6 +201,7 @@ public AdditionalDataRatepay ratepaydataDeliveryDate(String ratepaydataDeliveryD /** * Date the merchant delivered the goods to the customer. + * * @return ratepaydataDeliveryDate Date the merchant delivered the goods to the customer. */ @JsonProperty(JSON_PROPERTY_RATEPAYDATA_DELIVERY_DATE) @@ -239,6 +234,7 @@ public AdditionalDataRatepay ratepaydataDueDate(String ratepaydataDueDate) { /** * Date by which the customer must settle the payment. + * * @return ratepaydataDueDate Date by which the customer must settle the payment. */ @JsonProperty(JSON_PROPERTY_RATEPAYDATA_DUE_DATE) @@ -259,9 +255,11 @@ public void setRatepaydataDueDate(String ratepaydataDueDate) { } /** - * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. + * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery + * date. * - * @param ratepaydataInvoiceDate Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. + * @param ratepaydataInvoiceDate Invoice date, defined by the merchant. If not included, the + * invoice date is set to the delivery date. * @return the current {@code AdditionalDataRatepay} instance, allowing for method chaining */ public AdditionalDataRatepay ratepaydataInvoiceDate(String ratepaydataInvoiceDate) { @@ -270,8 +268,11 @@ public AdditionalDataRatepay ratepaydataInvoiceDate(String ratepaydataInvoiceDat } /** - * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. - * @return ratepaydataInvoiceDate Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. + * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery + * date. + * + * @return ratepaydataInvoiceDate Invoice date, defined by the merchant. If not included, the + * invoice date is set to the delivery date. */ @JsonProperty(JSON_PROPERTY_RATEPAYDATA_INVOICE_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -280,9 +281,11 @@ public String getRatepaydataInvoiceDate() { } /** - * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. + * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery + * date. * - * @param ratepaydataInvoiceDate Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. + * @param ratepaydataInvoiceDate Invoice date, defined by the merchant. If not included, the + * invoice date is set to the delivery date. */ @JsonProperty(JSON_PROPERTY_RATEPAYDATA_INVOICE_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -293,7 +296,8 @@ public void setRatepaydataInvoiceDate(String ratepaydataInvoiceDate) { /** * Identification name or number for the invoice, defined by the merchant. * - * @param ratepaydataInvoiceId Identification name or number for the invoice, defined by the merchant. + * @param ratepaydataInvoiceId Identification name or number for the invoice, defined by the + * merchant. * @return the current {@code AdditionalDataRatepay} instance, allowing for method chaining */ public AdditionalDataRatepay ratepaydataInvoiceId(String ratepaydataInvoiceId) { @@ -303,7 +307,9 @@ public AdditionalDataRatepay ratepaydataInvoiceId(String ratepaydataInvoiceId) { /** * Identification name or number for the invoice, defined by the merchant. - * @return ratepaydataInvoiceId Identification name or number for the invoice, defined by the merchant. + * + * @return ratepaydataInvoiceId Identification name or number for the invoice, defined by the + * merchant. */ @JsonProperty(JSON_PROPERTY_RATEPAYDATA_INVOICE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -314,7 +320,8 @@ public String getRatepaydataInvoiceId() { /** * Identification name or number for the invoice, defined by the merchant. * - * @param ratepaydataInvoiceId Identification name or number for the invoice, defined by the merchant. + * @param ratepaydataInvoiceId Identification name or number for the invoice, defined by the + * merchant. */ @JsonProperty(JSON_PROPERTY_RATEPAYDATA_INVOICE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -322,9 +329,7 @@ public void setRatepaydataInvoiceId(String ratepaydataInvoiceId) { this.ratepaydataInvoiceId = ratepaydataInvoiceId; } - /** - * Return true if this AdditionalDataRatepay object is equal to o. - */ + /** Return true if this AdditionalDataRatepay object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -334,40 +339,64 @@ public boolean equals(Object o) { return false; } AdditionalDataRatepay additionalDataRatepay = (AdditionalDataRatepay) o; - return Objects.equals(this.ratepayInstallmentAmount, additionalDataRatepay.ratepayInstallmentAmount) && - Objects.equals(this.ratepayInterestRate, additionalDataRatepay.ratepayInterestRate) && - Objects.equals(this.ratepayLastInstallmentAmount, additionalDataRatepay.ratepayLastInstallmentAmount) && - Objects.equals(this.ratepayPaymentFirstday, additionalDataRatepay.ratepayPaymentFirstday) && - Objects.equals(this.ratepaydataDeliveryDate, additionalDataRatepay.ratepaydataDeliveryDate) && - Objects.equals(this.ratepaydataDueDate, additionalDataRatepay.ratepaydataDueDate) && - Objects.equals(this.ratepaydataInvoiceDate, additionalDataRatepay.ratepaydataInvoiceDate) && - Objects.equals(this.ratepaydataInvoiceId, additionalDataRatepay.ratepaydataInvoiceId); + return Objects.equals( + this.ratepayInstallmentAmount, additionalDataRatepay.ratepayInstallmentAmount) + && Objects.equals(this.ratepayInterestRate, additionalDataRatepay.ratepayInterestRate) + && Objects.equals( + this.ratepayLastInstallmentAmount, additionalDataRatepay.ratepayLastInstallmentAmount) + && Objects.equals(this.ratepayPaymentFirstday, additionalDataRatepay.ratepayPaymentFirstday) + && Objects.equals( + this.ratepaydataDeliveryDate, additionalDataRatepay.ratepaydataDeliveryDate) + && Objects.equals(this.ratepaydataDueDate, additionalDataRatepay.ratepaydataDueDate) + && Objects.equals(this.ratepaydataInvoiceDate, additionalDataRatepay.ratepaydataInvoiceDate) + && Objects.equals(this.ratepaydataInvoiceId, additionalDataRatepay.ratepaydataInvoiceId); } @Override public int hashCode() { - return Objects.hash(ratepayInstallmentAmount, ratepayInterestRate, ratepayLastInstallmentAmount, ratepayPaymentFirstday, ratepaydataDeliveryDate, ratepaydataDueDate, ratepaydataInvoiceDate, ratepaydataInvoiceId); + return Objects.hash( + ratepayInstallmentAmount, + ratepayInterestRate, + ratepayLastInstallmentAmount, + ratepayPaymentFirstday, + ratepaydataDeliveryDate, + ratepaydataDueDate, + ratepaydataInvoiceDate, + ratepaydataInvoiceId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataRatepay {\n"); - sb.append(" ratepayInstallmentAmount: ").append(toIndentedString(ratepayInstallmentAmount)).append("\n"); - sb.append(" ratepayInterestRate: ").append(toIndentedString(ratepayInterestRate)).append("\n"); - sb.append(" ratepayLastInstallmentAmount: ").append(toIndentedString(ratepayLastInstallmentAmount)).append("\n"); - sb.append(" ratepayPaymentFirstday: ").append(toIndentedString(ratepayPaymentFirstday)).append("\n"); - sb.append(" ratepaydataDeliveryDate: ").append(toIndentedString(ratepaydataDeliveryDate)).append("\n"); + sb.append(" ratepayInstallmentAmount: ") + .append(toIndentedString(ratepayInstallmentAmount)) + .append("\n"); + sb.append(" ratepayInterestRate: ") + .append(toIndentedString(ratepayInterestRate)) + .append("\n"); + sb.append(" ratepayLastInstallmentAmount: ") + .append(toIndentedString(ratepayLastInstallmentAmount)) + .append("\n"); + sb.append(" ratepayPaymentFirstday: ") + .append(toIndentedString(ratepayPaymentFirstday)) + .append("\n"); + sb.append(" ratepaydataDeliveryDate: ") + .append(toIndentedString(ratepaydataDeliveryDate)) + .append("\n"); sb.append(" ratepaydataDueDate: ").append(toIndentedString(ratepaydataDueDate)).append("\n"); - sb.append(" ratepaydataInvoiceDate: ").append(toIndentedString(ratepaydataInvoiceDate)).append("\n"); - sb.append(" ratepaydataInvoiceId: ").append(toIndentedString(ratepaydataInvoiceId)).append("\n"); + sb.append(" ratepaydataInvoiceDate: ") + .append(toIndentedString(ratepaydataInvoiceDate)) + .append("\n"); + sb.append(" ratepaydataInvoiceId: ") + .append(toIndentedString(ratepaydataInvoiceId)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -376,21 +405,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalDataRatepay given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataRatepay - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataRatepay + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalDataRatepay */ public static AdditionalDataRatepay fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataRatepay.class); } -/** - * Convert an instance of AdditionalDataRatepay to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalDataRatepay to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataRetry.java b/src/main/java/com/adyen/model/payment/AdditionalDataRetry.java index 9bece8539..f88a6388e 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataRetry.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataRetry.java @@ -2,37 +2,27 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AdditionalDataRetry - */ +/** AdditionalDataRetry */ @JsonPropertyOrder({ AdditionalDataRetry.JSON_PROPERTY_RETRY_CHAIN_ATTEMPT_NUMBER, AdditionalDataRetry.JSON_PROPERTY_RETRY_ORDER_ATTEMPT_NUMBER, AdditionalDataRetry.JSON_PROPERTY_RETRY_SKIP_RETRY }) - public class AdditionalDataRetry { public static final String JSON_PROPERTY_RETRY_CHAIN_ATTEMPT_NUMBER = "retry.chainAttemptNumber"; private String retryChainAttemptNumber; @@ -43,13 +33,23 @@ public class AdditionalDataRetry { public static final String JSON_PROPERTY_RETRY_SKIP_RETRY = "retry.skipRetry"; private String retrySkipRetry; - public AdditionalDataRetry() { - } + public AdditionalDataRetry() {} /** - * The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * The number of times the transaction (not order) has been retried between different payment + * service providers. For instance, the `chainAttemptNumber` set to 2 means that this + * transaction has been recently tried on another provider before being sent to Adyen. > If you + * submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and + * `retry.skipRetry` values, we also recommend you provide the + * `merchantOrderReference` to facilitate linking payment attempts together. * - * @param retryChainAttemptNumber The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * @param retryChainAttemptNumber The number of times the transaction (not order) has been retried + * between different payment service providers. For instance, the + * `chainAttemptNumber` set to 2 means that this transaction has been recently tried + * on another provider before being sent to Adyen. > If you submit + * `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and + * `retry.skipRetry` values, we also recommend you provide the + * `merchantOrderReference` to facilitate linking payment attempts together. * @return the current {@code AdditionalDataRetry} instance, allowing for method chaining */ public AdditionalDataRetry retryChainAttemptNumber(String retryChainAttemptNumber) { @@ -58,8 +58,20 @@ public AdditionalDataRetry retryChainAttemptNumber(String retryChainAttemptNumbe } /** - * The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. - * @return retryChainAttemptNumber The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * The number of times the transaction (not order) has been retried between different payment + * service providers. For instance, the `chainAttemptNumber` set to 2 means that this + * transaction has been recently tried on another provider before being sent to Adyen. > If you + * submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and + * `retry.skipRetry` values, we also recommend you provide the + * `merchantOrderReference` to facilitate linking payment attempts together. + * + * @return retryChainAttemptNumber The number of times the transaction (not order) has been + * retried between different payment service providers. For instance, the + * `chainAttemptNumber` set to 2 means that this transaction has been recently tried + * on another provider before being sent to Adyen. > If you submit + * `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and + * `retry.skipRetry` values, we also recommend you provide the + * `merchantOrderReference` to facilitate linking payment attempts together. */ @JsonProperty(JSON_PROPERTY_RETRY_CHAIN_ATTEMPT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,9 +80,20 @@ public String getRetryChainAttemptNumber() { } /** - * The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * The number of times the transaction (not order) has been retried between different payment + * service providers. For instance, the `chainAttemptNumber` set to 2 means that this + * transaction has been recently tried on another provider before being sent to Adyen. > If you + * submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and + * `retry.skipRetry` values, we also recommend you provide the + * `merchantOrderReference` to facilitate linking payment attempts together. * - * @param retryChainAttemptNumber The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * @param retryChainAttemptNumber The number of times the transaction (not order) has been retried + * between different payment service providers. For instance, the + * `chainAttemptNumber` set to 2 means that this transaction has been recently tried + * on another provider before being sent to Adyen. > If you submit + * `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and + * `retry.skipRetry` values, we also recommend you provide the + * `merchantOrderReference` to facilitate linking payment attempts together. */ @JsonProperty(JSON_PROPERTY_RETRY_CHAIN_ATTEMPT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,9 +102,20 @@ public void setRetryChainAttemptNumber(String retryChainAttemptNumber) { } /** - * The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * The index of the attempt to bill a particular order, which is identified by the + * `merchantOrderReference` field. For example, if a recurring transaction fails and is + * retried one day later, then the order number for these attempts would be 1 and 2, respectively. + * > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, + * and `retry.skipRetry` values, we also recommend you provide the + * `merchantOrderReference` to facilitate linking payment attempts together. * - * @param retryOrderAttemptNumber The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * @param retryOrderAttemptNumber The index of the attempt to bill a particular order, which is + * identified by the `merchantOrderReference` field. For example, if a recurring + * transaction fails and is retried one day later, then the order number for these attempts + * would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, + * `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also + * recommend you provide the `merchantOrderReference` to facilitate linking payment + * attempts together. * @return the current {@code AdditionalDataRetry} instance, allowing for method chaining */ public AdditionalDataRetry retryOrderAttemptNumber(String retryOrderAttemptNumber) { @@ -90,8 +124,20 @@ public AdditionalDataRetry retryOrderAttemptNumber(String retryOrderAttemptNumbe } /** - * The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. - * @return retryOrderAttemptNumber The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * The index of the attempt to bill a particular order, which is identified by the + * `merchantOrderReference` field. For example, if a recurring transaction fails and is + * retried one day later, then the order number for these attempts would be 1 and 2, respectively. + * > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, + * and `retry.skipRetry` values, we also recommend you provide the + * `merchantOrderReference` to facilitate linking payment attempts together. + * + * @return retryOrderAttemptNumber The index of the attempt to bill a particular order, which is + * identified by the `merchantOrderReference` field. For example, if a recurring + * transaction fails and is retried one day later, then the order number for these attempts + * would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, + * `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also + * recommend you provide the `merchantOrderReference` to facilitate linking payment + * attempts together. */ @JsonProperty(JSON_PROPERTY_RETRY_ORDER_ATTEMPT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,9 +146,20 @@ public String getRetryOrderAttemptNumber() { } /** - * The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * The index of the attempt to bill a particular order, which is identified by the + * `merchantOrderReference` field. For example, if a recurring transaction fails and is + * retried one day later, then the order number for these attempts would be 1 and 2, respectively. + * > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, + * and `retry.skipRetry` values, we also recommend you provide the + * `merchantOrderReference` to facilitate linking payment attempts together. * - * @param retryOrderAttemptNumber The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * @param retryOrderAttemptNumber The index of the attempt to bill a particular order, which is + * identified by the `merchantOrderReference` field. For example, if a recurring + * transaction fails and is retried one day later, then the order number for these attempts + * would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, + * `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also + * recommend you provide the `merchantOrderReference` to facilitate linking payment + * attempts together. */ @JsonProperty(JSON_PROPERTY_RETRY_ORDER_ATTEMPT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,9 +168,16 @@ public void setRetryOrderAttemptNumber(String retryOrderAttemptNumber) { } /** - * The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. + * > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, + * and `retry.skipRetry` values, we also recommend you provide the + * `merchantOrderReference` to facilitate linking payment attempts together. * - * @param retrySkipRetry The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * @param retrySkipRetry The Boolean value indicating whether Adyen should skip or retry this + * transaction, if possible. > If you submit `retry.chainAttemptNumber`, + * `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also + * recommend you provide the `merchantOrderReference` to facilitate linking payment + * attempts together. * @return the current {@code AdditionalDataRetry} instance, allowing for method chaining */ public AdditionalDataRetry retrySkipRetry(String retrySkipRetry) { @@ -122,8 +186,16 @@ public AdditionalDataRetry retrySkipRetry(String retrySkipRetry) { } /** - * The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. - * @return retrySkipRetry The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. + * > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, + * and `retry.skipRetry` values, we also recommend you provide the + * `merchantOrderReference` to facilitate linking payment attempts together. + * + * @return retrySkipRetry The Boolean value indicating whether Adyen should skip or retry this + * transaction, if possible. > If you submit `retry.chainAttemptNumber`, + * `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also + * recommend you provide the `merchantOrderReference` to facilitate linking payment + * attempts together. */ @JsonProperty(JSON_PROPERTY_RETRY_SKIP_RETRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,9 +204,16 @@ public String getRetrySkipRetry() { } /** - * The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. + * > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, + * and `retry.skipRetry` values, we also recommend you provide the + * `merchantOrderReference` to facilitate linking payment attempts together. * - * @param retrySkipRetry The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + * @param retrySkipRetry The Boolean value indicating whether Adyen should skip or retry this + * transaction, if possible. > If you submit `retry.chainAttemptNumber`, + * `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also + * recommend you provide the `merchantOrderReference` to facilitate linking payment + * attempts together. */ @JsonProperty(JSON_PROPERTY_RETRY_SKIP_RETRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +221,7 @@ public void setRetrySkipRetry(String retrySkipRetry) { this.retrySkipRetry = retrySkipRetry; } - /** - * Return true if this AdditionalDataRetry object is equal to o. - */ + /** Return true if this AdditionalDataRetry object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +231,9 @@ public boolean equals(Object o) { return false; } AdditionalDataRetry additionalDataRetry = (AdditionalDataRetry) o; - return Objects.equals(this.retryChainAttemptNumber, additionalDataRetry.retryChainAttemptNumber) && - Objects.equals(this.retryOrderAttemptNumber, additionalDataRetry.retryOrderAttemptNumber) && - Objects.equals(this.retrySkipRetry, additionalDataRetry.retrySkipRetry); + return Objects.equals(this.retryChainAttemptNumber, additionalDataRetry.retryChainAttemptNumber) + && Objects.equals(this.retryOrderAttemptNumber, additionalDataRetry.retryOrderAttemptNumber) + && Objects.equals(this.retrySkipRetry, additionalDataRetry.retrySkipRetry); } @Override @@ -168,16 +245,19 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataRetry {\n"); - sb.append(" retryChainAttemptNumber: ").append(toIndentedString(retryChainAttemptNumber)).append("\n"); - sb.append(" retryOrderAttemptNumber: ").append(toIndentedString(retryOrderAttemptNumber)).append("\n"); + sb.append(" retryChainAttemptNumber: ") + .append(toIndentedString(retryChainAttemptNumber)) + .append("\n"); + sb.append(" retryOrderAttemptNumber: ") + .append(toIndentedString(retryOrderAttemptNumber)) + .append("\n"); sb.append(" retrySkipRetry: ").append(toIndentedString(retrySkipRetry)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +266,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalDataRetry given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataRetry - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataRetry + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalDataRetry */ public static AdditionalDataRetry fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataRetry.class); } -/** - * Convert an instance of AdditionalDataRetry to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalDataRetry to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataRisk.java b/src/main/java/com/adyen/model/payment/AdditionalDataRisk.java index c0924f491..89c8a58a4 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataRisk.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataRisk.java @@ -2,31 +2,22 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AdditionalDataRisk - */ +/** AdditionalDataRisk */ @JsonPropertyOrder({ AdditionalDataRisk.JSON_PROPERTY_RISKDATA_CUSTOM_FIELD_NAME, AdditionalDataRisk.JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_AMOUNT_PER_ITEM, @@ -44,84 +35,110 @@ AdditionalDataRisk.JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_UPC, AdditionalDataRisk.JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_CODE, AdditionalDataRisk.JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_AMOUNT, - AdditionalDataRisk.JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_CURRENCY, - AdditionalDataRisk.JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_PERCENTAGE, + AdditionalDataRisk + .JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_CURRENCY, + AdditionalDataRisk + .JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_PERCENTAGE, AdditionalDataRisk.JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_NAME, AdditionalDataRisk.JSON_PROPERTY_RISKDATA_RISK_PROFILE_REFERENCE, AdditionalDataRisk.JSON_PROPERTY_RISKDATA_SKIP_RISK }) - public class AdditionalDataRisk { - public static final String JSON_PROPERTY_RISKDATA_CUSTOM_FIELD_NAME = "riskdata.[customFieldName]"; + public static final String JSON_PROPERTY_RISKDATA_CUSTOM_FIELD_NAME = + "riskdata.[customFieldName]"; private String riskdataCustomFieldName; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_AMOUNT_PER_ITEM = "riskdata.basket.item[itemNr].amountPerItem"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_AMOUNT_PER_ITEM = + "riskdata.basket.item[itemNr].amountPerItem"; private String riskdataBasketItemItemNrAmountPerItem; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_BRAND = "riskdata.basket.item[itemNr].brand"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_BRAND = + "riskdata.basket.item[itemNr].brand"; private String riskdataBasketItemItemNrBrand; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_CATEGORY = "riskdata.basket.item[itemNr].category"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_CATEGORY = + "riskdata.basket.item[itemNr].category"; private String riskdataBasketItemItemNrCategory; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_COLOR = "riskdata.basket.item[itemNr].color"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_COLOR = + "riskdata.basket.item[itemNr].color"; private String riskdataBasketItemItemNrColor; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_CURRENCY = "riskdata.basket.item[itemNr].currency"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_CURRENCY = + "riskdata.basket.item[itemNr].currency"; private String riskdataBasketItemItemNrCurrency; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_ITEM_I_D = "riskdata.basket.item[itemNr].itemID"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_ITEM_I_D = + "riskdata.basket.item[itemNr].itemID"; private String riskdataBasketItemItemNrItemID; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_MANUFACTURER = "riskdata.basket.item[itemNr].manufacturer"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_MANUFACTURER = + "riskdata.basket.item[itemNr].manufacturer"; private String riskdataBasketItemItemNrManufacturer; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_PRODUCT_TITLE = "riskdata.basket.item[itemNr].productTitle"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_PRODUCT_TITLE = + "riskdata.basket.item[itemNr].productTitle"; private String riskdataBasketItemItemNrProductTitle; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_QUANTITY = "riskdata.basket.item[itemNr].quantity"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_QUANTITY = + "riskdata.basket.item[itemNr].quantity"; private String riskdataBasketItemItemNrQuantity; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_RECEIVER_EMAIL = "riskdata.basket.item[itemNr].receiverEmail"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_RECEIVER_EMAIL = + "riskdata.basket.item[itemNr].receiverEmail"; private String riskdataBasketItemItemNrReceiverEmail; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_SIZE = "riskdata.basket.item[itemNr].size"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_SIZE = + "riskdata.basket.item[itemNr].size"; private String riskdataBasketItemItemNrSize; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_SKU = "riskdata.basket.item[itemNr].sku"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_SKU = + "riskdata.basket.item[itemNr].sku"; private String riskdataBasketItemItemNrSku; - public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_UPC = "riskdata.basket.item[itemNr].upc"; + public static final String JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_UPC = + "riskdata.basket.item[itemNr].upc"; private String riskdataBasketItemItemNrUpc; - public static final String JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_CODE = "riskdata.promotions.promotion[itemNr].promotionCode"; + public static final String JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_CODE = + "riskdata.promotions.promotion[itemNr].promotionCode"; private String riskdataPromotionsPromotionItemNrPromotionCode; - public static final String JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_AMOUNT = "riskdata.promotions.promotion[itemNr].promotionDiscountAmount"; + public static final String + JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_AMOUNT = + "riskdata.promotions.promotion[itemNr].promotionDiscountAmount"; private String riskdataPromotionsPromotionItemNrPromotionDiscountAmount; - public static final String JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_CURRENCY = "riskdata.promotions.promotion[itemNr].promotionDiscountCurrency"; + public static final String + JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_CURRENCY = + "riskdata.promotions.promotion[itemNr].promotionDiscountCurrency"; private String riskdataPromotionsPromotionItemNrPromotionDiscountCurrency; - public static final String JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_PERCENTAGE = "riskdata.promotions.promotion[itemNr].promotionDiscountPercentage"; + public static final String + JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_PERCENTAGE = + "riskdata.promotions.promotion[itemNr].promotionDiscountPercentage"; private String riskdataPromotionsPromotionItemNrPromotionDiscountPercentage; - public static final String JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_NAME = "riskdata.promotions.promotion[itemNr].promotionName"; + public static final String JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_NAME = + "riskdata.promotions.promotion[itemNr].promotionName"; private String riskdataPromotionsPromotionItemNrPromotionName; - public static final String JSON_PROPERTY_RISKDATA_RISK_PROFILE_REFERENCE = "riskdata.riskProfileReference"; + public static final String JSON_PROPERTY_RISKDATA_RISK_PROFILE_REFERENCE = + "riskdata.riskProfileReference"; private String riskdataRiskProfileReference; public static final String JSON_PROPERTY_RISKDATA_SKIP_RISK = "riskdata.skipRisk"; private String riskdataSkipRisk; - public AdditionalDataRisk() { - } + public AdditionalDataRisk() {} /** - * The data for your custom risk field. For more information, refer to [Create custom risk fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). + * The data for your custom risk field. For more information, refer to [Create custom risk + * fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). * - * @param riskdataCustomFieldName The data for your custom risk field. For more information, refer to [Create custom risk fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). + * @param riskdataCustomFieldName The data for your custom risk field. For more information, refer + * to [Create custom risk + * fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ public AdditionalDataRisk riskdataCustomFieldName(String riskdataCustomFieldName) { @@ -130,8 +147,12 @@ public AdditionalDataRisk riskdataCustomFieldName(String riskdataCustomFieldName } /** - * The data for your custom risk field. For more information, refer to [Create custom risk fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). - * @return riskdataCustomFieldName The data for your custom risk field. For more information, refer to [Create custom risk fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). + * The data for your custom risk field. For more information, refer to [Create custom risk + * fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). + * + * @return riskdataCustomFieldName The data for your custom risk field. For more information, + * refer to [Create custom risk + * fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). */ @JsonProperty(JSON_PROPERTY_RISKDATA_CUSTOM_FIELD_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,9 +161,12 @@ public String getRiskdataCustomFieldName() { } /** - * The data for your custom risk field. For more information, refer to [Create custom risk fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). + * The data for your custom risk field. For more information, refer to [Create custom risk + * fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). * - * @param riskdataCustomFieldName The data for your custom risk field. For more information, refer to [Create custom risk fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). + * @param riskdataCustomFieldName The data for your custom risk field. For more information, refer + * to [Create custom risk + * fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). */ @JsonProperty(JSON_PROPERTY_RISKDATA_CUSTOM_FIELD_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,19 +175,25 @@ public void setRiskdataCustomFieldName(String riskdataCustomFieldName) { } /** - * The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The price of item in the basket, represented in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * - * @param riskdataBasketItemItemNrAmountPerItem The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @param riskdataBasketItemItemNrAmountPerItem The price of item in the basket, represented in + * [minor units](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataBasketItemItemNrAmountPerItem(String riskdataBasketItemItemNrAmountPerItem) { + public AdditionalDataRisk riskdataBasketItemItemNrAmountPerItem( + String riskdataBasketItemItemNrAmountPerItem) { this.riskdataBasketItemItemNrAmountPerItem = riskdataBasketItemItemNrAmountPerItem; return this; } /** - * The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). - * @return riskdataBasketItemItemNrAmountPerItem The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The price of item in the basket, represented in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). + * + * @return riskdataBasketItemItemNrAmountPerItem The price of item in the basket, represented in + * [minor units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_AMOUNT_PER_ITEM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,13 +202,16 @@ public String getRiskdataBasketItemItemNrAmountPerItem() { } /** - * The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The price of item in the basket, represented in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * - * @param riskdataBasketItemItemNrAmountPerItem The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @param riskdataBasketItemItemNrAmountPerItem The price of item in the basket, represented in + * [minor units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_AMOUNT_PER_ITEM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRiskdataBasketItemItemNrAmountPerItem(String riskdataBasketItemItemNrAmountPerItem) { + public void setRiskdataBasketItemItemNrAmountPerItem( + String riskdataBasketItemItemNrAmountPerItem) { this.riskdataBasketItemItemNrAmountPerItem = riskdataBasketItemItemNrAmountPerItem; } @@ -195,6 +228,7 @@ public AdditionalDataRisk riskdataBasketItemItemNrBrand(String riskdataBasketIte /** * Brand of the item. + * * @return riskdataBasketItemItemNrBrand Brand of the item. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_BRAND) @@ -220,13 +254,15 @@ public void setRiskdataBasketItemItemNrBrand(String riskdataBasketItemItemNrBran * @param riskdataBasketItemItemNrCategory Category of the item. * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataBasketItemItemNrCategory(String riskdataBasketItemItemNrCategory) { + public AdditionalDataRisk riskdataBasketItemItemNrCategory( + String riskdataBasketItemItemNrCategory) { this.riskdataBasketItemItemNrCategory = riskdataBasketItemItemNrCategory; return this; } /** * Category of the item. + * * @return riskdataBasketItemItemNrCategory Category of the item. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_CATEGORY) @@ -259,6 +295,7 @@ public AdditionalDataRisk riskdataBasketItemItemNrColor(String riskdataBasketIte /** * Color of the item. + * * @return riskdataBasketItemItemNrColor Color of the item. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_COLOR) @@ -281,17 +318,21 @@ public void setRiskdataBasketItemItemNrColor(String riskdataBasketItemItemNrColo /** * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). * - * @param riskdataBasketItemItemNrCurrency The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * @param riskdataBasketItemItemNrCurrency The three-character [ISO currency + * code](https://en.wikipedia.org/wiki/ISO_4217). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataBasketItemItemNrCurrency(String riskdataBasketItemItemNrCurrency) { + public AdditionalDataRisk riskdataBasketItemItemNrCurrency( + String riskdataBasketItemItemNrCurrency) { this.riskdataBasketItemItemNrCurrency = riskdataBasketItemItemNrCurrency; return this; } /** * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). - * @return riskdataBasketItemItemNrCurrency The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * + * @return riskdataBasketItemItemNrCurrency The three-character [ISO currency + * code](https://en.wikipedia.org/wiki/ISO_4217). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -302,7 +343,8 @@ public String getRiskdataBasketItemItemNrCurrency() { /** * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). * - * @param riskdataBasketItemItemNrCurrency The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * @param riskdataBasketItemItemNrCurrency The three-character [ISO currency + * code](https://en.wikipedia.org/wiki/ISO_4217). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -323,6 +365,7 @@ public AdditionalDataRisk riskdataBasketItemItemNrItemID(String riskdataBasketIt /** * ID of the item. + * * @return riskdataBasketItemItemNrItemID ID of the item. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_ITEM_I_D) @@ -348,13 +391,15 @@ public void setRiskdataBasketItemItemNrItemID(String riskdataBasketItemItemNrIte * @param riskdataBasketItemItemNrManufacturer Manufacturer of the item. * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataBasketItemItemNrManufacturer(String riskdataBasketItemItemNrManufacturer) { + public AdditionalDataRisk riskdataBasketItemItemNrManufacturer( + String riskdataBasketItemItemNrManufacturer) { this.riskdataBasketItemItemNrManufacturer = riskdataBasketItemItemNrManufacturer; return this; } /** * Manufacturer of the item. + * * @return riskdataBasketItemItemNrManufacturer Manufacturer of the item. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_MANUFACTURER) @@ -377,17 +422,21 @@ public void setRiskdataBasketItemItemNrManufacturer(String riskdataBasketItemIte /** * A text description of the product the invoice line refers to. * - * @param riskdataBasketItemItemNrProductTitle A text description of the product the invoice line refers to. + * @param riskdataBasketItemItemNrProductTitle A text description of the product the invoice line + * refers to. * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataBasketItemItemNrProductTitle(String riskdataBasketItemItemNrProductTitle) { + public AdditionalDataRisk riskdataBasketItemItemNrProductTitle( + String riskdataBasketItemItemNrProductTitle) { this.riskdataBasketItemItemNrProductTitle = riskdataBasketItemItemNrProductTitle; return this; } /** * A text description of the product the invoice line refers to. - * @return riskdataBasketItemItemNrProductTitle A text description of the product the invoice line refers to. + * + * @return riskdataBasketItemItemNrProductTitle A text description of the product the invoice line + * refers to. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_PRODUCT_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -398,7 +447,8 @@ public String getRiskdataBasketItemItemNrProductTitle() { /** * A text description of the product the invoice line refers to. * - * @param riskdataBasketItemItemNrProductTitle A text description of the product the invoice line refers to. + * @param riskdataBasketItemItemNrProductTitle A text description of the product the invoice line + * refers to. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_PRODUCT_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -412,13 +462,15 @@ public void setRiskdataBasketItemItemNrProductTitle(String riskdataBasketItemIte * @param riskdataBasketItemItemNrQuantity Quantity of the item purchased. * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataBasketItemItemNrQuantity(String riskdataBasketItemItemNrQuantity) { + public AdditionalDataRisk riskdataBasketItemItemNrQuantity( + String riskdataBasketItemItemNrQuantity) { this.riskdataBasketItemItemNrQuantity = riskdataBasketItemItemNrQuantity; return this; } /** * Quantity of the item purchased. + * * @return riskdataBasketItemItemNrQuantity Quantity of the item purchased. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_QUANTITY) @@ -441,17 +493,21 @@ public void setRiskdataBasketItemItemNrQuantity(String riskdataBasketItemItemNrQ /** * Email associated with the given product in the basket (usually in electronic gift cards). * - * @param riskdataBasketItemItemNrReceiverEmail Email associated with the given product in the basket (usually in electronic gift cards). + * @param riskdataBasketItemItemNrReceiverEmail Email associated with the given product in the + * basket (usually in electronic gift cards). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataBasketItemItemNrReceiverEmail(String riskdataBasketItemItemNrReceiverEmail) { + public AdditionalDataRisk riskdataBasketItemItemNrReceiverEmail( + String riskdataBasketItemItemNrReceiverEmail) { this.riskdataBasketItemItemNrReceiverEmail = riskdataBasketItemItemNrReceiverEmail; return this; } /** * Email associated with the given product in the basket (usually in electronic gift cards). - * @return riskdataBasketItemItemNrReceiverEmail Email associated with the given product in the basket (usually in electronic gift cards). + * + * @return riskdataBasketItemItemNrReceiverEmail Email associated with the given product in the + * basket (usually in electronic gift cards). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_RECEIVER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -462,11 +518,13 @@ public String getRiskdataBasketItemItemNrReceiverEmail() { /** * Email associated with the given product in the basket (usually in electronic gift cards). * - * @param riskdataBasketItemItemNrReceiverEmail Email associated with the given product in the basket (usually in electronic gift cards). + * @param riskdataBasketItemItemNrReceiverEmail Email associated with the given product in the + * basket (usually in electronic gift cards). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_RECEIVER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRiskdataBasketItemItemNrReceiverEmail(String riskdataBasketItemItemNrReceiverEmail) { + public void setRiskdataBasketItemItemNrReceiverEmail( + String riskdataBasketItemItemNrReceiverEmail) { this.riskdataBasketItemItemNrReceiverEmail = riskdataBasketItemItemNrReceiverEmail; } @@ -483,6 +541,7 @@ public AdditionalDataRisk riskdataBasketItemItemNrSize(String riskdataBasketItem /** * Size of the item. + * * @return riskdataBasketItemItemNrSize Size of the item. */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_SIZE) @@ -505,7 +564,8 @@ public void setRiskdataBasketItemItemNrSize(String riskdataBasketItemItemNrSize) /** * [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). * - * @param riskdataBasketItemItemNrSku [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). + * @param riskdataBasketItemItemNrSku [Stock keeping + * unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ public AdditionalDataRisk riskdataBasketItemItemNrSku(String riskdataBasketItemItemNrSku) { @@ -515,7 +575,9 @@ public AdditionalDataRisk riskdataBasketItemItemNrSku(String riskdataBasketItemI /** * [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). - * @return riskdataBasketItemItemNrSku [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). + * + * @return riskdataBasketItemItemNrSku [Stock keeping + * unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_SKU) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -526,7 +588,8 @@ public String getRiskdataBasketItemItemNrSku() { /** * [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). * - * @param riskdataBasketItemItemNrSku [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). + * @param riskdataBasketItemItemNrSku [Stock keeping + * unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_SKU) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -537,7 +600,8 @@ public void setRiskdataBasketItemItemNrSku(String riskdataBasketItemItemNrSku) { /** * [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). * - * @param riskdataBasketItemItemNrUpc [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). + * @param riskdataBasketItemItemNrUpc [Universal Product + * Code](https://en.wikipedia.org/wiki/Universal_Product_Code). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ public AdditionalDataRisk riskdataBasketItemItemNrUpc(String riskdataBasketItemItemNrUpc) { @@ -547,7 +611,9 @@ public AdditionalDataRisk riskdataBasketItemItemNrUpc(String riskdataBasketItemI /** * [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). - * @return riskdataBasketItemItemNrUpc [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). + * + * @return riskdataBasketItemItemNrUpc [Universal Product + * Code](https://en.wikipedia.org/wiki/Universal_Product_Code). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_UPC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -558,7 +624,8 @@ public String getRiskdataBasketItemItemNrUpc() { /** * [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). * - * @param riskdataBasketItemItemNrUpc [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). + * @param riskdataBasketItemItemNrUpc [Universal Product + * Code](https://en.wikipedia.org/wiki/Universal_Product_Code). */ @JsonProperty(JSON_PROPERTY_RISKDATA_BASKET_ITEM_ITEM_NR_UPC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -572,13 +639,16 @@ public void setRiskdataBasketItemItemNrUpc(String riskdataBasketItemItemNrUpc) { * @param riskdataPromotionsPromotionItemNrPromotionCode Code of the promotion. * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionCode(String riskdataPromotionsPromotionItemNrPromotionCode) { - this.riskdataPromotionsPromotionItemNrPromotionCode = riskdataPromotionsPromotionItemNrPromotionCode; + public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionCode( + String riskdataPromotionsPromotionItemNrPromotionCode) { + this.riskdataPromotionsPromotionItemNrPromotionCode = + riskdataPromotionsPromotionItemNrPromotionCode; return this; } /** * Code of the promotion. + * * @return riskdataPromotionsPromotionItemNrPromotionCode Code of the promotion. */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_CODE) @@ -594,24 +664,35 @@ public String getRiskdataPromotionsPromotionItemNrPromotionCode() { */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRiskdataPromotionsPromotionItemNrPromotionCode(String riskdataPromotionsPromotionItemNrPromotionCode) { - this.riskdataPromotionsPromotionItemNrPromotionCode = riskdataPromotionsPromotionItemNrPromotionCode; + public void setRiskdataPromotionsPromotionItemNrPromotionCode( + String riskdataPromotionsPromotionItemNrPromotionCode) { + this.riskdataPromotionsPromotionItemNrPromotionCode = + riskdataPromotionsPromotionItemNrPromotionCode; } /** - * The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The discount amount of the promotion, represented in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * - * @param riskdataPromotionsPromotionItemNrPromotionDiscountAmount The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @param riskdataPromotionsPromotionItemNrPromotionDiscountAmount The discount amount of the + * promotion, represented in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionDiscountAmount(String riskdataPromotionsPromotionItemNrPromotionDiscountAmount) { - this.riskdataPromotionsPromotionItemNrPromotionDiscountAmount = riskdataPromotionsPromotionItemNrPromotionDiscountAmount; + public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionDiscountAmount( + String riskdataPromotionsPromotionItemNrPromotionDiscountAmount) { + this.riskdataPromotionsPromotionItemNrPromotionDiscountAmount = + riskdataPromotionsPromotionItemNrPromotionDiscountAmount; return this; } /** - * The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). - * @return riskdataPromotionsPromotionItemNrPromotionDiscountAmount The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The discount amount of the promotion, represented in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). + * + * @return riskdataPromotionsPromotionItemNrPromotionDiscountAmount The discount amount of the + * promotion, represented in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -620,30 +701,40 @@ public String getRiskdataPromotionsPromotionItemNrPromotionDiscountAmount() { } /** - * The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The discount amount of the promotion, represented in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * - * @param riskdataPromotionsPromotionItemNrPromotionDiscountAmount The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @param riskdataPromotionsPromotionItemNrPromotionDiscountAmount The discount amount of the + * promotion, represented in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRiskdataPromotionsPromotionItemNrPromotionDiscountAmount(String riskdataPromotionsPromotionItemNrPromotionDiscountAmount) { - this.riskdataPromotionsPromotionItemNrPromotionDiscountAmount = riskdataPromotionsPromotionItemNrPromotionDiscountAmount; + public void setRiskdataPromotionsPromotionItemNrPromotionDiscountAmount( + String riskdataPromotionsPromotionItemNrPromotionDiscountAmount) { + this.riskdataPromotionsPromotionItemNrPromotionDiscountAmount = + riskdataPromotionsPromotionItemNrPromotionDiscountAmount; } /** * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). * - * @param riskdataPromotionsPromotionItemNrPromotionDiscountCurrency The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * @param riskdataPromotionsPromotionItemNrPromotionDiscountCurrency The three-character [ISO + * currency code](https://en.wikipedia.org/wiki/ISO_4217). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionDiscountCurrency(String riskdataPromotionsPromotionItemNrPromotionDiscountCurrency) { - this.riskdataPromotionsPromotionItemNrPromotionDiscountCurrency = riskdataPromotionsPromotionItemNrPromotionDiscountCurrency; + public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionDiscountCurrency( + String riskdataPromotionsPromotionItemNrPromotionDiscountCurrency) { + this.riskdataPromotionsPromotionItemNrPromotionDiscountCurrency = + riskdataPromotionsPromotionItemNrPromotionDiscountCurrency; return this; } /** * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). - * @return riskdataPromotionsPromotionItemNrPromotionDiscountCurrency The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * + * @return riskdataPromotionsPromotionItemNrPromotionDiscountCurrency The three-character [ISO + * currency code](https://en.wikipedia.org/wiki/ISO_4217). */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -654,28 +745,44 @@ public String getRiskdataPromotionsPromotionItemNrPromotionDiscountCurrency() { /** * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). * - * @param riskdataPromotionsPromotionItemNrPromotionDiscountCurrency The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + * @param riskdataPromotionsPromotionItemNrPromotionDiscountCurrency The three-character [ISO + * currency code](https://en.wikipedia.org/wiki/ISO_4217). */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRiskdataPromotionsPromotionItemNrPromotionDiscountCurrency(String riskdataPromotionsPromotionItemNrPromotionDiscountCurrency) { - this.riskdataPromotionsPromotionItemNrPromotionDiscountCurrency = riskdataPromotionsPromotionItemNrPromotionDiscountCurrency; + public void setRiskdataPromotionsPromotionItemNrPromotionDiscountCurrency( + String riskdataPromotionsPromotionItemNrPromotionDiscountCurrency) { + this.riskdataPromotionsPromotionItemNrPromotionDiscountCurrency = + riskdataPromotionsPromotionItemNrPromotionDiscountCurrency; } /** - * Promotion's percentage discount. It is represented in percentage value and there is no need to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field should be 30. + * Promotion's percentage discount. It is represented in percentage value and there is no need + * to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field + * should be 30. * - * @param riskdataPromotionsPromotionItemNrPromotionDiscountPercentage Promotion's percentage discount. It is represented in percentage value and there is no need to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field should be 30. + * @param riskdataPromotionsPromotionItemNrPromotionDiscountPercentage Promotion's percentage + * discount. It is represented in percentage value and there is no need to include the + * '%' sign. e.g. for a promotion discount of 30%, the value of the field should be + * 30. * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionDiscountPercentage(String riskdataPromotionsPromotionItemNrPromotionDiscountPercentage) { - this.riskdataPromotionsPromotionItemNrPromotionDiscountPercentage = riskdataPromotionsPromotionItemNrPromotionDiscountPercentage; + public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionDiscountPercentage( + String riskdataPromotionsPromotionItemNrPromotionDiscountPercentage) { + this.riskdataPromotionsPromotionItemNrPromotionDiscountPercentage = + riskdataPromotionsPromotionItemNrPromotionDiscountPercentage; return this; } /** - * Promotion's percentage discount. It is represented in percentage value and there is no need to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field should be 30. - * @return riskdataPromotionsPromotionItemNrPromotionDiscountPercentage Promotion's percentage discount. It is represented in percentage value and there is no need to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field should be 30. + * Promotion's percentage discount. It is represented in percentage value and there is no need + * to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field + * should be 30. + * + * @return riskdataPromotionsPromotionItemNrPromotionDiscountPercentage Promotion's percentage + * discount. It is represented in percentage value and there is no need to include the + * '%' sign. e.g. for a promotion discount of 30%, the value of the field should be + * 30. */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_PERCENTAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -684,14 +791,21 @@ public String getRiskdataPromotionsPromotionItemNrPromotionDiscountPercentage() } /** - * Promotion's percentage discount. It is represented in percentage value and there is no need to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field should be 30. + * Promotion's percentage discount. It is represented in percentage value and there is no need + * to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field + * should be 30. * - * @param riskdataPromotionsPromotionItemNrPromotionDiscountPercentage Promotion's percentage discount. It is represented in percentage value and there is no need to include the '%' sign. e.g. for a promotion discount of 30%, the value of the field should be 30. + * @param riskdataPromotionsPromotionItemNrPromotionDiscountPercentage Promotion's percentage + * discount. It is represented in percentage value and there is no need to include the + * '%' sign. e.g. for a promotion discount of 30%, the value of the field should be + * 30. */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_DISCOUNT_PERCENTAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRiskdataPromotionsPromotionItemNrPromotionDiscountPercentage(String riskdataPromotionsPromotionItemNrPromotionDiscountPercentage) { - this.riskdataPromotionsPromotionItemNrPromotionDiscountPercentage = riskdataPromotionsPromotionItemNrPromotionDiscountPercentage; + public void setRiskdataPromotionsPromotionItemNrPromotionDiscountPercentage( + String riskdataPromotionsPromotionItemNrPromotionDiscountPercentage) { + this.riskdataPromotionsPromotionItemNrPromotionDiscountPercentage = + riskdataPromotionsPromotionItemNrPromotionDiscountPercentage; } /** @@ -700,13 +814,16 @@ public void setRiskdataPromotionsPromotionItemNrPromotionDiscountPercentage(Stri * @param riskdataPromotionsPromotionItemNrPromotionName Name of the promotion. * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ - public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionName(String riskdataPromotionsPromotionItemNrPromotionName) { - this.riskdataPromotionsPromotionItemNrPromotionName = riskdataPromotionsPromotionItemNrPromotionName; + public AdditionalDataRisk riskdataPromotionsPromotionItemNrPromotionName( + String riskdataPromotionsPromotionItemNrPromotionName) { + this.riskdataPromotionsPromotionItemNrPromotionName = + riskdataPromotionsPromotionItemNrPromotionName; return this; } /** * Name of the promotion. + * * @return riskdataPromotionsPromotionItemNrPromotionName Name of the promotion. */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_NAME) @@ -722,14 +839,23 @@ public String getRiskdataPromotionsPromotionItemNrPromotionName() { */ @JsonProperty(JSON_PROPERTY_RISKDATA_PROMOTIONS_PROMOTION_ITEM_NR_PROMOTION_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRiskdataPromotionsPromotionItemNrPromotionName(String riskdataPromotionsPromotionItemNrPromotionName) { - this.riskdataPromotionsPromotionItemNrPromotionName = riskdataPromotionsPromotionItemNrPromotionName; + public void setRiskdataPromotionsPromotionItemNrPromotionName( + String riskdataPromotionsPromotionItemNrPromotionName) { + this.riskdataPromotionsPromotionItemNrPromotionName = + riskdataPromotionsPromotionItemNrPromotionName; } /** - * Reference number of the risk profile that you want to apply to the payment. If not provided or left blank, the merchant-level account's default risk profile will be applied to the payment. For more information, see [dynamically assign a risk profile to a payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). + * Reference number of the risk profile that you want to apply to the payment. If not provided or + * left blank, the merchant-level account's default risk profile will be applied to the + * payment. For more information, see [dynamically assign a risk profile to a + * payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). * - * @param riskdataRiskProfileReference Reference number of the risk profile that you want to apply to the payment. If not provided or left blank, the merchant-level account's default risk profile will be applied to the payment. For more information, see [dynamically assign a risk profile to a payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). + * @param riskdataRiskProfileReference Reference number of the risk profile that you want to apply + * to the payment. If not provided or left blank, the merchant-level account's default + * risk profile will be applied to the payment. For more information, see [dynamically assign + * a risk profile to a + * payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ public AdditionalDataRisk riskdataRiskProfileReference(String riskdataRiskProfileReference) { @@ -738,8 +864,16 @@ public AdditionalDataRisk riskdataRiskProfileReference(String riskdataRiskProfil } /** - * Reference number of the risk profile that you want to apply to the payment. If not provided or left blank, the merchant-level account's default risk profile will be applied to the payment. For more information, see [dynamically assign a risk profile to a payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). - * @return riskdataRiskProfileReference Reference number of the risk profile that you want to apply to the payment. If not provided or left blank, the merchant-level account's default risk profile will be applied to the payment. For more information, see [dynamically assign a risk profile to a payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). + * Reference number of the risk profile that you want to apply to the payment. If not provided or + * left blank, the merchant-level account's default risk profile will be applied to the + * payment. For more information, see [dynamically assign a risk profile to a + * payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). + * + * @return riskdataRiskProfileReference Reference number of the risk profile that you want to + * apply to the payment. If not provided or left blank, the merchant-level account's + * default risk profile will be applied to the payment. For more information, see [dynamically + * assign a risk profile to a + * payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). */ @JsonProperty(JSON_PROPERTY_RISKDATA_RISK_PROFILE_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -748,9 +882,16 @@ public String getRiskdataRiskProfileReference() { } /** - * Reference number of the risk profile that you want to apply to the payment. If not provided or left blank, the merchant-level account's default risk profile will be applied to the payment. For more information, see [dynamically assign a risk profile to a payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). + * Reference number of the risk profile that you want to apply to the payment. If not provided or + * left blank, the merchant-level account's default risk profile will be applied to the + * payment. For more information, see [dynamically assign a risk profile to a + * payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). * - * @param riskdataRiskProfileReference Reference number of the risk profile that you want to apply to the payment. If not provided or left blank, the merchant-level account's default risk profile will be applied to the payment. For more information, see [dynamically assign a risk profile to a payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). + * @param riskdataRiskProfileReference Reference number of the risk profile that you want to apply + * to the payment. If not provided or left blank, the merchant-level account's default + * risk profile will be applied to the payment. For more information, see [dynamically assign + * a risk profile to a + * payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). */ @JsonProperty(JSON_PROPERTY_RISKDATA_RISK_PROFILE_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -759,9 +900,11 @@ public void setRiskdataRiskProfileReference(String riskdataRiskProfileReference) } /** - * If this parameter is provided with the value **true**, risk checks for the payment request are skipped and the transaction will not get a risk score. + * If this parameter is provided with the value **true**, risk checks for the payment request are + * skipped and the transaction will not get a risk score. * - * @param riskdataSkipRisk If this parameter is provided with the value **true**, risk checks for the payment request are skipped and the transaction will not get a risk score. + * @param riskdataSkipRisk If this parameter is provided with the value **true**, risk checks for + * the payment request are skipped and the transaction will not get a risk score. * @return the current {@code AdditionalDataRisk} instance, allowing for method chaining */ public AdditionalDataRisk riskdataSkipRisk(String riskdataSkipRisk) { @@ -770,8 +913,11 @@ public AdditionalDataRisk riskdataSkipRisk(String riskdataSkipRisk) { } /** - * If this parameter is provided with the value **true**, risk checks for the payment request are skipped and the transaction will not get a risk score. - * @return riskdataSkipRisk If this parameter is provided with the value **true**, risk checks for the payment request are skipped and the transaction will not get a risk score. + * If this parameter is provided with the value **true**, risk checks for the payment request are + * skipped and the transaction will not get a risk score. + * + * @return riskdataSkipRisk If this parameter is provided with the value **true**, risk checks for + * the payment request are skipped and the transaction will not get a risk score. */ @JsonProperty(JSON_PROPERTY_RISKDATA_SKIP_RISK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -780,9 +926,11 @@ public String getRiskdataSkipRisk() { } /** - * If this parameter is provided with the value **true**, risk checks for the payment request are skipped and the transaction will not get a risk score. + * If this parameter is provided with the value **true**, risk checks for the payment request are + * skipped and the transaction will not get a risk score. * - * @param riskdataSkipRisk If this parameter is provided with the value **true**, risk checks for the payment request are skipped and the transaction will not get a risk score. + * @param riskdataSkipRisk If this parameter is provided with the value **true**, risk checks for + * the payment request are skipped and the transaction will not get a risk score. */ @JsonProperty(JSON_PROPERTY_RISKDATA_SKIP_RISK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -790,9 +938,7 @@ public void setRiskdataSkipRisk(String riskdataSkipRisk) { this.riskdataSkipRisk = riskdataSkipRisk; } - /** - * Return true if this AdditionalDataRisk object is equal to o. - */ + /** Return true if this AdditionalDataRisk object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -802,66 +948,157 @@ public boolean equals(Object o) { return false; } AdditionalDataRisk additionalDataRisk = (AdditionalDataRisk) o; - return Objects.equals(this.riskdataCustomFieldName, additionalDataRisk.riskdataCustomFieldName) && - Objects.equals(this.riskdataBasketItemItemNrAmountPerItem, additionalDataRisk.riskdataBasketItemItemNrAmountPerItem) && - Objects.equals(this.riskdataBasketItemItemNrBrand, additionalDataRisk.riskdataBasketItemItemNrBrand) && - Objects.equals(this.riskdataBasketItemItemNrCategory, additionalDataRisk.riskdataBasketItemItemNrCategory) && - Objects.equals(this.riskdataBasketItemItemNrColor, additionalDataRisk.riskdataBasketItemItemNrColor) && - Objects.equals(this.riskdataBasketItemItemNrCurrency, additionalDataRisk.riskdataBasketItemItemNrCurrency) && - Objects.equals(this.riskdataBasketItemItemNrItemID, additionalDataRisk.riskdataBasketItemItemNrItemID) && - Objects.equals(this.riskdataBasketItemItemNrManufacturer, additionalDataRisk.riskdataBasketItemItemNrManufacturer) && - Objects.equals(this.riskdataBasketItemItemNrProductTitle, additionalDataRisk.riskdataBasketItemItemNrProductTitle) && - Objects.equals(this.riskdataBasketItemItemNrQuantity, additionalDataRisk.riskdataBasketItemItemNrQuantity) && - Objects.equals(this.riskdataBasketItemItemNrReceiverEmail, additionalDataRisk.riskdataBasketItemItemNrReceiverEmail) && - Objects.equals(this.riskdataBasketItemItemNrSize, additionalDataRisk.riskdataBasketItemItemNrSize) && - Objects.equals(this.riskdataBasketItemItemNrSku, additionalDataRisk.riskdataBasketItemItemNrSku) && - Objects.equals(this.riskdataBasketItemItemNrUpc, additionalDataRisk.riskdataBasketItemItemNrUpc) && - Objects.equals(this.riskdataPromotionsPromotionItemNrPromotionCode, additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionCode) && - Objects.equals(this.riskdataPromotionsPromotionItemNrPromotionDiscountAmount, additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionDiscountAmount) && - Objects.equals(this.riskdataPromotionsPromotionItemNrPromotionDiscountCurrency, additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionDiscountCurrency) && - Objects.equals(this.riskdataPromotionsPromotionItemNrPromotionDiscountPercentage, additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionDiscountPercentage) && - Objects.equals(this.riskdataPromotionsPromotionItemNrPromotionName, additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionName) && - Objects.equals(this.riskdataRiskProfileReference, additionalDataRisk.riskdataRiskProfileReference) && - Objects.equals(this.riskdataSkipRisk, additionalDataRisk.riskdataSkipRisk); + return Objects.equals(this.riskdataCustomFieldName, additionalDataRisk.riskdataCustomFieldName) + && Objects.equals( + this.riskdataBasketItemItemNrAmountPerItem, + additionalDataRisk.riskdataBasketItemItemNrAmountPerItem) + && Objects.equals( + this.riskdataBasketItemItemNrBrand, additionalDataRisk.riskdataBasketItemItemNrBrand) + && Objects.equals( + this.riskdataBasketItemItemNrCategory, + additionalDataRisk.riskdataBasketItemItemNrCategory) + && Objects.equals( + this.riskdataBasketItemItemNrColor, additionalDataRisk.riskdataBasketItemItemNrColor) + && Objects.equals( + this.riskdataBasketItemItemNrCurrency, + additionalDataRisk.riskdataBasketItemItemNrCurrency) + && Objects.equals( + this.riskdataBasketItemItemNrItemID, additionalDataRisk.riskdataBasketItemItemNrItemID) + && Objects.equals( + this.riskdataBasketItemItemNrManufacturer, + additionalDataRisk.riskdataBasketItemItemNrManufacturer) + && Objects.equals( + this.riskdataBasketItemItemNrProductTitle, + additionalDataRisk.riskdataBasketItemItemNrProductTitle) + && Objects.equals( + this.riskdataBasketItemItemNrQuantity, + additionalDataRisk.riskdataBasketItemItemNrQuantity) + && Objects.equals( + this.riskdataBasketItemItemNrReceiverEmail, + additionalDataRisk.riskdataBasketItemItemNrReceiverEmail) + && Objects.equals( + this.riskdataBasketItemItemNrSize, additionalDataRisk.riskdataBasketItemItemNrSize) + && Objects.equals( + this.riskdataBasketItemItemNrSku, additionalDataRisk.riskdataBasketItemItemNrSku) + && Objects.equals( + this.riskdataBasketItemItemNrUpc, additionalDataRisk.riskdataBasketItemItemNrUpc) + && Objects.equals( + this.riskdataPromotionsPromotionItemNrPromotionCode, + additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionCode) + && Objects.equals( + this.riskdataPromotionsPromotionItemNrPromotionDiscountAmount, + additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionDiscountAmount) + && Objects.equals( + this.riskdataPromotionsPromotionItemNrPromotionDiscountCurrency, + additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionDiscountCurrency) + && Objects.equals( + this.riskdataPromotionsPromotionItemNrPromotionDiscountPercentage, + additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionDiscountPercentage) + && Objects.equals( + this.riskdataPromotionsPromotionItemNrPromotionName, + additionalDataRisk.riskdataPromotionsPromotionItemNrPromotionName) + && Objects.equals( + this.riskdataRiskProfileReference, additionalDataRisk.riskdataRiskProfileReference) + && Objects.equals(this.riskdataSkipRisk, additionalDataRisk.riskdataSkipRisk); } @Override public int hashCode() { - return Objects.hash(riskdataCustomFieldName, riskdataBasketItemItemNrAmountPerItem, riskdataBasketItemItemNrBrand, riskdataBasketItemItemNrCategory, riskdataBasketItemItemNrColor, riskdataBasketItemItemNrCurrency, riskdataBasketItemItemNrItemID, riskdataBasketItemItemNrManufacturer, riskdataBasketItemItemNrProductTitle, riskdataBasketItemItemNrQuantity, riskdataBasketItemItemNrReceiverEmail, riskdataBasketItemItemNrSize, riskdataBasketItemItemNrSku, riskdataBasketItemItemNrUpc, riskdataPromotionsPromotionItemNrPromotionCode, riskdataPromotionsPromotionItemNrPromotionDiscountAmount, riskdataPromotionsPromotionItemNrPromotionDiscountCurrency, riskdataPromotionsPromotionItemNrPromotionDiscountPercentage, riskdataPromotionsPromotionItemNrPromotionName, riskdataRiskProfileReference, riskdataSkipRisk); + return Objects.hash( + riskdataCustomFieldName, + riskdataBasketItemItemNrAmountPerItem, + riskdataBasketItemItemNrBrand, + riskdataBasketItemItemNrCategory, + riskdataBasketItemItemNrColor, + riskdataBasketItemItemNrCurrency, + riskdataBasketItemItemNrItemID, + riskdataBasketItemItemNrManufacturer, + riskdataBasketItemItemNrProductTitle, + riskdataBasketItemItemNrQuantity, + riskdataBasketItemItemNrReceiverEmail, + riskdataBasketItemItemNrSize, + riskdataBasketItemItemNrSku, + riskdataBasketItemItemNrUpc, + riskdataPromotionsPromotionItemNrPromotionCode, + riskdataPromotionsPromotionItemNrPromotionDiscountAmount, + riskdataPromotionsPromotionItemNrPromotionDiscountCurrency, + riskdataPromotionsPromotionItemNrPromotionDiscountPercentage, + riskdataPromotionsPromotionItemNrPromotionName, + riskdataRiskProfileReference, + riskdataSkipRisk); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataRisk {\n"); - sb.append(" riskdataCustomFieldName: ").append(toIndentedString(riskdataCustomFieldName)).append("\n"); - sb.append(" riskdataBasketItemItemNrAmountPerItem: ").append(toIndentedString(riskdataBasketItemItemNrAmountPerItem)).append("\n"); - sb.append(" riskdataBasketItemItemNrBrand: ").append(toIndentedString(riskdataBasketItemItemNrBrand)).append("\n"); - sb.append(" riskdataBasketItemItemNrCategory: ").append(toIndentedString(riskdataBasketItemItemNrCategory)).append("\n"); - sb.append(" riskdataBasketItemItemNrColor: ").append(toIndentedString(riskdataBasketItemItemNrColor)).append("\n"); - sb.append(" riskdataBasketItemItemNrCurrency: ").append(toIndentedString(riskdataBasketItemItemNrCurrency)).append("\n"); - sb.append(" riskdataBasketItemItemNrItemID: ").append(toIndentedString(riskdataBasketItemItemNrItemID)).append("\n"); - sb.append(" riskdataBasketItemItemNrManufacturer: ").append(toIndentedString(riskdataBasketItemItemNrManufacturer)).append("\n"); - sb.append(" riskdataBasketItemItemNrProductTitle: ").append(toIndentedString(riskdataBasketItemItemNrProductTitle)).append("\n"); - sb.append(" riskdataBasketItemItemNrQuantity: ").append(toIndentedString(riskdataBasketItemItemNrQuantity)).append("\n"); - sb.append(" riskdataBasketItemItemNrReceiverEmail: ").append(toIndentedString(riskdataBasketItemItemNrReceiverEmail)).append("\n"); - sb.append(" riskdataBasketItemItemNrSize: ").append(toIndentedString(riskdataBasketItemItemNrSize)).append("\n"); - sb.append(" riskdataBasketItemItemNrSku: ").append(toIndentedString(riskdataBasketItemItemNrSku)).append("\n"); - sb.append(" riskdataBasketItemItemNrUpc: ").append(toIndentedString(riskdataBasketItemItemNrUpc)).append("\n"); - sb.append(" riskdataPromotionsPromotionItemNrPromotionCode: ").append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionCode)).append("\n"); - sb.append(" riskdataPromotionsPromotionItemNrPromotionDiscountAmount: ").append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionDiscountAmount)).append("\n"); - sb.append(" riskdataPromotionsPromotionItemNrPromotionDiscountCurrency: ").append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionDiscountCurrency)).append("\n"); - sb.append(" riskdataPromotionsPromotionItemNrPromotionDiscountPercentage: ").append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionDiscountPercentage)).append("\n"); - sb.append(" riskdataPromotionsPromotionItemNrPromotionName: ").append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionName)).append("\n"); - sb.append(" riskdataRiskProfileReference: ").append(toIndentedString(riskdataRiskProfileReference)).append("\n"); + sb.append(" riskdataCustomFieldName: ") + .append(toIndentedString(riskdataCustomFieldName)) + .append("\n"); + sb.append(" riskdataBasketItemItemNrAmountPerItem: ") + .append(toIndentedString(riskdataBasketItemItemNrAmountPerItem)) + .append("\n"); + sb.append(" riskdataBasketItemItemNrBrand: ") + .append(toIndentedString(riskdataBasketItemItemNrBrand)) + .append("\n"); + sb.append(" riskdataBasketItemItemNrCategory: ") + .append(toIndentedString(riskdataBasketItemItemNrCategory)) + .append("\n"); + sb.append(" riskdataBasketItemItemNrColor: ") + .append(toIndentedString(riskdataBasketItemItemNrColor)) + .append("\n"); + sb.append(" riskdataBasketItemItemNrCurrency: ") + .append(toIndentedString(riskdataBasketItemItemNrCurrency)) + .append("\n"); + sb.append(" riskdataBasketItemItemNrItemID: ") + .append(toIndentedString(riskdataBasketItemItemNrItemID)) + .append("\n"); + sb.append(" riskdataBasketItemItemNrManufacturer: ") + .append(toIndentedString(riskdataBasketItemItemNrManufacturer)) + .append("\n"); + sb.append(" riskdataBasketItemItemNrProductTitle: ") + .append(toIndentedString(riskdataBasketItemItemNrProductTitle)) + .append("\n"); + sb.append(" riskdataBasketItemItemNrQuantity: ") + .append(toIndentedString(riskdataBasketItemItemNrQuantity)) + .append("\n"); + sb.append(" riskdataBasketItemItemNrReceiverEmail: ") + .append(toIndentedString(riskdataBasketItemItemNrReceiverEmail)) + .append("\n"); + sb.append(" riskdataBasketItemItemNrSize: ") + .append(toIndentedString(riskdataBasketItemItemNrSize)) + .append("\n"); + sb.append(" riskdataBasketItemItemNrSku: ") + .append(toIndentedString(riskdataBasketItemItemNrSku)) + .append("\n"); + sb.append(" riskdataBasketItemItemNrUpc: ") + .append(toIndentedString(riskdataBasketItemItemNrUpc)) + .append("\n"); + sb.append(" riskdataPromotionsPromotionItemNrPromotionCode: ") + .append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionCode)) + .append("\n"); + sb.append(" riskdataPromotionsPromotionItemNrPromotionDiscountAmount: ") + .append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionDiscountAmount)) + .append("\n"); + sb.append(" riskdataPromotionsPromotionItemNrPromotionDiscountCurrency: ") + .append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionDiscountCurrency)) + .append("\n"); + sb.append(" riskdataPromotionsPromotionItemNrPromotionDiscountPercentage: ") + .append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionDiscountPercentage)) + .append("\n"); + sb.append(" riskdataPromotionsPromotionItemNrPromotionName: ") + .append(toIndentedString(riskdataPromotionsPromotionItemNrPromotionName)) + .append("\n"); + sb.append(" riskdataRiskProfileReference: ") + .append(toIndentedString(riskdataRiskProfileReference)) + .append("\n"); sb.append(" riskdataSkipRisk: ").append(toIndentedString(riskdataSkipRisk)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -870,21 +1107,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalDataRisk given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataRisk - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataRisk + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalDataRisk */ public static AdditionalDataRisk fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataRisk.class); } -/** - * Convert an instance of AdditionalDataRisk to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalDataRisk to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataRiskStandalone.java b/src/main/java/com/adyen/model/payment/AdditionalDataRiskStandalone.java index 584104a53..9e5d22ccd 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataRiskStandalone.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataRiskStandalone.java @@ -2,31 +2,22 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AdditionalDataRiskStandalone - */ +/** AdditionalDataRiskStandalone */ @JsonPropertyOrder({ AdditionalDataRiskStandalone.JSON_PROPERTY_PAY_PAL_COUNTRY_CODE, AdditionalDataRiskStandalone.JSON_PROPERTY_PAY_PAL_EMAIL_ID, @@ -44,7 +35,6 @@ AdditionalDataRiskStandalone.JSON_PROPERTY_THREE_D_OFFERED, AdditionalDataRiskStandalone.JSON_PROPERTY_TOKEN_DATA_TYPE }) - public class AdditionalDataRiskStandalone { public static final String JSON_PROPERTY_PAY_PAL_COUNTRY_CODE = "PayPal.CountryCode"; private String payPalCountryCode; @@ -64,7 +54,8 @@ public class AdditionalDataRiskStandalone { public static final String JSON_PROPERTY_PAY_PAL_PHONE = "PayPal.Phone"; private String payPalPhone; - public static final String JSON_PROPERTY_PAY_PAL_PROTECTION_ELIGIBILITY = "PayPal.ProtectionEligibility"; + public static final String JSON_PROPERTY_PAY_PAL_PROTECTION_ELIGIBILITY = + "PayPal.ProtectionEligibility"; private String payPalProtectionEligibility; public static final String JSON_PROPERTY_PAY_PAL_TRANSACTION_ID = "PayPal.TransactionId"; @@ -91,13 +82,13 @@ public class AdditionalDataRiskStandalone { public static final String JSON_PROPERTY_TOKEN_DATA_TYPE = "tokenDataType"; private String tokenDataType; - public AdditionalDataRiskStandalone() { - } + public AdditionalDataRiskStandalone() {} /** * Shopper's country of residence in the form of ISO standard 3166 2-character country codes. * - * @param payPalCountryCode Shopper's country of residence in the form of ISO standard 3166 2-character country codes. + * @param payPalCountryCode Shopper's country of residence in the form of ISO standard 3166 + * 2-character country codes. * @return the current {@code AdditionalDataRiskStandalone} instance, allowing for method chaining */ public AdditionalDataRiskStandalone payPalCountryCode(String payPalCountryCode) { @@ -107,7 +98,9 @@ public AdditionalDataRiskStandalone payPalCountryCode(String payPalCountryCode) /** * Shopper's country of residence in the form of ISO standard 3166 2-character country codes. - * @return payPalCountryCode Shopper's country of residence in the form of ISO standard 3166 2-character country codes. + * + * @return payPalCountryCode Shopper's country of residence in the form of ISO standard 3166 + * 2-character country codes. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,7 +111,8 @@ public String getPayPalCountryCode() { /** * Shopper's country of residence in the form of ISO standard 3166 2-character country codes. * - * @param payPalCountryCode Shopper's country of residence in the form of ISO standard 3166 2-character country codes. + * @param payPalCountryCode Shopper's country of residence in the form of ISO standard 3166 + * 2-character country codes. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,6 +133,7 @@ public AdditionalDataRiskStandalone payPalEmailId(String payPalEmailId) { /** * Shopper's email. + * * @return payPalEmailId Shopper's email. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_EMAIL_ID) @@ -171,6 +166,7 @@ public AdditionalDataRiskStandalone payPalFirstName(String payPalFirstName) { /** * Shopper's first name. + * * @return payPalFirstName Shopper's first name. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_FIRST_NAME) @@ -203,6 +199,7 @@ public AdditionalDataRiskStandalone payPalLastName(String payPalLastName) { /** * Shopper's last name. + * * @return payPalLastName Shopper's last name. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_LAST_NAME) @@ -223,9 +220,11 @@ public void setPayPalLastName(String payPalLastName) { } /** - * Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. + * Unique PayPal Customer Account identification number. Character length and limitations: 13 + * single-byte alphanumeric characters. * - * @param payPalPayerId Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. + * @param payPalPayerId Unique PayPal Customer Account identification number. Character length and + * limitations: 13 single-byte alphanumeric characters. * @return the current {@code AdditionalDataRiskStandalone} instance, allowing for method chaining */ public AdditionalDataRiskStandalone payPalPayerId(String payPalPayerId) { @@ -234,8 +233,11 @@ public AdditionalDataRiskStandalone payPalPayerId(String payPalPayerId) { } /** - * Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. - * @return payPalPayerId Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. + * Unique PayPal Customer Account identification number. Character length and limitations: 13 + * single-byte alphanumeric characters. + * + * @return payPalPayerId Unique PayPal Customer Account identification number. Character length + * and limitations: 13 single-byte alphanumeric characters. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_PAYER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,9 +246,11 @@ public String getPayPalPayerId() { } /** - * Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. + * Unique PayPal Customer Account identification number. Character length and limitations: 13 + * single-byte alphanumeric characters. * - * @param payPalPayerId Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. + * @param payPalPayerId Unique PayPal Customer Account identification number. Character length and + * limitations: 13 single-byte alphanumeric characters. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_PAYER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -267,6 +271,7 @@ public AdditionalDataRiskStandalone payPalPhone(String payPalPhone) { /** * Shopper's phone number. + * * @return payPalPhone Shopper's phone number. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_PHONE) @@ -287,19 +292,35 @@ public void setPayPalPhone(String payPalPhone) { } /** - * Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy. + * Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy + * for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is + * protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — + * Merchant is not protected under the Seller Protection Policy. * - * @param payPalProtectionEligibility Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy. + * @param payPalProtectionEligibility Allowed values: * **Eligible** — Merchant is protected by + * PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * + * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for + * Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection + * Policy. * @return the current {@code AdditionalDataRiskStandalone} instance, allowing for method chaining */ - public AdditionalDataRiskStandalone payPalProtectionEligibility(String payPalProtectionEligibility) { + public AdditionalDataRiskStandalone payPalProtectionEligibility( + String payPalProtectionEligibility) { this.payPalProtectionEligibility = payPalProtectionEligibility; return this; } /** - * Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy. - * @return payPalProtectionEligibility Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy. + * Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy + * for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is + * protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — + * Merchant is not protected under the Seller Protection Policy. + * + * @return payPalProtectionEligibility Allowed values: * **Eligible** — Merchant is protected by + * PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * + * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for + * Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection + * Policy. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_PROTECTION_ELIGIBILITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -308,9 +329,16 @@ public String getPayPalProtectionEligibility() { } /** - * Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy. + * Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy + * for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is + * protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — + * Merchant is not protected under the Seller Protection Policy. * - * @param payPalProtectionEligibility Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy. + * @param payPalProtectionEligibility Allowed values: * **Eligible** — Merchant is protected by + * PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * + * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for + * Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection + * Policy. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_PROTECTION_ELIGIBILITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -331,6 +359,7 @@ public AdditionalDataRiskStandalone payPalTransactionId(String payPalTransaction /** * Unique transaction ID of the payment. + * * @return payPalTransactionId Unique transaction ID of the payment. */ @JsonProperty(JSON_PROPERTY_PAY_PAL_TRANSACTION_ID) @@ -363,6 +392,7 @@ public AdditionalDataRiskStandalone avsResultRaw(String avsResultRaw) { /** * Raw AVS result received from the acquirer, where available. Example: D + * * @return avsResultRaw Raw AVS result received from the acquirer, where available. Example: D */ @JsonProperty(JSON_PROPERTY_AVS_RESULT_RAW) @@ -383,9 +413,13 @@ public void setAvsResultRaw(String avsResultRaw) { } /** - * The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/online-payments/tokenization). + * The Bank Identification Number of a credit card, which is the first six digits of a card + * number. Required for [tokenized card + * request](https://docs.adyen.com/online-payments/tokenization). * - * @param bin The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/online-payments/tokenization). + * @param bin The Bank Identification Number of a credit card, which is the first six digits of a + * card number. Required for [tokenized card + * request](https://docs.adyen.com/online-payments/tokenization). * @return the current {@code AdditionalDataRiskStandalone} instance, allowing for method chaining */ public AdditionalDataRiskStandalone bin(String bin) { @@ -394,8 +428,13 @@ public AdditionalDataRiskStandalone bin(String bin) { } /** - * The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/online-payments/tokenization). - * @return bin The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/online-payments/tokenization). + * The Bank Identification Number of a credit card, which is the first six digits of a card + * number. Required for [tokenized card + * request](https://docs.adyen.com/online-payments/tokenization). + * + * @return bin The Bank Identification Number of a credit card, which is the first six digits of a + * card number. Required for [tokenized card + * request](https://docs.adyen.com/online-payments/tokenization). */ @JsonProperty(JSON_PROPERTY_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -404,9 +443,13 @@ public String getBin() { } /** - * The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/online-payments/tokenization). + * The Bank Identification Number of a credit card, which is the first six digits of a card + * number. Required for [tokenized card + * request](https://docs.adyen.com/online-payments/tokenization). * - * @param bin The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/online-payments/tokenization). + * @param bin The Bank Identification Number of a credit card, which is the first six digits of a + * card number. Required for [tokenized card + * request](https://docs.adyen.com/online-payments/tokenization). */ @JsonProperty(JSON_PROPERTY_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -427,6 +470,7 @@ public AdditionalDataRiskStandalone cvcResultRaw(String cvcResultRaw) { /** * Raw CVC result received from the acquirer, where available. Example: 1 + * * @return cvcResultRaw Raw CVC result received from the acquirer, where available. Example: 1 */ @JsonProperty(JSON_PROPERTY_CVC_RESULT_RAW) @@ -459,6 +503,7 @@ public AdditionalDataRiskStandalone riskToken(String riskToken) { /** * Unique identifier or token for the shopper's card details. + * * @return riskToken Unique identifier or token for the shopper's card details. */ @JsonProperty(JSON_PROPERTY_RISK_TOKEN) @@ -479,9 +524,11 @@ public void setRiskToken(String riskToken) { } /** - * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: + * true * - * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed + * on this payment. Example: true * @return the current {@code AdditionalDataRiskStandalone} instance, allowing for method chaining */ public AdditionalDataRiskStandalone threeDAuthenticated(String threeDAuthenticated) { @@ -490,8 +537,11 @@ public AdditionalDataRiskStandalone threeDAuthenticated(String threeDAuthenticat } /** - * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true - * @return threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: + * true + * + * @return threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed + * on this payment. Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -500,9 +550,11 @@ public String getThreeDAuthenticated() { } /** - * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: + * true * - * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed + * on this payment. Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -513,7 +565,8 @@ public void setThreeDAuthenticated(String threeDAuthenticated) { /** * A Boolean value indicating whether 3DS was offered for this payment. Example: true * - * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. Example: true + * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. + * Example: true * @return the current {@code AdditionalDataRiskStandalone} instance, allowing for method chaining */ public AdditionalDataRiskStandalone threeDOffered(String threeDOffered) { @@ -523,7 +576,9 @@ public AdditionalDataRiskStandalone threeDOffered(String threeDOffered) { /** * A Boolean value indicating whether 3DS was offered for this payment. Example: true - * @return threeDOffered A Boolean value indicating whether 3DS was offered for this payment. Example: true + * + * @return threeDOffered A Boolean value indicating whether 3DS was offered for this payment. + * Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -534,7 +589,8 @@ public String getThreeDOffered() { /** * A Boolean value indicating whether 3DS was offered for this payment. Example: true * - * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. Example: true + * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. + * Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -545,7 +601,8 @@ public void setThreeDOffered(String threeDOffered) { /** * Required for PayPal payments only. The only supported value is: **paypal**. * - * @param tokenDataType Required for PayPal payments only. The only supported value is: **paypal**. + * @param tokenDataType Required for PayPal payments only. The only supported value is: + * **paypal**. * @return the current {@code AdditionalDataRiskStandalone} instance, allowing for method chaining */ public AdditionalDataRiskStandalone tokenDataType(String tokenDataType) { @@ -555,7 +612,9 @@ public AdditionalDataRiskStandalone tokenDataType(String tokenDataType) { /** * Required for PayPal payments only. The only supported value is: **paypal**. - * @return tokenDataType Required for PayPal payments only. The only supported value is: **paypal**. + * + * @return tokenDataType Required for PayPal payments only. The only supported value is: + * **paypal**. */ @JsonProperty(JSON_PROPERTY_TOKEN_DATA_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -566,7 +625,8 @@ public String getTokenDataType() { /** * Required for PayPal payments only. The only supported value is: **paypal**. * - * @param tokenDataType Required for PayPal payments only. The only supported value is: **paypal**. + * @param tokenDataType Required for PayPal payments only. The only supported value is: + * **paypal**. */ @JsonProperty(JSON_PROPERTY_TOKEN_DATA_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -574,9 +634,7 @@ public void setTokenDataType(String tokenDataType) { this.tokenDataType = tokenDataType; } - /** - * Return true if this AdditionalDataRiskStandalone object is equal to o. - */ + /** Return true if this AdditionalDataRiskStandalone object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -586,26 +644,45 @@ public boolean equals(Object o) { return false; } AdditionalDataRiskStandalone additionalDataRiskStandalone = (AdditionalDataRiskStandalone) o; - return Objects.equals(this.payPalCountryCode, additionalDataRiskStandalone.payPalCountryCode) && - Objects.equals(this.payPalEmailId, additionalDataRiskStandalone.payPalEmailId) && - Objects.equals(this.payPalFirstName, additionalDataRiskStandalone.payPalFirstName) && - Objects.equals(this.payPalLastName, additionalDataRiskStandalone.payPalLastName) && - Objects.equals(this.payPalPayerId, additionalDataRiskStandalone.payPalPayerId) && - Objects.equals(this.payPalPhone, additionalDataRiskStandalone.payPalPhone) && - Objects.equals(this.payPalProtectionEligibility, additionalDataRiskStandalone.payPalProtectionEligibility) && - Objects.equals(this.payPalTransactionId, additionalDataRiskStandalone.payPalTransactionId) && - Objects.equals(this.avsResultRaw, additionalDataRiskStandalone.avsResultRaw) && - Objects.equals(this.bin, additionalDataRiskStandalone.bin) && - Objects.equals(this.cvcResultRaw, additionalDataRiskStandalone.cvcResultRaw) && - Objects.equals(this.riskToken, additionalDataRiskStandalone.riskToken) && - Objects.equals(this.threeDAuthenticated, additionalDataRiskStandalone.threeDAuthenticated) && - Objects.equals(this.threeDOffered, additionalDataRiskStandalone.threeDOffered) && - Objects.equals(this.tokenDataType, additionalDataRiskStandalone.tokenDataType); + return Objects.equals(this.payPalCountryCode, additionalDataRiskStandalone.payPalCountryCode) + && Objects.equals(this.payPalEmailId, additionalDataRiskStandalone.payPalEmailId) + && Objects.equals(this.payPalFirstName, additionalDataRiskStandalone.payPalFirstName) + && Objects.equals(this.payPalLastName, additionalDataRiskStandalone.payPalLastName) + && Objects.equals(this.payPalPayerId, additionalDataRiskStandalone.payPalPayerId) + && Objects.equals(this.payPalPhone, additionalDataRiskStandalone.payPalPhone) + && Objects.equals( + this.payPalProtectionEligibility, + additionalDataRiskStandalone.payPalProtectionEligibility) + && Objects.equals( + this.payPalTransactionId, additionalDataRiskStandalone.payPalTransactionId) + && Objects.equals(this.avsResultRaw, additionalDataRiskStandalone.avsResultRaw) + && Objects.equals(this.bin, additionalDataRiskStandalone.bin) + && Objects.equals(this.cvcResultRaw, additionalDataRiskStandalone.cvcResultRaw) + && Objects.equals(this.riskToken, additionalDataRiskStandalone.riskToken) + && Objects.equals( + this.threeDAuthenticated, additionalDataRiskStandalone.threeDAuthenticated) + && Objects.equals(this.threeDOffered, additionalDataRiskStandalone.threeDOffered) + && Objects.equals(this.tokenDataType, additionalDataRiskStandalone.tokenDataType); } @Override public int hashCode() { - return Objects.hash(payPalCountryCode, payPalEmailId, payPalFirstName, payPalLastName, payPalPayerId, payPalPhone, payPalProtectionEligibility, payPalTransactionId, avsResultRaw, bin, cvcResultRaw, riskToken, threeDAuthenticated, threeDOffered, tokenDataType); + return Objects.hash( + payPalCountryCode, + payPalEmailId, + payPalFirstName, + payPalLastName, + payPalPayerId, + payPalPhone, + payPalProtectionEligibility, + payPalTransactionId, + avsResultRaw, + bin, + cvcResultRaw, + riskToken, + threeDAuthenticated, + threeDOffered, + tokenDataType); } @Override @@ -618,13 +695,19 @@ public String toString() { sb.append(" payPalLastName: ").append(toIndentedString(payPalLastName)).append("\n"); sb.append(" payPalPayerId: ").append(toIndentedString(payPalPayerId)).append("\n"); sb.append(" payPalPhone: ").append(toIndentedString(payPalPhone)).append("\n"); - sb.append(" payPalProtectionEligibility: ").append(toIndentedString(payPalProtectionEligibility)).append("\n"); - sb.append(" payPalTransactionId: ").append(toIndentedString(payPalTransactionId)).append("\n"); + sb.append(" payPalProtectionEligibility: ") + .append(toIndentedString(payPalProtectionEligibility)) + .append("\n"); + sb.append(" payPalTransactionId: ") + .append(toIndentedString(payPalTransactionId)) + .append("\n"); sb.append(" avsResultRaw: ").append(toIndentedString(avsResultRaw)).append("\n"); sb.append(" bin: ").append(toIndentedString(bin)).append("\n"); sb.append(" cvcResultRaw: ").append(toIndentedString(cvcResultRaw)).append("\n"); sb.append(" riskToken: ").append(toIndentedString(riskToken)).append("\n"); - sb.append(" threeDAuthenticated: ").append(toIndentedString(threeDAuthenticated)).append("\n"); + sb.append(" threeDAuthenticated: ") + .append(toIndentedString(threeDAuthenticated)) + .append("\n"); sb.append(" threeDOffered: ").append(toIndentedString(threeDOffered)).append("\n"); sb.append(" tokenDataType: ").append(toIndentedString(tokenDataType)).append("\n"); sb.append("}"); @@ -632,8 +715,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -642,21 +724,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalDataRiskStandalone given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataRiskStandalone - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataRiskStandalone + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalDataRiskStandalone */ - public static AdditionalDataRiskStandalone fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalDataRiskStandalone fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataRiskStandalone.class); } -/** - * Convert an instance of AdditionalDataRiskStandalone to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalDataRiskStandalone to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataSubMerchant.java b/src/main/java/com/adyen/model/payment/AdditionalDataSubMerchant.java index 00bd37d67..9b4699949 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataSubMerchant.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataSubMerchant.java @@ -2,31 +2,22 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AdditionalDataSubMerchant - */ +/** AdditionalDataSubMerchant */ @JsonPropertyOrder({ AdditionalDataSubMerchant.JSON_PROPERTY_SUB_MERCHANT_NUMBER_OF_SUB_SELLERS, AdditionalDataSubMerchant.JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_CITY, @@ -41,61 +32,79 @@ AdditionalDataSubMerchant.JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STREET, AdditionalDataSubMerchant.JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_TAX_ID }) - public class AdditionalDataSubMerchant { - public static final String JSON_PROPERTY_SUB_MERCHANT_NUMBER_OF_SUB_SELLERS = "subMerchant.numberOfSubSellers"; + public static final String JSON_PROPERTY_SUB_MERCHANT_NUMBER_OF_SUB_SELLERS = + "subMerchant.numberOfSubSellers"; private String subMerchantNumberOfSubSellers; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_CITY = "subMerchant.subSeller[subSellerNr].city"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_CITY = + "subMerchant.subSeller[subSellerNr].city"; private String subMerchantSubSellerSubSellerNrCity; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_COUNTRY = "subMerchant.subSeller[subSellerNr].country"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_COUNTRY = + "subMerchant.subSeller[subSellerNr].country"; private String subMerchantSubSellerSubSellerNrCountry; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_EMAIL = "subMerchant.subSeller[subSellerNr].email"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_EMAIL = + "subMerchant.subSeller[subSellerNr].email"; private String subMerchantSubSellerSubSellerNrEmail; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_ID = "subMerchant.subSeller[subSellerNr].id"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_ID = + "subMerchant.subSeller[subSellerNr].id"; private String subMerchantSubSellerSubSellerNrId; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_MCC = "subMerchant.subSeller[subSellerNr].mcc"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_MCC = + "subMerchant.subSeller[subSellerNr].mcc"; private String subMerchantSubSellerSubSellerNrMcc; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_NAME = "subMerchant.subSeller[subSellerNr].name"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_NAME = + "subMerchant.subSeller[subSellerNr].name"; private String subMerchantSubSellerSubSellerNrName; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_PHONE_NUMBER = "subMerchant.subSeller[subSellerNr].phoneNumber"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_PHONE_NUMBER = + "subMerchant.subSeller[subSellerNr].phoneNumber"; private String subMerchantSubSellerSubSellerNrPhoneNumber; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_POSTAL_CODE = "subMerchant.subSeller[subSellerNr].postalCode"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_POSTAL_CODE = + "subMerchant.subSeller[subSellerNr].postalCode"; private String subMerchantSubSellerSubSellerNrPostalCode; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STATE = "subMerchant.subSeller[subSellerNr].state"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STATE = + "subMerchant.subSeller[subSellerNr].state"; private String subMerchantSubSellerSubSellerNrState; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STREET = "subMerchant.subSeller[subSellerNr].street"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STREET = + "subMerchant.subSeller[subSellerNr].street"; private String subMerchantSubSellerSubSellerNrStreet; - public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_TAX_ID = "subMerchant.subSeller[subSellerNr].taxId"; + public static final String JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_TAX_ID = + "subMerchant.subSeller[subSellerNr].taxId"; private String subMerchantSubSellerSubSellerNrTaxId; - public AdditionalDataSubMerchant() { - } + public AdditionalDataSubMerchant() {} /** - * Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**. + * Required for transactions performed by registered payment facilitators. Indicates the number of + * sub-merchants contained in the request. For example, **3**. * - * @param subMerchantNumberOfSubSellers Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**. + * @param subMerchantNumberOfSubSellers Required for transactions performed by registered payment + * facilitators. Indicates the number of sub-merchants contained in the request. For example, + * **3**. * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantNumberOfSubSellers(String subMerchantNumberOfSubSellers) { + public AdditionalDataSubMerchant subMerchantNumberOfSubSellers( + String subMerchantNumberOfSubSellers) { this.subMerchantNumberOfSubSellers = subMerchantNumberOfSubSellers; return this; } /** - * Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**. - * @return subMerchantNumberOfSubSellers Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**. + * Required for transactions performed by registered payment facilitators. Indicates the number of + * sub-merchants contained in the request. For example, **3**. + * + * @return subMerchantNumberOfSubSellers Required for transactions performed by registered payment + * facilitators. Indicates the number of sub-merchants contained in the request. For example, + * **3**. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_NUMBER_OF_SUB_SELLERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,9 +113,12 @@ public String getSubMerchantNumberOfSubSellers() { } /** - * Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**. + * Required for transactions performed by registered payment facilitators. Indicates the number of + * sub-merchants contained in the request. For example, **3**. * - * @param subMerchantNumberOfSubSellers Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**. + * @param subMerchantNumberOfSubSellers Required for transactions performed by registered payment + * facilitators. Indicates the number of sub-merchants contained in the request. For example, + * **3**. */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_NUMBER_OF_SUB_SELLERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,19 +127,27 @@ public void setSubMerchantNumberOfSubSellers(String subMerchantNumberOfSubSeller } /** - * Required for transactions performed by registered payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters + * Required for transactions performed by registered payment facilitators. The city of the + * sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters * - * @param subMerchantSubSellerSubSellerNrCity Required for transactions performed by registered payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters + * @param subMerchantSubSellerSubSellerNrCity Required for transactions performed by registered + * payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * + * Maximum length: 13 characters * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrCity(String subMerchantSubSellerSubSellerNrCity) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrCity( + String subMerchantSubSellerSubSellerNrCity) { this.subMerchantSubSellerSubSellerNrCity = subMerchantSubSellerSubSellerNrCity; return this; } /** - * Required for transactions performed by registered payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters - * @return subMerchantSubSellerSubSellerNrCity Required for transactions performed by registered payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters + * Required for transactions performed by registered payment facilitators. The city of the + * sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters + * + * @return subMerchantSubSellerSubSellerNrCity Required for transactions performed by registered + * payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * + * Maximum length: 13 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,9 +156,12 @@ public String getSubMerchantSubSellerSubSellerNrCity() { } /** - * Required for transactions performed by registered payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters + * Required for transactions performed by registered payment facilitators. The city of the + * sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters * - * @param subMerchantSubSellerSubSellerNrCity Required for transactions performed by registered payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters + * @param subMerchantSubSellerSubSellerNrCity Required for transactions performed by registered + * payment facilitators. The city of the sub-merchant's address. * Format: Alphanumeric * + * Maximum length: 13 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,19 +170,31 @@ public void setSubMerchantSubSellerSubSellerNrCity(String subMerchantSubSellerSu } /** - * Required for transactions performed by registered payment facilitators. The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * Required for transactions performed by registered payment facilitators. The three-letter + * country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO + * 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters * - * @param subMerchantSubSellerSubSellerNrCountry Required for transactions performed by registered payment facilitators. The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * @param subMerchantSubSellerSubSellerNrCountry Required for transactions performed by registered + * payment facilitators. The three-letter country code of the sub-merchant's address. For + * example, **BRA** for Brazil. * Format: [ISO 3166-1 + * alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrCountry(String subMerchantSubSellerSubSellerNrCountry) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrCountry( + String subMerchantSubSellerSubSellerNrCountry) { this.subMerchantSubSellerSubSellerNrCountry = subMerchantSubSellerSubSellerNrCountry; return this; } /** - * Required for transactions performed by registered payment facilitators. The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters - * @return subMerchantSubSellerSubSellerNrCountry Required for transactions performed by registered payment facilitators. The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * Required for transactions performed by registered payment facilitators. The three-letter + * country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO + * 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * + * @return subMerchantSubSellerSubSellerNrCountry Required for transactions performed by + * registered payment facilitators. The three-letter country code of the sub-merchant's + * address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 + * alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,30 +203,44 @@ public String getSubMerchantSubSellerSubSellerNrCountry() { } /** - * Required for transactions performed by registered payment facilitators. The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * Required for transactions performed by registered payment facilitators. The three-letter + * country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO + * 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters * - * @param subMerchantSubSellerSubSellerNrCountry Required for transactions performed by registered payment facilitators. The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * @param subMerchantSubSellerSubSellerNrCountry Required for transactions performed by registered + * payment facilitators. The three-letter country code of the sub-merchant's address. For + * example, **BRA** for Brazil. * Format: [ISO 3166-1 + * alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubMerchantSubSellerSubSellerNrCountry(String subMerchantSubSellerSubSellerNrCountry) { + public void setSubMerchantSubSellerSubSellerNrCountry( + String subMerchantSubSellerSubSellerNrCountry) { this.subMerchantSubSellerSubSellerNrCountry = subMerchantSubSellerSubSellerNrCountry; } /** - * Required for transactions performed by registered payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters + * Required for transactions performed by registered payment facilitators. The email address of + * the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters * - * @param subMerchantSubSellerSubSellerNrEmail Required for transactions performed by registered payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters + * @param subMerchantSubSellerSubSellerNrEmail Required for transactions performed by registered + * payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * + * Maximum length: 40 characters * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrEmail(String subMerchantSubSellerSubSellerNrEmail) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrEmail( + String subMerchantSubSellerSubSellerNrEmail) { this.subMerchantSubSellerSubSellerNrEmail = subMerchantSubSellerSubSellerNrEmail; return this; } /** - * Required for transactions performed by registered payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters - * @return subMerchantSubSellerSubSellerNrEmail Required for transactions performed by registered payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters + * Required for transactions performed by registered payment facilitators. The email address of + * the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters + * + * @return subMerchantSubSellerSubSellerNrEmail Required for transactions performed by registered + * payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * + * Maximum length: 40 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,9 +249,12 @@ public String getSubMerchantSubSellerSubSellerNrEmail() { } /** - * Required for transactions performed by registered payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters + * Required for transactions performed by registered payment facilitators. The email address of + * the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters * - * @param subMerchantSubSellerSubSellerNrEmail Required for transactions performed by registered payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters + * @param subMerchantSubSellerSubSellerNrEmail Required for transactions performed by registered + * payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * + * Maximum length: 40 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,19 +263,31 @@ public void setSubMerchantSubSellerSubSellerNrEmail(String subMerchantSubSellerS } /** - * Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * Required for transactions performed by registered payment facilitators. A unique identifier + * that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: + * Alphanumeric * Maximum length: 15 characters * - * @param subMerchantSubSellerSubSellerNrId Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * @param subMerchantSubSellerSubSellerNrId Required for transactions performed by registered + * payment facilitators. A unique identifier that you create for the sub-merchant, used by + * schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 + * characters * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrId(String subMerchantSubSellerSubSellerNrId) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrId( + String subMerchantSubSellerSubSellerNrId) { this.subMerchantSubSellerSubSellerNrId = subMerchantSubSellerSubSellerNrId; return this; } /** - * Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters - * @return subMerchantSubSellerSubSellerNrId Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * Required for transactions performed by registered payment facilitators. A unique identifier + * that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: + * Alphanumeric * Maximum length: 15 characters + * + * @return subMerchantSubSellerSubSellerNrId Required for transactions performed by registered + * payment facilitators. A unique identifier that you create for the sub-merchant, used by + * schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 + * characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,9 +296,14 @@ public String getSubMerchantSubSellerSubSellerNrId() { } /** - * Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * Required for transactions performed by registered payment facilitators. A unique identifier + * that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: + * Alphanumeric * Maximum length: 15 characters * - * @param subMerchantSubSellerSubSellerNrId Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * @param subMerchantSubSellerSubSellerNrId Required for transactions performed by registered + * payment facilitators. A unique identifier that you create for the sub-merchant, used by + * schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 + * characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -243,19 +312,27 @@ public void setSubMerchantSubSellerSubSellerNrId(String subMerchantSubSellerSubS } /** - * Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * Required for transactions performed by registered payment facilitators. The sub-merchant's + * 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits * - * @param subMerchantSubSellerSubSellerNrMcc Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * @param subMerchantSubSellerSubSellerNrMcc Required for transactions performed by registered + * payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * + * Format: Numeric * Fixed length: 4 digits * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrMcc(String subMerchantSubSellerSubSellerNrMcc) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrMcc( + String subMerchantSubSellerSubSellerNrMcc) { this.subMerchantSubSellerSubSellerNrMcc = subMerchantSubSellerSubSellerNrMcc; return this; } /** - * Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits - * @return subMerchantSubSellerSubSellerNrMcc Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * Required for transactions performed by registered payment facilitators. The sub-merchant's + * 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * + * @return subMerchantSubSellerSubSellerNrMcc Required for transactions performed by registered + * payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * + * Format: Numeric * Fixed length: 4 digits */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -264,9 +341,12 @@ public String getSubMerchantSubSellerSubSellerNrMcc() { } /** - * Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * Required for transactions performed by registered payment facilitators. The sub-merchant's + * 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits * - * @param subMerchantSubSellerSubSellerNrMcc Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * @param subMerchantSubSellerSubSellerNrMcc Required for transactions performed by registered + * payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * + * Format: Numeric * Fixed length: 4 digits */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -275,19 +355,35 @@ public void setSubMerchantSubSellerSubSellerNrMcc(String subMerchantSubSellerSub } /** - * Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters + * Required for transactions performed by registered payment facilitators. The name of the + * sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement + * that will appear in the card statement. Exception: for acquirers in Brazil, this value does not + * overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters * - * @param subMerchantSubSellerSubSellerNrName Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters + * @param subMerchantSubSellerSubSellerNrName Required for transactions performed by registered + * payment facilitators. The name of the sub-merchant. Based on scheme specifications, this + * value will overwrite the shopper statement that will appear in the card statement. + * Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * + * Format: Alphanumeric * Maximum length: 22 characters * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrName(String subMerchantSubSellerSubSellerNrName) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrName( + String subMerchantSubSellerSubSellerNrName) { this.subMerchantSubSellerSubSellerNrName = subMerchantSubSellerSubSellerNrName; return this; } /** - * Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters - * @return subMerchantSubSellerSubSellerNrName Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters + * Required for transactions performed by registered payment facilitators. The name of the + * sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement + * that will appear in the card statement. Exception: for acquirers in Brazil, this value does not + * overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters + * + * @return subMerchantSubSellerSubSellerNrName Required for transactions performed by registered + * payment facilitators. The name of the sub-merchant. Based on scheme specifications, this + * value will overwrite the shopper statement that will appear in the card statement. + * Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * + * Format: Alphanumeric * Maximum length: 22 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -296,9 +392,16 @@ public String getSubMerchantSubSellerSubSellerNrName() { } /** - * Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters + * Required for transactions performed by registered payment facilitators. The name of the + * sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement + * that will appear in the card statement. Exception: for acquirers in Brazil, this value does not + * overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters * - * @param subMerchantSubSellerSubSellerNrName Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters + * @param subMerchantSubSellerSubSellerNrName Required for transactions performed by registered + * payment facilitators. The name of the sub-merchant. Based on scheme specifications, this + * value will overwrite the shopper statement that will appear in the card statement. + * Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * + * Format: Alphanumeric * Maximum length: 22 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -307,19 +410,27 @@ public void setSubMerchantSubSellerSubSellerNrName(String subMerchantSubSellerSu } /** - * Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * Required for transactions performed by registered payment facilitators. The phone number of the + * sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters * - * @param subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * @param subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by + * registered payment facilitators. The phone number of the sub-merchant.* Format: + * Alphanumeric * Maximum length: 20 characters * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrPhoneNumber(String subMerchantSubSellerSubSellerNrPhoneNumber) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrPhoneNumber( + String subMerchantSubSellerSubSellerNrPhoneNumber) { this.subMerchantSubSellerSubSellerNrPhoneNumber = subMerchantSubSellerSubSellerNrPhoneNumber; return this; } /** - * Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters - * @return subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * Required for transactions performed by registered payment facilitators. The phone number of the + * sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * + * @return subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by + * registered payment facilitators. The phone number of the sub-merchant.* Format: + * Alphanumeric * Maximum length: 20 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -328,30 +439,42 @@ public String getSubMerchantSubSellerSubSellerNrPhoneNumber() { } /** - * Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * Required for transactions performed by registered payment facilitators. The phone number of the + * sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters * - * @param subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * @param subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by + * registered payment facilitators. The phone number of the sub-merchant.* Format: + * Alphanumeric * Maximum length: 20 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubMerchantSubSellerSubSellerNrPhoneNumber(String subMerchantSubSellerSubSellerNrPhoneNumber) { + public void setSubMerchantSubSellerSubSellerNrPhoneNumber( + String subMerchantSubSellerSubSellerNrPhoneNumber) { this.subMerchantSubSellerSubSellerNrPhoneNumber = subMerchantSubSellerSubSellerNrPhoneNumber; } /** - * Required for transactions performed by registered payment facilitators. The postal code of the sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits + * Required for transactions performed by registered payment facilitators. The postal code of the + * sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits * - * @param subMerchantSubSellerSubSellerNrPostalCode Required for transactions performed by registered payment facilitators. The postal code of the sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits + * @param subMerchantSubSellerSubSellerNrPostalCode Required for transactions performed by + * registered payment facilitators. The postal code of the sub-merchant's address, without + * dashes. * Format: Numeric * Fixed length: 8 digits * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrPostalCode(String subMerchantSubSellerSubSellerNrPostalCode) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrPostalCode( + String subMerchantSubSellerSubSellerNrPostalCode) { this.subMerchantSubSellerSubSellerNrPostalCode = subMerchantSubSellerSubSellerNrPostalCode; return this; } /** - * Required for transactions performed by registered payment facilitators. The postal code of the sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits - * @return subMerchantSubSellerSubSellerNrPostalCode Required for transactions performed by registered payment facilitators. The postal code of the sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits + * Required for transactions performed by registered payment facilitators. The postal code of the + * sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits + * + * @return subMerchantSubSellerSubSellerNrPostalCode Required for transactions performed by + * registered payment facilitators. The postal code of the sub-merchant's address, without + * dashes. * Format: Numeric * Fixed length: 8 digits */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -360,30 +483,44 @@ public String getSubMerchantSubSellerSubSellerNrPostalCode() { } /** - * Required for transactions performed by registered payment facilitators. The postal code of the sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits + * Required for transactions performed by registered payment facilitators. The postal code of the + * sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits * - * @param subMerchantSubSellerSubSellerNrPostalCode Required for transactions performed by registered payment facilitators. The postal code of the sub-merchant's address, without dashes. * Format: Numeric * Fixed length: 8 digits + * @param subMerchantSubSellerSubSellerNrPostalCode Required for transactions performed by + * registered payment facilitators. The postal code of the sub-merchant's address, without + * dashes. * Format: Numeric * Fixed length: 8 digits */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubMerchantSubSellerSubSellerNrPostalCode(String subMerchantSubSellerSubSellerNrPostalCode) { + public void setSubMerchantSubSellerSubSellerNrPostalCode( + String subMerchantSubSellerSubSellerNrPostalCode) { this.subMerchantSubSellerSubSellerNrPostalCode = subMerchantSubSellerSubSellerNrPostalCode; } /** - * Required for transactions performed by registered payment facilitators. The state code of the sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum length: 2 characters + * Required for transactions performed by registered payment facilitators. The state code of the + * sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum + * length: 2 characters * - * @param subMerchantSubSellerSubSellerNrState Required for transactions performed by registered payment facilitators. The state code of the sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum length: 2 characters + * @param subMerchantSubSellerSubSellerNrState Required for transactions performed by registered + * payment facilitators. The state code of the sub-merchant's address, if applicable to + * the country. * Format: Alphanumeric * Maximum length: 2 characters * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrState(String subMerchantSubSellerSubSellerNrState) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrState( + String subMerchantSubSellerSubSellerNrState) { this.subMerchantSubSellerSubSellerNrState = subMerchantSubSellerSubSellerNrState; return this; } /** - * Required for transactions performed by registered payment facilitators. The state code of the sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum length: 2 characters - * @return subMerchantSubSellerSubSellerNrState Required for transactions performed by registered payment facilitators. The state code of the sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum length: 2 characters + * Required for transactions performed by registered payment facilitators. The state code of the + * sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum + * length: 2 characters + * + * @return subMerchantSubSellerSubSellerNrState Required for transactions performed by registered + * payment facilitators. The state code of the sub-merchant's address, if applicable to + * the country. * Format: Alphanumeric * Maximum length: 2 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -392,9 +529,13 @@ public String getSubMerchantSubSellerSubSellerNrState() { } /** - * Required for transactions performed by registered payment facilitators. The state code of the sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum length: 2 characters + * Required for transactions performed by registered payment facilitators. The state code of the + * sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum + * length: 2 characters * - * @param subMerchantSubSellerSubSellerNrState Required for transactions performed by registered payment facilitators. The state code of the sub-merchant's address, if applicable to the country. * Format: Alphanumeric * Maximum length: 2 characters + * @param subMerchantSubSellerSubSellerNrState Required for transactions performed by registered + * payment facilitators. The state code of the sub-merchant's address, if applicable to + * the country. * Format: Alphanumeric * Maximum length: 2 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -403,19 +544,29 @@ public void setSubMerchantSubSellerSubSellerNrState(String subMerchantSubSellerS } /** - * Required for transactions performed by registered payment facilitators. The street name and house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 characters + * Required for transactions performed by registered payment facilitators. The street name and + * house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 + * characters * - * @param subMerchantSubSellerSubSellerNrStreet Required for transactions performed by registered payment facilitators. The street name and house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 characters + * @param subMerchantSubSellerSubSellerNrStreet Required for transactions performed by registered + * payment facilitators. The street name and house number of the sub-merchant's address. * + * Format: Alphanumeric * Maximum length: 60 characters * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrStreet(String subMerchantSubSellerSubSellerNrStreet) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrStreet( + String subMerchantSubSellerSubSellerNrStreet) { this.subMerchantSubSellerSubSellerNrStreet = subMerchantSubSellerSubSellerNrStreet; return this; } /** - * Required for transactions performed by registered payment facilitators. The street name and house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 characters - * @return subMerchantSubSellerSubSellerNrStreet Required for transactions performed by registered payment facilitators. The street name and house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 characters + * Required for transactions performed by registered payment facilitators. The street name and + * house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 + * characters + * + * @return subMerchantSubSellerSubSellerNrStreet Required for transactions performed by registered + * payment facilitators. The street name and house number of the sub-merchant's address. * + * Format: Alphanumeric * Maximum length: 60 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -424,30 +575,43 @@ public String getSubMerchantSubSellerSubSellerNrStreet() { } /** - * Required for transactions performed by registered payment facilitators. The street name and house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 characters + * Required for transactions performed by registered payment facilitators. The street name and + * house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 + * characters * - * @param subMerchantSubSellerSubSellerNrStreet Required for transactions performed by registered payment facilitators. The street name and house number of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 60 characters + * @param subMerchantSubSellerSubSellerNrStreet Required for transactions performed by registered + * payment facilitators. The street name and house number of the sub-merchant's address. * + * Format: Alphanumeric * Maximum length: 60 characters */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubMerchantSubSellerSubSellerNrStreet(String subMerchantSubSellerSubSellerNrStreet) { + public void setSubMerchantSubSellerSubSellerNrStreet( + String subMerchantSubSellerSubSellerNrStreet) { this.subMerchantSubSellerSubSellerNrStreet = subMerchantSubSellerSubSellerNrStreet; } /** - * Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * Required for transactions performed by registered payment facilitators. The tax ID of the + * sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ * - * @param subMerchantSubSellerSubSellerNrTaxId Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * @param subMerchantSubSellerSubSellerNrTaxId Required for transactions performed by registered + * payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 + * digits for the CPF or 14 digits for the CNPJ * @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining */ - public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrTaxId(String subMerchantSubSellerSubSellerNrTaxId) { + public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrTaxId( + String subMerchantSubSellerSubSellerNrTaxId) { this.subMerchantSubSellerSubSellerNrTaxId = subMerchantSubSellerSubSellerNrTaxId; return this; } /** - * Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ - * @return subMerchantSubSellerSubSellerNrTaxId Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * Required for transactions performed by registered payment facilitators. The tax ID of the + * sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * + * @return subMerchantSubSellerSubSellerNrTaxId Required for transactions performed by registered + * payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 + * digits for the CPF or 14 digits for the CNPJ */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_TAX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -456,9 +620,12 @@ public String getSubMerchantSubSellerSubSellerNrTaxId() { } /** - * Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * Required for transactions performed by registered payment facilitators. The tax ID of the + * sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ * - * @param subMerchantSubSellerSubSellerNrTaxId Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * @param subMerchantSubSellerSubSellerNrTaxId Required for transactions performed by registered + * payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 + * digits for the CPF or 14 digits for the CNPJ */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_TAX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -466,9 +633,7 @@ public void setSubMerchantSubSellerSubSellerNrTaxId(String subMerchantSubSellerS this.subMerchantSubSellerSubSellerNrTaxId = subMerchantSubSellerSubSellerNrTaxId; } - /** - * Return true if this AdditionalDataSubMerchant object is equal to o. - */ + /** Return true if this AdditionalDataSubMerchant object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -478,48 +643,107 @@ public boolean equals(Object o) { return false; } AdditionalDataSubMerchant additionalDataSubMerchant = (AdditionalDataSubMerchant) o; - return Objects.equals(this.subMerchantNumberOfSubSellers, additionalDataSubMerchant.subMerchantNumberOfSubSellers) && - Objects.equals(this.subMerchantSubSellerSubSellerNrCity, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrCity) && - Objects.equals(this.subMerchantSubSellerSubSellerNrCountry, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrCountry) && - Objects.equals(this.subMerchantSubSellerSubSellerNrEmail, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrEmail) && - Objects.equals(this.subMerchantSubSellerSubSellerNrId, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrId) && - Objects.equals(this.subMerchantSubSellerSubSellerNrMcc, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrMcc) && - Objects.equals(this.subMerchantSubSellerSubSellerNrName, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrName) && - Objects.equals(this.subMerchantSubSellerSubSellerNrPhoneNumber, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrPhoneNumber) && - Objects.equals(this.subMerchantSubSellerSubSellerNrPostalCode, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrPostalCode) && - Objects.equals(this.subMerchantSubSellerSubSellerNrState, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrState) && - Objects.equals(this.subMerchantSubSellerSubSellerNrStreet, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrStreet) && - Objects.equals(this.subMerchantSubSellerSubSellerNrTaxId, additionalDataSubMerchant.subMerchantSubSellerSubSellerNrTaxId); + return Objects.equals( + this.subMerchantNumberOfSubSellers, + additionalDataSubMerchant.subMerchantNumberOfSubSellers) + && Objects.equals( + this.subMerchantSubSellerSubSellerNrCity, + additionalDataSubMerchant.subMerchantSubSellerSubSellerNrCity) + && Objects.equals( + this.subMerchantSubSellerSubSellerNrCountry, + additionalDataSubMerchant.subMerchantSubSellerSubSellerNrCountry) + && Objects.equals( + this.subMerchantSubSellerSubSellerNrEmail, + additionalDataSubMerchant.subMerchantSubSellerSubSellerNrEmail) + && Objects.equals( + this.subMerchantSubSellerSubSellerNrId, + additionalDataSubMerchant.subMerchantSubSellerSubSellerNrId) + && Objects.equals( + this.subMerchantSubSellerSubSellerNrMcc, + additionalDataSubMerchant.subMerchantSubSellerSubSellerNrMcc) + && Objects.equals( + this.subMerchantSubSellerSubSellerNrName, + additionalDataSubMerchant.subMerchantSubSellerSubSellerNrName) + && Objects.equals( + this.subMerchantSubSellerSubSellerNrPhoneNumber, + additionalDataSubMerchant.subMerchantSubSellerSubSellerNrPhoneNumber) + && Objects.equals( + this.subMerchantSubSellerSubSellerNrPostalCode, + additionalDataSubMerchant.subMerchantSubSellerSubSellerNrPostalCode) + && Objects.equals( + this.subMerchantSubSellerSubSellerNrState, + additionalDataSubMerchant.subMerchantSubSellerSubSellerNrState) + && Objects.equals( + this.subMerchantSubSellerSubSellerNrStreet, + additionalDataSubMerchant.subMerchantSubSellerSubSellerNrStreet) + && Objects.equals( + this.subMerchantSubSellerSubSellerNrTaxId, + additionalDataSubMerchant.subMerchantSubSellerSubSellerNrTaxId); } @Override public int hashCode() { - return Objects.hash(subMerchantNumberOfSubSellers, subMerchantSubSellerSubSellerNrCity, subMerchantSubSellerSubSellerNrCountry, subMerchantSubSellerSubSellerNrEmail, subMerchantSubSellerSubSellerNrId, subMerchantSubSellerSubSellerNrMcc, subMerchantSubSellerSubSellerNrName, subMerchantSubSellerSubSellerNrPhoneNumber, subMerchantSubSellerSubSellerNrPostalCode, subMerchantSubSellerSubSellerNrState, subMerchantSubSellerSubSellerNrStreet, subMerchantSubSellerSubSellerNrTaxId); + return Objects.hash( + subMerchantNumberOfSubSellers, + subMerchantSubSellerSubSellerNrCity, + subMerchantSubSellerSubSellerNrCountry, + subMerchantSubSellerSubSellerNrEmail, + subMerchantSubSellerSubSellerNrId, + subMerchantSubSellerSubSellerNrMcc, + subMerchantSubSellerSubSellerNrName, + subMerchantSubSellerSubSellerNrPhoneNumber, + subMerchantSubSellerSubSellerNrPostalCode, + subMerchantSubSellerSubSellerNrState, + subMerchantSubSellerSubSellerNrStreet, + subMerchantSubSellerSubSellerNrTaxId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataSubMerchant {\n"); - sb.append(" subMerchantNumberOfSubSellers: ").append(toIndentedString(subMerchantNumberOfSubSellers)).append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrCity: ").append(toIndentedString(subMerchantSubSellerSubSellerNrCity)).append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrCountry: ").append(toIndentedString(subMerchantSubSellerSubSellerNrCountry)).append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrEmail: ").append(toIndentedString(subMerchantSubSellerSubSellerNrEmail)).append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrId: ").append(toIndentedString(subMerchantSubSellerSubSellerNrId)).append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrMcc: ").append(toIndentedString(subMerchantSubSellerSubSellerNrMcc)).append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrName: ").append(toIndentedString(subMerchantSubSellerSubSellerNrName)).append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrPhoneNumber: ").append(toIndentedString(subMerchantSubSellerSubSellerNrPhoneNumber)).append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrPostalCode: ").append(toIndentedString(subMerchantSubSellerSubSellerNrPostalCode)).append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrState: ").append(toIndentedString(subMerchantSubSellerSubSellerNrState)).append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrStreet: ").append(toIndentedString(subMerchantSubSellerSubSellerNrStreet)).append("\n"); - sb.append(" subMerchantSubSellerSubSellerNrTaxId: ").append(toIndentedString(subMerchantSubSellerSubSellerNrTaxId)).append("\n"); + sb.append(" subMerchantNumberOfSubSellers: ") + .append(toIndentedString(subMerchantNumberOfSubSellers)) + .append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrCity: ") + .append(toIndentedString(subMerchantSubSellerSubSellerNrCity)) + .append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrCountry: ") + .append(toIndentedString(subMerchantSubSellerSubSellerNrCountry)) + .append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrEmail: ") + .append(toIndentedString(subMerchantSubSellerSubSellerNrEmail)) + .append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrId: ") + .append(toIndentedString(subMerchantSubSellerSubSellerNrId)) + .append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrMcc: ") + .append(toIndentedString(subMerchantSubSellerSubSellerNrMcc)) + .append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrName: ") + .append(toIndentedString(subMerchantSubSellerSubSellerNrName)) + .append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrPhoneNumber: ") + .append(toIndentedString(subMerchantSubSellerSubSellerNrPhoneNumber)) + .append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrPostalCode: ") + .append(toIndentedString(subMerchantSubSellerSubSellerNrPostalCode)) + .append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrState: ") + .append(toIndentedString(subMerchantSubSellerSubSellerNrState)) + .append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrStreet: ") + .append(toIndentedString(subMerchantSubSellerSubSellerNrStreet)) + .append("\n"); + sb.append(" subMerchantSubSellerSubSellerNrTaxId: ") + .append(toIndentedString(subMerchantSubSellerSubSellerNrTaxId)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -528,21 +752,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalDataSubMerchant given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataSubMerchant - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataSubMerchant + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalDataSubMerchant */ - public static AdditionalDataSubMerchant fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalDataSubMerchant fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataSubMerchant.class); } -/** - * Convert an instance of AdditionalDataSubMerchant to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalDataSubMerchant to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataTemporaryServices.java b/src/main/java/com/adyen/model/payment/AdditionalDataTemporaryServices.java index 1b1c1534e..edd7dda11 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataTemporaryServices.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataTemporaryServices.java @@ -2,31 +2,22 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AdditionalDataTemporaryServices - */ +/** AdditionalDataTemporaryServices */ @JsonPropertyOrder({ AdditionalDataTemporaryServices.JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE, AdditionalDataTemporaryServices.JSON_PROPERTY_ENHANCED_SCHEME_DATA_EMPLOYEE_NAME, @@ -38,52 +29,64 @@ AdditionalDataTemporaryServices.JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_WEEK_ENDING, AdditionalDataTemporaryServices.JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT }) - public class AdditionalDataTemporaryServices { - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE = "enhancedSchemeData.customerReference"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE = + "enhancedSchemeData.customerReference"; private String enhancedSchemeDataCustomerReference; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_EMPLOYEE_NAME = "enhancedSchemeData.employeeName"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_EMPLOYEE_NAME = + "enhancedSchemeData.employeeName"; private String enhancedSchemeDataEmployeeName; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_JOB_DESCRIPTION = "enhancedSchemeData.jobDescription"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_JOB_DESCRIPTION = + "enhancedSchemeData.jobDescription"; private String enhancedSchemeDataJobDescription; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_REGULAR_HOURS_RATE = "enhancedSchemeData.regularHoursRate"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_REGULAR_HOURS_RATE = + "enhancedSchemeData.regularHoursRate"; private String enhancedSchemeDataRegularHoursRate; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_REGULAR_HOURS_WORKED = "enhancedSchemeData.regularHoursWorked"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_REGULAR_HOURS_WORKED = + "enhancedSchemeData.regularHoursWorked"; private String enhancedSchemeDataRegularHoursWorked; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_REQUEST_NAME = "enhancedSchemeData.requestName"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_REQUEST_NAME = + "enhancedSchemeData.requestName"; private String enhancedSchemeDataRequestName; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_START_DATE = "enhancedSchemeData.tempStartDate"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_START_DATE = + "enhancedSchemeData.tempStartDate"; private String enhancedSchemeDataTempStartDate; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_WEEK_ENDING = "enhancedSchemeData.tempWeekEnding"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_WEEK_ENDING = + "enhancedSchemeData.tempWeekEnding"; private String enhancedSchemeDataTempWeekEnding; - public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT = "enhancedSchemeData.totalTaxAmount"; + public static final String JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT = + "enhancedSchemeData.totalTaxAmount"; private String enhancedSchemeDataTotalTaxAmount; - public AdditionalDataTemporaryServices() { - } + public AdditionalDataTemporaryServices() {} /** * The customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 * - * @param enhancedSchemeDataCustomerReference The customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining + * @param enhancedSchemeDataCustomerReference The customer code, if supplied by a customer. * + * Encoding: ASCII * maxLength: 25 + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method + * chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataCustomerReference(String enhancedSchemeDataCustomerReference) { + public AdditionalDataTemporaryServices enhancedSchemeDataCustomerReference( + String enhancedSchemeDataCustomerReference) { this.enhancedSchemeDataCustomerReference = enhancedSchemeDataCustomerReference; return this; } /** * The customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 - * @return enhancedSchemeDataCustomerReference The customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 + * + * @return enhancedSchemeDataCustomerReference The customer code, if supplied by a customer. * + * Encoding: ASCII * maxLength: 25 */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,7 +97,8 @@ public String getEnhancedSchemeDataCustomerReference() { /** * The customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 * - * @param enhancedSchemeDataCustomerReference The customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 + * @param enhancedSchemeDataCustomerReference The customer code, if supplied by a customer. * + * Encoding: ASCII * maxLength: 25 */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_CUSTOMER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -103,19 +107,26 @@ public void setEnhancedSchemeDataCustomerReference(String enhancedSchemeDataCust } /** - * The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. + * The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be + * all spaces. *Must not be all zeros. * - * @param enhancedSchemeDataEmployeeName The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining + * @param enhancedSchemeDataEmployeeName The name or ID of the person working in a temporary + * capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method + * chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataEmployeeName(String enhancedSchemeDataEmployeeName) { + public AdditionalDataTemporaryServices enhancedSchemeDataEmployeeName( + String enhancedSchemeDataEmployeeName) { this.enhancedSchemeDataEmployeeName = enhancedSchemeDataEmployeeName; return this; } /** - * The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. - * @return enhancedSchemeDataEmployeeName The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. + * The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be + * all spaces. *Must not be all zeros. + * + * @return enhancedSchemeDataEmployeeName The name or ID of the person working in a temporary + * capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_EMPLOYEE_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,9 +135,11 @@ public String getEnhancedSchemeDataEmployeeName() { } /** - * The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. + * The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be + * all spaces. *Must not be all zeros. * - * @param enhancedSchemeDataEmployeeName The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. + * @param enhancedSchemeDataEmployeeName The name or ID of the person working in a temporary + * capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_EMPLOYEE_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,19 +148,26 @@ public void setEnhancedSchemeDataEmployeeName(String enhancedSchemeDataEmployeeN } /** - * The job description of the person working in a temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. + * The job description of the person working in a temporary capacity. * maxLength: 40 * Must not + * be all spaces. *Must not be all zeros. * - * @param enhancedSchemeDataJobDescription The job description of the person working in a temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining + * @param enhancedSchemeDataJobDescription The job description of the person working in a + * temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method + * chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataJobDescription(String enhancedSchemeDataJobDescription) { + public AdditionalDataTemporaryServices enhancedSchemeDataJobDescription( + String enhancedSchemeDataJobDescription) { this.enhancedSchemeDataJobDescription = enhancedSchemeDataJobDescription; return this; } /** - * The job description of the person working in a temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. - * @return enhancedSchemeDataJobDescription The job description of the person working in a temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. + * The job description of the person working in a temporary capacity. * maxLength: 40 * Must not + * be all spaces. *Must not be all zeros. + * + * @return enhancedSchemeDataJobDescription The job description of the person working in a + * temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_JOB_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,9 +176,11 @@ public String getEnhancedSchemeDataJobDescription() { } /** - * The job description of the person working in a temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. + * The job description of the person working in a temporary capacity. * maxLength: 40 * Must not + * be all spaces. *Must not be all zeros. * - * @param enhancedSchemeDataJobDescription The job description of the person working in a temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. + * @param enhancedSchemeDataJobDescription The job description of the person working in a + * temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_JOB_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,19 +189,30 @@ public void setEnhancedSchemeDataJobDescription(String enhancedSchemeDataJobDesc } /** - * The amount paid for regular hours worked, [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not be empty * Can be all zeros + * The amount paid for regular hours worked, [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not + * be empty * Can be all zeros * - * @param enhancedSchemeDataRegularHoursRate The amount paid for regular hours worked, [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not be empty * Can be all zeros - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining + * @param enhancedSchemeDataRegularHoursRate The amount paid for regular hours worked, [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must + * not be empty * Can be all zeros + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method + * chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataRegularHoursRate(String enhancedSchemeDataRegularHoursRate) { + public AdditionalDataTemporaryServices enhancedSchemeDataRegularHoursRate( + String enhancedSchemeDataRegularHoursRate) { this.enhancedSchemeDataRegularHoursRate = enhancedSchemeDataRegularHoursRate; return this; } /** - * The amount paid for regular hours worked, [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not be empty * Can be all zeros - * @return enhancedSchemeDataRegularHoursRate The amount paid for regular hours worked, [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not be empty * Can be all zeros + * The amount paid for regular hours worked, [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not + * be empty * Can be all zeros + * + * @return enhancedSchemeDataRegularHoursRate The amount paid for regular hours worked, [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must + * not be empty * Can be all zeros */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_REGULAR_HOURS_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,9 +221,13 @@ public String getEnhancedSchemeDataRegularHoursRate() { } /** - * The amount paid for regular hours worked, [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not be empty * Can be all zeros + * The amount paid for regular hours worked, [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not + * be empty * Can be all zeros * - * @param enhancedSchemeDataRegularHoursRate The amount paid for regular hours worked, [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not be empty * Can be all zeros + * @param enhancedSchemeDataRegularHoursRate The amount paid for regular hours worked, [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must + * not be empty * Can be all zeros */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_REGULAR_HOURS_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -201,17 +238,22 @@ public void setEnhancedSchemeDataRegularHoursRate(String enhancedSchemeDataRegul /** * The hours worked. * maxLength: 7 * Must not be empty * Can be all zeros * - * @param enhancedSchemeDataRegularHoursWorked The hours worked. * maxLength: 7 * Must not be empty * Can be all zeros - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining + * @param enhancedSchemeDataRegularHoursWorked The hours worked. * maxLength: 7 * Must not be + * empty * Can be all zeros + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method + * chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataRegularHoursWorked(String enhancedSchemeDataRegularHoursWorked) { + public AdditionalDataTemporaryServices enhancedSchemeDataRegularHoursWorked( + String enhancedSchemeDataRegularHoursWorked) { this.enhancedSchemeDataRegularHoursWorked = enhancedSchemeDataRegularHoursWorked; return this; } /** * The hours worked. * maxLength: 7 * Must not be empty * Can be all zeros - * @return enhancedSchemeDataRegularHoursWorked The hours worked. * maxLength: 7 * Must not be empty * Can be all zeros + * + * @return enhancedSchemeDataRegularHoursWorked The hours worked. * maxLength: 7 * Must not be + * empty * Can be all zeros */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_REGULAR_HOURS_WORKED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -222,7 +264,8 @@ public String getEnhancedSchemeDataRegularHoursWorked() { /** * The hours worked. * maxLength: 7 * Must not be empty * Can be all zeros * - * @param enhancedSchemeDataRegularHoursWorked The hours worked. * maxLength: 7 * Must not be empty * Can be all zeros + * @param enhancedSchemeDataRegularHoursWorked The hours worked. * maxLength: 7 * Must not be + * empty * Can be all zeros */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_REGULAR_HOURS_WORKED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -231,19 +274,26 @@ public void setEnhancedSchemeDataRegularHoursWorked(String enhancedSchemeDataReg } /** - * The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * Must not be all spaces + * The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * + * Must not be all spaces * - * @param enhancedSchemeDataRequestName The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * Must not be all spaces - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining + * @param enhancedSchemeDataRequestName The name of the person requesting temporary services. * + * maxLength: 40 * Must not be all zeros * Must not be all spaces + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method + * chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataRequestName(String enhancedSchemeDataRequestName) { + public AdditionalDataTemporaryServices enhancedSchemeDataRequestName( + String enhancedSchemeDataRequestName) { this.enhancedSchemeDataRequestName = enhancedSchemeDataRequestName; return this; } /** - * The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * Must not be all spaces - * @return enhancedSchemeDataRequestName The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * Must not be all spaces + * The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * + * Must not be all spaces + * + * @return enhancedSchemeDataRequestName The name of the person requesting temporary services. * + * maxLength: 40 * Must not be all zeros * Must not be all spaces */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_REQUEST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,9 +302,11 @@ public String getEnhancedSchemeDataRequestName() { } /** - * The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * Must not be all spaces + * The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * + * Must not be all spaces * - * @param enhancedSchemeDataRequestName The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * Must not be all spaces + * @param enhancedSchemeDataRequestName The name of the person requesting temporary services. * + * maxLength: 40 * Must not be all zeros * Must not be all spaces */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_REQUEST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -265,17 +317,22 @@ public void setEnhancedSchemeDataRequestName(String enhancedSchemeDataRequestNam /** * The billing period start date. * Format: ddMMyy * maxLength: 6 * - * @param enhancedSchemeDataTempStartDate The billing period start date. * Format: ddMMyy * maxLength: 6 - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining + * @param enhancedSchemeDataTempStartDate The billing period start date. * Format: ddMMyy * + * maxLength: 6 + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method + * chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataTempStartDate(String enhancedSchemeDataTempStartDate) { + public AdditionalDataTemporaryServices enhancedSchemeDataTempStartDate( + String enhancedSchemeDataTempStartDate) { this.enhancedSchemeDataTempStartDate = enhancedSchemeDataTempStartDate; return this; } /** * The billing period start date. * Format: ddMMyy * maxLength: 6 - * @return enhancedSchemeDataTempStartDate The billing period start date. * Format: ddMMyy * maxLength: 6 + * + * @return enhancedSchemeDataTempStartDate The billing period start date. * Format: ddMMyy * + * maxLength: 6 */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_START_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -286,7 +343,8 @@ public String getEnhancedSchemeDataTempStartDate() { /** * The billing period start date. * Format: ddMMyy * maxLength: 6 * - * @param enhancedSchemeDataTempStartDate The billing period start date. * Format: ddMMyy * maxLength: 6 + * @param enhancedSchemeDataTempStartDate The billing period start date. * Format: ddMMyy * + * maxLength: 6 */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_START_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -297,17 +355,22 @@ public void setEnhancedSchemeDataTempStartDate(String enhancedSchemeDataTempStar /** * The billing period end date. * Format: ddMMyy * maxLength: 6 * - * @param enhancedSchemeDataTempWeekEnding The billing period end date. * Format: ddMMyy * maxLength: 6 - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining + * @param enhancedSchemeDataTempWeekEnding The billing period end date. * Format: ddMMyy * + * maxLength: 6 + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method + * chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataTempWeekEnding(String enhancedSchemeDataTempWeekEnding) { + public AdditionalDataTemporaryServices enhancedSchemeDataTempWeekEnding( + String enhancedSchemeDataTempWeekEnding) { this.enhancedSchemeDataTempWeekEnding = enhancedSchemeDataTempWeekEnding; return this; } /** * The billing period end date. * Format: ddMMyy * maxLength: 6 - * @return enhancedSchemeDataTempWeekEnding The billing period end date. * Format: ddMMyy * maxLength: 6 + * + * @return enhancedSchemeDataTempWeekEnding The billing period end date. * Format: ddMMyy * + * maxLength: 6 */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_WEEK_ENDING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -318,7 +381,8 @@ public String getEnhancedSchemeDataTempWeekEnding() { /** * The billing period end date. * Format: ddMMyy * maxLength: 6 * - * @param enhancedSchemeDataTempWeekEnding The billing period end date. * Format: ddMMyy * maxLength: 6 + * @param enhancedSchemeDataTempWeekEnding The billing period end date. * Format: ddMMyy * + * maxLength: 6 */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_TEMP_WEEK_ENDING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -327,19 +391,30 @@ public void setEnhancedSchemeDataTempWeekEnding(String enhancedSchemeDataTempWee } /** - * The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00 * maxLength: 12 + * The total tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means + * USD 20.00 * maxLength: 12 * - * @param enhancedSchemeDataTotalTaxAmount The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00 * maxLength: 12 - * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method chaining + * @param enhancedSchemeDataTotalTaxAmount The total tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 + * means USD 20.00 * maxLength: 12 + * @return the current {@code AdditionalDataTemporaryServices} instance, allowing for method + * chaining */ - public AdditionalDataTemporaryServices enhancedSchemeDataTotalTaxAmount(String enhancedSchemeDataTotalTaxAmount) { + public AdditionalDataTemporaryServices enhancedSchemeDataTotalTaxAmount( + String enhancedSchemeDataTotalTaxAmount) { this.enhancedSchemeDataTotalTaxAmount = enhancedSchemeDataTotalTaxAmount; return this; } /** - * The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00 * maxLength: 12 - * @return enhancedSchemeDataTotalTaxAmount The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00 * maxLength: 12 + * The total tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means + * USD 20.00 * maxLength: 12 + * + * @return enhancedSchemeDataTotalTaxAmount The total tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 + * means USD 20.00 * maxLength: 12 */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -348,9 +423,13 @@ public String getEnhancedSchemeDataTotalTaxAmount() { } /** - * The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00 * maxLength: 12 + * The total tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means + * USD 20.00 * maxLength: 12 * - * @param enhancedSchemeDataTotalTaxAmount The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00 * maxLength: 12 + * @param enhancedSchemeDataTotalTaxAmount The total tax amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 + * means USD 20.00 * maxLength: 12 */ @JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_TOTAL_TAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -358,9 +437,7 @@ public void setEnhancedSchemeDataTotalTaxAmount(String enhancedSchemeDataTotalTa this.enhancedSchemeDataTotalTaxAmount = enhancedSchemeDataTotalTaxAmount; } - /** - * Return true if this AdditionalDataTemporaryServices object is equal to o. - */ + /** Return true if this AdditionalDataTemporaryServices object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -369,43 +446,88 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AdditionalDataTemporaryServices additionalDataTemporaryServices = (AdditionalDataTemporaryServices) o; - return Objects.equals(this.enhancedSchemeDataCustomerReference, additionalDataTemporaryServices.enhancedSchemeDataCustomerReference) && - Objects.equals(this.enhancedSchemeDataEmployeeName, additionalDataTemporaryServices.enhancedSchemeDataEmployeeName) && - Objects.equals(this.enhancedSchemeDataJobDescription, additionalDataTemporaryServices.enhancedSchemeDataJobDescription) && - Objects.equals(this.enhancedSchemeDataRegularHoursRate, additionalDataTemporaryServices.enhancedSchemeDataRegularHoursRate) && - Objects.equals(this.enhancedSchemeDataRegularHoursWorked, additionalDataTemporaryServices.enhancedSchemeDataRegularHoursWorked) && - Objects.equals(this.enhancedSchemeDataRequestName, additionalDataTemporaryServices.enhancedSchemeDataRequestName) && - Objects.equals(this.enhancedSchemeDataTempStartDate, additionalDataTemporaryServices.enhancedSchemeDataTempStartDate) && - Objects.equals(this.enhancedSchemeDataTempWeekEnding, additionalDataTemporaryServices.enhancedSchemeDataTempWeekEnding) && - Objects.equals(this.enhancedSchemeDataTotalTaxAmount, additionalDataTemporaryServices.enhancedSchemeDataTotalTaxAmount); + AdditionalDataTemporaryServices additionalDataTemporaryServices = + (AdditionalDataTemporaryServices) o; + return Objects.equals( + this.enhancedSchemeDataCustomerReference, + additionalDataTemporaryServices.enhancedSchemeDataCustomerReference) + && Objects.equals( + this.enhancedSchemeDataEmployeeName, + additionalDataTemporaryServices.enhancedSchemeDataEmployeeName) + && Objects.equals( + this.enhancedSchemeDataJobDescription, + additionalDataTemporaryServices.enhancedSchemeDataJobDescription) + && Objects.equals( + this.enhancedSchemeDataRegularHoursRate, + additionalDataTemporaryServices.enhancedSchemeDataRegularHoursRate) + && Objects.equals( + this.enhancedSchemeDataRegularHoursWorked, + additionalDataTemporaryServices.enhancedSchemeDataRegularHoursWorked) + && Objects.equals( + this.enhancedSchemeDataRequestName, + additionalDataTemporaryServices.enhancedSchemeDataRequestName) + && Objects.equals( + this.enhancedSchemeDataTempStartDate, + additionalDataTemporaryServices.enhancedSchemeDataTempStartDate) + && Objects.equals( + this.enhancedSchemeDataTempWeekEnding, + additionalDataTemporaryServices.enhancedSchemeDataTempWeekEnding) + && Objects.equals( + this.enhancedSchemeDataTotalTaxAmount, + additionalDataTemporaryServices.enhancedSchemeDataTotalTaxAmount); } @Override public int hashCode() { - return Objects.hash(enhancedSchemeDataCustomerReference, enhancedSchemeDataEmployeeName, enhancedSchemeDataJobDescription, enhancedSchemeDataRegularHoursRate, enhancedSchemeDataRegularHoursWorked, enhancedSchemeDataRequestName, enhancedSchemeDataTempStartDate, enhancedSchemeDataTempWeekEnding, enhancedSchemeDataTotalTaxAmount); + return Objects.hash( + enhancedSchemeDataCustomerReference, + enhancedSchemeDataEmployeeName, + enhancedSchemeDataJobDescription, + enhancedSchemeDataRegularHoursRate, + enhancedSchemeDataRegularHoursWorked, + enhancedSchemeDataRequestName, + enhancedSchemeDataTempStartDate, + enhancedSchemeDataTempWeekEnding, + enhancedSchemeDataTotalTaxAmount); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataTemporaryServices {\n"); - sb.append(" enhancedSchemeDataCustomerReference: ").append(toIndentedString(enhancedSchemeDataCustomerReference)).append("\n"); - sb.append(" enhancedSchemeDataEmployeeName: ").append(toIndentedString(enhancedSchemeDataEmployeeName)).append("\n"); - sb.append(" enhancedSchemeDataJobDescription: ").append(toIndentedString(enhancedSchemeDataJobDescription)).append("\n"); - sb.append(" enhancedSchemeDataRegularHoursRate: ").append(toIndentedString(enhancedSchemeDataRegularHoursRate)).append("\n"); - sb.append(" enhancedSchemeDataRegularHoursWorked: ").append(toIndentedString(enhancedSchemeDataRegularHoursWorked)).append("\n"); - sb.append(" enhancedSchemeDataRequestName: ").append(toIndentedString(enhancedSchemeDataRequestName)).append("\n"); - sb.append(" enhancedSchemeDataTempStartDate: ").append(toIndentedString(enhancedSchemeDataTempStartDate)).append("\n"); - sb.append(" enhancedSchemeDataTempWeekEnding: ").append(toIndentedString(enhancedSchemeDataTempWeekEnding)).append("\n"); - sb.append(" enhancedSchemeDataTotalTaxAmount: ").append(toIndentedString(enhancedSchemeDataTotalTaxAmount)).append("\n"); + sb.append(" enhancedSchemeDataCustomerReference: ") + .append(toIndentedString(enhancedSchemeDataCustomerReference)) + .append("\n"); + sb.append(" enhancedSchemeDataEmployeeName: ") + .append(toIndentedString(enhancedSchemeDataEmployeeName)) + .append("\n"); + sb.append(" enhancedSchemeDataJobDescription: ") + .append(toIndentedString(enhancedSchemeDataJobDescription)) + .append("\n"); + sb.append(" enhancedSchemeDataRegularHoursRate: ") + .append(toIndentedString(enhancedSchemeDataRegularHoursRate)) + .append("\n"); + sb.append(" enhancedSchemeDataRegularHoursWorked: ") + .append(toIndentedString(enhancedSchemeDataRegularHoursWorked)) + .append("\n"); + sb.append(" enhancedSchemeDataRequestName: ") + .append(toIndentedString(enhancedSchemeDataRequestName)) + .append("\n"); + sb.append(" enhancedSchemeDataTempStartDate: ") + .append(toIndentedString(enhancedSchemeDataTempStartDate)) + .append("\n"); + sb.append(" enhancedSchemeDataTempWeekEnding: ") + .append(toIndentedString(enhancedSchemeDataTempWeekEnding)) + .append("\n"); + sb.append(" enhancedSchemeDataTotalTaxAmount: ") + .append(toIndentedString(enhancedSchemeDataTotalTaxAmount)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -414,21 +536,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalDataTemporaryServices given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataTemporaryServices - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataTemporaryServices + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalDataTemporaryServices */ - public static AdditionalDataTemporaryServices fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalDataTemporaryServices fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataTemporaryServices.class); } -/** - * Convert an instance of AdditionalDataTemporaryServices to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalDataTemporaryServices to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataWallets.java b/src/main/java/com/adyen/model/payment/AdditionalDataWallets.java index 2154946bb..cee8c6606 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataWallets.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataWallets.java @@ -2,31 +2,22 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AdditionalDataWallets - */ +/** AdditionalDataWallets */ @JsonPropertyOrder({ AdditionalDataWallets.JSON_PROPERTY_ANDROIDPAY_TOKEN, AdditionalDataWallets.JSON_PROPERTY_MASTERPASS_TRANSACTION_ID, @@ -35,7 +26,6 @@ AdditionalDataWallets.JSON_PROPERTY_SAMSUNGPAY_TOKEN, AdditionalDataWallets.JSON_PROPERTY_VISACHECKOUT_CALL_ID }) - public class AdditionalDataWallets { public static final String JSON_PROPERTY_ANDROIDPAY_TOKEN = "androidpay.token"; private String androidpayToken; @@ -55,8 +45,7 @@ public class AdditionalDataWallets { public static final String JSON_PROPERTY_VISACHECKOUT_CALL_ID = "visacheckout.callId"; private String visacheckoutCallId; - public AdditionalDataWallets() { - } + public AdditionalDataWallets() {} /** * The Android Pay token retrieved from the SDK. @@ -71,6 +60,7 @@ public AdditionalDataWallets androidpayToken(String androidpayToken) { /** * The Android Pay token retrieved from the SDK. + * * @return androidpayToken The Android Pay token retrieved from the SDK. */ @JsonProperty(JSON_PROPERTY_ANDROIDPAY_TOKEN) @@ -103,7 +93,9 @@ public AdditionalDataWallets masterpassTransactionId(String masterpassTransactio /** * The Mastercard Masterpass Transaction ID retrieved from the SDK. - * @return masterpassTransactionId The Mastercard Masterpass Transaction ID retrieved from the SDK. + * + * @return masterpassTransactionId The Mastercard Masterpass Transaction ID retrieved from the + * SDK. */ @JsonProperty(JSON_PROPERTY_MASTERPASS_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,6 +127,7 @@ public AdditionalDataWallets paymentToken(String paymentToken) { /** * The Apple Pay token retrieved from the SDK. + * * @return paymentToken The Apple Pay token retrieved from the SDK. */ @JsonProperty(JSON_PROPERTY_PAYMENT_TOKEN) @@ -167,6 +160,7 @@ public AdditionalDataWallets paywithgoogleToken(String paywithgoogleToken) { /** * The Google Pay token retrieved from the SDK. + * * @return paywithgoogleToken The Google Pay token retrieved from the SDK. */ @JsonProperty(JSON_PROPERTY_PAYWITHGOOGLE_TOKEN) @@ -199,6 +193,7 @@ public AdditionalDataWallets samsungpayToken(String samsungpayToken) { /** * The Samsung Pay token retrieved from the SDK. + * * @return samsungpayToken The Samsung Pay token retrieved from the SDK. */ @JsonProperty(JSON_PROPERTY_SAMSUNGPAY_TOKEN) @@ -231,6 +226,7 @@ public AdditionalDataWallets visacheckoutCallId(String visacheckoutCallId) { /** * The Visa Checkout Call ID retrieved from the SDK. + * * @return visacheckoutCallId The Visa Checkout Call ID retrieved from the SDK. */ @JsonProperty(JSON_PROPERTY_VISACHECKOUT_CALL_ID) @@ -250,9 +246,7 @@ public void setVisacheckoutCallId(String visacheckoutCallId) { this.visacheckoutCallId = visacheckoutCallId; } - /** - * Return true if this AdditionalDataWallets object is equal to o. - */ + /** Return true if this AdditionalDataWallets object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -262,17 +256,24 @@ public boolean equals(Object o) { return false; } AdditionalDataWallets additionalDataWallets = (AdditionalDataWallets) o; - return Objects.equals(this.androidpayToken, additionalDataWallets.androidpayToken) && - Objects.equals(this.masterpassTransactionId, additionalDataWallets.masterpassTransactionId) && - Objects.equals(this.paymentToken, additionalDataWallets.paymentToken) && - Objects.equals(this.paywithgoogleToken, additionalDataWallets.paywithgoogleToken) && - Objects.equals(this.samsungpayToken, additionalDataWallets.samsungpayToken) && - Objects.equals(this.visacheckoutCallId, additionalDataWallets.visacheckoutCallId); + return Objects.equals(this.androidpayToken, additionalDataWallets.androidpayToken) + && Objects.equals( + this.masterpassTransactionId, additionalDataWallets.masterpassTransactionId) + && Objects.equals(this.paymentToken, additionalDataWallets.paymentToken) + && Objects.equals(this.paywithgoogleToken, additionalDataWallets.paywithgoogleToken) + && Objects.equals(this.samsungpayToken, additionalDataWallets.samsungpayToken) + && Objects.equals(this.visacheckoutCallId, additionalDataWallets.visacheckoutCallId); } @Override public int hashCode() { - return Objects.hash(androidpayToken, masterpassTransactionId, paymentToken, paywithgoogleToken, samsungpayToken, visacheckoutCallId); + return Objects.hash( + androidpayToken, + masterpassTransactionId, + paymentToken, + paywithgoogleToken, + samsungpayToken, + visacheckoutCallId); } @Override @@ -280,7 +281,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataWallets {\n"); sb.append(" androidpayToken: ").append(toIndentedString(androidpayToken)).append("\n"); - sb.append(" masterpassTransactionId: ").append(toIndentedString(masterpassTransactionId)).append("\n"); + sb.append(" masterpassTransactionId: ") + .append(toIndentedString(masterpassTransactionId)) + .append("\n"); sb.append(" paymentToken: ").append(toIndentedString(paymentToken)).append("\n"); sb.append(" paywithgoogleToken: ").append(toIndentedString(paywithgoogleToken)).append("\n"); sb.append(" samsungpayToken: ").append(toIndentedString(samsungpayToken)).append("\n"); @@ -290,8 +293,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -300,21 +302,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalDataWallets given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalDataWallets - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataWallets + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalDataWallets */ public static AdditionalDataWallets fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalDataWallets.class); } -/** - * Convert an instance of AdditionalDataWallets to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalDataWallets to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/Address.java b/src/main/java/com/adyen/model/payment/Address.java index 85311fac3..3bbf60562 100644 --- a/src/main/java/com/adyen/model/payment/Address.java +++ b/src/main/java/com/adyen/model/payment/Address.java @@ -2,31 +2,22 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Address - */ +/** Address */ @JsonPropertyOrder({ Address.JSON_PROPERTY_CITY, Address.JSON_PROPERTY_COUNTRY, @@ -35,7 +26,6 @@ Address.JSON_PROPERTY_STATE_OR_PROVINCE, Address.JSON_PROPERTY_STREET }) - public class Address { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -55,8 +45,7 @@ public class Address { public static final String JSON_PROPERTY_STREET = "street"; private String street; - public Address() { - } + public Address() {} /** * The name of the city. Maximum length: 3000 characters. @@ -71,6 +60,7 @@ public Address city(String city) { /** * The name of the city. Maximum length: 3000 characters. + * * @return city The name of the city. Maximum length: 3000 characters. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -91,9 +81,13 @@ public void setCity(String city) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't + * know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If + * you don't know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. * @return the current {@code Address} instance, allowing for method chaining */ public Address country(String country) { @@ -102,8 +96,13 @@ public Address country(String country) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. - * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't + * know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. + * + * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If + * you don't know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,9 +111,13 @@ public String getCountry() { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't + * know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If + * you don't know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,6 +138,7 @@ public Address houseNumberOrName(String houseNumberOrName) { /** * The number or name of the house. Maximum length: 3000 characters. + * * @return houseNumberOrName The number or name of the house. Maximum length: 3000 characters. */ @JsonProperty(JSON_PROPERTY_HOUSE_NUMBER_OR_NAME) @@ -155,9 +159,11 @@ public void setHouseNumberOrName(String houseNumberOrName) { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an + * address in all other countries. * - * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten + * characters for an address in all other countries. * @return the current {@code Address} instance, allowing for method chaining */ public Address postalCode(String postalCode) { @@ -166,8 +172,11 @@ public Address postalCode(String postalCode) { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. - * @return postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an + * address in all other countries. + * + * @return postalCode A maximum of five digits for an address in the US, or a maximum of ten + * characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,9 +185,11 @@ public String getPostalCode() { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an + * address in all other countries. * - * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten + * characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,9 +198,11 @@ public void setPostalCode(String postalCode) { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in + * Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** + * in the US or **ON** in Canada. > Required for the US and Canada. * @return the current {@code Address} instance, allowing for method chaining */ public Address stateOrProvince(String stateOrProvince) { @@ -198,8 +211,11 @@ public Address stateOrProvince(String stateOrProvince) { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. - * @return stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in + * Canada. > Required for the US and Canada. + * + * @return stateOrProvince The two-character ISO 3166-2 state or province code. For example, + * **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,9 +224,11 @@ public String getStateOrProvince() { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in + * Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** + * in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,9 +237,12 @@ public void setStateOrProvince(String stateOrProvince) { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be + * included in this field; it should be separately provided via `houseNumberOrName`. * - * @param street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * @param street The name of the street. Maximum length: 3000 characters. > The house number + * should not be included in this field; it should be separately provided via + * `houseNumberOrName`. * @return the current {@code Address} instance, allowing for method chaining */ public Address street(String street) { @@ -230,8 +251,12 @@ public Address street(String street) { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. - * @return street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be + * included in this field; it should be separately provided via `houseNumberOrName`. + * + * @return street The name of the street. Maximum length: 3000 characters. > The house number + * should not be included in this field; it should be separately provided via + * `houseNumberOrName`. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,9 +265,12 @@ public String getStreet() { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be + * included in this field; it should be separately provided via `houseNumberOrName`. * - * @param street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * @param street The name of the street. Maximum length: 3000 characters. > The house number + * should not be included in this field; it should be separately provided via + * `houseNumberOrName`. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,9 +278,7 @@ public void setStreet(String street) { this.street = street; } - /** - * Return true if this Address object is equal to o. - */ + /** Return true if this Address object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -262,12 +288,12 @@ public boolean equals(Object o) { return false; } Address address = (Address) o; - return Objects.equals(this.city, address.city) && - Objects.equals(this.country, address.country) && - Objects.equals(this.houseNumberOrName, address.houseNumberOrName) && - Objects.equals(this.postalCode, address.postalCode) && - Objects.equals(this.stateOrProvince, address.stateOrProvince) && - Objects.equals(this.street, address.street); + return Objects.equals(this.city, address.city) + && Objects.equals(this.country, address.country) + && Objects.equals(this.houseNumberOrName, address.houseNumberOrName) + && Objects.equals(this.postalCode, address.postalCode) + && Objects.equals(this.stateOrProvince, address.stateOrProvince) + && Objects.equals(this.street, address.street); } @Override @@ -290,8 +316,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -300,7 +325,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Address given an JSON string * * @param jsonString JSON string @@ -310,11 +335,12 @@ private String toIndentedString(Object o) { public static Address fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Address.class); } -/** - * Convert an instance of Address to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Address to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AdjustAuthorisationRequest.java b/src/main/java/com/adyen/model/payment/AdjustAuthorisationRequest.java index b47e720e2..3675c8279 100644 --- a/src/main/java/com/adyen/model/payment/AdjustAuthorisationRequest.java +++ b/src/main/java/com/adyen/model/payment/AdjustAuthorisationRequest.java @@ -2,39 +2,26 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.payment.Amount; -import com.adyen.model.payment.PlatformChargebackLogic; -import com.adyen.model.payment.Split; -import com.adyen.model.payment.ThreeDSecureData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; -import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -/** - * AdjustAuthorisationRequest - */ +/** AdjustAuthorisationRequest */ @JsonPropertyOrder({ AdjustAuthorisationRequest.JSON_PROPERTY_ADDITIONAL_DATA, AdjustAuthorisationRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, @@ -48,7 +35,6 @@ AdjustAuthorisationRequest.JSON_PROPERTY_TENDER_REFERENCE, AdjustAuthorisationRequest.JSON_PROPERTY_UNIQUE_TERMINAL_ID }) - public class AdjustAuthorisationRequest { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -62,7 +48,8 @@ public class AdjustAuthorisationRequest { public static final String JSON_PROPERTY_MPI_DATA = "mpiData"; private ThreeDSecureData mpiData; - public static final String JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE = "originalMerchantReference"; + public static final String JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE = + "originalMerchantReference"; private String originalMerchantReference; public static final String JSON_PROPERTY_ORIGINAL_REFERENCE = "originalReference"; @@ -83,13 +70,16 @@ public class AdjustAuthorisationRequest { public static final String JSON_PROPERTY_UNIQUE_TERMINAL_ID = "uniqueTerminalId"; private String uniqueTerminalId; - public AdjustAuthorisationRequest() { - } + public AdjustAuthorisationRequest() {} /** - * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular modification + * request. The additionalData object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a + * particular modification request. The additionalData object consists of entries, each of + * which includes the key and value. * @return the current {@code AdjustAuthorisationRequest} instance, allowing for method chaining */ public AdjustAuthorisationRequest additionalData(Map additionalData) { @@ -106,8 +96,13 @@ public AdjustAuthorisationRequest putAdditionalDataItem(String key, String addit } /** - * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. - * @return additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular modification + * request. The additionalData object consists of entries, each of which includes the key and + * value. + * + * @return additionalData This field contains additional data, which may be required for a + * particular modification request. The additionalData object consists of entries, each of + * which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,9 +111,13 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular modification + * request. The additionalData object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a + * particular modification request. The additionalData object consists of entries, each of + * which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,6 +138,7 @@ public AdjustAuthorisationRequest merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. + * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -161,7 +161,7 @@ public void setMerchantAccount(String merchantAccount) { /** * modificationAmount * - * @param modificationAmount + * @param modificationAmount * @return the current {@code AdjustAuthorisationRequest} instance, allowing for method chaining */ public AdjustAuthorisationRequest modificationAmount(Amount modificationAmount) { @@ -171,7 +171,8 @@ public AdjustAuthorisationRequest modificationAmount(Amount modificationAmount) /** * Get modificationAmount - * @return modificationAmount + * + * @return modificationAmount */ @JsonProperty(JSON_PROPERTY_MODIFICATION_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,7 +183,7 @@ public Amount getModificationAmount() { /** * modificationAmount * - * @param modificationAmount + * @param modificationAmount */ @JsonProperty(JSON_PROPERTY_MODIFICATION_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,7 +194,7 @@ public void setModificationAmount(Amount modificationAmount) { /** * mpiData * - * @param mpiData + * @param mpiData * @return the current {@code AdjustAuthorisationRequest} instance, allowing for method chaining */ public AdjustAuthorisationRequest mpiData(ThreeDSecureData mpiData) { @@ -203,7 +204,8 @@ public AdjustAuthorisationRequest mpiData(ThreeDSecureData mpiData) { /** * Get mpiData - * @return mpiData + * + * @return mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,7 +216,7 @@ public ThreeDSecureData getMpiData() { /** * mpiData * - * @param mpiData + * @param mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -235,6 +237,7 @@ public AdjustAuthorisationRequest originalMerchantReference(String originalMerch /** * The original merchant reference to cancel. + * * @return originalMerchantReference The original merchant reference to cancel. */ @JsonProperty(JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE) @@ -255,9 +258,11 @@ public void setOriginalMerchantReference(String originalMerchantReference) { } /** - * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * + * authorisation response * authorisation notification * - * @param originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * @param originalReference The original pspReference of the payment to modify. This reference is + * returned in: * authorisation response * authorisation notification * @return the current {@code AdjustAuthorisationRequest} instance, allowing for method chaining */ public AdjustAuthorisationRequest originalReference(String originalReference) { @@ -266,8 +271,11 @@ public AdjustAuthorisationRequest originalReference(String originalReference) { } /** - * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification - * @return originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * + * authorisation response * authorisation notification + * + * @return originalReference The original pspReference of the payment to modify. This reference is + * returned in: * authorisation response * authorisation notification */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -276,9 +284,11 @@ public String getOriginalReference() { } /** - * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * + * authorisation response * authorisation notification * - * @param originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * @param originalReference The original pspReference of the payment to modify. This reference is + * returned in: * authorisation response * authorisation notification */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -289,17 +299,19 @@ public void setOriginalReference(String originalReference) { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic * @return the current {@code AdjustAuthorisationRequest} instance, allowing for method chaining */ - public AdjustAuthorisationRequest platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) { + public AdjustAuthorisationRequest platformChargebackLogic( + PlatformChargebackLogic platformChargebackLogic) { this.platformChargebackLogic = platformChargebackLogic; return this; } /** * Get platformChargebackLogic - * @return platformChargebackLogic + * + * @return platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -310,7 +322,7 @@ public PlatformChargebackLogic getPlatformChargebackLogic() { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -319,9 +331,11 @@ public void setPlatformChargebackLogic(PlatformChargebackLogic platformChargebac } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in + * reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in + * Customer Area and in reports. Maximum length: 80 characters. * @return the current {@code AdjustAuthorisationRequest} instance, allowing for method chaining */ public AdjustAuthorisationRequest reference(String reference) { @@ -330,8 +344,11 @@ public AdjustAuthorisationRequest reference(String reference) { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. - * @return reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in + * reports. Maximum length: 80 characters. + * + * @return reference Your reference for the payment modification. This reference is visible in + * Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -340,9 +357,11 @@ public String getReference() { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in + * reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in + * Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -351,9 +370,13 @@ public void setReference(String reference) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * - * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * @param splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * @return the current {@code AdjustAuthorisationRequest} instance, allowing for method chaining */ public AdjustAuthorisationRequest splits(List splits) { @@ -370,8 +393,13 @@ public AdjustAuthorisationRequest addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). - * @return splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * + * @return splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -380,9 +408,13 @@ public List getSplits() { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * - * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * @param splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -393,7 +425,8 @@ public void setSplits(List splits) { /** * The transaction reference provided by the PED. For point-of-sale integrations only. * - * @param tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. + * @param tenderReference The transaction reference provided by the PED. For point-of-sale + * integrations only. * @return the current {@code AdjustAuthorisationRequest} instance, allowing for method chaining */ public AdjustAuthorisationRequest tenderReference(String tenderReference) { @@ -403,7 +436,9 @@ public AdjustAuthorisationRequest tenderReference(String tenderReference) { /** * The transaction reference provided by the PED. For point-of-sale integrations only. - * @return tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. + * + * @return tenderReference The transaction reference provided by the PED. For point-of-sale + * integrations only. */ @JsonProperty(JSON_PROPERTY_TENDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -414,7 +449,8 @@ public String getTenderReference() { /** * The transaction reference provided by the PED. For point-of-sale integrations only. * - * @param tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. + * @param tenderReference The transaction reference provided by the PED. For point-of-sale + * integrations only. */ @JsonProperty(JSON_PROPERTY_TENDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -423,9 +459,11 @@ public void setTenderReference(String tenderReference) { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale + * integrations only. * - * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. + * For point-of-sale integrations only. * @return the current {@code AdjustAuthorisationRequest} instance, allowing for method chaining */ public AdjustAuthorisationRequest uniqueTerminalId(String uniqueTerminalId) { @@ -434,8 +472,11 @@ public AdjustAuthorisationRequest uniqueTerminalId(String uniqueTerminalId) { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. - * @return uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale + * integrations only. + * + * @return uniqueTerminalId Unique terminal ID for the PED that originally processed the request. + * For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -444,9 +485,11 @@ public String getUniqueTerminalId() { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale + * integrations only. * - * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. + * For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -454,9 +497,7 @@ public void setUniqueTerminalId(String uniqueTerminalId) { this.uniqueTerminalId = uniqueTerminalId; } - /** - * Return true if this AdjustAuthorisationRequest object is equal to o. - */ + /** Return true if this AdjustAuthorisationRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -466,22 +507,35 @@ public boolean equals(Object o) { return false; } AdjustAuthorisationRequest adjustAuthorisationRequest = (AdjustAuthorisationRequest) o; - return Objects.equals(this.additionalData, adjustAuthorisationRequest.additionalData) && - Objects.equals(this.merchantAccount, adjustAuthorisationRequest.merchantAccount) && - Objects.equals(this.modificationAmount, adjustAuthorisationRequest.modificationAmount) && - Objects.equals(this.mpiData, adjustAuthorisationRequest.mpiData) && - Objects.equals(this.originalMerchantReference, adjustAuthorisationRequest.originalMerchantReference) && - Objects.equals(this.originalReference, adjustAuthorisationRequest.originalReference) && - Objects.equals(this.platformChargebackLogic, adjustAuthorisationRequest.platformChargebackLogic) && - Objects.equals(this.reference, adjustAuthorisationRequest.reference) && - Objects.equals(this.splits, adjustAuthorisationRequest.splits) && - Objects.equals(this.tenderReference, adjustAuthorisationRequest.tenderReference) && - Objects.equals(this.uniqueTerminalId, adjustAuthorisationRequest.uniqueTerminalId); + return Objects.equals(this.additionalData, adjustAuthorisationRequest.additionalData) + && Objects.equals(this.merchantAccount, adjustAuthorisationRequest.merchantAccount) + && Objects.equals(this.modificationAmount, adjustAuthorisationRequest.modificationAmount) + && Objects.equals(this.mpiData, adjustAuthorisationRequest.mpiData) + && Objects.equals( + this.originalMerchantReference, adjustAuthorisationRequest.originalMerchantReference) + && Objects.equals(this.originalReference, adjustAuthorisationRequest.originalReference) + && Objects.equals( + this.platformChargebackLogic, adjustAuthorisationRequest.platformChargebackLogic) + && Objects.equals(this.reference, adjustAuthorisationRequest.reference) + && Objects.equals(this.splits, adjustAuthorisationRequest.splits) + && Objects.equals(this.tenderReference, adjustAuthorisationRequest.tenderReference) + && Objects.equals(this.uniqueTerminalId, adjustAuthorisationRequest.uniqueTerminalId); } @Override public int hashCode() { - return Objects.hash(additionalData, merchantAccount, modificationAmount, mpiData, originalMerchantReference, originalReference, platformChargebackLogic, reference, splits, tenderReference, uniqueTerminalId); + return Objects.hash( + additionalData, + merchantAccount, + modificationAmount, + mpiData, + originalMerchantReference, + originalReference, + platformChargebackLogic, + reference, + splits, + tenderReference, + uniqueTerminalId); } @Override @@ -492,9 +546,13 @@ public String toString() { sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" modificationAmount: ").append(toIndentedString(modificationAmount)).append("\n"); sb.append(" mpiData: ").append(toIndentedString(mpiData)).append("\n"); - sb.append(" originalMerchantReference: ").append(toIndentedString(originalMerchantReference)).append("\n"); + sb.append(" originalMerchantReference: ") + .append(toIndentedString(originalMerchantReference)) + .append("\n"); sb.append(" originalReference: ").append(toIndentedString(originalReference)).append("\n"); - sb.append(" platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n"); + sb.append(" platformChargebackLogic: ") + .append(toIndentedString(platformChargebackLogic)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" tenderReference: ").append(toIndentedString(tenderReference)).append("\n"); @@ -504,8 +562,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -514,21 +571,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdjustAuthorisationRequest given an JSON string * * @param jsonString JSON string * @return An instance of AdjustAuthorisationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to AdjustAuthorisationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdjustAuthorisationRequest */ - public static AdjustAuthorisationRequest fromJson(String jsonString) throws JsonProcessingException { + public static AdjustAuthorisationRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdjustAuthorisationRequest.class); } -/** - * Convert an instance of AdjustAuthorisationRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdjustAuthorisationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/Amount.java b/src/main/java/com/adyen/model/payment/Amount.java index d2efb9298..2c26f1286 100644 --- a/src/main/java/com/adyen/model/payment/Amount.java +++ b/src/main/java/com/adyen/model/payment/Amount.java @@ -2,36 +2,23 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Amount - */ -@JsonPropertyOrder({ - Amount.JSON_PROPERTY_CURRENCY, - Amount.JSON_PROPERTY_VALUE -}) - +/** Amount */ +@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -39,13 +26,14 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() { - } + public Amount() {} /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount currency(String currency) { @@ -54,8 +42,11 @@ public Amount currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +55,11 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,9 +68,11 @@ public void setCurrency(String currency) { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount value(Long value) { @@ -86,8 +81,11 @@ public Amount value(Long value) { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). - * @return value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * + * @return value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +94,11 @@ public Long getValue() { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +106,7 @@ public void setValue(Long value) { this.value = value; } - /** - * Return true if this Amount object is equal to o. - */ + /** Return true if this Amount object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +116,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) && - Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) + && Objects.equals(this.value, amount.value); } @Override @@ -138,8 +136,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +145,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -158,11 +155,12 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } -/** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ApplicationInfo.java b/src/main/java/com/adyen/model/payment/ApplicationInfo.java index 2bf0c79ec..17fa4cd7f 100644 --- a/src/main/java/com/adyen/model/payment/ApplicationInfo.java +++ b/src/main/java/com/adyen/model/payment/ApplicationInfo.java @@ -2,35 +2,22 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.payment.CommonField; -import com.adyen.model.payment.ExternalPlatform; -import com.adyen.model.payment.MerchantDevice; -import com.adyen.model.payment.ShopperInteractionDevice; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ApplicationInfo - */ +/** ApplicationInfo */ @JsonPropertyOrder({ ApplicationInfo.JSON_PROPERTY_ADYEN_LIBRARY, ApplicationInfo.JSON_PROPERTY_ADYEN_PAYMENT_SOURCE, @@ -39,7 +26,6 @@ ApplicationInfo.JSON_PROPERTY_MERCHANT_DEVICE, ApplicationInfo.JSON_PROPERTY_SHOPPER_INTERACTION_DEVICE }) - public class ApplicationInfo { public static final String JSON_PROPERTY_ADYEN_LIBRARY = "adyenLibrary"; private CommonField adyenLibrary; @@ -59,13 +45,12 @@ public class ApplicationInfo { public static final String JSON_PROPERTY_SHOPPER_INTERACTION_DEVICE = "shopperInteractionDevice"; private ShopperInteractionDevice shopperInteractionDevice; - public ApplicationInfo() { - } + public ApplicationInfo() {} /** * adyenLibrary * - * @param adyenLibrary + * @param adyenLibrary * @return the current {@code ApplicationInfo} instance, allowing for method chaining */ public ApplicationInfo adyenLibrary(CommonField adyenLibrary) { @@ -75,7 +60,8 @@ public ApplicationInfo adyenLibrary(CommonField adyenLibrary) { /** * Get adyenLibrary - * @return adyenLibrary + * + * @return adyenLibrary */ @JsonProperty(JSON_PROPERTY_ADYEN_LIBRARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -86,7 +72,7 @@ public CommonField getAdyenLibrary() { /** * adyenLibrary * - * @param adyenLibrary + * @param adyenLibrary */ @JsonProperty(JSON_PROPERTY_ADYEN_LIBRARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,7 +83,7 @@ public void setAdyenLibrary(CommonField adyenLibrary) { /** * adyenPaymentSource * - * @param adyenPaymentSource + * @param adyenPaymentSource * @return the current {@code ApplicationInfo} instance, allowing for method chaining */ public ApplicationInfo adyenPaymentSource(CommonField adyenPaymentSource) { @@ -107,7 +93,8 @@ public ApplicationInfo adyenPaymentSource(CommonField adyenPaymentSource) { /** * Get adyenPaymentSource - * @return adyenPaymentSource + * + * @return adyenPaymentSource */ @JsonProperty(JSON_PROPERTY_ADYEN_PAYMENT_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,7 +105,7 @@ public CommonField getAdyenPaymentSource() { /** * adyenPaymentSource * - * @param adyenPaymentSource + * @param adyenPaymentSource */ @JsonProperty(JSON_PROPERTY_ADYEN_PAYMENT_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,7 +116,7 @@ public void setAdyenPaymentSource(CommonField adyenPaymentSource) { /** * externalPlatform * - * @param externalPlatform + * @param externalPlatform * @return the current {@code ApplicationInfo} instance, allowing for method chaining */ public ApplicationInfo externalPlatform(ExternalPlatform externalPlatform) { @@ -139,7 +126,8 @@ public ApplicationInfo externalPlatform(ExternalPlatform externalPlatform) { /** * Get externalPlatform - * @return externalPlatform + * + * @return externalPlatform */ @JsonProperty(JSON_PROPERTY_EXTERNAL_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,7 +138,7 @@ public ExternalPlatform getExternalPlatform() { /** * externalPlatform * - * @param externalPlatform + * @param externalPlatform */ @JsonProperty(JSON_PROPERTY_EXTERNAL_PLATFORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,7 +149,7 @@ public void setExternalPlatform(ExternalPlatform externalPlatform) { /** * merchantApplication * - * @param merchantApplication + * @param merchantApplication * @return the current {@code ApplicationInfo} instance, allowing for method chaining */ public ApplicationInfo merchantApplication(CommonField merchantApplication) { @@ -171,7 +159,8 @@ public ApplicationInfo merchantApplication(CommonField merchantApplication) { /** * Get merchantApplication - * @return merchantApplication + * + * @return merchantApplication */ @JsonProperty(JSON_PROPERTY_MERCHANT_APPLICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,7 +171,7 @@ public CommonField getMerchantApplication() { /** * merchantApplication * - * @param merchantApplication + * @param merchantApplication */ @JsonProperty(JSON_PROPERTY_MERCHANT_APPLICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,7 +182,7 @@ public void setMerchantApplication(CommonField merchantApplication) { /** * merchantDevice * - * @param merchantDevice + * @param merchantDevice * @return the current {@code ApplicationInfo} instance, allowing for method chaining */ public ApplicationInfo merchantDevice(MerchantDevice merchantDevice) { @@ -203,7 +192,8 @@ public ApplicationInfo merchantDevice(MerchantDevice merchantDevice) { /** * Get merchantDevice - * @return merchantDevice + * + * @return merchantDevice */ @JsonProperty(JSON_PROPERTY_MERCHANT_DEVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,7 +204,7 @@ public MerchantDevice getMerchantDevice() { /** * merchantDevice * - * @param merchantDevice + * @param merchantDevice */ @JsonProperty(JSON_PROPERTY_MERCHANT_DEVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -225,17 +215,19 @@ public void setMerchantDevice(MerchantDevice merchantDevice) { /** * shopperInteractionDevice * - * @param shopperInteractionDevice + * @param shopperInteractionDevice * @return the current {@code ApplicationInfo} instance, allowing for method chaining */ - public ApplicationInfo shopperInteractionDevice(ShopperInteractionDevice shopperInteractionDevice) { + public ApplicationInfo shopperInteractionDevice( + ShopperInteractionDevice shopperInteractionDevice) { this.shopperInteractionDevice = shopperInteractionDevice; return this; } /** * Get shopperInteractionDevice - * @return shopperInteractionDevice + * + * @return shopperInteractionDevice */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION_DEVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -246,7 +238,7 @@ public ShopperInteractionDevice getShopperInteractionDevice() { /** * shopperInteractionDevice * - * @param shopperInteractionDevice + * @param shopperInteractionDevice */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION_DEVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -254,9 +246,7 @@ public void setShopperInteractionDevice(ShopperInteractionDevice shopperInteract this.shopperInteractionDevice = shopperInteractionDevice; } - /** - * Return true if this ApplicationInfo object is equal to o. - */ + /** Return true if this ApplicationInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -266,17 +256,23 @@ public boolean equals(Object o) { return false; } ApplicationInfo applicationInfo = (ApplicationInfo) o; - return Objects.equals(this.adyenLibrary, applicationInfo.adyenLibrary) && - Objects.equals(this.adyenPaymentSource, applicationInfo.adyenPaymentSource) && - Objects.equals(this.externalPlatform, applicationInfo.externalPlatform) && - Objects.equals(this.merchantApplication, applicationInfo.merchantApplication) && - Objects.equals(this.merchantDevice, applicationInfo.merchantDevice) && - Objects.equals(this.shopperInteractionDevice, applicationInfo.shopperInteractionDevice); + return Objects.equals(this.adyenLibrary, applicationInfo.adyenLibrary) + && Objects.equals(this.adyenPaymentSource, applicationInfo.adyenPaymentSource) + && Objects.equals(this.externalPlatform, applicationInfo.externalPlatform) + && Objects.equals(this.merchantApplication, applicationInfo.merchantApplication) + && Objects.equals(this.merchantDevice, applicationInfo.merchantDevice) + && Objects.equals(this.shopperInteractionDevice, applicationInfo.shopperInteractionDevice); } @Override public int hashCode() { - return Objects.hash(adyenLibrary, adyenPaymentSource, externalPlatform, merchantApplication, merchantDevice, shopperInteractionDevice); + return Objects.hash( + adyenLibrary, + adyenPaymentSource, + externalPlatform, + merchantApplication, + merchantDevice, + shopperInteractionDevice); } @Override @@ -286,16 +282,19 @@ public String toString() { sb.append(" adyenLibrary: ").append(toIndentedString(adyenLibrary)).append("\n"); sb.append(" adyenPaymentSource: ").append(toIndentedString(adyenPaymentSource)).append("\n"); sb.append(" externalPlatform: ").append(toIndentedString(externalPlatform)).append("\n"); - sb.append(" merchantApplication: ").append(toIndentedString(merchantApplication)).append("\n"); + sb.append(" merchantApplication: ") + .append(toIndentedString(merchantApplication)) + .append("\n"); sb.append(" merchantDevice: ").append(toIndentedString(merchantDevice)).append("\n"); - sb.append(" shopperInteractionDevice: ").append(toIndentedString(shopperInteractionDevice)).append("\n"); + sb.append(" shopperInteractionDevice: ") + .append(toIndentedString(shopperInteractionDevice)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -304,7 +303,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ApplicationInfo given an JSON string * * @param jsonString JSON string @@ -314,11 +313,12 @@ private String toIndentedString(Object o) { public static ApplicationInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ApplicationInfo.class); } -/** - * Convert an instance of ApplicationInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ApplicationInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AuthenticationResultRequest.java b/src/main/java/com/adyen/model/payment/AuthenticationResultRequest.java index 4dbc63c20..75c8d5179 100644 --- a/src/main/java/com/adyen/model/payment/AuthenticationResultRequest.java +++ b/src/main/java/com/adyen/model/payment/AuthenticationResultRequest.java @@ -2,36 +2,26 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AuthenticationResultRequest - */ +/** AuthenticationResultRequest */ @JsonPropertyOrder({ AuthenticationResultRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, AuthenticationResultRequest.JSON_PROPERTY_PSP_REFERENCE }) - public class AuthenticationResultRequest { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; @@ -39,13 +29,13 @@ public class AuthenticationResultRequest { public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference"; private String pspReference; - public AuthenticationResultRequest() { - } + public AuthenticationResultRequest() {} /** * The merchant account identifier, with which the authentication was processed. * - * @param merchantAccount The merchant account identifier, with which the authentication was processed. + * @param merchantAccount The merchant account identifier, with which the authentication was + * processed. * @return the current {@code AuthenticationResultRequest} instance, allowing for method chaining */ public AuthenticationResultRequest merchantAccount(String merchantAccount) { @@ -55,7 +45,9 @@ public AuthenticationResultRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which the authentication was processed. - * @return merchantAccount The merchant account identifier, with which the authentication was processed. + * + * @return merchantAccount The merchant account identifier, with which the authentication was + * processed. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -66,7 +58,8 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which the authentication was processed. * - * @param merchantAccount The merchant account identifier, with which the authentication was processed. + * @param merchantAccount The merchant account identifier, with which the authentication was + * processed. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,6 +80,7 @@ public AuthenticationResultRequest pspReference(String pspReference) { /** * The pspReference identifier for the transaction. + * * @return pspReference The pspReference identifier for the transaction. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -106,9 +100,7 @@ public void setPspReference(String pspReference) { this.pspReference = pspReference; } - /** - * Return true if this AuthenticationResultRequest object is equal to o. - */ + /** Return true if this AuthenticationResultRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +110,8 @@ public boolean equals(Object o) { return false; } AuthenticationResultRequest authenticationResultRequest = (AuthenticationResultRequest) o; - return Objects.equals(this.merchantAccount, authenticationResultRequest.merchantAccount) && - Objects.equals(this.pspReference, authenticationResultRequest.pspReference); + return Objects.equals(this.merchantAccount, authenticationResultRequest.merchantAccount) + && Objects.equals(this.pspReference, authenticationResultRequest.pspReference); } @Override @@ -138,8 +130,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +139,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AuthenticationResultRequest given an JSON string * * @param jsonString JSON string * @return An instance of AuthenticationResultRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to AuthenticationResultRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AuthenticationResultRequest */ - public static AuthenticationResultRequest fromJson(String jsonString) throws JsonProcessingException { + public static AuthenticationResultRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AuthenticationResultRequest.class); } -/** - * Convert an instance of AuthenticationResultRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AuthenticationResultRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/AuthenticationResultResponse.java b/src/main/java/com/adyen/model/payment/AuthenticationResultResponse.java index 444afc0eb..485e49190 100644 --- a/src/main/java/com/adyen/model/payment/AuthenticationResultResponse.java +++ b/src/main/java/com/adyen/model/payment/AuthenticationResultResponse.java @@ -2,38 +2,26 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.payment.ThreeDS1Result; -import com.adyen.model.payment.ThreeDS2Result; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AuthenticationResultResponse - */ +/** AuthenticationResultResponse */ @JsonPropertyOrder({ AuthenticationResultResponse.JSON_PROPERTY_THREE_D_S1_RESULT, AuthenticationResultResponse.JSON_PROPERTY_THREE_D_S2_RESULT }) - public class AuthenticationResultResponse { public static final String JSON_PROPERTY_THREE_D_S1_RESULT = "threeDS1Result"; private ThreeDS1Result threeDS1Result; @@ -41,13 +29,12 @@ public class AuthenticationResultResponse { public static final String JSON_PROPERTY_THREE_D_S2_RESULT = "threeDS2Result"; private ThreeDS2Result threeDS2Result; - public AuthenticationResultResponse() { - } + public AuthenticationResultResponse() {} /** * threeDS1Result * - * @param threeDS1Result + * @param threeDS1Result * @return the current {@code AuthenticationResultResponse} instance, allowing for method chaining */ public AuthenticationResultResponse threeDS1Result(ThreeDS1Result threeDS1Result) { @@ -57,7 +44,8 @@ public AuthenticationResultResponse threeDS1Result(ThreeDS1Result threeDS1Result /** * Get threeDS1Result - * @return threeDS1Result + * + * @return threeDS1Result */ @JsonProperty(JSON_PROPERTY_THREE_D_S1_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,7 +56,7 @@ public ThreeDS1Result getThreeDS1Result() { /** * threeDS1Result * - * @param threeDS1Result + * @param threeDS1Result */ @JsonProperty(JSON_PROPERTY_THREE_D_S1_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,7 +67,7 @@ public void setThreeDS1Result(ThreeDS1Result threeDS1Result) { /** * threeDS2Result * - * @param threeDS2Result + * @param threeDS2Result * @return the current {@code AuthenticationResultResponse} instance, allowing for method chaining */ public AuthenticationResultResponse threeDS2Result(ThreeDS2Result threeDS2Result) { @@ -89,7 +77,8 @@ public AuthenticationResultResponse threeDS2Result(ThreeDS2Result threeDS2Result /** * Get threeDS2Result - * @return threeDS2Result + * + * @return threeDS2Result */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,7 +89,7 @@ public ThreeDS2Result getThreeDS2Result() { /** * threeDS2Result * - * @param threeDS2Result + * @param threeDS2Result */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,9 +97,7 @@ public void setThreeDS2Result(ThreeDS2Result threeDS2Result) { this.threeDS2Result = threeDS2Result; } - /** - * Return true if this AuthenticationResultResponse object is equal to o. - */ + /** Return true if this AuthenticationResultResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -120,8 +107,8 @@ public boolean equals(Object o) { return false; } AuthenticationResultResponse authenticationResultResponse = (AuthenticationResultResponse) o; - return Objects.equals(this.threeDS1Result, authenticationResultResponse.threeDS1Result) && - Objects.equals(this.threeDS2Result, authenticationResultResponse.threeDS2Result); + return Objects.equals(this.threeDS1Result, authenticationResultResponse.threeDS1Result) + && Objects.equals(this.threeDS2Result, authenticationResultResponse.threeDS2Result); } @Override @@ -140,8 +127,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -150,21 +136,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AuthenticationResultResponse given an JSON string * * @param jsonString JSON string * @return An instance of AuthenticationResultResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to AuthenticationResultResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AuthenticationResultResponse */ - public static AuthenticationResultResponse fromJson(String jsonString) throws JsonProcessingException { + public static AuthenticationResultResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AuthenticationResultResponse.class); } -/** - * Convert an instance of AuthenticationResultResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AuthenticationResultResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/BankAccount.java b/src/main/java/com/adyen/model/payment/BankAccount.java index c8452af96..eec81c39a 100644 --- a/src/main/java/com/adyen/model/payment/BankAccount.java +++ b/src/main/java/com/adyen/model/payment/BankAccount.java @@ -2,31 +2,22 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * BankAccount - */ +/** BankAccount */ @JsonPropertyOrder({ BankAccount.JSON_PROPERTY_BANK_ACCOUNT_NUMBER, BankAccount.JSON_PROPERTY_BANK_CITY, @@ -38,7 +29,6 @@ BankAccount.JSON_PROPERTY_OWNER_NAME, BankAccount.JSON_PROPERTY_TAX_ID }) - public class BankAccount { public static final String JSON_PROPERTY_BANK_ACCOUNT_NUMBER = "bankAccountNumber"; private String bankAccountNumber; @@ -67,8 +57,7 @@ public class BankAccount { public static final String JSON_PROPERTY_TAX_ID = "taxId"; private String taxId; - public BankAccount() { - } + public BankAccount() {} /** * The bank account number (without separators). @@ -83,6 +72,7 @@ public BankAccount bankAccountNumber(String bankAccountNumber) { /** * The bank account number (without separators). + * * @return bankAccountNumber The bank account number (without separators). */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_NUMBER) @@ -115,6 +105,7 @@ public BankAccount bankCity(String bankCity) { /** * The bank city. + * * @return bankCity The bank city. */ @JsonProperty(JSON_PROPERTY_BANK_CITY) @@ -137,7 +128,8 @@ public void setBankCity(String bankCity) { /** * The location id of the bank. The field value is `nil` in most cases. * - * @param bankLocationId The location id of the bank. The field value is `nil` in most cases. + * @param bankLocationId The location id of the bank. The field value is `nil` in most + * cases. * @return the current {@code BankAccount} instance, allowing for method chaining */ public BankAccount bankLocationId(String bankLocationId) { @@ -147,7 +139,9 @@ public BankAccount bankLocationId(String bankLocationId) { /** * The location id of the bank. The field value is `nil` in most cases. - * @return bankLocationId The location id of the bank. The field value is `nil` in most cases. + * + * @return bankLocationId The location id of the bank. The field value is `nil` in most + * cases. */ @JsonProperty(JSON_PROPERTY_BANK_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,7 +152,8 @@ public String getBankLocationId() { /** * The location id of the bank. The field value is `nil` in most cases. * - * @param bankLocationId The location id of the bank. The field value is `nil` in most cases. + * @param bankLocationId The location id of the bank. The field value is `nil` in most + * cases. */ @JsonProperty(JSON_PROPERTY_BANK_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,6 +174,7 @@ public BankAccount bankName(String bankName) { /** * The name of the bank. + * * @return bankName The name of the bank. */ @JsonProperty(JSON_PROPERTY_BANK_NAME) @@ -199,9 +195,11 @@ public void setBankName(String bankName) { } /** - * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. + * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT + * address assigned to a bank. The field value is `nil` in most cases. * - * @param bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. + * @param bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the + * SWIFT address assigned to a bank. The field value is `nil` in most cases. * @return the current {@code BankAccount} instance, allowing for method chaining */ public BankAccount bic(String bic) { @@ -210,8 +208,11 @@ public BankAccount bic(String bic) { } /** - * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. - * @return bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. + * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT + * address assigned to a bank. The field value is `nil` in most cases. + * + * @return bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the + * SWIFT address assigned to a bank. The field value is `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_BIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -220,9 +221,11 @@ public String getBic() { } /** - * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. + * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT + * address assigned to a bank. The field value is `nil` in most cases. * - * @param bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. + * @param bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the + * SWIFT address assigned to a bank. The field value is `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_BIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -231,9 +234,11 @@ public void setBic(String bic) { } /** - * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). + * Country code where the bank is located. A valid value is an ISO two-character country code + * (e.g. 'NL'). * - * @param countryCode Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). + * @param countryCode Country code where the bank is located. A valid value is an ISO + * two-character country code (e.g. 'NL'). * @return the current {@code BankAccount} instance, allowing for method chaining */ public BankAccount countryCode(String countryCode) { @@ -242,8 +247,11 @@ public BankAccount countryCode(String countryCode) { } /** - * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). - * @return countryCode Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). + * Country code where the bank is located. A valid value is an ISO two-character country code + * (e.g. 'NL'). + * + * @return countryCode Country code where the bank is located. A valid value is an ISO + * two-character country code (e.g. 'NL'). */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,9 +260,11 @@ public String getCountryCode() { } /** - * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). + * Country code where the bank is located. A valid value is an ISO two-character country code + * (e.g. 'NL'). * - * @param countryCode Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). + * @param countryCode Country code where the bank is located. A valid value is an ISO + * two-character country code (e.g. 'NL'). */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -263,9 +273,11 @@ public void setCountryCode(String countryCode) { } /** - * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * The [International Bank Account + * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). * - * @param iban The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * @param iban The [International Bank Account + * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). * @return the current {@code BankAccount} instance, allowing for method chaining */ public BankAccount iban(String iban) { @@ -274,8 +286,11 @@ public BankAccount iban(String iban) { } /** - * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). - * @return iban The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * The [International Bank Account + * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * + * @return iban The [International Bank Account + * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,9 +299,11 @@ public String getIban() { } /** - * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * The [International Bank Account + * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). * - * @param iban The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * @param iban The [International Bank Account + * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -295,9 +312,25 @@ public void setIban(String iban) { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we + * automatically replace some of them with corresponding Latin characters to meet the FATF + * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter + * Møller is converted to Peter Mller, because banks don't accept 'ø'. After + * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), + * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - + * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details + * don't match the required format, the response returns the error message: 203 'Invalid + * bank account holder name'. * - * @param ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * @param ownerName The name of the bank account holder. If you submit a name with non-Latin + * characters, we automatically replace some of them with corresponding Latin characters to + * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted + * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept + * 'ø'. After replacement, the ownerName must have at least three alphanumeric + * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, + * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - + * allowed. > If provided details don't match the required format, the response returns + * the error message: 203 'Invalid bank account holder name'. * @return the current {@code BankAccount} instance, allowing for method chaining */ public BankAccount ownerName(String ownerName) { @@ -306,8 +339,25 @@ public BankAccount ownerName(String ownerName) { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. - * @return ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we + * automatically replace some of them with corresponding Latin characters to meet the FATF + * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter + * Møller is converted to Peter Mller, because banks don't accept 'ø'. After + * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), + * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - + * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details + * don't match the required format, the response returns the error message: 203 'Invalid + * bank account holder name'. + * + * @return ownerName The name of the bank account holder. If you submit a name with non-Latin + * characters, we automatically replace some of them with corresponding Latin characters to + * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted + * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept + * 'ø'. After replacement, the ownerName must have at least three alphanumeric + * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, + * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - + * allowed. > If provided details don't match the required format, the response returns + * the error message: 203 'Invalid bank account holder name'. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -316,9 +366,25 @@ public String getOwnerName() { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we + * automatically replace some of them with corresponding Latin characters to meet the FATF + * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter + * Møller is converted to Peter Mller, because banks don't accept 'ø'. After + * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), + * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - + * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details + * don't match the required format, the response returns the error message: 203 'Invalid + * bank account holder name'. * - * @param ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * @param ownerName The name of the bank account holder. If you submit a name with non-Latin + * characters, we automatically replace some of them with corresponding Latin characters to + * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted + * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept + * 'ø'. After replacement, the ownerName must have at least three alphanumeric + * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, + * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - + * allowed. > If provided details don't match the required format, the response returns + * the error message: 203 'Invalid bank account holder name'. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -339,6 +405,7 @@ public BankAccount taxId(String taxId) { /** * The bank account holder's tax ID. + * * @return taxId The bank account holder's tax ID. */ @JsonProperty(JSON_PROPERTY_TAX_ID) @@ -358,9 +425,7 @@ public void setTaxId(String taxId) { this.taxId = taxId; } - /** - * Return true if this BankAccount object is equal to o. - */ + /** Return true if this BankAccount object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -370,20 +435,29 @@ public boolean equals(Object o) { return false; } BankAccount bankAccount = (BankAccount) o; - return Objects.equals(this.bankAccountNumber, bankAccount.bankAccountNumber) && - Objects.equals(this.bankCity, bankAccount.bankCity) && - Objects.equals(this.bankLocationId, bankAccount.bankLocationId) && - Objects.equals(this.bankName, bankAccount.bankName) && - Objects.equals(this.bic, bankAccount.bic) && - Objects.equals(this.countryCode, bankAccount.countryCode) && - Objects.equals(this.iban, bankAccount.iban) && - Objects.equals(this.ownerName, bankAccount.ownerName) && - Objects.equals(this.taxId, bankAccount.taxId); + return Objects.equals(this.bankAccountNumber, bankAccount.bankAccountNumber) + && Objects.equals(this.bankCity, bankAccount.bankCity) + && Objects.equals(this.bankLocationId, bankAccount.bankLocationId) + && Objects.equals(this.bankName, bankAccount.bankName) + && Objects.equals(this.bic, bankAccount.bic) + && Objects.equals(this.countryCode, bankAccount.countryCode) + && Objects.equals(this.iban, bankAccount.iban) + && Objects.equals(this.ownerName, bankAccount.ownerName) + && Objects.equals(this.taxId, bankAccount.taxId); } @Override public int hashCode() { - return Objects.hash(bankAccountNumber, bankCity, bankLocationId, bankName, bic, countryCode, iban, ownerName, taxId); + return Objects.hash( + bankAccountNumber, + bankCity, + bankLocationId, + bankName, + bic, + countryCode, + iban, + ownerName, + taxId); } @Override @@ -404,8 +478,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -414,7 +487,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BankAccount given an JSON string * * @param jsonString JSON string @@ -424,11 +497,12 @@ private String toIndentedString(Object o) { public static BankAccount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankAccount.class); } -/** - * Convert an instance of BankAccount to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BankAccount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/BrowserInfo.java b/src/main/java/com/adyen/model/payment/BrowserInfo.java index bc28ec6c3..dc1912f00 100644 --- a/src/main/java/com/adyen/model/payment/BrowserInfo.java +++ b/src/main/java/com/adyen/model/payment/BrowserInfo.java @@ -2,31 +2,22 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * BrowserInfo - */ +/** BrowserInfo */ @JsonPropertyOrder({ BrowserInfo.JSON_PROPERTY_ACCEPT_HEADER, BrowserInfo.JSON_PROPERTY_COLOR_DEPTH, @@ -38,7 +29,6 @@ BrowserInfo.JSON_PROPERTY_TIME_ZONE_OFFSET, BrowserInfo.JSON_PROPERTY_USER_AGENT }) - public class BrowserInfo { public static final String JSON_PROPERTY_ACCEPT_HEADER = "acceptHeader"; private String acceptHeader; @@ -67,8 +57,7 @@ public class BrowserInfo { public static final String JSON_PROPERTY_USER_AGENT = "userAgent"; private String userAgent; - public BrowserInfo() { - } + public BrowserInfo() {} /** * The accept header value of the shopper's browser. @@ -83,6 +72,7 @@ public BrowserInfo acceptHeader(String acceptHeader) { /** * The accept header value of the shopper's browser. + * * @return acceptHeader The accept header value of the shopper's browser. */ @JsonProperty(JSON_PROPERTY_ACCEPT_HEADER) @@ -103,9 +93,13 @@ public void setAcceptHeader(String acceptHeader) { } /** - * The color depth of the shopper's browser in bits per pixel. This should be obtained by using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. + * The color depth of the shopper's browser in bits per pixel. This should be obtained by + * using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, + * 16, 24, 30, 32 or 48 bit color depth. * - * @param colorDepth The color depth of the shopper's browser in bits per pixel. This should be obtained by using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. + * @param colorDepth The color depth of the shopper's browser in bits per pixel. This should + * be obtained by using the browser's `screen.colorDepth` property. Accepted + * values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. * @return the current {@code BrowserInfo} instance, allowing for method chaining */ public BrowserInfo colorDepth(Integer colorDepth) { @@ -114,8 +108,13 @@ public BrowserInfo colorDepth(Integer colorDepth) { } /** - * The color depth of the shopper's browser in bits per pixel. This should be obtained by using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. - * @return colorDepth The color depth of the shopper's browser in bits per pixel. This should be obtained by using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. + * The color depth of the shopper's browser in bits per pixel. This should be obtained by + * using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, + * 16, 24, 30, 32 or 48 bit color depth. + * + * @return colorDepth The color depth of the shopper's browser in bits per pixel. This should + * be obtained by using the browser's `screen.colorDepth` property. Accepted + * values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. */ @JsonProperty(JSON_PROPERTY_COLOR_DEPTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,9 +123,13 @@ public Integer getColorDepth() { } /** - * The color depth of the shopper's browser in bits per pixel. This should be obtained by using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. + * The color depth of the shopper's browser in bits per pixel. This should be obtained by + * using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, + * 16, 24, 30, 32 or 48 bit color depth. * - * @param colorDepth The color depth of the shopper's browser in bits per pixel. This should be obtained by using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. + * @param colorDepth The color depth of the shopper's browser in bits per pixel. This should + * be obtained by using the browser's `screen.colorDepth` property. Accepted + * values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. */ @JsonProperty(JSON_PROPERTY_COLOR_DEPTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,7 +140,8 @@ public void setColorDepth(Integer colorDepth) { /** * Boolean value indicating if the shopper's browser is able to execute Java. * - * @param javaEnabled Boolean value indicating if the shopper's browser is able to execute Java. + * @param javaEnabled Boolean value indicating if the shopper's browser is able to execute + * Java. * @return the current {@code BrowserInfo} instance, allowing for method chaining */ public BrowserInfo javaEnabled(Boolean javaEnabled) { @@ -147,7 +151,9 @@ public BrowserInfo javaEnabled(Boolean javaEnabled) { /** * Boolean value indicating if the shopper's browser is able to execute Java. - * @return javaEnabled Boolean value indicating if the shopper's browser is able to execute Java. + * + * @return javaEnabled Boolean value indicating if the shopper's browser is able to execute + * Java. */ @JsonProperty(JSON_PROPERTY_JAVA_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,7 +164,8 @@ public Boolean getJavaEnabled() { /** * Boolean value indicating if the shopper's browser is able to execute Java. * - * @param javaEnabled Boolean value indicating if the shopper's browser is able to execute Java. + * @param javaEnabled Boolean value indicating if the shopper's browser is able to execute + * Java. */ @JsonProperty(JSON_PROPERTY_JAVA_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,9 +174,11 @@ public void setJavaEnabled(Boolean javaEnabled) { } /** - * Boolean value indicating if the shopper's browser is able to execute JavaScript. A default 'true' value is assumed if the field is not present. + * Boolean value indicating if the shopper's browser is able to execute JavaScript. A default + * 'true' value is assumed if the field is not present. * - * @param javaScriptEnabled Boolean value indicating if the shopper's browser is able to execute JavaScript. A default 'true' value is assumed if the field is not present. + * @param javaScriptEnabled Boolean value indicating if the shopper's browser is able to + * execute JavaScript. A default 'true' value is assumed if the field is not present. * @return the current {@code BrowserInfo} instance, allowing for method chaining */ public BrowserInfo javaScriptEnabled(Boolean javaScriptEnabled) { @@ -178,8 +187,11 @@ public BrowserInfo javaScriptEnabled(Boolean javaScriptEnabled) { } /** - * Boolean value indicating if the shopper's browser is able to execute JavaScript. A default 'true' value is assumed if the field is not present. - * @return javaScriptEnabled Boolean value indicating if the shopper's browser is able to execute JavaScript. A default 'true' value is assumed if the field is not present. + * Boolean value indicating if the shopper's browser is able to execute JavaScript. A default + * 'true' value is assumed if the field is not present. + * + * @return javaScriptEnabled Boolean value indicating if the shopper's browser is able to + * execute JavaScript. A default 'true' value is assumed if the field is not present. */ @JsonProperty(JSON_PROPERTY_JAVA_SCRIPT_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,9 +200,11 @@ public Boolean getJavaScriptEnabled() { } /** - * Boolean value indicating if the shopper's browser is able to execute JavaScript. A default 'true' value is assumed if the field is not present. + * Boolean value indicating if the shopper's browser is able to execute JavaScript. A default + * 'true' value is assumed if the field is not present. * - * @param javaScriptEnabled Boolean value indicating if the shopper's browser is able to execute JavaScript. A default 'true' value is assumed if the field is not present. + * @param javaScriptEnabled Boolean value indicating if the shopper's browser is able to + * execute JavaScript. A default 'true' value is assumed if the field is not present. */ @JsonProperty(JSON_PROPERTY_JAVA_SCRIPT_ENABLED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -199,9 +213,11 @@ public void setJavaScriptEnabled(Boolean javaScriptEnabled) { } /** - * The `navigator.language` value of the shopper's browser (as defined in IETF BCP 47). + * The `navigator.language` value of the shopper's browser (as defined in IETF BCP + * 47). * - * @param language The `navigator.language` value of the shopper's browser (as defined in IETF BCP 47). + * @param language The `navigator.language` value of the shopper's browser (as + * defined in IETF BCP 47). * @return the current {@code BrowserInfo} instance, allowing for method chaining */ public BrowserInfo language(String language) { @@ -210,8 +226,11 @@ public BrowserInfo language(String language) { } /** - * The `navigator.language` value of the shopper's browser (as defined in IETF BCP 47). - * @return language The `navigator.language` value of the shopper's browser (as defined in IETF BCP 47). + * The `navigator.language` value of the shopper's browser (as defined in IETF BCP + * 47). + * + * @return language The `navigator.language` value of the shopper's browser (as + * defined in IETF BCP 47). */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -220,9 +239,11 @@ public String getLanguage() { } /** - * The `navigator.language` value of the shopper's browser (as defined in IETF BCP 47). + * The `navigator.language` value of the shopper's browser (as defined in IETF BCP + * 47). * - * @param language The `navigator.language` value of the shopper's browser (as defined in IETF BCP 47). + * @param language The `navigator.language` value of the shopper's browser (as + * defined in IETF BCP 47). */ @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -243,6 +264,7 @@ public BrowserInfo screenHeight(Integer screenHeight) { /** * The total height of the shopper's device screen in pixels. + * * @return screenHeight The total height of the shopper's device screen in pixels. */ @JsonProperty(JSON_PROPERTY_SCREEN_HEIGHT) @@ -275,6 +297,7 @@ public BrowserInfo screenWidth(Integer screenWidth) { /** * The total width of the shopper's device screen in pixels. + * * @return screenWidth The total width of the shopper's device screen in pixels. */ @JsonProperty(JSON_PROPERTY_SCREEN_WIDTH) @@ -297,7 +320,8 @@ public void setScreenWidth(Integer screenWidth) { /** * Time difference between UTC time and the shopper's browser local time, in minutes. * - * @param timeZoneOffset Time difference between UTC time and the shopper's browser local time, in minutes. + * @param timeZoneOffset Time difference between UTC time and the shopper's browser local + * time, in minutes. * @return the current {@code BrowserInfo} instance, allowing for method chaining */ public BrowserInfo timeZoneOffset(Integer timeZoneOffset) { @@ -307,7 +331,9 @@ public BrowserInfo timeZoneOffset(Integer timeZoneOffset) { /** * Time difference between UTC time and the shopper's browser local time, in minutes. - * @return timeZoneOffset Time difference between UTC time and the shopper's browser local time, in minutes. + * + * @return timeZoneOffset Time difference between UTC time and the shopper's browser local + * time, in minutes. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -318,7 +344,8 @@ public Integer getTimeZoneOffset() { /** * Time difference between UTC time and the shopper's browser local time, in minutes. * - * @param timeZoneOffset Time difference between UTC time and the shopper's browser local time, in minutes. + * @param timeZoneOffset Time difference between UTC time and the shopper's browser local + * time, in minutes. */ @JsonProperty(JSON_PROPERTY_TIME_ZONE_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -339,6 +366,7 @@ public BrowserInfo userAgent(String userAgent) { /** * The user agent value of the shopper's browser. + * * @return userAgent The user agent value of the shopper's browser. */ @JsonProperty(JSON_PROPERTY_USER_AGENT) @@ -358,9 +386,7 @@ public void setUserAgent(String userAgent) { this.userAgent = userAgent; } - /** - * Return true if this BrowserInfo object is equal to o. - */ + /** Return true if this BrowserInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -370,20 +396,29 @@ public boolean equals(Object o) { return false; } BrowserInfo browserInfo = (BrowserInfo) o; - return Objects.equals(this.acceptHeader, browserInfo.acceptHeader) && - Objects.equals(this.colorDepth, browserInfo.colorDepth) && - Objects.equals(this.javaEnabled, browserInfo.javaEnabled) && - Objects.equals(this.javaScriptEnabled, browserInfo.javaScriptEnabled) && - Objects.equals(this.language, browserInfo.language) && - Objects.equals(this.screenHeight, browserInfo.screenHeight) && - Objects.equals(this.screenWidth, browserInfo.screenWidth) && - Objects.equals(this.timeZoneOffset, browserInfo.timeZoneOffset) && - Objects.equals(this.userAgent, browserInfo.userAgent); + return Objects.equals(this.acceptHeader, browserInfo.acceptHeader) + && Objects.equals(this.colorDepth, browserInfo.colorDepth) + && Objects.equals(this.javaEnabled, browserInfo.javaEnabled) + && Objects.equals(this.javaScriptEnabled, browserInfo.javaScriptEnabled) + && Objects.equals(this.language, browserInfo.language) + && Objects.equals(this.screenHeight, browserInfo.screenHeight) + && Objects.equals(this.screenWidth, browserInfo.screenWidth) + && Objects.equals(this.timeZoneOffset, browserInfo.timeZoneOffset) + && Objects.equals(this.userAgent, browserInfo.userAgent); } @Override public int hashCode() { - return Objects.hash(acceptHeader, colorDepth, javaEnabled, javaScriptEnabled, language, screenHeight, screenWidth, timeZoneOffset, userAgent); + return Objects.hash( + acceptHeader, + colorDepth, + javaEnabled, + javaScriptEnabled, + language, + screenHeight, + screenWidth, + timeZoneOffset, + userAgent); } @Override @@ -404,8 +439,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -414,7 +448,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BrowserInfo given an JSON string * * @param jsonString JSON string @@ -424,11 +458,12 @@ private String toIndentedString(Object o) { public static BrowserInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BrowserInfo.class); } -/** - * Convert an instance of BrowserInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BrowserInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/CancelOrRefundRequest.java b/src/main/java/com/adyen/model/payment/CancelOrRefundRequest.java index b585ed5e7..ee3dd3324 100644 --- a/src/main/java/com/adyen/model/payment/CancelOrRefundRequest.java +++ b/src/main/java/com/adyen/model/payment/CancelOrRefundRequest.java @@ -2,35 +2,24 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.payment.PlatformChargebackLogic; -import com.adyen.model.payment.ThreeDSecureData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.HashMap; +import java.util.Map; - -/** - * CancelOrRefundRequest - */ +/** CancelOrRefundRequest */ @JsonPropertyOrder({ CancelOrRefundRequest.JSON_PROPERTY_ADDITIONAL_DATA, CancelOrRefundRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, @@ -42,7 +31,6 @@ CancelOrRefundRequest.JSON_PROPERTY_TENDER_REFERENCE, CancelOrRefundRequest.JSON_PROPERTY_UNIQUE_TERMINAL_ID }) - public class CancelOrRefundRequest { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -53,7 +41,8 @@ public class CancelOrRefundRequest { public static final String JSON_PROPERTY_MPI_DATA = "mpiData"; private ThreeDSecureData mpiData; - public static final String JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE = "originalMerchantReference"; + public static final String JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE = + "originalMerchantReference"; private String originalMerchantReference; public static final String JSON_PROPERTY_ORIGINAL_REFERENCE = "originalReference"; @@ -71,13 +60,16 @@ public class CancelOrRefundRequest { public static final String JSON_PROPERTY_UNIQUE_TERMINAL_ID = "uniqueTerminalId"; private String uniqueTerminalId; - public CancelOrRefundRequest() { - } + public CancelOrRefundRequest() {} /** - * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular modification + * request. The additionalData object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a + * particular modification request. The additionalData object consists of entries, each of + * which includes the key and value. * @return the current {@code CancelOrRefundRequest} instance, allowing for method chaining */ public CancelOrRefundRequest additionalData(Map additionalData) { @@ -94,8 +86,13 @@ public CancelOrRefundRequest putAdditionalDataItem(String key, String additional } /** - * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. - * @return additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular modification + * request. The additionalData object consists of entries, each of which includes the key and + * value. + * + * @return additionalData This field contains additional data, which may be required for a + * particular modification request. The additionalData object consists of entries, each of + * which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,9 +101,13 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular modification + * request. The additionalData object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a + * particular modification request. The additionalData object consists of entries, each of + * which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,6 +128,7 @@ public CancelOrRefundRequest merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. + * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -149,7 +151,7 @@ public void setMerchantAccount(String merchantAccount) { /** * mpiData * - * @param mpiData + * @param mpiData * @return the current {@code CancelOrRefundRequest} instance, allowing for method chaining */ public CancelOrRefundRequest mpiData(ThreeDSecureData mpiData) { @@ -159,7 +161,8 @@ public CancelOrRefundRequest mpiData(ThreeDSecureData mpiData) { /** * Get mpiData - * @return mpiData + * + * @return mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -170,7 +173,7 @@ public ThreeDSecureData getMpiData() { /** * mpiData * - * @param mpiData + * @param mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,6 +194,7 @@ public CancelOrRefundRequest originalMerchantReference(String originalMerchantRe /** * The original merchant reference to cancel. + * * @return originalMerchantReference The original merchant reference to cancel. */ @JsonProperty(JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE) @@ -211,9 +215,11 @@ public void setOriginalMerchantReference(String originalMerchantReference) { } /** - * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * + * authorisation response * authorisation notification * - * @param originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * @param originalReference The original pspReference of the payment to modify. This reference is + * returned in: * authorisation response * authorisation notification * @return the current {@code CancelOrRefundRequest} instance, allowing for method chaining */ public CancelOrRefundRequest originalReference(String originalReference) { @@ -222,8 +228,11 @@ public CancelOrRefundRequest originalReference(String originalReference) { } /** - * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification - * @return originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * + * authorisation response * authorisation notification + * + * @return originalReference The original pspReference of the payment to modify. This reference is + * returned in: * authorisation response * authorisation notification */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,9 +241,11 @@ public String getOriginalReference() { } /** - * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * + * authorisation response * authorisation notification * - * @param originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * @param originalReference The original pspReference of the payment to modify. This reference is + * returned in: * authorisation response * authorisation notification */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -245,17 +256,19 @@ public void setOriginalReference(String originalReference) { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic * @return the current {@code CancelOrRefundRequest} instance, allowing for method chaining */ - public CancelOrRefundRequest platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) { + public CancelOrRefundRequest platformChargebackLogic( + PlatformChargebackLogic platformChargebackLogic) { this.platformChargebackLogic = platformChargebackLogic; return this; } /** * Get platformChargebackLogic - * @return platformChargebackLogic + * + * @return platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -266,7 +279,7 @@ public PlatformChargebackLogic getPlatformChargebackLogic() { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -275,9 +288,11 @@ public void setPlatformChargebackLogic(PlatformChargebackLogic platformChargebac } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in + * reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in + * Customer Area and in reports. Maximum length: 80 characters. * @return the current {@code CancelOrRefundRequest} instance, allowing for method chaining */ public CancelOrRefundRequest reference(String reference) { @@ -286,8 +301,11 @@ public CancelOrRefundRequest reference(String reference) { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. - * @return reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in + * reports. Maximum length: 80 characters. + * + * @return reference Your reference for the payment modification. This reference is visible in + * Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -296,9 +314,11 @@ public String getReference() { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in + * reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in + * Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -309,7 +329,8 @@ public void setReference(String reference) { /** * The transaction reference provided by the PED. For point-of-sale integrations only. * - * @param tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. + * @param tenderReference The transaction reference provided by the PED. For point-of-sale + * integrations only. * @return the current {@code CancelOrRefundRequest} instance, allowing for method chaining */ public CancelOrRefundRequest tenderReference(String tenderReference) { @@ -319,7 +340,9 @@ public CancelOrRefundRequest tenderReference(String tenderReference) { /** * The transaction reference provided by the PED. For point-of-sale integrations only. - * @return tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. + * + * @return tenderReference The transaction reference provided by the PED. For point-of-sale + * integrations only. */ @JsonProperty(JSON_PROPERTY_TENDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -330,7 +353,8 @@ public String getTenderReference() { /** * The transaction reference provided by the PED. For point-of-sale integrations only. * - * @param tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. + * @param tenderReference The transaction reference provided by the PED. For point-of-sale + * integrations only. */ @JsonProperty(JSON_PROPERTY_TENDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -339,9 +363,11 @@ public void setTenderReference(String tenderReference) { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale + * integrations only. * - * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. + * For point-of-sale integrations only. * @return the current {@code CancelOrRefundRequest} instance, allowing for method chaining */ public CancelOrRefundRequest uniqueTerminalId(String uniqueTerminalId) { @@ -350,8 +376,11 @@ public CancelOrRefundRequest uniqueTerminalId(String uniqueTerminalId) { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. - * @return uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale + * integrations only. + * + * @return uniqueTerminalId Unique terminal ID for the PED that originally processed the request. + * For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -360,9 +389,11 @@ public String getUniqueTerminalId() { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale + * integrations only. * - * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. + * For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -370,9 +401,7 @@ public void setUniqueTerminalId(String uniqueTerminalId) { this.uniqueTerminalId = uniqueTerminalId; } - /** - * Return true if this CancelOrRefundRequest object is equal to o. - */ + /** Return true if this CancelOrRefundRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -382,20 +411,31 @@ public boolean equals(Object o) { return false; } CancelOrRefundRequest cancelOrRefundRequest = (CancelOrRefundRequest) o; - return Objects.equals(this.additionalData, cancelOrRefundRequest.additionalData) && - Objects.equals(this.merchantAccount, cancelOrRefundRequest.merchantAccount) && - Objects.equals(this.mpiData, cancelOrRefundRequest.mpiData) && - Objects.equals(this.originalMerchantReference, cancelOrRefundRequest.originalMerchantReference) && - Objects.equals(this.originalReference, cancelOrRefundRequest.originalReference) && - Objects.equals(this.platformChargebackLogic, cancelOrRefundRequest.platformChargebackLogic) && - Objects.equals(this.reference, cancelOrRefundRequest.reference) && - Objects.equals(this.tenderReference, cancelOrRefundRequest.tenderReference) && - Objects.equals(this.uniqueTerminalId, cancelOrRefundRequest.uniqueTerminalId); + return Objects.equals(this.additionalData, cancelOrRefundRequest.additionalData) + && Objects.equals(this.merchantAccount, cancelOrRefundRequest.merchantAccount) + && Objects.equals(this.mpiData, cancelOrRefundRequest.mpiData) + && Objects.equals( + this.originalMerchantReference, cancelOrRefundRequest.originalMerchantReference) + && Objects.equals(this.originalReference, cancelOrRefundRequest.originalReference) + && Objects.equals( + this.platformChargebackLogic, cancelOrRefundRequest.platformChargebackLogic) + && Objects.equals(this.reference, cancelOrRefundRequest.reference) + && Objects.equals(this.tenderReference, cancelOrRefundRequest.tenderReference) + && Objects.equals(this.uniqueTerminalId, cancelOrRefundRequest.uniqueTerminalId); } @Override public int hashCode() { - return Objects.hash(additionalData, merchantAccount, mpiData, originalMerchantReference, originalReference, platformChargebackLogic, reference, tenderReference, uniqueTerminalId); + return Objects.hash( + additionalData, + merchantAccount, + mpiData, + originalMerchantReference, + originalReference, + platformChargebackLogic, + reference, + tenderReference, + uniqueTerminalId); } @Override @@ -405,9 +445,13 @@ public String toString() { sb.append(" additionalData: ").append(toIndentedString(additionalData)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" mpiData: ").append(toIndentedString(mpiData)).append("\n"); - sb.append(" originalMerchantReference: ").append(toIndentedString(originalMerchantReference)).append("\n"); + sb.append(" originalMerchantReference: ") + .append(toIndentedString(originalMerchantReference)) + .append("\n"); sb.append(" originalReference: ").append(toIndentedString(originalReference)).append("\n"); - sb.append(" platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n"); + sb.append(" platformChargebackLogic: ") + .append(toIndentedString(platformChargebackLogic)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" tenderReference: ").append(toIndentedString(tenderReference)).append("\n"); sb.append(" uniqueTerminalId: ").append(toIndentedString(uniqueTerminalId)).append("\n"); @@ -416,8 +460,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -426,21 +469,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CancelOrRefundRequest given an JSON string * * @param jsonString JSON string * @return An instance of CancelOrRefundRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to CancelOrRefundRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CancelOrRefundRequest */ public static CancelOrRefundRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CancelOrRefundRequest.class); } -/** - * Convert an instance of CancelOrRefundRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CancelOrRefundRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/CancelRequest.java b/src/main/java/com/adyen/model/payment/CancelRequest.java index 8c1030679..deabb1959 100644 --- a/src/main/java/com/adyen/model/payment/CancelRequest.java +++ b/src/main/java/com/adyen/model/payment/CancelRequest.java @@ -2,38 +2,26 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.payment.PlatformChargebackLogic; -import com.adyen.model.payment.Split; -import com.adyen.model.payment.ThreeDSecureData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; -import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -/** - * CancelRequest - */ +/** CancelRequest */ @JsonPropertyOrder({ CancelRequest.JSON_PROPERTY_ADDITIONAL_DATA, CancelRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, @@ -46,7 +34,6 @@ CancelRequest.JSON_PROPERTY_TENDER_REFERENCE, CancelRequest.JSON_PROPERTY_UNIQUE_TERMINAL_ID }) - public class CancelRequest { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -57,7 +44,8 @@ public class CancelRequest { public static final String JSON_PROPERTY_MPI_DATA = "mpiData"; private ThreeDSecureData mpiData; - public static final String JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE = "originalMerchantReference"; + public static final String JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE = + "originalMerchantReference"; private String originalMerchantReference; public static final String JSON_PROPERTY_ORIGINAL_REFERENCE = "originalReference"; @@ -78,13 +66,16 @@ public class CancelRequest { public static final String JSON_PROPERTY_UNIQUE_TERMINAL_ID = "uniqueTerminalId"; private String uniqueTerminalId; - public CancelRequest() { - } + public CancelRequest() {} /** - * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular modification + * request. The additionalData object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a + * particular modification request. The additionalData object consists of entries, each of + * which includes the key and value. * @return the current {@code CancelRequest} instance, allowing for method chaining */ public CancelRequest additionalData(Map additionalData) { @@ -101,8 +92,13 @@ public CancelRequest putAdditionalDataItem(String key, String additionalDataItem } /** - * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. - * @return additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular modification + * request. The additionalData object consists of entries, each of which includes the key and + * value. + * + * @return additionalData This field contains additional data, which may be required for a + * particular modification request. The additionalData object consists of entries, each of + * which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,9 +107,13 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular modification + * request. The additionalData object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a + * particular modification request. The additionalData object consists of entries, each of + * which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -134,6 +134,7 @@ public CancelRequest merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. + * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -156,7 +157,7 @@ public void setMerchantAccount(String merchantAccount) { /** * mpiData * - * @param mpiData + * @param mpiData * @return the current {@code CancelRequest} instance, allowing for method chaining */ public CancelRequest mpiData(ThreeDSecureData mpiData) { @@ -166,7 +167,8 @@ public CancelRequest mpiData(ThreeDSecureData mpiData) { /** * Get mpiData - * @return mpiData + * + * @return mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,7 +179,7 @@ public ThreeDSecureData getMpiData() { /** * mpiData * - * @param mpiData + * @param mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,6 +200,7 @@ public CancelRequest originalMerchantReference(String originalMerchantReference) /** * The original merchant reference to cancel. + * * @return originalMerchantReference The original merchant reference to cancel. */ @JsonProperty(JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE) @@ -218,9 +221,11 @@ public void setOriginalMerchantReference(String originalMerchantReference) { } /** - * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * + * authorisation response * authorisation notification * - * @param originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * @param originalReference The original pspReference of the payment to modify. This reference is + * returned in: * authorisation response * authorisation notification * @return the current {@code CancelRequest} instance, allowing for method chaining */ public CancelRequest originalReference(String originalReference) { @@ -229,8 +234,11 @@ public CancelRequest originalReference(String originalReference) { } /** - * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification - * @return originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * + * authorisation response * authorisation notification + * + * @return originalReference The original pspReference of the payment to modify. This reference is + * returned in: * authorisation response * authorisation notification */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -239,9 +247,11 @@ public String getOriginalReference() { } /** - * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * + * authorisation response * authorisation notification * - * @param originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * @param originalReference The original pspReference of the payment to modify. This reference is + * returned in: * authorisation response * authorisation notification */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,7 +262,7 @@ public void setOriginalReference(String originalReference) { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic * @return the current {@code CancelRequest} instance, allowing for method chaining */ public CancelRequest platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) { @@ -262,7 +272,8 @@ public CancelRequest platformChargebackLogic(PlatformChargebackLogic platformCha /** * Get platformChargebackLogic - * @return platformChargebackLogic + * + * @return platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -273,7 +284,7 @@ public PlatformChargebackLogic getPlatformChargebackLogic() { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -282,9 +293,11 @@ public void setPlatformChargebackLogic(PlatformChargebackLogic platformChargebac } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in + * reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in + * Customer Area and in reports. Maximum length: 80 characters. * @return the current {@code CancelRequest} instance, allowing for method chaining */ public CancelRequest reference(String reference) { @@ -293,8 +306,11 @@ public CancelRequest reference(String reference) { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. - * @return reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in + * reports. Maximum length: 80 characters. + * + * @return reference Your reference for the payment modification. This reference is visible in + * Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -303,9 +319,11 @@ public String getReference() { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in + * reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in + * Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -314,9 +332,13 @@ public void setReference(String reference) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * - * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * @param splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * @return the current {@code CancelRequest} instance, allowing for method chaining */ public CancelRequest splits(List splits) { @@ -333,8 +355,13 @@ public CancelRequest addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). - * @return splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * + * @return splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -343,9 +370,13 @@ public List getSplits() { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * - * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * @param splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -356,7 +387,8 @@ public void setSplits(List splits) { /** * The transaction reference provided by the PED. For point-of-sale integrations only. * - * @param tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. + * @param tenderReference The transaction reference provided by the PED. For point-of-sale + * integrations only. * @return the current {@code CancelRequest} instance, allowing for method chaining */ public CancelRequest tenderReference(String tenderReference) { @@ -366,7 +398,9 @@ public CancelRequest tenderReference(String tenderReference) { /** * The transaction reference provided by the PED. For point-of-sale integrations only. - * @return tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. + * + * @return tenderReference The transaction reference provided by the PED. For point-of-sale + * integrations only. */ @JsonProperty(JSON_PROPERTY_TENDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -377,7 +411,8 @@ public String getTenderReference() { /** * The transaction reference provided by the PED. For point-of-sale integrations only. * - * @param tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. + * @param tenderReference The transaction reference provided by the PED. For point-of-sale + * integrations only. */ @JsonProperty(JSON_PROPERTY_TENDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -386,9 +421,11 @@ public void setTenderReference(String tenderReference) { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale + * integrations only. * - * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. + * For point-of-sale integrations only. * @return the current {@code CancelRequest} instance, allowing for method chaining */ public CancelRequest uniqueTerminalId(String uniqueTerminalId) { @@ -397,8 +434,11 @@ public CancelRequest uniqueTerminalId(String uniqueTerminalId) { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. - * @return uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale + * integrations only. + * + * @return uniqueTerminalId Unique terminal ID for the PED that originally processed the request. + * For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -407,9 +447,11 @@ public String getUniqueTerminalId() { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale + * integrations only. * - * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. + * For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -417,9 +459,7 @@ public void setUniqueTerminalId(String uniqueTerminalId) { this.uniqueTerminalId = uniqueTerminalId; } - /** - * Return true if this CancelRequest object is equal to o. - */ + /** Return true if this CancelRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -429,21 +469,31 @@ public boolean equals(Object o) { return false; } CancelRequest cancelRequest = (CancelRequest) o; - return Objects.equals(this.additionalData, cancelRequest.additionalData) && - Objects.equals(this.merchantAccount, cancelRequest.merchantAccount) && - Objects.equals(this.mpiData, cancelRequest.mpiData) && - Objects.equals(this.originalMerchantReference, cancelRequest.originalMerchantReference) && - Objects.equals(this.originalReference, cancelRequest.originalReference) && - Objects.equals(this.platformChargebackLogic, cancelRequest.platformChargebackLogic) && - Objects.equals(this.reference, cancelRequest.reference) && - Objects.equals(this.splits, cancelRequest.splits) && - Objects.equals(this.tenderReference, cancelRequest.tenderReference) && - Objects.equals(this.uniqueTerminalId, cancelRequest.uniqueTerminalId); + return Objects.equals(this.additionalData, cancelRequest.additionalData) + && Objects.equals(this.merchantAccount, cancelRequest.merchantAccount) + && Objects.equals(this.mpiData, cancelRequest.mpiData) + && Objects.equals(this.originalMerchantReference, cancelRequest.originalMerchantReference) + && Objects.equals(this.originalReference, cancelRequest.originalReference) + && Objects.equals(this.platformChargebackLogic, cancelRequest.platformChargebackLogic) + && Objects.equals(this.reference, cancelRequest.reference) + && Objects.equals(this.splits, cancelRequest.splits) + && Objects.equals(this.tenderReference, cancelRequest.tenderReference) + && Objects.equals(this.uniqueTerminalId, cancelRequest.uniqueTerminalId); } @Override public int hashCode() { - return Objects.hash(additionalData, merchantAccount, mpiData, originalMerchantReference, originalReference, platformChargebackLogic, reference, splits, tenderReference, uniqueTerminalId); + return Objects.hash( + additionalData, + merchantAccount, + mpiData, + originalMerchantReference, + originalReference, + platformChargebackLogic, + reference, + splits, + tenderReference, + uniqueTerminalId); } @Override @@ -453,9 +503,13 @@ public String toString() { sb.append(" additionalData: ").append(toIndentedString(additionalData)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" mpiData: ").append(toIndentedString(mpiData)).append("\n"); - sb.append(" originalMerchantReference: ").append(toIndentedString(originalMerchantReference)).append("\n"); + sb.append(" originalMerchantReference: ") + .append(toIndentedString(originalMerchantReference)) + .append("\n"); sb.append(" originalReference: ").append(toIndentedString(originalReference)).append("\n"); - sb.append(" platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n"); + sb.append(" platformChargebackLogic: ") + .append(toIndentedString(platformChargebackLogic)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" tenderReference: ").append(toIndentedString(tenderReference)).append("\n"); @@ -465,8 +519,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -475,7 +528,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CancelRequest given an JSON string * * @param jsonString JSON string @@ -485,11 +538,12 @@ private String toIndentedString(Object o) { public static CancelRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CancelRequest.class); } -/** - * Convert an instance of CancelRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CancelRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/CaptureRequest.java b/src/main/java/com/adyen/model/payment/CaptureRequest.java index c5a081d0c..8d7fb019d 100644 --- a/src/main/java/com/adyen/model/payment/CaptureRequest.java +++ b/src/main/java/com/adyen/model/payment/CaptureRequest.java @@ -2,39 +2,26 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.payment.Amount; -import com.adyen.model.payment.PlatformChargebackLogic; -import com.adyen.model.payment.Split; -import com.adyen.model.payment.ThreeDSecureData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; -import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -/** - * CaptureRequest - */ +/** CaptureRequest */ @JsonPropertyOrder({ CaptureRequest.JSON_PROPERTY_ADDITIONAL_DATA, CaptureRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, @@ -48,7 +35,6 @@ CaptureRequest.JSON_PROPERTY_TENDER_REFERENCE, CaptureRequest.JSON_PROPERTY_UNIQUE_TERMINAL_ID }) - public class CaptureRequest { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -62,7 +48,8 @@ public class CaptureRequest { public static final String JSON_PROPERTY_MPI_DATA = "mpiData"; private ThreeDSecureData mpiData; - public static final String JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE = "originalMerchantReference"; + public static final String JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE = + "originalMerchantReference"; private String originalMerchantReference; public static final String JSON_PROPERTY_ORIGINAL_REFERENCE = "originalReference"; @@ -83,13 +70,16 @@ public class CaptureRequest { public static final String JSON_PROPERTY_UNIQUE_TERMINAL_ID = "uniqueTerminalId"; private String uniqueTerminalId; - public CaptureRequest() { - } + public CaptureRequest() {} /** - * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular modification + * request. The additionalData object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a + * particular modification request. The additionalData object consists of entries, each of + * which includes the key and value. * @return the current {@code CaptureRequest} instance, allowing for method chaining */ public CaptureRequest additionalData(Map additionalData) { @@ -106,8 +96,13 @@ public CaptureRequest putAdditionalDataItem(String key, String additionalDataIte } /** - * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. - * @return additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular modification + * request. The additionalData object consists of entries, each of which includes the key and + * value. + * + * @return additionalData This field contains additional data, which may be required for a + * particular modification request. The additionalData object consists of entries, each of + * which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,9 +111,13 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular modification + * request. The additionalData object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a + * particular modification request. The additionalData object consists of entries, each of + * which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,6 +138,7 @@ public CaptureRequest merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. + * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -161,7 +161,7 @@ public void setMerchantAccount(String merchantAccount) { /** * modificationAmount * - * @param modificationAmount + * @param modificationAmount * @return the current {@code CaptureRequest} instance, allowing for method chaining */ public CaptureRequest modificationAmount(Amount modificationAmount) { @@ -171,7 +171,8 @@ public CaptureRequest modificationAmount(Amount modificationAmount) { /** * Get modificationAmount - * @return modificationAmount + * + * @return modificationAmount */ @JsonProperty(JSON_PROPERTY_MODIFICATION_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,7 +183,7 @@ public Amount getModificationAmount() { /** * modificationAmount * - * @param modificationAmount + * @param modificationAmount */ @JsonProperty(JSON_PROPERTY_MODIFICATION_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,7 +194,7 @@ public void setModificationAmount(Amount modificationAmount) { /** * mpiData * - * @param mpiData + * @param mpiData * @return the current {@code CaptureRequest} instance, allowing for method chaining */ public CaptureRequest mpiData(ThreeDSecureData mpiData) { @@ -203,7 +204,8 @@ public CaptureRequest mpiData(ThreeDSecureData mpiData) { /** * Get mpiData - * @return mpiData + * + * @return mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,7 +216,7 @@ public ThreeDSecureData getMpiData() { /** * mpiData * - * @param mpiData + * @param mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -235,6 +237,7 @@ public CaptureRequest originalMerchantReference(String originalMerchantReference /** * The original merchant reference to cancel. + * * @return originalMerchantReference The original merchant reference to cancel. */ @JsonProperty(JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE) @@ -255,9 +258,11 @@ public void setOriginalMerchantReference(String originalMerchantReference) { } /** - * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * + * authorisation response * authorisation notification * - * @param originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * @param originalReference The original pspReference of the payment to modify. This reference is + * returned in: * authorisation response * authorisation notification * @return the current {@code CaptureRequest} instance, allowing for method chaining */ public CaptureRequest originalReference(String originalReference) { @@ -266,8 +271,11 @@ public CaptureRequest originalReference(String originalReference) { } /** - * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification - * @return originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * + * authorisation response * authorisation notification + * + * @return originalReference The original pspReference of the payment to modify. This reference is + * returned in: * authorisation response * authorisation notification */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -276,9 +284,11 @@ public String getOriginalReference() { } /** - * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * + * authorisation response * authorisation notification * - * @param originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * @param originalReference The original pspReference of the payment to modify. This reference is + * returned in: * authorisation response * authorisation notification */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -289,7 +299,7 @@ public void setOriginalReference(String originalReference) { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic * @return the current {@code CaptureRequest} instance, allowing for method chaining */ public CaptureRequest platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) { @@ -299,7 +309,8 @@ public CaptureRequest platformChargebackLogic(PlatformChargebackLogic platformCh /** * Get platformChargebackLogic - * @return platformChargebackLogic + * + * @return platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -310,7 +321,7 @@ public PlatformChargebackLogic getPlatformChargebackLogic() { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -319,9 +330,11 @@ public void setPlatformChargebackLogic(PlatformChargebackLogic platformChargebac } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in + * reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in + * Customer Area and in reports. Maximum length: 80 characters. * @return the current {@code CaptureRequest} instance, allowing for method chaining */ public CaptureRequest reference(String reference) { @@ -330,8 +343,11 @@ public CaptureRequest reference(String reference) { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. - * @return reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in + * reports. Maximum length: 80 characters. + * + * @return reference Your reference for the payment modification. This reference is visible in + * Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -340,9 +356,11 @@ public String getReference() { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in + * reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in + * Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -351,9 +369,13 @@ public void setReference(String reference) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * - * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * @param splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * @return the current {@code CaptureRequest} instance, allowing for method chaining */ public CaptureRequest splits(List splits) { @@ -370,8 +392,13 @@ public CaptureRequest addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). - * @return splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * + * @return splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -380,9 +407,13 @@ public List getSplits() { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * - * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * @param splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -393,7 +424,8 @@ public void setSplits(List splits) { /** * The transaction reference provided by the PED. For point-of-sale integrations only. * - * @param tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. + * @param tenderReference The transaction reference provided by the PED. For point-of-sale + * integrations only. * @return the current {@code CaptureRequest} instance, allowing for method chaining */ public CaptureRequest tenderReference(String tenderReference) { @@ -403,7 +435,9 @@ public CaptureRequest tenderReference(String tenderReference) { /** * The transaction reference provided by the PED. For point-of-sale integrations only. - * @return tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. + * + * @return tenderReference The transaction reference provided by the PED. For point-of-sale + * integrations only. */ @JsonProperty(JSON_PROPERTY_TENDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -414,7 +448,8 @@ public String getTenderReference() { /** * The transaction reference provided by the PED. For point-of-sale integrations only. * - * @param tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. + * @param tenderReference The transaction reference provided by the PED. For point-of-sale + * integrations only. */ @JsonProperty(JSON_PROPERTY_TENDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -423,9 +458,11 @@ public void setTenderReference(String tenderReference) { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale + * integrations only. * - * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. + * For point-of-sale integrations only. * @return the current {@code CaptureRequest} instance, allowing for method chaining */ public CaptureRequest uniqueTerminalId(String uniqueTerminalId) { @@ -434,8 +471,11 @@ public CaptureRequest uniqueTerminalId(String uniqueTerminalId) { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. - * @return uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale + * integrations only. + * + * @return uniqueTerminalId Unique terminal ID for the PED that originally processed the request. + * For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -444,9 +484,11 @@ public String getUniqueTerminalId() { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale + * integrations only. * - * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. + * For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -454,9 +496,7 @@ public void setUniqueTerminalId(String uniqueTerminalId) { this.uniqueTerminalId = uniqueTerminalId; } - /** - * Return true if this CaptureRequest object is equal to o. - */ + /** Return true if this CaptureRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -466,22 +506,33 @@ public boolean equals(Object o) { return false; } CaptureRequest captureRequest = (CaptureRequest) o; - return Objects.equals(this.additionalData, captureRequest.additionalData) && - Objects.equals(this.merchantAccount, captureRequest.merchantAccount) && - Objects.equals(this.modificationAmount, captureRequest.modificationAmount) && - Objects.equals(this.mpiData, captureRequest.mpiData) && - Objects.equals(this.originalMerchantReference, captureRequest.originalMerchantReference) && - Objects.equals(this.originalReference, captureRequest.originalReference) && - Objects.equals(this.platformChargebackLogic, captureRequest.platformChargebackLogic) && - Objects.equals(this.reference, captureRequest.reference) && - Objects.equals(this.splits, captureRequest.splits) && - Objects.equals(this.tenderReference, captureRequest.tenderReference) && - Objects.equals(this.uniqueTerminalId, captureRequest.uniqueTerminalId); + return Objects.equals(this.additionalData, captureRequest.additionalData) + && Objects.equals(this.merchantAccount, captureRequest.merchantAccount) + && Objects.equals(this.modificationAmount, captureRequest.modificationAmount) + && Objects.equals(this.mpiData, captureRequest.mpiData) + && Objects.equals(this.originalMerchantReference, captureRequest.originalMerchantReference) + && Objects.equals(this.originalReference, captureRequest.originalReference) + && Objects.equals(this.platformChargebackLogic, captureRequest.platformChargebackLogic) + && Objects.equals(this.reference, captureRequest.reference) + && Objects.equals(this.splits, captureRequest.splits) + && Objects.equals(this.tenderReference, captureRequest.tenderReference) + && Objects.equals(this.uniqueTerminalId, captureRequest.uniqueTerminalId); } @Override public int hashCode() { - return Objects.hash(additionalData, merchantAccount, modificationAmount, mpiData, originalMerchantReference, originalReference, platformChargebackLogic, reference, splits, tenderReference, uniqueTerminalId); + return Objects.hash( + additionalData, + merchantAccount, + modificationAmount, + mpiData, + originalMerchantReference, + originalReference, + platformChargebackLogic, + reference, + splits, + tenderReference, + uniqueTerminalId); } @Override @@ -492,9 +543,13 @@ public String toString() { sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" modificationAmount: ").append(toIndentedString(modificationAmount)).append("\n"); sb.append(" mpiData: ").append(toIndentedString(mpiData)).append("\n"); - sb.append(" originalMerchantReference: ").append(toIndentedString(originalMerchantReference)).append("\n"); + sb.append(" originalMerchantReference: ") + .append(toIndentedString(originalMerchantReference)) + .append("\n"); sb.append(" originalReference: ").append(toIndentedString(originalReference)).append("\n"); - sb.append(" platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n"); + sb.append(" platformChargebackLogic: ") + .append(toIndentedString(platformChargebackLogic)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" tenderReference: ").append(toIndentedString(tenderReference)).append("\n"); @@ -504,8 +559,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -514,7 +568,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CaptureRequest given an JSON string * * @param jsonString JSON string @@ -524,11 +578,12 @@ private String toIndentedString(Object o) { public static CaptureRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CaptureRequest.class); } -/** - * Convert an instance of CaptureRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CaptureRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/Card.java b/src/main/java/com/adyen/model/payment/Card.java index 2e92cda0e..b80b78b22 100644 --- a/src/main/java/com/adyen/model/payment/Card.java +++ b/src/main/java/com/adyen/model/payment/Card.java @@ -2,31 +2,22 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Card - */ +/** Card */ @JsonPropertyOrder({ Card.JSON_PROPERTY_CVC, Card.JSON_PROPERTY_EXPIRY_MONTH, @@ -37,7 +28,6 @@ Card.JSON_PROPERTY_START_MONTH, Card.JSON_PROPERTY_START_YEAR }) - public class Card { public static final String JSON_PROPERTY_CVC = "cvc"; private String cvc; @@ -63,13 +53,28 @@ public class Card { public static final String JSON_PROPERTY_START_YEAR = "startYear"; private String startYear; - public Card() { - } + public Card() {} /** - * The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. + * The [card verification + * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) + * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 + * digits * CID – length: 4 digits > If you are using [Client-Side + * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code + * is present in the encrypted data. You must never post the card details to the server. > This + * field must be always present in a [one-click payment + * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value + * is returned in a response, it is always empty because it is not stored. * - * @param cvc The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. + * @param cvc The [card verification + * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) + * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: + * 3 digits * CID – length: 4 digits > If you are using [Client-Side + * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC + * code is present in the encrypted data. You must never post the card details to the server. + * > This field must be always present in a [one-click payment + * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this + * value is returned in a response, it is always empty because it is not stored. * @return the current {@code Card} instance, allowing for method chaining */ public Card cvc(String cvc) { @@ -78,8 +83,25 @@ public Card cvc(String cvc) { } /** - * The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. - * @return cvc The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. + * The [card verification + * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) + * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 + * digits * CID – length: 4 digits > If you are using [Client-Side + * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code + * is present in the encrypted data. You must never post the card details to the server. > This + * field must be always present in a [one-click payment + * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value + * is returned in a response, it is always empty because it is not stored. + * + * @return cvc The [card verification + * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) + * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: + * 3 digits * CID – length: 4 digits > If you are using [Client-Side + * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC + * code is present in the encrypted data. You must never post the card details to the server. + * > This field must be always present in a [one-click payment + * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this + * value is returned in a response, it is always empty because it is not stored. */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -88,9 +110,25 @@ public String getCvc() { } /** - * The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. + * The [card verification + * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) + * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 + * digits * CID – length: 4 digits > If you are using [Client-Side + * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code + * is present in the encrypted data. You must never post the card details to the server. > This + * field must be always present in a [one-click payment + * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value + * is returned in a response, it is always empty because it is not stored. * - * @param cvc The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. + * @param cvc The [card verification + * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) + * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: + * 3 digits * CID – length: 4 digits > If you are using [Client-Side + * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC + * code is present in the encrypted data. You must never post the card details to the server. + * > This field must be always present in a [one-click payment + * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this + * value is returned in a response, it is always empty because it is not stored. */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,9 +137,11 @@ public void setCvc(String cvc) { } /** - * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November + * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 + * = March * 11 = November * - * @param expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November + * @param expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For + * example: * 03 = March * 11 = November * @return the current {@code Card} instance, allowing for method chaining */ public Card expiryMonth(String expiryMonth) { @@ -110,8 +150,11 @@ public Card expiryMonth(String expiryMonth) { } /** - * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November - * @return expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November + * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 + * = March * 11 = November + * + * @return expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For + * example: * 03 = March * 11 = November */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -120,9 +163,11 @@ public String getExpiryMonth() { } /** - * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November + * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 + * = March * 11 = November * - * @param expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November + * @param expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For + * example: * 03 = March * 11 = November */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,6 +188,7 @@ public Card expiryYear(String expiryYear) { /** * The card expiry year. Format: 4 digits. For example: 2020 + * * @return expiryYear The card expiry year. Format: 4 digits. For example: 2020 */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @@ -175,6 +221,7 @@ public Card holderName(String holderName) { /** * The name of the cardholder, as printed on the card. + * * @return holderName The name of the cardholder, as printed on the card. */ @JsonProperty(JSON_PROPERTY_HOLDER_NAME) @@ -207,6 +254,7 @@ public Card issueNumber(String issueNumber) { /** * The issue number of the card (for some UK debit cards only). + * * @return issueNumber The issue number of the card (for some UK debit cards only). */ @JsonProperty(JSON_PROPERTY_ISSUE_NUMBER) @@ -227,9 +275,11 @@ public void setIssueNumber(String issueNumber) { } /** - * The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. + * The card number (4-19 characters). Do not use any separators. When this value is returned in a + * response, only the last 4 digits of the card number are returned. * - * @param number The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. + * @param number The card number (4-19 characters). Do not use any separators. When this value is + * returned in a response, only the last 4 digits of the card number are returned. * @return the current {@code Card} instance, allowing for method chaining */ public Card number(String number) { @@ -238,8 +288,11 @@ public Card number(String number) { } /** - * The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. - * @return number The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. + * The card number (4-19 characters). Do not use any separators. When this value is returned in a + * response, only the last 4 digits of the card number are returned. + * + * @return number The card number (4-19 characters). Do not use any separators. When this value is + * returned in a response, only the last 4 digits of the card number are returned. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -248,9 +301,11 @@ public String getNumber() { } /** - * The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. + * The card number (4-19 characters). Do not use any separators. When this value is returned in a + * response, only the last 4 digits of the card number are returned. * - * @param number The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. + * @param number The card number (4-19 characters). Do not use any separators. When this value is + * returned in a response, only the last 4 digits of the card number are returned. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -271,6 +326,7 @@ public Card startMonth(String startMonth) { /** * The month component of the start date (for some UK debit cards only). + * * @return startMonth The month component of the start date (for some UK debit cards only). */ @JsonProperty(JSON_PROPERTY_START_MONTH) @@ -303,6 +359,7 @@ public Card startYear(String startYear) { /** * The year component of the start date (for some UK debit cards only). + * * @return startYear The year component of the start date (for some UK debit cards only). */ @JsonProperty(JSON_PROPERTY_START_YEAR) @@ -322,9 +379,7 @@ public void setStartYear(String startYear) { this.startYear = startYear; } - /** - * Return true if this Card object is equal to o. - */ + /** Return true if this Card object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -334,19 +389,20 @@ public boolean equals(Object o) { return false; } Card card = (Card) o; - return Objects.equals(this.cvc, card.cvc) && - Objects.equals(this.expiryMonth, card.expiryMonth) && - Objects.equals(this.expiryYear, card.expiryYear) && - Objects.equals(this.holderName, card.holderName) && - Objects.equals(this.issueNumber, card.issueNumber) && - Objects.equals(this.number, card.number) && - Objects.equals(this.startMonth, card.startMonth) && - Objects.equals(this.startYear, card.startYear); + return Objects.equals(this.cvc, card.cvc) + && Objects.equals(this.expiryMonth, card.expiryMonth) + && Objects.equals(this.expiryYear, card.expiryYear) + && Objects.equals(this.holderName, card.holderName) + && Objects.equals(this.issueNumber, card.issueNumber) + && Objects.equals(this.number, card.number) + && Objects.equals(this.startMonth, card.startMonth) + && Objects.equals(this.startYear, card.startYear); } @Override public int hashCode() { - return Objects.hash(cvc, expiryMonth, expiryYear, holderName, issueNumber, number, startMonth, startYear); + return Objects.hash( + cvc, expiryMonth, expiryYear, holderName, issueNumber, number, startMonth, startYear); } @Override @@ -366,8 +422,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -376,7 +431,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Card given an JSON string * * @param jsonString JSON string @@ -386,11 +441,12 @@ private String toIndentedString(Object o) { public static Card fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Card.class); } -/** - * Convert an instance of Card to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Card to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/CommonField.java b/src/main/java/com/adyen/model/payment/CommonField.java index 748f00167..6a9f8dd6a 100644 --- a/src/main/java/com/adyen/model/payment/CommonField.java +++ b/src/main/java/com/adyen/model/payment/CommonField.java @@ -2,36 +2,23 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * CommonField - */ -@JsonPropertyOrder({ - CommonField.JSON_PROPERTY_NAME, - CommonField.JSON_PROPERTY_VERSION -}) - +/** CommonField */ +@JsonPropertyOrder({CommonField.JSON_PROPERTY_NAME, CommonField.JSON_PROPERTY_VERSION}) public class CommonField { public static final String JSON_PROPERTY_NAME = "name"; private String name; @@ -39,8 +26,7 @@ public class CommonField { public static final String JSON_PROPERTY_VERSION = "version"; private String version; - public CommonField() { - } + public CommonField() {} /** * Name of the field. For example, Name of External Platform. @@ -55,6 +41,7 @@ public CommonField name(String name) { /** * Name of the field. For example, Name of External Platform. + * * @return name Name of the field. For example, Name of External Platform. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -87,6 +74,7 @@ public CommonField version(String version) { /** * Version of the field. For example, Version of External Platform. + * * @return version Version of the field. For example, Version of External Platform. */ @JsonProperty(JSON_PROPERTY_VERSION) @@ -106,9 +94,7 @@ public void setVersion(String version) { this.version = version; } - /** - * Return true if this CommonField object is equal to o. - */ + /** Return true if this CommonField object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +104,8 @@ public boolean equals(Object o) { return false; } CommonField commonField = (CommonField) o; - return Objects.equals(this.name, commonField.name) && - Objects.equals(this.version, commonField.version); + return Objects.equals(this.name, commonField.name) + && Objects.equals(this.version, commonField.version); } @Override @@ -138,8 +124,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +133,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CommonField given an JSON string * * @param jsonString JSON string @@ -158,11 +143,12 @@ private String toIndentedString(Object o) { public static CommonField fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CommonField.class); } -/** - * Convert an instance of CommonField to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CommonField to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/DeviceRenderOptions.java b/src/main/java/com/adyen/model/payment/DeviceRenderOptions.java index 44a126c40..001c1f0cf 100644 --- a/src/main/java/com/adyen/model/payment/DeviceRenderOptions.java +++ b/src/main/java/com/adyen/model/payment/DeviceRenderOptions.java @@ -2,44 +2,35 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * DeviceRenderOptions - */ +/** DeviceRenderOptions */ @JsonPropertyOrder({ DeviceRenderOptions.JSON_PROPERTY_SDK_INTERFACE, DeviceRenderOptions.JSON_PROPERTY_SDK_UI_TYPE }) - public class DeviceRenderOptions { - /** - * Supported SDK interface types. Allowed values: * native * html * both - */ + /** Supported SDK interface types. Allowed values: * native * html * both */ public enum SdkInterfaceEnum { - NATIVE(String.valueOf("native")), HTML(String.valueOf("html")), @@ -51,7 +42,7 @@ public enum SdkInterfaceEnum { private String value; SdkInterfaceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -72,7 +63,11 @@ public static SdkInterfaceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("SdkInterfaceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(SdkInterfaceEnum.values())); + LOG.warning( + "SdkInterfaceEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(SdkInterfaceEnum.values())); return null; } } @@ -80,11 +75,8 @@ public static SdkInterfaceEnum fromValue(String value) { public static final String JSON_PROPERTY_SDK_INTERFACE = "sdkInterface"; private SdkInterfaceEnum sdkInterface; - /** - * Gets or Sets sdkUiType - */ + /** Gets or Sets sdkUiType */ public enum SdkUiTypeEnum { - MULTISELECT(String.valueOf("multiSelect")), OTHERHTML(String.valueOf("otherHtml")), @@ -100,7 +92,7 @@ public enum SdkUiTypeEnum { private String value; SdkUiTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -121,7 +113,11 @@ public static SdkUiTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("SdkUiTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(SdkUiTypeEnum.values())); + LOG.warning( + "SdkUiTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(SdkUiTypeEnum.values())); return null; } } @@ -129,8 +125,7 @@ public static SdkUiTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_SDK_UI_TYPE = "sdkUiType"; private List sdkUiType; - public DeviceRenderOptions() { - } + public DeviceRenderOptions() {} /** * Supported SDK interface types. Allowed values: * native * html * both @@ -145,6 +140,7 @@ public DeviceRenderOptions sdkInterface(SdkInterfaceEnum sdkInterface) { /** * Supported SDK interface types. Allowed values: * native * html * both + * * @return sdkInterface Supported SDK interface types. Allowed values: * native * html * both */ @JsonProperty(JSON_PROPERTY_SDK_INTERFACE) @@ -165,9 +161,11 @@ public void setSdkInterface(SdkInterfaceEnum sdkInterface) { } /** - * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect + * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * + * outOfBand * otherHtml * multiSelect * - * @param sdkUiType UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect + * @param sdkUiType UI types supported for displaying specific challenges. Allowed values: * text + * * singleSelect * outOfBand * otherHtml * multiSelect * @return the current {@code DeviceRenderOptions} instance, allowing for method chaining */ public DeviceRenderOptions sdkUiType(List sdkUiType) { @@ -184,8 +182,11 @@ public DeviceRenderOptions addSdkUiTypeItem(SdkUiTypeEnum sdkUiTypeItem) { } /** - * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect - * @return sdkUiType UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect + * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * + * outOfBand * otherHtml * multiSelect + * + * @return sdkUiType UI types supported for displaying specific challenges. Allowed values: * text + * * singleSelect * outOfBand * otherHtml * multiSelect */ @JsonProperty(JSON_PROPERTY_SDK_UI_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,9 +195,11 @@ public List getSdkUiType() { } /** - * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect + * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * + * outOfBand * otherHtml * multiSelect * - * @param sdkUiType UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect + * @param sdkUiType UI types supported for displaying specific challenges. Allowed values: * text + * * singleSelect * outOfBand * otherHtml * multiSelect */ @JsonProperty(JSON_PROPERTY_SDK_UI_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,9 +207,7 @@ public void setSdkUiType(List sdkUiType) { this.sdkUiType = sdkUiType; } - /** - * Return true if this DeviceRenderOptions object is equal to o. - */ + /** Return true if this DeviceRenderOptions object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -216,8 +217,8 @@ public boolean equals(Object o) { return false; } DeviceRenderOptions deviceRenderOptions = (DeviceRenderOptions) o; - return Objects.equals(this.sdkInterface, deviceRenderOptions.sdkInterface) && - Objects.equals(this.sdkUiType, deviceRenderOptions.sdkUiType); + return Objects.equals(this.sdkInterface, deviceRenderOptions.sdkInterface) + && Objects.equals(this.sdkUiType, deviceRenderOptions.sdkUiType); } @Override @@ -236,8 +237,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -246,21 +246,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DeviceRenderOptions given an JSON string * * @param jsonString JSON string * @return An instance of DeviceRenderOptions - * @throws JsonProcessingException if the JSON string is invalid with respect to DeviceRenderOptions + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DeviceRenderOptions */ public static DeviceRenderOptions fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DeviceRenderOptions.class); } -/** - * Convert an instance of DeviceRenderOptions to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DeviceRenderOptions to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/DonationRequest.java b/src/main/java/com/adyen/model/payment/DonationRequest.java index 8ba52267c..994521ff8 100644 --- a/src/main/java/com/adyen/model/payment/DonationRequest.java +++ b/src/main/java/com/adyen/model/payment/DonationRequest.java @@ -2,33 +2,22 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.payment.Amount; -import com.adyen.model.payment.PlatformChargebackLogic; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * DonationRequest - */ +/** DonationRequest */ @JsonPropertyOrder({ DonationRequest.JSON_PROPERTY_DONATION_ACCOUNT, DonationRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, @@ -37,7 +26,6 @@ DonationRequest.JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC, DonationRequest.JSON_PROPERTY_REFERENCE }) - public class DonationRequest { public static final String JSON_PROPERTY_DONATION_ACCOUNT = "donationAccount"; private String donationAccount; @@ -57,8 +45,7 @@ public class DonationRequest { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public DonationRequest() { - } + public DonationRequest() {} /** * The Adyen account name of the charity. @@ -73,6 +60,7 @@ public DonationRequest donationAccount(String donationAccount) { /** * The Adyen account name of the charity. + * * @return donationAccount The Adyen account name of the charity. */ @JsonProperty(JSON_PROPERTY_DONATION_ACCOUNT) @@ -105,6 +93,7 @@ public DonationRequest merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. + * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -127,7 +116,7 @@ public void setMerchantAccount(String merchantAccount) { /** * modificationAmount * - * @param modificationAmount + * @param modificationAmount * @return the current {@code DonationRequest} instance, allowing for method chaining */ public DonationRequest modificationAmount(Amount modificationAmount) { @@ -137,7 +126,8 @@ public DonationRequest modificationAmount(Amount modificationAmount) { /** * Get modificationAmount - * @return modificationAmount + * + * @return modificationAmount */ @JsonProperty(JSON_PROPERTY_MODIFICATION_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,7 +138,7 @@ public Amount getModificationAmount() { /** * modificationAmount * - * @param modificationAmount + * @param modificationAmount */ @JsonProperty(JSON_PROPERTY_MODIFICATION_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -157,9 +147,11 @@ public void setModificationAmount(Amount modificationAmount) { } /** - * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * + * authorisation response * authorisation notification * - * @param originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * @param originalReference The original pspReference of the payment to modify. This reference is + * returned in: * authorisation response * authorisation notification * @return the current {@code DonationRequest} instance, allowing for method chaining */ public DonationRequest originalReference(String originalReference) { @@ -168,8 +160,11 @@ public DonationRequest originalReference(String originalReference) { } /** - * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification - * @return originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * + * authorisation response * authorisation notification + * + * @return originalReference The original pspReference of the payment to modify. This reference is + * returned in: * authorisation response * authorisation notification */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,9 +173,11 @@ public String getOriginalReference() { } /** - * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * + * authorisation response * authorisation notification * - * @param originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * @param originalReference The original pspReference of the payment to modify. This reference is + * returned in: * authorisation response * authorisation notification */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,7 +188,7 @@ public void setOriginalReference(String originalReference) { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic * @return the current {@code DonationRequest} instance, allowing for method chaining */ public DonationRequest platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) { @@ -201,7 +198,8 @@ public DonationRequest platformChargebackLogic(PlatformChargebackLogic platformC /** * Get platformChargebackLogic - * @return platformChargebackLogic + * + * @return platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -212,7 +210,7 @@ public PlatformChargebackLogic getPlatformChargebackLogic() { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,9 +219,11 @@ public void setPlatformChargebackLogic(PlatformChargebackLogic platformChargebac } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in + * reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in + * Customer Area and in reports. Maximum length: 80 characters. * @return the current {@code DonationRequest} instance, allowing for method chaining */ public DonationRequest reference(String reference) { @@ -232,8 +232,11 @@ public DonationRequest reference(String reference) { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. - * @return reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in + * reports. Maximum length: 80 characters. + * + * @return reference Your reference for the payment modification. This reference is visible in + * Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,9 +245,11 @@ public String getReference() { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in + * reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in + * Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,9 +257,7 @@ public void setReference(String reference) { this.reference = reference; } - /** - * Return true if this DonationRequest object is equal to o. - */ + /** Return true if this DonationRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -264,17 +267,23 @@ public boolean equals(Object o) { return false; } DonationRequest donationRequest = (DonationRequest) o; - return Objects.equals(this.donationAccount, donationRequest.donationAccount) && - Objects.equals(this.merchantAccount, donationRequest.merchantAccount) && - Objects.equals(this.modificationAmount, donationRequest.modificationAmount) && - Objects.equals(this.originalReference, donationRequest.originalReference) && - Objects.equals(this.platformChargebackLogic, donationRequest.platformChargebackLogic) && - Objects.equals(this.reference, donationRequest.reference); + return Objects.equals(this.donationAccount, donationRequest.donationAccount) + && Objects.equals(this.merchantAccount, donationRequest.merchantAccount) + && Objects.equals(this.modificationAmount, donationRequest.modificationAmount) + && Objects.equals(this.originalReference, donationRequest.originalReference) + && Objects.equals(this.platformChargebackLogic, donationRequest.platformChargebackLogic) + && Objects.equals(this.reference, donationRequest.reference); } @Override public int hashCode() { - return Objects.hash(donationAccount, merchantAccount, modificationAmount, originalReference, platformChargebackLogic, reference); + return Objects.hash( + donationAccount, + merchantAccount, + modificationAmount, + originalReference, + platformChargebackLogic, + reference); } @Override @@ -285,15 +294,16 @@ public String toString() { sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" modificationAmount: ").append(toIndentedString(modificationAmount)).append("\n"); sb.append(" originalReference: ").append(toIndentedString(originalReference)).append("\n"); - sb.append(" platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n"); + sb.append(" platformChargebackLogic: ") + .append(toIndentedString(platformChargebackLogic)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -302,7 +312,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DonationRequest given an JSON string * * @param jsonString JSON string @@ -312,11 +322,12 @@ private String toIndentedString(Object o) { public static DonationRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DonationRequest.class); } -/** - * Convert an instance of DonationRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DonationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ExternalPlatform.java b/src/main/java/com/adyen/model/payment/ExternalPlatform.java index 3595d10d1..a14e838eb 100644 --- a/src/main/java/com/adyen/model/payment/ExternalPlatform.java +++ b/src/main/java/com/adyen/model/payment/ExternalPlatform.java @@ -2,37 +2,27 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ExternalPlatform - */ +/** ExternalPlatform */ @JsonPropertyOrder({ ExternalPlatform.JSON_PROPERTY_INTEGRATOR, ExternalPlatform.JSON_PROPERTY_NAME, ExternalPlatform.JSON_PROPERTY_VERSION }) - public class ExternalPlatform { public static final String JSON_PROPERTY_INTEGRATOR = "integrator"; private String integrator; @@ -43,8 +33,7 @@ public class ExternalPlatform { public static final String JSON_PROPERTY_VERSION = "version"; private String version; - public ExternalPlatform() { - } + public ExternalPlatform() {} /** * External platform integrator. @@ -59,6 +48,7 @@ public ExternalPlatform integrator(String integrator) { /** * External platform integrator. + * * @return integrator External platform integrator. */ @JsonProperty(JSON_PROPERTY_INTEGRATOR) @@ -91,6 +81,7 @@ public ExternalPlatform name(String name) { /** * Name of the field. For example, Name of External Platform. + * * @return name Name of the field. For example, Name of External Platform. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -123,6 +114,7 @@ public ExternalPlatform version(String version) { /** * Version of the field. For example, Version of External Platform. + * * @return version Version of the field. For example, Version of External Platform. */ @JsonProperty(JSON_PROPERTY_VERSION) @@ -142,9 +134,7 @@ public void setVersion(String version) { this.version = version; } - /** - * Return true if this ExternalPlatform object is equal to o. - */ + /** Return true if this ExternalPlatform object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +144,9 @@ public boolean equals(Object o) { return false; } ExternalPlatform externalPlatform = (ExternalPlatform) o; - return Objects.equals(this.integrator, externalPlatform.integrator) && - Objects.equals(this.name, externalPlatform.name) && - Objects.equals(this.version, externalPlatform.version); + return Objects.equals(this.integrator, externalPlatform.integrator) + && Objects.equals(this.name, externalPlatform.name) + && Objects.equals(this.version, externalPlatform.version); } @Override @@ -176,8 +166,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +175,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ExternalPlatform given an JSON string * * @param jsonString JSON string @@ -196,11 +185,12 @@ private String toIndentedString(Object o) { public static ExternalPlatform fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ExternalPlatform.class); } -/** - * Convert an instance of ExternalPlatform to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ExternalPlatform to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ForexQuote.java b/src/main/java/com/adyen/model/payment/ForexQuote.java index dafda310d..6294c4457 100644 --- a/src/main/java/com/adyen/model/payment/ForexQuote.java +++ b/src/main/java/com/adyen/model/payment/ForexQuote.java @@ -2,33 +2,23 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.payment.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.time.OffsetDateTime; +import java.util.*; - -/** - * ForexQuote - */ +/** ForexQuote */ @JsonPropertyOrder({ ForexQuote.JSON_PROPERTY_ACCOUNT, ForexQuote.JSON_PROPERTY_ACCOUNT_TYPE, @@ -43,7 +33,6 @@ ForexQuote.JSON_PROPERTY_TYPE, ForexQuote.JSON_PROPERTY_VALID_TILL }) - public class ForexQuote { public static final String JSON_PROPERTY_ACCOUNT = "account"; private String account; @@ -81,8 +70,7 @@ public class ForexQuote { public static final String JSON_PROPERTY_VALID_TILL = "validTill"; private OffsetDateTime validTill; - public ForexQuote() { - } + public ForexQuote() {} /** * The account name. @@ -97,6 +85,7 @@ public ForexQuote account(String account) { /** * The account name. + * * @return account The account name. */ @JsonProperty(JSON_PROPERTY_ACCOUNT) @@ -129,6 +118,7 @@ public ForexQuote accountType(String accountType) { /** * The account type. + * * @return accountType The account type. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @@ -151,7 +141,7 @@ public void setAccountType(String accountType) { /** * baseAmount * - * @param baseAmount + * @param baseAmount * @return the current {@code ForexQuote} instance, allowing for method chaining */ public ForexQuote baseAmount(Amount baseAmount) { @@ -161,7 +151,8 @@ public ForexQuote baseAmount(Amount baseAmount) { /** * Get baseAmount - * @return baseAmount + * + * @return baseAmount */ @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,7 +163,7 @@ public Amount getBaseAmount() { /** * baseAmount * - * @param baseAmount + * @param baseAmount */ @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,6 +184,7 @@ public ForexQuote basePoints(Integer basePoints) { /** * The base points. + * * @return basePoints The base points. */ @JsonProperty(JSON_PROPERTY_BASE_POINTS) @@ -215,7 +207,7 @@ public void setBasePoints(Integer basePoints) { /** * buy * - * @param buy + * @param buy * @return the current {@code ForexQuote} instance, allowing for method chaining */ public ForexQuote buy(Amount buy) { @@ -225,7 +217,8 @@ public ForexQuote buy(Amount buy) { /** * Get buy - * @return buy + * + * @return buy */ @JsonProperty(JSON_PROPERTY_BUY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -236,7 +229,7 @@ public Amount getBuy() { /** * buy * - * @param buy + * @param buy */ @JsonProperty(JSON_PROPERTY_BUY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -247,7 +240,7 @@ public void setBuy(Amount buy) { /** * interbank * - * @param interbank + * @param interbank * @return the current {@code ForexQuote} instance, allowing for method chaining */ public ForexQuote interbank(Amount interbank) { @@ -257,7 +250,8 @@ public ForexQuote interbank(Amount interbank) { /** * Get interbank - * @return interbank + * + * @return interbank */ @JsonProperty(JSON_PROPERTY_INTERBANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -268,7 +262,7 @@ public Amount getInterbank() { /** * interbank * - * @param interbank + * @param interbank */ @JsonProperty(JSON_PROPERTY_INTERBANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -289,6 +283,7 @@ public ForexQuote reference(String reference) { /** * The reference assigned to the forex quote request. + * * @return reference The reference assigned to the forex quote request. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -311,7 +306,7 @@ public void setReference(String reference) { /** * sell * - * @param sell + * @param sell * @return the current {@code ForexQuote} instance, allowing for method chaining */ public ForexQuote sell(Amount sell) { @@ -321,7 +316,8 @@ public ForexQuote sell(Amount sell) { /** * Get sell - * @return sell + * + * @return sell */ @JsonProperty(JSON_PROPERTY_SELL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -332,7 +328,7 @@ public Amount getSell() { /** * sell * - * @param sell + * @param sell */ @JsonProperty(JSON_PROPERTY_SELL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -353,6 +349,7 @@ public ForexQuote signature(String signature) { /** * The signature to validate the integrity. + * * @return signature The signature to validate the integrity. */ @JsonProperty(JSON_PROPERTY_SIGNATURE) @@ -385,6 +382,7 @@ public ForexQuote source(String source) { /** * The source of the forex quote. + * * @return source The source of the forex quote. */ @JsonProperty(JSON_PROPERTY_SOURCE) @@ -417,6 +415,7 @@ public ForexQuote type(String type) { /** * The type of forex. + * * @return type The type of forex. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -449,6 +448,7 @@ public ForexQuote validTill(OffsetDateTime validTill) { /** * The date until which the forex quote is valid. + * * @return validTill The date until which the forex quote is valid. */ @JsonProperty(JSON_PROPERTY_VALID_TILL) @@ -468,9 +468,7 @@ public void setValidTill(OffsetDateTime validTill) { this.validTill = validTill; } - /** - * Return true if this ForexQuote object is equal to o. - */ + /** Return true if this ForexQuote object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -480,23 +478,35 @@ public boolean equals(Object o) { return false; } ForexQuote forexQuote = (ForexQuote) o; - return Objects.equals(this.account, forexQuote.account) && - Objects.equals(this.accountType, forexQuote.accountType) && - Objects.equals(this.baseAmount, forexQuote.baseAmount) && - Objects.equals(this.basePoints, forexQuote.basePoints) && - Objects.equals(this.buy, forexQuote.buy) && - Objects.equals(this.interbank, forexQuote.interbank) && - Objects.equals(this.reference, forexQuote.reference) && - Objects.equals(this.sell, forexQuote.sell) && - Objects.equals(this.signature, forexQuote.signature) && - Objects.equals(this.source, forexQuote.source) && - Objects.equals(this.type, forexQuote.type) && - Objects.equals(this.validTill, forexQuote.validTill); + return Objects.equals(this.account, forexQuote.account) + && Objects.equals(this.accountType, forexQuote.accountType) + && Objects.equals(this.baseAmount, forexQuote.baseAmount) + && Objects.equals(this.basePoints, forexQuote.basePoints) + && Objects.equals(this.buy, forexQuote.buy) + && Objects.equals(this.interbank, forexQuote.interbank) + && Objects.equals(this.reference, forexQuote.reference) + && Objects.equals(this.sell, forexQuote.sell) + && Objects.equals(this.signature, forexQuote.signature) + && Objects.equals(this.source, forexQuote.source) + && Objects.equals(this.type, forexQuote.type) + && Objects.equals(this.validTill, forexQuote.validTill); } @Override public int hashCode() { - return Objects.hash(account, accountType, baseAmount, basePoints, buy, interbank, reference, sell, signature, source, type, validTill); + return Objects.hash( + account, + accountType, + baseAmount, + basePoints, + buy, + interbank, + reference, + sell, + signature, + source, + type, + validTill); } @Override @@ -520,8 +530,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -530,7 +539,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ForexQuote given an JSON string * * @param jsonString JSON string @@ -540,11 +549,12 @@ private String toIndentedString(Object o) { public static ForexQuote fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ForexQuote.class); } -/** - * Convert an instance of ForexQuote to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ForexQuote to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/FraudCheckResult.java b/src/main/java/com/adyen/model/payment/FraudCheckResult.java index fdffac260..b07bd0e82 100644 --- a/src/main/java/com/adyen/model/payment/FraudCheckResult.java +++ b/src/main/java/com/adyen/model/payment/FraudCheckResult.java @@ -2,37 +2,27 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * FraudCheckResult - */ +/** FraudCheckResult */ @JsonPropertyOrder({ FraudCheckResult.JSON_PROPERTY_ACCOUNT_SCORE, FraudCheckResult.JSON_PROPERTY_CHECK_ID, FraudCheckResult.JSON_PROPERTY_NAME }) - public class FraudCheckResult { public static final String JSON_PROPERTY_ACCOUNT_SCORE = "accountScore"; private Integer accountScore; @@ -43,8 +33,7 @@ public class FraudCheckResult { public static final String JSON_PROPERTY_NAME = "name"; private String name; - public FraudCheckResult() { - } + public FraudCheckResult() {} /** * The fraud score generated by the risk check. @@ -59,6 +48,7 @@ public FraudCheckResult accountScore(Integer accountScore) { /** * The fraud score generated by the risk check. + * * @return accountScore The fraud score generated by the risk check. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_SCORE) @@ -91,6 +81,7 @@ public FraudCheckResult checkId(Integer checkId) { /** * The ID of the risk check. + * * @return checkId The ID of the risk check. */ @JsonProperty(JSON_PROPERTY_CHECK_ID) @@ -123,6 +114,7 @@ public FraudCheckResult name(String name) { /** * The name of the risk check. + * * @return name The name of the risk check. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -142,9 +134,7 @@ public void setName(String name) { this.name = name; } - /** - * Return true if this FraudCheckResult object is equal to o. - */ + /** Return true if this FraudCheckResult object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +144,9 @@ public boolean equals(Object o) { return false; } FraudCheckResult fraudCheckResult = (FraudCheckResult) o; - return Objects.equals(this.accountScore, fraudCheckResult.accountScore) && - Objects.equals(this.checkId, fraudCheckResult.checkId) && - Objects.equals(this.name, fraudCheckResult.name); + return Objects.equals(this.accountScore, fraudCheckResult.accountScore) + && Objects.equals(this.checkId, fraudCheckResult.checkId) + && Objects.equals(this.name, fraudCheckResult.name); } @Override @@ -176,8 +166,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +175,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of FraudCheckResult given an JSON string * * @param jsonString JSON string @@ -196,11 +185,12 @@ private String toIndentedString(Object o) { public static FraudCheckResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, FraudCheckResult.class); } -/** - * Convert an instance of FraudCheckResult to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of FraudCheckResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/FraudCheckResultWrapper.java b/src/main/java/com/adyen/model/payment/FraudCheckResultWrapper.java index 4a0579987..841a7f724 100644 --- a/src/main/java/com/adyen/model/payment/FraudCheckResultWrapper.java +++ b/src/main/java/com/adyen/model/payment/FraudCheckResultWrapper.java @@ -2,47 +2,33 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.payment.FraudCheckResult; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * FraudCheckResultWrapper - */ -@JsonPropertyOrder({ - FraudCheckResultWrapper.JSON_PROPERTY_FRAUD_CHECK_RESULT -}) - +/** FraudCheckResultWrapper */ +@JsonPropertyOrder({FraudCheckResultWrapper.JSON_PROPERTY_FRAUD_CHECK_RESULT}) public class FraudCheckResultWrapper { public static final String JSON_PROPERTY_FRAUD_CHECK_RESULT = "FraudCheckResult"; private FraudCheckResult fraudCheckResult; - public FraudCheckResultWrapper() { - } + public FraudCheckResultWrapper() {} /** * fraudCheckResult * - * @param fraudCheckResult + * @param fraudCheckResult * @return the current {@code FraudCheckResultWrapper} instance, allowing for method chaining */ public FraudCheckResultWrapper fraudCheckResult(FraudCheckResult fraudCheckResult) { @@ -52,7 +38,8 @@ public FraudCheckResultWrapper fraudCheckResult(FraudCheckResult fraudCheckResul /** * Get fraudCheckResult - * @return fraudCheckResult + * + * @return fraudCheckResult */ @JsonProperty(JSON_PROPERTY_FRAUD_CHECK_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,7 +50,7 @@ public FraudCheckResult getFraudCheckResult() { /** * fraudCheckResult * - * @param fraudCheckResult + * @param fraudCheckResult */ @JsonProperty(JSON_PROPERTY_FRAUD_CHECK_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,9 +58,7 @@ public void setFraudCheckResult(FraudCheckResult fraudCheckResult) { this.fraudCheckResult = fraudCheckResult; } - /** - * Return true if this FraudCheckResultWrapper object is equal to o. - */ + /** Return true if this FraudCheckResultWrapper object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -101,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -111,21 +95,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of FraudCheckResultWrapper given an JSON string * * @param jsonString JSON string * @return An instance of FraudCheckResultWrapper - * @throws JsonProcessingException if the JSON string is invalid with respect to FraudCheckResultWrapper + * @throws JsonProcessingException if the JSON string is invalid with respect to + * FraudCheckResultWrapper */ public static FraudCheckResultWrapper fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, FraudCheckResultWrapper.class); } -/** - * Convert an instance of FraudCheckResultWrapper to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of FraudCheckResultWrapper to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/FraudResult.java b/src/main/java/com/adyen/model/payment/FraudResult.java index 50dc8a327..11e1153ee 100644 --- a/src/main/java/com/adyen/model/payment/FraudResult.java +++ b/src/main/java/com/adyen/model/payment/FraudResult.java @@ -2,39 +2,25 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.payment.FraudCheckResultWrapper; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * FraudResult - */ -@JsonPropertyOrder({ - FraudResult.JSON_PROPERTY_ACCOUNT_SCORE, - FraudResult.JSON_PROPERTY_RESULTS -}) - +/** FraudResult */ +@JsonPropertyOrder({FraudResult.JSON_PROPERTY_ACCOUNT_SCORE, FraudResult.JSON_PROPERTY_RESULTS}) public class FraudResult { public static final String JSON_PROPERTY_ACCOUNT_SCORE = "accountScore"; private Integer accountScore; @@ -42,8 +28,7 @@ public class FraudResult { public static final String JSON_PROPERTY_RESULTS = "results"; private List results; - public FraudResult() { - } + public FraudResult() {} /** * The total fraud score generated by the risk checks. @@ -58,6 +43,7 @@ public FraudResult accountScore(Integer accountScore) { /** * The total fraud score generated by the risk checks. + * * @return accountScore The total fraud score generated by the risk checks. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_SCORE) @@ -98,6 +84,7 @@ public FraudResult addResultsItem(FraudCheckResultWrapper resultsItem) { /** * The result of the individual risk checks. + * * @return results The result of the individual risk checks. */ @JsonProperty(JSON_PROPERTY_RESULTS) @@ -117,9 +104,7 @@ public void setResults(List results) { this.results = results; } - /** - * Return true if this FraudResult object is equal to o. - */ + /** Return true if this FraudResult object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -129,8 +114,8 @@ public boolean equals(Object o) { return false; } FraudResult fraudResult = (FraudResult) o; - return Objects.equals(this.accountScore, fraudResult.accountScore) && - Objects.equals(this.results, fraudResult.results); + return Objects.equals(this.accountScore, fraudResult.accountScore) + && Objects.equals(this.results, fraudResult.results); } @Override @@ -149,8 +134,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -159,7 +143,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of FraudResult given an JSON string * * @param jsonString JSON string @@ -169,11 +153,12 @@ private String toIndentedString(Object o) { public static FraudResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, FraudResult.class); } -/** - * Convert an instance of FraudResult to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of FraudResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/FundDestination.java b/src/main/java/com/adyen/model/payment/FundDestination.java index baef69d3a..580dd2371 100644 --- a/src/main/java/com/adyen/model/payment/FundDestination.java +++ b/src/main/java/com/adyen/model/payment/FundDestination.java @@ -2,37 +2,24 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.payment.Address; -import com.adyen.model.payment.Card; -import com.adyen.model.payment.Name; -import com.adyen.model.payment.SubMerchant; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.HashMap; +import java.util.Map; - -/** - * FundDestination - */ +/** FundDestination */ @JsonPropertyOrder({ FundDestination.JSON_PROPERTY_I_B_A_N, FundDestination.JSON_PROPERTY_ADDITIONAL_DATA, @@ -46,7 +33,6 @@ FundDestination.JSON_PROPERTY_TELEPHONE_NUMBER, FundDestination.JSON_PROPERTY_WALLET_PURPOSE }) - public class FundDestination { public static final String JSON_PROPERTY_I_B_A_N = "IBAN"; private String IBAN; @@ -60,7 +46,8 @@ public class FundDestination { public static final String JSON_PROPERTY_CARD = "card"; private Card card; - public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = "selectedRecurringDetailReference"; + public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = + "selectedRecurringDetailReference"; private String selectedRecurringDetailReference; public static final String JSON_PROPERTY_SHOPPER_EMAIL = "shopperEmail"; @@ -81,8 +68,7 @@ public class FundDestination { public static final String JSON_PROPERTY_WALLET_PURPOSE = "walletPurpose"; private String walletPurpose; - public FundDestination() { - } + public FundDestination() {} /** * Bank Account Number of the recipient @@ -97,6 +83,7 @@ public FundDestination IBAN(String IBAN) { /** * Bank Account Number of the recipient + * * @return IBAN Bank Account Number of the recipient */ @JsonProperty(JSON_PROPERTY_I_B_A_N) @@ -119,7 +106,8 @@ public void setIBAN(String IBAN) { /** * a map of name/value pairs for passing in additional/industry-specific data * - * @param additionalData a map of name/value pairs for passing in additional/industry-specific data + * @param additionalData a map of name/value pairs for passing in additional/industry-specific + * data * @return the current {@code FundDestination} instance, allowing for method chaining */ public FundDestination additionalData(Map additionalData) { @@ -137,7 +125,9 @@ public FundDestination putAdditionalDataItem(String key, String additionalDataIt /** * a map of name/value pairs for passing in additional/industry-specific data - * @return additionalData a map of name/value pairs for passing in additional/industry-specific data + * + * @return additionalData a map of name/value pairs for passing in additional/industry-specific + * data */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,7 +138,8 @@ public Map getAdditionalData() { /** * a map of name/value pairs for passing in additional/industry-specific data * - * @param additionalData a map of name/value pairs for passing in additional/industry-specific data + * @param additionalData a map of name/value pairs for passing in additional/industry-specific + * data */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,7 +150,7 @@ public void setAdditionalData(Map additionalData) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code FundDestination} instance, allowing for method chaining */ public FundDestination billingAddress(Address billingAddress) { @@ -169,7 +160,8 @@ public FundDestination billingAddress(Address billingAddress) { /** * Get billingAddress - * @return billingAddress + * + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -180,7 +172,7 @@ public Address getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,7 +183,7 @@ public void setBillingAddress(Address billingAddress) { /** * card * - * @param card + * @param card * @return the current {@code FundDestination} instance, allowing for method chaining */ public FundDestination card(Card card) { @@ -201,7 +193,8 @@ public FundDestination card(Card card) { /** * Get card - * @return card + * + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -212,7 +205,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,9 +214,12 @@ public void setCard(Card card) { } /** - * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value + * `LATEST` can be used to select the most recently stored recurring detail. * - * @param selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * @param selectedRecurringDetailReference The `recurringDetailReference` you want to + * use for this payment. The value `LATEST` can be used to select the most recently + * stored recurring detail. * @return the current {@code FundDestination} instance, allowing for method chaining */ public FundDestination selectedRecurringDetailReference(String selectedRecurringDetailReference) { @@ -232,8 +228,12 @@ public FundDestination selectedRecurringDetailReference(String selectedRecurring } /** - * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. - * @return selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value + * `LATEST` can be used to select the most recently stored recurring detail. + * + * @return selectedRecurringDetailReference The `recurringDetailReference` you want to + * use for this payment. The value `LATEST` can be used to select the most recently + * stored recurring detail. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,9 +242,12 @@ public String getSelectedRecurringDetailReference() { } /** - * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value + * `LATEST` can be used to select the most recently stored recurring detail. * - * @param selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * @param selectedRecurringDetailReference The `recurringDetailReference` you want to + * use for this payment. The value `LATEST` can be used to select the most recently + * stored recurring detail. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -265,6 +268,7 @@ public FundDestination shopperEmail(String shopperEmail) { /** * the email address of the person + * * @return shopperEmail the email address of the person */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -287,7 +291,7 @@ public void setShopperEmail(String shopperEmail) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code FundDestination} instance, allowing for method chaining */ public FundDestination shopperName(Name shopperName) { @@ -297,7 +301,8 @@ public FundDestination shopperName(Name shopperName) { /** * Get shopperName - * @return shopperName + * + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -308,7 +313,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -317,9 +322,15 @@ public void setShopperName(Name shopperName) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example + * user ID or account ID. The value is case-sensitive and must be at least three characters. > + * Your reference must not include personally identifiable information (PII) such as name or email + * address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify + * this shopper, for example user ID or account ID. The value is case-sensitive and must be at + * least three characters. > Your reference must not include personally identifiable + * information (PII) such as name or email address. * @return the current {@code FundDestination} instance, allowing for method chaining */ public FundDestination shopperReference(String shopperReference) { @@ -328,8 +339,15 @@ public FundDestination shopperReference(String shopperReference) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. - * @return shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example + * user ID or account ID. The value is case-sensitive and must be at least three characters. > + * Your reference must not include personally identifiable information (PII) such as name or email + * address. + * + * @return shopperReference Required for recurring payments. Your reference to uniquely identify + * this shopper, for example user ID or account ID. The value is case-sensitive and must be at + * least three characters. > Your reference must not include personally identifiable + * information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -338,9 +356,15 @@ public String getShopperReference() { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example + * user ID or account ID. The value is case-sensitive and must be at least three characters. > + * Your reference must not include personally identifiable information (PII) such as name or email + * address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify + * this shopper, for example user ID or account ID. The value is case-sensitive and must be at + * least three characters. > Your reference must not include personally identifiable + * information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -351,7 +375,7 @@ public void setShopperReference(String shopperReference) { /** * subMerchant * - * @param subMerchant + * @param subMerchant * @return the current {@code FundDestination} instance, allowing for method chaining */ public FundDestination subMerchant(SubMerchant subMerchant) { @@ -361,7 +385,8 @@ public FundDestination subMerchant(SubMerchant subMerchant) { /** * Get subMerchant - * @return subMerchant + * + * @return subMerchant */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -372,7 +397,7 @@ public SubMerchant getSubMerchant() { /** * subMerchant * - * @param subMerchant + * @param subMerchant */ @JsonProperty(JSON_PROPERTY_SUB_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -393,6 +418,7 @@ public FundDestination telephoneNumber(String telephoneNumber) { /** * the telephone number of the person + * * @return telephoneNumber the telephone number of the person */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @@ -425,6 +451,7 @@ public FundDestination walletPurpose(String walletPurpose) { /** * The purpose of a digital wallet transaction. + * * @return walletPurpose The purpose of a digital wallet transaction. */ @JsonProperty(JSON_PROPERTY_WALLET_PURPOSE) @@ -444,9 +471,7 @@ public void setWalletPurpose(String walletPurpose) { this.walletPurpose = walletPurpose; } - /** - * Return true if this FundDestination object is equal to o. - */ + /** Return true if this FundDestination object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -456,22 +481,34 @@ public boolean equals(Object o) { return false; } FundDestination fundDestination = (FundDestination) o; - return Objects.equals(this.IBAN, fundDestination.IBAN) && - Objects.equals(this.additionalData, fundDestination.additionalData) && - Objects.equals(this.billingAddress, fundDestination.billingAddress) && - Objects.equals(this.card, fundDestination.card) && - Objects.equals(this.selectedRecurringDetailReference, fundDestination.selectedRecurringDetailReference) && - Objects.equals(this.shopperEmail, fundDestination.shopperEmail) && - Objects.equals(this.shopperName, fundDestination.shopperName) && - Objects.equals(this.shopperReference, fundDestination.shopperReference) && - Objects.equals(this.subMerchant, fundDestination.subMerchant) && - Objects.equals(this.telephoneNumber, fundDestination.telephoneNumber) && - Objects.equals(this.walletPurpose, fundDestination.walletPurpose); + return Objects.equals(this.IBAN, fundDestination.IBAN) + && Objects.equals(this.additionalData, fundDestination.additionalData) + && Objects.equals(this.billingAddress, fundDestination.billingAddress) + && Objects.equals(this.card, fundDestination.card) + && Objects.equals( + this.selectedRecurringDetailReference, fundDestination.selectedRecurringDetailReference) + && Objects.equals(this.shopperEmail, fundDestination.shopperEmail) + && Objects.equals(this.shopperName, fundDestination.shopperName) + && Objects.equals(this.shopperReference, fundDestination.shopperReference) + && Objects.equals(this.subMerchant, fundDestination.subMerchant) + && Objects.equals(this.telephoneNumber, fundDestination.telephoneNumber) + && Objects.equals(this.walletPurpose, fundDestination.walletPurpose); } @Override public int hashCode() { - return Objects.hash(IBAN, additionalData, billingAddress, card, selectedRecurringDetailReference, shopperEmail, shopperName, shopperReference, subMerchant, telephoneNumber, walletPurpose); + return Objects.hash( + IBAN, + additionalData, + billingAddress, + card, + selectedRecurringDetailReference, + shopperEmail, + shopperName, + shopperReference, + subMerchant, + telephoneNumber, + walletPurpose); } @Override @@ -482,7 +519,9 @@ public String toString() { sb.append(" additionalData: ").append(toIndentedString(additionalData)).append("\n"); sb.append(" billingAddress: ").append(toIndentedString(billingAddress)).append("\n"); sb.append(" card: ").append(toIndentedString(card)).append("\n"); - sb.append(" selectedRecurringDetailReference: ").append(toIndentedString(selectedRecurringDetailReference)).append("\n"); + sb.append(" selectedRecurringDetailReference: ") + .append(toIndentedString(selectedRecurringDetailReference)) + .append("\n"); sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); @@ -494,8 +533,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -504,7 +542,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of FundDestination given an JSON string * * @param jsonString JSON string @@ -514,11 +552,12 @@ private String toIndentedString(Object o) { public static FundDestination fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, FundDestination.class); } -/** - * Convert an instance of FundDestination to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of FundDestination to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/FundSource.java b/src/main/java/com/adyen/model/payment/FundSource.java index 683d94a21..ef44f3d60 100644 --- a/src/main/java/com/adyen/model/payment/FundSource.java +++ b/src/main/java/com/adyen/model/payment/FundSource.java @@ -2,36 +2,24 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.payment.Address; -import com.adyen.model.payment.Card; -import com.adyen.model.payment.Name; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.HashMap; +import java.util.Map; - -/** - * FundSource - */ +/** FundSource */ @JsonPropertyOrder({ FundSource.JSON_PROPERTY_ADDITIONAL_DATA, FundSource.JSON_PROPERTY_BILLING_ADDRESS, @@ -40,7 +28,6 @@ FundSource.JSON_PROPERTY_SHOPPER_NAME, FundSource.JSON_PROPERTY_TELEPHONE_NUMBER }) - public class FundSource { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -60,13 +47,13 @@ public class FundSource { public static final String JSON_PROPERTY_TELEPHONE_NUMBER = "telephoneNumber"; private String telephoneNumber; - public FundSource() { - } + public FundSource() {} /** * A map of name-value pairs for passing additional or industry-specific data. * - * @param additionalData A map of name-value pairs for passing additional or industry-specific data. + * @param additionalData A map of name-value pairs for passing additional or industry-specific + * data. * @return the current {@code FundSource} instance, allowing for method chaining */ public FundSource additionalData(Map additionalData) { @@ -84,7 +71,9 @@ public FundSource putAdditionalDataItem(String key, String additionalDataItem) { /** * A map of name-value pairs for passing additional or industry-specific data. - * @return additionalData A map of name-value pairs for passing additional or industry-specific data. + * + * @return additionalData A map of name-value pairs for passing additional or industry-specific + * data. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -95,7 +84,8 @@ public Map getAdditionalData() { /** * A map of name-value pairs for passing additional or industry-specific data. * - * @param additionalData A map of name-value pairs for passing additional or industry-specific data. + * @param additionalData A map of name-value pairs for passing additional or industry-specific + * data. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,7 +96,7 @@ public void setAdditionalData(Map additionalData) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code FundSource} instance, allowing for method chaining */ public FundSource billingAddress(Address billingAddress) { @@ -116,7 +106,8 @@ public FundSource billingAddress(Address billingAddress) { /** * Get billingAddress - * @return billingAddress + * + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,7 +118,7 @@ public Address getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,7 +129,7 @@ public void setBillingAddress(Address billingAddress) { /** * card * - * @param card + * @param card * @return the current {@code FundSource} instance, allowing for method chaining */ public FundSource card(Card card) { @@ -148,7 +139,8 @@ public FundSource card(Card card) { /** * Get card - * @return card + * + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,7 +151,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -180,6 +172,7 @@ public FundSource shopperEmail(String shopperEmail) { /** * Email address of the person. + * * @return shopperEmail Email address of the person. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -202,7 +195,7 @@ public void setShopperEmail(String shopperEmail) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code FundSource} instance, allowing for method chaining */ public FundSource shopperName(Name shopperName) { @@ -212,7 +205,8 @@ public FundSource shopperName(Name shopperName) { /** * Get shopperName - * @return shopperName + * + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,7 +217,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,6 +238,7 @@ public FundSource telephoneNumber(String telephoneNumber) { /** * Phone number of the person + * * @return telephoneNumber Phone number of the person */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @@ -263,9 +258,7 @@ public void setTelephoneNumber(String telephoneNumber) { this.telephoneNumber = telephoneNumber; } - /** - * Return true if this FundSource object is equal to o. - */ + /** Return true if this FundSource object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -275,17 +268,18 @@ public boolean equals(Object o) { return false; } FundSource fundSource = (FundSource) o; - return Objects.equals(this.additionalData, fundSource.additionalData) && - Objects.equals(this.billingAddress, fundSource.billingAddress) && - Objects.equals(this.card, fundSource.card) && - Objects.equals(this.shopperEmail, fundSource.shopperEmail) && - Objects.equals(this.shopperName, fundSource.shopperName) && - Objects.equals(this.telephoneNumber, fundSource.telephoneNumber); + return Objects.equals(this.additionalData, fundSource.additionalData) + && Objects.equals(this.billingAddress, fundSource.billingAddress) + && Objects.equals(this.card, fundSource.card) + && Objects.equals(this.shopperEmail, fundSource.shopperEmail) + && Objects.equals(this.shopperName, fundSource.shopperName) + && Objects.equals(this.telephoneNumber, fundSource.telephoneNumber); } @Override public int hashCode() { - return Objects.hash(additionalData, billingAddress, card, shopperEmail, shopperName, telephoneNumber); + return Objects.hash( + additionalData, billingAddress, card, shopperEmail, shopperName, telephoneNumber); } @Override @@ -303,8 +297,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -313,7 +306,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of FundSource given an JSON string * * @param jsonString JSON string @@ -323,11 +316,12 @@ private String toIndentedString(Object o) { public static FundSource fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, FundSource.class); } -/** - * Convert an instance of FundSource to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of FundSource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/Installments.java b/src/main/java/com/adyen/model/payment/Installments.java index 27fda3afe..d8be1106a 100644 --- a/src/main/java/com/adyen/model/payment/Installments.java +++ b/src/main/java/com/adyen/model/payment/Installments.java @@ -2,46 +2,43 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * Installments - */ +/** Installments */ @JsonPropertyOrder({ Installments.JSON_PROPERTY_EXTRA, Installments.JSON_PROPERTY_PLAN, Installments.JSON_PROPERTY_VALUE }) - public class Installments { public static final String JSON_PROPERTY_EXTRA = "extra"; private Integer extra; /** - * The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. + * The installment plan, used for [card installments in + * Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). + * and + * [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). + * By default, this is set to **regular**. */ public enum PlanEnum { - BONUS(String.valueOf("bonus")), BUYNOW_PAYLATER(String.valueOf("buynow_paylater")), @@ -67,7 +64,7 @@ public enum PlanEnum { private String value; PlanEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -88,7 +85,11 @@ public static PlanEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PlanEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PlanEnum.values())); + LOG.warning( + "PlanEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PlanEnum.values())); return null; } } @@ -99,13 +100,16 @@ public static PlanEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUE = "value"; private Integer value; - public Installments() { - } + public Installments() {} /** - * Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. Used for [card installments in Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) + * Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. + * Used for [card installments in + * Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) * - * @param extra Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. Used for [card installments in Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) + * @param extra Defines the bonus percentage, refund percentage or if the transaction is Buy now + * Pay later. Used for [card installments in + * Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) * @return the current {@code Installments} instance, allowing for method chaining */ public Installments extra(Integer extra) { @@ -114,8 +118,13 @@ public Installments extra(Integer extra) { } /** - * Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. Used for [card installments in Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) - * @return extra Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. Used for [card installments in Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) + * Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. + * Used for [card installments in + * Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) + * + * @return extra Defines the bonus percentage, refund percentage or if the transaction is Buy now + * Pay later. Used for [card installments in + * Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) */ @JsonProperty(JSON_PROPERTY_EXTRA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,9 +133,13 @@ public Integer getExtra() { } /** - * Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. Used for [card installments in Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) + * Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. + * Used for [card installments in + * Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) * - * @param extra Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. Used for [card installments in Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) + * @param extra Defines the bonus percentage, refund percentage or if the transaction is Buy now + * Pay later. Used for [card installments in + * Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) */ @JsonProperty(JSON_PROPERTY_EXTRA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,9 +148,17 @@ public void setExtra(Integer extra) { } /** - * The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. + * The installment plan, used for [card installments in + * Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). + * and + * [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). + * By default, this is set to **regular**. * - * @param plan The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. + * @param plan The installment plan, used for [card installments in + * Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). + * and + * [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). + * By default, this is set to **regular**. * @return the current {@code Installments} instance, allowing for method chaining */ public Installments plan(PlanEnum plan) { @@ -146,8 +167,17 @@ public Installments plan(PlanEnum plan) { } /** - * The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. - * @return plan The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. + * The installment plan, used for [card installments in + * Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). + * and + * [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). + * By default, this is set to **regular**. + * + * @return plan The installment plan, used for [card installments in + * Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). + * and + * [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). + * By default, this is set to **regular**. */ @JsonProperty(JSON_PROPERTY_PLAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,9 +186,17 @@ public PlanEnum getPlan() { } /** - * The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. + * The installment plan, used for [card installments in + * Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). + * and + * [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). + * By default, this is set to **regular**. * - * @param plan The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. + * @param plan The installment plan, used for [card installments in + * Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). + * and + * [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). + * By default, this is set to **regular**. */ @JsonProperty(JSON_PROPERTY_PLAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,9 +205,15 @@ public void setPlan(PlanEnum plan) { } /** - * Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. This value can be zero for Installments processed in Mexico. + * Defines the number of installments. Usually, the maximum allowed number of installments is + * capped. For example, it may not be possible to split a payment in more than 24 installments. + * The acquirer sets this upper limit, so its value may vary. This value can be zero for + * Installments processed in Mexico. * - * @param value Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. This value can be zero for Installments processed in Mexico. + * @param value Defines the number of installments. Usually, the maximum allowed number of + * installments is capped. For example, it may not be possible to split a payment in more than + * 24 installments. The acquirer sets this upper limit, so its value may vary. This value can + * be zero for Installments processed in Mexico. * @return the current {@code Installments} instance, allowing for method chaining */ public Installments value(Integer value) { @@ -178,8 +222,15 @@ public Installments value(Integer value) { } /** - * Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. This value can be zero for Installments processed in Mexico. - * @return value Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. This value can be zero for Installments processed in Mexico. + * Defines the number of installments. Usually, the maximum allowed number of installments is + * capped. For example, it may not be possible to split a payment in more than 24 installments. + * The acquirer sets this upper limit, so its value may vary. This value can be zero for + * Installments processed in Mexico. + * + * @return value Defines the number of installments. Usually, the maximum allowed number of + * installments is capped. For example, it may not be possible to split a payment in more than + * 24 installments. The acquirer sets this upper limit, so its value may vary. This value can + * be zero for Installments processed in Mexico. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,9 +239,15 @@ public Integer getValue() { } /** - * Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. This value can be zero for Installments processed in Mexico. + * Defines the number of installments. Usually, the maximum allowed number of installments is + * capped. For example, it may not be possible to split a payment in more than 24 installments. + * The acquirer sets this upper limit, so its value may vary. This value can be zero for + * Installments processed in Mexico. * - * @param value Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. This value can be zero for Installments processed in Mexico. + * @param value Defines the number of installments. Usually, the maximum allowed number of + * installments is capped. For example, it may not be possible to split a payment in more than + * 24 installments. The acquirer sets this upper limit, so its value may vary. This value can + * be zero for Installments processed in Mexico. */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,9 +255,7 @@ public void setValue(Integer value) { this.value = value; } - /** - * Return true if this Installments object is equal to o. - */ + /** Return true if this Installments object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -210,9 +265,9 @@ public boolean equals(Object o) { return false; } Installments installments = (Installments) o; - return Objects.equals(this.extra, installments.extra) && - Objects.equals(this.plan, installments.plan) && - Objects.equals(this.value, installments.value); + return Objects.equals(this.extra, installments.extra) + && Objects.equals(this.plan, installments.plan) + && Objects.equals(this.value, installments.value); } @Override @@ -232,8 +287,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -242,7 +296,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Installments given an JSON string * * @param jsonString JSON string @@ -252,11 +306,12 @@ private String toIndentedString(Object o) { public static Installments fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Installments.class); } -/** - * Convert an instance of Installments to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Installments to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/JSON.java b/src/main/java/com/adyen/model/payment/JSON.java index 0cad79f99..da7759d75 100644 --- a/src/main/java/com/adyen/model/payment/JSON.java +++ b/src/main/java/com/adyen/model/payment/JSON.java @@ -1,21 +1,18 @@ package com.adyen.model.payment; -import com.adyen.serializer.ByteArraySerializer; import com.adyen.serializer.ByteArrayDeserializer; +import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import com.adyen.model.payment.*; - +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -40,6 +37,7 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. + * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -56,11 +54,13 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { return mapper; } + public static ObjectMapper getMapper() { + return mapper; + } /** - * Returns the target model class that should be used to deserialize the input data. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,9 +73,7 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** - * Helper class to register the discriminator mappings. - */ + /** Helper class to register the discriminator mappings. */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -117,9 +115,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. - * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. This + * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -164,13 +162,14 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, - * so it's not possible to use the instanceof keyword. + *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so + * it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf( + Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -194,59 +193,58 @@ public static boolean isInstanceOf(Class modelClass, Object inst, Set, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); + /** A map of discriminators for all model classes. */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = + new HashMap, ClassDiscriminatorMapping>(); - /** - * A map of oneOf/anyOf descendants for each model class. - */ + /** A map of oneOf/anyOf descendants for each model class. */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator( + Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = + new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants(Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants( + Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static - { + static { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/payment/Mandate.java b/src/main/java/com/adyen/model/payment/Mandate.java index 05bcb18d9..463cfc872 100644 --- a/src/main/java/com/adyen/model/payment/Mandate.java +++ b/src/main/java/com/adyen/model/payment/Mandate.java @@ -2,31 +2,26 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * Mandate - */ +/** Mandate */ @JsonPropertyOrder({ Mandate.JSON_PROPERTY_AMOUNT, Mandate.JSON_PROPERTY_AMOUNT_RULE, @@ -38,16 +33,16 @@ Mandate.JSON_PROPERTY_REMARKS, Mandate.JSON_PROPERTY_STARTS_AT }) - public class Mandate { public static final String JSON_PROPERTY_AMOUNT = "amount"; private String amount; /** - * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`. + * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount + * can not exceed the `amount`. * **exact**: The transaction amount should be the same + * as the `amount`. */ public enum AmountRuleEnum { - MAX(String.valueOf("max")), EXACT(String.valueOf("exact")); @@ -57,7 +52,7 @@ public enum AmountRuleEnum { private String value; AmountRuleEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -78,7 +73,11 @@ public static AmountRuleEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AmountRuleEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AmountRuleEnum.values())); + LOG.warning( + "AmountRuleEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AmountRuleEnum.values())); return null; } } @@ -87,10 +86,11 @@ public static AmountRuleEnum fromValue(String value) { private AmountRuleEnum amountRule; /** - * The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date. + * The rule to specify the period, within which the recurring debit can happen, relative to the + * mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and + * on a specific date. * **after**: On and after a specific date. */ public enum BillingAttemptsRuleEnum { - ON(String.valueOf("on")), BEFORE(String.valueOf("before")), @@ -102,7 +102,7 @@ public enum BillingAttemptsRuleEnum { private String value; BillingAttemptsRuleEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -123,7 +123,11 @@ public static BillingAttemptsRuleEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("BillingAttemptsRuleEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(BillingAttemptsRuleEnum.values())); + LOG.warning( + "BillingAttemptsRuleEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(BillingAttemptsRuleEnum.values())); return null; } } @@ -141,10 +145,10 @@ public static BillingAttemptsRuleEnum fromValue(String value) { private String endsAt; /** - * The frequency with which a shopper should be charged. Possible values: **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. + * The frequency with which a shopper should be charged. Possible values: **daily**, **weekly**, + * **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. */ public enum FrequencyEnum { - ADHOC(String.valueOf("adhoc")), DAILY(String.valueOf("daily")), @@ -166,7 +170,7 @@ public enum FrequencyEnum { private String value; FrequencyEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -187,7 +191,11 @@ public static FrequencyEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FrequencyEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FrequencyEnum.values())); + LOG.warning( + "FrequencyEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FrequencyEnum.values())); return null; } } @@ -201,8 +209,7 @@ public static FrequencyEnum fromValue(String value) { public static final String JSON_PROPERTY_STARTS_AT = "startsAt"; private String startsAt; - public Mandate() { - } + public Mandate() {} /** * The billing amount (in minor units) of the recurring transactions. @@ -217,6 +224,7 @@ public Mandate amount(String amount) { /** * The billing amount (in minor units) of the recurring transactions. + * * @return amount The billing amount (in minor units) of the recurring transactions. */ @JsonProperty(JSON_PROPERTY_AMOUNT) @@ -237,9 +245,13 @@ public void setAmount(String amount) { } /** - * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`. + * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount + * can not exceed the `amount`. * **exact**: The transaction amount should be the same + * as the `amount`. * - * @param amountRule The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`. + * @param amountRule The limitation rule of the billing amount. Possible values: * **max**: The + * transaction amount can not exceed the `amount`. * **exact**: The transaction + * amount should be the same as the `amount`. * @return the current {@code Mandate} instance, allowing for method chaining */ public Mandate amountRule(AmountRuleEnum amountRule) { @@ -248,8 +260,13 @@ public Mandate amountRule(AmountRuleEnum amountRule) { } /** - * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`. - * @return amountRule The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`. + * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount + * can not exceed the `amount`. * **exact**: The transaction amount should be the same + * as the `amount`. + * + * @return amountRule The limitation rule of the billing amount. Possible values: * **max**: The + * transaction amount can not exceed the `amount`. * **exact**: The transaction + * amount should be the same as the `amount`. */ @JsonProperty(JSON_PROPERTY_AMOUNT_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -258,9 +275,13 @@ public AmountRuleEnum getAmountRule() { } /** - * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`. + * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount + * can not exceed the `amount`. * **exact**: The transaction amount should be the same + * as the `amount`. * - * @param amountRule The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`. + * @param amountRule The limitation rule of the billing amount. Possible values: * **max**: The + * transaction amount can not exceed the `amount`. * **exact**: The transaction + * amount should be the same as the `amount`. */ @JsonProperty(JSON_PROPERTY_AMOUNT_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -269,9 +290,14 @@ public void setAmountRule(AmountRuleEnum amountRule) { } /** - * The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date. + * The rule to specify the period, within which the recurring debit can happen, relative to the + * mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and + * on a specific date. * **after**: On and after a specific date. * - * @param billingAttemptsRule The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date. + * @param billingAttemptsRule The rule to specify the period, within which the recurring debit can + * happen, relative to the mandate recurring date. Possible values: * **on**: On a specific + * date. * **before**: Before and on a specific date. * **after**: On and after a specific + * date. * @return the current {@code Mandate} instance, allowing for method chaining */ public Mandate billingAttemptsRule(BillingAttemptsRuleEnum billingAttemptsRule) { @@ -280,8 +306,14 @@ public Mandate billingAttemptsRule(BillingAttemptsRuleEnum billingAttemptsRule) } /** - * The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date. - * @return billingAttemptsRule The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date. + * The rule to specify the period, within which the recurring debit can happen, relative to the + * mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and + * on a specific date. * **after**: On and after a specific date. + * + * @return billingAttemptsRule The rule to specify the period, within which the recurring debit + * can happen, relative to the mandate recurring date. Possible values: * **on**: On a + * specific date. * **before**: Before and on a specific date. * **after**: On and after a + * specific date. */ @JsonProperty(JSON_PROPERTY_BILLING_ATTEMPTS_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -290,9 +322,14 @@ public BillingAttemptsRuleEnum getBillingAttemptsRule() { } /** - * The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date. + * The rule to specify the period, within which the recurring debit can happen, relative to the + * mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and + * on a specific date. * **after**: On and after a specific date. * - * @param billingAttemptsRule The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date. + * @param billingAttemptsRule The rule to specify the period, within which the recurring debit can + * happen, relative to the mandate recurring date. Possible values: * **on**: On a specific + * date. * **before**: Before and on a specific date. * **after**: On and after a specific + * date. */ @JsonProperty(JSON_PROPERTY_BILLING_ATTEMPTS_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -301,9 +338,13 @@ public void setBillingAttemptsRule(BillingAttemptsRuleEnum billingAttemptsRule) } /** - * The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`. + * The number of the day, on which the recurring debit can happen. Should be within the same + * calendar month as the mandate recurring date. Possible values: 1-31 based on the + * `frequency`. * - * @param billingDay The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`. + * @param billingDay The number of the day, on which the recurring debit can happen. Should be + * within the same calendar month as the mandate recurring date. Possible values: 1-31 based + * on the `frequency`. * @return the current {@code Mandate} instance, allowing for method chaining */ public Mandate billingDay(String billingDay) { @@ -312,8 +353,13 @@ public Mandate billingDay(String billingDay) { } /** - * The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`. - * @return billingDay The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`. + * The number of the day, on which the recurring debit can happen. Should be within the same + * calendar month as the mandate recurring date. Possible values: 1-31 based on the + * `frequency`. + * + * @return billingDay The number of the day, on which the recurring debit can happen. Should be + * within the same calendar month as the mandate recurring date. Possible values: 1-31 based + * on the `frequency`. */ @JsonProperty(JSON_PROPERTY_BILLING_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -322,9 +368,13 @@ public String getBillingDay() { } /** - * The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`. + * The number of the day, on which the recurring debit can happen. Should be within the same + * calendar month as the mandate recurring date. Possible values: 1-31 based on the + * `frequency`. * - * @param billingDay The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`. + * @param billingDay The number of the day, on which the recurring debit can happen. Should be + * within the same calendar month as the mandate recurring date. Possible values: 1-31 based + * on the `frequency`. */ @JsonProperty(JSON_PROPERTY_BILLING_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -345,6 +395,7 @@ public Mandate count(String count) { /** * The number of transactions that can be performed within the given frequency. + * * @return count The number of transactions that can be performed within the given frequency. */ @JsonProperty(JSON_PROPERTY_COUNT) @@ -377,6 +428,7 @@ public Mandate endsAt(String endsAt) { /** * End date of the billing plan, in YYYY-MM-DD format. + * * @return endsAt End date of the billing plan, in YYYY-MM-DD format. */ @JsonProperty(JSON_PROPERTY_ENDS_AT) @@ -397,9 +449,12 @@ public void setEndsAt(String endsAt) { } /** - * The frequency with which a shopper should be charged. Possible values: **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. + * The frequency with which a shopper should be charged. Possible values: **daily**, **weekly**, + * **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. * - * @param frequency The frequency with which a shopper should be charged. Possible values: **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. + * @param frequency The frequency with which a shopper should be charged. Possible values: + * **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, + * **yearly**. * @return the current {@code Mandate} instance, allowing for method chaining */ public Mandate frequency(FrequencyEnum frequency) { @@ -408,8 +463,12 @@ public Mandate frequency(FrequencyEnum frequency) { } /** - * The frequency with which a shopper should be charged. Possible values: **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. - * @return frequency The frequency with which a shopper should be charged. Possible values: **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. + * The frequency with which a shopper should be charged. Possible values: **daily**, **weekly**, + * **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. + * + * @return frequency The frequency with which a shopper should be charged. Possible values: + * **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, + * **yearly**. */ @JsonProperty(JSON_PROPERTY_FREQUENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -418,9 +477,12 @@ public FrequencyEnum getFrequency() { } /** - * The frequency with which a shopper should be charged. Possible values: **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. + * The frequency with which a shopper should be charged. Possible values: **daily**, **weekly**, + * **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. * - * @param frequency The frequency with which a shopper should be charged. Possible values: **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. + * @param frequency The frequency with which a shopper should be charged. Possible values: + * **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, + * **yearly**. */ @JsonProperty(JSON_PROPERTY_FREQUENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -441,6 +503,7 @@ public Mandate remarks(String remarks) { /** * The message shown by UPI to the shopper on the approval screen. + * * @return remarks The message shown by UPI to the shopper on the approval screen. */ @JsonProperty(JSON_PROPERTY_REMARKS) @@ -463,7 +526,8 @@ public void setRemarks(String remarks) { /** * Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. * - * @param startsAt Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. + * @param startsAt Start date of the billing plan, in YYYY-MM-DD format. By default, the + * transaction date. * @return the current {@code Mandate} instance, allowing for method chaining */ public Mandate startsAt(String startsAt) { @@ -473,7 +537,9 @@ public Mandate startsAt(String startsAt) { /** * Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. - * @return startsAt Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. + * + * @return startsAt Start date of the billing plan, in YYYY-MM-DD format. By default, the + * transaction date. */ @JsonProperty(JSON_PROPERTY_STARTS_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -484,7 +550,8 @@ public String getStartsAt() { /** * Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. * - * @param startsAt Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. + * @param startsAt Start date of the billing plan, in YYYY-MM-DD format. By default, the + * transaction date. */ @JsonProperty(JSON_PROPERTY_STARTS_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -492,9 +559,7 @@ public void setStartsAt(String startsAt) { this.startsAt = startsAt; } - /** - * Return true if this Mandate object is equal to o. - */ + /** Return true if this Mandate object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -504,20 +569,29 @@ public boolean equals(Object o) { return false; } Mandate mandate = (Mandate) o; - return Objects.equals(this.amount, mandate.amount) && - Objects.equals(this.amountRule, mandate.amountRule) && - Objects.equals(this.billingAttemptsRule, mandate.billingAttemptsRule) && - Objects.equals(this.billingDay, mandate.billingDay) && - Objects.equals(this.count, mandate.count) && - Objects.equals(this.endsAt, mandate.endsAt) && - Objects.equals(this.frequency, mandate.frequency) && - Objects.equals(this.remarks, mandate.remarks) && - Objects.equals(this.startsAt, mandate.startsAt); + return Objects.equals(this.amount, mandate.amount) + && Objects.equals(this.amountRule, mandate.amountRule) + && Objects.equals(this.billingAttemptsRule, mandate.billingAttemptsRule) + && Objects.equals(this.billingDay, mandate.billingDay) + && Objects.equals(this.count, mandate.count) + && Objects.equals(this.endsAt, mandate.endsAt) + && Objects.equals(this.frequency, mandate.frequency) + && Objects.equals(this.remarks, mandate.remarks) + && Objects.equals(this.startsAt, mandate.startsAt); } @Override public int hashCode() { - return Objects.hash(amount, amountRule, billingAttemptsRule, billingDay, count, endsAt, frequency, remarks, startsAt); + return Objects.hash( + amount, + amountRule, + billingAttemptsRule, + billingDay, + count, + endsAt, + frequency, + remarks, + startsAt); } @Override @@ -526,7 +600,9 @@ public String toString() { sb.append("class Mandate {\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" amountRule: ").append(toIndentedString(amountRule)).append("\n"); - sb.append(" billingAttemptsRule: ").append(toIndentedString(billingAttemptsRule)).append("\n"); + sb.append(" billingAttemptsRule: ") + .append(toIndentedString(billingAttemptsRule)) + .append("\n"); sb.append(" billingDay: ").append(toIndentedString(billingDay)).append("\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" endsAt: ").append(toIndentedString(endsAt)).append("\n"); @@ -538,8 +614,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -548,7 +623,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Mandate given an JSON string * * @param jsonString JSON string @@ -558,11 +633,12 @@ private String toIndentedString(Object o) { public static Mandate fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Mandate.class); } -/** - * Convert an instance of Mandate to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Mandate to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/MerchantDevice.java b/src/main/java/com/adyen/model/payment/MerchantDevice.java index b37a3c8cb..98c112b19 100644 --- a/src/main/java/com/adyen/model/payment/MerchantDevice.java +++ b/src/main/java/com/adyen/model/payment/MerchantDevice.java @@ -2,37 +2,27 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * MerchantDevice - */ +/** MerchantDevice */ @JsonPropertyOrder({ MerchantDevice.JSON_PROPERTY_OS, MerchantDevice.JSON_PROPERTY_OS_VERSION, MerchantDevice.JSON_PROPERTY_REFERENCE }) - public class MerchantDevice { public static final String JSON_PROPERTY_OS = "os"; private String os; @@ -43,8 +33,7 @@ public class MerchantDevice { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public MerchantDevice() { - } + public MerchantDevice() {} /** * Operating system running on the merchant device. @@ -59,6 +48,7 @@ public MerchantDevice os(String os) { /** * Operating system running on the merchant device. + * * @return os Operating system running on the merchant device. */ @JsonProperty(JSON_PROPERTY_OS) @@ -91,6 +81,7 @@ public MerchantDevice osVersion(String osVersion) { /** * Version of the operating system on the merchant device. + * * @return osVersion Version of the operating system on the merchant device. */ @JsonProperty(JSON_PROPERTY_OS_VERSION) @@ -123,6 +114,7 @@ public MerchantDevice reference(String reference) { /** * Merchant device reference. + * * @return reference Merchant device reference. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -142,9 +134,7 @@ public void setReference(String reference) { this.reference = reference; } - /** - * Return true if this MerchantDevice object is equal to o. - */ + /** Return true if this MerchantDevice object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +144,9 @@ public boolean equals(Object o) { return false; } MerchantDevice merchantDevice = (MerchantDevice) o; - return Objects.equals(this.os, merchantDevice.os) && - Objects.equals(this.osVersion, merchantDevice.osVersion) && - Objects.equals(this.reference, merchantDevice.reference); + return Objects.equals(this.os, merchantDevice.os) + && Objects.equals(this.osVersion, merchantDevice.osVersion) + && Objects.equals(this.reference, merchantDevice.reference); } @Override @@ -176,8 +166,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +175,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of MerchantDevice given an JSON string * * @param jsonString JSON string @@ -196,11 +185,12 @@ private String toIndentedString(Object o) { public static MerchantDevice fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MerchantDevice.class); } -/** - * Convert an instance of MerchantDevice to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of MerchantDevice to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/MerchantRiskIndicator.java b/src/main/java/com/adyen/model/payment/MerchantRiskIndicator.java index ab3827195..7925fe38e 100644 --- a/src/main/java/com/adyen/model/payment/MerchantRiskIndicator.java +++ b/src/main/java/com/adyen/model/payment/MerchantRiskIndicator.java @@ -2,33 +2,27 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.payment.Amount; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * MerchantRiskIndicator - */ +/** MerchantRiskIndicator */ @JsonPropertyOrder({ MerchantRiskIndicator.JSON_PROPERTY_ADDRESS_MATCH, MerchantRiskIndicator.JSON_PROPERTY_DELIVERY_ADDRESS_INDICATOR, @@ -45,16 +39,16 @@ MerchantRiskIndicator.JSON_PROPERTY_REORDER_ITEMS_IND, MerchantRiskIndicator.JSON_PROPERTY_SHIP_INDICATOR }) - public class MerchantRiskIndicator { public static final String JSON_PROPERTY_ADDRESS_MATCH = "addressMatch"; private Boolean addressMatch; /** - * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` + * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * + * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * + * `digitalGoods` * `goodsNotShipped` * `other` */ public enum DeliveryAddressIndicatorEnum { - SHIPTOBILLINGADDRESS(String.valueOf("shipToBillingAddress")), SHIPTOVERIFIEDADDRESS(String.valueOf("shipToVerifiedAddress")), @@ -69,12 +63,13 @@ public enum DeliveryAddressIndicatorEnum { OTHER(String.valueOf("other")); - private static final Logger LOG = Logger.getLogger(DeliveryAddressIndicatorEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(DeliveryAddressIndicatorEnum.class.getName()); private String value; DeliveryAddressIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -95,7 +90,11 @@ public static DeliveryAddressIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("DeliveryAddressIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(DeliveryAddressIndicatorEnum.values())); + LOG.warning( + "DeliveryAddressIndicatorEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(DeliveryAddressIndicatorEnum.values())); return null; } } @@ -111,10 +110,11 @@ public static DeliveryAddressIndicatorEnum fromValue(String value) { private String deliveryEmailAddress; /** - * The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` + * The estimated delivery time for the shopper to receive the goods. Allowed values: * + * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * + * `twoOrMoreDaysShipping` */ public enum DeliveryTimeframeEnum { - ELECTRONICDELIVERY(String.valueOf("electronicDelivery")), SAMEDAYSHIPPING(String.valueOf("sameDayShipping")), @@ -128,7 +128,7 @@ public enum DeliveryTimeframeEnum { private String value; DeliveryTimeframeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -149,7 +149,11 @@ public static DeliveryTimeframeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("DeliveryTimeframeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(DeliveryTimeframeEnum.values())); + LOG.warning( + "DeliveryTimeframeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(DeliveryTimeframeEnum.values())); return null; } } @@ -184,8 +188,7 @@ public static DeliveryTimeframeEnum fromValue(String value) { public static final String JSON_PROPERTY_SHIP_INDICATOR = "shipIndicator"; private String shipIndicator; - public MerchantRiskIndicator() { - } + public MerchantRiskIndicator() {} /** * Whether the chosen delivery address is identical to the billing address. @@ -200,6 +203,7 @@ public MerchantRiskIndicator addressMatch(Boolean addressMatch) { /** * Whether the chosen delivery address is identical to the billing address. + * * @return addressMatch Whether the chosen delivery address is identical to the billing address. */ @JsonProperty(JSON_PROPERTY_ADDRESS_MATCH) @@ -220,19 +224,31 @@ public void setAddressMatch(Boolean addressMatch) { } /** - * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` + * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * + * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * + * `digitalGoods` * `goodsNotShipped` * `other` * - * @param deliveryAddressIndicator Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` + * @param deliveryAddressIndicator Indicator regarding the delivery address. Allowed values: * + * `shipToBillingAddress` * `shipToVerifiedAddress` * + * `shipToNewAddress` * `shipToStore` * `digitalGoods` * + * `goodsNotShipped` * `other` * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ - public MerchantRiskIndicator deliveryAddressIndicator(DeliveryAddressIndicatorEnum deliveryAddressIndicator) { + public MerchantRiskIndicator deliveryAddressIndicator( + DeliveryAddressIndicatorEnum deliveryAddressIndicator) { this.deliveryAddressIndicator = deliveryAddressIndicator; return this; } /** - * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` - * @return deliveryAddressIndicator Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` + * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * + * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * + * `digitalGoods` * `goodsNotShipped` * `other` + * + * @return deliveryAddressIndicator Indicator regarding the delivery address. Allowed values: * + * `shipToBillingAddress` * `shipToVerifiedAddress` * + * `shipToNewAddress` * `shipToStore` * `digitalGoods` * + * `goodsNotShipped` * `other` */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -241,9 +257,14 @@ public DeliveryAddressIndicatorEnum getDeliveryAddressIndicator() { } /** - * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` + * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * + * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * + * `digitalGoods` * `goodsNotShipped` * `other` * - * @param deliveryAddressIndicator Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` + * @param deliveryAddressIndicator Indicator regarding the delivery address. Allowed values: * + * `shipToBillingAddress` * `shipToVerifiedAddress` * + * `shipToNewAddress` * `shipToStore` * `digitalGoods` * + * `goodsNotShipped` * `other` */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -256,9 +277,7 @@ public void setDeliveryAddressIndicator(DeliveryAddressIndicatorEnum deliveryAdd * * @param deliveryEmail The delivery email address (for digital goods). * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining - * - * @deprecated since Adyen Payment API v68 - * Use `deliveryEmailAddress` instead. + * @deprecated since Adyen Payment API v68 Use `deliveryEmailAddress` instead. */ @Deprecated // deprecated since Adyen Payment API v68: Use `deliveryEmailAddress` instead. public MerchantRiskIndicator deliveryEmail(String deliveryEmail) { @@ -268,6 +287,7 @@ public MerchantRiskIndicator deliveryEmail(String deliveryEmail) { /** * The delivery email address (for digital goods). + * * @return deliveryEmail The delivery email address (for digital goods). * @deprecated // deprecated since Adyen Payment API v68: Use `deliveryEmailAddress` instead. */ @@ -282,9 +302,7 @@ public String getDeliveryEmail() { * The delivery email address (for digital goods). * * @param deliveryEmail The delivery email address (for digital goods). - * - * @deprecated since Adyen Payment API v68 - * Use `deliveryEmailAddress` instead. + * @deprecated since Adyen Payment API v68 Use `deliveryEmailAddress` instead. */ @Deprecated // deprecated since Adyen Payment API v68: Use `deliveryEmailAddress` instead. @JsonProperty(JSON_PROPERTY_DELIVERY_EMAIL) @@ -294,9 +312,11 @@ public void setDeliveryEmail(String deliveryEmail) { } /** - * For Electronic delivery, the email address to which the merchandise was delivered. Maximum length: 254 characters. + * For Electronic delivery, the email address to which the merchandise was delivered. Maximum + * length: 254 characters. * - * @param deliveryEmailAddress For Electronic delivery, the email address to which the merchandise was delivered. Maximum length: 254 characters. + * @param deliveryEmailAddress For Electronic delivery, the email address to which the merchandise + * was delivered. Maximum length: 254 characters. * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator deliveryEmailAddress(String deliveryEmailAddress) { @@ -305,8 +325,11 @@ public MerchantRiskIndicator deliveryEmailAddress(String deliveryEmailAddress) { } /** - * For Electronic delivery, the email address to which the merchandise was delivered. Maximum length: 254 characters. - * @return deliveryEmailAddress For Electronic delivery, the email address to which the merchandise was delivered. Maximum length: 254 characters. + * For Electronic delivery, the email address to which the merchandise was delivered. Maximum + * length: 254 characters. + * + * @return deliveryEmailAddress For Electronic delivery, the email address to which the + * merchandise was delivered. Maximum length: 254 characters. */ @JsonProperty(JSON_PROPERTY_DELIVERY_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -315,9 +338,11 @@ public String getDeliveryEmailAddress() { } /** - * For Electronic delivery, the email address to which the merchandise was delivered. Maximum length: 254 characters. + * For Electronic delivery, the email address to which the merchandise was delivered. Maximum + * length: 254 characters. * - * @param deliveryEmailAddress For Electronic delivery, the email address to which the merchandise was delivered. Maximum length: 254 characters. + * @param deliveryEmailAddress For Electronic delivery, the email address to which the merchandise + * was delivered. Maximum length: 254 characters. */ @JsonProperty(JSON_PROPERTY_DELIVERY_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -326,9 +351,13 @@ public void setDeliveryEmailAddress(String deliveryEmailAddress) { } /** - * The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` + * The estimated delivery time for the shopper to receive the goods. Allowed values: * + * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * + * `twoOrMoreDaysShipping` * - * @param deliveryTimeframe The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` + * @param deliveryTimeframe The estimated delivery time for the shopper to receive the goods. + * Allowed values: * `electronicDelivery` * `sameDayShipping` * + * `overnightShipping` * `twoOrMoreDaysShipping` * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator deliveryTimeframe(DeliveryTimeframeEnum deliveryTimeframe) { @@ -337,8 +366,13 @@ public MerchantRiskIndicator deliveryTimeframe(DeliveryTimeframeEnum deliveryTim } /** - * The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` - * @return deliveryTimeframe The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` + * The estimated delivery time for the shopper to receive the goods. Allowed values: * + * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * + * `twoOrMoreDaysShipping` + * + * @return deliveryTimeframe The estimated delivery time for the shopper to receive the goods. + * Allowed values: * `electronicDelivery` * `sameDayShipping` * + * `overnightShipping` * `twoOrMoreDaysShipping` */ @JsonProperty(JSON_PROPERTY_DELIVERY_TIMEFRAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -347,9 +381,13 @@ public DeliveryTimeframeEnum getDeliveryTimeframe() { } /** - * The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` + * The estimated delivery time for the shopper to receive the goods. Allowed values: * + * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * + * `twoOrMoreDaysShipping` * - * @param deliveryTimeframe The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` + * @param deliveryTimeframe The estimated delivery time for the shopper to receive the goods. + * Allowed values: * `electronicDelivery` * `sameDayShipping` * + * `overnightShipping` * `twoOrMoreDaysShipping` */ @JsonProperty(JSON_PROPERTY_DELIVERY_TIMEFRAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -360,7 +398,7 @@ public void setDeliveryTimeframe(DeliveryTimeframeEnum deliveryTimeframe) { /** * giftCardAmount * - * @param giftCardAmount + * @param giftCardAmount * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator giftCardAmount(Amount giftCardAmount) { @@ -370,7 +408,8 @@ public MerchantRiskIndicator giftCardAmount(Amount giftCardAmount) { /** * Get giftCardAmount - * @return giftCardAmount + * + * @return giftCardAmount */ @JsonProperty(JSON_PROPERTY_GIFT_CARD_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -381,7 +420,7 @@ public Amount getGiftCardAmount() { /** * giftCardAmount * - * @param giftCardAmount + * @param giftCardAmount */ @JsonProperty(JSON_PROPERTY_GIFT_CARD_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -390,9 +429,11 @@ public void setGiftCardAmount(Amount giftCardAmount) { } /** - * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. + * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes + * purchased. * - * @param giftCardCount For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. + * @param giftCardCount For prepaid or gift card purchase, total count of individual prepaid or + * gift cards/codes purchased. * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator giftCardCount(Integer giftCardCount) { @@ -401,8 +442,11 @@ public MerchantRiskIndicator giftCardCount(Integer giftCardCount) { } /** - * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. - * @return giftCardCount For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. + * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes + * purchased. + * + * @return giftCardCount For prepaid or gift card purchase, total count of individual prepaid or + * gift cards/codes purchased. */ @JsonProperty(JSON_PROPERTY_GIFT_CARD_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -411,9 +455,11 @@ public Integer getGiftCardCount() { } /** - * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. + * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes + * purchased. * - * @param giftCardCount For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. + * @param giftCardCount For prepaid or gift card purchase, total count of individual prepaid or + * gift cards/codes purchased. */ @JsonProperty(JSON_PROPERTY_GIFT_CARD_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -422,9 +468,14 @@ public void setGiftCardCount(Integer giftCardCount) { } /** - * For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification. + * For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) + * three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo + * 3D Secure Protocol and Core Functions Specification. * - * @param giftCardCurr For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification. + * @param giftCardCurr For prepaid or gift card purchase, [ISO + * 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the + * gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core + * Functions Specification. * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator giftCardCurr(String giftCardCurr) { @@ -433,8 +484,14 @@ public MerchantRiskIndicator giftCardCurr(String giftCardCurr) { } /** - * For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification. - * @return giftCardCurr For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification. + * For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) + * three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo + * 3D Secure Protocol and Core Functions Specification. + * + * @return giftCardCurr For prepaid or gift card purchase, [ISO + * 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the + * gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core + * Functions Specification. */ @JsonProperty(JSON_PROPERTY_GIFT_CARD_CURR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -443,9 +500,14 @@ public String getGiftCardCurr() { } /** - * For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification. + * For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) + * three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo + * 3D Secure Protocol and Core Functions Specification. * - * @param giftCardCurr For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification. + * @param giftCardCurr For prepaid or gift card purchase, [ISO + * 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the + * gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core + * Functions Specification. */ @JsonProperty(JSON_PROPERTY_GIFT_CARD_CURR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -456,7 +518,8 @@ public void setGiftCardCurr(String giftCardCurr) { /** * For pre-order purchases, the expected date this product will be available to the shopper. * - * @param preOrderDate For pre-order purchases, the expected date this product will be available to the shopper. + * @param preOrderDate For pre-order purchases, the expected date this product will be available + * to the shopper. * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator preOrderDate(OffsetDateTime preOrderDate) { @@ -466,7 +529,9 @@ public MerchantRiskIndicator preOrderDate(OffsetDateTime preOrderDate) { /** * For pre-order purchases, the expected date this product will be available to the shopper. - * @return preOrderDate For pre-order purchases, the expected date this product will be available to the shopper. + * + * @return preOrderDate For pre-order purchases, the expected date this product will be available + * to the shopper. */ @JsonProperty(JSON_PROPERTY_PRE_ORDER_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -477,7 +542,8 @@ public OffsetDateTime getPreOrderDate() { /** * For pre-order purchases, the expected date this product will be available to the shopper. * - * @param preOrderDate For pre-order purchases, the expected date this product will be available to the shopper. + * @param preOrderDate For pre-order purchases, the expected date this product will be available + * to the shopper. */ @JsonProperty(JSON_PROPERTY_PRE_ORDER_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -498,6 +564,7 @@ public MerchantRiskIndicator preOrderPurchase(Boolean preOrderPurchase) { /** * Indicator for whether this transaction is for pre-ordering a product. + * * @return preOrderPurchase Indicator for whether this transaction is for pre-ordering a product. */ @JsonProperty(JSON_PROPERTY_PRE_ORDER_PURCHASE) @@ -518,9 +585,11 @@ public void setPreOrderPurchase(Boolean preOrderPurchase) { } /** - * Indicates whether Cardholder is placing an order for merchandise with a future availability or release date. + * Indicates whether Cardholder is placing an order for merchandise with a future availability or + * release date. * - * @param preOrderPurchaseInd Indicates whether Cardholder is placing an order for merchandise with a future availability or release date. + * @param preOrderPurchaseInd Indicates whether Cardholder is placing an order for merchandise + * with a future availability or release date. * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator preOrderPurchaseInd(String preOrderPurchaseInd) { @@ -529,8 +598,11 @@ public MerchantRiskIndicator preOrderPurchaseInd(String preOrderPurchaseInd) { } /** - * Indicates whether Cardholder is placing an order for merchandise with a future availability or release date. - * @return preOrderPurchaseInd Indicates whether Cardholder is placing an order for merchandise with a future availability or release date. + * Indicates whether Cardholder is placing an order for merchandise with a future availability or + * release date. + * + * @return preOrderPurchaseInd Indicates whether Cardholder is placing an order for merchandise + * with a future availability or release date. */ @JsonProperty(JSON_PROPERTY_PRE_ORDER_PURCHASE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -539,9 +611,11 @@ public String getPreOrderPurchaseInd() { } /** - * Indicates whether Cardholder is placing an order for merchandise with a future availability or release date. + * Indicates whether Cardholder is placing an order for merchandise with a future availability or + * release date. * - * @param preOrderPurchaseInd Indicates whether Cardholder is placing an order for merchandise with a future availability or release date. + * @param preOrderPurchaseInd Indicates whether Cardholder is placing an order for merchandise + * with a future availability or release date. */ @JsonProperty(JSON_PROPERTY_PRE_ORDER_PURCHASE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -552,7 +626,8 @@ public void setPreOrderPurchaseInd(String preOrderPurchaseInd) { /** * Indicator for whether the shopper has already purchased the same items in the past. * - * @param reorderItems Indicator for whether the shopper has already purchased the same items in the past. + * @param reorderItems Indicator for whether the shopper has already purchased the same items in + * the past. * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator reorderItems(Boolean reorderItems) { @@ -562,7 +637,9 @@ public MerchantRiskIndicator reorderItems(Boolean reorderItems) { /** * Indicator for whether the shopper has already purchased the same items in the past. - * @return reorderItems Indicator for whether the shopper has already purchased the same items in the past. + * + * @return reorderItems Indicator for whether the shopper has already purchased the same items in + * the past. */ @JsonProperty(JSON_PROPERTY_REORDER_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -573,7 +650,8 @@ public Boolean getReorderItems() { /** * Indicator for whether the shopper has already purchased the same items in the past. * - * @param reorderItems Indicator for whether the shopper has already purchased the same items in the past. + * @param reorderItems Indicator for whether the shopper has already purchased the same items in + * the past. */ @JsonProperty(JSON_PROPERTY_REORDER_ITEMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -584,7 +662,8 @@ public void setReorderItems(Boolean reorderItems) { /** * Indicates whether the cardholder is reordering previously purchased merchandise. * - * @param reorderItemsInd Indicates whether the cardholder is reordering previously purchased merchandise. + * @param reorderItemsInd Indicates whether the cardholder is reordering previously purchased + * merchandise. * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining */ public MerchantRiskIndicator reorderItemsInd(String reorderItemsInd) { @@ -594,7 +673,9 @@ public MerchantRiskIndicator reorderItemsInd(String reorderItemsInd) { /** * Indicates whether the cardholder is reordering previously purchased merchandise. - * @return reorderItemsInd Indicates whether the cardholder is reordering previously purchased merchandise. + * + * @return reorderItemsInd Indicates whether the cardholder is reordering previously purchased + * merchandise. */ @JsonProperty(JSON_PROPERTY_REORDER_ITEMS_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -605,7 +686,8 @@ public String getReorderItemsInd() { /** * Indicates whether the cardholder is reordering previously purchased merchandise. * - * @param reorderItemsInd Indicates whether the cardholder is reordering previously purchased merchandise. + * @param reorderItemsInd Indicates whether the cardholder is reordering previously purchased + * merchandise. */ @JsonProperty(JSON_PROPERTY_REORDER_ITEMS_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -626,6 +708,7 @@ public MerchantRiskIndicator shipIndicator(String shipIndicator) { /** * Indicates shipping method chosen for the transaction. + * * @return shipIndicator Indicates shipping method chosen for the transaction. */ @JsonProperty(JSON_PROPERTY_SHIP_INDICATOR) @@ -645,9 +728,7 @@ public void setShipIndicator(String shipIndicator) { this.shipIndicator = shipIndicator; } - /** - * Return true if this MerchantRiskIndicator object is equal to o. - */ + /** Return true if this MerchantRiskIndicator object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -657,25 +738,40 @@ public boolean equals(Object o) { return false; } MerchantRiskIndicator merchantRiskIndicator = (MerchantRiskIndicator) o; - return Objects.equals(this.addressMatch, merchantRiskIndicator.addressMatch) && - Objects.equals(this.deliveryAddressIndicator, merchantRiskIndicator.deliveryAddressIndicator) && - Objects.equals(this.deliveryEmail, merchantRiskIndicator.deliveryEmail) && - Objects.equals(this.deliveryEmailAddress, merchantRiskIndicator.deliveryEmailAddress) && - Objects.equals(this.deliveryTimeframe, merchantRiskIndicator.deliveryTimeframe) && - Objects.equals(this.giftCardAmount, merchantRiskIndicator.giftCardAmount) && - Objects.equals(this.giftCardCount, merchantRiskIndicator.giftCardCount) && - Objects.equals(this.giftCardCurr, merchantRiskIndicator.giftCardCurr) && - Objects.equals(this.preOrderDate, merchantRiskIndicator.preOrderDate) && - Objects.equals(this.preOrderPurchase, merchantRiskIndicator.preOrderPurchase) && - Objects.equals(this.preOrderPurchaseInd, merchantRiskIndicator.preOrderPurchaseInd) && - Objects.equals(this.reorderItems, merchantRiskIndicator.reorderItems) && - Objects.equals(this.reorderItemsInd, merchantRiskIndicator.reorderItemsInd) && - Objects.equals(this.shipIndicator, merchantRiskIndicator.shipIndicator); + return Objects.equals(this.addressMatch, merchantRiskIndicator.addressMatch) + && Objects.equals( + this.deliveryAddressIndicator, merchantRiskIndicator.deliveryAddressIndicator) + && Objects.equals(this.deliveryEmail, merchantRiskIndicator.deliveryEmail) + && Objects.equals(this.deliveryEmailAddress, merchantRiskIndicator.deliveryEmailAddress) + && Objects.equals(this.deliveryTimeframe, merchantRiskIndicator.deliveryTimeframe) + && Objects.equals(this.giftCardAmount, merchantRiskIndicator.giftCardAmount) + && Objects.equals(this.giftCardCount, merchantRiskIndicator.giftCardCount) + && Objects.equals(this.giftCardCurr, merchantRiskIndicator.giftCardCurr) + && Objects.equals(this.preOrderDate, merchantRiskIndicator.preOrderDate) + && Objects.equals(this.preOrderPurchase, merchantRiskIndicator.preOrderPurchase) + && Objects.equals(this.preOrderPurchaseInd, merchantRiskIndicator.preOrderPurchaseInd) + && Objects.equals(this.reorderItems, merchantRiskIndicator.reorderItems) + && Objects.equals(this.reorderItemsInd, merchantRiskIndicator.reorderItemsInd) + && Objects.equals(this.shipIndicator, merchantRiskIndicator.shipIndicator); } @Override public int hashCode() { - return Objects.hash(addressMatch, deliveryAddressIndicator, deliveryEmail, deliveryEmailAddress, deliveryTimeframe, giftCardAmount, giftCardCount, giftCardCurr, preOrderDate, preOrderPurchase, preOrderPurchaseInd, reorderItems, reorderItemsInd, shipIndicator); + return Objects.hash( + addressMatch, + deliveryAddressIndicator, + deliveryEmail, + deliveryEmailAddress, + deliveryTimeframe, + giftCardAmount, + giftCardCount, + giftCardCurr, + preOrderDate, + preOrderPurchase, + preOrderPurchaseInd, + reorderItems, + reorderItemsInd, + shipIndicator); } @Override @@ -683,16 +779,22 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MerchantRiskIndicator {\n"); sb.append(" addressMatch: ").append(toIndentedString(addressMatch)).append("\n"); - sb.append(" deliveryAddressIndicator: ").append(toIndentedString(deliveryAddressIndicator)).append("\n"); + sb.append(" deliveryAddressIndicator: ") + .append(toIndentedString(deliveryAddressIndicator)) + .append("\n"); sb.append(" deliveryEmail: ").append(toIndentedString(deliveryEmail)).append("\n"); - sb.append(" deliveryEmailAddress: ").append(toIndentedString(deliveryEmailAddress)).append("\n"); + sb.append(" deliveryEmailAddress: ") + .append(toIndentedString(deliveryEmailAddress)) + .append("\n"); sb.append(" deliveryTimeframe: ").append(toIndentedString(deliveryTimeframe)).append("\n"); sb.append(" giftCardAmount: ").append(toIndentedString(giftCardAmount)).append("\n"); sb.append(" giftCardCount: ").append(toIndentedString(giftCardCount)).append("\n"); sb.append(" giftCardCurr: ").append(toIndentedString(giftCardCurr)).append("\n"); sb.append(" preOrderDate: ").append(toIndentedString(preOrderDate)).append("\n"); sb.append(" preOrderPurchase: ").append(toIndentedString(preOrderPurchase)).append("\n"); - sb.append(" preOrderPurchaseInd: ").append(toIndentedString(preOrderPurchaseInd)).append("\n"); + sb.append(" preOrderPurchaseInd: ") + .append(toIndentedString(preOrderPurchaseInd)) + .append("\n"); sb.append(" reorderItems: ").append(toIndentedString(reorderItems)).append("\n"); sb.append(" reorderItemsInd: ").append(toIndentedString(reorderItemsInd)).append("\n"); sb.append(" shipIndicator: ").append(toIndentedString(shipIndicator)).append("\n"); @@ -701,8 +803,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -711,21 +812,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of MerchantRiskIndicator given an JSON string * * @param jsonString JSON string * @return An instance of MerchantRiskIndicator - * @throws JsonProcessingException if the JSON string is invalid with respect to MerchantRiskIndicator + * @throws JsonProcessingException if the JSON string is invalid with respect to + * MerchantRiskIndicator */ public static MerchantRiskIndicator fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MerchantRiskIndicator.class); } -/** - * Convert an instance of MerchantRiskIndicator to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of MerchantRiskIndicator to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ModificationResult.java b/src/main/java/com/adyen/model/payment/ModificationResult.java index 4fd2129e8..ac7520e2a 100644 --- a/src/main/java/com/adyen/model/payment/ModificationResult.java +++ b/src/main/java/com/adyen/model/payment/ModificationResult.java @@ -2,39 +2,33 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * ModificationResult - */ +/** ModificationResult */ @JsonPropertyOrder({ ModificationResult.JSON_PROPERTY_ADDITIONAL_DATA, ModificationResult.JSON_PROPERTY_PSP_REFERENCE, ModificationResult.JSON_PROPERTY_RESPONSE }) - public class ModificationResult { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -42,11 +36,8 @@ public class ModificationResult { public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference"; private String pspReference; - /** - * Indicates if the modification request has been received for processing. - */ + /** Indicates if the modification request has been received for processing. */ public enum ResponseEnum { - _CAPTURE_RECEIVED_(String.valueOf("[capture-received]")), _CANCEL_RECEIVED_(String.valueOf("[cancel-received]")), @@ -70,7 +61,7 @@ public enum ResponseEnum { private String value; ResponseEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -91,7 +82,11 @@ public static ResponseEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ResponseEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResponseEnum.values())); + LOG.warning( + "ResponseEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ResponseEnum.values())); return null; } } @@ -99,13 +94,14 @@ public static ResponseEnum fromValue(String value) { public static final String JSON_PROPERTY_RESPONSE = "response"; private ResponseEnum response; - public ModificationResult() { - } + public ModificationResult() {} /** - * This field contains additional data, which may be returned in a particular modification response. + * This field contains additional data, which may be returned in a particular modification + * response. * - * @param additionalData This field contains additional data, which may be returned in a particular modification response. + * @param additionalData This field contains additional data, which may be returned in a + * particular modification response. * @return the current {@code ModificationResult} instance, allowing for method chaining */ public ModificationResult additionalData(Map additionalData) { @@ -122,8 +118,11 @@ public ModificationResult putAdditionalDataItem(String key, String additionalDat } /** - * This field contains additional data, which may be returned in a particular modification response. - * @return additionalData This field contains additional data, which may be returned in a particular modification response. + * This field contains additional data, which may be returned in a particular modification + * response. + * + * @return additionalData This field contains additional data, which may be returned in a + * particular modification response. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,9 +131,11 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be returned in a particular modification response. + * This field contains additional data, which may be returned in a particular modification + * response. * - * @param additionalData This field contains additional data, which may be returned in a particular modification response. + * @param additionalData This field contains additional data, which may be returned in a + * particular modification response. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,9 +144,12 @@ public void setAdditionalData(Map additionalData) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value + * is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @param pspReference Adyen's 16-character string reference associated with the + * transaction/request. This value is globally unique; quote it when communicating with us + * about this request. * @return the current {@code ModificationResult} instance, allowing for method chaining */ public ModificationResult pspReference(String pspReference) { @@ -154,8 +158,12 @@ public ModificationResult pspReference(String pspReference) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. - * @return pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value + * is globally unique; quote it when communicating with us about this request. + * + * @return pspReference Adyen's 16-character string reference associated with the + * transaction/request. This value is globally unique; quote it when communicating with us + * about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -164,9 +172,12 @@ public String getPspReference() { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value + * is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @param pspReference Adyen's 16-character string reference associated with the + * transaction/request. This value is globally unique; quote it when communicating with us + * about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,6 +198,7 @@ public ModificationResult response(ResponseEnum response) { /** * Indicates if the modification request has been received for processing. + * * @return response Indicates if the modification request has been received for processing. */ @JsonProperty(JSON_PROPERTY_RESPONSE) @@ -206,9 +218,7 @@ public void setResponse(ResponseEnum response) { this.response = response; } - /** - * Return true if this ModificationResult object is equal to o. - */ + /** Return true if this ModificationResult object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -218,9 +228,9 @@ public boolean equals(Object o) { return false; } ModificationResult modificationResult = (ModificationResult) o; - return Objects.equals(this.additionalData, modificationResult.additionalData) && - Objects.equals(this.pspReference, modificationResult.pspReference) && - Objects.equals(this.response, modificationResult.response); + return Objects.equals(this.additionalData, modificationResult.additionalData) + && Objects.equals(this.pspReference, modificationResult.pspReference) + && Objects.equals(this.response, modificationResult.response); } @Override @@ -240,8 +250,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -250,21 +259,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ModificationResult given an JSON string * * @param jsonString JSON string * @return An instance of ModificationResult - * @throws JsonProcessingException if the JSON string is invalid with respect to ModificationResult + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ModificationResult */ public static ModificationResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ModificationResult.class); } -/** - * Convert an instance of ModificationResult to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ModificationResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/Name.java b/src/main/java/com/adyen/model/payment/Name.java index b0b72e987..26a769518 100644 --- a/src/main/java/com/adyen/model/payment/Name.java +++ b/src/main/java/com/adyen/model/payment/Name.java @@ -2,36 +2,23 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Name - */ -@JsonPropertyOrder({ - Name.JSON_PROPERTY_FIRST_NAME, - Name.JSON_PROPERTY_LAST_NAME -}) - +/** Name */ +@JsonPropertyOrder({Name.JSON_PROPERTY_FIRST_NAME, Name.JSON_PROPERTY_LAST_NAME}) public class Name { public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; private String firstName; @@ -39,8 +26,7 @@ public class Name { public static final String JSON_PROPERTY_LAST_NAME = "lastName"; private String lastName; - public Name() { - } + public Name() {} /** * The first name. @@ -55,6 +41,7 @@ public Name firstName(String firstName) { /** * The first name. + * * @return firstName The first name. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @@ -87,6 +74,7 @@ public Name lastName(String lastName) { /** * The last name. + * * @return lastName The last name. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @@ -106,9 +94,7 @@ public void setLastName(String lastName) { this.lastName = lastName; } - /** - * Return true if this Name object is equal to o. - */ + /** Return true if this Name object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +104,8 @@ public boolean equals(Object o) { return false; } Name name = (Name) o; - return Objects.equals(this.firstName, name.firstName) && - Objects.equals(this.lastName, name.lastName); + return Objects.equals(this.firstName, name.firstName) + && Objects.equals(this.lastName, name.lastName); } @Override @@ -138,8 +124,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +133,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Name given an JSON string * * @param jsonString JSON string @@ -158,11 +143,12 @@ private String toIndentedString(Object o) { public static Name fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Name.class); } -/** - * Convert an instance of Name to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Name to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/PaymentRequest.java b/src/main/java/com/adyen/model/payment/PaymentRequest.java index 9aeda3a0b..455a4acbd 100644 --- a/src/main/java/com/adyen/model/payment/PaymentRequest.java +++ b/src/main/java/com/adyen/model/payment/PaymentRequest.java @@ -2,57 +2,32 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.payment.AccountInfo; -import com.adyen.model.payment.Address; -import com.adyen.model.payment.Amount; -import com.adyen.model.payment.ApplicationInfo; -import com.adyen.model.payment.BankAccount; -import com.adyen.model.payment.BrowserInfo; -import com.adyen.model.payment.Card; -import com.adyen.model.payment.ForexQuote; -import com.adyen.model.payment.FundDestination; -import com.adyen.model.payment.FundSource; -import com.adyen.model.payment.Installments; -import com.adyen.model.payment.Mandate; -import com.adyen.model.payment.MerchantRiskIndicator; -import com.adyen.model.payment.Name; -import com.adyen.model.payment.PlatformChargebackLogic; -import com.adyen.model.payment.Recurring; -import com.adyen.model.payment.SecureRemoteCommerceCheckoutData; -import com.adyen.model.payment.Split; -import com.adyen.model.payment.ThreeDS2RequestData; -import com.adyen.model.payment.ThreeDSecureData; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.time.OffsetDateTime; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * PaymentRequest - */ +/** PaymentRequest */ @JsonPropertyOrder({ PaymentRequest.JSON_PROPERTY_ACCOUNT_INFO, PaymentRequest.JSON_PROPERTY_ADDITIONAL_AMOUNT, @@ -109,7 +84,6 @@ PaymentRequest.JSON_PROPERTY_TOTALS_GROUP, PaymentRequest.JSON_PROPERTY_TRUSTED_SHOPPER }) - public class PaymentRequest { public static final String JSON_PROPERTY_ACCOUNT_INFO = "accountInfo"; private AccountInfo accountInfo; @@ -156,11 +130,8 @@ public class PaymentRequest { public static final String JSON_PROPERTY_DEVICE_FINGERPRINT = "deviceFingerprint"; private String deviceFingerprint; - /** - * The type of the entity the payment is processed for. - */ + /** The type of the entity the payment is processed for. */ public enum EntityTypeEnum { - NATURALPERSON(String.valueOf("NaturalPerson")), COMPANYNAME(String.valueOf("CompanyName")); @@ -170,7 +141,7 @@ public enum EntityTypeEnum { private String value; EntityTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -191,7 +162,11 @@ public static EntityTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("EntityTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(EntityTypeEnum.values())); + LOG.warning( + "EntityTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(EntityTypeEnum.values())); return null; } } @@ -209,10 +184,10 @@ public static EntityTypeEnum fromValue(String value) { private FundSource fundSource; /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. */ public enum FundingSourceEnum { - CREDIT(String.valueOf("credit")), DEBIT(String.valueOf("debit")); @@ -222,7 +197,7 @@ public enum FundingSourceEnum { private String value; FundingSourceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -243,7 +218,11 @@ public static FundingSourceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FundingSourceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FundingSourceEnum.values())); + LOG.warning( + "FundingSourceEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FundingSourceEnum.values())); return null; } } @@ -254,7 +233,8 @@ public static FundingSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_INSTALLMENTS = "installments"; private Installments installments; - public static final String JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT = "localizedShopperStatement"; + public static final String JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT = + "localizedShopperStatement"; private Map localizedShopperStatement; public static final String JSON_PROPERTY_MANDATE = "mandate"; @@ -291,22 +271,30 @@ public static FundingSourceEnum fromValue(String value) { private Recurring recurring; /** - * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or + * using stored payment details. Allowed values: * `Subscription` – A transaction for a + * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a + * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – + * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. */ public enum RecurringProcessingModelEnum { - CARDONFILE(String.valueOf("CardOnFile")), SUBSCRIPTION(String.valueOf("Subscription")), UNSCHEDULEDCARDONFILE(String.valueOf("UnscheduledCardOnFile")); - private static final Logger LOG = Logger.getLogger(RecurringProcessingModelEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(RecurringProcessingModelEnum.class.getName()); private String value; RecurringProcessingModelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -327,7 +315,11 @@ public static RecurringProcessingModelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("RecurringProcessingModelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RecurringProcessingModelEnum.values())); + LOG.warning( + "RecurringProcessingModelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(RecurringProcessingModelEnum.values())); return null; } } @@ -338,13 +330,15 @@ public static RecurringProcessingModelEnum fromValue(String value) { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public static final String JSON_PROPERTY_SECURE_REMOTE_COMMERCE_CHECKOUT_DATA = "secureRemoteCommerceCheckoutData"; + public static final String JSON_PROPERTY_SECURE_REMOTE_COMMERCE_CHECKOUT_DATA = + "secureRemoteCommerceCheckoutData"; private SecureRemoteCommerceCheckoutData secureRemoteCommerceCheckoutData; public static final String JSON_PROPERTY_SELECTED_BRAND = "selectedBrand"; private String selectedBrand; - public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = "selectedRecurringDetailReference"; + public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = + "selectedRecurringDetailReference"; private String selectedRecurringDetailReference; public static final String JSON_PROPERTY_SESSION_ID = "sessionId"; @@ -357,10 +351,19 @@ public static RecurringProcessingModelEnum fromValue(String value) { private String shopperIP; /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. */ public enum ShopperInteractionEnum { - ECOMMERCE(String.valueOf("Ecommerce")), CONTAUTH(String.valueOf("ContAuth")), @@ -374,7 +377,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -395,7 +398,11 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning( + "ShopperInteractionEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -430,7 +437,8 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S2_REQUEST_DATA = "threeDS2RequestData"; private ThreeDS2RequestData threeDS2RequestData; - public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = "threeDSAuthenticationOnly"; + public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = + "threeDSAuthenticationOnly"; private Boolean threeDSAuthenticationOnly; public static final String JSON_PROPERTY_TOTALS_GROUP = "totalsGroup"; @@ -439,13 +447,12 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_TRUSTED_SHOPPER = "trustedShopper"; private Boolean trustedShopper; - public PaymentRequest() { - } + public PaymentRequest() {} /** * accountInfo * - * @param accountInfo + * @param accountInfo * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest accountInfo(AccountInfo accountInfo) { @@ -455,7 +462,8 @@ public PaymentRequest accountInfo(AccountInfo accountInfo) { /** * Get accountInfo - * @return accountInfo + * + * @return accountInfo */ @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -466,7 +474,7 @@ public AccountInfo getAccountInfo() { /** * accountInfo * - * @param accountInfo + * @param accountInfo */ @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -477,7 +485,7 @@ public void setAccountInfo(AccountInfo accountInfo) { /** * additionalAmount * - * @param additionalAmount + * @param additionalAmount * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest additionalAmount(Amount additionalAmount) { @@ -487,7 +495,8 @@ public PaymentRequest additionalAmount(Amount additionalAmount) { /** * Get additionalAmount - * @return additionalAmount + * + * @return additionalAmount */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -498,7 +507,7 @@ public Amount getAdditionalAmount() { /** * additionalAmount * - * @param additionalAmount + * @param additionalAmount */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -507,9 +516,13 @@ public void setAdditionalAmount(Amount additionalAmount) { } /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. + * The `additionalData` object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a + * particular payment request. The `additionalData` object consists of entries, each + * of which includes the key and value. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest additionalData(Map additionalData) { @@ -526,8 +539,13 @@ public PaymentRequest putAdditionalDataItem(String key, String additionalDataIte } /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. - * @return additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. + * The `additionalData` object consists of entries, each of which includes the key and + * value. + * + * @return additionalData This field contains additional data, which may be required for a + * particular payment request. The `additionalData` object consists of entries, each + * of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -536,9 +554,13 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. + * The `additionalData` object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a + * particular payment request. The `additionalData` object consists of entries, each + * of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -549,7 +571,7 @@ public void setAdditionalData(Map additionalData) { /** * amount * - * @param amount + * @param amount * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest amount(Amount amount) { @@ -559,7 +581,8 @@ public PaymentRequest amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -570,7 +593,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -581,7 +604,7 @@ public void setAmount(Amount amount) { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest applicationInfo(ApplicationInfo applicationInfo) { @@ -591,7 +614,8 @@ public PaymentRequest applicationInfo(ApplicationInfo applicationInfo) { /** * Get applicationInfo - * @return applicationInfo + * + * @return applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -602,7 +626,7 @@ public ApplicationInfo getApplicationInfo() { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -613,7 +637,7 @@ public void setApplicationInfo(ApplicationInfo applicationInfo) { /** * bankAccount * - * @param bankAccount + * @param bankAccount * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest bankAccount(BankAccount bankAccount) { @@ -623,7 +647,8 @@ public PaymentRequest bankAccount(BankAccount bankAccount) { /** * Get bankAccount - * @return bankAccount + * + * @return bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -634,7 +659,7 @@ public BankAccount getBankAccount() { /** * bankAccount * - * @param bankAccount + * @param bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -645,7 +670,7 @@ public void setBankAccount(BankAccount bankAccount) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest billingAddress(Address billingAddress) { @@ -655,7 +680,8 @@ public PaymentRequest billingAddress(Address billingAddress) { /** * Get billingAddress - * @return billingAddress + * + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -666,7 +692,7 @@ public Address getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -677,7 +703,7 @@ public void setBillingAddress(Address billingAddress) { /** * browserInfo * - * @param browserInfo + * @param browserInfo * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest browserInfo(BrowserInfo browserInfo) { @@ -687,7 +713,8 @@ public PaymentRequest browserInfo(BrowserInfo browserInfo) { /** * Get browserInfo - * @return browserInfo + * + * @return browserInfo */ @JsonProperty(JSON_PROPERTY_BROWSER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -698,7 +725,7 @@ public BrowserInfo getBrowserInfo() { /** * browserInfo * - * @param browserInfo + * @param browserInfo */ @JsonProperty(JSON_PROPERTY_BROWSER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -709,7 +736,8 @@ public void setBrowserInfo(BrowserInfo browserInfo) { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, + * specified in hours. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest captureDelayHours(Integer captureDelayHours) { @@ -719,7 +747,9 @@ public PaymentRequest captureDelayHours(Integer captureDelayHours) { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. - * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. + * + * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, + * specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -730,7 +760,8 @@ public Integer getCaptureDelayHours() { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, + * specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -741,7 +772,7 @@ public void setCaptureDelayHours(Integer captureDelayHours) { /** * card * - * @param card + * @param card * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest card(Card card) { @@ -751,7 +782,8 @@ public PaymentRequest card(Card card) { /** * Get card - * @return card + * + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -762,7 +794,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -771,9 +803,11 @@ public void setCard(Card card) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): + * YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest dateOfBirth(LocalDate dateOfBirth) { @@ -782,8 +816,11 @@ public PaymentRequest dateOfBirth(LocalDate dateOfBirth) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD - * @return dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): + * YYYY-MM-DD + * + * @return dateOfBirth The shopper's date of birth. Format + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -792,9 +829,11 @@ public LocalDate getDateOfBirth() { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): + * YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -805,7 +844,7 @@ public void setDateOfBirth(LocalDate dateOfBirth) { /** * dccQuote * - * @param dccQuote + * @param dccQuote * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest dccQuote(ForexQuote dccQuote) { @@ -815,7 +854,8 @@ public PaymentRequest dccQuote(ForexQuote dccQuote) { /** * Get dccQuote - * @return dccQuote + * + * @return dccQuote */ @JsonProperty(JSON_PROPERTY_DCC_QUOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -826,7 +866,7 @@ public ForexQuote getDccQuote() { /** * dccQuote * - * @param dccQuote + * @param dccQuote */ @JsonProperty(JSON_PROPERTY_DCC_QUOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -837,7 +877,7 @@ public void setDccQuote(ForexQuote dccQuote) { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest deliveryAddress(Address deliveryAddress) { @@ -847,7 +887,8 @@ public PaymentRequest deliveryAddress(Address deliveryAddress) { /** * Get deliveryAddress - * @return deliveryAddress + * + * @return deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -858,7 +899,7 @@ public Address getDeliveryAddress() { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -867,9 +908,13 @@ public void setDeliveryAddress(Address deliveryAddress) { } /** - * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 * - * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest deliveryDate(OffsetDateTime deliveryDate) { @@ -878,8 +923,13 @@ public PaymentRequest deliveryDate(OffsetDateTime deliveryDate) { } /** - * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 - * @return deliveryDate The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 + * + * @return deliveryDate The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 */ @JsonProperty(JSON_PROPERTY_DELIVERY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -888,9 +938,13 @@ public OffsetDateTime getDeliveryDate() { } /** - * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 * - * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 */ @JsonProperty(JSON_PROPERTY_DELIVERY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -899,9 +953,12 @@ public void setDeliveryDate(OffsetDateTime deliveryDate) { } /** - * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to + * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * - * @param deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @param deviceFingerprint A string containing the shopper's device fingerprint. For more + * information, refer to [Device + * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest deviceFingerprint(String deviceFingerprint) { @@ -910,8 +967,12 @@ public PaymentRequest deviceFingerprint(String deviceFingerprint) { } /** - * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). - * @return deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to + * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * + * @return deviceFingerprint A string containing the shopper's device fingerprint. For more + * information, refer to [Device + * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -920,9 +981,12 @@ public String getDeviceFingerprint() { } /** - * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to + * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * - * @param deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @param deviceFingerprint A string containing the shopper's device fingerprint. For more + * information, refer to [Device + * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -943,6 +1007,7 @@ public PaymentRequest entityType(EntityTypeEnum entityType) { /** * The type of the entity the payment is processed for. + * * @return entityType The type of the entity the payment is processed for. */ @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) @@ -963,9 +1028,11 @@ public void setEntityType(EntityTypeEnum entityType) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or + * negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be + * either positive or negative. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest fraudOffset(Integer fraudOffset) { @@ -974,8 +1041,11 @@ public PaymentRequest fraudOffset(Integer fraudOffset) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. - * @return fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or + * negative. + * + * @return fraudOffset An integer value that is added to the normal fraud score. The value can be + * either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -984,9 +1054,11 @@ public Integer getFraudOffset() { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or + * negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be + * either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -997,7 +1069,7 @@ public void setFraudOffset(Integer fraudOffset) { /** * fundDestination * - * @param fundDestination + * @param fundDestination * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest fundDestination(FundDestination fundDestination) { @@ -1007,7 +1079,8 @@ public PaymentRequest fundDestination(FundDestination fundDestination) { /** * Get fundDestination - * @return fundDestination + * + * @return fundDestination */ @JsonProperty(JSON_PROPERTY_FUND_DESTINATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1018,7 +1091,7 @@ public FundDestination getFundDestination() { /** * fundDestination * - * @param fundDestination + * @param fundDestination */ @JsonProperty(JSON_PROPERTY_FUND_DESTINATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1029,7 +1102,7 @@ public void setFundDestination(FundDestination fundDestination) { /** * fundSource * - * @param fundSource + * @param fundSource * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest fundSource(FundSource fundSource) { @@ -1039,7 +1112,8 @@ public PaymentRequest fundSource(FundSource fundSource) { /** * Get fundSource - * @return fundSource + * + * @return fundSource */ @JsonProperty(JSON_PROPERTY_FUND_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1050,7 +1124,7 @@ public FundSource getFundSource() { /** * fundSource * - * @param fundSource + * @param fundSource */ @JsonProperty(JSON_PROPERTY_FUND_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1059,9 +1133,12 @@ public void setFundSource(FundSource fundSource) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest fundingSource(FundingSourceEnum fundingSource) { @@ -1070,8 +1147,12 @@ public PaymentRequest fundingSource(FundingSourceEnum fundingSource) { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. - * @return fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. + * + * @return fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1080,9 +1161,12 @@ public FundingSourceEnum getFundingSource() { } /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * The funding source that should be used when multiple sources are available. For Brazilian combo + * cards, by default the funding source is credit. To use debit, set this value to **debit**. * - * @param fundingSource The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + * @param fundingSource The funding source that should be used when multiple sources are + * available. For Brazilian combo cards, by default the funding source is credit. To use + * debit, set this value to **debit**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1093,7 +1177,7 @@ public void setFundingSource(FundingSourceEnum fundingSource) { /** * installments * - * @param installments + * @param installments * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest installments(Installments installments) { @@ -1103,7 +1187,8 @@ public PaymentRequest installments(Installments installments) { /** * Get installments - * @return installments + * + * @return installments */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1114,7 +1199,7 @@ public Installments getInstallments() { /** * installments * - * @param installments + * @param installments */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1123,9 +1208,19 @@ public void setInstallments(Installments installments) { } /** - * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper + * statement in a local character set. If not supplied, left empty, or for cross-border + * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani + * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This + * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special + * characters. * Half-width or full-width characters. * - * @param localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. + * @param localizedShopperStatement The `localizedShopperStatement` field lets you use + * dynamic values for your shopper statement in a local character set. If not supplied, left + * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently + * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in + * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, + * capital letters, numbers and special characters. * Half-width or full-width characters. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest localizedShopperStatement(Map localizedShopperStatement) { @@ -1133,7 +1228,8 @@ public PaymentRequest localizedShopperStatement(Map localizedSho return this; } - public PaymentRequest putLocalizedShopperStatementItem(String key, String localizedShopperStatementItem) { + public PaymentRequest putLocalizedShopperStatementItem( + String key, String localizedShopperStatementItem) { if (this.localizedShopperStatement == null) { this.localizedShopperStatement = new HashMap<>(); } @@ -1142,8 +1238,19 @@ public PaymentRequest putLocalizedShopperStatementItem(String key, String locali } /** - * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. - * @return localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper + * statement in a local character set. If not supplied, left empty, or for cross-border + * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani + * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This + * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special + * characters. * Half-width or full-width characters. + * + * @return localizedShopperStatement The `localizedShopperStatement` field lets you use + * dynamic values for your shopper statement in a local character set. If not supplied, left + * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently + * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in + * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, + * capital letters, numbers and special characters. * Half-width or full-width characters. */ @JsonProperty(JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1152,9 +1259,19 @@ public Map getLocalizedShopperStatement() { } /** - * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper + * statement in a local character set. If not supplied, left empty, or for cross-border + * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani + * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This + * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special + * characters. * Half-width or full-width characters. * - * @param localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. + * @param localizedShopperStatement The `localizedShopperStatement` field lets you use + * dynamic values for your shopper statement in a local character set. If not supplied, left + * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently + * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in + * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, + * capital letters, numbers and special characters. * Half-width or full-width characters. */ @JsonProperty(JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1165,7 +1282,7 @@ public void setLocalizedShopperStatement(Map localizedShopperSta /** * mandate * - * @param mandate + * @param mandate * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest mandate(Mandate mandate) { @@ -1175,7 +1292,8 @@ public PaymentRequest mandate(Mandate mandate) { /** * Get mandate - * @return mandate + * + * @return mandate */ @JsonProperty(JSON_PROPERTY_MANDATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1186,7 +1304,7 @@ public Mandate getMandate() { /** * mandate * - * @param mandate + * @param mandate */ @JsonProperty(JSON_PROPERTY_MANDATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1195,9 +1313,13 @@ public void setMandate(Mandate mandate) { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a + * four-digit number, which relates to a particular market segment. This code reflects the + * predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) + * (MCC) is a four-digit number, which relates to a particular market segment. This code + * reflects the predominant activity that is conducted by the merchant. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest mcc(String mcc) { @@ -1206,8 +1328,13 @@ public PaymentRequest mcc(String mcc) { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. - * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a + * four-digit number, which relates to a particular market segment. This code reflects the + * predominant activity that is conducted by the merchant. + * + * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) + * (MCC) is a four-digit number, which relates to a particular market segment. This code + * reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1216,9 +1343,13 @@ public String getMcc() { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a + * four-digit number, which relates to a particular market segment. This code reflects the + * predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) + * (MCC) is a four-digit number, which relates to a particular market segment. This code + * reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1229,7 +1360,8 @@ public void setMcc(String mcc) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest merchantAccount(String merchantAccount) { @@ -1239,7 +1371,9 @@ public PaymentRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * @return merchantAccount The merchant account identifier, with which you want to process the transaction. + * + * @return merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1250,7 +1384,8 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1259,9 +1394,23 @@ public void setMerchantAccount(String merchantAccount) { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. - * - * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. + * order auth-rate). The reference should be unique per billing cycle. The same merchant order + * reference should never be reused after the first authorised attempt. If used, this field should + * be supplied for all incoming authorisations. > We strongly recommend you send the + * `merchantOrderReference` value to benefit from linking payment requests when + * authorisation retries take place. In addition, we recommend you provide + * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * + * @param merchantOrderReference This reference allows linking multiple transactions to each other + * for reporting purposes (i.e. order auth-rate). The reference should be unique per billing + * cycle. The same merchant order reference should never be reused after the first authorised + * attempt. If used, this field should be supplied for all incoming authorisations. > We + * strongly recommend you send the `merchantOrderReference` value to benefit from + * linking payment requests when authorisation retries take place. In addition, we recommend + * you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest merchantOrderReference(String merchantOrderReference) { @@ -1270,8 +1419,24 @@ public PaymentRequest merchantOrderReference(String merchantOrderReference) { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. - * @return merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. + * order auth-rate). The reference should be unique per billing cycle. The same merchant order + * reference should never be reused after the first authorised attempt. If used, this field should + * be supplied for all incoming authorisations. > We strongly recommend you send the + * `merchantOrderReference` value to benefit from linking payment requests when + * authorisation retries take place. In addition, we recommend you provide + * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * + * @return merchantOrderReference This reference allows linking multiple transactions to each + * other for reporting purposes (i.e. order auth-rate). The reference should be unique per + * billing cycle. The same merchant order reference should never be reused after the first + * authorised attempt. If used, this field should be supplied for all incoming authorisations. + * > We strongly recommend you send the `merchantOrderReference` value to benefit + * from linking payment requests when authorisation retries take place. In addition, we + * recommend you provide `retry.orderAttemptNumber`, + * `retry.chainAttemptNumber`, and `retry.skipRetry` values in + * `PaymentRequest.additionalData`. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1280,9 +1445,23 @@ public String getMerchantOrderReference() { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. + * order auth-rate). The reference should be unique per billing cycle. The same merchant order + * reference should never be reused after the first authorised attempt. If used, this field should + * be supplied for all incoming authorisations. > We strongly recommend you send the + * `merchantOrderReference` value to benefit from linking payment requests when + * authorisation retries take place. In addition, we recommend you provide + * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. * - * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * @param merchantOrderReference This reference allows linking multiple transactions to each other + * for reporting purposes (i.e. order auth-rate). The reference should be unique per billing + * cycle. The same merchant order reference should never be reused after the first authorised + * attempt. If used, this field should be supplied for all incoming authorisations. > We + * strongly recommend you send the `merchantOrderReference` value to benefit from + * linking payment requests when authorisation retries take place. In addition, we recommend + * you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1293,7 +1472,7 @@ public void setMerchantOrderReference(String merchantOrderReference) { /** * merchantRiskIndicator * - * @param merchantRiskIndicator + * @param merchantRiskIndicator * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest merchantRiskIndicator(MerchantRiskIndicator merchantRiskIndicator) { @@ -1303,7 +1482,8 @@ public PaymentRequest merchantRiskIndicator(MerchantRiskIndicator merchantRiskIn /** * Get merchantRiskIndicator - * @return merchantRiskIndicator + * + * @return merchantRiskIndicator */ @JsonProperty(JSON_PROPERTY_MERCHANT_RISK_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1314,7 +1494,7 @@ public MerchantRiskIndicator getMerchantRiskIndicator() { /** * merchantRiskIndicator * - * @param merchantRiskIndicator + * @param merchantRiskIndicator */ @JsonProperty(JSON_PROPERTY_MERCHANT_RISK_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1323,9 +1503,15 @@ public void setMerchantRiskIndicator(MerchantRiskIndicator merchantRiskIndicator } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 + * key-value pairs per request. When exceeding, the \"177\" error occurs: + * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 + * characters per value. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: + * * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error + * occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * + * Maximum 80 characters per value. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest metadata(Map metadata) { @@ -1342,8 +1528,15 @@ public PaymentRequest putMetadataItem(String key, String metadataItem) { } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. - * @return metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 + * key-value pairs per request. When exceeding, the \"177\" error occurs: + * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 + * characters per value. + * + * @return metadata Metadata consists of entries, each of which includes a key and a value. + * Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" + * error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * + * Maximum 80 characters per value. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1352,9 +1545,15 @@ public Map getMetadata() { } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 + * key-value pairs per request. When exceeding, the \"177\" error occurs: + * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 + * characters per value. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: + * * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error + * occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * + * Maximum 80 characters per value. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1365,7 +1564,7 @@ public void setMetadata(Map metadata) { /** * mpiData * - * @param mpiData + * @param mpiData * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest mpiData(ThreeDSecureData mpiData) { @@ -1375,7 +1574,8 @@ public PaymentRequest mpiData(ThreeDSecureData mpiData) { /** * Get mpiData - * @return mpiData + * + * @return mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1386,7 +1586,7 @@ public ThreeDSecureData getMpiData() { /** * mpiData * - * @param mpiData + * @param mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1407,6 +1607,7 @@ public PaymentRequest nationality(String nationality) { /** * The two-character country code of the shopper's nationality. + * * @return nationality The two-character country code of the shopper's nationality. */ @JsonProperty(JSON_PROPERTY_NATIONALITY) @@ -1427,9 +1628,14 @@ public void setNationality(String nationality) { } /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + * When you are doing multiple partial (gift card) payments, this is the `pspReference` + * of the first payment. We use this to link the multiple payments to each other. As your own + * reference for linking multiple payments, use the `merchantOrderReference`instead. * - * @param orderReference When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + * @param orderReference When you are doing multiple partial (gift card) payments, this is the + * `pspReference` of the first payment. We use this to link the multiple payments to + * each other. As your own reference for linking multiple payments, use the + * `merchantOrderReference`instead. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest orderReference(String orderReference) { @@ -1438,8 +1644,14 @@ public PaymentRequest orderReference(String orderReference) { } /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. - * @return orderReference When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + * When you are doing multiple partial (gift card) payments, this is the `pspReference` + * of the first payment. We use this to link the multiple payments to each other. As your own + * reference for linking multiple payments, use the `merchantOrderReference`instead. + * + * @return orderReference When you are doing multiple partial (gift card) payments, this is the + * `pspReference` of the first payment. We use this to link the multiple payments to + * each other. As your own reference for linking multiple payments, use the + * `merchantOrderReference`instead. */ @JsonProperty(JSON_PROPERTY_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1448,9 +1660,14 @@ public String getOrderReference() { } /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + * When you are doing multiple partial (gift card) payments, this is the `pspReference` + * of the first payment. We use this to link the multiple payments to each other. As your own + * reference for linking multiple payments, use the `merchantOrderReference`instead. * - * @param orderReference When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + * @param orderReference When you are doing multiple partial (gift card) payments, this is the + * `pspReference` of the first payment. We use this to link the multiple payments to + * each other. As your own reference for linking multiple payments, use the + * `merchantOrderReference`instead. */ @JsonProperty(JSON_PROPERTY_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1461,7 +1678,7 @@ public void setOrderReference(String orderReference) { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) { @@ -1471,7 +1688,8 @@ public PaymentRequest platformChargebackLogic(PlatformChargebackLogic platformCh /** * Get platformChargebackLogic - * @return platformChargebackLogic + * + * @return platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1482,7 +1700,7 @@ public PlatformChargebackLogic getPlatformChargebackLogic() { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1493,7 +1711,7 @@ public void setPlatformChargebackLogic(PlatformChargebackLogic platformChargebac /** * recurring * - * @param recurring + * @param recurring * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest recurring(Recurring recurring) { @@ -1503,7 +1721,8 @@ public PaymentRequest recurring(Recurring recurring) { /** * Get recurring - * @return recurring + * + * @return recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1514,7 +1733,7 @@ public Recurring getRecurring() { /** * recurring * - * @param recurring + * @param recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1523,19 +1742,55 @@ public void setRecurring(Recurring recurring) { } /** - * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. - * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or + * using stored payment details. Allowed values: * `Subscription` – A transaction for a + * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a + * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – + * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. + * + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a + * token to store payment details or using stored payment details. Allowed values: * + * `Subscription` – A transaction for a fixed or variable amount, which follows a + * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card + * details are stored to enable one-click or omnichannel journeys, or simply to streamline the + * checkout process. Any subscription not following a fixed schedule is also considered a + * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file + * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have + * variable amounts. For example, automatic top-ups when a cardholder's balance drops + * below a certain amount. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ - public PaymentRequest recurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) { + public PaymentRequest recurringProcessingModel( + RecurringProcessingModelEnum recurringProcessingModel) { this.recurringProcessingModel = recurringProcessingModel; return this; } /** - * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. - * @return recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or + * using stored payment details. Allowed values: * `Subscription` – A transaction for a + * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a + * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – + * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. + * + * @return recurringProcessingModel Defines a recurring payment type. Required when creating a + * token to store payment details or using stored payment details. Allowed values: * + * `Subscription` – A transaction for a fixed or variable amount, which follows a + * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card + * details are stored to enable one-click or omnichannel journeys, or simply to streamline the + * checkout process. Any subscription not following a fixed schedule is also considered a + * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file + * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have + * variable amounts. For example, automatic top-ups when a cardholder's balance drops + * below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1544,9 +1799,26 @@ public RecurringProcessingModelEnum getRecurringProcessingModel() { } /** - * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. - * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or + * using stored payment details. Allowed values: * `Subscription` – A transaction for a + * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a + * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – + * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. + * + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a + * token to store payment details or using stored payment details. Allowed values: * + * `Subscription` – A transaction for a fixed or variable amount, which follows a + * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card + * details are stored to enable one-click or omnichannel journeys, or simply to streamline the + * checkout process. Any subscription not following a fixed schedule is also considered a + * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file + * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have + * variable amounts. For example, automatic top-ups when a cardholder's balance drops + * below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1555,9 +1827,15 @@ public void setRecurringProcessingModel(RecurringProcessingModelEnum recurringPr } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest reference(String reference) { @@ -1566,8 +1844,15 @@ public PaymentRequest reference(String reference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. - * @return reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. + * + * @return reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1576,9 +1861,15 @@ public String getReference() { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1589,17 +1880,19 @@ public void setReference(String reference) { /** * secureRemoteCommerceCheckoutData * - * @param secureRemoteCommerceCheckoutData + * @param secureRemoteCommerceCheckoutData * @return the current {@code PaymentRequest} instance, allowing for method chaining */ - public PaymentRequest secureRemoteCommerceCheckoutData(SecureRemoteCommerceCheckoutData secureRemoteCommerceCheckoutData) { + public PaymentRequest secureRemoteCommerceCheckoutData( + SecureRemoteCommerceCheckoutData secureRemoteCommerceCheckoutData) { this.secureRemoteCommerceCheckoutData = secureRemoteCommerceCheckoutData; return this; } /** * Get secureRemoteCommerceCheckoutData - * @return secureRemoteCommerceCheckoutData + * + * @return secureRemoteCommerceCheckoutData */ @JsonProperty(JSON_PROPERTY_SECURE_REMOTE_COMMERCE_CHECKOUT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1610,18 +1903,25 @@ public SecureRemoteCommerceCheckoutData getSecureRemoteCommerceCheckoutData() { /** * secureRemoteCommerceCheckoutData * - * @param secureRemoteCommerceCheckoutData + * @param secureRemoteCommerceCheckoutData */ @JsonProperty(JSON_PROPERTY_SECURE_REMOTE_COMMERCE_CHECKOUT_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSecureRemoteCommerceCheckoutData(SecureRemoteCommerceCheckoutData secureRemoteCommerceCheckoutData) { + public void setSecureRemoteCommerceCheckoutData( + SecureRemoteCommerceCheckoutData secureRemoteCommerceCheckoutData) { this.secureRemoteCommerceCheckoutData = secureRemoteCommerceCheckoutData; } /** - * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. + * Some payment methods require defining a value for this field to specify how to process the + * transaction. For the Bancontact payment method, it can be set to: * `maestro` + * (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a + * Bancontact card. * - * @param selectedBrand Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. + * @param selectedBrand Some payment methods require defining a value for this field to specify + * how to process the transaction. For the Bancontact payment method, it can be set to: * + * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, + * to be processed like a Bancontact card. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest selectedBrand(String selectedBrand) { @@ -1630,8 +1930,15 @@ public PaymentRequest selectedBrand(String selectedBrand) { } /** - * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. - * @return selectedBrand Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. + * Some payment methods require defining a value for this field to specify how to process the + * transaction. For the Bancontact payment method, it can be set to: * `maestro` + * (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a + * Bancontact card. + * + * @return selectedBrand Some payment methods require defining a value for this field to specify + * how to process the transaction. For the Bancontact payment method, it can be set to: * + * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, + * to be processed like a Bancontact card. */ @JsonProperty(JSON_PROPERTY_SELECTED_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1640,9 +1947,15 @@ public String getSelectedBrand() { } /** - * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. + * Some payment methods require defining a value for this field to specify how to process the + * transaction. For the Bancontact payment method, it can be set to: * `maestro` + * (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a + * Bancontact card. * - * @param selectedBrand Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. + * @param selectedBrand Some payment methods require defining a value for this field to specify + * how to process the transaction. For the Bancontact payment method, it can be set to: * + * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, + * to be processed like a Bancontact card. */ @JsonProperty(JSON_PROPERTY_SELECTED_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1651,9 +1964,12 @@ public void setSelectedBrand(String selectedBrand) { } /** - * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value + * `LATEST` can be used to select the most recently stored recurring detail. * - * @param selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * @param selectedRecurringDetailReference The `recurringDetailReference` you want to + * use for this payment. The value `LATEST` can be used to select the most recently + * stored recurring detail. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest selectedRecurringDetailReference(String selectedRecurringDetailReference) { @@ -1662,8 +1978,12 @@ public PaymentRequest selectedRecurringDetailReference(String selectedRecurringD } /** - * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. - * @return selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value + * `LATEST` can be used to select the most recently stored recurring detail. + * + * @return selectedRecurringDetailReference The `recurringDetailReference` you want to + * use for this payment. The value `LATEST` can be used to select the most recently + * stored recurring detail. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1672,9 +1992,12 @@ public String getSelectedRecurringDetailReference() { } /** - * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value + * `LATEST` can be used to select the most recently stored recurring detail. * - * @param selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * @param selectedRecurringDetailReference The `recurringDetailReference` you want to + * use for this payment. The value `LATEST` can be used to select the most recently + * stored recurring detail. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1695,6 +2018,7 @@ public PaymentRequest sessionId(String sessionId) { /** * A session ID used to identify a payment session. + * * @return sessionId A session ID used to identify a payment session. */ @JsonProperty(JSON_PROPERTY_SESSION_ID) @@ -1715,9 +2039,13 @@ public void setSessionId(String sessionId) { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in + * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 + * authentication if you did not include the `telephoneNumber`. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, + * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that + * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest shopperEmail(String shopperEmail) { @@ -1726,8 +2054,13 @@ public PaymentRequest shopperEmail(String shopperEmail) { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. - * @return shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in + * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 + * authentication if you did not include the `telephoneNumber`. + * + * @return shopperEmail The shopper's email address. We recommend that you provide this data, + * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that + * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1736,9 +2069,13 @@ public String getShopperEmail() { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in + * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 + * authentication if you did not include the `telephoneNumber`. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, + * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that + * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1747,9 +2084,22 @@ public void setShopperEmail(String shopperEmail) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a + * number of risk checks (for instance, number of payment attempts or location-based checks). > + * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and + * mobile integrations, if you did not include the `shopperEmail`. For native mobile + * integrations, the field is required to support cases where authentication is routed to the + * redirect flow. This field is also mandatory for some merchants depending on your business + * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it + * is used in a number of risk checks (for instance, number of payment attempts or + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the + * `shopperEmail`. For native mobile integrations, the field is required to support + * cases where authentication is routed to the redirect flow. This field is also mandatory for + * some merchants depending on your business model. For more information, [contact + * Support](https://www.adyen.help/hc/en-us/requests/new). * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest shopperIP(String shopperIP) { @@ -1758,8 +2108,22 @@ public PaymentRequest shopperIP(String shopperIP) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). - * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a + * number of risk checks (for instance, number of payment attempts or location-based checks). > + * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and + * mobile integrations, if you did not include the `shopperEmail`. For native mobile + * integrations, the field is required to support cases where authentication is routed to the + * redirect flow. This field is also mandatory for some merchants depending on your business + * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * + * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it + * is used in a number of risk checks (for instance, number of payment attempts or + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the + * `shopperEmail`. For native mobile integrations, the field is required to support + * cases where authentication is routed to the redirect flow. This field is also mandatory for + * some merchants depending on your business model. For more information, [contact + * Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1768,9 +2132,22 @@ public String getShopperIP() { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a + * number of risk checks (for instance, number of payment attempts or location-based checks). > + * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and + * mobile integrations, if you did not include the `shopperEmail`. For native mobile + * integrations, the field is required to support cases where authentication is routed to the + * redirect flow. This field is also mandatory for some merchants depending on your business + * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it + * is used in a number of risk checks (for instance, number of payment attempts or + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the + * `shopperEmail`. For native mobile integrations, the field is required to support + * cases where authentication is routed to the redirect flow. This field is also mandatory for + * some merchants depending on your business model. For more information, [contact + * Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1779,9 +2156,30 @@ public void setShopperIP(String shopperIP) { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. + * + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest shopperInteraction(ShopperInteractionEnum shopperInteraction) { @@ -1790,8 +2188,30 @@ public PaymentRequest shopperInteraction(ShopperInteractionEnum shopperInteracti } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * @return shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. + * + * @return shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1800,9 +2220,30 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. + * + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1811,9 +2252,11 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { } /** - * The combination of a language code and a country code to specify the language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the + * payment. * - * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the + * language to be used in the payment. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest shopperLocale(String shopperLocale) { @@ -1822,8 +2265,11 @@ public PaymentRequest shopperLocale(String shopperLocale) { } /** - * The combination of a language code and a country code to specify the language to be used in the payment. - * @return shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the + * payment. + * + * @return shopperLocale The combination of a language code and a country code to specify the + * language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1832,9 +2278,11 @@ public String getShopperLocale() { } /** - * The combination of a language code and a country code to specify the language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the + * payment. * - * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the + * language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1845,7 +2293,7 @@ public void setShopperLocale(String shopperLocale) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest shopperName(Name shopperName) { @@ -1855,7 +2303,8 @@ public PaymentRequest shopperName(Name shopperName) { /** * Get shopperName - * @return shopperName + * + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1866,7 +2315,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1875,9 +2324,15 @@ public void setShopperName(Name shopperName) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example + * user ID or account ID. The value is case-sensitive and must be at least three characters. > + * Your reference must not include personally identifiable information (PII) such as name or email + * address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify + * this shopper, for example user ID or account ID. The value is case-sensitive and must be at + * least three characters. > Your reference must not include personally identifiable + * information (PII) such as name or email address. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest shopperReference(String shopperReference) { @@ -1886,8 +2341,15 @@ public PaymentRequest shopperReference(String shopperReference) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. - * @return shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example + * user ID or account ID. The value is case-sensitive and must be at least three characters. > + * Your reference must not include personally identifiable information (PII) such as name or email + * address. + * + * @return shopperReference Required for recurring payments. Your reference to uniquely identify + * this shopper, for example user ID or account ID. The value is case-sensitive and must be at + * least three characters. > Your reference must not include personally identifiable + * information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1896,9 +2358,15 @@ public String getShopperReference() { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example + * user ID or account ID. The value is case-sensitive and must be at least three characters. > + * Your reference must not include personally identifiable information (PII) such as name or email + * address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify + * this shopper, for example user ID or account ID. The value is case-sensitive and must be at + * least three characters. > Your reference must not include personally identifiable + * information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1907,9 +2375,14 @@ public void setShopperReference(String shopperReference) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 + * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, + * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend + * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed + * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * + * /_**. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest shopperStatement(String shopperStatement) { @@ -1918,8 +2391,14 @@ public PaymentRequest shopperStatement(String shopperStatement) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. - * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 + * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, + * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * + * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend + * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed + * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1928,9 +2407,14 @@ public String getShopperStatement() { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 + * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, + * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend + * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed + * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1951,6 +2435,7 @@ public PaymentRequest socialSecurityNumber(String socialSecurityNumber) { /** * The shopper's social security number. + * * @return socialSecurityNumber The shopper's social security number. */ @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER) @@ -1971,9 +2456,15 @@ public void setSocialSecurityNumber(String socialSecurityNumber) { } /** - * An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * An array of objects specifying how the payment should be split when using either Adyen for + * Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/split-payments), or standalone + * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). * - * @param splits An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * @param splits An array of objects specifying how the payment should be split when using either + * Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) + * or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone + * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest splits(List splits) { @@ -1990,8 +2481,15 @@ public PaymentRequest addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). - * @return splits An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * An array of objects specifying how the payment should be split when using either Adyen for + * Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/split-payments), or standalone + * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * + * @return splits An array of objects specifying how the payment should be split when using either + * Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) + * or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone + * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2000,9 +2498,15 @@ public List getSplits() { } /** - * An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * An array of objects specifying how the payment should be split when using either Adyen for + * Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/split-payments), or standalone + * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). * - * @param splits An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * @param splits An array of objects specifying how the payment should be split when using either + * Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) + * or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone + * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2011,9 +2515,22 @@ public void setSplits(List splits) { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. * - * @param store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is + * your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest store(String store) { @@ -2022,8 +2539,22 @@ public PaymentRequest store(String store) { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. - * @return store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. + * + * @return store Required for Adyen for Platforms integrations if you are a platform model. This + * is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2032,9 +2563,22 @@ public String getStore() { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. * - * @param store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is + * your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2043,9 +2587,17 @@ public void setStore(String store) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest telephoneNumber(String telephoneNumber) { @@ -2054,8 +2606,17 @@ public PaymentRequest telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. - * @return telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. + * + * @return telephoneNumber The shopper's telephone number. The phone number must include a + * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2064,9 +2625,17 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2077,7 +2646,7 @@ public void setTelephoneNumber(String telephoneNumber) { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest threeDS2RequestData(ThreeDS2RequestData threeDS2RequestData) { @@ -2087,7 +2656,8 @@ public PaymentRequest threeDS2RequestData(ThreeDS2RequestData threeDS2RequestDat /** * Get threeDS2RequestData - * @return threeDS2RequestData + * + * @return threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2098,7 +2668,7 @@ public ThreeDS2RequestData getThreeDS2RequestData() { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2107,9 +2677,15 @@ public void setThreeDS2RequestData(ThreeDS2RequestData threeDS2RequestData) { } /** - * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. * - * @param threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * @param threeDSAuthenticationOnly Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { @@ -2118,8 +2694,15 @@ public PaymentRequest threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnl } /** - * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. - * @return threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. + * + * @return threeDSAuthenticationOnly Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2128,9 +2711,15 @@ public Boolean getThreeDSAuthenticationOnly() { } /** - * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. * - * @param threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * @param threeDSAuthenticationOnly Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2139,9 +2728,11 @@ public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { } /** - * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). + * The reference value to aggregate sales totals in reporting. When not specified, the store field + * is used (if available). * - * @param totalsGroup The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). + * @param totalsGroup The reference value to aggregate sales totals in reporting. When not + * specified, the store field is used (if available). * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest totalsGroup(String totalsGroup) { @@ -2150,8 +2741,11 @@ public PaymentRequest totalsGroup(String totalsGroup) { } /** - * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). - * @return totalsGroup The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). + * The reference value to aggregate sales totals in reporting. When not specified, the store field + * is used (if available). + * + * @return totalsGroup The reference value to aggregate sales totals in reporting. When not + * specified, the store field is used (if available). */ @JsonProperty(JSON_PROPERTY_TOTALS_GROUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2160,9 +2754,11 @@ public String getTotalsGroup() { } /** - * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). + * The reference value to aggregate sales totals in reporting. When not specified, the store field + * is used (if available). * - * @param totalsGroup The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). + * @param totalsGroup The reference value to aggregate sales totals in reporting. When not + * specified, the store field is used (if available). */ @JsonProperty(JSON_PROPERTY_TOTALS_GROUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2183,6 +2779,7 @@ public PaymentRequest trustedShopper(Boolean trustedShopper) { /** * Set to true if the payment should be routed to a trusted MID. + * * @return trustedShopper Set to true if the payment should be routed to a trusted MID. */ @JsonProperty(JSON_PROPERTY_TRUSTED_SHOPPER) @@ -2202,9 +2799,7 @@ public void setTrustedShopper(Boolean trustedShopper) { this.trustedShopper = trustedShopper; } - /** - * Return true if this PaymentRequest object is equal to o. - */ + /** Return true if this PaymentRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -2214,65 +2809,121 @@ public boolean equals(Object o) { return false; } PaymentRequest paymentRequest = (PaymentRequest) o; - return Objects.equals(this.accountInfo, paymentRequest.accountInfo) && - Objects.equals(this.additionalAmount, paymentRequest.additionalAmount) && - Objects.equals(this.additionalData, paymentRequest.additionalData) && - Objects.equals(this.amount, paymentRequest.amount) && - Objects.equals(this.applicationInfo, paymentRequest.applicationInfo) && - Objects.equals(this.bankAccount, paymentRequest.bankAccount) && - Objects.equals(this.billingAddress, paymentRequest.billingAddress) && - Objects.equals(this.browserInfo, paymentRequest.browserInfo) && - Objects.equals(this.captureDelayHours, paymentRequest.captureDelayHours) && - Objects.equals(this.card, paymentRequest.card) && - Objects.equals(this.dateOfBirth, paymentRequest.dateOfBirth) && - Objects.equals(this.dccQuote, paymentRequest.dccQuote) && - Objects.equals(this.deliveryAddress, paymentRequest.deliveryAddress) && - Objects.equals(this.deliveryDate, paymentRequest.deliveryDate) && - Objects.equals(this.deviceFingerprint, paymentRequest.deviceFingerprint) && - Objects.equals(this.entityType, paymentRequest.entityType) && - Objects.equals(this.fraudOffset, paymentRequest.fraudOffset) && - Objects.equals(this.fundDestination, paymentRequest.fundDestination) && - Objects.equals(this.fundSource, paymentRequest.fundSource) && - Objects.equals(this.fundingSource, paymentRequest.fundingSource) && - Objects.equals(this.installments, paymentRequest.installments) && - Objects.equals(this.localizedShopperStatement, paymentRequest.localizedShopperStatement) && - Objects.equals(this.mandate, paymentRequest.mandate) && - Objects.equals(this.mcc, paymentRequest.mcc) && - Objects.equals(this.merchantAccount, paymentRequest.merchantAccount) && - Objects.equals(this.merchantOrderReference, paymentRequest.merchantOrderReference) && - Objects.equals(this.merchantRiskIndicator, paymentRequest.merchantRiskIndicator) && - Objects.equals(this.metadata, paymentRequest.metadata) && - Objects.equals(this.mpiData, paymentRequest.mpiData) && - Objects.equals(this.nationality, paymentRequest.nationality) && - Objects.equals(this.orderReference, paymentRequest.orderReference) && - Objects.equals(this.platformChargebackLogic, paymentRequest.platformChargebackLogic) && - Objects.equals(this.recurring, paymentRequest.recurring) && - Objects.equals(this.recurringProcessingModel, paymentRequest.recurringProcessingModel) && - Objects.equals(this.reference, paymentRequest.reference) && - Objects.equals(this.secureRemoteCommerceCheckoutData, paymentRequest.secureRemoteCommerceCheckoutData) && - Objects.equals(this.selectedBrand, paymentRequest.selectedBrand) && - Objects.equals(this.selectedRecurringDetailReference, paymentRequest.selectedRecurringDetailReference) && - Objects.equals(this.sessionId, paymentRequest.sessionId) && - Objects.equals(this.shopperEmail, paymentRequest.shopperEmail) && - Objects.equals(this.shopperIP, paymentRequest.shopperIP) && - Objects.equals(this.shopperInteraction, paymentRequest.shopperInteraction) && - Objects.equals(this.shopperLocale, paymentRequest.shopperLocale) && - Objects.equals(this.shopperName, paymentRequest.shopperName) && - Objects.equals(this.shopperReference, paymentRequest.shopperReference) && - Objects.equals(this.shopperStatement, paymentRequest.shopperStatement) && - Objects.equals(this.socialSecurityNumber, paymentRequest.socialSecurityNumber) && - Objects.equals(this.splits, paymentRequest.splits) && - Objects.equals(this.store, paymentRequest.store) && - Objects.equals(this.telephoneNumber, paymentRequest.telephoneNumber) && - Objects.equals(this.threeDS2RequestData, paymentRequest.threeDS2RequestData) && - Objects.equals(this.threeDSAuthenticationOnly, paymentRequest.threeDSAuthenticationOnly) && - Objects.equals(this.totalsGroup, paymentRequest.totalsGroup) && - Objects.equals(this.trustedShopper, paymentRequest.trustedShopper); + return Objects.equals(this.accountInfo, paymentRequest.accountInfo) + && Objects.equals(this.additionalAmount, paymentRequest.additionalAmount) + && Objects.equals(this.additionalData, paymentRequest.additionalData) + && Objects.equals(this.amount, paymentRequest.amount) + && Objects.equals(this.applicationInfo, paymentRequest.applicationInfo) + && Objects.equals(this.bankAccount, paymentRequest.bankAccount) + && Objects.equals(this.billingAddress, paymentRequest.billingAddress) + && Objects.equals(this.browserInfo, paymentRequest.browserInfo) + && Objects.equals(this.captureDelayHours, paymentRequest.captureDelayHours) + && Objects.equals(this.card, paymentRequest.card) + && Objects.equals(this.dateOfBirth, paymentRequest.dateOfBirth) + && Objects.equals(this.dccQuote, paymentRequest.dccQuote) + && Objects.equals(this.deliveryAddress, paymentRequest.deliveryAddress) + && Objects.equals(this.deliveryDate, paymentRequest.deliveryDate) + && Objects.equals(this.deviceFingerprint, paymentRequest.deviceFingerprint) + && Objects.equals(this.entityType, paymentRequest.entityType) + && Objects.equals(this.fraudOffset, paymentRequest.fraudOffset) + && Objects.equals(this.fundDestination, paymentRequest.fundDestination) + && Objects.equals(this.fundSource, paymentRequest.fundSource) + && Objects.equals(this.fundingSource, paymentRequest.fundingSource) + && Objects.equals(this.installments, paymentRequest.installments) + && Objects.equals(this.localizedShopperStatement, paymentRequest.localizedShopperStatement) + && Objects.equals(this.mandate, paymentRequest.mandate) + && Objects.equals(this.mcc, paymentRequest.mcc) + && Objects.equals(this.merchantAccount, paymentRequest.merchantAccount) + && Objects.equals(this.merchantOrderReference, paymentRequest.merchantOrderReference) + && Objects.equals(this.merchantRiskIndicator, paymentRequest.merchantRiskIndicator) + && Objects.equals(this.metadata, paymentRequest.metadata) + && Objects.equals(this.mpiData, paymentRequest.mpiData) + && Objects.equals(this.nationality, paymentRequest.nationality) + && Objects.equals(this.orderReference, paymentRequest.orderReference) + && Objects.equals(this.platformChargebackLogic, paymentRequest.platformChargebackLogic) + && Objects.equals(this.recurring, paymentRequest.recurring) + && Objects.equals(this.recurringProcessingModel, paymentRequest.recurringProcessingModel) + && Objects.equals(this.reference, paymentRequest.reference) + && Objects.equals( + this.secureRemoteCommerceCheckoutData, paymentRequest.secureRemoteCommerceCheckoutData) + && Objects.equals(this.selectedBrand, paymentRequest.selectedBrand) + && Objects.equals( + this.selectedRecurringDetailReference, paymentRequest.selectedRecurringDetailReference) + && Objects.equals(this.sessionId, paymentRequest.sessionId) + && Objects.equals(this.shopperEmail, paymentRequest.shopperEmail) + && Objects.equals(this.shopperIP, paymentRequest.shopperIP) + && Objects.equals(this.shopperInteraction, paymentRequest.shopperInteraction) + && Objects.equals(this.shopperLocale, paymentRequest.shopperLocale) + && Objects.equals(this.shopperName, paymentRequest.shopperName) + && Objects.equals(this.shopperReference, paymentRequest.shopperReference) + && Objects.equals(this.shopperStatement, paymentRequest.shopperStatement) + && Objects.equals(this.socialSecurityNumber, paymentRequest.socialSecurityNumber) + && Objects.equals(this.splits, paymentRequest.splits) + && Objects.equals(this.store, paymentRequest.store) + && Objects.equals(this.telephoneNumber, paymentRequest.telephoneNumber) + && Objects.equals(this.threeDS2RequestData, paymentRequest.threeDS2RequestData) + && Objects.equals(this.threeDSAuthenticationOnly, paymentRequest.threeDSAuthenticationOnly) + && Objects.equals(this.totalsGroup, paymentRequest.totalsGroup) + && Objects.equals(this.trustedShopper, paymentRequest.trustedShopper); } @Override public int hashCode() { - return Objects.hash(accountInfo, additionalAmount, additionalData, amount, applicationInfo, bankAccount, billingAddress, browserInfo, captureDelayHours, card, dateOfBirth, dccQuote, deliveryAddress, deliveryDate, deviceFingerprint, entityType, fraudOffset, fundDestination, fundSource, fundingSource, installments, localizedShopperStatement, mandate, mcc, merchantAccount, merchantOrderReference, merchantRiskIndicator, metadata, mpiData, nationality, orderReference, platformChargebackLogic, recurring, recurringProcessingModel, reference, secureRemoteCommerceCheckoutData, selectedBrand, selectedRecurringDetailReference, sessionId, shopperEmail, shopperIP, shopperInteraction, shopperLocale, shopperName, shopperReference, shopperStatement, socialSecurityNumber, splits, store, telephoneNumber, threeDS2RequestData, threeDSAuthenticationOnly, totalsGroup, trustedShopper); + return Objects.hash( + accountInfo, + additionalAmount, + additionalData, + amount, + applicationInfo, + bankAccount, + billingAddress, + browserInfo, + captureDelayHours, + card, + dateOfBirth, + dccQuote, + deliveryAddress, + deliveryDate, + deviceFingerprint, + entityType, + fraudOffset, + fundDestination, + fundSource, + fundingSource, + installments, + localizedShopperStatement, + mandate, + mcc, + merchantAccount, + merchantOrderReference, + merchantRiskIndicator, + metadata, + mpiData, + nationality, + orderReference, + platformChargebackLogic, + recurring, + recurringProcessingModel, + reference, + secureRemoteCommerceCheckoutData, + selectedBrand, + selectedRecurringDetailReference, + sessionId, + shopperEmail, + shopperIP, + shopperInteraction, + shopperLocale, + shopperName, + shopperReference, + shopperStatement, + socialSecurityNumber, + splits, + store, + telephoneNumber, + threeDS2RequestData, + threeDSAuthenticationOnly, + totalsGroup, + trustedShopper); } @Override @@ -2300,23 +2951,37 @@ public String toString() { sb.append(" fundSource: ").append(toIndentedString(fundSource)).append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); sb.append(" installments: ").append(toIndentedString(installments)).append("\n"); - sb.append(" localizedShopperStatement: ").append(toIndentedString(localizedShopperStatement)).append("\n"); + sb.append(" localizedShopperStatement: ") + .append(toIndentedString(localizedShopperStatement)) + .append("\n"); sb.append(" mandate: ").append(toIndentedString(mandate)).append("\n"); sb.append(" mcc: ").append(toIndentedString(mcc)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" merchantOrderReference: ").append(toIndentedString(merchantOrderReference)).append("\n"); - sb.append(" merchantRiskIndicator: ").append(toIndentedString(merchantRiskIndicator)).append("\n"); + sb.append(" merchantOrderReference: ") + .append(toIndentedString(merchantOrderReference)) + .append("\n"); + sb.append(" merchantRiskIndicator: ") + .append(toIndentedString(merchantRiskIndicator)) + .append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" mpiData: ").append(toIndentedString(mpiData)).append("\n"); sb.append(" nationality: ").append(toIndentedString(nationality)).append("\n"); sb.append(" orderReference: ").append(toIndentedString(orderReference)).append("\n"); - sb.append(" platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n"); + sb.append(" platformChargebackLogic: ") + .append(toIndentedString(platformChargebackLogic)) + .append("\n"); sb.append(" recurring: ").append(toIndentedString(recurring)).append("\n"); - sb.append(" recurringProcessingModel: ").append(toIndentedString(recurringProcessingModel)).append("\n"); + sb.append(" recurringProcessingModel: ") + .append(toIndentedString(recurringProcessingModel)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); - sb.append(" secureRemoteCommerceCheckoutData: ").append(toIndentedString(secureRemoteCommerceCheckoutData)).append("\n"); + sb.append(" secureRemoteCommerceCheckoutData: ") + .append(toIndentedString(secureRemoteCommerceCheckoutData)) + .append("\n"); sb.append(" selectedBrand: ").append(toIndentedString(selectedBrand)).append("\n"); - sb.append(" selectedRecurringDetailReference: ").append(toIndentedString(selectedRecurringDetailReference)).append("\n"); + sb.append(" selectedRecurringDetailReference: ") + .append(toIndentedString(selectedRecurringDetailReference)) + .append("\n"); sb.append(" sessionId: ").append(toIndentedString(sessionId)).append("\n"); sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); sb.append(" shopperIP: ").append(toIndentedString(shopperIP)).append("\n"); @@ -2325,12 +2990,18 @@ public String toString() { sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append(" shopperStatement: ").append(toIndentedString(shopperStatement)).append("\n"); - sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); + sb.append(" socialSecurityNumber: ") + .append(toIndentedString(socialSecurityNumber)) + .append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" store: ").append(toIndentedString(store)).append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); - sb.append(" threeDS2RequestData: ").append(toIndentedString(threeDS2RequestData)).append("\n"); - sb.append(" threeDSAuthenticationOnly: ").append(toIndentedString(threeDSAuthenticationOnly)).append("\n"); + sb.append(" threeDS2RequestData: ") + .append(toIndentedString(threeDS2RequestData)) + .append("\n"); + sb.append(" threeDSAuthenticationOnly: ") + .append(toIndentedString(threeDSAuthenticationOnly)) + .append("\n"); sb.append(" totalsGroup: ").append(toIndentedString(totalsGroup)).append("\n"); sb.append(" trustedShopper: ").append(toIndentedString(trustedShopper)).append("\n"); sb.append("}"); @@ -2338,8 +3009,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -2348,7 +3018,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentRequest given an JSON string * * @param jsonString JSON string @@ -2358,11 +3028,12 @@ private String toIndentedString(Object o) { public static PaymentRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentRequest.class); } -/** - * Convert an instance of PaymentRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/PaymentRequest3d.java b/src/main/java/com/adyen/model/payment/PaymentRequest3d.java index fa23797af..c2f1e9601 100644 --- a/src/main/java/com/adyen/model/payment/PaymentRequest3d.java +++ b/src/main/java/com/adyen/model/payment/PaymentRequest3d.java @@ -2,49 +2,32 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.payment.AccountInfo; -import com.adyen.model.payment.Address; -import com.adyen.model.payment.Amount; -import com.adyen.model.payment.ApplicationInfo; -import com.adyen.model.payment.BrowserInfo; -import com.adyen.model.payment.ForexQuote; -import com.adyen.model.payment.Installments; -import com.adyen.model.payment.MerchantRiskIndicator; -import com.adyen.model.payment.Name; -import com.adyen.model.payment.Recurring; -import com.adyen.model.payment.Split; -import com.adyen.model.payment.ThreeDS2RequestData; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.time.OffsetDateTime; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * PaymentRequest3d - */ +/** PaymentRequest3d */ @JsonPropertyOrder({ PaymentRequest3d.JSON_PROPERTY_ACCOUNT_INFO, PaymentRequest3d.JSON_PROPERTY_ADDITIONAL_AMOUNT, @@ -92,7 +75,6 @@ PaymentRequest3d.JSON_PROPERTY_TOTALS_GROUP, PaymentRequest3d.JSON_PROPERTY_TRUSTED_SHOPPER }) - public class PaymentRequest3d { public static final String JSON_PROPERTY_ACCOUNT_INFO = "accountInfo"; private AccountInfo accountInfo; @@ -139,7 +121,8 @@ public class PaymentRequest3d { public static final String JSON_PROPERTY_INSTALLMENTS = "installments"; private Installments installments; - public static final String JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT = "localizedShopperStatement"; + public static final String JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT = + "localizedShopperStatement"; private Map localizedShopperStatement; public static final String JSON_PROPERTY_MCC = "mcc"; @@ -170,22 +153,30 @@ public class PaymentRequest3d { private Recurring recurring; /** - * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or + * using stored payment details. Allowed values: * `Subscription` – A transaction for a + * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a + * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – + * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. */ public enum RecurringProcessingModelEnum { - CARDONFILE(String.valueOf("CardOnFile")), SUBSCRIPTION(String.valueOf("Subscription")), UNSCHEDULEDCARDONFILE(String.valueOf("UnscheduledCardOnFile")); - private static final Logger LOG = Logger.getLogger(RecurringProcessingModelEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(RecurringProcessingModelEnum.class.getName()); private String value; RecurringProcessingModelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -206,7 +197,11 @@ public static RecurringProcessingModelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("RecurringProcessingModelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RecurringProcessingModelEnum.values())); + LOG.warning( + "RecurringProcessingModelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(RecurringProcessingModelEnum.values())); return null; } } @@ -220,7 +215,8 @@ public static RecurringProcessingModelEnum fromValue(String value) { public static final String JSON_PROPERTY_SELECTED_BRAND = "selectedBrand"; private String selectedBrand; - public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = "selectedRecurringDetailReference"; + public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = + "selectedRecurringDetailReference"; private String selectedRecurringDetailReference; public static final String JSON_PROPERTY_SESSION_ID = "sessionId"; @@ -233,10 +229,19 @@ public static RecurringProcessingModelEnum fromValue(String value) { private String shopperIP; /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. */ public enum ShopperInteractionEnum { - ECOMMERCE(String.valueOf("Ecommerce")), CONTAUTH(String.valueOf("ContAuth")), @@ -250,7 +255,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -271,7 +276,11 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning( + "ShopperInteractionEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -306,7 +315,8 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S2_REQUEST_DATA = "threeDS2RequestData"; private ThreeDS2RequestData threeDS2RequestData; - public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = "threeDSAuthenticationOnly"; + public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = + "threeDSAuthenticationOnly"; private Boolean threeDSAuthenticationOnly; public static final String JSON_PROPERTY_TOTALS_GROUP = "totalsGroup"; @@ -315,13 +325,12 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_TRUSTED_SHOPPER = "trustedShopper"; private Boolean trustedShopper; - public PaymentRequest3d() { - } + public PaymentRequest3d() {} /** * accountInfo * - * @param accountInfo + * @param accountInfo * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d accountInfo(AccountInfo accountInfo) { @@ -331,7 +340,8 @@ public PaymentRequest3d accountInfo(AccountInfo accountInfo) { /** * Get accountInfo - * @return accountInfo + * + * @return accountInfo */ @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -342,7 +352,7 @@ public AccountInfo getAccountInfo() { /** * accountInfo * - * @param accountInfo + * @param accountInfo */ @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -353,7 +363,7 @@ public void setAccountInfo(AccountInfo accountInfo) { /** * additionalAmount * - * @param additionalAmount + * @param additionalAmount * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d additionalAmount(Amount additionalAmount) { @@ -363,7 +373,8 @@ public PaymentRequest3d additionalAmount(Amount additionalAmount) { /** * Get additionalAmount - * @return additionalAmount + * + * @return additionalAmount */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -374,7 +385,7 @@ public Amount getAdditionalAmount() { /** * additionalAmount * - * @param additionalAmount + * @param additionalAmount */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -383,9 +394,13 @@ public void setAdditionalAmount(Amount additionalAmount) { } /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. + * The `additionalData` object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a + * particular payment request. The `additionalData` object consists of entries, each + * of which includes the key and value. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d additionalData(Map additionalData) { @@ -402,8 +417,13 @@ public PaymentRequest3d putAdditionalDataItem(String key, String additionalDataI } /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. - * @return additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. + * The `additionalData` object consists of entries, each of which includes the key and + * value. + * + * @return additionalData This field contains additional data, which may be required for a + * particular payment request. The `additionalData` object consists of entries, each + * of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -412,9 +432,13 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. + * The `additionalData` object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a + * particular payment request. The `additionalData` object consists of entries, each + * of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -425,7 +449,7 @@ public void setAdditionalData(Map additionalData) { /** * amount * - * @param amount + * @param amount * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d amount(Amount amount) { @@ -435,7 +459,8 @@ public PaymentRequest3d amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -446,7 +471,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -457,7 +482,7 @@ public void setAmount(Amount amount) { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d applicationInfo(ApplicationInfo applicationInfo) { @@ -467,7 +492,8 @@ public PaymentRequest3d applicationInfo(ApplicationInfo applicationInfo) { /** * Get applicationInfo - * @return applicationInfo + * + * @return applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -478,7 +504,7 @@ public ApplicationInfo getApplicationInfo() { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -489,7 +515,7 @@ public void setApplicationInfo(ApplicationInfo applicationInfo) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d billingAddress(Address billingAddress) { @@ -499,7 +525,8 @@ public PaymentRequest3d billingAddress(Address billingAddress) { /** * Get billingAddress - * @return billingAddress + * + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -510,7 +537,7 @@ public Address getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -521,7 +548,7 @@ public void setBillingAddress(Address billingAddress) { /** * browserInfo * - * @param browserInfo + * @param browserInfo * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d browserInfo(BrowserInfo browserInfo) { @@ -531,7 +558,8 @@ public PaymentRequest3d browserInfo(BrowserInfo browserInfo) { /** * Get browserInfo - * @return browserInfo + * + * @return browserInfo */ @JsonProperty(JSON_PROPERTY_BROWSER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -542,7 +570,7 @@ public BrowserInfo getBrowserInfo() { /** * browserInfo * - * @param browserInfo + * @param browserInfo */ @JsonProperty(JSON_PROPERTY_BROWSER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -553,7 +581,8 @@ public void setBrowserInfo(BrowserInfo browserInfo) { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, + * specified in hours. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d captureDelayHours(Integer captureDelayHours) { @@ -563,7 +592,9 @@ public PaymentRequest3d captureDelayHours(Integer captureDelayHours) { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. - * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. + * + * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, + * specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -574,7 +605,8 @@ public Integer getCaptureDelayHours() { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, + * specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -583,9 +615,11 @@ public void setCaptureDelayHours(Integer captureDelayHours) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): + * YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d dateOfBirth(LocalDate dateOfBirth) { @@ -594,8 +628,11 @@ public PaymentRequest3d dateOfBirth(LocalDate dateOfBirth) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD - * @return dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): + * YYYY-MM-DD + * + * @return dateOfBirth The shopper's date of birth. Format + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -604,9 +641,11 @@ public LocalDate getDateOfBirth() { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): + * YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -617,7 +656,7 @@ public void setDateOfBirth(LocalDate dateOfBirth) { /** * dccQuote * - * @param dccQuote + * @param dccQuote * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d dccQuote(ForexQuote dccQuote) { @@ -627,7 +666,8 @@ public PaymentRequest3d dccQuote(ForexQuote dccQuote) { /** * Get dccQuote - * @return dccQuote + * + * @return dccQuote */ @JsonProperty(JSON_PROPERTY_DCC_QUOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -638,7 +678,7 @@ public ForexQuote getDccQuote() { /** * dccQuote * - * @param dccQuote + * @param dccQuote */ @JsonProperty(JSON_PROPERTY_DCC_QUOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -649,7 +689,7 @@ public void setDccQuote(ForexQuote dccQuote) { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d deliveryAddress(Address deliveryAddress) { @@ -659,7 +699,8 @@ public PaymentRequest3d deliveryAddress(Address deliveryAddress) { /** * Get deliveryAddress - * @return deliveryAddress + * + * @return deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -670,7 +711,7 @@ public Address getDeliveryAddress() { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -679,9 +720,13 @@ public void setDeliveryAddress(Address deliveryAddress) { } /** - * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 * - * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d deliveryDate(OffsetDateTime deliveryDate) { @@ -690,8 +735,13 @@ public PaymentRequest3d deliveryDate(OffsetDateTime deliveryDate) { } /** - * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 - * @return deliveryDate The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 + * + * @return deliveryDate The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 */ @JsonProperty(JSON_PROPERTY_DELIVERY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -700,9 +750,13 @@ public OffsetDateTime getDeliveryDate() { } /** - * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 * - * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 */ @JsonProperty(JSON_PROPERTY_DELIVERY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -711,9 +765,12 @@ public void setDeliveryDate(OffsetDateTime deliveryDate) { } /** - * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to + * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * - * @param deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @param deviceFingerprint A string containing the shopper's device fingerprint. For more + * information, refer to [Device + * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d deviceFingerprint(String deviceFingerprint) { @@ -722,8 +779,12 @@ public PaymentRequest3d deviceFingerprint(String deviceFingerprint) { } /** - * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). - * @return deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to + * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * + * @return deviceFingerprint A string containing the shopper's device fingerprint. For more + * information, refer to [Device + * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -732,9 +793,12 @@ public String getDeviceFingerprint() { } /** - * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to + * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * - * @param deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @param deviceFingerprint A string containing the shopper's device fingerprint. For more + * information, refer to [Device + * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -743,9 +807,11 @@ public void setDeviceFingerprint(String deviceFingerprint) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or + * negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be + * either positive or negative. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d fraudOffset(Integer fraudOffset) { @@ -754,8 +820,11 @@ public PaymentRequest3d fraudOffset(Integer fraudOffset) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. - * @return fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or + * negative. + * + * @return fraudOffset An integer value that is added to the normal fraud score. The value can be + * either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -764,9 +833,11 @@ public Integer getFraudOffset() { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or + * negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be + * either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -777,7 +848,7 @@ public void setFraudOffset(Integer fraudOffset) { /** * installments * - * @param installments + * @param installments * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d installments(Installments installments) { @@ -787,7 +858,8 @@ public PaymentRequest3d installments(Installments installments) { /** * Get installments - * @return installments + * + * @return installments */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -798,7 +870,7 @@ public Installments getInstallments() { /** * installments * - * @param installments + * @param installments */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -807,9 +879,19 @@ public void setInstallments(Installments installments) { } /** - * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper + * statement in a local character set. If not supplied, left empty, or for cross-border + * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani + * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This + * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special + * characters. * Half-width or full-width characters. * - * @param localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. + * @param localizedShopperStatement The `localizedShopperStatement` field lets you use + * dynamic values for your shopper statement in a local character set. If not supplied, left + * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently + * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in + * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, + * capital letters, numbers and special characters. * Half-width or full-width characters. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d localizedShopperStatement(Map localizedShopperStatement) { @@ -817,7 +899,8 @@ public PaymentRequest3d localizedShopperStatement(Map localizedS return this; } - public PaymentRequest3d putLocalizedShopperStatementItem(String key, String localizedShopperStatementItem) { + public PaymentRequest3d putLocalizedShopperStatementItem( + String key, String localizedShopperStatementItem) { if (this.localizedShopperStatement == null) { this.localizedShopperStatement = new HashMap<>(); } @@ -826,8 +909,19 @@ public PaymentRequest3d putLocalizedShopperStatementItem(String key, String loca } /** - * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. - * @return localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper + * statement in a local character set. If not supplied, left empty, or for cross-border + * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani + * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This + * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special + * characters. * Half-width or full-width characters. + * + * @return localizedShopperStatement The `localizedShopperStatement` field lets you use + * dynamic values for your shopper statement in a local character set. If not supplied, left + * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently + * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in + * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, + * capital letters, numbers and special characters. * Half-width or full-width characters. */ @JsonProperty(JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -836,9 +930,19 @@ public Map getLocalizedShopperStatement() { } /** - * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper + * statement in a local character set. If not supplied, left empty, or for cross-border + * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani + * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This + * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special + * characters. * Half-width or full-width characters. * - * @param localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. + * @param localizedShopperStatement The `localizedShopperStatement` field lets you use + * dynamic values for your shopper statement in a local character set. If not supplied, left + * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently + * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in + * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, + * capital letters, numbers and special characters. * Half-width or full-width characters. */ @JsonProperty(JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -847,9 +951,13 @@ public void setLocalizedShopperStatement(Map localizedShopperSta } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a + * four-digit number, which relates to a particular market segment. This code reflects the + * predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) + * (MCC) is a four-digit number, which relates to a particular market segment. This code + * reflects the predominant activity that is conducted by the merchant. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d mcc(String mcc) { @@ -858,8 +966,13 @@ public PaymentRequest3d mcc(String mcc) { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. - * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a + * four-digit number, which relates to a particular market segment. This code reflects the + * predominant activity that is conducted by the merchant. + * + * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) + * (MCC) is a four-digit number, which relates to a particular market segment. This code + * reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -868,9 +981,13 @@ public String getMcc() { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a + * four-digit number, which relates to a particular market segment. This code reflects the + * predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) + * (MCC) is a four-digit number, which relates to a particular market segment. This code + * reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -891,6 +1008,7 @@ public PaymentRequest3d md(String md) { /** * The payment session identifier returned by the card issuer. + * * @return md The payment session identifier returned by the card issuer. */ @JsonProperty(JSON_PROPERTY_MD) @@ -913,7 +1031,8 @@ public void setMd(String md) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d merchantAccount(String merchantAccount) { @@ -923,7 +1042,9 @@ public PaymentRequest3d merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * @return merchantAccount The merchant account identifier, with which you want to process the transaction. + * + * @return merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -934,7 +1055,8 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -943,9 +1065,23 @@ public void setMerchantAccount(String merchantAccount) { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. - * - * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. + * order auth-rate). The reference should be unique per billing cycle. The same merchant order + * reference should never be reused after the first authorised attempt. If used, this field should + * be supplied for all incoming authorisations. > We strongly recommend you send the + * `merchantOrderReference` value to benefit from linking payment requests when + * authorisation retries take place. In addition, we recommend you provide + * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * + * @param merchantOrderReference This reference allows linking multiple transactions to each other + * for reporting purposes (i.e. order auth-rate). The reference should be unique per billing + * cycle. The same merchant order reference should never be reused after the first authorised + * attempt. If used, this field should be supplied for all incoming authorisations. > We + * strongly recommend you send the `merchantOrderReference` value to benefit from + * linking payment requests when authorisation retries take place. In addition, we recommend + * you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d merchantOrderReference(String merchantOrderReference) { @@ -954,8 +1090,24 @@ public PaymentRequest3d merchantOrderReference(String merchantOrderReference) { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. - * @return merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. + * order auth-rate). The reference should be unique per billing cycle. The same merchant order + * reference should never be reused after the first authorised attempt. If used, this field should + * be supplied for all incoming authorisations. > We strongly recommend you send the + * `merchantOrderReference` value to benefit from linking payment requests when + * authorisation retries take place. In addition, we recommend you provide + * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * + * @return merchantOrderReference This reference allows linking multiple transactions to each + * other for reporting purposes (i.e. order auth-rate). The reference should be unique per + * billing cycle. The same merchant order reference should never be reused after the first + * authorised attempt. If used, this field should be supplied for all incoming authorisations. + * > We strongly recommend you send the `merchantOrderReference` value to benefit + * from linking payment requests when authorisation retries take place. In addition, we + * recommend you provide `retry.orderAttemptNumber`, + * `retry.chainAttemptNumber`, and `retry.skipRetry` values in + * `PaymentRequest.additionalData`. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -964,9 +1116,23 @@ public String getMerchantOrderReference() { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. + * order auth-rate). The reference should be unique per billing cycle. The same merchant order + * reference should never be reused after the first authorised attempt. If used, this field should + * be supplied for all incoming authorisations. > We strongly recommend you send the + * `merchantOrderReference` value to benefit from linking payment requests when + * authorisation retries take place. In addition, we recommend you provide + * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. * - * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * @param merchantOrderReference This reference allows linking multiple transactions to each other + * for reporting purposes (i.e. order auth-rate). The reference should be unique per billing + * cycle. The same merchant order reference should never be reused after the first authorised + * attempt. If used, this field should be supplied for all incoming authorisations. > We + * strongly recommend you send the `merchantOrderReference` value to benefit from + * linking payment requests when authorisation retries take place. In addition, we recommend + * you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -977,7 +1143,7 @@ public void setMerchantOrderReference(String merchantOrderReference) { /** * merchantRiskIndicator * - * @param merchantRiskIndicator + * @param merchantRiskIndicator * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d merchantRiskIndicator(MerchantRiskIndicator merchantRiskIndicator) { @@ -987,7 +1153,8 @@ public PaymentRequest3d merchantRiskIndicator(MerchantRiskIndicator merchantRisk /** * Get merchantRiskIndicator - * @return merchantRiskIndicator + * + * @return merchantRiskIndicator */ @JsonProperty(JSON_PROPERTY_MERCHANT_RISK_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -998,7 +1165,7 @@ public MerchantRiskIndicator getMerchantRiskIndicator() { /** * merchantRiskIndicator * - * @param merchantRiskIndicator + * @param merchantRiskIndicator */ @JsonProperty(JSON_PROPERTY_MERCHANT_RISK_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1007,9 +1174,15 @@ public void setMerchantRiskIndicator(MerchantRiskIndicator merchantRiskIndicator } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 + * key-value pairs per request. When exceeding, the \"177\" error occurs: + * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 + * characters per value. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: + * * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error + * occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * + * Maximum 80 characters per value. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d metadata(Map metadata) { @@ -1026,8 +1199,15 @@ public PaymentRequest3d putMetadataItem(String key, String metadataItem) { } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. - * @return metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 + * key-value pairs per request. When exceeding, the \"177\" error occurs: + * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 + * characters per value. + * + * @return metadata Metadata consists of entries, each of which includes a key and a value. + * Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" + * error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * + * Maximum 80 characters per value. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1036,9 +1216,15 @@ public Map getMetadata() { } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 + * key-value pairs per request. When exceeding, the \"177\" error occurs: + * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 + * characters per value. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: + * * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error + * occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * + * Maximum 80 characters per value. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1047,9 +1233,14 @@ public void setMetadata(Map metadata) { } /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + * When you are doing multiple partial (gift card) payments, this is the `pspReference` + * of the first payment. We use this to link the multiple payments to each other. As your own + * reference for linking multiple payments, use the `merchantOrderReference`instead. * - * @param orderReference When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + * @param orderReference When you are doing multiple partial (gift card) payments, this is the + * `pspReference` of the first payment. We use this to link the multiple payments to + * each other. As your own reference for linking multiple payments, use the + * `merchantOrderReference`instead. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d orderReference(String orderReference) { @@ -1058,8 +1249,14 @@ public PaymentRequest3d orderReference(String orderReference) { } /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. - * @return orderReference When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + * When you are doing multiple partial (gift card) payments, this is the `pspReference` + * of the first payment. We use this to link the multiple payments to each other. As your own + * reference for linking multiple payments, use the `merchantOrderReference`instead. + * + * @return orderReference When you are doing multiple partial (gift card) payments, this is the + * `pspReference` of the first payment. We use this to link the multiple payments to + * each other. As your own reference for linking multiple payments, use the + * `merchantOrderReference`instead. */ @JsonProperty(JSON_PROPERTY_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1068,9 +1265,14 @@ public String getOrderReference() { } /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + * When you are doing multiple partial (gift card) payments, this is the `pspReference` + * of the first payment. We use this to link the multiple payments to each other. As your own + * reference for linking multiple payments, use the `merchantOrderReference`instead. * - * @param orderReference When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + * @param orderReference When you are doing multiple partial (gift card) payments, this is the + * `pspReference` of the first payment. We use this to link the multiple payments to + * each other. As your own reference for linking multiple payments, use the + * `merchantOrderReference`instead. */ @JsonProperty(JSON_PROPERTY_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1079,9 +1281,11 @@ public void setOrderReference(String orderReference) { } /** - * Payment authorisation response returned by the card issuer. The `paResponse` field holds the PaRes value received from the card issuer. + * Payment authorisation response returned by the card issuer. The `paResponse` field + * holds the PaRes value received from the card issuer. * - * @param paResponse Payment authorisation response returned by the card issuer. The `paResponse` field holds the PaRes value received from the card issuer. + * @param paResponse Payment authorisation response returned by the card issuer. The + * `paResponse` field holds the PaRes value received from the card issuer. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d paResponse(String paResponse) { @@ -1090,8 +1294,11 @@ public PaymentRequest3d paResponse(String paResponse) { } /** - * Payment authorisation response returned by the card issuer. The `paResponse` field holds the PaRes value received from the card issuer. - * @return paResponse Payment authorisation response returned by the card issuer. The `paResponse` field holds the PaRes value received from the card issuer. + * Payment authorisation response returned by the card issuer. The `paResponse` field + * holds the PaRes value received from the card issuer. + * + * @return paResponse Payment authorisation response returned by the card issuer. The + * `paResponse` field holds the PaRes value received from the card issuer. */ @JsonProperty(JSON_PROPERTY_PA_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1100,9 +1307,11 @@ public String getPaResponse() { } /** - * Payment authorisation response returned by the card issuer. The `paResponse` field holds the PaRes value received from the card issuer. + * Payment authorisation response returned by the card issuer. The `paResponse` field + * holds the PaRes value received from the card issuer. * - * @param paResponse Payment authorisation response returned by the card issuer. The `paResponse` field holds the PaRes value received from the card issuer. + * @param paResponse Payment authorisation response returned by the card issuer. The + * `paResponse` field holds the PaRes value received from the card issuer. */ @JsonProperty(JSON_PROPERTY_PA_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1113,7 +1322,7 @@ public void setPaResponse(String paResponse) { /** * recurring * - * @param recurring + * @param recurring * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d recurring(Recurring recurring) { @@ -1123,7 +1332,8 @@ public PaymentRequest3d recurring(Recurring recurring) { /** * Get recurring - * @return recurring + * + * @return recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1134,7 +1344,7 @@ public Recurring getRecurring() { /** * recurring * - * @param recurring + * @param recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1143,19 +1353,55 @@ public void setRecurring(Recurring recurring) { } /** - * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. - * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or + * using stored payment details. Allowed values: * `Subscription` – A transaction for a + * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a + * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – + * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. + * + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a + * token to store payment details or using stored payment details. Allowed values: * + * `Subscription` – A transaction for a fixed or variable amount, which follows a + * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card + * details are stored to enable one-click or omnichannel journeys, or simply to streamline the + * checkout process. Any subscription not following a fixed schedule is also considered a + * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file + * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have + * variable amounts. For example, automatic top-ups when a cardholder's balance drops + * below a certain amount. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ - public PaymentRequest3d recurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) { + public PaymentRequest3d recurringProcessingModel( + RecurringProcessingModelEnum recurringProcessingModel) { this.recurringProcessingModel = recurringProcessingModel; return this; } /** - * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. - * @return recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or + * using stored payment details. Allowed values: * `Subscription` – A transaction for a + * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a + * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – + * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. + * + * @return recurringProcessingModel Defines a recurring payment type. Required when creating a + * token to store payment details or using stored payment details. Allowed values: * + * `Subscription` – A transaction for a fixed or variable amount, which follows a + * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card + * details are stored to enable one-click or omnichannel journeys, or simply to streamline the + * checkout process. Any subscription not following a fixed schedule is also considered a + * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file + * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have + * variable amounts. For example, automatic top-ups when a cardholder's balance drops + * below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1164,9 +1410,26 @@ public RecurringProcessingModelEnum getRecurringProcessingModel() { } /** - * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. - * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or + * using stored payment details. Allowed values: * `Subscription` – A transaction for a + * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a + * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – + * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. + * + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a + * token to store payment details or using stored payment details. Allowed values: * + * `Subscription` – A transaction for a fixed or variable amount, which follows a + * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card + * details are stored to enable one-click or omnichannel journeys, or simply to streamline the + * checkout process. Any subscription not following a fixed schedule is also considered a + * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file + * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have + * variable amounts. For example, automatic top-ups when a cardholder's balance drops + * below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1175,9 +1438,15 @@ public void setRecurringProcessingModel(RecurringProcessingModelEnum recurringPr } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d reference(String reference) { @@ -1186,8 +1455,15 @@ public PaymentRequest3d reference(String reference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. - * @return reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. + * + * @return reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1196,9 +1472,15 @@ public String getReference() { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1207,9 +1489,15 @@ public void setReference(String reference) { } /** - * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. + * Some payment methods require defining a value for this field to specify how to process the + * transaction. For the Bancontact payment method, it can be set to: * `maestro` + * (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a + * Bancontact card. * - * @param selectedBrand Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. + * @param selectedBrand Some payment methods require defining a value for this field to specify + * how to process the transaction. For the Bancontact payment method, it can be set to: * + * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, + * to be processed like a Bancontact card. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d selectedBrand(String selectedBrand) { @@ -1218,8 +1506,15 @@ public PaymentRequest3d selectedBrand(String selectedBrand) { } /** - * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. - * @return selectedBrand Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. + * Some payment methods require defining a value for this field to specify how to process the + * transaction. For the Bancontact payment method, it can be set to: * `maestro` + * (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a + * Bancontact card. + * + * @return selectedBrand Some payment methods require defining a value for this field to specify + * how to process the transaction. For the Bancontact payment method, it can be set to: * + * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, + * to be processed like a Bancontact card. */ @JsonProperty(JSON_PROPERTY_SELECTED_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1228,9 +1523,15 @@ public String getSelectedBrand() { } /** - * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. + * Some payment methods require defining a value for this field to specify how to process the + * transaction. For the Bancontact payment method, it can be set to: * `maestro` + * (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a + * Bancontact card. * - * @param selectedBrand Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. + * @param selectedBrand Some payment methods require defining a value for this field to specify + * how to process the transaction. For the Bancontact payment method, it can be set to: * + * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, + * to be processed like a Bancontact card. */ @JsonProperty(JSON_PROPERTY_SELECTED_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1239,19 +1540,27 @@ public void setSelectedBrand(String selectedBrand) { } /** - * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value + * `LATEST` can be used to select the most recently stored recurring detail. * - * @param selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * @param selectedRecurringDetailReference The `recurringDetailReference` you want to + * use for this payment. The value `LATEST` can be used to select the most recently + * stored recurring detail. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ - public PaymentRequest3d selectedRecurringDetailReference(String selectedRecurringDetailReference) { + public PaymentRequest3d selectedRecurringDetailReference( + String selectedRecurringDetailReference) { this.selectedRecurringDetailReference = selectedRecurringDetailReference; return this; } /** - * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. - * @return selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value + * `LATEST` can be used to select the most recently stored recurring detail. + * + * @return selectedRecurringDetailReference The `recurringDetailReference` you want to + * use for this payment. The value `LATEST` can be used to select the most recently + * stored recurring detail. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1260,9 +1569,12 @@ public String getSelectedRecurringDetailReference() { } /** - * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value + * `LATEST` can be used to select the most recently stored recurring detail. * - * @param selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * @param selectedRecurringDetailReference The `recurringDetailReference` you want to + * use for this payment. The value `LATEST` can be used to select the most recently + * stored recurring detail. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1283,6 +1595,7 @@ public PaymentRequest3d sessionId(String sessionId) { /** * A session ID used to identify a payment session. + * * @return sessionId A session ID used to identify a payment session. */ @JsonProperty(JSON_PROPERTY_SESSION_ID) @@ -1303,9 +1616,13 @@ public void setSessionId(String sessionId) { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in + * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 + * authentication if you did not include the `telephoneNumber`. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, + * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that + * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d shopperEmail(String shopperEmail) { @@ -1314,8 +1631,13 @@ public PaymentRequest3d shopperEmail(String shopperEmail) { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. - * @return shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in + * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 + * authentication if you did not include the `telephoneNumber`. + * + * @return shopperEmail The shopper's email address. We recommend that you provide this data, + * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that + * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1324,9 +1646,13 @@ public String getShopperEmail() { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in + * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 + * authentication if you did not include the `telephoneNumber`. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, + * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that + * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1335,9 +1661,22 @@ public void setShopperEmail(String shopperEmail) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a + * number of risk checks (for instance, number of payment attempts or location-based checks). > + * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and + * mobile integrations, if you did not include the `shopperEmail`. For native mobile + * integrations, the field is required to support cases where authentication is routed to the + * redirect flow. This field is also mandatory for some merchants depending on your business + * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it + * is used in a number of risk checks (for instance, number of payment attempts or + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the + * `shopperEmail`. For native mobile integrations, the field is required to support + * cases where authentication is routed to the redirect flow. This field is also mandatory for + * some merchants depending on your business model. For more information, [contact + * Support](https://www.adyen.help/hc/en-us/requests/new). * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d shopperIP(String shopperIP) { @@ -1346,8 +1685,22 @@ public PaymentRequest3d shopperIP(String shopperIP) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). - * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a + * number of risk checks (for instance, number of payment attempts or location-based checks). > + * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and + * mobile integrations, if you did not include the `shopperEmail`. For native mobile + * integrations, the field is required to support cases where authentication is routed to the + * redirect flow. This field is also mandatory for some merchants depending on your business + * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * + * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it + * is used in a number of risk checks (for instance, number of payment attempts or + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the + * `shopperEmail`. For native mobile integrations, the field is required to support + * cases where authentication is routed to the redirect flow. This field is also mandatory for + * some merchants depending on your business model. For more information, [contact + * Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1356,9 +1709,22 @@ public String getShopperIP() { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a + * number of risk checks (for instance, number of payment attempts or location-based checks). > + * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and + * mobile integrations, if you did not include the `shopperEmail`. For native mobile + * integrations, the field is required to support cases where authentication is routed to the + * redirect flow. This field is also mandatory for some merchants depending on your business + * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it + * is used in a number of risk checks (for instance, number of payment attempts or + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the + * `shopperEmail`. For native mobile integrations, the field is required to support + * cases where authentication is routed to the redirect flow. This field is also mandatory for + * some merchants depending on your business model. For more information, [contact + * Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1367,9 +1733,30 @@ public void setShopperIP(String shopperIP) { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. + * + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d shopperInteraction(ShopperInteractionEnum shopperInteraction) { @@ -1378,8 +1765,30 @@ public PaymentRequest3d shopperInteraction(ShopperInteractionEnum shopperInterac } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * @return shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. + * + * @return shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1388,9 +1797,30 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. + * + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1399,9 +1829,11 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { } /** - * The combination of a language code and a country code to specify the language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the + * payment. * - * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the + * language to be used in the payment. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d shopperLocale(String shopperLocale) { @@ -1410,8 +1842,11 @@ public PaymentRequest3d shopperLocale(String shopperLocale) { } /** - * The combination of a language code and a country code to specify the language to be used in the payment. - * @return shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the + * payment. + * + * @return shopperLocale The combination of a language code and a country code to specify the + * language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1420,9 +1855,11 @@ public String getShopperLocale() { } /** - * The combination of a language code and a country code to specify the language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the + * payment. * - * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the + * language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1433,7 +1870,7 @@ public void setShopperLocale(String shopperLocale) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d shopperName(Name shopperName) { @@ -1443,7 +1880,8 @@ public PaymentRequest3d shopperName(Name shopperName) { /** * Get shopperName - * @return shopperName + * + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1454,7 +1892,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1463,9 +1901,15 @@ public void setShopperName(Name shopperName) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example + * user ID or account ID. The value is case-sensitive and must be at least three characters. > + * Your reference must not include personally identifiable information (PII) such as name or email + * address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify + * this shopper, for example user ID or account ID. The value is case-sensitive and must be at + * least three characters. > Your reference must not include personally identifiable + * information (PII) such as name or email address. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d shopperReference(String shopperReference) { @@ -1474,8 +1918,15 @@ public PaymentRequest3d shopperReference(String shopperReference) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. - * @return shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example + * user ID or account ID. The value is case-sensitive and must be at least three characters. > + * Your reference must not include personally identifiable information (PII) such as name or email + * address. + * + * @return shopperReference Required for recurring payments. Your reference to uniquely identify + * this shopper, for example user ID or account ID. The value is case-sensitive and must be at + * least three characters. > Your reference must not include personally identifiable + * information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1484,9 +1935,15 @@ public String getShopperReference() { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example + * user ID or account ID. The value is case-sensitive and must be at least three characters. > + * Your reference must not include personally identifiable information (PII) such as name or email + * address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify + * this shopper, for example user ID or account ID. The value is case-sensitive and must be at + * least three characters. > Your reference must not include personally identifiable + * information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1495,9 +1952,14 @@ public void setShopperReference(String shopperReference) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 + * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, + * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend + * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed + * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * + * /_**. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d shopperStatement(String shopperStatement) { @@ -1506,8 +1968,14 @@ public PaymentRequest3d shopperStatement(String shopperStatement) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. - * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 + * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, + * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * + * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend + * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed + * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1516,9 +1984,14 @@ public String getShopperStatement() { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 + * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, + * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend + * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed + * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1539,6 +2012,7 @@ public PaymentRequest3d socialSecurityNumber(String socialSecurityNumber) { /** * The shopper's social security number. + * * @return socialSecurityNumber The shopper's social security number. */ @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER) @@ -1559,9 +2033,15 @@ public void setSocialSecurityNumber(String socialSecurityNumber) { } /** - * An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * An array of objects specifying how the payment should be split when using either Adyen for + * Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/split-payments), or standalone + * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). * - * @param splits An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * @param splits An array of objects specifying how the payment should be split when using either + * Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) + * or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone + * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d splits(List splits) { @@ -1578,8 +2058,15 @@ public PaymentRequest3d addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). - * @return splits An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * An array of objects specifying how the payment should be split when using either Adyen for + * Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/split-payments), or standalone + * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * + * @return splits An array of objects specifying how the payment should be split when using either + * Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) + * or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone + * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1588,9 +2075,15 @@ public List getSplits() { } /** - * An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * An array of objects specifying how the payment should be split when using either Adyen for + * Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/split-payments), or standalone + * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). * - * @param splits An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * @param splits An array of objects specifying how the payment should be split when using either + * Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) + * or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone + * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1599,9 +2092,22 @@ public void setSplits(List splits) { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. * - * @param store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is + * your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d store(String store) { @@ -1610,8 +2116,22 @@ public PaymentRequest3d store(String store) { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. - * @return store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. + * + * @return store Required for Adyen for Platforms integrations if you are a platform model. This + * is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1620,9 +2140,22 @@ public String getStore() { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. * - * @param store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is + * your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1631,9 +2164,17 @@ public void setStore(String store) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d telephoneNumber(String telephoneNumber) { @@ -1642,8 +2183,17 @@ public PaymentRequest3d telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. - * @return telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. + * + * @return telephoneNumber The shopper's telephone number. The phone number must include a + * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1652,9 +2202,17 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1665,7 +2223,7 @@ public void setTelephoneNumber(String telephoneNumber) { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d threeDS2RequestData(ThreeDS2RequestData threeDS2RequestData) { @@ -1675,7 +2233,8 @@ public PaymentRequest3d threeDS2RequestData(ThreeDS2RequestData threeDS2RequestD /** * Get threeDS2RequestData - * @return threeDS2RequestData + * + * @return threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1686,7 +2245,7 @@ public ThreeDS2RequestData getThreeDS2RequestData() { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1695,9 +2254,15 @@ public void setThreeDS2RequestData(ThreeDS2RequestData threeDS2RequestData) { } /** - * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. * - * @param threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * @param threeDSAuthenticationOnly Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { @@ -1706,8 +2271,15 @@ public PaymentRequest3d threeDSAuthenticationOnly(Boolean threeDSAuthenticationO } /** - * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. - * @return threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. + * + * @return threeDSAuthenticationOnly Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1716,9 +2288,15 @@ public Boolean getThreeDSAuthenticationOnly() { } /** - * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. * - * @param threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * @param threeDSAuthenticationOnly Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1727,9 +2305,11 @@ public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { } /** - * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). + * The reference value to aggregate sales totals in reporting. When not specified, the store field + * is used (if available). * - * @param totalsGroup The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). + * @param totalsGroup The reference value to aggregate sales totals in reporting. When not + * specified, the store field is used (if available). * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d totalsGroup(String totalsGroup) { @@ -1738,8 +2318,11 @@ public PaymentRequest3d totalsGroup(String totalsGroup) { } /** - * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). - * @return totalsGroup The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). + * The reference value to aggregate sales totals in reporting. When not specified, the store field + * is used (if available). + * + * @return totalsGroup The reference value to aggregate sales totals in reporting. When not + * specified, the store field is used (if available). */ @JsonProperty(JSON_PROPERTY_TOTALS_GROUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1748,9 +2331,11 @@ public String getTotalsGroup() { } /** - * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). + * The reference value to aggregate sales totals in reporting. When not specified, the store field + * is used (if available). * - * @param totalsGroup The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). + * @param totalsGroup The reference value to aggregate sales totals in reporting. When not + * specified, the store field is used (if available). */ @JsonProperty(JSON_PROPERTY_TOTALS_GROUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1771,6 +2356,7 @@ public PaymentRequest3d trustedShopper(Boolean trustedShopper) { /** * Set to true if the payment should be routed to a trusted MID. + * * @return trustedShopper Set to true if the payment should be routed to a trusted MID. */ @JsonProperty(JSON_PROPERTY_TRUSTED_SHOPPER) @@ -1790,9 +2376,7 @@ public void setTrustedShopper(Boolean trustedShopper) { this.trustedShopper = trustedShopper; } - /** - * Return true if this PaymentRequest3d object is equal to o. - */ + /** Return true if this PaymentRequest3d object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -1802,56 +2386,105 @@ public boolean equals(Object o) { return false; } PaymentRequest3d paymentRequest3d = (PaymentRequest3d) o; - return Objects.equals(this.accountInfo, paymentRequest3d.accountInfo) && - Objects.equals(this.additionalAmount, paymentRequest3d.additionalAmount) && - Objects.equals(this.additionalData, paymentRequest3d.additionalData) && - Objects.equals(this.amount, paymentRequest3d.amount) && - Objects.equals(this.applicationInfo, paymentRequest3d.applicationInfo) && - Objects.equals(this.billingAddress, paymentRequest3d.billingAddress) && - Objects.equals(this.browserInfo, paymentRequest3d.browserInfo) && - Objects.equals(this.captureDelayHours, paymentRequest3d.captureDelayHours) && - Objects.equals(this.dateOfBirth, paymentRequest3d.dateOfBirth) && - Objects.equals(this.dccQuote, paymentRequest3d.dccQuote) && - Objects.equals(this.deliveryAddress, paymentRequest3d.deliveryAddress) && - Objects.equals(this.deliveryDate, paymentRequest3d.deliveryDate) && - Objects.equals(this.deviceFingerprint, paymentRequest3d.deviceFingerprint) && - Objects.equals(this.fraudOffset, paymentRequest3d.fraudOffset) && - Objects.equals(this.installments, paymentRequest3d.installments) && - Objects.equals(this.localizedShopperStatement, paymentRequest3d.localizedShopperStatement) && - Objects.equals(this.mcc, paymentRequest3d.mcc) && - Objects.equals(this.md, paymentRequest3d.md) && - Objects.equals(this.merchantAccount, paymentRequest3d.merchantAccount) && - Objects.equals(this.merchantOrderReference, paymentRequest3d.merchantOrderReference) && - Objects.equals(this.merchantRiskIndicator, paymentRequest3d.merchantRiskIndicator) && - Objects.equals(this.metadata, paymentRequest3d.metadata) && - Objects.equals(this.orderReference, paymentRequest3d.orderReference) && - Objects.equals(this.paResponse, paymentRequest3d.paResponse) && - Objects.equals(this.recurring, paymentRequest3d.recurring) && - Objects.equals(this.recurringProcessingModel, paymentRequest3d.recurringProcessingModel) && - Objects.equals(this.reference, paymentRequest3d.reference) && - Objects.equals(this.selectedBrand, paymentRequest3d.selectedBrand) && - Objects.equals(this.selectedRecurringDetailReference, paymentRequest3d.selectedRecurringDetailReference) && - Objects.equals(this.sessionId, paymentRequest3d.sessionId) && - Objects.equals(this.shopperEmail, paymentRequest3d.shopperEmail) && - Objects.equals(this.shopperIP, paymentRequest3d.shopperIP) && - Objects.equals(this.shopperInteraction, paymentRequest3d.shopperInteraction) && - Objects.equals(this.shopperLocale, paymentRequest3d.shopperLocale) && - Objects.equals(this.shopperName, paymentRequest3d.shopperName) && - Objects.equals(this.shopperReference, paymentRequest3d.shopperReference) && - Objects.equals(this.shopperStatement, paymentRequest3d.shopperStatement) && - Objects.equals(this.socialSecurityNumber, paymentRequest3d.socialSecurityNumber) && - Objects.equals(this.splits, paymentRequest3d.splits) && - Objects.equals(this.store, paymentRequest3d.store) && - Objects.equals(this.telephoneNumber, paymentRequest3d.telephoneNumber) && - Objects.equals(this.threeDS2RequestData, paymentRequest3d.threeDS2RequestData) && - Objects.equals(this.threeDSAuthenticationOnly, paymentRequest3d.threeDSAuthenticationOnly) && - Objects.equals(this.totalsGroup, paymentRequest3d.totalsGroup) && - Objects.equals(this.trustedShopper, paymentRequest3d.trustedShopper); + return Objects.equals(this.accountInfo, paymentRequest3d.accountInfo) + && Objects.equals(this.additionalAmount, paymentRequest3d.additionalAmount) + && Objects.equals(this.additionalData, paymentRequest3d.additionalData) + && Objects.equals(this.amount, paymentRequest3d.amount) + && Objects.equals(this.applicationInfo, paymentRequest3d.applicationInfo) + && Objects.equals(this.billingAddress, paymentRequest3d.billingAddress) + && Objects.equals(this.browserInfo, paymentRequest3d.browserInfo) + && Objects.equals(this.captureDelayHours, paymentRequest3d.captureDelayHours) + && Objects.equals(this.dateOfBirth, paymentRequest3d.dateOfBirth) + && Objects.equals(this.dccQuote, paymentRequest3d.dccQuote) + && Objects.equals(this.deliveryAddress, paymentRequest3d.deliveryAddress) + && Objects.equals(this.deliveryDate, paymentRequest3d.deliveryDate) + && Objects.equals(this.deviceFingerprint, paymentRequest3d.deviceFingerprint) + && Objects.equals(this.fraudOffset, paymentRequest3d.fraudOffset) + && Objects.equals(this.installments, paymentRequest3d.installments) + && Objects.equals( + this.localizedShopperStatement, paymentRequest3d.localizedShopperStatement) + && Objects.equals(this.mcc, paymentRequest3d.mcc) + && Objects.equals(this.md, paymentRequest3d.md) + && Objects.equals(this.merchantAccount, paymentRequest3d.merchantAccount) + && Objects.equals(this.merchantOrderReference, paymentRequest3d.merchantOrderReference) + && Objects.equals(this.merchantRiskIndicator, paymentRequest3d.merchantRiskIndicator) + && Objects.equals(this.metadata, paymentRequest3d.metadata) + && Objects.equals(this.orderReference, paymentRequest3d.orderReference) + && Objects.equals(this.paResponse, paymentRequest3d.paResponse) + && Objects.equals(this.recurring, paymentRequest3d.recurring) + && Objects.equals(this.recurringProcessingModel, paymentRequest3d.recurringProcessingModel) + && Objects.equals(this.reference, paymentRequest3d.reference) + && Objects.equals(this.selectedBrand, paymentRequest3d.selectedBrand) + && Objects.equals( + this.selectedRecurringDetailReference, + paymentRequest3d.selectedRecurringDetailReference) + && Objects.equals(this.sessionId, paymentRequest3d.sessionId) + && Objects.equals(this.shopperEmail, paymentRequest3d.shopperEmail) + && Objects.equals(this.shopperIP, paymentRequest3d.shopperIP) + && Objects.equals(this.shopperInteraction, paymentRequest3d.shopperInteraction) + && Objects.equals(this.shopperLocale, paymentRequest3d.shopperLocale) + && Objects.equals(this.shopperName, paymentRequest3d.shopperName) + && Objects.equals(this.shopperReference, paymentRequest3d.shopperReference) + && Objects.equals(this.shopperStatement, paymentRequest3d.shopperStatement) + && Objects.equals(this.socialSecurityNumber, paymentRequest3d.socialSecurityNumber) + && Objects.equals(this.splits, paymentRequest3d.splits) + && Objects.equals(this.store, paymentRequest3d.store) + && Objects.equals(this.telephoneNumber, paymentRequest3d.telephoneNumber) + && Objects.equals(this.threeDS2RequestData, paymentRequest3d.threeDS2RequestData) + && Objects.equals( + this.threeDSAuthenticationOnly, paymentRequest3d.threeDSAuthenticationOnly) + && Objects.equals(this.totalsGroup, paymentRequest3d.totalsGroup) + && Objects.equals(this.trustedShopper, paymentRequest3d.trustedShopper); } @Override public int hashCode() { - return Objects.hash(accountInfo, additionalAmount, additionalData, amount, applicationInfo, billingAddress, browserInfo, captureDelayHours, dateOfBirth, dccQuote, deliveryAddress, deliveryDate, deviceFingerprint, fraudOffset, installments, localizedShopperStatement, mcc, md, merchantAccount, merchantOrderReference, merchantRiskIndicator, metadata, orderReference, paResponse, recurring, recurringProcessingModel, reference, selectedBrand, selectedRecurringDetailReference, sessionId, shopperEmail, shopperIP, shopperInteraction, shopperLocale, shopperName, shopperReference, shopperStatement, socialSecurityNumber, splits, store, telephoneNumber, threeDS2RequestData, threeDSAuthenticationOnly, totalsGroup, trustedShopper); + return Objects.hash( + accountInfo, + additionalAmount, + additionalData, + amount, + applicationInfo, + billingAddress, + browserInfo, + captureDelayHours, + dateOfBirth, + dccQuote, + deliveryAddress, + deliveryDate, + deviceFingerprint, + fraudOffset, + installments, + localizedShopperStatement, + mcc, + md, + merchantAccount, + merchantOrderReference, + merchantRiskIndicator, + metadata, + orderReference, + paResponse, + recurring, + recurringProcessingModel, + reference, + selectedBrand, + selectedRecurringDetailReference, + sessionId, + shopperEmail, + shopperIP, + shopperInteraction, + shopperLocale, + shopperName, + shopperReference, + shopperStatement, + socialSecurityNumber, + splits, + store, + telephoneNumber, + threeDS2RequestData, + threeDSAuthenticationOnly, + totalsGroup, + trustedShopper); } @Override @@ -1873,20 +2506,30 @@ public String toString() { sb.append(" deviceFingerprint: ").append(toIndentedString(deviceFingerprint)).append("\n"); sb.append(" fraudOffset: ").append(toIndentedString(fraudOffset)).append("\n"); sb.append(" installments: ").append(toIndentedString(installments)).append("\n"); - sb.append(" localizedShopperStatement: ").append(toIndentedString(localizedShopperStatement)).append("\n"); + sb.append(" localizedShopperStatement: ") + .append(toIndentedString(localizedShopperStatement)) + .append("\n"); sb.append(" mcc: ").append(toIndentedString(mcc)).append("\n"); sb.append(" md: ").append(toIndentedString(md)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" merchantOrderReference: ").append(toIndentedString(merchantOrderReference)).append("\n"); - sb.append(" merchantRiskIndicator: ").append(toIndentedString(merchantRiskIndicator)).append("\n"); + sb.append(" merchantOrderReference: ") + .append(toIndentedString(merchantOrderReference)) + .append("\n"); + sb.append(" merchantRiskIndicator: ") + .append(toIndentedString(merchantRiskIndicator)) + .append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" orderReference: ").append(toIndentedString(orderReference)).append("\n"); sb.append(" paResponse: ").append(toIndentedString(paResponse)).append("\n"); sb.append(" recurring: ").append(toIndentedString(recurring)).append("\n"); - sb.append(" recurringProcessingModel: ").append(toIndentedString(recurringProcessingModel)).append("\n"); + sb.append(" recurringProcessingModel: ") + .append(toIndentedString(recurringProcessingModel)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" selectedBrand: ").append(toIndentedString(selectedBrand)).append("\n"); - sb.append(" selectedRecurringDetailReference: ").append(toIndentedString(selectedRecurringDetailReference)).append("\n"); + sb.append(" selectedRecurringDetailReference: ") + .append(toIndentedString(selectedRecurringDetailReference)) + .append("\n"); sb.append(" sessionId: ").append(toIndentedString(sessionId)).append("\n"); sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); sb.append(" shopperIP: ").append(toIndentedString(shopperIP)).append("\n"); @@ -1895,12 +2538,18 @@ public String toString() { sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append(" shopperStatement: ").append(toIndentedString(shopperStatement)).append("\n"); - sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); + sb.append(" socialSecurityNumber: ") + .append(toIndentedString(socialSecurityNumber)) + .append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" store: ").append(toIndentedString(store)).append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); - sb.append(" threeDS2RequestData: ").append(toIndentedString(threeDS2RequestData)).append("\n"); - sb.append(" threeDSAuthenticationOnly: ").append(toIndentedString(threeDSAuthenticationOnly)).append("\n"); + sb.append(" threeDS2RequestData: ") + .append(toIndentedString(threeDS2RequestData)) + .append("\n"); + sb.append(" threeDSAuthenticationOnly: ") + .append(toIndentedString(threeDSAuthenticationOnly)) + .append("\n"); sb.append(" totalsGroup: ").append(toIndentedString(totalsGroup)).append("\n"); sb.append(" trustedShopper: ").append(toIndentedString(trustedShopper)).append("\n"); sb.append("}"); @@ -1908,8 +2557,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1918,7 +2566,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentRequest3d given an JSON string * * @param jsonString JSON string @@ -1928,11 +2576,12 @@ private String toIndentedString(Object o) { public static PaymentRequest3d fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentRequest3d.class); } -/** - * Convert an instance of PaymentRequest3d to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentRequest3d to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/PaymentRequest3ds2.java b/src/main/java/com/adyen/model/payment/PaymentRequest3ds2.java index 372ec2338..f4bdf2bca 100644 --- a/src/main/java/com/adyen/model/payment/PaymentRequest3ds2.java +++ b/src/main/java/com/adyen/model/payment/PaymentRequest3ds2.java @@ -2,50 +2,32 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.payment.AccountInfo; -import com.adyen.model.payment.Address; -import com.adyen.model.payment.Amount; -import com.adyen.model.payment.ApplicationInfo; -import com.adyen.model.payment.BrowserInfo; -import com.adyen.model.payment.ForexQuote; -import com.adyen.model.payment.Installments; -import com.adyen.model.payment.MerchantRiskIndicator; -import com.adyen.model.payment.Name; -import com.adyen.model.payment.Recurring; -import com.adyen.model.payment.Split; -import com.adyen.model.payment.ThreeDS2RequestData; -import com.adyen.model.payment.ThreeDS2Result; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.time.OffsetDateTime; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * PaymentRequest3ds2 - */ +/** PaymentRequest3ds2 */ @JsonPropertyOrder({ PaymentRequest3ds2.JSON_PROPERTY_ACCOUNT_INFO, PaymentRequest3ds2.JSON_PROPERTY_ADDITIONAL_AMOUNT, @@ -93,7 +75,6 @@ PaymentRequest3ds2.JSON_PROPERTY_TOTALS_GROUP, PaymentRequest3ds2.JSON_PROPERTY_TRUSTED_SHOPPER }) - public class PaymentRequest3ds2 { public static final String JSON_PROPERTY_ACCOUNT_INFO = "accountInfo"; private AccountInfo accountInfo; @@ -140,7 +121,8 @@ public class PaymentRequest3ds2 { public static final String JSON_PROPERTY_INSTALLMENTS = "installments"; private Installments installments; - public static final String JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT = "localizedShopperStatement"; + public static final String JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT = + "localizedShopperStatement"; private Map localizedShopperStatement; public static final String JSON_PROPERTY_MCC = "mcc"; @@ -165,22 +147,30 @@ public class PaymentRequest3ds2 { private Recurring recurring; /** - * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or + * using stored payment details. Allowed values: * `Subscription` – A transaction for a + * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a + * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – + * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. */ public enum RecurringProcessingModelEnum { - CARDONFILE(String.valueOf("CardOnFile")), SUBSCRIPTION(String.valueOf("Subscription")), UNSCHEDULEDCARDONFILE(String.valueOf("UnscheduledCardOnFile")); - private static final Logger LOG = Logger.getLogger(RecurringProcessingModelEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(RecurringProcessingModelEnum.class.getName()); private String value; RecurringProcessingModelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -201,7 +191,11 @@ public static RecurringProcessingModelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("RecurringProcessingModelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RecurringProcessingModelEnum.values())); + LOG.warning( + "RecurringProcessingModelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(RecurringProcessingModelEnum.values())); return null; } } @@ -215,7 +209,8 @@ public static RecurringProcessingModelEnum fromValue(String value) { public static final String JSON_PROPERTY_SELECTED_BRAND = "selectedBrand"; private String selectedBrand; - public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = "selectedRecurringDetailReference"; + public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = + "selectedRecurringDetailReference"; private String selectedRecurringDetailReference; public static final String JSON_PROPERTY_SESSION_ID = "sessionId"; @@ -228,10 +223,19 @@ public static RecurringProcessingModelEnum fromValue(String value) { private String shopperIP; /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. */ public enum ShopperInteractionEnum { - ECOMMERCE(String.valueOf("Ecommerce")), CONTAUTH(String.valueOf("ContAuth")), @@ -245,7 +249,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -266,7 +270,11 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning( + "ShopperInteractionEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -307,7 +315,8 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S2_TOKEN = "threeDS2Token"; private String threeDS2Token; - public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = "threeDSAuthenticationOnly"; + public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = + "threeDSAuthenticationOnly"; private Boolean threeDSAuthenticationOnly; public static final String JSON_PROPERTY_TOTALS_GROUP = "totalsGroup"; @@ -316,13 +325,12 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_TRUSTED_SHOPPER = "trustedShopper"; private Boolean trustedShopper; - public PaymentRequest3ds2() { - } + public PaymentRequest3ds2() {} /** * accountInfo * - * @param accountInfo + * @param accountInfo * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 accountInfo(AccountInfo accountInfo) { @@ -332,7 +340,8 @@ public PaymentRequest3ds2 accountInfo(AccountInfo accountInfo) { /** * Get accountInfo - * @return accountInfo + * + * @return accountInfo */ @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -343,7 +352,7 @@ public AccountInfo getAccountInfo() { /** * accountInfo * - * @param accountInfo + * @param accountInfo */ @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -354,7 +363,7 @@ public void setAccountInfo(AccountInfo accountInfo) { /** * additionalAmount * - * @param additionalAmount + * @param additionalAmount * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 additionalAmount(Amount additionalAmount) { @@ -364,7 +373,8 @@ public PaymentRequest3ds2 additionalAmount(Amount additionalAmount) { /** * Get additionalAmount - * @return additionalAmount + * + * @return additionalAmount */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -375,7 +385,7 @@ public Amount getAdditionalAmount() { /** * additionalAmount * - * @param additionalAmount + * @param additionalAmount */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -384,9 +394,13 @@ public void setAdditionalAmount(Amount additionalAmount) { } /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. + * The `additionalData` object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a + * particular payment request. The `additionalData` object consists of entries, each + * of which includes the key and value. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 additionalData(Map additionalData) { @@ -403,8 +417,13 @@ public PaymentRequest3ds2 putAdditionalDataItem(String key, String additionalDat } /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. - * @return additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. + * The `additionalData` object consists of entries, each of which includes the key and + * value. + * + * @return additionalData This field contains additional data, which may be required for a + * particular payment request. The `additionalData` object consists of entries, each + * of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -413,9 +432,13 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular payment request. + * The `additionalData` object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a + * particular payment request. The `additionalData` object consists of entries, each + * of which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -426,7 +449,7 @@ public void setAdditionalData(Map additionalData) { /** * amount * - * @param amount + * @param amount * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 amount(Amount amount) { @@ -436,7 +459,8 @@ public PaymentRequest3ds2 amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -447,7 +471,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -458,7 +482,7 @@ public void setAmount(Amount amount) { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 applicationInfo(ApplicationInfo applicationInfo) { @@ -468,7 +492,8 @@ public PaymentRequest3ds2 applicationInfo(ApplicationInfo applicationInfo) { /** * Get applicationInfo - * @return applicationInfo + * + * @return applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -479,7 +504,7 @@ public ApplicationInfo getApplicationInfo() { /** * applicationInfo * - * @param applicationInfo + * @param applicationInfo */ @JsonProperty(JSON_PROPERTY_APPLICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -490,7 +515,7 @@ public void setApplicationInfo(ApplicationInfo applicationInfo) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 billingAddress(Address billingAddress) { @@ -500,7 +525,8 @@ public PaymentRequest3ds2 billingAddress(Address billingAddress) { /** * Get billingAddress - * @return billingAddress + * + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -511,7 +537,7 @@ public Address getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -522,7 +548,7 @@ public void setBillingAddress(Address billingAddress) { /** * browserInfo * - * @param browserInfo + * @param browserInfo * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 browserInfo(BrowserInfo browserInfo) { @@ -532,7 +558,8 @@ public PaymentRequest3ds2 browserInfo(BrowserInfo browserInfo) { /** * Get browserInfo - * @return browserInfo + * + * @return browserInfo */ @JsonProperty(JSON_PROPERTY_BROWSER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -543,7 +570,7 @@ public BrowserInfo getBrowserInfo() { /** * browserInfo * - * @param browserInfo + * @param browserInfo */ @JsonProperty(JSON_PROPERTY_BROWSER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -554,7 +581,8 @@ public void setBrowserInfo(BrowserInfo browserInfo) { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, + * specified in hours. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 captureDelayHours(Integer captureDelayHours) { @@ -564,7 +592,9 @@ public PaymentRequest3ds2 captureDelayHours(Integer captureDelayHours) { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. - * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. + * + * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, + * specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -575,7 +605,8 @@ public Integer getCaptureDelayHours() { /** * The delay between the authorisation and scheduled auto-capture, specified in hours. * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, specified in hours. + * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, + * specified in hours. */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -584,9 +615,11 @@ public void setCaptureDelayHours(Integer captureDelayHours) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): + * YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 dateOfBirth(LocalDate dateOfBirth) { @@ -595,8 +628,11 @@ public PaymentRequest3ds2 dateOfBirth(LocalDate dateOfBirth) { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD - * @return dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): + * YYYY-MM-DD + * + * @return dateOfBirth The shopper's date of birth. Format + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -605,9 +641,11 @@ public LocalDate getDateOfBirth() { } /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): + * YYYY-MM-DD * - * @param dateOfBirth The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + * @param dateOfBirth The shopper's date of birth. Format + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -618,7 +656,7 @@ public void setDateOfBirth(LocalDate dateOfBirth) { /** * dccQuote * - * @param dccQuote + * @param dccQuote * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 dccQuote(ForexQuote dccQuote) { @@ -628,7 +666,8 @@ public PaymentRequest3ds2 dccQuote(ForexQuote dccQuote) { /** * Get dccQuote - * @return dccQuote + * + * @return dccQuote */ @JsonProperty(JSON_PROPERTY_DCC_QUOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -639,7 +678,7 @@ public ForexQuote getDccQuote() { /** * dccQuote * - * @param dccQuote + * @param dccQuote */ @JsonProperty(JSON_PROPERTY_DCC_QUOTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -650,7 +689,7 @@ public void setDccQuote(ForexQuote dccQuote) { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 deliveryAddress(Address deliveryAddress) { @@ -660,7 +699,8 @@ public PaymentRequest3ds2 deliveryAddress(Address deliveryAddress) { /** * Get deliveryAddress - * @return deliveryAddress + * + * @return deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -671,7 +711,7 @@ public Address getDeliveryAddress() { /** * deliveryAddress * - * @param deliveryAddress + * @param deliveryAddress */ @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -680,9 +720,13 @@ public void setDeliveryAddress(Address deliveryAddress) { } /** - * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 * - * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 deliveryDate(OffsetDateTime deliveryDate) { @@ -691,8 +735,13 @@ public PaymentRequest3ds2 deliveryDate(OffsetDateTime deliveryDate) { } /** - * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 - * @return deliveryDate The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 + * + * @return deliveryDate The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 */ @JsonProperty(JSON_PROPERTY_DELIVERY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -701,9 +750,13 @@ public OffsetDateTime getDeliveryDate() { } /** - * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 * - * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO + * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: + * 2017-07-17T13:42:40.428+01:00 */ @JsonProperty(JSON_PROPERTY_DELIVERY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -712,9 +765,12 @@ public void setDeliveryDate(OffsetDateTime deliveryDate) { } /** - * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to + * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * - * @param deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @param deviceFingerprint A string containing the shopper's device fingerprint. For more + * information, refer to [Device + * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 deviceFingerprint(String deviceFingerprint) { @@ -723,8 +779,12 @@ public PaymentRequest3ds2 deviceFingerprint(String deviceFingerprint) { } /** - * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). - * @return deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to + * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * + * @return deviceFingerprint A string containing the shopper's device fingerprint. For more + * information, refer to [Device + * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -733,9 +793,12 @@ public String getDeviceFingerprint() { } /** - * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * A string containing the shopper's device fingerprint. For more information, refer to + * [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). * - * @param deviceFingerprint A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + * @param deviceFingerprint A string containing the shopper's device fingerprint. For more + * information, refer to [Device + * fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -744,9 +807,11 @@ public void setDeviceFingerprint(String deviceFingerprint) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or + * negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be + * either positive or negative. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 fraudOffset(Integer fraudOffset) { @@ -755,8 +820,11 @@ public PaymentRequest3ds2 fraudOffset(Integer fraudOffset) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. - * @return fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or + * negative. + * + * @return fraudOffset An integer value that is added to the normal fraud score. The value can be + * either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -765,9 +833,11 @@ public Integer getFraudOffset() { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or + * negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be + * either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -778,7 +848,7 @@ public void setFraudOffset(Integer fraudOffset) { /** * installments * - * @param installments + * @param installments * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 installments(Installments installments) { @@ -788,7 +858,8 @@ public PaymentRequest3ds2 installments(Installments installments) { /** * Get installments - * @return installments + * + * @return installments */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -799,7 +870,7 @@ public Installments getInstallments() { /** * installments * - * @param installments + * @param installments */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -808,17 +879,29 @@ public void setInstallments(Installments installments) { } /** - * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper + * statement in a local character set. If not supplied, left empty, or for cross-border + * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani + * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This + * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special + * characters. * Half-width or full-width characters. * - * @param localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. + * @param localizedShopperStatement The `localizedShopperStatement` field lets you use + * dynamic values for your shopper statement in a local character set. If not supplied, left + * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently + * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in + * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, + * capital letters, numbers and special characters. * Half-width or full-width characters. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ - public PaymentRequest3ds2 localizedShopperStatement(Map localizedShopperStatement) { + public PaymentRequest3ds2 localizedShopperStatement( + Map localizedShopperStatement) { this.localizedShopperStatement = localizedShopperStatement; return this; } - public PaymentRequest3ds2 putLocalizedShopperStatementItem(String key, String localizedShopperStatementItem) { + public PaymentRequest3ds2 putLocalizedShopperStatementItem( + String key, String localizedShopperStatementItem) { if (this.localizedShopperStatement == null) { this.localizedShopperStatement = new HashMap<>(); } @@ -827,8 +910,19 @@ public PaymentRequest3ds2 putLocalizedShopperStatementItem(String key, String lo } /** - * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. - * @return localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper + * statement in a local character set. If not supplied, left empty, or for cross-border + * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani + * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This + * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special + * characters. * Half-width or full-width characters. + * + * @return localizedShopperStatement The `localizedShopperStatement` field lets you use + * dynamic values for your shopper statement in a local character set. If not supplied, left + * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently + * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in + * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, + * capital letters, numbers and special characters. * Half-width or full-width characters. */ @JsonProperty(JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -837,9 +931,19 @@ public Map getLocalizedShopperStatement() { } /** - * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper + * statement in a local character set. If not supplied, left empty, or for cross-border + * transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani + * character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This + * character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special + * characters. * Half-width or full-width characters. * - * @param localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. + * @param localizedShopperStatement The `localizedShopperStatement` field lets you use + * dynamic values for your shopper statement in a local character set. If not supplied, left + * empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently + * supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in + * Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, + * capital letters, numbers and special characters. * Half-width or full-width characters. */ @JsonProperty(JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -848,9 +952,13 @@ public void setLocalizedShopperStatement(Map localizedShopperSta } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a + * four-digit number, which relates to a particular market segment. This code reflects the + * predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) + * (MCC) is a four-digit number, which relates to a particular market segment. This code + * reflects the predominant activity that is conducted by the merchant. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 mcc(String mcc) { @@ -859,8 +967,13 @@ public PaymentRequest3ds2 mcc(String mcc) { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. - * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a + * four-digit number, which relates to a particular market segment. This code reflects the + * predominant activity that is conducted by the merchant. + * + * @return mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) + * (MCC) is a four-digit number, which relates to a particular market segment. This code + * reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -869,9 +982,13 @@ public String getMcc() { } /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a + * four-digit number, which relates to a particular market segment. This code reflects the + * predominant activity that is conducted by the merchant. * - * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + * @param mcc The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) + * (MCC) is a four-digit number, which relates to a particular market segment. This code + * reflects the predominant activity that is conducted by the merchant. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -882,7 +999,8 @@ public void setMcc(String mcc) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 merchantAccount(String merchantAccount) { @@ -892,7 +1010,9 @@ public PaymentRequest3ds2 merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * @return merchantAccount The merchant account identifier, with which you want to process the transaction. + * + * @return merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -903,7 +1023,8 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -912,9 +1033,23 @@ public void setMerchantAccount(String merchantAccount) { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. - * - * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. + * order auth-rate). The reference should be unique per billing cycle. The same merchant order + * reference should never be reused after the first authorised attempt. If used, this field should + * be supplied for all incoming authorisations. > We strongly recommend you send the + * `merchantOrderReference` value to benefit from linking payment requests when + * authorisation retries take place. In addition, we recommend you provide + * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * + * @param merchantOrderReference This reference allows linking multiple transactions to each other + * for reporting purposes (i.e. order auth-rate). The reference should be unique per billing + * cycle. The same merchant order reference should never be reused after the first authorised + * attempt. If used, this field should be supplied for all incoming authorisations. > We + * strongly recommend you send the `merchantOrderReference` value to benefit from + * linking payment requests when authorisation retries take place. In addition, we recommend + * you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 merchantOrderReference(String merchantOrderReference) { @@ -923,8 +1058,24 @@ public PaymentRequest3ds2 merchantOrderReference(String merchantOrderReference) } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. - * @return merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. + * order auth-rate). The reference should be unique per billing cycle. The same merchant order + * reference should never be reused after the first authorised attempt. If used, this field should + * be supplied for all incoming authorisations. > We strongly recommend you send the + * `merchantOrderReference` value to benefit from linking payment requests when + * authorisation retries take place. In addition, we recommend you provide + * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * + * @return merchantOrderReference This reference allows linking multiple transactions to each + * other for reporting purposes (i.e. order auth-rate). The reference should be unique per + * billing cycle. The same merchant order reference should never be reused after the first + * authorised attempt. If used, this field should be supplied for all incoming authorisations. + * > We strongly recommend you send the `merchantOrderReference` value to benefit + * from linking payment requests when authorisation retries take place. In addition, we + * recommend you provide `retry.orderAttemptNumber`, + * `retry.chainAttemptNumber`, and `retry.skipRetry` values in + * `PaymentRequest.additionalData`. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -933,9 +1084,23 @@ public String getMerchantOrderReference() { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. + * order auth-rate). The reference should be unique per billing cycle. The same merchant order + * reference should never be reused after the first authorised attempt. If used, this field should + * be supplied for all incoming authorisations. > We strongly recommend you send the + * `merchantOrderReference` value to benefit from linking payment requests when + * authorisation retries take place. In addition, we recommend you provide + * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. * - * @param merchantOrderReference This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + * @param merchantOrderReference This reference allows linking multiple transactions to each other + * for reporting purposes (i.e. order auth-rate). The reference should be unique per billing + * cycle. The same merchant order reference should never be reused after the first authorised + * attempt. If used, this field should be supplied for all incoming authorisations. > We + * strongly recommend you send the `merchantOrderReference` value to benefit from + * linking payment requests when authorisation retries take place. In addition, we recommend + * you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and + * `retry.skipRetry` values in `PaymentRequest.additionalData`. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -946,7 +1111,7 @@ public void setMerchantOrderReference(String merchantOrderReference) { /** * merchantRiskIndicator * - * @param merchantRiskIndicator + * @param merchantRiskIndicator * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 merchantRiskIndicator(MerchantRiskIndicator merchantRiskIndicator) { @@ -956,7 +1121,8 @@ public PaymentRequest3ds2 merchantRiskIndicator(MerchantRiskIndicator merchantRi /** * Get merchantRiskIndicator - * @return merchantRiskIndicator + * + * @return merchantRiskIndicator */ @JsonProperty(JSON_PROPERTY_MERCHANT_RISK_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -967,7 +1133,7 @@ public MerchantRiskIndicator getMerchantRiskIndicator() { /** * merchantRiskIndicator * - * @param merchantRiskIndicator + * @param merchantRiskIndicator */ @JsonProperty(JSON_PROPERTY_MERCHANT_RISK_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -976,9 +1142,15 @@ public void setMerchantRiskIndicator(MerchantRiskIndicator merchantRiskIndicator } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 + * key-value pairs per request. When exceeding, the \"177\" error occurs: + * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 + * characters per value. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: + * * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error + * occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * + * Maximum 80 characters per value. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 metadata(Map metadata) { @@ -995,8 +1167,15 @@ public PaymentRequest3ds2 putMetadataItem(String key, String metadataItem) { } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. - * @return metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 + * key-value pairs per request. When exceeding, the \"177\" error occurs: + * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 + * characters per value. + * + * @return metadata Metadata consists of entries, each of which includes a key and a value. + * Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" + * error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * + * Maximum 80 characters per value. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1005,9 +1184,15 @@ public Map getMetadata() { } /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 + * key-value pairs per request. When exceeding, the \"177\" error occurs: + * \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 + * characters per value. * - * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + * @param metadata Metadata consists of entries, each of which includes a key and a value. Limits: + * * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error + * occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * + * Maximum 80 characters per value. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1016,9 +1201,14 @@ public void setMetadata(Map metadata) { } /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + * When you are doing multiple partial (gift card) payments, this is the `pspReference` + * of the first payment. We use this to link the multiple payments to each other. As your own + * reference for linking multiple payments, use the `merchantOrderReference`instead. * - * @param orderReference When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + * @param orderReference When you are doing multiple partial (gift card) payments, this is the + * `pspReference` of the first payment. We use this to link the multiple payments to + * each other. As your own reference for linking multiple payments, use the + * `merchantOrderReference`instead. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 orderReference(String orderReference) { @@ -1027,8 +1217,14 @@ public PaymentRequest3ds2 orderReference(String orderReference) { } /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. - * @return orderReference When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + * When you are doing multiple partial (gift card) payments, this is the `pspReference` + * of the first payment. We use this to link the multiple payments to each other. As your own + * reference for linking multiple payments, use the `merchantOrderReference`instead. + * + * @return orderReference When you are doing multiple partial (gift card) payments, this is the + * `pspReference` of the first payment. We use this to link the multiple payments to + * each other. As your own reference for linking multiple payments, use the + * `merchantOrderReference`instead. */ @JsonProperty(JSON_PROPERTY_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1037,9 +1233,14 @@ public String getOrderReference() { } /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + * When you are doing multiple partial (gift card) payments, this is the `pspReference` + * of the first payment. We use this to link the multiple payments to each other. As your own + * reference for linking multiple payments, use the `merchantOrderReference`instead. * - * @param orderReference When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + * @param orderReference When you are doing multiple partial (gift card) payments, this is the + * `pspReference` of the first payment. We use this to link the multiple payments to + * each other. As your own reference for linking multiple payments, use the + * `merchantOrderReference`instead. */ @JsonProperty(JSON_PROPERTY_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1050,7 +1251,7 @@ public void setOrderReference(String orderReference) { /** * recurring * - * @param recurring + * @param recurring * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 recurring(Recurring recurring) { @@ -1060,7 +1261,8 @@ public PaymentRequest3ds2 recurring(Recurring recurring) { /** * Get recurring - * @return recurring + * + * @return recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1071,7 +1273,7 @@ public Recurring getRecurring() { /** * recurring * - * @param recurring + * @param recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1080,19 +1282,55 @@ public void setRecurring(Recurring recurring) { } /** - * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. - * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or + * using stored payment details. Allowed values: * `Subscription` – A transaction for a + * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a + * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – + * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. + * + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a + * token to store payment details or using stored payment details. Allowed values: * + * `Subscription` – A transaction for a fixed or variable amount, which follows a + * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card + * details are stored to enable one-click or omnichannel journeys, or simply to streamline the + * checkout process. Any subscription not following a fixed schedule is also considered a + * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file + * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have + * variable amounts. For example, automatic top-ups when a cardholder's balance drops + * below a certain amount. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ - public PaymentRequest3ds2 recurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) { + public PaymentRequest3ds2 recurringProcessingModel( + RecurringProcessingModelEnum recurringProcessingModel) { this.recurringProcessingModel = recurringProcessingModel; return this; } /** - * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. - * @return recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or + * using stored payment details. Allowed values: * `Subscription` – A transaction for a + * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a + * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – + * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. + * + * @return recurringProcessingModel Defines a recurring payment type. Required when creating a + * token to store payment details or using stored payment details. Allowed values: * + * `Subscription` – A transaction for a fixed or variable amount, which follows a + * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card + * details are stored to enable one-click or omnichannel journeys, or simply to streamline the + * checkout process. Any subscription not following a fixed schedule is also considered a + * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file + * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have + * variable amounts. For example, automatic top-ups when a cardholder's balance drops + * below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1101,9 +1339,26 @@ public RecurringProcessingModelEnum getRecurringProcessingModel() { } /** - * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. - * - * @param recurringProcessingModel Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. + * Defines a recurring payment type. Required when creating a token to store payment details or + * using stored payment details. Allowed values: * `Subscription` – A transaction for a + * fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a + * card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel + * journeys, or simply to streamline the checkout process. Any subscription not following a fixed + * schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – + * An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed + * schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's + * balance drops below a certain amount. + * + * @param recurringProcessingModel Defines a recurring payment type. Required when creating a + * token to store payment details or using stored payment details. Allowed values: * + * `Subscription` – A transaction for a fixed or variable amount, which follows a + * fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card + * details are stored to enable one-click or omnichannel journeys, or simply to streamline the + * checkout process. Any subscription not following a fixed schedule is also considered a + * card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file + * (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have + * variable amounts. For example, automatic top-ups when a cardholder's balance drops + * below a certain amount. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1112,9 +1367,15 @@ public void setRecurringProcessingModel(RecurringProcessingModelEnum recurringPr } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 reference(String reference) { @@ -1123,8 +1384,15 @@ public PaymentRequest3ds2 reference(String reference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. - * @return reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. + * + * @return reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1133,9 +1401,15 @@ public String getReference() { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1144,9 +1418,15 @@ public void setReference(String reference) { } /** - * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. + * Some payment methods require defining a value for this field to specify how to process the + * transaction. For the Bancontact payment method, it can be set to: * `maestro` + * (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a + * Bancontact card. * - * @param selectedBrand Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. + * @param selectedBrand Some payment methods require defining a value for this field to specify + * how to process the transaction. For the Bancontact payment method, it can be set to: * + * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, + * to be processed like a Bancontact card. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 selectedBrand(String selectedBrand) { @@ -1155,8 +1435,15 @@ public PaymentRequest3ds2 selectedBrand(String selectedBrand) { } /** - * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. - * @return selectedBrand Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. + * Some payment methods require defining a value for this field to specify how to process the + * transaction. For the Bancontact payment method, it can be set to: * `maestro` + * (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a + * Bancontact card. + * + * @return selectedBrand Some payment methods require defining a value for this field to specify + * how to process the transaction. For the Bancontact payment method, it can be set to: * + * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, + * to be processed like a Bancontact card. */ @JsonProperty(JSON_PROPERTY_SELECTED_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1165,9 +1452,15 @@ public String getSelectedBrand() { } /** - * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. + * Some payment methods require defining a value for this field to specify how to process the + * transaction. For the Bancontact payment method, it can be set to: * `maestro` + * (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a + * Bancontact card. * - * @param selectedBrand Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. + * @param selectedBrand Some payment methods require defining a value for this field to specify + * how to process the transaction. For the Bancontact payment method, it can be set to: * + * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, + * to be processed like a Bancontact card. */ @JsonProperty(JSON_PROPERTY_SELECTED_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1176,19 +1469,27 @@ public void setSelectedBrand(String selectedBrand) { } /** - * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value + * `LATEST` can be used to select the most recently stored recurring detail. * - * @param selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * @param selectedRecurringDetailReference The `recurringDetailReference` you want to + * use for this payment. The value `LATEST` can be used to select the most recently + * stored recurring detail. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ - public PaymentRequest3ds2 selectedRecurringDetailReference(String selectedRecurringDetailReference) { + public PaymentRequest3ds2 selectedRecurringDetailReference( + String selectedRecurringDetailReference) { this.selectedRecurringDetailReference = selectedRecurringDetailReference; return this; } /** - * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. - * @return selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value + * `LATEST` can be used to select the most recently stored recurring detail. + * + * @return selectedRecurringDetailReference The `recurringDetailReference` you want to + * use for this payment. The value `LATEST` can be used to select the most recently + * stored recurring detail. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1197,9 +1498,12 @@ public String getSelectedRecurringDetailReference() { } /** - * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value + * `LATEST` can be used to select the most recently stored recurring detail. * - * @param selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * @param selectedRecurringDetailReference The `recurringDetailReference` you want to + * use for this payment. The value `LATEST` can be used to select the most recently + * stored recurring detail. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1220,6 +1524,7 @@ public PaymentRequest3ds2 sessionId(String sessionId) { /** * A session ID used to identify a payment session. + * * @return sessionId A session ID used to identify a payment session. */ @JsonProperty(JSON_PROPERTY_SESSION_ID) @@ -1240,9 +1545,13 @@ public void setSessionId(String sessionId) { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in + * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 + * authentication if you did not include the `telephoneNumber`. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, + * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that + * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 shopperEmail(String shopperEmail) { @@ -1251,8 +1560,13 @@ public PaymentRequest3ds2 shopperEmail(String shopperEmail) { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. - * @return shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in + * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 + * authentication if you did not include the `telephoneNumber`. + * + * @return shopperEmail The shopper's email address. We recommend that you provide this data, + * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that + * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1261,9 +1575,13 @@ public String getShopperEmail() { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in + * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 + * authentication if you did not include the `telephoneNumber`. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, + * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that + * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1272,9 +1590,22 @@ public void setShopperEmail(String shopperEmail) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a + * number of risk checks (for instance, number of payment attempts or location-based checks). > + * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and + * mobile integrations, if you did not include the `shopperEmail`. For native mobile + * integrations, the field is required to support cases where authentication is routed to the + * redirect flow. This field is also mandatory for some merchants depending on your business + * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it + * is used in a number of risk checks (for instance, number of payment attempts or + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the + * `shopperEmail`. For native mobile integrations, the field is required to support + * cases where authentication is routed to the redirect flow. This field is also mandatory for + * some merchants depending on your business model. For more information, [contact + * Support](https://www.adyen.help/hc/en-us/requests/new). * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 shopperIP(String shopperIP) { @@ -1283,8 +1614,22 @@ public PaymentRequest3ds2 shopperIP(String shopperIP) { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). - * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a + * number of risk checks (for instance, number of payment attempts or location-based checks). > + * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and + * mobile integrations, if you did not include the `shopperEmail`. For native mobile + * integrations, the field is required to support cases where authentication is routed to the + * redirect flow. This field is also mandatory for some merchants depending on your business + * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * + * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it + * is used in a number of risk checks (for instance, number of payment attempts or + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the + * `shopperEmail`. For native mobile integrations, the field is required to support + * cases where authentication is routed to the redirect flow. This field is also mandatory for + * some merchants depending on your business model. For more information, [contact + * Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1293,9 +1638,22 @@ public String getShopperIP() { } /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper's IP address. We recommend that you provide this data, as it is used in a + * number of risk checks (for instance, number of payment attempts or location-based checks). > + * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and + * mobile integrations, if you did not include the `shopperEmail`. For native mobile + * integrations, the field is required to support cases where authentication is routed to the + * redirect flow. This field is also mandatory for some merchants depending on your business + * model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it + * is used in a number of risk checks (for instance, number of payment attempts or + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the + * `shopperEmail`. For native mobile integrations, the field is required to support + * cases where authentication is routed to the redirect flow. This field is also mandatory for + * some merchants depending on your business model. For more information, [contact + * Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1304,9 +1662,30 @@ public void setShopperIP(String shopperIP) { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. + * + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 shopperInteraction(ShopperInteractionEnum shopperInteraction) { @@ -1315,8 +1694,30 @@ public PaymentRequest3ds2 shopperInteraction(ShopperInteractionEnum shopperInter } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * @return shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. + * + * @return shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1325,9 +1726,30 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. + * + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1336,9 +1758,11 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { } /** - * The combination of a language code and a country code to specify the language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the + * payment. * - * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the + * language to be used in the payment. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 shopperLocale(String shopperLocale) { @@ -1347,8 +1771,11 @@ public PaymentRequest3ds2 shopperLocale(String shopperLocale) { } /** - * The combination of a language code and a country code to specify the language to be used in the payment. - * @return shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the + * payment. + * + * @return shopperLocale The combination of a language code and a country code to specify the + * language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1357,9 +1784,11 @@ public String getShopperLocale() { } /** - * The combination of a language code and a country code to specify the language to be used in the payment. + * The combination of a language code and a country code to specify the language to be used in the + * payment. * - * @param shopperLocale The combination of a language code and a country code to specify the language to be used in the payment. + * @param shopperLocale The combination of a language code and a country code to specify the + * language to be used in the payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1370,7 +1799,7 @@ public void setShopperLocale(String shopperLocale) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 shopperName(Name shopperName) { @@ -1380,7 +1809,8 @@ public PaymentRequest3ds2 shopperName(Name shopperName) { /** * Get shopperName - * @return shopperName + * + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1391,7 +1821,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1400,9 +1830,15 @@ public void setShopperName(Name shopperName) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example + * user ID or account ID. The value is case-sensitive and must be at least three characters. > + * Your reference must not include personally identifiable information (PII) such as name or email + * address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify + * this shopper, for example user ID or account ID. The value is case-sensitive and must be at + * least three characters. > Your reference must not include personally identifiable + * information (PII) such as name or email address. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 shopperReference(String shopperReference) { @@ -1411,8 +1847,15 @@ public PaymentRequest3ds2 shopperReference(String shopperReference) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. - * @return shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example + * user ID or account ID. The value is case-sensitive and must be at least three characters. > + * Your reference must not include personally identifiable information (PII) such as name or email + * address. + * + * @return shopperReference Required for recurring payments. Your reference to uniquely identify + * this shopper, for example user ID or account ID. The value is case-sensitive and must be at + * least three characters. > Your reference must not include personally identifiable + * information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1421,9 +1864,15 @@ public String getShopperReference() { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example + * user ID or account ID. The value is case-sensitive and must be at least three characters. > + * Your reference must not include personally identifiable information (PII) such as name or email + * address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify + * this shopper, for example user ID or account ID. The value is case-sensitive and must be at + * least three characters. > Your reference must not include personally identifiable + * information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1432,9 +1881,14 @@ public void setShopperReference(String shopperReference) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 + * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, + * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend + * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed + * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * + * /_**. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 shopperStatement(String shopperStatement) { @@ -1443,8 +1897,14 @@ public PaymentRequest3ds2 shopperStatement(String shopperStatement) { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. - * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 + * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, + * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * + * @return shopperStatement The text to be shown on the shopper's bank statement. We recommend + * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed + * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1453,9 +1913,14 @@ public String getShopperStatement() { } /** - * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 + * characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, + * **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. * - * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**. + * @param shopperStatement The text to be shown on the shopper's bank statement. We recommend + * sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed + * characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * + * /_**. */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1476,6 +1941,7 @@ public PaymentRequest3ds2 socialSecurityNumber(String socialSecurityNumber) { /** * The shopper's social security number. + * * @return socialSecurityNumber The shopper's social security number. */ @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER) @@ -1496,9 +1962,15 @@ public void setSocialSecurityNumber(String socialSecurityNumber) { } /** - * An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * An array of objects specifying how the payment should be split when using either Adyen for + * Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/split-payments), or standalone + * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). * - * @param splits An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * @param splits An array of objects specifying how the payment should be split when using either + * Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) + * or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone + * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 splits(List splits) { @@ -1515,8 +1987,15 @@ public PaymentRequest3ds2 addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). - * @return splits An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * An array of objects specifying how the payment should be split when using either Adyen for + * Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/split-payments), or standalone + * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * + * @return splits An array of objects specifying how the payment should be split when using either + * Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) + * or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone + * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1525,9 +2004,15 @@ public List getSplits() { } /** - * An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * An array of objects specifying how the payment should be split when using either Adyen for + * Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or + * [platforms](https://docs.adyen.com/platforms/split-payments), or standalone + * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). * - * @param splits An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * @param splits An array of objects specifying how the payment should be split when using either + * Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) + * or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone + * [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1536,9 +2021,22 @@ public void setSplits(List splits) { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. * - * @param store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is + * your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 store(String store) { @@ -1547,8 +2045,22 @@ public PaymentRequest3ds2 store(String store) { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. - * @return store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. + * + * @return store Required for Adyen for Platforms integrations if you are a platform model. This + * is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1557,9 +2069,22 @@ public String getStore() { } /** - * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * Required for Adyen for Platforms integrations if you are a platform model. This is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. * - * @param store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is + * your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. */ @JsonProperty(JSON_PROPERTY_STORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1568,9 +2093,17 @@ public void setStore(String store) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 telephoneNumber(String telephoneNumber) { @@ -1579,8 +2112,17 @@ public PaymentRequest3ds2 telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. - * @return telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. + * + * @return telephoneNumber The shopper's telephone number. The phone number must include a + * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1589,9 +2131,17 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1602,7 +2152,7 @@ public void setTelephoneNumber(String telephoneNumber) { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 threeDS2RequestData(ThreeDS2RequestData threeDS2RequestData) { @@ -1612,7 +2162,8 @@ public PaymentRequest3ds2 threeDS2RequestData(ThreeDS2RequestData threeDS2Reques /** * Get threeDS2RequestData - * @return threeDS2RequestData + * + * @return threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1623,7 +2174,7 @@ public ThreeDS2RequestData getThreeDS2RequestData() { /** * threeDS2RequestData * - * @param threeDS2RequestData + * @param threeDS2RequestData */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1634,7 +2185,7 @@ public void setThreeDS2RequestData(ThreeDS2RequestData threeDS2RequestData) { /** * threeDS2Result * - * @param threeDS2Result + * @param threeDS2Result * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 threeDS2Result(ThreeDS2Result threeDS2Result) { @@ -1644,7 +2195,8 @@ public PaymentRequest3ds2 threeDS2Result(ThreeDS2Result threeDS2Result) { /** * Get threeDS2Result - * @return threeDS2Result + * + * @return threeDS2Result */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1655,7 +2207,7 @@ public ThreeDS2Result getThreeDS2Result() { /** * threeDS2Result * - * @param threeDS2Result + * @param threeDS2Result */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1676,6 +2228,7 @@ public PaymentRequest3ds2 threeDS2Token(String threeDS2Token) { /** * The ThreeDS2Token that was returned in the /authorise call. + * * @return threeDS2Token The ThreeDS2Token that was returned in the /authorise call. */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_TOKEN) @@ -1696,9 +2249,15 @@ public void setThreeDS2Token(String threeDS2Token) { } /** - * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. * - * @param threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * @param threeDSAuthenticationOnly Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { @@ -1707,8 +2266,15 @@ public PaymentRequest3ds2 threeDSAuthenticationOnly(Boolean threeDSAuthenticatio } /** - * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. - * @return threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. + * + * @return threeDSAuthenticationOnly Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1717,9 +2283,15 @@ public Boolean getThreeDSAuthenticationOnly() { } /** - * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. * - * @param threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. + * @param threeDSAuthenticationOnly Required to trigger the [authentication-only + * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to + * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the + * payment authorization.Default: **false**. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1728,9 +2300,11 @@ public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { } /** - * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). + * The reference value to aggregate sales totals in reporting. When not specified, the store field + * is used (if available). * - * @param totalsGroup The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). + * @param totalsGroup The reference value to aggregate sales totals in reporting. When not + * specified, the store field is used (if available). * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 totalsGroup(String totalsGroup) { @@ -1739,8 +2313,11 @@ public PaymentRequest3ds2 totalsGroup(String totalsGroup) { } /** - * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). - * @return totalsGroup The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). + * The reference value to aggregate sales totals in reporting. When not specified, the store field + * is used (if available). + * + * @return totalsGroup The reference value to aggregate sales totals in reporting. When not + * specified, the store field is used (if available). */ @JsonProperty(JSON_PROPERTY_TOTALS_GROUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1749,9 +2326,11 @@ public String getTotalsGroup() { } /** - * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). + * The reference value to aggregate sales totals in reporting. When not specified, the store field + * is used (if available). * - * @param totalsGroup The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). + * @param totalsGroup The reference value to aggregate sales totals in reporting. When not + * specified, the store field is used (if available). */ @JsonProperty(JSON_PROPERTY_TOTALS_GROUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1772,6 +2351,7 @@ public PaymentRequest3ds2 trustedShopper(Boolean trustedShopper) { /** * Set to true if the payment should be routed to a trusted MID. + * * @return trustedShopper Set to true if the payment should be routed to a trusted MID. */ @JsonProperty(JSON_PROPERTY_TRUSTED_SHOPPER) @@ -1791,9 +2371,7 @@ public void setTrustedShopper(Boolean trustedShopper) { this.trustedShopper = trustedShopper; } - /** - * Return true if this PaymentRequest3ds2 object is equal to o. - */ + /** Return true if this PaymentRequest3ds2 object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -1803,56 +2381,106 @@ public boolean equals(Object o) { return false; } PaymentRequest3ds2 paymentRequest3ds2 = (PaymentRequest3ds2) o; - return Objects.equals(this.accountInfo, paymentRequest3ds2.accountInfo) && - Objects.equals(this.additionalAmount, paymentRequest3ds2.additionalAmount) && - Objects.equals(this.additionalData, paymentRequest3ds2.additionalData) && - Objects.equals(this.amount, paymentRequest3ds2.amount) && - Objects.equals(this.applicationInfo, paymentRequest3ds2.applicationInfo) && - Objects.equals(this.billingAddress, paymentRequest3ds2.billingAddress) && - Objects.equals(this.browserInfo, paymentRequest3ds2.browserInfo) && - Objects.equals(this.captureDelayHours, paymentRequest3ds2.captureDelayHours) && - Objects.equals(this.dateOfBirth, paymentRequest3ds2.dateOfBirth) && - Objects.equals(this.dccQuote, paymentRequest3ds2.dccQuote) && - Objects.equals(this.deliveryAddress, paymentRequest3ds2.deliveryAddress) && - Objects.equals(this.deliveryDate, paymentRequest3ds2.deliveryDate) && - Objects.equals(this.deviceFingerprint, paymentRequest3ds2.deviceFingerprint) && - Objects.equals(this.fraudOffset, paymentRequest3ds2.fraudOffset) && - Objects.equals(this.installments, paymentRequest3ds2.installments) && - Objects.equals(this.localizedShopperStatement, paymentRequest3ds2.localizedShopperStatement) && - Objects.equals(this.mcc, paymentRequest3ds2.mcc) && - Objects.equals(this.merchantAccount, paymentRequest3ds2.merchantAccount) && - Objects.equals(this.merchantOrderReference, paymentRequest3ds2.merchantOrderReference) && - Objects.equals(this.merchantRiskIndicator, paymentRequest3ds2.merchantRiskIndicator) && - Objects.equals(this.metadata, paymentRequest3ds2.metadata) && - Objects.equals(this.orderReference, paymentRequest3ds2.orderReference) && - Objects.equals(this.recurring, paymentRequest3ds2.recurring) && - Objects.equals(this.recurringProcessingModel, paymentRequest3ds2.recurringProcessingModel) && - Objects.equals(this.reference, paymentRequest3ds2.reference) && - Objects.equals(this.selectedBrand, paymentRequest3ds2.selectedBrand) && - Objects.equals(this.selectedRecurringDetailReference, paymentRequest3ds2.selectedRecurringDetailReference) && - Objects.equals(this.sessionId, paymentRequest3ds2.sessionId) && - Objects.equals(this.shopperEmail, paymentRequest3ds2.shopperEmail) && - Objects.equals(this.shopperIP, paymentRequest3ds2.shopperIP) && - Objects.equals(this.shopperInteraction, paymentRequest3ds2.shopperInteraction) && - Objects.equals(this.shopperLocale, paymentRequest3ds2.shopperLocale) && - Objects.equals(this.shopperName, paymentRequest3ds2.shopperName) && - Objects.equals(this.shopperReference, paymentRequest3ds2.shopperReference) && - Objects.equals(this.shopperStatement, paymentRequest3ds2.shopperStatement) && - Objects.equals(this.socialSecurityNumber, paymentRequest3ds2.socialSecurityNumber) && - Objects.equals(this.splits, paymentRequest3ds2.splits) && - Objects.equals(this.store, paymentRequest3ds2.store) && - Objects.equals(this.telephoneNumber, paymentRequest3ds2.telephoneNumber) && - Objects.equals(this.threeDS2RequestData, paymentRequest3ds2.threeDS2RequestData) && - Objects.equals(this.threeDS2Result, paymentRequest3ds2.threeDS2Result) && - Objects.equals(this.threeDS2Token, paymentRequest3ds2.threeDS2Token) && - Objects.equals(this.threeDSAuthenticationOnly, paymentRequest3ds2.threeDSAuthenticationOnly) && - Objects.equals(this.totalsGroup, paymentRequest3ds2.totalsGroup) && - Objects.equals(this.trustedShopper, paymentRequest3ds2.trustedShopper); + return Objects.equals(this.accountInfo, paymentRequest3ds2.accountInfo) + && Objects.equals(this.additionalAmount, paymentRequest3ds2.additionalAmount) + && Objects.equals(this.additionalData, paymentRequest3ds2.additionalData) + && Objects.equals(this.amount, paymentRequest3ds2.amount) + && Objects.equals(this.applicationInfo, paymentRequest3ds2.applicationInfo) + && Objects.equals(this.billingAddress, paymentRequest3ds2.billingAddress) + && Objects.equals(this.browserInfo, paymentRequest3ds2.browserInfo) + && Objects.equals(this.captureDelayHours, paymentRequest3ds2.captureDelayHours) + && Objects.equals(this.dateOfBirth, paymentRequest3ds2.dateOfBirth) + && Objects.equals(this.dccQuote, paymentRequest3ds2.dccQuote) + && Objects.equals(this.deliveryAddress, paymentRequest3ds2.deliveryAddress) + && Objects.equals(this.deliveryDate, paymentRequest3ds2.deliveryDate) + && Objects.equals(this.deviceFingerprint, paymentRequest3ds2.deviceFingerprint) + && Objects.equals(this.fraudOffset, paymentRequest3ds2.fraudOffset) + && Objects.equals(this.installments, paymentRequest3ds2.installments) + && Objects.equals( + this.localizedShopperStatement, paymentRequest3ds2.localizedShopperStatement) + && Objects.equals(this.mcc, paymentRequest3ds2.mcc) + && Objects.equals(this.merchantAccount, paymentRequest3ds2.merchantAccount) + && Objects.equals(this.merchantOrderReference, paymentRequest3ds2.merchantOrderReference) + && Objects.equals(this.merchantRiskIndicator, paymentRequest3ds2.merchantRiskIndicator) + && Objects.equals(this.metadata, paymentRequest3ds2.metadata) + && Objects.equals(this.orderReference, paymentRequest3ds2.orderReference) + && Objects.equals(this.recurring, paymentRequest3ds2.recurring) + && Objects.equals( + this.recurringProcessingModel, paymentRequest3ds2.recurringProcessingModel) + && Objects.equals(this.reference, paymentRequest3ds2.reference) + && Objects.equals(this.selectedBrand, paymentRequest3ds2.selectedBrand) + && Objects.equals( + this.selectedRecurringDetailReference, + paymentRequest3ds2.selectedRecurringDetailReference) + && Objects.equals(this.sessionId, paymentRequest3ds2.sessionId) + && Objects.equals(this.shopperEmail, paymentRequest3ds2.shopperEmail) + && Objects.equals(this.shopperIP, paymentRequest3ds2.shopperIP) + && Objects.equals(this.shopperInteraction, paymentRequest3ds2.shopperInteraction) + && Objects.equals(this.shopperLocale, paymentRequest3ds2.shopperLocale) + && Objects.equals(this.shopperName, paymentRequest3ds2.shopperName) + && Objects.equals(this.shopperReference, paymentRequest3ds2.shopperReference) + && Objects.equals(this.shopperStatement, paymentRequest3ds2.shopperStatement) + && Objects.equals(this.socialSecurityNumber, paymentRequest3ds2.socialSecurityNumber) + && Objects.equals(this.splits, paymentRequest3ds2.splits) + && Objects.equals(this.store, paymentRequest3ds2.store) + && Objects.equals(this.telephoneNumber, paymentRequest3ds2.telephoneNumber) + && Objects.equals(this.threeDS2RequestData, paymentRequest3ds2.threeDS2RequestData) + && Objects.equals(this.threeDS2Result, paymentRequest3ds2.threeDS2Result) + && Objects.equals(this.threeDS2Token, paymentRequest3ds2.threeDS2Token) + && Objects.equals( + this.threeDSAuthenticationOnly, paymentRequest3ds2.threeDSAuthenticationOnly) + && Objects.equals(this.totalsGroup, paymentRequest3ds2.totalsGroup) + && Objects.equals(this.trustedShopper, paymentRequest3ds2.trustedShopper); } @Override public int hashCode() { - return Objects.hash(accountInfo, additionalAmount, additionalData, amount, applicationInfo, billingAddress, browserInfo, captureDelayHours, dateOfBirth, dccQuote, deliveryAddress, deliveryDate, deviceFingerprint, fraudOffset, installments, localizedShopperStatement, mcc, merchantAccount, merchantOrderReference, merchantRiskIndicator, metadata, orderReference, recurring, recurringProcessingModel, reference, selectedBrand, selectedRecurringDetailReference, sessionId, shopperEmail, shopperIP, shopperInteraction, shopperLocale, shopperName, shopperReference, shopperStatement, socialSecurityNumber, splits, store, telephoneNumber, threeDS2RequestData, threeDS2Result, threeDS2Token, threeDSAuthenticationOnly, totalsGroup, trustedShopper); + return Objects.hash( + accountInfo, + additionalAmount, + additionalData, + amount, + applicationInfo, + billingAddress, + browserInfo, + captureDelayHours, + dateOfBirth, + dccQuote, + deliveryAddress, + deliveryDate, + deviceFingerprint, + fraudOffset, + installments, + localizedShopperStatement, + mcc, + merchantAccount, + merchantOrderReference, + merchantRiskIndicator, + metadata, + orderReference, + recurring, + recurringProcessingModel, + reference, + selectedBrand, + selectedRecurringDetailReference, + sessionId, + shopperEmail, + shopperIP, + shopperInteraction, + shopperLocale, + shopperName, + shopperReference, + shopperStatement, + socialSecurityNumber, + splits, + store, + telephoneNumber, + threeDS2RequestData, + threeDS2Result, + threeDS2Token, + threeDSAuthenticationOnly, + totalsGroup, + trustedShopper); } @Override @@ -1874,18 +2502,28 @@ public String toString() { sb.append(" deviceFingerprint: ").append(toIndentedString(deviceFingerprint)).append("\n"); sb.append(" fraudOffset: ").append(toIndentedString(fraudOffset)).append("\n"); sb.append(" installments: ").append(toIndentedString(installments)).append("\n"); - sb.append(" localizedShopperStatement: ").append(toIndentedString(localizedShopperStatement)).append("\n"); + sb.append(" localizedShopperStatement: ") + .append(toIndentedString(localizedShopperStatement)) + .append("\n"); sb.append(" mcc: ").append(toIndentedString(mcc)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" merchantOrderReference: ").append(toIndentedString(merchantOrderReference)).append("\n"); - sb.append(" merchantRiskIndicator: ").append(toIndentedString(merchantRiskIndicator)).append("\n"); + sb.append(" merchantOrderReference: ") + .append(toIndentedString(merchantOrderReference)) + .append("\n"); + sb.append(" merchantRiskIndicator: ") + .append(toIndentedString(merchantRiskIndicator)) + .append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" orderReference: ").append(toIndentedString(orderReference)).append("\n"); sb.append(" recurring: ").append(toIndentedString(recurring)).append("\n"); - sb.append(" recurringProcessingModel: ").append(toIndentedString(recurringProcessingModel)).append("\n"); + sb.append(" recurringProcessingModel: ") + .append(toIndentedString(recurringProcessingModel)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" selectedBrand: ").append(toIndentedString(selectedBrand)).append("\n"); - sb.append(" selectedRecurringDetailReference: ").append(toIndentedString(selectedRecurringDetailReference)).append("\n"); + sb.append(" selectedRecurringDetailReference: ") + .append(toIndentedString(selectedRecurringDetailReference)) + .append("\n"); sb.append(" sessionId: ").append(toIndentedString(sessionId)).append("\n"); sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); sb.append(" shopperIP: ").append(toIndentedString(shopperIP)).append("\n"); @@ -1894,14 +2532,20 @@ public String toString() { sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append(" shopperStatement: ").append(toIndentedString(shopperStatement)).append("\n"); - sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); + sb.append(" socialSecurityNumber: ") + .append(toIndentedString(socialSecurityNumber)) + .append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" store: ").append(toIndentedString(store)).append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); - sb.append(" threeDS2RequestData: ").append(toIndentedString(threeDS2RequestData)).append("\n"); + sb.append(" threeDS2RequestData: ") + .append(toIndentedString(threeDS2RequestData)) + .append("\n"); sb.append(" threeDS2Result: ").append(toIndentedString(threeDS2Result)).append("\n"); sb.append(" threeDS2Token: ").append(toIndentedString(threeDS2Token)).append("\n"); - sb.append(" threeDSAuthenticationOnly: ").append(toIndentedString(threeDSAuthenticationOnly)).append("\n"); + sb.append(" threeDSAuthenticationOnly: ") + .append(toIndentedString(threeDSAuthenticationOnly)) + .append("\n"); sb.append(" totalsGroup: ").append(toIndentedString(totalsGroup)).append("\n"); sb.append(" trustedShopper: ").append(toIndentedString(trustedShopper)).append("\n"); sb.append("}"); @@ -1909,8 +2553,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1919,21 +2562,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentRequest3ds2 given an JSON string * * @param jsonString JSON string * @return An instance of PaymentRequest3ds2 - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentRequest3ds2 + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentRequest3ds2 */ public static PaymentRequest3ds2 fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentRequest3ds2.class); } -/** - * Convert an instance of PaymentRequest3ds2 to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentRequest3ds2 to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/PaymentResult.java b/src/main/java/com/adyen/model/payment/PaymentResult.java index c268a4bcc..3f24ada0d 100644 --- a/src/main/java/com/adyen/model/payment/PaymentResult.java +++ b/src/main/java/com/adyen/model/payment/PaymentResult.java @@ -2,35 +2,28 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.payment.Amount; -import com.adyen.model.payment.FraudResult; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * PaymentResult - */ +/** PaymentResult */ @JsonPropertyOrder({ PaymentResult.JSON_PROPERTY_ADDITIONAL_DATA, PaymentResult.JSON_PROPERTY_AUTH_CODE, @@ -44,7 +37,6 @@ PaymentResult.JSON_PROPERTY_REFUSAL_REASON, PaymentResult.JSON_PROPERTY_RESULT_CODE }) - public class PaymentResult { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -77,10 +69,35 @@ public class PaymentResult { private String refusalReason; /** - * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + * The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. + * Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – + * The transaction does not require 3D Secure authentication. Returned for [standalone + * authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * * **Authorised** – The payment was successfully authorised. This state serves as an indicator + * to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – + * Indicates the payment has been cancelled (either by the shopper or the merchant) before + * processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires + * further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 + * transactions. * **Error** – There was an error when the payment was being processed. The reason + * is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – + * The issuer requires the shopper's device fingerprint before the payment can be + * authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment + * has been authorised for a partial amount. This happens for card payments when the merchant + * supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – + * Indicates that it is not possible to obtain the final status of the payment. This can happen if + * the systems providing final status information for the payment are unavailable, or if the + * shopper needs to take further action to complete the payment. * **PresentToShopper** – + * Indicates that the response contains additional information that you need to present to a + * shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment + * has successfully been received by Adyen, and will be processed. This is the initial state for + * all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external + * web page or app to complete the authorisation. * **Refused** – Indicates the payment was + * refused. The reason is given in the `refusalReason` field. This is a final state. */ public enum ResultCodeEnum { - AUTHENTICATIONFINISHED(String.valueOf("AuthenticationFinished")), AUTHENTICATIONNOTREQUIRED(String.valueOf("AuthenticationNotRequired")), @@ -114,7 +131,7 @@ public enum ResultCodeEnum { private String value; ResultCodeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -135,7 +152,11 @@ public static ResultCodeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ResultCodeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResultCodeEnum.values())); + LOG.warning( + "ResultCodeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ResultCodeEnum.values())); return null; } } @@ -143,13 +164,15 @@ public static ResultCodeEnum fromValue(String value) { public static final String JSON_PROPERTY_RESULT_CODE = "resultCode"; private ResultCodeEnum resultCode; - public PaymentResult() { - } + public PaymentResult() {} /** - * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first: Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first: Go to **Customer Area** > **Developers** > + * **Additional data**. * @return the current {@code PaymentResult} instance, allowing for method chaining */ public PaymentResult additionalData(Map additionalData) { @@ -166,8 +189,12 @@ public PaymentResult putAdditionalDataItem(String key, String additionalDataItem } /** - * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. - * @return additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * + * @return additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first: Go to **Customer Area** > **Developers** > + * **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,9 +203,12 @@ public Map getAdditionalData() { } /** - * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first: Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first: Go to **Customer Area** > **Developers** > + * **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,9 +217,12 @@ public void setAdditionalData(Map additionalData) { } /** - * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * Authorisation code: * When the payment is authorised successfully, this field holds the + * authorisation code for the payment. * When the payment is not authorised, this field is empty. * - * @param authCode Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * @param authCode Authorisation code: * When the payment is authorised successfully, this field + * holds the authorisation code for the payment. * When the payment is not authorised, this + * field is empty. * @return the current {@code PaymentResult} instance, allowing for method chaining */ public PaymentResult authCode(String authCode) { @@ -198,8 +231,12 @@ public PaymentResult authCode(String authCode) { } /** - * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. - * @return authCode Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * Authorisation code: * When the payment is authorised successfully, this field holds the + * authorisation code for the payment. * When the payment is not authorised, this field is empty. + * + * @return authCode Authorisation code: * When the payment is authorised successfully, this field + * holds the authorisation code for the payment. * When the payment is not authorised, this + * field is empty. */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,9 +245,12 @@ public String getAuthCode() { } /** - * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * Authorisation code: * When the payment is authorised successfully, this field holds the + * authorisation code for the payment. * When the payment is not authorised, this field is empty. * - * @param authCode Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * @param authCode Authorisation code: * When the payment is authorised successfully, this field + * holds the authorisation code for the payment. * When the payment is not authorised, this + * field is empty. */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,7 +261,7 @@ public void setAuthCode(String authCode) { /** * dccAmount * - * @param dccAmount + * @param dccAmount * @return the current {@code PaymentResult} instance, allowing for method chaining */ public PaymentResult dccAmount(Amount dccAmount) { @@ -231,7 +271,8 @@ public PaymentResult dccAmount(Amount dccAmount) { /** * Get dccAmount - * @return dccAmount + * + * @return dccAmount */ @JsonProperty(JSON_PROPERTY_DCC_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,7 +283,7 @@ public Amount getDccAmount() { /** * dccAmount * - * @param dccAmount + * @param dccAmount */ @JsonProperty(JSON_PROPERTY_DCC_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -251,9 +292,13 @@ public void setDccAmount(Amount dccAmount) { } /** - * Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * Cryptographic signature used to verify `dccQuote`. > This value only applies if + * you have implemented Dynamic Currency Conversion. For more information, [contact + * Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param dccSignature Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @param dccSignature Cryptographic signature used to verify `dccQuote`. > This + * value only applies if you have implemented Dynamic Currency Conversion. For more + * information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * @return the current {@code PaymentResult} instance, allowing for method chaining */ public PaymentResult dccSignature(String dccSignature) { @@ -262,8 +307,13 @@ public PaymentResult dccSignature(String dccSignature) { } /** - * Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). - * @return dccSignature Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * Cryptographic signature used to verify `dccQuote`. > This value only applies if + * you have implemented Dynamic Currency Conversion. For more information, [contact + * Support](https://www.adyen.help/hc/en-us/requests/new). + * + * @return dccSignature Cryptographic signature used to verify `dccQuote`. > This + * value only applies if you have implemented Dynamic Currency Conversion. For more + * information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_DCC_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -272,9 +322,13 @@ public String getDccSignature() { } /** - * Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * Cryptographic signature used to verify `dccQuote`. > This value only applies if + * you have implemented Dynamic Currency Conversion. For more information, [contact + * Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param dccSignature Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @param dccSignature Cryptographic signature used to verify `dccQuote`. > This + * value only applies if you have implemented Dynamic Currency Conversion. For more + * information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_DCC_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -285,7 +339,7 @@ public void setDccSignature(String dccSignature) { /** * fraudResult * - * @param fraudResult + * @param fraudResult * @return the current {@code PaymentResult} instance, allowing for method chaining */ public PaymentResult fraudResult(FraudResult fraudResult) { @@ -295,7 +349,8 @@ public PaymentResult fraudResult(FraudResult fraudResult) { /** * Get fraudResult - * @return fraudResult + * + * @return fraudResult */ @JsonProperty(JSON_PROPERTY_FRAUD_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -306,7 +361,7 @@ public FraudResult getFraudResult() { /** * fraudResult * - * @param fraudResult + * @param fraudResult */ @JsonProperty(JSON_PROPERTY_FRAUD_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -315,9 +370,11 @@ public void setFraudResult(FraudResult fraudResult) { } /** - * The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL. + * The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this + * URL. * - * @param issuerUrl The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL. + * @param issuerUrl The URL to direct the shopper to. > In case of SecurePlus, do not redirect + * a shopper to this URL. * @return the current {@code PaymentResult} instance, allowing for method chaining */ public PaymentResult issuerUrl(String issuerUrl) { @@ -326,8 +383,11 @@ public PaymentResult issuerUrl(String issuerUrl) { } /** - * The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL. - * @return issuerUrl The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL. + * The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this + * URL. + * + * @return issuerUrl The URL to direct the shopper to. > In case of SecurePlus, do not redirect + * a shopper to this URL. */ @JsonProperty(JSON_PROPERTY_ISSUER_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -336,9 +396,11 @@ public String getIssuerUrl() { } /** - * The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL. + * The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this + * URL. * - * @param issuerUrl The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL. + * @param issuerUrl The URL to direct the shopper to. > In case of SecurePlus, do not redirect + * a shopper to this URL. */ @JsonProperty(JSON_PROPERTY_ISSUER_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -359,6 +421,7 @@ public PaymentResult md(String md) { /** * The payment session. + * * @return md The payment session. */ @JsonProperty(JSON_PROPERTY_MD) @@ -379,9 +442,15 @@ public void setMd(String md) { } /** - * The 3D request data for the issuer. If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/classic-integration/3d-secure). + * The 3D request data for the issuer. If the value is + * **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it + * in the `/authorise3D` request. For more information, see [3D + * Secure](https://docs.adyen.com/classic-integration/3d-secure). * - * @param paRequest The 3D request data for the issuer. If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/classic-integration/3d-secure). + * @param paRequest The 3D request data for the issuer. If the value is + * **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass + * it in the `/authorise3D` request. For more information, see [3D + * Secure](https://docs.adyen.com/classic-integration/3d-secure). * @return the current {@code PaymentResult} instance, allowing for method chaining */ public PaymentResult paRequest(String paRequest) { @@ -390,8 +459,15 @@ public PaymentResult paRequest(String paRequest) { } /** - * The 3D request data for the issuer. If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/classic-integration/3d-secure). - * @return paRequest The 3D request data for the issuer. If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/classic-integration/3d-secure). + * The 3D request data for the issuer. If the value is + * **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it + * in the `/authorise3D` request. For more information, see [3D + * Secure](https://docs.adyen.com/classic-integration/3d-secure). + * + * @return paRequest The 3D request data for the issuer. If the value is + * **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass + * it in the `/authorise3D` request. For more information, see [3D + * Secure](https://docs.adyen.com/classic-integration/3d-secure). */ @JsonProperty(JSON_PROPERTY_PA_REQUEST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -400,9 +476,15 @@ public String getPaRequest() { } /** - * The 3D request data for the issuer. If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/classic-integration/3d-secure). + * The 3D request data for the issuer. If the value is + * **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it + * in the `/authorise3D` request. For more information, see [3D + * Secure](https://docs.adyen.com/classic-integration/3d-secure). * - * @param paRequest The 3D request data for the issuer. If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/classic-integration/3d-secure). + * @param paRequest The 3D request data for the issuer. If the value is + * **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass + * it in the `/authorise3D` request. For more information, see [3D + * Secure](https://docs.adyen.com/classic-integration/3d-secure). */ @JsonProperty(JSON_PROPERTY_PA_REQUEST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -411,9 +493,11 @@ public void setPaRequest(String paRequest) { } /** - * Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character reference associated with the transaction/request. This value is + * globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @param pspReference Adyen's 16-character reference associated with the transaction/request. + * This value is globally unique; quote it when communicating with us about this request. * @return the current {@code PaymentResult} instance, allowing for method chaining */ public PaymentResult pspReference(String pspReference) { @@ -422,8 +506,12 @@ public PaymentResult pspReference(String pspReference) { } /** - * Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. - * @return pspReference Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character reference associated with the transaction/request. This value is + * globally unique; quote it when communicating with us about this request. + * + * @return pspReference Adyen's 16-character reference associated with the + * transaction/request. This value is globally unique; quote it when communicating with us + * about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -432,9 +520,11 @@ public String getPspReference() { } /** - * Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character reference associated with the transaction/request. This value is + * globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @param pspReference Adyen's 16-character reference associated with the transaction/request. + * This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -443,9 +533,17 @@ public void setPspReference(String pspReference) { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this + * field holds Adyen's mapped reason for the refusal or a description of the error. When a + * transaction fails, the authorisation response includes `resultCode` and + * `refusalReason` values. For more information, see [Refusal + * reasons](https://docs.adyen.com/development-resources/refusal-reasons). * - * @param refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @param refusalReason If the payment's authorisation is refused or an error occurs during + * authorisation, this field holds Adyen's mapped reason for the refusal or a description + * of the error. When a transaction fails, the authorisation response includes + * `resultCode` and `refusalReason` values. For more information, see + * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). * @return the current {@code PaymentResult} instance, allowing for method chaining */ public PaymentResult refusalReason(String refusalReason) { @@ -454,8 +552,17 @@ public PaymentResult refusalReason(String refusalReason) { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). - * @return refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this + * field holds Adyen's mapped reason for the refusal or a description of the error. When a + * transaction fails, the authorisation response includes `resultCode` and + * `refusalReason` values. For more information, see [Refusal + * reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * + * @return refusalReason If the payment's authorisation is refused or an error occurs during + * authorisation, this field holds Adyen's mapped reason for the refusal or a description + * of the error. When a transaction fails, the authorisation response includes + * `resultCode` and `refusalReason` values. For more information, see + * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -464,9 +571,17 @@ public String getRefusalReason() { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this + * field holds Adyen's mapped reason for the refusal or a description of the error. When a + * transaction fails, the authorisation response includes `resultCode` and + * `refusalReason` values. For more information, see [Refusal + * reasons](https://docs.adyen.com/development-resources/refusal-reasons). * - * @param refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @param refusalReason If the payment's authorisation is refused or an error occurs during + * authorisation, this field holds Adyen's mapped reason for the refusal or a description + * of the error. When a transaction fails, the authorisation response includes + * `resultCode` and `refusalReason` values. For more information, see + * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -475,9 +590,62 @@ public void setRefusalReason(String refusalReason) { } /** - * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + * The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. + * Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – + * The transaction does not require 3D Secure authentication. Returned for [standalone + * authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * * **Authorised** – The payment was successfully authorised. This state serves as an indicator + * to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – + * Indicates the payment has been cancelled (either by the shopper or the merchant) before + * processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires + * further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 + * transactions. * **Error** – There was an error when the payment was being processed. The reason + * is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – + * The issuer requires the shopper's device fingerprint before the payment can be + * authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment + * has been authorised for a partial amount. This happens for card payments when the merchant + * supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – + * Indicates that it is not possible to obtain the final status of the payment. This can happen if + * the systems providing final status information for the payment are unavailable, or if the + * shopper needs to take further action to complete the payment. * **PresentToShopper** – + * Indicates that the response contains additional information that you need to present to a + * shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment + * has successfully been received by Adyen, and will be processed. This is the initial state for + * all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external + * web page or app to complete the authorisation. * **Refused** – Indicates the payment was + * refused. The reason is given in the `refusalReason` field. This is a final state. * - * @param resultCode The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + * @param resultCode The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure + * 2. Returned for 3D Secure 2 authentication-only transactions. * + * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. + * Returned for [standalone authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * * **Authorised** – The payment was successfully authorised. This state serves as an + * indicator to proceed with the delivery of goods and services. This is a final state. * + * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the + * merchant) before processing was completed. This is a final state. * **ChallengeShopper** – + * The issuer requires further shopper interaction before the payment can be authenticated. + * Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment + * was being processed. The reason is given in the `refusalReason` field. This is a + * final state. * **IdentifyShopper** – The issuer requires the shopper's device + * fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. + * * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This + * happens for card payments when the merchant supports Partial Authorisations and the + * cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to + * obtain the final status of the payment. This can happen if the systems providing final + * status information for the payment are unavailable, or if the shopper needs to take further + * action to complete the payment. * **PresentToShopper** – Indicates that the response + * contains additional information that you need to present to a shopper, so that they can use + * it to complete a payment. * **Received** – Indicates the payment has successfully been + * received by Adyen, and will be processed. This is the initial state for all payments. * + * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or + * app to complete the authorisation. * **Refused** – Indicates the payment was refused. The + * reason is given in the `refusalReason` field. This is a final state. * @return the current {@code PaymentResult} instance, allowing for method chaining */ public PaymentResult resultCode(ResultCodeEnum resultCode) { @@ -486,8 +654,62 @@ public PaymentResult resultCode(ResultCodeEnum resultCode) { } /** - * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. - * @return resultCode The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + * The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. + * Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – + * The transaction does not require 3D Secure authentication. Returned for [standalone + * authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * * **Authorised** – The payment was successfully authorised. This state serves as an indicator + * to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – + * Indicates the payment has been cancelled (either by the shopper or the merchant) before + * processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires + * further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 + * transactions. * **Error** – There was an error when the payment was being processed. The reason + * is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – + * The issuer requires the shopper's device fingerprint before the payment can be + * authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment + * has been authorised for a partial amount. This happens for card payments when the merchant + * supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – + * Indicates that it is not possible to obtain the final status of the payment. This can happen if + * the systems providing final status information for the payment are unavailable, or if the + * shopper needs to take further action to complete the payment. * **PresentToShopper** – + * Indicates that the response contains additional information that you need to present to a + * shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment + * has successfully been received by Adyen, and will be processed. This is the initial state for + * all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external + * web page or app to complete the authorisation. * **Refused** – Indicates the payment was + * refused. The reason is given in the `refusalReason` field. This is a final state. + * + * @return resultCode The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure + * 2. Returned for 3D Secure 2 authentication-only transactions. * + * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. + * Returned for [standalone authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * * **Authorised** – The payment was successfully authorised. This state serves as an + * indicator to proceed with the delivery of goods and services. This is a final state. * + * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the + * merchant) before processing was completed. This is a final state. * **ChallengeShopper** – + * The issuer requires further shopper interaction before the payment can be authenticated. + * Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment + * was being processed. The reason is given in the `refusalReason` field. This is a + * final state. * **IdentifyShopper** – The issuer requires the shopper's device + * fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. + * * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This + * happens for card payments when the merchant supports Partial Authorisations and the + * cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to + * obtain the final status of the payment. This can happen if the systems providing final + * status information for the payment are unavailable, or if the shopper needs to take further + * action to complete the payment. * **PresentToShopper** – Indicates that the response + * contains additional information that you need to present to a shopper, so that they can use + * it to complete a payment. * **Received** – Indicates the payment has successfully been + * received by Adyen, and will be processed. This is the initial state for all payments. * + * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or + * app to complete the authorisation. * **Refused** – Indicates the payment was refused. The + * reason is given in the `refusalReason` field. This is a final state. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -496,9 +718,62 @@ public ResultCodeEnum getResultCode() { } /** - * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + * The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. + * Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – + * The transaction does not require 3D Secure authentication. Returned for [standalone + * authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * * **Authorised** – The payment was successfully authorised. This state serves as an indicator + * to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – + * Indicates the payment has been cancelled (either by the shopper or the merchant) before + * processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires + * further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 + * transactions. * **Error** – There was an error when the payment was being processed. The reason + * is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – + * The issuer requires the shopper's device fingerprint before the payment can be + * authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment + * has been authorised for a partial amount. This happens for card payments when the merchant + * supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – + * Indicates that it is not possible to obtain the final status of the payment. This can happen if + * the systems providing final status information for the payment are unavailable, or if the + * shopper needs to take further action to complete the payment. * **PresentToShopper** – + * Indicates that the response contains additional information that you need to present to a + * shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment + * has successfully been received by Adyen, and will be processed. This is the initial state for + * all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external + * web page or app to complete the authorisation. * **Refused** – Indicates the payment was + * refused. The reason is given in the `refusalReason` field. This is a final state. * - * @param resultCode The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + * @param resultCode The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure + * 2. Returned for 3D Secure 2 authentication-only transactions. * + * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. + * Returned for [standalone authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * * **Authorised** – The payment was successfully authorised. This state serves as an + * indicator to proceed with the delivery of goods and services. This is a final state. * + * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the + * merchant) before processing was completed. This is a final state. * **ChallengeShopper** – + * The issuer requires further shopper interaction before the payment can be authenticated. + * Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment + * was being processed. The reason is given in the `refusalReason` field. This is a + * final state. * **IdentifyShopper** – The issuer requires the shopper's device + * fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. + * * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This + * happens for card payments when the merchant supports Partial Authorisations and the + * cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to + * obtain the final status of the payment. This can happen if the systems providing final + * status information for the payment are unavailable, or if the shopper needs to take further + * action to complete the payment. * **PresentToShopper** – Indicates that the response + * contains additional information that you need to present to a shopper, so that they can use + * it to complete a payment. * **Received** – Indicates the payment has successfully been + * received by Adyen, and will be processed. This is the initial state for all payments. * + * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or + * app to complete the authorisation. * **Refused** – Indicates the payment was refused. The + * reason is given in the `refusalReason` field. This is a final state. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -506,9 +781,7 @@ public void setResultCode(ResultCodeEnum resultCode) { this.resultCode = resultCode; } - /** - * Return true if this PaymentResult object is equal to o. - */ + /** Return true if this PaymentResult object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -518,22 +791,33 @@ public boolean equals(Object o) { return false; } PaymentResult paymentResult = (PaymentResult) o; - return Objects.equals(this.additionalData, paymentResult.additionalData) && - Objects.equals(this.authCode, paymentResult.authCode) && - Objects.equals(this.dccAmount, paymentResult.dccAmount) && - Objects.equals(this.dccSignature, paymentResult.dccSignature) && - Objects.equals(this.fraudResult, paymentResult.fraudResult) && - Objects.equals(this.issuerUrl, paymentResult.issuerUrl) && - Objects.equals(this.md, paymentResult.md) && - Objects.equals(this.paRequest, paymentResult.paRequest) && - Objects.equals(this.pspReference, paymentResult.pspReference) && - Objects.equals(this.refusalReason, paymentResult.refusalReason) && - Objects.equals(this.resultCode, paymentResult.resultCode); + return Objects.equals(this.additionalData, paymentResult.additionalData) + && Objects.equals(this.authCode, paymentResult.authCode) + && Objects.equals(this.dccAmount, paymentResult.dccAmount) + && Objects.equals(this.dccSignature, paymentResult.dccSignature) + && Objects.equals(this.fraudResult, paymentResult.fraudResult) + && Objects.equals(this.issuerUrl, paymentResult.issuerUrl) + && Objects.equals(this.md, paymentResult.md) + && Objects.equals(this.paRequest, paymentResult.paRequest) + && Objects.equals(this.pspReference, paymentResult.pspReference) + && Objects.equals(this.refusalReason, paymentResult.refusalReason) + && Objects.equals(this.resultCode, paymentResult.resultCode); } @Override public int hashCode() { - return Objects.hash(additionalData, authCode, dccAmount, dccSignature, fraudResult, issuerUrl, md, paRequest, pspReference, refusalReason, resultCode); + return Objects.hash( + additionalData, + authCode, + dccAmount, + dccSignature, + fraudResult, + issuerUrl, + md, + paRequest, + pspReference, + refusalReason, + resultCode); } @Override @@ -556,8 +840,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -566,7 +849,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentResult given an JSON string * * @param jsonString JSON string @@ -576,11 +859,12 @@ private String toIndentedString(Object o) { public static PaymentResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentResult.class); } -/** - * Convert an instance of PaymentResult to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/Phone.java b/src/main/java/com/adyen/model/payment/Phone.java index 0157d882d..ebe7327ed 100644 --- a/src/main/java/com/adyen/model/payment/Phone.java +++ b/src/main/java/com/adyen/model/payment/Phone.java @@ -2,36 +2,23 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Phone - */ -@JsonPropertyOrder({ - Phone.JSON_PROPERTY_CC, - Phone.JSON_PROPERTY_SUBSCRIBER -}) - +/** Phone */ +@JsonPropertyOrder({Phone.JSON_PROPERTY_CC, Phone.JSON_PROPERTY_SUBSCRIBER}) public class Phone { public static final String JSON_PROPERTY_CC = "cc"; private String cc; @@ -39,8 +26,7 @@ public class Phone { public static final String JSON_PROPERTY_SUBSCRIBER = "subscriber"; private String subscriber; - public Phone() { - } + public Phone() {} /** * Country code. Length: 1–3 digits. @@ -55,6 +41,7 @@ public Phone cc(String cc) { /** * Country code. Length: 1–3 digits. + * * @return cc Country code. Length: 1–3 digits. */ @JsonProperty(JSON_PROPERTY_CC) @@ -75,9 +62,9 @@ public void setCc(String cc) { } /** - * Subscriber number. Length: 4-15 digits. + * Subscriber number. Length: 4-15 digits. * - * @param subscriber Subscriber number. Length: 4-15 digits. + * @param subscriber Subscriber number. Length: 4-15 digits. * @return the current {@code Phone} instance, allowing for method chaining */ public Phone subscriber(String subscriber) { @@ -86,8 +73,9 @@ public Phone subscriber(String subscriber) { } /** - * Subscriber number. Length: 4-15 digits. - * @return subscriber Subscriber number. Length: 4-15 digits. + * Subscriber number. Length: 4-15 digits. + * + * @return subscriber Subscriber number. Length: 4-15 digits. */ @JsonProperty(JSON_PROPERTY_SUBSCRIBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +84,9 @@ public String getSubscriber() { } /** - * Subscriber number. Length: 4-15 digits. + * Subscriber number. Length: 4-15 digits. * - * @param subscriber Subscriber number. Length: 4-15 digits. + * @param subscriber Subscriber number. Length: 4-15 digits. */ @JsonProperty(JSON_PROPERTY_SUBSCRIBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +94,7 @@ public void setSubscriber(String subscriber) { this.subscriber = subscriber; } - /** - * Return true if this Phone object is equal to o. - */ + /** Return true if this Phone object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +104,7 @@ public boolean equals(Object o) { return false; } Phone phone = (Phone) o; - return Objects.equals(this.cc, phone.cc) && - Objects.equals(this.subscriber, phone.subscriber); + return Objects.equals(this.cc, phone.cc) && Objects.equals(this.subscriber, phone.subscriber); } @Override @@ -138,8 +123,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +132,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Phone given an JSON string * * @param jsonString JSON string @@ -158,11 +142,12 @@ private String toIndentedString(Object o) { public static Phone fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Phone.class); } -/** - * Convert an instance of Phone to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Phone to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/PlatformChargebackLogic.java b/src/main/java/com/adyen/model/payment/PlatformChargebackLogic.java index 25297f843..9527d5aae 100644 --- a/src/main/java/com/adyen/model/payment/PlatformChargebackLogic.java +++ b/src/main/java/com/adyen/model/payment/PlatformChargebackLogic.java @@ -2,43 +2,37 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * PlatformChargebackLogic - */ +/** PlatformChargebackLogic */ @JsonPropertyOrder({ PlatformChargebackLogic.JSON_PROPERTY_BEHAVIOR, PlatformChargebackLogic.JSON_PROPERTY_COST_ALLOCATION_ACCOUNT, PlatformChargebackLogic.JSON_PROPERTY_TARGET_ACCOUNT }) - public class PlatformChargebackLogic { /** - * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. */ public enum BehaviorEnum { - DEDUCTACCORDINGTOSPLITRATIO(String.valueOf("deductAccordingToSplitRatio")), DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), @@ -50,7 +44,7 @@ public enum BehaviorEnum { private String value; BehaviorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -71,7 +65,11 @@ public static BehaviorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("BehaviorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(BehaviorEnum.values())); + LOG.warning( + "BehaviorEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(BehaviorEnum.values())); return null; } } @@ -85,13 +83,15 @@ public static BehaviorEnum fromValue(String value) { public static final String JSON_PROPERTY_TARGET_ACCOUNT = "targetAccount"; private String targetAccount; - public PlatformChargebackLogic() { - } + public PlatformChargebackLogic() {} /** - * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. * - * @param behavior The method of handling the chargeback. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * @param behavior The method of handling the chargeback. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**, + * **deductAccordingToSplitRatio**. * @return the current {@code PlatformChargebackLogic} instance, allowing for method chaining */ public PlatformChargebackLogic behavior(BehaviorEnum behavior) { @@ -100,8 +100,12 @@ public PlatformChargebackLogic behavior(BehaviorEnum behavior) { } /** - * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. - * @return behavior The method of handling the chargeback. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * + * @return behavior The method of handling the chargeback. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**, + * **deductAccordingToSplitRatio**. */ @JsonProperty(JSON_PROPERTY_BEHAVIOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,9 +114,12 @@ public BehaviorEnum getBehavior() { } /** - * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, + * **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. * - * @param behavior The method of handling the chargeback. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. + * @param behavior The method of handling the chargeback. Possible values: + * **deductFromLiableAccount**, **deductFromOneBalanceAccount**, + * **deductAccordingToSplitRatio**. */ @JsonProperty(JSON_PROPERTY_BEHAVIOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,9 +128,12 @@ public void setBehavior(BehaviorEnum behavior) { } /** - * The unique identifier of the balance account to which the chargeback fees are booked. By default, the chargeback fees are booked to your liable balance account. + * The unique identifier of the balance account to which the chargeback fees are booked. By + * default, the chargeback fees are booked to your liable balance account. * - * @param costAllocationAccount The unique identifier of the balance account to which the chargeback fees are booked. By default, the chargeback fees are booked to your liable balance account. + * @param costAllocationAccount The unique identifier of the balance account to which the + * chargeback fees are booked. By default, the chargeback fees are booked to your liable + * balance account. * @return the current {@code PlatformChargebackLogic} instance, allowing for method chaining */ public PlatformChargebackLogic costAllocationAccount(String costAllocationAccount) { @@ -132,8 +142,12 @@ public PlatformChargebackLogic costAllocationAccount(String costAllocationAccoun } /** - * The unique identifier of the balance account to which the chargeback fees are booked. By default, the chargeback fees are booked to your liable balance account. - * @return costAllocationAccount The unique identifier of the balance account to which the chargeback fees are booked. By default, the chargeback fees are booked to your liable balance account. + * The unique identifier of the balance account to which the chargeback fees are booked. By + * default, the chargeback fees are booked to your liable balance account. + * + * @return costAllocationAccount The unique identifier of the balance account to which the + * chargeback fees are booked. By default, the chargeback fees are booked to your liable + * balance account. */ @JsonProperty(JSON_PROPERTY_COST_ALLOCATION_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +156,12 @@ public String getCostAllocationAccount() { } /** - * The unique identifier of the balance account to which the chargeback fees are booked. By default, the chargeback fees are booked to your liable balance account. + * The unique identifier of the balance account to which the chargeback fees are booked. By + * default, the chargeback fees are booked to your liable balance account. * - * @param costAllocationAccount The unique identifier of the balance account to which the chargeback fees are booked. By default, the chargeback fees are booked to your liable balance account. + * @param costAllocationAccount The unique identifier of the balance account to which the + * chargeback fees are booked. By default, the chargeback fees are booked to your liable + * balance account. */ @JsonProperty(JSON_PROPERTY_COST_ALLOCATION_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -153,9 +170,11 @@ public void setCostAllocationAccount(String costAllocationAccount) { } /** - * The unique identifier of the balance account against which the disputed amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. + * The unique identifier of the balance account against which the disputed amount is booked. + * Required if `behavior` is **deductFromOneBalanceAccount**. * - * @param targetAccount The unique identifier of the balance account against which the disputed amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. + * @param targetAccount The unique identifier of the balance account against which the disputed + * amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. * @return the current {@code PlatformChargebackLogic} instance, allowing for method chaining */ public PlatformChargebackLogic targetAccount(String targetAccount) { @@ -164,8 +183,11 @@ public PlatformChargebackLogic targetAccount(String targetAccount) { } /** - * The unique identifier of the balance account against which the disputed amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. - * @return targetAccount The unique identifier of the balance account against which the disputed amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. + * The unique identifier of the balance account against which the disputed amount is booked. + * Required if `behavior` is **deductFromOneBalanceAccount**. + * + * @return targetAccount The unique identifier of the balance account against which the disputed + * amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_TARGET_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -174,9 +196,11 @@ public String getTargetAccount() { } /** - * The unique identifier of the balance account against which the disputed amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. + * The unique identifier of the balance account against which the disputed amount is booked. + * Required if `behavior` is **deductFromOneBalanceAccount**. * - * @param targetAccount The unique identifier of the balance account against which the disputed amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. + * @param targetAccount The unique identifier of the balance account against which the disputed + * amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. */ @JsonProperty(JSON_PROPERTY_TARGET_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -184,9 +208,7 @@ public void setTargetAccount(String targetAccount) { this.targetAccount = targetAccount; } - /** - * Return true if this PlatformChargebackLogic object is equal to o. - */ + /** Return true if this PlatformChargebackLogic object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -196,9 +218,9 @@ public boolean equals(Object o) { return false; } PlatformChargebackLogic platformChargebackLogic = (PlatformChargebackLogic) o; - return Objects.equals(this.behavior, platformChargebackLogic.behavior) && - Objects.equals(this.costAllocationAccount, platformChargebackLogic.costAllocationAccount) && - Objects.equals(this.targetAccount, platformChargebackLogic.targetAccount); + return Objects.equals(this.behavior, platformChargebackLogic.behavior) + && Objects.equals(this.costAllocationAccount, platformChargebackLogic.costAllocationAccount) + && Objects.equals(this.targetAccount, platformChargebackLogic.targetAccount); } @Override @@ -211,15 +233,16 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PlatformChargebackLogic {\n"); sb.append(" behavior: ").append(toIndentedString(behavior)).append("\n"); - sb.append(" costAllocationAccount: ").append(toIndentedString(costAllocationAccount)).append("\n"); + sb.append(" costAllocationAccount: ") + .append(toIndentedString(costAllocationAccount)) + .append("\n"); sb.append(" targetAccount: ").append(toIndentedString(targetAccount)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -228,21 +251,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PlatformChargebackLogic given an JSON string * * @param jsonString JSON string * @return An instance of PlatformChargebackLogic - * @throws JsonProcessingException if the JSON string is invalid with respect to PlatformChargebackLogic + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PlatformChargebackLogic */ public static PlatformChargebackLogic fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PlatformChargebackLogic.class); } -/** - * Convert an instance of PlatformChargebackLogic to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PlatformChargebackLogic to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/Recurring.java b/src/main/java/com/adyen/model/payment/Recurring.java index adb17ca45..3a988f401 100644 --- a/src/main/java/com/adyen/model/payment/Recurring.java +++ b/src/main/java/com/adyen/model/payment/Recurring.java @@ -2,32 +2,27 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * Recurring - */ +/** Recurring */ @JsonPropertyOrder({ Recurring.JSON_PROPERTY_CONTRACT, Recurring.JSON_PROPERTY_RECURRING_DETAIL_NAME, @@ -35,13 +30,20 @@ Recurring.JSON_PROPERTY_RECURRING_FREQUENCY, Recurring.JSON_PROPERTY_TOKEN_SERVICE }) - public class Recurring { /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment + * details can be used to initiate a one-click payment, where the shopper enters the [card + * security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a + * payout](https://docs.adyen.com/online-payments/online-payouts). */ public enum ContractEnum { - ONECLICK(String.valueOf("ONECLICK")), RECURRING(String.valueOf("RECURRING")), @@ -53,7 +55,7 @@ public enum ContractEnum { private String value; ContractEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -74,7 +76,11 @@ public static ContractEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ContractEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ContractEnum.values())); + LOG.warning( + "ContractEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ContractEnum.values())); return null; } } @@ -91,11 +97,8 @@ public static ContractEnum fromValue(String value) { public static final String JSON_PROPERTY_RECURRING_FREQUENCY = "recurringFrequency"; private String recurringFrequency; - /** - * The name of the token service. - */ + /** The name of the token service. */ public enum TokenServiceEnum { - VISATOKENSERVICE(String.valueOf("VISATOKENSERVICE")), MCTOKENSERVICE(String.valueOf("MCTOKENSERVICE")), @@ -109,7 +112,7 @@ public enum TokenServiceEnum { private String value; TokenServiceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -130,7 +133,11 @@ public static TokenServiceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TokenServiceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TokenServiceEnum.values())); + LOG.warning( + "TokenServiceEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TokenServiceEnum.values())); return null; } } @@ -138,13 +145,30 @@ public static TokenServiceEnum fromValue(String value) { public static final String JSON_PROPERTY_TOKEN_SERVICE = "tokenService"; private TokenServiceEnum tokenService; - public Recurring() { - } + public Recurring() {} /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment + * details can be used to initiate a one-click payment, where the shopper enters the [card + * security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a + * payout](https://docs.adyen.com/online-payments/online-payouts). * - * @param contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * @param contract The type of recurring contract to be used. Possible values: * + * `ONECLICK` – Payment details can be used to initiate a one-click payment, where + * the shopper enters the [card security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make + * a payout](https://docs.adyen.com/online-payments/online-payouts). * @return the current {@code Recurring} instance, allowing for method chaining */ public Recurring contract(ContractEnum contract) { @@ -153,8 +177,27 @@ public Recurring contract(ContractEnum contract) { } /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). - * @return contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment + * details can be used to initiate a one-click payment, where the shopper enters the [card + * security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a + * payout](https://docs.adyen.com/online-payments/online-payouts). + * + * @return contract The type of recurring contract to be used. Possible values: * + * `ONECLICK` – Payment details can be used to initiate a one-click payment, where + * the shopper enters the [card security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make + * a payout](https://docs.adyen.com/online-payments/online-payouts). */ @JsonProperty(JSON_PROPERTY_CONTRACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,9 +206,27 @@ public ContractEnum getContract() { } /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment + * details can be used to initiate a one-click payment, where the shopper enters the [card + * security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a + * payout](https://docs.adyen.com/online-payments/online-payouts). * - * @param contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * @param contract The type of recurring contract to be used. Possible values: * + * `ONECLICK` – Payment details can be used to initiate a one-click payment, where + * the shopper enters the [card security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make + * a payout](https://docs.adyen.com/online-payments/online-payouts). */ @JsonProperty(JSON_PROPERTY_CONTRACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,6 +247,7 @@ public Recurring recurringDetailName(String recurringDetailName) { /** * A descriptive name for this detail. + * * @return recurringDetailName A descriptive name for this detail. */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_NAME) @@ -208,7 +270,8 @@ public void setRecurringDetailName(String recurringDetailName) { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. * - * @param recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. + * @param recurringExpiry Date after which no further authorisations shall be performed. Only for + * 3D Secure 2. * @return the current {@code Recurring} instance, allowing for method chaining */ public Recurring recurringExpiry(OffsetDateTime recurringExpiry) { @@ -218,7 +281,9 @@ public Recurring recurringExpiry(OffsetDateTime recurringExpiry) { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. - * @return recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. + * + * @return recurringExpiry Date after which no further authorisations shall be performed. Only for + * 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -229,7 +294,8 @@ public OffsetDateTime getRecurringExpiry() { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. * - * @param recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. + * @param recurringExpiry Date after which no further authorisations shall be performed. Only for + * 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,6 +316,7 @@ public Recurring recurringFrequency(String recurringFrequency) { /** * Minimum number of days between authorisations. Only for 3D Secure 2. + * * @return recurringFrequency Minimum number of days between authorisations. Only for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY) @@ -282,6 +349,7 @@ public Recurring tokenService(TokenServiceEnum tokenService) { /** * The name of the token service. + * * @return tokenService The name of the token service. */ @JsonProperty(JSON_PROPERTY_TOKEN_SERVICE) @@ -301,9 +369,7 @@ public void setTokenService(TokenServiceEnum tokenService) { this.tokenService = tokenService; } - /** - * Return true if this Recurring object is equal to o. - */ + /** Return true if this Recurring object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -313,16 +379,17 @@ public boolean equals(Object o) { return false; } Recurring recurring = (Recurring) o; - return Objects.equals(this.contract, recurring.contract) && - Objects.equals(this.recurringDetailName, recurring.recurringDetailName) && - Objects.equals(this.recurringExpiry, recurring.recurringExpiry) && - Objects.equals(this.recurringFrequency, recurring.recurringFrequency) && - Objects.equals(this.tokenService, recurring.tokenService); + return Objects.equals(this.contract, recurring.contract) + && Objects.equals(this.recurringDetailName, recurring.recurringDetailName) + && Objects.equals(this.recurringExpiry, recurring.recurringExpiry) + && Objects.equals(this.recurringFrequency, recurring.recurringFrequency) + && Objects.equals(this.tokenService, recurring.tokenService); } @Override public int hashCode() { - return Objects.hash(contract, recurringDetailName, recurringExpiry, recurringFrequency, tokenService); + return Objects.hash( + contract, recurringDetailName, recurringExpiry, recurringFrequency, tokenService); } @Override @@ -330,7 +397,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Recurring {\n"); sb.append(" contract: ").append(toIndentedString(contract)).append("\n"); - sb.append(" recurringDetailName: ").append(toIndentedString(recurringDetailName)).append("\n"); + sb.append(" recurringDetailName: ") + .append(toIndentedString(recurringDetailName)) + .append("\n"); sb.append(" recurringExpiry: ").append(toIndentedString(recurringExpiry)).append("\n"); sb.append(" recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n"); sb.append(" tokenService: ").append(toIndentedString(tokenService)).append("\n"); @@ -339,8 +408,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -349,7 +417,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Recurring given an JSON string * * @param jsonString JSON string @@ -359,11 +427,12 @@ private String toIndentedString(Object o) { public static Recurring fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Recurring.class); } -/** - * Convert an instance of Recurring to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Recurring to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/RefundRequest.java b/src/main/java/com/adyen/model/payment/RefundRequest.java index e34d28c98..16e5d8b43 100644 --- a/src/main/java/com/adyen/model/payment/RefundRequest.java +++ b/src/main/java/com/adyen/model/payment/RefundRequest.java @@ -2,39 +2,26 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.payment.Amount; -import com.adyen.model.payment.PlatformChargebackLogic; -import com.adyen.model.payment.Split; -import com.adyen.model.payment.ThreeDSecureData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; -import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -/** - * RefundRequest - */ +/** RefundRequest */ @JsonPropertyOrder({ RefundRequest.JSON_PROPERTY_ADDITIONAL_DATA, RefundRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, @@ -48,7 +35,6 @@ RefundRequest.JSON_PROPERTY_TENDER_REFERENCE, RefundRequest.JSON_PROPERTY_UNIQUE_TERMINAL_ID }) - public class RefundRequest { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -62,7 +48,8 @@ public class RefundRequest { public static final String JSON_PROPERTY_MPI_DATA = "mpiData"; private ThreeDSecureData mpiData; - public static final String JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE = "originalMerchantReference"; + public static final String JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE = + "originalMerchantReference"; private String originalMerchantReference; public static final String JSON_PROPERTY_ORIGINAL_REFERENCE = "originalReference"; @@ -83,13 +70,16 @@ public class RefundRequest { public static final String JSON_PROPERTY_UNIQUE_TERMINAL_ID = "uniqueTerminalId"; private String uniqueTerminalId; - public RefundRequest() { - } + public RefundRequest() {} /** - * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular modification + * request. The additionalData object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a + * particular modification request. The additionalData object consists of entries, each of + * which includes the key and value. * @return the current {@code RefundRequest} instance, allowing for method chaining */ public RefundRequest additionalData(Map additionalData) { @@ -106,8 +96,13 @@ public RefundRequest putAdditionalDataItem(String key, String additionalDataItem } /** - * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. - * @return additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular modification + * request. The additionalData object consists of entries, each of which includes the key and + * value. + * + * @return additionalData This field contains additional data, which may be required for a + * particular modification request. The additionalData object consists of entries, each of + * which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,9 +111,13 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular modification + * request. The additionalData object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a + * particular modification request. The additionalData object consists of entries, each of + * which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,6 +138,7 @@ public RefundRequest merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. + * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -161,7 +161,7 @@ public void setMerchantAccount(String merchantAccount) { /** * modificationAmount * - * @param modificationAmount + * @param modificationAmount * @return the current {@code RefundRequest} instance, allowing for method chaining */ public RefundRequest modificationAmount(Amount modificationAmount) { @@ -171,7 +171,8 @@ public RefundRequest modificationAmount(Amount modificationAmount) { /** * Get modificationAmount - * @return modificationAmount + * + * @return modificationAmount */ @JsonProperty(JSON_PROPERTY_MODIFICATION_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,7 +183,7 @@ public Amount getModificationAmount() { /** * modificationAmount * - * @param modificationAmount + * @param modificationAmount */ @JsonProperty(JSON_PROPERTY_MODIFICATION_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,7 +194,7 @@ public void setModificationAmount(Amount modificationAmount) { /** * mpiData * - * @param mpiData + * @param mpiData * @return the current {@code RefundRequest} instance, allowing for method chaining */ public RefundRequest mpiData(ThreeDSecureData mpiData) { @@ -203,7 +204,8 @@ public RefundRequest mpiData(ThreeDSecureData mpiData) { /** * Get mpiData - * @return mpiData + * + * @return mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,7 +216,7 @@ public ThreeDSecureData getMpiData() { /** * mpiData * - * @param mpiData + * @param mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -235,6 +237,7 @@ public RefundRequest originalMerchantReference(String originalMerchantReference) /** * The original merchant reference to cancel. + * * @return originalMerchantReference The original merchant reference to cancel. */ @JsonProperty(JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE) @@ -255,9 +258,11 @@ public void setOriginalMerchantReference(String originalMerchantReference) { } /** - * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * + * authorisation response * authorisation notification * - * @param originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * @param originalReference The original pspReference of the payment to modify. This reference is + * returned in: * authorisation response * authorisation notification * @return the current {@code RefundRequest} instance, allowing for method chaining */ public RefundRequest originalReference(String originalReference) { @@ -266,8 +271,11 @@ public RefundRequest originalReference(String originalReference) { } /** - * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification - * @return originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * + * authorisation response * authorisation notification + * + * @return originalReference The original pspReference of the payment to modify. This reference is + * returned in: * authorisation response * authorisation notification */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -276,9 +284,11 @@ public String getOriginalReference() { } /** - * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * + * authorisation response * authorisation notification * - * @param originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * @param originalReference The original pspReference of the payment to modify. This reference is + * returned in: * authorisation response * authorisation notification */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -289,7 +299,7 @@ public void setOriginalReference(String originalReference) { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic * @return the current {@code RefundRequest} instance, allowing for method chaining */ public RefundRequest platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) { @@ -299,7 +309,8 @@ public RefundRequest platformChargebackLogic(PlatformChargebackLogic platformCha /** * Get platformChargebackLogic - * @return platformChargebackLogic + * + * @return platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -310,7 +321,7 @@ public PlatformChargebackLogic getPlatformChargebackLogic() { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -319,9 +330,11 @@ public void setPlatformChargebackLogic(PlatformChargebackLogic platformChargebac } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in + * reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in + * Customer Area and in reports. Maximum length: 80 characters. * @return the current {@code RefundRequest} instance, allowing for method chaining */ public RefundRequest reference(String reference) { @@ -330,8 +343,11 @@ public RefundRequest reference(String reference) { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. - * @return reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in + * reports. Maximum length: 80 characters. + * + * @return reference Your reference for the payment modification. This reference is visible in + * Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -340,9 +356,11 @@ public String getReference() { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in + * reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in + * Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -351,9 +369,13 @@ public void setReference(String reference) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * - * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * @param splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * @return the current {@code RefundRequest} instance, allowing for method chaining */ public RefundRequest splits(List splits) { @@ -370,8 +392,13 @@ public RefundRequest addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). - * @return splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * + * @return splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -380,9 +407,13 @@ public List getSplits() { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * - * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * @param splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -393,7 +424,8 @@ public void setSplits(List splits) { /** * The transaction reference provided by the PED. For point-of-sale integrations only. * - * @param tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. + * @param tenderReference The transaction reference provided by the PED. For point-of-sale + * integrations only. * @return the current {@code RefundRequest} instance, allowing for method chaining */ public RefundRequest tenderReference(String tenderReference) { @@ -403,7 +435,9 @@ public RefundRequest tenderReference(String tenderReference) { /** * The transaction reference provided by the PED. For point-of-sale integrations only. - * @return tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. + * + * @return tenderReference The transaction reference provided by the PED. For point-of-sale + * integrations only. */ @JsonProperty(JSON_PROPERTY_TENDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -414,7 +448,8 @@ public String getTenderReference() { /** * The transaction reference provided by the PED. For point-of-sale integrations only. * - * @param tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. + * @param tenderReference The transaction reference provided by the PED. For point-of-sale + * integrations only. */ @JsonProperty(JSON_PROPERTY_TENDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -423,9 +458,11 @@ public void setTenderReference(String tenderReference) { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale + * integrations only. * - * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. + * For point-of-sale integrations only. * @return the current {@code RefundRequest} instance, allowing for method chaining */ public RefundRequest uniqueTerminalId(String uniqueTerminalId) { @@ -434,8 +471,11 @@ public RefundRequest uniqueTerminalId(String uniqueTerminalId) { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. - * @return uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale + * integrations only. + * + * @return uniqueTerminalId Unique terminal ID for the PED that originally processed the request. + * For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -444,9 +484,11 @@ public String getUniqueTerminalId() { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale + * integrations only. * - * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. + * For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -454,9 +496,7 @@ public void setUniqueTerminalId(String uniqueTerminalId) { this.uniqueTerminalId = uniqueTerminalId; } - /** - * Return true if this RefundRequest object is equal to o. - */ + /** Return true if this RefundRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -466,22 +506,33 @@ public boolean equals(Object o) { return false; } RefundRequest refundRequest = (RefundRequest) o; - return Objects.equals(this.additionalData, refundRequest.additionalData) && - Objects.equals(this.merchantAccount, refundRequest.merchantAccount) && - Objects.equals(this.modificationAmount, refundRequest.modificationAmount) && - Objects.equals(this.mpiData, refundRequest.mpiData) && - Objects.equals(this.originalMerchantReference, refundRequest.originalMerchantReference) && - Objects.equals(this.originalReference, refundRequest.originalReference) && - Objects.equals(this.platformChargebackLogic, refundRequest.platformChargebackLogic) && - Objects.equals(this.reference, refundRequest.reference) && - Objects.equals(this.splits, refundRequest.splits) && - Objects.equals(this.tenderReference, refundRequest.tenderReference) && - Objects.equals(this.uniqueTerminalId, refundRequest.uniqueTerminalId); + return Objects.equals(this.additionalData, refundRequest.additionalData) + && Objects.equals(this.merchantAccount, refundRequest.merchantAccount) + && Objects.equals(this.modificationAmount, refundRequest.modificationAmount) + && Objects.equals(this.mpiData, refundRequest.mpiData) + && Objects.equals(this.originalMerchantReference, refundRequest.originalMerchantReference) + && Objects.equals(this.originalReference, refundRequest.originalReference) + && Objects.equals(this.platformChargebackLogic, refundRequest.platformChargebackLogic) + && Objects.equals(this.reference, refundRequest.reference) + && Objects.equals(this.splits, refundRequest.splits) + && Objects.equals(this.tenderReference, refundRequest.tenderReference) + && Objects.equals(this.uniqueTerminalId, refundRequest.uniqueTerminalId); } @Override public int hashCode() { - return Objects.hash(additionalData, merchantAccount, modificationAmount, mpiData, originalMerchantReference, originalReference, platformChargebackLogic, reference, splits, tenderReference, uniqueTerminalId); + return Objects.hash( + additionalData, + merchantAccount, + modificationAmount, + mpiData, + originalMerchantReference, + originalReference, + platformChargebackLogic, + reference, + splits, + tenderReference, + uniqueTerminalId); } @Override @@ -492,9 +543,13 @@ public String toString() { sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" modificationAmount: ").append(toIndentedString(modificationAmount)).append("\n"); sb.append(" mpiData: ").append(toIndentedString(mpiData)).append("\n"); - sb.append(" originalMerchantReference: ").append(toIndentedString(originalMerchantReference)).append("\n"); + sb.append(" originalMerchantReference: ") + .append(toIndentedString(originalMerchantReference)) + .append("\n"); sb.append(" originalReference: ").append(toIndentedString(originalReference)).append("\n"); - sb.append(" platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n"); + sb.append(" platformChargebackLogic: ") + .append(toIndentedString(platformChargebackLogic)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" tenderReference: ").append(toIndentedString(tenderReference)).append("\n"); @@ -504,8 +559,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -514,7 +568,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RefundRequest given an JSON string * * @param jsonString JSON string @@ -524,11 +578,12 @@ private String toIndentedString(Object o) { public static RefundRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RefundRequest.class); } -/** - * Convert an instance of RefundRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RefundRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ResponseAdditionalData3DSecure.java b/src/main/java/com/adyen/model/payment/ResponseAdditionalData3DSecure.java index a4a23bddb..ce8a9fdd0 100644 --- a/src/main/java/com/adyen/model/payment/ResponseAdditionalData3DSecure.java +++ b/src/main/java/com/adyen/model/payment/ResponseAdditionalData3DSecure.java @@ -2,31 +2,22 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ResponseAdditionalData3DSecure - */ +/** ResponseAdditionalData3DSecure */ @JsonPropertyOrder({ ResponseAdditionalData3DSecure.JSON_PROPERTY_CARD_HOLDER_INFO, ResponseAdditionalData3DSecure.JSON_PROPERTY_CAVV, @@ -34,7 +25,6 @@ ResponseAdditionalData3DSecure.JSON_PROPERTY_SCA_EXEMPTION_REQUESTED, ResponseAdditionalData3DSecure.JSON_PROPERTY_THREEDS2_CARD_ENROLLED }) - public class ResponseAdditionalData3DSecure { public static final String JSON_PROPERTY_CARD_HOLDER_INFO = "cardHolderInfo"; private String cardHolderInfo; @@ -51,14 +41,16 @@ public class ResponseAdditionalData3DSecure { public static final String JSON_PROPERTY_THREEDS2_CARD_ENROLLED = "threeds2.cardEnrolled"; private Boolean threeds2CardEnrolled; - public ResponseAdditionalData3DSecure() { - } + public ResponseAdditionalData3DSecure() {} /** - * Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. + * Information provided by the issuer to the cardholder. If this field is present, you need to + * display this information to the cardholder. * - * @param cardHolderInfo Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. - * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method chaining + * @param cardHolderInfo Information provided by the issuer to the cardholder. If this field is + * present, you need to display this information to the cardholder. + * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method + * chaining */ public ResponseAdditionalData3DSecure cardHolderInfo(String cardHolderInfo) { this.cardHolderInfo = cardHolderInfo; @@ -66,8 +58,11 @@ public ResponseAdditionalData3DSecure cardHolderInfo(String cardHolderInfo) { } /** - * Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. - * @return cardHolderInfo Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. + * Information provided by the issuer to the cardholder. If this field is present, you need to + * display this information to the cardholder. + * + * @return cardHolderInfo Information provided by the issuer to the cardholder. If this field is + * present, you need to display this information to the cardholder. */ @JsonProperty(JSON_PROPERTY_CARD_HOLDER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -76,9 +71,11 @@ public String getCardHolderInfo() { } /** - * Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. + * Information provided by the issuer to the cardholder. If this field is present, you need to + * display this information to the cardholder. * - * @param cardHolderInfo Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. + * @param cardHolderInfo Information provided by the issuer to the cardholder. If this field is + * present, you need to display this information to the cardholder. */ @JsonProperty(JSON_PROPERTY_CARD_HOLDER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,10 +84,13 @@ public void setCardHolderInfo(String cardHolderInfo) { } /** - * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. + * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication + * session, as a Base64-encoded 20-byte array. * - * @param cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. - * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method chaining + * @param cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure + * authentication session, as a Base64-encoded 20-byte array. + * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method + * chaining */ public ResponseAdditionalData3DSecure cavv(String cavv) { this.cavv = cavv; @@ -98,8 +98,11 @@ public ResponseAdditionalData3DSecure cavv(String cavv) { } /** - * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. - * @return cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. + * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication + * session, as a Base64-encoded 20-byte array. + * + * @return cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure + * authentication session, as a Base64-encoded 20-byte array. */ @JsonProperty(JSON_PROPERTY_CAVV) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,9 +111,11 @@ public String getCavv() { } /** - * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. + * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication + * session, as a Base64-encoded 20-byte array. * - * @param cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. + * @param cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure + * authentication session, as a Base64-encoded 20-byte array. */ @JsonProperty(JSON_PROPERTY_CAVV) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -122,7 +127,8 @@ public void setCavv(String cavv) { * The CAVV algorithm used. * * @param cavvAlgorithm The CAVV algorithm used. - * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method chaining + * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method + * chaining */ public ResponseAdditionalData3DSecure cavvAlgorithm(String cavvAlgorithm) { this.cavvAlgorithm = cavvAlgorithm; @@ -131,6 +137,7 @@ public ResponseAdditionalData3DSecure cavvAlgorithm(String cavvAlgorithm) { /** * The CAVV algorithm used. + * * @return cavvAlgorithm The CAVV algorithm used. */ @JsonProperty(JSON_PROPERTY_CAVV_ALGORITHM) @@ -151,10 +158,17 @@ public void setCavvAlgorithm(String cavvAlgorithm) { } /** - * Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * Shows the [exemption + * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) + * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * + * **trustedBeneficiary** * **transactionRiskAnalysis** * - * @param scaExemptionRequested Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** - * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method chaining + * @param scaExemptionRequested Shows the [exemption + * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) + * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** + * * **trustedBeneficiary** * **transactionRiskAnalysis** + * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method + * chaining */ public ResponseAdditionalData3DSecure scaExemptionRequested(String scaExemptionRequested) { this.scaExemptionRequested = scaExemptionRequested; @@ -162,8 +176,15 @@ public ResponseAdditionalData3DSecure scaExemptionRequested(String scaExemptionR } /** - * Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** - * @return scaExemptionRequested Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * Shows the [exemption + * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) + * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * + * **trustedBeneficiary** * **transactionRiskAnalysis** + * + * @return scaExemptionRequested Shows the [exemption + * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) + * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** + * * **trustedBeneficiary** * **transactionRiskAnalysis** */ @JsonProperty(JSON_PROPERTY_SCA_EXEMPTION_REQUESTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,9 +193,15 @@ public String getScaExemptionRequested() { } /** - * Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * Shows the [exemption + * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) + * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * + * **trustedBeneficiary** * **transactionRiskAnalysis** * - * @param scaExemptionRequested Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * @param scaExemptionRequested Shows the [exemption + * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) + * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** + * * **trustedBeneficiary** * **transactionRiskAnalysis** */ @JsonProperty(JSON_PROPERTY_SCA_EXEMPTION_REQUESTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,7 +213,8 @@ public void setScaExemptionRequested(String scaExemptionRequested) { * Indicates whether a card is enrolled for 3D Secure 2. * * @param threeds2CardEnrolled Indicates whether a card is enrolled for 3D Secure 2. - * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method chaining + * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method + * chaining */ public ResponseAdditionalData3DSecure threeds2CardEnrolled(Boolean threeds2CardEnrolled) { this.threeds2CardEnrolled = threeds2CardEnrolled; @@ -195,6 +223,7 @@ public ResponseAdditionalData3DSecure threeds2CardEnrolled(Boolean threeds2CardE /** * Indicates whether a card is enrolled for 3D Secure 2. + * * @return threeds2CardEnrolled Indicates whether a card is enrolled for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_THREEDS2_CARD_ENROLLED) @@ -214,9 +243,7 @@ public void setThreeds2CardEnrolled(Boolean threeds2CardEnrolled) { this.threeds2CardEnrolled = threeds2CardEnrolled; } - /** - * Return true if this ResponseAdditionalData3DSecure object is equal to o. - */ + /** Return true if this ResponseAdditionalData3DSecure object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -225,17 +252,21 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResponseAdditionalData3DSecure responseAdditionalData3DSecure = (ResponseAdditionalData3DSecure) o; - return Objects.equals(this.cardHolderInfo, responseAdditionalData3DSecure.cardHolderInfo) && - Objects.equals(this.cavv, responseAdditionalData3DSecure.cavv) && - Objects.equals(this.cavvAlgorithm, responseAdditionalData3DSecure.cavvAlgorithm) && - Objects.equals(this.scaExemptionRequested, responseAdditionalData3DSecure.scaExemptionRequested) && - Objects.equals(this.threeds2CardEnrolled, responseAdditionalData3DSecure.threeds2CardEnrolled); + ResponseAdditionalData3DSecure responseAdditionalData3DSecure = + (ResponseAdditionalData3DSecure) o; + return Objects.equals(this.cardHolderInfo, responseAdditionalData3DSecure.cardHolderInfo) + && Objects.equals(this.cavv, responseAdditionalData3DSecure.cavv) + && Objects.equals(this.cavvAlgorithm, responseAdditionalData3DSecure.cavvAlgorithm) + && Objects.equals( + this.scaExemptionRequested, responseAdditionalData3DSecure.scaExemptionRequested) + && Objects.equals( + this.threeds2CardEnrolled, responseAdditionalData3DSecure.threeds2CardEnrolled); } @Override public int hashCode() { - return Objects.hash(cardHolderInfo, cavv, cavvAlgorithm, scaExemptionRequested, threeds2CardEnrolled); + return Objects.hash( + cardHolderInfo, cavv, cavvAlgorithm, scaExemptionRequested, threeds2CardEnrolled); } @Override @@ -245,15 +276,18 @@ public String toString() { sb.append(" cardHolderInfo: ").append(toIndentedString(cardHolderInfo)).append("\n"); sb.append(" cavv: ").append(toIndentedString(cavv)).append("\n"); sb.append(" cavvAlgorithm: ").append(toIndentedString(cavvAlgorithm)).append("\n"); - sb.append(" scaExemptionRequested: ").append(toIndentedString(scaExemptionRequested)).append("\n"); - sb.append(" threeds2CardEnrolled: ").append(toIndentedString(threeds2CardEnrolled)).append("\n"); + sb.append(" scaExemptionRequested: ") + .append(toIndentedString(scaExemptionRequested)) + .append("\n"); + sb.append(" threeds2CardEnrolled: ") + .append(toIndentedString(threeds2CardEnrolled)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -262,21 +296,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResponseAdditionalData3DSecure given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalData3DSecure - * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalData3DSecure + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ResponseAdditionalData3DSecure */ - public static ResponseAdditionalData3DSecure fromJson(String jsonString) throws JsonProcessingException { + public static ResponseAdditionalData3DSecure fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalData3DSecure.class); } -/** - * Convert an instance of ResponseAdditionalData3DSecure to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResponseAdditionalData3DSecure to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataBillingAddress.java b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataBillingAddress.java index 8138868ca..44af067be 100644 --- a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataBillingAddress.java +++ b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataBillingAddress.java @@ -2,31 +2,22 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ResponseAdditionalDataBillingAddress - */ +/** ResponseAdditionalDataBillingAddress */ @JsonPropertyOrder({ ResponseAdditionalDataBillingAddress.JSON_PROPERTY_BILLING_ADDRESS_CITY, ResponseAdditionalDataBillingAddress.JSON_PROPERTY_BILLING_ADDRESS_COUNTRY, @@ -35,7 +26,6 @@ ResponseAdditionalDataBillingAddress.JSON_PROPERTY_BILLING_ADDRESS_STATE_OR_PROVINCE, ResponseAdditionalDataBillingAddress.JSON_PROPERTY_BILLING_ADDRESS_STREET }) - public class ResponseAdditionalDataBillingAddress { public static final String JSON_PROPERTY_BILLING_ADDRESS_CITY = "billingAddress.city"; private String billingAddressCity; @@ -43,26 +33,29 @@ public class ResponseAdditionalDataBillingAddress { public static final String JSON_PROPERTY_BILLING_ADDRESS_COUNTRY = "billingAddress.country"; private String billingAddressCountry; - public static final String JSON_PROPERTY_BILLING_ADDRESS_HOUSE_NUMBER_OR_NAME = "billingAddress.houseNumberOrName"; + public static final String JSON_PROPERTY_BILLING_ADDRESS_HOUSE_NUMBER_OR_NAME = + "billingAddress.houseNumberOrName"; private String billingAddressHouseNumberOrName; - public static final String JSON_PROPERTY_BILLING_ADDRESS_POSTAL_CODE = "billingAddress.postalCode"; + public static final String JSON_PROPERTY_BILLING_ADDRESS_POSTAL_CODE = + "billingAddress.postalCode"; private String billingAddressPostalCode; - public static final String JSON_PROPERTY_BILLING_ADDRESS_STATE_OR_PROVINCE = "billingAddress.stateOrProvince"; + public static final String JSON_PROPERTY_BILLING_ADDRESS_STATE_OR_PROVINCE = + "billingAddress.stateOrProvince"; private String billingAddressStateOrProvince; public static final String JSON_PROPERTY_BILLING_ADDRESS_STREET = "billingAddress.street"; private String billingAddressStreet; - public ResponseAdditionalDataBillingAddress() { - } + public ResponseAdditionalDataBillingAddress() {} /** * The billing address city passed in the payment request. * * @param billingAddressCity The billing address city passed in the payment request. - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method + * chaining */ public ResponseAdditionalDataBillingAddress billingAddressCity(String billingAddressCity) { this.billingAddressCity = billingAddressCity; @@ -71,6 +64,7 @@ public ResponseAdditionalDataBillingAddress billingAddressCity(String billingAdd /** * The billing address city passed in the payment request. + * * @return billingAddressCity The billing address city passed in the payment request. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_CITY) @@ -91,10 +85,12 @@ public void setBillingAddressCity(String billingAddressCity) { } /** - * The billing address country passed in the payment request. Example: NL + * The billing address country passed in the payment request. Example: NL * - * @param billingAddressCountry The billing address country passed in the payment request. Example: NL - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining + * @param billingAddressCountry The billing address country passed in the payment request. + * Example: NL + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method + * chaining */ public ResponseAdditionalDataBillingAddress billingAddressCountry(String billingAddressCountry) { this.billingAddressCountry = billingAddressCountry; @@ -102,8 +98,10 @@ public ResponseAdditionalDataBillingAddress billingAddressCountry(String billing } /** - * The billing address country passed in the payment request. Example: NL - * @return billingAddressCountry The billing address country passed in the payment request. Example: NL + * The billing address country passed in the payment request. Example: NL + * + * @return billingAddressCountry The billing address country passed in the payment request. + * Example: NL */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,9 +110,10 @@ public String getBillingAddressCountry() { } /** - * The billing address country passed in the payment request. Example: NL + * The billing address country passed in the payment request. Example: NL * - * @param billingAddressCountry The billing address country passed in the payment request. Example: NL + * @param billingAddressCountry The billing address country passed in the payment request. + * Example: NL */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,17 +124,22 @@ public void setBillingAddressCountry(String billingAddressCountry) { /** * The billing address house number or name passed in the payment request. * - * @param billingAddressHouseNumberOrName The billing address house number or name passed in the payment request. - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining + * @param billingAddressHouseNumberOrName The billing address house number or name passed in the + * payment request. + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method + * chaining */ - public ResponseAdditionalDataBillingAddress billingAddressHouseNumberOrName(String billingAddressHouseNumberOrName) { + public ResponseAdditionalDataBillingAddress billingAddressHouseNumberOrName( + String billingAddressHouseNumberOrName) { this.billingAddressHouseNumberOrName = billingAddressHouseNumberOrName; return this; } /** * The billing address house number or name passed in the payment request. - * @return billingAddressHouseNumberOrName The billing address house number or name passed in the payment request. + * + * @return billingAddressHouseNumberOrName The billing address house number or name passed in the + * payment request. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_HOUSE_NUMBER_OR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,7 +150,8 @@ public String getBillingAddressHouseNumberOrName() { /** * The billing address house number or name passed in the payment request. * - * @param billingAddressHouseNumberOrName The billing address house number or name passed in the payment request. + * @param billingAddressHouseNumberOrName The billing address house number or name passed in the + * payment request. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_HOUSE_NUMBER_OR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -155,19 +160,24 @@ public void setBillingAddressHouseNumberOrName(String billingAddressHouseNumberO } /** - * The billing address postal code passed in the payment request. Example: 1011 DJ + * The billing address postal code passed in the payment request. Example: 1011 DJ * - * @param billingAddressPostalCode The billing address postal code passed in the payment request. Example: 1011 DJ - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining + * @param billingAddressPostalCode The billing address postal code passed in the payment request. + * Example: 1011 DJ + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method + * chaining */ - public ResponseAdditionalDataBillingAddress billingAddressPostalCode(String billingAddressPostalCode) { + public ResponseAdditionalDataBillingAddress billingAddressPostalCode( + String billingAddressPostalCode) { this.billingAddressPostalCode = billingAddressPostalCode; return this; } /** - * The billing address postal code passed in the payment request. Example: 1011 DJ - * @return billingAddressPostalCode The billing address postal code passed in the payment request. Example: 1011 DJ + * The billing address postal code passed in the payment request. Example: 1011 DJ + * + * @return billingAddressPostalCode The billing address postal code passed in the payment request. + * Example: 1011 DJ */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,9 +186,10 @@ public String getBillingAddressPostalCode() { } /** - * The billing address postal code passed in the payment request. Example: 1011 DJ + * The billing address postal code passed in the payment request. Example: 1011 DJ * - * @param billingAddressPostalCode The billing address postal code passed in the payment request. Example: 1011 DJ + * @param billingAddressPostalCode The billing address postal code passed in the payment request. + * Example: 1011 DJ */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,19 +198,24 @@ public void setBillingAddressPostalCode(String billingAddressPostalCode) { } /** - * The billing address state or province passed in the payment request. Example: NH + * The billing address state or province passed in the payment request. Example: NH * - * @param billingAddressStateOrProvince The billing address state or province passed in the payment request. Example: NH - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining + * @param billingAddressStateOrProvince The billing address state or province passed in the + * payment request. Example: NH + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method + * chaining */ - public ResponseAdditionalDataBillingAddress billingAddressStateOrProvince(String billingAddressStateOrProvince) { + public ResponseAdditionalDataBillingAddress billingAddressStateOrProvince( + String billingAddressStateOrProvince) { this.billingAddressStateOrProvince = billingAddressStateOrProvince; return this; } /** - * The billing address state or province passed in the payment request. Example: NH - * @return billingAddressStateOrProvince The billing address state or province passed in the payment request. Example: NH + * The billing address state or province passed in the payment request. Example: NH + * + * @return billingAddressStateOrProvince The billing address state or province passed in the + * payment request. Example: NH */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,9 +224,10 @@ public String getBillingAddressStateOrProvince() { } /** - * The billing address state or province passed in the payment request. Example: NH + * The billing address state or province passed in the payment request. Example: NH * - * @param billingAddressStateOrProvince The billing address state or province passed in the payment request. Example: NH + * @param billingAddressStateOrProvince The billing address state or province passed in the + * payment request. Example: NH */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -222,7 +239,8 @@ public void setBillingAddressStateOrProvince(String billingAddressStateOrProvinc * The billing address street passed in the payment request. * * @param billingAddressStreet The billing address street passed in the payment request. - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method + * chaining */ public ResponseAdditionalDataBillingAddress billingAddressStreet(String billingAddressStreet) { this.billingAddressStreet = billingAddressStreet; @@ -231,6 +249,7 @@ public ResponseAdditionalDataBillingAddress billingAddressStreet(String billingA /** * The billing address street passed in the payment request. + * * @return billingAddressStreet The billing address street passed in the payment request. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_STREET) @@ -250,9 +269,7 @@ public void setBillingAddressStreet(String billingAddressStreet) { this.billingAddressStreet = billingAddressStreet; } - /** - * Return true if this ResponseAdditionalDataBillingAddress object is equal to o. - */ + /** Return true if this ResponseAdditionalDataBillingAddress object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -261,18 +278,34 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResponseAdditionalDataBillingAddress responseAdditionalDataBillingAddress = (ResponseAdditionalDataBillingAddress) o; - return Objects.equals(this.billingAddressCity, responseAdditionalDataBillingAddress.billingAddressCity) && - Objects.equals(this.billingAddressCountry, responseAdditionalDataBillingAddress.billingAddressCountry) && - Objects.equals(this.billingAddressHouseNumberOrName, responseAdditionalDataBillingAddress.billingAddressHouseNumberOrName) && - Objects.equals(this.billingAddressPostalCode, responseAdditionalDataBillingAddress.billingAddressPostalCode) && - Objects.equals(this.billingAddressStateOrProvince, responseAdditionalDataBillingAddress.billingAddressStateOrProvince) && - Objects.equals(this.billingAddressStreet, responseAdditionalDataBillingAddress.billingAddressStreet); + ResponseAdditionalDataBillingAddress responseAdditionalDataBillingAddress = + (ResponseAdditionalDataBillingAddress) o; + return Objects.equals( + this.billingAddressCity, responseAdditionalDataBillingAddress.billingAddressCity) + && Objects.equals( + this.billingAddressCountry, responseAdditionalDataBillingAddress.billingAddressCountry) + && Objects.equals( + this.billingAddressHouseNumberOrName, + responseAdditionalDataBillingAddress.billingAddressHouseNumberOrName) + && Objects.equals( + this.billingAddressPostalCode, + responseAdditionalDataBillingAddress.billingAddressPostalCode) + && Objects.equals( + this.billingAddressStateOrProvince, + responseAdditionalDataBillingAddress.billingAddressStateOrProvince) + && Objects.equals( + this.billingAddressStreet, responseAdditionalDataBillingAddress.billingAddressStreet); } @Override public int hashCode() { - return Objects.hash(billingAddressCity, billingAddressCountry, billingAddressHouseNumberOrName, billingAddressPostalCode, billingAddressStateOrProvince, billingAddressStreet); + return Objects.hash( + billingAddressCity, + billingAddressCountry, + billingAddressHouseNumberOrName, + billingAddressPostalCode, + billingAddressStateOrProvince, + billingAddressStreet); } @Override @@ -280,18 +313,27 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataBillingAddress {\n"); sb.append(" billingAddressCity: ").append(toIndentedString(billingAddressCity)).append("\n"); - sb.append(" billingAddressCountry: ").append(toIndentedString(billingAddressCountry)).append("\n"); - sb.append(" billingAddressHouseNumberOrName: ").append(toIndentedString(billingAddressHouseNumberOrName)).append("\n"); - sb.append(" billingAddressPostalCode: ").append(toIndentedString(billingAddressPostalCode)).append("\n"); - sb.append(" billingAddressStateOrProvince: ").append(toIndentedString(billingAddressStateOrProvince)).append("\n"); - sb.append(" billingAddressStreet: ").append(toIndentedString(billingAddressStreet)).append("\n"); + sb.append(" billingAddressCountry: ") + .append(toIndentedString(billingAddressCountry)) + .append("\n"); + sb.append(" billingAddressHouseNumberOrName: ") + .append(toIndentedString(billingAddressHouseNumberOrName)) + .append("\n"); + sb.append(" billingAddressPostalCode: ") + .append(toIndentedString(billingAddressPostalCode)) + .append("\n"); + sb.append(" billingAddressStateOrProvince: ") + .append(toIndentedString(billingAddressStateOrProvince)) + .append("\n"); + sb.append(" billingAddressStreet: ") + .append(toIndentedString(billingAddressStreet)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -300,21 +342,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResponseAdditionalDataBillingAddress given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataBillingAddress - * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataBillingAddress + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ResponseAdditionalDataBillingAddress */ - public static ResponseAdditionalDataBillingAddress fromJson(String jsonString) throws JsonProcessingException { + public static ResponseAdditionalDataBillingAddress fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataBillingAddress.class); } -/** - * Convert an instance of ResponseAdditionalDataBillingAddress to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResponseAdditionalDataBillingAddress to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCard.java b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCard.java index 84e036cc9..8c47898d7 100644 --- a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCard.java +++ b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCard.java @@ -2,31 +2,26 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * ResponseAdditionalDataCard - */ +/** ResponseAdditionalDataCard */ @JsonPropertyOrder({ ResponseAdditionalDataCard.JSON_PROPERTY_CARD_BIN, ResponseAdditionalDataCard.JSON_PROPERTY_CARD_HOLDER_NAME, @@ -38,7 +33,6 @@ ResponseAdditionalDataCard.JSON_PROPERTY_CARD_SUMMARY, ResponseAdditionalDataCard.JSON_PROPERTY_ISSUER_BIN }) - public class ResponseAdditionalDataCard { public static final String JSON_PROPERTY_CARD_BIN = "cardBin"; private String cardBin; @@ -59,10 +53,15 @@ public class ResponseAdditionalDataCard { private String cardPaymentMethod; /** - * The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit + * The Card Product ID represents the type of card following card scheme product definitions and + * can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - + * Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa + * Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard + * Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * + * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard + * Select Debit */ public enum CardProductIdEnum { - A(String.valueOf("A")), B(String.valueOf("B")), @@ -90,7 +89,7 @@ public enum CardProductIdEnum { private String value; CardProductIdEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -111,7 +110,11 @@ public static CardProductIdEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("CardProductIdEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CardProductIdEnum.values())); + LOG.warning( + "CardProductIdEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(CardProductIdEnum.values())); return null; } } @@ -125,13 +128,16 @@ public static CardProductIdEnum fromValue(String value) { public static final String JSON_PROPERTY_ISSUER_BIN = "issuerBin"; private String issuerBin; - public ResponseAdditionalDataCard() { - } + public ResponseAdditionalDataCard() {} /** - * The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 + * The first six digits of the card number. This is the [Bank Identification Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with a six-digit BIN. Example: 521234 * - * @param cardBin The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 + * @param cardBin The first six digits of the card number. This is the [Bank Identification Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with a six-digit BIN. Example: 521234 * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardBin(String cardBin) { @@ -140,8 +146,14 @@ public ResponseAdditionalDataCard cardBin(String cardBin) { } /** - * The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 - * @return cardBin The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 + * The first six digits of the card number. This is the [Bank Identification Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with a six-digit BIN. Example: 521234 + * + * @return cardBin The first six digits of the card number. This is the [Bank Identification + * Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with a six-digit BIN. Example: 521234 */ @JsonProperty(JSON_PROPERTY_CARD_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,9 +162,13 @@ public String getCardBin() { } /** - * The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 + * The first six digits of the card number. This is the [Bank Identification Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with a six-digit BIN. Example: 521234 * - * @param cardBin The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 + * @param cardBin The first six digits of the card number. This is the [Bank Identification Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with a six-digit BIN. Example: 521234 */ @JsonProperty(JSON_PROPERTY_CARD_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,6 +189,7 @@ public ResponseAdditionalDataCard cardHolderName(String cardHolderName) { /** * The cardholder name passed in the payment request. + * * @return cardHolderName The cardholder name passed in the payment request. */ @JsonProperty(JSON_PROPERTY_CARD_HOLDER_NAME) @@ -193,9 +210,11 @@ public void setCardHolderName(String cardHolderName) { } /** - * The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. + * The bank or the financial institution granting lines of credit through card association branded + * payment cards. This information can be included when available. * - * @param cardIssuingBank The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. + * @param cardIssuingBank The bank or the financial institution granting lines of credit through + * card association branded payment cards. This information can be included when available. * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardIssuingBank(String cardIssuingBank) { @@ -204,8 +223,11 @@ public ResponseAdditionalDataCard cardIssuingBank(String cardIssuingBank) { } /** - * The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. - * @return cardIssuingBank The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. + * The bank or the financial institution granting lines of credit through card association branded + * payment cards. This information can be included when available. + * + * @return cardIssuingBank The bank or the financial institution granting lines of credit through + * card association branded payment cards. This information can be included when available. */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_BANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,9 +236,11 @@ public String getCardIssuingBank() { } /** - * The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. + * The bank or the financial institution granting lines of credit through card association branded + * payment cards. This information can be included when available. * - * @param cardIssuingBank The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. + * @param cardIssuingBank The bank or the financial institution granting lines of credit through + * card association branded payment cards. This information can be included when available. */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_BANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -225,9 +249,9 @@ public void setCardIssuingBank(String cardIssuingBank) { } /** - * The country where the card was issued. Example: US + * The country where the card was issued. Example: US * - * @param cardIssuingCountry The country where the card was issued. Example: US + * @param cardIssuingCountry The country where the card was issued. Example: US * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardIssuingCountry(String cardIssuingCountry) { @@ -236,8 +260,9 @@ public ResponseAdditionalDataCard cardIssuingCountry(String cardIssuingCountry) } /** - * The country where the card was issued. Example: US - * @return cardIssuingCountry The country where the card was issued. Example: US + * The country where the card was issued. Example: US + * + * @return cardIssuingCountry The country where the card was issued. Example: US */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -246,9 +271,9 @@ public String getCardIssuingCountry() { } /** - * The country where the card was issued. Example: US + * The country where the card was issued. Example: US * - * @param cardIssuingCountry The country where the card was issued. Example: US + * @param cardIssuingCountry The country where the card was issued. Example: US */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -257,9 +282,12 @@ public void setCardIssuingCountry(String cardIssuingCountry) { } /** - * The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD + * The currency in which the card is issued, if this information is available. Provided as the + * currency code or currency number from the ISO-4217 standard. Example: USD * - * @param cardIssuingCurrency The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD + * @param cardIssuingCurrency The currency in which the card is issued, if this information is + * available. Provided as the currency code or currency number from the ISO-4217 standard. + * Example: USD * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardIssuingCurrency(String cardIssuingCurrency) { @@ -268,8 +296,12 @@ public ResponseAdditionalDataCard cardIssuingCurrency(String cardIssuingCurrency } /** - * The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD - * @return cardIssuingCurrency The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD + * The currency in which the card is issued, if this information is available. Provided as the + * currency code or currency number from the ISO-4217 standard. Example: USD + * + * @return cardIssuingCurrency The currency in which the card is issued, if this information is + * available. Provided as the currency code or currency number from the ISO-4217 standard. + * Example: USD */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -278,9 +310,12 @@ public String getCardIssuingCurrency() { } /** - * The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD + * The currency in which the card is issued, if this information is available. Provided as the + * currency code or currency number from the ISO-4217 standard. Example: USD * - * @param cardIssuingCurrency The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD + * @param cardIssuingCurrency The currency in which the card is issued, if this information is + * available. Provided as the currency code or currency number from the ISO-4217 standard. + * Example: USD */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -289,9 +324,9 @@ public void setCardIssuingCurrency(String cardIssuingCurrency) { } /** - * The card payment method used for the transaction. Example: amex + * The card payment method used for the transaction. Example: amex * - * @param cardPaymentMethod The card payment method used for the transaction. Example: amex + * @param cardPaymentMethod The card payment method used for the transaction. Example: amex * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardPaymentMethod(String cardPaymentMethod) { @@ -300,8 +335,9 @@ public ResponseAdditionalDataCard cardPaymentMethod(String cardPaymentMethod) { } /** - * The card payment method used for the transaction. Example: amex - * @return cardPaymentMethod The card payment method used for the transaction. Example: amex + * The card payment method used for the transaction. Example: amex + * + * @return cardPaymentMethod The card payment method used for the transaction. Example: amex */ @JsonProperty(JSON_PROPERTY_CARD_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -310,9 +346,9 @@ public String getCardPaymentMethod() { } /** - * The card payment method used for the transaction. Example: amex + * The card payment method used for the transaction. Example: amex * - * @param cardPaymentMethod The card payment method used for the transaction. Example: amex + * @param cardPaymentMethod The card payment method used for the transaction. Example: amex */ @JsonProperty(JSON_PROPERTY_CARD_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -321,9 +357,21 @@ public void setCardPaymentMethod(String cardPaymentMethod) { } /** - * The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit + * The Card Product ID represents the type of card following card scheme product definitions and + * can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - + * Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa + * Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard + * Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * + * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard + * Select Debit * - * @param cardProductId The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit + * @param cardProductId The Card Product ID represents the type of card following card scheme + * product definitions and can be returned for Adyen Acquiring service level payments. + * Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** + * - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values + * Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - + * Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard + * Premium Charge * **MCI** - Mastercard Select Debit * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardProductId(CardProductIdEnum cardProductId) { @@ -332,8 +380,21 @@ public ResponseAdditionalDataCard cardProductId(CardProductIdEnum cardProductId) } /** - * The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit - * @return cardProductId The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit + * The Card Product ID represents the type of card following card scheme product definitions and + * can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - + * Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa + * Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard + * Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * + * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard + * Select Debit + * + * @return cardProductId The Card Product ID represents the type of card following card scheme + * product definitions and can be returned for Adyen Acquiring service level payments. + * Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** + * - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values + * Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - + * Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard + * Premium Charge * **MCI** - Mastercard Select Debit */ @JsonProperty(JSON_PROPERTY_CARD_PRODUCT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -342,9 +403,21 @@ public CardProductIdEnum getCardProductId() { } /** - * The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit + * The Card Product ID represents the type of card following card scheme product definitions and + * can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - + * Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa + * Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard + * Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * + * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard + * Select Debit * - * @param cardProductId The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit + * @param cardProductId The Card Product ID represents the type of card following card scheme + * product definitions and can be returned for Adyen Acquiring service level payments. + * Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** + * - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values + * Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - + * Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard + * Premium Charge * **MCI** - Mastercard Select Debit */ @JsonProperty(JSON_PROPERTY_CARD_PRODUCT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -353,9 +426,10 @@ public void setCardProductId(CardProductIdEnum cardProductId) { } /** - * The last four digits of a card number. > Returned only in case of a card payment. + * The last four digits of a card number. > Returned only in case of a card payment. * - * @param cardSummary The last four digits of a card number. > Returned only in case of a card payment. + * @param cardSummary The last four digits of a card number. > Returned only in case of a card + * payment. * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardSummary(String cardSummary) { @@ -364,8 +438,10 @@ public ResponseAdditionalDataCard cardSummary(String cardSummary) { } /** - * The last four digits of a card number. > Returned only in case of a card payment. - * @return cardSummary The last four digits of a card number. > Returned only in case of a card payment. + * The last four digits of a card number. > Returned only in case of a card payment. + * + * @return cardSummary The last four digits of a card number. > Returned only in case of a card + * payment. */ @JsonProperty(JSON_PROPERTY_CARD_SUMMARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -374,9 +450,10 @@ public String getCardSummary() { } /** - * The last four digits of a card number. > Returned only in case of a card payment. + * The last four digits of a card number. > Returned only in case of a card payment. * - * @param cardSummary The last four digits of a card number. > Returned only in case of a card payment. + * @param cardSummary The last four digits of a card number. > Returned only in case of a card + * payment. */ @JsonProperty(JSON_PROPERTY_CARD_SUMMARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -385,9 +462,15 @@ public void setCardSummary(String cardSummary) { } /** - * The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 + * The first eight digits of the card number. Only returned if the card number is 16 digits or + * more. This is the [Bank Identification Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with an eight-digit BIN. Example: 52123423 * - * @param issuerBin The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 + * @param issuerBin The first eight digits of the card number. Only returned if the card number is + * 16 digits or more. This is the [Bank Identification Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with an eight-digit BIN. Example: 52123423 * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard issuerBin(String issuerBin) { @@ -396,8 +479,15 @@ public ResponseAdditionalDataCard issuerBin(String issuerBin) { } /** - * The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 - * @return issuerBin The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 + * The first eight digits of the card number. Only returned if the card number is 16 digits or + * more. This is the [Bank Identification Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with an eight-digit BIN. Example: 52123423 + * + * @return issuerBin The first eight digits of the card number. Only returned if the card number + * is 16 digits or more. This is the [Bank Identification Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with an eight-digit BIN. Example: 52123423 */ @JsonProperty(JSON_PROPERTY_ISSUER_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -406,9 +496,15 @@ public String getIssuerBin() { } /** - * The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 + * The first eight digits of the card number. Only returned if the card number is 16 digits or + * more. This is the [Bank Identification Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with an eight-digit BIN. Example: 52123423 * - * @param issuerBin The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 + * @param issuerBin The first eight digits of the card number. Only returned if the card number is + * 16 digits or more. This is the [Bank Identification Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with an eight-digit BIN. Example: 52123423 */ @JsonProperty(JSON_PROPERTY_ISSUER_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -416,9 +512,7 @@ public void setIssuerBin(String issuerBin) { this.issuerBin = issuerBin; } - /** - * Return true if this ResponseAdditionalDataCard object is equal to o. - */ + /** Return true if this ResponseAdditionalDataCard object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -428,20 +522,29 @@ public boolean equals(Object o) { return false; } ResponseAdditionalDataCard responseAdditionalDataCard = (ResponseAdditionalDataCard) o; - return Objects.equals(this.cardBin, responseAdditionalDataCard.cardBin) && - Objects.equals(this.cardHolderName, responseAdditionalDataCard.cardHolderName) && - Objects.equals(this.cardIssuingBank, responseAdditionalDataCard.cardIssuingBank) && - Objects.equals(this.cardIssuingCountry, responseAdditionalDataCard.cardIssuingCountry) && - Objects.equals(this.cardIssuingCurrency, responseAdditionalDataCard.cardIssuingCurrency) && - Objects.equals(this.cardPaymentMethod, responseAdditionalDataCard.cardPaymentMethod) && - Objects.equals(this.cardProductId, responseAdditionalDataCard.cardProductId) && - Objects.equals(this.cardSummary, responseAdditionalDataCard.cardSummary) && - Objects.equals(this.issuerBin, responseAdditionalDataCard.issuerBin); + return Objects.equals(this.cardBin, responseAdditionalDataCard.cardBin) + && Objects.equals(this.cardHolderName, responseAdditionalDataCard.cardHolderName) + && Objects.equals(this.cardIssuingBank, responseAdditionalDataCard.cardIssuingBank) + && Objects.equals(this.cardIssuingCountry, responseAdditionalDataCard.cardIssuingCountry) + && Objects.equals(this.cardIssuingCurrency, responseAdditionalDataCard.cardIssuingCurrency) + && Objects.equals(this.cardPaymentMethod, responseAdditionalDataCard.cardPaymentMethod) + && Objects.equals(this.cardProductId, responseAdditionalDataCard.cardProductId) + && Objects.equals(this.cardSummary, responseAdditionalDataCard.cardSummary) + && Objects.equals(this.issuerBin, responseAdditionalDataCard.issuerBin); } @Override public int hashCode() { - return Objects.hash(cardBin, cardHolderName, cardIssuingBank, cardIssuingCountry, cardIssuingCurrency, cardPaymentMethod, cardProductId, cardSummary, issuerBin); + return Objects.hash( + cardBin, + cardHolderName, + cardIssuingBank, + cardIssuingCountry, + cardIssuingCurrency, + cardPaymentMethod, + cardProductId, + cardSummary, + issuerBin); } @Override @@ -452,7 +555,9 @@ public String toString() { sb.append(" cardHolderName: ").append(toIndentedString(cardHolderName)).append("\n"); sb.append(" cardIssuingBank: ").append(toIndentedString(cardIssuingBank)).append("\n"); sb.append(" cardIssuingCountry: ").append(toIndentedString(cardIssuingCountry)).append("\n"); - sb.append(" cardIssuingCurrency: ").append(toIndentedString(cardIssuingCurrency)).append("\n"); + sb.append(" cardIssuingCurrency: ") + .append(toIndentedString(cardIssuingCurrency)) + .append("\n"); sb.append(" cardPaymentMethod: ").append(toIndentedString(cardPaymentMethod)).append("\n"); sb.append(" cardProductId: ").append(toIndentedString(cardProductId)).append("\n"); sb.append(" cardSummary: ").append(toIndentedString(cardSummary)).append("\n"); @@ -462,8 +567,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -472,21 +576,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResponseAdditionalDataCard given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataCard - * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataCard + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ResponseAdditionalDataCard */ - public static ResponseAdditionalDataCard fromJson(String jsonString) throws JsonProcessingException { + public static ResponseAdditionalDataCard fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataCard.class); } -/** - * Convert an instance of ResponseAdditionalDataCard to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResponseAdditionalDataCard to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCommon.java b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCommon.java index 7f06f0264..89a7c1b64 100644 --- a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCommon.java +++ b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCommon.java @@ -2,31 +2,26 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * ResponseAdditionalDataCommon - */ +/** ResponseAdditionalDataCommon */ @JsonPropertyOrder({ ResponseAdditionalDataCommon.JSON_PROPERTY_ACQUIRER_ACCOUNT_CODE, ResponseAdditionalDataCommon.JSON_PROPERTY_ACQUIRER_CODE, @@ -92,7 +87,6 @@ ResponseAdditionalDataCommon.JSON_PROPERTY_VISA_TRANSACTION_ID, ResponseAdditionalDataCommon.JSON_PROPERTY_XID }) - public class ResponseAdditionalDataCommon { public static final String JSON_PROPERTY_ACQUIRER_ACCOUNT_CODE = "acquirerAccountCode"; private String acquirerAccountCode; @@ -154,17 +148,15 @@ public class ResponseAdditionalDataCommon { public static final String JSON_PROPERTY_EXTRA_COSTS_VALUE = "extraCostsValue"; private String extraCostsValue; - public static final String JSON_PROPERTY_FRAUD_CHECK_ITEM_NR_FRAUD_CHECKNAME = "fraudCheck-[itemNr]-[FraudCheckname]"; + public static final String JSON_PROPERTY_FRAUD_CHECK_ITEM_NR_FRAUD_CHECKNAME = + "fraudCheck-[itemNr]-[FraudCheckname]"; private String fraudCheckItemNrFraudCheckname; public static final String JSON_PROPERTY_FRAUD_MANUAL_REVIEW = "fraudManualReview"; private String fraudManualReview; - /** - * The fraud result properties of the payment. - */ + /** The fraud result properties of the payment. */ public enum FraudResultTypeEnum { - GREEN(String.valueOf("GREEN")), FRAUD(String.valueOf("FRAUD")); @@ -174,7 +166,7 @@ public enum FraudResultTypeEnum { private String value; FraudResultTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -195,7 +187,11 @@ public static FraudResultTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FraudResultTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FraudResultTypeEnum.values())); + LOG.warning( + "FraudResultTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FraudResultTypeEnum.values())); return null; } } @@ -204,10 +200,12 @@ public static FraudResultTypeEnum fromValue(String value) { private FraudResultTypeEnum fraudResultType; /** - * The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * The risk level of the transaction as classified by the [machine + * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) + * fraud risk rule. The risk level indicates the likelihood that a transaction will result in a + * fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh */ public enum FraudRiskLevelEnum { - VERYLOW(String.valueOf("veryLow")), LOW(String.valueOf("low")), @@ -223,7 +221,7 @@ public enum FraudRiskLevelEnum { private String value; FraudRiskLevelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -244,7 +242,11 @@ public static FraudRiskLevelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FraudRiskLevelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FraudRiskLevelEnum.values())); + LOG.warning( + "FraudRiskLevelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FraudRiskLevelEnum.values())); return null; } } @@ -270,7 +272,8 @@ public static FraudRiskLevelEnum fromValue(String value) { public static final String JSON_PROPERTY_LIABILITY_SHIFT = "liabilityShift"; private String liabilityShift; - public static final String JSON_PROPERTY_MC_BANK_NET_REFERENCE_NUMBER = "mcBankNetReferenceNumber"; + public static final String JSON_PROPERTY_MC_BANK_NET_REFERENCE_NUMBER = + "mcBankNetReferenceNumber"; private String mcBankNetReferenceNumber; public static final String JSON_PROPERTY_MERCHANT_ADVICE_CODE = "merchantAdviceCode"; @@ -297,7 +300,8 @@ public static FraudRiskLevelEnum fromValue(String value) { public static final String JSON_PROPERTY_PAYOUT_ELIGIBLE = "payoutEligible"; private String payoutEligible; - public static final String JSON_PROPERTY_REALTIME_ACCOUNT_UPDATER_STATUS = "realtimeAccountUpdaterStatus"; + public static final String JSON_PROPERTY_REALTIME_ACCOUNT_UPDATER_STATUS = + "realtimeAccountUpdaterStatus"; private String realtimeAccountUpdaterStatus; public static final String JSON_PROPERTY_RECEIPT_FREE_TEXT = "receiptFreeText"; @@ -306,34 +310,36 @@ public static FraudRiskLevelEnum fromValue(String value) { public static final String JSON_PROPERTY_RECURRING_CONTRACT_TYPES = "recurring.contractTypes"; private String recurringContractTypes; - public static final String JSON_PROPERTY_RECURRING_FIRST_PSP_REFERENCE = "recurring.firstPspReference"; + public static final String JSON_PROPERTY_RECURRING_FIRST_PSP_REFERENCE = + "recurring.firstPspReference"; private String recurringFirstPspReference; - public static final String JSON_PROPERTY_RECURRING_RECURRING_DETAIL_REFERENCE = "recurring.recurringDetailReference"; - @Deprecated // deprecated since Adyen Payment API v68: Use tokenization.storedPaymentMethodId instead. + public static final String JSON_PROPERTY_RECURRING_RECURRING_DETAIL_REFERENCE = + "recurring.recurringDetailReference"; + @Deprecated // deprecated since Adyen Payment API v68: Use tokenization.storedPaymentMethodId + // instead. private String recurringRecurringDetailReference; - public static final String JSON_PROPERTY_RECURRING_SHOPPER_REFERENCE = "recurring.shopperReference"; + public static final String JSON_PROPERTY_RECURRING_SHOPPER_REFERENCE = + "recurring.shopperReference"; @Deprecated // deprecated since Adyen Payment API v68: Use tokenization.shopperReference instead. private String recurringShopperReference; - /** - * The processing model used for the recurring transaction. - */ + /** The processing model used for the recurring transaction. */ public enum RecurringProcessingModelEnum { - CARDONFILE(String.valueOf("CardOnFile")), SUBSCRIPTION(String.valueOf("Subscription")), UNSCHEDULEDCARDONFILE(String.valueOf("UnscheduledCardOnFile")); - private static final Logger LOG = Logger.getLogger(RecurringProcessingModelEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(RecurringProcessingModelEnum.class.getName()); private String value; RecurringProcessingModelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -354,7 +360,11 @@ public static RecurringProcessingModelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("RecurringProcessingModelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RecurringProcessingModelEnum.values())); + LOG.warning( + "RecurringProcessingModelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(RecurringProcessingModelEnum.values())); return null; } } @@ -386,7 +396,8 @@ public static RecurringProcessingModelEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_AUTHENTICATED = "threeDAuthenticated"; private String threeDAuthenticated; - public static final String JSON_PROPERTY_THREE_D_AUTHENTICATED_RESPONSE = "threeDAuthenticatedResponse"; + public static final String JSON_PROPERTY_THREE_D_AUTHENTICATED_RESPONSE = + "threeDAuthenticatedResponse"; private String threeDAuthenticatedResponse; public static final String JSON_PROPERTY_THREE_D_OFFERED = "threeDOffered"; @@ -398,26 +409,29 @@ public static RecurringProcessingModelEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_VERSION = "threeDSVersion"; private String threeDSVersion; - public static final String JSON_PROPERTY_TOKENIZATION_SHOPPER_REFERENCE = "tokenization.shopperReference"; + public static final String JSON_PROPERTY_TOKENIZATION_SHOPPER_REFERENCE = + "tokenization.shopperReference"; private String tokenizationShopperReference; /** - * The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. + * The operation performed on the token. Possible values: * **created**: the token has been + * created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details + * have already been stored. */ public enum TokenizationStoreOperationTypeEnum { - CREATED(String.valueOf("created")), UPDATED(String.valueOf("updated")), ALREADYEXISTING(String.valueOf("alreadyExisting")); - private static final Logger LOG = Logger.getLogger(TokenizationStoreOperationTypeEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(TokenizationStoreOperationTypeEnum.class.getName()); private String value; TokenizationStoreOperationTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -438,15 +452,21 @@ public static TokenizationStoreOperationTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TokenizationStoreOperationTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TokenizationStoreOperationTypeEnum.values())); + LOG.warning( + "TokenizationStoreOperationTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TokenizationStoreOperationTypeEnum.values())); return null; } } - public static final String JSON_PROPERTY_TOKENIZATION_STORE_OPERATION_TYPE = "tokenization.store.operationType"; + public static final String JSON_PROPERTY_TOKENIZATION_STORE_OPERATION_TYPE = + "tokenization.store.operationType"; private TokenizationStoreOperationTypeEnum tokenizationStoreOperationType; - public static final String JSON_PROPERTY_TOKENIZATION_STORED_PAYMENT_METHOD_ID = "tokenization.storedPaymentMethodId"; + public static final String JSON_PROPERTY_TOKENIZATION_STORED_PAYMENT_METHOD_ID = + "tokenization.storedPaymentMethodId"; private String tokenizationStoredPaymentMethodId; public static final String JSON_PROPERTY_VISA_TRANSACTION_ID = "visaTransactionId"; @@ -455,13 +475,14 @@ public static TokenizationStoreOperationTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_XID = "xid"; private String xid; - public ResponseAdditionalDataCommon() { - } + public ResponseAdditionalDataCommon() {} /** - * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. + * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant + * for PayPal transactions. * - * @param acquirerAccountCode The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. + * @param acquirerAccountCode The name of the Adyen acquirer account. Example: + * PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon acquirerAccountCode(String acquirerAccountCode) { @@ -470,8 +491,11 @@ public ResponseAdditionalDataCommon acquirerAccountCode(String acquirerAccountCo } /** - * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. - * @return acquirerAccountCode The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. + * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant + * for PayPal transactions. + * + * @return acquirerAccountCode The name of the Adyen acquirer account. Example: + * PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -480,9 +504,11 @@ public String getAcquirerAccountCode() { } /** - * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. + * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant + * for PayPal transactions. * - * @param acquirerAccountCode The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. + * @param acquirerAccountCode The name of the Adyen acquirer account. Example: + * PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -491,9 +517,10 @@ public void setAcquirerAccountCode(String acquirerAccountCode) { } /** - * The name of the acquirer processing the payment request. Example: TestPmmAcquirer + * The name of the acquirer processing the payment request. Example: TestPmmAcquirer * - * @param acquirerCode The name of the acquirer processing the payment request. Example: TestPmmAcquirer + * @param acquirerCode The name of the acquirer processing the payment request. Example: + * TestPmmAcquirer * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon acquirerCode(String acquirerCode) { @@ -502,8 +529,10 @@ public ResponseAdditionalDataCommon acquirerCode(String acquirerCode) { } /** - * The name of the acquirer processing the payment request. Example: TestPmmAcquirer - * @return acquirerCode The name of the acquirer processing the payment request. Example: TestPmmAcquirer + * The name of the acquirer processing the payment request. Example: TestPmmAcquirer + * + * @return acquirerCode The name of the acquirer processing the payment request. Example: + * TestPmmAcquirer */ @JsonProperty(JSON_PROPERTY_ACQUIRER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -512,9 +541,10 @@ public String getAcquirerCode() { } /** - * The name of the acquirer processing the payment request. Example: TestPmmAcquirer + * The name of the acquirer processing the payment request. Example: TestPmmAcquirer * - * @param acquirerCode The name of the acquirer processing the payment request. Example: TestPmmAcquirer + * @param acquirerCode The name of the acquirer processing the payment request. Example: + * TestPmmAcquirer */ @JsonProperty(JSON_PROPERTY_ACQUIRER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -523,9 +553,11 @@ public void setAcquirerCode(String acquirerCode) { } /** - * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 + * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used + * for settlement. Example: 7C9N3FNBKT9 * - * @param acquirerReference The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 + * @param acquirerReference The reference number that can be used for reconciliation in case a + * non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon acquirerReference(String acquirerReference) { @@ -534,8 +566,11 @@ public ResponseAdditionalDataCommon acquirerReference(String acquirerReference) } /** - * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 - * @return acquirerReference The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 + * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used + * for settlement. Example: 7C9N3FNBKT9 + * + * @return acquirerReference The reference number that can be used for reconciliation in case a + * non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 */ @JsonProperty(JSON_PROPERTY_ACQUIRER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -544,9 +579,11 @@ public String getAcquirerReference() { } /** - * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 + * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used + * for settlement. Example: 7C9N3FNBKT9 * - * @param acquirerReference The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 + * @param acquirerReference The reference number that can be used for reconciliation in case a + * non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 */ @JsonProperty(JSON_PROPERTY_ACQUIRER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -555,9 +592,9 @@ public void setAcquirerReference(String acquirerReference) { } /** - * The Adyen alias of the card. Example: H167852639363479 + * The Adyen alias of the card. Example: H167852639363479 * - * @param alias The Adyen alias of the card. Example: H167852639363479 + * @param alias The Adyen alias of the card. Example: H167852639363479 * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon alias(String alias) { @@ -566,8 +603,9 @@ public ResponseAdditionalDataCommon alias(String alias) { } /** - * The Adyen alias of the card. Example: H167852639363479 - * @return alias The Adyen alias of the card. Example: H167852639363479 + * The Adyen alias of the card. Example: H167852639363479 + * + * @return alias The Adyen alias of the card. Example: H167852639363479 */ @JsonProperty(JSON_PROPERTY_ALIAS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -576,9 +614,9 @@ public String getAlias() { } /** - * The Adyen alias of the card. Example: H167852639363479 + * The Adyen alias of the card. Example: H167852639363479 * - * @param alias The Adyen alias of the card. Example: H167852639363479 + * @param alias The Adyen alias of the card. Example: H167852639363479 */ @JsonProperty(JSON_PROPERTY_ALIAS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -587,9 +625,9 @@ public void setAlias(String alias) { } /** - * The type of the card alias. Example: Default + * The type of the card alias. Example: Default * - * @param aliasType The type of the card alias. Example: Default + * @param aliasType The type of the card alias. Example: Default * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon aliasType(String aliasType) { @@ -598,8 +636,9 @@ public ResponseAdditionalDataCommon aliasType(String aliasType) { } /** - * The type of the card alias. Example: Default - * @return aliasType The type of the card alias. Example: Default + * The type of the card alias. Example: Default + * + * @return aliasType The type of the card alias. Example: Default */ @JsonProperty(JSON_PROPERTY_ALIAS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -608,9 +647,9 @@ public String getAliasType() { } /** - * The type of the card alias. Example: Default + * The type of the card alias. Example: Default * - * @param aliasType The type of the card alias. Example: Default + * @param aliasType The type of the card alias. Example: Default */ @JsonProperty(JSON_PROPERTY_ALIAS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -619,9 +658,13 @@ public void setAliasType(String aliasType) { } /** - * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 + * Authorisation code: * When the payment is authorised successfully, this field holds the + * authorisation code for the payment. * When the payment is not authorised, this field is empty. + * Example: 58747 * - * @param authCode Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 + * @param authCode Authorisation code: * When the payment is authorised successfully, this field + * holds the authorisation code for the payment. * When the payment is not authorised, this + * field is empty. Example: 58747 * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon authCode(String authCode) { @@ -630,8 +673,13 @@ public ResponseAdditionalDataCommon authCode(String authCode) { } /** - * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 - * @return authCode Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 + * Authorisation code: * When the payment is authorised successfully, this field holds the + * authorisation code for the payment. * When the payment is not authorised, this field is empty. + * Example: 58747 + * + * @return authCode Authorisation code: * When the payment is authorised successfully, this field + * holds the authorisation code for the payment. * When the payment is not authorised, this + * field is empty. Example: 58747 */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -640,9 +688,13 @@ public String getAuthCode() { } /** - * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 + * Authorisation code: * When the payment is authorised successfully, this field holds the + * authorisation code for the payment. * When the payment is not authorised, this field is empty. + * Example: 58747 * - * @param authCode Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 + * @param authCode Authorisation code: * When the payment is authorised successfully, this field + * holds the authorisation code for the payment. * When the payment is not authorised, this + * field is empty. Example: 58747 */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -663,6 +715,7 @@ public ResponseAdditionalDataCommon authorisationMid(String authorisationMid) { /** * Merchant ID known by the acquirer. + * * @return authorisationMid Merchant ID known by the acquirer. */ @JsonProperty(JSON_PROPERTY_AUTHORISATION_MID) @@ -683,9 +736,11 @@ public void setAuthorisationMid(String authorisationMid) { } /** - * The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The currency of the authorised amount, as a three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). * - * @param authorisedAmountCurrency The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @param authorisedAmountCurrency The currency of the authorised amount, as a three-character + * [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon authorisedAmountCurrency(String authorisedAmountCurrency) { @@ -694,8 +749,11 @@ public ResponseAdditionalDataCommon authorisedAmountCurrency(String authorisedAm } /** - * The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). - * @return authorisedAmountCurrency The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The currency of the authorised amount, as a three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). + * + * @return authorisedAmountCurrency The currency of the authorised amount, as a three-character + * [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_AUTHORISED_AMOUNT_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -704,9 +762,11 @@ public String getAuthorisedAmountCurrency() { } /** - * The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The currency of the authorised amount, as a three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). * - * @param authorisedAmountCurrency The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @param authorisedAmountCurrency The currency of the authorised amount, as a three-character + * [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_AUTHORISED_AMOUNT_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -715,9 +775,12 @@ public void setAuthorisedAmountCurrency(String authorisedAmountCurrency) { } /** - * Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). + * Value of the amount authorised. This amount is represented in minor units according to the + * [following table](https://docs.adyen.com/development-resources/currency-codes). * - * @param authorisedAmountValue Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). + * @param authorisedAmountValue Value of the amount authorised. This amount is represented in + * minor units according to the [following + * table](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon authorisedAmountValue(String authorisedAmountValue) { @@ -726,8 +789,12 @@ public ResponseAdditionalDataCommon authorisedAmountValue(String authorisedAmoun } /** - * Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). - * @return authorisedAmountValue Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). + * Value of the amount authorised. This amount is represented in minor units according to the + * [following table](https://docs.adyen.com/development-resources/currency-codes). + * + * @return authorisedAmountValue Value of the amount authorised. This amount is represented in + * minor units according to the [following + * table](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_AUTHORISED_AMOUNT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -736,9 +803,12 @@ public String getAuthorisedAmountValue() { } /** - * Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). + * Value of the amount authorised. This amount is represented in minor units according to the + * [following table](https://docs.adyen.com/development-resources/currency-codes). * - * @param authorisedAmountValue Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). + * @param authorisedAmountValue Value of the amount authorised. This amount is represented in + * minor units according to the [following + * table](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_AUTHORISED_AMOUNT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -747,9 +817,13 @@ public void setAuthorisedAmountValue(String authorisedAmountValue) { } /** - * The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * The AVS result code of the payment, which provides information about the outcome of the AVS + * check. For possible values, see + * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). * - * @param avsResult The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * @param avsResult The AVS result code of the payment, which provides information about the + * outcome of the AVS check. For possible values, see + * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon avsResult(String avsResult) { @@ -758,8 +832,13 @@ public ResponseAdditionalDataCommon avsResult(String avsResult) { } /** - * The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). - * @return avsResult The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * The AVS result code of the payment, which provides information about the outcome of the AVS + * check. For possible values, see + * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * + * @return avsResult The AVS result code of the payment, which provides information about the + * outcome of the AVS check. For possible values, see + * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). */ @JsonProperty(JSON_PROPERTY_AVS_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -768,9 +847,13 @@ public String getAvsResult() { } /** - * The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * The AVS result code of the payment, which provides information about the outcome of the AVS + * check. For possible values, see + * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). * - * @param avsResult The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * @param avsResult The AVS result code of the payment, which provides information about the + * outcome of the AVS check. For possible values, see + * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). */ @JsonProperty(JSON_PROPERTY_AVS_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -779,9 +862,9 @@ public void setAvsResult(String avsResult) { } /** - * Raw AVS result received from the acquirer, where available. Example: D + * Raw AVS result received from the acquirer, where available. Example: D * - * @param avsResultRaw Raw AVS result received from the acquirer, where available. Example: D + * @param avsResultRaw Raw AVS result received from the acquirer, where available. Example: D * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon avsResultRaw(String avsResultRaw) { @@ -790,8 +873,9 @@ public ResponseAdditionalDataCommon avsResultRaw(String avsResultRaw) { } /** - * Raw AVS result received from the acquirer, where available. Example: D - * @return avsResultRaw Raw AVS result received from the acquirer, where available. Example: D + * Raw AVS result received from the acquirer, where available. Example: D + * + * @return avsResultRaw Raw AVS result received from the acquirer, where available. Example: D */ @JsonProperty(JSON_PROPERTY_AVS_RESULT_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -800,9 +884,9 @@ public String getAvsResultRaw() { } /** - * Raw AVS result received from the acquirer, where available. Example: D + * Raw AVS result received from the acquirer, where available. Example: D * - * @param avsResultRaw Raw AVS result received from the acquirer, where available. Example: D + * @param avsResultRaw Raw AVS result received from the acquirer, where available. Example: D */ @JsonProperty(JSON_PROPERTY_AVS_RESULT_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -811,9 +895,10 @@ public void setAvsResultRaw(String avsResultRaw) { } /** - * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. + * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. * - * @param bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. + * @param bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit + * transactions. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon bic(String bic) { @@ -822,8 +907,10 @@ public ResponseAdditionalDataCommon bic(String bic) { } /** - * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. - * @return bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. + * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. + * + * @return bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit + * transactions. */ @JsonProperty(JSON_PROPERTY_BIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -832,9 +919,10 @@ public String getBic() { } /** - * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. + * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. * - * @param bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. + * @param bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit + * transactions. */ @JsonProperty(JSON_PROPERTY_BIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -855,6 +943,7 @@ public ResponseAdditionalDataCommon coBrandedWith(String coBrandedWith) { /** * Includes the co-branded card information. + * * @return coBrandedWith Includes the co-branded card information. */ @JsonProperty(JSON_PROPERTY_CO_BRANDED_WITH) @@ -887,6 +976,7 @@ public ResponseAdditionalDataCommon cvcResult(String cvcResult) { /** * The result of CVC verification. + * * @return cvcResult The result of CVC verification. */ @JsonProperty(JSON_PROPERTY_CVC_RESULT) @@ -919,6 +1009,7 @@ public ResponseAdditionalDataCommon cvcResultRaw(String cvcResultRaw) { /** * The raw result of CVC verification. + * * @return cvcResultRaw The raw result of CVC verification. */ @JsonProperty(JSON_PROPERTY_CVC_RESULT_RAW) @@ -939,9 +1030,11 @@ public void setCvcResultRaw(String cvcResultRaw) { } /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. + * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a + * single transaction. * - * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. + * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the + * DS to identify a single transaction. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon dsTransID(String dsTransID) { @@ -950,8 +1043,11 @@ public ResponseAdditionalDataCommon dsTransID(String dsTransID) { } /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. - * @return dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. + * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a + * single transaction. + * + * @return dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the + * DS to identify a single transaction. */ @JsonProperty(JSON_PROPERTY_DS_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -960,9 +1056,11 @@ public String getDsTransID() { } /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. + * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a + * single transaction. * - * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. + * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the + * DS to identify a single transaction. */ @JsonProperty(JSON_PROPERTY_DS_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -971,9 +1069,11 @@ public void setDsTransID(String dsTransID) { } /** - * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 + * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. + * Example: 02 * - * @param eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 + * @param eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment + * session. Example: 02 * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon eci(String eci) { @@ -982,8 +1082,11 @@ public ResponseAdditionalDataCommon eci(String eci) { } /** - * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 - * @return eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 + * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. + * Example: 02 + * + * @return eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment + * session. Example: 02 */ @JsonProperty(JSON_PROPERTY_ECI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -992,9 +1095,11 @@ public String getEci() { } /** - * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 + * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. + * Example: 02 * - * @param eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 + * @param eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment + * session. Example: 02 */ @JsonProperty(JSON_PROPERTY_ECI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1003,9 +1108,10 @@ public void setEci(String eci) { } /** - * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. + * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. * - * @param expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. + * @param expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a + * card payment. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon expiryDate(String expiryDate) { @@ -1014,8 +1120,10 @@ public ResponseAdditionalDataCommon expiryDate(String expiryDate) { } /** - * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. - * @return expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. + * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. + * + * @return expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a + * card payment. */ @JsonProperty(JSON_PROPERTY_EXPIRY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1024,9 +1132,10 @@ public String getExpiryDate() { } /** - * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. + * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. * - * @param expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. + * @param expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a + * card payment. */ @JsonProperty(JSON_PROPERTY_EXPIRY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1035,9 +1144,11 @@ public void setExpiryDate(String expiryDate) { } /** - * The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR + * The currency of the extra amount charged due to additional amounts set in the skin used in the + * HPP payment request. Example: EUR * - * @param extraCostsCurrency The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR + * @param extraCostsCurrency The currency of the extra amount charged due to additional amounts + * set in the skin used in the HPP payment request. Example: EUR * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon extraCostsCurrency(String extraCostsCurrency) { @@ -1046,8 +1157,11 @@ public ResponseAdditionalDataCommon extraCostsCurrency(String extraCostsCurrency } /** - * The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR - * @return extraCostsCurrency The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR + * The currency of the extra amount charged due to additional amounts set in the skin used in the + * HPP payment request. Example: EUR + * + * @return extraCostsCurrency The currency of the extra amount charged due to additional amounts + * set in the skin used in the HPP payment request. Example: EUR */ @JsonProperty(JSON_PROPERTY_EXTRA_COSTS_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1056,9 +1170,11 @@ public String getExtraCostsCurrency() { } /** - * The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR + * The currency of the extra amount charged due to additional amounts set in the skin used in the + * HPP payment request. Example: EUR * - * @param extraCostsCurrency The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR + * @param extraCostsCurrency The currency of the extra amount charged due to additional amounts + * set in the skin used in the HPP payment request. Example: EUR */ @JsonProperty(JSON_PROPERTY_EXTRA_COSTS_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1067,9 +1183,11 @@ public void setExtraCostsCurrency(String extraCostsCurrency) { } /** - * The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. + * The value of the extra amount charged due to additional amounts set in the skin used in the HPP + * payment request. The amount is in minor units. * - * @param extraCostsValue The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. + * @param extraCostsValue The value of the extra amount charged due to additional amounts set in + * the skin used in the HPP payment request. The amount is in minor units. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon extraCostsValue(String extraCostsValue) { @@ -1078,8 +1196,11 @@ public ResponseAdditionalDataCommon extraCostsValue(String extraCostsValue) { } /** - * The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. - * @return extraCostsValue The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. + * The value of the extra amount charged due to additional amounts set in the skin used in the HPP + * payment request. The amount is in minor units. + * + * @return extraCostsValue The value of the extra amount charged due to additional amounts set in + * the skin used in the HPP payment request. The amount is in minor units. */ @JsonProperty(JSON_PROPERTY_EXTRA_COSTS_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1088,9 +1209,11 @@ public String getExtraCostsValue() { } /** - * The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. + * The value of the extra amount charged due to additional amounts set in the skin used in the HPP + * payment request. The amount is in minor units. * - * @param extraCostsValue The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. + * @param extraCostsValue The value of the extra amount charged due to additional amounts set in + * the skin used in the HPP payment request. The amount is in minor units. */ @JsonProperty(JSON_PROPERTY_EXTRA_COSTS_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1099,19 +1222,25 @@ public void setExtraCostsValue(String extraCostsValue) { } /** - * The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. + * The fraud score due to a particular fraud check. The fraud check name is found in the key of + * the key-value pair. * - * @param fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. + * @param fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The + * fraud check name is found in the key of the key-value pair. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon fraudCheckItemNrFraudCheckname(String fraudCheckItemNrFraudCheckname) { + public ResponseAdditionalDataCommon fraudCheckItemNrFraudCheckname( + String fraudCheckItemNrFraudCheckname) { this.fraudCheckItemNrFraudCheckname = fraudCheckItemNrFraudCheckname; return this; } /** - * The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. - * @return fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. + * The fraud score due to a particular fraud check. The fraud check name is found in the key of + * the key-value pair. + * + * @return fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The + * fraud check name is found in the key of the key-value pair. */ @JsonProperty(JSON_PROPERTY_FRAUD_CHECK_ITEM_NR_FRAUD_CHECKNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1120,9 +1249,11 @@ public String getFraudCheckItemNrFraudCheckname() { } /** - * The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. + * The fraud score due to a particular fraud check. The fraud check name is found in the key of + * the key-value pair. * - * @param fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. + * @param fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The + * fraud check name is found in the key of the key-value pair. */ @JsonProperty(JSON_PROPERTY_FRAUD_CHECK_ITEM_NR_FRAUD_CHECKNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1143,6 +1274,7 @@ public ResponseAdditionalDataCommon fraudManualReview(String fraudManualReview) /** * Indicates if the payment is sent to manual review. + * * @return fraudManualReview Indicates if the payment is sent to manual review. */ @JsonProperty(JSON_PROPERTY_FRAUD_MANUAL_REVIEW) @@ -1175,6 +1307,7 @@ public ResponseAdditionalDataCommon fraudResultType(FraudResultTypeEnum fraudRes /** * The fraud result properties of the payment. + * * @return fraudResultType The fraud result properties of the payment. */ @JsonProperty(JSON_PROPERTY_FRAUD_RESULT_TYPE) @@ -1195,9 +1328,16 @@ public void setFraudResultType(FraudResultTypeEnum fraudResultType) { } /** - * The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * The risk level of the transaction as classified by the [machine + * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) + * fraud risk rule. The risk level indicates the likelihood that a transaction will result in a + * fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh * - * @param fraudRiskLevel The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * @param fraudRiskLevel The risk level of the transaction as classified by the [machine + * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) + * fraud risk rule. The risk level indicates the likelihood that a transaction will result in + * a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * + * veryHigh * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon fraudRiskLevel(FraudRiskLevelEnum fraudRiskLevel) { @@ -1206,8 +1346,16 @@ public ResponseAdditionalDataCommon fraudRiskLevel(FraudRiskLevelEnum fraudRiskL } /** - * The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh - * @return fraudRiskLevel The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * The risk level of the transaction as classified by the [machine + * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) + * fraud risk rule. The risk level indicates the likelihood that a transaction will result in a + * fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * + * @return fraudRiskLevel The risk level of the transaction as classified by the [machine + * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) + * fraud risk rule. The risk level indicates the likelihood that a transaction will result in + * a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * + * veryHigh */ @JsonProperty(JSON_PROPERTY_FRAUD_RISK_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1216,9 +1364,16 @@ public FraudRiskLevelEnum getFraudRiskLevel() { } /** - * The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * The risk level of the transaction as classified by the [machine + * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) + * fraud risk rule. The risk level indicates the likelihood that a transaction will result in a + * fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh * - * @param fraudRiskLevel The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * @param fraudRiskLevel The risk level of the transaction as classified by the [machine + * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) + * fraud risk rule. The risk level indicates the likelihood that a transaction will result in + * a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * + * veryHigh */ @JsonProperty(JSON_PROPERTY_FRAUD_RISK_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1227,9 +1382,18 @@ public void setFraudRiskLevel(FraudRiskLevelEnum fraudRiskLevel) { } /** - * Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. + * Information regarding the funding type of the card. The possible return values are: * CHARGE * + * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > + * This functionality requires additional configuration on Adyen's end. To enable it, contact + * the Support Team. For receiving this field in the notification, enable **Include Funding + * Source** in **Notifications** > **Additional settings**. * - * @param fundingSource Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. + * @param fundingSource Information regarding the funding type of the card. The possible return + * values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * + * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional + * configuration on Adyen's end. To enable it, contact the Support Team. For receiving + * this field in the notification, enable **Include Funding Source** in **Notifications** > + * **Additional settings**. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon fundingSource(String fundingSource) { @@ -1238,8 +1402,18 @@ public ResponseAdditionalDataCommon fundingSource(String fundingSource) { } /** - * Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. - * @return fundingSource Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. + * Information regarding the funding type of the card. The possible return values are: * CHARGE * + * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > + * This functionality requires additional configuration on Adyen's end. To enable it, contact + * the Support Team. For receiving this field in the notification, enable **Include Funding + * Source** in **Notifications** > **Additional settings**. + * + * @return fundingSource Information regarding the funding type of the card. The possible return + * values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * + * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional + * configuration on Adyen's end. To enable it, contact the Support Team. For receiving + * this field in the notification, enable **Include Funding Source** in **Notifications** > + * **Additional settings**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1248,9 +1422,18 @@ public String getFundingSource() { } /** - * Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. + * Information regarding the funding type of the card. The possible return values are: * CHARGE * + * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > + * This functionality requires additional configuration on Adyen's end. To enable it, contact + * the Support Team. For receiving this field in the notification, enable **Include Funding + * Source** in **Notifications** > **Additional settings**. * - * @param fundingSource Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. + * @param fundingSource Information regarding the funding type of the card. The possible return + * values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * + * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional + * configuration on Adyen's end. To enable it, contact the Support Team. For receiving + * this field in the notification, enable **Include Funding Source** in **Notifications** > + * **Additional settings**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1259,9 +1442,17 @@ public void setFundingSource(String fundingSource) { } /** - * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". + * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * + * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or + * issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you + * verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or + * \"D\". * - * @param fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". + * @param fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds + * are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is + * Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) + * > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is + * \"Y\" or \"D\". * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon fundsAvailability(String fundsAvailability) { @@ -1270,8 +1461,17 @@ public ResponseAdditionalDataCommon fundsAvailability(String fundsAvailability) } /** - * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". - * @return fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". + * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * + * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or + * issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you + * verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or + * \"D\". + * + * @return fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds + * are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is + * Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) + * > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is + * \"Y\" or \"D\". */ @JsonProperty(JSON_PROPERTY_FUNDS_AVAILABILITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1280,9 +1480,17 @@ public String getFundsAvailability() { } /** - * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". + * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * + * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or + * issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you + * verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or + * \"D\". * - * @param fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". + * @param fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds + * are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is + * Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) + * > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is + * \"Y\" or \"D\". */ @JsonProperty(JSON_PROPERTY_FUNDS_AVAILABILITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1291,9 +1499,26 @@ public void setFundsAvailability(String fundsAvailability) { } /** - * Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card - * - * @param inferredRefusalReason Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card + * Provides the more granular indication of why a transaction was refused. When a transaction + * fails with either \"Refused\", \"Restricted Card\", \"Transaction Not + * Permitted\", \"Not supported\" or \"DeclinedNon Generic\" + * refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into + * the refusal reason. If an inferred refusal reason is available, the + * `inferredRefusalReason`, field is populated and the `refusalReason`, is set + * to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * + * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * + * Card Updated * Low Authrate Bin * Non-reloadable prepaid card + * + * @param inferredRefusalReason Provides the more granular indication of why a transaction was + * refused. When a transaction fails with either \"Refused\", \"Restricted + * Card\", \"Transaction Not Permitted\", \"Not supported\" or + * \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its + * PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is + * available, the `inferredRefusalReason`, field is populated and the + * `refusalReason`, is set to \"Not Supported\". Possible values: * 3D + * Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not + * Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable + * prepaid card * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon inferredRefusalReason(String inferredRefusalReason) { @@ -1302,8 +1527,26 @@ public ResponseAdditionalDataCommon inferredRefusalReason(String inferredRefusal } /** - * Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card - * @return inferredRefusalReason Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card + * Provides the more granular indication of why a transaction was refused. When a transaction + * fails with either \"Refused\", \"Restricted Card\", \"Transaction Not + * Permitted\", \"Not supported\" or \"DeclinedNon Generic\" + * refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into + * the refusal reason. If an inferred refusal reason is available, the + * `inferredRefusalReason`, field is populated and the `refusalReason`, is set + * to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * + * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * + * Card Updated * Low Authrate Bin * Non-reloadable prepaid card + * + * @return inferredRefusalReason Provides the more granular indication of why a transaction was + * refused. When a transaction fails with either \"Refused\", \"Restricted + * Card\", \"Transaction Not Permitted\", \"Not supported\" or + * \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its + * PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is + * available, the `inferredRefusalReason`, field is populated and the + * `refusalReason`, is set to \"Not Supported\". Possible values: * 3D + * Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not + * Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable + * prepaid card */ @JsonProperty(JSON_PROPERTY_INFERRED_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1312,9 +1555,26 @@ public String getInferredRefusalReason() { } /** - * Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card - * - * @param inferredRefusalReason Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card + * Provides the more granular indication of why a transaction was refused. When a transaction + * fails with either \"Refused\", \"Restricted Card\", \"Transaction Not + * Permitted\", \"Not supported\" or \"DeclinedNon Generic\" + * refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into + * the refusal reason. If an inferred refusal reason is available, the + * `inferredRefusalReason`, field is populated and the `refusalReason`, is set + * to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * + * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * + * Card Updated * Low Authrate Bin * Non-reloadable prepaid card + * + * @param inferredRefusalReason Provides the more granular indication of why a transaction was + * refused. When a transaction fails with either \"Refused\", \"Restricted + * Card\", \"Transaction Not Permitted\", \"Not supported\" or + * \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its + * PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is + * available, the `inferredRefusalReason`, field is populated and the + * `refusalReason`, is set to \"Not Supported\". Possible values: * 3D + * Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not + * Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable + * prepaid card */ @JsonProperty(JSON_PROPERTY_INFERRED_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1335,6 +1595,7 @@ public ResponseAdditionalDataCommon isCardCommercial(String isCardCommercial) { /** * Indicates if the card is used for business purposes only. + * * @return isCardCommercial Indicates if the card is used for business purposes only. */ @JsonProperty(JSON_PROPERTY_IS_CARD_COMMERCIAL) @@ -1355,9 +1616,10 @@ public void setIsCardCommercial(String isCardCommercial) { } /** - * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP + * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP * - * @param issuerCountry The issuing country of the card based on the BIN list that Adyen maintains. Example: JP + * @param issuerCountry The issuing country of the card based on the BIN list that Adyen + * maintains. Example: JP * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon issuerCountry(String issuerCountry) { @@ -1366,8 +1628,10 @@ public ResponseAdditionalDataCommon issuerCountry(String issuerCountry) { } /** - * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP - * @return issuerCountry The issuing country of the card based on the BIN list that Adyen maintains. Example: JP + * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP + * + * @return issuerCountry The issuing country of the card based on the BIN list that Adyen + * maintains. Example: JP */ @JsonProperty(JSON_PROPERTY_ISSUER_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1376,9 +1640,10 @@ public String getIssuerCountry() { } /** - * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP + * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP * - * @param issuerCountry The issuing country of the card based on the BIN list that Adyen maintains. Example: JP + * @param issuerCountry The issuing country of the card based on the BIN list that Adyen + * maintains. Example: JP */ @JsonProperty(JSON_PROPERTY_ISSUER_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1389,7 +1654,8 @@ public void setIssuerCountry(String issuerCountry) { /** * A Boolean value indicating whether a liability shift was offered for this payment. * - * @param liabilityShift A Boolean value indicating whether a liability shift was offered for this payment. + * @param liabilityShift A Boolean value indicating whether a liability shift was offered for this + * payment. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon liabilityShift(String liabilityShift) { @@ -1399,7 +1665,9 @@ public ResponseAdditionalDataCommon liabilityShift(String liabilityShift) { /** * A Boolean value indicating whether a liability shift was offered for this payment. - * @return liabilityShift A Boolean value indicating whether a liability shift was offered for this payment. + * + * @return liabilityShift A Boolean value indicating whether a liability shift was offered for + * this payment. */ @JsonProperty(JSON_PROPERTY_LIABILITY_SHIFT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1410,7 +1678,8 @@ public String getLiabilityShift() { /** * A Boolean value indicating whether a liability shift was offered for this payment. * - * @param liabilityShift A Boolean value indicating whether a liability shift was offered for this payment. + * @param liabilityShift A Boolean value indicating whether a liability shift was offered for this + * payment. */ @JsonProperty(JSON_PROPERTY_LIABILITY_SHIFT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1419,9 +1688,12 @@ public void setLiabilityShift(String liabilityShift) { } /** - * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. + * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine + * characters long. > Contact Support Team to enable this field. * - * @param mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. + * @param mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six + * characters and a maximum of nine characters long. > Contact Support Team to enable this + * field. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon mcBankNetReferenceNumber(String mcBankNetReferenceNumber) { @@ -1430,8 +1702,12 @@ public ResponseAdditionalDataCommon mcBankNetReferenceNumber(String mcBankNetRef } /** - * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. - * @return mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. + * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine + * characters long. > Contact Support Team to enable this field. + * + * @return mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six + * characters and a maximum of nine characters long. > Contact Support Team to enable this + * field. */ @JsonProperty(JSON_PROPERTY_MC_BANK_NET_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1440,9 +1716,12 @@ public String getMcBankNetReferenceNumber() { } /** - * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. + * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine + * characters long. > Contact Support Team to enable this field. * - * @param mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. + * @param mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six + * characters and a maximum of nine characters long. > Contact Support Team to enable this + * field. */ @JsonProperty(JSON_PROPERTY_MC_BANK_NET_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1451,9 +1730,15 @@ public void setMcBankNetReferenceNumber(String mcBankNetReferenceNumber) { } /** - * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If + * present, the MAC contains information about why the payment failed, and whether it can be + * retried. For more information see [Mastercard Merchant Advice + * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). * - * @param merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * @param merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers + * for refused payments. If present, the MAC contains information about why the payment + * failed, and whether it can be retried. For more information see [Mastercard Merchant Advice + * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon merchantAdviceCode(String merchantAdviceCode) { @@ -1462,8 +1747,15 @@ public ResponseAdditionalDataCommon merchantAdviceCode(String merchantAdviceCode } /** - * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). - * @return merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If + * present, the MAC contains information about why the payment failed, and whether it can be + * retried. For more information see [Mastercard Merchant Advice + * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * + * @return merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers + * for refused payments. If present, the MAC contains information about why the payment + * failed, and whether it can be retried. For more information see [Mastercard Merchant Advice + * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). */ @JsonProperty(JSON_PROPERTY_MERCHANT_ADVICE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1472,9 +1764,15 @@ public String getMerchantAdviceCode() { } /** - * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If + * present, the MAC contains information about why the payment failed, and whether it can be + * retried. For more information see [Mastercard Merchant Advice + * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). * - * @param merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * @param merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers + * for refused payments. If present, the MAC contains information about why the payment + * failed, and whether it can be retried. For more information see [Mastercard Merchant Advice + * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). */ @JsonProperty(JSON_PROPERTY_MERCHANT_ADVICE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1495,6 +1793,7 @@ public ResponseAdditionalDataCommon merchantReference(String merchantReference) /** * The reference provided for the transaction. + * * @return merchantReference The reference provided for the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCE) @@ -1515,9 +1814,13 @@ public void setMerchantReference(String merchantReference) { } /** - * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the + * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either + * the Mastercard Trace ID or the Visa Transaction ID. * - * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are + * using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This + * contains either the Mastercard Trace ID or the Visa Transaction ID. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon networkTxReference(String networkTxReference) { @@ -1526,8 +1829,13 @@ public ResponseAdditionalDataCommon networkTxReference(String networkTxReference } /** - * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. - * @return networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the + * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either + * the Mastercard Trace ID or the Visa Transaction ID. + * + * @return networkTxReference Returned in the response if you are not tokenizing with Adyen and + * are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This + * contains either the Mastercard Trace ID or the Visa Transaction ID. */ @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1536,9 +1844,13 @@ public String getNetworkTxReference() { } /** - * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the + * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either + * the Mastercard Trace ID or the Visa Transaction ID. * - * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are + * using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This + * contains either the Mastercard Trace ID or the Visa Transaction ID. */ @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1547,9 +1859,10 @@ public void setNetworkTxReference(String networkTxReference) { } /** - * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. + * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. * - * @param ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. + * @param ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit + * transactions. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon ownerName(String ownerName) { @@ -1558,8 +1871,10 @@ public ResponseAdditionalDataCommon ownerName(String ownerName) { } /** - * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. - * @return ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. + * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. + * + * @return ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit + * transactions. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1568,9 +1883,10 @@ public String getOwnerName() { } /** - * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. + * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. * - * @param ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. + * @param ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit + * transactions. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1579,9 +1895,12 @@ public void setOwnerName(String ownerName) { } /** - * The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. + * The Payment Account Reference (PAR) value links a network token with the underlying primary + * account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. * - * @param paymentAccountReference The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. + * @param paymentAccountReference The Payment Account Reference (PAR) value links a network token + * with the underlying primary account number (PAN). The PAR value consists of 29 uppercase + * alphanumeric characters. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon paymentAccountReference(String paymentAccountReference) { @@ -1590,8 +1909,12 @@ public ResponseAdditionalDataCommon paymentAccountReference(String paymentAccoun } /** - * The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. - * @return paymentAccountReference The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. + * The Payment Account Reference (PAR) value links a network token with the underlying primary + * account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. + * + * @return paymentAccountReference The Payment Account Reference (PAR) value links a network token + * with the underlying primary account number (PAN). The PAR value consists of 29 uppercase + * alphanumeric characters. */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACCOUNT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1600,9 +1923,12 @@ public String getPaymentAccountReference() { } /** - * The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. + * The Payment Account Reference (PAR) value links a network token with the underlying primary + * account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. * - * @param paymentAccountReference The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. + * @param paymentAccountReference The Payment Account Reference (PAR) value links a network token + * with the underlying primary account number (PAN). The PAR value consists of 29 uppercase + * alphanumeric characters. */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACCOUNT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1623,6 +1949,7 @@ public ResponseAdditionalDataCommon paymentMethod(String paymentMethod) { /** * The payment method used in the transaction. + * * @return paymentMethod The payment method used in the transaction. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @@ -1643,9 +1970,15 @@ public void setPaymentMethod(String paymentMethod) { } /** - * The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro + * The Adyen sub-variant of the payment method used for the payment request. For more information, + * refer to + * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). + * Example: mcpro * - * @param paymentMethodVariant The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro + * @param paymentMethodVariant The Adyen sub-variant of the payment method used for the payment + * request. For more information, refer to + * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). + * Example: mcpro * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon paymentMethodVariant(String paymentMethodVariant) { @@ -1654,8 +1987,15 @@ public ResponseAdditionalDataCommon paymentMethodVariant(String paymentMethodVar } /** - * The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro - * @return paymentMethodVariant The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro + * The Adyen sub-variant of the payment method used for the payment request. For more information, + * refer to + * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). + * Example: mcpro + * + * @return paymentMethodVariant The Adyen sub-variant of the payment method used for the payment + * request. For more information, refer to + * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). + * Example: mcpro */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1664,9 +2004,15 @@ public String getPaymentMethodVariant() { } /** - * The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro + * The Adyen sub-variant of the payment method used for the payment request. For more information, + * refer to + * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). + * Example: mcpro * - * @param paymentMethodVariant The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro + * @param paymentMethodVariant The Adyen sub-variant of the payment method used for the payment + * request. For more information, refer to + * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). + * Example: mcpro */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1675,9 +2021,14 @@ public void setPaymentMethodVariant(String paymentMethodVariant) { } /** - * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) + * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * + * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" + * (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) * - * @param payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) + * @param payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * + * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) + * * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" + * (unknown) * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon payoutEligible(String payoutEligible) { @@ -1686,8 +2037,14 @@ public ResponseAdditionalDataCommon payoutEligible(String payoutEligible) { } /** - * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) - * @return payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) + * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * + * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" + * (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) + * + * @return payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * + * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) + * * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" + * (unknown) */ @JsonProperty(JSON_PROPERTY_PAYOUT_ELIGIBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1696,9 +2053,14 @@ public String getPayoutEligible() { } /** - * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) + * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * + * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" + * (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) * - * @param payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) + * @param payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * + * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) + * * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" + * (unknown) */ @JsonProperty(JSON_PROPERTY_PAYOUT_ELIGIBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1707,19 +2069,27 @@ public void setPayoutEligible(String payoutEligible) { } /** - * The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder + * The response code from the Real Time Account Updater service. Possible return values are: * + * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder * - * @param realtimeAccountUpdaterStatus The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder + * @param realtimeAccountUpdaterStatus The response code from the Real Time Account Updater + * service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * + * ContactCardAccountHolder * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon realtimeAccountUpdaterStatus(String realtimeAccountUpdaterStatus) { + public ResponseAdditionalDataCommon realtimeAccountUpdaterStatus( + String realtimeAccountUpdaterStatus) { this.realtimeAccountUpdaterStatus = realtimeAccountUpdaterStatus; return this; } /** - * The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder - * @return realtimeAccountUpdaterStatus The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder + * The response code from the Real Time Account Updater service. Possible return values are: * + * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder + * + * @return realtimeAccountUpdaterStatus The response code from the Real Time Account Updater + * service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * + * ContactCardAccountHolder */ @JsonProperty(JSON_PROPERTY_REALTIME_ACCOUNT_UPDATER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1728,9 +2098,12 @@ public String getRealtimeAccountUpdaterStatus() { } /** - * The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder + * The response code from the Real Time Account Updater service. Possible return values are: * + * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder * - * @param realtimeAccountUpdaterStatus The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder + * @param realtimeAccountUpdaterStatus The response code from the Real Time Account Updater + * service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * + * ContactCardAccountHolder */ @JsonProperty(JSON_PROPERTY_REALTIME_ACCOUNT_UPDATER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1751,6 +2124,7 @@ public ResponseAdditionalDataCommon receiptFreeText(String receiptFreeText) { /** * Message to be displayed on the terminal. + * * @return receiptFreeText Message to be displayed on the terminal. */ @JsonProperty(JSON_PROPERTY_RECEIPT_FREE_TEXT) @@ -1783,6 +2157,7 @@ public ResponseAdditionalDataCommon recurringContractTypes(String recurringContr /** * The recurring contract types applicable to the transaction. + * * @return recurringContractTypes The recurring contract types applicable to the transaction. */ @JsonProperty(JSON_PROPERTY_RECURRING_CONTRACT_TYPES) @@ -1803,19 +2178,29 @@ public void setRecurringContractTypes(String recurringContractTypes) { } /** - * The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. + * The `pspReference`, of the first recurring payment that created the recurring detail. + * This functionality requires additional configuration on Adyen's end. To enable it, contact + * the Support Team. * - * @param recurringFirstPspReference The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. + * @param recurringFirstPspReference The `pspReference`, of the first recurring payment + * that created the recurring detail. This functionality requires additional configuration on + * Adyen's end. To enable it, contact the Support Team. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon recurringFirstPspReference(String recurringFirstPspReference) { + public ResponseAdditionalDataCommon recurringFirstPspReference( + String recurringFirstPspReference) { this.recurringFirstPspReference = recurringFirstPspReference; return this; } /** - * The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. - * @return recurringFirstPspReference The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. + * The `pspReference`, of the first recurring payment that created the recurring detail. + * This functionality requires additional configuration on Adyen's end. To enable it, contact + * the Support Team. + * + * @return recurringFirstPspReference The `pspReference`, of the first recurring payment + * that created the recurring detail. This functionality requires additional configuration on + * Adyen's end. To enable it, contact the Support Team. */ @JsonProperty(JSON_PROPERTY_RECURRING_FIRST_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1824,9 +2209,13 @@ public String getRecurringFirstPspReference() { } /** - * The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. + * The `pspReference`, of the first recurring payment that created the recurring detail. + * This functionality requires additional configuration on Adyen's end. To enable it, contact + * the Support Team. * - * @param recurringFirstPspReference The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. + * @param recurringFirstPspReference The `pspReference`, of the first recurring payment + * that created the recurring detail. This functionality requires additional configuration on + * Adyen's end. To enable it, contact the Support Team. */ @JsonProperty(JSON_PROPERTY_RECURRING_FIRST_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1837,24 +2226,29 @@ public void setRecurringFirstPspReference(String recurringFirstPspReference) { /** * The reference that uniquely identifies the recurring transaction. * - * @param recurringRecurringDetailReference The reference that uniquely identifies the recurring transaction. + * @param recurringRecurringDetailReference The reference that uniquely identifies the recurring + * transaction. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining - * - * @deprecated since Adyen Payment API v68 - * Use tokenization.storedPaymentMethodId instead. + * @deprecated since Adyen Payment API v68 Use tokenization.storedPaymentMethodId instead. */ - @Deprecated // deprecated since Adyen Payment API v68: Use tokenization.storedPaymentMethodId instead. - public ResponseAdditionalDataCommon recurringRecurringDetailReference(String recurringRecurringDetailReference) { + @Deprecated // deprecated since Adyen Payment API v68: Use tokenization.storedPaymentMethodId + // instead. + public ResponseAdditionalDataCommon recurringRecurringDetailReference( + String recurringRecurringDetailReference) { this.recurringRecurringDetailReference = recurringRecurringDetailReference; return this; } /** * The reference that uniquely identifies the recurring transaction. - * @return recurringRecurringDetailReference The reference that uniquely identifies the recurring transaction. - * @deprecated // deprecated since Adyen Payment API v68: Use tokenization.storedPaymentMethodId instead. + * + * @return recurringRecurringDetailReference The reference that uniquely identifies the recurring + * transaction. + * @deprecated // deprecated since Adyen Payment API v68: Use tokenization.storedPaymentMethodId + * instead. */ - @Deprecated // deprecated since Adyen Payment API v68: Use tokenization.storedPaymentMethodId instead. + @Deprecated // deprecated since Adyen Payment API v68: Use tokenization.storedPaymentMethodId + // instead. @JsonProperty(JSON_PROPERTY_RECURRING_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringRecurringDetailReference() { @@ -1864,12 +2258,12 @@ public String getRecurringRecurringDetailReference() { /** * The reference that uniquely identifies the recurring transaction. * - * @param recurringRecurringDetailReference The reference that uniquely identifies the recurring transaction. - * - * @deprecated since Adyen Payment API v68 - * Use tokenization.storedPaymentMethodId instead. + * @param recurringRecurringDetailReference The reference that uniquely identifies the recurring + * transaction. + * @deprecated since Adyen Payment API v68 Use tokenization.storedPaymentMethodId instead. */ - @Deprecated // deprecated since Adyen Payment API v68: Use tokenization.storedPaymentMethodId instead. + @Deprecated // deprecated since Adyen Payment API v68: Use tokenization.storedPaymentMethodId + // instead. @JsonProperty(JSON_PROPERTY_RECURRING_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringRecurringDetailReference(String recurringRecurringDetailReference) { @@ -1879,11 +2273,10 @@ public void setRecurringRecurringDetailReference(String recurringRecurringDetail /** * The provided reference of the shopper for a recurring transaction. * - * @param recurringShopperReference The provided reference of the shopper for a recurring transaction. + * @param recurringShopperReference The provided reference of the shopper for a recurring + * transaction. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining - * - * @deprecated since Adyen Payment API v68 - * Use tokenization.shopperReference instead. + * @deprecated since Adyen Payment API v68 Use tokenization.shopperReference instead. */ @Deprecated // deprecated since Adyen Payment API v68: Use tokenization.shopperReference instead. public ResponseAdditionalDataCommon recurringShopperReference(String recurringShopperReference) { @@ -1893,8 +2286,11 @@ public ResponseAdditionalDataCommon recurringShopperReference(String recurringSh /** * The provided reference of the shopper for a recurring transaction. - * @return recurringShopperReference The provided reference of the shopper for a recurring transaction. - * @deprecated // deprecated since Adyen Payment API v68: Use tokenization.shopperReference instead. + * + * @return recurringShopperReference The provided reference of the shopper for a recurring + * transaction. + * @deprecated // deprecated since Adyen Payment API v68: Use tokenization.shopperReference + * instead. */ @Deprecated // deprecated since Adyen Payment API v68: Use tokenization.shopperReference instead. @JsonProperty(JSON_PROPERTY_RECURRING_SHOPPER_REFERENCE) @@ -1906,10 +2302,9 @@ public String getRecurringShopperReference() { /** * The provided reference of the shopper for a recurring transaction. * - * @param recurringShopperReference The provided reference of the shopper for a recurring transaction. - * - * @deprecated since Adyen Payment API v68 - * Use tokenization.shopperReference instead. + * @param recurringShopperReference The provided reference of the shopper for a recurring + * transaction. + * @deprecated since Adyen Payment API v68 Use tokenization.shopperReference instead. */ @Deprecated // deprecated since Adyen Payment API v68: Use tokenization.shopperReference instead. @JsonProperty(JSON_PROPERTY_RECURRING_SHOPPER_REFERENCE) @@ -1924,13 +2319,15 @@ public void setRecurringShopperReference(String recurringShopperReference) { * @param recurringProcessingModel The processing model used for the recurring transaction. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon recurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) { + public ResponseAdditionalDataCommon recurringProcessingModel( + RecurringProcessingModelEnum recurringProcessingModel) { this.recurringProcessingModel = recurringProcessingModel; return this; } /** * The processing model used for the recurring transaction. + * * @return recurringProcessingModel The processing model used for the recurring transaction. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @@ -1951,9 +2348,12 @@ public void setRecurringProcessingModel(RecurringProcessingModelEnum recurringPr } /** - * If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true + * If the payment is referred, this field is set to true. This field is unavailable if the payment + * is referred and is usually not returned with ecommerce transactions. Example: true * - * @param referred If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true + * @param referred If the payment is referred, this field is set to true. This field is + * unavailable if the payment is referred and is usually not returned with ecommerce + * transactions. Example: true * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon referred(String referred) { @@ -1962,8 +2362,12 @@ public ResponseAdditionalDataCommon referred(String referred) { } /** - * If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true - * @return referred If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true + * If the payment is referred, this field is set to true. This field is unavailable if the payment + * is referred and is usually not returned with ecommerce transactions. Example: true + * + * @return referred If the payment is referred, this field is set to true. This field is + * unavailable if the payment is referred and is usually not returned with ecommerce + * transactions. Example: true */ @JsonProperty(JSON_PROPERTY_REFERRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1972,9 +2376,12 @@ public String getReferred() { } /** - * If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true + * If the payment is referred, this field is set to true. This field is unavailable if the payment + * is referred and is usually not returned with ecommerce transactions. Example: true * - * @param referred If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true + * @param referred If the payment is referred, this field is set to true. This field is + * unavailable if the payment is referred and is usually not returned with ecommerce + * transactions. Example: true */ @JsonProperty(JSON_PROPERTY_REFERRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1983,9 +2390,10 @@ public void setReferred(String referred) { } /** - * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED + * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED * - * @param refusalReasonRaw Raw refusal reason received from the acquirer, where available. Example: AUTHORISED + * @param refusalReasonRaw Raw refusal reason received from the acquirer, where available. + * Example: AUTHORISED * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon refusalReasonRaw(String refusalReasonRaw) { @@ -1994,8 +2402,10 @@ public ResponseAdditionalDataCommon refusalReasonRaw(String refusalReasonRaw) { } /** - * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED - * @return refusalReasonRaw Raw refusal reason received from the acquirer, where available. Example: AUTHORISED + * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED + * + * @return refusalReasonRaw Raw refusal reason received from the acquirer, where available. + * Example: AUTHORISED */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2004,9 +2414,10 @@ public String getRefusalReasonRaw() { } /** - * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED + * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED * - * @param refusalReasonRaw Raw refusal reason received from the acquirer, where available. Example: AUTHORISED + * @param refusalReasonRaw Raw refusal reason received from the acquirer, where available. + * Example: AUTHORISED */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2027,6 +2438,7 @@ public ResponseAdditionalDataCommon requestAmount(String requestAmount) { /** * The amount of the payment request. + * * @return requestAmount The amount of the payment request. */ @JsonProperty(JSON_PROPERTY_REQUEST_AMOUNT) @@ -2059,6 +2471,7 @@ public ResponseAdditionalDataCommon requestCurrencyCode(String requestCurrencyCo /** * The currency of the payment request. + * * @return requestCurrencyCode The currency of the payment request. */ @JsonProperty(JSON_PROPERTY_REQUEST_CURRENCY_CODE) @@ -2079,9 +2492,10 @@ public void setRequestCurrencyCode(String requestCurrencyCode) { } /** - * The shopper interaction type of the payment request. Example: Ecommerce + * The shopper interaction type of the payment request. Example: Ecommerce * - * @param shopperInteraction The shopper interaction type of the payment request. Example: Ecommerce + * @param shopperInteraction The shopper interaction type of the payment request. Example: + * Ecommerce * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon shopperInteraction(String shopperInteraction) { @@ -2090,8 +2504,10 @@ public ResponseAdditionalDataCommon shopperInteraction(String shopperInteraction } /** - * The shopper interaction type of the payment request. Example: Ecommerce - * @return shopperInteraction The shopper interaction type of the payment request. Example: Ecommerce + * The shopper interaction type of the payment request. Example: Ecommerce + * + * @return shopperInteraction The shopper interaction type of the payment request. Example: + * Ecommerce */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2100,9 +2516,10 @@ public String getShopperInteraction() { } /** - * The shopper interaction type of the payment request. Example: Ecommerce + * The shopper interaction type of the payment request. Example: Ecommerce * - * @param shopperInteraction The shopper interaction type of the payment request. Example: Ecommerce + * @param shopperInteraction The shopper interaction type of the payment request. Example: + * Ecommerce */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2111,9 +2528,10 @@ public void setShopperInteraction(String shopperInteraction) { } /** - * The shopperReference passed in the payment request. Example: AdyenTestShopperXX + * The shopperReference passed in the payment request. Example: AdyenTestShopperXX * - * @param shopperReference The shopperReference passed in the payment request. Example: AdyenTestShopperXX + * @param shopperReference The shopperReference passed in the payment request. Example: + * AdyenTestShopperXX * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon shopperReference(String shopperReference) { @@ -2122,8 +2540,10 @@ public ResponseAdditionalDataCommon shopperReference(String shopperReference) { } /** - * The shopperReference passed in the payment request. Example: AdyenTestShopperXX - * @return shopperReference The shopperReference passed in the payment request. Example: AdyenTestShopperXX + * The shopperReference passed in the payment request. Example: AdyenTestShopperXX + * + * @return shopperReference The shopperReference passed in the payment request. Example: + * AdyenTestShopperXX */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2132,9 +2552,10 @@ public String getShopperReference() { } /** - * The shopperReference passed in the payment request. Example: AdyenTestShopperXX + * The shopperReference passed in the payment request. Example: AdyenTestShopperXX * - * @param shopperReference The shopperReference passed in the payment request. Example: AdyenTestShopperXX + * @param shopperReference The shopperReference passed in the payment request. Example: + * AdyenTestShopperXX */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2143,9 +2564,9 @@ public void setShopperReference(String shopperReference) { } /** - * The terminal ID used in a point-of-sale payment. Example: 06022622 + * The terminal ID used in a point-of-sale payment. Example: 06022622 * - * @param terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 + * @param terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon terminalId(String terminalId) { @@ -2154,8 +2575,9 @@ public ResponseAdditionalDataCommon terminalId(String terminalId) { } /** - * The terminal ID used in a point-of-sale payment. Example: 06022622 - * @return terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 + * The terminal ID used in a point-of-sale payment. Example: 06022622 + * + * @return terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 */ @JsonProperty(JSON_PROPERTY_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2164,9 +2586,9 @@ public String getTerminalId() { } /** - * The terminal ID used in a point-of-sale payment. Example: 06022622 + * The terminal ID used in a point-of-sale payment. Example: 06022622 * - * @param terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 + * @param terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 */ @JsonProperty(JSON_PROPERTY_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2175,9 +2597,11 @@ public void setTerminalId(String terminalId) { } /** - * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: + * true * - * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed + * on this payment. Example: true * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon threeDAuthenticated(String threeDAuthenticated) { @@ -2186,8 +2610,11 @@ public ResponseAdditionalDataCommon threeDAuthenticated(String threeDAuthenticat } /** - * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true - * @return threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: + * true + * + * @return threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed + * on this payment. Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2196,9 +2623,11 @@ public String getThreeDAuthenticated() { } /** - * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: + * true * - * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed + * on this payment. Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2207,19 +2636,23 @@ public void setThreeDAuthenticated(String threeDAuthenticated) { } /** - * The raw 3DS authentication result from the card issuer. Example: N + * The raw 3DS authentication result from the card issuer. Example: N * - * @param threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. Example: N + * @param threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. + * Example: N * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon threeDAuthenticatedResponse(String threeDAuthenticatedResponse) { + public ResponseAdditionalDataCommon threeDAuthenticatedResponse( + String threeDAuthenticatedResponse) { this.threeDAuthenticatedResponse = threeDAuthenticatedResponse; return this; } /** - * The raw 3DS authentication result from the card issuer. Example: N - * @return threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. Example: N + * The raw 3DS authentication result from the card issuer. Example: N + * + * @return threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. + * Example: N */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2228,9 +2661,10 @@ public String getThreeDAuthenticatedResponse() { } /** - * The raw 3DS authentication result from the card issuer. Example: N + * The raw 3DS authentication result from the card issuer. Example: N * - * @param threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. Example: N + * @param threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. + * Example: N */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2239,9 +2673,10 @@ public void setThreeDAuthenticatedResponse(String threeDAuthenticatedResponse) { } /** - * A Boolean value indicating whether 3DS was offered for this payment. Example: true + * A Boolean value indicating whether 3DS was offered for this payment. Example: true * - * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. Example: true + * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. + * Example: true * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon threeDOffered(String threeDOffered) { @@ -2250,8 +2685,10 @@ public ResponseAdditionalDataCommon threeDOffered(String threeDOffered) { } /** - * A Boolean value indicating whether 3DS was offered for this payment. Example: true - * @return threeDOffered A Boolean value indicating whether 3DS was offered for this payment. Example: true + * A Boolean value indicating whether 3DS was offered for this payment. Example: true + * + * @return threeDOffered A Boolean value indicating whether 3DS was offered for this payment. + * Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2260,9 +2697,10 @@ public String getThreeDOffered() { } /** - * A Boolean value indicating whether 3DS was offered for this payment. Example: true + * A Boolean value indicating whether 3DS was offered for this payment. Example: true * - * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. Example: true + * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. + * Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2271,9 +2709,10 @@ public void setThreeDOffered(String threeDOffered) { } /** - * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y + * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y * - * @param threeDOfferedResponse The raw enrollment result from the 3DS directory services of the card schemes. Example: Y + * @param threeDOfferedResponse The raw enrollment result from the 3DS directory services of the + * card schemes. Example: Y * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon threeDOfferedResponse(String threeDOfferedResponse) { @@ -2282,8 +2721,10 @@ public ResponseAdditionalDataCommon threeDOfferedResponse(String threeDOfferedRe } /** - * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y - * @return threeDOfferedResponse The raw enrollment result from the 3DS directory services of the card schemes. Example: Y + * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y + * + * @return threeDOfferedResponse The raw enrollment result from the 3DS directory services of the + * card schemes. Example: Y */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2292,9 +2733,10 @@ public String getThreeDOfferedResponse() { } /** - * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y + * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y * - * @param threeDOfferedResponse The raw enrollment result from the 3DS directory services of the card schemes. Example: Y + * @param threeDOfferedResponse The raw enrollment result from the 3DS directory services of the + * card schemes. Example: Y */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2315,6 +2757,7 @@ public ResponseAdditionalDataCommon threeDSVersion(String threeDSVersion) { /** * The 3D Secure 2 version. + * * @return threeDSVersion The 3D Secure 2 version. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_VERSION) @@ -2337,17 +2780,21 @@ public void setThreeDSVersion(String threeDSVersion) { /** * The reference for the shopper that you sent when tokenizing the payment details. * - * @param tokenizationShopperReference The reference for the shopper that you sent when tokenizing the payment details. + * @param tokenizationShopperReference The reference for the shopper that you sent when tokenizing + * the payment details. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon tokenizationShopperReference(String tokenizationShopperReference) { + public ResponseAdditionalDataCommon tokenizationShopperReference( + String tokenizationShopperReference) { this.tokenizationShopperReference = tokenizationShopperReference; return this; } /** * The reference for the shopper that you sent when tokenizing the payment details. - * @return tokenizationShopperReference The reference for the shopper that you sent when tokenizing the payment details. + * + * @return tokenizationShopperReference The reference for the shopper that you sent when + * tokenizing the payment details. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2358,7 +2805,8 @@ public String getTokenizationShopperReference() { /** * The reference for the shopper that you sent when tokenizing the payment details. * - * @param tokenizationShopperReference The reference for the shopper that you sent when tokenizing the payment details. + * @param tokenizationShopperReference The reference for the shopper that you sent when tokenizing + * the payment details. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2367,19 +2815,29 @@ public void setTokenizationShopperReference(String tokenizationShopperReference) } /** - * The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. + * The operation performed on the token. Possible values: * **created**: the token has been + * created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details + * have already been stored. * - * @param tokenizationStoreOperationType The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. + * @param tokenizationStoreOperationType The operation performed on the token. Possible values: * + * **created**: the token has been created. * **updated**: the existing token has been + * updated. * **alreadyExisting**: the details have already been stored. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon tokenizationStoreOperationType(TokenizationStoreOperationTypeEnum tokenizationStoreOperationType) { + public ResponseAdditionalDataCommon tokenizationStoreOperationType( + TokenizationStoreOperationTypeEnum tokenizationStoreOperationType) { this.tokenizationStoreOperationType = tokenizationStoreOperationType; return this; } /** - * The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. - * @return tokenizationStoreOperationType The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. + * The operation performed on the token. Possible values: * **created**: the token has been + * created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details + * have already been stored. + * + * @return tokenizationStoreOperationType The operation performed on the token. Possible values: * + * **created**: the token has been created. * **updated**: the existing token has been + * updated. * **alreadyExisting**: the details have already been stored. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_STORE_OPERATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2388,30 +2846,39 @@ public TokenizationStoreOperationTypeEnum getTokenizationStoreOperationType() { } /** - * The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. + * The operation performed on the token. Possible values: * **created**: the token has been + * created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details + * have already been stored. * - * @param tokenizationStoreOperationType The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. + * @param tokenizationStoreOperationType The operation performed on the token. Possible values: * + * **created**: the token has been created. * **updated**: the existing token has been + * updated. * **alreadyExisting**: the details have already been stored. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_STORE_OPERATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTokenizationStoreOperationType(TokenizationStoreOperationTypeEnum tokenizationStoreOperationType) { + public void setTokenizationStoreOperationType( + TokenizationStoreOperationTypeEnum tokenizationStoreOperationType) { this.tokenizationStoreOperationType = tokenizationStoreOperationType; } /** * The reference that uniquely identifies tokenized payment details. * - * @param tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized payment details. + * @param tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized + * payment details. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon tokenizationStoredPaymentMethodId(String tokenizationStoredPaymentMethodId) { + public ResponseAdditionalDataCommon tokenizationStoredPaymentMethodId( + String tokenizationStoredPaymentMethodId) { this.tokenizationStoredPaymentMethodId = tokenizationStoredPaymentMethodId; return this; } /** * The reference that uniquely identifies tokenized payment details. - * @return tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized payment details. + * + * @return tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized + * payment details. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2422,7 +2889,8 @@ public String getTokenizationStoredPaymentMethodId() { /** * The reference that uniquely identifies tokenized payment details. * - * @param tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized payment details. + * @param tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized + * payment details. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2431,9 +2899,11 @@ public void setTokenizationStoredPaymentMethodId(String tokenizationStoredPaymen } /** - * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. + * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact + * Support Team to enable this field. * - * @param visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. + * @param visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric + * characters. > Contact Support Team to enable this field. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon visaTransactionId(String visaTransactionId) { @@ -2442,8 +2912,11 @@ public ResponseAdditionalDataCommon visaTransactionId(String visaTransactionId) } /** - * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. - * @return visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. + * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact + * Support Team to enable this field. + * + * @return visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric + * characters. > Contact Support Team to enable this field. */ @JsonProperty(JSON_PROPERTY_VISA_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2452,9 +2925,11 @@ public String getVisaTransactionId() { } /** - * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. + * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact + * Support Team to enable this field. * - * @param visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. + * @param visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric + * characters. > Contact Support Team to enable this field. */ @JsonProperty(JSON_PROPERTY_VISA_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2463,9 +2938,13 @@ public void setVisaTransactionId(String visaTransactionId) { } /** - * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= + * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded + * and is returned for transactions with directoryResponse 'N' or 'Y'. Example: + * ODgxNDc2MDg2MDExODk5MAAAAAA= * - * @param xid The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= + * @param xid The 3DS transaction ID of the 3DS session sent in notifications. The value is + * Base64-encoded and is returned for transactions with directoryResponse 'N' or + * 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon xid(String xid) { @@ -2474,8 +2953,13 @@ public ResponseAdditionalDataCommon xid(String xid) { } /** - * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= - * @return xid The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= + * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded + * and is returned for transactions with directoryResponse 'N' or 'Y'. Example: + * ODgxNDc2MDg2MDExODk5MAAAAAA= + * + * @return xid The 3DS transaction ID of the 3DS session sent in notifications. The value is + * Base64-encoded and is returned for transactions with directoryResponse 'N' or + * 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= */ @JsonProperty(JSON_PROPERTY_XID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2484,9 +2968,13 @@ public String getXid() { } /** - * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= + * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded + * and is returned for transactions with directoryResponse 'N' or 'Y'. Example: + * ODgxNDc2MDg2MDExODk5MAAAAAA= * - * @param xid The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= + * @param xid The 3DS transaction ID of the 3DS session sent in notifications. The value is + * Base64-encoded and is returned for transactions with directoryResponse 'N' or + * 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= */ @JsonProperty(JSON_PROPERTY_XID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2494,9 +2982,7 @@ public void setXid(String xid) { this.xid = xid; } - /** - * Return true if this ResponseAdditionalDataCommon object is equal to o. - */ + /** Return true if this ResponseAdditionalDataCommon object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -2506,89 +2992,187 @@ public boolean equals(Object o) { return false; } ResponseAdditionalDataCommon responseAdditionalDataCommon = (ResponseAdditionalDataCommon) o; - return Objects.equals(this.acquirerAccountCode, responseAdditionalDataCommon.acquirerAccountCode) && - Objects.equals(this.acquirerCode, responseAdditionalDataCommon.acquirerCode) && - Objects.equals(this.acquirerReference, responseAdditionalDataCommon.acquirerReference) && - Objects.equals(this.alias, responseAdditionalDataCommon.alias) && - Objects.equals(this.aliasType, responseAdditionalDataCommon.aliasType) && - Objects.equals(this.authCode, responseAdditionalDataCommon.authCode) && - Objects.equals(this.authorisationMid, responseAdditionalDataCommon.authorisationMid) && - Objects.equals(this.authorisedAmountCurrency, responseAdditionalDataCommon.authorisedAmountCurrency) && - Objects.equals(this.authorisedAmountValue, responseAdditionalDataCommon.authorisedAmountValue) && - Objects.equals(this.avsResult, responseAdditionalDataCommon.avsResult) && - Objects.equals(this.avsResultRaw, responseAdditionalDataCommon.avsResultRaw) && - Objects.equals(this.bic, responseAdditionalDataCommon.bic) && - Objects.equals(this.coBrandedWith, responseAdditionalDataCommon.coBrandedWith) && - Objects.equals(this.cvcResult, responseAdditionalDataCommon.cvcResult) && - Objects.equals(this.cvcResultRaw, responseAdditionalDataCommon.cvcResultRaw) && - Objects.equals(this.dsTransID, responseAdditionalDataCommon.dsTransID) && - Objects.equals(this.eci, responseAdditionalDataCommon.eci) && - Objects.equals(this.expiryDate, responseAdditionalDataCommon.expiryDate) && - Objects.equals(this.extraCostsCurrency, responseAdditionalDataCommon.extraCostsCurrency) && - Objects.equals(this.extraCostsValue, responseAdditionalDataCommon.extraCostsValue) && - Objects.equals(this.fraudCheckItemNrFraudCheckname, responseAdditionalDataCommon.fraudCheckItemNrFraudCheckname) && - Objects.equals(this.fraudManualReview, responseAdditionalDataCommon.fraudManualReview) && - Objects.equals(this.fraudResultType, responseAdditionalDataCommon.fraudResultType) && - Objects.equals(this.fraudRiskLevel, responseAdditionalDataCommon.fraudRiskLevel) && - Objects.equals(this.fundingSource, responseAdditionalDataCommon.fundingSource) && - Objects.equals(this.fundsAvailability, responseAdditionalDataCommon.fundsAvailability) && - Objects.equals(this.inferredRefusalReason, responseAdditionalDataCommon.inferredRefusalReason) && - Objects.equals(this.isCardCommercial, responseAdditionalDataCommon.isCardCommercial) && - Objects.equals(this.issuerCountry, responseAdditionalDataCommon.issuerCountry) && - Objects.equals(this.liabilityShift, responseAdditionalDataCommon.liabilityShift) && - Objects.equals(this.mcBankNetReferenceNumber, responseAdditionalDataCommon.mcBankNetReferenceNumber) && - Objects.equals(this.merchantAdviceCode, responseAdditionalDataCommon.merchantAdviceCode) && - Objects.equals(this.merchantReference, responseAdditionalDataCommon.merchantReference) && - Objects.equals(this.networkTxReference, responseAdditionalDataCommon.networkTxReference) && - Objects.equals(this.ownerName, responseAdditionalDataCommon.ownerName) && - Objects.equals(this.paymentAccountReference, responseAdditionalDataCommon.paymentAccountReference) && - Objects.equals(this.paymentMethod, responseAdditionalDataCommon.paymentMethod) && - Objects.equals(this.paymentMethodVariant, responseAdditionalDataCommon.paymentMethodVariant) && - Objects.equals(this.payoutEligible, responseAdditionalDataCommon.payoutEligible) && - Objects.equals(this.realtimeAccountUpdaterStatus, responseAdditionalDataCommon.realtimeAccountUpdaterStatus) && - Objects.equals(this.receiptFreeText, responseAdditionalDataCommon.receiptFreeText) && - Objects.equals(this.recurringContractTypes, responseAdditionalDataCommon.recurringContractTypes) && - Objects.equals(this.recurringFirstPspReference, responseAdditionalDataCommon.recurringFirstPspReference) && - Objects.equals(this.recurringRecurringDetailReference, responseAdditionalDataCommon.recurringRecurringDetailReference) && - Objects.equals(this.recurringShopperReference, responseAdditionalDataCommon.recurringShopperReference) && - Objects.equals(this.recurringProcessingModel, responseAdditionalDataCommon.recurringProcessingModel) && - Objects.equals(this.referred, responseAdditionalDataCommon.referred) && - Objects.equals(this.refusalReasonRaw, responseAdditionalDataCommon.refusalReasonRaw) && - Objects.equals(this.requestAmount, responseAdditionalDataCommon.requestAmount) && - Objects.equals(this.requestCurrencyCode, responseAdditionalDataCommon.requestCurrencyCode) && - Objects.equals(this.shopperInteraction, responseAdditionalDataCommon.shopperInteraction) && - Objects.equals(this.shopperReference, responseAdditionalDataCommon.shopperReference) && - Objects.equals(this.terminalId, responseAdditionalDataCommon.terminalId) && - Objects.equals(this.threeDAuthenticated, responseAdditionalDataCommon.threeDAuthenticated) && - Objects.equals(this.threeDAuthenticatedResponse, responseAdditionalDataCommon.threeDAuthenticatedResponse) && - Objects.equals(this.threeDOffered, responseAdditionalDataCommon.threeDOffered) && - Objects.equals(this.threeDOfferedResponse, responseAdditionalDataCommon.threeDOfferedResponse) && - Objects.equals(this.threeDSVersion, responseAdditionalDataCommon.threeDSVersion) && - Objects.equals(this.tokenizationShopperReference, responseAdditionalDataCommon.tokenizationShopperReference) && - Objects.equals(this.tokenizationStoreOperationType, responseAdditionalDataCommon.tokenizationStoreOperationType) && - Objects.equals(this.tokenizationStoredPaymentMethodId, responseAdditionalDataCommon.tokenizationStoredPaymentMethodId) && - Objects.equals(this.visaTransactionId, responseAdditionalDataCommon.visaTransactionId) && - Objects.equals(this.xid, responseAdditionalDataCommon.xid); + return Objects.equals( + this.acquirerAccountCode, responseAdditionalDataCommon.acquirerAccountCode) + && Objects.equals(this.acquirerCode, responseAdditionalDataCommon.acquirerCode) + && Objects.equals(this.acquirerReference, responseAdditionalDataCommon.acquirerReference) + && Objects.equals(this.alias, responseAdditionalDataCommon.alias) + && Objects.equals(this.aliasType, responseAdditionalDataCommon.aliasType) + && Objects.equals(this.authCode, responseAdditionalDataCommon.authCode) + && Objects.equals(this.authorisationMid, responseAdditionalDataCommon.authorisationMid) + && Objects.equals( + this.authorisedAmountCurrency, responseAdditionalDataCommon.authorisedAmountCurrency) + && Objects.equals( + this.authorisedAmountValue, responseAdditionalDataCommon.authorisedAmountValue) + && Objects.equals(this.avsResult, responseAdditionalDataCommon.avsResult) + && Objects.equals(this.avsResultRaw, responseAdditionalDataCommon.avsResultRaw) + && Objects.equals(this.bic, responseAdditionalDataCommon.bic) + && Objects.equals(this.coBrandedWith, responseAdditionalDataCommon.coBrandedWith) + && Objects.equals(this.cvcResult, responseAdditionalDataCommon.cvcResult) + && Objects.equals(this.cvcResultRaw, responseAdditionalDataCommon.cvcResultRaw) + && Objects.equals(this.dsTransID, responseAdditionalDataCommon.dsTransID) + && Objects.equals(this.eci, responseAdditionalDataCommon.eci) + && Objects.equals(this.expiryDate, responseAdditionalDataCommon.expiryDate) + && Objects.equals(this.extraCostsCurrency, responseAdditionalDataCommon.extraCostsCurrency) + && Objects.equals(this.extraCostsValue, responseAdditionalDataCommon.extraCostsValue) + && Objects.equals( + this.fraudCheckItemNrFraudCheckname, + responseAdditionalDataCommon.fraudCheckItemNrFraudCheckname) + && Objects.equals(this.fraudManualReview, responseAdditionalDataCommon.fraudManualReview) + && Objects.equals(this.fraudResultType, responseAdditionalDataCommon.fraudResultType) + && Objects.equals(this.fraudRiskLevel, responseAdditionalDataCommon.fraudRiskLevel) + && Objects.equals(this.fundingSource, responseAdditionalDataCommon.fundingSource) + && Objects.equals(this.fundsAvailability, responseAdditionalDataCommon.fundsAvailability) + && Objects.equals( + this.inferredRefusalReason, responseAdditionalDataCommon.inferredRefusalReason) + && Objects.equals(this.isCardCommercial, responseAdditionalDataCommon.isCardCommercial) + && Objects.equals(this.issuerCountry, responseAdditionalDataCommon.issuerCountry) + && Objects.equals(this.liabilityShift, responseAdditionalDataCommon.liabilityShift) + && Objects.equals( + this.mcBankNetReferenceNumber, responseAdditionalDataCommon.mcBankNetReferenceNumber) + && Objects.equals(this.merchantAdviceCode, responseAdditionalDataCommon.merchantAdviceCode) + && Objects.equals(this.merchantReference, responseAdditionalDataCommon.merchantReference) + && Objects.equals(this.networkTxReference, responseAdditionalDataCommon.networkTxReference) + && Objects.equals(this.ownerName, responseAdditionalDataCommon.ownerName) + && Objects.equals( + this.paymentAccountReference, responseAdditionalDataCommon.paymentAccountReference) + && Objects.equals(this.paymentMethod, responseAdditionalDataCommon.paymentMethod) + && Objects.equals( + this.paymentMethodVariant, responseAdditionalDataCommon.paymentMethodVariant) + && Objects.equals(this.payoutEligible, responseAdditionalDataCommon.payoutEligible) + && Objects.equals( + this.realtimeAccountUpdaterStatus, + responseAdditionalDataCommon.realtimeAccountUpdaterStatus) + && Objects.equals(this.receiptFreeText, responseAdditionalDataCommon.receiptFreeText) + && Objects.equals( + this.recurringContractTypes, responseAdditionalDataCommon.recurringContractTypes) + && Objects.equals( + this.recurringFirstPspReference, + responseAdditionalDataCommon.recurringFirstPspReference) + && Objects.equals( + this.recurringRecurringDetailReference, + responseAdditionalDataCommon.recurringRecurringDetailReference) + && Objects.equals( + this.recurringShopperReference, responseAdditionalDataCommon.recurringShopperReference) + && Objects.equals( + this.recurringProcessingModel, responseAdditionalDataCommon.recurringProcessingModel) + && Objects.equals(this.referred, responseAdditionalDataCommon.referred) + && Objects.equals(this.refusalReasonRaw, responseAdditionalDataCommon.refusalReasonRaw) + && Objects.equals(this.requestAmount, responseAdditionalDataCommon.requestAmount) + && Objects.equals( + this.requestCurrencyCode, responseAdditionalDataCommon.requestCurrencyCode) + && Objects.equals(this.shopperInteraction, responseAdditionalDataCommon.shopperInteraction) + && Objects.equals(this.shopperReference, responseAdditionalDataCommon.shopperReference) + && Objects.equals(this.terminalId, responseAdditionalDataCommon.terminalId) + && Objects.equals( + this.threeDAuthenticated, responseAdditionalDataCommon.threeDAuthenticated) + && Objects.equals( + this.threeDAuthenticatedResponse, + responseAdditionalDataCommon.threeDAuthenticatedResponse) + && Objects.equals(this.threeDOffered, responseAdditionalDataCommon.threeDOffered) + && Objects.equals( + this.threeDOfferedResponse, responseAdditionalDataCommon.threeDOfferedResponse) + && Objects.equals(this.threeDSVersion, responseAdditionalDataCommon.threeDSVersion) + && Objects.equals( + this.tokenizationShopperReference, + responseAdditionalDataCommon.tokenizationShopperReference) + && Objects.equals( + this.tokenizationStoreOperationType, + responseAdditionalDataCommon.tokenizationStoreOperationType) + && Objects.equals( + this.tokenizationStoredPaymentMethodId, + responseAdditionalDataCommon.tokenizationStoredPaymentMethodId) + && Objects.equals(this.visaTransactionId, responseAdditionalDataCommon.visaTransactionId) + && Objects.equals(this.xid, responseAdditionalDataCommon.xid); } @Override public int hashCode() { - return Objects.hash(acquirerAccountCode, acquirerCode, acquirerReference, alias, aliasType, authCode, authorisationMid, authorisedAmountCurrency, authorisedAmountValue, avsResult, avsResultRaw, bic, coBrandedWith, cvcResult, cvcResultRaw, dsTransID, eci, expiryDate, extraCostsCurrency, extraCostsValue, fraudCheckItemNrFraudCheckname, fraudManualReview, fraudResultType, fraudRiskLevel, fundingSource, fundsAvailability, inferredRefusalReason, isCardCommercial, issuerCountry, liabilityShift, mcBankNetReferenceNumber, merchantAdviceCode, merchantReference, networkTxReference, ownerName, paymentAccountReference, paymentMethod, paymentMethodVariant, payoutEligible, realtimeAccountUpdaterStatus, receiptFreeText, recurringContractTypes, recurringFirstPspReference, recurringRecurringDetailReference, recurringShopperReference, recurringProcessingModel, referred, refusalReasonRaw, requestAmount, requestCurrencyCode, shopperInteraction, shopperReference, terminalId, threeDAuthenticated, threeDAuthenticatedResponse, threeDOffered, threeDOfferedResponse, threeDSVersion, tokenizationShopperReference, tokenizationStoreOperationType, tokenizationStoredPaymentMethodId, visaTransactionId, xid); + return Objects.hash( + acquirerAccountCode, + acquirerCode, + acquirerReference, + alias, + aliasType, + authCode, + authorisationMid, + authorisedAmountCurrency, + authorisedAmountValue, + avsResult, + avsResultRaw, + bic, + coBrandedWith, + cvcResult, + cvcResultRaw, + dsTransID, + eci, + expiryDate, + extraCostsCurrency, + extraCostsValue, + fraudCheckItemNrFraudCheckname, + fraudManualReview, + fraudResultType, + fraudRiskLevel, + fundingSource, + fundsAvailability, + inferredRefusalReason, + isCardCommercial, + issuerCountry, + liabilityShift, + mcBankNetReferenceNumber, + merchantAdviceCode, + merchantReference, + networkTxReference, + ownerName, + paymentAccountReference, + paymentMethod, + paymentMethodVariant, + payoutEligible, + realtimeAccountUpdaterStatus, + receiptFreeText, + recurringContractTypes, + recurringFirstPspReference, + recurringRecurringDetailReference, + recurringShopperReference, + recurringProcessingModel, + referred, + refusalReasonRaw, + requestAmount, + requestCurrencyCode, + shopperInteraction, + shopperReference, + terminalId, + threeDAuthenticated, + threeDAuthenticatedResponse, + threeDOffered, + threeDOfferedResponse, + threeDSVersion, + tokenizationShopperReference, + tokenizationStoreOperationType, + tokenizationStoredPaymentMethodId, + visaTransactionId, + xid); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataCommon {\n"); - sb.append(" acquirerAccountCode: ").append(toIndentedString(acquirerAccountCode)).append("\n"); + sb.append(" acquirerAccountCode: ") + .append(toIndentedString(acquirerAccountCode)) + .append("\n"); sb.append(" acquirerCode: ").append(toIndentedString(acquirerCode)).append("\n"); sb.append(" acquirerReference: ").append(toIndentedString(acquirerReference)).append("\n"); sb.append(" alias: ").append(toIndentedString(alias)).append("\n"); sb.append(" aliasType: ").append(toIndentedString(aliasType)).append("\n"); sb.append(" authCode: ").append(toIndentedString(authCode)).append("\n"); sb.append(" authorisationMid: ").append(toIndentedString(authorisationMid)).append("\n"); - sb.append(" authorisedAmountCurrency: ").append(toIndentedString(authorisedAmountCurrency)).append("\n"); - sb.append(" authorisedAmountValue: ").append(toIndentedString(authorisedAmountValue)).append("\n"); + sb.append(" authorisedAmountCurrency: ") + .append(toIndentedString(authorisedAmountCurrency)) + .append("\n"); + sb.append(" authorisedAmountValue: ") + .append(toIndentedString(authorisedAmountValue)) + .append("\n"); sb.append(" avsResult: ").append(toIndentedString(avsResult)).append("\n"); sb.append(" avsResultRaw: ").append(toIndentedString(avsResultRaw)).append("\n"); sb.append(" bic: ").append(toIndentedString(bic)).append("\n"); @@ -2600,47 +3184,83 @@ public String toString() { sb.append(" expiryDate: ").append(toIndentedString(expiryDate)).append("\n"); sb.append(" extraCostsCurrency: ").append(toIndentedString(extraCostsCurrency)).append("\n"); sb.append(" extraCostsValue: ").append(toIndentedString(extraCostsValue)).append("\n"); - sb.append(" fraudCheckItemNrFraudCheckname: ").append(toIndentedString(fraudCheckItemNrFraudCheckname)).append("\n"); + sb.append(" fraudCheckItemNrFraudCheckname: ") + .append(toIndentedString(fraudCheckItemNrFraudCheckname)) + .append("\n"); sb.append(" fraudManualReview: ").append(toIndentedString(fraudManualReview)).append("\n"); sb.append(" fraudResultType: ").append(toIndentedString(fraudResultType)).append("\n"); sb.append(" fraudRiskLevel: ").append(toIndentedString(fraudRiskLevel)).append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); sb.append(" fundsAvailability: ").append(toIndentedString(fundsAvailability)).append("\n"); - sb.append(" inferredRefusalReason: ").append(toIndentedString(inferredRefusalReason)).append("\n"); + sb.append(" inferredRefusalReason: ") + .append(toIndentedString(inferredRefusalReason)) + .append("\n"); sb.append(" isCardCommercial: ").append(toIndentedString(isCardCommercial)).append("\n"); sb.append(" issuerCountry: ").append(toIndentedString(issuerCountry)).append("\n"); sb.append(" liabilityShift: ").append(toIndentedString(liabilityShift)).append("\n"); - sb.append(" mcBankNetReferenceNumber: ").append(toIndentedString(mcBankNetReferenceNumber)).append("\n"); + sb.append(" mcBankNetReferenceNumber: ") + .append(toIndentedString(mcBankNetReferenceNumber)) + .append("\n"); sb.append(" merchantAdviceCode: ").append(toIndentedString(merchantAdviceCode)).append("\n"); sb.append(" merchantReference: ").append(toIndentedString(merchantReference)).append("\n"); sb.append(" networkTxReference: ").append(toIndentedString(networkTxReference)).append("\n"); sb.append(" ownerName: ").append(toIndentedString(ownerName)).append("\n"); - sb.append(" paymentAccountReference: ").append(toIndentedString(paymentAccountReference)).append("\n"); + sb.append(" paymentAccountReference: ") + .append(toIndentedString(paymentAccountReference)) + .append("\n"); sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n"); - sb.append(" paymentMethodVariant: ").append(toIndentedString(paymentMethodVariant)).append("\n"); + sb.append(" paymentMethodVariant: ") + .append(toIndentedString(paymentMethodVariant)) + .append("\n"); sb.append(" payoutEligible: ").append(toIndentedString(payoutEligible)).append("\n"); - sb.append(" realtimeAccountUpdaterStatus: ").append(toIndentedString(realtimeAccountUpdaterStatus)).append("\n"); + sb.append(" realtimeAccountUpdaterStatus: ") + .append(toIndentedString(realtimeAccountUpdaterStatus)) + .append("\n"); sb.append(" receiptFreeText: ").append(toIndentedString(receiptFreeText)).append("\n"); - sb.append(" recurringContractTypes: ").append(toIndentedString(recurringContractTypes)).append("\n"); - sb.append(" recurringFirstPspReference: ").append(toIndentedString(recurringFirstPspReference)).append("\n"); - sb.append(" recurringRecurringDetailReference: ").append(toIndentedString(recurringRecurringDetailReference)).append("\n"); - sb.append(" recurringShopperReference: ").append(toIndentedString(recurringShopperReference)).append("\n"); - sb.append(" recurringProcessingModel: ").append(toIndentedString(recurringProcessingModel)).append("\n"); + sb.append(" recurringContractTypes: ") + .append(toIndentedString(recurringContractTypes)) + .append("\n"); + sb.append(" recurringFirstPspReference: ") + .append(toIndentedString(recurringFirstPspReference)) + .append("\n"); + sb.append(" recurringRecurringDetailReference: ") + .append(toIndentedString(recurringRecurringDetailReference)) + .append("\n"); + sb.append(" recurringShopperReference: ") + .append(toIndentedString(recurringShopperReference)) + .append("\n"); + sb.append(" recurringProcessingModel: ") + .append(toIndentedString(recurringProcessingModel)) + .append("\n"); sb.append(" referred: ").append(toIndentedString(referred)).append("\n"); sb.append(" refusalReasonRaw: ").append(toIndentedString(refusalReasonRaw)).append("\n"); sb.append(" requestAmount: ").append(toIndentedString(requestAmount)).append("\n"); - sb.append(" requestCurrencyCode: ").append(toIndentedString(requestCurrencyCode)).append("\n"); + sb.append(" requestCurrencyCode: ") + .append(toIndentedString(requestCurrencyCode)) + .append("\n"); sb.append(" shopperInteraction: ").append(toIndentedString(shopperInteraction)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append(" terminalId: ").append(toIndentedString(terminalId)).append("\n"); - sb.append(" threeDAuthenticated: ").append(toIndentedString(threeDAuthenticated)).append("\n"); - sb.append(" threeDAuthenticatedResponse: ").append(toIndentedString(threeDAuthenticatedResponse)).append("\n"); + sb.append(" threeDAuthenticated: ") + .append(toIndentedString(threeDAuthenticated)) + .append("\n"); + sb.append(" threeDAuthenticatedResponse: ") + .append(toIndentedString(threeDAuthenticatedResponse)) + .append("\n"); sb.append(" threeDOffered: ").append(toIndentedString(threeDOffered)).append("\n"); - sb.append(" threeDOfferedResponse: ").append(toIndentedString(threeDOfferedResponse)).append("\n"); + sb.append(" threeDOfferedResponse: ") + .append(toIndentedString(threeDOfferedResponse)) + .append("\n"); sb.append(" threeDSVersion: ").append(toIndentedString(threeDSVersion)).append("\n"); - sb.append(" tokenizationShopperReference: ").append(toIndentedString(tokenizationShopperReference)).append("\n"); - sb.append(" tokenizationStoreOperationType: ").append(toIndentedString(tokenizationStoreOperationType)).append("\n"); - sb.append(" tokenizationStoredPaymentMethodId: ").append(toIndentedString(tokenizationStoredPaymentMethodId)).append("\n"); + sb.append(" tokenizationShopperReference: ") + .append(toIndentedString(tokenizationShopperReference)) + .append("\n"); + sb.append(" tokenizationStoreOperationType: ") + .append(toIndentedString(tokenizationStoreOperationType)) + .append("\n"); + sb.append(" tokenizationStoredPaymentMethodId: ") + .append(toIndentedString(tokenizationStoredPaymentMethodId)) + .append("\n"); sb.append(" visaTransactionId: ").append(toIndentedString(visaTransactionId)).append("\n"); sb.append(" xid: ").append(toIndentedString(xid)).append("\n"); sb.append("}"); @@ -2648,8 +3268,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -2658,21 +3277,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResponseAdditionalDataCommon given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataCommon - * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataCommon + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ResponseAdditionalDataCommon */ - public static ResponseAdditionalDataCommon fromJson(String jsonString) throws JsonProcessingException { + public static ResponseAdditionalDataCommon fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataCommon.class); } -/** - * Convert an instance of ResponseAdditionalDataCommon to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResponseAdditionalDataCommon to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataDomesticError.java b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataDomesticError.java index 0470eaf16..db3bb3c5e 100644 --- a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataDomesticError.java +++ b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataDomesticError.java @@ -2,36 +2,26 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ResponseAdditionalDataDomesticError - */ +/** ResponseAdditionalDataDomesticError */ @JsonPropertyOrder({ ResponseAdditionalDataDomesticError.JSON_PROPERTY_DOMESTIC_REFUSAL_REASON_RAW, ResponseAdditionalDataDomesticError.JSON_PROPERTY_DOMESTIC_SHOPPER_ADVICE }) - public class ResponseAdditionalDataDomesticError { public static final String JSON_PROPERTY_DOMESTIC_REFUSAL_REASON_RAW = "domesticRefusalReasonRaw"; private String domesticRefusalReasonRaw; @@ -39,23 +29,29 @@ public class ResponseAdditionalDataDomesticError { public static final String JSON_PROPERTY_DOMESTIC_SHOPPER_ADVICE = "domesticShopperAdvice"; private String domesticShopperAdvice; - public ResponseAdditionalDataDomesticError() { - } + public ResponseAdditionalDataDomesticError() {} /** - * The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. + * The reason the transaction was declined, given by the local issuer. Currently available for + * merchants in Japan. * - * @param domesticRefusalReasonRaw The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. - * @return the current {@code ResponseAdditionalDataDomesticError} instance, allowing for method chaining + * @param domesticRefusalReasonRaw The reason the transaction was declined, given by the local + * issuer. Currently available for merchants in Japan. + * @return the current {@code ResponseAdditionalDataDomesticError} instance, allowing for method + * chaining */ - public ResponseAdditionalDataDomesticError domesticRefusalReasonRaw(String domesticRefusalReasonRaw) { + public ResponseAdditionalDataDomesticError domesticRefusalReasonRaw( + String domesticRefusalReasonRaw) { this.domesticRefusalReasonRaw = domesticRefusalReasonRaw; return this; } /** - * The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. - * @return domesticRefusalReasonRaw The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. + * The reason the transaction was declined, given by the local issuer. Currently available for + * merchants in Japan. + * + * @return domesticRefusalReasonRaw The reason the transaction was declined, given by the local + * issuer. Currently available for merchants in Japan. */ @JsonProperty(JSON_PROPERTY_DOMESTIC_REFUSAL_REASON_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +60,11 @@ public String getDomesticRefusalReasonRaw() { } /** - * The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. + * The reason the transaction was declined, given by the local issuer. Currently available for + * merchants in Japan. * - * @param domesticRefusalReasonRaw The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. + * @param domesticRefusalReasonRaw The reason the transaction was declined, given by the local + * issuer. Currently available for merchants in Japan. */ @JsonProperty(JSON_PROPERTY_DOMESTIC_REFUSAL_REASON_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,10 +73,13 @@ public void setDomesticRefusalReasonRaw(String domesticRefusalReasonRaw) { } /** - * The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. + * The action the shopper should take, in a local language. Currently available in Japanese, for + * merchants in Japan. * - * @param domesticShopperAdvice The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. - * @return the current {@code ResponseAdditionalDataDomesticError} instance, allowing for method chaining + * @param domesticShopperAdvice The action the shopper should take, in a local language. Currently + * available in Japanese, for merchants in Japan. + * @return the current {@code ResponseAdditionalDataDomesticError} instance, allowing for method + * chaining */ public ResponseAdditionalDataDomesticError domesticShopperAdvice(String domesticShopperAdvice) { this.domesticShopperAdvice = domesticShopperAdvice; @@ -86,8 +87,11 @@ public ResponseAdditionalDataDomesticError domesticShopperAdvice(String domestic } /** - * The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. - * @return domesticShopperAdvice The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. + * The action the shopper should take, in a local language. Currently available in Japanese, for + * merchants in Japan. + * + * @return domesticShopperAdvice The action the shopper should take, in a local language. + * Currently available in Japanese, for merchants in Japan. */ @JsonProperty(JSON_PROPERTY_DOMESTIC_SHOPPER_ADVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +100,11 @@ public String getDomesticShopperAdvice() { } /** - * The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. + * The action the shopper should take, in a local language. Currently available in Japanese, for + * merchants in Japan. * - * @param domesticShopperAdvice The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. + * @param domesticShopperAdvice The action the shopper should take, in a local language. Currently + * available in Japanese, for merchants in Japan. */ @JsonProperty(JSON_PROPERTY_DOMESTIC_SHOPPER_ADVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +112,7 @@ public void setDomesticShopperAdvice(String domesticShopperAdvice) { this.domesticShopperAdvice = domesticShopperAdvice; } - /** - * Return true if this ResponseAdditionalDataDomesticError object is equal to o. - */ + /** Return true if this ResponseAdditionalDataDomesticError object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -117,9 +121,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResponseAdditionalDataDomesticError responseAdditionalDataDomesticError = (ResponseAdditionalDataDomesticError) o; - return Objects.equals(this.domesticRefusalReasonRaw, responseAdditionalDataDomesticError.domesticRefusalReasonRaw) && - Objects.equals(this.domesticShopperAdvice, responseAdditionalDataDomesticError.domesticShopperAdvice); + ResponseAdditionalDataDomesticError responseAdditionalDataDomesticError = + (ResponseAdditionalDataDomesticError) o; + return Objects.equals( + this.domesticRefusalReasonRaw, + responseAdditionalDataDomesticError.domesticRefusalReasonRaw) + && Objects.equals( + this.domesticShopperAdvice, responseAdditionalDataDomesticError.domesticShopperAdvice); } @Override @@ -131,15 +139,18 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataDomesticError {\n"); - sb.append(" domesticRefusalReasonRaw: ").append(toIndentedString(domesticRefusalReasonRaw)).append("\n"); - sb.append(" domesticShopperAdvice: ").append(toIndentedString(domesticShopperAdvice)).append("\n"); + sb.append(" domesticRefusalReasonRaw: ") + .append(toIndentedString(domesticRefusalReasonRaw)) + .append("\n"); + sb.append(" domesticShopperAdvice: ") + .append(toIndentedString(domesticShopperAdvice)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +159,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResponseAdditionalDataDomesticError given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataDomesticError - * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataDomesticError + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ResponseAdditionalDataDomesticError */ - public static ResponseAdditionalDataDomesticError fromJson(String jsonString) throws JsonProcessingException { + public static ResponseAdditionalDataDomesticError fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataDomesticError.class); } -/** - * Convert an instance of ResponseAdditionalDataDomesticError to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResponseAdditionalDataDomesticError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataInstallments.java b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataInstallments.java index 34ea8c666..abf80a4ff 100644 --- a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataInstallments.java +++ b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataInstallments.java @@ -2,100 +2,121 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ResponseAdditionalDataInstallments - */ +/** ResponseAdditionalDataInstallments */ @JsonPropertyOrder({ ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_INSTALLMENT_TYPE, - ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE, - ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT, - ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE, - ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE, - ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS, - ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS, - ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS, - ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT, - ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE, + ResponseAdditionalDataInstallments + .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE, + ResponseAdditionalDataInstallments + .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT, + ResponseAdditionalDataInstallments + .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE, + ResponseAdditionalDataInstallments + .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE, + ResponseAdditionalDataInstallments + .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS, + ResponseAdditionalDataInstallments + .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS, + ResponseAdditionalDataInstallments + .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS, + ResponseAdditionalDataInstallments + .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT, + ResponseAdditionalDataInstallments + .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE, ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_PAYMENT_OPTIONS, ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENTS_VALUE }) - public class ResponseAdditionalDataInstallments { - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_INSTALLMENT_TYPE = "installmentPaymentData.installmentType"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_INSTALLMENT_TYPE = + "installmentPaymentData.installmentType"; private String installmentPaymentDataInstallmentType; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE = "installmentPaymentData.option[itemNr].annualPercentageRate"; + public static final String + JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE = + "installmentPaymentData.option[itemNr].annualPercentageRate"; private String installmentPaymentDataOptionItemNrAnnualPercentageRate; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT = "installmentPaymentData.option[itemNr].firstInstallmentAmount"; + public static final String + JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT = + "installmentPaymentData.option[itemNr].firstInstallmentAmount"; private String installmentPaymentDataOptionItemNrFirstInstallmentAmount; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE = "installmentPaymentData.option[itemNr].installmentFee"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE = + "installmentPaymentData.option[itemNr].installmentFee"; private String installmentPaymentDataOptionItemNrInstallmentFee; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE = "installmentPaymentData.option[itemNr].interestRate"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE = + "installmentPaymentData.option[itemNr].interestRate"; private String installmentPaymentDataOptionItemNrInterestRate; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS = "installmentPaymentData.option[itemNr].maximumNumberOfInstallments"; + public static final String + JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS = + "installmentPaymentData.option[itemNr].maximumNumberOfInstallments"; private String installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS = "installmentPaymentData.option[itemNr].minimumNumberOfInstallments"; + public static final String + JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS = + "installmentPaymentData.option[itemNr].minimumNumberOfInstallments"; private String installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS = "installmentPaymentData.option[itemNr].numberOfInstallments"; + public static final String + JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS = + "installmentPaymentData.option[itemNr].numberOfInstallments"; private String installmentPaymentDataOptionItemNrNumberOfInstallments; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT = "installmentPaymentData.option[itemNr].subsequentInstallmentAmount"; + public static final String + JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT = + "installmentPaymentData.option[itemNr].subsequentInstallmentAmount"; private String installmentPaymentDataOptionItemNrSubsequentInstallmentAmount; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE = "installmentPaymentData.option[itemNr].totalAmountDue"; + public static final String + JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE = + "installmentPaymentData.option[itemNr].totalAmountDue"; private String installmentPaymentDataOptionItemNrTotalAmountDue; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_PAYMENT_OPTIONS = "installmentPaymentData.paymentOptions"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_PAYMENT_OPTIONS = + "installmentPaymentData.paymentOptions"; private String installmentPaymentDataPaymentOptions; public static final String JSON_PROPERTY_INSTALLMENTS_VALUE = "installments.value"; private String installmentsValue; - public ResponseAdditionalDataInstallments() { - } + public ResponseAdditionalDataInstallments() {} /** * Type of installment. The value of `installmentType` should be **IssuerFinanced**. * - * @param installmentPaymentDataInstallmentType Type of installment. The value of `installmentType` should be **IssuerFinanced**. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + * @param installmentPaymentDataInstallmentType Type of installment. The value of + * `installmentType` should be **IssuerFinanced**. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataInstallmentType(String installmentPaymentDataInstallmentType) { + public ResponseAdditionalDataInstallments installmentPaymentDataInstallmentType( + String installmentPaymentDataInstallmentType) { this.installmentPaymentDataInstallmentType = installmentPaymentDataInstallmentType; return this; } /** * Type of installment. The value of `installmentType` should be **IssuerFinanced**. - * @return installmentPaymentDataInstallmentType Type of installment. The value of `installmentType` should be **IssuerFinanced**. + * + * @return installmentPaymentDataInstallmentType Type of installment. The value of + * `installmentType` should be **IssuerFinanced**. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_INSTALLMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,11 +127,13 @@ public String getInstallmentPaymentDataInstallmentType() { /** * Type of installment. The value of `installmentType` should be **IssuerFinanced**. * - * @param installmentPaymentDataInstallmentType Type of installment. The value of `installmentType` should be **IssuerFinanced**. + * @param installmentPaymentDataInstallmentType Type of installment. The value of + * `installmentType` should be **IssuerFinanced**. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_INSTALLMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataInstallmentType(String installmentPaymentDataInstallmentType) { + public void setInstallmentPaymentDataInstallmentType( + String installmentPaymentDataInstallmentType) { this.installmentPaymentDataInstallmentType = installmentPaymentDataInstallmentType; } @@ -118,15 +141,19 @@ public void setInstallmentPaymentDataInstallmentType(String installmentPaymentDa * Annual interest rate. * * @param installmentPaymentDataOptionItemNrAnnualPercentageRate Annual interest rate. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrAnnualPercentageRate(String installmentPaymentDataOptionItemNrAnnualPercentageRate) { - this.installmentPaymentDataOptionItemNrAnnualPercentageRate = installmentPaymentDataOptionItemNrAnnualPercentageRate; + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrAnnualPercentageRate( + String installmentPaymentDataOptionItemNrAnnualPercentageRate) { + this.installmentPaymentDataOptionItemNrAnnualPercentageRate = + installmentPaymentDataOptionItemNrAnnualPercentageRate; return this; } /** * Annual interest rate. + * * @return installmentPaymentDataOptionItemNrAnnualPercentageRate Annual interest rate. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE) @@ -142,24 +169,33 @@ public String getInstallmentPaymentDataOptionItemNrAnnualPercentageRate() { */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrAnnualPercentageRate(String installmentPaymentDataOptionItemNrAnnualPercentageRate) { - this.installmentPaymentDataOptionItemNrAnnualPercentageRate = installmentPaymentDataOptionItemNrAnnualPercentageRate; + public void setInstallmentPaymentDataOptionItemNrAnnualPercentageRate( + String installmentPaymentDataOptionItemNrAnnualPercentageRate) { + this.installmentPaymentDataOptionItemNrAnnualPercentageRate = + installmentPaymentDataOptionItemNrAnnualPercentageRate; } /** * First Installment Amount in minor units. * - * @param installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in minor units. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining - */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrFirstInstallmentAmount(String installmentPaymentDataOptionItemNrFirstInstallmentAmount) { - this.installmentPaymentDataOptionItemNrFirstInstallmentAmount = installmentPaymentDataOptionItemNrFirstInstallmentAmount; + * @param installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in + * minor units. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining + */ + public ResponseAdditionalDataInstallments + installmentPaymentDataOptionItemNrFirstInstallmentAmount( + String installmentPaymentDataOptionItemNrFirstInstallmentAmount) { + this.installmentPaymentDataOptionItemNrFirstInstallmentAmount = + installmentPaymentDataOptionItemNrFirstInstallmentAmount; return this; } /** * First Installment Amount in minor units. - * @return installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in minor units. + * + * @return installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in + * minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -170,27 +206,34 @@ public String getInstallmentPaymentDataOptionItemNrFirstInstallmentAmount() { /** * First Installment Amount in minor units. * - * @param installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in minor units. + * @param installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in + * minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrFirstInstallmentAmount(String installmentPaymentDataOptionItemNrFirstInstallmentAmount) { - this.installmentPaymentDataOptionItemNrFirstInstallmentAmount = installmentPaymentDataOptionItemNrFirstInstallmentAmount; + public void setInstallmentPaymentDataOptionItemNrFirstInstallmentAmount( + String installmentPaymentDataOptionItemNrFirstInstallmentAmount) { + this.installmentPaymentDataOptionItemNrFirstInstallmentAmount = + installmentPaymentDataOptionItemNrFirstInstallmentAmount; } /** * Installment fee amount in minor units. * * @param installmentPaymentDataOptionItemNrInstallmentFee Installment fee amount in minor units. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrInstallmentFee(String installmentPaymentDataOptionItemNrInstallmentFee) { - this.installmentPaymentDataOptionItemNrInstallmentFee = installmentPaymentDataOptionItemNrInstallmentFee; + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrInstallmentFee( + String installmentPaymentDataOptionItemNrInstallmentFee) { + this.installmentPaymentDataOptionItemNrInstallmentFee = + installmentPaymentDataOptionItemNrInstallmentFee; return this; } /** * Installment fee amount in minor units. + * * @return installmentPaymentDataOptionItemNrInstallmentFee Installment fee amount in minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE) @@ -206,24 +249,31 @@ public String getInstallmentPaymentDataOptionItemNrInstallmentFee() { */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrInstallmentFee(String installmentPaymentDataOptionItemNrInstallmentFee) { - this.installmentPaymentDataOptionItemNrInstallmentFee = installmentPaymentDataOptionItemNrInstallmentFee; + public void setInstallmentPaymentDataOptionItemNrInstallmentFee( + String installmentPaymentDataOptionItemNrInstallmentFee) { + this.installmentPaymentDataOptionItemNrInstallmentFee = + installmentPaymentDataOptionItemNrInstallmentFee; } /** * Interest rate for the installment period. * * @param installmentPaymentDataOptionItemNrInterestRate Interest rate for the installment period. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrInterestRate(String installmentPaymentDataOptionItemNrInterestRate) { - this.installmentPaymentDataOptionItemNrInterestRate = installmentPaymentDataOptionItemNrInterestRate; + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrInterestRate( + String installmentPaymentDataOptionItemNrInterestRate) { + this.installmentPaymentDataOptionItemNrInterestRate = + installmentPaymentDataOptionItemNrInterestRate; return this; } /** * Interest rate for the installment period. - * @return installmentPaymentDataOptionItemNrInterestRate Interest rate for the installment period. + * + * @return installmentPaymentDataOptionItemNrInterestRate Interest rate for the installment + * period. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -238,26 +288,36 @@ public String getInstallmentPaymentDataOptionItemNrInterestRate() { */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrInterestRate(String installmentPaymentDataOptionItemNrInterestRate) { - this.installmentPaymentDataOptionItemNrInterestRate = installmentPaymentDataOptionItemNrInterestRate; + public void setInstallmentPaymentDataOptionItemNrInterestRate( + String installmentPaymentDataOptionItemNrInterestRate) { + this.installmentPaymentDataOptionItemNrInterestRate = + installmentPaymentDataOptionItemNrInterestRate; } /** * Maximum number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of installments possible for this payment. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining - */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrMaximumNumberOfInstallments(String installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments = installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; + * @param installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of + * installments possible for this payment. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining + */ + public ResponseAdditionalDataInstallments + installmentPaymentDataOptionItemNrMaximumNumberOfInstallments( + String installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments = + installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; return this; } /** * Maximum number of installments possible for this payment. - * @return installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of installments possible for this payment. + * + * @return installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of + * installments possible for this payment. */ - @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS) + @JsonProperty( + JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getInstallmentPaymentDataOptionItemNrMaximumNumberOfInstallments() { return installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; @@ -266,30 +326,42 @@ public String getInstallmentPaymentDataOptionItemNrMaximumNumberOfInstallments() /** * Maximum number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of installments possible for this payment. + * @param installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of + * installments possible for this payment. */ - @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS) + @JsonProperty( + JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrMaximumNumberOfInstallments(String installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments = installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; + public void setInstallmentPaymentDataOptionItemNrMaximumNumberOfInstallments( + String installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments = + installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; } /** * Minimum number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of installments possible for this payment. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining - */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrMinimumNumberOfInstallments(String installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments = installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; + * @param installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of + * installments possible for this payment. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining + */ + public ResponseAdditionalDataInstallments + installmentPaymentDataOptionItemNrMinimumNumberOfInstallments( + String installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments = + installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; return this; } /** * Minimum number of installments possible for this payment. - * @return installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of installments possible for this payment. + * + * @return installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of + * installments possible for this payment. */ - @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS) + @JsonProperty( + JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getInstallmentPaymentDataOptionItemNrMinimumNumberOfInstallments() { return installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; @@ -298,28 +370,38 @@ public String getInstallmentPaymentDataOptionItemNrMinimumNumberOfInstallments() /** * Minimum number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of installments possible for this payment. + * @param installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of + * installments possible for this payment. */ - @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS) + @JsonProperty( + JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrMinimumNumberOfInstallments(String installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments = installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; + public void setInstallmentPaymentDataOptionItemNrMinimumNumberOfInstallments( + String installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments = + installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; } /** * Total number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments possible for this payment. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining - */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrNumberOfInstallments(String installmentPaymentDataOptionItemNrNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrNumberOfInstallments = installmentPaymentDataOptionItemNrNumberOfInstallments; + * @param installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments + * possible for this payment. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining + */ + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrNumberOfInstallments( + String installmentPaymentDataOptionItemNrNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrNumberOfInstallments = + installmentPaymentDataOptionItemNrNumberOfInstallments; return this; } /** * Total number of installments possible for this payment. - * @return installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments possible for this payment. + * + * @return installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments + * possible for this payment. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -330,28 +412,38 @@ public String getInstallmentPaymentDataOptionItemNrNumberOfInstallments() { /** * Total number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments possible for this payment. + * @param installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments + * possible for this payment. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrNumberOfInstallments(String installmentPaymentDataOptionItemNrNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrNumberOfInstallments = installmentPaymentDataOptionItemNrNumberOfInstallments; + public void setInstallmentPaymentDataOptionItemNrNumberOfInstallments( + String installmentPaymentDataOptionItemNrNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrNumberOfInstallments = + installmentPaymentDataOptionItemNrNumberOfInstallments; } /** * Subsequent Installment Amount in minor units. * - * @param installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment Amount in minor units. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining - */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrSubsequentInstallmentAmount(String installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) { - this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount = installmentPaymentDataOptionItemNrSubsequentInstallmentAmount; + * @param installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment + * Amount in minor units. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining + */ + public ResponseAdditionalDataInstallments + installmentPaymentDataOptionItemNrSubsequentInstallmentAmount( + String installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) { + this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount = + installmentPaymentDataOptionItemNrSubsequentInstallmentAmount; return this; } /** * Subsequent Installment Amount in minor units. - * @return installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment Amount in minor units. + * + * @return installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment + * Amount in minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -362,27 +454,34 @@ public String getInstallmentPaymentDataOptionItemNrSubsequentInstallmentAmount() /** * Subsequent Installment Amount in minor units. * - * @param installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment Amount in minor units. + * @param installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment + * Amount in minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrSubsequentInstallmentAmount(String installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) { - this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount = installmentPaymentDataOptionItemNrSubsequentInstallmentAmount; + public void setInstallmentPaymentDataOptionItemNrSubsequentInstallmentAmount( + String installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) { + this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount = + installmentPaymentDataOptionItemNrSubsequentInstallmentAmount; } /** * Total amount in minor units. * * @param installmentPaymentDataOptionItemNrTotalAmountDue Total amount in minor units. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrTotalAmountDue(String installmentPaymentDataOptionItemNrTotalAmountDue) { - this.installmentPaymentDataOptionItemNrTotalAmountDue = installmentPaymentDataOptionItemNrTotalAmountDue; + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrTotalAmountDue( + String installmentPaymentDataOptionItemNrTotalAmountDue) { + this.installmentPaymentDataOptionItemNrTotalAmountDue = + installmentPaymentDataOptionItemNrTotalAmountDue; return this; } /** * Total amount in minor units. + * * @return installmentPaymentDataOptionItemNrTotalAmountDue Total amount in minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE) @@ -398,24 +497,31 @@ public String getInstallmentPaymentDataOptionItemNrTotalAmountDue() { */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrTotalAmountDue(String installmentPaymentDataOptionItemNrTotalAmountDue) { - this.installmentPaymentDataOptionItemNrTotalAmountDue = installmentPaymentDataOptionItemNrTotalAmountDue; + public void setInstallmentPaymentDataOptionItemNrTotalAmountDue( + String installmentPaymentDataOptionItemNrTotalAmountDue) { + this.installmentPaymentDataOptionItemNrTotalAmountDue = + installmentPaymentDataOptionItemNrTotalAmountDue; } /** * Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments * - * @param installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + * @param installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * + * PayInFullOnly * PayInFullOrInstallments + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataPaymentOptions(String installmentPaymentDataPaymentOptions) { + public ResponseAdditionalDataInstallments installmentPaymentDataPaymentOptions( + String installmentPaymentDataPaymentOptions) { this.installmentPaymentDataPaymentOptions = installmentPaymentDataPaymentOptions; return this; } /** * Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments - * @return installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments + * + * @return installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * + * PayInFullOnly * PayInFullOrInstallments */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_PAYMENT_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -426,7 +532,8 @@ public String getInstallmentPaymentDataPaymentOptions() { /** * Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments * - * @param installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments + * @param installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * + * PayInFullOnly * PayInFullOrInstallments */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_PAYMENT_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -435,10 +542,14 @@ public void setInstallmentPaymentDataPaymentOptions(String installmentPaymentDat } /** - * The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. + * The number of installments that the payment amount should be charged with. Example: 5 > Only + * relevant for card payments in countries that support installments. * - * @param installmentsValue The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + * @param installmentsValue The number of installments that the payment amount should be charged + * with. Example: 5 > Only relevant for card payments in countries that support + * installments. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining */ public ResponseAdditionalDataInstallments installmentsValue(String installmentsValue) { this.installmentsValue = installmentsValue; @@ -446,8 +557,12 @@ public ResponseAdditionalDataInstallments installmentsValue(String installmentsV } /** - * The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. - * @return installmentsValue The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. + * The number of installments that the payment amount should be charged with. Example: 5 > Only + * relevant for card payments in countries that support installments. + * + * @return installmentsValue The number of installments that the payment amount should be charged + * with. Example: 5 > Only relevant for card payments in countries that support + * installments. */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -456,9 +571,12 @@ public String getInstallmentsValue() { } /** - * The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. + * The number of installments that the payment amount should be charged with. Example: 5 > Only + * relevant for card payments in countries that support installments. * - * @param installmentsValue The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. + * @param installmentsValue The number of installments that the payment amount should be charged + * with. Example: 5 > Only relevant for card payments in countries that support + * installments. */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -466,9 +584,7 @@ public void setInstallmentsValue(String installmentsValue) { this.installmentsValue = installmentsValue; } - /** - * Return true if this ResponseAdditionalDataInstallments object is equal to o. - */ + /** Return true if this ResponseAdditionalDataInstallments object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -477,49 +593,112 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResponseAdditionalDataInstallments responseAdditionalDataInstallments = (ResponseAdditionalDataInstallments) o; - return Objects.equals(this.installmentPaymentDataInstallmentType, responseAdditionalDataInstallments.installmentPaymentDataInstallmentType) && - Objects.equals(this.installmentPaymentDataOptionItemNrAnnualPercentageRate, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrAnnualPercentageRate) && - Objects.equals(this.installmentPaymentDataOptionItemNrFirstInstallmentAmount, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrFirstInstallmentAmount) && - Objects.equals(this.installmentPaymentDataOptionItemNrInstallmentFee, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrInstallmentFee) && - Objects.equals(this.installmentPaymentDataOptionItemNrInterestRate, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrInterestRate) && - Objects.equals(this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) && - Objects.equals(this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) && - Objects.equals(this.installmentPaymentDataOptionItemNrNumberOfInstallments, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrNumberOfInstallments) && - Objects.equals(this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) && - Objects.equals(this.installmentPaymentDataOptionItemNrTotalAmountDue, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrTotalAmountDue) && - Objects.equals(this.installmentPaymentDataPaymentOptions, responseAdditionalDataInstallments.installmentPaymentDataPaymentOptions) && - Objects.equals(this.installmentsValue, responseAdditionalDataInstallments.installmentsValue); + ResponseAdditionalDataInstallments responseAdditionalDataInstallments = + (ResponseAdditionalDataInstallments) o; + return Objects.equals( + this.installmentPaymentDataInstallmentType, + responseAdditionalDataInstallments.installmentPaymentDataInstallmentType) + && Objects.equals( + this.installmentPaymentDataOptionItemNrAnnualPercentageRate, + responseAdditionalDataInstallments + .installmentPaymentDataOptionItemNrAnnualPercentageRate) + && Objects.equals( + this.installmentPaymentDataOptionItemNrFirstInstallmentAmount, + responseAdditionalDataInstallments + .installmentPaymentDataOptionItemNrFirstInstallmentAmount) + && Objects.equals( + this.installmentPaymentDataOptionItemNrInstallmentFee, + responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrInstallmentFee) + && Objects.equals( + this.installmentPaymentDataOptionItemNrInterestRate, + responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrInterestRate) + && Objects.equals( + this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments, + responseAdditionalDataInstallments + .installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) + && Objects.equals( + this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments, + responseAdditionalDataInstallments + .installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) + && Objects.equals( + this.installmentPaymentDataOptionItemNrNumberOfInstallments, + responseAdditionalDataInstallments + .installmentPaymentDataOptionItemNrNumberOfInstallments) + && Objects.equals( + this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount, + responseAdditionalDataInstallments + .installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) + && Objects.equals( + this.installmentPaymentDataOptionItemNrTotalAmountDue, + responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrTotalAmountDue) + && Objects.equals( + this.installmentPaymentDataPaymentOptions, + responseAdditionalDataInstallments.installmentPaymentDataPaymentOptions) + && Objects.equals( + this.installmentsValue, responseAdditionalDataInstallments.installmentsValue); } @Override public int hashCode() { - return Objects.hash(installmentPaymentDataInstallmentType, installmentPaymentDataOptionItemNrAnnualPercentageRate, installmentPaymentDataOptionItemNrFirstInstallmentAmount, installmentPaymentDataOptionItemNrInstallmentFee, installmentPaymentDataOptionItemNrInterestRate, installmentPaymentDataOptionItemNrMaximumNumberOfInstallments, installmentPaymentDataOptionItemNrMinimumNumberOfInstallments, installmentPaymentDataOptionItemNrNumberOfInstallments, installmentPaymentDataOptionItemNrSubsequentInstallmentAmount, installmentPaymentDataOptionItemNrTotalAmountDue, installmentPaymentDataPaymentOptions, installmentsValue); + return Objects.hash( + installmentPaymentDataInstallmentType, + installmentPaymentDataOptionItemNrAnnualPercentageRate, + installmentPaymentDataOptionItemNrFirstInstallmentAmount, + installmentPaymentDataOptionItemNrInstallmentFee, + installmentPaymentDataOptionItemNrInterestRate, + installmentPaymentDataOptionItemNrMaximumNumberOfInstallments, + installmentPaymentDataOptionItemNrMinimumNumberOfInstallments, + installmentPaymentDataOptionItemNrNumberOfInstallments, + installmentPaymentDataOptionItemNrSubsequentInstallmentAmount, + installmentPaymentDataOptionItemNrTotalAmountDue, + installmentPaymentDataPaymentOptions, + installmentsValue); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataInstallments {\n"); - sb.append(" installmentPaymentDataInstallmentType: ").append(toIndentedString(installmentPaymentDataInstallmentType)).append("\n"); - sb.append(" installmentPaymentDataOptionItemNrAnnualPercentageRate: ").append(toIndentedString(installmentPaymentDataOptionItemNrAnnualPercentageRate)).append("\n"); - sb.append(" installmentPaymentDataOptionItemNrFirstInstallmentAmount: ").append(toIndentedString(installmentPaymentDataOptionItemNrFirstInstallmentAmount)).append("\n"); - sb.append(" installmentPaymentDataOptionItemNrInstallmentFee: ").append(toIndentedString(installmentPaymentDataOptionItemNrInstallmentFee)).append("\n"); - sb.append(" installmentPaymentDataOptionItemNrInterestRate: ").append(toIndentedString(installmentPaymentDataOptionItemNrInterestRate)).append("\n"); - sb.append(" installmentPaymentDataOptionItemNrMaximumNumberOfInstallments: ").append(toIndentedString(installmentPaymentDataOptionItemNrMaximumNumberOfInstallments)).append("\n"); - sb.append(" installmentPaymentDataOptionItemNrMinimumNumberOfInstallments: ").append(toIndentedString(installmentPaymentDataOptionItemNrMinimumNumberOfInstallments)).append("\n"); - sb.append(" installmentPaymentDataOptionItemNrNumberOfInstallments: ").append(toIndentedString(installmentPaymentDataOptionItemNrNumberOfInstallments)).append("\n"); - sb.append(" installmentPaymentDataOptionItemNrSubsequentInstallmentAmount: ").append(toIndentedString(installmentPaymentDataOptionItemNrSubsequentInstallmentAmount)).append("\n"); - sb.append(" installmentPaymentDataOptionItemNrTotalAmountDue: ").append(toIndentedString(installmentPaymentDataOptionItemNrTotalAmountDue)).append("\n"); - sb.append(" installmentPaymentDataPaymentOptions: ").append(toIndentedString(installmentPaymentDataPaymentOptions)).append("\n"); + sb.append(" installmentPaymentDataInstallmentType: ") + .append(toIndentedString(installmentPaymentDataInstallmentType)) + .append("\n"); + sb.append(" installmentPaymentDataOptionItemNrAnnualPercentageRate: ") + .append(toIndentedString(installmentPaymentDataOptionItemNrAnnualPercentageRate)) + .append("\n"); + sb.append(" installmentPaymentDataOptionItemNrFirstInstallmentAmount: ") + .append(toIndentedString(installmentPaymentDataOptionItemNrFirstInstallmentAmount)) + .append("\n"); + sb.append(" installmentPaymentDataOptionItemNrInstallmentFee: ") + .append(toIndentedString(installmentPaymentDataOptionItemNrInstallmentFee)) + .append("\n"); + sb.append(" installmentPaymentDataOptionItemNrInterestRate: ") + .append(toIndentedString(installmentPaymentDataOptionItemNrInterestRate)) + .append("\n"); + sb.append(" installmentPaymentDataOptionItemNrMaximumNumberOfInstallments: ") + .append(toIndentedString(installmentPaymentDataOptionItemNrMaximumNumberOfInstallments)) + .append("\n"); + sb.append(" installmentPaymentDataOptionItemNrMinimumNumberOfInstallments: ") + .append(toIndentedString(installmentPaymentDataOptionItemNrMinimumNumberOfInstallments)) + .append("\n"); + sb.append(" installmentPaymentDataOptionItemNrNumberOfInstallments: ") + .append(toIndentedString(installmentPaymentDataOptionItemNrNumberOfInstallments)) + .append("\n"); + sb.append(" installmentPaymentDataOptionItemNrSubsequentInstallmentAmount: ") + .append(toIndentedString(installmentPaymentDataOptionItemNrSubsequentInstallmentAmount)) + .append("\n"); + sb.append(" installmentPaymentDataOptionItemNrTotalAmountDue: ") + .append(toIndentedString(installmentPaymentDataOptionItemNrTotalAmountDue)) + .append("\n"); + sb.append(" installmentPaymentDataPaymentOptions: ") + .append(toIndentedString(installmentPaymentDataPaymentOptions)) + .append("\n"); sb.append(" installmentsValue: ").append(toIndentedString(installmentsValue)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -528,21 +707,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResponseAdditionalDataInstallments given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataInstallments - * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataInstallments + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ResponseAdditionalDataInstallments */ - public static ResponseAdditionalDataInstallments fromJson(String jsonString) throws JsonProcessingException { + public static ResponseAdditionalDataInstallments fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataInstallments.class); } -/** - * Convert an instance of ResponseAdditionalDataInstallments to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResponseAdditionalDataInstallments to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataNetworkTokens.java b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataNetworkTokens.java index 6e3a8d9a5..ac6761f95 100644 --- a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataNetworkTokens.java +++ b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataNetworkTokens.java @@ -2,37 +2,27 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ResponseAdditionalDataNetworkTokens - */ +/** ResponseAdditionalDataNetworkTokens */ @JsonPropertyOrder({ ResponseAdditionalDataNetworkTokens.JSON_PROPERTY_NETWORK_TOKEN_AVAILABLE, ResponseAdditionalDataNetworkTokens.JSON_PROPERTY_NETWORK_TOKEN_BIN, ResponseAdditionalDataNetworkTokens.JSON_PROPERTY_NETWORK_TOKEN_TOKEN_SUMMARY }) - public class ResponseAdditionalDataNetworkTokens { public static final String JSON_PROPERTY_NETWORK_TOKEN_AVAILABLE = "networkToken.available"; private String networkTokenAvailable; @@ -40,17 +30,19 @@ public class ResponseAdditionalDataNetworkTokens { public static final String JSON_PROPERTY_NETWORK_TOKEN_BIN = "networkToken.bin"; private String networkTokenBin; - public static final String JSON_PROPERTY_NETWORK_TOKEN_TOKEN_SUMMARY = "networkToken.tokenSummary"; + public static final String JSON_PROPERTY_NETWORK_TOKEN_TOKEN_SUMMARY = + "networkToken.tokenSummary"; private String networkTokenTokenSummary; - public ResponseAdditionalDataNetworkTokens() { - } + public ResponseAdditionalDataNetworkTokens() {} /** * Indicates whether a network token is available for the specified card. * - * @param networkTokenAvailable Indicates whether a network token is available for the specified card. - * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method chaining + * @param networkTokenAvailable Indicates whether a network token is available for the specified + * card. + * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method + * chaining */ public ResponseAdditionalDataNetworkTokens networkTokenAvailable(String networkTokenAvailable) { this.networkTokenAvailable = networkTokenAvailable; @@ -59,7 +51,9 @@ public ResponseAdditionalDataNetworkTokens networkTokenAvailable(String networkT /** * Indicates whether a network token is available for the specified card. - * @return networkTokenAvailable Indicates whether a network token is available for the specified card. + * + * @return networkTokenAvailable Indicates whether a network token is available for the specified + * card. */ @JsonProperty(JSON_PROPERTY_NETWORK_TOKEN_AVAILABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,7 +64,8 @@ public String getNetworkTokenAvailable() { /** * Indicates whether a network token is available for the specified card. * - * @param networkTokenAvailable Indicates whether a network token is available for the specified card. + * @param networkTokenAvailable Indicates whether a network token is available for the specified + * card. */ @JsonProperty(JSON_PROPERTY_NETWORK_TOKEN_AVAILABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,10 +74,13 @@ public void setNetworkTokenAvailable(String networkTokenAvailable) { } /** - * The Bank Identification Number of a tokenized card, which is the first six digits of a card number. + * The Bank Identification Number of a tokenized card, which is the first six digits of a card + * number. * - * @param networkTokenBin The Bank Identification Number of a tokenized card, which is the first six digits of a card number. - * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method chaining + * @param networkTokenBin The Bank Identification Number of a tokenized card, which is the first + * six digits of a card number. + * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method + * chaining */ public ResponseAdditionalDataNetworkTokens networkTokenBin(String networkTokenBin) { this.networkTokenBin = networkTokenBin; @@ -90,8 +88,11 @@ public ResponseAdditionalDataNetworkTokens networkTokenBin(String networkTokenBi } /** - * The Bank Identification Number of a tokenized card, which is the first six digits of a card number. - * @return networkTokenBin The Bank Identification Number of a tokenized card, which is the first six digits of a card number. + * The Bank Identification Number of a tokenized card, which is the first six digits of a card + * number. + * + * @return networkTokenBin The Bank Identification Number of a tokenized card, which is the first + * six digits of a card number. */ @JsonProperty(JSON_PROPERTY_NETWORK_TOKEN_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,9 +101,11 @@ public String getNetworkTokenBin() { } /** - * The Bank Identification Number of a tokenized card, which is the first six digits of a card number. + * The Bank Identification Number of a tokenized card, which is the first six digits of a card + * number. * - * @param networkTokenBin The Bank Identification Number of a tokenized card, which is the first six digits of a card number. + * @param networkTokenBin The Bank Identification Number of a tokenized card, which is the first + * six digits of a card number. */ @JsonProperty(JSON_PROPERTY_NETWORK_TOKEN_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,15 +117,18 @@ public void setNetworkTokenBin(String networkTokenBin) { * The last four digits of a network token. * * @param networkTokenTokenSummary The last four digits of a network token. - * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method chaining + * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method + * chaining */ - public ResponseAdditionalDataNetworkTokens networkTokenTokenSummary(String networkTokenTokenSummary) { + public ResponseAdditionalDataNetworkTokens networkTokenTokenSummary( + String networkTokenTokenSummary) { this.networkTokenTokenSummary = networkTokenTokenSummary; return this; } /** * The last four digits of a network token. + * * @return networkTokenTokenSummary The last four digits of a network token. */ @JsonProperty(JSON_PROPERTY_NETWORK_TOKEN_TOKEN_SUMMARY) @@ -142,9 +148,7 @@ public void setNetworkTokenTokenSummary(String networkTokenTokenSummary) { this.networkTokenTokenSummary = networkTokenTokenSummary; } - /** - * Return true if this ResponseAdditionalDataNetworkTokens object is equal to o. - */ + /** Return true if this ResponseAdditionalDataNetworkTokens object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -153,10 +157,14 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResponseAdditionalDataNetworkTokens responseAdditionalDataNetworkTokens = (ResponseAdditionalDataNetworkTokens) o; - return Objects.equals(this.networkTokenAvailable, responseAdditionalDataNetworkTokens.networkTokenAvailable) && - Objects.equals(this.networkTokenBin, responseAdditionalDataNetworkTokens.networkTokenBin) && - Objects.equals(this.networkTokenTokenSummary, responseAdditionalDataNetworkTokens.networkTokenTokenSummary); + ResponseAdditionalDataNetworkTokens responseAdditionalDataNetworkTokens = + (ResponseAdditionalDataNetworkTokens) o; + return Objects.equals( + this.networkTokenAvailable, responseAdditionalDataNetworkTokens.networkTokenAvailable) + && Objects.equals(this.networkTokenBin, responseAdditionalDataNetworkTokens.networkTokenBin) + && Objects.equals( + this.networkTokenTokenSummary, + responseAdditionalDataNetworkTokens.networkTokenTokenSummary); } @Override @@ -168,16 +176,19 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataNetworkTokens {\n"); - sb.append(" networkTokenAvailable: ").append(toIndentedString(networkTokenAvailable)).append("\n"); + sb.append(" networkTokenAvailable: ") + .append(toIndentedString(networkTokenAvailable)) + .append("\n"); sb.append(" networkTokenBin: ").append(toIndentedString(networkTokenBin)).append("\n"); - sb.append(" networkTokenTokenSummary: ").append(toIndentedString(networkTokenTokenSummary)).append("\n"); + sb.append(" networkTokenTokenSummary: ") + .append(toIndentedString(networkTokenTokenSummary)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +197,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResponseAdditionalDataNetworkTokens given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataNetworkTokens - * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataNetworkTokens + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ResponseAdditionalDataNetworkTokens */ - public static ResponseAdditionalDataNetworkTokens fromJson(String jsonString) throws JsonProcessingException { + public static ResponseAdditionalDataNetworkTokens fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataNetworkTokens.class); } -/** - * Convert an instance of ResponseAdditionalDataNetworkTokens to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResponseAdditionalDataNetworkTokens to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataOpi.java b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataOpi.java index 37d0266cd..4cd26799b 100644 --- a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataOpi.java +++ b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataOpi.java @@ -2,46 +2,41 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ResponseAdditionalDataOpi - */ -@JsonPropertyOrder({ - ResponseAdditionalDataOpi.JSON_PROPERTY_OPI_TRANS_TOKEN -}) - +/** ResponseAdditionalDataOpi */ +@JsonPropertyOrder({ResponseAdditionalDataOpi.JSON_PROPERTY_OPI_TRANS_TOKEN}) public class ResponseAdditionalDataOpi { public static final String JSON_PROPERTY_OPI_TRANS_TOKEN = "opi.transToken"; private String opiTransToken; - public ResponseAdditionalDataOpi() { - } + public ResponseAdditionalDataOpi() {} /** - * Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * Returned in the response if you included `opi.includeTransToken: true` in an + * ecommerce payment request. This contains an Oracle Payment Interface token that you can store + * in your Oracle Opera database to identify tokenized ecommerce transactions. For more + * information and required settings, see [Oracle + * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). * - * @param opiTransToken Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * @param opiTransToken Returned in the response if you included `opi.includeTransToken: + * true` in an ecommerce payment request. This contains an Oracle Payment Interface token + * that you can store in your Oracle Opera database to identify tokenized ecommerce + * transactions. For more information and required settings, see [Oracle + * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). * @return the current {@code ResponseAdditionalDataOpi} instance, allowing for method chaining */ public ResponseAdditionalDataOpi opiTransToken(String opiTransToken) { @@ -50,8 +45,17 @@ public ResponseAdditionalDataOpi opiTransToken(String opiTransToken) { } /** - * Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). - * @return opiTransToken Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * Returned in the response if you included `opi.includeTransToken: true` in an + * ecommerce payment request. This contains an Oracle Payment Interface token that you can store + * in your Oracle Opera database to identify tokenized ecommerce transactions. For more + * information and required settings, see [Oracle + * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * + * @return opiTransToken Returned in the response if you included `opi.includeTransToken: + * true` in an ecommerce payment request. This contains an Oracle Payment Interface token + * that you can store in your Oracle Opera database to identify tokenized ecommerce + * transactions. For more information and required settings, see [Oracle + * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). */ @JsonProperty(JSON_PROPERTY_OPI_TRANS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,9 +64,17 @@ public String getOpiTransToken() { } /** - * Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * Returned in the response if you included `opi.includeTransToken: true` in an + * ecommerce payment request. This contains an Oracle Payment Interface token that you can store + * in your Oracle Opera database to identify tokenized ecommerce transactions. For more + * information and required settings, see [Oracle + * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). * - * @param opiTransToken Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * @param opiTransToken Returned in the response if you included `opi.includeTransToken: + * true` in an ecommerce payment request. This contains an Oracle Payment Interface token + * that you can store in your Oracle Opera database to identify tokenized ecommerce + * transactions. For more information and required settings, see [Oracle + * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). */ @JsonProperty(JSON_PROPERTY_OPI_TRANS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +82,7 @@ public void setOpiTransToken(String opiTransToken) { this.opiTransToken = opiTransToken; } - /** - * Return true if this ResponseAdditionalDataOpi object is equal to o. - */ + /** Return true if this ResponseAdditionalDataOpi object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +110,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +119,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResponseAdditionalDataOpi given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataOpi - * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataOpi + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ResponseAdditionalDataOpi */ - public static ResponseAdditionalDataOpi fromJson(String jsonString) throws JsonProcessingException { + public static ResponseAdditionalDataOpi fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataOpi.class); } -/** - * Convert an instance of ResponseAdditionalDataOpi to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResponseAdditionalDataOpi to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataSepa.java b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataSepa.java index 45f97d601..3305aeb70 100644 --- a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataSepa.java +++ b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataSepa.java @@ -2,64 +2,57 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ResponseAdditionalDataSepa - */ +/** ResponseAdditionalDataSepa */ @JsonPropertyOrder({ ResponseAdditionalDataSepa.JSON_PROPERTY_SEPADIRECTDEBIT_DATE_OF_SIGNATURE, ResponseAdditionalDataSepa.JSON_PROPERTY_SEPADIRECTDEBIT_MANDATE_ID, ResponseAdditionalDataSepa.JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE }) - public class ResponseAdditionalDataSepa { - public static final String JSON_PROPERTY_SEPADIRECTDEBIT_DATE_OF_SIGNATURE = "sepadirectdebit.dateOfSignature"; + public static final String JSON_PROPERTY_SEPADIRECTDEBIT_DATE_OF_SIGNATURE = + "sepadirectdebit.dateOfSignature"; private String sepadirectdebitDateOfSignature; public static final String JSON_PROPERTY_SEPADIRECTDEBIT_MANDATE_ID = "sepadirectdebit.mandateId"; private String sepadirectdebitMandateId; - public static final String JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE = "sepadirectdebit.sequenceType"; + public static final String JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE = + "sepadirectdebit.sequenceType"; private String sepadirectdebitSequenceType; - public ResponseAdditionalDataSepa() { - } + public ResponseAdditionalDataSepa() {} /** - * The transaction signature date. Format: yyyy-MM-dd + * The transaction signature date. Format: yyyy-MM-dd * - * @param sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd + * @param sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd * @return the current {@code ResponseAdditionalDataSepa} instance, allowing for method chaining */ - public ResponseAdditionalDataSepa sepadirectdebitDateOfSignature(String sepadirectdebitDateOfSignature) { + public ResponseAdditionalDataSepa sepadirectdebitDateOfSignature( + String sepadirectdebitDateOfSignature) { this.sepadirectdebitDateOfSignature = sepadirectdebitDateOfSignature; return this; } /** - * The transaction signature date. Format: yyyy-MM-dd - * @return sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd + * The transaction signature date. Format: yyyy-MM-dd + * + * @return sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_DATE_OF_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,9 +61,9 @@ public String getSepadirectdebitDateOfSignature() { } /** - * The transaction signature date. Format: yyyy-MM-dd + * The transaction signature date. Format: yyyy-MM-dd * - * @param sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd + * @param sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_DATE_OF_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -81,7 +74,8 @@ public void setSepadirectdebitDateOfSignature(String sepadirectdebitDateOfSignat /** * Its value corresponds to the pspReference value of the transaction. * - * @param sepadirectdebitMandateId Its value corresponds to the pspReference value of the transaction. + * @param sepadirectdebitMandateId Its value corresponds to the pspReference value of the + * transaction. * @return the current {@code ResponseAdditionalDataSepa} instance, allowing for method chaining */ public ResponseAdditionalDataSepa sepadirectdebitMandateId(String sepadirectdebitMandateId) { @@ -91,7 +85,9 @@ public ResponseAdditionalDataSepa sepadirectdebitMandateId(String sepadirectdebi /** * Its value corresponds to the pspReference value of the transaction. - * @return sepadirectdebitMandateId Its value corresponds to the pspReference value of the transaction. + * + * @return sepadirectdebitMandateId Its value corresponds to the pspReference value of the + * transaction. */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_MANDATE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,7 +98,8 @@ public String getSepadirectdebitMandateId() { /** * Its value corresponds to the pspReference value of the transaction. * - * @param sepadirectdebitMandateId Its value corresponds to the pspReference value of the transaction. + * @param sepadirectdebitMandateId Its value corresponds to the pspReference value of the + * transaction. */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_MANDATE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,19 +108,39 @@ public void setSepadirectdebitMandateId(String sepadirectdebitMandateId) { } /** - * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF + * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to + * initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a + * series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out + * regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final + * collection in a series of direct debit instructions. Example: OOFF * - * @param sepadirectdebitSequenceType This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF + * @param sepadirectdebitSequenceType This field can take one of the following values: * OneOff: + * (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: + * (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: + * (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by + * the creditor. * Final: (FNAL) Last/final collection in a series of direct debit + * instructions. Example: OOFF * @return the current {@code ResponseAdditionalDataSepa} instance, allowing for method chaining */ - public ResponseAdditionalDataSepa sepadirectdebitSequenceType(String sepadirectdebitSequenceType) { + public ResponseAdditionalDataSepa sepadirectdebitSequenceType( + String sepadirectdebitSequenceType) { this.sepadirectdebitSequenceType = sepadirectdebitSequenceType; return this; } /** - * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF - * @return sepadirectdebitSequenceType This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF + * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to + * initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a + * series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out + * regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final + * collection in a series of direct debit instructions. Example: OOFF + * + * @return sepadirectdebitSequenceType This field can take one of the following values: * OneOff: + * (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: + * (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: + * (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by + * the creditor. * Final: (FNAL) Last/final collection in a series of direct debit + * instructions. Example: OOFF */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,9 +149,18 @@ public String getSepadirectdebitSequenceType() { } /** - * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF + * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to + * initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a + * series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out + * regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final + * collection in a series of direct debit instructions. Example: OOFF * - * @param sepadirectdebitSequenceType This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF + * @param sepadirectdebitSequenceType This field can take one of the following values: * OneOff: + * (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: + * (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: + * (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by + * the creditor. * Final: (FNAL) Last/final collection in a series of direct debit + * instructions. Example: OOFF */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +168,7 @@ public void setSepadirectdebitSequenceType(String sepadirectdebitSequenceType) { this.sepadirectdebitSequenceType = sepadirectdebitSequenceType; } - /** - * Return true if this ResponseAdditionalDataSepa object is equal to o. - */ + /** Return true if this ResponseAdditionalDataSepa object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,30 +178,41 @@ public boolean equals(Object o) { return false; } ResponseAdditionalDataSepa responseAdditionalDataSepa = (ResponseAdditionalDataSepa) o; - return Objects.equals(this.sepadirectdebitDateOfSignature, responseAdditionalDataSepa.sepadirectdebitDateOfSignature) && - Objects.equals(this.sepadirectdebitMandateId, responseAdditionalDataSepa.sepadirectdebitMandateId) && - Objects.equals(this.sepadirectdebitSequenceType, responseAdditionalDataSepa.sepadirectdebitSequenceType); + return Objects.equals( + this.sepadirectdebitDateOfSignature, + responseAdditionalDataSepa.sepadirectdebitDateOfSignature) + && Objects.equals( + this.sepadirectdebitMandateId, responseAdditionalDataSepa.sepadirectdebitMandateId) + && Objects.equals( + this.sepadirectdebitSequenceType, + responseAdditionalDataSepa.sepadirectdebitSequenceType); } @Override public int hashCode() { - return Objects.hash(sepadirectdebitDateOfSignature, sepadirectdebitMandateId, sepadirectdebitSequenceType); + return Objects.hash( + sepadirectdebitDateOfSignature, sepadirectdebitMandateId, sepadirectdebitSequenceType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataSepa {\n"); - sb.append(" sepadirectdebitDateOfSignature: ").append(toIndentedString(sepadirectdebitDateOfSignature)).append("\n"); - sb.append(" sepadirectdebitMandateId: ").append(toIndentedString(sepadirectdebitMandateId)).append("\n"); - sb.append(" sepadirectdebitSequenceType: ").append(toIndentedString(sepadirectdebitSequenceType)).append("\n"); + sb.append(" sepadirectdebitDateOfSignature: ") + .append(toIndentedString(sepadirectdebitDateOfSignature)) + .append("\n"); + sb.append(" sepadirectdebitMandateId: ") + .append(toIndentedString(sepadirectdebitMandateId)) + .append("\n"); + sb.append(" sepadirectdebitSequenceType: ") + .append(toIndentedString(sepadirectdebitSequenceType)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +221,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResponseAdditionalDataSepa given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataSepa - * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataSepa + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ResponseAdditionalDataSepa */ - public static ResponseAdditionalDataSepa fromJson(String jsonString) throws JsonProcessingException { + public static ResponseAdditionalDataSepa fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataSepa.class); } -/** - * Convert an instance of ResponseAdditionalDataSepa to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResponseAdditionalDataSepa to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/SDKEphemPubKey.java b/src/main/java/com/adyen/model/payment/SDKEphemPubKey.java index 3bba6c220..68475fcfb 100644 --- a/src/main/java/com/adyen/model/payment/SDKEphemPubKey.java +++ b/src/main/java/com/adyen/model/payment/SDKEphemPubKey.java @@ -2,38 +2,28 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * SDKEphemPubKey - */ +/** SDKEphemPubKey */ @JsonPropertyOrder({ SDKEphemPubKey.JSON_PROPERTY_CRV, SDKEphemPubKey.JSON_PROPERTY_KTY, SDKEphemPubKey.JSON_PROPERTY_X, SDKEphemPubKey.JSON_PROPERTY_Y }) - public class SDKEphemPubKey { public static final String JSON_PROPERTY_CRV = "crv"; private String crv; @@ -47,8 +37,7 @@ public class SDKEphemPubKey { public static final String JSON_PROPERTY_Y = "y"; private String y; - public SDKEphemPubKey() { - } + public SDKEphemPubKey() {} /** * The `crv` value as received from the 3D Secure 2 SDK. @@ -63,6 +52,7 @@ public SDKEphemPubKey crv(String crv) { /** * The `crv` value as received from the 3D Secure 2 SDK. + * * @return crv The `crv` value as received from the 3D Secure 2 SDK. */ @JsonProperty(JSON_PROPERTY_CRV) @@ -95,6 +85,7 @@ public SDKEphemPubKey kty(String kty) { /** * The `kty` value as received from the 3D Secure 2 SDK. + * * @return kty The `kty` value as received from the 3D Secure 2 SDK. */ @JsonProperty(JSON_PROPERTY_KTY) @@ -127,6 +118,7 @@ public SDKEphemPubKey x(String x) { /** * The `x` value as received from the 3D Secure 2 SDK. + * * @return x The `x` value as received from the 3D Secure 2 SDK. */ @JsonProperty(JSON_PROPERTY_X) @@ -159,6 +151,7 @@ public SDKEphemPubKey y(String y) { /** * The `y` value as received from the 3D Secure 2 SDK. + * * @return y The `y` value as received from the 3D Secure 2 SDK. */ @JsonProperty(JSON_PROPERTY_Y) @@ -178,9 +171,7 @@ public void setY(String y) { this.y = y; } - /** - * Return true if this SDKEphemPubKey object is equal to o. - */ + /** Return true if this SDKEphemPubKey object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -190,10 +181,10 @@ public boolean equals(Object o) { return false; } SDKEphemPubKey sdKEphemPubKey = (SDKEphemPubKey) o; - return Objects.equals(this.crv, sdKEphemPubKey.crv) && - Objects.equals(this.kty, sdKEphemPubKey.kty) && - Objects.equals(this.x, sdKEphemPubKey.x) && - Objects.equals(this.y, sdKEphemPubKey.y); + return Objects.equals(this.crv, sdKEphemPubKey.crv) + && Objects.equals(this.kty, sdKEphemPubKey.kty) + && Objects.equals(this.x, sdKEphemPubKey.x) + && Objects.equals(this.y, sdKEphemPubKey.y); } @Override @@ -214,8 +205,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,7 +214,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SDKEphemPubKey given an JSON string * * @param jsonString JSON string @@ -234,11 +224,12 @@ private String toIndentedString(Object o) { public static SDKEphemPubKey fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SDKEphemPubKey.class); } -/** - * Convert an instance of SDKEphemPubKey to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SDKEphemPubKey to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/SecureRemoteCommerceCheckoutData.java b/src/main/java/com/adyen/model/payment/SecureRemoteCommerceCheckoutData.java index 48ffca154..172514a5d 100644 --- a/src/main/java/com/adyen/model/payment/SecureRemoteCommerceCheckoutData.java +++ b/src/main/java/com/adyen/model/payment/SecureRemoteCommerceCheckoutData.java @@ -2,31 +2,26 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * SecureRemoteCommerceCheckoutData - */ +/** SecureRemoteCommerceCheckoutData */ @JsonPropertyOrder({ SecureRemoteCommerceCheckoutData.JSON_PROPERTY_CHECKOUT_PAYLOAD, SecureRemoteCommerceCheckoutData.JSON_PROPERTY_CORRELATION_ID, @@ -35,7 +30,6 @@ SecureRemoteCommerceCheckoutData.JSON_PROPERTY_SCHEME, SecureRemoteCommerceCheckoutData.JSON_PROPERTY_TOKEN_REFERENCE }) - public class SecureRemoteCommerceCheckoutData { public static final String JSON_PROPERTY_CHECKOUT_PAYLOAD = "checkoutPayload"; private String checkoutPayload; @@ -49,11 +43,8 @@ public class SecureRemoteCommerceCheckoutData { public static final String JSON_PROPERTY_DIGITAL_CARD_ID = "digitalCardId"; private String digitalCardId; - /** - * The Secure Remote Commerce scheme. - */ + /** The Secure Remote Commerce scheme. */ public enum SchemeEnum { - MC(String.valueOf("mc")), VISA(String.valueOf("visa")); @@ -63,7 +54,7 @@ public enum SchemeEnum { private String value; SchemeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -84,7 +75,11 @@ public static SchemeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("SchemeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(SchemeEnum.values())); + LOG.warning( + "SchemeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(SchemeEnum.values())); return null; } } @@ -95,14 +90,14 @@ public static SchemeEnum fromValue(String value) { public static final String JSON_PROPERTY_TOKEN_REFERENCE = "tokenReference"; private String tokenReference; - public SecureRemoteCommerceCheckoutData() { - } + public SecureRemoteCommerceCheckoutData() {} /** * The Secure Remote Commerce checkout payload to process the payment with. * * @param checkoutPayload The Secure Remote Commerce checkout payload to process the payment with. - * @return the current {@code SecureRemoteCommerceCheckoutData} instance, allowing for method chaining + * @return the current {@code SecureRemoteCommerceCheckoutData} instance, allowing for method + * chaining */ public SecureRemoteCommerceCheckoutData checkoutPayload(String checkoutPayload) { this.checkoutPayload = checkoutPayload; @@ -111,7 +106,9 @@ public SecureRemoteCommerceCheckoutData checkoutPayload(String checkoutPayload) /** * The Secure Remote Commerce checkout payload to process the payment with. - * @return checkoutPayload The Secure Remote Commerce checkout payload to process the payment with. + * + * @return checkoutPayload The Secure Remote Commerce checkout payload to process the payment + * with. */ @JsonProperty(JSON_PROPERTY_CHECKOUT_PAYLOAD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -131,10 +128,15 @@ public void setCheckoutPayload(String checkoutPayload) { } /** - * This is the unique identifier generated by SRC system to track and link SRC messages. Available within the present checkout session (e.g. received in an earlier API response during the present session). + * This is the unique identifier generated by SRC system to track and link SRC messages. Available + * within the present checkout session (e.g. received in an earlier API response during the + * present session). * - * @param correlationId This is the unique identifier generated by SRC system to track and link SRC messages. Available within the present checkout session (e.g. received in an earlier API response during the present session). - * @return the current {@code SecureRemoteCommerceCheckoutData} instance, allowing for method chaining + * @param correlationId This is the unique identifier generated by SRC system to track and link + * SRC messages. Available within the present checkout session (e.g. received in an earlier + * API response during the present session). + * @return the current {@code SecureRemoteCommerceCheckoutData} instance, allowing for method + * chaining */ public SecureRemoteCommerceCheckoutData correlationId(String correlationId) { this.correlationId = correlationId; @@ -142,8 +144,13 @@ public SecureRemoteCommerceCheckoutData correlationId(String correlationId) { } /** - * This is the unique identifier generated by SRC system to track and link SRC messages. Available within the present checkout session (e.g. received in an earlier API response during the present session). - * @return correlationId This is the unique identifier generated by SRC system to track and link SRC messages. Available within the present checkout session (e.g. received in an earlier API response during the present session). + * This is the unique identifier generated by SRC system to track and link SRC messages. Available + * within the present checkout session (e.g. received in an earlier API response during the + * present session). + * + * @return correlationId This is the unique identifier generated by SRC system to track and link + * SRC messages. Available within the present checkout session (e.g. received in an earlier + * API response during the present session). */ @JsonProperty(JSON_PROPERTY_CORRELATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,9 +159,13 @@ public String getCorrelationId() { } /** - * This is the unique identifier generated by SRC system to track and link SRC messages. Available within the present checkout session (e.g. received in an earlier API response during the present session). + * This is the unique identifier generated by SRC system to track and link SRC messages. Available + * within the present checkout session (e.g. received in an earlier API response during the + * present session). * - * @param correlationId This is the unique identifier generated by SRC system to track and link SRC messages. Available within the present checkout session (e.g. received in an earlier API response during the present session). + * @param correlationId This is the unique identifier generated by SRC system to track and link + * SRC messages. Available within the present checkout session (e.g. received in an earlier + * API response during the present session). */ @JsonProperty(JSON_PROPERTY_CORRELATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,10 +174,13 @@ public void setCorrelationId(String correlationId) { } /** - * The [card verification code](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#card-security-code-cvc-cvv-cid). + * The [card verification + * code](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#card-security-code-cvc-cvv-cid). * - * @param cvc The [card verification code](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#card-security-code-cvc-cvv-cid). - * @return the current {@code SecureRemoteCommerceCheckoutData} instance, allowing for method chaining + * @param cvc The [card verification + * code](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#card-security-code-cvc-cvv-cid). + * @return the current {@code SecureRemoteCommerceCheckoutData} instance, allowing for method + * chaining */ public SecureRemoteCommerceCheckoutData cvc(String cvc) { this.cvc = cvc; @@ -174,8 +188,11 @@ public SecureRemoteCommerceCheckoutData cvc(String cvc) { } /** - * The [card verification code](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#card-security-code-cvc-cvv-cid). - * @return cvc The [card verification code](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#card-security-code-cvc-cvv-cid). + * The [card verification + * code](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#card-security-code-cvc-cvv-cid). + * + * @return cvc The [card verification + * code](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#card-security-code-cvc-cvv-cid). */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -184,9 +201,11 @@ public String getCvc() { } /** - * The [card verification code](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#card-security-code-cvc-cvv-cid). + * The [card verification + * code](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#card-security-code-cvc-cvv-cid). * - * @param cvc The [card verification code](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#card-security-code-cvc-cvv-cid). + * @param cvc The [card verification + * code](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#card-security-code-cvc-cvv-cid). */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,10 +214,13 @@ public void setCvc(String cvc) { } /** - * A unique identifier that represents the token associated with a card enrolled. Required for scheme 'mc'. + * A unique identifier that represents the token associated with a card enrolled. Required for + * scheme 'mc'. * - * @param digitalCardId A unique identifier that represents the token associated with a card enrolled. Required for scheme 'mc'. - * @return the current {@code SecureRemoteCommerceCheckoutData} instance, allowing for method chaining + * @param digitalCardId A unique identifier that represents the token associated with a card + * enrolled. Required for scheme 'mc'. + * @return the current {@code SecureRemoteCommerceCheckoutData} instance, allowing for method + * chaining */ public SecureRemoteCommerceCheckoutData digitalCardId(String digitalCardId) { this.digitalCardId = digitalCardId; @@ -206,8 +228,11 @@ public SecureRemoteCommerceCheckoutData digitalCardId(String digitalCardId) { } /** - * A unique identifier that represents the token associated with a card enrolled. Required for scheme 'mc'. - * @return digitalCardId A unique identifier that represents the token associated with a card enrolled. Required for scheme 'mc'. + * A unique identifier that represents the token associated with a card enrolled. Required for + * scheme 'mc'. + * + * @return digitalCardId A unique identifier that represents the token associated with a card + * enrolled. Required for scheme 'mc'. */ @JsonProperty(JSON_PROPERTY_DIGITAL_CARD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -216,9 +241,11 @@ public String getDigitalCardId() { } /** - * A unique identifier that represents the token associated with a card enrolled. Required for scheme 'mc'. + * A unique identifier that represents the token associated with a card enrolled. Required for + * scheme 'mc'. * - * @param digitalCardId A unique identifier that represents the token associated with a card enrolled. Required for scheme 'mc'. + * @param digitalCardId A unique identifier that represents the token associated with a card + * enrolled. Required for scheme 'mc'. */ @JsonProperty(JSON_PROPERTY_DIGITAL_CARD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -230,7 +257,8 @@ public void setDigitalCardId(String digitalCardId) { * The Secure Remote Commerce scheme. * * @param scheme The Secure Remote Commerce scheme. - * @return the current {@code SecureRemoteCommerceCheckoutData} instance, allowing for method chaining + * @return the current {@code SecureRemoteCommerceCheckoutData} instance, allowing for method + * chaining */ public SecureRemoteCommerceCheckoutData scheme(SchemeEnum scheme) { this.scheme = scheme; @@ -239,6 +267,7 @@ public SecureRemoteCommerceCheckoutData scheme(SchemeEnum scheme) { /** * The Secure Remote Commerce scheme. + * * @return scheme The Secure Remote Commerce scheme. */ @JsonProperty(JSON_PROPERTY_SCHEME) @@ -259,10 +288,13 @@ public void setScheme(SchemeEnum scheme) { } /** - * A unique identifier that represents the token associated with a card enrolled. Required for scheme 'visa'. + * A unique identifier that represents the token associated with a card enrolled. Required for + * scheme 'visa'. * - * @param tokenReference A unique identifier that represents the token associated with a card enrolled. Required for scheme 'visa'. - * @return the current {@code SecureRemoteCommerceCheckoutData} instance, allowing for method chaining + * @param tokenReference A unique identifier that represents the token associated with a card + * enrolled. Required for scheme 'visa'. + * @return the current {@code SecureRemoteCommerceCheckoutData} instance, allowing for method + * chaining */ public SecureRemoteCommerceCheckoutData tokenReference(String tokenReference) { this.tokenReference = tokenReference; @@ -270,8 +302,11 @@ public SecureRemoteCommerceCheckoutData tokenReference(String tokenReference) { } /** - * A unique identifier that represents the token associated with a card enrolled. Required for scheme 'visa'. - * @return tokenReference A unique identifier that represents the token associated with a card enrolled. Required for scheme 'visa'. + * A unique identifier that represents the token associated with a card enrolled. Required for + * scheme 'visa'. + * + * @return tokenReference A unique identifier that represents the token associated with a card + * enrolled. Required for scheme 'visa'. */ @JsonProperty(JSON_PROPERTY_TOKEN_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -280,9 +315,11 @@ public String getTokenReference() { } /** - * A unique identifier that represents the token associated with a card enrolled. Required for scheme 'visa'. + * A unique identifier that represents the token associated with a card enrolled. Required for + * scheme 'visa'. * - * @param tokenReference A unique identifier that represents the token associated with a card enrolled. Required for scheme 'visa'. + * @param tokenReference A unique identifier that represents the token associated with a card + * enrolled. Required for scheme 'visa'. */ @JsonProperty(JSON_PROPERTY_TOKEN_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -290,9 +327,7 @@ public void setTokenReference(String tokenReference) { this.tokenReference = tokenReference; } - /** - * Return true if this SecureRemoteCommerceCheckoutData object is equal to o. - */ + /** Return true if this SecureRemoteCommerceCheckoutData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -301,13 +336,14 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SecureRemoteCommerceCheckoutData secureRemoteCommerceCheckoutData = (SecureRemoteCommerceCheckoutData) o; - return Objects.equals(this.checkoutPayload, secureRemoteCommerceCheckoutData.checkoutPayload) && - Objects.equals(this.correlationId, secureRemoteCommerceCheckoutData.correlationId) && - Objects.equals(this.cvc, secureRemoteCommerceCheckoutData.cvc) && - Objects.equals(this.digitalCardId, secureRemoteCommerceCheckoutData.digitalCardId) && - Objects.equals(this.scheme, secureRemoteCommerceCheckoutData.scheme) && - Objects.equals(this.tokenReference, secureRemoteCommerceCheckoutData.tokenReference); + SecureRemoteCommerceCheckoutData secureRemoteCommerceCheckoutData = + (SecureRemoteCommerceCheckoutData) o; + return Objects.equals(this.checkoutPayload, secureRemoteCommerceCheckoutData.checkoutPayload) + && Objects.equals(this.correlationId, secureRemoteCommerceCheckoutData.correlationId) + && Objects.equals(this.cvc, secureRemoteCommerceCheckoutData.cvc) + && Objects.equals(this.digitalCardId, secureRemoteCommerceCheckoutData.digitalCardId) + && Objects.equals(this.scheme, secureRemoteCommerceCheckoutData.scheme) + && Objects.equals(this.tokenReference, secureRemoteCommerceCheckoutData.tokenReference); } @Override @@ -330,8 +366,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -340,21 +375,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SecureRemoteCommerceCheckoutData given an JSON string * * @param jsonString JSON string * @return An instance of SecureRemoteCommerceCheckoutData - * @throws JsonProcessingException if the JSON string is invalid with respect to SecureRemoteCommerceCheckoutData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SecureRemoteCommerceCheckoutData */ - public static SecureRemoteCommerceCheckoutData fromJson(String jsonString) throws JsonProcessingException { + public static SecureRemoteCommerceCheckoutData fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SecureRemoteCommerceCheckoutData.class); } -/** - * Convert an instance of SecureRemoteCommerceCheckoutData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SecureRemoteCommerceCheckoutData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ServiceError.java b/src/main/java/com/adyen/model/payment/ServiceError.java index 653d729eb..30720ebd8 100644 --- a/src/main/java/com/adyen/model/payment/ServiceError.java +++ b/src/main/java/com/adyen/model/payment/ServiceError.java @@ -2,33 +2,24 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.HashMap; +import java.util.Map; - -/** - * ServiceError - */ +/** ServiceError */ @JsonPropertyOrder({ ServiceError.JSON_PROPERTY_ADDITIONAL_DATA, ServiceError.JSON_PROPERTY_ERROR_CODE, @@ -37,7 +28,6 @@ ServiceError.JSON_PROPERTY_PSP_REFERENCE, ServiceError.JSON_PROPERTY_STATUS }) - public class ServiceError { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -57,13 +47,15 @@ public class ServiceError { public static final String JSON_PROPERTY_STATUS = "status"; private Integer status; - public ServiceError() { - } + public ServiceError() {} /** - * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first. Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first. Go to **Customer Area** > **Developers** > + * **Additional data**. * @return the current {@code ServiceError} instance, allowing for method chaining */ public ServiceError additionalData(Map additionalData) { @@ -80,8 +72,12 @@ public ServiceError putAdditionalDataItem(String key, String additionalDataItem) } /** - * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. - * @return additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * + * @return additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first. Go to **Customer Area** > **Developers** > + * **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -90,9 +86,12 @@ public Map getAdditionalData() { } /** - * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first. Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first. Go to **Customer Area** > **Developers** > + * **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,6 +112,7 @@ public ServiceError errorCode(String errorCode) { /** * The error code mapped to the error message. + * * @return errorCode The error code mapped to the error message. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -145,6 +145,7 @@ public ServiceError errorType(String errorType) { /** * The category of the error. + * * @return errorType The category of the error. */ @JsonProperty(JSON_PROPERTY_ERROR_TYPE) @@ -177,6 +178,7 @@ public ServiceError message(String message) { /** * A short explanation of the issue. + * * @return message A short explanation of the issue. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -209,6 +211,7 @@ public ServiceError pspReference(String pspReference) { /** * The PSP reference of the payment. + * * @return pspReference The PSP reference of the payment. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -241,6 +244,7 @@ public ServiceError status(Integer status) { /** * The HTTP response status. + * * @return status The HTTP response status. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -260,9 +264,7 @@ public void setStatus(Integer status) { this.status = status; } - /** - * Return true if this ServiceError object is equal to o. - */ + /** Return true if this ServiceError object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -272,12 +274,12 @@ public boolean equals(Object o) { return false; } ServiceError serviceError = (ServiceError) o; - return Objects.equals(this.additionalData, serviceError.additionalData) && - Objects.equals(this.errorCode, serviceError.errorCode) && - Objects.equals(this.errorType, serviceError.errorType) && - Objects.equals(this.message, serviceError.message) && - Objects.equals(this.pspReference, serviceError.pspReference) && - Objects.equals(this.status, serviceError.status); + return Objects.equals(this.additionalData, serviceError.additionalData) + && Objects.equals(this.errorCode, serviceError.errorCode) + && Objects.equals(this.errorType, serviceError.errorType) + && Objects.equals(this.message, serviceError.message) + && Objects.equals(this.pspReference, serviceError.pspReference) + && Objects.equals(this.status, serviceError.status); } @Override @@ -300,8 +302,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -310,7 +311,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ServiceError given an JSON string * * @param jsonString JSON string @@ -320,11 +321,12 @@ private String toIndentedString(Object o) { public static ServiceError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } -/** - * Convert an instance of ServiceError to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ServiceError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ShopperInteractionDevice.java b/src/main/java/com/adyen/model/payment/ShopperInteractionDevice.java index ec78155cf..8b08225d5 100644 --- a/src/main/java/com/adyen/model/payment/ShopperInteractionDevice.java +++ b/src/main/java/com/adyen/model/payment/ShopperInteractionDevice.java @@ -2,37 +2,27 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ShopperInteractionDevice - */ +/** ShopperInteractionDevice */ @JsonPropertyOrder({ ShopperInteractionDevice.JSON_PROPERTY_LOCALE, ShopperInteractionDevice.JSON_PROPERTY_OS, ShopperInteractionDevice.JSON_PROPERTY_OS_VERSION }) - public class ShopperInteractionDevice { public static final String JSON_PROPERTY_LOCALE = "locale"; private String locale; @@ -43,8 +33,7 @@ public class ShopperInteractionDevice { public static final String JSON_PROPERTY_OS_VERSION = "osVersion"; private String osVersion; - public ShopperInteractionDevice() { - } + public ShopperInteractionDevice() {} /** * Locale on the shopper interaction device. @@ -59,6 +48,7 @@ public ShopperInteractionDevice locale(String locale) { /** * Locale on the shopper interaction device. + * * @return locale Locale on the shopper interaction device. */ @JsonProperty(JSON_PROPERTY_LOCALE) @@ -91,6 +81,7 @@ public ShopperInteractionDevice os(String os) { /** * Operating system running on the shopper interaction device. + * * @return os Operating system running on the shopper interaction device. */ @JsonProperty(JSON_PROPERTY_OS) @@ -123,6 +114,7 @@ public ShopperInteractionDevice osVersion(String osVersion) { /** * Version of the operating system on the shopper interaction device. + * * @return osVersion Version of the operating system on the shopper interaction device. */ @JsonProperty(JSON_PROPERTY_OS_VERSION) @@ -142,9 +134,7 @@ public void setOsVersion(String osVersion) { this.osVersion = osVersion; } - /** - * Return true if this ShopperInteractionDevice object is equal to o. - */ + /** Return true if this ShopperInteractionDevice object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +144,9 @@ public boolean equals(Object o) { return false; } ShopperInteractionDevice shopperInteractionDevice = (ShopperInteractionDevice) o; - return Objects.equals(this.locale, shopperInteractionDevice.locale) && - Objects.equals(this.os, shopperInteractionDevice.os) && - Objects.equals(this.osVersion, shopperInteractionDevice.osVersion); + return Objects.equals(this.locale, shopperInteractionDevice.locale) + && Objects.equals(this.os, shopperInteractionDevice.os) + && Objects.equals(this.osVersion, shopperInteractionDevice.osVersion); } @Override @@ -176,8 +166,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +175,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ShopperInteractionDevice given an JSON string * * @param jsonString JSON string * @return An instance of ShopperInteractionDevice - * @throws JsonProcessingException if the JSON string is invalid with respect to ShopperInteractionDevice + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ShopperInteractionDevice */ - public static ShopperInteractionDevice fromJson(String jsonString) throws JsonProcessingException { + public static ShopperInteractionDevice fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ShopperInteractionDevice.class); } -/** - * Convert an instance of ShopperInteractionDevice to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ShopperInteractionDevice to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/Split.java b/src/main/java/com/adyen/model/payment/Split.java index 9819bd487..018a5a6ba 100644 --- a/src/main/java/com/adyen/model/payment/Split.java +++ b/src/main/java/com/adyen/model/payment/Split.java @@ -2,32 +2,26 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.payment.SplitAmount; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * Split - */ +/** Split */ @JsonPropertyOrder({ Split.JSON_PROPERTY_ACCOUNT, Split.JSON_PROPERTY_AMOUNT, @@ -35,7 +29,6 @@ Split.JSON_PROPERTY_REFERENCE, Split.JSON_PROPERTY_TYPE }) - public class Split { public static final String JSON_PROPERTY_ACCOUNT = "account"; private String account; @@ -50,10 +43,32 @@ public class Split { private String reference; /** - * The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. + * The part of the payment you want to book to the specified `account`. Possible values + * for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * + * **BalanceAccount**: books part of the payment (specified in `amount`) to the + * specified `account`. * Transaction fees types that you can book to the specified + * `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme + * fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the + * aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the + * transaction fees due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the + * transaction fees due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: + * the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the + * fees paid to the card scheme for using their network. * **Commission**: your platform's + * commission on the payment (specified in `amount`), booked to your liable balance + * account. * **Remainder**: the amount left over after a currency conversion, booked to the + * specified `account`. * **TopUp**: allows you and your users to top up balance + * accounts using direct debit, card payments, or other payment methods. * **VAT**: the + * value-added tax charged on the payment, booked to your platforms liable balance account. * + * **Commission**: your platform's commission (specified in `amount`) on the + * payment, booked to your liable balance account. * **Default**: in very specific use cases, + * allows you to book the specified `amount` to the specified `account`. For + * more information, contact Adyen support. Possible values for the [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, + * **MarketPlace**, **PaymentFee**, **VAT**. */ public enum TypeEnum { - ACQUIRINGFEES(String.valueOf("AcquiringFees")), ADYENCOMMISSION(String.valueOf("AdyenCommission")), @@ -91,7 +106,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -112,7 +127,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -120,13 +139,26 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public Split() { - } + public Split() {} /** - * The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/classic-platforms): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked. + * The unique identifier of the account to which the split amount is booked. Required if + * `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms): The + * [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) + * of the account to which the split amount is booked. * [Balance + * Platform](https://docs.adyen.com/adyen-for-platforms-model): The + * [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) + * of the account to which the split amount is booked. * - * @param account The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/classic-platforms): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked. + * @param account The unique identifier of the account to which the split amount is booked. + * Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms): The + * [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) + * of the account to which the split amount is booked. * [Balance + * Platform](https://docs.adyen.com/adyen-for-platforms-model): The + * [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) + * of the account to which the split amount is booked. * @return the current {@code Split} instance, allowing for method chaining */ public Split account(String account) { @@ -135,8 +167,23 @@ public Split account(String account) { } /** - * The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/classic-platforms): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked. - * @return account The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/classic-platforms): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked. + * The unique identifier of the account to which the split amount is booked. Required if + * `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms): The + * [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) + * of the account to which the split amount is booked. * [Balance + * Platform](https://docs.adyen.com/adyen-for-platforms-model): The + * [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) + * of the account to which the split amount is booked. + * + * @return account The unique identifier of the account to which the split amount is booked. + * Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms): The + * [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) + * of the account to which the split amount is booked. * [Balance + * Platform](https://docs.adyen.com/adyen-for-platforms-model): The + * [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) + * of the account to which the split amount is booked. */ @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,9 +192,23 @@ public String getAccount() { } /** - * The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/classic-platforms): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked. + * The unique identifier of the account to which the split amount is booked. Required if + * `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms): The + * [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) + * of the account to which the split amount is booked. * [Balance + * Platform](https://docs.adyen.com/adyen-for-platforms-model): The + * [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) + * of the account to which the split amount is booked. * - * @param account The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/classic-platforms): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked. + * @param account The unique identifier of the account to which the split amount is booked. + * Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms): The + * [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) + * of the account to which the split amount is booked. * [Balance + * Platform](https://docs.adyen.com/adyen-for-platforms-model): The + * [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) + * of the account to which the split amount is booked. */ @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,7 +219,7 @@ public void setAccount(String account) { /** * amount * - * @param amount + * @param amount * @return the current {@code Split} instance, allowing for method chaining */ public Split amount(SplitAmount amount) { @@ -168,7 +229,8 @@ public Split amount(SplitAmount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,7 +241,7 @@ public SplitAmount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,6 +262,7 @@ public Split description(String description) { /** * Your description for the split item. + * * @return description Your description for the split item. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -220,9 +283,19 @@ public void setDescription(String description) { } /** - * Your unique reference for the part of the payment booked to the specified `account`. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also recommend providing a **unique** reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. + * Your unique reference for the part of the payment booked to the specified `account`. + * This is required if `type` is **MarketPlace** ([Classic Platforms + * integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance + * Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also + * recommend providing a **unique** reference so you can reconcile the split and the associated + * payment in the transaction overview and in the reports. * - * @param reference Your unique reference for the part of the payment booked to the specified `account`. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also recommend providing a **unique** reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. + * @param reference Your unique reference for the part of the payment booked to the specified + * `account`. This is required if `type` is **MarketPlace** ([Classic + * Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** + * ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other + * types, we also recommend providing a **unique** reference so you can reconcile the split + * and the associated payment in the transaction overview and in the reports. * @return the current {@code Split} instance, allowing for method chaining */ public Split reference(String reference) { @@ -231,8 +304,19 @@ public Split reference(String reference) { } /** - * Your unique reference for the part of the payment booked to the specified `account`. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also recommend providing a **unique** reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. - * @return reference Your unique reference for the part of the payment booked to the specified `account`. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also recommend providing a **unique** reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. + * Your unique reference for the part of the payment booked to the specified `account`. + * This is required if `type` is **MarketPlace** ([Classic Platforms + * integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance + * Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also + * recommend providing a **unique** reference so you can reconcile the split and the associated + * payment in the transaction overview and in the reports. + * + * @return reference Your unique reference for the part of the payment booked to the specified + * `account`. This is required if `type` is **MarketPlace** ([Classic + * Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** + * ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other + * types, we also recommend providing a **unique** reference so you can reconcile the split + * and the associated payment in the transaction overview and in the reports. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -241,9 +325,19 @@ public String getReference() { } /** - * Your unique reference for the part of the payment booked to the specified `account`. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also recommend providing a **unique** reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. + * Your unique reference for the part of the payment booked to the specified `account`. + * This is required if `type` is **MarketPlace** ([Classic Platforms + * integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance + * Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also + * recommend providing a **unique** reference so you can reconcile the split and the associated + * payment in the transaction overview and in the reports. * - * @param reference Your unique reference for the part of the payment booked to the specified `account`. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also recommend providing a **unique** reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. + * @param reference Your unique reference for the part of the payment booked to the specified + * `account`. This is required if `type` is **MarketPlace** ([Classic + * Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** + * ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other + * types, we also recommend providing a **unique** reference so you can reconcile the split + * and the associated payment in the transaction overview and in the reports. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,9 +346,56 @@ public void setReference(String reference) { } /** - * The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. + * The part of the payment you want to book to the specified `account`. Possible values + * for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * + * **BalanceAccount**: books part of the payment (specified in `amount`) to the + * specified `account`. * Transaction fees types that you can book to the specified + * `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme + * fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the + * aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the + * transaction fees due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the + * transaction fees due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: + * the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the + * fees paid to the card scheme for using their network. * **Commission**: your platform's + * commission on the payment (specified in `amount`), booked to your liable balance + * account. * **Remainder**: the amount left over after a currency conversion, booked to the + * specified `account`. * **TopUp**: allows you and your users to top up balance + * accounts using direct debit, card payments, or other payment methods. * **VAT**: the + * value-added tax charged on the payment, booked to your platforms liable balance account. * + * **Commission**: your platform's commission (specified in `amount`) on the + * payment, booked to your liable balance account. * **Default**: in very specific use cases, + * allows you to book the specified `amount` to the specified `account`. For + * more information, contact Adyen support. Possible values for the [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, + * **MarketPlace**, **PaymentFee**, **VAT**. * - * @param type The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. + * @param type The part of the payment you want to book to the specified `account`. + * Possible values for the [Balance + * Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books + * part of the payment (specified in `amount`) to the specified `account`. + * * Transaction fees types that you can book to the specified `account`: * + * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * + * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the + * aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the + * transaction fees due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: + * the transaction fees due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * + * **Interchange**: the fees paid to the issuer for each payment made with the card network. * + * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: + * your platform's commission on the payment (specified in `amount`), booked to + * your liable balance account. * **Remainder**: the amount left over after a currency + * conversion, booked to the specified `account`. * **TopUp**: allows you and your + * users to top up balance accounts using direct debit, card payments, or other payment + * methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms + * liable balance account. * **Commission**: your platform's commission (specified in + * `amount`) on the payment, booked to your liable balance account. * **Default**: + * in very specific use cases, allows you to book the specified `amount` to the + * specified `account`. For more information, contact Adyen support. Possible values + * for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): + * **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. * @return the current {@code Split} instance, allowing for method chaining */ public Split type(TypeEnum type) { @@ -263,8 +404,56 @@ public Split type(TypeEnum type) { } /** - * The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. - * @return type The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. + * The part of the payment you want to book to the specified `account`. Possible values + * for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * + * **BalanceAccount**: books part of the payment (specified in `amount`) to the + * specified `account`. * Transaction fees types that you can book to the specified + * `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme + * fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the + * aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the + * transaction fees due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the + * transaction fees due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: + * the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the + * fees paid to the card scheme for using their network. * **Commission**: your platform's + * commission on the payment (specified in `amount`), booked to your liable balance + * account. * **Remainder**: the amount left over after a currency conversion, booked to the + * specified `account`. * **TopUp**: allows you and your users to top up balance + * accounts using direct debit, card payments, or other payment methods. * **VAT**: the + * value-added tax charged on the payment, booked to your platforms liable balance account. * + * **Commission**: your platform's commission (specified in `amount`) on the + * payment, booked to your liable balance account. * **Default**: in very specific use cases, + * allows you to book the specified `amount` to the specified `account`. For + * more information, contact Adyen support. Possible values for the [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, + * **MarketPlace**, **PaymentFee**, **VAT**. + * + * @return type The part of the payment you want to book to the specified `account`. + * Possible values for the [Balance + * Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books + * part of the payment (specified in `amount`) to the specified `account`. + * * Transaction fees types that you can book to the specified `account`: * + * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * + * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the + * aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the + * transaction fees due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: + * the transaction fees due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * + * **Interchange**: the fees paid to the issuer for each payment made with the card network. * + * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: + * your platform's commission on the payment (specified in `amount`), booked to + * your liable balance account. * **Remainder**: the amount left over after a currency + * conversion, booked to the specified `account`. * **TopUp**: allows you and your + * users to top up balance accounts using direct debit, card payments, or other payment + * methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms + * liable balance account. * **Commission**: your platform's commission (specified in + * `amount`) on the payment, booked to your liable balance account. * **Default**: + * in very specific use cases, allows you to book the specified `amount` to the + * specified `account`. For more information, contact Adyen support. Possible values + * for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): + * **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -273,9 +462,56 @@ public TypeEnum getType() { } /** - * The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. + * The part of the payment you want to book to the specified `account`. Possible values + * for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * + * **BalanceAccount**: books part of the payment (specified in `amount`) to the + * specified `account`. * Transaction fees types that you can book to the specified + * `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme + * fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the + * aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the + * transaction fees due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the + * transaction fees due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: + * the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the + * fees paid to the card scheme for using their network. * **Commission**: your platform's + * commission on the payment (specified in `amount`), booked to your liable balance + * account. * **Remainder**: the amount left over after a currency conversion, booked to the + * specified `account`. * **TopUp**: allows you and your users to top up balance + * accounts using direct debit, card payments, or other payment methods. * **VAT**: the + * value-added tax charged on the payment, booked to your platforms liable balance account. * + * **Commission**: your platform's commission (specified in `amount`) on the + * payment, booked to your liable balance account. * **Default**: in very specific use cases, + * allows you to book the specified `amount` to the specified `account`. For + * more information, contact Adyen support. Possible values for the [Classic Platforms + * integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, + * **MarketPlace**, **PaymentFee**, **VAT**. * - * @param type The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. + * @param type The part of the payment you want to book to the specified `account`. + * Possible values for the [Balance + * Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books + * part of the payment (specified in `amount`) to the specified `account`. + * * Transaction fees types that you can book to the specified `account`: * + * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * + * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the + * aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the + * transaction fees due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: + * the transaction fees due to Adyen under [Interchange ++ + * pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * + * **Interchange**: the fees paid to the issuer for each payment made with the card network. * + * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: + * your platform's commission on the payment (specified in `amount`), booked to + * your liable balance account. * **Remainder**: the amount left over after a currency + * conversion, booked to the specified `account`. * **TopUp**: allows you and your + * users to top up balance accounts using direct debit, card payments, or other payment + * methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms + * liable balance account. * **Commission**: your platform's commission (specified in + * `amount`) on the payment, booked to your liable balance account. * **Default**: + * in very specific use cases, allows you to book the specified `amount` to the + * specified `account`. For more information, contact Adyen support. Possible values + * for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): + * **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -283,9 +519,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this Split object is equal to o. - */ + /** Return true if this Split object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -295,11 +529,11 @@ public boolean equals(Object o) { return false; } Split split = (Split) o; - return Objects.equals(this.account, split.account) && - Objects.equals(this.amount, split.amount) && - Objects.equals(this.description, split.description) && - Objects.equals(this.reference, split.reference) && - Objects.equals(this.type, split.type); + return Objects.equals(this.account, split.account) + && Objects.equals(this.amount, split.amount) + && Objects.equals(this.description, split.description) + && Objects.equals(this.reference, split.reference) + && Objects.equals(this.type, split.type); } @Override @@ -321,8 +555,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -331,7 +564,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Split given an JSON string * * @param jsonString JSON string @@ -341,11 +574,12 @@ private String toIndentedString(Object o) { public static Split fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Split.class); } -/** - * Convert an instance of Split to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Split to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/SplitAmount.java b/src/main/java/com/adyen/model/payment/SplitAmount.java index c26fe5210..dbbd345eb 100644 --- a/src/main/java/com/adyen/model/payment/SplitAmount.java +++ b/src/main/java/com/adyen/model/payment/SplitAmount.java @@ -2,36 +2,23 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * SplitAmount - */ -@JsonPropertyOrder({ - SplitAmount.JSON_PROPERTY_CURRENCY, - SplitAmount.JSON_PROPERTY_VALUE -}) - +/** SplitAmount */ +@JsonPropertyOrder({SplitAmount.JSON_PROPERTY_CURRENCY, SplitAmount.JSON_PROPERTY_VALUE}) public class SplitAmount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -39,13 +26,16 @@ public class SplitAmount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public SplitAmount() { - } + public SplitAmount() {} /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the original payment currency. + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the + * original payment currency. * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the original payment currency. + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the + * original payment currency. * @return the current {@code SplitAmount} instance, allowing for method chaining */ public SplitAmount currency(String currency) { @@ -54,8 +44,13 @@ public SplitAmount currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the original payment currency. - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the original payment currency. + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the + * original payment currency. + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the + * original payment currency. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +59,13 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the original payment currency. + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the + * original payment currency. * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the original payment currency. + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the + * original payment currency. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,9 +74,11 @@ public void setCurrency(String currency) { } /** - * The value of the split amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The value of the split amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * - * @param value The value of the split amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @param value The value of the split amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code SplitAmount} instance, allowing for method chaining */ public SplitAmount value(Long value) { @@ -86,8 +87,11 @@ public SplitAmount value(Long value) { } /** - * The value of the split amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). - * @return value The value of the split amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The value of the split amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). + * + * @return value The value of the split amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +100,11 @@ public Long getValue() { } /** - * The value of the split amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The value of the split amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * - * @param value The value of the split amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @param value The value of the split amount, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +112,7 @@ public void setValue(Long value) { this.value = value; } - /** - * Return true if this SplitAmount object is equal to o. - */ + /** Return true if this SplitAmount object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +122,8 @@ public boolean equals(Object o) { return false; } SplitAmount splitAmount = (SplitAmount) o; - return Objects.equals(this.currency, splitAmount.currency) && - Objects.equals(this.value, splitAmount.value); + return Objects.equals(this.currency, splitAmount.currency) + && Objects.equals(this.value, splitAmount.value); } @Override @@ -138,8 +142,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +151,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SplitAmount given an JSON string * * @param jsonString JSON string @@ -158,11 +161,12 @@ private String toIndentedString(Object o) { public static SplitAmount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SplitAmount.class); } -/** - * Convert an instance of SplitAmount to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SplitAmount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/SubMerchant.java b/src/main/java/com/adyen/model/payment/SubMerchant.java index 814d97294..8d7a8f070 100644 --- a/src/main/java/com/adyen/model/payment/SubMerchant.java +++ b/src/main/java/com/adyen/model/payment/SubMerchant.java @@ -2,31 +2,22 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * SubMerchant - */ +/** SubMerchant */ @JsonPropertyOrder({ SubMerchant.JSON_PROPERTY_CITY, SubMerchant.JSON_PROPERTY_COUNTRY, @@ -34,7 +25,6 @@ SubMerchant.JSON_PROPERTY_NAME, SubMerchant.JSON_PROPERTY_TAX_ID }) - public class SubMerchant { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -51,13 +41,14 @@ public class SubMerchant { public static final String JSON_PROPERTY_TAX_ID = "taxId"; private String taxId; - public SubMerchant() { - } + public SubMerchant() {} /** - * The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters + * The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 + * characters * - * @param city The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters + * @param city The city of the sub-merchant's address. * Format: Alphanumeric * Maximum + * length: 13 characters * @return the current {@code SubMerchant} instance, allowing for method chaining */ public SubMerchant city(String city) { @@ -66,8 +57,11 @@ public SubMerchant city(String city) { } /** - * The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters - * @return city The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters + * The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 + * characters + * + * @return city The city of the sub-merchant's address. * Format: Alphanumeric * Maximum + * length: 13 characters */ @JsonProperty(JSON_PROPERTY_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -76,9 +70,11 @@ public String getCity() { } /** - * The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters + * The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 + * characters * - * @param city The city of the sub-merchant's address. * Format: Alphanumeric * Maximum length: 13 characters + * @param city The city of the sub-merchant's address. * Format: Alphanumeric * Maximum + * length: 13 characters */ @JsonProperty(JSON_PROPERTY_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,9 +83,13 @@ public void setCity(String city) { } /** - * The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * The three-letter country code of the sub-merchant's address. For example, **BRA** for + * Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * + * Fixed length: 3 characters * - * @param country The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * @param country The three-letter country code of the sub-merchant's address. For example, + * **BRA** for Brazil. * Format: [ISO 3166-1 + * alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters * @return the current {@code SubMerchant} instance, allowing for method chaining */ public SubMerchant country(String country) { @@ -98,8 +98,13 @@ public SubMerchant country(String country) { } /** - * The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters - * @return country The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * The three-letter country code of the sub-merchant's address. For example, **BRA** for + * Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * + * Fixed length: 3 characters + * + * @return country The three-letter country code of the sub-merchant's address. For example, + * **BRA** for Brazil. * Format: [ISO 3166-1 + * alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,9 +113,13 @@ public String getCountry() { } /** - * The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * The three-letter country code of the sub-merchant's address. For example, **BRA** for + * Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * + * Fixed length: 3 characters * - * @param country The three-letter country code of the sub-merchant's address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + * @param country The three-letter country code of the sub-merchant's address. For example, + * **BRA** for Brazil. * Format: [ISO 3166-1 + * alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -119,9 +128,11 @@ public void setCountry(String country) { } /** - * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: + * 4 digits * - * @param mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * @param mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * + * Fixed length: 4 digits * @return the current {@code SubMerchant} instance, allowing for method chaining */ public SubMerchant mcc(String mcc) { @@ -130,8 +141,11 @@ public SubMerchant mcc(String mcc) { } /** - * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits - * @return mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: + * 4 digits + * + * @return mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * + * Fixed length: 4 digits */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,9 +154,11 @@ public String getMcc() { } /** - * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: + * 4 digits * - * @param mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * @param mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * + * Fixed length: 4 digits */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,9 +167,13 @@ public void setMcc(String mcc) { } /** - * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters + * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the + * shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum + * length: 22 characters * - * @param name The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters + * @param name The name of the sub-merchant. Based on scheme specifications, this value will + * overwrite the shopper statement that will appear in the card statement. * Format: + * Alphanumeric * Maximum length: 22 characters * @return the current {@code SubMerchant} instance, allowing for method chaining */ public SubMerchant name(String name) { @@ -162,8 +182,13 @@ public SubMerchant name(String name) { } /** - * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters - * @return name The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters + * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the + * shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum + * length: 22 characters + * + * @return name The name of the sub-merchant. Based on scheme specifications, this value will + * overwrite the shopper statement that will appear in the card statement. * Format: + * Alphanumeric * Maximum length: 22 characters */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,9 +197,13 @@ public String getName() { } /** - * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters + * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the + * shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum + * length: 22 characters * - * @param name The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters + * @param name The name of the sub-merchant. Based on scheme specifications, this value will + * overwrite the shopper statement that will appear in the card statement. * Format: + * Alphanumeric * Maximum length: 22 characters */ @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,9 +212,11 @@ public void setName(String name) { } /** - * The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 + * digits for the CNPJ * - * @param taxId The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * @param taxId The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for + * the CPF or 14 digits for the CNPJ * @return the current {@code SubMerchant} instance, allowing for method chaining */ public SubMerchant taxId(String taxId) { @@ -194,8 +225,11 @@ public SubMerchant taxId(String taxId) { } /** - * The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ - * @return taxId The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 + * digits for the CNPJ + * + * @return taxId The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for + * the CPF or 14 digits for the CNPJ */ @JsonProperty(JSON_PROPERTY_TAX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,9 +238,11 @@ public String getTaxId() { } /** - * The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 + * digits for the CNPJ * - * @param taxId The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + * @param taxId The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for + * the CPF or 14 digits for the CNPJ */ @JsonProperty(JSON_PROPERTY_TAX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,9 +250,7 @@ public void setTaxId(String taxId) { this.taxId = taxId; } - /** - * Return true if this SubMerchant object is equal to o. - */ + /** Return true if this SubMerchant object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -226,11 +260,11 @@ public boolean equals(Object o) { return false; } SubMerchant subMerchant = (SubMerchant) o; - return Objects.equals(this.city, subMerchant.city) && - Objects.equals(this.country, subMerchant.country) && - Objects.equals(this.mcc, subMerchant.mcc) && - Objects.equals(this.name, subMerchant.name) && - Objects.equals(this.taxId, subMerchant.taxId); + return Objects.equals(this.city, subMerchant.city) + && Objects.equals(this.country, subMerchant.country) + && Objects.equals(this.mcc, subMerchant.mcc) + && Objects.equals(this.name, subMerchant.name) + && Objects.equals(this.taxId, subMerchant.taxId); } @Override @@ -252,8 +286,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -262,7 +295,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SubMerchant given an JSON string * * @param jsonString JSON string @@ -272,11 +305,12 @@ private String toIndentedString(Object o) { public static SubMerchant fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SubMerchant.class); } -/** - * Convert an instance of SubMerchant to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SubMerchant to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/TechnicalCancelRequest.java b/src/main/java/com/adyen/model/payment/TechnicalCancelRequest.java index fb7df23d6..60e6e4f53 100644 --- a/src/main/java/com/adyen/model/payment/TechnicalCancelRequest.java +++ b/src/main/java/com/adyen/model/payment/TechnicalCancelRequest.java @@ -2,39 +2,26 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.payment.Amount; -import com.adyen.model.payment.PlatformChargebackLogic; -import com.adyen.model.payment.Split; -import com.adyen.model.payment.ThreeDSecureData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; -import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -/** - * TechnicalCancelRequest - */ +/** TechnicalCancelRequest */ @JsonPropertyOrder({ TechnicalCancelRequest.JSON_PROPERTY_ADDITIONAL_DATA, TechnicalCancelRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, @@ -47,7 +34,6 @@ TechnicalCancelRequest.JSON_PROPERTY_TENDER_REFERENCE, TechnicalCancelRequest.JSON_PROPERTY_UNIQUE_TERMINAL_ID }) - public class TechnicalCancelRequest { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -61,7 +47,8 @@ public class TechnicalCancelRequest { public static final String JSON_PROPERTY_MPI_DATA = "mpiData"; private ThreeDSecureData mpiData; - public static final String JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE = "originalMerchantReference"; + public static final String JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE = + "originalMerchantReference"; private String originalMerchantReference; public static final String JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC = "platformChargebackLogic"; @@ -79,13 +66,16 @@ public class TechnicalCancelRequest { public static final String JSON_PROPERTY_UNIQUE_TERMINAL_ID = "uniqueTerminalId"; private String uniqueTerminalId; - public TechnicalCancelRequest() { - } + public TechnicalCancelRequest() {} /** - * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular modification + * request. The additionalData object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a + * particular modification request. The additionalData object consists of entries, each of + * which includes the key and value. * @return the current {@code TechnicalCancelRequest} instance, allowing for method chaining */ public TechnicalCancelRequest additionalData(Map additionalData) { @@ -102,8 +92,13 @@ public TechnicalCancelRequest putAdditionalDataItem(String key, String additiona } /** - * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. - * @return additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular modification + * request. The additionalData object consists of entries, each of which includes the key and + * value. + * + * @return additionalData This field contains additional data, which may be required for a + * particular modification request. The additionalData object consists of entries, each of + * which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,9 +107,13 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular modification + * request. The additionalData object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a + * particular modification request. The additionalData object consists of entries, each of + * which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,6 +134,7 @@ public TechnicalCancelRequest merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. + * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -157,7 +157,7 @@ public void setMerchantAccount(String merchantAccount) { /** * modificationAmount * - * @param modificationAmount + * @param modificationAmount * @return the current {@code TechnicalCancelRequest} instance, allowing for method chaining */ public TechnicalCancelRequest modificationAmount(Amount modificationAmount) { @@ -167,7 +167,8 @@ public TechnicalCancelRequest modificationAmount(Amount modificationAmount) { /** * Get modificationAmount - * @return modificationAmount + * + * @return modificationAmount */ @JsonProperty(JSON_PROPERTY_MODIFICATION_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,7 +179,7 @@ public Amount getModificationAmount() { /** * modificationAmount * - * @param modificationAmount + * @param modificationAmount */ @JsonProperty(JSON_PROPERTY_MODIFICATION_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,7 +190,7 @@ public void setModificationAmount(Amount modificationAmount) { /** * mpiData * - * @param mpiData + * @param mpiData * @return the current {@code TechnicalCancelRequest} instance, allowing for method chaining */ public TechnicalCancelRequest mpiData(ThreeDSecureData mpiData) { @@ -199,7 +200,8 @@ public TechnicalCancelRequest mpiData(ThreeDSecureData mpiData) { /** * Get mpiData - * @return mpiData + * + * @return mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -210,7 +212,7 @@ public ThreeDSecureData getMpiData() { /** * mpiData * - * @param mpiData + * @param mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -231,6 +233,7 @@ public TechnicalCancelRequest originalMerchantReference(String originalMerchantR /** * The original merchant reference to cancel. + * * @return originalMerchantReference The original merchant reference to cancel. */ @JsonProperty(JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE) @@ -253,17 +256,19 @@ public void setOriginalMerchantReference(String originalMerchantReference) { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic * @return the current {@code TechnicalCancelRequest} instance, allowing for method chaining */ - public TechnicalCancelRequest platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) { + public TechnicalCancelRequest platformChargebackLogic( + PlatformChargebackLogic platformChargebackLogic) { this.platformChargebackLogic = platformChargebackLogic; return this; } /** * Get platformChargebackLogic - * @return platformChargebackLogic + * + * @return platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -274,7 +279,7 @@ public PlatformChargebackLogic getPlatformChargebackLogic() { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -283,9 +288,11 @@ public void setPlatformChargebackLogic(PlatformChargebackLogic platformChargebac } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in + * reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in + * Customer Area and in reports. Maximum length: 80 characters. * @return the current {@code TechnicalCancelRequest} instance, allowing for method chaining */ public TechnicalCancelRequest reference(String reference) { @@ -294,8 +301,11 @@ public TechnicalCancelRequest reference(String reference) { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. - * @return reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in + * reports. Maximum length: 80 characters. + * + * @return reference Your reference for the payment modification. This reference is visible in + * Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -304,9 +314,11 @@ public String getReference() { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in + * reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in + * Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -315,9 +327,13 @@ public void setReference(String reference) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * - * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * @param splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * @return the current {@code TechnicalCancelRequest} instance, allowing for method chaining */ public TechnicalCancelRequest splits(List splits) { @@ -334,8 +350,13 @@ public TechnicalCancelRequest addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). - * @return splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * + * @return splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -344,9 +365,13 @@ public List getSplits() { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * - * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * @param splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -357,7 +382,8 @@ public void setSplits(List splits) { /** * The transaction reference provided by the PED. For point-of-sale integrations only. * - * @param tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. + * @param tenderReference The transaction reference provided by the PED. For point-of-sale + * integrations only. * @return the current {@code TechnicalCancelRequest} instance, allowing for method chaining */ public TechnicalCancelRequest tenderReference(String tenderReference) { @@ -367,7 +393,9 @@ public TechnicalCancelRequest tenderReference(String tenderReference) { /** * The transaction reference provided by the PED. For point-of-sale integrations only. - * @return tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. + * + * @return tenderReference The transaction reference provided by the PED. For point-of-sale + * integrations only. */ @JsonProperty(JSON_PROPERTY_TENDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -378,7 +406,8 @@ public String getTenderReference() { /** * The transaction reference provided by the PED. For point-of-sale integrations only. * - * @param tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. + * @param tenderReference The transaction reference provided by the PED. For point-of-sale + * integrations only. */ @JsonProperty(JSON_PROPERTY_TENDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -387,9 +416,11 @@ public void setTenderReference(String tenderReference) { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale + * integrations only. * - * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. + * For point-of-sale integrations only. * @return the current {@code TechnicalCancelRequest} instance, allowing for method chaining */ public TechnicalCancelRequest uniqueTerminalId(String uniqueTerminalId) { @@ -398,8 +429,11 @@ public TechnicalCancelRequest uniqueTerminalId(String uniqueTerminalId) { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. - * @return uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale + * integrations only. + * + * @return uniqueTerminalId Unique terminal ID for the PED that originally processed the request. + * For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -408,9 +442,11 @@ public String getUniqueTerminalId() { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale + * integrations only. * - * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. + * For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -418,9 +454,7 @@ public void setUniqueTerminalId(String uniqueTerminalId) { this.uniqueTerminalId = uniqueTerminalId; } - /** - * Return true if this TechnicalCancelRequest object is equal to o. - */ + /** Return true if this TechnicalCancelRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -430,21 +464,33 @@ public boolean equals(Object o) { return false; } TechnicalCancelRequest technicalCancelRequest = (TechnicalCancelRequest) o; - return Objects.equals(this.additionalData, technicalCancelRequest.additionalData) && - Objects.equals(this.merchantAccount, technicalCancelRequest.merchantAccount) && - Objects.equals(this.modificationAmount, technicalCancelRequest.modificationAmount) && - Objects.equals(this.mpiData, technicalCancelRequest.mpiData) && - Objects.equals(this.originalMerchantReference, technicalCancelRequest.originalMerchantReference) && - Objects.equals(this.platformChargebackLogic, technicalCancelRequest.platformChargebackLogic) && - Objects.equals(this.reference, technicalCancelRequest.reference) && - Objects.equals(this.splits, technicalCancelRequest.splits) && - Objects.equals(this.tenderReference, technicalCancelRequest.tenderReference) && - Objects.equals(this.uniqueTerminalId, technicalCancelRequest.uniqueTerminalId); + return Objects.equals(this.additionalData, technicalCancelRequest.additionalData) + && Objects.equals(this.merchantAccount, technicalCancelRequest.merchantAccount) + && Objects.equals(this.modificationAmount, technicalCancelRequest.modificationAmount) + && Objects.equals(this.mpiData, technicalCancelRequest.mpiData) + && Objects.equals( + this.originalMerchantReference, technicalCancelRequest.originalMerchantReference) + && Objects.equals( + this.platformChargebackLogic, technicalCancelRequest.platformChargebackLogic) + && Objects.equals(this.reference, technicalCancelRequest.reference) + && Objects.equals(this.splits, technicalCancelRequest.splits) + && Objects.equals(this.tenderReference, technicalCancelRequest.tenderReference) + && Objects.equals(this.uniqueTerminalId, technicalCancelRequest.uniqueTerminalId); } @Override public int hashCode() { - return Objects.hash(additionalData, merchantAccount, modificationAmount, mpiData, originalMerchantReference, platformChargebackLogic, reference, splits, tenderReference, uniqueTerminalId); + return Objects.hash( + additionalData, + merchantAccount, + modificationAmount, + mpiData, + originalMerchantReference, + platformChargebackLogic, + reference, + splits, + tenderReference, + uniqueTerminalId); } @Override @@ -455,8 +501,12 @@ public String toString() { sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" modificationAmount: ").append(toIndentedString(modificationAmount)).append("\n"); sb.append(" mpiData: ").append(toIndentedString(mpiData)).append("\n"); - sb.append(" originalMerchantReference: ").append(toIndentedString(originalMerchantReference)).append("\n"); - sb.append(" platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n"); + sb.append(" originalMerchantReference: ") + .append(toIndentedString(originalMerchantReference)) + .append("\n"); + sb.append(" platformChargebackLogic: ") + .append(toIndentedString(platformChargebackLogic)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" tenderReference: ").append(toIndentedString(tenderReference)).append("\n"); @@ -466,8 +516,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -476,21 +525,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TechnicalCancelRequest given an JSON string * * @param jsonString JSON string * @return An instance of TechnicalCancelRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to TechnicalCancelRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TechnicalCancelRequest */ public static TechnicalCancelRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TechnicalCancelRequest.class); } -/** - * Convert an instance of TechnicalCancelRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TechnicalCancelRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ThreeDS1Result.java b/src/main/java/com/adyen/model/payment/ThreeDS1Result.java index 53f454e31..2953881bf 100644 --- a/src/main/java/com/adyen/model/payment/ThreeDS1Result.java +++ b/src/main/java/com/adyen/model/payment/ThreeDS1Result.java @@ -2,31 +2,22 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ThreeDS1Result - */ +/** ThreeDS1Result */ @JsonPropertyOrder({ ThreeDS1Result.JSON_PROPERTY_CAVV, ThreeDS1Result.JSON_PROPERTY_CAVV_ALGORITHM, @@ -35,7 +26,6 @@ ThreeDS1Result.JSON_PROPERTY_THREE_D_OFFERED_RESPONSE, ThreeDS1Result.JSON_PROPERTY_XID }) - public class ThreeDS1Result { public static final String JSON_PROPERTY_CAVV = "cavv"; private String cavv; @@ -46,7 +36,8 @@ public class ThreeDS1Result { public static final String JSON_PROPERTY_ECI = "eci"; private String eci; - public static final String JSON_PROPERTY_THREE_D_AUTHENTICATED_RESPONSE = "threeDAuthenticatedResponse"; + public static final String JSON_PROPERTY_THREE_D_AUTHENTICATED_RESPONSE = + "threeDAuthenticatedResponse"; private String threeDAuthenticatedResponse; public static final String JSON_PROPERTY_THREE_D_OFFERED_RESPONSE = "threeDOfferedResponse"; @@ -55,8 +46,7 @@ public class ThreeDS1Result { public static final String JSON_PROPERTY_XID = "xid"; private String xid; - public ThreeDS1Result() { - } + public ThreeDS1Result() {} /** * The cardholder authentication value (base64 encoded). @@ -71,6 +61,7 @@ public ThreeDS1Result cavv(String cavv) { /** * The cardholder authentication value (base64 encoded). + * * @return cavv The cardholder authentication value (base64 encoded). */ @JsonProperty(JSON_PROPERTY_CAVV) @@ -103,6 +94,7 @@ public ThreeDS1Result cavvAlgorithm(String cavvAlgorithm) { /** * The CAVV algorithm used. + * * @return cavvAlgorithm The CAVV algorithm used. */ @JsonProperty(JSON_PROPERTY_CAVV_ALGORITHM) @@ -135,6 +127,7 @@ public ThreeDS1Result eci(String eci) { /** * 3D Secure Electronic Commerce Indicator (ECI). + * * @return eci 3D Secure Electronic Commerce Indicator (ECI). */ @JsonProperty(JSON_PROPERTY_ECI) @@ -167,6 +160,7 @@ public ThreeDS1Result threeDAuthenticatedResponse(String threeDAuthenticatedResp /** * The authentication response from the ACS. + * * @return threeDAuthenticatedResponse The authentication response from the ACS. */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED_RESPONSE) @@ -199,6 +193,7 @@ public ThreeDS1Result threeDOfferedResponse(String threeDOfferedResponse) { /** * Whether 3D Secure was offered or not. + * * @return threeDOfferedResponse Whether 3D Secure was offered or not. */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED_RESPONSE) @@ -219,9 +214,11 @@ public void setThreeDOfferedResponse(String threeDOfferedResponse) { } /** - * A unique transaction identifier generated by the MPI on behalf of the merchant to identify the 3D Secure transaction, in `Base64` encoding. + * A unique transaction identifier generated by the MPI on behalf of the merchant to identify the + * 3D Secure transaction, in `Base64` encoding. * - * @param xid A unique transaction identifier generated by the MPI on behalf of the merchant to identify the 3D Secure transaction, in `Base64` encoding. + * @param xid A unique transaction identifier generated by the MPI on behalf of the merchant to + * identify the 3D Secure transaction, in `Base64` encoding. * @return the current {@code ThreeDS1Result} instance, allowing for method chaining */ public ThreeDS1Result xid(String xid) { @@ -230,8 +227,11 @@ public ThreeDS1Result xid(String xid) { } /** - * A unique transaction identifier generated by the MPI on behalf of the merchant to identify the 3D Secure transaction, in `Base64` encoding. - * @return xid A unique transaction identifier generated by the MPI on behalf of the merchant to identify the 3D Secure transaction, in `Base64` encoding. + * A unique transaction identifier generated by the MPI on behalf of the merchant to identify the + * 3D Secure transaction, in `Base64` encoding. + * + * @return xid A unique transaction identifier generated by the MPI on behalf of the merchant to + * identify the 3D Secure transaction, in `Base64` encoding. */ @JsonProperty(JSON_PROPERTY_XID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,9 +240,11 @@ public String getXid() { } /** - * A unique transaction identifier generated by the MPI on behalf of the merchant to identify the 3D Secure transaction, in `Base64` encoding. + * A unique transaction identifier generated by the MPI on behalf of the merchant to identify the + * 3D Secure transaction, in `Base64` encoding. * - * @param xid A unique transaction identifier generated by the MPI on behalf of the merchant to identify the 3D Secure transaction, in `Base64` encoding. + * @param xid A unique transaction identifier generated by the MPI on behalf of the merchant to + * identify the 3D Secure transaction, in `Base64` encoding. */ @JsonProperty(JSON_PROPERTY_XID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,9 +252,7 @@ public void setXid(String xid) { this.xid = xid; } - /** - * Return true if this ThreeDS1Result object is equal to o. - */ + /** Return true if this ThreeDS1Result object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -262,17 +262,19 @@ public boolean equals(Object o) { return false; } ThreeDS1Result threeDS1Result = (ThreeDS1Result) o; - return Objects.equals(this.cavv, threeDS1Result.cavv) && - Objects.equals(this.cavvAlgorithm, threeDS1Result.cavvAlgorithm) && - Objects.equals(this.eci, threeDS1Result.eci) && - Objects.equals(this.threeDAuthenticatedResponse, threeDS1Result.threeDAuthenticatedResponse) && - Objects.equals(this.threeDOfferedResponse, threeDS1Result.threeDOfferedResponse) && - Objects.equals(this.xid, threeDS1Result.xid); + return Objects.equals(this.cavv, threeDS1Result.cavv) + && Objects.equals(this.cavvAlgorithm, threeDS1Result.cavvAlgorithm) + && Objects.equals(this.eci, threeDS1Result.eci) + && Objects.equals( + this.threeDAuthenticatedResponse, threeDS1Result.threeDAuthenticatedResponse) + && Objects.equals(this.threeDOfferedResponse, threeDS1Result.threeDOfferedResponse) + && Objects.equals(this.xid, threeDS1Result.xid); } @Override public int hashCode() { - return Objects.hash(cavv, cavvAlgorithm, eci, threeDAuthenticatedResponse, threeDOfferedResponse, xid); + return Objects.hash( + cavv, cavvAlgorithm, eci, threeDAuthenticatedResponse, threeDOfferedResponse, xid); } @Override @@ -282,16 +284,19 @@ public String toString() { sb.append(" cavv: ").append(toIndentedString(cavv)).append("\n"); sb.append(" cavvAlgorithm: ").append(toIndentedString(cavvAlgorithm)).append("\n"); sb.append(" eci: ").append(toIndentedString(eci)).append("\n"); - sb.append(" threeDAuthenticatedResponse: ").append(toIndentedString(threeDAuthenticatedResponse)).append("\n"); - sb.append(" threeDOfferedResponse: ").append(toIndentedString(threeDOfferedResponse)).append("\n"); + sb.append(" threeDAuthenticatedResponse: ") + .append(toIndentedString(threeDAuthenticatedResponse)) + .append("\n"); + sb.append(" threeDOfferedResponse: ") + .append(toIndentedString(threeDOfferedResponse)) + .append("\n"); sb.append(" xid: ").append(toIndentedString(xid)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -300,7 +305,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ThreeDS1Result given an JSON string * * @param jsonString JSON string @@ -310,11 +315,12 @@ private String toIndentedString(Object o) { public static ThreeDS1Result fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDS1Result.class); } -/** - * Convert an instance of ThreeDS1Result to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ThreeDS1Result to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ThreeDS2RequestData.java b/src/main/java/com/adyen/model/payment/ThreeDS2RequestData.java index 7eb4aec01..45a8754a1 100644 --- a/src/main/java/com/adyen/model/payment/ThreeDS2RequestData.java +++ b/src/main/java/com/adyen/model/payment/ThreeDS2RequestData.java @@ -2,37 +2,26 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.payment.AcctInfo; -import com.adyen.model.payment.DeviceRenderOptions; -import com.adyen.model.payment.Phone; -import com.adyen.model.payment.SDKEphemPubKey; -import com.adyen.model.payment.ThreeDSRequestorAuthenticationInfo; -import com.adyen.model.payment.ThreeDSRequestorPriorAuthenticationInfo; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * ThreeDS2RequestData - */ +/** ThreeDS2RequestData */ @JsonPropertyOrder({ ThreeDS2RequestData.JSON_PROPERTY_ACCT_INFO, ThreeDS2RequestData.JSON_PROPERTY_ACCT_TYPE, @@ -74,16 +63,15 @@ ThreeDS2RequestData.JSON_PROPERTY_WHITE_LIST_STATUS, ThreeDS2RequestData.JSON_PROPERTY_WORK_PHONE }) - public class ThreeDS2RequestData { public static final String JSON_PROPERTY_ACCT_INFO = "acctInfo"; private AcctInfo acctInfo; /** - * Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + * Indicates the type of account. For example, for a multi-account card product. Length: 2 + * characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit */ public enum AcctTypeEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -95,7 +83,7 @@ public enum AcctTypeEnum { private String value; AcctTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -116,7 +104,11 @@ public static AcctTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AcctTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AcctTypeEnum.values())); + LOG.warning( + "AcctTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AcctTypeEnum.values())); return null; } } @@ -131,10 +123,11 @@ public static AcctTypeEnum fromValue(String value) { private String acquirerMerchantID; /** - * Indicates whether the cardholder shipping address and cardholder billing address are the same. Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address does not match billing address. + * Indicates whether the cardholder shipping address and cardholder billing address are the same. + * Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address + * does not match billing address. */ public enum AddrMatchEnum { - Y(String.valueOf("Y")), N(String.valueOf("N")); @@ -144,7 +137,7 @@ public enum AddrMatchEnum { private String value; AddrMatchEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -165,7 +158,11 @@ public static AddrMatchEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AddrMatchEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AddrMatchEnum.values())); + LOG.warning( + "AddrMatchEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AddrMatchEnum.values())); return null; } } @@ -178,10 +175,11 @@ public static AddrMatchEnum fromValue(String value) { private Boolean authenticationOnly; /** - * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` + * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: + * * `noPreference` * `requestNoChallenge` * `requestChallenge` * + * `requestChallengeAsMandate` */ public enum ChallengeIndicatorEnum { - NOPREFERENCE(String.valueOf("noPreference")), REQUESTNOCHALLENGE(String.valueOf("requestNoChallenge")), @@ -195,7 +193,7 @@ public enum ChallengeIndicatorEnum { private String value; ChallengeIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -216,7 +214,11 @@ public static ChallengeIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ChallengeIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChallengeIndicatorEnum.values())); + LOG.warning( + "ChallengeIndicatorEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ChallengeIndicatorEnum.values())); return null; } } @@ -252,7 +254,8 @@ public static ChallengeIndicatorEnum fromValue(String value) { public static final String JSON_PROPERTY_PAY_TOKEN_IND = "payTokenInd"; private Boolean payTokenInd; - public static final String JSON_PROPERTY_PAYMENT_AUTHENTICATION_USE_CASE = "paymentAuthenticationUseCase"; + public static final String JSON_PROPERTY_PAYMENT_AUTHENTICATION_USE_CASE = + "paymentAuthenticationUseCase"; private String paymentAuthenticationUseCase; public static final String JSON_PROPERTY_PURCHASE_INSTAL_DATA = "purchaseInstalData"; @@ -288,17 +291,21 @@ public static ChallengeIndicatorEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_COMP_IND = "threeDSCompInd"; private String threeDSCompInd; - public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_IND = "threeDSRequestorAuthenticationInd"; + public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_IND = + "threeDSRequestorAuthenticationInd"; private String threeDSRequestorAuthenticationInd; - public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_INFO = "threeDSRequestorAuthenticationInfo"; + public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_INFO = + "threeDSRequestorAuthenticationInfo"; private ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo; /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No + * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor + * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional + * risk analysis is already performed) * **06** — Data Only */ public enum ThreeDSRequestorChallengeIndEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -311,12 +318,13 @@ public enum ThreeDSRequestorChallengeIndEnum { _06(String.valueOf("06")); - private static final Logger LOG = Logger.getLogger(ThreeDSRequestorChallengeIndEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(ThreeDSRequestorChallengeIndEnum.class.getName()); private String value; ThreeDSRequestorChallengeIndEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -337,12 +345,17 @@ public static ThreeDSRequestorChallengeIndEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ThreeDSRequestorChallengeIndEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ThreeDSRequestorChallengeIndEnum.values())); + LOG.warning( + "ThreeDSRequestorChallengeIndEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ThreeDSRequestorChallengeIndEnum.values())); return null; } } - public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND = "threeDSRequestorChallengeInd"; + public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND = + "threeDSRequestorChallengeInd"; private ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd; public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_I_D = "threeDSRequestorID"; @@ -351,17 +364,19 @@ public static ThreeDSRequestorChallengeIndEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_NAME = "threeDSRequestorName"; private String threeDSRequestorName; - public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_PRIOR_AUTHENTICATION_INFO = "threeDSRequestorPriorAuthenticationInfo"; + public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_PRIOR_AUTHENTICATION_INFO = + "threeDSRequestorPriorAuthenticationInfo"; private ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo; public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_U_R_L = "threeDSRequestorURL"; private String threeDSRequestorURL; /** - * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * + * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** + * — Quasi-Cash Transaction * **28** — Prepaid Activation and Load */ public enum TransTypeEnum { - _01(String.valueOf("01")), _03(String.valueOf("03")), @@ -377,7 +392,7 @@ public enum TransTypeEnum { private String value; TransTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -398,7 +413,11 @@ public static TransTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TransTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TransTypeEnum.values())); + LOG.warning( + "TransTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TransTypeEnum.values())); return null; } } @@ -406,11 +425,8 @@ public static TransTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANS_TYPE = "transType"; private TransTypeEnum transType; - /** - * Identify the type of the transaction being authenticated. - */ + /** Identify the type of the transaction being authenticated. */ public enum TransactionTypeEnum { - GOODSORSERVICEPURCHASE(String.valueOf("goodsOrServicePurchase")), CHECKACCEPTANCE(String.valueOf("checkAcceptance")), @@ -426,7 +442,7 @@ public enum TransactionTypeEnum { private String value; TransactionTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -447,7 +463,11 @@ public static TransactionTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TransactionTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TransactionTypeEnum.values())); + LOG.warning( + "TransactionTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TransactionTypeEnum.values())); return null; } } @@ -461,13 +481,12 @@ public static TransactionTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_WORK_PHONE = "workPhone"; private Phone workPhone; - public ThreeDS2RequestData() { - } + public ThreeDS2RequestData() {} /** * acctInfo * - * @param acctInfo + * @param acctInfo * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData acctInfo(AcctInfo acctInfo) { @@ -477,7 +496,8 @@ public ThreeDS2RequestData acctInfo(AcctInfo acctInfo) { /** * Get acctInfo - * @return acctInfo + * + * @return acctInfo */ @JsonProperty(JSON_PROPERTY_ACCT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -488,7 +508,7 @@ public AcctInfo getAcctInfo() { /** * acctInfo * - * @param acctInfo + * @param acctInfo */ @JsonProperty(JSON_PROPERTY_ACCT_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -497,9 +517,12 @@ public void setAcctInfo(AcctInfo acctInfo) { } /** - * Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + * Indicates the type of account. For example, for a multi-account card product. Length: 2 + * characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit * - * @param acctType Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + * @param acctType Indicates the type of account. For example, for a multi-account card product. + * Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** + * — Debit * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData acctType(AcctTypeEnum acctType) { @@ -508,8 +531,12 @@ public ThreeDS2RequestData acctType(AcctTypeEnum acctType) { } /** - * Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit - * @return acctType Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + * Indicates the type of account. For example, for a multi-account card product. Length: 2 + * characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + * + * @return acctType Indicates the type of account. For example, for a multi-account card product. + * Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** + * — Debit */ @JsonProperty(JSON_PROPERTY_ACCT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -518,9 +545,12 @@ public AcctTypeEnum getAcctType() { } /** - * Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + * Indicates the type of account. For example, for a multi-account card product. Length: 2 + * characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit * - * @param acctType Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + * @param acctType Indicates the type of account. For example, for a multi-account card product. + * Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** + * — Debit */ @JsonProperty(JSON_PROPERTY_ACCT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -529,9 +559,15 @@ public void setAcctType(AcctTypeEnum acctType) { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will + * use in the authorisation. Use 123456 on the Test platform. * - * @param acquirerBIN Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * @param acquirerBIN Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you + * will use in the authorisation. Use 123456 on the Test platform. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData acquirerBIN(String acquirerBIN) { @@ -540,8 +576,15 @@ public ThreeDS2RequestData acquirerBIN(String acquirerBIN) { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. - * @return acquirerBIN Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will + * use in the authorisation. Use 123456 on the Test platform. + * + * @return acquirerBIN Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you + * will use in the authorisation. Use 123456 on the Test platform. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_B_I_N) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -550,9 +593,15 @@ public String getAcquirerBIN() { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will + * use in the authorisation. Use 123456 on the Test platform. * - * @param acquirerBIN Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * @param acquirerBIN Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you + * will use in the authorisation. Use 123456 on the Test platform. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_B_I_N) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -561,9 +610,16 @@ public void setAcquirerBIN(String acquirerBIN) { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string + * should match the value that you will use in the authorisation. Use 123456 on the Test platform. * - * @param acquirerMerchantID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * @param acquirerMerchantID Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string + * should match the value that you will use in the authorisation. Use 123456 on the Test + * platform. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData acquirerMerchantID(String acquirerMerchantID) { @@ -572,8 +628,16 @@ public ThreeDS2RequestData acquirerMerchantID(String acquirerMerchantID) { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. - * @return acquirerMerchantID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string + * should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * + * @return acquirerMerchantID Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string + * should match the value that you will use in the authorisation. Use 123456 on the Test + * platform. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_MERCHANT_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -582,9 +646,16 @@ public String getAcquirerMerchantID() { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string + * should match the value that you will use in the authorisation. Use 123456 on the Test platform. * - * @param acquirerMerchantID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + * @param acquirerMerchantID Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string + * should match the value that you will use in the authorisation. Use 123456 on the Test + * platform. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_MERCHANT_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -593,9 +664,13 @@ public void setAcquirerMerchantID(String acquirerMerchantID) { } /** - * Indicates whether the cardholder shipping address and cardholder billing address are the same. Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address does not match billing address. + * Indicates whether the cardholder shipping address and cardholder billing address are the same. + * Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address + * does not match billing address. * - * @param addrMatch Indicates whether the cardholder shipping address and cardholder billing address are the same. Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address does not match billing address. + * @param addrMatch Indicates whether the cardholder shipping address and cardholder billing + * address are the same. Allowed values: * **Y** — Shipping address matches billing address. * + * **N** — Shipping address does not match billing address. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData addrMatch(AddrMatchEnum addrMatch) { @@ -604,8 +679,13 @@ public ThreeDS2RequestData addrMatch(AddrMatchEnum addrMatch) { } /** - * Indicates whether the cardholder shipping address and cardholder billing address are the same. Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address does not match billing address. - * @return addrMatch Indicates whether the cardholder shipping address and cardholder billing address are the same. Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address does not match billing address. + * Indicates whether the cardholder shipping address and cardholder billing address are the same. + * Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address + * does not match billing address. + * + * @return addrMatch Indicates whether the cardholder shipping address and cardholder billing + * address are the same. Allowed values: * **Y** — Shipping address matches billing address. * + * **N** — Shipping address does not match billing address. */ @JsonProperty(JSON_PROPERTY_ADDR_MATCH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -614,9 +694,13 @@ public AddrMatchEnum getAddrMatch() { } /** - * Indicates whether the cardholder shipping address and cardholder billing address are the same. Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address does not match billing address. + * Indicates whether the cardholder shipping address and cardholder billing address are the same. + * Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address + * does not match billing address. * - * @param addrMatch Indicates whether the cardholder shipping address and cardholder billing address are the same. Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address does not match billing address. + * @param addrMatch Indicates whether the cardholder shipping address and cardholder billing + * address are the same. Allowed values: * **Y** — Shipping address matches billing address. * + * **N** — Shipping address does not match billing address. */ @JsonProperty(JSON_PROPERTY_ADDR_MATCH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -625,13 +709,15 @@ public void setAddrMatch(AddrMatchEnum addrMatch) { } /** - * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. + * If set to true, you will only perform the [3D Secure 2 + * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), + * and not the payment authorisation. * - * @param authenticationOnly If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. + * @param authenticationOnly If set to true, you will only perform the [3D Secure 2 + * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), + * and not the payment authorisation. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining - * - * @deprecated since Adyen Payment API v50 - * Use `threeDSAuthenticationOnly` instead. + * @deprecated since Adyen Payment API v50 Use `threeDSAuthenticationOnly` instead. */ @Deprecated // deprecated since Adyen Payment API v50: Use `threeDSAuthenticationOnly` instead. public ThreeDS2RequestData authenticationOnly(Boolean authenticationOnly) { @@ -640,8 +726,13 @@ public ThreeDS2RequestData authenticationOnly(Boolean authenticationOnly) { } /** - * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. - * @return authenticationOnly If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. + * If set to true, you will only perform the [3D Secure 2 + * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), + * and not the payment authorisation. + * + * @return authenticationOnly If set to true, you will only perform the [3D Secure 2 + * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), + * and not the payment authorisation. * @deprecated // deprecated since Adyen Payment API v50: Use `threeDSAuthenticationOnly` instead. */ @Deprecated // deprecated since Adyen Payment API v50: Use `threeDSAuthenticationOnly` instead. @@ -652,12 +743,14 @@ public Boolean getAuthenticationOnly() { } /** - * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. + * If set to true, you will only perform the [3D Secure 2 + * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), + * and not the payment authorisation. * - * @param authenticationOnly If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. - * - * @deprecated since Adyen Payment API v50 - * Use `threeDSAuthenticationOnly` instead. + * @param authenticationOnly If set to true, you will only perform the [3D Secure 2 + * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), + * and not the payment authorisation. + * @deprecated since Adyen Payment API v50 Use `threeDSAuthenticationOnly` instead. */ @Deprecated // deprecated since Adyen Payment API v50: Use `threeDSAuthenticationOnly` instead. @JsonProperty(JSON_PROPERTY_AUTHENTICATION_ONLY) @@ -667,13 +760,15 @@ public void setAuthenticationOnly(Boolean authenticationOnly) { } /** - * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` + * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: + * * `noPreference` * `requestNoChallenge` * `requestChallenge` * + * `requestChallengeAsMandate` * - * @param challengeIndicator Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` + * @param challengeIndicator Possibility to specify a preference for receiving a challenge from + * the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * + * `requestChallenge` * `requestChallengeAsMandate` * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining - * - * @deprecated since Adyen Payment API v68 - * Use `threeDSRequestorChallengeInd` instead. + * @deprecated since Adyen Payment API v68 Use `threeDSRequestorChallengeInd` instead. */ @Deprecated // deprecated since Adyen Payment API v68: Use `threeDSRequestorChallengeInd` instead. public ThreeDS2RequestData challengeIndicator(ChallengeIndicatorEnum challengeIndicator) { @@ -682,9 +777,15 @@ public ThreeDS2RequestData challengeIndicator(ChallengeIndicatorEnum challengeIn } /** - * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` - * @return challengeIndicator Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` - * @deprecated // deprecated since Adyen Payment API v68: Use `threeDSRequestorChallengeInd` instead. + * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: + * * `noPreference` * `requestNoChallenge` * `requestChallenge` * + * `requestChallengeAsMandate` + * + * @return challengeIndicator Possibility to specify a preference for receiving a challenge from + * the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * + * `requestChallenge` * `requestChallengeAsMandate` + * @deprecated // deprecated since Adyen Payment API v68: Use `threeDSRequestorChallengeInd` + * instead. */ @Deprecated // deprecated since Adyen Payment API v68: Use `threeDSRequestorChallengeInd` instead. @JsonProperty(JSON_PROPERTY_CHALLENGE_INDICATOR) @@ -694,12 +795,14 @@ public ChallengeIndicatorEnum getChallengeIndicator() { } /** - * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` - * - * @param challengeIndicator Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` + * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: + * * `noPreference` * `requestNoChallenge` * `requestChallenge` * + * `requestChallengeAsMandate` * - * @deprecated since Adyen Payment API v68 - * Use `threeDSRequestorChallengeInd` instead. + * @param challengeIndicator Possibility to specify a preference for receiving a challenge from + * the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * + * `requestChallenge` * `requestChallengeAsMandate` + * @deprecated since Adyen Payment API v68 Use `threeDSRequestorChallengeInd` instead. */ @Deprecated // deprecated since Adyen Payment API v68: Use `threeDSRequestorChallengeInd` instead. @JsonProperty(JSON_PROPERTY_CHALLENGE_INDICATOR) @@ -711,7 +814,8 @@ public void setChallengeIndicator(ChallengeIndicatorEnum challengeIndicator) { /** * The environment of the shopper. Allowed values: * `app` * `browser` * - * @param deviceChannel The environment of the shopper. Allowed values: * `app` * `browser` + * @param deviceChannel The environment of the shopper. Allowed values: * `app` * + * `browser` * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData deviceChannel(String deviceChannel) { @@ -721,7 +825,9 @@ public ThreeDS2RequestData deviceChannel(String deviceChannel) { /** * The environment of the shopper. Allowed values: * `app` * `browser` - * @return deviceChannel The environment of the shopper. Allowed values: * `app` * `browser` + * + * @return deviceChannel The environment of the shopper. Allowed values: * `app` * + * `browser` */ @JsonProperty(JSON_PROPERTY_DEVICE_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -732,7 +838,8 @@ public String getDeviceChannel() { /** * The environment of the shopper. Allowed values: * `app` * `browser` * - * @param deviceChannel The environment of the shopper. Allowed values: * `app` * `browser` + * @param deviceChannel The environment of the shopper. Allowed values: * `app` * + * `browser` */ @JsonProperty(JSON_PROPERTY_DEVICE_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -743,7 +850,7 @@ public void setDeviceChannel(String deviceChannel) { /** * deviceRenderOptions * - * @param deviceRenderOptions + * @param deviceRenderOptions * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData deviceRenderOptions(DeviceRenderOptions deviceRenderOptions) { @@ -753,7 +860,8 @@ public ThreeDS2RequestData deviceRenderOptions(DeviceRenderOptions deviceRenderO /** * Get deviceRenderOptions - * @return deviceRenderOptions + * + * @return deviceRenderOptions */ @JsonProperty(JSON_PROPERTY_DEVICE_RENDER_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -764,7 +872,7 @@ public DeviceRenderOptions getDeviceRenderOptions() { /** * deviceRenderOptions * - * @param deviceRenderOptions + * @param deviceRenderOptions */ @JsonProperty(JSON_PROPERTY_DEVICE_RENDER_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -775,7 +883,7 @@ public void setDeviceRenderOptions(DeviceRenderOptions deviceRenderOptions) { /** * homePhone * - * @param homePhone + * @param homePhone * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData homePhone(Phone homePhone) { @@ -785,7 +893,8 @@ public ThreeDS2RequestData homePhone(Phone homePhone) { /** * Get homePhone - * @return homePhone + * + * @return homePhone */ @JsonProperty(JSON_PROPERTY_HOME_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -796,7 +905,7 @@ public Phone getHomePhone() { /** * homePhone * - * @param homePhone + * @param homePhone */ @JsonProperty(JSON_PROPERTY_HOME_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -805,9 +914,17 @@ public void setHomePhone(Phone homePhone) { } /** - * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. + * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, + * mostly [authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The `mcc` is a four-digit code with which the previously given + * `acquirerMerchantID` is registered at the scheme. * - * @param mcc Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. + * @param mcc Required for merchants that have been enrolled for 3D Secure 2 by another party than + * Adyen, mostly [authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The `mcc` is a four-digit code with which the previously given + * `acquirerMerchantID` is registered at the scheme. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData mcc(String mcc) { @@ -816,8 +933,17 @@ public ThreeDS2RequestData mcc(String mcc) { } /** - * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. - * @return mcc Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. + * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, + * mostly [authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The `mcc` is a four-digit code with which the previously given + * `acquirerMerchantID` is registered at the scheme. + * + * @return mcc Required for merchants that have been enrolled for 3D Secure 2 by another party + * than Adyen, mostly [authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The `mcc` is a four-digit code with which the previously given + * `acquirerMerchantID` is registered at the scheme. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -826,9 +952,17 @@ public String getMcc() { } /** - * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. + * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, + * mostly [authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The `mcc` is a four-digit code with which the previously given + * `acquirerMerchantID` is registered at the scheme. * - * @param mcc Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. + * @param mcc Required for merchants that have been enrolled for 3D Secure 2 by another party than + * Adyen, mostly [authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The `mcc` is a four-digit code with which the previously given + * `acquirerMerchantID` is registered at the scheme. */ @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -837,9 +971,23 @@ public void setMcc(String mcc) { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. - * - * @param merchantName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchant name that the issuer presents to the shopper if they get a challenge. We recommend + * to use the same value that you will use in the authorization. Maximum length is 40 characters. + * > Optional for a [full 3D Secure 2 + * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use + * this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name + * already configured on your account. + * + * @param merchantName Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchant name that the issuer presents to the shopper if they get a challenge. We + * recommend to use the same value that you will use in the authorization. Maximum length is + * 40 characters. > Optional for a [full 3D Secure 2 + * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). + * Use this field if you are enrolled for 3D Secure 2 with us and want to override the + * merchant name already configured on your account. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData merchantName(String merchantName) { @@ -848,8 +996,23 @@ public ThreeDS2RequestData merchantName(String merchantName) { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. - * @return merchantName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchant name that the issuer presents to the shopper if they get a challenge. We recommend + * to use the same value that you will use in the authorization. Maximum length is 40 characters. + * > Optional for a [full 3D Secure 2 + * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use + * this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name + * already configured on your account. + * + * @return merchantName Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchant name that the issuer presents to the shopper if they get a challenge. We + * recommend to use the same value that you will use in the authorization. Maximum length is + * 40 characters. > Optional for a [full 3D Secure 2 + * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). + * Use this field if you are enrolled for 3D Secure 2 with us and want to override the + * merchant name already configured on your account. */ @JsonProperty(JSON_PROPERTY_MERCHANT_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -858,9 +1021,23 @@ public String getMerchantName() { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchant name that the issuer presents to the shopper if they get a challenge. We recommend + * to use the same value that you will use in the authorization. Maximum length is 40 characters. + * > Optional for a [full 3D Secure 2 + * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use + * this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name + * already configured on your account. * - * @param merchantName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. + * @param merchantName Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * The merchant name that the issuer presents to the shopper if they get a challenge. We + * recommend to use the same value that you will use in the authorization. Maximum length is + * 40 characters. > Optional for a [full 3D Secure 2 + * integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). + * Use this field if you are enrolled for 3D Secure 2 with us and want to override the + * merchant name already configured on your account. */ @JsonProperty(JSON_PROPERTY_MERCHANT_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -871,7 +1048,8 @@ public void setMerchantName(String merchantName) { /** * The `messageVersion` value indicating the 3D Secure 2 protocol version. * - * @param messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol version. + * @param messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol + * version. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData messageVersion(String messageVersion) { @@ -881,7 +1059,9 @@ public ThreeDS2RequestData messageVersion(String messageVersion) { /** * The `messageVersion` value indicating the 3D Secure 2 protocol version. - * @return messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol version. + * + * @return messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol + * version. */ @JsonProperty(JSON_PROPERTY_MESSAGE_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -892,7 +1072,8 @@ public String getMessageVersion() { /** * The `messageVersion` value indicating the 3D Secure 2 protocol version. * - * @param messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol version. + * @param messageVersion The `messageVersion` value indicating the 3D Secure 2 protocol + * version. */ @JsonProperty(JSON_PROPERTY_MESSAGE_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -903,7 +1084,7 @@ public void setMessageVersion(String messageVersion) { /** * mobilePhone * - * @param mobilePhone + * @param mobilePhone * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData mobilePhone(Phone mobilePhone) { @@ -913,7 +1094,8 @@ public ThreeDS2RequestData mobilePhone(Phone mobilePhone) { /** * Get mobilePhone - * @return mobilePhone + * + * @return mobilePhone */ @JsonProperty(JSON_PROPERTY_MOBILE_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -924,7 +1106,7 @@ public Phone getMobilePhone() { /** * mobilePhone * - * @param mobilePhone + * @param mobilePhone */ @JsonProperty(JSON_PROPERTY_MOBILE_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -933,9 +1115,13 @@ public void setMobilePhone(Phone mobilePhone) { } /** - * URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. + * URL to where the issuer should send the `CRes`. Required if you are not using + * components for `channel` **Web** or if you are using classic integration + * `deviceChannel` **browser**. * - * @param notificationURL URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. + * @param notificationURL URL to where the issuer should send the `CRes`. Required if + * you are not using components for `channel` **Web** or if you are using classic + * integration `deviceChannel` **browser**. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData notificationURL(String notificationURL) { @@ -944,8 +1130,13 @@ public ThreeDS2RequestData notificationURL(String notificationURL) { } /** - * URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. - * @return notificationURL URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. + * URL to where the issuer should send the `CRes`. Required if you are not using + * components for `channel` **Web** or if you are using classic integration + * `deviceChannel` **browser**. + * + * @return notificationURL URL to where the issuer should send the `CRes`. Required if + * you are not using components for `channel` **Web** or if you are using classic + * integration `deviceChannel` **browser**. */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -954,9 +1145,13 @@ public String getNotificationURL() { } /** - * URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. + * URL to where the issuer should send the `CRes`. Required if you are not using + * components for `channel` **Web** or if you are using classic integration + * `deviceChannel` **browser**. * - * @param notificationURL URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. + * @param notificationURL URL to where the issuer should send the `CRes`. Required if + * you are not using components for `channel` **Web** or if you are using classic + * integration `deviceChannel` **browser**. */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -965,9 +1160,11 @@ public void setNotificationURL(String notificationURL) { } /** - * Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. + * Value **true** indicates that the transaction was de-tokenised prior to being received by the + * ACS. * - * @param payTokenInd Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. + * @param payTokenInd Value **true** indicates that the transaction was de-tokenised prior to + * being received by the ACS. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData payTokenInd(Boolean payTokenInd) { @@ -976,8 +1173,11 @@ public ThreeDS2RequestData payTokenInd(Boolean payTokenInd) { } /** - * Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. - * @return payTokenInd Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. + * Value **true** indicates that the transaction was de-tokenised prior to being received by the + * ACS. + * + * @return payTokenInd Value **true** indicates that the transaction was de-tokenised prior to + * being received by the ACS. */ @JsonProperty(JSON_PROPERTY_PAY_TOKEN_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -986,9 +1186,11 @@ public Boolean getPayTokenInd() { } /** - * Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. + * Value **true** indicates that the transaction was de-tokenised prior to being received by the + * ACS. * - * @param payTokenInd Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. + * @param payTokenInd Value **true** indicates that the transaction was de-tokenised prior to + * being received by the ACS. */ @JsonProperty(JSON_PROPERTY_PAY_TOKEN_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -999,7 +1201,8 @@ public void setPayTokenInd(Boolean payTokenInd) { /** * Indicates the type of payment for which an authentication is requested (message extension) * - * @param paymentAuthenticationUseCase Indicates the type of payment for which an authentication is requested (message extension) + * @param paymentAuthenticationUseCase Indicates the type of payment for which an authentication + * is requested (message extension) * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData paymentAuthenticationUseCase(String paymentAuthenticationUseCase) { @@ -1009,7 +1212,9 @@ public ThreeDS2RequestData paymentAuthenticationUseCase(String paymentAuthentica /** * Indicates the type of payment for which an authentication is requested (message extension) - * @return paymentAuthenticationUseCase Indicates the type of payment for which an authentication is requested (message extension) + * + * @return paymentAuthenticationUseCase Indicates the type of payment for which an authentication + * is requested (message extension) */ @JsonProperty(JSON_PROPERTY_PAYMENT_AUTHENTICATION_USE_CASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1020,7 +1225,8 @@ public String getPaymentAuthenticationUseCase() { /** * Indicates the type of payment for which an authentication is requested (message extension) * - * @param paymentAuthenticationUseCase Indicates the type of payment for which an authentication is requested (message extension) + * @param paymentAuthenticationUseCase Indicates the type of payment for which an authentication + * is requested (message extension) */ @JsonProperty(JSON_PROPERTY_PAYMENT_AUTHENTICATION_USE_CASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1029,9 +1235,11 @@ public void setPaymentAuthenticationUseCase(String paymentAuthenticationUseCase) } /** - * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. + * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 + * characters. * - * @param purchaseInstalData Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. + * @param purchaseInstalData Indicates the maximum number of authorisations permitted for + * instalment payments. Length: 1–3 characters. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData purchaseInstalData(String purchaseInstalData) { @@ -1040,8 +1248,11 @@ public ThreeDS2RequestData purchaseInstalData(String purchaseInstalData) { } /** - * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. - * @return purchaseInstalData Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. + * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 + * characters. + * + * @return purchaseInstalData Indicates the maximum number of authorisations permitted for + * instalment payments. Length: 1–3 characters. */ @JsonProperty(JSON_PROPERTY_PURCHASE_INSTAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1050,9 +1261,11 @@ public String getPurchaseInstalData() { } /** - * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. + * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 + * characters. * - * @param purchaseInstalData Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. + * @param purchaseInstalData Indicates the maximum number of authorisations permitted for + * instalment payments. Length: 1–3 characters. */ @JsonProperty(JSON_PROPERTY_PURCHASE_INSTAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1063,7 +1276,8 @@ public void setPurchaseInstalData(String purchaseInstalData) { /** * Date after which no further authorisations shall be performed. Format: YYYYMMDD * - * @param recurringExpiry Date after which no further authorisations shall be performed. Format: YYYYMMDD + * @param recurringExpiry Date after which no further authorisations shall be performed. Format: + * YYYYMMDD * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData recurringExpiry(String recurringExpiry) { @@ -1073,7 +1287,9 @@ public ThreeDS2RequestData recurringExpiry(String recurringExpiry) { /** * Date after which no further authorisations shall be performed. Format: YYYYMMDD - * @return recurringExpiry Date after which no further authorisations shall be performed. Format: YYYYMMDD + * + * @return recurringExpiry Date after which no further authorisations shall be performed. Format: + * YYYYMMDD */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1084,7 +1300,8 @@ public String getRecurringExpiry() { /** * Date after which no further authorisations shall be performed. Format: YYYYMMDD * - * @param recurringExpiry Date after which no further authorisations shall be performed. Format: YYYYMMDD + * @param recurringExpiry Date after which no further authorisations shall be performed. Format: + * YYYYMMDD */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1095,7 +1312,8 @@ public void setRecurringExpiry(String recurringExpiry) { /** * Indicates the minimum number of days between authorisations. Maximum length: 4 characters. * - * @param recurringFrequency Indicates the minimum number of days between authorisations. Maximum length: 4 characters. + * @param recurringFrequency Indicates the minimum number of days between authorisations. Maximum + * length: 4 characters. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData recurringFrequency(String recurringFrequency) { @@ -1105,7 +1323,9 @@ public ThreeDS2RequestData recurringFrequency(String recurringFrequency) { /** * Indicates the minimum number of days between authorisations. Maximum length: 4 characters. - * @return recurringFrequency Indicates the minimum number of days between authorisations. Maximum length: 4 characters. + * + * @return recurringFrequency Indicates the minimum number of days between authorisations. Maximum + * length: 4 characters. */ @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1116,7 +1336,8 @@ public String getRecurringFrequency() { /** * Indicates the minimum number of days between authorisations. Maximum length: 4 characters. * - * @param recurringFrequency Indicates the minimum number of days between authorisations. Maximum length: 4 characters. + * @param recurringFrequency Indicates the minimum number of days between authorisations. Maximum + * length: 4 characters. */ @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1125,9 +1346,11 @@ public void setRecurringFrequency(String recurringFrequency) { } /** - * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for + * `deviceChannel` set to **app**. * - * @param sdkAppID The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + * @param sdkAppID The `sdkAppID` value as received from the 3D Secure 2 SDK. Required + * for `deviceChannel` set to **app**. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData sdkAppID(String sdkAppID) { @@ -1136,8 +1359,11 @@ public ThreeDS2RequestData sdkAppID(String sdkAppID) { } /** - * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. - * @return sdkAppID The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for + * `deviceChannel` set to **app**. + * + * @return sdkAppID The `sdkAppID` value as received from the 3D Secure 2 SDK. Required + * for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_APP_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1146,9 +1372,11 @@ public String getSdkAppID() { } /** - * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for + * `deviceChannel` set to **app**. * - * @param sdkAppID The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + * @param sdkAppID The `sdkAppID` value as received from the 3D Secure 2 SDK. Required + * for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_APP_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1157,9 +1385,11 @@ public void setSdkAppID(String sdkAppID) { } /** - * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for + * `deviceChannel` set to **app**. * - * @param sdkEncData The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + * @param sdkEncData The `sdkEncData` value as received from the 3D Secure 2 SDK. + * Required for `deviceChannel` set to **app**. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData sdkEncData(String sdkEncData) { @@ -1168,8 +1398,11 @@ public ThreeDS2RequestData sdkEncData(String sdkEncData) { } /** - * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. - * @return sdkEncData The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for + * `deviceChannel` set to **app**. + * + * @return sdkEncData The `sdkEncData` value as received from the 3D Secure 2 SDK. + * Required for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_ENC_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1178,9 +1411,11 @@ public String getSdkEncData() { } /** - * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for + * `deviceChannel` set to **app**. * - * @param sdkEncData The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + * @param sdkEncData The `sdkEncData` value as received from the 3D Secure 2 SDK. + * Required for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_ENC_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1191,7 +1426,7 @@ public void setSdkEncData(String sdkEncData) { /** * sdkEphemPubKey * - * @param sdkEphemPubKey + * @param sdkEphemPubKey * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData sdkEphemPubKey(SDKEphemPubKey sdkEphemPubKey) { @@ -1201,7 +1436,8 @@ public ThreeDS2RequestData sdkEphemPubKey(SDKEphemPubKey sdkEphemPubKey) { /** * Get sdkEphemPubKey - * @return sdkEphemPubKey + * + * @return sdkEphemPubKey */ @JsonProperty(JSON_PROPERTY_SDK_EPHEM_PUB_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1212,7 +1448,7 @@ public SDKEphemPubKey getSdkEphemPubKey() { /** * sdkEphemPubKey * - * @param sdkEphemPubKey + * @param sdkEphemPubKey */ @JsonProperty(JSON_PROPERTY_SDK_EPHEM_PUB_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1221,9 +1457,12 @@ public void setSdkEphemPubKey(SDKEphemPubKey sdkEphemPubKey) { } /** - * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. + * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and + * only for `deviceChannel` set to **app**. Defaults to **60** minutes. * - * @param sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. + * @param sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication + * process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** + * minutes. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData sdkMaxTimeout(Integer sdkMaxTimeout) { @@ -1232,8 +1471,12 @@ public ThreeDS2RequestData sdkMaxTimeout(Integer sdkMaxTimeout) { } /** - * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. - * @return sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. + * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and + * only for `deviceChannel` set to **app**. Defaults to **60** minutes. + * + * @return sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication + * process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** + * minutes. */ @JsonProperty(JSON_PROPERTY_SDK_MAX_TIMEOUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1242,9 +1485,12 @@ public Integer getSdkMaxTimeout() { } /** - * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. + * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and + * only for `deviceChannel` set to **app**. Defaults to **60** minutes. * - * @param sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. + * @param sdkMaxTimeout The maximum amount of time in minutes for the 3D Secure 2 authentication + * process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** + * minutes. */ @JsonProperty(JSON_PROPERTY_SDK_MAX_TIMEOUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1253,9 +1499,11 @@ public void setSdkMaxTimeout(Integer sdkMaxTimeout) { } /** - * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for + * `deviceChannel` set to **app**. * - * @param sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + * @param sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D + * Secure 2 SDK. Only for `deviceChannel` set to **app**. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData sdkReferenceNumber(String sdkReferenceNumber) { @@ -1264,8 +1512,11 @@ public ThreeDS2RequestData sdkReferenceNumber(String sdkReferenceNumber) { } /** - * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. - * @return sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for + * `deviceChannel` set to **app**. + * + * @return sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D + * Secure 2 SDK. Only for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1274,9 +1525,11 @@ public String getSdkReferenceNumber() { } /** - * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for + * `deviceChannel` set to **app**. * - * @param sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + * @param sdkReferenceNumber The `sdkReferenceNumber` value as received from the 3D + * Secure 2 SDK. Only for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1285,9 +1538,11 @@ public void setSdkReferenceNumber(String sdkReferenceNumber) { } /** - * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for + * `deviceChannel` set to **app**. * - * @param sdkTransID The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + * @param sdkTransID The `sdkTransID` value as received from the 3D Secure 2 SDK. Only + * for `deviceChannel` set to **app**. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData sdkTransID(String sdkTransID) { @@ -1296,8 +1551,11 @@ public ThreeDS2RequestData sdkTransID(String sdkTransID) { } /** - * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. - * @return sdkTransID The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for + * `deviceChannel` set to **app**. + * + * @return sdkTransID The `sdkTransID` value as received from the 3D Secure 2 SDK. Only + * for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1306,9 +1564,11 @@ public String getSdkTransID() { } /** - * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for + * `deviceChannel` set to **app**. * - * @param sdkTransID The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + * @param sdkTransID The `sdkTransID` value as received from the 3D Secure 2 SDK. Only + * for `deviceChannel` set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1317,9 +1577,10 @@ public void setSdkTransID(String sdkTransID) { } /** - * Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. + * Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. * - * @param sdkVersion Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. + * @param sdkVersion Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set + * to **app**. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData sdkVersion(String sdkVersion) { @@ -1328,8 +1589,10 @@ public ThreeDS2RequestData sdkVersion(String sdkVersion) { } /** - * Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. - * @return sdkVersion Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. + * Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. + * + * @return sdkVersion Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` + * set to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1338,9 +1601,10 @@ public String getSdkVersion() { } /** - * Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. + * Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. * - * @param sdkVersion Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. + * @param sdkVersion Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set + * to **app**. */ @JsonProperty(JSON_PROPERTY_SDK_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1361,6 +1625,7 @@ public ThreeDS2RequestData threeDSCompInd(String threeDSCompInd) { /** * Completion indicator for the device fingerprinting. + * * @return threeDSCompInd Completion indicator for the device fingerprinting. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_COMP_IND) @@ -1386,13 +1651,15 @@ public void setThreeDSCompInd(String threeDSCompInd) { * @param threeDSRequestorAuthenticationInd Indicates the type of Authentication request. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ - public ThreeDS2RequestData threeDSRequestorAuthenticationInd(String threeDSRequestorAuthenticationInd) { + public ThreeDS2RequestData threeDSRequestorAuthenticationInd( + String threeDSRequestorAuthenticationInd) { this.threeDSRequestorAuthenticationInd = threeDSRequestorAuthenticationInd; return this; } /** * Indicates the type of Authentication request. + * * @return threeDSRequestorAuthenticationInd Indicates the type of Authentication request. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_IND) @@ -1415,17 +1682,19 @@ public void setThreeDSRequestorAuthenticationInd(String threeDSRequestorAuthenti /** * threeDSRequestorAuthenticationInfo * - * @param threeDSRequestorAuthenticationInfo + * @param threeDSRequestorAuthenticationInfo * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ - public ThreeDS2RequestData threeDSRequestorAuthenticationInfo(ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo) { + public ThreeDS2RequestData threeDSRequestorAuthenticationInfo( + ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo) { this.threeDSRequestorAuthenticationInfo = threeDSRequestorAuthenticationInfo; return this; } /** * Get threeDSRequestorAuthenticationInfo - * @return threeDSRequestorAuthenticationInfo + * + * @return threeDSRequestorAuthenticationInfo */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1436,28 +1705,45 @@ public ThreeDSRequestorAuthenticationInfo getThreeDSRequestorAuthenticationInfo( /** * threeDSRequestorAuthenticationInfo * - * @param threeDSRequestorAuthenticationInfo + * @param threeDSRequestorAuthenticationInfo */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_AUTHENTICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setThreeDSRequestorAuthenticationInfo(ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo) { + public void setThreeDSRequestorAuthenticationInfo( + ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo) { this.threeDSRequestorAuthenticationInfo = threeDSRequestorAuthenticationInfo; } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No + * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor + * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional + * risk analysis is already performed) * **06** — Data Only * - * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this + * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * + * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested + * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * + * **06** — Data Only * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ - public ThreeDS2RequestData threeDSRequestorChallengeInd(ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { + public ThreeDS2RequestData threeDSRequestorChallengeInd( + ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { this.threeDSRequestorChallengeInd = threeDSRequestorChallengeInd; return this; } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only - * @return threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No + * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor + * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional + * risk analysis is already performed) * **06** — Data Only + * + * @return threeDSRequestorChallengeInd Indicates whether a challenge is requested for this + * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * + * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested + * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * + * **06** — Data Only */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1466,20 +1752,34 @@ public ThreeDSRequestorChallengeIndEnum getThreeDSRequestorChallengeInd() { } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No + * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor + * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional + * risk analysis is already performed) * **06** — Data Only * - * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this + * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * + * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested + * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * + * **06** — Data Only */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setThreeDSRequestorChallengeInd(ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { + public void setThreeDSRequestorChallengeInd( + ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { this.threeDSRequestorChallengeInd = threeDSRequestorChallengeInd; } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol + * for 3D Secure 2. * - * @param threeDSRequestorID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. + * @param threeDSRequestorID Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you + * enrol for 3D Secure 2. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData threeDSRequestorID(String threeDSRequestorID) { @@ -1488,8 +1788,15 @@ public ThreeDS2RequestData threeDSRequestorID(String threeDSRequestorID) { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. - * @return threeDSRequestorID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol + * for 3D Secure 2. + * + * @return threeDSRequestorID Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you + * enrol for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1498,9 +1805,15 @@ public String getThreeDSRequestorID() { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol + * for 3D Secure 2. * - * @param threeDSRequestorID Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. + * @param threeDSRequestorID Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you + * enrol for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1509,9 +1822,15 @@ public void setThreeDSRequestorID(String threeDSRequestorID) { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for + * 3D Secure 2. * - * @param threeDSRequestorName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. + * @param threeDSRequestorName Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol + * for 3D Secure 2. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData threeDSRequestorName(String threeDSRequestorName) { @@ -1520,8 +1839,15 @@ public ThreeDS2RequestData threeDSRequestorName(String threeDSRequestorName) { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. - * @return threeDSRequestorName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for + * 3D Secure 2. + * + * @return threeDSRequestorName Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol + * for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1530,9 +1856,15 @@ public String getThreeDSRequestorName() { } /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. + * Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for + * 3D Secure 2. * - * @param threeDSRequestorName Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. + * @param threeDSRequestorName Required for [authentication-only + * integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) + * for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol + * for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1543,17 +1875,19 @@ public void setThreeDSRequestorName(String threeDSRequestorName) { /** * threeDSRequestorPriorAuthenticationInfo * - * @param threeDSRequestorPriorAuthenticationInfo + * @param threeDSRequestorPriorAuthenticationInfo * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ - public ThreeDS2RequestData threeDSRequestorPriorAuthenticationInfo(ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo) { + public ThreeDS2RequestData threeDSRequestorPriorAuthenticationInfo( + ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo) { this.threeDSRequestorPriorAuthenticationInfo = threeDSRequestorPriorAuthenticationInfo; return this; } /** * Get threeDSRequestorPriorAuthenticationInfo - * @return threeDSRequestorPriorAuthenticationInfo + * + * @return threeDSRequestorPriorAuthenticationInfo */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_PRIOR_AUTHENTICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1564,18 +1898,21 @@ public ThreeDSRequestorPriorAuthenticationInfo getThreeDSRequestorPriorAuthentic /** * threeDSRequestorPriorAuthenticationInfo * - * @param threeDSRequestorPriorAuthenticationInfo + * @param threeDSRequestorPriorAuthenticationInfo */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_PRIOR_AUTHENTICATION_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setThreeDSRequestorPriorAuthenticationInfo(ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo) { + public void setThreeDSRequestorPriorAuthenticationInfo( + ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo) { this.threeDSRequestorPriorAuthenticationInfo = threeDSRequestorPriorAuthenticationInfo; } /** - * URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. + * URL of the (customer service) website that will be shown to the shopper in case of technical + * errors during the 3D Secure 2 process. * - * @param threeDSRequestorURL URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. + * @param threeDSRequestorURL URL of the (customer service) website that will be shown to the + * shopper in case of technical errors during the 3D Secure 2 process. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData threeDSRequestorURL(String threeDSRequestorURL) { @@ -1584,8 +1921,11 @@ public ThreeDS2RequestData threeDSRequestorURL(String threeDSRequestorURL) { } /** - * URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. - * @return threeDSRequestorURL URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. + * URL of the (customer service) website that will be shown to the shopper in case of technical + * errors during the 3D Secure 2 process. + * + * @return threeDSRequestorURL URL of the (customer service) website that will be shown to the + * shopper in case of technical errors during the 3D Secure 2 process. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1594,9 +1934,11 @@ public String getThreeDSRequestorURL() { } /** - * URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. + * URL of the (customer service) website that will be shown to the shopper in case of technical + * errors during the 3D Secure 2 process. * - * @param threeDSRequestorURL URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. + * @param threeDSRequestorURL URL of the (customer service) website that will be shown to the + * shopper in case of technical errors during the 3D Secure 2 process. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_U_R_L) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1605,9 +1947,13 @@ public void setThreeDSRequestorURL(String threeDSRequestorURL) { } /** - * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * + * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** + * — Quasi-Cash Transaction * **28** — Prepaid Activation and Load * - * @param transType Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * @param transType Identifies the type of transaction being authenticated. Length: 2 characters. + * Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — + * Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData transType(TransTypeEnum transType) { @@ -1616,8 +1962,13 @@ public ThreeDS2RequestData transType(TransTypeEnum transType) { } /** - * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load - * @return transType Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * + * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** + * — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * + * @return transType Identifies the type of transaction being authenticated. Length: 2 characters. + * Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — + * Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load */ @JsonProperty(JSON_PROPERTY_TRANS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1626,9 +1977,13 @@ public TransTypeEnum getTransType() { } /** - * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * + * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** + * — Quasi-Cash Transaction * **28** — Prepaid Activation and Load * - * @param transType Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + * @param transType Identifies the type of transaction being authenticated. Length: 2 characters. + * Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — + * Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load */ @JsonProperty(JSON_PROPERTY_TRANS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1649,6 +2004,7 @@ public ThreeDS2RequestData transactionType(TransactionTypeEnum transactionType) /** * Identify the type of the transaction being authenticated. + * * @return transactionType Identify the type of the transaction being authenticated. */ @JsonProperty(JSON_PROPERTY_TRANSACTION_TYPE) @@ -1669,9 +2025,11 @@ public void setTransactionType(TransactionTypeEnum transactionType) { } /** - * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. + * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only + * applicable for 3D Secure 2 protocol version 2.2.0. * - * @param whiteListStatus The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. + * @param whiteListStatus The `whiteListStatus` value returned from a previous 3D Secure + * 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData whiteListStatus(String whiteListStatus) { @@ -1680,8 +2038,11 @@ public ThreeDS2RequestData whiteListStatus(String whiteListStatus) { } /** - * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. - * @return whiteListStatus The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. + * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only + * applicable for 3D Secure 2 protocol version 2.2.0. + * + * @return whiteListStatus The `whiteListStatus` value returned from a previous 3D + * Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. */ @JsonProperty(JSON_PROPERTY_WHITE_LIST_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1690,9 +2051,11 @@ public String getWhiteListStatus() { } /** - * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. + * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only + * applicable for 3D Secure 2 protocol version 2.2.0. * - * @param whiteListStatus The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. + * @param whiteListStatus The `whiteListStatus` value returned from a previous 3D Secure + * 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. */ @JsonProperty(JSON_PROPERTY_WHITE_LIST_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1703,7 +2066,7 @@ public void setWhiteListStatus(String whiteListStatus) { /** * workPhone * - * @param workPhone + * @param workPhone * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining */ public ThreeDS2RequestData workPhone(Phone workPhone) { @@ -1713,7 +2076,8 @@ public ThreeDS2RequestData workPhone(Phone workPhone) { /** * Get workPhone - * @return workPhone + * + * @return workPhone */ @JsonProperty(JSON_PROPERTY_WORK_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1724,7 +2088,7 @@ public Phone getWorkPhone() { /** * workPhone * - * @param workPhone + * @param workPhone */ @JsonProperty(JSON_PROPERTY_WORK_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1732,9 +2096,7 @@ public void setWorkPhone(Phone workPhone) { this.workPhone = workPhone; } - /** - * Return true if this ThreeDS2RequestData object is equal to o. - */ + /** Return true if this ThreeDS2RequestData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -1744,50 +2106,97 @@ public boolean equals(Object o) { return false; } ThreeDS2RequestData threeDS2RequestData = (ThreeDS2RequestData) o; - return Objects.equals(this.acctInfo, threeDS2RequestData.acctInfo) && - Objects.equals(this.acctType, threeDS2RequestData.acctType) && - Objects.equals(this.acquirerBIN, threeDS2RequestData.acquirerBIN) && - Objects.equals(this.acquirerMerchantID, threeDS2RequestData.acquirerMerchantID) && - Objects.equals(this.addrMatch, threeDS2RequestData.addrMatch) && - Objects.equals(this.authenticationOnly, threeDS2RequestData.authenticationOnly) && - Objects.equals(this.challengeIndicator, threeDS2RequestData.challengeIndicator) && - Objects.equals(this.deviceChannel, threeDS2RequestData.deviceChannel) && - Objects.equals(this.deviceRenderOptions, threeDS2RequestData.deviceRenderOptions) && - Objects.equals(this.homePhone, threeDS2RequestData.homePhone) && - Objects.equals(this.mcc, threeDS2RequestData.mcc) && - Objects.equals(this.merchantName, threeDS2RequestData.merchantName) && - Objects.equals(this.messageVersion, threeDS2RequestData.messageVersion) && - Objects.equals(this.mobilePhone, threeDS2RequestData.mobilePhone) && - Objects.equals(this.notificationURL, threeDS2RequestData.notificationURL) && - Objects.equals(this.payTokenInd, threeDS2RequestData.payTokenInd) && - Objects.equals(this.paymentAuthenticationUseCase, threeDS2RequestData.paymentAuthenticationUseCase) && - Objects.equals(this.purchaseInstalData, threeDS2RequestData.purchaseInstalData) && - Objects.equals(this.recurringExpiry, threeDS2RequestData.recurringExpiry) && - Objects.equals(this.recurringFrequency, threeDS2RequestData.recurringFrequency) && - Objects.equals(this.sdkAppID, threeDS2RequestData.sdkAppID) && - Objects.equals(this.sdkEncData, threeDS2RequestData.sdkEncData) && - Objects.equals(this.sdkEphemPubKey, threeDS2RequestData.sdkEphemPubKey) && - Objects.equals(this.sdkMaxTimeout, threeDS2RequestData.sdkMaxTimeout) && - Objects.equals(this.sdkReferenceNumber, threeDS2RequestData.sdkReferenceNumber) && - Objects.equals(this.sdkTransID, threeDS2RequestData.sdkTransID) && - Objects.equals(this.sdkVersion, threeDS2RequestData.sdkVersion) && - Objects.equals(this.threeDSCompInd, threeDS2RequestData.threeDSCompInd) && - Objects.equals(this.threeDSRequestorAuthenticationInd, threeDS2RequestData.threeDSRequestorAuthenticationInd) && - Objects.equals(this.threeDSRequestorAuthenticationInfo, threeDS2RequestData.threeDSRequestorAuthenticationInfo) && - Objects.equals(this.threeDSRequestorChallengeInd, threeDS2RequestData.threeDSRequestorChallengeInd) && - Objects.equals(this.threeDSRequestorID, threeDS2RequestData.threeDSRequestorID) && - Objects.equals(this.threeDSRequestorName, threeDS2RequestData.threeDSRequestorName) && - Objects.equals(this.threeDSRequestorPriorAuthenticationInfo, threeDS2RequestData.threeDSRequestorPriorAuthenticationInfo) && - Objects.equals(this.threeDSRequestorURL, threeDS2RequestData.threeDSRequestorURL) && - Objects.equals(this.transType, threeDS2RequestData.transType) && - Objects.equals(this.transactionType, threeDS2RequestData.transactionType) && - Objects.equals(this.whiteListStatus, threeDS2RequestData.whiteListStatus) && - Objects.equals(this.workPhone, threeDS2RequestData.workPhone); + return Objects.equals(this.acctInfo, threeDS2RequestData.acctInfo) + && Objects.equals(this.acctType, threeDS2RequestData.acctType) + && Objects.equals(this.acquirerBIN, threeDS2RequestData.acquirerBIN) + && Objects.equals(this.acquirerMerchantID, threeDS2RequestData.acquirerMerchantID) + && Objects.equals(this.addrMatch, threeDS2RequestData.addrMatch) + && Objects.equals(this.authenticationOnly, threeDS2RequestData.authenticationOnly) + && Objects.equals(this.challengeIndicator, threeDS2RequestData.challengeIndicator) + && Objects.equals(this.deviceChannel, threeDS2RequestData.deviceChannel) + && Objects.equals(this.deviceRenderOptions, threeDS2RequestData.deviceRenderOptions) + && Objects.equals(this.homePhone, threeDS2RequestData.homePhone) + && Objects.equals(this.mcc, threeDS2RequestData.mcc) + && Objects.equals(this.merchantName, threeDS2RequestData.merchantName) + && Objects.equals(this.messageVersion, threeDS2RequestData.messageVersion) + && Objects.equals(this.mobilePhone, threeDS2RequestData.mobilePhone) + && Objects.equals(this.notificationURL, threeDS2RequestData.notificationURL) + && Objects.equals(this.payTokenInd, threeDS2RequestData.payTokenInd) + && Objects.equals( + this.paymentAuthenticationUseCase, threeDS2RequestData.paymentAuthenticationUseCase) + && Objects.equals(this.purchaseInstalData, threeDS2RequestData.purchaseInstalData) + && Objects.equals(this.recurringExpiry, threeDS2RequestData.recurringExpiry) + && Objects.equals(this.recurringFrequency, threeDS2RequestData.recurringFrequency) + && Objects.equals(this.sdkAppID, threeDS2RequestData.sdkAppID) + && Objects.equals(this.sdkEncData, threeDS2RequestData.sdkEncData) + && Objects.equals(this.sdkEphemPubKey, threeDS2RequestData.sdkEphemPubKey) + && Objects.equals(this.sdkMaxTimeout, threeDS2RequestData.sdkMaxTimeout) + && Objects.equals(this.sdkReferenceNumber, threeDS2RequestData.sdkReferenceNumber) + && Objects.equals(this.sdkTransID, threeDS2RequestData.sdkTransID) + && Objects.equals(this.sdkVersion, threeDS2RequestData.sdkVersion) + && Objects.equals(this.threeDSCompInd, threeDS2RequestData.threeDSCompInd) + && Objects.equals( + this.threeDSRequestorAuthenticationInd, + threeDS2RequestData.threeDSRequestorAuthenticationInd) + && Objects.equals( + this.threeDSRequestorAuthenticationInfo, + threeDS2RequestData.threeDSRequestorAuthenticationInfo) + && Objects.equals( + this.threeDSRequestorChallengeInd, threeDS2RequestData.threeDSRequestorChallengeInd) + && Objects.equals(this.threeDSRequestorID, threeDS2RequestData.threeDSRequestorID) + && Objects.equals(this.threeDSRequestorName, threeDS2RequestData.threeDSRequestorName) + && Objects.equals( + this.threeDSRequestorPriorAuthenticationInfo, + threeDS2RequestData.threeDSRequestorPriorAuthenticationInfo) + && Objects.equals(this.threeDSRequestorURL, threeDS2RequestData.threeDSRequestorURL) + && Objects.equals(this.transType, threeDS2RequestData.transType) + && Objects.equals(this.transactionType, threeDS2RequestData.transactionType) + && Objects.equals(this.whiteListStatus, threeDS2RequestData.whiteListStatus) + && Objects.equals(this.workPhone, threeDS2RequestData.workPhone); } @Override public int hashCode() { - return Objects.hash(acctInfo, acctType, acquirerBIN, acquirerMerchantID, addrMatch, authenticationOnly, challengeIndicator, deviceChannel, deviceRenderOptions, homePhone, mcc, merchantName, messageVersion, mobilePhone, notificationURL, payTokenInd, paymentAuthenticationUseCase, purchaseInstalData, recurringExpiry, recurringFrequency, sdkAppID, sdkEncData, sdkEphemPubKey, sdkMaxTimeout, sdkReferenceNumber, sdkTransID, sdkVersion, threeDSCompInd, threeDSRequestorAuthenticationInd, threeDSRequestorAuthenticationInfo, threeDSRequestorChallengeInd, threeDSRequestorID, threeDSRequestorName, threeDSRequestorPriorAuthenticationInfo, threeDSRequestorURL, transType, transactionType, whiteListStatus, workPhone); + return Objects.hash( + acctInfo, + acctType, + acquirerBIN, + acquirerMerchantID, + addrMatch, + authenticationOnly, + challengeIndicator, + deviceChannel, + deviceRenderOptions, + homePhone, + mcc, + merchantName, + messageVersion, + mobilePhone, + notificationURL, + payTokenInd, + paymentAuthenticationUseCase, + purchaseInstalData, + recurringExpiry, + recurringFrequency, + sdkAppID, + sdkEncData, + sdkEphemPubKey, + sdkMaxTimeout, + sdkReferenceNumber, + sdkTransID, + sdkVersion, + threeDSCompInd, + threeDSRequestorAuthenticationInd, + threeDSRequestorAuthenticationInfo, + threeDSRequestorChallengeInd, + threeDSRequestorID, + threeDSRequestorName, + threeDSRequestorPriorAuthenticationInfo, + threeDSRequestorURL, + transType, + transactionType, + whiteListStatus, + workPhone); } @Override @@ -1802,7 +2211,9 @@ public String toString() { sb.append(" authenticationOnly: ").append(toIndentedString(authenticationOnly)).append("\n"); sb.append(" challengeIndicator: ").append(toIndentedString(challengeIndicator)).append("\n"); sb.append(" deviceChannel: ").append(toIndentedString(deviceChannel)).append("\n"); - sb.append(" deviceRenderOptions: ").append(toIndentedString(deviceRenderOptions)).append("\n"); + sb.append(" deviceRenderOptions: ") + .append(toIndentedString(deviceRenderOptions)) + .append("\n"); sb.append(" homePhone: ").append(toIndentedString(homePhone)).append("\n"); sb.append(" mcc: ").append(toIndentedString(mcc)).append("\n"); sb.append(" merchantName: ").append(toIndentedString(merchantName)).append("\n"); @@ -1810,7 +2221,9 @@ public String toString() { sb.append(" mobilePhone: ").append(toIndentedString(mobilePhone)).append("\n"); sb.append(" notificationURL: ").append(toIndentedString(notificationURL)).append("\n"); sb.append(" payTokenInd: ").append(toIndentedString(payTokenInd)).append("\n"); - sb.append(" paymentAuthenticationUseCase: ").append(toIndentedString(paymentAuthenticationUseCase)).append("\n"); + sb.append(" paymentAuthenticationUseCase: ") + .append(toIndentedString(paymentAuthenticationUseCase)) + .append("\n"); sb.append(" purchaseInstalData: ").append(toIndentedString(purchaseInstalData)).append("\n"); sb.append(" recurringExpiry: ").append(toIndentedString(recurringExpiry)).append("\n"); sb.append(" recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n"); @@ -1822,13 +2235,25 @@ public String toString() { sb.append(" sdkTransID: ").append(toIndentedString(sdkTransID)).append("\n"); sb.append(" sdkVersion: ").append(toIndentedString(sdkVersion)).append("\n"); sb.append(" threeDSCompInd: ").append(toIndentedString(threeDSCompInd)).append("\n"); - sb.append(" threeDSRequestorAuthenticationInd: ").append(toIndentedString(threeDSRequestorAuthenticationInd)).append("\n"); - sb.append(" threeDSRequestorAuthenticationInfo: ").append(toIndentedString(threeDSRequestorAuthenticationInfo)).append("\n"); - sb.append(" threeDSRequestorChallengeInd: ").append(toIndentedString(threeDSRequestorChallengeInd)).append("\n"); + sb.append(" threeDSRequestorAuthenticationInd: ") + .append(toIndentedString(threeDSRequestorAuthenticationInd)) + .append("\n"); + sb.append(" threeDSRequestorAuthenticationInfo: ") + .append(toIndentedString(threeDSRequestorAuthenticationInfo)) + .append("\n"); + sb.append(" threeDSRequestorChallengeInd: ") + .append(toIndentedString(threeDSRequestorChallengeInd)) + .append("\n"); sb.append(" threeDSRequestorID: ").append(toIndentedString(threeDSRequestorID)).append("\n"); - sb.append(" threeDSRequestorName: ").append(toIndentedString(threeDSRequestorName)).append("\n"); - sb.append(" threeDSRequestorPriorAuthenticationInfo: ").append(toIndentedString(threeDSRequestorPriorAuthenticationInfo)).append("\n"); - sb.append(" threeDSRequestorURL: ").append(toIndentedString(threeDSRequestorURL)).append("\n"); + sb.append(" threeDSRequestorName: ") + .append(toIndentedString(threeDSRequestorName)) + .append("\n"); + sb.append(" threeDSRequestorPriorAuthenticationInfo: ") + .append(toIndentedString(threeDSRequestorPriorAuthenticationInfo)) + .append("\n"); + sb.append(" threeDSRequestorURL: ") + .append(toIndentedString(threeDSRequestorURL)) + .append("\n"); sb.append(" transType: ").append(toIndentedString(transType)).append("\n"); sb.append(" transactionType: ").append(toIndentedString(transactionType)).append("\n"); sb.append(" whiteListStatus: ").append(toIndentedString(whiteListStatus)).append("\n"); @@ -1838,8 +2263,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1848,21 +2272,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ThreeDS2RequestData given an JSON string * * @param jsonString JSON string * @return An instance of ThreeDS2RequestData - * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDS2RequestData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ThreeDS2RequestData */ public static ThreeDS2RequestData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDS2RequestData.class); } -/** - * Convert an instance of ThreeDS2RequestData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ThreeDS2RequestData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ThreeDS2Result.java b/src/main/java/com/adyen/model/payment/ThreeDS2Result.java index 47a86e087..9b2655d61 100644 --- a/src/main/java/com/adyen/model/payment/ThreeDS2Result.java +++ b/src/main/java/com/adyen/model/payment/ThreeDS2Result.java @@ -2,31 +2,26 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * ThreeDS2Result - */ +/** ThreeDS2Result */ @JsonPropertyOrder({ ThreeDS2Result.JSON_PROPERTY_AUTHENTICATION_VALUE, ThreeDS2Result.JSON_PROPERTY_CAVV_ALGORITHM, @@ -43,7 +38,6 @@ ThreeDS2Result.JSON_PROPERTY_TRANS_STATUS_REASON, ThreeDS2Result.JSON_PROPERTY_WHITE_LIST_STATUS }) - public class ThreeDS2Result { public static final String JSON_PROPERTY_AUTHENTICATION_VALUE = "authenticationValue"; private String authenticationValue; @@ -52,10 +46,11 @@ public class ThreeDS2Result { private String cavvAlgorithm; /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the + * authentication has been cancelled. For possible values, refer to [3D Secure API + * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). */ public enum ChallengeCancelEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -75,7 +70,7 @@ public enum ChallengeCancelEnum { private String value; ChallengeCancelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -96,7 +91,11 @@ public static ChallengeCancelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ChallengeCancelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChallengeCancelEnum.values())); + LOG.warning( + "ChallengeCancelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ChallengeCancelEnum.values())); return null; } } @@ -111,10 +110,11 @@ public static ChallengeCancelEnum fromValue(String value) { private String eci; /** - * Indicates the exemption type that was applied by the issuer to the authentication, if exemption applied. Allowed values: * `lowValue` * `secureCorporate` * `trustedBeneficiary` * `transactionRiskAnalysis` + * Indicates the exemption type that was applied by the issuer to the authentication, if exemption + * applied. Allowed values: * `lowValue` * `secureCorporate` * + * `trustedBeneficiary` * `transactionRiskAnalysis` */ public enum ExemptionIndicatorEnum { - LOWVALUE(String.valueOf("lowValue")), SECURECORPORATE(String.valueOf("secureCorporate")), @@ -128,7 +128,7 @@ public enum ExemptionIndicatorEnum { private String value; ExemptionIndicatorEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -149,7 +149,11 @@ public static ExemptionIndicatorEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ExemptionIndicatorEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ExemptionIndicatorEnum.values())); + LOG.warning( + "ExemptionIndicatorEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ExemptionIndicatorEnum.values())); return null; } } @@ -164,10 +168,12 @@ public static ExemptionIndicatorEnum fromValue(String value) { private String riskScore; /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No + * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor + * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional + * risk analysis is already performed) * **06** — Data Only */ public enum ThreeDSRequestorChallengeIndEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -180,12 +186,13 @@ public enum ThreeDSRequestorChallengeIndEnum { _06(String.valueOf("06")); - private static final Logger LOG = Logger.getLogger(ThreeDSRequestorChallengeIndEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(ThreeDSRequestorChallengeIndEnum.class.getName()); private String value; ThreeDSRequestorChallengeIndEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -206,12 +213,17 @@ public static ThreeDSRequestorChallengeIndEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ThreeDSRequestorChallengeIndEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ThreeDSRequestorChallengeIndEnum.values())); + LOG.warning( + "ThreeDSRequestorChallengeIndEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ThreeDSRequestorChallengeIndEnum.values())); return null; } } - public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND = "threeDSRequestorChallengeInd"; + public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND = + "threeDSRequestorChallengeInd"; private ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd; public static final String JSON_PROPERTY_THREE_D_S_SERVER_TRANS_I_D = "threeDSServerTransID"; @@ -229,13 +241,13 @@ public static ThreeDSRequestorChallengeIndEnum fromValue(String value) { public static final String JSON_PROPERTY_WHITE_LIST_STATUS = "whiteListStatus"; private String whiteListStatus; - public ThreeDS2Result() { - } + public ThreeDS2Result() {} /** * The `authenticationValue` value as defined in the 3D Secure 2 specification. * - * @param authenticationValue The `authenticationValue` value as defined in the 3D Secure 2 specification. + * @param authenticationValue The `authenticationValue` value as defined in the 3D + * Secure 2 specification. * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result authenticationValue(String authenticationValue) { @@ -245,7 +257,9 @@ public ThreeDS2Result authenticationValue(String authenticationValue) { /** * The `authenticationValue` value as defined in the 3D Secure 2 specification. - * @return authenticationValue The `authenticationValue` value as defined in the 3D Secure 2 specification. + * + * @return authenticationValue The `authenticationValue` value as defined in the 3D + * Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -256,7 +270,8 @@ public String getAuthenticationValue() { /** * The `authenticationValue` value as defined in the 3D Secure 2 specification. * - * @param authenticationValue The `authenticationValue` value as defined in the 3D Secure 2 specification. + * @param authenticationValue The `authenticationValue` value as defined in the 3D + * Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -265,9 +280,11 @@ public void setAuthenticationValue(String authenticationValue) { } /** - * The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires integrations. + * The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires + * integrations. * - * @param cavvAlgorithm The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires integrations. + * @param cavvAlgorithm The algorithm used by the ACS to calculate the authentication value, only + * for Cartes Bancaires integrations. * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result cavvAlgorithm(String cavvAlgorithm) { @@ -276,8 +293,11 @@ public ThreeDS2Result cavvAlgorithm(String cavvAlgorithm) { } /** - * The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires integrations. - * @return cavvAlgorithm The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires integrations. + * The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires + * integrations. + * + * @return cavvAlgorithm The algorithm used by the ACS to calculate the authentication value, only + * for Cartes Bancaires integrations. */ @JsonProperty(JSON_PROPERTY_CAVV_ALGORITHM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -286,9 +306,11 @@ public String getCavvAlgorithm() { } /** - * The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires integrations. + * The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires + * integrations. * - * @param cavvAlgorithm The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires integrations. + * @param cavvAlgorithm The algorithm used by the ACS to calculate the authentication value, only + * for Cartes Bancaires integrations. */ @JsonProperty(JSON_PROPERTY_CAVV_ALGORITHM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -297,9 +319,14 @@ public void setCavvAlgorithm(String cavvAlgorithm) { } /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the + * authentication has been cancelled. For possible values, refer to [3D Secure API + * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). * - * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory + * Server (DS) that the authentication has been cancelled. For possible values, refer to [3D + * Secure API + * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result challengeCancel(ChallengeCancelEnum challengeCancel) { @@ -308,8 +335,14 @@ public ThreeDS2Result challengeCancel(ChallengeCancelEnum challengeCancel) { } /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). - * @return challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the + * authentication has been cancelled. For possible values, refer to [3D Secure API + * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * + * @return challengeCancel Indicator informing the Access Control Server (ACS) and the Directory + * Server (DS) that the authentication has been cancelled. For possible values, refer to [3D + * Secure API + * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). */ @JsonProperty(JSON_PROPERTY_CHALLENGE_CANCEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -318,9 +351,14 @@ public ChallengeCancelEnum getChallengeCancel() { } /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the + * authentication has been cancelled. For possible values, refer to [3D Secure API + * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). * - * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory + * Server (DS) that the authentication has been cancelled. For possible values, refer to [3D + * Secure API + * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). */ @JsonProperty(JSON_PROPERTY_CHALLENGE_CANCEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -341,6 +379,7 @@ public ThreeDS2Result dsTransID(String dsTransID) { /** * The `dsTransID` value as defined in the 3D Secure 2 specification. + * * @return dsTransID The `dsTransID` value as defined in the 3D Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_DS_TRANS_I_D) @@ -373,6 +412,7 @@ public ThreeDS2Result eci(String eci) { /** * The `eci` value as defined in the 3D Secure 2 specification. + * * @return eci The `eci` value as defined in the 3D Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_ECI) @@ -393,9 +433,14 @@ public void setEci(String eci) { } /** - * Indicates the exemption type that was applied by the issuer to the authentication, if exemption applied. Allowed values: * `lowValue` * `secureCorporate` * `trustedBeneficiary` * `transactionRiskAnalysis` + * Indicates the exemption type that was applied by the issuer to the authentication, if exemption + * applied. Allowed values: * `lowValue` * `secureCorporate` * + * `trustedBeneficiary` * `transactionRiskAnalysis` * - * @param exemptionIndicator Indicates the exemption type that was applied by the issuer to the authentication, if exemption applied. Allowed values: * `lowValue` * `secureCorporate` * `trustedBeneficiary` * `transactionRiskAnalysis` + * @param exemptionIndicator Indicates the exemption type that was applied by the issuer to the + * authentication, if exemption applied. Allowed values: * `lowValue` * + * `secureCorporate` * `trustedBeneficiary` * + * `transactionRiskAnalysis` * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result exemptionIndicator(ExemptionIndicatorEnum exemptionIndicator) { @@ -404,8 +449,14 @@ public ThreeDS2Result exemptionIndicator(ExemptionIndicatorEnum exemptionIndicat } /** - * Indicates the exemption type that was applied by the issuer to the authentication, if exemption applied. Allowed values: * `lowValue` * `secureCorporate` * `trustedBeneficiary` * `transactionRiskAnalysis` - * @return exemptionIndicator Indicates the exemption type that was applied by the issuer to the authentication, if exemption applied. Allowed values: * `lowValue` * `secureCorporate` * `trustedBeneficiary` * `transactionRiskAnalysis` + * Indicates the exemption type that was applied by the issuer to the authentication, if exemption + * applied. Allowed values: * `lowValue` * `secureCorporate` * + * `trustedBeneficiary` * `transactionRiskAnalysis` + * + * @return exemptionIndicator Indicates the exemption type that was applied by the issuer to the + * authentication, if exemption applied. Allowed values: * `lowValue` * + * `secureCorporate` * `trustedBeneficiary` * + * `transactionRiskAnalysis` */ @JsonProperty(JSON_PROPERTY_EXEMPTION_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -414,9 +465,14 @@ public ExemptionIndicatorEnum getExemptionIndicator() { } /** - * Indicates the exemption type that was applied by the issuer to the authentication, if exemption applied. Allowed values: * `lowValue` * `secureCorporate` * `trustedBeneficiary` * `transactionRiskAnalysis` + * Indicates the exemption type that was applied by the issuer to the authentication, if exemption + * applied. Allowed values: * `lowValue` * `secureCorporate` * + * `trustedBeneficiary` * `transactionRiskAnalysis` * - * @param exemptionIndicator Indicates the exemption type that was applied by the issuer to the authentication, if exemption applied. Allowed values: * `lowValue` * `secureCorporate` * `trustedBeneficiary` * `transactionRiskAnalysis` + * @param exemptionIndicator Indicates the exemption type that was applied by the issuer to the + * authentication, if exemption applied. Allowed values: * `lowValue` * + * `secureCorporate` * `trustedBeneficiary` * + * `transactionRiskAnalysis` */ @JsonProperty(JSON_PROPERTY_EXEMPTION_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -427,7 +483,8 @@ public void setExemptionIndicator(ExemptionIndicatorEnum exemptionIndicator) { /** * The `messageVersion` value as defined in the 3D Secure 2 specification. * - * @param messageVersion The `messageVersion` value as defined in the 3D Secure 2 specification. + * @param messageVersion The `messageVersion` value as defined in the 3D Secure 2 + * specification. * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result messageVersion(String messageVersion) { @@ -437,7 +494,9 @@ public ThreeDS2Result messageVersion(String messageVersion) { /** * The `messageVersion` value as defined in the 3D Secure 2 specification. - * @return messageVersion The `messageVersion` value as defined in the 3D Secure 2 specification. + * + * @return messageVersion The `messageVersion` value as defined in the 3D Secure 2 + * specification. */ @JsonProperty(JSON_PROPERTY_MESSAGE_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -448,7 +507,8 @@ public String getMessageVersion() { /** * The `messageVersion` value as defined in the 3D Secure 2 specification. * - * @param messageVersion The `messageVersion` value as defined in the 3D Secure 2 specification. + * @param messageVersion The `messageVersion` value as defined in the 3D Secure 2 + * specification. */ @JsonProperty(JSON_PROPERTY_MESSAGE_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -469,6 +529,7 @@ public ThreeDS2Result riskScore(String riskScore) { /** * Risk score calculated by Cartes Bancaires Directory Server (DS). + * * @return riskScore Risk score calculated by Cartes Bancaires Directory Server (DS). */ @JsonProperty(JSON_PROPERTY_RISK_SCORE) @@ -489,19 +550,35 @@ public void setRiskScore(String riskScore) { } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No + * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor + * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional + * risk analysis is already performed) * **06** — Data Only * - * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this + * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * + * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested + * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * + * **06** — Data Only * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ - public ThreeDS2Result threeDSRequestorChallengeInd(ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { + public ThreeDS2Result threeDSRequestorChallengeInd( + ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { this.threeDSRequestorChallengeInd = threeDSRequestorChallengeInd; return this; } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only - * @return threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No + * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor + * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional + * risk analysis is already performed) * **06** — Data Only + * + * @return threeDSRequestorChallengeInd Indicates whether a challenge is requested for this + * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * + * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested + * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * + * **06** — Data Only */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -510,20 +587,29 @@ public ThreeDSRequestorChallengeIndEnum getThreeDSRequestorChallengeInd() { } /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No + * preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor + * preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional + * risk analysis is already performed) * **06** — Data Only * - * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * @param threeDSRequestorChallengeInd Indicates whether a challenge is requested for this + * transaction. Possible values: * **01** — No preference * **02** — No challenge requested * + * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested + * (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * + * **06** — Data Only */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setThreeDSRequestorChallengeInd(ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { + public void setThreeDSRequestorChallengeInd( + ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { this.threeDSRequestorChallengeInd = threeDSRequestorChallengeInd; } /** * The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. * - * @param threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. + * @param threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D + * Secure 2 specification. * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result threeDSServerTransID(String threeDSServerTransID) { @@ -533,7 +619,9 @@ public ThreeDS2Result threeDSServerTransID(String threeDSServerTransID) { /** * The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. - * @return threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. + * + * @return threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D + * Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_SERVER_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -544,7 +632,8 @@ public String getThreeDSServerTransID() { /** * The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. * - * @param threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. + * @param threeDSServerTransID The `threeDSServerTransID` value as defined in the 3D + * Secure 2 specification. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_SERVER_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -565,6 +654,7 @@ public ThreeDS2Result timestamp(String timestamp) { /** * The `timestamp` value of the 3D Secure 2 authentication. + * * @return timestamp The `timestamp` value of the 3D Secure 2 authentication. */ @JsonProperty(JSON_PROPERTY_TIMESTAMP) @@ -587,7 +677,8 @@ public void setTimestamp(String timestamp) { /** * The `transStatus` value as defined in the 3D Secure 2 specification. * - * @param transStatus The `transStatus` value as defined in the 3D Secure 2 specification. + * @param transStatus The `transStatus` value as defined in the 3D Secure 2 + * specification. * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result transStatus(String transStatus) { @@ -597,7 +688,9 @@ public ThreeDS2Result transStatus(String transStatus) { /** * The `transStatus` value as defined in the 3D Secure 2 specification. - * @return transStatus The `transStatus` value as defined in the 3D Secure 2 specification. + * + * @return transStatus The `transStatus` value as defined in the 3D Secure 2 + * specification. */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -608,7 +701,8 @@ public String getTransStatus() { /** * The `transStatus` value as defined in the 3D Secure 2 specification. * - * @param transStatus The `transStatus` value as defined in the 3D Secure 2 specification. + * @param transStatus The `transStatus` value as defined in the 3D Secure 2 + * specification. */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -617,9 +711,13 @@ public void setTransStatus(String transStatus) { } /** - * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * Provides information on why the `transStatus` field has the specified value. For + * possible values, refer to [our + * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). * - * @param transStatusReason Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * @param transStatusReason Provides information on why the `transStatus` field has the + * specified value. For possible values, refer to [our + * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result transStatusReason(String transStatusReason) { @@ -628,8 +726,13 @@ public ThreeDS2Result transStatusReason(String transStatusReason) { } /** - * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). - * @return transStatusReason Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * Provides information on why the `transStatus` field has the specified value. For + * possible values, refer to [our + * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * + * @return transStatusReason Provides information on why the `transStatus` field has the + * specified value. For possible values, refer to [our + * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -638,9 +741,13 @@ public String getTransStatusReason() { } /** - * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * Provides information on why the `transStatus` field has the specified value. For + * possible values, refer to [our + * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). * - * @param transStatusReason Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * @param transStatusReason Provides information on why the `transStatus` field has the + * specified value. For possible values, refer to [our + * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -651,7 +758,8 @@ public void setTransStatusReason(String transStatusReason) { /** * The `whiteListStatus` value as defined in the 3D Secure 2 specification. * - * @param whiteListStatus The `whiteListStatus` value as defined in the 3D Secure 2 specification. + * @param whiteListStatus The `whiteListStatus` value as defined in the 3D Secure 2 + * specification. * @return the current {@code ThreeDS2Result} instance, allowing for method chaining */ public ThreeDS2Result whiteListStatus(String whiteListStatus) { @@ -661,7 +769,9 @@ public ThreeDS2Result whiteListStatus(String whiteListStatus) { /** * The `whiteListStatus` value as defined in the 3D Secure 2 specification. - * @return whiteListStatus The `whiteListStatus` value as defined in the 3D Secure 2 specification. + * + * @return whiteListStatus The `whiteListStatus` value as defined in the 3D Secure 2 + * specification. */ @JsonProperty(JSON_PROPERTY_WHITE_LIST_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -672,7 +782,8 @@ public String getWhiteListStatus() { /** * The `whiteListStatus` value as defined in the 3D Secure 2 specification. * - * @param whiteListStatus The `whiteListStatus` value as defined in the 3D Secure 2 specification. + * @param whiteListStatus The `whiteListStatus` value as defined in the 3D Secure 2 + * specification. */ @JsonProperty(JSON_PROPERTY_WHITE_LIST_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -680,9 +791,7 @@ public void setWhiteListStatus(String whiteListStatus) { this.whiteListStatus = whiteListStatus; } - /** - * Return true if this ThreeDS2Result object is equal to o. - */ + /** Return true if this ThreeDS2Result object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -692,32 +801,49 @@ public boolean equals(Object o) { return false; } ThreeDS2Result threeDS2Result = (ThreeDS2Result) o; - return Objects.equals(this.authenticationValue, threeDS2Result.authenticationValue) && - Objects.equals(this.cavvAlgorithm, threeDS2Result.cavvAlgorithm) && - Objects.equals(this.challengeCancel, threeDS2Result.challengeCancel) && - Objects.equals(this.dsTransID, threeDS2Result.dsTransID) && - Objects.equals(this.eci, threeDS2Result.eci) && - Objects.equals(this.exemptionIndicator, threeDS2Result.exemptionIndicator) && - Objects.equals(this.messageVersion, threeDS2Result.messageVersion) && - Objects.equals(this.riskScore, threeDS2Result.riskScore) && - Objects.equals(this.threeDSRequestorChallengeInd, threeDS2Result.threeDSRequestorChallengeInd) && - Objects.equals(this.threeDSServerTransID, threeDS2Result.threeDSServerTransID) && - Objects.equals(this.timestamp, threeDS2Result.timestamp) && - Objects.equals(this.transStatus, threeDS2Result.transStatus) && - Objects.equals(this.transStatusReason, threeDS2Result.transStatusReason) && - Objects.equals(this.whiteListStatus, threeDS2Result.whiteListStatus); + return Objects.equals(this.authenticationValue, threeDS2Result.authenticationValue) + && Objects.equals(this.cavvAlgorithm, threeDS2Result.cavvAlgorithm) + && Objects.equals(this.challengeCancel, threeDS2Result.challengeCancel) + && Objects.equals(this.dsTransID, threeDS2Result.dsTransID) + && Objects.equals(this.eci, threeDS2Result.eci) + && Objects.equals(this.exemptionIndicator, threeDS2Result.exemptionIndicator) + && Objects.equals(this.messageVersion, threeDS2Result.messageVersion) + && Objects.equals(this.riskScore, threeDS2Result.riskScore) + && Objects.equals( + this.threeDSRequestorChallengeInd, threeDS2Result.threeDSRequestorChallengeInd) + && Objects.equals(this.threeDSServerTransID, threeDS2Result.threeDSServerTransID) + && Objects.equals(this.timestamp, threeDS2Result.timestamp) + && Objects.equals(this.transStatus, threeDS2Result.transStatus) + && Objects.equals(this.transStatusReason, threeDS2Result.transStatusReason) + && Objects.equals(this.whiteListStatus, threeDS2Result.whiteListStatus); } @Override public int hashCode() { - return Objects.hash(authenticationValue, cavvAlgorithm, challengeCancel, dsTransID, eci, exemptionIndicator, messageVersion, riskScore, threeDSRequestorChallengeInd, threeDSServerTransID, timestamp, transStatus, transStatusReason, whiteListStatus); + return Objects.hash( + authenticationValue, + cavvAlgorithm, + challengeCancel, + dsTransID, + eci, + exemptionIndicator, + messageVersion, + riskScore, + threeDSRequestorChallengeInd, + threeDSServerTransID, + timestamp, + transStatus, + transStatusReason, + whiteListStatus); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ThreeDS2Result {\n"); - sb.append(" authenticationValue: ").append(toIndentedString(authenticationValue)).append("\n"); + sb.append(" authenticationValue: ") + .append(toIndentedString(authenticationValue)) + .append("\n"); sb.append(" cavvAlgorithm: ").append(toIndentedString(cavvAlgorithm)).append("\n"); sb.append(" challengeCancel: ").append(toIndentedString(challengeCancel)).append("\n"); sb.append(" dsTransID: ").append(toIndentedString(dsTransID)).append("\n"); @@ -725,8 +851,12 @@ public String toString() { sb.append(" exemptionIndicator: ").append(toIndentedString(exemptionIndicator)).append("\n"); sb.append(" messageVersion: ").append(toIndentedString(messageVersion)).append("\n"); sb.append(" riskScore: ").append(toIndentedString(riskScore)).append("\n"); - sb.append(" threeDSRequestorChallengeInd: ").append(toIndentedString(threeDSRequestorChallengeInd)).append("\n"); - sb.append(" threeDSServerTransID: ").append(toIndentedString(threeDSServerTransID)).append("\n"); + sb.append(" threeDSRequestorChallengeInd: ") + .append(toIndentedString(threeDSRequestorChallengeInd)) + .append("\n"); + sb.append(" threeDSServerTransID: ") + .append(toIndentedString(threeDSServerTransID)) + .append("\n"); sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); sb.append(" transStatus: ").append(toIndentedString(transStatus)).append("\n"); sb.append(" transStatusReason: ").append(toIndentedString(transStatusReason)).append("\n"); @@ -736,8 +866,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -746,7 +875,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ThreeDS2Result given an JSON string * * @param jsonString JSON string @@ -756,11 +885,12 @@ private String toIndentedString(Object o) { public static ThreeDS2Result fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDS2Result.class); } -/** - * Convert an instance of ThreeDS2Result to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ThreeDS2Result to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ThreeDS2ResultRequest.java b/src/main/java/com/adyen/model/payment/ThreeDS2ResultRequest.java index ed2316233..053b395e0 100644 --- a/src/main/java/com/adyen/model/payment/ThreeDS2ResultRequest.java +++ b/src/main/java/com/adyen/model/payment/ThreeDS2ResultRequest.java @@ -2,36 +2,26 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ThreeDS2ResultRequest - */ +/** ThreeDS2ResultRequest */ @JsonPropertyOrder({ ThreeDS2ResultRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, ThreeDS2ResultRequest.JSON_PROPERTY_PSP_REFERENCE }) - public class ThreeDS2ResultRequest { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; @@ -39,13 +29,13 @@ public class ThreeDS2ResultRequest { public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference"; private String pspReference; - public ThreeDS2ResultRequest() { - } + public ThreeDS2ResultRequest() {} /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. * @return the current {@code ThreeDS2ResultRequest} instance, allowing for method chaining */ public ThreeDS2ResultRequest merchantAccount(String merchantAccount) { @@ -55,7 +45,9 @@ public ThreeDS2ResultRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * @return merchantAccount The merchant account identifier, with which you want to process the transaction. + * + * @return merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -66,7 +58,8 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,6 +80,7 @@ public ThreeDS2ResultRequest pspReference(String pspReference) { /** * The pspReference returned in the /authorise call. + * * @return pspReference The pspReference returned in the /authorise call. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -106,9 +100,7 @@ public void setPspReference(String pspReference) { this.pspReference = pspReference; } - /** - * Return true if this ThreeDS2ResultRequest object is equal to o. - */ + /** Return true if this ThreeDS2ResultRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +110,8 @@ public boolean equals(Object o) { return false; } ThreeDS2ResultRequest threeDS2ResultRequest = (ThreeDS2ResultRequest) o; - return Objects.equals(this.merchantAccount, threeDS2ResultRequest.merchantAccount) && - Objects.equals(this.pspReference, threeDS2ResultRequest.pspReference); + return Objects.equals(this.merchantAccount, threeDS2ResultRequest.merchantAccount) + && Objects.equals(this.pspReference, threeDS2ResultRequest.pspReference); } @Override @@ -138,8 +130,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +139,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ThreeDS2ResultRequest given an JSON string * * @param jsonString JSON string * @return An instance of ThreeDS2ResultRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDS2ResultRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ThreeDS2ResultRequest */ public static ThreeDS2ResultRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDS2ResultRequest.class); } -/** - * Convert an instance of ThreeDS2ResultRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ThreeDS2ResultRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ThreeDS2ResultResponse.java b/src/main/java/com/adyen/model/payment/ThreeDS2ResultResponse.java index bbc17f935..f454feb6b 100644 --- a/src/main/java/com/adyen/model/payment/ThreeDS2ResultResponse.java +++ b/src/main/java/com/adyen/model/payment/ThreeDS2ResultResponse.java @@ -2,47 +2,33 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.payment.ThreeDS2Result; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ThreeDS2ResultResponse - */ -@JsonPropertyOrder({ - ThreeDS2ResultResponse.JSON_PROPERTY_THREE_D_S2_RESULT -}) - +/** ThreeDS2ResultResponse */ +@JsonPropertyOrder({ThreeDS2ResultResponse.JSON_PROPERTY_THREE_D_S2_RESULT}) public class ThreeDS2ResultResponse { public static final String JSON_PROPERTY_THREE_D_S2_RESULT = "threeDS2Result"; private ThreeDS2Result threeDS2Result; - public ThreeDS2ResultResponse() { - } + public ThreeDS2ResultResponse() {} /** * threeDS2Result * - * @param threeDS2Result + * @param threeDS2Result * @return the current {@code ThreeDS2ResultResponse} instance, allowing for method chaining */ public ThreeDS2ResultResponse threeDS2Result(ThreeDS2Result threeDS2Result) { @@ -52,7 +38,8 @@ public ThreeDS2ResultResponse threeDS2Result(ThreeDS2Result threeDS2Result) { /** * Get threeDS2Result - * @return threeDS2Result + * + * @return threeDS2Result */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,7 +50,7 @@ public ThreeDS2Result getThreeDS2Result() { /** * threeDS2Result * - * @param threeDS2Result + * @param threeDS2Result */ @JsonProperty(JSON_PROPERTY_THREE_D_S2_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,9 +58,7 @@ public void setThreeDS2Result(ThreeDS2Result threeDS2Result) { this.threeDS2Result = threeDS2Result; } - /** - * Return true if this ThreeDS2ResultResponse object is equal to o. - */ + /** Return true if this ThreeDS2ResultResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -101,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -111,21 +95,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ThreeDS2ResultResponse given an JSON string * * @param jsonString JSON string * @return An instance of ThreeDS2ResultResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDS2ResultResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ThreeDS2ResultResponse */ public static ThreeDS2ResultResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDS2ResultResponse.class); } -/** - * Convert an instance of ThreeDS2ResultResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ThreeDS2ResultResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ThreeDSRequestorAuthenticationInfo.java b/src/main/java/com/adyen/model/payment/ThreeDSRequestorAuthenticationInfo.java index c09da76e0..615d00037 100644 --- a/src/main/java/com/adyen/model/payment/ThreeDSRequestorAuthenticationInfo.java +++ b/src/main/java/com/adyen/model/payment/ThreeDSRequestorAuthenticationInfo.java @@ -2,46 +2,46 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * ThreeDSRequestorAuthenticationInfo - */ +/** ThreeDSRequestorAuthenticationInfo */ @JsonPropertyOrder({ ThreeDSRequestorAuthenticationInfo.JSON_PROPERTY_THREE_D_S_REQ_AUTH_DATA, ThreeDSRequestorAuthenticationInfo.JSON_PROPERTY_THREE_D_S_REQ_AUTH_METHOD, ThreeDSRequestorAuthenticationInfo.JSON_PROPERTY_THREE_D_S_REQ_AUTH_TIMESTAMP }) - public class ThreeDSRequestorAuthenticationInfo { public static final String JSON_PROPERTY_THREE_D_S_REQ_AUTH_DATA = "threeDSReqAuthData"; private String threeDSReqAuthData; /** - * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system using third-party authentication. * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator. + * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** + * — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * + * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own + * credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using + * federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using + * issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system + * using third-party authentication. * **06** — Login to the cardholder account at the 3DS + * Requestor system using FIDO Authenticator. */ public enum ThreeDSReqAuthMethodEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -59,7 +59,7 @@ public enum ThreeDSReqAuthMethodEnum { private String value; ThreeDSReqAuthMethodEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -80,7 +80,11 @@ public static ThreeDSReqAuthMethodEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ThreeDSReqAuthMethodEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ThreeDSReqAuthMethodEnum.values())); + LOG.warning( + "ThreeDSReqAuthMethodEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ThreeDSReqAuthMethodEnum.values())); return null; } } @@ -91,14 +95,15 @@ public static ThreeDSReqAuthMethodEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_REQ_AUTH_TIMESTAMP = "threeDSReqAuthTimestamp"; private String threeDSReqAuthTimestamp; - public ThreeDSRequestorAuthenticationInfo() { - } + public ThreeDSRequestorAuthenticationInfo() {} /** * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. * - * @param threeDSReqAuthData Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. - * @return the current {@code ThreeDSRequestorAuthenticationInfo} instance, allowing for method chaining + * @param threeDSReqAuthData Data that documents and supports a specific authentication process. + * Maximum length: 2048 bytes. + * @return the current {@code ThreeDSRequestorAuthenticationInfo} instance, allowing for method + * chaining */ public ThreeDSRequestorAuthenticationInfo threeDSReqAuthData(String threeDSReqAuthData) { this.threeDSReqAuthData = threeDSReqAuthData; @@ -107,7 +112,9 @@ public ThreeDSRequestorAuthenticationInfo threeDSReqAuthData(String threeDSReqAu /** * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. - * @return threeDSReqAuthData Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. + * + * @return threeDSReqAuthData Data that documents and supports a specific authentication process. + * Maximum length: 2048 bytes. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_AUTH_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,7 +125,8 @@ public String getThreeDSReqAuthData() { /** * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. * - * @param threeDSReqAuthData Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. + * @param threeDSReqAuthData Data that documents and supports a specific authentication process. + * Maximum length: 2048 bytes. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_AUTH_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,19 +135,52 @@ public void setThreeDSReqAuthData(String threeDSReqAuthData) { } /** - * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system using third-party authentication. * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator. + * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** + * — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * + * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own + * credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using + * federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using + * issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system + * using third-party authentication. * **06** — Login to the cardholder account at the 3DS + * Requestor system using FIDO Authenticator. * - * @param threeDSReqAuthMethod Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system using third-party authentication. * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator. - * @return the current {@code ThreeDSRequestorAuthenticationInfo} instance, allowing for method chaining + * @param threeDSReqAuthMethod Mechanism used by the Cardholder to authenticate to the 3DS + * Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for + * example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at + * the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the + * cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the + * cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login + * to the cardholder account at the 3DS Requestor system using third-party authentication. * + * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO + * Authenticator. + * @return the current {@code ThreeDSRequestorAuthenticationInfo} instance, allowing for method + * chaining */ - public ThreeDSRequestorAuthenticationInfo threeDSReqAuthMethod(ThreeDSReqAuthMethodEnum threeDSReqAuthMethod) { + public ThreeDSRequestorAuthenticationInfo threeDSReqAuthMethod( + ThreeDSReqAuthMethodEnum threeDSReqAuthMethod) { this.threeDSReqAuthMethod = threeDSReqAuthMethod; return this; } /** - * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system using third-party authentication. * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator. - * @return threeDSReqAuthMethod Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system using third-party authentication. * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator. + * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** + * — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * + * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own + * credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using + * federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using + * issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system + * using third-party authentication. * **06** — Login to the cardholder account at the 3DS + * Requestor system using FIDO Authenticator. + * + * @return threeDSReqAuthMethod Mechanism used by the Cardholder to authenticate to the 3DS + * Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for + * example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at + * the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the + * cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the + * cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login + * to the cardholder account at the 3DS Requestor system using third-party authentication. * + * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO + * Authenticator. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_AUTH_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,9 +189,24 @@ public ThreeDSReqAuthMethodEnum getThreeDSReqAuthMethod() { } /** - * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system using third-party authentication. * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator. + * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** + * — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * + * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own + * credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using + * federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using + * issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system + * using third-party authentication. * **06** — Login to the cardholder account at the 3DS + * Requestor system using FIDO Authenticator. * - * @param threeDSReqAuthMethod Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system using third-party authentication. * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator. + * @param threeDSReqAuthMethod Mechanism used by the Cardholder to authenticate to the 3DS + * Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for + * example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at + * the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the + * cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the + * cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login + * to the cardholder account at the 3DS Requestor system using third-party authentication. * + * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO + * Authenticator. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_AUTH_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,17 +217,22 @@ public void setThreeDSReqAuthMethod(ThreeDSReqAuthMethodEnum threeDSReqAuthMetho /** * Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM * - * @param threeDSReqAuthTimestamp Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM - * @return the current {@code ThreeDSRequestorAuthenticationInfo} instance, allowing for method chaining + * @param threeDSReqAuthTimestamp Date and time in UTC of the cardholder authentication. Format: + * YYYYMMDDHHMM + * @return the current {@code ThreeDSRequestorAuthenticationInfo} instance, allowing for method + * chaining */ - public ThreeDSRequestorAuthenticationInfo threeDSReqAuthTimestamp(String threeDSReqAuthTimestamp) { + public ThreeDSRequestorAuthenticationInfo threeDSReqAuthTimestamp( + String threeDSReqAuthTimestamp) { this.threeDSReqAuthTimestamp = threeDSReqAuthTimestamp; return this; } /** * Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM - * @return threeDSReqAuthTimestamp Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM + * + * @return threeDSReqAuthTimestamp Date and time in UTC of the cardholder authentication. Format: + * YYYYMMDDHHMM */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_AUTH_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,7 +243,8 @@ public String getThreeDSReqAuthTimestamp() { /** * Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM * - * @param threeDSReqAuthTimestamp Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM + * @param threeDSReqAuthTimestamp Date and time in UTC of the cardholder authentication. Format: + * YYYYMMDDHHMM */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_AUTH_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,9 +252,7 @@ public void setThreeDSReqAuthTimestamp(String threeDSReqAuthTimestamp) { this.threeDSReqAuthTimestamp = threeDSReqAuthTimestamp; } - /** - * Return true if this ThreeDSRequestorAuthenticationInfo object is equal to o. - */ + /** Return true if this ThreeDSRequestorAuthenticationInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -201,10 +261,15 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo = (ThreeDSRequestorAuthenticationInfo) o; - return Objects.equals(this.threeDSReqAuthData, threeDSRequestorAuthenticationInfo.threeDSReqAuthData) && - Objects.equals(this.threeDSReqAuthMethod, threeDSRequestorAuthenticationInfo.threeDSReqAuthMethod) && - Objects.equals(this.threeDSReqAuthTimestamp, threeDSRequestorAuthenticationInfo.threeDSReqAuthTimestamp); + ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo = + (ThreeDSRequestorAuthenticationInfo) o; + return Objects.equals( + this.threeDSReqAuthData, threeDSRequestorAuthenticationInfo.threeDSReqAuthData) + && Objects.equals( + this.threeDSReqAuthMethod, threeDSRequestorAuthenticationInfo.threeDSReqAuthMethod) + && Objects.equals( + this.threeDSReqAuthTimestamp, + threeDSRequestorAuthenticationInfo.threeDSReqAuthTimestamp); } @Override @@ -217,15 +282,18 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ThreeDSRequestorAuthenticationInfo {\n"); sb.append(" threeDSReqAuthData: ").append(toIndentedString(threeDSReqAuthData)).append("\n"); - sb.append(" threeDSReqAuthMethod: ").append(toIndentedString(threeDSReqAuthMethod)).append("\n"); - sb.append(" threeDSReqAuthTimestamp: ").append(toIndentedString(threeDSReqAuthTimestamp)).append("\n"); + sb.append(" threeDSReqAuthMethod: ") + .append(toIndentedString(threeDSReqAuthMethod)) + .append("\n"); + sb.append(" threeDSReqAuthTimestamp: ") + .append(toIndentedString(threeDSReqAuthTimestamp)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -234,21 +302,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ThreeDSRequestorAuthenticationInfo given an JSON string * * @param jsonString JSON string * @return An instance of ThreeDSRequestorAuthenticationInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDSRequestorAuthenticationInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ThreeDSRequestorAuthenticationInfo */ - public static ThreeDSRequestorAuthenticationInfo fromJson(String jsonString) throws JsonProcessingException { + public static ThreeDSRequestorAuthenticationInfo fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDSRequestorAuthenticationInfo.class); } -/** - * Convert an instance of ThreeDSRequestorAuthenticationInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ThreeDSRequestorAuthenticationInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ThreeDSRequestorPriorAuthenticationInfo.java b/src/main/java/com/adyen/model/payment/ThreeDSRequestorPriorAuthenticationInfo.java index 3c8e50983..33fea8601 100644 --- a/src/main/java/com/adyen/model/payment/ThreeDSRequestorPriorAuthenticationInfo.java +++ b/src/main/java/com/adyen/model/payment/ThreeDSRequestorPriorAuthenticationInfo.java @@ -2,47 +2,43 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * ThreeDSRequestorPriorAuthenticationInfo - */ +/** ThreeDSRequestorPriorAuthenticationInfo */ @JsonPropertyOrder({ ThreeDSRequestorPriorAuthenticationInfo.JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_DATA, ThreeDSRequestorPriorAuthenticationInfo.JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_METHOD, ThreeDSRequestorPriorAuthenticationInfo.JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_TIMESTAMP, ThreeDSRequestorPriorAuthenticationInfo.JSON_PROPERTY_THREE_D_S_REQ_PRIOR_REF }) - public class ThreeDSRequestorPriorAuthenticationInfo { - public static final String JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_DATA = "threeDSReqPriorAuthData"; + public static final String JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_DATA = + "threeDSReqPriorAuthData"; private String threeDSReqPriorAuthData; /** - * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. + * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed + * values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge + * occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. */ public enum ThreeDSReqPriorAuthMethodEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -51,12 +47,13 @@ public enum ThreeDSReqPriorAuthMethodEnum { _04(String.valueOf("04")); - private static final Logger LOG = Logger.getLogger(ThreeDSReqPriorAuthMethodEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(ThreeDSReqPriorAuthMethodEnum.class.getName()); private String value; ThreeDSReqPriorAuthMethodEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -77,37 +74,47 @@ public static ThreeDSReqPriorAuthMethodEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ThreeDSReqPriorAuthMethodEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ThreeDSReqPriorAuthMethodEnum.values())); + LOG.warning( + "ThreeDSReqPriorAuthMethodEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ThreeDSReqPriorAuthMethodEnum.values())); return null; } } - public static final String JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_METHOD = "threeDSReqPriorAuthMethod"; + public static final String JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_METHOD = + "threeDSReqPriorAuthMethod"; private ThreeDSReqPriorAuthMethodEnum threeDSReqPriorAuthMethod; - public static final String JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_TIMESTAMP = "threeDSReqPriorAuthTimestamp"; + public static final String JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_TIMESTAMP = + "threeDSReqPriorAuthTimestamp"; private String threeDSReqPriorAuthTimestamp; public static final String JSON_PROPERTY_THREE_D_S_REQ_PRIOR_REF = "threeDSReqPriorRef"; private String threeDSReqPriorRef; - public ThreeDSRequestorPriorAuthenticationInfo() { - } + public ThreeDSRequestorPriorAuthenticationInfo() {} /** * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. * - * @param threeDSReqPriorAuthData Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. - * @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for method chaining + * @param threeDSReqPriorAuthData Data that documents and supports a specific authentication + * process. Maximum length: 2048 bytes. + * @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for + * method chaining */ - public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorAuthData(String threeDSReqPriorAuthData) { + public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorAuthData( + String threeDSReqPriorAuthData) { this.threeDSReqPriorAuthData = threeDSReqPriorAuthData; return this; } /** * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. - * @return threeDSReqPriorAuthData Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. + * + * @return threeDSReqPriorAuthData Data that documents and supports a specific authentication + * process. Maximum length: 2048 bytes. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,7 +125,8 @@ public String getThreeDSReqPriorAuthData() { /** * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. * - * @param threeDSReqPriorAuthData Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. + * @param threeDSReqPriorAuthData Data that documents and supports a specific authentication + * process. Maximum length: 2048 bytes. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,19 +135,32 @@ public void setThreeDSReqPriorAuthData(String threeDSReqPriorAuthData) { } /** - * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. + * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed + * values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge + * occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. * - * @param threeDSReqPriorAuthMethod Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. - * @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for method chaining + * @param threeDSReqPriorAuthMethod Mechanism used by the Cardholder to previously authenticate to + * the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. + * * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other + * issuer methods. + * @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for + * method chaining */ - public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorAuthMethod(ThreeDSReqPriorAuthMethodEnum threeDSReqPriorAuthMethod) { + public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorAuthMethod( + ThreeDSReqPriorAuthMethodEnum threeDSReqPriorAuthMethod) { this.threeDSReqPriorAuthMethod = threeDSReqPriorAuthMethod; return this; } /** - * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. - * @return threeDSReqPriorAuthMethod Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. + * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed + * values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge + * occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. + * + * @return threeDSReqPriorAuthMethod Mechanism used by the Cardholder to previously authenticate + * to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by + * ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — + * Other issuer methods. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,30 +169,41 @@ public ThreeDSReqPriorAuthMethodEnum getThreeDSReqPriorAuthMethod() { } /** - * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. + * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed + * values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge + * occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. * - * @param threeDSReqPriorAuthMethod Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. + * @param threeDSReqPriorAuthMethod Mechanism used by the Cardholder to previously authenticate to + * the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. + * * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other + * issuer methods. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setThreeDSReqPriorAuthMethod(ThreeDSReqPriorAuthMethodEnum threeDSReqPriorAuthMethod) { + public void setThreeDSReqPriorAuthMethod( + ThreeDSReqPriorAuthMethodEnum threeDSReqPriorAuthMethod) { this.threeDSReqPriorAuthMethod = threeDSReqPriorAuthMethod; } /** * Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM * - * @param threeDSReqPriorAuthTimestamp Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM - * @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for method chaining + * @param threeDSReqPriorAuthTimestamp Date and time in UTC of the prior cardholder + * authentication. Format: YYYYMMDDHHMM + * @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for + * method chaining */ - public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorAuthTimestamp(String threeDSReqPriorAuthTimestamp) { + public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorAuthTimestamp( + String threeDSReqPriorAuthTimestamp) { this.threeDSReqPriorAuthTimestamp = threeDSReqPriorAuthTimestamp; return this; } /** * Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM - * @return threeDSReqPriorAuthTimestamp Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM + * + * @return threeDSReqPriorAuthTimestamp Date and time in UTC of the prior cardholder + * authentication. Format: YYYYMMDDHHMM */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,7 +214,8 @@ public String getThreeDSReqPriorAuthTimestamp() { /** * Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM * - * @param threeDSReqPriorAuthTimestamp Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM + * @param threeDSReqPriorAuthTimestamp Date and time in UTC of the prior cardholder + * authentication. Format: YYYYMMDDHHMM */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,10 +224,17 @@ public void setThreeDSReqPriorAuthTimestamp(String threeDSReqPriorAuthTimestamp) } /** - * This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters. + * This data element provides additional information to the ACS to determine the best approach for + * handing a request. This data element contains an ACS Transaction ID for a prior authenticated + * transaction. For example, the first recurring transaction that was authenticated with the + * cardholder. Length: 30 characters. * - * @param threeDSReqPriorRef This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters. - * @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for method chaining + * @param threeDSReqPriorRef This data element provides additional information to the ACS to + * determine the best approach for handing a request. This data element contains an ACS + * Transaction ID for a prior authenticated transaction. For example, the first recurring + * transaction that was authenticated with the cardholder. Length: 30 characters. + * @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for + * method chaining */ public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorRef(String threeDSReqPriorRef) { this.threeDSReqPriorRef = threeDSReqPriorRef; @@ -202,8 +242,15 @@ public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorRef(String threeDS } /** - * This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters. - * @return threeDSReqPriorRef This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters. + * This data element provides additional information to the ACS to determine the best approach for + * handing a request. This data element contains an ACS Transaction ID for a prior authenticated + * transaction. For example, the first recurring transaction that was authenticated with the + * cardholder. Length: 30 characters. + * + * @return threeDSReqPriorRef This data element provides additional information to the ACS to + * determine the best approach for handing a request. This data element contains an ACS + * Transaction ID for a prior authenticated transaction. For example, the first recurring + * transaction that was authenticated with the cardholder. Length: 30 characters. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -212,9 +259,15 @@ public String getThreeDSReqPriorRef() { } /** - * This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters. + * This data element provides additional information to the ACS to determine the best approach for + * handing a request. This data element contains an ACS Transaction ID for a prior authenticated + * transaction. For example, the first recurring transaction that was authenticated with the + * cardholder. Length: 30 characters. * - * @param threeDSReqPriorRef This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters. + * @param threeDSReqPriorRef This data element provides additional information to the ACS to + * determine the best approach for handing a request. This data element contains an ACS + * Transaction ID for a prior authenticated transaction. For example, the first recurring + * transaction that was authenticated with the cardholder. Length: 30 characters. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -222,9 +275,7 @@ public void setThreeDSReqPriorRef(String threeDSReqPriorRef) { this.threeDSReqPriorRef = threeDSReqPriorRef; } - /** - * Return true if this ThreeDSRequestorPriorAuthenticationInfo object is equal to o. - */ + /** Return true if this ThreeDSRequestorPriorAuthenticationInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -233,33 +284,50 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo = (ThreeDSRequestorPriorAuthenticationInfo) o; - return Objects.equals(this.threeDSReqPriorAuthData, threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorAuthData) && - Objects.equals(this.threeDSReqPriorAuthMethod, threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorAuthMethod) && - Objects.equals(this.threeDSReqPriorAuthTimestamp, threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorAuthTimestamp) && - Objects.equals(this.threeDSReqPriorRef, threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorRef); + ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo = + (ThreeDSRequestorPriorAuthenticationInfo) o; + return Objects.equals( + this.threeDSReqPriorAuthData, + threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorAuthData) + && Objects.equals( + this.threeDSReqPriorAuthMethod, + threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorAuthMethod) + && Objects.equals( + this.threeDSReqPriorAuthTimestamp, + threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorAuthTimestamp) + && Objects.equals( + this.threeDSReqPriorRef, threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorRef); } @Override public int hashCode() { - return Objects.hash(threeDSReqPriorAuthData, threeDSReqPriorAuthMethod, threeDSReqPriorAuthTimestamp, threeDSReqPriorRef); + return Objects.hash( + threeDSReqPriorAuthData, + threeDSReqPriorAuthMethod, + threeDSReqPriorAuthTimestamp, + threeDSReqPriorRef); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ThreeDSRequestorPriorAuthenticationInfo {\n"); - sb.append(" threeDSReqPriorAuthData: ").append(toIndentedString(threeDSReqPriorAuthData)).append("\n"); - sb.append(" threeDSReqPriorAuthMethod: ").append(toIndentedString(threeDSReqPriorAuthMethod)).append("\n"); - sb.append(" threeDSReqPriorAuthTimestamp: ").append(toIndentedString(threeDSReqPriorAuthTimestamp)).append("\n"); + sb.append(" threeDSReqPriorAuthData: ") + .append(toIndentedString(threeDSReqPriorAuthData)) + .append("\n"); + sb.append(" threeDSReqPriorAuthMethod: ") + .append(toIndentedString(threeDSReqPriorAuthMethod)) + .append("\n"); + sb.append(" threeDSReqPriorAuthTimestamp: ") + .append(toIndentedString(threeDSReqPriorAuthTimestamp)) + .append("\n"); sb.append(" threeDSReqPriorRef: ").append(toIndentedString(threeDSReqPriorRef)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -268,21 +336,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ThreeDSRequestorPriorAuthenticationInfo given an JSON string * * @param jsonString JSON string * @return An instance of ThreeDSRequestorPriorAuthenticationInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDSRequestorPriorAuthenticationInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ThreeDSRequestorPriorAuthenticationInfo */ - public static ThreeDSRequestorPriorAuthenticationInfo fromJson(String jsonString) throws JsonProcessingException { + public static ThreeDSRequestorPriorAuthenticationInfo fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDSRequestorPriorAuthenticationInfo.class); } -/** - * Convert an instance of ThreeDSRequestorPriorAuthenticationInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ThreeDSRequestorPriorAuthenticationInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/ThreeDSecureData.java b/src/main/java/com/adyen/model/payment/ThreeDSecureData.java index ca985ad46..62e4c1070 100644 --- a/src/main/java/com/adyen/model/payment/ThreeDSecureData.java +++ b/src/main/java/com/adyen/model/payment/ThreeDSecureData.java @@ -2,31 +2,26 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * ThreeDSecureData - */ +/** ThreeDSecureData */ @JsonPropertyOrder({ ThreeDSecureData.JSON_PROPERTY_AUTHENTICATION_RESPONSE, ThreeDSecureData.JSON_PROPERTY_CAVV, @@ -41,13 +36,12 @@ ThreeDSecureData.JSON_PROPERTY_TRANS_STATUS_REASON, ThreeDSecureData.JSON_PROPERTY_XID }) - public class ThreeDSecureData { /** - * In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. + * In 3D Secure 2, this is the `transStatus` from the challenge result. If the + * transaction was frictionless, omit this parameter. */ public enum AuthenticationResponseEnum { - Y(String.valueOf("Y")), N(String.valueOf("N")), @@ -61,7 +55,7 @@ public enum AuthenticationResponseEnum { private String value; AuthenticationResponseEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -82,7 +76,11 @@ public static AuthenticationResponseEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AuthenticationResponseEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AuthenticationResponseEnum.values())); + LOG.warning( + "AuthenticationResponseEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AuthenticationResponseEnum.values())); return null; } } @@ -97,10 +95,11 @@ public static AuthenticationResponseEnum fromValue(String value) { private String cavvAlgorithm; /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the + * authentication has been cancelled. For possible values, refer to [3D Secure API + * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). */ public enum ChallengeCancelEnum { - _01(String.valueOf("01")), _02(String.valueOf("02")), @@ -120,7 +119,7 @@ public enum ChallengeCancelEnum { private String value; ChallengeCancelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -141,7 +140,11 @@ public static ChallengeCancelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ChallengeCancelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ChallengeCancelEnum.values())); + LOG.warning( + "ChallengeCancelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ChallengeCancelEnum.values())); return null; } } @@ -149,11 +152,8 @@ public static ChallengeCancelEnum fromValue(String value) { public static final String JSON_PROPERTY_CHALLENGE_CANCEL = "challengeCancel"; private ChallengeCancelEnum challengeCancel; - /** - * In 3D Secure 2, this is the `transStatus` from the `ARes`. - */ + /** In 3D Secure 2, this is the `transStatus` from the `ARes`. */ public enum DirectoryResponseEnum { - A(String.valueOf("A")), C(String.valueOf("C")), @@ -175,7 +175,7 @@ public enum DirectoryResponseEnum { private String value; DirectoryResponseEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -196,7 +196,11 @@ public static DirectoryResponseEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("DirectoryResponseEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(DirectoryResponseEnum.values())); + LOG.warning( + "DirectoryResponseEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(DirectoryResponseEnum.values())); return null; } } @@ -216,7 +220,8 @@ public static DirectoryResponseEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_VERSION = "threeDSVersion"; private String threeDSVersion; - public static final String JSON_PROPERTY_TOKEN_AUTHENTICATION_VERIFICATION_VALUE = "tokenAuthenticationVerificationValue"; + public static final String JSON_PROPERTY_TOKEN_AUTHENTICATION_VERIFICATION_VALUE = + "tokenAuthenticationVerificationValue"; private byte[] tokenAuthenticationVerificationValue; public static final String JSON_PROPERTY_TRANS_STATUS_REASON = "transStatusReason"; @@ -225,23 +230,28 @@ public static DirectoryResponseEnum fromValue(String value) { public static final String JSON_PROPERTY_XID = "xid"; private byte[] xid; - public ThreeDSecureData() { - } + public ThreeDSecureData() {} /** - * In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. + * In 3D Secure 2, this is the `transStatus` from the challenge result. If the + * transaction was frictionless, omit this parameter. * - * @param authenticationResponse In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. + * @param authenticationResponse In 3D Secure 2, this is the `transStatus` from the + * challenge result. If the transaction was frictionless, omit this parameter. * @return the current {@code ThreeDSecureData} instance, allowing for method chaining */ - public ThreeDSecureData authenticationResponse(AuthenticationResponseEnum authenticationResponse) { + public ThreeDSecureData authenticationResponse( + AuthenticationResponseEnum authenticationResponse) { this.authenticationResponse = authenticationResponse; return this; } /** - * In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. - * @return authenticationResponse In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. + * In 3D Secure 2, this is the `transStatus` from the challenge result. If the + * transaction was frictionless, omit this parameter. + * + * @return authenticationResponse In 3D Secure 2, this is the `transStatus` from the + * challenge result. If the transaction was frictionless, omit this parameter. */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,9 +260,11 @@ public AuthenticationResponseEnum getAuthenticationResponse() { } /** - * In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. + * In 3D Secure 2, this is the `transStatus` from the challenge result. If the + * transaction was frictionless, omit this parameter. * - * @param authenticationResponse In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. + * @param authenticationResponse In 3D Secure 2, this is the `transStatus` from the + * challenge result. If the transaction was frictionless, omit this parameter. */ @JsonProperty(JSON_PROPERTY_AUTHENTICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -273,6 +285,7 @@ public ThreeDSecureData cavv(byte[] cavv) { /** * The cardholder authentication value (base64 encoded, 20 bytes in a decoded form). + * * @return cavv The cardholder authentication value (base64 encoded, 20 bytes in a decoded form). */ @JsonProperty(JSON_PROPERTY_CAVV) @@ -305,6 +318,7 @@ public ThreeDSecureData cavvAlgorithm(String cavvAlgorithm) { /** * The CAVV algorithm used. Include this only for 3D Secure 1. + * * @return cavvAlgorithm The CAVV algorithm used. Include this only for 3D Secure 1. */ @JsonProperty(JSON_PROPERTY_CAVV_ALGORITHM) @@ -325,9 +339,14 @@ public void setCavvAlgorithm(String cavvAlgorithm) { } /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the + * authentication has been cancelled. For possible values, refer to [3D Secure API + * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). * - * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory + * Server (DS) that the authentication has been cancelled. For possible values, refer to [3D + * Secure API + * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). * @return the current {@code ThreeDSecureData} instance, allowing for method chaining */ public ThreeDSecureData challengeCancel(ChallengeCancelEnum challengeCancel) { @@ -336,8 +355,14 @@ public ThreeDSecureData challengeCancel(ChallengeCancelEnum challengeCancel) { } /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). - * @return challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the + * authentication has been cancelled. For possible values, refer to [3D Secure API + * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * + * @return challengeCancel Indicator informing the Access Control Server (ACS) and the Directory + * Server (DS) that the authentication has been cancelled. For possible values, refer to [3D + * Secure API + * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). */ @JsonProperty(JSON_PROPERTY_CHALLENGE_CANCEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -346,9 +371,14 @@ public ChallengeCancelEnum getChallengeCancel() { } /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the + * authentication has been cancelled. For possible values, refer to [3D Secure API + * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). * - * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + * @param challengeCancel Indicator informing the Access Control Server (ACS) and the Directory + * Server (DS) that the authentication has been cancelled. For possible values, refer to [3D + * Secure API + * reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). */ @JsonProperty(JSON_PROPERTY_CHALLENGE_CANCEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -357,9 +387,10 @@ public void setChallengeCancel(ChallengeCancelEnum challengeCancel) { } /** - * In 3D Secure 2, this is the `transStatus` from the `ARes`. + * In 3D Secure 2, this is the `transStatus` from the `ARes`. * - * @param directoryResponse In 3D Secure 2, this is the `transStatus` from the `ARes`. + * @param directoryResponse In 3D Secure 2, this is the `transStatus` from the + * `ARes`. * @return the current {@code ThreeDSecureData} instance, allowing for method chaining */ public ThreeDSecureData directoryResponse(DirectoryResponseEnum directoryResponse) { @@ -368,8 +399,10 @@ public ThreeDSecureData directoryResponse(DirectoryResponseEnum directoryRespons } /** - * In 3D Secure 2, this is the `transStatus` from the `ARes`. - * @return directoryResponse In 3D Secure 2, this is the `transStatus` from the `ARes`. + * In 3D Secure 2, this is the `transStatus` from the `ARes`. + * + * @return directoryResponse In 3D Secure 2, this is the `transStatus` from the + * `ARes`. */ @JsonProperty(JSON_PROPERTY_DIRECTORY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -378,9 +411,10 @@ public DirectoryResponseEnum getDirectoryResponse() { } /** - * In 3D Secure 2, this is the `transStatus` from the `ARes`. + * In 3D Secure 2, this is the `transStatus` from the `ARes`. * - * @param directoryResponse In 3D Secure 2, this is the `transStatus` from the `ARes`. + * @param directoryResponse In 3D Secure 2, this is the `transStatus` from the + * `ARes`. */ @JsonProperty(JSON_PROPERTY_DIRECTORY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -389,9 +423,11 @@ public void setDirectoryResponse(DirectoryResponseEnum directoryResponse) { } /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. + * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server + * (DS) to identify a single transaction. * - * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. + * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the + * Directory Server (DS) to identify a single transaction. * @return the current {@code ThreeDSecureData} instance, allowing for method chaining */ public ThreeDSecureData dsTransID(String dsTransID) { @@ -400,8 +436,11 @@ public ThreeDSecureData dsTransID(String dsTransID) { } /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. - * @return dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. + * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server + * (DS) to identify a single transaction. + * + * @return dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the + * Directory Server (DS) to identify a single transaction. */ @JsonProperty(JSON_PROPERTY_DS_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -410,9 +449,11 @@ public String getDsTransID() { } /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. + * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server + * (DS) to identify a single transaction. * - * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. + * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the + * Directory Server (DS) to identify a single transaction. */ @JsonProperty(JSON_PROPERTY_DS_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -433,6 +474,7 @@ public ThreeDSecureData eci(String eci) { /** * The electronic commerce indicator. + * * @return eci The electronic commerce indicator. */ @JsonProperty(JSON_PROPERTY_ECI) @@ -455,7 +497,8 @@ public void setEci(String eci) { /** * Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations. * - * @param riskScore Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations. + * @param riskScore Risk score calculated by Directory Server (DS). Required for Cartes Bancaires + * integrations. * @return the current {@code ThreeDSecureData} instance, allowing for method chaining */ public ThreeDSecureData riskScore(String riskScore) { @@ -465,7 +508,9 @@ public ThreeDSecureData riskScore(String riskScore) { /** * Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations. - * @return riskScore Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations. + * + * @return riskScore Risk score calculated by Directory Server (DS). Required for Cartes Bancaires + * integrations. */ @JsonProperty(JSON_PROPERTY_RISK_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -476,7 +521,8 @@ public String getRiskScore() { /** * Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations. * - * @param riskScore Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations. + * @param riskScore Risk score calculated by Directory Server (DS). Required for Cartes Bancaires + * integrations. */ @JsonProperty(JSON_PROPERTY_RISK_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -497,6 +543,7 @@ public ThreeDSecureData threeDSVersion(String threeDSVersion) { /** * The version of the 3D Secure protocol. + * * @return threeDSVersion The version of the 3D Secure protocol. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_VERSION) @@ -519,17 +566,21 @@ public void setThreeDSVersion(String threeDSVersion) { /** * Network token authentication verification value (TAVV). The network token cryptogram. * - * @param tokenAuthenticationVerificationValue Network token authentication verification value (TAVV). The network token cryptogram. + * @param tokenAuthenticationVerificationValue Network token authentication verification value + * (TAVV). The network token cryptogram. * @return the current {@code ThreeDSecureData} instance, allowing for method chaining */ - public ThreeDSecureData tokenAuthenticationVerificationValue(byte[] tokenAuthenticationVerificationValue) { + public ThreeDSecureData tokenAuthenticationVerificationValue( + byte[] tokenAuthenticationVerificationValue) { this.tokenAuthenticationVerificationValue = tokenAuthenticationVerificationValue; return this; } /** * Network token authentication verification value (TAVV). The network token cryptogram. - * @return tokenAuthenticationVerificationValue Network token authentication verification value (TAVV). The network token cryptogram. + * + * @return tokenAuthenticationVerificationValue Network token authentication verification value + * (TAVV). The network token cryptogram. */ @JsonProperty(JSON_PROPERTY_TOKEN_AUTHENTICATION_VERIFICATION_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -540,7 +591,8 @@ public byte[] getTokenAuthenticationVerificationValue() { /** * Network token authentication verification value (TAVV). The network token cryptogram. * - * @param tokenAuthenticationVerificationValue Network token authentication verification value (TAVV). The network token cryptogram. + * @param tokenAuthenticationVerificationValue Network token authentication verification value + * (TAVV). The network token cryptogram. */ @JsonProperty(JSON_PROPERTY_TOKEN_AUTHENTICATION_VERIFICATION_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -549,9 +601,13 @@ public void setTokenAuthenticationVerificationValue(byte[] tokenAuthenticationVe } /** - * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * Provides information on why the `transStatus` field has the specified value. For + * possible values, refer to [our + * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). * - * @param transStatusReason Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * @param transStatusReason Provides information on why the `transStatus` field has the + * specified value. For possible values, refer to [our + * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). * @return the current {@code ThreeDSecureData} instance, allowing for method chaining */ public ThreeDSecureData transStatusReason(String transStatusReason) { @@ -560,8 +616,13 @@ public ThreeDSecureData transStatusReason(String transStatusReason) { } /** - * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). - * @return transStatusReason Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * Provides information on why the `transStatus` field has the specified value. For + * possible values, refer to [our + * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * + * @return transStatusReason Provides information on why the `transStatus` field has the + * specified value. For possible values, refer to [our + * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -570,9 +631,13 @@ public String getTransStatusReason() { } /** - * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * Provides information on why the `transStatus` field has the specified value. For + * possible values, refer to [our + * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). * - * @param transStatusReason Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + * @param transStatusReason Provides information on why the `transStatus` field has the + * specified value. For possible values, refer to [our + * docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). */ @JsonProperty(JSON_PROPERTY_TRANS_STATUS_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -581,9 +646,11 @@ public void setTransStatusReason(String transStatusReason) { } /** - * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). + * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded + * form). * - * @param xid Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). + * @param xid Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a + * decoded form). * @return the current {@code ThreeDSecureData} instance, allowing for method chaining */ public ThreeDSecureData xid(byte[] xid) { @@ -592,8 +659,11 @@ public ThreeDSecureData xid(byte[] xid) { } /** - * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). - * @return xid Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). + * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded + * form). + * + * @return xid Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in + * a decoded form). */ @JsonProperty(JSON_PROPERTY_XID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -602,9 +672,11 @@ public byte[] getXid() { } /** - * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). + * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded + * form). * - * @param xid Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). + * @param xid Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a + * decoded form). */ @JsonProperty(JSON_PROPERTY_XID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -612,9 +684,7 @@ public void setXid(byte[] xid) { this.xid = xid; } - /** - * Return true if this ThreeDSecureData object is equal to o. - */ + /** Return true if this ThreeDSecureData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -624,30 +694,46 @@ public boolean equals(Object o) { return false; } ThreeDSecureData threeDSecureData = (ThreeDSecureData) o; - return Objects.equals(this.authenticationResponse, threeDSecureData.authenticationResponse) && - Arrays.equals(this.cavv, threeDSecureData.cavv) && - Objects.equals(this.cavvAlgorithm, threeDSecureData.cavvAlgorithm) && - Objects.equals(this.challengeCancel, threeDSecureData.challengeCancel) && - Objects.equals(this.directoryResponse, threeDSecureData.directoryResponse) && - Objects.equals(this.dsTransID, threeDSecureData.dsTransID) && - Objects.equals(this.eci, threeDSecureData.eci) && - Objects.equals(this.riskScore, threeDSecureData.riskScore) && - Objects.equals(this.threeDSVersion, threeDSecureData.threeDSVersion) && - Arrays.equals(this.tokenAuthenticationVerificationValue, threeDSecureData.tokenAuthenticationVerificationValue) && - Objects.equals(this.transStatusReason, threeDSecureData.transStatusReason) && - Arrays.equals(this.xid, threeDSecureData.xid); + return Objects.equals(this.authenticationResponse, threeDSecureData.authenticationResponse) + && Arrays.equals(this.cavv, threeDSecureData.cavv) + && Objects.equals(this.cavvAlgorithm, threeDSecureData.cavvAlgorithm) + && Objects.equals(this.challengeCancel, threeDSecureData.challengeCancel) + && Objects.equals(this.directoryResponse, threeDSecureData.directoryResponse) + && Objects.equals(this.dsTransID, threeDSecureData.dsTransID) + && Objects.equals(this.eci, threeDSecureData.eci) + && Objects.equals(this.riskScore, threeDSecureData.riskScore) + && Objects.equals(this.threeDSVersion, threeDSecureData.threeDSVersion) + && Arrays.equals( + this.tokenAuthenticationVerificationValue, + threeDSecureData.tokenAuthenticationVerificationValue) + && Objects.equals(this.transStatusReason, threeDSecureData.transStatusReason) + && Arrays.equals(this.xid, threeDSecureData.xid); } @Override public int hashCode() { - return Objects.hash(authenticationResponse, Arrays.hashCode(cavv), cavvAlgorithm, challengeCancel, directoryResponse, dsTransID, eci, riskScore, threeDSVersion, Arrays.hashCode(tokenAuthenticationVerificationValue), transStatusReason, Arrays.hashCode(xid)); + return Objects.hash( + authenticationResponse, + Arrays.hashCode(cavv), + cavvAlgorithm, + challengeCancel, + directoryResponse, + dsTransID, + eci, + riskScore, + threeDSVersion, + Arrays.hashCode(tokenAuthenticationVerificationValue), + transStatusReason, + Arrays.hashCode(xid)); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ThreeDSecureData {\n"); - sb.append(" authenticationResponse: ").append(toIndentedString(authenticationResponse)).append("\n"); + sb.append(" authenticationResponse: ") + .append(toIndentedString(authenticationResponse)) + .append("\n"); sb.append(" cavv: ").append(toIndentedString(cavv)).append("\n"); sb.append(" cavvAlgorithm: ").append(toIndentedString(cavvAlgorithm)).append("\n"); sb.append(" challengeCancel: ").append(toIndentedString(challengeCancel)).append("\n"); @@ -656,7 +742,9 @@ public String toString() { sb.append(" eci: ").append(toIndentedString(eci)).append("\n"); sb.append(" riskScore: ").append(toIndentedString(riskScore)).append("\n"); sb.append(" threeDSVersion: ").append(toIndentedString(threeDSVersion)).append("\n"); - sb.append(" tokenAuthenticationVerificationValue: ").append(toIndentedString(tokenAuthenticationVerificationValue)).append("\n"); + sb.append(" tokenAuthenticationVerificationValue: ") + .append(toIndentedString(tokenAuthenticationVerificationValue)) + .append("\n"); sb.append(" transStatusReason: ").append(toIndentedString(transStatusReason)).append("\n"); sb.append(" xid: ").append(toIndentedString(xid)).append("\n"); sb.append("}"); @@ -664,8 +752,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -674,7 +761,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ThreeDSecureData given an JSON string * * @param jsonString JSON string @@ -684,11 +771,12 @@ private String toIndentedString(Object o) { public static ThreeDSecureData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDSecureData.class); } -/** - * Convert an instance of ThreeDSecureData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ThreeDSecureData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payment/VoidPendingRefundRequest.java b/src/main/java/com/adyen/model/payment/VoidPendingRefundRequest.java index d858ae9aa..d1a4950fe 100644 --- a/src/main/java/com/adyen/model/payment/VoidPendingRefundRequest.java +++ b/src/main/java/com/adyen/model/payment/VoidPendingRefundRequest.java @@ -2,39 +2,26 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payment; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.payment.Amount; -import com.adyen.model.payment.PlatformChargebackLogic; -import com.adyen.model.payment.Split; -import com.adyen.model.payment.ThreeDSecureData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; -import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -/** - * VoidPendingRefundRequest - */ +/** VoidPendingRefundRequest */ @JsonPropertyOrder({ VoidPendingRefundRequest.JSON_PROPERTY_ADDITIONAL_DATA, VoidPendingRefundRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, @@ -48,7 +35,6 @@ VoidPendingRefundRequest.JSON_PROPERTY_TENDER_REFERENCE, VoidPendingRefundRequest.JSON_PROPERTY_UNIQUE_TERMINAL_ID }) - public class VoidPendingRefundRequest { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -62,7 +48,8 @@ public class VoidPendingRefundRequest { public static final String JSON_PROPERTY_MPI_DATA = "mpiData"; private ThreeDSecureData mpiData; - public static final String JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE = "originalMerchantReference"; + public static final String JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE = + "originalMerchantReference"; private String originalMerchantReference; public static final String JSON_PROPERTY_ORIGINAL_REFERENCE = "originalReference"; @@ -83,13 +70,16 @@ public class VoidPendingRefundRequest { public static final String JSON_PROPERTY_UNIQUE_TERMINAL_ID = "uniqueTerminalId"; private String uniqueTerminalId; - public VoidPendingRefundRequest() { - } + public VoidPendingRefundRequest() {} /** - * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular modification + * request. The additionalData object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a + * particular modification request. The additionalData object consists of entries, each of + * which includes the key and value. * @return the current {@code VoidPendingRefundRequest} instance, allowing for method chaining */ public VoidPendingRefundRequest additionalData(Map additionalData) { @@ -106,8 +96,13 @@ public VoidPendingRefundRequest putAdditionalDataItem(String key, String additio } /** - * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. - * @return additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular modification + * request. The additionalData object consists of entries, each of which includes the key and + * value. + * + * @return additionalData This field contains additional data, which may be required for a + * particular modification request. The additionalData object consists of entries, each of + * which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,9 +111,13 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be required for a particular modification + * request. The additionalData object consists of entries, each of which includes the key and + * value. * - * @param additionalData This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be required for a + * particular modification request. The additionalData object consists of entries, each of + * which includes the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,6 +138,7 @@ public VoidPendingRefundRequest merchantAccount(String merchantAccount) { /** * The merchant account that is used to process the payment. + * * @return merchantAccount The merchant account that is used to process the payment. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -161,7 +161,7 @@ public void setMerchantAccount(String merchantAccount) { /** * modificationAmount * - * @param modificationAmount + * @param modificationAmount * @return the current {@code VoidPendingRefundRequest} instance, allowing for method chaining */ public VoidPendingRefundRequest modificationAmount(Amount modificationAmount) { @@ -171,7 +171,8 @@ public VoidPendingRefundRequest modificationAmount(Amount modificationAmount) { /** * Get modificationAmount - * @return modificationAmount + * + * @return modificationAmount */ @JsonProperty(JSON_PROPERTY_MODIFICATION_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,7 +183,7 @@ public Amount getModificationAmount() { /** * modificationAmount * - * @param modificationAmount + * @param modificationAmount */ @JsonProperty(JSON_PROPERTY_MODIFICATION_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,7 +194,7 @@ public void setModificationAmount(Amount modificationAmount) { /** * mpiData * - * @param mpiData + * @param mpiData * @return the current {@code VoidPendingRefundRequest} instance, allowing for method chaining */ public VoidPendingRefundRequest mpiData(ThreeDSecureData mpiData) { @@ -203,7 +204,8 @@ public VoidPendingRefundRequest mpiData(ThreeDSecureData mpiData) { /** * Get mpiData - * @return mpiData + * + * @return mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,7 +216,7 @@ public ThreeDSecureData getMpiData() { /** * mpiData * - * @param mpiData + * @param mpiData */ @JsonProperty(JSON_PROPERTY_MPI_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -235,6 +237,7 @@ public VoidPendingRefundRequest originalMerchantReference(String originalMerchan /** * The original merchant reference to cancel. + * * @return originalMerchantReference The original merchant reference to cancel. */ @JsonProperty(JSON_PROPERTY_ORIGINAL_MERCHANT_REFERENCE) @@ -255,9 +258,11 @@ public void setOriginalMerchantReference(String originalMerchantReference) { } /** - * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * + * authorisation response * authorisation notification * - * @param originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * @param originalReference The original pspReference of the payment to modify. This reference is + * returned in: * authorisation response * authorisation notification * @return the current {@code VoidPendingRefundRequest} instance, allowing for method chaining */ public VoidPendingRefundRequest originalReference(String originalReference) { @@ -266,8 +271,11 @@ public VoidPendingRefundRequest originalReference(String originalReference) { } /** - * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification - * @return originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * + * authorisation response * authorisation notification + * + * @return originalReference The original pspReference of the payment to modify. This reference is + * returned in: * authorisation response * authorisation notification */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -276,9 +284,11 @@ public String getOriginalReference() { } /** - * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * The original pspReference of the payment to modify. This reference is returned in: * + * authorisation response * authorisation notification * - * @param originalReference The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + * @param originalReference The original pspReference of the payment to modify. This reference is + * returned in: * authorisation response * authorisation notification */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -289,17 +299,19 @@ public void setOriginalReference(String originalReference) { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic * @return the current {@code VoidPendingRefundRequest} instance, allowing for method chaining */ - public VoidPendingRefundRequest platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) { + public VoidPendingRefundRequest platformChargebackLogic( + PlatformChargebackLogic platformChargebackLogic) { this.platformChargebackLogic = platformChargebackLogic; return this; } /** * Get platformChargebackLogic - * @return platformChargebackLogic + * + * @return platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -310,7 +322,7 @@ public PlatformChargebackLogic getPlatformChargebackLogic() { /** * platformChargebackLogic * - * @param platformChargebackLogic + * @param platformChargebackLogic */ @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -319,9 +331,11 @@ public void setPlatformChargebackLogic(PlatformChargebackLogic platformChargebac } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in + * reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in + * Customer Area and in reports. Maximum length: 80 characters. * @return the current {@code VoidPendingRefundRequest} instance, allowing for method chaining */ public VoidPendingRefundRequest reference(String reference) { @@ -330,8 +344,11 @@ public VoidPendingRefundRequest reference(String reference) { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. - * @return reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in + * reports. Maximum length: 80 characters. + * + * @return reference Your reference for the payment modification. This reference is visible in + * Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -340,9 +357,11 @@ public String getReference() { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in + * reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in + * Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -351,9 +370,13 @@ public void setReference(String reference) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * - * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * @param splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * @return the current {@code VoidPendingRefundRequest} instance, allowing for method chaining */ public VoidPendingRefundRequest splits(List splits) { @@ -370,8 +393,13 @@ public VoidPendingRefundRequest addSplitsItem(Split splitsItem) { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). - * @return splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * + * @return splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -380,9 +408,13 @@ public List getSplits() { } /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * An array of objects specifying how the amount should be split between accounts when using Adyen + * for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). * - * @param splits An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). + * @param splits An array of objects specifying how the amount should be split between accounts + * when using Adyen for Platforms. For more information, see how to split payments for + * [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). */ @JsonProperty(JSON_PROPERTY_SPLITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -393,7 +425,8 @@ public void setSplits(List splits) { /** * The transaction reference provided by the PED. For point-of-sale integrations only. * - * @param tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. + * @param tenderReference The transaction reference provided by the PED. For point-of-sale + * integrations only. * @return the current {@code VoidPendingRefundRequest} instance, allowing for method chaining */ public VoidPendingRefundRequest tenderReference(String tenderReference) { @@ -403,7 +436,9 @@ public VoidPendingRefundRequest tenderReference(String tenderReference) { /** * The transaction reference provided by the PED. For point-of-sale integrations only. - * @return tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. + * + * @return tenderReference The transaction reference provided by the PED. For point-of-sale + * integrations only. */ @JsonProperty(JSON_PROPERTY_TENDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -414,7 +449,8 @@ public String getTenderReference() { /** * The transaction reference provided by the PED. For point-of-sale integrations only. * - * @param tenderReference The transaction reference provided by the PED. For point-of-sale integrations only. + * @param tenderReference The transaction reference provided by the PED. For point-of-sale + * integrations only. */ @JsonProperty(JSON_PROPERTY_TENDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -423,9 +459,11 @@ public void setTenderReference(String tenderReference) { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale + * integrations only. * - * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. + * For point-of-sale integrations only. * @return the current {@code VoidPendingRefundRequest} instance, allowing for method chaining */ public VoidPendingRefundRequest uniqueTerminalId(String uniqueTerminalId) { @@ -434,8 +472,11 @@ public VoidPendingRefundRequest uniqueTerminalId(String uniqueTerminalId) { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. - * @return uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale + * integrations only. + * + * @return uniqueTerminalId Unique terminal ID for the PED that originally processed the request. + * For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -444,9 +485,11 @@ public String getUniqueTerminalId() { } /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * Unique terminal ID for the PED that originally processed the request. For point-of-sale + * integrations only. * - * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + * @param uniqueTerminalId Unique terminal ID for the PED that originally processed the request. + * For point-of-sale integrations only. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -454,9 +497,7 @@ public void setUniqueTerminalId(String uniqueTerminalId) { this.uniqueTerminalId = uniqueTerminalId; } - /** - * Return true if this VoidPendingRefundRequest object is equal to o. - */ + /** Return true if this VoidPendingRefundRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -466,22 +507,35 @@ public boolean equals(Object o) { return false; } VoidPendingRefundRequest voidPendingRefundRequest = (VoidPendingRefundRequest) o; - return Objects.equals(this.additionalData, voidPendingRefundRequest.additionalData) && - Objects.equals(this.merchantAccount, voidPendingRefundRequest.merchantAccount) && - Objects.equals(this.modificationAmount, voidPendingRefundRequest.modificationAmount) && - Objects.equals(this.mpiData, voidPendingRefundRequest.mpiData) && - Objects.equals(this.originalMerchantReference, voidPendingRefundRequest.originalMerchantReference) && - Objects.equals(this.originalReference, voidPendingRefundRequest.originalReference) && - Objects.equals(this.platformChargebackLogic, voidPendingRefundRequest.platformChargebackLogic) && - Objects.equals(this.reference, voidPendingRefundRequest.reference) && - Objects.equals(this.splits, voidPendingRefundRequest.splits) && - Objects.equals(this.tenderReference, voidPendingRefundRequest.tenderReference) && - Objects.equals(this.uniqueTerminalId, voidPendingRefundRequest.uniqueTerminalId); + return Objects.equals(this.additionalData, voidPendingRefundRequest.additionalData) + && Objects.equals(this.merchantAccount, voidPendingRefundRequest.merchantAccount) + && Objects.equals(this.modificationAmount, voidPendingRefundRequest.modificationAmount) + && Objects.equals(this.mpiData, voidPendingRefundRequest.mpiData) + && Objects.equals( + this.originalMerchantReference, voidPendingRefundRequest.originalMerchantReference) + && Objects.equals(this.originalReference, voidPendingRefundRequest.originalReference) + && Objects.equals( + this.platformChargebackLogic, voidPendingRefundRequest.platformChargebackLogic) + && Objects.equals(this.reference, voidPendingRefundRequest.reference) + && Objects.equals(this.splits, voidPendingRefundRequest.splits) + && Objects.equals(this.tenderReference, voidPendingRefundRequest.tenderReference) + && Objects.equals(this.uniqueTerminalId, voidPendingRefundRequest.uniqueTerminalId); } @Override public int hashCode() { - return Objects.hash(additionalData, merchantAccount, modificationAmount, mpiData, originalMerchantReference, originalReference, platformChargebackLogic, reference, splits, tenderReference, uniqueTerminalId); + return Objects.hash( + additionalData, + merchantAccount, + modificationAmount, + mpiData, + originalMerchantReference, + originalReference, + platformChargebackLogic, + reference, + splits, + tenderReference, + uniqueTerminalId); } @Override @@ -492,9 +546,13 @@ public String toString() { sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" modificationAmount: ").append(toIndentedString(modificationAmount)).append("\n"); sb.append(" mpiData: ").append(toIndentedString(mpiData)).append("\n"); - sb.append(" originalMerchantReference: ").append(toIndentedString(originalMerchantReference)).append("\n"); + sb.append(" originalMerchantReference: ") + .append(toIndentedString(originalMerchantReference)) + .append("\n"); sb.append(" originalReference: ").append(toIndentedString(originalReference)).append("\n"); - sb.append(" platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n"); + sb.append(" platformChargebackLogic: ") + .append(toIndentedString(platformChargebackLogic)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" tenderReference: ").append(toIndentedString(tenderReference)).append("\n"); @@ -504,8 +562,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -514,21 +571,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of VoidPendingRefundRequest given an JSON string * * @param jsonString JSON string * @return An instance of VoidPendingRefundRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to VoidPendingRefundRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * VoidPendingRefundRequest */ - public static VoidPendingRefundRequest fromJson(String jsonString) throws JsonProcessingException { + public static VoidPendingRefundRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, VoidPendingRefundRequest.class); } -/** - * Convert an instance of VoidPendingRefundRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of VoidPendingRefundRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/paymentsapp/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/paymentsapp/AbstractOpenApiSchema.java index 881544361..4a6afb0af 100644 --- a/src/main/java/com/adyen/model/paymentsapp/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/paymentsapp/AbstractOpenApiSchema.java @@ -2,145 +2,141 @@ * Payments App API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.paymentsapp; -import java.util.Objects; -import java.util.Map; -import jakarta.ws.rs.core.GenericType; - import com.fasterxml.jackson.annotation.JsonValue; +import jakarta.ws.rs.core.GenericType; +import java.util.Map; +import java.util.Objects; -/** - * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec - */ +/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() {return instance;} - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) {this.instance = instance;} - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); - } else { - return object.getActualInstance(); - } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() { + return instance; + } + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) { + this.instance = instance; + } + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf + * schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); + } else { + return object.getActualInstance(); } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) && - Objects.equals(this.isNullable, a.isNullable) && - Objects.equals(this.schemaType, a.schemaType); + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; } + return o.toString().replace("\n", "\n "); + } - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); + public boolean equals(Object o) { + if (this == o) { + return true; } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); + if (o == null || getClass() != o.getClass()) { + return false; } - - - -} \ No newline at end of file + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) + && Objects.equals(this.isNullable, a.isNullable) + && Objects.equals(this.schemaType, a.schemaType); + } + + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); + } + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); + } +} diff --git a/src/main/java/com/adyen/model/paymentsapp/BoardingTokenRequest.java b/src/main/java/com/adyen/model/paymentsapp/BoardingTokenRequest.java index fe98edd66..88789430f 100644 --- a/src/main/java/com/adyen/model/paymentsapp/BoardingTokenRequest.java +++ b/src/main/java/com/adyen/model/paymentsapp/BoardingTokenRequest.java @@ -2,41 +2,28 @@ * Payments App API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.paymentsapp; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * BoardingTokenRequest - */ -@JsonPropertyOrder({ - BoardingTokenRequest.JSON_PROPERTY_BOARDING_REQUEST_TOKEN -}) - +/** BoardingTokenRequest */ +@JsonPropertyOrder({BoardingTokenRequest.JSON_PROPERTY_BOARDING_REQUEST_TOKEN}) public class BoardingTokenRequest { public static final String JSON_PROPERTY_BOARDING_REQUEST_TOKEN = "boardingRequestToken"; private String boardingRequestToken; - public BoardingTokenRequest() { - } + public BoardingTokenRequest() {} /** * The boardingToken request token. @@ -51,6 +38,7 @@ public BoardingTokenRequest boardingRequestToken(String boardingRequestToken) { /** * The boardingToken request token. + * * @return boardingRequestToken The boardingToken request token. */ @JsonProperty(JSON_PROPERTY_BOARDING_REQUEST_TOKEN) @@ -70,9 +58,7 @@ public void setBoardingRequestToken(String boardingRequestToken) { this.boardingRequestToken = boardingRequestToken; } - /** - * Return true if this BoardingTokenRequest object is equal to o. - */ + /** Return true if this BoardingTokenRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -94,14 +80,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BoardingTokenRequest {\n"); - sb.append(" boardingRequestToken: ").append(toIndentedString(boardingRequestToken)).append("\n"); + sb.append(" boardingRequestToken: ") + .append(toIndentedString(boardingRequestToken)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +97,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BoardingTokenRequest given an JSON string * * @param jsonString JSON string * @return An instance of BoardingTokenRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to BoardingTokenRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BoardingTokenRequest */ public static BoardingTokenRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BoardingTokenRequest.class); } -/** - * Convert an instance of BoardingTokenRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BoardingTokenRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/paymentsapp/BoardingTokenResponse.java b/src/main/java/com/adyen/model/paymentsapp/BoardingTokenResponse.java index 85cc9bef2..c9514b7bb 100644 --- a/src/main/java/com/adyen/model/paymentsapp/BoardingTokenResponse.java +++ b/src/main/java/com/adyen/model/paymentsapp/BoardingTokenResponse.java @@ -2,36 +2,26 @@ * Payments App API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.paymentsapp; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * BoardingTokenResponse - */ +/** BoardingTokenResponse */ @JsonPropertyOrder({ BoardingTokenResponse.JSON_PROPERTY_BOARDING_TOKEN, BoardingTokenResponse.JSON_PROPERTY_INSTALLATION_ID }) - public class BoardingTokenResponse { public static final String JSON_PROPERTY_BOARDING_TOKEN = "boardingToken"; private String boardingToken; @@ -39,8 +29,7 @@ public class BoardingTokenResponse { public static final String JSON_PROPERTY_INSTALLATION_ID = "installationId"; private String installationId; - public BoardingTokenResponse() { - } + public BoardingTokenResponse() {} /** * The boarding token that allows the Payments App to board. @@ -55,6 +44,7 @@ public BoardingTokenResponse boardingToken(String boardingToken) { /** * The boarding token that allows the Payments App to board. + * * @return boardingToken The boarding token that allows the Payments App to board. */ @JsonProperty(JSON_PROPERTY_BOARDING_TOKEN) @@ -87,6 +77,7 @@ public BoardingTokenResponse installationId(String installationId) { /** * The unique identifier of the Payments App instance. + * * @return installationId The unique identifier of the Payments App instance. */ @JsonProperty(JSON_PROPERTY_INSTALLATION_ID) @@ -106,9 +97,7 @@ public void setInstallationId(String installationId) { this.installationId = installationId; } - /** - * Return true if this BoardingTokenResponse object is equal to o. - */ + /** Return true if this BoardingTokenResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +107,8 @@ public boolean equals(Object o) { return false; } BoardingTokenResponse boardingTokenResponse = (BoardingTokenResponse) o; - return Objects.equals(this.boardingToken, boardingTokenResponse.boardingToken) && - Objects.equals(this.installationId, boardingTokenResponse.installationId); + return Objects.equals(this.boardingToken, boardingTokenResponse.boardingToken) + && Objects.equals(this.installationId, boardingTokenResponse.installationId); } @Override @@ -138,8 +127,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +136,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BoardingTokenResponse given an JSON string * * @param jsonString JSON string * @return An instance of BoardingTokenResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to BoardingTokenResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BoardingTokenResponse */ public static BoardingTokenResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BoardingTokenResponse.class); } -/** - * Convert an instance of BoardingTokenResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BoardingTokenResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/paymentsapp/DefaultErrorResponseEntity.java b/src/main/java/com/adyen/model/paymentsapp/DefaultErrorResponseEntity.java index 9ec757456..b213ca95a 100644 --- a/src/main/java/com/adyen/model/paymentsapp/DefaultErrorResponseEntity.java +++ b/src/main/java/com/adyen/model/paymentsapp/DefaultErrorResponseEntity.java @@ -2,34 +2,24 @@ * Payments App API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.paymentsapp; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.paymentsapp.InvalidField; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * Standardized error response following RFC-7807 format - */ +/** Standardized error response following RFC-7807 format */ @JsonPropertyOrder({ DefaultErrorResponseEntity.JSON_PROPERTY_DETAIL, DefaultErrorResponseEntity.JSON_PROPERTY_ERROR_CODE, @@ -40,7 +30,6 @@ DefaultErrorResponseEntity.JSON_PROPERTY_TITLE, DefaultErrorResponseEntity.JSON_PROPERTY_TYPE }) - public class DefaultErrorResponseEntity { public static final String JSON_PROPERTY_DETAIL = "detail"; private String detail; @@ -66,8 +55,7 @@ public class DefaultErrorResponseEntity { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public DefaultErrorResponseEntity() { - } + public DefaultErrorResponseEntity() {} /** * A human-readable explanation specific to this occurrence of the problem. @@ -82,6 +70,7 @@ public DefaultErrorResponseEntity detail(String detail) { /** * A human-readable explanation specific to this occurrence of the problem. + * * @return detail A human-readable explanation specific to this occurrence of the problem. */ @JsonProperty(JSON_PROPERTY_DETAIL) @@ -114,6 +103,7 @@ public DefaultErrorResponseEntity errorCode(String errorCode) { /** * Unique business error code. + * * @return errorCode Unique business error code. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -146,6 +136,7 @@ public DefaultErrorResponseEntity instance(String instance) { /** * A URI that identifies the specific occurrence of the problem if applicable. + * * @return instance A URI that identifies the specific occurrence of the problem if applicable. */ @JsonProperty(JSON_PROPERTY_INSTANCE) @@ -186,6 +177,7 @@ public DefaultErrorResponseEntity addInvalidFieldsItem(InvalidField invalidField /** * Array of fields with validation errors when applicable. + * * @return invalidFields Array of fields with validation errors when applicable. */ @JsonProperty(JSON_PROPERTY_INVALID_FIELDS) @@ -218,6 +210,7 @@ public DefaultErrorResponseEntity requestId(String requestId) { /** * The unique reference for the request. + * * @return requestId The unique reference for the request. */ @JsonProperty(JSON_PROPERTY_REQUEST_ID) @@ -250,6 +243,7 @@ public DefaultErrorResponseEntity status(Integer status) { /** * The HTTP status code. + * * @return status The HTTP status code. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -282,6 +276,7 @@ public DefaultErrorResponseEntity title(String title) { /** * A short, human-readable summary of the problem type. + * * @return title A short, human-readable summary of the problem type. */ @JsonProperty(JSON_PROPERTY_TITLE) @@ -302,9 +297,11 @@ public void setTitle(String title) { } /** - * A URI that identifies the validation error type. It points to human-readable documentation for the problem type. + * A URI that identifies the validation error type. It points to human-readable documentation for + * the problem type. * - * @param type A URI that identifies the validation error type. It points to human-readable documentation for the problem type. + * @param type A URI that identifies the validation error type. It points to human-readable + * documentation for the problem type. * @return the current {@code DefaultErrorResponseEntity} instance, allowing for method chaining */ public DefaultErrorResponseEntity type(String type) { @@ -313,8 +310,11 @@ public DefaultErrorResponseEntity type(String type) { } /** - * A URI that identifies the validation error type. It points to human-readable documentation for the problem type. - * @return type A URI that identifies the validation error type. It points to human-readable documentation for the problem type. + * A URI that identifies the validation error type. It points to human-readable documentation for + * the problem type. + * + * @return type A URI that identifies the validation error type. It points to human-readable + * documentation for the problem type. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -323,9 +323,11 @@ public String getType() { } /** - * A URI that identifies the validation error type. It points to human-readable documentation for the problem type. + * A URI that identifies the validation error type. It points to human-readable documentation for + * the problem type. * - * @param type A URI that identifies the validation error type. It points to human-readable documentation for the problem type. + * @param type A URI that identifies the validation error type. It points to human-readable + * documentation for the problem type. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -333,9 +335,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this DefaultErrorResponseEntity object is equal to o. - */ + /** Return true if this DefaultErrorResponseEntity object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -345,14 +345,14 @@ public boolean equals(Object o) { return false; } DefaultErrorResponseEntity defaultErrorResponseEntity = (DefaultErrorResponseEntity) o; - return Objects.equals(this.detail, defaultErrorResponseEntity.detail) && - Objects.equals(this.errorCode, defaultErrorResponseEntity.errorCode) && - Objects.equals(this.instance, defaultErrorResponseEntity.instance) && - Objects.equals(this.invalidFields, defaultErrorResponseEntity.invalidFields) && - Objects.equals(this.requestId, defaultErrorResponseEntity.requestId) && - Objects.equals(this.status, defaultErrorResponseEntity.status) && - Objects.equals(this.title, defaultErrorResponseEntity.title) && - Objects.equals(this.type, defaultErrorResponseEntity.type); + return Objects.equals(this.detail, defaultErrorResponseEntity.detail) + && Objects.equals(this.errorCode, defaultErrorResponseEntity.errorCode) + && Objects.equals(this.instance, defaultErrorResponseEntity.instance) + && Objects.equals(this.invalidFields, defaultErrorResponseEntity.invalidFields) + && Objects.equals(this.requestId, defaultErrorResponseEntity.requestId) + && Objects.equals(this.status, defaultErrorResponseEntity.status) + && Objects.equals(this.title, defaultErrorResponseEntity.title) + && Objects.equals(this.type, defaultErrorResponseEntity.type); } @Override @@ -377,8 +377,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -387,21 +386,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DefaultErrorResponseEntity given an JSON string * * @param jsonString JSON string * @return An instance of DefaultErrorResponseEntity - * @throws JsonProcessingException if the JSON string is invalid with respect to DefaultErrorResponseEntity + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DefaultErrorResponseEntity */ - public static DefaultErrorResponseEntity fromJson(String jsonString) throws JsonProcessingException { + public static DefaultErrorResponseEntity fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DefaultErrorResponseEntity.class); } -/** - * Convert an instance of DefaultErrorResponseEntity to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DefaultErrorResponseEntity to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/paymentsapp/InvalidField.java b/src/main/java/com/adyen/model/paymentsapp/InvalidField.java index 03204e163..f7e34ab3e 100644 --- a/src/main/java/com/adyen/model/paymentsapp/InvalidField.java +++ b/src/main/java/com/adyen/model/paymentsapp/InvalidField.java @@ -2,37 +2,27 @@ * Payments App API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.paymentsapp; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * InvalidField - */ +/** InvalidField */ @JsonPropertyOrder({ InvalidField.JSON_PROPERTY_NAME, InvalidField.JSON_PROPERTY_VALUE, InvalidField.JSON_PROPERTY_MESSAGE }) - public class InvalidField { public static final String JSON_PROPERTY_NAME = "name"; private String name; @@ -43,8 +33,7 @@ public class InvalidField { public static final String JSON_PROPERTY_MESSAGE = "message"; private String message; - public InvalidField() { - } + public InvalidField() {} /** * The field that has an invalid value. @@ -59,6 +48,7 @@ public InvalidField name(String name) { /** * The field that has an invalid value. + * * @return name The field that has an invalid value. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -91,6 +81,7 @@ public InvalidField value(String value) { /** * The invalid value. + * * @return value The invalid value. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -123,6 +114,7 @@ public InvalidField message(String message) { /** * Description of the validation error. + * * @return message Description of the validation error. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -142,9 +134,7 @@ public void setMessage(String message) { this.message = message; } - /** - * Return true if this InvalidField object is equal to o. - */ + /** Return true if this InvalidField object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +144,9 @@ public boolean equals(Object o) { return false; } InvalidField invalidField = (InvalidField) o; - return Objects.equals(this.name, invalidField.name) && - Objects.equals(this.value, invalidField.value) && - Objects.equals(this.message, invalidField.message); + return Objects.equals(this.name, invalidField.name) + && Objects.equals(this.value, invalidField.value) + && Objects.equals(this.message, invalidField.message); } @Override @@ -176,8 +166,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +175,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of InvalidField given an JSON string * * @param jsonString JSON string @@ -196,11 +185,12 @@ private String toIndentedString(Object o) { public static InvalidField fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, InvalidField.class); } -/** - * Convert an instance of InvalidField to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of InvalidField to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/paymentsapp/JSON.java b/src/main/java/com/adyen/model/paymentsapp/JSON.java index 22916eab8..29447d5db 100644 --- a/src/main/java/com/adyen/model/paymentsapp/JSON.java +++ b/src/main/java/com/adyen/model/paymentsapp/JSON.java @@ -1,21 +1,18 @@ package com.adyen.model.paymentsapp; -import com.adyen.serializer.ByteArraySerializer; import com.adyen.serializer.ByteArrayDeserializer; +import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import com.adyen.model.paymentsapp.*; - +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -40,6 +37,7 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. + * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -56,11 +54,13 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { return mapper; } + public static ObjectMapper getMapper() { + return mapper; + } /** - * Returns the target model class that should be used to deserialize the input data. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,9 +73,7 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** - * Helper class to register the discriminator mappings. - */ + /** Helper class to register the discriminator mappings. */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -117,9 +115,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. - * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. This + * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -164,13 +162,14 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, - * so it's not possible to use the instanceof keyword. + *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so + * it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf( + Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -194,59 +193,58 @@ public static boolean isInstanceOf(Class modelClass, Object inst, Set, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); + /** A map of discriminators for all model classes. */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = + new HashMap, ClassDiscriminatorMapping>(); - /** - * A map of oneOf/anyOf descendants for each model class. - */ + /** A map of oneOf/anyOf descendants for each model class. */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator( + Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = + new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants(Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants( + Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static - { + static { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/paymentsapp/PaymentsAppDto.java b/src/main/java/com/adyen/model/paymentsapp/PaymentsAppDto.java index 2099052b3..ea0bb7998 100644 --- a/src/main/java/com/adyen/model/paymentsapp/PaymentsAppDto.java +++ b/src/main/java/com/adyen/model/paymentsapp/PaymentsAppDto.java @@ -2,38 +2,28 @@ * Payments App API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.paymentsapp; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * PaymentsAppDto - */ +/** PaymentsAppDto */ @JsonPropertyOrder({ PaymentsAppDto.JSON_PROPERTY_INSTALLATION_ID, PaymentsAppDto.JSON_PROPERTY_MERCHANT_ACCOUNT_CODE, PaymentsAppDto.JSON_PROPERTY_MERCHANT_STORE_CODE, PaymentsAppDto.JSON_PROPERTY_STATUS }) - public class PaymentsAppDto { public static final String JSON_PROPERTY_INSTALLATION_ID = "installationId"; private String installationId; @@ -47,8 +37,7 @@ public class PaymentsAppDto { public static final String JSON_PROPERTY_STATUS = "status"; private String status; - public PaymentsAppDto() { - } + public PaymentsAppDto() {} /** * The unique identifier of the Payments App instance. @@ -63,6 +52,7 @@ public PaymentsAppDto installationId(String installationId) { /** * The unique identifier of the Payments App instance. + * * @return installationId The unique identifier of the Payments App instance. */ @JsonProperty(JSON_PROPERTY_INSTALLATION_ID) @@ -95,6 +85,7 @@ public PaymentsAppDto merchantAccountCode(String merchantAccountCode) { /** * The account code associated with the Payments App instance. + * * @return merchantAccountCode The account code associated with the Payments App instance. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT_CODE) @@ -127,6 +118,7 @@ public PaymentsAppDto merchantStoreCode(String merchantStoreCode) { /** * The store code associated with the Payments App instance. + * * @return merchantStoreCode The store code associated with the Payments App instance. */ @JsonProperty(JSON_PROPERTY_MERCHANT_STORE_CODE) @@ -159,6 +151,7 @@ public PaymentsAppDto status(String status) { /** * The status of the Payments App instance. + * * @return status The status of the Payments App instance. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -178,9 +171,7 @@ public void setStatus(String status) { this.status = status; } - /** - * Return true if this PaymentsAppDto object is equal to o. - */ + /** Return true if this PaymentsAppDto object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -190,10 +181,10 @@ public boolean equals(Object o) { return false; } PaymentsAppDto paymentsAppDto = (PaymentsAppDto) o; - return Objects.equals(this.installationId, paymentsAppDto.installationId) && - Objects.equals(this.merchantAccountCode, paymentsAppDto.merchantAccountCode) && - Objects.equals(this.merchantStoreCode, paymentsAppDto.merchantStoreCode) && - Objects.equals(this.status, paymentsAppDto.status); + return Objects.equals(this.installationId, paymentsAppDto.installationId) + && Objects.equals(this.merchantAccountCode, paymentsAppDto.merchantAccountCode) + && Objects.equals(this.merchantStoreCode, paymentsAppDto.merchantStoreCode) + && Objects.equals(this.status, paymentsAppDto.status); } @Override @@ -206,7 +197,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentsAppDto {\n"); sb.append(" installationId: ").append(toIndentedString(installationId)).append("\n"); - sb.append(" merchantAccountCode: ").append(toIndentedString(merchantAccountCode)).append("\n"); + sb.append(" merchantAccountCode: ") + .append(toIndentedString(merchantAccountCode)) + .append("\n"); sb.append(" merchantStoreCode: ").append(toIndentedString(merchantStoreCode)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append("}"); @@ -214,8 +207,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,7 +216,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentsAppDto given an JSON string * * @param jsonString JSON string @@ -234,11 +226,12 @@ private String toIndentedString(Object o) { public static PaymentsAppDto fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentsAppDto.class); } -/** - * Convert an instance of PaymentsAppDto to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentsAppDto to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/paymentsapp/PaymentsAppResponse.java b/src/main/java/com/adyen/model/paymentsapp/PaymentsAppResponse.java index a9f690745..f8183ad62 100644 --- a/src/main/java/com/adyen/model/paymentsapp/PaymentsAppResponse.java +++ b/src/main/java/com/adyen/model/paymentsapp/PaymentsAppResponse.java @@ -2,44 +2,30 @@ * Payments App API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.paymentsapp; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.paymentsapp.PaymentsAppDto; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * PaymentsAppResponse - */ -@JsonPropertyOrder({ - PaymentsAppResponse.JSON_PROPERTY_PAYMENTS_APPS -}) - +/** PaymentsAppResponse */ +@JsonPropertyOrder({PaymentsAppResponse.JSON_PROPERTY_PAYMENTS_APPS}) public class PaymentsAppResponse { public static final String JSON_PROPERTY_PAYMENTS_APPS = "paymentsApps"; private List paymentsApps; - public PaymentsAppResponse() { - } + public PaymentsAppResponse() {} /** * List of Payments Apps. @@ -62,6 +48,7 @@ public PaymentsAppResponse addPaymentsAppsItem(PaymentsAppDto paymentsAppsItem) /** * List of Payments Apps. + * * @return paymentsApps List of Payments Apps. */ @JsonProperty(JSON_PROPERTY_PAYMENTS_APPS) @@ -81,9 +68,7 @@ public void setPaymentsApps(List paymentsApps) { this.paymentsApps = paymentsApps; } - /** - * Return true if this PaymentsAppResponse object is equal to o. - */ + /** Return true if this PaymentsAppResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -111,8 +96,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -121,21 +105,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentsAppResponse given an JSON string * * @param jsonString JSON string * @return An instance of PaymentsAppResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentsAppResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentsAppResponse */ public static PaymentsAppResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentsAppResponse.class); } -/** - * Convert an instance of PaymentsAppResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentsAppResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/payout/AbstractOpenApiSchema.java index 2b60fe00d..79608e81e 100644 --- a/src/main/java/com/adyen/model/payout/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/payout/AbstractOpenApiSchema.java @@ -2,145 +2,141 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payout; -import java.util.Objects; -import java.util.Map; -import jakarta.ws.rs.core.GenericType; - import com.fasterxml.jackson.annotation.JsonValue; +import jakarta.ws.rs.core.GenericType; +import java.util.Map; +import java.util.Objects; -/** - * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec - */ +/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() {return instance;} - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) {this.instance = instance;} - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); - } else { - return object.getActualInstance(); - } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() { + return instance; + } + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) { + this.instance = instance; + } + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf + * schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); + } else { + return object.getActualInstance(); } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) && - Objects.equals(this.isNullable, a.isNullable) && - Objects.equals(this.schemaType, a.schemaType); + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; } + return o.toString().replace("\n", "\n "); + } - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); + public boolean equals(Object o) { + if (this == o) { + return true; } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); + if (o == null || getClass() != o.getClass()) { + return false; } - - - -} \ No newline at end of file + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) + && Objects.equals(this.isNullable, a.isNullable) + && Objects.equals(this.schemaType, a.schemaType); + } + + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); + } + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); + } +} diff --git a/src/main/java/com/adyen/model/payout/Address.java b/src/main/java/com/adyen/model/payout/Address.java index 42f3069d9..57c638c02 100644 --- a/src/main/java/com/adyen/model/payout/Address.java +++ b/src/main/java/com/adyen/model/payout/Address.java @@ -2,31 +2,22 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Address - */ +/** Address */ @JsonPropertyOrder({ Address.JSON_PROPERTY_CITY, Address.JSON_PROPERTY_COUNTRY, @@ -35,7 +26,6 @@ Address.JSON_PROPERTY_STATE_OR_PROVINCE, Address.JSON_PROPERTY_STREET }) - public class Address { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -55,8 +45,7 @@ public class Address { public static final String JSON_PROPERTY_STREET = "street"; private String street; - public Address() { - } + public Address() {} /** * The name of the city. Maximum length: 3000 characters. @@ -71,6 +60,7 @@ public Address city(String city) { /** * The name of the city. Maximum length: 3000 characters. + * * @return city The name of the city. Maximum length: 3000 characters. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -91,9 +81,13 @@ public void setCity(String city) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't + * know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If + * you don't know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. * @return the current {@code Address} instance, allowing for method chaining */ public Address country(String country) { @@ -102,8 +96,13 @@ public Address country(String country) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. - * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't + * know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. + * + * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If + * you don't know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,9 +111,13 @@ public String getCountry() { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't + * know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If + * you don't know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,6 +138,7 @@ public Address houseNumberOrName(String houseNumberOrName) { /** * The number or name of the house. Maximum length: 3000 characters. + * * @return houseNumberOrName The number or name of the house. Maximum length: 3000 characters. */ @JsonProperty(JSON_PROPERTY_HOUSE_NUMBER_OR_NAME) @@ -155,9 +159,11 @@ public void setHouseNumberOrName(String houseNumberOrName) { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an + * address in all other countries. * - * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten + * characters for an address in all other countries. * @return the current {@code Address} instance, allowing for method chaining */ public Address postalCode(String postalCode) { @@ -166,8 +172,11 @@ public Address postalCode(String postalCode) { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. - * @return postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an + * address in all other countries. + * + * @return postalCode A maximum of five digits for an address in the US, or a maximum of ten + * characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,9 +185,11 @@ public String getPostalCode() { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an + * address in all other countries. * - * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten + * characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,9 +198,11 @@ public void setPostalCode(String postalCode) { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in + * Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** + * in the US or **ON** in Canada. > Required for the US and Canada. * @return the current {@code Address} instance, allowing for method chaining */ public Address stateOrProvince(String stateOrProvince) { @@ -198,8 +211,11 @@ public Address stateOrProvince(String stateOrProvince) { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. - * @return stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in + * Canada. > Required for the US and Canada. + * + * @return stateOrProvince The two-character ISO 3166-2 state or province code. For example, + * **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,9 +224,11 @@ public String getStateOrProvince() { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in + * Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** + * in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,9 +237,12 @@ public void setStateOrProvince(String stateOrProvince) { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be + * included in this field; it should be separately provided via `houseNumberOrName`. * - * @param street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * @param street The name of the street. Maximum length: 3000 characters. > The house number + * should not be included in this field; it should be separately provided via + * `houseNumberOrName`. * @return the current {@code Address} instance, allowing for method chaining */ public Address street(String street) { @@ -230,8 +251,12 @@ public Address street(String street) { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. - * @return street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be + * included in this field; it should be separately provided via `houseNumberOrName`. + * + * @return street The name of the street. Maximum length: 3000 characters. > The house number + * should not be included in this field; it should be separately provided via + * `houseNumberOrName`. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,9 +265,12 @@ public String getStreet() { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be + * included in this field; it should be separately provided via `houseNumberOrName`. * - * @param street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * @param street The name of the street. Maximum length: 3000 characters. > The house number + * should not be included in this field; it should be separately provided via + * `houseNumberOrName`. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,9 +278,7 @@ public void setStreet(String street) { this.street = street; } - /** - * Return true if this Address object is equal to o. - */ + /** Return true if this Address object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -262,12 +288,12 @@ public boolean equals(Object o) { return false; } Address address = (Address) o; - return Objects.equals(this.city, address.city) && - Objects.equals(this.country, address.country) && - Objects.equals(this.houseNumberOrName, address.houseNumberOrName) && - Objects.equals(this.postalCode, address.postalCode) && - Objects.equals(this.stateOrProvince, address.stateOrProvince) && - Objects.equals(this.street, address.street); + return Objects.equals(this.city, address.city) + && Objects.equals(this.country, address.country) + && Objects.equals(this.houseNumberOrName, address.houseNumberOrName) + && Objects.equals(this.postalCode, address.postalCode) + && Objects.equals(this.stateOrProvince, address.stateOrProvince) + && Objects.equals(this.street, address.street); } @Override @@ -290,8 +316,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -300,7 +325,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Address given an JSON string * * @param jsonString JSON string @@ -310,11 +335,12 @@ private String toIndentedString(Object o) { public static Address fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Address.class); } -/** - * Convert an instance of Address to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Address to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/Amount.java b/src/main/java/com/adyen/model/payout/Amount.java index 7cf02a292..9b35667a3 100644 --- a/src/main/java/com/adyen/model/payout/Amount.java +++ b/src/main/java/com/adyen/model/payout/Amount.java @@ -2,36 +2,23 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Amount - */ -@JsonPropertyOrder({ - Amount.JSON_PROPERTY_CURRENCY, - Amount.JSON_PROPERTY_VALUE -}) - +/** Amount */ +@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -39,13 +26,14 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() { - } + public Amount() {} /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount currency(String currency) { @@ -54,8 +42,11 @@ public Amount currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +55,11 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,9 +68,11 @@ public void setCurrency(String currency) { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount value(Long value) { @@ -86,8 +81,11 @@ public Amount value(Long value) { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). - * @return value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * + * @return value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +94,11 @@ public Long getValue() { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +106,7 @@ public void setValue(Long value) { this.value = value; } - /** - * Return true if this Amount object is equal to o. - */ + /** Return true if this Amount object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +116,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) && - Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) + && Objects.equals(this.value, amount.value); } @Override @@ -138,8 +136,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +145,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -158,11 +155,12 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } -/** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/BankAccount.java b/src/main/java/com/adyen/model/payout/BankAccount.java index 0a3269e18..9e2204d72 100644 --- a/src/main/java/com/adyen/model/payout/BankAccount.java +++ b/src/main/java/com/adyen/model/payout/BankAccount.java @@ -2,31 +2,22 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * BankAccount - */ +/** BankAccount */ @JsonPropertyOrder({ BankAccount.JSON_PROPERTY_BANK_ACCOUNT_NUMBER, BankAccount.JSON_PROPERTY_BANK_CITY, @@ -38,7 +29,6 @@ BankAccount.JSON_PROPERTY_OWNER_NAME, BankAccount.JSON_PROPERTY_TAX_ID }) - public class BankAccount { public static final String JSON_PROPERTY_BANK_ACCOUNT_NUMBER = "bankAccountNumber"; private String bankAccountNumber; @@ -67,8 +57,7 @@ public class BankAccount { public static final String JSON_PROPERTY_TAX_ID = "taxId"; private String taxId; - public BankAccount() { - } + public BankAccount() {} /** * The bank account number (without separators). @@ -83,6 +72,7 @@ public BankAccount bankAccountNumber(String bankAccountNumber) { /** * The bank account number (without separators). + * * @return bankAccountNumber The bank account number (without separators). */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_NUMBER) @@ -115,6 +105,7 @@ public BankAccount bankCity(String bankCity) { /** * The bank city. + * * @return bankCity The bank city. */ @JsonProperty(JSON_PROPERTY_BANK_CITY) @@ -137,7 +128,8 @@ public void setBankCity(String bankCity) { /** * The location id of the bank. The field value is `nil` in most cases. * - * @param bankLocationId The location id of the bank. The field value is `nil` in most cases. + * @param bankLocationId The location id of the bank. The field value is `nil` in most + * cases. * @return the current {@code BankAccount} instance, allowing for method chaining */ public BankAccount bankLocationId(String bankLocationId) { @@ -147,7 +139,9 @@ public BankAccount bankLocationId(String bankLocationId) { /** * The location id of the bank. The field value is `nil` in most cases. - * @return bankLocationId The location id of the bank. The field value is `nil` in most cases. + * + * @return bankLocationId The location id of the bank. The field value is `nil` in most + * cases. */ @JsonProperty(JSON_PROPERTY_BANK_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,7 +152,8 @@ public String getBankLocationId() { /** * The location id of the bank. The field value is `nil` in most cases. * - * @param bankLocationId The location id of the bank. The field value is `nil` in most cases. + * @param bankLocationId The location id of the bank. The field value is `nil` in most + * cases. */ @JsonProperty(JSON_PROPERTY_BANK_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,6 +174,7 @@ public BankAccount bankName(String bankName) { /** * The name of the bank. + * * @return bankName The name of the bank. */ @JsonProperty(JSON_PROPERTY_BANK_NAME) @@ -199,9 +195,11 @@ public void setBankName(String bankName) { } /** - * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. + * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT + * address assigned to a bank. The field value is `nil` in most cases. * - * @param bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. + * @param bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the + * SWIFT address assigned to a bank. The field value is `nil` in most cases. * @return the current {@code BankAccount} instance, allowing for method chaining */ public BankAccount bic(String bic) { @@ -210,8 +208,11 @@ public BankAccount bic(String bic) { } /** - * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. - * @return bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. + * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT + * address assigned to a bank. The field value is `nil` in most cases. + * + * @return bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the + * SWIFT address assigned to a bank. The field value is `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_BIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -220,9 +221,11 @@ public String getBic() { } /** - * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. + * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT + * address assigned to a bank. The field value is `nil` in most cases. * - * @param bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. + * @param bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the + * SWIFT address assigned to a bank. The field value is `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_BIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -231,9 +234,11 @@ public void setBic(String bic) { } /** - * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). + * Country code where the bank is located. A valid value is an ISO two-character country code + * (e.g. 'NL'). * - * @param countryCode Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). + * @param countryCode Country code where the bank is located. A valid value is an ISO + * two-character country code (e.g. 'NL'). * @return the current {@code BankAccount} instance, allowing for method chaining */ public BankAccount countryCode(String countryCode) { @@ -242,8 +247,11 @@ public BankAccount countryCode(String countryCode) { } /** - * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). - * @return countryCode Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). + * Country code where the bank is located. A valid value is an ISO two-character country code + * (e.g. 'NL'). + * + * @return countryCode Country code where the bank is located. A valid value is an ISO + * two-character country code (e.g. 'NL'). */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,9 +260,11 @@ public String getCountryCode() { } /** - * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). + * Country code where the bank is located. A valid value is an ISO two-character country code + * (e.g. 'NL'). * - * @param countryCode Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). + * @param countryCode Country code where the bank is located. A valid value is an ISO + * two-character country code (e.g. 'NL'). */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -263,9 +273,11 @@ public void setCountryCode(String countryCode) { } /** - * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * The [International Bank Account + * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). * - * @param iban The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * @param iban The [International Bank Account + * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). * @return the current {@code BankAccount} instance, allowing for method chaining */ public BankAccount iban(String iban) { @@ -274,8 +286,11 @@ public BankAccount iban(String iban) { } /** - * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). - * @return iban The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * The [International Bank Account + * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * + * @return iban The [International Bank Account + * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,9 +299,11 @@ public String getIban() { } /** - * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * The [International Bank Account + * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). * - * @param iban The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * @param iban The [International Bank Account + * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -295,9 +312,25 @@ public void setIban(String iban) { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we + * automatically replace some of them with corresponding Latin characters to meet the FATF + * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter + * Møller is converted to Peter Mller, because banks don't accept 'ø'. After + * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), + * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - + * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details + * don't match the required format, the response returns the error message: 203 'Invalid + * bank account holder name'. * - * @param ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * @param ownerName The name of the bank account holder. If you submit a name with non-Latin + * characters, we automatically replace some of them with corresponding Latin characters to + * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted + * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept + * 'ø'. After replacement, the ownerName must have at least three alphanumeric + * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, + * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - + * allowed. > If provided details don't match the required format, the response returns + * the error message: 203 'Invalid bank account holder name'. * @return the current {@code BankAccount} instance, allowing for method chaining */ public BankAccount ownerName(String ownerName) { @@ -306,8 +339,25 @@ public BankAccount ownerName(String ownerName) { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. - * @return ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we + * automatically replace some of them with corresponding Latin characters to meet the FATF + * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter + * Møller is converted to Peter Mller, because banks don't accept 'ø'. After + * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), + * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - + * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details + * don't match the required format, the response returns the error message: 203 'Invalid + * bank account holder name'. + * + * @return ownerName The name of the bank account holder. If you submit a name with non-Latin + * characters, we automatically replace some of them with corresponding Latin characters to + * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted + * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept + * 'ø'. After replacement, the ownerName must have at least three alphanumeric + * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, + * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - + * allowed. > If provided details don't match the required format, the response returns + * the error message: 203 'Invalid bank account holder name'. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -316,9 +366,25 @@ public String getOwnerName() { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we + * automatically replace some of them with corresponding Latin characters to meet the FATF + * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter + * Møller is converted to Peter Mller, because banks don't accept 'ø'. After + * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), + * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - + * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details + * don't match the required format, the response returns the error message: 203 'Invalid + * bank account holder name'. * - * @param ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * @param ownerName The name of the bank account holder. If you submit a name with non-Latin + * characters, we automatically replace some of them with corresponding Latin characters to + * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted + * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept + * 'ø'. After replacement, the ownerName must have at least three alphanumeric + * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, + * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - + * allowed. > If provided details don't match the required format, the response returns + * the error message: 203 'Invalid bank account holder name'. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -339,6 +405,7 @@ public BankAccount taxId(String taxId) { /** * The bank account holder's tax ID. + * * @return taxId The bank account holder's tax ID. */ @JsonProperty(JSON_PROPERTY_TAX_ID) @@ -358,9 +425,7 @@ public void setTaxId(String taxId) { this.taxId = taxId; } - /** - * Return true if this BankAccount object is equal to o. - */ + /** Return true if this BankAccount object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -370,20 +435,29 @@ public boolean equals(Object o) { return false; } BankAccount bankAccount = (BankAccount) o; - return Objects.equals(this.bankAccountNumber, bankAccount.bankAccountNumber) && - Objects.equals(this.bankCity, bankAccount.bankCity) && - Objects.equals(this.bankLocationId, bankAccount.bankLocationId) && - Objects.equals(this.bankName, bankAccount.bankName) && - Objects.equals(this.bic, bankAccount.bic) && - Objects.equals(this.countryCode, bankAccount.countryCode) && - Objects.equals(this.iban, bankAccount.iban) && - Objects.equals(this.ownerName, bankAccount.ownerName) && - Objects.equals(this.taxId, bankAccount.taxId); + return Objects.equals(this.bankAccountNumber, bankAccount.bankAccountNumber) + && Objects.equals(this.bankCity, bankAccount.bankCity) + && Objects.equals(this.bankLocationId, bankAccount.bankLocationId) + && Objects.equals(this.bankName, bankAccount.bankName) + && Objects.equals(this.bic, bankAccount.bic) + && Objects.equals(this.countryCode, bankAccount.countryCode) + && Objects.equals(this.iban, bankAccount.iban) + && Objects.equals(this.ownerName, bankAccount.ownerName) + && Objects.equals(this.taxId, bankAccount.taxId); } @Override public int hashCode() { - return Objects.hash(bankAccountNumber, bankCity, bankLocationId, bankName, bic, countryCode, iban, ownerName, taxId); + return Objects.hash( + bankAccountNumber, + bankCity, + bankLocationId, + bankName, + bic, + countryCode, + iban, + ownerName, + taxId); } @Override @@ -404,8 +478,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -414,7 +487,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BankAccount given an JSON string * * @param jsonString JSON string @@ -424,11 +497,12 @@ private String toIndentedString(Object o) { public static BankAccount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankAccount.class); } -/** - * Convert an instance of BankAccount to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BankAccount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/Card.java b/src/main/java/com/adyen/model/payout/Card.java index 24293112d..9965a64e1 100644 --- a/src/main/java/com/adyen/model/payout/Card.java +++ b/src/main/java/com/adyen/model/payout/Card.java @@ -2,31 +2,22 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Card - */ +/** Card */ @JsonPropertyOrder({ Card.JSON_PROPERTY_CVC, Card.JSON_PROPERTY_EXPIRY_MONTH, @@ -37,7 +28,6 @@ Card.JSON_PROPERTY_START_MONTH, Card.JSON_PROPERTY_START_YEAR }) - public class Card { public static final String JSON_PROPERTY_CVC = "cvc"; private String cvc; @@ -63,13 +53,28 @@ public class Card { public static final String JSON_PROPERTY_START_YEAR = "startYear"; private String startYear; - public Card() { - } + public Card() {} /** - * The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. + * The [card verification + * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) + * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 + * digits * CID – length: 4 digits > If you are using [Client-Side + * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code + * is present in the encrypted data. You must never post the card details to the server. > This + * field must be always present in a [one-click payment + * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value + * is returned in a response, it is always empty because it is not stored. * - * @param cvc The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. + * @param cvc The [card verification + * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) + * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: + * 3 digits * CID – length: 4 digits > If you are using [Client-Side + * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC + * code is present in the encrypted data. You must never post the card details to the server. + * > This field must be always present in a [one-click payment + * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this + * value is returned in a response, it is always empty because it is not stored. * @return the current {@code Card} instance, allowing for method chaining */ public Card cvc(String cvc) { @@ -78,8 +83,25 @@ public Card cvc(String cvc) { } /** - * The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. - * @return cvc The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. + * The [card verification + * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) + * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 + * digits * CID – length: 4 digits > If you are using [Client-Side + * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code + * is present in the encrypted data. You must never post the card details to the server. > This + * field must be always present in a [one-click payment + * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value + * is returned in a response, it is always empty because it is not stored. + * + * @return cvc The [card verification + * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) + * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: + * 3 digits * CID – length: 4 digits > If you are using [Client-Side + * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC + * code is present in the encrypted data. You must never post the card details to the server. + * > This field must be always present in a [one-click payment + * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this + * value is returned in a response, it is always empty because it is not stored. */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -88,9 +110,25 @@ public String getCvc() { } /** - * The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. + * The [card verification + * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) + * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 + * digits * CID – length: 4 digits > If you are using [Client-Side + * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code + * is present in the encrypted data. You must never post the card details to the server. > This + * field must be always present in a [one-click payment + * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value + * is returned in a response, it is always empty because it is not stored. * - * @param cvc The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. + * @param cvc The [card verification + * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) + * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: + * 3 digits * CID – length: 4 digits > If you are using [Client-Side + * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC + * code is present in the encrypted data. You must never post the card details to the server. + * > This field must be always present in a [one-click payment + * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this + * value is returned in a response, it is always empty because it is not stored. */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,9 +137,11 @@ public void setCvc(String cvc) { } /** - * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November + * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 + * = March * 11 = November * - * @param expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November + * @param expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For + * example: * 03 = March * 11 = November * @return the current {@code Card} instance, allowing for method chaining */ public Card expiryMonth(String expiryMonth) { @@ -110,8 +150,11 @@ public Card expiryMonth(String expiryMonth) { } /** - * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November - * @return expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November + * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 + * = March * 11 = November + * + * @return expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For + * example: * 03 = March * 11 = November */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -120,9 +163,11 @@ public String getExpiryMonth() { } /** - * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November + * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 + * = March * 11 = November * - * @param expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November + * @param expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For + * example: * 03 = March * 11 = November */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,6 +188,7 @@ public Card expiryYear(String expiryYear) { /** * The card expiry year. Format: 4 digits. For example: 2020 + * * @return expiryYear The card expiry year. Format: 4 digits. For example: 2020 */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @@ -175,6 +221,7 @@ public Card holderName(String holderName) { /** * The name of the cardholder, as printed on the card. + * * @return holderName The name of the cardholder, as printed on the card. */ @JsonProperty(JSON_PROPERTY_HOLDER_NAME) @@ -207,6 +254,7 @@ public Card issueNumber(String issueNumber) { /** * The issue number of the card (for some UK debit cards only). + * * @return issueNumber The issue number of the card (for some UK debit cards only). */ @JsonProperty(JSON_PROPERTY_ISSUE_NUMBER) @@ -227,9 +275,11 @@ public void setIssueNumber(String issueNumber) { } /** - * The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. + * The card number (4-19 characters). Do not use any separators. When this value is returned in a + * response, only the last 4 digits of the card number are returned. * - * @param number The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. + * @param number The card number (4-19 characters). Do not use any separators. When this value is + * returned in a response, only the last 4 digits of the card number are returned. * @return the current {@code Card} instance, allowing for method chaining */ public Card number(String number) { @@ -238,8 +288,11 @@ public Card number(String number) { } /** - * The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. - * @return number The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. + * The card number (4-19 characters). Do not use any separators. When this value is returned in a + * response, only the last 4 digits of the card number are returned. + * + * @return number The card number (4-19 characters). Do not use any separators. When this value is + * returned in a response, only the last 4 digits of the card number are returned. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -248,9 +301,11 @@ public String getNumber() { } /** - * The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. + * The card number (4-19 characters). Do not use any separators. When this value is returned in a + * response, only the last 4 digits of the card number are returned. * - * @param number The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. + * @param number The card number (4-19 characters). Do not use any separators. When this value is + * returned in a response, only the last 4 digits of the card number are returned. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -271,6 +326,7 @@ public Card startMonth(String startMonth) { /** * The month component of the start date (for some UK debit cards only). + * * @return startMonth The month component of the start date (for some UK debit cards only). */ @JsonProperty(JSON_PROPERTY_START_MONTH) @@ -303,6 +359,7 @@ public Card startYear(String startYear) { /** * The year component of the start date (for some UK debit cards only). + * * @return startYear The year component of the start date (for some UK debit cards only). */ @JsonProperty(JSON_PROPERTY_START_YEAR) @@ -322,9 +379,7 @@ public void setStartYear(String startYear) { this.startYear = startYear; } - /** - * Return true if this Card object is equal to o. - */ + /** Return true if this Card object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -334,19 +389,20 @@ public boolean equals(Object o) { return false; } Card card = (Card) o; - return Objects.equals(this.cvc, card.cvc) && - Objects.equals(this.expiryMonth, card.expiryMonth) && - Objects.equals(this.expiryYear, card.expiryYear) && - Objects.equals(this.holderName, card.holderName) && - Objects.equals(this.issueNumber, card.issueNumber) && - Objects.equals(this.number, card.number) && - Objects.equals(this.startMonth, card.startMonth) && - Objects.equals(this.startYear, card.startYear); + return Objects.equals(this.cvc, card.cvc) + && Objects.equals(this.expiryMonth, card.expiryMonth) + && Objects.equals(this.expiryYear, card.expiryYear) + && Objects.equals(this.holderName, card.holderName) + && Objects.equals(this.issueNumber, card.issueNumber) + && Objects.equals(this.number, card.number) + && Objects.equals(this.startMonth, card.startMonth) + && Objects.equals(this.startYear, card.startYear); } @Override public int hashCode() { - return Objects.hash(cvc, expiryMonth, expiryYear, holderName, issueNumber, number, startMonth, startYear); + return Objects.hash( + cvc, expiryMonth, expiryYear, holderName, issueNumber, number, startMonth, startYear); } @Override @@ -366,8 +422,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -376,7 +431,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Card given an JSON string * * @param jsonString JSON string @@ -386,11 +441,12 @@ private String toIndentedString(Object o) { public static Card fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Card.class); } -/** - * Convert an instance of Card to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Card to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/FraudCheckResult.java b/src/main/java/com/adyen/model/payout/FraudCheckResult.java index d84596e80..2327be705 100644 --- a/src/main/java/com/adyen/model/payout/FraudCheckResult.java +++ b/src/main/java/com/adyen/model/payout/FraudCheckResult.java @@ -2,37 +2,27 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * FraudCheckResult - */ +/** FraudCheckResult */ @JsonPropertyOrder({ FraudCheckResult.JSON_PROPERTY_ACCOUNT_SCORE, FraudCheckResult.JSON_PROPERTY_CHECK_ID, FraudCheckResult.JSON_PROPERTY_NAME }) - public class FraudCheckResult { public static final String JSON_PROPERTY_ACCOUNT_SCORE = "accountScore"; private Integer accountScore; @@ -43,8 +33,7 @@ public class FraudCheckResult { public static final String JSON_PROPERTY_NAME = "name"; private String name; - public FraudCheckResult() { - } + public FraudCheckResult() {} /** * The fraud score generated by the risk check. @@ -59,6 +48,7 @@ public FraudCheckResult accountScore(Integer accountScore) { /** * The fraud score generated by the risk check. + * * @return accountScore The fraud score generated by the risk check. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_SCORE) @@ -91,6 +81,7 @@ public FraudCheckResult checkId(Integer checkId) { /** * The ID of the risk check. + * * @return checkId The ID of the risk check. */ @JsonProperty(JSON_PROPERTY_CHECK_ID) @@ -123,6 +114,7 @@ public FraudCheckResult name(String name) { /** * The name of the risk check. + * * @return name The name of the risk check. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -142,9 +134,7 @@ public void setName(String name) { this.name = name; } - /** - * Return true if this FraudCheckResult object is equal to o. - */ + /** Return true if this FraudCheckResult object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +144,9 @@ public boolean equals(Object o) { return false; } FraudCheckResult fraudCheckResult = (FraudCheckResult) o; - return Objects.equals(this.accountScore, fraudCheckResult.accountScore) && - Objects.equals(this.checkId, fraudCheckResult.checkId) && - Objects.equals(this.name, fraudCheckResult.name); + return Objects.equals(this.accountScore, fraudCheckResult.accountScore) + && Objects.equals(this.checkId, fraudCheckResult.checkId) + && Objects.equals(this.name, fraudCheckResult.name); } @Override @@ -176,8 +166,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +175,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of FraudCheckResult given an JSON string * * @param jsonString JSON string @@ -196,11 +185,12 @@ private String toIndentedString(Object o) { public static FraudCheckResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, FraudCheckResult.class); } -/** - * Convert an instance of FraudCheckResult to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of FraudCheckResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/FraudCheckResultWrapper.java b/src/main/java/com/adyen/model/payout/FraudCheckResultWrapper.java index bdd0fbee1..a40ffae55 100644 --- a/src/main/java/com/adyen/model/payout/FraudCheckResultWrapper.java +++ b/src/main/java/com/adyen/model/payout/FraudCheckResultWrapper.java @@ -2,47 +2,33 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.payout.FraudCheckResult; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * FraudCheckResultWrapper - */ -@JsonPropertyOrder({ - FraudCheckResultWrapper.JSON_PROPERTY_FRAUD_CHECK_RESULT -}) - +/** FraudCheckResultWrapper */ +@JsonPropertyOrder({FraudCheckResultWrapper.JSON_PROPERTY_FRAUD_CHECK_RESULT}) public class FraudCheckResultWrapper { public static final String JSON_PROPERTY_FRAUD_CHECK_RESULT = "FraudCheckResult"; private FraudCheckResult fraudCheckResult; - public FraudCheckResultWrapper() { - } + public FraudCheckResultWrapper() {} /** * fraudCheckResult * - * @param fraudCheckResult + * @param fraudCheckResult * @return the current {@code FraudCheckResultWrapper} instance, allowing for method chaining */ public FraudCheckResultWrapper fraudCheckResult(FraudCheckResult fraudCheckResult) { @@ -52,7 +38,8 @@ public FraudCheckResultWrapper fraudCheckResult(FraudCheckResult fraudCheckResul /** * Get fraudCheckResult - * @return fraudCheckResult + * + * @return fraudCheckResult */ @JsonProperty(JSON_PROPERTY_FRAUD_CHECK_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,7 +50,7 @@ public FraudCheckResult getFraudCheckResult() { /** * fraudCheckResult * - * @param fraudCheckResult + * @param fraudCheckResult */ @JsonProperty(JSON_PROPERTY_FRAUD_CHECK_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,9 +58,7 @@ public void setFraudCheckResult(FraudCheckResult fraudCheckResult) { this.fraudCheckResult = fraudCheckResult; } - /** - * Return true if this FraudCheckResultWrapper object is equal to o. - */ + /** Return true if this FraudCheckResultWrapper object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -101,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -111,21 +95,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of FraudCheckResultWrapper given an JSON string * * @param jsonString JSON string * @return An instance of FraudCheckResultWrapper - * @throws JsonProcessingException if the JSON string is invalid with respect to FraudCheckResultWrapper + * @throws JsonProcessingException if the JSON string is invalid with respect to + * FraudCheckResultWrapper */ public static FraudCheckResultWrapper fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, FraudCheckResultWrapper.class); } -/** - * Convert an instance of FraudCheckResultWrapper to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of FraudCheckResultWrapper to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/FraudResult.java b/src/main/java/com/adyen/model/payout/FraudResult.java index 50a43b154..c66734f24 100644 --- a/src/main/java/com/adyen/model/payout/FraudResult.java +++ b/src/main/java/com/adyen/model/payout/FraudResult.java @@ -2,39 +2,25 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.payout.FraudCheckResultWrapper; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * FraudResult - */ -@JsonPropertyOrder({ - FraudResult.JSON_PROPERTY_ACCOUNT_SCORE, - FraudResult.JSON_PROPERTY_RESULTS -}) - +/** FraudResult */ +@JsonPropertyOrder({FraudResult.JSON_PROPERTY_ACCOUNT_SCORE, FraudResult.JSON_PROPERTY_RESULTS}) public class FraudResult { public static final String JSON_PROPERTY_ACCOUNT_SCORE = "accountScore"; private Integer accountScore; @@ -42,8 +28,7 @@ public class FraudResult { public static final String JSON_PROPERTY_RESULTS = "results"; private List results; - public FraudResult() { - } + public FraudResult() {} /** * The total fraud score generated by the risk checks. @@ -58,6 +43,7 @@ public FraudResult accountScore(Integer accountScore) { /** * The total fraud score generated by the risk checks. + * * @return accountScore The total fraud score generated by the risk checks. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_SCORE) @@ -98,6 +84,7 @@ public FraudResult addResultsItem(FraudCheckResultWrapper resultsItem) { /** * The result of the individual risk checks. + * * @return results The result of the individual risk checks. */ @JsonProperty(JSON_PROPERTY_RESULTS) @@ -117,9 +104,7 @@ public void setResults(List results) { this.results = results; } - /** - * Return true if this FraudResult object is equal to o. - */ + /** Return true if this FraudResult object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -129,8 +114,8 @@ public boolean equals(Object o) { return false; } FraudResult fraudResult = (FraudResult) o; - return Objects.equals(this.accountScore, fraudResult.accountScore) && - Objects.equals(this.results, fraudResult.results); + return Objects.equals(this.accountScore, fraudResult.accountScore) + && Objects.equals(this.results, fraudResult.results); } @Override @@ -149,8 +134,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -159,7 +143,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of FraudResult given an JSON string * * @param jsonString JSON string @@ -169,11 +153,12 @@ private String toIndentedString(Object o) { public static FraudResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, FraudResult.class); } -/** - * Convert an instance of FraudResult to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of FraudResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/FundSource.java b/src/main/java/com/adyen/model/payout/FundSource.java index bb09118a0..a137e29b1 100644 --- a/src/main/java/com/adyen/model/payout/FundSource.java +++ b/src/main/java/com/adyen/model/payout/FundSource.java @@ -2,36 +2,24 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.payout.Address; -import com.adyen.model.payout.Card; -import com.adyen.model.payout.Name; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.HashMap; +import java.util.Map; - -/** - * FundSource - */ +/** FundSource */ @JsonPropertyOrder({ FundSource.JSON_PROPERTY_ADDITIONAL_DATA, FundSource.JSON_PROPERTY_BILLING_ADDRESS, @@ -40,7 +28,6 @@ FundSource.JSON_PROPERTY_SHOPPER_NAME, FundSource.JSON_PROPERTY_TELEPHONE_NUMBER }) - public class FundSource { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -60,13 +47,13 @@ public class FundSource { public static final String JSON_PROPERTY_TELEPHONE_NUMBER = "telephoneNumber"; private String telephoneNumber; - public FundSource() { - } + public FundSource() {} /** * A map of name-value pairs for passing additional or industry-specific data. * - * @param additionalData A map of name-value pairs for passing additional or industry-specific data. + * @param additionalData A map of name-value pairs for passing additional or industry-specific + * data. * @return the current {@code FundSource} instance, allowing for method chaining */ public FundSource additionalData(Map additionalData) { @@ -84,7 +71,9 @@ public FundSource putAdditionalDataItem(String key, String additionalDataItem) { /** * A map of name-value pairs for passing additional or industry-specific data. - * @return additionalData A map of name-value pairs for passing additional or industry-specific data. + * + * @return additionalData A map of name-value pairs for passing additional or industry-specific + * data. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -95,7 +84,8 @@ public Map getAdditionalData() { /** * A map of name-value pairs for passing additional or industry-specific data. * - * @param additionalData A map of name-value pairs for passing additional or industry-specific data. + * @param additionalData A map of name-value pairs for passing additional or industry-specific + * data. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,7 +96,7 @@ public void setAdditionalData(Map additionalData) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code FundSource} instance, allowing for method chaining */ public FundSource billingAddress(Address billingAddress) { @@ -116,7 +106,8 @@ public FundSource billingAddress(Address billingAddress) { /** * Get billingAddress - * @return billingAddress + * + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,7 +118,7 @@ public Address getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,7 +129,7 @@ public void setBillingAddress(Address billingAddress) { /** * card * - * @param card + * @param card * @return the current {@code FundSource} instance, allowing for method chaining */ public FundSource card(Card card) { @@ -148,7 +139,8 @@ public FundSource card(Card card) { /** * Get card - * @return card + * + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,7 +151,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -180,6 +172,7 @@ public FundSource shopperEmail(String shopperEmail) { /** * Email address of the person. + * * @return shopperEmail Email address of the person. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -202,7 +195,7 @@ public void setShopperEmail(String shopperEmail) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code FundSource} instance, allowing for method chaining */ public FundSource shopperName(Name shopperName) { @@ -212,7 +205,8 @@ public FundSource shopperName(Name shopperName) { /** * Get shopperName - * @return shopperName + * + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,7 +217,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,6 +238,7 @@ public FundSource telephoneNumber(String telephoneNumber) { /** * Phone number of the person + * * @return telephoneNumber Phone number of the person */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @@ -263,9 +258,7 @@ public void setTelephoneNumber(String telephoneNumber) { this.telephoneNumber = telephoneNumber; } - /** - * Return true if this FundSource object is equal to o. - */ + /** Return true if this FundSource object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -275,17 +268,18 @@ public boolean equals(Object o) { return false; } FundSource fundSource = (FundSource) o; - return Objects.equals(this.additionalData, fundSource.additionalData) && - Objects.equals(this.billingAddress, fundSource.billingAddress) && - Objects.equals(this.card, fundSource.card) && - Objects.equals(this.shopperEmail, fundSource.shopperEmail) && - Objects.equals(this.shopperName, fundSource.shopperName) && - Objects.equals(this.telephoneNumber, fundSource.telephoneNumber); + return Objects.equals(this.additionalData, fundSource.additionalData) + && Objects.equals(this.billingAddress, fundSource.billingAddress) + && Objects.equals(this.card, fundSource.card) + && Objects.equals(this.shopperEmail, fundSource.shopperEmail) + && Objects.equals(this.shopperName, fundSource.shopperName) + && Objects.equals(this.telephoneNumber, fundSource.telephoneNumber); } @Override public int hashCode() { - return Objects.hash(additionalData, billingAddress, card, shopperEmail, shopperName, telephoneNumber); + return Objects.hash( + additionalData, billingAddress, card, shopperEmail, shopperName, telephoneNumber); } @Override @@ -303,8 +297,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -313,7 +306,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of FundSource given an JSON string * * @param jsonString JSON string @@ -323,11 +316,12 @@ private String toIndentedString(Object o) { public static FundSource fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, FundSource.class); } -/** - * Convert an instance of FundSource to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of FundSource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/JSON.java b/src/main/java/com/adyen/model/payout/JSON.java index db65d6e94..054bf03a7 100644 --- a/src/main/java/com/adyen/model/payout/JSON.java +++ b/src/main/java/com/adyen/model/payout/JSON.java @@ -1,21 +1,18 @@ package com.adyen.model.payout; -import com.adyen.serializer.ByteArraySerializer; import com.adyen.serializer.ByteArrayDeserializer; +import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import com.adyen.model.payout.*; - +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -40,6 +37,7 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. + * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -56,11 +54,13 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { return mapper; } + public static ObjectMapper getMapper() { + return mapper; + } /** - * Returns the target model class that should be used to deserialize the input data. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,9 +73,7 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** - * Helper class to register the discriminator mappings. - */ + /** Helper class to register the discriminator mappings. */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -117,9 +115,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. - * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. This + * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -164,13 +162,14 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, - * so it's not possible to use the instanceof keyword. + *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so + * it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf( + Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -194,59 +193,58 @@ public static boolean isInstanceOf(Class modelClass, Object inst, Set, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); + /** A map of discriminators for all model classes. */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = + new HashMap, ClassDiscriminatorMapping>(); - /** - * A map of oneOf/anyOf descendants for each model class. - */ + /** A map of oneOf/anyOf descendants for each model class. */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator( + Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = + new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants(Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants( + Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static - { + static { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/payout/ModifyRequest.java b/src/main/java/com/adyen/model/payout/ModifyRequest.java index bef51cbca..bff1fcc72 100644 --- a/src/main/java/com/adyen/model/payout/ModifyRequest.java +++ b/src/main/java/com/adyen/model/payout/ModifyRequest.java @@ -2,39 +2,29 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.HashMap; +import java.util.Map; - -/** - * ModifyRequest - */ +/** ModifyRequest */ @JsonPropertyOrder({ ModifyRequest.JSON_PROPERTY_ADDITIONAL_DATA, ModifyRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, ModifyRequest.JSON_PROPERTY_ORIGINAL_REFERENCE }) - public class ModifyRequest { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -45,13 +35,13 @@ public class ModifyRequest { public static final String JSON_PROPERTY_ORIGINAL_REFERENCE = "originalReference"; private String originalReference; - public ModifyRequest() { - } + public ModifyRequest() {} /** * This field contains additional data, which may be required for a particular payout request. * - * @param additionalData This field contains additional data, which may be required for a particular payout request. + * @param additionalData This field contains additional data, which may be required for a + * particular payout request. * @return the current {@code ModifyRequest} instance, allowing for method chaining */ public ModifyRequest additionalData(Map additionalData) { @@ -69,7 +59,9 @@ public ModifyRequest putAdditionalDataItem(String key, String additionalDataItem /** * This field contains additional data, which may be required for a particular payout request. - * @return additionalData This field contains additional data, which may be required for a particular payout request. + * + * @return additionalData This field contains additional data, which may be required for a + * particular payout request. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,7 +72,8 @@ public Map getAdditionalData() { /** * This field contains additional data, which may be required for a particular payout request. * - * @param additionalData This field contains additional data, which may be required for a particular payout request. + * @param additionalData This field contains additional data, which may be required for a + * particular payout request. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -91,7 +84,8 @@ public void setAdditionalData(Map additionalData) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. * @return the current {@code ModifyRequest} instance, allowing for method chaining */ public ModifyRequest merchantAccount(String merchantAccount) { @@ -101,7 +95,9 @@ public ModifyRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * @return merchantAccount The merchant account identifier, with which you want to process the transaction. + * + * @return merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,7 +108,8 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,7 +120,8 @@ public void setMerchantAccount(String merchantAccount) { /** * The PSP reference received in the `/submitThirdParty` response. * - * @param originalReference The PSP reference received in the `/submitThirdParty` response. + * @param originalReference The PSP reference received in the `/submitThirdParty` + * response. * @return the current {@code ModifyRequest} instance, allowing for method chaining */ public ModifyRequest originalReference(String originalReference) { @@ -133,7 +131,9 @@ public ModifyRequest originalReference(String originalReference) { /** * The PSP reference received in the `/submitThirdParty` response. - * @return originalReference The PSP reference received in the `/submitThirdParty` response. + * + * @return originalReference The PSP reference received in the `/submitThirdParty` + * response. */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,7 +144,8 @@ public String getOriginalReference() { /** * The PSP reference received in the `/submitThirdParty` response. * - * @param originalReference The PSP reference received in the `/submitThirdParty` response. + * @param originalReference The PSP reference received in the `/submitThirdParty` + * response. */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,9 +153,7 @@ public void setOriginalReference(String originalReference) { this.originalReference = originalReference; } - /** - * Return true if this ModifyRequest object is equal to o. - */ + /** Return true if this ModifyRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -164,9 +163,9 @@ public boolean equals(Object o) { return false; } ModifyRequest modifyRequest = (ModifyRequest) o; - return Objects.equals(this.additionalData, modifyRequest.additionalData) && - Objects.equals(this.merchantAccount, modifyRequest.merchantAccount) && - Objects.equals(this.originalReference, modifyRequest.originalReference); + return Objects.equals(this.additionalData, modifyRequest.additionalData) + && Objects.equals(this.merchantAccount, modifyRequest.merchantAccount) + && Objects.equals(this.originalReference, modifyRequest.originalReference); } @Override @@ -186,8 +185,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -196,7 +194,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ModifyRequest given an JSON string * * @param jsonString JSON string @@ -206,11 +204,12 @@ private String toIndentedString(Object o) { public static ModifyRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ModifyRequest.class); } -/** - * Convert an instance of ModifyRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ModifyRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/ModifyResponse.java b/src/main/java/com/adyen/model/payout/ModifyResponse.java index f6a0b74a6..efd08e102 100644 --- a/src/main/java/com/adyen/model/payout/ModifyResponse.java +++ b/src/main/java/com/adyen/model/payout/ModifyResponse.java @@ -2,39 +2,29 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.HashMap; +import java.util.Map; - -/** - * ModifyResponse - */ +/** ModifyResponse */ @JsonPropertyOrder({ ModifyResponse.JSON_PROPERTY_ADDITIONAL_DATA, ModifyResponse.JSON_PROPERTY_PSP_REFERENCE, ModifyResponse.JSON_PROPERTY_RESPONSE }) - public class ModifyResponse { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -45,13 +35,13 @@ public class ModifyResponse { public static final String JSON_PROPERTY_RESPONSE = "response"; private String response; - public ModifyResponse() { - } + public ModifyResponse() {} /** * This field contains additional data, which may be returned in a particular response. * - * @param additionalData This field contains additional data, which may be returned in a particular response. + * @param additionalData This field contains additional data, which may be returned in a + * particular response. * @return the current {@code ModifyResponse} instance, allowing for method chaining */ public ModifyResponse additionalData(Map additionalData) { @@ -69,7 +59,9 @@ public ModifyResponse putAdditionalDataItem(String key, String additionalDataIte /** * This field contains additional data, which may be returned in a particular response. - * @return additionalData This field contains additional data, which may be returned in a particular response. + * + * @return additionalData This field contains additional data, which may be returned in a + * particular response. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,7 +72,8 @@ public Map getAdditionalData() { /** * This field contains additional data, which may be returned in a particular response. * - * @param additionalData This field contains additional data, which may be returned in a particular response. + * @param additionalData This field contains additional data, which may be returned in a + * particular response. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -89,9 +82,11 @@ public void setAdditionalData(Map additionalData) { } /** - * Adyen's 16-character string reference associated with the transaction. This value is globally unique; quote it when communicating with us about this response. + * Adyen's 16-character string reference associated with the transaction. This value is + * globally unique; quote it when communicating with us about this response. * - * @param pspReference Adyen's 16-character string reference associated with the transaction. This value is globally unique; quote it when communicating with us about this response. + * @param pspReference Adyen's 16-character string reference associated with the transaction. + * This value is globally unique; quote it when communicating with us about this response. * @return the current {@code ModifyResponse} instance, allowing for method chaining */ public ModifyResponse pspReference(String pspReference) { @@ -100,8 +95,11 @@ public ModifyResponse pspReference(String pspReference) { } /** - * Adyen's 16-character string reference associated with the transaction. This value is globally unique; quote it when communicating with us about this response. - * @return pspReference Adyen's 16-character string reference associated with the transaction. This value is globally unique; quote it when communicating with us about this response. + * Adyen's 16-character string reference associated with the transaction. This value is + * globally unique; quote it when communicating with us about this response. + * + * @return pspReference Adyen's 16-character string reference associated with the transaction. + * This value is globally unique; quote it when communicating with us about this response. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,9 +108,11 @@ public String getPspReference() { } /** - * Adyen's 16-character string reference associated with the transaction. This value is globally unique; quote it when communicating with us about this response. + * Adyen's 16-character string reference associated with the transaction. This value is + * globally unique; quote it when communicating with us about this response. * - * @param pspReference Adyen's 16-character string reference associated with the transaction. This value is globally unique; quote it when communicating with us about this response. + * @param pspReference Adyen's 16-character string reference associated with the transaction. + * This value is globally unique; quote it when communicating with us about this response. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,9 +121,13 @@ public void setPspReference(String pspReference) { } /** - * The response: * In case of success, it is either `payout-confirm-received` or `payout-decline-received`. * In case of an error, an informational message is returned. + * The response: * In case of success, it is either `payout-confirm-received` or + * `payout-decline-received`. * In case of an error, an informational message is + * returned. * - * @param response The response: * In case of success, it is either `payout-confirm-received` or `payout-decline-received`. * In case of an error, an informational message is returned. + * @param response The response: * In case of success, it is either + * `payout-confirm-received` or `payout-decline-received`. * In case of an + * error, an informational message is returned. * @return the current {@code ModifyResponse} instance, allowing for method chaining */ public ModifyResponse response(String response) { @@ -132,8 +136,13 @@ public ModifyResponse response(String response) { } /** - * The response: * In case of success, it is either `payout-confirm-received` or `payout-decline-received`. * In case of an error, an informational message is returned. - * @return response The response: * In case of success, it is either `payout-confirm-received` or `payout-decline-received`. * In case of an error, an informational message is returned. + * The response: * In case of success, it is either `payout-confirm-received` or + * `payout-decline-received`. * In case of an error, an informational message is + * returned. + * + * @return response The response: * In case of success, it is either + * `payout-confirm-received` or `payout-decline-received`. * In case of an + * error, an informational message is returned. */ @JsonProperty(JSON_PROPERTY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +151,13 @@ public String getResponse() { } /** - * The response: * In case of success, it is either `payout-confirm-received` or `payout-decline-received`. * In case of an error, an informational message is returned. + * The response: * In case of success, it is either `payout-confirm-received` or + * `payout-decline-received`. * In case of an error, an informational message is + * returned. * - * @param response The response: * In case of success, it is either `payout-confirm-received` or `payout-decline-received`. * In case of an error, an informational message is returned. + * @param response The response: * In case of success, it is either + * `payout-confirm-received` or `payout-decline-received`. * In case of an + * error, an informational message is returned. */ @JsonProperty(JSON_PROPERTY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,9 +165,7 @@ public void setResponse(String response) { this.response = response; } - /** - * Return true if this ModifyResponse object is equal to o. - */ + /** Return true if this ModifyResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -164,9 +175,9 @@ public boolean equals(Object o) { return false; } ModifyResponse modifyResponse = (ModifyResponse) o; - return Objects.equals(this.additionalData, modifyResponse.additionalData) && - Objects.equals(this.pspReference, modifyResponse.pspReference) && - Objects.equals(this.response, modifyResponse.response); + return Objects.equals(this.additionalData, modifyResponse.additionalData) + && Objects.equals(this.pspReference, modifyResponse.pspReference) + && Objects.equals(this.response, modifyResponse.response); } @Override @@ -186,8 +197,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -196,7 +206,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ModifyResponse given an JSON string * * @param jsonString JSON string @@ -206,11 +216,12 @@ private String toIndentedString(Object o) { public static ModifyResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ModifyResponse.class); } -/** - * Convert an instance of ModifyResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ModifyResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/Name.java b/src/main/java/com/adyen/model/payout/Name.java index ceb4c09f7..f323570df 100644 --- a/src/main/java/com/adyen/model/payout/Name.java +++ b/src/main/java/com/adyen/model/payout/Name.java @@ -2,36 +2,23 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Name - */ -@JsonPropertyOrder({ - Name.JSON_PROPERTY_FIRST_NAME, - Name.JSON_PROPERTY_LAST_NAME -}) - +/** Name */ +@JsonPropertyOrder({Name.JSON_PROPERTY_FIRST_NAME, Name.JSON_PROPERTY_LAST_NAME}) public class Name { public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; private String firstName; @@ -39,8 +26,7 @@ public class Name { public static final String JSON_PROPERTY_LAST_NAME = "lastName"; private String lastName; - public Name() { - } + public Name() {} /** * The first name. @@ -55,6 +41,7 @@ public Name firstName(String firstName) { /** * The first name. + * * @return firstName The first name. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @@ -87,6 +74,7 @@ public Name lastName(String lastName) { /** * The last name. + * * @return lastName The last name. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @@ -106,9 +94,7 @@ public void setLastName(String lastName) { this.lastName = lastName; } - /** - * Return true if this Name object is equal to o. - */ + /** Return true if this Name object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +104,8 @@ public boolean equals(Object o) { return false; } Name name = (Name) o; - return Objects.equals(this.firstName, name.firstName) && - Objects.equals(this.lastName, name.lastName); + return Objects.equals(this.firstName, name.firstName) + && Objects.equals(this.lastName, name.lastName); } @Override @@ -138,8 +124,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +133,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Name given an JSON string * * @param jsonString JSON string @@ -158,11 +143,12 @@ private String toIndentedString(Object o) { public static Name fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Name.class); } -/** - * Convert an instance of Name to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Name to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/PayoutRequest.java b/src/main/java/com/adyen/model/payout/PayoutRequest.java index 5bcc53059..87741f8be 100644 --- a/src/main/java/com/adyen/model/payout/PayoutRequest.java +++ b/src/main/java/com/adyen/model/payout/PayoutRequest.java @@ -2,37 +2,26 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.payout.Address; -import com.adyen.model.payout.Amount; -import com.adyen.model.payout.Card; -import com.adyen.model.payout.FundSource; -import com.adyen.model.payout.Name; -import com.adyen.model.payout.Recurring; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * PayoutRequest - */ +/** PayoutRequest */ @JsonPropertyOrder({ PayoutRequest.JSON_PROPERTY_AMOUNT, PayoutRequest.JSON_PROPERTY_BILLING_ADDRESS, @@ -49,7 +38,6 @@ PayoutRequest.JSON_PROPERTY_SHOPPER_REFERENCE, PayoutRequest.JSON_PROPERTY_TELEPHONE_NUMBER }) - public class PayoutRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -75,17 +63,27 @@ public class PayoutRequest { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = "selectedRecurringDetailReference"; + public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = + "selectedRecurringDetailReference"; private String selectedRecurringDetailReference; public static final String JSON_PROPERTY_SHOPPER_EMAIL = "shopperEmail"; private String shopperEmail; /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. */ public enum ShopperInteractionEnum { - ECOMMERCE(String.valueOf("Ecommerce")), CONTAUTH(String.valueOf("ContAuth")), @@ -99,7 +97,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -120,7 +118,11 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning( + "ShopperInteractionEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -137,13 +139,12 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_TELEPHONE_NUMBER = "telephoneNumber"; private String telephoneNumber; - public PayoutRequest() { - } + public PayoutRequest() {} /** * amount * - * @param amount + * @param amount * @return the current {@code PayoutRequest} instance, allowing for method chaining */ public PayoutRequest amount(Amount amount) { @@ -153,7 +154,8 @@ public PayoutRequest amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -164,7 +166,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -175,7 +177,7 @@ public void setAmount(Amount amount) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code PayoutRequest} instance, allowing for method chaining */ public PayoutRequest billingAddress(Address billingAddress) { @@ -185,7 +187,8 @@ public PayoutRequest billingAddress(Address billingAddress) { /** * Get billingAddress - * @return billingAddress + * + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -196,7 +199,7 @@ public Address getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -207,7 +210,7 @@ public void setBillingAddress(Address billingAddress) { /** * card * - * @param card + * @param card * @return the current {@code PayoutRequest} instance, allowing for method chaining */ public PayoutRequest card(Card card) { @@ -217,7 +220,8 @@ public PayoutRequest card(Card card) { /** * Get card - * @return card + * + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -228,7 +232,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,9 +241,11 @@ public void setCard(Card card) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or + * negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be + * either positive or negative. * @return the current {@code PayoutRequest} instance, allowing for method chaining */ public PayoutRequest fraudOffset(Integer fraudOffset) { @@ -248,8 +254,11 @@ public PayoutRequest fraudOffset(Integer fraudOffset) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. - * @return fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or + * negative. + * + * @return fraudOffset An integer value that is added to the normal fraud score. The value can be + * either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -258,9 +267,11 @@ public Integer getFraudOffset() { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or + * negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be + * either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -271,7 +282,7 @@ public void setFraudOffset(Integer fraudOffset) { /** * fundSource * - * @param fundSource + * @param fundSource * @return the current {@code PayoutRequest} instance, allowing for method chaining */ public PayoutRequest fundSource(FundSource fundSource) { @@ -281,7 +292,8 @@ public PayoutRequest fundSource(FundSource fundSource) { /** * Get fundSource - * @return fundSource + * + * @return fundSource */ @JsonProperty(JSON_PROPERTY_FUND_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -292,7 +304,7 @@ public FundSource getFundSource() { /** * fundSource * - * @param fundSource + * @param fundSource */ @JsonProperty(JSON_PROPERTY_FUND_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -303,7 +315,8 @@ public void setFundSource(FundSource fundSource) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. * @return the current {@code PayoutRequest} instance, allowing for method chaining */ public PayoutRequest merchantAccount(String merchantAccount) { @@ -313,7 +326,9 @@ public PayoutRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * @return merchantAccount The merchant account identifier, with which you want to process the transaction. + * + * @return merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -324,7 +339,8 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -335,7 +351,7 @@ public void setMerchantAccount(String merchantAccount) { /** * recurring * - * @param recurring + * @param recurring * @return the current {@code PayoutRequest} instance, allowing for method chaining */ public PayoutRequest recurring(Recurring recurring) { @@ -345,7 +361,8 @@ public PayoutRequest recurring(Recurring recurring) { /** * Get recurring - * @return recurring + * + * @return recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -356,7 +373,7 @@ public Recurring getRecurring() { /** * recurring * - * @param recurring + * @param recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -365,9 +382,15 @@ public void setRecurring(Recurring recurring) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * @return the current {@code PayoutRequest} instance, allowing for method chaining */ public PayoutRequest reference(String reference) { @@ -376,8 +399,15 @@ public PayoutRequest reference(String reference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. - * @return reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. + * + * @return reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -386,9 +416,15 @@ public String getReference() { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -397,9 +433,12 @@ public void setReference(String reference) { } /** - * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value + * `LATEST` can be used to select the most recently stored recurring detail. * - * @param selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * @param selectedRecurringDetailReference The `recurringDetailReference` you want to + * use for this payment. The value `LATEST` can be used to select the most recently + * stored recurring detail. * @return the current {@code PayoutRequest} instance, allowing for method chaining */ public PayoutRequest selectedRecurringDetailReference(String selectedRecurringDetailReference) { @@ -408,8 +447,12 @@ public PayoutRequest selectedRecurringDetailReference(String selectedRecurringDe } /** - * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. - * @return selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value + * `LATEST` can be used to select the most recently stored recurring detail. + * + * @return selectedRecurringDetailReference The `recurringDetailReference` you want to + * use for this payment. The value `LATEST` can be used to select the most recently + * stored recurring detail. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -418,9 +461,12 @@ public String getSelectedRecurringDetailReference() { } /** - * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * The `recurringDetailReference` you want to use for this payment. The value + * `LATEST` can be used to select the most recently stored recurring detail. * - * @param selectedRecurringDetailReference The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + * @param selectedRecurringDetailReference The `recurringDetailReference` you want to + * use for this payment. The value `LATEST` can be used to select the most recently + * stored recurring detail. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -429,9 +475,13 @@ public void setSelectedRecurringDetailReference(String selectedRecurringDetailRe } /** - * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in + * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 + * authentication if you did not include the `telephoneNumber`. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, + * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that + * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. * @return the current {@code PayoutRequest} instance, allowing for method chaining */ public PayoutRequest shopperEmail(String shopperEmail) { @@ -440,8 +490,13 @@ public PayoutRequest shopperEmail(String shopperEmail) { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. - * @return shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in + * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 + * authentication if you did not include the `telephoneNumber`. + * + * @return shopperEmail The shopper's email address. We recommend that you provide this data, + * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that + * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -450,9 +505,13 @@ public String getShopperEmail() { } /** - * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * The shopper's email address. We recommend that you provide this data, as it is used in + * velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 + * authentication if you did not include the `telephoneNumber`. * - * @param shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @param shopperEmail The shopper's email address. We recommend that you provide this data, + * as it is used in velocity fraud checks. > Required for Visa and JCB transactions that + * require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -461,9 +520,30 @@ public void setShopperEmail(String shopperEmail) { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. * @return the current {@code PayoutRequest} instance, allowing for method chaining */ public PayoutRequest shopperInteraction(ShopperInteractionEnum shopperInteraction) { @@ -472,8 +552,30 @@ public PayoutRequest shopperInteraction(ShopperInteractionEnum shopperInteractio } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * @return shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. + * + * @return shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -482,9 +584,30 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -495,7 +618,7 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code PayoutRequest} instance, allowing for method chaining */ public PayoutRequest shopperName(Name shopperName) { @@ -505,7 +628,8 @@ public PayoutRequest shopperName(Name shopperName) { /** * Get shopperName - * @return shopperName + * + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -516,7 +640,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -525,9 +649,15 @@ public void setShopperName(Name shopperName) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example + * user ID or account ID. The value is case-sensitive and must be at least three characters. > + * Your reference must not include personally identifiable information (PII) such as name or email + * address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify + * this shopper, for example user ID or account ID. The value is case-sensitive and must be at + * least three characters. > Your reference must not include personally identifiable + * information (PII) such as name or email address. * @return the current {@code PayoutRequest} instance, allowing for method chaining */ public PayoutRequest shopperReference(String shopperReference) { @@ -536,8 +666,15 @@ public PayoutRequest shopperReference(String shopperReference) { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. - * @return shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example + * user ID or account ID. The value is case-sensitive and must be at least three characters. > + * Your reference must not include personally identifiable information (PII) such as name or email + * address. + * + * @return shopperReference Required for recurring payments. Your reference to uniquely identify + * this shopper, for example user ID or account ID. The value is case-sensitive and must be at + * least three characters. > Your reference must not include personally identifiable + * information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -546,9 +683,15 @@ public String getShopperReference() { } /** - * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * Required for recurring payments. Your reference to uniquely identify this shopper, for example + * user ID or account ID. The value is case-sensitive and must be at least three characters. > + * Your reference must not include personally identifiable information (PII) such as name or email + * address. * - * @param shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. + * @param shopperReference Required for recurring payments. Your reference to uniquely identify + * this shopper, for example user ID or account ID. The value is case-sensitive and must be at + * least three characters. > Your reference must not include personally identifiable + * information (PII) such as name or email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -557,9 +700,17 @@ public void setShopperReference(String shopperReference) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. * @return the current {@code PayoutRequest} instance, allowing for method chaining */ public PayoutRequest telephoneNumber(String telephoneNumber) { @@ -568,8 +719,17 @@ public PayoutRequest telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. - * @return telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. + * + * @return telephoneNumber The shopper's telephone number. The phone number must include a + * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -578,9 +738,17 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -588,9 +756,7 @@ public void setTelephoneNumber(String telephoneNumber) { this.telephoneNumber = telephoneNumber; } - /** - * Return true if this PayoutRequest object is equal to o. - */ + /** Return true if this PayoutRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -600,25 +766,40 @@ public boolean equals(Object o) { return false; } PayoutRequest payoutRequest = (PayoutRequest) o; - return Objects.equals(this.amount, payoutRequest.amount) && - Objects.equals(this.billingAddress, payoutRequest.billingAddress) && - Objects.equals(this.card, payoutRequest.card) && - Objects.equals(this.fraudOffset, payoutRequest.fraudOffset) && - Objects.equals(this.fundSource, payoutRequest.fundSource) && - Objects.equals(this.merchantAccount, payoutRequest.merchantAccount) && - Objects.equals(this.recurring, payoutRequest.recurring) && - Objects.equals(this.reference, payoutRequest.reference) && - Objects.equals(this.selectedRecurringDetailReference, payoutRequest.selectedRecurringDetailReference) && - Objects.equals(this.shopperEmail, payoutRequest.shopperEmail) && - Objects.equals(this.shopperInteraction, payoutRequest.shopperInteraction) && - Objects.equals(this.shopperName, payoutRequest.shopperName) && - Objects.equals(this.shopperReference, payoutRequest.shopperReference) && - Objects.equals(this.telephoneNumber, payoutRequest.telephoneNumber); + return Objects.equals(this.amount, payoutRequest.amount) + && Objects.equals(this.billingAddress, payoutRequest.billingAddress) + && Objects.equals(this.card, payoutRequest.card) + && Objects.equals(this.fraudOffset, payoutRequest.fraudOffset) + && Objects.equals(this.fundSource, payoutRequest.fundSource) + && Objects.equals(this.merchantAccount, payoutRequest.merchantAccount) + && Objects.equals(this.recurring, payoutRequest.recurring) + && Objects.equals(this.reference, payoutRequest.reference) + && Objects.equals( + this.selectedRecurringDetailReference, payoutRequest.selectedRecurringDetailReference) + && Objects.equals(this.shopperEmail, payoutRequest.shopperEmail) + && Objects.equals(this.shopperInteraction, payoutRequest.shopperInteraction) + && Objects.equals(this.shopperName, payoutRequest.shopperName) + && Objects.equals(this.shopperReference, payoutRequest.shopperReference) + && Objects.equals(this.telephoneNumber, payoutRequest.telephoneNumber); } @Override public int hashCode() { - return Objects.hash(amount, billingAddress, card, fraudOffset, fundSource, merchantAccount, recurring, reference, selectedRecurringDetailReference, shopperEmail, shopperInteraction, shopperName, shopperReference, telephoneNumber); + return Objects.hash( + amount, + billingAddress, + card, + fraudOffset, + fundSource, + merchantAccount, + recurring, + reference, + selectedRecurringDetailReference, + shopperEmail, + shopperInteraction, + shopperName, + shopperReference, + telephoneNumber); } @Override @@ -633,7 +814,9 @@ public String toString() { sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" recurring: ").append(toIndentedString(recurring)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); - sb.append(" selectedRecurringDetailReference: ").append(toIndentedString(selectedRecurringDetailReference)).append("\n"); + sb.append(" selectedRecurringDetailReference: ") + .append(toIndentedString(selectedRecurringDetailReference)) + .append("\n"); sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); sb.append(" shopperInteraction: ").append(toIndentedString(shopperInteraction)).append("\n"); sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); @@ -644,8 +827,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -654,7 +836,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PayoutRequest given an JSON string * * @param jsonString JSON string @@ -664,11 +846,12 @@ private String toIndentedString(Object o) { public static PayoutRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayoutRequest.class); } -/** - * Convert an instance of PayoutRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PayoutRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/PayoutResponse.java b/src/main/java/com/adyen/model/payout/PayoutResponse.java index fc8c11e6e..682ede14b 100644 --- a/src/main/java/com/adyen/model/payout/PayoutResponse.java +++ b/src/main/java/com/adyen/model/payout/PayoutResponse.java @@ -2,35 +2,28 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.payout.Amount; -import com.adyen.model.payout.FraudResult; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * PayoutResponse - */ +/** PayoutResponse */ @JsonPropertyOrder({ PayoutResponse.JSON_PROPERTY_ADDITIONAL_DATA, PayoutResponse.JSON_PROPERTY_AUTH_CODE, @@ -44,7 +37,6 @@ PayoutResponse.JSON_PROPERTY_REFUSAL_REASON, PayoutResponse.JSON_PROPERTY_RESULT_CODE }) - public class PayoutResponse { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -77,10 +69,35 @@ public class PayoutResponse { private String refusalReason; /** - * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + * The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. + * Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – + * The transaction does not require 3D Secure authentication. Returned for [standalone + * authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * * **Authorised** – The payment was successfully authorised. This state serves as an indicator + * to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – + * Indicates the payment has been cancelled (either by the shopper or the merchant) before + * processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires + * further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 + * transactions. * **Error** – There was an error when the payment was being processed. The reason + * is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – + * The issuer requires the shopper's device fingerprint before the payment can be + * authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment + * has been authorised for a partial amount. This happens for card payments when the merchant + * supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – + * Indicates that it is not possible to obtain the final status of the payment. This can happen if + * the systems providing final status information for the payment are unavailable, or if the + * shopper needs to take further action to complete the payment. * **PresentToShopper** – + * Indicates that the response contains additional information that you need to present to a + * shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment + * has successfully been received by Adyen, and will be processed. This is the initial state for + * all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external + * web page or app to complete the authorisation. * **Refused** – Indicates the payment was + * refused. The reason is given in the `refusalReason` field. This is a final state. */ public enum ResultCodeEnum { - AUTHENTICATIONFINISHED(String.valueOf("AuthenticationFinished")), AUTHENTICATIONNOTREQUIRED(String.valueOf("AuthenticationNotRequired")), @@ -114,7 +131,7 @@ public enum ResultCodeEnum { private String value; ResultCodeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -135,7 +152,11 @@ public static ResultCodeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ResultCodeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResultCodeEnum.values())); + LOG.warning( + "ResultCodeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ResultCodeEnum.values())); return null; } } @@ -143,13 +164,15 @@ public static ResultCodeEnum fromValue(String value) { public static final String JSON_PROPERTY_RESULT_CODE = "resultCode"; private ResultCodeEnum resultCode; - public PayoutResponse() { - } + public PayoutResponse() {} /** - * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first: Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first: Go to **Customer Area** > **Developers** > + * **Additional data**. * @return the current {@code PayoutResponse} instance, allowing for method chaining */ public PayoutResponse additionalData(Map additionalData) { @@ -166,8 +189,12 @@ public PayoutResponse putAdditionalDataItem(String key, String additionalDataIte } /** - * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. - * @return additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * + * @return additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first: Go to **Customer Area** > **Developers** > + * **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,9 +203,12 @@ public Map getAdditionalData() { } /** - * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first: Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first: Go to **Customer Area** > **Developers** > + * **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,9 +217,12 @@ public void setAdditionalData(Map additionalData) { } /** - * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * Authorisation code: * When the payment is authorised successfully, this field holds the + * authorisation code for the payment. * When the payment is not authorised, this field is empty. * - * @param authCode Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * @param authCode Authorisation code: * When the payment is authorised successfully, this field + * holds the authorisation code for the payment. * When the payment is not authorised, this + * field is empty. * @return the current {@code PayoutResponse} instance, allowing for method chaining */ public PayoutResponse authCode(String authCode) { @@ -198,8 +231,12 @@ public PayoutResponse authCode(String authCode) { } /** - * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. - * @return authCode Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * Authorisation code: * When the payment is authorised successfully, this field holds the + * authorisation code for the payment. * When the payment is not authorised, this field is empty. + * + * @return authCode Authorisation code: * When the payment is authorised successfully, this field + * holds the authorisation code for the payment. * When the payment is not authorised, this + * field is empty. */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,9 +245,12 @@ public String getAuthCode() { } /** - * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * Authorisation code: * When the payment is authorised successfully, this field holds the + * authorisation code for the payment. * When the payment is not authorised, this field is empty. * - * @param authCode Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * @param authCode Authorisation code: * When the payment is authorised successfully, this field + * holds the authorisation code for the payment. * When the payment is not authorised, this + * field is empty. */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,7 +261,7 @@ public void setAuthCode(String authCode) { /** * dccAmount * - * @param dccAmount + * @param dccAmount * @return the current {@code PayoutResponse} instance, allowing for method chaining */ public PayoutResponse dccAmount(Amount dccAmount) { @@ -231,7 +271,8 @@ public PayoutResponse dccAmount(Amount dccAmount) { /** * Get dccAmount - * @return dccAmount + * + * @return dccAmount */ @JsonProperty(JSON_PROPERTY_DCC_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,7 +283,7 @@ public Amount getDccAmount() { /** * dccAmount * - * @param dccAmount + * @param dccAmount */ @JsonProperty(JSON_PROPERTY_DCC_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -251,9 +292,13 @@ public void setDccAmount(Amount dccAmount) { } /** - * Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * Cryptographic signature used to verify `dccQuote`. > This value only applies if + * you have implemented Dynamic Currency Conversion. For more information, [contact + * Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param dccSignature Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @param dccSignature Cryptographic signature used to verify `dccQuote`. > This + * value only applies if you have implemented Dynamic Currency Conversion. For more + * information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). * @return the current {@code PayoutResponse} instance, allowing for method chaining */ public PayoutResponse dccSignature(String dccSignature) { @@ -262,8 +307,13 @@ public PayoutResponse dccSignature(String dccSignature) { } /** - * Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). - * @return dccSignature Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * Cryptographic signature used to verify `dccQuote`. > This value only applies if + * you have implemented Dynamic Currency Conversion. For more information, [contact + * Support](https://www.adyen.help/hc/en-us/requests/new). + * + * @return dccSignature Cryptographic signature used to verify `dccQuote`. > This + * value only applies if you have implemented Dynamic Currency Conversion. For more + * information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_DCC_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -272,9 +322,13 @@ public String getDccSignature() { } /** - * Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * Cryptographic signature used to verify `dccQuote`. > This value only applies if + * you have implemented Dynamic Currency Conversion. For more information, [contact + * Support](https://www.adyen.help/hc/en-us/requests/new). * - * @param dccSignature Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * @param dccSignature Cryptographic signature used to verify `dccQuote`. > This + * value only applies if you have implemented Dynamic Currency Conversion. For more + * information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_DCC_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -285,7 +339,7 @@ public void setDccSignature(String dccSignature) { /** * fraudResult * - * @param fraudResult + * @param fraudResult * @return the current {@code PayoutResponse} instance, allowing for method chaining */ public PayoutResponse fraudResult(FraudResult fraudResult) { @@ -295,7 +349,8 @@ public PayoutResponse fraudResult(FraudResult fraudResult) { /** * Get fraudResult - * @return fraudResult + * + * @return fraudResult */ @JsonProperty(JSON_PROPERTY_FRAUD_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -306,7 +361,7 @@ public FraudResult getFraudResult() { /** * fraudResult * - * @param fraudResult + * @param fraudResult */ @JsonProperty(JSON_PROPERTY_FRAUD_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -315,9 +370,11 @@ public void setFraudResult(FraudResult fraudResult) { } /** - * The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL. + * The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this + * URL. * - * @param issuerUrl The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL. + * @param issuerUrl The URL to direct the shopper to. > In case of SecurePlus, do not redirect + * a shopper to this URL. * @return the current {@code PayoutResponse} instance, allowing for method chaining */ public PayoutResponse issuerUrl(String issuerUrl) { @@ -326,8 +383,11 @@ public PayoutResponse issuerUrl(String issuerUrl) { } /** - * The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL. - * @return issuerUrl The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL. + * The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this + * URL. + * + * @return issuerUrl The URL to direct the shopper to. > In case of SecurePlus, do not redirect + * a shopper to this URL. */ @JsonProperty(JSON_PROPERTY_ISSUER_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -336,9 +396,11 @@ public String getIssuerUrl() { } /** - * The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL. + * The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this + * URL. * - * @param issuerUrl The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL. + * @param issuerUrl The URL to direct the shopper to. > In case of SecurePlus, do not redirect + * a shopper to this URL. */ @JsonProperty(JSON_PROPERTY_ISSUER_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -359,6 +421,7 @@ public PayoutResponse md(String md) { /** * The payment session. + * * @return md The payment session. */ @JsonProperty(JSON_PROPERTY_MD) @@ -379,9 +442,15 @@ public void setMd(String md) { } /** - * The 3D request data for the issuer. If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/classic-integration/3d-secure). + * The 3D request data for the issuer. If the value is + * **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it + * in the `/authorise3D` request. For more information, see [3D + * Secure](https://docs.adyen.com/classic-integration/3d-secure). * - * @param paRequest The 3D request data for the issuer. If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/classic-integration/3d-secure). + * @param paRequest The 3D request data for the issuer. If the value is + * **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass + * it in the `/authorise3D` request. For more information, see [3D + * Secure](https://docs.adyen.com/classic-integration/3d-secure). * @return the current {@code PayoutResponse} instance, allowing for method chaining */ public PayoutResponse paRequest(String paRequest) { @@ -390,8 +459,15 @@ public PayoutResponse paRequest(String paRequest) { } /** - * The 3D request data for the issuer. If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/classic-integration/3d-secure). - * @return paRequest The 3D request data for the issuer. If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/classic-integration/3d-secure). + * The 3D request data for the issuer. If the value is + * **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it + * in the `/authorise3D` request. For more information, see [3D + * Secure](https://docs.adyen.com/classic-integration/3d-secure). + * + * @return paRequest The 3D request data for the issuer. If the value is + * **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass + * it in the `/authorise3D` request. For more information, see [3D + * Secure](https://docs.adyen.com/classic-integration/3d-secure). */ @JsonProperty(JSON_PROPERTY_PA_REQUEST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -400,9 +476,15 @@ public String getPaRequest() { } /** - * The 3D request data for the issuer. If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/classic-integration/3d-secure). + * The 3D request data for the issuer. If the value is + * **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it + * in the `/authorise3D` request. For more information, see [3D + * Secure](https://docs.adyen.com/classic-integration/3d-secure). * - * @param paRequest The 3D request data for the issuer. If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/classic-integration/3d-secure). + * @param paRequest The 3D request data for the issuer. If the value is + * **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass + * it in the `/authorise3D` request. For more information, see [3D + * Secure](https://docs.adyen.com/classic-integration/3d-secure). */ @JsonProperty(JSON_PROPERTY_PA_REQUEST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -411,9 +493,11 @@ public void setPaRequest(String paRequest) { } /** - * Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character reference associated with the transaction/request. This value is + * globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @param pspReference Adyen's 16-character reference associated with the transaction/request. + * This value is globally unique; quote it when communicating with us about this request. * @return the current {@code PayoutResponse} instance, allowing for method chaining */ public PayoutResponse pspReference(String pspReference) { @@ -422,8 +506,12 @@ public PayoutResponse pspReference(String pspReference) { } /** - * Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. - * @return pspReference Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character reference associated with the transaction/request. This value is + * globally unique; quote it when communicating with us about this request. + * + * @return pspReference Adyen's 16-character reference associated with the + * transaction/request. This value is globally unique; quote it when communicating with us + * about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -432,9 +520,11 @@ public String getPspReference() { } /** - * Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character reference associated with the transaction/request. This value is + * globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @param pspReference Adyen's 16-character reference associated with the transaction/request. + * This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -443,9 +533,17 @@ public void setPspReference(String pspReference) { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this + * field holds Adyen's mapped reason for the refusal or a description of the error. When a + * transaction fails, the authorisation response includes `resultCode` and + * `refusalReason` values. For more information, see [Refusal + * reasons](https://docs.adyen.com/development-resources/refusal-reasons). * - * @param refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @param refusalReason If the payment's authorisation is refused or an error occurs during + * authorisation, this field holds Adyen's mapped reason for the refusal or a description + * of the error. When a transaction fails, the authorisation response includes + * `resultCode` and `refusalReason` values. For more information, see + * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). * @return the current {@code PayoutResponse} instance, allowing for method chaining */ public PayoutResponse refusalReason(String refusalReason) { @@ -454,8 +552,17 @@ public PayoutResponse refusalReason(String refusalReason) { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). - * @return refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this + * field holds Adyen's mapped reason for the refusal or a description of the error. When a + * transaction fails, the authorisation response includes `resultCode` and + * `refusalReason` values. For more information, see [Refusal + * reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * + * @return refusalReason If the payment's authorisation is refused or an error occurs during + * authorisation, this field holds Adyen's mapped reason for the refusal or a description + * of the error. When a transaction fails, the authorisation response includes + * `resultCode` and `refusalReason` values. For more information, see + * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -464,9 +571,17 @@ public String getRefusalReason() { } /** - * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * If the payment's authorisation is refused or an error occurs during authorisation, this + * field holds Adyen's mapped reason for the refusal or a description of the error. When a + * transaction fails, the authorisation response includes `resultCode` and + * `refusalReason` values. For more information, see [Refusal + * reasons](https://docs.adyen.com/development-resources/refusal-reasons). * - * @param refusalReason If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + * @param refusalReason If the payment's authorisation is refused or an error occurs during + * authorisation, this field holds Adyen's mapped reason for the refusal or a description + * of the error. When a transaction fails, the authorisation response includes + * `resultCode` and `refusalReason` values. For more information, see + * [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -475,9 +590,62 @@ public void setRefusalReason(String refusalReason) { } /** - * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + * The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. + * Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – + * The transaction does not require 3D Secure authentication. Returned for [standalone + * authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * * **Authorised** – The payment was successfully authorised. This state serves as an indicator + * to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – + * Indicates the payment has been cancelled (either by the shopper or the merchant) before + * processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires + * further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 + * transactions. * **Error** – There was an error when the payment was being processed. The reason + * is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – + * The issuer requires the shopper's device fingerprint before the payment can be + * authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment + * has been authorised for a partial amount. This happens for card payments when the merchant + * supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – + * Indicates that it is not possible to obtain the final status of the payment. This can happen if + * the systems providing final status information for the payment are unavailable, or if the + * shopper needs to take further action to complete the payment. * **PresentToShopper** – + * Indicates that the response contains additional information that you need to present to a + * shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment + * has successfully been received by Adyen, and will be processed. This is the initial state for + * all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external + * web page or app to complete the authorisation. * **Refused** – Indicates the payment was + * refused. The reason is given in the `refusalReason` field. This is a final state. * - * @param resultCode The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + * @param resultCode The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure + * 2. Returned for 3D Secure 2 authentication-only transactions. * + * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. + * Returned for [standalone authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * * **Authorised** – The payment was successfully authorised. This state serves as an + * indicator to proceed with the delivery of goods and services. This is a final state. * + * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the + * merchant) before processing was completed. This is a final state. * **ChallengeShopper** – + * The issuer requires further shopper interaction before the payment can be authenticated. + * Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment + * was being processed. The reason is given in the `refusalReason` field. This is a + * final state. * **IdentifyShopper** – The issuer requires the shopper's device + * fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. + * * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This + * happens for card payments when the merchant supports Partial Authorisations and the + * cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to + * obtain the final status of the payment. This can happen if the systems providing final + * status information for the payment are unavailable, or if the shopper needs to take further + * action to complete the payment. * **PresentToShopper** – Indicates that the response + * contains additional information that you need to present to a shopper, so that they can use + * it to complete a payment. * **Received** – Indicates the payment has successfully been + * received by Adyen, and will be processed. This is the initial state for all payments. * + * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or + * app to complete the authorisation. * **Refused** – Indicates the payment was refused. The + * reason is given in the `refusalReason` field. This is a final state. * @return the current {@code PayoutResponse} instance, allowing for method chaining */ public PayoutResponse resultCode(ResultCodeEnum resultCode) { @@ -486,8 +654,62 @@ public PayoutResponse resultCode(ResultCodeEnum resultCode) { } /** - * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. - * @return resultCode The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + * The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. + * Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – + * The transaction does not require 3D Secure authentication. Returned for [standalone + * authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * * **Authorised** – The payment was successfully authorised. This state serves as an indicator + * to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – + * Indicates the payment has been cancelled (either by the shopper or the merchant) before + * processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires + * further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 + * transactions. * **Error** – There was an error when the payment was being processed. The reason + * is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – + * The issuer requires the shopper's device fingerprint before the payment can be + * authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment + * has been authorised for a partial amount. This happens for card payments when the merchant + * supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – + * Indicates that it is not possible to obtain the final status of the payment. This can happen if + * the systems providing final status information for the payment are unavailable, or if the + * shopper needs to take further action to complete the payment. * **PresentToShopper** – + * Indicates that the response contains additional information that you need to present to a + * shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment + * has successfully been received by Adyen, and will be processed. This is the initial state for + * all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external + * web page or app to complete the authorisation. * **Refused** – Indicates the payment was + * refused. The reason is given in the `refusalReason` field. This is a final state. + * + * @return resultCode The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure + * 2. Returned for 3D Secure 2 authentication-only transactions. * + * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. + * Returned for [standalone authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * * **Authorised** – The payment was successfully authorised. This state serves as an + * indicator to proceed with the delivery of goods and services. This is a final state. * + * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the + * merchant) before processing was completed. This is a final state. * **ChallengeShopper** – + * The issuer requires further shopper interaction before the payment can be authenticated. + * Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment + * was being processed. The reason is given in the `refusalReason` field. This is a + * final state. * **IdentifyShopper** – The issuer requires the shopper's device + * fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. + * * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This + * happens for card payments when the merchant supports Partial Authorisations and the + * cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to + * obtain the final status of the payment. This can happen if the systems providing final + * status information for the payment are unavailable, or if the shopper needs to take further + * action to complete the payment. * **PresentToShopper** – Indicates that the response + * contains additional information that you need to present to a shopper, so that they can use + * it to complete a payment. * **Received** – Indicates the payment has successfully been + * received by Adyen, and will be processed. This is the initial state for all payments. * + * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or + * app to complete the authorisation. * **Refused** – Indicates the payment was refused. The + * reason is given in the `refusalReason` field. This is a final state. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -496,9 +718,62 @@ public ResultCodeEnum getResultCode() { } /** - * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + * The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. + * Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – + * The transaction does not require 3D Secure authentication. Returned for [standalone + * authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * * **Authorised** – The payment was successfully authorised. This state serves as an indicator + * to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – + * Indicates the payment has been cancelled (either by the shopper or the merchant) before + * processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires + * further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 + * transactions. * **Error** – There was an error when the payment was being processed. The reason + * is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – + * The issuer requires the shopper's device fingerprint before the payment can be + * authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment + * has been authorised for a partial amount. This happens for card payments when the merchant + * supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – + * Indicates that it is not possible to obtain the final status of the payment. This can happen if + * the systems providing final status information for the payment are unavailable, or if the + * shopper needs to take further action to complete the payment. * **PresentToShopper** – + * Indicates that the response contains additional information that you need to present to a + * shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment + * has successfully been received by Adyen, and will be processed. This is the initial state for + * all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external + * web page or app to complete the authorisation. * **Refused** – Indicates the payment was + * refused. The reason is given in the `refusalReason` field. This is a final state. * - * @param resultCode The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + * @param resultCode The result of the payment. For more information, see [Result + * codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * + * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure + * 2. Returned for 3D Secure 2 authentication-only transactions. * + * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. + * Returned for [standalone authentication-only + * integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). + * * **Authorised** – The payment was successfully authorised. This state serves as an + * indicator to proceed with the delivery of goods and services. This is a final state. * + * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the + * merchant) before processing was completed. This is a final state. * **ChallengeShopper** – + * The issuer requires further shopper interaction before the payment can be authenticated. + * Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment + * was being processed. The reason is given in the `refusalReason` field. This is a + * final state. * **IdentifyShopper** – The issuer requires the shopper's device + * fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. + * * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This + * happens for card payments when the merchant supports Partial Authorisations and the + * cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to + * obtain the final status of the payment. This can happen if the systems providing final + * status information for the payment are unavailable, or if the shopper needs to take further + * action to complete the payment. * **PresentToShopper** – Indicates that the response + * contains additional information that you need to present to a shopper, so that they can use + * it to complete a payment. * **Received** – Indicates the payment has successfully been + * received by Adyen, and will be processed. This is the initial state for all payments. * + * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or + * app to complete the authorisation. * **Refused** – Indicates the payment was refused. The + * reason is given in the `refusalReason` field. This is a final state. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -506,9 +781,7 @@ public void setResultCode(ResultCodeEnum resultCode) { this.resultCode = resultCode; } - /** - * Return true if this PayoutResponse object is equal to o. - */ + /** Return true if this PayoutResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -518,22 +791,33 @@ public boolean equals(Object o) { return false; } PayoutResponse payoutResponse = (PayoutResponse) o; - return Objects.equals(this.additionalData, payoutResponse.additionalData) && - Objects.equals(this.authCode, payoutResponse.authCode) && - Objects.equals(this.dccAmount, payoutResponse.dccAmount) && - Objects.equals(this.dccSignature, payoutResponse.dccSignature) && - Objects.equals(this.fraudResult, payoutResponse.fraudResult) && - Objects.equals(this.issuerUrl, payoutResponse.issuerUrl) && - Objects.equals(this.md, payoutResponse.md) && - Objects.equals(this.paRequest, payoutResponse.paRequest) && - Objects.equals(this.pspReference, payoutResponse.pspReference) && - Objects.equals(this.refusalReason, payoutResponse.refusalReason) && - Objects.equals(this.resultCode, payoutResponse.resultCode); + return Objects.equals(this.additionalData, payoutResponse.additionalData) + && Objects.equals(this.authCode, payoutResponse.authCode) + && Objects.equals(this.dccAmount, payoutResponse.dccAmount) + && Objects.equals(this.dccSignature, payoutResponse.dccSignature) + && Objects.equals(this.fraudResult, payoutResponse.fraudResult) + && Objects.equals(this.issuerUrl, payoutResponse.issuerUrl) + && Objects.equals(this.md, payoutResponse.md) + && Objects.equals(this.paRequest, payoutResponse.paRequest) + && Objects.equals(this.pspReference, payoutResponse.pspReference) + && Objects.equals(this.refusalReason, payoutResponse.refusalReason) + && Objects.equals(this.resultCode, payoutResponse.resultCode); } @Override public int hashCode() { - return Objects.hash(additionalData, authCode, dccAmount, dccSignature, fraudResult, issuerUrl, md, paRequest, pspReference, refusalReason, resultCode); + return Objects.hash( + additionalData, + authCode, + dccAmount, + dccSignature, + fraudResult, + issuerUrl, + md, + paRequest, + pspReference, + refusalReason, + resultCode); } @Override @@ -556,8 +840,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -566,7 +849,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PayoutResponse given an JSON string * * @param jsonString JSON string @@ -576,11 +859,12 @@ private String toIndentedString(Object o) { public static PayoutResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PayoutResponse.class); } -/** - * Convert an instance of PayoutResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PayoutResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/Recurring.java b/src/main/java/com/adyen/model/payout/Recurring.java index 79ae1a7cf..daa53d17b 100644 --- a/src/main/java/com/adyen/model/payout/Recurring.java +++ b/src/main/java/com/adyen/model/payout/Recurring.java @@ -2,32 +2,27 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * Recurring - */ +/** Recurring */ @JsonPropertyOrder({ Recurring.JSON_PROPERTY_CONTRACT, Recurring.JSON_PROPERTY_RECURRING_DETAIL_NAME, @@ -35,13 +30,20 @@ Recurring.JSON_PROPERTY_RECURRING_FREQUENCY, Recurring.JSON_PROPERTY_TOKEN_SERVICE }) - public class Recurring { /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment + * details can be used to initiate a one-click payment, where the shopper enters the [card + * security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a + * payout](https://docs.adyen.com/online-payments/online-payouts). */ public enum ContractEnum { - ONECLICK(String.valueOf("ONECLICK")), RECURRING(String.valueOf("RECURRING")), @@ -53,7 +55,7 @@ public enum ContractEnum { private String value; ContractEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -74,7 +76,11 @@ public static ContractEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ContractEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ContractEnum.values())); + LOG.warning( + "ContractEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ContractEnum.values())); return null; } } @@ -91,11 +97,8 @@ public static ContractEnum fromValue(String value) { public static final String JSON_PROPERTY_RECURRING_FREQUENCY = "recurringFrequency"; private String recurringFrequency; - /** - * The name of the token service. - */ + /** The name of the token service. */ public enum TokenServiceEnum { - VISATOKENSERVICE(String.valueOf("VISATOKENSERVICE")), MCTOKENSERVICE(String.valueOf("MCTOKENSERVICE")), @@ -109,7 +112,7 @@ public enum TokenServiceEnum { private String value; TokenServiceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -130,7 +133,11 @@ public static TokenServiceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TokenServiceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TokenServiceEnum.values())); + LOG.warning( + "TokenServiceEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TokenServiceEnum.values())); return null; } } @@ -138,13 +145,30 @@ public static TokenServiceEnum fromValue(String value) { public static final String JSON_PROPERTY_TOKEN_SERVICE = "tokenService"; private TokenServiceEnum tokenService; - public Recurring() { - } + public Recurring() {} /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment + * details can be used to initiate a one-click payment, where the shopper enters the [card + * security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a + * payout](https://docs.adyen.com/online-payments/online-payouts). * - * @param contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * @param contract The type of recurring contract to be used. Possible values: * + * `ONECLICK` – Payment details can be used to initiate a one-click payment, where + * the shopper enters the [card security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make + * a payout](https://docs.adyen.com/online-payments/online-payouts). * @return the current {@code Recurring} instance, allowing for method chaining */ public Recurring contract(ContractEnum contract) { @@ -153,8 +177,27 @@ public Recurring contract(ContractEnum contract) { } /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). - * @return contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment + * details can be used to initiate a one-click payment, where the shopper enters the [card + * security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a + * payout](https://docs.adyen.com/online-payments/online-payouts). + * + * @return contract The type of recurring contract to be used. Possible values: * + * `ONECLICK` – Payment details can be used to initiate a one-click payment, where + * the shopper enters the [card security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make + * a payout](https://docs.adyen.com/online-payments/online-payouts). */ @JsonProperty(JSON_PROPERTY_CONTRACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,9 +206,27 @@ public ContractEnum getContract() { } /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment + * details can be used to initiate a one-click payment, where the shopper enters the [card + * security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a + * payout](https://docs.adyen.com/online-payments/online-payouts). * - * @param contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * @param contract The type of recurring contract to be used. Possible values: * + * `ONECLICK` – Payment details can be used to initiate a one-click payment, where + * the shopper enters the [card security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make + * a payout](https://docs.adyen.com/online-payments/online-payouts). */ @JsonProperty(JSON_PROPERTY_CONTRACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,6 +247,7 @@ public Recurring recurringDetailName(String recurringDetailName) { /** * A descriptive name for this detail. + * * @return recurringDetailName A descriptive name for this detail. */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_NAME) @@ -208,7 +270,8 @@ public void setRecurringDetailName(String recurringDetailName) { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. * - * @param recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. + * @param recurringExpiry Date after which no further authorisations shall be performed. Only for + * 3D Secure 2. * @return the current {@code Recurring} instance, allowing for method chaining */ public Recurring recurringExpiry(OffsetDateTime recurringExpiry) { @@ -218,7 +281,9 @@ public Recurring recurringExpiry(OffsetDateTime recurringExpiry) { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. - * @return recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. + * + * @return recurringExpiry Date after which no further authorisations shall be performed. Only for + * 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -229,7 +294,8 @@ public OffsetDateTime getRecurringExpiry() { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. * - * @param recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. + * @param recurringExpiry Date after which no further authorisations shall be performed. Only for + * 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,6 +316,7 @@ public Recurring recurringFrequency(String recurringFrequency) { /** * Minimum number of days between authorisations. Only for 3D Secure 2. + * * @return recurringFrequency Minimum number of days between authorisations. Only for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY) @@ -282,6 +349,7 @@ public Recurring tokenService(TokenServiceEnum tokenService) { /** * The name of the token service. + * * @return tokenService The name of the token service. */ @JsonProperty(JSON_PROPERTY_TOKEN_SERVICE) @@ -301,9 +369,7 @@ public void setTokenService(TokenServiceEnum tokenService) { this.tokenService = tokenService; } - /** - * Return true if this Recurring object is equal to o. - */ + /** Return true if this Recurring object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -313,16 +379,17 @@ public boolean equals(Object o) { return false; } Recurring recurring = (Recurring) o; - return Objects.equals(this.contract, recurring.contract) && - Objects.equals(this.recurringDetailName, recurring.recurringDetailName) && - Objects.equals(this.recurringExpiry, recurring.recurringExpiry) && - Objects.equals(this.recurringFrequency, recurring.recurringFrequency) && - Objects.equals(this.tokenService, recurring.tokenService); + return Objects.equals(this.contract, recurring.contract) + && Objects.equals(this.recurringDetailName, recurring.recurringDetailName) + && Objects.equals(this.recurringExpiry, recurring.recurringExpiry) + && Objects.equals(this.recurringFrequency, recurring.recurringFrequency) + && Objects.equals(this.tokenService, recurring.tokenService); } @Override public int hashCode() { - return Objects.hash(contract, recurringDetailName, recurringExpiry, recurringFrequency, tokenService); + return Objects.hash( + contract, recurringDetailName, recurringExpiry, recurringFrequency, tokenService); } @Override @@ -330,7 +397,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Recurring {\n"); sb.append(" contract: ").append(toIndentedString(contract)).append("\n"); - sb.append(" recurringDetailName: ").append(toIndentedString(recurringDetailName)).append("\n"); + sb.append(" recurringDetailName: ") + .append(toIndentedString(recurringDetailName)) + .append("\n"); sb.append(" recurringExpiry: ").append(toIndentedString(recurringExpiry)).append("\n"); sb.append(" recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n"); sb.append(" tokenService: ").append(toIndentedString(tokenService)).append("\n"); @@ -339,8 +408,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -349,7 +417,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Recurring given an JSON string * * @param jsonString JSON string @@ -359,11 +427,12 @@ private String toIndentedString(Object o) { public static Recurring fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Recurring.class); } -/** - * Convert an instance of Recurring to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Recurring to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/ResponseAdditionalData3DSecure.java b/src/main/java/com/adyen/model/payout/ResponseAdditionalData3DSecure.java index aaffa609e..ad9346eb0 100644 --- a/src/main/java/com/adyen/model/payout/ResponseAdditionalData3DSecure.java +++ b/src/main/java/com/adyen/model/payout/ResponseAdditionalData3DSecure.java @@ -2,31 +2,22 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ResponseAdditionalData3DSecure - */ +/** ResponseAdditionalData3DSecure */ @JsonPropertyOrder({ ResponseAdditionalData3DSecure.JSON_PROPERTY_CARD_HOLDER_INFO, ResponseAdditionalData3DSecure.JSON_PROPERTY_CAVV, @@ -34,7 +25,6 @@ ResponseAdditionalData3DSecure.JSON_PROPERTY_SCA_EXEMPTION_REQUESTED, ResponseAdditionalData3DSecure.JSON_PROPERTY_THREEDS2_CARD_ENROLLED }) - public class ResponseAdditionalData3DSecure { public static final String JSON_PROPERTY_CARD_HOLDER_INFO = "cardHolderInfo"; private String cardHolderInfo; @@ -51,14 +41,16 @@ public class ResponseAdditionalData3DSecure { public static final String JSON_PROPERTY_THREEDS2_CARD_ENROLLED = "threeds2.cardEnrolled"; private Boolean threeds2CardEnrolled; - public ResponseAdditionalData3DSecure() { - } + public ResponseAdditionalData3DSecure() {} /** - * Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. + * Information provided by the issuer to the cardholder. If this field is present, you need to + * display this information to the cardholder. * - * @param cardHolderInfo Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. - * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method chaining + * @param cardHolderInfo Information provided by the issuer to the cardholder. If this field is + * present, you need to display this information to the cardholder. + * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method + * chaining */ public ResponseAdditionalData3DSecure cardHolderInfo(String cardHolderInfo) { this.cardHolderInfo = cardHolderInfo; @@ -66,8 +58,11 @@ public ResponseAdditionalData3DSecure cardHolderInfo(String cardHolderInfo) { } /** - * Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. - * @return cardHolderInfo Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. + * Information provided by the issuer to the cardholder. If this field is present, you need to + * display this information to the cardholder. + * + * @return cardHolderInfo Information provided by the issuer to the cardholder. If this field is + * present, you need to display this information to the cardholder. */ @JsonProperty(JSON_PROPERTY_CARD_HOLDER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -76,9 +71,11 @@ public String getCardHolderInfo() { } /** - * Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. + * Information provided by the issuer to the cardholder. If this field is present, you need to + * display this information to the cardholder. * - * @param cardHolderInfo Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. + * @param cardHolderInfo Information provided by the issuer to the cardholder. If this field is + * present, you need to display this information to the cardholder. */ @JsonProperty(JSON_PROPERTY_CARD_HOLDER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,10 +84,13 @@ public void setCardHolderInfo(String cardHolderInfo) { } /** - * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. + * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication + * session, as a Base64-encoded 20-byte array. * - * @param cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. - * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method chaining + * @param cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure + * authentication session, as a Base64-encoded 20-byte array. + * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method + * chaining */ public ResponseAdditionalData3DSecure cavv(String cavv) { this.cavv = cavv; @@ -98,8 +98,11 @@ public ResponseAdditionalData3DSecure cavv(String cavv) { } /** - * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. - * @return cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. + * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication + * session, as a Base64-encoded 20-byte array. + * + * @return cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure + * authentication session, as a Base64-encoded 20-byte array. */ @JsonProperty(JSON_PROPERTY_CAVV) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,9 +111,11 @@ public String getCavv() { } /** - * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. + * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication + * session, as a Base64-encoded 20-byte array. * - * @param cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. + * @param cavv The Cardholder Authentication Verification Value (CAVV) for the 3D Secure + * authentication session, as a Base64-encoded 20-byte array. */ @JsonProperty(JSON_PROPERTY_CAVV) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -122,7 +127,8 @@ public void setCavv(String cavv) { * The CAVV algorithm used. * * @param cavvAlgorithm The CAVV algorithm used. - * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method chaining + * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method + * chaining */ public ResponseAdditionalData3DSecure cavvAlgorithm(String cavvAlgorithm) { this.cavvAlgorithm = cavvAlgorithm; @@ -131,6 +137,7 @@ public ResponseAdditionalData3DSecure cavvAlgorithm(String cavvAlgorithm) { /** * The CAVV algorithm used. + * * @return cavvAlgorithm The CAVV algorithm used. */ @JsonProperty(JSON_PROPERTY_CAVV_ALGORITHM) @@ -151,10 +158,17 @@ public void setCavvAlgorithm(String cavvAlgorithm) { } /** - * Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * Shows the [exemption + * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) + * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * + * **trustedBeneficiary** * **transactionRiskAnalysis** * - * @param scaExemptionRequested Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** - * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method chaining + * @param scaExemptionRequested Shows the [exemption + * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) + * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** + * * **trustedBeneficiary** * **transactionRiskAnalysis** + * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method + * chaining */ public ResponseAdditionalData3DSecure scaExemptionRequested(String scaExemptionRequested) { this.scaExemptionRequested = scaExemptionRequested; @@ -162,8 +176,15 @@ public ResponseAdditionalData3DSecure scaExemptionRequested(String scaExemptionR } /** - * Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** - * @return scaExemptionRequested Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * Shows the [exemption + * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) + * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * + * **trustedBeneficiary** * **transactionRiskAnalysis** + * + * @return scaExemptionRequested Shows the [exemption + * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) + * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** + * * **trustedBeneficiary** * **transactionRiskAnalysis** */ @JsonProperty(JSON_PROPERTY_SCA_EXEMPTION_REQUESTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,9 +193,15 @@ public String getScaExemptionRequested() { } /** - * Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * Shows the [exemption + * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) + * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * + * **trustedBeneficiary** * **transactionRiskAnalysis** * - * @param scaExemptionRequested Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + * @param scaExemptionRequested Shows the [exemption + * type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) + * that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** + * * **trustedBeneficiary** * **transactionRiskAnalysis** */ @JsonProperty(JSON_PROPERTY_SCA_EXEMPTION_REQUESTED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,7 +213,8 @@ public void setScaExemptionRequested(String scaExemptionRequested) { * Indicates whether a card is enrolled for 3D Secure 2. * * @param threeds2CardEnrolled Indicates whether a card is enrolled for 3D Secure 2. - * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method chaining + * @return the current {@code ResponseAdditionalData3DSecure} instance, allowing for method + * chaining */ public ResponseAdditionalData3DSecure threeds2CardEnrolled(Boolean threeds2CardEnrolled) { this.threeds2CardEnrolled = threeds2CardEnrolled; @@ -195,6 +223,7 @@ public ResponseAdditionalData3DSecure threeds2CardEnrolled(Boolean threeds2CardE /** * Indicates whether a card is enrolled for 3D Secure 2. + * * @return threeds2CardEnrolled Indicates whether a card is enrolled for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_THREEDS2_CARD_ENROLLED) @@ -214,9 +243,7 @@ public void setThreeds2CardEnrolled(Boolean threeds2CardEnrolled) { this.threeds2CardEnrolled = threeds2CardEnrolled; } - /** - * Return true if this ResponseAdditionalData3DSecure object is equal to o. - */ + /** Return true if this ResponseAdditionalData3DSecure object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -225,17 +252,21 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResponseAdditionalData3DSecure responseAdditionalData3DSecure = (ResponseAdditionalData3DSecure) o; - return Objects.equals(this.cardHolderInfo, responseAdditionalData3DSecure.cardHolderInfo) && - Objects.equals(this.cavv, responseAdditionalData3DSecure.cavv) && - Objects.equals(this.cavvAlgorithm, responseAdditionalData3DSecure.cavvAlgorithm) && - Objects.equals(this.scaExemptionRequested, responseAdditionalData3DSecure.scaExemptionRequested) && - Objects.equals(this.threeds2CardEnrolled, responseAdditionalData3DSecure.threeds2CardEnrolled); + ResponseAdditionalData3DSecure responseAdditionalData3DSecure = + (ResponseAdditionalData3DSecure) o; + return Objects.equals(this.cardHolderInfo, responseAdditionalData3DSecure.cardHolderInfo) + && Objects.equals(this.cavv, responseAdditionalData3DSecure.cavv) + && Objects.equals(this.cavvAlgorithm, responseAdditionalData3DSecure.cavvAlgorithm) + && Objects.equals( + this.scaExemptionRequested, responseAdditionalData3DSecure.scaExemptionRequested) + && Objects.equals( + this.threeds2CardEnrolled, responseAdditionalData3DSecure.threeds2CardEnrolled); } @Override public int hashCode() { - return Objects.hash(cardHolderInfo, cavv, cavvAlgorithm, scaExemptionRequested, threeds2CardEnrolled); + return Objects.hash( + cardHolderInfo, cavv, cavvAlgorithm, scaExemptionRequested, threeds2CardEnrolled); } @Override @@ -245,15 +276,18 @@ public String toString() { sb.append(" cardHolderInfo: ").append(toIndentedString(cardHolderInfo)).append("\n"); sb.append(" cavv: ").append(toIndentedString(cavv)).append("\n"); sb.append(" cavvAlgorithm: ").append(toIndentedString(cavvAlgorithm)).append("\n"); - sb.append(" scaExemptionRequested: ").append(toIndentedString(scaExemptionRequested)).append("\n"); - sb.append(" threeds2CardEnrolled: ").append(toIndentedString(threeds2CardEnrolled)).append("\n"); + sb.append(" scaExemptionRequested: ") + .append(toIndentedString(scaExemptionRequested)) + .append("\n"); + sb.append(" threeds2CardEnrolled: ") + .append(toIndentedString(threeds2CardEnrolled)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -262,21 +296,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResponseAdditionalData3DSecure given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalData3DSecure - * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalData3DSecure + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ResponseAdditionalData3DSecure */ - public static ResponseAdditionalData3DSecure fromJson(String jsonString) throws JsonProcessingException { + public static ResponseAdditionalData3DSecure fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalData3DSecure.class); } -/** - * Convert an instance of ResponseAdditionalData3DSecure to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResponseAdditionalData3DSecure to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataBillingAddress.java b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataBillingAddress.java index e3e002f8e..6dab239e9 100644 --- a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataBillingAddress.java +++ b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataBillingAddress.java @@ -2,31 +2,22 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ResponseAdditionalDataBillingAddress - */ +/** ResponseAdditionalDataBillingAddress */ @JsonPropertyOrder({ ResponseAdditionalDataBillingAddress.JSON_PROPERTY_BILLING_ADDRESS_CITY, ResponseAdditionalDataBillingAddress.JSON_PROPERTY_BILLING_ADDRESS_COUNTRY, @@ -35,7 +26,6 @@ ResponseAdditionalDataBillingAddress.JSON_PROPERTY_BILLING_ADDRESS_STATE_OR_PROVINCE, ResponseAdditionalDataBillingAddress.JSON_PROPERTY_BILLING_ADDRESS_STREET }) - public class ResponseAdditionalDataBillingAddress { public static final String JSON_PROPERTY_BILLING_ADDRESS_CITY = "billingAddress.city"; private String billingAddressCity; @@ -43,26 +33,29 @@ public class ResponseAdditionalDataBillingAddress { public static final String JSON_PROPERTY_BILLING_ADDRESS_COUNTRY = "billingAddress.country"; private String billingAddressCountry; - public static final String JSON_PROPERTY_BILLING_ADDRESS_HOUSE_NUMBER_OR_NAME = "billingAddress.houseNumberOrName"; + public static final String JSON_PROPERTY_BILLING_ADDRESS_HOUSE_NUMBER_OR_NAME = + "billingAddress.houseNumberOrName"; private String billingAddressHouseNumberOrName; - public static final String JSON_PROPERTY_BILLING_ADDRESS_POSTAL_CODE = "billingAddress.postalCode"; + public static final String JSON_PROPERTY_BILLING_ADDRESS_POSTAL_CODE = + "billingAddress.postalCode"; private String billingAddressPostalCode; - public static final String JSON_PROPERTY_BILLING_ADDRESS_STATE_OR_PROVINCE = "billingAddress.stateOrProvince"; + public static final String JSON_PROPERTY_BILLING_ADDRESS_STATE_OR_PROVINCE = + "billingAddress.stateOrProvince"; private String billingAddressStateOrProvince; public static final String JSON_PROPERTY_BILLING_ADDRESS_STREET = "billingAddress.street"; private String billingAddressStreet; - public ResponseAdditionalDataBillingAddress() { - } + public ResponseAdditionalDataBillingAddress() {} /** * The billing address city passed in the payment request. * * @param billingAddressCity The billing address city passed in the payment request. - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method + * chaining */ public ResponseAdditionalDataBillingAddress billingAddressCity(String billingAddressCity) { this.billingAddressCity = billingAddressCity; @@ -71,6 +64,7 @@ public ResponseAdditionalDataBillingAddress billingAddressCity(String billingAdd /** * The billing address city passed in the payment request. + * * @return billingAddressCity The billing address city passed in the payment request. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_CITY) @@ -91,10 +85,12 @@ public void setBillingAddressCity(String billingAddressCity) { } /** - * The billing address country passed in the payment request. Example: NL + * The billing address country passed in the payment request. Example: NL * - * @param billingAddressCountry The billing address country passed in the payment request. Example: NL - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining + * @param billingAddressCountry The billing address country passed in the payment request. + * Example: NL + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method + * chaining */ public ResponseAdditionalDataBillingAddress billingAddressCountry(String billingAddressCountry) { this.billingAddressCountry = billingAddressCountry; @@ -102,8 +98,10 @@ public ResponseAdditionalDataBillingAddress billingAddressCountry(String billing } /** - * The billing address country passed in the payment request. Example: NL - * @return billingAddressCountry The billing address country passed in the payment request. Example: NL + * The billing address country passed in the payment request. Example: NL + * + * @return billingAddressCountry The billing address country passed in the payment request. + * Example: NL */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,9 +110,10 @@ public String getBillingAddressCountry() { } /** - * The billing address country passed in the payment request. Example: NL + * The billing address country passed in the payment request. Example: NL * - * @param billingAddressCountry The billing address country passed in the payment request. Example: NL + * @param billingAddressCountry The billing address country passed in the payment request. + * Example: NL */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,17 +124,22 @@ public void setBillingAddressCountry(String billingAddressCountry) { /** * The billing address house number or name passed in the payment request. * - * @param billingAddressHouseNumberOrName The billing address house number or name passed in the payment request. - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining + * @param billingAddressHouseNumberOrName The billing address house number or name passed in the + * payment request. + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method + * chaining */ - public ResponseAdditionalDataBillingAddress billingAddressHouseNumberOrName(String billingAddressHouseNumberOrName) { + public ResponseAdditionalDataBillingAddress billingAddressHouseNumberOrName( + String billingAddressHouseNumberOrName) { this.billingAddressHouseNumberOrName = billingAddressHouseNumberOrName; return this; } /** * The billing address house number or name passed in the payment request. - * @return billingAddressHouseNumberOrName The billing address house number or name passed in the payment request. + * + * @return billingAddressHouseNumberOrName The billing address house number or name passed in the + * payment request. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_HOUSE_NUMBER_OR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,7 +150,8 @@ public String getBillingAddressHouseNumberOrName() { /** * The billing address house number or name passed in the payment request. * - * @param billingAddressHouseNumberOrName The billing address house number or name passed in the payment request. + * @param billingAddressHouseNumberOrName The billing address house number or name passed in the + * payment request. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_HOUSE_NUMBER_OR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -155,19 +160,24 @@ public void setBillingAddressHouseNumberOrName(String billingAddressHouseNumberO } /** - * The billing address postal code passed in the payment request. Example: 1011 DJ + * The billing address postal code passed in the payment request. Example: 1011 DJ * - * @param billingAddressPostalCode The billing address postal code passed in the payment request. Example: 1011 DJ - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining + * @param billingAddressPostalCode The billing address postal code passed in the payment request. + * Example: 1011 DJ + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method + * chaining */ - public ResponseAdditionalDataBillingAddress billingAddressPostalCode(String billingAddressPostalCode) { + public ResponseAdditionalDataBillingAddress billingAddressPostalCode( + String billingAddressPostalCode) { this.billingAddressPostalCode = billingAddressPostalCode; return this; } /** - * The billing address postal code passed in the payment request. Example: 1011 DJ - * @return billingAddressPostalCode The billing address postal code passed in the payment request. Example: 1011 DJ + * The billing address postal code passed in the payment request. Example: 1011 DJ + * + * @return billingAddressPostalCode The billing address postal code passed in the payment request. + * Example: 1011 DJ */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,9 +186,10 @@ public String getBillingAddressPostalCode() { } /** - * The billing address postal code passed in the payment request. Example: 1011 DJ + * The billing address postal code passed in the payment request. Example: 1011 DJ * - * @param billingAddressPostalCode The billing address postal code passed in the payment request. Example: 1011 DJ + * @param billingAddressPostalCode The billing address postal code passed in the payment request. + * Example: 1011 DJ */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,19 +198,24 @@ public void setBillingAddressPostalCode(String billingAddressPostalCode) { } /** - * The billing address state or province passed in the payment request. Example: NH + * The billing address state or province passed in the payment request. Example: NH * - * @param billingAddressStateOrProvince The billing address state or province passed in the payment request. Example: NH - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining + * @param billingAddressStateOrProvince The billing address state or province passed in the + * payment request. Example: NH + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method + * chaining */ - public ResponseAdditionalDataBillingAddress billingAddressStateOrProvince(String billingAddressStateOrProvince) { + public ResponseAdditionalDataBillingAddress billingAddressStateOrProvince( + String billingAddressStateOrProvince) { this.billingAddressStateOrProvince = billingAddressStateOrProvince; return this; } /** - * The billing address state or province passed in the payment request. Example: NH - * @return billingAddressStateOrProvince The billing address state or province passed in the payment request. Example: NH + * The billing address state or province passed in the payment request. Example: NH + * + * @return billingAddressStateOrProvince The billing address state or province passed in the + * payment request. Example: NH */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,9 +224,10 @@ public String getBillingAddressStateOrProvince() { } /** - * The billing address state or province passed in the payment request. Example: NH + * The billing address state or province passed in the payment request. Example: NH * - * @param billingAddressStateOrProvince The billing address state or province passed in the payment request. Example: NH + * @param billingAddressStateOrProvince The billing address state or province passed in the + * payment request. Example: NH */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -222,7 +239,8 @@ public void setBillingAddressStateOrProvince(String billingAddressStateOrProvinc * The billing address street passed in the payment request. * * @param billingAddressStreet The billing address street passed in the payment request. - * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method chaining + * @return the current {@code ResponseAdditionalDataBillingAddress} instance, allowing for method + * chaining */ public ResponseAdditionalDataBillingAddress billingAddressStreet(String billingAddressStreet) { this.billingAddressStreet = billingAddressStreet; @@ -231,6 +249,7 @@ public ResponseAdditionalDataBillingAddress billingAddressStreet(String billingA /** * The billing address street passed in the payment request. + * * @return billingAddressStreet The billing address street passed in the payment request. */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS_STREET) @@ -250,9 +269,7 @@ public void setBillingAddressStreet(String billingAddressStreet) { this.billingAddressStreet = billingAddressStreet; } - /** - * Return true if this ResponseAdditionalDataBillingAddress object is equal to o. - */ + /** Return true if this ResponseAdditionalDataBillingAddress object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -261,18 +278,34 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResponseAdditionalDataBillingAddress responseAdditionalDataBillingAddress = (ResponseAdditionalDataBillingAddress) o; - return Objects.equals(this.billingAddressCity, responseAdditionalDataBillingAddress.billingAddressCity) && - Objects.equals(this.billingAddressCountry, responseAdditionalDataBillingAddress.billingAddressCountry) && - Objects.equals(this.billingAddressHouseNumberOrName, responseAdditionalDataBillingAddress.billingAddressHouseNumberOrName) && - Objects.equals(this.billingAddressPostalCode, responseAdditionalDataBillingAddress.billingAddressPostalCode) && - Objects.equals(this.billingAddressStateOrProvince, responseAdditionalDataBillingAddress.billingAddressStateOrProvince) && - Objects.equals(this.billingAddressStreet, responseAdditionalDataBillingAddress.billingAddressStreet); + ResponseAdditionalDataBillingAddress responseAdditionalDataBillingAddress = + (ResponseAdditionalDataBillingAddress) o; + return Objects.equals( + this.billingAddressCity, responseAdditionalDataBillingAddress.billingAddressCity) + && Objects.equals( + this.billingAddressCountry, responseAdditionalDataBillingAddress.billingAddressCountry) + && Objects.equals( + this.billingAddressHouseNumberOrName, + responseAdditionalDataBillingAddress.billingAddressHouseNumberOrName) + && Objects.equals( + this.billingAddressPostalCode, + responseAdditionalDataBillingAddress.billingAddressPostalCode) + && Objects.equals( + this.billingAddressStateOrProvince, + responseAdditionalDataBillingAddress.billingAddressStateOrProvince) + && Objects.equals( + this.billingAddressStreet, responseAdditionalDataBillingAddress.billingAddressStreet); } @Override public int hashCode() { - return Objects.hash(billingAddressCity, billingAddressCountry, billingAddressHouseNumberOrName, billingAddressPostalCode, billingAddressStateOrProvince, billingAddressStreet); + return Objects.hash( + billingAddressCity, + billingAddressCountry, + billingAddressHouseNumberOrName, + billingAddressPostalCode, + billingAddressStateOrProvince, + billingAddressStreet); } @Override @@ -280,18 +313,27 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataBillingAddress {\n"); sb.append(" billingAddressCity: ").append(toIndentedString(billingAddressCity)).append("\n"); - sb.append(" billingAddressCountry: ").append(toIndentedString(billingAddressCountry)).append("\n"); - sb.append(" billingAddressHouseNumberOrName: ").append(toIndentedString(billingAddressHouseNumberOrName)).append("\n"); - sb.append(" billingAddressPostalCode: ").append(toIndentedString(billingAddressPostalCode)).append("\n"); - sb.append(" billingAddressStateOrProvince: ").append(toIndentedString(billingAddressStateOrProvince)).append("\n"); - sb.append(" billingAddressStreet: ").append(toIndentedString(billingAddressStreet)).append("\n"); + sb.append(" billingAddressCountry: ") + .append(toIndentedString(billingAddressCountry)) + .append("\n"); + sb.append(" billingAddressHouseNumberOrName: ") + .append(toIndentedString(billingAddressHouseNumberOrName)) + .append("\n"); + sb.append(" billingAddressPostalCode: ") + .append(toIndentedString(billingAddressPostalCode)) + .append("\n"); + sb.append(" billingAddressStateOrProvince: ") + .append(toIndentedString(billingAddressStateOrProvince)) + .append("\n"); + sb.append(" billingAddressStreet: ") + .append(toIndentedString(billingAddressStreet)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -300,21 +342,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResponseAdditionalDataBillingAddress given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataBillingAddress - * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataBillingAddress + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ResponseAdditionalDataBillingAddress */ - public static ResponseAdditionalDataBillingAddress fromJson(String jsonString) throws JsonProcessingException { + public static ResponseAdditionalDataBillingAddress fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataBillingAddress.class); } -/** - * Convert an instance of ResponseAdditionalDataBillingAddress to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResponseAdditionalDataBillingAddress to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataCard.java b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataCard.java index ff55fd13e..74ac88c78 100644 --- a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataCard.java +++ b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataCard.java @@ -2,31 +2,26 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * ResponseAdditionalDataCard - */ +/** ResponseAdditionalDataCard */ @JsonPropertyOrder({ ResponseAdditionalDataCard.JSON_PROPERTY_CARD_BIN, ResponseAdditionalDataCard.JSON_PROPERTY_CARD_HOLDER_NAME, @@ -38,7 +33,6 @@ ResponseAdditionalDataCard.JSON_PROPERTY_CARD_SUMMARY, ResponseAdditionalDataCard.JSON_PROPERTY_ISSUER_BIN }) - public class ResponseAdditionalDataCard { public static final String JSON_PROPERTY_CARD_BIN = "cardBin"; private String cardBin; @@ -59,10 +53,15 @@ public class ResponseAdditionalDataCard { private String cardPaymentMethod; /** - * The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit + * The Card Product ID represents the type of card following card scheme product definitions and + * can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - + * Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa + * Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard + * Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * + * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard + * Select Debit */ public enum CardProductIdEnum { - A(String.valueOf("A")), B(String.valueOf("B")), @@ -90,7 +89,7 @@ public enum CardProductIdEnum { private String value; CardProductIdEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -111,7 +110,11 @@ public static CardProductIdEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("CardProductIdEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CardProductIdEnum.values())); + LOG.warning( + "CardProductIdEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(CardProductIdEnum.values())); return null; } } @@ -125,13 +128,16 @@ public static CardProductIdEnum fromValue(String value) { public static final String JSON_PROPERTY_ISSUER_BIN = "issuerBin"; private String issuerBin; - public ResponseAdditionalDataCard() { - } + public ResponseAdditionalDataCard() {} /** - * The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 + * The first six digits of the card number. This is the [Bank Identification Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with a six-digit BIN. Example: 521234 * - * @param cardBin The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 + * @param cardBin The first six digits of the card number. This is the [Bank Identification Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with a six-digit BIN. Example: 521234 * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardBin(String cardBin) { @@ -140,8 +146,14 @@ public ResponseAdditionalDataCard cardBin(String cardBin) { } /** - * The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 - * @return cardBin The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 + * The first six digits of the card number. This is the [Bank Identification Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with a six-digit BIN. Example: 521234 + * + * @return cardBin The first six digits of the card number. This is the [Bank Identification + * Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with a six-digit BIN. Example: 521234 */ @JsonProperty(JSON_PROPERTY_CARD_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,9 +162,13 @@ public String getCardBin() { } /** - * The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 + * The first six digits of the card number. This is the [Bank Identification Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with a six-digit BIN. Example: 521234 * - * @param cardBin The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 + * @param cardBin The first six digits of the card number. This is the [Bank Identification Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with a six-digit BIN. Example: 521234 */ @JsonProperty(JSON_PROPERTY_CARD_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,6 +189,7 @@ public ResponseAdditionalDataCard cardHolderName(String cardHolderName) { /** * The cardholder name passed in the payment request. + * * @return cardHolderName The cardholder name passed in the payment request. */ @JsonProperty(JSON_PROPERTY_CARD_HOLDER_NAME) @@ -193,9 +210,11 @@ public void setCardHolderName(String cardHolderName) { } /** - * The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. + * The bank or the financial institution granting lines of credit through card association branded + * payment cards. This information can be included when available. * - * @param cardIssuingBank The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. + * @param cardIssuingBank The bank or the financial institution granting lines of credit through + * card association branded payment cards. This information can be included when available. * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardIssuingBank(String cardIssuingBank) { @@ -204,8 +223,11 @@ public ResponseAdditionalDataCard cardIssuingBank(String cardIssuingBank) { } /** - * The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. - * @return cardIssuingBank The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. + * The bank or the financial institution granting lines of credit through card association branded + * payment cards. This information can be included when available. + * + * @return cardIssuingBank The bank or the financial institution granting lines of credit through + * card association branded payment cards. This information can be included when available. */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_BANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,9 +236,11 @@ public String getCardIssuingBank() { } /** - * The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. + * The bank or the financial institution granting lines of credit through card association branded + * payment cards. This information can be included when available. * - * @param cardIssuingBank The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. + * @param cardIssuingBank The bank or the financial institution granting lines of credit through + * card association branded payment cards. This information can be included when available. */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_BANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -225,9 +249,9 @@ public void setCardIssuingBank(String cardIssuingBank) { } /** - * The country where the card was issued. Example: US + * The country where the card was issued. Example: US * - * @param cardIssuingCountry The country where the card was issued. Example: US + * @param cardIssuingCountry The country where the card was issued. Example: US * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardIssuingCountry(String cardIssuingCountry) { @@ -236,8 +260,9 @@ public ResponseAdditionalDataCard cardIssuingCountry(String cardIssuingCountry) } /** - * The country where the card was issued. Example: US - * @return cardIssuingCountry The country where the card was issued. Example: US + * The country where the card was issued. Example: US + * + * @return cardIssuingCountry The country where the card was issued. Example: US */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -246,9 +271,9 @@ public String getCardIssuingCountry() { } /** - * The country where the card was issued. Example: US + * The country where the card was issued. Example: US * - * @param cardIssuingCountry The country where the card was issued. Example: US + * @param cardIssuingCountry The country where the card was issued. Example: US */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -257,9 +282,12 @@ public void setCardIssuingCountry(String cardIssuingCountry) { } /** - * The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD + * The currency in which the card is issued, if this information is available. Provided as the + * currency code or currency number from the ISO-4217 standard. Example: USD * - * @param cardIssuingCurrency The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD + * @param cardIssuingCurrency The currency in which the card is issued, if this information is + * available. Provided as the currency code or currency number from the ISO-4217 standard. + * Example: USD * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardIssuingCurrency(String cardIssuingCurrency) { @@ -268,8 +296,12 @@ public ResponseAdditionalDataCard cardIssuingCurrency(String cardIssuingCurrency } /** - * The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD - * @return cardIssuingCurrency The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD + * The currency in which the card is issued, if this information is available. Provided as the + * currency code or currency number from the ISO-4217 standard. Example: USD + * + * @return cardIssuingCurrency The currency in which the card is issued, if this information is + * available. Provided as the currency code or currency number from the ISO-4217 standard. + * Example: USD */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -278,9 +310,12 @@ public String getCardIssuingCurrency() { } /** - * The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD + * The currency in which the card is issued, if this information is available. Provided as the + * currency code or currency number from the ISO-4217 standard. Example: USD * - * @param cardIssuingCurrency The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD + * @param cardIssuingCurrency The currency in which the card is issued, if this information is + * available. Provided as the currency code or currency number from the ISO-4217 standard. + * Example: USD */ @JsonProperty(JSON_PROPERTY_CARD_ISSUING_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -289,9 +324,9 @@ public void setCardIssuingCurrency(String cardIssuingCurrency) { } /** - * The card payment method used for the transaction. Example: amex + * The card payment method used for the transaction. Example: amex * - * @param cardPaymentMethod The card payment method used for the transaction. Example: amex + * @param cardPaymentMethod The card payment method used for the transaction. Example: amex * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardPaymentMethod(String cardPaymentMethod) { @@ -300,8 +335,9 @@ public ResponseAdditionalDataCard cardPaymentMethod(String cardPaymentMethod) { } /** - * The card payment method used for the transaction. Example: amex - * @return cardPaymentMethod The card payment method used for the transaction. Example: amex + * The card payment method used for the transaction. Example: amex + * + * @return cardPaymentMethod The card payment method used for the transaction. Example: amex */ @JsonProperty(JSON_PROPERTY_CARD_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -310,9 +346,9 @@ public String getCardPaymentMethod() { } /** - * The card payment method used for the transaction. Example: amex + * The card payment method used for the transaction. Example: amex * - * @param cardPaymentMethod The card payment method used for the transaction. Example: amex + * @param cardPaymentMethod The card payment method used for the transaction. Example: amex */ @JsonProperty(JSON_PROPERTY_CARD_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -321,9 +357,21 @@ public void setCardPaymentMethod(String cardPaymentMethod) { } /** - * The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit + * The Card Product ID represents the type of card following card scheme product definitions and + * can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - + * Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa + * Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard + * Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * + * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard + * Select Debit * - * @param cardProductId The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit + * @param cardProductId The Card Product ID represents the type of card following card scheme + * product definitions and can be returned for Adyen Acquiring service level payments. + * Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** + * - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values + * Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - + * Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard + * Premium Charge * **MCI** - Mastercard Select Debit * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardProductId(CardProductIdEnum cardProductId) { @@ -332,8 +380,21 @@ public ResponseAdditionalDataCard cardProductId(CardProductIdEnum cardProductId) } /** - * The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit - * @return cardProductId The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit + * The Card Product ID represents the type of card following card scheme product definitions and + * can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - + * Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa + * Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard + * Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * + * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard + * Select Debit + * + * @return cardProductId The Card Product ID represents the type of card following card scheme + * product definitions and can be returned for Adyen Acquiring service level payments. + * Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** + * - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values + * Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - + * Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard + * Premium Charge * **MCI** - Mastercard Select Debit */ @JsonProperty(JSON_PROPERTY_CARD_PRODUCT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -342,9 +403,21 @@ public CardProductIdEnum getCardProductId() { } /** - * The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit + * The Card Product ID represents the type of card following card scheme product definitions and + * can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - + * Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa + * Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard + * Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * + * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard + * Select Debit * - * @param cardProductId The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit + * @param cardProductId The Card Product ID represents the type of card following card scheme + * product definitions and can be returned for Adyen Acquiring service level payments. + * Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** + * - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values + * Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - + * Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard + * Premium Charge * **MCI** - Mastercard Select Debit */ @JsonProperty(JSON_PROPERTY_CARD_PRODUCT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -353,9 +426,10 @@ public void setCardProductId(CardProductIdEnum cardProductId) { } /** - * The last four digits of a card number. > Returned only in case of a card payment. + * The last four digits of a card number. > Returned only in case of a card payment. * - * @param cardSummary The last four digits of a card number. > Returned only in case of a card payment. + * @param cardSummary The last four digits of a card number. > Returned only in case of a card + * payment. * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard cardSummary(String cardSummary) { @@ -364,8 +438,10 @@ public ResponseAdditionalDataCard cardSummary(String cardSummary) { } /** - * The last four digits of a card number. > Returned only in case of a card payment. - * @return cardSummary The last four digits of a card number. > Returned only in case of a card payment. + * The last four digits of a card number. > Returned only in case of a card payment. + * + * @return cardSummary The last four digits of a card number. > Returned only in case of a card + * payment. */ @JsonProperty(JSON_PROPERTY_CARD_SUMMARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -374,9 +450,10 @@ public String getCardSummary() { } /** - * The last four digits of a card number. > Returned only in case of a card payment. + * The last four digits of a card number. > Returned only in case of a card payment. * - * @param cardSummary The last four digits of a card number. > Returned only in case of a card payment. + * @param cardSummary The last four digits of a card number. > Returned only in case of a card + * payment. */ @JsonProperty(JSON_PROPERTY_CARD_SUMMARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -385,9 +462,15 @@ public void setCardSummary(String cardSummary) { } /** - * The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 + * The first eight digits of the card number. Only returned if the card number is 16 digits or + * more. This is the [Bank Identification Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with an eight-digit BIN. Example: 52123423 * - * @param issuerBin The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 + * @param issuerBin The first eight digits of the card number. Only returned if the card number is + * 16 digits or more. This is the [Bank Identification Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with an eight-digit BIN. Example: 52123423 * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining */ public ResponseAdditionalDataCard issuerBin(String issuerBin) { @@ -396,8 +479,15 @@ public ResponseAdditionalDataCard issuerBin(String issuerBin) { } /** - * The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 - * @return issuerBin The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 + * The first eight digits of the card number. Only returned if the card number is 16 digits or + * more. This is the [Bank Identification Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with an eight-digit BIN. Example: 52123423 + * + * @return issuerBin The first eight digits of the card number. Only returned if the card number + * is 16 digits or more. This is the [Bank Identification Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with an eight-digit BIN. Example: 52123423 */ @JsonProperty(JSON_PROPERTY_ISSUER_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -406,9 +496,15 @@ public String getIssuerBin() { } /** - * The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 + * The first eight digits of the card number. Only returned if the card number is 16 digits or + * more. This is the [Bank Identification Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with an eight-digit BIN. Example: 52123423 * - * @param issuerBin The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 + * @param issuerBin The first eight digits of the card number. Only returned if the card number is + * 16 digits or more. This is the [Bank Identification Number + * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) + * for card numbers with an eight-digit BIN. Example: 52123423 */ @JsonProperty(JSON_PROPERTY_ISSUER_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -416,9 +512,7 @@ public void setIssuerBin(String issuerBin) { this.issuerBin = issuerBin; } - /** - * Return true if this ResponseAdditionalDataCard object is equal to o. - */ + /** Return true if this ResponseAdditionalDataCard object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -428,20 +522,29 @@ public boolean equals(Object o) { return false; } ResponseAdditionalDataCard responseAdditionalDataCard = (ResponseAdditionalDataCard) o; - return Objects.equals(this.cardBin, responseAdditionalDataCard.cardBin) && - Objects.equals(this.cardHolderName, responseAdditionalDataCard.cardHolderName) && - Objects.equals(this.cardIssuingBank, responseAdditionalDataCard.cardIssuingBank) && - Objects.equals(this.cardIssuingCountry, responseAdditionalDataCard.cardIssuingCountry) && - Objects.equals(this.cardIssuingCurrency, responseAdditionalDataCard.cardIssuingCurrency) && - Objects.equals(this.cardPaymentMethod, responseAdditionalDataCard.cardPaymentMethod) && - Objects.equals(this.cardProductId, responseAdditionalDataCard.cardProductId) && - Objects.equals(this.cardSummary, responseAdditionalDataCard.cardSummary) && - Objects.equals(this.issuerBin, responseAdditionalDataCard.issuerBin); + return Objects.equals(this.cardBin, responseAdditionalDataCard.cardBin) + && Objects.equals(this.cardHolderName, responseAdditionalDataCard.cardHolderName) + && Objects.equals(this.cardIssuingBank, responseAdditionalDataCard.cardIssuingBank) + && Objects.equals(this.cardIssuingCountry, responseAdditionalDataCard.cardIssuingCountry) + && Objects.equals(this.cardIssuingCurrency, responseAdditionalDataCard.cardIssuingCurrency) + && Objects.equals(this.cardPaymentMethod, responseAdditionalDataCard.cardPaymentMethod) + && Objects.equals(this.cardProductId, responseAdditionalDataCard.cardProductId) + && Objects.equals(this.cardSummary, responseAdditionalDataCard.cardSummary) + && Objects.equals(this.issuerBin, responseAdditionalDataCard.issuerBin); } @Override public int hashCode() { - return Objects.hash(cardBin, cardHolderName, cardIssuingBank, cardIssuingCountry, cardIssuingCurrency, cardPaymentMethod, cardProductId, cardSummary, issuerBin); + return Objects.hash( + cardBin, + cardHolderName, + cardIssuingBank, + cardIssuingCountry, + cardIssuingCurrency, + cardPaymentMethod, + cardProductId, + cardSummary, + issuerBin); } @Override @@ -452,7 +555,9 @@ public String toString() { sb.append(" cardHolderName: ").append(toIndentedString(cardHolderName)).append("\n"); sb.append(" cardIssuingBank: ").append(toIndentedString(cardIssuingBank)).append("\n"); sb.append(" cardIssuingCountry: ").append(toIndentedString(cardIssuingCountry)).append("\n"); - sb.append(" cardIssuingCurrency: ").append(toIndentedString(cardIssuingCurrency)).append("\n"); + sb.append(" cardIssuingCurrency: ") + .append(toIndentedString(cardIssuingCurrency)) + .append("\n"); sb.append(" cardPaymentMethod: ").append(toIndentedString(cardPaymentMethod)).append("\n"); sb.append(" cardProductId: ").append(toIndentedString(cardProductId)).append("\n"); sb.append(" cardSummary: ").append(toIndentedString(cardSummary)).append("\n"); @@ -462,8 +567,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -472,21 +576,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResponseAdditionalDataCard given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataCard - * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataCard + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ResponseAdditionalDataCard */ - public static ResponseAdditionalDataCard fromJson(String jsonString) throws JsonProcessingException { + public static ResponseAdditionalDataCard fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataCard.class); } -/** - * Convert an instance of ResponseAdditionalDataCard to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResponseAdditionalDataCard to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataCommon.java b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataCommon.java index e9b43dcd6..4e4b94550 100644 --- a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataCommon.java +++ b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataCommon.java @@ -2,31 +2,26 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payout; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * ResponseAdditionalDataCommon - */ +/** ResponseAdditionalDataCommon */ @JsonPropertyOrder({ ResponseAdditionalDataCommon.JSON_PROPERTY_ACQUIRER_ACCOUNT_CODE, ResponseAdditionalDataCommon.JSON_PROPERTY_ACQUIRER_CODE, @@ -92,7 +87,6 @@ ResponseAdditionalDataCommon.JSON_PROPERTY_VISA_TRANSACTION_ID, ResponseAdditionalDataCommon.JSON_PROPERTY_XID }) - public class ResponseAdditionalDataCommon { public static final String JSON_PROPERTY_ACQUIRER_ACCOUNT_CODE = "acquirerAccountCode"; private String acquirerAccountCode; @@ -154,17 +148,15 @@ public class ResponseAdditionalDataCommon { public static final String JSON_PROPERTY_EXTRA_COSTS_VALUE = "extraCostsValue"; private String extraCostsValue; - public static final String JSON_PROPERTY_FRAUD_CHECK_ITEM_NR_FRAUD_CHECKNAME = "fraudCheck-[itemNr]-[FraudCheckname]"; + public static final String JSON_PROPERTY_FRAUD_CHECK_ITEM_NR_FRAUD_CHECKNAME = + "fraudCheck-[itemNr]-[FraudCheckname]"; private String fraudCheckItemNrFraudCheckname; public static final String JSON_PROPERTY_FRAUD_MANUAL_REVIEW = "fraudManualReview"; private String fraudManualReview; - /** - * The fraud result properties of the payment. - */ + /** The fraud result properties of the payment. */ public enum FraudResultTypeEnum { - GREEN(String.valueOf("GREEN")), FRAUD(String.valueOf("FRAUD")); @@ -174,7 +166,7 @@ public enum FraudResultTypeEnum { private String value; FraudResultTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -195,7 +187,11 @@ public static FraudResultTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FraudResultTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FraudResultTypeEnum.values())); + LOG.warning( + "FraudResultTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FraudResultTypeEnum.values())); return null; } } @@ -204,10 +200,12 @@ public static FraudResultTypeEnum fromValue(String value) { private FraudResultTypeEnum fraudResultType; /** - * The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * The risk level of the transaction as classified by the [machine + * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) + * fraud risk rule. The risk level indicates the likelihood that a transaction will result in a + * fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh */ public enum FraudRiskLevelEnum { - VERYLOW(String.valueOf("veryLow")), LOW(String.valueOf("low")), @@ -223,7 +221,7 @@ public enum FraudRiskLevelEnum { private String value; FraudRiskLevelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -244,7 +242,11 @@ public static FraudRiskLevelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("FraudRiskLevelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(FraudRiskLevelEnum.values())); + LOG.warning( + "FraudRiskLevelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FraudRiskLevelEnum.values())); return null; } } @@ -270,7 +272,8 @@ public static FraudRiskLevelEnum fromValue(String value) { public static final String JSON_PROPERTY_LIABILITY_SHIFT = "liabilityShift"; private String liabilityShift; - public static final String JSON_PROPERTY_MC_BANK_NET_REFERENCE_NUMBER = "mcBankNetReferenceNumber"; + public static final String JSON_PROPERTY_MC_BANK_NET_REFERENCE_NUMBER = + "mcBankNetReferenceNumber"; private String mcBankNetReferenceNumber; public static final String JSON_PROPERTY_MERCHANT_ADVICE_CODE = "merchantAdviceCode"; @@ -297,7 +300,8 @@ public static FraudRiskLevelEnum fromValue(String value) { public static final String JSON_PROPERTY_PAYOUT_ELIGIBLE = "payoutEligible"; private String payoutEligible; - public static final String JSON_PROPERTY_REALTIME_ACCOUNT_UPDATER_STATUS = "realtimeAccountUpdaterStatus"; + public static final String JSON_PROPERTY_REALTIME_ACCOUNT_UPDATER_STATUS = + "realtimeAccountUpdaterStatus"; private String realtimeAccountUpdaterStatus; public static final String JSON_PROPERTY_RECEIPT_FREE_TEXT = "receiptFreeText"; @@ -306,34 +310,36 @@ public static FraudRiskLevelEnum fromValue(String value) { public static final String JSON_PROPERTY_RECURRING_CONTRACT_TYPES = "recurring.contractTypes"; private String recurringContractTypes; - public static final String JSON_PROPERTY_RECURRING_FIRST_PSP_REFERENCE = "recurring.firstPspReference"; + public static final String JSON_PROPERTY_RECURRING_FIRST_PSP_REFERENCE = + "recurring.firstPspReference"; private String recurringFirstPspReference; - public static final String JSON_PROPERTY_RECURRING_RECURRING_DETAIL_REFERENCE = "recurring.recurringDetailReference"; - @Deprecated // deprecated since Adyen Payout API v68: Use tokenization.storedPaymentMethodId instead. + public static final String JSON_PROPERTY_RECURRING_RECURRING_DETAIL_REFERENCE = + "recurring.recurringDetailReference"; + @Deprecated // deprecated since Adyen Payout API v68: Use tokenization.storedPaymentMethodId + // instead. private String recurringRecurringDetailReference; - public static final String JSON_PROPERTY_RECURRING_SHOPPER_REFERENCE = "recurring.shopperReference"; + public static final String JSON_PROPERTY_RECURRING_SHOPPER_REFERENCE = + "recurring.shopperReference"; @Deprecated // deprecated since Adyen Payout API v68: Use tokenization.shopperReference instead. private String recurringShopperReference; - /** - * The processing model used for the recurring transaction. - */ + /** The processing model used for the recurring transaction. */ public enum RecurringProcessingModelEnum { - CARDONFILE(String.valueOf("CardOnFile")), SUBSCRIPTION(String.valueOf("Subscription")), UNSCHEDULEDCARDONFILE(String.valueOf("UnscheduledCardOnFile")); - private static final Logger LOG = Logger.getLogger(RecurringProcessingModelEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(RecurringProcessingModelEnum.class.getName()); private String value; RecurringProcessingModelEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -354,7 +360,11 @@ public static RecurringProcessingModelEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("RecurringProcessingModelEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(RecurringProcessingModelEnum.values())); + LOG.warning( + "RecurringProcessingModelEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(RecurringProcessingModelEnum.values())); return null; } } @@ -386,7 +396,8 @@ public static RecurringProcessingModelEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_AUTHENTICATED = "threeDAuthenticated"; private String threeDAuthenticated; - public static final String JSON_PROPERTY_THREE_D_AUTHENTICATED_RESPONSE = "threeDAuthenticatedResponse"; + public static final String JSON_PROPERTY_THREE_D_AUTHENTICATED_RESPONSE = + "threeDAuthenticatedResponse"; private String threeDAuthenticatedResponse; public static final String JSON_PROPERTY_THREE_D_OFFERED = "threeDOffered"; @@ -398,26 +409,29 @@ public static RecurringProcessingModelEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_VERSION = "threeDSVersion"; private String threeDSVersion; - public static final String JSON_PROPERTY_TOKENIZATION_SHOPPER_REFERENCE = "tokenization.shopperReference"; + public static final String JSON_PROPERTY_TOKENIZATION_SHOPPER_REFERENCE = + "tokenization.shopperReference"; private String tokenizationShopperReference; /** - * The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. + * The operation performed on the token. Possible values: * **created**: the token has been + * created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details + * have already been stored. */ public enum TokenizationStoreOperationTypeEnum { - CREATED(String.valueOf("created")), UPDATED(String.valueOf("updated")), ALREADYEXISTING(String.valueOf("alreadyExisting")); - private static final Logger LOG = Logger.getLogger(TokenizationStoreOperationTypeEnum.class.getName()); + private static final Logger LOG = + Logger.getLogger(TokenizationStoreOperationTypeEnum.class.getName()); private String value; TokenizationStoreOperationTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -438,15 +452,21 @@ public static TokenizationStoreOperationTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TokenizationStoreOperationTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TokenizationStoreOperationTypeEnum.values())); + LOG.warning( + "TokenizationStoreOperationTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TokenizationStoreOperationTypeEnum.values())); return null; } } - public static final String JSON_PROPERTY_TOKENIZATION_STORE_OPERATION_TYPE = "tokenization.store.operationType"; + public static final String JSON_PROPERTY_TOKENIZATION_STORE_OPERATION_TYPE = + "tokenization.store.operationType"; private TokenizationStoreOperationTypeEnum tokenizationStoreOperationType; - public static final String JSON_PROPERTY_TOKENIZATION_STORED_PAYMENT_METHOD_ID = "tokenization.storedPaymentMethodId"; + public static final String JSON_PROPERTY_TOKENIZATION_STORED_PAYMENT_METHOD_ID = + "tokenization.storedPaymentMethodId"; private String tokenizationStoredPaymentMethodId; public static final String JSON_PROPERTY_VISA_TRANSACTION_ID = "visaTransactionId"; @@ -455,13 +475,14 @@ public static TokenizationStoreOperationTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_XID = "xid"; private String xid; - public ResponseAdditionalDataCommon() { - } + public ResponseAdditionalDataCommon() {} /** - * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. + * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant + * for PayPal transactions. * - * @param acquirerAccountCode The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. + * @param acquirerAccountCode The name of the Adyen acquirer account. Example: + * PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon acquirerAccountCode(String acquirerAccountCode) { @@ -470,8 +491,11 @@ public ResponseAdditionalDataCommon acquirerAccountCode(String acquirerAccountCo } /** - * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. - * @return acquirerAccountCode The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. + * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant + * for PayPal transactions. + * + * @return acquirerAccountCode The name of the Adyen acquirer account. Example: + * PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -480,9 +504,11 @@ public String getAcquirerAccountCode() { } /** - * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. + * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant + * for PayPal transactions. * - * @param acquirerAccountCode The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. + * @param acquirerAccountCode The name of the Adyen acquirer account. Example: + * PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -491,9 +517,10 @@ public void setAcquirerAccountCode(String acquirerAccountCode) { } /** - * The name of the acquirer processing the payment request. Example: TestPmmAcquirer + * The name of the acquirer processing the payment request. Example: TestPmmAcquirer * - * @param acquirerCode The name of the acquirer processing the payment request. Example: TestPmmAcquirer + * @param acquirerCode The name of the acquirer processing the payment request. Example: + * TestPmmAcquirer * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon acquirerCode(String acquirerCode) { @@ -502,8 +529,10 @@ public ResponseAdditionalDataCommon acquirerCode(String acquirerCode) { } /** - * The name of the acquirer processing the payment request. Example: TestPmmAcquirer - * @return acquirerCode The name of the acquirer processing the payment request. Example: TestPmmAcquirer + * The name of the acquirer processing the payment request. Example: TestPmmAcquirer + * + * @return acquirerCode The name of the acquirer processing the payment request. Example: + * TestPmmAcquirer */ @JsonProperty(JSON_PROPERTY_ACQUIRER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -512,9 +541,10 @@ public String getAcquirerCode() { } /** - * The name of the acquirer processing the payment request. Example: TestPmmAcquirer + * The name of the acquirer processing the payment request. Example: TestPmmAcquirer * - * @param acquirerCode The name of the acquirer processing the payment request. Example: TestPmmAcquirer + * @param acquirerCode The name of the acquirer processing the payment request. Example: + * TestPmmAcquirer */ @JsonProperty(JSON_PROPERTY_ACQUIRER_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -523,9 +553,11 @@ public void setAcquirerCode(String acquirerCode) { } /** - * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 + * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used + * for settlement. Example: 7C9N3FNBKT9 * - * @param acquirerReference The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 + * @param acquirerReference The reference number that can be used for reconciliation in case a + * non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon acquirerReference(String acquirerReference) { @@ -534,8 +566,11 @@ public ResponseAdditionalDataCommon acquirerReference(String acquirerReference) } /** - * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 - * @return acquirerReference The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 + * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used + * for settlement. Example: 7C9N3FNBKT9 + * + * @return acquirerReference The reference number that can be used for reconciliation in case a + * non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 */ @JsonProperty(JSON_PROPERTY_ACQUIRER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -544,9 +579,11 @@ public String getAcquirerReference() { } /** - * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 + * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used + * for settlement. Example: 7C9N3FNBKT9 * - * @param acquirerReference The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 + * @param acquirerReference The reference number that can be used for reconciliation in case a + * non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 */ @JsonProperty(JSON_PROPERTY_ACQUIRER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -555,9 +592,9 @@ public void setAcquirerReference(String acquirerReference) { } /** - * The Adyen alias of the card. Example: H167852639363479 + * The Adyen alias of the card. Example: H167852639363479 * - * @param alias The Adyen alias of the card. Example: H167852639363479 + * @param alias The Adyen alias of the card. Example: H167852639363479 * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon alias(String alias) { @@ -566,8 +603,9 @@ public ResponseAdditionalDataCommon alias(String alias) { } /** - * The Adyen alias of the card. Example: H167852639363479 - * @return alias The Adyen alias of the card. Example: H167852639363479 + * The Adyen alias of the card. Example: H167852639363479 + * + * @return alias The Adyen alias of the card. Example: H167852639363479 */ @JsonProperty(JSON_PROPERTY_ALIAS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -576,9 +614,9 @@ public String getAlias() { } /** - * The Adyen alias of the card. Example: H167852639363479 + * The Adyen alias of the card. Example: H167852639363479 * - * @param alias The Adyen alias of the card. Example: H167852639363479 + * @param alias The Adyen alias of the card. Example: H167852639363479 */ @JsonProperty(JSON_PROPERTY_ALIAS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -587,9 +625,9 @@ public void setAlias(String alias) { } /** - * The type of the card alias. Example: Default + * The type of the card alias. Example: Default * - * @param aliasType The type of the card alias. Example: Default + * @param aliasType The type of the card alias. Example: Default * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon aliasType(String aliasType) { @@ -598,8 +636,9 @@ public ResponseAdditionalDataCommon aliasType(String aliasType) { } /** - * The type of the card alias. Example: Default - * @return aliasType The type of the card alias. Example: Default + * The type of the card alias. Example: Default + * + * @return aliasType The type of the card alias. Example: Default */ @JsonProperty(JSON_PROPERTY_ALIAS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -608,9 +647,9 @@ public String getAliasType() { } /** - * The type of the card alias. Example: Default + * The type of the card alias. Example: Default * - * @param aliasType The type of the card alias. Example: Default + * @param aliasType The type of the card alias. Example: Default */ @JsonProperty(JSON_PROPERTY_ALIAS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -619,9 +658,13 @@ public void setAliasType(String aliasType) { } /** - * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 + * Authorisation code: * When the payment is authorised successfully, this field holds the + * authorisation code for the payment. * When the payment is not authorised, this field is empty. + * Example: 58747 * - * @param authCode Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 + * @param authCode Authorisation code: * When the payment is authorised successfully, this field + * holds the authorisation code for the payment. * When the payment is not authorised, this + * field is empty. Example: 58747 * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon authCode(String authCode) { @@ -630,8 +673,13 @@ public ResponseAdditionalDataCommon authCode(String authCode) { } /** - * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 - * @return authCode Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 + * Authorisation code: * When the payment is authorised successfully, this field holds the + * authorisation code for the payment. * When the payment is not authorised, this field is empty. + * Example: 58747 + * + * @return authCode Authorisation code: * When the payment is authorised successfully, this field + * holds the authorisation code for the payment. * When the payment is not authorised, this + * field is empty. Example: 58747 */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -640,9 +688,13 @@ public String getAuthCode() { } /** - * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 + * Authorisation code: * When the payment is authorised successfully, this field holds the + * authorisation code for the payment. * When the payment is not authorised, this field is empty. + * Example: 58747 * - * @param authCode Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 + * @param authCode Authorisation code: * When the payment is authorised successfully, this field + * holds the authorisation code for the payment. * When the payment is not authorised, this + * field is empty. Example: 58747 */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -663,6 +715,7 @@ public ResponseAdditionalDataCommon authorisationMid(String authorisationMid) { /** * Merchant ID known by the acquirer. + * * @return authorisationMid Merchant ID known by the acquirer. */ @JsonProperty(JSON_PROPERTY_AUTHORISATION_MID) @@ -683,9 +736,11 @@ public void setAuthorisationMid(String authorisationMid) { } /** - * The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The currency of the authorised amount, as a three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). * - * @param authorisedAmountCurrency The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @param authorisedAmountCurrency The currency of the authorised amount, as a three-character + * [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon authorisedAmountCurrency(String authorisedAmountCurrency) { @@ -694,8 +749,11 @@ public ResponseAdditionalDataCommon authorisedAmountCurrency(String authorisedAm } /** - * The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). - * @return authorisedAmountCurrency The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The currency of the authorised amount, as a three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). + * + * @return authorisedAmountCurrency The currency of the authorised amount, as a three-character + * [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_AUTHORISED_AMOUNT_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -704,9 +762,11 @@ public String getAuthorisedAmountCurrency() { } /** - * The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The currency of the authorised amount, as a three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). * - * @param authorisedAmountCurrency The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @param authorisedAmountCurrency The currency of the authorised amount, as a three-character + * [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_AUTHORISED_AMOUNT_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -715,9 +775,12 @@ public void setAuthorisedAmountCurrency(String authorisedAmountCurrency) { } /** - * Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). + * Value of the amount authorised. This amount is represented in minor units according to the + * [following table](https://docs.adyen.com/development-resources/currency-codes). * - * @param authorisedAmountValue Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). + * @param authorisedAmountValue Value of the amount authorised. This amount is represented in + * minor units according to the [following + * table](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon authorisedAmountValue(String authorisedAmountValue) { @@ -726,8 +789,12 @@ public ResponseAdditionalDataCommon authorisedAmountValue(String authorisedAmoun } /** - * Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). - * @return authorisedAmountValue Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). + * Value of the amount authorised. This amount is represented in minor units according to the + * [following table](https://docs.adyen.com/development-resources/currency-codes). + * + * @return authorisedAmountValue Value of the amount authorised. This amount is represented in + * minor units according to the [following + * table](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_AUTHORISED_AMOUNT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -736,9 +803,12 @@ public String getAuthorisedAmountValue() { } /** - * Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). + * Value of the amount authorised. This amount is represented in minor units according to the + * [following table](https://docs.adyen.com/development-resources/currency-codes). * - * @param authorisedAmountValue Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). + * @param authorisedAmountValue Value of the amount authorised. This amount is represented in + * minor units according to the [following + * table](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_AUTHORISED_AMOUNT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -747,9 +817,13 @@ public void setAuthorisedAmountValue(String authorisedAmountValue) { } /** - * The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * The AVS result code of the payment, which provides information about the outcome of the AVS + * check. For possible values, see + * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). * - * @param avsResult The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * @param avsResult The AVS result code of the payment, which provides information about the + * outcome of the AVS check. For possible values, see + * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon avsResult(String avsResult) { @@ -758,8 +832,13 @@ public ResponseAdditionalDataCommon avsResult(String avsResult) { } /** - * The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). - * @return avsResult The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * The AVS result code of the payment, which provides information about the outcome of the AVS + * check. For possible values, see + * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * + * @return avsResult The AVS result code of the payment, which provides information about the + * outcome of the AVS check. For possible values, see + * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). */ @JsonProperty(JSON_PROPERTY_AVS_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -768,9 +847,13 @@ public String getAvsResult() { } /** - * The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * The AVS result code of the payment, which provides information about the outcome of the AVS + * check. For possible values, see + * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). * - * @param avsResult The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + * @param avsResult The AVS result code of the payment, which provides information about the + * outcome of the AVS check. For possible values, see + * [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). */ @JsonProperty(JSON_PROPERTY_AVS_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -779,9 +862,9 @@ public void setAvsResult(String avsResult) { } /** - * Raw AVS result received from the acquirer, where available. Example: D + * Raw AVS result received from the acquirer, where available. Example: D * - * @param avsResultRaw Raw AVS result received from the acquirer, where available. Example: D + * @param avsResultRaw Raw AVS result received from the acquirer, where available. Example: D * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon avsResultRaw(String avsResultRaw) { @@ -790,8 +873,9 @@ public ResponseAdditionalDataCommon avsResultRaw(String avsResultRaw) { } /** - * Raw AVS result received from the acquirer, where available. Example: D - * @return avsResultRaw Raw AVS result received from the acquirer, where available. Example: D + * Raw AVS result received from the acquirer, where available. Example: D + * + * @return avsResultRaw Raw AVS result received from the acquirer, where available. Example: D */ @JsonProperty(JSON_PROPERTY_AVS_RESULT_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -800,9 +884,9 @@ public String getAvsResultRaw() { } /** - * Raw AVS result received from the acquirer, where available. Example: D + * Raw AVS result received from the acquirer, where available. Example: D * - * @param avsResultRaw Raw AVS result received from the acquirer, where available. Example: D + * @param avsResultRaw Raw AVS result received from the acquirer, where available. Example: D */ @JsonProperty(JSON_PROPERTY_AVS_RESULT_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -811,9 +895,10 @@ public void setAvsResultRaw(String avsResultRaw) { } /** - * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. + * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. * - * @param bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. + * @param bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit + * transactions. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon bic(String bic) { @@ -822,8 +907,10 @@ public ResponseAdditionalDataCommon bic(String bic) { } /** - * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. - * @return bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. + * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. + * + * @return bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit + * transactions. */ @JsonProperty(JSON_PROPERTY_BIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -832,9 +919,10 @@ public String getBic() { } /** - * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. + * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. * - * @param bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. + * @param bic BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit + * transactions. */ @JsonProperty(JSON_PROPERTY_BIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -855,6 +943,7 @@ public ResponseAdditionalDataCommon coBrandedWith(String coBrandedWith) { /** * Includes the co-branded card information. + * * @return coBrandedWith Includes the co-branded card information. */ @JsonProperty(JSON_PROPERTY_CO_BRANDED_WITH) @@ -887,6 +976,7 @@ public ResponseAdditionalDataCommon cvcResult(String cvcResult) { /** * The result of CVC verification. + * * @return cvcResult The result of CVC verification. */ @JsonProperty(JSON_PROPERTY_CVC_RESULT) @@ -919,6 +1009,7 @@ public ResponseAdditionalDataCommon cvcResultRaw(String cvcResultRaw) { /** * The raw result of CVC verification. + * * @return cvcResultRaw The raw result of CVC verification. */ @JsonProperty(JSON_PROPERTY_CVC_RESULT_RAW) @@ -939,9 +1030,11 @@ public void setCvcResultRaw(String cvcResultRaw) { } /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. + * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a + * single transaction. * - * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. + * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the + * DS to identify a single transaction. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon dsTransID(String dsTransID) { @@ -950,8 +1043,11 @@ public ResponseAdditionalDataCommon dsTransID(String dsTransID) { } /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. - * @return dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. + * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a + * single transaction. + * + * @return dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the + * DS to identify a single transaction. */ @JsonProperty(JSON_PROPERTY_DS_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -960,9 +1056,11 @@ public String getDsTransID() { } /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. + * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a + * single transaction. * - * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. + * @param dsTransID Supported for 3D Secure 2. The unique transaction identifier assigned by the + * DS to identify a single transaction. */ @JsonProperty(JSON_PROPERTY_DS_TRANS_I_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -971,9 +1069,11 @@ public void setDsTransID(String dsTransID) { } /** - * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 + * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. + * Example: 02 * - * @param eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 + * @param eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment + * session. Example: 02 * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon eci(String eci) { @@ -982,8 +1082,11 @@ public ResponseAdditionalDataCommon eci(String eci) { } /** - * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 - * @return eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 + * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. + * Example: 02 + * + * @return eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment + * session. Example: 02 */ @JsonProperty(JSON_PROPERTY_ECI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -992,9 +1095,11 @@ public String getEci() { } /** - * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 + * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. + * Example: 02 * - * @param eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 + * @param eci The Electronic Commerce Indicator returned from the schemes for the 3DS payment + * session. Example: 02 */ @JsonProperty(JSON_PROPERTY_ECI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1003,9 +1108,10 @@ public void setEci(String eci) { } /** - * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. + * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. * - * @param expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. + * @param expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a + * card payment. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon expiryDate(String expiryDate) { @@ -1014,8 +1120,10 @@ public ResponseAdditionalDataCommon expiryDate(String expiryDate) { } /** - * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. - * @return expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. + * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. + * + * @return expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a + * card payment. */ @JsonProperty(JSON_PROPERTY_EXPIRY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1024,9 +1132,10 @@ public String getExpiryDate() { } /** - * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. + * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. * - * @param expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. + * @param expiryDate The expiry date on the card. Example: 6/2016 > Returned only in case of a + * card payment. */ @JsonProperty(JSON_PROPERTY_EXPIRY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1035,9 +1144,11 @@ public void setExpiryDate(String expiryDate) { } /** - * The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR + * The currency of the extra amount charged due to additional amounts set in the skin used in the + * HPP payment request. Example: EUR * - * @param extraCostsCurrency The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR + * @param extraCostsCurrency The currency of the extra amount charged due to additional amounts + * set in the skin used in the HPP payment request. Example: EUR * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon extraCostsCurrency(String extraCostsCurrency) { @@ -1046,8 +1157,11 @@ public ResponseAdditionalDataCommon extraCostsCurrency(String extraCostsCurrency } /** - * The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR - * @return extraCostsCurrency The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR + * The currency of the extra amount charged due to additional amounts set in the skin used in the + * HPP payment request. Example: EUR + * + * @return extraCostsCurrency The currency of the extra amount charged due to additional amounts + * set in the skin used in the HPP payment request. Example: EUR */ @JsonProperty(JSON_PROPERTY_EXTRA_COSTS_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1056,9 +1170,11 @@ public String getExtraCostsCurrency() { } /** - * The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR + * The currency of the extra amount charged due to additional amounts set in the skin used in the + * HPP payment request. Example: EUR * - * @param extraCostsCurrency The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR + * @param extraCostsCurrency The currency of the extra amount charged due to additional amounts + * set in the skin used in the HPP payment request. Example: EUR */ @JsonProperty(JSON_PROPERTY_EXTRA_COSTS_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1067,9 +1183,11 @@ public void setExtraCostsCurrency(String extraCostsCurrency) { } /** - * The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. + * The value of the extra amount charged due to additional amounts set in the skin used in the HPP + * payment request. The amount is in minor units. * - * @param extraCostsValue The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. + * @param extraCostsValue The value of the extra amount charged due to additional amounts set in + * the skin used in the HPP payment request. The amount is in minor units. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon extraCostsValue(String extraCostsValue) { @@ -1078,8 +1196,11 @@ public ResponseAdditionalDataCommon extraCostsValue(String extraCostsValue) { } /** - * The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. - * @return extraCostsValue The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. + * The value of the extra amount charged due to additional amounts set in the skin used in the HPP + * payment request. The amount is in minor units. + * + * @return extraCostsValue The value of the extra amount charged due to additional amounts set in + * the skin used in the HPP payment request. The amount is in minor units. */ @JsonProperty(JSON_PROPERTY_EXTRA_COSTS_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1088,9 +1209,11 @@ public String getExtraCostsValue() { } /** - * The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. + * The value of the extra amount charged due to additional amounts set in the skin used in the HPP + * payment request. The amount is in minor units. * - * @param extraCostsValue The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. + * @param extraCostsValue The value of the extra amount charged due to additional amounts set in + * the skin used in the HPP payment request. The amount is in minor units. */ @JsonProperty(JSON_PROPERTY_EXTRA_COSTS_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1099,19 +1222,25 @@ public void setExtraCostsValue(String extraCostsValue) { } /** - * The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. + * The fraud score due to a particular fraud check. The fraud check name is found in the key of + * the key-value pair. * - * @param fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. + * @param fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The + * fraud check name is found in the key of the key-value pair. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon fraudCheckItemNrFraudCheckname(String fraudCheckItemNrFraudCheckname) { + public ResponseAdditionalDataCommon fraudCheckItemNrFraudCheckname( + String fraudCheckItemNrFraudCheckname) { this.fraudCheckItemNrFraudCheckname = fraudCheckItemNrFraudCheckname; return this; } /** - * The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. - * @return fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. + * The fraud score due to a particular fraud check. The fraud check name is found in the key of + * the key-value pair. + * + * @return fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The + * fraud check name is found in the key of the key-value pair. */ @JsonProperty(JSON_PROPERTY_FRAUD_CHECK_ITEM_NR_FRAUD_CHECKNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1120,9 +1249,11 @@ public String getFraudCheckItemNrFraudCheckname() { } /** - * The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. + * The fraud score due to a particular fraud check. The fraud check name is found in the key of + * the key-value pair. * - * @param fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. + * @param fraudCheckItemNrFraudCheckname The fraud score due to a particular fraud check. The + * fraud check name is found in the key of the key-value pair. */ @JsonProperty(JSON_PROPERTY_FRAUD_CHECK_ITEM_NR_FRAUD_CHECKNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1143,6 +1274,7 @@ public ResponseAdditionalDataCommon fraudManualReview(String fraudManualReview) /** * Indicates if the payment is sent to manual review. + * * @return fraudManualReview Indicates if the payment is sent to manual review. */ @JsonProperty(JSON_PROPERTY_FRAUD_MANUAL_REVIEW) @@ -1175,6 +1307,7 @@ public ResponseAdditionalDataCommon fraudResultType(FraudResultTypeEnum fraudRes /** * The fraud result properties of the payment. + * * @return fraudResultType The fraud result properties of the payment. */ @JsonProperty(JSON_PROPERTY_FRAUD_RESULT_TYPE) @@ -1195,9 +1328,16 @@ public void setFraudResultType(FraudResultTypeEnum fraudResultType) { } /** - * The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * The risk level of the transaction as classified by the [machine + * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) + * fraud risk rule. The risk level indicates the likelihood that a transaction will result in a + * fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh * - * @param fraudRiskLevel The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * @param fraudRiskLevel The risk level of the transaction as classified by the [machine + * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) + * fraud risk rule. The risk level indicates the likelihood that a transaction will result in + * a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * + * veryHigh * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon fraudRiskLevel(FraudRiskLevelEnum fraudRiskLevel) { @@ -1206,8 +1346,16 @@ public ResponseAdditionalDataCommon fraudRiskLevel(FraudRiskLevelEnum fraudRiskL } /** - * The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh - * @return fraudRiskLevel The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * The risk level of the transaction as classified by the [machine + * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) + * fraud risk rule. The risk level indicates the likelihood that a transaction will result in a + * fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * + * @return fraudRiskLevel The risk level of the transaction as classified by the [machine + * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) + * fraud risk rule. The risk level indicates the likelihood that a transaction will result in + * a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * + * veryHigh */ @JsonProperty(JSON_PROPERTY_FRAUD_RISK_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1216,9 +1364,16 @@ public FraudRiskLevelEnum getFraudRiskLevel() { } /** - * The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * The risk level of the transaction as classified by the [machine + * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) + * fraud risk rule. The risk level indicates the likelihood that a transaction will result in a + * fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh * - * @param fraudRiskLevel The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * @param fraudRiskLevel The risk level of the transaction as classified by the [machine + * learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) + * fraud risk rule. The risk level indicates the likelihood that a transaction will result in + * a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * + * veryHigh */ @JsonProperty(JSON_PROPERTY_FRAUD_RISK_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1227,9 +1382,18 @@ public void setFraudRiskLevel(FraudRiskLevelEnum fraudRiskLevel) { } /** - * Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. + * Information regarding the funding type of the card. The possible return values are: * CHARGE * + * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > + * This functionality requires additional configuration on Adyen's end. To enable it, contact + * the Support Team. For receiving this field in the notification, enable **Include Funding + * Source** in **Notifications** > **Additional settings**. * - * @param fundingSource Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. + * @param fundingSource Information regarding the funding type of the card. The possible return + * values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * + * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional + * configuration on Adyen's end. To enable it, contact the Support Team. For receiving + * this field in the notification, enable **Include Funding Source** in **Notifications** > + * **Additional settings**. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon fundingSource(String fundingSource) { @@ -1238,8 +1402,18 @@ public ResponseAdditionalDataCommon fundingSource(String fundingSource) { } /** - * Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. - * @return fundingSource Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. + * Information regarding the funding type of the card. The possible return values are: * CHARGE * + * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > + * This functionality requires additional configuration on Adyen's end. To enable it, contact + * the Support Team. For receiving this field in the notification, enable **Include Funding + * Source** in **Notifications** > **Additional settings**. + * + * @return fundingSource Information regarding the funding type of the card. The possible return + * values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * + * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional + * configuration on Adyen's end. To enable it, contact the Support Team. For receiving + * this field in the notification, enable **Include Funding Source** in **Notifications** > + * **Additional settings**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1248,9 +1422,18 @@ public String getFundingSource() { } /** - * Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. + * Information regarding the funding type of the card. The possible return values are: * CHARGE * + * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > + * This functionality requires additional configuration on Adyen's end. To enable it, contact + * the Support Team. For receiving this field in the notification, enable **Include Funding + * Source** in **Notifications** > **Additional settings**. * - * @param fundingSource Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. + * @param fundingSource Information regarding the funding type of the card. The possible return + * values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * + * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional + * configuration on Adyen's end. To enable it, contact the Support Team. For receiving + * this field in the notification, enable **Include Funding Source** in **Notifications** > + * **Additional settings**. */ @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1259,9 +1442,17 @@ public void setFundingSource(String fundingSource) { } /** - * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". + * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * + * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or + * issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you + * verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or + * \"D\". * - * @param fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". + * @param fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds + * are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is + * Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) + * > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is + * \"Y\" or \"D\". * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon fundsAvailability(String fundsAvailability) { @@ -1270,8 +1461,17 @@ public ResponseAdditionalDataCommon fundsAvailability(String fundsAvailability) } /** - * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". - * @return fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". + * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * + * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or + * issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you + * verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or + * \"D\". + * + * @return fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds + * are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is + * Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) + * > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is + * \"Y\" or \"D\". */ @JsonProperty(JSON_PROPERTY_FUNDS_AVAILABILITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1280,9 +1480,17 @@ public String getFundsAvailability() { } /** - * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". + * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * + * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or + * issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you + * verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or + * \"D\". * - * @param fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". + * @param fundsAvailability Indicates availability of funds. Visa: * \"I\" (fast funds + * are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is + * Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) + * > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is + * \"Y\" or \"D\". */ @JsonProperty(JSON_PROPERTY_FUNDS_AVAILABILITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1291,9 +1499,26 @@ public void setFundsAvailability(String fundsAvailability) { } /** - * Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card - * - * @param inferredRefusalReason Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card + * Provides the more granular indication of why a transaction was refused. When a transaction + * fails with either \"Refused\", \"Restricted Card\", \"Transaction Not + * Permitted\", \"Not supported\" or \"DeclinedNon Generic\" + * refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into + * the refusal reason. If an inferred refusal reason is available, the + * `inferredRefusalReason`, field is populated and the `refusalReason`, is set + * to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * + * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * + * Card Updated * Low Authrate Bin * Non-reloadable prepaid card + * + * @param inferredRefusalReason Provides the more granular indication of why a transaction was + * refused. When a transaction fails with either \"Refused\", \"Restricted + * Card\", \"Transaction Not Permitted\", \"Not supported\" or + * \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its + * PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is + * available, the `inferredRefusalReason`, field is populated and the + * `refusalReason`, is set to \"Not Supported\". Possible values: * 3D + * Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not + * Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable + * prepaid card * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon inferredRefusalReason(String inferredRefusalReason) { @@ -1302,8 +1527,26 @@ public ResponseAdditionalDataCommon inferredRefusalReason(String inferredRefusal } /** - * Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card - * @return inferredRefusalReason Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card + * Provides the more granular indication of why a transaction was refused. When a transaction + * fails with either \"Refused\", \"Restricted Card\", \"Transaction Not + * Permitted\", \"Not supported\" or \"DeclinedNon Generic\" + * refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into + * the refusal reason. If an inferred refusal reason is available, the + * `inferredRefusalReason`, field is populated and the `refusalReason`, is set + * to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * + * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * + * Card Updated * Low Authrate Bin * Non-reloadable prepaid card + * + * @return inferredRefusalReason Provides the more granular indication of why a transaction was + * refused. When a transaction fails with either \"Refused\", \"Restricted + * Card\", \"Transaction Not Permitted\", \"Not supported\" or + * \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its + * PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is + * available, the `inferredRefusalReason`, field is populated and the + * `refusalReason`, is set to \"Not Supported\". Possible values: * 3D + * Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not + * Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable + * prepaid card */ @JsonProperty(JSON_PROPERTY_INFERRED_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1312,9 +1555,26 @@ public String getInferredRefusalReason() { } /** - * Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card - * - * @param inferredRefusalReason Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card + * Provides the more granular indication of why a transaction was refused. When a transaction + * fails with either \"Refused\", \"Restricted Card\", \"Transaction Not + * Permitted\", \"Not supported\" or \"DeclinedNon Generic\" + * refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into + * the refusal reason. If an inferred refusal reason is available, the + * `inferredRefusalReason`, field is populated and the `refusalReason`, is set + * to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * + * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * + * Card Updated * Low Authrate Bin * Non-reloadable prepaid card + * + * @param inferredRefusalReason Provides the more granular indication of why a transaction was + * refused. When a transaction fails with either \"Refused\", \"Restricted + * Card\", \"Transaction Not Permitted\", \"Not supported\" or + * \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its + * PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is + * available, the `inferredRefusalReason`, field is populated and the + * `refusalReason`, is set to \"Not Supported\". Possible values: * 3D + * Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not + * Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable + * prepaid card */ @JsonProperty(JSON_PROPERTY_INFERRED_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1335,6 +1595,7 @@ public ResponseAdditionalDataCommon isCardCommercial(String isCardCommercial) { /** * Indicates if the card is used for business purposes only. + * * @return isCardCommercial Indicates if the card is used for business purposes only. */ @JsonProperty(JSON_PROPERTY_IS_CARD_COMMERCIAL) @@ -1355,9 +1616,10 @@ public void setIsCardCommercial(String isCardCommercial) { } /** - * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP + * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP * - * @param issuerCountry The issuing country of the card based on the BIN list that Adyen maintains. Example: JP + * @param issuerCountry The issuing country of the card based on the BIN list that Adyen + * maintains. Example: JP * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon issuerCountry(String issuerCountry) { @@ -1366,8 +1628,10 @@ public ResponseAdditionalDataCommon issuerCountry(String issuerCountry) { } /** - * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP - * @return issuerCountry The issuing country of the card based on the BIN list that Adyen maintains. Example: JP + * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP + * + * @return issuerCountry The issuing country of the card based on the BIN list that Adyen + * maintains. Example: JP */ @JsonProperty(JSON_PROPERTY_ISSUER_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1376,9 +1640,10 @@ public String getIssuerCountry() { } /** - * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP + * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP * - * @param issuerCountry The issuing country of the card based on the BIN list that Adyen maintains. Example: JP + * @param issuerCountry The issuing country of the card based on the BIN list that Adyen + * maintains. Example: JP */ @JsonProperty(JSON_PROPERTY_ISSUER_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1389,7 +1654,8 @@ public void setIssuerCountry(String issuerCountry) { /** * A Boolean value indicating whether a liability shift was offered for this payment. * - * @param liabilityShift A Boolean value indicating whether a liability shift was offered for this payment. + * @param liabilityShift A Boolean value indicating whether a liability shift was offered for this + * payment. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon liabilityShift(String liabilityShift) { @@ -1399,7 +1665,9 @@ public ResponseAdditionalDataCommon liabilityShift(String liabilityShift) { /** * A Boolean value indicating whether a liability shift was offered for this payment. - * @return liabilityShift A Boolean value indicating whether a liability shift was offered for this payment. + * + * @return liabilityShift A Boolean value indicating whether a liability shift was offered for + * this payment. */ @JsonProperty(JSON_PROPERTY_LIABILITY_SHIFT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1410,7 +1678,8 @@ public String getLiabilityShift() { /** * A Boolean value indicating whether a liability shift was offered for this payment. * - * @param liabilityShift A Boolean value indicating whether a liability shift was offered for this payment. + * @param liabilityShift A Boolean value indicating whether a liability shift was offered for this + * payment. */ @JsonProperty(JSON_PROPERTY_LIABILITY_SHIFT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1419,9 +1688,12 @@ public void setLiabilityShift(String liabilityShift) { } /** - * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. + * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine + * characters long. > Contact Support Team to enable this field. * - * @param mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. + * @param mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six + * characters and a maximum of nine characters long. > Contact Support Team to enable this + * field. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon mcBankNetReferenceNumber(String mcBankNetReferenceNumber) { @@ -1430,8 +1702,12 @@ public ResponseAdditionalDataCommon mcBankNetReferenceNumber(String mcBankNetRef } /** - * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. - * @return mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. + * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine + * characters long. > Contact Support Team to enable this field. + * + * @return mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six + * characters and a maximum of nine characters long. > Contact Support Team to enable this + * field. */ @JsonProperty(JSON_PROPERTY_MC_BANK_NET_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1440,9 +1716,12 @@ public String getMcBankNetReferenceNumber() { } /** - * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. + * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine + * characters long. > Contact Support Team to enable this field. * - * @param mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. + * @param mcBankNetReferenceNumber The `mcBankNetReferenceNumber`, is a minimum of six + * characters and a maximum of nine characters long. > Contact Support Team to enable this + * field. */ @JsonProperty(JSON_PROPERTY_MC_BANK_NET_REFERENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1451,9 +1730,15 @@ public void setMcBankNetReferenceNumber(String mcBankNetReferenceNumber) { } /** - * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If + * present, the MAC contains information about why the payment failed, and whether it can be + * retried. For more information see [Mastercard Merchant Advice + * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). * - * @param merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * @param merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers + * for refused payments. If present, the MAC contains information about why the payment + * failed, and whether it can be retried. For more information see [Mastercard Merchant Advice + * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon merchantAdviceCode(String merchantAdviceCode) { @@ -1462,8 +1747,15 @@ public ResponseAdditionalDataCommon merchantAdviceCode(String merchantAdviceCode } /** - * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). - * @return merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If + * present, the MAC contains information about why the payment failed, and whether it can be + * retried. For more information see [Mastercard Merchant Advice + * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * + * @return merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers + * for refused payments. If present, the MAC contains information about why the payment + * failed, and whether it can be retried. For more information see [Mastercard Merchant Advice + * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). */ @JsonProperty(JSON_PROPERTY_MERCHANT_ADVICE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1472,9 +1764,15 @@ public String getMerchantAdviceCode() { } /** - * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If + * present, the MAC contains information about why the payment failed, and whether it can be + * retried. For more information see [Mastercard Merchant Advice + * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). * - * @param merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). + * @param merchantAdviceCode The Merchant Advice Code (MAC) can be returned by Mastercard issuers + * for refused payments. If present, the MAC contains information about why the payment + * failed, and whether it can be retried. For more information see [Mastercard Merchant Advice + * Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). */ @JsonProperty(JSON_PROPERTY_MERCHANT_ADVICE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1495,6 +1793,7 @@ public ResponseAdditionalDataCommon merchantReference(String merchantReference) /** * The reference provided for the transaction. + * * @return merchantReference The reference provided for the transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCE) @@ -1515,9 +1814,13 @@ public void setMerchantReference(String merchantReference) { } /** - * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the + * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either + * the Mastercard Trace ID or the Visa Transaction ID. * - * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are + * using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This + * contains either the Mastercard Trace ID or the Visa Transaction ID. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon networkTxReference(String networkTxReference) { @@ -1526,8 +1829,13 @@ public ResponseAdditionalDataCommon networkTxReference(String networkTxReference } /** - * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. - * @return networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the + * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either + * the Mastercard Trace ID or the Visa Transaction ID. + * + * @return networkTxReference Returned in the response if you are not tokenizing with Adyen and + * are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This + * contains either the Mastercard Trace ID or the Visa Transaction ID. */ @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1536,9 +1844,13 @@ public String getNetworkTxReference() { } /** - * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the + * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either + * the Mastercard Trace ID or the Visa Transaction ID. * - * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are + * using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This + * contains either the Mastercard Trace ID or the Visa Transaction ID. */ @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1547,9 +1859,10 @@ public void setNetworkTxReference(String networkTxReference) { } /** - * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. + * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. * - * @param ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. + * @param ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit + * transactions. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon ownerName(String ownerName) { @@ -1558,8 +1871,10 @@ public ResponseAdditionalDataCommon ownerName(String ownerName) { } /** - * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. - * @return ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. + * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. + * + * @return ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit + * transactions. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1568,9 +1883,10 @@ public String getOwnerName() { } /** - * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. + * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. * - * @param ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. + * @param ownerName The owner name of a bank account. Only relevant for SEPA Direct Debit + * transactions. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1579,9 +1895,12 @@ public void setOwnerName(String ownerName) { } /** - * The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. + * The Payment Account Reference (PAR) value links a network token with the underlying primary + * account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. * - * @param paymentAccountReference The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. + * @param paymentAccountReference The Payment Account Reference (PAR) value links a network token + * with the underlying primary account number (PAN). The PAR value consists of 29 uppercase + * alphanumeric characters. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon paymentAccountReference(String paymentAccountReference) { @@ -1590,8 +1909,12 @@ public ResponseAdditionalDataCommon paymentAccountReference(String paymentAccoun } /** - * The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. - * @return paymentAccountReference The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. + * The Payment Account Reference (PAR) value links a network token with the underlying primary + * account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. + * + * @return paymentAccountReference The Payment Account Reference (PAR) value links a network token + * with the underlying primary account number (PAN). The PAR value consists of 29 uppercase + * alphanumeric characters. */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACCOUNT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1600,9 +1923,12 @@ public String getPaymentAccountReference() { } /** - * The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. + * The Payment Account Reference (PAR) value links a network token with the underlying primary + * account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. * - * @param paymentAccountReference The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. + * @param paymentAccountReference The Payment Account Reference (PAR) value links a network token + * with the underlying primary account number (PAN). The PAR value consists of 29 uppercase + * alphanumeric characters. */ @JsonProperty(JSON_PROPERTY_PAYMENT_ACCOUNT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1623,6 +1949,7 @@ public ResponseAdditionalDataCommon paymentMethod(String paymentMethod) { /** * The payment method used in the transaction. + * * @return paymentMethod The payment method used in the transaction. */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @@ -1643,9 +1970,15 @@ public void setPaymentMethod(String paymentMethod) { } /** - * The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro + * The Adyen sub-variant of the payment method used for the payment request. For more information, + * refer to + * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). + * Example: mcpro * - * @param paymentMethodVariant The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro + * @param paymentMethodVariant The Adyen sub-variant of the payment method used for the payment + * request. For more information, refer to + * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). + * Example: mcpro * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon paymentMethodVariant(String paymentMethodVariant) { @@ -1654,8 +1987,15 @@ public ResponseAdditionalDataCommon paymentMethodVariant(String paymentMethodVar } /** - * The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro - * @return paymentMethodVariant The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro + * The Adyen sub-variant of the payment method used for the payment request. For more information, + * refer to + * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). + * Example: mcpro + * + * @return paymentMethodVariant The Adyen sub-variant of the payment method used for the payment + * request. For more information, refer to + * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). + * Example: mcpro */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1664,9 +2004,15 @@ public String getPaymentMethodVariant() { } /** - * The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro + * The Adyen sub-variant of the payment method used for the payment request. For more information, + * refer to + * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). + * Example: mcpro * - * @param paymentMethodVariant The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro + * @param paymentMethodVariant The Adyen sub-variant of the payment method used for the payment + * request. For more information, refer to + * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). + * Example: mcpro */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1675,9 +2021,14 @@ public void setPaymentMethodVariant(String paymentMethodVariant) { } /** - * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) + * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * + * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" + * (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) * - * @param payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) + * @param payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * + * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) + * * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" + * (unknown) * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon payoutEligible(String payoutEligible) { @@ -1686,8 +2037,14 @@ public ResponseAdditionalDataCommon payoutEligible(String payoutEligible) { } /** - * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) - * @return payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) + * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * + * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" + * (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) + * + * @return payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * + * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) + * * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" + * (unknown) */ @JsonProperty(JSON_PROPERTY_PAYOUT_ELIGIBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1696,9 +2053,14 @@ public String getPayoutEligible() { } /** - * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) + * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * + * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" + * (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) * - * @param payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) + * @param payoutEligible Indicates whether a payout is eligible or not for this card. Visa: * + * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) + * * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" + * (unknown) */ @JsonProperty(JSON_PROPERTY_PAYOUT_ELIGIBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1707,19 +2069,27 @@ public void setPayoutEligible(String payoutEligible) { } /** - * The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder + * The response code from the Real Time Account Updater service. Possible return values are: * + * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder * - * @param realtimeAccountUpdaterStatus The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder + * @param realtimeAccountUpdaterStatus The response code from the Real Time Account Updater + * service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * + * ContactCardAccountHolder * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon realtimeAccountUpdaterStatus(String realtimeAccountUpdaterStatus) { + public ResponseAdditionalDataCommon realtimeAccountUpdaterStatus( + String realtimeAccountUpdaterStatus) { this.realtimeAccountUpdaterStatus = realtimeAccountUpdaterStatus; return this; } /** - * The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder - * @return realtimeAccountUpdaterStatus The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder + * The response code from the Real Time Account Updater service. Possible return values are: * + * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder + * + * @return realtimeAccountUpdaterStatus The response code from the Real Time Account Updater + * service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * + * ContactCardAccountHolder */ @JsonProperty(JSON_PROPERTY_REALTIME_ACCOUNT_UPDATER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1728,9 +2098,12 @@ public String getRealtimeAccountUpdaterStatus() { } /** - * The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder + * The response code from the Real Time Account Updater service. Possible return values are: * + * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder * - * @param realtimeAccountUpdaterStatus The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder + * @param realtimeAccountUpdaterStatus The response code from the Real Time Account Updater + * service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * + * ContactCardAccountHolder */ @JsonProperty(JSON_PROPERTY_REALTIME_ACCOUNT_UPDATER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1751,6 +2124,7 @@ public ResponseAdditionalDataCommon receiptFreeText(String receiptFreeText) { /** * Message to be displayed on the terminal. + * * @return receiptFreeText Message to be displayed on the terminal. */ @JsonProperty(JSON_PROPERTY_RECEIPT_FREE_TEXT) @@ -1783,6 +2157,7 @@ public ResponseAdditionalDataCommon recurringContractTypes(String recurringContr /** * The recurring contract types applicable to the transaction. + * * @return recurringContractTypes The recurring contract types applicable to the transaction. */ @JsonProperty(JSON_PROPERTY_RECURRING_CONTRACT_TYPES) @@ -1803,19 +2178,29 @@ public void setRecurringContractTypes(String recurringContractTypes) { } /** - * The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. + * The `pspReference`, of the first recurring payment that created the recurring detail. + * This functionality requires additional configuration on Adyen's end. To enable it, contact + * the Support Team. * - * @param recurringFirstPspReference The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. + * @param recurringFirstPspReference The `pspReference`, of the first recurring payment + * that created the recurring detail. This functionality requires additional configuration on + * Adyen's end. To enable it, contact the Support Team. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon recurringFirstPspReference(String recurringFirstPspReference) { + public ResponseAdditionalDataCommon recurringFirstPspReference( + String recurringFirstPspReference) { this.recurringFirstPspReference = recurringFirstPspReference; return this; } /** - * The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. - * @return recurringFirstPspReference The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. + * The `pspReference`, of the first recurring payment that created the recurring detail. + * This functionality requires additional configuration on Adyen's end. To enable it, contact + * the Support Team. + * + * @return recurringFirstPspReference The `pspReference`, of the first recurring payment + * that created the recurring detail. This functionality requires additional configuration on + * Adyen's end. To enable it, contact the Support Team. */ @JsonProperty(JSON_PROPERTY_RECURRING_FIRST_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1824,9 +2209,13 @@ public String getRecurringFirstPspReference() { } /** - * The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. + * The `pspReference`, of the first recurring payment that created the recurring detail. + * This functionality requires additional configuration on Adyen's end. To enable it, contact + * the Support Team. * - * @param recurringFirstPspReference The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. + * @param recurringFirstPspReference The `pspReference`, of the first recurring payment + * that created the recurring detail. This functionality requires additional configuration on + * Adyen's end. To enable it, contact the Support Team. */ @JsonProperty(JSON_PROPERTY_RECURRING_FIRST_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1837,24 +2226,29 @@ public void setRecurringFirstPspReference(String recurringFirstPspReference) { /** * The reference that uniquely identifies the recurring transaction. * - * @param recurringRecurringDetailReference The reference that uniquely identifies the recurring transaction. + * @param recurringRecurringDetailReference The reference that uniquely identifies the recurring + * transaction. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining - * - * @deprecated since Adyen Payout API v68 - * Use tokenization.storedPaymentMethodId instead. + * @deprecated since Adyen Payout API v68 Use tokenization.storedPaymentMethodId instead. */ - @Deprecated // deprecated since Adyen Payout API v68: Use tokenization.storedPaymentMethodId instead. - public ResponseAdditionalDataCommon recurringRecurringDetailReference(String recurringRecurringDetailReference) { + @Deprecated // deprecated since Adyen Payout API v68: Use tokenization.storedPaymentMethodId + // instead. + public ResponseAdditionalDataCommon recurringRecurringDetailReference( + String recurringRecurringDetailReference) { this.recurringRecurringDetailReference = recurringRecurringDetailReference; return this; } /** * The reference that uniquely identifies the recurring transaction. - * @return recurringRecurringDetailReference The reference that uniquely identifies the recurring transaction. - * @deprecated // deprecated since Adyen Payout API v68: Use tokenization.storedPaymentMethodId instead. + * + * @return recurringRecurringDetailReference The reference that uniquely identifies the recurring + * transaction. + * @deprecated // deprecated since Adyen Payout API v68: Use tokenization.storedPaymentMethodId + * instead. */ - @Deprecated // deprecated since Adyen Payout API v68: Use tokenization.storedPaymentMethodId instead. + @Deprecated // deprecated since Adyen Payout API v68: Use tokenization.storedPaymentMethodId + // instead. @JsonProperty(JSON_PROPERTY_RECURRING_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringRecurringDetailReference() { @@ -1864,12 +2258,12 @@ public String getRecurringRecurringDetailReference() { /** * The reference that uniquely identifies the recurring transaction. * - * @param recurringRecurringDetailReference The reference that uniquely identifies the recurring transaction. - * - * @deprecated since Adyen Payout API v68 - * Use tokenization.storedPaymentMethodId instead. + * @param recurringRecurringDetailReference The reference that uniquely identifies the recurring + * transaction. + * @deprecated since Adyen Payout API v68 Use tokenization.storedPaymentMethodId instead. */ - @Deprecated // deprecated since Adyen Payout API v68: Use tokenization.storedPaymentMethodId instead. + @Deprecated // deprecated since Adyen Payout API v68: Use tokenization.storedPaymentMethodId + // instead. @JsonProperty(JSON_PROPERTY_RECURRING_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringRecurringDetailReference(String recurringRecurringDetailReference) { @@ -1879,11 +2273,10 @@ public void setRecurringRecurringDetailReference(String recurringRecurringDetail /** * The provided reference of the shopper for a recurring transaction. * - * @param recurringShopperReference The provided reference of the shopper for a recurring transaction. + * @param recurringShopperReference The provided reference of the shopper for a recurring + * transaction. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining - * - * @deprecated since Adyen Payout API v68 - * Use tokenization.shopperReference instead. + * @deprecated since Adyen Payout API v68 Use tokenization.shopperReference instead. */ @Deprecated // deprecated since Adyen Payout API v68: Use tokenization.shopperReference instead. public ResponseAdditionalDataCommon recurringShopperReference(String recurringShopperReference) { @@ -1893,8 +2286,11 @@ public ResponseAdditionalDataCommon recurringShopperReference(String recurringSh /** * The provided reference of the shopper for a recurring transaction. - * @return recurringShopperReference The provided reference of the shopper for a recurring transaction. - * @deprecated // deprecated since Adyen Payout API v68: Use tokenization.shopperReference instead. + * + * @return recurringShopperReference The provided reference of the shopper for a recurring + * transaction. + * @deprecated // deprecated since Adyen Payout API v68: Use tokenization.shopperReference + * instead. */ @Deprecated // deprecated since Adyen Payout API v68: Use tokenization.shopperReference instead. @JsonProperty(JSON_PROPERTY_RECURRING_SHOPPER_REFERENCE) @@ -1906,10 +2302,9 @@ public String getRecurringShopperReference() { /** * The provided reference of the shopper for a recurring transaction. * - * @param recurringShopperReference The provided reference of the shopper for a recurring transaction. - * - * @deprecated since Adyen Payout API v68 - * Use tokenization.shopperReference instead. + * @param recurringShopperReference The provided reference of the shopper for a recurring + * transaction. + * @deprecated since Adyen Payout API v68 Use tokenization.shopperReference instead. */ @Deprecated // deprecated since Adyen Payout API v68: Use tokenization.shopperReference instead. @JsonProperty(JSON_PROPERTY_RECURRING_SHOPPER_REFERENCE) @@ -1924,13 +2319,15 @@ public void setRecurringShopperReference(String recurringShopperReference) { * @param recurringProcessingModel The processing model used for the recurring transaction. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon recurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) { + public ResponseAdditionalDataCommon recurringProcessingModel( + RecurringProcessingModelEnum recurringProcessingModel) { this.recurringProcessingModel = recurringProcessingModel; return this; } /** * The processing model used for the recurring transaction. + * * @return recurringProcessingModel The processing model used for the recurring transaction. */ @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL) @@ -1951,9 +2348,12 @@ public void setRecurringProcessingModel(RecurringProcessingModelEnum recurringPr } /** - * If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true + * If the payment is referred, this field is set to true. This field is unavailable if the payment + * is referred and is usually not returned with ecommerce transactions. Example: true * - * @param referred If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true + * @param referred If the payment is referred, this field is set to true. This field is + * unavailable if the payment is referred and is usually not returned with ecommerce + * transactions. Example: true * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon referred(String referred) { @@ -1962,8 +2362,12 @@ public ResponseAdditionalDataCommon referred(String referred) { } /** - * If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true - * @return referred If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true + * If the payment is referred, this field is set to true. This field is unavailable if the payment + * is referred and is usually not returned with ecommerce transactions. Example: true + * + * @return referred If the payment is referred, this field is set to true. This field is + * unavailable if the payment is referred and is usually not returned with ecommerce + * transactions. Example: true */ @JsonProperty(JSON_PROPERTY_REFERRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1972,9 +2376,12 @@ public String getReferred() { } /** - * If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true + * If the payment is referred, this field is set to true. This field is unavailable if the payment + * is referred and is usually not returned with ecommerce transactions. Example: true * - * @param referred If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true + * @param referred If the payment is referred, this field is set to true. This field is + * unavailable if the payment is referred and is usually not returned with ecommerce + * transactions. Example: true */ @JsonProperty(JSON_PROPERTY_REFERRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1983,9 +2390,10 @@ public void setReferred(String referred) { } /** - * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED + * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED * - * @param refusalReasonRaw Raw refusal reason received from the acquirer, where available. Example: AUTHORISED + * @param refusalReasonRaw Raw refusal reason received from the acquirer, where available. + * Example: AUTHORISED * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon refusalReasonRaw(String refusalReasonRaw) { @@ -1994,8 +2402,10 @@ public ResponseAdditionalDataCommon refusalReasonRaw(String refusalReasonRaw) { } /** - * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED - * @return refusalReasonRaw Raw refusal reason received from the acquirer, where available. Example: AUTHORISED + * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED + * + * @return refusalReasonRaw Raw refusal reason received from the acquirer, where available. + * Example: AUTHORISED */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2004,9 +2414,10 @@ public String getRefusalReasonRaw() { } /** - * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED + * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED * - * @param refusalReasonRaw Raw refusal reason received from the acquirer, where available. Example: AUTHORISED + * @param refusalReasonRaw Raw refusal reason received from the acquirer, where available. + * Example: AUTHORISED */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2027,6 +2438,7 @@ public ResponseAdditionalDataCommon requestAmount(String requestAmount) { /** * The amount of the payment request. + * * @return requestAmount The amount of the payment request. */ @JsonProperty(JSON_PROPERTY_REQUEST_AMOUNT) @@ -2059,6 +2471,7 @@ public ResponseAdditionalDataCommon requestCurrencyCode(String requestCurrencyCo /** * The currency of the payment request. + * * @return requestCurrencyCode The currency of the payment request. */ @JsonProperty(JSON_PROPERTY_REQUEST_CURRENCY_CODE) @@ -2079,9 +2492,10 @@ public void setRequestCurrencyCode(String requestCurrencyCode) { } /** - * The shopper interaction type of the payment request. Example: Ecommerce + * The shopper interaction type of the payment request. Example: Ecommerce * - * @param shopperInteraction The shopper interaction type of the payment request. Example: Ecommerce + * @param shopperInteraction The shopper interaction type of the payment request. Example: + * Ecommerce * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon shopperInteraction(String shopperInteraction) { @@ -2090,8 +2504,10 @@ public ResponseAdditionalDataCommon shopperInteraction(String shopperInteraction } /** - * The shopper interaction type of the payment request. Example: Ecommerce - * @return shopperInteraction The shopper interaction type of the payment request. Example: Ecommerce + * The shopper interaction type of the payment request. Example: Ecommerce + * + * @return shopperInteraction The shopper interaction type of the payment request. Example: + * Ecommerce */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2100,9 +2516,10 @@ public String getShopperInteraction() { } /** - * The shopper interaction type of the payment request. Example: Ecommerce + * The shopper interaction type of the payment request. Example: Ecommerce * - * @param shopperInteraction The shopper interaction type of the payment request. Example: Ecommerce + * @param shopperInteraction The shopper interaction type of the payment request. Example: + * Ecommerce */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2111,9 +2528,10 @@ public void setShopperInteraction(String shopperInteraction) { } /** - * The shopperReference passed in the payment request. Example: AdyenTestShopperXX + * The shopperReference passed in the payment request. Example: AdyenTestShopperXX * - * @param shopperReference The shopperReference passed in the payment request. Example: AdyenTestShopperXX + * @param shopperReference The shopperReference passed in the payment request. Example: + * AdyenTestShopperXX * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon shopperReference(String shopperReference) { @@ -2122,8 +2540,10 @@ public ResponseAdditionalDataCommon shopperReference(String shopperReference) { } /** - * The shopperReference passed in the payment request. Example: AdyenTestShopperXX - * @return shopperReference The shopperReference passed in the payment request. Example: AdyenTestShopperXX + * The shopperReference passed in the payment request. Example: AdyenTestShopperXX + * + * @return shopperReference The shopperReference passed in the payment request. Example: + * AdyenTestShopperXX */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2132,9 +2552,10 @@ public String getShopperReference() { } /** - * The shopperReference passed in the payment request. Example: AdyenTestShopperXX + * The shopperReference passed in the payment request. Example: AdyenTestShopperXX * - * @param shopperReference The shopperReference passed in the payment request. Example: AdyenTestShopperXX + * @param shopperReference The shopperReference passed in the payment request. Example: + * AdyenTestShopperXX */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2143,9 +2564,9 @@ public void setShopperReference(String shopperReference) { } /** - * The terminal ID used in a point-of-sale payment. Example: 06022622 + * The terminal ID used in a point-of-sale payment. Example: 06022622 * - * @param terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 + * @param terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon terminalId(String terminalId) { @@ -2154,8 +2575,9 @@ public ResponseAdditionalDataCommon terminalId(String terminalId) { } /** - * The terminal ID used in a point-of-sale payment. Example: 06022622 - * @return terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 + * The terminal ID used in a point-of-sale payment. Example: 06022622 + * + * @return terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 */ @JsonProperty(JSON_PROPERTY_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2164,9 +2586,9 @@ public String getTerminalId() { } /** - * The terminal ID used in a point-of-sale payment. Example: 06022622 + * The terminal ID used in a point-of-sale payment. Example: 06022622 * - * @param terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 + * @param terminalId The terminal ID used in a point-of-sale payment. Example: 06022622 */ @JsonProperty(JSON_PROPERTY_TERMINAL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2175,9 +2597,11 @@ public void setTerminalId(String terminalId) { } /** - * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: + * true * - * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed + * on this payment. Example: true * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon threeDAuthenticated(String threeDAuthenticated) { @@ -2186,8 +2610,11 @@ public ResponseAdditionalDataCommon threeDAuthenticated(String threeDAuthenticat } /** - * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true - * @return threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: + * true + * + * @return threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed + * on this payment. Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2196,9 +2623,11 @@ public String getThreeDAuthenticated() { } /** - * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: + * true * - * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + * @param threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed + * on this payment. Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2207,19 +2636,23 @@ public void setThreeDAuthenticated(String threeDAuthenticated) { } /** - * The raw 3DS authentication result from the card issuer. Example: N + * The raw 3DS authentication result from the card issuer. Example: N * - * @param threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. Example: N + * @param threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. + * Example: N * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon threeDAuthenticatedResponse(String threeDAuthenticatedResponse) { + public ResponseAdditionalDataCommon threeDAuthenticatedResponse( + String threeDAuthenticatedResponse) { this.threeDAuthenticatedResponse = threeDAuthenticatedResponse; return this; } /** - * The raw 3DS authentication result from the card issuer. Example: N - * @return threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. Example: N + * The raw 3DS authentication result from the card issuer. Example: N + * + * @return threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. + * Example: N */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2228,9 +2661,10 @@ public String getThreeDAuthenticatedResponse() { } /** - * The raw 3DS authentication result from the card issuer. Example: N + * The raw 3DS authentication result from the card issuer. Example: N * - * @param threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. Example: N + * @param threeDAuthenticatedResponse The raw 3DS authentication result from the card issuer. + * Example: N */ @JsonProperty(JSON_PROPERTY_THREE_D_AUTHENTICATED_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2239,9 +2673,10 @@ public void setThreeDAuthenticatedResponse(String threeDAuthenticatedResponse) { } /** - * A Boolean value indicating whether 3DS was offered for this payment. Example: true + * A Boolean value indicating whether 3DS was offered for this payment. Example: true * - * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. Example: true + * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. + * Example: true * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon threeDOffered(String threeDOffered) { @@ -2250,8 +2685,10 @@ public ResponseAdditionalDataCommon threeDOffered(String threeDOffered) { } /** - * A Boolean value indicating whether 3DS was offered for this payment. Example: true - * @return threeDOffered A Boolean value indicating whether 3DS was offered for this payment. Example: true + * A Boolean value indicating whether 3DS was offered for this payment. Example: true + * + * @return threeDOffered A Boolean value indicating whether 3DS was offered for this payment. + * Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2260,9 +2697,10 @@ public String getThreeDOffered() { } /** - * A Boolean value indicating whether 3DS was offered for this payment. Example: true + * A Boolean value indicating whether 3DS was offered for this payment. Example: true * - * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. Example: true + * @param threeDOffered A Boolean value indicating whether 3DS was offered for this payment. + * Example: true */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2271,9 +2709,10 @@ public void setThreeDOffered(String threeDOffered) { } /** - * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y + * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y * - * @param threeDOfferedResponse The raw enrollment result from the 3DS directory services of the card schemes. Example: Y + * @param threeDOfferedResponse The raw enrollment result from the 3DS directory services of the + * card schemes. Example: Y * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon threeDOfferedResponse(String threeDOfferedResponse) { @@ -2282,8 +2721,10 @@ public ResponseAdditionalDataCommon threeDOfferedResponse(String threeDOfferedRe } /** - * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y - * @return threeDOfferedResponse The raw enrollment result from the 3DS directory services of the card schemes. Example: Y + * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y + * + * @return threeDOfferedResponse The raw enrollment result from the 3DS directory services of the + * card schemes. Example: Y */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2292,9 +2733,10 @@ public String getThreeDOfferedResponse() { } /** - * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y + * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y * - * @param threeDOfferedResponse The raw enrollment result from the 3DS directory services of the card schemes. Example: Y + * @param threeDOfferedResponse The raw enrollment result from the 3DS directory services of the + * card schemes. Example: Y */ @JsonProperty(JSON_PROPERTY_THREE_D_OFFERED_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2315,6 +2757,7 @@ public ResponseAdditionalDataCommon threeDSVersion(String threeDSVersion) { /** * The 3D Secure 2 version. + * * @return threeDSVersion The 3D Secure 2 version. */ @JsonProperty(JSON_PROPERTY_THREE_D_S_VERSION) @@ -2337,17 +2780,21 @@ public void setThreeDSVersion(String threeDSVersion) { /** * The reference for the shopper that you sent when tokenizing the payment details. * - * @param tokenizationShopperReference The reference for the shopper that you sent when tokenizing the payment details. + * @param tokenizationShopperReference The reference for the shopper that you sent when tokenizing + * the payment details. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon tokenizationShopperReference(String tokenizationShopperReference) { + public ResponseAdditionalDataCommon tokenizationShopperReference( + String tokenizationShopperReference) { this.tokenizationShopperReference = tokenizationShopperReference; return this; } /** * The reference for the shopper that you sent when tokenizing the payment details. - * @return tokenizationShopperReference The reference for the shopper that you sent when tokenizing the payment details. + * + * @return tokenizationShopperReference The reference for the shopper that you sent when + * tokenizing the payment details. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2358,7 +2805,8 @@ public String getTokenizationShopperReference() { /** * The reference for the shopper that you sent when tokenizing the payment details. * - * @param tokenizationShopperReference The reference for the shopper that you sent when tokenizing the payment details. + * @param tokenizationShopperReference The reference for the shopper that you sent when tokenizing + * the payment details. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2367,19 +2815,29 @@ public void setTokenizationShopperReference(String tokenizationShopperReference) } /** - * The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. + * The operation performed on the token. Possible values: * **created**: the token has been + * created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details + * have already been stored. * - * @param tokenizationStoreOperationType The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. + * @param tokenizationStoreOperationType The operation performed on the token. Possible values: * + * **created**: the token has been created. * **updated**: the existing token has been + * updated. * **alreadyExisting**: the details have already been stored. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon tokenizationStoreOperationType(TokenizationStoreOperationTypeEnum tokenizationStoreOperationType) { + public ResponseAdditionalDataCommon tokenizationStoreOperationType( + TokenizationStoreOperationTypeEnum tokenizationStoreOperationType) { this.tokenizationStoreOperationType = tokenizationStoreOperationType; return this; } /** - * The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. - * @return tokenizationStoreOperationType The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. + * The operation performed on the token. Possible values: * **created**: the token has been + * created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details + * have already been stored. + * + * @return tokenizationStoreOperationType The operation performed on the token. Possible values: * + * **created**: the token has been created. * **updated**: the existing token has been + * updated. * **alreadyExisting**: the details have already been stored. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_STORE_OPERATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2388,30 +2846,39 @@ public TokenizationStoreOperationTypeEnum getTokenizationStoreOperationType() { } /** - * The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. + * The operation performed on the token. Possible values: * **created**: the token has been + * created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details + * have already been stored. * - * @param tokenizationStoreOperationType The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. + * @param tokenizationStoreOperationType The operation performed on the token. Possible values: * + * **created**: the token has been created. * **updated**: the existing token has been + * updated. * **alreadyExisting**: the details have already been stored. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_STORE_OPERATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTokenizationStoreOperationType(TokenizationStoreOperationTypeEnum tokenizationStoreOperationType) { + public void setTokenizationStoreOperationType( + TokenizationStoreOperationTypeEnum tokenizationStoreOperationType) { this.tokenizationStoreOperationType = tokenizationStoreOperationType; } /** * The reference that uniquely identifies tokenized payment details. * - * @param tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized payment details. + * @param tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized + * payment details. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ - public ResponseAdditionalDataCommon tokenizationStoredPaymentMethodId(String tokenizationStoredPaymentMethodId) { + public ResponseAdditionalDataCommon tokenizationStoredPaymentMethodId( + String tokenizationStoredPaymentMethodId) { this.tokenizationStoredPaymentMethodId = tokenizationStoredPaymentMethodId; return this; } /** * The reference that uniquely identifies tokenized payment details. - * @return tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized payment details. + * + * @return tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized + * payment details. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2422,7 +2889,8 @@ public String getTokenizationStoredPaymentMethodId() { /** * The reference that uniquely identifies tokenized payment details. * - * @param tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized payment details. + * @param tokenizationStoredPaymentMethodId The reference that uniquely identifies tokenized + * payment details. */ @JsonProperty(JSON_PROPERTY_TOKENIZATION_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2431,9 +2899,11 @@ public void setTokenizationStoredPaymentMethodId(String tokenizationStoredPaymen } /** - * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. + * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact + * Support Team to enable this field. * - * @param visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. + * @param visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric + * characters. > Contact Support Team to enable this field. * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon visaTransactionId(String visaTransactionId) { @@ -2442,8 +2912,11 @@ public ResponseAdditionalDataCommon visaTransactionId(String visaTransactionId) } /** - * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. - * @return visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. + * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact + * Support Team to enable this field. + * + * @return visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric + * characters. > Contact Support Team to enable this field. */ @JsonProperty(JSON_PROPERTY_VISA_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2452,9 +2925,11 @@ public String getVisaTransactionId() { } /** - * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. + * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact + * Support Team to enable this field. * - * @param visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. + * @param visaTransactionId The `visaTransactionId`, has a fixed length of 15 numeric + * characters. > Contact Support Team to enable this field. */ @JsonProperty(JSON_PROPERTY_VISA_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2463,9 +2938,13 @@ public void setVisaTransactionId(String visaTransactionId) { } /** - * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= + * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded + * and is returned for transactions with directoryResponse 'N' or 'Y'. Example: + * ODgxNDc2MDg2MDExODk5MAAAAAA= * - * @param xid The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= + * @param xid The 3DS transaction ID of the 3DS session sent in notifications. The value is + * Base64-encoded and is returned for transactions with directoryResponse 'N' or + * 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining */ public ResponseAdditionalDataCommon xid(String xid) { @@ -2474,8 +2953,13 @@ public ResponseAdditionalDataCommon xid(String xid) { } /** - * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= - * @return xid The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= + * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded + * and is returned for transactions with directoryResponse 'N' or 'Y'. Example: + * ODgxNDc2MDg2MDExODk5MAAAAAA= + * + * @return xid The 3DS transaction ID of the 3DS session sent in notifications. The value is + * Base64-encoded and is returned for transactions with directoryResponse 'N' or + * 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= */ @JsonProperty(JSON_PROPERTY_XID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2484,9 +2968,13 @@ public String getXid() { } /** - * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= + * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded + * and is returned for transactions with directoryResponse 'N' or 'Y'. Example: + * ODgxNDc2MDg2MDExODk5MAAAAAA= * - * @param xid The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= + * @param xid The 3DS transaction ID of the 3DS session sent in notifications. The value is + * Base64-encoded and is returned for transactions with directoryResponse 'N' or + * 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= */ @JsonProperty(JSON_PROPERTY_XID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2494,9 +2982,7 @@ public void setXid(String xid) { this.xid = xid; } - /** - * Return true if this ResponseAdditionalDataCommon object is equal to o. - */ + /** Return true if this ResponseAdditionalDataCommon object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -2506,89 +2992,187 @@ public boolean equals(Object o) { return false; } ResponseAdditionalDataCommon responseAdditionalDataCommon = (ResponseAdditionalDataCommon) o; - return Objects.equals(this.acquirerAccountCode, responseAdditionalDataCommon.acquirerAccountCode) && - Objects.equals(this.acquirerCode, responseAdditionalDataCommon.acquirerCode) && - Objects.equals(this.acquirerReference, responseAdditionalDataCommon.acquirerReference) && - Objects.equals(this.alias, responseAdditionalDataCommon.alias) && - Objects.equals(this.aliasType, responseAdditionalDataCommon.aliasType) && - Objects.equals(this.authCode, responseAdditionalDataCommon.authCode) && - Objects.equals(this.authorisationMid, responseAdditionalDataCommon.authorisationMid) && - Objects.equals(this.authorisedAmountCurrency, responseAdditionalDataCommon.authorisedAmountCurrency) && - Objects.equals(this.authorisedAmountValue, responseAdditionalDataCommon.authorisedAmountValue) && - Objects.equals(this.avsResult, responseAdditionalDataCommon.avsResult) && - Objects.equals(this.avsResultRaw, responseAdditionalDataCommon.avsResultRaw) && - Objects.equals(this.bic, responseAdditionalDataCommon.bic) && - Objects.equals(this.coBrandedWith, responseAdditionalDataCommon.coBrandedWith) && - Objects.equals(this.cvcResult, responseAdditionalDataCommon.cvcResult) && - Objects.equals(this.cvcResultRaw, responseAdditionalDataCommon.cvcResultRaw) && - Objects.equals(this.dsTransID, responseAdditionalDataCommon.dsTransID) && - Objects.equals(this.eci, responseAdditionalDataCommon.eci) && - Objects.equals(this.expiryDate, responseAdditionalDataCommon.expiryDate) && - Objects.equals(this.extraCostsCurrency, responseAdditionalDataCommon.extraCostsCurrency) && - Objects.equals(this.extraCostsValue, responseAdditionalDataCommon.extraCostsValue) && - Objects.equals(this.fraudCheckItemNrFraudCheckname, responseAdditionalDataCommon.fraudCheckItemNrFraudCheckname) && - Objects.equals(this.fraudManualReview, responseAdditionalDataCommon.fraudManualReview) && - Objects.equals(this.fraudResultType, responseAdditionalDataCommon.fraudResultType) && - Objects.equals(this.fraudRiskLevel, responseAdditionalDataCommon.fraudRiskLevel) && - Objects.equals(this.fundingSource, responseAdditionalDataCommon.fundingSource) && - Objects.equals(this.fundsAvailability, responseAdditionalDataCommon.fundsAvailability) && - Objects.equals(this.inferredRefusalReason, responseAdditionalDataCommon.inferredRefusalReason) && - Objects.equals(this.isCardCommercial, responseAdditionalDataCommon.isCardCommercial) && - Objects.equals(this.issuerCountry, responseAdditionalDataCommon.issuerCountry) && - Objects.equals(this.liabilityShift, responseAdditionalDataCommon.liabilityShift) && - Objects.equals(this.mcBankNetReferenceNumber, responseAdditionalDataCommon.mcBankNetReferenceNumber) && - Objects.equals(this.merchantAdviceCode, responseAdditionalDataCommon.merchantAdviceCode) && - Objects.equals(this.merchantReference, responseAdditionalDataCommon.merchantReference) && - Objects.equals(this.networkTxReference, responseAdditionalDataCommon.networkTxReference) && - Objects.equals(this.ownerName, responseAdditionalDataCommon.ownerName) && - Objects.equals(this.paymentAccountReference, responseAdditionalDataCommon.paymentAccountReference) && - Objects.equals(this.paymentMethod, responseAdditionalDataCommon.paymentMethod) && - Objects.equals(this.paymentMethodVariant, responseAdditionalDataCommon.paymentMethodVariant) && - Objects.equals(this.payoutEligible, responseAdditionalDataCommon.payoutEligible) && - Objects.equals(this.realtimeAccountUpdaterStatus, responseAdditionalDataCommon.realtimeAccountUpdaterStatus) && - Objects.equals(this.receiptFreeText, responseAdditionalDataCommon.receiptFreeText) && - Objects.equals(this.recurringContractTypes, responseAdditionalDataCommon.recurringContractTypes) && - Objects.equals(this.recurringFirstPspReference, responseAdditionalDataCommon.recurringFirstPspReference) && - Objects.equals(this.recurringRecurringDetailReference, responseAdditionalDataCommon.recurringRecurringDetailReference) && - Objects.equals(this.recurringShopperReference, responseAdditionalDataCommon.recurringShopperReference) && - Objects.equals(this.recurringProcessingModel, responseAdditionalDataCommon.recurringProcessingModel) && - Objects.equals(this.referred, responseAdditionalDataCommon.referred) && - Objects.equals(this.refusalReasonRaw, responseAdditionalDataCommon.refusalReasonRaw) && - Objects.equals(this.requestAmount, responseAdditionalDataCommon.requestAmount) && - Objects.equals(this.requestCurrencyCode, responseAdditionalDataCommon.requestCurrencyCode) && - Objects.equals(this.shopperInteraction, responseAdditionalDataCommon.shopperInteraction) && - Objects.equals(this.shopperReference, responseAdditionalDataCommon.shopperReference) && - Objects.equals(this.terminalId, responseAdditionalDataCommon.terminalId) && - Objects.equals(this.threeDAuthenticated, responseAdditionalDataCommon.threeDAuthenticated) && - Objects.equals(this.threeDAuthenticatedResponse, responseAdditionalDataCommon.threeDAuthenticatedResponse) && - Objects.equals(this.threeDOffered, responseAdditionalDataCommon.threeDOffered) && - Objects.equals(this.threeDOfferedResponse, responseAdditionalDataCommon.threeDOfferedResponse) && - Objects.equals(this.threeDSVersion, responseAdditionalDataCommon.threeDSVersion) && - Objects.equals(this.tokenizationShopperReference, responseAdditionalDataCommon.tokenizationShopperReference) && - Objects.equals(this.tokenizationStoreOperationType, responseAdditionalDataCommon.tokenizationStoreOperationType) && - Objects.equals(this.tokenizationStoredPaymentMethodId, responseAdditionalDataCommon.tokenizationStoredPaymentMethodId) && - Objects.equals(this.visaTransactionId, responseAdditionalDataCommon.visaTransactionId) && - Objects.equals(this.xid, responseAdditionalDataCommon.xid); + return Objects.equals( + this.acquirerAccountCode, responseAdditionalDataCommon.acquirerAccountCode) + && Objects.equals(this.acquirerCode, responseAdditionalDataCommon.acquirerCode) + && Objects.equals(this.acquirerReference, responseAdditionalDataCommon.acquirerReference) + && Objects.equals(this.alias, responseAdditionalDataCommon.alias) + && Objects.equals(this.aliasType, responseAdditionalDataCommon.aliasType) + && Objects.equals(this.authCode, responseAdditionalDataCommon.authCode) + && Objects.equals(this.authorisationMid, responseAdditionalDataCommon.authorisationMid) + && Objects.equals( + this.authorisedAmountCurrency, responseAdditionalDataCommon.authorisedAmountCurrency) + && Objects.equals( + this.authorisedAmountValue, responseAdditionalDataCommon.authorisedAmountValue) + && Objects.equals(this.avsResult, responseAdditionalDataCommon.avsResult) + && Objects.equals(this.avsResultRaw, responseAdditionalDataCommon.avsResultRaw) + && Objects.equals(this.bic, responseAdditionalDataCommon.bic) + && Objects.equals(this.coBrandedWith, responseAdditionalDataCommon.coBrandedWith) + && Objects.equals(this.cvcResult, responseAdditionalDataCommon.cvcResult) + && Objects.equals(this.cvcResultRaw, responseAdditionalDataCommon.cvcResultRaw) + && Objects.equals(this.dsTransID, responseAdditionalDataCommon.dsTransID) + && Objects.equals(this.eci, responseAdditionalDataCommon.eci) + && Objects.equals(this.expiryDate, responseAdditionalDataCommon.expiryDate) + && Objects.equals(this.extraCostsCurrency, responseAdditionalDataCommon.extraCostsCurrency) + && Objects.equals(this.extraCostsValue, responseAdditionalDataCommon.extraCostsValue) + && Objects.equals( + this.fraudCheckItemNrFraudCheckname, + responseAdditionalDataCommon.fraudCheckItemNrFraudCheckname) + && Objects.equals(this.fraudManualReview, responseAdditionalDataCommon.fraudManualReview) + && Objects.equals(this.fraudResultType, responseAdditionalDataCommon.fraudResultType) + && Objects.equals(this.fraudRiskLevel, responseAdditionalDataCommon.fraudRiskLevel) + && Objects.equals(this.fundingSource, responseAdditionalDataCommon.fundingSource) + && Objects.equals(this.fundsAvailability, responseAdditionalDataCommon.fundsAvailability) + && Objects.equals( + this.inferredRefusalReason, responseAdditionalDataCommon.inferredRefusalReason) + && Objects.equals(this.isCardCommercial, responseAdditionalDataCommon.isCardCommercial) + && Objects.equals(this.issuerCountry, responseAdditionalDataCommon.issuerCountry) + && Objects.equals(this.liabilityShift, responseAdditionalDataCommon.liabilityShift) + && Objects.equals( + this.mcBankNetReferenceNumber, responseAdditionalDataCommon.mcBankNetReferenceNumber) + && Objects.equals(this.merchantAdviceCode, responseAdditionalDataCommon.merchantAdviceCode) + && Objects.equals(this.merchantReference, responseAdditionalDataCommon.merchantReference) + && Objects.equals(this.networkTxReference, responseAdditionalDataCommon.networkTxReference) + && Objects.equals(this.ownerName, responseAdditionalDataCommon.ownerName) + && Objects.equals( + this.paymentAccountReference, responseAdditionalDataCommon.paymentAccountReference) + && Objects.equals(this.paymentMethod, responseAdditionalDataCommon.paymentMethod) + && Objects.equals( + this.paymentMethodVariant, responseAdditionalDataCommon.paymentMethodVariant) + && Objects.equals(this.payoutEligible, responseAdditionalDataCommon.payoutEligible) + && Objects.equals( + this.realtimeAccountUpdaterStatus, + responseAdditionalDataCommon.realtimeAccountUpdaterStatus) + && Objects.equals(this.receiptFreeText, responseAdditionalDataCommon.receiptFreeText) + && Objects.equals( + this.recurringContractTypes, responseAdditionalDataCommon.recurringContractTypes) + && Objects.equals( + this.recurringFirstPspReference, + responseAdditionalDataCommon.recurringFirstPspReference) + && Objects.equals( + this.recurringRecurringDetailReference, + responseAdditionalDataCommon.recurringRecurringDetailReference) + && Objects.equals( + this.recurringShopperReference, responseAdditionalDataCommon.recurringShopperReference) + && Objects.equals( + this.recurringProcessingModel, responseAdditionalDataCommon.recurringProcessingModel) + && Objects.equals(this.referred, responseAdditionalDataCommon.referred) + && Objects.equals(this.refusalReasonRaw, responseAdditionalDataCommon.refusalReasonRaw) + && Objects.equals(this.requestAmount, responseAdditionalDataCommon.requestAmount) + && Objects.equals( + this.requestCurrencyCode, responseAdditionalDataCommon.requestCurrencyCode) + && Objects.equals(this.shopperInteraction, responseAdditionalDataCommon.shopperInteraction) + && Objects.equals(this.shopperReference, responseAdditionalDataCommon.shopperReference) + && Objects.equals(this.terminalId, responseAdditionalDataCommon.terminalId) + && Objects.equals( + this.threeDAuthenticated, responseAdditionalDataCommon.threeDAuthenticated) + && Objects.equals( + this.threeDAuthenticatedResponse, + responseAdditionalDataCommon.threeDAuthenticatedResponse) + && Objects.equals(this.threeDOffered, responseAdditionalDataCommon.threeDOffered) + && Objects.equals( + this.threeDOfferedResponse, responseAdditionalDataCommon.threeDOfferedResponse) + && Objects.equals(this.threeDSVersion, responseAdditionalDataCommon.threeDSVersion) + && Objects.equals( + this.tokenizationShopperReference, + responseAdditionalDataCommon.tokenizationShopperReference) + && Objects.equals( + this.tokenizationStoreOperationType, + responseAdditionalDataCommon.tokenizationStoreOperationType) + && Objects.equals( + this.tokenizationStoredPaymentMethodId, + responseAdditionalDataCommon.tokenizationStoredPaymentMethodId) + && Objects.equals(this.visaTransactionId, responseAdditionalDataCommon.visaTransactionId) + && Objects.equals(this.xid, responseAdditionalDataCommon.xid); } @Override public int hashCode() { - return Objects.hash(acquirerAccountCode, acquirerCode, acquirerReference, alias, aliasType, authCode, authorisationMid, authorisedAmountCurrency, authorisedAmountValue, avsResult, avsResultRaw, bic, coBrandedWith, cvcResult, cvcResultRaw, dsTransID, eci, expiryDate, extraCostsCurrency, extraCostsValue, fraudCheckItemNrFraudCheckname, fraudManualReview, fraudResultType, fraudRiskLevel, fundingSource, fundsAvailability, inferredRefusalReason, isCardCommercial, issuerCountry, liabilityShift, mcBankNetReferenceNumber, merchantAdviceCode, merchantReference, networkTxReference, ownerName, paymentAccountReference, paymentMethod, paymentMethodVariant, payoutEligible, realtimeAccountUpdaterStatus, receiptFreeText, recurringContractTypes, recurringFirstPspReference, recurringRecurringDetailReference, recurringShopperReference, recurringProcessingModel, referred, refusalReasonRaw, requestAmount, requestCurrencyCode, shopperInteraction, shopperReference, terminalId, threeDAuthenticated, threeDAuthenticatedResponse, threeDOffered, threeDOfferedResponse, threeDSVersion, tokenizationShopperReference, tokenizationStoreOperationType, tokenizationStoredPaymentMethodId, visaTransactionId, xid); + return Objects.hash( + acquirerAccountCode, + acquirerCode, + acquirerReference, + alias, + aliasType, + authCode, + authorisationMid, + authorisedAmountCurrency, + authorisedAmountValue, + avsResult, + avsResultRaw, + bic, + coBrandedWith, + cvcResult, + cvcResultRaw, + dsTransID, + eci, + expiryDate, + extraCostsCurrency, + extraCostsValue, + fraudCheckItemNrFraudCheckname, + fraudManualReview, + fraudResultType, + fraudRiskLevel, + fundingSource, + fundsAvailability, + inferredRefusalReason, + isCardCommercial, + issuerCountry, + liabilityShift, + mcBankNetReferenceNumber, + merchantAdviceCode, + merchantReference, + networkTxReference, + ownerName, + paymentAccountReference, + paymentMethod, + paymentMethodVariant, + payoutEligible, + realtimeAccountUpdaterStatus, + receiptFreeText, + recurringContractTypes, + recurringFirstPspReference, + recurringRecurringDetailReference, + recurringShopperReference, + recurringProcessingModel, + referred, + refusalReasonRaw, + requestAmount, + requestCurrencyCode, + shopperInteraction, + shopperReference, + terminalId, + threeDAuthenticated, + threeDAuthenticatedResponse, + threeDOffered, + threeDOfferedResponse, + threeDSVersion, + tokenizationShopperReference, + tokenizationStoreOperationType, + tokenizationStoredPaymentMethodId, + visaTransactionId, + xid); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataCommon {\n"); - sb.append(" acquirerAccountCode: ").append(toIndentedString(acquirerAccountCode)).append("\n"); + sb.append(" acquirerAccountCode: ") + .append(toIndentedString(acquirerAccountCode)) + .append("\n"); sb.append(" acquirerCode: ").append(toIndentedString(acquirerCode)).append("\n"); sb.append(" acquirerReference: ").append(toIndentedString(acquirerReference)).append("\n"); sb.append(" alias: ").append(toIndentedString(alias)).append("\n"); sb.append(" aliasType: ").append(toIndentedString(aliasType)).append("\n"); sb.append(" authCode: ").append(toIndentedString(authCode)).append("\n"); sb.append(" authorisationMid: ").append(toIndentedString(authorisationMid)).append("\n"); - sb.append(" authorisedAmountCurrency: ").append(toIndentedString(authorisedAmountCurrency)).append("\n"); - sb.append(" authorisedAmountValue: ").append(toIndentedString(authorisedAmountValue)).append("\n"); + sb.append(" authorisedAmountCurrency: ") + .append(toIndentedString(authorisedAmountCurrency)) + .append("\n"); + sb.append(" authorisedAmountValue: ") + .append(toIndentedString(authorisedAmountValue)) + .append("\n"); sb.append(" avsResult: ").append(toIndentedString(avsResult)).append("\n"); sb.append(" avsResultRaw: ").append(toIndentedString(avsResultRaw)).append("\n"); sb.append(" bic: ").append(toIndentedString(bic)).append("\n"); @@ -2600,47 +3184,83 @@ public String toString() { sb.append(" expiryDate: ").append(toIndentedString(expiryDate)).append("\n"); sb.append(" extraCostsCurrency: ").append(toIndentedString(extraCostsCurrency)).append("\n"); sb.append(" extraCostsValue: ").append(toIndentedString(extraCostsValue)).append("\n"); - sb.append(" fraudCheckItemNrFraudCheckname: ").append(toIndentedString(fraudCheckItemNrFraudCheckname)).append("\n"); + sb.append(" fraudCheckItemNrFraudCheckname: ") + .append(toIndentedString(fraudCheckItemNrFraudCheckname)) + .append("\n"); sb.append(" fraudManualReview: ").append(toIndentedString(fraudManualReview)).append("\n"); sb.append(" fraudResultType: ").append(toIndentedString(fraudResultType)).append("\n"); sb.append(" fraudRiskLevel: ").append(toIndentedString(fraudRiskLevel)).append("\n"); sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); sb.append(" fundsAvailability: ").append(toIndentedString(fundsAvailability)).append("\n"); - sb.append(" inferredRefusalReason: ").append(toIndentedString(inferredRefusalReason)).append("\n"); + sb.append(" inferredRefusalReason: ") + .append(toIndentedString(inferredRefusalReason)) + .append("\n"); sb.append(" isCardCommercial: ").append(toIndentedString(isCardCommercial)).append("\n"); sb.append(" issuerCountry: ").append(toIndentedString(issuerCountry)).append("\n"); sb.append(" liabilityShift: ").append(toIndentedString(liabilityShift)).append("\n"); - sb.append(" mcBankNetReferenceNumber: ").append(toIndentedString(mcBankNetReferenceNumber)).append("\n"); + sb.append(" mcBankNetReferenceNumber: ") + .append(toIndentedString(mcBankNetReferenceNumber)) + .append("\n"); sb.append(" merchantAdviceCode: ").append(toIndentedString(merchantAdviceCode)).append("\n"); sb.append(" merchantReference: ").append(toIndentedString(merchantReference)).append("\n"); sb.append(" networkTxReference: ").append(toIndentedString(networkTxReference)).append("\n"); sb.append(" ownerName: ").append(toIndentedString(ownerName)).append("\n"); - sb.append(" paymentAccountReference: ").append(toIndentedString(paymentAccountReference)).append("\n"); + sb.append(" paymentAccountReference: ") + .append(toIndentedString(paymentAccountReference)) + .append("\n"); sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n"); - sb.append(" paymentMethodVariant: ").append(toIndentedString(paymentMethodVariant)).append("\n"); + sb.append(" paymentMethodVariant: ") + .append(toIndentedString(paymentMethodVariant)) + .append("\n"); sb.append(" payoutEligible: ").append(toIndentedString(payoutEligible)).append("\n"); - sb.append(" realtimeAccountUpdaterStatus: ").append(toIndentedString(realtimeAccountUpdaterStatus)).append("\n"); + sb.append(" realtimeAccountUpdaterStatus: ") + .append(toIndentedString(realtimeAccountUpdaterStatus)) + .append("\n"); sb.append(" receiptFreeText: ").append(toIndentedString(receiptFreeText)).append("\n"); - sb.append(" recurringContractTypes: ").append(toIndentedString(recurringContractTypes)).append("\n"); - sb.append(" recurringFirstPspReference: ").append(toIndentedString(recurringFirstPspReference)).append("\n"); - sb.append(" recurringRecurringDetailReference: ").append(toIndentedString(recurringRecurringDetailReference)).append("\n"); - sb.append(" recurringShopperReference: ").append(toIndentedString(recurringShopperReference)).append("\n"); - sb.append(" recurringProcessingModel: ").append(toIndentedString(recurringProcessingModel)).append("\n"); + sb.append(" recurringContractTypes: ") + .append(toIndentedString(recurringContractTypes)) + .append("\n"); + sb.append(" recurringFirstPspReference: ") + .append(toIndentedString(recurringFirstPspReference)) + .append("\n"); + sb.append(" recurringRecurringDetailReference: ") + .append(toIndentedString(recurringRecurringDetailReference)) + .append("\n"); + sb.append(" recurringShopperReference: ") + .append(toIndentedString(recurringShopperReference)) + .append("\n"); + sb.append(" recurringProcessingModel: ") + .append(toIndentedString(recurringProcessingModel)) + .append("\n"); sb.append(" referred: ").append(toIndentedString(referred)).append("\n"); sb.append(" refusalReasonRaw: ").append(toIndentedString(refusalReasonRaw)).append("\n"); sb.append(" requestAmount: ").append(toIndentedString(requestAmount)).append("\n"); - sb.append(" requestCurrencyCode: ").append(toIndentedString(requestCurrencyCode)).append("\n"); + sb.append(" requestCurrencyCode: ") + .append(toIndentedString(requestCurrencyCode)) + .append("\n"); sb.append(" shopperInteraction: ").append(toIndentedString(shopperInteraction)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append(" terminalId: ").append(toIndentedString(terminalId)).append("\n"); - sb.append(" threeDAuthenticated: ").append(toIndentedString(threeDAuthenticated)).append("\n"); - sb.append(" threeDAuthenticatedResponse: ").append(toIndentedString(threeDAuthenticatedResponse)).append("\n"); + sb.append(" threeDAuthenticated: ") + .append(toIndentedString(threeDAuthenticated)) + .append("\n"); + sb.append(" threeDAuthenticatedResponse: ") + .append(toIndentedString(threeDAuthenticatedResponse)) + .append("\n"); sb.append(" threeDOffered: ").append(toIndentedString(threeDOffered)).append("\n"); - sb.append(" threeDOfferedResponse: ").append(toIndentedString(threeDOfferedResponse)).append("\n"); + sb.append(" threeDOfferedResponse: ") + .append(toIndentedString(threeDOfferedResponse)) + .append("\n"); sb.append(" threeDSVersion: ").append(toIndentedString(threeDSVersion)).append("\n"); - sb.append(" tokenizationShopperReference: ").append(toIndentedString(tokenizationShopperReference)).append("\n"); - sb.append(" tokenizationStoreOperationType: ").append(toIndentedString(tokenizationStoreOperationType)).append("\n"); - sb.append(" tokenizationStoredPaymentMethodId: ").append(toIndentedString(tokenizationStoredPaymentMethodId)).append("\n"); + sb.append(" tokenizationShopperReference: ") + .append(toIndentedString(tokenizationShopperReference)) + .append("\n"); + sb.append(" tokenizationStoreOperationType: ") + .append(toIndentedString(tokenizationStoreOperationType)) + .append("\n"); + sb.append(" tokenizationStoredPaymentMethodId: ") + .append(toIndentedString(tokenizationStoredPaymentMethodId)) + .append("\n"); sb.append(" visaTransactionId: ").append(toIndentedString(visaTransactionId)).append("\n"); sb.append(" xid: ").append(toIndentedString(xid)).append("\n"); sb.append("}"); @@ -2648,8 +3268,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -2658,21 +3277,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResponseAdditionalDataCommon given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataCommon - * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataCommon + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ResponseAdditionalDataCommon */ - public static ResponseAdditionalDataCommon fromJson(String jsonString) throws JsonProcessingException { + public static ResponseAdditionalDataCommon fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataCommon.class); } -/** - * Convert an instance of ResponseAdditionalDataCommon to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResponseAdditionalDataCommon to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataDomesticError.java b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataDomesticError.java index 0678f6634..048a526e7 100644 --- a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataDomesticError.java +++ b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataDomesticError.java @@ -2,36 +2,26 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ResponseAdditionalDataDomesticError - */ +/** ResponseAdditionalDataDomesticError */ @JsonPropertyOrder({ ResponseAdditionalDataDomesticError.JSON_PROPERTY_DOMESTIC_REFUSAL_REASON_RAW, ResponseAdditionalDataDomesticError.JSON_PROPERTY_DOMESTIC_SHOPPER_ADVICE }) - public class ResponseAdditionalDataDomesticError { public static final String JSON_PROPERTY_DOMESTIC_REFUSAL_REASON_RAW = "domesticRefusalReasonRaw"; private String domesticRefusalReasonRaw; @@ -39,23 +29,29 @@ public class ResponseAdditionalDataDomesticError { public static final String JSON_PROPERTY_DOMESTIC_SHOPPER_ADVICE = "domesticShopperAdvice"; private String domesticShopperAdvice; - public ResponseAdditionalDataDomesticError() { - } + public ResponseAdditionalDataDomesticError() {} /** - * The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. + * The reason the transaction was declined, given by the local issuer. Currently available for + * merchants in Japan. * - * @param domesticRefusalReasonRaw The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. - * @return the current {@code ResponseAdditionalDataDomesticError} instance, allowing for method chaining + * @param domesticRefusalReasonRaw The reason the transaction was declined, given by the local + * issuer. Currently available for merchants in Japan. + * @return the current {@code ResponseAdditionalDataDomesticError} instance, allowing for method + * chaining */ - public ResponseAdditionalDataDomesticError domesticRefusalReasonRaw(String domesticRefusalReasonRaw) { + public ResponseAdditionalDataDomesticError domesticRefusalReasonRaw( + String domesticRefusalReasonRaw) { this.domesticRefusalReasonRaw = domesticRefusalReasonRaw; return this; } /** - * The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. - * @return domesticRefusalReasonRaw The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. + * The reason the transaction was declined, given by the local issuer. Currently available for + * merchants in Japan. + * + * @return domesticRefusalReasonRaw The reason the transaction was declined, given by the local + * issuer. Currently available for merchants in Japan. */ @JsonProperty(JSON_PROPERTY_DOMESTIC_REFUSAL_REASON_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +60,11 @@ public String getDomesticRefusalReasonRaw() { } /** - * The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. + * The reason the transaction was declined, given by the local issuer. Currently available for + * merchants in Japan. * - * @param domesticRefusalReasonRaw The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. + * @param domesticRefusalReasonRaw The reason the transaction was declined, given by the local + * issuer. Currently available for merchants in Japan. */ @JsonProperty(JSON_PROPERTY_DOMESTIC_REFUSAL_REASON_RAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,10 +73,13 @@ public void setDomesticRefusalReasonRaw(String domesticRefusalReasonRaw) { } /** - * The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. + * The action the shopper should take, in a local language. Currently available in Japanese, for + * merchants in Japan. * - * @param domesticShopperAdvice The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. - * @return the current {@code ResponseAdditionalDataDomesticError} instance, allowing for method chaining + * @param domesticShopperAdvice The action the shopper should take, in a local language. Currently + * available in Japanese, for merchants in Japan. + * @return the current {@code ResponseAdditionalDataDomesticError} instance, allowing for method + * chaining */ public ResponseAdditionalDataDomesticError domesticShopperAdvice(String domesticShopperAdvice) { this.domesticShopperAdvice = domesticShopperAdvice; @@ -86,8 +87,11 @@ public ResponseAdditionalDataDomesticError domesticShopperAdvice(String domestic } /** - * The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. - * @return domesticShopperAdvice The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. + * The action the shopper should take, in a local language. Currently available in Japanese, for + * merchants in Japan. + * + * @return domesticShopperAdvice The action the shopper should take, in a local language. + * Currently available in Japanese, for merchants in Japan. */ @JsonProperty(JSON_PROPERTY_DOMESTIC_SHOPPER_ADVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +100,11 @@ public String getDomesticShopperAdvice() { } /** - * The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. + * The action the shopper should take, in a local language. Currently available in Japanese, for + * merchants in Japan. * - * @param domesticShopperAdvice The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. + * @param domesticShopperAdvice The action the shopper should take, in a local language. Currently + * available in Japanese, for merchants in Japan. */ @JsonProperty(JSON_PROPERTY_DOMESTIC_SHOPPER_ADVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +112,7 @@ public void setDomesticShopperAdvice(String domesticShopperAdvice) { this.domesticShopperAdvice = domesticShopperAdvice; } - /** - * Return true if this ResponseAdditionalDataDomesticError object is equal to o. - */ + /** Return true if this ResponseAdditionalDataDomesticError object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -117,9 +121,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResponseAdditionalDataDomesticError responseAdditionalDataDomesticError = (ResponseAdditionalDataDomesticError) o; - return Objects.equals(this.domesticRefusalReasonRaw, responseAdditionalDataDomesticError.domesticRefusalReasonRaw) && - Objects.equals(this.domesticShopperAdvice, responseAdditionalDataDomesticError.domesticShopperAdvice); + ResponseAdditionalDataDomesticError responseAdditionalDataDomesticError = + (ResponseAdditionalDataDomesticError) o; + return Objects.equals( + this.domesticRefusalReasonRaw, + responseAdditionalDataDomesticError.domesticRefusalReasonRaw) + && Objects.equals( + this.domesticShopperAdvice, responseAdditionalDataDomesticError.domesticShopperAdvice); } @Override @@ -131,15 +139,18 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataDomesticError {\n"); - sb.append(" domesticRefusalReasonRaw: ").append(toIndentedString(domesticRefusalReasonRaw)).append("\n"); - sb.append(" domesticShopperAdvice: ").append(toIndentedString(domesticShopperAdvice)).append("\n"); + sb.append(" domesticRefusalReasonRaw: ") + .append(toIndentedString(domesticRefusalReasonRaw)) + .append("\n"); + sb.append(" domesticShopperAdvice: ") + .append(toIndentedString(domesticShopperAdvice)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +159,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResponseAdditionalDataDomesticError given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataDomesticError - * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataDomesticError + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ResponseAdditionalDataDomesticError */ - public static ResponseAdditionalDataDomesticError fromJson(String jsonString) throws JsonProcessingException { + public static ResponseAdditionalDataDomesticError fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataDomesticError.class); } -/** - * Convert an instance of ResponseAdditionalDataDomesticError to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResponseAdditionalDataDomesticError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataInstallments.java b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataInstallments.java index 3215b47c5..c9c7745c4 100644 --- a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataInstallments.java +++ b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataInstallments.java @@ -2,100 +2,121 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ResponseAdditionalDataInstallments - */ +/** ResponseAdditionalDataInstallments */ @JsonPropertyOrder({ ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_INSTALLMENT_TYPE, - ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE, - ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT, - ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE, - ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE, - ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS, - ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS, - ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS, - ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT, - ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE, + ResponseAdditionalDataInstallments + .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE, + ResponseAdditionalDataInstallments + .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT, + ResponseAdditionalDataInstallments + .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE, + ResponseAdditionalDataInstallments + .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE, + ResponseAdditionalDataInstallments + .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS, + ResponseAdditionalDataInstallments + .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS, + ResponseAdditionalDataInstallments + .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS, + ResponseAdditionalDataInstallments + .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT, + ResponseAdditionalDataInstallments + .JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE, ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_PAYMENT_OPTIONS, ResponseAdditionalDataInstallments.JSON_PROPERTY_INSTALLMENTS_VALUE }) - public class ResponseAdditionalDataInstallments { - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_INSTALLMENT_TYPE = "installmentPaymentData.installmentType"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_INSTALLMENT_TYPE = + "installmentPaymentData.installmentType"; private String installmentPaymentDataInstallmentType; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE = "installmentPaymentData.option[itemNr].annualPercentageRate"; + public static final String + JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE = + "installmentPaymentData.option[itemNr].annualPercentageRate"; private String installmentPaymentDataOptionItemNrAnnualPercentageRate; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT = "installmentPaymentData.option[itemNr].firstInstallmentAmount"; + public static final String + JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT = + "installmentPaymentData.option[itemNr].firstInstallmentAmount"; private String installmentPaymentDataOptionItemNrFirstInstallmentAmount; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE = "installmentPaymentData.option[itemNr].installmentFee"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE = + "installmentPaymentData.option[itemNr].installmentFee"; private String installmentPaymentDataOptionItemNrInstallmentFee; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE = "installmentPaymentData.option[itemNr].interestRate"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE = + "installmentPaymentData.option[itemNr].interestRate"; private String installmentPaymentDataOptionItemNrInterestRate; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS = "installmentPaymentData.option[itemNr].maximumNumberOfInstallments"; + public static final String + JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS = + "installmentPaymentData.option[itemNr].maximumNumberOfInstallments"; private String installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS = "installmentPaymentData.option[itemNr].minimumNumberOfInstallments"; + public static final String + JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS = + "installmentPaymentData.option[itemNr].minimumNumberOfInstallments"; private String installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS = "installmentPaymentData.option[itemNr].numberOfInstallments"; + public static final String + JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS = + "installmentPaymentData.option[itemNr].numberOfInstallments"; private String installmentPaymentDataOptionItemNrNumberOfInstallments; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT = "installmentPaymentData.option[itemNr].subsequentInstallmentAmount"; + public static final String + JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT = + "installmentPaymentData.option[itemNr].subsequentInstallmentAmount"; private String installmentPaymentDataOptionItemNrSubsequentInstallmentAmount; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE = "installmentPaymentData.option[itemNr].totalAmountDue"; + public static final String + JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE = + "installmentPaymentData.option[itemNr].totalAmountDue"; private String installmentPaymentDataOptionItemNrTotalAmountDue; - public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_PAYMENT_OPTIONS = "installmentPaymentData.paymentOptions"; + public static final String JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_PAYMENT_OPTIONS = + "installmentPaymentData.paymentOptions"; private String installmentPaymentDataPaymentOptions; public static final String JSON_PROPERTY_INSTALLMENTS_VALUE = "installments.value"; private String installmentsValue; - public ResponseAdditionalDataInstallments() { - } + public ResponseAdditionalDataInstallments() {} /** * Type of installment. The value of `installmentType` should be **IssuerFinanced**. * - * @param installmentPaymentDataInstallmentType Type of installment. The value of `installmentType` should be **IssuerFinanced**. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + * @param installmentPaymentDataInstallmentType Type of installment. The value of + * `installmentType` should be **IssuerFinanced**. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataInstallmentType(String installmentPaymentDataInstallmentType) { + public ResponseAdditionalDataInstallments installmentPaymentDataInstallmentType( + String installmentPaymentDataInstallmentType) { this.installmentPaymentDataInstallmentType = installmentPaymentDataInstallmentType; return this; } /** * Type of installment. The value of `installmentType` should be **IssuerFinanced**. - * @return installmentPaymentDataInstallmentType Type of installment. The value of `installmentType` should be **IssuerFinanced**. + * + * @return installmentPaymentDataInstallmentType Type of installment. The value of + * `installmentType` should be **IssuerFinanced**. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_INSTALLMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,11 +127,13 @@ public String getInstallmentPaymentDataInstallmentType() { /** * Type of installment. The value of `installmentType` should be **IssuerFinanced**. * - * @param installmentPaymentDataInstallmentType Type of installment. The value of `installmentType` should be **IssuerFinanced**. + * @param installmentPaymentDataInstallmentType Type of installment. The value of + * `installmentType` should be **IssuerFinanced**. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_INSTALLMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataInstallmentType(String installmentPaymentDataInstallmentType) { + public void setInstallmentPaymentDataInstallmentType( + String installmentPaymentDataInstallmentType) { this.installmentPaymentDataInstallmentType = installmentPaymentDataInstallmentType; } @@ -118,15 +141,19 @@ public void setInstallmentPaymentDataInstallmentType(String installmentPaymentDa * Annual interest rate. * * @param installmentPaymentDataOptionItemNrAnnualPercentageRate Annual interest rate. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrAnnualPercentageRate(String installmentPaymentDataOptionItemNrAnnualPercentageRate) { - this.installmentPaymentDataOptionItemNrAnnualPercentageRate = installmentPaymentDataOptionItemNrAnnualPercentageRate; + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrAnnualPercentageRate( + String installmentPaymentDataOptionItemNrAnnualPercentageRate) { + this.installmentPaymentDataOptionItemNrAnnualPercentageRate = + installmentPaymentDataOptionItemNrAnnualPercentageRate; return this; } /** * Annual interest rate. + * * @return installmentPaymentDataOptionItemNrAnnualPercentageRate Annual interest rate. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE) @@ -142,24 +169,33 @@ public String getInstallmentPaymentDataOptionItemNrAnnualPercentageRate() { */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_ANNUAL_PERCENTAGE_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrAnnualPercentageRate(String installmentPaymentDataOptionItemNrAnnualPercentageRate) { - this.installmentPaymentDataOptionItemNrAnnualPercentageRate = installmentPaymentDataOptionItemNrAnnualPercentageRate; + public void setInstallmentPaymentDataOptionItemNrAnnualPercentageRate( + String installmentPaymentDataOptionItemNrAnnualPercentageRate) { + this.installmentPaymentDataOptionItemNrAnnualPercentageRate = + installmentPaymentDataOptionItemNrAnnualPercentageRate; } /** * First Installment Amount in minor units. * - * @param installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in minor units. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining - */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrFirstInstallmentAmount(String installmentPaymentDataOptionItemNrFirstInstallmentAmount) { - this.installmentPaymentDataOptionItemNrFirstInstallmentAmount = installmentPaymentDataOptionItemNrFirstInstallmentAmount; + * @param installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in + * minor units. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining + */ + public ResponseAdditionalDataInstallments + installmentPaymentDataOptionItemNrFirstInstallmentAmount( + String installmentPaymentDataOptionItemNrFirstInstallmentAmount) { + this.installmentPaymentDataOptionItemNrFirstInstallmentAmount = + installmentPaymentDataOptionItemNrFirstInstallmentAmount; return this; } /** * First Installment Amount in minor units. - * @return installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in minor units. + * + * @return installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in + * minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -170,27 +206,34 @@ public String getInstallmentPaymentDataOptionItemNrFirstInstallmentAmount() { /** * First Installment Amount in minor units. * - * @param installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in minor units. + * @param installmentPaymentDataOptionItemNrFirstInstallmentAmount First Installment Amount in + * minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_FIRST_INSTALLMENT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrFirstInstallmentAmount(String installmentPaymentDataOptionItemNrFirstInstallmentAmount) { - this.installmentPaymentDataOptionItemNrFirstInstallmentAmount = installmentPaymentDataOptionItemNrFirstInstallmentAmount; + public void setInstallmentPaymentDataOptionItemNrFirstInstallmentAmount( + String installmentPaymentDataOptionItemNrFirstInstallmentAmount) { + this.installmentPaymentDataOptionItemNrFirstInstallmentAmount = + installmentPaymentDataOptionItemNrFirstInstallmentAmount; } /** * Installment fee amount in minor units. * * @param installmentPaymentDataOptionItemNrInstallmentFee Installment fee amount in minor units. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrInstallmentFee(String installmentPaymentDataOptionItemNrInstallmentFee) { - this.installmentPaymentDataOptionItemNrInstallmentFee = installmentPaymentDataOptionItemNrInstallmentFee; + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrInstallmentFee( + String installmentPaymentDataOptionItemNrInstallmentFee) { + this.installmentPaymentDataOptionItemNrInstallmentFee = + installmentPaymentDataOptionItemNrInstallmentFee; return this; } /** * Installment fee amount in minor units. + * * @return installmentPaymentDataOptionItemNrInstallmentFee Installment fee amount in minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE) @@ -206,24 +249,31 @@ public String getInstallmentPaymentDataOptionItemNrInstallmentFee() { */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INSTALLMENT_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrInstallmentFee(String installmentPaymentDataOptionItemNrInstallmentFee) { - this.installmentPaymentDataOptionItemNrInstallmentFee = installmentPaymentDataOptionItemNrInstallmentFee; + public void setInstallmentPaymentDataOptionItemNrInstallmentFee( + String installmentPaymentDataOptionItemNrInstallmentFee) { + this.installmentPaymentDataOptionItemNrInstallmentFee = + installmentPaymentDataOptionItemNrInstallmentFee; } /** * Interest rate for the installment period. * * @param installmentPaymentDataOptionItemNrInterestRate Interest rate for the installment period. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrInterestRate(String installmentPaymentDataOptionItemNrInterestRate) { - this.installmentPaymentDataOptionItemNrInterestRate = installmentPaymentDataOptionItemNrInterestRate; + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrInterestRate( + String installmentPaymentDataOptionItemNrInterestRate) { + this.installmentPaymentDataOptionItemNrInterestRate = + installmentPaymentDataOptionItemNrInterestRate; return this; } /** * Interest rate for the installment period. - * @return installmentPaymentDataOptionItemNrInterestRate Interest rate for the installment period. + * + * @return installmentPaymentDataOptionItemNrInterestRate Interest rate for the installment + * period. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -238,26 +288,36 @@ public String getInstallmentPaymentDataOptionItemNrInterestRate() { */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_INTEREST_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrInterestRate(String installmentPaymentDataOptionItemNrInterestRate) { - this.installmentPaymentDataOptionItemNrInterestRate = installmentPaymentDataOptionItemNrInterestRate; + public void setInstallmentPaymentDataOptionItemNrInterestRate( + String installmentPaymentDataOptionItemNrInterestRate) { + this.installmentPaymentDataOptionItemNrInterestRate = + installmentPaymentDataOptionItemNrInterestRate; } /** * Maximum number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of installments possible for this payment. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining - */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrMaximumNumberOfInstallments(String installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments = installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; + * @param installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of + * installments possible for this payment. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining + */ + public ResponseAdditionalDataInstallments + installmentPaymentDataOptionItemNrMaximumNumberOfInstallments( + String installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments = + installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; return this; } /** * Maximum number of installments possible for this payment. - * @return installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of installments possible for this payment. + * + * @return installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of + * installments possible for this payment. */ - @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS) + @JsonProperty( + JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getInstallmentPaymentDataOptionItemNrMaximumNumberOfInstallments() { return installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; @@ -266,30 +326,42 @@ public String getInstallmentPaymentDataOptionItemNrMaximumNumberOfInstallments() /** * Maximum number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of installments possible for this payment. + * @param installmentPaymentDataOptionItemNrMaximumNumberOfInstallments Maximum number of + * installments possible for this payment. */ - @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS) + @JsonProperty( + JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MAXIMUM_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrMaximumNumberOfInstallments(String installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments = installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; + public void setInstallmentPaymentDataOptionItemNrMaximumNumberOfInstallments( + String installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments = + installmentPaymentDataOptionItemNrMaximumNumberOfInstallments; } /** * Minimum number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of installments possible for this payment. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining - */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrMinimumNumberOfInstallments(String installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments = installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; + * @param installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of + * installments possible for this payment. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining + */ + public ResponseAdditionalDataInstallments + installmentPaymentDataOptionItemNrMinimumNumberOfInstallments( + String installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments = + installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; return this; } /** * Minimum number of installments possible for this payment. - * @return installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of installments possible for this payment. + * + * @return installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of + * installments possible for this payment. */ - @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS) + @JsonProperty( + JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getInstallmentPaymentDataOptionItemNrMinimumNumberOfInstallments() { return installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; @@ -298,28 +370,38 @@ public String getInstallmentPaymentDataOptionItemNrMinimumNumberOfInstallments() /** * Minimum number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of installments possible for this payment. + * @param installmentPaymentDataOptionItemNrMinimumNumberOfInstallments Minimum number of + * installments possible for this payment. */ - @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS) + @JsonProperty( + JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_MINIMUM_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrMinimumNumberOfInstallments(String installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments = installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; + public void setInstallmentPaymentDataOptionItemNrMinimumNumberOfInstallments( + String installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments = + installmentPaymentDataOptionItemNrMinimumNumberOfInstallments; } /** * Total number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments possible for this payment. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining - */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrNumberOfInstallments(String installmentPaymentDataOptionItemNrNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrNumberOfInstallments = installmentPaymentDataOptionItemNrNumberOfInstallments; + * @param installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments + * possible for this payment. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining + */ + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrNumberOfInstallments( + String installmentPaymentDataOptionItemNrNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrNumberOfInstallments = + installmentPaymentDataOptionItemNrNumberOfInstallments; return this; } /** * Total number of installments possible for this payment. - * @return installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments possible for this payment. + * + * @return installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments + * possible for this payment. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -330,28 +412,38 @@ public String getInstallmentPaymentDataOptionItemNrNumberOfInstallments() { /** * Total number of installments possible for this payment. * - * @param installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments possible for this payment. + * @param installmentPaymentDataOptionItemNrNumberOfInstallments Total number of installments + * possible for this payment. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_NUMBER_OF_INSTALLMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrNumberOfInstallments(String installmentPaymentDataOptionItemNrNumberOfInstallments) { - this.installmentPaymentDataOptionItemNrNumberOfInstallments = installmentPaymentDataOptionItemNrNumberOfInstallments; + public void setInstallmentPaymentDataOptionItemNrNumberOfInstallments( + String installmentPaymentDataOptionItemNrNumberOfInstallments) { + this.installmentPaymentDataOptionItemNrNumberOfInstallments = + installmentPaymentDataOptionItemNrNumberOfInstallments; } /** * Subsequent Installment Amount in minor units. * - * @param installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment Amount in minor units. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining - */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrSubsequentInstallmentAmount(String installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) { - this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount = installmentPaymentDataOptionItemNrSubsequentInstallmentAmount; + * @param installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment + * Amount in minor units. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining + */ + public ResponseAdditionalDataInstallments + installmentPaymentDataOptionItemNrSubsequentInstallmentAmount( + String installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) { + this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount = + installmentPaymentDataOptionItemNrSubsequentInstallmentAmount; return this; } /** * Subsequent Installment Amount in minor units. - * @return installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment Amount in minor units. + * + * @return installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment + * Amount in minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -362,27 +454,34 @@ public String getInstallmentPaymentDataOptionItemNrSubsequentInstallmentAmount() /** * Subsequent Installment Amount in minor units. * - * @param installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment Amount in minor units. + * @param installmentPaymentDataOptionItemNrSubsequentInstallmentAmount Subsequent Installment + * Amount in minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_SUBSEQUENT_INSTALLMENT_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrSubsequentInstallmentAmount(String installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) { - this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount = installmentPaymentDataOptionItemNrSubsequentInstallmentAmount; + public void setInstallmentPaymentDataOptionItemNrSubsequentInstallmentAmount( + String installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) { + this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount = + installmentPaymentDataOptionItemNrSubsequentInstallmentAmount; } /** * Total amount in minor units. * * @param installmentPaymentDataOptionItemNrTotalAmountDue Total amount in minor units. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrTotalAmountDue(String installmentPaymentDataOptionItemNrTotalAmountDue) { - this.installmentPaymentDataOptionItemNrTotalAmountDue = installmentPaymentDataOptionItemNrTotalAmountDue; + public ResponseAdditionalDataInstallments installmentPaymentDataOptionItemNrTotalAmountDue( + String installmentPaymentDataOptionItemNrTotalAmountDue) { + this.installmentPaymentDataOptionItemNrTotalAmountDue = + installmentPaymentDataOptionItemNrTotalAmountDue; return this; } /** * Total amount in minor units. + * * @return installmentPaymentDataOptionItemNrTotalAmountDue Total amount in minor units. */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE) @@ -398,24 +497,31 @@ public String getInstallmentPaymentDataOptionItemNrTotalAmountDue() { */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_OPTION_ITEM_NR_TOTAL_AMOUNT_DUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstallmentPaymentDataOptionItemNrTotalAmountDue(String installmentPaymentDataOptionItemNrTotalAmountDue) { - this.installmentPaymentDataOptionItemNrTotalAmountDue = installmentPaymentDataOptionItemNrTotalAmountDue; + public void setInstallmentPaymentDataOptionItemNrTotalAmountDue( + String installmentPaymentDataOptionItemNrTotalAmountDue) { + this.installmentPaymentDataOptionItemNrTotalAmountDue = + installmentPaymentDataOptionItemNrTotalAmountDue; } /** * Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments * - * @param installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + * @param installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * + * PayInFullOnly * PayInFullOrInstallments + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining */ - public ResponseAdditionalDataInstallments installmentPaymentDataPaymentOptions(String installmentPaymentDataPaymentOptions) { + public ResponseAdditionalDataInstallments installmentPaymentDataPaymentOptions( + String installmentPaymentDataPaymentOptions) { this.installmentPaymentDataPaymentOptions = installmentPaymentDataPaymentOptions; return this; } /** * Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments - * @return installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments + * + * @return installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * + * PayInFullOnly * PayInFullOrInstallments */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_PAYMENT_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -426,7 +532,8 @@ public String getInstallmentPaymentDataPaymentOptions() { /** * Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments * - * @param installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments + * @param installmentPaymentDataPaymentOptions Possible values: * PayInInstallmentsOnly * + * PayInFullOnly * PayInFullOrInstallments */ @JsonProperty(JSON_PROPERTY_INSTALLMENT_PAYMENT_DATA_PAYMENT_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -435,10 +542,14 @@ public void setInstallmentPaymentDataPaymentOptions(String installmentPaymentDat } /** - * The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. + * The number of installments that the payment amount should be charged with. Example: 5 > Only + * relevant for card payments in countries that support installments. * - * @param installmentsValue The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. - * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method chaining + * @param installmentsValue The number of installments that the payment amount should be charged + * with. Example: 5 > Only relevant for card payments in countries that support + * installments. + * @return the current {@code ResponseAdditionalDataInstallments} instance, allowing for method + * chaining */ public ResponseAdditionalDataInstallments installmentsValue(String installmentsValue) { this.installmentsValue = installmentsValue; @@ -446,8 +557,12 @@ public ResponseAdditionalDataInstallments installmentsValue(String installmentsV } /** - * The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. - * @return installmentsValue The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. + * The number of installments that the payment amount should be charged with. Example: 5 > Only + * relevant for card payments in countries that support installments. + * + * @return installmentsValue The number of installments that the payment amount should be charged + * with. Example: 5 > Only relevant for card payments in countries that support + * installments. */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -456,9 +571,12 @@ public String getInstallmentsValue() { } /** - * The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. + * The number of installments that the payment amount should be charged with. Example: 5 > Only + * relevant for card payments in countries that support installments. * - * @param installmentsValue The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. + * @param installmentsValue The number of installments that the payment amount should be charged + * with. Example: 5 > Only relevant for card payments in countries that support + * installments. */ @JsonProperty(JSON_PROPERTY_INSTALLMENTS_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -466,9 +584,7 @@ public void setInstallmentsValue(String installmentsValue) { this.installmentsValue = installmentsValue; } - /** - * Return true if this ResponseAdditionalDataInstallments object is equal to o. - */ + /** Return true if this ResponseAdditionalDataInstallments object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -477,49 +593,112 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResponseAdditionalDataInstallments responseAdditionalDataInstallments = (ResponseAdditionalDataInstallments) o; - return Objects.equals(this.installmentPaymentDataInstallmentType, responseAdditionalDataInstallments.installmentPaymentDataInstallmentType) && - Objects.equals(this.installmentPaymentDataOptionItemNrAnnualPercentageRate, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrAnnualPercentageRate) && - Objects.equals(this.installmentPaymentDataOptionItemNrFirstInstallmentAmount, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrFirstInstallmentAmount) && - Objects.equals(this.installmentPaymentDataOptionItemNrInstallmentFee, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrInstallmentFee) && - Objects.equals(this.installmentPaymentDataOptionItemNrInterestRate, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrInterestRate) && - Objects.equals(this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) && - Objects.equals(this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) && - Objects.equals(this.installmentPaymentDataOptionItemNrNumberOfInstallments, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrNumberOfInstallments) && - Objects.equals(this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) && - Objects.equals(this.installmentPaymentDataOptionItemNrTotalAmountDue, responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrTotalAmountDue) && - Objects.equals(this.installmentPaymentDataPaymentOptions, responseAdditionalDataInstallments.installmentPaymentDataPaymentOptions) && - Objects.equals(this.installmentsValue, responseAdditionalDataInstallments.installmentsValue); + ResponseAdditionalDataInstallments responseAdditionalDataInstallments = + (ResponseAdditionalDataInstallments) o; + return Objects.equals( + this.installmentPaymentDataInstallmentType, + responseAdditionalDataInstallments.installmentPaymentDataInstallmentType) + && Objects.equals( + this.installmentPaymentDataOptionItemNrAnnualPercentageRate, + responseAdditionalDataInstallments + .installmentPaymentDataOptionItemNrAnnualPercentageRate) + && Objects.equals( + this.installmentPaymentDataOptionItemNrFirstInstallmentAmount, + responseAdditionalDataInstallments + .installmentPaymentDataOptionItemNrFirstInstallmentAmount) + && Objects.equals( + this.installmentPaymentDataOptionItemNrInstallmentFee, + responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrInstallmentFee) + && Objects.equals( + this.installmentPaymentDataOptionItemNrInterestRate, + responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrInterestRate) + && Objects.equals( + this.installmentPaymentDataOptionItemNrMaximumNumberOfInstallments, + responseAdditionalDataInstallments + .installmentPaymentDataOptionItemNrMaximumNumberOfInstallments) + && Objects.equals( + this.installmentPaymentDataOptionItemNrMinimumNumberOfInstallments, + responseAdditionalDataInstallments + .installmentPaymentDataOptionItemNrMinimumNumberOfInstallments) + && Objects.equals( + this.installmentPaymentDataOptionItemNrNumberOfInstallments, + responseAdditionalDataInstallments + .installmentPaymentDataOptionItemNrNumberOfInstallments) + && Objects.equals( + this.installmentPaymentDataOptionItemNrSubsequentInstallmentAmount, + responseAdditionalDataInstallments + .installmentPaymentDataOptionItemNrSubsequentInstallmentAmount) + && Objects.equals( + this.installmentPaymentDataOptionItemNrTotalAmountDue, + responseAdditionalDataInstallments.installmentPaymentDataOptionItemNrTotalAmountDue) + && Objects.equals( + this.installmentPaymentDataPaymentOptions, + responseAdditionalDataInstallments.installmentPaymentDataPaymentOptions) + && Objects.equals( + this.installmentsValue, responseAdditionalDataInstallments.installmentsValue); } @Override public int hashCode() { - return Objects.hash(installmentPaymentDataInstallmentType, installmentPaymentDataOptionItemNrAnnualPercentageRate, installmentPaymentDataOptionItemNrFirstInstallmentAmount, installmentPaymentDataOptionItemNrInstallmentFee, installmentPaymentDataOptionItemNrInterestRate, installmentPaymentDataOptionItemNrMaximumNumberOfInstallments, installmentPaymentDataOptionItemNrMinimumNumberOfInstallments, installmentPaymentDataOptionItemNrNumberOfInstallments, installmentPaymentDataOptionItemNrSubsequentInstallmentAmount, installmentPaymentDataOptionItemNrTotalAmountDue, installmentPaymentDataPaymentOptions, installmentsValue); + return Objects.hash( + installmentPaymentDataInstallmentType, + installmentPaymentDataOptionItemNrAnnualPercentageRate, + installmentPaymentDataOptionItemNrFirstInstallmentAmount, + installmentPaymentDataOptionItemNrInstallmentFee, + installmentPaymentDataOptionItemNrInterestRate, + installmentPaymentDataOptionItemNrMaximumNumberOfInstallments, + installmentPaymentDataOptionItemNrMinimumNumberOfInstallments, + installmentPaymentDataOptionItemNrNumberOfInstallments, + installmentPaymentDataOptionItemNrSubsequentInstallmentAmount, + installmentPaymentDataOptionItemNrTotalAmountDue, + installmentPaymentDataPaymentOptions, + installmentsValue); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataInstallments {\n"); - sb.append(" installmentPaymentDataInstallmentType: ").append(toIndentedString(installmentPaymentDataInstallmentType)).append("\n"); - sb.append(" installmentPaymentDataOptionItemNrAnnualPercentageRate: ").append(toIndentedString(installmentPaymentDataOptionItemNrAnnualPercentageRate)).append("\n"); - sb.append(" installmentPaymentDataOptionItemNrFirstInstallmentAmount: ").append(toIndentedString(installmentPaymentDataOptionItemNrFirstInstallmentAmount)).append("\n"); - sb.append(" installmentPaymentDataOptionItemNrInstallmentFee: ").append(toIndentedString(installmentPaymentDataOptionItemNrInstallmentFee)).append("\n"); - sb.append(" installmentPaymentDataOptionItemNrInterestRate: ").append(toIndentedString(installmentPaymentDataOptionItemNrInterestRate)).append("\n"); - sb.append(" installmentPaymentDataOptionItemNrMaximumNumberOfInstallments: ").append(toIndentedString(installmentPaymentDataOptionItemNrMaximumNumberOfInstallments)).append("\n"); - sb.append(" installmentPaymentDataOptionItemNrMinimumNumberOfInstallments: ").append(toIndentedString(installmentPaymentDataOptionItemNrMinimumNumberOfInstallments)).append("\n"); - sb.append(" installmentPaymentDataOptionItemNrNumberOfInstallments: ").append(toIndentedString(installmentPaymentDataOptionItemNrNumberOfInstallments)).append("\n"); - sb.append(" installmentPaymentDataOptionItemNrSubsequentInstallmentAmount: ").append(toIndentedString(installmentPaymentDataOptionItemNrSubsequentInstallmentAmount)).append("\n"); - sb.append(" installmentPaymentDataOptionItemNrTotalAmountDue: ").append(toIndentedString(installmentPaymentDataOptionItemNrTotalAmountDue)).append("\n"); - sb.append(" installmentPaymentDataPaymentOptions: ").append(toIndentedString(installmentPaymentDataPaymentOptions)).append("\n"); + sb.append(" installmentPaymentDataInstallmentType: ") + .append(toIndentedString(installmentPaymentDataInstallmentType)) + .append("\n"); + sb.append(" installmentPaymentDataOptionItemNrAnnualPercentageRate: ") + .append(toIndentedString(installmentPaymentDataOptionItemNrAnnualPercentageRate)) + .append("\n"); + sb.append(" installmentPaymentDataOptionItemNrFirstInstallmentAmount: ") + .append(toIndentedString(installmentPaymentDataOptionItemNrFirstInstallmentAmount)) + .append("\n"); + sb.append(" installmentPaymentDataOptionItemNrInstallmentFee: ") + .append(toIndentedString(installmentPaymentDataOptionItemNrInstallmentFee)) + .append("\n"); + sb.append(" installmentPaymentDataOptionItemNrInterestRate: ") + .append(toIndentedString(installmentPaymentDataOptionItemNrInterestRate)) + .append("\n"); + sb.append(" installmentPaymentDataOptionItemNrMaximumNumberOfInstallments: ") + .append(toIndentedString(installmentPaymentDataOptionItemNrMaximumNumberOfInstallments)) + .append("\n"); + sb.append(" installmentPaymentDataOptionItemNrMinimumNumberOfInstallments: ") + .append(toIndentedString(installmentPaymentDataOptionItemNrMinimumNumberOfInstallments)) + .append("\n"); + sb.append(" installmentPaymentDataOptionItemNrNumberOfInstallments: ") + .append(toIndentedString(installmentPaymentDataOptionItemNrNumberOfInstallments)) + .append("\n"); + sb.append(" installmentPaymentDataOptionItemNrSubsequentInstallmentAmount: ") + .append(toIndentedString(installmentPaymentDataOptionItemNrSubsequentInstallmentAmount)) + .append("\n"); + sb.append(" installmentPaymentDataOptionItemNrTotalAmountDue: ") + .append(toIndentedString(installmentPaymentDataOptionItemNrTotalAmountDue)) + .append("\n"); + sb.append(" installmentPaymentDataPaymentOptions: ") + .append(toIndentedString(installmentPaymentDataPaymentOptions)) + .append("\n"); sb.append(" installmentsValue: ").append(toIndentedString(installmentsValue)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -528,21 +707,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResponseAdditionalDataInstallments given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataInstallments - * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataInstallments + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ResponseAdditionalDataInstallments */ - public static ResponseAdditionalDataInstallments fromJson(String jsonString) throws JsonProcessingException { + public static ResponseAdditionalDataInstallments fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataInstallments.class); } -/** - * Convert an instance of ResponseAdditionalDataInstallments to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResponseAdditionalDataInstallments to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataNetworkTokens.java b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataNetworkTokens.java index f160fc653..57da253e6 100644 --- a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataNetworkTokens.java +++ b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataNetworkTokens.java @@ -2,37 +2,27 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ResponseAdditionalDataNetworkTokens - */ +/** ResponseAdditionalDataNetworkTokens */ @JsonPropertyOrder({ ResponseAdditionalDataNetworkTokens.JSON_PROPERTY_NETWORK_TOKEN_AVAILABLE, ResponseAdditionalDataNetworkTokens.JSON_PROPERTY_NETWORK_TOKEN_BIN, ResponseAdditionalDataNetworkTokens.JSON_PROPERTY_NETWORK_TOKEN_TOKEN_SUMMARY }) - public class ResponseAdditionalDataNetworkTokens { public static final String JSON_PROPERTY_NETWORK_TOKEN_AVAILABLE = "networkToken.available"; private String networkTokenAvailable; @@ -40,17 +30,19 @@ public class ResponseAdditionalDataNetworkTokens { public static final String JSON_PROPERTY_NETWORK_TOKEN_BIN = "networkToken.bin"; private String networkTokenBin; - public static final String JSON_PROPERTY_NETWORK_TOKEN_TOKEN_SUMMARY = "networkToken.tokenSummary"; + public static final String JSON_PROPERTY_NETWORK_TOKEN_TOKEN_SUMMARY = + "networkToken.tokenSummary"; private String networkTokenTokenSummary; - public ResponseAdditionalDataNetworkTokens() { - } + public ResponseAdditionalDataNetworkTokens() {} /** * Indicates whether a network token is available for the specified card. * - * @param networkTokenAvailable Indicates whether a network token is available for the specified card. - * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method chaining + * @param networkTokenAvailable Indicates whether a network token is available for the specified + * card. + * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method + * chaining */ public ResponseAdditionalDataNetworkTokens networkTokenAvailable(String networkTokenAvailable) { this.networkTokenAvailable = networkTokenAvailable; @@ -59,7 +51,9 @@ public ResponseAdditionalDataNetworkTokens networkTokenAvailable(String networkT /** * Indicates whether a network token is available for the specified card. - * @return networkTokenAvailable Indicates whether a network token is available for the specified card. + * + * @return networkTokenAvailable Indicates whether a network token is available for the specified + * card. */ @JsonProperty(JSON_PROPERTY_NETWORK_TOKEN_AVAILABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,7 +64,8 @@ public String getNetworkTokenAvailable() { /** * Indicates whether a network token is available for the specified card. * - * @param networkTokenAvailable Indicates whether a network token is available for the specified card. + * @param networkTokenAvailable Indicates whether a network token is available for the specified + * card. */ @JsonProperty(JSON_PROPERTY_NETWORK_TOKEN_AVAILABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,10 +74,13 @@ public void setNetworkTokenAvailable(String networkTokenAvailable) { } /** - * The Bank Identification Number of a tokenized card, which is the first six digits of a card number. + * The Bank Identification Number of a tokenized card, which is the first six digits of a card + * number. * - * @param networkTokenBin The Bank Identification Number of a tokenized card, which is the first six digits of a card number. - * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method chaining + * @param networkTokenBin The Bank Identification Number of a tokenized card, which is the first + * six digits of a card number. + * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method + * chaining */ public ResponseAdditionalDataNetworkTokens networkTokenBin(String networkTokenBin) { this.networkTokenBin = networkTokenBin; @@ -90,8 +88,11 @@ public ResponseAdditionalDataNetworkTokens networkTokenBin(String networkTokenBi } /** - * The Bank Identification Number of a tokenized card, which is the first six digits of a card number. - * @return networkTokenBin The Bank Identification Number of a tokenized card, which is the first six digits of a card number. + * The Bank Identification Number of a tokenized card, which is the first six digits of a card + * number. + * + * @return networkTokenBin The Bank Identification Number of a tokenized card, which is the first + * six digits of a card number. */ @JsonProperty(JSON_PROPERTY_NETWORK_TOKEN_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,9 +101,11 @@ public String getNetworkTokenBin() { } /** - * The Bank Identification Number of a tokenized card, which is the first six digits of a card number. + * The Bank Identification Number of a tokenized card, which is the first six digits of a card + * number. * - * @param networkTokenBin The Bank Identification Number of a tokenized card, which is the first six digits of a card number. + * @param networkTokenBin The Bank Identification Number of a tokenized card, which is the first + * six digits of a card number. */ @JsonProperty(JSON_PROPERTY_NETWORK_TOKEN_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,15 +117,18 @@ public void setNetworkTokenBin(String networkTokenBin) { * The last four digits of a network token. * * @param networkTokenTokenSummary The last four digits of a network token. - * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method chaining + * @return the current {@code ResponseAdditionalDataNetworkTokens} instance, allowing for method + * chaining */ - public ResponseAdditionalDataNetworkTokens networkTokenTokenSummary(String networkTokenTokenSummary) { + public ResponseAdditionalDataNetworkTokens networkTokenTokenSummary( + String networkTokenTokenSummary) { this.networkTokenTokenSummary = networkTokenTokenSummary; return this; } /** * The last four digits of a network token. + * * @return networkTokenTokenSummary The last four digits of a network token. */ @JsonProperty(JSON_PROPERTY_NETWORK_TOKEN_TOKEN_SUMMARY) @@ -142,9 +148,7 @@ public void setNetworkTokenTokenSummary(String networkTokenTokenSummary) { this.networkTokenTokenSummary = networkTokenTokenSummary; } - /** - * Return true if this ResponseAdditionalDataNetworkTokens object is equal to o. - */ + /** Return true if this ResponseAdditionalDataNetworkTokens object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -153,10 +157,14 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResponseAdditionalDataNetworkTokens responseAdditionalDataNetworkTokens = (ResponseAdditionalDataNetworkTokens) o; - return Objects.equals(this.networkTokenAvailable, responseAdditionalDataNetworkTokens.networkTokenAvailable) && - Objects.equals(this.networkTokenBin, responseAdditionalDataNetworkTokens.networkTokenBin) && - Objects.equals(this.networkTokenTokenSummary, responseAdditionalDataNetworkTokens.networkTokenTokenSummary); + ResponseAdditionalDataNetworkTokens responseAdditionalDataNetworkTokens = + (ResponseAdditionalDataNetworkTokens) o; + return Objects.equals( + this.networkTokenAvailable, responseAdditionalDataNetworkTokens.networkTokenAvailable) + && Objects.equals(this.networkTokenBin, responseAdditionalDataNetworkTokens.networkTokenBin) + && Objects.equals( + this.networkTokenTokenSummary, + responseAdditionalDataNetworkTokens.networkTokenTokenSummary); } @Override @@ -168,16 +176,19 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataNetworkTokens {\n"); - sb.append(" networkTokenAvailable: ").append(toIndentedString(networkTokenAvailable)).append("\n"); + sb.append(" networkTokenAvailable: ") + .append(toIndentedString(networkTokenAvailable)) + .append("\n"); sb.append(" networkTokenBin: ").append(toIndentedString(networkTokenBin)).append("\n"); - sb.append(" networkTokenTokenSummary: ").append(toIndentedString(networkTokenTokenSummary)).append("\n"); + sb.append(" networkTokenTokenSummary: ") + .append(toIndentedString(networkTokenTokenSummary)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +197,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResponseAdditionalDataNetworkTokens given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataNetworkTokens - * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataNetworkTokens + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ResponseAdditionalDataNetworkTokens */ - public static ResponseAdditionalDataNetworkTokens fromJson(String jsonString) throws JsonProcessingException { + public static ResponseAdditionalDataNetworkTokens fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataNetworkTokens.class); } -/** - * Convert an instance of ResponseAdditionalDataNetworkTokens to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResponseAdditionalDataNetworkTokens to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataOpi.java b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataOpi.java index 145c18119..093cda90f 100644 --- a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataOpi.java +++ b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataOpi.java @@ -2,46 +2,41 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ResponseAdditionalDataOpi - */ -@JsonPropertyOrder({ - ResponseAdditionalDataOpi.JSON_PROPERTY_OPI_TRANS_TOKEN -}) - +/** ResponseAdditionalDataOpi */ +@JsonPropertyOrder({ResponseAdditionalDataOpi.JSON_PROPERTY_OPI_TRANS_TOKEN}) public class ResponseAdditionalDataOpi { public static final String JSON_PROPERTY_OPI_TRANS_TOKEN = "opi.transToken"; private String opiTransToken; - public ResponseAdditionalDataOpi() { - } + public ResponseAdditionalDataOpi() {} /** - * Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * Returned in the response if you included `opi.includeTransToken: true` in an + * ecommerce payment request. This contains an Oracle Payment Interface token that you can store + * in your Oracle Opera database to identify tokenized ecommerce transactions. For more + * information and required settings, see [Oracle + * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). * - * @param opiTransToken Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * @param opiTransToken Returned in the response if you included `opi.includeTransToken: + * true` in an ecommerce payment request. This contains an Oracle Payment Interface token + * that you can store in your Oracle Opera database to identify tokenized ecommerce + * transactions. For more information and required settings, see [Oracle + * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). * @return the current {@code ResponseAdditionalDataOpi} instance, allowing for method chaining */ public ResponseAdditionalDataOpi opiTransToken(String opiTransToken) { @@ -50,8 +45,17 @@ public ResponseAdditionalDataOpi opiTransToken(String opiTransToken) { } /** - * Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). - * @return opiTransToken Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * Returned in the response if you included `opi.includeTransToken: true` in an + * ecommerce payment request. This contains an Oracle Payment Interface token that you can store + * in your Oracle Opera database to identify tokenized ecommerce transactions. For more + * information and required settings, see [Oracle + * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * + * @return opiTransToken Returned in the response if you included `opi.includeTransToken: + * true` in an ecommerce payment request. This contains an Oracle Payment Interface token + * that you can store in your Oracle Opera database to identify tokenized ecommerce + * transactions. For more information and required settings, see [Oracle + * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). */ @JsonProperty(JSON_PROPERTY_OPI_TRANS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,9 +64,17 @@ public String getOpiTransToken() { } /** - * Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * Returned in the response if you included `opi.includeTransToken: true` in an + * ecommerce payment request. This contains an Oracle Payment Interface token that you can store + * in your Oracle Opera database to identify tokenized ecommerce transactions. For more + * information and required settings, see [Oracle + * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). * - * @param opiTransToken Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + * @param opiTransToken Returned in the response if you included `opi.includeTransToken: + * true` in an ecommerce payment request. This contains an Oracle Payment Interface token + * that you can store in your Oracle Opera database to identify tokenized ecommerce + * transactions. For more information and required settings, see [Oracle + * Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). */ @JsonProperty(JSON_PROPERTY_OPI_TRANS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +82,7 @@ public void setOpiTransToken(String opiTransToken) { this.opiTransToken = opiTransToken; } - /** - * Return true if this ResponseAdditionalDataOpi object is equal to o. - */ + /** Return true if this ResponseAdditionalDataOpi object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +110,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +119,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResponseAdditionalDataOpi given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataOpi - * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataOpi + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ResponseAdditionalDataOpi */ - public static ResponseAdditionalDataOpi fromJson(String jsonString) throws JsonProcessingException { + public static ResponseAdditionalDataOpi fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataOpi.class); } -/** - * Convert an instance of ResponseAdditionalDataOpi to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResponseAdditionalDataOpi to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataSepa.java b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataSepa.java index f937c3ab5..3c69b1166 100644 --- a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataSepa.java +++ b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataSepa.java @@ -2,64 +2,57 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ResponseAdditionalDataSepa - */ +/** ResponseAdditionalDataSepa */ @JsonPropertyOrder({ ResponseAdditionalDataSepa.JSON_PROPERTY_SEPADIRECTDEBIT_DATE_OF_SIGNATURE, ResponseAdditionalDataSepa.JSON_PROPERTY_SEPADIRECTDEBIT_MANDATE_ID, ResponseAdditionalDataSepa.JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE }) - public class ResponseAdditionalDataSepa { - public static final String JSON_PROPERTY_SEPADIRECTDEBIT_DATE_OF_SIGNATURE = "sepadirectdebit.dateOfSignature"; + public static final String JSON_PROPERTY_SEPADIRECTDEBIT_DATE_OF_SIGNATURE = + "sepadirectdebit.dateOfSignature"; private String sepadirectdebitDateOfSignature; public static final String JSON_PROPERTY_SEPADIRECTDEBIT_MANDATE_ID = "sepadirectdebit.mandateId"; private String sepadirectdebitMandateId; - public static final String JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE = "sepadirectdebit.sequenceType"; + public static final String JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE = + "sepadirectdebit.sequenceType"; private String sepadirectdebitSequenceType; - public ResponseAdditionalDataSepa() { - } + public ResponseAdditionalDataSepa() {} /** - * The transaction signature date. Format: yyyy-MM-dd + * The transaction signature date. Format: yyyy-MM-dd * - * @param sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd + * @param sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd * @return the current {@code ResponseAdditionalDataSepa} instance, allowing for method chaining */ - public ResponseAdditionalDataSepa sepadirectdebitDateOfSignature(String sepadirectdebitDateOfSignature) { + public ResponseAdditionalDataSepa sepadirectdebitDateOfSignature( + String sepadirectdebitDateOfSignature) { this.sepadirectdebitDateOfSignature = sepadirectdebitDateOfSignature; return this; } /** - * The transaction signature date. Format: yyyy-MM-dd - * @return sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd + * The transaction signature date. Format: yyyy-MM-dd + * + * @return sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_DATE_OF_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,9 +61,9 @@ public String getSepadirectdebitDateOfSignature() { } /** - * The transaction signature date. Format: yyyy-MM-dd + * The transaction signature date. Format: yyyy-MM-dd * - * @param sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd + * @param sepadirectdebitDateOfSignature The transaction signature date. Format: yyyy-MM-dd */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_DATE_OF_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -81,7 +74,8 @@ public void setSepadirectdebitDateOfSignature(String sepadirectdebitDateOfSignat /** * Its value corresponds to the pspReference value of the transaction. * - * @param sepadirectdebitMandateId Its value corresponds to the pspReference value of the transaction. + * @param sepadirectdebitMandateId Its value corresponds to the pspReference value of the + * transaction. * @return the current {@code ResponseAdditionalDataSepa} instance, allowing for method chaining */ public ResponseAdditionalDataSepa sepadirectdebitMandateId(String sepadirectdebitMandateId) { @@ -91,7 +85,9 @@ public ResponseAdditionalDataSepa sepadirectdebitMandateId(String sepadirectdebi /** * Its value corresponds to the pspReference value of the transaction. - * @return sepadirectdebitMandateId Its value corresponds to the pspReference value of the transaction. + * + * @return sepadirectdebitMandateId Its value corresponds to the pspReference value of the + * transaction. */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_MANDATE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,7 +98,8 @@ public String getSepadirectdebitMandateId() { /** * Its value corresponds to the pspReference value of the transaction. * - * @param sepadirectdebitMandateId Its value corresponds to the pspReference value of the transaction. + * @param sepadirectdebitMandateId Its value corresponds to the pspReference value of the + * transaction. */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_MANDATE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,19 +108,39 @@ public void setSepadirectdebitMandateId(String sepadirectdebitMandateId) { } /** - * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF + * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to + * initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a + * series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out + * regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final + * collection in a series of direct debit instructions. Example: OOFF * - * @param sepadirectdebitSequenceType This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF + * @param sepadirectdebitSequenceType This field can take one of the following values: * OneOff: + * (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: + * (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: + * (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by + * the creditor. * Final: (FNAL) Last/final collection in a series of direct debit + * instructions. Example: OOFF * @return the current {@code ResponseAdditionalDataSepa} instance, allowing for method chaining */ - public ResponseAdditionalDataSepa sepadirectdebitSequenceType(String sepadirectdebitSequenceType) { + public ResponseAdditionalDataSepa sepadirectdebitSequenceType( + String sepadirectdebitSequenceType) { this.sepadirectdebitSequenceType = sepadirectdebitSequenceType; return this; } /** - * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF - * @return sepadirectdebitSequenceType This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF + * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to + * initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a + * series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out + * regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final + * collection in a series of direct debit instructions. Example: OOFF + * + * @return sepadirectdebitSequenceType This field can take one of the following values: * OneOff: + * (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: + * (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: + * (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by + * the creditor. * Final: (FNAL) Last/final collection in a series of direct debit + * instructions. Example: OOFF */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,9 +149,18 @@ public String getSepadirectdebitSequenceType() { } /** - * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF + * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to + * initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a + * series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out + * regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final + * collection in a series of direct debit instructions. Example: OOFF * - * @param sepadirectdebitSequenceType This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF + * @param sepadirectdebitSequenceType This field can take one of the following values: * OneOff: + * (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: + * (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: + * (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by + * the creditor. * Final: (FNAL) Last/final collection in a series of direct debit + * instructions. Example: OOFF */ @JsonProperty(JSON_PROPERTY_SEPADIRECTDEBIT_SEQUENCE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +168,7 @@ public void setSepadirectdebitSequenceType(String sepadirectdebitSequenceType) { this.sepadirectdebitSequenceType = sepadirectdebitSequenceType; } - /** - * Return true if this ResponseAdditionalDataSepa object is equal to o. - */ + /** Return true if this ResponseAdditionalDataSepa object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,30 +178,41 @@ public boolean equals(Object o) { return false; } ResponseAdditionalDataSepa responseAdditionalDataSepa = (ResponseAdditionalDataSepa) o; - return Objects.equals(this.sepadirectdebitDateOfSignature, responseAdditionalDataSepa.sepadirectdebitDateOfSignature) && - Objects.equals(this.sepadirectdebitMandateId, responseAdditionalDataSepa.sepadirectdebitMandateId) && - Objects.equals(this.sepadirectdebitSequenceType, responseAdditionalDataSepa.sepadirectdebitSequenceType); + return Objects.equals( + this.sepadirectdebitDateOfSignature, + responseAdditionalDataSepa.sepadirectdebitDateOfSignature) + && Objects.equals( + this.sepadirectdebitMandateId, responseAdditionalDataSepa.sepadirectdebitMandateId) + && Objects.equals( + this.sepadirectdebitSequenceType, + responseAdditionalDataSepa.sepadirectdebitSequenceType); } @Override public int hashCode() { - return Objects.hash(sepadirectdebitDateOfSignature, sepadirectdebitMandateId, sepadirectdebitSequenceType); + return Objects.hash( + sepadirectdebitDateOfSignature, sepadirectdebitMandateId, sepadirectdebitSequenceType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataSepa {\n"); - sb.append(" sepadirectdebitDateOfSignature: ").append(toIndentedString(sepadirectdebitDateOfSignature)).append("\n"); - sb.append(" sepadirectdebitMandateId: ").append(toIndentedString(sepadirectdebitMandateId)).append("\n"); - sb.append(" sepadirectdebitSequenceType: ").append(toIndentedString(sepadirectdebitSequenceType)).append("\n"); + sb.append(" sepadirectdebitDateOfSignature: ") + .append(toIndentedString(sepadirectdebitDateOfSignature)) + .append("\n"); + sb.append(" sepadirectdebitMandateId: ") + .append(toIndentedString(sepadirectdebitMandateId)) + .append("\n"); + sb.append(" sepadirectdebitSequenceType: ") + .append(toIndentedString(sepadirectdebitSequenceType)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +221,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResponseAdditionalDataSepa given an JSON string * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataSepa - * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataSepa + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ResponseAdditionalDataSepa */ - public static ResponseAdditionalDataSepa fromJson(String jsonString) throws JsonProcessingException { + public static ResponseAdditionalDataSepa fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataSepa.class); } -/** - * Convert an instance of ResponseAdditionalDataSepa to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResponseAdditionalDataSepa to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/ServiceError.java b/src/main/java/com/adyen/model/payout/ServiceError.java index 022550e54..8568af83c 100644 --- a/src/main/java/com/adyen/model/payout/ServiceError.java +++ b/src/main/java/com/adyen/model/payout/ServiceError.java @@ -2,33 +2,24 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.HashMap; +import java.util.Map; - -/** - * ServiceError - */ +/** ServiceError */ @JsonPropertyOrder({ ServiceError.JSON_PROPERTY_ADDITIONAL_DATA, ServiceError.JSON_PROPERTY_ERROR_CODE, @@ -37,7 +28,6 @@ ServiceError.JSON_PROPERTY_PSP_REFERENCE, ServiceError.JSON_PROPERTY_STATUS }) - public class ServiceError { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -57,13 +47,15 @@ public class ServiceError { public static final String JSON_PROPERTY_STATUS = "status"; private Integer status; - public ServiceError() { - } + public ServiceError() {} /** - * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first. Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first. Go to **Customer Area** > **Developers** > + * **Additional data**. * @return the current {@code ServiceError} instance, allowing for method chaining */ public ServiceError additionalData(Map additionalData) { @@ -80,8 +72,12 @@ public ServiceError putAdditionalDataItem(String key, String additionalDataItem) } /** - * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. - * @return additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * + * @return additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first. Go to **Customer Area** > **Developers** > + * **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -90,9 +86,12 @@ public Map getAdditionalData() { } /** - * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first. Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first. Go to **Customer Area** > **Developers** > + * **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,6 +112,7 @@ public ServiceError errorCode(String errorCode) { /** * The error code mapped to the error message. + * * @return errorCode The error code mapped to the error message. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -145,6 +145,7 @@ public ServiceError errorType(String errorType) { /** * The category of the error. + * * @return errorType The category of the error. */ @JsonProperty(JSON_PROPERTY_ERROR_TYPE) @@ -177,6 +178,7 @@ public ServiceError message(String message) { /** * A short explanation of the issue. + * * @return message A short explanation of the issue. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -209,6 +211,7 @@ public ServiceError pspReference(String pspReference) { /** * The PSP reference of the payment. + * * @return pspReference The PSP reference of the payment. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -241,6 +244,7 @@ public ServiceError status(Integer status) { /** * The HTTP response status. + * * @return status The HTTP response status. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -260,9 +264,7 @@ public void setStatus(Integer status) { this.status = status; } - /** - * Return true if this ServiceError object is equal to o. - */ + /** Return true if this ServiceError object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -272,12 +274,12 @@ public boolean equals(Object o) { return false; } ServiceError serviceError = (ServiceError) o; - return Objects.equals(this.additionalData, serviceError.additionalData) && - Objects.equals(this.errorCode, serviceError.errorCode) && - Objects.equals(this.errorType, serviceError.errorType) && - Objects.equals(this.message, serviceError.message) && - Objects.equals(this.pspReference, serviceError.pspReference) && - Objects.equals(this.status, serviceError.status); + return Objects.equals(this.additionalData, serviceError.additionalData) + && Objects.equals(this.errorCode, serviceError.errorCode) + && Objects.equals(this.errorType, serviceError.errorType) + && Objects.equals(this.message, serviceError.message) + && Objects.equals(this.pspReference, serviceError.pspReference) + && Objects.equals(this.status, serviceError.status); } @Override @@ -300,8 +302,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -310,7 +311,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ServiceError given an JSON string * * @param jsonString JSON string @@ -320,11 +321,12 @@ private String toIndentedString(Object o) { public static ServiceError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } -/** - * Convert an instance of ServiceError to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ServiceError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/StoreDetailAndSubmitRequest.java b/src/main/java/com/adyen/model/payout/StoreDetailAndSubmitRequest.java index 8c46c06b6..dfb7bac9b 100644 --- a/src/main/java/com/adyen/model/payout/StoreDetailAndSubmitRequest.java +++ b/src/main/java/com/adyen/model/payout/StoreDetailAndSubmitRequest.java @@ -2,40 +2,29 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.payout.Address; -import com.adyen.model.payout.Amount; -import com.adyen.model.payout.BankAccount; -import com.adyen.model.payout.Card; -import com.adyen.model.payout.Name; -import com.adyen.model.payout.Recurring; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; +import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * StoreDetailAndSubmitRequest - */ +/** StoreDetailAndSubmitRequest */ @JsonPropertyOrder({ StoreDetailAndSubmitRequest.JSON_PROPERTY_ADDITIONAL_DATA, StoreDetailAndSubmitRequest.JSON_PROPERTY_AMOUNT, @@ -57,7 +46,6 @@ StoreDetailAndSubmitRequest.JSON_PROPERTY_SOCIAL_SECURITY_NUMBER, StoreDetailAndSubmitRequest.JSON_PROPERTY_TELEPHONE_NUMBER }) - public class StoreDetailAndSubmitRequest { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -77,11 +65,8 @@ public class StoreDetailAndSubmitRequest { public static final String JSON_PROPERTY_DATE_OF_BIRTH = "dateOfBirth"; private LocalDate dateOfBirth; - /** - * The type of the entity the payout is processed for. - */ + /** The type of the entity the payout is processed for. */ public enum EntityTypeEnum { - NATURALPERSON(String.valueOf("NaturalPerson")), COMPANY(String.valueOf("Company")); @@ -91,7 +76,7 @@ public enum EntityTypeEnum { private String value; EntityTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -112,7 +97,11 @@ public static EntityTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("EntityTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(EntityTypeEnum.values())); + LOG.warning( + "EntityTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(EntityTypeEnum.values())); return null; } } @@ -156,13 +145,13 @@ public static EntityTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TELEPHONE_NUMBER = "telephoneNumber"; private String telephoneNumber; - public StoreDetailAndSubmitRequest() { - } + public StoreDetailAndSubmitRequest() {} /** * This field contains additional data, which may be required for a particular request. * - * @param additionalData This field contains additional data, which may be required for a particular request. + * @param additionalData This field contains additional data, which may be required for a + * particular request. * @return the current {@code StoreDetailAndSubmitRequest} instance, allowing for method chaining */ public StoreDetailAndSubmitRequest additionalData(Map additionalData) { @@ -180,7 +169,9 @@ public StoreDetailAndSubmitRequest putAdditionalDataItem(String key, String addi /** * This field contains additional data, which may be required for a particular request. - * @return additionalData This field contains additional data, which may be required for a particular request. + * + * @return additionalData This field contains additional data, which may be required for a + * particular request. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,7 +182,8 @@ public Map getAdditionalData() { /** * This field contains additional data, which may be required for a particular request. * - * @param additionalData This field contains additional data, which may be required for a particular request. + * @param additionalData This field contains additional data, which may be required for a + * particular request. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -202,7 +194,7 @@ public void setAdditionalData(Map additionalData) { /** * amount * - * @param amount + * @param amount * @return the current {@code StoreDetailAndSubmitRequest} instance, allowing for method chaining */ public StoreDetailAndSubmitRequest amount(Amount amount) { @@ -212,7 +204,8 @@ public StoreDetailAndSubmitRequest amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,7 +216,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -234,7 +227,7 @@ public void setAmount(Amount amount) { /** * bank * - * @param bank + * @param bank * @return the current {@code StoreDetailAndSubmitRequest} instance, allowing for method chaining */ public StoreDetailAndSubmitRequest bank(BankAccount bank) { @@ -244,7 +237,8 @@ public StoreDetailAndSubmitRequest bank(BankAccount bank) { /** * Get bank - * @return bank + * + * @return bank */ @JsonProperty(JSON_PROPERTY_BANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -255,7 +249,7 @@ public BankAccount getBank() { /** * bank * - * @param bank + * @param bank */ @JsonProperty(JSON_PROPERTY_BANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -266,7 +260,7 @@ public void setBank(BankAccount bank) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code StoreDetailAndSubmitRequest} instance, allowing for method chaining */ public StoreDetailAndSubmitRequest billingAddress(Address billingAddress) { @@ -276,7 +270,8 @@ public StoreDetailAndSubmitRequest billingAddress(Address billingAddress) { /** * Get billingAddress - * @return billingAddress + * + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -287,7 +282,7 @@ public Address getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -298,7 +293,7 @@ public void setBillingAddress(Address billingAddress) { /** * card * - * @param card + * @param card * @return the current {@code StoreDetailAndSubmitRequest} instance, allowing for method chaining */ public StoreDetailAndSubmitRequest card(Card card) { @@ -308,7 +303,8 @@ public StoreDetailAndSubmitRequest card(Card card) { /** * Get card - * @return card + * + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -319,7 +315,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -328,9 +324,13 @@ public void setCard(Card card) { } /** - * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. + * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD + * For Paysafecard it must be the same as used when registering the Paysafecard account. > This + * field is mandatory for natural persons. * - * @param dateOfBirth The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. + * @param dateOfBirth The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); + * example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the + * Paysafecard account. > This field is mandatory for natural persons. * @return the current {@code StoreDetailAndSubmitRequest} instance, allowing for method chaining */ public StoreDetailAndSubmitRequest dateOfBirth(LocalDate dateOfBirth) { @@ -339,8 +339,13 @@ public StoreDetailAndSubmitRequest dateOfBirth(LocalDate dateOfBirth) { } /** - * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. - * @return dateOfBirth The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. + * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD + * For Paysafecard it must be the same as used when registering the Paysafecard account. > This + * field is mandatory for natural persons. + * + * @return dateOfBirth The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); + * example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the + * Paysafecard account. > This field is mandatory for natural persons. */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -349,9 +354,13 @@ public LocalDate getDateOfBirth() { } /** - * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. + * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD + * For Paysafecard it must be the same as used when registering the Paysafecard account. > This + * field is mandatory for natural persons. * - * @param dateOfBirth The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. + * @param dateOfBirth The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); + * example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the + * Paysafecard account. > This field is mandatory for natural persons. */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -372,6 +381,7 @@ public StoreDetailAndSubmitRequest entityType(EntityTypeEnum entityType) { /** * The type of the entity the payout is processed for. + * * @return entityType The type of the entity the payout is processed for. */ @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) @@ -392,9 +402,11 @@ public void setEntityType(EntityTypeEnum entityType) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or + * negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be + * either positive or negative. * @return the current {@code StoreDetailAndSubmitRequest} instance, allowing for method chaining */ public StoreDetailAndSubmitRequest fraudOffset(Integer fraudOffset) { @@ -403,8 +415,11 @@ public StoreDetailAndSubmitRequest fraudOffset(Integer fraudOffset) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. - * @return fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or + * negative. + * + * @return fraudOffset An integer value that is added to the normal fraud score. The value can be + * either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -413,9 +428,11 @@ public Integer getFraudOffset() { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or + * negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be + * either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -426,7 +443,8 @@ public void setFraudOffset(Integer fraudOffset) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. * @return the current {@code StoreDetailAndSubmitRequest} instance, allowing for method chaining */ public StoreDetailAndSubmitRequest merchantAccount(String merchantAccount) { @@ -436,7 +454,9 @@ public StoreDetailAndSubmitRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * @return merchantAccount The merchant account identifier, with which you want to process the transaction. + * + * @return merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -447,7 +467,8 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -456,9 +477,11 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). + * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. + * 'NL'). * - * @param nationality The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). + * @param nationality The shopper's nationality. A valid value is an ISO 2-character country + * code (e.g. 'NL'). * @return the current {@code StoreDetailAndSubmitRequest} instance, allowing for method chaining */ public StoreDetailAndSubmitRequest nationality(String nationality) { @@ -467,8 +490,11 @@ public StoreDetailAndSubmitRequest nationality(String nationality) { } /** - * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). - * @return nationality The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). + * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. + * 'NL'). + * + * @return nationality The shopper's nationality. A valid value is an ISO 2-character country + * code (e.g. 'NL'). */ @JsonProperty(JSON_PROPERTY_NATIONALITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -477,9 +503,11 @@ public String getNationality() { } /** - * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). + * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. + * 'NL'). * - * @param nationality The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). + * @param nationality The shopper's nationality. A valid value is an ISO 2-character country + * code (e.g. 'NL'). */ @JsonProperty(JSON_PROPERTY_NATIONALITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -490,7 +518,7 @@ public void setNationality(String nationality) { /** * recurring * - * @param recurring + * @param recurring * @return the current {@code StoreDetailAndSubmitRequest} instance, allowing for method chaining */ public StoreDetailAndSubmitRequest recurring(Recurring recurring) { @@ -500,7 +528,8 @@ public StoreDetailAndSubmitRequest recurring(Recurring recurring) { /** * Get recurring - * @return recurring + * + * @return recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -511,7 +540,7 @@ public Recurring getRecurring() { /** * recurring * - * @param recurring + * @param recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -520,9 +549,13 @@ public void setRecurring(Recurring recurring) { } /** - * The merchant reference for this payment. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. + * The merchant reference for this payment. This reference will be used in all communication to + * the merchant about the status of the payout. Although it is a good idea to make sure it is + * unique, this is not a requirement. * - * @param reference The merchant reference for this payment. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. + * @param reference The merchant reference for this payment. This reference will be used in all + * communication to the merchant about the status of the payout. Although it is a good idea to + * make sure it is unique, this is not a requirement. * @return the current {@code StoreDetailAndSubmitRequest} instance, allowing for method chaining */ public StoreDetailAndSubmitRequest reference(String reference) { @@ -531,8 +564,13 @@ public StoreDetailAndSubmitRequest reference(String reference) { } /** - * The merchant reference for this payment. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. - * @return reference The merchant reference for this payment. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. + * The merchant reference for this payment. This reference will be used in all communication to + * the merchant about the status of the payout. Although it is a good idea to make sure it is + * unique, this is not a requirement. + * + * @return reference The merchant reference for this payment. This reference will be used in all + * communication to the merchant about the status of the payout. Although it is a good idea to + * make sure it is unique, this is not a requirement. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -541,9 +579,13 @@ public String getReference() { } /** - * The merchant reference for this payment. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. + * The merchant reference for this payment. This reference will be used in all communication to + * the merchant about the status of the payout. Although it is a good idea to make sure it is + * unique, this is not a requirement. * - * @param reference The merchant reference for this payment. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. + * @param reference The merchant reference for this payment. This reference will be used in all + * communication to the merchant about the status of the payout. Although it is a good idea to + * make sure it is unique, this is not a requirement. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -552,9 +594,11 @@ public void setReference(String reference) { } /** - * The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. + * The name of the brand to make a payout to. For Paysafecard it must be set to + * `paysafecard`. * - * @param selectedBrand The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. + * @param selectedBrand The name of the brand to make a payout to. For Paysafecard it must be set + * to `paysafecard`. * @return the current {@code StoreDetailAndSubmitRequest} instance, allowing for method chaining */ public StoreDetailAndSubmitRequest selectedBrand(String selectedBrand) { @@ -563,8 +607,11 @@ public StoreDetailAndSubmitRequest selectedBrand(String selectedBrand) { } /** - * The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. - * @return selectedBrand The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. + * The name of the brand to make a payout to. For Paysafecard it must be set to + * `paysafecard`. + * + * @return selectedBrand The name of the brand to make a payout to. For Paysafecard it must be set + * to `paysafecard`. */ @JsonProperty(JSON_PROPERTY_SELECTED_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -573,9 +620,11 @@ public String getSelectedBrand() { } /** - * The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. + * The name of the brand to make a payout to. For Paysafecard it must be set to + * `paysafecard`. * - * @param selectedBrand The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. + * @param selectedBrand The name of the brand to make a payout to. For Paysafecard it must be set + * to `paysafecard`. */ @JsonProperty(JSON_PROPERTY_SELECTED_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -596,6 +645,7 @@ public StoreDetailAndSubmitRequest shopperEmail(String shopperEmail) { /** * The shopper's email address. + * * @return shopperEmail The shopper's email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -618,7 +668,7 @@ public void setShopperEmail(String shopperEmail) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code StoreDetailAndSubmitRequest} instance, allowing for method chaining */ public StoreDetailAndSubmitRequest shopperName(Name shopperName) { @@ -628,7 +678,8 @@ public StoreDetailAndSubmitRequest shopperName(Name shopperName) { /** * Get shopperName - * @return shopperName + * + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -639,7 +690,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -660,6 +711,7 @@ public StoreDetailAndSubmitRequest shopperReference(String shopperReference) { /** * The shopper's reference for the payment transaction. + * * @return shopperReference The shopper's reference for the payment transaction. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @@ -680,9 +732,11 @@ public void setShopperReference(String shopperReference) { } /** - * The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). + * The description of this payout. This description is shown on the bank statement of the shopper + * (if this is supported by the chosen payment method). * - * @param shopperStatement The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). + * @param shopperStatement The description of this payout. This description is shown on the bank + * statement of the shopper (if this is supported by the chosen payment method). * @return the current {@code StoreDetailAndSubmitRequest} instance, allowing for method chaining */ public StoreDetailAndSubmitRequest shopperStatement(String shopperStatement) { @@ -691,8 +745,11 @@ public StoreDetailAndSubmitRequest shopperStatement(String shopperStatement) { } /** - * The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). - * @return shopperStatement The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). + * The description of this payout. This description is shown on the bank statement of the shopper + * (if this is supported by the chosen payment method). + * + * @return shopperStatement The description of this payout. This description is shown on the bank + * statement of the shopper (if this is supported by the chosen payment method). */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -701,9 +758,11 @@ public String getShopperStatement() { } /** - * The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). + * The description of this payout. This description is shown on the bank statement of the shopper + * (if this is supported by the chosen payment method). * - * @param shopperStatement The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). + * @param shopperStatement The description of this payout. This description is shown on the bank + * statement of the shopper (if this is supported by the chosen payment method). */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -724,6 +783,7 @@ public StoreDetailAndSubmitRequest socialSecurityNumber(String socialSecurityNum /** * The shopper's social security number. + * * @return socialSecurityNumber The shopper's social security number. */ @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER) @@ -756,6 +816,7 @@ public StoreDetailAndSubmitRequest telephoneNumber(String telephoneNumber) { /** * The shopper's phone number. + * * @return telephoneNumber The shopper's phone number. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @@ -775,9 +836,7 @@ public void setTelephoneNumber(String telephoneNumber) { this.telephoneNumber = telephoneNumber; } - /** - * Return true if this StoreDetailAndSubmitRequest object is equal to o. - */ + /** Return true if this StoreDetailAndSubmitRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -787,30 +846,50 @@ public boolean equals(Object o) { return false; } StoreDetailAndSubmitRequest storeDetailAndSubmitRequest = (StoreDetailAndSubmitRequest) o; - return Objects.equals(this.additionalData, storeDetailAndSubmitRequest.additionalData) && - Objects.equals(this.amount, storeDetailAndSubmitRequest.amount) && - Objects.equals(this.bank, storeDetailAndSubmitRequest.bank) && - Objects.equals(this.billingAddress, storeDetailAndSubmitRequest.billingAddress) && - Objects.equals(this.card, storeDetailAndSubmitRequest.card) && - Objects.equals(this.dateOfBirth, storeDetailAndSubmitRequest.dateOfBirth) && - Objects.equals(this.entityType, storeDetailAndSubmitRequest.entityType) && - Objects.equals(this.fraudOffset, storeDetailAndSubmitRequest.fraudOffset) && - Objects.equals(this.merchantAccount, storeDetailAndSubmitRequest.merchantAccount) && - Objects.equals(this.nationality, storeDetailAndSubmitRequest.nationality) && - Objects.equals(this.recurring, storeDetailAndSubmitRequest.recurring) && - Objects.equals(this.reference, storeDetailAndSubmitRequest.reference) && - Objects.equals(this.selectedBrand, storeDetailAndSubmitRequest.selectedBrand) && - Objects.equals(this.shopperEmail, storeDetailAndSubmitRequest.shopperEmail) && - Objects.equals(this.shopperName, storeDetailAndSubmitRequest.shopperName) && - Objects.equals(this.shopperReference, storeDetailAndSubmitRequest.shopperReference) && - Objects.equals(this.shopperStatement, storeDetailAndSubmitRequest.shopperStatement) && - Objects.equals(this.socialSecurityNumber, storeDetailAndSubmitRequest.socialSecurityNumber) && - Objects.equals(this.telephoneNumber, storeDetailAndSubmitRequest.telephoneNumber); + return Objects.equals(this.additionalData, storeDetailAndSubmitRequest.additionalData) + && Objects.equals(this.amount, storeDetailAndSubmitRequest.amount) + && Objects.equals(this.bank, storeDetailAndSubmitRequest.bank) + && Objects.equals(this.billingAddress, storeDetailAndSubmitRequest.billingAddress) + && Objects.equals(this.card, storeDetailAndSubmitRequest.card) + && Objects.equals(this.dateOfBirth, storeDetailAndSubmitRequest.dateOfBirth) + && Objects.equals(this.entityType, storeDetailAndSubmitRequest.entityType) + && Objects.equals(this.fraudOffset, storeDetailAndSubmitRequest.fraudOffset) + && Objects.equals(this.merchantAccount, storeDetailAndSubmitRequest.merchantAccount) + && Objects.equals(this.nationality, storeDetailAndSubmitRequest.nationality) + && Objects.equals(this.recurring, storeDetailAndSubmitRequest.recurring) + && Objects.equals(this.reference, storeDetailAndSubmitRequest.reference) + && Objects.equals(this.selectedBrand, storeDetailAndSubmitRequest.selectedBrand) + && Objects.equals(this.shopperEmail, storeDetailAndSubmitRequest.shopperEmail) + && Objects.equals(this.shopperName, storeDetailAndSubmitRequest.shopperName) + && Objects.equals(this.shopperReference, storeDetailAndSubmitRequest.shopperReference) + && Objects.equals(this.shopperStatement, storeDetailAndSubmitRequest.shopperStatement) + && Objects.equals( + this.socialSecurityNumber, storeDetailAndSubmitRequest.socialSecurityNumber) + && Objects.equals(this.telephoneNumber, storeDetailAndSubmitRequest.telephoneNumber); } @Override public int hashCode() { - return Objects.hash(additionalData, amount, bank, billingAddress, card, dateOfBirth, entityType, fraudOffset, merchantAccount, nationality, recurring, reference, selectedBrand, shopperEmail, shopperName, shopperReference, shopperStatement, socialSecurityNumber, telephoneNumber); + return Objects.hash( + additionalData, + amount, + bank, + billingAddress, + card, + dateOfBirth, + entityType, + fraudOffset, + merchantAccount, + nationality, + recurring, + reference, + selectedBrand, + shopperEmail, + shopperName, + shopperReference, + shopperStatement, + socialSecurityNumber, + telephoneNumber); } @Override @@ -834,15 +913,16 @@ public String toString() { sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append(" shopperStatement: ").append(toIndentedString(shopperStatement)).append("\n"); - sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); + sb.append(" socialSecurityNumber: ") + .append(toIndentedString(socialSecurityNumber)) + .append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -851,21 +931,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of StoreDetailAndSubmitRequest given an JSON string * * @param jsonString JSON string * @return An instance of StoreDetailAndSubmitRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to StoreDetailAndSubmitRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * StoreDetailAndSubmitRequest */ - public static StoreDetailAndSubmitRequest fromJson(String jsonString) throws JsonProcessingException { + public static StoreDetailAndSubmitRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoreDetailAndSubmitRequest.class); } -/** - * Convert an instance of StoreDetailAndSubmitRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of StoreDetailAndSubmitRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/StoreDetailAndSubmitResponse.java b/src/main/java/com/adyen/model/payout/StoreDetailAndSubmitResponse.java index b8b463167..930d3027d 100644 --- a/src/main/java/com/adyen/model/payout/StoreDetailAndSubmitResponse.java +++ b/src/main/java/com/adyen/model/payout/StoreDetailAndSubmitResponse.java @@ -2,40 +2,30 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.HashMap; +import java.util.Map; - -/** - * StoreDetailAndSubmitResponse - */ +/** StoreDetailAndSubmitResponse */ @JsonPropertyOrder({ StoreDetailAndSubmitResponse.JSON_PROPERTY_ADDITIONAL_DATA, StoreDetailAndSubmitResponse.JSON_PROPERTY_PSP_REFERENCE, StoreDetailAndSubmitResponse.JSON_PROPERTY_REFUSAL_REASON, StoreDetailAndSubmitResponse.JSON_PROPERTY_RESULT_CODE }) - public class StoreDetailAndSubmitResponse { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -49,13 +39,13 @@ public class StoreDetailAndSubmitResponse { public static final String JSON_PROPERTY_RESULT_CODE = "resultCode"; private String resultCode; - public StoreDetailAndSubmitResponse() { - } + public StoreDetailAndSubmitResponse() {} /** * This field contains additional data, which may be returned in a particular response. * - * @param additionalData This field contains additional data, which may be returned in a particular response. + * @param additionalData This field contains additional data, which may be returned in a + * particular response. * @return the current {@code StoreDetailAndSubmitResponse} instance, allowing for method chaining */ public StoreDetailAndSubmitResponse additionalData(Map additionalData) { @@ -73,7 +63,9 @@ public StoreDetailAndSubmitResponse putAdditionalDataItem(String key, String add /** * This field contains additional data, which may be returned in a particular response. - * @return additionalData This field contains additional data, which may be returned in a particular response. + * + * @return additionalData This field contains additional data, which may be returned in a + * particular response. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -84,7 +76,8 @@ public Map getAdditionalData() { /** * This field contains additional data, which may be returned in a particular response. * - * @param additionalData This field contains additional data, which may be returned in a particular response. + * @param additionalData This field contains additional data, which may be returned in a + * particular response. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,6 +98,7 @@ public StoreDetailAndSubmitResponse pspReference(String pspReference) { /** * A new reference to uniquely identify this request. + * * @return pspReference A new reference to uniquely identify this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -137,6 +131,7 @@ public StoreDetailAndSubmitResponse refusalReason(String refusalReason) { /** * In case of refusal, an informational message for the reason. + * * @return refusalReason In case of refusal, an informational message for the reason. */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @@ -157,9 +152,11 @@ public void setRefusalReason(String refusalReason) { } /** - * The response: * In case of success is payout-submit-received. * In case of an error, an informational message is returned. + * The response: * In case of success is payout-submit-received. * In case of an error, an + * informational message is returned. * - * @param resultCode The response: * In case of success is payout-submit-received. * In case of an error, an informational message is returned. + * @param resultCode The response: * In case of success is payout-submit-received. * In case of an + * error, an informational message is returned. * @return the current {@code StoreDetailAndSubmitResponse} instance, allowing for method chaining */ public StoreDetailAndSubmitResponse resultCode(String resultCode) { @@ -168,8 +165,11 @@ public StoreDetailAndSubmitResponse resultCode(String resultCode) { } /** - * The response: * In case of success is payout-submit-received. * In case of an error, an informational message is returned. - * @return resultCode The response: * In case of success is payout-submit-received. * In case of an error, an informational message is returned. + * The response: * In case of success is payout-submit-received. * In case of an error, an + * informational message is returned. + * + * @return resultCode The response: * In case of success is payout-submit-received. * In case of + * an error, an informational message is returned. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,9 +178,11 @@ public String getResultCode() { } /** - * The response: * In case of success is payout-submit-received. * In case of an error, an informational message is returned. + * The response: * In case of success is payout-submit-received. * In case of an error, an + * informational message is returned. * - * @param resultCode The response: * In case of success is payout-submit-received. * In case of an error, an informational message is returned. + * @param resultCode The response: * In case of success is payout-submit-received. * In case of an + * error, an informational message is returned. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,9 +190,7 @@ public void setResultCode(String resultCode) { this.resultCode = resultCode; } - /** - * Return true if this StoreDetailAndSubmitResponse object is equal to o. - */ + /** Return true if this StoreDetailAndSubmitResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -200,10 +200,10 @@ public boolean equals(Object o) { return false; } StoreDetailAndSubmitResponse storeDetailAndSubmitResponse = (StoreDetailAndSubmitResponse) o; - return Objects.equals(this.additionalData, storeDetailAndSubmitResponse.additionalData) && - Objects.equals(this.pspReference, storeDetailAndSubmitResponse.pspReference) && - Objects.equals(this.refusalReason, storeDetailAndSubmitResponse.refusalReason) && - Objects.equals(this.resultCode, storeDetailAndSubmitResponse.resultCode); + return Objects.equals(this.additionalData, storeDetailAndSubmitResponse.additionalData) + && Objects.equals(this.pspReference, storeDetailAndSubmitResponse.pspReference) + && Objects.equals(this.refusalReason, storeDetailAndSubmitResponse.refusalReason) + && Objects.equals(this.resultCode, storeDetailAndSubmitResponse.resultCode); } @Override @@ -224,8 +224,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -234,21 +233,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of StoreDetailAndSubmitResponse given an JSON string * * @param jsonString JSON string * @return An instance of StoreDetailAndSubmitResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to StoreDetailAndSubmitResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * StoreDetailAndSubmitResponse */ - public static StoreDetailAndSubmitResponse fromJson(String jsonString) throws JsonProcessingException { + public static StoreDetailAndSubmitResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoreDetailAndSubmitResponse.class); } -/** - * Convert an instance of StoreDetailAndSubmitResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of StoreDetailAndSubmitResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/StoreDetailRequest.java b/src/main/java/com/adyen/model/payout/StoreDetailRequest.java index 8c5c39bba..49902cce2 100644 --- a/src/main/java/com/adyen/model/payout/StoreDetailRequest.java +++ b/src/main/java/com/adyen/model/payout/StoreDetailRequest.java @@ -2,39 +2,29 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.payout.Address; -import com.adyen.model.payout.BankAccount; -import com.adyen.model.payout.Card; -import com.adyen.model.payout.Name; -import com.adyen.model.payout.Recurring; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; +import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * StoreDetailRequest - */ +/** StoreDetailRequest */ @JsonPropertyOrder({ StoreDetailRequest.JSON_PROPERTY_ADDITIONAL_DATA, StoreDetailRequest.JSON_PROPERTY_BANK, @@ -53,7 +43,6 @@ StoreDetailRequest.JSON_PROPERTY_SOCIAL_SECURITY_NUMBER, StoreDetailRequest.JSON_PROPERTY_TELEPHONE_NUMBER }) - public class StoreDetailRequest { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -70,11 +59,8 @@ public class StoreDetailRequest { public static final String JSON_PROPERTY_DATE_OF_BIRTH = "dateOfBirth"; private LocalDate dateOfBirth; - /** - * The type of the entity the payout is processed for. - */ + /** The type of the entity the payout is processed for. */ public enum EntityTypeEnum { - NATURALPERSON(String.valueOf("NaturalPerson")), COMPANY(String.valueOf("Company")); @@ -84,7 +70,7 @@ public enum EntityTypeEnum { private String value; EntityTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -105,7 +91,11 @@ public static EntityTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("EntityTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(EntityTypeEnum.values())); + LOG.warning( + "EntityTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(EntityTypeEnum.values())); return null; } } @@ -143,13 +133,13 @@ public static EntityTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TELEPHONE_NUMBER = "telephoneNumber"; private String telephoneNumber; - public StoreDetailRequest() { - } + public StoreDetailRequest() {} /** * This field contains additional data, which may be required for a particular request. * - * @param additionalData This field contains additional data, which may be required for a particular request. + * @param additionalData This field contains additional data, which may be required for a + * particular request. * @return the current {@code StoreDetailRequest} instance, allowing for method chaining */ public StoreDetailRequest additionalData(Map additionalData) { @@ -167,7 +157,9 @@ public StoreDetailRequest putAdditionalDataItem(String key, String additionalDat /** * This field contains additional data, which may be required for a particular request. - * @return additionalData This field contains additional data, which may be required for a particular request. + * + * @return additionalData This field contains additional data, which may be required for a + * particular request. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,7 +170,8 @@ public Map getAdditionalData() { /** * This field contains additional data, which may be required for a particular request. * - * @param additionalData This field contains additional data, which may be required for a particular request. + * @param additionalData This field contains additional data, which may be required for a + * particular request. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,7 +182,7 @@ public void setAdditionalData(Map additionalData) { /** * bank * - * @param bank + * @param bank * @return the current {@code StoreDetailRequest} instance, allowing for method chaining */ public StoreDetailRequest bank(BankAccount bank) { @@ -199,7 +192,8 @@ public StoreDetailRequest bank(BankAccount bank) { /** * Get bank - * @return bank + * + * @return bank */ @JsonProperty(JSON_PROPERTY_BANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -210,7 +204,7 @@ public BankAccount getBank() { /** * bank * - * @param bank + * @param bank */ @JsonProperty(JSON_PROPERTY_BANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,7 +215,7 @@ public void setBank(BankAccount bank) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code StoreDetailRequest} instance, allowing for method chaining */ public StoreDetailRequest billingAddress(Address billingAddress) { @@ -231,7 +225,8 @@ public StoreDetailRequest billingAddress(Address billingAddress) { /** * Get billingAddress - * @return billingAddress + * + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,7 +237,7 @@ public Address getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -253,7 +248,7 @@ public void setBillingAddress(Address billingAddress) { /** * card * - * @param card + * @param card * @return the current {@code StoreDetailRequest} instance, allowing for method chaining */ public StoreDetailRequest card(Card card) { @@ -263,7 +258,8 @@ public StoreDetailRequest card(Card card) { /** * Get card - * @return card + * + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -274,7 +270,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -283,9 +279,13 @@ public void setCard(Card card) { } /** - * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. + * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD + * For Paysafecard it must be the same as used when registering the Paysafecard account. > This + * field is mandatory for natural persons. * - * @param dateOfBirth The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. + * @param dateOfBirth The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); + * example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the + * Paysafecard account. > This field is mandatory for natural persons. * @return the current {@code StoreDetailRequest} instance, allowing for method chaining */ public StoreDetailRequest dateOfBirth(LocalDate dateOfBirth) { @@ -294,8 +294,13 @@ public StoreDetailRequest dateOfBirth(LocalDate dateOfBirth) { } /** - * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. - * @return dateOfBirth The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. + * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD + * For Paysafecard it must be the same as used when registering the Paysafecard account. > This + * field is mandatory for natural persons. + * + * @return dateOfBirth The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); + * example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the + * Paysafecard account. > This field is mandatory for natural persons. */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -304,9 +309,13 @@ public LocalDate getDateOfBirth() { } /** - * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. + * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD + * For Paysafecard it must be the same as used when registering the Paysafecard account. > This + * field is mandatory for natural persons. * - * @param dateOfBirth The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. + * @param dateOfBirth The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); + * example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the + * Paysafecard account. > This field is mandatory for natural persons. */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -327,6 +336,7 @@ public StoreDetailRequest entityType(EntityTypeEnum entityType) { /** * The type of the entity the payout is processed for. + * * @return entityType The type of the entity the payout is processed for. */ @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) @@ -347,9 +357,11 @@ public void setEntityType(EntityTypeEnum entityType) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or + * negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be + * either positive or negative. * @return the current {@code StoreDetailRequest} instance, allowing for method chaining */ public StoreDetailRequest fraudOffset(Integer fraudOffset) { @@ -358,8 +370,11 @@ public StoreDetailRequest fraudOffset(Integer fraudOffset) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. - * @return fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or + * negative. + * + * @return fraudOffset An integer value that is added to the normal fraud score. The value can be + * either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -368,9 +383,11 @@ public Integer getFraudOffset() { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or + * negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be + * either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -381,7 +398,8 @@ public void setFraudOffset(Integer fraudOffset) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. * @return the current {@code StoreDetailRequest} instance, allowing for method chaining */ public StoreDetailRequest merchantAccount(String merchantAccount) { @@ -391,7 +409,9 @@ public StoreDetailRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * @return merchantAccount The merchant account identifier, with which you want to process the transaction. + * + * @return merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -402,7 +422,8 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -411,9 +432,11 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). + * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. + * 'NL'). * - * @param nationality The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). + * @param nationality The shopper's nationality. A valid value is an ISO 2-character country + * code (e.g. 'NL'). * @return the current {@code StoreDetailRequest} instance, allowing for method chaining */ public StoreDetailRequest nationality(String nationality) { @@ -422,8 +445,11 @@ public StoreDetailRequest nationality(String nationality) { } /** - * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). - * @return nationality The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). + * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. + * 'NL'). + * + * @return nationality The shopper's nationality. A valid value is an ISO 2-character country + * code (e.g. 'NL'). */ @JsonProperty(JSON_PROPERTY_NATIONALITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -432,9 +458,11 @@ public String getNationality() { } /** - * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). + * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. + * 'NL'). * - * @param nationality The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). + * @param nationality The shopper's nationality. A valid value is an ISO 2-character country + * code (e.g. 'NL'). */ @JsonProperty(JSON_PROPERTY_NATIONALITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -445,7 +473,7 @@ public void setNationality(String nationality) { /** * recurring * - * @param recurring + * @param recurring * @return the current {@code StoreDetailRequest} instance, allowing for method chaining */ public StoreDetailRequest recurring(Recurring recurring) { @@ -455,7 +483,8 @@ public StoreDetailRequest recurring(Recurring recurring) { /** * Get recurring - * @return recurring + * + * @return recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -466,7 +495,7 @@ public Recurring getRecurring() { /** * recurring * - * @param recurring + * @param recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -475,9 +504,11 @@ public void setRecurring(Recurring recurring) { } /** - * The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. + * The name of the brand to make a payout to. For Paysafecard it must be set to + * `paysafecard`. * - * @param selectedBrand The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. + * @param selectedBrand The name of the brand to make a payout to. For Paysafecard it must be set + * to `paysafecard`. * @return the current {@code StoreDetailRequest} instance, allowing for method chaining */ public StoreDetailRequest selectedBrand(String selectedBrand) { @@ -486,8 +517,11 @@ public StoreDetailRequest selectedBrand(String selectedBrand) { } /** - * The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. - * @return selectedBrand The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. + * The name of the brand to make a payout to. For Paysafecard it must be set to + * `paysafecard`. + * + * @return selectedBrand The name of the brand to make a payout to. For Paysafecard it must be set + * to `paysafecard`. */ @JsonProperty(JSON_PROPERTY_SELECTED_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -496,9 +530,11 @@ public String getSelectedBrand() { } /** - * The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. + * The name of the brand to make a payout to. For Paysafecard it must be set to + * `paysafecard`. * - * @param selectedBrand The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. + * @param selectedBrand The name of the brand to make a payout to. For Paysafecard it must be set + * to `paysafecard`. */ @JsonProperty(JSON_PROPERTY_SELECTED_BRAND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -519,6 +555,7 @@ public StoreDetailRequest shopperEmail(String shopperEmail) { /** * The shopper's email address. + * * @return shopperEmail The shopper's email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -541,7 +578,7 @@ public void setShopperEmail(String shopperEmail) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code StoreDetailRequest} instance, allowing for method chaining */ public StoreDetailRequest shopperName(Name shopperName) { @@ -551,7 +588,8 @@ public StoreDetailRequest shopperName(Name shopperName) { /** * Get shopperName - * @return shopperName + * + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -562,7 +600,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -583,6 +621,7 @@ public StoreDetailRequest shopperReference(String shopperReference) { /** * The shopper's reference for the payment transaction. + * * @return shopperReference The shopper's reference for the payment transaction. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @@ -615,6 +654,7 @@ public StoreDetailRequest socialSecurityNumber(String socialSecurityNumber) { /** * The shopper's social security number. + * * @return socialSecurityNumber The shopper's social security number. */ @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER) @@ -647,6 +687,7 @@ public StoreDetailRequest telephoneNumber(String telephoneNumber) { /** * The shopper's phone number. + * * @return telephoneNumber The shopper's phone number. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @@ -666,9 +707,7 @@ public void setTelephoneNumber(String telephoneNumber) { this.telephoneNumber = telephoneNumber; } - /** - * Return true if this StoreDetailRequest object is equal to o. - */ + /** Return true if this StoreDetailRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -678,27 +717,43 @@ public boolean equals(Object o) { return false; } StoreDetailRequest storeDetailRequest = (StoreDetailRequest) o; - return Objects.equals(this.additionalData, storeDetailRequest.additionalData) && - Objects.equals(this.bank, storeDetailRequest.bank) && - Objects.equals(this.billingAddress, storeDetailRequest.billingAddress) && - Objects.equals(this.card, storeDetailRequest.card) && - Objects.equals(this.dateOfBirth, storeDetailRequest.dateOfBirth) && - Objects.equals(this.entityType, storeDetailRequest.entityType) && - Objects.equals(this.fraudOffset, storeDetailRequest.fraudOffset) && - Objects.equals(this.merchantAccount, storeDetailRequest.merchantAccount) && - Objects.equals(this.nationality, storeDetailRequest.nationality) && - Objects.equals(this.recurring, storeDetailRequest.recurring) && - Objects.equals(this.selectedBrand, storeDetailRequest.selectedBrand) && - Objects.equals(this.shopperEmail, storeDetailRequest.shopperEmail) && - Objects.equals(this.shopperName, storeDetailRequest.shopperName) && - Objects.equals(this.shopperReference, storeDetailRequest.shopperReference) && - Objects.equals(this.socialSecurityNumber, storeDetailRequest.socialSecurityNumber) && - Objects.equals(this.telephoneNumber, storeDetailRequest.telephoneNumber); + return Objects.equals(this.additionalData, storeDetailRequest.additionalData) + && Objects.equals(this.bank, storeDetailRequest.bank) + && Objects.equals(this.billingAddress, storeDetailRequest.billingAddress) + && Objects.equals(this.card, storeDetailRequest.card) + && Objects.equals(this.dateOfBirth, storeDetailRequest.dateOfBirth) + && Objects.equals(this.entityType, storeDetailRequest.entityType) + && Objects.equals(this.fraudOffset, storeDetailRequest.fraudOffset) + && Objects.equals(this.merchantAccount, storeDetailRequest.merchantAccount) + && Objects.equals(this.nationality, storeDetailRequest.nationality) + && Objects.equals(this.recurring, storeDetailRequest.recurring) + && Objects.equals(this.selectedBrand, storeDetailRequest.selectedBrand) + && Objects.equals(this.shopperEmail, storeDetailRequest.shopperEmail) + && Objects.equals(this.shopperName, storeDetailRequest.shopperName) + && Objects.equals(this.shopperReference, storeDetailRequest.shopperReference) + && Objects.equals(this.socialSecurityNumber, storeDetailRequest.socialSecurityNumber) + && Objects.equals(this.telephoneNumber, storeDetailRequest.telephoneNumber); } @Override public int hashCode() { - return Objects.hash(additionalData, bank, billingAddress, card, dateOfBirth, entityType, fraudOffset, merchantAccount, nationality, recurring, selectedBrand, shopperEmail, shopperName, shopperReference, socialSecurityNumber, telephoneNumber); + return Objects.hash( + additionalData, + bank, + billingAddress, + card, + dateOfBirth, + entityType, + fraudOffset, + merchantAccount, + nationality, + recurring, + selectedBrand, + shopperEmail, + shopperName, + shopperReference, + socialSecurityNumber, + telephoneNumber); } @Override @@ -719,15 +774,16 @@ public String toString() { sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); - sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); + sb.append(" socialSecurityNumber: ") + .append(toIndentedString(socialSecurityNumber)) + .append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -736,21 +792,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of StoreDetailRequest given an JSON string * * @param jsonString JSON string * @return An instance of StoreDetailRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to StoreDetailRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * StoreDetailRequest */ public static StoreDetailRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoreDetailRequest.class); } -/** - * Convert an instance of StoreDetailRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of StoreDetailRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/StoreDetailResponse.java b/src/main/java/com/adyen/model/payout/StoreDetailResponse.java index 3af26d41c..613623c40 100644 --- a/src/main/java/com/adyen/model/payout/StoreDetailResponse.java +++ b/src/main/java/com/adyen/model/payout/StoreDetailResponse.java @@ -2,40 +2,30 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.HashMap; +import java.util.Map; - -/** - * StoreDetailResponse - */ +/** StoreDetailResponse */ @JsonPropertyOrder({ StoreDetailResponse.JSON_PROPERTY_ADDITIONAL_DATA, StoreDetailResponse.JSON_PROPERTY_PSP_REFERENCE, StoreDetailResponse.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, StoreDetailResponse.JSON_PROPERTY_RESULT_CODE }) - public class StoreDetailResponse { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -49,13 +39,13 @@ public class StoreDetailResponse { public static final String JSON_PROPERTY_RESULT_CODE = "resultCode"; private String resultCode; - public StoreDetailResponse() { - } + public StoreDetailResponse() {} /** * This field contains additional data, which may be returned in a particular response. * - * @param additionalData This field contains additional data, which may be returned in a particular response. + * @param additionalData This field contains additional data, which may be returned in a + * particular response. * @return the current {@code StoreDetailResponse} instance, allowing for method chaining */ public StoreDetailResponse additionalData(Map additionalData) { @@ -73,7 +63,9 @@ public StoreDetailResponse putAdditionalDataItem(String key, String additionalDa /** * This field contains additional data, which may be returned in a particular response. - * @return additionalData This field contains additional data, which may be returned in a particular response. + * + * @return additionalData This field contains additional data, which may be returned in a + * particular response. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -84,7 +76,8 @@ public Map getAdditionalData() { /** * This field contains additional data, which may be returned in a particular response. * - * @param additionalData This field contains additional data, which may be returned in a particular response. + * @param additionalData This field contains additional data, which may be returned in a + * particular response. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,6 +98,7 @@ public StoreDetailResponse pspReference(String pspReference) { /** * A new reference to uniquely identify this request. + * * @return pspReference A new reference to uniquely identify this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -137,7 +131,9 @@ public StoreDetailResponse recurringDetailReference(String recurringDetailRefere /** * The token which you can use later on for submitting the payout. - * @return recurringDetailReference The token which you can use later on for submitting the payout. + * + * @return recurringDetailReference The token which you can use later on for submitting the + * payout. */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -157,9 +153,11 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * The result code of the transaction. `Success` indicates that the details were stored successfully. + * The result code of the transaction. `Success` indicates that the details were stored + * successfully. * - * @param resultCode The result code of the transaction. `Success` indicates that the details were stored successfully. + * @param resultCode The result code of the transaction. `Success` indicates that the + * details were stored successfully. * @return the current {@code StoreDetailResponse} instance, allowing for method chaining */ public StoreDetailResponse resultCode(String resultCode) { @@ -168,8 +166,11 @@ public StoreDetailResponse resultCode(String resultCode) { } /** - * The result code of the transaction. `Success` indicates that the details were stored successfully. - * @return resultCode The result code of the transaction. `Success` indicates that the details were stored successfully. + * The result code of the transaction. `Success` indicates that the details were stored + * successfully. + * + * @return resultCode The result code of the transaction. `Success` indicates that the + * details were stored successfully. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,9 +179,11 @@ public String getResultCode() { } /** - * The result code of the transaction. `Success` indicates that the details were stored successfully. + * The result code of the transaction. `Success` indicates that the details were stored + * successfully. * - * @param resultCode The result code of the transaction. `Success` indicates that the details were stored successfully. + * @param resultCode The result code of the transaction. `Success` indicates that the + * details were stored successfully. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,9 +191,7 @@ public void setResultCode(String resultCode) { this.resultCode = resultCode; } - /** - * Return true if this StoreDetailResponse object is equal to o. - */ + /** Return true if this StoreDetailResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -200,10 +201,11 @@ public boolean equals(Object o) { return false; } StoreDetailResponse storeDetailResponse = (StoreDetailResponse) o; - return Objects.equals(this.additionalData, storeDetailResponse.additionalData) && - Objects.equals(this.pspReference, storeDetailResponse.pspReference) && - Objects.equals(this.recurringDetailReference, storeDetailResponse.recurringDetailReference) && - Objects.equals(this.resultCode, storeDetailResponse.resultCode); + return Objects.equals(this.additionalData, storeDetailResponse.additionalData) + && Objects.equals(this.pspReference, storeDetailResponse.pspReference) + && Objects.equals( + this.recurringDetailReference, storeDetailResponse.recurringDetailReference) + && Objects.equals(this.resultCode, storeDetailResponse.resultCode); } @Override @@ -217,15 +219,16 @@ public String toString() { sb.append("class StoreDetailResponse {\n"); sb.append(" additionalData: ").append(toIndentedString(additionalData)).append("\n"); sb.append(" pspReference: ").append(toIndentedString(pspReference)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); sb.append(" resultCode: ").append(toIndentedString(resultCode)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -234,21 +237,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of StoreDetailResponse given an JSON string * * @param jsonString JSON string * @return An instance of StoreDetailResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to StoreDetailResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * StoreDetailResponse */ public static StoreDetailResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoreDetailResponse.class); } -/** - * Convert an instance of StoreDetailResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of StoreDetailResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/SubmitRequest.java b/src/main/java/com/adyen/model/payout/SubmitRequest.java index fc577c079..1a16f7af9 100644 --- a/src/main/java/com/adyen/model/payout/SubmitRequest.java +++ b/src/main/java/com/adyen/model/payout/SubmitRequest.java @@ -2,37 +2,29 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payout; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.payout.Amount; -import com.adyen.model.payout.Name; -import com.adyen.model.payout.Recurring; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; +import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * SubmitRequest - */ +/** SubmitRequest */ @JsonPropertyOrder({ SubmitRequest.JSON_PROPERTY_ADDITIONAL_DATA, SubmitRequest.JSON_PROPERTY_AMOUNT, @@ -50,7 +42,6 @@ SubmitRequest.JSON_PROPERTY_SHOPPER_STATEMENT, SubmitRequest.JSON_PROPERTY_SOCIAL_SECURITY_NUMBER }) - public class SubmitRequest { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -62,10 +53,11 @@ public class SubmitRequest { private LocalDate dateOfBirth; /** - * The type of the entity the payout is processed for. Allowed values: * NaturalPerson * Company > This field is required to update the existing `entityType` that is associated with this recurring contract. + * The type of the entity the payout is processed for. Allowed values: * NaturalPerson * Company + * > This field is required to update the existing `entityType` that is associated + * with this recurring contract. */ public enum EntityTypeEnum { - NATURALPERSON(String.valueOf("NaturalPerson")), COMPANY(String.valueOf("Company")); @@ -75,7 +67,7 @@ public enum EntityTypeEnum { private String value; EntityTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -96,7 +88,11 @@ public static EntityTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("EntityTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(EntityTypeEnum.values())); + LOG.warning( + "EntityTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(EntityTypeEnum.values())); return null; } } @@ -119,7 +115,8 @@ public static EntityTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = "selectedRecurringDetailReference"; + public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = + "selectedRecurringDetailReference"; private String selectedRecurringDetailReference; public static final String JSON_PROPERTY_SHOPPER_EMAIL = "shopperEmail"; @@ -137,13 +134,13 @@ public static EntityTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_SOCIAL_SECURITY_NUMBER = "socialSecurityNumber"; private String socialSecurityNumber; - public SubmitRequest() { - } + public SubmitRequest() {} /** * This field contains additional data, which may be required for a particular request. * - * @param additionalData This field contains additional data, which may be required for a particular request. + * @param additionalData This field contains additional data, which may be required for a + * particular request. * @return the current {@code SubmitRequest} instance, allowing for method chaining */ public SubmitRequest additionalData(Map additionalData) { @@ -161,7 +158,9 @@ public SubmitRequest putAdditionalDataItem(String key, String additionalDataItem /** * This field contains additional data, which may be required for a particular request. - * @return additionalData This field contains additional data, which may be required for a particular request. + * + * @return additionalData This field contains additional data, which may be required for a + * particular request. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,7 +171,8 @@ public Map getAdditionalData() { /** * This field contains additional data, which may be required for a particular request. * - * @param additionalData This field contains additional data, which may be required for a particular request. + * @param additionalData This field contains additional data, which may be required for a + * particular request. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,7 +183,7 @@ public void setAdditionalData(Map additionalData) { /** * amount * - * @param amount + * @param amount * @return the current {@code SubmitRequest} instance, allowing for method chaining */ public SubmitRequest amount(Amount amount) { @@ -193,7 +193,8 @@ public SubmitRequest amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,7 +205,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -213,9 +214,15 @@ public void setAmount(Amount amount) { } /** - * The date of birth. Format: ISO-8601; example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. > This field is required to update the existing `dateOfBirth` that is associated with this recurring contract. + * The date of birth. Format: ISO-8601; example: YYYY-MM-DD For Paysafecard it must be the same as + * used when registering the Paysafecard account. > This field is mandatory for natural + * persons. > This field is required to update the existing `dateOfBirth` that is + * associated with this recurring contract. * - * @param dateOfBirth The date of birth. Format: ISO-8601; example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. > This field is required to update the existing `dateOfBirth` that is associated with this recurring contract. + * @param dateOfBirth The date of birth. Format: ISO-8601; example: YYYY-MM-DD For Paysafecard it + * must be the same as used when registering the Paysafecard account. > This field is + * mandatory for natural persons. > This field is required to update the existing + * `dateOfBirth` that is associated with this recurring contract. * @return the current {@code SubmitRequest} instance, allowing for method chaining */ public SubmitRequest dateOfBirth(LocalDate dateOfBirth) { @@ -224,8 +231,15 @@ public SubmitRequest dateOfBirth(LocalDate dateOfBirth) { } /** - * The date of birth. Format: ISO-8601; example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. > This field is required to update the existing `dateOfBirth` that is associated with this recurring contract. - * @return dateOfBirth The date of birth. Format: ISO-8601; example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. > This field is required to update the existing `dateOfBirth` that is associated with this recurring contract. + * The date of birth. Format: ISO-8601; example: YYYY-MM-DD For Paysafecard it must be the same as + * used when registering the Paysafecard account. > This field is mandatory for natural + * persons. > This field is required to update the existing `dateOfBirth` that is + * associated with this recurring contract. + * + * @return dateOfBirth The date of birth. Format: ISO-8601; example: YYYY-MM-DD For Paysafecard it + * must be the same as used when registering the Paysafecard account. > This field is + * mandatory for natural persons. > This field is required to update the existing + * `dateOfBirth` that is associated with this recurring contract. */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -234,9 +248,15 @@ public LocalDate getDateOfBirth() { } /** - * The date of birth. Format: ISO-8601; example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. > This field is required to update the existing `dateOfBirth` that is associated with this recurring contract. + * The date of birth. Format: ISO-8601; example: YYYY-MM-DD For Paysafecard it must be the same as + * used when registering the Paysafecard account. > This field is mandatory for natural + * persons. > This field is required to update the existing `dateOfBirth` that is + * associated with this recurring contract. * - * @param dateOfBirth The date of birth. Format: ISO-8601; example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. > This field is required to update the existing `dateOfBirth` that is associated with this recurring contract. + * @param dateOfBirth The date of birth. Format: ISO-8601; example: YYYY-MM-DD For Paysafecard it + * must be the same as used when registering the Paysafecard account. > This field is + * mandatory for natural persons. > This field is required to update the existing + * `dateOfBirth` that is associated with this recurring contract. */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -245,9 +265,13 @@ public void setDateOfBirth(LocalDate dateOfBirth) { } /** - * The type of the entity the payout is processed for. Allowed values: * NaturalPerson * Company > This field is required to update the existing `entityType` that is associated with this recurring contract. + * The type of the entity the payout is processed for. Allowed values: * NaturalPerson * Company + * > This field is required to update the existing `entityType` that is associated + * with this recurring contract. * - * @param entityType The type of the entity the payout is processed for. Allowed values: * NaturalPerson * Company > This field is required to update the existing `entityType` that is associated with this recurring contract. + * @param entityType The type of the entity the payout is processed for. Allowed values: * + * NaturalPerson * Company > This field is required to update the existing + * `entityType` that is associated with this recurring contract. * @return the current {@code SubmitRequest} instance, allowing for method chaining */ public SubmitRequest entityType(EntityTypeEnum entityType) { @@ -256,8 +280,13 @@ public SubmitRequest entityType(EntityTypeEnum entityType) { } /** - * The type of the entity the payout is processed for. Allowed values: * NaturalPerson * Company > This field is required to update the existing `entityType` that is associated with this recurring contract. - * @return entityType The type of the entity the payout is processed for. Allowed values: * NaturalPerson * Company > This field is required to update the existing `entityType` that is associated with this recurring contract. + * The type of the entity the payout is processed for. Allowed values: * NaturalPerson * Company + * > This field is required to update the existing `entityType` that is associated + * with this recurring contract. + * + * @return entityType The type of the entity the payout is processed for. Allowed values: * + * NaturalPerson * Company > This field is required to update the existing + * `entityType` that is associated with this recurring contract. */ @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -266,9 +295,13 @@ public EntityTypeEnum getEntityType() { } /** - * The type of the entity the payout is processed for. Allowed values: * NaturalPerson * Company > This field is required to update the existing `entityType` that is associated with this recurring contract. + * The type of the entity the payout is processed for. Allowed values: * NaturalPerson * Company + * > This field is required to update the existing `entityType` that is associated + * with this recurring contract. * - * @param entityType The type of the entity the payout is processed for. Allowed values: * NaturalPerson * Company > This field is required to update the existing `entityType` that is associated with this recurring contract. + * @param entityType The type of the entity the payout is processed for. Allowed values: * + * NaturalPerson * Company > This field is required to update the existing + * `entityType` that is associated with this recurring contract. */ @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -277,9 +310,11 @@ public void setEntityType(EntityTypeEnum entityType) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or + * negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be + * either positive or negative. * @return the current {@code SubmitRequest} instance, allowing for method chaining */ public SubmitRequest fraudOffset(Integer fraudOffset) { @@ -288,8 +323,11 @@ public SubmitRequest fraudOffset(Integer fraudOffset) { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. - * @return fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or + * negative. + * + * @return fraudOffset An integer value that is added to the normal fraud score. The value can be + * either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -298,9 +336,11 @@ public Integer getFraudOffset() { } /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. + * An integer value that is added to the normal fraud score. The value can be either positive or + * negative. * - * @param fraudOffset An integer value that is added to the normal fraud score. The value can be either positive or negative. + * @param fraudOffset An integer value that is added to the normal fraud score. The value can be + * either positive or negative. */ @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -311,7 +351,8 @@ public void setFraudOffset(Integer fraudOffset) { /** * The merchant account identifier you want to process the transaction request with. * - * @param merchantAccount The merchant account identifier you want to process the transaction request with. + * @param merchantAccount The merchant account identifier you want to process the transaction + * request with. * @return the current {@code SubmitRequest} instance, allowing for method chaining */ public SubmitRequest merchantAccount(String merchantAccount) { @@ -321,7 +362,9 @@ public SubmitRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier you want to process the transaction request with. - * @return merchantAccount The merchant account identifier you want to process the transaction request with. + * + * @return merchantAccount The merchant account identifier you want to process the transaction + * request with. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -332,7 +375,8 @@ public String getMerchantAccount() { /** * The merchant account identifier you want to process the transaction request with. * - * @param merchantAccount The merchant account identifier you want to process the transaction request with. + * @param merchantAccount The merchant account identifier you want to process the transaction + * request with. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -341,9 +385,13 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). > This field is required to update the existing nationality that is associated with this recurring contract. + * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. + * 'NL'). > This field is required to update the existing nationality that is + * associated with this recurring contract. * - * @param nationality The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). > This field is required to update the existing nationality that is associated with this recurring contract. + * @param nationality The shopper's nationality. A valid value is an ISO 2-character country + * code (e.g. 'NL'). > This field is required to update the existing nationality + * that is associated with this recurring contract. * @return the current {@code SubmitRequest} instance, allowing for method chaining */ public SubmitRequest nationality(String nationality) { @@ -352,8 +400,13 @@ public SubmitRequest nationality(String nationality) { } /** - * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). > This field is required to update the existing nationality that is associated with this recurring contract. - * @return nationality The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). > This field is required to update the existing nationality that is associated with this recurring contract. + * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. + * 'NL'). > This field is required to update the existing nationality that is + * associated with this recurring contract. + * + * @return nationality The shopper's nationality. A valid value is an ISO 2-character country + * code (e.g. 'NL'). > This field is required to update the existing nationality + * that is associated with this recurring contract. */ @JsonProperty(JSON_PROPERTY_NATIONALITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -362,9 +415,13 @@ public String getNationality() { } /** - * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). > This field is required to update the existing nationality that is associated with this recurring contract. + * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. + * 'NL'). > This field is required to update the existing nationality that is + * associated with this recurring contract. * - * @param nationality The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). > This field is required to update the existing nationality that is associated with this recurring contract. + * @param nationality The shopper's nationality. A valid value is an ISO 2-character country + * code (e.g. 'NL'). > This field is required to update the existing nationality + * that is associated with this recurring contract. */ @JsonProperty(JSON_PROPERTY_NATIONALITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -375,7 +432,7 @@ public void setNationality(String nationality) { /** * recurring * - * @param recurring + * @param recurring * @return the current {@code SubmitRequest} instance, allowing for method chaining */ public SubmitRequest recurring(Recurring recurring) { @@ -385,7 +442,8 @@ public SubmitRequest recurring(Recurring recurring) { /** * Get recurring - * @return recurring + * + * @return recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -396,7 +454,7 @@ public Recurring getRecurring() { /** * recurring * - * @param recurring + * @param recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -405,9 +463,13 @@ public void setRecurring(Recurring recurring) { } /** - * The merchant reference for this payout. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. + * The merchant reference for this payout. This reference will be used in all communication to the + * merchant about the status of the payout. Although it is a good idea to make sure it is unique, + * this is not a requirement. * - * @param reference The merchant reference for this payout. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. + * @param reference The merchant reference for this payout. This reference will be used in all + * communication to the merchant about the status of the payout. Although it is a good idea to + * make sure it is unique, this is not a requirement. * @return the current {@code SubmitRequest} instance, allowing for method chaining */ public SubmitRequest reference(String reference) { @@ -416,8 +478,13 @@ public SubmitRequest reference(String reference) { } /** - * The merchant reference for this payout. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. - * @return reference The merchant reference for this payout. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. + * The merchant reference for this payout. This reference will be used in all communication to the + * merchant about the status of the payout. Although it is a good idea to make sure it is unique, + * this is not a requirement. + * + * @return reference The merchant reference for this payout. This reference will be used in all + * communication to the merchant about the status of the payout. Although it is a good idea to + * make sure it is unique, this is not a requirement. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -426,9 +493,13 @@ public String getReference() { } /** - * The merchant reference for this payout. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. + * The merchant reference for this payout. This reference will be used in all communication to the + * merchant about the status of the payout. Although it is a good idea to make sure it is unique, + * this is not a requirement. * - * @param reference The merchant reference for this payout. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. + * @param reference The merchant reference for this payout. This reference will be used in all + * communication to the merchant about the status of the payout. Although it is a good idea to + * make sure it is unique, this is not a requirement. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -437,9 +508,12 @@ public void setReference(String reference) { } /** - * This is the `recurringDetailReference` you want to use for this payout. You can use the value LATEST to select the most recently used recurring detail. + * This is the `recurringDetailReference` you want to use for this payout. You can use + * the value LATEST to select the most recently used recurring detail. * - * @param selectedRecurringDetailReference This is the `recurringDetailReference` you want to use for this payout. You can use the value LATEST to select the most recently used recurring detail. + * @param selectedRecurringDetailReference This is the `recurringDetailReference` you + * want to use for this payout. You can use the value LATEST to select the most recently used + * recurring detail. * @return the current {@code SubmitRequest} instance, allowing for method chaining */ public SubmitRequest selectedRecurringDetailReference(String selectedRecurringDetailReference) { @@ -448,8 +522,12 @@ public SubmitRequest selectedRecurringDetailReference(String selectedRecurringDe } /** - * This is the `recurringDetailReference` you want to use for this payout. You can use the value LATEST to select the most recently used recurring detail. - * @return selectedRecurringDetailReference This is the `recurringDetailReference` you want to use for this payout. You can use the value LATEST to select the most recently used recurring detail. + * This is the `recurringDetailReference` you want to use for this payout. You can use + * the value LATEST to select the most recently used recurring detail. + * + * @return selectedRecurringDetailReference This is the `recurringDetailReference` you + * want to use for this payout. You can use the value LATEST to select the most recently used + * recurring detail. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -458,9 +536,12 @@ public String getSelectedRecurringDetailReference() { } /** - * This is the `recurringDetailReference` you want to use for this payout. You can use the value LATEST to select the most recently used recurring detail. + * This is the `recurringDetailReference` you want to use for this payout. You can use + * the value LATEST to select the most recently used recurring detail. * - * @param selectedRecurringDetailReference This is the `recurringDetailReference` you want to use for this payout. You can use the value LATEST to select the most recently used recurring detail. + * @param selectedRecurringDetailReference This is the `recurringDetailReference` you + * want to use for this payout. You can use the value LATEST to select the most recently used + * recurring detail. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -481,6 +562,7 @@ public SubmitRequest shopperEmail(String shopperEmail) { /** * The shopper's email address. + * * @return shopperEmail The shopper's email address. */ @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @@ -503,7 +585,7 @@ public void setShopperEmail(String shopperEmail) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code SubmitRequest} instance, allowing for method chaining */ public SubmitRequest shopperName(Name shopperName) { @@ -513,7 +595,8 @@ public SubmitRequest shopperName(Name shopperName) { /** * Get shopperName - * @return shopperName + * + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -524,7 +607,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -545,6 +628,7 @@ public SubmitRequest shopperReference(String shopperReference) { /** * The shopper's reference for the payout transaction. + * * @return shopperReference The shopper's reference for the payout transaction. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @@ -565,9 +649,11 @@ public void setShopperReference(String shopperReference) { } /** - * The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). + * The description of this payout. This description is shown on the bank statement of the shopper + * (if this is supported by the chosen payment method). * - * @param shopperStatement The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). + * @param shopperStatement The description of this payout. This description is shown on the bank + * statement of the shopper (if this is supported by the chosen payment method). * @return the current {@code SubmitRequest} instance, allowing for method chaining */ public SubmitRequest shopperStatement(String shopperStatement) { @@ -576,8 +662,11 @@ public SubmitRequest shopperStatement(String shopperStatement) { } /** - * The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). - * @return shopperStatement The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). + * The description of this payout. This description is shown on the bank statement of the shopper + * (if this is supported by the chosen payment method). + * + * @return shopperStatement The description of this payout. This description is shown on the bank + * statement of the shopper (if this is supported by the chosen payment method). */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -586,9 +675,11 @@ public String getShopperStatement() { } /** - * The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). + * The description of this payout. This description is shown on the bank statement of the shopper + * (if this is supported by the chosen payment method). * - * @param shopperStatement The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). + * @param shopperStatement The description of this payout. This description is shown on the bank + * statement of the shopper (if this is supported by the chosen payment method). */ @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -609,6 +700,7 @@ public SubmitRequest socialSecurityNumber(String socialSecurityNumber) { /** * The shopper's social security number. + * * @return socialSecurityNumber The shopper's social security number. */ @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER) @@ -628,9 +720,7 @@ public void setSocialSecurityNumber(String socialSecurityNumber) { this.socialSecurityNumber = socialSecurityNumber; } - /** - * Return true if this SubmitRequest object is equal to o. - */ + /** Return true if this SubmitRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -640,26 +730,42 @@ public boolean equals(Object o) { return false; } SubmitRequest submitRequest = (SubmitRequest) o; - return Objects.equals(this.additionalData, submitRequest.additionalData) && - Objects.equals(this.amount, submitRequest.amount) && - Objects.equals(this.dateOfBirth, submitRequest.dateOfBirth) && - Objects.equals(this.entityType, submitRequest.entityType) && - Objects.equals(this.fraudOffset, submitRequest.fraudOffset) && - Objects.equals(this.merchantAccount, submitRequest.merchantAccount) && - Objects.equals(this.nationality, submitRequest.nationality) && - Objects.equals(this.recurring, submitRequest.recurring) && - Objects.equals(this.reference, submitRequest.reference) && - Objects.equals(this.selectedRecurringDetailReference, submitRequest.selectedRecurringDetailReference) && - Objects.equals(this.shopperEmail, submitRequest.shopperEmail) && - Objects.equals(this.shopperName, submitRequest.shopperName) && - Objects.equals(this.shopperReference, submitRequest.shopperReference) && - Objects.equals(this.shopperStatement, submitRequest.shopperStatement) && - Objects.equals(this.socialSecurityNumber, submitRequest.socialSecurityNumber); + return Objects.equals(this.additionalData, submitRequest.additionalData) + && Objects.equals(this.amount, submitRequest.amount) + && Objects.equals(this.dateOfBirth, submitRequest.dateOfBirth) + && Objects.equals(this.entityType, submitRequest.entityType) + && Objects.equals(this.fraudOffset, submitRequest.fraudOffset) + && Objects.equals(this.merchantAccount, submitRequest.merchantAccount) + && Objects.equals(this.nationality, submitRequest.nationality) + && Objects.equals(this.recurring, submitRequest.recurring) + && Objects.equals(this.reference, submitRequest.reference) + && Objects.equals( + this.selectedRecurringDetailReference, submitRequest.selectedRecurringDetailReference) + && Objects.equals(this.shopperEmail, submitRequest.shopperEmail) + && Objects.equals(this.shopperName, submitRequest.shopperName) + && Objects.equals(this.shopperReference, submitRequest.shopperReference) + && Objects.equals(this.shopperStatement, submitRequest.shopperStatement) + && Objects.equals(this.socialSecurityNumber, submitRequest.socialSecurityNumber); } @Override public int hashCode() { - return Objects.hash(additionalData, amount, dateOfBirth, entityType, fraudOffset, merchantAccount, nationality, recurring, reference, selectedRecurringDetailReference, shopperEmail, shopperName, shopperReference, shopperStatement, socialSecurityNumber); + return Objects.hash( + additionalData, + amount, + dateOfBirth, + entityType, + fraudOffset, + merchantAccount, + nationality, + recurring, + reference, + selectedRecurringDetailReference, + shopperEmail, + shopperName, + shopperReference, + shopperStatement, + socialSecurityNumber); } @Override @@ -675,19 +781,22 @@ public String toString() { sb.append(" nationality: ").append(toIndentedString(nationality)).append("\n"); sb.append(" recurring: ").append(toIndentedString(recurring)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); - sb.append(" selectedRecurringDetailReference: ").append(toIndentedString(selectedRecurringDetailReference)).append("\n"); + sb.append(" selectedRecurringDetailReference: ") + .append(toIndentedString(selectedRecurringDetailReference)) + .append("\n"); sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append(" shopperStatement: ").append(toIndentedString(shopperStatement)).append("\n"); - sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); + sb.append(" socialSecurityNumber: ") + .append(toIndentedString(socialSecurityNumber)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -696,7 +805,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SubmitRequest given an JSON string * * @param jsonString JSON string @@ -706,11 +815,12 @@ private String toIndentedString(Object o) { public static SubmitRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SubmitRequest.class); } -/** - * Convert an instance of SubmitRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SubmitRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/payout/SubmitResponse.java b/src/main/java/com/adyen/model/payout/SubmitResponse.java index fc3fdba14..5283e7e2a 100644 --- a/src/main/java/com/adyen/model/payout/SubmitResponse.java +++ b/src/main/java/com/adyen/model/payout/SubmitResponse.java @@ -2,40 +2,30 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.payout; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.HashMap; +import java.util.Map; - -/** - * SubmitResponse - */ +/** SubmitResponse */ @JsonPropertyOrder({ SubmitResponse.JSON_PROPERTY_ADDITIONAL_DATA, SubmitResponse.JSON_PROPERTY_PSP_REFERENCE, SubmitResponse.JSON_PROPERTY_REFUSAL_REASON, SubmitResponse.JSON_PROPERTY_RESULT_CODE }) - public class SubmitResponse { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -49,13 +39,13 @@ public class SubmitResponse { public static final String JSON_PROPERTY_RESULT_CODE = "resultCode"; private String resultCode; - public SubmitResponse() { - } + public SubmitResponse() {} /** * This field contains additional data, which may be returned in a particular response. * - * @param additionalData This field contains additional data, which may be returned in a particular response. + * @param additionalData This field contains additional data, which may be returned in a + * particular response. * @return the current {@code SubmitResponse} instance, allowing for method chaining */ public SubmitResponse additionalData(Map additionalData) { @@ -73,7 +63,9 @@ public SubmitResponse putAdditionalDataItem(String key, String additionalDataIte /** * This field contains additional data, which may be returned in a particular response. - * @return additionalData This field contains additional data, which may be returned in a particular response. + * + * @return additionalData This field contains additional data, which may be returned in a + * particular response. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -84,7 +76,8 @@ public Map getAdditionalData() { /** * This field contains additional data, which may be returned in a particular response. * - * @param additionalData This field contains additional data, which may be returned in a particular response. + * @param additionalData This field contains additional data, which may be returned in a + * particular response. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,6 +98,7 @@ public SubmitResponse pspReference(String pspReference) { /** * A new reference to uniquely identify this request. + * * @return pspReference A new reference to uniquely identify this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -137,6 +131,7 @@ public SubmitResponse refusalReason(String refusalReason) { /** * In case of refusal, an informational message for the reason. + * * @return refusalReason In case of refusal, an informational message for the reason. */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @@ -157,9 +152,11 @@ public void setRefusalReason(String refusalReason) { } /** - * The response: * In case of success, it is `payout-submit-received`. * In case of an error, an informational message is returned. + * The response: * In case of success, it is `payout-submit-received`. * In case of an + * error, an informational message is returned. * - * @param resultCode The response: * In case of success, it is `payout-submit-received`. * In case of an error, an informational message is returned. + * @param resultCode The response: * In case of success, it is `payout-submit-received`. + * * In case of an error, an informational message is returned. * @return the current {@code SubmitResponse} instance, allowing for method chaining */ public SubmitResponse resultCode(String resultCode) { @@ -168,8 +165,12 @@ public SubmitResponse resultCode(String resultCode) { } /** - * The response: * In case of success, it is `payout-submit-received`. * In case of an error, an informational message is returned. - * @return resultCode The response: * In case of success, it is `payout-submit-received`. * In case of an error, an informational message is returned. + * The response: * In case of success, it is `payout-submit-received`. * In case of an + * error, an informational message is returned. + * + * @return resultCode The response: * In case of success, it is + * `payout-submit-received`. * In case of an error, an informational message is + * returned. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,9 +179,11 @@ public String getResultCode() { } /** - * The response: * In case of success, it is `payout-submit-received`. * In case of an error, an informational message is returned. + * The response: * In case of success, it is `payout-submit-received`. * In case of an + * error, an informational message is returned. * - * @param resultCode The response: * In case of success, it is `payout-submit-received`. * In case of an error, an informational message is returned. + * @param resultCode The response: * In case of success, it is `payout-submit-received`. + * * In case of an error, an informational message is returned. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,9 +191,7 @@ public void setResultCode(String resultCode) { this.resultCode = resultCode; } - /** - * Return true if this SubmitResponse object is equal to o. - */ + /** Return true if this SubmitResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -200,10 +201,10 @@ public boolean equals(Object o) { return false; } SubmitResponse submitResponse = (SubmitResponse) o; - return Objects.equals(this.additionalData, submitResponse.additionalData) && - Objects.equals(this.pspReference, submitResponse.pspReference) && - Objects.equals(this.refusalReason, submitResponse.refusalReason) && - Objects.equals(this.resultCode, submitResponse.resultCode); + return Objects.equals(this.additionalData, submitResponse.additionalData) + && Objects.equals(this.pspReference, submitResponse.pspReference) + && Objects.equals(this.refusalReason, submitResponse.refusalReason) + && Objects.equals(this.resultCode, submitResponse.resultCode); } @Override @@ -224,8 +225,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -234,7 +234,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SubmitResponse given an JSON string * * @param jsonString JSON string @@ -244,11 +244,12 @@ private String toIndentedString(Object o) { public static SubmitResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SubmitResponse.class); } -/** - * Convert an instance of SubmitResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SubmitResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/posmobile/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/posmobile/AbstractOpenApiSchema.java index 8960c1bca..f0e161e97 100644 --- a/src/main/java/com/adyen/model/posmobile/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/posmobile/AbstractOpenApiSchema.java @@ -2,145 +2,141 @@ * POS Mobile API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.posmobile; -import java.util.Objects; -import java.util.Map; -import jakarta.ws.rs.core.GenericType; - import com.fasterxml.jackson.annotation.JsonValue; +import jakarta.ws.rs.core.GenericType; +import java.util.Map; +import java.util.Objects; -/** - * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec - */ +/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() {return instance;} - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) {this.instance = instance;} - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); - } else { - return object.getActualInstance(); - } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() { + return instance; + } + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) { + this.instance = instance; + } + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf + * schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); + } else { + return object.getActualInstance(); } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) && - Objects.equals(this.isNullable, a.isNullable) && - Objects.equals(this.schemaType, a.schemaType); + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; } + return o.toString().replace("\n", "\n "); + } - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); + public boolean equals(Object o) { + if (this == o) { + return true; } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); + if (o == null || getClass() != o.getClass()) { + return false; } - - - -} \ No newline at end of file + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) + && Objects.equals(this.isNullable, a.isNullable) + && Objects.equals(this.schemaType, a.schemaType); + } + + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); + } + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); + } +} diff --git a/src/main/java/com/adyen/model/posmobile/CreateSessionRequest.java b/src/main/java/com/adyen/model/posmobile/CreateSessionRequest.java index c15d7fa46..fbf8b1a21 100644 --- a/src/main/java/com/adyen/model/posmobile/CreateSessionRequest.java +++ b/src/main/java/com/adyen/model/posmobile/CreateSessionRequest.java @@ -2,37 +2,27 @@ * POS Mobile API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.posmobile; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * CreateSessionRequest - */ +/** CreateSessionRequest */ @JsonPropertyOrder({ CreateSessionRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, CreateSessionRequest.JSON_PROPERTY_SETUP_TOKEN, CreateSessionRequest.JSON_PROPERTY_STORE }) - public class CreateSessionRequest { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; @@ -43,8 +33,7 @@ public class CreateSessionRequest { public static final String JSON_PROPERTY_STORE = "store"; private String store; - public CreateSessionRequest() { - } + public CreateSessionRequest() {} /** * The unique identifier of your merchant account. @@ -59,6 +48,7 @@ public CreateSessionRequest merchantAccount(String merchantAccount) { /** * The unique identifier of your merchant account. + * * @return merchantAccount The unique identifier of your merchant account. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -79,9 +69,18 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The setup token provided by the POS Mobile SDK. - When using the Android POS Mobile SDK, obtain the token through the `AuthenticationService.authenticate(setupToken)` callback of `AuthenticationService`. - When using the iOS POS Mobile SDK, obtain the token through the `PaymentServiceDelegate.register(with:)` callback of `PaymentServiceDelegate`. + * The setup token provided by the POS Mobile SDK. - When using the Android POS Mobile SDK, obtain + * the token through the `AuthenticationService.authenticate(setupToken)` callback of + * `AuthenticationService`. - When using the iOS POS Mobile SDK, obtain the token + * through the `PaymentServiceDelegate.register(with:)` callback of + * `PaymentServiceDelegate`. * - * @param setupToken The setup token provided by the POS Mobile SDK. - When using the Android POS Mobile SDK, obtain the token through the `AuthenticationService.authenticate(setupToken)` callback of `AuthenticationService`. - When using the iOS POS Mobile SDK, obtain the token through the `PaymentServiceDelegate.register(with:)` callback of `PaymentServiceDelegate`. + * @param setupToken The setup token provided by the POS Mobile SDK. - When using the Android POS + * Mobile SDK, obtain the token through the + * `AuthenticationService.authenticate(setupToken)` callback of + * `AuthenticationService`. - When using the iOS POS Mobile SDK, obtain the token + * through the `PaymentServiceDelegate.register(with:)` callback of + * `PaymentServiceDelegate`. * @return the current {@code CreateSessionRequest} instance, allowing for method chaining */ public CreateSessionRequest setupToken(String setupToken) { @@ -90,8 +89,18 @@ public CreateSessionRequest setupToken(String setupToken) { } /** - * The setup token provided by the POS Mobile SDK. - When using the Android POS Mobile SDK, obtain the token through the `AuthenticationService.authenticate(setupToken)` callback of `AuthenticationService`. - When using the iOS POS Mobile SDK, obtain the token through the `PaymentServiceDelegate.register(with:)` callback of `PaymentServiceDelegate`. - * @return setupToken The setup token provided by the POS Mobile SDK. - When using the Android POS Mobile SDK, obtain the token through the `AuthenticationService.authenticate(setupToken)` callback of `AuthenticationService`. - When using the iOS POS Mobile SDK, obtain the token through the `PaymentServiceDelegate.register(with:)` callback of `PaymentServiceDelegate`. + * The setup token provided by the POS Mobile SDK. - When using the Android POS Mobile SDK, obtain + * the token through the `AuthenticationService.authenticate(setupToken)` callback of + * `AuthenticationService`. - When using the iOS POS Mobile SDK, obtain the token + * through the `PaymentServiceDelegate.register(with:)` callback of + * `PaymentServiceDelegate`. + * + * @return setupToken The setup token provided by the POS Mobile SDK. - When using the Android POS + * Mobile SDK, obtain the token through the + * `AuthenticationService.authenticate(setupToken)` callback of + * `AuthenticationService`. - When using the iOS POS Mobile SDK, obtain the token + * through the `PaymentServiceDelegate.register(with:)` callback of + * `PaymentServiceDelegate`. */ @JsonProperty(JSON_PROPERTY_SETUP_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,9 +109,18 @@ public String getSetupToken() { } /** - * The setup token provided by the POS Mobile SDK. - When using the Android POS Mobile SDK, obtain the token through the `AuthenticationService.authenticate(setupToken)` callback of `AuthenticationService`. - When using the iOS POS Mobile SDK, obtain the token through the `PaymentServiceDelegate.register(with:)` callback of `PaymentServiceDelegate`. + * The setup token provided by the POS Mobile SDK. - When using the Android POS Mobile SDK, obtain + * the token through the `AuthenticationService.authenticate(setupToken)` callback of + * `AuthenticationService`. - When using the iOS POS Mobile SDK, obtain the token + * through the `PaymentServiceDelegate.register(with:)` callback of + * `PaymentServiceDelegate`. * - * @param setupToken The setup token provided by the POS Mobile SDK. - When using the Android POS Mobile SDK, obtain the token through the `AuthenticationService.authenticate(setupToken)` callback of `AuthenticationService`. - When using the iOS POS Mobile SDK, obtain the token through the `PaymentServiceDelegate.register(with:)` callback of `PaymentServiceDelegate`. + * @param setupToken The setup token provided by the POS Mobile SDK. - When using the Android POS + * Mobile SDK, obtain the token through the + * `AuthenticationService.authenticate(setupToken)` callback of + * `AuthenticationService`. - When using the iOS POS Mobile SDK, obtain the token + * through the `PaymentServiceDelegate.register(with:)` callback of + * `PaymentServiceDelegate`. */ @JsonProperty(JSON_PROPERTY_SETUP_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,6 +141,7 @@ public CreateSessionRequest store(String store) { /** * The unique identifier of the store that you want to process transactions for. + * * @return store The unique identifier of the store that you want to process transactions for. */ @JsonProperty(JSON_PROPERTY_STORE) @@ -142,9 +161,7 @@ public void setStore(String store) { this.store = store; } - /** - * Return true if this CreateSessionRequest object is equal to o. - */ + /** Return true if this CreateSessionRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +171,9 @@ public boolean equals(Object o) { return false; } CreateSessionRequest createSessionRequest = (CreateSessionRequest) o; - return Objects.equals(this.merchantAccount, createSessionRequest.merchantAccount) && - Objects.equals(this.setupToken, createSessionRequest.setupToken) && - Objects.equals(this.store, createSessionRequest.store); + return Objects.equals(this.merchantAccount, createSessionRequest.merchantAccount) + && Objects.equals(this.setupToken, createSessionRequest.setupToken) + && Objects.equals(this.store, createSessionRequest.store); } @Override @@ -176,8 +193,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +202,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CreateSessionRequest given an JSON string * * @param jsonString JSON string * @return An instance of CreateSessionRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to CreateSessionRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CreateSessionRequest */ public static CreateSessionRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateSessionRequest.class); } -/** - * Convert an instance of CreateSessionRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CreateSessionRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/posmobile/CreateSessionResponse.java b/src/main/java/com/adyen/model/posmobile/CreateSessionResponse.java index a5171b77f..c1dadc10f 100644 --- a/src/main/java/com/adyen/model/posmobile/CreateSessionResponse.java +++ b/src/main/java/com/adyen/model/posmobile/CreateSessionResponse.java @@ -2,31 +2,22 @@ * POS Mobile API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.posmobile; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * CreateSessionResponse - */ +/** CreateSessionResponse */ @JsonPropertyOrder({ CreateSessionResponse.JSON_PROPERTY_ID, CreateSessionResponse.JSON_PROPERTY_INSTALLATION_ID, @@ -34,7 +25,6 @@ CreateSessionResponse.JSON_PROPERTY_SDK_DATA, CreateSessionResponse.JSON_PROPERTY_STORE }) - public class CreateSessionResponse { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -51,8 +41,7 @@ public class CreateSessionResponse { public static final String JSON_PROPERTY_STORE = "store"; private String store; - public CreateSessionResponse() { - } + public CreateSessionResponse() {} /** * The unique identifier of the session. @@ -67,6 +56,7 @@ public CreateSessionResponse id(String id) { /** * The unique identifier of the session. + * * @return id The unique identifier of the session. */ @JsonProperty(JSON_PROPERTY_ID) @@ -87,9 +77,15 @@ public void setId(String id) { } /** - * The unique identifier of the SDK installation. If you create the [Terminal API](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api/) transaction request on your backend, use this as the `POIID` in the `MessageHeader` of the request. + * The unique identifier of the SDK installation. If you create the [Terminal + * API](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api/) transaction + * request on your backend, use this as the `POIID` in the `MessageHeader` of + * the request. * - * @param installationId The unique identifier of the SDK installation. If you create the [Terminal API](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api/) transaction request on your backend, use this as the `POIID` in the `MessageHeader` of the request. + * @param installationId The unique identifier of the SDK installation. If you create the + * [Terminal API](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api/) + * transaction request on your backend, use this as the `POIID` in the + * `MessageHeader` of the request. * @return the current {@code CreateSessionResponse} instance, allowing for method chaining */ public CreateSessionResponse installationId(String installationId) { @@ -98,8 +94,15 @@ public CreateSessionResponse installationId(String installationId) { } /** - * The unique identifier of the SDK installation. If you create the [Terminal API](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api/) transaction request on your backend, use this as the `POIID` in the `MessageHeader` of the request. - * @return installationId The unique identifier of the SDK installation. If you create the [Terminal API](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api/) transaction request on your backend, use this as the `POIID` in the `MessageHeader` of the request. + * The unique identifier of the SDK installation. If you create the [Terminal + * API](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api/) transaction + * request on your backend, use this as the `POIID` in the `MessageHeader` of + * the request. + * + * @return installationId The unique identifier of the SDK installation. If you create the + * [Terminal API](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api/) + * transaction request on your backend, use this as the `POIID` in the + * `MessageHeader` of the request. */ @JsonProperty(JSON_PROPERTY_INSTALLATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,9 +111,15 @@ public String getInstallationId() { } /** - * The unique identifier of the SDK installation. If you create the [Terminal API](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api/) transaction request on your backend, use this as the `POIID` in the `MessageHeader` of the request. + * The unique identifier of the SDK installation. If you create the [Terminal + * API](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api/) transaction + * request on your backend, use this as the `POIID` in the `MessageHeader` of + * the request. * - * @param installationId The unique identifier of the SDK installation. If you create the [Terminal API](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api/) transaction request on your backend, use this as the `POIID` in the `MessageHeader` of the request. + * @param installationId The unique identifier of the SDK installation. If you create the + * [Terminal API](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api/) + * transaction request on your backend, use this as the `POIID` in the + * `MessageHeader` of the request. */ @JsonProperty(JSON_PROPERTY_INSTALLATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -131,6 +140,7 @@ public CreateSessionResponse merchantAccount(String merchantAccount) { /** * The unique identifier of your merchant account. + * * @return merchantAccount The unique identifier of your merchant account. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -151,9 +161,11 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The data that the SDK uses to authenticate responses from the Adyen payments platform. Pass this value to your POS app. + * The data that the SDK uses to authenticate responses from the Adyen payments platform. Pass + * this value to your POS app. * - * @param sdkData The data that the SDK uses to authenticate responses from the Adyen payments platform. Pass this value to your POS app. + * @param sdkData The data that the SDK uses to authenticate responses from the Adyen payments + * platform. Pass this value to your POS app. * @return the current {@code CreateSessionResponse} instance, allowing for method chaining */ public CreateSessionResponse sdkData(String sdkData) { @@ -162,8 +174,11 @@ public CreateSessionResponse sdkData(String sdkData) { } /** - * The data that the SDK uses to authenticate responses from the Adyen payments platform. Pass this value to your POS app. - * @return sdkData The data that the SDK uses to authenticate responses from the Adyen payments platform. Pass this value to your POS app. + * The data that the SDK uses to authenticate responses from the Adyen payments platform. Pass + * this value to your POS app. + * + * @return sdkData The data that the SDK uses to authenticate responses from the Adyen payments + * platform. Pass this value to your POS app. */ @JsonProperty(JSON_PROPERTY_SDK_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,9 +187,11 @@ public String getSdkData() { } /** - * The data that the SDK uses to authenticate responses from the Adyen payments platform. Pass this value to your POS app. + * The data that the SDK uses to authenticate responses from the Adyen payments platform. Pass + * this value to your POS app. * - * @param sdkData The data that the SDK uses to authenticate responses from the Adyen payments platform. Pass this value to your POS app. + * @param sdkData The data that the SDK uses to authenticate responses from the Adyen payments + * platform. Pass this value to your POS app. */ @JsonProperty(JSON_PROPERTY_SDK_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,6 +212,7 @@ public CreateSessionResponse store(String store) { /** * The unique identifier of the store that you want to process transactions for. + * * @return store The unique identifier of the store that you want to process transactions for. */ @JsonProperty(JSON_PROPERTY_STORE) @@ -214,9 +232,7 @@ public void setStore(String store) { this.store = store; } - /** - * Return true if this CreateSessionResponse object is equal to o. - */ + /** Return true if this CreateSessionResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -226,11 +242,11 @@ public boolean equals(Object o) { return false; } CreateSessionResponse createSessionResponse = (CreateSessionResponse) o; - return Objects.equals(this.id, createSessionResponse.id) && - Objects.equals(this.installationId, createSessionResponse.installationId) && - Objects.equals(this.merchantAccount, createSessionResponse.merchantAccount) && - Objects.equals(this.sdkData, createSessionResponse.sdkData) && - Objects.equals(this.store, createSessionResponse.store); + return Objects.equals(this.id, createSessionResponse.id) + && Objects.equals(this.installationId, createSessionResponse.installationId) + && Objects.equals(this.merchantAccount, createSessionResponse.merchantAccount) + && Objects.equals(this.sdkData, createSessionResponse.sdkData) + && Objects.equals(this.store, createSessionResponse.store); } @Override @@ -252,8 +268,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -262,21 +277,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CreateSessionResponse given an JSON string * * @param jsonString JSON string * @return An instance of CreateSessionResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to CreateSessionResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CreateSessionResponse */ public static CreateSessionResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreateSessionResponse.class); } -/** - * Convert an instance of CreateSessionResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CreateSessionResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/posmobile/JSON.java b/src/main/java/com/adyen/model/posmobile/JSON.java index 7e2b8e7d5..e3f32866b 100644 --- a/src/main/java/com/adyen/model/posmobile/JSON.java +++ b/src/main/java/com/adyen/model/posmobile/JSON.java @@ -1,21 +1,18 @@ package com.adyen.model.posmobile; -import com.adyen.serializer.ByteArraySerializer; import com.adyen.serializer.ByteArrayDeserializer; +import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import com.adyen.model.posmobile.*; - +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -40,6 +37,7 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. + * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -56,11 +54,13 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { return mapper; } + public static ObjectMapper getMapper() { + return mapper; + } /** - * Returns the target model class that should be used to deserialize the input data. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,9 +73,7 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** - * Helper class to register the discriminator mappings. - */ + /** Helper class to register the discriminator mappings. */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -117,9 +115,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. - * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. This + * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -164,13 +162,14 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, - * so it's not possible to use the instanceof keyword. + *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so + * it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf( + Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -194,59 +193,58 @@ public static boolean isInstanceOf(Class modelClass, Object inst, Set, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); + /** A map of discriminators for all model classes. */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = + new HashMap, ClassDiscriminatorMapping>(); - /** - * A map of oneOf/anyOf descendants for each model class. - */ + /** A map of oneOf/anyOf descendants for each model class. */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator( + Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = + new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants(Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants( + Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static - { + static { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/recurring/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/recurring/AbstractOpenApiSchema.java index 75cf2bdea..6adb83f62 100644 --- a/src/main/java/com/adyen/model/recurring/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/recurring/AbstractOpenApiSchema.java @@ -2,145 +2,141 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.recurring; -import java.util.Objects; -import java.util.Map; -import jakarta.ws.rs.core.GenericType; - import com.fasterxml.jackson.annotation.JsonValue; +import jakarta.ws.rs.core.GenericType; +import java.util.Map; +import java.util.Objects; -/** - * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec - */ +/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() {return instance;} - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) {this.instance = instance;} - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); - } else { - return object.getActualInstance(); - } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() { + return instance; + } + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) { + this.instance = instance; + } + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf + * schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); + } else { + return object.getActualInstance(); } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) && - Objects.equals(this.isNullable, a.isNullable) && - Objects.equals(this.schemaType, a.schemaType); + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; } + return o.toString().replace("\n", "\n "); + } - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); + public boolean equals(Object o) { + if (this == o) { + return true; } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); + if (o == null || getClass() != o.getClass()) { + return false; } - - - -} \ No newline at end of file + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) + && Objects.equals(this.isNullable, a.isNullable) + && Objects.equals(this.schemaType, a.schemaType); + } + + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); + } + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); + } +} diff --git a/src/main/java/com/adyen/model/recurring/Address.java b/src/main/java/com/adyen/model/recurring/Address.java index ea263c7e7..ed451b229 100644 --- a/src/main/java/com/adyen/model/recurring/Address.java +++ b/src/main/java/com/adyen/model/recurring/Address.java @@ -2,31 +2,22 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.recurring; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Address - */ +/** Address */ @JsonPropertyOrder({ Address.JSON_PROPERTY_CITY, Address.JSON_PROPERTY_COUNTRY, @@ -35,7 +26,6 @@ Address.JSON_PROPERTY_STATE_OR_PROVINCE, Address.JSON_PROPERTY_STREET }) - public class Address { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -55,8 +45,7 @@ public class Address { public static final String JSON_PROPERTY_STREET = "street"; private String street; - public Address() { - } + public Address() {} /** * The name of the city. Maximum length: 3000 characters. @@ -71,6 +60,7 @@ public Address city(String city) { /** * The name of the city. Maximum length: 3000 characters. + * * @return city The name of the city. Maximum length: 3000 characters. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -91,9 +81,13 @@ public void setCity(String city) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't + * know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If + * you don't know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. * @return the current {@code Address} instance, allowing for method chaining */ public Address country(String country) { @@ -102,8 +96,13 @@ public Address country(String country) { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. - * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't + * know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. + * + * @return country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If + * you don't know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,9 +111,13 @@ public String getCountry() { } /** - * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't + * know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. * - * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * @param country The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If + * you don't know the country or are not collecting the country from the shopper, provide + * `country` as `ZZ`. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,6 +138,7 @@ public Address houseNumberOrName(String houseNumberOrName) { /** * The number or name of the house. Maximum length: 3000 characters. + * * @return houseNumberOrName The number or name of the house. Maximum length: 3000 characters. */ @JsonProperty(JSON_PROPERTY_HOUSE_NUMBER_OR_NAME) @@ -155,9 +159,11 @@ public void setHouseNumberOrName(String houseNumberOrName) { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an + * address in all other countries. * - * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten + * characters for an address in all other countries. * @return the current {@code Address} instance, allowing for method chaining */ public Address postalCode(String postalCode) { @@ -166,8 +172,11 @@ public Address postalCode(String postalCode) { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. - * @return postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an + * address in all other countries. + * + * @return postalCode A maximum of five digits for an address in the US, or a maximum of ten + * characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,9 +185,11 @@ public String getPostalCode() { } /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * A maximum of five digits for an address in the US, or a maximum of ten characters for an + * address in all other countries. * - * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + * @param postalCode A maximum of five digits for an address in the US, or a maximum of ten + * characters for an address in all other countries. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,9 +198,11 @@ public void setPostalCode(String postalCode) { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in + * Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** + * in the US or **ON** in Canada. > Required for the US and Canada. * @return the current {@code Address} instance, allowing for method chaining */ public Address stateOrProvince(String stateOrProvince) { @@ -198,8 +211,11 @@ public Address stateOrProvince(String stateOrProvince) { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. - * @return stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in + * Canada. > Required for the US and Canada. + * + * @return stateOrProvince The two-character ISO 3166-2 state or province code. For example, + * **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,9 +224,11 @@ public String getStateOrProvince() { } /** - * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in + * Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-character ISO 3166-2 state or province code. For example, **CA** + * in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,9 +237,12 @@ public void setStateOrProvince(String stateOrProvince) { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be + * included in this field; it should be separately provided via `houseNumberOrName`. * - * @param street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * @param street The name of the street. Maximum length: 3000 characters. > The house number + * should not be included in this field; it should be separately provided via + * `houseNumberOrName`. * @return the current {@code Address} instance, allowing for method chaining */ public Address street(String street) { @@ -230,8 +251,12 @@ public Address street(String street) { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. - * @return street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be + * included in this field; it should be separately provided via `houseNumberOrName`. + * + * @return street The name of the street. Maximum length: 3000 characters. > The house number + * should not be included in this field; it should be separately provided via + * `houseNumberOrName`. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,9 +265,12 @@ public String getStreet() { } /** - * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be + * included in this field; it should be separately provided via `houseNumberOrName`. * - * @param street The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * @param street The name of the street. Maximum length: 3000 characters. > The house number + * should not be included in this field; it should be separately provided via + * `houseNumberOrName`. */ @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,9 +278,7 @@ public void setStreet(String street) { this.street = street; } - /** - * Return true if this Address object is equal to o. - */ + /** Return true if this Address object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -262,12 +288,12 @@ public boolean equals(Object o) { return false; } Address address = (Address) o; - return Objects.equals(this.city, address.city) && - Objects.equals(this.country, address.country) && - Objects.equals(this.houseNumberOrName, address.houseNumberOrName) && - Objects.equals(this.postalCode, address.postalCode) && - Objects.equals(this.stateOrProvince, address.stateOrProvince) && - Objects.equals(this.street, address.street); + return Objects.equals(this.city, address.city) + && Objects.equals(this.country, address.country) + && Objects.equals(this.houseNumberOrName, address.houseNumberOrName) + && Objects.equals(this.postalCode, address.postalCode) + && Objects.equals(this.stateOrProvince, address.stateOrProvince) + && Objects.equals(this.street, address.street); } @Override @@ -290,8 +316,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -300,7 +325,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Address given an JSON string * * @param jsonString JSON string @@ -310,11 +335,12 @@ private String toIndentedString(Object o) { public static Address fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Address.class); } -/** - * Convert an instance of Address to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Address to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/Amount.java b/src/main/java/com/adyen/model/recurring/Amount.java index 954b37385..717372349 100644 --- a/src/main/java/com/adyen/model/recurring/Amount.java +++ b/src/main/java/com/adyen/model/recurring/Amount.java @@ -2,36 +2,23 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.recurring; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Amount - */ -@JsonPropertyOrder({ - Amount.JSON_PROPERTY_CURRENCY, - Amount.JSON_PROPERTY_VALUE -}) - +/** Amount */ +@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -39,13 +26,14 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() { - } + public Amount() {} /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount currency(String currency) { @@ -54,8 +42,11 @@ public Amount currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +55,11 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,9 +68,11 @@ public void setCurrency(String currency) { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount value(Long value) { @@ -86,8 +81,11 @@ public Amount value(Long value) { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). - * @return value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * + * @return value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +94,11 @@ public Long getValue() { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +106,7 @@ public void setValue(Long value) { this.value = value; } - /** - * Return true if this Amount object is equal to o. - */ + /** Return true if this Amount object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +116,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) && - Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) + && Objects.equals(this.value, amount.value); } @Override @@ -138,8 +136,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +145,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -158,11 +155,12 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } -/** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/BankAccount.java b/src/main/java/com/adyen/model/recurring/BankAccount.java index d3057280c..78456adaf 100644 --- a/src/main/java/com/adyen/model/recurring/BankAccount.java +++ b/src/main/java/com/adyen/model/recurring/BankAccount.java @@ -2,31 +2,22 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.recurring; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * BankAccount - */ +/** BankAccount */ @JsonPropertyOrder({ BankAccount.JSON_PROPERTY_BANK_ACCOUNT_NUMBER, BankAccount.JSON_PROPERTY_BANK_CITY, @@ -38,7 +29,6 @@ BankAccount.JSON_PROPERTY_OWNER_NAME, BankAccount.JSON_PROPERTY_TAX_ID }) - public class BankAccount { public static final String JSON_PROPERTY_BANK_ACCOUNT_NUMBER = "bankAccountNumber"; private String bankAccountNumber; @@ -67,8 +57,7 @@ public class BankAccount { public static final String JSON_PROPERTY_TAX_ID = "taxId"; private String taxId; - public BankAccount() { - } + public BankAccount() {} /** * The bank account number (without separators). @@ -83,6 +72,7 @@ public BankAccount bankAccountNumber(String bankAccountNumber) { /** * The bank account number (without separators). + * * @return bankAccountNumber The bank account number (without separators). */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_NUMBER) @@ -115,6 +105,7 @@ public BankAccount bankCity(String bankCity) { /** * The bank city. + * * @return bankCity The bank city. */ @JsonProperty(JSON_PROPERTY_BANK_CITY) @@ -137,7 +128,8 @@ public void setBankCity(String bankCity) { /** * The location id of the bank. The field value is `nil` in most cases. * - * @param bankLocationId The location id of the bank. The field value is `nil` in most cases. + * @param bankLocationId The location id of the bank. The field value is `nil` in most + * cases. * @return the current {@code BankAccount} instance, allowing for method chaining */ public BankAccount bankLocationId(String bankLocationId) { @@ -147,7 +139,9 @@ public BankAccount bankLocationId(String bankLocationId) { /** * The location id of the bank. The field value is `nil` in most cases. - * @return bankLocationId The location id of the bank. The field value is `nil` in most cases. + * + * @return bankLocationId The location id of the bank. The field value is `nil` in most + * cases. */ @JsonProperty(JSON_PROPERTY_BANK_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,7 +152,8 @@ public String getBankLocationId() { /** * The location id of the bank. The field value is `nil` in most cases. * - * @param bankLocationId The location id of the bank. The field value is `nil` in most cases. + * @param bankLocationId The location id of the bank. The field value is `nil` in most + * cases. */ @JsonProperty(JSON_PROPERTY_BANK_LOCATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,6 +174,7 @@ public BankAccount bankName(String bankName) { /** * The name of the bank. + * * @return bankName The name of the bank. */ @JsonProperty(JSON_PROPERTY_BANK_NAME) @@ -199,9 +195,11 @@ public void setBankName(String bankName) { } /** - * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. + * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT + * address assigned to a bank. The field value is `nil` in most cases. * - * @param bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. + * @param bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the + * SWIFT address assigned to a bank. The field value is `nil` in most cases. * @return the current {@code BankAccount} instance, allowing for method chaining */ public BankAccount bic(String bic) { @@ -210,8 +208,11 @@ public BankAccount bic(String bic) { } /** - * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. - * @return bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. + * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT + * address assigned to a bank. The field value is `nil` in most cases. + * + * @return bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the + * SWIFT address assigned to a bank. The field value is `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_BIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -220,9 +221,11 @@ public String getBic() { } /** - * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. + * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT + * address assigned to a bank. The field value is `nil` in most cases. * - * @param bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. + * @param bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the + * SWIFT address assigned to a bank. The field value is `nil` in most cases. */ @JsonProperty(JSON_PROPERTY_BIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -231,9 +234,11 @@ public void setBic(String bic) { } /** - * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). + * Country code where the bank is located. A valid value is an ISO two-character country code + * (e.g. 'NL'). * - * @param countryCode Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). + * @param countryCode Country code where the bank is located. A valid value is an ISO + * two-character country code (e.g. 'NL'). * @return the current {@code BankAccount} instance, allowing for method chaining */ public BankAccount countryCode(String countryCode) { @@ -242,8 +247,11 @@ public BankAccount countryCode(String countryCode) { } /** - * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). - * @return countryCode Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). + * Country code where the bank is located. A valid value is an ISO two-character country code + * (e.g. 'NL'). + * + * @return countryCode Country code where the bank is located. A valid value is an ISO + * two-character country code (e.g. 'NL'). */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,9 +260,11 @@ public String getCountryCode() { } /** - * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). + * Country code where the bank is located. A valid value is an ISO two-character country code + * (e.g. 'NL'). * - * @param countryCode Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). + * @param countryCode Country code where the bank is located. A valid value is an ISO + * two-character country code (e.g. 'NL'). */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -263,9 +273,11 @@ public void setCountryCode(String countryCode) { } /** - * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * The [International Bank Account + * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). * - * @param iban The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * @param iban The [International Bank Account + * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). * @return the current {@code BankAccount} instance, allowing for method chaining */ public BankAccount iban(String iban) { @@ -274,8 +286,11 @@ public BankAccount iban(String iban) { } /** - * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). - * @return iban The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * The [International Bank Account + * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * + * @return iban The [International Bank Account + * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,9 +299,11 @@ public String getIban() { } /** - * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * The [International Bank Account + * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). * - * @param iban The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + * @param iban The [International Bank Account + * Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -295,9 +312,25 @@ public void setIban(String iban) { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we + * automatically replace some of them with corresponding Latin characters to meet the FATF + * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter + * Møller is converted to Peter Mller, because banks don't accept 'ø'. After + * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), + * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - + * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details + * don't match the required format, the response returns the error message: 203 'Invalid + * bank account holder name'. * - * @param ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * @param ownerName The name of the bank account holder. If you submit a name with non-Latin + * characters, we automatically replace some of them with corresponding Latin characters to + * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted + * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept + * 'ø'. After replacement, the ownerName must have at least three alphanumeric + * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, + * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - + * allowed. > If provided details don't match the required format, the response returns + * the error message: 203 'Invalid bank account holder name'. * @return the current {@code BankAccount} instance, allowing for method chaining */ public BankAccount ownerName(String ownerName) { @@ -306,8 +339,25 @@ public BankAccount ownerName(String ownerName) { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. - * @return ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we + * automatically replace some of them with corresponding Latin characters to meet the FATF + * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter + * Møller is converted to Peter Mller, because banks don't accept 'ø'. After + * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), + * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - + * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details + * don't match the required format, the response returns the error message: 203 'Invalid + * bank account holder name'. + * + * @return ownerName The name of the bank account holder. If you submit a name with non-Latin + * characters, we automatically replace some of them with corresponding Latin characters to + * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted + * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept + * 'ø'. After replacement, the ownerName must have at least three alphanumeric + * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, + * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - + * allowed. > If provided details don't match the required format, the response returns + * the error message: 203 'Invalid bank account holder name'. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -316,9 +366,25 @@ public String getOwnerName() { } /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * The name of the bank account holder. If you submit a name with non-Latin characters, we + * automatically replace some of them with corresponding Latin characters to meet the FATF + * recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter + * Møller is converted to Peter Mller, because banks don't accept 'ø'. After + * replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), + * and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - + * allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details + * don't match the required format, the response returns the error message: 203 'Invalid + * bank account holder name'. * - * @param ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + * @param ownerName The name of the bank account holder. If you submit a name with non-Latin + * characters, we automatically replace some of them with corresponding Latin characters to + * meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted + * to euA. * Peter Møller is converted to Peter Mller, because banks don't accept + * 'ø'. After replacement, the ownerName must have at least three alphanumeric + * characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, + * a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - + * allowed. > If provided details don't match the required format, the response returns + * the error message: 203 'Invalid bank account holder name'. */ @JsonProperty(JSON_PROPERTY_OWNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -339,6 +405,7 @@ public BankAccount taxId(String taxId) { /** * The bank account holder's tax ID. + * * @return taxId The bank account holder's tax ID. */ @JsonProperty(JSON_PROPERTY_TAX_ID) @@ -358,9 +425,7 @@ public void setTaxId(String taxId) { this.taxId = taxId; } - /** - * Return true if this BankAccount object is equal to o. - */ + /** Return true if this BankAccount object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -370,20 +435,29 @@ public boolean equals(Object o) { return false; } BankAccount bankAccount = (BankAccount) o; - return Objects.equals(this.bankAccountNumber, bankAccount.bankAccountNumber) && - Objects.equals(this.bankCity, bankAccount.bankCity) && - Objects.equals(this.bankLocationId, bankAccount.bankLocationId) && - Objects.equals(this.bankName, bankAccount.bankName) && - Objects.equals(this.bic, bankAccount.bic) && - Objects.equals(this.countryCode, bankAccount.countryCode) && - Objects.equals(this.iban, bankAccount.iban) && - Objects.equals(this.ownerName, bankAccount.ownerName) && - Objects.equals(this.taxId, bankAccount.taxId); + return Objects.equals(this.bankAccountNumber, bankAccount.bankAccountNumber) + && Objects.equals(this.bankCity, bankAccount.bankCity) + && Objects.equals(this.bankLocationId, bankAccount.bankLocationId) + && Objects.equals(this.bankName, bankAccount.bankName) + && Objects.equals(this.bic, bankAccount.bic) + && Objects.equals(this.countryCode, bankAccount.countryCode) + && Objects.equals(this.iban, bankAccount.iban) + && Objects.equals(this.ownerName, bankAccount.ownerName) + && Objects.equals(this.taxId, bankAccount.taxId); } @Override public int hashCode() { - return Objects.hash(bankAccountNumber, bankCity, bankLocationId, bankName, bic, countryCode, iban, ownerName, taxId); + return Objects.hash( + bankAccountNumber, + bankCity, + bankLocationId, + bankName, + bic, + countryCode, + iban, + ownerName, + taxId); } @Override @@ -404,8 +478,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -414,7 +487,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BankAccount given an JSON string * * @param jsonString JSON string @@ -424,11 +497,12 @@ private String toIndentedString(Object o) { public static BankAccount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankAccount.class); } -/** - * Convert an instance of BankAccount to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BankAccount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/Card.java b/src/main/java/com/adyen/model/recurring/Card.java index 8b82fa84b..6230d58d6 100644 --- a/src/main/java/com/adyen/model/recurring/Card.java +++ b/src/main/java/com/adyen/model/recurring/Card.java @@ -2,31 +2,22 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.recurring; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Card - */ +/** Card */ @JsonPropertyOrder({ Card.JSON_PROPERTY_CVC, Card.JSON_PROPERTY_EXPIRY_MONTH, @@ -37,7 +28,6 @@ Card.JSON_PROPERTY_START_MONTH, Card.JSON_PROPERTY_START_YEAR }) - public class Card { public static final String JSON_PROPERTY_CVC = "cvc"; private String cvc; @@ -63,13 +53,28 @@ public class Card { public static final String JSON_PROPERTY_START_YEAR = "startYear"; private String startYear; - public Card() { - } + public Card() {} /** - * The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. + * The [card verification + * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) + * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 + * digits * CID – length: 4 digits > If you are using [Client-Side + * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code + * is present in the encrypted data. You must never post the card details to the server. > This + * field must be always present in a [one-click payment + * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value + * is returned in a response, it is always empty because it is not stored. * - * @param cvc The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. + * @param cvc The [card verification + * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) + * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: + * 3 digits * CID – length: 4 digits > If you are using [Client-Side + * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC + * code is present in the encrypted data. You must never post the card details to the server. + * > This field must be always present in a [one-click payment + * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this + * value is returned in a response, it is always empty because it is not stored. * @return the current {@code Card} instance, allowing for method chaining */ public Card cvc(String cvc) { @@ -78,8 +83,25 @@ public Card cvc(String cvc) { } /** - * The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. - * @return cvc The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. + * The [card verification + * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) + * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 + * digits * CID – length: 4 digits > If you are using [Client-Side + * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code + * is present in the encrypted data. You must never post the card details to the server. > This + * field must be always present in a [one-click payment + * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value + * is returned in a response, it is always empty because it is not stored. + * + * @return cvc The [card verification + * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) + * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: + * 3 digits * CID – length: 4 digits > If you are using [Client-Side + * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC + * code is present in the encrypted data. You must never post the card details to the server. + * > This field must be always present in a [one-click payment + * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this + * value is returned in a response, it is always empty because it is not stored. */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -88,9 +110,25 @@ public String getCvc() { } /** - * The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. + * The [card verification + * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) + * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 + * digits * CID – length: 4 digits > If you are using [Client-Side + * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code + * is present in the encrypted data. You must never post the card details to the server. > This + * field must be always present in a [one-click payment + * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value + * is returned in a response, it is always empty because it is not stored. * - * @param cvc The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. + * @param cvc The [card verification + * code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) + * (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: + * 3 digits * CID – length: 4 digits > If you are using [Client-Side + * Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC + * code is present in the encrypted data. You must never post the card details to the server. + * > This field must be always present in a [one-click payment + * request](https://docs.adyen.com/classic-integration/recurring-payments). > When this + * value is returned in a response, it is always empty because it is not stored. */ @JsonProperty(JSON_PROPERTY_CVC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,9 +137,11 @@ public void setCvc(String cvc) { } /** - * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November + * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 + * = March * 11 = November * - * @param expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November + * @param expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For + * example: * 03 = March * 11 = November * @return the current {@code Card} instance, allowing for method chaining */ public Card expiryMonth(String expiryMonth) { @@ -110,8 +150,11 @@ public Card expiryMonth(String expiryMonth) { } /** - * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November - * @return expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November + * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 + * = March * 11 = November + * + * @return expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For + * example: * 03 = March * 11 = November */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -120,9 +163,11 @@ public String getExpiryMonth() { } /** - * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November + * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 + * = March * 11 = November * - * @param expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November + * @param expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For + * example: * 03 = March * 11 = November */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,6 +188,7 @@ public Card expiryYear(String expiryYear) { /** * The card expiry year. Format: 4 digits. For example: 2020 + * * @return expiryYear The card expiry year. Format: 4 digits. For example: 2020 */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @@ -175,6 +221,7 @@ public Card holderName(String holderName) { /** * The name of the cardholder, as printed on the card. + * * @return holderName The name of the cardholder, as printed on the card. */ @JsonProperty(JSON_PROPERTY_HOLDER_NAME) @@ -207,6 +254,7 @@ public Card issueNumber(String issueNumber) { /** * The issue number of the card (for some UK debit cards only). + * * @return issueNumber The issue number of the card (for some UK debit cards only). */ @JsonProperty(JSON_PROPERTY_ISSUE_NUMBER) @@ -227,9 +275,11 @@ public void setIssueNumber(String issueNumber) { } /** - * The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. + * The card number (4-19 characters). Do not use any separators. When this value is returned in a + * response, only the last 4 digits of the card number are returned. * - * @param number The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. + * @param number The card number (4-19 characters). Do not use any separators. When this value is + * returned in a response, only the last 4 digits of the card number are returned. * @return the current {@code Card} instance, allowing for method chaining */ public Card number(String number) { @@ -238,8 +288,11 @@ public Card number(String number) { } /** - * The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. - * @return number The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. + * The card number (4-19 characters). Do not use any separators. When this value is returned in a + * response, only the last 4 digits of the card number are returned. + * + * @return number The card number (4-19 characters). Do not use any separators. When this value is + * returned in a response, only the last 4 digits of the card number are returned. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -248,9 +301,11 @@ public String getNumber() { } /** - * The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. + * The card number (4-19 characters). Do not use any separators. When this value is returned in a + * response, only the last 4 digits of the card number are returned. * - * @param number The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. + * @param number The card number (4-19 characters). Do not use any separators. When this value is + * returned in a response, only the last 4 digits of the card number are returned. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -271,6 +326,7 @@ public Card startMonth(String startMonth) { /** * The month component of the start date (for some UK debit cards only). + * * @return startMonth The month component of the start date (for some UK debit cards only). */ @JsonProperty(JSON_PROPERTY_START_MONTH) @@ -303,6 +359,7 @@ public Card startYear(String startYear) { /** * The year component of the start date (for some UK debit cards only). + * * @return startYear The year component of the start date (for some UK debit cards only). */ @JsonProperty(JSON_PROPERTY_START_YEAR) @@ -322,9 +379,7 @@ public void setStartYear(String startYear) { this.startYear = startYear; } - /** - * Return true if this Card object is equal to o. - */ + /** Return true if this Card object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -334,19 +389,20 @@ public boolean equals(Object o) { return false; } Card card = (Card) o; - return Objects.equals(this.cvc, card.cvc) && - Objects.equals(this.expiryMonth, card.expiryMonth) && - Objects.equals(this.expiryYear, card.expiryYear) && - Objects.equals(this.holderName, card.holderName) && - Objects.equals(this.issueNumber, card.issueNumber) && - Objects.equals(this.number, card.number) && - Objects.equals(this.startMonth, card.startMonth) && - Objects.equals(this.startYear, card.startYear); + return Objects.equals(this.cvc, card.cvc) + && Objects.equals(this.expiryMonth, card.expiryMonth) + && Objects.equals(this.expiryYear, card.expiryYear) + && Objects.equals(this.holderName, card.holderName) + && Objects.equals(this.issueNumber, card.issueNumber) + && Objects.equals(this.number, card.number) + && Objects.equals(this.startMonth, card.startMonth) + && Objects.equals(this.startYear, card.startYear); } @Override public int hashCode() { - return Objects.hash(cvc, expiryMonth, expiryYear, holderName, issueNumber, number, startMonth, startYear); + return Objects.hash( + cvc, expiryMonth, expiryYear, holderName, issueNumber, number, startMonth, startYear); } @Override @@ -366,8 +422,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -376,7 +431,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Card given an JSON string * * @param jsonString JSON string @@ -386,11 +441,12 @@ private String toIndentedString(Object o) { public static Card fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Card.class); } -/** - * Convert an instance of Card to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Card to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/CreatePermitRequest.java b/src/main/java/com/adyen/model/recurring/CreatePermitRequest.java index 66155a471..f66a074ba 100644 --- a/src/main/java/com/adyen/model/recurring/CreatePermitRequest.java +++ b/src/main/java/com/adyen/model/recurring/CreatePermitRequest.java @@ -2,41 +2,30 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.recurring; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.recurring.Permit; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * CreatePermitRequest - */ +/** CreatePermitRequest */ @JsonPropertyOrder({ CreatePermitRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, CreatePermitRequest.JSON_PROPERTY_PERMITS, CreatePermitRequest.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, CreatePermitRequest.JSON_PROPERTY_SHOPPER_REFERENCE }) - public class CreatePermitRequest { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; @@ -50,13 +39,13 @@ public class CreatePermitRequest { public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference"; private String shopperReference; - public CreatePermitRequest() { - } + public CreatePermitRequest() {} /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. * @return the current {@code CreatePermitRequest} instance, allowing for method chaining */ public CreatePermitRequest merchantAccount(String merchantAccount) { @@ -66,7 +55,9 @@ public CreatePermitRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * @return merchantAccount The merchant account identifier, with which you want to process the transaction. + * + * @return merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -77,7 +68,8 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,6 +98,7 @@ public CreatePermitRequest addPermitsItem(Permit permitsItem) { /** * The permits to create for this recurring contract. + * * @return permits The permits to create for this recurring contract. */ @JsonProperty(JSON_PROPERTY_PERMITS) @@ -138,6 +131,7 @@ public CreatePermitRequest recurringDetailReference(String recurringDetailRefere /** * The recurring contract the new permits will use. + * * @return recurringDetailReference The recurring contract the new permits will use. */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -160,7 +154,8 @@ public void setRecurringDetailReference(String recurringDetailReference) { /** * The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). * - * @param shopperReference The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). + * @param shopperReference The shopper's reference to uniquely identify this shopper (e.g. + * user ID or account ID). * @return the current {@code CreatePermitRequest} instance, allowing for method chaining */ public CreatePermitRequest shopperReference(String shopperReference) { @@ -170,7 +165,9 @@ public CreatePermitRequest shopperReference(String shopperReference) { /** * The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). - * @return shopperReference The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). + * + * @return shopperReference The shopper's reference to uniquely identify this shopper (e.g. + * user ID or account ID). */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,7 +178,8 @@ public String getShopperReference() { /** * The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). * - * @param shopperReference The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). + * @param shopperReference The shopper's reference to uniquely identify this shopper (e.g. + * user ID or account ID). */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,9 +187,7 @@ public void setShopperReference(String shopperReference) { this.shopperReference = shopperReference; } - /** - * Return true if this CreatePermitRequest object is equal to o. - */ + /** Return true if this CreatePermitRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -201,10 +197,11 @@ public boolean equals(Object o) { return false; } CreatePermitRequest createPermitRequest = (CreatePermitRequest) o; - return Objects.equals(this.merchantAccount, createPermitRequest.merchantAccount) && - Objects.equals(this.permits, createPermitRequest.permits) && - Objects.equals(this.recurringDetailReference, createPermitRequest.recurringDetailReference) && - Objects.equals(this.shopperReference, createPermitRequest.shopperReference); + return Objects.equals(this.merchantAccount, createPermitRequest.merchantAccount) + && Objects.equals(this.permits, createPermitRequest.permits) + && Objects.equals( + this.recurringDetailReference, createPermitRequest.recurringDetailReference) + && Objects.equals(this.shopperReference, createPermitRequest.shopperReference); } @Override @@ -218,15 +215,16 @@ public String toString() { sb.append("class CreatePermitRequest {\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" permits: ").append(toIndentedString(permits)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -235,21 +233,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CreatePermitRequest given an JSON string * * @param jsonString JSON string * @return An instance of CreatePermitRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to CreatePermitRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CreatePermitRequest */ public static CreatePermitRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreatePermitRequest.class); } -/** - * Convert an instance of CreatePermitRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CreatePermitRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/CreatePermitResult.java b/src/main/java/com/adyen/model/recurring/CreatePermitResult.java index 9253f4e05..9f7bddc93 100644 --- a/src/main/java/com/adyen/model/recurring/CreatePermitResult.java +++ b/src/main/java/com/adyen/model/recurring/CreatePermitResult.java @@ -2,39 +2,28 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.recurring; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.recurring.PermitResult; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * CreatePermitResult - */ +/** CreatePermitResult */ @JsonPropertyOrder({ CreatePermitResult.JSON_PROPERTY_PERMIT_RESULT_LIST, CreatePermitResult.JSON_PROPERTY_PSP_REFERENCE }) - public class CreatePermitResult { public static final String JSON_PROPERTY_PERMIT_RESULT_LIST = "permitResultList"; private List permitResultList; @@ -42,8 +31,7 @@ public class CreatePermitResult { public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference"; private String pspReference; - public CreatePermitResult() { - } + public CreatePermitResult() {} /** * List of new permits. @@ -66,6 +54,7 @@ public CreatePermitResult addPermitResultListItem(PermitResult permitResultListI /** * List of new permits. + * * @return permitResultList List of new permits. */ @JsonProperty(JSON_PROPERTY_PERMIT_RESULT_LIST) @@ -86,9 +75,11 @@ public void setPermitResultList(List permitResultList) { } /** - * A unique reference associated with the request. This value is globally unique; quote it when communicating with us about this request. + * A unique reference associated with the request. This value is globally unique; quote it when + * communicating with us about this request. * - * @param pspReference A unique reference associated with the request. This value is globally unique; quote it when communicating with us about this request. + * @param pspReference A unique reference associated with the request. This value is globally + * unique; quote it when communicating with us about this request. * @return the current {@code CreatePermitResult} instance, allowing for method chaining */ public CreatePermitResult pspReference(String pspReference) { @@ -97,8 +88,11 @@ public CreatePermitResult pspReference(String pspReference) { } /** - * A unique reference associated with the request. This value is globally unique; quote it when communicating with us about this request. - * @return pspReference A unique reference associated with the request. This value is globally unique; quote it when communicating with us about this request. + * A unique reference associated with the request. This value is globally unique; quote it when + * communicating with us about this request. + * + * @return pspReference A unique reference associated with the request. This value is globally + * unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,9 +101,11 @@ public String getPspReference() { } /** - * A unique reference associated with the request. This value is globally unique; quote it when communicating with us about this request. + * A unique reference associated with the request. This value is globally unique; quote it when + * communicating with us about this request. * - * @param pspReference A unique reference associated with the request. This value is globally unique; quote it when communicating with us about this request. + * @param pspReference A unique reference associated with the request. This value is globally + * unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,9 +113,7 @@ public void setPspReference(String pspReference) { this.pspReference = pspReference; } - /** - * Return true if this CreatePermitResult object is equal to o. - */ + /** Return true if this CreatePermitResult object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -129,8 +123,8 @@ public boolean equals(Object o) { return false; } CreatePermitResult createPermitResult = (CreatePermitResult) o; - return Objects.equals(this.permitResultList, createPermitResult.permitResultList) && - Objects.equals(this.pspReference, createPermitResult.pspReference); + return Objects.equals(this.permitResultList, createPermitResult.permitResultList) + && Objects.equals(this.pspReference, createPermitResult.pspReference); } @Override @@ -149,8 +143,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -159,21 +152,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CreatePermitResult given an JSON string * * @param jsonString JSON string * @return An instance of CreatePermitResult - * @throws JsonProcessingException if the JSON string is invalid with respect to CreatePermitResult + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CreatePermitResult */ public static CreatePermitResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CreatePermitResult.class); } -/** - * Convert an instance of CreatePermitResult to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CreatePermitResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/DisablePermitRequest.java b/src/main/java/com/adyen/model/recurring/DisablePermitRequest.java index 3dbb769f7..8e6830aa3 100644 --- a/src/main/java/com/adyen/model/recurring/DisablePermitRequest.java +++ b/src/main/java/com/adyen/model/recurring/DisablePermitRequest.java @@ -2,36 +2,26 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.recurring; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * DisablePermitRequest - */ +/** DisablePermitRequest */ @JsonPropertyOrder({ DisablePermitRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, DisablePermitRequest.JSON_PROPERTY_TOKEN }) - public class DisablePermitRequest { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; @@ -39,13 +29,13 @@ public class DisablePermitRequest { public static final String JSON_PROPERTY_TOKEN = "token"; private String token; - public DisablePermitRequest() { - } + public DisablePermitRequest() {} /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. * @return the current {@code DisablePermitRequest} instance, allowing for method chaining */ public DisablePermitRequest merchantAccount(String merchantAccount) { @@ -55,7 +45,9 @@ public DisablePermitRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * @return merchantAccount The merchant account identifier, with which you want to process the transaction. + * + * @return merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -66,7 +58,8 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,6 +80,7 @@ public DisablePermitRequest token(String token) { /** * The permit token to disable. + * * @return token The permit token to disable. */ @JsonProperty(JSON_PROPERTY_TOKEN) @@ -106,9 +100,7 @@ public void setToken(String token) { this.token = token; } - /** - * Return true if this DisablePermitRequest object is equal to o. - */ + /** Return true if this DisablePermitRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +110,8 @@ public boolean equals(Object o) { return false; } DisablePermitRequest disablePermitRequest = (DisablePermitRequest) o; - return Objects.equals(this.merchantAccount, disablePermitRequest.merchantAccount) && - Objects.equals(this.token, disablePermitRequest.token); + return Objects.equals(this.merchantAccount, disablePermitRequest.merchantAccount) + && Objects.equals(this.token, disablePermitRequest.token); } @Override @@ -138,8 +130,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +139,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DisablePermitRequest given an JSON string * * @param jsonString JSON string * @return An instance of DisablePermitRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to DisablePermitRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DisablePermitRequest */ public static DisablePermitRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DisablePermitRequest.class); } -/** - * Convert an instance of DisablePermitRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DisablePermitRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/DisablePermitResult.java b/src/main/java/com/adyen/model/recurring/DisablePermitResult.java index 599ebb780..ed445bf9c 100644 --- a/src/main/java/com/adyen/model/recurring/DisablePermitResult.java +++ b/src/main/java/com/adyen/model/recurring/DisablePermitResult.java @@ -2,36 +2,26 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.recurring; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * DisablePermitResult - */ +/** DisablePermitResult */ @JsonPropertyOrder({ DisablePermitResult.JSON_PROPERTY_PSP_REFERENCE, DisablePermitResult.JSON_PROPERTY_STATUS }) - public class DisablePermitResult { public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference"; private String pspReference; @@ -39,13 +29,14 @@ public class DisablePermitResult { public static final String JSON_PROPERTY_STATUS = "status"; private String status; - public DisablePermitResult() { - } + public DisablePermitResult() {} /** - * A unique reference associated with the request. This value is globally unique; quote it when communicating with us about this request. + * A unique reference associated with the request. This value is globally unique; quote it when + * communicating with us about this request. * - * @param pspReference A unique reference associated with the request. This value is globally unique; quote it when communicating with us about this request. + * @param pspReference A unique reference associated with the request. This value is globally + * unique; quote it when communicating with us about this request. * @return the current {@code DisablePermitResult} instance, allowing for method chaining */ public DisablePermitResult pspReference(String pspReference) { @@ -54,8 +45,11 @@ public DisablePermitResult pspReference(String pspReference) { } /** - * A unique reference associated with the request. This value is globally unique; quote it when communicating with us about this request. - * @return pspReference A unique reference associated with the request. This value is globally unique; quote it when communicating with us about this request. + * A unique reference associated with the request. This value is globally unique; quote it when + * communicating with us about this request. + * + * @return pspReference A unique reference associated with the request. This value is globally + * unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +58,11 @@ public String getPspReference() { } /** - * A unique reference associated with the request. This value is globally unique; quote it when communicating with us about this request. + * A unique reference associated with the request. This value is globally unique; quote it when + * communicating with us about this request. * - * @param pspReference A unique reference associated with the request. This value is globally unique; quote it when communicating with us about this request. + * @param pspReference A unique reference associated with the request. This value is globally + * unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,6 +83,7 @@ public DisablePermitResult status(String status) { /** * Status of the disable request. + * * @return status Status of the disable request. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -106,9 +103,7 @@ public void setStatus(String status) { this.status = status; } - /** - * Return true if this DisablePermitResult object is equal to o. - */ + /** Return true if this DisablePermitResult object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +113,8 @@ public boolean equals(Object o) { return false; } DisablePermitResult disablePermitResult = (DisablePermitResult) o; - return Objects.equals(this.pspReference, disablePermitResult.pspReference) && - Objects.equals(this.status, disablePermitResult.status); + return Objects.equals(this.pspReference, disablePermitResult.pspReference) + && Objects.equals(this.status, disablePermitResult.status); } @Override @@ -138,8 +133,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +142,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DisablePermitResult given an JSON string * * @param jsonString JSON string * @return An instance of DisablePermitResult - * @throws JsonProcessingException if the JSON string is invalid with respect to DisablePermitResult + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DisablePermitResult */ public static DisablePermitResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DisablePermitResult.class); } -/** - * Convert an instance of DisablePermitResult to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DisablePermitResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/DisableRequest.java b/src/main/java/com/adyen/model/recurring/DisableRequest.java index 3091ca36f..d7a11b774 100644 --- a/src/main/java/com/adyen/model/recurring/DisableRequest.java +++ b/src/main/java/com/adyen/model/recurring/DisableRequest.java @@ -2,38 +2,28 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.recurring; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * DisableRequest - */ +/** DisableRequest */ @JsonPropertyOrder({ DisableRequest.JSON_PROPERTY_CONTRACT, DisableRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, DisableRequest.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, DisableRequest.JSON_PROPERTY_SHOPPER_REFERENCE }) - public class DisableRequest { public static final String JSON_PROPERTY_CONTRACT = "contract"; private String contract; @@ -47,13 +37,16 @@ public class DisableRequest { public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference"; private String shopperReference; - public DisableRequest() { - } + public DisableRequest() {} /** - * Specify the contract if you only want to disable a specific use. This field can be set to one of the following values, or to their combination (comma-separated): * ONECLICK * RECURRING * PAYOUT + * Specify the contract if you only want to disable a specific use. This field can be set to one + * of the following values, or to their combination (comma-separated): * ONECLICK * RECURRING * + * PAYOUT * - * @param contract Specify the contract if you only want to disable a specific use. This field can be set to one of the following values, or to their combination (comma-separated): * ONECLICK * RECURRING * PAYOUT + * @param contract Specify the contract if you only want to disable a specific use. This field can + * be set to one of the following values, or to their combination (comma-separated): * + * ONECLICK * RECURRING * PAYOUT * @return the current {@code DisableRequest} instance, allowing for method chaining */ public DisableRequest contract(String contract) { @@ -62,8 +55,13 @@ public DisableRequest contract(String contract) { } /** - * Specify the contract if you only want to disable a specific use. This field can be set to one of the following values, or to their combination (comma-separated): * ONECLICK * RECURRING * PAYOUT - * @return contract Specify the contract if you only want to disable a specific use. This field can be set to one of the following values, or to their combination (comma-separated): * ONECLICK * RECURRING * PAYOUT + * Specify the contract if you only want to disable a specific use. This field can be set to one + * of the following values, or to their combination (comma-separated): * ONECLICK * RECURRING * + * PAYOUT + * + * @return contract Specify the contract if you only want to disable a specific use. This field + * can be set to one of the following values, or to their combination (comma-separated): * + * ONECLICK * RECURRING * PAYOUT */ @JsonProperty(JSON_PROPERTY_CONTRACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -72,9 +70,13 @@ public String getContract() { } /** - * Specify the contract if you only want to disable a specific use. This field can be set to one of the following values, or to their combination (comma-separated): * ONECLICK * RECURRING * PAYOUT + * Specify the contract if you only want to disable a specific use. This field can be set to one + * of the following values, or to their combination (comma-separated): * ONECLICK * RECURRING * + * PAYOUT * - * @param contract Specify the contract if you only want to disable a specific use. This field can be set to one of the following values, or to their combination (comma-separated): * ONECLICK * RECURRING * PAYOUT + * @param contract Specify the contract if you only want to disable a specific use. This field can + * be set to one of the following values, or to their combination (comma-separated): * + * ONECLICK * RECURRING * PAYOUT */ @JsonProperty(JSON_PROPERTY_CONTRACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -85,7 +87,8 @@ public void setContract(String contract) { /** * The merchant account identifier with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier with which you want to process the transaction. + * @param merchantAccount The merchant account identifier with which you want to process the + * transaction. * @return the current {@code DisableRequest} instance, allowing for method chaining */ public DisableRequest merchantAccount(String merchantAccount) { @@ -95,7 +98,9 @@ public DisableRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier with which you want to process the transaction. - * @return merchantAccount The merchant account identifier with which you want to process the transaction. + * + * @return merchantAccount The merchant account identifier with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,7 +111,8 @@ public String getMerchantAccount() { /** * The merchant account identifier with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier with which you want to process the transaction. + * @param merchantAccount The merchant account identifier with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,9 +121,13 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The ID that uniquely identifies the recurring detail reference. If it is not provided, the whole recurring contract of the `shopperReference` will be disabled, which includes all recurring details. + * The ID that uniquely identifies the recurring detail reference. If it is not provided, the + * whole recurring contract of the `shopperReference` will be disabled, which includes + * all recurring details. * - * @param recurringDetailReference The ID that uniquely identifies the recurring detail reference. If it is not provided, the whole recurring contract of the `shopperReference` will be disabled, which includes all recurring details. + * @param recurringDetailReference The ID that uniquely identifies the recurring detail reference. + * If it is not provided, the whole recurring contract of the `shopperReference` + * will be disabled, which includes all recurring details. * @return the current {@code DisableRequest} instance, allowing for method chaining */ public DisableRequest recurringDetailReference(String recurringDetailReference) { @@ -126,8 +136,13 @@ public DisableRequest recurringDetailReference(String recurringDetailReference) } /** - * The ID that uniquely identifies the recurring detail reference. If it is not provided, the whole recurring contract of the `shopperReference` will be disabled, which includes all recurring details. - * @return recurringDetailReference The ID that uniquely identifies the recurring detail reference. If it is not provided, the whole recurring contract of the `shopperReference` will be disabled, which includes all recurring details. + * The ID that uniquely identifies the recurring detail reference. If it is not provided, the + * whole recurring contract of the `shopperReference` will be disabled, which includes + * all recurring details. + * + * @return recurringDetailReference The ID that uniquely identifies the recurring detail + * reference. If it is not provided, the whole recurring contract of the + * `shopperReference` will be disabled, which includes all recurring details. */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,9 +151,13 @@ public String getRecurringDetailReference() { } /** - * The ID that uniquely identifies the recurring detail reference. If it is not provided, the whole recurring contract of the `shopperReference` will be disabled, which includes all recurring details. + * The ID that uniquely identifies the recurring detail reference. If it is not provided, the + * whole recurring contract of the `shopperReference` will be disabled, which includes + * all recurring details. * - * @param recurringDetailReference The ID that uniquely identifies the recurring detail reference. If it is not provided, the whole recurring contract of the `shopperReference` will be disabled, which includes all recurring details. + * @param recurringDetailReference The ID that uniquely identifies the recurring detail reference. + * If it is not provided, the whole recurring contract of the `shopperReference` + * will be disabled, which includes all recurring details. */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,9 +166,12 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment. + * The ID that uniquely identifies the shopper. This `shopperReference` must be the same + * as the `shopperReference` used in the initial payment. * - * @param shopperReference The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment. + * @param shopperReference The ID that uniquely identifies the shopper. This + * `shopperReference` must be the same as the `shopperReference` used in + * the initial payment. * @return the current {@code DisableRequest} instance, allowing for method chaining */ public DisableRequest shopperReference(String shopperReference) { @@ -158,8 +180,12 @@ public DisableRequest shopperReference(String shopperReference) { } /** - * The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment. - * @return shopperReference The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment. + * The ID that uniquely identifies the shopper. This `shopperReference` must be the same + * as the `shopperReference` used in the initial payment. + * + * @return shopperReference The ID that uniquely identifies the shopper. This + * `shopperReference` must be the same as the `shopperReference` used in + * the initial payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,9 +194,12 @@ public String getShopperReference() { } /** - * The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment. + * The ID that uniquely identifies the shopper. This `shopperReference` must be the same + * as the `shopperReference` used in the initial payment. * - * @param shopperReference The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment. + * @param shopperReference The ID that uniquely identifies the shopper. This + * `shopperReference` must be the same as the `shopperReference` used in + * the initial payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,9 +207,7 @@ public void setShopperReference(String shopperReference) { this.shopperReference = shopperReference; } - /** - * Return true if this DisableRequest object is equal to o. - */ + /** Return true if this DisableRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -190,10 +217,10 @@ public boolean equals(Object o) { return false; } DisableRequest disableRequest = (DisableRequest) o; - return Objects.equals(this.contract, disableRequest.contract) && - Objects.equals(this.merchantAccount, disableRequest.merchantAccount) && - Objects.equals(this.recurringDetailReference, disableRequest.recurringDetailReference) && - Objects.equals(this.shopperReference, disableRequest.shopperReference); + return Objects.equals(this.contract, disableRequest.contract) + && Objects.equals(this.merchantAccount, disableRequest.merchantAccount) + && Objects.equals(this.recurringDetailReference, disableRequest.recurringDetailReference) + && Objects.equals(this.shopperReference, disableRequest.shopperReference); } @Override @@ -207,15 +234,16 @@ public String toString() { sb.append("class DisableRequest {\n"); sb.append(" contract: ").append(toIndentedString(contract)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,7 +252,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DisableRequest given an JSON string * * @param jsonString JSON string @@ -234,11 +262,12 @@ private String toIndentedString(Object o) { public static DisableRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DisableRequest.class); } -/** - * Convert an instance of DisableRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DisableRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/DisableResult.java b/src/main/java/com/adyen/model/recurring/DisableResult.java index 08d476f7e..6736e22c0 100644 --- a/src/main/java/com/adyen/model/recurring/DisableResult.java +++ b/src/main/java/com/adyen/model/recurring/DisableResult.java @@ -2,46 +2,35 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.recurring; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * DisableResult - */ -@JsonPropertyOrder({ - DisableResult.JSON_PROPERTY_RESPONSE -}) - +/** DisableResult */ +@JsonPropertyOrder({DisableResult.JSON_PROPERTY_RESPONSE}) public class DisableResult { public static final String JSON_PROPERTY_RESPONSE = "response"; private String response; - public DisableResult() { - } + public DisableResult() {} /** - * Depending on whether a specific recurring detail was in the request, result is either [detail-successfully-disabled] or [all-details-successfully-disabled]. + * Depending on whether a specific recurring detail was in the request, result is either + * [detail-successfully-disabled] or [all-details-successfully-disabled]. * - * @param response Depending on whether a specific recurring detail was in the request, result is either [detail-successfully-disabled] or [all-details-successfully-disabled]. + * @param response Depending on whether a specific recurring detail was in the request, result is + * either [detail-successfully-disabled] or [all-details-successfully-disabled]. * @return the current {@code DisableResult} instance, allowing for method chaining */ public DisableResult response(String response) { @@ -50,8 +39,11 @@ public DisableResult response(String response) { } /** - * Depending on whether a specific recurring detail was in the request, result is either [detail-successfully-disabled] or [all-details-successfully-disabled]. - * @return response Depending on whether a specific recurring detail was in the request, result is either [detail-successfully-disabled] or [all-details-successfully-disabled]. + * Depending on whether a specific recurring detail was in the request, result is either + * [detail-successfully-disabled] or [all-details-successfully-disabled]. + * + * @return response Depending on whether a specific recurring detail was in the request, result is + * either [detail-successfully-disabled] or [all-details-successfully-disabled]. */ @JsonProperty(JSON_PROPERTY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,9 +52,11 @@ public String getResponse() { } /** - * Depending on whether a specific recurring detail was in the request, result is either [detail-successfully-disabled] or [all-details-successfully-disabled]. + * Depending on whether a specific recurring detail was in the request, result is either + * [detail-successfully-disabled] or [all-details-successfully-disabled]. * - * @param response Depending on whether a specific recurring detail was in the request, result is either [detail-successfully-disabled] or [all-details-successfully-disabled]. + * @param response Depending on whether a specific recurring detail was in the request, result is + * either [detail-successfully-disabled] or [all-details-successfully-disabled]. */ @JsonProperty(JSON_PROPERTY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +64,7 @@ public void setResponse(String response) { this.response = response; } - /** - * Return true if this DisableResult object is equal to o. - */ + /** Return true if this DisableResult object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +92,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,7 +101,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DisableResult given an JSON string * * @param jsonString JSON string @@ -120,11 +111,12 @@ private String toIndentedString(Object o) { public static DisableResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DisableResult.class); } -/** - * Convert an instance of DisableResult to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DisableResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/JSON.java b/src/main/java/com/adyen/model/recurring/JSON.java index 9adc47a06..212414577 100644 --- a/src/main/java/com/adyen/model/recurring/JSON.java +++ b/src/main/java/com/adyen/model/recurring/JSON.java @@ -1,21 +1,18 @@ package com.adyen.model.recurring; -import com.adyen.serializer.ByteArraySerializer; import com.adyen.serializer.ByteArrayDeserializer; +import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import com.adyen.model.recurring.*; - +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -40,6 +37,7 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. + * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -56,11 +54,13 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { return mapper; } + public static ObjectMapper getMapper() { + return mapper; + } /** - * Returns the target model class that should be used to deserialize the input data. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,9 +73,7 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** - * Helper class to register the discriminator mappings. - */ + /** Helper class to register the discriminator mappings. */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -117,9 +115,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. - * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. This + * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -164,13 +162,14 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, - * so it's not possible to use the instanceof keyword. + *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so + * it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf( + Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -194,59 +193,58 @@ public static boolean isInstanceOf(Class modelClass, Object inst, Set, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); + /** A map of discriminators for all model classes. */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = + new HashMap, ClassDiscriminatorMapping>(); - /** - * A map of oneOf/anyOf descendants for each model class. - */ + /** A map of oneOf/anyOf descendants for each model class. */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator( + Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = + new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants(Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants( + Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static - { + static { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/recurring/Name.java b/src/main/java/com/adyen/model/recurring/Name.java index 486ff75f0..7d5173efc 100644 --- a/src/main/java/com/adyen/model/recurring/Name.java +++ b/src/main/java/com/adyen/model/recurring/Name.java @@ -2,36 +2,23 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.recurring; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Name - */ -@JsonPropertyOrder({ - Name.JSON_PROPERTY_FIRST_NAME, - Name.JSON_PROPERTY_LAST_NAME -}) - +/** Name */ +@JsonPropertyOrder({Name.JSON_PROPERTY_FIRST_NAME, Name.JSON_PROPERTY_LAST_NAME}) public class Name { public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; private String firstName; @@ -39,8 +26,7 @@ public class Name { public static final String JSON_PROPERTY_LAST_NAME = "lastName"; private String lastName; - public Name() { - } + public Name() {} /** * The first name. @@ -55,6 +41,7 @@ public Name firstName(String firstName) { /** * The first name. + * * @return firstName The first name. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @@ -87,6 +74,7 @@ public Name lastName(String lastName) { /** * The last name. + * * @return lastName The last name. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @@ -106,9 +94,7 @@ public void setLastName(String lastName) { this.lastName = lastName; } - /** - * Return true if this Name object is equal to o. - */ + /** Return true if this Name object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +104,8 @@ public boolean equals(Object o) { return false; } Name name = (Name) o; - return Objects.equals(this.firstName, name.firstName) && - Objects.equals(this.lastName, name.lastName); + return Objects.equals(this.firstName, name.firstName) + && Objects.equals(this.lastName, name.lastName); } @Override @@ -138,8 +124,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +133,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Name given an JSON string * * @param jsonString JSON string @@ -158,11 +143,12 @@ private String toIndentedString(Object o) { public static Name fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Name.class); } -/** - * Convert an instance of Name to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Name to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/NotifyShopperRequest.java b/src/main/java/com/adyen/model/recurring/NotifyShopperRequest.java index 5a77d22d2..f08569e1f 100644 --- a/src/main/java/com/adyen/model/recurring/NotifyShopperRequest.java +++ b/src/main/java/com/adyen/model/recurring/NotifyShopperRequest.java @@ -2,32 +2,22 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.recurring; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.recurring.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * NotifyShopperRequest - */ +/** NotifyShopperRequest */ @JsonPropertyOrder({ NotifyShopperRequest.JSON_PROPERTY_AMOUNT, NotifyShopperRequest.JSON_PROPERTY_BILLING_DATE, @@ -39,7 +29,6 @@ NotifyShopperRequest.JSON_PROPERTY_SHOPPER_REFERENCE, NotifyShopperRequest.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID }) - public class NotifyShopperRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -68,13 +57,12 @@ public class NotifyShopperRequest { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - public NotifyShopperRequest() { - } + public NotifyShopperRequest() {} /** * amount * - * @param amount + * @param amount * @return the current {@code NotifyShopperRequest} instance, allowing for method chaining */ public NotifyShopperRequest amount(Amount amount) { @@ -84,7 +72,8 @@ public NotifyShopperRequest amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -95,7 +84,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,7 +95,8 @@ public void setAmount(Amount amount) { /** * Date on which the subscription amount will be debited from the shopper. In YYYY-MM-DD format * - * @param billingDate Date on which the subscription amount will be debited from the shopper. In YYYY-MM-DD format + * @param billingDate Date on which the subscription amount will be debited from the shopper. In + * YYYY-MM-DD format * @return the current {@code NotifyShopperRequest} instance, allowing for method chaining */ public NotifyShopperRequest billingDate(String billingDate) { @@ -116,7 +106,9 @@ public NotifyShopperRequest billingDate(String billingDate) { /** * Date on which the subscription amount will be debited from the shopper. In YYYY-MM-DD format - * @return billingDate Date on which the subscription amount will be debited from the shopper. In YYYY-MM-DD format + * + * @return billingDate Date on which the subscription amount will be debited from the shopper. In + * YYYY-MM-DD format */ @JsonProperty(JSON_PROPERTY_BILLING_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,7 +119,8 @@ public String getBillingDate() { /** * Date on which the subscription amount will be debited from the shopper. In YYYY-MM-DD format * - * @param billingDate Date on which the subscription amount will be debited from the shopper. In YYYY-MM-DD format + * @param billingDate Date on which the subscription amount will be debited from the shopper. In + * YYYY-MM-DD format */ @JsonProperty(JSON_PROPERTY_BILLING_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,7 +131,8 @@ public void setBillingDate(String billingDate) { /** * Sequence of the debit. Depends on Frequency and Billing Attempts Rule. * - * @param billingSequenceNumber Sequence of the debit. Depends on Frequency and Billing Attempts Rule. + * @param billingSequenceNumber Sequence of the debit. Depends on Frequency and Billing Attempts + * Rule. * @return the current {@code NotifyShopperRequest} instance, allowing for method chaining */ public NotifyShopperRequest billingSequenceNumber(String billingSequenceNumber) { @@ -148,7 +142,9 @@ public NotifyShopperRequest billingSequenceNumber(String billingSequenceNumber) /** * Sequence of the debit. Depends on Frequency and Billing Attempts Rule. - * @return billingSequenceNumber Sequence of the debit. Depends on Frequency and Billing Attempts Rule. + * + * @return billingSequenceNumber Sequence of the debit. Depends on Frequency and Billing Attempts + * Rule. */ @JsonProperty(JSON_PROPERTY_BILLING_SEQUENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,7 +155,8 @@ public String getBillingSequenceNumber() { /** * Sequence of the debit. Depends on Frequency and Billing Attempts Rule. * - * @param billingSequenceNumber Sequence of the debit. Depends on Frequency and Billing Attempts Rule. + * @param billingSequenceNumber Sequence of the debit. Depends on Frequency and Billing Attempts + * Rule. */ @JsonProperty(JSON_PROPERTY_BILLING_SEQUENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,9 +165,11 @@ public void setBillingSequenceNumber(String billingSequenceNumber) { } /** - * Reference of Pre-debit notification that is displayed to the shopper. Optional field. Maps to reference if missing + * Reference of Pre-debit notification that is displayed to the shopper. Optional field. Maps to + * reference if missing * - * @param displayedReference Reference of Pre-debit notification that is displayed to the shopper. Optional field. Maps to reference if missing + * @param displayedReference Reference of Pre-debit notification that is displayed to the shopper. + * Optional field. Maps to reference if missing * @return the current {@code NotifyShopperRequest} instance, allowing for method chaining */ public NotifyShopperRequest displayedReference(String displayedReference) { @@ -179,8 +178,11 @@ public NotifyShopperRequest displayedReference(String displayedReference) { } /** - * Reference of Pre-debit notification that is displayed to the shopper. Optional field. Maps to reference if missing - * @return displayedReference Reference of Pre-debit notification that is displayed to the shopper. Optional field. Maps to reference if missing + * Reference of Pre-debit notification that is displayed to the shopper. Optional field. Maps to + * reference if missing + * + * @return displayedReference Reference of Pre-debit notification that is displayed to the + * shopper. Optional field. Maps to reference if missing */ @JsonProperty(JSON_PROPERTY_DISPLAYED_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,9 +191,11 @@ public String getDisplayedReference() { } /** - * Reference of Pre-debit notification that is displayed to the shopper. Optional field. Maps to reference if missing + * Reference of Pre-debit notification that is displayed to the shopper. Optional field. Maps to + * reference if missing * - * @param displayedReference Reference of Pre-debit notification that is displayed to the shopper. Optional field. Maps to reference if missing + * @param displayedReference Reference of Pre-debit notification that is displayed to the shopper. + * Optional field. Maps to reference if missing */ @JsonProperty(JSON_PROPERTY_DISPLAYED_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -202,7 +206,8 @@ public void setDisplayedReference(String displayedReference) { /** * The merchant account identifier with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier with which you want to process the transaction. + * @param merchantAccount The merchant account identifier with which you want to process the + * transaction. * @return the current {@code NotifyShopperRequest} instance, allowing for method chaining */ public NotifyShopperRequest merchantAccount(String merchantAccount) { @@ -212,7 +217,9 @@ public NotifyShopperRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier with which you want to process the transaction. - * @return merchantAccount The merchant account identifier with which you want to process the transaction. + * + * @return merchantAccount The merchant account identifier with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,7 +230,8 @@ public String getMerchantAccount() { /** * The merchant account identifier with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier with which you want to process the transaction. + * @param merchantAccount The merchant account identifier with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,9 +240,11 @@ public void setMerchantAccount(String merchantAccount) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. * @return the current {@code NotifyShopperRequest} instance, allowing for method chaining */ public NotifyShopperRequest recurringDetailReference(String recurringDetailReference) { @@ -243,8 +253,11 @@ public NotifyShopperRequest recurringDetailReference(String recurringDetailRefer } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -253,9 +266,11 @@ public String getRecurringDetailReference() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -266,7 +281,8 @@ public void setRecurringDetailReference(String recurringDetailReference) { /** * Pre-debit notification reference sent by the merchant. This is a mandatory field * - * @param reference Pre-debit notification reference sent by the merchant. This is a mandatory field + * @param reference Pre-debit notification reference sent by the merchant. This is a mandatory + * field * @return the current {@code NotifyShopperRequest} instance, allowing for method chaining */ public NotifyShopperRequest reference(String reference) { @@ -276,7 +292,9 @@ public NotifyShopperRequest reference(String reference) { /** * Pre-debit notification reference sent by the merchant. This is a mandatory field - * @return reference Pre-debit notification reference sent by the merchant. This is a mandatory field + * + * @return reference Pre-debit notification reference sent by the merchant. This is a mandatory + * field */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -287,7 +305,8 @@ public String getReference() { /** * Pre-debit notification reference sent by the merchant. This is a mandatory field * - * @param reference Pre-debit notification reference sent by the merchant. This is a mandatory field + * @param reference Pre-debit notification reference sent by the merchant. This is a mandatory + * field */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -296,9 +315,12 @@ public void setReference(String reference) { } /** - * The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment. + * The ID that uniquely identifies the shopper. This `shopperReference` must be the same + * as the `shopperReference` used in the initial payment. * - * @param shopperReference The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment. + * @param shopperReference The ID that uniquely identifies the shopper. This + * `shopperReference` must be the same as the `shopperReference` used in + * the initial payment. * @return the current {@code NotifyShopperRequest} instance, allowing for method chaining */ public NotifyShopperRequest shopperReference(String shopperReference) { @@ -307,8 +329,12 @@ public NotifyShopperRequest shopperReference(String shopperReference) { } /** - * The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment. - * @return shopperReference The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment. + * The ID that uniquely identifies the shopper. This `shopperReference` must be the same + * as the `shopperReference` used in the initial payment. + * + * @return shopperReference The ID that uniquely identifies the shopper. This + * `shopperReference` must be the same as the `shopperReference` used in + * the initial payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -317,9 +343,12 @@ public String getShopperReference() { } /** - * The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment. + * The ID that uniquely identifies the shopper. This `shopperReference` must be the same + * as the `shopperReference` used in the initial payment. * - * @param shopperReference The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment. + * @param shopperReference The ID that uniquely identifies the shopper. This + * `shopperReference` must be the same as the `shopperReference` used in + * the initial payment. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -328,9 +357,11 @@ public void setShopperReference(String shopperReference) { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. * @return the current {@code NotifyShopperRequest} instance, allowing for method chaining */ public NotifyShopperRequest storedPaymentMethodId(String storedPaymentMethodId) { @@ -339,8 +370,11 @@ public NotifyShopperRequest storedPaymentMethodId(String storedPaymentMethodId) } /** - * This is the `recurringDetailReference` returned in the response when you created the token. - * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -349,9 +383,11 @@ public String getStoredPaymentMethodId() { } /** - * This is the `recurringDetailReference` returned in the response when you created the token. + * This is the `recurringDetailReference` returned in the response when you created the + * token. * - * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -359,9 +395,7 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { this.storedPaymentMethodId = storedPaymentMethodId; } - /** - * Return true if this NotifyShopperRequest object is equal to o. - */ + /** Return true if this NotifyShopperRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -371,20 +405,30 @@ public boolean equals(Object o) { return false; } NotifyShopperRequest notifyShopperRequest = (NotifyShopperRequest) o; - return Objects.equals(this.amount, notifyShopperRequest.amount) && - Objects.equals(this.billingDate, notifyShopperRequest.billingDate) && - Objects.equals(this.billingSequenceNumber, notifyShopperRequest.billingSequenceNumber) && - Objects.equals(this.displayedReference, notifyShopperRequest.displayedReference) && - Objects.equals(this.merchantAccount, notifyShopperRequest.merchantAccount) && - Objects.equals(this.recurringDetailReference, notifyShopperRequest.recurringDetailReference) && - Objects.equals(this.reference, notifyShopperRequest.reference) && - Objects.equals(this.shopperReference, notifyShopperRequest.shopperReference) && - Objects.equals(this.storedPaymentMethodId, notifyShopperRequest.storedPaymentMethodId); + return Objects.equals(this.amount, notifyShopperRequest.amount) + && Objects.equals(this.billingDate, notifyShopperRequest.billingDate) + && Objects.equals(this.billingSequenceNumber, notifyShopperRequest.billingSequenceNumber) + && Objects.equals(this.displayedReference, notifyShopperRequest.displayedReference) + && Objects.equals(this.merchantAccount, notifyShopperRequest.merchantAccount) + && Objects.equals( + this.recurringDetailReference, notifyShopperRequest.recurringDetailReference) + && Objects.equals(this.reference, notifyShopperRequest.reference) + && Objects.equals(this.shopperReference, notifyShopperRequest.shopperReference) + && Objects.equals(this.storedPaymentMethodId, notifyShopperRequest.storedPaymentMethodId); } @Override public int hashCode() { - return Objects.hash(amount, billingDate, billingSequenceNumber, displayedReference, merchantAccount, recurringDetailReference, reference, shopperReference, storedPaymentMethodId); + return Objects.hash( + amount, + billingDate, + billingSequenceNumber, + displayedReference, + merchantAccount, + recurringDetailReference, + reference, + shopperReference, + storedPaymentMethodId); } @Override @@ -393,20 +437,25 @@ public String toString() { sb.append("class NotifyShopperRequest {\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" billingDate: ").append(toIndentedString(billingDate)).append("\n"); - sb.append(" billingSequenceNumber: ").append(toIndentedString(billingSequenceNumber)).append("\n"); + sb.append(" billingSequenceNumber: ") + .append(toIndentedString(billingSequenceNumber)) + .append("\n"); sb.append(" displayedReference: ").append(toIndentedString(displayedReference)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -415,21 +464,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of NotifyShopperRequest given an JSON string * * @param jsonString JSON string * @return An instance of NotifyShopperRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to NotifyShopperRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * NotifyShopperRequest */ public static NotifyShopperRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NotifyShopperRequest.class); } -/** - * Convert an instance of NotifyShopperRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of NotifyShopperRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/NotifyShopperResult.java b/src/main/java/com/adyen/model/recurring/NotifyShopperResult.java index 300d81d13..e32d50467 100644 --- a/src/main/java/com/adyen/model/recurring/NotifyShopperResult.java +++ b/src/main/java/com/adyen/model/recurring/NotifyShopperResult.java @@ -2,31 +2,22 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.recurring; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * NotifyShopperResult - */ +/** NotifyShopperResult */ @JsonPropertyOrder({ NotifyShopperResult.JSON_PROPERTY_DISPLAYED_REFERENCE, NotifyShopperResult.JSON_PROPERTY_MESSAGE, @@ -36,7 +27,6 @@ NotifyShopperResult.JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE, NotifyShopperResult.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID }) - public class NotifyShopperResult { public static final String JSON_PROPERTY_DISPLAYED_REFERENCE = "displayedReference"; private String displayedReference; @@ -53,14 +43,14 @@ public class NotifyShopperResult { public static final String JSON_PROPERTY_RESULT_CODE = "resultCode"; private String resultCode; - public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE = "shopperNotificationReference"; + public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE = + "shopperNotificationReference"; private String shopperNotificationReference; public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - public NotifyShopperResult() { - } + public NotifyShopperResult() {} /** * Reference of Pre-debit notification that is displayed to the shopper @@ -75,6 +65,7 @@ public NotifyShopperResult displayedReference(String displayedReference) { /** * Reference of Pre-debit notification that is displayed to the shopper + * * @return displayedReference Reference of Pre-debit notification that is displayed to the shopper */ @JsonProperty(JSON_PROPERTY_DISPLAYED_REFERENCE) @@ -107,6 +98,7 @@ public NotifyShopperResult message(String message) { /** * A simple description of the `resultCode`. + * * @return message A simple description of the `resultCode`. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -139,6 +131,7 @@ public NotifyShopperResult pspReference(String pspReference) { /** * The unique reference that is associated with the request. + * * @return pspReference The unique reference that is associated with the request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -171,6 +164,7 @@ public NotifyShopperResult reference(String reference) { /** * Reference of Pre-debit notification sent in my the merchant + * * @return reference Reference of Pre-debit notification sent in my the merchant */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -203,6 +197,7 @@ public NotifyShopperResult resultCode(String resultCode) { /** * The code indicating the status of notification. + * * @return resultCode The code indicating the status of notification. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @@ -235,6 +230,7 @@ public NotifyShopperResult shopperNotificationReference(String shopperNotificati /** * The unique reference for the request sent downstream. + * * @return shopperNotificationReference The unique reference for the request sent downstream. */ @JsonProperty(JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE) @@ -257,7 +253,8 @@ public void setShopperNotificationReference(String shopperNotificationReference) /** * This is the recurringDetailReference returned in the response when token was created * - * @param storedPaymentMethodId This is the recurringDetailReference returned in the response when token was created + * @param storedPaymentMethodId This is the recurringDetailReference returned in the response when + * token was created * @return the current {@code NotifyShopperResult} instance, allowing for method chaining */ public NotifyShopperResult storedPaymentMethodId(String storedPaymentMethodId) { @@ -267,7 +264,9 @@ public NotifyShopperResult storedPaymentMethodId(String storedPaymentMethodId) { /** * This is the recurringDetailReference returned in the response when token was created - * @return storedPaymentMethodId This is the recurringDetailReference returned in the response when token was created + * + * @return storedPaymentMethodId This is the recurringDetailReference returned in the response + * when token was created */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -278,7 +277,8 @@ public String getStoredPaymentMethodId() { /** * This is the recurringDetailReference returned in the response when token was created * - * @param storedPaymentMethodId This is the recurringDetailReference returned in the response when token was created + * @param storedPaymentMethodId This is the recurringDetailReference returned in the response when + * token was created */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -286,9 +286,7 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { this.storedPaymentMethodId = storedPaymentMethodId; } - /** - * Return true if this NotifyShopperResult object is equal to o. - */ + /** Return true if this NotifyShopperResult object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -298,18 +296,26 @@ public boolean equals(Object o) { return false; } NotifyShopperResult notifyShopperResult = (NotifyShopperResult) o; - return Objects.equals(this.displayedReference, notifyShopperResult.displayedReference) && - Objects.equals(this.message, notifyShopperResult.message) && - Objects.equals(this.pspReference, notifyShopperResult.pspReference) && - Objects.equals(this.reference, notifyShopperResult.reference) && - Objects.equals(this.resultCode, notifyShopperResult.resultCode) && - Objects.equals(this.shopperNotificationReference, notifyShopperResult.shopperNotificationReference) && - Objects.equals(this.storedPaymentMethodId, notifyShopperResult.storedPaymentMethodId); + return Objects.equals(this.displayedReference, notifyShopperResult.displayedReference) + && Objects.equals(this.message, notifyShopperResult.message) + && Objects.equals(this.pspReference, notifyShopperResult.pspReference) + && Objects.equals(this.reference, notifyShopperResult.reference) + && Objects.equals(this.resultCode, notifyShopperResult.resultCode) + && Objects.equals( + this.shopperNotificationReference, notifyShopperResult.shopperNotificationReference) + && Objects.equals(this.storedPaymentMethodId, notifyShopperResult.storedPaymentMethodId); } @Override public int hashCode() { - return Objects.hash(displayedReference, message, pspReference, reference, resultCode, shopperNotificationReference, storedPaymentMethodId); + return Objects.hash( + displayedReference, + message, + pspReference, + reference, + resultCode, + shopperNotificationReference, + storedPaymentMethodId); } @Override @@ -321,15 +327,18 @@ public String toString() { sb.append(" pspReference: ").append(toIndentedString(pspReference)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" resultCode: ").append(toIndentedString(resultCode)).append("\n"); - sb.append(" shopperNotificationReference: ").append(toIndentedString(shopperNotificationReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" shopperNotificationReference: ") + .append(toIndentedString(shopperNotificationReference)) + .append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -338,21 +347,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of NotifyShopperResult given an JSON string * * @param jsonString JSON string * @return An instance of NotifyShopperResult - * @throws JsonProcessingException if the JSON string is invalid with respect to NotifyShopperResult + * @throws JsonProcessingException if the JSON string is invalid with respect to + * NotifyShopperResult */ public static NotifyShopperResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NotifyShopperResult.class); } -/** - * Convert an instance of NotifyShopperResult to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of NotifyShopperResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/Permit.java b/src/main/java/com/adyen/model/recurring/Permit.java index f7ebb6e20..b8eeed1f8 100644 --- a/src/main/java/com/adyen/model/recurring/Permit.java +++ b/src/main/java/com/adyen/model/recurring/Permit.java @@ -2,33 +2,23 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.recurring; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.recurring.PermitRestriction; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.time.OffsetDateTime; +import java.util.*; - -/** - * Permit - */ +/** Permit */ @JsonPropertyOrder({ Permit.JSON_PROPERTY_PARTNER_ID, Permit.JSON_PROPERTY_PROFILE_REFERENCE, @@ -36,7 +26,6 @@ Permit.JSON_PROPERTY_RESULT_KEY, Permit.JSON_PROPERTY_VALID_TILL_DATE }) - public class Permit { public static final String JSON_PROPERTY_PARTNER_ID = "partnerId"; private String partnerId; @@ -53,8 +42,7 @@ public class Permit { public static final String JSON_PROPERTY_VALID_TILL_DATE = "validTillDate"; private OffsetDateTime validTillDate; - public Permit() { - } + public Permit() {} /** * Partner ID (when using the permit-per-partner token sharing model). @@ -69,6 +57,7 @@ public Permit partnerId(String partnerId) { /** * Partner ID (when using the permit-per-partner token sharing model). + * * @return partnerId Partner ID (when using the permit-per-partner token sharing model). */ @JsonProperty(JSON_PROPERTY_PARTNER_ID) @@ -91,7 +80,8 @@ public void setPartnerId(String partnerId) { /** * The profile to apply to this permit (when using the shared permits model). * - * @param profileReference The profile to apply to this permit (when using the shared permits model). + * @param profileReference The profile to apply to this permit (when using the shared permits + * model). * @return the current {@code Permit} instance, allowing for method chaining */ public Permit profileReference(String profileReference) { @@ -101,7 +91,9 @@ public Permit profileReference(String profileReference) { /** * The profile to apply to this permit (when using the shared permits model). - * @return profileReference The profile to apply to this permit (when using the shared permits model). + * + * @return profileReference The profile to apply to this permit (when using the shared permits + * model). */ @JsonProperty(JSON_PROPERTY_PROFILE_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,7 +104,8 @@ public String getProfileReference() { /** * The profile to apply to this permit (when using the shared permits model). * - * @param profileReference The profile to apply to this permit (when using the shared permits model). + * @param profileReference The profile to apply to this permit (when using the shared permits + * model). */ @JsonProperty(JSON_PROPERTY_PROFILE_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,7 +116,7 @@ public void setProfileReference(String profileReference) { /** * restriction * - * @param restriction + * @param restriction * @return the current {@code Permit} instance, allowing for method chaining */ public Permit restriction(PermitRestriction restriction) { @@ -133,7 +126,8 @@ public Permit restriction(PermitRestriction restriction) { /** * Get restriction - * @return restriction + * + * @return restriction */ @JsonProperty(JSON_PROPERTY_RESTRICTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,7 +138,7 @@ public PermitRestriction getRestriction() { /** * restriction * - * @param restriction + * @param restriction */ @JsonProperty(JSON_PROPERTY_RESTRICTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -165,6 +159,7 @@ public Permit resultKey(String resultKey) { /** * The key to link permit requests to permit results. + * * @return resultKey The key to link permit requests to permit results. */ @JsonProperty(JSON_PROPERTY_RESULT_KEY) @@ -197,6 +192,7 @@ public Permit validTillDate(OffsetDateTime validTillDate) { /** * The expiry date for this permit. + * * @return validTillDate The expiry date for this permit. */ @JsonProperty(JSON_PROPERTY_VALID_TILL_DATE) @@ -216,9 +212,7 @@ public void setValidTillDate(OffsetDateTime validTillDate) { this.validTillDate = validTillDate; } - /** - * Return true if this Permit object is equal to o. - */ + /** Return true if this Permit object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -228,11 +222,11 @@ public boolean equals(Object o) { return false; } Permit permit = (Permit) o; - return Objects.equals(this.partnerId, permit.partnerId) && - Objects.equals(this.profileReference, permit.profileReference) && - Objects.equals(this.restriction, permit.restriction) && - Objects.equals(this.resultKey, permit.resultKey) && - Objects.equals(this.validTillDate, permit.validTillDate); + return Objects.equals(this.partnerId, permit.partnerId) + && Objects.equals(this.profileReference, permit.profileReference) + && Objects.equals(this.restriction, permit.restriction) + && Objects.equals(this.resultKey, permit.resultKey) + && Objects.equals(this.validTillDate, permit.validTillDate); } @Override @@ -254,8 +248,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -264,7 +257,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Permit given an JSON string * * @param jsonString JSON string @@ -274,11 +267,12 @@ private String toIndentedString(Object o) { public static Permit fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Permit.class); } -/** - * Convert an instance of Permit to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Permit to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/PermitRestriction.java b/src/main/java/com/adyen/model/recurring/PermitRestriction.java index aed9cdddc..b12dad468 100644 --- a/src/main/java/com/adyen/model/recurring/PermitRestriction.java +++ b/src/main/java/com/adyen/model/recurring/PermitRestriction.java @@ -2,38 +2,27 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.recurring; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.recurring.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * PermitRestriction - */ +/** PermitRestriction */ @JsonPropertyOrder({ PermitRestriction.JSON_PROPERTY_MAX_AMOUNT, PermitRestriction.JSON_PROPERTY_SINGLE_TRANSACTION_LIMIT, PermitRestriction.JSON_PROPERTY_SINGLE_USE }) - public class PermitRestriction { public static final String JSON_PROPERTY_MAX_AMOUNT = "maxAmount"; private Amount maxAmount; @@ -44,13 +33,12 @@ public class PermitRestriction { public static final String JSON_PROPERTY_SINGLE_USE = "singleUse"; private Boolean singleUse; - public PermitRestriction() { - } + public PermitRestriction() {} /** * maxAmount * - * @param maxAmount + * @param maxAmount * @return the current {@code PermitRestriction} instance, allowing for method chaining */ public PermitRestriction maxAmount(Amount maxAmount) { @@ -60,7 +48,8 @@ public PermitRestriction maxAmount(Amount maxAmount) { /** * Get maxAmount - * @return maxAmount + * + * @return maxAmount */ @JsonProperty(JSON_PROPERTY_MAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,7 +60,7 @@ public Amount getMaxAmount() { /** * maxAmount * - * @param maxAmount + * @param maxAmount */ @JsonProperty(JSON_PROPERTY_MAX_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -82,7 +71,7 @@ public void setMaxAmount(Amount maxAmount) { /** * singleTransactionLimit * - * @param singleTransactionLimit + * @param singleTransactionLimit * @return the current {@code PermitRestriction} instance, allowing for method chaining */ public PermitRestriction singleTransactionLimit(Amount singleTransactionLimit) { @@ -92,7 +81,8 @@ public PermitRestriction singleTransactionLimit(Amount singleTransactionLimit) { /** * Get singleTransactionLimit - * @return singleTransactionLimit + * + * @return singleTransactionLimit */ @JsonProperty(JSON_PROPERTY_SINGLE_TRANSACTION_LIMIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -103,7 +93,7 @@ public Amount getSingleTransactionLimit() { /** * singleTransactionLimit * - * @param singleTransactionLimit + * @param singleTransactionLimit */ @JsonProperty(JSON_PROPERTY_SINGLE_TRANSACTION_LIMIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,9 +102,11 @@ public void setSingleTransactionLimit(Amount singleTransactionLimit) { } /** - * Only a single payment can be made using this permit if set to true, otherwise multiple payments are allowed. + * Only a single payment can be made using this permit if set to true, otherwise multiple payments + * are allowed. * - * @param singleUse Only a single payment can be made using this permit if set to true, otherwise multiple payments are allowed. + * @param singleUse Only a single payment can be made using this permit if set to true, otherwise + * multiple payments are allowed. * @return the current {@code PermitRestriction} instance, allowing for method chaining */ public PermitRestriction singleUse(Boolean singleUse) { @@ -123,8 +115,11 @@ public PermitRestriction singleUse(Boolean singleUse) { } /** - * Only a single payment can be made using this permit if set to true, otherwise multiple payments are allowed. - * @return singleUse Only a single payment can be made using this permit if set to true, otherwise multiple payments are allowed. + * Only a single payment can be made using this permit if set to true, otherwise multiple payments + * are allowed. + * + * @return singleUse Only a single payment can be made using this permit if set to true, otherwise + * multiple payments are allowed. */ @JsonProperty(JSON_PROPERTY_SINGLE_USE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -133,9 +128,11 @@ public Boolean getSingleUse() { } /** - * Only a single payment can be made using this permit if set to true, otherwise multiple payments are allowed. + * Only a single payment can be made using this permit if set to true, otherwise multiple payments + * are allowed. * - * @param singleUse Only a single payment can be made using this permit if set to true, otherwise multiple payments are allowed. + * @param singleUse Only a single payment can be made using this permit if set to true, otherwise + * multiple payments are allowed. */ @JsonProperty(JSON_PROPERTY_SINGLE_USE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,9 +140,7 @@ public void setSingleUse(Boolean singleUse) { this.singleUse = singleUse; } - /** - * Return true if this PermitRestriction object is equal to o. - */ + /** Return true if this PermitRestriction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -155,9 +150,9 @@ public boolean equals(Object o) { return false; } PermitRestriction permitRestriction = (PermitRestriction) o; - return Objects.equals(this.maxAmount, permitRestriction.maxAmount) && - Objects.equals(this.singleTransactionLimit, permitRestriction.singleTransactionLimit) && - Objects.equals(this.singleUse, permitRestriction.singleUse); + return Objects.equals(this.maxAmount, permitRestriction.maxAmount) + && Objects.equals(this.singleTransactionLimit, permitRestriction.singleTransactionLimit) + && Objects.equals(this.singleUse, permitRestriction.singleUse); } @Override @@ -170,15 +165,16 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PermitRestriction {\n"); sb.append(" maxAmount: ").append(toIndentedString(maxAmount)).append("\n"); - sb.append(" singleTransactionLimit: ").append(toIndentedString(singleTransactionLimit)).append("\n"); + sb.append(" singleTransactionLimit: ") + .append(toIndentedString(singleTransactionLimit)) + .append("\n"); sb.append(" singleUse: ").append(toIndentedString(singleUse)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -187,7 +183,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PermitRestriction given an JSON string * * @param jsonString JSON string @@ -197,11 +193,12 @@ private String toIndentedString(Object o) { public static PermitRestriction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PermitRestriction.class); } -/** - * Convert an instance of PermitRestriction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PermitRestriction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/PermitResult.java b/src/main/java/com/adyen/model/recurring/PermitResult.java index afeabab9b..69b386e20 100644 --- a/src/main/java/com/adyen/model/recurring/PermitResult.java +++ b/src/main/java/com/adyen/model/recurring/PermitResult.java @@ -2,36 +2,23 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.recurring; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * PermitResult - */ -@JsonPropertyOrder({ - PermitResult.JSON_PROPERTY_RESULT_KEY, - PermitResult.JSON_PROPERTY_TOKEN -}) - +/** PermitResult */ +@JsonPropertyOrder({PermitResult.JSON_PROPERTY_RESULT_KEY, PermitResult.JSON_PROPERTY_TOKEN}) public class PermitResult { public static final String JSON_PROPERTY_RESULT_KEY = "resultKey"; private String resultKey; @@ -39,8 +26,7 @@ public class PermitResult { public static final String JSON_PROPERTY_TOKEN = "token"; private String token; - public PermitResult() { - } + public PermitResult() {} /** * The key to link permit requests to permit results. @@ -55,6 +41,7 @@ public PermitResult resultKey(String resultKey) { /** * The key to link permit requests to permit results. + * * @return resultKey The key to link permit requests to permit results. */ @JsonProperty(JSON_PROPERTY_RESULT_KEY) @@ -87,6 +74,7 @@ public PermitResult token(String token) { /** * The permit token which is used to make payments by the partner company. + * * @return token The permit token which is used to make payments by the partner company. */ @JsonProperty(JSON_PROPERTY_TOKEN) @@ -106,9 +94,7 @@ public void setToken(String token) { this.token = token; } - /** - * Return true if this PermitResult object is equal to o. - */ + /** Return true if this PermitResult object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +104,8 @@ public boolean equals(Object o) { return false; } PermitResult permitResult = (PermitResult) o; - return Objects.equals(this.resultKey, permitResult.resultKey) && - Objects.equals(this.token, permitResult.token); + return Objects.equals(this.resultKey, permitResult.resultKey) + && Objects.equals(this.token, permitResult.token); } @Override @@ -138,8 +124,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +133,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PermitResult given an JSON string * * @param jsonString JSON string @@ -158,11 +143,12 @@ private String toIndentedString(Object o) { public static PermitResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PermitResult.class); } -/** - * Convert an instance of PermitResult to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PermitResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/Recurring.java b/src/main/java/com/adyen/model/recurring/Recurring.java index 45c390ed7..858a52e3e 100644 --- a/src/main/java/com/adyen/model/recurring/Recurring.java +++ b/src/main/java/com/adyen/model/recurring/Recurring.java @@ -2,32 +2,27 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.recurring; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * Recurring - */ +/** Recurring */ @JsonPropertyOrder({ Recurring.JSON_PROPERTY_CONTRACT, Recurring.JSON_PROPERTY_RECURRING_DETAIL_NAME, @@ -35,13 +30,20 @@ Recurring.JSON_PROPERTY_RECURRING_FREQUENCY, Recurring.JSON_PROPERTY_TOKEN_SERVICE }) - public class Recurring { /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment + * details can be used to initiate a one-click payment, where the shopper enters the [card + * security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a + * payout](https://docs.adyen.com/online-payments/online-payouts). */ public enum ContractEnum { - ONECLICK(String.valueOf("ONECLICK")), RECURRING(String.valueOf("RECURRING")), @@ -53,7 +55,7 @@ public enum ContractEnum { private String value; ContractEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -74,7 +76,11 @@ public static ContractEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ContractEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ContractEnum.values())); + LOG.warning( + "ContractEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ContractEnum.values())); return null; } } @@ -91,11 +97,8 @@ public static ContractEnum fromValue(String value) { public static final String JSON_PROPERTY_RECURRING_FREQUENCY = "recurringFrequency"; private String recurringFrequency; - /** - * The name of the token service. - */ + /** The name of the token service. */ public enum TokenServiceEnum { - VISATOKENSERVICE(String.valueOf("VISATOKENSERVICE")), MCTOKENSERVICE(String.valueOf("MCTOKENSERVICE")), @@ -109,7 +112,7 @@ public enum TokenServiceEnum { private String value; TokenServiceEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -130,7 +133,11 @@ public static TokenServiceEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TokenServiceEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TokenServiceEnum.values())); + LOG.warning( + "TokenServiceEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TokenServiceEnum.values())); return null; } } @@ -138,13 +145,30 @@ public static TokenServiceEnum fromValue(String value) { public static final String JSON_PROPERTY_TOKEN_SERVICE = "tokenService"; private TokenServiceEnum tokenService; - public Recurring() { - } + public Recurring() {} /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment + * details can be used to initiate a one-click payment, where the shopper enters the [card + * security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a + * payout](https://docs.adyen.com/online-payments/online-payouts). * - * @param contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * @param contract The type of recurring contract to be used. Possible values: * + * `ONECLICK` – Payment details can be used to initiate a one-click payment, where + * the shopper enters the [card security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make + * a payout](https://docs.adyen.com/online-payments/online-payouts). * @return the current {@code Recurring} instance, allowing for method chaining */ public Recurring contract(ContractEnum contract) { @@ -153,8 +177,27 @@ public Recurring contract(ContractEnum contract) { } /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). - * @return contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment + * details can be used to initiate a one-click payment, where the shopper enters the [card + * security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a + * payout](https://docs.adyen.com/online-payments/online-payouts). + * + * @return contract The type of recurring contract to be used. Possible values: * + * `ONECLICK` – Payment details can be used to initiate a one-click payment, where + * the shopper enters the [card security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make + * a payout](https://docs.adyen.com/online-payments/online-payouts). */ @JsonProperty(JSON_PROPERTY_CONTRACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,9 +206,27 @@ public ContractEnum getContract() { } /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment + * details can be used to initiate a one-click payment, where the shopper enters the [card + * security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a + * payout](https://docs.adyen.com/online-payments/online-payouts). * - * @param contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * @param contract The type of recurring contract to be used. Possible values: * + * `ONECLICK` – Payment details can be used to initiate a one-click payment, where + * the shopper enters the [card security code + * (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). + * * `RECURRING` – Payment details can be used without the card security code to + * initiate [card-not-present + * transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). + * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the + * shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make + * a payout](https://docs.adyen.com/online-payments/online-payouts). */ @JsonProperty(JSON_PROPERTY_CONTRACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,6 +247,7 @@ public Recurring recurringDetailName(String recurringDetailName) { /** * A descriptive name for this detail. + * * @return recurringDetailName A descriptive name for this detail. */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_NAME) @@ -208,7 +270,8 @@ public void setRecurringDetailName(String recurringDetailName) { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. * - * @param recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. + * @param recurringExpiry Date after which no further authorisations shall be performed. Only for + * 3D Secure 2. * @return the current {@code Recurring} instance, allowing for method chaining */ public Recurring recurringExpiry(OffsetDateTime recurringExpiry) { @@ -218,7 +281,9 @@ public Recurring recurringExpiry(OffsetDateTime recurringExpiry) { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. - * @return recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. + * + * @return recurringExpiry Date after which no further authorisations shall be performed. Only for + * 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -229,7 +294,8 @@ public OffsetDateTime getRecurringExpiry() { /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. * - * @param recurringExpiry Date after which no further authorisations shall be performed. Only for 3D Secure 2. + * @param recurringExpiry Date after which no further authorisations shall be performed. Only for + * 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,6 +316,7 @@ public Recurring recurringFrequency(String recurringFrequency) { /** * Minimum number of days between authorisations. Only for 3D Secure 2. + * * @return recurringFrequency Minimum number of days between authorisations. Only for 3D Secure 2. */ @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY) @@ -282,6 +349,7 @@ public Recurring tokenService(TokenServiceEnum tokenService) { /** * The name of the token service. + * * @return tokenService The name of the token service. */ @JsonProperty(JSON_PROPERTY_TOKEN_SERVICE) @@ -301,9 +369,7 @@ public void setTokenService(TokenServiceEnum tokenService) { this.tokenService = tokenService; } - /** - * Return true if this Recurring object is equal to o. - */ + /** Return true if this Recurring object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -313,16 +379,17 @@ public boolean equals(Object o) { return false; } Recurring recurring = (Recurring) o; - return Objects.equals(this.contract, recurring.contract) && - Objects.equals(this.recurringDetailName, recurring.recurringDetailName) && - Objects.equals(this.recurringExpiry, recurring.recurringExpiry) && - Objects.equals(this.recurringFrequency, recurring.recurringFrequency) && - Objects.equals(this.tokenService, recurring.tokenService); + return Objects.equals(this.contract, recurring.contract) + && Objects.equals(this.recurringDetailName, recurring.recurringDetailName) + && Objects.equals(this.recurringExpiry, recurring.recurringExpiry) + && Objects.equals(this.recurringFrequency, recurring.recurringFrequency) + && Objects.equals(this.tokenService, recurring.tokenService); } @Override public int hashCode() { - return Objects.hash(contract, recurringDetailName, recurringExpiry, recurringFrequency, tokenService); + return Objects.hash( + contract, recurringDetailName, recurringExpiry, recurringFrequency, tokenService); } @Override @@ -330,7 +397,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Recurring {\n"); sb.append(" contract: ").append(toIndentedString(contract)).append("\n"); - sb.append(" recurringDetailName: ").append(toIndentedString(recurringDetailName)).append("\n"); + sb.append(" recurringDetailName: ") + .append(toIndentedString(recurringDetailName)) + .append("\n"); sb.append(" recurringExpiry: ").append(toIndentedString(recurringExpiry)).append("\n"); sb.append(" recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n"); sb.append(" tokenService: ").append(toIndentedString(tokenService)).append("\n"); @@ -339,8 +408,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -349,7 +417,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Recurring given an JSON string * * @param jsonString JSON string @@ -359,11 +427,12 @@ private String toIndentedString(Object o) { public static Recurring fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Recurring.class); } -/** - * Convert an instance of Recurring to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Recurring to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/RecurringDetail.java b/src/main/java/com/adyen/model/recurring/RecurringDetail.java index d8aba2432..fa094d7a8 100644 --- a/src/main/java/com/adyen/model/recurring/RecurringDetail.java +++ b/src/main/java/com/adyen/model/recurring/RecurringDetail.java @@ -2,41 +2,27 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.recurring; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.recurring.Address; -import com.adyen.model.recurring.BankAccount; -import com.adyen.model.recurring.Card; -import com.adyen.model.recurring.Name; -import com.adyen.model.recurring.TokenDetails; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.ArrayList; -import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -/** - * RecurringDetail - */ +/** RecurringDetail */ @JsonPropertyOrder({ RecurringDetail.JSON_PROPERTY_ADDITIONAL_DATA, RecurringDetail.JSON_PROPERTY_ALIAS, @@ -56,7 +42,6 @@ RecurringDetail.JSON_PROPERTY_TOKEN_DETAILS, RecurringDetail.JSON_PROPERTY_VARIANT }) - public class RecurringDetail { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -109,13 +94,15 @@ public class RecurringDetail { public static final String JSON_PROPERTY_VARIANT = "variant"; private String variant; - public RecurringDetail() { - } + public RecurringDetail() {} /** - * This field contains additional data, which may be returned in a particular response. The additionalData object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be returned in a particular response. The + * additionalData object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be returned in a particular response. The additionalData object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be returned in a + * particular response. The additionalData object consists of entries, each of which includes + * the key and value. * @return the current {@code RecurringDetail} instance, allowing for method chaining */ public RecurringDetail additionalData(Map additionalData) { @@ -132,8 +119,12 @@ public RecurringDetail putAdditionalDataItem(String key, String additionalDataIt } /** - * This field contains additional data, which may be returned in a particular response. The additionalData object consists of entries, each of which includes the key and value. - * @return additionalData This field contains additional data, which may be returned in a particular response. The additionalData object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be returned in a particular response. The + * additionalData object consists of entries, each of which includes the key and value. + * + * @return additionalData This field contains additional data, which may be returned in a + * particular response. The additionalData object consists of entries, each of which includes + * the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +133,12 @@ public Map getAdditionalData() { } /** - * This field contains additional data, which may be returned in a particular response. The additionalData object consists of entries, each of which includes the key and value. + * This field contains additional data, which may be returned in a particular response. The + * additionalData object consists of entries, each of which includes the key and value. * - * @param additionalData This field contains additional data, which may be returned in a particular response. The additionalData object consists of entries, each of which includes the key and value. + * @param additionalData This field contains additional data, which may be returned in a + * particular response. The additionalData object consists of entries, each of which includes + * the key and value. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -153,9 +147,11 @@ public void setAdditionalData(Map additionalData) { } /** - * The alias of the credit card number. Applies only to recurring contracts storing credit card details + * The alias of the credit card number. Applies only to recurring contracts storing credit card + * details * - * @param alias The alias of the credit card number. Applies only to recurring contracts storing credit card details + * @param alias The alias of the credit card number. Applies only to recurring contracts storing + * credit card details * @return the current {@code RecurringDetail} instance, allowing for method chaining */ public RecurringDetail alias(String alias) { @@ -164,8 +160,11 @@ public RecurringDetail alias(String alias) { } /** - * The alias of the credit card number. Applies only to recurring contracts storing credit card details - * @return alias The alias of the credit card number. Applies only to recurring contracts storing credit card details + * The alias of the credit card number. Applies only to recurring contracts storing credit card + * details + * + * @return alias The alias of the credit card number. Applies only to recurring contracts storing + * credit card details */ @JsonProperty(JSON_PROPERTY_ALIAS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -174,9 +173,11 @@ public String getAlias() { } /** - * The alias of the credit card number. Applies only to recurring contracts storing credit card details + * The alias of the credit card number. Applies only to recurring contracts storing credit card + * details * - * @param alias The alias of the credit card number. Applies only to recurring contracts storing credit card details + * @param alias The alias of the credit card number. Applies only to recurring contracts storing + * credit card details */ @JsonProperty(JSON_PROPERTY_ALIAS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,9 +186,11 @@ public void setAlias(String alias) { } /** - * The alias type of the credit card number. Applies only to recurring contracts storing credit card details. + * The alias type of the credit card number. Applies only to recurring contracts storing credit + * card details. * - * @param aliasType The alias type of the credit card number. Applies only to recurring contracts storing credit card details. + * @param aliasType The alias type of the credit card number. Applies only to recurring contracts + * storing credit card details. * @return the current {@code RecurringDetail} instance, allowing for method chaining */ public RecurringDetail aliasType(String aliasType) { @@ -196,8 +199,11 @@ public RecurringDetail aliasType(String aliasType) { } /** - * The alias type of the credit card number. Applies only to recurring contracts storing credit card details. - * @return aliasType The alias type of the credit card number. Applies only to recurring contracts storing credit card details. + * The alias type of the credit card number. Applies only to recurring contracts storing credit + * card details. + * + * @return aliasType The alias type of the credit card number. Applies only to recurring contracts + * storing credit card details. */ @JsonProperty(JSON_PROPERTY_ALIAS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -206,9 +212,11 @@ public String getAliasType() { } /** - * The alias type of the credit card number. Applies only to recurring contracts storing credit card details. + * The alias type of the credit card number. Applies only to recurring contracts storing credit + * card details. * - * @param aliasType The alias type of the credit card number. Applies only to recurring contracts storing credit card details. + * @param aliasType The alias type of the credit card number. Applies only to recurring contracts + * storing credit card details. */ @JsonProperty(JSON_PROPERTY_ALIAS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,7 +227,7 @@ public void setAliasType(String aliasType) { /** * bank * - * @param bank + * @param bank * @return the current {@code RecurringDetail} instance, allowing for method chaining */ public RecurringDetail bank(BankAccount bank) { @@ -229,7 +237,8 @@ public RecurringDetail bank(BankAccount bank) { /** * Get bank - * @return bank + * + * @return bank */ @JsonProperty(JSON_PROPERTY_BANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,7 +249,7 @@ public BankAccount getBank() { /** * bank * - * @param bank + * @param bank */ @JsonProperty(JSON_PROPERTY_BANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -251,7 +260,7 @@ public void setBank(BankAccount bank) { /** * billingAddress * - * @param billingAddress + * @param billingAddress * @return the current {@code RecurringDetail} instance, allowing for method chaining */ public RecurringDetail billingAddress(Address billingAddress) { @@ -261,7 +270,8 @@ public RecurringDetail billingAddress(Address billingAddress) { /** * Get billingAddress - * @return billingAddress + * + * @return billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -272,7 +282,7 @@ public Address getBillingAddress() { /** * billingAddress * - * @param billingAddress + * @param billingAddress */ @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -283,7 +293,7 @@ public void setBillingAddress(Address billingAddress) { /** * card * - * @param card + * @param card * @return the current {@code RecurringDetail} instance, allowing for method chaining */ public RecurringDetail card(Card card) { @@ -293,7 +303,8 @@ public RecurringDetail card(Card card) { /** * Get card - * @return card + * + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -304,7 +315,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -333,6 +344,7 @@ public RecurringDetail addContractTypesItem(String contractTypesItem) { /** * Types of recurring contracts. + * * @return contractTypes Types of recurring contracts. */ @JsonProperty(JSON_PROPERTY_CONTRACT_TYPES) @@ -365,6 +377,7 @@ public RecurringDetail creationDate(OffsetDateTime creationDate) { /** * The date when the recurring details were created. + * * @return creationDate The date when the recurring details were created. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @@ -387,7 +400,8 @@ public void setCreationDate(OffsetDateTime creationDate) { /** * The `pspReference` of the first recurring payment that created the recurring detail. * - * @param firstPspReference The `pspReference` of the first recurring payment that created the recurring detail. + * @param firstPspReference The `pspReference` of the first recurring payment that + * created the recurring detail. * @return the current {@code RecurringDetail} instance, allowing for method chaining */ public RecurringDetail firstPspReference(String firstPspReference) { @@ -397,7 +411,9 @@ public RecurringDetail firstPspReference(String firstPspReference) { /** * The `pspReference` of the first recurring payment that created the recurring detail. - * @return firstPspReference The `pspReference` of the first recurring payment that created the recurring detail. + * + * @return firstPspReference The `pspReference` of the first recurring payment that + * created the recurring detail. */ @JsonProperty(JSON_PROPERTY_FIRST_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -408,7 +424,8 @@ public String getFirstPspReference() { /** * The `pspReference` of the first recurring payment that created the recurring detail. * - * @param firstPspReference The `pspReference` of the first recurring payment that created the recurring detail. + * @param firstPspReference The `pspReference` of the first recurring payment that + * created the recurring detail. */ @JsonProperty(JSON_PROPERTY_FIRST_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -429,6 +446,7 @@ public RecurringDetail name(String name) { /** * An optional descriptive name for this recurring detail. + * * @return name An optional descriptive name for this recurring detail. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -449,9 +467,13 @@ public void setName(String name) { } /** - * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the + * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either + * the Mastercard Trace ID or the Visa Transaction ID. * - * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are + * using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This + * contains either the Mastercard Trace ID or the Visa Transaction ID. * @return the current {@code RecurringDetail} instance, allowing for method chaining */ public RecurringDetail networkTxReference(String networkTxReference) { @@ -460,8 +482,13 @@ public RecurringDetail networkTxReference(String networkTxReference) { } /** - * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. - * @return networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the + * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either + * the Mastercard Trace ID or the Visa Transaction ID. + * + * @return networkTxReference Returned in the response if you are not tokenizing with Adyen and + * are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This + * contains either the Mastercard Trace ID or the Visa Transaction ID. */ @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -470,9 +497,13 @@ public String getNetworkTxReference() { } /** - * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * Returned in the response if you are not tokenizing with Adyen and are using the + * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either + * the Mastercard Trace ID or the Visa Transaction ID. * - * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + * @param networkTxReference Returned in the response if you are not tokenizing with Adyen and are + * using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This + * contains either the Mastercard Trace ID or the Visa Transaction ID. */ @JsonProperty(JSON_PROPERTY_NETWORK_TX_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -481,9 +512,13 @@ public void setNetworkTxReference(String networkTxReference) { } /** - * The type or sub-brand of a payment method used, e.g. Visa Debit, Visa Corporate, etc. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). + * The type or sub-brand of a payment method used, e.g. Visa Debit, Visa Corporate, etc. For more + * information, refer to + * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). * - * @param paymentMethodVariant The type or sub-brand of a payment method used, e.g. Visa Debit, Visa Corporate, etc. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). + * @param paymentMethodVariant The type or sub-brand of a payment method used, e.g. Visa Debit, + * Visa Corporate, etc. For more information, refer to + * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). * @return the current {@code RecurringDetail} instance, allowing for method chaining */ public RecurringDetail paymentMethodVariant(String paymentMethodVariant) { @@ -492,8 +527,13 @@ public RecurringDetail paymentMethodVariant(String paymentMethodVariant) { } /** - * The type or sub-brand of a payment method used, e.g. Visa Debit, Visa Corporate, etc. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). - * @return paymentMethodVariant The type or sub-brand of a payment method used, e.g. Visa Debit, Visa Corporate, etc. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). + * The type or sub-brand of a payment method used, e.g. Visa Debit, Visa Corporate, etc. For more + * information, refer to + * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). + * + * @return paymentMethodVariant The type or sub-brand of a payment method used, e.g. Visa Debit, + * Visa Corporate, etc. For more information, refer to + * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -502,9 +542,13 @@ public String getPaymentMethodVariant() { } /** - * The type or sub-brand of a payment method used, e.g. Visa Debit, Visa Corporate, etc. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). + * The type or sub-brand of a payment method used, e.g. Visa Debit, Visa Corporate, etc. For more + * information, refer to + * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). * - * @param paymentMethodVariant The type or sub-brand of a payment method used, e.g. Visa Debit, Visa Corporate, etc. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). + * @param paymentMethodVariant The type or sub-brand of a payment method used, e.g. Visa Debit, + * Visa Corporate, etc. For more information, refer to + * [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -525,6 +569,7 @@ public RecurringDetail recurringDetailReference(String recurringDetailReference) /** * The reference that uniquely identifies the recurring detail. + * * @return recurringDetailReference The reference that uniquely identifies the recurring detail. */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @@ -547,7 +592,7 @@ public void setRecurringDetailReference(String recurringDetailReference) { /** * shopperName * - * @param shopperName + * @param shopperName * @return the current {@code RecurringDetail} instance, allowing for method chaining */ public RecurringDetail shopperName(Name shopperName) { @@ -557,7 +602,8 @@ public RecurringDetail shopperName(Name shopperName) { /** * Get shopperName - * @return shopperName + * + * @return shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -568,7 +614,7 @@ public Name getShopperName() { /** * shopperName * - * @param shopperName + * @param shopperName */ @JsonProperty(JSON_PROPERTY_SHOPPER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -579,7 +625,8 @@ public void setShopperName(Name shopperName) { /** * A shopper's social security number (only in countries where it is legal to collect). * - * @param socialSecurityNumber A shopper's social security number (only in countries where it is legal to collect). + * @param socialSecurityNumber A shopper's social security number (only in countries where it + * is legal to collect). * @return the current {@code RecurringDetail} instance, allowing for method chaining */ public RecurringDetail socialSecurityNumber(String socialSecurityNumber) { @@ -589,7 +636,9 @@ public RecurringDetail socialSecurityNumber(String socialSecurityNumber) { /** * A shopper's social security number (only in countries where it is legal to collect). - * @return socialSecurityNumber A shopper's social security number (only in countries where it is legal to collect). + * + * @return socialSecurityNumber A shopper's social security number (only in countries where it + * is legal to collect). */ @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -600,7 +649,8 @@ public String getSocialSecurityNumber() { /** * A shopper's social security number (only in countries where it is legal to collect). * - * @param socialSecurityNumber A shopper's social security number (only in countries where it is legal to collect). + * @param socialSecurityNumber A shopper's social security number (only in countries where it + * is legal to collect). */ @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -611,7 +661,7 @@ public void setSocialSecurityNumber(String socialSecurityNumber) { /** * tokenDetails * - * @param tokenDetails + * @param tokenDetails * @return the current {@code RecurringDetail} instance, allowing for method chaining */ public RecurringDetail tokenDetails(TokenDetails tokenDetails) { @@ -621,7 +671,8 @@ public RecurringDetail tokenDetails(TokenDetails tokenDetails) { /** * Get tokenDetails - * @return tokenDetails + * + * @return tokenDetails */ @JsonProperty(JSON_PROPERTY_TOKEN_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -632,7 +683,7 @@ public TokenDetails getTokenDetails() { /** * tokenDetails * - * @param tokenDetails + * @param tokenDetails */ @JsonProperty(JSON_PROPERTY_TOKEN_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -641,9 +692,11 @@ public void setTokenDetails(TokenDetails tokenDetails) { } /** - * The payment method, such as “mc\", \"visa\", \"ideal\", \"paypal\". + * The payment method, such as “mc\", \"visa\", \"ideal\", + * \"paypal\". * - * @param variant The payment method, such as “mc\", \"visa\", \"ideal\", \"paypal\". + * @param variant The payment method, such as “mc\", \"visa\", \"ideal\", + * \"paypal\". * @return the current {@code RecurringDetail} instance, allowing for method chaining */ public RecurringDetail variant(String variant) { @@ -652,8 +705,11 @@ public RecurringDetail variant(String variant) { } /** - * The payment method, such as “mc\", \"visa\", \"ideal\", \"paypal\". - * @return variant The payment method, such as “mc\", \"visa\", \"ideal\", \"paypal\". + * The payment method, such as “mc\", \"visa\", \"ideal\", + * \"paypal\". + * + * @return variant The payment method, such as “mc\", \"visa\", + * \"ideal\", \"paypal\". */ @JsonProperty(JSON_PROPERTY_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -662,9 +718,11 @@ public String getVariant() { } /** - * The payment method, such as “mc\", \"visa\", \"ideal\", \"paypal\". + * The payment method, such as “mc\", \"visa\", \"ideal\", + * \"paypal\". * - * @param variant The payment method, such as “mc\", \"visa\", \"ideal\", \"paypal\". + * @param variant The payment method, such as “mc\", \"visa\", \"ideal\", + * \"paypal\". */ @JsonProperty(JSON_PROPERTY_VARIANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -672,9 +730,7 @@ public void setVariant(String variant) { this.variant = variant; } - /** - * Return true if this RecurringDetail object is equal to o. - */ + /** Return true if this RecurringDetail object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -684,28 +740,45 @@ public boolean equals(Object o) { return false; } RecurringDetail recurringDetail = (RecurringDetail) o; - return Objects.equals(this.additionalData, recurringDetail.additionalData) && - Objects.equals(this.alias, recurringDetail.alias) && - Objects.equals(this.aliasType, recurringDetail.aliasType) && - Objects.equals(this.bank, recurringDetail.bank) && - Objects.equals(this.billingAddress, recurringDetail.billingAddress) && - Objects.equals(this.card, recurringDetail.card) && - Objects.equals(this.contractTypes, recurringDetail.contractTypes) && - Objects.equals(this.creationDate, recurringDetail.creationDate) && - Objects.equals(this.firstPspReference, recurringDetail.firstPspReference) && - Objects.equals(this.name, recurringDetail.name) && - Objects.equals(this.networkTxReference, recurringDetail.networkTxReference) && - Objects.equals(this.paymentMethodVariant, recurringDetail.paymentMethodVariant) && - Objects.equals(this.recurringDetailReference, recurringDetail.recurringDetailReference) && - Objects.equals(this.shopperName, recurringDetail.shopperName) && - Objects.equals(this.socialSecurityNumber, recurringDetail.socialSecurityNumber) && - Objects.equals(this.tokenDetails, recurringDetail.tokenDetails) && - Objects.equals(this.variant, recurringDetail.variant); + return Objects.equals(this.additionalData, recurringDetail.additionalData) + && Objects.equals(this.alias, recurringDetail.alias) + && Objects.equals(this.aliasType, recurringDetail.aliasType) + && Objects.equals(this.bank, recurringDetail.bank) + && Objects.equals(this.billingAddress, recurringDetail.billingAddress) + && Objects.equals(this.card, recurringDetail.card) + && Objects.equals(this.contractTypes, recurringDetail.contractTypes) + && Objects.equals(this.creationDate, recurringDetail.creationDate) + && Objects.equals(this.firstPspReference, recurringDetail.firstPspReference) + && Objects.equals(this.name, recurringDetail.name) + && Objects.equals(this.networkTxReference, recurringDetail.networkTxReference) + && Objects.equals(this.paymentMethodVariant, recurringDetail.paymentMethodVariant) + && Objects.equals(this.recurringDetailReference, recurringDetail.recurringDetailReference) + && Objects.equals(this.shopperName, recurringDetail.shopperName) + && Objects.equals(this.socialSecurityNumber, recurringDetail.socialSecurityNumber) + && Objects.equals(this.tokenDetails, recurringDetail.tokenDetails) + && Objects.equals(this.variant, recurringDetail.variant); } @Override public int hashCode() { - return Objects.hash(additionalData, alias, aliasType, bank, billingAddress, card, contractTypes, creationDate, firstPspReference, name, networkTxReference, paymentMethodVariant, recurringDetailReference, shopperName, socialSecurityNumber, tokenDetails, variant); + return Objects.hash( + additionalData, + alias, + aliasType, + bank, + billingAddress, + card, + contractTypes, + creationDate, + firstPspReference, + name, + networkTxReference, + paymentMethodVariant, + recurringDetailReference, + shopperName, + socialSecurityNumber, + tokenDetails, + variant); } @Override @@ -723,10 +796,16 @@ public String toString() { sb.append(" firstPspReference: ").append(toIndentedString(firstPspReference)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" networkTxReference: ").append(toIndentedString(networkTxReference)).append("\n"); - sb.append(" paymentMethodVariant: ").append(toIndentedString(paymentMethodVariant)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" paymentMethodVariant: ") + .append(toIndentedString(paymentMethodVariant)) + .append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); sb.append(" shopperName: ").append(toIndentedString(shopperName)).append("\n"); - sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); + sb.append(" socialSecurityNumber: ") + .append(toIndentedString(socialSecurityNumber)) + .append("\n"); sb.append(" tokenDetails: ").append(toIndentedString(tokenDetails)).append("\n"); sb.append(" variant: ").append(toIndentedString(variant)).append("\n"); sb.append("}"); @@ -734,8 +813,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -744,7 +822,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RecurringDetail given an JSON string * * @param jsonString JSON string @@ -754,11 +832,12 @@ private String toIndentedString(Object o) { public static RecurringDetail fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RecurringDetail.class); } -/** - * Convert an instance of RecurringDetail to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RecurringDetail to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/RecurringDetailWrapper.java b/src/main/java/com/adyen/model/recurring/RecurringDetailWrapper.java index 4db100fa0..9bd59e10e 100644 --- a/src/main/java/com/adyen/model/recurring/RecurringDetailWrapper.java +++ b/src/main/java/com/adyen/model/recurring/RecurringDetailWrapper.java @@ -2,47 +2,33 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.recurring; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.recurring.RecurringDetail; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * RecurringDetailWrapper - */ -@JsonPropertyOrder({ - RecurringDetailWrapper.JSON_PROPERTY_RECURRING_DETAIL -}) - +/** RecurringDetailWrapper */ +@JsonPropertyOrder({RecurringDetailWrapper.JSON_PROPERTY_RECURRING_DETAIL}) public class RecurringDetailWrapper { public static final String JSON_PROPERTY_RECURRING_DETAIL = "RecurringDetail"; private RecurringDetail recurringDetail; - public RecurringDetailWrapper() { - } + public RecurringDetailWrapper() {} /** * recurringDetail * - * @param recurringDetail + * @param recurringDetail * @return the current {@code RecurringDetailWrapper} instance, allowing for method chaining */ public RecurringDetailWrapper recurringDetail(RecurringDetail recurringDetail) { @@ -52,7 +38,8 @@ public RecurringDetailWrapper recurringDetail(RecurringDetail recurringDetail) { /** * Get recurringDetail - * @return recurringDetail + * + * @return recurringDetail */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,7 +50,7 @@ public RecurringDetail getRecurringDetail() { /** * recurringDetail * - * @param recurringDetail + * @param recurringDetail */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,9 +58,7 @@ public void setRecurringDetail(RecurringDetail recurringDetail) { this.recurringDetail = recurringDetail; } - /** - * Return true if this RecurringDetailWrapper object is equal to o. - */ + /** Return true if this RecurringDetailWrapper object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -101,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -111,21 +95,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RecurringDetailWrapper given an JSON string * * @param jsonString JSON string * @return An instance of RecurringDetailWrapper - * @throws JsonProcessingException if the JSON string is invalid with respect to RecurringDetailWrapper + * @throws JsonProcessingException if the JSON string is invalid with respect to + * RecurringDetailWrapper */ public static RecurringDetailWrapper fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RecurringDetailWrapper.class); } -/** - * Convert an instance of RecurringDetailWrapper to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RecurringDetailWrapper to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/RecurringDetailsRequest.java b/src/main/java/com/adyen/model/recurring/RecurringDetailsRequest.java index b7977be88..cc4748c33 100644 --- a/src/main/java/com/adyen/model/recurring/RecurringDetailsRequest.java +++ b/src/main/java/com/adyen/model/recurring/RecurringDetailsRequest.java @@ -2,38 +2,27 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.recurring; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.recurring.Recurring; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * RecurringDetailsRequest - */ +/** RecurringDetailsRequest */ @JsonPropertyOrder({ RecurringDetailsRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, RecurringDetailsRequest.JSON_PROPERTY_RECURRING, RecurringDetailsRequest.JSON_PROPERTY_SHOPPER_REFERENCE }) - public class RecurringDetailsRequest { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; @@ -44,13 +33,13 @@ public class RecurringDetailsRequest { public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference"; private String shopperReference; - public RecurringDetailsRequest() { - } + public RecurringDetailsRequest() {} /** * The merchant account identifier you want to process the (transaction) request with. * - * @param merchantAccount The merchant account identifier you want to process the (transaction) request with. + * @param merchantAccount The merchant account identifier you want to process the (transaction) + * request with. * @return the current {@code RecurringDetailsRequest} instance, allowing for method chaining */ public RecurringDetailsRequest merchantAccount(String merchantAccount) { @@ -60,7 +49,9 @@ public RecurringDetailsRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier you want to process the (transaction) request with. - * @return merchantAccount The merchant account identifier you want to process the (transaction) request with. + * + * @return merchantAccount The merchant account identifier you want to process the (transaction) + * request with. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,7 +62,8 @@ public String getMerchantAccount() { /** * The merchant account identifier you want to process the (transaction) request with. * - * @param merchantAccount The merchant account identifier you want to process the (transaction) request with. + * @param merchantAccount The merchant account identifier you want to process the (transaction) + * request with. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -82,7 +74,7 @@ public void setMerchantAccount(String merchantAccount) { /** * recurring * - * @param recurring + * @param recurring * @return the current {@code RecurringDetailsRequest} instance, allowing for method chaining */ public RecurringDetailsRequest recurring(Recurring recurring) { @@ -92,7 +84,8 @@ public RecurringDetailsRequest recurring(Recurring recurring) { /** * Get recurring - * @return recurring + * + * @return recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -103,7 +96,7 @@ public Recurring getRecurring() { /** * recurring * - * @param recurring + * @param recurring */ @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,7 +107,8 @@ public void setRecurring(Recurring recurring) { /** * The reference you use to uniquely identify the shopper (e.g. user ID or account ID). * - * @param shopperReference The reference you use to uniquely identify the shopper (e.g. user ID or account ID). + * @param shopperReference The reference you use to uniquely identify the shopper (e.g. user ID or + * account ID). * @return the current {@code RecurringDetailsRequest} instance, allowing for method chaining */ public RecurringDetailsRequest shopperReference(String shopperReference) { @@ -124,7 +118,9 @@ public RecurringDetailsRequest shopperReference(String shopperReference) { /** * The reference you use to uniquely identify the shopper (e.g. user ID or account ID). - * @return shopperReference The reference you use to uniquely identify the shopper (e.g. user ID or account ID). + * + * @return shopperReference The reference you use to uniquely identify the shopper (e.g. user ID + * or account ID). */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,7 +131,8 @@ public String getShopperReference() { /** * The reference you use to uniquely identify the shopper (e.g. user ID or account ID). * - * @param shopperReference The reference you use to uniquely identify the shopper (e.g. user ID or account ID). + * @param shopperReference The reference you use to uniquely identify the shopper (e.g. user ID or + * account ID). */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,9 +140,7 @@ public void setShopperReference(String shopperReference) { this.shopperReference = shopperReference; } - /** - * Return true if this RecurringDetailsRequest object is equal to o. - */ + /** Return true if this RecurringDetailsRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -155,9 +150,9 @@ public boolean equals(Object o) { return false; } RecurringDetailsRequest recurringDetailsRequest = (RecurringDetailsRequest) o; - return Objects.equals(this.merchantAccount, recurringDetailsRequest.merchantAccount) && - Objects.equals(this.recurring, recurringDetailsRequest.recurring) && - Objects.equals(this.shopperReference, recurringDetailsRequest.shopperReference); + return Objects.equals(this.merchantAccount, recurringDetailsRequest.merchantAccount) + && Objects.equals(this.recurring, recurringDetailsRequest.recurring) + && Objects.equals(this.shopperReference, recurringDetailsRequest.shopperReference); } @Override @@ -177,8 +172,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -187,21 +181,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RecurringDetailsRequest given an JSON string * * @param jsonString JSON string * @return An instance of RecurringDetailsRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to RecurringDetailsRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * RecurringDetailsRequest */ public static RecurringDetailsRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RecurringDetailsRequest.class); } -/** - * Convert an instance of RecurringDetailsRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RecurringDetailsRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/RecurringDetailsResult.java b/src/main/java/com/adyen/model/recurring/RecurringDetailsResult.java index d9044dbe7..cb9ba821c 100644 --- a/src/main/java/com/adyen/model/recurring/RecurringDetailsResult.java +++ b/src/main/java/com/adyen/model/recurring/RecurringDetailsResult.java @@ -2,42 +2,31 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.recurring; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.recurring.RecurringDetailWrapper; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -/** - * RecurringDetailsResult - */ +/** RecurringDetailsResult */ @JsonPropertyOrder({ RecurringDetailsResult.JSON_PROPERTY_CREATION_DATE, RecurringDetailsResult.JSON_PROPERTY_DETAILS, RecurringDetailsResult.JSON_PROPERTY_LAST_KNOWN_SHOPPER_EMAIL, RecurringDetailsResult.JSON_PROPERTY_SHOPPER_REFERENCE }) - public class RecurringDetailsResult { public static final String JSON_PROPERTY_CREATION_DATE = "creationDate"; private OffsetDateTime creationDate; @@ -51,8 +40,7 @@ public class RecurringDetailsResult { public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference"; private String shopperReference; - public RecurringDetailsResult() { - } + public RecurringDetailsResult() {} /** * The date when the recurring details were created. @@ -67,6 +55,7 @@ public RecurringDetailsResult creationDate(OffsetDateTime creationDate) { /** * The date when the recurring details were created. + * * @return creationDate The date when the recurring details were created. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @@ -107,6 +96,7 @@ public RecurringDetailsResult addDetailsItem(RecurringDetailWrapper detailsItem) /** * Payment details stored for recurring payments. + * * @return details Payment details stored for recurring payments. */ @JsonProperty(JSON_PROPERTY_DETAILS) @@ -139,6 +129,7 @@ public RecurringDetailsResult lastKnownShopperEmail(String lastKnownShopperEmail /** * The most recent email for this shopper (if available). + * * @return lastKnownShopperEmail The most recent email for this shopper (if available). */ @JsonProperty(JSON_PROPERTY_LAST_KNOWN_SHOPPER_EMAIL) @@ -161,7 +152,8 @@ public void setLastKnownShopperEmail(String lastKnownShopperEmail) { /** * The reference you use to uniquely identify the shopper (e.g. user ID or account ID). * - * @param shopperReference The reference you use to uniquely identify the shopper (e.g. user ID or account ID). + * @param shopperReference The reference you use to uniquely identify the shopper (e.g. user ID or + * account ID). * @return the current {@code RecurringDetailsResult} instance, allowing for method chaining */ public RecurringDetailsResult shopperReference(String shopperReference) { @@ -171,7 +163,9 @@ public RecurringDetailsResult shopperReference(String shopperReference) { /** * The reference you use to uniquely identify the shopper (e.g. user ID or account ID). - * @return shopperReference The reference you use to uniquely identify the shopper (e.g. user ID or account ID). + * + * @return shopperReference The reference you use to uniquely identify the shopper (e.g. user ID + * or account ID). */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,7 +176,8 @@ public String getShopperReference() { /** * The reference you use to uniquely identify the shopper (e.g. user ID or account ID). * - * @param shopperReference The reference you use to uniquely identify the shopper (e.g. user ID or account ID). + * @param shopperReference The reference you use to uniquely identify the shopper (e.g. user ID or + * account ID). */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,9 +185,7 @@ public void setShopperReference(String shopperReference) { this.shopperReference = shopperReference; } - /** - * Return true if this RecurringDetailsResult object is equal to o. - */ + /** Return true if this RecurringDetailsResult object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -202,10 +195,10 @@ public boolean equals(Object o) { return false; } RecurringDetailsResult recurringDetailsResult = (RecurringDetailsResult) o; - return Objects.equals(this.creationDate, recurringDetailsResult.creationDate) && - Objects.equals(this.details, recurringDetailsResult.details) && - Objects.equals(this.lastKnownShopperEmail, recurringDetailsResult.lastKnownShopperEmail) && - Objects.equals(this.shopperReference, recurringDetailsResult.shopperReference); + return Objects.equals(this.creationDate, recurringDetailsResult.creationDate) + && Objects.equals(this.details, recurringDetailsResult.details) + && Objects.equals(this.lastKnownShopperEmail, recurringDetailsResult.lastKnownShopperEmail) + && Objects.equals(this.shopperReference, recurringDetailsResult.shopperReference); } @Override @@ -219,15 +212,16 @@ public String toString() { sb.append("class RecurringDetailsResult {\n"); sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n"); sb.append(" details: ").append(toIndentedString(details)).append("\n"); - sb.append(" lastKnownShopperEmail: ").append(toIndentedString(lastKnownShopperEmail)).append("\n"); + sb.append(" lastKnownShopperEmail: ") + .append(toIndentedString(lastKnownShopperEmail)) + .append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -236,21 +230,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RecurringDetailsResult given an JSON string * * @param jsonString JSON string * @return An instance of RecurringDetailsResult - * @throws JsonProcessingException if the JSON string is invalid with respect to RecurringDetailsResult + * @throws JsonProcessingException if the JSON string is invalid with respect to + * RecurringDetailsResult */ public static RecurringDetailsResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RecurringDetailsResult.class); } -/** - * Convert an instance of RecurringDetailsResult to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RecurringDetailsResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/ScheduleAccountUpdaterRequest.java b/src/main/java/com/adyen/model/recurring/ScheduleAccountUpdaterRequest.java index 20f23380a..2104dd2d1 100644 --- a/src/main/java/com/adyen/model/recurring/ScheduleAccountUpdaterRequest.java +++ b/src/main/java/com/adyen/model/recurring/ScheduleAccountUpdaterRequest.java @@ -2,34 +2,24 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.recurring; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.recurring.Card; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.HashMap; +import java.util.Map; - -/** - * ScheduleAccountUpdaterRequest - */ +/** ScheduleAccountUpdaterRequest */ @JsonPropertyOrder({ ScheduleAccountUpdaterRequest.JSON_PROPERTY_ADDITIONAL_DATA, ScheduleAccountUpdaterRequest.JSON_PROPERTY_CARD, @@ -38,7 +28,6 @@ ScheduleAccountUpdaterRequest.JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE, ScheduleAccountUpdaterRequest.JSON_PROPERTY_SHOPPER_REFERENCE }) - public class ScheduleAccountUpdaterRequest { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -52,27 +41,30 @@ public class ScheduleAccountUpdaterRequest { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = "selectedRecurringDetailReference"; + public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = + "selectedRecurringDetailReference"; private String selectedRecurringDetailReference; public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference"; private String shopperReference; - public ScheduleAccountUpdaterRequest() { - } + public ScheduleAccountUpdaterRequest() {} /** * This field contains additional data, which may be required for a particular request. * - * @param additionalData This field contains additional data, which may be required for a particular request. - * @return the current {@code ScheduleAccountUpdaterRequest} instance, allowing for method chaining + * @param additionalData This field contains additional data, which may be required for a + * particular request. + * @return the current {@code ScheduleAccountUpdaterRequest} instance, allowing for method + * chaining */ public ScheduleAccountUpdaterRequest additionalData(Map additionalData) { this.additionalData = additionalData; return this; } - public ScheduleAccountUpdaterRequest putAdditionalDataItem(String key, String additionalDataItem) { + public ScheduleAccountUpdaterRequest putAdditionalDataItem( + String key, String additionalDataItem) { if (this.additionalData == null) { this.additionalData = new HashMap<>(); } @@ -82,7 +74,9 @@ public ScheduleAccountUpdaterRequest putAdditionalDataItem(String key, String ad /** * This field contains additional data, which may be required for a particular request. - * @return additionalData This field contains additional data, which may be required for a particular request. + * + * @return additionalData This field contains additional data, which may be required for a + * particular request. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -93,7 +87,8 @@ public Map getAdditionalData() { /** * This field contains additional data, which may be required for a particular request. * - * @param additionalData This field contains additional data, which may be required for a particular request. + * @param additionalData This field contains additional data, which may be required for a + * particular request. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,8 +99,9 @@ public void setAdditionalData(Map additionalData) { /** * card * - * @param card - * @return the current {@code ScheduleAccountUpdaterRequest} instance, allowing for method chaining + * @param card + * @return the current {@code ScheduleAccountUpdaterRequest} instance, allowing for method + * chaining */ public ScheduleAccountUpdaterRequest card(Card card) { this.card = card; @@ -114,7 +110,8 @@ public ScheduleAccountUpdaterRequest card(Card card) { /** * Get card - * @return card + * + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,7 +122,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,7 +134,8 @@ public void setCard(Card card) { * Account of the merchant. * * @param merchantAccount Account of the merchant. - * @return the current {@code ScheduleAccountUpdaterRequest} instance, allowing for method chaining + * @return the current {@code ScheduleAccountUpdaterRequest} instance, allowing for method + * chaining */ public ScheduleAccountUpdaterRequest merchantAccount(String merchantAccount) { this.merchantAccount = merchantAccount; @@ -146,6 +144,7 @@ public ScheduleAccountUpdaterRequest merchantAccount(String merchantAccount) { /** * Account of the merchant. + * * @return merchantAccount Account of the merchant. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @@ -169,7 +168,8 @@ public void setMerchantAccount(String merchantAccount) { * A reference that merchants can apply for the call. * * @param reference A reference that merchants can apply for the call. - * @return the current {@code ScheduleAccountUpdaterRequest} instance, allowing for method chaining + * @return the current {@code ScheduleAccountUpdaterRequest} instance, allowing for method + * chaining */ public ScheduleAccountUpdaterRequest reference(String reference) { this.reference = reference; @@ -178,6 +178,7 @@ public ScheduleAccountUpdaterRequest reference(String reference) { /** * A reference that merchants can apply for the call. + * * @return reference A reference that merchants can apply for the call. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -198,19 +199,24 @@ public void setReference(String reference) { } /** - * The selected detail recurring reference. Optional if `card` is provided. + * The selected detail recurring reference. Optional if `card` is provided. * - * @param selectedRecurringDetailReference The selected detail recurring reference. Optional if `card` is provided. - * @return the current {@code ScheduleAccountUpdaterRequest} instance, allowing for method chaining + * @param selectedRecurringDetailReference The selected detail recurring reference. Optional if + * `card` is provided. + * @return the current {@code ScheduleAccountUpdaterRequest} instance, allowing for method + * chaining */ - public ScheduleAccountUpdaterRequest selectedRecurringDetailReference(String selectedRecurringDetailReference) { + public ScheduleAccountUpdaterRequest selectedRecurringDetailReference( + String selectedRecurringDetailReference) { this.selectedRecurringDetailReference = selectedRecurringDetailReference; return this; } /** - * The selected detail recurring reference. Optional if `card` is provided. - * @return selectedRecurringDetailReference The selected detail recurring reference. Optional if `card` is provided. + * The selected detail recurring reference. Optional if `card` is provided. + * + * @return selectedRecurringDetailReference The selected detail recurring reference. Optional if + * `card` is provided. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,9 +225,10 @@ public String getSelectedRecurringDetailReference() { } /** - * The selected detail recurring reference. Optional if `card` is provided. + * The selected detail recurring reference. Optional if `card` is provided. * - * @param selectedRecurringDetailReference The selected detail recurring reference. Optional if `card` is provided. + * @param selectedRecurringDetailReference The selected detail recurring reference. Optional if + * `card` is provided. */ @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -230,10 +237,13 @@ public void setSelectedRecurringDetailReference(String selectedRecurringDetailRe } /** - * The reference of the shopper that owns the recurring contract. Optional if `card` is provided. + * The reference of the shopper that owns the recurring contract. Optional if `card` is + * provided. * - * @param shopperReference The reference of the shopper that owns the recurring contract. Optional if `card` is provided. - * @return the current {@code ScheduleAccountUpdaterRequest} instance, allowing for method chaining + * @param shopperReference The reference of the shopper that owns the recurring contract. Optional + * if `card` is provided. + * @return the current {@code ScheduleAccountUpdaterRequest} instance, allowing for method + * chaining */ public ScheduleAccountUpdaterRequest shopperReference(String shopperReference) { this.shopperReference = shopperReference; @@ -241,8 +251,11 @@ public ScheduleAccountUpdaterRequest shopperReference(String shopperReference) { } /** - * The reference of the shopper that owns the recurring contract. Optional if `card` is provided. - * @return shopperReference The reference of the shopper that owns the recurring contract. Optional if `card` is provided. + * The reference of the shopper that owns the recurring contract. Optional if `card` is + * provided. + * + * @return shopperReference The reference of the shopper that owns the recurring contract. + * Optional if `card` is provided. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -251,9 +264,11 @@ public String getShopperReference() { } /** - * The reference of the shopper that owns the recurring contract. Optional if `card` is provided. + * The reference of the shopper that owns the recurring contract. Optional if `card` is + * provided. * - * @param shopperReference The reference of the shopper that owns the recurring contract. Optional if `card` is provided. + * @param shopperReference The reference of the shopper that owns the recurring contract. Optional + * if `card` is provided. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -261,9 +276,7 @@ public void setShopperReference(String shopperReference) { this.shopperReference = shopperReference; } - /** - * Return true if this ScheduleAccountUpdaterRequest object is equal to o. - */ + /** Return true if this ScheduleAccountUpdaterRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -273,17 +286,25 @@ public boolean equals(Object o) { return false; } ScheduleAccountUpdaterRequest scheduleAccountUpdaterRequest = (ScheduleAccountUpdaterRequest) o; - return Objects.equals(this.additionalData, scheduleAccountUpdaterRequest.additionalData) && - Objects.equals(this.card, scheduleAccountUpdaterRequest.card) && - Objects.equals(this.merchantAccount, scheduleAccountUpdaterRequest.merchantAccount) && - Objects.equals(this.reference, scheduleAccountUpdaterRequest.reference) && - Objects.equals(this.selectedRecurringDetailReference, scheduleAccountUpdaterRequest.selectedRecurringDetailReference) && - Objects.equals(this.shopperReference, scheduleAccountUpdaterRequest.shopperReference); + return Objects.equals(this.additionalData, scheduleAccountUpdaterRequest.additionalData) + && Objects.equals(this.card, scheduleAccountUpdaterRequest.card) + && Objects.equals(this.merchantAccount, scheduleAccountUpdaterRequest.merchantAccount) + && Objects.equals(this.reference, scheduleAccountUpdaterRequest.reference) + && Objects.equals( + this.selectedRecurringDetailReference, + scheduleAccountUpdaterRequest.selectedRecurringDetailReference) + && Objects.equals(this.shopperReference, scheduleAccountUpdaterRequest.shopperReference); } @Override public int hashCode() { - return Objects.hash(additionalData, card, merchantAccount, reference, selectedRecurringDetailReference, shopperReference); + return Objects.hash( + additionalData, + card, + merchantAccount, + reference, + selectedRecurringDetailReference, + shopperReference); } @Override @@ -294,15 +315,16 @@ public String toString() { sb.append(" card: ").append(toIndentedString(card)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); - sb.append(" selectedRecurringDetailReference: ").append(toIndentedString(selectedRecurringDetailReference)).append("\n"); + sb.append(" selectedRecurringDetailReference: ") + .append(toIndentedString(selectedRecurringDetailReference)) + .append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -311,21 +333,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ScheduleAccountUpdaterRequest given an JSON string * * @param jsonString JSON string * @return An instance of ScheduleAccountUpdaterRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to ScheduleAccountUpdaterRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ScheduleAccountUpdaterRequest */ - public static ScheduleAccountUpdaterRequest fromJson(String jsonString) throws JsonProcessingException { + public static ScheduleAccountUpdaterRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ScheduleAccountUpdaterRequest.class); } -/** - * Convert an instance of ScheduleAccountUpdaterRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ScheduleAccountUpdaterRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/ScheduleAccountUpdaterResult.java b/src/main/java/com/adyen/model/recurring/ScheduleAccountUpdaterResult.java index 7d124e76d..18f9911ef 100644 --- a/src/main/java/com/adyen/model/recurring/ScheduleAccountUpdaterResult.java +++ b/src/main/java/com/adyen/model/recurring/ScheduleAccountUpdaterResult.java @@ -2,36 +2,26 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.recurring; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ScheduleAccountUpdaterResult - */ +/** ScheduleAccountUpdaterResult */ @JsonPropertyOrder({ ScheduleAccountUpdaterResult.JSON_PROPERTY_PSP_REFERENCE, ScheduleAccountUpdaterResult.JSON_PROPERTY_RESULT }) - public class ScheduleAccountUpdaterResult { public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference"; private String pspReference; @@ -39,13 +29,14 @@ public class ScheduleAccountUpdaterResult { public static final String JSON_PROPERTY_RESULT = "result"; private String result; - public ScheduleAccountUpdaterResult() { - } + public ScheduleAccountUpdaterResult() {} /** - * Adyen's 16-character unique reference associated with the transaction. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character unique reference associated with the transaction. This value is + * globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character unique reference associated with the transaction. This value is globally unique; quote it when communicating with us about this request. + * @param pspReference Adyen's 16-character unique reference associated with the transaction. + * This value is globally unique; quote it when communicating with us about this request. * @return the current {@code ScheduleAccountUpdaterResult} instance, allowing for method chaining */ public ScheduleAccountUpdaterResult pspReference(String pspReference) { @@ -54,8 +45,11 @@ public ScheduleAccountUpdaterResult pspReference(String pspReference) { } /** - * Adyen's 16-character unique reference associated with the transaction. This value is globally unique; quote it when communicating with us about this request. - * @return pspReference Adyen's 16-character unique reference associated with the transaction. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character unique reference associated with the transaction. This value is + * globally unique; quote it when communicating with us about this request. + * + * @return pspReference Adyen's 16-character unique reference associated with the transaction. + * This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +58,11 @@ public String getPspReference() { } /** - * Adyen's 16-character unique reference associated with the transaction. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character unique reference associated with the transaction. This value is + * globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character unique reference associated with the transaction. This value is globally unique; quote it when communicating with us about this request. + * @param pspReference Adyen's 16-character unique reference associated with the transaction. + * This value is globally unique; quote it when communicating with us about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,9 +71,11 @@ public void setPspReference(String pspReference) { } /** - * The result of scheduling an Account Updater. If scheduling was successful, this field returns **Success**; otherwise it contains the error message. + * The result of scheduling an Account Updater. If scheduling was successful, this field returns + * **Success**; otherwise it contains the error message. * - * @param result The result of scheduling an Account Updater. If scheduling was successful, this field returns **Success**; otherwise it contains the error message. + * @param result The result of scheduling an Account Updater. If scheduling was successful, this + * field returns **Success**; otherwise it contains the error message. * @return the current {@code ScheduleAccountUpdaterResult} instance, allowing for method chaining */ public ScheduleAccountUpdaterResult result(String result) { @@ -86,8 +84,11 @@ public ScheduleAccountUpdaterResult result(String result) { } /** - * The result of scheduling an Account Updater. If scheduling was successful, this field returns **Success**; otherwise it contains the error message. - * @return result The result of scheduling an Account Updater. If scheduling was successful, this field returns **Success**; otherwise it contains the error message. + * The result of scheduling an Account Updater. If scheduling was successful, this field returns + * **Success**; otherwise it contains the error message. + * + * @return result The result of scheduling an Account Updater. If scheduling was successful, this + * field returns **Success**; otherwise it contains the error message. */ @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +97,11 @@ public String getResult() { } /** - * The result of scheduling an Account Updater. If scheduling was successful, this field returns **Success**; otherwise it contains the error message. + * The result of scheduling an Account Updater. If scheduling was successful, this field returns + * **Success**; otherwise it contains the error message. * - * @param result The result of scheduling an Account Updater. If scheduling was successful, this field returns **Success**; otherwise it contains the error message. + * @param result The result of scheduling an Account Updater. If scheduling was successful, this + * field returns **Success**; otherwise it contains the error message. */ @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +109,7 @@ public void setResult(String result) { this.result = result; } - /** - * Return true if this ScheduleAccountUpdaterResult object is equal to o. - */ + /** Return true if this ScheduleAccountUpdaterResult object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +119,8 @@ public boolean equals(Object o) { return false; } ScheduleAccountUpdaterResult scheduleAccountUpdaterResult = (ScheduleAccountUpdaterResult) o; - return Objects.equals(this.pspReference, scheduleAccountUpdaterResult.pspReference) && - Objects.equals(this.result, scheduleAccountUpdaterResult.result); + return Objects.equals(this.pspReference, scheduleAccountUpdaterResult.pspReference) + && Objects.equals(this.result, scheduleAccountUpdaterResult.result); } @Override @@ -138,8 +139,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +148,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ScheduleAccountUpdaterResult given an JSON string * * @param jsonString JSON string * @return An instance of ScheduleAccountUpdaterResult - * @throws JsonProcessingException if the JSON string is invalid with respect to ScheduleAccountUpdaterResult + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ScheduleAccountUpdaterResult */ - public static ScheduleAccountUpdaterResult fromJson(String jsonString) throws JsonProcessingException { + public static ScheduleAccountUpdaterResult fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ScheduleAccountUpdaterResult.class); } -/** - * Convert an instance of ScheduleAccountUpdaterResult to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ScheduleAccountUpdaterResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/ServiceError.java b/src/main/java/com/adyen/model/recurring/ServiceError.java index 5d1a14281..2e2c3eef5 100644 --- a/src/main/java/com/adyen/model/recurring/ServiceError.java +++ b/src/main/java/com/adyen/model/recurring/ServiceError.java @@ -2,33 +2,24 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.recurring; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.HashMap; +import java.util.Map; - -/** - * ServiceError - */ +/** ServiceError */ @JsonPropertyOrder({ ServiceError.JSON_PROPERTY_ADDITIONAL_DATA, ServiceError.JSON_PROPERTY_ERROR_CODE, @@ -37,7 +28,6 @@ ServiceError.JSON_PROPERTY_PSP_REFERENCE, ServiceError.JSON_PROPERTY_STATUS }) - public class ServiceError { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -57,13 +47,15 @@ public class ServiceError { public static final String JSON_PROPERTY_STATUS = "status"; private Integer status; - public ServiceError() { - } + public ServiceError() {} /** - * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first. Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first. Go to **Customer Area** > **Developers** > + * **Additional data**. * @return the current {@code ServiceError} instance, allowing for method chaining */ public ServiceError additionalData(Map additionalData) { @@ -80,8 +72,12 @@ public ServiceError putAdditionalDataItem(String key, String additionalDataItem) } /** - * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. - * @return additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * + * @return additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first. Go to **Customer Area** > **Developers** > + * **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -90,9 +86,12 @@ public Map getAdditionalData() { } /** - * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first. Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first. Go to **Customer Area** > **Developers** > + * **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,6 +112,7 @@ public ServiceError errorCode(String errorCode) { /** * The error code mapped to the error message. + * * @return errorCode The error code mapped to the error message. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -145,6 +145,7 @@ public ServiceError errorType(String errorType) { /** * The category of the error. + * * @return errorType The category of the error. */ @JsonProperty(JSON_PROPERTY_ERROR_TYPE) @@ -177,6 +178,7 @@ public ServiceError message(String message) { /** * A short explanation of the issue. + * * @return message A short explanation of the issue. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -209,6 +211,7 @@ public ServiceError pspReference(String pspReference) { /** * The PSP reference of the payment. + * * @return pspReference The PSP reference of the payment. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -241,6 +244,7 @@ public ServiceError status(Integer status) { /** * The HTTP response status. + * * @return status The HTTP response status. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -260,9 +264,7 @@ public void setStatus(Integer status) { this.status = status; } - /** - * Return true if this ServiceError object is equal to o. - */ + /** Return true if this ServiceError object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -272,12 +274,12 @@ public boolean equals(Object o) { return false; } ServiceError serviceError = (ServiceError) o; - return Objects.equals(this.additionalData, serviceError.additionalData) && - Objects.equals(this.errorCode, serviceError.errorCode) && - Objects.equals(this.errorType, serviceError.errorType) && - Objects.equals(this.message, serviceError.message) && - Objects.equals(this.pspReference, serviceError.pspReference) && - Objects.equals(this.status, serviceError.status); + return Objects.equals(this.additionalData, serviceError.additionalData) + && Objects.equals(this.errorCode, serviceError.errorCode) + && Objects.equals(this.errorType, serviceError.errorType) + && Objects.equals(this.message, serviceError.message) + && Objects.equals(this.pspReference, serviceError.pspReference) + && Objects.equals(this.status, serviceError.status); } @Override @@ -300,8 +302,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -310,7 +311,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ServiceError given an JSON string * * @param jsonString JSON string @@ -320,11 +321,12 @@ private String toIndentedString(Object o) { public static ServiceError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } -/** - * Convert an instance of ServiceError to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ServiceError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/recurring/TokenDetails.java b/src/main/java/com/adyen/model/recurring/TokenDetails.java index 493287444..da56a3e0b 100644 --- a/src/main/java/com/adyen/model/recurring/TokenDetails.java +++ b/src/main/java/com/adyen/model/recurring/TokenDetails.java @@ -2,38 +2,28 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.recurring; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.HashMap; +import java.util.Map; - -/** - * TokenDetails - */ +/** TokenDetails */ @JsonPropertyOrder({ TokenDetails.JSON_PROPERTY_TOKEN_DATA, TokenDetails.JSON_PROPERTY_TOKEN_DATA_TYPE }) - public class TokenDetails { public static final String JSON_PROPERTY_TOKEN_DATA = "tokenData"; private Map tokenData; @@ -41,13 +31,12 @@ public class TokenDetails { public static final String JSON_PROPERTY_TOKEN_DATA_TYPE = "tokenDataType"; private String tokenDataType; - public TokenDetails() { - } + public TokenDetails() {} /** * tokenData * - * @param tokenData + * @param tokenData * @return the current {@code TokenDetails} instance, allowing for method chaining */ public TokenDetails tokenData(Map tokenData) { @@ -65,7 +54,8 @@ public TokenDetails putTokenDataItem(String key, String tokenDataItem) { /** * Get tokenData - * @return tokenData + * + * @return tokenData */ @JsonProperty(JSON_PROPERTY_TOKEN_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -76,7 +66,7 @@ public Map getTokenData() { /** * tokenData * - * @param tokenData + * @param tokenData */ @JsonProperty(JSON_PROPERTY_TOKEN_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,7 +77,7 @@ public void setTokenData(Map tokenData) { /** * tokenDataType * - * @param tokenDataType + * @param tokenDataType * @return the current {@code TokenDetails} instance, allowing for method chaining */ public TokenDetails tokenDataType(String tokenDataType) { @@ -97,7 +87,8 @@ public TokenDetails tokenDataType(String tokenDataType) { /** * Get tokenDataType - * @return tokenDataType + * + * @return tokenDataType */ @JsonProperty(JSON_PROPERTY_TOKEN_DATA_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,7 +99,7 @@ public String getTokenDataType() { /** * tokenDataType * - * @param tokenDataType + * @param tokenDataType */ @JsonProperty(JSON_PROPERTY_TOKEN_DATA_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,9 +107,7 @@ public void setTokenDataType(String tokenDataType) { this.tokenDataType = tokenDataType; } - /** - * Return true if this TokenDetails object is equal to o. - */ + /** Return true if this TokenDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -128,8 +117,8 @@ public boolean equals(Object o) { return false; } TokenDetails tokenDetails = (TokenDetails) o; - return Objects.equals(this.tokenData, tokenDetails.tokenData) && - Objects.equals(this.tokenDataType, tokenDetails.tokenDataType); + return Objects.equals(this.tokenData, tokenDetails.tokenData) + && Objects.equals(this.tokenDataType, tokenDetails.tokenDataType); } @Override @@ -148,8 +137,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -158,7 +146,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TokenDetails given an JSON string * * @param jsonString JSON string @@ -168,11 +156,12 @@ private String toIndentedString(Object o) { public static TokenDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TokenDetails.class); } -/** - * Convert an instance of TokenDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TokenDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/reportwebhooks/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/reportwebhooks/AbstractOpenApiSchema.java index 7c4ab1b4d..839373b6a 100644 --- a/src/main/java/com/adyen/model/reportwebhooks/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/reportwebhooks/AbstractOpenApiSchema.java @@ -2,145 +2,141 @@ * Report webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.reportwebhooks; -import java.util.Objects; -import java.util.Map; -import jakarta.ws.rs.core.GenericType; - import com.fasterxml.jackson.annotation.JsonValue; +import jakarta.ws.rs.core.GenericType; +import java.util.Map; +import java.util.Objects; -/** - * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec - */ +/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() {return instance;} - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) {this.instance = instance;} - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); - } else { - return object.getActualInstance(); - } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() { + return instance; + } + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) { + this.instance = instance; + } + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf + * schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); + } else { + return object.getActualInstance(); } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) && - Objects.equals(this.isNullable, a.isNullable) && - Objects.equals(this.schemaType, a.schemaType); + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; } + return o.toString().replace("\n", "\n "); + } - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); + public boolean equals(Object o) { + if (this == o) { + return true; } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); + if (o == null || getClass() != o.getClass()) { + return false; } - - - -} \ No newline at end of file + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) + && Objects.equals(this.isNullable, a.isNullable) + && Objects.equals(this.schemaType, a.schemaType); + } + + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); + } + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); + } +} diff --git a/src/main/java/com/adyen/model/reportwebhooks/BalancePlatformNotificationResponse.java b/src/main/java/com/adyen/model/reportwebhooks/BalancePlatformNotificationResponse.java index 48b37503c..ab2375333 100644 --- a/src/main/java/com/adyen/model/reportwebhooks/BalancePlatformNotificationResponse.java +++ b/src/main/java/com/adyen/model/reportwebhooks/BalancePlatformNotificationResponse.java @@ -2,47 +2,37 @@ * Report webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.reportwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * BalancePlatformNotificationResponse - */ -@JsonPropertyOrder({ - BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE -}) - +/** BalancePlatformNotificationResponse */ +@JsonPropertyOrder({BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) public class BalancePlatformNotificationResponse { public static final String JSON_PROPERTY_NOTIFICATION_RESPONSE = "notificationResponse"; private String notificationResponse; - public BalancePlatformNotificationResponse() { - } + public BalancePlatformNotificationResponse() {} /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method chaining + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method + * chaining */ public BalancePlatformNotificationResponse notificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; @@ -50,8 +40,11 @@ public BalancePlatformNotificationResponse notificationResponse(String notificat } /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * + * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,9 +53,11 @@ public String getNotificationResponse() { } /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +65,7 @@ public void setNotificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; } - /** - * Return true if this BalancePlatformNotificationResponse object is equal to o. - */ + /** Return true if this BalancePlatformNotificationResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -81,8 +74,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - BalancePlatformNotificationResponse balancePlatformNotificationResponse = (BalancePlatformNotificationResponse) o; - return Objects.equals(this.notificationResponse, balancePlatformNotificationResponse.notificationResponse); + BalancePlatformNotificationResponse balancePlatformNotificationResponse = + (BalancePlatformNotificationResponse) o; + return Objects.equals( + this.notificationResponse, balancePlatformNotificationResponse.notificationResponse); } @Override @@ -94,14 +89,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BalancePlatformNotificationResponse {\n"); - sb.append(" notificationResponse: ").append(toIndentedString(notificationResponse)).append("\n"); + sb.append(" notificationResponse: ") + .append(toIndentedString(notificationResponse)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +106,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BalancePlatformNotificationResponse given an JSON string * * @param jsonString JSON string * @return An instance of BalancePlatformNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to BalancePlatformNotificationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BalancePlatformNotificationResponse */ - public static BalancePlatformNotificationResponse fromJson(String jsonString) throws JsonProcessingException { + public static BalancePlatformNotificationResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalancePlatformNotificationResponse.class); } -/** - * Convert an instance of BalancePlatformNotificationResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BalancePlatformNotificationResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/reportwebhooks/JSON.java b/src/main/java/com/adyen/model/reportwebhooks/JSON.java index 4fb5e89b6..5b5159e6c 100644 --- a/src/main/java/com/adyen/model/reportwebhooks/JSON.java +++ b/src/main/java/com/adyen/model/reportwebhooks/JSON.java @@ -1,21 +1,18 @@ package com.adyen.model.reportwebhooks; -import com.adyen.serializer.ByteArraySerializer; import com.adyen.serializer.ByteArrayDeserializer; +import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import com.adyen.model.reportwebhooks.*; - +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -40,6 +37,7 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. + * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -56,11 +54,13 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { return mapper; } + public static ObjectMapper getMapper() { + return mapper; + } /** - * Returns the target model class that should be used to deserialize the input data. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,9 +73,7 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** - * Helper class to register the discriminator mappings. - */ + /** Helper class to register the discriminator mappings. */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -117,9 +115,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. - * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. This + * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -164,13 +162,14 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, - * so it's not possible to use the instanceof keyword. + *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so + * it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf( + Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -194,59 +193,58 @@ public static boolean isInstanceOf(Class modelClass, Object inst, Set, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); + /** A map of discriminators for all model classes. */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = + new HashMap, ClassDiscriminatorMapping>(); - /** - * A map of oneOf/anyOf descendants for each model class. - */ + /** A map of oneOf/anyOf descendants for each model class. */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator( + Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = + new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants(Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants( + Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static - { + static { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/reportwebhooks/ReportNotificationData.java b/src/main/java/com/adyen/model/reportwebhooks/ReportNotificationData.java index 5425e77af..c3b1033a0 100644 --- a/src/main/java/com/adyen/model/reportwebhooks/ReportNotificationData.java +++ b/src/main/java/com/adyen/model/reportwebhooks/ReportNotificationData.java @@ -2,33 +2,23 @@ * Report webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.reportwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.reportwebhooks.ResourceReference; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.time.OffsetDateTime; +import java.util.*; - -/** - * ReportNotificationData - */ +/** ReportNotificationData */ @JsonPropertyOrder({ ReportNotificationData.JSON_PROPERTY_ACCOUNT_HOLDER, ReportNotificationData.JSON_PROPERTY_BALANCE_ACCOUNT, @@ -39,7 +29,6 @@ ReportNotificationData.JSON_PROPERTY_ID, ReportNotificationData.JSON_PROPERTY_REPORT_TYPE }) - public class ReportNotificationData { public static final String JSON_PROPERTY_ACCOUNT_HOLDER = "accountHolder"; private ResourceReference accountHolder; @@ -65,13 +54,12 @@ public class ReportNotificationData { public static final String JSON_PROPERTY_REPORT_TYPE = "reportType"; private String reportType; - public ReportNotificationData() { - } + public ReportNotificationData() {} /** * accountHolder * - * @param accountHolder + * @param accountHolder * @return the current {@code ReportNotificationData} instance, allowing for method chaining */ public ReportNotificationData accountHolder(ResourceReference accountHolder) { @@ -81,7 +69,8 @@ public ReportNotificationData accountHolder(ResourceReference accountHolder) { /** * Get accountHolder - * @return accountHolder + * + * @return accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -92,7 +81,7 @@ public ResourceReference getAccountHolder() { /** * accountHolder * - * @param accountHolder + * @param accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -103,7 +92,7 @@ public void setAccountHolder(ResourceReference accountHolder) { /** * balanceAccount * - * @param balanceAccount + * @param balanceAccount * @return the current {@code ReportNotificationData} instance, allowing for method chaining */ public ReportNotificationData balanceAccount(ResourceReference balanceAccount) { @@ -113,7 +102,8 @@ public ReportNotificationData balanceAccount(ResourceReference balanceAccount) { /** * Get balanceAccount - * @return balanceAccount + * + * @return balanceAccount */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,7 +114,7 @@ public ResourceReference getBalanceAccount() { /** * balanceAccount * - * @param balanceAccount + * @param balanceAccount */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,6 +135,7 @@ public ReportNotificationData balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. + * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -165,9 +156,11 @@ public void setBalancePlatform(String balancePlatform) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code ReportNotificationData} instance, allowing for method chaining */ public ReportNotificationData creationDate(OffsetDateTime creationDate) { @@ -176,8 +169,11 @@ public ReportNotificationData creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. + * + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,9 +182,11 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -197,9 +195,13 @@ public void setCreationDate(OffsetDateTime creationDate) { } /** - * The URL at which you can download the report. To download, you must authenticate your GET request with your [API credentials](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/overview). + * The URL at which you can download the report. To download, you must authenticate your GET + * request with your [API + * credentials](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/overview). * - * @param downloadUrl The URL at which you can download the report. To download, you must authenticate your GET request with your [API credentials](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/overview). + * @param downloadUrl The URL at which you can download the report. To download, you must + * authenticate your GET request with your [API + * credentials](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/overview). * @return the current {@code ReportNotificationData} instance, allowing for method chaining */ public ReportNotificationData downloadUrl(String downloadUrl) { @@ -208,8 +210,13 @@ public ReportNotificationData downloadUrl(String downloadUrl) { } /** - * The URL at which you can download the report. To download, you must authenticate your GET request with your [API credentials](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/overview). - * @return downloadUrl The URL at which you can download the report. To download, you must authenticate your GET request with your [API credentials](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/overview). + * The URL at which you can download the report. To download, you must authenticate your GET + * request with your [API + * credentials](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/overview). + * + * @return downloadUrl The URL at which you can download the report. To download, you must + * authenticate your GET request with your [API + * credentials](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/overview). */ @JsonProperty(JSON_PROPERTY_DOWNLOAD_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -218,9 +225,13 @@ public String getDownloadUrl() { } /** - * The URL at which you can download the report. To download, you must authenticate your GET request with your [API credentials](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/overview). + * The URL at which you can download the report. To download, you must authenticate your GET + * request with your [API + * credentials](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/overview). * - * @param downloadUrl The URL at which you can download the report. To download, you must authenticate your GET request with your [API credentials](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/overview). + * @param downloadUrl The URL at which you can download the report. To download, you must + * authenticate your GET request with your [API + * credentials](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/overview). */ @JsonProperty(JSON_PROPERTY_DOWNLOAD_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -241,6 +252,7 @@ public ReportNotificationData fileName(String fileName) { /** * The filename of the report. + * * @return fileName The filename of the report. */ @JsonProperty(JSON_PROPERTY_FILE_NAME) @@ -273,6 +285,7 @@ public ReportNotificationData id(String id) { /** * The ID of the resource. + * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -293,9 +306,18 @@ public void setId(String id) { } /** - * The type of report. Possible values: - `balanceplatform_accounting_interactive_report` - `balanceplatform_accounting_report` - `balanceplatform_balance_report` - `balanceplatform_fee_report` - `balanceplatform_payment_instrument_report` - `balanceplatform_payout_report` - `balanceplatform_statement_report` + * The type of report. Possible values: - + * `balanceplatform_accounting_interactive_report` - + * `balanceplatform_accounting_report` - `balanceplatform_balance_report` - + * `balanceplatform_fee_report` - `balanceplatform_payment_instrument_report` + * - `balanceplatform_payout_report` - `balanceplatform_statement_report` * - * @param reportType The type of report. Possible values: - `balanceplatform_accounting_interactive_report` - `balanceplatform_accounting_report` - `balanceplatform_balance_report` - `balanceplatform_fee_report` - `balanceplatform_payment_instrument_report` - `balanceplatform_payout_report` - `balanceplatform_statement_report` + * @param reportType The type of report. Possible values: - + * `balanceplatform_accounting_interactive_report` - + * `balanceplatform_accounting_report` - `balanceplatform_balance_report` + * - `balanceplatform_fee_report` - + * `balanceplatform_payment_instrument_report` - + * `balanceplatform_payout_report` - `balanceplatform_statement_report` * @return the current {@code ReportNotificationData} instance, allowing for method chaining */ public ReportNotificationData reportType(String reportType) { @@ -304,8 +326,18 @@ public ReportNotificationData reportType(String reportType) { } /** - * The type of report. Possible values: - `balanceplatform_accounting_interactive_report` - `balanceplatform_accounting_report` - `balanceplatform_balance_report` - `balanceplatform_fee_report` - `balanceplatform_payment_instrument_report` - `balanceplatform_payout_report` - `balanceplatform_statement_report` - * @return reportType The type of report. Possible values: - `balanceplatform_accounting_interactive_report` - `balanceplatform_accounting_report` - `balanceplatform_balance_report` - `balanceplatform_fee_report` - `balanceplatform_payment_instrument_report` - `balanceplatform_payout_report` - `balanceplatform_statement_report` + * The type of report. Possible values: - + * `balanceplatform_accounting_interactive_report` - + * `balanceplatform_accounting_report` - `balanceplatform_balance_report` - + * `balanceplatform_fee_report` - `balanceplatform_payment_instrument_report` + * - `balanceplatform_payout_report` - `balanceplatform_statement_report` + * + * @return reportType The type of report. Possible values: - + * `balanceplatform_accounting_interactive_report` - + * `balanceplatform_accounting_report` - `balanceplatform_balance_report` + * - `balanceplatform_fee_report` - + * `balanceplatform_payment_instrument_report` - + * `balanceplatform_payout_report` - `balanceplatform_statement_report` */ @JsonProperty(JSON_PROPERTY_REPORT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -314,9 +346,18 @@ public String getReportType() { } /** - * The type of report. Possible values: - `balanceplatform_accounting_interactive_report` - `balanceplatform_accounting_report` - `balanceplatform_balance_report` - `balanceplatform_fee_report` - `balanceplatform_payment_instrument_report` - `balanceplatform_payout_report` - `balanceplatform_statement_report` + * The type of report. Possible values: - + * `balanceplatform_accounting_interactive_report` - + * `balanceplatform_accounting_report` - `balanceplatform_balance_report` - + * `balanceplatform_fee_report` - `balanceplatform_payment_instrument_report` + * - `balanceplatform_payout_report` - `balanceplatform_statement_report` * - * @param reportType The type of report. Possible values: - `balanceplatform_accounting_interactive_report` - `balanceplatform_accounting_report` - `balanceplatform_balance_report` - `balanceplatform_fee_report` - `balanceplatform_payment_instrument_report` - `balanceplatform_payout_report` - `balanceplatform_statement_report` + * @param reportType The type of report. Possible values: - + * `balanceplatform_accounting_interactive_report` - + * `balanceplatform_accounting_report` - `balanceplatform_balance_report` + * - `balanceplatform_fee_report` - + * `balanceplatform_payment_instrument_report` - + * `balanceplatform_payout_report` - `balanceplatform_statement_report` */ @JsonProperty(JSON_PROPERTY_REPORT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -324,9 +365,7 @@ public void setReportType(String reportType) { this.reportType = reportType; } - /** - * Return true if this ReportNotificationData object is equal to o. - */ + /** Return true if this ReportNotificationData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -336,19 +375,27 @@ public boolean equals(Object o) { return false; } ReportNotificationData reportNotificationData = (ReportNotificationData) o; - return Objects.equals(this.accountHolder, reportNotificationData.accountHolder) && - Objects.equals(this.balanceAccount, reportNotificationData.balanceAccount) && - Objects.equals(this.balancePlatform, reportNotificationData.balancePlatform) && - Objects.equals(this.creationDate, reportNotificationData.creationDate) && - Objects.equals(this.downloadUrl, reportNotificationData.downloadUrl) && - Objects.equals(this.fileName, reportNotificationData.fileName) && - Objects.equals(this.id, reportNotificationData.id) && - Objects.equals(this.reportType, reportNotificationData.reportType); + return Objects.equals(this.accountHolder, reportNotificationData.accountHolder) + && Objects.equals(this.balanceAccount, reportNotificationData.balanceAccount) + && Objects.equals(this.balancePlatform, reportNotificationData.balancePlatform) + && Objects.equals(this.creationDate, reportNotificationData.creationDate) + && Objects.equals(this.downloadUrl, reportNotificationData.downloadUrl) + && Objects.equals(this.fileName, reportNotificationData.fileName) + && Objects.equals(this.id, reportNotificationData.id) + && Objects.equals(this.reportType, reportNotificationData.reportType); } @Override public int hashCode() { - return Objects.hash(accountHolder, balanceAccount, balancePlatform, creationDate, downloadUrl, fileName, id, reportType); + return Objects.hash( + accountHolder, + balanceAccount, + balancePlatform, + creationDate, + downloadUrl, + fileName, + id, + reportType); } @Override @@ -368,8 +415,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -378,21 +424,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ReportNotificationData given an JSON string * * @param jsonString JSON string * @return An instance of ReportNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to ReportNotificationData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ReportNotificationData */ public static ReportNotificationData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ReportNotificationData.class); } -/** - * Convert an instance of ReportNotificationData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ReportNotificationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/reportwebhooks/ReportNotificationRequest.java b/src/main/java/com/adyen/model/reportwebhooks/ReportNotificationRequest.java index 45c6b505a..048d5fc8c 100644 --- a/src/main/java/com/adyen/model/reportwebhooks/ReportNotificationRequest.java +++ b/src/main/java/com/adyen/model/reportwebhooks/ReportNotificationRequest.java @@ -2,40 +2,33 @@ * Report webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.reportwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.reportwebhooks.ReportNotificationData; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * ReportNotificationRequest - */ +/** ReportNotificationRequest */ @JsonPropertyOrder({ ReportNotificationRequest.JSON_PROPERTY_DATA, ReportNotificationRequest.JSON_PROPERTY_ENVIRONMENT, ReportNotificationRequest.JSON_PROPERTY_TIMESTAMP, ReportNotificationRequest.JSON_PROPERTY_TYPE }) - public class ReportNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private ReportNotificationData data; @@ -46,11 +39,8 @@ public class ReportNotificationRequest { public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; private OffsetDateTime timestamp; - /** - * Type of webhook. - */ + /** Type of webhook. */ public enum TypeEnum { - BALANCEPLATFORM_REPORT_CREATED(String.valueOf("balancePlatform.report.created")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -58,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -79,7 +69,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -87,13 +81,12 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public ReportNotificationRequest() { - } + public ReportNotificationRequest() {} /** * data * - * @param data + * @param data * @return the current {@code ReportNotificationRequest} instance, allowing for method chaining */ public ReportNotificationRequest data(ReportNotificationData data) { @@ -103,7 +96,8 @@ public ReportNotificationRequest data(ReportNotificationData data) { /** * Get data - * @return data + * + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,7 +108,7 @@ public ReportNotificationData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,9 +117,10 @@ public void setData(ReportNotificationData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. * @return the current {@code ReportNotificationRequest} instance, allowing for method chaining */ public ReportNotificationRequest environment(String environment) { @@ -134,8 +129,10 @@ public ReportNotificationRequest environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * + * @return environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,9 +141,10 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,6 +165,7 @@ public ReportNotificationRequest timestamp(OffsetDateTime timestamp) { /** * When the event was queued. + * * @return timestamp When the event was queued. */ @JsonProperty(JSON_PROPERTY_TIMESTAMP) @@ -199,6 +198,7 @@ public ReportNotificationRequest type(TypeEnum type) { /** * Type of webhook. + * * @return type Type of webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -218,9 +218,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this ReportNotificationRequest object is equal to o. - */ + /** Return true if this ReportNotificationRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -230,10 +228,10 @@ public boolean equals(Object o) { return false; } ReportNotificationRequest reportNotificationRequest = (ReportNotificationRequest) o; - return Objects.equals(this.data, reportNotificationRequest.data) && - Objects.equals(this.environment, reportNotificationRequest.environment) && - Objects.equals(this.timestamp, reportNotificationRequest.timestamp) && - Objects.equals(this.type, reportNotificationRequest.type); + return Objects.equals(this.data, reportNotificationRequest.data) + && Objects.equals(this.environment, reportNotificationRequest.environment) + && Objects.equals(this.timestamp, reportNotificationRequest.timestamp) + && Objects.equals(this.type, reportNotificationRequest.type); } @Override @@ -254,8 +252,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -264,21 +261,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ReportNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of ReportNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to ReportNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ReportNotificationRequest */ - public static ReportNotificationRequest fromJson(String jsonString) throws JsonProcessingException { + public static ReportNotificationRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ReportNotificationRequest.class); } -/** - * Convert an instance of ReportNotificationRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ReportNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/reportwebhooks/ReportWebhooksHandler.java b/src/main/java/com/adyen/model/reportwebhooks/ReportWebhooksHandler.java index 0d65ad82b..db670fdf9 100644 --- a/src/main/java/com/adyen/model/reportwebhooks/ReportWebhooksHandler.java +++ b/src/main/java/com/adyen/model/reportwebhooks/ReportWebhooksHandler.java @@ -2,7 +2,7 @@ * Report webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,63 +16,62 @@ /** * Handler for processing ReportWebhooks. - *

- * This class provides functionality to deserialize the payload of ReportWebhooks events. + * + *

This class provides functionality to deserialize the payload of ReportWebhooks events. */ public class ReportWebhooksHandler { - private static final Logger LOG = Logger.getLogger(ReportWebhooksHandler.class.getName()); + private static final Logger LOG = Logger.getLogger(ReportWebhooksHandler.class.getName()); - private final String payload; + private final String payload; - /** - * Constructs a new handler for the given webhook payload - * - * @param payload the raw JSON payload from the webhook - */ - public ReportWebhooksHandler(String payload) { - this.payload = payload; - } + /** + * Constructs a new handler for the given webhook payload + * + * @param payload the raw JSON payload from the webhook + */ + public ReportWebhooksHandler(String payload) { + this.payload = payload; + } - /** - * Attempts to deserialize the webhook payload into a ReportNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getReportNotificationRequest() { + /** + * Attempts to deserialize the webhook payload into a ReportNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getReportNotificationRequest() { - var optionalReportNotificationRequest = getOptionalField(ReportNotificationRequest.class); + var optionalReportNotificationRequest = getOptionalField(ReportNotificationRequest.class); - if(optionalReportNotificationRequest.isPresent()) { - // verify event type - for (var value : ReportNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalReportNotificationRequest.get().getType())) { - // found matching event type - return optionalReportNotificationRequest; - } - } + if (optionalReportNotificationRequest.isPresent()) { + // verify event type + for (var value : ReportNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalReportNotificationRequest.get().getType())) { + // found matching event type + return optionalReportNotificationRequest; } - - return Optional.empty(); + } } - /** - * Deserializes the payload into the specified class type. - * - * @param clazz the class to deserialize into - * @param the type of the class - * @return an Optional containing the deserialized object, or empty if an error occurs - */ - private Optional getOptionalField(Class clazz) { - try { - T val = JSON.getMapper().readValue(payload, clazz); - return Optional.ofNullable(val); - } catch (Exception e) { - // an error has occurred during deserialization (object not found, deserialization error) - LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); - LOG.warning("Deserialization error: " + e.getMessage()); - return Optional.empty(); - } - } + return Optional.empty(); + } -} \ No newline at end of file + /** + * Deserializes the payload into the specified class type. + * + * @param clazz the class to deserialize into + * @param the type of the class + * @return an Optional containing the deserialized object, or empty if an error occurs + */ + private Optional getOptionalField(Class clazz) { + try { + T val = JSON.getMapper().readValue(payload, clazz); + return Optional.ofNullable(val); + } catch (Exception e) { + // an error has occurred during deserialization (object not found, deserialization error) + LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); + LOG.warning("Deserialization error: " + e.getMessage()); + return Optional.empty(); + } + } +} diff --git a/src/main/java/com/adyen/model/reportwebhooks/Resource.java b/src/main/java/com/adyen/model/reportwebhooks/Resource.java index e18b70c00..68ccb752a 100644 --- a/src/main/java/com/adyen/model/reportwebhooks/Resource.java +++ b/src/main/java/com/adyen/model/reportwebhooks/Resource.java @@ -2,38 +2,28 @@ * Report webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.reportwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.time.OffsetDateTime; +import java.util.*; - -/** - * Resource - */ +/** Resource */ @JsonPropertyOrder({ Resource.JSON_PROPERTY_BALANCE_PLATFORM, Resource.JSON_PROPERTY_CREATION_DATE, Resource.JSON_PROPERTY_ID }) - public class Resource { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; @@ -44,8 +34,7 @@ public class Resource { public static final String JSON_PROPERTY_ID = "id"; private String id; - public Resource() { - } + public Resource() {} /** * The unique identifier of the balance platform. @@ -60,6 +49,7 @@ public Resource balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. + * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -80,9 +70,11 @@ public void setBalancePlatform(String balancePlatform) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code Resource} instance, allowing for method chaining */ public Resource creationDate(OffsetDateTime creationDate) { @@ -91,8 +83,11 @@ public Resource creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. + * + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,9 +96,11 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,6 +121,7 @@ public Resource id(String id) { /** * The ID of the resource. + * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -143,9 +141,7 @@ public void setId(String id) { this.id = id; } - /** - * Return true if this Resource object is equal to o. - */ + /** Return true if this Resource object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -155,9 +151,9 @@ public boolean equals(Object o) { return false; } Resource resource = (Resource) o; - return Objects.equals(this.balancePlatform, resource.balancePlatform) && - Objects.equals(this.creationDate, resource.creationDate) && - Objects.equals(this.id, resource.id); + return Objects.equals(this.balancePlatform, resource.balancePlatform) + && Objects.equals(this.creationDate, resource.creationDate) + && Objects.equals(this.id, resource.id); } @Override @@ -177,8 +173,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -187,7 +182,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Resource given an JSON string * * @param jsonString JSON string @@ -197,11 +192,12 @@ private String toIndentedString(Object o) { public static Resource fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Resource.class); } -/** - * Convert an instance of Resource to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Resource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/reportwebhooks/ResourceReference.java b/src/main/java/com/adyen/model/reportwebhooks/ResourceReference.java index f3d8f0932..23373433d 100644 --- a/src/main/java/com/adyen/model/reportwebhooks/ResourceReference.java +++ b/src/main/java/com/adyen/model/reportwebhooks/ResourceReference.java @@ -2,37 +2,27 @@ * Report webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.reportwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ResourceReference - */ +/** ResourceReference */ @JsonPropertyOrder({ ResourceReference.JSON_PROPERTY_DESCRIPTION, ResourceReference.JSON_PROPERTY_ID, ResourceReference.JSON_PROPERTY_REFERENCE }) - public class ResourceReference { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -43,8 +33,7 @@ public class ResourceReference { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public ResourceReference() { - } + public ResourceReference() {} /** * The description of the resource. @@ -59,6 +48,7 @@ public ResourceReference description(String description) { /** * The description of the resource. + * * @return description The description of the resource. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -91,6 +81,7 @@ public ResourceReference id(String id) { /** * The unique identifier of the resource. + * * @return id The unique identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -123,6 +114,7 @@ public ResourceReference reference(String reference) { /** * The reference for the resource. + * * @return reference The reference for the resource. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -142,9 +134,7 @@ public void setReference(String reference) { this.reference = reference; } - /** - * Return true if this ResourceReference object is equal to o. - */ + /** Return true if this ResourceReference object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +144,9 @@ public boolean equals(Object o) { return false; } ResourceReference resourceReference = (ResourceReference) o; - return Objects.equals(this.description, resourceReference.description) && - Objects.equals(this.id, resourceReference.id) && - Objects.equals(this.reference, resourceReference.reference); + return Objects.equals(this.description, resourceReference.description) + && Objects.equals(this.id, resourceReference.id) + && Objects.equals(this.reference, resourceReference.reference); } @Override @@ -176,8 +166,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +175,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResourceReference given an JSON string * * @param jsonString JSON string @@ -196,11 +185,12 @@ private String toIndentedString(Object o) { public static ResourceReference fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResourceReference.class); } -/** - * Convert an instance of ResourceReference to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResourceReference to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/sessionauthentication/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/sessionauthentication/AbstractOpenApiSchema.java index 3db1abca7..f6d638482 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/sessionauthentication/AbstractOpenApiSchema.java @@ -2,145 +2,141 @@ * Session authentication API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.sessionauthentication; -import java.util.Objects; -import java.util.Map; -import jakarta.ws.rs.core.GenericType; - import com.fasterxml.jackson.annotation.JsonValue; +import jakarta.ws.rs.core.GenericType; +import java.util.Map; +import java.util.Objects; -/** - * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec - */ +/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() {return instance;} - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) {this.instance = instance;} - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); - } else { - return object.getActualInstance(); - } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() { + return instance; + } + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) { + this.instance = instance; + } + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf + * schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); + } else { + return object.getActualInstance(); } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) && - Objects.equals(this.isNullable, a.isNullable) && - Objects.equals(this.schemaType, a.schemaType); + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; } + return o.toString().replace("\n", "\n "); + } - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); + public boolean equals(Object o) { + if (this == o) { + return true; } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); + if (o == null || getClass() != o.getClass()) { + return false; } - - - -} \ No newline at end of file + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) + && Objects.equals(this.isNullable, a.isNullable) + && Objects.equals(this.schemaType, a.schemaType); + } + + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); + } + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); + } +} diff --git a/src/main/java/com/adyen/model/sessionauthentication/AccountHolderResource.java b/src/main/java/com/adyen/model/sessionauthentication/AccountHolderResource.java index 6066bf472..091c6407b 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/AccountHolderResource.java +++ b/src/main/java/com/adyen/model/sessionauthentication/AccountHolderResource.java @@ -2,57 +2,50 @@ * Session authentication API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.sessionauthentication; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.sessionauthentication.Resource; -import com.adyen.model.sessionauthentication.ResourceType; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AccountHolderResource - */ -@JsonPropertyOrder({ - AccountHolderResource.JSON_PROPERTY_ACCOUNT_HOLDER_ID -}) - +/** AccountHolderResource */ +@JsonPropertyOrder({AccountHolderResource.JSON_PROPERTY_ACCOUNT_HOLDER_ID}) @JsonIgnoreProperties( - value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization - allowSetters = true // allows the type to be set during deserialization -) -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) - + value = + "type", // ignore manually set type, it will be automatically generated by Jackson during + // serialization + allowSetters = true // allows the type to be set during deserialization + ) +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.PROPERTY, + property = "type", + visible = true) public class AccountHolderResource extends Resource { public static final String JSON_PROPERTY_ACCOUNT_HOLDER_ID = "accountHolderId"; private String accountHolderId; - public AccountHolderResource() { - } + public AccountHolderResource() {} /** - * The unique identifier of the resource connected to the component. For [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the account holder linked to the balance account shown in the component. + * The unique identifier of the resource connected to the component. For [Platform Experience + * components](https://docs.adyen.com/platforms/build-user-dashboards), this is the account holder + * linked to the balance account shown in the component. * - * @param accountHolderId The unique identifier of the resource connected to the component. For [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the account holder linked to the balance account shown in the component. + * @param accountHolderId The unique identifier of the resource connected to the component. For + * [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), + * this is the account holder linked to the balance account shown in the component. * @return the current {@code AccountHolderResource} instance, allowing for method chaining */ public AccountHolderResource accountHolderId(String accountHolderId) { @@ -61,8 +54,13 @@ public AccountHolderResource accountHolderId(String accountHolderId) { } /** - * The unique identifier of the resource connected to the component. For [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the account holder linked to the balance account shown in the component. - * @return accountHolderId The unique identifier of the resource connected to the component. For [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the account holder linked to the balance account shown in the component. + * The unique identifier of the resource connected to the component. For [Platform Experience + * components](https://docs.adyen.com/platforms/build-user-dashboards), this is the account holder + * linked to the balance account shown in the component. + * + * @return accountHolderId The unique identifier of the resource connected to the component. For + * [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), + * this is the account holder linked to the balance account shown in the component. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,9 +69,13 @@ public String getAccountHolderId() { } /** - * The unique identifier of the resource connected to the component. For [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the account holder linked to the balance account shown in the component. + * The unique identifier of the resource connected to the component. For [Platform Experience + * components](https://docs.adyen.com/platforms/build-user-dashboards), this is the account holder + * linked to the balance account shown in the component. * - * @param accountHolderId The unique identifier of the resource connected to the component. For [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the account holder linked to the balance account shown in the component. + * @param accountHolderId The unique identifier of the resource connected to the component. For + * [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), + * this is the account holder linked to the balance account shown in the component. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -81,9 +83,7 @@ public void setAccountHolderId(String accountHolderId) { this.accountHolderId = accountHolderId; } - /** - * Return true if this AccountHolderResource object is equal to o. - */ + /** Return true if this AccountHolderResource object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -93,8 +93,8 @@ public boolean equals(Object o) { return false; } AccountHolderResource accountHolderResource = (AccountHolderResource) o; - return Objects.equals(this.accountHolderId, accountHolderResource.accountHolderId) && - super.equals(o); + return Objects.equals(this.accountHolderId, accountHolderResource.accountHolderId) + && super.equals(o); } @Override @@ -113,8 +113,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -129,21 +128,24 @@ private String toIndentedString(Object o) { mappings.put("AccountHolderResource", AccountHolderResource.class); JSON.registerDiscriminator(AccountHolderResource.class, "type", mappings); } -/** + + /** * Create an instance of AccountHolderResource given an JSON string * * @param jsonString JSON string * @return An instance of AccountHolderResource - * @throws JsonProcessingException if the JSON string is invalid with respect to AccountHolderResource + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AccountHolderResource */ public static AccountHolderResource fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AccountHolderResource.class); } -/** - * Convert an instance of AccountHolderResource to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AccountHolderResource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/sessionauthentication/AuthenticationSessionRequest.java b/src/main/java/com/adyen/model/sessionauthentication/AuthenticationSessionRequest.java index e52aa6202..f03dfab09 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/AuthenticationSessionRequest.java +++ b/src/main/java/com/adyen/model/sessionauthentication/AuthenticationSessionRequest.java @@ -2,39 +2,27 @@ * Session authentication API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.sessionauthentication; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.sessionauthentication.Policy; -import com.adyen.model.sessionauthentication.ProductType; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AuthenticationSessionRequest - */ +/** AuthenticationSessionRequest */ @JsonPropertyOrder({ AuthenticationSessionRequest.JSON_PROPERTY_ALLOW_ORIGIN, AuthenticationSessionRequest.JSON_PROPERTY_POLICY, AuthenticationSessionRequest.JSON_PROPERTY_PRODUCT }) - public class AuthenticationSessionRequest { public static final String JSON_PROPERTY_ALLOW_ORIGIN = "allowOrigin"; private String allowOrigin; @@ -45,13 +33,15 @@ public class AuthenticationSessionRequest { public static final String JSON_PROPERTY_PRODUCT = "product"; private ProductType product; - public AuthenticationSessionRequest() { - } + public AuthenticationSessionRequest() {} /** - * The URL where the component will appear. In your live environment, you must protect the URL with an SSL certificate and ensure that it starts with `https://`. + * The URL where the component will appear. In your live environment, you must protect the URL + * with an SSL certificate and ensure that it starts with `https://`. * - * @param allowOrigin The URL where the component will appear. In your live environment, you must protect the URL with an SSL certificate and ensure that it starts with `https://`. + * @param allowOrigin The URL where the component will appear. In your live environment, you must + * protect the URL with an SSL certificate and ensure that it starts with + * `https://`. * @return the current {@code AuthenticationSessionRequest} instance, allowing for method chaining */ public AuthenticationSessionRequest allowOrigin(String allowOrigin) { @@ -60,8 +50,12 @@ public AuthenticationSessionRequest allowOrigin(String allowOrigin) { } /** - * The URL where the component will appear. In your live environment, you must protect the URL with an SSL certificate and ensure that it starts with `https://`. - * @return allowOrigin The URL where the component will appear. In your live environment, you must protect the URL with an SSL certificate and ensure that it starts with `https://`. + * The URL where the component will appear. In your live environment, you must protect the URL + * with an SSL certificate and ensure that it starts with `https://`. + * + * @return allowOrigin The URL where the component will appear. In your live environment, you must + * protect the URL with an SSL certificate and ensure that it starts with + * `https://`. */ @JsonProperty(JSON_PROPERTY_ALLOW_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +64,12 @@ public String getAllowOrigin() { } /** - * The URL where the component will appear. In your live environment, you must protect the URL with an SSL certificate and ensure that it starts with `https://`. + * The URL where the component will appear. In your live environment, you must protect the URL + * with an SSL certificate and ensure that it starts with `https://`. * - * @param allowOrigin The URL where the component will appear. In your live environment, you must protect the URL with an SSL certificate and ensure that it starts with `https://`. + * @param allowOrigin The URL where the component will appear. In your live environment, you must + * protect the URL with an SSL certificate and ensure that it starts with + * `https://`. */ @JsonProperty(JSON_PROPERTY_ALLOW_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,7 +80,7 @@ public void setAllowOrigin(String allowOrigin) { /** * policy * - * @param policy + * @param policy * @return the current {@code AuthenticationSessionRequest} instance, allowing for method chaining */ public AuthenticationSessionRequest policy(Policy policy) { @@ -93,7 +90,8 @@ public AuthenticationSessionRequest policy(Policy policy) { /** * Get policy - * @return policy + * + * @return policy */ @JsonProperty(JSON_PROPERTY_POLICY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,7 +102,7 @@ public Policy getPolicy() { /** * policy * - * @param policy + * @param policy */ @JsonProperty(JSON_PROPERTY_POLICY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,7 +113,7 @@ public void setPolicy(Policy policy) { /** * product * - * @param product + * @param product * @return the current {@code AuthenticationSessionRequest} instance, allowing for method chaining */ public AuthenticationSessionRequest product(ProductType product) { @@ -125,7 +123,8 @@ public AuthenticationSessionRequest product(ProductType product) { /** * Get product - * @return product + * + * @return product */ @JsonProperty(JSON_PROPERTY_PRODUCT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,7 +135,7 @@ public ProductType getProduct() { /** * product * - * @param product + * @param product */ @JsonProperty(JSON_PROPERTY_PRODUCT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,9 +143,7 @@ public void setProduct(ProductType product) { this.product = product; } - /** - * Return true if this AuthenticationSessionRequest object is equal to o. - */ + /** Return true if this AuthenticationSessionRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,9 +153,9 @@ public boolean equals(Object o) { return false; } AuthenticationSessionRequest authenticationSessionRequest = (AuthenticationSessionRequest) o; - return Objects.equals(this.allowOrigin, authenticationSessionRequest.allowOrigin) && - Objects.equals(this.policy, authenticationSessionRequest.policy) && - Objects.equals(this.product, authenticationSessionRequest.product); + return Objects.equals(this.allowOrigin, authenticationSessionRequest.allowOrigin) + && Objects.equals(this.policy, authenticationSessionRequest.policy) + && Objects.equals(this.product, authenticationSessionRequest.product); } @Override @@ -178,8 +175,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -188,21 +184,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AuthenticationSessionRequest given an JSON string * * @param jsonString JSON string * @return An instance of AuthenticationSessionRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to AuthenticationSessionRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AuthenticationSessionRequest */ - public static AuthenticationSessionRequest fromJson(String jsonString) throws JsonProcessingException { + public static AuthenticationSessionRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AuthenticationSessionRequest.class); } -/** - * Convert an instance of AuthenticationSessionRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AuthenticationSessionRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/sessionauthentication/AuthenticationSessionResponse.java b/src/main/java/com/adyen/model/sessionauthentication/AuthenticationSessionResponse.java index 2d9d90cfa..e014962cc 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/AuthenticationSessionResponse.java +++ b/src/main/java/com/adyen/model/sessionauthentication/AuthenticationSessionResponse.java @@ -2,36 +2,26 @@ * Session authentication API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.sessionauthentication; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * AuthenticationSessionResponse - */ +/** AuthenticationSessionResponse */ @JsonPropertyOrder({ AuthenticationSessionResponse.JSON_PROPERTY_ID, AuthenticationSessionResponse.JSON_PROPERTY_TOKEN }) - public class AuthenticationSessionResponse { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -39,14 +29,14 @@ public class AuthenticationSessionResponse { public static final String JSON_PROPERTY_TOKEN = "token"; private String token; - public AuthenticationSessionResponse() { - } + public AuthenticationSessionResponse() {} /** * The unique identifier of the session. * * @param id The unique identifier of the session. - * @return the current {@code AuthenticationSessionResponse} instance, allowing for method chaining + * @return the current {@code AuthenticationSessionResponse} instance, allowing for method + * chaining */ public AuthenticationSessionResponse id(String id) { this.id = id; @@ -55,6 +45,7 @@ public AuthenticationSessionResponse id(String id) { /** * The unique identifier of the session. + * * @return id The unique identifier of the session. */ @JsonProperty(JSON_PROPERTY_ID) @@ -78,7 +69,8 @@ public void setId(String id) { * The session token created. * * @param token The session token created. - * @return the current {@code AuthenticationSessionResponse} instance, allowing for method chaining + * @return the current {@code AuthenticationSessionResponse} instance, allowing for method + * chaining */ public AuthenticationSessionResponse token(String token) { this.token = token; @@ -87,6 +79,7 @@ public AuthenticationSessionResponse token(String token) { /** * The session token created. + * * @return token The session token created. */ @JsonProperty(JSON_PROPERTY_TOKEN) @@ -106,9 +99,7 @@ public void setToken(String token) { this.token = token; } - /** - * Return true if this AuthenticationSessionResponse object is equal to o. - */ + /** Return true if this AuthenticationSessionResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +109,8 @@ public boolean equals(Object o) { return false; } AuthenticationSessionResponse authenticationSessionResponse = (AuthenticationSessionResponse) o; - return Objects.equals(this.id, authenticationSessionResponse.id) && - Objects.equals(this.token, authenticationSessionResponse.token); + return Objects.equals(this.id, authenticationSessionResponse.id) + && Objects.equals(this.token, authenticationSessionResponse.token); } @Override @@ -138,8 +129,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +138,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AuthenticationSessionResponse given an JSON string * * @param jsonString JSON string * @return An instance of AuthenticationSessionResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to AuthenticationSessionResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AuthenticationSessionResponse */ - public static AuthenticationSessionResponse fromJson(String jsonString) throws JsonProcessingException { + public static AuthenticationSessionResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AuthenticationSessionResponse.class); } -/** - * Convert an instance of AuthenticationSessionResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AuthenticationSessionResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/sessionauthentication/BalanceAccountResource.java b/src/main/java/com/adyen/model/sessionauthentication/BalanceAccountResource.java index dfa50be4f..6f38c2ea2 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/BalanceAccountResource.java +++ b/src/main/java/com/adyen/model/sessionauthentication/BalanceAccountResource.java @@ -2,57 +2,46 @@ * Session authentication API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.sessionauthentication; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.sessionauthentication.Resource; -import com.adyen.model.sessionauthentication.ResourceType; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * BalanceAccountResource - */ -@JsonPropertyOrder({ - BalanceAccountResource.JSON_PROPERTY_BALANCE_ACCOUNT_ID -}) - +/** BalanceAccountResource */ +@JsonPropertyOrder({BalanceAccountResource.JSON_PROPERTY_BALANCE_ACCOUNT_ID}) @JsonIgnoreProperties( - value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization - allowSetters = true // allows the type to be set during deserialization -) -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) - + value = + "type", // ignore manually set type, it will be automatically generated by Jackson during + // serialization + allowSetters = true // allows the type to be set during deserialization + ) +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.PROPERTY, + property = "type", + visible = true) public class BalanceAccountResource extends Resource { public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; - public BalanceAccountResource() { - } + public BalanceAccountResource() {} /** * balanceAccountId * - * @param balanceAccountId + * @param balanceAccountId * @return the current {@code BalanceAccountResource} instance, allowing for method chaining */ public BalanceAccountResource balanceAccountId(String balanceAccountId) { @@ -62,7 +51,8 @@ public BalanceAccountResource balanceAccountId(String balanceAccountId) { /** * Get balanceAccountId - * @return balanceAccountId + * + * @return balanceAccountId */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -73,7 +63,7 @@ public String getBalanceAccountId() { /** * balanceAccountId * - * @param balanceAccountId + * @param balanceAccountId */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -81,9 +71,7 @@ public void setBalanceAccountId(String balanceAccountId) { this.balanceAccountId = balanceAccountId; } - /** - * Return true if this BalanceAccountResource object is equal to o. - */ + /** Return true if this BalanceAccountResource object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -93,8 +81,8 @@ public boolean equals(Object o) { return false; } BalanceAccountResource balanceAccountResource = (BalanceAccountResource) o; - return Objects.equals(this.balanceAccountId, balanceAccountResource.balanceAccountId) && - super.equals(o); + return Objects.equals(this.balanceAccountId, balanceAccountResource.balanceAccountId) + && super.equals(o); } @Override @@ -113,8 +101,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -129,21 +116,24 @@ private String toIndentedString(Object o) { mappings.put("BalanceAccountResource", BalanceAccountResource.class); JSON.registerDiscriminator(BalanceAccountResource.class, "type", mappings); } -/** + + /** * Create an instance of BalanceAccountResource given an JSON string * * @param jsonString JSON string * @return An instance of BalanceAccountResource - * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceAccountResource + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BalanceAccountResource */ public static BalanceAccountResource fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceAccountResource.class); } -/** - * Convert an instance of BalanceAccountResource to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BalanceAccountResource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/sessionauthentication/DefaultErrorResponseEntity.java b/src/main/java/com/adyen/model/sessionauthentication/DefaultErrorResponseEntity.java index 516409ac6..322bd0309 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/DefaultErrorResponseEntity.java +++ b/src/main/java/com/adyen/model/sessionauthentication/DefaultErrorResponseEntity.java @@ -2,34 +2,24 @@ * Session authentication API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.sessionauthentication; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.sessionauthentication.InvalidField; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * Standardized error response following RFC-7807 format - */ +/** Standardized error response following RFC-7807 format */ @JsonPropertyOrder({ DefaultErrorResponseEntity.JSON_PROPERTY_DETAIL, DefaultErrorResponseEntity.JSON_PROPERTY_ERROR_CODE, @@ -40,7 +30,6 @@ DefaultErrorResponseEntity.JSON_PROPERTY_TITLE, DefaultErrorResponseEntity.JSON_PROPERTY_TYPE }) - public class DefaultErrorResponseEntity { public static final String JSON_PROPERTY_DETAIL = "detail"; private String detail; @@ -66,8 +55,7 @@ public class DefaultErrorResponseEntity { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public DefaultErrorResponseEntity() { - } + public DefaultErrorResponseEntity() {} /** * A human-readable explanation specific to this occurrence of the problem. @@ -82,6 +70,7 @@ public DefaultErrorResponseEntity detail(String detail) { /** * A human-readable explanation specific to this occurrence of the problem. + * * @return detail A human-readable explanation specific to this occurrence of the problem. */ @JsonProperty(JSON_PROPERTY_DETAIL) @@ -114,6 +103,7 @@ public DefaultErrorResponseEntity errorCode(String errorCode) { /** * Unique business error code. + * * @return errorCode Unique business error code. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -146,6 +136,7 @@ public DefaultErrorResponseEntity instance(String instance) { /** * A URI that identifies the specific occurrence of the problem if applicable. + * * @return instance A URI that identifies the specific occurrence of the problem if applicable. */ @JsonProperty(JSON_PROPERTY_INSTANCE) @@ -186,6 +177,7 @@ public DefaultErrorResponseEntity addInvalidFieldsItem(InvalidField invalidField /** * Array of fields with validation errors when applicable. + * * @return invalidFields Array of fields with validation errors when applicable. */ @JsonProperty(JSON_PROPERTY_INVALID_FIELDS) @@ -218,6 +210,7 @@ public DefaultErrorResponseEntity requestId(String requestId) { /** * The unique reference for the request. + * * @return requestId The unique reference for the request. */ @JsonProperty(JSON_PROPERTY_REQUEST_ID) @@ -250,6 +243,7 @@ public DefaultErrorResponseEntity status(Integer status) { /** * The HTTP status code. + * * @return status The HTTP status code. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -282,6 +276,7 @@ public DefaultErrorResponseEntity title(String title) { /** * A short, human-readable summary of the problem type. + * * @return title A short, human-readable summary of the problem type. */ @JsonProperty(JSON_PROPERTY_TITLE) @@ -302,9 +297,11 @@ public void setTitle(String title) { } /** - * A URI that identifies the validation error type. It points to human-readable documentation for the problem type. + * A URI that identifies the validation error type. It points to human-readable documentation for + * the problem type. * - * @param type A URI that identifies the validation error type. It points to human-readable documentation for the problem type. + * @param type A URI that identifies the validation error type. It points to human-readable + * documentation for the problem type. * @return the current {@code DefaultErrorResponseEntity} instance, allowing for method chaining */ public DefaultErrorResponseEntity type(String type) { @@ -313,8 +310,11 @@ public DefaultErrorResponseEntity type(String type) { } /** - * A URI that identifies the validation error type. It points to human-readable documentation for the problem type. - * @return type A URI that identifies the validation error type. It points to human-readable documentation for the problem type. + * A URI that identifies the validation error type. It points to human-readable documentation for + * the problem type. + * + * @return type A URI that identifies the validation error type. It points to human-readable + * documentation for the problem type. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -323,9 +323,11 @@ public String getType() { } /** - * A URI that identifies the validation error type. It points to human-readable documentation for the problem type. + * A URI that identifies the validation error type. It points to human-readable documentation for + * the problem type. * - * @param type A URI that identifies the validation error type. It points to human-readable documentation for the problem type. + * @param type A URI that identifies the validation error type. It points to human-readable + * documentation for the problem type. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -333,9 +335,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this DefaultErrorResponseEntity object is equal to o. - */ + /** Return true if this DefaultErrorResponseEntity object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -345,14 +345,14 @@ public boolean equals(Object o) { return false; } DefaultErrorResponseEntity defaultErrorResponseEntity = (DefaultErrorResponseEntity) o; - return Objects.equals(this.detail, defaultErrorResponseEntity.detail) && - Objects.equals(this.errorCode, defaultErrorResponseEntity.errorCode) && - Objects.equals(this.instance, defaultErrorResponseEntity.instance) && - Objects.equals(this.invalidFields, defaultErrorResponseEntity.invalidFields) && - Objects.equals(this.requestId, defaultErrorResponseEntity.requestId) && - Objects.equals(this.status, defaultErrorResponseEntity.status) && - Objects.equals(this.title, defaultErrorResponseEntity.title) && - Objects.equals(this.type, defaultErrorResponseEntity.type); + return Objects.equals(this.detail, defaultErrorResponseEntity.detail) + && Objects.equals(this.errorCode, defaultErrorResponseEntity.errorCode) + && Objects.equals(this.instance, defaultErrorResponseEntity.instance) + && Objects.equals(this.invalidFields, defaultErrorResponseEntity.invalidFields) + && Objects.equals(this.requestId, defaultErrorResponseEntity.requestId) + && Objects.equals(this.status, defaultErrorResponseEntity.status) + && Objects.equals(this.title, defaultErrorResponseEntity.title) + && Objects.equals(this.type, defaultErrorResponseEntity.type); } @Override @@ -377,8 +377,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -387,21 +386,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DefaultErrorResponseEntity given an JSON string * * @param jsonString JSON string * @return An instance of DefaultErrorResponseEntity - * @throws JsonProcessingException if the JSON string is invalid with respect to DefaultErrorResponseEntity + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DefaultErrorResponseEntity */ - public static DefaultErrorResponseEntity fromJson(String jsonString) throws JsonProcessingException { + public static DefaultErrorResponseEntity fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DefaultErrorResponseEntity.class); } -/** - * Convert an instance of DefaultErrorResponseEntity to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DefaultErrorResponseEntity to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/sessionauthentication/InvalidField.java b/src/main/java/com/adyen/model/sessionauthentication/InvalidField.java index 22e088ef4..363199846 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/InvalidField.java +++ b/src/main/java/com/adyen/model/sessionauthentication/InvalidField.java @@ -2,37 +2,27 @@ * Session authentication API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.sessionauthentication; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * InvalidField - */ +/** InvalidField */ @JsonPropertyOrder({ InvalidField.JSON_PROPERTY_NAME, InvalidField.JSON_PROPERTY_VALUE, InvalidField.JSON_PROPERTY_MESSAGE }) - public class InvalidField { public static final String JSON_PROPERTY_NAME = "name"; private String name; @@ -43,8 +33,7 @@ public class InvalidField { public static final String JSON_PROPERTY_MESSAGE = "message"; private String message; - public InvalidField() { - } + public InvalidField() {} /** * The field that has an invalid value. @@ -59,6 +48,7 @@ public InvalidField name(String name) { /** * The field that has an invalid value. + * * @return name The field that has an invalid value. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -91,6 +81,7 @@ public InvalidField value(String value) { /** * The invalid value. + * * @return value The invalid value. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -123,6 +114,7 @@ public InvalidField message(String message) { /** * Description of the validation error. + * * @return message Description of the validation error. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -142,9 +134,7 @@ public void setMessage(String message) { this.message = message; } - /** - * Return true if this InvalidField object is equal to o. - */ + /** Return true if this InvalidField object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +144,9 @@ public boolean equals(Object o) { return false; } InvalidField invalidField = (InvalidField) o; - return Objects.equals(this.name, invalidField.name) && - Objects.equals(this.value, invalidField.value) && - Objects.equals(this.message, invalidField.message); + return Objects.equals(this.name, invalidField.name) + && Objects.equals(this.value, invalidField.value) + && Objects.equals(this.message, invalidField.message); } @Override @@ -176,8 +166,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +175,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of InvalidField given an JSON string * * @param jsonString JSON string @@ -196,11 +185,12 @@ private String toIndentedString(Object o) { public static InvalidField fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, InvalidField.class); } -/** - * Convert an instance of InvalidField to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of InvalidField to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/sessionauthentication/JSON.java b/src/main/java/com/adyen/model/sessionauthentication/JSON.java index e0f340051..c3aafeaa0 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/JSON.java +++ b/src/main/java/com/adyen/model/sessionauthentication/JSON.java @@ -1,21 +1,18 @@ package com.adyen.model.sessionauthentication; -import com.adyen.serializer.ByteArraySerializer; import com.adyen.serializer.ByteArrayDeserializer; +import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import com.adyen.model.sessionauthentication.*; - +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -40,6 +37,7 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. + * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -56,11 +54,13 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { return mapper; } + public static ObjectMapper getMapper() { + return mapper; + } /** - * Returns the target model class that should be used to deserialize the input data. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,9 +73,7 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** - * Helper class to register the discriminator mappings. - */ + /** Helper class to register the discriminator mappings. */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -117,9 +115,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. - * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. This + * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -164,13 +162,14 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, - * so it's not possible to use the instanceof keyword. + *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so + * it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf( + Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -194,59 +193,58 @@ public static boolean isInstanceOf(Class modelClass, Object inst, Set, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); + /** A map of discriminators for all model classes. */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = + new HashMap, ClassDiscriminatorMapping>(); - /** - * A map of oneOf/anyOf descendants for each model class. - */ + /** A map of oneOf/anyOf descendants for each model class. */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator( + Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = + new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants(Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants( + Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static - { + static { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/sessionauthentication/LegalEntityResource.java b/src/main/java/com/adyen/model/sessionauthentication/LegalEntityResource.java index f36e0c8c8..9ba2208fb 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/LegalEntityResource.java +++ b/src/main/java/com/adyen/model/sessionauthentication/LegalEntityResource.java @@ -2,57 +2,55 @@ * Session authentication API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.sessionauthentication; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.sessionauthentication.Resource; -import com.adyen.model.sessionauthentication.ResourceType; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * LegalEntityResource - */ -@JsonPropertyOrder({ - LegalEntityResource.JSON_PROPERTY_LEGAL_ENTITY_ID -}) - +/** LegalEntityResource */ +@JsonPropertyOrder({LegalEntityResource.JSON_PROPERTY_LEGAL_ENTITY_ID}) @JsonIgnoreProperties( - value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization - allowSetters = true // allows the type to be set during deserialization -) -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) - + value = + "type", // ignore manually set type, it will be automatically generated by Jackson during + // serialization + allowSetters = true // allows the type to be set during deserialization + ) +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.PROPERTY, + property = "type", + visible = true) public class LegalEntityResource extends Resource { public static final String JSON_PROPERTY_LEGAL_ENTITY_ID = "legalEntityId"; private String legalEntityId; - public LegalEntityResource() { - } + public LegalEntityResource() {} /** - * The unique identifier of the resource connected to the component. For [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the legal entity that has a contractual relationship with your platform and owns the [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). For sole proprietorships, this is the legal entity of the individual owner. + * The unique identifier of the resource connected to the component. For [Onboarding + * components](https://docs.adyen.com/platforms/onboard-users/components), this is the legal + * entity that has a contractual relationship with your platform and owns the [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). + * For sole proprietorships, this is the legal entity of the individual owner. * - * @param legalEntityId The unique identifier of the resource connected to the component. For [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the legal entity that has a contractual relationship with your platform and owns the [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). For sole proprietorships, this is the legal entity of the individual owner. + * @param legalEntityId The unique identifier of the resource connected to the component. For + * [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is + * the legal entity that has a contractual relationship with your platform and owns the + * [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). + * For sole proprietorships, this is the legal entity of the individual owner. * @return the current {@code LegalEntityResource} instance, allowing for method chaining */ public LegalEntityResource legalEntityId(String legalEntityId) { @@ -61,8 +59,18 @@ public LegalEntityResource legalEntityId(String legalEntityId) { } /** - * The unique identifier of the resource connected to the component. For [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the legal entity that has a contractual relationship with your platform and owns the [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). For sole proprietorships, this is the legal entity of the individual owner. - * @return legalEntityId The unique identifier of the resource connected to the component. For [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the legal entity that has a contractual relationship with your platform and owns the [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). For sole proprietorships, this is the legal entity of the individual owner. + * The unique identifier of the resource connected to the component. For [Onboarding + * components](https://docs.adyen.com/platforms/onboard-users/components), this is the legal + * entity that has a contractual relationship with your platform and owns the [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). + * For sole proprietorships, this is the legal entity of the individual owner. + * + * @return legalEntityId The unique identifier of the resource connected to the component. For + * [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is + * the legal entity that has a contractual relationship with your platform and owns the + * [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). + * For sole proprietorships, this is the legal entity of the individual owner. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,9 +79,18 @@ public String getLegalEntityId() { } /** - * The unique identifier of the resource connected to the component. For [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the legal entity that has a contractual relationship with your platform and owns the [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). For sole proprietorships, this is the legal entity of the individual owner. + * The unique identifier of the resource connected to the component. For [Onboarding + * components](https://docs.adyen.com/platforms/onboard-users/components), this is the legal + * entity that has a contractual relationship with your platform and owns the [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). + * For sole proprietorships, this is the legal entity of the individual owner. * - * @param legalEntityId The unique identifier of the resource connected to the component. For [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the legal entity that has a contractual relationship with your platform and owns the [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). For sole proprietorships, this is the legal entity of the individual owner. + * @param legalEntityId The unique identifier of the resource connected to the component. For + * [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is + * the legal entity that has a contractual relationship with your platform and owns the + * [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). + * For sole proprietorships, this is the legal entity of the individual owner. */ @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -81,9 +98,7 @@ public void setLegalEntityId(String legalEntityId) { this.legalEntityId = legalEntityId; } - /** - * Return true if this LegalEntityResource object is equal to o. - */ + /** Return true if this LegalEntityResource object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -93,8 +108,7 @@ public boolean equals(Object o) { return false; } LegalEntityResource legalEntityResource = (LegalEntityResource) o; - return Objects.equals(this.legalEntityId, legalEntityResource.legalEntityId) && - super.equals(o); + return Objects.equals(this.legalEntityId, legalEntityResource.legalEntityId) && super.equals(o); } @Override @@ -113,8 +127,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -129,21 +142,24 @@ private String toIndentedString(Object o) { mappings.put("LegalEntityResource", LegalEntityResource.class); JSON.registerDiscriminator(LegalEntityResource.class, "type", mappings); } -/** + + /** * Create an instance of LegalEntityResource given an JSON string * * @param jsonString JSON string * @return An instance of LegalEntityResource - * @throws JsonProcessingException if the JSON string is invalid with respect to LegalEntityResource + * @throws JsonProcessingException if the JSON string is invalid with respect to + * LegalEntityResource */ public static LegalEntityResource fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, LegalEntityResource.class); } -/** - * Convert an instance of LegalEntityResource to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of LegalEntityResource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/sessionauthentication/MerchantAccountResource.java b/src/main/java/com/adyen/model/sessionauthentication/MerchantAccountResource.java index bbf5046e8..9d9788a9d 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/MerchantAccountResource.java +++ b/src/main/java/com/adyen/model/sessionauthentication/MerchantAccountResource.java @@ -2,57 +2,46 @@ * Session authentication API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.sessionauthentication; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.sessionauthentication.Resource; -import com.adyen.model.sessionauthentication.ResourceType; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * MerchantAccountResource - */ -@JsonPropertyOrder({ - MerchantAccountResource.JSON_PROPERTY_MERCHANT_ACCOUNT_CODE -}) - +/** MerchantAccountResource */ +@JsonPropertyOrder({MerchantAccountResource.JSON_PROPERTY_MERCHANT_ACCOUNT_CODE}) @JsonIgnoreProperties( - value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization - allowSetters = true // allows the type to be set during deserialization -) -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) - + value = + "type", // ignore manually set type, it will be automatically generated by Jackson during + // serialization + allowSetters = true // allows the type to be set during deserialization + ) +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.PROPERTY, + property = "type", + visible = true) public class MerchantAccountResource extends Resource { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT_CODE = "merchantAccountCode"; private String merchantAccountCode; - public MerchantAccountResource() { - } + public MerchantAccountResource() {} /** * merchantAccountCode * - * @param merchantAccountCode + * @param merchantAccountCode * @return the current {@code MerchantAccountResource} instance, allowing for method chaining */ public MerchantAccountResource merchantAccountCode(String merchantAccountCode) { @@ -62,7 +51,8 @@ public MerchantAccountResource merchantAccountCode(String merchantAccountCode) { /** * Get merchantAccountCode - * @return merchantAccountCode + * + * @return merchantAccountCode */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -73,7 +63,7 @@ public String getMerchantAccountCode() { /** * merchantAccountCode * - * @param merchantAccountCode + * @param merchantAccountCode */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -81,9 +71,7 @@ public void setMerchantAccountCode(String merchantAccountCode) { this.merchantAccountCode = merchantAccountCode; } - /** - * Return true if this MerchantAccountResource object is equal to o. - */ + /** Return true if this MerchantAccountResource object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -93,8 +81,8 @@ public boolean equals(Object o) { return false; } MerchantAccountResource merchantAccountResource = (MerchantAccountResource) o; - return Objects.equals(this.merchantAccountCode, merchantAccountResource.merchantAccountCode) && - super.equals(o); + return Objects.equals(this.merchantAccountCode, merchantAccountResource.merchantAccountCode) + && super.equals(o); } @Override @@ -107,14 +95,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MerchantAccountResource {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" merchantAccountCode: ").append(toIndentedString(merchantAccountCode)).append("\n"); + sb.append(" merchantAccountCode: ") + .append(toIndentedString(merchantAccountCode)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -129,21 +118,24 @@ private String toIndentedString(Object o) { mappings.put("MerchantAccountResource", MerchantAccountResource.class); JSON.registerDiscriminator(MerchantAccountResource.class, "type", mappings); } -/** + + /** * Create an instance of MerchantAccountResource given an JSON string * * @param jsonString JSON string * @return An instance of MerchantAccountResource - * @throws JsonProcessingException if the JSON string is invalid with respect to MerchantAccountResource + * @throws JsonProcessingException if the JSON string is invalid with respect to + * MerchantAccountResource */ public static MerchantAccountResource fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MerchantAccountResource.class); } -/** - * Convert an instance of MerchantAccountResource to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of MerchantAccountResource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/sessionauthentication/PaymentInstrumentResource.java b/src/main/java/com/adyen/model/sessionauthentication/PaymentInstrumentResource.java index 1187c64c2..d6bfe35a7 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/PaymentInstrumentResource.java +++ b/src/main/java/com/adyen/model/sessionauthentication/PaymentInstrumentResource.java @@ -2,57 +2,46 @@ * Session authentication API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.sessionauthentication; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.sessionauthentication.Resource; -import com.adyen.model.sessionauthentication.ResourceType; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * PaymentInstrumentResource - */ -@JsonPropertyOrder({ - PaymentInstrumentResource.JSON_PROPERTY_PAYMENT_INSTRUMENT_ID -}) - +/** PaymentInstrumentResource */ +@JsonPropertyOrder({PaymentInstrumentResource.JSON_PROPERTY_PAYMENT_INSTRUMENT_ID}) @JsonIgnoreProperties( - value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization - allowSetters = true // allows the type to be set during deserialization -) -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) - + value = + "type", // ignore manually set type, it will be automatically generated by Jackson during + // serialization + allowSetters = true // allows the type to be set during deserialization + ) +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.PROPERTY, + property = "type", + visible = true) public class PaymentInstrumentResource extends Resource { public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT_ID = "paymentInstrumentId"; private String paymentInstrumentId; - public PaymentInstrumentResource() { - } + public PaymentInstrumentResource() {} /** * paymentInstrumentId * - * @param paymentInstrumentId + * @param paymentInstrumentId * @return the current {@code PaymentInstrumentResource} instance, allowing for method chaining */ public PaymentInstrumentResource paymentInstrumentId(String paymentInstrumentId) { @@ -62,7 +51,8 @@ public PaymentInstrumentResource paymentInstrumentId(String paymentInstrumentId) /** * Get paymentInstrumentId - * @return paymentInstrumentId + * + * @return paymentInstrumentId */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -73,7 +63,7 @@ public String getPaymentInstrumentId() { /** * paymentInstrumentId * - * @param paymentInstrumentId + * @param paymentInstrumentId */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -81,9 +71,7 @@ public void setPaymentInstrumentId(String paymentInstrumentId) { this.paymentInstrumentId = paymentInstrumentId; } - /** - * Return true if this PaymentInstrumentResource object is equal to o. - */ + /** Return true if this PaymentInstrumentResource object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -93,8 +81,8 @@ public boolean equals(Object o) { return false; } PaymentInstrumentResource paymentInstrumentResource = (PaymentInstrumentResource) o; - return Objects.equals(this.paymentInstrumentId, paymentInstrumentResource.paymentInstrumentId) && - super.equals(o); + return Objects.equals(this.paymentInstrumentId, paymentInstrumentResource.paymentInstrumentId) + && super.equals(o); } @Override @@ -107,14 +95,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentInstrumentResource {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" paymentInstrumentId: ").append(toIndentedString(paymentInstrumentId)).append("\n"); + sb.append(" paymentInstrumentId: ") + .append(toIndentedString(paymentInstrumentId)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -129,21 +118,25 @@ private String toIndentedString(Object o) { mappings.put("PaymentInstrumentResource", PaymentInstrumentResource.class); JSON.registerDiscriminator(PaymentInstrumentResource.class, "type", mappings); } -/** + + /** * Create an instance of PaymentInstrumentResource given an JSON string * * @param jsonString JSON string * @return An instance of PaymentInstrumentResource - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentInstrumentResource + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PaymentInstrumentResource */ - public static PaymentInstrumentResource fromJson(String jsonString) throws JsonProcessingException { + public static PaymentInstrumentResource fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentInstrumentResource.class); } -/** - * Convert an instance of PaymentInstrumentResource to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentInstrumentResource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/sessionauthentication/Policy.java b/src/main/java/com/adyen/model/sessionauthentication/Policy.java index 889c1e035..819ad6f7a 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/Policy.java +++ b/src/main/java/com/adyen/model/sessionauthentication/Policy.java @@ -2,40 +2,26 @@ * Session authentication API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.sessionauthentication; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.sessionauthentication.Resource; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import java.util.Arrays; +import java.util.*; import java.util.LinkedHashSet; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - - -/** - * Policy - */ -@JsonPropertyOrder({ - Policy.JSON_PROPERTY_RESOURCES, - Policy.JSON_PROPERTY_ROLES -}) +/** Policy */ +@JsonPropertyOrder({Policy.JSON_PROPERTY_RESOURCES, Policy.JSON_PROPERTY_ROLES}) public class Policy { public static final String JSON_PROPERTY_RESOURCES = "resources"; private Set resources; @@ -43,13 +29,24 @@ public class Policy { public static final String JSON_PROPERTY_ROLES = "roles"; private Set roles; - public Policy() { - } + public Policy() {} /** - * An object containing the type and the unique identifier of the user of the component. For [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the ID of the legal entity that has a contractual relationship with your platform. For sole proprietorships, use the ID of the legal entity of the individual owner. For [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the ID of the account holder that is associated with the balance account shown in the component. + * An object containing the type and the unique identifier of the user of the component. For + * [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the + * ID of the legal entity that has a contractual relationship with your platform. For sole + * proprietorships, use the ID of the legal entity of the individual owner. For [Platform + * Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the ID + * of the account holder that is associated with the balance account shown in the component. * - * @param resources An object containing the type and the unique identifier of the user of the component. For [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the ID of the legal entity that has a contractual relationship with your platform. For sole proprietorships, use the ID of the legal entity of the individual owner. For [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the ID of the account holder that is associated with the balance account shown in the component. + * @param resources An object containing the type and the unique identifier of the user of the + * component. For [Onboarding + * components](https://docs.adyen.com/platforms/onboard-users/components), this is the ID of + * the legal entity that has a contractual relationship with your platform. For sole + * proprietorships, use the ID of the legal entity of the individual owner. For [Platform + * Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the + * ID of the account holder that is associated with the balance account shown in the + * component. * @return the current {@code Policy} instance, allowing for method chaining */ public Policy resources(Set resources) { @@ -66,8 +63,21 @@ public Policy addResourcesItem(Resource resourcesItem) { } /** - * An object containing the type and the unique identifier of the user of the component. For [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the ID of the legal entity that has a contractual relationship with your platform. For sole proprietorships, use the ID of the legal entity of the individual owner. For [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the ID of the account holder that is associated with the balance account shown in the component. - * @return resources An object containing the type and the unique identifier of the user of the component. For [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the ID of the legal entity that has a contractual relationship with your platform. For sole proprietorships, use the ID of the legal entity of the individual owner. For [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the ID of the account holder that is associated with the balance account shown in the component. + * An object containing the type and the unique identifier of the user of the component. For + * [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the + * ID of the legal entity that has a contractual relationship with your platform. For sole + * proprietorships, use the ID of the legal entity of the individual owner. For [Platform + * Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the ID + * of the account holder that is associated with the balance account shown in the component. + * + * @return resources An object containing the type and the unique identifier of the user of the + * component. For [Onboarding + * components](https://docs.adyen.com/platforms/onboard-users/components), this is the ID of + * the legal entity that has a contractual relationship with your platform. For sole + * proprietorships, use the ID of the legal entity of the individual owner. For [Platform + * Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the + * ID of the account holder that is associated with the balance account shown in the + * component. */ @JsonProperty(JSON_PROPERTY_RESOURCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -76,9 +86,21 @@ public Set getResources() { } /** - * An object containing the type and the unique identifier of the user of the component. For [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the ID of the legal entity that has a contractual relationship with your platform. For sole proprietorships, use the ID of the legal entity of the individual owner. For [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the ID of the account holder that is associated with the balance account shown in the component. + * An object containing the type and the unique identifier of the user of the component. For + * [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the + * ID of the legal entity that has a contractual relationship with your platform. For sole + * proprietorships, use the ID of the legal entity of the individual owner. For [Platform + * Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the ID + * of the account holder that is associated with the balance account shown in the component. * - * @param resources An object containing the type and the unique identifier of the user of the component. For [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the ID of the legal entity that has a contractual relationship with your platform. For sole proprietorships, use the ID of the legal entity of the individual owner. For [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the ID of the account holder that is associated with the balance account shown in the component. + * @param resources An object containing the type and the unique identifier of the user of the + * component. For [Onboarding + * components](https://docs.adyen.com/platforms/onboard-users/components), this is the ID of + * the legal entity that has a contractual relationship with your platform. For sole + * proprietorships, use the ID of the legal entity of the individual owner. For [Platform + * Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the + * ID of the account holder that is associated with the balance account shown in the + * component. */ @JsonDeserialize(as = LinkedHashSet.class) @JsonProperty(JSON_PROPERTY_RESOURCES) @@ -108,6 +130,7 @@ public Policy addRolesItem(String rolesItem) { /** * The name of the role required to use the component. + * * @return roles The name of the role required to use the component. */ @JsonProperty(JSON_PROPERTY_ROLES) @@ -128,9 +151,7 @@ public void setRoles(Set roles) { this.roles = roles; } - /** - * Return true if this Policy object is equal to o. - */ + /** Return true if this Policy object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -140,8 +161,8 @@ public boolean equals(Object o) { return false; } Policy policy = (Policy) o; - return Objects.equals(this.resources, policy.resources) && - Objects.equals(this.roles, policy.roles); + return Objects.equals(this.resources, policy.resources) + && Objects.equals(this.roles, policy.roles); } @Override @@ -160,8 +181,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -170,7 +190,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Policy given an JSON string * * @param jsonString JSON string @@ -180,11 +200,12 @@ private String toIndentedString(Object o) { public static Policy fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Policy.class); } -/** - * Convert an instance of Policy to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Policy to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/sessionauthentication/ProductType.java b/src/main/java/com/adyen/model/sessionauthentication/ProductType.java index e1f23af68..9784a9393 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/ProductType.java +++ b/src/main/java/com/adyen/model/sessionauthentication/ProductType.java @@ -2,34 +2,25 @@ * Session authentication API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.sessionauthentication; -import java.util.*; -import java.util.logging.Logger; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - - import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.*; -/** - * Gets or Sets ProductType - */ +/** Gets or Sets ProductType */ public enum ProductType { - ONBOARDING("onboarding"), - + PLATFORM("platform"), - + BANK("bank"); private String value; @@ -58,4 +49,3 @@ public static ProductType fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - diff --git a/src/main/java/com/adyen/model/sessionauthentication/Resource.java b/src/main/java/com/adyen/model/sessionauthentication/Resource.java index ac420fa5d..37196efc7 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/Resource.java +++ b/src/main/java/com/adyen/model/sessionauthentication/Resource.java @@ -2,44 +2,37 @@ * Session authentication API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.sessionauthentication; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.sessionauthentication.ResourceType; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Resource - */ -@JsonPropertyOrder({ - Resource.JSON_PROPERTY_TYPE -}) - +/** Resource */ +@JsonPropertyOrder({Resource.JSON_PROPERTY_TYPE}) @JsonIgnoreProperties( - value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization - allowSetters = true // allows the type to be set during deserialization -) -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) + value = + "type", // ignore manually set type, it will be automatically generated by Jackson during + // serialization + allowSetters = true // allows the type to be set during deserialization + ) +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.PROPERTY, + property = "type", + visible = true) @JsonSubTypes({ @JsonSubTypes.Type(value = AccountHolderResource.class, name = "accountHolder"), @JsonSubTypes.Type(value = BalanceAccountResource.class, name = "balanceAccount"), @@ -47,18 +40,16 @@ @JsonSubTypes.Type(value = MerchantAccountResource.class, name = "merchantAccount"), @JsonSubTypes.Type(value = PaymentInstrumentResource.class, name = "paymentInstrument"), }) - public class Resource { public static final String JSON_PROPERTY_TYPE = "type"; private ResourceType type; - public Resource() { - } + public Resource() {} /** * type * - * @param type + * @param type * @return the current {@code Resource} instance, allowing for method chaining */ public Resource type(ResourceType type) { @@ -68,7 +59,8 @@ public Resource type(ResourceType type) { /** * Get type - * @return type + * + * @return type */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,7 +71,7 @@ public ResourceType getType() { /** * type * - * @param type + * @param type */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,9 +79,7 @@ public void setType(ResourceType type) { this.type = type; } - /** - * Return true if this Resource object is equal to o. - */ + /** Return true if this Resource object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -117,8 +107,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -138,7 +127,8 @@ private String toIndentedString(Object o) { mappings.put("Resource", Resource.class); JSON.registerDiscriminator(Resource.class, "type", mappings); } -/** + + /** * Create an instance of Resource given an JSON string * * @param jsonString JSON string @@ -148,11 +138,12 @@ private String toIndentedString(Object o) { public static Resource fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Resource.class); } -/** - * Convert an instance of Resource to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Resource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/sessionauthentication/ResourceType.java b/src/main/java/com/adyen/model/sessionauthentication/ResourceType.java index 7dca8f708..3dfe0b78d 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/ResourceType.java +++ b/src/main/java/com/adyen/model/sessionauthentication/ResourceType.java @@ -2,38 +2,29 @@ * Session authentication API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.sessionauthentication; -import java.util.*; -import java.util.logging.Logger; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - - import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.*; -/** - * Gets or Sets ResourceType - */ +/** Gets or Sets ResourceType */ public enum ResourceType { - LEGALENTITY("legalEntity"), - + BALANCEACCOUNT("balanceAccount"), - + ACCOUNTHOLDER("accountHolder"), - + MERCHANTACCOUNT("merchantAccount"), - + PAYMENTINSTRUMENT("paymentInstrument"); private String value; @@ -62,4 +53,3 @@ public static ResourceType fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - diff --git a/src/main/java/com/adyen/model/storedvalue/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/storedvalue/AbstractOpenApiSchema.java index d67d7c0be..dd06ee5f2 100644 --- a/src/main/java/com/adyen/model/storedvalue/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/storedvalue/AbstractOpenApiSchema.java @@ -2,145 +2,141 @@ * Adyen Stored Value API * * The version of the OpenAPI document: 46 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.storedvalue; -import java.util.Objects; -import java.util.Map; -import jakarta.ws.rs.core.GenericType; - import com.fasterxml.jackson.annotation.JsonValue; +import jakarta.ws.rs.core.GenericType; +import java.util.Map; +import java.util.Objects; -/** - * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec - */ +/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() {return instance;} - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) {this.instance = instance;} - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); - } else { - return object.getActualInstance(); - } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() { + return instance; + } + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) { + this.instance = instance; + } + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf + * schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); + } else { + return object.getActualInstance(); } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) && - Objects.equals(this.isNullable, a.isNullable) && - Objects.equals(this.schemaType, a.schemaType); + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; } + return o.toString().replace("\n", "\n "); + } - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); + public boolean equals(Object o) { + if (this == o) { + return true; } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); + if (o == null || getClass() != o.getClass()) { + return false; } - - - -} \ No newline at end of file + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) + && Objects.equals(this.isNullable, a.isNullable) + && Objects.equals(this.schemaType, a.schemaType); + } + + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); + } + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); + } +} diff --git a/src/main/java/com/adyen/model/storedvalue/Amount.java b/src/main/java/com/adyen/model/storedvalue/Amount.java index 22b5fdbe9..d3c6bc931 100644 --- a/src/main/java/com/adyen/model/storedvalue/Amount.java +++ b/src/main/java/com/adyen/model/storedvalue/Amount.java @@ -2,36 +2,23 @@ * Adyen Stored Value API * * The version of the OpenAPI document: 46 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.storedvalue; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Amount - */ -@JsonPropertyOrder({ - Amount.JSON_PROPERTY_CURRENCY, - Amount.JSON_PROPERTY_VALUE -}) - +/** Amount */ +@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -39,13 +26,14 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() { - } + public Amount() {} /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount currency(String currency) { @@ -54,8 +42,11 @@ public Amount currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +55,11 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,9 +68,11 @@ public void setCurrency(String currency) { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * - * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @param value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount value(Long value) { @@ -86,8 +81,11 @@ public Amount value(Long value) { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). - * @return value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). + * + * @return value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +94,11 @@ public Long getValue() { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). * - * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @param value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +106,7 @@ public void setValue(Long value) { this.value = value; } - /** - * Return true if this Amount object is equal to o. - */ + /** Return true if this Amount object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +116,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) && - Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) + && Objects.equals(this.value, amount.value); } @Override @@ -138,8 +136,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +145,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -158,11 +155,12 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } -/** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/storedvalue/JSON.java b/src/main/java/com/adyen/model/storedvalue/JSON.java index b3a4872cf..37a4e8b50 100644 --- a/src/main/java/com/adyen/model/storedvalue/JSON.java +++ b/src/main/java/com/adyen/model/storedvalue/JSON.java @@ -1,21 +1,18 @@ package com.adyen.model.storedvalue; -import com.adyen.serializer.ByteArraySerializer; import com.adyen.serializer.ByteArrayDeserializer; +import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import com.adyen.model.storedvalue.*; - +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -40,6 +37,7 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. + * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -56,11 +54,13 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { return mapper; } + public static ObjectMapper getMapper() { + return mapper; + } /** - * Returns the target model class that should be used to deserialize the input data. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,9 +73,7 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** - * Helper class to register the discriminator mappings. - */ + /** Helper class to register the discriminator mappings. */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -117,9 +115,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. - * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. This + * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -164,13 +162,14 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, - * so it's not possible to use the instanceof keyword. + *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so + * it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf( + Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -194,59 +193,58 @@ public static boolean isInstanceOf(Class modelClass, Object inst, Set, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); + /** A map of discriminators for all model classes. */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = + new HashMap, ClassDiscriminatorMapping>(); - /** - * A map of oneOf/anyOf descendants for each model class. - */ + /** A map of oneOf/anyOf descendants for each model class. */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator( + Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = + new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants(Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants( + Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static - { + static { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/storedvalue/ServiceError.java b/src/main/java/com/adyen/model/storedvalue/ServiceError.java index 089e8ffac..3b3b51dbf 100644 --- a/src/main/java/com/adyen/model/storedvalue/ServiceError.java +++ b/src/main/java/com/adyen/model/storedvalue/ServiceError.java @@ -2,33 +2,24 @@ * Adyen Stored Value API * * The version of the OpenAPI document: 46 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.storedvalue; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.HashMap; +import java.util.Map; - -/** - * ServiceError - */ +/** ServiceError */ @JsonPropertyOrder({ ServiceError.JSON_PROPERTY_ADDITIONAL_DATA, ServiceError.JSON_PROPERTY_ERROR_CODE, @@ -37,7 +28,6 @@ ServiceError.JSON_PROPERTY_PSP_REFERENCE, ServiceError.JSON_PROPERTY_STATUS }) - public class ServiceError { public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData; @@ -57,13 +47,15 @@ public class ServiceError { public static final String JSON_PROPERTY_STATUS = "status"; private Integer status; - public ServiceError() { - } + public ServiceError() {} /** - * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first. Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first. Go to **Customer Area** > **Developers** > + * **Additional data**. * @return the current {@code ServiceError} instance, allowing for method chaining */ public ServiceError additionalData(Map additionalData) { @@ -80,8 +72,12 @@ public ServiceError putAdditionalDataItem(String key, String additionalDataItem) } /** - * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. - * @return additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * + * @return additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first. Go to **Customer Area** > **Developers** > + * **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -90,9 +86,12 @@ public Map getAdditionalData() { } /** - * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * Contains additional information about the payment. Some data fields are included only if you + * select them first. Go to **Customer Area** > **Developers** > **Additional data**. * - * @param additionalData Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. + * @param additionalData Contains additional information about the payment. Some data fields are + * included only if you select them first. Go to **Customer Area** > **Developers** > + * **Additional data**. */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,6 +112,7 @@ public ServiceError errorCode(String errorCode) { /** * The error code mapped to the error message. + * * @return errorCode The error code mapped to the error message. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -145,6 +145,7 @@ public ServiceError errorType(String errorType) { /** * The category of the error. + * * @return errorType The category of the error. */ @JsonProperty(JSON_PROPERTY_ERROR_TYPE) @@ -177,6 +178,7 @@ public ServiceError message(String message) { /** * A short explanation of the issue. + * * @return message A short explanation of the issue. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -209,6 +211,7 @@ public ServiceError pspReference(String pspReference) { /** * The PSP reference of the payment. + * * @return pspReference The PSP reference of the payment. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -241,6 +244,7 @@ public ServiceError status(Integer status) { /** * The HTTP response status. + * * @return status The HTTP response status. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -260,9 +264,7 @@ public void setStatus(Integer status) { this.status = status; } - /** - * Return true if this ServiceError object is equal to o. - */ + /** Return true if this ServiceError object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -272,12 +274,12 @@ public boolean equals(Object o) { return false; } ServiceError serviceError = (ServiceError) o; - return Objects.equals(this.additionalData, serviceError.additionalData) && - Objects.equals(this.errorCode, serviceError.errorCode) && - Objects.equals(this.errorType, serviceError.errorType) && - Objects.equals(this.message, serviceError.message) && - Objects.equals(this.pspReference, serviceError.pspReference) && - Objects.equals(this.status, serviceError.status); + return Objects.equals(this.additionalData, serviceError.additionalData) + && Objects.equals(this.errorCode, serviceError.errorCode) + && Objects.equals(this.errorType, serviceError.errorType) + && Objects.equals(this.message, serviceError.message) + && Objects.equals(this.pspReference, serviceError.pspReference) + && Objects.equals(this.status, serviceError.status); } @Override @@ -300,8 +302,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -310,7 +311,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ServiceError given an JSON string * * @param jsonString JSON string @@ -320,11 +321,12 @@ private String toIndentedString(Object o) { public static ServiceError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } -/** - * Convert an instance of ServiceError to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ServiceError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceCheckRequest.java b/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceCheckRequest.java index 8f22a9fc5..622733c3a 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceCheckRequest.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceCheckRequest.java @@ -2,34 +2,28 @@ * Adyen Stored Value API * * The version of the OpenAPI document: 46 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.storedvalue; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.storedvalue.Amount; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * StoredValueBalanceCheckRequest - */ +/** StoredValueBalanceCheckRequest */ @JsonPropertyOrder({ StoredValueBalanceCheckRequest.JSON_PROPERTY_AMOUNT, StoredValueBalanceCheckRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, @@ -40,7 +34,6 @@ StoredValueBalanceCheckRequest.JSON_PROPERTY_SHOPPER_REFERENCE, StoredValueBalanceCheckRequest.JSON_PROPERTY_STORE }) - public class StoredValueBalanceCheckRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -58,10 +51,19 @@ public class StoredValueBalanceCheckRequest { private String reference; /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. */ public enum ShopperInteractionEnum { - ECOMMERCE(String.valueOf("Ecommerce")), CONTAUTH(String.valueOf("ContAuth")), @@ -75,7 +77,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -96,7 +98,11 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning( + "ShopperInteractionEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -110,14 +116,14 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_STORE = "store"; private String store; - public StoredValueBalanceCheckRequest() { - } + public StoredValueBalanceCheckRequest() {} /** * amount * - * @param amount - * @return the current {@code StoredValueBalanceCheckRequest} instance, allowing for method chaining + * @param amount + * @return the current {@code StoredValueBalanceCheckRequest} instance, allowing for method + * chaining */ public StoredValueBalanceCheckRequest amount(Amount amount) { this.amount = amount; @@ -126,7 +132,8 @@ public StoredValueBalanceCheckRequest amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,7 +144,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,8 +155,10 @@ public void setAmount(Amount amount) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. - * @return the current {@code StoredValueBalanceCheckRequest} instance, allowing for method chaining + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. + * @return the current {@code StoredValueBalanceCheckRequest} instance, allowing for method + * chaining */ public StoredValueBalanceCheckRequest merchantAccount(String merchantAccount) { this.merchantAccount = merchantAccount; @@ -158,7 +167,9 @@ public StoredValueBalanceCheckRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * @return merchantAccount The merchant account identifier, with which you want to process the transaction. + * + * @return merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,7 +180,8 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,10 +190,13 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The collection that contains the type of the payment method and its specific information if available + * The collection that contains the type of the payment method and its specific information if + * available * - * @param paymentMethod The collection that contains the type of the payment method and its specific information if available - * @return the current {@code StoredValueBalanceCheckRequest} instance, allowing for method chaining + * @param paymentMethod The collection that contains the type of the payment method and its + * specific information if available + * @return the current {@code StoredValueBalanceCheckRequest} instance, allowing for method + * chaining */ public StoredValueBalanceCheckRequest paymentMethod(Map paymentMethod) { this.paymentMethod = paymentMethod; @@ -197,8 +212,11 @@ public StoredValueBalanceCheckRequest putPaymentMethodItem(String key, String pa } /** - * The collection that contains the type of the payment method and its specific information if available - * @return paymentMethod The collection that contains the type of the payment method and its specific information if available + * The collection that contains the type of the payment method and its specific information if + * available + * + * @return paymentMethod The collection that contains the type of the payment method and its + * specific information if available */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -207,9 +225,11 @@ public Map getPaymentMethod() { } /** - * The collection that contains the type of the payment method and its specific information if available + * The collection that contains the type of the payment method and its specific information if + * available * - * @param paymentMethod The collection that contains the type of the payment method and its specific information if available + * @param paymentMethod The collection that contains the type of the payment method and its + * specific information if available */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -220,8 +240,9 @@ public void setPaymentMethod(Map paymentMethod) { /** * recurringDetailReference * - * @param recurringDetailReference - * @return the current {@code StoredValueBalanceCheckRequest} instance, allowing for method chaining + * @param recurringDetailReference + * @return the current {@code StoredValueBalanceCheckRequest} instance, allowing for method + * chaining */ public StoredValueBalanceCheckRequest recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; @@ -230,7 +251,8 @@ public StoredValueBalanceCheckRequest recurringDetailReference(String recurringD /** * Get recurringDetailReference - * @return recurringDetailReference + * + * @return recurringDetailReference */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -241,7 +263,7 @@ public String getRecurringDetailReference() { /** * recurringDetailReference * - * @param recurringDetailReference + * @param recurringDetailReference */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,10 +272,17 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. - * @return the current {@code StoredValueBalanceCheckRequest} instance, allowing for method chaining + * @param reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @return the current {@code StoredValueBalanceCheckRequest} instance, allowing for method + * chaining */ public StoredValueBalanceCheckRequest reference(String reference) { this.reference = reference; @@ -261,8 +290,15 @@ public StoredValueBalanceCheckRequest reference(String reference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. - * @return reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. + * + * @return reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -271,9 +307,15 @@ public String getReference() { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -282,19 +324,64 @@ public void setReference(String reference) { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * @return the current {@code StoredValueBalanceCheckRequest} instance, allowing for method chaining + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. + * @return the current {@code StoredValueBalanceCheckRequest} instance, allowing for method + * chaining */ - public StoredValueBalanceCheckRequest shopperInteraction(ShopperInteractionEnum shopperInteraction) { + public StoredValueBalanceCheckRequest shopperInteraction( + ShopperInteractionEnum shopperInteraction) { this.shopperInteraction = shopperInteraction; return this; } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * @return shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. + * + * @return shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -303,9 +390,30 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -316,8 +424,9 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { /** * shopperReference * - * @param shopperReference - * @return the current {@code StoredValueBalanceCheckRequest} instance, allowing for method chaining + * @param shopperReference + * @return the current {@code StoredValueBalanceCheckRequest} instance, allowing for method + * chaining */ public StoredValueBalanceCheckRequest shopperReference(String shopperReference) { this.shopperReference = shopperReference; @@ -326,7 +435,8 @@ public StoredValueBalanceCheckRequest shopperReference(String shopperReference) /** * Get shopperReference - * @return shopperReference + * + * @return shopperReference */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -337,7 +447,7 @@ public String getShopperReference() { /** * shopperReference * - * @param shopperReference + * @param shopperReference */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -349,7 +459,8 @@ public void setShopperReference(String shopperReference) { * The physical store, for which this payment is processed. * * @param store The physical store, for which this payment is processed. - * @return the current {@code StoredValueBalanceCheckRequest} instance, allowing for method chaining + * @return the current {@code StoredValueBalanceCheckRequest} instance, allowing for method + * chaining */ public StoredValueBalanceCheckRequest store(String store) { this.store = store; @@ -358,6 +469,7 @@ public StoredValueBalanceCheckRequest store(String store) { /** * The physical store, for which this payment is processed. + * * @return store The physical store, for which this payment is processed. */ @JsonProperty(JSON_PROPERTY_STORE) @@ -377,9 +489,7 @@ public void setStore(String store) { this.store = store; } - /** - * Return true if this StoredValueBalanceCheckRequest object is equal to o. - */ + /** Return true if this StoredValueBalanceCheckRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -388,20 +498,31 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - StoredValueBalanceCheckRequest storedValueBalanceCheckRequest = (StoredValueBalanceCheckRequest) o; - return Objects.equals(this.amount, storedValueBalanceCheckRequest.amount) && - Objects.equals(this.merchantAccount, storedValueBalanceCheckRequest.merchantAccount) && - Objects.equals(this.paymentMethod, storedValueBalanceCheckRequest.paymentMethod) && - Objects.equals(this.recurringDetailReference, storedValueBalanceCheckRequest.recurringDetailReference) && - Objects.equals(this.reference, storedValueBalanceCheckRequest.reference) && - Objects.equals(this.shopperInteraction, storedValueBalanceCheckRequest.shopperInteraction) && - Objects.equals(this.shopperReference, storedValueBalanceCheckRequest.shopperReference) && - Objects.equals(this.store, storedValueBalanceCheckRequest.store); + StoredValueBalanceCheckRequest storedValueBalanceCheckRequest = + (StoredValueBalanceCheckRequest) o; + return Objects.equals(this.amount, storedValueBalanceCheckRequest.amount) + && Objects.equals(this.merchantAccount, storedValueBalanceCheckRequest.merchantAccount) + && Objects.equals(this.paymentMethod, storedValueBalanceCheckRequest.paymentMethod) + && Objects.equals( + this.recurringDetailReference, storedValueBalanceCheckRequest.recurringDetailReference) + && Objects.equals(this.reference, storedValueBalanceCheckRequest.reference) + && Objects.equals( + this.shopperInteraction, storedValueBalanceCheckRequest.shopperInteraction) + && Objects.equals(this.shopperReference, storedValueBalanceCheckRequest.shopperReference) + && Objects.equals(this.store, storedValueBalanceCheckRequest.store); } @Override public int hashCode() { - return Objects.hash(amount, merchantAccount, paymentMethod, recurringDetailReference, reference, shopperInteraction, shopperReference, store); + return Objects.hash( + amount, + merchantAccount, + paymentMethod, + recurringDetailReference, + reference, + shopperInteraction, + shopperReference, + store); } @Override @@ -411,7 +532,9 @@ public String toString() { sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" shopperInteraction: ").append(toIndentedString(shopperInteraction)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); @@ -421,8 +544,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -431,21 +553,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of StoredValueBalanceCheckRequest given an JSON string * * @param jsonString JSON string * @return An instance of StoredValueBalanceCheckRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to StoredValueBalanceCheckRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * StoredValueBalanceCheckRequest */ - public static StoredValueBalanceCheckRequest fromJson(String jsonString) throws JsonProcessingException { + public static StoredValueBalanceCheckRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoredValueBalanceCheckRequest.class); } -/** - * Convert an instance of StoredValueBalanceCheckRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of StoredValueBalanceCheckRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceCheckResponse.java b/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceCheckResponse.java index ffd6823aa..3a4ce284b 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceCheckResponse.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceCheckResponse.java @@ -2,32 +2,26 @@ * Adyen Stored Value API * * The version of the OpenAPI document: 46 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.storedvalue; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.storedvalue.Amount; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * StoredValueBalanceCheckResponse - */ +/** StoredValueBalanceCheckResponse */ @JsonPropertyOrder({ StoredValueBalanceCheckResponse.JSON_PROPERTY_CURRENT_BALANCE, StoredValueBalanceCheckResponse.JSON_PROPERTY_PSP_REFERENCE, @@ -35,7 +29,6 @@ StoredValueBalanceCheckResponse.JSON_PROPERTY_RESULT_CODE, StoredValueBalanceCheckResponse.JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON }) - public class StoredValueBalanceCheckResponse { public static final String JSON_PROPERTY_CURRENT_BALANCE = "currentBalance"; private Amount currentBalance; @@ -47,10 +40,14 @@ public class StoredValueBalanceCheckResponse { private String refusalReason; /** - * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed + * successfully. * **Refused** – The operation was refused. The reason is given in the + * `refusalReason` field. * **Error** – There was an error when the operation was + * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – + * The amount on the payment method is lower than the amount given in the request. Only applicable + * to balance checks. */ public enum ResultCodeEnum { - SUCCESS(String.valueOf("Success")), REFUSED(String.valueOf("Refused")), @@ -64,7 +61,7 @@ public enum ResultCodeEnum { private String value; ResultCodeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -85,7 +82,11 @@ public static ResultCodeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ResultCodeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResultCodeEnum.values())); + LOG.warning( + "ResultCodeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ResultCodeEnum.values())); return null; } } @@ -96,14 +97,14 @@ public static ResultCodeEnum fromValue(String value) { public static final String JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON = "thirdPartyRefusalReason"; private String thirdPartyRefusalReason; - public StoredValueBalanceCheckResponse() { - } + public StoredValueBalanceCheckResponse() {} /** * currentBalance * - * @param currentBalance - * @return the current {@code StoredValueBalanceCheckResponse} instance, allowing for method chaining + * @param currentBalance + * @return the current {@code StoredValueBalanceCheckResponse} instance, allowing for method + * chaining */ public StoredValueBalanceCheckResponse currentBalance(Amount currentBalance) { this.currentBalance = currentBalance; @@ -112,7 +113,8 @@ public StoredValueBalanceCheckResponse currentBalance(Amount currentBalance) { /** * Get currentBalance - * @return currentBalance + * + * @return currentBalance */ @JsonProperty(JSON_PROPERTY_CURRENT_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,7 +125,7 @@ public Amount getCurrentBalance() { /** * currentBalance * - * @param currentBalance + * @param currentBalance */ @JsonProperty(JSON_PROPERTY_CURRENT_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,10 +134,14 @@ public void setCurrentBalance(Amount currentBalance) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value + * is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. - * @return the current {@code StoredValueBalanceCheckResponse} instance, allowing for method chaining + * @param pspReference Adyen's 16-character string reference associated with the + * transaction/request. This value is globally unique; quote it when communicating with us + * about this request. + * @return the current {@code StoredValueBalanceCheckResponse} instance, allowing for method + * chaining */ public StoredValueBalanceCheckResponse pspReference(String pspReference) { this.pspReference = pspReference; @@ -143,8 +149,12 @@ public StoredValueBalanceCheckResponse pspReference(String pspReference) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. - * @return pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value + * is globally unique; quote it when communicating with us about this request. + * + * @return pspReference Adyen's 16-character string reference associated with the + * transaction/request. This value is globally unique; quote it when communicating with us + * about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -153,9 +163,12 @@ public String getPspReference() { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value + * is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @param pspReference Adyen's 16-character string reference associated with the + * transaction/request. This value is globally unique; quote it when communicating with us + * about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -164,10 +177,16 @@ public void setPspReference(String pspReference) { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason + * for the refusal or a description of the error. When a transaction fails, the authorisation + * response includes `resultCode` and `refusalReason` values. * - * @param refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. - * @return the current {@code StoredValueBalanceCheckResponse} instance, allowing for method chaining + * @param refusalReason If the transaction is refused or an error occurs, this field holds + * Adyen's mapped reason for the refusal or a description of the error. When a transaction + * fails, the authorisation response includes `resultCode` and + * `refusalReason` values. + * @return the current {@code StoredValueBalanceCheckResponse} instance, allowing for method + * chaining */ public StoredValueBalanceCheckResponse refusalReason(String refusalReason) { this.refusalReason = refusalReason; @@ -175,8 +194,14 @@ public StoredValueBalanceCheckResponse refusalReason(String refusalReason) { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. - * @return refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason + * for the refusal or a description of the error. When a transaction fails, the authorisation + * response includes `resultCode` and `refusalReason` values. + * + * @return refusalReason If the transaction is refused or an error occurs, this field holds + * Adyen's mapped reason for the refusal or a description of the error. When a transaction + * fails, the authorisation response includes `resultCode` and + * `refusalReason` values. */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,9 +210,14 @@ public String getRefusalReason() { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason + * for the refusal or a description of the error. When a transaction fails, the authorisation + * response includes `resultCode` and `refusalReason` values. * - * @param refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * @param refusalReason If the transaction is refused or an error occurs, this field holds + * Adyen's mapped reason for the refusal or a description of the error. When a transaction + * fails, the authorisation response includes `resultCode` and + * `refusalReason` values. */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -196,10 +226,21 @@ public void setRefusalReason(String refusalReason) { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed + * successfully. * **Refused** – The operation was refused. The reason is given in the + * `refusalReason` field. * **Error** – There was an error when the operation was + * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – + * The amount on the payment method is lower than the amount given in the request. Only applicable + * to balance checks. * - * @param resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. - * @return the current {@code StoredValueBalanceCheckResponse} instance, allowing for method chaining + * @param resultCode The result of the payment. Possible values: * **Success** – The operation has + * been completed successfully. * **Refused** – The operation was refused. The reason is given + * in the `refusalReason` field. * **Error** – There was an error when the operation + * was processed. The reason is given in the `refusalReason` field. * + * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in + * the request. Only applicable to balance checks. + * @return the current {@code StoredValueBalanceCheckResponse} instance, allowing for method + * chaining */ public StoredValueBalanceCheckResponse resultCode(ResultCodeEnum resultCode) { this.resultCode = resultCode; @@ -207,8 +248,19 @@ public StoredValueBalanceCheckResponse resultCode(ResultCodeEnum resultCode) { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. - * @return resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed + * successfully. * **Refused** – The operation was refused. The reason is given in the + * `refusalReason` field. * **Error** – There was an error when the operation was + * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – + * The amount on the payment method is lower than the amount given in the request. Only applicable + * to balance checks. + * + * @return resultCode The result of the payment. Possible values: * **Success** – The operation + * has been completed successfully. * **Refused** – The operation was refused. The reason is + * given in the `refusalReason` field. * **Error** – There was an error when the + * operation was processed. The reason is given in the `refusalReason` field. * + * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in + * the request. Only applicable to balance checks. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -217,9 +269,19 @@ public ResultCodeEnum getResultCode() { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed + * successfully. * **Refused** – The operation was refused. The reason is given in the + * `refusalReason` field. * **Error** – There was an error when the operation was + * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – + * The amount on the payment method is lower than the amount given in the request. Only applicable + * to balance checks. * - * @param resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * @param resultCode The result of the payment. Possible values: * **Success** – The operation has + * been completed successfully. * **Refused** – The operation was refused. The reason is given + * in the `refusalReason` field. * **Error** – There was an error when the operation + * was processed. The reason is given in the `refusalReason` field. * + * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in + * the request. Only applicable to balance checks. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -230,8 +292,10 @@ public void setResultCode(ResultCodeEnum resultCode) { /** * Raw refusal reason received from the third party, where available * - * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where available - * @return the current {@code StoredValueBalanceCheckResponse} instance, allowing for method chaining + * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where + * available + * @return the current {@code StoredValueBalanceCheckResponse} instance, allowing for method + * chaining */ public StoredValueBalanceCheckResponse thirdPartyRefusalReason(String thirdPartyRefusalReason) { this.thirdPartyRefusalReason = thirdPartyRefusalReason; @@ -240,7 +304,9 @@ public StoredValueBalanceCheckResponse thirdPartyRefusalReason(String thirdParty /** * Raw refusal reason received from the third party, where available - * @return thirdPartyRefusalReason Raw refusal reason received from the third party, where available + * + * @return thirdPartyRefusalReason Raw refusal reason received from the third party, where + * available */ @JsonProperty(JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -251,7 +317,8 @@ public String getThirdPartyRefusalReason() { /** * Raw refusal reason received from the third party, where available * - * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where available + * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where + * available */ @JsonProperty(JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -259,9 +326,7 @@ public void setThirdPartyRefusalReason(String thirdPartyRefusalReason) { this.thirdPartyRefusalReason = thirdPartyRefusalReason; } - /** - * Return true if this StoredValueBalanceCheckResponse object is equal to o. - */ + /** Return true if this StoredValueBalanceCheckResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -270,17 +335,20 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - StoredValueBalanceCheckResponse storedValueBalanceCheckResponse = (StoredValueBalanceCheckResponse) o; - return Objects.equals(this.currentBalance, storedValueBalanceCheckResponse.currentBalance) && - Objects.equals(this.pspReference, storedValueBalanceCheckResponse.pspReference) && - Objects.equals(this.refusalReason, storedValueBalanceCheckResponse.refusalReason) && - Objects.equals(this.resultCode, storedValueBalanceCheckResponse.resultCode) && - Objects.equals(this.thirdPartyRefusalReason, storedValueBalanceCheckResponse.thirdPartyRefusalReason); + StoredValueBalanceCheckResponse storedValueBalanceCheckResponse = + (StoredValueBalanceCheckResponse) o; + return Objects.equals(this.currentBalance, storedValueBalanceCheckResponse.currentBalance) + && Objects.equals(this.pspReference, storedValueBalanceCheckResponse.pspReference) + && Objects.equals(this.refusalReason, storedValueBalanceCheckResponse.refusalReason) + && Objects.equals(this.resultCode, storedValueBalanceCheckResponse.resultCode) + && Objects.equals( + this.thirdPartyRefusalReason, storedValueBalanceCheckResponse.thirdPartyRefusalReason); } @Override public int hashCode() { - return Objects.hash(currentBalance, pspReference, refusalReason, resultCode, thirdPartyRefusalReason); + return Objects.hash( + currentBalance, pspReference, refusalReason, resultCode, thirdPartyRefusalReason); } @Override @@ -291,14 +359,15 @@ public String toString() { sb.append(" pspReference: ").append(toIndentedString(pspReference)).append("\n"); sb.append(" refusalReason: ").append(toIndentedString(refusalReason)).append("\n"); sb.append(" resultCode: ").append(toIndentedString(resultCode)).append("\n"); - sb.append(" thirdPartyRefusalReason: ").append(toIndentedString(thirdPartyRefusalReason)).append("\n"); + sb.append(" thirdPartyRefusalReason: ") + .append(toIndentedString(thirdPartyRefusalReason)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -307,21 +376,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of StoredValueBalanceCheckResponse given an JSON string * * @param jsonString JSON string * @return An instance of StoredValueBalanceCheckResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to StoredValueBalanceCheckResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * StoredValueBalanceCheckResponse */ - public static StoredValueBalanceCheckResponse fromJson(String jsonString) throws JsonProcessingException { + public static StoredValueBalanceCheckResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoredValueBalanceCheckResponse.class); } -/** - * Convert an instance of StoredValueBalanceCheckResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of StoredValueBalanceCheckResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceMergeRequest.java b/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceMergeRequest.java index 277b38e88..331ff837a 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceMergeRequest.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceMergeRequest.java @@ -2,34 +2,28 @@ * Adyen Stored Value API * * The version of the OpenAPI document: 46 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.storedvalue; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.storedvalue.Amount; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * StoredValueBalanceMergeRequest - */ +/** StoredValueBalanceMergeRequest */ @JsonPropertyOrder({ StoredValueBalanceMergeRequest.JSON_PROPERTY_AMOUNT, StoredValueBalanceMergeRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, @@ -41,7 +35,6 @@ StoredValueBalanceMergeRequest.JSON_PROPERTY_SOURCE_PAYMENT_METHOD, StoredValueBalanceMergeRequest.JSON_PROPERTY_STORE }) - public class StoredValueBalanceMergeRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -59,10 +52,19 @@ public class StoredValueBalanceMergeRequest { private String reference; /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. */ public enum ShopperInteractionEnum { - ECOMMERCE(String.valueOf("Ecommerce")), CONTAUTH(String.valueOf("ContAuth")), @@ -76,7 +78,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -97,7 +99,11 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning( + "ShopperInteractionEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -114,14 +120,14 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_STORE = "store"; private String store; - public StoredValueBalanceMergeRequest() { - } + public StoredValueBalanceMergeRequest() {} /** * amount * - * @param amount - * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method chaining + * @param amount + * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method + * chaining */ public StoredValueBalanceMergeRequest amount(Amount amount) { this.amount = amount; @@ -130,7 +136,8 @@ public StoredValueBalanceMergeRequest amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -141,7 +148,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,8 +159,10 @@ public void setAmount(Amount amount) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. - * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method chaining + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. + * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method + * chaining */ public StoredValueBalanceMergeRequest merchantAccount(String merchantAccount) { this.merchantAccount = merchantAccount; @@ -162,7 +171,9 @@ public StoredValueBalanceMergeRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * @return merchantAccount The merchant account identifier, with which you want to process the transaction. + * + * @return merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,7 +184,8 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,10 +194,13 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The collection that contains the type of the payment method and its specific information if available + * The collection that contains the type of the payment method and its specific information if + * available * - * @param paymentMethod The collection that contains the type of the payment method and its specific information if available - * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method chaining + * @param paymentMethod The collection that contains the type of the payment method and its + * specific information if available + * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method + * chaining */ public StoredValueBalanceMergeRequest paymentMethod(Map paymentMethod) { this.paymentMethod = paymentMethod; @@ -201,8 +216,11 @@ public StoredValueBalanceMergeRequest putPaymentMethodItem(String key, String pa } /** - * The collection that contains the type of the payment method and its specific information if available - * @return paymentMethod The collection that contains the type of the payment method and its specific information if available + * The collection that contains the type of the payment method and its specific information if + * available + * + * @return paymentMethod The collection that contains the type of the payment method and its + * specific information if available */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,9 +229,11 @@ public Map getPaymentMethod() { } /** - * The collection that contains the type of the payment method and its specific information if available + * The collection that contains the type of the payment method and its specific information if + * available * - * @param paymentMethod The collection that contains the type of the payment method and its specific information if available + * @param paymentMethod The collection that contains the type of the payment method and its + * specific information if available */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,8 +244,9 @@ public void setPaymentMethod(Map paymentMethod) { /** * recurringDetailReference * - * @param recurringDetailReference - * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method chaining + * @param recurringDetailReference + * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method + * chaining */ public StoredValueBalanceMergeRequest recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; @@ -234,7 +255,8 @@ public StoredValueBalanceMergeRequest recurringDetailReference(String recurringD /** * Get recurringDetailReference - * @return recurringDetailReference + * + * @return recurringDetailReference */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -245,7 +267,7 @@ public String getRecurringDetailReference() { /** * recurringDetailReference * - * @param recurringDetailReference + * @param recurringDetailReference */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -254,10 +276,17 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. - * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method chaining + * @param reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method + * chaining */ public StoredValueBalanceMergeRequest reference(String reference) { this.reference = reference; @@ -265,8 +294,15 @@ public StoredValueBalanceMergeRequest reference(String reference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. - * @return reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. + * + * @return reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -275,9 +311,15 @@ public String getReference() { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -286,19 +328,64 @@ public void setReference(String reference) { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method chaining + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. + * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method + * chaining */ - public StoredValueBalanceMergeRequest shopperInteraction(ShopperInteractionEnum shopperInteraction) { + public StoredValueBalanceMergeRequest shopperInteraction( + ShopperInteractionEnum shopperInteraction) { this.shopperInteraction = shopperInteraction; return this; } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * @return shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. + * + * @return shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -307,9 +394,30 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -320,8 +428,9 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { /** * shopperReference * - * @param shopperReference - * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method chaining + * @param shopperReference + * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method + * chaining */ public StoredValueBalanceMergeRequest shopperReference(String shopperReference) { this.shopperReference = shopperReference; @@ -330,7 +439,8 @@ public StoredValueBalanceMergeRequest shopperReference(String shopperReference) /** * Get shopperReference - * @return shopperReference + * + * @return shopperReference */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -341,7 +451,7 @@ public String getShopperReference() { /** * shopperReference * - * @param shopperReference + * @param shopperReference */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -350,17 +460,24 @@ public void setShopperReference(String shopperReference) { } /** - * The collection that contains the source payment method and its specific information if available. Note that type should not be included since it is inferred from the (target) payment method + * The collection that contains the source payment method and its specific information if + * available. Note that type should not be included since it is inferred from the (target) payment + * method * - * @param sourcePaymentMethod The collection that contains the source payment method and its specific information if available. Note that type should not be included since it is inferred from the (target) payment method - * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method chaining + * @param sourcePaymentMethod The collection that contains the source payment method and its + * specific information if available. Note that type should not be included since it is + * inferred from the (target) payment method + * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method + * chaining */ - public StoredValueBalanceMergeRequest sourcePaymentMethod(Map sourcePaymentMethod) { + public StoredValueBalanceMergeRequest sourcePaymentMethod( + Map sourcePaymentMethod) { this.sourcePaymentMethod = sourcePaymentMethod; return this; } - public StoredValueBalanceMergeRequest putSourcePaymentMethodItem(String key, String sourcePaymentMethodItem) { + public StoredValueBalanceMergeRequest putSourcePaymentMethodItem( + String key, String sourcePaymentMethodItem) { if (this.sourcePaymentMethod == null) { this.sourcePaymentMethod = new HashMap<>(); } @@ -369,8 +486,13 @@ public StoredValueBalanceMergeRequest putSourcePaymentMethodItem(String key, Str } /** - * The collection that contains the source payment method and its specific information if available. Note that type should not be included since it is inferred from the (target) payment method - * @return sourcePaymentMethod The collection that contains the source payment method and its specific information if available. Note that type should not be included since it is inferred from the (target) payment method + * The collection that contains the source payment method and its specific information if + * available. Note that type should not be included since it is inferred from the (target) payment + * method + * + * @return sourcePaymentMethod The collection that contains the source payment method and its + * specific information if available. Note that type should not be included since it is + * inferred from the (target) payment method */ @JsonProperty(JSON_PROPERTY_SOURCE_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -379,9 +501,13 @@ public Map getSourcePaymentMethod() { } /** - * The collection that contains the source payment method and its specific information if available. Note that type should not be included since it is inferred from the (target) payment method + * The collection that contains the source payment method and its specific information if + * available. Note that type should not be included since it is inferred from the (target) payment + * method * - * @param sourcePaymentMethod The collection that contains the source payment method and its specific information if available. Note that type should not be included since it is inferred from the (target) payment method + * @param sourcePaymentMethod The collection that contains the source payment method and its + * specific information if available. Note that type should not be included since it is + * inferred from the (target) payment method */ @JsonProperty(JSON_PROPERTY_SOURCE_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -393,7 +519,8 @@ public void setSourcePaymentMethod(Map sourcePaymentMethod) { * The physical store, for which this payment is processed. * * @param store The physical store, for which this payment is processed. - * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method chaining + * @return the current {@code StoredValueBalanceMergeRequest} instance, allowing for method + * chaining */ public StoredValueBalanceMergeRequest store(String store) { this.store = store; @@ -402,6 +529,7 @@ public StoredValueBalanceMergeRequest store(String store) { /** * The physical store, for which this payment is processed. + * * @return store The physical store, for which this payment is processed. */ @JsonProperty(JSON_PROPERTY_STORE) @@ -421,9 +549,7 @@ public void setStore(String store) { this.store = store; } - /** - * Return true if this StoredValueBalanceMergeRequest object is equal to o. - */ + /** Return true if this StoredValueBalanceMergeRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -432,21 +558,34 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - StoredValueBalanceMergeRequest storedValueBalanceMergeRequest = (StoredValueBalanceMergeRequest) o; - return Objects.equals(this.amount, storedValueBalanceMergeRequest.amount) && - Objects.equals(this.merchantAccount, storedValueBalanceMergeRequest.merchantAccount) && - Objects.equals(this.paymentMethod, storedValueBalanceMergeRequest.paymentMethod) && - Objects.equals(this.recurringDetailReference, storedValueBalanceMergeRequest.recurringDetailReference) && - Objects.equals(this.reference, storedValueBalanceMergeRequest.reference) && - Objects.equals(this.shopperInteraction, storedValueBalanceMergeRequest.shopperInteraction) && - Objects.equals(this.shopperReference, storedValueBalanceMergeRequest.shopperReference) && - Objects.equals(this.sourcePaymentMethod, storedValueBalanceMergeRequest.sourcePaymentMethod) && - Objects.equals(this.store, storedValueBalanceMergeRequest.store); + StoredValueBalanceMergeRequest storedValueBalanceMergeRequest = + (StoredValueBalanceMergeRequest) o; + return Objects.equals(this.amount, storedValueBalanceMergeRequest.amount) + && Objects.equals(this.merchantAccount, storedValueBalanceMergeRequest.merchantAccount) + && Objects.equals(this.paymentMethod, storedValueBalanceMergeRequest.paymentMethod) + && Objects.equals( + this.recurringDetailReference, storedValueBalanceMergeRequest.recurringDetailReference) + && Objects.equals(this.reference, storedValueBalanceMergeRequest.reference) + && Objects.equals( + this.shopperInteraction, storedValueBalanceMergeRequest.shopperInteraction) + && Objects.equals(this.shopperReference, storedValueBalanceMergeRequest.shopperReference) + && Objects.equals( + this.sourcePaymentMethod, storedValueBalanceMergeRequest.sourcePaymentMethod) + && Objects.equals(this.store, storedValueBalanceMergeRequest.store); } @Override public int hashCode() { - return Objects.hash(amount, merchantAccount, paymentMethod, recurringDetailReference, reference, shopperInteraction, shopperReference, sourcePaymentMethod, store); + return Objects.hash( + amount, + merchantAccount, + paymentMethod, + recurringDetailReference, + reference, + shopperInteraction, + shopperReference, + sourcePaymentMethod, + store); } @Override @@ -456,19 +595,22 @@ public String toString() { sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" shopperInteraction: ").append(toIndentedString(shopperInteraction)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); - sb.append(" sourcePaymentMethod: ").append(toIndentedString(sourcePaymentMethod)).append("\n"); + sb.append(" sourcePaymentMethod: ") + .append(toIndentedString(sourcePaymentMethod)) + .append("\n"); sb.append(" store: ").append(toIndentedString(store)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -477,21 +619,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of StoredValueBalanceMergeRequest given an JSON string * * @param jsonString JSON string * @return An instance of StoredValueBalanceMergeRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to StoredValueBalanceMergeRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * StoredValueBalanceMergeRequest */ - public static StoredValueBalanceMergeRequest fromJson(String jsonString) throws JsonProcessingException { + public static StoredValueBalanceMergeRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoredValueBalanceMergeRequest.class); } -/** - * Convert an instance of StoredValueBalanceMergeRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of StoredValueBalanceMergeRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceMergeResponse.java b/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceMergeResponse.java index 639e9bf54..3bb2dca33 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceMergeResponse.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceMergeResponse.java @@ -2,32 +2,26 @@ * Adyen Stored Value API * * The version of the OpenAPI document: 46 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.storedvalue; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.storedvalue.Amount; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * StoredValueBalanceMergeResponse - */ +/** StoredValueBalanceMergeResponse */ @JsonPropertyOrder({ StoredValueBalanceMergeResponse.JSON_PROPERTY_AUTH_CODE, StoredValueBalanceMergeResponse.JSON_PROPERTY_CURRENT_BALANCE, @@ -36,7 +30,6 @@ StoredValueBalanceMergeResponse.JSON_PROPERTY_RESULT_CODE, StoredValueBalanceMergeResponse.JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON }) - public class StoredValueBalanceMergeResponse { public static final String JSON_PROPERTY_AUTH_CODE = "authCode"; private String authCode; @@ -51,10 +44,14 @@ public class StoredValueBalanceMergeResponse { private String refusalReason; /** - * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed + * successfully. * **Refused** – The operation was refused. The reason is given in the + * `refusalReason` field. * **Error** – There was an error when the operation was + * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – + * The amount on the payment method is lower than the amount given in the request. Only applicable + * to balance checks. */ public enum ResultCodeEnum { - SUCCESS(String.valueOf("Success")), REFUSED(String.valueOf("Refused")), @@ -68,7 +65,7 @@ public enum ResultCodeEnum { private String value; ResultCodeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -89,7 +86,11 @@ public static ResultCodeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ResultCodeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResultCodeEnum.values())); + LOG.warning( + "ResultCodeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ResultCodeEnum.values())); return null; } } @@ -100,14 +101,17 @@ public static ResultCodeEnum fromValue(String value) { public static final String JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON = "thirdPartyRefusalReason"; private String thirdPartyRefusalReason; - public StoredValueBalanceMergeResponse() { - } + public StoredValueBalanceMergeResponse() {} /** - * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * Authorisation code: * When the payment is authorised, this field holds the authorisation code + * for the payment. * When the payment is not authorised, this field is empty. * - * @param authCode Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. - * @return the current {@code StoredValueBalanceMergeResponse} instance, allowing for method chaining + * @param authCode Authorisation code: * When the payment is authorised, this field holds the + * authorisation code for the payment. * When the payment is not authorised, this field is + * empty. + * @return the current {@code StoredValueBalanceMergeResponse} instance, allowing for method + * chaining */ public StoredValueBalanceMergeResponse authCode(String authCode) { this.authCode = authCode; @@ -115,8 +119,12 @@ public StoredValueBalanceMergeResponse authCode(String authCode) { } /** - * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. - * @return authCode Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * Authorisation code: * When the payment is authorised, this field holds the authorisation code + * for the payment. * When the payment is not authorised, this field is empty. + * + * @return authCode Authorisation code: * When the payment is authorised, this field holds the + * authorisation code for the payment. * When the payment is not authorised, this field is + * empty. */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,9 +133,12 @@ public String getAuthCode() { } /** - * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * Authorisation code: * When the payment is authorised, this field holds the authorisation code + * for the payment. * When the payment is not authorised, this field is empty. * - * @param authCode Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * @param authCode Authorisation code: * When the payment is authorised, this field holds the + * authorisation code for the payment. * When the payment is not authorised, this field is + * empty. */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,8 +149,9 @@ public void setAuthCode(String authCode) { /** * currentBalance * - * @param currentBalance - * @return the current {@code StoredValueBalanceMergeResponse} instance, allowing for method chaining + * @param currentBalance + * @return the current {@code StoredValueBalanceMergeResponse} instance, allowing for method + * chaining */ public StoredValueBalanceMergeResponse currentBalance(Amount currentBalance) { this.currentBalance = currentBalance; @@ -148,7 +160,8 @@ public StoredValueBalanceMergeResponse currentBalance(Amount currentBalance) { /** * Get currentBalance - * @return currentBalance + * + * @return currentBalance */ @JsonProperty(JSON_PROPERTY_CURRENT_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,7 +172,7 @@ public Amount getCurrentBalance() { /** * currentBalance * - * @param currentBalance + * @param currentBalance */ @JsonProperty(JSON_PROPERTY_CURRENT_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,10 +181,14 @@ public void setCurrentBalance(Amount currentBalance) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value + * is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. - * @return the current {@code StoredValueBalanceMergeResponse} instance, allowing for method chaining + * @param pspReference Adyen's 16-character string reference associated with the + * transaction/request. This value is globally unique; quote it when communicating with us + * about this request. + * @return the current {@code StoredValueBalanceMergeResponse} instance, allowing for method + * chaining */ public StoredValueBalanceMergeResponse pspReference(String pspReference) { this.pspReference = pspReference; @@ -179,8 +196,12 @@ public StoredValueBalanceMergeResponse pspReference(String pspReference) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. - * @return pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value + * is globally unique; quote it when communicating with us about this request. + * + * @return pspReference Adyen's 16-character string reference associated with the + * transaction/request. This value is globally unique; quote it when communicating with us + * about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,9 +210,12 @@ public String getPspReference() { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value + * is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @param pspReference Adyen's 16-character string reference associated with the + * transaction/request. This value is globally unique; quote it when communicating with us + * about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,10 +224,16 @@ public void setPspReference(String pspReference) { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason + * for the refusal or a description of the error. When a transaction fails, the authorisation + * response includes `resultCode` and `refusalReason` values. * - * @param refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. - * @return the current {@code StoredValueBalanceMergeResponse} instance, allowing for method chaining + * @param refusalReason If the transaction is refused or an error occurs, this field holds + * Adyen's mapped reason for the refusal or a description of the error. When a transaction + * fails, the authorisation response includes `resultCode` and + * `refusalReason` values. + * @return the current {@code StoredValueBalanceMergeResponse} instance, allowing for method + * chaining */ public StoredValueBalanceMergeResponse refusalReason(String refusalReason) { this.refusalReason = refusalReason; @@ -211,8 +241,14 @@ public StoredValueBalanceMergeResponse refusalReason(String refusalReason) { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. - * @return refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason + * for the refusal or a description of the error. When a transaction fails, the authorisation + * response includes `resultCode` and `refusalReason` values. + * + * @return refusalReason If the transaction is refused or an error occurs, this field holds + * Adyen's mapped reason for the refusal or a description of the error. When a transaction + * fails, the authorisation response includes `resultCode` and + * `refusalReason` values. */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,9 +257,14 @@ public String getRefusalReason() { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason + * for the refusal or a description of the error. When a transaction fails, the authorisation + * response includes `resultCode` and `refusalReason` values. * - * @param refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * @param refusalReason If the transaction is refused or an error occurs, this field holds + * Adyen's mapped reason for the refusal or a description of the error. When a transaction + * fails, the authorisation response includes `resultCode` and + * `refusalReason` values. */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,10 +273,21 @@ public void setRefusalReason(String refusalReason) { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed + * successfully. * **Refused** – The operation was refused. The reason is given in the + * `refusalReason` field. * **Error** – There was an error when the operation was + * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – + * The amount on the payment method is lower than the amount given in the request. Only applicable + * to balance checks. * - * @param resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. - * @return the current {@code StoredValueBalanceMergeResponse} instance, allowing for method chaining + * @param resultCode The result of the payment. Possible values: * **Success** – The operation has + * been completed successfully. * **Refused** – The operation was refused. The reason is given + * in the `refusalReason` field. * **Error** – There was an error when the operation + * was processed. The reason is given in the `refusalReason` field. * + * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in + * the request. Only applicable to balance checks. + * @return the current {@code StoredValueBalanceMergeResponse} instance, allowing for method + * chaining */ public StoredValueBalanceMergeResponse resultCode(ResultCodeEnum resultCode) { this.resultCode = resultCode; @@ -243,8 +295,19 @@ public StoredValueBalanceMergeResponse resultCode(ResultCodeEnum resultCode) { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. - * @return resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed + * successfully. * **Refused** – The operation was refused. The reason is given in the + * `refusalReason` field. * **Error** – There was an error when the operation was + * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – + * The amount on the payment method is lower than the amount given in the request. Only applicable + * to balance checks. + * + * @return resultCode The result of the payment. Possible values: * **Success** – The operation + * has been completed successfully. * **Refused** – The operation was refused. The reason is + * given in the `refusalReason` field. * **Error** – There was an error when the + * operation was processed. The reason is given in the `refusalReason` field. * + * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in + * the request. Only applicable to balance checks. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -253,9 +316,19 @@ public ResultCodeEnum getResultCode() { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed + * successfully. * **Refused** – The operation was refused. The reason is given in the + * `refusalReason` field. * **Error** – There was an error when the operation was + * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – + * The amount on the payment method is lower than the amount given in the request. Only applicable + * to balance checks. * - * @param resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * @param resultCode The result of the payment. Possible values: * **Success** – The operation has + * been completed successfully. * **Refused** – The operation was refused. The reason is given + * in the `refusalReason` field. * **Error** – There was an error when the operation + * was processed. The reason is given in the `refusalReason` field. * + * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in + * the request. Only applicable to balance checks. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -266,8 +339,10 @@ public void setResultCode(ResultCodeEnum resultCode) { /** * Raw refusal reason received from the third party, where available * - * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where available - * @return the current {@code StoredValueBalanceMergeResponse} instance, allowing for method chaining + * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where + * available + * @return the current {@code StoredValueBalanceMergeResponse} instance, allowing for method + * chaining */ public StoredValueBalanceMergeResponse thirdPartyRefusalReason(String thirdPartyRefusalReason) { this.thirdPartyRefusalReason = thirdPartyRefusalReason; @@ -276,7 +351,9 @@ public StoredValueBalanceMergeResponse thirdPartyRefusalReason(String thirdParty /** * Raw refusal reason received from the third party, where available - * @return thirdPartyRefusalReason Raw refusal reason received from the third party, where available + * + * @return thirdPartyRefusalReason Raw refusal reason received from the third party, where + * available */ @JsonProperty(JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -287,7 +364,8 @@ public String getThirdPartyRefusalReason() { /** * Raw refusal reason received from the third party, where available * - * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where available + * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where + * available */ @JsonProperty(JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -295,9 +373,7 @@ public void setThirdPartyRefusalReason(String thirdPartyRefusalReason) { this.thirdPartyRefusalReason = thirdPartyRefusalReason; } - /** - * Return true if this StoredValueBalanceMergeResponse object is equal to o. - */ + /** Return true if this StoredValueBalanceMergeResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -306,18 +382,21 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - StoredValueBalanceMergeResponse storedValueBalanceMergeResponse = (StoredValueBalanceMergeResponse) o; - return Objects.equals(this.authCode, storedValueBalanceMergeResponse.authCode) && - Objects.equals(this.currentBalance, storedValueBalanceMergeResponse.currentBalance) && - Objects.equals(this.pspReference, storedValueBalanceMergeResponse.pspReference) && - Objects.equals(this.refusalReason, storedValueBalanceMergeResponse.refusalReason) && - Objects.equals(this.resultCode, storedValueBalanceMergeResponse.resultCode) && - Objects.equals(this.thirdPartyRefusalReason, storedValueBalanceMergeResponse.thirdPartyRefusalReason); + StoredValueBalanceMergeResponse storedValueBalanceMergeResponse = + (StoredValueBalanceMergeResponse) o; + return Objects.equals(this.authCode, storedValueBalanceMergeResponse.authCode) + && Objects.equals(this.currentBalance, storedValueBalanceMergeResponse.currentBalance) + && Objects.equals(this.pspReference, storedValueBalanceMergeResponse.pspReference) + && Objects.equals(this.refusalReason, storedValueBalanceMergeResponse.refusalReason) + && Objects.equals(this.resultCode, storedValueBalanceMergeResponse.resultCode) + && Objects.equals( + this.thirdPartyRefusalReason, storedValueBalanceMergeResponse.thirdPartyRefusalReason); } @Override public int hashCode() { - return Objects.hash(authCode, currentBalance, pspReference, refusalReason, resultCode, thirdPartyRefusalReason); + return Objects.hash( + authCode, currentBalance, pspReference, refusalReason, resultCode, thirdPartyRefusalReason); } @Override @@ -329,14 +408,15 @@ public String toString() { sb.append(" pspReference: ").append(toIndentedString(pspReference)).append("\n"); sb.append(" refusalReason: ").append(toIndentedString(refusalReason)).append("\n"); sb.append(" resultCode: ").append(toIndentedString(resultCode)).append("\n"); - sb.append(" thirdPartyRefusalReason: ").append(toIndentedString(thirdPartyRefusalReason)).append("\n"); + sb.append(" thirdPartyRefusalReason: ") + .append(toIndentedString(thirdPartyRefusalReason)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -345,21 +425,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of StoredValueBalanceMergeResponse given an JSON string * * @param jsonString JSON string * @return An instance of StoredValueBalanceMergeResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to StoredValueBalanceMergeResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * StoredValueBalanceMergeResponse */ - public static StoredValueBalanceMergeResponse fromJson(String jsonString) throws JsonProcessingException { + public static StoredValueBalanceMergeResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoredValueBalanceMergeResponse.class); } -/** - * Convert an instance of StoredValueBalanceMergeResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of StoredValueBalanceMergeResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueIssueRequest.java b/src/main/java/com/adyen/model/storedvalue/StoredValueIssueRequest.java index f917dfa1f..38d80a39f 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueIssueRequest.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueIssueRequest.java @@ -2,34 +2,28 @@ * Adyen Stored Value API * * The version of the OpenAPI document: 46 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.storedvalue; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.storedvalue.Amount; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * StoredValueIssueRequest - */ +/** StoredValueIssueRequest */ @JsonPropertyOrder({ StoredValueIssueRequest.JSON_PROPERTY_AMOUNT, StoredValueIssueRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, @@ -40,7 +34,6 @@ StoredValueIssueRequest.JSON_PROPERTY_SHOPPER_REFERENCE, StoredValueIssueRequest.JSON_PROPERTY_STORE }) - public class StoredValueIssueRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -58,10 +51,19 @@ public class StoredValueIssueRequest { private String reference; /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. */ public enum ShopperInteractionEnum { - ECOMMERCE(String.valueOf("Ecommerce")), CONTAUTH(String.valueOf("ContAuth")), @@ -75,7 +77,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -96,7 +98,11 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning( + "ShopperInteractionEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -110,13 +116,12 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_STORE = "store"; private String store; - public StoredValueIssueRequest() { - } + public StoredValueIssueRequest() {} /** * amount * - * @param amount + * @param amount * @return the current {@code StoredValueIssueRequest} instance, allowing for method chaining */ public StoredValueIssueRequest amount(Amount amount) { @@ -126,7 +131,8 @@ public StoredValueIssueRequest amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,7 +143,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,7 +154,8 @@ public void setAmount(Amount amount) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. * @return the current {@code StoredValueIssueRequest} instance, allowing for method chaining */ public StoredValueIssueRequest merchantAccount(String merchantAccount) { @@ -158,7 +165,9 @@ public StoredValueIssueRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * @return merchantAccount The merchant account identifier, with which you want to process the transaction. + * + * @return merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,7 +178,8 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,9 +188,11 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The collection that contains the type of the payment method and its specific information if available + * The collection that contains the type of the payment method and its specific information if + * available * - * @param paymentMethod The collection that contains the type of the payment method and its specific information if available + * @param paymentMethod The collection that contains the type of the payment method and its + * specific information if available * @return the current {@code StoredValueIssueRequest} instance, allowing for method chaining */ public StoredValueIssueRequest paymentMethod(Map paymentMethod) { @@ -197,8 +209,11 @@ public StoredValueIssueRequest putPaymentMethodItem(String key, String paymentMe } /** - * The collection that contains the type of the payment method and its specific information if available - * @return paymentMethod The collection that contains the type of the payment method and its specific information if available + * The collection that contains the type of the payment method and its specific information if + * available + * + * @return paymentMethod The collection that contains the type of the payment method and its + * specific information if available */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -207,9 +222,11 @@ public Map getPaymentMethod() { } /** - * The collection that contains the type of the payment method and its specific information if available + * The collection that contains the type of the payment method and its specific information if + * available * - * @param paymentMethod The collection that contains the type of the payment method and its specific information if available + * @param paymentMethod The collection that contains the type of the payment method and its + * specific information if available */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -220,7 +237,7 @@ public void setPaymentMethod(Map paymentMethod) { /** * recurringDetailReference * - * @param recurringDetailReference + * @param recurringDetailReference * @return the current {@code StoredValueIssueRequest} instance, allowing for method chaining */ public StoredValueIssueRequest recurringDetailReference(String recurringDetailReference) { @@ -230,7 +247,8 @@ public StoredValueIssueRequest recurringDetailReference(String recurringDetailRe /** * Get recurringDetailReference - * @return recurringDetailReference + * + * @return recurringDetailReference */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -241,7 +259,7 @@ public String getRecurringDetailReference() { /** * recurringDetailReference * - * @param recurringDetailReference + * @param recurringDetailReference */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,9 +268,15 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * @return the current {@code StoredValueIssueRequest} instance, allowing for method chaining */ public StoredValueIssueRequest reference(String reference) { @@ -261,8 +285,15 @@ public StoredValueIssueRequest reference(String reference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. - * @return reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. + * + * @return reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -271,9 +302,15 @@ public String getReference() { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -282,9 +319,30 @@ public void setReference(String reference) { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. * @return the current {@code StoredValueIssueRequest} instance, allowing for method chaining */ public StoredValueIssueRequest shopperInteraction(ShopperInteractionEnum shopperInteraction) { @@ -293,8 +351,30 @@ public StoredValueIssueRequest shopperInteraction(ShopperInteractionEnum shopper } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * @return shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. + * + * @return shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -303,9 +383,30 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -316,7 +417,7 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { /** * shopperReference * - * @param shopperReference + * @param shopperReference * @return the current {@code StoredValueIssueRequest} instance, allowing for method chaining */ public StoredValueIssueRequest shopperReference(String shopperReference) { @@ -326,7 +427,8 @@ public StoredValueIssueRequest shopperReference(String shopperReference) { /** * Get shopperReference - * @return shopperReference + * + * @return shopperReference */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -337,7 +439,7 @@ public String getShopperReference() { /** * shopperReference * - * @param shopperReference + * @param shopperReference */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -358,6 +460,7 @@ public StoredValueIssueRequest store(String store) { /** * The physical store, for which this payment is processed. + * * @return store The physical store, for which this payment is processed. */ @JsonProperty(JSON_PROPERTY_STORE) @@ -377,9 +480,7 @@ public void setStore(String store) { this.store = store; } - /** - * Return true if this StoredValueIssueRequest object is equal to o. - */ + /** Return true if this StoredValueIssueRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -389,19 +490,28 @@ public boolean equals(Object o) { return false; } StoredValueIssueRequest storedValueIssueRequest = (StoredValueIssueRequest) o; - return Objects.equals(this.amount, storedValueIssueRequest.amount) && - Objects.equals(this.merchantAccount, storedValueIssueRequest.merchantAccount) && - Objects.equals(this.paymentMethod, storedValueIssueRequest.paymentMethod) && - Objects.equals(this.recurringDetailReference, storedValueIssueRequest.recurringDetailReference) && - Objects.equals(this.reference, storedValueIssueRequest.reference) && - Objects.equals(this.shopperInteraction, storedValueIssueRequest.shopperInteraction) && - Objects.equals(this.shopperReference, storedValueIssueRequest.shopperReference) && - Objects.equals(this.store, storedValueIssueRequest.store); + return Objects.equals(this.amount, storedValueIssueRequest.amount) + && Objects.equals(this.merchantAccount, storedValueIssueRequest.merchantAccount) + && Objects.equals(this.paymentMethod, storedValueIssueRequest.paymentMethod) + && Objects.equals( + this.recurringDetailReference, storedValueIssueRequest.recurringDetailReference) + && Objects.equals(this.reference, storedValueIssueRequest.reference) + && Objects.equals(this.shopperInteraction, storedValueIssueRequest.shopperInteraction) + && Objects.equals(this.shopperReference, storedValueIssueRequest.shopperReference) + && Objects.equals(this.store, storedValueIssueRequest.store); } @Override public int hashCode() { - return Objects.hash(amount, merchantAccount, paymentMethod, recurringDetailReference, reference, shopperInteraction, shopperReference, store); + return Objects.hash( + amount, + merchantAccount, + paymentMethod, + recurringDetailReference, + reference, + shopperInteraction, + shopperReference, + store); } @Override @@ -411,7 +521,9 @@ public String toString() { sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" shopperInteraction: ").append(toIndentedString(shopperInteraction)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); @@ -421,8 +533,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -431,21 +542,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of StoredValueIssueRequest given an JSON string * * @param jsonString JSON string * @return An instance of StoredValueIssueRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to StoredValueIssueRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * StoredValueIssueRequest */ public static StoredValueIssueRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoredValueIssueRequest.class); } -/** - * Convert an instance of StoredValueIssueRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of StoredValueIssueRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueIssueResponse.java b/src/main/java/com/adyen/model/storedvalue/StoredValueIssueResponse.java index 3ddab7a9a..399fa3820 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueIssueResponse.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueIssueResponse.java @@ -2,34 +2,28 @@ * Adyen Stored Value API * * The version of the OpenAPI document: 46 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.storedvalue; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.storedvalue.Amount; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * StoredValueIssueResponse - */ +/** StoredValueIssueResponse */ @JsonPropertyOrder({ StoredValueIssueResponse.JSON_PROPERTY_AUTH_CODE, StoredValueIssueResponse.JSON_PROPERTY_CURRENT_BALANCE, @@ -39,7 +33,6 @@ StoredValueIssueResponse.JSON_PROPERTY_RESULT_CODE, StoredValueIssueResponse.JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON }) - public class StoredValueIssueResponse { public static final String JSON_PROPERTY_AUTH_CODE = "authCode"; private String authCode; @@ -57,10 +50,14 @@ public class StoredValueIssueResponse { private String refusalReason; /** - * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed + * successfully. * **Refused** – The operation was refused. The reason is given in the + * `refusalReason` field. * **Error** – There was an error when the operation was + * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – + * The amount on the payment method is lower than the amount given in the request. Only applicable + * to balance checks. */ public enum ResultCodeEnum { - SUCCESS(String.valueOf("Success")), REFUSED(String.valueOf("Refused")), @@ -74,7 +71,7 @@ public enum ResultCodeEnum { private String value; ResultCodeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -95,7 +92,11 @@ public static ResultCodeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ResultCodeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResultCodeEnum.values())); + LOG.warning( + "ResultCodeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ResultCodeEnum.values())); return null; } } @@ -106,13 +107,15 @@ public static ResultCodeEnum fromValue(String value) { public static final String JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON = "thirdPartyRefusalReason"; private String thirdPartyRefusalReason; - public StoredValueIssueResponse() { - } + public StoredValueIssueResponse() {} /** - * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * Authorisation code: * When the payment is authorised, this field holds the authorisation code + * for the payment. * When the payment is not authorised, this field is empty. * - * @param authCode Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * @param authCode Authorisation code: * When the payment is authorised, this field holds the + * authorisation code for the payment. * When the payment is not authorised, this field is + * empty. * @return the current {@code StoredValueIssueResponse} instance, allowing for method chaining */ public StoredValueIssueResponse authCode(String authCode) { @@ -121,8 +124,12 @@ public StoredValueIssueResponse authCode(String authCode) { } /** - * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. - * @return authCode Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * Authorisation code: * When the payment is authorised, this field holds the authorisation code + * for the payment. * When the payment is not authorised, this field is empty. + * + * @return authCode Authorisation code: * When the payment is authorised, this field holds the + * authorisation code for the payment. * When the payment is not authorised, this field is + * empty. */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -131,9 +138,12 @@ public String getAuthCode() { } /** - * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * Authorisation code: * When the payment is authorised, this field holds the authorisation code + * for the payment. * When the payment is not authorised, this field is empty. * - * @param authCode Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * @param authCode Authorisation code: * When the payment is authorised, this field holds the + * authorisation code for the payment. * When the payment is not authorised, this field is + * empty. */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,7 +154,7 @@ public void setAuthCode(String authCode) { /** * currentBalance * - * @param currentBalance + * @param currentBalance * @return the current {@code StoredValueIssueResponse} instance, allowing for method chaining */ public StoredValueIssueResponse currentBalance(Amount currentBalance) { @@ -154,7 +164,8 @@ public StoredValueIssueResponse currentBalance(Amount currentBalance) { /** * Get currentBalance - * @return currentBalance + * + * @return currentBalance */ @JsonProperty(JSON_PROPERTY_CURRENT_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -165,7 +176,7 @@ public Amount getCurrentBalance() { /** * currentBalance * - * @param currentBalance + * @param currentBalance */ @JsonProperty(JSON_PROPERTY_CURRENT_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -174,9 +185,11 @@ public void setCurrentBalance(Amount currentBalance) { } /** - * The collection that contains the type of the payment method and its specific information if available + * The collection that contains the type of the payment method and its specific information if + * available * - * @param paymentMethod The collection that contains the type of the payment method and its specific information if available + * @param paymentMethod The collection that contains the type of the payment method and its + * specific information if available * @return the current {@code StoredValueIssueResponse} instance, allowing for method chaining */ public StoredValueIssueResponse paymentMethod(Map paymentMethod) { @@ -193,8 +206,11 @@ public StoredValueIssueResponse putPaymentMethodItem(String key, String paymentM } /** - * The collection that contains the type of the payment method and its specific information if available - * @return paymentMethod The collection that contains the type of the payment method and its specific information if available + * The collection that contains the type of the payment method and its specific information if + * available + * + * @return paymentMethod The collection that contains the type of the payment method and its + * specific information if available */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -203,9 +219,11 @@ public Map getPaymentMethod() { } /** - * The collection that contains the type of the payment method and its specific information if available + * The collection that contains the type of the payment method and its specific information if + * available * - * @param paymentMethod The collection that contains the type of the payment method and its specific information if available + * @param paymentMethod The collection that contains the type of the payment method and its + * specific information if available */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,9 +232,12 @@ public void setPaymentMethod(Map paymentMethod) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value + * is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @param pspReference Adyen's 16-character string reference associated with the + * transaction/request. This value is globally unique; quote it when communicating with us + * about this request. * @return the current {@code StoredValueIssueResponse} instance, allowing for method chaining */ public StoredValueIssueResponse pspReference(String pspReference) { @@ -225,8 +246,12 @@ public StoredValueIssueResponse pspReference(String pspReference) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. - * @return pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value + * is globally unique; quote it when communicating with us about this request. + * + * @return pspReference Adyen's 16-character string reference associated with the + * transaction/request. This value is globally unique; quote it when communicating with us + * about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -235,9 +260,12 @@ public String getPspReference() { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value + * is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @param pspReference Adyen's 16-character string reference associated with the + * transaction/request. This value is globally unique; quote it when communicating with us + * about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -246,9 +274,14 @@ public void setPspReference(String pspReference) { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason + * for the refusal or a description of the error. When a transaction fails, the authorisation + * response includes `resultCode` and `refusalReason` values. * - * @param refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * @param refusalReason If the transaction is refused or an error occurs, this field holds + * Adyen's mapped reason for the refusal or a description of the error. When a transaction + * fails, the authorisation response includes `resultCode` and + * `refusalReason` values. * @return the current {@code StoredValueIssueResponse} instance, allowing for method chaining */ public StoredValueIssueResponse refusalReason(String refusalReason) { @@ -257,8 +290,14 @@ public StoredValueIssueResponse refusalReason(String refusalReason) { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. - * @return refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason + * for the refusal or a description of the error. When a transaction fails, the authorisation + * response includes `resultCode` and `refusalReason` values. + * + * @return refusalReason If the transaction is refused or an error occurs, this field holds + * Adyen's mapped reason for the refusal or a description of the error. When a transaction + * fails, the authorisation response includes `resultCode` and + * `refusalReason` values. */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -267,9 +306,14 @@ public String getRefusalReason() { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason + * for the refusal or a description of the error. When a transaction fails, the authorisation + * response includes `resultCode` and `refusalReason` values. * - * @param refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * @param refusalReason If the transaction is refused or an error occurs, this field holds + * Adyen's mapped reason for the refusal or a description of the error. When a transaction + * fails, the authorisation response includes `resultCode` and + * `refusalReason` values. */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -278,9 +322,19 @@ public void setRefusalReason(String refusalReason) { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed + * successfully. * **Refused** – The operation was refused. The reason is given in the + * `refusalReason` field. * **Error** – There was an error when the operation was + * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – + * The amount on the payment method is lower than the amount given in the request. Only applicable + * to balance checks. * - * @param resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * @param resultCode The result of the payment. Possible values: * **Success** – The operation has + * been completed successfully. * **Refused** – The operation was refused. The reason is given + * in the `refusalReason` field. * **Error** – There was an error when the operation + * was processed. The reason is given in the `refusalReason` field. * + * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in + * the request. Only applicable to balance checks. * @return the current {@code StoredValueIssueResponse} instance, allowing for method chaining */ public StoredValueIssueResponse resultCode(ResultCodeEnum resultCode) { @@ -289,8 +343,19 @@ public StoredValueIssueResponse resultCode(ResultCodeEnum resultCode) { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. - * @return resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed + * successfully. * **Refused** – The operation was refused. The reason is given in the + * `refusalReason` field. * **Error** – There was an error when the operation was + * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – + * The amount on the payment method is lower than the amount given in the request. Only applicable + * to balance checks. + * + * @return resultCode The result of the payment. Possible values: * **Success** – The operation + * has been completed successfully. * **Refused** – The operation was refused. The reason is + * given in the `refusalReason` field. * **Error** – There was an error when the + * operation was processed. The reason is given in the `refusalReason` field. * + * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in + * the request. Only applicable to balance checks. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -299,9 +364,19 @@ public ResultCodeEnum getResultCode() { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed + * successfully. * **Refused** – The operation was refused. The reason is given in the + * `refusalReason` field. * **Error** – There was an error when the operation was + * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – + * The amount on the payment method is lower than the amount given in the request. Only applicable + * to balance checks. * - * @param resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * @param resultCode The result of the payment. Possible values: * **Success** – The operation has + * been completed successfully. * **Refused** – The operation was refused. The reason is given + * in the `refusalReason` field. * **Error** – There was an error when the operation + * was processed. The reason is given in the `refusalReason` field. * + * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in + * the request. Only applicable to balance checks. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -312,7 +387,8 @@ public void setResultCode(ResultCodeEnum resultCode) { /** * Raw refusal reason received from the third party, where available * - * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where available + * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where + * available * @return the current {@code StoredValueIssueResponse} instance, allowing for method chaining */ public StoredValueIssueResponse thirdPartyRefusalReason(String thirdPartyRefusalReason) { @@ -322,7 +398,9 @@ public StoredValueIssueResponse thirdPartyRefusalReason(String thirdPartyRefusal /** * Raw refusal reason received from the third party, where available - * @return thirdPartyRefusalReason Raw refusal reason received from the third party, where available + * + * @return thirdPartyRefusalReason Raw refusal reason received from the third party, where + * available */ @JsonProperty(JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -333,7 +411,8 @@ public String getThirdPartyRefusalReason() { /** * Raw refusal reason received from the third party, where available * - * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where available + * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where + * available */ @JsonProperty(JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -341,9 +420,7 @@ public void setThirdPartyRefusalReason(String thirdPartyRefusalReason) { this.thirdPartyRefusalReason = thirdPartyRefusalReason; } - /** - * Return true if this StoredValueIssueResponse object is equal to o. - */ + /** Return true if this StoredValueIssueResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -353,18 +430,26 @@ public boolean equals(Object o) { return false; } StoredValueIssueResponse storedValueIssueResponse = (StoredValueIssueResponse) o; - return Objects.equals(this.authCode, storedValueIssueResponse.authCode) && - Objects.equals(this.currentBalance, storedValueIssueResponse.currentBalance) && - Objects.equals(this.paymentMethod, storedValueIssueResponse.paymentMethod) && - Objects.equals(this.pspReference, storedValueIssueResponse.pspReference) && - Objects.equals(this.refusalReason, storedValueIssueResponse.refusalReason) && - Objects.equals(this.resultCode, storedValueIssueResponse.resultCode) && - Objects.equals(this.thirdPartyRefusalReason, storedValueIssueResponse.thirdPartyRefusalReason); + return Objects.equals(this.authCode, storedValueIssueResponse.authCode) + && Objects.equals(this.currentBalance, storedValueIssueResponse.currentBalance) + && Objects.equals(this.paymentMethod, storedValueIssueResponse.paymentMethod) + && Objects.equals(this.pspReference, storedValueIssueResponse.pspReference) + && Objects.equals(this.refusalReason, storedValueIssueResponse.refusalReason) + && Objects.equals(this.resultCode, storedValueIssueResponse.resultCode) + && Objects.equals( + this.thirdPartyRefusalReason, storedValueIssueResponse.thirdPartyRefusalReason); } @Override public int hashCode() { - return Objects.hash(authCode, currentBalance, paymentMethod, pspReference, refusalReason, resultCode, thirdPartyRefusalReason); + return Objects.hash( + authCode, + currentBalance, + paymentMethod, + pspReference, + refusalReason, + resultCode, + thirdPartyRefusalReason); } @Override @@ -377,14 +462,15 @@ public String toString() { sb.append(" pspReference: ").append(toIndentedString(pspReference)).append("\n"); sb.append(" refusalReason: ").append(toIndentedString(refusalReason)).append("\n"); sb.append(" resultCode: ").append(toIndentedString(resultCode)).append("\n"); - sb.append(" thirdPartyRefusalReason: ").append(toIndentedString(thirdPartyRefusalReason)).append("\n"); + sb.append(" thirdPartyRefusalReason: ") + .append(toIndentedString(thirdPartyRefusalReason)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -393,21 +479,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of StoredValueIssueResponse given an JSON string * * @param jsonString JSON string * @return An instance of StoredValueIssueResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to StoredValueIssueResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * StoredValueIssueResponse */ - public static StoredValueIssueResponse fromJson(String jsonString) throws JsonProcessingException { + public static StoredValueIssueResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoredValueIssueResponse.class); } -/** - * Convert an instance of StoredValueIssueResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of StoredValueIssueResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueLoadRequest.java b/src/main/java/com/adyen/model/storedvalue/StoredValueLoadRequest.java index 43d4ce9e8..e910c341f 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueLoadRequest.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueLoadRequest.java @@ -2,34 +2,28 @@ * Adyen Stored Value API * * The version of the OpenAPI document: 46 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.storedvalue; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.storedvalue.Amount; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * StoredValueLoadRequest - */ +/** StoredValueLoadRequest */ @JsonPropertyOrder({ StoredValueLoadRequest.JSON_PROPERTY_AMOUNT, StoredValueLoadRequest.JSON_PROPERTY_LOAD_TYPE, @@ -41,16 +35,12 @@ StoredValueLoadRequest.JSON_PROPERTY_SHOPPER_REFERENCE, StoredValueLoadRequest.JSON_PROPERTY_STORE }) - public class StoredValueLoadRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; - /** - * The type of load you are trying to do, when absent we default to 'Load' - */ + /** The type of load you are trying to do, when absent we default to 'Load' */ public enum LoadTypeEnum { - MERCHANDISERETURN(String.valueOf("merchandiseReturn")), LOAD(String.valueOf("load")); @@ -60,7 +50,7 @@ public enum LoadTypeEnum { private String value; LoadTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -81,7 +71,11 @@ public static LoadTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("LoadTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(LoadTypeEnum.values())); + LOG.warning( + "LoadTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(LoadTypeEnum.values())); return null; } } @@ -102,10 +96,19 @@ public static LoadTypeEnum fromValue(String value) { private String reference; /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. */ public enum ShopperInteractionEnum { - ECOMMERCE(String.valueOf("Ecommerce")), CONTAUTH(String.valueOf("ContAuth")), @@ -119,7 +122,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -140,7 +143,11 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning( + "ShopperInteractionEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -154,13 +161,12 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_STORE = "store"; private String store; - public StoredValueLoadRequest() { - } + public StoredValueLoadRequest() {} /** * amount * - * @param amount + * @param amount * @return the current {@code StoredValueLoadRequest} instance, allowing for method chaining */ public StoredValueLoadRequest amount(Amount amount) { @@ -170,7 +176,8 @@ public StoredValueLoadRequest amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,7 +188,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -202,7 +209,9 @@ public StoredValueLoadRequest loadType(LoadTypeEnum loadType) { /** * The type of load you are trying to do, when absent we default to 'Load' - * @return loadType The type of load you are trying to do, when absent we default to 'Load' + * + * @return loadType The type of load you are trying to do, when absent we default to + * 'Load' */ @JsonProperty(JSON_PROPERTY_LOAD_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,7 +233,8 @@ public void setLoadType(LoadTypeEnum loadType) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. * @return the current {@code StoredValueLoadRequest} instance, allowing for method chaining */ public StoredValueLoadRequest merchantAccount(String merchantAccount) { @@ -234,7 +244,9 @@ public StoredValueLoadRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * @return merchantAccount The merchant account identifier, with which you want to process the transaction. + * + * @return merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -245,7 +257,8 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -254,9 +267,11 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The collection that contains the type of the payment method and its specific information if available + * The collection that contains the type of the payment method and its specific information if + * available * - * @param paymentMethod The collection that contains the type of the payment method and its specific information if available + * @param paymentMethod The collection that contains the type of the payment method and its + * specific information if available * @return the current {@code StoredValueLoadRequest} instance, allowing for method chaining */ public StoredValueLoadRequest paymentMethod(Map paymentMethod) { @@ -273,8 +288,11 @@ public StoredValueLoadRequest putPaymentMethodItem(String key, String paymentMet } /** - * The collection that contains the type of the payment method and its specific information if available - * @return paymentMethod The collection that contains the type of the payment method and its specific information if available + * The collection that contains the type of the payment method and its specific information if + * available + * + * @return paymentMethod The collection that contains the type of the payment method and its + * specific information if available */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -283,9 +301,11 @@ public Map getPaymentMethod() { } /** - * The collection that contains the type of the payment method and its specific information if available + * The collection that contains the type of the payment method and its specific information if + * available * - * @param paymentMethod The collection that contains the type of the payment method and its specific information if available + * @param paymentMethod The collection that contains the type of the payment method and its + * specific information if available */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -296,7 +316,7 @@ public void setPaymentMethod(Map paymentMethod) { /** * recurringDetailReference * - * @param recurringDetailReference + * @param recurringDetailReference * @return the current {@code StoredValueLoadRequest} instance, allowing for method chaining */ public StoredValueLoadRequest recurringDetailReference(String recurringDetailReference) { @@ -306,7 +326,8 @@ public StoredValueLoadRequest recurringDetailReference(String recurringDetailRef /** * Get recurringDetailReference - * @return recurringDetailReference + * + * @return recurringDetailReference */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -317,7 +338,7 @@ public String getRecurringDetailReference() { /** * recurringDetailReference * - * @param recurringDetailReference + * @param recurringDetailReference */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -326,9 +347,15 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. * @return the current {@code StoredValueLoadRequest} instance, allowing for method chaining */ public StoredValueLoadRequest reference(String reference) { @@ -337,8 +364,15 @@ public StoredValueLoadRequest reference(String reference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. - * @return reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. + * + * @return reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -347,9 +381,15 @@ public String getReference() { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -358,9 +398,30 @@ public void setReference(String reference) { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. * @return the current {@code StoredValueLoadRequest} instance, allowing for method chaining */ public StoredValueLoadRequest shopperInteraction(ShopperInteractionEnum shopperInteraction) { @@ -369,8 +430,30 @@ public StoredValueLoadRequest shopperInteraction(ShopperInteractionEnum shopperI } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * @return shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. + * + * @return shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -379,9 +462,30 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -392,7 +496,7 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { /** * shopperReference * - * @param shopperReference + * @param shopperReference * @return the current {@code StoredValueLoadRequest} instance, allowing for method chaining */ public StoredValueLoadRequest shopperReference(String shopperReference) { @@ -402,7 +506,8 @@ public StoredValueLoadRequest shopperReference(String shopperReference) { /** * Get shopperReference - * @return shopperReference + * + * @return shopperReference */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -413,7 +518,7 @@ public String getShopperReference() { /** * shopperReference * - * @param shopperReference + * @param shopperReference */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -434,6 +539,7 @@ public StoredValueLoadRequest store(String store) { /** * The physical store, for which this payment is processed. + * * @return store The physical store, for which this payment is processed. */ @JsonProperty(JSON_PROPERTY_STORE) @@ -453,9 +559,7 @@ public void setStore(String store) { this.store = store; } - /** - * Return true if this StoredValueLoadRequest object is equal to o. - */ + /** Return true if this StoredValueLoadRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -465,20 +569,30 @@ public boolean equals(Object o) { return false; } StoredValueLoadRequest storedValueLoadRequest = (StoredValueLoadRequest) o; - return Objects.equals(this.amount, storedValueLoadRequest.amount) && - Objects.equals(this.loadType, storedValueLoadRequest.loadType) && - Objects.equals(this.merchantAccount, storedValueLoadRequest.merchantAccount) && - Objects.equals(this.paymentMethod, storedValueLoadRequest.paymentMethod) && - Objects.equals(this.recurringDetailReference, storedValueLoadRequest.recurringDetailReference) && - Objects.equals(this.reference, storedValueLoadRequest.reference) && - Objects.equals(this.shopperInteraction, storedValueLoadRequest.shopperInteraction) && - Objects.equals(this.shopperReference, storedValueLoadRequest.shopperReference) && - Objects.equals(this.store, storedValueLoadRequest.store); + return Objects.equals(this.amount, storedValueLoadRequest.amount) + && Objects.equals(this.loadType, storedValueLoadRequest.loadType) + && Objects.equals(this.merchantAccount, storedValueLoadRequest.merchantAccount) + && Objects.equals(this.paymentMethod, storedValueLoadRequest.paymentMethod) + && Objects.equals( + this.recurringDetailReference, storedValueLoadRequest.recurringDetailReference) + && Objects.equals(this.reference, storedValueLoadRequest.reference) + && Objects.equals(this.shopperInteraction, storedValueLoadRequest.shopperInteraction) + && Objects.equals(this.shopperReference, storedValueLoadRequest.shopperReference) + && Objects.equals(this.store, storedValueLoadRequest.store); } @Override public int hashCode() { - return Objects.hash(amount, loadType, merchantAccount, paymentMethod, recurringDetailReference, reference, shopperInteraction, shopperReference, store); + return Objects.hash( + amount, + loadType, + merchantAccount, + paymentMethod, + recurringDetailReference, + reference, + shopperInteraction, + shopperReference, + store); } @Override @@ -489,7 +603,9 @@ public String toString() { sb.append(" loadType: ").append(toIndentedString(loadType)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" shopperInteraction: ").append(toIndentedString(shopperInteraction)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); @@ -499,8 +615,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -509,21 +624,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of StoredValueLoadRequest given an JSON string * * @param jsonString JSON string * @return An instance of StoredValueLoadRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to StoredValueLoadRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * StoredValueLoadRequest */ public static StoredValueLoadRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoredValueLoadRequest.class); } -/** - * Convert an instance of StoredValueLoadRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of StoredValueLoadRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueLoadResponse.java b/src/main/java/com/adyen/model/storedvalue/StoredValueLoadResponse.java index ea5105fd0..e28e92922 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueLoadResponse.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueLoadResponse.java @@ -2,32 +2,26 @@ * Adyen Stored Value API * * The version of the OpenAPI document: 46 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.storedvalue; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.storedvalue.Amount; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * StoredValueLoadResponse - */ +/** StoredValueLoadResponse */ @JsonPropertyOrder({ StoredValueLoadResponse.JSON_PROPERTY_AUTH_CODE, StoredValueLoadResponse.JSON_PROPERTY_CURRENT_BALANCE, @@ -36,7 +30,6 @@ StoredValueLoadResponse.JSON_PROPERTY_RESULT_CODE, StoredValueLoadResponse.JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON }) - public class StoredValueLoadResponse { public static final String JSON_PROPERTY_AUTH_CODE = "authCode"; private String authCode; @@ -51,10 +44,14 @@ public class StoredValueLoadResponse { private String refusalReason; /** - * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed + * successfully. * **Refused** – The operation was refused. The reason is given in the + * `refusalReason` field. * **Error** – There was an error when the operation was + * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – + * The amount on the payment method is lower than the amount given in the request. Only applicable + * to balance checks. */ public enum ResultCodeEnum { - SUCCESS(String.valueOf("Success")), REFUSED(String.valueOf("Refused")), @@ -68,7 +65,7 @@ public enum ResultCodeEnum { private String value; ResultCodeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -89,7 +86,11 @@ public static ResultCodeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ResultCodeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResultCodeEnum.values())); + LOG.warning( + "ResultCodeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ResultCodeEnum.values())); return null; } } @@ -100,13 +101,15 @@ public static ResultCodeEnum fromValue(String value) { public static final String JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON = "thirdPartyRefusalReason"; private String thirdPartyRefusalReason; - public StoredValueLoadResponse() { - } + public StoredValueLoadResponse() {} /** - * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * Authorisation code: * When the payment is authorised, this field holds the authorisation code + * for the payment. * When the payment is not authorised, this field is empty. * - * @param authCode Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * @param authCode Authorisation code: * When the payment is authorised, this field holds the + * authorisation code for the payment. * When the payment is not authorised, this field is + * empty. * @return the current {@code StoredValueLoadResponse} instance, allowing for method chaining */ public StoredValueLoadResponse authCode(String authCode) { @@ -115,8 +118,12 @@ public StoredValueLoadResponse authCode(String authCode) { } /** - * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. - * @return authCode Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * Authorisation code: * When the payment is authorised, this field holds the authorisation code + * for the payment. * When the payment is not authorised, this field is empty. + * + * @return authCode Authorisation code: * When the payment is authorised, this field holds the + * authorisation code for the payment. * When the payment is not authorised, this field is + * empty. */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,9 +132,12 @@ public String getAuthCode() { } /** - * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * Authorisation code: * When the payment is authorised, this field holds the authorisation code + * for the payment. * When the payment is not authorised, this field is empty. * - * @param authCode Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * @param authCode Authorisation code: * When the payment is authorised, this field holds the + * authorisation code for the payment. * When the payment is not authorised, this field is + * empty. */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,7 +148,7 @@ public void setAuthCode(String authCode) { /** * currentBalance * - * @param currentBalance + * @param currentBalance * @return the current {@code StoredValueLoadResponse} instance, allowing for method chaining */ public StoredValueLoadResponse currentBalance(Amount currentBalance) { @@ -148,7 +158,8 @@ public StoredValueLoadResponse currentBalance(Amount currentBalance) { /** * Get currentBalance - * @return currentBalance + * + * @return currentBalance */ @JsonProperty(JSON_PROPERTY_CURRENT_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,7 +170,7 @@ public Amount getCurrentBalance() { /** * currentBalance * - * @param currentBalance + * @param currentBalance */ @JsonProperty(JSON_PROPERTY_CURRENT_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,9 +179,12 @@ public void setCurrentBalance(Amount currentBalance) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value + * is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @param pspReference Adyen's 16-character string reference associated with the + * transaction/request. This value is globally unique; quote it when communicating with us + * about this request. * @return the current {@code StoredValueLoadResponse} instance, allowing for method chaining */ public StoredValueLoadResponse pspReference(String pspReference) { @@ -179,8 +193,12 @@ public StoredValueLoadResponse pspReference(String pspReference) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. - * @return pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value + * is globally unique; quote it when communicating with us about this request. + * + * @return pspReference Adyen's 16-character string reference associated with the + * transaction/request. This value is globally unique; quote it when communicating with us + * about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,9 +207,12 @@ public String getPspReference() { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value + * is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @param pspReference Adyen's 16-character string reference associated with the + * transaction/request. This value is globally unique; quote it when communicating with us + * about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,9 +221,14 @@ public void setPspReference(String pspReference) { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason + * for the refusal or a description of the error. When a transaction fails, the authorisation + * response includes `resultCode` and `refusalReason` values. * - * @param refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * @param refusalReason If the transaction is refused or an error occurs, this field holds + * Adyen's mapped reason for the refusal or a description of the error. When a transaction + * fails, the authorisation response includes `resultCode` and + * `refusalReason` values. * @return the current {@code StoredValueLoadResponse} instance, allowing for method chaining */ public StoredValueLoadResponse refusalReason(String refusalReason) { @@ -211,8 +237,14 @@ public StoredValueLoadResponse refusalReason(String refusalReason) { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. - * @return refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason + * for the refusal or a description of the error. When a transaction fails, the authorisation + * response includes `resultCode` and `refusalReason` values. + * + * @return refusalReason If the transaction is refused or an error occurs, this field holds + * Adyen's mapped reason for the refusal or a description of the error. When a transaction + * fails, the authorisation response includes `resultCode` and + * `refusalReason` values. */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,9 +253,14 @@ public String getRefusalReason() { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason + * for the refusal or a description of the error. When a transaction fails, the authorisation + * response includes `resultCode` and `refusalReason` values. * - * @param refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * @param refusalReason If the transaction is refused or an error occurs, this field holds + * Adyen's mapped reason for the refusal or a description of the error. When a transaction + * fails, the authorisation response includes `resultCode` and + * `refusalReason` values. */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,9 +269,19 @@ public void setRefusalReason(String refusalReason) { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed + * successfully. * **Refused** – The operation was refused. The reason is given in the + * `refusalReason` field. * **Error** – There was an error when the operation was + * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – + * The amount on the payment method is lower than the amount given in the request. Only applicable + * to balance checks. * - * @param resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * @param resultCode The result of the payment. Possible values: * **Success** – The operation has + * been completed successfully. * **Refused** – The operation was refused. The reason is given + * in the `refusalReason` field. * **Error** – There was an error when the operation + * was processed. The reason is given in the `refusalReason` field. * + * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in + * the request. Only applicable to balance checks. * @return the current {@code StoredValueLoadResponse} instance, allowing for method chaining */ public StoredValueLoadResponse resultCode(ResultCodeEnum resultCode) { @@ -243,8 +290,19 @@ public StoredValueLoadResponse resultCode(ResultCodeEnum resultCode) { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. - * @return resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed + * successfully. * **Refused** – The operation was refused. The reason is given in the + * `refusalReason` field. * **Error** – There was an error when the operation was + * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – + * The amount on the payment method is lower than the amount given in the request. Only applicable + * to balance checks. + * + * @return resultCode The result of the payment. Possible values: * **Success** – The operation + * has been completed successfully. * **Refused** – The operation was refused. The reason is + * given in the `refusalReason` field. * **Error** – There was an error when the + * operation was processed. The reason is given in the `refusalReason` field. * + * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in + * the request. Only applicable to balance checks. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -253,9 +311,19 @@ public ResultCodeEnum getResultCode() { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed + * successfully. * **Refused** – The operation was refused. The reason is given in the + * `refusalReason` field. * **Error** – There was an error when the operation was + * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – + * The amount on the payment method is lower than the amount given in the request. Only applicable + * to balance checks. * - * @param resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * @param resultCode The result of the payment. Possible values: * **Success** – The operation has + * been completed successfully. * **Refused** – The operation was refused. The reason is given + * in the `refusalReason` field. * **Error** – There was an error when the operation + * was processed. The reason is given in the `refusalReason` field. * + * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in + * the request. Only applicable to balance checks. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -266,7 +334,8 @@ public void setResultCode(ResultCodeEnum resultCode) { /** * Raw refusal reason received from the third party, where available * - * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where available + * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where + * available * @return the current {@code StoredValueLoadResponse} instance, allowing for method chaining */ public StoredValueLoadResponse thirdPartyRefusalReason(String thirdPartyRefusalReason) { @@ -276,7 +345,9 @@ public StoredValueLoadResponse thirdPartyRefusalReason(String thirdPartyRefusalR /** * Raw refusal reason received from the third party, where available - * @return thirdPartyRefusalReason Raw refusal reason received from the third party, where available + * + * @return thirdPartyRefusalReason Raw refusal reason received from the third party, where + * available */ @JsonProperty(JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -287,7 +358,8 @@ public String getThirdPartyRefusalReason() { /** * Raw refusal reason received from the third party, where available * - * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where available + * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where + * available */ @JsonProperty(JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -295,9 +367,7 @@ public void setThirdPartyRefusalReason(String thirdPartyRefusalReason) { this.thirdPartyRefusalReason = thirdPartyRefusalReason; } - /** - * Return true if this StoredValueLoadResponse object is equal to o. - */ + /** Return true if this StoredValueLoadResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -307,17 +377,19 @@ public boolean equals(Object o) { return false; } StoredValueLoadResponse storedValueLoadResponse = (StoredValueLoadResponse) o; - return Objects.equals(this.authCode, storedValueLoadResponse.authCode) && - Objects.equals(this.currentBalance, storedValueLoadResponse.currentBalance) && - Objects.equals(this.pspReference, storedValueLoadResponse.pspReference) && - Objects.equals(this.refusalReason, storedValueLoadResponse.refusalReason) && - Objects.equals(this.resultCode, storedValueLoadResponse.resultCode) && - Objects.equals(this.thirdPartyRefusalReason, storedValueLoadResponse.thirdPartyRefusalReason); + return Objects.equals(this.authCode, storedValueLoadResponse.authCode) + && Objects.equals(this.currentBalance, storedValueLoadResponse.currentBalance) + && Objects.equals(this.pspReference, storedValueLoadResponse.pspReference) + && Objects.equals(this.refusalReason, storedValueLoadResponse.refusalReason) + && Objects.equals(this.resultCode, storedValueLoadResponse.resultCode) + && Objects.equals( + this.thirdPartyRefusalReason, storedValueLoadResponse.thirdPartyRefusalReason); } @Override public int hashCode() { - return Objects.hash(authCode, currentBalance, pspReference, refusalReason, resultCode, thirdPartyRefusalReason); + return Objects.hash( + authCode, currentBalance, pspReference, refusalReason, resultCode, thirdPartyRefusalReason); } @Override @@ -329,14 +401,15 @@ public String toString() { sb.append(" pspReference: ").append(toIndentedString(pspReference)).append("\n"); sb.append(" refusalReason: ").append(toIndentedString(refusalReason)).append("\n"); sb.append(" resultCode: ").append(toIndentedString(resultCode)).append("\n"); - sb.append(" thirdPartyRefusalReason: ").append(toIndentedString(thirdPartyRefusalReason)).append("\n"); + sb.append(" thirdPartyRefusalReason: ") + .append(toIndentedString(thirdPartyRefusalReason)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -345,21 +418,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of StoredValueLoadResponse given an JSON string * * @param jsonString JSON string * @return An instance of StoredValueLoadResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to StoredValueLoadResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * StoredValueLoadResponse */ public static StoredValueLoadResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoredValueLoadResponse.class); } -/** - * Convert an instance of StoredValueLoadResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of StoredValueLoadResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueStatusChangeRequest.java b/src/main/java/com/adyen/model/storedvalue/StoredValueStatusChangeRequest.java index 197fd2f71..b7fc03187 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueStatusChangeRequest.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueStatusChangeRequest.java @@ -2,34 +2,28 @@ * Adyen Stored Value API * * The version of the OpenAPI document: 46 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.storedvalue; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.storedvalue.Amount; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * StoredValueStatusChangeRequest - */ +/** StoredValueStatusChangeRequest */ @JsonPropertyOrder({ StoredValueStatusChangeRequest.JSON_PROPERTY_AMOUNT, StoredValueStatusChangeRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, @@ -41,7 +35,6 @@ StoredValueStatusChangeRequest.JSON_PROPERTY_STATUS, StoredValueStatusChangeRequest.JSON_PROPERTY_STORE }) - public class StoredValueStatusChangeRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -59,10 +52,19 @@ public class StoredValueStatusChangeRequest { private String reference; /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. */ public enum ShopperInteractionEnum { - ECOMMERCE(String.valueOf("Ecommerce")), CONTAUTH(String.valueOf("ContAuth")), @@ -76,7 +78,7 @@ public enum ShopperInteractionEnum { private String value; ShopperInteractionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -97,7 +99,11 @@ public static ShopperInteractionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ShopperInteractionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ShopperInteractionEnum.values())); + LOG.warning( + "ShopperInteractionEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ShopperInteractionEnum.values())); return null; } } @@ -108,11 +114,8 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference"; private String shopperReference; - /** - * The status you want to change to - */ + /** The status you want to change to */ public enum StatusEnum { - ACTIVE(String.valueOf("active")), INACTIVE(String.valueOf("inactive")); @@ -122,7 +125,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -143,7 +146,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -154,14 +161,14 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STORE = "store"; private String store; - public StoredValueStatusChangeRequest() { - } + public StoredValueStatusChangeRequest() {} /** * amount * - * @param amount - * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method chaining + * @param amount + * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method + * chaining */ public StoredValueStatusChangeRequest amount(Amount amount) { this.amount = amount; @@ -170,7 +177,8 @@ public StoredValueStatusChangeRequest amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,7 +189,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,8 +200,10 @@ public void setAmount(Amount amount) { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. - * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method chaining + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. + * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method + * chaining */ public StoredValueStatusChangeRequest merchantAccount(String merchantAccount) { this.merchantAccount = merchantAccount; @@ -202,7 +212,9 @@ public StoredValueStatusChangeRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * @return merchantAccount The merchant account identifier, with which you want to process the transaction. + * + * @return merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -213,7 +225,8 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -222,10 +235,13 @@ public void setMerchantAccount(String merchantAccount) { } /** - * The collection that contains the type of the payment method and its specific information if available + * The collection that contains the type of the payment method and its specific information if + * available * - * @param paymentMethod The collection that contains the type of the payment method and its specific information if available - * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method chaining + * @param paymentMethod The collection that contains the type of the payment method and its + * specific information if available + * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method + * chaining */ public StoredValueStatusChangeRequest paymentMethod(Map paymentMethod) { this.paymentMethod = paymentMethod; @@ -241,8 +257,11 @@ public StoredValueStatusChangeRequest putPaymentMethodItem(String key, String pa } /** - * The collection that contains the type of the payment method and its specific information if available - * @return paymentMethod The collection that contains the type of the payment method and its specific information if available + * The collection that contains the type of the payment method and its specific information if + * available + * + * @return paymentMethod The collection that contains the type of the payment method and its + * specific information if available */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -251,9 +270,11 @@ public Map getPaymentMethod() { } /** - * The collection that contains the type of the payment method and its specific information if available + * The collection that contains the type of the payment method and its specific information if + * available * - * @param paymentMethod The collection that contains the type of the payment method and its specific information if available + * @param paymentMethod The collection that contains the type of the payment method and its + * specific information if available */ @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -264,8 +285,9 @@ public void setPaymentMethod(Map paymentMethod) { /** * recurringDetailReference * - * @param recurringDetailReference - * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method chaining + * @param recurringDetailReference + * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method + * chaining */ public StoredValueStatusChangeRequest recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; @@ -274,7 +296,8 @@ public StoredValueStatusChangeRequest recurringDetailReference(String recurringD /** * Get recurringDetailReference - * @return recurringDetailReference + * + * @return recurringDetailReference */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -285,7 +308,7 @@ public String getRecurringDetailReference() { /** * recurringDetailReference * - * @param recurringDetailReference + * @param recurringDetailReference */ @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -294,10 +317,17 @@ public void setRecurringDetailReference(String recurringDetailReference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. - * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method chaining + * @param reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method + * chaining */ public StoredValueStatusChangeRequest reference(String reference) { this.reference = reference; @@ -305,8 +335,15 @@ public StoredValueStatusChangeRequest reference(String reference) { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. - * @return reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. + * + * @return reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -315,9 +352,15 @@ public String getReference() { } /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * The reference to uniquely identify a payment. This reference is used in all communication with + * you about the payment status. We recommend using a unique value per payment; however, it is not + * a requirement. If you need to provide multiple references for a transaction, separate them with + * hyphens (\"-\"). Maximum length: 80 characters. * - * @param reference The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * @param reference The reference to uniquely identify a payment. This reference is used in all + * communication with you about the payment status. We recommend using a unique value per + * payment; however, it is not a requirement. If you need to provide multiple references for a + * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -326,19 +369,64 @@ public void setReference(String reference) { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method chaining - */ - public StoredValueStatusChangeRequest shopperInteraction(ShopperInteractionEnum shopperInteraction) { + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. + * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method + * chaining + */ + public StoredValueStatusChangeRequest shopperInteraction( + ShopperInteractionEnum shopperInteraction) { this.shopperInteraction = shopperInteraction; return this; } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - * @return shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. + * + * @return shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -347,9 +435,30 @@ public ShopperInteractionEnum getShopperInteraction() { } /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether + * the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper + * interaction by default. This field has the following possible values: * `Ecommerce` - + * Online transactions where the cardholder is present (online). For better authorisation rates, + * we recommend sending the card security code (CSC) along with the request. * + * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is + * known to the merchant (returning customer). If the shopper is present (online), you can supply + * also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and + * telephone-order transactions where the shopper is in contact with the merchant via email or + * telephone. * `POS` - Point-of-sale transactions where the shopper is physically + * present to make a payment using a secure payment terminal. * - * @param shopperInteraction Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * @param shopperInteraction Specifies the sales channel, through which the shopper gives their + * card details, and whether the shopper is a returning customer. For the web service API, + * Adyen assumes Ecommerce shopper interaction by default. This field has the following + * possible values: * `Ecommerce` - Online transactions where the cardholder is + * present (online). For better authorisation rates, we recommend sending the card security + * code (CSC) along with the request. * `ContAuth` - Card on file and/or + * subscription transactions, where the cardholder is known to the merchant (returning + * customer). If the shopper is present (online), you can supply also the CSC to improve + * authorisation (one-click payment). * `Moto` - Mail-order and telephone-order + * transactions where the shopper is in contact with the merchant via email or telephone. * + * `POS` - Point-of-sale transactions where the shopper is physically present to + * make a payment using a secure payment terminal. */ @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -360,8 +469,9 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { /** * shopperReference * - * @param shopperReference - * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method chaining + * @param shopperReference + * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method + * chaining */ public StoredValueStatusChangeRequest shopperReference(String shopperReference) { this.shopperReference = shopperReference; @@ -370,7 +480,8 @@ public StoredValueStatusChangeRequest shopperReference(String shopperReference) /** * Get shopperReference - * @return shopperReference + * + * @return shopperReference */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -381,7 +492,7 @@ public String getShopperReference() { /** * shopperReference * - * @param shopperReference + * @param shopperReference */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -393,7 +504,8 @@ public void setShopperReference(String shopperReference) { * The status you want to change to * * @param status The status you want to change to - * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method chaining + * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method + * chaining */ public StoredValueStatusChangeRequest status(StatusEnum status) { this.status = status; @@ -402,6 +514,7 @@ public StoredValueStatusChangeRequest status(StatusEnum status) { /** * The status you want to change to + * * @return status The status you want to change to */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -425,7 +538,8 @@ public void setStatus(StatusEnum status) { * The physical store, for which this payment is processed. * * @param store The physical store, for which this payment is processed. - * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method chaining + * @return the current {@code StoredValueStatusChangeRequest} instance, allowing for method + * chaining */ public StoredValueStatusChangeRequest store(String store) { this.store = store; @@ -434,6 +548,7 @@ public StoredValueStatusChangeRequest store(String store) { /** * The physical store, for which this payment is processed. + * * @return store The physical store, for which this payment is processed. */ @JsonProperty(JSON_PROPERTY_STORE) @@ -453,9 +568,7 @@ public void setStore(String store) { this.store = store; } - /** - * Return true if this StoredValueStatusChangeRequest object is equal to o. - */ + /** Return true if this StoredValueStatusChangeRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -464,21 +577,33 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - StoredValueStatusChangeRequest storedValueStatusChangeRequest = (StoredValueStatusChangeRequest) o; - return Objects.equals(this.amount, storedValueStatusChangeRequest.amount) && - Objects.equals(this.merchantAccount, storedValueStatusChangeRequest.merchantAccount) && - Objects.equals(this.paymentMethod, storedValueStatusChangeRequest.paymentMethod) && - Objects.equals(this.recurringDetailReference, storedValueStatusChangeRequest.recurringDetailReference) && - Objects.equals(this.reference, storedValueStatusChangeRequest.reference) && - Objects.equals(this.shopperInteraction, storedValueStatusChangeRequest.shopperInteraction) && - Objects.equals(this.shopperReference, storedValueStatusChangeRequest.shopperReference) && - Objects.equals(this.status, storedValueStatusChangeRequest.status) && - Objects.equals(this.store, storedValueStatusChangeRequest.store); + StoredValueStatusChangeRequest storedValueStatusChangeRequest = + (StoredValueStatusChangeRequest) o; + return Objects.equals(this.amount, storedValueStatusChangeRequest.amount) + && Objects.equals(this.merchantAccount, storedValueStatusChangeRequest.merchantAccount) + && Objects.equals(this.paymentMethod, storedValueStatusChangeRequest.paymentMethod) + && Objects.equals( + this.recurringDetailReference, storedValueStatusChangeRequest.recurringDetailReference) + && Objects.equals(this.reference, storedValueStatusChangeRequest.reference) + && Objects.equals( + this.shopperInteraction, storedValueStatusChangeRequest.shopperInteraction) + && Objects.equals(this.shopperReference, storedValueStatusChangeRequest.shopperReference) + && Objects.equals(this.status, storedValueStatusChangeRequest.status) + && Objects.equals(this.store, storedValueStatusChangeRequest.store); } @Override public int hashCode() { - return Objects.hash(amount, merchantAccount, paymentMethod, recurringDetailReference, reference, shopperInteraction, shopperReference, status, store); + return Objects.hash( + amount, + merchantAccount, + paymentMethod, + recurringDetailReference, + reference, + shopperInteraction, + shopperReference, + status, + store); } @Override @@ -488,7 +613,9 @@ public String toString() { sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n"); - sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" shopperInteraction: ").append(toIndentedString(shopperInteraction)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); @@ -499,8 +626,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -509,21 +635,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of StoredValueStatusChangeRequest given an JSON string * * @param jsonString JSON string * @return An instance of StoredValueStatusChangeRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to StoredValueStatusChangeRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * StoredValueStatusChangeRequest */ - public static StoredValueStatusChangeRequest fromJson(String jsonString) throws JsonProcessingException { + public static StoredValueStatusChangeRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoredValueStatusChangeRequest.class); } -/** - * Convert an instance of StoredValueStatusChangeRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of StoredValueStatusChangeRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueStatusChangeResponse.java b/src/main/java/com/adyen/model/storedvalue/StoredValueStatusChangeResponse.java index 1d20f37b5..b319e6432 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueStatusChangeResponse.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueStatusChangeResponse.java @@ -2,32 +2,26 @@ * Adyen Stored Value API * * The version of the OpenAPI document: 46 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.storedvalue; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.storedvalue.Amount; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * StoredValueStatusChangeResponse - */ +/** StoredValueStatusChangeResponse */ @JsonPropertyOrder({ StoredValueStatusChangeResponse.JSON_PROPERTY_AUTH_CODE, StoredValueStatusChangeResponse.JSON_PROPERTY_CURRENT_BALANCE, @@ -36,7 +30,6 @@ StoredValueStatusChangeResponse.JSON_PROPERTY_RESULT_CODE, StoredValueStatusChangeResponse.JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON }) - public class StoredValueStatusChangeResponse { public static final String JSON_PROPERTY_AUTH_CODE = "authCode"; private String authCode; @@ -51,10 +44,14 @@ public class StoredValueStatusChangeResponse { private String refusalReason; /** - * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed + * successfully. * **Refused** – The operation was refused. The reason is given in the + * `refusalReason` field. * **Error** – There was an error when the operation was + * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – + * The amount on the payment method is lower than the amount given in the request. Only applicable + * to balance checks. */ public enum ResultCodeEnum { - SUCCESS(String.valueOf("Success")), REFUSED(String.valueOf("Refused")), @@ -68,7 +65,7 @@ public enum ResultCodeEnum { private String value; ResultCodeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -89,7 +86,11 @@ public static ResultCodeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ResultCodeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResultCodeEnum.values())); + LOG.warning( + "ResultCodeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ResultCodeEnum.values())); return null; } } @@ -100,14 +101,17 @@ public static ResultCodeEnum fromValue(String value) { public static final String JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON = "thirdPartyRefusalReason"; private String thirdPartyRefusalReason; - public StoredValueStatusChangeResponse() { - } + public StoredValueStatusChangeResponse() {} /** - * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * Authorisation code: * When the payment is authorised, this field holds the authorisation code + * for the payment. * When the payment is not authorised, this field is empty. * - * @param authCode Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. - * @return the current {@code StoredValueStatusChangeResponse} instance, allowing for method chaining + * @param authCode Authorisation code: * When the payment is authorised, this field holds the + * authorisation code for the payment. * When the payment is not authorised, this field is + * empty. + * @return the current {@code StoredValueStatusChangeResponse} instance, allowing for method + * chaining */ public StoredValueStatusChangeResponse authCode(String authCode) { this.authCode = authCode; @@ -115,8 +119,12 @@ public StoredValueStatusChangeResponse authCode(String authCode) { } /** - * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. - * @return authCode Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * Authorisation code: * When the payment is authorised, this field holds the authorisation code + * for the payment. * When the payment is not authorised, this field is empty. + * + * @return authCode Authorisation code: * When the payment is authorised, this field holds the + * authorisation code for the payment. * When the payment is not authorised, this field is + * empty. */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,9 +133,12 @@ public String getAuthCode() { } /** - * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * Authorisation code: * When the payment is authorised, this field holds the authorisation code + * for the payment. * When the payment is not authorised, this field is empty. * - * @param authCode Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + * @param authCode Authorisation code: * When the payment is authorised, this field holds the + * authorisation code for the payment. * When the payment is not authorised, this field is + * empty. */ @JsonProperty(JSON_PROPERTY_AUTH_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,8 +149,9 @@ public void setAuthCode(String authCode) { /** * currentBalance * - * @param currentBalance - * @return the current {@code StoredValueStatusChangeResponse} instance, allowing for method chaining + * @param currentBalance + * @return the current {@code StoredValueStatusChangeResponse} instance, allowing for method + * chaining */ public StoredValueStatusChangeResponse currentBalance(Amount currentBalance) { this.currentBalance = currentBalance; @@ -148,7 +160,8 @@ public StoredValueStatusChangeResponse currentBalance(Amount currentBalance) { /** * Get currentBalance - * @return currentBalance + * + * @return currentBalance */ @JsonProperty(JSON_PROPERTY_CURRENT_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,7 +172,7 @@ public Amount getCurrentBalance() { /** * currentBalance * - * @param currentBalance + * @param currentBalance */ @JsonProperty(JSON_PROPERTY_CURRENT_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,10 +181,14 @@ public void setCurrentBalance(Amount currentBalance) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value + * is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. - * @return the current {@code StoredValueStatusChangeResponse} instance, allowing for method chaining + * @param pspReference Adyen's 16-character string reference associated with the + * transaction/request. This value is globally unique; quote it when communicating with us + * about this request. + * @return the current {@code StoredValueStatusChangeResponse} instance, allowing for method + * chaining */ public StoredValueStatusChangeResponse pspReference(String pspReference) { this.pspReference = pspReference; @@ -179,8 +196,12 @@ public StoredValueStatusChangeResponse pspReference(String pspReference) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. - * @return pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value + * is globally unique; quote it when communicating with us about this request. + * + * @return pspReference Adyen's 16-character string reference associated with the + * transaction/request. This value is globally unique; quote it when communicating with us + * about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,9 +210,12 @@ public String getPspReference() { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value + * is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @param pspReference Adyen's 16-character string reference associated with the + * transaction/request. This value is globally unique; quote it when communicating with us + * about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,10 +224,16 @@ public void setPspReference(String pspReference) { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason + * for the refusal or a description of the error. When a transaction fails, the authorisation + * response includes `resultCode` and `refusalReason` values. * - * @param refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. - * @return the current {@code StoredValueStatusChangeResponse} instance, allowing for method chaining + * @param refusalReason If the transaction is refused or an error occurs, this field holds + * Adyen's mapped reason for the refusal or a description of the error. When a transaction + * fails, the authorisation response includes `resultCode` and + * `refusalReason` values. + * @return the current {@code StoredValueStatusChangeResponse} instance, allowing for method + * chaining */ public StoredValueStatusChangeResponse refusalReason(String refusalReason) { this.refusalReason = refusalReason; @@ -211,8 +241,14 @@ public StoredValueStatusChangeResponse refusalReason(String refusalReason) { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. - * @return refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason + * for the refusal or a description of the error. When a transaction fails, the authorisation + * response includes `resultCode` and `refusalReason` values. + * + * @return refusalReason If the transaction is refused or an error occurs, this field holds + * Adyen's mapped reason for the refusal or a description of the error. When a transaction + * fails, the authorisation response includes `resultCode` and + * `refusalReason` values. */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -221,9 +257,14 @@ public String getRefusalReason() { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason + * for the refusal or a description of the error. When a transaction fails, the authorisation + * response includes `resultCode` and `refusalReason` values. * - * @param refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * @param refusalReason If the transaction is refused or an error occurs, this field holds + * Adyen's mapped reason for the refusal or a description of the error. When a transaction + * fails, the authorisation response includes `resultCode` and + * `refusalReason` values. */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,10 +273,21 @@ public void setRefusalReason(String refusalReason) { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed + * successfully. * **Refused** – The operation was refused. The reason is given in the + * `refusalReason` field. * **Error** – There was an error when the operation was + * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – + * The amount on the payment method is lower than the amount given in the request. Only applicable + * to balance checks. * - * @param resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. - * @return the current {@code StoredValueStatusChangeResponse} instance, allowing for method chaining + * @param resultCode The result of the payment. Possible values: * **Success** – The operation has + * been completed successfully. * **Refused** – The operation was refused. The reason is given + * in the `refusalReason` field. * **Error** – There was an error when the operation + * was processed. The reason is given in the `refusalReason` field. * + * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in + * the request. Only applicable to balance checks. + * @return the current {@code StoredValueStatusChangeResponse} instance, allowing for method + * chaining */ public StoredValueStatusChangeResponse resultCode(ResultCodeEnum resultCode) { this.resultCode = resultCode; @@ -243,8 +295,19 @@ public StoredValueStatusChangeResponse resultCode(ResultCodeEnum resultCode) { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. - * @return resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed + * successfully. * **Refused** – The operation was refused. The reason is given in the + * `refusalReason` field. * **Error** – There was an error when the operation was + * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – + * The amount on the payment method is lower than the amount given in the request. Only applicable + * to balance checks. + * + * @return resultCode The result of the payment. Possible values: * **Success** – The operation + * has been completed successfully. * **Refused** – The operation was refused. The reason is + * given in the `refusalReason` field. * **Error** – There was an error when the + * operation was processed. The reason is given in the `refusalReason` field. * + * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in + * the request. Only applicable to balance checks. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -253,9 +316,19 @@ public ResultCodeEnum getResultCode() { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed + * successfully. * **Refused** – The operation was refused. The reason is given in the + * `refusalReason` field. * **Error** – There was an error when the operation was + * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – + * The amount on the payment method is lower than the amount given in the request. Only applicable + * to balance checks. * - * @param resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * @param resultCode The result of the payment. Possible values: * **Success** – The operation has + * been completed successfully. * **Refused** – The operation was refused. The reason is given + * in the `refusalReason` field. * **Error** – There was an error when the operation + * was processed. The reason is given in the `refusalReason` field. * + * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in + * the request. Only applicable to balance checks. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -266,8 +339,10 @@ public void setResultCode(ResultCodeEnum resultCode) { /** * Raw refusal reason received from the third party, where available * - * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where available - * @return the current {@code StoredValueStatusChangeResponse} instance, allowing for method chaining + * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where + * available + * @return the current {@code StoredValueStatusChangeResponse} instance, allowing for method + * chaining */ public StoredValueStatusChangeResponse thirdPartyRefusalReason(String thirdPartyRefusalReason) { this.thirdPartyRefusalReason = thirdPartyRefusalReason; @@ -276,7 +351,9 @@ public StoredValueStatusChangeResponse thirdPartyRefusalReason(String thirdParty /** * Raw refusal reason received from the third party, where available - * @return thirdPartyRefusalReason Raw refusal reason received from the third party, where available + * + * @return thirdPartyRefusalReason Raw refusal reason received from the third party, where + * available */ @JsonProperty(JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -287,7 +364,8 @@ public String getThirdPartyRefusalReason() { /** * Raw refusal reason received from the third party, where available * - * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where available + * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where + * available */ @JsonProperty(JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -295,9 +373,7 @@ public void setThirdPartyRefusalReason(String thirdPartyRefusalReason) { this.thirdPartyRefusalReason = thirdPartyRefusalReason; } - /** - * Return true if this StoredValueStatusChangeResponse object is equal to o. - */ + /** Return true if this StoredValueStatusChangeResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -306,18 +382,21 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - StoredValueStatusChangeResponse storedValueStatusChangeResponse = (StoredValueStatusChangeResponse) o; - return Objects.equals(this.authCode, storedValueStatusChangeResponse.authCode) && - Objects.equals(this.currentBalance, storedValueStatusChangeResponse.currentBalance) && - Objects.equals(this.pspReference, storedValueStatusChangeResponse.pspReference) && - Objects.equals(this.refusalReason, storedValueStatusChangeResponse.refusalReason) && - Objects.equals(this.resultCode, storedValueStatusChangeResponse.resultCode) && - Objects.equals(this.thirdPartyRefusalReason, storedValueStatusChangeResponse.thirdPartyRefusalReason); + StoredValueStatusChangeResponse storedValueStatusChangeResponse = + (StoredValueStatusChangeResponse) o; + return Objects.equals(this.authCode, storedValueStatusChangeResponse.authCode) + && Objects.equals(this.currentBalance, storedValueStatusChangeResponse.currentBalance) + && Objects.equals(this.pspReference, storedValueStatusChangeResponse.pspReference) + && Objects.equals(this.refusalReason, storedValueStatusChangeResponse.refusalReason) + && Objects.equals(this.resultCode, storedValueStatusChangeResponse.resultCode) + && Objects.equals( + this.thirdPartyRefusalReason, storedValueStatusChangeResponse.thirdPartyRefusalReason); } @Override public int hashCode() { - return Objects.hash(authCode, currentBalance, pspReference, refusalReason, resultCode, thirdPartyRefusalReason); + return Objects.hash( + authCode, currentBalance, pspReference, refusalReason, resultCode, thirdPartyRefusalReason); } @Override @@ -329,14 +408,15 @@ public String toString() { sb.append(" pspReference: ").append(toIndentedString(pspReference)).append("\n"); sb.append(" refusalReason: ").append(toIndentedString(refusalReason)).append("\n"); sb.append(" resultCode: ").append(toIndentedString(resultCode)).append("\n"); - sb.append(" thirdPartyRefusalReason: ").append(toIndentedString(thirdPartyRefusalReason)).append("\n"); + sb.append(" thirdPartyRefusalReason: ") + .append(toIndentedString(thirdPartyRefusalReason)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -345,21 +425,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of StoredValueStatusChangeResponse given an JSON string * * @param jsonString JSON string * @return An instance of StoredValueStatusChangeResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to StoredValueStatusChangeResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * StoredValueStatusChangeResponse */ - public static StoredValueStatusChangeResponse fromJson(String jsonString) throws JsonProcessingException { + public static StoredValueStatusChangeResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoredValueStatusChangeResponse.class); } -/** - * Convert an instance of StoredValueStatusChangeResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of StoredValueStatusChangeResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueVoidRequest.java b/src/main/java/com/adyen/model/storedvalue/StoredValueVoidRequest.java index bbd98ebe3..fa42095bc 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueVoidRequest.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueVoidRequest.java @@ -2,31 +2,22 @@ * Adyen Stored Value API * * The version of the OpenAPI document: 46 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.storedvalue; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * StoredValueVoidRequest - */ +/** StoredValueVoidRequest */ @JsonPropertyOrder({ StoredValueVoidRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, StoredValueVoidRequest.JSON_PROPERTY_ORIGINAL_REFERENCE, @@ -35,7 +26,6 @@ StoredValueVoidRequest.JSON_PROPERTY_TENDER_REFERENCE, StoredValueVoidRequest.JSON_PROPERTY_UNIQUE_TERMINAL_ID }) - public class StoredValueVoidRequest { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; @@ -55,13 +45,13 @@ public class StoredValueVoidRequest { public static final String JSON_PROPERTY_UNIQUE_TERMINAL_ID = "uniqueTerminalId"; private String uniqueTerminalId; - public StoredValueVoidRequest() { - } + public StoredValueVoidRequest() {} /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. * @return the current {@code StoredValueVoidRequest} instance, allowing for method chaining */ public StoredValueVoidRequest merchantAccount(String merchantAccount) { @@ -71,7 +61,9 @@ public StoredValueVoidRequest merchantAccount(String merchantAccount) { /** * The merchant account identifier, with which you want to process the transaction. - * @return merchantAccount The merchant account identifier, with which you want to process the transaction. + * + * @return merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -82,7 +74,8 @@ public String getMerchantAccount() { /** * The merchant account identifier, with which you want to process the transaction. * - * @param merchantAccount The merchant account identifier, with which you want to process the transaction. + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -103,6 +96,7 @@ public StoredValueVoidRequest originalReference(String originalReference) { /** * The original pspReference of the payment to modify. + * * @return originalReference The original pspReference of the payment to modify. */ @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE) @@ -123,9 +117,11 @@ public void setOriginalReference(String originalReference) { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in + * reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in + * Customer Area and in reports. Maximum length: 80 characters. * @return the current {@code StoredValueVoidRequest} instance, allowing for method chaining */ public StoredValueVoidRequest reference(String reference) { @@ -134,8 +130,11 @@ public StoredValueVoidRequest reference(String reference) { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. - * @return reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in + * reports. Maximum length: 80 characters. + * + * @return reference Your reference for the payment modification. This reference is visible in + * Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,9 +143,11 @@ public String getReference() { } /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * Your reference for the payment modification. This reference is visible in Customer Area and in + * reports. Maximum length: 80 characters. * - * @param reference Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + * @param reference Your reference for the payment modification. This reference is visible in + * Customer Area and in reports. Maximum length: 80 characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,6 +168,7 @@ public StoredValueVoidRequest store(String store) { /** * The physical store, for which this payment is processed. + * * @return store The physical store, for which this payment is processed. */ @JsonProperty(JSON_PROPERTY_STORE) @@ -199,6 +201,7 @@ public StoredValueVoidRequest tenderReference(String tenderReference) { /** * The reference of the tender. + * * @return tenderReference The reference of the tender. */ @JsonProperty(JSON_PROPERTY_TENDER_REFERENCE) @@ -231,6 +234,7 @@ public StoredValueVoidRequest uniqueTerminalId(String uniqueTerminalId) { /** * The unique ID of a POS terminal. + * * @return uniqueTerminalId The unique ID of a POS terminal. */ @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID) @@ -250,9 +254,7 @@ public void setUniqueTerminalId(String uniqueTerminalId) { this.uniqueTerminalId = uniqueTerminalId; } - /** - * Return true if this StoredValueVoidRequest object is equal to o. - */ + /** Return true if this StoredValueVoidRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -262,17 +264,18 @@ public boolean equals(Object o) { return false; } StoredValueVoidRequest storedValueVoidRequest = (StoredValueVoidRequest) o; - return Objects.equals(this.merchantAccount, storedValueVoidRequest.merchantAccount) && - Objects.equals(this.originalReference, storedValueVoidRequest.originalReference) && - Objects.equals(this.reference, storedValueVoidRequest.reference) && - Objects.equals(this.store, storedValueVoidRequest.store) && - Objects.equals(this.tenderReference, storedValueVoidRequest.tenderReference) && - Objects.equals(this.uniqueTerminalId, storedValueVoidRequest.uniqueTerminalId); + return Objects.equals(this.merchantAccount, storedValueVoidRequest.merchantAccount) + && Objects.equals(this.originalReference, storedValueVoidRequest.originalReference) + && Objects.equals(this.reference, storedValueVoidRequest.reference) + && Objects.equals(this.store, storedValueVoidRequest.store) + && Objects.equals(this.tenderReference, storedValueVoidRequest.tenderReference) + && Objects.equals(this.uniqueTerminalId, storedValueVoidRequest.uniqueTerminalId); } @Override public int hashCode() { - return Objects.hash(merchantAccount, originalReference, reference, store, tenderReference, uniqueTerminalId); + return Objects.hash( + merchantAccount, originalReference, reference, store, tenderReference, uniqueTerminalId); } @Override @@ -290,8 +293,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -300,21 +302,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of StoredValueVoidRequest given an JSON string * * @param jsonString JSON string * @return An instance of StoredValueVoidRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to StoredValueVoidRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * StoredValueVoidRequest */ public static StoredValueVoidRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoredValueVoidRequest.class); } -/** - * Convert an instance of StoredValueVoidRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of StoredValueVoidRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueVoidResponse.java b/src/main/java/com/adyen/model/storedvalue/StoredValueVoidResponse.java index ac027dead..72d4252f8 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueVoidResponse.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueVoidResponse.java @@ -2,32 +2,26 @@ * Adyen Stored Value API * * The version of the OpenAPI document: 46 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.storedvalue; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.storedvalue.Amount; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * StoredValueVoidResponse - */ +/** StoredValueVoidResponse */ @JsonPropertyOrder({ StoredValueVoidResponse.JSON_PROPERTY_CURRENT_BALANCE, StoredValueVoidResponse.JSON_PROPERTY_PSP_REFERENCE, @@ -35,7 +29,6 @@ StoredValueVoidResponse.JSON_PROPERTY_RESULT_CODE, StoredValueVoidResponse.JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON }) - public class StoredValueVoidResponse { public static final String JSON_PROPERTY_CURRENT_BALANCE = "currentBalance"; private Amount currentBalance; @@ -47,10 +40,14 @@ public class StoredValueVoidResponse { private String refusalReason; /** - * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed + * successfully. * **Refused** – The operation was refused. The reason is given in the + * `refusalReason` field. * **Error** – There was an error when the operation was + * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – + * The amount on the payment method is lower than the amount given in the request. Only applicable + * to balance checks. */ public enum ResultCodeEnum { - SUCCESS(String.valueOf("Success")), REFUSED(String.valueOf("Refused")), @@ -64,7 +61,7 @@ public enum ResultCodeEnum { private String value; ResultCodeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -85,7 +82,11 @@ public static ResultCodeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ResultCodeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ResultCodeEnum.values())); + LOG.warning( + "ResultCodeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ResultCodeEnum.values())); return null; } } @@ -96,13 +97,12 @@ public static ResultCodeEnum fromValue(String value) { public static final String JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON = "thirdPartyRefusalReason"; private String thirdPartyRefusalReason; - public StoredValueVoidResponse() { - } + public StoredValueVoidResponse() {} /** * currentBalance * - * @param currentBalance + * @param currentBalance * @return the current {@code StoredValueVoidResponse} instance, allowing for method chaining */ public StoredValueVoidResponse currentBalance(Amount currentBalance) { @@ -112,7 +112,8 @@ public StoredValueVoidResponse currentBalance(Amount currentBalance) { /** * Get currentBalance - * @return currentBalance + * + * @return currentBalance */ @JsonProperty(JSON_PROPERTY_CURRENT_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,7 +124,7 @@ public Amount getCurrentBalance() { /** * currentBalance * - * @param currentBalance + * @param currentBalance */ @JsonProperty(JSON_PROPERTY_CURRENT_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,9 +133,12 @@ public void setCurrentBalance(Amount currentBalance) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value + * is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @param pspReference Adyen's 16-character string reference associated with the + * transaction/request. This value is globally unique; quote it when communicating with us + * about this request. * @return the current {@code StoredValueVoidResponse} instance, allowing for method chaining */ public StoredValueVoidResponse pspReference(String pspReference) { @@ -143,8 +147,12 @@ public StoredValueVoidResponse pspReference(String pspReference) { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. - * @return pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value + * is globally unique; quote it when communicating with us about this request. + * + * @return pspReference Adyen's 16-character string reference associated with the + * transaction/request. This value is globally unique; quote it when communicating with us + * about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -153,9 +161,12 @@ public String getPspReference() { } /** - * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * Adyen's 16-character string reference associated with the transaction/request. This value + * is globally unique; quote it when communicating with us about this request. * - * @param pspReference Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + * @param pspReference Adyen's 16-character string reference associated with the + * transaction/request. This value is globally unique; quote it when communicating with us + * about this request. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -164,9 +175,14 @@ public void setPspReference(String pspReference) { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason + * for the refusal or a description of the error. When a transaction fails, the authorisation + * response includes `resultCode` and `refusalReason` values. * - * @param refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * @param refusalReason If the transaction is refused or an error occurs, this field holds + * Adyen's mapped reason for the refusal or a description of the error. When a transaction + * fails, the authorisation response includes `resultCode` and + * `refusalReason` values. * @return the current {@code StoredValueVoidResponse} instance, allowing for method chaining */ public StoredValueVoidResponse refusalReason(String refusalReason) { @@ -175,8 +191,14 @@ public StoredValueVoidResponse refusalReason(String refusalReason) { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. - * @return refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason + * for the refusal or a description of the error. When a transaction fails, the authorisation + * response includes `resultCode` and `refusalReason` values. + * + * @return refusalReason If the transaction is refused or an error occurs, this field holds + * Adyen's mapped reason for the refusal or a description of the error. When a transaction + * fails, the authorisation response includes `resultCode` and + * `refusalReason` values. */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -185,9 +207,14 @@ public String getRefusalReason() { } /** - * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * If the transaction is refused or an error occurs, this field holds Adyen's mapped reason + * for the refusal or a description of the error. When a transaction fails, the authorisation + * response includes `resultCode` and `refusalReason` values. * - * @param refusalReason If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + * @param refusalReason If the transaction is refused or an error occurs, this field holds + * Adyen's mapped reason for the refusal or a description of the error. When a transaction + * fails, the authorisation response includes `resultCode` and + * `refusalReason` values. */ @JsonProperty(JSON_PROPERTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -196,9 +223,19 @@ public void setRefusalReason(String refusalReason) { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed + * successfully. * **Refused** – The operation was refused. The reason is given in the + * `refusalReason` field. * **Error** – There was an error when the operation was + * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – + * The amount on the payment method is lower than the amount given in the request. Only applicable + * to balance checks. * - * @param resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * @param resultCode The result of the payment. Possible values: * **Success** – The operation has + * been completed successfully. * **Refused** – The operation was refused. The reason is given + * in the `refusalReason` field. * **Error** – There was an error when the operation + * was processed. The reason is given in the `refusalReason` field. * + * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in + * the request. Only applicable to balance checks. * @return the current {@code StoredValueVoidResponse} instance, allowing for method chaining */ public StoredValueVoidResponse resultCode(ResultCodeEnum resultCode) { @@ -207,8 +244,19 @@ public StoredValueVoidResponse resultCode(ResultCodeEnum resultCode) { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. - * @return resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed + * successfully. * **Refused** – The operation was refused. The reason is given in the + * `refusalReason` field. * **Error** – There was an error when the operation was + * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – + * The amount on the payment method is lower than the amount given in the request. Only applicable + * to balance checks. + * + * @return resultCode The result of the payment. Possible values: * **Success** – The operation + * has been completed successfully. * **Refused** – The operation was refused. The reason is + * given in the `refusalReason` field. * **Error** – There was an error when the + * operation was processed. The reason is given in the `refusalReason` field. * + * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in + * the request. Only applicable to balance checks. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -217,9 +265,19 @@ public ResultCodeEnum getResultCode() { } /** - * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * The result of the payment. Possible values: * **Success** – The operation has been completed + * successfully. * **Refused** – The operation was refused. The reason is given in the + * `refusalReason` field. * **Error** – There was an error when the operation was + * processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – + * The amount on the payment method is lower than the amount given in the request. Only applicable + * to balance checks. * - * @param resultCode The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + * @param resultCode The result of the payment. Possible values: * **Success** – The operation has + * been completed successfully. * **Refused** – The operation was refused. The reason is given + * in the `refusalReason` field. * **Error** – There was an error when the operation + * was processed. The reason is given in the `refusalReason` field. * + * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in + * the request. Only applicable to balance checks. */ @JsonProperty(JSON_PROPERTY_RESULT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -230,7 +288,8 @@ public void setResultCode(ResultCodeEnum resultCode) { /** * Raw refusal reason received from the third party, where available * - * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where available + * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where + * available * @return the current {@code StoredValueVoidResponse} instance, allowing for method chaining */ public StoredValueVoidResponse thirdPartyRefusalReason(String thirdPartyRefusalReason) { @@ -240,7 +299,9 @@ public StoredValueVoidResponse thirdPartyRefusalReason(String thirdPartyRefusalR /** * Raw refusal reason received from the third party, where available - * @return thirdPartyRefusalReason Raw refusal reason received from the third party, where available + * + * @return thirdPartyRefusalReason Raw refusal reason received from the third party, where + * available */ @JsonProperty(JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -251,7 +312,8 @@ public String getThirdPartyRefusalReason() { /** * Raw refusal reason received from the third party, where available * - * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where available + * @param thirdPartyRefusalReason Raw refusal reason received from the third party, where + * available */ @JsonProperty(JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -259,9 +321,7 @@ public void setThirdPartyRefusalReason(String thirdPartyRefusalReason) { this.thirdPartyRefusalReason = thirdPartyRefusalReason; } - /** - * Return true if this StoredValueVoidResponse object is equal to o. - */ + /** Return true if this StoredValueVoidResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -271,16 +331,18 @@ public boolean equals(Object o) { return false; } StoredValueVoidResponse storedValueVoidResponse = (StoredValueVoidResponse) o; - return Objects.equals(this.currentBalance, storedValueVoidResponse.currentBalance) && - Objects.equals(this.pspReference, storedValueVoidResponse.pspReference) && - Objects.equals(this.refusalReason, storedValueVoidResponse.refusalReason) && - Objects.equals(this.resultCode, storedValueVoidResponse.resultCode) && - Objects.equals(this.thirdPartyRefusalReason, storedValueVoidResponse.thirdPartyRefusalReason); + return Objects.equals(this.currentBalance, storedValueVoidResponse.currentBalance) + && Objects.equals(this.pspReference, storedValueVoidResponse.pspReference) + && Objects.equals(this.refusalReason, storedValueVoidResponse.refusalReason) + && Objects.equals(this.resultCode, storedValueVoidResponse.resultCode) + && Objects.equals( + this.thirdPartyRefusalReason, storedValueVoidResponse.thirdPartyRefusalReason); } @Override public int hashCode() { - return Objects.hash(currentBalance, pspReference, refusalReason, resultCode, thirdPartyRefusalReason); + return Objects.hash( + currentBalance, pspReference, refusalReason, resultCode, thirdPartyRefusalReason); } @Override @@ -291,14 +353,15 @@ public String toString() { sb.append(" pspReference: ").append(toIndentedString(pspReference)).append("\n"); sb.append(" refusalReason: ").append(toIndentedString(refusalReason)).append("\n"); sb.append(" resultCode: ").append(toIndentedString(resultCode)).append("\n"); - sb.append(" thirdPartyRefusalReason: ").append(toIndentedString(thirdPartyRefusalReason)).append("\n"); + sb.append(" thirdPartyRefusalReason: ") + .append(toIndentedString(thirdPartyRefusalReason)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -307,21 +370,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of StoredValueVoidResponse given an JSON string * * @param jsonString JSON string * @return An instance of StoredValueVoidResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to StoredValueVoidResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * StoredValueVoidResponse */ public static StoredValueVoidResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, StoredValueVoidResponse.class); } -/** - * Convert an instance of StoredValueVoidResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of StoredValueVoidResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/tokenizationwebhooks/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/tokenizationwebhooks/AbstractOpenApiSchema.java index f0da495a9..f7361bb8c 100644 --- a/src/main/java/com/adyen/model/tokenizationwebhooks/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/tokenizationwebhooks/AbstractOpenApiSchema.java @@ -2,145 +2,141 @@ * Tokenization webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.tokenizationwebhooks; -import java.util.Objects; -import java.util.Map; -import jakarta.ws.rs.core.GenericType; - import com.fasterxml.jackson.annotation.JsonValue; +import jakarta.ws.rs.core.GenericType; +import java.util.Map; +import java.util.Objects; -/** - * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec - */ +/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() {return instance;} - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) {this.instance = instance;} - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); - } else { - return object.getActualInstance(); - } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() { + return instance; + } + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) { + this.instance = instance; + } + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf + * schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); + } else { + return object.getActualInstance(); } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) && - Objects.equals(this.isNullable, a.isNullable) && - Objects.equals(this.schemaType, a.schemaType); + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; } + return o.toString().replace("\n", "\n "); + } - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); + public boolean equals(Object o) { + if (this == o) { + return true; } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); + if (o == null || getClass() != o.getClass()) { + return false; } - - - -} \ No newline at end of file + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) + && Objects.equals(this.isNullable, a.isNullable) + && Objects.equals(this.schemaType, a.schemaType); + } + + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); + } + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); + } +} diff --git a/src/main/java/com/adyen/model/tokenizationwebhooks/JSON.java b/src/main/java/com/adyen/model/tokenizationwebhooks/JSON.java index 4b173f9d0..56f45af8e 100644 --- a/src/main/java/com/adyen/model/tokenizationwebhooks/JSON.java +++ b/src/main/java/com/adyen/model/tokenizationwebhooks/JSON.java @@ -1,21 +1,18 @@ package com.adyen.model.tokenizationwebhooks; -import com.adyen.serializer.ByteArraySerializer; import com.adyen.serializer.ByteArrayDeserializer; +import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import com.adyen.model.tokenizationwebhooks.*; - +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -40,6 +37,7 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. + * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -56,11 +54,13 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { return mapper; } + public static ObjectMapper getMapper() { + return mapper; + } /** - * Returns the target model class that should be used to deserialize the input data. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,9 +73,7 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** - * Helper class to register the discriminator mappings. - */ + /** Helper class to register the discriminator mappings. */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -117,9 +115,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. - * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. This + * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -164,13 +162,14 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, - * so it's not possible to use the instanceof keyword. + *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so + * it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf( + Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -194,59 +193,58 @@ public static boolean isInstanceOf(Class modelClass, Object inst, Set, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); + /** A map of discriminators for all model classes. */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = + new HashMap, ClassDiscriminatorMapping>(); - /** - * A map of oneOf/anyOf descendants for each model class. - */ + /** A map of oneOf/anyOf descendants for each model class. */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator( + Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = + new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants(Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants( + Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static - { + static { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/tokenizationwebhooks/RecurringToken.java b/src/main/java/com/adyen/model/tokenizationwebhooks/RecurringToken.java index df913d390..ac1530659 100644 --- a/src/main/java/com/adyen/model/tokenizationwebhooks/RecurringToken.java +++ b/src/main/java/com/adyen/model/tokenizationwebhooks/RecurringToken.java @@ -2,38 +2,28 @@ * Tokenization webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.tokenizationwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * RecurringToken - */ +/** RecurringToken */ @JsonPropertyOrder({ RecurringToken.JSON_PROPERTY_MERCHANT_ACCOUNT, RecurringToken.JSON_PROPERTY_SHOPPER_REFERENCE, RecurringToken.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, RecurringToken.JSON_PROPERTY_TYPE }) - public class RecurringToken { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; @@ -47,13 +37,13 @@ public class RecurringToken { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public RecurringToken() { - } + public RecurringToken() {} /** * The identifier of the merchant account related to the event that triggered the webhook. * - * @param merchantAccount The identifier of the merchant account related to the event that triggered the webhook. + * @param merchantAccount The identifier of the merchant account related to the event that + * triggered the webhook. * @return the current {@code RecurringToken} instance, allowing for method chaining */ public RecurringToken merchantAccount(String merchantAccount) { @@ -63,7 +53,9 @@ public RecurringToken merchantAccount(String merchantAccount) { /** * The identifier of the merchant account related to the event that triggered the webhook. - * @return merchantAccount The identifier of the merchant account related to the event that triggered the webhook. + * + * @return merchantAccount The identifier of the merchant account related to the event that + * triggered the webhook. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -74,7 +66,8 @@ public String getMerchantAccount() { /** * The identifier of the merchant account related to the event that triggered the webhook. * - * @param merchantAccount The identifier of the merchant account related to the event that triggered the webhook. + * @param merchantAccount The identifier of the merchant account related to the event that + * triggered the webhook. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -85,7 +78,8 @@ public void setMerchantAccount(String merchantAccount) { /** * Your unique shopper reference that is associated with the `storedPaymentMethodId`. * - * @param shopperReference Your unique shopper reference that is associated with the `storedPaymentMethodId`. + * @param shopperReference Your unique shopper reference that is associated with the + * `storedPaymentMethodId`. * @return the current {@code RecurringToken} instance, allowing for method chaining */ public RecurringToken shopperReference(String shopperReference) { @@ -95,7 +89,9 @@ public RecurringToken shopperReference(String shopperReference) { /** * Your unique shopper reference that is associated with the `storedPaymentMethodId`. - * @return shopperReference Your unique shopper reference that is associated with the `storedPaymentMethodId`. + * + * @return shopperReference Your unique shopper reference that is associated with the + * `storedPaymentMethodId`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,7 +102,8 @@ public String getShopperReference() { /** * Your unique shopper reference that is associated with the `storedPaymentMethodId`. * - * @param shopperReference Your unique shopper reference that is associated with the `storedPaymentMethodId`. + * @param shopperReference Your unique shopper reference that is associated with the + * `storedPaymentMethodId`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,6 +124,7 @@ public RecurringToken storedPaymentMethodId(String storedPaymentMethodId) { /** * The ID of the token. + * * @return storedPaymentMethodId The ID of the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @@ -159,6 +157,7 @@ public RecurringToken type(String type) { /** * The type of the payment method. + * * @return type The type of the payment method. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -178,9 +177,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this RecurringToken object is equal to o. - */ + /** Return true if this RecurringToken object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -190,10 +187,10 @@ public boolean equals(Object o) { return false; } RecurringToken recurringToken = (RecurringToken) o; - return Objects.equals(this.merchantAccount, recurringToken.merchantAccount) && - Objects.equals(this.shopperReference, recurringToken.shopperReference) && - Objects.equals(this.storedPaymentMethodId, recurringToken.storedPaymentMethodId) && - Objects.equals(this.type, recurringToken.type); + return Objects.equals(this.merchantAccount, recurringToken.merchantAccount) + && Objects.equals(this.shopperReference, recurringToken.shopperReference) + && Objects.equals(this.storedPaymentMethodId, recurringToken.storedPaymentMethodId) + && Objects.equals(this.type, recurringToken.type); } @Override @@ -207,15 +204,16 @@ public String toString() { sb.append("class RecurringToken {\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,7 +222,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RecurringToken given an JSON string * * @param jsonString JSON string @@ -234,11 +232,12 @@ private String toIndentedString(Object o) { public static RecurringToken fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RecurringToken.class); } -/** - * Convert an instance of RecurringToken to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RecurringToken to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/tokenizationwebhooks/RecurringTokenStoreOperation.java b/src/main/java/com/adyen/model/tokenizationwebhooks/RecurringTokenStoreOperation.java index 0ef7c3638..36dc749db 100644 --- a/src/main/java/com/adyen/model/tokenizationwebhooks/RecurringTokenStoreOperation.java +++ b/src/main/java/com/adyen/model/tokenizationwebhooks/RecurringTokenStoreOperation.java @@ -2,31 +2,22 @@ * Tokenization webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.tokenizationwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * RecurringTokenStoreOperation - */ +/** RecurringTokenStoreOperation */ @JsonPropertyOrder({ RecurringTokenStoreOperation.JSON_PROPERTY_MERCHANT_ACCOUNT, RecurringTokenStoreOperation.JSON_PROPERTY_OPERATION, @@ -34,7 +25,6 @@ RecurringTokenStoreOperation.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, RecurringTokenStoreOperation.JSON_PROPERTY_TYPE }) - public class RecurringTokenStoreOperation { public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; private String merchantAccount; @@ -51,13 +41,13 @@ public class RecurringTokenStoreOperation { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public RecurringTokenStoreOperation() { - } + public RecurringTokenStoreOperation() {} /** * The identifier of the merchant account related to the event that triggered the webhook. * - * @param merchantAccount The identifier of the merchant account related to the event that triggered the webhook. + * @param merchantAccount The identifier of the merchant account related to the event that + * triggered the webhook. * @return the current {@code RecurringTokenStoreOperation} instance, allowing for method chaining */ public RecurringTokenStoreOperation merchantAccount(String merchantAccount) { @@ -67,7 +57,9 @@ public RecurringTokenStoreOperation merchantAccount(String merchantAccount) { /** * The identifier of the merchant account related to the event that triggered the webhook. - * @return merchantAccount The identifier of the merchant account related to the event that triggered the webhook. + * + * @return merchantAccount The identifier of the merchant account related to the event that + * triggered the webhook. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -78,7 +70,8 @@ public String getMerchantAccount() { /** * The identifier of the merchant account related to the event that triggered the webhook. * - * @param merchantAccount The identifier of the merchant account related to the event that triggered the webhook. + * @param merchantAccount The identifier of the merchant account related to the event that + * triggered the webhook. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -89,7 +82,8 @@ public void setMerchantAccount(String merchantAccount) { /** * A text description that provides details about the operation, intended for audit purposes. * - * @param operation A text description that provides details about the operation, intended for audit purposes. + * @param operation A text description that provides details about the operation, intended for + * audit purposes. * @return the current {@code RecurringTokenStoreOperation} instance, allowing for method chaining */ public RecurringTokenStoreOperation operation(String operation) { @@ -99,7 +93,9 @@ public RecurringTokenStoreOperation operation(String operation) { /** * A text description that provides details about the operation, intended for audit purposes. - * @return operation A text description that provides details about the operation, intended for audit purposes. + * + * @return operation A text description that provides details about the operation, intended for + * audit purposes. */ @JsonProperty(JSON_PROPERTY_OPERATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,7 +106,8 @@ public String getOperation() { /** * A text description that provides details about the operation, intended for audit purposes. * - * @param operation A text description that provides details about the operation, intended for audit purposes. + * @param operation A text description that provides details about the operation, intended for + * audit purposes. */ @JsonProperty(JSON_PROPERTY_OPERATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -121,7 +118,8 @@ public void setOperation(String operation) { /** * Your unique shopper reference that is associated with the `storedPaymentMethodId`. * - * @param shopperReference Your unique shopper reference that is associated with the `storedPaymentMethodId`. + * @param shopperReference Your unique shopper reference that is associated with the + * `storedPaymentMethodId`. * @return the current {@code RecurringTokenStoreOperation} instance, allowing for method chaining */ public RecurringTokenStoreOperation shopperReference(String shopperReference) { @@ -131,7 +129,9 @@ public RecurringTokenStoreOperation shopperReference(String shopperReference) { /** * Your unique shopper reference that is associated with the `storedPaymentMethodId`. - * @return shopperReference Your unique shopper reference that is associated with the `storedPaymentMethodId`. + * + * @return shopperReference Your unique shopper reference that is associated with the + * `storedPaymentMethodId`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,7 +142,8 @@ public String getShopperReference() { /** * Your unique shopper reference that is associated with the `storedPaymentMethodId`. * - * @param shopperReference Your unique shopper reference that is associated with the `storedPaymentMethodId`. + * @param shopperReference Your unique shopper reference that is associated with the + * `storedPaymentMethodId`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,6 +164,7 @@ public RecurringTokenStoreOperation storedPaymentMethodId(String storedPaymentMe /** * The ID of the token. + * * @return storedPaymentMethodId The ID of the token. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @@ -195,6 +197,7 @@ public RecurringTokenStoreOperation type(String type) { /** * The type of the payment method. + * * @return type The type of the payment method. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -214,9 +217,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this RecurringTokenStoreOperation object is equal to o. - */ + /** Return true if this RecurringTokenStoreOperation object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -226,11 +227,12 @@ public boolean equals(Object o) { return false; } RecurringTokenStoreOperation recurringTokenStoreOperation = (RecurringTokenStoreOperation) o; - return Objects.equals(this.merchantAccount, recurringTokenStoreOperation.merchantAccount) && - Objects.equals(this.operation, recurringTokenStoreOperation.operation) && - Objects.equals(this.shopperReference, recurringTokenStoreOperation.shopperReference) && - Objects.equals(this.storedPaymentMethodId, recurringTokenStoreOperation.storedPaymentMethodId) && - Objects.equals(this.type, recurringTokenStoreOperation.type); + return Objects.equals(this.merchantAccount, recurringTokenStoreOperation.merchantAccount) + && Objects.equals(this.operation, recurringTokenStoreOperation.operation) + && Objects.equals(this.shopperReference, recurringTokenStoreOperation.shopperReference) + && Objects.equals( + this.storedPaymentMethodId, recurringTokenStoreOperation.storedPaymentMethodId) + && Objects.equals(this.type, recurringTokenStoreOperation.type); } @Override @@ -245,15 +247,16 @@ public String toString() { sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" operation: ").append(toIndentedString(operation)).append("\n"); sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -262,21 +265,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RecurringTokenStoreOperation given an JSON string * * @param jsonString JSON string * @return An instance of RecurringTokenStoreOperation - * @throws JsonProcessingException if the JSON string is invalid with respect to RecurringTokenStoreOperation + * @throws JsonProcessingException if the JSON string is invalid with respect to + * RecurringTokenStoreOperation */ - public static RecurringTokenStoreOperation fromJson(String jsonString) throws JsonProcessingException { + public static RecurringTokenStoreOperation fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RecurringTokenStoreOperation.class); } -/** - * Convert an instance of RecurringTokenStoreOperation to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RecurringTokenStoreOperation to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationAlreadyExistingDetailsNotificationRequest.java b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationAlreadyExistingDetailsNotificationRequest.java index 7de757569..7b2892b57 100644 --- a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationAlreadyExistingDetailsNotificationRequest.java +++ b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationAlreadyExistingDetailsNotificationRequest.java @@ -2,33 +2,27 @@ * Tokenization webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.tokenizationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.tokenizationwebhooks.RecurringTokenStoreOperation; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * TokenizationAlreadyExistingDetailsNotificationRequest - */ +/** TokenizationAlreadyExistingDetailsNotificationRequest */ @JsonPropertyOrder({ TokenizationAlreadyExistingDetailsNotificationRequest.JSON_PROPERTY_CREATED_AT, TokenizationAlreadyExistingDetailsNotificationRequest.JSON_PROPERTY_DATA, @@ -37,7 +31,6 @@ TokenizationAlreadyExistingDetailsNotificationRequest.JSON_PROPERTY_TYPE, TokenizationAlreadyExistingDetailsNotificationRequest.JSON_PROPERTY_VERSION }) - public class TokenizationAlreadyExistingDetailsNotificationRequest { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -45,11 +38,8 @@ public class TokenizationAlreadyExistingDetailsNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private RecurringTokenStoreOperation data; - /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - */ + /** The environment from which the webhook originated. Possible values: **test**, **live**. */ public enum EnvironmentEnum { - TEST(String.valueOf("test")), LIVE(String.valueOf("live")); @@ -59,7 +49,7 @@ public enum EnvironmentEnum { private String value; EnvironmentEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -80,7 +70,11 @@ public static EnvironmentEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("EnvironmentEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(EnvironmentEnum.values())); + LOG.warning( + "EnvironmentEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(EnvironmentEnum.values())); return null; } } @@ -91,11 +85,8 @@ public static EnvironmentEnum fromValue(String value) { public static final String JSON_PROPERTY_EVENT_ID = "eventId"; private String eventId; - /** - * The type of webhook. - */ + /** The type of webhook. */ public enum TypeEnum { - RECURRING_TOKEN_ALREADYEXISTING(String.valueOf("recurring.token.alreadyExisting")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -103,7 +94,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -124,7 +115,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -135,14 +130,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VERSION = "version"; private String version; - public TokenizationAlreadyExistingDetailsNotificationRequest() { - } + public TokenizationAlreadyExistingDetailsNotificationRequest() {} /** * The date and time when the event happened, in ISO 8601 extended format. * * @param createdAt The date and time when the event happened, in ISO 8601 extended format. - * @return the current {@code TokenizationAlreadyExistingDetailsNotificationRequest} instance, allowing for method chaining + * @return the current {@code TokenizationAlreadyExistingDetailsNotificationRequest} instance, + * allowing for method chaining */ public TokenizationAlreadyExistingDetailsNotificationRequest createdAt(OffsetDateTime createdAt) { this.createdAt = createdAt; @@ -151,6 +146,7 @@ public TokenizationAlreadyExistingDetailsNotificationRequest createdAt(OffsetDat /** * The date and time when the event happened, in ISO 8601 extended format. + * * @return createdAt The date and time when the event happened, in ISO 8601 extended format. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @@ -173,17 +169,20 @@ public void setCreatedAt(OffsetDateTime createdAt) { /** * data * - * @param data - * @return the current {@code TokenizationAlreadyExistingDetailsNotificationRequest} instance, allowing for method chaining + * @param data + * @return the current {@code TokenizationAlreadyExistingDetailsNotificationRequest} instance, + * allowing for method chaining */ - public TokenizationAlreadyExistingDetailsNotificationRequest data(RecurringTokenStoreOperation data) { + public TokenizationAlreadyExistingDetailsNotificationRequest data( + RecurringTokenStoreOperation data) { this.data = data; return this; } /** * Get data - * @return data + * + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,7 +193,7 @@ public RecurringTokenStoreOperation getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -203,19 +202,24 @@ public void setData(RecurringTokenStoreOperation data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. - * @return the current {@code TokenizationAlreadyExistingDetailsNotificationRequest} instance, allowing for method chaining + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. + * @return the current {@code TokenizationAlreadyExistingDetailsNotificationRequest} instance, + * allowing for method chaining */ - public TokenizationAlreadyExistingDetailsNotificationRequest environment(EnvironmentEnum environment) { + public TokenizationAlreadyExistingDetailsNotificationRequest environment( + EnvironmentEnum environment) { this.environment = environment; return this; } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * + * @return environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,9 +228,10 @@ public EnvironmentEnum getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -238,7 +243,8 @@ public void setEnvironment(EnvironmentEnum environment) { * The PSP reference of the event that triggered the webhook. * * @param eventId The PSP reference of the event that triggered the webhook. - * @return the current {@code TokenizationAlreadyExistingDetailsNotificationRequest} instance, allowing for method chaining + * @return the current {@code TokenizationAlreadyExistingDetailsNotificationRequest} instance, + * allowing for method chaining */ public TokenizationAlreadyExistingDetailsNotificationRequest eventId(String eventId) { this.eventId = eventId; @@ -247,6 +253,7 @@ public TokenizationAlreadyExistingDetailsNotificationRequest eventId(String even /** * The PSP reference of the event that triggered the webhook. + * * @return eventId The PSP reference of the event that triggered the webhook. */ @JsonProperty(JSON_PROPERTY_EVENT_ID) @@ -270,7 +277,8 @@ public void setEventId(String eventId) { * The type of webhook. * * @param type The type of webhook. - * @return the current {@code TokenizationAlreadyExistingDetailsNotificationRequest} instance, allowing for method chaining + * @return the current {@code TokenizationAlreadyExistingDetailsNotificationRequest} instance, + * allowing for method chaining */ public TokenizationAlreadyExistingDetailsNotificationRequest type(TypeEnum type) { this.type = type; @@ -279,6 +287,7 @@ public TokenizationAlreadyExistingDetailsNotificationRequest type(TypeEnum type) /** * The type of webhook. + * * @return type The type of webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -302,7 +311,8 @@ public void setType(TypeEnum type) { * The version of this entity. * * @param version The version of this entity. - * @return the current {@code TokenizationAlreadyExistingDetailsNotificationRequest} instance, allowing for method chaining + * @return the current {@code TokenizationAlreadyExistingDetailsNotificationRequest} instance, + * allowing for method chaining */ public TokenizationAlreadyExistingDetailsNotificationRequest version(String version) { this.version = version; @@ -311,6 +321,7 @@ public TokenizationAlreadyExistingDetailsNotificationRequest version(String vers /** * The version of this entity. + * * @return version The version of this entity. */ @JsonProperty(JSON_PROPERTY_VERSION) @@ -341,13 +352,19 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TokenizationAlreadyExistingDetailsNotificationRequest tokenizationAlreadyExistingDetailsNotificationRequest = (TokenizationAlreadyExistingDetailsNotificationRequest) o; - return Objects.equals(this.createdAt, tokenizationAlreadyExistingDetailsNotificationRequest.createdAt) && - Objects.equals(this.data, tokenizationAlreadyExistingDetailsNotificationRequest.data) && - Objects.equals(this.environment, tokenizationAlreadyExistingDetailsNotificationRequest.environment) && - Objects.equals(this.eventId, tokenizationAlreadyExistingDetailsNotificationRequest.eventId) && - Objects.equals(this.type, tokenizationAlreadyExistingDetailsNotificationRequest.type) && - Objects.equals(this.version, tokenizationAlreadyExistingDetailsNotificationRequest.version); + TokenizationAlreadyExistingDetailsNotificationRequest + tokenizationAlreadyExistingDetailsNotificationRequest = + (TokenizationAlreadyExistingDetailsNotificationRequest) o; + return Objects.equals( + this.createdAt, tokenizationAlreadyExistingDetailsNotificationRequest.createdAt) + && Objects.equals(this.data, tokenizationAlreadyExistingDetailsNotificationRequest.data) + && Objects.equals( + this.environment, tokenizationAlreadyExistingDetailsNotificationRequest.environment) + && Objects.equals( + this.eventId, tokenizationAlreadyExistingDetailsNotificationRequest.eventId) + && Objects.equals(this.type, tokenizationAlreadyExistingDetailsNotificationRequest.type) + && Objects.equals( + this.version, tokenizationAlreadyExistingDetailsNotificationRequest.version); } @Override @@ -370,8 +387,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -380,21 +396,26 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** - * Create an instance of TokenizationAlreadyExistingDetailsNotificationRequest given an JSON string + /** + * Create an instance of TokenizationAlreadyExistingDetailsNotificationRequest given an JSON + * string * * @param jsonString JSON string * @return An instance of TokenizationAlreadyExistingDetailsNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to TokenizationAlreadyExistingDetailsNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TokenizationAlreadyExistingDetailsNotificationRequest */ - public static TokenizationAlreadyExistingDetailsNotificationRequest fromJson(String jsonString) throws JsonProcessingException { - return JSON.getMapper().readValue(jsonString, TokenizationAlreadyExistingDetailsNotificationRequest.class); + public static TokenizationAlreadyExistingDetailsNotificationRequest fromJson(String jsonString) + throws JsonProcessingException { + return JSON.getMapper() + .readValue(jsonString, TokenizationAlreadyExistingDetailsNotificationRequest.class); } -/** - * Convert an instance of TokenizationAlreadyExistingDetailsNotificationRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TokenizationAlreadyExistingDetailsNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationCreatedDetailsNotificationRequest.java b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationCreatedDetailsNotificationRequest.java index 724df81d1..f104f3526 100644 --- a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationCreatedDetailsNotificationRequest.java +++ b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationCreatedDetailsNotificationRequest.java @@ -2,33 +2,27 @@ * Tokenization webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.tokenizationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.tokenizationwebhooks.RecurringTokenStoreOperation; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * TokenizationCreatedDetailsNotificationRequest - */ +/** TokenizationCreatedDetailsNotificationRequest */ @JsonPropertyOrder({ TokenizationCreatedDetailsNotificationRequest.JSON_PROPERTY_CREATED_AT, TokenizationCreatedDetailsNotificationRequest.JSON_PROPERTY_DATA, @@ -37,7 +31,6 @@ TokenizationCreatedDetailsNotificationRequest.JSON_PROPERTY_TYPE, TokenizationCreatedDetailsNotificationRequest.JSON_PROPERTY_VERSION }) - public class TokenizationCreatedDetailsNotificationRequest { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -45,11 +38,8 @@ public class TokenizationCreatedDetailsNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private RecurringTokenStoreOperation data; - /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - */ + /** The environment from which the webhook originated. Possible values: **test**, **live**. */ public enum EnvironmentEnum { - TEST(String.valueOf("test")), LIVE(String.valueOf("live")); @@ -59,7 +49,7 @@ public enum EnvironmentEnum { private String value; EnvironmentEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -80,7 +70,11 @@ public static EnvironmentEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("EnvironmentEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(EnvironmentEnum.values())); + LOG.warning( + "EnvironmentEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(EnvironmentEnum.values())); return null; } } @@ -91,11 +85,8 @@ public static EnvironmentEnum fromValue(String value) { public static final String JSON_PROPERTY_EVENT_ID = "eventId"; private String eventId; - /** - * The type of webhook. - */ + /** The type of webhook. */ public enum TypeEnum { - RECURRING_TOKEN_CREATED(String.valueOf("recurring.token.created")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -103,7 +94,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -124,7 +115,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -135,14 +130,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VERSION = "version"; private String version; - public TokenizationCreatedDetailsNotificationRequest() { - } + public TokenizationCreatedDetailsNotificationRequest() {} /** * The date and time when the event happened, in ISO 8601 extended format. * * @param createdAt The date and time when the event happened, in ISO 8601 extended format. - * @return the current {@code TokenizationCreatedDetailsNotificationRequest} instance, allowing for method chaining + * @return the current {@code TokenizationCreatedDetailsNotificationRequest} instance, allowing + * for method chaining */ public TokenizationCreatedDetailsNotificationRequest createdAt(OffsetDateTime createdAt) { this.createdAt = createdAt; @@ -151,6 +146,7 @@ public TokenizationCreatedDetailsNotificationRequest createdAt(OffsetDateTime cr /** * The date and time when the event happened, in ISO 8601 extended format. + * * @return createdAt The date and time when the event happened, in ISO 8601 extended format. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @@ -173,8 +169,9 @@ public void setCreatedAt(OffsetDateTime createdAt) { /** * data * - * @param data - * @return the current {@code TokenizationCreatedDetailsNotificationRequest} instance, allowing for method chaining + * @param data + * @return the current {@code TokenizationCreatedDetailsNotificationRequest} instance, allowing + * for method chaining */ public TokenizationCreatedDetailsNotificationRequest data(RecurringTokenStoreOperation data) { this.data = data; @@ -183,7 +180,8 @@ public TokenizationCreatedDetailsNotificationRequest data(RecurringTokenStoreOpe /** * Get data - * @return data + * + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,7 +192,7 @@ public RecurringTokenStoreOperation getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -203,10 +201,12 @@ public void setData(RecurringTokenStoreOperation data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. - * @return the current {@code TokenizationCreatedDetailsNotificationRequest} instance, allowing for method chaining + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. + * @return the current {@code TokenizationCreatedDetailsNotificationRequest} instance, allowing + * for method chaining */ public TokenizationCreatedDetailsNotificationRequest environment(EnvironmentEnum environment) { this.environment = environment; @@ -214,8 +214,10 @@ public TokenizationCreatedDetailsNotificationRequest environment(EnvironmentEnum } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * + * @return environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,9 +226,10 @@ public EnvironmentEnum getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -238,7 +241,8 @@ public void setEnvironment(EnvironmentEnum environment) { * The PSP reference of the event that triggered the webhook. * * @param eventId The PSP reference of the event that triggered the webhook. - * @return the current {@code TokenizationCreatedDetailsNotificationRequest} instance, allowing for method chaining + * @return the current {@code TokenizationCreatedDetailsNotificationRequest} instance, allowing + * for method chaining */ public TokenizationCreatedDetailsNotificationRequest eventId(String eventId) { this.eventId = eventId; @@ -247,6 +251,7 @@ public TokenizationCreatedDetailsNotificationRequest eventId(String eventId) { /** * The PSP reference of the event that triggered the webhook. + * * @return eventId The PSP reference of the event that triggered the webhook. */ @JsonProperty(JSON_PROPERTY_EVENT_ID) @@ -270,7 +275,8 @@ public void setEventId(String eventId) { * The type of webhook. * * @param type The type of webhook. - * @return the current {@code TokenizationCreatedDetailsNotificationRequest} instance, allowing for method chaining + * @return the current {@code TokenizationCreatedDetailsNotificationRequest} instance, allowing + * for method chaining */ public TokenizationCreatedDetailsNotificationRequest type(TypeEnum type) { this.type = type; @@ -279,6 +285,7 @@ public TokenizationCreatedDetailsNotificationRequest type(TypeEnum type) { /** * The type of webhook. + * * @return type The type of webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -302,7 +309,8 @@ public void setType(TypeEnum type) { * The version of this entity. * * @param version The version of this entity. - * @return the current {@code TokenizationCreatedDetailsNotificationRequest} instance, allowing for method chaining + * @return the current {@code TokenizationCreatedDetailsNotificationRequest} instance, allowing + * for method chaining */ public TokenizationCreatedDetailsNotificationRequest version(String version) { this.version = version; @@ -311,6 +319,7 @@ public TokenizationCreatedDetailsNotificationRequest version(String version) { /** * The version of this entity. + * * @return version The version of this entity. */ @JsonProperty(JSON_PROPERTY_VERSION) @@ -330,9 +339,7 @@ public void setVersion(String version) { this.version = version; } - /** - * Return true if this TokenizationCreatedDetailsNotificationRequest object is equal to o. - */ + /** Return true if this TokenizationCreatedDetailsNotificationRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -341,13 +348,15 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TokenizationCreatedDetailsNotificationRequest tokenizationCreatedDetailsNotificationRequest = (TokenizationCreatedDetailsNotificationRequest) o; - return Objects.equals(this.createdAt, tokenizationCreatedDetailsNotificationRequest.createdAt) && - Objects.equals(this.data, tokenizationCreatedDetailsNotificationRequest.data) && - Objects.equals(this.environment, tokenizationCreatedDetailsNotificationRequest.environment) && - Objects.equals(this.eventId, tokenizationCreatedDetailsNotificationRequest.eventId) && - Objects.equals(this.type, tokenizationCreatedDetailsNotificationRequest.type) && - Objects.equals(this.version, tokenizationCreatedDetailsNotificationRequest.version); + TokenizationCreatedDetailsNotificationRequest tokenizationCreatedDetailsNotificationRequest = + (TokenizationCreatedDetailsNotificationRequest) o; + return Objects.equals(this.createdAt, tokenizationCreatedDetailsNotificationRequest.createdAt) + && Objects.equals(this.data, tokenizationCreatedDetailsNotificationRequest.data) + && Objects.equals( + this.environment, tokenizationCreatedDetailsNotificationRequest.environment) + && Objects.equals(this.eventId, tokenizationCreatedDetailsNotificationRequest.eventId) + && Objects.equals(this.type, tokenizationCreatedDetailsNotificationRequest.type) + && Objects.equals(this.version, tokenizationCreatedDetailsNotificationRequest.version); } @Override @@ -370,8 +379,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -380,21 +388,25 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TokenizationCreatedDetailsNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of TokenizationCreatedDetailsNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to TokenizationCreatedDetailsNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TokenizationCreatedDetailsNotificationRequest */ - public static TokenizationCreatedDetailsNotificationRequest fromJson(String jsonString) throws JsonProcessingException { - return JSON.getMapper().readValue(jsonString, TokenizationCreatedDetailsNotificationRequest.class); + public static TokenizationCreatedDetailsNotificationRequest fromJson(String jsonString) + throws JsonProcessingException { + return JSON.getMapper() + .readValue(jsonString, TokenizationCreatedDetailsNotificationRequest.class); } -/** - * Convert an instance of TokenizationCreatedDetailsNotificationRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TokenizationCreatedDetailsNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationDisabledDetailsNotificationRequest.java b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationDisabledDetailsNotificationRequest.java index 5b201a1de..ef9974e36 100644 --- a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationDisabledDetailsNotificationRequest.java +++ b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationDisabledDetailsNotificationRequest.java @@ -2,33 +2,27 @@ * Tokenization webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.tokenizationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.tokenizationwebhooks.RecurringToken; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * TokenizationDisabledDetailsNotificationRequest - */ +/** TokenizationDisabledDetailsNotificationRequest */ @JsonPropertyOrder({ TokenizationDisabledDetailsNotificationRequest.JSON_PROPERTY_CREATED_AT, TokenizationDisabledDetailsNotificationRequest.JSON_PROPERTY_DATA, @@ -37,7 +31,6 @@ TokenizationDisabledDetailsNotificationRequest.JSON_PROPERTY_TYPE, TokenizationDisabledDetailsNotificationRequest.JSON_PROPERTY_VERSION }) - public class TokenizationDisabledDetailsNotificationRequest { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -45,11 +38,8 @@ public class TokenizationDisabledDetailsNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private RecurringToken data; - /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - */ + /** The environment from which the webhook originated. Possible values: **test**, **live**. */ public enum EnvironmentEnum { - TEST(String.valueOf("test")), LIVE(String.valueOf("live")); @@ -59,7 +49,7 @@ public enum EnvironmentEnum { private String value; EnvironmentEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -80,7 +70,11 @@ public static EnvironmentEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("EnvironmentEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(EnvironmentEnum.values())); + LOG.warning( + "EnvironmentEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(EnvironmentEnum.values())); return null; } } @@ -91,11 +85,8 @@ public static EnvironmentEnum fromValue(String value) { public static final String JSON_PROPERTY_EVENT_ID = "eventId"; private String eventId; - /** - * The type of webhook. - */ + /** The type of webhook. */ public enum TypeEnum { - RECURRING_TOKEN_DISABLED(String.valueOf("recurring.token.disabled")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -103,7 +94,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -124,7 +115,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -135,14 +130,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VERSION = "version"; private String version; - public TokenizationDisabledDetailsNotificationRequest() { - } + public TokenizationDisabledDetailsNotificationRequest() {} /** * The date and time when the event happened, in ISO 8601 extended format. * * @param createdAt The date and time when the event happened, in ISO 8601 extended format. - * @return the current {@code TokenizationDisabledDetailsNotificationRequest} instance, allowing for method chaining + * @return the current {@code TokenizationDisabledDetailsNotificationRequest} instance, allowing + * for method chaining */ public TokenizationDisabledDetailsNotificationRequest createdAt(OffsetDateTime createdAt) { this.createdAt = createdAt; @@ -151,6 +146,7 @@ public TokenizationDisabledDetailsNotificationRequest createdAt(OffsetDateTime c /** * The date and time when the event happened, in ISO 8601 extended format. + * * @return createdAt The date and time when the event happened, in ISO 8601 extended format. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @@ -173,8 +169,9 @@ public void setCreatedAt(OffsetDateTime createdAt) { /** * data * - * @param data - * @return the current {@code TokenizationDisabledDetailsNotificationRequest} instance, allowing for method chaining + * @param data + * @return the current {@code TokenizationDisabledDetailsNotificationRequest} instance, allowing + * for method chaining */ public TokenizationDisabledDetailsNotificationRequest data(RecurringToken data) { this.data = data; @@ -183,7 +180,8 @@ public TokenizationDisabledDetailsNotificationRequest data(RecurringToken data) /** * Get data - * @return data + * + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,7 +192,7 @@ public RecurringToken getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -203,10 +201,12 @@ public void setData(RecurringToken data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. - * @return the current {@code TokenizationDisabledDetailsNotificationRequest} instance, allowing for method chaining + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. + * @return the current {@code TokenizationDisabledDetailsNotificationRequest} instance, allowing + * for method chaining */ public TokenizationDisabledDetailsNotificationRequest environment(EnvironmentEnum environment) { this.environment = environment; @@ -214,8 +214,10 @@ public TokenizationDisabledDetailsNotificationRequest environment(EnvironmentEnu } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * + * @return environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,9 +226,10 @@ public EnvironmentEnum getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -238,7 +241,8 @@ public void setEnvironment(EnvironmentEnum environment) { * The PSP reference of the event that triggered the webhook. * * @param eventId The PSP reference of the event that triggered the webhook. - * @return the current {@code TokenizationDisabledDetailsNotificationRequest} instance, allowing for method chaining + * @return the current {@code TokenizationDisabledDetailsNotificationRequest} instance, allowing + * for method chaining */ public TokenizationDisabledDetailsNotificationRequest eventId(String eventId) { this.eventId = eventId; @@ -247,6 +251,7 @@ public TokenizationDisabledDetailsNotificationRequest eventId(String eventId) { /** * The PSP reference of the event that triggered the webhook. + * * @return eventId The PSP reference of the event that triggered the webhook. */ @JsonProperty(JSON_PROPERTY_EVENT_ID) @@ -270,7 +275,8 @@ public void setEventId(String eventId) { * The type of webhook. * * @param type The type of webhook. - * @return the current {@code TokenizationDisabledDetailsNotificationRequest} instance, allowing for method chaining + * @return the current {@code TokenizationDisabledDetailsNotificationRequest} instance, allowing + * for method chaining */ public TokenizationDisabledDetailsNotificationRequest type(TypeEnum type) { this.type = type; @@ -279,6 +285,7 @@ public TokenizationDisabledDetailsNotificationRequest type(TypeEnum type) { /** * The type of webhook. + * * @return type The type of webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -302,7 +309,8 @@ public void setType(TypeEnum type) { * The version of this entity. * * @param version The version of this entity. - * @return the current {@code TokenizationDisabledDetailsNotificationRequest} instance, allowing for method chaining + * @return the current {@code TokenizationDisabledDetailsNotificationRequest} instance, allowing + * for method chaining */ public TokenizationDisabledDetailsNotificationRequest version(String version) { this.version = version; @@ -311,6 +319,7 @@ public TokenizationDisabledDetailsNotificationRequest version(String version) { /** * The version of this entity. + * * @return version The version of this entity. */ @JsonProperty(JSON_PROPERTY_VERSION) @@ -330,9 +339,7 @@ public void setVersion(String version) { this.version = version; } - /** - * Return true if this TokenizationDisabledDetailsNotificationRequest object is equal to o. - */ + /** Return true if this TokenizationDisabledDetailsNotificationRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -341,13 +348,15 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TokenizationDisabledDetailsNotificationRequest tokenizationDisabledDetailsNotificationRequest = (TokenizationDisabledDetailsNotificationRequest) o; - return Objects.equals(this.createdAt, tokenizationDisabledDetailsNotificationRequest.createdAt) && - Objects.equals(this.data, tokenizationDisabledDetailsNotificationRequest.data) && - Objects.equals(this.environment, tokenizationDisabledDetailsNotificationRequest.environment) && - Objects.equals(this.eventId, tokenizationDisabledDetailsNotificationRequest.eventId) && - Objects.equals(this.type, tokenizationDisabledDetailsNotificationRequest.type) && - Objects.equals(this.version, tokenizationDisabledDetailsNotificationRequest.version); + TokenizationDisabledDetailsNotificationRequest tokenizationDisabledDetailsNotificationRequest = + (TokenizationDisabledDetailsNotificationRequest) o; + return Objects.equals(this.createdAt, tokenizationDisabledDetailsNotificationRequest.createdAt) + && Objects.equals(this.data, tokenizationDisabledDetailsNotificationRequest.data) + && Objects.equals( + this.environment, tokenizationDisabledDetailsNotificationRequest.environment) + && Objects.equals(this.eventId, tokenizationDisabledDetailsNotificationRequest.eventId) + && Objects.equals(this.type, tokenizationDisabledDetailsNotificationRequest.type) + && Objects.equals(this.version, tokenizationDisabledDetailsNotificationRequest.version); } @Override @@ -370,8 +379,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -380,21 +388,25 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TokenizationDisabledDetailsNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of TokenizationDisabledDetailsNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to TokenizationDisabledDetailsNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TokenizationDisabledDetailsNotificationRequest */ - public static TokenizationDisabledDetailsNotificationRequest fromJson(String jsonString) throws JsonProcessingException { - return JSON.getMapper().readValue(jsonString, TokenizationDisabledDetailsNotificationRequest.class); + public static TokenizationDisabledDetailsNotificationRequest fromJson(String jsonString) + throws JsonProcessingException { + return JSON.getMapper() + .readValue(jsonString, TokenizationDisabledDetailsNotificationRequest.class); } -/** - * Convert an instance of TokenizationDisabledDetailsNotificationRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TokenizationDisabledDetailsNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationNotificationResponse.java b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationNotificationResponse.java index 0978f7026..e47741c80 100644 --- a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationNotificationResponse.java +++ b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationNotificationResponse.java @@ -2,47 +2,37 @@ * Tokenization webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.tokenizationwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TokenizationNotificationResponse - */ -@JsonPropertyOrder({ - TokenizationNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE -}) - +/** TokenizationNotificationResponse */ +@JsonPropertyOrder({TokenizationNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) public class TokenizationNotificationResponse { public static final String JSON_PROPERTY_NOTIFICATION_RESPONSE = "notificationResponse"; private String notificationResponse; - public TokenizationNotificationResponse() { - } + public TokenizationNotificationResponse() {} /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return the current {@code TokenizationNotificationResponse} instance, allowing for method chaining + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return the current {@code TokenizationNotificationResponse} instance, allowing for method + * chaining */ public TokenizationNotificationResponse notificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; @@ -50,8 +40,11 @@ public TokenizationNotificationResponse notificationResponse(String notification } /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * + * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,9 +53,11 @@ public String getNotificationResponse() { } /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +65,7 @@ public void setNotificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; } - /** - * Return true if this TokenizationNotificationResponse object is equal to o. - */ + /** Return true if this TokenizationNotificationResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -81,8 +74,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TokenizationNotificationResponse tokenizationNotificationResponse = (TokenizationNotificationResponse) o; - return Objects.equals(this.notificationResponse, tokenizationNotificationResponse.notificationResponse); + TokenizationNotificationResponse tokenizationNotificationResponse = + (TokenizationNotificationResponse) o; + return Objects.equals( + this.notificationResponse, tokenizationNotificationResponse.notificationResponse); } @Override @@ -94,14 +89,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TokenizationNotificationResponse {\n"); - sb.append(" notificationResponse: ").append(toIndentedString(notificationResponse)).append("\n"); + sb.append(" notificationResponse: ") + .append(toIndentedString(notificationResponse)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +106,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TokenizationNotificationResponse given an JSON string * * @param jsonString JSON string * @return An instance of TokenizationNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to TokenizationNotificationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TokenizationNotificationResponse */ - public static TokenizationNotificationResponse fromJson(String jsonString) throws JsonProcessingException { + public static TokenizationNotificationResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TokenizationNotificationResponse.class); } -/** - * Convert an instance of TokenizationNotificationResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TokenizationNotificationResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationUpdatedDetailsNotificationRequest.java b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationUpdatedDetailsNotificationRequest.java index 71973de13..09cc67bbb 100644 --- a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationUpdatedDetailsNotificationRequest.java +++ b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationUpdatedDetailsNotificationRequest.java @@ -2,33 +2,27 @@ * Tokenization webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.tokenizationwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.tokenizationwebhooks.RecurringTokenStoreOperation; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * TokenizationUpdatedDetailsNotificationRequest - */ +/** TokenizationUpdatedDetailsNotificationRequest */ @JsonPropertyOrder({ TokenizationUpdatedDetailsNotificationRequest.JSON_PROPERTY_CREATED_AT, TokenizationUpdatedDetailsNotificationRequest.JSON_PROPERTY_DATA, @@ -37,7 +31,6 @@ TokenizationUpdatedDetailsNotificationRequest.JSON_PROPERTY_TYPE, TokenizationUpdatedDetailsNotificationRequest.JSON_PROPERTY_VERSION }) - public class TokenizationUpdatedDetailsNotificationRequest { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -45,11 +38,8 @@ public class TokenizationUpdatedDetailsNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private RecurringTokenStoreOperation data; - /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - */ + /** The environment from which the webhook originated. Possible values: **test**, **live**. */ public enum EnvironmentEnum { - TEST(String.valueOf("test")), LIVE(String.valueOf("live")); @@ -59,7 +49,7 @@ public enum EnvironmentEnum { private String value; EnvironmentEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -80,7 +70,11 @@ public static EnvironmentEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("EnvironmentEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(EnvironmentEnum.values())); + LOG.warning( + "EnvironmentEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(EnvironmentEnum.values())); return null; } } @@ -91,11 +85,8 @@ public static EnvironmentEnum fromValue(String value) { public static final String JSON_PROPERTY_EVENT_ID = "eventId"; private String eventId; - /** - * The type of webhook. - */ + /** The type of webhook. */ public enum TypeEnum { - RECURRING_TOKEN_UPDATED(String.valueOf("recurring.token.updated")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -103,7 +94,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -124,7 +115,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -135,14 +130,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VERSION = "version"; private String version; - public TokenizationUpdatedDetailsNotificationRequest() { - } + public TokenizationUpdatedDetailsNotificationRequest() {} /** * The date and time when the event happened, in ISO 8601 extended format. * * @param createdAt The date and time when the event happened, in ISO 8601 extended format. - * @return the current {@code TokenizationUpdatedDetailsNotificationRequest} instance, allowing for method chaining + * @return the current {@code TokenizationUpdatedDetailsNotificationRequest} instance, allowing + * for method chaining */ public TokenizationUpdatedDetailsNotificationRequest createdAt(OffsetDateTime createdAt) { this.createdAt = createdAt; @@ -151,6 +146,7 @@ public TokenizationUpdatedDetailsNotificationRequest createdAt(OffsetDateTime cr /** * The date and time when the event happened, in ISO 8601 extended format. + * * @return createdAt The date and time when the event happened, in ISO 8601 extended format. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @@ -173,8 +169,9 @@ public void setCreatedAt(OffsetDateTime createdAt) { /** * data * - * @param data - * @return the current {@code TokenizationUpdatedDetailsNotificationRequest} instance, allowing for method chaining + * @param data + * @return the current {@code TokenizationUpdatedDetailsNotificationRequest} instance, allowing + * for method chaining */ public TokenizationUpdatedDetailsNotificationRequest data(RecurringTokenStoreOperation data) { this.data = data; @@ -183,7 +180,8 @@ public TokenizationUpdatedDetailsNotificationRequest data(RecurringTokenStoreOpe /** * Get data - * @return data + * + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -194,7 +192,7 @@ public RecurringTokenStoreOperation getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -203,10 +201,12 @@ public void setData(RecurringTokenStoreOperation data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. - * @return the current {@code TokenizationUpdatedDetailsNotificationRequest} instance, allowing for method chaining + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. + * @return the current {@code TokenizationUpdatedDetailsNotificationRequest} instance, allowing + * for method chaining */ public TokenizationUpdatedDetailsNotificationRequest environment(EnvironmentEnum environment) { this.environment = environment; @@ -214,8 +214,10 @@ public TokenizationUpdatedDetailsNotificationRequest environment(EnvironmentEnum } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * + * @return environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -224,9 +226,10 @@ public EnvironmentEnum getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -238,7 +241,8 @@ public void setEnvironment(EnvironmentEnum environment) { * The PSP reference of the event that triggered the webhook. * * @param eventId The PSP reference of the event that triggered the webhook. - * @return the current {@code TokenizationUpdatedDetailsNotificationRequest} instance, allowing for method chaining + * @return the current {@code TokenizationUpdatedDetailsNotificationRequest} instance, allowing + * for method chaining */ public TokenizationUpdatedDetailsNotificationRequest eventId(String eventId) { this.eventId = eventId; @@ -247,6 +251,7 @@ public TokenizationUpdatedDetailsNotificationRequest eventId(String eventId) { /** * The PSP reference of the event that triggered the webhook. + * * @return eventId The PSP reference of the event that triggered the webhook. */ @JsonProperty(JSON_PROPERTY_EVENT_ID) @@ -270,7 +275,8 @@ public void setEventId(String eventId) { * The type of webhook. * * @param type The type of webhook. - * @return the current {@code TokenizationUpdatedDetailsNotificationRequest} instance, allowing for method chaining + * @return the current {@code TokenizationUpdatedDetailsNotificationRequest} instance, allowing + * for method chaining */ public TokenizationUpdatedDetailsNotificationRequest type(TypeEnum type) { this.type = type; @@ -279,6 +285,7 @@ public TokenizationUpdatedDetailsNotificationRequest type(TypeEnum type) { /** * The type of webhook. + * * @return type The type of webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -302,7 +309,8 @@ public void setType(TypeEnum type) { * The version of this entity. * * @param version The version of this entity. - * @return the current {@code TokenizationUpdatedDetailsNotificationRequest} instance, allowing for method chaining + * @return the current {@code TokenizationUpdatedDetailsNotificationRequest} instance, allowing + * for method chaining */ public TokenizationUpdatedDetailsNotificationRequest version(String version) { this.version = version; @@ -311,6 +319,7 @@ public TokenizationUpdatedDetailsNotificationRequest version(String version) { /** * The version of this entity. + * * @return version The version of this entity. */ @JsonProperty(JSON_PROPERTY_VERSION) @@ -330,9 +339,7 @@ public void setVersion(String version) { this.version = version; } - /** - * Return true if this TokenizationUpdatedDetailsNotificationRequest object is equal to o. - */ + /** Return true if this TokenizationUpdatedDetailsNotificationRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -341,13 +348,15 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TokenizationUpdatedDetailsNotificationRequest tokenizationUpdatedDetailsNotificationRequest = (TokenizationUpdatedDetailsNotificationRequest) o; - return Objects.equals(this.createdAt, tokenizationUpdatedDetailsNotificationRequest.createdAt) && - Objects.equals(this.data, tokenizationUpdatedDetailsNotificationRequest.data) && - Objects.equals(this.environment, tokenizationUpdatedDetailsNotificationRequest.environment) && - Objects.equals(this.eventId, tokenizationUpdatedDetailsNotificationRequest.eventId) && - Objects.equals(this.type, tokenizationUpdatedDetailsNotificationRequest.type) && - Objects.equals(this.version, tokenizationUpdatedDetailsNotificationRequest.version); + TokenizationUpdatedDetailsNotificationRequest tokenizationUpdatedDetailsNotificationRequest = + (TokenizationUpdatedDetailsNotificationRequest) o; + return Objects.equals(this.createdAt, tokenizationUpdatedDetailsNotificationRequest.createdAt) + && Objects.equals(this.data, tokenizationUpdatedDetailsNotificationRequest.data) + && Objects.equals( + this.environment, tokenizationUpdatedDetailsNotificationRequest.environment) + && Objects.equals(this.eventId, tokenizationUpdatedDetailsNotificationRequest.eventId) + && Objects.equals(this.type, tokenizationUpdatedDetailsNotificationRequest.type) + && Objects.equals(this.version, tokenizationUpdatedDetailsNotificationRequest.version); } @Override @@ -370,8 +379,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -380,21 +388,25 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TokenizationUpdatedDetailsNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of TokenizationUpdatedDetailsNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to TokenizationUpdatedDetailsNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TokenizationUpdatedDetailsNotificationRequest */ - public static TokenizationUpdatedDetailsNotificationRequest fromJson(String jsonString) throws JsonProcessingException { - return JSON.getMapper().readValue(jsonString, TokenizationUpdatedDetailsNotificationRequest.class); + public static TokenizationUpdatedDetailsNotificationRequest fromJson(String jsonString) + throws JsonProcessingException { + return JSON.getMapper() + .readValue(jsonString, TokenizationUpdatedDetailsNotificationRequest.class); } -/** - * Convert an instance of TokenizationUpdatedDetailsNotificationRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TokenizationUpdatedDetailsNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationWebhooksHandler.java b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationWebhooksHandler.java index 26c981acc..aaa897550 100644 --- a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationWebhooksHandler.java +++ b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationWebhooksHandler.java @@ -2,7 +2,7 @@ * Tokenization webhooks * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,129 +16,141 @@ /** * Handler for processing TokenizationWebhooks. - *

- * This class provides functionality to deserialize the payload of TokenizationWebhooks events. + * + *

This class provides functionality to deserialize the payload of TokenizationWebhooks events. */ public class TokenizationWebhooksHandler { - private static final Logger LOG = Logger.getLogger(TokenizationWebhooksHandler.class.getName()); - - private final String payload; - - /** - * Constructs a new handler for the given webhook payload - * - * @param payload the raw JSON payload from the webhook - */ - public TokenizationWebhooksHandler(String payload) { - this.payload = payload; - } - - /** - * Attempts to deserialize the webhook payload into a TokenizationAlreadyExistingDetailsNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getTokenizationAlreadyExistingDetailsNotificationRequest() { - - var optionalTokenizationAlreadyExistingDetailsNotificationRequest = getOptionalField(TokenizationAlreadyExistingDetailsNotificationRequest.class); - - if(optionalTokenizationAlreadyExistingDetailsNotificationRequest.isPresent()) { - // verify event type - for (var value : TokenizationAlreadyExistingDetailsNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalTokenizationAlreadyExistingDetailsNotificationRequest.get().getType())) { - // found matching event type - return optionalTokenizationAlreadyExistingDetailsNotificationRequest; - } - } + private static final Logger LOG = Logger.getLogger(TokenizationWebhooksHandler.class.getName()); + + private final String payload; + + /** + * Constructs a new handler for the given webhook payload + * + * @param payload the raw JSON payload from the webhook + */ + public TokenizationWebhooksHandler(String payload) { + this.payload = payload; + } + + /** + * Attempts to deserialize the webhook payload into a + * TokenizationAlreadyExistingDetailsNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional + getTokenizationAlreadyExistingDetailsNotificationRequest() { + + var optionalTokenizationAlreadyExistingDetailsNotificationRequest = + getOptionalField(TokenizationAlreadyExistingDetailsNotificationRequest.class); + + if (optionalTokenizationAlreadyExistingDetailsNotificationRequest.isPresent()) { + // verify event type + for (var value : TokenizationAlreadyExistingDetailsNotificationRequest.TypeEnum.values()) { + if (value.equals( + optionalTokenizationAlreadyExistingDetailsNotificationRequest.get().getType())) { + // found matching event type + return optionalTokenizationAlreadyExistingDetailsNotificationRequest; } - - return Optional.empty(); + } } - /** - * Attempts to deserialize the webhook payload into a TokenizationCreatedDetailsNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getTokenizationCreatedDetailsNotificationRequest() { - - var optionalTokenizationCreatedDetailsNotificationRequest = getOptionalField(TokenizationCreatedDetailsNotificationRequest.class); - - if(optionalTokenizationCreatedDetailsNotificationRequest.isPresent()) { - // verify event type - for (var value : TokenizationCreatedDetailsNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalTokenizationCreatedDetailsNotificationRequest.get().getType())) { - // found matching event type - return optionalTokenizationCreatedDetailsNotificationRequest; - } - } + return Optional.empty(); + } + + /** + * Attempts to deserialize the webhook payload into a + * TokenizationCreatedDetailsNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional + getTokenizationCreatedDetailsNotificationRequest() { + + var optionalTokenizationCreatedDetailsNotificationRequest = + getOptionalField(TokenizationCreatedDetailsNotificationRequest.class); + + if (optionalTokenizationCreatedDetailsNotificationRequest.isPresent()) { + // verify event type + for (var value : TokenizationCreatedDetailsNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalTokenizationCreatedDetailsNotificationRequest.get().getType())) { + // found matching event type + return optionalTokenizationCreatedDetailsNotificationRequest; } - - return Optional.empty(); + } } - /** - * Attempts to deserialize the webhook payload into a TokenizationDisabledDetailsNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getTokenizationDisabledDetailsNotificationRequest() { - - var optionalTokenizationDisabledDetailsNotificationRequest = getOptionalField(TokenizationDisabledDetailsNotificationRequest.class); - - if(optionalTokenizationDisabledDetailsNotificationRequest.isPresent()) { - // verify event type - for (var value : TokenizationDisabledDetailsNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalTokenizationDisabledDetailsNotificationRequest.get().getType())) { - // found matching event type - return optionalTokenizationDisabledDetailsNotificationRequest; - } - } + return Optional.empty(); + } + + /** + * Attempts to deserialize the webhook payload into a + * TokenizationDisabledDetailsNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional + getTokenizationDisabledDetailsNotificationRequest() { + + var optionalTokenizationDisabledDetailsNotificationRequest = + getOptionalField(TokenizationDisabledDetailsNotificationRequest.class); + + if (optionalTokenizationDisabledDetailsNotificationRequest.isPresent()) { + // verify event type + for (var value : TokenizationDisabledDetailsNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalTokenizationDisabledDetailsNotificationRequest.get().getType())) { + // found matching event type + return optionalTokenizationDisabledDetailsNotificationRequest; } - - return Optional.empty(); + } } - /** - * Attempts to deserialize the webhook payload into a TokenizationUpdatedDetailsNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getTokenizationUpdatedDetailsNotificationRequest() { - - var optionalTokenizationUpdatedDetailsNotificationRequest = getOptionalField(TokenizationUpdatedDetailsNotificationRequest.class); - - if(optionalTokenizationUpdatedDetailsNotificationRequest.isPresent()) { - // verify event type - for (var value : TokenizationUpdatedDetailsNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalTokenizationUpdatedDetailsNotificationRequest.get().getType())) { - // found matching event type - return optionalTokenizationUpdatedDetailsNotificationRequest; - } - } + return Optional.empty(); + } + + /** + * Attempts to deserialize the webhook payload into a + * TokenizationUpdatedDetailsNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional + getTokenizationUpdatedDetailsNotificationRequest() { + + var optionalTokenizationUpdatedDetailsNotificationRequest = + getOptionalField(TokenizationUpdatedDetailsNotificationRequest.class); + + if (optionalTokenizationUpdatedDetailsNotificationRequest.isPresent()) { + // verify event type + for (var value : TokenizationUpdatedDetailsNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalTokenizationUpdatedDetailsNotificationRequest.get().getType())) { + // found matching event type + return optionalTokenizationUpdatedDetailsNotificationRequest; } - - return Optional.empty(); + } } - /** - * Deserializes the payload into the specified class type. - * - * @param clazz the class to deserialize into - * @param the type of the class - * @return an Optional containing the deserialized object, or empty if an error occurs - */ - private Optional getOptionalField(Class clazz) { - try { - T val = JSON.getMapper().readValue(payload, clazz); - return Optional.ofNullable(val); - } catch (Exception e) { - // an error has occurred during deserialization (object not found, deserialization error) - LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); - LOG.warning("Deserialization error: " + e.getMessage()); - return Optional.empty(); - } + return Optional.empty(); + } + + /** + * Deserializes the payload into the specified class type. + * + * @param clazz the class to deserialize into + * @param the type of the class + * @return an Optional containing the deserialized object, or empty if an error occurs + */ + private Optional getOptionalField(Class clazz) { + try { + T val = JSON.getMapper().readValue(payload, clazz); + return Optional.ofNullable(val); + } catch (Exception e) { + // an error has occurred during deserialization (object not found, deserialization error) + LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); + LOG.warning("Deserialization error: " + e.getMessage()); + return Optional.empty(); } - -} \ No newline at end of file + } +} diff --git a/src/main/java/com/adyen/model/transactionwebhooks/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/transactionwebhooks/AbstractOpenApiSchema.java index c43a77db8..e707b4965 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/AbstractOpenApiSchema.java @@ -2,145 +2,141 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transactionwebhooks; -import java.util.Objects; -import java.util.Map; -import jakarta.ws.rs.core.GenericType; - import com.fasterxml.jackson.annotation.JsonValue; +import jakarta.ws.rs.core.GenericType; +import java.util.Map; +import java.util.Objects; -/** - * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec - */ +/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() {return instance;} - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) {this.instance = instance;} - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); - } else { - return object.getActualInstance(); - } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() { + return instance; + } + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) { + this.instance = instance; + } + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf + * schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); + } else { + return object.getActualInstance(); } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) && - Objects.equals(this.isNullable, a.isNullable) && - Objects.equals(this.schemaType, a.schemaType); + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; } + return o.toString().replace("\n", "\n "); + } - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); + public boolean equals(Object o) { + if (this == o) { + return true; } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); + if (o == null || getClass() != o.getClass()) { + return false; } - - - -} \ No newline at end of file + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) + && Objects.equals(this.isNullable, a.isNullable) + && Objects.equals(this.schemaType, a.schemaType); + } + + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); + } + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); + } +} diff --git a/src/main/java/com/adyen/model/transactionwebhooks/Amount.java b/src/main/java/com/adyen/model/transactionwebhooks/Amount.java index 9da66f9c4..5081ada76 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/Amount.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/Amount.java @@ -2,36 +2,23 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transactionwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Amount - */ -@JsonPropertyOrder({ - Amount.JSON_PROPERTY_CURRENCY, - Amount.JSON_PROPERTY_VALUE -}) - +/** Amount */ +@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -39,13 +26,14 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() { - } + public Amount() {} /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount currency(String currency) { @@ -54,8 +42,11 @@ public Amount currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +55,11 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,9 +68,11 @@ public void setCurrency(String currency) { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount value(Long value) { @@ -86,8 +81,11 @@ public Amount value(Long value) { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). - * @return value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * + * @return value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +94,11 @@ public Long getValue() { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +106,7 @@ public void setValue(Long value) { this.value = value; } - /** - * Return true if this Amount object is equal to o. - */ + /** Return true if this Amount object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +116,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) && - Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) + && Objects.equals(this.value, amount.value); } @Override @@ -138,8 +136,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +145,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -158,11 +155,12 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } -/** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/BalancePlatformNotificationResponse.java b/src/main/java/com/adyen/model/transactionwebhooks/BalancePlatformNotificationResponse.java index 968478e8e..639e14f1e 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/BalancePlatformNotificationResponse.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/BalancePlatformNotificationResponse.java @@ -2,47 +2,37 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transactionwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * BalancePlatformNotificationResponse - */ -@JsonPropertyOrder({ - BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE -}) - +/** BalancePlatformNotificationResponse */ +@JsonPropertyOrder({BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) public class BalancePlatformNotificationResponse { public static final String JSON_PROPERTY_NOTIFICATION_RESPONSE = "notificationResponse"; private String notificationResponse; - public BalancePlatformNotificationResponse() { - } + public BalancePlatformNotificationResponse() {} /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method chaining + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method + * chaining */ public BalancePlatformNotificationResponse notificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; @@ -50,8 +40,11 @@ public BalancePlatformNotificationResponse notificationResponse(String notificat } /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * + * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,9 +53,11 @@ public String getNotificationResponse() { } /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +65,7 @@ public void setNotificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; } - /** - * Return true if this BalancePlatformNotificationResponse object is equal to o. - */ + /** Return true if this BalancePlatformNotificationResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -81,8 +74,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - BalancePlatformNotificationResponse balancePlatformNotificationResponse = (BalancePlatformNotificationResponse) o; - return Objects.equals(this.notificationResponse, balancePlatformNotificationResponse.notificationResponse); + BalancePlatformNotificationResponse balancePlatformNotificationResponse = + (BalancePlatformNotificationResponse) o; + return Objects.equals( + this.notificationResponse, balancePlatformNotificationResponse.notificationResponse); } @Override @@ -94,14 +89,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BalancePlatformNotificationResponse {\n"); - sb.append(" notificationResponse: ").append(toIndentedString(notificationResponse)).append("\n"); + sb.append(" notificationResponse: ") + .append(toIndentedString(notificationResponse)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +106,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BalancePlatformNotificationResponse given an JSON string * * @param jsonString JSON string * @return An instance of BalancePlatformNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to BalancePlatformNotificationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BalancePlatformNotificationResponse */ - public static BalancePlatformNotificationResponse fromJson(String jsonString) throws JsonProcessingException { + public static BalancePlatformNotificationResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalancePlatformNotificationResponse.class); } -/** - * Convert an instance of BalancePlatformNotificationResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BalancePlatformNotificationResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/BankCategoryData.java b/src/main/java/com/adyen/model/transactionwebhooks/BankCategoryData.java index 6c740d2fe..ca0ad9e60 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/BankCategoryData.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/BankCategoryData.java @@ -2,42 +2,42 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transactionwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * BankCategoryData - */ -@JsonPropertyOrder({ - BankCategoryData.JSON_PROPERTY_PRIORITY, - BankCategoryData.JSON_PROPERTY_TYPE -}) - +/** BankCategoryData */ +@JsonPropertyOrder({BankCategoryData.JSON_PROPERTY_PRIORITY, BankCategoryData.JSON_PROPERTY_TYPE}) public class BankCategoryData { /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the + * fees that you have to pay. Required for transfers with `category` **bank**. Possible + * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer + * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * + * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). */ public enum PriorityEnum { - CROSSBORDER(String.valueOf("crossBorder")), FAST(String.valueOf("fast")), @@ -55,7 +55,7 @@ public enum PriorityEnum { private String value; PriorityEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -76,7 +76,11 @@ public static PriorityEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PriorityEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PriorityEnum.values())); + LOG.warning( + "PriorityEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PriorityEnum.values())); return null; } } @@ -84,11 +88,8 @@ public static PriorityEnum fromValue(String value) { public static final String JSON_PROPERTY_PRIORITY = "priority"; private PriorityEnum priority; - /** - * **bank** - */ + /** **bank** */ public enum TypeEnum { - BANK(String.valueOf("bank")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -96,7 +97,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -117,7 +118,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -125,13 +130,32 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public BankCategoryData() { - } + public BankCategoryData() {} /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the + * fees that you have to pay. Required for transfers with `category` **bank**. Possible + * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer + * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * + * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). * - * @param priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * @param priority The priority for the bank transfer. This sets the speed at which the transfer + * is sent and the fees that you have to pay. Required for transfers with `category` + * **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a + * faster way to transfer funds, but the fees are higher. Recommended for high-priority, + * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the + * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for + * instant funds transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). * @return the current {@code BankCategoryData} instance, allowing for method chaining */ public BankCategoryData priority(PriorityEnum priority) { @@ -140,8 +164,29 @@ public BankCategoryData priority(PriorityEnum priority) { } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). - * @return priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the + * fees that you have to pay. Required for transfers with `category` **bank**. Possible + * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer + * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * + * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). + * + * @return priority The priority for the bank transfer. This sets the speed at which the transfer + * is sent and the fees that you have to pay. Required for transfers with `category` + * **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a + * faster way to transfer funds, but the fees are higher. Recommended for high-priority, + * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the + * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for + * instant funds transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). */ @JsonProperty(JSON_PROPERTY_PRIORITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,9 +195,29 @@ public PriorityEnum getPriority() { } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the + * fees that you have to pay. Required for transfers with `category` **bank**. Possible + * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer + * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * + * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). * - * @param priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * @param priority The priority for the bank transfer. This sets the speed at which the transfer + * is sent and the fees that you have to pay. Required for transfers with `category` + * **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a + * faster way to transfer funds, but the fees are higher. Recommended for high-priority, + * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the + * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for + * instant funds transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). */ @JsonProperty(JSON_PROPERTY_PRIORITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,6 +238,7 @@ public BankCategoryData type(TypeEnum type) { /** * **bank** + * * @return type **bank** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -192,9 +258,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this BankCategoryData object is equal to o. - */ + /** Return true if this BankCategoryData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -204,8 +268,8 @@ public boolean equals(Object o) { return false; } BankCategoryData bankCategoryData = (BankCategoryData) o; - return Objects.equals(this.priority, bankCategoryData.priority) && - Objects.equals(this.type, bankCategoryData.type); + return Objects.equals(this.priority, bankCategoryData.priority) + && Objects.equals(this.type, bankCategoryData.type); } @Override @@ -224,8 +288,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -234,7 +297,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BankCategoryData given an JSON string * * @param jsonString JSON string @@ -244,11 +307,12 @@ private String toIndentedString(Object o) { public static BankCategoryData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankCategoryData.class); } -/** - * Convert an instance of BankCategoryData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BankCategoryData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/InternalCategoryData.java b/src/main/java/com/adyen/model/transactionwebhooks/InternalCategoryData.java index 5ff97d647..73fed0ff6 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/InternalCategoryData.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/InternalCategoryData.java @@ -2,49 +2,41 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transactionwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * InternalCategoryData - */ +/** InternalCategoryData */ @JsonPropertyOrder({ InternalCategoryData.JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE, InternalCategoryData.JSON_PROPERTY_MODIFICATION_PSP_REFERENCE, InternalCategoryData.JSON_PROPERTY_TYPE }) - public class InternalCategoryData { - public static final String JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE = "modificationMerchantReference"; + public static final String JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE = + "modificationMerchantReference"; private String modificationMerchantReference; public static final String JSON_PROPERTY_MODIFICATION_PSP_REFERENCE = "modificationPspReference"; private String modificationPspReference; - /** - * **internal** - */ + /** **internal** */ public enum TypeEnum { - INTERNAL(String.valueOf("internal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +44,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +65,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,13 +77,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public InternalCategoryData() { - } + public InternalCategoryData() {} /** * The capture's merchant reference included in the transfer. * - * @param modificationMerchantReference The capture's merchant reference included in the transfer. + * @param modificationMerchantReference The capture's merchant reference included in the + * transfer. * @return the current {@code InternalCategoryData} instance, allowing for method chaining */ public InternalCategoryData modificationMerchantReference(String modificationMerchantReference) { @@ -97,7 +93,9 @@ public InternalCategoryData modificationMerchantReference(String modificationMer /** * The capture's merchant reference included in the transfer. - * @return modificationMerchantReference The capture's merchant reference included in the transfer. + * + * @return modificationMerchantReference The capture's merchant reference included in the + * transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,7 +106,8 @@ public String getModificationMerchantReference() { /** * The capture's merchant reference included in the transfer. * - * @param modificationMerchantReference The capture's merchant reference included in the transfer. + * @param modificationMerchantReference The capture's merchant reference included in the + * transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,6 +128,7 @@ public InternalCategoryData modificationPspReference(String modificationPspRefer /** * The capture reference included in the transfer. + * * @return modificationPspReference The capture reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_PSP_REFERENCE) @@ -161,6 +161,7 @@ public InternalCategoryData type(TypeEnum type) { /** * **internal** + * * @return type **internal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +181,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this InternalCategoryData object is equal to o. - */ + /** Return true if this InternalCategoryData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +191,11 @@ public boolean equals(Object o) { return false; } InternalCategoryData internalCategoryData = (InternalCategoryData) o; - return Objects.equals(this.modificationMerchantReference, internalCategoryData.modificationMerchantReference) && - Objects.equals(this.modificationPspReference, internalCategoryData.modificationPspReference) && - Objects.equals(this.type, internalCategoryData.type); + return Objects.equals( + this.modificationMerchantReference, internalCategoryData.modificationMerchantReference) + && Objects.equals( + this.modificationPspReference, internalCategoryData.modificationPspReference) + && Objects.equals(this.type, internalCategoryData.type); } @Override @@ -206,16 +207,19 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InternalCategoryData {\n"); - sb.append(" modificationMerchantReference: ").append(toIndentedString(modificationMerchantReference)).append("\n"); - sb.append(" modificationPspReference: ").append(toIndentedString(modificationPspReference)).append("\n"); + sb.append(" modificationMerchantReference: ") + .append(toIndentedString(modificationMerchantReference)) + .append("\n"); + sb.append(" modificationPspReference: ") + .append(toIndentedString(modificationPspReference)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +228,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of InternalCategoryData given an JSON string * * @param jsonString JSON string * @return An instance of InternalCategoryData - * @throws JsonProcessingException if the JSON string is invalid with respect to InternalCategoryData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * InternalCategoryData */ public static InternalCategoryData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, InternalCategoryData.class); } -/** - * Convert an instance of InternalCategoryData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of InternalCategoryData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/IssuedCard.java b/src/main/java/com/adyen/model/transactionwebhooks/IssuedCard.java index 1956f360e..4be8f2aae 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/IssuedCard.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/IssuedCard.java @@ -2,36 +2,28 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transactionwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transactionwebhooks.RelayedAuthorisationData; -import com.adyen.model.transactionwebhooks.ThreeDSecure; -import com.adyen.model.transactionwebhooks.TransferNotificationValidationFact; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * IssuedCard - */ +/** IssuedCard */ @JsonPropertyOrder({ IssuedCard.JSON_PROPERTY_AUTHORISATION_TYPE, IssuedCard.JSON_PROPERTY_PAN_ENTRY_MODE, @@ -43,16 +35,15 @@ IssuedCard.JSON_PROPERTY_TYPE, IssuedCard.JSON_PROPERTY_VALIDATION_FACTS }) - public class IssuedCard { public static final String JSON_PROPERTY_AUTHORISATION_TYPE = "authorisationType"; private String authorisationType; /** - * Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + * Indicates the method used for entering the PAN to initiate a transaction. Possible values: + * **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. */ public enum PanEntryModeEnum { - CHIP(String.valueOf("chip")), COF(String.valueOf("cof")), @@ -72,7 +63,7 @@ public enum PanEntryModeEnum { private String value; PanEntryModeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -93,7 +84,11 @@ public static PanEntryModeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PanEntryModeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PanEntryModeEnum.values())); + LOG.warning( + "PanEntryModeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PanEntryModeEnum.values())); return null; } } @@ -102,10 +97,10 @@ public static PanEntryModeEnum fromValue(String value) { private PanEntryModeEnum panEntryMode; /** - * Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. + * Contains information about how the payment was processed. For example, **ecommerce** for online + * or **pos** for in-person payments. */ public enum ProcessingTypeEnum { - ATMWITHDRAW(String.valueOf("atmWithdraw")), BALANCEINQUIRY(String.valueOf("balanceInquiry")), @@ -127,7 +122,7 @@ public enum ProcessingTypeEnum { private String value; ProcessingTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -148,7 +143,11 @@ public static ProcessingTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ProcessingTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ProcessingTypeEnum.values())); + LOG.warning( + "ProcessingTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ProcessingTypeEnum.values())); return null; } } @@ -162,17 +161,15 @@ public static ProcessingTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_SCHEME_TRACE_ID = "schemeTraceId"; private String schemeTraceId; - public static final String JSON_PROPERTY_SCHEME_UNIQUE_TRANSACTION_ID = "schemeUniqueTransactionId"; + public static final String JSON_PROPERTY_SCHEME_UNIQUE_TRANSACTION_ID = + "schemeUniqueTransactionId"; private String schemeUniqueTransactionId; public static final String JSON_PROPERTY_THREE_D_SECURE = "threeDSecure"; private ThreeDSecure threeDSecure; - /** - * **issuedCard** - */ + /** **issuedCard** */ public enum TypeEnum { - ISSUEDCARD(String.valueOf("issuedCard")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -180,7 +177,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -201,7 +198,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -212,13 +213,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VALIDATION_FACTS = "validationFacts"; private List validationFacts; - public IssuedCard() { - } + public IssuedCard() {} /** - * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** + * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, + * **finalAuthorisation** * - * @param authorisationType The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** + * @param authorisationType The authorisation type. For example, **defaultAuthorisation**, + * **preAuthorisation**, **finalAuthorisation** * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard authorisationType(String authorisationType) { @@ -227,8 +229,11 @@ public IssuedCard authorisationType(String authorisationType) { } /** - * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** - * @return authorisationType The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** + * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, + * **finalAuthorisation** + * + * @return authorisationType The authorisation type. For example, **defaultAuthorisation**, + * **preAuthorisation**, **finalAuthorisation** */ @JsonProperty(JSON_PROPERTY_AUTHORISATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,9 +242,11 @@ public String getAuthorisationType() { } /** - * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** + * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, + * **finalAuthorisation** * - * @param authorisationType The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** + * @param authorisationType The authorisation type. For example, **defaultAuthorisation**, + * **preAuthorisation**, **finalAuthorisation** */ @JsonProperty(JSON_PROPERTY_AUTHORISATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -248,9 +255,12 @@ public void setAuthorisationType(String authorisationType) { } /** - * Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + * Indicates the method used for entering the PAN to initiate a transaction. Possible values: + * **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. * - * @param panEntryMode Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + * @param panEntryMode Indicates the method used for entering the PAN to initiate a transaction. + * Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, + * **ecommerce**, **token**. * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard panEntryMode(PanEntryModeEnum panEntryMode) { @@ -259,8 +269,12 @@ public IssuedCard panEntryMode(PanEntryModeEnum panEntryMode) { } /** - * Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. - * @return panEntryMode Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + * Indicates the method used for entering the PAN to initiate a transaction. Possible values: + * **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + * + * @return panEntryMode Indicates the method used for entering the PAN to initiate a transaction. + * Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, + * **ecommerce**, **token**. */ @JsonProperty(JSON_PROPERTY_PAN_ENTRY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -269,9 +283,12 @@ public PanEntryModeEnum getPanEntryMode() { } /** - * Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + * Indicates the method used for entering the PAN to initiate a transaction. Possible values: + * **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. * - * @param panEntryMode Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + * @param panEntryMode Indicates the method used for entering the PAN to initiate a transaction. + * Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, + * **ecommerce**, **token**. */ @JsonProperty(JSON_PROPERTY_PAN_ENTRY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -280,9 +297,11 @@ public void setPanEntryMode(PanEntryModeEnum panEntryMode) { } /** - * Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. + * Contains information about how the payment was processed. For example, **ecommerce** for online + * or **pos** for in-person payments. * - * @param processingType Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. + * @param processingType Contains information about how the payment was processed. For example, + * **ecommerce** for online or **pos** for in-person payments. * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard processingType(ProcessingTypeEnum processingType) { @@ -291,8 +310,11 @@ public IssuedCard processingType(ProcessingTypeEnum processingType) { } /** - * Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. - * @return processingType Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. + * Contains information about how the payment was processed. For example, **ecommerce** for online + * or **pos** for in-person payments. + * + * @return processingType Contains information about how the payment was processed. For example, + * **ecommerce** for online or **pos** for in-person payments. */ @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -301,9 +323,11 @@ public ProcessingTypeEnum getProcessingType() { } /** - * Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. + * Contains information about how the payment was processed. For example, **ecommerce** for online + * or **pos** for in-person payments. * - * @param processingType Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. + * @param processingType Contains information about how the payment was processed. For example, + * **ecommerce** for online or **pos** for in-person payments. */ @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -314,7 +338,7 @@ public void setProcessingType(ProcessingTypeEnum processingType) { /** * relayedAuthorisationData * - * @param relayedAuthorisationData + * @param relayedAuthorisationData * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard relayedAuthorisationData(RelayedAuthorisationData relayedAuthorisationData) { @@ -324,7 +348,8 @@ public IssuedCard relayedAuthorisationData(RelayedAuthorisationData relayedAutho /** * Get relayedAuthorisationData - * @return relayedAuthorisationData + * + * @return relayedAuthorisationData */ @JsonProperty(JSON_PROPERTY_RELAYED_AUTHORISATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -335,7 +360,7 @@ public RelayedAuthorisationData getRelayedAuthorisationData() { /** * relayedAuthorisationData * - * @param relayedAuthorisationData + * @param relayedAuthorisationData */ @JsonProperty(JSON_PROPERTY_RELAYED_AUTHORISATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -344,9 +369,17 @@ public void setRelayedAuthorisationData(RelayedAuthorisationData relayedAuthoris } /** - * The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. + * The identifier of the original payment. This ID is provided by the scheme and can be + * alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to + * an original `schemeUniqueTransactionID` provided in an earlier payment (not + * necessarily processed by Adyen). A `schemeTraceId` is typically available for + * authorization adjustments or recurring payments. * - * @param schemeTraceId The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. + * @param schemeTraceId The identifier of the original payment. This ID is provided by the scheme + * and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` + * should refer to an original `schemeUniqueTransactionID` provided in an earlier + * payment (not necessarily processed by Adyen). A `schemeTraceId` is typically + * available for authorization adjustments or recurring payments. * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard schemeTraceId(String schemeTraceId) { @@ -355,8 +388,17 @@ public IssuedCard schemeTraceId(String schemeTraceId) { } /** - * The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. - * @return schemeTraceId The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. + * The identifier of the original payment. This ID is provided by the scheme and can be + * alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to + * an original `schemeUniqueTransactionID` provided in an earlier payment (not + * necessarily processed by Adyen). A `schemeTraceId` is typically available for + * authorization adjustments or recurring payments. + * + * @return schemeTraceId The identifier of the original payment. This ID is provided by the scheme + * and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` + * should refer to an original `schemeUniqueTransactionID` provided in an earlier + * payment (not necessarily processed by Adyen). A `schemeTraceId` is typically + * available for authorization adjustments or recurring payments. */ @JsonProperty(JSON_PROPERTY_SCHEME_TRACE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -365,9 +407,17 @@ public String getSchemeTraceId() { } /** - * The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. + * The identifier of the original payment. This ID is provided by the scheme and can be + * alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to + * an original `schemeUniqueTransactionID` provided in an earlier payment (not + * necessarily processed by Adyen). A `schemeTraceId` is typically available for + * authorization adjustments or recurring payments. * - * @param schemeTraceId The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. + * @param schemeTraceId The identifier of the original payment. This ID is provided by the scheme + * and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` + * should refer to an original `schemeUniqueTransactionID` provided in an earlier + * payment (not necessarily processed by Adyen). A `schemeTraceId` is typically + * available for authorization adjustments or recurring payments. */ @JsonProperty(JSON_PROPERTY_SCHEME_TRACE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -376,9 +426,11 @@ public void setSchemeTraceId(String schemeTraceId) { } /** - * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. + * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending + * on the scheme. * - * @param schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. + * @param schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be + * alphanumeric or numeric depending on the scheme. * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard schemeUniqueTransactionId(String schemeUniqueTransactionId) { @@ -387,8 +439,11 @@ public IssuedCard schemeUniqueTransactionId(String schemeUniqueTransactionId) { } /** - * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. - * @return schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. + * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending + * on the scheme. + * + * @return schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be + * alphanumeric or numeric depending on the scheme. */ @JsonProperty(JSON_PROPERTY_SCHEME_UNIQUE_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -397,9 +452,11 @@ public String getSchemeUniqueTransactionId() { } /** - * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. + * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending + * on the scheme. * - * @param schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. + * @param schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be + * alphanumeric or numeric depending on the scheme. */ @JsonProperty(JSON_PROPERTY_SCHEME_UNIQUE_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -410,7 +467,7 @@ public void setSchemeUniqueTransactionId(String schemeUniqueTransactionId) { /** * threeDSecure * - * @param threeDSecure + * @param threeDSecure * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard threeDSecure(ThreeDSecure threeDSecure) { @@ -420,7 +477,8 @@ public IssuedCard threeDSecure(ThreeDSecure threeDSecure) { /** * Get threeDSecure - * @return threeDSecure + * + * @return threeDSecure */ @JsonProperty(JSON_PROPERTY_THREE_D_SECURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -431,7 +489,7 @@ public ThreeDSecure getThreeDSecure() { /** * threeDSecure * - * @param threeDSecure + * @param threeDSecure */ @JsonProperty(JSON_PROPERTY_THREE_D_SECURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -452,6 +510,7 @@ public IssuedCard type(TypeEnum type) { /** * **issuedCard** + * * @return type **issuedCard** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -472,9 +531,11 @@ public void setType(TypeEnum type) { } /** - * The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * The evaluation of the validation facts. See [validation + * checks](https://docs.adyen.com/issuing/validation-checks) for more information. * - * @param validationFacts The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * @param validationFacts The evaluation of the validation facts. See [validation + * checks](https://docs.adyen.com/issuing/validation-checks) for more information. * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard validationFacts(List validationFacts) { @@ -491,8 +552,11 @@ public IssuedCard addValidationFactsItem(TransferNotificationValidationFact vali } /** - * The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. - * @return validationFacts The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * The evaluation of the validation facts. See [validation + * checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * + * @return validationFacts The evaluation of the validation facts. See [validation + * checks](https://docs.adyen.com/issuing/validation-checks) for more information. */ @JsonProperty(JSON_PROPERTY_VALIDATION_FACTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -501,9 +565,11 @@ public List getValidationFacts() { } /** - * The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * The evaluation of the validation facts. See [validation + * checks](https://docs.adyen.com/issuing/validation-checks) for more information. * - * @param validationFacts The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * @param validationFacts The evaluation of the validation facts. See [validation + * checks](https://docs.adyen.com/issuing/validation-checks) for more information. */ @JsonProperty(JSON_PROPERTY_VALIDATION_FACTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -511,9 +577,7 @@ public void setValidationFacts(List validati this.validationFacts = validationFacts; } - /** - * Return true if this IssuedCard object is equal to o. - */ + /** Return true if this IssuedCard object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -523,20 +587,29 @@ public boolean equals(Object o) { return false; } IssuedCard issuedCard = (IssuedCard) o; - return Objects.equals(this.authorisationType, issuedCard.authorisationType) && - Objects.equals(this.panEntryMode, issuedCard.panEntryMode) && - Objects.equals(this.processingType, issuedCard.processingType) && - Objects.equals(this.relayedAuthorisationData, issuedCard.relayedAuthorisationData) && - Objects.equals(this.schemeTraceId, issuedCard.schemeTraceId) && - Objects.equals(this.schemeUniqueTransactionId, issuedCard.schemeUniqueTransactionId) && - Objects.equals(this.threeDSecure, issuedCard.threeDSecure) && - Objects.equals(this.type, issuedCard.type) && - Objects.equals(this.validationFacts, issuedCard.validationFacts); + return Objects.equals(this.authorisationType, issuedCard.authorisationType) + && Objects.equals(this.panEntryMode, issuedCard.panEntryMode) + && Objects.equals(this.processingType, issuedCard.processingType) + && Objects.equals(this.relayedAuthorisationData, issuedCard.relayedAuthorisationData) + && Objects.equals(this.schemeTraceId, issuedCard.schemeTraceId) + && Objects.equals(this.schemeUniqueTransactionId, issuedCard.schemeUniqueTransactionId) + && Objects.equals(this.threeDSecure, issuedCard.threeDSecure) + && Objects.equals(this.type, issuedCard.type) + && Objects.equals(this.validationFacts, issuedCard.validationFacts); } @Override public int hashCode() { - return Objects.hash(authorisationType, panEntryMode, processingType, relayedAuthorisationData, schemeTraceId, schemeUniqueTransactionId, threeDSecure, type, validationFacts); + return Objects.hash( + authorisationType, + panEntryMode, + processingType, + relayedAuthorisationData, + schemeTraceId, + schemeUniqueTransactionId, + threeDSecure, + type, + validationFacts); } @Override @@ -546,9 +619,13 @@ public String toString() { sb.append(" authorisationType: ").append(toIndentedString(authorisationType)).append("\n"); sb.append(" panEntryMode: ").append(toIndentedString(panEntryMode)).append("\n"); sb.append(" processingType: ").append(toIndentedString(processingType)).append("\n"); - sb.append(" relayedAuthorisationData: ").append(toIndentedString(relayedAuthorisationData)).append("\n"); + sb.append(" relayedAuthorisationData: ") + .append(toIndentedString(relayedAuthorisationData)) + .append("\n"); sb.append(" schemeTraceId: ").append(toIndentedString(schemeTraceId)).append("\n"); - sb.append(" schemeUniqueTransactionId: ").append(toIndentedString(schemeUniqueTransactionId)).append("\n"); + sb.append(" schemeUniqueTransactionId: ") + .append(toIndentedString(schemeUniqueTransactionId)) + .append("\n"); sb.append(" threeDSecure: ").append(toIndentedString(threeDSecure)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" validationFacts: ").append(toIndentedString(validationFacts)).append("\n"); @@ -557,8 +634,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -567,7 +643,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of IssuedCard given an JSON string * * @param jsonString JSON string @@ -577,11 +653,12 @@ private String toIndentedString(Object o) { public static IssuedCard fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, IssuedCard.class); } -/** - * Convert an instance of IssuedCard to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of IssuedCard to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/JSON.java b/src/main/java/com/adyen/model/transactionwebhooks/JSON.java index 5c91cb868..2dd25328b 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/JSON.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/JSON.java @@ -1,21 +1,18 @@ package com.adyen.model.transactionwebhooks; -import com.adyen.serializer.ByteArraySerializer; import com.adyen.serializer.ByteArrayDeserializer; +import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import com.adyen.model.transactionwebhooks.*; - +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -40,6 +37,7 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. + * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -56,11 +54,13 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { return mapper; } + public static ObjectMapper getMapper() { + return mapper; + } /** - * Returns the target model class that should be used to deserialize the input data. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,9 +73,7 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** - * Helper class to register the discriminator mappings. - */ + /** Helper class to register the discriminator mappings. */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -117,9 +115,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. - * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. This + * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -164,13 +162,14 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, - * so it's not possible to use the instanceof keyword. + *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so + * it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf( + Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -194,59 +193,58 @@ public static boolean isInstanceOf(Class modelClass, Object inst, Set, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); + /** A map of discriminators for all model classes. */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = + new HashMap, ClassDiscriminatorMapping>(); - /** - * A map of oneOf/anyOf descendants for each model class. - */ + /** A map of oneOf/anyOf descendants for each model class. */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator( + Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = + new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants(Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants( + Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static - { + static { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/PaymentInstrument.java b/src/main/java/com/adyen/model/transactionwebhooks/PaymentInstrument.java index aa84a43d4..ad51ffa3c 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/PaymentInstrument.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/PaymentInstrument.java @@ -2,38 +2,28 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transactionwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * PaymentInstrument - */ +/** PaymentInstrument */ @JsonPropertyOrder({ PaymentInstrument.JSON_PROPERTY_DESCRIPTION, PaymentInstrument.JSON_PROPERTY_ID, PaymentInstrument.JSON_PROPERTY_REFERENCE, PaymentInstrument.JSON_PROPERTY_TOKEN_TYPE }) - public class PaymentInstrument { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -47,8 +37,7 @@ public class PaymentInstrument { public static final String JSON_PROPERTY_TOKEN_TYPE = "tokenType"; private String tokenType; - public PaymentInstrument() { - } + public PaymentInstrument() {} /** * The description of the resource. @@ -63,6 +52,7 @@ public PaymentInstrument description(String description) { /** * The description of the resource. + * * @return description The description of the resource. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -95,6 +85,7 @@ public PaymentInstrument id(String id) { /** * The unique identifier of the resource. + * * @return id The unique identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -127,6 +118,7 @@ public PaymentInstrument reference(String reference) { /** * The reference for the resource. + * * @return reference The reference for the resource. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -159,6 +151,7 @@ public PaymentInstrument tokenType(String tokenType) { /** * The type of wallet that the network token is associated with. + * * @return tokenType The type of wallet that the network token is associated with. */ @JsonProperty(JSON_PROPERTY_TOKEN_TYPE) @@ -178,9 +171,7 @@ public void setTokenType(String tokenType) { this.tokenType = tokenType; } - /** - * Return true if this PaymentInstrument object is equal to o. - */ + /** Return true if this PaymentInstrument object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -190,10 +181,10 @@ public boolean equals(Object o) { return false; } PaymentInstrument paymentInstrument = (PaymentInstrument) o; - return Objects.equals(this.description, paymentInstrument.description) && - Objects.equals(this.id, paymentInstrument.id) && - Objects.equals(this.reference, paymentInstrument.reference) && - Objects.equals(this.tokenType, paymentInstrument.tokenType); + return Objects.equals(this.description, paymentInstrument.description) + && Objects.equals(this.id, paymentInstrument.id) + && Objects.equals(this.reference, paymentInstrument.reference) + && Objects.equals(this.tokenType, paymentInstrument.tokenType); } @Override @@ -214,8 +205,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,7 +214,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentInstrument given an JSON string * * @param jsonString JSON string @@ -234,11 +224,12 @@ private String toIndentedString(Object o) { public static PaymentInstrument fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentInstrument.class); } -/** - * Convert an instance of PaymentInstrument to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentInstrument to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/PlatformPayment.java b/src/main/java/com/adyen/model/transactionwebhooks/PlatformPayment.java index 7ff66d726..f13b20b98 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/PlatformPayment.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/PlatformPayment.java @@ -2,31 +2,26 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transactionwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * PlatformPayment - */ +/** PlatformPayment */ @JsonPropertyOrder({ PlatformPayment.JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE, PlatformPayment.JSON_PROPERTY_MODIFICATION_PSP_REFERENCE, @@ -35,9 +30,9 @@ PlatformPayment.JSON_PROPERTY_PSP_PAYMENT_REFERENCE, PlatformPayment.JSON_PROPERTY_TYPE }) - public class PlatformPayment { - public static final String JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE = "modificationMerchantReference"; + public static final String JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE = + "modificationMerchantReference"; private String modificationMerchantReference; public static final String JSON_PROPERTY_MODIFICATION_PSP_REFERENCE = "modificationPspReference"; @@ -47,10 +42,28 @@ public class PlatformPayment { private String paymentMerchantReference; /** - * Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. + * Specifies the nature of the transfer. This parameter helps categorize transfers so you can + * reconcile transactions at a later time, using the Balance Platform Accounting Report for + * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) + * or + * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). + * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * + * **AdyenCommission**: for the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). + * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's + * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen + * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale + * amount of a transaction. * **Commission**: for your platform's commission on a transaction. + * * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * + * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * + * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount + * after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This + * is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge + * paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * + * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for + * the Value Added Tax. */ public enum PlatformPaymentTypeEnum { - ACQUIRINGFEES(String.valueOf("AcquiringFees")), ADYENCOMMISSION(String.valueOf("AdyenCommission")), @@ -90,7 +103,7 @@ public enum PlatformPaymentTypeEnum { private String value; PlatformPaymentTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -111,7 +124,11 @@ public static PlatformPaymentTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PlatformPaymentTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PlatformPaymentTypeEnum.values())); + LOG.warning( + "PlatformPaymentTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PlatformPaymentTypeEnum.values())); return null; } } @@ -122,11 +139,8 @@ public static PlatformPaymentTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_PSP_PAYMENT_REFERENCE = "pspPaymentReference"; private String pspPaymentReference; - /** - * **platformPayment** - */ + /** **platformPayment** */ public enum TypeEnum { - PLATFORMPAYMENT(String.valueOf("platformPayment")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -134,7 +148,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -155,7 +169,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -163,13 +181,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PlatformPayment() { - } + public PlatformPayment() {} /** * The capture's merchant reference included in the transfer. * - * @param modificationMerchantReference The capture's merchant reference included in the transfer. + * @param modificationMerchantReference The capture's merchant reference included in the + * transfer. * @return the current {@code PlatformPayment} instance, allowing for method chaining */ public PlatformPayment modificationMerchantReference(String modificationMerchantReference) { @@ -179,7 +197,9 @@ public PlatformPayment modificationMerchantReference(String modificationMerchant /** * The capture's merchant reference included in the transfer. - * @return modificationMerchantReference The capture's merchant reference included in the transfer. + * + * @return modificationMerchantReference The capture's merchant reference included in the + * transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,7 +210,8 @@ public String getModificationMerchantReference() { /** * The capture's merchant reference included in the transfer. * - * @param modificationMerchantReference The capture's merchant reference included in the transfer. + * @param modificationMerchantReference The capture's merchant reference included in the + * transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,6 +232,7 @@ public PlatformPayment modificationPspReference(String modificationPspReference) /** * The capture reference included in the transfer. + * * @return modificationPspReference The capture reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_PSP_REFERENCE) @@ -243,6 +265,7 @@ public PlatformPayment paymentMerchantReference(String paymentMerchantReference) /** * The payment's merchant reference included in the transfer. + * * @return paymentMerchantReference The payment's merchant reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_PAYMENT_MERCHANT_REFERENCE) @@ -263,9 +286,48 @@ public void setPaymentMerchantReference(String paymentMerchantReference) { } /** - * Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. + * Specifies the nature of the transfer. This parameter helps categorize transfers so you can + * reconcile transactions at a later time, using the Balance Platform Accounting Report for + * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) + * or + * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). + * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * + * **AdyenCommission**: for the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). + * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's + * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen + * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale + * amount of a transaction. * **Commission**: for your platform's commission on a transaction. + * * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * + * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * + * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount + * after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This + * is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge + * paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * + * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for + * the Value Added Tax. * - * @param platformPaymentType Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. + * @param platformPaymentType Specifies the nature of the transfer. This parameter helps + * categorize transfers so you can reconcile transactions at a later time, using the Balance + * Platform Accounting Report for + * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) + * or + * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). + * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * + * **AdyenCommission**: for the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). + * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's + * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen + * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the + * sale amount of a transaction. * **Commission**: for your platform's commission on a + * transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a + * transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred + * on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for + * the left over amount after currency conversion. * **SchemeFee**: for the scheme fee + * incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. + * * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for + * the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your + * user's balance account. * **VAT**: for the Value Added Tax. * @return the current {@code PlatformPayment} instance, allowing for method chaining */ public PlatformPayment platformPaymentType(PlatformPaymentTypeEnum platformPaymentType) { @@ -274,8 +336,48 @@ public PlatformPayment platformPaymentType(PlatformPaymentTypeEnum platformPayme } /** - * Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. - * @return platformPaymentType Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. + * Specifies the nature of the transfer. This parameter helps categorize transfers so you can + * reconcile transactions at a later time, using the Balance Platform Accounting Report for + * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) + * or + * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). + * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * + * **AdyenCommission**: for the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). + * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's + * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen + * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale + * amount of a transaction. * **Commission**: for your platform's commission on a transaction. + * * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * + * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * + * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount + * after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This + * is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge + * paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * + * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for + * the Value Added Tax. + * + * @return platformPaymentType Specifies the nature of the transfer. This parameter helps + * categorize transfers so you can reconcile transactions at a later time, using the Balance + * Platform Accounting Report for + * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) + * or + * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). + * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * + * **AdyenCommission**: for the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). + * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's + * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen + * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the + * sale amount of a transaction. * **Commission**: for your platform's commission on a + * transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a + * transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred + * on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for + * the left over amount after currency conversion. * **SchemeFee**: for the scheme fee + * incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. + * * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for + * the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your + * user's balance account. * **VAT**: for the Value Added Tax. */ @JsonProperty(JSON_PROPERTY_PLATFORM_PAYMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,9 +386,48 @@ public PlatformPaymentTypeEnum getPlatformPaymentType() { } /** - * Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. + * Specifies the nature of the transfer. This parameter helps categorize transfers so you can + * reconcile transactions at a later time, using the Balance Platform Accounting Report for + * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) + * or + * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). + * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * + * **AdyenCommission**: for the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). + * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's + * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen + * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale + * amount of a transaction. * **Commission**: for your platform's commission on a transaction. + * * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * + * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * + * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount + * after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This + * is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge + * paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * + * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for + * the Value Added Tax. * - * @param platformPaymentType Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. + * @param platformPaymentType Specifies the nature of the transfer. This parameter helps + * categorize transfers so you can reconcile transactions at a later time, using the Balance + * Platform Accounting Report for + * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) + * or + * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). + * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * + * **AdyenCommission**: for the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). + * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's + * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen + * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the + * sale amount of a transaction. * **Commission**: for your platform's commission on a + * transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a + * transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred + * on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for + * the left over amount after currency conversion. * **SchemeFee**: for the scheme fee + * incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. + * * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for + * the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your + * user's balance account. * **VAT**: for the Value Added Tax. */ @JsonProperty(JSON_PROPERTY_PLATFORM_PAYMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -307,6 +448,7 @@ public PlatformPayment pspPaymentReference(String pspPaymentReference) { /** * The payment reference included in the transfer. + * * @return pspPaymentReference The payment reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_PSP_PAYMENT_REFERENCE) @@ -339,6 +481,7 @@ public PlatformPayment type(TypeEnum type) { /** * **platformPayment** + * * @return type **platformPayment** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -358,9 +501,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this PlatformPayment object is equal to o. - */ + /** Return true if this PlatformPayment object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -370,36 +511,52 @@ public boolean equals(Object o) { return false; } PlatformPayment platformPayment = (PlatformPayment) o; - return Objects.equals(this.modificationMerchantReference, platformPayment.modificationMerchantReference) && - Objects.equals(this.modificationPspReference, platformPayment.modificationPspReference) && - Objects.equals(this.paymentMerchantReference, platformPayment.paymentMerchantReference) && - Objects.equals(this.platformPaymentType, platformPayment.platformPaymentType) && - Objects.equals(this.pspPaymentReference, platformPayment.pspPaymentReference) && - Objects.equals(this.type, platformPayment.type); + return Objects.equals( + this.modificationMerchantReference, platformPayment.modificationMerchantReference) + && Objects.equals(this.modificationPspReference, platformPayment.modificationPspReference) + && Objects.equals(this.paymentMerchantReference, platformPayment.paymentMerchantReference) + && Objects.equals(this.platformPaymentType, platformPayment.platformPaymentType) + && Objects.equals(this.pspPaymentReference, platformPayment.pspPaymentReference) + && Objects.equals(this.type, platformPayment.type); } @Override public int hashCode() { - return Objects.hash(modificationMerchantReference, modificationPspReference, paymentMerchantReference, platformPaymentType, pspPaymentReference, type); + return Objects.hash( + modificationMerchantReference, + modificationPspReference, + paymentMerchantReference, + platformPaymentType, + pspPaymentReference, + type); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PlatformPayment {\n"); - sb.append(" modificationMerchantReference: ").append(toIndentedString(modificationMerchantReference)).append("\n"); - sb.append(" modificationPspReference: ").append(toIndentedString(modificationPspReference)).append("\n"); - sb.append(" paymentMerchantReference: ").append(toIndentedString(paymentMerchantReference)).append("\n"); - sb.append(" platformPaymentType: ").append(toIndentedString(platformPaymentType)).append("\n"); - sb.append(" pspPaymentReference: ").append(toIndentedString(pspPaymentReference)).append("\n"); + sb.append(" modificationMerchantReference: ") + .append(toIndentedString(modificationMerchantReference)) + .append("\n"); + sb.append(" modificationPspReference: ") + .append(toIndentedString(modificationPspReference)) + .append("\n"); + sb.append(" paymentMerchantReference: ") + .append(toIndentedString(paymentMerchantReference)) + .append("\n"); + sb.append(" platformPaymentType: ") + .append(toIndentedString(platformPaymentType)) + .append("\n"); + sb.append(" pspPaymentReference: ") + .append(toIndentedString(pspPaymentReference)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -408,7 +565,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PlatformPayment given an JSON string * * @param jsonString JSON string @@ -418,11 +575,12 @@ private String toIndentedString(Object o) { public static PlatformPayment fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PlatformPayment.class); } -/** - * Convert an instance of PlatformPayment to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PlatformPayment to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/RelayedAuthorisationData.java b/src/main/java/com/adyen/model/transactionwebhooks/RelayedAuthorisationData.java index 809774abb..00a7565d7 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/RelayedAuthorisationData.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/RelayedAuthorisationData.java @@ -2,38 +2,28 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transactionwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.HashMap; +import java.util.Map; - -/** - * RelayedAuthorisationData - */ +/** RelayedAuthorisationData */ @JsonPropertyOrder({ RelayedAuthorisationData.JSON_PROPERTY_METADATA, RelayedAuthorisationData.JSON_PROPERTY_REFERENCE }) - public class RelayedAuthorisationData { public static final String JSON_PROPERTY_METADATA = "metadata"; private Map metadata; @@ -41,13 +31,14 @@ public class RelayedAuthorisationData { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public RelayedAuthorisationData() { - } + public RelayedAuthorisationData() {} /** - * Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. + * Contains key-value pairs of your references and descriptions, for example, + * `customId`:`your-own-custom-field-12345`. * - * @param metadata Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. + * @param metadata Contains key-value pairs of your references and descriptions, for example, + * `customId`:`your-own-custom-field-12345`. * @return the current {@code RelayedAuthorisationData} instance, allowing for method chaining */ public RelayedAuthorisationData metadata(Map metadata) { @@ -64,8 +55,11 @@ public RelayedAuthorisationData putMetadataItem(String key, String metadataItem) } /** - * Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. - * @return metadata Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. + * Contains key-value pairs of your references and descriptions, for example, + * `customId`:`your-own-custom-field-12345`. + * + * @return metadata Contains key-value pairs of your references and descriptions, for example, + * `customId`:`your-own-custom-field-12345`. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -74,9 +68,11 @@ public Map getMetadata() { } /** - * Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. + * Contains key-value pairs of your references and descriptions, for example, + * `customId`:`your-own-custom-field-12345`. * - * @param metadata Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. + * @param metadata Contains key-value pairs of your references and descriptions, for example, + * `customId`:`your-own-custom-field-12345`. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,6 +93,7 @@ public RelayedAuthorisationData reference(String reference) { /** * Your reference for the relayed authorisation data. + * * @return reference Your reference for the relayed authorisation data. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -116,9 +113,7 @@ public void setReference(String reference) { this.reference = reference; } - /** - * Return true if this RelayedAuthorisationData object is equal to o. - */ + /** Return true if this RelayedAuthorisationData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -128,8 +123,8 @@ public boolean equals(Object o) { return false; } RelayedAuthorisationData relayedAuthorisationData = (RelayedAuthorisationData) o; - return Objects.equals(this.metadata, relayedAuthorisationData.metadata) && - Objects.equals(this.reference, relayedAuthorisationData.reference); + return Objects.equals(this.metadata, relayedAuthorisationData.metadata) + && Objects.equals(this.reference, relayedAuthorisationData.reference); } @Override @@ -148,8 +143,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -158,21 +152,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RelayedAuthorisationData given an JSON string * * @param jsonString JSON string * @return An instance of RelayedAuthorisationData - * @throws JsonProcessingException if the JSON string is invalid with respect to RelayedAuthorisationData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * RelayedAuthorisationData */ - public static RelayedAuthorisationData fromJson(String jsonString) throws JsonProcessingException { + public static RelayedAuthorisationData fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RelayedAuthorisationData.class); } -/** - * Convert an instance of RelayedAuthorisationData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RelayedAuthorisationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/Resource.java b/src/main/java/com/adyen/model/transactionwebhooks/Resource.java index 231d80d6f..925b9380f 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/Resource.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/Resource.java @@ -2,38 +2,28 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transactionwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.time.OffsetDateTime; +import java.util.*; - -/** - * Resource - */ +/** Resource */ @JsonPropertyOrder({ Resource.JSON_PROPERTY_BALANCE_PLATFORM, Resource.JSON_PROPERTY_CREATION_DATE, Resource.JSON_PROPERTY_ID }) - public class Resource { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; @@ -44,8 +34,7 @@ public class Resource { public static final String JSON_PROPERTY_ID = "id"; private String id; - public Resource() { - } + public Resource() {} /** * The unique identifier of the balance platform. @@ -60,6 +49,7 @@ public Resource balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. + * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -80,9 +70,11 @@ public void setBalancePlatform(String balancePlatform) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code Resource} instance, allowing for method chaining */ public Resource creationDate(OffsetDateTime creationDate) { @@ -91,8 +83,11 @@ public Resource creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. + * + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,9 +96,11 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,6 +121,7 @@ public Resource id(String id) { /** * The ID of the resource. + * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -143,9 +141,7 @@ public void setId(String id) { this.id = id; } - /** - * Return true if this Resource object is equal to o. - */ + /** Return true if this Resource object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -155,9 +151,9 @@ public boolean equals(Object o) { return false; } Resource resource = (Resource) o; - return Objects.equals(this.balancePlatform, resource.balancePlatform) && - Objects.equals(this.creationDate, resource.creationDate) && - Objects.equals(this.id, resource.id); + return Objects.equals(this.balancePlatform, resource.balancePlatform) + && Objects.equals(this.creationDate, resource.creationDate) + && Objects.equals(this.id, resource.id); } @Override @@ -177,8 +173,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -187,7 +182,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Resource given an JSON string * * @param jsonString JSON string @@ -197,11 +192,12 @@ private String toIndentedString(Object o) { public static Resource fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Resource.class); } -/** - * Convert an instance of Resource to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Resource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/ResourceReference.java b/src/main/java/com/adyen/model/transactionwebhooks/ResourceReference.java index d71ad181e..da124b0c4 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/ResourceReference.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/ResourceReference.java @@ -2,37 +2,27 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transactionwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ResourceReference - */ +/** ResourceReference */ @JsonPropertyOrder({ ResourceReference.JSON_PROPERTY_DESCRIPTION, ResourceReference.JSON_PROPERTY_ID, ResourceReference.JSON_PROPERTY_REFERENCE }) - public class ResourceReference { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -43,8 +33,7 @@ public class ResourceReference { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public ResourceReference() { - } + public ResourceReference() {} /** * The description of the resource. @@ -59,6 +48,7 @@ public ResourceReference description(String description) { /** * The description of the resource. + * * @return description The description of the resource. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -91,6 +81,7 @@ public ResourceReference id(String id) { /** * The unique identifier of the resource. + * * @return id The unique identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -123,6 +114,7 @@ public ResourceReference reference(String reference) { /** * The reference for the resource. + * * @return reference The reference for the resource. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -142,9 +134,7 @@ public void setReference(String reference) { this.reference = reference; } - /** - * Return true if this ResourceReference object is equal to o. - */ + /** Return true if this ResourceReference object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +144,9 @@ public boolean equals(Object o) { return false; } ResourceReference resourceReference = (ResourceReference) o; - return Objects.equals(this.description, resourceReference.description) && - Objects.equals(this.id, resourceReference.id) && - Objects.equals(this.reference, resourceReference.reference); + return Objects.equals(this.description, resourceReference.description) + && Objects.equals(this.id, resourceReference.id) + && Objects.equals(this.reference, resourceReference.reference); } @Override @@ -176,8 +166,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +175,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResourceReference given an JSON string * * @param jsonString JSON string @@ -196,11 +185,12 @@ private String toIndentedString(Object o) { public static ResourceReference fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResourceReference.class); } -/** - * Convert an instance of ResourceReference to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResourceReference to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/ThreeDSecure.java b/src/main/java/com/adyen/model/transactionwebhooks/ThreeDSecure.java index 56385b16b..1754e5771 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/ThreeDSecure.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/ThreeDSecure.java @@ -2,41 +2,28 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transactionwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ThreeDSecure - */ -@JsonPropertyOrder({ - ThreeDSecure.JSON_PROPERTY_ACS_TRANSACTION_ID -}) - +/** ThreeDSecure */ +@JsonPropertyOrder({ThreeDSecure.JSON_PROPERTY_ACS_TRANSACTION_ID}) public class ThreeDSecure { public static final String JSON_PROPERTY_ACS_TRANSACTION_ID = "acsTransactionId"; private String acsTransactionId; - public ThreeDSecure() { - } + public ThreeDSecure() {} /** * The transaction identifier for the Access Control Server @@ -51,6 +38,7 @@ public ThreeDSecure acsTransactionId(String acsTransactionId) { /** * The transaction identifier for the Access Control Server + * * @return acsTransactionId The transaction identifier for the Access Control Server */ @JsonProperty(JSON_PROPERTY_ACS_TRANSACTION_ID) @@ -70,9 +58,7 @@ public void setAcsTransactionId(String acsTransactionId) { this.acsTransactionId = acsTransactionId; } - /** - * Return true if this ThreeDSecure object is equal to o. - */ + /** Return true if this ThreeDSecure object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,7 +95,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ThreeDSecure given an JSON string * * @param jsonString JSON string @@ -120,11 +105,12 @@ private String toIndentedString(Object o) { public static ThreeDSecure fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDSecure.class); } -/** - * Convert an instance of ThreeDSecure to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ThreeDSecure to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/Transaction.java b/src/main/java/com/adyen/model/transactionwebhooks/Transaction.java index c8683c342..e583a0cdc 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/Transaction.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/Transaction.java @@ -2,36 +2,27 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transactionwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transactionwebhooks.Amount; -import com.adyen.model.transactionwebhooks.PaymentInstrument; -import com.adyen.model.transactionwebhooks.ResourceReference; -import com.adyen.model.transactionwebhooks.TransferView; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * Transaction - */ +/** Transaction */ @JsonPropertyOrder({ Transaction.JSON_PROPERTY_ACCOUNT_HOLDER, Transaction.JSON_PROPERTY_AMOUNT, @@ -47,7 +38,6 @@ Transaction.JSON_PROPERTY_TRANSFER, Transaction.JSON_PROPERTY_VALUE_DATE }) - public class Transaction { public static final String JSON_PROPERTY_ACCOUNT_HOLDER = "accountHolder"; private ResourceReference accountHolder; @@ -80,10 +70,10 @@ public class Transaction { private String referenceForBeneficiary; /** - * The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. + * The status of the transaction. Possible values: * **pending**: The transaction is still + * pending. * **booked**: The transaction has been booked to the balance account. */ public enum StatusEnum { - BOOKED(String.valueOf("booked")), PENDING(String.valueOf("pending")); @@ -93,7 +83,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -114,7 +104,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -128,13 +122,12 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUE_DATE = "valueDate"; private OffsetDateTime valueDate; - public Transaction() { - } + public Transaction() {} /** * accountHolder * - * @param accountHolder + * @param accountHolder * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction accountHolder(ResourceReference accountHolder) { @@ -144,7 +137,8 @@ public Transaction accountHolder(ResourceReference accountHolder) { /** * Get accountHolder - * @return accountHolder + * + * @return accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -155,7 +149,7 @@ public ResourceReference getAccountHolder() { /** * accountHolder * - * @param accountHolder + * @param accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -166,7 +160,7 @@ public void setAccountHolder(ResourceReference accountHolder) { /** * amount * - * @param amount + * @param amount * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction amount(Amount amount) { @@ -176,7 +170,8 @@ public Transaction amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,7 +182,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,7 +193,7 @@ public void setAmount(Amount amount) { /** * balanceAccount * - * @param balanceAccount + * @param balanceAccount * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction balanceAccount(ResourceReference balanceAccount) { @@ -208,7 +203,8 @@ public Transaction balanceAccount(ResourceReference balanceAccount) { /** * Get balanceAccount - * @return balanceAccount + * + * @return balanceAccount */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,7 +215,7 @@ public ResourceReference getBalanceAccount() { /** * balanceAccount * - * @param balanceAccount + * @param balanceAccount */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,6 +236,7 @@ public Transaction balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. + * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -272,6 +269,7 @@ public Transaction bookingDate(OffsetDateTime bookingDate) { /** * The date the transaction was booked into the balance account. + * * @return bookingDate The date the transaction was booked into the balance account. */ @JsonProperty(JSON_PROPERTY_BOOKING_DATE) @@ -292,9 +290,11 @@ public void setBookingDate(OffsetDateTime bookingDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction creationDate(OffsetDateTime creationDate) { @@ -303,8 +303,11 @@ public Transaction creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. + * + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -313,9 +316,11 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -336,6 +341,7 @@ public Transaction description(String description) { /** * The `description` from the `/transfers` request. + * * @return description The `description` from the `/transfers` request. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -368,6 +374,7 @@ public Transaction id(String id) { /** * The unique identifier of the transaction. + * * @return id The unique identifier of the transaction. */ @JsonProperty(JSON_PROPERTY_ID) @@ -390,7 +397,7 @@ public void setId(String id) { /** * paymentInstrument * - * @param paymentInstrument + * @param paymentInstrument * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction paymentInstrument(PaymentInstrument paymentInstrument) { @@ -400,7 +407,8 @@ public Transaction paymentInstrument(PaymentInstrument paymentInstrument) { /** * Get paymentInstrument - * @return paymentInstrument + * + * @return paymentInstrument */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -411,7 +419,7 @@ public PaymentInstrument getPaymentInstrument() { /** * paymentInstrument * - * @param paymentInstrument + * @param paymentInstrument */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -420,9 +428,18 @@ public void setPaymentInstrument(PaymentInstrument paymentInstrument) { } /** - * The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender. + * The reference sent to or received from the counterparty. * For outgoing funds, this is the + * [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) + * from the + * [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) + * request. * For incoming funds, this is the reference from the sender. * - * @param referenceForBeneficiary The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender. + * @param referenceForBeneficiary The reference sent to or received from the counterparty. * For + * outgoing funds, this is the + * [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) + * from the + * [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) + * request. * For incoming funds, this is the reference from the sender. * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction referenceForBeneficiary(String referenceForBeneficiary) { @@ -431,8 +448,18 @@ public Transaction referenceForBeneficiary(String referenceForBeneficiary) { } /** - * The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender. - * @return referenceForBeneficiary The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender. + * The reference sent to or received from the counterparty. * For outgoing funds, this is the + * [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) + * from the + * [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) + * request. * For incoming funds, this is the reference from the sender. + * + * @return referenceForBeneficiary The reference sent to or received from the counterparty. * For + * outgoing funds, this is the + * [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) + * from the + * [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) + * request. * For incoming funds, this is the reference from the sender. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -441,9 +468,18 @@ public String getReferenceForBeneficiary() { } /** - * The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender. + * The reference sent to or received from the counterparty. * For outgoing funds, this is the + * [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) + * from the + * [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) + * request. * For incoming funds, this is the reference from the sender. * - * @param referenceForBeneficiary The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender. + * @param referenceForBeneficiary The reference sent to or received from the counterparty. * For + * outgoing funds, this is the + * [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) + * from the + * [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) + * request. * For incoming funds, this is the reference from the sender. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -452,9 +488,11 @@ public void setReferenceForBeneficiary(String referenceForBeneficiary) { } /** - * The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. + * The status of the transaction. Possible values: * **pending**: The transaction is still + * pending. * **booked**: The transaction has been booked to the balance account. * - * @param status The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. + * @param status The status of the transaction. Possible values: * **pending**: The transaction is + * still pending. * **booked**: The transaction has been booked to the balance account. * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction status(StatusEnum status) { @@ -463,8 +501,11 @@ public Transaction status(StatusEnum status) { } /** - * The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. - * @return status The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. + * The status of the transaction. Possible values: * **pending**: The transaction is still + * pending. * **booked**: The transaction has been booked to the balance account. + * + * @return status The status of the transaction. Possible values: * **pending**: The transaction + * is still pending. * **booked**: The transaction has been booked to the balance account. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -473,9 +514,11 @@ public StatusEnum getStatus() { } /** - * The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. + * The status of the transaction. Possible values: * **pending**: The transaction is still + * pending. * **booked**: The transaction has been booked to the balance account. * - * @param status The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. + * @param status The status of the transaction. Possible values: * **pending**: The transaction is + * still pending. * **booked**: The transaction has been booked to the balance account. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -486,7 +529,7 @@ public void setStatus(StatusEnum status) { /** * transfer * - * @param transfer + * @param transfer * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction transfer(TransferView transfer) { @@ -496,7 +539,8 @@ public Transaction transfer(TransferView transfer) { /** * Get transfer - * @return transfer + * + * @return transfer */ @JsonProperty(JSON_PROPERTY_TRANSFER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -507,7 +551,7 @@ public TransferView getTransfer() { /** * transfer * - * @param transfer + * @param transfer */ @JsonProperty(JSON_PROPERTY_TRANSFER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -528,6 +572,7 @@ public Transaction valueDate(OffsetDateTime valueDate) { /** * The date the transfer amount becomes available in the balance account. + * * @return valueDate The date the transfer amount becomes available in the balance account. */ @JsonProperty(JSON_PROPERTY_VALUE_DATE) @@ -547,9 +592,7 @@ public void setValueDate(OffsetDateTime valueDate) { this.valueDate = valueDate; } - /** - * Return true if this Transaction object is equal to o. - */ + /** Return true if this Transaction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -559,24 +602,37 @@ public boolean equals(Object o) { return false; } Transaction transaction = (Transaction) o; - return Objects.equals(this.accountHolder, transaction.accountHolder) && - Objects.equals(this.amount, transaction.amount) && - Objects.equals(this.balanceAccount, transaction.balanceAccount) && - Objects.equals(this.balancePlatform, transaction.balancePlatform) && - Objects.equals(this.bookingDate, transaction.bookingDate) && - Objects.equals(this.creationDate, transaction.creationDate) && - Objects.equals(this.description, transaction.description) && - Objects.equals(this.id, transaction.id) && - Objects.equals(this.paymentInstrument, transaction.paymentInstrument) && - Objects.equals(this.referenceForBeneficiary, transaction.referenceForBeneficiary) && - Objects.equals(this.status, transaction.status) && - Objects.equals(this.transfer, transaction.transfer) && - Objects.equals(this.valueDate, transaction.valueDate); + return Objects.equals(this.accountHolder, transaction.accountHolder) + && Objects.equals(this.amount, transaction.amount) + && Objects.equals(this.balanceAccount, transaction.balanceAccount) + && Objects.equals(this.balancePlatform, transaction.balancePlatform) + && Objects.equals(this.bookingDate, transaction.bookingDate) + && Objects.equals(this.creationDate, transaction.creationDate) + && Objects.equals(this.description, transaction.description) + && Objects.equals(this.id, transaction.id) + && Objects.equals(this.paymentInstrument, transaction.paymentInstrument) + && Objects.equals(this.referenceForBeneficiary, transaction.referenceForBeneficiary) + && Objects.equals(this.status, transaction.status) + && Objects.equals(this.transfer, transaction.transfer) + && Objects.equals(this.valueDate, transaction.valueDate); } @Override public int hashCode() { - return Objects.hash(accountHolder, amount, balanceAccount, balancePlatform, bookingDate, creationDate, description, id, paymentInstrument, referenceForBeneficiary, status, transfer, valueDate); + return Objects.hash( + accountHolder, + amount, + balanceAccount, + balancePlatform, + bookingDate, + creationDate, + description, + id, + paymentInstrument, + referenceForBeneficiary, + status, + transfer, + valueDate); } @Override @@ -592,7 +648,9 @@ public String toString() { sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" paymentInstrument: ").append(toIndentedString(paymentInstrument)).append("\n"); - sb.append(" referenceForBeneficiary: ").append(toIndentedString(referenceForBeneficiary)).append("\n"); + sb.append(" referenceForBeneficiary: ") + .append(toIndentedString(referenceForBeneficiary)) + .append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" transfer: ").append(toIndentedString(transfer)).append("\n"); sb.append(" valueDate: ").append(toIndentedString(valueDate)).append("\n"); @@ -601,8 +659,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -611,7 +668,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Transaction given an JSON string * * @param jsonString JSON string @@ -621,11 +678,12 @@ private String toIndentedString(Object o) { public static Transaction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Transaction.class); } -/** - * Convert an instance of Transaction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Transaction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/TransactionNotificationRequestV4.java b/src/main/java/com/adyen/model/transactionwebhooks/TransactionNotificationRequestV4.java index 31c3f9e7c..0caf28581 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/TransactionNotificationRequestV4.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/TransactionNotificationRequestV4.java @@ -2,40 +2,33 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transactionwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transactionwebhooks.Transaction; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * TransactionNotificationRequestV4 - */ +/** TransactionNotificationRequestV4 */ @JsonPropertyOrder({ TransactionNotificationRequestV4.JSON_PROPERTY_DATA, TransactionNotificationRequestV4.JSON_PROPERTY_ENVIRONMENT, TransactionNotificationRequestV4.JSON_PROPERTY_TIMESTAMP, TransactionNotificationRequestV4.JSON_PROPERTY_TYPE }) - public class TransactionNotificationRequestV4 { public static final String JSON_PROPERTY_DATA = "data"; private Transaction data; @@ -46,11 +39,8 @@ public class TransactionNotificationRequestV4 { public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; private OffsetDateTime timestamp; - /** - * Type of the webhook. - */ + /** Type of the webhook. */ public enum TypeEnum { - BALANCEPLATFORM_TRANSACTION_CREATED(String.valueOf("balancePlatform.transaction.created")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -58,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -79,7 +69,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -87,14 +81,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public TransactionNotificationRequestV4() { - } + public TransactionNotificationRequestV4() {} /** * data * - * @param data - * @return the current {@code TransactionNotificationRequestV4} instance, allowing for method chaining + * @param data + * @return the current {@code TransactionNotificationRequestV4} instance, allowing for method + * chaining */ public TransactionNotificationRequestV4 data(Transaction data) { this.data = data; @@ -103,7 +97,8 @@ public TransactionNotificationRequestV4 data(Transaction data) { /** * Get data - * @return data + * + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,7 +109,7 @@ public Transaction getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,10 +118,12 @@ public void setData(Transaction data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. - * @return the current {@code TransactionNotificationRequestV4} instance, allowing for method chaining + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. + * @return the current {@code TransactionNotificationRequestV4} instance, allowing for method + * chaining */ public TransactionNotificationRequestV4 environment(String environment) { this.environment = environment; @@ -134,8 +131,10 @@ public TransactionNotificationRequestV4 environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * + * @return environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,9 +143,10 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,7 +158,8 @@ public void setEnvironment(String environment) { * When the event was queued. * * @param timestamp When the event was queued. - * @return the current {@code TransactionNotificationRequestV4} instance, allowing for method chaining + * @return the current {@code TransactionNotificationRequestV4} instance, allowing for method + * chaining */ public TransactionNotificationRequestV4 timestamp(OffsetDateTime timestamp) { this.timestamp = timestamp; @@ -167,6 +168,7 @@ public TransactionNotificationRequestV4 timestamp(OffsetDateTime timestamp) { /** * When the event was queued. + * * @return timestamp When the event was queued. */ @JsonProperty(JSON_PROPERTY_TIMESTAMP) @@ -190,7 +192,8 @@ public void setTimestamp(OffsetDateTime timestamp) { * Type of the webhook. * * @param type Type of the webhook. - * @return the current {@code TransactionNotificationRequestV4} instance, allowing for method chaining + * @return the current {@code TransactionNotificationRequestV4} instance, allowing for method + * chaining */ public TransactionNotificationRequestV4 type(TypeEnum type) { this.type = type; @@ -199,6 +202,7 @@ public TransactionNotificationRequestV4 type(TypeEnum type) { /** * Type of the webhook. + * * @return type Type of the webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -218,9 +222,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this TransactionNotificationRequestV4 object is equal to o. - */ + /** Return true if this TransactionNotificationRequestV4 object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -229,11 +231,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TransactionNotificationRequestV4 transactionNotificationRequestV4 = (TransactionNotificationRequestV4) o; - return Objects.equals(this.data, transactionNotificationRequestV4.data) && - Objects.equals(this.environment, transactionNotificationRequestV4.environment) && - Objects.equals(this.timestamp, transactionNotificationRequestV4.timestamp) && - Objects.equals(this.type, transactionNotificationRequestV4.type); + TransactionNotificationRequestV4 transactionNotificationRequestV4 = + (TransactionNotificationRequestV4) o; + return Objects.equals(this.data, transactionNotificationRequestV4.data) + && Objects.equals(this.environment, transactionNotificationRequestV4.environment) + && Objects.equals(this.timestamp, transactionNotificationRequestV4.timestamp) + && Objects.equals(this.type, transactionNotificationRequestV4.type); } @Override @@ -254,8 +257,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -264,21 +266,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransactionNotificationRequestV4 given an JSON string * * @param jsonString JSON string * @return An instance of TransactionNotificationRequestV4 - * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionNotificationRequestV4 + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TransactionNotificationRequestV4 */ - public static TransactionNotificationRequestV4 fromJson(String jsonString) throws JsonProcessingException { + public static TransactionNotificationRequestV4 fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionNotificationRequestV4.class); } -/** - * Convert an instance of TransactionNotificationRequestV4 to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransactionNotificationRequestV4 to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/TransactionWebhooksHandler.java b/src/main/java/com/adyen/model/transactionwebhooks/TransactionWebhooksHandler.java index ad00b0153..082072fa5 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/TransactionWebhooksHandler.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/TransactionWebhooksHandler.java @@ -2,7 +2,7 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,63 +16,63 @@ /** * Handler for processing TransactionWebhooks. - *

- * This class provides functionality to deserialize the payload of TransactionWebhooks events. + * + *

This class provides functionality to deserialize the payload of TransactionWebhooks events. */ public class TransactionWebhooksHandler { - private static final Logger LOG = Logger.getLogger(TransactionWebhooksHandler.class.getName()); + private static final Logger LOG = Logger.getLogger(TransactionWebhooksHandler.class.getName()); - private final String payload; + private final String payload; - /** - * Constructs a new handler for the given webhook payload - * - * @param payload the raw JSON payload from the webhook - */ - public TransactionWebhooksHandler(String payload) { - this.payload = payload; - } + /** + * Constructs a new handler for the given webhook payload + * + * @param payload the raw JSON payload from the webhook + */ + public TransactionWebhooksHandler(String payload) { + this.payload = payload; + } - /** - * Attempts to deserialize the webhook payload into a TransactionNotificationRequestV4 - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getTransactionNotificationRequestV4() { + /** + * Attempts to deserialize the webhook payload into a TransactionNotificationRequestV4 + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getTransactionNotificationRequestV4() { - var optionalTransactionNotificationRequestV4 = getOptionalField(TransactionNotificationRequestV4.class); + var optionalTransactionNotificationRequestV4 = + getOptionalField(TransactionNotificationRequestV4.class); - if(optionalTransactionNotificationRequestV4.isPresent()) { - // verify event type - for (var value : TransactionNotificationRequestV4.TypeEnum.values()) { - if (value.equals(optionalTransactionNotificationRequestV4.get().getType())) { - // found matching event type - return optionalTransactionNotificationRequestV4; - } - } + if (optionalTransactionNotificationRequestV4.isPresent()) { + // verify event type + for (var value : TransactionNotificationRequestV4.TypeEnum.values()) { + if (value.equals(optionalTransactionNotificationRequestV4.get().getType())) { + // found matching event type + return optionalTransactionNotificationRequestV4; } - - return Optional.empty(); + } } - /** - * Deserializes the payload into the specified class type. - * - * @param clazz the class to deserialize into - * @param the type of the class - * @return an Optional containing the deserialized object, or empty if an error occurs - */ - private Optional getOptionalField(Class clazz) { - try { - T val = JSON.getMapper().readValue(payload, clazz); - return Optional.ofNullable(val); - } catch (Exception e) { - // an error has occurred during deserialization (object not found, deserialization error) - LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); - LOG.warning("Deserialization error: " + e.getMessage()); - return Optional.empty(); - } - } + return Optional.empty(); + } -} \ No newline at end of file + /** + * Deserializes the payload into the specified class type. + * + * @param clazz the class to deserialize into + * @param the type of the class + * @return an Optional containing the deserialized object, or empty if an error occurs + */ + private Optional getOptionalField(Class clazz) { + try { + T val = JSON.getMapper().readValue(payload, clazz); + return Optional.ofNullable(val); + } catch (Exception e) { + // an error has occurred during deserialization (object not found, deserialization error) + LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); + LOG.warning("Deserialization error: " + e.getMessage()); + return Optional.empty(); + } + } +} diff --git a/src/main/java/com/adyen/model/transactionwebhooks/TransferNotificationValidationFact.java b/src/main/java/com/adyen/model/transactionwebhooks/TransferNotificationValidationFact.java index 03030dda2..f12636eac 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/TransferNotificationValidationFact.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/TransferNotificationValidationFact.java @@ -2,36 +2,26 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transactionwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TransferNotificationValidationFact - */ +/** TransferNotificationValidationFact */ @JsonPropertyOrder({ TransferNotificationValidationFact.JSON_PROPERTY_RESULT, TransferNotificationValidationFact.JSON_PROPERTY_TYPE }) - public class TransferNotificationValidationFact { public static final String JSON_PROPERTY_RESULT = "result"; private String result; @@ -39,14 +29,14 @@ public class TransferNotificationValidationFact { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public TransferNotificationValidationFact() { - } + public TransferNotificationValidationFact() {} /** * The evaluation result of the validation fact. * * @param result The evaluation result of the validation fact. - * @return the current {@code TransferNotificationValidationFact} instance, allowing for method chaining + * @return the current {@code TransferNotificationValidationFact} instance, allowing for method + * chaining */ public TransferNotificationValidationFact result(String result) { this.result = result; @@ -55,6 +45,7 @@ public TransferNotificationValidationFact result(String result) { /** * The evaluation result of the validation fact. + * * @return result The evaluation result of the validation fact. */ @JsonProperty(JSON_PROPERTY_RESULT) @@ -78,7 +69,8 @@ public void setResult(String result) { * The type of the validation fact. * * @param type The type of the validation fact. - * @return the current {@code TransferNotificationValidationFact} instance, allowing for method chaining + * @return the current {@code TransferNotificationValidationFact} instance, allowing for method + * chaining */ public TransferNotificationValidationFact type(String type) { this.type = type; @@ -87,6 +79,7 @@ public TransferNotificationValidationFact type(String type) { /** * The type of the validation fact. + * * @return type The type of the validation fact. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -106,9 +99,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this TransferNotificationValidationFact object is equal to o. - */ + /** Return true if this TransferNotificationValidationFact object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -117,9 +108,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TransferNotificationValidationFact transferNotificationValidationFact = (TransferNotificationValidationFact) o; - return Objects.equals(this.result, transferNotificationValidationFact.result) && - Objects.equals(this.type, transferNotificationValidationFact.type); + TransferNotificationValidationFact transferNotificationValidationFact = + (TransferNotificationValidationFact) o; + return Objects.equals(this.result, transferNotificationValidationFact.result) + && Objects.equals(this.type, transferNotificationValidationFact.type); } @Override @@ -138,8 +130,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +139,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransferNotificationValidationFact given an JSON string * * @param jsonString JSON string * @return An instance of TransferNotificationValidationFact - * @throws JsonProcessingException if the JSON string is invalid with respect to TransferNotificationValidationFact + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TransferNotificationValidationFact */ - public static TransferNotificationValidationFact fromJson(String jsonString) throws JsonProcessingException { + public static TransferNotificationValidationFact fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferNotificationValidationFact.class); } -/** - * Convert an instance of TransferNotificationValidationFact to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransferNotificationValidationFact to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/TransferView.java b/src/main/java/com/adyen/model/transactionwebhooks/TransferView.java index c0d49f592..dfb76fec0 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/TransferView.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/TransferView.java @@ -2,38 +2,27 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transactionwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transactionwebhooks.TransferViewCategoryData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TransferView - */ +/** TransferView */ @JsonPropertyOrder({ TransferView.JSON_PROPERTY_CATEGORY_DATA, TransferView.JSON_PROPERTY_ID, TransferView.JSON_PROPERTY_REFERENCE }) - public class TransferView { public static final String JSON_PROPERTY_CATEGORY_DATA = "categoryData"; private TransferViewCategoryData categoryData; @@ -44,13 +33,12 @@ public class TransferView { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public TransferView() { - } + public TransferView() {} /** * categoryData * - * @param categoryData + * @param categoryData * @return the current {@code TransferView} instance, allowing for method chaining */ public TransferView categoryData(TransferViewCategoryData categoryData) { @@ -60,7 +48,8 @@ public TransferView categoryData(TransferViewCategoryData categoryData) { /** * Get categoryData - * @return categoryData + * + * @return categoryData */ @JsonProperty(JSON_PROPERTY_CATEGORY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,7 +60,7 @@ public TransferViewCategoryData getCategoryData() { /** * categoryData * - * @param categoryData + * @param categoryData */ @JsonProperty(JSON_PROPERTY_CATEGORY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -92,6 +81,7 @@ public TransferView id(String id) { /** * The ID of the resource. + * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -112,9 +102,15 @@ public void setId(String id) { } /** - * The [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) from the `/transfers` request. If you haven't provided any, Adyen generates a unique reference. + * The + * [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) + * from the `/transfers` request. If you haven't provided any, Adyen generates a + * unique reference. * - * @param reference The [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) from the `/transfers` request. If you haven't provided any, Adyen generates a unique reference. + * @param reference The + * [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) + * from the `/transfers` request. If you haven't provided any, Adyen generates a + * unique reference. * @return the current {@code TransferView} instance, allowing for method chaining */ public TransferView reference(String reference) { @@ -123,8 +119,15 @@ public TransferView reference(String reference) { } /** - * The [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) from the `/transfers` request. If you haven't provided any, Adyen generates a unique reference. - * @return reference The [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) from the `/transfers` request. If you haven't provided any, Adyen generates a unique reference. + * The + * [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) + * from the `/transfers` request. If you haven't provided any, Adyen generates a + * unique reference. + * + * @return reference The + * [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) + * from the `/transfers` request. If you haven't provided any, Adyen generates a + * unique reference. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -133,9 +136,15 @@ public String getReference() { } /** - * The [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) from the `/transfers` request. If you haven't provided any, Adyen generates a unique reference. + * The + * [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) + * from the `/transfers` request. If you haven't provided any, Adyen generates a + * unique reference. * - * @param reference The [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) from the `/transfers` request. If you haven't provided any, Adyen generates a unique reference. + * @param reference The + * [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) + * from the `/transfers` request. If you haven't provided any, Adyen generates a + * unique reference. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,9 +152,7 @@ public void setReference(String reference) { this.reference = reference; } - /** - * Return true if this TransferView object is equal to o. - */ + /** Return true if this TransferView object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -155,9 +162,9 @@ public boolean equals(Object o) { return false; } TransferView transferView = (TransferView) o; - return Objects.equals(this.categoryData, transferView.categoryData) && - Objects.equals(this.id, transferView.id) && - Objects.equals(this.reference, transferView.reference); + return Objects.equals(this.categoryData, transferView.categoryData) + && Objects.equals(this.id, transferView.id) + && Objects.equals(this.reference, transferView.reference); } @Override @@ -177,8 +184,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -187,7 +193,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransferView given an JSON string * * @param jsonString JSON string @@ -197,11 +203,12 @@ private String toIndentedString(Object o) { public static TransferView fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferView.class); } -/** - * Convert an instance of TransferView to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransferView to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/TransferViewCategoryData.java b/src/main/java/com/adyen/model/transactionwebhooks/TransferViewCategoryData.java index 06962fc99..5773a5ecb 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/TransferViewCategoryData.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/TransferViewCategoryData.java @@ -2,52 +2,19 @@ * Transaction webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transactionwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transactionwebhooks.BankCategoryData; -import com.adyen.model.transactionwebhooks.InternalCategoryData; -import com.adyen.model.transactionwebhooks.IssuedCard; -import com.adyen.model.transactionwebhooks.PlatformPayment; -import com.adyen.model.transactionwebhooks.RelayedAuthorisationData; -import com.adyen.model.transactionwebhooks.ThreeDSecure; -import com.adyen.model.transactionwebhooks.TransferNotificationValidationFact; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -import com.fasterxml.jackson.core.type.TypeReference; - -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.core.Response; -import java.io.IOException; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; - import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -57,308 +24,326 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; - +import jakarta.ws.rs.core.GenericType; +import java.io.IOException; +import java.util.*; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.logging.Level; +import java.util.logging.Logger; @JsonDeserialize(using = TransferViewCategoryData.TransferViewCategoryDataDeserializer.class) @JsonSerialize(using = TransferViewCategoryData.TransferViewCategoryDataSerializer.class) public class TransferViewCategoryData extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(TransferViewCategoryData.class.getName()); - - public static class TransferViewCategoryDataSerializer extends StdSerializer { - public TransferViewCategoryDataSerializer(Class t) { - super(t); - } + private static final Logger log = Logger.getLogger(TransferViewCategoryData.class.getName()); - public TransferViewCategoryDataSerializer() { - this(null); - } - - @Override - public void serialize(TransferViewCategoryData value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } + public static class TransferViewCategoryDataSerializer + extends StdSerializer { + public TransferViewCategoryDataSerializer(Class t) { + super(t); } - public static class TransferViewCategoryDataDeserializer extends StdDeserializer { - public TransferViewCategoryDataDeserializer() { - this(TransferViewCategoryData.class); - } - - public TransferViewCategoryDataDeserializer(Class vc) { - super(vc); - } - - @Override - public TransferViewCategoryData deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize BankCategoryData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(BankCategoryData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(BankCategoryData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'BankCategoryData'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'BankCategoryData'", e); - } - - // deserialize InternalCategoryData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(InternalCategoryData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(InternalCategoryData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'InternalCategoryData'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'InternalCategoryData'", e); - } - - // deserialize IssuedCard - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(IssuedCard.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(IssuedCard.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'IssuedCard'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'IssuedCard'", e); - } - - // deserialize PlatformPayment - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(PlatformPayment.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PlatformPayment.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PlatformPayment'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PlatformPayment'", e); - } - - if (match == 1) { - TransferViewCategoryData ret = new TransferViewCategoryData(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException(String.format("Failed deserialization for TransferViewCategoryData: %d classes match result, expected 1", match)); - } - - /** - * Handle deserialization of the 'null' value. - */ - @Override - public TransferViewCategoryData getNullValue(DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "TransferViewCategoryData cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public TransferViewCategoryData() { - super("oneOf", Boolean.FALSE); - } - - public TransferViewCategoryData(BankCategoryData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferViewCategoryData(InternalCategoryData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + public TransferViewCategoryDataSerializer() { + this(null); } - public TransferViewCategoryData(IssuedCard o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferViewCategoryData(PlatformPayment o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + @Override + public void serialize( + TransferViewCategoryData value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); } + } - static { - schemas.put("BankCategoryData", new GenericType() { - }); - schemas.put("InternalCategoryData", new GenericType() { - }); - schemas.put("IssuedCard", new GenericType() { - }); - schemas.put("PlatformPayment", new GenericType() { - }); - JSON.registerDescendants(TransferViewCategoryData.class, Collections.unmodifiableMap(schemas)); + public static class TransferViewCategoryDataDeserializer + extends StdDeserializer { + public TransferViewCategoryDataDeserializer() { + this(TransferViewCategoryData.class); } - @Override - public Map> getSchemas() { - return TransferViewCategoryData.schemas; + public TransferViewCategoryDataDeserializer(Class vc) { + super(vc); } - /** - * Set the instance that matches the oneOf child schema, check - * the instance parameter is valid against the oneOf child schemas: - * BankCategoryData, InternalCategoryData, IssuedCard, PlatformPayment - * - * It could be an instance of the 'oneOf' schemas. - * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). - */ @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(BankCategoryData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + public TransferViewCategoryData deserialize(JsonParser jp, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize BankCategoryData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(BankCategoryData.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(BankCategoryData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'BankCategoryData'"); + } } - - if (JSON.isInstanceOf(InternalCategoryData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'BankCategoryData'", e); + } + + // deserialize InternalCategoryData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(InternalCategoryData.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(InternalCategoryData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'InternalCategoryData'"); + } } - - if (JSON.isInstanceOf(IssuedCard.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'InternalCategoryData'", e); + } + + // deserialize IssuedCard + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(IssuedCard.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(IssuedCard.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'IssuedCard'"); + } } - - if (JSON.isInstanceOf(PlatformPayment.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'IssuedCard'", e); + } + + // deserialize PlatformPayment + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(PlatformPayment.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PlatformPayment.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PlatformPayment'"); + } } - - throw new RuntimeException("Invalid instance type. Must be BankCategoryData, InternalCategoryData, IssuedCard, PlatformPayment"); + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PlatformPayment'", e); + } + + if (match == 1) { + TransferViewCategoryData ret = new TransferViewCategoryData(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException( + String.format( + "Failed deserialization for TransferViewCategoryData: %d classes match result, expected 1", + match)); } - /** - * Get the actual instance, which can be the following: - * BankCategoryData, InternalCategoryData, IssuedCard, PlatformPayment - * - * @return The actual instance (BankCategoryData, InternalCategoryData, IssuedCard, PlatformPayment) - */ + /** Handle deserialization of the 'null' value. */ @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `BankCategoryData`. If the actual instance is not `BankCategoryData`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `BankCategoryData` - * @throws ClassCastException if the instance is not `BankCategoryData` - */ - public BankCategoryData getBankCategoryData() throws ClassCastException { - return (BankCategoryData)super.getActualInstance(); + public TransferViewCategoryData getNullValue(DeserializationContext ctxt) + throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "TransferViewCategoryData cannot be null"); } - - /** - * Get the actual instance of `InternalCategoryData`. If the actual instance is not `InternalCategoryData`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `InternalCategoryData` - * @throws ClassCastException if the instance is not `InternalCategoryData` - */ - public InternalCategoryData getInternalCategoryData() throws ClassCastException { - return (InternalCategoryData)super.getActualInstance(); + } + + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public TransferViewCategoryData() { + super("oneOf", Boolean.FALSE); + } + + public TransferViewCategoryData(BankCategoryData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferViewCategoryData(InternalCategoryData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferViewCategoryData(IssuedCard o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferViewCategoryData(PlatformPayment o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("BankCategoryData", new GenericType() {}); + schemas.put("InternalCategoryData", new GenericType() {}); + schemas.put("IssuedCard", new GenericType() {}); + schemas.put("PlatformPayment", new GenericType() {}); + JSON.registerDescendants(TransferViewCategoryData.class, Collections.unmodifiableMap(schemas)); + } + + @Override + public Map> getSchemas() { + return TransferViewCategoryData.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check the instance parameter is valid + * against the oneOf child schemas: BankCategoryData, InternalCategoryData, IssuedCard, + * PlatformPayment + * + *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a + * composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(BankCategoryData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `IssuedCard`. If the actual instance is not `IssuedCard`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `IssuedCard` - * @throws ClassCastException if the instance is not `IssuedCard` - */ - public IssuedCard getIssuedCard() throws ClassCastException { - return (IssuedCard)super.getActualInstance(); + if (JSON.isInstanceOf(InternalCategoryData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `PlatformPayment`. If the actual instance is not `PlatformPayment`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PlatformPayment` - * @throws ClassCastException if the instance is not `PlatformPayment` - */ - public PlatformPayment getPlatformPayment() throws ClassCastException { - return (PlatformPayment)super.getActualInstance(); - } - - - /** - * Create an instance of TransferViewCategoryData given an JSON string - * - * @param jsonString JSON string - * @return An instance of TransferViewCategoryData - * @throws IOException if the JSON string is invalid with respect to TransferViewCategoryData - */ - public static TransferViewCategoryData fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, TransferViewCategoryData.class); + if (JSON.isInstanceOf(IssuedCard.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Convert an instance of TransferViewCategoryData to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); + if (JSON.isInstanceOf(PlatformPayment.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } + throw new RuntimeException( + "Invalid instance type. Must be BankCategoryData, InternalCategoryData, IssuedCard, PlatformPayment"); + } + + /** + * Get the actual instance, which can be the following: BankCategoryData, InternalCategoryData, + * IssuedCard, PlatformPayment + * + * @return The actual instance (BankCategoryData, InternalCategoryData, IssuedCard, + * PlatformPayment) + */ + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `BankCategoryData`. If the actual instance is not + * `BankCategoryData`, the ClassCastException will be thrown. + * + * @return The actual instance of `BankCategoryData` + * @throws ClassCastException if the instance is not `BankCategoryData` + */ + public BankCategoryData getBankCategoryData() throws ClassCastException { + return (BankCategoryData) super.getActualInstance(); + } + + /** + * Get the actual instance of `InternalCategoryData`. If the actual instance is not + * `InternalCategoryData`, the ClassCastException will be thrown. + * + * @return The actual instance of `InternalCategoryData` + * @throws ClassCastException if the instance is not `InternalCategoryData` + */ + public InternalCategoryData getInternalCategoryData() throws ClassCastException { + return (InternalCategoryData) super.getActualInstance(); + } + + /** + * Get the actual instance of `IssuedCard`. If the actual instance is not `IssuedCard`, the + * ClassCastException will be thrown. + * + * @return The actual instance of `IssuedCard` + * @throws ClassCastException if the instance is not `IssuedCard` + */ + public IssuedCard getIssuedCard() throws ClassCastException { + return (IssuedCard) super.getActualInstance(); + } + + /** + * Get the actual instance of `PlatformPayment`. If the actual instance is not `PlatformPayment`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `PlatformPayment` + * @throws ClassCastException if the instance is not `PlatformPayment` + */ + public PlatformPayment getPlatformPayment() throws ClassCastException { + return (PlatformPayment) super.getActualInstance(); + } + + /** + * Create an instance of TransferViewCategoryData given an JSON string + * + * @param jsonString JSON string + * @return An instance of TransferViewCategoryData + * @throws IOException if the JSON string is invalid with respect to TransferViewCategoryData + */ + public static TransferViewCategoryData fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, TransferViewCategoryData.class); + } + + /** + * Convert an instance of TransferViewCategoryData to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } } diff --git a/src/main/java/com/adyen/model/transfers/AULocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/AULocalAccountIdentification.java index ce78adcf4..7783e05a6 100644 --- a/src/main/java/com/adyen/model/transfers/AULocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/AULocalAccountIdentification.java @@ -2,37 +2,31 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * AULocalAccountIdentification - */ +/** AULocalAccountIdentification */ @JsonPropertyOrder({ AULocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, AULocalAccountIdentification.JSON_PROPERTY_BSB_CODE, AULocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class AULocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -40,11 +34,8 @@ public class AULocalAccountIdentification { public static final String JSON_PROPERTY_BSB_CODE = "bsbCode"; private String bsbCode; - /** - * **auLocal** - */ + /** **auLocal** */ public enum TypeEnum { - AULOCAL(String.valueOf("auLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +43,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +64,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,8 +76,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AULocalAccountIdentification() { - } + public AULocalAccountIdentification() {} /** * The bank account number, without separators or whitespace. @@ -97,6 +91,7 @@ public AULocalAccountIdentification accountNumber(String accountNumber) { /** * The bank account number, without separators or whitespace. + * * @return accountNumber The bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -117,9 +112,11 @@ public void setAccountNumber(String accountNumber) { } /** - * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), + * without separators or whitespace. * - * @param bsbCode The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * @param bsbCode The 6-digit [Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. * @return the current {@code AULocalAccountIdentification} instance, allowing for method chaining */ public AULocalAccountIdentification bsbCode(String bsbCode) { @@ -128,8 +125,11 @@ public AULocalAccountIdentification bsbCode(String bsbCode) { } /** - * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. - * @return bsbCode The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), + * without separators or whitespace. + * + * @return bsbCode The 6-digit [Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_BSB_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,9 +138,11 @@ public String getBsbCode() { } /** - * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), + * without separators or whitespace. * - * @param bsbCode The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * @param bsbCode The 6-digit [Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_BSB_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,6 +163,7 @@ public AULocalAccountIdentification type(TypeEnum type) { /** * **auLocal** + * * @return type **auLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +183,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this AULocalAccountIdentification object is equal to o. - */ + /** Return true if this AULocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +193,9 @@ public boolean equals(Object o) { return false; } AULocalAccountIdentification auLocalAccountIdentification = (AULocalAccountIdentification) o; - return Objects.equals(this.accountNumber, auLocalAccountIdentification.accountNumber) && - Objects.equals(this.bsbCode, auLocalAccountIdentification.bsbCode) && - Objects.equals(this.type, auLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, auLocalAccountIdentification.accountNumber) + && Objects.equals(this.bsbCode, auLocalAccountIdentification.bsbCode) + && Objects.equals(this.type, auLocalAccountIdentification.type); } @Override @@ -214,8 +215,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +224,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AULocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of AULocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to AULocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AULocalAccountIdentification */ - public static AULocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static AULocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AULocalAccountIdentification.class); } -/** - * Convert an instance of AULocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AULocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/transfers/AbstractOpenApiSchema.java index 1538d58b3..05a25e27a 100644 --- a/src/main/java/com/adyen/model/transfers/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/transfers/AbstractOpenApiSchema.java @@ -2,145 +2,141 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.Objects; -import java.util.Map; -import jakarta.ws.rs.core.GenericType; - import com.fasterxml.jackson.annotation.JsonValue; +import jakarta.ws.rs.core.GenericType; +import java.util.Map; +import java.util.Objects; -/** - * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec - */ +/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() {return instance;} - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) {this.instance = instance;} - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); - } else { - return object.getActualInstance(); - } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() { + return instance; + } + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) { + this.instance = instance; + } + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf + * schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); + } else { + return object.getActualInstance(); } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) && - Objects.equals(this.isNullable, a.isNullable) && - Objects.equals(this.schemaType, a.schemaType); + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; } + return o.toString().replace("\n", "\n "); + } - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); + public boolean equals(Object o) { + if (this == o) { + return true; } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); + if (o == null || getClass() != o.getClass()) { + return false; } - - - -} \ No newline at end of file + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) + && Objects.equals(this.isNullable, a.isNullable) + && Objects.equals(this.schemaType, a.schemaType); + } + + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); + } + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); + } +} diff --git a/src/main/java/com/adyen/model/transfers/AdditionalBankIdentification.java b/src/main/java/com/adyen/model/transfers/AdditionalBankIdentification.java index 286276b7b..e04fa046c 100644 --- a/src/main/java/com/adyen/model/transfers/AdditionalBankIdentification.java +++ b/src/main/java/com/adyen/model/transfers/AdditionalBankIdentification.java @@ -2,45 +2,47 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * AdditionalBankIdentification - */ +/** AdditionalBankIdentification */ @JsonPropertyOrder({ AdditionalBankIdentification.JSON_PROPERTY_CODE, AdditionalBankIdentification.JSON_PROPERTY_TYPE }) - public class AdditionalBankIdentification { public static final String JSON_PROPERTY_CODE = "code"; private String code; /** - * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * The type of additional bank identification, depending on the country. Possible values: * + * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. */ public enum TypeEnum { - AUBSBCODE(String.valueOf("auBsbCode")), CAROUTINGNUMBER(String.valueOf("caRoutingNumber")), @@ -54,7 +56,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -75,7 +77,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -83,8 +89,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AdditionalBankIdentification() { - } + public AdditionalBankIdentification() {} /** * The value of the additional bank identification. @@ -99,6 +104,7 @@ public AdditionalBankIdentification code(String code) { /** * The value of the additional bank identification. + * * @return code The value of the additional bank identification. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -119,9 +125,27 @@ public void setCode(String code) { } /** - * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * The type of additional bank identification, depending on the country. Possible values: * + * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. * - * @param type The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * @param type The type of additional bank identification, depending on the country. Possible + * values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. * @return the current {@code AdditionalBankIdentification} instance, allowing for method chaining */ public AdditionalBankIdentification type(TypeEnum type) { @@ -130,8 +154,27 @@ public AdditionalBankIdentification type(TypeEnum type) { } /** - * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. - * @return type The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * The type of additional bank identification, depending on the country. Possible values: * + * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. + * + * @return type The type of additional bank identification, depending on the country. Possible + * values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,9 +183,27 @@ public TypeEnum getType() { } /** - * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * The type of additional bank identification, depending on the country. Possible values: * + * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. * - * @param type The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * @param type The type of additional bank identification, depending on the country. Possible + * values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,9 +211,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this AdditionalBankIdentification object is equal to o. - */ + /** Return true if this AdditionalBankIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -162,8 +221,8 @@ public boolean equals(Object o) { return false; } AdditionalBankIdentification additionalBankIdentification = (AdditionalBankIdentification) o; - return Objects.equals(this.code, additionalBankIdentification.code) && - Objects.equals(this.type, additionalBankIdentification.type); + return Objects.equals(this.code, additionalBankIdentification.code) + && Objects.equals(this.type, additionalBankIdentification.type); } @Override @@ -182,8 +241,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -192,21 +250,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalBankIdentification given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalBankIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalBankIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalBankIdentification */ - public static AdditionalBankIdentification fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalBankIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalBankIdentification.class); } -/** - * Convert an instance of AdditionalBankIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalBankIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/Address.java b/src/main/java/com/adyen/model/transfers/Address.java index 4e56d413c..91636b973 100644 --- a/src/main/java/com/adyen/model/transfers/Address.java +++ b/src/main/java/com/adyen/model/transfers/Address.java @@ -2,31 +2,22 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Address - */ +/** Address */ @JsonPropertyOrder({ Address.JSON_PROPERTY_CITY, Address.JSON_PROPERTY_COUNTRY, @@ -35,7 +26,6 @@ Address.JSON_PROPERTY_POSTAL_CODE, Address.JSON_PROPERTY_STATE_OR_PROVINCE }) - public class Address { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -55,13 +45,14 @@ public class Address { public static final String JSON_PROPERTY_STATE_OR_PROVINCE = "stateOrProvince"; private String stateOrProvince; - public Address() { - } + public Address() {} /** - * The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] + * & \\ |** and Space. > Required when the `category` is **card**. * - * @param city The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * @param city The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) + * : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. * @return the current {@code Address} instance, allowing for method chaining */ public Address city(String city) { @@ -70,8 +61,11 @@ public Address city(String city) { } /** - * The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. - * @return city The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] + * & \\ |** and Space. > Required when the `category` is **card**. + * + * @return city The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( + * ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. */ @JsonProperty(JSON_PROPERTY_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,9 +74,11 @@ public String getCity() { } /** - * The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] + * & \\ |** and Space. > Required when the `category` is **card**. * - * @param city The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * @param city The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) + * : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. */ @JsonProperty(JSON_PROPERTY_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -93,7 +89,8 @@ public void setCity(String city) { /** * The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, or **GB**. * - * @param country The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, or **GB**. + * @param country The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, + * or **GB**. * @return the current {@code Address} instance, allowing for method chaining */ public Address country(String country) { @@ -103,7 +100,9 @@ public Address country(String country) { /** * The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, or **GB**. - * @return country The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, or **GB**. + * + * @return country The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, + * or **GB**. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,7 +113,8 @@ public String getCountry() { /** * The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, or **GB**. * - * @param country The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, or **GB**. + * @param country The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, + * or **GB**. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,9 +123,12 @@ public void setCountry(String country) { } /** - * The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° + * ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. * - * @param line1 The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * @param line1 The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . + * - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the + * `category` is **card**. * @return the current {@code Address} instance, allowing for method chaining */ public Address line1(String line1) { @@ -134,8 +137,12 @@ public Address line1(String line1) { } /** - * The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. - * @return line1 The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° + * ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * + * @return line1 The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . + * - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the + * `category` is **card**. */ @JsonProperty(JSON_PROPERTY_LINE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,9 +151,12 @@ public String getLine1() { } /** - * The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° + * ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. * - * @param line1 The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * @param line1 The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . + * - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the + * `category` is **card**. */ @JsonProperty(JSON_PROPERTY_LINE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -155,9 +165,12 @@ public void setLine1(String line1) { } /** - * The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ + * ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. * - * @param line2 The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * @param line2 The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . + * - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the + * `category` is **card**. * @return the current {@code Address} instance, allowing for method chaining */ public Address line2(String line2) { @@ -166,8 +179,12 @@ public Address line2(String line2) { } /** - * The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. - * @return line2 The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ + * ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * + * @return line2 The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] + * . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the + * `category` is **card**. */ @JsonProperty(JSON_PROPERTY_LINE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,9 +193,12 @@ public String getLine2() { } /** - * The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ + * ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. * - * @param line2 The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * @param line2 The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . + * - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the + * `category` is **card**. */ @JsonProperty(JSON_PROPERTY_LINE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,9 +207,13 @@ public void setLine2(String line2) { } /** - * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > Required for addresses in the US. + * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an + * address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > + * Required for addresses in the US. * - * @param postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > Required for addresses in the US. + * @param postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 + * characters for an address in all other countries. Supported characters: **[a-z] [A-Z] + * [0-9]** and Space. > Required for addresses in the US. * @return the current {@code Address} instance, allowing for method chaining */ public Address postalCode(String postalCode) { @@ -198,8 +222,13 @@ public Address postalCode(String postalCode) { } /** - * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > Required for addresses in the US. - * @return postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > Required for addresses in the US. + * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an + * address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > + * Required for addresses in the US. + * + * @return postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 + * characters for an address in all other countries. Supported characters: **[a-z] [A-Z] + * [0-9]** and Space. > Required for addresses in the US. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,9 +237,13 @@ public String getPostalCode() { } /** - * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > Required for addresses in the US. + * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an + * address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > + * Required for addresses in the US. * - * @param postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > Required for addresses in the US. + * @param postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 + * characters for an address in all other countries. Supported characters: **[a-z] [A-Z] + * [0-9]** and Space. > Required for addresses in the US. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,9 +252,11 @@ public void setPostalCode(String postalCode) { } /** - * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in + * Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in + * the US or **ON** in Canada. > Required for the US and Canada. * @return the current {@code Address} instance, allowing for method chaining */ public Address stateOrProvince(String stateOrProvince) { @@ -230,8 +265,11 @@ public Address stateOrProvince(String stateOrProvince) { } /** - * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. - * @return stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in + * Canada. > Required for the US and Canada. + * + * @return stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** + * in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,9 +278,11 @@ public String getStateOrProvince() { } /** - * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in + * Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in + * the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,9 +290,7 @@ public void setStateOrProvince(String stateOrProvince) { this.stateOrProvince = stateOrProvince; } - /** - * Return true if this Address object is equal to o. - */ + /** Return true if this Address object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -262,12 +300,12 @@ public boolean equals(Object o) { return false; } Address address = (Address) o; - return Objects.equals(this.city, address.city) && - Objects.equals(this.country, address.country) && - Objects.equals(this.line1, address.line1) && - Objects.equals(this.line2, address.line2) && - Objects.equals(this.postalCode, address.postalCode) && - Objects.equals(this.stateOrProvince, address.stateOrProvince); + return Objects.equals(this.city, address.city) + && Objects.equals(this.country, address.country) + && Objects.equals(this.line1, address.line1) + && Objects.equals(this.line2, address.line2) + && Objects.equals(this.postalCode, address.postalCode) + && Objects.equals(this.stateOrProvince, address.stateOrProvince); } @Override @@ -290,8 +328,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -300,7 +337,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Address given an JSON string * * @param jsonString JSON string @@ -310,11 +347,12 @@ private String toIndentedString(Object o) { public static Address fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Address.class); } -/** - * Convert an instance of Address to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Address to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/Airline.java b/src/main/java/com/adyen/model/transfers/Airline.java index 4bf6a1ece..6c8b03983 100644 --- a/src/main/java/com/adyen/model/transfers/Airline.java +++ b/src/main/java/com/adyen/model/transfers/Airline.java @@ -2,39 +2,25 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.Leg; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * Airline - */ -@JsonPropertyOrder({ - Airline.JSON_PROPERTY_LEGS, - Airline.JSON_PROPERTY_TICKET_NUMBER -}) - +/** Airline */ +@JsonPropertyOrder({Airline.JSON_PROPERTY_LEGS, Airline.JSON_PROPERTY_TICKET_NUMBER}) public class Airline { public static final String JSON_PROPERTY_LEGS = "legs"; private List legs; @@ -42,8 +28,7 @@ public class Airline { public static final String JSON_PROPERTY_TICKET_NUMBER = "ticketNumber"; private String ticketNumber; - public Airline() { - } + public Airline() {} /** * Details about the flight legs for this ticket. @@ -66,6 +51,7 @@ public Airline addLegsItem(Leg legsItem) { /** * Details about the flight legs for this ticket. + * * @return legs Details about the flight legs for this ticket. */ @JsonProperty(JSON_PROPERTY_LEGS) @@ -98,6 +84,7 @@ public Airline ticketNumber(String ticketNumber) { /** * The ticket's unique identifier + * * @return ticketNumber The ticket's unique identifier */ @JsonProperty(JSON_PROPERTY_TICKET_NUMBER) @@ -117,9 +104,7 @@ public void setTicketNumber(String ticketNumber) { this.ticketNumber = ticketNumber; } - /** - * Return true if this Airline object is equal to o. - */ + /** Return true if this Airline object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -129,8 +114,8 @@ public boolean equals(Object o) { return false; } Airline airline = (Airline) o; - return Objects.equals(this.legs, airline.legs) && - Objects.equals(this.ticketNumber, airline.ticketNumber); + return Objects.equals(this.legs, airline.legs) + && Objects.equals(this.ticketNumber, airline.ticketNumber); } @Override @@ -149,8 +134,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -159,7 +143,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Airline given an JSON string * * @param jsonString JSON string @@ -169,11 +153,12 @@ private String toIndentedString(Object o) { public static Airline fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Airline.class); } -/** - * Convert an instance of Airline to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Airline to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/Amount.java b/src/main/java/com/adyen/model/transfers/Amount.java index a8455385c..530fab926 100644 --- a/src/main/java/com/adyen/model/transfers/Amount.java +++ b/src/main/java/com/adyen/model/transfers/Amount.java @@ -2,36 +2,23 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Amount - */ -@JsonPropertyOrder({ - Amount.JSON_PROPERTY_CURRENCY, - Amount.JSON_PROPERTY_VALUE -}) - +/** Amount */ +@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -39,13 +26,14 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() { - } + public Amount() {} /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount currency(String currency) { @@ -54,8 +42,11 @@ public Amount currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +55,11 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,9 +68,11 @@ public void setCurrency(String currency) { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount value(Long value) { @@ -86,8 +81,11 @@ public Amount value(Long value) { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). - * @return value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * + * @return value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +94,11 @@ public Long getValue() { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +106,7 @@ public void setValue(Long value) { this.value = value; } - /** - * Return true if this Amount object is equal to o. - */ + /** Return true if this Amount object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +116,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) && - Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) + && Objects.equals(this.value, amount.value); } @Override @@ -138,8 +136,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +145,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -158,11 +155,12 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } -/** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/AmountAdjustment.java b/src/main/java/com/adyen/model/transfers/AmountAdjustment.java index 1b0c418c6..03b2df268 100644 --- a/src/main/java/com/adyen/model/transfers/AmountAdjustment.java +++ b/src/main/java/com/adyen/model/transfers/AmountAdjustment.java @@ -2,47 +2,40 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.Amount; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * AmountAdjustment - */ +/** AmountAdjustment */ @JsonPropertyOrder({ AmountAdjustment.JSON_PROPERTY_AMOUNT, AmountAdjustment.JSON_PROPERTY_AMOUNT_ADJUSTMENT_TYPE, AmountAdjustment.JSON_PROPERTY_BASEPOINTS }) - public class AmountAdjustment { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; /** - * The type of markup that is applied to an authorised payment. Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. + * The type of markup that is applied to an authorised payment. Possible values: **exchange**, + * **forexMarkup**, **authHoldReserve**, **atmMarkup**. */ public enum AmountAdjustmentTypeEnum { - ATMMARKUP(String.valueOf("atmMarkup")), AUTHHOLDRESERVE(String.valueOf("authHoldReserve")), @@ -56,7 +49,7 @@ public enum AmountAdjustmentTypeEnum { private String value; AmountAdjustmentTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -77,7 +70,11 @@ public static AmountAdjustmentTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AmountAdjustmentTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AmountAdjustmentTypeEnum.values())); + LOG.warning( + "AmountAdjustmentTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AmountAdjustmentTypeEnum.values())); return null; } } @@ -88,13 +85,12 @@ public static AmountAdjustmentTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_BASEPOINTS = "basepoints"; private Integer basepoints; - public AmountAdjustment() { - } + public AmountAdjustment() {} /** * amount * - * @param amount + * @param amount * @return the current {@code AmountAdjustment} instance, allowing for method chaining */ public AmountAdjustment amount(Amount amount) { @@ -104,7 +100,8 @@ public AmountAdjustment amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,7 +112,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,9 +121,11 @@ public void setAmount(Amount amount) { } /** - * The type of markup that is applied to an authorised payment. Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. + * The type of markup that is applied to an authorised payment. Possible values: **exchange**, + * **forexMarkup**, **authHoldReserve**, **atmMarkup**. * - * @param amountAdjustmentType The type of markup that is applied to an authorised payment. Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. + * @param amountAdjustmentType The type of markup that is applied to an authorised payment. + * Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. * @return the current {@code AmountAdjustment} instance, allowing for method chaining */ public AmountAdjustment amountAdjustmentType(AmountAdjustmentTypeEnum amountAdjustmentType) { @@ -135,8 +134,11 @@ public AmountAdjustment amountAdjustmentType(AmountAdjustmentTypeEnum amountAdju } /** - * The type of markup that is applied to an authorised payment. Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. - * @return amountAdjustmentType The type of markup that is applied to an authorised payment. Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. + * The type of markup that is applied to an authorised payment. Possible values: **exchange**, + * **forexMarkup**, **authHoldReserve**, **atmMarkup**. + * + * @return amountAdjustmentType The type of markup that is applied to an authorised payment. + * Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. */ @JsonProperty(JSON_PROPERTY_AMOUNT_ADJUSTMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,9 +147,11 @@ public AmountAdjustmentTypeEnum getAmountAdjustmentType() { } /** - * The type of markup that is applied to an authorised payment. Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. + * The type of markup that is applied to an authorised payment. Possible values: **exchange**, + * **forexMarkup**, **authHoldReserve**, **atmMarkup**. * - * @param amountAdjustmentType The type of markup that is applied to an authorised payment. Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. + * @param amountAdjustmentType The type of markup that is applied to an authorised payment. + * Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. */ @JsonProperty(JSON_PROPERTY_AMOUNT_ADJUSTMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,6 +172,7 @@ public AmountAdjustment basepoints(Integer basepoints) { /** * The basepoints associated with the applied markup. + * * @return basepoints The basepoints associated with the applied markup. */ @JsonProperty(JSON_PROPERTY_BASEPOINTS) @@ -187,9 +192,7 @@ public void setBasepoints(Integer basepoints) { this.basepoints = basepoints; } - /** - * Return true if this AmountAdjustment object is equal to o. - */ + /** Return true if this AmountAdjustment object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -199,9 +202,9 @@ public boolean equals(Object o) { return false; } AmountAdjustment amountAdjustment = (AmountAdjustment) o; - return Objects.equals(this.amount, amountAdjustment.amount) && - Objects.equals(this.amountAdjustmentType, amountAdjustment.amountAdjustmentType) && - Objects.equals(this.basepoints, amountAdjustment.basepoints); + return Objects.equals(this.amount, amountAdjustment.amount) + && Objects.equals(this.amountAdjustmentType, amountAdjustment.amountAdjustmentType) + && Objects.equals(this.basepoints, amountAdjustment.basepoints); } @Override @@ -214,15 +217,16 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AmountAdjustment {\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append(" amountAdjustmentType: ").append(toIndentedString(amountAdjustmentType)).append("\n"); + sb.append(" amountAdjustmentType: ") + .append(toIndentedString(amountAdjustmentType)) + .append("\n"); sb.append(" basepoints: ").append(toIndentedString(basepoints)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -231,7 +235,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AmountAdjustment given an JSON string * * @param jsonString JSON string @@ -241,11 +245,12 @@ private String toIndentedString(Object o) { public static AmountAdjustment fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AmountAdjustment.class); } -/** - * Convert an instance of AmountAdjustment to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AmountAdjustment to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/ApproveTransfersRequest.java b/src/main/java/com/adyen/model/transfers/ApproveTransfersRequest.java index 3b690f089..a8c71d092 100644 --- a/src/main/java/com/adyen/model/transfers/ApproveTransfersRequest.java +++ b/src/main/java/com/adyen/model/transfers/ApproveTransfersRequest.java @@ -2,43 +2,30 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * ApproveTransfersRequest - */ -@JsonPropertyOrder({ - ApproveTransfersRequest.JSON_PROPERTY_TRANSFER_IDS -}) - +/** ApproveTransfersRequest */ +@JsonPropertyOrder({ApproveTransfersRequest.JSON_PROPERTY_TRANSFER_IDS}) public class ApproveTransfersRequest { public static final String JSON_PROPERTY_TRANSFER_IDS = "transferIds"; private List transferIds; - public ApproveTransfersRequest() { - } + public ApproveTransfersRequest() {} /** * Contains the unique identifiers of the transfers that you want to approve. @@ -61,6 +48,7 @@ public ApproveTransfersRequest addTransferIdsItem(String transferIdsItem) { /** * Contains the unique identifiers of the transfers that you want to approve. + * * @return transferIds Contains the unique identifiers of the transfers that you want to approve. */ @JsonProperty(JSON_PROPERTY_TRANSFER_IDS) @@ -80,9 +68,7 @@ public void setTransferIds(List transferIds) { this.transferIds = transferIds; } - /** - * Return true if this ApproveTransfersRequest object is equal to o. - */ + /** Return true if this ApproveTransfersRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -110,8 +96,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -120,21 +105,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ApproveTransfersRequest given an JSON string * * @param jsonString JSON string * @return An instance of ApproveTransfersRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to ApproveTransfersRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ApproveTransfersRequest */ public static ApproveTransfersRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ApproveTransfersRequest.class); } -/** - * Convert an instance of ApproveTransfersRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ApproveTransfersRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/BRLocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/BRLocalAccountIdentification.java index 4b26c2c5c..728d4dff6 100644 --- a/src/main/java/com/adyen/model/transfers/BRLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/BRLocalAccountIdentification.java @@ -2,31 +2,26 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * BRLocalAccountIdentification - */ +/** BRLocalAccountIdentification */ @JsonPropertyOrder({ BRLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, BRLocalAccountIdentification.JSON_PROPERTY_BANK_CODE, @@ -34,7 +29,6 @@ BRLocalAccountIdentification.JSON_PROPERTY_ISPB, BRLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class BRLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -48,11 +42,8 @@ public class BRLocalAccountIdentification { public static final String JSON_PROPERTY_ISPB = "ispb"; private String ispb; - /** - * **brLocal** - */ + /** **brLocal** */ public enum TypeEnum { - BRLOCAL(String.valueOf("brLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -60,7 +51,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -81,7 +72,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -89,8 +84,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public BRLocalAccountIdentification() { - } + public BRLocalAccountIdentification() {} /** * The bank account number, without separators or whitespace. @@ -105,6 +99,7 @@ public BRLocalAccountIdentification accountNumber(String accountNumber) { /** * The bank account number, without separators or whitespace. + * * @return accountNumber The bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -137,6 +132,7 @@ public BRLocalAccountIdentification bankCode(String bankCode) { /** * The 3-digit bank code, with leading zeros. + * * @return bankCode The 3-digit bank code, with leading zeros. */ @JsonProperty(JSON_PROPERTY_BANK_CODE) @@ -169,6 +165,7 @@ public BRLocalAccountIdentification branchNumber(String branchNumber) { /** * The bank account branch number, without separators or whitespace. + * * @return branchNumber The bank account branch number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_BRANCH_NUMBER) @@ -201,6 +198,7 @@ public BRLocalAccountIdentification ispb(String ispb) { /** * The 8-digit ISPB, with leading zeros. + * * @return ispb The 8-digit ISPB, with leading zeros. */ @JsonProperty(JSON_PROPERTY_ISPB) @@ -233,6 +231,7 @@ public BRLocalAccountIdentification type(TypeEnum type) { /** * **brLocal** + * * @return type **brLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -252,9 +251,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this BRLocalAccountIdentification object is equal to o. - */ + /** Return true if this BRLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -264,11 +261,11 @@ public boolean equals(Object o) { return false; } BRLocalAccountIdentification brLocalAccountIdentification = (BRLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, brLocalAccountIdentification.accountNumber) && - Objects.equals(this.bankCode, brLocalAccountIdentification.bankCode) && - Objects.equals(this.branchNumber, brLocalAccountIdentification.branchNumber) && - Objects.equals(this.ispb, brLocalAccountIdentification.ispb) && - Objects.equals(this.type, brLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, brLocalAccountIdentification.accountNumber) + && Objects.equals(this.bankCode, brLocalAccountIdentification.bankCode) + && Objects.equals(this.branchNumber, brLocalAccountIdentification.branchNumber) + && Objects.equals(this.ispb, brLocalAccountIdentification.ispb) + && Objects.equals(this.type, brLocalAccountIdentification.type); } @Override @@ -290,8 +287,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -300,21 +296,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BRLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of BRLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to BRLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BRLocalAccountIdentification */ - public static BRLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static BRLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BRLocalAccountIdentification.class); } -/** - * Convert an instance of BRLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BRLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/BalanceMutation.java b/src/main/java/com/adyen/model/transfers/BalanceMutation.java index ea06f8fe1..2514bdce2 100644 --- a/src/main/java/com/adyen/model/transfers/BalanceMutation.java +++ b/src/main/java/com/adyen/model/transfers/BalanceMutation.java @@ -2,38 +2,28 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * BalanceMutation - */ +/** BalanceMutation */ @JsonPropertyOrder({ BalanceMutation.JSON_PROPERTY_BALANCE, BalanceMutation.JSON_PROPERTY_CURRENCY, BalanceMutation.JSON_PROPERTY_RECEIVED, BalanceMutation.JSON_PROPERTY_RESERVED }) - public class BalanceMutation { public static final String JSON_PROPERTY_BALANCE = "balance"; private Long balance; @@ -47,13 +37,14 @@ public class BalanceMutation { public static final String JSON_PROPERTY_RESERVED = "reserved"; private Long reserved; - public BalanceMutation() { - } + public BalanceMutation() {} /** - * The amount in the payment's currency that is debited or credited on the balance accounting register. + * The amount in the payment's currency that is debited or credited on the balance accounting + * register. * - * @param balance The amount in the payment's currency that is debited or credited on the balance accounting register. + * @param balance The amount in the payment's currency that is debited or credited on the + * balance accounting register. * @return the current {@code BalanceMutation} instance, allowing for method chaining */ public BalanceMutation balance(Long balance) { @@ -62,8 +53,11 @@ public BalanceMutation balance(Long balance) { } /** - * The amount in the payment's currency that is debited or credited on the balance accounting register. - * @return balance The amount in the payment's currency that is debited or credited on the balance accounting register. + * The amount in the payment's currency that is debited or credited on the balance accounting + * register. + * + * @return balance The amount in the payment's currency that is debited or credited on the + * balance accounting register. */ @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -72,9 +66,11 @@ public Long getBalance() { } /** - * The amount in the payment's currency that is debited or credited on the balance accounting register. + * The amount in the payment's currency that is debited or credited on the balance accounting + * register. * - * @param balance The amount in the payment's currency that is debited or credited on the balance accounting register. + * @param balance The amount in the payment's currency that is debited or credited on the + * balance accounting register. */ @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,9 +79,11 @@ public void setBalance(Long balance) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code BalanceMutation} instance, allowing for method chaining */ public BalanceMutation currency(String currency) { @@ -94,8 +92,11 @@ public BalanceMutation currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,9 +105,11 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,9 +118,11 @@ public void setCurrency(String currency) { } /** - * The amount in the payment's currency that is debited or credited on the received accounting register. + * The amount in the payment's currency that is debited or credited on the received accounting + * register. * - * @param received The amount in the payment's currency that is debited or credited on the received accounting register. + * @param received The amount in the payment's currency that is debited or credited on the + * received accounting register. * @return the current {@code BalanceMutation} instance, allowing for method chaining */ public BalanceMutation received(Long received) { @@ -126,8 +131,11 @@ public BalanceMutation received(Long received) { } /** - * The amount in the payment's currency that is debited or credited on the received accounting register. - * @return received The amount in the payment's currency that is debited or credited on the received accounting register. + * The amount in the payment's currency that is debited or credited on the received accounting + * register. + * + * @return received The amount in the payment's currency that is debited or credited on the + * received accounting register. */ @JsonProperty(JSON_PROPERTY_RECEIVED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,9 +144,11 @@ public Long getReceived() { } /** - * The amount in the payment's currency that is debited or credited on the received accounting register. + * The amount in the payment's currency that is debited or credited on the received accounting + * register. * - * @param received The amount in the payment's currency that is debited or credited on the received accounting register. + * @param received The amount in the payment's currency that is debited or credited on the + * received accounting register. */ @JsonProperty(JSON_PROPERTY_RECEIVED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,9 +157,11 @@ public void setReceived(Long received) { } /** - * The amount in the payment's currency that is debited or credited on the reserved accounting register. + * The amount in the payment's currency that is debited or credited on the reserved accounting + * register. * - * @param reserved The amount in the payment's currency that is debited or credited on the reserved accounting register. + * @param reserved The amount in the payment's currency that is debited or credited on the + * reserved accounting register. * @return the current {@code BalanceMutation} instance, allowing for method chaining */ public BalanceMutation reserved(Long reserved) { @@ -158,8 +170,11 @@ public BalanceMutation reserved(Long reserved) { } /** - * The amount in the payment's currency that is debited or credited on the reserved accounting register. - * @return reserved The amount in the payment's currency that is debited or credited on the reserved accounting register. + * The amount in the payment's currency that is debited or credited on the reserved accounting + * register. + * + * @return reserved The amount in the payment's currency that is debited or credited on the + * reserved accounting register. */ @JsonProperty(JSON_PROPERTY_RESERVED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,9 +183,11 @@ public Long getReserved() { } /** - * The amount in the payment's currency that is debited or credited on the reserved accounting register. + * The amount in the payment's currency that is debited or credited on the reserved accounting + * register. * - * @param reserved The amount in the payment's currency that is debited or credited on the reserved accounting register. + * @param reserved The amount in the payment's currency that is debited or credited on the + * reserved accounting register. */ @JsonProperty(JSON_PROPERTY_RESERVED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,9 +195,7 @@ public void setReserved(Long reserved) { this.reserved = reserved; } - /** - * Return true if this BalanceMutation object is equal to o. - */ + /** Return true if this BalanceMutation object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -190,10 +205,10 @@ public boolean equals(Object o) { return false; } BalanceMutation balanceMutation = (BalanceMutation) o; - return Objects.equals(this.balance, balanceMutation.balance) && - Objects.equals(this.currency, balanceMutation.currency) && - Objects.equals(this.received, balanceMutation.received) && - Objects.equals(this.reserved, balanceMutation.reserved); + return Objects.equals(this.balance, balanceMutation.balance) + && Objects.equals(this.currency, balanceMutation.currency) + && Objects.equals(this.received, balanceMutation.received) + && Objects.equals(this.reserved, balanceMutation.reserved); } @Override @@ -214,8 +229,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,7 +238,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BalanceMutation given an JSON string * * @param jsonString JSON string @@ -234,11 +248,12 @@ private String toIndentedString(Object o) { public static BalanceMutation fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceMutation.class); } -/** - * Convert an instance of BalanceMutation to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BalanceMutation to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/BankAccountV3.java b/src/main/java/com/adyen/model/transfers/BankAccountV3.java index 83833ca9e..3d1a99a35 100644 --- a/src/main/java/com/adyen/model/transfers/BankAccountV3.java +++ b/src/main/java/com/adyen/model/transfers/BankAccountV3.java @@ -2,38 +2,26 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.BankAccountV3AccountIdentification; -import com.adyen.model.transfers.PartyIdentification; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * BankAccountV3 - */ +/** BankAccountV3 */ @JsonPropertyOrder({ BankAccountV3.JSON_PROPERTY_ACCOUNT_HOLDER, BankAccountV3.JSON_PROPERTY_ACCOUNT_IDENTIFICATION }) - public class BankAccountV3 { public static final String JSON_PROPERTY_ACCOUNT_HOLDER = "accountHolder"; private PartyIdentification accountHolder; @@ -41,13 +29,12 @@ public class BankAccountV3 { public static final String JSON_PROPERTY_ACCOUNT_IDENTIFICATION = "accountIdentification"; private BankAccountV3AccountIdentification accountIdentification; - public BankAccountV3() { - } + public BankAccountV3() {} /** * accountHolder * - * @param accountHolder + * @param accountHolder * @return the current {@code BankAccountV3} instance, allowing for method chaining */ public BankAccountV3 accountHolder(PartyIdentification accountHolder) { @@ -57,7 +44,8 @@ public BankAccountV3 accountHolder(PartyIdentification accountHolder) { /** * Get accountHolder - * @return accountHolder + * + * @return accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,7 +56,7 @@ public PartyIdentification getAccountHolder() { /** * accountHolder * - * @param accountHolder + * @param accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,17 +67,19 @@ public void setAccountHolder(PartyIdentification accountHolder) { /** * accountIdentification * - * @param accountIdentification + * @param accountIdentification * @return the current {@code BankAccountV3} instance, allowing for method chaining */ - public BankAccountV3 accountIdentification(BankAccountV3AccountIdentification accountIdentification) { + public BankAccountV3 accountIdentification( + BankAccountV3AccountIdentification accountIdentification) { this.accountIdentification = accountIdentification; return this; } /** * Get accountIdentification - * @return accountIdentification + * + * @return accountIdentification */ @JsonProperty(JSON_PROPERTY_ACCOUNT_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,7 +90,7 @@ public BankAccountV3AccountIdentification getAccountIdentification() { /** * accountIdentification * - * @param accountIdentification + * @param accountIdentification */ @JsonProperty(JSON_PROPERTY_ACCOUNT_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,9 +98,7 @@ public void setAccountIdentification(BankAccountV3AccountIdentification accountI this.accountIdentification = accountIdentification; } - /** - * Return true if this BankAccountV3 object is equal to o. - */ + /** Return true if this BankAccountV3 object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -120,8 +108,8 @@ public boolean equals(Object o) { return false; } BankAccountV3 bankAccountV3 = (BankAccountV3) o; - return Objects.equals(this.accountHolder, bankAccountV3.accountHolder) && - Objects.equals(this.accountIdentification, bankAccountV3.accountIdentification); + return Objects.equals(this.accountHolder, bankAccountV3.accountHolder) + && Objects.equals(this.accountIdentification, bankAccountV3.accountIdentification); } @Override @@ -134,14 +122,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BankAccountV3 {\n"); sb.append(" accountHolder: ").append(toIndentedString(accountHolder)).append("\n"); - sb.append(" accountIdentification: ").append(toIndentedString(accountIdentification)).append("\n"); + sb.append(" accountIdentification: ") + .append(toIndentedString(accountIdentification)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -150,7 +139,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BankAccountV3 given an JSON string * * @param jsonString JSON string @@ -160,11 +149,12 @@ private String toIndentedString(Object o) { public static BankAccountV3 fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankAccountV3.class); } -/** - * Convert an instance of BankAccountV3 to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BankAccountV3 to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/BankAccountV3AccountIdentification.java b/src/main/java/com/adyen/model/transfers/BankAccountV3AccountIdentification.java index f7d411f0a..fedff8f80 100644 --- a/src/main/java/com/adyen/model/transfers/BankAccountV3AccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/BankAccountV3AccountIdentification.java @@ -2,60 +2,19 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.AULocalAccountIdentification; -import com.adyen.model.transfers.AdditionalBankIdentification; -import com.adyen.model.transfers.BRLocalAccountIdentification; -import com.adyen.model.transfers.CALocalAccountIdentification; -import com.adyen.model.transfers.CZLocalAccountIdentification; -import com.adyen.model.transfers.DKLocalAccountIdentification; -import com.adyen.model.transfers.HKLocalAccountIdentification; -import com.adyen.model.transfers.HULocalAccountIdentification; -import com.adyen.model.transfers.IbanAccountIdentification; -import com.adyen.model.transfers.NOLocalAccountIdentification; -import com.adyen.model.transfers.NZLocalAccountIdentification; -import com.adyen.model.transfers.NumberAndBicAccountIdentification; -import com.adyen.model.transfers.PLLocalAccountIdentification; -import com.adyen.model.transfers.SELocalAccountIdentification; -import com.adyen.model.transfers.SGLocalAccountIdentification; -import com.adyen.model.transfers.UKLocalAccountIdentification; -import com.adyen.model.transfers.USLocalAccountIdentification; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -import com.fasterxml.jackson.core.type.TypeReference; - -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.core.Response; -import java.io.IOException; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; - import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -65,872 +24,942 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import jakarta.ws.rs.core.GenericType; +import java.io.IOException; +import java.util.*; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.logging.Level; +import java.util.logging.Logger; - -@JsonDeserialize(using = BankAccountV3AccountIdentification.BankAccountV3AccountIdentificationDeserializer.class) -@JsonSerialize(using = BankAccountV3AccountIdentification.BankAccountV3AccountIdentificationSerializer.class) +@JsonDeserialize( + using = BankAccountV3AccountIdentification.BankAccountV3AccountIdentificationDeserializer.class) +@JsonSerialize( + using = BankAccountV3AccountIdentification.BankAccountV3AccountIdentificationSerializer.class) public class BankAccountV3AccountIdentification extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(BankAccountV3AccountIdentification.class.getName()); - - public static class BankAccountV3AccountIdentificationSerializer extends StdSerializer { - public BankAccountV3AccountIdentificationSerializer(Class t) { - super(t); - } - - public BankAccountV3AccountIdentificationSerializer() { - this(null); - } - - @Override - public void serialize(BankAccountV3AccountIdentification value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class BankAccountV3AccountIdentificationDeserializer extends StdDeserializer { - public BankAccountV3AccountIdentificationDeserializer() { - this(BankAccountV3AccountIdentification.class); - } - - public BankAccountV3AccountIdentificationDeserializer(Class vc) { - super(vc); - } - - @Override - public BankAccountV3AccountIdentification deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize AULocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(AULocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AULocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AULocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AULocalAccountIdentification'", e); - } - - // deserialize BRLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(BRLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(BRLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'BRLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'BRLocalAccountIdentification'", e); - } - - // deserialize CALocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(CALocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CALocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CALocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CALocalAccountIdentification'", e); - } - - // deserialize CZLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(CZLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CZLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CZLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CZLocalAccountIdentification'", e); - } - - // deserialize DKLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(DKLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(DKLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'DKLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'DKLocalAccountIdentification'", e); - } - - // deserialize HKLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(HKLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(HKLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'HKLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'HKLocalAccountIdentification'", e); - } - - // deserialize HULocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(HULocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(HULocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'HULocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'HULocalAccountIdentification'", e); - } - - // deserialize IbanAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(IbanAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'IbanAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'IbanAccountIdentification'", e); - } - - // deserialize NOLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(NOLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(NOLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'NOLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'NOLocalAccountIdentification'", e); - } - - // deserialize NZLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(NZLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(NZLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'NZLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'NZLocalAccountIdentification'", e); - } - - // deserialize NumberAndBicAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(NumberAndBicAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(NumberAndBicAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'NumberAndBicAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'NumberAndBicAccountIdentification'", e); - } - - // deserialize PLLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(PLLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PLLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PLLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PLLocalAccountIdentification'", e); - } - - // deserialize SELocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(SELocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(SELocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SELocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'SELocalAccountIdentification'", e); - } - - // deserialize SGLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(SGLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(SGLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SGLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'SGLocalAccountIdentification'", e); - } - - // deserialize UKLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(UKLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(UKLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'UKLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'UKLocalAccountIdentification'", e); - } - - // deserialize USLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(USLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(USLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'USLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'USLocalAccountIdentification'", e); - } - - if (match == 1) { - BankAccountV3AccountIdentification ret = new BankAccountV3AccountIdentification(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException(String.format("Failed deserialization for BankAccountV3AccountIdentification: %d classes match result, expected 1", match)); - } - - /** - * Handle deserialization of the 'null' value. - */ - @Override - public BankAccountV3AccountIdentification getNullValue(DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "BankAccountV3AccountIdentification cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public BankAccountV3AccountIdentification() { - super("oneOf", Boolean.FALSE); - } - - public BankAccountV3AccountIdentification(AULocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(BRLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(CALocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(CZLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(DKLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(HKLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(HULocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(IbanAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(NOLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(NZLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } + private static final Logger log = + Logger.getLogger(BankAccountV3AccountIdentification.class.getName()); - public BankAccountV3AccountIdentification(NumberAndBicAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + public static class BankAccountV3AccountIdentificationSerializer + extends StdSerializer { + public BankAccountV3AccountIdentificationSerializer( + Class t) { + super(t); } - public BankAccountV3AccountIdentification(PLLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + public BankAccountV3AccountIdentificationSerializer() { + this(null); } - public BankAccountV3AccountIdentification(SELocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(SGLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(UKLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(USLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + @Override + public void serialize( + BankAccountV3AccountIdentification value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); } + } - static { - schemas.put("AULocalAccountIdentification", new GenericType() { - }); - schemas.put("BRLocalAccountIdentification", new GenericType() { - }); - schemas.put("CALocalAccountIdentification", new GenericType() { - }); - schemas.put("CZLocalAccountIdentification", new GenericType() { - }); - schemas.put("DKLocalAccountIdentification", new GenericType() { - }); - schemas.put("HKLocalAccountIdentification", new GenericType() { - }); - schemas.put("HULocalAccountIdentification", new GenericType() { - }); - schemas.put("IbanAccountIdentification", new GenericType() { - }); - schemas.put("NOLocalAccountIdentification", new GenericType() { - }); - schemas.put("NZLocalAccountIdentification", new GenericType() { - }); - schemas.put("NumberAndBicAccountIdentification", new GenericType() { - }); - schemas.put("PLLocalAccountIdentification", new GenericType() { - }); - schemas.put("SELocalAccountIdentification", new GenericType() { - }); - schemas.put("SGLocalAccountIdentification", new GenericType() { - }); - schemas.put("UKLocalAccountIdentification", new GenericType() { - }); - schemas.put("USLocalAccountIdentification", new GenericType() { - }); - JSON.registerDescendants(BankAccountV3AccountIdentification.class, Collections.unmodifiableMap(schemas)); + public static class BankAccountV3AccountIdentificationDeserializer + extends StdDeserializer { + public BankAccountV3AccountIdentificationDeserializer() { + this(BankAccountV3AccountIdentification.class); } - @Override - public Map> getSchemas() { - return BankAccountV3AccountIdentification.schemas; + public BankAccountV3AccountIdentificationDeserializer(Class vc) { + super(vc); } - /** - * Set the instance that matches the oneOf child schema, check - * the instance parameter is valid against the oneOf child schemas: - * AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification - * - * It could be an instance of the 'oneOf' schemas. - * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). - */ @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(AULocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + public BankAccountV3AccountIdentification deserialize( + JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize AULocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(AULocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(AULocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'AULocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(BRLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'AULocalAccountIdentification'", e); + } + + // deserialize BRLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(BRLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(BRLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'BRLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(CALocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'BRLocalAccountIdentification'", e); + } + + // deserialize CALocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(CALocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(CALocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CALocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(CZLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CALocalAccountIdentification'", e); + } + + // deserialize CZLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(CZLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(CZLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CZLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(DKLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CZLocalAccountIdentification'", e); + } + + // deserialize DKLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(DKLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(DKLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'DKLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(HKLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'DKLocalAccountIdentification'", e); + } + + // deserialize HKLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(HKLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(HKLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'HKLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(HULocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'HKLocalAccountIdentification'", e); + } + + // deserialize HULocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(HULocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(HULocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'HULocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(IbanAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'HULocalAccountIdentification'", e); + } + + // deserialize IbanAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(IbanAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'IbanAccountIdentification'"); + } } - - if (JSON.isInstanceOf(NOLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'IbanAccountIdentification'", e); + } + + // deserialize NOLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(NOLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(NOLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'NOLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(NZLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'NOLocalAccountIdentification'", e); + } + + // deserialize NZLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(NZLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(NZLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'NZLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(NumberAndBicAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'NZLocalAccountIdentification'", e); + } + + // deserialize NumberAndBicAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(NumberAndBicAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(NumberAndBicAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'NumberAndBicAccountIdentification'"); + } } - - if (JSON.isInstanceOf(PLLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log( + Level.FINER, "Input data does not match schema 'NumberAndBicAccountIdentification'", e); + } + + // deserialize PLLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(PLLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(PLLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PLLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(SELocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PLLocalAccountIdentification'", e); + } + + // deserialize SELocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(SELocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(SELocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'SELocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(SGLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'SELocalAccountIdentification'", e); + } + + // deserialize SGLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(SGLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(SGLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'SGLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(UKLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'SGLocalAccountIdentification'", e); + } + + // deserialize UKLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(UKLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(UKLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'UKLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(USLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'UKLocalAccountIdentification'", e); + } + + // deserialize USLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(USLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(USLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'USLocalAccountIdentification'"); + } } - - throw new RuntimeException("Invalid instance type. Must be AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification"); - } - - /** - * Get the actual instance, which can be the following: - * AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification - * - * @return The actual instance (AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification) - */ + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'USLocalAccountIdentification'", e); + } + + if (match == 1) { + BankAccountV3AccountIdentification ret = new BankAccountV3AccountIdentification(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException( + String.format( + "Failed deserialization for BankAccountV3AccountIdentification: %d classes match result, expected 1", + match)); + } + + /** Handle deserialization of the 'null' value. */ @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `AULocalAccountIdentification`. If the actual instance is not `AULocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `AULocalAccountIdentification` - * @throws ClassCastException if the instance is not `AULocalAccountIdentification` - */ - public AULocalAccountIdentification getAULocalAccountIdentification() throws ClassCastException { - return (AULocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `BRLocalAccountIdentification`. If the actual instance is not `BRLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `BRLocalAccountIdentification` - * @throws ClassCastException if the instance is not `BRLocalAccountIdentification` - */ - public BRLocalAccountIdentification getBRLocalAccountIdentification() throws ClassCastException { - return (BRLocalAccountIdentification)super.getActualInstance(); - } + public BankAccountV3AccountIdentification getNullValue(DeserializationContext ctxt) + throws JsonMappingException { + throw new JsonMappingException( + ctxt.getParser(), "BankAccountV3AccountIdentification cannot be null"); + } + } + + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public BankAccountV3AccountIdentification() { + super("oneOf", Boolean.FALSE); + } + + public BankAccountV3AccountIdentification(AULocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(BRLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(CALocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(CZLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(DKLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(HKLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(HULocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(IbanAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(NOLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(NZLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(NumberAndBicAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(PLLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(SELocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(SGLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(UKLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(USLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("AULocalAccountIdentification", new GenericType() {}); + schemas.put("BRLocalAccountIdentification", new GenericType() {}); + schemas.put("CALocalAccountIdentification", new GenericType() {}); + schemas.put("CZLocalAccountIdentification", new GenericType() {}); + schemas.put("DKLocalAccountIdentification", new GenericType() {}); + schemas.put("HKLocalAccountIdentification", new GenericType() {}); + schemas.put("HULocalAccountIdentification", new GenericType() {}); + schemas.put("IbanAccountIdentification", new GenericType() {}); + schemas.put("NOLocalAccountIdentification", new GenericType() {}); + schemas.put("NZLocalAccountIdentification", new GenericType() {}); + schemas.put( + "NumberAndBicAccountIdentification", + new GenericType() {}); + schemas.put("PLLocalAccountIdentification", new GenericType() {}); + schemas.put("SELocalAccountIdentification", new GenericType() {}); + schemas.put("SGLocalAccountIdentification", new GenericType() {}); + schemas.put("UKLocalAccountIdentification", new GenericType() {}); + schemas.put("USLocalAccountIdentification", new GenericType() {}); + JSON.registerDescendants( + BankAccountV3AccountIdentification.class, Collections.unmodifiableMap(schemas)); + } - /** - * Get the actual instance of `CALocalAccountIdentification`. If the actual instance is not `CALocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CALocalAccountIdentification` - * @throws ClassCastException if the instance is not `CALocalAccountIdentification` - */ - public CALocalAccountIdentification getCALocalAccountIdentification() throws ClassCastException { - return (CALocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `CZLocalAccountIdentification`. If the actual instance is not `CZLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CZLocalAccountIdentification` - * @throws ClassCastException if the instance is not `CZLocalAccountIdentification` - */ - public CZLocalAccountIdentification getCZLocalAccountIdentification() throws ClassCastException { - return (CZLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `DKLocalAccountIdentification`. If the actual instance is not `DKLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `DKLocalAccountIdentification` - * @throws ClassCastException if the instance is not `DKLocalAccountIdentification` - */ - public DKLocalAccountIdentification getDKLocalAccountIdentification() throws ClassCastException { - return (DKLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `HKLocalAccountIdentification`. If the actual instance is not `HKLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `HKLocalAccountIdentification` - * @throws ClassCastException if the instance is not `HKLocalAccountIdentification` - */ - public HKLocalAccountIdentification getHKLocalAccountIdentification() throws ClassCastException { - return (HKLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `HULocalAccountIdentification`. If the actual instance is not `HULocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `HULocalAccountIdentification` - * @throws ClassCastException if the instance is not `HULocalAccountIdentification` - */ - public HULocalAccountIdentification getHULocalAccountIdentification() throws ClassCastException { - return (HULocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `IbanAccountIdentification`. If the actual instance is not `IbanAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `IbanAccountIdentification` - * @throws ClassCastException if the instance is not `IbanAccountIdentification` - */ - public IbanAccountIdentification getIbanAccountIdentification() throws ClassCastException { - return (IbanAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `NOLocalAccountIdentification`. If the actual instance is not `NOLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `NOLocalAccountIdentification` - * @throws ClassCastException if the instance is not `NOLocalAccountIdentification` - */ - public NOLocalAccountIdentification getNOLocalAccountIdentification() throws ClassCastException { - return (NOLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `NZLocalAccountIdentification`. If the actual instance is not `NZLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `NZLocalAccountIdentification` - * @throws ClassCastException if the instance is not `NZLocalAccountIdentification` - */ - public NZLocalAccountIdentification getNZLocalAccountIdentification() throws ClassCastException { - return (NZLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `NumberAndBicAccountIdentification`. If the actual instance is not `NumberAndBicAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `NumberAndBicAccountIdentification` - * @throws ClassCastException if the instance is not `NumberAndBicAccountIdentification` - */ - public NumberAndBicAccountIdentification getNumberAndBicAccountIdentification() throws ClassCastException { - return (NumberAndBicAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `PLLocalAccountIdentification`. If the actual instance is not `PLLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PLLocalAccountIdentification` - * @throws ClassCastException if the instance is not `PLLocalAccountIdentification` - */ - public PLLocalAccountIdentification getPLLocalAccountIdentification() throws ClassCastException { - return (PLLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `SELocalAccountIdentification`. If the actual instance is not `SELocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `SELocalAccountIdentification` - * @throws ClassCastException if the instance is not `SELocalAccountIdentification` - */ - public SELocalAccountIdentification getSELocalAccountIdentification() throws ClassCastException { - return (SELocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `SGLocalAccountIdentification`. If the actual instance is not `SGLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `SGLocalAccountIdentification` - * @throws ClassCastException if the instance is not `SGLocalAccountIdentification` - */ - public SGLocalAccountIdentification getSGLocalAccountIdentification() throws ClassCastException { - return (SGLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `UKLocalAccountIdentification`. If the actual instance is not `UKLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `UKLocalAccountIdentification` - * @throws ClassCastException if the instance is not `UKLocalAccountIdentification` - */ - public UKLocalAccountIdentification getUKLocalAccountIdentification() throws ClassCastException { - return (UKLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `USLocalAccountIdentification`. If the actual instance is not `USLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `USLocalAccountIdentification` - * @throws ClassCastException if the instance is not `USLocalAccountIdentification` - */ - public USLocalAccountIdentification getUSLocalAccountIdentification() throws ClassCastException { - return (USLocalAccountIdentification)super.getActualInstance(); - } - - - /** - * Create an instance of BankAccountV3AccountIdentification given an JSON string - * - * @param jsonString JSON string - * @return An instance of BankAccountV3AccountIdentification - * @throws IOException if the JSON string is invalid with respect to BankAccountV3AccountIdentification - */ - public static BankAccountV3AccountIdentification fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, BankAccountV3AccountIdentification.class); - } - - /** - * Convert an instance of BankAccountV3AccountIdentification to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); - } + @Override + public Map> getSchemas() { + return BankAccountV3AccountIdentification.schemas; + } + /** + * Set the instance that matches the oneOf child schema, check the instance parameter is valid + * against the oneOf child schemas: AULocalAccountIdentification, BRLocalAccountIdentification, + * CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, + * HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, + * NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, + * PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, + * UKLocalAccountIdentification, USLocalAccountIdentification + * + *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a + * composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(AULocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(BRLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(CALocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(CZLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(DKLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(HKLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(HULocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(IbanAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(NOLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(NZLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(NumberAndBicAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(PLLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(SELocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(SGLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(UKLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(USLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException( + "Invalid instance type. Must be AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification"); + } + + /** + * Get the actual instance, which can be the following: AULocalAccountIdentification, + * BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, + * DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, + * IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, + * NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, + * SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification + * + * @return The actual instance (AULocalAccountIdentification, BRLocalAccountIdentification, + * CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, + * HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, + * NOLocalAccountIdentification, NZLocalAccountIdentification, + * NumberAndBicAccountIdentification, PLLocalAccountIdentification, + * SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, + * USLocalAccountIdentification) + */ + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `AULocalAccountIdentification`. If the actual instance is not + * `AULocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `AULocalAccountIdentification` + * @throws ClassCastException if the instance is not `AULocalAccountIdentification` + */ + public AULocalAccountIdentification getAULocalAccountIdentification() throws ClassCastException { + return (AULocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `BRLocalAccountIdentification`. If the actual instance is not + * `BRLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `BRLocalAccountIdentification` + * @throws ClassCastException if the instance is not `BRLocalAccountIdentification` + */ + public BRLocalAccountIdentification getBRLocalAccountIdentification() throws ClassCastException { + return (BRLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `CALocalAccountIdentification`. If the actual instance is not + * `CALocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `CALocalAccountIdentification` + * @throws ClassCastException if the instance is not `CALocalAccountIdentification` + */ + public CALocalAccountIdentification getCALocalAccountIdentification() throws ClassCastException { + return (CALocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `CZLocalAccountIdentification`. If the actual instance is not + * `CZLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `CZLocalAccountIdentification` + * @throws ClassCastException if the instance is not `CZLocalAccountIdentification` + */ + public CZLocalAccountIdentification getCZLocalAccountIdentification() throws ClassCastException { + return (CZLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `DKLocalAccountIdentification`. If the actual instance is not + * `DKLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `DKLocalAccountIdentification` + * @throws ClassCastException if the instance is not `DKLocalAccountIdentification` + */ + public DKLocalAccountIdentification getDKLocalAccountIdentification() throws ClassCastException { + return (DKLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `HKLocalAccountIdentification`. If the actual instance is not + * `HKLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `HKLocalAccountIdentification` + * @throws ClassCastException if the instance is not `HKLocalAccountIdentification` + */ + public HKLocalAccountIdentification getHKLocalAccountIdentification() throws ClassCastException { + return (HKLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `HULocalAccountIdentification`. If the actual instance is not + * `HULocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `HULocalAccountIdentification` + * @throws ClassCastException if the instance is not `HULocalAccountIdentification` + */ + public HULocalAccountIdentification getHULocalAccountIdentification() throws ClassCastException { + return (HULocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `IbanAccountIdentification`. If the actual instance is not + * `IbanAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `IbanAccountIdentification` + * @throws ClassCastException if the instance is not `IbanAccountIdentification` + */ + public IbanAccountIdentification getIbanAccountIdentification() throws ClassCastException { + return (IbanAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `NOLocalAccountIdentification`. If the actual instance is not + * `NOLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `NOLocalAccountIdentification` + * @throws ClassCastException if the instance is not `NOLocalAccountIdentification` + */ + public NOLocalAccountIdentification getNOLocalAccountIdentification() throws ClassCastException { + return (NOLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `NZLocalAccountIdentification`. If the actual instance is not + * `NZLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `NZLocalAccountIdentification` + * @throws ClassCastException if the instance is not `NZLocalAccountIdentification` + */ + public NZLocalAccountIdentification getNZLocalAccountIdentification() throws ClassCastException { + return (NZLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `NumberAndBicAccountIdentification`. If the actual instance is not + * `NumberAndBicAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `NumberAndBicAccountIdentification` + * @throws ClassCastException if the instance is not `NumberAndBicAccountIdentification` + */ + public NumberAndBicAccountIdentification getNumberAndBicAccountIdentification() + throws ClassCastException { + return (NumberAndBicAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `PLLocalAccountIdentification`. If the actual instance is not + * `PLLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `PLLocalAccountIdentification` + * @throws ClassCastException if the instance is not `PLLocalAccountIdentification` + */ + public PLLocalAccountIdentification getPLLocalAccountIdentification() throws ClassCastException { + return (PLLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `SELocalAccountIdentification`. If the actual instance is not + * `SELocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `SELocalAccountIdentification` + * @throws ClassCastException if the instance is not `SELocalAccountIdentification` + */ + public SELocalAccountIdentification getSELocalAccountIdentification() throws ClassCastException { + return (SELocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `SGLocalAccountIdentification`. If the actual instance is not + * `SGLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `SGLocalAccountIdentification` + * @throws ClassCastException if the instance is not `SGLocalAccountIdentification` + */ + public SGLocalAccountIdentification getSGLocalAccountIdentification() throws ClassCastException { + return (SGLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `UKLocalAccountIdentification`. If the actual instance is not + * `UKLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `UKLocalAccountIdentification` + * @throws ClassCastException if the instance is not `UKLocalAccountIdentification` + */ + public UKLocalAccountIdentification getUKLocalAccountIdentification() throws ClassCastException { + return (UKLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `USLocalAccountIdentification`. If the actual instance is not + * `USLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `USLocalAccountIdentification` + * @throws ClassCastException if the instance is not `USLocalAccountIdentification` + */ + public USLocalAccountIdentification getUSLocalAccountIdentification() throws ClassCastException { + return (USLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Create an instance of BankAccountV3AccountIdentification given an JSON string + * + * @param jsonString JSON string + * @return An instance of BankAccountV3AccountIdentification + * @throws IOException if the JSON string is invalid with respect to + * BankAccountV3AccountIdentification + */ + public static BankAccountV3AccountIdentification fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, BankAccountV3AccountIdentification.class); + } + + /** + * Convert an instance of BankAccountV3AccountIdentification to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } } diff --git a/src/main/java/com/adyen/model/transfers/BankCategoryData.java b/src/main/java/com/adyen/model/transfers/BankCategoryData.java index f271d6e26..cbd1399b2 100644 --- a/src/main/java/com/adyen/model/transfers/BankCategoryData.java +++ b/src/main/java/com/adyen/model/transfers/BankCategoryData.java @@ -2,42 +2,42 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * BankCategoryData - */ -@JsonPropertyOrder({ - BankCategoryData.JSON_PROPERTY_PRIORITY, - BankCategoryData.JSON_PROPERTY_TYPE -}) - +/** BankCategoryData */ +@JsonPropertyOrder({BankCategoryData.JSON_PROPERTY_PRIORITY, BankCategoryData.JSON_PROPERTY_TYPE}) public class BankCategoryData { /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the + * fees that you have to pay. Required for transfers with `category` **bank**. Possible + * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer + * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * + * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). */ public enum PriorityEnum { - CROSSBORDER(String.valueOf("crossBorder")), FAST(String.valueOf("fast")), @@ -55,7 +55,7 @@ public enum PriorityEnum { private String value; PriorityEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -76,7 +76,11 @@ public static PriorityEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PriorityEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PriorityEnum.values())); + LOG.warning( + "PriorityEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PriorityEnum.values())); return null; } } @@ -84,11 +88,8 @@ public static PriorityEnum fromValue(String value) { public static final String JSON_PROPERTY_PRIORITY = "priority"; private PriorityEnum priority; - /** - * **bank** - */ + /** **bank** */ public enum TypeEnum { - BANK(String.valueOf("bank")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -96,7 +97,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -117,7 +118,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -125,13 +130,32 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public BankCategoryData() { - } + public BankCategoryData() {} /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the + * fees that you have to pay. Required for transfers with `category` **bank**. Possible + * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer + * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * + * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). * - * @param priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * @param priority The priority for the bank transfer. This sets the speed at which the transfer + * is sent and the fees that you have to pay. Required for transfers with `category` + * **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a + * faster way to transfer funds, but the fees are higher. Recommended for high-priority, + * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the + * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for + * instant funds transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). * @return the current {@code BankCategoryData} instance, allowing for method chaining */ public BankCategoryData priority(PriorityEnum priority) { @@ -140,8 +164,29 @@ public BankCategoryData priority(PriorityEnum priority) { } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). - * @return priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the + * fees that you have to pay. Required for transfers with `category` **bank**. Possible + * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer + * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * + * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). + * + * @return priority The priority for the bank transfer. This sets the speed at which the transfer + * is sent and the fees that you have to pay. Required for transfers with `category` + * **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a + * faster way to transfer funds, but the fees are higher. Recommended for high-priority, + * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the + * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for + * instant funds transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). */ @JsonProperty(JSON_PROPERTY_PRIORITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,9 +195,29 @@ public PriorityEnum getPriority() { } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the + * fees that you have to pay. Required for transfers with `category` **bank**. Possible + * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer + * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * + * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). * - * @param priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * @param priority The priority for the bank transfer. This sets the speed at which the transfer + * is sent and the fees that you have to pay. Required for transfers with `category` + * **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a + * faster way to transfer funds, but the fees are higher. Recommended for high-priority, + * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the + * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for + * instant funds transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). */ @JsonProperty(JSON_PROPERTY_PRIORITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,6 +238,7 @@ public BankCategoryData type(TypeEnum type) { /** * **bank** + * * @return type **bank** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -192,9 +258,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this BankCategoryData object is equal to o. - */ + /** Return true if this BankCategoryData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -204,8 +268,8 @@ public boolean equals(Object o) { return false; } BankCategoryData bankCategoryData = (BankCategoryData) o; - return Objects.equals(this.priority, bankCategoryData.priority) && - Objects.equals(this.type, bankCategoryData.type); + return Objects.equals(this.priority, bankCategoryData.priority) + && Objects.equals(this.type, bankCategoryData.type); } @Override @@ -224,8 +288,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -234,7 +297,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BankCategoryData given an JSON string * * @param jsonString JSON string @@ -244,11 +307,12 @@ private String toIndentedString(Object o) { public static BankCategoryData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankCategoryData.class); } -/** - * Convert an instance of BankCategoryData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BankCategoryData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/CALocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/CALocalAccountIdentification.java index fd22bc860..648bb2325 100644 --- a/src/main/java/com/adyen/model/transfers/CALocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/CALocalAccountIdentification.java @@ -2,31 +2,26 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * CALocalAccountIdentification - */ +/** CALocalAccountIdentification */ @JsonPropertyOrder({ CALocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, CALocalAccountIdentification.JSON_PROPERTY_ACCOUNT_TYPE, @@ -34,16 +29,14 @@ CALocalAccountIdentification.JSON_PROPERTY_TRANSIT_NUMBER, CALocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class CALocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ public enum AccountTypeEnum { - CHECKING(String.valueOf("checking")), SAVINGS(String.valueOf("savings")); @@ -53,7 +46,7 @@ public enum AccountTypeEnum { private String value; AccountTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -74,7 +67,11 @@ public static AccountTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AccountTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AccountTypeEnum.values())); + LOG.warning( + "AccountTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AccountTypeEnum.values())); return null; } } @@ -88,11 +85,8 @@ public static AccountTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANSIT_NUMBER = "transitNumber"; private String transitNumber; - /** - * **caLocal** - */ + /** **caLocal** */ public enum TypeEnum { - CALOCAL(String.valueOf("caLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -100,7 +94,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -121,7 +115,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -129,8 +127,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CALocalAccountIdentification() { - } + public CALocalAccountIdentification() {} /** * The 5- to 12-digit bank account number, without separators or whitespace. @@ -145,6 +142,7 @@ public CALocalAccountIdentification accountNumber(String accountNumber) { /** * The 5- to 12-digit bank account number, without separators or whitespace. + * * @return accountNumber The 5- to 12-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -165,9 +163,10 @@ public void setAccountNumber(String accountNumber) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. + * Defaults to **checking**. * @return the current {@code CALocalAccountIdentification} instance, allowing for method chaining */ public CALocalAccountIdentification accountType(AccountTypeEnum accountType) { @@ -176,8 +175,10 @@ public CALocalAccountIdentification accountType(AccountTypeEnum accountType) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. - * @return accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * + * @return accountType The bank account type. Possible values: **checking** or **savings**. + * Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,9 +187,10 @@ public AccountTypeEnum getAccountType() { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. + * Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -209,6 +211,7 @@ public CALocalAccountIdentification institutionNumber(String institutionNumber) /** * The 3-digit institution number, without separators or whitespace. + * * @return institutionNumber The 3-digit institution number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_INSTITUTION_NUMBER) @@ -241,6 +244,7 @@ public CALocalAccountIdentification transitNumber(String transitNumber) { /** * The 5-digit transit number, without separators or whitespace. + * * @return transitNumber The 5-digit transit number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_TRANSIT_NUMBER) @@ -273,6 +277,7 @@ public CALocalAccountIdentification type(TypeEnum type) { /** * **caLocal** + * * @return type **caLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -292,9 +297,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this CALocalAccountIdentification object is equal to o. - */ + /** Return true if this CALocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -304,11 +307,11 @@ public boolean equals(Object o) { return false; } CALocalAccountIdentification caLocalAccountIdentification = (CALocalAccountIdentification) o; - return Objects.equals(this.accountNumber, caLocalAccountIdentification.accountNumber) && - Objects.equals(this.accountType, caLocalAccountIdentification.accountType) && - Objects.equals(this.institutionNumber, caLocalAccountIdentification.institutionNumber) && - Objects.equals(this.transitNumber, caLocalAccountIdentification.transitNumber) && - Objects.equals(this.type, caLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, caLocalAccountIdentification.accountNumber) + && Objects.equals(this.accountType, caLocalAccountIdentification.accountType) + && Objects.equals(this.institutionNumber, caLocalAccountIdentification.institutionNumber) + && Objects.equals(this.transitNumber, caLocalAccountIdentification.transitNumber) + && Objects.equals(this.type, caLocalAccountIdentification.type); } @Override @@ -330,8 +333,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -340,21 +342,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CALocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of CALocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to CALocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CALocalAccountIdentification */ - public static CALocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static CALocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CALocalAccountIdentification.class); } -/** - * Convert an instance of CALocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CALocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/CZLocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/CZLocalAccountIdentification.java index 0b2d54924..b07f74868 100644 --- a/src/main/java/com/adyen/model/transfers/CZLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/CZLocalAccountIdentification.java @@ -2,37 +2,31 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * CZLocalAccountIdentification - */ +/** CZLocalAccountIdentification */ @JsonPropertyOrder({ CZLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, CZLocalAccountIdentification.JSON_PROPERTY_BANK_CODE, CZLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class CZLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -40,11 +34,8 @@ public class CZLocalAccountIdentification { public static final String JSON_PROPERTY_BANK_CODE = "bankCode"; private String bankCode; - /** - * **czLocal** - */ + /** **czLocal** */ public enum TypeEnum { - CZLOCAL(String.valueOf("czLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +43,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +64,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,13 +76,20 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CZLocalAccountIdentification() { - } + public CZLocalAccountIdentification() {} /** - * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) + * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional + * prefix (předčíslí). - The required second part (základní část) which must be at least two + * non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - + * **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, + * normalized) * - * @param accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) + * @param accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following + * format: - The optional prefix (předčíslí). - The required second part (základní část) which + * must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** + * (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** + * (without prefix, normalized) * @return the current {@code CZLocalAccountIdentification} instance, allowing for method chaining */ public CZLocalAccountIdentification accountNumber(String accountNumber) { @@ -96,8 +98,17 @@ public CZLocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) - * @return accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) + * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional + * prefix (předčíslí). - The required second part (základní část) which must be at least two + * non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - + * **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, + * normalized) + * + * @return accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following + * format: - The optional prefix (předčíslí). - The required second part (základní část) which + * must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** + * (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** + * (without prefix, normalized) */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +117,17 @@ public String getAccountNumber() { } /** - * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) + * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional + * prefix (předčíslí). - The required second part (základní část) which must be at least two + * non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - + * **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, + * normalized) * - * @param accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) + * @param accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following + * format: - The optional prefix (předčíslí). - The required second part (základní část) which + * must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** + * (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** + * (without prefix, normalized) */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,6 +148,7 @@ public CZLocalAccountIdentification bankCode(String bankCode) { /** * The 4-digit bank code (Kód banky), without separators or whitespace. + * * @return bankCode The 4-digit bank code (Kód banky), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_BANK_CODE) @@ -161,6 +181,7 @@ public CZLocalAccountIdentification type(TypeEnum type) { /** * **czLocal** + * * @return type **czLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +201,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this CZLocalAccountIdentification object is equal to o. - */ + /** Return true if this CZLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +211,9 @@ public boolean equals(Object o) { return false; } CZLocalAccountIdentification czLocalAccountIdentification = (CZLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, czLocalAccountIdentification.accountNumber) && - Objects.equals(this.bankCode, czLocalAccountIdentification.bankCode) && - Objects.equals(this.type, czLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, czLocalAccountIdentification.accountNumber) + && Objects.equals(this.bankCode, czLocalAccountIdentification.bankCode) + && Objects.equals(this.type, czLocalAccountIdentification.type); } @Override @@ -214,8 +233,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +242,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CZLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of CZLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to CZLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CZLocalAccountIdentification */ - public static CZLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static CZLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CZLocalAccountIdentification.class); } -/** - * Convert an instance of CZLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CZLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/CancelTransfersRequest.java b/src/main/java/com/adyen/model/transfers/CancelTransfersRequest.java index f758c6c66..86903a5b6 100644 --- a/src/main/java/com/adyen/model/transfers/CancelTransfersRequest.java +++ b/src/main/java/com/adyen/model/transfers/CancelTransfersRequest.java @@ -2,43 +2,30 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * CancelTransfersRequest - */ -@JsonPropertyOrder({ - CancelTransfersRequest.JSON_PROPERTY_TRANSFER_IDS -}) - +/** CancelTransfersRequest */ +@JsonPropertyOrder({CancelTransfersRequest.JSON_PROPERTY_TRANSFER_IDS}) public class CancelTransfersRequest { public static final String JSON_PROPERTY_TRANSFER_IDS = "transferIds"; private List transferIds; - public CancelTransfersRequest() { - } + public CancelTransfersRequest() {} /** * Contains the unique identifiers of the transfers that you want to cancel. @@ -61,6 +48,7 @@ public CancelTransfersRequest addTransferIdsItem(String transferIdsItem) { /** * Contains the unique identifiers of the transfers that you want to cancel. + * * @return transferIds Contains the unique identifiers of the transfers that you want to cancel. */ @JsonProperty(JSON_PROPERTY_TRANSFER_IDS) @@ -80,9 +68,7 @@ public void setTransferIds(List transferIds) { this.transferIds = transferIds; } - /** - * Return true if this CancelTransfersRequest object is equal to o. - */ + /** Return true if this CancelTransfersRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -110,8 +96,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -120,21 +105,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CancelTransfersRequest given an JSON string * * @param jsonString JSON string * @return An instance of CancelTransfersRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to CancelTransfersRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CancelTransfersRequest */ public static CancelTransfersRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CancelTransfersRequest.class); } -/** - * Convert an instance of CancelTransfersRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CancelTransfersRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/CapitalBalance.java b/src/main/java/com/adyen/model/transfers/CapitalBalance.java index c2f7efbb2..c8fe68990 100644 --- a/src/main/java/com/adyen/model/transfers/CapitalBalance.java +++ b/src/main/java/com/adyen/model/transfers/CapitalBalance.java @@ -2,38 +2,28 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * CapitalBalance - */ +/** CapitalBalance */ @JsonPropertyOrder({ CapitalBalance.JSON_PROPERTY_CURRENCY, CapitalBalance.JSON_PROPERTY_FEE, CapitalBalance.JSON_PROPERTY_PRINCIPAL, CapitalBalance.JSON_PROPERTY_TOTAL }) - public class CapitalBalance { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -47,13 +37,14 @@ public class CapitalBalance { public static final String JSON_PROPERTY_TOTAL = "total"; private Long total; - public CapitalBalance() { - } + public CapitalBalance() {} /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code CapitalBalance} instance, allowing for method chaining */ public CapitalBalance currency(String currency) { @@ -62,8 +53,11 @@ public CapitalBalance currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -72,9 +66,11 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -95,6 +91,7 @@ public CapitalBalance fee(Long fee) { /** * Fee amount. + * * @return fee Fee amount. */ @JsonProperty(JSON_PROPERTY_FEE) @@ -127,6 +124,7 @@ public CapitalBalance principal(Long principal) { /** * Principal amount. + * * @return principal Principal amount. */ @JsonProperty(JSON_PROPERTY_PRINCIPAL) @@ -159,6 +157,7 @@ public CapitalBalance total(Long total) { /** * Total amount. A sum of principal amount and fee amount. + * * @return total Total amount. A sum of principal amount and fee amount. */ @JsonProperty(JSON_PROPERTY_TOTAL) @@ -178,9 +177,7 @@ public void setTotal(Long total) { this.total = total; } - /** - * Return true if this CapitalBalance object is equal to o. - */ + /** Return true if this CapitalBalance object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -190,10 +187,10 @@ public boolean equals(Object o) { return false; } CapitalBalance capitalBalance = (CapitalBalance) o; - return Objects.equals(this.currency, capitalBalance.currency) && - Objects.equals(this.fee, capitalBalance.fee) && - Objects.equals(this.principal, capitalBalance.principal) && - Objects.equals(this.total, capitalBalance.total); + return Objects.equals(this.currency, capitalBalance.currency) + && Objects.equals(this.fee, capitalBalance.fee) + && Objects.equals(this.principal, capitalBalance.principal) + && Objects.equals(this.total, capitalBalance.total); } @Override @@ -214,8 +211,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,7 +220,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CapitalBalance given an JSON string * * @param jsonString JSON string @@ -234,11 +230,12 @@ private String toIndentedString(Object o) { public static CapitalBalance fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapitalBalance.class); } -/** - * Convert an instance of CapitalBalance to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CapitalBalance to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/CapitalGrant.java b/src/main/java/com/adyen/model/transfers/CapitalGrant.java index c83f3ffa5..898c8a4d4 100644 --- a/src/main/java/com/adyen/model/transfers/CapitalGrant.java +++ b/src/main/java/com/adyen/model/transfers/CapitalGrant.java @@ -2,36 +2,26 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.Amount; -import com.adyen.model.transfers.CapitalBalance; -import com.adyen.model.transfers.Counterparty; -import com.adyen.model.transfers.Fee; -import com.adyen.model.transfers.Repayment; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * CapitalGrant - */ +/** CapitalGrant */ @JsonPropertyOrder({ CapitalGrant.JSON_PROPERTY_AMOUNT, CapitalGrant.JSON_PROPERTY_BALANCES, @@ -43,7 +33,6 @@ CapitalGrant.JSON_PROPERTY_REPAYMENT, CapitalGrant.JSON_PROPERTY_STATUS }) - public class CapitalGrant { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -70,10 +59,10 @@ public class CapitalGrant { private Repayment repayment; /** - * The current status of the grant. Possible values: **Pending**, **Active**, **Repaid**, **WrittenOff**, **Failed**, **Revoked**. + * The current status of the grant. Possible values: **Pending**, **Active**, **Repaid**, + * **WrittenOff**, **Failed**, **Revoked**. */ public enum StatusEnum { - PENDING(String.valueOf("Pending")), ACTIVE(String.valueOf("Active")), @@ -91,7 +80,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -112,7 +101,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -120,13 +113,12 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; - public CapitalGrant() { - } + public CapitalGrant() {} /** * amount * - * @param amount + * @param amount * @return the current {@code CapitalGrant} instance, allowing for method chaining */ public CapitalGrant amount(Amount amount) { @@ -136,7 +128,8 @@ public CapitalGrant amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,7 +140,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,7 +151,7 @@ public void setAmount(Amount amount) { /** * balances * - * @param balances + * @param balances * @return the current {@code CapitalGrant} instance, allowing for method chaining */ public CapitalGrant balances(CapitalBalance balances) { @@ -168,7 +161,8 @@ public CapitalGrant balances(CapitalBalance balances) { /** * Get balances - * @return balances + * + * @return balances */ @JsonProperty(JSON_PROPERTY_BALANCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,7 +173,7 @@ public CapitalBalance getBalances() { /** * balances * - * @param balances + * @param balances */ @JsonProperty(JSON_PROPERTY_BALANCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,7 +184,7 @@ public void setBalances(CapitalBalance balances) { /** * counterparty * - * @param counterparty + * @param counterparty * @return the current {@code CapitalGrant} instance, allowing for method chaining */ public CapitalGrant counterparty(Counterparty counterparty) { @@ -200,7 +194,8 @@ public CapitalGrant counterparty(Counterparty counterparty) { /** * Get counterparty - * @return counterparty + * + * @return counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,7 +206,7 @@ public Counterparty getCounterparty() { /** * counterparty * - * @param counterparty + * @param counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -222,7 +217,7 @@ public void setCounterparty(Counterparty counterparty) { /** * fee * - * @param fee + * @param fee * @return the current {@code CapitalGrant} instance, allowing for method chaining */ public CapitalGrant fee(Fee fee) { @@ -232,7 +227,8 @@ public CapitalGrant fee(Fee fee) { /** * Get fee - * @return fee + * + * @return fee */ @JsonProperty(JSON_PROPERTY_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -243,7 +239,7 @@ public Fee getFee() { /** * fee * - * @param fee + * @param fee */ @JsonProperty(JSON_PROPERTY_FEE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -264,6 +260,7 @@ public CapitalGrant grantAccountId(String grantAccountId) { /** * The identifier of the grant account used for the grant. + * * @return grantAccountId The identifier of the grant account used for the grant. */ @JsonProperty(JSON_PROPERTY_GRANT_ACCOUNT_ID) @@ -284,9 +281,11 @@ public void setGrantAccountId(String grantAccountId) { } /** - * The identifier of the grant offer that has been selected and from which the grant details will be used. + * The identifier of the grant offer that has been selected and from which the grant details will + * be used. * - * @param grantOfferId The identifier of the grant offer that has been selected and from which the grant details will be used. + * @param grantOfferId The identifier of the grant offer that has been selected and from which the + * grant details will be used. * @return the current {@code CapitalGrant} instance, allowing for method chaining */ public CapitalGrant grantOfferId(String grantOfferId) { @@ -295,8 +294,11 @@ public CapitalGrant grantOfferId(String grantOfferId) { } /** - * The identifier of the grant offer that has been selected and from which the grant details will be used. - * @return grantOfferId The identifier of the grant offer that has been selected and from which the grant details will be used. + * The identifier of the grant offer that has been selected and from which the grant details will + * be used. + * + * @return grantOfferId The identifier of the grant offer that has been selected and from which + * the grant details will be used. */ @JsonProperty(JSON_PROPERTY_GRANT_OFFER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -305,9 +307,11 @@ public String getGrantOfferId() { } /** - * The identifier of the grant offer that has been selected and from which the grant details will be used. + * The identifier of the grant offer that has been selected and from which the grant details will + * be used. * - * @param grantOfferId The identifier of the grant offer that has been selected and from which the grant details will be used. + * @param grantOfferId The identifier of the grant offer that has been selected and from which the + * grant details will be used. */ @JsonProperty(JSON_PROPERTY_GRANT_OFFER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -328,6 +332,7 @@ public CapitalGrant id(String id) { /** * The identifier of the grant reference. + * * @return id The identifier of the grant reference. */ @JsonProperty(JSON_PROPERTY_ID) @@ -350,7 +355,7 @@ public void setId(String id) { /** * repayment * - * @param repayment + * @param repayment * @return the current {@code CapitalGrant} instance, allowing for method chaining */ public CapitalGrant repayment(Repayment repayment) { @@ -360,7 +365,8 @@ public CapitalGrant repayment(Repayment repayment) { /** * Get repayment - * @return repayment + * + * @return repayment */ @JsonProperty(JSON_PROPERTY_REPAYMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -371,7 +377,7 @@ public Repayment getRepayment() { /** * repayment * - * @param repayment + * @param repayment */ @JsonProperty(JSON_PROPERTY_REPAYMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -380,9 +386,11 @@ public void setRepayment(Repayment repayment) { } /** - * The current status of the grant. Possible values: **Pending**, **Active**, **Repaid**, **WrittenOff**, **Failed**, **Revoked**. + * The current status of the grant. Possible values: **Pending**, **Active**, **Repaid**, + * **WrittenOff**, **Failed**, **Revoked**. * - * @param status The current status of the grant. Possible values: **Pending**, **Active**, **Repaid**, **WrittenOff**, **Failed**, **Revoked**. + * @param status The current status of the grant. Possible values: **Pending**, **Active**, + * **Repaid**, **WrittenOff**, **Failed**, **Revoked**. * @return the current {@code CapitalGrant} instance, allowing for method chaining */ public CapitalGrant status(StatusEnum status) { @@ -391,8 +399,11 @@ public CapitalGrant status(StatusEnum status) { } /** - * The current status of the grant. Possible values: **Pending**, **Active**, **Repaid**, **WrittenOff**, **Failed**, **Revoked**. - * @return status The current status of the grant. Possible values: **Pending**, **Active**, **Repaid**, **WrittenOff**, **Failed**, **Revoked**. + * The current status of the grant. Possible values: **Pending**, **Active**, **Repaid**, + * **WrittenOff**, **Failed**, **Revoked**. + * + * @return status The current status of the grant. Possible values: **Pending**, **Active**, + * **Repaid**, **WrittenOff**, **Failed**, **Revoked**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -401,9 +412,11 @@ public StatusEnum getStatus() { } /** - * The current status of the grant. Possible values: **Pending**, **Active**, **Repaid**, **WrittenOff**, **Failed**, **Revoked**. + * The current status of the grant. Possible values: **Pending**, **Active**, **Repaid**, + * **WrittenOff**, **Failed**, **Revoked**. * - * @param status The current status of the grant. Possible values: **Pending**, **Active**, **Repaid**, **WrittenOff**, **Failed**, **Revoked**. + * @param status The current status of the grant. Possible values: **Pending**, **Active**, + * **Repaid**, **WrittenOff**, **Failed**, **Revoked**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -411,9 +424,7 @@ public void setStatus(StatusEnum status) { this.status = status; } - /** - * Return true if this CapitalGrant object is equal to o. - */ + /** Return true if this CapitalGrant object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -423,20 +434,21 @@ public boolean equals(Object o) { return false; } CapitalGrant capitalGrant = (CapitalGrant) o; - return Objects.equals(this.amount, capitalGrant.amount) && - Objects.equals(this.balances, capitalGrant.balances) && - Objects.equals(this.counterparty, capitalGrant.counterparty) && - Objects.equals(this.fee, capitalGrant.fee) && - Objects.equals(this.grantAccountId, capitalGrant.grantAccountId) && - Objects.equals(this.grantOfferId, capitalGrant.grantOfferId) && - Objects.equals(this.id, capitalGrant.id) && - Objects.equals(this.repayment, capitalGrant.repayment) && - Objects.equals(this.status, capitalGrant.status); + return Objects.equals(this.amount, capitalGrant.amount) + && Objects.equals(this.balances, capitalGrant.balances) + && Objects.equals(this.counterparty, capitalGrant.counterparty) + && Objects.equals(this.fee, capitalGrant.fee) + && Objects.equals(this.grantAccountId, capitalGrant.grantAccountId) + && Objects.equals(this.grantOfferId, capitalGrant.grantOfferId) + && Objects.equals(this.id, capitalGrant.id) + && Objects.equals(this.repayment, capitalGrant.repayment) + && Objects.equals(this.status, capitalGrant.status); } @Override public int hashCode() { - return Objects.hash(amount, balances, counterparty, fee, grantAccountId, grantOfferId, id, repayment, status); + return Objects.hash( + amount, balances, counterparty, fee, grantAccountId, grantOfferId, id, repayment, status); } @Override @@ -457,8 +469,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -467,7 +478,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CapitalGrant given an JSON string * * @param jsonString JSON string @@ -477,11 +488,12 @@ private String toIndentedString(Object o) { public static CapitalGrant fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapitalGrant.class); } -/** - * Convert an instance of CapitalGrant to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CapitalGrant to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/CapitalGrantInfo.java b/src/main/java/com/adyen/model/transfers/CapitalGrantInfo.java index 4a8626b01..2ba854c7f 100644 --- a/src/main/java/com/adyen/model/transfers/CapitalGrantInfo.java +++ b/src/main/java/com/adyen/model/transfers/CapitalGrantInfo.java @@ -2,38 +2,27 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.Counterparty; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * CapitalGrantInfo - */ +/** CapitalGrantInfo */ @JsonPropertyOrder({ CapitalGrantInfo.JSON_PROPERTY_COUNTERPARTY, CapitalGrantInfo.JSON_PROPERTY_GRANT_ACCOUNT_ID, CapitalGrantInfo.JSON_PROPERTY_GRANT_OFFER_ID }) - public class CapitalGrantInfo { public static final String JSON_PROPERTY_COUNTERPARTY = "counterparty"; private Counterparty counterparty; @@ -44,13 +33,12 @@ public class CapitalGrantInfo { public static final String JSON_PROPERTY_GRANT_OFFER_ID = "grantOfferId"; private String grantOfferId; - public CapitalGrantInfo() { - } + public CapitalGrantInfo() {} /** * counterparty * - * @param counterparty + * @param counterparty * @return the current {@code CapitalGrantInfo} instance, allowing for method chaining */ public CapitalGrantInfo counterparty(Counterparty counterparty) { @@ -60,7 +48,8 @@ public CapitalGrantInfo counterparty(Counterparty counterparty) { /** * Get counterparty - * @return counterparty + * + * @return counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,7 +60,7 @@ public Counterparty getCounterparty() { /** * counterparty * - * @param counterparty + * @param counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -92,6 +81,7 @@ public CapitalGrantInfo grantAccountId(String grantAccountId) { /** * The identifier of the grant account used for the grant. + * * @return grantAccountId The identifier of the grant account used for the grant. */ @JsonProperty(JSON_PROPERTY_GRANT_ACCOUNT_ID) @@ -112,9 +102,11 @@ public void setGrantAccountId(String grantAccountId) { } /** - * The identifier of the grant offer that has been selected and from which the grant details will be used. + * The identifier of the grant offer that has been selected and from which the grant details will + * be used. * - * @param grantOfferId The identifier of the grant offer that has been selected and from which the grant details will be used. + * @param grantOfferId The identifier of the grant offer that has been selected and from which the + * grant details will be used. * @return the current {@code CapitalGrantInfo} instance, allowing for method chaining */ public CapitalGrantInfo grantOfferId(String grantOfferId) { @@ -123,8 +115,11 @@ public CapitalGrantInfo grantOfferId(String grantOfferId) { } /** - * The identifier of the grant offer that has been selected and from which the grant details will be used. - * @return grantOfferId The identifier of the grant offer that has been selected and from which the grant details will be used. + * The identifier of the grant offer that has been selected and from which the grant details will + * be used. + * + * @return grantOfferId The identifier of the grant offer that has been selected and from which + * the grant details will be used. */ @JsonProperty(JSON_PROPERTY_GRANT_OFFER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -133,9 +128,11 @@ public String getGrantOfferId() { } /** - * The identifier of the grant offer that has been selected and from which the grant details will be used. + * The identifier of the grant offer that has been selected and from which the grant details will + * be used. * - * @param grantOfferId The identifier of the grant offer that has been selected and from which the grant details will be used. + * @param grantOfferId The identifier of the grant offer that has been selected and from which the + * grant details will be used. */ @JsonProperty(JSON_PROPERTY_GRANT_OFFER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,9 +140,7 @@ public void setGrantOfferId(String grantOfferId) { this.grantOfferId = grantOfferId; } - /** - * Return true if this CapitalGrantInfo object is equal to o. - */ + /** Return true if this CapitalGrantInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -155,9 +150,9 @@ public boolean equals(Object o) { return false; } CapitalGrantInfo capitalGrantInfo = (CapitalGrantInfo) o; - return Objects.equals(this.counterparty, capitalGrantInfo.counterparty) && - Objects.equals(this.grantAccountId, capitalGrantInfo.grantAccountId) && - Objects.equals(this.grantOfferId, capitalGrantInfo.grantOfferId); + return Objects.equals(this.counterparty, capitalGrantInfo.counterparty) + && Objects.equals(this.grantAccountId, capitalGrantInfo.grantAccountId) + && Objects.equals(this.grantOfferId, capitalGrantInfo.grantOfferId); } @Override @@ -177,8 +172,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -187,7 +181,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CapitalGrantInfo given an JSON string * * @param jsonString JSON string @@ -197,11 +191,12 @@ private String toIndentedString(Object o) { public static CapitalGrantInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapitalGrantInfo.class); } -/** - * Convert an instance of CapitalGrantInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CapitalGrantInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/CapitalGrants.java b/src/main/java/com/adyen/model/transfers/CapitalGrants.java index 040e0cbe7..d3587db82 100644 --- a/src/main/java/com/adyen/model/transfers/CapitalGrants.java +++ b/src/main/java/com/adyen/model/transfers/CapitalGrants.java @@ -2,44 +2,30 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.CapitalGrant; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * CapitalGrants - */ -@JsonPropertyOrder({ - CapitalGrants.JSON_PROPERTY_GRANTS -}) - +/** CapitalGrants */ +@JsonPropertyOrder({CapitalGrants.JSON_PROPERTY_GRANTS}) public class CapitalGrants { public static final String JSON_PROPERTY_GRANTS = "grants"; private List grants; - public CapitalGrants() { - } + public CapitalGrants() {} /** * The unique identifier of the grant. @@ -62,6 +48,7 @@ public CapitalGrants addGrantsItem(CapitalGrant grantsItem) { /** * The unique identifier of the grant. + * * @return grants The unique identifier of the grant. */ @JsonProperty(JSON_PROPERTY_GRANTS) @@ -81,9 +68,7 @@ public void setGrants(List grants) { this.grants = grants; } - /** - * Return true if this CapitalGrants object is equal to o. - */ + /** Return true if this CapitalGrants object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -111,8 +96,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -121,7 +105,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CapitalGrants given an JSON string * * @param jsonString JSON string @@ -131,11 +115,12 @@ private String toIndentedString(Object o) { public static CapitalGrants fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CapitalGrants.class); } -/** - * Convert an instance of CapitalGrants to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CapitalGrants to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/Card.java b/src/main/java/com/adyen/model/transfers/Card.java index 97fe04079..cc75ab40a 100644 --- a/src/main/java/com/adyen/model/transfers/Card.java +++ b/src/main/java/com/adyen/model/transfers/Card.java @@ -2,38 +2,23 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.CardIdentification; -import com.adyen.model.transfers.PartyIdentification; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Card - */ -@JsonPropertyOrder({ - Card.JSON_PROPERTY_CARD_HOLDER, - Card.JSON_PROPERTY_CARD_IDENTIFICATION -}) - +/** Card */ +@JsonPropertyOrder({Card.JSON_PROPERTY_CARD_HOLDER, Card.JSON_PROPERTY_CARD_IDENTIFICATION}) public class Card { public static final String JSON_PROPERTY_CARD_HOLDER = "cardHolder"; private PartyIdentification cardHolder; @@ -41,13 +26,12 @@ public class Card { public static final String JSON_PROPERTY_CARD_IDENTIFICATION = "cardIdentification"; private CardIdentification cardIdentification; - public Card() { - } + public Card() {} /** * cardHolder * - * @param cardHolder + * @param cardHolder * @return the current {@code Card} instance, allowing for method chaining */ public Card cardHolder(PartyIdentification cardHolder) { @@ -57,7 +41,8 @@ public Card cardHolder(PartyIdentification cardHolder) { /** * Get cardHolder - * @return cardHolder + * + * @return cardHolder */ @JsonProperty(JSON_PROPERTY_CARD_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,7 +53,7 @@ public PartyIdentification getCardHolder() { /** * cardHolder * - * @param cardHolder + * @param cardHolder */ @JsonProperty(JSON_PROPERTY_CARD_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,7 +64,7 @@ public void setCardHolder(PartyIdentification cardHolder) { /** * cardIdentification * - * @param cardIdentification + * @param cardIdentification * @return the current {@code Card} instance, allowing for method chaining */ public Card cardIdentification(CardIdentification cardIdentification) { @@ -89,7 +74,8 @@ public Card cardIdentification(CardIdentification cardIdentification) { /** * Get cardIdentification - * @return cardIdentification + * + * @return cardIdentification */ @JsonProperty(JSON_PROPERTY_CARD_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,7 +86,7 @@ public CardIdentification getCardIdentification() { /** * cardIdentification * - * @param cardIdentification + * @param cardIdentification */ @JsonProperty(JSON_PROPERTY_CARD_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,9 +94,7 @@ public void setCardIdentification(CardIdentification cardIdentification) { this.cardIdentification = cardIdentification; } - /** - * Return true if this Card object is equal to o. - */ + /** Return true if this Card object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -120,8 +104,8 @@ public boolean equals(Object o) { return false; } Card card = (Card) o; - return Objects.equals(this.cardHolder, card.cardHolder) && - Objects.equals(this.cardIdentification, card.cardIdentification); + return Objects.equals(this.cardHolder, card.cardHolder) + && Objects.equals(this.cardIdentification, card.cardIdentification); } @Override @@ -140,8 +124,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -150,7 +133,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Card given an JSON string * * @param jsonString JSON string @@ -160,11 +143,12 @@ private String toIndentedString(Object o) { public static Card fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Card.class); } -/** - * Convert an instance of Card to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Card to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/CardIdentification.java b/src/main/java/com/adyen/model/transfers/CardIdentification.java index a7c24750d..01ae824fd 100644 --- a/src/main/java/com/adyen/model/transfers/CardIdentification.java +++ b/src/main/java/com/adyen/model/transfers/CardIdentification.java @@ -2,31 +2,22 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * CardIdentification - */ +/** CardIdentification */ @JsonPropertyOrder({ CardIdentification.JSON_PROPERTY_EXPIRY_MONTH, CardIdentification.JSON_PROPERTY_EXPIRY_YEAR, @@ -36,7 +27,6 @@ CardIdentification.JSON_PROPERTY_START_YEAR, CardIdentification.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID }) - public class CardIdentification { public static final String JSON_PROPERTY_EXPIRY_MONTH = "expiryMonth"; private String expiryMonth; @@ -59,13 +49,14 @@ public class CardIdentification { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - public CardIdentification() { - } + public CardIdentification() {} /** - * The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November + * The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. + * For example: * 03 = March * 11 = November * - * @param expiryMonth The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November + * @param expiryMonth The expiry month of the card. Format: two digits. Add a leading zero for + * single-digit months. For example: * 03 = March * 11 = November * @return the current {@code CardIdentification} instance, allowing for method chaining */ public CardIdentification expiryMonth(String expiryMonth) { @@ -74,8 +65,11 @@ public CardIdentification expiryMonth(String expiryMonth) { } /** - * The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November - * @return expiryMonth The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November + * The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. + * For example: * 03 = March * 11 = November + * + * @return expiryMonth The expiry month of the card. Format: two digits. Add a leading zero for + * single-digit months. For example: * 03 = March * 11 = November */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -84,9 +78,11 @@ public String getExpiryMonth() { } /** - * The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November + * The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. + * For example: * 03 = March * 11 = November * - * @param expiryMonth The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November + * @param expiryMonth The expiry month of the card. Format: two digits. Add a leading zero for + * single-digit months. For example: * 03 = March * 11 = November */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -95,9 +91,9 @@ public void setExpiryMonth(String expiryMonth) { } /** - * The expiry year of the card. Format: four digits. For example: 2020 + * The expiry year of the card. Format: four digits. For example: 2020 * - * @param expiryYear The expiry year of the card. Format: four digits. For example: 2020 + * @param expiryYear The expiry year of the card. Format: four digits. For example: 2020 * @return the current {@code CardIdentification} instance, allowing for method chaining */ public CardIdentification expiryYear(String expiryYear) { @@ -106,8 +102,9 @@ public CardIdentification expiryYear(String expiryYear) { } /** - * The expiry year of the card. Format: four digits. For example: 2020 - * @return expiryYear The expiry year of the card. Format: four digits. For example: 2020 + * The expiry year of the card. Format: four digits. For example: 2020 + * + * @return expiryYear The expiry year of the card. Format: four digits. For example: 2020 */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,9 +113,9 @@ public String getExpiryYear() { } /** - * The expiry year of the card. Format: four digits. For example: 2020 + * The expiry year of the card. Format: four digits. For example: 2020 * - * @param expiryYear The expiry year of the card. Format: four digits. For example: 2020 + * @param expiryYear The expiry year of the card. Format: four digits. For example: 2020 */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,6 +136,7 @@ public CardIdentification issueNumber(String issueNumber) { /** * The issue number of the card. Applies only to some UK debit cards. + * * @return issueNumber The issue number of the card. Applies only to some UK debit cards. */ @JsonProperty(JSON_PROPERTY_ISSUE_NUMBER) @@ -159,9 +157,11 @@ public void setIssueNumber(String issueNumber) { } /** - * The card number without any separators. For security, the response only includes the last four digits of the card number. + * The card number without any separators. For security, the response only includes the last four + * digits of the card number. * - * @param number The card number without any separators. For security, the response only includes the last four digits of the card number. + * @param number The card number without any separators. For security, the response only includes + * the last four digits of the card number. * @return the current {@code CardIdentification} instance, allowing for method chaining */ public CardIdentification number(String number) { @@ -170,8 +170,11 @@ public CardIdentification number(String number) { } /** - * The card number without any separators. For security, the response only includes the last four digits of the card number. - * @return number The card number without any separators. For security, the response only includes the last four digits of the card number. + * The card number without any separators. For security, the response only includes the last four + * digits of the card number. + * + * @return number The card number without any separators. For security, the response only includes + * the last four digits of the card number. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -180,9 +183,11 @@ public String getNumber() { } /** - * The card number without any separators. For security, the response only includes the last four digits of the card number. + * The card number without any separators. For security, the response only includes the last four + * digits of the card number. * - * @param number The card number without any separators. For security, the response only includes the last four digits of the card number. + * @param number The card number without any separators. For security, the response only includes + * the last four digits of the card number. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,9 +196,12 @@ public void setNumber(String number) { } /** - * The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November + * The month when the card was issued. Applies only to some UK debit cards. Format: two digits. + * Add a leading zero for single-digit months. For example: * 03 = March * 11 = November * - * @param startMonth The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November + * @param startMonth The month when the card was issued. Applies only to some UK debit cards. + * Format: two digits. Add a leading zero for single-digit months. For example: * 03 = + * March * 11 = November * @return the current {@code CardIdentification} instance, allowing for method chaining */ public CardIdentification startMonth(String startMonth) { @@ -202,8 +210,12 @@ public CardIdentification startMonth(String startMonth) { } /** - * The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November - * @return startMonth The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November + * The month when the card was issued. Applies only to some UK debit cards. Format: two digits. + * Add a leading zero for single-digit months. For example: * 03 = March * 11 = November + * + * @return startMonth The month when the card was issued. Applies only to some UK debit cards. + * Format: two digits. Add a leading zero for single-digit months. For example: * 03 = + * March * 11 = November */ @JsonProperty(JSON_PROPERTY_START_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -212,9 +224,12 @@ public String getStartMonth() { } /** - * The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November + * The month when the card was issued. Applies only to some UK debit cards. Format: two digits. + * Add a leading zero for single-digit months. For example: * 03 = March * 11 = November * - * @param startMonth The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November + * @param startMonth The month when the card was issued. Applies only to some UK debit cards. + * Format: two digits. Add a leading zero for single-digit months. For example: * 03 = + * March * 11 = November */ @JsonProperty(JSON_PROPERTY_START_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,9 +238,11 @@ public void setStartMonth(String startMonth) { } /** - * The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020 + * The year when the card was issued. Applies only to some UK debit cards. Format: four digits. + * For example: 2020 * - * @param startYear The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020 + * @param startYear The year when the card was issued. Applies only to some UK debit cards. + * Format: four digits. For example: 2020 * @return the current {@code CardIdentification} instance, allowing for method chaining */ public CardIdentification startYear(String startYear) { @@ -234,8 +251,11 @@ public CardIdentification startYear(String startYear) { } /** - * The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020 - * @return startYear The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020 + * The year when the card was issued. Applies only to some UK debit cards. Format: four digits. + * For example: 2020 + * + * @return startYear The year when the card was issued. Applies only to some UK debit cards. + * Format: four digits. For example: 2020 */ @JsonProperty(JSON_PROPERTY_START_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,9 +264,11 @@ public String getStartYear() { } /** - * The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020 + * The year when the card was issued. Applies only to some UK debit cards. Format: four digits. + * For example: 2020 * - * @param startYear The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020 + * @param startYear The year when the card was issued. Applies only to some UK debit cards. + * Format: four digits. For example: 2020 */ @JsonProperty(JSON_PROPERTY_START_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -255,9 +277,13 @@ public void setStartYear(String startYear) { } /** - * The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty. + * The unique + * [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) + * created to identify the counterparty. * - * @param storedPaymentMethodId The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty. + * @param storedPaymentMethodId The unique + * [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) + * created to identify the counterparty. * @return the current {@code CardIdentification} instance, allowing for method chaining */ public CardIdentification storedPaymentMethodId(String storedPaymentMethodId) { @@ -266,8 +292,13 @@ public CardIdentification storedPaymentMethodId(String storedPaymentMethodId) { } /** - * The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty. - * @return storedPaymentMethodId The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty. + * The unique + * [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) + * created to identify the counterparty. + * + * @return storedPaymentMethodId The unique + * [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) + * created to identify the counterparty. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -276,9 +307,13 @@ public String getStoredPaymentMethodId() { } /** - * The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty. + * The unique + * [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) + * created to identify the counterparty. * - * @param storedPaymentMethodId The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty. + * @param storedPaymentMethodId The unique + * [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) + * created to identify the counterparty. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -286,9 +321,7 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { this.storedPaymentMethodId = storedPaymentMethodId; } - /** - * Return true if this CardIdentification object is equal to o. - */ + /** Return true if this CardIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -298,18 +331,19 @@ public boolean equals(Object o) { return false; } CardIdentification cardIdentification = (CardIdentification) o; - return Objects.equals(this.expiryMonth, cardIdentification.expiryMonth) && - Objects.equals(this.expiryYear, cardIdentification.expiryYear) && - Objects.equals(this.issueNumber, cardIdentification.issueNumber) && - Objects.equals(this.number, cardIdentification.number) && - Objects.equals(this.startMonth, cardIdentification.startMonth) && - Objects.equals(this.startYear, cardIdentification.startYear) && - Objects.equals(this.storedPaymentMethodId, cardIdentification.storedPaymentMethodId); + return Objects.equals(this.expiryMonth, cardIdentification.expiryMonth) + && Objects.equals(this.expiryYear, cardIdentification.expiryYear) + && Objects.equals(this.issueNumber, cardIdentification.issueNumber) + && Objects.equals(this.number, cardIdentification.number) + && Objects.equals(this.startMonth, cardIdentification.startMonth) + && Objects.equals(this.startYear, cardIdentification.startYear) + && Objects.equals(this.storedPaymentMethodId, cardIdentification.storedPaymentMethodId); } @Override public int hashCode() { - return Objects.hash(expiryMonth, expiryYear, issueNumber, number, startMonth, startYear, storedPaymentMethodId); + return Objects.hash( + expiryMonth, expiryYear, issueNumber, number, startMonth, startYear, storedPaymentMethodId); } @Override @@ -322,14 +356,15 @@ public String toString() { sb.append(" number: ").append(toIndentedString(number)).append("\n"); sb.append(" startMonth: ").append(toIndentedString(startMonth)).append("\n"); sb.append(" startYear: ").append(toIndentedString(startYear)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -338,21 +373,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CardIdentification given an JSON string * * @param jsonString JSON string * @return An instance of CardIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to CardIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CardIdentification */ public static CardIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardIdentification.class); } -/** - * Convert an instance of CardIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CardIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/ConfirmationTrackingData.java b/src/main/java/com/adyen/model/transfers/ConfirmationTrackingData.java index f1e680fd9..85941cad7 100644 --- a/src/main/java/com/adyen/model/transfers/ConfirmationTrackingData.java +++ b/src/main/java/com/adyen/model/transfers/ConfirmationTrackingData.java @@ -2,42 +2,36 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * ConfirmationTrackingData - */ +/** ConfirmationTrackingData */ @JsonPropertyOrder({ ConfirmationTrackingData.JSON_PROPERTY_STATUS, ConfirmationTrackingData.JSON_PROPERTY_TYPE }) - public class ConfirmationTrackingData { /** - * The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. + * The status of the transfer. Possible values: - **credited**: the funds are credited to your + * user's transfer instrument or bank account. */ public enum StatusEnum { - CREDITED(String.valueOf("credited")); private static final Logger LOG = Logger.getLogger(StatusEnum.class.getName()); @@ -45,7 +39,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -66,7 +60,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -75,10 +73,10 @@ public static StatusEnum fromValue(String value) { private StatusEnum status; /** - * The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. + * The type of the tracking event. Possible values: - **confirmation**: the transfer passed + * Adyen's internal review. */ public enum TypeEnum { - CONFIRMATION(String.valueOf("confirmation")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -86,7 +84,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -107,7 +105,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -115,13 +117,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public ConfirmationTrackingData() { - } + public ConfirmationTrackingData() {} /** - * The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. + * The status of the transfer. Possible values: - **credited**: the funds are credited to your + * user's transfer instrument or bank account. * - * @param status The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. + * @param status The status of the transfer. Possible values: - **credited**: the funds are + * credited to your user's transfer instrument or bank account. * @return the current {@code ConfirmationTrackingData} instance, allowing for method chaining */ public ConfirmationTrackingData status(StatusEnum status) { @@ -130,8 +133,11 @@ public ConfirmationTrackingData status(StatusEnum status) { } /** - * The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. - * @return status The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. + * The status of the transfer. Possible values: - **credited**: the funds are credited to your + * user's transfer instrument or bank account. + * + * @return status The status of the transfer. Possible values: - **credited**: the funds are + * credited to your user's transfer instrument or bank account. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,9 +146,11 @@ public StatusEnum getStatus() { } /** - * The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. + * The status of the transfer. Possible values: - **credited**: the funds are credited to your + * user's transfer instrument or bank account. * - * @param status The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. + * @param status The status of the transfer. Possible values: - **credited**: the funds are + * credited to your user's transfer instrument or bank account. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,9 +159,11 @@ public void setStatus(StatusEnum status) { } /** - * The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. + * The type of the tracking event. Possible values: - **confirmation**: the transfer passed + * Adyen's internal review. * - * @param type The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. + * @param type The type of the tracking event. Possible values: - **confirmation**: the transfer + * passed Adyen's internal review. * @return the current {@code ConfirmationTrackingData} instance, allowing for method chaining */ public ConfirmationTrackingData type(TypeEnum type) { @@ -162,8 +172,11 @@ public ConfirmationTrackingData type(TypeEnum type) { } /** - * The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. - * @return type The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. + * The type of the tracking event. Possible values: - **confirmation**: the transfer passed + * Adyen's internal review. + * + * @return type The type of the tracking event. Possible values: - **confirmation**: the transfer + * passed Adyen's internal review. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,9 +185,11 @@ public TypeEnum getType() { } /** - * The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. + * The type of the tracking event. Possible values: - **confirmation**: the transfer passed + * Adyen's internal review. * - * @param type The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. + * @param type The type of the tracking event. Possible values: - **confirmation**: the transfer + * passed Adyen's internal review. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,9 +197,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this ConfirmationTrackingData object is equal to o. - */ + /** Return true if this ConfirmationTrackingData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -194,8 +207,8 @@ public boolean equals(Object o) { return false; } ConfirmationTrackingData confirmationTrackingData = (ConfirmationTrackingData) o; - return Objects.equals(this.status, confirmationTrackingData.status) && - Objects.equals(this.type, confirmationTrackingData.type); + return Objects.equals(this.status, confirmationTrackingData.status) + && Objects.equals(this.type, confirmationTrackingData.type); } @Override @@ -214,8 +227,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +236,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ConfirmationTrackingData given an JSON string * * @param jsonString JSON string * @return An instance of ConfirmationTrackingData - * @throws JsonProcessingException if the JSON string is invalid with respect to ConfirmationTrackingData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ConfirmationTrackingData */ - public static ConfirmationTrackingData fromJson(String jsonString) throws JsonProcessingException { + public static ConfirmationTrackingData fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ConfirmationTrackingData.class); } -/** - * Convert an instance of ConfirmationTrackingData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ConfirmationTrackingData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/Counterparty.java b/src/main/java/com/adyen/model/transfers/Counterparty.java index e19c9d660..d7776c09c 100644 --- a/src/main/java/com/adyen/model/transfers/Counterparty.java +++ b/src/main/java/com/adyen/model/transfers/Counterparty.java @@ -2,37 +2,27 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Counterparty - */ +/** Counterparty */ @JsonPropertyOrder({ Counterparty.JSON_PROPERTY_ACCOUNT_HOLDER_ID, Counterparty.JSON_PROPERTY_BALANCE_ACCOUNT_ID, Counterparty.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID }) - public class Counterparty { public static final String JSON_PROPERTY_ACCOUNT_HOLDER_ID = "accountHolderId"; private String accountHolderId; @@ -43,13 +33,15 @@ public class Counterparty { public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_ID = "transferInstrumentId"; private String transferInstrumentId; - public Counterparty() { - } + public Counterparty() {} /** - * The identifier of the receiving account holder. The payout will default to the primary balance account of this account holder if no `balanceAccountId` is provided. + * The identifier of the receiving account holder. The payout will default to the primary balance + * account of this account holder if no `balanceAccountId` is provided. * - * @param accountHolderId The identifier of the receiving account holder. The payout will default to the primary balance account of this account holder if no `balanceAccountId` is provided. + * @param accountHolderId The identifier of the receiving account holder. The payout will default + * to the primary balance account of this account holder if no `balanceAccountId` is + * provided. * @return the current {@code Counterparty} instance, allowing for method chaining */ public Counterparty accountHolderId(String accountHolderId) { @@ -58,8 +50,12 @@ public Counterparty accountHolderId(String accountHolderId) { } /** - * The identifier of the receiving account holder. The payout will default to the primary balance account of this account holder if no `balanceAccountId` is provided. - * @return accountHolderId The identifier of the receiving account holder. The payout will default to the primary balance account of this account holder if no `balanceAccountId` is provided. + * The identifier of the receiving account holder. The payout will default to the primary balance + * account of this account holder if no `balanceAccountId` is provided. + * + * @return accountHolderId The identifier of the receiving account holder. The payout will default + * to the primary balance account of this account holder if no `balanceAccountId` is + * provided. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,9 +64,12 @@ public String getAccountHolderId() { } /** - * The identifier of the receiving account holder. The payout will default to the primary balance account of this account holder if no `balanceAccountId` is provided. + * The identifier of the receiving account holder. The payout will default to the primary balance + * account of this account holder if no `balanceAccountId` is provided. * - * @param accountHolderId The identifier of the receiving account holder. The payout will default to the primary balance account of this account holder if no `balanceAccountId` is provided. + * @param accountHolderId The identifier of the receiving account holder. The payout will default + * to the primary balance account of this account holder if no `balanceAccountId` is + * provided. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -81,7 +80,8 @@ public void setAccountHolderId(String accountHolderId) { /** * The identifier of the balance account that belongs to the receiving account holder. * - * @param balanceAccountId The identifier of the balance account that belongs to the receiving account holder. + * @param balanceAccountId The identifier of the balance account that belongs to the receiving + * account holder. * @return the current {@code Counterparty} instance, allowing for method chaining */ public Counterparty balanceAccountId(String balanceAccountId) { @@ -91,7 +91,9 @@ public Counterparty balanceAccountId(String balanceAccountId) { /** * The identifier of the balance account that belongs to the receiving account holder. - * @return balanceAccountId The identifier of the balance account that belongs to the receiving account holder. + * + * @return balanceAccountId The identifier of the balance account that belongs to the receiving + * account holder. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,7 +104,8 @@ public String getBalanceAccountId() { /** * The identifier of the balance account that belongs to the receiving account holder. * - * @param balanceAccountId The identifier of the balance account that belongs to the receiving account holder. + * @param balanceAccountId The identifier of the balance account that belongs to the receiving + * account holder. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,9 +114,11 @@ public void setBalanceAccountId(String balanceAccountId) { } /** - * The identifier of the transfer instrument that belongs to the legal entity of the account holder. + * The identifier of the transfer instrument that belongs to the legal entity of the account + * holder. * - * @param transferInstrumentId The identifier of the transfer instrument that belongs to the legal entity of the account holder. + * @param transferInstrumentId The identifier of the transfer instrument that belongs to the legal + * entity of the account holder. * @return the current {@code Counterparty} instance, allowing for method chaining */ public Counterparty transferInstrumentId(String transferInstrumentId) { @@ -122,8 +127,11 @@ public Counterparty transferInstrumentId(String transferInstrumentId) { } /** - * The identifier of the transfer instrument that belongs to the legal entity of the account holder. - * @return transferInstrumentId The identifier of the transfer instrument that belongs to the legal entity of the account holder. + * The identifier of the transfer instrument that belongs to the legal entity of the account + * holder. + * + * @return transferInstrumentId The identifier of the transfer instrument that belongs to the + * legal entity of the account holder. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,9 +140,11 @@ public String getTransferInstrumentId() { } /** - * The identifier of the transfer instrument that belongs to the legal entity of the account holder. + * The identifier of the transfer instrument that belongs to the legal entity of the account + * holder. * - * @param transferInstrumentId The identifier of the transfer instrument that belongs to the legal entity of the account holder. + * @param transferInstrumentId The identifier of the transfer instrument that belongs to the legal + * entity of the account holder. */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +152,7 @@ public void setTransferInstrumentId(String transferInstrumentId) { this.transferInstrumentId = transferInstrumentId; } - /** - * Return true if this Counterparty object is equal to o. - */ + /** Return true if this Counterparty object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +162,9 @@ public boolean equals(Object o) { return false; } Counterparty counterparty = (Counterparty) o; - return Objects.equals(this.accountHolderId, counterparty.accountHolderId) && - Objects.equals(this.balanceAccountId, counterparty.balanceAccountId) && - Objects.equals(this.transferInstrumentId, counterparty.transferInstrumentId); + return Objects.equals(this.accountHolderId, counterparty.accountHolderId) + && Objects.equals(this.balanceAccountId, counterparty.balanceAccountId) + && Objects.equals(this.transferInstrumentId, counterparty.transferInstrumentId); } @Override @@ -170,14 +178,15 @@ public String toString() { sb.append("class Counterparty {\n"); sb.append(" accountHolderId: ").append(toIndentedString(accountHolderId)).append("\n"); sb.append(" balanceAccountId: ").append(toIndentedString(balanceAccountId)).append("\n"); - sb.append(" transferInstrumentId: ").append(toIndentedString(transferInstrumentId)).append("\n"); + sb.append(" transferInstrumentId: ") + .append(toIndentedString(transferInstrumentId)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +195,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Counterparty given an JSON string * * @param jsonString JSON string @@ -196,11 +205,12 @@ private String toIndentedString(Object o) { public static Counterparty fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Counterparty.class); } -/** - * Convert an instance of Counterparty to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Counterparty to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/CounterpartyInfoV3.java b/src/main/java/com/adyen/model/transfers/CounterpartyInfoV3.java index 9125176af..ab07377da 100644 --- a/src/main/java/com/adyen/model/transfers/CounterpartyInfoV3.java +++ b/src/main/java/com/adyen/model/transfers/CounterpartyInfoV3.java @@ -2,40 +2,28 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.BankAccountV3; -import com.adyen.model.transfers.Card; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * CounterpartyInfoV3 - */ +/** CounterpartyInfoV3 */ @JsonPropertyOrder({ CounterpartyInfoV3.JSON_PROPERTY_BALANCE_ACCOUNT_ID, CounterpartyInfoV3.JSON_PROPERTY_BANK_ACCOUNT, CounterpartyInfoV3.JSON_PROPERTY_CARD, CounterpartyInfoV3.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID }) - public class CounterpartyInfoV3 { public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; @@ -49,13 +37,14 @@ public class CounterpartyInfoV3 { public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_ID = "transferInstrumentId"; private String transferInstrumentId; - public CounterpartyInfoV3() { - } + public CounterpartyInfoV3() {} /** - * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * The unique identifier of the counterparty [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). * - * @param balanceAccountId The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * @param balanceAccountId The unique identifier of the counterparty [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). * @return the current {@code CounterpartyInfoV3} instance, allowing for method chaining */ public CounterpartyInfoV3 balanceAccountId(String balanceAccountId) { @@ -64,8 +53,11 @@ public CounterpartyInfoV3 balanceAccountId(String balanceAccountId) { } /** - * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). - * @return balanceAccountId The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * The unique identifier of the counterparty [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * + * @return balanceAccountId The unique identifier of the counterparty [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -74,9 +66,11 @@ public String getBalanceAccountId() { } /** - * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * The unique identifier of the counterparty [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). * - * @param balanceAccountId The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * @param balanceAccountId The unique identifier of the counterparty [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,7 +81,7 @@ public void setBalanceAccountId(String balanceAccountId) { /** * bankAccount * - * @param bankAccount + * @param bankAccount * @return the current {@code CounterpartyInfoV3} instance, allowing for method chaining */ public CounterpartyInfoV3 bankAccount(BankAccountV3 bankAccount) { @@ -97,7 +91,8 @@ public CounterpartyInfoV3 bankAccount(BankAccountV3 bankAccount) { /** * Get bankAccount - * @return bankAccount + * + * @return bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,7 +103,7 @@ public BankAccountV3 getBankAccount() { /** * bankAccount * - * @param bankAccount + * @param bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -119,7 +114,7 @@ public void setBankAccount(BankAccountV3 bankAccount) { /** * card * - * @param card + * @param card * @return the current {@code CounterpartyInfoV3} instance, allowing for method chaining */ public CounterpartyInfoV3 card(Card card) { @@ -129,7 +124,8 @@ public CounterpartyInfoV3 card(Card card) { /** * Get card - * @return card + * + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,7 +136,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -149,9 +145,11 @@ public void setCard(Card card) { } /** - * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * The unique identifier of the counterparty [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). * - * @param transferInstrumentId The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * @param transferInstrumentId The unique identifier of the counterparty [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). * @return the current {@code CounterpartyInfoV3} instance, allowing for method chaining */ public CounterpartyInfoV3 transferInstrumentId(String transferInstrumentId) { @@ -160,8 +158,11 @@ public CounterpartyInfoV3 transferInstrumentId(String transferInstrumentId) { } /** - * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). - * @return transferInstrumentId The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * The unique identifier of the counterparty [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * + * @return transferInstrumentId The unique identifier of the counterparty [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -170,9 +171,11 @@ public String getTransferInstrumentId() { } /** - * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * The unique identifier of the counterparty [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). * - * @param transferInstrumentId The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * @param transferInstrumentId The unique identifier of the counterparty [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -180,9 +183,7 @@ public void setTransferInstrumentId(String transferInstrumentId) { this.transferInstrumentId = transferInstrumentId; } - /** - * Return true if this CounterpartyInfoV3 object is equal to o. - */ + /** Return true if this CounterpartyInfoV3 object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,10 +193,10 @@ public boolean equals(Object o) { return false; } CounterpartyInfoV3 counterpartyInfoV3 = (CounterpartyInfoV3) o; - return Objects.equals(this.balanceAccountId, counterpartyInfoV3.balanceAccountId) && - Objects.equals(this.bankAccount, counterpartyInfoV3.bankAccount) && - Objects.equals(this.card, counterpartyInfoV3.card) && - Objects.equals(this.transferInstrumentId, counterpartyInfoV3.transferInstrumentId); + return Objects.equals(this.balanceAccountId, counterpartyInfoV3.balanceAccountId) + && Objects.equals(this.bankAccount, counterpartyInfoV3.bankAccount) + && Objects.equals(this.card, counterpartyInfoV3.card) + && Objects.equals(this.transferInstrumentId, counterpartyInfoV3.transferInstrumentId); } @Override @@ -210,14 +211,15 @@ public String toString() { sb.append(" balanceAccountId: ").append(toIndentedString(balanceAccountId)).append("\n"); sb.append(" bankAccount: ").append(toIndentedString(bankAccount)).append("\n"); sb.append(" card: ").append(toIndentedString(card)).append("\n"); - sb.append(" transferInstrumentId: ").append(toIndentedString(transferInstrumentId)).append("\n"); + sb.append(" transferInstrumentId: ") + .append(toIndentedString(transferInstrumentId)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -226,21 +228,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CounterpartyInfoV3 given an JSON string * * @param jsonString JSON string * @return An instance of CounterpartyInfoV3 - * @throws JsonProcessingException if the JSON string is invalid with respect to CounterpartyInfoV3 + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CounterpartyInfoV3 */ public static CounterpartyInfoV3 fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CounterpartyInfoV3.class); } -/** - * Convert an instance of CounterpartyInfoV3 to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CounterpartyInfoV3 to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/CounterpartyV3.java b/src/main/java/com/adyen/model/transfers/CounterpartyV3.java index 9c7671c4c..e9fb906e3 100644 --- a/src/main/java/com/adyen/model/transfers/CounterpartyV3.java +++ b/src/main/java/com/adyen/model/transfers/CounterpartyV3.java @@ -2,34 +2,22 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.BankAccountV3; -import com.adyen.model.transfers.Card; -import com.adyen.model.transfers.MerchantData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * CounterpartyV3 - */ +/** CounterpartyV3 */ @JsonPropertyOrder({ CounterpartyV3.JSON_PROPERTY_BALANCE_ACCOUNT_ID, CounterpartyV3.JSON_PROPERTY_BANK_ACCOUNT, @@ -37,7 +25,6 @@ CounterpartyV3.JSON_PROPERTY_MERCHANT, CounterpartyV3.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID }) - public class CounterpartyV3 { public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; @@ -54,13 +41,14 @@ public class CounterpartyV3 { public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_ID = "transferInstrumentId"; private String transferInstrumentId; - public CounterpartyV3() { - } + public CounterpartyV3() {} /** - * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * The unique identifier of the counterparty [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). * - * @param balanceAccountId The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * @param balanceAccountId The unique identifier of the counterparty [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). * @return the current {@code CounterpartyV3} instance, allowing for method chaining */ public CounterpartyV3 balanceAccountId(String balanceAccountId) { @@ -69,8 +57,11 @@ public CounterpartyV3 balanceAccountId(String balanceAccountId) { } /** - * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). - * @return balanceAccountId The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * The unique identifier of the counterparty [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * + * @return balanceAccountId The unique identifier of the counterparty [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,9 +70,11 @@ public String getBalanceAccountId() { } /** - * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * The unique identifier of the counterparty [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). * - * @param balanceAccountId The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * @param balanceAccountId The unique identifier of the counterparty [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -92,7 +85,7 @@ public void setBalanceAccountId(String balanceAccountId) { /** * bankAccount * - * @param bankAccount + * @param bankAccount * @return the current {@code CounterpartyV3} instance, allowing for method chaining */ public CounterpartyV3 bankAccount(BankAccountV3 bankAccount) { @@ -102,7 +95,8 @@ public CounterpartyV3 bankAccount(BankAccountV3 bankAccount) { /** * Get bankAccount - * @return bankAccount + * + * @return bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,7 +107,7 @@ public BankAccountV3 getBankAccount() { /** * bankAccount * - * @param bankAccount + * @param bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,7 +118,7 @@ public void setBankAccount(BankAccountV3 bankAccount) { /** * card * - * @param card + * @param card * @return the current {@code CounterpartyV3} instance, allowing for method chaining */ public CounterpartyV3 card(Card card) { @@ -134,7 +128,8 @@ public CounterpartyV3 card(Card card) { /** * Get card - * @return card + * + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,7 +140,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,7 +151,7 @@ public void setCard(Card card) { /** * merchant * - * @param merchant + * @param merchant * @return the current {@code CounterpartyV3} instance, allowing for method chaining */ public CounterpartyV3 merchant(MerchantData merchant) { @@ -166,7 +161,8 @@ public CounterpartyV3 merchant(MerchantData merchant) { /** * Get merchant - * @return merchant + * + * @return merchant */ @JsonProperty(JSON_PROPERTY_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,7 +173,7 @@ public MerchantData getMerchant() { /** * merchant * - * @param merchant + * @param merchant */ @JsonProperty(JSON_PROPERTY_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,9 +182,11 @@ public void setMerchant(MerchantData merchant) { } /** - * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * The unique identifier of the counterparty [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). * - * @param transferInstrumentId The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * @param transferInstrumentId The unique identifier of the counterparty [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). * @return the current {@code CounterpartyV3} instance, allowing for method chaining */ public CounterpartyV3 transferInstrumentId(String transferInstrumentId) { @@ -197,8 +195,11 @@ public CounterpartyV3 transferInstrumentId(String transferInstrumentId) { } /** - * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). - * @return transferInstrumentId The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * The unique identifier of the counterparty [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * + * @return transferInstrumentId The unique identifier of the counterparty [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -207,9 +208,11 @@ public String getTransferInstrumentId() { } /** - * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * The unique identifier of the counterparty [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). * - * @param transferInstrumentId The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * @param transferInstrumentId The unique identifier of the counterparty [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -217,9 +220,7 @@ public void setTransferInstrumentId(String transferInstrumentId) { this.transferInstrumentId = transferInstrumentId; } - /** - * Return true if this CounterpartyV3 object is equal to o. - */ + /** Return true if this CounterpartyV3 object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -229,11 +230,11 @@ public boolean equals(Object o) { return false; } CounterpartyV3 counterpartyV3 = (CounterpartyV3) o; - return Objects.equals(this.balanceAccountId, counterpartyV3.balanceAccountId) && - Objects.equals(this.bankAccount, counterpartyV3.bankAccount) && - Objects.equals(this.card, counterpartyV3.card) && - Objects.equals(this.merchant, counterpartyV3.merchant) && - Objects.equals(this.transferInstrumentId, counterpartyV3.transferInstrumentId); + return Objects.equals(this.balanceAccountId, counterpartyV3.balanceAccountId) + && Objects.equals(this.bankAccount, counterpartyV3.bankAccount) + && Objects.equals(this.card, counterpartyV3.card) + && Objects.equals(this.merchant, counterpartyV3.merchant) + && Objects.equals(this.transferInstrumentId, counterpartyV3.transferInstrumentId); } @Override @@ -249,14 +250,15 @@ public String toString() { sb.append(" bankAccount: ").append(toIndentedString(bankAccount)).append("\n"); sb.append(" card: ").append(toIndentedString(card)).append("\n"); sb.append(" merchant: ").append(toIndentedString(merchant)).append("\n"); - sb.append(" transferInstrumentId: ").append(toIndentedString(transferInstrumentId)).append("\n"); + sb.append(" transferInstrumentId: ") + .append(toIndentedString(transferInstrumentId)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -265,7 +267,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CounterpartyV3 given an JSON string * * @param jsonString JSON string @@ -275,11 +277,12 @@ private String toIndentedString(Object o) { public static CounterpartyV3 fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CounterpartyV3.class); } -/** - * Convert an instance of CounterpartyV3 to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CounterpartyV3 to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/DKLocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/DKLocalAccountIdentification.java index e61a25e89..1531d3128 100644 --- a/src/main/java/com/adyen/model/transfers/DKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/DKLocalAccountIdentification.java @@ -2,37 +2,31 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * DKLocalAccountIdentification - */ +/** DKLocalAccountIdentification */ @JsonPropertyOrder({ DKLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, DKLocalAccountIdentification.JSON_PROPERTY_BANK_CODE, DKLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class DKLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -40,11 +34,8 @@ public class DKLocalAccountIdentification { public static final String JSON_PROPERTY_BANK_CODE = "bankCode"; private String bankCode; - /** - * **dkLocal** - */ + /** **dkLocal** */ public enum TypeEnum { - DKLOCAL(String.valueOf("dkLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +43,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +64,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,13 +76,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public DKLocalAccountIdentification() { - } + public DKLocalAccountIdentification() {} /** * The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). * - * @param accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). + * @param accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or + * whitespace). * @return the current {@code DKLocalAccountIdentification} instance, allowing for method chaining */ public DKLocalAccountIdentification accountNumber(String accountNumber) { @@ -97,7 +92,9 @@ public DKLocalAccountIdentification accountNumber(String accountNumber) { /** * The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). - * @return accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). + * + * @return accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or + * whitespace). */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,7 +105,8 @@ public String getAccountNumber() { /** * The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). * - * @param accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). + * @param accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or + * whitespace). */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,7 +127,9 @@ public DKLocalAccountIdentification bankCode(String bankCode) { /** * The 4-digit bank code (Registreringsnummer) (without separators or whitespace). - * @return bankCode The 4-digit bank code (Registreringsnummer) (without separators or whitespace). + * + * @return bankCode The 4-digit bank code (Registreringsnummer) (without separators or + * whitespace). */ @JsonProperty(JSON_PROPERTY_BANK_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,6 +161,7 @@ public DKLocalAccountIdentification type(TypeEnum type) { /** * **dkLocal** + * * @return type **dkLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +181,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this DKLocalAccountIdentification object is equal to o. - */ + /** Return true if this DKLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +191,9 @@ public boolean equals(Object o) { return false; } DKLocalAccountIdentification dkLocalAccountIdentification = (DKLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, dkLocalAccountIdentification.accountNumber) && - Objects.equals(this.bankCode, dkLocalAccountIdentification.bankCode) && - Objects.equals(this.type, dkLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, dkLocalAccountIdentification.accountNumber) + && Objects.equals(this.bankCode, dkLocalAccountIdentification.bankCode) + && Objects.equals(this.type, dkLocalAccountIdentification.type); } @Override @@ -214,8 +213,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +222,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DKLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of DKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to DKLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DKLocalAccountIdentification */ - public static DKLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static DKLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DKLocalAccountIdentification.class); } -/** - * Convert an instance of DKLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DKLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/DirectDebitInformation.java b/src/main/java/com/adyen/model/transfers/DirectDebitInformation.java index 0560c1894..957c0e11a 100644 --- a/src/main/java/com/adyen/model/transfers/DirectDebitInformation.java +++ b/src/main/java/com/adyen/model/transfers/DirectDebitInformation.java @@ -2,39 +2,29 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.time.OffsetDateTime; +import java.util.*; - -/** - * DirectDebitInformation - */ +/** DirectDebitInformation */ @JsonPropertyOrder({ DirectDebitInformation.JSON_PROPERTY_DATE_OF_SIGNATURE, DirectDebitInformation.JSON_PROPERTY_DUE_DATE, DirectDebitInformation.JSON_PROPERTY_MANDATE_ID, DirectDebitInformation.JSON_PROPERTY_SEQUENCE_TYPE }) - public class DirectDebitInformation { public static final String JSON_PROPERTY_DATE_OF_SIGNATURE = "dateOfSignature"; private OffsetDateTime dateOfSignature; @@ -48,13 +38,14 @@ public class DirectDebitInformation { public static final String JSON_PROPERTY_SEQUENCE_TYPE = "sequenceType"; private String sequenceType; - public DirectDebitInformation() { - } + public DirectDebitInformation() {} /** - * The date when the direct debit mandate was accepted by your user, in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + * The date when the direct debit mandate was accepted by your user, in + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. * - * @param dateOfSignature The date when the direct debit mandate was accepted by your user, in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + * @param dateOfSignature The date when the direct debit mandate was accepted by your user, in + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. * @return the current {@code DirectDebitInformation} instance, allowing for method chaining */ public DirectDebitInformation dateOfSignature(OffsetDateTime dateOfSignature) { @@ -63,8 +54,11 @@ public DirectDebitInformation dateOfSignature(OffsetDateTime dateOfSignature) { } /** - * The date when the direct debit mandate was accepted by your user, in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. - * @return dateOfSignature The date when the direct debit mandate was accepted by your user, in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + * The date when the direct debit mandate was accepted by your user, in + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + * + * @return dateOfSignature The date when the direct debit mandate was accepted by your user, in + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. */ @JsonProperty(JSON_PROPERTY_DATE_OF_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -73,9 +67,11 @@ public OffsetDateTime getDateOfSignature() { } /** - * The date when the direct debit mandate was accepted by your user, in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + * The date when the direct debit mandate was accepted by your user, in + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. * - * @param dateOfSignature The date when the direct debit mandate was accepted by your user, in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + * @param dateOfSignature The date when the direct debit mandate was accepted by your user, in + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. */ @JsonProperty(JSON_PROPERTY_DATE_OF_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,6 +92,7 @@ public DirectDebitInformation dueDate(OffsetDateTime dueDate) { /** * The date when the funds are deducted from your user's balance account. + * * @return dueDate The date when the funds are deducted from your user's balance account. */ @JsonProperty(JSON_PROPERTY_DUE_DATE) @@ -128,6 +125,7 @@ public DirectDebitInformation mandateId(String mandateId) { /** * Your unique identifier for the direct debit mandate. + * * @return mandateId Your unique identifier for the direct debit mandate. */ @JsonProperty(JSON_PROPERTY_MANDATE_ID) @@ -148,9 +146,11 @@ public void setMandateId(String mandateId) { } /** - * Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, **Recurring**, **Final**. + * Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, + * **Recurring**, **Final**. * - * @param sequenceType Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, **Recurring**, **Final**. + * @param sequenceType Identifies the direct debit transfer's type. Possible values: + * **OneOff**, **First**, **Recurring**, **Final**. * @return the current {@code DirectDebitInformation} instance, allowing for method chaining */ public DirectDebitInformation sequenceType(String sequenceType) { @@ -159,8 +159,11 @@ public DirectDebitInformation sequenceType(String sequenceType) { } /** - * Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, **Recurring**, **Final**. - * @return sequenceType Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, **Recurring**, **Final**. + * Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, + * **Recurring**, **Final**. + * + * @return sequenceType Identifies the direct debit transfer's type. Possible values: + * **OneOff**, **First**, **Recurring**, **Final**. */ @JsonProperty(JSON_PROPERTY_SEQUENCE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,9 +172,11 @@ public String getSequenceType() { } /** - * Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, **Recurring**, **Final**. + * Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, + * **Recurring**, **Final**. * - * @param sequenceType Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, **Recurring**, **Final**. + * @param sequenceType Identifies the direct debit transfer's type. Possible values: + * **OneOff**, **First**, **Recurring**, **Final**. */ @JsonProperty(JSON_PROPERTY_SEQUENCE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,9 +184,7 @@ public void setSequenceType(String sequenceType) { this.sequenceType = sequenceType; } - /** - * Return true if this DirectDebitInformation object is equal to o. - */ + /** Return true if this DirectDebitInformation object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -191,10 +194,10 @@ public boolean equals(Object o) { return false; } DirectDebitInformation directDebitInformation = (DirectDebitInformation) o; - return Objects.equals(this.dateOfSignature, directDebitInformation.dateOfSignature) && - Objects.equals(this.dueDate, directDebitInformation.dueDate) && - Objects.equals(this.mandateId, directDebitInformation.mandateId) && - Objects.equals(this.sequenceType, directDebitInformation.sequenceType); + return Objects.equals(this.dateOfSignature, directDebitInformation.dateOfSignature) + && Objects.equals(this.dueDate, directDebitInformation.dueDate) + && Objects.equals(this.mandateId, directDebitInformation.mandateId) + && Objects.equals(this.sequenceType, directDebitInformation.sequenceType); } @Override @@ -215,8 +218,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -225,21 +227,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DirectDebitInformation given an JSON string * * @param jsonString JSON string * @return An instance of DirectDebitInformation - * @throws JsonProcessingException if the JSON string is invalid with respect to DirectDebitInformation + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DirectDebitInformation */ public static DirectDebitInformation fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DirectDebitInformation.class); } -/** - * Convert an instance of DirectDebitInformation to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DirectDebitInformation to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/EstimationTrackingData.java b/src/main/java/com/adyen/model/transfers/EstimationTrackingData.java index e8cf0f7ff..f6242456e 100644 --- a/src/main/java/com/adyen/model/transfers/EstimationTrackingData.java +++ b/src/main/java/com/adyen/model/transfers/EstimationTrackingData.java @@ -2,46 +2,40 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * EstimationTrackingData - */ +/** EstimationTrackingData */ @JsonPropertyOrder({ EstimationTrackingData.JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME, EstimationTrackingData.JSON_PROPERTY_TYPE }) - public class EstimationTrackingData { public static final String JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME = "estimatedArrivalTime"; private OffsetDateTime estimatedArrivalTime; /** - * The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. + * The type of tracking event. Possible values: - **estimation**: the estimated date and time of + * when the funds will be credited has been determined. */ public enum TypeEnum { - ESTIMATION(String.valueOf("estimation")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -49,7 +43,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -70,7 +64,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -78,8 +76,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public EstimationTrackingData() { - } + public EstimationTrackingData() {} /** * The estimated time the beneficiary should have access to the funds. @@ -94,7 +91,9 @@ public EstimationTrackingData estimatedArrivalTime(OffsetDateTime estimatedArriv /** * The estimated time the beneficiary should have access to the funds. - * @return estimatedArrivalTime The estimated time the beneficiary should have access to the funds. + * + * @return estimatedArrivalTime The estimated time the beneficiary should have access to the + * funds. */ @JsonProperty(JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,9 +113,11 @@ public void setEstimatedArrivalTime(OffsetDateTime estimatedArrivalTime) { } /** - * The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. + * The type of tracking event. Possible values: - **estimation**: the estimated date and time of + * when the funds will be credited has been determined. * - * @param type The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. + * @param type The type of tracking event. Possible values: - **estimation**: the estimated date + * and time of when the funds will be credited has been determined. * @return the current {@code EstimationTrackingData} instance, allowing for method chaining */ public EstimationTrackingData type(TypeEnum type) { @@ -125,8 +126,11 @@ public EstimationTrackingData type(TypeEnum type) { } /** - * The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. - * @return type The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. + * The type of tracking event. Possible values: - **estimation**: the estimated date and time of + * when the funds will be credited has been determined. + * + * @return type The type of tracking event. Possible values: - **estimation**: the estimated date + * and time of when the funds will be credited has been determined. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,9 +139,11 @@ public TypeEnum getType() { } /** - * The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. + * The type of tracking event. Possible values: - **estimation**: the estimated date and time of + * when the funds will be credited has been determined. * - * @param type The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. + * @param type The type of tracking event. Possible values: - **estimation**: the estimated date + * and time of when the funds will be credited has been determined. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,9 +151,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this EstimationTrackingData object is equal to o. - */ + /** Return true if this EstimationTrackingData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -157,8 +161,8 @@ public boolean equals(Object o) { return false; } EstimationTrackingData estimationTrackingData = (EstimationTrackingData) o; - return Objects.equals(this.estimatedArrivalTime, estimationTrackingData.estimatedArrivalTime) && - Objects.equals(this.type, estimationTrackingData.type); + return Objects.equals(this.estimatedArrivalTime, estimationTrackingData.estimatedArrivalTime) + && Objects.equals(this.type, estimationTrackingData.type); } @Override @@ -170,15 +174,16 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class EstimationTrackingData {\n"); - sb.append(" estimatedArrivalTime: ").append(toIndentedString(estimatedArrivalTime)).append("\n"); + sb.append(" estimatedArrivalTime: ") + .append(toIndentedString(estimatedArrivalTime)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -187,21 +192,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of EstimationTrackingData given an JSON string * * @param jsonString JSON string * @return An instance of EstimationTrackingData - * @throws JsonProcessingException if the JSON string is invalid with respect to EstimationTrackingData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * EstimationTrackingData */ public static EstimationTrackingData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, EstimationTrackingData.class); } -/** - * Convert an instance of EstimationTrackingData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of EstimationTrackingData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/ExecutionDate.java b/src/main/java/com/adyen/model/transfers/ExecutionDate.java index eef76e023..7ad4cb2eb 100644 --- a/src/main/java/com/adyen/model/transfers/ExecutionDate.java +++ b/src/main/java/com/adyen/model/transfers/ExecutionDate.java @@ -2,37 +2,24 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.LocalDate; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.time.LocalDate; +import java.util.*; - -/** - * ExecutionDate - */ -@JsonPropertyOrder({ - ExecutionDate.JSON_PROPERTY_DATE, - ExecutionDate.JSON_PROPERTY_TIMEZONE -}) - +/** ExecutionDate */ +@JsonPropertyOrder({ExecutionDate.JSON_PROPERTY_DATE, ExecutionDate.JSON_PROPERTY_TIMEZONE}) public class ExecutionDate { public static final String JSON_PROPERTY_DATE = "date"; private LocalDate date; @@ -40,13 +27,18 @@ public class ExecutionDate { public static final String JSON_PROPERTY_TIMEZONE = "timezone"; private String timezone; - public ExecutionDate() { - } + public ExecutionDate() {} /** - * The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31 + * The date when the transfer will be processed. This date must be: * Within 30 days of the + * current date. * In the [ISO 8601 + * format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: + * 2025-01-31 * - * @param date The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31 + * @param date The date when the transfer will be processed. This date must be: * Within 30 days + * of the current date. * In the [ISO 8601 + * format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For + * example: 2025-01-31 * @return the current {@code ExecutionDate} instance, allowing for method chaining */ public ExecutionDate date(LocalDate date) { @@ -55,8 +47,15 @@ public ExecutionDate date(LocalDate date) { } /** - * The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31 - * @return date The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31 + * The date when the transfer will be processed. This date must be: * Within 30 days of the + * current date. * In the [ISO 8601 + * format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: + * 2025-01-31 + * + * @return date The date when the transfer will be processed. This date must be: * Within 30 days + * of the current date. * In the [ISO 8601 + * format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For + * example: 2025-01-31 */ @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -65,9 +64,15 @@ public LocalDate getDate() { } /** - * The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31 + * The date when the transfer will be processed. This date must be: * Within 30 days of the + * current date. * In the [ISO 8601 + * format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: + * 2025-01-31 * - * @param date The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31 + * @param date The date when the transfer will be processed. This date must be: * Within 30 days + * of the current date. * In the [ISO 8601 + * format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For + * example: 2025-01-31 */ @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -76,9 +81,13 @@ public void setDate(LocalDate date) { } /** - * The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**. + * The timezone that applies to the execution date. Use a timezone identifier from the [tz + * database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: + * **America/Los_Angeles**. Default value: **Europe/Amsterdam**. * - * @param timezone The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**. + * @param timezone The timezone that applies to the execution date. Use a timezone identifier from + * the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: + * **America/Los_Angeles**. Default value: **Europe/Amsterdam**. * @return the current {@code ExecutionDate} instance, allowing for method chaining */ public ExecutionDate timezone(String timezone) { @@ -87,8 +96,13 @@ public ExecutionDate timezone(String timezone) { } /** - * The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**. - * @return timezone The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**. + * The timezone that applies to the execution date. Use a timezone identifier from the [tz + * database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: + * **America/Los_Angeles**. Default value: **Europe/Amsterdam**. + * + * @return timezone The timezone that applies to the execution date. Use a timezone identifier + * from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIMEZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,9 +111,13 @@ public String getTimezone() { } /** - * The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**. + * The timezone that applies to the execution date. Use a timezone identifier from the [tz + * database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: + * **America/Los_Angeles**. Default value: **Europe/Amsterdam**. * - * @param timezone The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**. + * @param timezone The timezone that applies to the execution date. Use a timezone identifier from + * the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: + * **America/Los_Angeles**. Default value: **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIMEZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,9 +125,7 @@ public void setTimezone(String timezone) { this.timezone = timezone; } - /** - * Return true if this ExecutionDate object is equal to o. - */ + /** Return true if this ExecutionDate object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -119,8 +135,8 @@ public boolean equals(Object o) { return false; } ExecutionDate executionDate = (ExecutionDate) o; - return Objects.equals(this.date, executionDate.date) && - Objects.equals(this.timezone, executionDate.timezone); + return Objects.equals(this.date, executionDate.date) + && Objects.equals(this.timezone, executionDate.timezone); } @Override @@ -139,8 +155,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -149,7 +164,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ExecutionDate given an JSON string * * @param jsonString JSON string @@ -159,11 +174,12 @@ private String toIndentedString(Object o) { public static ExecutionDate fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ExecutionDate.class); } -/** - * Convert an instance of ExecutionDate to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ExecutionDate to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/ExternalReason.java b/src/main/java/com/adyen/model/transfers/ExternalReason.java index 172668717..24ddccc88 100644 --- a/src/main/java/com/adyen/model/transfers/ExternalReason.java +++ b/src/main/java/com/adyen/model/transfers/ExternalReason.java @@ -2,37 +2,27 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ExternalReason - */ +/** ExternalReason */ @JsonPropertyOrder({ ExternalReason.JSON_PROPERTY_CODE, ExternalReason.JSON_PROPERTY_DESCRIPTION, ExternalReason.JSON_PROPERTY_NAMESPACE }) - public class ExternalReason { public static final String JSON_PROPERTY_CODE = "code"; private String code; @@ -43,8 +33,7 @@ public class ExternalReason { public static final String JSON_PROPERTY_NAMESPACE = "namespace"; private String namespace; - public ExternalReason() { - } + public ExternalReason() {} /** * The reason code. @@ -59,6 +48,7 @@ public ExternalReason code(String code) { /** * The reason code. + * * @return code The reason code. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -91,6 +81,7 @@ public ExternalReason description(String description) { /** * The description of the reason code. + * * @return description The description of the reason code. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -123,6 +114,7 @@ public ExternalReason namespace(String namespace) { /** * The namespace for the reason code. + * * @return namespace The namespace for the reason code. */ @JsonProperty(JSON_PROPERTY_NAMESPACE) @@ -142,9 +134,7 @@ public void setNamespace(String namespace) { this.namespace = namespace; } - /** - * Return true if this ExternalReason object is equal to o. - */ + /** Return true if this ExternalReason object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +144,9 @@ public boolean equals(Object o) { return false; } ExternalReason externalReason = (ExternalReason) o; - return Objects.equals(this.code, externalReason.code) && - Objects.equals(this.description, externalReason.description) && - Objects.equals(this.namespace, externalReason.namespace); + return Objects.equals(this.code, externalReason.code) + && Objects.equals(this.description, externalReason.description) + && Objects.equals(this.namespace, externalReason.namespace); } @Override @@ -176,8 +166,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +175,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ExternalReason given an JSON string * * @param jsonString JSON string @@ -196,11 +185,12 @@ private String toIndentedString(Object o) { public static ExternalReason fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ExternalReason.class); } -/** - * Convert an instance of ExternalReason to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ExternalReason to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/Fee.java b/src/main/java/com/adyen/model/transfers/Fee.java index d6b679326..f02f6f94b 100644 --- a/src/main/java/com/adyen/model/transfers/Fee.java +++ b/src/main/java/com/adyen/model/transfers/Fee.java @@ -2,47 +2,33 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Fee - */ -@JsonPropertyOrder({ - Fee.JSON_PROPERTY_AMOUNT -}) - +/** Fee */ +@JsonPropertyOrder({Fee.JSON_PROPERTY_AMOUNT}) public class Fee { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; - public Fee() { - } + public Fee() {} /** * amount * - * @param amount + * @param amount * @return the current {@code Fee} instance, allowing for method chaining */ public Fee amount(Amount amount) { @@ -52,7 +38,8 @@ public Fee amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,7 +50,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,9 +58,7 @@ public void setAmount(Amount amount) { this.amount = amount; } - /** - * Return true if this Fee object is equal to o. - */ + /** Return true if this Fee object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -101,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -111,7 +95,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Fee given an JSON string * * @param jsonString JSON string @@ -121,11 +105,12 @@ private String toIndentedString(Object o) { public static Fee fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Fee.class); } -/** - * Convert an instance of Fee to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Fee to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/FindTransfersResponse.java b/src/main/java/com/adyen/model/transfers/FindTransfersResponse.java index d45c30201..3f5c2509c 100644 --- a/src/main/java/com/adyen/model/transfers/FindTransfersResponse.java +++ b/src/main/java/com/adyen/model/transfers/FindTransfersResponse.java @@ -2,40 +2,28 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.Links; -import com.adyen.model.transfers.TransferData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * FindTransfersResponse - */ +/** FindTransfersResponse */ @JsonPropertyOrder({ FindTransfersResponse.JSON_PROPERTY_LINKS, FindTransfersResponse.JSON_PROPERTY_DATA }) - public class FindTransfersResponse { public static final String JSON_PROPERTY_LINKS = "_links"; private Links links; @@ -43,13 +31,12 @@ public class FindTransfersResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; - public FindTransfersResponse() { - } + public FindTransfersResponse() {} /** * links * - * @param links + * @param links * @return the current {@code FindTransfersResponse} instance, allowing for method chaining */ public FindTransfersResponse links(Links links) { @@ -59,7 +46,8 @@ public FindTransfersResponse links(Links links) { /** * Get links - * @return links + * + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,7 +58,7 @@ public Links getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,6 +87,7 @@ public FindTransfersResponse addDataItem(TransferData dataItem) { /** * Contains the transfers that match the query parameters. + * * @return data Contains the transfers that match the query parameters. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -118,9 +107,7 @@ public void setData(List data) { this.data = data; } - /** - * Return true if this FindTransfersResponse object is equal to o. - */ + /** Return true if this FindTransfersResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -130,8 +117,8 @@ public boolean equals(Object o) { return false; } FindTransfersResponse findTransfersResponse = (FindTransfersResponse) o; - return Objects.equals(this.links, findTransfersResponse.links) && - Objects.equals(this.data, findTransfersResponse.data); + return Objects.equals(this.links, findTransfersResponse.links) + && Objects.equals(this.data, findTransfersResponse.data); } @Override @@ -150,8 +137,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -160,21 +146,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of FindTransfersResponse given an JSON string * * @param jsonString JSON string * @return An instance of FindTransfersResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to FindTransfersResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * FindTransfersResponse */ public static FindTransfersResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, FindTransfersResponse.class); } -/** - * Convert an instance of FindTransfersResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of FindTransfersResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/HKLocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/HKLocalAccountIdentification.java index 2a506ebf0..cf29af7d8 100644 --- a/src/main/java/com/adyen/model/transfers/HKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/HKLocalAccountIdentification.java @@ -2,37 +2,31 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * HKLocalAccountIdentification - */ +/** HKLocalAccountIdentification */ @JsonPropertyOrder({ HKLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, HKLocalAccountIdentification.JSON_PROPERTY_CLEARING_CODE, HKLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class HKLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -40,11 +34,8 @@ public class HKLocalAccountIdentification { public static final String JSON_PROPERTY_CLEARING_CODE = "clearingCode"; private String clearingCode; - /** - * **hkLocal** - */ + /** **hkLocal** */ public enum TypeEnum { - HKLOCAL(String.valueOf("hkLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +43,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +64,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,13 +76,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public HKLocalAccountIdentification() { - } + public HKLocalAccountIdentification() {} /** - * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. + * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. + * Starts with the 3-digit branch code. * - * @param accountNumber The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. + * @param accountNumber The 9- to 15-character bank account number (alphanumeric), without + * separators or whitespace. Starts with the 3-digit branch code. * @return the current {@code HKLocalAccountIdentification} instance, allowing for method chaining */ public HKLocalAccountIdentification accountNumber(String accountNumber) { @@ -96,8 +92,11 @@ public HKLocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. - * @return accountNumber The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. + * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. + * Starts with the 3-digit branch code. + * + * @return accountNumber The 9- to 15-character bank account number (alphanumeric), without + * separators or whitespace. Starts with the 3-digit branch code. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +105,11 @@ public String getAccountNumber() { } /** - * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. + * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. + * Starts with the 3-digit branch code. * - * @param accountNumber The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. + * @param accountNumber The 9- to 15-character bank account number (alphanumeric), without + * separators or whitespace. Starts with the 3-digit branch code. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,6 +130,7 @@ public HKLocalAccountIdentification clearingCode(String clearingCode) { /** * The 3-digit clearing code, without separators or whitespace. + * * @return clearingCode The 3-digit clearing code, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_CLEARING_CODE) @@ -161,6 +163,7 @@ public HKLocalAccountIdentification type(TypeEnum type) { /** * **hkLocal** + * * @return type **hkLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +183,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this HKLocalAccountIdentification object is equal to o. - */ + /** Return true if this HKLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +193,9 @@ public boolean equals(Object o) { return false; } HKLocalAccountIdentification hkLocalAccountIdentification = (HKLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, hkLocalAccountIdentification.accountNumber) && - Objects.equals(this.clearingCode, hkLocalAccountIdentification.clearingCode) && - Objects.equals(this.type, hkLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, hkLocalAccountIdentification.accountNumber) + && Objects.equals(this.clearingCode, hkLocalAccountIdentification.clearingCode) + && Objects.equals(this.type, hkLocalAccountIdentification.type); } @Override @@ -214,8 +215,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +224,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of HKLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of HKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to HKLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * HKLocalAccountIdentification */ - public static HKLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static HKLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, HKLocalAccountIdentification.class); } -/** - * Convert an instance of HKLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of HKLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/HULocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/HULocalAccountIdentification.java index fe0da2472..4af658eaa 100644 --- a/src/main/java/com/adyen/model/transfers/HULocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/HULocalAccountIdentification.java @@ -2,45 +2,36 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * HULocalAccountIdentification - */ +/** HULocalAccountIdentification */ @JsonPropertyOrder({ HULocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, HULocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class HULocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - /** - * **huLocal** - */ + /** **huLocal** */ public enum TypeEnum { - HULOCAL(String.valueOf("huLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +39,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,8 +72,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public HULocalAccountIdentification() { - } + public HULocalAccountIdentification() {} /** * The 24-digit bank account number, without separators or whitespace. @@ -93,6 +87,7 @@ public HULocalAccountIdentification accountNumber(String accountNumber) { /** * The 24-digit bank account number, without separators or whitespace. + * * @return accountNumber The 24-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -125,6 +120,7 @@ public HULocalAccountIdentification type(TypeEnum type) { /** * **huLocal** + * * @return type **huLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -144,9 +140,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this HULocalAccountIdentification object is equal to o. - */ + /** Return true if this HULocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +150,8 @@ public boolean equals(Object o) { return false; } HULocalAccountIdentification huLocalAccountIdentification = (HULocalAccountIdentification) o; - return Objects.equals(this.accountNumber, huLocalAccountIdentification.accountNumber) && - Objects.equals(this.type, huLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, huLocalAccountIdentification.accountNumber) + && Objects.equals(this.type, huLocalAccountIdentification.type); } @Override @@ -176,8 +170,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +179,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of HULocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of HULocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to HULocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * HULocalAccountIdentification */ - public static HULocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static HULocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, HULocalAccountIdentification.class); } -/** - * Convert an instance of HULocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of HULocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/IbanAccountIdentification.java b/src/main/java/com/adyen/model/transfers/IbanAccountIdentification.java index 4ed79dad5..c31dce55f 100644 --- a/src/main/java/com/adyen/model/transfers/IbanAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/IbanAccountIdentification.java @@ -2,45 +2,36 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * IbanAccountIdentification - */ +/** IbanAccountIdentification */ @JsonPropertyOrder({ IbanAccountIdentification.JSON_PROPERTY_IBAN, IbanAccountIdentification.JSON_PROPERTY_TYPE }) - public class IbanAccountIdentification { public static final String JSON_PROPERTY_IBAN = "iban"; private String iban; - /** - * **iban** - */ + /** **iban** */ public enum TypeEnum { - IBAN(String.valueOf("iban")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +39,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,13 +72,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public IbanAccountIdentification() { - } + public IbanAccountIdentification() {} /** - * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. * - * @param iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @param iban The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. * @return the current {@code IbanAccountIdentification} instance, allowing for method chaining */ public IbanAccountIdentification iban(String iban) { @@ -92,8 +88,11 @@ public IbanAccountIdentification iban(String iban) { } /** - * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. - * @return iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * + * @return iban The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,9 +101,11 @@ public String getIban() { } /** - * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. * - * @param iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @param iban The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,6 +126,7 @@ public IbanAccountIdentification type(TypeEnum type) { /** * **iban** + * * @return type **iban** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -144,9 +146,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this IbanAccountIdentification object is equal to o. - */ + /** Return true if this IbanAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +156,8 @@ public boolean equals(Object o) { return false; } IbanAccountIdentification ibanAccountIdentification = (IbanAccountIdentification) o; - return Objects.equals(this.iban, ibanAccountIdentification.iban) && - Objects.equals(this.type, ibanAccountIdentification.type); + return Objects.equals(this.iban, ibanAccountIdentification.iban) + && Objects.equals(this.type, ibanAccountIdentification.type); } @Override @@ -176,8 +176,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +185,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of IbanAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of IbanAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to IbanAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * IbanAccountIdentification */ - public static IbanAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static IbanAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, IbanAccountIdentification.class); } -/** - * Convert an instance of IbanAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of IbanAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/InternalCategoryData.java b/src/main/java/com/adyen/model/transfers/InternalCategoryData.java index 70f88e0a7..e6957c996 100644 --- a/src/main/java/com/adyen/model/transfers/InternalCategoryData.java +++ b/src/main/java/com/adyen/model/transfers/InternalCategoryData.java @@ -2,49 +2,41 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * InternalCategoryData - */ +/** InternalCategoryData */ @JsonPropertyOrder({ InternalCategoryData.JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE, InternalCategoryData.JSON_PROPERTY_MODIFICATION_PSP_REFERENCE, InternalCategoryData.JSON_PROPERTY_TYPE }) - public class InternalCategoryData { - public static final String JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE = "modificationMerchantReference"; + public static final String JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE = + "modificationMerchantReference"; private String modificationMerchantReference; public static final String JSON_PROPERTY_MODIFICATION_PSP_REFERENCE = "modificationPspReference"; private String modificationPspReference; - /** - * **internal** - */ + /** **internal** */ public enum TypeEnum { - INTERNAL(String.valueOf("internal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +44,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +65,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,13 +77,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public InternalCategoryData() { - } + public InternalCategoryData() {} /** * The capture's merchant reference included in the transfer. * - * @param modificationMerchantReference The capture's merchant reference included in the transfer. + * @param modificationMerchantReference The capture's merchant reference included in the + * transfer. * @return the current {@code InternalCategoryData} instance, allowing for method chaining */ public InternalCategoryData modificationMerchantReference(String modificationMerchantReference) { @@ -97,7 +93,9 @@ public InternalCategoryData modificationMerchantReference(String modificationMer /** * The capture's merchant reference included in the transfer. - * @return modificationMerchantReference The capture's merchant reference included in the transfer. + * + * @return modificationMerchantReference The capture's merchant reference included in the + * transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,7 +106,8 @@ public String getModificationMerchantReference() { /** * The capture's merchant reference included in the transfer. * - * @param modificationMerchantReference The capture's merchant reference included in the transfer. + * @param modificationMerchantReference The capture's merchant reference included in the + * transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,6 +128,7 @@ public InternalCategoryData modificationPspReference(String modificationPspRefer /** * The capture reference included in the transfer. + * * @return modificationPspReference The capture reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_PSP_REFERENCE) @@ -161,6 +161,7 @@ public InternalCategoryData type(TypeEnum type) { /** * **internal** + * * @return type **internal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +181,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this InternalCategoryData object is equal to o. - */ + /** Return true if this InternalCategoryData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +191,11 @@ public boolean equals(Object o) { return false; } InternalCategoryData internalCategoryData = (InternalCategoryData) o; - return Objects.equals(this.modificationMerchantReference, internalCategoryData.modificationMerchantReference) && - Objects.equals(this.modificationPspReference, internalCategoryData.modificationPspReference) && - Objects.equals(this.type, internalCategoryData.type); + return Objects.equals( + this.modificationMerchantReference, internalCategoryData.modificationMerchantReference) + && Objects.equals( + this.modificationPspReference, internalCategoryData.modificationPspReference) + && Objects.equals(this.type, internalCategoryData.type); } @Override @@ -206,16 +207,19 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InternalCategoryData {\n"); - sb.append(" modificationMerchantReference: ").append(toIndentedString(modificationMerchantReference)).append("\n"); - sb.append(" modificationPspReference: ").append(toIndentedString(modificationPspReference)).append("\n"); + sb.append(" modificationMerchantReference: ") + .append(toIndentedString(modificationMerchantReference)) + .append("\n"); + sb.append(" modificationPspReference: ") + .append(toIndentedString(modificationPspReference)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +228,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of InternalCategoryData given an JSON string * * @param jsonString JSON string * @return An instance of InternalCategoryData - * @throws JsonProcessingException if the JSON string is invalid with respect to InternalCategoryData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * InternalCategoryData */ public static InternalCategoryData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, InternalCategoryData.class); } -/** - * Convert an instance of InternalCategoryData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of InternalCategoryData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/InternalReviewTrackingData.java b/src/main/java/com/adyen/model/transfers/InternalReviewTrackingData.java index 425cb3e87..a8b36278a 100644 --- a/src/main/java/com/adyen/model/transfers/InternalReviewTrackingData.java +++ b/src/main/java/com/adyen/model/transfers/InternalReviewTrackingData.java @@ -2,43 +2,38 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * InternalReviewTrackingData - */ +/** InternalReviewTrackingData */ @JsonPropertyOrder({ InternalReviewTrackingData.JSON_PROPERTY_REASON, InternalReviewTrackingData.JSON_PROPERTY_STATUS, InternalReviewTrackingData.JSON_PROPERTY_TYPE }) - public class InternalReviewTrackingData { /** - * The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). + * The reason why the transfer failed Adyen's internal review. Possible values: - + * **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For + * more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). */ public enum ReasonEnum { - REFUSEDFORREGULATORYREASONS(String.valueOf("refusedForRegulatoryReasons")); private static final Logger LOG = Logger.getLogger(ReasonEnum.class.getName()); @@ -46,7 +41,7 @@ public enum ReasonEnum { private String value; ReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -67,7 +62,11 @@ public static ReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ReasonEnum.values())); + LOG.warning( + "ReasonEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ReasonEnum.values())); return null; } } @@ -76,10 +75,11 @@ public static ReasonEnum fromValue(String value) { private ReasonEnum reason; /** - * The status of the transfer. Possible values: - **pending**: the transfer is under internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. + * The status of the transfer. Possible values: - **pending**: the transfer is under internal + * review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, + * see `reason`. */ public enum StatusEnum { - PENDING(String.valueOf("pending")), FAILED(String.valueOf("failed")); @@ -89,7 +89,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -110,7 +110,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -119,10 +123,10 @@ public static StatusEnum fromValue(String value) { private StatusEnum status; /** - * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. + * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged + * because it does not comply with Adyen's risk policy. */ public enum TypeEnum { - INTERNALREVIEW(String.valueOf("internalReview")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -130,7 +134,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -151,7 +155,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -159,13 +167,17 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public InternalReviewTrackingData() { - } + public InternalReviewTrackingData() {} /** - * The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). + * The reason why the transfer failed Adyen's internal review. Possible values: - + * **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For + * more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). * - * @param reason The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). + * @param reason The reason why the transfer failed Adyen's internal review. Possible values: + * - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk + * policy. For more information, [contact the Support + * Team](https://www.adyen.help/hc/en-us/requests/new). * @return the current {@code InternalReviewTrackingData} instance, allowing for method chaining */ public InternalReviewTrackingData reason(ReasonEnum reason) { @@ -174,8 +186,14 @@ public InternalReviewTrackingData reason(ReasonEnum reason) { } /** - * The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). - * @return reason The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). + * The reason why the transfer failed Adyen's internal review. Possible values: - + * **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For + * more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). + * + * @return reason The reason why the transfer failed Adyen's internal review. Possible values: + * - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk + * policy. For more information, [contact the Support + * Team](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -184,9 +202,14 @@ public ReasonEnum getReason() { } /** - * The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). + * The reason why the transfer failed Adyen's internal review. Possible values: - + * **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For + * more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). * - * @param reason The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). + * @param reason The reason why the transfer failed Adyen's internal review. Possible values: + * - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk + * policy. For more information, [contact the Support + * Team](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,9 +218,13 @@ public void setReason(ReasonEnum reason) { } /** - * The status of the transfer. Possible values: - **pending**: the transfer is under internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. + * The status of the transfer. Possible values: - **pending**: the transfer is under internal + * review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, + * see `reason`. * - * @param status The status of the transfer. Possible values: - **pending**: the transfer is under internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. + * @param status The status of the transfer. Possible values: - **pending**: the transfer is under + * internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. + * For details, see `reason`. * @return the current {@code InternalReviewTrackingData} instance, allowing for method chaining */ public InternalReviewTrackingData status(StatusEnum status) { @@ -206,8 +233,13 @@ public InternalReviewTrackingData status(StatusEnum status) { } /** - * The status of the transfer. Possible values: - **pending**: the transfer is under internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. - * @return status The status of the transfer. Possible values: - **pending**: the transfer is under internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. + * The status of the transfer. Possible values: - **pending**: the transfer is under internal + * review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, + * see `reason`. + * + * @return status The status of the transfer. Possible values: - **pending**: the transfer is + * under internal review by Adyen. - **failed**: the transfer failed Adyen's internal + * review. For details, see `reason`. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -216,9 +248,13 @@ public StatusEnum getStatus() { } /** - * The status of the transfer. Possible values: - **pending**: the transfer is under internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. + * The status of the transfer. Possible values: - **pending**: the transfer is under internal + * review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, + * see `reason`. * - * @param status The status of the transfer. Possible values: - **pending**: the transfer is under internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. + * @param status The status of the transfer. Possible values: - **pending**: the transfer is under + * internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. + * For details, see `reason`. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -227,9 +263,11 @@ public void setStatus(StatusEnum status) { } /** - * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. + * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged + * because it does not comply with Adyen's risk policy. * - * @param type The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. + * @param type The type of tracking event. Possible values: - **internalReview**: the transfer was + * flagged because it does not comply with Adyen's risk policy. * @return the current {@code InternalReviewTrackingData} instance, allowing for method chaining */ public InternalReviewTrackingData type(TypeEnum type) { @@ -238,8 +276,11 @@ public InternalReviewTrackingData type(TypeEnum type) { } /** - * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. - * @return type The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. + * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged + * because it does not comply with Adyen's risk policy. + * + * @return type The type of tracking event. Possible values: - **internalReview**: the transfer + * was flagged because it does not comply with Adyen's risk policy. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -248,9 +289,11 @@ public TypeEnum getType() { } /** - * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. + * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged + * because it does not comply with Adyen's risk policy. * - * @param type The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. + * @param type The type of tracking event. Possible values: - **internalReview**: the transfer was + * flagged because it does not comply with Adyen's risk policy. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -258,9 +301,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this InternalReviewTrackingData object is equal to o. - */ + /** Return true if this InternalReviewTrackingData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -270,9 +311,9 @@ public boolean equals(Object o) { return false; } InternalReviewTrackingData internalReviewTrackingData = (InternalReviewTrackingData) o; - return Objects.equals(this.reason, internalReviewTrackingData.reason) && - Objects.equals(this.status, internalReviewTrackingData.status) && - Objects.equals(this.type, internalReviewTrackingData.type); + return Objects.equals(this.reason, internalReviewTrackingData.reason) + && Objects.equals(this.status, internalReviewTrackingData.status) + && Objects.equals(this.type, internalReviewTrackingData.type); } @Override @@ -292,8 +333,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -302,21 +342,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of InternalReviewTrackingData given an JSON string * * @param jsonString JSON string * @return An instance of InternalReviewTrackingData - * @throws JsonProcessingException if the JSON string is invalid with respect to InternalReviewTrackingData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * InternalReviewTrackingData */ - public static InternalReviewTrackingData fromJson(String jsonString) throws JsonProcessingException { + public static InternalReviewTrackingData fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, InternalReviewTrackingData.class); } -/** - * Convert an instance of InternalReviewTrackingData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of InternalReviewTrackingData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/InvalidField.java b/src/main/java/com/adyen/model/transfers/InvalidField.java index 91a6c96a4..59b4a67d9 100644 --- a/src/main/java/com/adyen/model/transfers/InvalidField.java +++ b/src/main/java/com/adyen/model/transfers/InvalidField.java @@ -2,37 +2,27 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * InvalidField - */ +/** InvalidField */ @JsonPropertyOrder({ InvalidField.JSON_PROPERTY_MESSAGE, InvalidField.JSON_PROPERTY_NAME, InvalidField.JSON_PROPERTY_VALUE }) - public class InvalidField { public static final String JSON_PROPERTY_MESSAGE = "message"; private String message; @@ -43,8 +33,7 @@ public class InvalidField { public static final String JSON_PROPERTY_VALUE = "value"; private String value; - public InvalidField() { - } + public InvalidField() {} /** * Description of the validation error. @@ -59,6 +48,7 @@ public InvalidField message(String message) { /** * Description of the validation error. + * * @return message Description of the validation error. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -91,6 +81,7 @@ public InvalidField name(String name) { /** * The field that has an invalid value. + * * @return name The field that has an invalid value. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -123,6 +114,7 @@ public InvalidField value(String value) { /** * The invalid value. + * * @return value The invalid value. */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -142,9 +134,7 @@ public void setValue(String value) { this.value = value; } - /** - * Return true if this InvalidField object is equal to o. - */ + /** Return true if this InvalidField object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +144,9 @@ public boolean equals(Object o) { return false; } InvalidField invalidField = (InvalidField) o; - return Objects.equals(this.message, invalidField.message) && - Objects.equals(this.name, invalidField.name) && - Objects.equals(this.value, invalidField.value); + return Objects.equals(this.message, invalidField.message) + && Objects.equals(this.name, invalidField.name) + && Objects.equals(this.value, invalidField.value); } @Override @@ -176,8 +166,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +175,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of InvalidField given an JSON string * * @param jsonString JSON string @@ -196,11 +185,12 @@ private String toIndentedString(Object o) { public static InvalidField fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, InvalidField.class); } -/** - * Convert an instance of InvalidField to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of InvalidField to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/IssuedCard.java b/src/main/java/com/adyen/model/transfers/IssuedCard.java index 63b2a13bb..4b1703e41 100644 --- a/src/main/java/com/adyen/model/transfers/IssuedCard.java +++ b/src/main/java/com/adyen/model/transfers/IssuedCard.java @@ -2,36 +2,28 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.RelayedAuthorisationData; -import com.adyen.model.transfers.ThreeDSecure; -import com.adyen.model.transfers.TransferNotificationValidationFact; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * IssuedCard - */ +/** IssuedCard */ @JsonPropertyOrder({ IssuedCard.JSON_PROPERTY_AUTHORISATION_TYPE, IssuedCard.JSON_PROPERTY_PAN_ENTRY_MODE, @@ -43,16 +35,15 @@ IssuedCard.JSON_PROPERTY_TYPE, IssuedCard.JSON_PROPERTY_VALIDATION_FACTS }) - public class IssuedCard { public static final String JSON_PROPERTY_AUTHORISATION_TYPE = "authorisationType"; private String authorisationType; /** - * Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + * Indicates the method used for entering the PAN to initiate a transaction. Possible values: + * **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. */ public enum PanEntryModeEnum { - CHIP(String.valueOf("chip")), COF(String.valueOf("cof")), @@ -72,7 +63,7 @@ public enum PanEntryModeEnum { private String value; PanEntryModeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -93,7 +84,11 @@ public static PanEntryModeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PanEntryModeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PanEntryModeEnum.values())); + LOG.warning( + "PanEntryModeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PanEntryModeEnum.values())); return null; } } @@ -102,10 +97,10 @@ public static PanEntryModeEnum fromValue(String value) { private PanEntryModeEnum panEntryMode; /** - * Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. + * Contains information about how the payment was processed. For example, **ecommerce** for online + * or **pos** for in-person payments. */ public enum ProcessingTypeEnum { - ATMWITHDRAW(String.valueOf("atmWithdraw")), BALANCEINQUIRY(String.valueOf("balanceInquiry")), @@ -127,7 +122,7 @@ public enum ProcessingTypeEnum { private String value; ProcessingTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -148,7 +143,11 @@ public static ProcessingTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ProcessingTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ProcessingTypeEnum.values())); + LOG.warning( + "ProcessingTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ProcessingTypeEnum.values())); return null; } } @@ -162,17 +161,15 @@ public static ProcessingTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_SCHEME_TRACE_ID = "schemeTraceId"; private String schemeTraceId; - public static final String JSON_PROPERTY_SCHEME_UNIQUE_TRANSACTION_ID = "schemeUniqueTransactionId"; + public static final String JSON_PROPERTY_SCHEME_UNIQUE_TRANSACTION_ID = + "schemeUniqueTransactionId"; private String schemeUniqueTransactionId; public static final String JSON_PROPERTY_THREE_D_SECURE = "threeDSecure"; private ThreeDSecure threeDSecure; - /** - * **issuedCard** - */ + /** **issuedCard** */ public enum TypeEnum { - ISSUEDCARD(String.valueOf("issuedCard")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -180,7 +177,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -201,7 +198,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -212,13 +213,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VALIDATION_FACTS = "validationFacts"; private List validationFacts; - public IssuedCard() { - } + public IssuedCard() {} /** - * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** + * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, + * **finalAuthorisation** * - * @param authorisationType The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** + * @param authorisationType The authorisation type. For example, **defaultAuthorisation**, + * **preAuthorisation**, **finalAuthorisation** * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard authorisationType(String authorisationType) { @@ -227,8 +229,11 @@ public IssuedCard authorisationType(String authorisationType) { } /** - * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** - * @return authorisationType The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** + * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, + * **finalAuthorisation** + * + * @return authorisationType The authorisation type. For example, **defaultAuthorisation**, + * **preAuthorisation**, **finalAuthorisation** */ @JsonProperty(JSON_PROPERTY_AUTHORISATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,9 +242,11 @@ public String getAuthorisationType() { } /** - * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** + * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, + * **finalAuthorisation** * - * @param authorisationType The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** + * @param authorisationType The authorisation type. For example, **defaultAuthorisation**, + * **preAuthorisation**, **finalAuthorisation** */ @JsonProperty(JSON_PROPERTY_AUTHORISATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -248,9 +255,12 @@ public void setAuthorisationType(String authorisationType) { } /** - * Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + * Indicates the method used for entering the PAN to initiate a transaction. Possible values: + * **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. * - * @param panEntryMode Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + * @param panEntryMode Indicates the method used for entering the PAN to initiate a transaction. + * Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, + * **ecommerce**, **token**. * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard panEntryMode(PanEntryModeEnum panEntryMode) { @@ -259,8 +269,12 @@ public IssuedCard panEntryMode(PanEntryModeEnum panEntryMode) { } /** - * Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. - * @return panEntryMode Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + * Indicates the method used for entering the PAN to initiate a transaction. Possible values: + * **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + * + * @return panEntryMode Indicates the method used for entering the PAN to initiate a transaction. + * Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, + * **ecommerce**, **token**. */ @JsonProperty(JSON_PROPERTY_PAN_ENTRY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -269,9 +283,12 @@ public PanEntryModeEnum getPanEntryMode() { } /** - * Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + * Indicates the method used for entering the PAN to initiate a transaction. Possible values: + * **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. * - * @param panEntryMode Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + * @param panEntryMode Indicates the method used for entering the PAN to initiate a transaction. + * Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, + * **ecommerce**, **token**. */ @JsonProperty(JSON_PROPERTY_PAN_ENTRY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -280,9 +297,11 @@ public void setPanEntryMode(PanEntryModeEnum panEntryMode) { } /** - * Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. + * Contains information about how the payment was processed. For example, **ecommerce** for online + * or **pos** for in-person payments. * - * @param processingType Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. + * @param processingType Contains information about how the payment was processed. For example, + * **ecommerce** for online or **pos** for in-person payments. * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard processingType(ProcessingTypeEnum processingType) { @@ -291,8 +310,11 @@ public IssuedCard processingType(ProcessingTypeEnum processingType) { } /** - * Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. - * @return processingType Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. + * Contains information about how the payment was processed. For example, **ecommerce** for online + * or **pos** for in-person payments. + * + * @return processingType Contains information about how the payment was processed. For example, + * **ecommerce** for online or **pos** for in-person payments. */ @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -301,9 +323,11 @@ public ProcessingTypeEnum getProcessingType() { } /** - * Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. + * Contains information about how the payment was processed. For example, **ecommerce** for online + * or **pos** for in-person payments. * - * @param processingType Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. + * @param processingType Contains information about how the payment was processed. For example, + * **ecommerce** for online or **pos** for in-person payments. */ @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -314,7 +338,7 @@ public void setProcessingType(ProcessingTypeEnum processingType) { /** * relayedAuthorisationData * - * @param relayedAuthorisationData + * @param relayedAuthorisationData * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard relayedAuthorisationData(RelayedAuthorisationData relayedAuthorisationData) { @@ -324,7 +348,8 @@ public IssuedCard relayedAuthorisationData(RelayedAuthorisationData relayedAutho /** * Get relayedAuthorisationData - * @return relayedAuthorisationData + * + * @return relayedAuthorisationData */ @JsonProperty(JSON_PROPERTY_RELAYED_AUTHORISATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -335,7 +360,7 @@ public RelayedAuthorisationData getRelayedAuthorisationData() { /** * relayedAuthorisationData * - * @param relayedAuthorisationData + * @param relayedAuthorisationData */ @JsonProperty(JSON_PROPERTY_RELAYED_AUTHORISATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -344,9 +369,17 @@ public void setRelayedAuthorisationData(RelayedAuthorisationData relayedAuthoris } /** - * The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. + * The identifier of the original payment. This ID is provided by the scheme and can be + * alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to + * an original `schemeUniqueTransactionID` provided in an earlier payment (not + * necessarily processed by Adyen). A `schemeTraceId` is typically available for + * authorization adjustments or recurring payments. * - * @param schemeTraceId The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. + * @param schemeTraceId The identifier of the original payment. This ID is provided by the scheme + * and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` + * should refer to an original `schemeUniqueTransactionID` provided in an earlier + * payment (not necessarily processed by Adyen). A `schemeTraceId` is typically + * available for authorization adjustments or recurring payments. * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard schemeTraceId(String schemeTraceId) { @@ -355,8 +388,17 @@ public IssuedCard schemeTraceId(String schemeTraceId) { } /** - * The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. - * @return schemeTraceId The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. + * The identifier of the original payment. This ID is provided by the scheme and can be + * alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to + * an original `schemeUniqueTransactionID` provided in an earlier payment (not + * necessarily processed by Adyen). A `schemeTraceId` is typically available for + * authorization adjustments or recurring payments. + * + * @return schemeTraceId The identifier of the original payment. This ID is provided by the scheme + * and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` + * should refer to an original `schemeUniqueTransactionID` provided in an earlier + * payment (not necessarily processed by Adyen). A `schemeTraceId` is typically + * available for authorization adjustments or recurring payments. */ @JsonProperty(JSON_PROPERTY_SCHEME_TRACE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -365,9 +407,17 @@ public String getSchemeTraceId() { } /** - * The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. + * The identifier of the original payment. This ID is provided by the scheme and can be + * alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to + * an original `schemeUniqueTransactionID` provided in an earlier payment (not + * necessarily processed by Adyen). A `schemeTraceId` is typically available for + * authorization adjustments or recurring payments. * - * @param schemeTraceId The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. + * @param schemeTraceId The identifier of the original payment. This ID is provided by the scheme + * and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` + * should refer to an original `schemeUniqueTransactionID` provided in an earlier + * payment (not necessarily processed by Adyen). A `schemeTraceId` is typically + * available for authorization adjustments or recurring payments. */ @JsonProperty(JSON_PROPERTY_SCHEME_TRACE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -376,9 +426,11 @@ public void setSchemeTraceId(String schemeTraceId) { } /** - * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. + * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending + * on the scheme. * - * @param schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. + * @param schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be + * alphanumeric or numeric depending on the scheme. * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard schemeUniqueTransactionId(String schemeUniqueTransactionId) { @@ -387,8 +439,11 @@ public IssuedCard schemeUniqueTransactionId(String schemeUniqueTransactionId) { } /** - * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. - * @return schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. + * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending + * on the scheme. + * + * @return schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be + * alphanumeric or numeric depending on the scheme. */ @JsonProperty(JSON_PROPERTY_SCHEME_UNIQUE_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -397,9 +452,11 @@ public String getSchemeUniqueTransactionId() { } /** - * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. + * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending + * on the scheme. * - * @param schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. + * @param schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be + * alphanumeric or numeric depending on the scheme. */ @JsonProperty(JSON_PROPERTY_SCHEME_UNIQUE_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -410,7 +467,7 @@ public void setSchemeUniqueTransactionId(String schemeUniqueTransactionId) { /** * threeDSecure * - * @param threeDSecure + * @param threeDSecure * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard threeDSecure(ThreeDSecure threeDSecure) { @@ -420,7 +477,8 @@ public IssuedCard threeDSecure(ThreeDSecure threeDSecure) { /** * Get threeDSecure - * @return threeDSecure + * + * @return threeDSecure */ @JsonProperty(JSON_PROPERTY_THREE_D_SECURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -431,7 +489,7 @@ public ThreeDSecure getThreeDSecure() { /** * threeDSecure * - * @param threeDSecure + * @param threeDSecure */ @JsonProperty(JSON_PROPERTY_THREE_D_SECURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -452,6 +510,7 @@ public IssuedCard type(TypeEnum type) { /** * **issuedCard** + * * @return type **issuedCard** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -472,9 +531,11 @@ public void setType(TypeEnum type) { } /** - * The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * The evaluation of the validation facts. See [validation + * checks](https://docs.adyen.com/issuing/validation-checks) for more information. * - * @param validationFacts The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * @param validationFacts The evaluation of the validation facts. See [validation + * checks](https://docs.adyen.com/issuing/validation-checks) for more information. * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard validationFacts(List validationFacts) { @@ -491,8 +552,11 @@ public IssuedCard addValidationFactsItem(TransferNotificationValidationFact vali } /** - * The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. - * @return validationFacts The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * The evaluation of the validation facts. See [validation + * checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * + * @return validationFacts The evaluation of the validation facts. See [validation + * checks](https://docs.adyen.com/issuing/validation-checks) for more information. */ @JsonProperty(JSON_PROPERTY_VALIDATION_FACTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -501,9 +565,11 @@ public List getValidationFacts() { } /** - * The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * The evaluation of the validation facts. See [validation + * checks](https://docs.adyen.com/issuing/validation-checks) for more information. * - * @param validationFacts The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * @param validationFacts The evaluation of the validation facts. See [validation + * checks](https://docs.adyen.com/issuing/validation-checks) for more information. */ @JsonProperty(JSON_PROPERTY_VALIDATION_FACTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -511,9 +577,7 @@ public void setValidationFacts(List validati this.validationFacts = validationFacts; } - /** - * Return true if this IssuedCard object is equal to o. - */ + /** Return true if this IssuedCard object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -523,20 +587,29 @@ public boolean equals(Object o) { return false; } IssuedCard issuedCard = (IssuedCard) o; - return Objects.equals(this.authorisationType, issuedCard.authorisationType) && - Objects.equals(this.panEntryMode, issuedCard.panEntryMode) && - Objects.equals(this.processingType, issuedCard.processingType) && - Objects.equals(this.relayedAuthorisationData, issuedCard.relayedAuthorisationData) && - Objects.equals(this.schemeTraceId, issuedCard.schemeTraceId) && - Objects.equals(this.schemeUniqueTransactionId, issuedCard.schemeUniqueTransactionId) && - Objects.equals(this.threeDSecure, issuedCard.threeDSecure) && - Objects.equals(this.type, issuedCard.type) && - Objects.equals(this.validationFacts, issuedCard.validationFacts); + return Objects.equals(this.authorisationType, issuedCard.authorisationType) + && Objects.equals(this.panEntryMode, issuedCard.panEntryMode) + && Objects.equals(this.processingType, issuedCard.processingType) + && Objects.equals(this.relayedAuthorisationData, issuedCard.relayedAuthorisationData) + && Objects.equals(this.schemeTraceId, issuedCard.schemeTraceId) + && Objects.equals(this.schemeUniqueTransactionId, issuedCard.schemeUniqueTransactionId) + && Objects.equals(this.threeDSecure, issuedCard.threeDSecure) + && Objects.equals(this.type, issuedCard.type) + && Objects.equals(this.validationFacts, issuedCard.validationFacts); } @Override public int hashCode() { - return Objects.hash(authorisationType, panEntryMode, processingType, relayedAuthorisationData, schemeTraceId, schemeUniqueTransactionId, threeDSecure, type, validationFacts); + return Objects.hash( + authorisationType, + panEntryMode, + processingType, + relayedAuthorisationData, + schemeTraceId, + schemeUniqueTransactionId, + threeDSecure, + type, + validationFacts); } @Override @@ -546,9 +619,13 @@ public String toString() { sb.append(" authorisationType: ").append(toIndentedString(authorisationType)).append("\n"); sb.append(" panEntryMode: ").append(toIndentedString(panEntryMode)).append("\n"); sb.append(" processingType: ").append(toIndentedString(processingType)).append("\n"); - sb.append(" relayedAuthorisationData: ").append(toIndentedString(relayedAuthorisationData)).append("\n"); + sb.append(" relayedAuthorisationData: ") + .append(toIndentedString(relayedAuthorisationData)) + .append("\n"); sb.append(" schemeTraceId: ").append(toIndentedString(schemeTraceId)).append("\n"); - sb.append(" schemeUniqueTransactionId: ").append(toIndentedString(schemeUniqueTransactionId)).append("\n"); + sb.append(" schemeUniqueTransactionId: ") + .append(toIndentedString(schemeUniqueTransactionId)) + .append("\n"); sb.append(" threeDSecure: ").append(toIndentedString(threeDSecure)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" validationFacts: ").append(toIndentedString(validationFacts)).append("\n"); @@ -557,8 +634,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -567,7 +643,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of IssuedCard given an JSON string * * @param jsonString JSON string @@ -577,11 +653,12 @@ private String toIndentedString(Object o) { public static IssuedCard fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, IssuedCard.class); } -/** - * Convert an instance of IssuedCard to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of IssuedCard to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/IssuingTransactionData.java b/src/main/java/com/adyen/model/transfers/IssuingTransactionData.java index 416038452..cc29e4052 100644 --- a/src/main/java/com/adyen/model/transfers/IssuingTransactionData.java +++ b/src/main/java/com/adyen/model/transfers/IssuingTransactionData.java @@ -2,45 +2,39 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * IssuingTransactionData - */ +/** IssuingTransactionData */ @JsonPropertyOrder({ IssuingTransactionData.JSON_PROPERTY_CAPTURE_CYCLE_ID, IssuingTransactionData.JSON_PROPERTY_TYPE }) - public class IssuingTransactionData { public static final String JSON_PROPERTY_CAPTURE_CYCLE_ID = "captureCycleId"; private String captureCycleId; /** - * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction data + * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction + * data */ public enum TypeEnum { - ISSUINGTRANSACTIONDATA(String.valueOf("issuingTransactionData")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +42,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +63,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,8 +75,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public IssuingTransactionData() { - } + public IssuingTransactionData() {} /** * captureCycleId associated with transfer event. @@ -93,6 +90,7 @@ public IssuingTransactionData captureCycleId(String captureCycleId) { /** * captureCycleId associated with transfer event. + * * @return captureCycleId captureCycleId associated with transfer event. */ @JsonProperty(JSON_PROPERTY_CAPTURE_CYCLE_ID) @@ -113,9 +111,11 @@ public void setCaptureCycleId(String captureCycleId) { } /** - * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction data + * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction + * data * - * @param type The type of events data. Possible values: - **issuingTransactionData**: issuing transaction data + * @param type The type of events data. Possible values: - **issuingTransactionData**: issuing + * transaction data * @return the current {@code IssuingTransactionData} instance, allowing for method chaining */ public IssuingTransactionData type(TypeEnum type) { @@ -124,8 +124,11 @@ public IssuingTransactionData type(TypeEnum type) { } /** - * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction data - * @return type The type of events data. Possible values: - **issuingTransactionData**: issuing transaction data + * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction + * data + * + * @return type The type of events data. Possible values: - **issuingTransactionData**: issuing + * transaction data */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -134,9 +137,11 @@ public TypeEnum getType() { } /** - * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction data + * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction + * data * - * @param type The type of events data. Possible values: - **issuingTransactionData**: issuing transaction data + * @param type The type of events data. Possible values: - **issuingTransactionData**: issuing + * transaction data */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,9 +149,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this IssuingTransactionData object is equal to o. - */ + /** Return true if this IssuingTransactionData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +159,8 @@ public boolean equals(Object o) { return false; } IssuingTransactionData issuingTransactionData = (IssuingTransactionData) o; - return Objects.equals(this.captureCycleId, issuingTransactionData.captureCycleId) && - Objects.equals(this.type, issuingTransactionData.type); + return Objects.equals(this.captureCycleId, issuingTransactionData.captureCycleId) + && Objects.equals(this.type, issuingTransactionData.type); } @Override @@ -176,8 +179,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +188,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of IssuingTransactionData given an JSON string * * @param jsonString JSON string * @return An instance of IssuingTransactionData - * @throws JsonProcessingException if the JSON string is invalid with respect to IssuingTransactionData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * IssuingTransactionData */ public static IssuingTransactionData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, IssuingTransactionData.class); } -/** - * Convert an instance of IssuingTransactionData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of IssuingTransactionData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/JSON.java b/src/main/java/com/adyen/model/transfers/JSON.java index 547fc7ca8..a2553c3ed 100644 --- a/src/main/java/com/adyen/model/transfers/JSON.java +++ b/src/main/java/com/adyen/model/transfers/JSON.java @@ -1,21 +1,18 @@ package com.adyen.model.transfers; -import com.adyen.serializer.ByteArraySerializer; import com.adyen.serializer.ByteArrayDeserializer; +import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import com.adyen.model.transfers.*; - +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -40,6 +37,7 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. + * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -56,11 +54,13 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { return mapper; } + public static ObjectMapper getMapper() { + return mapper; + } /** - * Returns the target model class that should be used to deserialize the input data. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,9 +73,7 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** - * Helper class to register the discriminator mappings. - */ + /** Helper class to register the discriminator mappings. */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -117,9 +115,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. - * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. This + * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -164,13 +162,14 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, - * so it's not possible to use the instanceof keyword. + *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so + * it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf( + Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -194,59 +193,58 @@ public static boolean isInstanceOf(Class modelClass, Object inst, Set, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); + /** A map of discriminators for all model classes. */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = + new HashMap, ClassDiscriminatorMapping>(); - /** - * A map of oneOf/anyOf descendants for each model class. - */ + /** A map of oneOf/anyOf descendants for each model class. */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator( + Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = + new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants(Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants( + Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static - { + static { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/transfers/Leg.java b/src/main/java/com/adyen/model/transfers/Leg.java index 489203317..071f3c00e 100644 --- a/src/main/java/com/adyen/model/transfers/Leg.java +++ b/src/main/java/com/adyen/model/transfers/Leg.java @@ -2,31 +2,22 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Leg - */ +/** Leg */ @JsonPropertyOrder({ Leg.JSON_PROPERTY_ARRIVAL_AIRPORT_CODE, Leg.JSON_PROPERTY_BASIC_FARE_CODE, @@ -35,7 +26,6 @@ Leg.JSON_PROPERTY_DEPARTURE_DATE, Leg.JSON_PROPERTY_FLIGHT_NUMBER }) - public class Leg { public static final String JSON_PROPERTY_ARRIVAL_AIRPORT_CODE = "arrivalAirportCode"; private String arrivalAirportCode; @@ -55,13 +45,14 @@ public class Leg { public static final String JSON_PROPERTY_FLIGHT_NUMBER = "flightNumber"; private String flightNumber; - public Leg() { - } + public Leg() {} /** - * The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. + * The IATA 3-letter airport code of the destination airport. This field is required if the + * airline data includes leg details. * - * @param arrivalAirportCode The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. + * @param arrivalAirportCode The IATA 3-letter airport code of the destination airport. This field + * is required if the airline data includes leg details. * @return the current {@code Leg} instance, allowing for method chaining */ public Leg arrivalAirportCode(String arrivalAirportCode) { @@ -70,8 +61,11 @@ public Leg arrivalAirportCode(String arrivalAirportCode) { } /** - * The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. - * @return arrivalAirportCode The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. + * The IATA 3-letter airport code of the destination airport. This field is required if the + * airline data includes leg details. + * + * @return arrivalAirportCode The IATA 3-letter airport code of the destination airport. This + * field is required if the airline data includes leg details. */ @JsonProperty(JSON_PROPERTY_ARRIVAL_AIRPORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,9 +74,11 @@ public String getArrivalAirportCode() { } /** - * The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. + * The IATA 3-letter airport code of the destination airport. This field is required if the + * airline data includes leg details. * - * @param arrivalAirportCode The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. + * @param arrivalAirportCode The IATA 3-letter airport code of the destination airport. This field + * is required if the airline data includes leg details. */ @JsonProperty(JSON_PROPERTY_ARRIVAL_AIRPORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -103,6 +99,7 @@ public Leg basicFareCode(String basicFareCode) { /** * The basic fare code for this leg. + * * @return basicFareCode The basic fare code for this leg. */ @JsonProperty(JSON_PROPERTY_BASIC_FARE_CODE) @@ -135,6 +132,7 @@ public Leg carrierCode(String carrierCode) { /** * IATA code of the carrier operating the flight. + * * @return carrierCode IATA code of the carrier operating the flight. */ @JsonProperty(JSON_PROPERTY_CARRIER_CODE) @@ -155,9 +153,11 @@ public void setCarrierCode(String carrierCode) { } /** - * The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details + * The IATA three-letter airport code of the departure airport. This field is required if the + * airline data includes leg details * - * @param departureAirportCode The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details + * @param departureAirportCode The IATA three-letter airport code of the departure airport. This + * field is required if the airline data includes leg details * @return the current {@code Leg} instance, allowing for method chaining */ public Leg departureAirportCode(String departureAirportCode) { @@ -166,8 +166,11 @@ public Leg departureAirportCode(String departureAirportCode) { } /** - * The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details - * @return departureAirportCode The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details + * The IATA three-letter airport code of the departure airport. This field is required if the + * airline data includes leg details + * + * @return departureAirportCode The IATA three-letter airport code of the departure airport. This + * field is required if the airline data includes leg details */ @JsonProperty(JSON_PROPERTY_DEPARTURE_AIRPORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,9 +179,11 @@ public String getDepartureAirportCode() { } /** - * The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details + * The IATA three-letter airport code of the departure airport. This field is required if the + * airline data includes leg details * - * @param departureAirportCode The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details + * @param departureAirportCode The IATA three-letter airport code of the departure airport. This + * field is required if the airline data includes leg details */ @JsonProperty(JSON_PROPERTY_DEPARTURE_AIRPORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -199,6 +204,7 @@ public Leg departureDate(String departureDate) { /** * The flight departure date. + * * @return departureDate The flight departure date. */ @JsonProperty(JSON_PROPERTY_DEPARTURE_DATE) @@ -231,6 +237,7 @@ public Leg flightNumber(String flightNumber) { /** * The flight identifier. + * * @return flightNumber The flight identifier. */ @JsonProperty(JSON_PROPERTY_FLIGHT_NUMBER) @@ -250,9 +257,7 @@ public void setFlightNumber(String flightNumber) { this.flightNumber = flightNumber; } - /** - * Return true if this Leg object is equal to o. - */ + /** Return true if this Leg object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -262,17 +267,23 @@ public boolean equals(Object o) { return false; } Leg leg = (Leg) o; - return Objects.equals(this.arrivalAirportCode, leg.arrivalAirportCode) && - Objects.equals(this.basicFareCode, leg.basicFareCode) && - Objects.equals(this.carrierCode, leg.carrierCode) && - Objects.equals(this.departureAirportCode, leg.departureAirportCode) && - Objects.equals(this.departureDate, leg.departureDate) && - Objects.equals(this.flightNumber, leg.flightNumber); + return Objects.equals(this.arrivalAirportCode, leg.arrivalAirportCode) + && Objects.equals(this.basicFareCode, leg.basicFareCode) + && Objects.equals(this.carrierCode, leg.carrierCode) + && Objects.equals(this.departureAirportCode, leg.departureAirportCode) + && Objects.equals(this.departureDate, leg.departureDate) + && Objects.equals(this.flightNumber, leg.flightNumber); } @Override public int hashCode() { - return Objects.hash(arrivalAirportCode, basicFareCode, carrierCode, departureAirportCode, departureDate, flightNumber); + return Objects.hash( + arrivalAirportCode, + basicFareCode, + carrierCode, + departureAirportCode, + departureDate, + flightNumber); } @Override @@ -282,7 +293,9 @@ public String toString() { sb.append(" arrivalAirportCode: ").append(toIndentedString(arrivalAirportCode)).append("\n"); sb.append(" basicFareCode: ").append(toIndentedString(basicFareCode)).append("\n"); sb.append(" carrierCode: ").append(toIndentedString(carrierCode)).append("\n"); - sb.append(" departureAirportCode: ").append(toIndentedString(departureAirportCode)).append("\n"); + sb.append(" departureAirportCode: ") + .append(toIndentedString(departureAirportCode)) + .append("\n"); sb.append(" departureDate: ").append(toIndentedString(departureDate)).append("\n"); sb.append(" flightNumber: ").append(toIndentedString(flightNumber)).append("\n"); sb.append("}"); @@ -290,8 +303,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -300,7 +312,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Leg given an JSON string * * @param jsonString JSON string @@ -310,11 +322,12 @@ private String toIndentedString(Object o) { public static Leg fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Leg.class); } -/** - * Convert an instance of Leg to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Leg to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/Link.java b/src/main/java/com/adyen/model/transfers/Link.java index 28f04adb9..592e82816 100644 --- a/src/main/java/com/adyen/model/transfers/Link.java +++ b/src/main/java/com/adyen/model/transfers/Link.java @@ -2,41 +2,28 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Link - */ -@JsonPropertyOrder({ - Link.JSON_PROPERTY_HREF -}) - +/** Link */ +@JsonPropertyOrder({Link.JSON_PROPERTY_HREF}) public class Link { public static final String JSON_PROPERTY_HREF = "href"; private String href; - public Link() { - } + public Link() {} /** * The link to the resource. @@ -51,6 +38,7 @@ public Link href(String href) { /** * The link to the resource. + * * @return href The link to the resource. */ @JsonProperty(JSON_PROPERTY_HREF) @@ -70,9 +58,7 @@ public void setHref(String href) { this.href = href; } - /** - * Return true if this Link object is equal to o. - */ + /** Return true if this Link object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,7 +95,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Link given an JSON string * * @param jsonString JSON string @@ -120,11 +105,12 @@ private String toIndentedString(Object o) { public static Link fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Link.class); } -/** - * Convert an instance of Link to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Link to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/Links.java b/src/main/java/com/adyen/model/transfers/Links.java index d84e88245..c1bf6d0d9 100644 --- a/src/main/java/com/adyen/model/transfers/Links.java +++ b/src/main/java/com/adyen/model/transfers/Links.java @@ -2,37 +2,23 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.Link; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Links - */ -@JsonPropertyOrder({ - Links.JSON_PROPERTY_NEXT, - Links.JSON_PROPERTY_PREV -}) - +/** Links */ +@JsonPropertyOrder({Links.JSON_PROPERTY_NEXT, Links.JSON_PROPERTY_PREV}) public class Links { public static final String JSON_PROPERTY_NEXT = "next"; private Link next; @@ -40,13 +26,12 @@ public class Links { public static final String JSON_PROPERTY_PREV = "prev"; private Link prev; - public Links() { - } + public Links() {} /** * next * - * @param next + * @param next * @return the current {@code Links} instance, allowing for method chaining */ public Links next(Link next) { @@ -56,7 +41,8 @@ public Links next(Link next) { /** * Get next - * @return next + * + * @return next */ @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -67,7 +53,7 @@ public Link getNext() { /** * next * - * @param next + * @param next */ @JsonProperty(JSON_PROPERTY_NEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -78,7 +64,7 @@ public void setNext(Link next) { /** * prev * - * @param prev + * @param prev * @return the current {@code Links} instance, allowing for method chaining */ public Links prev(Link prev) { @@ -88,7 +74,8 @@ public Links prev(Link prev) { /** * Get prev - * @return prev + * + * @return prev */ @JsonProperty(JSON_PROPERTY_PREV) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,7 +86,7 @@ public Link getPrev() { /** * prev * - * @param prev + * @param prev */ @JsonProperty(JSON_PROPERTY_PREV) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,9 +94,7 @@ public void setPrev(Link prev) { this.prev = prev; } - /** - * Return true if this Links object is equal to o. - */ + /** Return true if this Links object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -119,8 +104,7 @@ public boolean equals(Object o) { return false; } Links links = (Links) o; - return Objects.equals(this.next, links.next) && - Objects.equals(this.prev, links.prev); + return Objects.equals(this.next, links.next) && Objects.equals(this.prev, links.prev); } @Override @@ -139,8 +123,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -149,7 +132,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Links given an JSON string * * @param jsonString JSON string @@ -159,11 +142,12 @@ private String toIndentedString(Object o) { public static Links fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Links.class); } -/** - * Convert an instance of Links to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Links to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/Lodging.java b/src/main/java/com/adyen/model/transfers/Lodging.java index 0052ae50c..8016fcb7e 100644 --- a/src/main/java/com/adyen/model/transfers/Lodging.java +++ b/src/main/java/com/adyen/model/transfers/Lodging.java @@ -2,36 +2,23 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Lodging - */ -@JsonPropertyOrder({ - Lodging.JSON_PROPERTY_CHECK_IN_DATE, - Lodging.JSON_PROPERTY_NUMBER_OF_NIGHTS -}) - +/** Lodging */ +@JsonPropertyOrder({Lodging.JSON_PROPERTY_CHECK_IN_DATE, Lodging.JSON_PROPERTY_NUMBER_OF_NIGHTS}) public class Lodging { public static final String JSON_PROPERTY_CHECK_IN_DATE = "checkInDate"; private String checkInDate; @@ -39,8 +26,7 @@ public class Lodging { public static final String JSON_PROPERTY_NUMBER_OF_NIGHTS = "numberOfNights"; private Integer numberOfNights; - public Lodging() { - } + public Lodging() {} /** * The check-in date. @@ -55,6 +41,7 @@ public Lodging checkInDate(String checkInDate) { /** * The check-in date. + * * @return checkInDate The check-in date. */ @JsonProperty(JSON_PROPERTY_CHECK_IN_DATE) @@ -87,6 +74,7 @@ public Lodging numberOfNights(Integer numberOfNights) { /** * The total number of nights the room is booked for. + * * @return numberOfNights The total number of nights the room is booked for. */ @JsonProperty(JSON_PROPERTY_NUMBER_OF_NIGHTS) @@ -106,9 +94,7 @@ public void setNumberOfNights(Integer numberOfNights) { this.numberOfNights = numberOfNights; } - /** - * Return true if this Lodging object is equal to o. - */ + /** Return true if this Lodging object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +104,8 @@ public boolean equals(Object o) { return false; } Lodging lodging = (Lodging) o; - return Objects.equals(this.checkInDate, lodging.checkInDate) && - Objects.equals(this.numberOfNights, lodging.numberOfNights); + return Objects.equals(this.checkInDate, lodging.checkInDate) + && Objects.equals(this.numberOfNights, lodging.numberOfNights); } @Override @@ -138,8 +124,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +133,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Lodging given an JSON string * * @param jsonString JSON string @@ -158,11 +143,12 @@ private String toIndentedString(Object o) { public static Lodging fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Lodging.class); } -/** - * Convert an instance of Lodging to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Lodging to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/MerchantData.java b/src/main/java/com/adyen/model/transfers/MerchantData.java index 41f070b0b..7882d73b7 100644 --- a/src/main/java/com/adyen/model/transfers/MerchantData.java +++ b/src/main/java/com/adyen/model/transfers/MerchantData.java @@ -2,32 +2,22 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.NameLocation; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * MerchantData - */ +/** MerchantData */ @JsonPropertyOrder({ MerchantData.JSON_PROPERTY_ACQUIRER_ID, MerchantData.JSON_PROPERTY_MCC, @@ -35,7 +25,6 @@ MerchantData.JSON_PROPERTY_NAME_LOCATION, MerchantData.JSON_PROPERTY_POSTAL_CODE }) - public class MerchantData { public static final String JSON_PROPERTY_ACQUIRER_ID = "acquirerId"; private String acquirerId; @@ -52,8 +41,7 @@ public class MerchantData { public static final String JSON_PROPERTY_POSTAL_CODE = "postalCode"; private String postalCode; - public MerchantData() { - } + public MerchantData() {} /** * The unique identifier of the merchant's acquirer. @@ -68,6 +56,7 @@ public MerchantData acquirerId(String acquirerId) { /** * The unique identifier of the merchant's acquirer. + * * @return acquirerId The unique identifier of the merchant's acquirer. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_ID) @@ -100,6 +89,7 @@ public MerchantData mcc(String mcc) { /** * The merchant category code. + * * @return mcc The merchant category code. */ @JsonProperty(JSON_PROPERTY_MCC) @@ -132,6 +122,7 @@ public MerchantData merchantId(String merchantId) { /** * The unique identifier of the merchant. + * * @return merchantId The unique identifier of the merchant. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @@ -154,7 +145,7 @@ public void setMerchantId(String merchantId) { /** * nameLocation * - * @param nameLocation + * @param nameLocation * @return the current {@code MerchantData} instance, allowing for method chaining */ public MerchantData nameLocation(NameLocation nameLocation) { @@ -164,7 +155,8 @@ public MerchantData nameLocation(NameLocation nameLocation) { /** * Get nameLocation - * @return nameLocation + * + * @return nameLocation */ @JsonProperty(JSON_PROPERTY_NAME_LOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -175,7 +167,7 @@ public NameLocation getNameLocation() { /** * nameLocation * - * @param nameLocation + * @param nameLocation */ @JsonProperty(JSON_PROPERTY_NAME_LOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -196,6 +188,7 @@ public MerchantData postalCode(String postalCode) { /** * The postal code of the merchant. + * * @return postalCode The postal code of the merchant. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @@ -215,9 +208,7 @@ public void setPostalCode(String postalCode) { this.postalCode = postalCode; } - /** - * Return true if this MerchantData object is equal to o. - */ + /** Return true if this MerchantData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -227,11 +218,11 @@ public boolean equals(Object o) { return false; } MerchantData merchantData = (MerchantData) o; - return Objects.equals(this.acquirerId, merchantData.acquirerId) && - Objects.equals(this.mcc, merchantData.mcc) && - Objects.equals(this.merchantId, merchantData.merchantId) && - Objects.equals(this.nameLocation, merchantData.nameLocation) && - Objects.equals(this.postalCode, merchantData.postalCode); + return Objects.equals(this.acquirerId, merchantData.acquirerId) + && Objects.equals(this.mcc, merchantData.mcc) + && Objects.equals(this.merchantId, merchantData.merchantId) + && Objects.equals(this.nameLocation, merchantData.nameLocation) + && Objects.equals(this.postalCode, merchantData.postalCode); } @Override @@ -253,8 +244,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -263,7 +253,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of MerchantData given an JSON string * * @param jsonString JSON string @@ -273,11 +263,12 @@ private String toIndentedString(Object o) { public static MerchantData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MerchantData.class); } -/** - * Convert an instance of MerchantData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of MerchantData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/MerchantPurchaseData.java b/src/main/java/com/adyen/model/transfers/MerchantPurchaseData.java index 7c38f3159..0346fb7a5 100644 --- a/src/main/java/com/adyen/model/transfers/MerchantPurchaseData.java +++ b/src/main/java/com/adyen/model/transfers/MerchantPurchaseData.java @@ -2,41 +2,33 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.Airline; -import com.adyen.model.transfers.Lodging; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * MerchantPurchaseData - */ +/** MerchantPurchaseData */ @JsonPropertyOrder({ MerchantPurchaseData.JSON_PROPERTY_AIRLINE, MerchantPurchaseData.JSON_PROPERTY_LODGING, MerchantPurchaseData.JSON_PROPERTY_TYPE }) - public class MerchantPurchaseData { public static final String JSON_PROPERTY_AIRLINE = "airline"; private Airline airline; @@ -45,10 +37,9 @@ public class MerchantPurchaseData { private List lodging; /** - * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data + * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data */ public enum TypeEnum { - MERCHANTPURCHASEDATA(String.valueOf("merchantPurchaseData")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -56,7 +47,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -77,7 +68,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -85,13 +80,12 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public MerchantPurchaseData() { - } + public MerchantPurchaseData() {} /** * airline * - * @param airline + * @param airline * @return the current {@code MerchantPurchaseData} instance, allowing for method chaining */ public MerchantPurchaseData airline(Airline airline) { @@ -101,7 +95,8 @@ public MerchantPurchaseData airline(Airline airline) { /** * Get airline - * @return airline + * + * @return airline */ @JsonProperty(JSON_PROPERTY_AIRLINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,7 +107,7 @@ public Airline getAirline() { /** * airline * - * @param airline + * @param airline */ @JsonProperty(JSON_PROPERTY_AIRLINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -141,6 +136,7 @@ public MerchantPurchaseData addLodgingItem(Lodging lodgingItem) { /** * Lodging information. + * * @return lodging Lodging information. */ @JsonProperty(JSON_PROPERTY_LODGING) @@ -161,9 +157,10 @@ public void setLodging(List lodging) { } /** - * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data + * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data * - * @param type The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data + * @param type The type of events data. Possible values: - **merchantPurchaseData**: merchant + * purchase data * @return the current {@code MerchantPurchaseData} instance, allowing for method chaining */ public MerchantPurchaseData type(TypeEnum type) { @@ -172,8 +169,10 @@ public MerchantPurchaseData type(TypeEnum type) { } /** - * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data - * @return type The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data + * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data + * + * @return type The type of events data. Possible values: - **merchantPurchaseData**: merchant + * purchase data */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,9 +181,10 @@ public TypeEnum getType() { } /** - * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data + * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data * - * @param type The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data + * @param type The type of events data. Possible values: - **merchantPurchaseData**: merchant + * purchase data */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,9 +192,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this MerchantPurchaseData object is equal to o. - */ + /** Return true if this MerchantPurchaseData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -204,9 +202,9 @@ public boolean equals(Object o) { return false; } MerchantPurchaseData merchantPurchaseData = (MerchantPurchaseData) o; - return Objects.equals(this.airline, merchantPurchaseData.airline) && - Objects.equals(this.lodging, merchantPurchaseData.lodging) && - Objects.equals(this.type, merchantPurchaseData.type); + return Objects.equals(this.airline, merchantPurchaseData.airline) + && Objects.equals(this.lodging, merchantPurchaseData.lodging) + && Objects.equals(this.type, merchantPurchaseData.type); } @Override @@ -226,8 +224,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -236,21 +233,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of MerchantPurchaseData given an JSON string * * @param jsonString JSON string * @return An instance of MerchantPurchaseData - * @throws JsonProcessingException if the JSON string is invalid with respect to MerchantPurchaseData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * MerchantPurchaseData */ public static MerchantPurchaseData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MerchantPurchaseData.class); } -/** - * Convert an instance of MerchantPurchaseData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of MerchantPurchaseData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/Modification.java b/src/main/java/com/adyen/model/transfers/Modification.java index e5e4b9ab9..8a9da3129 100644 --- a/src/main/java/com/adyen/model/transfers/Modification.java +++ b/src/main/java/com/adyen/model/transfers/Modification.java @@ -2,31 +2,26 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * Modification - */ +/** Modification */ @JsonPropertyOrder({ Modification.JSON_PROPERTY_DIRECTION, Modification.JSON_PROPERTY_ID, @@ -34,7 +29,6 @@ Modification.JSON_PROPERTY_STATUS, Modification.JSON_PROPERTY_TYPE }) - public class Modification { public static final String JSON_PROPERTY_DIRECTION = "direction"; private String direction; @@ -45,11 +39,8 @@ public class Modification { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - /** - * The status of the transfer event. - */ + /** The status of the transfer event. */ public enum StatusEnum { - APPROVALPENDING(String.valueOf("approvalPending")), ATMWITHDRAWAL(String.valueOf("atmWithdrawal")), @@ -189,7 +180,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -210,7 +201,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -221,8 +216,7 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public Modification() { - } + public Modification() {} /** * The direction of the money movement. @@ -237,6 +231,7 @@ public Modification direction(String direction) { /** * The direction of the money movement. + * * @return direction The direction of the money movement. */ @JsonProperty(JSON_PROPERTY_DIRECTION) @@ -269,6 +264,7 @@ public Modification id(String id) { /** * Our reference for the modification. + * * @return id Our reference for the modification. */ @JsonProperty(JSON_PROPERTY_ID) @@ -301,6 +297,7 @@ public Modification reference(String reference) { /** * Your reference for the modification, used internally within your platform. + * * @return reference Your reference for the modification, used internally within your platform. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -333,6 +330,7 @@ public Modification status(StatusEnum status) { /** * The status of the transfer event. + * * @return status The status of the transfer event. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -365,6 +363,7 @@ public Modification type(String type) { /** * The type of transfer modification. + * * @return type The type of transfer modification. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -384,9 +383,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this Modification object is equal to o. - */ + /** Return true if this Modification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -396,11 +393,11 @@ public boolean equals(Object o) { return false; } Modification modification = (Modification) o; - return Objects.equals(this.direction, modification.direction) && - Objects.equals(this.id, modification.id) && - Objects.equals(this.reference, modification.reference) && - Objects.equals(this.status, modification.status) && - Objects.equals(this.type, modification.type); + return Objects.equals(this.direction, modification.direction) + && Objects.equals(this.id, modification.id) + && Objects.equals(this.reference, modification.reference) + && Objects.equals(this.status, modification.status) + && Objects.equals(this.type, modification.type); } @Override @@ -422,8 +419,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -432,7 +428,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Modification given an JSON string * * @param jsonString JSON string @@ -442,11 +438,12 @@ private String toIndentedString(Object o) { public static Modification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Modification.class); } -/** - * Convert an instance of Modification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Modification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/NOLocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/NOLocalAccountIdentification.java index ce84c54fd..747425477 100644 --- a/src/main/java/com/adyen/model/transfers/NOLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/NOLocalAccountIdentification.java @@ -2,45 +2,36 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * NOLocalAccountIdentification - */ +/** NOLocalAccountIdentification */ @JsonPropertyOrder({ NOLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, NOLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class NOLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - /** - * **noLocal** - */ + /** **noLocal** */ public enum TypeEnum { - NOLOCAL(String.valueOf("noLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +39,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,8 +72,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public NOLocalAccountIdentification() { - } + public NOLocalAccountIdentification() {} /** * The 11-digit bank account number, without separators or whitespace. @@ -93,6 +87,7 @@ public NOLocalAccountIdentification accountNumber(String accountNumber) { /** * The 11-digit bank account number, without separators or whitespace. + * * @return accountNumber The 11-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -125,6 +120,7 @@ public NOLocalAccountIdentification type(TypeEnum type) { /** * **noLocal** + * * @return type **noLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -144,9 +140,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this NOLocalAccountIdentification object is equal to o. - */ + /** Return true if this NOLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +150,8 @@ public boolean equals(Object o) { return false; } NOLocalAccountIdentification noLocalAccountIdentification = (NOLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, noLocalAccountIdentification.accountNumber) && - Objects.equals(this.type, noLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, noLocalAccountIdentification.accountNumber) + && Objects.equals(this.type, noLocalAccountIdentification.type); } @Override @@ -176,8 +170,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +179,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of NOLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of NOLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to NOLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * NOLocalAccountIdentification */ - public static NOLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static NOLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NOLocalAccountIdentification.class); } -/** - * Convert an instance of NOLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of NOLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/NZLocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/NZLocalAccountIdentification.java index 1574141ae..645db8365 100644 --- a/src/main/java/com/adyen/model/transfers/NZLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/NZLocalAccountIdentification.java @@ -2,45 +2,36 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * NZLocalAccountIdentification - */ +/** NZLocalAccountIdentification */ @JsonPropertyOrder({ NZLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, NZLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class NZLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - /** - * **nzLocal** - */ + /** **nzLocal** */ public enum TypeEnum { - NZLOCAL(String.valueOf("nzLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +39,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,13 +72,16 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public NZLocalAccountIdentification() { - } + public NZLocalAccountIdentification() {} /** - * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. + * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits + * are the branch number, the next 7 digits are the account number, and the final 2-3 digits are + * the suffix. * - * @param accountNumber The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. + * @param accountNumber The 15-16 digit bank account number. The first 2 digits are the bank + * number, the next 4 digits are the branch number, the next 7 digits are the account number, + * and the final 2-3 digits are the suffix. * @return the current {@code NZLocalAccountIdentification} instance, allowing for method chaining */ public NZLocalAccountIdentification accountNumber(String accountNumber) { @@ -92,8 +90,13 @@ public NZLocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. - * @return accountNumber The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. + * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits + * are the branch number, the next 7 digits are the account number, and the final 2-3 digits are + * the suffix. + * + * @return accountNumber The 15-16 digit bank account number. The first 2 digits are the bank + * number, the next 4 digits are the branch number, the next 7 digits are the account number, + * and the final 2-3 digits are the suffix. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,9 +105,13 @@ public String getAccountNumber() { } /** - * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. + * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits + * are the branch number, the next 7 digits are the account number, and the final 2-3 digits are + * the suffix. * - * @param accountNumber The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. + * @param accountNumber The 15-16 digit bank account number. The first 2 digits are the bank + * number, the next 4 digits are the branch number, the next 7 digits are the account number, + * and the final 2-3 digits are the suffix. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,6 +132,7 @@ public NZLocalAccountIdentification type(TypeEnum type) { /** * **nzLocal** + * * @return type **nzLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -144,9 +152,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this NZLocalAccountIdentification object is equal to o. - */ + /** Return true if this NZLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +162,8 @@ public boolean equals(Object o) { return false; } NZLocalAccountIdentification nzLocalAccountIdentification = (NZLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, nzLocalAccountIdentification.accountNumber) && - Objects.equals(this.type, nzLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, nzLocalAccountIdentification.accountNumber) + && Objects.equals(this.type, nzLocalAccountIdentification.type); } @Override @@ -176,8 +182,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +191,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of NZLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of NZLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to NZLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * NZLocalAccountIdentification */ - public static NZLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static NZLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NZLocalAccountIdentification.class); } -/** - * Convert an instance of NZLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of NZLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/NameLocation.java b/src/main/java/com/adyen/model/transfers/NameLocation.java index 86f9df50e..b353fe954 100644 --- a/src/main/java/com/adyen/model/transfers/NameLocation.java +++ b/src/main/java/com/adyen/model/transfers/NameLocation.java @@ -2,31 +2,22 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * NameLocation - */ +/** NameLocation */ @JsonPropertyOrder({ NameLocation.JSON_PROPERTY_CITY, NameLocation.JSON_PROPERTY_COUNTRY, @@ -35,7 +26,6 @@ NameLocation.JSON_PROPERTY_RAW_DATA, NameLocation.JSON_PROPERTY_STATE }) - public class NameLocation { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -55,8 +45,7 @@ public class NameLocation { public static final String JSON_PROPERTY_STATE = "state"; private String state; - public NameLocation() { - } + public NameLocation() {} /** * The city where the merchant is located. @@ -71,6 +60,7 @@ public NameLocation city(String city) { /** * The city where the merchant is located. + * * @return city The city where the merchant is located. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -91,9 +81,11 @@ public void setCity(String city) { } /** - * The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. + * The country where the merchant is located in [three-letter country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. * - * @param country The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. + * @param country The country where the merchant is located in [three-letter country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. * @return the current {@code NameLocation} instance, allowing for method chaining */ public NameLocation country(String country) { @@ -102,8 +94,11 @@ public NameLocation country(String country) { } /** - * The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. - * @return country The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. + * The country where the merchant is located in [three-letter country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. + * + * @return country The country where the merchant is located in [three-letter country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,9 +107,11 @@ public String getCountry() { } /** - * The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. + * The country where the merchant is located in [three-letter country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. * - * @param country The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. + * @param country The country where the merchant is located in [three-letter country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,9 +120,13 @@ public void setCountry(String country) { } /** - * The home country in [three-digit country code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled merchants such as embassies. + * The home country in [three-digit country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled + * merchants such as embassies. * - * @param countryOfOrigin The home country in [three-digit country code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled merchants such as embassies. + * @param countryOfOrigin The home country in [three-digit country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for + * government-controlled merchants such as embassies. * @return the current {@code NameLocation} instance, allowing for method chaining */ public NameLocation countryOfOrigin(String countryOfOrigin) { @@ -134,8 +135,13 @@ public NameLocation countryOfOrigin(String countryOfOrigin) { } /** - * The home country in [three-digit country code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled merchants such as embassies. - * @return countryOfOrigin The home country in [three-digit country code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled merchants such as embassies. + * The home country in [three-digit country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled + * merchants such as embassies. + * + * @return countryOfOrigin The home country in [three-digit country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for + * government-controlled merchants such as embassies. */ @JsonProperty(JSON_PROPERTY_COUNTRY_OF_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,9 +150,13 @@ public String getCountryOfOrigin() { } /** - * The home country in [three-digit country code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled merchants such as embassies. + * The home country in [three-digit country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled + * merchants such as embassies. * - * @param countryOfOrigin The home country in [three-digit country code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled merchants such as embassies. + * @param countryOfOrigin The home country in [three-digit country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for + * government-controlled merchants such as embassies. */ @JsonProperty(JSON_PROPERTY_COUNTRY_OF_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,6 +177,7 @@ public NameLocation name(String name) { /** * The name of the merchant's shop or service. + * * @return name The name of the merchant's shop or service. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -199,6 +210,7 @@ public NameLocation rawData(String rawData) { /** * The raw data. + * * @return rawData The raw data. */ @JsonProperty(JSON_PROPERTY_RAW_DATA) @@ -231,6 +243,7 @@ public NameLocation state(String state) { /** * The state where the merchant is located. + * * @return state The state where the merchant is located. */ @JsonProperty(JSON_PROPERTY_STATE) @@ -250,9 +263,7 @@ public void setState(String state) { this.state = state; } - /** - * Return true if this NameLocation object is equal to o. - */ + /** Return true if this NameLocation object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -262,12 +273,12 @@ public boolean equals(Object o) { return false; } NameLocation nameLocation = (NameLocation) o; - return Objects.equals(this.city, nameLocation.city) && - Objects.equals(this.country, nameLocation.country) && - Objects.equals(this.countryOfOrigin, nameLocation.countryOfOrigin) && - Objects.equals(this.name, nameLocation.name) && - Objects.equals(this.rawData, nameLocation.rawData) && - Objects.equals(this.state, nameLocation.state); + return Objects.equals(this.city, nameLocation.city) + && Objects.equals(this.country, nameLocation.country) + && Objects.equals(this.countryOfOrigin, nameLocation.countryOfOrigin) + && Objects.equals(this.name, nameLocation.name) + && Objects.equals(this.rawData, nameLocation.rawData) + && Objects.equals(this.state, nameLocation.state); } @Override @@ -290,8 +301,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -300,7 +310,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of NameLocation given an JSON string * * @param jsonString JSON string @@ -310,11 +320,12 @@ private String toIndentedString(Object o) { public static NameLocation fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NameLocation.class); } -/** - * Convert an instance of NameLocation to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of NameLocation to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/NumberAndBicAccountIdentification.java b/src/main/java/com/adyen/model/transfers/NumberAndBicAccountIdentification.java index 398f34b3a..79037ee5e 100644 --- a/src/main/java/com/adyen/model/transfers/NumberAndBicAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/NumberAndBicAccountIdentification.java @@ -2,54 +2,45 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.AdditionalBankIdentification; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * NumberAndBicAccountIdentification - */ +/** NumberAndBicAccountIdentification */ @JsonPropertyOrder({ NumberAndBicAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, NumberAndBicAccountIdentification.JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION, NumberAndBicAccountIdentification.JSON_PROPERTY_BIC, NumberAndBicAccountIdentification.JSON_PROPERTY_TYPE }) - public class NumberAndBicAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - public static final String JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION = "additionalBankIdentification"; + public static final String JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION = + "additionalBankIdentification"; private AdditionalBankIdentification additionalBankIdentification; public static final String JSON_PROPERTY_BIC = "bic"; private String bic; - /** - * **numberAndBic** - */ + /** **numberAndBic** */ public enum TypeEnum { - NUMBERANDBIC(String.valueOf("numberAndBic")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -57,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -78,7 +69,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -86,14 +81,16 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public NumberAndBicAccountIdentification() { - } + public NumberAndBicAccountIdentification() {} /** - * The bank account number, without separators or whitespace. The length and format depends on the bank or country. + * The bank account number, without separators or whitespace. The length and format depends on the + * bank or country. * - * @param accountNumber The bank account number, without separators or whitespace. The length and format depends on the bank or country. - * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method chaining + * @param accountNumber The bank account number, without separators or whitespace. The length and + * format depends on the bank or country. + * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method + * chaining */ public NumberAndBicAccountIdentification accountNumber(String accountNumber) { this.accountNumber = accountNumber; @@ -101,8 +98,11 @@ public NumberAndBicAccountIdentification accountNumber(String accountNumber) { } /** - * The bank account number, without separators or whitespace. The length and format depends on the bank or country. - * @return accountNumber The bank account number, without separators or whitespace. The length and format depends on the bank or country. + * The bank account number, without separators or whitespace. The length and format depends on the + * bank or country. + * + * @return accountNumber The bank account number, without separators or whitespace. The length and + * format depends on the bank or country. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,9 +111,11 @@ public String getAccountNumber() { } /** - * The bank account number, without separators or whitespace. The length and format depends on the bank or country. + * The bank account number, without separators or whitespace. The length and format depends on the + * bank or country. * - * @param accountNumber The bank account number, without separators or whitespace. The length and format depends on the bank or country. + * @param accountNumber The bank account number, without separators or whitespace. The length and + * format depends on the bank or country. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,17 +126,20 @@ public void setAccountNumber(String accountNumber) { /** * additionalBankIdentification * - * @param additionalBankIdentification - * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method chaining + * @param additionalBankIdentification + * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method + * chaining */ - public NumberAndBicAccountIdentification additionalBankIdentification(AdditionalBankIdentification additionalBankIdentification) { + public NumberAndBicAccountIdentification additionalBankIdentification( + AdditionalBankIdentification additionalBankIdentification) { this.additionalBankIdentification = additionalBankIdentification; return this; } /** * Get additionalBankIdentification - * @return additionalBankIdentification + * + * @return additionalBankIdentification */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,11 +150,12 @@ public AdditionalBankIdentification getAdditionalBankIdentification() { /** * additionalBankIdentification * - * @param additionalBankIdentification + * @param additionalBankIdentification */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAdditionalBankIdentification(AdditionalBankIdentification additionalBankIdentification) { + public void setAdditionalBankIdentification( + AdditionalBankIdentification additionalBankIdentification) { this.additionalBankIdentification = additionalBankIdentification; } @@ -157,7 +163,8 @@ public void setAdditionalBankIdentification(AdditionalBankIdentification additio * The bank's 8- or 11-character BIC or SWIFT code. * * @param bic The bank's 8- or 11-character BIC or SWIFT code. - * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method chaining + * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method + * chaining */ public NumberAndBicAccountIdentification bic(String bic) { this.bic = bic; @@ -166,6 +173,7 @@ public NumberAndBicAccountIdentification bic(String bic) { /** * The bank's 8- or 11-character BIC or SWIFT code. + * * @return bic The bank's 8- or 11-character BIC or SWIFT code. */ @JsonProperty(JSON_PROPERTY_BIC) @@ -189,7 +197,8 @@ public void setBic(String bic) { * **numberAndBic** * * @param type **numberAndBic** - * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method chaining + * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method + * chaining */ public NumberAndBicAccountIdentification type(TypeEnum type) { this.type = type; @@ -198,6 +207,7 @@ public NumberAndBicAccountIdentification type(TypeEnum type) { /** * **numberAndBic** + * * @return type **numberAndBic** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -217,9 +227,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this NumberAndBicAccountIdentification object is equal to o. - */ + /** Return true if this NumberAndBicAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -228,11 +236,14 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - NumberAndBicAccountIdentification numberAndBicAccountIdentification = (NumberAndBicAccountIdentification) o; - return Objects.equals(this.accountNumber, numberAndBicAccountIdentification.accountNumber) && - Objects.equals(this.additionalBankIdentification, numberAndBicAccountIdentification.additionalBankIdentification) && - Objects.equals(this.bic, numberAndBicAccountIdentification.bic) && - Objects.equals(this.type, numberAndBicAccountIdentification.type); + NumberAndBicAccountIdentification numberAndBicAccountIdentification = + (NumberAndBicAccountIdentification) o; + return Objects.equals(this.accountNumber, numberAndBicAccountIdentification.accountNumber) + && Objects.equals( + this.additionalBankIdentification, + numberAndBicAccountIdentification.additionalBankIdentification) + && Objects.equals(this.bic, numberAndBicAccountIdentification.bic) + && Objects.equals(this.type, numberAndBicAccountIdentification.type); } @Override @@ -245,7 +256,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NumberAndBicAccountIdentification {\n"); sb.append(" accountNumber: ").append(toIndentedString(accountNumber)).append("\n"); - sb.append(" additionalBankIdentification: ").append(toIndentedString(additionalBankIdentification)).append("\n"); + sb.append(" additionalBankIdentification: ") + .append(toIndentedString(additionalBankIdentification)) + .append("\n"); sb.append(" bic: ").append(toIndentedString(bic)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -253,8 +266,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -263,21 +275,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of NumberAndBicAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of NumberAndBicAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to NumberAndBicAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * NumberAndBicAccountIdentification */ - public static NumberAndBicAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static NumberAndBicAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NumberAndBicAccountIdentification.class); } -/** - * Convert an instance of NumberAndBicAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of NumberAndBicAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/PLLocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/PLLocalAccountIdentification.java index 7b0717a4d..3158ffe10 100644 --- a/src/main/java/com/adyen/model/transfers/PLLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/PLLocalAccountIdentification.java @@ -2,45 +2,36 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * PLLocalAccountIdentification - */ +/** PLLocalAccountIdentification */ @JsonPropertyOrder({ PLLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, PLLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class PLLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - /** - * **plLocal** - */ + /** **plLocal** */ public enum TypeEnum { - PLLOCAL(String.valueOf("plLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +39,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,13 +72,16 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PLLocalAccountIdentification() { - } + public PLLocalAccountIdentification() {} /** - * The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. + * The 26-digit bank account number ([Numer + * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or + * whitespace. * - * @param accountNumber The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. + * @param accountNumber The 26-digit bank account number ([Numer + * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or + * whitespace. * @return the current {@code PLLocalAccountIdentification} instance, allowing for method chaining */ public PLLocalAccountIdentification accountNumber(String accountNumber) { @@ -92,8 +90,13 @@ public PLLocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. - * @return accountNumber The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. + * The 26-digit bank account number ([Numer + * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or + * whitespace. + * + * @return accountNumber The 26-digit bank account number ([Numer + * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or + * whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,9 +105,13 @@ public String getAccountNumber() { } /** - * The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. + * The 26-digit bank account number ([Numer + * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or + * whitespace. * - * @param accountNumber The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. + * @param accountNumber The 26-digit bank account number ([Numer + * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or + * whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,6 +132,7 @@ public PLLocalAccountIdentification type(TypeEnum type) { /** * **plLocal** + * * @return type **plLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -144,9 +152,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this PLLocalAccountIdentification object is equal to o. - */ + /** Return true if this PLLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +162,8 @@ public boolean equals(Object o) { return false; } PLLocalAccountIdentification plLocalAccountIdentification = (PLLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, plLocalAccountIdentification.accountNumber) && - Objects.equals(this.type, plLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, plLocalAccountIdentification.accountNumber) + && Objects.equals(this.type, plLocalAccountIdentification.type); } @Override @@ -176,8 +182,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +191,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PLLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of PLLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to PLLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PLLocalAccountIdentification */ - public static PLLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static PLLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PLLocalAccountIdentification.class); } -/** - * Convert an instance of PLLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PLLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/PartyIdentification.java b/src/main/java/com/adyen/model/transfers/PartyIdentification.java index e847d549a..f7150a348 100644 --- a/src/main/java/com/adyen/model/transfers/PartyIdentification.java +++ b/src/main/java/com/adyen/model/transfers/PartyIdentification.java @@ -2,33 +2,27 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.Address; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * PartyIdentification - */ +/** PartyIdentification */ @JsonPropertyOrder({ PartyIdentification.JSON_PROPERTY_ADDRESS, PartyIdentification.JSON_PROPERTY_DATE_OF_BIRTH, @@ -40,7 +34,6 @@ PartyIdentification.JSON_PROPERTY_TYPE, PartyIdentification.JSON_PROPERTY_URL }) - public class PartyIdentification { public static final String JSON_PROPERTY_ADDRESS = "address"; private Address address; @@ -64,10 +57,11 @@ public class PartyIdentification { private String reference; /** - * The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. + * The type of entity that owns the bank account or card. Possible values: **individual**, + * **organization**, or **unknown**. Required when `category` is **card**. In this case, + * the value must be **individual**. */ public enum TypeEnum { - INDIVIDUAL(String.valueOf("individual")), ORGANIZATION(String.valueOf("organization")), @@ -79,7 +73,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -100,7 +94,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -111,13 +109,12 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_URL = "url"; private String url; - public PartyIdentification() { - } + public PartyIdentification() {} /** * address * - * @param address + * @param address * @return the current {@code PartyIdentification} instance, allowing for method chaining */ public PartyIdentification address(Address address) { @@ -127,7 +124,8 @@ public PartyIdentification address(Address address) { /** * Get address - * @return address + * + * @return address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,7 +136,7 @@ public Address getAddress() { /** * address * - * @param address + * @param address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,9 +145,12 @@ public void setAddress(Address address) { } /** - * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. + * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + * For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. * - * @param dateOfBirth The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. + * @param dateOfBirth The date of birth of the individual in + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. + * Allowed only when `type` is **individual**. * @return the current {@code PartyIdentification} instance, allowing for method chaining */ public PartyIdentification dateOfBirth(LocalDate dateOfBirth) { @@ -158,8 +159,12 @@ public PartyIdentification dateOfBirth(LocalDate dateOfBirth) { } /** - * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. - * @return dateOfBirth The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. + * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + * For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. + * + * @return dateOfBirth The date of birth of the individual in + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. + * Allowed only when `type` is **individual**. */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,9 +173,12 @@ public LocalDate getDateOfBirth() { } /** - * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. + * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + * For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. * - * @param dateOfBirth The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. + * @param dateOfBirth The date of birth of the individual in + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. + * Allowed only when `type` is **individual**. */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,7 +189,8 @@ public void setDateOfBirth(LocalDate dateOfBirth) { /** * The email address of the organization or individual. Maximum length: 254 characters. * - * @param email The email address of the organization or individual. Maximum length: 254 characters. + * @param email The email address of the organization or individual. Maximum length: 254 + * characters. * @return the current {@code PartyIdentification} instance, allowing for method chaining */ public PartyIdentification email(String email) { @@ -191,7 +200,9 @@ public PartyIdentification email(String email) { /** * The email address of the organization or individual. Maximum length: 254 characters. - * @return email The email address of the organization or individual. Maximum length: 254 characters. + * + * @return email The email address of the organization or individual. Maximum length: 254 + * characters. */ @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -202,7 +213,8 @@ public String getEmail() { /** * The email address of the organization or individual. Maximum length: 254 characters. * - * @param email The email address of the organization or individual. Maximum length: 254 characters. + * @param email The email address of the organization or individual. Maximum length: 254 + * characters. */ @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,9 +223,13 @@ public void setEmail(String email) { } /** - * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This + * parameter is: - Allowed only when `type` is **individual**. - Required when + * `category` is **card**. * - * @param firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * @param firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — + * and space. This parameter is: - Allowed only when `type` is **individual**. - + * Required when `category` is **card**. * @return the current {@code PartyIdentification} instance, allowing for method chaining */ public PartyIdentification firstName(String firstName) { @@ -222,8 +238,13 @@ public PartyIdentification firstName(String firstName) { } /** - * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. - * @return firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This + * parameter is: - Allowed only when `type` is **individual**. - Required when + * `category` is **card**. + * + * @return firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — + * and space. This parameter is: - Allowed only when `type` is **individual**. - + * Required when `category` is **card**. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,9 +253,13 @@ public String getFirstName() { } /** - * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This + * parameter is: - Allowed only when `type` is **individual**. - Required when + * `category` is **card**. * - * @param firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * @param firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — + * and space. This parameter is: - Allowed only when `type` is **individual**. - + * Required when `category` is **card**. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -243,9 +268,13 @@ public void setFirstName(String firstName) { } /** - * The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. + * The full name of the entity that owns the bank account or card. Supported characters: [a-z] + * [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when + * `category` is **bank**. * - * @param fullName The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. + * @param fullName The full name of the entity that owns the bank account or card. Supported + * characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. + * Required when `category` is **bank**. * @return the current {@code PartyIdentification} instance, allowing for method chaining */ public PartyIdentification fullName(String fullName) { @@ -254,8 +283,13 @@ public PartyIdentification fullName(String fullName) { } /** - * The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. - * @return fullName The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. + * The full name of the entity that owns the bank account or card. Supported characters: [a-z] + * [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when + * `category` is **bank**. + * + * @return fullName The full name of the entity that owns the bank account or card. Supported + * characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. + * Required when `category` is **bank**. */ @JsonProperty(JSON_PROPERTY_FULL_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -264,9 +298,13 @@ public String getFullName() { } /** - * The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. + * The full name of the entity that owns the bank account or card. Supported characters: [a-z] + * [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when + * `category` is **bank**. * - * @param fullName The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. + * @param fullName The full name of the entity that owns the bank account or card. Supported + * characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. + * Required when `category` is **bank**. */ @JsonProperty(JSON_PROPERTY_FULL_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -275,9 +313,13 @@ public void setFullName(String fullName) { } /** - * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This + * parameter is: - Allowed only when `type` is **individual**. - Required when + * `category` is **card**. * - * @param lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * @param lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and + * space. This parameter is: - Allowed only when `type` is **individual**. - + * Required when `category` is **card**. * @return the current {@code PartyIdentification} instance, allowing for method chaining */ public PartyIdentification lastName(String lastName) { @@ -286,8 +328,13 @@ public PartyIdentification lastName(String lastName) { } /** - * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. - * @return lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This + * parameter is: - Allowed only when `type` is **individual**. - Required when + * `category` is **card**. + * + * @return lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and + * space. This parameter is: - Allowed only when `type` is **individual**. - + * Required when `category` is **card**. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -296,9 +343,13 @@ public String getLastName() { } /** - * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This + * parameter is: - Allowed only when `type` is **individual**. - Required when + * `category` is **card**. * - * @param lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * @param lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and + * space. This parameter is: - Allowed only when `type` is **individual**. - + * Required when `category` is **card**. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -307,9 +358,13 @@ public void setLastName(String lastName) { } /** - * A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. + * A unique reference to identify the party or counterparty involved in the transfer. For example, + * your client's unique wallet or payee ID. Required when you include + * `cardIdentification.storedPaymentMethodId`. * - * @param reference A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. + * @param reference A unique reference to identify the party or counterparty involved in the + * transfer. For example, your client's unique wallet or payee ID. Required when you + * include `cardIdentification.storedPaymentMethodId`. * @return the current {@code PartyIdentification} instance, allowing for method chaining */ public PartyIdentification reference(String reference) { @@ -318,8 +373,13 @@ public PartyIdentification reference(String reference) { } /** - * A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. - * @return reference A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. + * A unique reference to identify the party or counterparty involved in the transfer. For example, + * your client's unique wallet or payee ID. Required when you include + * `cardIdentification.storedPaymentMethodId`. + * + * @return reference A unique reference to identify the party or counterparty involved in the + * transfer. For example, your client's unique wallet or payee ID. Required when you + * include `cardIdentification.storedPaymentMethodId`. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -328,9 +388,13 @@ public String getReference() { } /** - * A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. + * A unique reference to identify the party or counterparty involved in the transfer. For example, + * your client's unique wallet or payee ID. Required when you include + * `cardIdentification.storedPaymentMethodId`. * - * @param reference A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. + * @param reference A unique reference to identify the party or counterparty involved in the + * transfer. For example, your client's unique wallet or payee ID. Required when you + * include `cardIdentification.storedPaymentMethodId`. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -339,9 +403,13 @@ public void setReference(String reference) { } /** - * The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. + * The type of entity that owns the bank account or card. Possible values: **individual**, + * **organization**, or **unknown**. Required when `category` is **card**. In this case, + * the value must be **individual**. * - * @param type The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. + * @param type The type of entity that owns the bank account or card. Possible values: + * **individual**, **organization**, or **unknown**. Required when `category` is + * **card**. In this case, the value must be **individual**. * @return the current {@code PartyIdentification} instance, allowing for method chaining */ public PartyIdentification type(TypeEnum type) { @@ -350,8 +418,13 @@ public PartyIdentification type(TypeEnum type) { } /** - * The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. - * @return type The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. + * The type of entity that owns the bank account or card. Possible values: **individual**, + * **organization**, or **unknown**. Required when `category` is **card**. In this case, + * the value must be **individual**. + * + * @return type The type of entity that owns the bank account or card. Possible values: + * **individual**, **organization**, or **unknown**. Required when `category` is + * **card**. In this case, the value must be **individual**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -360,9 +433,13 @@ public TypeEnum getType() { } /** - * The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. + * The type of entity that owns the bank account or card. Possible values: **individual**, + * **organization**, or **unknown**. Required when `category` is **card**. In this case, + * the value must be **individual**. * - * @param type The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. + * @param type The type of entity that owns the bank account or card. Possible values: + * **individual**, **organization**, or **unknown**. Required when `category` is + * **card**. In this case, the value must be **individual**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -383,6 +460,7 @@ public PartyIdentification url(String url) { /** * The URL of the organization or individual. Maximum length: 255 characters. + * * @return url The URL of the organization or individual. Maximum length: 255 characters. */ @JsonProperty(JSON_PROPERTY_URL) @@ -402,9 +480,7 @@ public void setUrl(String url) { this.url = url; } - /** - * Return true if this PartyIdentification object is equal to o. - */ + /** Return true if this PartyIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -414,20 +490,21 @@ public boolean equals(Object o) { return false; } PartyIdentification partyIdentification = (PartyIdentification) o; - return Objects.equals(this.address, partyIdentification.address) && - Objects.equals(this.dateOfBirth, partyIdentification.dateOfBirth) && - Objects.equals(this.email, partyIdentification.email) && - Objects.equals(this.firstName, partyIdentification.firstName) && - Objects.equals(this.fullName, partyIdentification.fullName) && - Objects.equals(this.lastName, partyIdentification.lastName) && - Objects.equals(this.reference, partyIdentification.reference) && - Objects.equals(this.type, partyIdentification.type) && - Objects.equals(this.url, partyIdentification.url); + return Objects.equals(this.address, partyIdentification.address) + && Objects.equals(this.dateOfBirth, partyIdentification.dateOfBirth) + && Objects.equals(this.email, partyIdentification.email) + && Objects.equals(this.firstName, partyIdentification.firstName) + && Objects.equals(this.fullName, partyIdentification.fullName) + && Objects.equals(this.lastName, partyIdentification.lastName) + && Objects.equals(this.reference, partyIdentification.reference) + && Objects.equals(this.type, partyIdentification.type) + && Objects.equals(this.url, partyIdentification.url); } @Override public int hashCode() { - return Objects.hash(address, dateOfBirth, email, firstName, fullName, lastName, reference, type, url); + return Objects.hash( + address, dateOfBirth, email, firstName, fullName, lastName, reference, type, url); } @Override @@ -448,8 +525,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -458,21 +534,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PartyIdentification given an JSON string * * @param jsonString JSON string * @return An instance of PartyIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to PartyIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PartyIdentification */ public static PartyIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PartyIdentification.class); } -/** - * Convert an instance of PartyIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PartyIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/PaymentInstrument.java b/src/main/java/com/adyen/model/transfers/PaymentInstrument.java index e1c6affe0..6912fc42a 100644 --- a/src/main/java/com/adyen/model/transfers/PaymentInstrument.java +++ b/src/main/java/com/adyen/model/transfers/PaymentInstrument.java @@ -2,38 +2,28 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * PaymentInstrument - */ +/** PaymentInstrument */ @JsonPropertyOrder({ PaymentInstrument.JSON_PROPERTY_DESCRIPTION, PaymentInstrument.JSON_PROPERTY_ID, PaymentInstrument.JSON_PROPERTY_REFERENCE, PaymentInstrument.JSON_PROPERTY_TOKEN_TYPE }) - public class PaymentInstrument { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -47,8 +37,7 @@ public class PaymentInstrument { public static final String JSON_PROPERTY_TOKEN_TYPE = "tokenType"; private String tokenType; - public PaymentInstrument() { - } + public PaymentInstrument() {} /** * The description of the resource. @@ -63,6 +52,7 @@ public PaymentInstrument description(String description) { /** * The description of the resource. + * * @return description The description of the resource. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -95,6 +85,7 @@ public PaymentInstrument id(String id) { /** * The unique identifier of the resource. + * * @return id The unique identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -127,6 +118,7 @@ public PaymentInstrument reference(String reference) { /** * The reference for the resource. + * * @return reference The reference for the resource. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -159,6 +151,7 @@ public PaymentInstrument tokenType(String tokenType) { /** * The type of wallet that the network token is associated with. + * * @return tokenType The type of wallet that the network token is associated with. */ @JsonProperty(JSON_PROPERTY_TOKEN_TYPE) @@ -178,9 +171,7 @@ public void setTokenType(String tokenType) { this.tokenType = tokenType; } - /** - * Return true if this PaymentInstrument object is equal to o. - */ + /** Return true if this PaymentInstrument object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -190,10 +181,10 @@ public boolean equals(Object o) { return false; } PaymentInstrument paymentInstrument = (PaymentInstrument) o; - return Objects.equals(this.description, paymentInstrument.description) && - Objects.equals(this.id, paymentInstrument.id) && - Objects.equals(this.reference, paymentInstrument.reference) && - Objects.equals(this.tokenType, paymentInstrument.tokenType); + return Objects.equals(this.description, paymentInstrument.description) + && Objects.equals(this.id, paymentInstrument.id) + && Objects.equals(this.reference, paymentInstrument.reference) + && Objects.equals(this.tokenType, paymentInstrument.tokenType); } @Override @@ -214,8 +205,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,7 +214,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentInstrument given an JSON string * * @param jsonString JSON string @@ -234,11 +224,12 @@ private String toIndentedString(Object o) { public static PaymentInstrument fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentInstrument.class); } -/** - * Convert an instance of PaymentInstrument to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentInstrument to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/PlatformPayment.java b/src/main/java/com/adyen/model/transfers/PlatformPayment.java index f1ab1c246..fab1d8ee9 100644 --- a/src/main/java/com/adyen/model/transfers/PlatformPayment.java +++ b/src/main/java/com/adyen/model/transfers/PlatformPayment.java @@ -2,31 +2,26 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * PlatformPayment - */ +/** PlatformPayment */ @JsonPropertyOrder({ PlatformPayment.JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE, PlatformPayment.JSON_PROPERTY_MODIFICATION_PSP_REFERENCE, @@ -35,9 +30,9 @@ PlatformPayment.JSON_PROPERTY_PSP_PAYMENT_REFERENCE, PlatformPayment.JSON_PROPERTY_TYPE }) - public class PlatformPayment { - public static final String JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE = "modificationMerchantReference"; + public static final String JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE = + "modificationMerchantReference"; private String modificationMerchantReference; public static final String JSON_PROPERTY_MODIFICATION_PSP_REFERENCE = "modificationPspReference"; @@ -47,10 +42,28 @@ public class PlatformPayment { private String paymentMerchantReference; /** - * Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. + * Specifies the nature of the transfer. This parameter helps categorize transfers so you can + * reconcile transactions at a later time, using the Balance Platform Accounting Report for + * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) + * or + * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). + * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * + * **AdyenCommission**: for the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). + * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's + * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen + * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale + * amount of a transaction. * **Commission**: for your platform's commission on a transaction. + * * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * + * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * + * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount + * after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This + * is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge + * paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * + * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for + * the Value Added Tax. */ public enum PlatformPaymentTypeEnum { - ACQUIRINGFEES(String.valueOf("AcquiringFees")), ADYENCOMMISSION(String.valueOf("AdyenCommission")), @@ -90,7 +103,7 @@ public enum PlatformPaymentTypeEnum { private String value; PlatformPaymentTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -111,7 +124,11 @@ public static PlatformPaymentTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PlatformPaymentTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PlatformPaymentTypeEnum.values())); + LOG.warning( + "PlatformPaymentTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PlatformPaymentTypeEnum.values())); return null; } } @@ -122,11 +139,8 @@ public static PlatformPaymentTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_PSP_PAYMENT_REFERENCE = "pspPaymentReference"; private String pspPaymentReference; - /** - * **platformPayment** - */ + /** **platformPayment** */ public enum TypeEnum { - PLATFORMPAYMENT(String.valueOf("platformPayment")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -134,7 +148,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -155,7 +169,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -163,13 +181,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PlatformPayment() { - } + public PlatformPayment() {} /** * The capture's merchant reference included in the transfer. * - * @param modificationMerchantReference The capture's merchant reference included in the transfer. + * @param modificationMerchantReference The capture's merchant reference included in the + * transfer. * @return the current {@code PlatformPayment} instance, allowing for method chaining */ public PlatformPayment modificationMerchantReference(String modificationMerchantReference) { @@ -179,7 +197,9 @@ public PlatformPayment modificationMerchantReference(String modificationMerchant /** * The capture's merchant reference included in the transfer. - * @return modificationMerchantReference The capture's merchant reference included in the transfer. + * + * @return modificationMerchantReference The capture's merchant reference included in the + * transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,7 +210,8 @@ public String getModificationMerchantReference() { /** * The capture's merchant reference included in the transfer. * - * @param modificationMerchantReference The capture's merchant reference included in the transfer. + * @param modificationMerchantReference The capture's merchant reference included in the + * transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,6 +232,7 @@ public PlatformPayment modificationPspReference(String modificationPspReference) /** * The capture reference included in the transfer. + * * @return modificationPspReference The capture reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_PSP_REFERENCE) @@ -243,6 +265,7 @@ public PlatformPayment paymentMerchantReference(String paymentMerchantReference) /** * The payment's merchant reference included in the transfer. + * * @return paymentMerchantReference The payment's merchant reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_PAYMENT_MERCHANT_REFERENCE) @@ -263,9 +286,48 @@ public void setPaymentMerchantReference(String paymentMerchantReference) { } /** - * Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. + * Specifies the nature of the transfer. This parameter helps categorize transfers so you can + * reconcile transactions at a later time, using the Balance Platform Accounting Report for + * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) + * or + * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). + * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * + * **AdyenCommission**: for the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). + * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's + * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen + * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale + * amount of a transaction. * **Commission**: for your platform's commission on a transaction. + * * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * + * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * + * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount + * after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This + * is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge + * paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * + * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for + * the Value Added Tax. * - * @param platformPaymentType Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. + * @param platformPaymentType Specifies the nature of the transfer. This parameter helps + * categorize transfers so you can reconcile transactions at a later time, using the Balance + * Platform Accounting Report for + * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) + * or + * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). + * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * + * **AdyenCommission**: for the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). + * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's + * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen + * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the + * sale amount of a transaction. * **Commission**: for your platform's commission on a + * transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a + * transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred + * on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for + * the left over amount after currency conversion. * **SchemeFee**: for the scheme fee + * incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. + * * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for + * the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your + * user's balance account. * **VAT**: for the Value Added Tax. * @return the current {@code PlatformPayment} instance, allowing for method chaining */ public PlatformPayment platformPaymentType(PlatformPaymentTypeEnum platformPaymentType) { @@ -274,8 +336,48 @@ public PlatformPayment platformPaymentType(PlatformPaymentTypeEnum platformPayme } /** - * Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. - * @return platformPaymentType Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. + * Specifies the nature of the transfer. This parameter helps categorize transfers so you can + * reconcile transactions at a later time, using the Balance Platform Accounting Report for + * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) + * or + * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). + * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * + * **AdyenCommission**: for the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). + * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's + * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen + * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale + * amount of a transaction. * **Commission**: for your platform's commission on a transaction. + * * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * + * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * + * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount + * after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This + * is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge + * paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * + * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for + * the Value Added Tax. + * + * @return platformPaymentType Specifies the nature of the transfer. This parameter helps + * categorize transfers so you can reconcile transactions at a later time, using the Balance + * Platform Accounting Report for + * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) + * or + * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). + * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * + * **AdyenCommission**: for the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). + * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's + * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen + * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the + * sale amount of a transaction. * **Commission**: for your platform's commission on a + * transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a + * transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred + * on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for + * the left over amount after currency conversion. * **SchemeFee**: for the scheme fee + * incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. + * * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for + * the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your + * user's balance account. * **VAT**: for the Value Added Tax. */ @JsonProperty(JSON_PROPERTY_PLATFORM_PAYMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,9 +386,48 @@ public PlatformPaymentTypeEnum getPlatformPaymentType() { } /** - * Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. + * Specifies the nature of the transfer. This parameter helps categorize transfers so you can + * reconcile transactions at a later time, using the Balance Platform Accounting Report for + * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) + * or + * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). + * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * + * **AdyenCommission**: for the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). + * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's + * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen + * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale + * amount of a transaction. * **Commission**: for your platform's commission on a transaction. + * * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * + * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * + * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount + * after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This + * is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge + * paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * + * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for + * the Value Added Tax. * - * @param platformPaymentType Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. + * @param platformPaymentType Specifies the nature of the transfer. This parameter helps + * categorize transfers so you can reconcile transactions at a later time, using the Balance + * Platform Accounting Report for + * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) + * or + * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). + * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * + * **AdyenCommission**: for the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). + * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's + * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen + * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the + * sale amount of a transaction. * **Commission**: for your platform's commission on a + * transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a + * transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred + * on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for + * the left over amount after currency conversion. * **SchemeFee**: for the scheme fee + * incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. + * * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for + * the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your + * user's balance account. * **VAT**: for the Value Added Tax. */ @JsonProperty(JSON_PROPERTY_PLATFORM_PAYMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -307,6 +448,7 @@ public PlatformPayment pspPaymentReference(String pspPaymentReference) { /** * The payment reference included in the transfer. + * * @return pspPaymentReference The payment reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_PSP_PAYMENT_REFERENCE) @@ -339,6 +481,7 @@ public PlatformPayment type(TypeEnum type) { /** * **platformPayment** + * * @return type **platformPayment** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -358,9 +501,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this PlatformPayment object is equal to o. - */ + /** Return true if this PlatformPayment object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -370,36 +511,52 @@ public boolean equals(Object o) { return false; } PlatformPayment platformPayment = (PlatformPayment) o; - return Objects.equals(this.modificationMerchantReference, platformPayment.modificationMerchantReference) && - Objects.equals(this.modificationPspReference, platformPayment.modificationPspReference) && - Objects.equals(this.paymentMerchantReference, platformPayment.paymentMerchantReference) && - Objects.equals(this.platformPaymentType, platformPayment.platformPaymentType) && - Objects.equals(this.pspPaymentReference, platformPayment.pspPaymentReference) && - Objects.equals(this.type, platformPayment.type); + return Objects.equals( + this.modificationMerchantReference, platformPayment.modificationMerchantReference) + && Objects.equals(this.modificationPspReference, platformPayment.modificationPspReference) + && Objects.equals(this.paymentMerchantReference, platformPayment.paymentMerchantReference) + && Objects.equals(this.platformPaymentType, platformPayment.platformPaymentType) + && Objects.equals(this.pspPaymentReference, platformPayment.pspPaymentReference) + && Objects.equals(this.type, platformPayment.type); } @Override public int hashCode() { - return Objects.hash(modificationMerchantReference, modificationPspReference, paymentMerchantReference, platformPaymentType, pspPaymentReference, type); + return Objects.hash( + modificationMerchantReference, + modificationPspReference, + paymentMerchantReference, + platformPaymentType, + pspPaymentReference, + type); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PlatformPayment {\n"); - sb.append(" modificationMerchantReference: ").append(toIndentedString(modificationMerchantReference)).append("\n"); - sb.append(" modificationPspReference: ").append(toIndentedString(modificationPspReference)).append("\n"); - sb.append(" paymentMerchantReference: ").append(toIndentedString(paymentMerchantReference)).append("\n"); - sb.append(" platformPaymentType: ").append(toIndentedString(platformPaymentType)).append("\n"); - sb.append(" pspPaymentReference: ").append(toIndentedString(pspPaymentReference)).append("\n"); + sb.append(" modificationMerchantReference: ") + .append(toIndentedString(modificationMerchantReference)) + .append("\n"); + sb.append(" modificationPspReference: ") + .append(toIndentedString(modificationPspReference)) + .append("\n"); + sb.append(" paymentMerchantReference: ") + .append(toIndentedString(paymentMerchantReference)) + .append("\n"); + sb.append(" platformPaymentType: ") + .append(toIndentedString(platformPaymentType)) + .append("\n"); + sb.append(" pspPaymentReference: ") + .append(toIndentedString(pspPaymentReference)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -408,7 +565,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PlatformPayment given an JSON string * * @param jsonString JSON string @@ -418,11 +575,12 @@ private String toIndentedString(Object o) { public static PlatformPayment fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PlatformPayment.class); } -/** - * Convert an instance of PlatformPayment to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PlatformPayment to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/RelayedAuthorisationData.java b/src/main/java/com/adyen/model/transfers/RelayedAuthorisationData.java index 78dfbd584..518283c4c 100644 --- a/src/main/java/com/adyen/model/transfers/RelayedAuthorisationData.java +++ b/src/main/java/com/adyen/model/transfers/RelayedAuthorisationData.java @@ -2,38 +2,28 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.HashMap; +import java.util.Map; - -/** - * RelayedAuthorisationData - */ +/** RelayedAuthorisationData */ @JsonPropertyOrder({ RelayedAuthorisationData.JSON_PROPERTY_METADATA, RelayedAuthorisationData.JSON_PROPERTY_REFERENCE }) - public class RelayedAuthorisationData { public static final String JSON_PROPERTY_METADATA = "metadata"; private Map metadata; @@ -41,13 +31,14 @@ public class RelayedAuthorisationData { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public RelayedAuthorisationData() { - } + public RelayedAuthorisationData() {} /** - * Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. + * Contains key-value pairs of your references and descriptions, for example, + * `customId`:`your-own-custom-field-12345`. * - * @param metadata Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. + * @param metadata Contains key-value pairs of your references and descriptions, for example, + * `customId`:`your-own-custom-field-12345`. * @return the current {@code RelayedAuthorisationData} instance, allowing for method chaining */ public RelayedAuthorisationData metadata(Map metadata) { @@ -64,8 +55,11 @@ public RelayedAuthorisationData putMetadataItem(String key, String metadataItem) } /** - * Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. - * @return metadata Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. + * Contains key-value pairs of your references and descriptions, for example, + * `customId`:`your-own-custom-field-12345`. + * + * @return metadata Contains key-value pairs of your references and descriptions, for example, + * `customId`:`your-own-custom-field-12345`. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -74,9 +68,11 @@ public Map getMetadata() { } /** - * Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. + * Contains key-value pairs of your references and descriptions, for example, + * `customId`:`your-own-custom-field-12345`. * - * @param metadata Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. + * @param metadata Contains key-value pairs of your references and descriptions, for example, + * `customId`:`your-own-custom-field-12345`. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,6 +93,7 @@ public RelayedAuthorisationData reference(String reference) { /** * Your reference for the relayed authorisation data. + * * @return reference Your reference for the relayed authorisation data. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -116,9 +113,7 @@ public void setReference(String reference) { this.reference = reference; } - /** - * Return true if this RelayedAuthorisationData object is equal to o. - */ + /** Return true if this RelayedAuthorisationData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -128,8 +123,8 @@ public boolean equals(Object o) { return false; } RelayedAuthorisationData relayedAuthorisationData = (RelayedAuthorisationData) o; - return Objects.equals(this.metadata, relayedAuthorisationData.metadata) && - Objects.equals(this.reference, relayedAuthorisationData.reference); + return Objects.equals(this.metadata, relayedAuthorisationData.metadata) + && Objects.equals(this.reference, relayedAuthorisationData.reference); } @Override @@ -148,8 +143,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -158,21 +152,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RelayedAuthorisationData given an JSON string * * @param jsonString JSON string * @return An instance of RelayedAuthorisationData - * @throws JsonProcessingException if the JSON string is invalid with respect to RelayedAuthorisationData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * RelayedAuthorisationData */ - public static RelayedAuthorisationData fromJson(String jsonString) throws JsonProcessingException { + public static RelayedAuthorisationData fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RelayedAuthorisationData.class); } -/** - * Convert an instance of RelayedAuthorisationData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RelayedAuthorisationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/Repayment.java b/src/main/java/com/adyen/model/transfers/Repayment.java index aa6786ccb..d75ec5fbe 100644 --- a/src/main/java/com/adyen/model/transfers/Repayment.java +++ b/src/main/java/com/adyen/model/transfers/Repayment.java @@ -2,39 +2,27 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.RepaymentTerm; -import com.adyen.model.transfers.ThresholdRepayment; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Repayment - */ +/** Repayment */ @JsonPropertyOrder({ Repayment.JSON_PROPERTY_BASIS_POINTS, Repayment.JSON_PROPERTY_TERM, Repayment.JSON_PROPERTY_THRESHOLD }) - public class Repayment { public static final String JSON_PROPERTY_BASIS_POINTS = "basisPoints"; private Integer basisPoints; @@ -45,13 +33,14 @@ public class Repayment { public static final String JSON_PROPERTY_THRESHOLD = "threshold"; private ThresholdRepayment threshold; - public Repayment() { - } + public Repayment() {} /** - * The repayment that is deducted daily from incoming net volume, in [basis points](https://www.investopedia.com/terms/b/basispoint.asp). + * The repayment that is deducted daily from incoming net volume, in [basis + * points](https://www.investopedia.com/terms/b/basispoint.asp). * - * @param basisPoints The repayment that is deducted daily from incoming net volume, in [basis points](https://www.investopedia.com/terms/b/basispoint.asp). + * @param basisPoints The repayment that is deducted daily from incoming net volume, in [basis + * points](https://www.investopedia.com/terms/b/basispoint.asp). * @return the current {@code Repayment} instance, allowing for method chaining */ public Repayment basisPoints(Integer basisPoints) { @@ -60,8 +49,11 @@ public Repayment basisPoints(Integer basisPoints) { } /** - * The repayment that is deducted daily from incoming net volume, in [basis points](https://www.investopedia.com/terms/b/basispoint.asp). - * @return basisPoints The repayment that is deducted daily from incoming net volume, in [basis points](https://www.investopedia.com/terms/b/basispoint.asp). + * The repayment that is deducted daily from incoming net volume, in [basis + * points](https://www.investopedia.com/terms/b/basispoint.asp). + * + * @return basisPoints The repayment that is deducted daily from incoming net volume, in [basis + * points](https://www.investopedia.com/terms/b/basispoint.asp). */ @JsonProperty(JSON_PROPERTY_BASIS_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +62,11 @@ public Integer getBasisPoints() { } /** - * The repayment that is deducted daily from incoming net volume, in [basis points](https://www.investopedia.com/terms/b/basispoint.asp). + * The repayment that is deducted daily from incoming net volume, in [basis + * points](https://www.investopedia.com/terms/b/basispoint.asp). * - * @param basisPoints The repayment that is deducted daily from incoming net volume, in [basis points](https://www.investopedia.com/terms/b/basispoint.asp). + * @param basisPoints The repayment that is deducted daily from incoming net volume, in [basis + * points](https://www.investopedia.com/terms/b/basispoint.asp). */ @JsonProperty(JSON_PROPERTY_BASIS_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,7 +77,7 @@ public void setBasisPoints(Integer basisPoints) { /** * term * - * @param term + * @param term * @return the current {@code Repayment} instance, allowing for method chaining */ public Repayment term(RepaymentTerm term) { @@ -93,7 +87,8 @@ public Repayment term(RepaymentTerm term) { /** * Get term - * @return term + * + * @return term */ @JsonProperty(JSON_PROPERTY_TERM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,7 +99,7 @@ public RepaymentTerm getTerm() { /** * term * - * @param term + * @param term */ @JsonProperty(JSON_PROPERTY_TERM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,7 +110,7 @@ public void setTerm(RepaymentTerm term) { /** * threshold * - * @param threshold + * @param threshold * @return the current {@code Repayment} instance, allowing for method chaining */ public Repayment threshold(ThresholdRepayment threshold) { @@ -125,7 +120,8 @@ public Repayment threshold(ThresholdRepayment threshold) { /** * Get threshold - * @return threshold + * + * @return threshold */ @JsonProperty(JSON_PROPERTY_THRESHOLD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,7 +132,7 @@ public ThresholdRepayment getThreshold() { /** * threshold * - * @param threshold + * @param threshold */ @JsonProperty(JSON_PROPERTY_THRESHOLD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,9 +140,7 @@ public void setThreshold(ThresholdRepayment threshold) { this.threshold = threshold; } - /** - * Return true if this Repayment object is equal to o. - */ + /** Return true if this Repayment object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,9 +150,9 @@ public boolean equals(Object o) { return false; } Repayment repayment = (Repayment) o; - return Objects.equals(this.basisPoints, repayment.basisPoints) && - Objects.equals(this.term, repayment.term) && - Objects.equals(this.threshold, repayment.threshold); + return Objects.equals(this.basisPoints, repayment.basisPoints) + && Objects.equals(this.term, repayment.term) + && Objects.equals(this.threshold, repayment.threshold); } @Override @@ -178,8 +172,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -188,7 +181,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Repayment given an JSON string * * @param jsonString JSON string @@ -198,11 +191,12 @@ private String toIndentedString(Object o) { public static Repayment fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Repayment.class); } -/** - * Convert an instance of Repayment to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Repayment to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/RepaymentTerm.java b/src/main/java/com/adyen/model/transfers/RepaymentTerm.java index efbe3e2d1..1e06dc2ff 100644 --- a/src/main/java/com/adyen/model/transfers/RepaymentTerm.java +++ b/src/main/java/com/adyen/model/transfers/RepaymentTerm.java @@ -2,36 +2,26 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * RepaymentTerm - */ +/** RepaymentTerm */ @JsonPropertyOrder({ RepaymentTerm.JSON_PROPERTY_ESTIMATED_DAYS, RepaymentTerm.JSON_PROPERTY_MAXIMUM_DAYS }) - public class RepaymentTerm { public static final String JSON_PROPERTY_ESTIMATED_DAYS = "estimatedDays"; private Integer estimatedDays; @@ -39,8 +29,7 @@ public class RepaymentTerm { public static final String JSON_PROPERTY_MAXIMUM_DAYS = "maximumDays"; private Integer maximumDays; - public RepaymentTerm() { - } + public RepaymentTerm() {} /** * The estimated term for repaying the grant, in days. @@ -55,6 +44,7 @@ public RepaymentTerm estimatedDays(Integer estimatedDays) { /** * The estimated term for repaying the grant, in days. + * * @return estimatedDays The estimated term for repaying the grant, in days. */ @JsonProperty(JSON_PROPERTY_ESTIMATED_DAYS) @@ -75,9 +65,11 @@ public void setEstimatedDays(Integer estimatedDays) { } /** - * The maximum term for repaying the grant, in days. Only applies when `contractType` is **loan**. + * The maximum term for repaying the grant, in days. Only applies when `contractType` is + * **loan**. * - * @param maximumDays The maximum term for repaying the grant, in days. Only applies when `contractType` is **loan**. + * @param maximumDays The maximum term for repaying the grant, in days. Only applies when + * `contractType` is **loan**. * @return the current {@code RepaymentTerm} instance, allowing for method chaining */ public RepaymentTerm maximumDays(Integer maximumDays) { @@ -86,8 +78,11 @@ public RepaymentTerm maximumDays(Integer maximumDays) { } /** - * The maximum term for repaying the grant, in days. Only applies when `contractType` is **loan**. - * @return maximumDays The maximum term for repaying the grant, in days. Only applies when `contractType` is **loan**. + * The maximum term for repaying the grant, in days. Only applies when `contractType` is + * **loan**. + * + * @return maximumDays The maximum term for repaying the grant, in days. Only applies when + * `contractType` is **loan**. */ @JsonProperty(JSON_PROPERTY_MAXIMUM_DAYS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +91,11 @@ public Integer getMaximumDays() { } /** - * The maximum term for repaying the grant, in days. Only applies when `contractType` is **loan**. + * The maximum term for repaying the grant, in days. Only applies when `contractType` is + * **loan**. * - * @param maximumDays The maximum term for repaying the grant, in days. Only applies when `contractType` is **loan**. + * @param maximumDays The maximum term for repaying the grant, in days. Only applies when + * `contractType` is **loan**. */ @JsonProperty(JSON_PROPERTY_MAXIMUM_DAYS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +103,7 @@ public void setMaximumDays(Integer maximumDays) { this.maximumDays = maximumDays; } - /** - * Return true if this RepaymentTerm object is equal to o. - */ + /** Return true if this RepaymentTerm object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +113,8 @@ public boolean equals(Object o) { return false; } RepaymentTerm repaymentTerm = (RepaymentTerm) o; - return Objects.equals(this.estimatedDays, repaymentTerm.estimatedDays) && - Objects.equals(this.maximumDays, repaymentTerm.maximumDays); + return Objects.equals(this.estimatedDays, repaymentTerm.estimatedDays) + && Objects.equals(this.maximumDays, repaymentTerm.maximumDays); } @Override @@ -138,8 +133,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +142,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RepaymentTerm given an JSON string * * @param jsonString JSON string @@ -158,11 +152,12 @@ private String toIndentedString(Object o) { public static RepaymentTerm fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RepaymentTerm.class); } -/** - * Convert an instance of RepaymentTerm to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RepaymentTerm to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/ResourceReference.java b/src/main/java/com/adyen/model/transfers/ResourceReference.java index 86ca23f88..e25f2a5fc 100644 --- a/src/main/java/com/adyen/model/transfers/ResourceReference.java +++ b/src/main/java/com/adyen/model/transfers/ResourceReference.java @@ -2,37 +2,27 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ResourceReference - */ +/** ResourceReference */ @JsonPropertyOrder({ ResourceReference.JSON_PROPERTY_DESCRIPTION, ResourceReference.JSON_PROPERTY_ID, ResourceReference.JSON_PROPERTY_REFERENCE }) - public class ResourceReference { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -43,8 +33,7 @@ public class ResourceReference { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public ResourceReference() { - } + public ResourceReference() {} /** * The description of the resource. @@ -59,6 +48,7 @@ public ResourceReference description(String description) { /** * The description of the resource. + * * @return description The description of the resource. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -91,6 +81,7 @@ public ResourceReference id(String id) { /** * The unique identifier of the resource. + * * @return id The unique identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -123,6 +114,7 @@ public ResourceReference reference(String reference) { /** * The reference for the resource. + * * @return reference The reference for the resource. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -142,9 +134,7 @@ public void setReference(String reference) { this.reference = reference; } - /** - * Return true if this ResourceReference object is equal to o. - */ + /** Return true if this ResourceReference object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +144,9 @@ public boolean equals(Object o) { return false; } ResourceReference resourceReference = (ResourceReference) o; - return Objects.equals(this.description, resourceReference.description) && - Objects.equals(this.id, resourceReference.id) && - Objects.equals(this.reference, resourceReference.reference); + return Objects.equals(this.description, resourceReference.description) + && Objects.equals(this.id, resourceReference.id) + && Objects.equals(this.reference, resourceReference.reference); } @Override @@ -176,8 +166,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +175,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResourceReference given an JSON string * * @param jsonString JSON string @@ -196,11 +185,12 @@ private String toIndentedString(Object o) { public static ResourceReference fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResourceReference.class); } -/** - * Convert an instance of ResourceReference to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResourceReference to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/RestServiceError.java b/src/main/java/com/adyen/model/transfers/RestServiceError.java index ea412a746..703e3d346 100644 --- a/src/main/java/com/adyen/model/transfers/RestServiceError.java +++ b/src/main/java/com/adyen/model/transfers/RestServiceError.java @@ -2,34 +2,24 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.InvalidField; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * RestServiceError - */ +/** RestServiceError */ @JsonPropertyOrder({ RestServiceError.JSON_PROPERTY_DETAIL, RestServiceError.JSON_PROPERTY_ERROR_CODE, @@ -41,7 +31,6 @@ RestServiceError.JSON_PROPERTY_TITLE, RestServiceError.JSON_PROPERTY_TYPE }) - public class RestServiceError { public static final String JSON_PROPERTY_DETAIL = "detail"; private String detail; @@ -70,8 +59,7 @@ public class RestServiceError { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public RestServiceError() { - } + public RestServiceError() {} /** * A human-readable explanation specific to this occurrence of the problem. @@ -86,6 +74,7 @@ public RestServiceError detail(String detail) { /** * A human-readable explanation specific to this occurrence of the problem. + * * @return detail A human-readable explanation specific to this occurrence of the problem. */ @JsonProperty(JSON_PROPERTY_DETAIL) @@ -118,6 +107,7 @@ public RestServiceError errorCode(String errorCode) { /** * A code that identifies the problem type. + * * @return errorCode A code that identifies the problem type. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -150,6 +140,7 @@ public RestServiceError instance(String instance) { /** * A unique URI that identifies the specific occurrence of the problem. + * * @return instance A unique URI that identifies the specific occurrence of the problem. */ @JsonProperty(JSON_PROPERTY_INSTANCE) @@ -190,6 +181,7 @@ public RestServiceError addInvalidFieldsItem(InvalidField invalidFieldsItem) { /** * Detailed explanation of each validation error, when applicable. + * * @return invalidFields Detailed explanation of each validation error, when applicable. */ @JsonProperty(JSON_PROPERTY_INVALID_FIELDS) @@ -212,7 +204,8 @@ public void setInvalidFields(List invalidFields) { /** * A unique reference for the request, essentially the same as `pspReference`. * - * @param requestId A unique reference for the request, essentially the same as `pspReference`. + * @param requestId A unique reference for the request, essentially the same as + * `pspReference`. * @return the current {@code RestServiceError} instance, allowing for method chaining */ public RestServiceError requestId(String requestId) { @@ -222,7 +215,9 @@ public RestServiceError requestId(String requestId) { /** * A unique reference for the request, essentially the same as `pspReference`. - * @return requestId A unique reference for the request, essentially the same as `pspReference`. + * + * @return requestId A unique reference for the request, essentially the same as + * `pspReference`. */ @JsonProperty(JSON_PROPERTY_REQUEST_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -233,7 +228,8 @@ public String getRequestId() { /** * A unique reference for the request, essentially the same as `pspReference`. * - * @param requestId A unique reference for the request, essentially the same as `pspReference`. + * @param requestId A unique reference for the request, essentially the same as + * `pspReference`. */ @JsonProperty(JSON_PROPERTY_REQUEST_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,7 +240,7 @@ public void setRequestId(String requestId) { /** * response * - * @param response + * @param response * @return the current {@code RestServiceError} instance, allowing for method chaining */ public RestServiceError response(Object response) { @@ -254,7 +250,8 @@ public RestServiceError response(Object response) { /** * Get response - * @return response + * + * @return response */ @JsonProperty(JSON_PROPERTY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -265,7 +262,7 @@ public Object getResponse() { /** * response * - * @param response + * @param response */ @JsonProperty(JSON_PROPERTY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -286,6 +283,7 @@ public RestServiceError status(Integer status) { /** * The HTTP status code. + * * @return status The HTTP status code. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -318,6 +316,7 @@ public RestServiceError title(String title) { /** * A short, human-readable summary of the problem type. + * * @return title A short, human-readable summary of the problem type. */ @JsonProperty(JSON_PROPERTY_TITLE) @@ -338,9 +337,11 @@ public void setTitle(String title) { } /** - * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. + * A URI that identifies the problem type, pointing to human-readable documentation on this + * problem type. * - * @param type A URI that identifies the problem type, pointing to human-readable documentation on this problem type. + * @param type A URI that identifies the problem type, pointing to human-readable documentation on + * this problem type. * @return the current {@code RestServiceError} instance, allowing for method chaining */ public RestServiceError type(String type) { @@ -349,8 +350,11 @@ public RestServiceError type(String type) { } /** - * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. - * @return type A URI that identifies the problem type, pointing to human-readable documentation on this problem type. + * A URI that identifies the problem type, pointing to human-readable documentation on this + * problem type. + * + * @return type A URI that identifies the problem type, pointing to human-readable documentation + * on this problem type. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -359,9 +363,11 @@ public String getType() { } /** - * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. + * A URI that identifies the problem type, pointing to human-readable documentation on this + * problem type. * - * @param type A URI that identifies the problem type, pointing to human-readable documentation on this problem type. + * @param type A URI that identifies the problem type, pointing to human-readable documentation on + * this problem type. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -369,9 +375,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this RestServiceError object is equal to o. - */ + /** Return true if this RestServiceError object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -381,20 +385,21 @@ public boolean equals(Object o) { return false; } RestServiceError restServiceError = (RestServiceError) o; - return Objects.equals(this.detail, restServiceError.detail) && - Objects.equals(this.errorCode, restServiceError.errorCode) && - Objects.equals(this.instance, restServiceError.instance) && - Objects.equals(this.invalidFields, restServiceError.invalidFields) && - Objects.equals(this.requestId, restServiceError.requestId) && - Objects.equals(this.response, restServiceError.response) && - Objects.equals(this.status, restServiceError.status) && - Objects.equals(this.title, restServiceError.title) && - Objects.equals(this.type, restServiceError.type); + return Objects.equals(this.detail, restServiceError.detail) + && Objects.equals(this.errorCode, restServiceError.errorCode) + && Objects.equals(this.instance, restServiceError.instance) + && Objects.equals(this.invalidFields, restServiceError.invalidFields) + && Objects.equals(this.requestId, restServiceError.requestId) + && Objects.equals(this.response, restServiceError.response) + && Objects.equals(this.status, restServiceError.status) + && Objects.equals(this.title, restServiceError.title) + && Objects.equals(this.type, restServiceError.type); } @Override public int hashCode() { - return Objects.hash(detail, errorCode, instance, invalidFields, requestId, response, status, title, type); + return Objects.hash( + detail, errorCode, instance, invalidFields, requestId, response, status, title, type); } @Override @@ -415,8 +420,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -425,7 +429,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RestServiceError given an JSON string * * @param jsonString JSON string @@ -435,11 +439,12 @@ private String toIndentedString(Object o) { public static RestServiceError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RestServiceError.class); } -/** - * Convert an instance of RestServiceError to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RestServiceError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/ReturnTransferRequest.java b/src/main/java/com/adyen/model/transfers/ReturnTransferRequest.java index 5d9105deb..1164e492a 100644 --- a/src/main/java/com/adyen/model/transfers/ReturnTransferRequest.java +++ b/src/main/java/com/adyen/model/transfers/ReturnTransferRequest.java @@ -2,37 +2,26 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ReturnTransferRequest - */ +/** ReturnTransferRequest */ @JsonPropertyOrder({ ReturnTransferRequest.JSON_PROPERTY_AMOUNT, ReturnTransferRequest.JSON_PROPERTY_REFERENCE }) - public class ReturnTransferRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -40,13 +29,12 @@ public class ReturnTransferRequest { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public ReturnTransferRequest() { - } + public ReturnTransferRequest() {} /** * amount * - * @param amount + * @param amount * @return the current {@code ReturnTransferRequest} instance, allowing for method chaining */ public ReturnTransferRequest amount(Amount amount) { @@ -56,7 +44,8 @@ public ReturnTransferRequest amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -67,7 +56,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -76,9 +65,16 @@ public void setAmount(Amount amount) { } /** - * Your internal reference for the return. If you don't provide this in the request, Adyen generates a unique reference. This reference is used in all communication with you about the instruction status. We recommend using a unique value per instruction. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). + * Your internal reference for the return. If you don't provide this in the request, Adyen + * generates a unique reference. This reference is used in all communication with you about the + * instruction status. We recommend using a unique value per instruction. If you need to provide + * multiple references for a transaction, separate them with hyphens (\"-\"). * - * @param reference Your internal reference for the return. If you don't provide this in the request, Adyen generates a unique reference. This reference is used in all communication with you about the instruction status. We recommend using a unique value per instruction. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). + * @param reference Your internal reference for the return. If you don't provide this in the + * request, Adyen generates a unique reference. This reference is used in all communication + * with you about the instruction status. We recommend using a unique value per instruction. + * If you need to provide multiple references for a transaction, separate them with hyphens + * (\"-\"). * @return the current {@code ReturnTransferRequest} instance, allowing for method chaining */ public ReturnTransferRequest reference(String reference) { @@ -87,8 +83,16 @@ public ReturnTransferRequest reference(String reference) { } /** - * Your internal reference for the return. If you don't provide this in the request, Adyen generates a unique reference. This reference is used in all communication with you about the instruction status. We recommend using a unique value per instruction. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). - * @return reference Your internal reference for the return. If you don't provide this in the request, Adyen generates a unique reference. This reference is used in all communication with you about the instruction status. We recommend using a unique value per instruction. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). + * Your internal reference for the return. If you don't provide this in the request, Adyen + * generates a unique reference. This reference is used in all communication with you about the + * instruction status. We recommend using a unique value per instruction. If you need to provide + * multiple references for a transaction, separate them with hyphens (\"-\"). + * + * @return reference Your internal reference for the return. If you don't provide this in the + * request, Adyen generates a unique reference. This reference is used in all communication + * with you about the instruction status. We recommend using a unique value per instruction. + * If you need to provide multiple references for a transaction, separate them with hyphens + * (\"-\"). */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,9 +101,16 @@ public String getReference() { } /** - * Your internal reference for the return. If you don't provide this in the request, Adyen generates a unique reference. This reference is used in all communication with you about the instruction status. We recommend using a unique value per instruction. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). + * Your internal reference for the return. If you don't provide this in the request, Adyen + * generates a unique reference. This reference is used in all communication with you about the + * instruction status. We recommend using a unique value per instruction. If you need to provide + * multiple references for a transaction, separate them with hyphens (\"-\"). * - * @param reference Your internal reference for the return. If you don't provide this in the request, Adyen generates a unique reference. This reference is used in all communication with you about the instruction status. We recommend using a unique value per instruction. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). + * @param reference Your internal reference for the return. If you don't provide this in the + * request, Adyen generates a unique reference. This reference is used in all communication + * with you about the instruction status. We recommend using a unique value per instruction. + * If you need to provide multiple references for a transaction, separate them with hyphens + * (\"-\"). */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,9 +118,7 @@ public void setReference(String reference) { this.reference = reference; } - /** - * Return true if this ReturnTransferRequest object is equal to o. - */ + /** Return true if this ReturnTransferRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -119,8 +128,8 @@ public boolean equals(Object o) { return false; } ReturnTransferRequest returnTransferRequest = (ReturnTransferRequest) o; - return Objects.equals(this.amount, returnTransferRequest.amount) && - Objects.equals(this.reference, returnTransferRequest.reference); + return Objects.equals(this.amount, returnTransferRequest.amount) + && Objects.equals(this.reference, returnTransferRequest.reference); } @Override @@ -139,8 +148,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -149,21 +157,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ReturnTransferRequest given an JSON string * * @param jsonString JSON string * @return An instance of ReturnTransferRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to ReturnTransferRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ReturnTransferRequest */ public static ReturnTransferRequest fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ReturnTransferRequest.class); } -/** - * Convert an instance of ReturnTransferRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ReturnTransferRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/ReturnTransferResponse.java b/src/main/java/com/adyen/model/transfers/ReturnTransferResponse.java index 10c9458bb..1ef2b0bb6 100644 --- a/src/main/java/com/adyen/model/transfers/ReturnTransferResponse.java +++ b/src/main/java/com/adyen/model/transfers/ReturnTransferResponse.java @@ -2,38 +2,32 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * ReturnTransferResponse - */ +/** ReturnTransferResponse */ @JsonPropertyOrder({ ReturnTransferResponse.JSON_PROPERTY_ID, ReturnTransferResponse.JSON_PROPERTY_REFERENCE, ReturnTransferResponse.JSON_PROPERTY_STATUS, ReturnTransferResponse.JSON_PROPERTY_TRANSFER_ID }) - public class ReturnTransferResponse { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -41,11 +35,8 @@ public class ReturnTransferResponse { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - /** - * The resulting status of the return. Possible values: **Authorised**, **Declined**. - */ + /** The resulting status of the return. Possible values: **Authorised**, **Declined**. */ public enum StatusEnum { - AUTHORISED(String.valueOf("Authorised")), DECLINED(String.valueOf("Declined")); @@ -55,7 +46,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -76,7 +67,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -87,8 +82,7 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANSFER_ID = "transferId"; private String transferId; - public ReturnTransferResponse() { - } + public ReturnTransferResponse() {} /** * The unique identifier of the return. @@ -103,6 +97,7 @@ public ReturnTransferResponse id(String id) { /** * The unique identifier of the return. + * * @return id The unique identifier of the return. */ @JsonProperty(JSON_PROPERTY_ID) @@ -135,6 +130,7 @@ public ReturnTransferResponse reference(String reference) { /** * Your internal reference for the return. + * * @return reference Your internal reference for the return. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -155,9 +151,10 @@ public void setReference(String reference) { } /** - * The resulting status of the return. Possible values: **Authorised**, **Declined**. + * The resulting status of the return. Possible values: **Authorised**, **Declined**. * - * @param status The resulting status of the return. Possible values: **Authorised**, **Declined**. + * @param status The resulting status of the return. Possible values: **Authorised**, + * **Declined**. * @return the current {@code ReturnTransferResponse} instance, allowing for method chaining */ public ReturnTransferResponse status(StatusEnum status) { @@ -166,8 +163,10 @@ public ReturnTransferResponse status(StatusEnum status) { } /** - * The resulting status of the return. Possible values: **Authorised**, **Declined**. - * @return status The resulting status of the return. Possible values: **Authorised**, **Declined**. + * The resulting status of the return. Possible values: **Authorised**, **Declined**. + * + * @return status The resulting status of the return. Possible values: **Authorised**, + * **Declined**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,9 +175,10 @@ public StatusEnum getStatus() { } /** - * The resulting status of the return. Possible values: **Authorised**, **Declined**. + * The resulting status of the return. Possible values: **Authorised**, **Declined**. * - * @param status The resulting status of the return. Possible values: **Authorised**, **Declined**. + * @param status The resulting status of the return. Possible values: **Authorised**, + * **Declined**. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -199,6 +199,7 @@ public ReturnTransferResponse transferId(String transferId) { /** * The unique identifier of the original transfer. + * * @return transferId The unique identifier of the original transfer. */ @JsonProperty(JSON_PROPERTY_TRANSFER_ID) @@ -218,9 +219,7 @@ public void setTransferId(String transferId) { this.transferId = transferId; } - /** - * Return true if this ReturnTransferResponse object is equal to o. - */ + /** Return true if this ReturnTransferResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -230,10 +229,10 @@ public boolean equals(Object o) { return false; } ReturnTransferResponse returnTransferResponse = (ReturnTransferResponse) o; - return Objects.equals(this.id, returnTransferResponse.id) && - Objects.equals(this.reference, returnTransferResponse.reference) && - Objects.equals(this.status, returnTransferResponse.status) && - Objects.equals(this.transferId, returnTransferResponse.transferId); + return Objects.equals(this.id, returnTransferResponse.id) + && Objects.equals(this.reference, returnTransferResponse.reference) + && Objects.equals(this.status, returnTransferResponse.status) + && Objects.equals(this.transferId, returnTransferResponse.transferId); } @Override @@ -254,8 +253,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -264,21 +262,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ReturnTransferResponse given an JSON string * * @param jsonString JSON string * @return An instance of ReturnTransferResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to ReturnTransferResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ReturnTransferResponse */ public static ReturnTransferResponse fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ReturnTransferResponse.class); } -/** - * Convert an instance of ReturnTransferResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ReturnTransferResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/RoutingDetails.java b/src/main/java/com/adyen/model/transfers/RoutingDetails.java index 2ec9dc2fb..52e94e611 100644 --- a/src/main/java/com/adyen/model/transfers/RoutingDetails.java +++ b/src/main/java/com/adyen/model/transfers/RoutingDetails.java @@ -2,38 +2,32 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * RoutingDetails - */ +/** RoutingDetails */ @JsonPropertyOrder({ RoutingDetails.JSON_PROPERTY_DETAIL, RoutingDetails.JSON_PROPERTY_ERROR_CODE, RoutingDetails.JSON_PROPERTY_PRIORITY, RoutingDetails.JSON_PROPERTY_TITLE }) - public class RoutingDetails { public static final String JSON_PROPERTY_DETAIL = "detail"; private String detail; @@ -42,10 +36,19 @@ public class RoutingDetails { private String errorCode; /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the + * fees that you have to pay. Required for transfers with `category` **bank**. Possible + * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer + * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * + * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). */ public enum PriorityEnum { - CROSSBORDER(String.valueOf("crossBorder")), FAST(String.valueOf("fast")), @@ -63,7 +66,7 @@ public enum PriorityEnum { private String value; PriorityEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -84,7 +87,11 @@ public static PriorityEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PriorityEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PriorityEnum.values())); + LOG.warning( + "PriorityEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PriorityEnum.values())); return null; } } @@ -95,8 +102,7 @@ public static PriorityEnum fromValue(String value) { public static final String JSON_PROPERTY_TITLE = "title"; private String title; - public RoutingDetails() { - } + public RoutingDetails() {} /** * A human-readable explanation specific to this occurrence of the problem. @@ -111,6 +117,7 @@ public RoutingDetails detail(String detail) { /** * A human-readable explanation specific to this occurrence of the problem. + * * @return detail A human-readable explanation specific to this occurrence of the problem. */ @JsonProperty(JSON_PROPERTY_DETAIL) @@ -143,6 +150,7 @@ public RoutingDetails errorCode(String errorCode) { /** * A code that identifies the problem type. + * * @return errorCode A code that identifies the problem type. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -163,9 +171,29 @@ public void setErrorCode(String errorCode) { } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the + * fees that you have to pay. Required for transfers with `category` **bank**. Possible + * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer + * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * + * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). * - * @param priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * @param priority The priority for the bank transfer. This sets the speed at which the transfer + * is sent and the fees that you have to pay. Required for transfers with `category` + * **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a + * faster way to transfer funds, but the fees are higher. Recommended for high-priority, + * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the + * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for + * instant funds transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). * @return the current {@code RoutingDetails} instance, allowing for method chaining */ public RoutingDetails priority(PriorityEnum priority) { @@ -174,8 +202,29 @@ public RoutingDetails priority(PriorityEnum priority) { } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). - * @return priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the + * fees that you have to pay. Required for transfers with `category` **bank**. Possible + * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer + * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * + * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). + * + * @return priority The priority for the bank transfer. This sets the speed at which the transfer + * is sent and the fees that you have to pay. Required for transfers with `category` + * **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a + * faster way to transfer funds, but the fees are higher. Recommended for high-priority, + * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the + * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for + * instant funds transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). */ @JsonProperty(JSON_PROPERTY_PRIORITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -184,9 +233,29 @@ public PriorityEnum getPriority() { } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the + * fees that you have to pay. Required for transfers with `category` **bank**. Possible + * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer + * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * + * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). * - * @param priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * @param priority The priority for the bank transfer. This sets the speed at which the transfer + * is sent and the fees that you have to pay. Required for transfers with `category` + * **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a + * faster way to transfer funds, but the fees are higher. Recommended for high-priority, + * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the + * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for + * instant funds transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). */ @JsonProperty(JSON_PROPERTY_PRIORITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -207,6 +276,7 @@ public RoutingDetails title(String title) { /** * A short, human-readable summary of the problem type. + * * @return title A short, human-readable summary of the problem type. */ @JsonProperty(JSON_PROPERTY_TITLE) @@ -226,9 +296,7 @@ public void setTitle(String title) { this.title = title; } - /** - * Return true if this RoutingDetails object is equal to o. - */ + /** Return true if this RoutingDetails object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -238,10 +306,10 @@ public boolean equals(Object o) { return false; } RoutingDetails routingDetails = (RoutingDetails) o; - return Objects.equals(this.detail, routingDetails.detail) && - Objects.equals(this.errorCode, routingDetails.errorCode) && - Objects.equals(this.priority, routingDetails.priority) && - Objects.equals(this.title, routingDetails.title); + return Objects.equals(this.detail, routingDetails.detail) + && Objects.equals(this.errorCode, routingDetails.errorCode) + && Objects.equals(this.priority, routingDetails.priority) + && Objects.equals(this.title, routingDetails.title); } @Override @@ -262,8 +330,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -272,7 +339,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RoutingDetails given an JSON string * * @param jsonString JSON string @@ -282,11 +349,12 @@ private String toIndentedString(Object o) { public static RoutingDetails fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RoutingDetails.class); } -/** - * Convert an instance of RoutingDetails to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RoutingDetails to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/SELocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/SELocalAccountIdentification.java index 4b57de7a1..23be7c97b 100644 --- a/src/main/java/com/adyen/model/transfers/SELocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/SELocalAccountIdentification.java @@ -2,37 +2,31 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * SELocalAccountIdentification - */ +/** SELocalAccountIdentification */ @JsonPropertyOrder({ SELocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, SELocalAccountIdentification.JSON_PROPERTY_CLEARING_NUMBER, SELocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class SELocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -40,11 +34,8 @@ public class SELocalAccountIdentification { public static final String JSON_PROPERTY_CLEARING_NUMBER = "clearingNumber"; private String clearingNumber; - /** - * **seLocal** - */ + /** **seLocal** */ public enum TypeEnum { - SELOCAL(String.valueOf("seLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +43,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +64,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,13 +76,16 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public SELocalAccountIdentification() { - } + public SELocalAccountIdentification() {} /** - * The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. + * The 7- to 10-digit bank account number + * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, + * separators, or whitespace. * - * @param accountNumber The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. + * @param accountNumber The 7- to 10-digit bank account number + * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, + * separators, or whitespace. * @return the current {@code SELocalAccountIdentification} instance, allowing for method chaining */ public SELocalAccountIdentification accountNumber(String accountNumber) { @@ -96,8 +94,13 @@ public SELocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. - * @return accountNumber The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. + * The 7- to 10-digit bank account number + * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, + * separators, or whitespace. + * + * @return accountNumber The 7- to 10-digit bank account number + * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, + * separators, or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +109,13 @@ public String getAccountNumber() { } /** - * The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. + * The 7- to 10-digit bank account number + * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, + * separators, or whitespace. * - * @param accountNumber The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. + * @param accountNumber The 7- to 10-digit bank account number + * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, + * separators, or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,9 +124,13 @@ public void setAccountNumber(String accountNumber) { } /** - * The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. + * The 4- to 5-digit clearing number + * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or + * whitespace. * - * @param clearingNumber The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. + * @param clearingNumber The 4- to 5-digit clearing number + * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or + * whitespace. * @return the current {@code SELocalAccountIdentification} instance, allowing for method chaining */ public SELocalAccountIdentification clearingNumber(String clearingNumber) { @@ -128,8 +139,13 @@ public SELocalAccountIdentification clearingNumber(String clearingNumber) { } /** - * The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. - * @return clearingNumber The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. + * The 4- to 5-digit clearing number + * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or + * whitespace. + * + * @return clearingNumber The 4- to 5-digit clearing number + * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or + * whitespace. */ @JsonProperty(JSON_PROPERTY_CLEARING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,9 +154,13 @@ public String getClearingNumber() { } /** - * The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. + * The 4- to 5-digit clearing number + * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or + * whitespace. * - * @param clearingNumber The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. + * @param clearingNumber The 4- to 5-digit clearing number + * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or + * whitespace. */ @JsonProperty(JSON_PROPERTY_CLEARING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,6 +181,7 @@ public SELocalAccountIdentification type(TypeEnum type) { /** * **seLocal** + * * @return type **seLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +201,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this SELocalAccountIdentification object is equal to o. - */ + /** Return true if this SELocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +211,9 @@ public boolean equals(Object o) { return false; } SELocalAccountIdentification seLocalAccountIdentification = (SELocalAccountIdentification) o; - return Objects.equals(this.accountNumber, seLocalAccountIdentification.accountNumber) && - Objects.equals(this.clearingNumber, seLocalAccountIdentification.clearingNumber) && - Objects.equals(this.type, seLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, seLocalAccountIdentification.accountNumber) + && Objects.equals(this.clearingNumber, seLocalAccountIdentification.clearingNumber) + && Objects.equals(this.type, seLocalAccountIdentification.type); } @Override @@ -214,8 +233,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +242,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SELocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of SELocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to SELocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SELocalAccountIdentification */ - public static SELocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static SELocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SELocalAccountIdentification.class); } -/** - * Convert an instance of SELocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SELocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/SGLocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/SGLocalAccountIdentification.java index 2a27dfc81..fca6b4551 100644 --- a/src/main/java/com/adyen/model/transfers/SGLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/SGLocalAccountIdentification.java @@ -2,37 +2,31 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * SGLocalAccountIdentification - */ +/** SGLocalAccountIdentification */ @JsonPropertyOrder({ SGLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, SGLocalAccountIdentification.JSON_PROPERTY_BIC, SGLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class SGLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -40,11 +34,8 @@ public class SGLocalAccountIdentification { public static final String JSON_PROPERTY_BIC = "bic"; private String bic; - /** - * **sgLocal** - */ + /** **sgLocal** */ public enum TypeEnum { - SGLOCAL(String.valueOf("sgLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +43,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +64,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,8 +76,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public SGLocalAccountIdentification() { - } + public SGLocalAccountIdentification() {} /** * The 4- to 19-digit bank account number, without separators or whitespace. @@ -97,6 +91,7 @@ public SGLocalAccountIdentification accountNumber(String accountNumber) { /** * The 4- to 19-digit bank account number, without separators or whitespace. + * * @return accountNumber The 4- to 19-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -129,6 +124,7 @@ public SGLocalAccountIdentification bic(String bic) { /** * The bank's 8- or 11-character BIC or SWIFT code. + * * @return bic The bank's 8- or 11-character BIC or SWIFT code. */ @JsonProperty(JSON_PROPERTY_BIC) @@ -161,6 +157,7 @@ public SGLocalAccountIdentification type(TypeEnum type) { /** * **sgLocal** + * * @return type **sgLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +177,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this SGLocalAccountIdentification object is equal to o. - */ + /** Return true if this SGLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +187,9 @@ public boolean equals(Object o) { return false; } SGLocalAccountIdentification sgLocalAccountIdentification = (SGLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, sgLocalAccountIdentification.accountNumber) && - Objects.equals(this.bic, sgLocalAccountIdentification.bic) && - Objects.equals(this.type, sgLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, sgLocalAccountIdentification.accountNumber) + && Objects.equals(this.bic, sgLocalAccountIdentification.bic) + && Objects.equals(this.type, sgLocalAccountIdentification.type); } @Override @@ -214,8 +209,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +218,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SGLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of SGLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to SGLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SGLocalAccountIdentification */ - public static SGLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static SGLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SGLocalAccountIdentification.class); } -/** - * Convert an instance of SGLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SGLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/ServiceError.java b/src/main/java/com/adyen/model/transfers/ServiceError.java index 30438a736..f16e39b25 100644 --- a/src/main/java/com/adyen/model/transfers/ServiceError.java +++ b/src/main/java/com/adyen/model/transfers/ServiceError.java @@ -2,31 +2,22 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ServiceError - */ +/** ServiceError */ @JsonPropertyOrder({ ServiceError.JSON_PROPERTY_ERROR_CODE, ServiceError.JSON_PROPERTY_ERROR_TYPE, @@ -34,7 +25,6 @@ ServiceError.JSON_PROPERTY_PSP_REFERENCE, ServiceError.JSON_PROPERTY_STATUS }) - public class ServiceError { public static final String JSON_PROPERTY_ERROR_CODE = "errorCode"; private String errorCode; @@ -51,8 +41,7 @@ public class ServiceError { public static final String JSON_PROPERTY_STATUS = "status"; private Integer status; - public ServiceError() { - } + public ServiceError() {} /** * The error code mapped to the error message. @@ -67,6 +56,7 @@ public ServiceError errorCode(String errorCode) { /** * The error code mapped to the error message. + * * @return errorCode The error code mapped to the error message. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -99,6 +89,7 @@ public ServiceError errorType(String errorType) { /** * The category of the error. + * * @return errorType The category of the error. */ @JsonProperty(JSON_PROPERTY_ERROR_TYPE) @@ -131,6 +122,7 @@ public ServiceError message(String message) { /** * A short explanation of the issue. + * * @return message A short explanation of the issue. */ @JsonProperty(JSON_PROPERTY_MESSAGE) @@ -163,6 +155,7 @@ public ServiceError pspReference(String pspReference) { /** * The PSP reference of the payment. + * * @return pspReference The PSP reference of the payment. */ @JsonProperty(JSON_PROPERTY_PSP_REFERENCE) @@ -195,6 +188,7 @@ public ServiceError status(Integer status) { /** * The HTTP response status. + * * @return status The HTTP response status. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -214,9 +208,7 @@ public void setStatus(Integer status) { this.status = status; } - /** - * Return true if this ServiceError object is equal to o. - */ + /** Return true if this ServiceError object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -226,11 +218,11 @@ public boolean equals(Object o) { return false; } ServiceError serviceError = (ServiceError) o; - return Objects.equals(this.errorCode, serviceError.errorCode) && - Objects.equals(this.errorType, serviceError.errorType) && - Objects.equals(this.message, serviceError.message) && - Objects.equals(this.pspReference, serviceError.pspReference) && - Objects.equals(this.status, serviceError.status); + return Objects.equals(this.errorCode, serviceError.errorCode) + && Objects.equals(this.errorType, serviceError.errorType) + && Objects.equals(this.message, serviceError.message) + && Objects.equals(this.pspReference, serviceError.pspReference) + && Objects.equals(this.status, serviceError.status); } @Override @@ -252,8 +244,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -262,7 +253,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ServiceError given an JSON string * * @param jsonString JSON string @@ -272,11 +263,12 @@ private String toIndentedString(Object o) { public static ServiceError fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } -/** - * Convert an instance of ServiceError to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ServiceError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/ThreeDSecure.java b/src/main/java/com/adyen/model/transfers/ThreeDSecure.java index a8fa2ff33..57100877c 100644 --- a/src/main/java/com/adyen/model/transfers/ThreeDSecure.java +++ b/src/main/java/com/adyen/model/transfers/ThreeDSecure.java @@ -2,41 +2,28 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ThreeDSecure - */ -@JsonPropertyOrder({ - ThreeDSecure.JSON_PROPERTY_ACS_TRANSACTION_ID -}) - +/** ThreeDSecure */ +@JsonPropertyOrder({ThreeDSecure.JSON_PROPERTY_ACS_TRANSACTION_ID}) public class ThreeDSecure { public static final String JSON_PROPERTY_ACS_TRANSACTION_ID = "acsTransactionId"; private String acsTransactionId; - public ThreeDSecure() { - } + public ThreeDSecure() {} /** * The transaction identifier for the Access Control Server @@ -51,6 +38,7 @@ public ThreeDSecure acsTransactionId(String acsTransactionId) { /** * The transaction identifier for the Access Control Server + * * @return acsTransactionId The transaction identifier for the Access Control Server */ @JsonProperty(JSON_PROPERTY_ACS_TRANSACTION_ID) @@ -70,9 +58,7 @@ public void setAcsTransactionId(String acsTransactionId) { this.acsTransactionId = acsTransactionId; } - /** - * Return true if this ThreeDSecure object is equal to o. - */ + /** Return true if this ThreeDSecure object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,7 +95,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ThreeDSecure given an JSON string * * @param jsonString JSON string @@ -120,11 +105,12 @@ private String toIndentedString(Object o) { public static ThreeDSecure fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDSecure.class); } -/** - * Convert an instance of ThreeDSecure to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ThreeDSecure to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/ThresholdRepayment.java b/src/main/java/com/adyen/model/transfers/ThresholdRepayment.java index a2a2b30dc..da5c340a2 100644 --- a/src/main/java/com/adyen/model/transfers/ThresholdRepayment.java +++ b/src/main/java/com/adyen/model/transfers/ThresholdRepayment.java @@ -2,47 +2,33 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.Amount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ThresholdRepayment - */ -@JsonPropertyOrder({ - ThresholdRepayment.JSON_PROPERTY_AMOUNT -}) - +/** ThresholdRepayment */ +@JsonPropertyOrder({ThresholdRepayment.JSON_PROPERTY_AMOUNT}) public class ThresholdRepayment { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; - public ThresholdRepayment() { - } + public ThresholdRepayment() {} /** * amount * - * @param amount + * @param amount * @return the current {@code ThresholdRepayment} instance, allowing for method chaining */ public ThresholdRepayment amount(Amount amount) { @@ -52,7 +38,8 @@ public ThresholdRepayment amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -63,7 +50,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,9 +58,7 @@ public void setAmount(Amount amount) { this.amount = amount; } - /** - * Return true if this ThresholdRepayment object is equal to o. - */ + /** Return true if this ThresholdRepayment object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -101,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -111,21 +95,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ThresholdRepayment given an JSON string * * @param jsonString JSON string * @return An instance of ThresholdRepayment - * @throws JsonProcessingException if the JSON string is invalid with respect to ThresholdRepayment + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ThresholdRepayment */ public static ThresholdRepayment fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThresholdRepayment.class); } -/** - * Convert an instance of ThresholdRepayment to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ThresholdRepayment to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/Transaction.java b/src/main/java/com/adyen/model/transfers/Transaction.java index 36cbbf10b..e2d17457e 100644 --- a/src/main/java/com/adyen/model/transfers/Transaction.java +++ b/src/main/java/com/adyen/model/transfers/Transaction.java @@ -2,36 +2,27 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.Amount; -import com.adyen.model.transfers.PaymentInstrument; -import com.adyen.model.transfers.ResourceReference; -import com.adyen.model.transfers.TransferView; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * Transaction - */ +/** Transaction */ @JsonPropertyOrder({ Transaction.JSON_PROPERTY_ACCOUNT_HOLDER, Transaction.JSON_PROPERTY_AMOUNT, @@ -47,7 +38,6 @@ Transaction.JSON_PROPERTY_TRANSFER, Transaction.JSON_PROPERTY_VALUE_DATE }) - public class Transaction { public static final String JSON_PROPERTY_ACCOUNT_HOLDER = "accountHolder"; private ResourceReference accountHolder; @@ -80,10 +70,10 @@ public class Transaction { private String referenceForBeneficiary; /** - * The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. + * The status of the transaction. Possible values: * **pending**: The transaction is still + * pending. * **booked**: The transaction has been booked to the balance account. */ public enum StatusEnum { - BOOKED(String.valueOf("booked")), PENDING(String.valueOf("pending")); @@ -93,7 +83,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -114,7 +104,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -128,13 +122,12 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUE_DATE = "valueDate"; private OffsetDateTime valueDate; - public Transaction() { - } + public Transaction() {} /** * accountHolder * - * @param accountHolder + * @param accountHolder * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction accountHolder(ResourceReference accountHolder) { @@ -144,7 +137,8 @@ public Transaction accountHolder(ResourceReference accountHolder) { /** * Get accountHolder - * @return accountHolder + * + * @return accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -155,7 +149,7 @@ public ResourceReference getAccountHolder() { /** * accountHolder * - * @param accountHolder + * @param accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -166,7 +160,7 @@ public void setAccountHolder(ResourceReference accountHolder) { /** * amount * - * @param amount + * @param amount * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction amount(Amount amount) { @@ -176,7 +170,8 @@ public Transaction amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,7 +182,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,7 +193,7 @@ public void setAmount(Amount amount) { /** * balanceAccount * - * @param balanceAccount + * @param balanceAccount * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction balanceAccount(ResourceReference balanceAccount) { @@ -208,7 +203,8 @@ public Transaction balanceAccount(ResourceReference balanceAccount) { /** * Get balanceAccount - * @return balanceAccount + * + * @return balanceAccount */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,7 +215,7 @@ public ResourceReference getBalanceAccount() { /** * balanceAccount * - * @param balanceAccount + * @param balanceAccount */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,6 +236,7 @@ public Transaction balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. + * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -272,6 +269,7 @@ public Transaction bookingDate(OffsetDateTime bookingDate) { /** * The date the transaction was booked into the balance account. + * * @return bookingDate The date the transaction was booked into the balance account. */ @JsonProperty(JSON_PROPERTY_BOOKING_DATE) @@ -292,9 +290,11 @@ public void setBookingDate(OffsetDateTime bookingDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction creationDate(OffsetDateTime creationDate) { @@ -303,8 +303,11 @@ public Transaction creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. + * + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -313,9 +316,11 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -336,6 +341,7 @@ public Transaction description(String description) { /** * The `description` from the `/transfers` request. + * * @return description The `description` from the `/transfers` request. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -368,6 +374,7 @@ public Transaction id(String id) { /** * The unique identifier of the transaction. + * * @return id The unique identifier of the transaction. */ @JsonProperty(JSON_PROPERTY_ID) @@ -390,7 +397,7 @@ public void setId(String id) { /** * paymentInstrument * - * @param paymentInstrument + * @param paymentInstrument * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction paymentInstrument(PaymentInstrument paymentInstrument) { @@ -400,7 +407,8 @@ public Transaction paymentInstrument(PaymentInstrument paymentInstrument) { /** * Get paymentInstrument - * @return paymentInstrument + * + * @return paymentInstrument */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -411,7 +419,7 @@ public PaymentInstrument getPaymentInstrument() { /** * paymentInstrument * - * @param paymentInstrument + * @param paymentInstrument */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -420,9 +428,18 @@ public void setPaymentInstrument(PaymentInstrument paymentInstrument) { } /** - * The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender. + * The reference sent to or received from the counterparty. * For outgoing funds, this is the + * [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) + * from the + * [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) + * request. * For incoming funds, this is the reference from the sender. * - * @param referenceForBeneficiary The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender. + * @param referenceForBeneficiary The reference sent to or received from the counterparty. * For + * outgoing funds, this is the + * [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) + * from the + * [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) + * request. * For incoming funds, this is the reference from the sender. * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction referenceForBeneficiary(String referenceForBeneficiary) { @@ -431,8 +448,18 @@ public Transaction referenceForBeneficiary(String referenceForBeneficiary) { } /** - * The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender. - * @return referenceForBeneficiary The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender. + * The reference sent to or received from the counterparty. * For outgoing funds, this is the + * [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) + * from the + * [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) + * request. * For incoming funds, this is the reference from the sender. + * + * @return referenceForBeneficiary The reference sent to or received from the counterparty. * For + * outgoing funds, this is the + * [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) + * from the + * [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) + * request. * For incoming funds, this is the reference from the sender. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -441,9 +468,18 @@ public String getReferenceForBeneficiary() { } /** - * The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender. + * The reference sent to or received from the counterparty. * For outgoing funds, this is the + * [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) + * from the + * [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) + * request. * For incoming funds, this is the reference from the sender. * - * @param referenceForBeneficiary The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender. + * @param referenceForBeneficiary The reference sent to or received from the counterparty. * For + * outgoing funds, this is the + * [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) + * from the + * [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) + * request. * For incoming funds, this is the reference from the sender. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -452,9 +488,11 @@ public void setReferenceForBeneficiary(String referenceForBeneficiary) { } /** - * The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. + * The status of the transaction. Possible values: * **pending**: The transaction is still + * pending. * **booked**: The transaction has been booked to the balance account. * - * @param status The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. + * @param status The status of the transaction. Possible values: * **pending**: The transaction is + * still pending. * **booked**: The transaction has been booked to the balance account. * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction status(StatusEnum status) { @@ -463,8 +501,11 @@ public Transaction status(StatusEnum status) { } /** - * The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. - * @return status The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. + * The status of the transaction. Possible values: * **pending**: The transaction is still + * pending. * **booked**: The transaction has been booked to the balance account. + * + * @return status The status of the transaction. Possible values: * **pending**: The transaction + * is still pending. * **booked**: The transaction has been booked to the balance account. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -473,9 +514,11 @@ public StatusEnum getStatus() { } /** - * The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. + * The status of the transaction. Possible values: * **pending**: The transaction is still + * pending. * **booked**: The transaction has been booked to the balance account. * - * @param status The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. + * @param status The status of the transaction. Possible values: * **pending**: The transaction is + * still pending. * **booked**: The transaction has been booked to the balance account. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -486,7 +529,7 @@ public void setStatus(StatusEnum status) { /** * transfer * - * @param transfer + * @param transfer * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction transfer(TransferView transfer) { @@ -496,7 +539,8 @@ public Transaction transfer(TransferView transfer) { /** * Get transfer - * @return transfer + * + * @return transfer */ @JsonProperty(JSON_PROPERTY_TRANSFER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -507,7 +551,7 @@ public TransferView getTransfer() { /** * transfer * - * @param transfer + * @param transfer */ @JsonProperty(JSON_PROPERTY_TRANSFER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -528,6 +572,7 @@ public Transaction valueDate(OffsetDateTime valueDate) { /** * The date the transfer amount becomes available in the balance account. + * * @return valueDate The date the transfer amount becomes available in the balance account. */ @JsonProperty(JSON_PROPERTY_VALUE_DATE) @@ -547,9 +592,7 @@ public void setValueDate(OffsetDateTime valueDate) { this.valueDate = valueDate; } - /** - * Return true if this Transaction object is equal to o. - */ + /** Return true if this Transaction object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -559,24 +602,37 @@ public boolean equals(Object o) { return false; } Transaction transaction = (Transaction) o; - return Objects.equals(this.accountHolder, transaction.accountHolder) && - Objects.equals(this.amount, transaction.amount) && - Objects.equals(this.balanceAccount, transaction.balanceAccount) && - Objects.equals(this.balancePlatform, transaction.balancePlatform) && - Objects.equals(this.bookingDate, transaction.bookingDate) && - Objects.equals(this.creationDate, transaction.creationDate) && - Objects.equals(this.description, transaction.description) && - Objects.equals(this.id, transaction.id) && - Objects.equals(this.paymentInstrument, transaction.paymentInstrument) && - Objects.equals(this.referenceForBeneficiary, transaction.referenceForBeneficiary) && - Objects.equals(this.status, transaction.status) && - Objects.equals(this.transfer, transaction.transfer) && - Objects.equals(this.valueDate, transaction.valueDate); + return Objects.equals(this.accountHolder, transaction.accountHolder) + && Objects.equals(this.amount, transaction.amount) + && Objects.equals(this.balanceAccount, transaction.balanceAccount) + && Objects.equals(this.balancePlatform, transaction.balancePlatform) + && Objects.equals(this.bookingDate, transaction.bookingDate) + && Objects.equals(this.creationDate, transaction.creationDate) + && Objects.equals(this.description, transaction.description) + && Objects.equals(this.id, transaction.id) + && Objects.equals(this.paymentInstrument, transaction.paymentInstrument) + && Objects.equals(this.referenceForBeneficiary, transaction.referenceForBeneficiary) + && Objects.equals(this.status, transaction.status) + && Objects.equals(this.transfer, transaction.transfer) + && Objects.equals(this.valueDate, transaction.valueDate); } @Override public int hashCode() { - return Objects.hash(accountHolder, amount, balanceAccount, balancePlatform, bookingDate, creationDate, description, id, paymentInstrument, referenceForBeneficiary, status, transfer, valueDate); + return Objects.hash( + accountHolder, + amount, + balanceAccount, + balancePlatform, + bookingDate, + creationDate, + description, + id, + paymentInstrument, + referenceForBeneficiary, + status, + transfer, + valueDate); } @Override @@ -592,7 +648,9 @@ public String toString() { sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" paymentInstrument: ").append(toIndentedString(paymentInstrument)).append("\n"); - sb.append(" referenceForBeneficiary: ").append(toIndentedString(referenceForBeneficiary)).append("\n"); + sb.append(" referenceForBeneficiary: ") + .append(toIndentedString(referenceForBeneficiary)) + .append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" transfer: ").append(toIndentedString(transfer)).append("\n"); sb.append(" valueDate: ").append(toIndentedString(valueDate)).append("\n"); @@ -601,8 +659,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -611,7 +668,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Transaction given an JSON string * * @param jsonString JSON string @@ -621,11 +678,12 @@ private String toIndentedString(Object o) { public static Transaction fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Transaction.class); } -/** - * Convert an instance of Transaction to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Transaction to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/TransactionEventViolation.java b/src/main/java/com/adyen/model/transfers/TransactionEventViolation.java index 069de2e42..fdafd0c06 100644 --- a/src/main/java/com/adyen/model/transfers/TransactionEventViolation.java +++ b/src/main/java/com/adyen/model/transfers/TransactionEventViolation.java @@ -2,39 +2,27 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.TransactionRuleReference; -import com.adyen.model.transfers.TransactionRuleSource; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TransactionEventViolation - */ +/** TransactionEventViolation */ @JsonPropertyOrder({ TransactionEventViolation.JSON_PROPERTY_REASON, TransactionEventViolation.JSON_PROPERTY_TRANSACTION_RULE, TransactionEventViolation.JSON_PROPERTY_TRANSACTION_RULE_SOURCE }) - public class TransactionEventViolation { public static final String JSON_PROPERTY_REASON = "reason"; private String reason; @@ -45,8 +33,7 @@ public class TransactionEventViolation { public static final String JSON_PROPERTY_TRANSACTION_RULE_SOURCE = "transactionRuleSource"; private TransactionRuleSource transactionRuleSource; - public TransactionEventViolation() { - } + public TransactionEventViolation() {} /** * An explanation about why the transaction rule failed. @@ -61,6 +48,7 @@ public TransactionEventViolation reason(String reason) { /** * An explanation about why the transaction rule failed. + * * @return reason An explanation about why the transaction rule failed. */ @JsonProperty(JSON_PROPERTY_REASON) @@ -83,7 +71,7 @@ public void setReason(String reason) { /** * transactionRule * - * @param transactionRule + * @param transactionRule * @return the current {@code TransactionEventViolation} instance, allowing for method chaining */ public TransactionEventViolation transactionRule(TransactionRuleReference transactionRule) { @@ -93,7 +81,8 @@ public TransactionEventViolation transactionRule(TransactionRuleReference transa /** * Get transactionRule - * @return transactionRule + * + * @return transactionRule */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,7 +93,7 @@ public TransactionRuleReference getTransactionRule() { /** * transactionRule * - * @param transactionRule + * @param transactionRule */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,17 +104,19 @@ public void setTransactionRule(TransactionRuleReference transactionRule) { /** * transactionRuleSource * - * @param transactionRuleSource + * @param transactionRuleSource * @return the current {@code TransactionEventViolation} instance, allowing for method chaining */ - public TransactionEventViolation transactionRuleSource(TransactionRuleSource transactionRuleSource) { + public TransactionEventViolation transactionRuleSource( + TransactionRuleSource transactionRuleSource) { this.transactionRuleSource = transactionRuleSource; return this; } /** * Get transactionRuleSource - * @return transactionRuleSource + * + * @return transactionRuleSource */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULE_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,7 +127,7 @@ public TransactionRuleSource getTransactionRuleSource() { /** * transactionRuleSource * - * @param transactionRuleSource + * @param transactionRuleSource */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULE_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,9 +135,7 @@ public void setTransactionRuleSource(TransactionRuleSource transactionRuleSource this.transactionRuleSource = transactionRuleSource; } - /** - * Return true if this TransactionEventViolation object is equal to o. - */ + /** Return true if this TransactionEventViolation object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,9 +145,10 @@ public boolean equals(Object o) { return false; } TransactionEventViolation transactionEventViolation = (TransactionEventViolation) o; - return Objects.equals(this.reason, transactionEventViolation.reason) && - Objects.equals(this.transactionRule, transactionEventViolation.transactionRule) && - Objects.equals(this.transactionRuleSource, transactionEventViolation.transactionRuleSource); + return Objects.equals(this.reason, transactionEventViolation.reason) + && Objects.equals(this.transactionRule, transactionEventViolation.transactionRule) + && Objects.equals( + this.transactionRuleSource, transactionEventViolation.transactionRuleSource); } @Override @@ -172,14 +162,15 @@ public String toString() { sb.append("class TransactionEventViolation {\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" transactionRule: ").append(toIndentedString(transactionRule)).append("\n"); - sb.append(" transactionRuleSource: ").append(toIndentedString(transactionRuleSource)).append("\n"); + sb.append(" transactionRuleSource: ") + .append(toIndentedString(transactionRuleSource)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -188,21 +179,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransactionEventViolation given an JSON string * * @param jsonString JSON string * @return An instance of TransactionEventViolation - * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionEventViolation + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TransactionEventViolation */ - public static TransactionEventViolation fromJson(String jsonString) throws JsonProcessingException { + public static TransactionEventViolation fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionEventViolation.class); } -/** - * Convert an instance of TransactionEventViolation to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransactionEventViolation to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/TransactionRuleReference.java b/src/main/java/com/adyen/model/transfers/TransactionRuleReference.java index 071efac1d..4863931e3 100644 --- a/src/main/java/com/adyen/model/transfers/TransactionRuleReference.java +++ b/src/main/java/com/adyen/model/transfers/TransactionRuleReference.java @@ -2,31 +2,22 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TransactionRuleReference - */ +/** TransactionRuleReference */ @JsonPropertyOrder({ TransactionRuleReference.JSON_PROPERTY_DESCRIPTION, TransactionRuleReference.JSON_PROPERTY_ID, @@ -34,7 +25,6 @@ TransactionRuleReference.JSON_PROPERTY_REFERENCE, TransactionRuleReference.JSON_PROPERTY_SCORE }) - public class TransactionRuleReference { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -51,8 +41,7 @@ public class TransactionRuleReference { public static final String JSON_PROPERTY_SCORE = "score"; private Integer score; - public TransactionRuleReference() { - } + public TransactionRuleReference() {} /** * The description of the resource. @@ -67,6 +56,7 @@ public TransactionRuleReference description(String description) { /** * The description of the resource. + * * @return description The description of the resource. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -99,6 +89,7 @@ public TransactionRuleReference id(String id) { /** * The unique identifier of the resource. + * * @return id The unique identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -131,6 +122,7 @@ public TransactionRuleReference outcomeType(String outcomeType) { /** * The outcome type of the rule. + * * @return outcomeType The outcome type of the rule. */ @JsonProperty(JSON_PROPERTY_OUTCOME_TYPE) @@ -163,6 +155,7 @@ public TransactionRuleReference reference(String reference) { /** * The reference for the resource. + * * @return reference The reference for the resource. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -183,9 +176,11 @@ public void setReference(String reference) { } /** - * The transaction score determined by the rule. Returned only when `outcomeType` is **scoreBased**. + * The transaction score determined by the rule. Returned only when `outcomeType` is + * **scoreBased**. * - * @param score The transaction score determined by the rule. Returned only when `outcomeType` is **scoreBased**. + * @param score The transaction score determined by the rule. Returned only when + * `outcomeType` is **scoreBased**. * @return the current {@code TransactionRuleReference} instance, allowing for method chaining */ public TransactionRuleReference score(Integer score) { @@ -194,8 +189,11 @@ public TransactionRuleReference score(Integer score) { } /** - * The transaction score determined by the rule. Returned only when `outcomeType` is **scoreBased**. - * @return score The transaction score determined by the rule. Returned only when `outcomeType` is **scoreBased**. + * The transaction score determined by the rule. Returned only when `outcomeType` is + * **scoreBased**. + * + * @return score The transaction score determined by the rule. Returned only when + * `outcomeType` is **scoreBased**. */ @JsonProperty(JSON_PROPERTY_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,9 +202,11 @@ public Integer getScore() { } /** - * The transaction score determined by the rule. Returned only when `outcomeType` is **scoreBased**. + * The transaction score determined by the rule. Returned only when `outcomeType` is + * **scoreBased**. * - * @param score The transaction score determined by the rule. Returned only when `outcomeType` is **scoreBased**. + * @param score The transaction score determined by the rule. Returned only when + * `outcomeType` is **scoreBased**. */ @JsonProperty(JSON_PROPERTY_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,9 +214,7 @@ public void setScore(Integer score) { this.score = score; } - /** - * Return true if this TransactionRuleReference object is equal to o. - */ + /** Return true if this TransactionRuleReference object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -226,11 +224,11 @@ public boolean equals(Object o) { return false; } TransactionRuleReference transactionRuleReference = (TransactionRuleReference) o; - return Objects.equals(this.description, transactionRuleReference.description) && - Objects.equals(this.id, transactionRuleReference.id) && - Objects.equals(this.outcomeType, transactionRuleReference.outcomeType) && - Objects.equals(this.reference, transactionRuleReference.reference) && - Objects.equals(this.score, transactionRuleReference.score); + return Objects.equals(this.description, transactionRuleReference.description) + && Objects.equals(this.id, transactionRuleReference.id) + && Objects.equals(this.outcomeType, transactionRuleReference.outcomeType) + && Objects.equals(this.reference, transactionRuleReference.reference) + && Objects.equals(this.score, transactionRuleReference.score); } @Override @@ -252,8 +250,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -262,21 +259,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransactionRuleReference given an JSON string * * @param jsonString JSON string * @return An instance of TransactionRuleReference - * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionRuleReference + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TransactionRuleReference */ - public static TransactionRuleReference fromJson(String jsonString) throws JsonProcessingException { + public static TransactionRuleReference fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionRuleReference.class); } -/** - * Convert an instance of TransactionRuleReference to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransactionRuleReference to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/TransactionRuleSource.java b/src/main/java/com/adyen/model/transfers/TransactionRuleSource.java index 71e622d9a..4b0a7e173 100644 --- a/src/main/java/com/adyen/model/transfers/TransactionRuleSource.java +++ b/src/main/java/com/adyen/model/transfers/TransactionRuleSource.java @@ -2,36 +2,26 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TransactionRuleSource - */ +/** TransactionRuleSource */ @JsonPropertyOrder({ TransactionRuleSource.JSON_PROPERTY_ID, TransactionRuleSource.JSON_PROPERTY_TYPE }) - public class TransactionRuleSource { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -39,8 +29,7 @@ public class TransactionRuleSource { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public TransactionRuleSource() { - } + public TransactionRuleSource() {} /** * ID of the resource, when applicable. @@ -55,6 +44,7 @@ public TransactionRuleSource id(String id) { /** * ID of the resource, when applicable. + * * @return id ID of the resource, when applicable. */ @JsonProperty(JSON_PROPERTY_ID) @@ -75,9 +65,15 @@ public void setId(String id) { } /** - * Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. + * Indicates the type of resource for which the transaction rule is defined. Possible values: * + * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * + * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule + * imposed by Adyen. * - * @param type Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. + * @param type Indicates the type of resource for which the transaction rule is defined. Possible + * values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * + * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide + * rule imposed by Adyen. * @return the current {@code TransactionRuleSource} instance, allowing for method chaining */ public TransactionRuleSource type(String type) { @@ -86,8 +82,15 @@ public TransactionRuleSource type(String type) { } /** - * Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. - * @return type Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. + * Indicates the type of resource for which the transaction rule is defined. Possible values: * + * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * + * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule + * imposed by Adyen. + * + * @return type Indicates the type of resource for which the transaction rule is defined. Possible + * values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * + * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide + * rule imposed by Adyen. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +99,15 @@ public String getType() { } /** - * Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. + * Indicates the type of resource for which the transaction rule is defined. Possible values: * + * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * + * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule + * imposed by Adyen. * - * @param type Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. + * @param type Indicates the type of resource for which the transaction rule is defined. Possible + * values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * + * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide + * rule imposed by Adyen. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +115,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this TransactionRuleSource object is equal to o. - */ + /** Return true if this TransactionRuleSource object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +125,8 @@ public boolean equals(Object o) { return false; } TransactionRuleSource transactionRuleSource = (TransactionRuleSource) o; - return Objects.equals(this.id, transactionRuleSource.id) && - Objects.equals(this.type, transactionRuleSource.type); + return Objects.equals(this.id, transactionRuleSource.id) + && Objects.equals(this.type, transactionRuleSource.type); } @Override @@ -138,8 +145,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +154,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransactionRuleSource given an JSON string * * @param jsonString JSON string * @return An instance of TransactionRuleSource - * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionRuleSource + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TransactionRuleSource */ public static TransactionRuleSource fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionRuleSource.class); } -/** - * Convert an instance of TransactionRuleSource to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransactionRuleSource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/TransactionRulesResult.java b/src/main/java/com/adyen/model/transfers/TransactionRulesResult.java index fcc503da8..ec5f302c8 100644 --- a/src/main/java/com/adyen/model/transfers/TransactionRulesResult.java +++ b/src/main/java/com/adyen/model/transfers/TransactionRulesResult.java @@ -2,41 +2,30 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.TransactionEventViolation; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * TransactionRulesResult - */ +/** TransactionRulesResult */ @JsonPropertyOrder({ TransactionRulesResult.JSON_PROPERTY_ADVICE, TransactionRulesResult.JSON_PROPERTY_ALL_HARD_BLOCK_RULES_PASSED, TransactionRulesResult.JSON_PROPERTY_SCORE, TransactionRulesResult.JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES }) - public class TransactionRulesResult { public static final String JSON_PROPERTY_ADVICE = "advice"; private String advice; @@ -47,11 +36,11 @@ public class TransactionRulesResult { public static final String JSON_PROPERTY_SCORE = "score"; private Integer score; - public static final String JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES = "triggeredTransactionRules"; + public static final String JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES = + "triggeredTransactionRules"; private List triggeredTransactionRules; - public TransactionRulesResult() { - } + public TransactionRulesResult() {} /** * The advice given by the Risk analysis. @@ -66,6 +55,7 @@ public TransactionRulesResult advice(String advice) { /** * The advice given by the Risk analysis. + * * @return advice The advice given by the Risk analysis. */ @JsonProperty(JSON_PROPERTY_ADVICE) @@ -88,7 +78,8 @@ public void setAdvice(String advice) { /** * Indicates whether the transaction passed the evaluation for all hardblock rules * - * @param allHardBlockRulesPassed Indicates whether the transaction passed the evaluation for all hardblock rules + * @param allHardBlockRulesPassed Indicates whether the transaction passed the evaluation for all + * hardblock rules * @return the current {@code TransactionRulesResult} instance, allowing for method chaining */ public TransactionRulesResult allHardBlockRulesPassed(Boolean allHardBlockRulesPassed) { @@ -98,7 +89,9 @@ public TransactionRulesResult allHardBlockRulesPassed(Boolean allHardBlockRulesP /** * Indicates whether the transaction passed the evaluation for all hardblock rules - * @return allHardBlockRulesPassed Indicates whether the transaction passed the evaluation for all hardblock rules + * + * @return allHardBlockRulesPassed Indicates whether the transaction passed the evaluation for all + * hardblock rules */ @JsonProperty(JSON_PROPERTY_ALL_HARD_BLOCK_RULES_PASSED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -109,7 +102,8 @@ public Boolean getAllHardBlockRulesPassed() { /** * Indicates whether the transaction passed the evaluation for all hardblock rules * - * @param allHardBlockRulesPassed Indicates whether the transaction passed the evaluation for all hardblock rules + * @param allHardBlockRulesPassed Indicates whether the transaction passed the evaluation for all + * hardblock rules */ @JsonProperty(JSON_PROPERTY_ALL_HARD_BLOCK_RULES_PASSED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -130,6 +124,7 @@ public TransactionRulesResult score(Integer score) { /** * The score of the Risk analysis. + * * @return score The score of the Risk analysis. */ @JsonProperty(JSON_PROPERTY_SCORE) @@ -152,15 +147,18 @@ public void setScore(Integer score) { /** * Array containing all the transaction rules that the transaction triggered. * - * @param triggeredTransactionRules Array containing all the transaction rules that the transaction triggered. + * @param triggeredTransactionRules Array containing all the transaction rules that the + * transaction triggered. * @return the current {@code TransactionRulesResult} instance, allowing for method chaining */ - public TransactionRulesResult triggeredTransactionRules(List triggeredTransactionRules) { + public TransactionRulesResult triggeredTransactionRules( + List triggeredTransactionRules) { this.triggeredTransactionRules = triggeredTransactionRules; return this; } - public TransactionRulesResult addTriggeredTransactionRulesItem(TransactionEventViolation triggeredTransactionRulesItem) { + public TransactionRulesResult addTriggeredTransactionRulesItem( + TransactionEventViolation triggeredTransactionRulesItem) { if (this.triggeredTransactionRules == null) { this.triggeredTransactionRules = new ArrayList<>(); } @@ -170,7 +168,9 @@ public TransactionRulesResult addTriggeredTransactionRulesItem(TransactionEventV /** * Array containing all the transaction rules that the transaction triggered. - * @return triggeredTransactionRules Array containing all the transaction rules that the transaction triggered. + * + * @return triggeredTransactionRules Array containing all the transaction rules that the + * transaction triggered. */ @JsonProperty(JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,17 +181,17 @@ public List getTriggeredTransactionRules() { /** * Array containing all the transaction rules that the transaction triggered. * - * @param triggeredTransactionRules Array containing all the transaction rules that the transaction triggered. + * @param triggeredTransactionRules Array containing all the transaction rules that the + * transaction triggered. */ @JsonProperty(JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTriggeredTransactionRules(List triggeredTransactionRules) { + public void setTriggeredTransactionRules( + List triggeredTransactionRules) { this.triggeredTransactionRules = triggeredTransactionRules; } - /** - * Return true if this TransactionRulesResult object is equal to o. - */ + /** Return true if this TransactionRulesResult object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -201,10 +201,12 @@ public boolean equals(Object o) { return false; } TransactionRulesResult transactionRulesResult = (TransactionRulesResult) o; - return Objects.equals(this.advice, transactionRulesResult.advice) && - Objects.equals(this.allHardBlockRulesPassed, transactionRulesResult.allHardBlockRulesPassed) && - Objects.equals(this.score, transactionRulesResult.score) && - Objects.equals(this.triggeredTransactionRules, transactionRulesResult.triggeredTransactionRules); + return Objects.equals(this.advice, transactionRulesResult.advice) + && Objects.equals( + this.allHardBlockRulesPassed, transactionRulesResult.allHardBlockRulesPassed) + && Objects.equals(this.score, transactionRulesResult.score) + && Objects.equals( + this.triggeredTransactionRules, transactionRulesResult.triggeredTransactionRules); } @Override @@ -217,16 +219,19 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TransactionRulesResult {\n"); sb.append(" advice: ").append(toIndentedString(advice)).append("\n"); - sb.append(" allHardBlockRulesPassed: ").append(toIndentedString(allHardBlockRulesPassed)).append("\n"); + sb.append(" allHardBlockRulesPassed: ") + .append(toIndentedString(allHardBlockRulesPassed)) + .append("\n"); sb.append(" score: ").append(toIndentedString(score)).append("\n"); - sb.append(" triggeredTransactionRules: ").append(toIndentedString(triggeredTransactionRules)).append("\n"); + sb.append(" triggeredTransactionRules: ") + .append(toIndentedString(triggeredTransactionRules)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -235,21 +240,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransactionRulesResult given an JSON string * * @param jsonString JSON string * @return An instance of TransactionRulesResult - * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionRulesResult + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TransactionRulesResult */ public static TransactionRulesResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionRulesResult.class); } -/** - * Convert an instance of TransactionRulesResult to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransactionRulesResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/TransactionSearchResponse.java b/src/main/java/com/adyen/model/transfers/TransactionSearchResponse.java index 9f5d21dc6..7f4e62408 100644 --- a/src/main/java/com/adyen/model/transfers/TransactionSearchResponse.java +++ b/src/main/java/com/adyen/model/transfers/TransactionSearchResponse.java @@ -2,40 +2,28 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.Links; -import com.adyen.model.transfers.Transaction; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * TransactionSearchResponse - */ +/** TransactionSearchResponse */ @JsonPropertyOrder({ TransactionSearchResponse.JSON_PROPERTY_LINKS, TransactionSearchResponse.JSON_PROPERTY_DATA }) - public class TransactionSearchResponse { public static final String JSON_PROPERTY_LINKS = "_links"; private Links links; @@ -43,13 +31,12 @@ public class TransactionSearchResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data; - public TransactionSearchResponse() { - } + public TransactionSearchResponse() {} /** * links * - * @param links + * @param links * @return the current {@code TransactionSearchResponse} instance, allowing for method chaining */ public TransactionSearchResponse links(Links links) { @@ -59,7 +46,8 @@ public TransactionSearchResponse links(Links links) { /** * Get links - * @return links + * + * @return links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,7 +58,7 @@ public Links getLinks() { /** * links * - * @param links + * @param links */ @JsonProperty(JSON_PROPERTY_LINKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -99,6 +87,7 @@ public TransactionSearchResponse addDataItem(Transaction dataItem) { /** * Contains the transactions that match the query parameters. + * * @return data Contains the transactions that match the query parameters. */ @JsonProperty(JSON_PROPERTY_DATA) @@ -118,9 +107,7 @@ public void setData(List data) { this.data = data; } - /** - * Return true if this TransactionSearchResponse object is equal to o. - */ + /** Return true if this TransactionSearchResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -130,8 +117,8 @@ public boolean equals(Object o) { return false; } TransactionSearchResponse transactionSearchResponse = (TransactionSearchResponse) o; - return Objects.equals(this.links, transactionSearchResponse.links) && - Objects.equals(this.data, transactionSearchResponse.data); + return Objects.equals(this.links, transactionSearchResponse.links) + && Objects.equals(this.data, transactionSearchResponse.data); } @Override @@ -150,8 +137,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -160,21 +146,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransactionSearchResponse given an JSON string * * @param jsonString JSON string * @return An instance of TransactionSearchResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionSearchResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TransactionSearchResponse */ - public static TransactionSearchResponse fromJson(String jsonString) throws JsonProcessingException { + public static TransactionSearchResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionSearchResponse.class); } -/** - * Convert an instance of TransactionSearchResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransactionSearchResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/Transfer.java b/src/main/java/com/adyen/model/transfers/Transfer.java index 8a21ce90f..6d7ee7e5f 100644 --- a/src/main/java/com/adyen/model/transfers/Transfer.java +++ b/src/main/java/com/adyen/model/transfers/Transfer.java @@ -2,40 +2,27 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.Amount; -import com.adyen.model.transfers.CounterpartyV3; -import com.adyen.model.transfers.DirectDebitInformation; -import com.adyen.model.transfers.ExecutionDate; -import com.adyen.model.transfers.PaymentInstrument; -import com.adyen.model.transfers.ResourceReference; -import com.adyen.model.transfers.TransferCategoryData; -import com.adyen.model.transfers.TransferReview; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * Transfer - */ +/** Transfer */ @JsonPropertyOrder({ Transfer.JSON_PROPERTY_ACCOUNT_HOLDER, Transfer.JSON_PROPERTY_AMOUNT, @@ -58,7 +45,6 @@ Transfer.JSON_PROPERTY_STATUS, Transfer.JSON_PROPERTY_TYPE }) - public class Transfer { public static final String JSON_PROPERTY_ACCOUNT_HOLDER = "accountHolder"; private ResourceReference accountHolder; @@ -70,10 +56,16 @@ public class Transfer { private ResourceReference balanceAccount; /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a + * transfer between [balance + * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - + * **platformPayment**: funds movements related to payments that are acquired for your users. - + * **topUp**: an incoming transfer initiated by your user to top up their balance account. */ public enum CategoryEnum { - BANK(String.valueOf("bank")), CARD(String.valueOf("card")), @@ -91,7 +83,7 @@ public enum CategoryEnum { private String value; CategoryEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -112,7 +104,11 @@ public static CategoryEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("CategoryEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CategoryEnum.values())); + LOG.warning( + "CategoryEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(CategoryEnum.values())); return null; } } @@ -139,11 +135,8 @@ public static CategoryEnum fromValue(String value) { public static final String JSON_PROPERTY_DIRECT_DEBIT_INFORMATION = "directDebitInformation"; private DirectDebitInformation directDebitInformation; - /** - * The direction of the transfer. Possible values: **incoming**, **outgoing**. - */ + /** The direction of the transfer. Possible values: **incoming**, **outgoing**. */ public enum DirectionEnum { - INCOMING(String.valueOf("incoming")), OUTGOING(String.valueOf("outgoing")); @@ -153,7 +146,7 @@ public enum DirectionEnum { private String value; DirectionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -174,7 +167,11 @@ public static DirectionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("DirectionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(DirectionEnum.values())); + LOG.warning( + "DirectionEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(DirectionEnum.values())); return null; } } @@ -191,11 +188,8 @@ public static DirectionEnum fromValue(String value) { public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT = "paymentInstrument"; private PaymentInstrument paymentInstrument; - /** - * Additional information about the status of the transfer. - */ + /** Additional information about the status of the transfer. */ public enum ReasonEnum { - ACCOUNTHIERARCHYNOTACTIVE(String.valueOf("accountHierarchyNotActive")), AMOUNTLIMITEXCEEDED(String.valueOf("amountLimitExceeded")), @@ -204,7 +198,8 @@ public enum ReasonEnum { APPROVED(String.valueOf("approved")), - BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE(String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), + BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE( + String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), COUNTERPARTYACCOUNTBLOCKED(String.valueOf("counterpartyAccountBlocked")), @@ -251,7 +246,7 @@ public enum ReasonEnum { private String value; ReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -272,7 +267,11 @@ public static ReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ReasonEnum.values())); + LOG.warning( + "ReasonEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ReasonEnum.values())); return null; } } @@ -290,10 +289,13 @@ public static ReasonEnum fromValue(String value) { private TransferReview review; /** - * The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. + * The result of the transfer. For example: - **received**: an outgoing transfer request is + * created. - **authorised**: the transfer request is authorized and the funds are reserved. - + * **booked**: the funds are deducted from your user's balance account. - **failed**: the + * transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned + * by the counterparty's bank. */ public enum StatusEnum { - APPROVALPENDING(String.valueOf("approvalPending")), ATMWITHDRAWAL(String.valueOf("atmWithdrawal")), @@ -433,7 +435,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -454,7 +456,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -463,10 +469,10 @@ public static StatusEnum fromValue(String value) { private StatusEnum status; /** - * The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. + * The type of transfer or transaction. For example, **refund**, **payment**, + * **internalTransfer**, **bankTransfer**. */ public enum TypeEnum { - PAYMENT(String.valueOf("payment")), CAPTURE(String.valueOf("capture")), @@ -548,7 +554,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -569,7 +575,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -577,13 +587,12 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public Transfer() { - } + public Transfer() {} /** * accountHolder * - * @param accountHolder + * @param accountHolder * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer accountHolder(ResourceReference accountHolder) { @@ -593,7 +602,8 @@ public Transfer accountHolder(ResourceReference accountHolder) { /** * Get accountHolder - * @return accountHolder + * + * @return accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -604,7 +614,7 @@ public ResourceReference getAccountHolder() { /** * accountHolder * - * @param accountHolder + * @param accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -615,7 +625,7 @@ public void setAccountHolder(ResourceReference accountHolder) { /** * amount * - * @param amount + * @param amount * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer amount(Amount amount) { @@ -625,7 +635,8 @@ public Transfer amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -636,7 +647,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -647,7 +658,7 @@ public void setAmount(Amount amount) { /** * balanceAccount * - * @param balanceAccount + * @param balanceAccount * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer balanceAccount(ResourceReference balanceAccount) { @@ -657,7 +668,8 @@ public Transfer balanceAccount(ResourceReference balanceAccount) { /** * Get balanceAccount - * @return balanceAccount + * + * @return balanceAccount */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -668,7 +680,7 @@ public ResourceReference getBalanceAccount() { /** * balanceAccount * - * @param balanceAccount + * @param balanceAccount */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -677,9 +689,24 @@ public void setBalanceAccount(ResourceReference balanceAccount) { } /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a + * transfer between [balance + * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - + * **platformPayment**: funds movements related to payments that are acquired for your users. - + * **topUp**: an incoming transfer initiated by your user to top up their balance account. * - * @param category The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * @param category The category of the transfer. Possible values: - **bank**: a transfer involving + * a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a + * transfer between [balance + * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - + * **platformPayment**: funds movements related to payments that are acquired for your users. + * - **topUp**: an incoming transfer initiated by your user to top up their balance account. * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer category(CategoryEnum category) { @@ -688,8 +715,24 @@ public Transfer category(CategoryEnum category) { } /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. - * @return category The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a + * transfer between [balance + * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - + * **platformPayment**: funds movements related to payments that are acquired for your users. - + * **topUp**: an incoming transfer initiated by your user to top up their balance account. + * + * @return category The category of the transfer. Possible values: - **bank**: a transfer + * involving a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a + * transfer between [balance + * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - + * **platformPayment**: funds movements related to payments that are acquired for your users. + * - **topUp**: an incoming transfer initiated by your user to top up their balance account. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -698,9 +741,24 @@ public CategoryEnum getCategory() { } /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a + * transfer between [balance + * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - + * **platformPayment**: funds movements related to payments that are acquired for your users. - + * **topUp**: an incoming transfer initiated by your user to top up their balance account. * - * @param category The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * @param category The category of the transfer. Possible values: - **bank**: a transfer involving + * a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a + * transfer between [balance + * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - + * **platformPayment**: funds movements related to payments that are acquired for your users. + * - **topUp**: an incoming transfer initiated by your user to top up their balance account. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -711,7 +769,7 @@ public void setCategory(CategoryEnum category) { /** * categoryData * - * @param categoryData + * @param categoryData * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer categoryData(TransferCategoryData categoryData) { @@ -721,7 +779,8 @@ public Transfer categoryData(TransferCategoryData categoryData) { /** * Get categoryData - * @return categoryData + * + * @return categoryData */ @JsonProperty(JSON_PROPERTY_CATEGORY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -732,7 +791,7 @@ public TransferCategoryData getCategoryData() { /** * categoryData * - * @param categoryData + * @param categoryData */ @JsonProperty(JSON_PROPERTY_CATEGORY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -743,7 +802,7 @@ public void setCategoryData(TransferCategoryData categoryData) { /** * counterparty * - * @param counterparty + * @param counterparty * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer counterparty(CounterpartyV3 counterparty) { @@ -753,7 +812,8 @@ public Transfer counterparty(CounterpartyV3 counterparty) { /** * Get counterparty - * @return counterparty + * + * @return counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -764,7 +824,7 @@ public CounterpartyV3 getCounterparty() { /** * counterparty * - * @param counterparty + * @param counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -773,9 +833,11 @@ public void setCounterparty(CounterpartyV3 counterparty) { } /** - * The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the transfer was created, in ISO 8601 extended format. For example, + * **2020-12-18T10:15:30+01:00**. * - * @param createdAt The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * @param createdAt The date and time when the transfer was created, in ISO 8601 extended format. + * For example, **2020-12-18T10:15:30+01:00**. * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer createdAt(OffsetDateTime createdAt) { @@ -784,8 +846,11 @@ public Transfer createdAt(OffsetDateTime createdAt) { } /** - * The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. - * @return createdAt The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the transfer was created, in ISO 8601 extended format. For example, + * **2020-12-18T10:15:30+01:00**. + * + * @return createdAt The date and time when the transfer was created, in ISO 8601 extended format. + * For example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -794,9 +859,11 @@ public OffsetDateTime getCreatedAt() { } /** - * The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the transfer was created, in ISO 8601 extended format. For example, + * **2020-12-18T10:15:30+01:00**. * - * @param createdAt The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * @param createdAt The date and time when the transfer was created, in ISO 8601 extended format. + * For example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -805,13 +872,13 @@ public void setCreatedAt(OffsetDateTime createdAt) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2020-12-18T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2020-12-18T10:15:30+01:00**. * @return the current {@code Transfer} instance, allowing for method chaining - * - * @deprecated since Transfers API v3 - * Use createdAt or updatedAt + * @deprecated since Transfers API v3 Use createdAt or updatedAt */ @Deprecated // deprecated since Transfers API v3: Use createdAt or updatedAt public Transfer creationDate(OffsetDateTime creationDate) { @@ -820,8 +887,11 @@ public Transfer creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2020-12-18T10:15:30+01:00**. + * + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2020-12-18T10:15:30+01:00**. * @deprecated // deprecated since Transfers API v3: Use createdAt or updatedAt */ @Deprecated // deprecated since Transfers API v3: Use createdAt or updatedAt @@ -832,12 +902,12 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2020-12-18T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. - * - * @deprecated since Transfers API v3 - * Use createdAt or updatedAt + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2020-12-18T10:15:30+01:00**. + * @deprecated since Transfers API v3 Use createdAt or updatedAt */ @Deprecated // deprecated since Transfers API v3: Use createdAt or updatedAt @JsonProperty(JSON_PROPERTY_CREATION_DATE) @@ -847,9 +917,17 @@ public void setCreationDate(OffsetDateTime creationDate) { } /** - * Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * Your description for the transfer. It is used by most banks as the transfer description. We + * recommend sending a maximum of 140 characters, otherwise the description may be truncated. + * Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported + * characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] + * & $ % # @** **~ = + - _ ' \" ! ?** * - * @param description Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * @param description Your description for the transfer. It is used by most banks as the transfer + * description. We recommend sending a maximum of 140 characters, otherwise the description + * may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + + * Space** Supported characters for **regular** and **fast** transfers to a US counterparty: + * **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer description(String description) { @@ -858,8 +936,17 @@ public Transfer description(String description) { } /** - * Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** - * @return description Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * Your description for the transfer. It is used by most banks as the transfer description. We + * recommend sending a maximum of 140 characters, otherwise the description may be truncated. + * Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported + * characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] + * & $ % # @** **~ = + - _ ' \" ! ?** + * + * @return description Your description for the transfer. It is used by most banks as the transfer + * description. We recommend sending a maximum of 140 characters, otherwise the description + * may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + + * Space** Supported characters for **regular** and **fast** transfers to a US counterparty: + * **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -868,9 +955,17 @@ public String getDescription() { } /** - * Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * Your description for the transfer. It is used by most banks as the transfer description. We + * recommend sending a maximum of 140 characters, otherwise the description may be truncated. + * Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported + * characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] + * & $ % # @** **~ = + - _ ' \" ! ?** * - * @param description Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * @param description Your description for the transfer. It is used by most banks as the transfer + * description. We recommend sending a maximum of 140 characters, otherwise the description + * may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + + * Space** Supported characters for **regular** and **fast** transfers to a US counterparty: + * **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -881,7 +976,7 @@ public void setDescription(String description) { /** * directDebitInformation * - * @param directDebitInformation + * @param directDebitInformation * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer directDebitInformation(DirectDebitInformation directDebitInformation) { @@ -891,7 +986,8 @@ public Transfer directDebitInformation(DirectDebitInformation directDebitInforma /** * Get directDebitInformation - * @return directDebitInformation + * + * @return directDebitInformation */ @JsonProperty(JSON_PROPERTY_DIRECT_DEBIT_INFORMATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -902,7 +998,7 @@ public DirectDebitInformation getDirectDebitInformation() { /** * directDebitInformation * - * @param directDebitInformation + * @param directDebitInformation */ @JsonProperty(JSON_PROPERTY_DIRECT_DEBIT_INFORMATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -911,9 +1007,9 @@ public void setDirectDebitInformation(DirectDebitInformation directDebitInformat } /** - * The direction of the transfer. Possible values: **incoming**, **outgoing**. + * The direction of the transfer. Possible values: **incoming**, **outgoing**. * - * @param direction The direction of the transfer. Possible values: **incoming**, **outgoing**. + * @param direction The direction of the transfer. Possible values: **incoming**, **outgoing**. * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer direction(DirectionEnum direction) { @@ -922,8 +1018,9 @@ public Transfer direction(DirectionEnum direction) { } /** - * The direction of the transfer. Possible values: **incoming**, **outgoing**. - * @return direction The direction of the transfer. Possible values: **incoming**, **outgoing**. + * The direction of the transfer. Possible values: **incoming**, **outgoing**. + * + * @return direction The direction of the transfer. Possible values: **incoming**, **outgoing**. */ @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -932,9 +1029,9 @@ public DirectionEnum getDirection() { } /** - * The direction of the transfer. Possible values: **incoming**, **outgoing**. + * The direction of the transfer. Possible values: **incoming**, **outgoing**. * - * @param direction The direction of the transfer. Possible values: **incoming**, **outgoing**. + * @param direction The direction of the transfer. Possible values: **incoming**, **outgoing**. */ @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -945,7 +1042,7 @@ public void setDirection(DirectionEnum direction) { /** * executionDate * - * @param executionDate + * @param executionDate * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer executionDate(ExecutionDate executionDate) { @@ -955,7 +1052,8 @@ public Transfer executionDate(ExecutionDate executionDate) { /** * Get executionDate - * @return executionDate + * + * @return executionDate */ @JsonProperty(JSON_PROPERTY_EXECUTION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -966,7 +1064,7 @@ public ExecutionDate getExecutionDate() { /** * executionDate * - * @param executionDate + * @param executionDate */ @JsonProperty(JSON_PROPERTY_EXECUTION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -987,6 +1085,7 @@ public Transfer id(String id) { /** * The ID of the resource. + * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -1009,7 +1108,7 @@ public void setId(String id) { /** * paymentInstrument * - * @param paymentInstrument + * @param paymentInstrument * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer paymentInstrument(PaymentInstrument paymentInstrument) { @@ -1019,7 +1118,8 @@ public Transfer paymentInstrument(PaymentInstrument paymentInstrument) { /** * Get paymentInstrument - * @return paymentInstrument + * + * @return paymentInstrument */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1030,7 +1130,7 @@ public PaymentInstrument getPaymentInstrument() { /** * paymentInstrument * - * @param paymentInstrument + * @param paymentInstrument */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1051,6 +1151,7 @@ public Transfer reason(ReasonEnum reason) { /** * Additional information about the status of the transfer. + * * @return reason Additional information about the status of the transfer. */ @JsonProperty(JSON_PROPERTY_REASON) @@ -1071,9 +1172,11 @@ public void setReason(ReasonEnum reason) { } /** - * Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. + * Your reference for the transfer, used internally within your platform. If you don't provide + * this in the request, Adyen generates a unique reference. * - * @param reference Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. + * @param reference Your reference for the transfer, used internally within your platform. If you + * don't provide this in the request, Adyen generates a unique reference. * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer reference(String reference) { @@ -1082,8 +1185,11 @@ public Transfer reference(String reference) { } /** - * Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. - * @return reference Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. + * Your reference for the transfer, used internally within your platform. If you don't provide + * this in the request, Adyen generates a unique reference. + * + * @return reference Your reference for the transfer, used internally within your platform. If you + * don't provide this in the request, Adyen generates a unique reference. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1092,9 +1198,11 @@ public String getReference() { } /** - * Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. + * Your reference for the transfer, used internally within your platform. If you don't provide + * this in the request, Adyen generates a unique reference. * - * @param reference Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. + * @param reference Your reference for the transfer, used internally within your platform. If you + * don't provide this in the request, Adyen generates a unique reference. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1103,9 +1211,17 @@ public void setReference(String reference) { } /** - * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * A reference that is sent to the recipient. This reference is also sent in all webhooks related + * to the transfer, so you can use it to track statuses for both the source and recipient of + * funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the + * `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring + * to an IBAN, 15 characters for others. * - * @param referenceForBeneficiary A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * @param referenceForBeneficiary A reference that is sent to the recipient. This reference is + * also sent in all webhooks related to the transfer, so you can use it to track statuses for + * both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The + * maximum length depends on the `category`. - **internal**: 80 characters - + * **bank**: 35 characters when transferring to an IBAN, 15 characters for others. * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer referenceForBeneficiary(String referenceForBeneficiary) { @@ -1114,8 +1230,17 @@ public Transfer referenceForBeneficiary(String referenceForBeneficiary) { } /** - * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. - * @return referenceForBeneficiary A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * A reference that is sent to the recipient. This reference is also sent in all webhooks related + * to the transfer, so you can use it to track statuses for both the source and recipient of + * funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the + * `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring + * to an IBAN, 15 characters for others. + * + * @return referenceForBeneficiary A reference that is sent to the recipient. This reference is + * also sent in all webhooks related to the transfer, so you can use it to track statuses for + * both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The + * maximum length depends on the `category`. - **internal**: 80 characters - + * **bank**: 35 characters when transferring to an IBAN, 15 characters for others. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1124,9 +1249,17 @@ public String getReferenceForBeneficiary() { } /** - * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * A reference that is sent to the recipient. This reference is also sent in all webhooks related + * to the transfer, so you can use it to track statuses for both the source and recipient of + * funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the + * `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring + * to an IBAN, 15 characters for others. * - * @param referenceForBeneficiary A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * @param referenceForBeneficiary A reference that is sent to the recipient. This reference is + * also sent in all webhooks related to the transfer, so you can use it to track statuses for + * both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The + * maximum length depends on the `category`. - **internal**: 80 characters - + * **bank**: 35 characters when transferring to an IBAN, 15 characters for others. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1137,7 +1270,7 @@ public void setReferenceForBeneficiary(String referenceForBeneficiary) { /** * review * - * @param review + * @param review * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer review(TransferReview review) { @@ -1147,7 +1280,8 @@ public Transfer review(TransferReview review) { /** * Get review - * @return review + * + * @return review */ @JsonProperty(JSON_PROPERTY_REVIEW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1158,7 +1292,7 @@ public TransferReview getReview() { /** * review * - * @param review + * @param review */ @JsonProperty(JSON_PROPERTY_REVIEW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1167,9 +1301,17 @@ public void setReview(TransferReview review) { } /** - * The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. + * The result of the transfer. For example: - **received**: an outgoing transfer request is + * created. - **authorised**: the transfer request is authorized and the funds are reserved. - + * **booked**: the funds are deducted from your user's balance account. - **failed**: the + * transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned + * by the counterparty's bank. * - * @param status The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. + * @param status The result of the transfer. For example: - **received**: an outgoing transfer + * request is created. - **authorised**: the transfer request is authorized and the funds are + * reserved. - **booked**: the funds are deducted from your user's balance account. - + * **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the + * transfer is returned by the counterparty's bank. * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer status(StatusEnum status) { @@ -1178,8 +1320,17 @@ public Transfer status(StatusEnum status) { } /** - * The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. - * @return status The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. + * The result of the transfer. For example: - **received**: an outgoing transfer request is + * created. - **authorised**: the transfer request is authorized and the funds are reserved. - + * **booked**: the funds are deducted from your user's balance account. - **failed**: the + * transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned + * by the counterparty's bank. + * + * @return status The result of the transfer. For example: - **received**: an outgoing transfer + * request is created. - **authorised**: the transfer request is authorized and the funds are + * reserved. - **booked**: the funds are deducted from your user's balance account. - + * **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the + * transfer is returned by the counterparty's bank. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1188,9 +1339,17 @@ public StatusEnum getStatus() { } /** - * The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. + * The result of the transfer. For example: - **received**: an outgoing transfer request is + * created. - **authorised**: the transfer request is authorized and the funds are reserved. - + * **booked**: the funds are deducted from your user's balance account. - **failed**: the + * transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned + * by the counterparty's bank. * - * @param status The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. + * @param status The result of the transfer. For example: - **received**: an outgoing transfer + * request is created. - **authorised**: the transfer request is authorized and the funds are + * reserved. - **booked**: the funds are deducted from your user's balance account. - + * **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the + * transfer is returned by the counterparty's bank. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1199,9 +1358,11 @@ public void setStatus(StatusEnum status) { } /** - * The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. + * The type of transfer or transaction. For example, **refund**, **payment**, + * **internalTransfer**, **bankTransfer**. * - * @param type The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. + * @param type The type of transfer or transaction. For example, **refund**, **payment**, + * **internalTransfer**, **bankTransfer**. * @return the current {@code Transfer} instance, allowing for method chaining */ public Transfer type(TypeEnum type) { @@ -1210,8 +1371,11 @@ public Transfer type(TypeEnum type) { } /** - * The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. - * @return type The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. + * The type of transfer or transaction. For example, **refund**, **payment**, + * **internalTransfer**, **bankTransfer**. + * + * @return type The type of transfer or transaction. For example, **refund**, **payment**, + * **internalTransfer**, **bankTransfer**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1220,9 +1384,11 @@ public TypeEnum getType() { } /** - * The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. + * The type of transfer or transaction. For example, **refund**, **payment**, + * **internalTransfer**, **bankTransfer**. * - * @param type The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. + * @param type The type of transfer or transaction. For example, **refund**, **payment**, + * **internalTransfer**, **bankTransfer**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1230,9 +1396,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this Transfer object is equal to o. - */ + /** Return true if this Transfer object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -1242,31 +1406,51 @@ public boolean equals(Object o) { return false; } Transfer transfer = (Transfer) o; - return Objects.equals(this.accountHolder, transfer.accountHolder) && - Objects.equals(this.amount, transfer.amount) && - Objects.equals(this.balanceAccount, transfer.balanceAccount) && - Objects.equals(this.category, transfer.category) && - Objects.equals(this.categoryData, transfer.categoryData) && - Objects.equals(this.counterparty, transfer.counterparty) && - Objects.equals(this.createdAt, transfer.createdAt) && - Objects.equals(this.creationDate, transfer.creationDate) && - Objects.equals(this.description, transfer.description) && - Objects.equals(this.directDebitInformation, transfer.directDebitInformation) && - Objects.equals(this.direction, transfer.direction) && - Objects.equals(this.executionDate, transfer.executionDate) && - Objects.equals(this.id, transfer.id) && - Objects.equals(this.paymentInstrument, transfer.paymentInstrument) && - Objects.equals(this.reason, transfer.reason) && - Objects.equals(this.reference, transfer.reference) && - Objects.equals(this.referenceForBeneficiary, transfer.referenceForBeneficiary) && - Objects.equals(this.review, transfer.review) && - Objects.equals(this.status, transfer.status) && - Objects.equals(this.type, transfer.type); + return Objects.equals(this.accountHolder, transfer.accountHolder) + && Objects.equals(this.amount, transfer.amount) + && Objects.equals(this.balanceAccount, transfer.balanceAccount) + && Objects.equals(this.category, transfer.category) + && Objects.equals(this.categoryData, transfer.categoryData) + && Objects.equals(this.counterparty, transfer.counterparty) + && Objects.equals(this.createdAt, transfer.createdAt) + && Objects.equals(this.creationDate, transfer.creationDate) + && Objects.equals(this.description, transfer.description) + && Objects.equals(this.directDebitInformation, transfer.directDebitInformation) + && Objects.equals(this.direction, transfer.direction) + && Objects.equals(this.executionDate, transfer.executionDate) + && Objects.equals(this.id, transfer.id) + && Objects.equals(this.paymentInstrument, transfer.paymentInstrument) + && Objects.equals(this.reason, transfer.reason) + && Objects.equals(this.reference, transfer.reference) + && Objects.equals(this.referenceForBeneficiary, transfer.referenceForBeneficiary) + && Objects.equals(this.review, transfer.review) + && Objects.equals(this.status, transfer.status) + && Objects.equals(this.type, transfer.type); } @Override public int hashCode() { - return Objects.hash(accountHolder, amount, balanceAccount, category, categoryData, counterparty, createdAt, creationDate, description, directDebitInformation, direction, executionDate, id, paymentInstrument, reason, reference, referenceForBeneficiary, review, status, type); + return Objects.hash( + accountHolder, + amount, + balanceAccount, + category, + categoryData, + counterparty, + createdAt, + creationDate, + description, + directDebitInformation, + direction, + executionDate, + id, + paymentInstrument, + reason, + reference, + referenceForBeneficiary, + review, + status, + type); } @Override @@ -1282,14 +1466,18 @@ public String toString() { sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" directDebitInformation: ").append(toIndentedString(directDebitInformation)).append("\n"); + sb.append(" directDebitInformation: ") + .append(toIndentedString(directDebitInformation)) + .append("\n"); sb.append(" direction: ").append(toIndentedString(direction)).append("\n"); sb.append(" executionDate: ").append(toIndentedString(executionDate)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" paymentInstrument: ").append(toIndentedString(paymentInstrument)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); - sb.append(" referenceForBeneficiary: ").append(toIndentedString(referenceForBeneficiary)).append("\n"); + sb.append(" referenceForBeneficiary: ") + .append(toIndentedString(referenceForBeneficiary)) + .append("\n"); sb.append(" review: ").append(toIndentedString(review)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); @@ -1298,8 +1486,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1308,7 +1495,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Transfer given an JSON string * * @param jsonString JSON string @@ -1318,11 +1505,12 @@ private String toIndentedString(Object o) { public static Transfer fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Transfer.class); } -/** - * Convert an instance of Transfer to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Transfer to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/TransferCategoryData.java b/src/main/java/com/adyen/model/transfers/TransferCategoryData.java index 60b300798..7b9ba6d8c 100644 --- a/src/main/java/com/adyen/model/transfers/TransferCategoryData.java +++ b/src/main/java/com/adyen/model/transfers/TransferCategoryData.java @@ -2,52 +2,19 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.BankCategoryData; -import com.adyen.model.transfers.InternalCategoryData; -import com.adyen.model.transfers.IssuedCard; -import com.adyen.model.transfers.PlatformPayment; -import com.adyen.model.transfers.RelayedAuthorisationData; -import com.adyen.model.transfers.ThreeDSecure; -import com.adyen.model.transfers.TransferNotificationValidationFact; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -import com.fasterxml.jackson.core.type.TypeReference; - -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.core.Response; -import java.io.IOException; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; - import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -57,308 +24,325 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; - +import jakarta.ws.rs.core.GenericType; +import java.io.IOException; +import java.util.*; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.logging.Level; +import java.util.logging.Logger; @JsonDeserialize(using = TransferCategoryData.TransferCategoryDataDeserializer.class) @JsonSerialize(using = TransferCategoryData.TransferCategoryDataSerializer.class) public class TransferCategoryData extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(TransferCategoryData.class.getName()); - - public static class TransferCategoryDataSerializer extends StdSerializer { - public TransferCategoryDataSerializer(Class t) { - super(t); - } + private static final Logger log = Logger.getLogger(TransferCategoryData.class.getName()); - public TransferCategoryDataSerializer() { - this(null); - } - - @Override - public void serialize(TransferCategoryData value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } + public static class TransferCategoryDataSerializer extends StdSerializer { + public TransferCategoryDataSerializer(Class t) { + super(t); } - public static class TransferCategoryDataDeserializer extends StdDeserializer { - public TransferCategoryDataDeserializer() { - this(TransferCategoryData.class); - } - - public TransferCategoryDataDeserializer(Class vc) { - super(vc); - } - - @Override - public TransferCategoryData deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize BankCategoryData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(BankCategoryData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(BankCategoryData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'BankCategoryData'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'BankCategoryData'", e); - } - - // deserialize InternalCategoryData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(InternalCategoryData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(InternalCategoryData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'InternalCategoryData'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'InternalCategoryData'", e); - } - - // deserialize IssuedCard - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(IssuedCard.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(IssuedCard.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'IssuedCard'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'IssuedCard'", e); - } - - // deserialize PlatformPayment - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(PlatformPayment.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PlatformPayment.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PlatformPayment'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PlatformPayment'", e); - } - - if (match == 1) { - TransferCategoryData ret = new TransferCategoryData(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException(String.format("Failed deserialization for TransferCategoryData: %d classes match result, expected 1", match)); - } - - /** - * Handle deserialization of the 'null' value. - */ - @Override - public TransferCategoryData getNullValue(DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "TransferCategoryData cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public TransferCategoryData() { - super("oneOf", Boolean.FALSE); - } - - public TransferCategoryData(BankCategoryData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferCategoryData(InternalCategoryData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + public TransferCategoryDataSerializer() { + this(null); } - public TransferCategoryData(IssuedCard o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferCategoryData(PlatformPayment o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + @Override + public void serialize( + TransferCategoryData value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); } + } - static { - schemas.put("BankCategoryData", new GenericType() { - }); - schemas.put("InternalCategoryData", new GenericType() { - }); - schemas.put("IssuedCard", new GenericType() { - }); - schemas.put("PlatformPayment", new GenericType() { - }); - JSON.registerDescendants(TransferCategoryData.class, Collections.unmodifiableMap(schemas)); + public static class TransferCategoryDataDeserializer + extends StdDeserializer { + public TransferCategoryDataDeserializer() { + this(TransferCategoryData.class); } - @Override - public Map> getSchemas() { - return TransferCategoryData.schemas; + public TransferCategoryDataDeserializer(Class vc) { + super(vc); } - /** - * Set the instance that matches the oneOf child schema, check - * the instance parameter is valid against the oneOf child schemas: - * BankCategoryData, InternalCategoryData, IssuedCard, PlatformPayment - * - * It could be an instance of the 'oneOf' schemas. - * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). - */ @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(BankCategoryData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + public TransferCategoryData deserialize(JsonParser jp, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize BankCategoryData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(BankCategoryData.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(BankCategoryData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'BankCategoryData'"); + } } - - if (JSON.isInstanceOf(InternalCategoryData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'BankCategoryData'", e); + } + + // deserialize InternalCategoryData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(InternalCategoryData.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(InternalCategoryData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'InternalCategoryData'"); + } } - - if (JSON.isInstanceOf(IssuedCard.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'InternalCategoryData'", e); + } + + // deserialize IssuedCard + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(IssuedCard.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(IssuedCard.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'IssuedCard'"); + } } - - if (JSON.isInstanceOf(PlatformPayment.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'IssuedCard'", e); + } + + // deserialize PlatformPayment + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(PlatformPayment.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PlatformPayment.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PlatformPayment'"); + } } - - throw new RuntimeException("Invalid instance type. Must be BankCategoryData, InternalCategoryData, IssuedCard, PlatformPayment"); + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PlatformPayment'", e); + } + + if (match == 1) { + TransferCategoryData ret = new TransferCategoryData(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException( + String.format( + "Failed deserialization for TransferCategoryData: %d classes match result, expected 1", + match)); } - /** - * Get the actual instance, which can be the following: - * BankCategoryData, InternalCategoryData, IssuedCard, PlatformPayment - * - * @return The actual instance (BankCategoryData, InternalCategoryData, IssuedCard, PlatformPayment) - */ + /** Handle deserialization of the 'null' value. */ @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `BankCategoryData`. If the actual instance is not `BankCategoryData`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `BankCategoryData` - * @throws ClassCastException if the instance is not `BankCategoryData` - */ - public BankCategoryData getBankCategoryData() throws ClassCastException { - return (BankCategoryData)super.getActualInstance(); + public TransferCategoryData getNullValue(DeserializationContext ctxt) + throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "TransferCategoryData cannot be null"); } - - /** - * Get the actual instance of `InternalCategoryData`. If the actual instance is not `InternalCategoryData`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `InternalCategoryData` - * @throws ClassCastException if the instance is not `InternalCategoryData` - */ - public InternalCategoryData getInternalCategoryData() throws ClassCastException { - return (InternalCategoryData)super.getActualInstance(); + } + + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public TransferCategoryData() { + super("oneOf", Boolean.FALSE); + } + + public TransferCategoryData(BankCategoryData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferCategoryData(InternalCategoryData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferCategoryData(IssuedCard o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferCategoryData(PlatformPayment o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("BankCategoryData", new GenericType() {}); + schemas.put("InternalCategoryData", new GenericType() {}); + schemas.put("IssuedCard", new GenericType() {}); + schemas.put("PlatformPayment", new GenericType() {}); + JSON.registerDescendants(TransferCategoryData.class, Collections.unmodifiableMap(schemas)); + } + + @Override + public Map> getSchemas() { + return TransferCategoryData.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check the instance parameter is valid + * against the oneOf child schemas: BankCategoryData, InternalCategoryData, IssuedCard, + * PlatformPayment + * + *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a + * composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(BankCategoryData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `IssuedCard`. If the actual instance is not `IssuedCard`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `IssuedCard` - * @throws ClassCastException if the instance is not `IssuedCard` - */ - public IssuedCard getIssuedCard() throws ClassCastException { - return (IssuedCard)super.getActualInstance(); + if (JSON.isInstanceOf(InternalCategoryData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `PlatformPayment`. If the actual instance is not `PlatformPayment`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PlatformPayment` - * @throws ClassCastException if the instance is not `PlatformPayment` - */ - public PlatformPayment getPlatformPayment() throws ClassCastException { - return (PlatformPayment)super.getActualInstance(); - } - - - /** - * Create an instance of TransferCategoryData given an JSON string - * - * @param jsonString JSON string - * @return An instance of TransferCategoryData - * @throws IOException if the JSON string is invalid with respect to TransferCategoryData - */ - public static TransferCategoryData fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, TransferCategoryData.class); + if (JSON.isInstanceOf(IssuedCard.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Convert an instance of TransferCategoryData to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); + if (JSON.isInstanceOf(PlatformPayment.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } + throw new RuntimeException( + "Invalid instance type. Must be BankCategoryData, InternalCategoryData, IssuedCard, PlatformPayment"); + } + + /** + * Get the actual instance, which can be the following: BankCategoryData, InternalCategoryData, + * IssuedCard, PlatformPayment + * + * @return The actual instance (BankCategoryData, InternalCategoryData, IssuedCard, + * PlatformPayment) + */ + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `BankCategoryData`. If the actual instance is not + * `BankCategoryData`, the ClassCastException will be thrown. + * + * @return The actual instance of `BankCategoryData` + * @throws ClassCastException if the instance is not `BankCategoryData` + */ + public BankCategoryData getBankCategoryData() throws ClassCastException { + return (BankCategoryData) super.getActualInstance(); + } + + /** + * Get the actual instance of `InternalCategoryData`. If the actual instance is not + * `InternalCategoryData`, the ClassCastException will be thrown. + * + * @return The actual instance of `InternalCategoryData` + * @throws ClassCastException if the instance is not `InternalCategoryData` + */ + public InternalCategoryData getInternalCategoryData() throws ClassCastException { + return (InternalCategoryData) super.getActualInstance(); + } + + /** + * Get the actual instance of `IssuedCard`. If the actual instance is not `IssuedCard`, the + * ClassCastException will be thrown. + * + * @return The actual instance of `IssuedCard` + * @throws ClassCastException if the instance is not `IssuedCard` + */ + public IssuedCard getIssuedCard() throws ClassCastException { + return (IssuedCard) super.getActualInstance(); + } + + /** + * Get the actual instance of `PlatformPayment`. If the actual instance is not `PlatformPayment`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `PlatformPayment` + * @throws ClassCastException if the instance is not `PlatformPayment` + */ + public PlatformPayment getPlatformPayment() throws ClassCastException { + return (PlatformPayment) super.getActualInstance(); + } + + /** + * Create an instance of TransferCategoryData given an JSON string + * + * @param jsonString JSON string + * @return An instance of TransferCategoryData + * @throws IOException if the JSON string is invalid with respect to TransferCategoryData + */ + public static TransferCategoryData fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, TransferCategoryData.class); + } + + /** + * Convert an instance of TransferCategoryData to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } } diff --git a/src/main/java/com/adyen/model/transfers/TransferData.java b/src/main/java/com/adyen/model/transfers/TransferData.java index b4146ebb3..5fdf4cfd3 100644 --- a/src/main/java/com/adyen/model/transfers/TransferData.java +++ b/src/main/java/com/adyen/model/transfers/TransferData.java @@ -2,47 +2,29 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.Amount; -import com.adyen.model.transfers.BalanceMutation; -import com.adyen.model.transfers.DirectDebitInformation; -import com.adyen.model.transfers.ExecutionDate; -import com.adyen.model.transfers.ExternalReason; -import com.adyen.model.transfers.PaymentInstrument; -import com.adyen.model.transfers.ResourceReference; -import com.adyen.model.transfers.TransactionRulesResult; -import com.adyen.model.transfers.TransferCategoryData; -import com.adyen.model.transfers.TransferDataTracking; -import com.adyen.model.transfers.TransferEvent; -import com.adyen.model.transfers.TransferNotificationCounterParty; -import com.adyen.model.transfers.TransferReview; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * TransferData - */ +/** TransferData */ @JsonPropertyOrder({ TransferData.JSON_PROPERTY_ACCOUNT_HOLDER, TransferData.JSON_PROPERTY_AMOUNT, @@ -74,7 +56,6 @@ TransferData.JSON_PROPERTY_TYPE, TransferData.JSON_PROPERTY_UPDATED_AT }) - public class TransferData { public static final String JSON_PROPERTY_ACCOUNT_HOLDER = "accountHolder"; private ResourceReference accountHolder; @@ -92,10 +73,16 @@ public class TransferData { private List balances; /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a + * transfer between [balance + * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - + * **platformPayment**: funds movements related to payments that are acquired for your users. - + * **topUp**: an incoming transfer initiated by your user to top up their balance account. */ public enum CategoryEnum { - BANK(String.valueOf("bank")), CARD(String.valueOf("card")), @@ -113,7 +100,7 @@ public enum CategoryEnum { private String value; CategoryEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -134,7 +121,11 @@ public static CategoryEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("CategoryEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CategoryEnum.values())); + LOG.warning( + "CategoryEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(CategoryEnum.values())); return null; } } @@ -161,11 +152,8 @@ public static CategoryEnum fromValue(String value) { public static final String JSON_PROPERTY_DIRECT_DEBIT_INFORMATION = "directDebitInformation"; private DirectDebitInformation directDebitInformation; - /** - * The direction of the transfer. Possible values: **incoming**, **outgoing**. - */ + /** The direction of the transfer. Possible values: **incoming**, **outgoing**. */ public enum DirectionEnum { - INCOMING(String.valueOf("incoming")), OUTGOING(String.valueOf("outgoing")); @@ -175,7 +163,7 @@ public enum DirectionEnum { private String value; DirectionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -196,7 +184,11 @@ public static DirectionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("DirectionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(DirectionEnum.values())); + LOG.warning( + "DirectionEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(DirectionEnum.values())); return null; } } @@ -222,11 +214,8 @@ public static DirectionEnum fromValue(String value) { public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT = "paymentInstrument"; private PaymentInstrument paymentInstrument; - /** - * Additional information about the status of the transfer. - */ + /** Additional information about the status of the transfer. */ public enum ReasonEnum { - ACCOUNTHIERARCHYNOTACTIVE(String.valueOf("accountHierarchyNotActive")), AMOUNTLIMITEXCEEDED(String.valueOf("amountLimitExceeded")), @@ -235,7 +224,8 @@ public enum ReasonEnum { APPROVED(String.valueOf("approved")), - BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE(String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), + BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE( + String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), COUNTERPARTYACCOUNTBLOCKED(String.valueOf("counterpartyAccountBlocked")), @@ -282,7 +272,7 @@ public enum ReasonEnum { private String value; ReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -303,7 +293,11 @@ public static ReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ReasonEnum.values())); + LOG.warning( + "ReasonEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ReasonEnum.values())); return null; } } @@ -324,10 +318,13 @@ public static ReasonEnum fromValue(String value) { private Integer sequenceNumber; /** - * The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. + * The result of the transfer. For example: - **received**: an outgoing transfer request is + * created. - **authorised**: the transfer request is authorized and the funds are reserved. - + * **booked**: the funds are deducted from your user's balance account. - **failed**: the + * transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned + * by the counterparty's bank. */ public enum StatusEnum { - APPROVALPENDING(String.valueOf("approvalPending")), ATMWITHDRAWAL(String.valueOf("atmWithdrawal")), @@ -467,7 +464,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -488,7 +485,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -503,10 +504,10 @@ public static StatusEnum fromValue(String value) { private TransactionRulesResult transactionRulesResult; /** - * The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. + * The type of transfer or transaction. For example, **refund**, **payment**, + * **internalTransfer**, **bankTransfer**. */ public enum TypeEnum { - PAYMENT(String.valueOf("payment")), CAPTURE(String.valueOf("capture")), @@ -588,7 +589,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -609,7 +610,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -620,13 +625,12 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt"; private OffsetDateTime updatedAt; - public TransferData() { - } + public TransferData() {} /** * accountHolder * - * @param accountHolder + * @param accountHolder * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData accountHolder(ResourceReference accountHolder) { @@ -636,7 +640,8 @@ public TransferData accountHolder(ResourceReference accountHolder) { /** * Get accountHolder - * @return accountHolder + * + * @return accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -647,7 +652,7 @@ public ResourceReference getAccountHolder() { /** * accountHolder * - * @param accountHolder + * @param accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -658,7 +663,7 @@ public void setAccountHolder(ResourceReference accountHolder) { /** * amount * - * @param amount + * @param amount * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData amount(Amount amount) { @@ -668,7 +673,8 @@ public TransferData amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -679,7 +685,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -690,7 +696,7 @@ public void setAmount(Amount amount) { /** * balanceAccount * - * @param balanceAccount + * @param balanceAccount * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData balanceAccount(ResourceReference balanceAccount) { @@ -700,7 +706,8 @@ public TransferData balanceAccount(ResourceReference balanceAccount) { /** * Get balanceAccount - * @return balanceAccount + * + * @return balanceAccount */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -711,7 +718,7 @@ public ResourceReference getBalanceAccount() { /** * balanceAccount * - * @param balanceAccount + * @param balanceAccount */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -732,6 +739,7 @@ public TransferData balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. + * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -772,6 +780,7 @@ public TransferData addBalancesItem(BalanceMutation balancesItem) { /** * The list of the latest balance statuses in the transfer. + * * @return balances The list of the latest balance statuses in the transfer. */ @JsonProperty(JSON_PROPERTY_BALANCES) @@ -792,9 +801,24 @@ public void setBalances(List balances) { } /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a + * transfer between [balance + * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - + * **platformPayment**: funds movements related to payments that are acquired for your users. - + * **topUp**: an incoming transfer initiated by your user to top up their balance account. * - * @param category The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * @param category The category of the transfer. Possible values: - **bank**: a transfer involving + * a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a + * transfer between [balance + * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - + * **platformPayment**: funds movements related to payments that are acquired for your users. + * - **topUp**: an incoming transfer initiated by your user to top up their balance account. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData category(CategoryEnum category) { @@ -803,8 +827,24 @@ public TransferData category(CategoryEnum category) { } /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. - * @return category The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a + * transfer between [balance + * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - + * **platformPayment**: funds movements related to payments that are acquired for your users. - + * **topUp**: an incoming transfer initiated by your user to top up their balance account. + * + * @return category The category of the transfer. Possible values: - **bank**: a transfer + * involving a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a + * transfer between [balance + * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - + * **platformPayment**: funds movements related to payments that are acquired for your users. + * - **topUp**: an incoming transfer initiated by your user to top up their balance account. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -813,9 +853,24 @@ public CategoryEnum getCategory() { } /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a + * transfer between [balance + * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - + * **platformPayment**: funds movements related to payments that are acquired for your users. - + * **topUp**: an incoming transfer initiated by your user to top up their balance account. * - * @param category The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * @param category The category of the transfer. Possible values: - **bank**: a transfer involving + * a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a + * transfer between [balance + * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - + * **platformPayment**: funds movements related to payments that are acquired for your users. + * - **topUp**: an incoming transfer initiated by your user to top up their balance account. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -826,7 +881,7 @@ public void setCategory(CategoryEnum category) { /** * categoryData * - * @param categoryData + * @param categoryData * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData categoryData(TransferCategoryData categoryData) { @@ -836,7 +891,8 @@ public TransferData categoryData(TransferCategoryData categoryData) { /** * Get categoryData - * @return categoryData + * + * @return categoryData */ @JsonProperty(JSON_PROPERTY_CATEGORY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -847,7 +903,7 @@ public TransferCategoryData getCategoryData() { /** * categoryData * - * @param categoryData + * @param categoryData */ @JsonProperty(JSON_PROPERTY_CATEGORY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -858,7 +914,7 @@ public void setCategoryData(TransferCategoryData categoryData) { /** * counterparty * - * @param counterparty + * @param counterparty * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData counterparty(TransferNotificationCounterParty counterparty) { @@ -868,7 +924,8 @@ public TransferData counterparty(TransferNotificationCounterParty counterparty) /** * Get counterparty - * @return counterparty + * + * @return counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -879,7 +936,7 @@ public TransferNotificationCounterParty getCounterparty() { /** * counterparty * - * @param counterparty + * @param counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -888,9 +945,11 @@ public void setCounterparty(TransferNotificationCounterParty counterparty) { } /** - * The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the transfer was created, in ISO 8601 extended format. For example, + * **2020-12-18T10:15:30+01:00**. * - * @param createdAt The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * @param createdAt The date and time when the transfer was created, in ISO 8601 extended format. + * For example, **2020-12-18T10:15:30+01:00**. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData createdAt(OffsetDateTime createdAt) { @@ -899,8 +958,11 @@ public TransferData createdAt(OffsetDateTime createdAt) { } /** - * The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. - * @return createdAt The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the transfer was created, in ISO 8601 extended format. For example, + * **2020-12-18T10:15:30+01:00**. + * + * @return createdAt The date and time when the transfer was created, in ISO 8601 extended format. + * For example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -909,9 +971,11 @@ public OffsetDateTime getCreatedAt() { } /** - * The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the transfer was created, in ISO 8601 extended format. For example, + * **2020-12-18T10:15:30+01:00**. * - * @param createdAt The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * @param createdAt The date and time when the transfer was created, in ISO 8601 extended format. + * For example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -920,13 +984,13 @@ public void setCreatedAt(OffsetDateTime createdAt) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2020-12-18T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2020-12-18T10:15:30+01:00**. * @return the current {@code TransferData} instance, allowing for method chaining - * - * @deprecated since Transfers API v3 - * Use createdAt or updatedAt + * @deprecated since Transfers API v3 Use createdAt or updatedAt */ @Deprecated // deprecated since Transfers API v3: Use createdAt or updatedAt public TransferData creationDate(OffsetDateTime creationDate) { @@ -935,8 +999,11 @@ public TransferData creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2020-12-18T10:15:30+01:00**. + * + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2020-12-18T10:15:30+01:00**. * @deprecated // deprecated since Transfers API v3: Use createdAt or updatedAt */ @Deprecated // deprecated since Transfers API v3: Use createdAt or updatedAt @@ -947,12 +1014,12 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. - * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2020-12-18T10:15:30+01:00**. * - * @deprecated since Transfers API v3 - * Use createdAt or updatedAt + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2020-12-18T10:15:30+01:00**. + * @deprecated since Transfers API v3 Use createdAt or updatedAt */ @Deprecated // deprecated since Transfers API v3: Use createdAt or updatedAt @JsonProperty(JSON_PROPERTY_CREATION_DATE) @@ -962,9 +1029,17 @@ public void setCreationDate(OffsetDateTime creationDate) { } /** - * Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * Your description for the transfer. It is used by most banks as the transfer description. We + * recommend sending a maximum of 140 characters, otherwise the description may be truncated. + * Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported + * characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] + * & $ % # @** **~ = + - _ ' \" ! ?** * - * @param description Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * @param description Your description for the transfer. It is used by most banks as the transfer + * description. We recommend sending a maximum of 140 characters, otherwise the description + * may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + + * Space** Supported characters for **regular** and **fast** transfers to a US counterparty: + * **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData description(String description) { @@ -973,8 +1048,17 @@ public TransferData description(String description) { } /** - * Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** - * @return description Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * Your description for the transfer. It is used by most banks as the transfer description. We + * recommend sending a maximum of 140 characters, otherwise the description may be truncated. + * Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported + * characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] + * & $ % # @** **~ = + - _ ' \" ! ?** + * + * @return description Your description for the transfer. It is used by most banks as the transfer + * description. We recommend sending a maximum of 140 characters, otherwise the description + * may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + + * Space** Supported characters for **regular** and **fast** transfers to a US counterparty: + * **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -983,9 +1067,17 @@ public String getDescription() { } /** - * Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * Your description for the transfer. It is used by most banks as the transfer description. We + * recommend sending a maximum of 140 characters, otherwise the description may be truncated. + * Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported + * characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] + * & $ % # @** **~ = + - _ ' \" ! ?** * - * @param description Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * @param description Your description for the transfer. It is used by most banks as the transfer + * description. We recommend sending a maximum of 140 characters, otherwise the description + * may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + + * Space** Supported characters for **regular** and **fast** transfers to a US counterparty: + * **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -996,7 +1088,7 @@ public void setDescription(String description) { /** * directDebitInformation * - * @param directDebitInformation + * @param directDebitInformation * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData directDebitInformation(DirectDebitInformation directDebitInformation) { @@ -1006,7 +1098,8 @@ public TransferData directDebitInformation(DirectDebitInformation directDebitInf /** * Get directDebitInformation - * @return directDebitInformation + * + * @return directDebitInformation */ @JsonProperty(JSON_PROPERTY_DIRECT_DEBIT_INFORMATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1017,7 +1110,7 @@ public DirectDebitInformation getDirectDebitInformation() { /** * directDebitInformation * - * @param directDebitInformation + * @param directDebitInformation */ @JsonProperty(JSON_PROPERTY_DIRECT_DEBIT_INFORMATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1026,9 +1119,9 @@ public void setDirectDebitInformation(DirectDebitInformation directDebitInformat } /** - * The direction of the transfer. Possible values: **incoming**, **outgoing**. + * The direction of the transfer. Possible values: **incoming**, **outgoing**. * - * @param direction The direction of the transfer. Possible values: **incoming**, **outgoing**. + * @param direction The direction of the transfer. Possible values: **incoming**, **outgoing**. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData direction(DirectionEnum direction) { @@ -1037,8 +1130,9 @@ public TransferData direction(DirectionEnum direction) { } /** - * The direction of the transfer. Possible values: **incoming**, **outgoing**. - * @return direction The direction of the transfer. Possible values: **incoming**, **outgoing**. + * The direction of the transfer. Possible values: **incoming**, **outgoing**. + * + * @return direction The direction of the transfer. Possible values: **incoming**, **outgoing**. */ @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1047,9 +1141,9 @@ public DirectionEnum getDirection() { } /** - * The direction of the transfer. Possible values: **incoming**, **outgoing**. + * The direction of the transfer. Possible values: **incoming**, **outgoing**. * - * @param direction The direction of the transfer. Possible values: **incoming**, **outgoing**. + * @param direction The direction of the transfer. Possible values: **incoming**, **outgoing**. */ @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1058,9 +1152,11 @@ public void setDirection(DirectionEnum direction) { } /** - * The unique identifier of the latest transfer event. Included only when the `category` is **issuedCard**. + * The unique identifier of the latest transfer event. Included only when the `category` + * is **issuedCard**. * - * @param eventId The unique identifier of the latest transfer event. Included only when the `category` is **issuedCard**. + * @param eventId The unique identifier of the latest transfer event. Included only when the + * `category` is **issuedCard**. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData eventId(String eventId) { @@ -1069,8 +1165,11 @@ public TransferData eventId(String eventId) { } /** - * The unique identifier of the latest transfer event. Included only when the `category` is **issuedCard**. - * @return eventId The unique identifier of the latest transfer event. Included only when the `category` is **issuedCard**. + * The unique identifier of the latest transfer event. Included only when the `category` + * is **issuedCard**. + * + * @return eventId The unique identifier of the latest transfer event. Included only when the + * `category` is **issuedCard**. */ @JsonProperty(JSON_PROPERTY_EVENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1079,9 +1178,11 @@ public String getEventId() { } /** - * The unique identifier of the latest transfer event. Included only when the `category` is **issuedCard**. + * The unique identifier of the latest transfer event. Included only when the `category` + * is **issuedCard**. * - * @param eventId The unique identifier of the latest transfer event. Included only when the `category` is **issuedCard**. + * @param eventId The unique identifier of the latest transfer event. Included only when the + * `category` is **issuedCard**. */ @JsonProperty(JSON_PROPERTY_EVENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1110,6 +1211,7 @@ public TransferData addEventsItem(TransferEvent eventsItem) { /** * The list of events leading up to the current status of the transfer. + * * @return events The list of events leading up to the current status of the transfer. */ @JsonProperty(JSON_PROPERTY_EVENTS) @@ -1132,7 +1234,7 @@ public void setEvents(List events) { /** * executionDate * - * @param executionDate + * @param executionDate * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData executionDate(ExecutionDate executionDate) { @@ -1142,7 +1244,8 @@ public TransferData executionDate(ExecutionDate executionDate) { /** * Get executionDate - * @return executionDate + * + * @return executionDate */ @JsonProperty(JSON_PROPERTY_EXECUTION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1153,7 +1256,7 @@ public ExecutionDate getExecutionDate() { /** * executionDate * - * @param executionDate + * @param executionDate */ @JsonProperty(JSON_PROPERTY_EXECUTION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1164,7 +1267,7 @@ public void setExecutionDate(ExecutionDate executionDate) { /** * externalReason * - * @param externalReason + * @param externalReason * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData externalReason(ExternalReason externalReason) { @@ -1174,7 +1277,8 @@ public TransferData externalReason(ExternalReason externalReason) { /** * Get externalReason - * @return externalReason + * + * @return externalReason */ @JsonProperty(JSON_PROPERTY_EXTERNAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1185,7 +1289,7 @@ public ExternalReason getExternalReason() { /** * externalReason * - * @param externalReason + * @param externalReason */ @JsonProperty(JSON_PROPERTY_EXTERNAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1206,6 +1310,7 @@ public TransferData id(String id) { /** * The ID of the resource. + * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -1228,7 +1333,7 @@ public void setId(String id) { /** * paymentInstrument * - * @param paymentInstrument + * @param paymentInstrument * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData paymentInstrument(PaymentInstrument paymentInstrument) { @@ -1238,7 +1343,8 @@ public TransferData paymentInstrument(PaymentInstrument paymentInstrument) { /** * Get paymentInstrument - * @return paymentInstrument + * + * @return paymentInstrument */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1249,7 +1355,7 @@ public PaymentInstrument getPaymentInstrument() { /** * paymentInstrument * - * @param paymentInstrument + * @param paymentInstrument */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1270,6 +1376,7 @@ public TransferData reason(ReasonEnum reason) { /** * Additional information about the status of the transfer. + * * @return reason Additional information about the status of the transfer. */ @JsonProperty(JSON_PROPERTY_REASON) @@ -1290,9 +1397,11 @@ public void setReason(ReasonEnum reason) { } /** - * Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. + * Your reference for the transfer, used internally within your platform. If you don't provide + * this in the request, Adyen generates a unique reference. * - * @param reference Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. + * @param reference Your reference for the transfer, used internally within your platform. If you + * don't provide this in the request, Adyen generates a unique reference. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData reference(String reference) { @@ -1301,8 +1410,11 @@ public TransferData reference(String reference) { } /** - * Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. - * @return reference Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. + * Your reference for the transfer, used internally within your platform. If you don't provide + * this in the request, Adyen generates a unique reference. + * + * @return reference Your reference for the transfer, used internally within your platform. If you + * don't provide this in the request, Adyen generates a unique reference. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1311,9 +1423,11 @@ public String getReference() { } /** - * Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. + * Your reference for the transfer, used internally within your platform. If you don't provide + * this in the request, Adyen generates a unique reference. * - * @param reference Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. + * @param reference Your reference for the transfer, used internally within your platform. If you + * don't provide this in the request, Adyen generates a unique reference. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1322,9 +1436,17 @@ public void setReference(String reference) { } /** - * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * A reference that is sent to the recipient. This reference is also sent in all webhooks related + * to the transfer, so you can use it to track statuses for both the source and recipient of + * funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the + * `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring + * to an IBAN, 15 characters for others. * - * @param referenceForBeneficiary A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * @param referenceForBeneficiary A reference that is sent to the recipient. This reference is + * also sent in all webhooks related to the transfer, so you can use it to track statuses for + * both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The + * maximum length depends on the `category`. - **internal**: 80 characters - + * **bank**: 35 characters when transferring to an IBAN, 15 characters for others. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData referenceForBeneficiary(String referenceForBeneficiary) { @@ -1333,8 +1455,17 @@ public TransferData referenceForBeneficiary(String referenceForBeneficiary) { } /** - * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. - * @return referenceForBeneficiary A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * A reference that is sent to the recipient. This reference is also sent in all webhooks related + * to the transfer, so you can use it to track statuses for both the source and recipient of + * funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the + * `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring + * to an IBAN, 15 characters for others. + * + * @return referenceForBeneficiary A reference that is sent to the recipient. This reference is + * also sent in all webhooks related to the transfer, so you can use it to track statuses for + * both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The + * maximum length depends on the `category`. - **internal**: 80 characters - + * **bank**: 35 characters when transferring to an IBAN, 15 characters for others. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1343,9 +1474,17 @@ public String getReferenceForBeneficiary() { } /** - * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * A reference that is sent to the recipient. This reference is also sent in all webhooks related + * to the transfer, so you can use it to track statuses for both the source and recipient of + * funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the + * `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring + * to an IBAN, 15 characters for others. * - * @param referenceForBeneficiary A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * @param referenceForBeneficiary A reference that is sent to the recipient. This reference is + * also sent in all webhooks related to the transfer, so you can use it to track statuses for + * both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The + * maximum length depends on the `category`. - **internal**: 80 characters - + * **bank**: 35 characters when transferring to an IBAN, 15 characters for others. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1356,7 +1495,7 @@ public void setReferenceForBeneficiary(String referenceForBeneficiary) { /** * review * - * @param review + * @param review * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData review(TransferReview review) { @@ -1366,7 +1505,8 @@ public TransferData review(TransferReview review) { /** * Get review - * @return review + * + * @return review */ @JsonProperty(JSON_PROPERTY_REVIEW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1377,7 +1517,7 @@ public TransferReview getReview() { /** * review * - * @param review + * @param review */ @JsonProperty(JSON_PROPERTY_REVIEW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1386,9 +1526,13 @@ public void setReview(TransferReview review) { } /** - * The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. + * The sequence number of the transfer webhook. The numbers start from 1 and increase with each + * new webhook for a specific transfer. The sequence number can help you restore the correct + * sequence of events even if they arrive out of order. * - * @param sequenceNumber The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. + * @param sequenceNumber The sequence number of the transfer webhook. The numbers start from 1 and + * increase with each new webhook for a specific transfer. The sequence number can help you + * restore the correct sequence of events even if they arrive out of order. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData sequenceNumber(Integer sequenceNumber) { @@ -1397,8 +1541,13 @@ public TransferData sequenceNumber(Integer sequenceNumber) { } /** - * The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. - * @return sequenceNumber The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. + * The sequence number of the transfer webhook. The numbers start from 1 and increase with each + * new webhook for a specific transfer. The sequence number can help you restore the correct + * sequence of events even if they arrive out of order. + * + * @return sequenceNumber The sequence number of the transfer webhook. The numbers start from 1 + * and increase with each new webhook for a specific transfer. The sequence number can help + * you restore the correct sequence of events even if they arrive out of order. */ @JsonProperty(JSON_PROPERTY_SEQUENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1407,9 +1556,13 @@ public Integer getSequenceNumber() { } /** - * The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. + * The sequence number of the transfer webhook. The numbers start from 1 and increase with each + * new webhook for a specific transfer. The sequence number can help you restore the correct + * sequence of events even if they arrive out of order. * - * @param sequenceNumber The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. + * @param sequenceNumber The sequence number of the transfer webhook. The numbers start from 1 and + * increase with each new webhook for a specific transfer. The sequence number can help you + * restore the correct sequence of events even if they arrive out of order. */ @JsonProperty(JSON_PROPERTY_SEQUENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1418,9 +1571,17 @@ public void setSequenceNumber(Integer sequenceNumber) { } /** - * The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. + * The result of the transfer. For example: - **received**: an outgoing transfer request is + * created. - **authorised**: the transfer request is authorized and the funds are reserved. - + * **booked**: the funds are deducted from your user's balance account. - **failed**: the + * transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned + * by the counterparty's bank. * - * @param status The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. + * @param status The result of the transfer. For example: - **received**: an outgoing transfer + * request is created. - **authorised**: the transfer request is authorized and the funds are + * reserved. - **booked**: the funds are deducted from your user's balance account. - + * **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the + * transfer is returned by the counterparty's bank. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData status(StatusEnum status) { @@ -1429,8 +1590,17 @@ public TransferData status(StatusEnum status) { } /** - * The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. - * @return status The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. + * The result of the transfer. For example: - **received**: an outgoing transfer request is + * created. - **authorised**: the transfer request is authorized and the funds are reserved. - + * **booked**: the funds are deducted from your user's balance account. - **failed**: the + * transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned + * by the counterparty's bank. + * + * @return status The result of the transfer. For example: - **received**: an outgoing transfer + * request is created. - **authorised**: the transfer request is authorized and the funds are + * reserved. - **booked**: the funds are deducted from your user's balance account. - + * **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the + * transfer is returned by the counterparty's bank. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1439,9 +1609,17 @@ public StatusEnum getStatus() { } /** - * The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. + * The result of the transfer. For example: - **received**: an outgoing transfer request is + * created. - **authorised**: the transfer request is authorized and the funds are reserved. - + * **booked**: the funds are deducted from your user's balance account. - **failed**: the + * transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned + * by the counterparty's bank. * - * @param status The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. + * @param status The result of the transfer. For example: - **received**: an outgoing transfer + * request is created. - **authorised**: the transfer request is authorized and the funds are + * reserved. - **booked**: the funds are deducted from your user's balance account. - + * **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the + * transfer is returned by the counterparty's bank. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1452,7 +1630,7 @@ public void setStatus(StatusEnum status) { /** * tracking * - * @param tracking + * @param tracking * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData tracking(TransferDataTracking tracking) { @@ -1462,7 +1640,8 @@ public TransferData tracking(TransferDataTracking tracking) { /** * Get tracking - * @return tracking + * + * @return tracking */ @JsonProperty(JSON_PROPERTY_TRACKING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1473,7 +1652,7 @@ public TransferDataTracking getTracking() { /** * tracking * - * @param tracking + * @param tracking */ @JsonProperty(JSON_PROPERTY_TRACKING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1484,7 +1663,7 @@ public void setTracking(TransferDataTracking tracking) { /** * transactionRulesResult * - * @param transactionRulesResult + * @param transactionRulesResult * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData transactionRulesResult(TransactionRulesResult transactionRulesResult) { @@ -1494,7 +1673,8 @@ public TransferData transactionRulesResult(TransactionRulesResult transactionRul /** * Get transactionRulesResult - * @return transactionRulesResult + * + * @return transactionRulesResult */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULES_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1505,7 +1685,7 @@ public TransactionRulesResult getTransactionRulesResult() { /** * transactionRulesResult * - * @param transactionRulesResult + * @param transactionRulesResult */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULES_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1514,9 +1694,11 @@ public void setTransactionRulesResult(TransactionRulesResult transactionRulesRes } /** - * The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. + * The type of transfer or transaction. For example, **refund**, **payment**, + * **internalTransfer**, **bankTransfer**. * - * @param type The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. + * @param type The type of transfer or transaction. For example, **refund**, **payment**, + * **internalTransfer**, **bankTransfer**. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData type(TypeEnum type) { @@ -1525,8 +1707,11 @@ public TransferData type(TypeEnum type) { } /** - * The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. - * @return type The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. + * The type of transfer or transaction. For example, **refund**, **payment**, + * **internalTransfer**, **bankTransfer**. + * + * @return type The type of transfer or transaction. For example, **refund**, **payment**, + * **internalTransfer**, **bankTransfer**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1535,9 +1720,11 @@ public TypeEnum getType() { } /** - * The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. + * The type of transfer or transaction. For example, **refund**, **payment**, + * **internalTransfer**, **bankTransfer**. * - * @param type The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. + * @param type The type of transfer or transaction. For example, **refund**, **payment**, + * **internalTransfer**, **bankTransfer**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1546,9 +1733,11 @@ public void setType(TypeEnum type) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2020-12-18T10:15:30+01:00**. * - * @param updatedAt The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * @param updatedAt The date and time when the event was triggered, in ISO 8601 extended format. + * For example, **2020-12-18T10:15:30+01:00**. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData updatedAt(OffsetDateTime updatedAt) { @@ -1557,8 +1746,11 @@ public TransferData updatedAt(OffsetDateTime updatedAt) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. - * @return updatedAt The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2020-12-18T10:15:30+01:00**. + * + * @return updatedAt The date and time when the event was triggered, in ISO 8601 extended format. + * For example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1567,9 +1759,11 @@ public OffsetDateTime getUpdatedAt() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2020-12-18T10:15:30+01:00**. * - * @param updatedAt The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * @param updatedAt The date and time when the event was triggered, in ISO 8601 extended format. + * For example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1577,9 +1771,7 @@ public void setUpdatedAt(OffsetDateTime updatedAt) { this.updatedAt = updatedAt; } - /** - * Return true if this TransferData object is equal to o. - */ + /** Return true if this TransferData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -1589,40 +1781,69 @@ public boolean equals(Object o) { return false; } TransferData transferData = (TransferData) o; - return Objects.equals(this.accountHolder, transferData.accountHolder) && - Objects.equals(this.amount, transferData.amount) && - Objects.equals(this.balanceAccount, transferData.balanceAccount) && - Objects.equals(this.balancePlatform, transferData.balancePlatform) && - Objects.equals(this.balances, transferData.balances) && - Objects.equals(this.category, transferData.category) && - Objects.equals(this.categoryData, transferData.categoryData) && - Objects.equals(this.counterparty, transferData.counterparty) && - Objects.equals(this.createdAt, transferData.createdAt) && - Objects.equals(this.creationDate, transferData.creationDate) && - Objects.equals(this.description, transferData.description) && - Objects.equals(this.directDebitInformation, transferData.directDebitInformation) && - Objects.equals(this.direction, transferData.direction) && - Objects.equals(this.eventId, transferData.eventId) && - Objects.equals(this.events, transferData.events) && - Objects.equals(this.executionDate, transferData.executionDate) && - Objects.equals(this.externalReason, transferData.externalReason) && - Objects.equals(this.id, transferData.id) && - Objects.equals(this.paymentInstrument, transferData.paymentInstrument) && - Objects.equals(this.reason, transferData.reason) && - Objects.equals(this.reference, transferData.reference) && - Objects.equals(this.referenceForBeneficiary, transferData.referenceForBeneficiary) && - Objects.equals(this.review, transferData.review) && - Objects.equals(this.sequenceNumber, transferData.sequenceNumber) && - Objects.equals(this.status, transferData.status) && - Objects.equals(this.tracking, transferData.tracking) && - Objects.equals(this.transactionRulesResult, transferData.transactionRulesResult) && - Objects.equals(this.type, transferData.type) && - Objects.equals(this.updatedAt, transferData.updatedAt); + return Objects.equals(this.accountHolder, transferData.accountHolder) + && Objects.equals(this.amount, transferData.amount) + && Objects.equals(this.balanceAccount, transferData.balanceAccount) + && Objects.equals(this.balancePlatform, transferData.balancePlatform) + && Objects.equals(this.balances, transferData.balances) + && Objects.equals(this.category, transferData.category) + && Objects.equals(this.categoryData, transferData.categoryData) + && Objects.equals(this.counterparty, transferData.counterparty) + && Objects.equals(this.createdAt, transferData.createdAt) + && Objects.equals(this.creationDate, transferData.creationDate) + && Objects.equals(this.description, transferData.description) + && Objects.equals(this.directDebitInformation, transferData.directDebitInformation) + && Objects.equals(this.direction, transferData.direction) + && Objects.equals(this.eventId, transferData.eventId) + && Objects.equals(this.events, transferData.events) + && Objects.equals(this.executionDate, transferData.executionDate) + && Objects.equals(this.externalReason, transferData.externalReason) + && Objects.equals(this.id, transferData.id) + && Objects.equals(this.paymentInstrument, transferData.paymentInstrument) + && Objects.equals(this.reason, transferData.reason) + && Objects.equals(this.reference, transferData.reference) + && Objects.equals(this.referenceForBeneficiary, transferData.referenceForBeneficiary) + && Objects.equals(this.review, transferData.review) + && Objects.equals(this.sequenceNumber, transferData.sequenceNumber) + && Objects.equals(this.status, transferData.status) + && Objects.equals(this.tracking, transferData.tracking) + && Objects.equals(this.transactionRulesResult, transferData.transactionRulesResult) + && Objects.equals(this.type, transferData.type) + && Objects.equals(this.updatedAt, transferData.updatedAt); } @Override public int hashCode() { - return Objects.hash(accountHolder, amount, balanceAccount, balancePlatform, balances, category, categoryData, counterparty, createdAt, creationDate, description, directDebitInformation, direction, eventId, events, executionDate, externalReason, id, paymentInstrument, reason, reference, referenceForBeneficiary, review, sequenceNumber, status, tracking, transactionRulesResult, type, updatedAt); + return Objects.hash( + accountHolder, + amount, + balanceAccount, + balancePlatform, + balances, + category, + categoryData, + counterparty, + createdAt, + creationDate, + description, + directDebitInformation, + direction, + eventId, + events, + executionDate, + externalReason, + id, + paymentInstrument, + reason, + reference, + referenceForBeneficiary, + review, + sequenceNumber, + status, + tracking, + transactionRulesResult, + type, + updatedAt); } @Override @@ -1640,7 +1861,9 @@ public String toString() { sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" directDebitInformation: ").append(toIndentedString(directDebitInformation)).append("\n"); + sb.append(" directDebitInformation: ") + .append(toIndentedString(directDebitInformation)) + .append("\n"); sb.append(" direction: ").append(toIndentedString(direction)).append("\n"); sb.append(" eventId: ").append(toIndentedString(eventId)).append("\n"); sb.append(" events: ").append(toIndentedString(events)).append("\n"); @@ -1650,12 +1873,16 @@ public String toString() { sb.append(" paymentInstrument: ").append(toIndentedString(paymentInstrument)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); - sb.append(" referenceForBeneficiary: ").append(toIndentedString(referenceForBeneficiary)).append("\n"); + sb.append(" referenceForBeneficiary: ") + .append(toIndentedString(referenceForBeneficiary)) + .append("\n"); sb.append(" review: ").append(toIndentedString(review)).append("\n"); sb.append(" sequenceNumber: ").append(toIndentedString(sequenceNumber)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" tracking: ").append(toIndentedString(tracking)).append("\n"); - sb.append(" transactionRulesResult: ").append(toIndentedString(transactionRulesResult)).append("\n"); + sb.append(" transactionRulesResult: ") + .append(toIndentedString(transactionRulesResult)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); sb.append("}"); @@ -1663,8 +1890,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1673,7 +1899,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransferData given an JSON string * * @param jsonString JSON string @@ -1683,11 +1909,12 @@ private String toIndentedString(Object o) { public static TransferData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferData.class); } -/** - * Convert an instance of TransferData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransferData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/TransferDataTracking.java b/src/main/java/com/adyen/model/transfers/TransferDataTracking.java index e19ae2985..1feb2c1d1 100644 --- a/src/main/java/com/adyen/model/transfers/TransferDataTracking.java +++ b/src/main/java/com/adyen/model/transfers/TransferDataTracking.java @@ -2,47 +2,19 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.ConfirmationTrackingData; -import com.adyen.model.transfers.EstimationTrackingData; -import com.adyen.model.transfers.InternalReviewTrackingData; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -import com.fasterxml.jackson.core.type.TypeReference; - -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.core.Response; -import java.io.IOException; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; - import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -52,261 +24,278 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; - +import jakarta.ws.rs.core.GenericType; +import java.io.IOException; +import java.util.*; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.logging.Level; +import java.util.logging.Logger; @JsonDeserialize(using = TransferDataTracking.TransferDataTrackingDeserializer.class) @JsonSerialize(using = TransferDataTracking.TransferDataTrackingSerializer.class) public class TransferDataTracking extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(TransferDataTracking.class.getName()); - - public static class TransferDataTrackingSerializer extends StdSerializer { - public TransferDataTrackingSerializer(Class t) { - super(t); - } - - public TransferDataTrackingSerializer() { - this(null); - } - - @Override - public void serialize(TransferDataTracking value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class TransferDataTrackingDeserializer extends StdDeserializer { - public TransferDataTrackingDeserializer() { - this(TransferDataTracking.class); - } - - public TransferDataTrackingDeserializer(Class vc) { - super(vc); - } - - @Override - public TransferDataTracking deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize ConfirmationTrackingData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(ConfirmationTrackingData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(ConfirmationTrackingData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'ConfirmationTrackingData'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'ConfirmationTrackingData'", e); - } - - // deserialize EstimationTrackingData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(EstimationTrackingData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(EstimationTrackingData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'EstimationTrackingData'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'EstimationTrackingData'", e); - } - - // deserialize InternalReviewTrackingData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(InternalReviewTrackingData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(InternalReviewTrackingData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'InternalReviewTrackingData'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'InternalReviewTrackingData'", e); - } - - if (match == 1) { - TransferDataTracking ret = new TransferDataTracking(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException(String.format("Failed deserialization for TransferDataTracking: %d classes match result, expected 1", match)); - } - - /** - * Handle deserialization of the 'null' value. - */ - @Override - public TransferDataTracking getNullValue(DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "TransferDataTracking cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); + private static final Logger log = Logger.getLogger(TransferDataTracking.class.getName()); - public TransferDataTracking() { - super("oneOf", Boolean.FALSE); + public static class TransferDataTrackingSerializer extends StdSerializer { + public TransferDataTrackingSerializer(Class t) { + super(t); } - public TransferDataTracking(ConfirmationTrackingData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + public TransferDataTrackingSerializer() { + this(null); } - public TransferDataTracking(EstimationTrackingData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferDataTracking(InternalReviewTrackingData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + @Override + public void serialize( + TransferDataTracking value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); } + } - static { - schemas.put("ConfirmationTrackingData", new GenericType() { - }); - schemas.put("EstimationTrackingData", new GenericType() { - }); - schemas.put("InternalReviewTrackingData", new GenericType() { - }); - JSON.registerDescendants(TransferDataTracking.class, Collections.unmodifiableMap(schemas)); + public static class TransferDataTrackingDeserializer + extends StdDeserializer { + public TransferDataTrackingDeserializer() { + this(TransferDataTracking.class); } - @Override - public Map> getSchemas() { - return TransferDataTracking.schemas; + public TransferDataTrackingDeserializer(Class vc) { + super(vc); } - /** - * Set the instance that matches the oneOf child schema, check - * the instance parameter is valid against the oneOf child schemas: - * ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData - * - * It could be an instance of the 'oneOf' schemas. - * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). - */ @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(ConfirmationTrackingData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + public TransferDataTracking deserialize(JsonParser jp, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize ConfirmationTrackingData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(ConfirmationTrackingData.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(ConfirmationTrackingData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'ConfirmationTrackingData'"); + } } - - if (JSON.isInstanceOf(EstimationTrackingData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'ConfirmationTrackingData'", e); + } + + // deserialize EstimationTrackingData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(EstimationTrackingData.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(EstimationTrackingData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'EstimationTrackingData'"); + } } - - if (JSON.isInstanceOf(InternalReviewTrackingData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'EstimationTrackingData'", e); + } + + // deserialize InternalReviewTrackingData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(InternalReviewTrackingData.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(InternalReviewTrackingData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'InternalReviewTrackingData'"); + } } - - throw new RuntimeException("Invalid instance type. Must be ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData"); + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'InternalReviewTrackingData'", e); + } + + if (match == 1) { + TransferDataTracking ret = new TransferDataTracking(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException( + String.format( + "Failed deserialization for TransferDataTracking: %d classes match result, expected 1", + match)); } - /** - * Get the actual instance, which can be the following: - * ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData - * - * @return The actual instance (ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData) - */ + /** Handle deserialization of the 'null' value. */ @Override - public Object getActualInstance() { - return super.getActualInstance(); + public TransferDataTracking getNullValue(DeserializationContext ctxt) + throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "TransferDataTracking cannot be null"); } - - /** - * Get the actual instance of `ConfirmationTrackingData`. If the actual instance is not `ConfirmationTrackingData`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `ConfirmationTrackingData` - * @throws ClassCastException if the instance is not `ConfirmationTrackingData` - */ - public ConfirmationTrackingData getConfirmationTrackingData() throws ClassCastException { - return (ConfirmationTrackingData)super.getActualInstance(); - } - - /** - * Get the actual instance of `EstimationTrackingData`. If the actual instance is not `EstimationTrackingData`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `EstimationTrackingData` - * @throws ClassCastException if the instance is not `EstimationTrackingData` - */ - public EstimationTrackingData getEstimationTrackingData() throws ClassCastException { - return (EstimationTrackingData)super.getActualInstance(); + } + + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public TransferDataTracking() { + super("oneOf", Boolean.FALSE); + } + + public TransferDataTracking(ConfirmationTrackingData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferDataTracking(EstimationTrackingData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferDataTracking(InternalReviewTrackingData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("ConfirmationTrackingData", new GenericType() {}); + schemas.put("EstimationTrackingData", new GenericType() {}); + schemas.put("InternalReviewTrackingData", new GenericType() {}); + JSON.registerDescendants(TransferDataTracking.class, Collections.unmodifiableMap(schemas)); + } + + @Override + public Map> getSchemas() { + return TransferDataTracking.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check the instance parameter is valid + * against the oneOf child schemas: ConfirmationTrackingData, EstimationTrackingData, + * InternalReviewTrackingData + * + *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a + * composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(ConfirmationTrackingData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `InternalReviewTrackingData`. If the actual instance is not `InternalReviewTrackingData`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `InternalReviewTrackingData` - * @throws ClassCastException if the instance is not `InternalReviewTrackingData` - */ - public InternalReviewTrackingData getInternalReviewTrackingData() throws ClassCastException { - return (InternalReviewTrackingData)super.getActualInstance(); - } - - - /** - * Create an instance of TransferDataTracking given an JSON string - * - * @param jsonString JSON string - * @return An instance of TransferDataTracking - * @throws IOException if the JSON string is invalid with respect to TransferDataTracking - */ - public static TransferDataTracking fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, TransferDataTracking.class); + if (JSON.isInstanceOf(EstimationTrackingData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Convert an instance of TransferDataTracking to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); + if (JSON.isInstanceOf(InternalReviewTrackingData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } + throw new RuntimeException( + "Invalid instance type. Must be ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData"); + } + + /** + * Get the actual instance, which can be the following: ConfirmationTrackingData, + * EstimationTrackingData, InternalReviewTrackingData + * + * @return The actual instance (ConfirmationTrackingData, EstimationTrackingData, + * InternalReviewTrackingData) + */ + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `ConfirmationTrackingData`. If the actual instance is not + * `ConfirmationTrackingData`, the ClassCastException will be thrown. + * + * @return The actual instance of `ConfirmationTrackingData` + * @throws ClassCastException if the instance is not `ConfirmationTrackingData` + */ + public ConfirmationTrackingData getConfirmationTrackingData() throws ClassCastException { + return (ConfirmationTrackingData) super.getActualInstance(); + } + + /** + * Get the actual instance of `EstimationTrackingData`. If the actual instance is not + * `EstimationTrackingData`, the ClassCastException will be thrown. + * + * @return The actual instance of `EstimationTrackingData` + * @throws ClassCastException if the instance is not `EstimationTrackingData` + */ + public EstimationTrackingData getEstimationTrackingData() throws ClassCastException { + return (EstimationTrackingData) super.getActualInstance(); + } + + /** + * Get the actual instance of `InternalReviewTrackingData`. If the actual instance is not + * `InternalReviewTrackingData`, the ClassCastException will be thrown. + * + * @return The actual instance of `InternalReviewTrackingData` + * @throws ClassCastException if the instance is not `InternalReviewTrackingData` + */ + public InternalReviewTrackingData getInternalReviewTrackingData() throws ClassCastException { + return (InternalReviewTrackingData) super.getActualInstance(); + } + + /** + * Create an instance of TransferDataTracking given an JSON string + * + * @param jsonString JSON string + * @return An instance of TransferDataTracking + * @throws IOException if the JSON string is invalid with respect to TransferDataTracking + */ + public static TransferDataTracking fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, TransferDataTracking.class); + } + + /** + * Convert an instance of TransferDataTracking to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } } diff --git a/src/main/java/com/adyen/model/transfers/TransferEvent.java b/src/main/java/com/adyen/model/transfers/TransferEvent.java index 0b6839bbe..cfba03bb6 100644 --- a/src/main/java/com/adyen/model/transfers/TransferEvent.java +++ b/src/main/java/com/adyen/model/transfers/TransferEvent.java @@ -2,41 +2,29 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.Amount; -import com.adyen.model.transfers.AmountAdjustment; -import com.adyen.model.transfers.BalanceMutation; -import com.adyen.model.transfers.ExternalReason; -import com.adyen.model.transfers.Modification; -import com.adyen.model.transfers.TransferEventEventsDataInner; -import com.adyen.model.transfers.TransferEventTrackingData; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * TransferEvent - */ +/** TransferEvent */ @JsonPropertyOrder({ TransferEvent.JSON_PROPERTY_AMOUNT, TransferEvent.JSON_PROPERTY_AMOUNT_ADJUSTMENTS, @@ -57,7 +45,6 @@ TransferEvent.JSON_PROPERTY_UPDATE_DATE, TransferEvent.JSON_PROPERTY_VALUE_DATE }) - public class TransferEvent { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -92,11 +79,8 @@ public class TransferEvent { public static final String JSON_PROPERTY_ORIGINAL_AMOUNT = "originalAmount"; private Amount originalAmount; - /** - * The reason for the transfer status. - */ + /** The reason for the transfer status. */ public enum ReasonEnum { - ACCOUNTHIERARCHYNOTACTIVE(String.valueOf("accountHierarchyNotActive")), AMOUNTLIMITEXCEEDED(String.valueOf("amountLimitExceeded")), @@ -105,7 +89,8 @@ public enum ReasonEnum { APPROVED(String.valueOf("approved")), - BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE(String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), + BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE( + String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), COUNTERPARTYACCOUNTBLOCKED(String.valueOf("counterpartyAccountBlocked")), @@ -152,7 +137,7 @@ public enum ReasonEnum { private String value; ReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -173,7 +158,11 @@ public static ReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ReasonEnum.values())); + LOG.warning( + "ReasonEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ReasonEnum.values())); return null; } } @@ -181,11 +170,8 @@ public static ReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_REASON = "reason"; private ReasonEnum reason; - /** - * The status of the transfer event. - */ + /** The status of the transfer event. */ public enum StatusEnum { - APPROVALPENDING(String.valueOf("approvalPending")), ATMWITHDRAWAL(String.valueOf("atmWithdrawal")), @@ -325,7 +311,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -346,7 +332,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -360,11 +350,8 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANSACTION_ID = "transactionId"; private String transactionId; - /** - * The type of the transfer event. Possible values: **accounting**, **tracking**. - */ + /** The type of the transfer event. Possible values: **accounting**, **tracking**. */ public enum TypeEnum { - ACCOUNTING(String.valueOf("accounting")), TRACKING(String.valueOf("tracking")); @@ -374,7 +361,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -395,7 +382,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -409,13 +400,12 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUE_DATE = "valueDate"; private OffsetDateTime valueDate; - public TransferEvent() { - } + public TransferEvent() {} /** * amount * - * @param amount + * @param amount * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent amount(Amount amount) { @@ -425,7 +415,8 @@ public TransferEvent amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -436,7 +427,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -445,9 +436,11 @@ public void setAmount(Amount amount) { } /** - * The amount adjustments in this transfer. Only applicable for [issuing](https://docs.adyen.com/issuing/) integrations. + * The amount adjustments in this transfer. Only applicable for + * [issuing](https://docs.adyen.com/issuing/) integrations. * - * @param amountAdjustments The amount adjustments in this transfer. Only applicable for [issuing](https://docs.adyen.com/issuing/) integrations. + * @param amountAdjustments The amount adjustments in this transfer. Only applicable for + * [issuing](https://docs.adyen.com/issuing/) integrations. * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent amountAdjustments(List amountAdjustments) { @@ -464,8 +457,11 @@ public TransferEvent addAmountAdjustmentsItem(AmountAdjustment amountAdjustments } /** - * The amount adjustments in this transfer. Only applicable for [issuing](https://docs.adyen.com/issuing/) integrations. - * @return amountAdjustments The amount adjustments in this transfer. Only applicable for [issuing](https://docs.adyen.com/issuing/) integrations. + * The amount adjustments in this transfer. Only applicable for + * [issuing](https://docs.adyen.com/issuing/) integrations. + * + * @return amountAdjustments The amount adjustments in this transfer. Only applicable for + * [issuing](https://docs.adyen.com/issuing/) integrations. */ @JsonProperty(JSON_PROPERTY_AMOUNT_ADJUSTMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -474,9 +470,11 @@ public List getAmountAdjustments() { } /** - * The amount adjustments in this transfer. Only applicable for [issuing](https://docs.adyen.com/issuing/) integrations. + * The amount adjustments in this transfer. Only applicable for + * [issuing](https://docs.adyen.com/issuing/) integrations. * - * @param amountAdjustments The amount adjustments in this transfer. Only applicable for [issuing](https://docs.adyen.com/issuing/) integrations. + * @param amountAdjustments The amount adjustments in this transfer. Only applicable for + * [issuing](https://docs.adyen.com/issuing/) integrations. */ @JsonProperty(JSON_PROPERTY_AMOUNT_ADJUSTMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -497,7 +495,9 @@ public TransferEvent arn(String arn) { /** * Scheme unique arn identifier useful for tracing captures, chargebacks, refunds, etc. - * @return arn Scheme unique arn identifier useful for tracing captures, chargebacks, refunds, etc. + * + * @return arn Scheme unique arn identifier useful for tracing captures, chargebacks, refunds, + * etc. */ @JsonProperty(JSON_PROPERTY_ARN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -529,6 +529,7 @@ public TransferEvent bookingDate(OffsetDateTime bookingDate) { /** * The date when the transfer request was sent. + * * @return bookingDate The date when the transfer request was sent. */ @JsonProperty(JSON_PROPERTY_BOOKING_DATE) @@ -551,7 +552,8 @@ public void setBookingDate(OffsetDateTime bookingDate) { /** * The estimated time when the beneficiary should have access to the funds. * - * @param estimatedArrivalTime The estimated time when the beneficiary should have access to the funds. + * @param estimatedArrivalTime The estimated time when the beneficiary should have access to the + * funds. * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent estimatedArrivalTime(OffsetDateTime estimatedArrivalTime) { @@ -561,7 +563,9 @@ public TransferEvent estimatedArrivalTime(OffsetDateTime estimatedArrivalTime) { /** * The estimated time when the beneficiary should have access to the funds. - * @return estimatedArrivalTime The estimated time when the beneficiary should have access to the funds. + * + * @return estimatedArrivalTime The estimated time when the beneficiary should have access to the + * funds. */ @JsonProperty(JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -572,7 +576,8 @@ public OffsetDateTime getEstimatedArrivalTime() { /** * The estimated time when the beneficiary should have access to the funds. * - * @param estimatedArrivalTime The estimated time when the beneficiary should have access to the funds. + * @param estimatedArrivalTime The estimated time when the beneficiary should have access to the + * funds. */ @JsonProperty(JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -601,6 +606,7 @@ public TransferEvent addEventsDataItem(TransferEventEventsDataInner eventsDataIt /** * A list of event data. + * * @return eventsData A list of event data. */ @JsonProperty(JSON_PROPERTY_EVENTS_DATA) @@ -623,7 +629,7 @@ public void setEventsData(List eventsData) { /** * externalReason * - * @param externalReason + * @param externalReason * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent externalReason(ExternalReason externalReason) { @@ -633,7 +639,8 @@ public TransferEvent externalReason(ExternalReason externalReason) { /** * Get externalReason - * @return externalReason + * + * @return externalReason */ @JsonProperty(JSON_PROPERTY_EXTERNAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -644,7 +651,7 @@ public ExternalReason getExternalReason() { /** * externalReason * - * @param externalReason + * @param externalReason */ @JsonProperty(JSON_PROPERTY_EXTERNAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -665,6 +672,7 @@ public TransferEvent id(String id) { /** * The unique identifier of the transfer event. + * * @return id The unique identifier of the transfer event. */ @JsonProperty(JSON_PROPERTY_ID) @@ -687,7 +695,7 @@ public void setId(String id) { /** * modification * - * @param modification + * @param modification * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent modification(Modification modification) { @@ -697,7 +705,8 @@ public TransferEvent modification(Modification modification) { /** * Get modification - * @return modification + * + * @return modification */ @JsonProperty(JSON_PROPERTY_MODIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -708,7 +717,7 @@ public Modification getModification() { /** * modification * - * @param modification + * @param modification */ @JsonProperty(JSON_PROPERTY_MODIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -737,6 +746,7 @@ public TransferEvent addMutationsItem(BalanceMutation mutationsItem) { /** * The list of balance mutations per event. + * * @return mutations The list of balance mutations per event. */ @JsonProperty(JSON_PROPERTY_MUTATIONS) @@ -759,7 +769,7 @@ public void setMutations(List mutations) { /** * originalAmount * - * @param originalAmount + * @param originalAmount * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent originalAmount(Amount originalAmount) { @@ -769,7 +779,8 @@ public TransferEvent originalAmount(Amount originalAmount) { /** * Get originalAmount - * @return originalAmount + * + * @return originalAmount */ @JsonProperty(JSON_PROPERTY_ORIGINAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -780,7 +791,7 @@ public Amount getOriginalAmount() { /** * originalAmount * - * @param originalAmount + * @param originalAmount */ @JsonProperty(JSON_PROPERTY_ORIGINAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -801,6 +812,7 @@ public TransferEvent reason(ReasonEnum reason) { /** * The reason for the transfer status. + * * @return reason The reason for the transfer status. */ @JsonProperty(JSON_PROPERTY_REASON) @@ -833,6 +845,7 @@ public TransferEvent status(StatusEnum status) { /** * The status of the transfer event. + * * @return status The status of the transfer event. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -855,7 +868,7 @@ public void setStatus(StatusEnum status) { /** * trackingData * - * @param trackingData + * @param trackingData * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent trackingData(TransferEventTrackingData trackingData) { @@ -865,7 +878,8 @@ public TransferEvent trackingData(TransferEventTrackingData trackingData) { /** * Get trackingData - * @return trackingData + * + * @return trackingData */ @JsonProperty(JSON_PROPERTY_TRACKING_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -876,7 +890,7 @@ public TransferEventTrackingData getTrackingData() { /** * trackingData * - * @param trackingData + * @param trackingData */ @JsonProperty(JSON_PROPERTY_TRACKING_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -885,9 +899,11 @@ public void setTrackingData(TransferEventTrackingData trackingData) { } /** - * The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes. + * The id of the transaction that is related to this accounting event. Only sent for events of + * type **accounting** where the balance changes. * - * @param transactionId The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes. + * @param transactionId The id of the transaction that is related to this accounting event. Only + * sent for events of type **accounting** where the balance changes. * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent transactionId(String transactionId) { @@ -896,8 +912,11 @@ public TransferEvent transactionId(String transactionId) { } /** - * The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes. - * @return transactionId The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes. + * The id of the transaction that is related to this accounting event. Only sent for events of + * type **accounting** where the balance changes. + * + * @return transactionId The id of the transaction that is related to this accounting event. Only + * sent for events of type **accounting** where the balance changes. */ @JsonProperty(JSON_PROPERTY_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -906,9 +925,11 @@ public String getTransactionId() { } /** - * The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes. + * The id of the transaction that is related to this accounting event. Only sent for events of + * type **accounting** where the balance changes. * - * @param transactionId The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes. + * @param transactionId The id of the transaction that is related to this accounting event. Only + * sent for events of type **accounting** where the balance changes. */ @JsonProperty(JSON_PROPERTY_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -929,6 +950,7 @@ public TransferEvent type(TypeEnum type) { /** * The type of the transfer event. Possible values: **accounting**, **tracking**. + * * @return type The type of the transfer event. Possible values: **accounting**, **tracking**. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -961,6 +983,7 @@ public TransferEvent updateDate(OffsetDateTime updateDate) { /** * The date when the tracking status was updated. + * * @return updateDate The date when the tracking status was updated. */ @JsonProperty(JSON_PROPERTY_UPDATE_DATE) @@ -981,9 +1004,11 @@ public void setUpdateDate(OffsetDateTime updateDate) { } /** - * The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future. + * The date when the funds are expected to be deducted from or credited to the balance account. + * This date can be in either the past or future. * - * @param valueDate The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future. + * @param valueDate The date when the funds are expected to be deducted from or credited to the + * balance account. This date can be in either the past or future. * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent valueDate(OffsetDateTime valueDate) { @@ -992,8 +1017,11 @@ public TransferEvent valueDate(OffsetDateTime valueDate) { } /** - * The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future. - * @return valueDate The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future. + * The date when the funds are expected to be deducted from or credited to the balance account. + * This date can be in either the past or future. + * + * @return valueDate The date when the funds are expected to be deducted from or credited to the + * balance account. This date can be in either the past or future. */ @JsonProperty(JSON_PROPERTY_VALUE_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1002,9 +1030,11 @@ public OffsetDateTime getValueDate() { } /** - * The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future. + * The date when the funds are expected to be deducted from or credited to the balance account. + * This date can be in either the past or future. * - * @param valueDate The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future. + * @param valueDate The date when the funds are expected to be deducted from or credited to the + * balance account. This date can be in either the past or future. */ @JsonProperty(JSON_PROPERTY_VALUE_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1012,9 +1042,7 @@ public void setValueDate(OffsetDateTime valueDate) { this.valueDate = valueDate; } - /** - * Return true if this TransferEvent object is equal to o. - */ + /** Return true if this TransferEvent object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -1024,29 +1052,47 @@ public boolean equals(Object o) { return false; } TransferEvent transferEvent = (TransferEvent) o; - return Objects.equals(this.amount, transferEvent.amount) && - Objects.equals(this.amountAdjustments, transferEvent.amountAdjustments) && - Objects.equals(this.arn, transferEvent.arn) && - Objects.equals(this.bookingDate, transferEvent.bookingDate) && - Objects.equals(this.estimatedArrivalTime, transferEvent.estimatedArrivalTime) && - Objects.equals(this.eventsData, transferEvent.eventsData) && - Objects.equals(this.externalReason, transferEvent.externalReason) && - Objects.equals(this.id, transferEvent.id) && - Objects.equals(this.modification, transferEvent.modification) && - Objects.equals(this.mutations, transferEvent.mutations) && - Objects.equals(this.originalAmount, transferEvent.originalAmount) && - Objects.equals(this.reason, transferEvent.reason) && - Objects.equals(this.status, transferEvent.status) && - Objects.equals(this.trackingData, transferEvent.trackingData) && - Objects.equals(this.transactionId, transferEvent.transactionId) && - Objects.equals(this.type, transferEvent.type) && - Objects.equals(this.updateDate, transferEvent.updateDate) && - Objects.equals(this.valueDate, transferEvent.valueDate); + return Objects.equals(this.amount, transferEvent.amount) + && Objects.equals(this.amountAdjustments, transferEvent.amountAdjustments) + && Objects.equals(this.arn, transferEvent.arn) + && Objects.equals(this.bookingDate, transferEvent.bookingDate) + && Objects.equals(this.estimatedArrivalTime, transferEvent.estimatedArrivalTime) + && Objects.equals(this.eventsData, transferEvent.eventsData) + && Objects.equals(this.externalReason, transferEvent.externalReason) + && Objects.equals(this.id, transferEvent.id) + && Objects.equals(this.modification, transferEvent.modification) + && Objects.equals(this.mutations, transferEvent.mutations) + && Objects.equals(this.originalAmount, transferEvent.originalAmount) + && Objects.equals(this.reason, transferEvent.reason) + && Objects.equals(this.status, transferEvent.status) + && Objects.equals(this.trackingData, transferEvent.trackingData) + && Objects.equals(this.transactionId, transferEvent.transactionId) + && Objects.equals(this.type, transferEvent.type) + && Objects.equals(this.updateDate, transferEvent.updateDate) + && Objects.equals(this.valueDate, transferEvent.valueDate); } @Override public int hashCode() { - return Objects.hash(amount, amountAdjustments, arn, bookingDate, estimatedArrivalTime, eventsData, externalReason, id, modification, mutations, originalAmount, reason, status, trackingData, transactionId, type, updateDate, valueDate); + return Objects.hash( + amount, + amountAdjustments, + arn, + bookingDate, + estimatedArrivalTime, + eventsData, + externalReason, + id, + modification, + mutations, + originalAmount, + reason, + status, + trackingData, + transactionId, + type, + updateDate, + valueDate); } @Override @@ -1057,7 +1103,9 @@ public String toString() { sb.append(" amountAdjustments: ").append(toIndentedString(amountAdjustments)).append("\n"); sb.append(" arn: ").append(toIndentedString(arn)).append("\n"); sb.append(" bookingDate: ").append(toIndentedString(bookingDate)).append("\n"); - sb.append(" estimatedArrivalTime: ").append(toIndentedString(estimatedArrivalTime)).append("\n"); + sb.append(" estimatedArrivalTime: ") + .append(toIndentedString(estimatedArrivalTime)) + .append("\n"); sb.append(" eventsData: ").append(toIndentedString(eventsData)).append("\n"); sb.append(" externalReason: ").append(toIndentedString(externalReason)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); @@ -1076,8 +1124,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1086,7 +1133,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransferEvent given an JSON string * * @param jsonString JSON string @@ -1096,11 +1143,12 @@ private String toIndentedString(Object o) { public static TransferEvent fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferEvent.class); } -/** - * Convert an instance of TransferEvent to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransferEvent to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/TransferEventEventsDataInner.java b/src/main/java/com/adyen/model/transfers/TransferEventEventsDataInner.java index c02ca628f..732f81f28 100644 --- a/src/main/java/com/adyen/model/transfers/TransferEventEventsDataInner.java +++ b/src/main/java/com/adyen/model/transfers/TransferEventEventsDataInner.java @@ -2,49 +2,19 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.Airline; -import com.adyen.model.transfers.IssuingTransactionData; -import com.adyen.model.transfers.Lodging; -import com.adyen.model.transfers.MerchantPurchaseData; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -import com.fasterxml.jackson.core.type.TypeReference; - -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.core.Response; -import java.io.IOException; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; - import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -54,214 +24,231 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import jakarta.ws.rs.core.GenericType; +import java.io.IOException; +import java.util.*; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.logging.Level; +import java.util.logging.Logger; - -@JsonDeserialize(using = TransferEventEventsDataInner.TransferEventEventsDataInnerDeserializer.class) +@JsonDeserialize( + using = TransferEventEventsDataInner.TransferEventEventsDataInnerDeserializer.class) @JsonSerialize(using = TransferEventEventsDataInner.TransferEventEventsDataInnerSerializer.class) public class TransferEventEventsDataInner extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(TransferEventEventsDataInner.class.getName()); - - public static class TransferEventEventsDataInnerSerializer extends StdSerializer { - public TransferEventEventsDataInnerSerializer(Class t) { - super(t); - } - - public TransferEventEventsDataInnerSerializer() { - this(null); - } + private static final Logger log = Logger.getLogger(TransferEventEventsDataInner.class.getName()); - @Override - public void serialize(TransferEventEventsDataInner value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } + public static class TransferEventEventsDataInnerSerializer + extends StdSerializer { + public TransferEventEventsDataInnerSerializer(Class t) { + super(t); } - public static class TransferEventEventsDataInnerDeserializer extends StdDeserializer { - public TransferEventEventsDataInnerDeserializer() { - this(TransferEventEventsDataInner.class); - } - - public TransferEventEventsDataInnerDeserializer(Class vc) { - super(vc); - } - - @Override - public TransferEventEventsDataInner deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize IssuingTransactionData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(IssuingTransactionData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(IssuingTransactionData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'IssuingTransactionData'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'IssuingTransactionData'", e); - } - - // deserialize MerchantPurchaseData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(MerchantPurchaseData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(MerchantPurchaseData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'MerchantPurchaseData'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'MerchantPurchaseData'", e); - } - - if (match == 1) { - TransferEventEventsDataInner ret = new TransferEventEventsDataInner(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException(String.format("Failed deserialization for TransferEventEventsDataInner: %d classes match result, expected 1", match)); - } - - /** - * Handle deserialization of the 'null' value. - */ - @Override - public TransferEventEventsDataInner getNullValue(DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "TransferEventEventsDataInner cannot be null"); - } + public TransferEventEventsDataInnerSerializer() { + this(null); } - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public TransferEventEventsDataInner() { - super("oneOf", Boolean.FALSE); - } - - public TransferEventEventsDataInner(IssuingTransactionData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + @Override + public void serialize( + TransferEventEventsDataInner value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); } + } - public TransferEventEventsDataInner(MerchantPurchaseData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + public static class TransferEventEventsDataInnerDeserializer + extends StdDeserializer { + public TransferEventEventsDataInnerDeserializer() { + this(TransferEventEventsDataInner.class); } - static { - schemas.put("IssuingTransactionData", new GenericType() { - }); - schemas.put("MerchantPurchaseData", new GenericType() { - }); - JSON.registerDescendants(TransferEventEventsDataInner.class, Collections.unmodifiableMap(schemas)); + public TransferEventEventsDataInnerDeserializer(Class vc) { + super(vc); } @Override - public Map> getSchemas() { - return TransferEventEventsDataInner.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check - * the instance parameter is valid against the oneOf child schemas: - * IssuingTransactionData, MerchantPurchaseData - * - * It could be an instance of the 'oneOf' schemas. - * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(IssuingTransactionData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + public TransferEventEventsDataInner deserialize(JsonParser jp, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize IssuingTransactionData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(IssuingTransactionData.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(IssuingTransactionData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'IssuingTransactionData'"); + } } - - if (JSON.isInstanceOf(MerchantPurchaseData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'IssuingTransactionData'", e); + } + + // deserialize MerchantPurchaseData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(MerchantPurchaseData.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(MerchantPurchaseData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'MerchantPurchaseData'"); + } } - - throw new RuntimeException("Invalid instance type. Must be IssuingTransactionData, MerchantPurchaseData"); + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'MerchantPurchaseData'", e); + } + + if (match == 1) { + TransferEventEventsDataInner ret = new TransferEventEventsDataInner(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException( + String.format( + "Failed deserialization for TransferEventEventsDataInner: %d classes match result, expected 1", + match)); } - /** - * Get the actual instance, which can be the following: - * IssuingTransactionData, MerchantPurchaseData - * - * @return The actual instance (IssuingTransactionData, MerchantPurchaseData) - */ + /** Handle deserialization of the 'null' value. */ @Override - public Object getActualInstance() { - return super.getActualInstance(); + public TransferEventEventsDataInner getNullValue(DeserializationContext ctxt) + throws JsonMappingException { + throw new JsonMappingException( + ctxt.getParser(), "TransferEventEventsDataInner cannot be null"); } - - /** - * Get the actual instance of `IssuingTransactionData`. If the actual instance is not `IssuingTransactionData`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `IssuingTransactionData` - * @throws ClassCastException if the instance is not `IssuingTransactionData` - */ - public IssuingTransactionData getIssuingTransactionData() throws ClassCastException { - return (IssuingTransactionData)super.getActualInstance(); - } - - /** - * Get the actual instance of `MerchantPurchaseData`. If the actual instance is not `MerchantPurchaseData`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `MerchantPurchaseData` - * @throws ClassCastException if the instance is not `MerchantPurchaseData` - */ - public MerchantPurchaseData getMerchantPurchaseData() throws ClassCastException { - return (MerchantPurchaseData)super.getActualInstance(); - } - - - /** - * Create an instance of TransferEventEventsDataInner given an JSON string - * - * @param jsonString JSON string - * @return An instance of TransferEventEventsDataInner - * @throws IOException if the JSON string is invalid with respect to TransferEventEventsDataInner - */ - public static TransferEventEventsDataInner fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, TransferEventEventsDataInner.class); + } + + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public TransferEventEventsDataInner() { + super("oneOf", Boolean.FALSE); + } + + public TransferEventEventsDataInner(IssuingTransactionData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferEventEventsDataInner(MerchantPurchaseData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("IssuingTransactionData", new GenericType() {}); + schemas.put("MerchantPurchaseData", new GenericType() {}); + JSON.registerDescendants( + TransferEventEventsDataInner.class, Collections.unmodifiableMap(schemas)); + } + + @Override + public Map> getSchemas() { + return TransferEventEventsDataInner.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check the instance parameter is valid + * against the oneOf child schemas: IssuingTransactionData, MerchantPurchaseData + * + *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a + * composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(IssuingTransactionData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Convert an instance of TransferEventEventsDataInner to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); + if (JSON.isInstanceOf(MerchantPurchaseData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } + throw new RuntimeException( + "Invalid instance type. Must be IssuingTransactionData, MerchantPurchaseData"); + } + + /** + * Get the actual instance, which can be the following: IssuingTransactionData, + * MerchantPurchaseData + * + * @return The actual instance (IssuingTransactionData, MerchantPurchaseData) + */ + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `IssuingTransactionData`. If the actual instance is not + * `IssuingTransactionData`, the ClassCastException will be thrown. + * + * @return The actual instance of `IssuingTransactionData` + * @throws ClassCastException if the instance is not `IssuingTransactionData` + */ + public IssuingTransactionData getIssuingTransactionData() throws ClassCastException { + return (IssuingTransactionData) super.getActualInstance(); + } + + /** + * Get the actual instance of `MerchantPurchaseData`. If the actual instance is not + * `MerchantPurchaseData`, the ClassCastException will be thrown. + * + * @return The actual instance of `MerchantPurchaseData` + * @throws ClassCastException if the instance is not `MerchantPurchaseData` + */ + public MerchantPurchaseData getMerchantPurchaseData() throws ClassCastException { + return (MerchantPurchaseData) super.getActualInstance(); + } + + /** + * Create an instance of TransferEventEventsDataInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of TransferEventEventsDataInner + * @throws IOException if the JSON string is invalid with respect to TransferEventEventsDataInner + */ + public static TransferEventEventsDataInner fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, TransferEventEventsDataInner.class); + } + + /** + * Convert an instance of TransferEventEventsDataInner to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } } diff --git a/src/main/java/com/adyen/model/transfers/TransferEventTrackingData.java b/src/main/java/com/adyen/model/transfers/TransferEventTrackingData.java index 355ca8096..90f80c6e2 100644 --- a/src/main/java/com/adyen/model/transfers/TransferEventTrackingData.java +++ b/src/main/java/com/adyen/model/transfers/TransferEventTrackingData.java @@ -2,47 +2,19 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.ConfirmationTrackingData; -import com.adyen.model.transfers.EstimationTrackingData; -import com.adyen.model.transfers.InternalReviewTrackingData; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -import com.fasterxml.jackson.core.type.TypeReference; - -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.core.Response; -import java.io.IOException; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; - import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -52,261 +24,279 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; - +import jakarta.ws.rs.core.GenericType; +import java.io.IOException; +import java.util.*; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.logging.Level; +import java.util.logging.Logger; @JsonDeserialize(using = TransferEventTrackingData.TransferEventTrackingDataDeserializer.class) @JsonSerialize(using = TransferEventTrackingData.TransferEventTrackingDataSerializer.class) public class TransferEventTrackingData extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(TransferEventTrackingData.class.getName()); - - public static class TransferEventTrackingDataSerializer extends StdSerializer { - public TransferEventTrackingDataSerializer(Class t) { - super(t); - } - - public TransferEventTrackingDataSerializer() { - this(null); - } - - @Override - public void serialize(TransferEventTrackingData value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class TransferEventTrackingDataDeserializer extends StdDeserializer { - public TransferEventTrackingDataDeserializer() { - this(TransferEventTrackingData.class); - } - - public TransferEventTrackingDataDeserializer(Class vc) { - super(vc); - } - - @Override - public TransferEventTrackingData deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize ConfirmationTrackingData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(ConfirmationTrackingData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(ConfirmationTrackingData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'ConfirmationTrackingData'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'ConfirmationTrackingData'", e); - } - - // deserialize EstimationTrackingData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(EstimationTrackingData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(EstimationTrackingData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'EstimationTrackingData'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'EstimationTrackingData'", e); - } - - // deserialize InternalReviewTrackingData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(InternalReviewTrackingData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(InternalReviewTrackingData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'InternalReviewTrackingData'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'InternalReviewTrackingData'", e); - } - - if (match == 1) { - TransferEventTrackingData ret = new TransferEventTrackingData(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException(String.format("Failed deserialization for TransferEventTrackingData: %d classes match result, expected 1", match)); - } - - /** - * Handle deserialization of the 'null' value. - */ - @Override - public TransferEventTrackingData getNullValue(DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "TransferEventTrackingData cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); + private static final Logger log = Logger.getLogger(TransferEventTrackingData.class.getName()); - public TransferEventTrackingData() { - super("oneOf", Boolean.FALSE); + public static class TransferEventTrackingDataSerializer + extends StdSerializer { + public TransferEventTrackingDataSerializer(Class t) { + super(t); } - public TransferEventTrackingData(ConfirmationTrackingData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + public TransferEventTrackingDataSerializer() { + this(null); } - public TransferEventTrackingData(EstimationTrackingData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferEventTrackingData(InternalReviewTrackingData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + @Override + public void serialize( + TransferEventTrackingData value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); } + } - static { - schemas.put("ConfirmationTrackingData", new GenericType() { - }); - schemas.put("EstimationTrackingData", new GenericType() { - }); - schemas.put("InternalReviewTrackingData", new GenericType() { - }); - JSON.registerDescendants(TransferEventTrackingData.class, Collections.unmodifiableMap(schemas)); + public static class TransferEventTrackingDataDeserializer + extends StdDeserializer { + public TransferEventTrackingDataDeserializer() { + this(TransferEventTrackingData.class); } - @Override - public Map> getSchemas() { - return TransferEventTrackingData.schemas; + public TransferEventTrackingDataDeserializer(Class vc) { + super(vc); } - /** - * Set the instance that matches the oneOf child schema, check - * the instance parameter is valid against the oneOf child schemas: - * ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData - * - * It could be an instance of the 'oneOf' schemas. - * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). - */ @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(ConfirmationTrackingData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + public TransferEventTrackingData deserialize(JsonParser jp, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize ConfirmationTrackingData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(ConfirmationTrackingData.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(ConfirmationTrackingData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'ConfirmationTrackingData'"); + } } - - if (JSON.isInstanceOf(EstimationTrackingData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'ConfirmationTrackingData'", e); + } + + // deserialize EstimationTrackingData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(EstimationTrackingData.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(EstimationTrackingData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'EstimationTrackingData'"); + } } - - if (JSON.isInstanceOf(InternalReviewTrackingData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'EstimationTrackingData'", e); + } + + // deserialize InternalReviewTrackingData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(InternalReviewTrackingData.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(InternalReviewTrackingData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'InternalReviewTrackingData'"); + } } - - throw new RuntimeException("Invalid instance type. Must be ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData"); + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'InternalReviewTrackingData'", e); + } + + if (match == 1) { + TransferEventTrackingData ret = new TransferEventTrackingData(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException( + String.format( + "Failed deserialization for TransferEventTrackingData: %d classes match result, expected 1", + match)); } - /** - * Get the actual instance, which can be the following: - * ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData - * - * @return The actual instance (ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData) - */ + /** Handle deserialization of the 'null' value. */ @Override - public Object getActualInstance() { - return super.getActualInstance(); + public TransferEventTrackingData getNullValue(DeserializationContext ctxt) + throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "TransferEventTrackingData cannot be null"); } - - /** - * Get the actual instance of `ConfirmationTrackingData`. If the actual instance is not `ConfirmationTrackingData`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `ConfirmationTrackingData` - * @throws ClassCastException if the instance is not `ConfirmationTrackingData` - */ - public ConfirmationTrackingData getConfirmationTrackingData() throws ClassCastException { - return (ConfirmationTrackingData)super.getActualInstance(); - } - - /** - * Get the actual instance of `EstimationTrackingData`. If the actual instance is not `EstimationTrackingData`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `EstimationTrackingData` - * @throws ClassCastException if the instance is not `EstimationTrackingData` - */ - public EstimationTrackingData getEstimationTrackingData() throws ClassCastException { - return (EstimationTrackingData)super.getActualInstance(); + } + + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public TransferEventTrackingData() { + super("oneOf", Boolean.FALSE); + } + + public TransferEventTrackingData(ConfirmationTrackingData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferEventTrackingData(EstimationTrackingData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferEventTrackingData(InternalReviewTrackingData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("ConfirmationTrackingData", new GenericType() {}); + schemas.put("EstimationTrackingData", new GenericType() {}); + schemas.put("InternalReviewTrackingData", new GenericType() {}); + JSON.registerDescendants(TransferEventTrackingData.class, Collections.unmodifiableMap(schemas)); + } + + @Override + public Map> getSchemas() { + return TransferEventTrackingData.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check the instance parameter is valid + * against the oneOf child schemas: ConfirmationTrackingData, EstimationTrackingData, + * InternalReviewTrackingData + * + *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a + * composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(ConfirmationTrackingData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `InternalReviewTrackingData`. If the actual instance is not `InternalReviewTrackingData`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `InternalReviewTrackingData` - * @throws ClassCastException if the instance is not `InternalReviewTrackingData` - */ - public InternalReviewTrackingData getInternalReviewTrackingData() throws ClassCastException { - return (InternalReviewTrackingData)super.getActualInstance(); - } - - - /** - * Create an instance of TransferEventTrackingData given an JSON string - * - * @param jsonString JSON string - * @return An instance of TransferEventTrackingData - * @throws IOException if the JSON string is invalid with respect to TransferEventTrackingData - */ - public static TransferEventTrackingData fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, TransferEventTrackingData.class); + if (JSON.isInstanceOf(EstimationTrackingData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Convert an instance of TransferEventTrackingData to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); + if (JSON.isInstanceOf(InternalReviewTrackingData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } + throw new RuntimeException( + "Invalid instance type. Must be ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData"); + } + + /** + * Get the actual instance, which can be the following: ConfirmationTrackingData, + * EstimationTrackingData, InternalReviewTrackingData + * + * @return The actual instance (ConfirmationTrackingData, EstimationTrackingData, + * InternalReviewTrackingData) + */ + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `ConfirmationTrackingData`. If the actual instance is not + * `ConfirmationTrackingData`, the ClassCastException will be thrown. + * + * @return The actual instance of `ConfirmationTrackingData` + * @throws ClassCastException if the instance is not `ConfirmationTrackingData` + */ + public ConfirmationTrackingData getConfirmationTrackingData() throws ClassCastException { + return (ConfirmationTrackingData) super.getActualInstance(); + } + + /** + * Get the actual instance of `EstimationTrackingData`. If the actual instance is not + * `EstimationTrackingData`, the ClassCastException will be thrown. + * + * @return The actual instance of `EstimationTrackingData` + * @throws ClassCastException if the instance is not `EstimationTrackingData` + */ + public EstimationTrackingData getEstimationTrackingData() throws ClassCastException { + return (EstimationTrackingData) super.getActualInstance(); + } + + /** + * Get the actual instance of `InternalReviewTrackingData`. If the actual instance is not + * `InternalReviewTrackingData`, the ClassCastException will be thrown. + * + * @return The actual instance of `InternalReviewTrackingData` + * @throws ClassCastException if the instance is not `InternalReviewTrackingData` + */ + public InternalReviewTrackingData getInternalReviewTrackingData() throws ClassCastException { + return (InternalReviewTrackingData) super.getActualInstance(); + } + + /** + * Create an instance of TransferEventTrackingData given an JSON string + * + * @param jsonString JSON string + * @return An instance of TransferEventTrackingData + * @throws IOException if the JSON string is invalid with respect to TransferEventTrackingData + */ + public static TransferEventTrackingData fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, TransferEventTrackingData.class); + } + + /** + * Convert an instance of TransferEventTrackingData to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } } diff --git a/src/main/java/com/adyen/model/transfers/TransferInfo.java b/src/main/java/com/adyen/model/transfers/TransferInfo.java index 02fa2e884..fbe0e636d 100644 --- a/src/main/java/com/adyen/model/transfers/TransferInfo.java +++ b/src/main/java/com/adyen/model/transfers/TransferInfo.java @@ -2,38 +2,28 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.Amount; -import com.adyen.model.transfers.CounterpartyInfoV3; -import com.adyen.model.transfers.ExecutionDate; -import com.adyen.model.transfers.TransferRequestReview; -import com.adyen.model.transfers.UltimatePartyIdentification; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * TransferInfo - */ +/** TransferInfo */ @JsonPropertyOrder({ TransferInfo.JSON_PROPERTY_AMOUNT, TransferInfo.JSON_PROPERTY_BALANCE_ACCOUNT_ID, @@ -50,7 +40,6 @@ TransferInfo.JSON_PROPERTY_TYPE, TransferInfo.JSON_PROPERTY_ULTIMATE_PARTY }) - public class TransferInfo { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -59,10 +48,16 @@ public class TransferInfo { private String balanceAccountId; /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a + * transfer between [balance + * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - + * **platformPayment**: funds movements related to payments that are acquired for your users. - + * **topUp**: an incoming transfer initiated by your user to top up their balance account. */ public enum CategoryEnum { - BANK(String.valueOf("bank")), CARD(String.valueOf("card")), @@ -80,7 +75,7 @@ public enum CategoryEnum { private String value; CategoryEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -101,7 +96,11 @@ public static CategoryEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("CategoryEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CategoryEnum.values())); + LOG.warning( + "CategoryEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(CategoryEnum.values())); return null; } } @@ -121,11 +120,8 @@ public static CategoryEnum fromValue(String value) { public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT_ID = "paymentInstrumentId"; private String paymentInstrumentId; - /** - * Gets or Sets priorities - */ + /** Gets or Sets priorities */ public enum PrioritiesEnum { - CROSSBORDER(String.valueOf("crossBorder")), FAST(String.valueOf("fast")), @@ -143,7 +139,7 @@ public enum PrioritiesEnum { private String value; PrioritiesEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -164,7 +160,11 @@ public static PrioritiesEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PrioritiesEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PrioritiesEnum.values())); + LOG.warning( + "PrioritiesEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PrioritiesEnum.values())); return null; } } @@ -173,10 +173,19 @@ public static PrioritiesEnum fromValue(String value) { private List priorities; /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the + * fees that you have to pay. Required for transfers with `category` **bank**. Possible + * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer + * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * + * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). */ public enum PriorityEnum { - CROSSBORDER(String.valueOf("crossBorder")), FAST(String.valueOf("fast")), @@ -194,7 +203,7 @@ public enum PriorityEnum { private String value; PriorityEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -215,7 +224,11 @@ public static PriorityEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PriorityEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PriorityEnum.values())); + LOG.warning( + "PriorityEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PriorityEnum.values())); return null; } } @@ -233,10 +246,13 @@ public static PriorityEnum fromValue(String value) { private TransferRequestReview review; /** - * The type of transfer. Possible values: - **bankTransfer**: for push transfers to a transfer instrument or a bank account. The `category` must be **bank**. - **internalTransfer**: for push transfers between balance accounts. The `category` must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between balance accounts. The `category` must be **internal**. + * The type of transfer. Possible values: - **bankTransfer**: for push transfers to a transfer + * instrument or a bank account. The `category` must be **bank**. - + * **internalTransfer**: for push transfers between balance accounts. The `category` + * must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between + * balance accounts. The `category` must be **internal**. */ public enum TypeEnum { - BANKTRANSFER(String.valueOf("bankTransfer")), INTERNALTRANSFER(String.valueOf("internalTransfer")), @@ -248,7 +264,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -269,7 +285,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -280,13 +300,12 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_ULTIMATE_PARTY = "ultimateParty"; private UltimatePartyIdentification ultimateParty; - public TransferInfo() { - } + public TransferInfo() {} /** * amount * - * @param amount + * @param amount * @return the current {@code TransferInfo} instance, allowing for method chaining */ public TransferInfo amount(Amount amount) { @@ -296,7 +315,8 @@ public TransferInfo amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -307,7 +327,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -316,9 +336,22 @@ public void setAmount(Amount amount) { } /** - * The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). If you want to make a transfer using a **virtual** **bankAccount** assigned to the balance account, you must specify the [payment instrument ID](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id) of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account. + * The unique identifier of the source [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * If you want to make a transfer using a **virtual** **bankAccount** assigned to the balance + * account, you must specify the [payment instrument + * ID](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id) + * of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the + * default **physical** **bankAccount** payment instrument assigned to the balance account. * - * @param balanceAccountId The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). If you want to make a transfer using a **virtual** **bankAccount** assigned to the balance account, you must specify the [payment instrument ID](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id) of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account. + * @param balanceAccountId The unique identifier of the source [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * If you want to make a transfer using a **virtual** **bankAccount** assigned to the balance + * account, you must specify the [payment instrument + * ID](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id) + * of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses + * the default **physical** **bankAccount** payment instrument assigned to the balance + * account. * @return the current {@code TransferInfo} instance, allowing for method chaining */ public TransferInfo balanceAccountId(String balanceAccountId) { @@ -327,8 +360,22 @@ public TransferInfo balanceAccountId(String balanceAccountId) { } /** - * The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). If you want to make a transfer using a **virtual** **bankAccount** assigned to the balance account, you must specify the [payment instrument ID](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id) of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account. - * @return balanceAccountId The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). If you want to make a transfer using a **virtual** **bankAccount** assigned to the balance account, you must specify the [payment instrument ID](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id) of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account. + * The unique identifier of the source [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * If you want to make a transfer using a **virtual** **bankAccount** assigned to the balance + * account, you must specify the [payment instrument + * ID](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id) + * of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the + * default **physical** **bankAccount** payment instrument assigned to the balance account. + * + * @return balanceAccountId The unique identifier of the source [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * If you want to make a transfer using a **virtual** **bankAccount** assigned to the balance + * account, you must specify the [payment instrument + * ID](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id) + * of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses + * the default **physical** **bankAccount** payment instrument assigned to the balance + * account. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -337,9 +384,22 @@ public String getBalanceAccountId() { } /** - * The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). If you want to make a transfer using a **virtual** **bankAccount** assigned to the balance account, you must specify the [payment instrument ID](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id) of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account. + * The unique identifier of the source [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * If you want to make a transfer using a **virtual** **bankAccount** assigned to the balance + * account, you must specify the [payment instrument + * ID](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id) + * of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the + * default **physical** **bankAccount** payment instrument assigned to the balance account. * - * @param balanceAccountId The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). If you want to make a transfer using a **virtual** **bankAccount** assigned to the balance account, you must specify the [payment instrument ID](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id) of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account. + * @param balanceAccountId The unique identifier of the source [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * If you want to make a transfer using a **virtual** **bankAccount** assigned to the balance + * account, you must specify the [payment instrument + * ID](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id) + * of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses + * the default **physical** **bankAccount** payment instrument assigned to the balance + * account. */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -348,9 +408,24 @@ public void setBalanceAccountId(String balanceAccountId) { } /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a + * transfer between [balance + * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - + * **platformPayment**: funds movements related to payments that are acquired for your users. - + * **topUp**: an incoming transfer initiated by your user to top up their balance account. * - * @param category The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * @param category The category of the transfer. Possible values: - **bank**: a transfer involving + * a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a + * transfer between [balance + * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - + * **platformPayment**: funds movements related to payments that are acquired for your users. + * - **topUp**: an incoming transfer initiated by your user to top up their balance account. * @return the current {@code TransferInfo} instance, allowing for method chaining */ public TransferInfo category(CategoryEnum category) { @@ -359,8 +434,24 @@ public TransferInfo category(CategoryEnum category) { } /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. - * @return category The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a + * transfer between [balance + * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - + * **platformPayment**: funds movements related to payments that are acquired for your users. - + * **topUp**: an incoming transfer initiated by your user to top up their balance account. + * + * @return category The category of the transfer. Possible values: - **bank**: a transfer + * involving a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a + * transfer between [balance + * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - + * **platformPayment**: funds movements related to payments that are acquired for your users. + * - **topUp**: an incoming transfer initiated by your user to top up their balance account. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -369,9 +460,24 @@ public CategoryEnum getCategory() { } /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a + * transfer between [balance + * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - + * **platformPayment**: funds movements related to payments that are acquired for your users. - + * **topUp**: an incoming transfer initiated by your user to top up their balance account. * - * @param category The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * @param category The category of the transfer. Possible values: - **bank**: a transfer involving + * a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a + * transfer between [balance + * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - + * **platformPayment**: funds movements related to payments that are acquired for your users. + * - **topUp**: an incoming transfer initiated by your user to top up their balance account. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -382,7 +488,7 @@ public void setCategory(CategoryEnum category) { /** * counterparty * - * @param counterparty + * @param counterparty * @return the current {@code TransferInfo} instance, allowing for method chaining */ public TransferInfo counterparty(CounterpartyInfoV3 counterparty) { @@ -392,7 +498,8 @@ public TransferInfo counterparty(CounterpartyInfoV3 counterparty) { /** * Get counterparty - * @return counterparty + * + * @return counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -403,7 +510,7 @@ public CounterpartyInfoV3 getCounterparty() { /** * counterparty * - * @param counterparty + * @param counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -412,9 +519,17 @@ public void setCounterparty(CounterpartyInfoV3 counterparty) { } /** - * Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * Your description for the transfer. It is used by most banks as the transfer description. We + * recommend sending a maximum of 140 characters, otherwise the description may be truncated. + * Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported + * characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] + * & $ % # @** **~ = + - _ ' \" ! ?** * - * @param description Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * @param description Your description for the transfer. It is used by most banks as the transfer + * description. We recommend sending a maximum of 140 characters, otherwise the description + * may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + + * Space** Supported characters for **regular** and **fast** transfers to a US counterparty: + * **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** * @return the current {@code TransferInfo} instance, allowing for method chaining */ public TransferInfo description(String description) { @@ -423,8 +538,17 @@ public TransferInfo description(String description) { } /** - * Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** - * @return description Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * Your description for the transfer. It is used by most banks as the transfer description. We + * recommend sending a maximum of 140 characters, otherwise the description may be truncated. + * Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported + * characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] + * & $ % # @** **~ = + - _ ' \" ! ?** + * + * @return description Your description for the transfer. It is used by most banks as the transfer + * description. We recommend sending a maximum of 140 characters, otherwise the description + * may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + + * Space** Supported characters for **regular** and **fast** transfers to a US counterparty: + * **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -433,9 +557,17 @@ public String getDescription() { } /** - * Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * Your description for the transfer. It is used by most banks as the transfer description. We + * recommend sending a maximum of 140 characters, otherwise the description may be truncated. + * Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported + * characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] + * & $ % # @** **~ = + - _ ' \" ! ?** * - * @param description Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * @param description Your description for the transfer. It is used by most banks as the transfer + * description. We recommend sending a maximum of 140 characters, otherwise the description + * may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + + * Space** Supported characters for **regular** and **fast** transfers to a US counterparty: + * **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -446,7 +578,7 @@ public void setDescription(String description) { /** * executionDate * - * @param executionDate + * @param executionDate * @return the current {@code TransferInfo} instance, allowing for method chaining */ public TransferInfo executionDate(ExecutionDate executionDate) { @@ -456,7 +588,8 @@ public TransferInfo executionDate(ExecutionDate executionDate) { /** * Get executionDate - * @return executionDate + * + * @return executionDate */ @JsonProperty(JSON_PROPERTY_EXECUTION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -467,7 +600,7 @@ public ExecutionDate getExecutionDate() { /** * executionDate * - * @param executionDate + * @param executionDate */ @JsonProperty(JSON_PROPERTY_EXECUTION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -476,9 +609,19 @@ public void setExecutionDate(ExecutionDate executionDate) { } /** - * The unique identifier of the source [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id). If you want to make a transfer using a **virtual** **bankAccount**, you must specify the payment instrument ID of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account. + * The unique identifier of the source [payment + * instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id). + * If you want to make a transfer using a **virtual** **bankAccount**, you must specify the + * payment instrument ID of the **virtual** **bankAccount**. If you only specify a balance account + * ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the + * balance account. * - * @param paymentInstrumentId The unique identifier of the source [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id). If you want to make a transfer using a **virtual** **bankAccount**, you must specify the payment instrument ID of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account. + * @param paymentInstrumentId The unique identifier of the source [payment + * instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id). + * If you want to make a transfer using a **virtual** **bankAccount**, you must specify the + * payment instrument ID of the **virtual** **bankAccount**. If you only specify a balance + * account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned + * to the balance account. * @return the current {@code TransferInfo} instance, allowing for method chaining */ public TransferInfo paymentInstrumentId(String paymentInstrumentId) { @@ -487,8 +630,19 @@ public TransferInfo paymentInstrumentId(String paymentInstrumentId) { } /** - * The unique identifier of the source [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id). If you want to make a transfer using a **virtual** **bankAccount**, you must specify the payment instrument ID of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account. - * @return paymentInstrumentId The unique identifier of the source [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id). If you want to make a transfer using a **virtual** **bankAccount**, you must specify the payment instrument ID of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account. + * The unique identifier of the source [payment + * instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id). + * If you want to make a transfer using a **virtual** **bankAccount**, you must specify the + * payment instrument ID of the **virtual** **bankAccount**. If you only specify a balance account + * ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the + * balance account. + * + * @return paymentInstrumentId The unique identifier of the source [payment + * instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id). + * If you want to make a transfer using a **virtual** **bankAccount**, you must specify the + * payment instrument ID of the **virtual** **bankAccount**. If you only specify a balance + * account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned + * to the balance account. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -497,9 +651,19 @@ public String getPaymentInstrumentId() { } /** - * The unique identifier of the source [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id). If you want to make a transfer using a **virtual** **bankAccount**, you must specify the payment instrument ID of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account. + * The unique identifier of the source [payment + * instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id). + * If you want to make a transfer using a **virtual** **bankAccount**, you must specify the + * payment instrument ID of the **virtual** **bankAccount**. If you only specify a balance account + * ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the + * balance account. * - * @param paymentInstrumentId The unique identifier of the source [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id). If you want to make a transfer using a **virtual** **bankAccount**, you must specify the payment instrument ID of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account. + * @param paymentInstrumentId The unique identifier of the source [payment + * instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id). + * If you want to make a transfer using a **virtual** **bankAccount**, you must specify the + * payment instrument ID of the **virtual** **bankAccount**. If you only specify a balance + * account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned + * to the balance account. */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -508,9 +672,36 @@ public void setPaymentInstrumentId(String paymentInstrumentId) { } /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Required for transfers with `category` **bank**. For more details, see [fallback priorities](https://docs.adyen.com/payouts/payout-service/payout-to-users/#fallback-priorities). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent + * and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay + * out using the priority you list first. If that's not possible, it moves on to the next + * option in the order of your provided priorities. Possible values: * **regular**: for normal, + * low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. + * Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer + * funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * + * **instant**: for instant funds transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). Required for transfers with `category` **bank**. For more details, see + * [fallback + * priorities](https://docs.adyen.com/payouts/payout-service/payout-to-users/#fallback-priorities). * - * @param priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Required for transfers with `category` **bank**. For more details, see [fallback priorities](https://docs.adyen.com/payouts/payout-service/payout-to-users/#fallback-priorities). + * @param priorities The list of priorities for the bank transfer. This sets the speed at which + * the transfer is sent and the fees that you have to pay. You can provide multiple + * priorities. Adyen will try to pay out using the priority you list first. If that's not + * possible, it moves on to the next option in the order of your provided priorities. Possible + * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to + * transfer funds, but the fees are higher. Recommended for high-priority, low-value + * transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. + * Recommended for high-priority, high-value transactions. * **instant**: for instant funds + * transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). Required for transfers with `category` **bank**. For more details, + * see [fallback + * priorities](https://docs.adyen.com/payouts/payout-service/payout-to-users/#fallback-priorities). * @return the current {@code TransferInfo} instance, allowing for method chaining */ public TransferInfo priorities(List priorities) { @@ -527,8 +718,36 @@ public TransferInfo addPrioritiesItem(PrioritiesEnum prioritiesItem) { } /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Required for transfers with `category` **bank**. For more details, see [fallback priorities](https://docs.adyen.com/payouts/payout-service/payout-to-users/#fallback-priorities). - * @return priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Required for transfers with `category` **bank**. For more details, see [fallback priorities](https://docs.adyen.com/payouts/payout-service/payout-to-users/#fallback-priorities). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent + * and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay + * out using the priority you list first. If that's not possible, it moves on to the next + * option in the order of your provided priorities. Possible values: * **regular**: for normal, + * low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. + * Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer + * funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * + * **instant**: for instant funds transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). Required for transfers with `category` **bank**. For more details, see + * [fallback + * priorities](https://docs.adyen.com/payouts/payout-service/payout-to-users/#fallback-priorities). + * + * @return priorities The list of priorities for the bank transfer. This sets the speed at which + * the transfer is sent and the fees that you have to pay. You can provide multiple + * priorities. Adyen will try to pay out using the priority you list first. If that's not + * possible, it moves on to the next option in the order of your provided priorities. Possible + * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to + * transfer funds, but the fees are higher. Recommended for high-priority, low-value + * transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. + * Recommended for high-priority, high-value transactions. * **instant**: for instant funds + * transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). Required for transfers with `category` **bank**. For more details, + * see [fallback + * priorities](https://docs.adyen.com/payouts/payout-service/payout-to-users/#fallback-priorities). */ @JsonProperty(JSON_PROPERTY_PRIORITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -537,9 +756,36 @@ public List getPriorities() { } /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Required for transfers with `category` **bank**. For more details, see [fallback priorities](https://docs.adyen.com/payouts/payout-service/payout-to-users/#fallback-priorities). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent + * and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay + * out using the priority you list first. If that's not possible, it moves on to the next + * option in the order of your provided priorities. Possible values: * **regular**: for normal, + * low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. + * Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer + * funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * + * **instant**: for instant funds transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). Required for transfers with `category` **bank**. For more details, see + * [fallback + * priorities](https://docs.adyen.com/payouts/payout-service/payout-to-users/#fallback-priorities). * - * @param priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Required for transfers with `category` **bank**. For more details, see [fallback priorities](https://docs.adyen.com/payouts/payout-service/payout-to-users/#fallback-priorities). + * @param priorities The list of priorities for the bank transfer. This sets the speed at which + * the transfer is sent and the fees that you have to pay. You can provide multiple + * priorities. Adyen will try to pay out using the priority you list first. If that's not + * possible, it moves on to the next option in the order of your provided priorities. Possible + * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to + * transfer funds, but the fees are higher. Recommended for high-priority, low-value + * transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. + * Recommended for high-priority, high-value transactions. * **instant**: for instant funds + * transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). Required for transfers with `category` **bank**. For more details, + * see [fallback + * priorities](https://docs.adyen.com/payouts/payout-service/payout-to-users/#fallback-priorities). */ @JsonProperty(JSON_PROPERTY_PRIORITIES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -548,9 +794,29 @@ public void setPriorities(List priorities) { } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the + * fees that you have to pay. Required for transfers with `category` **bank**. Possible + * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer + * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * + * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). * - * @param priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * @param priority The priority for the bank transfer. This sets the speed at which the transfer + * is sent and the fees that you have to pay. Required for transfers with `category` + * **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a + * faster way to transfer funds, but the fees are higher. Recommended for high-priority, + * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the + * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for + * instant funds transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). * @return the current {@code TransferInfo} instance, allowing for method chaining */ public TransferInfo priority(PriorityEnum priority) { @@ -559,8 +825,29 @@ public TransferInfo priority(PriorityEnum priority) { } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). - * @return priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the + * fees that you have to pay. Required for transfers with `category` **bank**. Possible + * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer + * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * + * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). + * + * @return priority The priority for the bank transfer. This sets the speed at which the transfer + * is sent and the fees that you have to pay. Required for transfers with `category` + * **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a + * faster way to transfer funds, but the fees are higher. Recommended for high-priority, + * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the + * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for + * instant funds transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). */ @JsonProperty(JSON_PROPERTY_PRIORITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -569,9 +856,29 @@ public PriorityEnum getPriority() { } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the + * fees that you have to pay. Required for transfers with `category` **bank**. Possible + * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer + * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * + * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). * - * @param priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * @param priority The priority for the bank transfer. This sets the speed at which the transfer + * is sent and the fees that you have to pay. Required for transfers with `category` + * **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a + * faster way to transfer funds, but the fees are higher. Recommended for high-priority, + * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the + * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for + * instant funds transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). */ @JsonProperty(JSON_PROPERTY_PRIORITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -580,9 +887,11 @@ public void setPriority(PriorityEnum priority) { } /** - * Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. + * Your reference for the transfer, used internally within your platform. If you don't provide + * this in the request, Adyen generates a unique reference. * - * @param reference Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. + * @param reference Your reference for the transfer, used internally within your platform. If you + * don't provide this in the request, Adyen generates a unique reference. * @return the current {@code TransferInfo} instance, allowing for method chaining */ public TransferInfo reference(String reference) { @@ -591,8 +900,11 @@ public TransferInfo reference(String reference) { } /** - * Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. - * @return reference Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. + * Your reference for the transfer, used internally within your platform. If you don't provide + * this in the request, Adyen generates a unique reference. + * + * @return reference Your reference for the transfer, used internally within your platform. If you + * don't provide this in the request, Adyen generates a unique reference. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -601,9 +913,11 @@ public String getReference() { } /** - * Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. + * Your reference for the transfer, used internally within your platform. If you don't provide + * this in the request, Adyen generates a unique reference. * - * @param reference Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. + * @param reference Your reference for the transfer, used internally within your platform. If you + * don't provide this in the request, Adyen generates a unique reference. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -612,9 +926,18 @@ public void setReference(String reference) { } /** - * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both parties involved in the funds movement. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * A reference that is sent to the recipient. This reference is also sent in all webhooks related + * to the transfer, so you can use it to track statuses for both parties involved in the funds + * movement. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the + * `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring + * to an IBAN, 15 characters for others. * - * @param referenceForBeneficiary A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both parties involved in the funds movement. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * @param referenceForBeneficiary A reference that is sent to the recipient. This reference is + * also sent in all webhooks related to the transfer, so you can use it to track statuses for + * both parties involved in the funds movement. Supported characters: **a-z**, **A-Z**, + * **0-9**. The maximum length depends on the `category`. - **internal**: 80 + * characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for + * others. * @return the current {@code TransferInfo} instance, allowing for method chaining */ public TransferInfo referenceForBeneficiary(String referenceForBeneficiary) { @@ -623,8 +946,18 @@ public TransferInfo referenceForBeneficiary(String referenceForBeneficiary) { } /** - * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both parties involved in the funds movement. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. - * @return referenceForBeneficiary A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both parties involved in the funds movement. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * A reference that is sent to the recipient. This reference is also sent in all webhooks related + * to the transfer, so you can use it to track statuses for both parties involved in the funds + * movement. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the + * `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring + * to an IBAN, 15 characters for others. + * + * @return referenceForBeneficiary A reference that is sent to the recipient. This reference is + * also sent in all webhooks related to the transfer, so you can use it to track statuses for + * both parties involved in the funds movement. Supported characters: **a-z**, **A-Z**, + * **0-9**. The maximum length depends on the `category`. - **internal**: 80 + * characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for + * others. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -633,9 +966,18 @@ public String getReferenceForBeneficiary() { } /** - * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both parties involved in the funds movement. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * A reference that is sent to the recipient. This reference is also sent in all webhooks related + * to the transfer, so you can use it to track statuses for both parties involved in the funds + * movement. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the + * `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring + * to an IBAN, 15 characters for others. * - * @param referenceForBeneficiary A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both parties involved in the funds movement. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * @param referenceForBeneficiary A reference that is sent to the recipient. This reference is + * also sent in all webhooks related to the transfer, so you can use it to track statuses for + * both parties involved in the funds movement. Supported characters: **a-z**, **A-Z**, + * **0-9**. The maximum length depends on the `category`. - **internal**: 80 + * characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for + * others. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -646,7 +988,7 @@ public void setReferenceForBeneficiary(String referenceForBeneficiary) { /** * review * - * @param review + * @param review * @return the current {@code TransferInfo} instance, allowing for method chaining */ public TransferInfo review(TransferRequestReview review) { @@ -656,7 +998,8 @@ public TransferInfo review(TransferRequestReview review) { /** * Get review - * @return review + * + * @return review */ @JsonProperty(JSON_PROPERTY_REVIEW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -667,7 +1010,7 @@ public TransferRequestReview getReview() { /** * review * - * @param review + * @param review */ @JsonProperty(JSON_PROPERTY_REVIEW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -676,9 +1019,17 @@ public void setReview(TransferRequestReview review) { } /** - * The type of transfer. Possible values: - **bankTransfer**: for push transfers to a transfer instrument or a bank account. The `category` must be **bank**. - **internalTransfer**: for push transfers between balance accounts. The `category` must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between balance accounts. The `category` must be **internal**. + * The type of transfer. Possible values: - **bankTransfer**: for push transfers to a transfer + * instrument or a bank account. The `category` must be **bank**. - + * **internalTransfer**: for push transfers between balance accounts. The `category` + * must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between + * balance accounts. The `category` must be **internal**. * - * @param type The type of transfer. Possible values: - **bankTransfer**: for push transfers to a transfer instrument or a bank account. The `category` must be **bank**. - **internalTransfer**: for push transfers between balance accounts. The `category` must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between balance accounts. The `category` must be **internal**. + * @param type The type of transfer. Possible values: - **bankTransfer**: for push transfers to a + * transfer instrument or a bank account. The `category` must be **bank**. - + * **internalTransfer**: for push transfers between balance accounts. The `category` + * must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between + * balance accounts. The `category` must be **internal**. * @return the current {@code TransferInfo} instance, allowing for method chaining */ public TransferInfo type(TypeEnum type) { @@ -687,8 +1038,17 @@ public TransferInfo type(TypeEnum type) { } /** - * The type of transfer. Possible values: - **bankTransfer**: for push transfers to a transfer instrument or a bank account. The `category` must be **bank**. - **internalTransfer**: for push transfers between balance accounts. The `category` must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between balance accounts. The `category` must be **internal**. - * @return type The type of transfer. Possible values: - **bankTransfer**: for push transfers to a transfer instrument or a bank account. The `category` must be **bank**. - **internalTransfer**: for push transfers between balance accounts. The `category` must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between balance accounts. The `category` must be **internal**. + * The type of transfer. Possible values: - **bankTransfer**: for push transfers to a transfer + * instrument or a bank account. The `category` must be **bank**. - + * **internalTransfer**: for push transfers between balance accounts. The `category` + * must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between + * balance accounts. The `category` must be **internal**. + * + * @return type The type of transfer. Possible values: - **bankTransfer**: for push transfers to a + * transfer instrument or a bank account. The `category` must be **bank**. - + * **internalTransfer**: for push transfers between balance accounts. The `category` + * must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between + * balance accounts. The `category` must be **internal**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -697,9 +1057,17 @@ public TypeEnum getType() { } /** - * The type of transfer. Possible values: - **bankTransfer**: for push transfers to a transfer instrument or a bank account. The `category` must be **bank**. - **internalTransfer**: for push transfers between balance accounts. The `category` must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between balance accounts. The `category` must be **internal**. + * The type of transfer. Possible values: - **bankTransfer**: for push transfers to a transfer + * instrument or a bank account. The `category` must be **bank**. - + * **internalTransfer**: for push transfers between balance accounts. The `category` + * must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between + * balance accounts. The `category` must be **internal**. * - * @param type The type of transfer. Possible values: - **bankTransfer**: for push transfers to a transfer instrument or a bank account. The `category` must be **bank**. - **internalTransfer**: for push transfers between balance accounts. The `category` must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between balance accounts. The `category` must be **internal**. + * @param type The type of transfer. Possible values: - **bankTransfer**: for push transfers to a + * transfer instrument or a bank account. The `category` must be **bank**. - + * **internalTransfer**: for push transfers between balance accounts. The `category` + * must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between + * balance accounts. The `category` must be **internal**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -710,7 +1078,7 @@ public void setType(TypeEnum type) { /** * ultimateParty * - * @param ultimateParty + * @param ultimateParty * @return the current {@code TransferInfo} instance, allowing for method chaining */ public TransferInfo ultimateParty(UltimatePartyIdentification ultimateParty) { @@ -720,7 +1088,8 @@ public TransferInfo ultimateParty(UltimatePartyIdentification ultimateParty) { /** * Get ultimateParty - * @return ultimateParty + * + * @return ultimateParty */ @JsonProperty(JSON_PROPERTY_ULTIMATE_PARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -731,7 +1100,7 @@ public UltimatePartyIdentification getUltimateParty() { /** * ultimateParty * - * @param ultimateParty + * @param ultimateParty */ @JsonProperty(JSON_PROPERTY_ULTIMATE_PARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -739,9 +1108,7 @@ public void setUltimateParty(UltimatePartyIdentification ultimateParty) { this.ultimateParty = ultimateParty; } - /** - * Return true if this TransferInfo object is equal to o. - */ + /** Return true if this TransferInfo object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -751,25 +1118,39 @@ public boolean equals(Object o) { return false; } TransferInfo transferInfo = (TransferInfo) o; - return Objects.equals(this.amount, transferInfo.amount) && - Objects.equals(this.balanceAccountId, transferInfo.balanceAccountId) && - Objects.equals(this.category, transferInfo.category) && - Objects.equals(this.counterparty, transferInfo.counterparty) && - Objects.equals(this.description, transferInfo.description) && - Objects.equals(this.executionDate, transferInfo.executionDate) && - Objects.equals(this.paymentInstrumentId, transferInfo.paymentInstrumentId) && - Objects.equals(this.priorities, transferInfo.priorities) && - Objects.equals(this.priority, transferInfo.priority) && - Objects.equals(this.reference, transferInfo.reference) && - Objects.equals(this.referenceForBeneficiary, transferInfo.referenceForBeneficiary) && - Objects.equals(this.review, transferInfo.review) && - Objects.equals(this.type, transferInfo.type) && - Objects.equals(this.ultimateParty, transferInfo.ultimateParty); + return Objects.equals(this.amount, transferInfo.amount) + && Objects.equals(this.balanceAccountId, transferInfo.balanceAccountId) + && Objects.equals(this.category, transferInfo.category) + && Objects.equals(this.counterparty, transferInfo.counterparty) + && Objects.equals(this.description, transferInfo.description) + && Objects.equals(this.executionDate, transferInfo.executionDate) + && Objects.equals(this.paymentInstrumentId, transferInfo.paymentInstrumentId) + && Objects.equals(this.priorities, transferInfo.priorities) + && Objects.equals(this.priority, transferInfo.priority) + && Objects.equals(this.reference, transferInfo.reference) + && Objects.equals(this.referenceForBeneficiary, transferInfo.referenceForBeneficiary) + && Objects.equals(this.review, transferInfo.review) + && Objects.equals(this.type, transferInfo.type) + && Objects.equals(this.ultimateParty, transferInfo.ultimateParty); } @Override public int hashCode() { - return Objects.hash(amount, balanceAccountId, category, counterparty, description, executionDate, paymentInstrumentId, priorities, priority, reference, referenceForBeneficiary, review, type, ultimateParty); + return Objects.hash( + amount, + balanceAccountId, + category, + counterparty, + description, + executionDate, + paymentInstrumentId, + priorities, + priority, + reference, + referenceForBeneficiary, + review, + type, + ultimateParty); } @Override @@ -782,11 +1163,15 @@ public String toString() { sb.append(" counterparty: ").append(toIndentedString(counterparty)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" executionDate: ").append(toIndentedString(executionDate)).append("\n"); - sb.append(" paymentInstrumentId: ").append(toIndentedString(paymentInstrumentId)).append("\n"); + sb.append(" paymentInstrumentId: ") + .append(toIndentedString(paymentInstrumentId)) + .append("\n"); sb.append(" priorities: ").append(toIndentedString(priorities)).append("\n"); sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); - sb.append(" referenceForBeneficiary: ").append(toIndentedString(referenceForBeneficiary)).append("\n"); + sb.append(" referenceForBeneficiary: ") + .append(toIndentedString(referenceForBeneficiary)) + .append("\n"); sb.append(" review: ").append(toIndentedString(review)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" ultimateParty: ").append(toIndentedString(ultimateParty)).append("\n"); @@ -795,8 +1180,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -805,7 +1189,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransferInfo given an JSON string * * @param jsonString JSON string @@ -815,11 +1199,12 @@ private String toIndentedString(Object o) { public static TransferInfo fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferInfo.class); } -/** - * Convert an instance of TransferInfo to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransferInfo to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/TransferNotificationCounterParty.java b/src/main/java/com/adyen/model/transfers/TransferNotificationCounterParty.java index 99473e94b..f2baaae5d 100644 --- a/src/main/java/com/adyen/model/transfers/TransferNotificationCounterParty.java +++ b/src/main/java/com/adyen/model/transfers/TransferNotificationCounterParty.java @@ -2,34 +2,22 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.BankAccountV3; -import com.adyen.model.transfers.Card; -import com.adyen.model.transfers.TransferNotificationMerchantData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TransferNotificationCounterParty - */ +/** TransferNotificationCounterParty */ @JsonPropertyOrder({ TransferNotificationCounterParty.JSON_PROPERTY_BALANCE_ACCOUNT_ID, TransferNotificationCounterParty.JSON_PROPERTY_BANK_ACCOUNT, @@ -37,7 +25,6 @@ TransferNotificationCounterParty.JSON_PROPERTY_MERCHANT, TransferNotificationCounterParty.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID }) - public class TransferNotificationCounterParty { public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; @@ -54,14 +41,16 @@ public class TransferNotificationCounterParty { public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_ID = "transferInstrumentId"; private String transferInstrumentId; - public TransferNotificationCounterParty() { - } + public TransferNotificationCounterParty() {} /** - * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * The unique identifier of the counterparty [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). * - * @param balanceAccountId The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). - * @return the current {@code TransferNotificationCounterParty} instance, allowing for method chaining + * @param balanceAccountId The unique identifier of the counterparty [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * @return the current {@code TransferNotificationCounterParty} instance, allowing for method + * chaining */ public TransferNotificationCounterParty balanceAccountId(String balanceAccountId) { this.balanceAccountId = balanceAccountId; @@ -69,8 +58,11 @@ public TransferNotificationCounterParty balanceAccountId(String balanceAccountId } /** - * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). - * @return balanceAccountId The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * The unique identifier of the counterparty [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * + * @return balanceAccountId The unique identifier of the counterparty [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,9 +71,11 @@ public String getBalanceAccountId() { } /** - * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * The unique identifier of the counterparty [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). * - * @param balanceAccountId The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * @param balanceAccountId The unique identifier of the counterparty [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -92,8 +86,9 @@ public void setBalanceAccountId(String balanceAccountId) { /** * bankAccount * - * @param bankAccount - * @return the current {@code TransferNotificationCounterParty} instance, allowing for method chaining + * @param bankAccount + * @return the current {@code TransferNotificationCounterParty} instance, allowing for method + * chaining */ public TransferNotificationCounterParty bankAccount(BankAccountV3 bankAccount) { this.bankAccount = bankAccount; @@ -102,7 +97,8 @@ public TransferNotificationCounterParty bankAccount(BankAccountV3 bankAccount) { /** * Get bankAccount - * @return bankAccount + * + * @return bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,7 +109,7 @@ public BankAccountV3 getBankAccount() { /** * bankAccount * - * @param bankAccount + * @param bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,8 +120,9 @@ public void setBankAccount(BankAccountV3 bankAccount) { /** * card * - * @param card - * @return the current {@code TransferNotificationCounterParty} instance, allowing for method chaining + * @param card + * @return the current {@code TransferNotificationCounterParty} instance, allowing for method + * chaining */ public TransferNotificationCounterParty card(Card card) { this.card = card; @@ -134,7 +131,8 @@ public TransferNotificationCounterParty card(Card card) { /** * Get card - * @return card + * + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,7 +143,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,8 +154,9 @@ public void setCard(Card card) { /** * merchant * - * @param merchant - * @return the current {@code TransferNotificationCounterParty} instance, allowing for method chaining + * @param merchant + * @return the current {@code TransferNotificationCounterParty} instance, allowing for method + * chaining */ public TransferNotificationCounterParty merchant(TransferNotificationMerchantData merchant) { this.merchant = merchant; @@ -166,7 +165,8 @@ public TransferNotificationCounterParty merchant(TransferNotificationMerchantDat /** * Get merchant - * @return merchant + * + * @return merchant */ @JsonProperty(JSON_PROPERTY_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,7 +177,7 @@ public TransferNotificationMerchantData getMerchant() { /** * merchant * - * @param merchant + * @param merchant */ @JsonProperty(JSON_PROPERTY_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,10 +186,13 @@ public void setMerchant(TransferNotificationMerchantData merchant) { } /** - * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * The unique identifier of the counterparty [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). * - * @param transferInstrumentId The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). - * @return the current {@code TransferNotificationCounterParty} instance, allowing for method chaining + * @param transferInstrumentId The unique identifier of the counterparty [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * @return the current {@code TransferNotificationCounterParty} instance, allowing for method + * chaining */ public TransferNotificationCounterParty transferInstrumentId(String transferInstrumentId) { this.transferInstrumentId = transferInstrumentId; @@ -197,8 +200,11 @@ public TransferNotificationCounterParty transferInstrumentId(String transferInst } /** - * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). - * @return transferInstrumentId The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * The unique identifier of the counterparty [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * + * @return transferInstrumentId The unique identifier of the counterparty [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -207,9 +213,11 @@ public String getTransferInstrumentId() { } /** - * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * The unique identifier of the counterparty [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). * - * @param transferInstrumentId The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * @param transferInstrumentId The unique identifier of the counterparty [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -217,9 +225,7 @@ public void setTransferInstrumentId(String transferInstrumentId) { this.transferInstrumentId = transferInstrumentId; } - /** - * Return true if this TransferNotificationCounterParty object is equal to o. - */ + /** Return true if this TransferNotificationCounterParty object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -228,12 +234,14 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TransferNotificationCounterParty transferNotificationCounterParty = (TransferNotificationCounterParty) o; - return Objects.equals(this.balanceAccountId, transferNotificationCounterParty.balanceAccountId) && - Objects.equals(this.bankAccount, transferNotificationCounterParty.bankAccount) && - Objects.equals(this.card, transferNotificationCounterParty.card) && - Objects.equals(this.merchant, transferNotificationCounterParty.merchant) && - Objects.equals(this.transferInstrumentId, transferNotificationCounterParty.transferInstrumentId); + TransferNotificationCounterParty transferNotificationCounterParty = + (TransferNotificationCounterParty) o; + return Objects.equals(this.balanceAccountId, transferNotificationCounterParty.balanceAccountId) + && Objects.equals(this.bankAccount, transferNotificationCounterParty.bankAccount) + && Objects.equals(this.card, transferNotificationCounterParty.card) + && Objects.equals(this.merchant, transferNotificationCounterParty.merchant) + && Objects.equals( + this.transferInstrumentId, transferNotificationCounterParty.transferInstrumentId); } @Override @@ -249,14 +257,15 @@ public String toString() { sb.append(" bankAccount: ").append(toIndentedString(bankAccount)).append("\n"); sb.append(" card: ").append(toIndentedString(card)).append("\n"); sb.append(" merchant: ").append(toIndentedString(merchant)).append("\n"); - sb.append(" transferInstrumentId: ").append(toIndentedString(transferInstrumentId)).append("\n"); + sb.append(" transferInstrumentId: ") + .append(toIndentedString(transferInstrumentId)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -265,21 +274,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransferNotificationCounterParty given an JSON string * * @param jsonString JSON string * @return An instance of TransferNotificationCounterParty - * @throws JsonProcessingException if the JSON string is invalid with respect to TransferNotificationCounterParty + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TransferNotificationCounterParty */ - public static TransferNotificationCounterParty fromJson(String jsonString) throws JsonProcessingException { + public static TransferNotificationCounterParty fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferNotificationCounterParty.class); } -/** - * Convert an instance of TransferNotificationCounterParty to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransferNotificationCounterParty to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/TransferNotificationMerchantData.java b/src/main/java/com/adyen/model/transfers/TransferNotificationMerchantData.java index f5df2027a..e2df93fe4 100644 --- a/src/main/java/com/adyen/model/transfers/TransferNotificationMerchantData.java +++ b/src/main/java/com/adyen/model/transfers/TransferNotificationMerchantData.java @@ -2,31 +2,22 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TransferNotificationMerchantData - */ +/** TransferNotificationMerchantData */ @JsonPropertyOrder({ TransferNotificationMerchantData.JSON_PROPERTY_ACQUIRER_ID, TransferNotificationMerchantData.JSON_PROPERTY_CITY, @@ -36,7 +27,6 @@ TransferNotificationMerchantData.JSON_PROPERTY_NAME, TransferNotificationMerchantData.JSON_PROPERTY_POSTAL_CODE }) - public class TransferNotificationMerchantData { public static final String JSON_PROPERTY_ACQUIRER_ID = "acquirerId"; private String acquirerId; @@ -59,14 +49,14 @@ public class TransferNotificationMerchantData { public static final String JSON_PROPERTY_POSTAL_CODE = "postalCode"; private String postalCode; - public TransferNotificationMerchantData() { - } + public TransferNotificationMerchantData() {} /** * The unique identifier of the merchant's acquirer. * * @param acquirerId The unique identifier of the merchant's acquirer. - * @return the current {@code TransferNotificationMerchantData} instance, allowing for method chaining + * @return the current {@code TransferNotificationMerchantData} instance, allowing for method + * chaining */ public TransferNotificationMerchantData acquirerId(String acquirerId) { this.acquirerId = acquirerId; @@ -75,6 +65,7 @@ public TransferNotificationMerchantData acquirerId(String acquirerId) { /** * The unique identifier of the merchant's acquirer. + * * @return acquirerId The unique identifier of the merchant's acquirer. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_ID) @@ -98,7 +89,8 @@ public void setAcquirerId(String acquirerId) { * The city where the merchant is located. * * @param city The city where the merchant is located. - * @return the current {@code TransferNotificationMerchantData} instance, allowing for method chaining + * @return the current {@code TransferNotificationMerchantData} instance, allowing for method + * chaining */ public TransferNotificationMerchantData city(String city) { this.city = city; @@ -107,6 +99,7 @@ public TransferNotificationMerchantData city(String city) { /** * The city where the merchant is located. + * * @return city The city where the merchant is located. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -130,7 +123,8 @@ public void setCity(String city) { * The country where the merchant is located. * * @param country The country where the merchant is located. - * @return the current {@code TransferNotificationMerchantData} instance, allowing for method chaining + * @return the current {@code TransferNotificationMerchantData} instance, allowing for method + * chaining */ public TransferNotificationMerchantData country(String country) { this.country = country; @@ -139,6 +133,7 @@ public TransferNotificationMerchantData country(String country) { /** * The country where the merchant is located. + * * @return country The country where the merchant is located. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @@ -162,7 +157,8 @@ public void setCountry(String country) { * The merchant category code. * * @param mcc The merchant category code. - * @return the current {@code TransferNotificationMerchantData} instance, allowing for method chaining + * @return the current {@code TransferNotificationMerchantData} instance, allowing for method + * chaining */ public TransferNotificationMerchantData mcc(String mcc) { this.mcc = mcc; @@ -171,6 +167,7 @@ public TransferNotificationMerchantData mcc(String mcc) { /** * The merchant category code. + * * @return mcc The merchant category code. */ @JsonProperty(JSON_PROPERTY_MCC) @@ -194,7 +191,8 @@ public void setMcc(String mcc) { * The unique identifier of the merchant. * * @param merchantId The unique identifier of the merchant. - * @return the current {@code TransferNotificationMerchantData} instance, allowing for method chaining + * @return the current {@code TransferNotificationMerchantData} instance, allowing for method + * chaining */ public TransferNotificationMerchantData merchantId(String merchantId) { this.merchantId = merchantId; @@ -203,6 +201,7 @@ public TransferNotificationMerchantData merchantId(String merchantId) { /** * The unique identifier of the merchant. + * * @return merchantId The unique identifier of the merchant. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @@ -226,7 +225,8 @@ public void setMerchantId(String merchantId) { * The name of the merchant's shop or service. * * @param name The name of the merchant's shop or service. - * @return the current {@code TransferNotificationMerchantData} instance, allowing for method chaining + * @return the current {@code TransferNotificationMerchantData} instance, allowing for method + * chaining */ public TransferNotificationMerchantData name(String name) { this.name = name; @@ -235,6 +235,7 @@ public TransferNotificationMerchantData name(String name) { /** * The name of the merchant's shop or service. + * * @return name The name of the merchant's shop or service. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -258,7 +259,8 @@ public void setName(String name) { * The postal code of the merchant. * * @param postalCode The postal code of the merchant. - * @return the current {@code TransferNotificationMerchantData} instance, allowing for method chaining + * @return the current {@code TransferNotificationMerchantData} instance, allowing for method + * chaining */ public TransferNotificationMerchantData postalCode(String postalCode) { this.postalCode = postalCode; @@ -267,6 +269,7 @@ public TransferNotificationMerchantData postalCode(String postalCode) { /** * The postal code of the merchant. + * * @return postalCode The postal code of the merchant. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @@ -286,9 +289,7 @@ public void setPostalCode(String postalCode) { this.postalCode = postalCode; } - /** - * Return true if this TransferNotificationMerchantData object is equal to o. - */ + /** Return true if this TransferNotificationMerchantData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -297,14 +298,15 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TransferNotificationMerchantData transferNotificationMerchantData = (TransferNotificationMerchantData) o; - return Objects.equals(this.acquirerId, transferNotificationMerchantData.acquirerId) && - Objects.equals(this.city, transferNotificationMerchantData.city) && - Objects.equals(this.country, transferNotificationMerchantData.country) && - Objects.equals(this.mcc, transferNotificationMerchantData.mcc) && - Objects.equals(this.merchantId, transferNotificationMerchantData.merchantId) && - Objects.equals(this.name, transferNotificationMerchantData.name) && - Objects.equals(this.postalCode, transferNotificationMerchantData.postalCode); + TransferNotificationMerchantData transferNotificationMerchantData = + (TransferNotificationMerchantData) o; + return Objects.equals(this.acquirerId, transferNotificationMerchantData.acquirerId) + && Objects.equals(this.city, transferNotificationMerchantData.city) + && Objects.equals(this.country, transferNotificationMerchantData.country) + && Objects.equals(this.mcc, transferNotificationMerchantData.mcc) + && Objects.equals(this.merchantId, transferNotificationMerchantData.merchantId) + && Objects.equals(this.name, transferNotificationMerchantData.name) + && Objects.equals(this.postalCode, transferNotificationMerchantData.postalCode); } @Override @@ -328,8 +330,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -338,21 +339,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransferNotificationMerchantData given an JSON string * * @param jsonString JSON string * @return An instance of TransferNotificationMerchantData - * @throws JsonProcessingException if the JSON string is invalid with respect to TransferNotificationMerchantData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TransferNotificationMerchantData */ - public static TransferNotificationMerchantData fromJson(String jsonString) throws JsonProcessingException { + public static TransferNotificationMerchantData fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferNotificationMerchantData.class); } -/** - * Convert an instance of TransferNotificationMerchantData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransferNotificationMerchantData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/TransferNotificationValidationFact.java b/src/main/java/com/adyen/model/transfers/TransferNotificationValidationFact.java index 39b8915c2..39470d60c 100644 --- a/src/main/java/com/adyen/model/transfers/TransferNotificationValidationFact.java +++ b/src/main/java/com/adyen/model/transfers/TransferNotificationValidationFact.java @@ -2,36 +2,26 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TransferNotificationValidationFact - */ +/** TransferNotificationValidationFact */ @JsonPropertyOrder({ TransferNotificationValidationFact.JSON_PROPERTY_RESULT, TransferNotificationValidationFact.JSON_PROPERTY_TYPE }) - public class TransferNotificationValidationFact { public static final String JSON_PROPERTY_RESULT = "result"; private String result; @@ -39,14 +29,14 @@ public class TransferNotificationValidationFact { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public TransferNotificationValidationFact() { - } + public TransferNotificationValidationFact() {} /** * The evaluation result of the validation fact. * * @param result The evaluation result of the validation fact. - * @return the current {@code TransferNotificationValidationFact} instance, allowing for method chaining + * @return the current {@code TransferNotificationValidationFact} instance, allowing for method + * chaining */ public TransferNotificationValidationFact result(String result) { this.result = result; @@ -55,6 +45,7 @@ public TransferNotificationValidationFact result(String result) { /** * The evaluation result of the validation fact. + * * @return result The evaluation result of the validation fact. */ @JsonProperty(JSON_PROPERTY_RESULT) @@ -78,7 +69,8 @@ public void setResult(String result) { * The type of the validation fact. * * @param type The type of the validation fact. - * @return the current {@code TransferNotificationValidationFact} instance, allowing for method chaining + * @return the current {@code TransferNotificationValidationFact} instance, allowing for method + * chaining */ public TransferNotificationValidationFact type(String type) { this.type = type; @@ -87,6 +79,7 @@ public TransferNotificationValidationFact type(String type) { /** * The type of the validation fact. + * * @return type The type of the validation fact. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -106,9 +99,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this TransferNotificationValidationFact object is equal to o. - */ + /** Return true if this TransferNotificationValidationFact object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -117,9 +108,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TransferNotificationValidationFact transferNotificationValidationFact = (TransferNotificationValidationFact) o; - return Objects.equals(this.result, transferNotificationValidationFact.result) && - Objects.equals(this.type, transferNotificationValidationFact.type); + TransferNotificationValidationFact transferNotificationValidationFact = + (TransferNotificationValidationFact) o; + return Objects.equals(this.result, transferNotificationValidationFact.result) + && Objects.equals(this.type, transferNotificationValidationFact.type); } @Override @@ -138,8 +130,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +139,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransferNotificationValidationFact given an JSON string * * @param jsonString JSON string * @return An instance of TransferNotificationValidationFact - * @throws JsonProcessingException if the JSON string is invalid with respect to TransferNotificationValidationFact + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TransferNotificationValidationFact */ - public static TransferNotificationValidationFact fromJson(String jsonString) throws JsonProcessingException { + public static TransferNotificationValidationFact fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferNotificationValidationFact.class); } -/** - * Convert an instance of TransferNotificationValidationFact to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransferNotificationValidationFact to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/TransferRequestReview.java b/src/main/java/com/adyen/model/transfers/TransferRequestReview.java index 5136c9d2d..dc0e34813 100644 --- a/src/main/java/com/adyen/model/transfers/TransferRequestReview.java +++ b/src/main/java/com/adyen/model/transfers/TransferRequestReview.java @@ -2,50 +2,44 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TransferRequestReview - */ +/** TransferRequestReview */ @JsonPropertyOrder({ TransferRequestReview.JSON_PROPERTY_NUMBER_OF_APPROVALS_REQUIRED, TransferRequestReview.JSON_PROPERTY_SCA_ON_APPROVAL }) - public class TransferRequestReview { - public static final String JSON_PROPERTY_NUMBER_OF_APPROVALS_REQUIRED = "numberOfApprovalsRequired"; + public static final String JSON_PROPERTY_NUMBER_OF_APPROVALS_REQUIRED = + "numberOfApprovalsRequired"; private Integer numberOfApprovalsRequired; public static final String JSON_PROPERTY_SCA_ON_APPROVAL = "scaOnApproval"; private Boolean scaOnApproval; - public TransferRequestReview() { - } + public TransferRequestReview() {} /** - * Specifies the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. + * Specifies the number of + * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) + * required to process the transfer. * - * @param numberOfApprovalsRequired Specifies the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. + * @param numberOfApprovalsRequired Specifies the number of + * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) + * required to process the transfer. * @return the current {@code TransferRequestReview} instance, allowing for method chaining */ public TransferRequestReview numberOfApprovalsRequired(Integer numberOfApprovalsRequired) { @@ -54,8 +48,13 @@ public TransferRequestReview numberOfApprovalsRequired(Integer numberOfApprovals } /** - * Specifies the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. - * @return numberOfApprovalsRequired Specifies the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. + * Specifies the number of + * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) + * required to process the transfer. + * + * @return numberOfApprovalsRequired Specifies the number of + * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) + * required to process the transfer. */ @JsonProperty(JSON_PROPERTY_NUMBER_OF_APPROVALS_REQUIRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +63,13 @@ public Integer getNumberOfApprovalsRequired() { } /** - * Specifies the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. + * Specifies the number of + * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) + * required to process the transfer. * - * @param numberOfApprovalsRequired Specifies the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. + * @param numberOfApprovalsRequired Specifies the number of + * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) + * required to process the transfer. */ @JsonProperty(JSON_PROPERTY_NUMBER_OF_APPROVALS_REQUIRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,9 +78,16 @@ public void setNumberOfApprovalsRequired(Integer numberOfApprovalsRequired) { } /** - * Specifies whether you will initiate Strong Customer Authentication (SCA) in thePOST [/transfers/approve](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) request. Only applies to transfers made with an Adyen [business account](https://docs.adyen.com/platforms/business-accounts). + * Specifies whether you will initiate Strong Customer Authentication (SCA) in thePOST + * [/transfers/approve](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) + * request. Only applies to transfers made with an Adyen [business + * account](https://docs.adyen.com/platforms/business-accounts). * - * @param scaOnApproval Specifies whether you will initiate Strong Customer Authentication (SCA) in thePOST [/transfers/approve](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) request. Only applies to transfers made with an Adyen [business account](https://docs.adyen.com/platforms/business-accounts). + * @param scaOnApproval Specifies whether you will initiate Strong Customer Authentication (SCA) + * in thePOST + * [/transfers/approve](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) + * request. Only applies to transfers made with an Adyen [business + * account](https://docs.adyen.com/platforms/business-accounts). * @return the current {@code TransferRequestReview} instance, allowing for method chaining */ public TransferRequestReview scaOnApproval(Boolean scaOnApproval) { @@ -86,8 +96,16 @@ public TransferRequestReview scaOnApproval(Boolean scaOnApproval) { } /** - * Specifies whether you will initiate Strong Customer Authentication (SCA) in thePOST [/transfers/approve](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) request. Only applies to transfers made with an Adyen [business account](https://docs.adyen.com/platforms/business-accounts). - * @return scaOnApproval Specifies whether you will initiate Strong Customer Authentication (SCA) in thePOST [/transfers/approve](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) request. Only applies to transfers made with an Adyen [business account](https://docs.adyen.com/platforms/business-accounts). + * Specifies whether you will initiate Strong Customer Authentication (SCA) in thePOST + * [/transfers/approve](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) + * request. Only applies to transfers made with an Adyen [business + * account](https://docs.adyen.com/platforms/business-accounts). + * + * @return scaOnApproval Specifies whether you will initiate Strong Customer Authentication (SCA) + * in thePOST + * [/transfers/approve](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) + * request. Only applies to transfers made with an Adyen [business + * account](https://docs.adyen.com/platforms/business-accounts). */ @JsonProperty(JSON_PROPERTY_SCA_ON_APPROVAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +114,16 @@ public Boolean getScaOnApproval() { } /** - * Specifies whether you will initiate Strong Customer Authentication (SCA) in thePOST [/transfers/approve](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) request. Only applies to transfers made with an Adyen [business account](https://docs.adyen.com/platforms/business-accounts). + * Specifies whether you will initiate Strong Customer Authentication (SCA) in thePOST + * [/transfers/approve](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) + * request. Only applies to transfers made with an Adyen [business + * account](https://docs.adyen.com/platforms/business-accounts). * - * @param scaOnApproval Specifies whether you will initiate Strong Customer Authentication (SCA) in thePOST [/transfers/approve](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) request. Only applies to transfers made with an Adyen [business account](https://docs.adyen.com/platforms/business-accounts). + * @param scaOnApproval Specifies whether you will initiate Strong Customer Authentication (SCA) + * in thePOST + * [/transfers/approve](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) + * request. Only applies to transfers made with an Adyen [business + * account](https://docs.adyen.com/platforms/business-accounts). */ @JsonProperty(JSON_PROPERTY_SCA_ON_APPROVAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +131,7 @@ public void setScaOnApproval(Boolean scaOnApproval) { this.scaOnApproval = scaOnApproval; } - /** - * Return true if this TransferRequestReview object is equal to o. - */ + /** Return true if this TransferRequestReview object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +141,9 @@ public boolean equals(Object o) { return false; } TransferRequestReview transferRequestReview = (TransferRequestReview) o; - return Objects.equals(this.numberOfApprovalsRequired, transferRequestReview.numberOfApprovalsRequired) && - Objects.equals(this.scaOnApproval, transferRequestReview.scaOnApproval); + return Objects.equals( + this.numberOfApprovalsRequired, transferRequestReview.numberOfApprovalsRequired) + && Objects.equals(this.scaOnApproval, transferRequestReview.scaOnApproval); } @Override @@ -131,15 +155,16 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TransferRequestReview {\n"); - sb.append(" numberOfApprovalsRequired: ").append(toIndentedString(numberOfApprovalsRequired)).append("\n"); + sb.append(" numberOfApprovalsRequired: ") + .append(toIndentedString(numberOfApprovalsRequired)) + .append("\n"); sb.append(" scaOnApproval: ").append(toIndentedString(scaOnApproval)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +173,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransferRequestReview given an JSON string * * @param jsonString JSON string * @return An instance of TransferRequestReview - * @throws JsonProcessingException if the JSON string is invalid with respect to TransferRequestReview + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TransferRequestReview */ public static TransferRequestReview fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferRequestReview.class); } -/** - * Convert an instance of TransferRequestReview to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransferRequestReview to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/TransferReview.java b/src/main/java/com/adyen/model/transfers/TransferReview.java index 800c20747..686389247 100644 --- a/src/main/java/com/adyen/model/transfers/TransferReview.java +++ b/src/main/java/com/adyen/model/transfers/TransferReview.java @@ -2,45 +2,40 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * TransferReview - */ +/** TransferReview */ @JsonPropertyOrder({ TransferReview.JSON_PROPERTY_NUMBER_OF_APPROVALS_REQUIRED, TransferReview.JSON_PROPERTY_SCA_ON_APPROVAL }) - public class TransferReview { - public static final String JSON_PROPERTY_NUMBER_OF_APPROVALS_REQUIRED = "numberOfApprovalsRequired"; + public static final String JSON_PROPERTY_NUMBER_OF_APPROVALS_REQUIRED = + "numberOfApprovalsRequired"; private Integer numberOfApprovalsRequired; /** - * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **notApplicable**. + * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: + * **required**, **notApplicable**. */ public enum ScaOnApprovalEnum { - COMPLETED(String.valueOf("completed")), NOTAPPLICABLE(String.valueOf("notApplicable")), @@ -52,7 +47,7 @@ public enum ScaOnApprovalEnum { private String value; ScaOnApprovalEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +68,11 @@ public static ScaOnApprovalEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ScaOnApprovalEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ScaOnApprovalEnum.values())); + LOG.warning( + "ScaOnApprovalEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ScaOnApprovalEnum.values())); return null; } } @@ -81,13 +80,16 @@ public static ScaOnApprovalEnum fromValue(String value) { public static final String JSON_PROPERTY_SCA_ON_APPROVAL = "scaOnApproval"; private ScaOnApprovalEnum scaOnApproval; - public TransferReview() { - } + public TransferReview() {} /** - * Shows the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. + * Shows the number of + * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) + * required to process the transfer. * - * @param numberOfApprovalsRequired Shows the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. + * @param numberOfApprovalsRequired Shows the number of + * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) + * required to process the transfer. * @return the current {@code TransferReview} instance, allowing for method chaining */ public TransferReview numberOfApprovalsRequired(Integer numberOfApprovalsRequired) { @@ -96,8 +98,13 @@ public TransferReview numberOfApprovalsRequired(Integer numberOfApprovalsRequire } /** - * Shows the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. - * @return numberOfApprovalsRequired Shows the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. + * Shows the number of + * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) + * required to process the transfer. + * + * @return numberOfApprovalsRequired Shows the number of + * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) + * required to process the transfer. */ @JsonProperty(JSON_PROPERTY_NUMBER_OF_APPROVALS_REQUIRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +113,13 @@ public Integer getNumberOfApprovalsRequired() { } /** - * Shows the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. + * Shows the number of + * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) + * required to process the transfer. * - * @param numberOfApprovalsRequired Shows the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. + * @param numberOfApprovalsRequired Shows the number of + * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) + * required to process the transfer. */ @JsonProperty(JSON_PROPERTY_NUMBER_OF_APPROVALS_REQUIRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,9 +128,11 @@ public void setNumberOfApprovalsRequired(Integer numberOfApprovalsRequired) { } /** - * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **notApplicable**. + * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: + * **required**, **notApplicable**. * - * @param scaOnApproval Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **notApplicable**. + * @param scaOnApproval Shows the status of the Strong Customer Authentication (SCA) process. + * Possible values: **required**, **notApplicable**. * @return the current {@code TransferReview} instance, allowing for method chaining */ public TransferReview scaOnApproval(ScaOnApprovalEnum scaOnApproval) { @@ -128,8 +141,11 @@ public TransferReview scaOnApproval(ScaOnApprovalEnum scaOnApproval) { } /** - * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **notApplicable**. - * @return scaOnApproval Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **notApplicable**. + * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: + * **required**, **notApplicable**. + * + * @return scaOnApproval Shows the status of the Strong Customer Authentication (SCA) process. + * Possible values: **required**, **notApplicable**. */ @JsonProperty(JSON_PROPERTY_SCA_ON_APPROVAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,9 +154,11 @@ public ScaOnApprovalEnum getScaOnApproval() { } /** - * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **notApplicable**. + * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: + * **required**, **notApplicable**. * - * @param scaOnApproval Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **notApplicable**. + * @param scaOnApproval Shows the status of the Strong Customer Authentication (SCA) process. + * Possible values: **required**, **notApplicable**. */ @JsonProperty(JSON_PROPERTY_SCA_ON_APPROVAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,9 +166,7 @@ public void setScaOnApproval(ScaOnApprovalEnum scaOnApproval) { this.scaOnApproval = scaOnApproval; } - /** - * Return true if this TransferReview object is equal to o. - */ + /** Return true if this TransferReview object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -160,8 +176,8 @@ public boolean equals(Object o) { return false; } TransferReview transferReview = (TransferReview) o; - return Objects.equals(this.numberOfApprovalsRequired, transferReview.numberOfApprovalsRequired) && - Objects.equals(this.scaOnApproval, transferReview.scaOnApproval); + return Objects.equals(this.numberOfApprovalsRequired, transferReview.numberOfApprovalsRequired) + && Objects.equals(this.scaOnApproval, transferReview.scaOnApproval); } @Override @@ -173,15 +189,16 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TransferReview {\n"); - sb.append(" numberOfApprovalsRequired: ").append(toIndentedString(numberOfApprovalsRequired)).append("\n"); + sb.append(" numberOfApprovalsRequired: ") + .append(toIndentedString(numberOfApprovalsRequired)) + .append("\n"); sb.append(" scaOnApproval: ").append(toIndentedString(scaOnApproval)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -190,7 +207,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransferReview given an JSON string * * @param jsonString JSON string @@ -200,11 +217,12 @@ private String toIndentedString(Object o) { public static TransferReview fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferReview.class); } -/** - * Convert an instance of TransferReview to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransferReview to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/TransferServiceRestServiceError.java b/src/main/java/com/adyen/model/transfers/TransferServiceRestServiceError.java index c13d087fb..5a9123bab 100644 --- a/src/main/java/com/adyen/model/transfers/TransferServiceRestServiceError.java +++ b/src/main/java/com/adyen/model/transfers/TransferServiceRestServiceError.java @@ -2,35 +2,24 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.InvalidField; -import com.adyen.model.transfers.RoutingDetails; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * TransferServiceRestServiceError - */ +/** TransferServiceRestServiceError */ @JsonPropertyOrder({ TransferServiceRestServiceError.JSON_PROPERTY_DETAIL, TransferServiceRestServiceError.JSON_PROPERTY_ERROR_CODE, @@ -43,7 +32,6 @@ TransferServiceRestServiceError.JSON_PROPERTY_TITLE, TransferServiceRestServiceError.JSON_PROPERTY_TYPE }) - public class TransferServiceRestServiceError { public static final String JSON_PROPERTY_DETAIL = "detail"; private String detail; @@ -75,14 +63,14 @@ public class TransferServiceRestServiceError { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public TransferServiceRestServiceError() { - } + public TransferServiceRestServiceError() {} /** * A human-readable explanation specific to this occurrence of the problem. * * @param detail A human-readable explanation specific to this occurrence of the problem. - * @return the current {@code TransferServiceRestServiceError} instance, allowing for method chaining + * @return the current {@code TransferServiceRestServiceError} instance, allowing for method + * chaining */ public TransferServiceRestServiceError detail(String detail) { this.detail = detail; @@ -91,6 +79,7 @@ public TransferServiceRestServiceError detail(String detail) { /** * A human-readable explanation specific to this occurrence of the problem. + * * @return detail A human-readable explanation specific to this occurrence of the problem. */ @JsonProperty(JSON_PROPERTY_DETAIL) @@ -114,7 +103,8 @@ public void setDetail(String detail) { * A code that identifies the problem type. * * @param errorCode A code that identifies the problem type. - * @return the current {@code TransferServiceRestServiceError} instance, allowing for method chaining + * @return the current {@code TransferServiceRestServiceError} instance, allowing for method + * chaining */ public TransferServiceRestServiceError errorCode(String errorCode) { this.errorCode = errorCode; @@ -123,6 +113,7 @@ public TransferServiceRestServiceError errorCode(String errorCode) { /** * A code that identifies the problem type. + * * @return errorCode A code that identifies the problem type. */ @JsonProperty(JSON_PROPERTY_ERROR_CODE) @@ -146,7 +137,8 @@ public void setErrorCode(String errorCode) { * A unique URI that identifies the specific occurrence of the problem. * * @param instance A unique URI that identifies the specific occurrence of the problem. - * @return the current {@code TransferServiceRestServiceError} instance, allowing for method chaining + * @return the current {@code TransferServiceRestServiceError} instance, allowing for method + * chaining */ public TransferServiceRestServiceError instance(String instance) { this.instance = instance; @@ -155,6 +147,7 @@ public TransferServiceRestServiceError instance(String instance) { /** * A unique URI that identifies the specific occurrence of the problem. + * * @return instance A unique URI that identifies the specific occurrence of the problem. */ @JsonProperty(JSON_PROPERTY_INSTANCE) @@ -178,7 +171,8 @@ public void setInstance(String instance) { * Detailed explanation of each validation error, when applicable. * * @param invalidFields Detailed explanation of each validation error, when applicable. - * @return the current {@code TransferServiceRestServiceError} instance, allowing for method chaining + * @return the current {@code TransferServiceRestServiceError} instance, allowing for method + * chaining */ public TransferServiceRestServiceError invalidFields(List invalidFields) { this.invalidFields = invalidFields; @@ -195,6 +189,7 @@ public TransferServiceRestServiceError addInvalidFieldsItem(InvalidField invalid /** * Detailed explanation of each validation error, when applicable. + * * @return invalidFields Detailed explanation of each validation error, when applicable. */ @JsonProperty(JSON_PROPERTY_INVALID_FIELDS) @@ -217,8 +212,10 @@ public void setInvalidFields(List invalidFields) { /** * A unique reference for the request, essentially the same as `pspReference`. * - * @param requestId A unique reference for the request, essentially the same as `pspReference`. - * @return the current {@code TransferServiceRestServiceError} instance, allowing for method chaining + * @param requestId A unique reference for the request, essentially the same as + * `pspReference`. + * @return the current {@code TransferServiceRestServiceError} instance, allowing for method + * chaining */ public TransferServiceRestServiceError requestId(String requestId) { this.requestId = requestId; @@ -227,7 +224,9 @@ public TransferServiceRestServiceError requestId(String requestId) { /** * A unique reference for the request, essentially the same as `pspReference`. - * @return requestId A unique reference for the request, essentially the same as `pspReference`. + * + * @return requestId A unique reference for the request, essentially the same as + * `pspReference`. */ @JsonProperty(JSON_PROPERTY_REQUEST_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -238,7 +237,8 @@ public String getRequestId() { /** * A unique reference for the request, essentially the same as `pspReference`. * - * @param requestId A unique reference for the request, essentially the same as `pspReference`. + * @param requestId A unique reference for the request, essentially the same as + * `pspReference`. */ @JsonProperty(JSON_PROPERTY_REQUEST_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -249,8 +249,9 @@ public void setRequestId(String requestId) { /** * response * - * @param response - * @return the current {@code TransferServiceRestServiceError} instance, allowing for method chaining + * @param response + * @return the current {@code TransferServiceRestServiceError} instance, allowing for method + * chaining */ public TransferServiceRestServiceError response(Object response) { this.response = response; @@ -259,7 +260,8 @@ public TransferServiceRestServiceError response(Object response) { /** * Get response - * @return response + * + * @return response */ @JsonProperty(JSON_PROPERTY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -270,7 +272,7 @@ public Object getResponse() { /** * response * - * @param response + * @param response */ @JsonProperty(JSON_PROPERTY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -279,10 +281,13 @@ public void setResponse(Object response) { } /** - * Detailed explanation of each attempt to route the transfer with the priorities from the request. + * Detailed explanation of each attempt to route the transfer with the priorities from the + * request. * - * @param routingDetails Detailed explanation of each attempt to route the transfer with the priorities from the request. - * @return the current {@code TransferServiceRestServiceError} instance, allowing for method chaining + * @param routingDetails Detailed explanation of each attempt to route the transfer with the + * priorities from the request. + * @return the current {@code TransferServiceRestServiceError} instance, allowing for method + * chaining */ public TransferServiceRestServiceError routingDetails(List routingDetails) { this.routingDetails = routingDetails; @@ -298,8 +303,11 @@ public TransferServiceRestServiceError addRoutingDetailsItem(RoutingDetails rout } /** - * Detailed explanation of each attempt to route the transfer with the priorities from the request. - * @return routingDetails Detailed explanation of each attempt to route the transfer with the priorities from the request. + * Detailed explanation of each attempt to route the transfer with the priorities from the + * request. + * + * @return routingDetails Detailed explanation of each attempt to route the transfer with the + * priorities from the request. */ @JsonProperty(JSON_PROPERTY_ROUTING_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -308,9 +316,11 @@ public List getRoutingDetails() { } /** - * Detailed explanation of each attempt to route the transfer with the priorities from the request. + * Detailed explanation of each attempt to route the transfer with the priorities from the + * request. * - * @param routingDetails Detailed explanation of each attempt to route the transfer with the priorities from the request. + * @param routingDetails Detailed explanation of each attempt to route the transfer with the + * priorities from the request. */ @JsonProperty(JSON_PROPERTY_ROUTING_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -322,7 +332,8 @@ public void setRoutingDetails(List routingDetails) { * The HTTP status code. * * @param status The HTTP status code. - * @return the current {@code TransferServiceRestServiceError} instance, allowing for method chaining + * @return the current {@code TransferServiceRestServiceError} instance, allowing for method + * chaining */ public TransferServiceRestServiceError status(Integer status) { this.status = status; @@ -331,6 +342,7 @@ public TransferServiceRestServiceError status(Integer status) { /** * The HTTP status code. + * * @return status The HTTP status code. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -354,7 +366,8 @@ public void setStatus(Integer status) { * A short, human-readable summary of the problem type. * * @param title A short, human-readable summary of the problem type. - * @return the current {@code TransferServiceRestServiceError} instance, allowing for method chaining + * @return the current {@code TransferServiceRestServiceError} instance, allowing for method + * chaining */ public TransferServiceRestServiceError title(String title) { this.title = title; @@ -363,6 +376,7 @@ public TransferServiceRestServiceError title(String title) { /** * A short, human-readable summary of the problem type. + * * @return title A short, human-readable summary of the problem type. */ @JsonProperty(JSON_PROPERTY_TITLE) @@ -383,10 +397,13 @@ public void setTitle(String title) { } /** - * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. + * A URI that identifies the problem type, pointing to human-readable documentation on this + * problem type. * - * @param type A URI that identifies the problem type, pointing to human-readable documentation on this problem type. - * @return the current {@code TransferServiceRestServiceError} instance, allowing for method chaining + * @param type A URI that identifies the problem type, pointing to human-readable documentation on + * this problem type. + * @return the current {@code TransferServiceRestServiceError} instance, allowing for method + * chaining */ public TransferServiceRestServiceError type(String type) { this.type = type; @@ -394,8 +411,11 @@ public TransferServiceRestServiceError type(String type) { } /** - * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. - * @return type A URI that identifies the problem type, pointing to human-readable documentation on this problem type. + * A URI that identifies the problem type, pointing to human-readable documentation on this + * problem type. + * + * @return type A URI that identifies the problem type, pointing to human-readable documentation + * on this problem type. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -404,9 +424,11 @@ public String getType() { } /** - * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. + * A URI that identifies the problem type, pointing to human-readable documentation on this + * problem type. * - * @param type A URI that identifies the problem type, pointing to human-readable documentation on this problem type. + * @param type A URI that identifies the problem type, pointing to human-readable documentation on + * this problem type. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -414,9 +436,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this TransferServiceRestServiceError object is equal to o. - */ + /** Return true if this TransferServiceRestServiceError object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -425,22 +445,33 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TransferServiceRestServiceError transferServiceRestServiceError = (TransferServiceRestServiceError) o; - return Objects.equals(this.detail, transferServiceRestServiceError.detail) && - Objects.equals(this.errorCode, transferServiceRestServiceError.errorCode) && - Objects.equals(this.instance, transferServiceRestServiceError.instance) && - Objects.equals(this.invalidFields, transferServiceRestServiceError.invalidFields) && - Objects.equals(this.requestId, transferServiceRestServiceError.requestId) && - Objects.equals(this.response, transferServiceRestServiceError.response) && - Objects.equals(this.routingDetails, transferServiceRestServiceError.routingDetails) && - Objects.equals(this.status, transferServiceRestServiceError.status) && - Objects.equals(this.title, transferServiceRestServiceError.title) && - Objects.equals(this.type, transferServiceRestServiceError.type); + TransferServiceRestServiceError transferServiceRestServiceError = + (TransferServiceRestServiceError) o; + return Objects.equals(this.detail, transferServiceRestServiceError.detail) + && Objects.equals(this.errorCode, transferServiceRestServiceError.errorCode) + && Objects.equals(this.instance, transferServiceRestServiceError.instance) + && Objects.equals(this.invalidFields, transferServiceRestServiceError.invalidFields) + && Objects.equals(this.requestId, transferServiceRestServiceError.requestId) + && Objects.equals(this.response, transferServiceRestServiceError.response) + && Objects.equals(this.routingDetails, transferServiceRestServiceError.routingDetails) + && Objects.equals(this.status, transferServiceRestServiceError.status) + && Objects.equals(this.title, transferServiceRestServiceError.title) + && Objects.equals(this.type, transferServiceRestServiceError.type); } @Override public int hashCode() { - return Objects.hash(detail, errorCode, instance, invalidFields, requestId, response, routingDetails, status, title, type); + return Objects.hash( + detail, + errorCode, + instance, + invalidFields, + requestId, + response, + routingDetails, + status, + title, + type); } @Override @@ -462,8 +493,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -472,21 +502,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransferServiceRestServiceError given an JSON string * * @param jsonString JSON string * @return An instance of TransferServiceRestServiceError - * @throws JsonProcessingException if the JSON string is invalid with respect to TransferServiceRestServiceError + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TransferServiceRestServiceError */ - public static TransferServiceRestServiceError fromJson(String jsonString) throws JsonProcessingException { + public static TransferServiceRestServiceError fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferServiceRestServiceError.class); } -/** - * Convert an instance of TransferServiceRestServiceError to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransferServiceRestServiceError to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/TransferView.java b/src/main/java/com/adyen/model/transfers/TransferView.java index 833ac74b3..14b147cea 100644 --- a/src/main/java/com/adyen/model/transfers/TransferView.java +++ b/src/main/java/com/adyen/model/transfers/TransferView.java @@ -2,38 +2,27 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.TransferCategoryData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TransferView - */ +/** TransferView */ @JsonPropertyOrder({ TransferView.JSON_PROPERTY_CATEGORY_DATA, TransferView.JSON_PROPERTY_ID, TransferView.JSON_PROPERTY_REFERENCE }) - public class TransferView { public static final String JSON_PROPERTY_CATEGORY_DATA = "categoryData"; private TransferCategoryData categoryData; @@ -44,13 +33,12 @@ public class TransferView { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public TransferView() { - } + public TransferView() {} /** * categoryData * - * @param categoryData + * @param categoryData * @return the current {@code TransferView} instance, allowing for method chaining */ public TransferView categoryData(TransferCategoryData categoryData) { @@ -60,7 +48,8 @@ public TransferView categoryData(TransferCategoryData categoryData) { /** * Get categoryData - * @return categoryData + * + * @return categoryData */ @JsonProperty(JSON_PROPERTY_CATEGORY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -71,7 +60,7 @@ public TransferCategoryData getCategoryData() { /** * categoryData * - * @param categoryData + * @param categoryData */ @JsonProperty(JSON_PROPERTY_CATEGORY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -92,6 +81,7 @@ public TransferView id(String id) { /** * The ID of the resource. + * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -112,9 +102,15 @@ public void setId(String id) { } /** - * The [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) from the `/transfers` request. If you haven't provided any, Adyen generates a unique reference. + * The + * [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) + * from the `/transfers` request. If you haven't provided any, Adyen generates a + * unique reference. * - * @param reference The [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) from the `/transfers` request. If you haven't provided any, Adyen generates a unique reference. + * @param reference The + * [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) + * from the `/transfers` request. If you haven't provided any, Adyen generates a + * unique reference. * @return the current {@code TransferView} instance, allowing for method chaining */ public TransferView reference(String reference) { @@ -123,8 +119,15 @@ public TransferView reference(String reference) { } /** - * The [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) from the `/transfers` request. If you haven't provided any, Adyen generates a unique reference. - * @return reference The [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) from the `/transfers` request. If you haven't provided any, Adyen generates a unique reference. + * The + * [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) + * from the `/transfers` request. If you haven't provided any, Adyen generates a + * unique reference. + * + * @return reference The + * [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) + * from the `/transfers` request. If you haven't provided any, Adyen generates a + * unique reference. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -133,9 +136,15 @@ public String getReference() { } /** - * The [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) from the `/transfers` request. If you haven't provided any, Adyen generates a unique reference. + * The + * [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) + * from the `/transfers` request. If you haven't provided any, Adyen generates a + * unique reference. * - * @param reference The [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) from the `/transfers` request. If you haven't provided any, Adyen generates a unique reference. + * @param reference The + * [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) + * from the `/transfers` request. If you haven't provided any, Adyen generates a + * unique reference. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,9 +152,7 @@ public void setReference(String reference) { this.reference = reference; } - /** - * Return true if this TransferView object is equal to o. - */ + /** Return true if this TransferView object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -155,9 +162,9 @@ public boolean equals(Object o) { return false; } TransferView transferView = (TransferView) o; - return Objects.equals(this.categoryData, transferView.categoryData) && - Objects.equals(this.id, transferView.id) && - Objects.equals(this.reference, transferView.reference); + return Objects.equals(this.categoryData, transferView.categoryData) + && Objects.equals(this.id, transferView.id) + && Objects.equals(this.reference, transferView.reference); } @Override @@ -177,8 +184,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -187,7 +193,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransferView given an JSON string * * @param jsonString JSON string @@ -197,11 +203,12 @@ private String toIndentedString(Object o) { public static TransferView fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferView.class); } -/** - * Convert an instance of TransferView to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransferView to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/UKLocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/UKLocalAccountIdentification.java index eb50a89ab..6da2ae26f 100644 --- a/src/main/java/com/adyen/model/transfers/UKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/UKLocalAccountIdentification.java @@ -2,37 +2,31 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * UKLocalAccountIdentification - */ +/** UKLocalAccountIdentification */ @JsonPropertyOrder({ UKLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, UKLocalAccountIdentification.JSON_PROPERTY_SORT_CODE, UKLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class UKLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -40,11 +34,8 @@ public class UKLocalAccountIdentification { public static final String JSON_PROPERTY_SORT_CODE = "sortCode"; private String sortCode; - /** - * **ukLocal** - */ + /** **ukLocal** */ public enum TypeEnum { - UKLOCAL(String.valueOf("ukLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +43,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +64,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,8 +76,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public UKLocalAccountIdentification() { - } + public UKLocalAccountIdentification() {} /** * The 8-digit bank account number, without separators or whitespace. @@ -97,6 +91,7 @@ public UKLocalAccountIdentification accountNumber(String accountNumber) { /** * The 8-digit bank account number, without separators or whitespace. + * * @return accountNumber The 8-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -117,9 +112,11 @@ public void setAccountNumber(String accountNumber) { } /** - * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. + * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or + * whitespace. * - * @param sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. + * @param sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without + * separators or whitespace. * @return the current {@code UKLocalAccountIdentification} instance, allowing for method chaining */ public UKLocalAccountIdentification sortCode(String sortCode) { @@ -128,8 +125,11 @@ public UKLocalAccountIdentification sortCode(String sortCode) { } /** - * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. - * @return sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. + * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or + * whitespace. + * + * @return sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without + * separators or whitespace. */ @JsonProperty(JSON_PROPERTY_SORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,9 +138,11 @@ public String getSortCode() { } /** - * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. + * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or + * whitespace. * - * @param sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. + * @param sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without + * separators or whitespace. */ @JsonProperty(JSON_PROPERTY_SORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,6 +163,7 @@ public UKLocalAccountIdentification type(TypeEnum type) { /** * **ukLocal** + * * @return type **ukLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +183,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this UKLocalAccountIdentification object is equal to o. - */ + /** Return true if this UKLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +193,9 @@ public boolean equals(Object o) { return false; } UKLocalAccountIdentification ukLocalAccountIdentification = (UKLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, ukLocalAccountIdentification.accountNumber) && - Objects.equals(this.sortCode, ukLocalAccountIdentification.sortCode) && - Objects.equals(this.type, ukLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, ukLocalAccountIdentification.accountNumber) + && Objects.equals(this.sortCode, ukLocalAccountIdentification.sortCode) + && Objects.equals(this.type, ukLocalAccountIdentification.type); } @Override @@ -214,8 +215,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +224,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of UKLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of UKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to UKLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * UKLocalAccountIdentification */ - public static UKLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static UKLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UKLocalAccountIdentification.class); } -/** - * Convert an instance of UKLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of UKLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/USLocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/USLocalAccountIdentification.java index 4e5b0060b..0753bffab 100644 --- a/src/main/java/com/adyen/model/transfers/USLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/USLocalAccountIdentification.java @@ -2,47 +2,40 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * USLocalAccountIdentification - */ +/** USLocalAccountIdentification */ @JsonPropertyOrder({ USLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, USLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_TYPE, USLocalAccountIdentification.JSON_PROPERTY_ROUTING_NUMBER, USLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class USLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ public enum AccountTypeEnum { - CHECKING(String.valueOf("checking")), SAVINGS(String.valueOf("savings")); @@ -52,7 +45,7 @@ public enum AccountTypeEnum { private String value; AccountTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +66,11 @@ public static AccountTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AccountTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AccountTypeEnum.values())); + LOG.warning( + "AccountTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AccountTypeEnum.values())); return null; } } @@ -84,11 +81,8 @@ public static AccountTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_ROUTING_NUMBER = "routingNumber"; private String routingNumber; - /** - * **usLocal** - */ + /** **usLocal** */ public enum TypeEnum { - USLOCAL(String.valueOf("usLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -96,7 +90,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -117,7 +111,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -125,8 +123,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public USLocalAccountIdentification() { - } + public USLocalAccountIdentification() {} /** * The bank account number, without separators or whitespace. @@ -141,6 +138,7 @@ public USLocalAccountIdentification accountNumber(String accountNumber) { /** * The bank account number, without separators or whitespace. + * * @return accountNumber The bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -161,9 +159,10 @@ public void setAccountNumber(String accountNumber) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. + * Defaults to **checking**. * @return the current {@code USLocalAccountIdentification} instance, allowing for method chaining */ public USLocalAccountIdentification accountType(AccountTypeEnum accountType) { @@ -172,8 +171,10 @@ public USLocalAccountIdentification accountType(AccountTypeEnum accountType) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. - * @return accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * + * @return accountType The bank account type. Possible values: **checking** or **savings**. + * Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,9 +183,10 @@ public AccountTypeEnum getAccountType() { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. + * Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,9 +195,12 @@ public void setAccountType(AccountTypeEnum accountType) { } /** - * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without + * separators or whitespace. * - * @param routingNumber The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * @param routingNumber The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * whitespace. * @return the current {@code USLocalAccountIdentification} instance, allowing for method chaining */ public USLocalAccountIdentification routingNumber(String routingNumber) { @@ -204,8 +209,12 @@ public USLocalAccountIdentification routingNumber(String routingNumber) { } /** - * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. - * @return routingNumber The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without + * separators or whitespace. + * + * @return routingNumber The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * whitespace. */ @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,9 +223,12 @@ public String getRoutingNumber() { } /** - * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without + * separators or whitespace. * - * @param routingNumber The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * @param routingNumber The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * whitespace. */ @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,6 +249,7 @@ public USLocalAccountIdentification type(TypeEnum type) { /** * **usLocal** + * * @return type **usLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -256,9 +269,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this USLocalAccountIdentification object is equal to o. - */ + /** Return true if this USLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -268,10 +279,10 @@ public boolean equals(Object o) { return false; } USLocalAccountIdentification usLocalAccountIdentification = (USLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, usLocalAccountIdentification.accountNumber) && - Objects.equals(this.accountType, usLocalAccountIdentification.accountType) && - Objects.equals(this.routingNumber, usLocalAccountIdentification.routingNumber) && - Objects.equals(this.type, usLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, usLocalAccountIdentification.accountNumber) + && Objects.equals(this.accountType, usLocalAccountIdentification.accountType) + && Objects.equals(this.routingNumber, usLocalAccountIdentification.routingNumber) + && Objects.equals(this.type, usLocalAccountIdentification.type); } @Override @@ -292,8 +303,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -302,21 +312,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of USLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of USLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to USLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * USLocalAccountIdentification */ - public static USLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static USLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, USLocalAccountIdentification.class); } -/** - * Convert an instance of USLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of USLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transfers/UltimatePartyIdentification.java b/src/main/java/com/adyen/model/transfers/UltimatePartyIdentification.java index 95e887209..1b8cbaeee 100644 --- a/src/main/java/com/adyen/model/transfers/UltimatePartyIdentification.java +++ b/src/main/java/com/adyen/model/transfers/UltimatePartyIdentification.java @@ -2,33 +2,27 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transfers; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transfers.Address; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * UltimatePartyIdentification - */ +/** UltimatePartyIdentification */ @JsonPropertyOrder({ UltimatePartyIdentification.JSON_PROPERTY_ADDRESS, UltimatePartyIdentification.JSON_PROPERTY_DATE_OF_BIRTH, @@ -40,7 +34,6 @@ UltimatePartyIdentification.JSON_PROPERTY_TYPE, UltimatePartyIdentification.JSON_PROPERTY_URL }) - public class UltimatePartyIdentification { public static final String JSON_PROPERTY_ADDRESS = "address"; private Address address; @@ -64,10 +57,11 @@ public class UltimatePartyIdentification { private String reference; /** - * The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. + * The type of entity that owns the bank account or card. Possible values: **individual**, + * **organization**, or **unknown**. Required when `category` is **card**. In this case, + * the value must be **individual**. */ public enum TypeEnum { - INDIVIDUAL(String.valueOf("individual")), ORGANIZATION(String.valueOf("organization")), @@ -79,7 +73,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -100,7 +94,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -111,13 +109,12 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_URL = "url"; private String url; - public UltimatePartyIdentification() { - } + public UltimatePartyIdentification() {} /** * address * - * @param address + * @param address * @return the current {@code UltimatePartyIdentification} instance, allowing for method chaining */ public UltimatePartyIdentification address(Address address) { @@ -127,7 +124,8 @@ public UltimatePartyIdentification address(Address address) { /** * Get address - * @return address + * + * @return address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,7 +136,7 @@ public Address getAddress() { /** * address * - * @param address + * @param address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,9 +145,12 @@ public void setAddress(Address address) { } /** - * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. + * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + * For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. * - * @param dateOfBirth The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. + * @param dateOfBirth The date of birth of the individual in + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. + * Allowed only when `type` is **individual**. * @return the current {@code UltimatePartyIdentification} instance, allowing for method chaining */ public UltimatePartyIdentification dateOfBirth(LocalDate dateOfBirth) { @@ -158,8 +159,12 @@ public UltimatePartyIdentification dateOfBirth(LocalDate dateOfBirth) { } /** - * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. - * @return dateOfBirth The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. + * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + * For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. + * + * @return dateOfBirth The date of birth of the individual in + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. + * Allowed only when `type` is **individual**. */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,9 +173,12 @@ public LocalDate getDateOfBirth() { } /** - * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. + * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + * For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. * - * @param dateOfBirth The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. + * @param dateOfBirth The date of birth of the individual in + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. + * Allowed only when `type` is **individual**. */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,7 +189,8 @@ public void setDateOfBirth(LocalDate dateOfBirth) { /** * The email address of the organization or individual. Maximum length: 254 characters. * - * @param email The email address of the organization or individual. Maximum length: 254 characters. + * @param email The email address of the organization or individual. Maximum length: 254 + * characters. * @return the current {@code UltimatePartyIdentification} instance, allowing for method chaining */ public UltimatePartyIdentification email(String email) { @@ -191,7 +200,9 @@ public UltimatePartyIdentification email(String email) { /** * The email address of the organization or individual. Maximum length: 254 characters. - * @return email The email address of the organization or individual. Maximum length: 254 characters. + * + * @return email The email address of the organization or individual. Maximum length: 254 + * characters. */ @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -202,7 +213,8 @@ public String getEmail() { /** * The email address of the organization or individual. Maximum length: 254 characters. * - * @param email The email address of the organization or individual. Maximum length: 254 characters. + * @param email The email address of the organization or individual. Maximum length: 254 + * characters. */ @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,9 +223,13 @@ public void setEmail(String email) { } /** - * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This + * parameter is: - Allowed only when `type` is **individual**. - Required when + * `category` is **card**. * - * @param firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * @param firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — + * and space. This parameter is: - Allowed only when `type` is **individual**. - + * Required when `category` is **card**. * @return the current {@code UltimatePartyIdentification} instance, allowing for method chaining */ public UltimatePartyIdentification firstName(String firstName) { @@ -222,8 +238,13 @@ public UltimatePartyIdentification firstName(String firstName) { } /** - * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. - * @return firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This + * parameter is: - Allowed only when `type` is **individual**. - Required when + * `category` is **card**. + * + * @return firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — + * and space. This parameter is: - Allowed only when `type` is **individual**. - + * Required when `category` is **card**. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,9 +253,13 @@ public String getFirstName() { } /** - * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This + * parameter is: - Allowed only when `type` is **individual**. - Required when + * `category` is **card**. * - * @param firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * @param firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — + * and space. This parameter is: - Allowed only when `type` is **individual**. - + * Required when `category` is **card**. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -243,9 +268,13 @@ public void setFirstName(String firstName) { } /** - * The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. + * The full name of the entity that owns the bank account or card. Supported characters: [a-z] + * [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when + * `category` is **bank**. * - * @param fullName The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. + * @param fullName The full name of the entity that owns the bank account or card. Supported + * characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. + * Required when `category` is **bank**. * @return the current {@code UltimatePartyIdentification} instance, allowing for method chaining */ public UltimatePartyIdentification fullName(String fullName) { @@ -254,8 +283,13 @@ public UltimatePartyIdentification fullName(String fullName) { } /** - * The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. - * @return fullName The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. + * The full name of the entity that owns the bank account or card. Supported characters: [a-z] + * [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when + * `category` is **bank**. + * + * @return fullName The full name of the entity that owns the bank account or card. Supported + * characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. + * Required when `category` is **bank**. */ @JsonProperty(JSON_PROPERTY_FULL_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -264,9 +298,13 @@ public String getFullName() { } /** - * The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. + * The full name of the entity that owns the bank account or card. Supported characters: [a-z] + * [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when + * `category` is **bank**. * - * @param fullName The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. + * @param fullName The full name of the entity that owns the bank account or card. Supported + * characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. + * Required when `category` is **bank**. */ @JsonProperty(JSON_PROPERTY_FULL_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -275,9 +313,13 @@ public void setFullName(String fullName) { } /** - * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This + * parameter is: - Allowed only when `type` is **individual**. - Required when + * `category` is **card**. * - * @param lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * @param lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and + * space. This parameter is: - Allowed only when `type` is **individual**. - + * Required when `category` is **card**. * @return the current {@code UltimatePartyIdentification} instance, allowing for method chaining */ public UltimatePartyIdentification lastName(String lastName) { @@ -286,8 +328,13 @@ public UltimatePartyIdentification lastName(String lastName) { } /** - * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. - * @return lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This + * parameter is: - Allowed only when `type` is **individual**. - Required when + * `category` is **card**. + * + * @return lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and + * space. This parameter is: - Allowed only when `type` is **individual**. - + * Required when `category` is **card**. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -296,9 +343,13 @@ public String getLastName() { } /** - * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This + * parameter is: - Allowed only when `type` is **individual**. - Required when + * `category` is **card**. * - * @param lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * @param lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and + * space. This parameter is: - Allowed only when `type` is **individual**. - + * Required when `category` is **card**. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -307,9 +358,13 @@ public void setLastName(String lastName) { } /** - * A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. + * A unique reference to identify the party or counterparty involved in the transfer. For example, + * your client's unique wallet or payee ID. Required when you include + * `cardIdentification.storedPaymentMethodId`. * - * @param reference A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. + * @param reference A unique reference to identify the party or counterparty involved in the + * transfer. For example, your client's unique wallet or payee ID. Required when you + * include `cardIdentification.storedPaymentMethodId`. * @return the current {@code UltimatePartyIdentification} instance, allowing for method chaining */ public UltimatePartyIdentification reference(String reference) { @@ -318,8 +373,13 @@ public UltimatePartyIdentification reference(String reference) { } /** - * A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. - * @return reference A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. + * A unique reference to identify the party or counterparty involved in the transfer. For example, + * your client's unique wallet or payee ID. Required when you include + * `cardIdentification.storedPaymentMethodId`. + * + * @return reference A unique reference to identify the party or counterparty involved in the + * transfer. For example, your client's unique wallet or payee ID. Required when you + * include `cardIdentification.storedPaymentMethodId`. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -328,9 +388,13 @@ public String getReference() { } /** - * A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. + * A unique reference to identify the party or counterparty involved in the transfer. For example, + * your client's unique wallet or payee ID. Required when you include + * `cardIdentification.storedPaymentMethodId`. * - * @param reference A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. + * @param reference A unique reference to identify the party or counterparty involved in the + * transfer. For example, your client's unique wallet or payee ID. Required when you + * include `cardIdentification.storedPaymentMethodId`. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -339,9 +403,13 @@ public void setReference(String reference) { } /** - * The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. + * The type of entity that owns the bank account or card. Possible values: **individual**, + * **organization**, or **unknown**. Required when `category` is **card**. In this case, + * the value must be **individual**. * - * @param type The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. + * @param type The type of entity that owns the bank account or card. Possible values: + * **individual**, **organization**, or **unknown**. Required when `category` is + * **card**. In this case, the value must be **individual**. * @return the current {@code UltimatePartyIdentification} instance, allowing for method chaining */ public UltimatePartyIdentification type(TypeEnum type) { @@ -350,8 +418,13 @@ public UltimatePartyIdentification type(TypeEnum type) { } /** - * The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. - * @return type The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. + * The type of entity that owns the bank account or card. Possible values: **individual**, + * **organization**, or **unknown**. Required when `category` is **card**. In this case, + * the value must be **individual**. + * + * @return type The type of entity that owns the bank account or card. Possible values: + * **individual**, **organization**, or **unknown**. Required when `category` is + * **card**. In this case, the value must be **individual**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -360,9 +433,13 @@ public TypeEnum getType() { } /** - * The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. + * The type of entity that owns the bank account or card. Possible values: **individual**, + * **organization**, or **unknown**. Required when `category` is **card**. In this case, + * the value must be **individual**. * - * @param type The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. + * @param type The type of entity that owns the bank account or card. Possible values: + * **individual**, **organization**, or **unknown**. Required when `category` is + * **card**. In this case, the value must be **individual**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -383,6 +460,7 @@ public UltimatePartyIdentification url(String url) { /** * The URL of the organization or individual. Maximum length: 255 characters. + * * @return url The URL of the organization or individual. Maximum length: 255 characters. */ @JsonProperty(JSON_PROPERTY_URL) @@ -402,9 +480,7 @@ public void setUrl(String url) { this.url = url; } - /** - * Return true if this UltimatePartyIdentification object is equal to o. - */ + /** Return true if this UltimatePartyIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -414,20 +490,21 @@ public boolean equals(Object o) { return false; } UltimatePartyIdentification ultimatePartyIdentification = (UltimatePartyIdentification) o; - return Objects.equals(this.address, ultimatePartyIdentification.address) && - Objects.equals(this.dateOfBirth, ultimatePartyIdentification.dateOfBirth) && - Objects.equals(this.email, ultimatePartyIdentification.email) && - Objects.equals(this.firstName, ultimatePartyIdentification.firstName) && - Objects.equals(this.fullName, ultimatePartyIdentification.fullName) && - Objects.equals(this.lastName, ultimatePartyIdentification.lastName) && - Objects.equals(this.reference, ultimatePartyIdentification.reference) && - Objects.equals(this.type, ultimatePartyIdentification.type) && - Objects.equals(this.url, ultimatePartyIdentification.url); + return Objects.equals(this.address, ultimatePartyIdentification.address) + && Objects.equals(this.dateOfBirth, ultimatePartyIdentification.dateOfBirth) + && Objects.equals(this.email, ultimatePartyIdentification.email) + && Objects.equals(this.firstName, ultimatePartyIdentification.firstName) + && Objects.equals(this.fullName, ultimatePartyIdentification.fullName) + && Objects.equals(this.lastName, ultimatePartyIdentification.lastName) + && Objects.equals(this.reference, ultimatePartyIdentification.reference) + && Objects.equals(this.type, ultimatePartyIdentification.type) + && Objects.equals(this.url, ultimatePartyIdentification.url); } @Override public int hashCode() { - return Objects.hash(address, dateOfBirth, email, firstName, fullName, lastName, reference, type, url); + return Objects.hash( + address, dateOfBirth, email, firstName, fullName, lastName, reference, type, url); } @Override @@ -448,8 +525,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -458,21 +534,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of UltimatePartyIdentification given an JSON string * * @param jsonString JSON string * @return An instance of UltimatePartyIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to UltimatePartyIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * UltimatePartyIdentification */ - public static UltimatePartyIdentification fromJson(String jsonString) throws JsonProcessingException { + public static UltimatePartyIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UltimatePartyIdentification.class); } -/** - * Convert an instance of UltimatePartyIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of UltimatePartyIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/AULocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/AULocalAccountIdentification.java index c7f9b2e00..840af2718 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/AULocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/AULocalAccountIdentification.java @@ -2,37 +2,31 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * AULocalAccountIdentification - */ +/** AULocalAccountIdentification */ @JsonPropertyOrder({ AULocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, AULocalAccountIdentification.JSON_PROPERTY_BSB_CODE, AULocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class AULocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -40,11 +34,8 @@ public class AULocalAccountIdentification { public static final String JSON_PROPERTY_BSB_CODE = "bsbCode"; private String bsbCode; - /** - * **auLocal** - */ + /** **auLocal** */ public enum TypeEnum { - AULOCAL(String.valueOf("auLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +43,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +64,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,8 +76,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AULocalAccountIdentification() { - } + public AULocalAccountIdentification() {} /** * The bank account number, without separators or whitespace. @@ -97,6 +91,7 @@ public AULocalAccountIdentification accountNumber(String accountNumber) { /** * The bank account number, without separators or whitespace. + * * @return accountNumber The bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -117,9 +112,11 @@ public void setAccountNumber(String accountNumber) { } /** - * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), + * without separators or whitespace. * - * @param bsbCode The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * @param bsbCode The 6-digit [Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. * @return the current {@code AULocalAccountIdentification} instance, allowing for method chaining */ public AULocalAccountIdentification bsbCode(String bsbCode) { @@ -128,8 +125,11 @@ public AULocalAccountIdentification bsbCode(String bsbCode) { } /** - * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. - * @return bsbCode The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), + * without separators or whitespace. + * + * @return bsbCode The 6-digit [Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_BSB_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,9 +138,11 @@ public String getBsbCode() { } /** - * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), + * without separators or whitespace. * - * @param bsbCode The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. + * @param bsbCode The 6-digit [Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_BSB_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,6 +163,7 @@ public AULocalAccountIdentification type(TypeEnum type) { /** * **auLocal** + * * @return type **auLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +183,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this AULocalAccountIdentification object is equal to o. - */ + /** Return true if this AULocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +193,9 @@ public boolean equals(Object o) { return false; } AULocalAccountIdentification auLocalAccountIdentification = (AULocalAccountIdentification) o; - return Objects.equals(this.accountNumber, auLocalAccountIdentification.accountNumber) && - Objects.equals(this.bsbCode, auLocalAccountIdentification.bsbCode) && - Objects.equals(this.type, auLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, auLocalAccountIdentification.accountNumber) + && Objects.equals(this.bsbCode, auLocalAccountIdentification.bsbCode) + && Objects.equals(this.type, auLocalAccountIdentification.type); } @Override @@ -214,8 +215,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +224,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AULocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of AULocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to AULocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AULocalAccountIdentification */ - public static AULocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static AULocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AULocalAccountIdentification.class); } -/** - * Convert an instance of AULocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AULocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/AbstractOpenApiSchema.java b/src/main/java/com/adyen/model/transferwebhooks/AbstractOpenApiSchema.java index 554e61d45..5fdd90656 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/AbstractOpenApiSchema.java +++ b/src/main/java/com/adyen/model/transferwebhooks/AbstractOpenApiSchema.java @@ -2,145 +2,141 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.Objects; -import java.util.Map; -import jakarta.ws.rs.core.GenericType; - import com.fasterxml.jackson.annotation.JsonValue; +import jakarta.ws.rs.core.GenericType; +import java.util.Map; +import java.util.Objects; -/** - * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec - */ +/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - /** - * - * @param schemaType the schema type - * @param isNullable whether the instance is nullable - */ - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - @JsonValue - public Object getActualInstance() {return instance;} - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) {this.instance = instance;} - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); - } else { - return object.getActualInstance(); - } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + /** + * @param schemaType the schema type + * @param isNullable whether the instance is nullable + */ + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + @JsonValue + public Object getActualInstance() { + return instance; + } + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) { + this.instance = instance; + } + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf + * schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); + } else { + return object.getActualInstance(); } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) && - Objects.equals(this.isNullable, a.isNullable) && - Objects.equals(this.schemaType, a.schemaType); + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; } + return o.toString().replace("\n", "\n "); + } - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); + public boolean equals(Object o) { + if (this == o) { + return true; } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - return Boolean.TRUE.equals(isNullable); + if (o == null || getClass() != o.getClass()) { + return false; } - - - -} \ No newline at end of file + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) + && Objects.equals(this.isNullable, a.isNullable) + && Objects.equals(this.schemaType, a.schemaType); + } + + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); + } + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + return Boolean.TRUE.equals(isNullable); + } +} diff --git a/src/main/java/com/adyen/model/transferwebhooks/AdditionalBankIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/AdditionalBankIdentification.java index 8cb73b31c..2cd17d0bb 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/AdditionalBankIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/AdditionalBankIdentification.java @@ -2,45 +2,47 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * AdditionalBankIdentification - */ +/** AdditionalBankIdentification */ @JsonPropertyOrder({ AdditionalBankIdentification.JSON_PROPERTY_CODE, AdditionalBankIdentification.JSON_PROPERTY_TYPE }) - public class AdditionalBankIdentification { public static final String JSON_PROPERTY_CODE = "code"; private String code; /** - * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * The type of additional bank identification, depending on the country. Possible values: * + * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. */ public enum TypeEnum { - AUBSBCODE(String.valueOf("auBsbCode")), CAROUTINGNUMBER(String.valueOf("caRoutingNumber")), @@ -54,7 +56,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -75,7 +77,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -83,8 +89,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public AdditionalBankIdentification() { - } + public AdditionalBankIdentification() {} /** * The value of the additional bank identification. @@ -99,6 +104,7 @@ public AdditionalBankIdentification code(String code) { /** * The value of the additional bank identification. + * * @return code The value of the additional bank identification. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -119,9 +125,27 @@ public void setCode(String code) { } /** - * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * The type of additional bank identification, depending on the country. Possible values: * + * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. * - * @param type The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * @param type The type of additional bank identification, depending on the country. Possible + * values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. * @return the current {@code AdditionalBankIdentification} instance, allowing for method chaining */ public AdditionalBankIdentification type(TypeEnum type) { @@ -130,8 +154,27 @@ public AdditionalBankIdentification type(TypeEnum type) { } /** - * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. - * @return type The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * The type of additional bank identification, depending on the country. Possible values: * + * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. + * + * @return type The type of additional bank identification, depending on the country. Possible + * values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,9 +183,27 @@ public TypeEnum getType() { } /** - * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * The type of additional bank identification, depending on the country. Possible values: * + * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. * - * @param type The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * @param type The type of additional bank identification, depending on the country. Possible + * values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,9 +211,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this AdditionalBankIdentification object is equal to o. - */ + /** Return true if this AdditionalBankIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -162,8 +221,8 @@ public boolean equals(Object o) { return false; } AdditionalBankIdentification additionalBankIdentification = (AdditionalBankIdentification) o; - return Objects.equals(this.code, additionalBankIdentification.code) && - Objects.equals(this.type, additionalBankIdentification.type); + return Objects.equals(this.code, additionalBankIdentification.code) + && Objects.equals(this.type, additionalBankIdentification.type); } @Override @@ -182,8 +241,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -192,21 +250,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AdditionalBankIdentification given an JSON string * * @param jsonString JSON string * @return An instance of AdditionalBankIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalBankIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalBankIdentification */ - public static AdditionalBankIdentification fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalBankIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AdditionalBankIdentification.class); } -/** - * Convert an instance of AdditionalBankIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AdditionalBankIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/Address.java b/src/main/java/com/adyen/model/transferwebhooks/Address.java index 6b7ad1778..d7ed7cc91 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/Address.java +++ b/src/main/java/com/adyen/model/transferwebhooks/Address.java @@ -2,31 +2,22 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Address - */ +/** Address */ @JsonPropertyOrder({ Address.JSON_PROPERTY_CITY, Address.JSON_PROPERTY_COUNTRY, @@ -35,7 +26,6 @@ Address.JSON_PROPERTY_POSTAL_CODE, Address.JSON_PROPERTY_STATE_OR_PROVINCE }) - public class Address { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -55,13 +45,14 @@ public class Address { public static final String JSON_PROPERTY_STATE_OR_PROVINCE = "stateOrProvince"; private String stateOrProvince; - public Address() { - } + public Address() {} /** - * The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] + * & \\ |** and Space. > Required when the `category` is **card**. * - * @param city The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * @param city The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) + * : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. * @return the current {@code Address} instance, allowing for method chaining */ public Address city(String city) { @@ -70,8 +61,11 @@ public Address city(String city) { } /** - * The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. - * @return city The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] + * & \\ |** and Space. > Required when the `category` is **card**. + * + * @return city The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( + * ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. */ @JsonProperty(JSON_PROPERTY_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,9 +74,11 @@ public String getCity() { } /** - * The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] + * & \\ |** and Space. > Required when the `category` is **card**. * - * @param city The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * @param city The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) + * : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. */ @JsonProperty(JSON_PROPERTY_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -93,7 +89,8 @@ public void setCity(String city) { /** * The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, or **GB**. * - * @param country The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, or **GB**. + * @param country The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, + * or **GB**. * @return the current {@code Address} instance, allowing for method chaining */ public Address country(String country) { @@ -103,7 +100,9 @@ public Address country(String country) { /** * The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, or **GB**. - * @return country The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, or **GB**. + * + * @return country The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, + * or **GB**. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,7 +113,8 @@ public String getCountry() { /** * The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, or **GB**. * - * @param country The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, or **GB**. + * @param country The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, + * or **GB**. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,9 +123,12 @@ public void setCountry(String country) { } /** - * The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° + * ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. * - * @param line1 The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * @param line1 The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . + * - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the + * `category` is **card**. * @return the current {@code Address} instance, allowing for method chaining */ public Address line1(String line1) { @@ -134,8 +137,12 @@ public Address line1(String line1) { } /** - * The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. - * @return line1 The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° + * ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * + * @return line1 The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . + * - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the + * `category` is **card**. */ @JsonProperty(JSON_PROPERTY_LINE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,9 +151,12 @@ public String getLine1() { } /** - * The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° + * ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. * - * @param line1 The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * @param line1 The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . + * - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the + * `category` is **card**. */ @JsonProperty(JSON_PROPERTY_LINE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -155,9 +165,12 @@ public void setLine1(String line1) { } /** - * The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ + * ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. * - * @param line2 The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * @param line2 The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . + * - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the + * `category` is **card**. * @return the current {@code Address} instance, allowing for method chaining */ public Address line2(String line2) { @@ -166,8 +179,12 @@ public Address line2(String line2) { } /** - * The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. - * @return line2 The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ + * ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * + * @return line2 The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] + * . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the + * `category` is **card**. */ @JsonProperty(JSON_PROPERTY_LINE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,9 +193,12 @@ public String getLine2() { } /** - * The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ + * ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. * - * @param line2 The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. + * @param line2 The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . + * - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the + * `category` is **card**. */ @JsonProperty(JSON_PROPERTY_LINE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -187,9 +207,13 @@ public void setLine2(String line2) { } /** - * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > Required for addresses in the US. + * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an + * address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > + * Required for addresses in the US. * - * @param postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > Required for addresses in the US. + * @param postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 + * characters for an address in all other countries. Supported characters: **[a-z] [A-Z] + * [0-9]** and Space. > Required for addresses in the US. * @return the current {@code Address} instance, allowing for method chaining */ public Address postalCode(String postalCode) { @@ -198,8 +222,13 @@ public Address postalCode(String postalCode) { } /** - * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > Required for addresses in the US. - * @return postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > Required for addresses in the US. + * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an + * address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > + * Required for addresses in the US. + * + * @return postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 + * characters for an address in all other countries. Supported characters: **[a-z] [A-Z] + * [0-9]** and Space. > Required for addresses in the US. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -208,9 +237,13 @@ public String getPostalCode() { } /** - * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > Required for addresses in the US. + * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an + * address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > + * Required for addresses in the US. * - * @param postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > Required for addresses in the US. + * @param postalCode The postal code. Maximum length: * 5 digits for an address in the US. * 10 + * characters for an address in all other countries. Supported characters: **[a-z] [A-Z] + * [0-9]** and Space. > Required for addresses in the US. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,9 +252,11 @@ public void setPostalCode(String postalCode) { } /** - * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in + * Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in + * the US or **ON** in Canada. > Required for the US and Canada. * @return the current {@code Address} instance, allowing for method chaining */ public Address stateOrProvince(String stateOrProvince) { @@ -230,8 +265,11 @@ public Address stateOrProvince(String stateOrProvince) { } /** - * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. - * @return stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in + * Canada. > Required for the US and Canada. + * + * @return stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** + * in the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,9 +278,11 @@ public String getStateOrProvince() { } /** - * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in + * Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in + * the US or **ON** in Canada. > Required for the US and Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -250,9 +290,7 @@ public void setStateOrProvince(String stateOrProvince) { this.stateOrProvince = stateOrProvince; } - /** - * Return true if this Address object is equal to o. - */ + /** Return true if this Address object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -262,12 +300,12 @@ public boolean equals(Object o) { return false; } Address address = (Address) o; - return Objects.equals(this.city, address.city) && - Objects.equals(this.country, address.country) && - Objects.equals(this.line1, address.line1) && - Objects.equals(this.line2, address.line2) && - Objects.equals(this.postalCode, address.postalCode) && - Objects.equals(this.stateOrProvince, address.stateOrProvince); + return Objects.equals(this.city, address.city) + && Objects.equals(this.country, address.country) + && Objects.equals(this.line1, address.line1) + && Objects.equals(this.line2, address.line2) + && Objects.equals(this.postalCode, address.postalCode) + && Objects.equals(this.stateOrProvince, address.stateOrProvince); } @Override @@ -290,8 +328,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -300,7 +337,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Address given an JSON string * * @param jsonString JSON string @@ -310,11 +347,12 @@ private String toIndentedString(Object o) { public static Address fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Address.class); } -/** - * Convert an instance of Address to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Address to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/Airline.java b/src/main/java/com/adyen/model/transferwebhooks/Airline.java index cf93622f0..bfe6ad80c 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/Airline.java +++ b/src/main/java/com/adyen/model/transferwebhooks/Airline.java @@ -2,39 +2,25 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transferwebhooks.Leg; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * Airline - */ -@JsonPropertyOrder({ - Airline.JSON_PROPERTY_LEGS, - Airline.JSON_PROPERTY_TICKET_NUMBER -}) - +/** Airline */ +@JsonPropertyOrder({Airline.JSON_PROPERTY_LEGS, Airline.JSON_PROPERTY_TICKET_NUMBER}) public class Airline { public static final String JSON_PROPERTY_LEGS = "legs"; private List legs; @@ -42,8 +28,7 @@ public class Airline { public static final String JSON_PROPERTY_TICKET_NUMBER = "ticketNumber"; private String ticketNumber; - public Airline() { - } + public Airline() {} /** * Details about the flight legs for this ticket. @@ -66,6 +51,7 @@ public Airline addLegsItem(Leg legsItem) { /** * Details about the flight legs for this ticket. + * * @return legs Details about the flight legs for this ticket. */ @JsonProperty(JSON_PROPERTY_LEGS) @@ -98,6 +84,7 @@ public Airline ticketNumber(String ticketNumber) { /** * The ticket's unique identifier + * * @return ticketNumber The ticket's unique identifier */ @JsonProperty(JSON_PROPERTY_TICKET_NUMBER) @@ -117,9 +104,7 @@ public void setTicketNumber(String ticketNumber) { this.ticketNumber = ticketNumber; } - /** - * Return true if this Airline object is equal to o. - */ + /** Return true if this Airline object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -129,8 +114,8 @@ public boolean equals(Object o) { return false; } Airline airline = (Airline) o; - return Objects.equals(this.legs, airline.legs) && - Objects.equals(this.ticketNumber, airline.ticketNumber); + return Objects.equals(this.legs, airline.legs) + && Objects.equals(this.ticketNumber, airline.ticketNumber); } @Override @@ -149,8 +134,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -159,7 +143,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Airline given an JSON string * * @param jsonString JSON string @@ -169,11 +153,12 @@ private String toIndentedString(Object o) { public static Airline fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Airline.class); } -/** - * Convert an instance of Airline to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Airline to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/Amount.java b/src/main/java/com/adyen/model/transferwebhooks/Amount.java index 02fd7a8f9..63f056c5b 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/Amount.java +++ b/src/main/java/com/adyen/model/transferwebhooks/Amount.java @@ -2,36 +2,23 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Amount - */ -@JsonPropertyOrder({ - Amount.JSON_PROPERTY_CURRENCY, - Amount.JSON_PROPERTY_VALUE -}) - +/** Amount */ +@JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) public class Amount { public static final String JSON_PROPERTY_CURRENCY = "currency"; private String currency; @@ -39,13 +26,14 @@ public class Amount { public static final String JSON_PROPERTY_VALUE = "value"; private Long value; - public Amount() { - } + public Amount() {} /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount currency(String currency) { @@ -54,8 +42,11 @@ public Amount currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -64,9 +55,11 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -75,9 +68,11 @@ public void setCurrency(String currency) { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * @return the current {@code Amount} instance, allowing for method chaining */ public Amount value(Long value) { @@ -86,8 +81,11 @@ public Amount value(Long value) { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). - * @return value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * + * @return value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +94,11 @@ public Long getValue() { } /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * @param value The amount of the transaction, in [minor + * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +106,7 @@ public void setValue(Long value) { this.value = value; } - /** - * Return true if this Amount object is equal to o. - */ + /** Return true if this Amount object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +116,8 @@ public boolean equals(Object o) { return false; } Amount amount = (Amount) o; - return Objects.equals(this.currency, amount.currency) && - Objects.equals(this.value, amount.value); + return Objects.equals(this.currency, amount.currency) + && Objects.equals(this.value, amount.value); } @Override @@ -138,8 +136,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +145,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Amount given an JSON string * * @param jsonString JSON string @@ -158,11 +155,12 @@ private String toIndentedString(Object o) { public static Amount fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Amount.class); } -/** - * Convert an instance of Amount to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Amount to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/AmountAdjustment.java b/src/main/java/com/adyen/model/transferwebhooks/AmountAdjustment.java index 2128c46d1..00fff8f3a 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/AmountAdjustment.java +++ b/src/main/java/com/adyen/model/transferwebhooks/AmountAdjustment.java @@ -2,47 +2,40 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transferwebhooks.Amount; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * AmountAdjustment - */ +/** AmountAdjustment */ @JsonPropertyOrder({ AmountAdjustment.JSON_PROPERTY_AMOUNT, AmountAdjustment.JSON_PROPERTY_AMOUNT_ADJUSTMENT_TYPE, AmountAdjustment.JSON_PROPERTY_BASEPOINTS }) - public class AmountAdjustment { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; /** - * The type of markup that is applied to an authorised payment. Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. + * The type of markup that is applied to an authorised payment. Possible values: **exchange**, + * **forexMarkup**, **authHoldReserve**, **atmMarkup**. */ public enum AmountAdjustmentTypeEnum { - ATMMARKUP(String.valueOf("atmMarkup")), AUTHHOLDRESERVE(String.valueOf("authHoldReserve")), @@ -56,7 +49,7 @@ public enum AmountAdjustmentTypeEnum { private String value; AmountAdjustmentTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -77,7 +70,11 @@ public static AmountAdjustmentTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AmountAdjustmentTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AmountAdjustmentTypeEnum.values())); + LOG.warning( + "AmountAdjustmentTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AmountAdjustmentTypeEnum.values())); return null; } } @@ -88,13 +85,12 @@ public static AmountAdjustmentTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_BASEPOINTS = "basepoints"; private Integer basepoints; - public AmountAdjustment() { - } + public AmountAdjustment() {} /** * amount * - * @param amount + * @param amount * @return the current {@code AmountAdjustment} instance, allowing for method chaining */ public AmountAdjustment amount(Amount amount) { @@ -104,7 +100,8 @@ public AmountAdjustment amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,7 +112,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,9 +121,11 @@ public void setAmount(Amount amount) { } /** - * The type of markup that is applied to an authorised payment. Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. + * The type of markup that is applied to an authorised payment. Possible values: **exchange**, + * **forexMarkup**, **authHoldReserve**, **atmMarkup**. * - * @param amountAdjustmentType The type of markup that is applied to an authorised payment. Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. + * @param amountAdjustmentType The type of markup that is applied to an authorised payment. + * Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. * @return the current {@code AmountAdjustment} instance, allowing for method chaining */ public AmountAdjustment amountAdjustmentType(AmountAdjustmentTypeEnum amountAdjustmentType) { @@ -135,8 +134,11 @@ public AmountAdjustment amountAdjustmentType(AmountAdjustmentTypeEnum amountAdju } /** - * The type of markup that is applied to an authorised payment. Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. - * @return amountAdjustmentType The type of markup that is applied to an authorised payment. Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. + * The type of markup that is applied to an authorised payment. Possible values: **exchange**, + * **forexMarkup**, **authHoldReserve**, **atmMarkup**. + * + * @return amountAdjustmentType The type of markup that is applied to an authorised payment. + * Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. */ @JsonProperty(JSON_PROPERTY_AMOUNT_ADJUSTMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,9 +147,11 @@ public AmountAdjustmentTypeEnum getAmountAdjustmentType() { } /** - * The type of markup that is applied to an authorised payment. Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. + * The type of markup that is applied to an authorised payment. Possible values: **exchange**, + * **forexMarkup**, **authHoldReserve**, **atmMarkup**. * - * @param amountAdjustmentType The type of markup that is applied to an authorised payment. Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. + * @param amountAdjustmentType The type of markup that is applied to an authorised payment. + * Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. */ @JsonProperty(JSON_PROPERTY_AMOUNT_ADJUSTMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,6 +172,7 @@ public AmountAdjustment basepoints(Integer basepoints) { /** * The basepoints associated with the applied markup. + * * @return basepoints The basepoints associated with the applied markup. */ @JsonProperty(JSON_PROPERTY_BASEPOINTS) @@ -187,9 +192,7 @@ public void setBasepoints(Integer basepoints) { this.basepoints = basepoints; } - /** - * Return true if this AmountAdjustment object is equal to o. - */ + /** Return true if this AmountAdjustment object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -199,9 +202,9 @@ public boolean equals(Object o) { return false; } AmountAdjustment amountAdjustment = (AmountAdjustment) o; - return Objects.equals(this.amount, amountAdjustment.amount) && - Objects.equals(this.amountAdjustmentType, amountAdjustment.amountAdjustmentType) && - Objects.equals(this.basepoints, amountAdjustment.basepoints); + return Objects.equals(this.amount, amountAdjustment.amount) + && Objects.equals(this.amountAdjustmentType, amountAdjustment.amountAdjustmentType) + && Objects.equals(this.basepoints, amountAdjustment.basepoints); } @Override @@ -214,15 +217,16 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AmountAdjustment {\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append(" amountAdjustmentType: ").append(toIndentedString(amountAdjustmentType)).append("\n"); + sb.append(" amountAdjustmentType: ") + .append(toIndentedString(amountAdjustmentType)) + .append("\n"); sb.append(" basepoints: ").append(toIndentedString(basepoints)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -231,7 +235,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of AmountAdjustment given an JSON string * * @param jsonString JSON string @@ -241,11 +245,12 @@ private String toIndentedString(Object o) { public static AmountAdjustment fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, AmountAdjustment.class); } -/** - * Convert an instance of AmountAdjustment to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of AmountAdjustment to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/BRLocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/BRLocalAccountIdentification.java index 7aaea75a0..12730df5f 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/BRLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/BRLocalAccountIdentification.java @@ -2,31 +2,26 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * BRLocalAccountIdentification - */ +/** BRLocalAccountIdentification */ @JsonPropertyOrder({ BRLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, BRLocalAccountIdentification.JSON_PROPERTY_BANK_CODE, @@ -34,7 +29,6 @@ BRLocalAccountIdentification.JSON_PROPERTY_ISPB, BRLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class BRLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -48,11 +42,8 @@ public class BRLocalAccountIdentification { public static final String JSON_PROPERTY_ISPB = "ispb"; private String ispb; - /** - * **brLocal** - */ + /** **brLocal** */ public enum TypeEnum { - BRLOCAL(String.valueOf("brLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -60,7 +51,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -81,7 +72,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -89,8 +84,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public BRLocalAccountIdentification() { - } + public BRLocalAccountIdentification() {} /** * The bank account number, without separators or whitespace. @@ -105,6 +99,7 @@ public BRLocalAccountIdentification accountNumber(String accountNumber) { /** * The bank account number, without separators or whitespace. + * * @return accountNumber The bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -137,6 +132,7 @@ public BRLocalAccountIdentification bankCode(String bankCode) { /** * The 3-digit bank code, with leading zeros. + * * @return bankCode The 3-digit bank code, with leading zeros. */ @JsonProperty(JSON_PROPERTY_BANK_CODE) @@ -169,6 +165,7 @@ public BRLocalAccountIdentification branchNumber(String branchNumber) { /** * The bank account branch number, without separators or whitespace. + * * @return branchNumber The bank account branch number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_BRANCH_NUMBER) @@ -201,6 +198,7 @@ public BRLocalAccountIdentification ispb(String ispb) { /** * The 8-digit ISPB, with leading zeros. + * * @return ispb The 8-digit ISPB, with leading zeros. */ @JsonProperty(JSON_PROPERTY_ISPB) @@ -233,6 +231,7 @@ public BRLocalAccountIdentification type(TypeEnum type) { /** * **brLocal** + * * @return type **brLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -252,9 +251,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this BRLocalAccountIdentification object is equal to o. - */ + /** Return true if this BRLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -264,11 +261,11 @@ public boolean equals(Object o) { return false; } BRLocalAccountIdentification brLocalAccountIdentification = (BRLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, brLocalAccountIdentification.accountNumber) && - Objects.equals(this.bankCode, brLocalAccountIdentification.bankCode) && - Objects.equals(this.branchNumber, brLocalAccountIdentification.branchNumber) && - Objects.equals(this.ispb, brLocalAccountIdentification.ispb) && - Objects.equals(this.type, brLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, brLocalAccountIdentification.accountNumber) + && Objects.equals(this.bankCode, brLocalAccountIdentification.bankCode) + && Objects.equals(this.branchNumber, brLocalAccountIdentification.branchNumber) + && Objects.equals(this.ispb, brLocalAccountIdentification.ispb) + && Objects.equals(this.type, brLocalAccountIdentification.type); } @Override @@ -290,8 +287,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -300,21 +296,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BRLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of BRLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to BRLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BRLocalAccountIdentification */ - public static BRLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static BRLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BRLocalAccountIdentification.class); } -/** - * Convert an instance of BRLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BRLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/BalanceMutation.java b/src/main/java/com/adyen/model/transferwebhooks/BalanceMutation.java index 5f743ef28..a23e484bf 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/BalanceMutation.java +++ b/src/main/java/com/adyen/model/transferwebhooks/BalanceMutation.java @@ -2,38 +2,28 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * BalanceMutation - */ +/** BalanceMutation */ @JsonPropertyOrder({ BalanceMutation.JSON_PROPERTY_BALANCE, BalanceMutation.JSON_PROPERTY_CURRENCY, BalanceMutation.JSON_PROPERTY_RECEIVED, BalanceMutation.JSON_PROPERTY_RESERVED }) - public class BalanceMutation { public static final String JSON_PROPERTY_BALANCE = "balance"; private Long balance; @@ -47,13 +37,14 @@ public class BalanceMutation { public static final String JSON_PROPERTY_RESERVED = "reserved"; private Long reserved; - public BalanceMutation() { - } + public BalanceMutation() {} /** - * The amount in the payment's currency that is debited or credited on the balance accounting register. + * The amount in the payment's currency that is debited or credited on the balance accounting + * register. * - * @param balance The amount in the payment's currency that is debited or credited on the balance accounting register. + * @param balance The amount in the payment's currency that is debited or credited on the + * balance accounting register. * @return the current {@code BalanceMutation} instance, allowing for method chaining */ public BalanceMutation balance(Long balance) { @@ -62,8 +53,11 @@ public BalanceMutation balance(Long balance) { } /** - * The amount in the payment's currency that is debited or credited on the balance accounting register. - * @return balance The amount in the payment's currency that is debited or credited on the balance accounting register. + * The amount in the payment's currency that is debited or credited on the balance accounting + * register. + * + * @return balance The amount in the payment's currency that is debited or credited on the + * balance accounting register. */ @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -72,9 +66,11 @@ public Long getBalance() { } /** - * The amount in the payment's currency that is debited or credited on the balance accounting register. + * The amount in the payment's currency that is debited or credited on the balance accounting + * register. * - * @param balance The amount in the payment's currency that is debited or credited on the balance accounting register. + * @param balance The amount in the payment's currency that is debited or credited on the + * balance accounting register. */ @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,9 +79,11 @@ public void setBalance(Long balance) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code BalanceMutation} instance, allowing for method chaining */ public BalanceMutation currency(String currency) { @@ -94,8 +92,11 @@ public BalanceMutation currency(String currency) { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). - * @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). + * + * @return currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,9 +105,11 @@ public String getCurrency() { } /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * @param currency The three-character [ISO currency + * code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,9 +118,11 @@ public void setCurrency(String currency) { } /** - * The amount in the payment's currency that is debited or credited on the received accounting register. + * The amount in the payment's currency that is debited or credited on the received accounting + * register. * - * @param received The amount in the payment's currency that is debited or credited on the received accounting register. + * @param received The amount in the payment's currency that is debited or credited on the + * received accounting register. * @return the current {@code BalanceMutation} instance, allowing for method chaining */ public BalanceMutation received(Long received) { @@ -126,8 +131,11 @@ public BalanceMutation received(Long received) { } /** - * The amount in the payment's currency that is debited or credited on the received accounting register. - * @return received The amount in the payment's currency that is debited or credited on the received accounting register. + * The amount in the payment's currency that is debited or credited on the received accounting + * register. + * + * @return received The amount in the payment's currency that is debited or credited on the + * received accounting register. */ @JsonProperty(JSON_PROPERTY_RECEIVED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,9 +144,11 @@ public Long getReceived() { } /** - * The amount in the payment's currency that is debited or credited on the received accounting register. + * The amount in the payment's currency that is debited or credited on the received accounting + * register. * - * @param received The amount in the payment's currency that is debited or credited on the received accounting register. + * @param received The amount in the payment's currency that is debited or credited on the + * received accounting register. */ @JsonProperty(JSON_PROPERTY_RECEIVED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,9 +157,11 @@ public void setReceived(Long received) { } /** - * The amount in the payment's currency that is debited or credited on the reserved accounting register. + * The amount in the payment's currency that is debited or credited on the reserved accounting + * register. * - * @param reserved The amount in the payment's currency that is debited or credited on the reserved accounting register. + * @param reserved The amount in the payment's currency that is debited or credited on the + * reserved accounting register. * @return the current {@code BalanceMutation} instance, allowing for method chaining */ public BalanceMutation reserved(Long reserved) { @@ -158,8 +170,11 @@ public BalanceMutation reserved(Long reserved) { } /** - * The amount in the payment's currency that is debited or credited on the reserved accounting register. - * @return reserved The amount in the payment's currency that is debited or credited on the reserved accounting register. + * The amount in the payment's currency that is debited or credited on the reserved accounting + * register. + * + * @return reserved The amount in the payment's currency that is debited or credited on the + * reserved accounting register. */ @JsonProperty(JSON_PROPERTY_RESERVED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,9 +183,11 @@ public Long getReserved() { } /** - * The amount in the payment's currency that is debited or credited on the reserved accounting register. + * The amount in the payment's currency that is debited or credited on the reserved accounting + * register. * - * @param reserved The amount in the payment's currency that is debited or credited on the reserved accounting register. + * @param reserved The amount in the payment's currency that is debited or credited on the + * reserved accounting register. */ @JsonProperty(JSON_PROPERTY_RESERVED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,9 +195,7 @@ public void setReserved(Long reserved) { this.reserved = reserved; } - /** - * Return true if this BalanceMutation object is equal to o. - */ + /** Return true if this BalanceMutation object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -190,10 +205,10 @@ public boolean equals(Object o) { return false; } BalanceMutation balanceMutation = (BalanceMutation) o; - return Objects.equals(this.balance, balanceMutation.balance) && - Objects.equals(this.currency, balanceMutation.currency) && - Objects.equals(this.received, balanceMutation.received) && - Objects.equals(this.reserved, balanceMutation.reserved); + return Objects.equals(this.balance, balanceMutation.balance) + && Objects.equals(this.currency, balanceMutation.currency) + && Objects.equals(this.received, balanceMutation.received) + && Objects.equals(this.reserved, balanceMutation.reserved); } @Override @@ -214,8 +229,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,7 +238,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BalanceMutation given an JSON string * * @param jsonString JSON string @@ -234,11 +248,12 @@ private String toIndentedString(Object o) { public static BalanceMutation fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalanceMutation.class); } -/** - * Convert an instance of BalanceMutation to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BalanceMutation to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/BalancePlatformNotificationResponse.java b/src/main/java/com/adyen/model/transferwebhooks/BalancePlatformNotificationResponse.java index 85261eb0a..6f13538f7 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/BalancePlatformNotificationResponse.java +++ b/src/main/java/com/adyen/model/transferwebhooks/BalancePlatformNotificationResponse.java @@ -2,47 +2,37 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * BalancePlatformNotificationResponse - */ -@JsonPropertyOrder({ - BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE -}) - +/** BalancePlatformNotificationResponse */ +@JsonPropertyOrder({BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) public class BalancePlatformNotificationResponse { public static final String JSON_PROPERTY_NOTIFICATION_RESPONSE = "notificationResponse"; private String notificationResponse; - public BalancePlatformNotificationResponse() { - } + public BalancePlatformNotificationResponse() {} /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method chaining + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method + * chaining */ public BalancePlatformNotificationResponse notificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; @@ -50,8 +40,11 @@ public BalancePlatformNotificationResponse notificationResponse(String notificat } /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). - * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * + * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,9 +53,11 @@ public String getNotificationResponse() { } /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * - * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -70,9 +65,7 @@ public void setNotificationResponse(String notificationResponse) { this.notificationResponse = notificationResponse; } - /** - * Return true if this BalancePlatformNotificationResponse object is equal to o. - */ + /** Return true if this BalancePlatformNotificationResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -81,8 +74,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - BalancePlatformNotificationResponse balancePlatformNotificationResponse = (BalancePlatformNotificationResponse) o; - return Objects.equals(this.notificationResponse, balancePlatformNotificationResponse.notificationResponse); + BalancePlatformNotificationResponse balancePlatformNotificationResponse = + (BalancePlatformNotificationResponse) o; + return Objects.equals( + this.notificationResponse, balancePlatformNotificationResponse.notificationResponse); } @Override @@ -94,14 +89,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BalancePlatformNotificationResponse {\n"); - sb.append(" notificationResponse: ").append(toIndentedString(notificationResponse)).append("\n"); + sb.append(" notificationResponse: ") + .append(toIndentedString(notificationResponse)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,21 +106,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BalancePlatformNotificationResponse given an JSON string * * @param jsonString JSON string * @return An instance of BalancePlatformNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to BalancePlatformNotificationResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * BalancePlatformNotificationResponse */ - public static BalancePlatformNotificationResponse fromJson(String jsonString) throws JsonProcessingException { + public static BalancePlatformNotificationResponse fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BalancePlatformNotificationResponse.class); } -/** - * Convert an instance of BalancePlatformNotificationResponse to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BalancePlatformNotificationResponse to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/BankAccountV3.java b/src/main/java/com/adyen/model/transferwebhooks/BankAccountV3.java index 11668bf85..5d6020d39 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/BankAccountV3.java +++ b/src/main/java/com/adyen/model/transferwebhooks/BankAccountV3.java @@ -2,38 +2,26 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transferwebhooks.BankAccountV3AccountIdentification; -import com.adyen.model.transferwebhooks.PartyIdentification; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * BankAccountV3 - */ +/** BankAccountV3 */ @JsonPropertyOrder({ BankAccountV3.JSON_PROPERTY_ACCOUNT_HOLDER, BankAccountV3.JSON_PROPERTY_ACCOUNT_IDENTIFICATION }) - public class BankAccountV3 { public static final String JSON_PROPERTY_ACCOUNT_HOLDER = "accountHolder"; private PartyIdentification accountHolder; @@ -41,13 +29,12 @@ public class BankAccountV3 { public static final String JSON_PROPERTY_ACCOUNT_IDENTIFICATION = "accountIdentification"; private BankAccountV3AccountIdentification accountIdentification; - public BankAccountV3() { - } + public BankAccountV3() {} /** * accountHolder * - * @param accountHolder + * @param accountHolder * @return the current {@code BankAccountV3} instance, allowing for method chaining */ public BankAccountV3 accountHolder(PartyIdentification accountHolder) { @@ -57,7 +44,8 @@ public BankAccountV3 accountHolder(PartyIdentification accountHolder) { /** * Get accountHolder - * @return accountHolder + * + * @return accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,7 +56,7 @@ public PartyIdentification getAccountHolder() { /** * accountHolder * - * @param accountHolder + * @param accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,17 +67,19 @@ public void setAccountHolder(PartyIdentification accountHolder) { /** * accountIdentification * - * @param accountIdentification + * @param accountIdentification * @return the current {@code BankAccountV3} instance, allowing for method chaining */ - public BankAccountV3 accountIdentification(BankAccountV3AccountIdentification accountIdentification) { + public BankAccountV3 accountIdentification( + BankAccountV3AccountIdentification accountIdentification) { this.accountIdentification = accountIdentification; return this; } /** * Get accountIdentification - * @return accountIdentification + * + * @return accountIdentification */ @JsonProperty(JSON_PROPERTY_ACCOUNT_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,7 +90,7 @@ public BankAccountV3AccountIdentification getAccountIdentification() { /** * accountIdentification * - * @param accountIdentification + * @param accountIdentification */ @JsonProperty(JSON_PROPERTY_ACCOUNT_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,9 +98,7 @@ public void setAccountIdentification(BankAccountV3AccountIdentification accountI this.accountIdentification = accountIdentification; } - /** - * Return true if this BankAccountV3 object is equal to o. - */ + /** Return true if this BankAccountV3 object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -120,8 +108,8 @@ public boolean equals(Object o) { return false; } BankAccountV3 bankAccountV3 = (BankAccountV3) o; - return Objects.equals(this.accountHolder, bankAccountV3.accountHolder) && - Objects.equals(this.accountIdentification, bankAccountV3.accountIdentification); + return Objects.equals(this.accountHolder, bankAccountV3.accountHolder) + && Objects.equals(this.accountIdentification, bankAccountV3.accountIdentification); } @Override @@ -134,14 +122,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BankAccountV3 {\n"); sb.append(" accountHolder: ").append(toIndentedString(accountHolder)).append("\n"); - sb.append(" accountIdentification: ").append(toIndentedString(accountIdentification)).append("\n"); + sb.append(" accountIdentification: ") + .append(toIndentedString(accountIdentification)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -150,7 +139,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BankAccountV3 given an JSON string * * @param jsonString JSON string @@ -160,11 +149,12 @@ private String toIndentedString(Object o) { public static BankAccountV3 fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankAccountV3.class); } -/** - * Convert an instance of BankAccountV3 to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BankAccountV3 to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/BankAccountV3AccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/BankAccountV3AccountIdentification.java index 0b836bdf8..8b8a56abf 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/BankAccountV3AccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/BankAccountV3AccountIdentification.java @@ -2,60 +2,19 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transferwebhooks.AULocalAccountIdentification; -import com.adyen.model.transferwebhooks.AdditionalBankIdentification; -import com.adyen.model.transferwebhooks.BRLocalAccountIdentification; -import com.adyen.model.transferwebhooks.CALocalAccountIdentification; -import com.adyen.model.transferwebhooks.CZLocalAccountIdentification; -import com.adyen.model.transferwebhooks.DKLocalAccountIdentification; -import com.adyen.model.transferwebhooks.HKLocalAccountIdentification; -import com.adyen.model.transferwebhooks.HULocalAccountIdentification; -import com.adyen.model.transferwebhooks.IbanAccountIdentification; -import com.adyen.model.transferwebhooks.NOLocalAccountIdentification; -import com.adyen.model.transferwebhooks.NZLocalAccountIdentification; -import com.adyen.model.transferwebhooks.NumberAndBicAccountIdentification; -import com.adyen.model.transferwebhooks.PLLocalAccountIdentification; -import com.adyen.model.transferwebhooks.SELocalAccountIdentification; -import com.adyen.model.transferwebhooks.SGLocalAccountIdentification; -import com.adyen.model.transferwebhooks.UKLocalAccountIdentification; -import com.adyen.model.transferwebhooks.USLocalAccountIdentification; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -import com.fasterxml.jackson.core.type.TypeReference; - -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.core.Response; -import java.io.IOException; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; - import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -65,872 +24,942 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import jakarta.ws.rs.core.GenericType; +import java.io.IOException; +import java.util.*; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.logging.Level; +import java.util.logging.Logger; - -@JsonDeserialize(using = BankAccountV3AccountIdentification.BankAccountV3AccountIdentificationDeserializer.class) -@JsonSerialize(using = BankAccountV3AccountIdentification.BankAccountV3AccountIdentificationSerializer.class) +@JsonDeserialize( + using = BankAccountV3AccountIdentification.BankAccountV3AccountIdentificationDeserializer.class) +@JsonSerialize( + using = BankAccountV3AccountIdentification.BankAccountV3AccountIdentificationSerializer.class) public class BankAccountV3AccountIdentification extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(BankAccountV3AccountIdentification.class.getName()); - - public static class BankAccountV3AccountIdentificationSerializer extends StdSerializer { - public BankAccountV3AccountIdentificationSerializer(Class t) { - super(t); - } - - public BankAccountV3AccountIdentificationSerializer() { - this(null); - } - - @Override - public void serialize(BankAccountV3AccountIdentification value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class BankAccountV3AccountIdentificationDeserializer extends StdDeserializer { - public BankAccountV3AccountIdentificationDeserializer() { - this(BankAccountV3AccountIdentification.class); - } - - public BankAccountV3AccountIdentificationDeserializer(Class vc) { - super(vc); - } - - @Override - public BankAccountV3AccountIdentification deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize AULocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(AULocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AULocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AULocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AULocalAccountIdentification'", e); - } - - // deserialize BRLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(BRLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(BRLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'BRLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'BRLocalAccountIdentification'", e); - } - - // deserialize CALocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(CALocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CALocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CALocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CALocalAccountIdentification'", e); - } - - // deserialize CZLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(CZLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CZLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'CZLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'CZLocalAccountIdentification'", e); - } - - // deserialize DKLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(DKLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(DKLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'DKLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'DKLocalAccountIdentification'", e); - } - - // deserialize HKLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(HKLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(HKLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'HKLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'HKLocalAccountIdentification'", e); - } - - // deserialize HULocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(HULocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(HULocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'HULocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'HULocalAccountIdentification'", e); - } - - // deserialize IbanAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(IbanAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'IbanAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'IbanAccountIdentification'", e); - } - - // deserialize NOLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(NOLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(NOLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'NOLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'NOLocalAccountIdentification'", e); - } - - // deserialize NZLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(NZLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(NZLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'NZLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'NZLocalAccountIdentification'", e); - } - - // deserialize NumberAndBicAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(NumberAndBicAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(NumberAndBicAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'NumberAndBicAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'NumberAndBicAccountIdentification'", e); - } - - // deserialize PLLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(PLLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PLLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PLLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PLLocalAccountIdentification'", e); - } - - // deserialize SELocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(SELocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(SELocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SELocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'SELocalAccountIdentification'", e); - } - - // deserialize SGLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(SGLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(SGLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SGLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'SGLocalAccountIdentification'", e); - } - - // deserialize UKLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(UKLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(UKLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'UKLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'UKLocalAccountIdentification'", e); - } - - // deserialize USLocalAccountIdentification - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(USLocalAccountIdentification.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(USLocalAccountIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'USLocalAccountIdentification'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'USLocalAccountIdentification'", e); - } - - if (match == 1) { - BankAccountV3AccountIdentification ret = new BankAccountV3AccountIdentification(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException(String.format("Failed deserialization for BankAccountV3AccountIdentification: %d classes match result, expected 1", match)); - } - - /** - * Handle deserialization of the 'null' value. - */ - @Override - public BankAccountV3AccountIdentification getNullValue(DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "BankAccountV3AccountIdentification cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public BankAccountV3AccountIdentification() { - super("oneOf", Boolean.FALSE); - } - - public BankAccountV3AccountIdentification(AULocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(BRLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(CALocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(CZLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(DKLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(HKLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(HULocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(IbanAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(NOLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(NZLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } + private static final Logger log = + Logger.getLogger(BankAccountV3AccountIdentification.class.getName()); - public BankAccountV3AccountIdentification(NumberAndBicAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + public static class BankAccountV3AccountIdentificationSerializer + extends StdSerializer { + public BankAccountV3AccountIdentificationSerializer( + Class t) { + super(t); } - public BankAccountV3AccountIdentification(PLLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + public BankAccountV3AccountIdentificationSerializer() { + this(null); } - public BankAccountV3AccountIdentification(SELocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(SGLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(UKLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public BankAccountV3AccountIdentification(USLocalAccountIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + @Override + public void serialize( + BankAccountV3AccountIdentification value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); } + } - static { - schemas.put("AULocalAccountIdentification", new GenericType() { - }); - schemas.put("BRLocalAccountIdentification", new GenericType() { - }); - schemas.put("CALocalAccountIdentification", new GenericType() { - }); - schemas.put("CZLocalAccountIdentification", new GenericType() { - }); - schemas.put("DKLocalAccountIdentification", new GenericType() { - }); - schemas.put("HKLocalAccountIdentification", new GenericType() { - }); - schemas.put("HULocalAccountIdentification", new GenericType() { - }); - schemas.put("IbanAccountIdentification", new GenericType() { - }); - schemas.put("NOLocalAccountIdentification", new GenericType() { - }); - schemas.put("NZLocalAccountIdentification", new GenericType() { - }); - schemas.put("NumberAndBicAccountIdentification", new GenericType() { - }); - schemas.put("PLLocalAccountIdentification", new GenericType() { - }); - schemas.put("SELocalAccountIdentification", new GenericType() { - }); - schemas.put("SGLocalAccountIdentification", new GenericType() { - }); - schemas.put("UKLocalAccountIdentification", new GenericType() { - }); - schemas.put("USLocalAccountIdentification", new GenericType() { - }); - JSON.registerDescendants(BankAccountV3AccountIdentification.class, Collections.unmodifiableMap(schemas)); + public static class BankAccountV3AccountIdentificationDeserializer + extends StdDeserializer { + public BankAccountV3AccountIdentificationDeserializer() { + this(BankAccountV3AccountIdentification.class); } - @Override - public Map> getSchemas() { - return BankAccountV3AccountIdentification.schemas; + public BankAccountV3AccountIdentificationDeserializer(Class vc) { + super(vc); } - /** - * Set the instance that matches the oneOf child schema, check - * the instance parameter is valid against the oneOf child schemas: - * AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification - * - * It could be an instance of the 'oneOf' schemas. - * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). - */ @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(AULocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + public BankAccountV3AccountIdentification deserialize( + JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize AULocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(AULocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(AULocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'AULocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(BRLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'AULocalAccountIdentification'", e); + } + + // deserialize BRLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(BRLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(BRLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'BRLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(CALocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'BRLocalAccountIdentification'", e); + } + + // deserialize CALocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(CALocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(CALocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CALocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(CZLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CALocalAccountIdentification'", e); + } + + // deserialize CZLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(CZLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(CZLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CZLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(DKLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CZLocalAccountIdentification'", e); + } + + // deserialize DKLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(DKLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(DKLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'DKLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(HKLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'DKLocalAccountIdentification'", e); + } + + // deserialize HKLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(HKLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(HKLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'HKLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(HULocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'HKLocalAccountIdentification'", e); + } + + // deserialize HULocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(HULocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(HULocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'HULocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(IbanAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'HULocalAccountIdentification'", e); + } + + // deserialize IbanAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(IbanAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'IbanAccountIdentification'"); + } } - - if (JSON.isInstanceOf(NOLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'IbanAccountIdentification'", e); + } + + // deserialize NOLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(NOLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(NOLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'NOLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(NZLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'NOLocalAccountIdentification'", e); + } + + // deserialize NZLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(NZLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(NZLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'NZLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(NumberAndBicAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'NZLocalAccountIdentification'", e); + } + + // deserialize NumberAndBicAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(NumberAndBicAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(NumberAndBicAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'NumberAndBicAccountIdentification'"); + } } - - if (JSON.isInstanceOf(PLLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log( + Level.FINER, "Input data does not match schema 'NumberAndBicAccountIdentification'", e); + } + + // deserialize PLLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(PLLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(PLLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PLLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(SELocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PLLocalAccountIdentification'", e); + } + + // deserialize SELocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(SELocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(SELocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'SELocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(SGLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'SELocalAccountIdentification'", e); + } + + // deserialize SGLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(SGLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(SGLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'SGLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(UKLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'SGLocalAccountIdentification'", e); + } + + // deserialize UKLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(UKLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(UKLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'UKLocalAccountIdentification'"); + } } - - if (JSON.isInstanceOf(USLocalAccountIdentification.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'UKLocalAccountIdentification'", e); + } + + // deserialize USLocalAccountIdentification + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(USLocalAccountIdentification.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(USLocalAccountIdentification.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'USLocalAccountIdentification'"); + } } - - throw new RuntimeException("Invalid instance type. Must be AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification"); - } - - /** - * Get the actual instance, which can be the following: - * AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification - * - * @return The actual instance (AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification) - */ + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'USLocalAccountIdentification'", e); + } + + if (match == 1) { + BankAccountV3AccountIdentification ret = new BankAccountV3AccountIdentification(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException( + String.format( + "Failed deserialization for BankAccountV3AccountIdentification: %d classes match result, expected 1", + match)); + } + + /** Handle deserialization of the 'null' value. */ @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `AULocalAccountIdentification`. If the actual instance is not `AULocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `AULocalAccountIdentification` - * @throws ClassCastException if the instance is not `AULocalAccountIdentification` - */ - public AULocalAccountIdentification getAULocalAccountIdentification() throws ClassCastException { - return (AULocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `BRLocalAccountIdentification`. If the actual instance is not `BRLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `BRLocalAccountIdentification` - * @throws ClassCastException if the instance is not `BRLocalAccountIdentification` - */ - public BRLocalAccountIdentification getBRLocalAccountIdentification() throws ClassCastException { - return (BRLocalAccountIdentification)super.getActualInstance(); - } + public BankAccountV3AccountIdentification getNullValue(DeserializationContext ctxt) + throws JsonMappingException { + throw new JsonMappingException( + ctxt.getParser(), "BankAccountV3AccountIdentification cannot be null"); + } + } + + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public BankAccountV3AccountIdentification() { + super("oneOf", Boolean.FALSE); + } + + public BankAccountV3AccountIdentification(AULocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(BRLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(CALocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(CZLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(DKLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(HKLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(HULocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(IbanAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(NOLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(NZLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(NumberAndBicAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(PLLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(SELocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(SGLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(UKLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public BankAccountV3AccountIdentification(USLocalAccountIdentification o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("AULocalAccountIdentification", new GenericType() {}); + schemas.put("BRLocalAccountIdentification", new GenericType() {}); + schemas.put("CALocalAccountIdentification", new GenericType() {}); + schemas.put("CZLocalAccountIdentification", new GenericType() {}); + schemas.put("DKLocalAccountIdentification", new GenericType() {}); + schemas.put("HKLocalAccountIdentification", new GenericType() {}); + schemas.put("HULocalAccountIdentification", new GenericType() {}); + schemas.put("IbanAccountIdentification", new GenericType() {}); + schemas.put("NOLocalAccountIdentification", new GenericType() {}); + schemas.put("NZLocalAccountIdentification", new GenericType() {}); + schemas.put( + "NumberAndBicAccountIdentification", + new GenericType() {}); + schemas.put("PLLocalAccountIdentification", new GenericType() {}); + schemas.put("SELocalAccountIdentification", new GenericType() {}); + schemas.put("SGLocalAccountIdentification", new GenericType() {}); + schemas.put("UKLocalAccountIdentification", new GenericType() {}); + schemas.put("USLocalAccountIdentification", new GenericType() {}); + JSON.registerDescendants( + BankAccountV3AccountIdentification.class, Collections.unmodifiableMap(schemas)); + } - /** - * Get the actual instance of `CALocalAccountIdentification`. If the actual instance is not `CALocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CALocalAccountIdentification` - * @throws ClassCastException if the instance is not `CALocalAccountIdentification` - */ - public CALocalAccountIdentification getCALocalAccountIdentification() throws ClassCastException { - return (CALocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `CZLocalAccountIdentification`. If the actual instance is not `CZLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CZLocalAccountIdentification` - * @throws ClassCastException if the instance is not `CZLocalAccountIdentification` - */ - public CZLocalAccountIdentification getCZLocalAccountIdentification() throws ClassCastException { - return (CZLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `DKLocalAccountIdentification`. If the actual instance is not `DKLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `DKLocalAccountIdentification` - * @throws ClassCastException if the instance is not `DKLocalAccountIdentification` - */ - public DKLocalAccountIdentification getDKLocalAccountIdentification() throws ClassCastException { - return (DKLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `HKLocalAccountIdentification`. If the actual instance is not `HKLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `HKLocalAccountIdentification` - * @throws ClassCastException if the instance is not `HKLocalAccountIdentification` - */ - public HKLocalAccountIdentification getHKLocalAccountIdentification() throws ClassCastException { - return (HKLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `HULocalAccountIdentification`. If the actual instance is not `HULocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `HULocalAccountIdentification` - * @throws ClassCastException if the instance is not `HULocalAccountIdentification` - */ - public HULocalAccountIdentification getHULocalAccountIdentification() throws ClassCastException { - return (HULocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `IbanAccountIdentification`. If the actual instance is not `IbanAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `IbanAccountIdentification` - * @throws ClassCastException if the instance is not `IbanAccountIdentification` - */ - public IbanAccountIdentification getIbanAccountIdentification() throws ClassCastException { - return (IbanAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `NOLocalAccountIdentification`. If the actual instance is not `NOLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `NOLocalAccountIdentification` - * @throws ClassCastException if the instance is not `NOLocalAccountIdentification` - */ - public NOLocalAccountIdentification getNOLocalAccountIdentification() throws ClassCastException { - return (NOLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `NZLocalAccountIdentification`. If the actual instance is not `NZLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `NZLocalAccountIdentification` - * @throws ClassCastException if the instance is not `NZLocalAccountIdentification` - */ - public NZLocalAccountIdentification getNZLocalAccountIdentification() throws ClassCastException { - return (NZLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `NumberAndBicAccountIdentification`. If the actual instance is not `NumberAndBicAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `NumberAndBicAccountIdentification` - * @throws ClassCastException if the instance is not `NumberAndBicAccountIdentification` - */ - public NumberAndBicAccountIdentification getNumberAndBicAccountIdentification() throws ClassCastException { - return (NumberAndBicAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `PLLocalAccountIdentification`. If the actual instance is not `PLLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PLLocalAccountIdentification` - * @throws ClassCastException if the instance is not `PLLocalAccountIdentification` - */ - public PLLocalAccountIdentification getPLLocalAccountIdentification() throws ClassCastException { - return (PLLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `SELocalAccountIdentification`. If the actual instance is not `SELocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `SELocalAccountIdentification` - * @throws ClassCastException if the instance is not `SELocalAccountIdentification` - */ - public SELocalAccountIdentification getSELocalAccountIdentification() throws ClassCastException { - return (SELocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `SGLocalAccountIdentification`. If the actual instance is not `SGLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `SGLocalAccountIdentification` - * @throws ClassCastException if the instance is not `SGLocalAccountIdentification` - */ - public SGLocalAccountIdentification getSGLocalAccountIdentification() throws ClassCastException { - return (SGLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `UKLocalAccountIdentification`. If the actual instance is not `UKLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `UKLocalAccountIdentification` - * @throws ClassCastException if the instance is not `UKLocalAccountIdentification` - */ - public UKLocalAccountIdentification getUKLocalAccountIdentification() throws ClassCastException { - return (UKLocalAccountIdentification)super.getActualInstance(); - } - - /** - * Get the actual instance of `USLocalAccountIdentification`. If the actual instance is not `USLocalAccountIdentification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `USLocalAccountIdentification` - * @throws ClassCastException if the instance is not `USLocalAccountIdentification` - */ - public USLocalAccountIdentification getUSLocalAccountIdentification() throws ClassCastException { - return (USLocalAccountIdentification)super.getActualInstance(); - } - - - /** - * Create an instance of BankAccountV3AccountIdentification given an JSON string - * - * @param jsonString JSON string - * @return An instance of BankAccountV3AccountIdentification - * @throws IOException if the JSON string is invalid with respect to BankAccountV3AccountIdentification - */ - public static BankAccountV3AccountIdentification fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, BankAccountV3AccountIdentification.class); - } - - /** - * Convert an instance of BankAccountV3AccountIdentification to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); - } + @Override + public Map> getSchemas() { + return BankAccountV3AccountIdentification.schemas; + } + /** + * Set the instance that matches the oneOf child schema, check the instance parameter is valid + * against the oneOf child schemas: AULocalAccountIdentification, BRLocalAccountIdentification, + * CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, + * HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, + * NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, + * PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, + * UKLocalAccountIdentification, USLocalAccountIdentification + * + *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a + * composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(AULocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(BRLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(CALocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(CZLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(DKLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(HKLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(HULocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(IbanAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(NOLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(NZLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(NumberAndBicAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(PLLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(SELocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(SGLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(UKLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(USLocalAccountIdentification.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException( + "Invalid instance type. Must be AULocalAccountIdentification, BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification"); + } + + /** + * Get the actual instance, which can be the following: AULocalAccountIdentification, + * BRLocalAccountIdentification, CALocalAccountIdentification, CZLocalAccountIdentification, + * DKLocalAccountIdentification, HKLocalAccountIdentification, HULocalAccountIdentification, + * IbanAccountIdentification, NOLocalAccountIdentification, NZLocalAccountIdentification, + * NumberAndBicAccountIdentification, PLLocalAccountIdentification, SELocalAccountIdentification, + * SGLocalAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification + * + * @return The actual instance (AULocalAccountIdentification, BRLocalAccountIdentification, + * CALocalAccountIdentification, CZLocalAccountIdentification, DKLocalAccountIdentification, + * HKLocalAccountIdentification, HULocalAccountIdentification, IbanAccountIdentification, + * NOLocalAccountIdentification, NZLocalAccountIdentification, + * NumberAndBicAccountIdentification, PLLocalAccountIdentification, + * SELocalAccountIdentification, SGLocalAccountIdentification, UKLocalAccountIdentification, + * USLocalAccountIdentification) + */ + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `AULocalAccountIdentification`. If the actual instance is not + * `AULocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `AULocalAccountIdentification` + * @throws ClassCastException if the instance is not `AULocalAccountIdentification` + */ + public AULocalAccountIdentification getAULocalAccountIdentification() throws ClassCastException { + return (AULocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `BRLocalAccountIdentification`. If the actual instance is not + * `BRLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `BRLocalAccountIdentification` + * @throws ClassCastException if the instance is not `BRLocalAccountIdentification` + */ + public BRLocalAccountIdentification getBRLocalAccountIdentification() throws ClassCastException { + return (BRLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `CALocalAccountIdentification`. If the actual instance is not + * `CALocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `CALocalAccountIdentification` + * @throws ClassCastException if the instance is not `CALocalAccountIdentification` + */ + public CALocalAccountIdentification getCALocalAccountIdentification() throws ClassCastException { + return (CALocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `CZLocalAccountIdentification`. If the actual instance is not + * `CZLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `CZLocalAccountIdentification` + * @throws ClassCastException if the instance is not `CZLocalAccountIdentification` + */ + public CZLocalAccountIdentification getCZLocalAccountIdentification() throws ClassCastException { + return (CZLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `DKLocalAccountIdentification`. If the actual instance is not + * `DKLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `DKLocalAccountIdentification` + * @throws ClassCastException if the instance is not `DKLocalAccountIdentification` + */ + public DKLocalAccountIdentification getDKLocalAccountIdentification() throws ClassCastException { + return (DKLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `HKLocalAccountIdentification`. If the actual instance is not + * `HKLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `HKLocalAccountIdentification` + * @throws ClassCastException if the instance is not `HKLocalAccountIdentification` + */ + public HKLocalAccountIdentification getHKLocalAccountIdentification() throws ClassCastException { + return (HKLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `HULocalAccountIdentification`. If the actual instance is not + * `HULocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `HULocalAccountIdentification` + * @throws ClassCastException if the instance is not `HULocalAccountIdentification` + */ + public HULocalAccountIdentification getHULocalAccountIdentification() throws ClassCastException { + return (HULocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `IbanAccountIdentification`. If the actual instance is not + * `IbanAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `IbanAccountIdentification` + * @throws ClassCastException if the instance is not `IbanAccountIdentification` + */ + public IbanAccountIdentification getIbanAccountIdentification() throws ClassCastException { + return (IbanAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `NOLocalAccountIdentification`. If the actual instance is not + * `NOLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `NOLocalAccountIdentification` + * @throws ClassCastException if the instance is not `NOLocalAccountIdentification` + */ + public NOLocalAccountIdentification getNOLocalAccountIdentification() throws ClassCastException { + return (NOLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `NZLocalAccountIdentification`. If the actual instance is not + * `NZLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `NZLocalAccountIdentification` + * @throws ClassCastException if the instance is not `NZLocalAccountIdentification` + */ + public NZLocalAccountIdentification getNZLocalAccountIdentification() throws ClassCastException { + return (NZLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `NumberAndBicAccountIdentification`. If the actual instance is not + * `NumberAndBicAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `NumberAndBicAccountIdentification` + * @throws ClassCastException if the instance is not `NumberAndBicAccountIdentification` + */ + public NumberAndBicAccountIdentification getNumberAndBicAccountIdentification() + throws ClassCastException { + return (NumberAndBicAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `PLLocalAccountIdentification`. If the actual instance is not + * `PLLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `PLLocalAccountIdentification` + * @throws ClassCastException if the instance is not `PLLocalAccountIdentification` + */ + public PLLocalAccountIdentification getPLLocalAccountIdentification() throws ClassCastException { + return (PLLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `SELocalAccountIdentification`. If the actual instance is not + * `SELocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `SELocalAccountIdentification` + * @throws ClassCastException if the instance is not `SELocalAccountIdentification` + */ + public SELocalAccountIdentification getSELocalAccountIdentification() throws ClassCastException { + return (SELocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `SGLocalAccountIdentification`. If the actual instance is not + * `SGLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `SGLocalAccountIdentification` + * @throws ClassCastException if the instance is not `SGLocalAccountIdentification` + */ + public SGLocalAccountIdentification getSGLocalAccountIdentification() throws ClassCastException { + return (SGLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `UKLocalAccountIdentification`. If the actual instance is not + * `UKLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `UKLocalAccountIdentification` + * @throws ClassCastException if the instance is not `UKLocalAccountIdentification` + */ + public UKLocalAccountIdentification getUKLocalAccountIdentification() throws ClassCastException { + return (UKLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Get the actual instance of `USLocalAccountIdentification`. If the actual instance is not + * `USLocalAccountIdentification`, the ClassCastException will be thrown. + * + * @return The actual instance of `USLocalAccountIdentification` + * @throws ClassCastException if the instance is not `USLocalAccountIdentification` + */ + public USLocalAccountIdentification getUSLocalAccountIdentification() throws ClassCastException { + return (USLocalAccountIdentification) super.getActualInstance(); + } + + /** + * Create an instance of BankAccountV3AccountIdentification given an JSON string + * + * @param jsonString JSON string + * @return An instance of BankAccountV3AccountIdentification + * @throws IOException if the JSON string is invalid with respect to + * BankAccountV3AccountIdentification + */ + public static BankAccountV3AccountIdentification fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, BankAccountV3AccountIdentification.class); + } + + /** + * Convert an instance of BankAccountV3AccountIdentification to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/BankCategoryData.java b/src/main/java/com/adyen/model/transferwebhooks/BankCategoryData.java index 236a253fd..12d2f75db 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/BankCategoryData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/BankCategoryData.java @@ -2,42 +2,42 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * BankCategoryData - */ -@JsonPropertyOrder({ - BankCategoryData.JSON_PROPERTY_PRIORITY, - BankCategoryData.JSON_PROPERTY_TYPE -}) - +/** BankCategoryData */ +@JsonPropertyOrder({BankCategoryData.JSON_PROPERTY_PRIORITY, BankCategoryData.JSON_PROPERTY_TYPE}) public class BankCategoryData { /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the + * fees that you have to pay. Required for transfers with `category` **bank**. Possible + * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer + * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * + * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). */ public enum PriorityEnum { - CROSSBORDER(String.valueOf("crossBorder")), FAST(String.valueOf("fast")), @@ -55,7 +55,7 @@ public enum PriorityEnum { private String value; PriorityEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -76,7 +76,11 @@ public static PriorityEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PriorityEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PriorityEnum.values())); + LOG.warning( + "PriorityEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PriorityEnum.values())); return null; } } @@ -84,11 +88,8 @@ public static PriorityEnum fromValue(String value) { public static final String JSON_PROPERTY_PRIORITY = "priority"; private PriorityEnum priority; - /** - * **bank** - */ + /** **bank** */ public enum TypeEnum { - BANK(String.valueOf("bank")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -96,7 +97,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -117,7 +118,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -125,13 +130,32 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public BankCategoryData() { - } + public BankCategoryData() {} /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the + * fees that you have to pay. Required for transfers with `category` **bank**. Possible + * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer + * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * + * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). * - * @param priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * @param priority The priority for the bank transfer. This sets the speed at which the transfer + * is sent and the fees that you have to pay. Required for transfers with `category` + * **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a + * faster way to transfer funds, but the fees are higher. Recommended for high-priority, + * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the + * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for + * instant funds transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). * @return the current {@code BankCategoryData} instance, allowing for method chaining */ public BankCategoryData priority(PriorityEnum priority) { @@ -140,8 +164,29 @@ public BankCategoryData priority(PriorityEnum priority) { } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). - * @return priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the + * fees that you have to pay. Required for transfers with `category` **bank**. Possible + * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer + * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * + * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). + * + * @return priority The priority for the bank transfer. This sets the speed at which the transfer + * is sent and the fees that you have to pay. Required for transfers with `category` + * **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a + * faster way to transfer funds, but the fees are higher. Recommended for high-priority, + * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the + * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for + * instant funds transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). */ @JsonProperty(JSON_PROPERTY_PRIORITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,9 +195,29 @@ public PriorityEnum getPriority() { } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the + * fees that you have to pay. Required for transfers with `category` **bank**. Possible + * values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer + * funds, but the fees are higher. Recommended for high-priority, low-value transactions. * + * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). * - * @param priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * @param priority The priority for the bank transfer. This sets the speed at which the transfer + * is sent and the fees that you have to pay. Required for transfers with `category` + * **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a + * faster way to transfer funds, but the fees are higher. Recommended for high-priority, + * low-value transactions. * **wire**: the fastest way to transfer funds, but this has the + * highest fees. Recommended for high-priority, high-value transactions. * **instant**: for + * instant funds transfers within the United States and in [SEPA + * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * + * **crossBorder**: for high-value transfers to a recipient in a different country. * + * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * number/IBAN). */ @JsonProperty(JSON_PROPERTY_PRIORITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,6 +238,7 @@ public BankCategoryData type(TypeEnum type) { /** * **bank** + * * @return type **bank** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -192,9 +258,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this BankCategoryData object is equal to o. - */ + /** Return true if this BankCategoryData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -204,8 +268,8 @@ public boolean equals(Object o) { return false; } BankCategoryData bankCategoryData = (BankCategoryData) o; - return Objects.equals(this.priority, bankCategoryData.priority) && - Objects.equals(this.type, bankCategoryData.type); + return Objects.equals(this.priority, bankCategoryData.priority) + && Objects.equals(this.type, bankCategoryData.type); } @Override @@ -224,8 +288,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -234,7 +297,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of BankCategoryData given an JSON string * * @param jsonString JSON string @@ -244,11 +307,12 @@ private String toIndentedString(Object o) { public static BankCategoryData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, BankCategoryData.class); } -/** - * Convert an instance of BankCategoryData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of BankCategoryData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/CALocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/CALocalAccountIdentification.java index b3c87f808..e1c0ce47d 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/CALocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/CALocalAccountIdentification.java @@ -2,31 +2,26 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * CALocalAccountIdentification - */ +/** CALocalAccountIdentification */ @JsonPropertyOrder({ CALocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, CALocalAccountIdentification.JSON_PROPERTY_ACCOUNT_TYPE, @@ -34,16 +29,14 @@ CALocalAccountIdentification.JSON_PROPERTY_TRANSIT_NUMBER, CALocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class CALocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ public enum AccountTypeEnum { - CHECKING(String.valueOf("checking")), SAVINGS(String.valueOf("savings")); @@ -53,7 +46,7 @@ public enum AccountTypeEnum { private String value; AccountTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -74,7 +67,11 @@ public static AccountTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AccountTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AccountTypeEnum.values())); + LOG.warning( + "AccountTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AccountTypeEnum.values())); return null; } } @@ -88,11 +85,8 @@ public static AccountTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANSIT_NUMBER = "transitNumber"; private String transitNumber; - /** - * **caLocal** - */ + /** **caLocal** */ public enum TypeEnum { - CALOCAL(String.valueOf("caLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -100,7 +94,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -121,7 +115,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -129,8 +127,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CALocalAccountIdentification() { - } + public CALocalAccountIdentification() {} /** * The 5- to 12-digit bank account number, without separators or whitespace. @@ -145,6 +142,7 @@ public CALocalAccountIdentification accountNumber(String accountNumber) { /** * The 5- to 12-digit bank account number, without separators or whitespace. + * * @return accountNumber The 5- to 12-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -165,9 +163,10 @@ public void setAccountNumber(String accountNumber) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. + * Defaults to **checking**. * @return the current {@code CALocalAccountIdentification} instance, allowing for method chaining */ public CALocalAccountIdentification accountType(AccountTypeEnum accountType) { @@ -176,8 +175,10 @@ public CALocalAccountIdentification accountType(AccountTypeEnum accountType) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. - * @return accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * + * @return accountType The bank account type. Possible values: **checking** or **savings**. + * Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,9 +187,10 @@ public AccountTypeEnum getAccountType() { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. + * Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -209,6 +211,7 @@ public CALocalAccountIdentification institutionNumber(String institutionNumber) /** * The 3-digit institution number, without separators or whitespace. + * * @return institutionNumber The 3-digit institution number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_INSTITUTION_NUMBER) @@ -241,6 +244,7 @@ public CALocalAccountIdentification transitNumber(String transitNumber) { /** * The 5-digit transit number, without separators or whitespace. + * * @return transitNumber The 5-digit transit number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_TRANSIT_NUMBER) @@ -273,6 +277,7 @@ public CALocalAccountIdentification type(TypeEnum type) { /** * **caLocal** + * * @return type **caLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -292,9 +297,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this CALocalAccountIdentification object is equal to o. - */ + /** Return true if this CALocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -304,11 +307,11 @@ public boolean equals(Object o) { return false; } CALocalAccountIdentification caLocalAccountIdentification = (CALocalAccountIdentification) o; - return Objects.equals(this.accountNumber, caLocalAccountIdentification.accountNumber) && - Objects.equals(this.accountType, caLocalAccountIdentification.accountType) && - Objects.equals(this.institutionNumber, caLocalAccountIdentification.institutionNumber) && - Objects.equals(this.transitNumber, caLocalAccountIdentification.transitNumber) && - Objects.equals(this.type, caLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, caLocalAccountIdentification.accountNumber) + && Objects.equals(this.accountType, caLocalAccountIdentification.accountType) + && Objects.equals(this.institutionNumber, caLocalAccountIdentification.institutionNumber) + && Objects.equals(this.transitNumber, caLocalAccountIdentification.transitNumber) + && Objects.equals(this.type, caLocalAccountIdentification.type); } @Override @@ -330,8 +333,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -340,21 +342,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CALocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of CALocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to CALocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CALocalAccountIdentification */ - public static CALocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static CALocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CALocalAccountIdentification.class); } -/** - * Convert an instance of CALocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CALocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/CZLocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/CZLocalAccountIdentification.java index 08a7516f7..a46f58f0b 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/CZLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/CZLocalAccountIdentification.java @@ -2,37 +2,31 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * CZLocalAccountIdentification - */ +/** CZLocalAccountIdentification */ @JsonPropertyOrder({ CZLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, CZLocalAccountIdentification.JSON_PROPERTY_BANK_CODE, CZLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class CZLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -40,11 +34,8 @@ public class CZLocalAccountIdentification { public static final String JSON_PROPERTY_BANK_CODE = "bankCode"; private String bankCode; - /** - * **czLocal** - */ + /** **czLocal** */ public enum TypeEnum { - CZLOCAL(String.valueOf("czLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +43,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +64,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,13 +76,20 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public CZLocalAccountIdentification() { - } + public CZLocalAccountIdentification() {} /** - * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) + * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional + * prefix (předčíslí). - The required second part (základní část) which must be at least two + * non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - + * **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, + * normalized) * - * @param accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) + * @param accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following + * format: - The optional prefix (předčíslí). - The required second part (základní část) which + * must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** + * (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** + * (without prefix, normalized) * @return the current {@code CZLocalAccountIdentification} instance, allowing for method chaining */ public CZLocalAccountIdentification accountNumber(String accountNumber) { @@ -96,8 +98,17 @@ public CZLocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) - * @return accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) + * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional + * prefix (předčíslí). - The required second part (základní část) which must be at least two + * non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - + * **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, + * normalized) + * + * @return accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following + * format: - The optional prefix (předčíslí). - The required second part (základní část) which + * must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** + * (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** + * (without prefix, normalized) */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +117,17 @@ public String getAccountNumber() { } /** - * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) + * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional + * prefix (předčíslí). - The required second part (základní část) which must be at least two + * non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - + * **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, + * normalized) * - * @param accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) + * @param accountNumber The 2- to 16-digit bank account number (Číslo účtu) in the following + * format: - The optional prefix (předčíslí). - The required second part (základní část) which + * must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** + * (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** + * (without prefix, normalized) */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,6 +148,7 @@ public CZLocalAccountIdentification bankCode(String bankCode) { /** * The 4-digit bank code (Kód banky), without separators or whitespace. + * * @return bankCode The 4-digit bank code (Kód banky), without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_BANK_CODE) @@ -161,6 +181,7 @@ public CZLocalAccountIdentification type(TypeEnum type) { /** * **czLocal** + * * @return type **czLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +201,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this CZLocalAccountIdentification object is equal to o. - */ + /** Return true if this CZLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +211,9 @@ public boolean equals(Object o) { return false; } CZLocalAccountIdentification czLocalAccountIdentification = (CZLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, czLocalAccountIdentification.accountNumber) && - Objects.equals(this.bankCode, czLocalAccountIdentification.bankCode) && - Objects.equals(this.type, czLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, czLocalAccountIdentification.accountNumber) + && Objects.equals(this.bankCode, czLocalAccountIdentification.bankCode) + && Objects.equals(this.type, czLocalAccountIdentification.type); } @Override @@ -214,8 +233,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +242,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CZLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of CZLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to CZLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CZLocalAccountIdentification */ - public static CZLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static CZLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CZLocalAccountIdentification.class); } -/** - * Convert an instance of CZLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CZLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/Card.java b/src/main/java/com/adyen/model/transferwebhooks/Card.java index 2f4a5472f..f7fe6a73b 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/Card.java +++ b/src/main/java/com/adyen/model/transferwebhooks/Card.java @@ -2,38 +2,23 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transferwebhooks.CardIdentification; -import com.adyen.model.transferwebhooks.PartyIdentification; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Card - */ -@JsonPropertyOrder({ - Card.JSON_PROPERTY_CARD_HOLDER, - Card.JSON_PROPERTY_CARD_IDENTIFICATION -}) - +/** Card */ +@JsonPropertyOrder({Card.JSON_PROPERTY_CARD_HOLDER, Card.JSON_PROPERTY_CARD_IDENTIFICATION}) public class Card { public static final String JSON_PROPERTY_CARD_HOLDER = "cardHolder"; private PartyIdentification cardHolder; @@ -41,13 +26,12 @@ public class Card { public static final String JSON_PROPERTY_CARD_IDENTIFICATION = "cardIdentification"; private CardIdentification cardIdentification; - public Card() { - } + public Card() {} /** * cardHolder * - * @param cardHolder + * @param cardHolder * @return the current {@code Card} instance, allowing for method chaining */ public Card cardHolder(PartyIdentification cardHolder) { @@ -57,7 +41,8 @@ public Card cardHolder(PartyIdentification cardHolder) { /** * Get cardHolder - * @return cardHolder + * + * @return cardHolder */ @JsonProperty(JSON_PROPERTY_CARD_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,7 +53,7 @@ public PartyIdentification getCardHolder() { /** * cardHolder * - * @param cardHolder + * @param cardHolder */ @JsonProperty(JSON_PROPERTY_CARD_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,7 +64,7 @@ public void setCardHolder(PartyIdentification cardHolder) { /** * cardIdentification * - * @param cardIdentification + * @param cardIdentification * @return the current {@code Card} instance, allowing for method chaining */ public Card cardIdentification(CardIdentification cardIdentification) { @@ -89,7 +74,8 @@ public Card cardIdentification(CardIdentification cardIdentification) { /** * Get cardIdentification - * @return cardIdentification + * + * @return cardIdentification */ @JsonProperty(JSON_PROPERTY_CARD_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,7 +86,7 @@ public CardIdentification getCardIdentification() { /** * cardIdentification * - * @param cardIdentification + * @param cardIdentification */ @JsonProperty(JSON_PROPERTY_CARD_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,9 +94,7 @@ public void setCardIdentification(CardIdentification cardIdentification) { this.cardIdentification = cardIdentification; } - /** - * Return true if this Card object is equal to o. - */ + /** Return true if this Card object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -120,8 +104,8 @@ public boolean equals(Object o) { return false; } Card card = (Card) o; - return Objects.equals(this.cardHolder, card.cardHolder) && - Objects.equals(this.cardIdentification, card.cardIdentification); + return Objects.equals(this.cardHolder, card.cardHolder) + && Objects.equals(this.cardIdentification, card.cardIdentification); } @Override @@ -140,8 +124,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -150,7 +133,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Card given an JSON string * * @param jsonString JSON string @@ -160,11 +143,12 @@ private String toIndentedString(Object o) { public static Card fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Card.class); } -/** - * Convert an instance of Card to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Card to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/CardIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/CardIdentification.java index 0f39df3b4..5b6e43a02 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/CardIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/CardIdentification.java @@ -2,31 +2,22 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * CardIdentification - */ +/** CardIdentification */ @JsonPropertyOrder({ CardIdentification.JSON_PROPERTY_EXPIRY_MONTH, CardIdentification.JSON_PROPERTY_EXPIRY_YEAR, @@ -36,7 +27,6 @@ CardIdentification.JSON_PROPERTY_START_YEAR, CardIdentification.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID }) - public class CardIdentification { public static final String JSON_PROPERTY_EXPIRY_MONTH = "expiryMonth"; private String expiryMonth; @@ -59,13 +49,14 @@ public class CardIdentification { public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; - public CardIdentification() { - } + public CardIdentification() {} /** - * The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November + * The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. + * For example: * 03 = March * 11 = November * - * @param expiryMonth The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November + * @param expiryMonth The expiry month of the card. Format: two digits. Add a leading zero for + * single-digit months. For example: * 03 = March * 11 = November * @return the current {@code CardIdentification} instance, allowing for method chaining */ public CardIdentification expiryMonth(String expiryMonth) { @@ -74,8 +65,11 @@ public CardIdentification expiryMonth(String expiryMonth) { } /** - * The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November - * @return expiryMonth The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November + * The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. + * For example: * 03 = March * 11 = November + * + * @return expiryMonth The expiry month of the card. Format: two digits. Add a leading zero for + * single-digit months. For example: * 03 = March * 11 = November */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -84,9 +78,11 @@ public String getExpiryMonth() { } /** - * The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November + * The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. + * For example: * 03 = March * 11 = November * - * @param expiryMonth The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November + * @param expiryMonth The expiry month of the card. Format: two digits. Add a leading zero for + * single-digit months. For example: * 03 = March * 11 = November */ @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -95,9 +91,9 @@ public void setExpiryMonth(String expiryMonth) { } /** - * The expiry year of the card. Format: four digits. For example: 2020 + * The expiry year of the card. Format: four digits. For example: 2020 * - * @param expiryYear The expiry year of the card. Format: four digits. For example: 2020 + * @param expiryYear The expiry year of the card. Format: four digits. For example: 2020 * @return the current {@code CardIdentification} instance, allowing for method chaining */ public CardIdentification expiryYear(String expiryYear) { @@ -106,8 +102,9 @@ public CardIdentification expiryYear(String expiryYear) { } /** - * The expiry year of the card. Format: four digits. For example: 2020 - * @return expiryYear The expiry year of the card. Format: four digits. For example: 2020 + * The expiry year of the card. Format: four digits. For example: 2020 + * + * @return expiryYear The expiry year of the card. Format: four digits. For example: 2020 */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,9 +113,9 @@ public String getExpiryYear() { } /** - * The expiry year of the card. Format: four digits. For example: 2020 + * The expiry year of the card. Format: four digits. For example: 2020 * - * @param expiryYear The expiry year of the card. Format: four digits. For example: 2020 + * @param expiryYear The expiry year of the card. Format: four digits. For example: 2020 */ @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,6 +136,7 @@ public CardIdentification issueNumber(String issueNumber) { /** * The issue number of the card. Applies only to some UK debit cards. + * * @return issueNumber The issue number of the card. Applies only to some UK debit cards. */ @JsonProperty(JSON_PROPERTY_ISSUE_NUMBER) @@ -159,9 +157,11 @@ public void setIssueNumber(String issueNumber) { } /** - * The card number without any separators. For security, the response only includes the last four digits of the card number. + * The card number without any separators. For security, the response only includes the last four + * digits of the card number. * - * @param number The card number without any separators. For security, the response only includes the last four digits of the card number. + * @param number The card number without any separators. For security, the response only includes + * the last four digits of the card number. * @return the current {@code CardIdentification} instance, allowing for method chaining */ public CardIdentification number(String number) { @@ -170,8 +170,11 @@ public CardIdentification number(String number) { } /** - * The card number without any separators. For security, the response only includes the last four digits of the card number. - * @return number The card number without any separators. For security, the response only includes the last four digits of the card number. + * The card number without any separators. For security, the response only includes the last four + * digits of the card number. + * + * @return number The card number without any separators. For security, the response only includes + * the last four digits of the card number. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -180,9 +183,11 @@ public String getNumber() { } /** - * The card number without any separators. For security, the response only includes the last four digits of the card number. + * The card number without any separators. For security, the response only includes the last four + * digits of the card number. * - * @param number The card number without any separators. For security, the response only includes the last four digits of the card number. + * @param number The card number without any separators. For security, the response only includes + * the last four digits of the card number. */ @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,9 +196,12 @@ public void setNumber(String number) { } /** - * The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November + * The month when the card was issued. Applies only to some UK debit cards. Format: two digits. + * Add a leading zero for single-digit months. For example: * 03 = March * 11 = November * - * @param startMonth The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November + * @param startMonth The month when the card was issued. Applies only to some UK debit cards. + * Format: two digits. Add a leading zero for single-digit months. For example: * 03 = + * March * 11 = November * @return the current {@code CardIdentification} instance, allowing for method chaining */ public CardIdentification startMonth(String startMonth) { @@ -202,8 +210,12 @@ public CardIdentification startMonth(String startMonth) { } /** - * The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November - * @return startMonth The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November + * The month when the card was issued. Applies only to some UK debit cards. Format: two digits. + * Add a leading zero for single-digit months. For example: * 03 = March * 11 = November + * + * @return startMonth The month when the card was issued. Applies only to some UK debit cards. + * Format: two digits. Add a leading zero for single-digit months. For example: * 03 = + * March * 11 = November */ @JsonProperty(JSON_PROPERTY_START_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -212,9 +224,12 @@ public String getStartMonth() { } /** - * The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November + * The month when the card was issued. Applies only to some UK debit cards. Format: two digits. + * Add a leading zero for single-digit months. For example: * 03 = March * 11 = November * - * @param startMonth The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November + * @param startMonth The month when the card was issued. Applies only to some UK debit cards. + * Format: two digits. Add a leading zero for single-digit months. For example: * 03 = + * March * 11 = November */ @JsonProperty(JSON_PROPERTY_START_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,9 +238,11 @@ public void setStartMonth(String startMonth) { } /** - * The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020 + * The year when the card was issued. Applies only to some UK debit cards. Format: four digits. + * For example: 2020 * - * @param startYear The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020 + * @param startYear The year when the card was issued. Applies only to some UK debit cards. + * Format: four digits. For example: 2020 * @return the current {@code CardIdentification} instance, allowing for method chaining */ public CardIdentification startYear(String startYear) { @@ -234,8 +251,11 @@ public CardIdentification startYear(String startYear) { } /** - * The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020 - * @return startYear The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020 + * The year when the card was issued. Applies only to some UK debit cards. Format: four digits. + * For example: 2020 + * + * @return startYear The year when the card was issued. Applies only to some UK debit cards. + * Format: four digits. For example: 2020 */ @JsonProperty(JSON_PROPERTY_START_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,9 +264,11 @@ public String getStartYear() { } /** - * The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020 + * The year when the card was issued. Applies only to some UK debit cards. Format: four digits. + * For example: 2020 * - * @param startYear The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020 + * @param startYear The year when the card was issued. Applies only to some UK debit cards. + * Format: four digits. For example: 2020 */ @JsonProperty(JSON_PROPERTY_START_YEAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -255,9 +277,13 @@ public void setStartYear(String startYear) { } /** - * The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty. + * The unique + * [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) + * created to identify the counterparty. * - * @param storedPaymentMethodId The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty. + * @param storedPaymentMethodId The unique + * [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) + * created to identify the counterparty. * @return the current {@code CardIdentification} instance, allowing for method chaining */ public CardIdentification storedPaymentMethodId(String storedPaymentMethodId) { @@ -266,8 +292,13 @@ public CardIdentification storedPaymentMethodId(String storedPaymentMethodId) { } /** - * The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty. - * @return storedPaymentMethodId The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty. + * The unique + * [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) + * created to identify the counterparty. + * + * @return storedPaymentMethodId The unique + * [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) + * created to identify the counterparty. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -276,9 +307,13 @@ public String getStoredPaymentMethodId() { } /** - * The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty. + * The unique + * [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) + * created to identify the counterparty. * - * @param storedPaymentMethodId The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty. + * @param storedPaymentMethodId The unique + * [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) + * created to identify the counterparty. */ @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -286,9 +321,7 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) { this.storedPaymentMethodId = storedPaymentMethodId; } - /** - * Return true if this CardIdentification object is equal to o. - */ + /** Return true if this CardIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -298,18 +331,19 @@ public boolean equals(Object o) { return false; } CardIdentification cardIdentification = (CardIdentification) o; - return Objects.equals(this.expiryMonth, cardIdentification.expiryMonth) && - Objects.equals(this.expiryYear, cardIdentification.expiryYear) && - Objects.equals(this.issueNumber, cardIdentification.issueNumber) && - Objects.equals(this.number, cardIdentification.number) && - Objects.equals(this.startMonth, cardIdentification.startMonth) && - Objects.equals(this.startYear, cardIdentification.startYear) && - Objects.equals(this.storedPaymentMethodId, cardIdentification.storedPaymentMethodId); + return Objects.equals(this.expiryMonth, cardIdentification.expiryMonth) + && Objects.equals(this.expiryYear, cardIdentification.expiryYear) + && Objects.equals(this.issueNumber, cardIdentification.issueNumber) + && Objects.equals(this.number, cardIdentification.number) + && Objects.equals(this.startMonth, cardIdentification.startMonth) + && Objects.equals(this.startYear, cardIdentification.startYear) + && Objects.equals(this.storedPaymentMethodId, cardIdentification.storedPaymentMethodId); } @Override public int hashCode() { - return Objects.hash(expiryMonth, expiryYear, issueNumber, number, startMonth, startYear, storedPaymentMethodId); + return Objects.hash( + expiryMonth, expiryYear, issueNumber, number, startMonth, startYear, storedPaymentMethodId); } @Override @@ -322,14 +356,15 @@ public String toString() { sb.append(" number: ").append(toIndentedString(number)).append("\n"); sb.append(" startMonth: ").append(toIndentedString(startMonth)).append("\n"); sb.append(" startYear: ").append(toIndentedString(startYear)).append("\n"); - sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -338,21 +373,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CardIdentification given an JSON string * * @param jsonString JSON string * @return An instance of CardIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to CardIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * CardIdentification */ public static CardIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CardIdentification.class); } -/** - * Convert an instance of CardIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CardIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/ConfirmationTrackingData.java b/src/main/java/com/adyen/model/transferwebhooks/ConfirmationTrackingData.java index 7e718096b..9cd799310 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/ConfirmationTrackingData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/ConfirmationTrackingData.java @@ -2,42 +2,36 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * ConfirmationTrackingData - */ +/** ConfirmationTrackingData */ @JsonPropertyOrder({ ConfirmationTrackingData.JSON_PROPERTY_STATUS, ConfirmationTrackingData.JSON_PROPERTY_TYPE }) - public class ConfirmationTrackingData { /** - * The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. + * The status of the transfer. Possible values: - **credited**: the funds are credited to your + * user's transfer instrument or bank account. */ public enum StatusEnum { - CREDITED(String.valueOf("credited")); private static final Logger LOG = Logger.getLogger(StatusEnum.class.getName()); @@ -45,7 +39,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -66,7 +60,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -75,10 +73,10 @@ public static StatusEnum fromValue(String value) { private StatusEnum status; /** - * The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. + * The type of the tracking event. Possible values: - **confirmation**: the transfer passed + * Adyen's internal review. */ public enum TypeEnum { - CONFIRMATION(String.valueOf("confirmation")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -86,7 +84,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -107,7 +105,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -115,13 +117,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public ConfirmationTrackingData() { - } + public ConfirmationTrackingData() {} /** - * The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. + * The status of the transfer. Possible values: - **credited**: the funds are credited to your + * user's transfer instrument or bank account. * - * @param status The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. + * @param status The status of the transfer. Possible values: - **credited**: the funds are + * credited to your user's transfer instrument or bank account. * @return the current {@code ConfirmationTrackingData} instance, allowing for method chaining */ public ConfirmationTrackingData status(StatusEnum status) { @@ -130,8 +133,11 @@ public ConfirmationTrackingData status(StatusEnum status) { } /** - * The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. - * @return status The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. + * The status of the transfer. Possible values: - **credited**: the funds are credited to your + * user's transfer instrument or bank account. + * + * @return status The status of the transfer. Possible values: - **credited**: the funds are + * credited to your user's transfer instrument or bank account. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,9 +146,11 @@ public StatusEnum getStatus() { } /** - * The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. + * The status of the transfer. Possible values: - **credited**: the funds are credited to your + * user's transfer instrument or bank account. * - * @param status The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. + * @param status The status of the transfer. Possible values: - **credited**: the funds are + * credited to your user's transfer instrument or bank account. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -151,9 +159,11 @@ public void setStatus(StatusEnum status) { } /** - * The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. + * The type of the tracking event. Possible values: - **confirmation**: the transfer passed + * Adyen's internal review. * - * @param type The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. + * @param type The type of the tracking event. Possible values: - **confirmation**: the transfer + * passed Adyen's internal review. * @return the current {@code ConfirmationTrackingData} instance, allowing for method chaining */ public ConfirmationTrackingData type(TypeEnum type) { @@ -162,8 +172,11 @@ public ConfirmationTrackingData type(TypeEnum type) { } /** - * The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. - * @return type The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. + * The type of the tracking event. Possible values: - **confirmation**: the transfer passed + * Adyen's internal review. + * + * @return type The type of the tracking event. Possible values: - **confirmation**: the transfer + * passed Adyen's internal review. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -172,9 +185,11 @@ public TypeEnum getType() { } /** - * The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. + * The type of the tracking event. Possible values: - **confirmation**: the transfer passed + * Adyen's internal review. * - * @param type The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. + * @param type The type of the tracking event. Possible values: - **confirmation**: the transfer + * passed Adyen's internal review. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,9 +197,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this ConfirmationTrackingData object is equal to o. - */ + /** Return true if this ConfirmationTrackingData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -194,8 +207,8 @@ public boolean equals(Object o) { return false; } ConfirmationTrackingData confirmationTrackingData = (ConfirmationTrackingData) o; - return Objects.equals(this.status, confirmationTrackingData.status) && - Objects.equals(this.type, confirmationTrackingData.type); + return Objects.equals(this.status, confirmationTrackingData.status) + && Objects.equals(this.type, confirmationTrackingData.type); } @Override @@ -214,8 +227,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +236,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ConfirmationTrackingData given an JSON string * * @param jsonString JSON string * @return An instance of ConfirmationTrackingData - * @throws JsonProcessingException if the JSON string is invalid with respect to ConfirmationTrackingData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ConfirmationTrackingData */ - public static ConfirmationTrackingData fromJson(String jsonString) throws JsonProcessingException { + public static ConfirmationTrackingData fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ConfirmationTrackingData.class); } -/** - * Convert an instance of ConfirmationTrackingData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ConfirmationTrackingData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/CounterpartyV3.java b/src/main/java/com/adyen/model/transferwebhooks/CounterpartyV3.java index e8d76c303..bb8a1a793 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/CounterpartyV3.java +++ b/src/main/java/com/adyen/model/transferwebhooks/CounterpartyV3.java @@ -2,34 +2,22 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transferwebhooks.BankAccountV3; -import com.adyen.model.transferwebhooks.Card; -import com.adyen.model.transferwebhooks.MerchantData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * CounterpartyV3 - */ +/** CounterpartyV3 */ @JsonPropertyOrder({ CounterpartyV3.JSON_PROPERTY_BALANCE_ACCOUNT_ID, CounterpartyV3.JSON_PROPERTY_BANK_ACCOUNT, @@ -37,7 +25,6 @@ CounterpartyV3.JSON_PROPERTY_MERCHANT, CounterpartyV3.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID }) - public class CounterpartyV3 { public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; @@ -54,13 +41,14 @@ public class CounterpartyV3 { public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_ID = "transferInstrumentId"; private String transferInstrumentId; - public CounterpartyV3() { - } + public CounterpartyV3() {} /** - * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * The unique identifier of the counterparty [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). * - * @param balanceAccountId The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * @param balanceAccountId The unique identifier of the counterparty [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). * @return the current {@code CounterpartyV3} instance, allowing for method chaining */ public CounterpartyV3 balanceAccountId(String balanceAccountId) { @@ -69,8 +57,11 @@ public CounterpartyV3 balanceAccountId(String balanceAccountId) { } /** - * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). - * @return balanceAccountId The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * The unique identifier of the counterparty [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * + * @return balanceAccountId The unique identifier of the counterparty [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,9 +70,11 @@ public String getBalanceAccountId() { } /** - * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * The unique identifier of the counterparty [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). * - * @param balanceAccountId The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * @param balanceAccountId The unique identifier of the counterparty [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -92,7 +85,7 @@ public void setBalanceAccountId(String balanceAccountId) { /** * bankAccount * - * @param bankAccount + * @param bankAccount * @return the current {@code CounterpartyV3} instance, allowing for method chaining */ public CounterpartyV3 bankAccount(BankAccountV3 bankAccount) { @@ -102,7 +95,8 @@ public CounterpartyV3 bankAccount(BankAccountV3 bankAccount) { /** * Get bankAccount - * @return bankAccount + * + * @return bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,7 +107,7 @@ public BankAccountV3 getBankAccount() { /** * bankAccount * - * @param bankAccount + * @param bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,7 +118,7 @@ public void setBankAccount(BankAccountV3 bankAccount) { /** * card * - * @param card + * @param card * @return the current {@code CounterpartyV3} instance, allowing for method chaining */ public CounterpartyV3 card(Card card) { @@ -134,7 +128,8 @@ public CounterpartyV3 card(Card card) { /** * Get card - * @return card + * + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,7 +140,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,7 +151,7 @@ public void setCard(Card card) { /** * merchant * - * @param merchant + * @param merchant * @return the current {@code CounterpartyV3} instance, allowing for method chaining */ public CounterpartyV3 merchant(MerchantData merchant) { @@ -166,7 +161,8 @@ public CounterpartyV3 merchant(MerchantData merchant) { /** * Get merchant - * @return merchant + * + * @return merchant */ @JsonProperty(JSON_PROPERTY_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,7 +173,7 @@ public MerchantData getMerchant() { /** * merchant * - * @param merchant + * @param merchant */ @JsonProperty(JSON_PROPERTY_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,9 +182,11 @@ public void setMerchant(MerchantData merchant) { } /** - * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * The unique identifier of the counterparty [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). * - * @param transferInstrumentId The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * @param transferInstrumentId The unique identifier of the counterparty [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). * @return the current {@code CounterpartyV3} instance, allowing for method chaining */ public CounterpartyV3 transferInstrumentId(String transferInstrumentId) { @@ -197,8 +195,11 @@ public CounterpartyV3 transferInstrumentId(String transferInstrumentId) { } /** - * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). - * @return transferInstrumentId The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * The unique identifier of the counterparty [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * + * @return transferInstrumentId The unique identifier of the counterparty [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -207,9 +208,11 @@ public String getTransferInstrumentId() { } /** - * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * The unique identifier of the counterparty [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). * - * @param transferInstrumentId The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * @param transferInstrumentId The unique identifier of the counterparty [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -217,9 +220,7 @@ public void setTransferInstrumentId(String transferInstrumentId) { this.transferInstrumentId = transferInstrumentId; } - /** - * Return true if this CounterpartyV3 object is equal to o. - */ + /** Return true if this CounterpartyV3 object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -229,11 +230,11 @@ public boolean equals(Object o) { return false; } CounterpartyV3 counterpartyV3 = (CounterpartyV3) o; - return Objects.equals(this.balanceAccountId, counterpartyV3.balanceAccountId) && - Objects.equals(this.bankAccount, counterpartyV3.bankAccount) && - Objects.equals(this.card, counterpartyV3.card) && - Objects.equals(this.merchant, counterpartyV3.merchant) && - Objects.equals(this.transferInstrumentId, counterpartyV3.transferInstrumentId); + return Objects.equals(this.balanceAccountId, counterpartyV3.balanceAccountId) + && Objects.equals(this.bankAccount, counterpartyV3.bankAccount) + && Objects.equals(this.card, counterpartyV3.card) + && Objects.equals(this.merchant, counterpartyV3.merchant) + && Objects.equals(this.transferInstrumentId, counterpartyV3.transferInstrumentId); } @Override @@ -249,14 +250,15 @@ public String toString() { sb.append(" bankAccount: ").append(toIndentedString(bankAccount)).append("\n"); sb.append(" card: ").append(toIndentedString(card)).append("\n"); sb.append(" merchant: ").append(toIndentedString(merchant)).append("\n"); - sb.append(" transferInstrumentId: ").append(toIndentedString(transferInstrumentId)).append("\n"); + sb.append(" transferInstrumentId: ") + .append(toIndentedString(transferInstrumentId)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -265,7 +267,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of CounterpartyV3 given an JSON string * * @param jsonString JSON string @@ -275,11 +277,12 @@ private String toIndentedString(Object o) { public static CounterpartyV3 fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, CounterpartyV3.class); } -/** - * Convert an instance of CounterpartyV3 to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of CounterpartyV3 to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/DKLocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/DKLocalAccountIdentification.java index 31ada413c..86a651b02 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/DKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/DKLocalAccountIdentification.java @@ -2,37 +2,31 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * DKLocalAccountIdentification - */ +/** DKLocalAccountIdentification */ @JsonPropertyOrder({ DKLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, DKLocalAccountIdentification.JSON_PROPERTY_BANK_CODE, DKLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class DKLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -40,11 +34,8 @@ public class DKLocalAccountIdentification { public static final String JSON_PROPERTY_BANK_CODE = "bankCode"; private String bankCode; - /** - * **dkLocal** - */ + /** **dkLocal** */ public enum TypeEnum { - DKLOCAL(String.valueOf("dkLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +43,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +64,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,13 +76,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public DKLocalAccountIdentification() { - } + public DKLocalAccountIdentification() {} /** * The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). * - * @param accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). + * @param accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or + * whitespace). * @return the current {@code DKLocalAccountIdentification} instance, allowing for method chaining */ public DKLocalAccountIdentification accountNumber(String accountNumber) { @@ -97,7 +92,9 @@ public DKLocalAccountIdentification accountNumber(String accountNumber) { /** * The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). - * @return accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). + * + * @return accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or + * whitespace). */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,7 +105,8 @@ public String getAccountNumber() { /** * The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). * - * @param accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). + * @param accountNumber The 4-10 digits bank account number (Kontonummer) (without separators or + * whitespace). */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,7 +127,9 @@ public DKLocalAccountIdentification bankCode(String bankCode) { /** * The 4-digit bank code (Registreringsnummer) (without separators or whitespace). - * @return bankCode The 4-digit bank code (Registreringsnummer) (without separators or whitespace). + * + * @return bankCode The 4-digit bank code (Registreringsnummer) (without separators or + * whitespace). */ @JsonProperty(JSON_PROPERTY_BANK_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,6 +161,7 @@ public DKLocalAccountIdentification type(TypeEnum type) { /** * **dkLocal** + * * @return type **dkLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +181,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this DKLocalAccountIdentification object is equal to o. - */ + /** Return true if this DKLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +191,9 @@ public boolean equals(Object o) { return false; } DKLocalAccountIdentification dkLocalAccountIdentification = (DKLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, dkLocalAccountIdentification.accountNumber) && - Objects.equals(this.bankCode, dkLocalAccountIdentification.bankCode) && - Objects.equals(this.type, dkLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, dkLocalAccountIdentification.accountNumber) + && Objects.equals(this.bankCode, dkLocalAccountIdentification.bankCode) + && Objects.equals(this.type, dkLocalAccountIdentification.type); } @Override @@ -214,8 +213,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +222,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DKLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of DKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to DKLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DKLocalAccountIdentification */ - public static DKLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static DKLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DKLocalAccountIdentification.class); } -/** - * Convert an instance of DKLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DKLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/DirectDebitInformation.java b/src/main/java/com/adyen/model/transferwebhooks/DirectDebitInformation.java index 9e7627fa5..c4944dac4 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/DirectDebitInformation.java +++ b/src/main/java/com/adyen/model/transferwebhooks/DirectDebitInformation.java @@ -2,39 +2,29 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.time.OffsetDateTime; +import java.util.*; - -/** - * DirectDebitInformation - */ +/** DirectDebitInformation */ @JsonPropertyOrder({ DirectDebitInformation.JSON_PROPERTY_DATE_OF_SIGNATURE, DirectDebitInformation.JSON_PROPERTY_DUE_DATE, DirectDebitInformation.JSON_PROPERTY_MANDATE_ID, DirectDebitInformation.JSON_PROPERTY_SEQUENCE_TYPE }) - public class DirectDebitInformation { public static final String JSON_PROPERTY_DATE_OF_SIGNATURE = "dateOfSignature"; private OffsetDateTime dateOfSignature; @@ -48,13 +38,14 @@ public class DirectDebitInformation { public static final String JSON_PROPERTY_SEQUENCE_TYPE = "sequenceType"; private String sequenceType; - public DirectDebitInformation() { - } + public DirectDebitInformation() {} /** - * The date when the direct debit mandate was accepted by your user, in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + * The date when the direct debit mandate was accepted by your user, in + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. * - * @param dateOfSignature The date when the direct debit mandate was accepted by your user, in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + * @param dateOfSignature The date when the direct debit mandate was accepted by your user, in + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. * @return the current {@code DirectDebitInformation} instance, allowing for method chaining */ public DirectDebitInformation dateOfSignature(OffsetDateTime dateOfSignature) { @@ -63,8 +54,11 @@ public DirectDebitInformation dateOfSignature(OffsetDateTime dateOfSignature) { } /** - * The date when the direct debit mandate was accepted by your user, in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. - * @return dateOfSignature The date when the direct debit mandate was accepted by your user, in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + * The date when the direct debit mandate was accepted by your user, in + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + * + * @return dateOfSignature The date when the direct debit mandate was accepted by your user, in + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. */ @JsonProperty(JSON_PROPERTY_DATE_OF_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -73,9 +67,11 @@ public OffsetDateTime getDateOfSignature() { } /** - * The date when the direct debit mandate was accepted by your user, in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + * The date when the direct debit mandate was accepted by your user, in + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. * - * @param dateOfSignature The date when the direct debit mandate was accepted by your user, in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + * @param dateOfSignature The date when the direct debit mandate was accepted by your user, in + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. */ @JsonProperty(JSON_PROPERTY_DATE_OF_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,6 +92,7 @@ public DirectDebitInformation dueDate(OffsetDateTime dueDate) { /** * The date when the funds are deducted from your user's balance account. + * * @return dueDate The date when the funds are deducted from your user's balance account. */ @JsonProperty(JSON_PROPERTY_DUE_DATE) @@ -128,6 +125,7 @@ public DirectDebitInformation mandateId(String mandateId) { /** * Your unique identifier for the direct debit mandate. + * * @return mandateId Your unique identifier for the direct debit mandate. */ @JsonProperty(JSON_PROPERTY_MANDATE_ID) @@ -148,9 +146,11 @@ public void setMandateId(String mandateId) { } /** - * Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, **Recurring**, **Final**. + * Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, + * **Recurring**, **Final**. * - * @param sequenceType Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, **Recurring**, **Final**. + * @param sequenceType Identifies the direct debit transfer's type. Possible values: + * **OneOff**, **First**, **Recurring**, **Final**. * @return the current {@code DirectDebitInformation} instance, allowing for method chaining */ public DirectDebitInformation sequenceType(String sequenceType) { @@ -159,8 +159,11 @@ public DirectDebitInformation sequenceType(String sequenceType) { } /** - * Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, **Recurring**, **Final**. - * @return sequenceType Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, **Recurring**, **Final**. + * Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, + * **Recurring**, **Final**. + * + * @return sequenceType Identifies the direct debit transfer's type. Possible values: + * **OneOff**, **First**, **Recurring**, **Final**. */ @JsonProperty(JSON_PROPERTY_SEQUENCE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,9 +172,11 @@ public String getSequenceType() { } /** - * Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, **Recurring**, **Final**. + * Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, + * **Recurring**, **Final**. * - * @param sequenceType Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, **Recurring**, **Final**. + * @param sequenceType Identifies the direct debit transfer's type. Possible values: + * **OneOff**, **First**, **Recurring**, **Final**. */ @JsonProperty(JSON_PROPERTY_SEQUENCE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,9 +184,7 @@ public void setSequenceType(String sequenceType) { this.sequenceType = sequenceType; } - /** - * Return true if this DirectDebitInformation object is equal to o. - */ + /** Return true if this DirectDebitInformation object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -191,10 +194,10 @@ public boolean equals(Object o) { return false; } DirectDebitInformation directDebitInformation = (DirectDebitInformation) o; - return Objects.equals(this.dateOfSignature, directDebitInformation.dateOfSignature) && - Objects.equals(this.dueDate, directDebitInformation.dueDate) && - Objects.equals(this.mandateId, directDebitInformation.mandateId) && - Objects.equals(this.sequenceType, directDebitInformation.sequenceType); + return Objects.equals(this.dateOfSignature, directDebitInformation.dateOfSignature) + && Objects.equals(this.dueDate, directDebitInformation.dueDate) + && Objects.equals(this.mandateId, directDebitInformation.mandateId) + && Objects.equals(this.sequenceType, directDebitInformation.sequenceType); } @Override @@ -215,8 +218,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -225,21 +227,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of DirectDebitInformation given an JSON string * * @param jsonString JSON string * @return An instance of DirectDebitInformation - * @throws JsonProcessingException if the JSON string is invalid with respect to DirectDebitInformation + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DirectDebitInformation */ public static DirectDebitInformation fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, DirectDebitInformation.class); } -/** - * Convert an instance of DirectDebitInformation to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of DirectDebitInformation to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/EstimationTrackingData.java b/src/main/java/com/adyen/model/transferwebhooks/EstimationTrackingData.java index 42f154f14..15e7f11e8 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/EstimationTrackingData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/EstimationTrackingData.java @@ -2,46 +2,40 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * EstimationTrackingData - */ +/** EstimationTrackingData */ @JsonPropertyOrder({ EstimationTrackingData.JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME, EstimationTrackingData.JSON_PROPERTY_TYPE }) - public class EstimationTrackingData { public static final String JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME = "estimatedArrivalTime"; private OffsetDateTime estimatedArrivalTime; /** - * The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. + * The type of tracking event. Possible values: - **estimation**: the estimated date and time of + * when the funds will be credited has been determined. */ public enum TypeEnum { - ESTIMATION(String.valueOf("estimation")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -49,7 +43,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -70,7 +64,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -78,8 +76,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public EstimationTrackingData() { - } + public EstimationTrackingData() {} /** * The estimated time the beneficiary should have access to the funds. @@ -94,7 +91,9 @@ public EstimationTrackingData estimatedArrivalTime(OffsetDateTime estimatedArriv /** * The estimated time the beneficiary should have access to the funds. - * @return estimatedArrivalTime The estimated time the beneficiary should have access to the funds. + * + * @return estimatedArrivalTime The estimated time the beneficiary should have access to the + * funds. */ @JsonProperty(JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,9 +113,11 @@ public void setEstimatedArrivalTime(OffsetDateTime estimatedArrivalTime) { } /** - * The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. + * The type of tracking event. Possible values: - **estimation**: the estimated date and time of + * when the funds will be credited has been determined. * - * @param type The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. + * @param type The type of tracking event. Possible values: - **estimation**: the estimated date + * and time of when the funds will be credited has been determined. * @return the current {@code EstimationTrackingData} instance, allowing for method chaining */ public EstimationTrackingData type(TypeEnum type) { @@ -125,8 +126,11 @@ public EstimationTrackingData type(TypeEnum type) { } /** - * The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. - * @return type The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. + * The type of tracking event. Possible values: - **estimation**: the estimated date and time of + * when the funds will be credited has been determined. + * + * @return type The type of tracking event. Possible values: - **estimation**: the estimated date + * and time of when the funds will be credited has been determined. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -135,9 +139,11 @@ public TypeEnum getType() { } /** - * The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. + * The type of tracking event. Possible values: - **estimation**: the estimated date and time of + * when the funds will be credited has been determined. * - * @param type The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. + * @param type The type of tracking event. Possible values: - **estimation**: the estimated date + * and time of when the funds will be credited has been determined. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,9 +151,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this EstimationTrackingData object is equal to o. - */ + /** Return true if this EstimationTrackingData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -157,8 +161,8 @@ public boolean equals(Object o) { return false; } EstimationTrackingData estimationTrackingData = (EstimationTrackingData) o; - return Objects.equals(this.estimatedArrivalTime, estimationTrackingData.estimatedArrivalTime) && - Objects.equals(this.type, estimationTrackingData.type); + return Objects.equals(this.estimatedArrivalTime, estimationTrackingData.estimatedArrivalTime) + && Objects.equals(this.type, estimationTrackingData.type); } @Override @@ -170,15 +174,16 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class EstimationTrackingData {\n"); - sb.append(" estimatedArrivalTime: ").append(toIndentedString(estimatedArrivalTime)).append("\n"); + sb.append(" estimatedArrivalTime: ") + .append(toIndentedString(estimatedArrivalTime)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -187,21 +192,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of EstimationTrackingData given an JSON string * * @param jsonString JSON string * @return An instance of EstimationTrackingData - * @throws JsonProcessingException if the JSON string is invalid with respect to EstimationTrackingData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * EstimationTrackingData */ public static EstimationTrackingData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, EstimationTrackingData.class); } -/** - * Convert an instance of EstimationTrackingData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of EstimationTrackingData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/ExecutionDate.java b/src/main/java/com/adyen/model/transferwebhooks/ExecutionDate.java index c1a7d4708..7590e2320 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/ExecutionDate.java +++ b/src/main/java/com/adyen/model/transferwebhooks/ExecutionDate.java @@ -2,37 +2,24 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.LocalDate; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.time.LocalDate; +import java.util.*; - -/** - * ExecutionDate - */ -@JsonPropertyOrder({ - ExecutionDate.JSON_PROPERTY_DATE, - ExecutionDate.JSON_PROPERTY_TIMEZONE -}) - +/** ExecutionDate */ +@JsonPropertyOrder({ExecutionDate.JSON_PROPERTY_DATE, ExecutionDate.JSON_PROPERTY_TIMEZONE}) public class ExecutionDate { public static final String JSON_PROPERTY_DATE = "date"; private LocalDate date; @@ -40,13 +27,18 @@ public class ExecutionDate { public static final String JSON_PROPERTY_TIMEZONE = "timezone"; private String timezone; - public ExecutionDate() { - } + public ExecutionDate() {} /** - * The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31 + * The date when the transfer will be processed. This date must be: * Within 30 days of the + * current date. * In the [ISO 8601 + * format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: + * 2025-01-31 * - * @param date The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31 + * @param date The date when the transfer will be processed. This date must be: * Within 30 days + * of the current date. * In the [ISO 8601 + * format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For + * example: 2025-01-31 * @return the current {@code ExecutionDate} instance, allowing for method chaining */ public ExecutionDate date(LocalDate date) { @@ -55,8 +47,15 @@ public ExecutionDate date(LocalDate date) { } /** - * The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31 - * @return date The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31 + * The date when the transfer will be processed. This date must be: * Within 30 days of the + * current date. * In the [ISO 8601 + * format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: + * 2025-01-31 + * + * @return date The date when the transfer will be processed. This date must be: * Within 30 days + * of the current date. * In the [ISO 8601 + * format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For + * example: 2025-01-31 */ @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -65,9 +64,15 @@ public LocalDate getDate() { } /** - * The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31 + * The date when the transfer will be processed. This date must be: * Within 30 days of the + * current date. * In the [ISO 8601 + * format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: + * 2025-01-31 * - * @param date The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31 + * @param date The date when the transfer will be processed. This date must be: * Within 30 days + * of the current date. * In the [ISO 8601 + * format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For + * example: 2025-01-31 */ @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -76,9 +81,13 @@ public void setDate(LocalDate date) { } /** - * The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**. + * The timezone that applies to the execution date. Use a timezone identifier from the [tz + * database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: + * **America/Los_Angeles**. Default value: **Europe/Amsterdam**. * - * @param timezone The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**. + * @param timezone The timezone that applies to the execution date. Use a timezone identifier from + * the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: + * **America/Los_Angeles**. Default value: **Europe/Amsterdam**. * @return the current {@code ExecutionDate} instance, allowing for method chaining */ public ExecutionDate timezone(String timezone) { @@ -87,8 +96,13 @@ public ExecutionDate timezone(String timezone) { } /** - * The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**. - * @return timezone The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**. + * The timezone that applies to the execution date. Use a timezone identifier from the [tz + * database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: + * **America/Los_Angeles**. Default value: **Europe/Amsterdam**. + * + * @return timezone The timezone that applies to the execution date. Use a timezone identifier + * from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIMEZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,9 +111,13 @@ public String getTimezone() { } /** - * The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**. + * The timezone that applies to the execution date. Use a timezone identifier from the [tz + * database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: + * **America/Los_Angeles**. Default value: **Europe/Amsterdam**. * - * @param timezone The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**. + * @param timezone The timezone that applies to the execution date. Use a timezone identifier from + * the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: + * **America/Los_Angeles**. Default value: **Europe/Amsterdam**. */ @JsonProperty(JSON_PROPERTY_TIMEZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -107,9 +125,7 @@ public void setTimezone(String timezone) { this.timezone = timezone; } - /** - * Return true if this ExecutionDate object is equal to o. - */ + /** Return true if this ExecutionDate object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -119,8 +135,8 @@ public boolean equals(Object o) { return false; } ExecutionDate executionDate = (ExecutionDate) o; - return Objects.equals(this.date, executionDate.date) && - Objects.equals(this.timezone, executionDate.timezone); + return Objects.equals(this.date, executionDate.date) + && Objects.equals(this.timezone, executionDate.timezone); } @Override @@ -139,8 +155,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -149,7 +164,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ExecutionDate given an JSON string * * @param jsonString JSON string @@ -159,11 +174,12 @@ private String toIndentedString(Object o) { public static ExecutionDate fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ExecutionDate.class); } -/** - * Convert an instance of ExecutionDate to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ExecutionDate to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/ExternalReason.java b/src/main/java/com/adyen/model/transferwebhooks/ExternalReason.java index d68325720..23eb589fe 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/ExternalReason.java +++ b/src/main/java/com/adyen/model/transferwebhooks/ExternalReason.java @@ -2,37 +2,27 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ExternalReason - */ +/** ExternalReason */ @JsonPropertyOrder({ ExternalReason.JSON_PROPERTY_CODE, ExternalReason.JSON_PROPERTY_DESCRIPTION, ExternalReason.JSON_PROPERTY_NAMESPACE }) - public class ExternalReason { public static final String JSON_PROPERTY_CODE = "code"; private String code; @@ -43,8 +33,7 @@ public class ExternalReason { public static final String JSON_PROPERTY_NAMESPACE = "namespace"; private String namespace; - public ExternalReason() { - } + public ExternalReason() {} /** * The reason code. @@ -59,6 +48,7 @@ public ExternalReason code(String code) { /** * The reason code. + * * @return code The reason code. */ @JsonProperty(JSON_PROPERTY_CODE) @@ -91,6 +81,7 @@ public ExternalReason description(String description) { /** * The description of the reason code. + * * @return description The description of the reason code. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -123,6 +114,7 @@ public ExternalReason namespace(String namespace) { /** * The namespace for the reason code. + * * @return namespace The namespace for the reason code. */ @JsonProperty(JSON_PROPERTY_NAMESPACE) @@ -142,9 +134,7 @@ public void setNamespace(String namespace) { this.namespace = namespace; } - /** - * Return true if this ExternalReason object is equal to o. - */ + /** Return true if this ExternalReason object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +144,9 @@ public boolean equals(Object o) { return false; } ExternalReason externalReason = (ExternalReason) o; - return Objects.equals(this.code, externalReason.code) && - Objects.equals(this.description, externalReason.description) && - Objects.equals(this.namespace, externalReason.namespace); + return Objects.equals(this.code, externalReason.code) + && Objects.equals(this.description, externalReason.description) + && Objects.equals(this.namespace, externalReason.namespace); } @Override @@ -176,8 +166,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +175,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ExternalReason given an JSON string * * @param jsonString JSON string @@ -196,11 +185,12 @@ private String toIndentedString(Object o) { public static ExternalReason fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ExternalReason.class); } -/** - * Convert an instance of ExternalReason to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ExternalReason to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/HKLocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/HKLocalAccountIdentification.java index 5a46f09c6..7a46cb962 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/HKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/HKLocalAccountIdentification.java @@ -2,37 +2,31 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * HKLocalAccountIdentification - */ +/** HKLocalAccountIdentification */ @JsonPropertyOrder({ HKLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, HKLocalAccountIdentification.JSON_PROPERTY_CLEARING_CODE, HKLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class HKLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -40,11 +34,8 @@ public class HKLocalAccountIdentification { public static final String JSON_PROPERTY_CLEARING_CODE = "clearingCode"; private String clearingCode; - /** - * **hkLocal** - */ + /** **hkLocal** */ public enum TypeEnum { - HKLOCAL(String.valueOf("hkLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +43,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +64,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,13 +76,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public HKLocalAccountIdentification() { - } + public HKLocalAccountIdentification() {} /** - * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. + * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. + * Starts with the 3-digit branch code. * - * @param accountNumber The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. + * @param accountNumber The 9- to 15-character bank account number (alphanumeric), without + * separators or whitespace. Starts with the 3-digit branch code. * @return the current {@code HKLocalAccountIdentification} instance, allowing for method chaining */ public HKLocalAccountIdentification accountNumber(String accountNumber) { @@ -96,8 +92,11 @@ public HKLocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. - * @return accountNumber The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. + * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. + * Starts with the 3-digit branch code. + * + * @return accountNumber The 9- to 15-character bank account number (alphanumeric), without + * separators or whitespace. Starts with the 3-digit branch code. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +105,11 @@ public String getAccountNumber() { } /** - * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. + * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. + * Starts with the 3-digit branch code. * - * @param accountNumber The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. + * @param accountNumber The 9- to 15-character bank account number (alphanumeric), without + * separators or whitespace. Starts with the 3-digit branch code. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,6 +130,7 @@ public HKLocalAccountIdentification clearingCode(String clearingCode) { /** * The 3-digit clearing code, without separators or whitespace. + * * @return clearingCode The 3-digit clearing code, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_CLEARING_CODE) @@ -161,6 +163,7 @@ public HKLocalAccountIdentification type(TypeEnum type) { /** * **hkLocal** + * * @return type **hkLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +183,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this HKLocalAccountIdentification object is equal to o. - */ + /** Return true if this HKLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +193,9 @@ public boolean equals(Object o) { return false; } HKLocalAccountIdentification hkLocalAccountIdentification = (HKLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, hkLocalAccountIdentification.accountNumber) && - Objects.equals(this.clearingCode, hkLocalAccountIdentification.clearingCode) && - Objects.equals(this.type, hkLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, hkLocalAccountIdentification.accountNumber) + && Objects.equals(this.clearingCode, hkLocalAccountIdentification.clearingCode) + && Objects.equals(this.type, hkLocalAccountIdentification.type); } @Override @@ -214,8 +215,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +224,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of HKLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of HKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to HKLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * HKLocalAccountIdentification */ - public static HKLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static HKLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, HKLocalAccountIdentification.class); } -/** - * Convert an instance of HKLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of HKLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/HULocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/HULocalAccountIdentification.java index 1a9c341cf..fccfad5ec 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/HULocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/HULocalAccountIdentification.java @@ -2,45 +2,36 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * HULocalAccountIdentification - */ +/** HULocalAccountIdentification */ @JsonPropertyOrder({ HULocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, HULocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class HULocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - /** - * **huLocal** - */ + /** **huLocal** */ public enum TypeEnum { - HULOCAL(String.valueOf("huLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +39,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,8 +72,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public HULocalAccountIdentification() { - } + public HULocalAccountIdentification() {} /** * The 24-digit bank account number, without separators or whitespace. @@ -93,6 +87,7 @@ public HULocalAccountIdentification accountNumber(String accountNumber) { /** * The 24-digit bank account number, without separators or whitespace. + * * @return accountNumber The 24-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -125,6 +120,7 @@ public HULocalAccountIdentification type(TypeEnum type) { /** * **huLocal** + * * @return type **huLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -144,9 +140,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this HULocalAccountIdentification object is equal to o. - */ + /** Return true if this HULocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +150,8 @@ public boolean equals(Object o) { return false; } HULocalAccountIdentification huLocalAccountIdentification = (HULocalAccountIdentification) o; - return Objects.equals(this.accountNumber, huLocalAccountIdentification.accountNumber) && - Objects.equals(this.type, huLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, huLocalAccountIdentification.accountNumber) + && Objects.equals(this.type, huLocalAccountIdentification.type); } @Override @@ -176,8 +170,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +179,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of HULocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of HULocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to HULocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * HULocalAccountIdentification */ - public static HULocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static HULocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, HULocalAccountIdentification.class); } -/** - * Convert an instance of HULocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of HULocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/IbanAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/IbanAccountIdentification.java index 119355d3f..3d44f7cc4 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/IbanAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/IbanAccountIdentification.java @@ -2,45 +2,36 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * IbanAccountIdentification - */ +/** IbanAccountIdentification */ @JsonPropertyOrder({ IbanAccountIdentification.JSON_PROPERTY_IBAN, IbanAccountIdentification.JSON_PROPERTY_TYPE }) - public class IbanAccountIdentification { public static final String JSON_PROPERTY_IBAN = "iban"; private String iban; - /** - * **iban** - */ + /** **iban** */ public enum TypeEnum { - IBAN(String.valueOf("iban")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +39,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,13 +72,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public IbanAccountIdentification() { - } + public IbanAccountIdentification() {} /** - * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. * - * @param iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @param iban The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. * @return the current {@code IbanAccountIdentification} instance, allowing for method chaining */ public IbanAccountIdentification iban(String iban) { @@ -92,8 +88,11 @@ public IbanAccountIdentification iban(String iban) { } /** - * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. - * @return iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * + * @return iban The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,9 +101,11 @@ public String getIban() { } /** - * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. * - * @param iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + * @param iban The international bank account number as defined in the + * [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ @JsonProperty(JSON_PROPERTY_IBAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,6 +126,7 @@ public IbanAccountIdentification type(TypeEnum type) { /** * **iban** + * * @return type **iban** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -144,9 +146,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this IbanAccountIdentification object is equal to o. - */ + /** Return true if this IbanAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +156,8 @@ public boolean equals(Object o) { return false; } IbanAccountIdentification ibanAccountIdentification = (IbanAccountIdentification) o; - return Objects.equals(this.iban, ibanAccountIdentification.iban) && - Objects.equals(this.type, ibanAccountIdentification.type); + return Objects.equals(this.iban, ibanAccountIdentification.iban) + && Objects.equals(this.type, ibanAccountIdentification.type); } @Override @@ -176,8 +176,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +185,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of IbanAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of IbanAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to IbanAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * IbanAccountIdentification */ - public static IbanAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static IbanAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, IbanAccountIdentification.class); } -/** - * Convert an instance of IbanAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of IbanAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/InternalCategoryData.java b/src/main/java/com/adyen/model/transferwebhooks/InternalCategoryData.java index 910f8ee6e..3139106aa 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/InternalCategoryData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/InternalCategoryData.java @@ -2,49 +2,41 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * InternalCategoryData - */ +/** InternalCategoryData */ @JsonPropertyOrder({ InternalCategoryData.JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE, InternalCategoryData.JSON_PROPERTY_MODIFICATION_PSP_REFERENCE, InternalCategoryData.JSON_PROPERTY_TYPE }) - public class InternalCategoryData { - public static final String JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE = "modificationMerchantReference"; + public static final String JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE = + "modificationMerchantReference"; private String modificationMerchantReference; public static final String JSON_PROPERTY_MODIFICATION_PSP_REFERENCE = "modificationPspReference"; private String modificationPspReference; - /** - * **internal** - */ + /** **internal** */ public enum TypeEnum { - INTERNAL(String.valueOf("internal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +44,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +65,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,13 +77,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public InternalCategoryData() { - } + public InternalCategoryData() {} /** * The capture's merchant reference included in the transfer. * - * @param modificationMerchantReference The capture's merchant reference included in the transfer. + * @param modificationMerchantReference The capture's merchant reference included in the + * transfer. * @return the current {@code InternalCategoryData} instance, allowing for method chaining */ public InternalCategoryData modificationMerchantReference(String modificationMerchantReference) { @@ -97,7 +93,9 @@ public InternalCategoryData modificationMerchantReference(String modificationMer /** * The capture's merchant reference included in the transfer. - * @return modificationMerchantReference The capture's merchant reference included in the transfer. + * + * @return modificationMerchantReference The capture's merchant reference included in the + * transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,7 +106,8 @@ public String getModificationMerchantReference() { /** * The capture's merchant reference included in the transfer. * - * @param modificationMerchantReference The capture's merchant reference included in the transfer. + * @param modificationMerchantReference The capture's merchant reference included in the + * transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,6 +128,7 @@ public InternalCategoryData modificationPspReference(String modificationPspRefer /** * The capture reference included in the transfer. + * * @return modificationPspReference The capture reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_PSP_REFERENCE) @@ -161,6 +161,7 @@ public InternalCategoryData type(TypeEnum type) { /** * **internal** + * * @return type **internal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +181,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this InternalCategoryData object is equal to o. - */ + /** Return true if this InternalCategoryData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +191,11 @@ public boolean equals(Object o) { return false; } InternalCategoryData internalCategoryData = (InternalCategoryData) o; - return Objects.equals(this.modificationMerchantReference, internalCategoryData.modificationMerchantReference) && - Objects.equals(this.modificationPspReference, internalCategoryData.modificationPspReference) && - Objects.equals(this.type, internalCategoryData.type); + return Objects.equals( + this.modificationMerchantReference, internalCategoryData.modificationMerchantReference) + && Objects.equals( + this.modificationPspReference, internalCategoryData.modificationPspReference) + && Objects.equals(this.type, internalCategoryData.type); } @Override @@ -206,16 +207,19 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InternalCategoryData {\n"); - sb.append(" modificationMerchantReference: ").append(toIndentedString(modificationMerchantReference)).append("\n"); - sb.append(" modificationPspReference: ").append(toIndentedString(modificationPspReference)).append("\n"); + sb.append(" modificationMerchantReference: ") + .append(toIndentedString(modificationMerchantReference)) + .append("\n"); + sb.append(" modificationPspReference: ") + .append(toIndentedString(modificationPspReference)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +228,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of InternalCategoryData given an JSON string * * @param jsonString JSON string * @return An instance of InternalCategoryData - * @throws JsonProcessingException if the JSON string is invalid with respect to InternalCategoryData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * InternalCategoryData */ public static InternalCategoryData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, InternalCategoryData.class); } -/** - * Convert an instance of InternalCategoryData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of InternalCategoryData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/InternalReviewTrackingData.java b/src/main/java/com/adyen/model/transferwebhooks/InternalReviewTrackingData.java index 7365b03e7..a67616193 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/InternalReviewTrackingData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/InternalReviewTrackingData.java @@ -2,43 +2,38 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * InternalReviewTrackingData - */ +/** InternalReviewTrackingData */ @JsonPropertyOrder({ InternalReviewTrackingData.JSON_PROPERTY_REASON, InternalReviewTrackingData.JSON_PROPERTY_STATUS, InternalReviewTrackingData.JSON_PROPERTY_TYPE }) - public class InternalReviewTrackingData { /** - * The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). + * The reason why the transfer failed Adyen's internal review. Possible values: - + * **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For + * more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). */ public enum ReasonEnum { - REFUSEDFORREGULATORYREASONS(String.valueOf("refusedForRegulatoryReasons")); private static final Logger LOG = Logger.getLogger(ReasonEnum.class.getName()); @@ -46,7 +41,7 @@ public enum ReasonEnum { private String value; ReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -67,7 +62,11 @@ public static ReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ReasonEnum.values())); + LOG.warning( + "ReasonEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ReasonEnum.values())); return null; } } @@ -76,10 +75,11 @@ public static ReasonEnum fromValue(String value) { private ReasonEnum reason; /** - * The status of the transfer. Possible values: - **pending**: the transfer is under internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. + * The status of the transfer. Possible values: - **pending**: the transfer is under internal + * review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, + * see `reason`. */ public enum StatusEnum { - PENDING(String.valueOf("pending")), FAILED(String.valueOf("failed")); @@ -89,7 +89,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -110,7 +110,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -119,10 +123,10 @@ public static StatusEnum fromValue(String value) { private StatusEnum status; /** - * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. + * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged + * because it does not comply with Adyen's risk policy. */ public enum TypeEnum { - INTERNALREVIEW(String.valueOf("internalReview")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -130,7 +134,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -151,7 +155,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -159,13 +167,17 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public InternalReviewTrackingData() { - } + public InternalReviewTrackingData() {} /** - * The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). + * The reason why the transfer failed Adyen's internal review. Possible values: - + * **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For + * more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). * - * @param reason The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). + * @param reason The reason why the transfer failed Adyen's internal review. Possible values: + * - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk + * policy. For more information, [contact the Support + * Team](https://www.adyen.help/hc/en-us/requests/new). * @return the current {@code InternalReviewTrackingData} instance, allowing for method chaining */ public InternalReviewTrackingData reason(ReasonEnum reason) { @@ -174,8 +186,14 @@ public InternalReviewTrackingData reason(ReasonEnum reason) { } /** - * The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). - * @return reason The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). + * The reason why the transfer failed Adyen's internal review. Possible values: - + * **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For + * more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). + * + * @return reason The reason why the transfer failed Adyen's internal review. Possible values: + * - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk + * policy. For more information, [contact the Support + * Team](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -184,9 +202,14 @@ public ReasonEnum getReason() { } /** - * The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). + * The reason why the transfer failed Adyen's internal review. Possible values: - + * **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For + * more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). * - * @param reason The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). + * @param reason The reason why the transfer failed Adyen's internal review. Possible values: + * - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk + * policy. For more information, [contact the Support + * Team](https://www.adyen.help/hc/en-us/requests/new). */ @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -195,9 +218,13 @@ public void setReason(ReasonEnum reason) { } /** - * The status of the transfer. Possible values: - **pending**: the transfer is under internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. + * The status of the transfer. Possible values: - **pending**: the transfer is under internal + * review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, + * see `reason`. * - * @param status The status of the transfer. Possible values: - **pending**: the transfer is under internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. + * @param status The status of the transfer. Possible values: - **pending**: the transfer is under + * internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. + * For details, see `reason`. * @return the current {@code InternalReviewTrackingData} instance, allowing for method chaining */ public InternalReviewTrackingData status(StatusEnum status) { @@ -206,8 +233,13 @@ public InternalReviewTrackingData status(StatusEnum status) { } /** - * The status of the transfer. Possible values: - **pending**: the transfer is under internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. - * @return status The status of the transfer. Possible values: - **pending**: the transfer is under internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. + * The status of the transfer. Possible values: - **pending**: the transfer is under internal + * review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, + * see `reason`. + * + * @return status The status of the transfer. Possible values: - **pending**: the transfer is + * under internal review by Adyen. - **failed**: the transfer failed Adyen's internal + * review. For details, see `reason`. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -216,9 +248,13 @@ public StatusEnum getStatus() { } /** - * The status of the transfer. Possible values: - **pending**: the transfer is under internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. + * The status of the transfer. Possible values: - **pending**: the transfer is under internal + * review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, + * see `reason`. * - * @param status The status of the transfer. Possible values: - **pending**: the transfer is under internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. + * @param status The status of the transfer. Possible values: - **pending**: the transfer is under + * internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. + * For details, see `reason`. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -227,9 +263,11 @@ public void setStatus(StatusEnum status) { } /** - * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. + * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged + * because it does not comply with Adyen's risk policy. * - * @param type The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. + * @param type The type of tracking event. Possible values: - **internalReview**: the transfer was + * flagged because it does not comply with Adyen's risk policy. * @return the current {@code InternalReviewTrackingData} instance, allowing for method chaining */ public InternalReviewTrackingData type(TypeEnum type) { @@ -238,8 +276,11 @@ public InternalReviewTrackingData type(TypeEnum type) { } /** - * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. - * @return type The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. + * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged + * because it does not comply with Adyen's risk policy. + * + * @return type The type of tracking event. Possible values: - **internalReview**: the transfer + * was flagged because it does not comply with Adyen's risk policy. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -248,9 +289,11 @@ public TypeEnum getType() { } /** - * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. + * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged + * because it does not comply with Adyen's risk policy. * - * @param type The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. + * @param type The type of tracking event. Possible values: - **internalReview**: the transfer was + * flagged because it does not comply with Adyen's risk policy. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -258,9 +301,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this InternalReviewTrackingData object is equal to o. - */ + /** Return true if this InternalReviewTrackingData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -270,9 +311,9 @@ public boolean equals(Object o) { return false; } InternalReviewTrackingData internalReviewTrackingData = (InternalReviewTrackingData) o; - return Objects.equals(this.reason, internalReviewTrackingData.reason) && - Objects.equals(this.status, internalReviewTrackingData.status) && - Objects.equals(this.type, internalReviewTrackingData.type); + return Objects.equals(this.reason, internalReviewTrackingData.reason) + && Objects.equals(this.status, internalReviewTrackingData.status) + && Objects.equals(this.type, internalReviewTrackingData.type); } @Override @@ -292,8 +333,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -302,21 +342,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of InternalReviewTrackingData given an JSON string * * @param jsonString JSON string * @return An instance of InternalReviewTrackingData - * @throws JsonProcessingException if the JSON string is invalid with respect to InternalReviewTrackingData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * InternalReviewTrackingData */ - public static InternalReviewTrackingData fromJson(String jsonString) throws JsonProcessingException { + public static InternalReviewTrackingData fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, InternalReviewTrackingData.class); } -/** - * Convert an instance of InternalReviewTrackingData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of InternalReviewTrackingData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/IssuedCard.java b/src/main/java/com/adyen/model/transferwebhooks/IssuedCard.java index 5c97a136a..b464f625f 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/IssuedCard.java +++ b/src/main/java/com/adyen/model/transferwebhooks/IssuedCard.java @@ -2,36 +2,28 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transferwebhooks.RelayedAuthorisationData; -import com.adyen.model.transferwebhooks.ThreeDSecure; -import com.adyen.model.transferwebhooks.TransferNotificationValidationFact; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * IssuedCard - */ +/** IssuedCard */ @JsonPropertyOrder({ IssuedCard.JSON_PROPERTY_AUTHORISATION_TYPE, IssuedCard.JSON_PROPERTY_PAN_ENTRY_MODE, @@ -43,16 +35,15 @@ IssuedCard.JSON_PROPERTY_TYPE, IssuedCard.JSON_PROPERTY_VALIDATION_FACTS }) - public class IssuedCard { public static final String JSON_PROPERTY_AUTHORISATION_TYPE = "authorisationType"; private String authorisationType; /** - * Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + * Indicates the method used for entering the PAN to initiate a transaction. Possible values: + * **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. */ public enum PanEntryModeEnum { - CHIP(String.valueOf("chip")), COF(String.valueOf("cof")), @@ -72,7 +63,7 @@ public enum PanEntryModeEnum { private String value; PanEntryModeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -93,7 +84,11 @@ public static PanEntryModeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PanEntryModeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PanEntryModeEnum.values())); + LOG.warning( + "PanEntryModeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PanEntryModeEnum.values())); return null; } } @@ -102,10 +97,10 @@ public static PanEntryModeEnum fromValue(String value) { private PanEntryModeEnum panEntryMode; /** - * Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. + * Contains information about how the payment was processed. For example, **ecommerce** for online + * or **pos** for in-person payments. */ public enum ProcessingTypeEnum { - ATMWITHDRAW(String.valueOf("atmWithdraw")), BALANCEINQUIRY(String.valueOf("balanceInquiry")), @@ -127,7 +122,7 @@ public enum ProcessingTypeEnum { private String value; ProcessingTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -148,7 +143,11 @@ public static ProcessingTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ProcessingTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ProcessingTypeEnum.values())); + LOG.warning( + "ProcessingTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ProcessingTypeEnum.values())); return null; } } @@ -162,17 +161,15 @@ public static ProcessingTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_SCHEME_TRACE_ID = "schemeTraceId"; private String schemeTraceId; - public static final String JSON_PROPERTY_SCHEME_UNIQUE_TRANSACTION_ID = "schemeUniqueTransactionId"; + public static final String JSON_PROPERTY_SCHEME_UNIQUE_TRANSACTION_ID = + "schemeUniqueTransactionId"; private String schemeUniqueTransactionId; public static final String JSON_PROPERTY_THREE_D_SECURE = "threeDSecure"; private ThreeDSecure threeDSecure; - /** - * **issuedCard** - */ + /** **issuedCard** */ public enum TypeEnum { - ISSUEDCARD(String.valueOf("issuedCard")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -180,7 +177,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -201,7 +198,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -212,13 +213,14 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VALIDATION_FACTS = "validationFacts"; private List validationFacts; - public IssuedCard() { - } + public IssuedCard() {} /** - * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** + * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, + * **finalAuthorisation** * - * @param authorisationType The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** + * @param authorisationType The authorisation type. For example, **defaultAuthorisation**, + * **preAuthorisation**, **finalAuthorisation** * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard authorisationType(String authorisationType) { @@ -227,8 +229,11 @@ public IssuedCard authorisationType(String authorisationType) { } /** - * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** - * @return authorisationType The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** + * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, + * **finalAuthorisation** + * + * @return authorisationType The authorisation type. For example, **defaultAuthorisation**, + * **preAuthorisation**, **finalAuthorisation** */ @JsonProperty(JSON_PROPERTY_AUTHORISATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,9 +242,11 @@ public String getAuthorisationType() { } /** - * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** + * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, + * **finalAuthorisation** * - * @param authorisationType The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** + * @param authorisationType The authorisation type. For example, **defaultAuthorisation**, + * **preAuthorisation**, **finalAuthorisation** */ @JsonProperty(JSON_PROPERTY_AUTHORISATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -248,9 +255,12 @@ public void setAuthorisationType(String authorisationType) { } /** - * Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + * Indicates the method used for entering the PAN to initiate a transaction. Possible values: + * **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. * - * @param panEntryMode Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + * @param panEntryMode Indicates the method used for entering the PAN to initiate a transaction. + * Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, + * **ecommerce**, **token**. * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard panEntryMode(PanEntryModeEnum panEntryMode) { @@ -259,8 +269,12 @@ public IssuedCard panEntryMode(PanEntryModeEnum panEntryMode) { } /** - * Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. - * @return panEntryMode Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + * Indicates the method used for entering the PAN to initiate a transaction. Possible values: + * **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + * + * @return panEntryMode Indicates the method used for entering the PAN to initiate a transaction. + * Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, + * **ecommerce**, **token**. */ @JsonProperty(JSON_PROPERTY_PAN_ENTRY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -269,9 +283,12 @@ public PanEntryModeEnum getPanEntryMode() { } /** - * Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + * Indicates the method used for entering the PAN to initiate a transaction. Possible values: + * **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. * - * @param panEntryMode Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. + * @param panEntryMode Indicates the method used for entering the PAN to initiate a transaction. + * Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, + * **ecommerce**, **token**. */ @JsonProperty(JSON_PROPERTY_PAN_ENTRY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -280,9 +297,11 @@ public void setPanEntryMode(PanEntryModeEnum panEntryMode) { } /** - * Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. + * Contains information about how the payment was processed. For example, **ecommerce** for online + * or **pos** for in-person payments. * - * @param processingType Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. + * @param processingType Contains information about how the payment was processed. For example, + * **ecommerce** for online or **pos** for in-person payments. * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard processingType(ProcessingTypeEnum processingType) { @@ -291,8 +310,11 @@ public IssuedCard processingType(ProcessingTypeEnum processingType) { } /** - * Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. - * @return processingType Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. + * Contains information about how the payment was processed. For example, **ecommerce** for online + * or **pos** for in-person payments. + * + * @return processingType Contains information about how the payment was processed. For example, + * **ecommerce** for online or **pos** for in-person payments. */ @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -301,9 +323,11 @@ public ProcessingTypeEnum getProcessingType() { } /** - * Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. + * Contains information about how the payment was processed. For example, **ecommerce** for online + * or **pos** for in-person payments. * - * @param processingType Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. + * @param processingType Contains information about how the payment was processed. For example, + * **ecommerce** for online or **pos** for in-person payments. */ @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -314,7 +338,7 @@ public void setProcessingType(ProcessingTypeEnum processingType) { /** * relayedAuthorisationData * - * @param relayedAuthorisationData + * @param relayedAuthorisationData * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard relayedAuthorisationData(RelayedAuthorisationData relayedAuthorisationData) { @@ -324,7 +348,8 @@ public IssuedCard relayedAuthorisationData(RelayedAuthorisationData relayedAutho /** * Get relayedAuthorisationData - * @return relayedAuthorisationData + * + * @return relayedAuthorisationData */ @JsonProperty(JSON_PROPERTY_RELAYED_AUTHORISATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -335,7 +360,7 @@ public RelayedAuthorisationData getRelayedAuthorisationData() { /** * relayedAuthorisationData * - * @param relayedAuthorisationData + * @param relayedAuthorisationData */ @JsonProperty(JSON_PROPERTY_RELAYED_AUTHORISATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -344,9 +369,17 @@ public void setRelayedAuthorisationData(RelayedAuthorisationData relayedAuthoris } /** - * The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. + * The identifier of the original payment. This ID is provided by the scheme and can be + * alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to + * an original `schemeUniqueTransactionID` provided in an earlier payment (not + * necessarily processed by Adyen). A `schemeTraceId` is typically available for + * authorization adjustments or recurring payments. * - * @param schemeTraceId The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. + * @param schemeTraceId The identifier of the original payment. This ID is provided by the scheme + * and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` + * should refer to an original `schemeUniqueTransactionID` provided in an earlier + * payment (not necessarily processed by Adyen). A `schemeTraceId` is typically + * available for authorization adjustments or recurring payments. * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard schemeTraceId(String schemeTraceId) { @@ -355,8 +388,17 @@ public IssuedCard schemeTraceId(String schemeTraceId) { } /** - * The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. - * @return schemeTraceId The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. + * The identifier of the original payment. This ID is provided by the scheme and can be + * alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to + * an original `schemeUniqueTransactionID` provided in an earlier payment (not + * necessarily processed by Adyen). A `schemeTraceId` is typically available for + * authorization adjustments or recurring payments. + * + * @return schemeTraceId The identifier of the original payment. This ID is provided by the scheme + * and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` + * should refer to an original `schemeUniqueTransactionID` provided in an earlier + * payment (not necessarily processed by Adyen). A `schemeTraceId` is typically + * available for authorization adjustments or recurring payments. */ @JsonProperty(JSON_PROPERTY_SCHEME_TRACE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -365,9 +407,17 @@ public String getSchemeTraceId() { } /** - * The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. + * The identifier of the original payment. This ID is provided by the scheme and can be + * alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to + * an original `schemeUniqueTransactionID` provided in an earlier payment (not + * necessarily processed by Adyen). A `schemeTraceId` is typically available for + * authorization adjustments or recurring payments. * - * @param schemeTraceId The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. + * @param schemeTraceId The identifier of the original payment. This ID is provided by the scheme + * and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` + * should refer to an original `schemeUniqueTransactionID` provided in an earlier + * payment (not necessarily processed by Adyen). A `schemeTraceId` is typically + * available for authorization adjustments or recurring payments. */ @JsonProperty(JSON_PROPERTY_SCHEME_TRACE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -376,9 +426,11 @@ public void setSchemeTraceId(String schemeTraceId) { } /** - * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. + * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending + * on the scheme. * - * @param schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. + * @param schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be + * alphanumeric or numeric depending on the scheme. * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard schemeUniqueTransactionId(String schemeUniqueTransactionId) { @@ -387,8 +439,11 @@ public IssuedCard schemeUniqueTransactionId(String schemeUniqueTransactionId) { } /** - * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. - * @return schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. + * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending + * on the scheme. + * + * @return schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be + * alphanumeric or numeric depending on the scheme. */ @JsonProperty(JSON_PROPERTY_SCHEME_UNIQUE_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -397,9 +452,11 @@ public String getSchemeUniqueTransactionId() { } /** - * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. + * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending + * on the scheme. * - * @param schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. + * @param schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be + * alphanumeric or numeric depending on the scheme. */ @JsonProperty(JSON_PROPERTY_SCHEME_UNIQUE_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -410,7 +467,7 @@ public void setSchemeUniqueTransactionId(String schemeUniqueTransactionId) { /** * threeDSecure * - * @param threeDSecure + * @param threeDSecure * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard threeDSecure(ThreeDSecure threeDSecure) { @@ -420,7 +477,8 @@ public IssuedCard threeDSecure(ThreeDSecure threeDSecure) { /** * Get threeDSecure - * @return threeDSecure + * + * @return threeDSecure */ @JsonProperty(JSON_PROPERTY_THREE_D_SECURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -431,7 +489,7 @@ public ThreeDSecure getThreeDSecure() { /** * threeDSecure * - * @param threeDSecure + * @param threeDSecure */ @JsonProperty(JSON_PROPERTY_THREE_D_SECURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -452,6 +510,7 @@ public IssuedCard type(TypeEnum type) { /** * **issuedCard** + * * @return type **issuedCard** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -472,9 +531,11 @@ public void setType(TypeEnum type) { } /** - * The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * The evaluation of the validation facts. See [validation + * checks](https://docs.adyen.com/issuing/validation-checks) for more information. * - * @param validationFacts The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * @param validationFacts The evaluation of the validation facts. See [validation + * checks](https://docs.adyen.com/issuing/validation-checks) for more information. * @return the current {@code IssuedCard} instance, allowing for method chaining */ public IssuedCard validationFacts(List validationFacts) { @@ -491,8 +552,11 @@ public IssuedCard addValidationFactsItem(TransferNotificationValidationFact vali } /** - * The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. - * @return validationFacts The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * The evaluation of the validation facts. See [validation + * checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * + * @return validationFacts The evaluation of the validation facts. See [validation + * checks](https://docs.adyen.com/issuing/validation-checks) for more information. */ @JsonProperty(JSON_PROPERTY_VALIDATION_FACTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -501,9 +565,11 @@ public List getValidationFacts() { } /** - * The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * The evaluation of the validation facts. See [validation + * checks](https://docs.adyen.com/issuing/validation-checks) for more information. * - * @param validationFacts The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. + * @param validationFacts The evaluation of the validation facts. See [validation + * checks](https://docs.adyen.com/issuing/validation-checks) for more information. */ @JsonProperty(JSON_PROPERTY_VALIDATION_FACTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -511,9 +577,7 @@ public void setValidationFacts(List validati this.validationFacts = validationFacts; } - /** - * Return true if this IssuedCard object is equal to o. - */ + /** Return true if this IssuedCard object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -523,20 +587,29 @@ public boolean equals(Object o) { return false; } IssuedCard issuedCard = (IssuedCard) o; - return Objects.equals(this.authorisationType, issuedCard.authorisationType) && - Objects.equals(this.panEntryMode, issuedCard.panEntryMode) && - Objects.equals(this.processingType, issuedCard.processingType) && - Objects.equals(this.relayedAuthorisationData, issuedCard.relayedAuthorisationData) && - Objects.equals(this.schemeTraceId, issuedCard.schemeTraceId) && - Objects.equals(this.schemeUniqueTransactionId, issuedCard.schemeUniqueTransactionId) && - Objects.equals(this.threeDSecure, issuedCard.threeDSecure) && - Objects.equals(this.type, issuedCard.type) && - Objects.equals(this.validationFacts, issuedCard.validationFacts); + return Objects.equals(this.authorisationType, issuedCard.authorisationType) + && Objects.equals(this.panEntryMode, issuedCard.panEntryMode) + && Objects.equals(this.processingType, issuedCard.processingType) + && Objects.equals(this.relayedAuthorisationData, issuedCard.relayedAuthorisationData) + && Objects.equals(this.schemeTraceId, issuedCard.schemeTraceId) + && Objects.equals(this.schemeUniqueTransactionId, issuedCard.schemeUniqueTransactionId) + && Objects.equals(this.threeDSecure, issuedCard.threeDSecure) + && Objects.equals(this.type, issuedCard.type) + && Objects.equals(this.validationFacts, issuedCard.validationFacts); } @Override public int hashCode() { - return Objects.hash(authorisationType, panEntryMode, processingType, relayedAuthorisationData, schemeTraceId, schemeUniqueTransactionId, threeDSecure, type, validationFacts); + return Objects.hash( + authorisationType, + panEntryMode, + processingType, + relayedAuthorisationData, + schemeTraceId, + schemeUniqueTransactionId, + threeDSecure, + type, + validationFacts); } @Override @@ -546,9 +619,13 @@ public String toString() { sb.append(" authorisationType: ").append(toIndentedString(authorisationType)).append("\n"); sb.append(" panEntryMode: ").append(toIndentedString(panEntryMode)).append("\n"); sb.append(" processingType: ").append(toIndentedString(processingType)).append("\n"); - sb.append(" relayedAuthorisationData: ").append(toIndentedString(relayedAuthorisationData)).append("\n"); + sb.append(" relayedAuthorisationData: ") + .append(toIndentedString(relayedAuthorisationData)) + .append("\n"); sb.append(" schemeTraceId: ").append(toIndentedString(schemeTraceId)).append("\n"); - sb.append(" schemeUniqueTransactionId: ").append(toIndentedString(schemeUniqueTransactionId)).append("\n"); + sb.append(" schemeUniqueTransactionId: ") + .append(toIndentedString(schemeUniqueTransactionId)) + .append("\n"); sb.append(" threeDSecure: ").append(toIndentedString(threeDSecure)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" validationFacts: ").append(toIndentedString(validationFacts)).append("\n"); @@ -557,8 +634,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -567,7 +643,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of IssuedCard given an JSON string * * @param jsonString JSON string @@ -577,11 +653,12 @@ private String toIndentedString(Object o) { public static IssuedCard fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, IssuedCard.class); } -/** - * Convert an instance of IssuedCard to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of IssuedCard to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/IssuingTransactionData.java b/src/main/java/com/adyen/model/transferwebhooks/IssuingTransactionData.java index e75f41dc0..f290bcec6 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/IssuingTransactionData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/IssuingTransactionData.java @@ -2,45 +2,39 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * IssuingTransactionData - */ +/** IssuingTransactionData */ @JsonPropertyOrder({ IssuingTransactionData.JSON_PROPERTY_CAPTURE_CYCLE_ID, IssuingTransactionData.JSON_PROPERTY_TYPE }) - public class IssuingTransactionData { public static final String JSON_PROPERTY_CAPTURE_CYCLE_ID = "captureCycleId"; private String captureCycleId; /** - * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction data + * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction + * data */ public enum TypeEnum { - ISSUINGTRANSACTIONDATA(String.valueOf("issuingTransactionData")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +42,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +63,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,8 +75,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public IssuingTransactionData() { - } + public IssuingTransactionData() {} /** * captureCycleId associated with transfer event. @@ -93,6 +90,7 @@ public IssuingTransactionData captureCycleId(String captureCycleId) { /** * captureCycleId associated with transfer event. + * * @return captureCycleId captureCycleId associated with transfer event. */ @JsonProperty(JSON_PROPERTY_CAPTURE_CYCLE_ID) @@ -113,9 +111,11 @@ public void setCaptureCycleId(String captureCycleId) { } /** - * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction data + * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction + * data * - * @param type The type of events data. Possible values: - **issuingTransactionData**: issuing transaction data + * @param type The type of events data. Possible values: - **issuingTransactionData**: issuing + * transaction data * @return the current {@code IssuingTransactionData} instance, allowing for method chaining */ public IssuingTransactionData type(TypeEnum type) { @@ -124,8 +124,11 @@ public IssuingTransactionData type(TypeEnum type) { } /** - * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction data - * @return type The type of events data. Possible values: - **issuingTransactionData**: issuing transaction data + * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction + * data + * + * @return type The type of events data. Possible values: - **issuingTransactionData**: issuing + * transaction data */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -134,9 +137,11 @@ public TypeEnum getType() { } /** - * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction data + * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction + * data * - * @param type The type of events data. Possible values: - **issuingTransactionData**: issuing transaction data + * @param type The type of events data. Possible values: - **issuingTransactionData**: issuing + * transaction data */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,9 +149,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this IssuingTransactionData object is equal to o. - */ + /** Return true if this IssuingTransactionData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +159,8 @@ public boolean equals(Object o) { return false; } IssuingTransactionData issuingTransactionData = (IssuingTransactionData) o; - return Objects.equals(this.captureCycleId, issuingTransactionData.captureCycleId) && - Objects.equals(this.type, issuingTransactionData.type); + return Objects.equals(this.captureCycleId, issuingTransactionData.captureCycleId) + && Objects.equals(this.type, issuingTransactionData.type); } @Override @@ -176,8 +179,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +188,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of IssuingTransactionData given an JSON string * * @param jsonString JSON string * @return An instance of IssuingTransactionData - * @throws JsonProcessingException if the JSON string is invalid with respect to IssuingTransactionData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * IssuingTransactionData */ public static IssuingTransactionData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, IssuingTransactionData.class); } -/** - * Convert an instance of IssuingTransactionData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of IssuingTransactionData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/JSON.java b/src/main/java/com/adyen/model/transferwebhooks/JSON.java index 52e040da1..96b83a20b 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/JSON.java +++ b/src/main/java/com/adyen/model/transferwebhooks/JSON.java @@ -1,21 +1,18 @@ package com.adyen.model.transferwebhooks; -import com.adyen.serializer.ByteArraySerializer; import com.adyen.serializer.ByteArrayDeserializer; +import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import com.adyen.model.transferwebhooks.*; - +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { private static ObjectMapper mapper; @@ -40,6 +37,7 @@ private JSON() { /** * Set the date format for JSON (de)serialization with Date properties. + * * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { @@ -56,11 +54,13 @@ public ObjectMapper getContext(Class type) { * * @return object mapper */ - public static ObjectMapper getMapper() { return mapper; } + public static ObjectMapper getMapper() { + return mapper; + } /** - * Returns the target model class that should be used to deserialize the input data. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param modelClass The class that contains the discriminator mappings. @@ -73,9 +73,7 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { return null; } - /** - * Helper class to register the discriminator mappings. - */ + /** Helper class to register the discriminator mappings. */ private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; @@ -117,9 +115,9 @@ String getDiscriminatorValue(JsonNode node) { } /** - * Returns the target model class that should be used to deserialize the input data. - * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. - * The discriminator mappings are used to determine the target model class. + * Returns the target model class that should be used to deserialize the input data. This + * function can be invoked for anyOf/oneOf composed models with discriminator mappings. The + * discriminator mappings are used to determine the target model class. * * @param node The input data. * @param visitedClasses The set of classes that have already been visited. @@ -164,13 +162,14 @@ Class getClassForElement(JsonNode node, Set> visitedClasses) { /** * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. * - * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, - * so it's not possible to use the instanceof keyword. + *

The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, so + * it's not possible to use the instanceof keyword. * * @param modelClass A OpenAPI model class. * @param inst The instance object. */ - public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { + public static boolean isInstanceOf( + Class modelClass, Object inst, Set> visitedClasses) { if (modelClass.isInstance(inst)) { // This handles the 'allOf' use case with single parent inheritance. return true; @@ -194,59 +193,58 @@ public static boolean isInstanceOf(Class modelClass, Object inst, Set, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); + /** A map of discriminators for all model classes. */ + private static final Map, ClassDiscriminatorMapping> modelDiscriminators = + new HashMap, ClassDiscriminatorMapping>(); - /** - * A map of oneOf/anyOf descendants for each model class. - */ + /** A map of oneOf/anyOf descendants for each model class. */ private static final Map, Map> modelDescendants = new HashMap<>(); /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); + * Register a model class discriminator. + * + * @param modelClass the model class + * @param discriminatorPropertyName the name of the discriminator property + * @param mappings a map with the discriminator mappings. + */ + public static void registerDiscriminator( + Class modelClass, String discriminatorPropertyName, Map> mappings) { + ClassDiscriminatorMapping m = + new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); modelDiscriminators.put(modelClass, m); } /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants(Class modelClass, Map descendants) { + * Register the oneOf/anyOf descendants of the modelClass. + * + * @param modelClass the model class + * @param descendants a map of oneOf/anyOf descendants. + */ + public static void registerDescendants( + Class modelClass, Map descendants) { modelDescendants.put(modelClass, descendants); } private static JSON json; - static - { + static { json = new JSON(); } /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ + * Get the default JSON instance. + * + * @return the default JSON instance + */ public static JSON getDefault() { return json; } /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ + * Set the default JSON instance. + * + * @param json JSON instance to be used + */ public static void setDefault(JSON json) { JSON.json = json; } diff --git a/src/main/java/com/adyen/model/transferwebhooks/Leg.java b/src/main/java/com/adyen/model/transferwebhooks/Leg.java index 769546e65..01040e074 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/Leg.java +++ b/src/main/java/com/adyen/model/transferwebhooks/Leg.java @@ -2,31 +2,22 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Leg - */ +/** Leg */ @JsonPropertyOrder({ Leg.JSON_PROPERTY_ARRIVAL_AIRPORT_CODE, Leg.JSON_PROPERTY_BASIC_FARE_CODE, @@ -35,7 +26,6 @@ Leg.JSON_PROPERTY_DEPARTURE_DATE, Leg.JSON_PROPERTY_FLIGHT_NUMBER }) - public class Leg { public static final String JSON_PROPERTY_ARRIVAL_AIRPORT_CODE = "arrivalAirportCode"; private String arrivalAirportCode; @@ -55,13 +45,14 @@ public class Leg { public static final String JSON_PROPERTY_FLIGHT_NUMBER = "flightNumber"; private String flightNumber; - public Leg() { - } + public Leg() {} /** - * The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. + * The IATA 3-letter airport code of the destination airport. This field is required if the + * airline data includes leg details. * - * @param arrivalAirportCode The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. + * @param arrivalAirportCode The IATA 3-letter airport code of the destination airport. This field + * is required if the airline data includes leg details. * @return the current {@code Leg} instance, allowing for method chaining */ public Leg arrivalAirportCode(String arrivalAirportCode) { @@ -70,8 +61,11 @@ public Leg arrivalAirportCode(String arrivalAirportCode) { } /** - * The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. - * @return arrivalAirportCode The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. + * The IATA 3-letter airport code of the destination airport. This field is required if the + * airline data includes leg details. + * + * @return arrivalAirportCode The IATA 3-letter airport code of the destination airport. This + * field is required if the airline data includes leg details. */ @JsonProperty(JSON_PROPERTY_ARRIVAL_AIRPORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,9 +74,11 @@ public String getArrivalAirportCode() { } /** - * The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. + * The IATA 3-letter airport code of the destination airport. This field is required if the + * airline data includes leg details. * - * @param arrivalAirportCode The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. + * @param arrivalAirportCode The IATA 3-letter airport code of the destination airport. This field + * is required if the airline data includes leg details. */ @JsonProperty(JSON_PROPERTY_ARRIVAL_AIRPORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -103,6 +99,7 @@ public Leg basicFareCode(String basicFareCode) { /** * The basic fare code for this leg. + * * @return basicFareCode The basic fare code for this leg. */ @JsonProperty(JSON_PROPERTY_BASIC_FARE_CODE) @@ -135,6 +132,7 @@ public Leg carrierCode(String carrierCode) { /** * IATA code of the carrier operating the flight. + * * @return carrierCode IATA code of the carrier operating the flight. */ @JsonProperty(JSON_PROPERTY_CARRIER_CODE) @@ -155,9 +153,11 @@ public void setCarrierCode(String carrierCode) { } /** - * The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details + * The IATA three-letter airport code of the departure airport. This field is required if the + * airline data includes leg details * - * @param departureAirportCode The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details + * @param departureAirportCode The IATA three-letter airport code of the departure airport. This + * field is required if the airline data includes leg details * @return the current {@code Leg} instance, allowing for method chaining */ public Leg departureAirportCode(String departureAirportCode) { @@ -166,8 +166,11 @@ public Leg departureAirportCode(String departureAirportCode) { } /** - * The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details - * @return departureAirportCode The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details + * The IATA three-letter airport code of the departure airport. This field is required if the + * airline data includes leg details + * + * @return departureAirportCode The IATA three-letter airport code of the departure airport. This + * field is required if the airline data includes leg details */ @JsonProperty(JSON_PROPERTY_DEPARTURE_AIRPORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -176,9 +179,11 @@ public String getDepartureAirportCode() { } /** - * The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details + * The IATA three-letter airport code of the departure airport. This field is required if the + * airline data includes leg details * - * @param departureAirportCode The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details + * @param departureAirportCode The IATA three-letter airport code of the departure airport. This + * field is required if the airline data includes leg details */ @JsonProperty(JSON_PROPERTY_DEPARTURE_AIRPORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -199,6 +204,7 @@ public Leg departureDate(String departureDate) { /** * The flight departure date. + * * @return departureDate The flight departure date. */ @JsonProperty(JSON_PROPERTY_DEPARTURE_DATE) @@ -231,6 +237,7 @@ public Leg flightNumber(String flightNumber) { /** * The flight identifier. + * * @return flightNumber The flight identifier. */ @JsonProperty(JSON_PROPERTY_FLIGHT_NUMBER) @@ -250,9 +257,7 @@ public void setFlightNumber(String flightNumber) { this.flightNumber = flightNumber; } - /** - * Return true if this Leg object is equal to o. - */ + /** Return true if this Leg object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -262,17 +267,23 @@ public boolean equals(Object o) { return false; } Leg leg = (Leg) o; - return Objects.equals(this.arrivalAirportCode, leg.arrivalAirportCode) && - Objects.equals(this.basicFareCode, leg.basicFareCode) && - Objects.equals(this.carrierCode, leg.carrierCode) && - Objects.equals(this.departureAirportCode, leg.departureAirportCode) && - Objects.equals(this.departureDate, leg.departureDate) && - Objects.equals(this.flightNumber, leg.flightNumber); + return Objects.equals(this.arrivalAirportCode, leg.arrivalAirportCode) + && Objects.equals(this.basicFareCode, leg.basicFareCode) + && Objects.equals(this.carrierCode, leg.carrierCode) + && Objects.equals(this.departureAirportCode, leg.departureAirportCode) + && Objects.equals(this.departureDate, leg.departureDate) + && Objects.equals(this.flightNumber, leg.flightNumber); } @Override public int hashCode() { - return Objects.hash(arrivalAirportCode, basicFareCode, carrierCode, departureAirportCode, departureDate, flightNumber); + return Objects.hash( + arrivalAirportCode, + basicFareCode, + carrierCode, + departureAirportCode, + departureDate, + flightNumber); } @Override @@ -282,7 +293,9 @@ public String toString() { sb.append(" arrivalAirportCode: ").append(toIndentedString(arrivalAirportCode)).append("\n"); sb.append(" basicFareCode: ").append(toIndentedString(basicFareCode)).append("\n"); sb.append(" carrierCode: ").append(toIndentedString(carrierCode)).append("\n"); - sb.append(" departureAirportCode: ").append(toIndentedString(departureAirportCode)).append("\n"); + sb.append(" departureAirportCode: ") + .append(toIndentedString(departureAirportCode)) + .append("\n"); sb.append(" departureDate: ").append(toIndentedString(departureDate)).append("\n"); sb.append(" flightNumber: ").append(toIndentedString(flightNumber)).append("\n"); sb.append("}"); @@ -290,8 +303,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -300,7 +312,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Leg given an JSON string * * @param jsonString JSON string @@ -310,11 +322,12 @@ private String toIndentedString(Object o) { public static Leg fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Leg.class); } -/** - * Convert an instance of Leg to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Leg to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/Lodging.java b/src/main/java/com/adyen/model/transferwebhooks/Lodging.java index 7d3cc468e..c007d2416 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/Lodging.java +++ b/src/main/java/com/adyen/model/transferwebhooks/Lodging.java @@ -2,36 +2,23 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * Lodging - */ -@JsonPropertyOrder({ - Lodging.JSON_PROPERTY_CHECK_IN_DATE, - Lodging.JSON_PROPERTY_NUMBER_OF_NIGHTS -}) - +/** Lodging */ +@JsonPropertyOrder({Lodging.JSON_PROPERTY_CHECK_IN_DATE, Lodging.JSON_PROPERTY_NUMBER_OF_NIGHTS}) public class Lodging { public static final String JSON_PROPERTY_CHECK_IN_DATE = "checkInDate"; private String checkInDate; @@ -39,8 +26,7 @@ public class Lodging { public static final String JSON_PROPERTY_NUMBER_OF_NIGHTS = "numberOfNights"; private Integer numberOfNights; - public Lodging() { - } + public Lodging() {} /** * The check-in date. @@ -55,6 +41,7 @@ public Lodging checkInDate(String checkInDate) { /** * The check-in date. + * * @return checkInDate The check-in date. */ @JsonProperty(JSON_PROPERTY_CHECK_IN_DATE) @@ -87,6 +74,7 @@ public Lodging numberOfNights(Integer numberOfNights) { /** * The total number of nights the room is booked for. + * * @return numberOfNights The total number of nights the room is booked for. */ @JsonProperty(JSON_PROPERTY_NUMBER_OF_NIGHTS) @@ -106,9 +94,7 @@ public void setNumberOfNights(Integer numberOfNights) { this.numberOfNights = numberOfNights; } - /** - * Return true if this Lodging object is equal to o. - */ + /** Return true if this Lodging object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +104,8 @@ public boolean equals(Object o) { return false; } Lodging lodging = (Lodging) o; - return Objects.equals(this.checkInDate, lodging.checkInDate) && - Objects.equals(this.numberOfNights, lodging.numberOfNights); + return Objects.equals(this.checkInDate, lodging.checkInDate) + && Objects.equals(this.numberOfNights, lodging.numberOfNights); } @Override @@ -138,8 +124,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,7 +133,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Lodging given an JSON string * * @param jsonString JSON string @@ -158,11 +143,12 @@ private String toIndentedString(Object o) { public static Lodging fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Lodging.class); } -/** - * Convert an instance of Lodging to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Lodging to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/MerchantData.java b/src/main/java/com/adyen/model/transferwebhooks/MerchantData.java index bb50a6ac9..cae5b9a6d 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/MerchantData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/MerchantData.java @@ -2,32 +2,22 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transferwebhooks.NameLocation; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * MerchantData - */ +/** MerchantData */ @JsonPropertyOrder({ MerchantData.JSON_PROPERTY_ACQUIRER_ID, MerchantData.JSON_PROPERTY_MCC, @@ -35,7 +25,6 @@ MerchantData.JSON_PROPERTY_NAME_LOCATION, MerchantData.JSON_PROPERTY_POSTAL_CODE }) - public class MerchantData { public static final String JSON_PROPERTY_ACQUIRER_ID = "acquirerId"; private String acquirerId; @@ -52,8 +41,7 @@ public class MerchantData { public static final String JSON_PROPERTY_POSTAL_CODE = "postalCode"; private String postalCode; - public MerchantData() { - } + public MerchantData() {} /** * The unique identifier of the merchant's acquirer. @@ -68,6 +56,7 @@ public MerchantData acquirerId(String acquirerId) { /** * The unique identifier of the merchant's acquirer. + * * @return acquirerId The unique identifier of the merchant's acquirer. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_ID) @@ -100,6 +89,7 @@ public MerchantData mcc(String mcc) { /** * The merchant category code. + * * @return mcc The merchant category code. */ @JsonProperty(JSON_PROPERTY_MCC) @@ -132,6 +122,7 @@ public MerchantData merchantId(String merchantId) { /** * The unique identifier of the merchant. + * * @return merchantId The unique identifier of the merchant. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @@ -154,7 +145,7 @@ public void setMerchantId(String merchantId) { /** * nameLocation * - * @param nameLocation + * @param nameLocation * @return the current {@code MerchantData} instance, allowing for method chaining */ public MerchantData nameLocation(NameLocation nameLocation) { @@ -164,7 +155,8 @@ public MerchantData nameLocation(NameLocation nameLocation) { /** * Get nameLocation - * @return nameLocation + * + * @return nameLocation */ @JsonProperty(JSON_PROPERTY_NAME_LOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -175,7 +167,7 @@ public NameLocation getNameLocation() { /** * nameLocation * - * @param nameLocation + * @param nameLocation */ @JsonProperty(JSON_PROPERTY_NAME_LOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -196,6 +188,7 @@ public MerchantData postalCode(String postalCode) { /** * The postal code of the merchant. + * * @return postalCode The postal code of the merchant. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @@ -215,9 +208,7 @@ public void setPostalCode(String postalCode) { this.postalCode = postalCode; } - /** - * Return true if this MerchantData object is equal to o. - */ + /** Return true if this MerchantData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -227,11 +218,11 @@ public boolean equals(Object o) { return false; } MerchantData merchantData = (MerchantData) o; - return Objects.equals(this.acquirerId, merchantData.acquirerId) && - Objects.equals(this.mcc, merchantData.mcc) && - Objects.equals(this.merchantId, merchantData.merchantId) && - Objects.equals(this.nameLocation, merchantData.nameLocation) && - Objects.equals(this.postalCode, merchantData.postalCode); + return Objects.equals(this.acquirerId, merchantData.acquirerId) + && Objects.equals(this.mcc, merchantData.mcc) + && Objects.equals(this.merchantId, merchantData.merchantId) + && Objects.equals(this.nameLocation, merchantData.nameLocation) + && Objects.equals(this.postalCode, merchantData.postalCode); } @Override @@ -253,8 +244,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -263,7 +253,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of MerchantData given an JSON string * * @param jsonString JSON string @@ -273,11 +263,12 @@ private String toIndentedString(Object o) { public static MerchantData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MerchantData.class); } -/** - * Convert an instance of MerchantData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of MerchantData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/MerchantPurchaseData.java b/src/main/java/com/adyen/model/transferwebhooks/MerchantPurchaseData.java index 68b06d537..52c0ae910 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/MerchantPurchaseData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/MerchantPurchaseData.java @@ -2,41 +2,33 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transferwebhooks.Airline; -import com.adyen.model.transferwebhooks.Lodging; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * MerchantPurchaseData - */ +/** MerchantPurchaseData */ @JsonPropertyOrder({ MerchantPurchaseData.JSON_PROPERTY_AIRLINE, MerchantPurchaseData.JSON_PROPERTY_LODGING, MerchantPurchaseData.JSON_PROPERTY_TYPE }) - public class MerchantPurchaseData { public static final String JSON_PROPERTY_AIRLINE = "airline"; private Airline airline; @@ -45,10 +37,9 @@ public class MerchantPurchaseData { private List lodging; /** - * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data + * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data */ public enum TypeEnum { - MERCHANTPURCHASEDATA(String.valueOf("merchantPurchaseData")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -56,7 +47,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -77,7 +68,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -85,13 +80,12 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public MerchantPurchaseData() { - } + public MerchantPurchaseData() {} /** * airline * - * @param airline + * @param airline * @return the current {@code MerchantPurchaseData} instance, allowing for method chaining */ public MerchantPurchaseData airline(Airline airline) { @@ -101,7 +95,8 @@ public MerchantPurchaseData airline(Airline airline) { /** * Get airline - * @return airline + * + * @return airline */ @JsonProperty(JSON_PROPERTY_AIRLINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,7 +107,7 @@ public Airline getAirline() { /** * airline * - * @param airline + * @param airline */ @JsonProperty(JSON_PROPERTY_AIRLINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -141,6 +136,7 @@ public MerchantPurchaseData addLodgingItem(Lodging lodgingItem) { /** * Lodging information. + * * @return lodging Lodging information. */ @JsonProperty(JSON_PROPERTY_LODGING) @@ -161,9 +157,10 @@ public void setLodging(List lodging) { } /** - * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data + * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data * - * @param type The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data + * @param type The type of events data. Possible values: - **merchantPurchaseData**: merchant + * purchase data * @return the current {@code MerchantPurchaseData} instance, allowing for method chaining */ public MerchantPurchaseData type(TypeEnum type) { @@ -172,8 +169,10 @@ public MerchantPurchaseData type(TypeEnum type) { } /** - * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data - * @return type The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data + * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data + * + * @return type The type of events data. Possible values: - **merchantPurchaseData**: merchant + * purchase data */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,9 +181,10 @@ public TypeEnum getType() { } /** - * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data + * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data * - * @param type The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data + * @param type The type of events data. Possible values: - **merchantPurchaseData**: merchant + * purchase data */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,9 +192,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this MerchantPurchaseData object is equal to o. - */ + /** Return true if this MerchantPurchaseData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -204,9 +202,9 @@ public boolean equals(Object o) { return false; } MerchantPurchaseData merchantPurchaseData = (MerchantPurchaseData) o; - return Objects.equals(this.airline, merchantPurchaseData.airline) && - Objects.equals(this.lodging, merchantPurchaseData.lodging) && - Objects.equals(this.type, merchantPurchaseData.type); + return Objects.equals(this.airline, merchantPurchaseData.airline) + && Objects.equals(this.lodging, merchantPurchaseData.lodging) + && Objects.equals(this.type, merchantPurchaseData.type); } @Override @@ -226,8 +224,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -236,21 +233,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of MerchantPurchaseData given an JSON string * * @param jsonString JSON string * @return An instance of MerchantPurchaseData - * @throws JsonProcessingException if the JSON string is invalid with respect to MerchantPurchaseData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * MerchantPurchaseData */ public static MerchantPurchaseData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, MerchantPurchaseData.class); } -/** - * Convert an instance of MerchantPurchaseData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of MerchantPurchaseData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/Modification.java b/src/main/java/com/adyen/model/transferwebhooks/Modification.java index 58675a424..f7a96dd05 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/Modification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/Modification.java @@ -2,31 +2,26 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * Modification - */ +/** Modification */ @JsonPropertyOrder({ Modification.JSON_PROPERTY_DIRECTION, Modification.JSON_PROPERTY_ID, @@ -34,7 +29,6 @@ Modification.JSON_PROPERTY_STATUS, Modification.JSON_PROPERTY_TYPE }) - public class Modification { public static final String JSON_PROPERTY_DIRECTION = "direction"; private String direction; @@ -45,11 +39,8 @@ public class Modification { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - /** - * The status of the transfer event. - */ + /** The status of the transfer event. */ public enum StatusEnum { - APPROVALPENDING(String.valueOf("approvalPending")), ATMWITHDRAWAL(String.valueOf("atmWithdrawal")), @@ -189,7 +180,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -210,7 +201,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -221,8 +216,7 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public Modification() { - } + public Modification() {} /** * The direction of the money movement. @@ -237,6 +231,7 @@ public Modification direction(String direction) { /** * The direction of the money movement. + * * @return direction The direction of the money movement. */ @JsonProperty(JSON_PROPERTY_DIRECTION) @@ -269,6 +264,7 @@ public Modification id(String id) { /** * Our reference for the modification. + * * @return id Our reference for the modification. */ @JsonProperty(JSON_PROPERTY_ID) @@ -301,6 +297,7 @@ public Modification reference(String reference) { /** * Your reference for the modification, used internally within your platform. + * * @return reference Your reference for the modification, used internally within your platform. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -333,6 +330,7 @@ public Modification status(StatusEnum status) { /** * The status of the transfer event. + * * @return status The status of the transfer event. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -365,6 +363,7 @@ public Modification type(String type) { /** * The type of transfer modification. + * * @return type The type of transfer modification. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -384,9 +383,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this Modification object is equal to o. - */ + /** Return true if this Modification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -396,11 +393,11 @@ public boolean equals(Object o) { return false; } Modification modification = (Modification) o; - return Objects.equals(this.direction, modification.direction) && - Objects.equals(this.id, modification.id) && - Objects.equals(this.reference, modification.reference) && - Objects.equals(this.status, modification.status) && - Objects.equals(this.type, modification.type); + return Objects.equals(this.direction, modification.direction) + && Objects.equals(this.id, modification.id) + && Objects.equals(this.reference, modification.reference) + && Objects.equals(this.status, modification.status) + && Objects.equals(this.type, modification.type); } @Override @@ -422,8 +419,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -432,7 +428,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Modification given an JSON string * * @param jsonString JSON string @@ -442,11 +438,12 @@ private String toIndentedString(Object o) { public static Modification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Modification.class); } -/** - * Convert an instance of Modification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Modification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/NOLocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/NOLocalAccountIdentification.java index 600c94835..250b05d9b 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/NOLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/NOLocalAccountIdentification.java @@ -2,45 +2,36 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * NOLocalAccountIdentification - */ +/** NOLocalAccountIdentification */ @JsonPropertyOrder({ NOLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, NOLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class NOLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - /** - * **noLocal** - */ + /** **noLocal** */ public enum TypeEnum { - NOLOCAL(String.valueOf("noLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +39,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,8 +72,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public NOLocalAccountIdentification() { - } + public NOLocalAccountIdentification() {} /** * The 11-digit bank account number, without separators or whitespace. @@ -93,6 +87,7 @@ public NOLocalAccountIdentification accountNumber(String accountNumber) { /** * The 11-digit bank account number, without separators or whitespace. + * * @return accountNumber The 11-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -125,6 +120,7 @@ public NOLocalAccountIdentification type(TypeEnum type) { /** * **noLocal** + * * @return type **noLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -144,9 +140,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this NOLocalAccountIdentification object is equal to o. - */ + /** Return true if this NOLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +150,8 @@ public boolean equals(Object o) { return false; } NOLocalAccountIdentification noLocalAccountIdentification = (NOLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, noLocalAccountIdentification.accountNumber) && - Objects.equals(this.type, noLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, noLocalAccountIdentification.accountNumber) + && Objects.equals(this.type, noLocalAccountIdentification.type); } @Override @@ -176,8 +170,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +179,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of NOLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of NOLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to NOLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * NOLocalAccountIdentification */ - public static NOLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static NOLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NOLocalAccountIdentification.class); } -/** - * Convert an instance of NOLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of NOLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/NZLocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/NZLocalAccountIdentification.java index 3192cc305..14798f3aa 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/NZLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/NZLocalAccountIdentification.java @@ -2,45 +2,36 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * NZLocalAccountIdentification - */ +/** NZLocalAccountIdentification */ @JsonPropertyOrder({ NZLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, NZLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class NZLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - /** - * **nzLocal** - */ + /** **nzLocal** */ public enum TypeEnum { - NZLOCAL(String.valueOf("nzLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +39,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,13 +72,16 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public NZLocalAccountIdentification() { - } + public NZLocalAccountIdentification() {} /** - * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. + * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits + * are the branch number, the next 7 digits are the account number, and the final 2-3 digits are + * the suffix. * - * @param accountNumber The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. + * @param accountNumber The 15-16 digit bank account number. The first 2 digits are the bank + * number, the next 4 digits are the branch number, the next 7 digits are the account number, + * and the final 2-3 digits are the suffix. * @return the current {@code NZLocalAccountIdentification} instance, allowing for method chaining */ public NZLocalAccountIdentification accountNumber(String accountNumber) { @@ -92,8 +90,13 @@ public NZLocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. - * @return accountNumber The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. + * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits + * are the branch number, the next 7 digits are the account number, and the final 2-3 digits are + * the suffix. + * + * @return accountNumber The 15-16 digit bank account number. The first 2 digits are the bank + * number, the next 4 digits are the branch number, the next 7 digits are the account number, + * and the final 2-3 digits are the suffix. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,9 +105,13 @@ public String getAccountNumber() { } /** - * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. + * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits + * are the branch number, the next 7 digits are the account number, and the final 2-3 digits are + * the suffix. * - * @param accountNumber The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. + * @param accountNumber The 15-16 digit bank account number. The first 2 digits are the bank + * number, the next 4 digits are the branch number, the next 7 digits are the account number, + * and the final 2-3 digits are the suffix. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,6 +132,7 @@ public NZLocalAccountIdentification type(TypeEnum type) { /** * **nzLocal** + * * @return type **nzLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -144,9 +152,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this NZLocalAccountIdentification object is equal to o. - */ + /** Return true if this NZLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +162,8 @@ public boolean equals(Object o) { return false; } NZLocalAccountIdentification nzLocalAccountIdentification = (NZLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, nzLocalAccountIdentification.accountNumber) && - Objects.equals(this.type, nzLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, nzLocalAccountIdentification.accountNumber) + && Objects.equals(this.type, nzLocalAccountIdentification.type); } @Override @@ -176,8 +182,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +191,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of NZLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of NZLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to NZLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * NZLocalAccountIdentification */ - public static NZLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static NZLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NZLocalAccountIdentification.class); } -/** - * Convert an instance of NZLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of NZLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/NameLocation.java b/src/main/java/com/adyen/model/transferwebhooks/NameLocation.java index a9d1d0534..dcd9872ea 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/NameLocation.java +++ b/src/main/java/com/adyen/model/transferwebhooks/NameLocation.java @@ -2,31 +2,22 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * NameLocation - */ +/** NameLocation */ @JsonPropertyOrder({ NameLocation.JSON_PROPERTY_CITY, NameLocation.JSON_PROPERTY_COUNTRY, @@ -35,7 +26,6 @@ NameLocation.JSON_PROPERTY_RAW_DATA, NameLocation.JSON_PROPERTY_STATE }) - public class NameLocation { public static final String JSON_PROPERTY_CITY = "city"; private String city; @@ -55,8 +45,7 @@ public class NameLocation { public static final String JSON_PROPERTY_STATE = "state"; private String state; - public NameLocation() { - } + public NameLocation() {} /** * The city where the merchant is located. @@ -71,6 +60,7 @@ public NameLocation city(String city) { /** * The city where the merchant is located. + * * @return city The city where the merchant is located. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -91,9 +81,11 @@ public void setCity(String city) { } /** - * The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. + * The country where the merchant is located in [three-letter country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. * - * @param country The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. + * @param country The country where the merchant is located in [three-letter country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. * @return the current {@code NameLocation} instance, allowing for method chaining */ public NameLocation country(String country) { @@ -102,8 +94,11 @@ public NameLocation country(String country) { } /** - * The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. - * @return country The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. + * The country where the merchant is located in [three-letter country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. + * + * @return country The country where the merchant is located in [three-letter country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,9 +107,11 @@ public String getCountry() { } /** - * The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. + * The country where the merchant is located in [three-letter country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. * - * @param country The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. + * @param country The country where the merchant is located in [three-letter country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -123,9 +120,13 @@ public void setCountry(String country) { } /** - * The home country in [three-digit country code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled merchants such as embassies. + * The home country in [three-digit country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled + * merchants such as embassies. * - * @param countryOfOrigin The home country in [three-digit country code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled merchants such as embassies. + * @param countryOfOrigin The home country in [three-digit country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for + * government-controlled merchants such as embassies. * @return the current {@code NameLocation} instance, allowing for method chaining */ public NameLocation countryOfOrigin(String countryOfOrigin) { @@ -134,8 +135,13 @@ public NameLocation countryOfOrigin(String countryOfOrigin) { } /** - * The home country in [three-digit country code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled merchants such as embassies. - * @return countryOfOrigin The home country in [three-digit country code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled merchants such as embassies. + * The home country in [three-digit country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled + * merchants such as embassies. + * + * @return countryOfOrigin The home country in [three-digit country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for + * government-controlled merchants such as embassies. */ @JsonProperty(JSON_PROPERTY_COUNTRY_OF_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,9 +150,13 @@ public String getCountryOfOrigin() { } /** - * The home country in [three-digit country code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled merchants such as embassies. + * The home country in [three-digit country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled + * merchants such as embassies. * - * @param countryOfOrigin The home country in [three-digit country code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled merchants such as embassies. + * @param countryOfOrigin The home country in [three-digit country + * code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for + * government-controlled merchants such as embassies. */ @JsonProperty(JSON_PROPERTY_COUNTRY_OF_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,6 +177,7 @@ public NameLocation name(String name) { /** * The name of the merchant's shop or service. + * * @return name The name of the merchant's shop or service. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -199,6 +210,7 @@ public NameLocation rawData(String rawData) { /** * The raw data. + * * @return rawData The raw data. */ @JsonProperty(JSON_PROPERTY_RAW_DATA) @@ -231,6 +243,7 @@ public NameLocation state(String state) { /** * The state where the merchant is located. + * * @return state The state where the merchant is located. */ @JsonProperty(JSON_PROPERTY_STATE) @@ -250,9 +263,7 @@ public void setState(String state) { this.state = state; } - /** - * Return true if this NameLocation object is equal to o. - */ + /** Return true if this NameLocation object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -262,12 +273,12 @@ public boolean equals(Object o) { return false; } NameLocation nameLocation = (NameLocation) o; - return Objects.equals(this.city, nameLocation.city) && - Objects.equals(this.country, nameLocation.country) && - Objects.equals(this.countryOfOrigin, nameLocation.countryOfOrigin) && - Objects.equals(this.name, nameLocation.name) && - Objects.equals(this.rawData, nameLocation.rawData) && - Objects.equals(this.state, nameLocation.state); + return Objects.equals(this.city, nameLocation.city) + && Objects.equals(this.country, nameLocation.country) + && Objects.equals(this.countryOfOrigin, nameLocation.countryOfOrigin) + && Objects.equals(this.name, nameLocation.name) + && Objects.equals(this.rawData, nameLocation.rawData) + && Objects.equals(this.state, nameLocation.state); } @Override @@ -290,8 +301,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -300,7 +310,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of NameLocation given an JSON string * * @param jsonString JSON string @@ -310,11 +320,12 @@ private String toIndentedString(Object o) { public static NameLocation fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NameLocation.class); } -/** - * Convert an instance of NameLocation to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of NameLocation to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/NumberAndBicAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/NumberAndBicAccountIdentification.java index 4885c8b26..49ad71cb7 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/NumberAndBicAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/NumberAndBicAccountIdentification.java @@ -2,54 +2,45 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transferwebhooks.AdditionalBankIdentification; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * NumberAndBicAccountIdentification - */ +/** NumberAndBicAccountIdentification */ @JsonPropertyOrder({ NumberAndBicAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, NumberAndBicAccountIdentification.JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION, NumberAndBicAccountIdentification.JSON_PROPERTY_BIC, NumberAndBicAccountIdentification.JSON_PROPERTY_TYPE }) - public class NumberAndBicAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - public static final String JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION = "additionalBankIdentification"; + public static final String JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION = + "additionalBankIdentification"; private AdditionalBankIdentification additionalBankIdentification; public static final String JSON_PROPERTY_BIC = "bic"; private String bic; - /** - * **numberAndBic** - */ + /** **numberAndBic** */ public enum TypeEnum { - NUMBERANDBIC(String.valueOf("numberAndBic")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -57,7 +48,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -78,7 +69,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -86,14 +81,16 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public NumberAndBicAccountIdentification() { - } + public NumberAndBicAccountIdentification() {} /** - * The bank account number, without separators or whitespace. The length and format depends on the bank or country. + * The bank account number, without separators or whitespace. The length and format depends on the + * bank or country. * - * @param accountNumber The bank account number, without separators or whitespace. The length and format depends on the bank or country. - * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method chaining + * @param accountNumber The bank account number, without separators or whitespace. The length and + * format depends on the bank or country. + * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method + * chaining */ public NumberAndBicAccountIdentification accountNumber(String accountNumber) { this.accountNumber = accountNumber; @@ -101,8 +98,11 @@ public NumberAndBicAccountIdentification accountNumber(String accountNumber) { } /** - * The bank account number, without separators or whitespace. The length and format depends on the bank or country. - * @return accountNumber The bank account number, without separators or whitespace. The length and format depends on the bank or country. + * The bank account number, without separators or whitespace. The length and format depends on the + * bank or country. + * + * @return accountNumber The bank account number, without separators or whitespace. The length and + * format depends on the bank or country. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,9 +111,11 @@ public String getAccountNumber() { } /** - * The bank account number, without separators or whitespace. The length and format depends on the bank or country. + * The bank account number, without separators or whitespace. The length and format depends on the + * bank or country. * - * @param accountNumber The bank account number, without separators or whitespace. The length and format depends on the bank or country. + * @param accountNumber The bank account number, without separators or whitespace. The length and + * format depends on the bank or country. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,17 +126,20 @@ public void setAccountNumber(String accountNumber) { /** * additionalBankIdentification * - * @param additionalBankIdentification - * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method chaining + * @param additionalBankIdentification + * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method + * chaining */ - public NumberAndBicAccountIdentification additionalBankIdentification(AdditionalBankIdentification additionalBankIdentification) { + public NumberAndBicAccountIdentification additionalBankIdentification( + AdditionalBankIdentification additionalBankIdentification) { this.additionalBankIdentification = additionalBankIdentification; return this; } /** * Get additionalBankIdentification - * @return additionalBankIdentification + * + * @return additionalBankIdentification */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,11 +150,12 @@ public AdditionalBankIdentification getAdditionalBankIdentification() { /** * additionalBankIdentification * - * @param additionalBankIdentification + * @param additionalBankIdentification */ @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAdditionalBankIdentification(AdditionalBankIdentification additionalBankIdentification) { + public void setAdditionalBankIdentification( + AdditionalBankIdentification additionalBankIdentification) { this.additionalBankIdentification = additionalBankIdentification; } @@ -157,7 +163,8 @@ public void setAdditionalBankIdentification(AdditionalBankIdentification additio * The bank's 8- or 11-character BIC or SWIFT code. * * @param bic The bank's 8- or 11-character BIC or SWIFT code. - * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method chaining + * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method + * chaining */ public NumberAndBicAccountIdentification bic(String bic) { this.bic = bic; @@ -166,6 +173,7 @@ public NumberAndBicAccountIdentification bic(String bic) { /** * The bank's 8- or 11-character BIC or SWIFT code. + * * @return bic The bank's 8- or 11-character BIC or SWIFT code. */ @JsonProperty(JSON_PROPERTY_BIC) @@ -189,7 +197,8 @@ public void setBic(String bic) { * **numberAndBic** * * @param type **numberAndBic** - * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method chaining + * @return the current {@code NumberAndBicAccountIdentification} instance, allowing for method + * chaining */ public NumberAndBicAccountIdentification type(TypeEnum type) { this.type = type; @@ -198,6 +207,7 @@ public NumberAndBicAccountIdentification type(TypeEnum type) { /** * **numberAndBic** + * * @return type **numberAndBic** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -217,9 +227,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this NumberAndBicAccountIdentification object is equal to o. - */ + /** Return true if this NumberAndBicAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -228,11 +236,14 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - NumberAndBicAccountIdentification numberAndBicAccountIdentification = (NumberAndBicAccountIdentification) o; - return Objects.equals(this.accountNumber, numberAndBicAccountIdentification.accountNumber) && - Objects.equals(this.additionalBankIdentification, numberAndBicAccountIdentification.additionalBankIdentification) && - Objects.equals(this.bic, numberAndBicAccountIdentification.bic) && - Objects.equals(this.type, numberAndBicAccountIdentification.type); + NumberAndBicAccountIdentification numberAndBicAccountIdentification = + (NumberAndBicAccountIdentification) o; + return Objects.equals(this.accountNumber, numberAndBicAccountIdentification.accountNumber) + && Objects.equals( + this.additionalBankIdentification, + numberAndBicAccountIdentification.additionalBankIdentification) + && Objects.equals(this.bic, numberAndBicAccountIdentification.bic) + && Objects.equals(this.type, numberAndBicAccountIdentification.type); } @Override @@ -245,7 +256,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NumberAndBicAccountIdentification {\n"); sb.append(" accountNumber: ").append(toIndentedString(accountNumber)).append("\n"); - sb.append(" additionalBankIdentification: ").append(toIndentedString(additionalBankIdentification)).append("\n"); + sb.append(" additionalBankIdentification: ") + .append(toIndentedString(additionalBankIdentification)) + .append("\n"); sb.append(" bic: ").append(toIndentedString(bic)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -253,8 +266,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -263,21 +275,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of NumberAndBicAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of NumberAndBicAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to NumberAndBicAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * NumberAndBicAccountIdentification */ - public static NumberAndBicAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static NumberAndBicAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, NumberAndBicAccountIdentification.class); } -/** - * Convert an instance of NumberAndBicAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of NumberAndBicAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/PLLocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/PLLocalAccountIdentification.java index 0e9a3c4ab..5cc7835eb 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/PLLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/PLLocalAccountIdentification.java @@ -2,45 +2,36 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * PLLocalAccountIdentification - */ +/** PLLocalAccountIdentification */ @JsonPropertyOrder({ PLLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, PLLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class PLLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; - /** - * **plLocal** - */ + /** **plLocal** */ public enum TypeEnum { - PLLOCAL(String.valueOf("plLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -48,7 +39,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -69,7 +60,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -77,13 +72,16 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PLLocalAccountIdentification() { - } + public PLLocalAccountIdentification() {} /** - * The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. + * The 26-digit bank account number ([Numer + * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or + * whitespace. * - * @param accountNumber The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. + * @param accountNumber The 26-digit bank account number ([Numer + * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or + * whitespace. * @return the current {@code PLLocalAccountIdentification} instance, allowing for method chaining */ public PLLocalAccountIdentification accountNumber(String accountNumber) { @@ -92,8 +90,13 @@ public PLLocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. - * @return accountNumber The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. + * The 26-digit bank account number ([Numer + * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or + * whitespace. + * + * @return accountNumber The 26-digit bank account number ([Numer + * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or + * whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -102,9 +105,13 @@ public String getAccountNumber() { } /** - * The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. + * The 26-digit bank account number ([Numer + * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or + * whitespace. * - * @param accountNumber The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. + * @param accountNumber The 26-digit bank account number ([Numer + * rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or + * whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,6 +132,7 @@ public PLLocalAccountIdentification type(TypeEnum type) { /** * **plLocal** + * * @return type **plLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -144,9 +152,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this PLLocalAccountIdentification object is equal to o. - */ + /** Return true if this PLLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,8 +162,8 @@ public boolean equals(Object o) { return false; } PLLocalAccountIdentification plLocalAccountIdentification = (PLLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, plLocalAccountIdentification.accountNumber) && - Objects.equals(this.type, plLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, plLocalAccountIdentification.accountNumber) + && Objects.equals(this.type, plLocalAccountIdentification.type); } @Override @@ -176,8 +182,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,21 +191,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PLLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of PLLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to PLLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PLLocalAccountIdentification */ - public static PLLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static PLLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PLLocalAccountIdentification.class); } -/** - * Convert an instance of PLLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PLLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/PartyIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/PartyIdentification.java index e01181401..f4f324c6d 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/PartyIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/PartyIdentification.java @@ -2,33 +2,27 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transferwebhooks.Address; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * PartyIdentification - */ +/** PartyIdentification */ @JsonPropertyOrder({ PartyIdentification.JSON_PROPERTY_ADDRESS, PartyIdentification.JSON_PROPERTY_DATE_OF_BIRTH, @@ -40,7 +34,6 @@ PartyIdentification.JSON_PROPERTY_TYPE, PartyIdentification.JSON_PROPERTY_URL }) - public class PartyIdentification { public static final String JSON_PROPERTY_ADDRESS = "address"; private Address address; @@ -64,10 +57,11 @@ public class PartyIdentification { private String reference; /** - * The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. + * The type of entity that owns the bank account or card. Possible values: **individual**, + * **organization**, or **unknown**. Required when `category` is **card**. In this case, + * the value must be **individual**. */ public enum TypeEnum { - INDIVIDUAL(String.valueOf("individual")), ORGANIZATION(String.valueOf("organization")), @@ -79,7 +73,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -100,7 +94,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -111,13 +109,12 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_URL = "url"; private String url; - public PartyIdentification() { - } + public PartyIdentification() {} /** * address * - * @param address + * @param address * @return the current {@code PartyIdentification} instance, allowing for method chaining */ public PartyIdentification address(Address address) { @@ -127,7 +124,8 @@ public PartyIdentification address(Address address) { /** * Get address - * @return address + * + * @return address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,7 +136,7 @@ public Address getAddress() { /** * address * - * @param address + * @param address */ @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,9 +145,12 @@ public void setAddress(Address address) { } /** - * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. + * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + * For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. * - * @param dateOfBirth The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. + * @param dateOfBirth The date of birth of the individual in + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. + * Allowed only when `type` is **individual**. * @return the current {@code PartyIdentification} instance, allowing for method chaining */ public PartyIdentification dateOfBirth(LocalDate dateOfBirth) { @@ -158,8 +159,12 @@ public PartyIdentification dateOfBirth(LocalDate dateOfBirth) { } /** - * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. - * @return dateOfBirth The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. + * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + * For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. + * + * @return dateOfBirth The date of birth of the individual in + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. + * Allowed only when `type` is **individual**. */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,9 +173,12 @@ public LocalDate getDateOfBirth() { } /** - * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. + * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + * For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. * - * @param dateOfBirth The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. + * @param dateOfBirth The date of birth of the individual in + * [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. + * Allowed only when `type` is **individual**. */ @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,7 +189,8 @@ public void setDateOfBirth(LocalDate dateOfBirth) { /** * The email address of the organization or individual. Maximum length: 254 characters. * - * @param email The email address of the organization or individual. Maximum length: 254 characters. + * @param email The email address of the organization or individual. Maximum length: 254 + * characters. * @return the current {@code PartyIdentification} instance, allowing for method chaining */ public PartyIdentification email(String email) { @@ -191,7 +200,9 @@ public PartyIdentification email(String email) { /** * The email address of the organization or individual. Maximum length: 254 characters. - * @return email The email address of the organization or individual. Maximum length: 254 characters. + * + * @return email The email address of the organization or individual. Maximum length: 254 + * characters. */ @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -202,7 +213,8 @@ public String getEmail() { /** * The email address of the organization or individual. Maximum length: 254 characters. * - * @param email The email address of the organization or individual. Maximum length: 254 characters. + * @param email The email address of the organization or individual. Maximum length: 254 + * characters. */ @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,9 +223,13 @@ public void setEmail(String email) { } /** - * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This + * parameter is: - Allowed only when `type` is **individual**. - Required when + * `category` is **card**. * - * @param firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * @param firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — + * and space. This parameter is: - Allowed only when `type` is **individual**. - + * Required when `category` is **card**. * @return the current {@code PartyIdentification} instance, allowing for method chaining */ public PartyIdentification firstName(String firstName) { @@ -222,8 +238,13 @@ public PartyIdentification firstName(String firstName) { } /** - * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. - * @return firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This + * parameter is: - Allowed only when `type` is **individual**. - Required when + * `category` is **card**. + * + * @return firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — + * and space. This parameter is: - Allowed only when `type` is **individual**. - + * Required when `category` is **card**. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -232,9 +253,13 @@ public String getFirstName() { } /** - * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This + * parameter is: - Allowed only when `type` is **individual**. - Required when + * `category` is **card**. * - * @param firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * @param firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — + * and space. This parameter is: - Allowed only when `type` is **individual**. - + * Required when `category` is **card**. */ @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -243,9 +268,13 @@ public void setFirstName(String firstName) { } /** - * The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. + * The full name of the entity that owns the bank account or card. Supported characters: [a-z] + * [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when + * `category` is **bank**. * - * @param fullName The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. + * @param fullName The full name of the entity that owns the bank account or card. Supported + * characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. + * Required when `category` is **bank**. * @return the current {@code PartyIdentification} instance, allowing for method chaining */ public PartyIdentification fullName(String fullName) { @@ -254,8 +283,13 @@ public PartyIdentification fullName(String fullName) { } /** - * The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. - * @return fullName The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. + * The full name of the entity that owns the bank account or card. Supported characters: [a-z] + * [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when + * `category` is **bank**. + * + * @return fullName The full name of the entity that owns the bank account or card. Supported + * characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. + * Required when `category` is **bank**. */ @JsonProperty(JSON_PROPERTY_FULL_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -264,9 +298,13 @@ public String getFullName() { } /** - * The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. + * The full name of the entity that owns the bank account or card. Supported characters: [a-z] + * [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when + * `category` is **bank**. * - * @param fullName The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**. + * @param fullName The full name of the entity that owns the bank account or card. Supported + * characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. + * Required when `category` is **bank**. */ @JsonProperty(JSON_PROPERTY_FULL_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -275,9 +313,13 @@ public void setFullName(String fullName) { } /** - * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This + * parameter is: - Allowed only when `type` is **individual**. - Required when + * `category` is **card**. * - * @param lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * @param lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and + * space. This parameter is: - Allowed only when `type` is **individual**. - + * Required when `category` is **card**. * @return the current {@code PartyIdentification} instance, allowing for method chaining */ public PartyIdentification lastName(String lastName) { @@ -286,8 +328,13 @@ public PartyIdentification lastName(String lastName) { } /** - * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. - * @return lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This + * parameter is: - Allowed only when `type` is **individual**. - Required when + * `category` is **card**. + * + * @return lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and + * space. This parameter is: - Allowed only when `type` is **individual**. - + * Required when `category` is **card**. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -296,9 +343,13 @@ public String getLastName() { } /** - * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This + * parameter is: - Allowed only when `type` is **individual**. - Required when + * `category` is **card**. * - * @param lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. + * @param lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and + * space. This parameter is: - Allowed only when `type` is **individual**. - + * Required when `category` is **card**. */ @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -307,9 +358,13 @@ public void setLastName(String lastName) { } /** - * A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. + * A unique reference to identify the party or counterparty involved in the transfer. For example, + * your client's unique wallet or payee ID. Required when you include + * `cardIdentification.storedPaymentMethodId`. * - * @param reference A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. + * @param reference A unique reference to identify the party or counterparty involved in the + * transfer. For example, your client's unique wallet or payee ID. Required when you + * include `cardIdentification.storedPaymentMethodId`. * @return the current {@code PartyIdentification} instance, allowing for method chaining */ public PartyIdentification reference(String reference) { @@ -318,8 +373,13 @@ public PartyIdentification reference(String reference) { } /** - * A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. - * @return reference A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. + * A unique reference to identify the party or counterparty involved in the transfer. For example, + * your client's unique wallet or payee ID. Required when you include + * `cardIdentification.storedPaymentMethodId`. + * + * @return reference A unique reference to identify the party or counterparty involved in the + * transfer. For example, your client's unique wallet or payee ID. Required when you + * include `cardIdentification.storedPaymentMethodId`. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -328,9 +388,13 @@ public String getReference() { } /** - * A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. + * A unique reference to identify the party or counterparty involved in the transfer. For example, + * your client's unique wallet or payee ID. Required when you include + * `cardIdentification.storedPaymentMethodId`. * - * @param reference A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. + * @param reference A unique reference to identify the party or counterparty involved in the + * transfer. For example, your client's unique wallet or payee ID. Required when you + * include `cardIdentification.storedPaymentMethodId`. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -339,9 +403,13 @@ public void setReference(String reference) { } /** - * The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. + * The type of entity that owns the bank account or card. Possible values: **individual**, + * **organization**, or **unknown**. Required when `category` is **card**. In this case, + * the value must be **individual**. * - * @param type The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. + * @param type The type of entity that owns the bank account or card. Possible values: + * **individual**, **organization**, or **unknown**. Required when `category` is + * **card**. In this case, the value must be **individual**. * @return the current {@code PartyIdentification} instance, allowing for method chaining */ public PartyIdentification type(TypeEnum type) { @@ -350,8 +418,13 @@ public PartyIdentification type(TypeEnum type) { } /** - * The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. - * @return type The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. + * The type of entity that owns the bank account or card. Possible values: **individual**, + * **organization**, or **unknown**. Required when `category` is **card**. In this case, + * the value must be **individual**. + * + * @return type The type of entity that owns the bank account or card. Possible values: + * **individual**, **organization**, or **unknown**. Required when `category` is + * **card**. In this case, the value must be **individual**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -360,9 +433,13 @@ public TypeEnum getType() { } /** - * The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. + * The type of entity that owns the bank account or card. Possible values: **individual**, + * **organization**, or **unknown**. Required when `category` is **card**. In this case, + * the value must be **individual**. * - * @param type The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. + * @param type The type of entity that owns the bank account or card. Possible values: + * **individual**, **organization**, or **unknown**. Required when `category` is + * **card**. In this case, the value must be **individual**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -383,6 +460,7 @@ public PartyIdentification url(String url) { /** * The URL of the organization or individual. Maximum length: 255 characters. + * * @return url The URL of the organization or individual. Maximum length: 255 characters. */ @JsonProperty(JSON_PROPERTY_URL) @@ -402,9 +480,7 @@ public void setUrl(String url) { this.url = url; } - /** - * Return true if this PartyIdentification object is equal to o. - */ + /** Return true if this PartyIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -414,20 +490,21 @@ public boolean equals(Object o) { return false; } PartyIdentification partyIdentification = (PartyIdentification) o; - return Objects.equals(this.address, partyIdentification.address) && - Objects.equals(this.dateOfBirth, partyIdentification.dateOfBirth) && - Objects.equals(this.email, partyIdentification.email) && - Objects.equals(this.firstName, partyIdentification.firstName) && - Objects.equals(this.fullName, partyIdentification.fullName) && - Objects.equals(this.lastName, partyIdentification.lastName) && - Objects.equals(this.reference, partyIdentification.reference) && - Objects.equals(this.type, partyIdentification.type) && - Objects.equals(this.url, partyIdentification.url); + return Objects.equals(this.address, partyIdentification.address) + && Objects.equals(this.dateOfBirth, partyIdentification.dateOfBirth) + && Objects.equals(this.email, partyIdentification.email) + && Objects.equals(this.firstName, partyIdentification.firstName) + && Objects.equals(this.fullName, partyIdentification.fullName) + && Objects.equals(this.lastName, partyIdentification.lastName) + && Objects.equals(this.reference, partyIdentification.reference) + && Objects.equals(this.type, partyIdentification.type) + && Objects.equals(this.url, partyIdentification.url); } @Override public int hashCode() { - return Objects.hash(address, dateOfBirth, email, firstName, fullName, lastName, reference, type, url); + return Objects.hash( + address, dateOfBirth, email, firstName, fullName, lastName, reference, type, url); } @Override @@ -448,8 +525,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -458,21 +534,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PartyIdentification given an JSON string * * @param jsonString JSON string * @return An instance of PartyIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to PartyIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PartyIdentification */ public static PartyIdentification fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PartyIdentification.class); } -/** - * Convert an instance of PartyIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PartyIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/PaymentInstrument.java b/src/main/java/com/adyen/model/transferwebhooks/PaymentInstrument.java index d50e85961..0a21fdd52 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/PaymentInstrument.java +++ b/src/main/java/com/adyen/model/transferwebhooks/PaymentInstrument.java @@ -2,38 +2,28 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * PaymentInstrument - */ +/** PaymentInstrument */ @JsonPropertyOrder({ PaymentInstrument.JSON_PROPERTY_DESCRIPTION, PaymentInstrument.JSON_PROPERTY_ID, PaymentInstrument.JSON_PROPERTY_REFERENCE, PaymentInstrument.JSON_PROPERTY_TOKEN_TYPE }) - public class PaymentInstrument { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -47,8 +37,7 @@ public class PaymentInstrument { public static final String JSON_PROPERTY_TOKEN_TYPE = "tokenType"; private String tokenType; - public PaymentInstrument() { - } + public PaymentInstrument() {} /** * The description of the resource. @@ -63,6 +52,7 @@ public PaymentInstrument description(String description) { /** * The description of the resource. + * * @return description The description of the resource. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -95,6 +85,7 @@ public PaymentInstrument id(String id) { /** * The unique identifier of the resource. + * * @return id The unique identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -127,6 +118,7 @@ public PaymentInstrument reference(String reference) { /** * The reference for the resource. + * * @return reference The reference for the resource. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -159,6 +151,7 @@ public PaymentInstrument tokenType(String tokenType) { /** * The type of wallet that the network token is associated with. + * * @return tokenType The type of wallet that the network token is associated with. */ @JsonProperty(JSON_PROPERTY_TOKEN_TYPE) @@ -178,9 +171,7 @@ public void setTokenType(String tokenType) { this.tokenType = tokenType; } - /** - * Return true if this PaymentInstrument object is equal to o. - */ + /** Return true if this PaymentInstrument object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -190,10 +181,10 @@ public boolean equals(Object o) { return false; } PaymentInstrument paymentInstrument = (PaymentInstrument) o; - return Objects.equals(this.description, paymentInstrument.description) && - Objects.equals(this.id, paymentInstrument.id) && - Objects.equals(this.reference, paymentInstrument.reference) && - Objects.equals(this.tokenType, paymentInstrument.tokenType); + return Objects.equals(this.description, paymentInstrument.description) + && Objects.equals(this.id, paymentInstrument.id) + && Objects.equals(this.reference, paymentInstrument.reference) + && Objects.equals(this.tokenType, paymentInstrument.tokenType); } @Override @@ -214,8 +205,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,7 +214,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PaymentInstrument given an JSON string * * @param jsonString JSON string @@ -234,11 +224,12 @@ private String toIndentedString(Object o) { public static PaymentInstrument fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PaymentInstrument.class); } -/** - * Convert an instance of PaymentInstrument to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PaymentInstrument to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/PlatformPayment.java b/src/main/java/com/adyen/model/transferwebhooks/PlatformPayment.java index 93debabf2..73a4ed23e 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/PlatformPayment.java +++ b/src/main/java/com/adyen/model/transferwebhooks/PlatformPayment.java @@ -2,31 +2,26 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * PlatformPayment - */ +/** PlatformPayment */ @JsonPropertyOrder({ PlatformPayment.JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE, PlatformPayment.JSON_PROPERTY_MODIFICATION_PSP_REFERENCE, @@ -35,9 +30,9 @@ PlatformPayment.JSON_PROPERTY_PSP_PAYMENT_REFERENCE, PlatformPayment.JSON_PROPERTY_TYPE }) - public class PlatformPayment { - public static final String JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE = "modificationMerchantReference"; + public static final String JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE = + "modificationMerchantReference"; private String modificationMerchantReference; public static final String JSON_PROPERTY_MODIFICATION_PSP_REFERENCE = "modificationPspReference"; @@ -47,10 +42,28 @@ public class PlatformPayment { private String paymentMerchantReference; /** - * Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. + * Specifies the nature of the transfer. This parameter helps categorize transfers so you can + * reconcile transactions at a later time, using the Balance Platform Accounting Report for + * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) + * or + * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). + * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * + * **AdyenCommission**: for the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). + * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's + * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen + * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale + * amount of a transaction. * **Commission**: for your platform's commission on a transaction. + * * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * + * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * + * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount + * after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This + * is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge + * paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * + * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for + * the Value Added Tax. */ public enum PlatformPaymentTypeEnum { - ACQUIRINGFEES(String.valueOf("AcquiringFees")), ADYENCOMMISSION(String.valueOf("AdyenCommission")), @@ -90,7 +103,7 @@ public enum PlatformPaymentTypeEnum { private String value; PlatformPaymentTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -111,7 +124,11 @@ public static PlatformPaymentTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("PlatformPaymentTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(PlatformPaymentTypeEnum.values())); + LOG.warning( + "PlatformPaymentTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(PlatformPaymentTypeEnum.values())); return null; } } @@ -122,11 +139,8 @@ public static PlatformPaymentTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_PSP_PAYMENT_REFERENCE = "pspPaymentReference"; private String pspPaymentReference; - /** - * **platformPayment** - */ + /** **platformPayment** */ public enum TypeEnum { - PLATFORMPAYMENT(String.valueOf("platformPayment")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -134,7 +148,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -155,7 +169,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -163,13 +181,13 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public PlatformPayment() { - } + public PlatformPayment() {} /** * The capture's merchant reference included in the transfer. * - * @param modificationMerchantReference The capture's merchant reference included in the transfer. + * @param modificationMerchantReference The capture's merchant reference included in the + * transfer. * @return the current {@code PlatformPayment} instance, allowing for method chaining */ public PlatformPayment modificationMerchantReference(String modificationMerchantReference) { @@ -179,7 +197,9 @@ public PlatformPayment modificationMerchantReference(String modificationMerchant /** * The capture's merchant reference included in the transfer. - * @return modificationMerchantReference The capture's merchant reference included in the transfer. + * + * @return modificationMerchantReference The capture's merchant reference included in the + * transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,7 +210,8 @@ public String getModificationMerchantReference() { /** * The capture's merchant reference included in the transfer. * - * @param modificationMerchantReference The capture's merchant reference included in the transfer. + * @param modificationMerchantReference The capture's merchant reference included in the + * transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,6 +232,7 @@ public PlatformPayment modificationPspReference(String modificationPspReference) /** * The capture reference included in the transfer. + * * @return modificationPspReference The capture reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_MODIFICATION_PSP_REFERENCE) @@ -243,6 +265,7 @@ public PlatformPayment paymentMerchantReference(String paymentMerchantReference) /** * The payment's merchant reference included in the transfer. + * * @return paymentMerchantReference The payment's merchant reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_PAYMENT_MERCHANT_REFERENCE) @@ -263,9 +286,48 @@ public void setPaymentMerchantReference(String paymentMerchantReference) { } /** - * Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. + * Specifies the nature of the transfer. This parameter helps categorize transfers so you can + * reconcile transactions at a later time, using the Balance Platform Accounting Report for + * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) + * or + * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). + * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * + * **AdyenCommission**: for the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). + * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's + * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen + * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale + * amount of a transaction. * **Commission**: for your platform's commission on a transaction. + * * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * + * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * + * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount + * after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This + * is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge + * paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * + * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for + * the Value Added Tax. * - * @param platformPaymentType Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. + * @param platformPaymentType Specifies the nature of the transfer. This parameter helps + * categorize transfers so you can reconcile transactions at a later time, using the Balance + * Platform Accounting Report for + * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) + * or + * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). + * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * + * **AdyenCommission**: for the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). + * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's + * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen + * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the + * sale amount of a transaction. * **Commission**: for your platform's commission on a + * transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a + * transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred + * on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for + * the left over amount after currency conversion. * **SchemeFee**: for the scheme fee + * incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. + * * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for + * the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your + * user's balance account. * **VAT**: for the Value Added Tax. * @return the current {@code PlatformPayment} instance, allowing for method chaining */ public PlatformPayment platformPaymentType(PlatformPaymentTypeEnum platformPaymentType) { @@ -274,8 +336,48 @@ public PlatformPayment platformPaymentType(PlatformPaymentTypeEnum platformPayme } /** - * Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. - * @return platformPaymentType Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. + * Specifies the nature of the transfer. This parameter helps categorize transfers so you can + * reconcile transactions at a later time, using the Balance Platform Accounting Report for + * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) + * or + * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). + * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * + * **AdyenCommission**: for the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). + * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's + * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen + * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale + * amount of a transaction. * **Commission**: for your platform's commission on a transaction. + * * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * + * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * + * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount + * after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This + * is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge + * paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * + * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for + * the Value Added Tax. + * + * @return platformPaymentType Specifies the nature of the transfer. This parameter helps + * categorize transfers so you can reconcile transactions at a later time, using the Balance + * Platform Accounting Report for + * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) + * or + * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). + * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * + * **AdyenCommission**: for the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). + * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's + * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen + * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the + * sale amount of a transaction. * **Commission**: for your platform's commission on a + * transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a + * transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred + * on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for + * the left over amount after currency conversion. * **SchemeFee**: for the scheme fee + * incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. + * * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for + * the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your + * user's balance account. * **VAT**: for the Value Added Tax. */ @JsonProperty(JSON_PROPERTY_PLATFORM_PAYMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,9 +386,48 @@ public PlatformPaymentTypeEnum getPlatformPaymentType() { } /** - * Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. + * Specifies the nature of the transfer. This parameter helps categorize transfers so you can + * reconcile transactions at a later time, using the Balance Platform Accounting Report for + * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) + * or + * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). + * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * + * **AdyenCommission**: for the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). + * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's + * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen + * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale + * amount of a transaction. * **Commission**: for your platform's commission on a transaction. + * * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * + * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * + * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount + * after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This + * is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge + * paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * + * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for + * the Value Added Tax. * - * @param platformPaymentType Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax. + * @param platformPaymentType Specifies the nature of the transfer. This parameter helps + * categorize transfers so you can reconcile transactions at a later time, using the Balance + * Platform Accounting Report for + * [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) + * or + * [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). + * Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * + * **AdyenCommission**: for the transaction fee due to Adyen under [blended + * rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). + * * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's + * commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen + * under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the + * sale amount of a transaction. * **Commission**: for your platform's commission on a + * transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a + * transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred + * on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for + * the left over amount after currency conversion. * **SchemeFee**: for the scheme fee + * incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. + * * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for + * the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your + * user's balance account. * **VAT**: for the Value Added Tax. */ @JsonProperty(JSON_PROPERTY_PLATFORM_PAYMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -307,6 +448,7 @@ public PlatformPayment pspPaymentReference(String pspPaymentReference) { /** * The payment reference included in the transfer. + * * @return pspPaymentReference The payment reference included in the transfer. */ @JsonProperty(JSON_PROPERTY_PSP_PAYMENT_REFERENCE) @@ -339,6 +481,7 @@ public PlatformPayment type(TypeEnum type) { /** * **platformPayment** + * * @return type **platformPayment** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -358,9 +501,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this PlatformPayment object is equal to o. - */ + /** Return true if this PlatformPayment object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -370,36 +511,52 @@ public boolean equals(Object o) { return false; } PlatformPayment platformPayment = (PlatformPayment) o; - return Objects.equals(this.modificationMerchantReference, platformPayment.modificationMerchantReference) && - Objects.equals(this.modificationPspReference, platformPayment.modificationPspReference) && - Objects.equals(this.paymentMerchantReference, platformPayment.paymentMerchantReference) && - Objects.equals(this.platformPaymentType, platformPayment.platformPaymentType) && - Objects.equals(this.pspPaymentReference, platformPayment.pspPaymentReference) && - Objects.equals(this.type, platformPayment.type); + return Objects.equals( + this.modificationMerchantReference, platformPayment.modificationMerchantReference) + && Objects.equals(this.modificationPspReference, platformPayment.modificationPspReference) + && Objects.equals(this.paymentMerchantReference, platformPayment.paymentMerchantReference) + && Objects.equals(this.platformPaymentType, platformPayment.platformPaymentType) + && Objects.equals(this.pspPaymentReference, platformPayment.pspPaymentReference) + && Objects.equals(this.type, platformPayment.type); } @Override public int hashCode() { - return Objects.hash(modificationMerchantReference, modificationPspReference, paymentMerchantReference, platformPaymentType, pspPaymentReference, type); + return Objects.hash( + modificationMerchantReference, + modificationPspReference, + paymentMerchantReference, + platformPaymentType, + pspPaymentReference, + type); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PlatformPayment {\n"); - sb.append(" modificationMerchantReference: ").append(toIndentedString(modificationMerchantReference)).append("\n"); - sb.append(" modificationPspReference: ").append(toIndentedString(modificationPspReference)).append("\n"); - sb.append(" paymentMerchantReference: ").append(toIndentedString(paymentMerchantReference)).append("\n"); - sb.append(" platformPaymentType: ").append(toIndentedString(platformPaymentType)).append("\n"); - sb.append(" pspPaymentReference: ").append(toIndentedString(pspPaymentReference)).append("\n"); + sb.append(" modificationMerchantReference: ") + .append(toIndentedString(modificationMerchantReference)) + .append("\n"); + sb.append(" modificationPspReference: ") + .append(toIndentedString(modificationPspReference)) + .append("\n"); + sb.append(" paymentMerchantReference: ") + .append(toIndentedString(paymentMerchantReference)) + .append("\n"); + sb.append(" platformPaymentType: ") + .append(toIndentedString(platformPaymentType)) + .append("\n"); + sb.append(" pspPaymentReference: ") + .append(toIndentedString(pspPaymentReference)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -408,7 +565,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of PlatformPayment given an JSON string * * @param jsonString JSON string @@ -418,11 +575,12 @@ private String toIndentedString(Object o) { public static PlatformPayment fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, PlatformPayment.class); } -/** - * Convert an instance of PlatformPayment to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of PlatformPayment to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/RelayedAuthorisationData.java b/src/main/java/com/adyen/model/transferwebhooks/RelayedAuthorisationData.java index 476b6a96c..ddc54408d 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/RelayedAuthorisationData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/RelayedAuthorisationData.java @@ -2,38 +2,28 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.HashMap; +import java.util.Map; - -/** - * RelayedAuthorisationData - */ +/** RelayedAuthorisationData */ @JsonPropertyOrder({ RelayedAuthorisationData.JSON_PROPERTY_METADATA, RelayedAuthorisationData.JSON_PROPERTY_REFERENCE }) - public class RelayedAuthorisationData { public static final String JSON_PROPERTY_METADATA = "metadata"; private Map metadata; @@ -41,13 +31,14 @@ public class RelayedAuthorisationData { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public RelayedAuthorisationData() { - } + public RelayedAuthorisationData() {} /** - * Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. + * Contains key-value pairs of your references and descriptions, for example, + * `customId`:`your-own-custom-field-12345`. * - * @param metadata Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. + * @param metadata Contains key-value pairs of your references and descriptions, for example, + * `customId`:`your-own-custom-field-12345`. * @return the current {@code RelayedAuthorisationData} instance, allowing for method chaining */ public RelayedAuthorisationData metadata(Map metadata) { @@ -64,8 +55,11 @@ public RelayedAuthorisationData putMetadataItem(String key, String metadataItem) } /** - * Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. - * @return metadata Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. + * Contains key-value pairs of your references and descriptions, for example, + * `customId`:`your-own-custom-field-12345`. + * + * @return metadata Contains key-value pairs of your references and descriptions, for example, + * `customId`:`your-own-custom-field-12345`. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -74,9 +68,11 @@ public Map getMetadata() { } /** - * Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. + * Contains key-value pairs of your references and descriptions, for example, + * `customId`:`your-own-custom-field-12345`. * - * @param metadata Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. + * @param metadata Contains key-value pairs of your references and descriptions, for example, + * `customId`:`your-own-custom-field-12345`. */ @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,6 +93,7 @@ public RelayedAuthorisationData reference(String reference) { /** * Your reference for the relayed authorisation data. + * * @return reference Your reference for the relayed authorisation data. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -116,9 +113,7 @@ public void setReference(String reference) { this.reference = reference; } - /** - * Return true if this RelayedAuthorisationData object is equal to o. - */ + /** Return true if this RelayedAuthorisationData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -128,8 +123,8 @@ public boolean equals(Object o) { return false; } RelayedAuthorisationData relayedAuthorisationData = (RelayedAuthorisationData) o; - return Objects.equals(this.metadata, relayedAuthorisationData.metadata) && - Objects.equals(this.reference, relayedAuthorisationData.reference); + return Objects.equals(this.metadata, relayedAuthorisationData.metadata) + && Objects.equals(this.reference, relayedAuthorisationData.reference); } @Override @@ -148,8 +143,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -158,21 +152,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of RelayedAuthorisationData given an JSON string * * @param jsonString JSON string * @return An instance of RelayedAuthorisationData - * @throws JsonProcessingException if the JSON string is invalid with respect to RelayedAuthorisationData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * RelayedAuthorisationData */ - public static RelayedAuthorisationData fromJson(String jsonString) throws JsonProcessingException { + public static RelayedAuthorisationData fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, RelayedAuthorisationData.class); } -/** - * Convert an instance of RelayedAuthorisationData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of RelayedAuthorisationData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/Resource.java b/src/main/java/com/adyen/model/transferwebhooks/Resource.java index bdfadb689..960a64abd 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/Resource.java +++ b/src/main/java/com/adyen/model/transferwebhooks/Resource.java @@ -2,38 +2,28 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.time.OffsetDateTime; +import java.util.*; - -/** - * Resource - */ +/** Resource */ @JsonPropertyOrder({ Resource.JSON_PROPERTY_BALANCE_PLATFORM, Resource.JSON_PROPERTY_CREATION_DATE, Resource.JSON_PROPERTY_ID }) - public class Resource { public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform"; private String balancePlatform; @@ -44,8 +34,7 @@ public class Resource { public static final String JSON_PROPERTY_ID = "id"; private String id; - public Resource() { - } + public Resource() {} /** * The unique identifier of the balance platform. @@ -60,6 +49,7 @@ public Resource balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. + * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -80,9 +70,11 @@ public void setBalancePlatform(String balancePlatform) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code Resource} instance, allowing for method chaining */ public Resource creationDate(OffsetDateTime creationDate) { @@ -91,8 +83,11 @@ public Resource creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. + * + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -101,9 +96,11 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2025-03-19T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,6 +121,7 @@ public Resource id(String id) { /** * The ID of the resource. + * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -143,9 +141,7 @@ public void setId(String id) { this.id = id; } - /** - * Return true if this Resource object is equal to o. - */ + /** Return true if this Resource object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -155,9 +151,9 @@ public boolean equals(Object o) { return false; } Resource resource = (Resource) o; - return Objects.equals(this.balancePlatform, resource.balancePlatform) && - Objects.equals(this.creationDate, resource.creationDate) && - Objects.equals(this.id, resource.id); + return Objects.equals(this.balancePlatform, resource.balancePlatform) + && Objects.equals(this.creationDate, resource.creationDate) + && Objects.equals(this.id, resource.id); } @Override @@ -177,8 +173,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -187,7 +182,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of Resource given an JSON string * * @param jsonString JSON string @@ -197,11 +192,12 @@ private String toIndentedString(Object o) { public static Resource fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, Resource.class); } -/** - * Convert an instance of Resource to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of Resource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/ResourceReference.java b/src/main/java/com/adyen/model/transferwebhooks/ResourceReference.java index 17554f633..b3fe1de89 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/ResourceReference.java +++ b/src/main/java/com/adyen/model/transferwebhooks/ResourceReference.java @@ -2,37 +2,27 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ResourceReference - */ +/** ResourceReference */ @JsonPropertyOrder({ ResourceReference.JSON_PROPERTY_DESCRIPTION, ResourceReference.JSON_PROPERTY_ID, ResourceReference.JSON_PROPERTY_REFERENCE }) - public class ResourceReference { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -43,8 +33,7 @@ public class ResourceReference { public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; - public ResourceReference() { - } + public ResourceReference() {} /** * The description of the resource. @@ -59,6 +48,7 @@ public ResourceReference description(String description) { /** * The description of the resource. + * * @return description The description of the resource. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -91,6 +81,7 @@ public ResourceReference id(String id) { /** * The unique identifier of the resource. + * * @return id The unique identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -123,6 +114,7 @@ public ResourceReference reference(String reference) { /** * The reference for the resource. + * * @return reference The reference for the resource. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -142,9 +134,7 @@ public void setReference(String reference) { this.reference = reference; } - /** - * Return true if this ResourceReference object is equal to o. - */ + /** Return true if this ResourceReference object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -154,9 +144,9 @@ public boolean equals(Object o) { return false; } ResourceReference resourceReference = (ResourceReference) o; - return Objects.equals(this.description, resourceReference.description) && - Objects.equals(this.id, resourceReference.id) && - Objects.equals(this.reference, resourceReference.reference); + return Objects.equals(this.description, resourceReference.description) + && Objects.equals(this.id, resourceReference.id) + && Objects.equals(this.reference, resourceReference.reference); } @Override @@ -176,8 +166,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -186,7 +175,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ResourceReference given an JSON string * * @param jsonString JSON string @@ -196,11 +185,12 @@ private String toIndentedString(Object o) { public static ResourceReference fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ResourceReference.class); } -/** - * Convert an instance of ResourceReference to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ResourceReference to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/SELocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/SELocalAccountIdentification.java index 8ad6ff3d6..cbebe8b71 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/SELocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/SELocalAccountIdentification.java @@ -2,37 +2,31 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * SELocalAccountIdentification - */ +/** SELocalAccountIdentification */ @JsonPropertyOrder({ SELocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, SELocalAccountIdentification.JSON_PROPERTY_CLEARING_NUMBER, SELocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class SELocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -40,11 +34,8 @@ public class SELocalAccountIdentification { public static final String JSON_PROPERTY_CLEARING_NUMBER = "clearingNumber"; private String clearingNumber; - /** - * **seLocal** - */ + /** **seLocal** */ public enum TypeEnum { - SELOCAL(String.valueOf("seLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +43,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +64,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,13 +76,16 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public SELocalAccountIdentification() { - } + public SELocalAccountIdentification() {} /** - * The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. + * The 7- to 10-digit bank account number + * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, + * separators, or whitespace. * - * @param accountNumber The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. + * @param accountNumber The 7- to 10-digit bank account number + * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, + * separators, or whitespace. * @return the current {@code SELocalAccountIdentification} instance, allowing for method chaining */ public SELocalAccountIdentification accountNumber(String accountNumber) { @@ -96,8 +94,13 @@ public SELocalAccountIdentification accountNumber(String accountNumber) { } /** - * The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. - * @return accountNumber The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. + * The 7- to 10-digit bank account number + * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, + * separators, or whitespace. + * + * @return accountNumber The 7- to 10-digit bank account number + * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, + * separators, or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +109,13 @@ public String getAccountNumber() { } /** - * The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. + * The 7- to 10-digit bank account number + * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, + * separators, or whitespace. * - * @param accountNumber The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. + * @param accountNumber The 7- to 10-digit bank account number + * ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, + * separators, or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,9 +124,13 @@ public void setAccountNumber(String accountNumber) { } /** - * The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. + * The 4- to 5-digit clearing number + * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or + * whitespace. * - * @param clearingNumber The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. + * @param clearingNumber The 4- to 5-digit clearing number + * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or + * whitespace. * @return the current {@code SELocalAccountIdentification} instance, allowing for method chaining */ public SELocalAccountIdentification clearingNumber(String clearingNumber) { @@ -128,8 +139,13 @@ public SELocalAccountIdentification clearingNumber(String clearingNumber) { } /** - * The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. - * @return clearingNumber The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. + * The 4- to 5-digit clearing number + * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or + * whitespace. + * + * @return clearingNumber The 4- to 5-digit clearing number + * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or + * whitespace. */ @JsonProperty(JSON_PROPERTY_CLEARING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,9 +154,13 @@ public String getClearingNumber() { } /** - * The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. + * The 4- to 5-digit clearing number + * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or + * whitespace. * - * @param clearingNumber The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. + * @param clearingNumber The 4- to 5-digit clearing number + * ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or + * whitespace. */ @JsonProperty(JSON_PROPERTY_CLEARING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,6 +181,7 @@ public SELocalAccountIdentification type(TypeEnum type) { /** * **seLocal** + * * @return type **seLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +201,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this SELocalAccountIdentification object is equal to o. - */ + /** Return true if this SELocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +211,9 @@ public boolean equals(Object o) { return false; } SELocalAccountIdentification seLocalAccountIdentification = (SELocalAccountIdentification) o; - return Objects.equals(this.accountNumber, seLocalAccountIdentification.accountNumber) && - Objects.equals(this.clearingNumber, seLocalAccountIdentification.clearingNumber) && - Objects.equals(this.type, seLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, seLocalAccountIdentification.accountNumber) + && Objects.equals(this.clearingNumber, seLocalAccountIdentification.clearingNumber) + && Objects.equals(this.type, seLocalAccountIdentification.type); } @Override @@ -214,8 +233,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +242,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SELocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of SELocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to SELocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SELocalAccountIdentification */ - public static SELocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static SELocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SELocalAccountIdentification.class); } -/** - * Convert an instance of SELocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SELocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/SGLocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/SGLocalAccountIdentification.java index 77f78bffa..1d088d87f 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/SGLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/SGLocalAccountIdentification.java @@ -2,37 +2,31 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * SGLocalAccountIdentification - */ +/** SGLocalAccountIdentification */ @JsonPropertyOrder({ SGLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, SGLocalAccountIdentification.JSON_PROPERTY_BIC, SGLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class SGLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -40,11 +34,8 @@ public class SGLocalAccountIdentification { public static final String JSON_PROPERTY_BIC = "bic"; private String bic; - /** - * **sgLocal** - */ + /** **sgLocal** */ public enum TypeEnum { - SGLOCAL(String.valueOf("sgLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +43,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +64,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,8 +76,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public SGLocalAccountIdentification() { - } + public SGLocalAccountIdentification() {} /** * The 4- to 19-digit bank account number, without separators or whitespace. @@ -97,6 +91,7 @@ public SGLocalAccountIdentification accountNumber(String accountNumber) { /** * The 4- to 19-digit bank account number, without separators or whitespace. + * * @return accountNumber The 4- to 19-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -129,6 +124,7 @@ public SGLocalAccountIdentification bic(String bic) { /** * The bank's 8- or 11-character BIC or SWIFT code. + * * @return bic The bank's 8- or 11-character BIC or SWIFT code. */ @JsonProperty(JSON_PROPERTY_BIC) @@ -161,6 +157,7 @@ public SGLocalAccountIdentification type(TypeEnum type) { /** * **sgLocal** + * * @return type **sgLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +177,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this SGLocalAccountIdentification object is equal to o. - */ + /** Return true if this SGLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +187,9 @@ public boolean equals(Object o) { return false; } SGLocalAccountIdentification sgLocalAccountIdentification = (SGLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, sgLocalAccountIdentification.accountNumber) && - Objects.equals(this.bic, sgLocalAccountIdentification.bic) && - Objects.equals(this.type, sgLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, sgLocalAccountIdentification.accountNumber) + && Objects.equals(this.bic, sgLocalAccountIdentification.bic) + && Objects.equals(this.type, sgLocalAccountIdentification.type); } @Override @@ -214,8 +209,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +218,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of SGLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of SGLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to SGLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * SGLocalAccountIdentification */ - public static SGLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static SGLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, SGLocalAccountIdentification.class); } -/** - * Convert an instance of SGLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of SGLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/ThreeDSecure.java b/src/main/java/com/adyen/model/transferwebhooks/ThreeDSecure.java index aebc2b7d0..bda7e6d8f 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/ThreeDSecure.java +++ b/src/main/java/com/adyen/model/transferwebhooks/ThreeDSecure.java @@ -2,41 +2,28 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * ThreeDSecure - */ -@JsonPropertyOrder({ - ThreeDSecure.JSON_PROPERTY_ACS_TRANSACTION_ID -}) - +/** ThreeDSecure */ +@JsonPropertyOrder({ThreeDSecure.JSON_PROPERTY_ACS_TRANSACTION_ID}) public class ThreeDSecure { public static final String JSON_PROPERTY_ACS_TRANSACTION_ID = "acsTransactionId"; private String acsTransactionId; - public ThreeDSecure() { - } + public ThreeDSecure() {} /** * The transaction identifier for the Access Control Server @@ -51,6 +38,7 @@ public ThreeDSecure acsTransactionId(String acsTransactionId) { /** * The transaction identifier for the Access Control Server + * * @return acsTransactionId The transaction identifier for the Access Control Server */ @JsonProperty(JSON_PROPERTY_ACS_TRANSACTION_ID) @@ -70,9 +58,7 @@ public void setAcsTransactionId(String acsTransactionId) { this.acsTransactionId = acsTransactionId; } - /** - * Return true if this ThreeDSecure object is equal to o. - */ + /** Return true if this ThreeDSecure object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,8 +86,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -110,7 +95,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of ThreeDSecure given an JSON string * * @param jsonString JSON string @@ -120,11 +105,12 @@ private String toIndentedString(Object o) { public static ThreeDSecure fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, ThreeDSecure.class); } -/** - * Convert an instance of ThreeDSecure to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of ThreeDSecure to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransactionEventViolation.java b/src/main/java/com/adyen/model/transferwebhooks/TransactionEventViolation.java index a2815f4ab..bf42d1869 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransactionEventViolation.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransactionEventViolation.java @@ -2,39 +2,27 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transferwebhooks.TransactionRuleReference; -import com.adyen.model.transferwebhooks.TransactionRuleSource; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TransactionEventViolation - */ +/** TransactionEventViolation */ @JsonPropertyOrder({ TransactionEventViolation.JSON_PROPERTY_REASON, TransactionEventViolation.JSON_PROPERTY_TRANSACTION_RULE, TransactionEventViolation.JSON_PROPERTY_TRANSACTION_RULE_SOURCE }) - public class TransactionEventViolation { public static final String JSON_PROPERTY_REASON = "reason"; private String reason; @@ -45,8 +33,7 @@ public class TransactionEventViolation { public static final String JSON_PROPERTY_TRANSACTION_RULE_SOURCE = "transactionRuleSource"; private TransactionRuleSource transactionRuleSource; - public TransactionEventViolation() { - } + public TransactionEventViolation() {} /** * An explanation about why the transaction rule failed. @@ -61,6 +48,7 @@ public TransactionEventViolation reason(String reason) { /** * An explanation about why the transaction rule failed. + * * @return reason An explanation about why the transaction rule failed. */ @JsonProperty(JSON_PROPERTY_REASON) @@ -83,7 +71,7 @@ public void setReason(String reason) { /** * transactionRule * - * @param transactionRule + * @param transactionRule * @return the current {@code TransactionEventViolation} instance, allowing for method chaining */ public TransactionEventViolation transactionRule(TransactionRuleReference transactionRule) { @@ -93,7 +81,8 @@ public TransactionEventViolation transactionRule(TransactionRuleReference transa /** * Get transactionRule - * @return transactionRule + * + * @return transactionRule */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -104,7 +93,7 @@ public TransactionRuleReference getTransactionRule() { /** * transactionRule * - * @param transactionRule + * @param transactionRule */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -115,17 +104,19 @@ public void setTransactionRule(TransactionRuleReference transactionRule) { /** * transactionRuleSource * - * @param transactionRuleSource + * @param transactionRuleSource * @return the current {@code TransactionEventViolation} instance, allowing for method chaining */ - public TransactionEventViolation transactionRuleSource(TransactionRuleSource transactionRuleSource) { + public TransactionEventViolation transactionRuleSource( + TransactionRuleSource transactionRuleSource) { this.transactionRuleSource = transactionRuleSource; return this; } /** * Get transactionRuleSource - * @return transactionRuleSource + * + * @return transactionRuleSource */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULE_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,7 +127,7 @@ public TransactionRuleSource getTransactionRuleSource() { /** * transactionRuleSource * - * @param transactionRuleSource + * @param transactionRuleSource */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULE_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,9 +135,7 @@ public void setTransactionRuleSource(TransactionRuleSource transactionRuleSource this.transactionRuleSource = transactionRuleSource; } - /** - * Return true if this TransactionEventViolation object is equal to o. - */ + /** Return true if this TransactionEventViolation object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -156,9 +145,10 @@ public boolean equals(Object o) { return false; } TransactionEventViolation transactionEventViolation = (TransactionEventViolation) o; - return Objects.equals(this.reason, transactionEventViolation.reason) && - Objects.equals(this.transactionRule, transactionEventViolation.transactionRule) && - Objects.equals(this.transactionRuleSource, transactionEventViolation.transactionRuleSource); + return Objects.equals(this.reason, transactionEventViolation.reason) + && Objects.equals(this.transactionRule, transactionEventViolation.transactionRule) + && Objects.equals( + this.transactionRuleSource, transactionEventViolation.transactionRuleSource); } @Override @@ -172,14 +162,15 @@ public String toString() { sb.append("class TransactionEventViolation {\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" transactionRule: ").append(toIndentedString(transactionRule)).append("\n"); - sb.append(" transactionRuleSource: ").append(toIndentedString(transactionRuleSource)).append("\n"); + sb.append(" transactionRuleSource: ") + .append(toIndentedString(transactionRuleSource)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -188,21 +179,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransactionEventViolation given an JSON string * * @param jsonString JSON string * @return An instance of TransactionEventViolation - * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionEventViolation + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TransactionEventViolation */ - public static TransactionEventViolation fromJson(String jsonString) throws JsonProcessingException { + public static TransactionEventViolation fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionEventViolation.class); } -/** - * Convert an instance of TransactionEventViolation to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransactionEventViolation to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransactionRuleReference.java b/src/main/java/com/adyen/model/transferwebhooks/TransactionRuleReference.java index 3782b01f6..73caf743b 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransactionRuleReference.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransactionRuleReference.java @@ -2,31 +2,22 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TransactionRuleReference - */ +/** TransactionRuleReference */ @JsonPropertyOrder({ TransactionRuleReference.JSON_PROPERTY_DESCRIPTION, TransactionRuleReference.JSON_PROPERTY_ID, @@ -34,7 +25,6 @@ TransactionRuleReference.JSON_PROPERTY_REFERENCE, TransactionRuleReference.JSON_PROPERTY_SCORE }) - public class TransactionRuleReference { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -51,8 +41,7 @@ public class TransactionRuleReference { public static final String JSON_PROPERTY_SCORE = "score"; private Integer score; - public TransactionRuleReference() { - } + public TransactionRuleReference() {} /** * The description of the resource. @@ -67,6 +56,7 @@ public TransactionRuleReference description(String description) { /** * The description of the resource. + * * @return description The description of the resource. */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @@ -99,6 +89,7 @@ public TransactionRuleReference id(String id) { /** * The unique identifier of the resource. + * * @return id The unique identifier of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -131,6 +122,7 @@ public TransactionRuleReference outcomeType(String outcomeType) { /** * The outcome type of the rule. + * * @return outcomeType The outcome type of the rule. */ @JsonProperty(JSON_PROPERTY_OUTCOME_TYPE) @@ -163,6 +155,7 @@ public TransactionRuleReference reference(String reference) { /** * The reference for the resource. + * * @return reference The reference for the resource. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @@ -183,9 +176,11 @@ public void setReference(String reference) { } /** - * The transaction score determined by the rule. Returned only when `outcomeType` is **scoreBased**. + * The transaction score determined by the rule. Returned only when `outcomeType` is + * **scoreBased**. * - * @param score The transaction score determined by the rule. Returned only when `outcomeType` is **scoreBased**. + * @param score The transaction score determined by the rule. Returned only when + * `outcomeType` is **scoreBased**. * @return the current {@code TransactionRuleReference} instance, allowing for method chaining */ public TransactionRuleReference score(Integer score) { @@ -194,8 +189,11 @@ public TransactionRuleReference score(Integer score) { } /** - * The transaction score determined by the rule. Returned only when `outcomeType` is **scoreBased**. - * @return score The transaction score determined by the rule. Returned only when `outcomeType` is **scoreBased**. + * The transaction score determined by the rule. Returned only when `outcomeType` is + * **scoreBased**. + * + * @return score The transaction score determined by the rule. Returned only when + * `outcomeType` is **scoreBased**. */ @JsonProperty(JSON_PROPERTY_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,9 +202,11 @@ public Integer getScore() { } /** - * The transaction score determined by the rule. Returned only when `outcomeType` is **scoreBased**. + * The transaction score determined by the rule. Returned only when `outcomeType` is + * **scoreBased**. * - * @param score The transaction score determined by the rule. Returned only when `outcomeType` is **scoreBased**. + * @param score The transaction score determined by the rule. Returned only when + * `outcomeType` is **scoreBased**. */ @JsonProperty(JSON_PROPERTY_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,9 +214,7 @@ public void setScore(Integer score) { this.score = score; } - /** - * Return true if this TransactionRuleReference object is equal to o. - */ + /** Return true if this TransactionRuleReference object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -226,11 +224,11 @@ public boolean equals(Object o) { return false; } TransactionRuleReference transactionRuleReference = (TransactionRuleReference) o; - return Objects.equals(this.description, transactionRuleReference.description) && - Objects.equals(this.id, transactionRuleReference.id) && - Objects.equals(this.outcomeType, transactionRuleReference.outcomeType) && - Objects.equals(this.reference, transactionRuleReference.reference) && - Objects.equals(this.score, transactionRuleReference.score); + return Objects.equals(this.description, transactionRuleReference.description) + && Objects.equals(this.id, transactionRuleReference.id) + && Objects.equals(this.outcomeType, transactionRuleReference.outcomeType) + && Objects.equals(this.reference, transactionRuleReference.reference) + && Objects.equals(this.score, transactionRuleReference.score); } @Override @@ -252,8 +250,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -262,21 +259,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransactionRuleReference given an JSON string * * @param jsonString JSON string * @return An instance of TransactionRuleReference - * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionRuleReference + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TransactionRuleReference */ - public static TransactionRuleReference fromJson(String jsonString) throws JsonProcessingException { + public static TransactionRuleReference fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionRuleReference.class); } -/** - * Convert an instance of TransactionRuleReference to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransactionRuleReference to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransactionRuleSource.java b/src/main/java/com/adyen/model/transferwebhooks/TransactionRuleSource.java index b658fc674..73cab0fca 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransactionRuleSource.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransactionRuleSource.java @@ -2,36 +2,26 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TransactionRuleSource - */ +/** TransactionRuleSource */ @JsonPropertyOrder({ TransactionRuleSource.JSON_PROPERTY_ID, TransactionRuleSource.JSON_PROPERTY_TYPE }) - public class TransactionRuleSource { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -39,8 +29,7 @@ public class TransactionRuleSource { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public TransactionRuleSource() { - } + public TransactionRuleSource() {} /** * ID of the resource, when applicable. @@ -55,6 +44,7 @@ public TransactionRuleSource id(String id) { /** * ID of the resource, when applicable. + * * @return id ID of the resource, when applicable. */ @JsonProperty(JSON_PROPERTY_ID) @@ -75,9 +65,15 @@ public void setId(String id) { } /** - * Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. + * Indicates the type of resource for which the transaction rule is defined. Possible values: * + * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * + * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule + * imposed by Adyen. * - * @param type Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. + * @param type Indicates the type of resource for which the transaction rule is defined. Possible + * values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * + * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide + * rule imposed by Adyen. * @return the current {@code TransactionRuleSource} instance, allowing for method chaining */ public TransactionRuleSource type(String type) { @@ -86,8 +82,15 @@ public TransactionRuleSource type(String type) { } /** - * Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. - * @return type Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. + * Indicates the type of resource for which the transaction rule is defined. Possible values: * + * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * + * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule + * imposed by Adyen. + * + * @return type Indicates the type of resource for which the transaction rule is defined. Possible + * values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * + * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide + * rule imposed by Adyen. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -96,9 +99,15 @@ public String getType() { } /** - * Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. + * Indicates the type of resource for which the transaction rule is defined. Possible values: * + * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * + * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule + * imposed by Adyen. * - * @param type Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. + * @param type Indicates the type of resource for which the transaction rule is defined. Possible + * values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * + * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide + * rule imposed by Adyen. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +115,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this TransactionRuleSource object is equal to o. - */ + /** Return true if this TransactionRuleSource object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -118,8 +125,8 @@ public boolean equals(Object o) { return false; } TransactionRuleSource transactionRuleSource = (TransactionRuleSource) o; - return Objects.equals(this.id, transactionRuleSource.id) && - Objects.equals(this.type, transactionRuleSource.type); + return Objects.equals(this.id, transactionRuleSource.id) + && Objects.equals(this.type, transactionRuleSource.type); } @Override @@ -138,8 +145,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +154,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransactionRuleSource given an JSON string * * @param jsonString JSON string * @return An instance of TransactionRuleSource - * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionRuleSource + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TransactionRuleSource */ public static TransactionRuleSource fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionRuleSource.class); } -/** - * Convert an instance of TransactionRuleSource to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransactionRuleSource to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransactionRulesResult.java b/src/main/java/com/adyen/model/transferwebhooks/TransactionRulesResult.java index 466fe6897..8a6be6073 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransactionRulesResult.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransactionRulesResult.java @@ -2,41 +2,30 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transferwebhooks.TransactionEventViolation; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; - -/** - * TransactionRulesResult - */ +/** TransactionRulesResult */ @JsonPropertyOrder({ TransactionRulesResult.JSON_PROPERTY_ADVICE, TransactionRulesResult.JSON_PROPERTY_ALL_HARD_BLOCK_RULES_PASSED, TransactionRulesResult.JSON_PROPERTY_SCORE, TransactionRulesResult.JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES }) - public class TransactionRulesResult { public static final String JSON_PROPERTY_ADVICE = "advice"; private String advice; @@ -47,11 +36,11 @@ public class TransactionRulesResult { public static final String JSON_PROPERTY_SCORE = "score"; private Integer score; - public static final String JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES = "triggeredTransactionRules"; + public static final String JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES = + "triggeredTransactionRules"; private List triggeredTransactionRules; - public TransactionRulesResult() { - } + public TransactionRulesResult() {} /** * The advice given by the Risk analysis. @@ -66,6 +55,7 @@ public TransactionRulesResult advice(String advice) { /** * The advice given by the Risk analysis. + * * @return advice The advice given by the Risk analysis. */ @JsonProperty(JSON_PROPERTY_ADVICE) @@ -88,7 +78,8 @@ public void setAdvice(String advice) { /** * Indicates whether the transaction passed the evaluation for all hardblock rules * - * @param allHardBlockRulesPassed Indicates whether the transaction passed the evaluation for all hardblock rules + * @param allHardBlockRulesPassed Indicates whether the transaction passed the evaluation for all + * hardblock rules * @return the current {@code TransactionRulesResult} instance, allowing for method chaining */ public TransactionRulesResult allHardBlockRulesPassed(Boolean allHardBlockRulesPassed) { @@ -98,7 +89,9 @@ public TransactionRulesResult allHardBlockRulesPassed(Boolean allHardBlockRulesP /** * Indicates whether the transaction passed the evaluation for all hardblock rules - * @return allHardBlockRulesPassed Indicates whether the transaction passed the evaluation for all hardblock rules + * + * @return allHardBlockRulesPassed Indicates whether the transaction passed the evaluation for all + * hardblock rules */ @JsonProperty(JSON_PROPERTY_ALL_HARD_BLOCK_RULES_PASSED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -109,7 +102,8 @@ public Boolean getAllHardBlockRulesPassed() { /** * Indicates whether the transaction passed the evaluation for all hardblock rules * - * @param allHardBlockRulesPassed Indicates whether the transaction passed the evaluation for all hardblock rules + * @param allHardBlockRulesPassed Indicates whether the transaction passed the evaluation for all + * hardblock rules */ @JsonProperty(JSON_PROPERTY_ALL_HARD_BLOCK_RULES_PASSED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -130,6 +124,7 @@ public TransactionRulesResult score(Integer score) { /** * The score of the Risk analysis. + * * @return score The score of the Risk analysis. */ @JsonProperty(JSON_PROPERTY_SCORE) @@ -152,15 +147,18 @@ public void setScore(Integer score) { /** * Array containing all the transaction rules that the transaction triggered. * - * @param triggeredTransactionRules Array containing all the transaction rules that the transaction triggered. + * @param triggeredTransactionRules Array containing all the transaction rules that the + * transaction triggered. * @return the current {@code TransactionRulesResult} instance, allowing for method chaining */ - public TransactionRulesResult triggeredTransactionRules(List triggeredTransactionRules) { + public TransactionRulesResult triggeredTransactionRules( + List triggeredTransactionRules) { this.triggeredTransactionRules = triggeredTransactionRules; return this; } - public TransactionRulesResult addTriggeredTransactionRulesItem(TransactionEventViolation triggeredTransactionRulesItem) { + public TransactionRulesResult addTriggeredTransactionRulesItem( + TransactionEventViolation triggeredTransactionRulesItem) { if (this.triggeredTransactionRules == null) { this.triggeredTransactionRules = new ArrayList<>(); } @@ -170,7 +168,9 @@ public TransactionRulesResult addTriggeredTransactionRulesItem(TransactionEventV /** * Array containing all the transaction rules that the transaction triggered. - * @return triggeredTransactionRules Array containing all the transaction rules that the transaction triggered. + * + * @return triggeredTransactionRules Array containing all the transaction rules that the + * transaction triggered. */ @JsonProperty(JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,17 +181,17 @@ public List getTriggeredTransactionRules() { /** * Array containing all the transaction rules that the transaction triggered. * - * @param triggeredTransactionRules Array containing all the transaction rules that the transaction triggered. + * @param triggeredTransactionRules Array containing all the transaction rules that the + * transaction triggered. */ @JsonProperty(JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTriggeredTransactionRules(List triggeredTransactionRules) { + public void setTriggeredTransactionRules( + List triggeredTransactionRules) { this.triggeredTransactionRules = triggeredTransactionRules; } - /** - * Return true if this TransactionRulesResult object is equal to o. - */ + /** Return true if this TransactionRulesResult object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -201,10 +201,12 @@ public boolean equals(Object o) { return false; } TransactionRulesResult transactionRulesResult = (TransactionRulesResult) o; - return Objects.equals(this.advice, transactionRulesResult.advice) && - Objects.equals(this.allHardBlockRulesPassed, transactionRulesResult.allHardBlockRulesPassed) && - Objects.equals(this.score, transactionRulesResult.score) && - Objects.equals(this.triggeredTransactionRules, transactionRulesResult.triggeredTransactionRules); + return Objects.equals(this.advice, transactionRulesResult.advice) + && Objects.equals( + this.allHardBlockRulesPassed, transactionRulesResult.allHardBlockRulesPassed) + && Objects.equals(this.score, transactionRulesResult.score) + && Objects.equals( + this.triggeredTransactionRules, transactionRulesResult.triggeredTransactionRules); } @Override @@ -217,16 +219,19 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TransactionRulesResult {\n"); sb.append(" advice: ").append(toIndentedString(advice)).append("\n"); - sb.append(" allHardBlockRulesPassed: ").append(toIndentedString(allHardBlockRulesPassed)).append("\n"); + sb.append(" allHardBlockRulesPassed: ") + .append(toIndentedString(allHardBlockRulesPassed)) + .append("\n"); sb.append(" score: ").append(toIndentedString(score)).append("\n"); - sb.append(" triggeredTransactionRules: ").append(toIndentedString(triggeredTransactionRules)).append("\n"); + sb.append(" triggeredTransactionRules: ") + .append(toIndentedString(triggeredTransactionRules)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -235,21 +240,23 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransactionRulesResult given an JSON string * * @param jsonString JSON string * @return An instance of TransactionRulesResult - * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionRulesResult + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TransactionRulesResult */ public static TransactionRulesResult fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransactionRulesResult.class); } -/** - * Convert an instance of TransactionRulesResult to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransactionRulesResult to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferData.java b/src/main/java/com/adyen/model/transferwebhooks/TransferData.java index dccb11ed1..5fc6b8a7f 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferData.java @@ -2,47 +2,29 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transferwebhooks.Amount; -import com.adyen.model.transferwebhooks.BalanceMutation; -import com.adyen.model.transferwebhooks.DirectDebitInformation; -import com.adyen.model.transferwebhooks.ExecutionDate; -import com.adyen.model.transferwebhooks.ExternalReason; -import com.adyen.model.transferwebhooks.PaymentInstrument; -import com.adyen.model.transferwebhooks.ResourceReference; -import com.adyen.model.transferwebhooks.TransactionRulesResult; -import com.adyen.model.transferwebhooks.TransferDataCategoryData; -import com.adyen.model.transferwebhooks.TransferDataTracking; -import com.adyen.model.transferwebhooks.TransferEvent; -import com.adyen.model.transferwebhooks.TransferNotificationCounterParty; -import com.adyen.model.transferwebhooks.TransferReview; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * TransferData - */ +/** TransferData */ @JsonPropertyOrder({ TransferData.JSON_PROPERTY_ACCOUNT_HOLDER, TransferData.JSON_PROPERTY_AMOUNT, @@ -74,7 +56,6 @@ TransferData.JSON_PROPERTY_TYPE, TransferData.JSON_PROPERTY_UPDATED_AT }) - public class TransferData { public static final String JSON_PROPERTY_ACCOUNT_HOLDER = "accountHolder"; private ResourceReference accountHolder; @@ -92,10 +73,16 @@ public class TransferData { private List balances; /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a + * transfer between [balance + * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - + * **platformPayment**: funds movements related to payments that are acquired for your users. - + * **topUp**: an incoming transfer initiated by your user to top up their balance account. */ public enum CategoryEnum { - BANK(String.valueOf("bank")), CARD(String.valueOf("card")), @@ -113,7 +100,7 @@ public enum CategoryEnum { private String value; CategoryEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -134,7 +121,11 @@ public static CategoryEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("CategoryEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(CategoryEnum.values())); + LOG.warning( + "CategoryEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(CategoryEnum.values())); return null; } } @@ -161,11 +152,8 @@ public static CategoryEnum fromValue(String value) { public static final String JSON_PROPERTY_DIRECT_DEBIT_INFORMATION = "directDebitInformation"; private DirectDebitInformation directDebitInformation; - /** - * The direction of the transfer. Possible values: **incoming**, **outgoing**. - */ + /** The direction of the transfer. Possible values: **incoming**, **outgoing**. */ public enum DirectionEnum { - INCOMING(String.valueOf("incoming")), OUTGOING(String.valueOf("outgoing")); @@ -175,7 +163,7 @@ public enum DirectionEnum { private String value; DirectionEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -196,7 +184,11 @@ public static DirectionEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("DirectionEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(DirectionEnum.values())); + LOG.warning( + "DirectionEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(DirectionEnum.values())); return null; } } @@ -222,11 +214,8 @@ public static DirectionEnum fromValue(String value) { public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT = "paymentInstrument"; private PaymentInstrument paymentInstrument; - /** - * Additional information about the status of the transfer. - */ + /** Additional information about the status of the transfer. */ public enum ReasonEnum { - ACCOUNTHIERARCHYNOTACTIVE(String.valueOf("accountHierarchyNotActive")), AMOUNTLIMITEXCEEDED(String.valueOf("amountLimitExceeded")), @@ -235,7 +224,8 @@ public enum ReasonEnum { APPROVED(String.valueOf("approved")), - BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE(String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), + BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE( + String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), COUNTERPARTYACCOUNTBLOCKED(String.valueOf("counterpartyAccountBlocked")), @@ -282,7 +272,7 @@ public enum ReasonEnum { private String value; ReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -303,7 +293,11 @@ public static ReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ReasonEnum.values())); + LOG.warning( + "ReasonEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ReasonEnum.values())); return null; } } @@ -324,10 +318,13 @@ public static ReasonEnum fromValue(String value) { private Integer sequenceNumber; /** - * The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. + * The result of the transfer. For example: - **received**: an outgoing transfer request is + * created. - **authorised**: the transfer request is authorized and the funds are reserved. - + * **booked**: the funds are deducted from your user's balance account. - **failed**: the + * transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned + * by the counterparty's bank. */ public enum StatusEnum { - APPROVALPENDING(String.valueOf("approvalPending")), ATMWITHDRAWAL(String.valueOf("atmWithdrawal")), @@ -467,7 +464,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -488,7 +485,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -503,10 +504,10 @@ public static StatusEnum fromValue(String value) { private TransactionRulesResult transactionRulesResult; /** - * The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. + * The type of transfer or transaction. For example, **refund**, **payment**, + * **internalTransfer**, **bankTransfer**. */ public enum TypeEnum { - PAYMENT(String.valueOf("payment")), CAPTURE(String.valueOf("capture")), @@ -588,7 +589,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -609,7 +610,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -620,13 +625,12 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt"; private OffsetDateTime updatedAt; - public TransferData() { - } + public TransferData() {} /** * accountHolder * - * @param accountHolder + * @param accountHolder * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData accountHolder(ResourceReference accountHolder) { @@ -636,7 +640,8 @@ public TransferData accountHolder(ResourceReference accountHolder) { /** * Get accountHolder - * @return accountHolder + * + * @return accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -647,7 +652,7 @@ public ResourceReference getAccountHolder() { /** * accountHolder * - * @param accountHolder + * @param accountHolder */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -658,7 +663,7 @@ public void setAccountHolder(ResourceReference accountHolder) { /** * amount * - * @param amount + * @param amount * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData amount(Amount amount) { @@ -668,7 +673,8 @@ public TransferData amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -679,7 +685,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -690,7 +696,7 @@ public void setAmount(Amount amount) { /** * balanceAccount * - * @param balanceAccount + * @param balanceAccount * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData balanceAccount(ResourceReference balanceAccount) { @@ -700,7 +706,8 @@ public TransferData balanceAccount(ResourceReference balanceAccount) { /** * Get balanceAccount - * @return balanceAccount + * + * @return balanceAccount */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -711,7 +718,7 @@ public ResourceReference getBalanceAccount() { /** * balanceAccount * - * @param balanceAccount + * @param balanceAccount */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -732,6 +739,7 @@ public TransferData balancePlatform(String balancePlatform) { /** * The unique identifier of the balance platform. + * * @return balancePlatform The unique identifier of the balance platform. */ @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM) @@ -772,6 +780,7 @@ public TransferData addBalancesItem(BalanceMutation balancesItem) { /** * The list of the latest balance statuses in the transfer. + * * @return balances The list of the latest balance statuses in the transfer. */ @JsonProperty(JSON_PROPERTY_BALANCES) @@ -792,9 +801,24 @@ public void setBalances(List balances) { } /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a + * transfer between [balance + * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - + * **platformPayment**: funds movements related to payments that are acquired for your users. - + * **topUp**: an incoming transfer initiated by your user to top up their balance account. * - * @param category The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * @param category The category of the transfer. Possible values: - **bank**: a transfer involving + * a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a + * transfer between [balance + * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - + * **platformPayment**: funds movements related to payments that are acquired for your users. + * - **topUp**: an incoming transfer initiated by your user to top up their balance account. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData category(CategoryEnum category) { @@ -803,8 +827,24 @@ public TransferData category(CategoryEnum category) { } /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. - * @return category The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a + * transfer between [balance + * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - + * **platformPayment**: funds movements related to payments that are acquired for your users. - + * **topUp**: an incoming transfer initiated by your user to top up their balance account. + * + * @return category The category of the transfer. Possible values: - **bank**: a transfer + * involving a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a + * transfer between [balance + * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - + * **platformPayment**: funds movements related to payments that are acquired for your users. + * - **topUp**: an incoming transfer initiated by your user to top up their balance account. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -813,9 +853,24 @@ public CategoryEnum getCategory() { } /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a + * transfer between [balance + * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - + * **platformPayment**: funds movements related to payments that are acquired for your users. - + * **topUp**: an incoming transfer initiated by your user to top up their balance account. * - * @param category The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * @param category The category of the transfer. Possible values: - **bank**: a transfer involving + * a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a + * transfer between [balance + * accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - + * **platformPayment**: funds movements related to payments that are acquired for your users. + * - **topUp**: an incoming transfer initiated by your user to top up their balance account. */ @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -826,7 +881,7 @@ public void setCategory(CategoryEnum category) { /** * categoryData * - * @param categoryData + * @param categoryData * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData categoryData(TransferDataCategoryData categoryData) { @@ -836,7 +891,8 @@ public TransferData categoryData(TransferDataCategoryData categoryData) { /** * Get categoryData - * @return categoryData + * + * @return categoryData */ @JsonProperty(JSON_PROPERTY_CATEGORY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -847,7 +903,7 @@ public TransferDataCategoryData getCategoryData() { /** * categoryData * - * @param categoryData + * @param categoryData */ @JsonProperty(JSON_PROPERTY_CATEGORY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -858,7 +914,7 @@ public void setCategoryData(TransferDataCategoryData categoryData) { /** * counterparty * - * @param counterparty + * @param counterparty * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData counterparty(TransferNotificationCounterParty counterparty) { @@ -868,7 +924,8 @@ public TransferData counterparty(TransferNotificationCounterParty counterparty) /** * Get counterparty - * @return counterparty + * + * @return counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -879,7 +936,7 @@ public TransferNotificationCounterParty getCounterparty() { /** * counterparty * - * @param counterparty + * @param counterparty */ @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -888,9 +945,11 @@ public void setCounterparty(TransferNotificationCounterParty counterparty) { } /** - * The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the transfer was created, in ISO 8601 extended format. For example, + * **2020-12-18T10:15:30+01:00**. * - * @param createdAt The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * @param createdAt The date and time when the transfer was created, in ISO 8601 extended format. + * For example, **2020-12-18T10:15:30+01:00**. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData createdAt(OffsetDateTime createdAt) { @@ -899,8 +958,11 @@ public TransferData createdAt(OffsetDateTime createdAt) { } /** - * The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. - * @return createdAt The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the transfer was created, in ISO 8601 extended format. For example, + * **2020-12-18T10:15:30+01:00**. + * + * @return createdAt The date and time when the transfer was created, in ISO 8601 extended format. + * For example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -909,9 +971,11 @@ public OffsetDateTime getCreatedAt() { } /** - * The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the transfer was created, in ISO 8601 extended format. For example, + * **2020-12-18T10:15:30+01:00**. * - * @param createdAt The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * @param createdAt The date and time when the transfer was created, in ISO 8601 extended format. + * For example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -920,13 +984,13 @@ public void setCreatedAt(OffsetDateTime createdAt) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2020-12-18T10:15:30+01:00**. * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2020-12-18T10:15:30+01:00**. * @return the current {@code TransferData} instance, allowing for method chaining - * - * @deprecated since Transfer webhooks v3 - * Use createdAt or updatedAt + * @deprecated since Transfer webhooks v3 Use createdAt or updatedAt */ @Deprecated // deprecated since Transfer webhooks v3: Use createdAt or updatedAt public TransferData creationDate(OffsetDateTime creationDate) { @@ -935,8 +999,11 @@ public TransferData creationDate(OffsetDateTime creationDate) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. - * @return creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2020-12-18T10:15:30+01:00**. + * + * @return creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2020-12-18T10:15:30+01:00**. * @deprecated // deprecated since Transfer webhooks v3: Use createdAt or updatedAt */ @Deprecated // deprecated since Transfer webhooks v3: Use createdAt or updatedAt @@ -947,12 +1014,12 @@ public OffsetDateTime getCreationDate() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. - * - * @param creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2020-12-18T10:15:30+01:00**. * - * @deprecated since Transfer webhooks v3 - * Use createdAt or updatedAt + * @param creationDate The date and time when the event was triggered, in ISO 8601 extended + * format. For example, **2020-12-18T10:15:30+01:00**. + * @deprecated since Transfer webhooks v3 Use createdAt or updatedAt */ @Deprecated // deprecated since Transfer webhooks v3: Use createdAt or updatedAt @JsonProperty(JSON_PROPERTY_CREATION_DATE) @@ -962,9 +1029,17 @@ public void setCreationDate(OffsetDateTime creationDate) { } /** - * Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * Your description for the transfer. It is used by most banks as the transfer description. We + * recommend sending a maximum of 140 characters, otherwise the description may be truncated. + * Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported + * characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] + * & $ % # @** **~ = + - _ ' \" ! ?** * - * @param description Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * @param description Your description for the transfer. It is used by most banks as the transfer + * description. We recommend sending a maximum of 140 characters, otherwise the description + * may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + + * Space** Supported characters for **regular** and **fast** transfers to a US counterparty: + * **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData description(String description) { @@ -973,8 +1048,17 @@ public TransferData description(String description) { } /** - * Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** - * @return description Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * Your description for the transfer. It is used by most banks as the transfer description. We + * recommend sending a maximum of 140 characters, otherwise the description may be truncated. + * Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported + * characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] + * & $ % # @** **~ = + - _ ' \" ! ?** + * + * @return description Your description for the transfer. It is used by most banks as the transfer + * description. We recommend sending a maximum of 140 characters, otherwise the description + * may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + + * Space** Supported characters for **regular** and **fast** transfers to a US counterparty: + * **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -983,9 +1067,17 @@ public String getDescription() { } /** - * Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * Your description for the transfer. It is used by most banks as the transfer description. We + * recommend sending a maximum of 140 characters, otherwise the description may be truncated. + * Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported + * characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] + * & $ % # @** **~ = + - _ ' \" ! ?** * - * @param description Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** + * @param description Your description for the transfer. It is used by most banks as the transfer + * description. We recommend sending a maximum of 140 characters, otherwise the description + * may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + + * Space** Supported characters for **regular** and **fast** transfers to a US counterparty: + * **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?** */ @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -996,7 +1088,7 @@ public void setDescription(String description) { /** * directDebitInformation * - * @param directDebitInformation + * @param directDebitInformation * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData directDebitInformation(DirectDebitInformation directDebitInformation) { @@ -1006,7 +1098,8 @@ public TransferData directDebitInformation(DirectDebitInformation directDebitInf /** * Get directDebitInformation - * @return directDebitInformation + * + * @return directDebitInformation */ @JsonProperty(JSON_PROPERTY_DIRECT_DEBIT_INFORMATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1017,7 +1110,7 @@ public DirectDebitInformation getDirectDebitInformation() { /** * directDebitInformation * - * @param directDebitInformation + * @param directDebitInformation */ @JsonProperty(JSON_PROPERTY_DIRECT_DEBIT_INFORMATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1026,9 +1119,9 @@ public void setDirectDebitInformation(DirectDebitInformation directDebitInformat } /** - * The direction of the transfer. Possible values: **incoming**, **outgoing**. + * The direction of the transfer. Possible values: **incoming**, **outgoing**. * - * @param direction The direction of the transfer. Possible values: **incoming**, **outgoing**. + * @param direction The direction of the transfer. Possible values: **incoming**, **outgoing**. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData direction(DirectionEnum direction) { @@ -1037,8 +1130,9 @@ public TransferData direction(DirectionEnum direction) { } /** - * The direction of the transfer. Possible values: **incoming**, **outgoing**. - * @return direction The direction of the transfer. Possible values: **incoming**, **outgoing**. + * The direction of the transfer. Possible values: **incoming**, **outgoing**. + * + * @return direction The direction of the transfer. Possible values: **incoming**, **outgoing**. */ @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1047,9 +1141,9 @@ public DirectionEnum getDirection() { } /** - * The direction of the transfer. Possible values: **incoming**, **outgoing**. + * The direction of the transfer. Possible values: **incoming**, **outgoing**. * - * @param direction The direction of the transfer. Possible values: **incoming**, **outgoing**. + * @param direction The direction of the transfer. Possible values: **incoming**, **outgoing**. */ @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1058,9 +1152,11 @@ public void setDirection(DirectionEnum direction) { } /** - * The unique identifier of the latest transfer event. Included only when the `category` is **issuedCard**. + * The unique identifier of the latest transfer event. Included only when the `category` + * is **issuedCard**. * - * @param eventId The unique identifier of the latest transfer event. Included only when the `category` is **issuedCard**. + * @param eventId The unique identifier of the latest transfer event. Included only when the + * `category` is **issuedCard**. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData eventId(String eventId) { @@ -1069,8 +1165,11 @@ public TransferData eventId(String eventId) { } /** - * The unique identifier of the latest transfer event. Included only when the `category` is **issuedCard**. - * @return eventId The unique identifier of the latest transfer event. Included only when the `category` is **issuedCard**. + * The unique identifier of the latest transfer event. Included only when the `category` + * is **issuedCard**. + * + * @return eventId The unique identifier of the latest transfer event. Included only when the + * `category` is **issuedCard**. */ @JsonProperty(JSON_PROPERTY_EVENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1079,9 +1178,11 @@ public String getEventId() { } /** - * The unique identifier of the latest transfer event. Included only when the `category` is **issuedCard**. + * The unique identifier of the latest transfer event. Included only when the `category` + * is **issuedCard**. * - * @param eventId The unique identifier of the latest transfer event. Included only when the `category` is **issuedCard**. + * @param eventId The unique identifier of the latest transfer event. Included only when the + * `category` is **issuedCard**. */ @JsonProperty(JSON_PROPERTY_EVENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1110,6 +1211,7 @@ public TransferData addEventsItem(TransferEvent eventsItem) { /** * The list of events leading up to the current status of the transfer. + * * @return events The list of events leading up to the current status of the transfer. */ @JsonProperty(JSON_PROPERTY_EVENTS) @@ -1132,7 +1234,7 @@ public void setEvents(List events) { /** * executionDate * - * @param executionDate + * @param executionDate * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData executionDate(ExecutionDate executionDate) { @@ -1142,7 +1244,8 @@ public TransferData executionDate(ExecutionDate executionDate) { /** * Get executionDate - * @return executionDate + * + * @return executionDate */ @JsonProperty(JSON_PROPERTY_EXECUTION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1153,7 +1256,7 @@ public ExecutionDate getExecutionDate() { /** * executionDate * - * @param executionDate + * @param executionDate */ @JsonProperty(JSON_PROPERTY_EXECUTION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1164,7 +1267,7 @@ public void setExecutionDate(ExecutionDate executionDate) { /** * externalReason * - * @param externalReason + * @param externalReason * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData externalReason(ExternalReason externalReason) { @@ -1174,7 +1277,8 @@ public TransferData externalReason(ExternalReason externalReason) { /** * Get externalReason - * @return externalReason + * + * @return externalReason */ @JsonProperty(JSON_PROPERTY_EXTERNAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1185,7 +1289,7 @@ public ExternalReason getExternalReason() { /** * externalReason * - * @param externalReason + * @param externalReason */ @JsonProperty(JSON_PROPERTY_EXTERNAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1206,6 +1310,7 @@ public TransferData id(String id) { /** * The ID of the resource. + * * @return id The ID of the resource. */ @JsonProperty(JSON_PROPERTY_ID) @@ -1228,7 +1333,7 @@ public void setId(String id) { /** * paymentInstrument * - * @param paymentInstrument + * @param paymentInstrument * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData paymentInstrument(PaymentInstrument paymentInstrument) { @@ -1238,7 +1343,8 @@ public TransferData paymentInstrument(PaymentInstrument paymentInstrument) { /** * Get paymentInstrument - * @return paymentInstrument + * + * @return paymentInstrument */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1249,7 +1355,7 @@ public PaymentInstrument getPaymentInstrument() { /** * paymentInstrument * - * @param paymentInstrument + * @param paymentInstrument */ @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1270,6 +1376,7 @@ public TransferData reason(ReasonEnum reason) { /** * Additional information about the status of the transfer. + * * @return reason Additional information about the status of the transfer. */ @JsonProperty(JSON_PROPERTY_REASON) @@ -1290,9 +1397,11 @@ public void setReason(ReasonEnum reason) { } /** - * Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. + * Your reference for the transfer, used internally within your platform. If you don't provide + * this in the request, Adyen generates a unique reference. * - * @param reference Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. + * @param reference Your reference for the transfer, used internally within your platform. If you + * don't provide this in the request, Adyen generates a unique reference. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData reference(String reference) { @@ -1301,8 +1410,11 @@ public TransferData reference(String reference) { } /** - * Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. - * @return reference Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. + * Your reference for the transfer, used internally within your platform. If you don't provide + * this in the request, Adyen generates a unique reference. + * + * @return reference Your reference for the transfer, used internally within your platform. If you + * don't provide this in the request, Adyen generates a unique reference. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1311,9 +1423,11 @@ public String getReference() { } /** - * Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. + * Your reference for the transfer, used internally within your platform. If you don't provide + * this in the request, Adyen generates a unique reference. * - * @param reference Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference. + * @param reference Your reference for the transfer, used internally within your platform. If you + * don't provide this in the request, Adyen generates a unique reference. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1322,9 +1436,17 @@ public void setReference(String reference) { } /** - * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * A reference that is sent to the recipient. This reference is also sent in all webhooks related + * to the transfer, so you can use it to track statuses for both the source and recipient of + * funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the + * `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring + * to an IBAN, 15 characters for others. * - * @param referenceForBeneficiary A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * @param referenceForBeneficiary A reference that is sent to the recipient. This reference is + * also sent in all webhooks related to the transfer, so you can use it to track statuses for + * both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The + * maximum length depends on the `category`. - **internal**: 80 characters - + * **bank**: 35 characters when transferring to an IBAN, 15 characters for others. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData referenceForBeneficiary(String referenceForBeneficiary) { @@ -1333,8 +1455,17 @@ public TransferData referenceForBeneficiary(String referenceForBeneficiary) { } /** - * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. - * @return referenceForBeneficiary A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * A reference that is sent to the recipient. This reference is also sent in all webhooks related + * to the transfer, so you can use it to track statuses for both the source and recipient of + * funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the + * `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring + * to an IBAN, 15 characters for others. + * + * @return referenceForBeneficiary A reference that is sent to the recipient. This reference is + * also sent in all webhooks related to the transfer, so you can use it to track statuses for + * both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The + * maximum length depends on the `category`. - **internal**: 80 characters - + * **bank**: 35 characters when transferring to an IBAN, 15 characters for others. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1343,9 +1474,17 @@ public String getReferenceForBeneficiary() { } /** - * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * A reference that is sent to the recipient. This reference is also sent in all webhooks related + * to the transfer, so you can use it to track statuses for both the source and recipient of + * funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the + * `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring + * to an IBAN, 15 characters for others. * - * @param referenceForBeneficiary A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * @param referenceForBeneficiary A reference that is sent to the recipient. This reference is + * also sent in all webhooks related to the transfer, so you can use it to track statuses for + * both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The + * maximum length depends on the `category`. - **internal**: 80 characters - + * **bank**: 35 characters when transferring to an IBAN, 15 characters for others. */ @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1356,7 +1495,7 @@ public void setReferenceForBeneficiary(String referenceForBeneficiary) { /** * review * - * @param review + * @param review * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData review(TransferReview review) { @@ -1366,7 +1505,8 @@ public TransferData review(TransferReview review) { /** * Get review - * @return review + * + * @return review */ @JsonProperty(JSON_PROPERTY_REVIEW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1377,7 +1517,7 @@ public TransferReview getReview() { /** * review * - * @param review + * @param review */ @JsonProperty(JSON_PROPERTY_REVIEW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1386,9 +1526,13 @@ public void setReview(TransferReview review) { } /** - * The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. + * The sequence number of the transfer webhook. The numbers start from 1 and increase with each + * new webhook for a specific transfer. The sequence number can help you restore the correct + * sequence of events even if they arrive out of order. * - * @param sequenceNumber The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. + * @param sequenceNumber The sequence number of the transfer webhook. The numbers start from 1 and + * increase with each new webhook for a specific transfer. The sequence number can help you + * restore the correct sequence of events even if they arrive out of order. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData sequenceNumber(Integer sequenceNumber) { @@ -1397,8 +1541,13 @@ public TransferData sequenceNumber(Integer sequenceNumber) { } /** - * The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. - * @return sequenceNumber The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. + * The sequence number of the transfer webhook. The numbers start from 1 and increase with each + * new webhook for a specific transfer. The sequence number can help you restore the correct + * sequence of events even if they arrive out of order. + * + * @return sequenceNumber The sequence number of the transfer webhook. The numbers start from 1 + * and increase with each new webhook for a specific transfer. The sequence number can help + * you restore the correct sequence of events even if they arrive out of order. */ @JsonProperty(JSON_PROPERTY_SEQUENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1407,9 +1556,13 @@ public Integer getSequenceNumber() { } /** - * The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. + * The sequence number of the transfer webhook. The numbers start from 1 and increase with each + * new webhook for a specific transfer. The sequence number can help you restore the correct + * sequence of events even if they arrive out of order. * - * @param sequenceNumber The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. + * @param sequenceNumber The sequence number of the transfer webhook. The numbers start from 1 and + * increase with each new webhook for a specific transfer. The sequence number can help you + * restore the correct sequence of events even if they arrive out of order. */ @JsonProperty(JSON_PROPERTY_SEQUENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1418,9 +1571,17 @@ public void setSequenceNumber(Integer sequenceNumber) { } /** - * The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. + * The result of the transfer. For example: - **received**: an outgoing transfer request is + * created. - **authorised**: the transfer request is authorized and the funds are reserved. - + * **booked**: the funds are deducted from your user's balance account. - **failed**: the + * transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned + * by the counterparty's bank. * - * @param status The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. + * @param status The result of the transfer. For example: - **received**: an outgoing transfer + * request is created. - **authorised**: the transfer request is authorized and the funds are + * reserved. - **booked**: the funds are deducted from your user's balance account. - + * **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the + * transfer is returned by the counterparty's bank. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData status(StatusEnum status) { @@ -1429,8 +1590,17 @@ public TransferData status(StatusEnum status) { } /** - * The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. - * @return status The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. + * The result of the transfer. For example: - **received**: an outgoing transfer request is + * created. - **authorised**: the transfer request is authorized and the funds are reserved. - + * **booked**: the funds are deducted from your user's balance account. - **failed**: the + * transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned + * by the counterparty's bank. + * + * @return status The result of the transfer. For example: - **received**: an outgoing transfer + * request is created. - **authorised**: the transfer request is authorized and the funds are + * reserved. - **booked**: the funds are deducted from your user's balance account. - + * **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the + * transfer is returned by the counterparty's bank. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1439,9 +1609,17 @@ public StatusEnum getStatus() { } /** - * The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. + * The result of the transfer. For example: - **received**: an outgoing transfer request is + * created. - **authorised**: the transfer request is authorized and the funds are reserved. - + * **booked**: the funds are deducted from your user's balance account. - **failed**: the + * transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned + * by the counterparty's bank. * - * @param status The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. + * @param status The result of the transfer. For example: - **received**: an outgoing transfer + * request is created. - **authorised**: the transfer request is authorized and the funds are + * reserved. - **booked**: the funds are deducted from your user's balance account. - + * **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the + * transfer is returned by the counterparty's bank. */ @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1452,7 +1630,7 @@ public void setStatus(StatusEnum status) { /** * tracking * - * @param tracking + * @param tracking * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData tracking(TransferDataTracking tracking) { @@ -1462,7 +1640,8 @@ public TransferData tracking(TransferDataTracking tracking) { /** * Get tracking - * @return tracking + * + * @return tracking */ @JsonProperty(JSON_PROPERTY_TRACKING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1473,7 +1652,7 @@ public TransferDataTracking getTracking() { /** * tracking * - * @param tracking + * @param tracking */ @JsonProperty(JSON_PROPERTY_TRACKING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1484,7 +1663,7 @@ public void setTracking(TransferDataTracking tracking) { /** * transactionRulesResult * - * @param transactionRulesResult + * @param transactionRulesResult * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData transactionRulesResult(TransactionRulesResult transactionRulesResult) { @@ -1494,7 +1673,8 @@ public TransferData transactionRulesResult(TransactionRulesResult transactionRul /** * Get transactionRulesResult - * @return transactionRulesResult + * + * @return transactionRulesResult */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULES_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1505,7 +1685,7 @@ public TransactionRulesResult getTransactionRulesResult() { /** * transactionRulesResult * - * @param transactionRulesResult + * @param transactionRulesResult */ @JsonProperty(JSON_PROPERTY_TRANSACTION_RULES_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1514,9 +1694,11 @@ public void setTransactionRulesResult(TransactionRulesResult transactionRulesRes } /** - * The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. + * The type of transfer or transaction. For example, **refund**, **payment**, + * **internalTransfer**, **bankTransfer**. * - * @param type The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. + * @param type The type of transfer or transaction. For example, **refund**, **payment**, + * **internalTransfer**, **bankTransfer**. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData type(TypeEnum type) { @@ -1525,8 +1707,11 @@ public TransferData type(TypeEnum type) { } /** - * The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. - * @return type The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. + * The type of transfer or transaction. For example, **refund**, **payment**, + * **internalTransfer**, **bankTransfer**. + * + * @return type The type of transfer or transaction. For example, **refund**, **payment**, + * **internalTransfer**, **bankTransfer**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1535,9 +1720,11 @@ public TypeEnum getType() { } /** - * The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. + * The type of transfer or transaction. For example, **refund**, **payment**, + * **internalTransfer**, **bankTransfer**. * - * @param type The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. + * @param type The type of transfer or transaction. For example, **refund**, **payment**, + * **internalTransfer**, **bankTransfer**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1546,9 +1733,11 @@ public void setType(TypeEnum type) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2020-12-18T10:15:30+01:00**. * - * @param updatedAt The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * @param updatedAt The date and time when the event was triggered, in ISO 8601 extended format. + * For example, **2020-12-18T10:15:30+01:00**. * @return the current {@code TransferData} instance, allowing for method chaining */ public TransferData updatedAt(OffsetDateTime updatedAt) { @@ -1557,8 +1746,11 @@ public TransferData updatedAt(OffsetDateTime updatedAt) { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. - * @return updatedAt The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2020-12-18T10:15:30+01:00**. + * + * @return updatedAt The date and time when the event was triggered, in ISO 8601 extended format. + * For example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1567,9 +1759,11 @@ public OffsetDateTime getUpdatedAt() { } /** - * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * The date and time when the event was triggered, in ISO 8601 extended format. For example, + * **2020-12-18T10:15:30+01:00**. * - * @param updatedAt The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * @param updatedAt The date and time when the event was triggered, in ISO 8601 extended format. + * For example, **2020-12-18T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1577,9 +1771,7 @@ public void setUpdatedAt(OffsetDateTime updatedAt) { this.updatedAt = updatedAt; } - /** - * Return true if this TransferData object is equal to o. - */ + /** Return true if this TransferData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -1589,40 +1781,69 @@ public boolean equals(Object o) { return false; } TransferData transferData = (TransferData) o; - return Objects.equals(this.accountHolder, transferData.accountHolder) && - Objects.equals(this.amount, transferData.amount) && - Objects.equals(this.balanceAccount, transferData.balanceAccount) && - Objects.equals(this.balancePlatform, transferData.balancePlatform) && - Objects.equals(this.balances, transferData.balances) && - Objects.equals(this.category, transferData.category) && - Objects.equals(this.categoryData, transferData.categoryData) && - Objects.equals(this.counterparty, transferData.counterparty) && - Objects.equals(this.createdAt, transferData.createdAt) && - Objects.equals(this.creationDate, transferData.creationDate) && - Objects.equals(this.description, transferData.description) && - Objects.equals(this.directDebitInformation, transferData.directDebitInformation) && - Objects.equals(this.direction, transferData.direction) && - Objects.equals(this.eventId, transferData.eventId) && - Objects.equals(this.events, transferData.events) && - Objects.equals(this.executionDate, transferData.executionDate) && - Objects.equals(this.externalReason, transferData.externalReason) && - Objects.equals(this.id, transferData.id) && - Objects.equals(this.paymentInstrument, transferData.paymentInstrument) && - Objects.equals(this.reason, transferData.reason) && - Objects.equals(this.reference, transferData.reference) && - Objects.equals(this.referenceForBeneficiary, transferData.referenceForBeneficiary) && - Objects.equals(this.review, transferData.review) && - Objects.equals(this.sequenceNumber, transferData.sequenceNumber) && - Objects.equals(this.status, transferData.status) && - Objects.equals(this.tracking, transferData.tracking) && - Objects.equals(this.transactionRulesResult, transferData.transactionRulesResult) && - Objects.equals(this.type, transferData.type) && - Objects.equals(this.updatedAt, transferData.updatedAt); + return Objects.equals(this.accountHolder, transferData.accountHolder) + && Objects.equals(this.amount, transferData.amount) + && Objects.equals(this.balanceAccount, transferData.balanceAccount) + && Objects.equals(this.balancePlatform, transferData.balancePlatform) + && Objects.equals(this.balances, transferData.balances) + && Objects.equals(this.category, transferData.category) + && Objects.equals(this.categoryData, transferData.categoryData) + && Objects.equals(this.counterparty, transferData.counterparty) + && Objects.equals(this.createdAt, transferData.createdAt) + && Objects.equals(this.creationDate, transferData.creationDate) + && Objects.equals(this.description, transferData.description) + && Objects.equals(this.directDebitInformation, transferData.directDebitInformation) + && Objects.equals(this.direction, transferData.direction) + && Objects.equals(this.eventId, transferData.eventId) + && Objects.equals(this.events, transferData.events) + && Objects.equals(this.executionDate, transferData.executionDate) + && Objects.equals(this.externalReason, transferData.externalReason) + && Objects.equals(this.id, transferData.id) + && Objects.equals(this.paymentInstrument, transferData.paymentInstrument) + && Objects.equals(this.reason, transferData.reason) + && Objects.equals(this.reference, transferData.reference) + && Objects.equals(this.referenceForBeneficiary, transferData.referenceForBeneficiary) + && Objects.equals(this.review, transferData.review) + && Objects.equals(this.sequenceNumber, transferData.sequenceNumber) + && Objects.equals(this.status, transferData.status) + && Objects.equals(this.tracking, transferData.tracking) + && Objects.equals(this.transactionRulesResult, transferData.transactionRulesResult) + && Objects.equals(this.type, transferData.type) + && Objects.equals(this.updatedAt, transferData.updatedAt); } @Override public int hashCode() { - return Objects.hash(accountHolder, amount, balanceAccount, balancePlatform, balances, category, categoryData, counterparty, createdAt, creationDate, description, directDebitInformation, direction, eventId, events, executionDate, externalReason, id, paymentInstrument, reason, reference, referenceForBeneficiary, review, sequenceNumber, status, tracking, transactionRulesResult, type, updatedAt); + return Objects.hash( + accountHolder, + amount, + balanceAccount, + balancePlatform, + balances, + category, + categoryData, + counterparty, + createdAt, + creationDate, + description, + directDebitInformation, + direction, + eventId, + events, + executionDate, + externalReason, + id, + paymentInstrument, + reason, + reference, + referenceForBeneficiary, + review, + sequenceNumber, + status, + tracking, + transactionRulesResult, + type, + updatedAt); } @Override @@ -1640,7 +1861,9 @@ public String toString() { sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" directDebitInformation: ").append(toIndentedString(directDebitInformation)).append("\n"); + sb.append(" directDebitInformation: ") + .append(toIndentedString(directDebitInformation)) + .append("\n"); sb.append(" direction: ").append(toIndentedString(direction)).append("\n"); sb.append(" eventId: ").append(toIndentedString(eventId)).append("\n"); sb.append(" events: ").append(toIndentedString(events)).append("\n"); @@ -1650,12 +1873,16 @@ public String toString() { sb.append(" paymentInstrument: ").append(toIndentedString(paymentInstrument)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); - sb.append(" referenceForBeneficiary: ").append(toIndentedString(referenceForBeneficiary)).append("\n"); + sb.append(" referenceForBeneficiary: ") + .append(toIndentedString(referenceForBeneficiary)) + .append("\n"); sb.append(" review: ").append(toIndentedString(review)).append("\n"); sb.append(" sequenceNumber: ").append(toIndentedString(sequenceNumber)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" tracking: ").append(toIndentedString(tracking)).append("\n"); - sb.append(" transactionRulesResult: ").append(toIndentedString(transactionRulesResult)).append("\n"); + sb.append(" transactionRulesResult: ") + .append(toIndentedString(transactionRulesResult)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); sb.append("}"); @@ -1663,8 +1890,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1673,7 +1899,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransferData given an JSON string * * @param jsonString JSON string @@ -1683,11 +1909,12 @@ private String toIndentedString(Object o) { public static TransferData fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferData.class); } -/** - * Convert an instance of TransferData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransferData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferDataCategoryData.java b/src/main/java/com/adyen/model/transferwebhooks/TransferDataCategoryData.java index 1a7c96511..e8dc4fa80 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferDataCategoryData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferDataCategoryData.java @@ -2,52 +2,19 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transferwebhooks.BankCategoryData; -import com.adyen.model.transferwebhooks.InternalCategoryData; -import com.adyen.model.transferwebhooks.IssuedCard; -import com.adyen.model.transferwebhooks.PlatformPayment; -import com.adyen.model.transferwebhooks.RelayedAuthorisationData; -import com.adyen.model.transferwebhooks.ThreeDSecure; -import com.adyen.model.transferwebhooks.TransferNotificationValidationFact; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -import com.fasterxml.jackson.core.type.TypeReference; - -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.core.Response; -import java.io.IOException; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; - import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -57,308 +24,326 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; - +import jakarta.ws.rs.core.GenericType; +import java.io.IOException; +import java.util.*; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.logging.Level; +import java.util.logging.Logger; @JsonDeserialize(using = TransferDataCategoryData.TransferDataCategoryDataDeserializer.class) @JsonSerialize(using = TransferDataCategoryData.TransferDataCategoryDataSerializer.class) public class TransferDataCategoryData extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(TransferDataCategoryData.class.getName()); - - public static class TransferDataCategoryDataSerializer extends StdSerializer { - public TransferDataCategoryDataSerializer(Class t) { - super(t); - } + private static final Logger log = Logger.getLogger(TransferDataCategoryData.class.getName()); - public TransferDataCategoryDataSerializer() { - this(null); - } - - @Override - public void serialize(TransferDataCategoryData value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } + public static class TransferDataCategoryDataSerializer + extends StdSerializer { + public TransferDataCategoryDataSerializer(Class t) { + super(t); } - public static class TransferDataCategoryDataDeserializer extends StdDeserializer { - public TransferDataCategoryDataDeserializer() { - this(TransferDataCategoryData.class); - } - - public TransferDataCategoryDataDeserializer(Class vc) { - super(vc); - } - - @Override - public TransferDataCategoryData deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize BankCategoryData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(BankCategoryData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(BankCategoryData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'BankCategoryData'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'BankCategoryData'", e); - } - - // deserialize InternalCategoryData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(InternalCategoryData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(InternalCategoryData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'InternalCategoryData'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'InternalCategoryData'", e); - } - - // deserialize IssuedCard - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(IssuedCard.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(IssuedCard.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'IssuedCard'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'IssuedCard'", e); - } - - // deserialize PlatformPayment - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(PlatformPayment.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PlatformPayment.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PlatformPayment'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PlatformPayment'", e); - } - - if (match == 1) { - TransferDataCategoryData ret = new TransferDataCategoryData(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException(String.format("Failed deserialization for TransferDataCategoryData: %d classes match result, expected 1", match)); - } - - /** - * Handle deserialization of the 'null' value. - */ - @Override - public TransferDataCategoryData getNullValue(DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "TransferDataCategoryData cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public TransferDataCategoryData() { - super("oneOf", Boolean.FALSE); - } - - public TransferDataCategoryData(BankCategoryData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferDataCategoryData(InternalCategoryData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + public TransferDataCategoryDataSerializer() { + this(null); } - public TransferDataCategoryData(IssuedCard o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferDataCategoryData(PlatformPayment o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + @Override + public void serialize( + TransferDataCategoryData value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); } + } - static { - schemas.put("BankCategoryData", new GenericType() { - }); - schemas.put("InternalCategoryData", new GenericType() { - }); - schemas.put("IssuedCard", new GenericType() { - }); - schemas.put("PlatformPayment", new GenericType() { - }); - JSON.registerDescendants(TransferDataCategoryData.class, Collections.unmodifiableMap(schemas)); + public static class TransferDataCategoryDataDeserializer + extends StdDeserializer { + public TransferDataCategoryDataDeserializer() { + this(TransferDataCategoryData.class); } - @Override - public Map> getSchemas() { - return TransferDataCategoryData.schemas; + public TransferDataCategoryDataDeserializer(Class vc) { + super(vc); } - /** - * Set the instance that matches the oneOf child schema, check - * the instance parameter is valid against the oneOf child schemas: - * BankCategoryData, InternalCategoryData, IssuedCard, PlatformPayment - * - * It could be an instance of the 'oneOf' schemas. - * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). - */ @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(BankCategoryData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + public TransferDataCategoryData deserialize(JsonParser jp, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize BankCategoryData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(BankCategoryData.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(BankCategoryData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'BankCategoryData'"); + } } - - if (JSON.isInstanceOf(InternalCategoryData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'BankCategoryData'", e); + } + + // deserialize InternalCategoryData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(InternalCategoryData.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(InternalCategoryData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'InternalCategoryData'"); + } } - - if (JSON.isInstanceOf(IssuedCard.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'InternalCategoryData'", e); + } + + // deserialize IssuedCard + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(IssuedCard.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(IssuedCard.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'IssuedCard'"); + } } - - if (JSON.isInstanceOf(PlatformPayment.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'IssuedCard'", e); + } + + // deserialize PlatformPayment + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(PlatformPayment.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PlatformPayment.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'PlatformPayment'"); + } } - - throw new RuntimeException("Invalid instance type. Must be BankCategoryData, InternalCategoryData, IssuedCard, PlatformPayment"); + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PlatformPayment'", e); + } + + if (match == 1) { + TransferDataCategoryData ret = new TransferDataCategoryData(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException( + String.format( + "Failed deserialization for TransferDataCategoryData: %d classes match result, expected 1", + match)); } - /** - * Get the actual instance, which can be the following: - * BankCategoryData, InternalCategoryData, IssuedCard, PlatformPayment - * - * @return The actual instance (BankCategoryData, InternalCategoryData, IssuedCard, PlatformPayment) - */ + /** Handle deserialization of the 'null' value. */ @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `BankCategoryData`. If the actual instance is not `BankCategoryData`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `BankCategoryData` - * @throws ClassCastException if the instance is not `BankCategoryData` - */ - public BankCategoryData getBankCategoryData() throws ClassCastException { - return (BankCategoryData)super.getActualInstance(); + public TransferDataCategoryData getNullValue(DeserializationContext ctxt) + throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "TransferDataCategoryData cannot be null"); } - - /** - * Get the actual instance of `InternalCategoryData`. If the actual instance is not `InternalCategoryData`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `InternalCategoryData` - * @throws ClassCastException if the instance is not `InternalCategoryData` - */ - public InternalCategoryData getInternalCategoryData() throws ClassCastException { - return (InternalCategoryData)super.getActualInstance(); + } + + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public TransferDataCategoryData() { + super("oneOf", Boolean.FALSE); + } + + public TransferDataCategoryData(BankCategoryData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferDataCategoryData(InternalCategoryData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferDataCategoryData(IssuedCard o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferDataCategoryData(PlatformPayment o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("BankCategoryData", new GenericType() {}); + schemas.put("InternalCategoryData", new GenericType() {}); + schemas.put("IssuedCard", new GenericType() {}); + schemas.put("PlatformPayment", new GenericType() {}); + JSON.registerDescendants(TransferDataCategoryData.class, Collections.unmodifiableMap(schemas)); + } + + @Override + public Map> getSchemas() { + return TransferDataCategoryData.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check the instance parameter is valid + * against the oneOf child schemas: BankCategoryData, InternalCategoryData, IssuedCard, + * PlatformPayment + * + *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a + * composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(BankCategoryData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `IssuedCard`. If the actual instance is not `IssuedCard`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `IssuedCard` - * @throws ClassCastException if the instance is not `IssuedCard` - */ - public IssuedCard getIssuedCard() throws ClassCastException { - return (IssuedCard)super.getActualInstance(); + if (JSON.isInstanceOf(InternalCategoryData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `PlatformPayment`. If the actual instance is not `PlatformPayment`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PlatformPayment` - * @throws ClassCastException if the instance is not `PlatformPayment` - */ - public PlatformPayment getPlatformPayment() throws ClassCastException { - return (PlatformPayment)super.getActualInstance(); - } - - - /** - * Create an instance of TransferDataCategoryData given an JSON string - * - * @param jsonString JSON string - * @return An instance of TransferDataCategoryData - * @throws IOException if the JSON string is invalid with respect to TransferDataCategoryData - */ - public static TransferDataCategoryData fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, TransferDataCategoryData.class); + if (JSON.isInstanceOf(IssuedCard.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Convert an instance of TransferDataCategoryData to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); + if (JSON.isInstanceOf(PlatformPayment.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } + throw new RuntimeException( + "Invalid instance type. Must be BankCategoryData, InternalCategoryData, IssuedCard, PlatformPayment"); + } + + /** + * Get the actual instance, which can be the following: BankCategoryData, InternalCategoryData, + * IssuedCard, PlatformPayment + * + * @return The actual instance (BankCategoryData, InternalCategoryData, IssuedCard, + * PlatformPayment) + */ + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `BankCategoryData`. If the actual instance is not + * `BankCategoryData`, the ClassCastException will be thrown. + * + * @return The actual instance of `BankCategoryData` + * @throws ClassCastException if the instance is not `BankCategoryData` + */ + public BankCategoryData getBankCategoryData() throws ClassCastException { + return (BankCategoryData) super.getActualInstance(); + } + + /** + * Get the actual instance of `InternalCategoryData`. If the actual instance is not + * `InternalCategoryData`, the ClassCastException will be thrown. + * + * @return The actual instance of `InternalCategoryData` + * @throws ClassCastException if the instance is not `InternalCategoryData` + */ + public InternalCategoryData getInternalCategoryData() throws ClassCastException { + return (InternalCategoryData) super.getActualInstance(); + } + + /** + * Get the actual instance of `IssuedCard`. If the actual instance is not `IssuedCard`, the + * ClassCastException will be thrown. + * + * @return The actual instance of `IssuedCard` + * @throws ClassCastException if the instance is not `IssuedCard` + */ + public IssuedCard getIssuedCard() throws ClassCastException { + return (IssuedCard) super.getActualInstance(); + } + + /** + * Get the actual instance of `PlatformPayment`. If the actual instance is not `PlatformPayment`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `PlatformPayment` + * @throws ClassCastException if the instance is not `PlatformPayment` + */ + public PlatformPayment getPlatformPayment() throws ClassCastException { + return (PlatformPayment) super.getActualInstance(); + } + + /** + * Create an instance of TransferDataCategoryData given an JSON string + * + * @param jsonString JSON string + * @return An instance of TransferDataCategoryData + * @throws IOException if the JSON string is invalid with respect to TransferDataCategoryData + */ + public static TransferDataCategoryData fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, TransferDataCategoryData.class); + } + + /** + * Convert an instance of TransferDataCategoryData to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferDataTracking.java b/src/main/java/com/adyen/model/transferwebhooks/TransferDataTracking.java index d58975b7d..452eb8c73 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferDataTracking.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferDataTracking.java @@ -2,47 +2,19 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transferwebhooks.ConfirmationTrackingData; -import com.adyen.model.transferwebhooks.EstimationTrackingData; -import com.adyen.model.transferwebhooks.InternalReviewTrackingData; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -import com.fasterxml.jackson.core.type.TypeReference; - -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.core.Response; -import java.io.IOException; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; - import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -52,261 +24,278 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; - +import jakarta.ws.rs.core.GenericType; +import java.io.IOException; +import java.util.*; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.logging.Level; +import java.util.logging.Logger; @JsonDeserialize(using = TransferDataTracking.TransferDataTrackingDeserializer.class) @JsonSerialize(using = TransferDataTracking.TransferDataTrackingSerializer.class) public class TransferDataTracking extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(TransferDataTracking.class.getName()); - - public static class TransferDataTrackingSerializer extends StdSerializer { - public TransferDataTrackingSerializer(Class t) { - super(t); - } - - public TransferDataTrackingSerializer() { - this(null); - } - - @Override - public void serialize(TransferDataTracking value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class TransferDataTrackingDeserializer extends StdDeserializer { - public TransferDataTrackingDeserializer() { - this(TransferDataTracking.class); - } - - public TransferDataTrackingDeserializer(Class vc) { - super(vc); - } - - @Override - public TransferDataTracking deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize ConfirmationTrackingData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(ConfirmationTrackingData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(ConfirmationTrackingData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'ConfirmationTrackingData'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'ConfirmationTrackingData'", e); - } - - // deserialize EstimationTrackingData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(EstimationTrackingData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(EstimationTrackingData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'EstimationTrackingData'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'EstimationTrackingData'", e); - } - - // deserialize InternalReviewTrackingData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(InternalReviewTrackingData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(InternalReviewTrackingData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'InternalReviewTrackingData'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'InternalReviewTrackingData'", e); - } - - if (match == 1) { - TransferDataTracking ret = new TransferDataTracking(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException(String.format("Failed deserialization for TransferDataTracking: %d classes match result, expected 1", match)); - } - - /** - * Handle deserialization of the 'null' value. - */ - @Override - public TransferDataTracking getNullValue(DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "TransferDataTracking cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); + private static final Logger log = Logger.getLogger(TransferDataTracking.class.getName()); - public TransferDataTracking() { - super("oneOf", Boolean.FALSE); + public static class TransferDataTrackingSerializer extends StdSerializer { + public TransferDataTrackingSerializer(Class t) { + super(t); } - public TransferDataTracking(ConfirmationTrackingData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + public TransferDataTrackingSerializer() { + this(null); } - public TransferDataTracking(EstimationTrackingData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferDataTracking(InternalReviewTrackingData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + @Override + public void serialize( + TransferDataTracking value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); } + } - static { - schemas.put("ConfirmationTrackingData", new GenericType() { - }); - schemas.put("EstimationTrackingData", new GenericType() { - }); - schemas.put("InternalReviewTrackingData", new GenericType() { - }); - JSON.registerDescendants(TransferDataTracking.class, Collections.unmodifiableMap(schemas)); + public static class TransferDataTrackingDeserializer + extends StdDeserializer { + public TransferDataTrackingDeserializer() { + this(TransferDataTracking.class); } - @Override - public Map> getSchemas() { - return TransferDataTracking.schemas; + public TransferDataTrackingDeserializer(Class vc) { + super(vc); } - /** - * Set the instance that matches the oneOf child schema, check - * the instance parameter is valid against the oneOf child schemas: - * ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData - * - * It could be an instance of the 'oneOf' schemas. - * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). - */ @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(ConfirmationTrackingData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + public TransferDataTracking deserialize(JsonParser jp, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize ConfirmationTrackingData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(ConfirmationTrackingData.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(ConfirmationTrackingData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'ConfirmationTrackingData'"); + } } - - if (JSON.isInstanceOf(EstimationTrackingData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'ConfirmationTrackingData'", e); + } + + // deserialize EstimationTrackingData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(EstimationTrackingData.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(EstimationTrackingData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'EstimationTrackingData'"); + } } - - if (JSON.isInstanceOf(InternalReviewTrackingData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'EstimationTrackingData'", e); + } + + // deserialize InternalReviewTrackingData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(InternalReviewTrackingData.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(InternalReviewTrackingData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'InternalReviewTrackingData'"); + } } - - throw new RuntimeException("Invalid instance type. Must be ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData"); + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'InternalReviewTrackingData'", e); + } + + if (match == 1) { + TransferDataTracking ret = new TransferDataTracking(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException( + String.format( + "Failed deserialization for TransferDataTracking: %d classes match result, expected 1", + match)); } - /** - * Get the actual instance, which can be the following: - * ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData - * - * @return The actual instance (ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData) - */ + /** Handle deserialization of the 'null' value. */ @Override - public Object getActualInstance() { - return super.getActualInstance(); + public TransferDataTracking getNullValue(DeserializationContext ctxt) + throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "TransferDataTracking cannot be null"); } - - /** - * Get the actual instance of `ConfirmationTrackingData`. If the actual instance is not `ConfirmationTrackingData`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `ConfirmationTrackingData` - * @throws ClassCastException if the instance is not `ConfirmationTrackingData` - */ - public ConfirmationTrackingData getConfirmationTrackingData() throws ClassCastException { - return (ConfirmationTrackingData)super.getActualInstance(); - } - - /** - * Get the actual instance of `EstimationTrackingData`. If the actual instance is not `EstimationTrackingData`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `EstimationTrackingData` - * @throws ClassCastException if the instance is not `EstimationTrackingData` - */ - public EstimationTrackingData getEstimationTrackingData() throws ClassCastException { - return (EstimationTrackingData)super.getActualInstance(); + } + + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public TransferDataTracking() { + super("oneOf", Boolean.FALSE); + } + + public TransferDataTracking(ConfirmationTrackingData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferDataTracking(EstimationTrackingData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferDataTracking(InternalReviewTrackingData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("ConfirmationTrackingData", new GenericType() {}); + schemas.put("EstimationTrackingData", new GenericType() {}); + schemas.put("InternalReviewTrackingData", new GenericType() {}); + JSON.registerDescendants(TransferDataTracking.class, Collections.unmodifiableMap(schemas)); + } + + @Override + public Map> getSchemas() { + return TransferDataTracking.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check the instance parameter is valid + * against the oneOf child schemas: ConfirmationTrackingData, EstimationTrackingData, + * InternalReviewTrackingData + * + *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a + * composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(ConfirmationTrackingData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `InternalReviewTrackingData`. If the actual instance is not `InternalReviewTrackingData`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `InternalReviewTrackingData` - * @throws ClassCastException if the instance is not `InternalReviewTrackingData` - */ - public InternalReviewTrackingData getInternalReviewTrackingData() throws ClassCastException { - return (InternalReviewTrackingData)super.getActualInstance(); - } - - - /** - * Create an instance of TransferDataTracking given an JSON string - * - * @param jsonString JSON string - * @return An instance of TransferDataTracking - * @throws IOException if the JSON string is invalid with respect to TransferDataTracking - */ - public static TransferDataTracking fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, TransferDataTracking.class); + if (JSON.isInstanceOf(EstimationTrackingData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Convert an instance of TransferDataTracking to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); + if (JSON.isInstanceOf(InternalReviewTrackingData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } + throw new RuntimeException( + "Invalid instance type. Must be ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData"); + } + + /** + * Get the actual instance, which can be the following: ConfirmationTrackingData, + * EstimationTrackingData, InternalReviewTrackingData + * + * @return The actual instance (ConfirmationTrackingData, EstimationTrackingData, + * InternalReviewTrackingData) + */ + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `ConfirmationTrackingData`. If the actual instance is not + * `ConfirmationTrackingData`, the ClassCastException will be thrown. + * + * @return The actual instance of `ConfirmationTrackingData` + * @throws ClassCastException if the instance is not `ConfirmationTrackingData` + */ + public ConfirmationTrackingData getConfirmationTrackingData() throws ClassCastException { + return (ConfirmationTrackingData) super.getActualInstance(); + } + + /** + * Get the actual instance of `EstimationTrackingData`. If the actual instance is not + * `EstimationTrackingData`, the ClassCastException will be thrown. + * + * @return The actual instance of `EstimationTrackingData` + * @throws ClassCastException if the instance is not `EstimationTrackingData` + */ + public EstimationTrackingData getEstimationTrackingData() throws ClassCastException { + return (EstimationTrackingData) super.getActualInstance(); + } + + /** + * Get the actual instance of `InternalReviewTrackingData`. If the actual instance is not + * `InternalReviewTrackingData`, the ClassCastException will be thrown. + * + * @return The actual instance of `InternalReviewTrackingData` + * @throws ClassCastException if the instance is not `InternalReviewTrackingData` + */ + public InternalReviewTrackingData getInternalReviewTrackingData() throws ClassCastException { + return (InternalReviewTrackingData) super.getActualInstance(); + } + + /** + * Create an instance of TransferDataTracking given an JSON string + * + * @param jsonString JSON string + * @return An instance of TransferDataTracking + * @throws IOException if the JSON string is invalid with respect to TransferDataTracking + */ + public static TransferDataTracking fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, TransferDataTracking.class); + } + + /** + * Convert an instance of TransferDataTracking to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferEvent.java b/src/main/java/com/adyen/model/transferwebhooks/TransferEvent.java index 4bf9a8fcb..8e00640c8 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferEvent.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferEvent.java @@ -2,41 +2,29 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transferwebhooks.Amount; -import com.adyen.model.transferwebhooks.AmountAdjustment; -import com.adyen.model.transferwebhooks.BalanceMutation; -import com.adyen.model.transferwebhooks.ExternalReason; -import com.adyen.model.transferwebhooks.Modification; -import com.adyen.model.transferwebhooks.TransferEventEventsDataInner; -import com.adyen.model.transferwebhooks.TransferEventTrackingData; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * TransferEvent - */ +/** TransferEvent */ @JsonPropertyOrder({ TransferEvent.JSON_PROPERTY_AMOUNT, TransferEvent.JSON_PROPERTY_AMOUNT_ADJUSTMENTS, @@ -57,7 +45,6 @@ TransferEvent.JSON_PROPERTY_UPDATE_DATE, TransferEvent.JSON_PROPERTY_VALUE_DATE }) - public class TransferEvent { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Amount amount; @@ -92,11 +79,8 @@ public class TransferEvent { public static final String JSON_PROPERTY_ORIGINAL_AMOUNT = "originalAmount"; private Amount originalAmount; - /** - * The reason for the transfer status. - */ + /** The reason for the transfer status. */ public enum ReasonEnum { - ACCOUNTHIERARCHYNOTACTIVE(String.valueOf("accountHierarchyNotActive")), AMOUNTLIMITEXCEEDED(String.valueOf("amountLimitExceeded")), @@ -105,7 +89,8 @@ public enum ReasonEnum { APPROVED(String.valueOf("approved")), - BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE(String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), + BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE( + String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")), COUNTERPARTYACCOUNTBLOCKED(String.valueOf("counterpartyAccountBlocked")), @@ -152,7 +137,7 @@ public enum ReasonEnum { private String value; ReasonEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -173,7 +158,11 @@ public static ReasonEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ReasonEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ReasonEnum.values())); + LOG.warning( + "ReasonEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ReasonEnum.values())); return null; } } @@ -181,11 +170,8 @@ public static ReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_REASON = "reason"; private ReasonEnum reason; - /** - * The status of the transfer event. - */ + /** The status of the transfer event. */ public enum StatusEnum { - APPROVALPENDING(String.valueOf("approvalPending")), ATMWITHDRAWAL(String.valueOf("atmWithdrawal")), @@ -325,7 +311,7 @@ public enum StatusEnum { private String value; StatusEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -346,7 +332,11 @@ public static StatusEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("StatusEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(StatusEnum.values())); + LOG.warning( + "StatusEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(StatusEnum.values())); return null; } } @@ -360,11 +350,8 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_TRANSACTION_ID = "transactionId"; private String transactionId; - /** - * The type of the transfer event. Possible values: **accounting**, **tracking**. - */ + /** The type of the transfer event. Possible values: **accounting**, **tracking**. */ public enum TypeEnum { - ACCOUNTING(String.valueOf("accounting")), TRACKING(String.valueOf("tracking")); @@ -374,7 +361,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -395,7 +382,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -409,13 +400,12 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VALUE_DATE = "valueDate"; private OffsetDateTime valueDate; - public TransferEvent() { - } + public TransferEvent() {} /** * amount * - * @param amount + * @param amount * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent amount(Amount amount) { @@ -425,7 +415,8 @@ public TransferEvent amount(Amount amount) { /** * Get amount - * @return amount + * + * @return amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -436,7 +427,7 @@ public Amount getAmount() { /** * amount * - * @param amount + * @param amount */ @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -445,9 +436,11 @@ public void setAmount(Amount amount) { } /** - * The amount adjustments in this transfer. Only applicable for [issuing](https://docs.adyen.com/issuing/) integrations. + * The amount adjustments in this transfer. Only applicable for + * [issuing](https://docs.adyen.com/issuing/) integrations. * - * @param amountAdjustments The amount adjustments in this transfer. Only applicable for [issuing](https://docs.adyen.com/issuing/) integrations. + * @param amountAdjustments The amount adjustments in this transfer. Only applicable for + * [issuing](https://docs.adyen.com/issuing/) integrations. * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent amountAdjustments(List amountAdjustments) { @@ -464,8 +457,11 @@ public TransferEvent addAmountAdjustmentsItem(AmountAdjustment amountAdjustments } /** - * The amount adjustments in this transfer. Only applicable for [issuing](https://docs.adyen.com/issuing/) integrations. - * @return amountAdjustments The amount adjustments in this transfer. Only applicable for [issuing](https://docs.adyen.com/issuing/) integrations. + * The amount adjustments in this transfer. Only applicable for + * [issuing](https://docs.adyen.com/issuing/) integrations. + * + * @return amountAdjustments The amount adjustments in this transfer. Only applicable for + * [issuing](https://docs.adyen.com/issuing/) integrations. */ @JsonProperty(JSON_PROPERTY_AMOUNT_ADJUSTMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -474,9 +470,11 @@ public List getAmountAdjustments() { } /** - * The amount adjustments in this transfer. Only applicable for [issuing](https://docs.adyen.com/issuing/) integrations. + * The amount adjustments in this transfer. Only applicable for + * [issuing](https://docs.adyen.com/issuing/) integrations. * - * @param amountAdjustments The amount adjustments in this transfer. Only applicable for [issuing](https://docs.adyen.com/issuing/) integrations. + * @param amountAdjustments The amount adjustments in this transfer. Only applicable for + * [issuing](https://docs.adyen.com/issuing/) integrations. */ @JsonProperty(JSON_PROPERTY_AMOUNT_ADJUSTMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -497,7 +495,9 @@ public TransferEvent arn(String arn) { /** * Scheme unique arn identifier useful for tracing captures, chargebacks, refunds, etc. - * @return arn Scheme unique arn identifier useful for tracing captures, chargebacks, refunds, etc. + * + * @return arn Scheme unique arn identifier useful for tracing captures, chargebacks, refunds, + * etc. */ @JsonProperty(JSON_PROPERTY_ARN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -529,6 +529,7 @@ public TransferEvent bookingDate(OffsetDateTime bookingDate) { /** * The date when the transfer request was sent. + * * @return bookingDate The date when the transfer request was sent. */ @JsonProperty(JSON_PROPERTY_BOOKING_DATE) @@ -551,7 +552,8 @@ public void setBookingDate(OffsetDateTime bookingDate) { /** * The estimated time when the beneficiary should have access to the funds. * - * @param estimatedArrivalTime The estimated time when the beneficiary should have access to the funds. + * @param estimatedArrivalTime The estimated time when the beneficiary should have access to the + * funds. * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent estimatedArrivalTime(OffsetDateTime estimatedArrivalTime) { @@ -561,7 +563,9 @@ public TransferEvent estimatedArrivalTime(OffsetDateTime estimatedArrivalTime) { /** * The estimated time when the beneficiary should have access to the funds. - * @return estimatedArrivalTime The estimated time when the beneficiary should have access to the funds. + * + * @return estimatedArrivalTime The estimated time when the beneficiary should have access to the + * funds. */ @JsonProperty(JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -572,7 +576,8 @@ public OffsetDateTime getEstimatedArrivalTime() { /** * The estimated time when the beneficiary should have access to the funds. * - * @param estimatedArrivalTime The estimated time when the beneficiary should have access to the funds. + * @param estimatedArrivalTime The estimated time when the beneficiary should have access to the + * funds. */ @JsonProperty(JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -601,6 +606,7 @@ public TransferEvent addEventsDataItem(TransferEventEventsDataInner eventsDataIt /** * A list of event data. + * * @return eventsData A list of event data. */ @JsonProperty(JSON_PROPERTY_EVENTS_DATA) @@ -623,7 +629,7 @@ public void setEventsData(List eventsData) { /** * externalReason * - * @param externalReason + * @param externalReason * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent externalReason(ExternalReason externalReason) { @@ -633,7 +639,8 @@ public TransferEvent externalReason(ExternalReason externalReason) { /** * Get externalReason - * @return externalReason + * + * @return externalReason */ @JsonProperty(JSON_PROPERTY_EXTERNAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -644,7 +651,7 @@ public ExternalReason getExternalReason() { /** * externalReason * - * @param externalReason + * @param externalReason */ @JsonProperty(JSON_PROPERTY_EXTERNAL_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -665,6 +672,7 @@ public TransferEvent id(String id) { /** * The unique identifier of the transfer event. + * * @return id The unique identifier of the transfer event. */ @JsonProperty(JSON_PROPERTY_ID) @@ -687,7 +695,7 @@ public void setId(String id) { /** * modification * - * @param modification + * @param modification * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent modification(Modification modification) { @@ -697,7 +705,8 @@ public TransferEvent modification(Modification modification) { /** * Get modification - * @return modification + * + * @return modification */ @JsonProperty(JSON_PROPERTY_MODIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -708,7 +717,7 @@ public Modification getModification() { /** * modification * - * @param modification + * @param modification */ @JsonProperty(JSON_PROPERTY_MODIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -737,6 +746,7 @@ public TransferEvent addMutationsItem(BalanceMutation mutationsItem) { /** * The list of balance mutations per event. + * * @return mutations The list of balance mutations per event. */ @JsonProperty(JSON_PROPERTY_MUTATIONS) @@ -759,7 +769,7 @@ public void setMutations(List mutations) { /** * originalAmount * - * @param originalAmount + * @param originalAmount * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent originalAmount(Amount originalAmount) { @@ -769,7 +779,8 @@ public TransferEvent originalAmount(Amount originalAmount) { /** * Get originalAmount - * @return originalAmount + * + * @return originalAmount */ @JsonProperty(JSON_PROPERTY_ORIGINAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -780,7 +791,7 @@ public Amount getOriginalAmount() { /** * originalAmount * - * @param originalAmount + * @param originalAmount */ @JsonProperty(JSON_PROPERTY_ORIGINAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -801,6 +812,7 @@ public TransferEvent reason(ReasonEnum reason) { /** * The reason for the transfer status. + * * @return reason The reason for the transfer status. */ @JsonProperty(JSON_PROPERTY_REASON) @@ -833,6 +845,7 @@ public TransferEvent status(StatusEnum status) { /** * The status of the transfer event. + * * @return status The status of the transfer event. */ @JsonProperty(JSON_PROPERTY_STATUS) @@ -855,7 +868,7 @@ public void setStatus(StatusEnum status) { /** * trackingData * - * @param trackingData + * @param trackingData * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent trackingData(TransferEventTrackingData trackingData) { @@ -865,7 +878,8 @@ public TransferEvent trackingData(TransferEventTrackingData trackingData) { /** * Get trackingData - * @return trackingData + * + * @return trackingData */ @JsonProperty(JSON_PROPERTY_TRACKING_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -876,7 +890,7 @@ public TransferEventTrackingData getTrackingData() { /** * trackingData * - * @param trackingData + * @param trackingData */ @JsonProperty(JSON_PROPERTY_TRACKING_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -885,9 +899,11 @@ public void setTrackingData(TransferEventTrackingData trackingData) { } /** - * The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes. + * The id of the transaction that is related to this accounting event. Only sent for events of + * type **accounting** where the balance changes. * - * @param transactionId The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes. + * @param transactionId The id of the transaction that is related to this accounting event. Only + * sent for events of type **accounting** where the balance changes. * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent transactionId(String transactionId) { @@ -896,8 +912,11 @@ public TransferEvent transactionId(String transactionId) { } /** - * The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes. - * @return transactionId The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes. + * The id of the transaction that is related to this accounting event. Only sent for events of + * type **accounting** where the balance changes. + * + * @return transactionId The id of the transaction that is related to this accounting event. Only + * sent for events of type **accounting** where the balance changes. */ @JsonProperty(JSON_PROPERTY_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -906,9 +925,11 @@ public String getTransactionId() { } /** - * The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes. + * The id of the transaction that is related to this accounting event. Only sent for events of + * type **accounting** where the balance changes. * - * @param transactionId The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes. + * @param transactionId The id of the transaction that is related to this accounting event. Only + * sent for events of type **accounting** where the balance changes. */ @JsonProperty(JSON_PROPERTY_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -929,6 +950,7 @@ public TransferEvent type(TypeEnum type) { /** * The type of the transfer event. Possible values: **accounting**, **tracking**. + * * @return type The type of the transfer event. Possible values: **accounting**, **tracking**. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -961,6 +983,7 @@ public TransferEvent updateDate(OffsetDateTime updateDate) { /** * The date when the tracking status was updated. + * * @return updateDate The date when the tracking status was updated. */ @JsonProperty(JSON_PROPERTY_UPDATE_DATE) @@ -981,9 +1004,11 @@ public void setUpdateDate(OffsetDateTime updateDate) { } /** - * The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future. + * The date when the funds are expected to be deducted from or credited to the balance account. + * This date can be in either the past or future. * - * @param valueDate The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future. + * @param valueDate The date when the funds are expected to be deducted from or credited to the + * balance account. This date can be in either the past or future. * @return the current {@code TransferEvent} instance, allowing for method chaining */ public TransferEvent valueDate(OffsetDateTime valueDate) { @@ -992,8 +1017,11 @@ public TransferEvent valueDate(OffsetDateTime valueDate) { } /** - * The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future. - * @return valueDate The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future. + * The date when the funds are expected to be deducted from or credited to the balance account. + * This date can be in either the past or future. + * + * @return valueDate The date when the funds are expected to be deducted from or credited to the + * balance account. This date can be in either the past or future. */ @JsonProperty(JSON_PROPERTY_VALUE_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1002,9 +1030,11 @@ public OffsetDateTime getValueDate() { } /** - * The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future. + * The date when the funds are expected to be deducted from or credited to the balance account. + * This date can be in either the past or future. * - * @param valueDate The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future. + * @param valueDate The date when the funds are expected to be deducted from or credited to the + * balance account. This date can be in either the past or future. */ @JsonProperty(JSON_PROPERTY_VALUE_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1012,9 +1042,7 @@ public void setValueDate(OffsetDateTime valueDate) { this.valueDate = valueDate; } - /** - * Return true if this TransferEvent object is equal to o. - */ + /** Return true if this TransferEvent object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -1024,29 +1052,47 @@ public boolean equals(Object o) { return false; } TransferEvent transferEvent = (TransferEvent) o; - return Objects.equals(this.amount, transferEvent.amount) && - Objects.equals(this.amountAdjustments, transferEvent.amountAdjustments) && - Objects.equals(this.arn, transferEvent.arn) && - Objects.equals(this.bookingDate, transferEvent.bookingDate) && - Objects.equals(this.estimatedArrivalTime, transferEvent.estimatedArrivalTime) && - Objects.equals(this.eventsData, transferEvent.eventsData) && - Objects.equals(this.externalReason, transferEvent.externalReason) && - Objects.equals(this.id, transferEvent.id) && - Objects.equals(this.modification, transferEvent.modification) && - Objects.equals(this.mutations, transferEvent.mutations) && - Objects.equals(this.originalAmount, transferEvent.originalAmount) && - Objects.equals(this.reason, transferEvent.reason) && - Objects.equals(this.status, transferEvent.status) && - Objects.equals(this.trackingData, transferEvent.trackingData) && - Objects.equals(this.transactionId, transferEvent.transactionId) && - Objects.equals(this.type, transferEvent.type) && - Objects.equals(this.updateDate, transferEvent.updateDate) && - Objects.equals(this.valueDate, transferEvent.valueDate); + return Objects.equals(this.amount, transferEvent.amount) + && Objects.equals(this.amountAdjustments, transferEvent.amountAdjustments) + && Objects.equals(this.arn, transferEvent.arn) + && Objects.equals(this.bookingDate, transferEvent.bookingDate) + && Objects.equals(this.estimatedArrivalTime, transferEvent.estimatedArrivalTime) + && Objects.equals(this.eventsData, transferEvent.eventsData) + && Objects.equals(this.externalReason, transferEvent.externalReason) + && Objects.equals(this.id, transferEvent.id) + && Objects.equals(this.modification, transferEvent.modification) + && Objects.equals(this.mutations, transferEvent.mutations) + && Objects.equals(this.originalAmount, transferEvent.originalAmount) + && Objects.equals(this.reason, transferEvent.reason) + && Objects.equals(this.status, transferEvent.status) + && Objects.equals(this.trackingData, transferEvent.trackingData) + && Objects.equals(this.transactionId, transferEvent.transactionId) + && Objects.equals(this.type, transferEvent.type) + && Objects.equals(this.updateDate, transferEvent.updateDate) + && Objects.equals(this.valueDate, transferEvent.valueDate); } @Override public int hashCode() { - return Objects.hash(amount, amountAdjustments, arn, bookingDate, estimatedArrivalTime, eventsData, externalReason, id, modification, mutations, originalAmount, reason, status, trackingData, transactionId, type, updateDate, valueDate); + return Objects.hash( + amount, + amountAdjustments, + arn, + bookingDate, + estimatedArrivalTime, + eventsData, + externalReason, + id, + modification, + mutations, + originalAmount, + reason, + status, + trackingData, + transactionId, + type, + updateDate, + valueDate); } @Override @@ -1057,7 +1103,9 @@ public String toString() { sb.append(" amountAdjustments: ").append(toIndentedString(amountAdjustments)).append("\n"); sb.append(" arn: ").append(toIndentedString(arn)).append("\n"); sb.append(" bookingDate: ").append(toIndentedString(bookingDate)).append("\n"); - sb.append(" estimatedArrivalTime: ").append(toIndentedString(estimatedArrivalTime)).append("\n"); + sb.append(" estimatedArrivalTime: ") + .append(toIndentedString(estimatedArrivalTime)) + .append("\n"); sb.append(" eventsData: ").append(toIndentedString(eventsData)).append("\n"); sb.append(" externalReason: ").append(toIndentedString(externalReason)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); @@ -1076,8 +1124,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -1086,7 +1133,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransferEvent given an JSON string * * @param jsonString JSON string @@ -1096,11 +1143,12 @@ private String toIndentedString(Object o) { public static TransferEvent fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferEvent.class); } -/** - * Convert an instance of TransferEvent to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransferEvent to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferEventEventsDataInner.java b/src/main/java/com/adyen/model/transferwebhooks/TransferEventEventsDataInner.java index 243074be1..9f8c0aa2b 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferEventEventsDataInner.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferEventEventsDataInner.java @@ -2,49 +2,19 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transferwebhooks.Airline; -import com.adyen.model.transferwebhooks.IssuingTransactionData; -import com.adyen.model.transferwebhooks.Lodging; -import com.adyen.model.transferwebhooks.MerchantPurchaseData; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -import com.fasterxml.jackson.core.type.TypeReference; - -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.core.Response; -import java.io.IOException; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; - import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -54,214 +24,231 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import jakarta.ws.rs.core.GenericType; +import java.io.IOException; +import java.util.*; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.logging.Level; +import java.util.logging.Logger; - -@JsonDeserialize(using = TransferEventEventsDataInner.TransferEventEventsDataInnerDeserializer.class) +@JsonDeserialize( + using = TransferEventEventsDataInner.TransferEventEventsDataInnerDeserializer.class) @JsonSerialize(using = TransferEventEventsDataInner.TransferEventEventsDataInnerSerializer.class) public class TransferEventEventsDataInner extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(TransferEventEventsDataInner.class.getName()); - - public static class TransferEventEventsDataInnerSerializer extends StdSerializer { - public TransferEventEventsDataInnerSerializer(Class t) { - super(t); - } - - public TransferEventEventsDataInnerSerializer() { - this(null); - } + private static final Logger log = Logger.getLogger(TransferEventEventsDataInner.class.getName()); - @Override - public void serialize(TransferEventEventsDataInner value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } + public static class TransferEventEventsDataInnerSerializer + extends StdSerializer { + public TransferEventEventsDataInnerSerializer(Class t) { + super(t); } - public static class TransferEventEventsDataInnerDeserializer extends StdDeserializer { - public TransferEventEventsDataInnerDeserializer() { - this(TransferEventEventsDataInner.class); - } - - public TransferEventEventsDataInnerDeserializer(Class vc) { - super(vc); - } - - @Override - public TransferEventEventsDataInner deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize IssuingTransactionData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(IssuingTransactionData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(IssuingTransactionData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'IssuingTransactionData'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'IssuingTransactionData'", e); - } - - // deserialize MerchantPurchaseData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(MerchantPurchaseData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(MerchantPurchaseData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'MerchantPurchaseData'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'MerchantPurchaseData'", e); - } - - if (match == 1) { - TransferEventEventsDataInner ret = new TransferEventEventsDataInner(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException(String.format("Failed deserialization for TransferEventEventsDataInner: %d classes match result, expected 1", match)); - } - - /** - * Handle deserialization of the 'null' value. - */ - @Override - public TransferEventEventsDataInner getNullValue(DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "TransferEventEventsDataInner cannot be null"); - } + public TransferEventEventsDataInnerSerializer() { + this(null); } - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public TransferEventEventsDataInner() { - super("oneOf", Boolean.FALSE); - } - - public TransferEventEventsDataInner(IssuingTransactionData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + @Override + public void serialize( + TransferEventEventsDataInner value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); } + } - public TransferEventEventsDataInner(MerchantPurchaseData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + public static class TransferEventEventsDataInnerDeserializer + extends StdDeserializer { + public TransferEventEventsDataInnerDeserializer() { + this(TransferEventEventsDataInner.class); } - static { - schemas.put("IssuingTransactionData", new GenericType() { - }); - schemas.put("MerchantPurchaseData", new GenericType() { - }); - JSON.registerDescendants(TransferEventEventsDataInner.class, Collections.unmodifiableMap(schemas)); + public TransferEventEventsDataInnerDeserializer(Class vc) { + super(vc); } @Override - public Map> getSchemas() { - return TransferEventEventsDataInner.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check - * the instance parameter is valid against the oneOf child schemas: - * IssuingTransactionData, MerchantPurchaseData - * - * It could be an instance of the 'oneOf' schemas. - * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(IssuingTransactionData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + public TransferEventEventsDataInner deserialize(JsonParser jp, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize IssuingTransactionData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(IssuingTransactionData.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(IssuingTransactionData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'IssuingTransactionData'"); + } } - - if (JSON.isInstanceOf(MerchantPurchaseData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'IssuingTransactionData'", e); + } + + // deserialize MerchantPurchaseData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(MerchantPurchaseData.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(MerchantPurchaseData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'MerchantPurchaseData'"); + } } - - throw new RuntimeException("Invalid instance type. Must be IssuingTransactionData, MerchantPurchaseData"); + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'MerchantPurchaseData'", e); + } + + if (match == 1) { + TransferEventEventsDataInner ret = new TransferEventEventsDataInner(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException( + String.format( + "Failed deserialization for TransferEventEventsDataInner: %d classes match result, expected 1", + match)); } - /** - * Get the actual instance, which can be the following: - * IssuingTransactionData, MerchantPurchaseData - * - * @return The actual instance (IssuingTransactionData, MerchantPurchaseData) - */ + /** Handle deserialization of the 'null' value. */ @Override - public Object getActualInstance() { - return super.getActualInstance(); + public TransferEventEventsDataInner getNullValue(DeserializationContext ctxt) + throws JsonMappingException { + throw new JsonMappingException( + ctxt.getParser(), "TransferEventEventsDataInner cannot be null"); } - - /** - * Get the actual instance of `IssuingTransactionData`. If the actual instance is not `IssuingTransactionData`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `IssuingTransactionData` - * @throws ClassCastException if the instance is not `IssuingTransactionData` - */ - public IssuingTransactionData getIssuingTransactionData() throws ClassCastException { - return (IssuingTransactionData)super.getActualInstance(); - } - - /** - * Get the actual instance of `MerchantPurchaseData`. If the actual instance is not `MerchantPurchaseData`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `MerchantPurchaseData` - * @throws ClassCastException if the instance is not `MerchantPurchaseData` - */ - public MerchantPurchaseData getMerchantPurchaseData() throws ClassCastException { - return (MerchantPurchaseData)super.getActualInstance(); - } - - - /** - * Create an instance of TransferEventEventsDataInner given an JSON string - * - * @param jsonString JSON string - * @return An instance of TransferEventEventsDataInner - * @throws IOException if the JSON string is invalid with respect to TransferEventEventsDataInner - */ - public static TransferEventEventsDataInner fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, TransferEventEventsDataInner.class); + } + + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public TransferEventEventsDataInner() { + super("oneOf", Boolean.FALSE); + } + + public TransferEventEventsDataInner(IssuingTransactionData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferEventEventsDataInner(MerchantPurchaseData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("IssuingTransactionData", new GenericType() {}); + schemas.put("MerchantPurchaseData", new GenericType() {}); + JSON.registerDescendants( + TransferEventEventsDataInner.class, Collections.unmodifiableMap(schemas)); + } + + @Override + public Map> getSchemas() { + return TransferEventEventsDataInner.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check the instance parameter is valid + * against the oneOf child schemas: IssuingTransactionData, MerchantPurchaseData + * + *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a + * composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(IssuingTransactionData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Convert an instance of TransferEventEventsDataInner to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); + if (JSON.isInstanceOf(MerchantPurchaseData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } + throw new RuntimeException( + "Invalid instance type. Must be IssuingTransactionData, MerchantPurchaseData"); + } + + /** + * Get the actual instance, which can be the following: IssuingTransactionData, + * MerchantPurchaseData + * + * @return The actual instance (IssuingTransactionData, MerchantPurchaseData) + */ + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `IssuingTransactionData`. If the actual instance is not + * `IssuingTransactionData`, the ClassCastException will be thrown. + * + * @return The actual instance of `IssuingTransactionData` + * @throws ClassCastException if the instance is not `IssuingTransactionData` + */ + public IssuingTransactionData getIssuingTransactionData() throws ClassCastException { + return (IssuingTransactionData) super.getActualInstance(); + } + + /** + * Get the actual instance of `MerchantPurchaseData`. If the actual instance is not + * `MerchantPurchaseData`, the ClassCastException will be thrown. + * + * @return The actual instance of `MerchantPurchaseData` + * @throws ClassCastException if the instance is not `MerchantPurchaseData` + */ + public MerchantPurchaseData getMerchantPurchaseData() throws ClassCastException { + return (MerchantPurchaseData) super.getActualInstance(); + } + + /** + * Create an instance of TransferEventEventsDataInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of TransferEventEventsDataInner + * @throws IOException if the JSON string is invalid with respect to TransferEventEventsDataInner + */ + public static TransferEventEventsDataInner fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, TransferEventEventsDataInner.class); + } + + /** + * Convert an instance of TransferEventEventsDataInner to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferEventTrackingData.java b/src/main/java/com/adyen/model/transferwebhooks/TransferEventTrackingData.java index c782d6865..c775beac7 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferEventTrackingData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferEventTrackingData.java @@ -2,47 +2,19 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transferwebhooks.ConfirmationTrackingData; -import com.adyen.model.transferwebhooks.EstimationTrackingData; -import com.adyen.model.transferwebhooks.InternalReviewTrackingData; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - -import com.fasterxml.jackson.core.type.TypeReference; - -import jakarta.ws.rs.core.GenericType; -import jakarta.ws.rs.core.Response; -import java.io.IOException; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; - import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; @@ -52,261 +24,279 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; - +import jakarta.ws.rs.core.GenericType; +import java.io.IOException; +import java.util.*; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.logging.Level; +import java.util.logging.Logger; @JsonDeserialize(using = TransferEventTrackingData.TransferEventTrackingDataDeserializer.class) @JsonSerialize(using = TransferEventTrackingData.TransferEventTrackingDataSerializer.class) public class TransferEventTrackingData extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(TransferEventTrackingData.class.getName()); - - public static class TransferEventTrackingDataSerializer extends StdSerializer { - public TransferEventTrackingDataSerializer(Class t) { - super(t); - } - - public TransferEventTrackingDataSerializer() { - this(null); - } - - @Override - public void serialize(TransferEventTrackingData value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class TransferEventTrackingDataDeserializer extends StdDeserializer { - public TransferEventTrackingDataDeserializer() { - this(TransferEventTrackingData.class); - } - - public TransferEventTrackingDataDeserializer(Class vc) { - super(vc); - } - - @Override - public TransferEventTrackingData deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize ConfirmationTrackingData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(ConfirmationTrackingData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(ConfirmationTrackingData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'ConfirmationTrackingData'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'ConfirmationTrackingData'", e); - } - - // deserialize EstimationTrackingData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(EstimationTrackingData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(EstimationTrackingData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'EstimationTrackingData'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'EstimationTrackingData'", e); - } - - // deserialize InternalReviewTrackingData - try { - boolean attemptParsing = true; - if (attemptParsing) { - // Checks if the unique type of the oneOf json matches any of the object TypeEnum values - boolean typeMatch = false; - if(tree.findValue("type") != null) { - typeMatch = Arrays.stream(InternalReviewTrackingData.TypeEnum.values()).anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); - } - - if(typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(InternalReviewTrackingData.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'InternalReviewTrackingData'"); - } - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'InternalReviewTrackingData'", e); - } - - if (match == 1) { - TransferEventTrackingData ret = new TransferEventTrackingData(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException(String.format("Failed deserialization for TransferEventTrackingData: %d classes match result, expected 1", match)); - } - - /** - * Handle deserialization of the 'null' value. - */ - @Override - public TransferEventTrackingData getNullValue(DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "TransferEventTrackingData cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); + private static final Logger log = Logger.getLogger(TransferEventTrackingData.class.getName()); - public TransferEventTrackingData() { - super("oneOf", Boolean.FALSE); + public static class TransferEventTrackingDataSerializer + extends StdSerializer { + public TransferEventTrackingDataSerializer(Class t) { + super(t); } - public TransferEventTrackingData(ConfirmationTrackingData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + public TransferEventTrackingDataSerializer() { + this(null); } - public TransferEventTrackingData(EstimationTrackingData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferEventTrackingData(InternalReviewTrackingData o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + @Override + public void serialize( + TransferEventTrackingData value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); } + } - static { - schemas.put("ConfirmationTrackingData", new GenericType() { - }); - schemas.put("EstimationTrackingData", new GenericType() { - }); - schemas.put("InternalReviewTrackingData", new GenericType() { - }); - JSON.registerDescendants(TransferEventTrackingData.class, Collections.unmodifiableMap(schemas)); + public static class TransferEventTrackingDataDeserializer + extends StdDeserializer { + public TransferEventTrackingDataDeserializer() { + this(TransferEventTrackingData.class); } - @Override - public Map> getSchemas() { - return TransferEventTrackingData.schemas; + public TransferEventTrackingDataDeserializer(Class vc) { + super(vc); } - /** - * Set the instance that matches the oneOf child schema, check - * the instance parameter is valid against the oneOf child schemas: - * ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData - * - * It could be an instance of the 'oneOf' schemas. - * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). - */ @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(ConfirmationTrackingData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + public TransferEventTrackingData deserialize(JsonParser jp, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize ConfirmationTrackingData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(ConfirmationTrackingData.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(ConfirmationTrackingData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'ConfirmationTrackingData'"); + } } - - if (JSON.isInstanceOf(EstimationTrackingData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'ConfirmationTrackingData'", e); + } + + // deserialize EstimationTrackingData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(EstimationTrackingData.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(EstimationTrackingData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'EstimationTrackingData'"); + } } - - if (JSON.isInstanceOf(InternalReviewTrackingData.class, instance, new HashSet<>())) { - super.setActualInstance(instance); - return; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'EstimationTrackingData'", e); + } + + // deserialize InternalReviewTrackingData + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(InternalReviewTrackingData.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()).readValueAs(InternalReviewTrackingData.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'InternalReviewTrackingData'"); + } } - - throw new RuntimeException("Invalid instance type. Must be ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData"); + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'InternalReviewTrackingData'", e); + } + + if (match == 1) { + TransferEventTrackingData ret = new TransferEventTrackingData(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException( + String.format( + "Failed deserialization for TransferEventTrackingData: %d classes match result, expected 1", + match)); } - /** - * Get the actual instance, which can be the following: - * ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData - * - * @return The actual instance (ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData) - */ + /** Handle deserialization of the 'null' value. */ @Override - public Object getActualInstance() { - return super.getActualInstance(); + public TransferEventTrackingData getNullValue(DeserializationContext ctxt) + throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "TransferEventTrackingData cannot be null"); } - - /** - * Get the actual instance of `ConfirmationTrackingData`. If the actual instance is not `ConfirmationTrackingData`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `ConfirmationTrackingData` - * @throws ClassCastException if the instance is not `ConfirmationTrackingData` - */ - public ConfirmationTrackingData getConfirmationTrackingData() throws ClassCastException { - return (ConfirmationTrackingData)super.getActualInstance(); - } - - /** - * Get the actual instance of `EstimationTrackingData`. If the actual instance is not `EstimationTrackingData`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `EstimationTrackingData` - * @throws ClassCastException if the instance is not `EstimationTrackingData` - */ - public EstimationTrackingData getEstimationTrackingData() throws ClassCastException { - return (EstimationTrackingData)super.getActualInstance(); + } + + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public TransferEventTrackingData() { + super("oneOf", Boolean.FALSE); + } + + public TransferEventTrackingData(ConfirmationTrackingData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferEventTrackingData(EstimationTrackingData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public TransferEventTrackingData(InternalReviewTrackingData o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("ConfirmationTrackingData", new GenericType() {}); + schemas.put("EstimationTrackingData", new GenericType() {}); + schemas.put("InternalReviewTrackingData", new GenericType() {}); + JSON.registerDescendants(TransferEventTrackingData.class, Collections.unmodifiableMap(schemas)); + } + + @Override + public Map> getSchemas() { + return TransferEventTrackingData.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check the instance parameter is valid + * against the oneOf child schemas: ConfirmationTrackingData, EstimationTrackingData, + * InternalReviewTrackingData + * + *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a + * composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(ConfirmationTrackingData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `InternalReviewTrackingData`. If the actual instance is not `InternalReviewTrackingData`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `InternalReviewTrackingData` - * @throws ClassCastException if the instance is not `InternalReviewTrackingData` - */ - public InternalReviewTrackingData getInternalReviewTrackingData() throws ClassCastException { - return (InternalReviewTrackingData)super.getActualInstance(); - } - - - /** - * Create an instance of TransferEventTrackingData given an JSON string - * - * @param jsonString JSON string - * @return An instance of TransferEventTrackingData - * @throws IOException if the JSON string is invalid with respect to TransferEventTrackingData - */ - public static TransferEventTrackingData fromJson(String jsonString) throws IOException { - return JSON.getMapper().readValue(jsonString, TransferEventTrackingData.class); + if (JSON.isInstanceOf(EstimationTrackingData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } - /** - * Convert an instance of TransferEventTrackingData to an JSON string - * - * @return JSON string - */ - public String toJson() throws JsonProcessingException { - return JSON.getMapper().writeValueAsString(this); + if (JSON.isInstanceOf(InternalReviewTrackingData.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; } + throw new RuntimeException( + "Invalid instance type. Must be ConfirmationTrackingData, EstimationTrackingData, InternalReviewTrackingData"); + } + + /** + * Get the actual instance, which can be the following: ConfirmationTrackingData, + * EstimationTrackingData, InternalReviewTrackingData + * + * @return The actual instance (ConfirmationTrackingData, EstimationTrackingData, + * InternalReviewTrackingData) + */ + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `ConfirmationTrackingData`. If the actual instance is not + * `ConfirmationTrackingData`, the ClassCastException will be thrown. + * + * @return The actual instance of `ConfirmationTrackingData` + * @throws ClassCastException if the instance is not `ConfirmationTrackingData` + */ + public ConfirmationTrackingData getConfirmationTrackingData() throws ClassCastException { + return (ConfirmationTrackingData) super.getActualInstance(); + } + + /** + * Get the actual instance of `EstimationTrackingData`. If the actual instance is not + * `EstimationTrackingData`, the ClassCastException will be thrown. + * + * @return The actual instance of `EstimationTrackingData` + * @throws ClassCastException if the instance is not `EstimationTrackingData` + */ + public EstimationTrackingData getEstimationTrackingData() throws ClassCastException { + return (EstimationTrackingData) super.getActualInstance(); + } + + /** + * Get the actual instance of `InternalReviewTrackingData`. If the actual instance is not + * `InternalReviewTrackingData`, the ClassCastException will be thrown. + * + * @return The actual instance of `InternalReviewTrackingData` + * @throws ClassCastException if the instance is not `InternalReviewTrackingData` + */ + public InternalReviewTrackingData getInternalReviewTrackingData() throws ClassCastException { + return (InternalReviewTrackingData) super.getActualInstance(); + } + + /** + * Create an instance of TransferEventTrackingData given an JSON string + * + * @param jsonString JSON string + * @return An instance of TransferEventTrackingData + * @throws IOException if the JSON string is invalid with respect to TransferEventTrackingData + */ + public static TransferEventTrackingData fromJson(String jsonString) throws IOException { + return JSON.getMapper().readValue(jsonString, TransferEventTrackingData.class); + } + + /** + * Convert an instance of TransferEventTrackingData to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationCounterParty.java b/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationCounterParty.java index d85fe227a..cb9c7a255 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationCounterParty.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationCounterParty.java @@ -2,34 +2,22 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transferwebhooks.BankAccountV3; -import com.adyen.model.transferwebhooks.Card; -import com.adyen.model.transferwebhooks.TransferNotificationMerchantData; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TransferNotificationCounterParty - */ +/** TransferNotificationCounterParty */ @JsonPropertyOrder({ TransferNotificationCounterParty.JSON_PROPERTY_BALANCE_ACCOUNT_ID, TransferNotificationCounterParty.JSON_PROPERTY_BANK_ACCOUNT, @@ -37,7 +25,6 @@ TransferNotificationCounterParty.JSON_PROPERTY_MERCHANT, TransferNotificationCounterParty.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID }) - public class TransferNotificationCounterParty { public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId"; private String balanceAccountId; @@ -54,14 +41,16 @@ public class TransferNotificationCounterParty { public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_ID = "transferInstrumentId"; private String transferInstrumentId; - public TransferNotificationCounterParty() { - } + public TransferNotificationCounterParty() {} /** - * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * The unique identifier of the counterparty [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). * - * @param balanceAccountId The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). - * @return the current {@code TransferNotificationCounterParty} instance, allowing for method chaining + * @param balanceAccountId The unique identifier of the counterparty [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * @return the current {@code TransferNotificationCounterParty} instance, allowing for method + * chaining */ public TransferNotificationCounterParty balanceAccountId(String balanceAccountId) { this.balanceAccountId = balanceAccountId; @@ -69,8 +58,11 @@ public TransferNotificationCounterParty balanceAccountId(String balanceAccountId } /** - * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). - * @return balanceAccountId The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * The unique identifier of the counterparty [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * + * @return balanceAccountId The unique identifier of the counterparty [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,9 +71,11 @@ public String getBalanceAccountId() { } /** - * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * The unique identifier of the counterparty [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). * - * @param balanceAccountId The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). + * @param balanceAccountId The unique identifier of the counterparty [balance + * account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). */ @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -92,8 +86,9 @@ public void setBalanceAccountId(String balanceAccountId) { /** * bankAccount * - * @param bankAccount - * @return the current {@code TransferNotificationCounterParty} instance, allowing for method chaining + * @param bankAccount + * @return the current {@code TransferNotificationCounterParty} instance, allowing for method + * chaining */ public TransferNotificationCounterParty bankAccount(BankAccountV3 bankAccount) { this.bankAccount = bankAccount; @@ -102,7 +97,8 @@ public TransferNotificationCounterParty bankAccount(BankAccountV3 bankAccount) { /** * Get bankAccount - * @return bankAccount + * + * @return bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,7 +109,7 @@ public BankAccountV3 getBankAccount() { /** * bankAccount * - * @param bankAccount + * @param bankAccount */ @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,8 +120,9 @@ public void setBankAccount(BankAccountV3 bankAccount) { /** * card * - * @param card - * @return the current {@code TransferNotificationCounterParty} instance, allowing for method chaining + * @param card + * @return the current {@code TransferNotificationCounterParty} instance, allowing for method + * chaining */ public TransferNotificationCounterParty card(Card card) { this.card = card; @@ -134,7 +131,8 @@ public TransferNotificationCounterParty card(Card card) { /** * Get card - * @return card + * + * @return card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,7 +143,7 @@ public Card getCard() { /** * card * - * @param card + * @param card */ @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -156,8 +154,9 @@ public void setCard(Card card) { /** * merchant * - * @param merchant - * @return the current {@code TransferNotificationCounterParty} instance, allowing for method chaining + * @param merchant + * @return the current {@code TransferNotificationCounterParty} instance, allowing for method + * chaining */ public TransferNotificationCounterParty merchant(TransferNotificationMerchantData merchant) { this.merchant = merchant; @@ -166,7 +165,8 @@ public TransferNotificationCounterParty merchant(TransferNotificationMerchantDat /** * Get merchant - * @return merchant + * + * @return merchant */ @JsonProperty(JSON_PROPERTY_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,7 +177,7 @@ public TransferNotificationMerchantData getMerchant() { /** * merchant * - * @param merchant + * @param merchant */ @JsonProperty(JSON_PROPERTY_MERCHANT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,10 +186,13 @@ public void setMerchant(TransferNotificationMerchantData merchant) { } /** - * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * The unique identifier of the counterparty [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). * - * @param transferInstrumentId The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). - * @return the current {@code TransferNotificationCounterParty} instance, allowing for method chaining + * @param transferInstrumentId The unique identifier of the counterparty [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * @return the current {@code TransferNotificationCounterParty} instance, allowing for method + * chaining */ public TransferNotificationCounterParty transferInstrumentId(String transferInstrumentId) { this.transferInstrumentId = transferInstrumentId; @@ -197,8 +200,11 @@ public TransferNotificationCounterParty transferInstrumentId(String transferInst } /** - * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). - * @return transferInstrumentId The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * The unique identifier of the counterparty [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * + * @return transferInstrumentId The unique identifier of the counterparty [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -207,9 +213,11 @@ public String getTransferInstrumentId() { } /** - * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * The unique identifier of the counterparty [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). * - * @param transferInstrumentId The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). + * @param transferInstrumentId The unique identifier of the counterparty [transfer + * instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -217,9 +225,7 @@ public void setTransferInstrumentId(String transferInstrumentId) { this.transferInstrumentId = transferInstrumentId; } - /** - * Return true if this TransferNotificationCounterParty object is equal to o. - */ + /** Return true if this TransferNotificationCounterParty object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -228,12 +234,14 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TransferNotificationCounterParty transferNotificationCounterParty = (TransferNotificationCounterParty) o; - return Objects.equals(this.balanceAccountId, transferNotificationCounterParty.balanceAccountId) && - Objects.equals(this.bankAccount, transferNotificationCounterParty.bankAccount) && - Objects.equals(this.card, transferNotificationCounterParty.card) && - Objects.equals(this.merchant, transferNotificationCounterParty.merchant) && - Objects.equals(this.transferInstrumentId, transferNotificationCounterParty.transferInstrumentId); + TransferNotificationCounterParty transferNotificationCounterParty = + (TransferNotificationCounterParty) o; + return Objects.equals(this.balanceAccountId, transferNotificationCounterParty.balanceAccountId) + && Objects.equals(this.bankAccount, transferNotificationCounterParty.bankAccount) + && Objects.equals(this.card, transferNotificationCounterParty.card) + && Objects.equals(this.merchant, transferNotificationCounterParty.merchant) + && Objects.equals( + this.transferInstrumentId, transferNotificationCounterParty.transferInstrumentId); } @Override @@ -249,14 +257,15 @@ public String toString() { sb.append(" bankAccount: ").append(toIndentedString(bankAccount)).append("\n"); sb.append(" card: ").append(toIndentedString(card)).append("\n"); sb.append(" merchant: ").append(toIndentedString(merchant)).append("\n"); - sb.append(" transferInstrumentId: ").append(toIndentedString(transferInstrumentId)).append("\n"); + sb.append(" transferInstrumentId: ") + .append(toIndentedString(transferInstrumentId)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -265,21 +274,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransferNotificationCounterParty given an JSON string * * @param jsonString JSON string * @return An instance of TransferNotificationCounterParty - * @throws JsonProcessingException if the JSON string is invalid with respect to TransferNotificationCounterParty + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TransferNotificationCounterParty */ - public static TransferNotificationCounterParty fromJson(String jsonString) throws JsonProcessingException { + public static TransferNotificationCounterParty fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferNotificationCounterParty.class); } -/** - * Convert an instance of TransferNotificationCounterParty to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransferNotificationCounterParty to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationMerchantData.java b/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationMerchantData.java index 1d3911889..1595c6a5b 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationMerchantData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationMerchantData.java @@ -2,31 +2,22 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TransferNotificationMerchantData - */ +/** TransferNotificationMerchantData */ @JsonPropertyOrder({ TransferNotificationMerchantData.JSON_PROPERTY_ACQUIRER_ID, TransferNotificationMerchantData.JSON_PROPERTY_CITY, @@ -36,7 +27,6 @@ TransferNotificationMerchantData.JSON_PROPERTY_NAME, TransferNotificationMerchantData.JSON_PROPERTY_POSTAL_CODE }) - public class TransferNotificationMerchantData { public static final String JSON_PROPERTY_ACQUIRER_ID = "acquirerId"; private String acquirerId; @@ -59,14 +49,14 @@ public class TransferNotificationMerchantData { public static final String JSON_PROPERTY_POSTAL_CODE = "postalCode"; private String postalCode; - public TransferNotificationMerchantData() { - } + public TransferNotificationMerchantData() {} /** * The unique identifier of the merchant's acquirer. * * @param acquirerId The unique identifier of the merchant's acquirer. - * @return the current {@code TransferNotificationMerchantData} instance, allowing for method chaining + * @return the current {@code TransferNotificationMerchantData} instance, allowing for method + * chaining */ public TransferNotificationMerchantData acquirerId(String acquirerId) { this.acquirerId = acquirerId; @@ -75,6 +65,7 @@ public TransferNotificationMerchantData acquirerId(String acquirerId) { /** * The unique identifier of the merchant's acquirer. + * * @return acquirerId The unique identifier of the merchant's acquirer. */ @JsonProperty(JSON_PROPERTY_ACQUIRER_ID) @@ -98,7 +89,8 @@ public void setAcquirerId(String acquirerId) { * The city where the merchant is located. * * @param city The city where the merchant is located. - * @return the current {@code TransferNotificationMerchantData} instance, allowing for method chaining + * @return the current {@code TransferNotificationMerchantData} instance, allowing for method + * chaining */ public TransferNotificationMerchantData city(String city) { this.city = city; @@ -107,6 +99,7 @@ public TransferNotificationMerchantData city(String city) { /** * The city where the merchant is located. + * * @return city The city where the merchant is located. */ @JsonProperty(JSON_PROPERTY_CITY) @@ -130,7 +123,8 @@ public void setCity(String city) { * The country where the merchant is located. * * @param country The country where the merchant is located. - * @return the current {@code TransferNotificationMerchantData} instance, allowing for method chaining + * @return the current {@code TransferNotificationMerchantData} instance, allowing for method + * chaining */ public TransferNotificationMerchantData country(String country) { this.country = country; @@ -139,6 +133,7 @@ public TransferNotificationMerchantData country(String country) { /** * The country where the merchant is located. + * * @return country The country where the merchant is located. */ @JsonProperty(JSON_PROPERTY_COUNTRY) @@ -162,7 +157,8 @@ public void setCountry(String country) { * The merchant category code. * * @param mcc The merchant category code. - * @return the current {@code TransferNotificationMerchantData} instance, allowing for method chaining + * @return the current {@code TransferNotificationMerchantData} instance, allowing for method + * chaining */ public TransferNotificationMerchantData mcc(String mcc) { this.mcc = mcc; @@ -171,6 +167,7 @@ public TransferNotificationMerchantData mcc(String mcc) { /** * The merchant category code. + * * @return mcc The merchant category code. */ @JsonProperty(JSON_PROPERTY_MCC) @@ -194,7 +191,8 @@ public void setMcc(String mcc) { * The unique identifier of the merchant. * * @param merchantId The unique identifier of the merchant. - * @return the current {@code TransferNotificationMerchantData} instance, allowing for method chaining + * @return the current {@code TransferNotificationMerchantData} instance, allowing for method + * chaining */ public TransferNotificationMerchantData merchantId(String merchantId) { this.merchantId = merchantId; @@ -203,6 +201,7 @@ public TransferNotificationMerchantData merchantId(String merchantId) { /** * The unique identifier of the merchant. + * * @return merchantId The unique identifier of the merchant. */ @JsonProperty(JSON_PROPERTY_MERCHANT_ID) @@ -226,7 +225,8 @@ public void setMerchantId(String merchantId) { * The name of the merchant's shop or service. * * @param name The name of the merchant's shop or service. - * @return the current {@code TransferNotificationMerchantData} instance, allowing for method chaining + * @return the current {@code TransferNotificationMerchantData} instance, allowing for method + * chaining */ public TransferNotificationMerchantData name(String name) { this.name = name; @@ -235,6 +235,7 @@ public TransferNotificationMerchantData name(String name) { /** * The name of the merchant's shop or service. + * * @return name The name of the merchant's shop or service. */ @JsonProperty(JSON_PROPERTY_NAME) @@ -258,7 +259,8 @@ public void setName(String name) { * The postal code of the merchant. * * @param postalCode The postal code of the merchant. - * @return the current {@code TransferNotificationMerchantData} instance, allowing for method chaining + * @return the current {@code TransferNotificationMerchantData} instance, allowing for method + * chaining */ public TransferNotificationMerchantData postalCode(String postalCode) { this.postalCode = postalCode; @@ -267,6 +269,7 @@ public TransferNotificationMerchantData postalCode(String postalCode) { /** * The postal code of the merchant. + * * @return postalCode The postal code of the merchant. */ @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @@ -286,9 +289,7 @@ public void setPostalCode(String postalCode) { this.postalCode = postalCode; } - /** - * Return true if this TransferNotificationMerchantData object is equal to o. - */ + /** Return true if this TransferNotificationMerchantData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -297,14 +298,15 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TransferNotificationMerchantData transferNotificationMerchantData = (TransferNotificationMerchantData) o; - return Objects.equals(this.acquirerId, transferNotificationMerchantData.acquirerId) && - Objects.equals(this.city, transferNotificationMerchantData.city) && - Objects.equals(this.country, transferNotificationMerchantData.country) && - Objects.equals(this.mcc, transferNotificationMerchantData.mcc) && - Objects.equals(this.merchantId, transferNotificationMerchantData.merchantId) && - Objects.equals(this.name, transferNotificationMerchantData.name) && - Objects.equals(this.postalCode, transferNotificationMerchantData.postalCode); + TransferNotificationMerchantData transferNotificationMerchantData = + (TransferNotificationMerchantData) o; + return Objects.equals(this.acquirerId, transferNotificationMerchantData.acquirerId) + && Objects.equals(this.city, transferNotificationMerchantData.city) + && Objects.equals(this.country, transferNotificationMerchantData.country) + && Objects.equals(this.mcc, transferNotificationMerchantData.mcc) + && Objects.equals(this.merchantId, transferNotificationMerchantData.merchantId) + && Objects.equals(this.name, transferNotificationMerchantData.name) + && Objects.equals(this.postalCode, transferNotificationMerchantData.postalCode); } @Override @@ -328,8 +330,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -338,21 +339,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransferNotificationMerchantData given an JSON string * * @param jsonString JSON string * @return An instance of TransferNotificationMerchantData - * @throws JsonProcessingException if the JSON string is invalid with respect to TransferNotificationMerchantData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TransferNotificationMerchantData */ - public static TransferNotificationMerchantData fromJson(String jsonString) throws JsonProcessingException { + public static TransferNotificationMerchantData fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferNotificationMerchantData.class); } -/** - * Convert an instance of TransferNotificationMerchantData to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransferNotificationMerchantData to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationRequest.java b/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationRequest.java index b3bb31354..3807a8fb1 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationRequest.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationRequest.java @@ -2,40 +2,33 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; -import com.adyen.model.transferwebhooks.TransferData; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; +import java.util.*; import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; - +import java.util.logging.Logger; -/** - * TransferNotificationRequest - */ +/** TransferNotificationRequest */ @JsonPropertyOrder({ TransferNotificationRequest.JSON_PROPERTY_DATA, TransferNotificationRequest.JSON_PROPERTY_ENVIRONMENT, TransferNotificationRequest.JSON_PROPERTY_TIMESTAMP, TransferNotificationRequest.JSON_PROPERTY_TYPE }) - public class TransferNotificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private TransferData data; @@ -46,11 +39,8 @@ public class TransferNotificationRequest { public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; private OffsetDateTime timestamp; - /** - * The type of webhook. - */ + /** The type of webhook. */ public enum TypeEnum { - BALANCEPLATFORM_TRANSFER_CREATED(String.valueOf("balancePlatform.transfer.created")), BALANCEPLATFORM_TRANSFER_UPDATED(String.valueOf("balancePlatform.transfer.updated")); @@ -60,7 +50,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -81,7 +71,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -89,13 +83,12 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public TransferNotificationRequest() { - } + public TransferNotificationRequest() {} /** * data * - * @param data + * @param data * @return the current {@code TransferNotificationRequest} instance, allowing for method chaining */ public TransferNotificationRequest data(TransferData data) { @@ -105,7 +98,8 @@ public TransferNotificationRequest data(TransferData data) { /** * Get data - * @return data + * + * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -116,7 +110,7 @@ public TransferData getData() { /** * data * - * @param data + * @param data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,9 +119,10 @@ public void setData(TransferData data) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. * @return the current {@code TransferNotificationRequest} instance, allowing for method chaining */ public TransferNotificationRequest environment(String environment) { @@ -136,8 +131,10 @@ public TransferNotificationRequest environment(String environment) { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. - * @return environment The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. + * + * @return environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,9 +143,10 @@ public String getEnvironment() { } /** - * The environment from which the webhook originated. Possible values: **test**, **live**. + * The environment from which the webhook originated. Possible values: **test**, **live**. * - * @param environment The environment from which the webhook originated. Possible values: **test**, **live**. + * @param environment The environment from which the webhook originated. Possible values: + * **test**, **live**. */ @JsonProperty(JSON_PROPERTY_ENVIRONMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,6 +167,7 @@ public TransferNotificationRequest timestamp(OffsetDateTime timestamp) { /** * When the event was queued. + * * @return timestamp When the event was queued. */ @JsonProperty(JSON_PROPERTY_TIMESTAMP) @@ -201,6 +200,7 @@ public TransferNotificationRequest type(TypeEnum type) { /** * The type of webhook. + * * @return type The type of webhook. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -220,9 +220,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this TransferNotificationRequest object is equal to o. - */ + /** Return true if this TransferNotificationRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -232,10 +230,10 @@ public boolean equals(Object o) { return false; } TransferNotificationRequest transferNotificationRequest = (TransferNotificationRequest) o; - return Objects.equals(this.data, transferNotificationRequest.data) && - Objects.equals(this.environment, transferNotificationRequest.environment) && - Objects.equals(this.timestamp, transferNotificationRequest.timestamp) && - Objects.equals(this.type, transferNotificationRequest.type); + return Objects.equals(this.data, transferNotificationRequest.data) + && Objects.equals(this.environment, transferNotificationRequest.environment) + && Objects.equals(this.timestamp, transferNotificationRequest.timestamp) + && Objects.equals(this.type, transferNotificationRequest.type); } @Override @@ -256,8 +254,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -266,21 +263,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransferNotificationRequest given an JSON string * * @param jsonString JSON string * @return An instance of TransferNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to TransferNotificationRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TransferNotificationRequest */ - public static TransferNotificationRequest fromJson(String jsonString) throws JsonProcessingException { + public static TransferNotificationRequest fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferNotificationRequest.class); } -/** - * Convert an instance of TransferNotificationRequest to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransferNotificationRequest to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationValidationFact.java b/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationValidationFact.java index 85e27e7bc..efaaecffd 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationValidationFact.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationValidationFact.java @@ -2,36 +2,26 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; - -/** - * TransferNotificationValidationFact - */ +/** TransferNotificationValidationFact */ @JsonPropertyOrder({ TransferNotificationValidationFact.JSON_PROPERTY_RESULT, TransferNotificationValidationFact.JSON_PROPERTY_TYPE }) - public class TransferNotificationValidationFact { public static final String JSON_PROPERTY_RESULT = "result"; private String result; @@ -39,14 +29,14 @@ public class TransferNotificationValidationFact { public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public TransferNotificationValidationFact() { - } + public TransferNotificationValidationFact() {} /** * The evaluation result of the validation fact. * * @param result The evaluation result of the validation fact. - * @return the current {@code TransferNotificationValidationFact} instance, allowing for method chaining + * @return the current {@code TransferNotificationValidationFact} instance, allowing for method + * chaining */ public TransferNotificationValidationFact result(String result) { this.result = result; @@ -55,6 +45,7 @@ public TransferNotificationValidationFact result(String result) { /** * The evaluation result of the validation fact. + * * @return result The evaluation result of the validation fact. */ @JsonProperty(JSON_PROPERTY_RESULT) @@ -78,7 +69,8 @@ public void setResult(String result) { * The type of the validation fact. * * @param type The type of the validation fact. - * @return the current {@code TransferNotificationValidationFact} instance, allowing for method chaining + * @return the current {@code TransferNotificationValidationFact} instance, allowing for method + * chaining */ public TransferNotificationValidationFact type(String type) { this.type = type; @@ -87,6 +79,7 @@ public TransferNotificationValidationFact type(String type) { /** * The type of the validation fact. + * * @return type The type of the validation fact. */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -106,9 +99,7 @@ public void setType(String type) { this.type = type; } - /** - * Return true if this TransferNotificationValidationFact object is equal to o. - */ + /** Return true if this TransferNotificationValidationFact object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -117,9 +108,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TransferNotificationValidationFact transferNotificationValidationFact = (TransferNotificationValidationFact) o; - return Objects.equals(this.result, transferNotificationValidationFact.result) && - Objects.equals(this.type, transferNotificationValidationFact.type); + TransferNotificationValidationFact transferNotificationValidationFact = + (TransferNotificationValidationFact) o; + return Objects.equals(this.result, transferNotificationValidationFact.result) + && Objects.equals(this.type, transferNotificationValidationFact.type); } @Override @@ -138,8 +130,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -148,21 +139,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransferNotificationValidationFact given an JSON string * * @param jsonString JSON string * @return An instance of TransferNotificationValidationFact - * @throws JsonProcessingException if the JSON string is invalid with respect to TransferNotificationValidationFact + * @throws JsonProcessingException if the JSON string is invalid with respect to + * TransferNotificationValidationFact */ - public static TransferNotificationValidationFact fromJson(String jsonString) throws JsonProcessingException { + public static TransferNotificationValidationFact fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferNotificationValidationFact.class); } -/** - * Convert an instance of TransferNotificationValidationFact to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransferNotificationValidationFact to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferReview.java b/src/main/java/com/adyen/model/transferwebhooks/TransferReview.java index 260e344a7..6d8f4bd11 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferReview.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferReview.java @@ -2,45 +2,40 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * TransferReview - */ +/** TransferReview */ @JsonPropertyOrder({ TransferReview.JSON_PROPERTY_NUMBER_OF_APPROVALS_REQUIRED, TransferReview.JSON_PROPERTY_SCA_ON_APPROVAL }) - public class TransferReview { - public static final String JSON_PROPERTY_NUMBER_OF_APPROVALS_REQUIRED = "numberOfApprovalsRequired"; + public static final String JSON_PROPERTY_NUMBER_OF_APPROVALS_REQUIRED = + "numberOfApprovalsRequired"; private Integer numberOfApprovalsRequired; /** - * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **notApplicable**. + * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: + * **required**, **notApplicable**. */ public enum ScaOnApprovalEnum { - COMPLETED(String.valueOf("completed")), NOTAPPLICABLE(String.valueOf("notApplicable")), @@ -52,7 +47,7 @@ public enum ScaOnApprovalEnum { private String value; ScaOnApprovalEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +68,11 @@ public static ScaOnApprovalEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("ScaOnApprovalEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(ScaOnApprovalEnum.values())); + LOG.warning( + "ScaOnApprovalEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(ScaOnApprovalEnum.values())); return null; } } @@ -81,13 +80,16 @@ public static ScaOnApprovalEnum fromValue(String value) { public static final String JSON_PROPERTY_SCA_ON_APPROVAL = "scaOnApproval"; private ScaOnApprovalEnum scaOnApproval; - public TransferReview() { - } + public TransferReview() {} /** - * Shows the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. + * Shows the number of + * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) + * required to process the transfer. * - * @param numberOfApprovalsRequired Shows the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. + * @param numberOfApprovalsRequired Shows the number of + * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) + * required to process the transfer. * @return the current {@code TransferReview} instance, allowing for method chaining */ public TransferReview numberOfApprovalsRequired(Integer numberOfApprovalsRequired) { @@ -96,8 +98,13 @@ public TransferReview numberOfApprovalsRequired(Integer numberOfApprovalsRequire } /** - * Shows the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. - * @return numberOfApprovalsRequired Shows the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. + * Shows the number of + * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) + * required to process the transfer. + * + * @return numberOfApprovalsRequired Shows the number of + * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) + * required to process the transfer. */ @JsonProperty(JSON_PROPERTY_NUMBER_OF_APPROVALS_REQUIRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -106,9 +113,13 @@ public Integer getNumberOfApprovalsRequired() { } /** - * Shows the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. + * Shows the number of + * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) + * required to process the transfer. * - * @param numberOfApprovalsRequired Shows the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. + * @param numberOfApprovalsRequired Shows the number of + * [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) + * required to process the transfer. */ @JsonProperty(JSON_PROPERTY_NUMBER_OF_APPROVALS_REQUIRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,9 +128,11 @@ public void setNumberOfApprovalsRequired(Integer numberOfApprovalsRequired) { } /** - * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **notApplicable**. + * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: + * **required**, **notApplicable**. * - * @param scaOnApproval Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **notApplicable**. + * @param scaOnApproval Shows the status of the Strong Customer Authentication (SCA) process. + * Possible values: **required**, **notApplicable**. * @return the current {@code TransferReview} instance, allowing for method chaining */ public TransferReview scaOnApproval(ScaOnApprovalEnum scaOnApproval) { @@ -128,8 +141,11 @@ public TransferReview scaOnApproval(ScaOnApprovalEnum scaOnApproval) { } /** - * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **notApplicable**. - * @return scaOnApproval Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **notApplicable**. + * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: + * **required**, **notApplicable**. + * + * @return scaOnApproval Shows the status of the Strong Customer Authentication (SCA) process. + * Possible values: **required**, **notApplicable**. */ @JsonProperty(JSON_PROPERTY_SCA_ON_APPROVAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,9 +154,11 @@ public ScaOnApprovalEnum getScaOnApproval() { } /** - * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **notApplicable**. + * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: + * **required**, **notApplicable**. * - * @param scaOnApproval Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **notApplicable**. + * @param scaOnApproval Shows the status of the Strong Customer Authentication (SCA) process. + * Possible values: **required**, **notApplicable**. */ @JsonProperty(JSON_PROPERTY_SCA_ON_APPROVAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,9 +166,7 @@ public void setScaOnApproval(ScaOnApprovalEnum scaOnApproval) { this.scaOnApproval = scaOnApproval; } - /** - * Return true if this TransferReview object is equal to o. - */ + /** Return true if this TransferReview object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -160,8 +176,8 @@ public boolean equals(Object o) { return false; } TransferReview transferReview = (TransferReview) o; - return Objects.equals(this.numberOfApprovalsRequired, transferReview.numberOfApprovalsRequired) && - Objects.equals(this.scaOnApproval, transferReview.scaOnApproval); + return Objects.equals(this.numberOfApprovalsRequired, transferReview.numberOfApprovalsRequired) + && Objects.equals(this.scaOnApproval, transferReview.scaOnApproval); } @Override @@ -173,15 +189,16 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TransferReview {\n"); - sb.append(" numberOfApprovalsRequired: ").append(toIndentedString(numberOfApprovalsRequired)).append("\n"); + sb.append(" numberOfApprovalsRequired: ") + .append(toIndentedString(numberOfApprovalsRequired)) + .append("\n"); sb.append(" scaOnApproval: ").append(toIndentedString(scaOnApproval)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -190,7 +207,7 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of TransferReview given an JSON string * * @param jsonString JSON string @@ -200,11 +217,12 @@ private String toIndentedString(Object o) { public static TransferReview fromJson(String jsonString) throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, TransferReview.class); } -/** - * Convert an instance of TransferReview to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of TransferReview to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferWebhooksHandler.java b/src/main/java/com/adyen/model/transferwebhooks/TransferWebhooksHandler.java index 97be46cab..0002b5b71 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferWebhooksHandler.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferWebhooksHandler.java @@ -2,7 +2,7 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,63 +16,62 @@ /** * Handler for processing TransferWebhooks. - *

- * This class provides functionality to deserialize the payload of TransferWebhooks events. + * + *

This class provides functionality to deserialize the payload of TransferWebhooks events. */ public class TransferWebhooksHandler { - private static final Logger LOG = Logger.getLogger(TransferWebhooksHandler.class.getName()); + private static final Logger LOG = Logger.getLogger(TransferWebhooksHandler.class.getName()); - private final String payload; + private final String payload; - /** - * Constructs a new handler for the given webhook payload - * - * @param payload the raw JSON payload from the webhook - */ - public TransferWebhooksHandler(String payload) { - this.payload = payload; - } + /** + * Constructs a new handler for the given webhook payload + * + * @param payload the raw JSON payload from the webhook + */ + public TransferWebhooksHandler(String payload) { + this.payload = payload; + } - /** - * Attempts to deserialize the webhook payload into a TransferNotificationRequest - * - * @return an Optional containing the deserialized object, or empty if deserialization fails - */ - public Optional getTransferNotificationRequest() { + /** + * Attempts to deserialize the webhook payload into a TransferNotificationRequest + * + * @return an Optional containing the deserialized object, or empty if deserialization fails + */ + public Optional getTransferNotificationRequest() { - var optionalTransferNotificationRequest = getOptionalField(TransferNotificationRequest.class); + var optionalTransferNotificationRequest = getOptionalField(TransferNotificationRequest.class); - if(optionalTransferNotificationRequest.isPresent()) { - // verify event type - for (var value : TransferNotificationRequest.TypeEnum.values()) { - if (value.equals(optionalTransferNotificationRequest.get().getType())) { - // found matching event type - return optionalTransferNotificationRequest; - } - } + if (optionalTransferNotificationRequest.isPresent()) { + // verify event type + for (var value : TransferNotificationRequest.TypeEnum.values()) { + if (value.equals(optionalTransferNotificationRequest.get().getType())) { + // found matching event type + return optionalTransferNotificationRequest; } - - return Optional.empty(); + } } - /** - * Deserializes the payload into the specified class type. - * - * @param clazz the class to deserialize into - * @param the type of the class - * @return an Optional containing the deserialized object, or empty if an error occurs - */ - private Optional getOptionalField(Class clazz) { - try { - T val = JSON.getMapper().readValue(payload, clazz); - return Optional.ofNullable(val); - } catch (Exception e) { - // an error has occurred during deserialization (object not found, deserialization error) - LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); - LOG.warning("Deserialization error: " + e.getMessage()); - return Optional.empty(); - } - } + return Optional.empty(); + } -} \ No newline at end of file + /** + * Deserializes the payload into the specified class type. + * + * @param clazz the class to deserialize into + * @param the type of the class + * @return an Optional containing the deserialized object, or empty if an error occurs + */ + private Optional getOptionalField(Class clazz) { + try { + T val = JSON.getMapper().readValue(payload, clazz); + return Optional.ofNullable(val); + } catch (Exception e) { + // an error has occurred during deserialization (object not found, deserialization error) + LOG.warning("Object not found or unexpected error trying to access: " + clazz.getName()); + LOG.warning("Deserialization error: " + e.getMessage()); + return Optional.empty(); + } + } +} diff --git a/src/main/java/com/adyen/model/transferwebhooks/UKLocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/UKLocalAccountIdentification.java index cea1b4348..726a08c59 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/UKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/UKLocalAccountIdentification.java @@ -2,37 +2,31 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * UKLocalAccountIdentification - */ +/** UKLocalAccountIdentification */ @JsonPropertyOrder({ UKLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, UKLocalAccountIdentification.JSON_PROPERTY_SORT_CODE, UKLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class UKLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; @@ -40,11 +34,8 @@ public class UKLocalAccountIdentification { public static final String JSON_PROPERTY_SORT_CODE = "sortCode"; private String sortCode; - /** - * **ukLocal** - */ + /** **ukLocal** */ public enum TypeEnum { - UKLOCAL(String.valueOf("ukLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -52,7 +43,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +64,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -81,8 +76,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public UKLocalAccountIdentification() { - } + public UKLocalAccountIdentification() {} /** * The 8-digit bank account number, without separators or whitespace. @@ -97,6 +91,7 @@ public UKLocalAccountIdentification accountNumber(String accountNumber) { /** * The 8-digit bank account number, without separators or whitespace. + * * @return accountNumber The 8-digit bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -117,9 +112,11 @@ public void setAccountNumber(String accountNumber) { } /** - * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. + * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or + * whitespace. * - * @param sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. + * @param sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without + * separators or whitespace. * @return the current {@code UKLocalAccountIdentification} instance, allowing for method chaining */ public UKLocalAccountIdentification sortCode(String sortCode) { @@ -128,8 +125,11 @@ public UKLocalAccountIdentification sortCode(String sortCode) { } /** - * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. - * @return sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. + * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or + * whitespace. + * + * @return sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without + * separators or whitespace. */ @JsonProperty(JSON_PROPERTY_SORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,9 +138,11 @@ public String getSortCode() { } /** - * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. + * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or + * whitespace. * - * @param sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. + * @param sortCode The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without + * separators or whitespace. */ @JsonProperty(JSON_PROPERTY_SORT_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,6 +163,7 @@ public UKLocalAccountIdentification type(TypeEnum type) { /** * **ukLocal** + * * @return type **ukLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -180,9 +183,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this UKLocalAccountIdentification object is equal to o. - */ + /** Return true if this UKLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -192,9 +193,9 @@ public boolean equals(Object o) { return false; } UKLocalAccountIdentification ukLocalAccountIdentification = (UKLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, ukLocalAccountIdentification.accountNumber) && - Objects.equals(this.sortCode, ukLocalAccountIdentification.sortCode) && - Objects.equals(this.type, ukLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, ukLocalAccountIdentification.accountNumber) + && Objects.equals(this.sortCode, ukLocalAccountIdentification.sortCode) + && Objects.equals(this.type, ukLocalAccountIdentification.type); } @Override @@ -214,8 +215,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -224,21 +224,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of UKLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of UKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to UKLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * UKLocalAccountIdentification */ - public static UKLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static UKLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, UKLocalAccountIdentification.class); } -/** - * Convert an instance of UKLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of UKLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/USLocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/USLocalAccountIdentification.java index efad3bb76..d11a9c0a2 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/USLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/USLocalAccountIdentification.java @@ -2,47 +2,40 @@ * Transfer webhooks * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package com.adyen.model.transferwebhooks; -import java.util.*; -import java.util.logging.Logger; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; - -/** - * USLocalAccountIdentification - */ +/** USLocalAccountIdentification */ @JsonPropertyOrder({ USLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER, USLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_TYPE, USLocalAccountIdentification.JSON_PROPERTY_ROUTING_NUMBER, USLocalAccountIdentification.JSON_PROPERTY_TYPE }) - public class USLocalAccountIdentification { public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; private String accountNumber; /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ public enum AccountTypeEnum { - CHECKING(String.valueOf("checking")), SAVINGS(String.valueOf("savings")); @@ -52,7 +45,7 @@ public enum AccountTypeEnum { private String value; AccountTypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -73,7 +66,11 @@ public static AccountTypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("AccountTypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(AccountTypeEnum.values())); + LOG.warning( + "AccountTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AccountTypeEnum.values())); return null; } } @@ -84,11 +81,8 @@ public static AccountTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_ROUTING_NUMBER = "routingNumber"; private String routingNumber; - /** - * **usLocal** - */ + /** **usLocal** */ public enum TypeEnum { - USLOCAL(String.valueOf("usLocal")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); @@ -96,7 +90,7 @@ public enum TypeEnum { private String value; TypeEnum(String value) { - this.value = value; + this.value = value; } @JsonValue @@ -117,7 +111,11 @@ public static TypeEnum fromValue(String value) { } } // handling unexpected value - LOG.warning("TypeEnum: unexpected enum value '" + value + "' - Supported values are "+ Arrays.toString(TypeEnum.values())); + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); return null; } } @@ -125,8 +123,7 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; - public USLocalAccountIdentification() { - } + public USLocalAccountIdentification() {} /** * The bank account number, without separators or whitespace. @@ -141,6 +138,7 @@ public USLocalAccountIdentification accountNumber(String accountNumber) { /** * The bank account number, without separators or whitespace. + * * @return accountNumber The bank account number, without separators or whitespace. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @@ -161,9 +159,10 @@ public void setAccountNumber(String accountNumber) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. + * Defaults to **checking**. * @return the current {@code USLocalAccountIdentification} instance, allowing for method chaining */ public USLocalAccountIdentification accountType(AccountTypeEnum accountType) { @@ -172,8 +171,10 @@ public USLocalAccountIdentification accountType(AccountTypeEnum accountType) { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. - * @return accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * + * @return accountType The bank account type. Possible values: **checking** or **savings**. + * Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,9 +183,10 @@ public AccountTypeEnum getAccountType() { } /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. * - * @param accountType The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + * @param accountType The bank account type. Possible values: **checking** or **savings**. + * Defaults to **checking**. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -193,9 +195,12 @@ public void setAccountType(AccountTypeEnum accountType) { } /** - * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without + * separators or whitespace. * - * @param routingNumber The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * @param routingNumber The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * whitespace. * @return the current {@code USLocalAccountIdentification} instance, allowing for method chaining */ public USLocalAccountIdentification routingNumber(String routingNumber) { @@ -204,8 +209,12 @@ public USLocalAccountIdentification routingNumber(String routingNumber) { } /** - * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. - * @return routingNumber The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without + * separators or whitespace. + * + * @return routingNumber The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * whitespace. */ @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,9 +223,12 @@ public String getRoutingNumber() { } /** - * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without + * separators or whitespace. * - * @param routingNumber The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. + * @param routingNumber The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * whitespace. */ @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -237,6 +249,7 @@ public USLocalAccountIdentification type(TypeEnum type) { /** * **usLocal** + * * @return type **usLocal** */ @JsonProperty(JSON_PROPERTY_TYPE) @@ -256,9 +269,7 @@ public void setType(TypeEnum type) { this.type = type; } - /** - * Return true if this USLocalAccountIdentification object is equal to o. - */ + /** Return true if this USLocalAccountIdentification object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -268,10 +279,10 @@ public boolean equals(Object o) { return false; } USLocalAccountIdentification usLocalAccountIdentification = (USLocalAccountIdentification) o; - return Objects.equals(this.accountNumber, usLocalAccountIdentification.accountNumber) && - Objects.equals(this.accountType, usLocalAccountIdentification.accountType) && - Objects.equals(this.routingNumber, usLocalAccountIdentification.routingNumber) && - Objects.equals(this.type, usLocalAccountIdentification.type); + return Objects.equals(this.accountNumber, usLocalAccountIdentification.accountNumber) + && Objects.equals(this.accountType, usLocalAccountIdentification.accountType) + && Objects.equals(this.routingNumber, usLocalAccountIdentification.routingNumber) + && Objects.equals(this.type, usLocalAccountIdentification.type); } @Override @@ -292,8 +303,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -302,21 +312,24 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } -/** + /** * Create an instance of USLocalAccountIdentification given an JSON string * * @param jsonString JSON string * @return An instance of USLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to USLocalAccountIdentification + * @throws JsonProcessingException if the JSON string is invalid with respect to + * USLocalAccountIdentification */ - public static USLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException { + public static USLocalAccountIdentification fromJson(String jsonString) + throws JsonProcessingException { return JSON.getMapper().readValue(jsonString, USLocalAccountIdentification.class); } -/** - * Convert an instance of USLocalAccountIdentification to an JSON string - * - * @return JSON string - */ + + /** + * Convert an instance of USLocalAccountIdentification to an JSON string + * + * @return JSON string + */ public String toJson() throws JsonProcessingException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/service/balancecontrol/BalanceControlApi.java b/src/main/java/com/adyen/service/balancecontrol/BalanceControlApi.java index a2ce6bf4d..301c1ebce 100644 --- a/src/main/java/com/adyen/service/balancecontrol/BalanceControlApi.java +++ b/src/main/java/com/adyen/service/balancecontrol/BalanceControlApi.java @@ -2,7 +2,7 @@ * Adyen Balance Control API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,69 +14,74 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.balancecontrol.BalanceTransferRequest; import com.adyen.model.balancecontrol.BalanceTransferResponse; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; -import java.util.HashMap; -import java.util.Map; public class BalanceControlApi extends Service { - public static final String API_VERSION = "1"; + public static final String API_VERSION = "1"; - protected String baseURL; + protected String baseURL; - /** - * BalanceControl constructor in {@link com.adyen.service.balancecontrol package}. - * @param client {@link Client } (required) - */ - public BalanceControlApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/BalanceControl/v1"); - } + /** + * BalanceControl constructor in {@link com.adyen.service.balancecontrol package}. + * + * @param client {@link Client } (required) + */ + public BalanceControlApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/BalanceControl/v1"); + } - /** - * BalanceControl constructor in {@link com.adyen.service.balancecontrol package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public BalanceControlApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * BalanceControl constructor in {@link com.adyen.service.balancecontrol package}. Please use this + * constructor only if you would like to pass along your own url for routing or testing purposes. + * The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public BalanceControlApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Start a balance transfer - * - * @param balanceTransferRequest {@link BalanceTransferRequest } (required) - * @return {@link BalanceTransferResponse } - * @throws ApiException if fails to make API call - * @deprecated since Adyen Balance Control API v1 - */ - @Deprecated - public BalanceTransferResponse balanceTransfer(BalanceTransferRequest balanceTransferRequest) throws ApiException, IOException { - return balanceTransfer(balanceTransferRequest, null); - } + /** + * Start a balance transfer + * + * @param balanceTransferRequest {@link BalanceTransferRequest } (required) + * @return {@link BalanceTransferResponse } + * @throws ApiException if fails to make API call + * @deprecated since Adyen Balance Control API v1 + */ + @Deprecated + public BalanceTransferResponse balanceTransfer(BalanceTransferRequest balanceTransferRequest) + throws ApiException, IOException { + return balanceTransfer(balanceTransferRequest, null); + } - /** - * Start a balance transfer - * - * @param balanceTransferRequest {@link BalanceTransferRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link BalanceTransferResponse } - * @throws ApiException if fails to make API call - * @deprecated since Adyen Balance Control API v1 - */ - @Deprecated - public BalanceTransferResponse balanceTransfer(BalanceTransferRequest balanceTransferRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = balanceTransferRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/balanceTransfer", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return BalanceTransferResponse.fromJson(jsonResult); - } + /** + * Start a balance transfer + * + * @param balanceTransferRequest {@link BalanceTransferRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link BalanceTransferResponse } + * @throws ApiException if fails to make API call + * @deprecated since Adyen Balance Control API v1 + */ + @Deprecated + public BalanceTransferResponse balanceTransfer( + BalanceTransferRequest balanceTransferRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = balanceTransferRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/balanceTransfer", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return BalanceTransferResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/balanceplatform/AccountHoldersApi.java b/src/main/java/com/adyen/service/balanceplatform/AccountHoldersApi.java index e88690c05..bc0f5be77 100644 --- a/src/main/java/com/adyen/service/balanceplatform/AccountHoldersApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/AccountHoldersApi.java @@ -2,7 +2,7 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,265 +14,306 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.balanceplatform.AccountHolder; import com.adyen.model.balanceplatform.AccountHolderInfo; import com.adyen.model.balanceplatform.AccountHolderUpdateRequest; import com.adyen.model.balanceplatform.GetTaxFormResponse; import com.adyen.model.balanceplatform.PaginatedBalanceAccountsResponse; -import com.adyen.model.balanceplatform.RestServiceError; import com.adyen.model.balanceplatform.TransactionRulesResponse; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class AccountHoldersApi extends Service { - public static final String API_VERSION = "2"; + public static final String API_VERSION = "2"; - protected String baseURL; + protected String baseURL; - /** - * Account holders constructor in {@link com.adyen.service.balanceplatform package}. - * @param client {@link Client } (required) - */ - public AccountHoldersApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); - } - - /** - * Account holders constructor in {@link com.adyen.service.balanceplatform package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public AccountHoldersApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Create an account holder - * - * @param accountHolderInfo {@link AccountHolderInfo } (required) - * @return {@link AccountHolder } - * @throws ApiException if fails to make API call - */ - public AccountHolder createAccountHolder(AccountHolderInfo accountHolderInfo) throws ApiException, IOException { - return createAccountHolder(accountHolderInfo, null); - } + /** + * Account holders constructor in {@link com.adyen.service.balanceplatform package}. + * + * @param client {@link Client } (required) + */ + public AccountHoldersApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); + } - /** - * Create an account holder - * - * @param accountHolderInfo {@link AccountHolderInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link AccountHolder } - * @throws ApiException if fails to make API call - */ - public AccountHolder createAccountHolder(AccountHolderInfo accountHolderInfo, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = accountHolderInfo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/accountHolders", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return AccountHolder.fromJson(jsonResult); - } + /** + * Account holders constructor in {@link com.adyen.service.balanceplatform package}. Please use + * this constructor only if you would like to pass along your own url for routing or testing + * purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public AccountHoldersApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Get an account holder - * - * @param id {@link String } The unique identifier of the account holder. (required) - * @return {@link AccountHolder } - * @throws ApiException if fails to make API call - */ - public AccountHolder getAccountHolder(String id) throws ApiException, IOException { - return getAccountHolder(id, null); - } + /** + * Create an account holder + * + * @param accountHolderInfo {@link AccountHolderInfo } (required) + * @return {@link AccountHolder } + * @throws ApiException if fails to make API call + */ + public AccountHolder createAccountHolder(AccountHolderInfo accountHolderInfo) + throws ApiException, IOException { + return createAccountHolder(accountHolderInfo, null); + } - /** - * Get an account holder - * - * @param id {@link String } The unique identifier of the account holder. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link AccountHolder } - * @throws ApiException if fails to make API call - */ - public AccountHolder getAccountHolder(String id, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); + /** + * Create an account holder + * + * @param accountHolderInfo {@link AccountHolderInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link AccountHolder } + * @throws ApiException if fails to make API call + */ + public AccountHolder createAccountHolder( + AccountHolderInfo accountHolderInfo, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = accountHolderInfo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/accountHolders", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return AccountHolder.fromJson(jsonResult); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/accountHolders/{id}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return AccountHolder.fromJson(jsonResult); - } + /** + * Get an account holder + * + * @param id {@link String } The unique identifier of the account holder. (required) + * @return {@link AccountHolder } + * @throws ApiException if fails to make API call + */ + public AccountHolder getAccountHolder(String id) throws ApiException, IOException { + return getAccountHolder(id, null); + } - /** - * Get all balance accounts of an account holder - * - * @param id {@link String } The unique identifier of the account holder. (required) - * @return {@link PaginatedBalanceAccountsResponse } - * @throws ApiException if fails to make API call - */ - public PaginatedBalanceAccountsResponse getAllBalanceAccountsOfAccountHolder(String id) throws ApiException, IOException { - return getAllBalanceAccountsOfAccountHolder(id, null, null, null); + /** + * Get an account holder + * + * @param id {@link String } The unique identifier of the account holder. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link AccountHolder } + * @throws ApiException if fails to make API call + */ + public AccountHolder getAccountHolder(String id, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); - /** - * Get all balance accounts of an account holder - * - * @param id {@link String } The unique identifier of the account holder. (required) - * @param offset {@link Integer } Query: The number of items that you want to skip. (optional) - * @param limit {@link Integer } Query: The number of items returned per page, maximum 100 items. By default, the response returns 10 items per page. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PaginatedBalanceAccountsResponse } - * @throws ApiException if fails to make API call - */ - public PaginatedBalanceAccountsResponse getAllBalanceAccountsOfAccountHolder(String id, Integer offset, Integer limit, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/accountHolders/{id}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return AccountHolder.fromJson(jsonResult); + } - //Add query params - Map queryParams = new HashMap<>(); - if (offset != null) { - queryParams.put("offset", offset.toString()); - } - if (limit != null) { - queryParams.put("limit", limit.toString()); - } + /** + * Get all balance accounts of an account holder + * + * @param id {@link String } The unique identifier of the account holder. (required) + * @return {@link PaginatedBalanceAccountsResponse } + * @throws ApiException if fails to make API call + */ + public PaginatedBalanceAccountsResponse getAllBalanceAccountsOfAccountHolder(String id) + throws ApiException, IOException { + return getAllBalanceAccountsOfAccountHolder(id, null, null, null); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/accountHolders/{id}/balanceAccounts", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return PaginatedBalanceAccountsResponse.fromJson(jsonResult); + /** + * Get all balance accounts of an account holder + * + * @param id {@link String } The unique identifier of the account holder. (required) + * @param offset {@link Integer } Query: The number of items that you want to skip. (optional) + * @param limit {@link Integer } Query: The number of items returned per page, maximum 100 items. + * By default, the response returns 10 items per page. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PaginatedBalanceAccountsResponse } + * @throws ApiException if fails to make API call + */ + public PaginatedBalanceAccountsResponse getAllBalanceAccountsOfAccountHolder( + String id, Integer offset, Integer limit, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); - /** - * Get all transaction rules for an account holder - * - * @param id {@link String } The unique identifier of the account holder. (required) - * @return {@link TransactionRulesResponse } - * @throws ApiException if fails to make API call - */ - public TransactionRulesResponse getAllTransactionRulesForAccountHolder(String id) throws ApiException, IOException { - return getAllTransactionRulesForAccountHolder(id, null); + // Add query params + Map queryParams = new HashMap<>(); + if (offset != null) { + queryParams.put("offset", offset.toString()); + } + if (limit != null) { + queryParams.put("limit", limit.toString()); } - /** - * Get all transaction rules for an account holder - * - * @param id {@link String } The unique identifier of the account holder. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TransactionRulesResponse } - * @throws ApiException if fails to make API call - */ - public TransactionRulesResponse getAllTransactionRulesForAccountHolder(String id, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/accountHolders/{id}/balanceAccounts", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return PaginatedBalanceAccountsResponse.fromJson(jsonResult); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/accountHolders/{id}/transactionRules", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TransactionRulesResponse.fromJson(jsonResult); - } + /** + * Get all transaction rules for an account holder + * + * @param id {@link String } The unique identifier of the account holder. (required) + * @return {@link TransactionRulesResponse } + * @throws ApiException if fails to make API call + */ + public TransactionRulesResponse getAllTransactionRulesForAccountHolder(String id) + throws ApiException, IOException { + return getAllTransactionRulesForAccountHolder(id, null); + } - /** - * Get a tax form - * - * @param id {@link String } The unique identifier of the account holder. (required) - * @param formType {@link String } The type of tax form you want to retrieve. Accepted values are **US1099k** and **US1099nec** (required) - * @param year {@link Integer } The tax year in YYYY format for the tax form you want to retrieve (required) - * @return {@link GetTaxFormResponse } - * @throws ApiException if fails to make API call - */ - public GetTaxFormResponse getTaxForm(String id, String formType, Integer year) throws ApiException, IOException { - return getTaxForm(id, formType, year, null, null); + /** + * Get all transaction rules for an account holder + * + * @param id {@link String } The unique identifier of the account holder. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TransactionRulesResponse } + * @throws ApiException if fails to make API call + */ + public TransactionRulesResponse getAllTransactionRulesForAccountHolder( + String id, RequestOptions requestOptions) throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); - /** - * Get a tax form - * - * @param id {@link String } The unique identifier of the account holder. (required) - * @param formType {@link String } Query: The type of tax form you want to retrieve. Accepted values are **US1099k** and **US1099nec** (required) - * @param year {@link Integer } Query: The tax year in YYYY format for the tax form you want to retrieve (required) - * @param legalEntityId {@link String } Query: The legal entity reference whose tax form you want to retrieve (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link GetTaxFormResponse } - * @throws ApiException if fails to make API call - */ - public GetTaxFormResponse getTaxForm(String id, String formType, Integer year, String legalEntityId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/accountHolders/{id}/transactionRules", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TransactionRulesResponse.fromJson(jsonResult); + } - //Add query params - Map queryParams = new HashMap<>(); - if (formType != null) { - queryParams.put("formType", formType); - } - if (year != null) { - queryParams.put("year", year.toString()); - } - if (legalEntityId != null) { - queryParams.put("legalEntityId", legalEntityId); - } + /** + * Get a tax form + * + * @param id {@link String } The unique identifier of the account holder. (required) + * @param formType {@link String } The type of tax form you want to retrieve. Accepted values are + * **US1099k** and **US1099nec** (required) + * @param year {@link Integer } The tax year in YYYY format for the tax form you want to retrieve + * (required) + * @return {@link GetTaxFormResponse } + * @throws ApiException if fails to make API call + */ + public GetTaxFormResponse getTaxForm(String id, String formType, Integer year) + throws ApiException, IOException { + return getTaxForm(id, formType, year, null, null); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/accountHolders/{id}/taxForms", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return GetTaxFormResponse.fromJson(jsonResult); + /** + * Get a tax form + * + * @param id {@link String } The unique identifier of the account holder. (required) + * @param formType {@link String } Query: The type of tax form you want to retrieve. Accepted + * values are **US1099k** and **US1099nec** (required) + * @param year {@link Integer } Query: The tax year in YYYY format for the tax form you want to + * retrieve (required) + * @param legalEntityId {@link String } Query: The legal entity reference whose tax form you want + * to retrieve (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link GetTaxFormResponse } + * @throws ApiException if fails to make API call + */ + public GetTaxFormResponse getTaxForm( + String id, String formType, Integer year, String legalEntityId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); - /** - * Update an account holder - * - * @param id {@link String } The unique identifier of the account holder. (required) - * @param accountHolderUpdateRequest {@link AccountHolderUpdateRequest } (required) - * @return {@link AccountHolder } - * @throws ApiException if fails to make API call - */ - public AccountHolder updateAccountHolder(String id, AccountHolderUpdateRequest accountHolderUpdateRequest) throws ApiException, IOException { - return updateAccountHolder(id, accountHolderUpdateRequest, null); + // Add query params + Map queryParams = new HashMap<>(); + if (formType != null) { + queryParams.put("formType", formType); + } + if (year != null) { + queryParams.put("year", year.toString()); + } + if (legalEntityId != null) { + queryParams.put("legalEntityId", legalEntityId); } - /** - * Update an account holder - * - * @param id {@link String } The unique identifier of the account holder. (required) - * @param accountHolderUpdateRequest {@link AccountHolderUpdateRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link AccountHolder } - * @throws ApiException if fails to make API call - */ - public AccountHolder updateAccountHolder(String id, AccountHolderUpdateRequest accountHolderUpdateRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/accountHolders/{id}/taxForms", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return GetTaxFormResponse.fromJson(jsonResult); + } - String requestBody = accountHolderUpdateRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/accountHolders/{id}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return AccountHolder.fromJson(jsonResult); + /** + * Update an account holder + * + * @param id {@link String } The unique identifier of the account holder. (required) + * @param accountHolderUpdateRequest {@link AccountHolderUpdateRequest } (required) + * @return {@link AccountHolder } + * @throws ApiException if fails to make API call + */ + public AccountHolder updateAccountHolder( + String id, AccountHolderUpdateRequest accountHolderUpdateRequest) + throws ApiException, IOException { + return updateAccountHolder(id, accountHolderUpdateRequest, null); + } + + /** + * Update an account holder + * + * @param id {@link String } The unique identifier of the account holder. (required) + * @param accountHolderUpdateRequest {@link AccountHolderUpdateRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link AccountHolder } + * @throws ApiException if fails to make API call + */ + public AccountHolder updateAccountHolder( + String id, + AccountHolderUpdateRequest accountHolderUpdateRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); + + String requestBody = accountHolderUpdateRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/accountHolders/{id}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return AccountHolder.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/balanceplatform/AuthorizedCardUsersApi.java b/src/main/java/com/adyen/service/balanceplatform/AuthorizedCardUsersApi.java index 9027cd25b..8dd66cc10 100644 --- a/src/main/java/com/adyen/service/balanceplatform/AuthorizedCardUsersApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/AuthorizedCardUsersApi.java @@ -2,7 +2,7 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,168 +14,206 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.balanceplatform.AuthorisedCardUsers; -import com.adyen.model.balanceplatform.DefaultErrorResponseEntity; import com.adyen.model.RequestOptions; +import com.adyen.model.balanceplatform.AuthorisedCardUsers; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class AuthorizedCardUsersApi extends Service { - public static final String API_VERSION = "2"; - - protected String baseURL; - - /** - * Authorized card users constructor in {@link com.adyen.service.balanceplatform package}. - * @param client {@link Client } (required) - */ - public AuthorizedCardUsersApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); + public static final String API_VERSION = "2"; + + protected String baseURL; + + /** + * Authorized card users constructor in {@link com.adyen.service.balanceplatform package}. + * + * @param client {@link Client } (required) + */ + public AuthorizedCardUsersApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); + } + + /** + * Authorized card users constructor in {@link com.adyen.service.balanceplatform package}. Please + * use this constructor only if you would like to pass along your own url for routing or testing + * purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public AuthorizedCardUsersApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Create authorized users for a card. + * + * @param paymentInstrumentId {@link String } (required) + * @param authorisedCardUsers {@link AuthorisedCardUsers } (required) + * @param authorisedCardUsers {@link AuthorisedCardUsers } (required) + * @throws ApiException if fails to make API call + */ + public void createAuthorisedCardUsers( + String paymentInstrumentId, AuthorisedCardUsers authorisedCardUsers) + throws ApiException, IOException { + createAuthorisedCardUsers(paymentInstrumentId, authorisedCardUsers, null); + } + + /** + * Create authorized users for a card. + * + * @param paymentInstrumentId {@link String } (required) + * @param authorisedCardUsers {@link AuthorisedCardUsers } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void createAuthorisedCardUsers( + String paymentInstrumentId, + AuthorisedCardUsers authorisedCardUsers, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (paymentInstrumentId == null) { + throw new IllegalArgumentException("Please provide the paymentInstrumentId path parameter"); } - - /** - * Authorized card users constructor in {@link com.adyen.service.balanceplatform package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public AuthorizedCardUsersApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; + pathParams.put("paymentInstrumentId", paymentInstrumentId); + + String requestBody = authorisedCardUsers.toJson(); + Resource resource = + new Resource( + this, + this.baseURL + "/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers", + null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + } + + /** + * Delete the authorized users for a card. + * + * @param paymentInstrumentId {@link String } (required) + * @throws ApiException if fails to make API call + */ + public void deleteAuthorisedCardUsers(String paymentInstrumentId) + throws ApiException, IOException { + deleteAuthorisedCardUsers(paymentInstrumentId, null); + } + + /** + * Delete the authorized users for a card. + * + * @param paymentInstrumentId {@link String } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void deleteAuthorisedCardUsers(String paymentInstrumentId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (paymentInstrumentId == null) { + throw new IllegalArgumentException("Please provide the paymentInstrumentId path parameter"); } - - /** - * Create authorized users for a card. - * - * @param paymentInstrumentId {@link String } (required) - * @param authorisedCardUsers {@link AuthorisedCardUsers } (required) - * @param authorisedCardUsers {@link AuthorisedCardUsers } (required) - * @throws ApiException if fails to make API call - */ - public void createAuthorisedCardUsers(String paymentInstrumentId, AuthorisedCardUsers authorisedCardUsers) throws ApiException, IOException { - createAuthorisedCardUsers(paymentInstrumentId, authorisedCardUsers, null); + pathParams.put("paymentInstrumentId", paymentInstrumentId); + + String requestBody = null; + Resource resource = + new Resource( + this, + this.baseURL + "/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers", + null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); + } + + /** + * Get authorized users for a card. + * + * @param paymentInstrumentId {@link String } (required) + * @return {@link AuthorisedCardUsers } + * @throws ApiException if fails to make API call + */ + public AuthorisedCardUsers getAllAuthorisedCardUsers(String paymentInstrumentId) + throws ApiException, IOException { + return getAllAuthorisedCardUsers(paymentInstrumentId, null); + } + + /** + * Get authorized users for a card. + * + * @param paymentInstrumentId {@link String } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link AuthorisedCardUsers } + * @throws ApiException if fails to make API call + */ + public AuthorisedCardUsers getAllAuthorisedCardUsers( + String paymentInstrumentId, RequestOptions requestOptions) throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (paymentInstrumentId == null) { + throw new IllegalArgumentException("Please provide the paymentInstrumentId path parameter"); } - - /** - * Create authorized users for a card. - * - * @param paymentInstrumentId {@link String } (required) - * @param authorisedCardUsers {@link AuthorisedCardUsers } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void createAuthorisedCardUsers(String paymentInstrumentId, AuthorisedCardUsers authorisedCardUsers, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (paymentInstrumentId == null) { - throw new IllegalArgumentException("Please provide the paymentInstrumentId path parameter"); - } - pathParams.put("paymentInstrumentId", paymentInstrumentId); - - String requestBody = authorisedCardUsers.toJson(); - Resource resource = new Resource(this, this.baseURL + "/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - } - - /** - * Delete the authorized users for a card. - * - * @param paymentInstrumentId {@link String } (required) - * @throws ApiException if fails to make API call - */ - public void deleteAuthorisedCardUsers(String paymentInstrumentId) throws ApiException, IOException { - deleteAuthorisedCardUsers(paymentInstrumentId, null); - } - - /** - * Delete the authorized users for a card. - * - * @param paymentInstrumentId {@link String } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void deleteAuthorisedCardUsers(String paymentInstrumentId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (paymentInstrumentId == null) { - throw new IllegalArgumentException("Please provide the paymentInstrumentId path parameter"); - } - pathParams.put("paymentInstrumentId", paymentInstrumentId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); - } - - /** - * Get authorized users for a card. - * - * @param paymentInstrumentId {@link String } (required) - * @return {@link AuthorisedCardUsers } - * @throws ApiException if fails to make API call - */ - public AuthorisedCardUsers getAllAuthorisedCardUsers(String paymentInstrumentId) throws ApiException, IOException { - return getAllAuthorisedCardUsers(paymentInstrumentId, null); - } - - /** - * Get authorized users for a card. - * - * @param paymentInstrumentId {@link String } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link AuthorisedCardUsers } - * @throws ApiException if fails to make API call - */ - public AuthorisedCardUsers getAllAuthorisedCardUsers(String paymentInstrumentId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (paymentInstrumentId == null) { - throw new IllegalArgumentException("Please provide the paymentInstrumentId path parameter"); - } - pathParams.put("paymentInstrumentId", paymentInstrumentId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return AuthorisedCardUsers.fromJson(jsonResult); - } - - /** - * Update the authorized users for a card. - * - * @param paymentInstrumentId {@link String } (required) - * @param authorisedCardUsers {@link AuthorisedCardUsers } (required) - * @param authorisedCardUsers {@link AuthorisedCardUsers } (required) - * @throws ApiException if fails to make API call - */ - public void updateAuthorisedCardUsers(String paymentInstrumentId, AuthorisedCardUsers authorisedCardUsers) throws ApiException, IOException { - updateAuthorisedCardUsers(paymentInstrumentId, authorisedCardUsers, null); - } - - /** - * Update the authorized users for a card. - * - * @param paymentInstrumentId {@link String } (required) - * @param authorisedCardUsers {@link AuthorisedCardUsers } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void updateAuthorisedCardUsers(String paymentInstrumentId, AuthorisedCardUsers authorisedCardUsers, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (paymentInstrumentId == null) { - throw new IllegalArgumentException("Please provide the paymentInstrumentId path parameter"); - } - pathParams.put("paymentInstrumentId", paymentInstrumentId); - - String requestBody = authorisedCardUsers.toJson(); - Resource resource = new Resource(this, this.baseURL + "/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + pathParams.put("paymentInstrumentId", paymentInstrumentId); + + String requestBody = null; + Resource resource = + new Resource( + this, + this.baseURL + "/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers", + null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return AuthorisedCardUsers.fromJson(jsonResult); + } + + /** + * Update the authorized users for a card. + * + * @param paymentInstrumentId {@link String } (required) + * @param authorisedCardUsers {@link AuthorisedCardUsers } (required) + * @param authorisedCardUsers {@link AuthorisedCardUsers } (required) + * @throws ApiException if fails to make API call + */ + public void updateAuthorisedCardUsers( + String paymentInstrumentId, AuthorisedCardUsers authorisedCardUsers) + throws ApiException, IOException { + updateAuthorisedCardUsers(paymentInstrumentId, authorisedCardUsers, null); + } + + /** + * Update the authorized users for a card. + * + * @param paymentInstrumentId {@link String } (required) + * @param authorisedCardUsers {@link AuthorisedCardUsers } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void updateAuthorisedCardUsers( + String paymentInstrumentId, + AuthorisedCardUsers authorisedCardUsers, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (paymentInstrumentId == null) { + throw new IllegalArgumentException("Please provide the paymentInstrumentId path parameter"); } + pathParams.put("paymentInstrumentId", paymentInstrumentId); + + String requestBody = authorisedCardUsers.toJson(); + Resource resource = + new Resource( + this, + this.baseURL + "/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers", + null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + } } diff --git a/src/main/java/com/adyen/service/balanceplatform/BalanceAccountsApi.java b/src/main/java/com/adyen/service/balanceplatform/BalanceAccountsApi.java index 5547f1193..174cf04d4 100644 --- a/src/main/java/com/adyen/service/balanceplatform/BalanceAccountsApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/BalanceAccountsApi.java @@ -2,7 +2,7 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,417 +14,500 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.balanceplatform.BalanceAccount; import com.adyen.model.balanceplatform.BalanceAccountInfo; import com.adyen.model.balanceplatform.BalanceAccountUpdateRequest; import com.adyen.model.balanceplatform.BalanceSweepConfigurationsResponse; import com.adyen.model.balanceplatform.CreateSweepConfigurationV2; import com.adyen.model.balanceplatform.PaginatedPaymentInstrumentsResponse; -import com.adyen.model.balanceplatform.RestServiceError; import com.adyen.model.balanceplatform.SweepConfigurationV2; import com.adyen.model.balanceplatform.TransactionRulesResponse; import com.adyen.model.balanceplatform.UpdateSweepConfigurationV2; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class BalanceAccountsApi extends Service { - public static final String API_VERSION = "2"; - - protected String baseURL; - - /** - * Balance accounts constructor in {@link com.adyen.service.balanceplatform package}. - * @param client {@link Client } (required) - */ - public BalanceAccountsApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); - } - - /** - * Balance accounts constructor in {@link com.adyen.service.balanceplatform package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public BalanceAccountsApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Create a balance account - * - * @param balanceAccountInfo {@link BalanceAccountInfo } (required) - * @return {@link BalanceAccount } - * @throws ApiException if fails to make API call - */ - public BalanceAccount createBalanceAccount(BalanceAccountInfo balanceAccountInfo) throws ApiException, IOException { - return createBalanceAccount(balanceAccountInfo, null); - } - - /** - * Create a balance account - * - * @param balanceAccountInfo {@link BalanceAccountInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link BalanceAccount } - * @throws ApiException if fails to make API call - */ - public BalanceAccount createBalanceAccount(BalanceAccountInfo balanceAccountInfo, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = balanceAccountInfo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/balanceAccounts", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return BalanceAccount.fromJson(jsonResult); - } - - /** - * Create a sweep - * - * @param balanceAccountId {@link String } The unique identifier of the balance account. (required) - * @param createSweepConfigurationV2 {@link CreateSweepConfigurationV2 } (required) - * @return {@link SweepConfigurationV2 } - * @throws ApiException if fails to make API call - */ - public SweepConfigurationV2 createSweep(String balanceAccountId, CreateSweepConfigurationV2 createSweepConfigurationV2) throws ApiException, IOException { - return createSweep(balanceAccountId, createSweepConfigurationV2, null); + public static final String API_VERSION = "2"; + + protected String baseURL; + + /** + * Balance accounts constructor in {@link com.adyen.service.balanceplatform package}. + * + * @param client {@link Client } (required) + */ + public BalanceAccountsApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); + } + + /** + * Balance accounts constructor in {@link com.adyen.service.balanceplatform package}. Please use + * this constructor only if you would like to pass along your own url for routing or testing + * purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public BalanceAccountsApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Create a balance account + * + * @param balanceAccountInfo {@link BalanceAccountInfo } (required) + * @return {@link BalanceAccount } + * @throws ApiException if fails to make API call + */ + public BalanceAccount createBalanceAccount(BalanceAccountInfo balanceAccountInfo) + throws ApiException, IOException { + return createBalanceAccount(balanceAccountInfo, null); + } + + /** + * Create a balance account + * + * @param balanceAccountInfo {@link BalanceAccountInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link BalanceAccount } + * @throws ApiException if fails to make API call + */ + public BalanceAccount createBalanceAccount( + BalanceAccountInfo balanceAccountInfo, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = balanceAccountInfo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/balanceAccounts", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return BalanceAccount.fromJson(jsonResult); + } + + /** + * Create a sweep + * + * @param balanceAccountId {@link String } The unique identifier of the balance account. + * (required) + * @param createSweepConfigurationV2 {@link CreateSweepConfigurationV2 } (required) + * @return {@link SweepConfigurationV2 } + * @throws ApiException if fails to make API call + */ + public SweepConfigurationV2 createSweep( + String balanceAccountId, CreateSweepConfigurationV2 createSweepConfigurationV2) + throws ApiException, IOException { + return createSweep(balanceAccountId, createSweepConfigurationV2, null); + } + + /** + * Create a sweep + * + * @param balanceAccountId {@link String } The unique identifier of the balance account. + * (required) + * @param createSweepConfigurationV2 {@link CreateSweepConfigurationV2 } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link SweepConfigurationV2 } + * @throws ApiException if fails to make API call + */ + public SweepConfigurationV2 createSweep( + String balanceAccountId, + CreateSweepConfigurationV2 createSweepConfigurationV2, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (balanceAccountId == null) { + throw new IllegalArgumentException("Please provide the balanceAccountId path parameter"); } - - /** - * Create a sweep - * - * @param balanceAccountId {@link String } The unique identifier of the balance account. (required) - * @param createSweepConfigurationV2 {@link CreateSweepConfigurationV2 } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link SweepConfigurationV2 } - * @throws ApiException if fails to make API call - */ - public SweepConfigurationV2 createSweep(String balanceAccountId, CreateSweepConfigurationV2 createSweepConfigurationV2, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (balanceAccountId == null) { - throw new IllegalArgumentException("Please provide the balanceAccountId path parameter"); - } - pathParams.put("balanceAccountId", balanceAccountId); - - String requestBody = createSweepConfigurationV2.toJson(); - Resource resource = new Resource(this, this.baseURL + "/balanceAccounts/{balanceAccountId}/sweeps", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return SweepConfigurationV2.fromJson(jsonResult); + pathParams.put("balanceAccountId", balanceAccountId); + + String requestBody = createSweepConfigurationV2.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/balanceAccounts/{balanceAccountId}/sweeps", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return SweepConfigurationV2.fromJson(jsonResult); + } + + /** + * Delete a sweep + * + * @param balanceAccountId {@link String } The unique identifier of the balance account. + * (required) + * @param sweepId {@link String } The unique identifier of the sweep. (required) + * @throws ApiException if fails to make API call + */ + public void deleteSweep(String balanceAccountId, String sweepId) + throws ApiException, IOException { + deleteSweep(balanceAccountId, sweepId, null); + } + + /** + * Delete a sweep + * + * @param balanceAccountId {@link String } The unique identifier of the balance account. + * (required) + * @param sweepId {@link String } The unique identifier of the sweep. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void deleteSweep(String balanceAccountId, String sweepId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (balanceAccountId == null) { + throw new IllegalArgumentException("Please provide the balanceAccountId path parameter"); } - - /** - * Delete a sweep - * - * @param balanceAccountId {@link String } The unique identifier of the balance account. (required) - * @param sweepId {@link String } The unique identifier of the sweep. (required) - * @throws ApiException if fails to make API call - */ - public void deleteSweep(String balanceAccountId, String sweepId) throws ApiException, IOException { - deleteSweep(balanceAccountId, sweepId, null); + pathParams.put("balanceAccountId", balanceAccountId); + if (sweepId == null) { + throw new IllegalArgumentException("Please provide the sweepId path parameter"); } - - /** - * Delete a sweep - * - * @param balanceAccountId {@link String } The unique identifier of the balance account. (required) - * @param sweepId {@link String } The unique identifier of the sweep. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void deleteSweep(String balanceAccountId, String sweepId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (balanceAccountId == null) { - throw new IllegalArgumentException("Please provide the balanceAccountId path parameter"); - } - pathParams.put("balanceAccountId", balanceAccountId); - if (sweepId == null) { - throw new IllegalArgumentException("Please provide the sweepId path parameter"); - } - pathParams.put("sweepId", sweepId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); + pathParams.put("sweepId", sweepId); + + String requestBody = null; + Resource resource = + new Resource( + this, this.baseURL + "/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); + } + + /** + * Get all sweeps for a balance account + * + * @param balanceAccountId {@link String } The unique identifier of the balance account. + * (required) + * @return {@link BalanceSweepConfigurationsResponse } + * @throws ApiException if fails to make API call + */ + public BalanceSweepConfigurationsResponse getAllSweepsForBalanceAccount(String balanceAccountId) + throws ApiException, IOException { + return getAllSweepsForBalanceAccount(balanceAccountId, null, null, null); + } + + /** + * Get all sweeps for a balance account + * + * @param balanceAccountId {@link String } The unique identifier of the balance account. + * (required) + * @param offset {@link Integer } Query: The number of items that you want to skip. (optional) + * @param limit {@link Integer } Query: The number of items returned per page, maximum 100 items. + * By default, the response returns 10 items per page. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link BalanceSweepConfigurationsResponse } + * @throws ApiException if fails to make API call + */ + public BalanceSweepConfigurationsResponse getAllSweepsForBalanceAccount( + String balanceAccountId, Integer offset, Integer limit, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (balanceAccountId == null) { + throw new IllegalArgumentException("Please provide the balanceAccountId path parameter"); } + pathParams.put("balanceAccountId", balanceAccountId); - /** - * Get all sweeps for a balance account - * - * @param balanceAccountId {@link String } The unique identifier of the balance account. (required) - * @return {@link BalanceSweepConfigurationsResponse } - * @throws ApiException if fails to make API call - */ - public BalanceSweepConfigurationsResponse getAllSweepsForBalanceAccount(String balanceAccountId) throws ApiException, IOException { - return getAllSweepsForBalanceAccount(balanceAccountId, null, null, null); + // Add query params + Map queryParams = new HashMap<>(); + if (offset != null) { + queryParams.put("offset", offset.toString()); } - - /** - * Get all sweeps for a balance account - * - * @param balanceAccountId {@link String } The unique identifier of the balance account. (required) - * @param offset {@link Integer } Query: The number of items that you want to skip. (optional) - * @param limit {@link Integer } Query: The number of items returned per page, maximum 100 items. By default, the response returns 10 items per page. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link BalanceSweepConfigurationsResponse } - * @throws ApiException if fails to make API call - */ - public BalanceSweepConfigurationsResponse getAllSweepsForBalanceAccount(String balanceAccountId, Integer offset, Integer limit, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (balanceAccountId == null) { - throw new IllegalArgumentException("Please provide the balanceAccountId path parameter"); - } - pathParams.put("balanceAccountId", balanceAccountId); - - //Add query params - Map queryParams = new HashMap<>(); - if (offset != null) { - queryParams.put("offset", offset.toString()); - } - if (limit != null) { - queryParams.put("limit", limit.toString()); - } - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/balanceAccounts/{balanceAccountId}/sweeps", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return BalanceSweepConfigurationsResponse.fromJson(jsonResult); + if (limit != null) { + queryParams.put("limit", limit.toString()); } - /** - * Get all transaction rules for a balance account - * - * @param id {@link String } The unique identifier of the balance account. (required) - * @return {@link TransactionRulesResponse } - * @throws ApiException if fails to make API call - */ - public TransactionRulesResponse getAllTransactionRulesForBalanceAccount(String id) throws ApiException, IOException { - return getAllTransactionRulesForBalanceAccount(id, null); + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/balanceAccounts/{balanceAccountId}/sweeps", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return BalanceSweepConfigurationsResponse.fromJson(jsonResult); + } + + /** + * Get all transaction rules for a balance account + * + * @param id {@link String } The unique identifier of the balance account. (required) + * @return {@link TransactionRulesResponse } + * @throws ApiException if fails to make API call + */ + public TransactionRulesResponse getAllTransactionRulesForBalanceAccount(String id) + throws ApiException, IOException { + return getAllTransactionRulesForBalanceAccount(id, null); + } + + /** + * Get all transaction rules for a balance account + * + * @param id {@link String } The unique identifier of the balance account. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TransactionRulesResponse } + * @throws ApiException if fails to make API call + */ + public TransactionRulesResponse getAllTransactionRulesForBalanceAccount( + String id, RequestOptions requestOptions) throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } - - /** - * Get all transaction rules for a balance account - * - * @param id {@link String } The unique identifier of the balance account. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TransactionRulesResponse } - * @throws ApiException if fails to make API call - */ - public TransactionRulesResponse getAllTransactionRulesForBalanceAccount(String id, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/balanceAccounts/{id}/transactionRules", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TransactionRulesResponse.fromJson(jsonResult); - } - - /** - * Get a balance account - * - * @param id {@link String } The unique identifier of the balance account. (required) - * @return {@link BalanceAccount } - * @throws ApiException if fails to make API call - */ - public BalanceAccount getBalanceAccount(String id) throws ApiException, IOException { - return getBalanceAccount(id, null); + pathParams.put("id", id); + + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/balanceAccounts/{id}/transactionRules", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TransactionRulesResponse.fromJson(jsonResult); + } + + /** + * Get a balance account + * + * @param id {@link String } The unique identifier of the balance account. (required) + * @return {@link BalanceAccount } + * @throws ApiException if fails to make API call + */ + public BalanceAccount getBalanceAccount(String id) throws ApiException, IOException { + return getBalanceAccount(id, null); + } + + /** + * Get a balance account + * + * @param id {@link String } The unique identifier of the balance account. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link BalanceAccount } + * @throws ApiException if fails to make API call + */ + public BalanceAccount getBalanceAccount(String id, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } - - /** - * Get a balance account - * - * @param id {@link String } The unique identifier of the balance account. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link BalanceAccount } - * @throws ApiException if fails to make API call - */ - public BalanceAccount getBalanceAccount(String id, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/balanceAccounts/{id}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return BalanceAccount.fromJson(jsonResult); + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/balanceAccounts/{id}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return BalanceAccount.fromJson(jsonResult); + } + + /** + * Get payment instruments linked to a balance account + * + * @param id {@link String } The unique identifier of the balance account. (required) + * @return {@link PaginatedPaymentInstrumentsResponse } + * @throws ApiException if fails to make API call + */ + public PaginatedPaymentInstrumentsResponse getPaymentInstrumentsLinkedToBalanceAccount(String id) + throws ApiException, IOException { + return getPaymentInstrumentsLinkedToBalanceAccount(id, null, null, null, null); + } + + /** + * Get payment instruments linked to a balance account + * + * @param id {@link String } The unique identifier of the balance account. (required) + * @param offset {@link Integer } Query: The number of items that you want to skip. (optional) + * @param limit {@link Integer } Query: The number of items returned per page, maximum 100 items. + * By default, the response returns 10 items per page. (optional) + * @param status {@link String } Query: The status of the payment instruments that you want to + * get. By default, the response includes payment instruments with any status. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PaginatedPaymentInstrumentsResponse } + * @throws ApiException if fails to make API call + */ + public PaginatedPaymentInstrumentsResponse getPaymentInstrumentsLinkedToBalanceAccount( + String id, Integer offset, Integer limit, String status, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); - /** - * Get payment instruments linked to a balance account - * - * @param id {@link String } The unique identifier of the balance account. (required) - * @return {@link PaginatedPaymentInstrumentsResponse } - * @throws ApiException if fails to make API call - */ - public PaginatedPaymentInstrumentsResponse getPaymentInstrumentsLinkedToBalanceAccount(String id) throws ApiException, IOException { - return getPaymentInstrumentsLinkedToBalanceAccount(id, null, null, null, null); + // Add query params + Map queryParams = new HashMap<>(); + if (offset != null) { + queryParams.put("offset", offset.toString()); } - - /** - * Get payment instruments linked to a balance account - * - * @param id {@link String } The unique identifier of the balance account. (required) - * @param offset {@link Integer } Query: The number of items that you want to skip. (optional) - * @param limit {@link Integer } Query: The number of items returned per page, maximum 100 items. By default, the response returns 10 items per page. (optional) - * @param status {@link String } Query: The status of the payment instruments that you want to get. By default, the response includes payment instruments with any status. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PaginatedPaymentInstrumentsResponse } - * @throws ApiException if fails to make API call - */ - public PaginatedPaymentInstrumentsResponse getPaymentInstrumentsLinkedToBalanceAccount(String id, Integer offset, Integer limit, String status, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - //Add query params - Map queryParams = new HashMap<>(); - if (offset != null) { - queryParams.put("offset", offset.toString()); - } - if (limit != null) { - queryParams.put("limit", limit.toString()); - } - if (status != null) { - queryParams.put("status", status); - } - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/balanceAccounts/{id}/paymentInstruments", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return PaginatedPaymentInstrumentsResponse.fromJson(jsonResult); + if (limit != null) { + queryParams.put("limit", limit.toString()); } - - /** - * Get a sweep - * - * @param balanceAccountId {@link String } The unique identifier of the balance account. (required) - * @param sweepId {@link String } The unique identifier of the sweep. (required) - * @return {@link SweepConfigurationV2 } - * @throws ApiException if fails to make API call - */ - public SweepConfigurationV2 getSweep(String balanceAccountId, String sweepId) throws ApiException, IOException { - return getSweep(balanceAccountId, sweepId, null); + if (status != null) { + queryParams.put("status", status); } - /** - * Get a sweep - * - * @param balanceAccountId {@link String } The unique identifier of the balance account. (required) - * @param sweepId {@link String } The unique identifier of the sweep. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link SweepConfigurationV2 } - * @throws ApiException if fails to make API call - */ - public SweepConfigurationV2 getSweep(String balanceAccountId, String sweepId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (balanceAccountId == null) { - throw new IllegalArgumentException("Please provide the balanceAccountId path parameter"); - } - pathParams.put("balanceAccountId", balanceAccountId); - if (sweepId == null) { - throw new IllegalArgumentException("Please provide the sweepId path parameter"); - } - pathParams.put("sweepId", sweepId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return SweepConfigurationV2.fromJson(jsonResult); + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/balanceAccounts/{id}/paymentInstruments", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return PaginatedPaymentInstrumentsResponse.fromJson(jsonResult); + } + + /** + * Get a sweep + * + * @param balanceAccountId {@link String } The unique identifier of the balance account. + * (required) + * @param sweepId {@link String } The unique identifier of the sweep. (required) + * @return {@link SweepConfigurationV2 } + * @throws ApiException if fails to make API call + */ + public SweepConfigurationV2 getSweep(String balanceAccountId, String sweepId) + throws ApiException, IOException { + return getSweep(balanceAccountId, sweepId, null); + } + + /** + * Get a sweep + * + * @param balanceAccountId {@link String } The unique identifier of the balance account. + * (required) + * @param sweepId {@link String } The unique identifier of the sweep. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link SweepConfigurationV2 } + * @throws ApiException if fails to make API call + */ + public SweepConfigurationV2 getSweep( + String balanceAccountId, String sweepId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (balanceAccountId == null) { + throw new IllegalArgumentException("Please provide the balanceAccountId path parameter"); } - - /** - * Update a balance account - * - * @param id {@link String } The unique identifier of the balance account. (required) - * @param balanceAccountUpdateRequest {@link BalanceAccountUpdateRequest } (required) - * @return {@link BalanceAccount } - * @throws ApiException if fails to make API call - */ - public BalanceAccount updateBalanceAccount(String id, BalanceAccountUpdateRequest balanceAccountUpdateRequest) throws ApiException, IOException { - return updateBalanceAccount(id, balanceAccountUpdateRequest, null); + pathParams.put("balanceAccountId", balanceAccountId); + if (sweepId == null) { + throw new IllegalArgumentException("Please provide the sweepId path parameter"); } - - /** - * Update a balance account - * - * @param id {@link String } The unique identifier of the balance account. (required) - * @param balanceAccountUpdateRequest {@link BalanceAccountUpdateRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link BalanceAccount } - * @throws ApiException if fails to make API call - */ - public BalanceAccount updateBalanceAccount(String id, BalanceAccountUpdateRequest balanceAccountUpdateRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = balanceAccountUpdateRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/balanceAccounts/{id}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return BalanceAccount.fromJson(jsonResult); + pathParams.put("sweepId", sweepId); + + String requestBody = null; + Resource resource = + new Resource( + this, this.baseURL + "/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return SweepConfigurationV2.fromJson(jsonResult); + } + + /** + * Update a balance account + * + * @param id {@link String } The unique identifier of the balance account. (required) + * @param balanceAccountUpdateRequest {@link BalanceAccountUpdateRequest } (required) + * @return {@link BalanceAccount } + * @throws ApiException if fails to make API call + */ + public BalanceAccount updateBalanceAccount( + String id, BalanceAccountUpdateRequest balanceAccountUpdateRequest) + throws ApiException, IOException { + return updateBalanceAccount(id, balanceAccountUpdateRequest, null); + } + + /** + * Update a balance account + * + * @param id {@link String } The unique identifier of the balance account. (required) + * @param balanceAccountUpdateRequest {@link BalanceAccountUpdateRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link BalanceAccount } + * @throws ApiException if fails to make API call + */ + public BalanceAccount updateBalanceAccount( + String id, + BalanceAccountUpdateRequest balanceAccountUpdateRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } - - /** - * Update a sweep - * - * @param balanceAccountId {@link String } The unique identifier of the balance account. (required) - * @param sweepId {@link String } The unique identifier of the sweep. (required) - * @param updateSweepConfigurationV2 {@link UpdateSweepConfigurationV2 } (required) - * @return {@link SweepConfigurationV2 } - * @throws ApiException if fails to make API call - */ - public SweepConfigurationV2 updateSweep(String balanceAccountId, String sweepId, UpdateSweepConfigurationV2 updateSweepConfigurationV2) throws ApiException, IOException { - return updateSweep(balanceAccountId, sweepId, updateSweepConfigurationV2, null); + pathParams.put("id", id); + + String requestBody = balanceAccountUpdateRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/balanceAccounts/{id}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return BalanceAccount.fromJson(jsonResult); + } + + /** + * Update a sweep + * + * @param balanceAccountId {@link String } The unique identifier of the balance account. + * (required) + * @param sweepId {@link String } The unique identifier of the sweep. (required) + * @param updateSweepConfigurationV2 {@link UpdateSweepConfigurationV2 } (required) + * @return {@link SweepConfigurationV2 } + * @throws ApiException if fails to make API call + */ + public SweepConfigurationV2 updateSweep( + String balanceAccountId, + String sweepId, + UpdateSweepConfigurationV2 updateSweepConfigurationV2) + throws ApiException, IOException { + return updateSweep(balanceAccountId, sweepId, updateSweepConfigurationV2, null); + } + + /** + * Update a sweep + * + * @param balanceAccountId {@link String } The unique identifier of the balance account. + * (required) + * @param sweepId {@link String } The unique identifier of the sweep. (required) + * @param updateSweepConfigurationV2 {@link UpdateSweepConfigurationV2 } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link SweepConfigurationV2 } + * @throws ApiException if fails to make API call + */ + public SweepConfigurationV2 updateSweep( + String balanceAccountId, + String sweepId, + UpdateSweepConfigurationV2 updateSweepConfigurationV2, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (balanceAccountId == null) { + throw new IllegalArgumentException("Please provide the balanceAccountId path parameter"); } - - /** - * Update a sweep - * - * @param balanceAccountId {@link String } The unique identifier of the balance account. (required) - * @param sweepId {@link String } The unique identifier of the sweep. (required) - * @param updateSweepConfigurationV2 {@link UpdateSweepConfigurationV2 } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link SweepConfigurationV2 } - * @throws ApiException if fails to make API call - */ - public SweepConfigurationV2 updateSweep(String balanceAccountId, String sweepId, UpdateSweepConfigurationV2 updateSweepConfigurationV2, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (balanceAccountId == null) { - throw new IllegalArgumentException("Please provide the balanceAccountId path parameter"); - } - pathParams.put("balanceAccountId", balanceAccountId); - if (sweepId == null) { - throw new IllegalArgumentException("Please provide the sweepId path parameter"); - } - pathParams.put("sweepId", sweepId); - - String requestBody = updateSweepConfigurationV2.toJson(); - Resource resource = new Resource(this, this.baseURL + "/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return SweepConfigurationV2.fromJson(jsonResult); + pathParams.put("balanceAccountId", balanceAccountId); + if (sweepId == null) { + throw new IllegalArgumentException("Please provide the sweepId path parameter"); } + pathParams.put("sweepId", sweepId); + + String requestBody = updateSweepConfigurationV2.toJson(); + Resource resource = + new Resource( + this, this.baseURL + "/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return SweepConfigurationV2.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/balanceplatform/BalancesApi.java b/src/main/java/com/adyen/service/balanceplatform/BalancesApi.java index 5b858f29d..6d93ac065 100644 --- a/src/main/java/com/adyen/service/balanceplatform/BalancesApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/BalancesApi.java @@ -2,7 +2,7 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,258 +14,338 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.balanceplatform.BalanceWebhookSettingInfo; import com.adyen.model.balanceplatform.BalanceWebhookSettingInfoUpdate; -import com.adyen.model.balanceplatform.DefaultErrorResponseEntity; import com.adyen.model.balanceplatform.WebhookSetting; import com.adyen.model.balanceplatform.WebhookSettings; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class BalancesApi extends Service { - public static final String API_VERSION = "2"; + public static final String API_VERSION = "2"; - protected String baseURL; + protected String baseURL; - /** - * Balances constructor in {@link com.adyen.service.balanceplatform package}. - * @param client {@link Client } (required) - */ - public BalancesApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); - } + /** + * Balances constructor in {@link com.adyen.service.balanceplatform package}. + * + * @param client {@link Client } (required) + */ + public BalancesApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); + } - /** - * Balances constructor in {@link com.adyen.service.balanceplatform package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public BalancesApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Balances constructor in {@link com.adyen.service.balanceplatform package}. Please use this + * constructor only if you would like to pass along your own url for routing or testing purposes. + * The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public BalancesApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Create a balance webhook setting - * - * @param balancePlatformId {@link String } The unique identifier of the balance platform. (required) - * @param webhookId {@link String } The unique identifier of the balance webhook. (required) - * @param balanceWebhookSettingInfo {@link BalanceWebhookSettingInfo } (required) - * @param balanceWebhookSettingInfo {@link BalanceWebhookSettingInfo } (required) - * @return {@link WebhookSetting } - * @throws ApiException if fails to make API call - */ - public WebhookSetting createWebhookSetting(String balancePlatformId, String webhookId, BalanceWebhookSettingInfo balanceWebhookSettingInfo) throws ApiException, IOException { - return createWebhookSetting(balancePlatformId, webhookId, balanceWebhookSettingInfo, null); - } - - /** - * Create a balance webhook setting - * - * @param balancePlatformId {@link String } The unique identifier of the balance platform. (required) - * @param webhookId {@link String } The unique identifier of the balance webhook. (required) - * @param balanceWebhookSettingInfo {@link BalanceWebhookSettingInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link WebhookSetting } - * @throws ApiException if fails to make API call - */ - public WebhookSetting createWebhookSetting(String balancePlatformId, String webhookId, BalanceWebhookSettingInfo balanceWebhookSettingInfo, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (balancePlatformId == null) { - throw new IllegalArgumentException("Please provide the balancePlatformId path parameter"); - } - pathParams.put("balancePlatformId", balancePlatformId); - if (webhookId == null) { - throw new IllegalArgumentException("Please provide the webhookId path parameter"); - } - pathParams.put("webhookId", webhookId); + /** + * Create a balance webhook setting + * + * @param balancePlatformId {@link String } The unique identifier of the balance platform. + * (required) + * @param webhookId {@link String } The unique identifier of the balance webhook. (required) + * @param balanceWebhookSettingInfo {@link BalanceWebhookSettingInfo } (required) + * @param balanceWebhookSettingInfo {@link BalanceWebhookSettingInfo } (required) + * @return {@link WebhookSetting } + * @throws ApiException if fails to make API call + */ + public WebhookSetting createWebhookSetting( + String balancePlatformId, + String webhookId, + BalanceWebhookSettingInfo balanceWebhookSettingInfo) + throws ApiException, IOException { + return createWebhookSetting(balancePlatformId, webhookId, balanceWebhookSettingInfo, null); + } - String requestBody = balanceWebhookSettingInfo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return WebhookSetting.fromJson(jsonResult); + /** + * Create a balance webhook setting + * + * @param balancePlatformId {@link String } The unique identifier of the balance platform. + * (required) + * @param webhookId {@link String } The unique identifier of the balance webhook. (required) + * @param balanceWebhookSettingInfo {@link BalanceWebhookSettingInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link WebhookSetting } + * @throws ApiException if fails to make API call + */ + public WebhookSetting createWebhookSetting( + String balancePlatformId, + String webhookId, + BalanceWebhookSettingInfo balanceWebhookSettingInfo, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (balancePlatformId == null) { + throw new IllegalArgumentException("Please provide the balancePlatformId path parameter"); } - - /** - * Delete a balance webhook setting by id - * - * @param balancePlatformId {@link String } The unique identifier of the balance platform. (required) - * @param webhookId {@link String } The unique identifier of the balance webhook. (required) - * @param settingId {@link String } The unique identifier of the balance webhook setting. (required) - * @throws ApiException if fails to make API call - */ - public void deleteWebhookSetting(String balancePlatformId, String webhookId, String settingId) throws ApiException, IOException { - deleteWebhookSetting(balancePlatformId, webhookId, settingId, null); + pathParams.put("balancePlatformId", balancePlatformId); + if (webhookId == null) { + throw new IllegalArgumentException("Please provide the webhookId path parameter"); } + pathParams.put("webhookId", webhookId); - /** - * Delete a balance webhook setting by id - * - * @param balancePlatformId {@link String } The unique identifier of the balance platform. (required) - * @param webhookId {@link String } The unique identifier of the balance webhook. (required) - * @param settingId {@link String } The unique identifier of the balance webhook setting. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void deleteWebhookSetting(String balancePlatformId, String webhookId, String settingId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (balancePlatformId == null) { - throw new IllegalArgumentException("Please provide the balancePlatformId path parameter"); - } - pathParams.put("balancePlatformId", balancePlatformId); - if (webhookId == null) { - throw new IllegalArgumentException("Please provide the webhookId path parameter"); - } - pathParams.put("webhookId", webhookId); - if (settingId == null) { - throw new IllegalArgumentException("Please provide the settingId path parameter"); - } - pathParams.put("settingId", settingId); + String requestBody = balanceWebhookSettingInfo.toJson(); + Resource resource = + new Resource( + this, + this.baseURL + "/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings", + null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return WebhookSetting.fromJson(jsonResult); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings/{settingId}", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); - } + /** + * Delete a balance webhook setting by id + * + * @param balancePlatformId {@link String } The unique identifier of the balance platform. + * (required) + * @param webhookId {@link String } The unique identifier of the balance webhook. (required) + * @param settingId {@link String } The unique identifier of the balance webhook setting. + * (required) + * @throws ApiException if fails to make API call + */ + public void deleteWebhookSetting(String balancePlatformId, String webhookId, String settingId) + throws ApiException, IOException { + deleteWebhookSetting(balancePlatformId, webhookId, settingId, null); + } - /** - * Get all balance webhook settings - * - * @param balancePlatformId {@link String } The unique identifier of the balance platform. (required) - * @param webhookId {@link String } The unique identifier of the balance webhook. (required) - * @return {@link WebhookSettings } - * @throws ApiException if fails to make API call - */ - public WebhookSettings getAllWebhookSettings(String balancePlatformId, String webhookId) throws ApiException, IOException { - return getAllWebhookSettings(balancePlatformId, webhookId, null); + /** + * Delete a balance webhook setting by id + * + * @param balancePlatformId {@link String } The unique identifier of the balance platform. + * (required) + * @param webhookId {@link String } The unique identifier of the balance webhook. (required) + * @param settingId {@link String } The unique identifier of the balance webhook setting. + * (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void deleteWebhookSetting( + String balancePlatformId, String webhookId, String settingId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (balancePlatformId == null) { + throw new IllegalArgumentException("Please provide the balancePlatformId path parameter"); + } + pathParams.put("balancePlatformId", balancePlatformId); + if (webhookId == null) { + throw new IllegalArgumentException("Please provide the webhookId path parameter"); } + pathParams.put("webhookId", webhookId); + if (settingId == null) { + throw new IllegalArgumentException("Please provide the settingId path parameter"); + } + pathParams.put("settingId", settingId); - /** - * Get all balance webhook settings - * - * @param balancePlatformId {@link String } The unique identifier of the balance platform. (required) - * @param webhookId {@link String } The unique identifier of the balance webhook. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link WebhookSettings } - * @throws ApiException if fails to make API call - */ - public WebhookSettings getAllWebhookSettings(String balancePlatformId, String webhookId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (balancePlatformId == null) { - throw new IllegalArgumentException("Please provide the balancePlatformId path parameter"); - } - pathParams.put("balancePlatformId", balancePlatformId); - if (webhookId == null) { - throw new IllegalArgumentException("Please provide the webhookId path parameter"); - } - pathParams.put("webhookId", webhookId); + String requestBody = null; + Resource resource = + new Resource( + this, + this.baseURL + + "/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings/{settingId}", + null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return WebhookSettings.fromJson(jsonResult); - } + /** + * Get all balance webhook settings + * + * @param balancePlatformId {@link String } The unique identifier of the balance platform. + * (required) + * @param webhookId {@link String } The unique identifier of the balance webhook. (required) + * @return {@link WebhookSettings } + * @throws ApiException if fails to make API call + */ + public WebhookSettings getAllWebhookSettings(String balancePlatformId, String webhookId) + throws ApiException, IOException { + return getAllWebhookSettings(balancePlatformId, webhookId, null); + } - /** - * Get a balance webhook setting by id - * - * @param balancePlatformId {@link String } The unique identifier of the balance platform. (required) - * @param webhookId {@link String } The unique identifier of the balance webhook. (required) - * @param settingId {@link String } The unique identifier of the balance webhook setting. (required) - * @return {@link WebhookSetting } - * @throws ApiException if fails to make API call - */ - public WebhookSetting getWebhookSetting(String balancePlatformId, String webhookId, String settingId) throws ApiException, IOException { - return getWebhookSetting(balancePlatformId, webhookId, settingId, null); + /** + * Get all balance webhook settings + * + * @param balancePlatformId {@link String } The unique identifier of the balance platform. + * (required) + * @param webhookId {@link String } The unique identifier of the balance webhook. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link WebhookSettings } + * @throws ApiException if fails to make API call + */ + public WebhookSettings getAllWebhookSettings( + String balancePlatformId, String webhookId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (balancePlatformId == null) { + throw new IllegalArgumentException("Please provide the balancePlatformId path parameter"); + } + pathParams.put("balancePlatformId", balancePlatformId); + if (webhookId == null) { + throw new IllegalArgumentException("Please provide the webhookId path parameter"); } + pathParams.put("webhookId", webhookId); - /** - * Get a balance webhook setting by id - * - * @param balancePlatformId {@link String } The unique identifier of the balance platform. (required) - * @param webhookId {@link String } The unique identifier of the balance webhook. (required) - * @param settingId {@link String } The unique identifier of the balance webhook setting. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link WebhookSetting } - * @throws ApiException if fails to make API call - */ - public WebhookSetting getWebhookSetting(String balancePlatformId, String webhookId, String settingId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (balancePlatformId == null) { - throw new IllegalArgumentException("Please provide the balancePlatformId path parameter"); - } - pathParams.put("balancePlatformId", balancePlatformId); - if (webhookId == null) { - throw new IllegalArgumentException("Please provide the webhookId path parameter"); - } - pathParams.put("webhookId", webhookId); - if (settingId == null) { - throw new IllegalArgumentException("Please provide the settingId path parameter"); - } - pathParams.put("settingId", settingId); + String requestBody = null; + Resource resource = + new Resource( + this, + this.baseURL + "/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings", + null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return WebhookSettings.fromJson(jsonResult); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings/{settingId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return WebhookSetting.fromJson(jsonResult); - } + /** + * Get a balance webhook setting by id + * + * @param balancePlatformId {@link String } The unique identifier of the balance platform. + * (required) + * @param webhookId {@link String } The unique identifier of the balance webhook. (required) + * @param settingId {@link String } The unique identifier of the balance webhook setting. + * (required) + * @return {@link WebhookSetting } + * @throws ApiException if fails to make API call + */ + public WebhookSetting getWebhookSetting( + String balancePlatformId, String webhookId, String settingId) + throws ApiException, IOException { + return getWebhookSetting(balancePlatformId, webhookId, settingId, null); + } - /** - * Update a balance webhook setting by id - * - * @param balancePlatformId {@link String } The unique identifier of the balance platform. (required) - * @param webhookId {@link String } The unique identifier of the balance webhook. (required) - * @param settingId {@link String } The unique identifier of the balance webhook setting. (required) - * @param balanceWebhookSettingInfoUpdate {@link BalanceWebhookSettingInfoUpdate } (required) - * @param balanceWebhookSettingInfoUpdate {@link BalanceWebhookSettingInfoUpdate } (required) - * @return {@link WebhookSetting } - * @throws ApiException if fails to make API call - */ - public WebhookSetting updateWebhookSetting(String balancePlatformId, String webhookId, String settingId, BalanceWebhookSettingInfoUpdate balanceWebhookSettingInfoUpdate) throws ApiException, IOException { - return updateWebhookSetting(balancePlatformId, webhookId, settingId, balanceWebhookSettingInfoUpdate, null); + /** + * Get a balance webhook setting by id + * + * @param balancePlatformId {@link String } The unique identifier of the balance platform. + * (required) + * @param webhookId {@link String } The unique identifier of the balance webhook. (required) + * @param settingId {@link String } The unique identifier of the balance webhook setting. + * (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link WebhookSetting } + * @throws ApiException if fails to make API call + */ + public WebhookSetting getWebhookSetting( + String balancePlatformId, String webhookId, String settingId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (balancePlatformId == null) { + throw new IllegalArgumentException("Please provide the balancePlatformId path parameter"); + } + pathParams.put("balancePlatformId", balancePlatformId); + if (webhookId == null) { + throw new IllegalArgumentException("Please provide the webhookId path parameter"); } + pathParams.put("webhookId", webhookId); + if (settingId == null) { + throw new IllegalArgumentException("Please provide the settingId path parameter"); + } + pathParams.put("settingId", settingId); + + String requestBody = null; + Resource resource = + new Resource( + this, + this.baseURL + + "/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings/{settingId}", + null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return WebhookSetting.fromJson(jsonResult); + } - /** - * Update a balance webhook setting by id - * - * @param balancePlatformId {@link String } The unique identifier of the balance platform. (required) - * @param webhookId {@link String } The unique identifier of the balance webhook. (required) - * @param settingId {@link String } The unique identifier of the balance webhook setting. (required) - * @param balanceWebhookSettingInfoUpdate {@link BalanceWebhookSettingInfoUpdate } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link WebhookSetting } - * @throws ApiException if fails to make API call - */ - public WebhookSetting updateWebhookSetting(String balancePlatformId, String webhookId, String settingId, BalanceWebhookSettingInfoUpdate balanceWebhookSettingInfoUpdate, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (balancePlatformId == null) { - throw new IllegalArgumentException("Please provide the balancePlatformId path parameter"); - } - pathParams.put("balancePlatformId", balancePlatformId); - if (webhookId == null) { - throw new IllegalArgumentException("Please provide the webhookId path parameter"); - } - pathParams.put("webhookId", webhookId); - if (settingId == null) { - throw new IllegalArgumentException("Please provide the settingId path parameter"); - } - pathParams.put("settingId", settingId); + /** + * Update a balance webhook setting by id + * + * @param balancePlatformId {@link String } The unique identifier of the balance platform. + * (required) + * @param webhookId {@link String } The unique identifier of the balance webhook. (required) + * @param settingId {@link String } The unique identifier of the balance webhook setting. + * (required) + * @param balanceWebhookSettingInfoUpdate {@link BalanceWebhookSettingInfoUpdate } (required) + * @param balanceWebhookSettingInfoUpdate {@link BalanceWebhookSettingInfoUpdate } (required) + * @return {@link WebhookSetting } + * @throws ApiException if fails to make API call + */ + public WebhookSetting updateWebhookSetting( + String balancePlatformId, + String webhookId, + String settingId, + BalanceWebhookSettingInfoUpdate balanceWebhookSettingInfoUpdate) + throws ApiException, IOException { + return updateWebhookSetting( + balancePlatformId, webhookId, settingId, balanceWebhookSettingInfoUpdate, null); + } - String requestBody = balanceWebhookSettingInfoUpdate.toJson(); - Resource resource = new Resource(this, this.baseURL + "/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings/{settingId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return WebhookSetting.fromJson(jsonResult); + /** + * Update a balance webhook setting by id + * + * @param balancePlatformId {@link String } The unique identifier of the balance platform. + * (required) + * @param webhookId {@link String } The unique identifier of the balance webhook. (required) + * @param settingId {@link String } The unique identifier of the balance webhook setting. + * (required) + * @param balanceWebhookSettingInfoUpdate {@link BalanceWebhookSettingInfoUpdate } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link WebhookSetting } + * @throws ApiException if fails to make API call + */ + public WebhookSetting updateWebhookSetting( + String balancePlatformId, + String webhookId, + String settingId, + BalanceWebhookSettingInfoUpdate balanceWebhookSettingInfoUpdate, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (balancePlatformId == null) { + throw new IllegalArgumentException("Please provide the balancePlatformId path parameter"); + } + pathParams.put("balancePlatformId", balancePlatformId); + if (webhookId == null) { + throw new IllegalArgumentException("Please provide the webhookId path parameter"); } + pathParams.put("webhookId", webhookId); + if (settingId == null) { + throw new IllegalArgumentException("Please provide the settingId path parameter"); + } + pathParams.put("settingId", settingId); + + String requestBody = balanceWebhookSettingInfoUpdate.toJson(); + Resource resource = + new Resource( + this, + this.baseURL + + "/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings/{settingId}", + null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return WebhookSetting.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/balanceplatform/BankAccountValidationApi.java b/src/main/java/com/adyen/service/balanceplatform/BankAccountValidationApi.java index 91ff06c40..1de08d0ff 100644 --- a/src/main/java/com/adyen/service/balanceplatform/BankAccountValidationApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/BankAccountValidationApi.java @@ -2,7 +2,7 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,62 +14,70 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.balanceplatform.BankAccountIdentificationValidationRequest; -import com.adyen.model.balanceplatform.RestServiceError; import com.adyen.model.RequestOptions; +import com.adyen.model.balanceplatform.BankAccountIdentificationValidationRequest; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; -import java.util.HashMap; -import java.util.Map; public class BankAccountValidationApi extends Service { - public static final String API_VERSION = "2"; + public static final String API_VERSION = "2"; - protected String baseURL; + protected String baseURL; - /** - * Bank account validation constructor in {@link com.adyen.service.balanceplatform package}. - * @param client {@link Client } (required) - */ - public BankAccountValidationApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); - } + /** + * Bank account validation constructor in {@link com.adyen.service.balanceplatform package}. + * + * @param client {@link Client } (required) + */ + public BankAccountValidationApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); + } - /** - * Bank account validation constructor in {@link com.adyen.service.balanceplatform package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public BankAccountValidationApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Bank account validation constructor in {@link com.adyen.service.balanceplatform package}. + * Please use this constructor only if you would like to pass along your own url for routing or + * testing purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public BankAccountValidationApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Validate a bank account - * - * @param bankAccountIdentificationValidationRequest {@link BankAccountIdentificationValidationRequest } (required) - * @throws ApiException if fails to make API call - */ - public void validateBankAccountIdentification(BankAccountIdentificationValidationRequest bankAccountIdentificationValidationRequest) throws ApiException, IOException { - validateBankAccountIdentification(bankAccountIdentificationValidationRequest, null); - } + /** + * Validate a bank account + * + * @param bankAccountIdentificationValidationRequest {@link + * BankAccountIdentificationValidationRequest } (required) + * @throws ApiException if fails to make API call + */ + public void validateBankAccountIdentification( + BankAccountIdentificationValidationRequest bankAccountIdentificationValidationRequest) + throws ApiException, IOException { + validateBankAccountIdentification(bankAccountIdentificationValidationRequest, null); + } - /** - * Validate a bank account - * - * @param bankAccountIdentificationValidationRequest {@link BankAccountIdentificationValidationRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void validateBankAccountIdentification(BankAccountIdentificationValidationRequest bankAccountIdentificationValidationRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = bankAccountIdentificationValidationRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/validateBankAccountIdentification", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - } + /** + * Validate a bank account + * + * @param bankAccountIdentificationValidationRequest {@link + * BankAccountIdentificationValidationRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void validateBankAccountIdentification( + BankAccountIdentificationValidationRequest bankAccountIdentificationValidationRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = bankAccountIdentificationValidationRequest.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/validateBankAccountIdentification", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + } } diff --git a/src/main/java/com/adyen/service/balanceplatform/CardOrdersApi.java b/src/main/java/com/adyen/service/balanceplatform/CardOrdersApi.java index e7188f640..8790a51de 100644 --- a/src/main/java/com/adyen/service/balanceplatform/CardOrdersApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/CardOrdersApi.java @@ -2,7 +2,7 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,156 +14,198 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import java.time.OffsetDateTime; +import com.adyen.model.RequestOptions; import com.adyen.model.balanceplatform.PaginatedGetCardOrderItemResponse; import com.adyen.model.balanceplatform.PaginatedGetCardOrderResponse; -import com.adyen.model.balanceplatform.RestServiceError; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; +import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; public class CardOrdersApi extends Service { - public static final String API_VERSION = "2"; + public static final String API_VERSION = "2"; - protected String baseURL; + protected String baseURL; - /** - * Card orders constructor in {@link com.adyen.service.balanceplatform package}. - * @param client {@link Client } (required) - */ - public CardOrdersApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); - } + /** + * Card orders constructor in {@link com.adyen.service.balanceplatform package}. + * + * @param client {@link Client } (required) + */ + public CardOrdersApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); + } + + /** + * Card orders constructor in {@link com.adyen.service.balanceplatform package}. Please use this + * constructor only if you would like to pass along your own url for routing or testing purposes. + * The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public CardOrdersApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Get card order items + * + * @param id {@link String } The unique identifier of the card order. (required) + * @return {@link PaginatedGetCardOrderItemResponse } + * @throws ApiException if fails to make API call + */ + public PaginatedGetCardOrderItemResponse getCardOrderItems(String id) + throws ApiException, IOException { + return getCardOrderItems(id, null, null, null); + } - /** - * Card orders constructor in {@link com.adyen.service.balanceplatform package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public CardOrdersApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; + /** + * Get card order items + * + * @param id {@link String } The unique identifier of the card order. (required) + * @param offset {@link Integer } Query: Specifies the position of an element in a list of card + * orders. The response includes a list of card order items that starts at the specified + * offset. **Default:** 0, which means that the response contains all the elements in the list + * of card order items. (optional) + * @param limit {@link Integer } Query: The number of card order items returned per page. + * **Default:** 10. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PaginatedGetCardOrderItemResponse } + * @throws ApiException if fails to make API call + */ + public PaginatedGetCardOrderItemResponse getCardOrderItems( + String id, Integer offset, Integer limit, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); - /** - * Get card order items - * - * @param id {@link String } The unique identifier of the card order. (required) - * @return {@link PaginatedGetCardOrderItemResponse } - * @throws ApiException if fails to make API call - */ - public PaginatedGetCardOrderItemResponse getCardOrderItems(String id) throws ApiException, IOException { - return getCardOrderItems(id, null, null, null); + // Add query params + Map queryParams = new HashMap<>(); + if (offset != null) { + queryParams.put("offset", offset.toString()); + } + if (limit != null) { + queryParams.put("limit", limit.toString()); } - /** - * Get card order items - * - * @param id {@link String } The unique identifier of the card order. (required) - * @param offset {@link Integer } Query: Specifies the position of an element in a list of card orders. The response includes a list of card order items that starts at the specified offset. **Default:** 0, which means that the response contains all the elements in the list of card order items. (optional) - * @param limit {@link Integer } Query: The number of card order items returned per page. **Default:** 10. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PaginatedGetCardOrderItemResponse } - * @throws ApiException if fails to make API call - */ - public PaginatedGetCardOrderItemResponse getCardOrderItems(String id, Integer offset, Integer limit, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/cardorders/{id}/items", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return PaginatedGetCardOrderItemResponse.fromJson(jsonResult); + } - //Add query params - Map queryParams = new HashMap<>(); - if (offset != null) { - queryParams.put("offset", offset.toString()); - } - if (limit != null) { - queryParams.put("limit", limit.toString()); - } + /** + * Get a list of card orders + * + * @return {@link PaginatedGetCardOrderResponse } + * @throws ApiException if fails to make API call + */ + public PaginatedGetCardOrderResponse listCardOrders() throws ApiException, IOException { + return listCardOrders(null, null, null, null, null, null, null, null, null, null, null, null); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/cardorders/{id}/items", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return PaginatedGetCardOrderItemResponse.fromJson(jsonResult); + /** + * Get a list of card orders + * + * @param id {@link String } Query: The unique identifier of the card order. (optional) + * @param cardManufacturingProfileId {@link String } Query: The unique identifier of the card + * manufacturer profile. (optional) + * @param status {@link String } Query: The status of the card order. (optional) + * @param txVariantCode {@link String } Query: The unique code of the card manufacturer profile. + * Possible values: **mcmaestro**, **mc**, **visa**, **mcdebit**. (optional) + * @param createdSince {@link OffsetDateTime } Query: Only include card orders that have been + * created on or after this point in time. The value must be in ISO 8601 format. For example, + * **2021-05-30T15:07:40Z**. (optional) + * @param createdUntil {@link OffsetDateTime } Query: Only include card orders that have been + * created on or before this point in time. The value must be in ISO 8601 format. For example, + * **2021-05-30T15:07:40Z**. (optional) + * @param lockedSince {@link OffsetDateTime } Query: Only include card orders that have been + * locked on or after this point in time. The value must be in ISO 8601 format. For example, + * **2021-05-30T15:07:40Z**. (optional) + * @param lockedUntil {@link OffsetDateTime } Query: Only include card orders that have been + * locked on or before this point in time. The value must be in ISO 8601 format. For example, + * **2021-05-30T15:07:40Z**. (optional) + * @param serviceCenter {@link String } Query: The service center at which the card is issued. The + * value is case-sensitive. (optional) + * @param offset {@link Integer } Query: Specifies the position of an element in a list of card + * orders. The response includes a list of card orders that starts at the specified offset. + * **Default:** 0, which means that the response contains all the elements in the list of card + * orders. (optional) + * @param limit {@link Integer } Query: The number of card orders returned per page. **Default:** + * 10. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PaginatedGetCardOrderResponse } + * @throws ApiException if fails to make API call + */ + public PaginatedGetCardOrderResponse listCardOrders( + String id, + String cardManufacturingProfileId, + String status, + String txVariantCode, + OffsetDateTime createdSince, + OffsetDateTime createdUntil, + OffsetDateTime lockedSince, + OffsetDateTime lockedUntil, + String serviceCenter, + Integer offset, + Integer limit, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add query params + Map queryParams = new HashMap<>(); + if (id != null) { + queryParams.put("id", id); } - - /** - * Get a list of card orders - * - * @return {@link PaginatedGetCardOrderResponse } - * @throws ApiException if fails to make API call - */ - public PaginatedGetCardOrderResponse listCardOrders() throws ApiException, IOException { - return listCardOrders(null, null, null, null, null, null, null, null, null, null, null, null); + if (cardManufacturingProfileId != null) { + queryParams.put("cardManufacturingProfileId", cardManufacturingProfileId); } - - /** - * Get a list of card orders - * - * @param id {@link String } Query: The unique identifier of the card order. (optional) - * @param cardManufacturingProfileId {@link String } Query: The unique identifier of the card manufacturer profile. (optional) - * @param status {@link String } Query: The status of the card order. (optional) - * @param txVariantCode {@link String } Query: The unique code of the card manufacturer profile. Possible values: **mcmaestro**, **mc**, **visa**, **mcdebit**. (optional) - * @param createdSince {@link OffsetDateTime } Query: Only include card orders that have been created on or after this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**. (optional) - * @param createdUntil {@link OffsetDateTime } Query: Only include card orders that have been created on or before this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**. (optional) - * @param lockedSince {@link OffsetDateTime } Query: Only include card orders that have been locked on or after this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**. (optional) - * @param lockedUntil {@link OffsetDateTime } Query: Only include card orders that have been locked on or before this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**. (optional) - * @param serviceCenter {@link String } Query: The service center at which the card is issued. The value is case-sensitive. (optional) - * @param offset {@link Integer } Query: Specifies the position of an element in a list of card orders. The response includes a list of card orders that starts at the specified offset. **Default:** 0, which means that the response contains all the elements in the list of card orders. (optional) - * @param limit {@link Integer } Query: The number of card orders returned per page. **Default:** 10. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PaginatedGetCardOrderResponse } - * @throws ApiException if fails to make API call - */ - public PaginatedGetCardOrderResponse listCardOrders(String id, String cardManufacturingProfileId, String status, String txVariantCode, OffsetDateTime createdSince, OffsetDateTime createdUntil, OffsetDateTime lockedSince, OffsetDateTime lockedUntil, String serviceCenter, Integer offset, Integer limit, RequestOptions requestOptions) throws ApiException, IOException { - //Add query params - Map queryParams = new HashMap<>(); - if (id != null) { - queryParams.put("id", id); - } - if (cardManufacturingProfileId != null) { - queryParams.put("cardManufacturingProfileId", cardManufacturingProfileId); - } - if (status != null) { - queryParams.put("status", status); - } - if (txVariantCode != null) { - queryParams.put("txVariantCode", txVariantCode); - } - if (createdSince != null) { - queryParams.put("createdSince", createdSince.toString()); - } - if (createdUntil != null) { - queryParams.put("createdUntil", createdUntil.toString()); - } - if (lockedSince != null) { - queryParams.put("lockedSince", lockedSince.toString()); - } - if (lockedUntil != null) { - queryParams.put("lockedUntil", lockedUntil.toString()); - } - if (serviceCenter != null) { - queryParams.put("serviceCenter", serviceCenter); - } - if (offset != null) { - queryParams.put("offset", offset.toString()); - } - if (limit != null) { - queryParams.put("limit", limit.toString()); - } - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/cardorders", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); - return PaginatedGetCardOrderResponse.fromJson(jsonResult); + if (status != null) { + queryParams.put("status", status); + } + if (txVariantCode != null) { + queryParams.put("txVariantCode", txVariantCode); + } + if (createdSince != null) { + queryParams.put("createdSince", createdSince.toString()); + } + if (createdUntil != null) { + queryParams.put("createdUntil", createdUntil.toString()); + } + if (lockedSince != null) { + queryParams.put("lockedSince", lockedSince.toString()); } + if (lockedUntil != null) { + queryParams.put("lockedUntil", lockedUntil.toString()); + } + if (serviceCenter != null) { + queryParams.put("serviceCenter", serviceCenter); + } + if (offset != null) { + queryParams.put("offset", offset.toString()); + } + if (limit != null) { + queryParams.put("limit", limit.toString()); + } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/cardorders", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); + return PaginatedGetCardOrderResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/balanceplatform/GrantAccountsApi.java b/src/main/java/com/adyen/service/balanceplatform/GrantAccountsApi.java index 79c449375..9ff3c47eb 100644 --- a/src/main/java/com/adyen/service/balanceplatform/GrantAccountsApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/GrantAccountsApi.java @@ -2,7 +2,7 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,78 +14,82 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.balanceplatform.CapitalGrantAccount; -import com.adyen.model.balanceplatform.RestServiceError; import com.adyen.model.RequestOptions; +import com.adyen.model.balanceplatform.CapitalGrantAccount; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class GrantAccountsApi extends Service { - public static final String API_VERSION = "2"; + public static final String API_VERSION = "2"; - protected String baseURL; + protected String baseURL; - /** - * Grant accounts constructor in {@link com.adyen.service.balanceplatform package}. - * @param client {@link Client } (required) - */ - public GrantAccountsApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); - } + /** + * Grant accounts constructor in {@link com.adyen.service.balanceplatform package}. + * + * @param client {@link Client } (required) + */ + public GrantAccountsApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); + } - /** - * Grant accounts constructor in {@link com.adyen.service.balanceplatform package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public GrantAccountsApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Get a grant account - * - * @param id {@link String } The unique identifier of the grant account. (required) - * @return {@link CapitalGrantAccount } - * @throws ApiException if fails to make API call - * @deprecated since Configuration API v2 - * Use the `/grantAccounts/{id}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantAccounts/(id)) instead. - */ - @Deprecated - public CapitalGrantAccount getGrantAccount(String id) throws ApiException, IOException { - return getGrantAccount(id, null); - } + /** + * Grant accounts constructor in {@link com.adyen.service.balanceplatform package}. Please use + * this constructor only if you would like to pass along your own url for routing or testing + * purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public GrantAccountsApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Get a grant account - * - * @param id {@link String } The unique identifier of the grant account. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link CapitalGrantAccount } - * @throws ApiException if fails to make API call - * @deprecated since Configuration API v2 - * Use the `/grantAccounts/{id}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantAccounts/(id)) instead. - */ - @Deprecated - public CapitalGrantAccount getGrantAccount(String id, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); + /** + * Get a grant account + * + * @param id {@link String } The unique identifier of the grant account. (required) + * @return {@link CapitalGrantAccount } + * @throws ApiException if fails to make API call + * @deprecated since Configuration API v2 Use the `/grantAccounts/{id}` endpoint from the [Capital + * API](https://docs.adyen.com/api-explorer/capital/latest/get/grantAccounts/(id)) instead. + */ + @Deprecated + public CapitalGrantAccount getGrantAccount(String id) throws ApiException, IOException { + return getGrantAccount(id, null); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/grantAccounts/{id}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return CapitalGrantAccount.fromJson(jsonResult); + /** + * Get a grant account + * + * @param id {@link String } The unique identifier of the grant account. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link CapitalGrantAccount } + * @throws ApiException if fails to make API call + * @deprecated since Configuration API v2 Use the `/grantAccounts/{id}` endpoint from the [Capital + * API](https://docs.adyen.com/api-explorer/capital/latest/get/grantAccounts/(id)) instead. + */ + @Deprecated + public CapitalGrantAccount getGrantAccount(String id, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/grantAccounts/{id}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return CapitalGrantAccount.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/balanceplatform/GrantOffersApi.java b/src/main/java/com/adyen/service/balanceplatform/GrantOffersApi.java index ef6deb842..2c932c4f3 100644 --- a/src/main/java/com/adyen/service/balanceplatform/GrantOffersApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/GrantOffersApi.java @@ -2,7 +2,7 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,117 +14,127 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.balanceplatform.GrantOffer; import com.adyen.model.balanceplatform.GrantOffers; -import com.adyen.model.balanceplatform.RestServiceError; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class GrantOffersApi extends Service { - public static final String API_VERSION = "2"; - - protected String baseURL; + public static final String API_VERSION = "2"; - /** - * Grant offers constructor in {@link com.adyen.service.balanceplatform package}. - * @param client {@link Client } (required) - */ - public GrantOffersApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); - } + protected String baseURL; - /** - * Grant offers constructor in {@link com.adyen.service.balanceplatform package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public GrantOffersApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Grant offers constructor in {@link com.adyen.service.balanceplatform package}. + * + * @param client {@link Client } (required) + */ + public GrantOffersApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); + } - /** - * Get all available grant offers - * - * @param accountHolderId {@link String } The unique identifier of the grant account. (required) - * @return {@link GrantOffers } - * @throws ApiException if fails to make API call - * @deprecated since Configuration API v2 - * Use the `/grantOffers` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers) instead. - */ - @Deprecated - public GrantOffers getAllAvailableGrantOffers(String accountHolderId) throws ApiException, IOException { - return getAllAvailableGrantOffers(accountHolderId, null); - } + /** + * Grant offers constructor in {@link com.adyen.service.balanceplatform package}. Please use this + * constructor only if you would like to pass along your own url for routing or testing purposes. + * The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public GrantOffersApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Get all available grant offers - * - * @param accountHolderId {@link String } Query: The unique identifier of the grant account. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link GrantOffers } - * @throws ApiException if fails to make API call - * @deprecated since Configuration API v2 - * Use the `/grantOffers` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers) instead. - */ - @Deprecated - public GrantOffers getAllAvailableGrantOffers(String accountHolderId, RequestOptions requestOptions) throws ApiException, IOException { - //Add query params - Map queryParams = new HashMap<>(); - if (accountHolderId != null) { - queryParams.put("accountHolderId", accountHolderId); - } + /** + * Get all available grant offers + * + * @param accountHolderId {@link String } The unique identifier of the grant account. (required) + * @return {@link GrantOffers } + * @throws ApiException if fails to make API call + * @deprecated since Configuration API v2 Use the `/grantOffers` endpoint from the [Capital + * API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers) instead. + */ + @Deprecated + public GrantOffers getAllAvailableGrantOffers(String accountHolderId) + throws ApiException, IOException { + return getAllAvailableGrantOffers(accountHolderId, null); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/grantOffers", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); - return GrantOffers.fromJson(jsonResult); + /** + * Get all available grant offers + * + * @param accountHolderId {@link String } Query: The unique identifier of the grant account. + * (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link GrantOffers } + * @throws ApiException if fails to make API call + * @deprecated since Configuration API v2 Use the `/grantOffers` endpoint from the [Capital + * API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers) instead. + */ + @Deprecated + public GrantOffers getAllAvailableGrantOffers( + String accountHolderId, RequestOptions requestOptions) throws ApiException, IOException { + // Add query params + Map queryParams = new HashMap<>(); + if (accountHolderId != null) { + queryParams.put("accountHolderId", accountHolderId); } - /** - * Get a grant offer - * - * @param grantOfferId {@link String } The unique identifier of the grant offer. (required) - * @return {@link GrantOffer } - * @throws ApiException if fails to make API call - * @deprecated since Configuration API v2 - * Use the `/grantOffers/{id}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers/(id)) instead. - */ - @Deprecated - public GrantOffer getGrantOffer(String grantOfferId) throws ApiException, IOException { - return getGrantOffer(grantOfferId, null); - } + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/grantOffers", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); + return GrantOffers.fromJson(jsonResult); + } - /** - * Get a grant offer - * - * @param grantOfferId {@link String } The unique identifier of the grant offer. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link GrantOffer } - * @throws ApiException if fails to make API call - * @deprecated since Configuration API v2 - * Use the `/grantOffers/{id}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers/(id)) instead. - */ - @Deprecated - public GrantOffer getGrantOffer(String grantOfferId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (grantOfferId == null) { - throw new IllegalArgumentException("Please provide the grantOfferId path parameter"); - } - pathParams.put("grantOfferId", grantOfferId); + /** + * Get a grant offer + * + * @param grantOfferId {@link String } The unique identifier of the grant offer. (required) + * @return {@link GrantOffer } + * @throws ApiException if fails to make API call + * @deprecated since Configuration API v2 Use the `/grantOffers/{id}` endpoint from the [Capital + * API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers/(id)) instead. + */ + @Deprecated + public GrantOffer getGrantOffer(String grantOfferId) throws ApiException, IOException { + return getGrantOffer(grantOfferId, null); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/grantOffers/{grantOfferId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return GrantOffer.fromJson(jsonResult); + /** + * Get a grant offer + * + * @param grantOfferId {@link String } The unique identifier of the grant offer. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link GrantOffer } + * @throws ApiException if fails to make API call + * @deprecated since Configuration API v2 Use the `/grantOffers/{id}` endpoint from the [Capital + * API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers/(id)) instead. + */ + @Deprecated + public GrantOffer getGrantOffer(String grantOfferId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (grantOfferId == null) { + throw new IllegalArgumentException("Please provide the grantOfferId path parameter"); } + pathParams.put("grantOfferId", grantOfferId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/grantOffers/{grantOfferId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return GrantOffer.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/balanceplatform/ManageCardPinApi.java b/src/main/java/com/adyen/service/balanceplatform/ManageCardPinApi.java index 30e6e1d7e..b880ede5e 100644 --- a/src/main/java/com/adyen/service/balanceplatform/ManageCardPinApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/ManageCardPinApi.java @@ -2,7 +2,7 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,130 +14,147 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.balanceplatform.PinChangeRequest; import com.adyen.model.balanceplatform.PinChangeResponse; import com.adyen.model.balanceplatform.PublicKeyResponse; -import com.adyen.model.balanceplatform.RestServiceError; import com.adyen.model.balanceplatform.RevealPinRequest; import com.adyen.model.balanceplatform.RevealPinResponse; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class ManageCardPinApi extends Service { - public static final String API_VERSION = "2"; + public static final String API_VERSION = "2"; - protected String baseURL; + protected String baseURL; - /** - * Manage card PIN constructor in {@link com.adyen.service.balanceplatform package}. - * @param client {@link Client } (required) - */ - public ManageCardPinApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); - } - - /** - * Manage card PIN constructor in {@link com.adyen.service.balanceplatform package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public ManageCardPinApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Manage card PIN constructor in {@link com.adyen.service.balanceplatform package}. + * + * @param client {@link Client } (required) + */ + public ManageCardPinApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); + } - /** - * Change a card PIN - * - * @param pinChangeRequest {@link PinChangeRequest } (required) - * @return {@link PinChangeResponse } - * @throws ApiException if fails to make API call - */ - public PinChangeResponse changeCardPin(PinChangeRequest pinChangeRequest) throws ApiException, IOException { - return changeCardPin(pinChangeRequest, null); - } + /** + * Manage card PIN constructor in {@link com.adyen.service.balanceplatform package}. Please use + * this constructor only if you would like to pass along your own url for routing or testing + * purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public ManageCardPinApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Change a card PIN - * - * @param pinChangeRequest {@link PinChangeRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PinChangeResponse } - * @throws ApiException if fails to make API call - */ - public PinChangeResponse changeCardPin(PinChangeRequest pinChangeRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = pinChangeRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/pins/change", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return PinChangeResponse.fromJson(jsonResult); - } + /** + * Change a card PIN + * + * @param pinChangeRequest {@link PinChangeRequest } (required) + * @return {@link PinChangeResponse } + * @throws ApiException if fails to make API call + */ + public PinChangeResponse changeCardPin(PinChangeRequest pinChangeRequest) + throws ApiException, IOException { + return changeCardPin(pinChangeRequest, null); + } - /** - * Get an RSA public key - * - * @return {@link PublicKeyResponse } - * @throws ApiException if fails to make API call - */ - public PublicKeyResponse publicKey() throws ApiException, IOException { - return publicKey(null, null, null); - } + /** + * Change a card PIN + * + * @param pinChangeRequest {@link PinChangeRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PinChangeResponse } + * @throws ApiException if fails to make API call + */ + public PinChangeResponse changeCardPin( + PinChangeRequest pinChangeRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = pinChangeRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/pins/change", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return PinChangeResponse.fromJson(jsonResult); + } - /** - * Get an RSA public key - * - * @param purpose {@link String } Query: The purpose of the public key. Possible values: **pinChange**, **pinReveal**, **panReveal**. Default value: **pinReveal**. (optional) - * @param format {@link String } Query: The encoding format of public key. Possible values: **jwk**, **pem**. Default value: **pem**. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PublicKeyResponse } - * @throws ApiException if fails to make API call - */ - public PublicKeyResponse publicKey(String purpose, String format, RequestOptions requestOptions) throws ApiException, IOException { - //Add query params - Map queryParams = new HashMap<>(); - if (purpose != null) { - queryParams.put("purpose", purpose); - } - if (format != null) { - queryParams.put("format", format); - } + /** + * Get an RSA public key + * + * @return {@link PublicKeyResponse } + * @throws ApiException if fails to make API call + */ + public PublicKeyResponse publicKey() throws ApiException, IOException { + return publicKey(null, null, null); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/publicKey", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); - return PublicKeyResponse.fromJson(jsonResult); + /** + * Get an RSA public key + * + * @param purpose {@link String } Query: The purpose of the public key. Possible values: + * **pinChange**, **pinReveal**, **panReveal**. Default value: **pinReveal**. (optional) + * @param format {@link String } Query: The encoding format of public key. Possible values: + * **jwk**, **pem**. Default value: **pem**. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PublicKeyResponse } + * @throws ApiException if fails to make API call + */ + public PublicKeyResponse publicKey(String purpose, String format, RequestOptions requestOptions) + throws ApiException, IOException { + // Add query params + Map queryParams = new HashMap<>(); + if (purpose != null) { + queryParams.put("purpose", purpose); } - - /** - * Reveal a card PIN - * - * @param revealPinRequest {@link RevealPinRequest } (required) - * @return {@link RevealPinResponse } - * @throws ApiException if fails to make API call - */ - public RevealPinResponse revealCardPin(RevealPinRequest revealPinRequest) throws ApiException, IOException { - return revealCardPin(revealPinRequest, null); + if (format != null) { + queryParams.put("format", format); } - /** - * Reveal a card PIN - * - * @param revealPinRequest {@link RevealPinRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link RevealPinResponse } - * @throws ApiException if fails to make API call - */ - public RevealPinResponse revealCardPin(RevealPinRequest revealPinRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = revealPinRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/pins/reveal", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return RevealPinResponse.fromJson(jsonResult); - } + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/publicKey", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); + return PublicKeyResponse.fromJson(jsonResult); + } + + /** + * Reveal a card PIN + * + * @param revealPinRequest {@link RevealPinRequest } (required) + * @return {@link RevealPinResponse } + * @throws ApiException if fails to make API call + */ + public RevealPinResponse revealCardPin(RevealPinRequest revealPinRequest) + throws ApiException, IOException { + return revealCardPin(revealPinRequest, null); + } + + /** + * Reveal a card PIN + * + * @param revealPinRequest {@link RevealPinRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link RevealPinResponse } + * @throws ApiException if fails to make API call + */ + public RevealPinResponse revealCardPin( + RevealPinRequest revealPinRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = revealPinRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/pins/reveal", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return RevealPinResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/balanceplatform/ManageScaDevicesApi.java b/src/main/java/com/adyen/service/balanceplatform/ManageScaDevicesApi.java index 0f6a33983..801fa11bc 100644 --- a/src/main/java/com/adyen/service/balanceplatform/ManageScaDevicesApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/ManageScaDevicesApi.java @@ -2,7 +2,7 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,6 +14,7 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.balanceplatform.AssociationFinaliseRequest; import com.adyen.model.balanceplatform.AssociationFinaliseResponse; import com.adyen.model.balanceplatform.AssociationInitiateRequest; @@ -21,248 +22,309 @@ import com.adyen.model.balanceplatform.RegisterSCAFinalResponse; import com.adyen.model.balanceplatform.RegisterSCARequest; import com.adyen.model.balanceplatform.RegisterSCAResponse; -import com.adyen.model.balanceplatform.RestServiceError; import com.adyen.model.balanceplatform.SearchRegisteredDevicesResponse; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class ManageScaDevicesApi extends Service { - public static final String API_VERSION = "2"; + public static final String API_VERSION = "2"; - protected String baseURL; + protected String baseURL; - /** - * Manage SCA devices constructor in {@link com.adyen.service.balanceplatform package}. - * @param client {@link Client } (required) - */ - public ManageScaDevicesApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); - } + /** + * Manage SCA devices constructor in {@link com.adyen.service.balanceplatform package}. + * + * @param client {@link Client } (required) + */ + public ManageScaDevicesApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); + } - /** - * Manage SCA devices constructor in {@link com.adyen.service.balanceplatform package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public ManageScaDevicesApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Manage SCA devices constructor in {@link com.adyen.service.balanceplatform package}. Please use + * this constructor only if you would like to pass along your own url for routing or testing + * purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public ManageScaDevicesApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Complete an association between an SCA device and a resource - * - * @param deviceId {@link String } The unique identifier of the SCA device that you are associating with a resource. (required) - * @param associationFinaliseRequest {@link AssociationFinaliseRequest } (required) - * @return {@link AssociationFinaliseResponse } - * @throws ApiException if fails to make API call - */ - public AssociationFinaliseResponse completeAssociationBetweenScaDeviceAndResource(String deviceId, AssociationFinaliseRequest associationFinaliseRequest) throws ApiException, IOException { - return completeAssociationBetweenScaDeviceAndResource(deviceId, associationFinaliseRequest, null); + /** + * Complete an association between an SCA device and a resource + * + * @param deviceId {@link String } The unique identifier of the SCA device that you are + * associating with a resource. (required) + * @param associationFinaliseRequest {@link AssociationFinaliseRequest } (required) + * @return {@link AssociationFinaliseResponse } + * @throws ApiException if fails to make API call + */ + public AssociationFinaliseResponse completeAssociationBetweenScaDeviceAndResource( + String deviceId, AssociationFinaliseRequest associationFinaliseRequest) + throws ApiException, IOException { + return completeAssociationBetweenScaDeviceAndResource( + deviceId, associationFinaliseRequest, null); + } + + /** + * Complete an association between an SCA device and a resource + * + * @param deviceId {@link String } The unique identifier of the SCA device that you are + * associating with a resource. (required) + * @param associationFinaliseRequest {@link AssociationFinaliseRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link AssociationFinaliseResponse } + * @throws ApiException if fails to make API call + */ + public AssociationFinaliseResponse completeAssociationBetweenScaDeviceAndResource( + String deviceId, + AssociationFinaliseRequest associationFinaliseRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (deviceId == null) { + throw new IllegalArgumentException("Please provide the deviceId path parameter"); } + pathParams.put("deviceId", deviceId); - /** - * Complete an association between an SCA device and a resource - * - * @param deviceId {@link String } The unique identifier of the SCA device that you are associating with a resource. (required) - * @param associationFinaliseRequest {@link AssociationFinaliseRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link AssociationFinaliseResponse } - * @throws ApiException if fails to make API call - */ - public AssociationFinaliseResponse completeAssociationBetweenScaDeviceAndResource(String deviceId, AssociationFinaliseRequest associationFinaliseRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (deviceId == null) { - throw new IllegalArgumentException("Please provide the deviceId path parameter"); - } - pathParams.put("deviceId", deviceId); + String requestBody = associationFinaliseRequest.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/registeredDevices/{deviceId}/associations", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return AssociationFinaliseResponse.fromJson(jsonResult); + } - String requestBody = associationFinaliseRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/registeredDevices/{deviceId}/associations", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return AssociationFinaliseResponse.fromJson(jsonResult); - } + /** + * Complete the registration of an SCA device + * + * @param id {@link String } The unique identifier of the SCA device. You obtain this + * `id` in the response of a + * POST&nbsp;[/registeredDevices](https://docs.adyen.com/api-explorer/balanceplatform/2/post/registeredDevices#responses-200-id) + * request. (required) + * @param registerSCARequest {@link RegisterSCARequest } (required) + * @return {@link RegisterSCAFinalResponse } + * @throws ApiException if fails to make API call + */ + public RegisterSCAFinalResponse completeRegistrationOfScaDevice( + String id, RegisterSCARequest registerSCARequest) throws ApiException, IOException { + return completeRegistrationOfScaDevice(id, registerSCARequest, null); + } - /** - * Complete the registration of an SCA device - * - * @param id {@link String } The unique identifier of the SCA device. You obtain this `id` in the response of a POST&nbsp;[/registeredDevices](https://docs.adyen.com/api-explorer/balanceplatform/2/post/registeredDevices#responses-200-id) request. (required) - * @param registerSCARequest {@link RegisterSCARequest } (required) - * @return {@link RegisterSCAFinalResponse } - * @throws ApiException if fails to make API call - */ - public RegisterSCAFinalResponse completeRegistrationOfScaDevice(String id, RegisterSCARequest registerSCARequest) throws ApiException, IOException { - return completeRegistrationOfScaDevice(id, registerSCARequest, null); + /** + * Complete the registration of an SCA device + * + * @param id {@link String } The unique identifier of the SCA device. You obtain this + * `id` in the response of a + * POST&nbsp;[/registeredDevices](https://docs.adyen.com/api-explorer/balanceplatform/2/post/registeredDevices#responses-200-id) + * request. (required) + * @param registerSCARequest {@link RegisterSCARequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link RegisterSCAFinalResponse } + * @throws ApiException if fails to make API call + */ + public RegisterSCAFinalResponse completeRegistrationOfScaDevice( + String id, RegisterSCARequest registerSCARequest, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); - /** - * Complete the registration of an SCA device - * - * @param id {@link String } The unique identifier of the SCA device. You obtain this `id` in the response of a POST&nbsp;[/registeredDevices](https://docs.adyen.com/api-explorer/balanceplatform/2/post/registeredDevices#responses-200-id) request. (required) - * @param registerSCARequest {@link RegisterSCARequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link RegisterSCAFinalResponse } - * @throws ApiException if fails to make API call - */ - public RegisterSCAFinalResponse completeRegistrationOfScaDevice(String id, RegisterSCARequest registerSCARequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); + String requestBody = registerSCARequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/registeredDevices/{id}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return RegisterSCAFinalResponse.fromJson(jsonResult); + } - String requestBody = registerSCARequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/registeredDevices/{id}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return RegisterSCAFinalResponse.fromJson(jsonResult); + /** + * Delete a registration of an SCA device + * + * @param id {@link String } The unique identifier of the SCA device. (required) + * @param paymentInstrumentId {@link String } The unique identifier of the payment instrument + * linked to the SCA device. (required) + * @throws ApiException if fails to make API call + */ + public void deleteRegistrationOfScaDevice(String id, String paymentInstrumentId) + throws ApiException, IOException { + deleteRegistrationOfScaDevice(id, paymentInstrumentId, null); + } + + /** + * Delete a registration of an SCA device + * + * @param id {@link String } The unique identifier of the SCA device. (required) + * @param paymentInstrumentId {@link String } Query: The unique identifier of the payment + * instrument linked to the SCA device. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void deleteRegistrationOfScaDevice( + String id, String paymentInstrumentId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); - /** - * Delete a registration of an SCA device - * - * @param id {@link String } The unique identifier of the SCA device. (required) - * @param paymentInstrumentId {@link String } The unique identifier of the payment instrument linked to the SCA device. (required) - * @throws ApiException if fails to make API call - */ - public void deleteRegistrationOfScaDevice(String id, String paymentInstrumentId) throws ApiException, IOException { - deleteRegistrationOfScaDevice(id, paymentInstrumentId, null); + // Add query params + Map queryParams = new HashMap<>(); + if (paymentInstrumentId != null) { + queryParams.put("paymentInstrumentId", paymentInstrumentId); } - /** - * Delete a registration of an SCA device - * - * @param id {@link String } The unique identifier of the SCA device. (required) - * @param paymentInstrumentId {@link String } Query: The unique identifier of the payment instrument linked to the SCA device. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void deleteRegistrationOfScaDevice(String id, String paymentInstrumentId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/registeredDevices/{id}", null); + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams, queryParams); + } - //Add query params - Map queryParams = new HashMap<>(); - if (paymentInstrumentId != null) { - queryParams.put("paymentInstrumentId", paymentInstrumentId); - } + /** + * Initiate an association between an SCA device and a resource + * + * @param deviceId {@link String } The unique identifier of the SCA device that you are + * associating with a resource. (required) + * @param associationInitiateRequest {@link AssociationInitiateRequest } (required) + * @return {@link AssociationInitiateResponse } + * @throws ApiException if fails to make API call + */ + public AssociationInitiateResponse initiateAssociationBetweenScaDeviceAndResource( + String deviceId, AssociationInitiateRequest associationInitiateRequest) + throws ApiException, IOException { + return initiateAssociationBetweenScaDeviceAndResource( + deviceId, associationInitiateRequest, null); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/registeredDevices/{id}", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams, queryParams); + /** + * Initiate an association between an SCA device and a resource + * + * @param deviceId {@link String } The unique identifier of the SCA device that you are + * associating with a resource. (required) + * @param associationInitiateRequest {@link AssociationInitiateRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link AssociationInitiateResponse } + * @throws ApiException if fails to make API call + */ + public AssociationInitiateResponse initiateAssociationBetweenScaDeviceAndResource( + String deviceId, + AssociationInitiateRequest associationInitiateRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (deviceId == null) { + throw new IllegalArgumentException("Please provide the deviceId path parameter"); } + pathParams.put("deviceId", deviceId); - /** - * Initiate an association between an SCA device and a resource - * - * @param deviceId {@link String } The unique identifier of the SCA device that you are associating with a resource. (required) - * @param associationInitiateRequest {@link AssociationInitiateRequest } (required) - * @return {@link AssociationInitiateResponse } - * @throws ApiException if fails to make API call - */ - public AssociationInitiateResponse initiateAssociationBetweenScaDeviceAndResource(String deviceId, AssociationInitiateRequest associationInitiateRequest) throws ApiException, IOException { - return initiateAssociationBetweenScaDeviceAndResource(deviceId, associationInitiateRequest, null); - } + String requestBody = associationInitiateRequest.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/registeredDevices/{deviceId}/associations", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return AssociationInitiateResponse.fromJson(jsonResult); + } - /** - * Initiate an association between an SCA device and a resource - * - * @param deviceId {@link String } The unique identifier of the SCA device that you are associating with a resource. (required) - * @param associationInitiateRequest {@link AssociationInitiateRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link AssociationInitiateResponse } - * @throws ApiException if fails to make API call - */ - public AssociationInitiateResponse initiateAssociationBetweenScaDeviceAndResource(String deviceId, AssociationInitiateRequest associationInitiateRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (deviceId == null) { - throw new IllegalArgumentException("Please provide the deviceId path parameter"); - } - pathParams.put("deviceId", deviceId); + /** + * Initiate the registration of an SCA device + * + * @param registerSCARequest {@link RegisterSCARequest } (required) + * @return {@link RegisterSCAResponse } + * @throws ApiException if fails to make API call + */ + public RegisterSCAResponse initiateRegistrationOfScaDevice(RegisterSCARequest registerSCARequest) + throws ApiException, IOException { + return initiateRegistrationOfScaDevice(registerSCARequest, null); + } - String requestBody = associationInitiateRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/registeredDevices/{deviceId}/associations", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return AssociationInitiateResponse.fromJson(jsonResult); - } + /** + * Initiate the registration of an SCA device + * + * @param registerSCARequest {@link RegisterSCARequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link RegisterSCAResponse } + * @throws ApiException if fails to make API call + */ + public RegisterSCAResponse initiateRegistrationOfScaDevice( + RegisterSCARequest registerSCARequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = registerSCARequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/registeredDevices", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return RegisterSCAResponse.fromJson(jsonResult); + } - /** - * Initiate the registration of an SCA device - * - * @param registerSCARequest {@link RegisterSCARequest } (required) - * @return {@link RegisterSCAResponse } - * @throws ApiException if fails to make API call - */ - public RegisterSCAResponse initiateRegistrationOfScaDevice(RegisterSCARequest registerSCARequest) throws ApiException, IOException { - return initiateRegistrationOfScaDevice(registerSCARequest, null); - } + /** + * Get a list of registered SCA devices + * + * @param paymentInstrumentId {@link String } The unique identifier of a payment instrument. It + * limits the returned list to SCA devices associated to this payment instrument. (required) + * @return {@link SearchRegisteredDevicesResponse } + * @throws ApiException if fails to make API call + */ + public SearchRegisteredDevicesResponse listRegisteredScaDevices(String paymentInstrumentId) + throws ApiException, IOException { + return listRegisteredScaDevices(paymentInstrumentId, null, null, null); + } - /** - * Initiate the registration of an SCA device - * - * @param registerSCARequest {@link RegisterSCARequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link RegisterSCAResponse } - * @throws ApiException if fails to make API call - */ - public RegisterSCAResponse initiateRegistrationOfScaDevice(RegisterSCARequest registerSCARequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = registerSCARequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/registeredDevices", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return RegisterSCAResponse.fromJson(jsonResult); + /** + * Get a list of registered SCA devices + * + * @param paymentInstrumentId {@link String } Query: The unique identifier of a payment + * instrument. It limits the returned list to SCA devices associated to this payment + * instrument. (required) + * @param pageNumber {@link Integer } Query: The index of the page to retrieve. The index of the + * first page is 0 (zero). Default: 0. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page. Default: 20. + * Maximum: 100. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link SearchRegisteredDevicesResponse } + * @throws ApiException if fails to make API call + */ + public SearchRegisteredDevicesResponse listRegisteredScaDevices( + String paymentInstrumentId, + Integer pageNumber, + Integer pageSize, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add query params + Map queryParams = new HashMap<>(); + if (paymentInstrumentId != null) { + queryParams.put("paymentInstrumentId", paymentInstrumentId); } - - /** - * Get a list of registered SCA devices - * - * @param paymentInstrumentId {@link String } The unique identifier of a payment instrument. It limits the returned list to SCA devices associated to this payment instrument. (required) - * @return {@link SearchRegisteredDevicesResponse } - * @throws ApiException if fails to make API call - */ - public SearchRegisteredDevicesResponse listRegisteredScaDevices(String paymentInstrumentId) throws ApiException, IOException { - return listRegisteredScaDevices(paymentInstrumentId, null, null, null); + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); } - - /** - * Get a list of registered SCA devices - * - * @param paymentInstrumentId {@link String } Query: The unique identifier of a payment instrument. It limits the returned list to SCA devices associated to this payment instrument. (required) - * @param pageNumber {@link Integer } Query: The index of the page to retrieve. The index of the first page is 0 (zero). Default: 0. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page. Default: 20. Maximum: 100. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link SearchRegisteredDevicesResponse } - * @throws ApiException if fails to make API call - */ - public SearchRegisteredDevicesResponse listRegisteredScaDevices(String paymentInstrumentId, Integer pageNumber, Integer pageSize, RequestOptions requestOptions) throws ApiException, IOException { - //Add query params - Map queryParams = new HashMap<>(); - if (paymentInstrumentId != null) { - queryParams.put("paymentInstrumentId", paymentInstrumentId); - } - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); - } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); - } - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/registeredDevices", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); - return SearchRegisteredDevicesResponse.fromJson(jsonResult); + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); } + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/registeredDevices", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); + return SearchRegisteredDevicesResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/balanceplatform/NetworkTokensApi.java b/src/main/java/com/adyen/service/balanceplatform/NetworkTokensApi.java index 7940478f2..208ab9982 100644 --- a/src/main/java/com/adyen/service/balanceplatform/NetworkTokensApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/NetworkTokensApi.java @@ -2,7 +2,7 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,105 +14,117 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.balanceplatform.GetNetworkTokenResponse; -import com.adyen.model.balanceplatform.RestServiceError; import com.adyen.model.balanceplatform.UpdateNetworkTokenRequest; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class NetworkTokensApi extends Service { - public static final String API_VERSION = "2"; - - protected String baseURL; + public static final String API_VERSION = "2"; - /** - * Network tokens constructor in {@link com.adyen.service.balanceplatform package}. - * @param client {@link Client } (required) - */ - public NetworkTokensApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); - } + protected String baseURL; - /** - * Network tokens constructor in {@link com.adyen.service.balanceplatform package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public NetworkTokensApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Network tokens constructor in {@link com.adyen.service.balanceplatform package}. + * + * @param client {@link Client } (required) + */ + public NetworkTokensApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); + } - /** - * Get a network token - * - * @param networkTokenId {@link String } The unique identifier of the network token. (required) - * @return {@link GetNetworkTokenResponse } - * @throws ApiException if fails to make API call - */ - public GetNetworkTokenResponse getNetworkToken(String networkTokenId) throws ApiException, IOException { - return getNetworkToken(networkTokenId, null); - } + /** + * Network tokens constructor in {@link com.adyen.service.balanceplatform package}. Please use + * this constructor only if you would like to pass along your own url for routing or testing + * purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public NetworkTokensApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Get a network token - * - * @param networkTokenId {@link String } The unique identifier of the network token. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link GetNetworkTokenResponse } - * @throws ApiException if fails to make API call - */ - public GetNetworkTokenResponse getNetworkToken(String networkTokenId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (networkTokenId == null) { - throw new IllegalArgumentException("Please provide the networkTokenId path parameter"); - } - pathParams.put("networkTokenId", networkTokenId); + /** + * Get a network token + * + * @param networkTokenId {@link String } The unique identifier of the network token. (required) + * @return {@link GetNetworkTokenResponse } + * @throws ApiException if fails to make API call + */ + public GetNetworkTokenResponse getNetworkToken(String networkTokenId) + throws ApiException, IOException { + return getNetworkToken(networkTokenId, null); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/networkTokens/{networkTokenId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return GetNetworkTokenResponse.fromJson(jsonResult); + /** + * Get a network token + * + * @param networkTokenId {@link String } The unique identifier of the network token. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link GetNetworkTokenResponse } + * @throws ApiException if fails to make API call + */ + public GetNetworkTokenResponse getNetworkToken( + String networkTokenId, RequestOptions requestOptions) throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (networkTokenId == null) { + throw new IllegalArgumentException("Please provide the networkTokenId path parameter"); } + pathParams.put("networkTokenId", networkTokenId); - /** - * Update a network token - * - * @param networkTokenId {@link String } The unique identifier of the network token. (required) - * @param updateNetworkTokenRequest {@link UpdateNetworkTokenRequest } (required) - * @throws ApiException if fails to make API call - */ - public void updateNetworkToken(String networkTokenId, UpdateNetworkTokenRequest updateNetworkTokenRequest) throws ApiException, IOException { - updateNetworkToken(networkTokenId, updateNetworkTokenRequest, null); - } + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/networkTokens/{networkTokenId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return GetNetworkTokenResponse.fromJson(jsonResult); + } - /** - * Update a network token - * - * @param networkTokenId {@link String } The unique identifier of the network token. (required) - * @param updateNetworkTokenRequest {@link UpdateNetworkTokenRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void updateNetworkToken(String networkTokenId, UpdateNetworkTokenRequest updateNetworkTokenRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (networkTokenId == null) { - throw new IllegalArgumentException("Please provide the networkTokenId path parameter"); - } - pathParams.put("networkTokenId", networkTokenId); + /** + * Update a network token + * + * @param networkTokenId {@link String } The unique identifier of the network token. (required) + * @param updateNetworkTokenRequest {@link UpdateNetworkTokenRequest } (required) + * @throws ApiException if fails to make API call + */ + public void updateNetworkToken( + String networkTokenId, UpdateNetworkTokenRequest updateNetworkTokenRequest) + throws ApiException, IOException { + updateNetworkToken(networkTokenId, updateNetworkTokenRequest, null); + } - String requestBody = updateNetworkTokenRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/networkTokens/{networkTokenId}", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + /** + * Update a network token + * + * @param networkTokenId {@link String } The unique identifier of the network token. (required) + * @param updateNetworkTokenRequest {@link UpdateNetworkTokenRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void updateNetworkToken( + String networkTokenId, + UpdateNetworkTokenRequest updateNetworkTokenRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (networkTokenId == null) { + throw new IllegalArgumentException("Please provide the networkTokenId path parameter"); } + pathParams.put("networkTokenId", networkTokenId); + + String requestBody = updateNetworkTokenRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/networkTokens/{networkTokenId}", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + } } diff --git a/src/main/java/com/adyen/service/balanceplatform/PaymentInstrumentGroupsApi.java b/src/main/java/com/adyen/service/balanceplatform/PaymentInstrumentGroupsApi.java index cb3df85b9..6fc87b937 100644 --- a/src/main/java/com/adyen/service/balanceplatform/PaymentInstrumentGroupsApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/PaymentInstrumentGroupsApi.java @@ -2,7 +2,7 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,133 +14,148 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.balanceplatform.PaymentInstrumentGroup; import com.adyen.model.balanceplatform.PaymentInstrumentGroupInfo; -import com.adyen.model.balanceplatform.RestServiceError; import com.adyen.model.balanceplatform.TransactionRulesResponse; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class PaymentInstrumentGroupsApi extends Service { - public static final String API_VERSION = "2"; - - protected String baseURL; - - /** - * Payment instrument groups constructor in {@link com.adyen.service.balanceplatform package}. - * @param client {@link Client } (required) - */ - public PaymentInstrumentGroupsApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); + public static final String API_VERSION = "2"; + + protected String baseURL; + + /** + * Payment instrument groups constructor in {@link com.adyen.service.balanceplatform package}. + * + * @param client {@link Client } (required) + */ + public PaymentInstrumentGroupsApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); + } + + /** + * Payment instrument groups constructor in {@link com.adyen.service.balanceplatform package}. + * Please use this constructor only if you would like to pass along your own url for routing or + * testing purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public PaymentInstrumentGroupsApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Create a payment instrument group + * + * @param paymentInstrumentGroupInfo {@link PaymentInstrumentGroupInfo } (required) + * @return {@link PaymentInstrumentGroup } + * @throws ApiException if fails to make API call + */ + public PaymentInstrumentGroup createPaymentInstrumentGroup( + PaymentInstrumentGroupInfo paymentInstrumentGroupInfo) throws ApiException, IOException { + return createPaymentInstrumentGroup(paymentInstrumentGroupInfo, null); + } + + /** + * Create a payment instrument group + * + * @param paymentInstrumentGroupInfo {@link PaymentInstrumentGroupInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PaymentInstrumentGroup } + * @throws ApiException if fails to make API call + */ + public PaymentInstrumentGroup createPaymentInstrumentGroup( + PaymentInstrumentGroupInfo paymentInstrumentGroupInfo, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = paymentInstrumentGroupInfo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/paymentInstrumentGroups", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return PaymentInstrumentGroup.fromJson(jsonResult); + } + + /** + * Get all transaction rules for a payment instrument group + * + * @param id {@link String } The unique identifier of the payment instrument group. (required) + * @return {@link TransactionRulesResponse } + * @throws ApiException if fails to make API call + */ + public TransactionRulesResponse getAllTransactionRulesForPaymentInstrumentGroup(String id) + throws ApiException, IOException { + return getAllTransactionRulesForPaymentInstrumentGroup(id, null); + } + + /** + * Get all transaction rules for a payment instrument group + * + * @param id {@link String } The unique identifier of the payment instrument group. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TransactionRulesResponse } + * @throws ApiException if fails to make API call + */ + public TransactionRulesResponse getAllTransactionRulesForPaymentInstrumentGroup( + String id, RequestOptions requestOptions) throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } - - /** - * Payment instrument groups constructor in {@link com.adyen.service.balanceplatform package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public PaymentInstrumentGroupsApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Create a payment instrument group - * - * @param paymentInstrumentGroupInfo {@link PaymentInstrumentGroupInfo } (required) - * @return {@link PaymentInstrumentGroup } - * @throws ApiException if fails to make API call - */ - public PaymentInstrumentGroup createPaymentInstrumentGroup(PaymentInstrumentGroupInfo paymentInstrumentGroupInfo) throws ApiException, IOException { - return createPaymentInstrumentGroup(paymentInstrumentGroupInfo, null); - } - - /** - * Create a payment instrument group - * - * @param paymentInstrumentGroupInfo {@link PaymentInstrumentGroupInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PaymentInstrumentGroup } - * @throws ApiException if fails to make API call - */ - public PaymentInstrumentGroup createPaymentInstrumentGroup(PaymentInstrumentGroupInfo paymentInstrumentGroupInfo, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = paymentInstrumentGroupInfo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/paymentInstrumentGroups", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return PaymentInstrumentGroup.fromJson(jsonResult); - } - - /** - * Get all transaction rules for a payment instrument group - * - * @param id {@link String } The unique identifier of the payment instrument group. (required) - * @return {@link TransactionRulesResponse } - * @throws ApiException if fails to make API call - */ - public TransactionRulesResponse getAllTransactionRulesForPaymentInstrumentGroup(String id) throws ApiException, IOException { - return getAllTransactionRulesForPaymentInstrumentGroup(id, null); - } - - /** - * Get all transaction rules for a payment instrument group - * - * @param id {@link String } The unique identifier of the payment instrument group. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TransactionRulesResponse } - * @throws ApiException if fails to make API call - */ - public TransactionRulesResponse getAllTransactionRulesForPaymentInstrumentGroup(String id, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/paymentInstrumentGroups/{id}/transactionRules", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TransactionRulesResponse.fromJson(jsonResult); - } - - /** - * Get a payment instrument group - * - * @param id {@link String } The unique identifier of the payment instrument group. (required) - * @return {@link PaymentInstrumentGroup } - * @throws ApiException if fails to make API call - */ - public PaymentInstrumentGroup getPaymentInstrumentGroup(String id) throws ApiException, IOException { - return getPaymentInstrumentGroup(id, null); - } - - /** - * Get a payment instrument group - * - * @param id {@link String } The unique identifier of the payment instrument group. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PaymentInstrumentGroup } - * @throws ApiException if fails to make API call - */ - public PaymentInstrumentGroup getPaymentInstrumentGroup(String id, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/paymentInstrumentGroups/{id}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return PaymentInstrumentGroup.fromJson(jsonResult); + pathParams.put("id", id); + + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/paymentInstrumentGroups/{id}/transactionRules", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TransactionRulesResponse.fromJson(jsonResult); + } + + /** + * Get a payment instrument group + * + * @param id {@link String } The unique identifier of the payment instrument group. (required) + * @return {@link PaymentInstrumentGroup } + * @throws ApiException if fails to make API call + */ + public PaymentInstrumentGroup getPaymentInstrumentGroup(String id) + throws ApiException, IOException { + return getPaymentInstrumentGroup(id, null); + } + + /** + * Get a payment instrument group + * + * @param id {@link String } The unique identifier of the payment instrument group. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PaymentInstrumentGroup } + * @throws ApiException if fails to make API call + */ + public PaymentInstrumentGroup getPaymentInstrumentGroup(String id, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/paymentInstrumentGroups/{id}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return PaymentInstrumentGroup.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/balanceplatform/PaymentInstrumentsApi.java b/src/main/java/com/adyen/service/balanceplatform/PaymentInstrumentsApi.java index 02defbd97..ef2e9446c 100644 --- a/src/main/java/com/adyen/service/balanceplatform/PaymentInstrumentsApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/PaymentInstrumentsApi.java @@ -2,7 +2,7 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,6 +14,7 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.balanceplatform.ListNetworkTokensResponse; import com.adyen.model.balanceplatform.NetworkTokenActivationDataRequest; import com.adyen.model.balanceplatform.NetworkTokenActivationDataResponse; @@ -23,327 +24,378 @@ import com.adyen.model.balanceplatform.PaymentInstrumentRevealRequest; import com.adyen.model.balanceplatform.PaymentInstrumentRevealResponse; import com.adyen.model.balanceplatform.PaymentInstrumentUpdateRequest; -import com.adyen.model.balanceplatform.RestServiceError; import com.adyen.model.balanceplatform.TransactionRulesResponse; import com.adyen.model.balanceplatform.UpdatePaymentInstrument; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class PaymentInstrumentsApi extends Service { - public static final String API_VERSION = "2"; - - protected String baseURL; - - /** - * Payment instruments constructor in {@link com.adyen.service.balanceplatform package}. - * @param client {@link Client } (required) - */ - public PaymentInstrumentsApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); - } - - /** - * Payment instruments constructor in {@link com.adyen.service.balanceplatform package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public PaymentInstrumentsApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Create network token provisioning data - * - * @param id {@link String } The unique identifier of the payment instrument. (required) - * @param networkTokenActivationDataRequest {@link NetworkTokenActivationDataRequest } (required) - * @return {@link NetworkTokenActivationDataResponse } - * @throws ApiException if fails to make API call - */ - public NetworkTokenActivationDataResponse createNetworkTokenProvisioningData(String id, NetworkTokenActivationDataRequest networkTokenActivationDataRequest) throws ApiException, IOException { - return createNetworkTokenProvisioningData(id, networkTokenActivationDataRequest, null); - } - - /** - * Create network token provisioning data - * - * @param id {@link String } The unique identifier of the payment instrument. (required) - * @param networkTokenActivationDataRequest {@link NetworkTokenActivationDataRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link NetworkTokenActivationDataResponse } - * @throws ApiException if fails to make API call - */ - public NetworkTokenActivationDataResponse createNetworkTokenProvisioningData(String id, NetworkTokenActivationDataRequest networkTokenActivationDataRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = networkTokenActivationDataRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/paymentInstruments/{id}/networkTokenActivationData", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return NetworkTokenActivationDataResponse.fromJson(jsonResult); - } - - /** - * Create a payment instrument - * - * @param paymentInstrumentInfo {@link PaymentInstrumentInfo } (required) - * @return {@link PaymentInstrument } - * @throws ApiException if fails to make API call - */ - public PaymentInstrument createPaymentInstrument(PaymentInstrumentInfo paymentInstrumentInfo) throws ApiException, IOException { - return createPaymentInstrument(paymentInstrumentInfo, null); - } - - /** - * Create a payment instrument - * - * @param paymentInstrumentInfo {@link PaymentInstrumentInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PaymentInstrument } - * @throws ApiException if fails to make API call - */ - public PaymentInstrument createPaymentInstrument(PaymentInstrumentInfo paymentInstrumentInfo, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = paymentInstrumentInfo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/paymentInstruments", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return PaymentInstrument.fromJson(jsonResult); - } - - /** - * Get all transaction rules for a payment instrument - * - * @param id {@link String } The unique identifier of the payment instrument. (required) - * @return {@link TransactionRulesResponse } - * @throws ApiException if fails to make API call - */ - public TransactionRulesResponse getAllTransactionRulesForPaymentInstrument(String id) throws ApiException, IOException { - return getAllTransactionRulesForPaymentInstrument(id, null); - } - - /** - * Get all transaction rules for a payment instrument - * - * @param id {@link String } The unique identifier of the payment instrument. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TransactionRulesResponse } - * @throws ApiException if fails to make API call - */ - public TransactionRulesResponse getAllTransactionRulesForPaymentInstrument(String id, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/paymentInstruments/{id}/transactionRules", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TransactionRulesResponse.fromJson(jsonResult); - } - - /** - * Get network token activation data - * - * @param id {@link String } The unique identifier of the payment instrument. (required) - * @return {@link NetworkTokenActivationDataResponse } - * @throws ApiException if fails to make API call - */ - public NetworkTokenActivationDataResponse getNetworkTokenActivationData(String id) throws ApiException, IOException { - return getNetworkTokenActivationData(id, null); - } - - /** - * Get network token activation data - * - * @param id {@link String } The unique identifier of the payment instrument. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link NetworkTokenActivationDataResponse } - * @throws ApiException if fails to make API call - */ - public NetworkTokenActivationDataResponse getNetworkTokenActivationData(String id, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/paymentInstruments/{id}/networkTokenActivationData", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return NetworkTokenActivationDataResponse.fromJson(jsonResult); + public static final String API_VERSION = "2"; + + protected String baseURL; + + /** + * Payment instruments constructor in {@link com.adyen.service.balanceplatform package}. + * + * @param client {@link Client } (required) + */ + public PaymentInstrumentsApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); + } + + /** + * Payment instruments constructor in {@link com.adyen.service.balanceplatform package}. Please + * use this constructor only if you would like to pass along your own url for routing or testing + * purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public PaymentInstrumentsApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Create network token provisioning data + * + * @param id {@link String } The unique identifier of the payment instrument. (required) + * @param networkTokenActivationDataRequest {@link NetworkTokenActivationDataRequest } (required) + * @return {@link NetworkTokenActivationDataResponse } + * @throws ApiException if fails to make API call + */ + public NetworkTokenActivationDataResponse createNetworkTokenProvisioningData( + String id, NetworkTokenActivationDataRequest networkTokenActivationDataRequest) + throws ApiException, IOException { + return createNetworkTokenProvisioningData(id, networkTokenActivationDataRequest, null); + } + + /** + * Create network token provisioning data + * + * @param id {@link String } The unique identifier of the payment instrument. (required) + * @param networkTokenActivationDataRequest {@link NetworkTokenActivationDataRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link NetworkTokenActivationDataResponse } + * @throws ApiException if fails to make API call + */ + public NetworkTokenActivationDataResponse createNetworkTokenProvisioningData( + String id, + NetworkTokenActivationDataRequest networkTokenActivationDataRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } - - /** - * Get the PAN of a payment instrument - * - * @param id {@link String } The unique identifier of the payment instrument. (required) - * @return {@link PaymentInstrumentRevealInfo } - * @throws ApiException if fails to make API call - */ - public PaymentInstrumentRevealInfo getPanOfPaymentInstrument(String id) throws ApiException, IOException { - return getPanOfPaymentInstrument(id, null); + pathParams.put("id", id); + + String requestBody = networkTokenActivationDataRequest.toJson(); + Resource resource = + new Resource( + this, this.baseURL + "/paymentInstruments/{id}/networkTokenActivationData", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return NetworkTokenActivationDataResponse.fromJson(jsonResult); + } + + /** + * Create a payment instrument + * + * @param paymentInstrumentInfo {@link PaymentInstrumentInfo } (required) + * @return {@link PaymentInstrument } + * @throws ApiException if fails to make API call + */ + public PaymentInstrument createPaymentInstrument(PaymentInstrumentInfo paymentInstrumentInfo) + throws ApiException, IOException { + return createPaymentInstrument(paymentInstrumentInfo, null); + } + + /** + * Create a payment instrument + * + * @param paymentInstrumentInfo {@link PaymentInstrumentInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PaymentInstrument } + * @throws ApiException if fails to make API call + */ + public PaymentInstrument createPaymentInstrument( + PaymentInstrumentInfo paymentInstrumentInfo, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = paymentInstrumentInfo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/paymentInstruments", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return PaymentInstrument.fromJson(jsonResult); + } + + /** + * Get all transaction rules for a payment instrument + * + * @param id {@link String } The unique identifier of the payment instrument. (required) + * @return {@link TransactionRulesResponse } + * @throws ApiException if fails to make API call + */ + public TransactionRulesResponse getAllTransactionRulesForPaymentInstrument(String id) + throws ApiException, IOException { + return getAllTransactionRulesForPaymentInstrument(id, null); + } + + /** + * Get all transaction rules for a payment instrument + * + * @param id {@link String } The unique identifier of the payment instrument. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TransactionRulesResponse } + * @throws ApiException if fails to make API call + */ + public TransactionRulesResponse getAllTransactionRulesForPaymentInstrument( + String id, RequestOptions requestOptions) throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } - - /** - * Get the PAN of a payment instrument - * - * @param id {@link String } The unique identifier of the payment instrument. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PaymentInstrumentRevealInfo } - * @throws ApiException if fails to make API call - */ - public PaymentInstrumentRevealInfo getPanOfPaymentInstrument(String id, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/paymentInstruments/{id}/reveal", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return PaymentInstrumentRevealInfo.fromJson(jsonResult); + pathParams.put("id", id); + + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/paymentInstruments/{id}/transactionRules", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TransactionRulesResponse.fromJson(jsonResult); + } + + /** + * Get network token activation data + * + * @param id {@link String } The unique identifier of the payment instrument. (required) + * @return {@link NetworkTokenActivationDataResponse } + * @throws ApiException if fails to make API call + */ + public NetworkTokenActivationDataResponse getNetworkTokenActivationData(String id) + throws ApiException, IOException { + return getNetworkTokenActivationData(id, null); + } + + /** + * Get network token activation data + * + * @param id {@link String } The unique identifier of the payment instrument. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link NetworkTokenActivationDataResponse } + * @throws ApiException if fails to make API call + */ + public NetworkTokenActivationDataResponse getNetworkTokenActivationData( + String id, RequestOptions requestOptions) throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } - - /** - * Get a payment instrument - * - * @param id {@link String } The unique identifier of the payment instrument. (required) - * @return {@link PaymentInstrument } - * @throws ApiException if fails to make API call - */ - public PaymentInstrument getPaymentInstrument(String id) throws ApiException, IOException { - return getPaymentInstrument(id, null); + pathParams.put("id", id); + + String requestBody = null; + Resource resource = + new Resource( + this, this.baseURL + "/paymentInstruments/{id}/networkTokenActivationData", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return NetworkTokenActivationDataResponse.fromJson(jsonResult); + } + + /** + * Get the PAN of a payment instrument + * + * @param id {@link String } The unique identifier of the payment instrument. (required) + * @return {@link PaymentInstrumentRevealInfo } + * @throws ApiException if fails to make API call + */ + public PaymentInstrumentRevealInfo getPanOfPaymentInstrument(String id) + throws ApiException, IOException { + return getPanOfPaymentInstrument(id, null); + } + + /** + * Get the PAN of a payment instrument + * + * @param id {@link String } The unique identifier of the payment instrument. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PaymentInstrumentRevealInfo } + * @throws ApiException if fails to make API call + */ + public PaymentInstrumentRevealInfo getPanOfPaymentInstrument( + String id, RequestOptions requestOptions) throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } - - /** - * Get a payment instrument - * - * @param id {@link String } The unique identifier of the payment instrument. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PaymentInstrument } - * @throws ApiException if fails to make API call - */ - public PaymentInstrument getPaymentInstrument(String id, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/paymentInstruments/{id}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return PaymentInstrument.fromJson(jsonResult); + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/paymentInstruments/{id}/reveal", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return PaymentInstrumentRevealInfo.fromJson(jsonResult); + } + + /** + * Get a payment instrument + * + * @param id {@link String } The unique identifier of the payment instrument. (required) + * @return {@link PaymentInstrument } + * @throws ApiException if fails to make API call + */ + public PaymentInstrument getPaymentInstrument(String id) throws ApiException, IOException { + return getPaymentInstrument(id, null); + } + + /** + * Get a payment instrument + * + * @param id {@link String } The unique identifier of the payment instrument. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PaymentInstrument } + * @throws ApiException if fails to make API call + */ + public PaymentInstrument getPaymentInstrument(String id, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } - - /** - * List network tokens - * - * @param id {@link String } The unique identifier of the payment instrument. (required) - * @return {@link ListNetworkTokensResponse } - * @throws ApiException if fails to make API call - */ - public ListNetworkTokensResponse listNetworkTokens(String id) throws ApiException, IOException { - return listNetworkTokens(id, null); + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/paymentInstruments/{id}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return PaymentInstrument.fromJson(jsonResult); + } + + /** + * List network tokens + * + * @param id {@link String } The unique identifier of the payment instrument. (required) + * @return {@link ListNetworkTokensResponse } + * @throws ApiException if fails to make API call + */ + public ListNetworkTokensResponse listNetworkTokens(String id) throws ApiException, IOException { + return listNetworkTokens(id, null); + } + + /** + * List network tokens + * + * @param id {@link String } The unique identifier of the payment instrument. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ListNetworkTokensResponse } + * @throws ApiException if fails to make API call + */ + public ListNetworkTokensResponse listNetworkTokens(String id, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } - - /** - * List network tokens - * - * @param id {@link String } The unique identifier of the payment instrument. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ListNetworkTokensResponse } - * @throws ApiException if fails to make API call - */ - public ListNetworkTokensResponse listNetworkTokens(String id, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/paymentInstruments/{id}/networkTokens", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return ListNetworkTokensResponse.fromJson(jsonResult); - } - - /** - * Reveal the data of a payment instrument - * - * @param paymentInstrumentRevealRequest {@link PaymentInstrumentRevealRequest } (required) - * @return {@link PaymentInstrumentRevealResponse } - * @throws ApiException if fails to make API call - */ - public PaymentInstrumentRevealResponse revealDataOfPaymentInstrument(PaymentInstrumentRevealRequest paymentInstrumentRevealRequest) throws ApiException, IOException { - return revealDataOfPaymentInstrument(paymentInstrumentRevealRequest, null); - } - - /** - * Reveal the data of a payment instrument - * - * @param paymentInstrumentRevealRequest {@link PaymentInstrumentRevealRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PaymentInstrumentRevealResponse } - * @throws ApiException if fails to make API call - */ - public PaymentInstrumentRevealResponse revealDataOfPaymentInstrument(PaymentInstrumentRevealRequest paymentInstrumentRevealRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = paymentInstrumentRevealRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/paymentInstruments/reveal", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return PaymentInstrumentRevealResponse.fromJson(jsonResult); - } - - /** - * Update a payment instrument - * - * @param id {@link String } The unique identifier of the payment instrument. (required) - * @param paymentInstrumentUpdateRequest {@link PaymentInstrumentUpdateRequest } (required) - * @return {@link UpdatePaymentInstrument } - * @throws ApiException if fails to make API call - */ - public UpdatePaymentInstrument updatePaymentInstrument(String id, PaymentInstrumentUpdateRequest paymentInstrumentUpdateRequest) throws ApiException, IOException { - return updatePaymentInstrument(id, paymentInstrumentUpdateRequest, null); - } - - /** - * Update a payment instrument - * - * @param id {@link String } The unique identifier of the payment instrument. (required) - * @param paymentInstrumentUpdateRequest {@link PaymentInstrumentUpdateRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link UpdatePaymentInstrument } - * @throws ApiException if fails to make API call - */ - public UpdatePaymentInstrument updatePaymentInstrument(String id, PaymentInstrumentUpdateRequest paymentInstrumentUpdateRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = paymentInstrumentUpdateRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/paymentInstruments/{id}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return UpdatePaymentInstrument.fromJson(jsonResult); + pathParams.put("id", id); + + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/paymentInstruments/{id}/networkTokens", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return ListNetworkTokensResponse.fromJson(jsonResult); + } + + /** + * Reveal the data of a payment instrument + * + * @param paymentInstrumentRevealRequest {@link PaymentInstrumentRevealRequest } (required) + * @return {@link PaymentInstrumentRevealResponse } + * @throws ApiException if fails to make API call + */ + public PaymentInstrumentRevealResponse revealDataOfPaymentInstrument( + PaymentInstrumentRevealRequest paymentInstrumentRevealRequest) + throws ApiException, IOException { + return revealDataOfPaymentInstrument(paymentInstrumentRevealRequest, null); + } + + /** + * Reveal the data of a payment instrument + * + * @param paymentInstrumentRevealRequest {@link PaymentInstrumentRevealRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PaymentInstrumentRevealResponse } + * @throws ApiException if fails to make API call + */ + public PaymentInstrumentRevealResponse revealDataOfPaymentInstrument( + PaymentInstrumentRevealRequest paymentInstrumentRevealRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = paymentInstrumentRevealRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/paymentInstruments/reveal", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return PaymentInstrumentRevealResponse.fromJson(jsonResult); + } + + /** + * Update a payment instrument + * + * @param id {@link String } The unique identifier of the payment instrument. (required) + * @param paymentInstrumentUpdateRequest {@link PaymentInstrumentUpdateRequest } (required) + * @return {@link UpdatePaymentInstrument } + * @throws ApiException if fails to make API call + */ + public UpdatePaymentInstrument updatePaymentInstrument( + String id, PaymentInstrumentUpdateRequest paymentInstrumentUpdateRequest) + throws ApiException, IOException { + return updatePaymentInstrument(id, paymentInstrumentUpdateRequest, null); + } + + /** + * Update a payment instrument + * + * @param id {@link String } The unique identifier of the payment instrument. (required) + * @param paymentInstrumentUpdateRequest {@link PaymentInstrumentUpdateRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link UpdatePaymentInstrument } + * @throws ApiException if fails to make API call + */ + public UpdatePaymentInstrument updatePaymentInstrument( + String id, + PaymentInstrumentUpdateRequest paymentInstrumentUpdateRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); + + String requestBody = paymentInstrumentUpdateRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/paymentInstruments/{id}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return UpdatePaymentInstrument.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/balanceplatform/PlatformApi.java b/src/main/java/com/adyen/service/balanceplatform/PlatformApi.java index c019fedf6..26ecfe117 100644 --- a/src/main/java/com/adyen/service/balanceplatform/PlatformApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/PlatformApi.java @@ -2,7 +2,7 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,151 +14,168 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.balanceplatform.BalancePlatform; import com.adyen.model.balanceplatform.PaginatedAccountHoldersResponse; -import com.adyen.model.balanceplatform.RestServiceError; import com.adyen.model.balanceplatform.TransactionRulesResponse; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class PlatformApi extends Service { - public static final String API_VERSION = "2"; - - protected String baseURL; - - /** - * Platform constructor in {@link com.adyen.service.balanceplatform package}. - * @param client {@link Client } (required) - */ - public PlatformApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); - } - - /** - * Platform constructor in {@link com.adyen.service.balanceplatform package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public PlatformApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Get all account holders under a balance platform - * - * @param id {@link String } The unique identifier of the balance platform. (required) - * @return {@link PaginatedAccountHoldersResponse } - * @throws ApiException if fails to make API call - */ - public PaginatedAccountHoldersResponse getAllAccountHoldersUnderBalancePlatform(String id) throws ApiException, IOException { - return getAllAccountHoldersUnderBalancePlatform(id, null, null, null); + public static final String API_VERSION = "2"; + + protected String baseURL; + + /** + * Platform constructor in {@link com.adyen.service.balanceplatform package}. + * + * @param client {@link Client } (required) + */ + public PlatformApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); + } + + /** + * Platform constructor in {@link com.adyen.service.balanceplatform package}. Please use this + * constructor only if you would like to pass along your own url for routing or testing purposes. + * The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public PlatformApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Get all account holders under a balance platform + * + * @param id {@link String } The unique identifier of the balance platform. (required) + * @return {@link PaginatedAccountHoldersResponse } + * @throws ApiException if fails to make API call + */ + public PaginatedAccountHoldersResponse getAllAccountHoldersUnderBalancePlatform(String id) + throws ApiException, IOException { + return getAllAccountHoldersUnderBalancePlatform(id, null, null, null); + } + + /** + * Get all account holders under a balance platform + * + * @param id {@link String } The unique identifier of the balance platform. (required) + * @param offset {@link Integer } Query: The number of items that you want to skip. (optional) + * @param limit {@link Integer } Query: The number of items returned per page, maximum 100 items. + * By default, the response returns 10 items per page. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PaginatedAccountHoldersResponse } + * @throws ApiException if fails to make API call + */ + public PaginatedAccountHoldersResponse getAllAccountHoldersUnderBalancePlatform( + String id, Integer offset, Integer limit, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); - /** - * Get all account holders under a balance platform - * - * @param id {@link String } The unique identifier of the balance platform. (required) - * @param offset {@link Integer } Query: The number of items that you want to skip. (optional) - * @param limit {@link Integer } Query: The number of items returned per page, maximum 100 items. By default, the response returns 10 items per page. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PaginatedAccountHoldersResponse } - * @throws ApiException if fails to make API call - */ - public PaginatedAccountHoldersResponse getAllAccountHoldersUnderBalancePlatform(String id, Integer offset, Integer limit, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - //Add query params - Map queryParams = new HashMap<>(); - if (offset != null) { - queryParams.put("offset", offset.toString()); - } - if (limit != null) { - queryParams.put("limit", limit.toString()); - } - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/balancePlatforms/{id}/accountHolders", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return PaginatedAccountHoldersResponse.fromJson(jsonResult); + // Add query params + Map queryParams = new HashMap<>(); + if (offset != null) { + queryParams.put("offset", offset.toString()); } - - /** - * Get all transaction rules for a balance platform - * - * @param id {@link String } The unique identifier of the balance platform. (required) - * @return {@link TransactionRulesResponse } - * @throws ApiException if fails to make API call - */ - public TransactionRulesResponse getAllTransactionRulesForBalancePlatform(String id) throws ApiException, IOException { - return getAllTransactionRulesForBalancePlatform(id, null); + if (limit != null) { + queryParams.put("limit", limit.toString()); } - /** - * Get all transaction rules for a balance platform - * - * @param id {@link String } The unique identifier of the balance platform. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TransactionRulesResponse } - * @throws ApiException if fails to make API call - */ - public TransactionRulesResponse getAllTransactionRulesForBalancePlatform(String id, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/balancePlatforms/{id}/transactionRules", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TransactionRulesResponse.fromJson(jsonResult); + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/balancePlatforms/{id}/accountHolders", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return PaginatedAccountHoldersResponse.fromJson(jsonResult); + } + + /** + * Get all transaction rules for a balance platform + * + * @param id {@link String } The unique identifier of the balance platform. (required) + * @return {@link TransactionRulesResponse } + * @throws ApiException if fails to make API call + */ + public TransactionRulesResponse getAllTransactionRulesForBalancePlatform(String id) + throws ApiException, IOException { + return getAllTransactionRulesForBalancePlatform(id, null); + } + + /** + * Get all transaction rules for a balance platform + * + * @param id {@link String } The unique identifier of the balance platform. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TransactionRulesResponse } + * @throws ApiException if fails to make API call + */ + public TransactionRulesResponse getAllTransactionRulesForBalancePlatform( + String id, RequestOptions requestOptions) throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } - - /** - * Get a balance platform - * - * @param id {@link String } The unique identifier of the balance platform. (required) - * @return {@link BalancePlatform } - * @throws ApiException if fails to make API call - */ - public BalancePlatform getBalancePlatform(String id) throws ApiException, IOException { - return getBalancePlatform(id, null); - } - - /** - * Get a balance platform - * - * @param id {@link String } The unique identifier of the balance platform. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link BalancePlatform } - * @throws ApiException if fails to make API call - */ - public BalancePlatform getBalancePlatform(String id, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/balancePlatforms/{id}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return BalancePlatform.fromJson(jsonResult); + pathParams.put("id", id); + + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/balancePlatforms/{id}/transactionRules", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TransactionRulesResponse.fromJson(jsonResult); + } + + /** + * Get a balance platform + * + * @param id {@link String } The unique identifier of the balance platform. (required) + * @return {@link BalancePlatform } + * @throws ApiException if fails to make API call + */ + public BalancePlatform getBalancePlatform(String id) throws ApiException, IOException { + return getBalancePlatform(id, null); + } + + /** + * Get a balance platform + * + * @param id {@link String } The unique identifier of the balance platform. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link BalancePlatform } + * @throws ApiException if fails to make API call + */ + public BalancePlatform getBalancePlatform(String id, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/balancePlatforms/{id}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return BalancePlatform.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/balanceplatform/TransactionRulesApi.java b/src/main/java/com/adyen/service/balanceplatform/TransactionRulesApi.java index afacefd29..c1386eaba 100644 --- a/src/main/java/com/adyen/service/balanceplatform/TransactionRulesApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/TransactionRulesApi.java @@ -2,7 +2,7 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,168 +14,199 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.balanceplatform.RestServiceError; +import com.adyen.model.RequestOptions; import com.adyen.model.balanceplatform.TransactionRule; import com.adyen.model.balanceplatform.TransactionRuleInfo; import com.adyen.model.balanceplatform.TransactionRuleResponse; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class TransactionRulesApi extends Service { - public static final String API_VERSION = "2"; - - protected String baseURL; - - /** - * Transaction rules constructor in {@link com.adyen.service.balanceplatform package}. - * @param client {@link Client } (required) - */ - public TransactionRulesApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); - } - - /** - * Transaction rules constructor in {@link com.adyen.service.balanceplatform package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public TransactionRulesApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Create a transaction rule - * - * @param transactionRuleInfo {@link TransactionRuleInfo } (required) - * @return {@link TransactionRule } - * @throws ApiException if fails to make API call - */ - public TransactionRule createTransactionRule(TransactionRuleInfo transactionRuleInfo) throws ApiException, IOException { - return createTransactionRule(transactionRuleInfo, null); - } - - /** - * Create a transaction rule - * - * @param transactionRuleInfo {@link TransactionRuleInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TransactionRule } - * @throws ApiException if fails to make API call - */ - public TransactionRule createTransactionRule(TransactionRuleInfo transactionRuleInfo, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = transactionRuleInfo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/transactionRules", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return TransactionRule.fromJson(jsonResult); - } - - /** - * Delete a transaction rule - * - * @param transactionRuleId {@link String } The unique identifier of the transaction rule. (required) - * @return {@link TransactionRule } - * @throws ApiException if fails to make API call - */ - public TransactionRule deleteTransactionRule(String transactionRuleId) throws ApiException, IOException { - return deleteTransactionRule(transactionRuleId, null); + public static final String API_VERSION = "2"; + + protected String baseURL; + + /** + * Transaction rules constructor in {@link com.adyen.service.balanceplatform package}. + * + * @param client {@link Client } (required) + */ + public TransactionRulesApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); + } + + /** + * Transaction rules constructor in {@link com.adyen.service.balanceplatform package}. Please use + * this constructor only if you would like to pass along your own url for routing or testing + * purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public TransactionRulesApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Create a transaction rule + * + * @param transactionRuleInfo {@link TransactionRuleInfo } (required) + * @return {@link TransactionRule } + * @throws ApiException if fails to make API call + */ + public TransactionRule createTransactionRule(TransactionRuleInfo transactionRuleInfo) + throws ApiException, IOException { + return createTransactionRule(transactionRuleInfo, null); + } + + /** + * Create a transaction rule + * + * @param transactionRuleInfo {@link TransactionRuleInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TransactionRule } + * @throws ApiException if fails to make API call + */ + public TransactionRule createTransactionRule( + TransactionRuleInfo transactionRuleInfo, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = transactionRuleInfo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/transactionRules", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return TransactionRule.fromJson(jsonResult); + } + + /** + * Delete a transaction rule + * + * @param transactionRuleId {@link String } The unique identifier of the transaction rule. + * (required) + * @return {@link TransactionRule } + * @throws ApiException if fails to make API call + */ + public TransactionRule deleteTransactionRule(String transactionRuleId) + throws ApiException, IOException { + return deleteTransactionRule(transactionRuleId, null); + } + + /** + * Delete a transaction rule + * + * @param transactionRuleId {@link String } The unique identifier of the transaction rule. + * (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TransactionRule } + * @throws ApiException if fails to make API call + */ + public TransactionRule deleteTransactionRule( + String transactionRuleId, RequestOptions requestOptions) throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (transactionRuleId == null) { + throw new IllegalArgumentException("Please provide the transactionRuleId path parameter"); } - - /** - * Delete a transaction rule - * - * @param transactionRuleId {@link String } The unique identifier of the transaction rule. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TransactionRule } - * @throws ApiException if fails to make API call - */ - public TransactionRule deleteTransactionRule(String transactionRuleId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (transactionRuleId == null) { - throw new IllegalArgumentException("Please provide the transactionRuleId path parameter"); - } - pathParams.put("transactionRuleId", transactionRuleId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/transactionRules/{transactionRuleId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); - return TransactionRule.fromJson(jsonResult); - } - - /** - * Get a transaction rule - * - * @param transactionRuleId {@link String } The unique identifier of the transaction rule. (required) - * @return {@link TransactionRuleResponse } - * @throws ApiException if fails to make API call - */ - public TransactionRuleResponse getTransactionRule(String transactionRuleId) throws ApiException, IOException { - return getTransactionRule(transactionRuleId, null); + pathParams.put("transactionRuleId", transactionRuleId); + + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/transactionRules/{transactionRuleId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); + return TransactionRule.fromJson(jsonResult); + } + + /** + * Get a transaction rule + * + * @param transactionRuleId {@link String } The unique identifier of the transaction rule. + * (required) + * @return {@link TransactionRuleResponse } + * @throws ApiException if fails to make API call + */ + public TransactionRuleResponse getTransactionRule(String transactionRuleId) + throws ApiException, IOException { + return getTransactionRule(transactionRuleId, null); + } + + /** + * Get a transaction rule + * + * @param transactionRuleId {@link String } The unique identifier of the transaction rule. + * (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TransactionRuleResponse } + * @throws ApiException if fails to make API call + */ + public TransactionRuleResponse getTransactionRule( + String transactionRuleId, RequestOptions requestOptions) throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (transactionRuleId == null) { + throw new IllegalArgumentException("Please provide the transactionRuleId path parameter"); } - - /** - * Get a transaction rule - * - * @param transactionRuleId {@link String } The unique identifier of the transaction rule. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TransactionRuleResponse } - * @throws ApiException if fails to make API call - */ - public TransactionRuleResponse getTransactionRule(String transactionRuleId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (transactionRuleId == null) { - throw new IllegalArgumentException("Please provide the transactionRuleId path parameter"); - } - pathParams.put("transactionRuleId", transactionRuleId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/transactionRules/{transactionRuleId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TransactionRuleResponse.fromJson(jsonResult); - } - - /** - * Update a transaction rule - * - * @param transactionRuleId {@link String } The unique identifier of the transaction rule. (required) - * @param transactionRuleInfo {@link TransactionRuleInfo } (required) - * @return {@link TransactionRule } - * @throws ApiException if fails to make API call - */ - public TransactionRule updateTransactionRule(String transactionRuleId, TransactionRuleInfo transactionRuleInfo) throws ApiException, IOException { - return updateTransactionRule(transactionRuleId, transactionRuleInfo, null); - } - - /** - * Update a transaction rule - * - * @param transactionRuleId {@link String } The unique identifier of the transaction rule. (required) - * @param transactionRuleInfo {@link TransactionRuleInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TransactionRule } - * @throws ApiException if fails to make API call - */ - public TransactionRule updateTransactionRule(String transactionRuleId, TransactionRuleInfo transactionRuleInfo, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (transactionRuleId == null) { - throw new IllegalArgumentException("Please provide the transactionRuleId path parameter"); - } - pathParams.put("transactionRuleId", transactionRuleId); - - String requestBody = transactionRuleInfo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/transactionRules/{transactionRuleId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return TransactionRule.fromJson(jsonResult); + pathParams.put("transactionRuleId", transactionRuleId); + + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/transactionRules/{transactionRuleId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TransactionRuleResponse.fromJson(jsonResult); + } + + /** + * Update a transaction rule + * + * @param transactionRuleId {@link String } The unique identifier of the transaction rule. + * (required) + * @param transactionRuleInfo {@link TransactionRuleInfo } (required) + * @return {@link TransactionRule } + * @throws ApiException if fails to make API call + */ + public TransactionRule updateTransactionRule( + String transactionRuleId, TransactionRuleInfo transactionRuleInfo) + throws ApiException, IOException { + return updateTransactionRule(transactionRuleId, transactionRuleInfo, null); + } + + /** + * Update a transaction rule + * + * @param transactionRuleId {@link String } The unique identifier of the transaction rule. + * (required) + * @param transactionRuleInfo {@link TransactionRuleInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TransactionRule } + * @throws ApiException if fails to make API call + */ + public TransactionRule updateTransactionRule( + String transactionRuleId, + TransactionRuleInfo transactionRuleInfo, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (transactionRuleId == null) { + throw new IllegalArgumentException("Please provide the transactionRuleId path parameter"); } + pathParams.put("transactionRuleId", transactionRuleId); + + String requestBody = transactionRuleInfo.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/transactionRules/{transactionRuleId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return TransactionRule.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/balanceplatform/TransferRoutesApi.java b/src/main/java/com/adyen/service/balanceplatform/TransferRoutesApi.java index db89c66b5..5de974102 100644 --- a/src/main/java/com/adyen/service/balanceplatform/TransferRoutesApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/TransferRoutesApi.java @@ -2,7 +2,7 @@ * Configuration API * * The version of the OpenAPI document: 2 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,66 +14,70 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.balanceplatform.RestServiceError; +import com.adyen.model.RequestOptions; import com.adyen.model.balanceplatform.TransferRouteRequest; import com.adyen.model.balanceplatform.TransferRouteResponse; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; -import java.util.HashMap; -import java.util.Map; public class TransferRoutesApi extends Service { - public static final String API_VERSION = "2"; + public static final String API_VERSION = "2"; - protected String baseURL; + protected String baseURL; - /** - * Transfer routes constructor in {@link com.adyen.service.balanceplatform package}. - * @param client {@link Client } (required) - */ - public TransferRoutesApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); - } + /** + * Transfer routes constructor in {@link com.adyen.service.balanceplatform package}. + * + * @param client {@link Client } (required) + */ + public TransferRoutesApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/bcl/v2"); + } - /** - * Transfer routes constructor in {@link com.adyen.service.balanceplatform package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public TransferRoutesApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Transfer routes constructor in {@link com.adyen.service.balanceplatform package}. Please use + * this constructor only if you would like to pass along your own url for routing or testing + * purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public TransferRoutesApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Calculate transfer routes - * - * @param transferRouteRequest {@link TransferRouteRequest } (required) - * @return {@link TransferRouteResponse } - * @throws ApiException if fails to make API call - */ - public TransferRouteResponse calculateTransferRoutes(TransferRouteRequest transferRouteRequest) throws ApiException, IOException { - return calculateTransferRoutes(transferRouteRequest, null); - } + /** + * Calculate transfer routes + * + * @param transferRouteRequest {@link TransferRouteRequest } (required) + * @return {@link TransferRouteResponse } + * @throws ApiException if fails to make API call + */ + public TransferRouteResponse calculateTransferRoutes(TransferRouteRequest transferRouteRequest) + throws ApiException, IOException { + return calculateTransferRoutes(transferRouteRequest, null); + } - /** - * Calculate transfer routes - * - * @param transferRouteRequest {@link TransferRouteRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TransferRouteResponse } - * @throws ApiException if fails to make API call - */ - public TransferRouteResponse calculateTransferRoutes(TransferRouteRequest transferRouteRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = transferRouteRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/transferRoutes/calculate", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return TransferRouteResponse.fromJson(jsonResult); - } + /** + * Calculate transfer routes + * + * @param transferRouteRequest {@link TransferRouteRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TransferRouteResponse } + * @throws ApiException if fails to make API call + */ + public TransferRouteResponse calculateTransferRoutes( + TransferRouteRequest transferRouteRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = transferRouteRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/transferRoutes/calculate", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return TransferRouteResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/binlookup/BinLookupApi.java b/src/main/java/com/adyen/service/binlookup/BinLookupApi.java index 3e47f53ef..91c7a1cb3 100644 --- a/src/main/java/com/adyen/service/binlookup/BinLookupApi.java +++ b/src/main/java/com/adyen/service/binlookup/BinLookupApi.java @@ -2,7 +2,7 @@ * Adyen BinLookup API * * The version of the OpenAPI document: 54 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,94 +14,103 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.binlookup.CostEstimateRequest; import com.adyen.model.binlookup.CostEstimateResponse; -import com.adyen.model.binlookup.ServiceError; import com.adyen.model.binlookup.ThreeDSAvailabilityRequest; import com.adyen.model.binlookup.ThreeDSAvailabilityResponse; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; -import java.util.HashMap; -import java.util.Map; public class BinLookupApi extends Service { - public static final String API_VERSION = "54"; + public static final String API_VERSION = "54"; - protected String baseURL; + protected String baseURL; - /** - * BinLookup constructor in {@link com.adyen.service.binlookup package}. - * @param client {@link Client } (required) - */ - public BinLookupApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/BinLookup/v54"); - } + /** + * BinLookup constructor in {@link com.adyen.service.binlookup package}. + * + * @param client {@link Client } (required) + */ + public BinLookupApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/BinLookup/v54"); + } - /** - * BinLookup constructor in {@link com.adyen.service.binlookup package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public BinLookupApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * BinLookup constructor in {@link com.adyen.service.binlookup package}. Please use this + * constructor only if you would like to pass along your own url for routing or testing purposes. + * The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public BinLookupApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Check if 3D Secure is available - * - * @param threeDSAvailabilityRequest {@link ThreeDSAvailabilityRequest } (required) - * @return {@link ThreeDSAvailabilityResponse } - * @throws ApiException if fails to make API call - */ - public ThreeDSAvailabilityResponse get3dsAvailability(ThreeDSAvailabilityRequest threeDSAvailabilityRequest) throws ApiException, IOException { - return get3dsAvailability(threeDSAvailabilityRequest, null); - } + /** + * Check if 3D Secure is available + * + * @param threeDSAvailabilityRequest {@link ThreeDSAvailabilityRequest } (required) + * @return {@link ThreeDSAvailabilityResponse } + * @throws ApiException if fails to make API call + */ + public ThreeDSAvailabilityResponse get3dsAvailability( + ThreeDSAvailabilityRequest threeDSAvailabilityRequest) throws ApiException, IOException { + return get3dsAvailability(threeDSAvailabilityRequest, null); + } - /** - * Check if 3D Secure is available - * - * @param threeDSAvailabilityRequest {@link ThreeDSAvailabilityRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ThreeDSAvailabilityResponse } - * @throws ApiException if fails to make API call - */ - public ThreeDSAvailabilityResponse get3dsAvailability(ThreeDSAvailabilityRequest threeDSAvailabilityRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = threeDSAvailabilityRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/get3dsAvailability", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return ThreeDSAvailabilityResponse.fromJson(jsonResult); - } + /** + * Check if 3D Secure is available + * + * @param threeDSAvailabilityRequest {@link ThreeDSAvailabilityRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ThreeDSAvailabilityResponse } + * @throws ApiException if fails to make API call + */ + public ThreeDSAvailabilityResponse get3dsAvailability( + ThreeDSAvailabilityRequest threeDSAvailabilityRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = threeDSAvailabilityRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/get3dsAvailability", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return ThreeDSAvailabilityResponse.fromJson(jsonResult); + } - /** - * Get a fees cost estimate - * - * @param costEstimateRequest {@link CostEstimateRequest } (required) - * @return {@link CostEstimateResponse } - * @throws ApiException if fails to make API call - */ - public CostEstimateResponse getCostEstimate(CostEstimateRequest costEstimateRequest) throws ApiException, IOException { - return getCostEstimate(costEstimateRequest, null); - } + /** + * Get a fees cost estimate + * + * @param costEstimateRequest {@link CostEstimateRequest } (required) + * @return {@link CostEstimateResponse } + * @throws ApiException if fails to make API call + */ + public CostEstimateResponse getCostEstimate(CostEstimateRequest costEstimateRequest) + throws ApiException, IOException { + return getCostEstimate(costEstimateRequest, null); + } - /** - * Get a fees cost estimate - * - * @param costEstimateRequest {@link CostEstimateRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link CostEstimateResponse } - * @throws ApiException if fails to make API call - */ - public CostEstimateResponse getCostEstimate(CostEstimateRequest costEstimateRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = costEstimateRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/getCostEstimate", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return CostEstimateResponse.fromJson(jsonResult); - } + /** + * Get a fees cost estimate + * + * @param costEstimateRequest {@link CostEstimateRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link CostEstimateResponse } + * @throws ApiException if fails to make API call + */ + public CostEstimateResponse getCostEstimate( + CostEstimateRequest costEstimateRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = costEstimateRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/getCostEstimate", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return CostEstimateResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/checkout/DonationsApi.java b/src/main/java/com/adyen/service/checkout/DonationsApi.java index e40248ce7..656f739c6 100644 --- a/src/main/java/com/adyen/service/checkout/DonationsApi.java +++ b/src/main/java/com/adyen/service/checkout/DonationsApi.java @@ -2,7 +2,7 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,94 +14,103 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.checkout.DonationCampaignsRequest; import com.adyen.model.checkout.DonationCampaignsResponse; import com.adyen.model.checkout.DonationPaymentRequest; import com.adyen.model.checkout.DonationPaymentResponse; -import com.adyen.model.checkout.ServiceError; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; -import java.util.HashMap; -import java.util.Map; public class DonationsApi extends Service { - public static final String API_VERSION = "71"; + public static final String API_VERSION = "71"; - protected String baseURL; + protected String baseURL; - /** - * Donations constructor in {@link com.adyen.service.checkout package}. - * @param client {@link Client } (required) - */ - public DonationsApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://checkout-test.adyen.com/v71"); - } + /** + * Donations constructor in {@link com.adyen.service.checkout package}. + * + * @param client {@link Client } (required) + */ + public DonationsApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://checkout-test.adyen.com/v71"); + } - /** - * Donations constructor in {@link com.adyen.service.checkout package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public DonationsApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Donations constructor in {@link com.adyen.service.checkout package}. Please use this + * constructor only if you would like to pass along your own url for routing or testing purposes. + * The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public DonationsApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Get a list of donation campaigns. - * - * @param donationCampaignsRequest {@link DonationCampaignsRequest } (required) - * @return {@link DonationCampaignsResponse } - * @throws ApiException if fails to make API call - */ - public DonationCampaignsResponse donationCampaigns(DonationCampaignsRequest donationCampaignsRequest) throws ApiException, IOException { - return donationCampaigns(donationCampaignsRequest, null); - } + /** + * Get a list of donation campaigns. + * + * @param donationCampaignsRequest {@link DonationCampaignsRequest } (required) + * @return {@link DonationCampaignsResponse } + * @throws ApiException if fails to make API call + */ + public DonationCampaignsResponse donationCampaigns( + DonationCampaignsRequest donationCampaignsRequest) throws ApiException, IOException { + return donationCampaigns(donationCampaignsRequest, null); + } - /** - * Get a list of donation campaigns. - * - * @param donationCampaignsRequest {@link DonationCampaignsRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link DonationCampaignsResponse } - * @throws ApiException if fails to make API call - */ - public DonationCampaignsResponse donationCampaigns(DonationCampaignsRequest donationCampaignsRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = donationCampaignsRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/donationCampaigns", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return DonationCampaignsResponse.fromJson(jsonResult); - } + /** + * Get a list of donation campaigns. + * + * @param donationCampaignsRequest {@link DonationCampaignsRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link DonationCampaignsResponse } + * @throws ApiException if fails to make API call + */ + public DonationCampaignsResponse donationCampaigns( + DonationCampaignsRequest donationCampaignsRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = donationCampaignsRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/donationCampaigns", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return DonationCampaignsResponse.fromJson(jsonResult); + } - /** - * Start a transaction for donations - * - * @param donationPaymentRequest {@link DonationPaymentRequest } (required) - * @return {@link DonationPaymentResponse } - * @throws ApiException if fails to make API call - */ - public DonationPaymentResponse donations(DonationPaymentRequest donationPaymentRequest) throws ApiException, IOException { - return donations(donationPaymentRequest, null); - } + /** + * Start a transaction for donations + * + * @param donationPaymentRequest {@link DonationPaymentRequest } (required) + * @return {@link DonationPaymentResponse } + * @throws ApiException if fails to make API call + */ + public DonationPaymentResponse donations(DonationPaymentRequest donationPaymentRequest) + throws ApiException, IOException { + return donations(donationPaymentRequest, null); + } - /** - * Start a transaction for donations - * - * @param donationPaymentRequest {@link DonationPaymentRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link DonationPaymentResponse } - * @throws ApiException if fails to make API call - */ - public DonationPaymentResponse donations(DonationPaymentRequest donationPaymentRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = donationPaymentRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/donations", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return DonationPaymentResponse.fromJson(jsonResult); - } + /** + * Start a transaction for donations + * + * @param donationPaymentRequest {@link DonationPaymentRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link DonationPaymentResponse } + * @throws ApiException if fails to make API call + */ + public DonationPaymentResponse donations( + DonationPaymentRequest donationPaymentRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = donationPaymentRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/donations", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return DonationPaymentResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/checkout/ModificationsApi.java b/src/main/java/com/adyen/service/checkout/ModificationsApi.java index 987ac30f9..d03d414a4 100644 --- a/src/main/java/com/adyen/service/checkout/ModificationsApi.java +++ b/src/main/java/com/adyen/service/checkout/ModificationsApi.java @@ -2,7 +2,7 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,6 +14,7 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.checkout.PaymentAmountUpdateRequest; import com.adyen.model.checkout.PaymentAmountUpdateResponse; import com.adyen.model.checkout.PaymentCancelRequest; @@ -24,241 +25,312 @@ import com.adyen.model.checkout.PaymentRefundResponse; import com.adyen.model.checkout.PaymentReversalRequest; import com.adyen.model.checkout.PaymentReversalResponse; -import com.adyen.model.checkout.ServiceError; import com.adyen.model.checkout.StandalonePaymentCancelRequest; import com.adyen.model.checkout.StandalonePaymentCancelResponse; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class ModificationsApi extends Service { - public static final String API_VERSION = "71"; + public static final String API_VERSION = "71"; - protected String baseURL; + protected String baseURL; - /** - * Modifications constructor in {@link com.adyen.service.checkout package}. - * @param client {@link Client } (required) - */ - public ModificationsApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://checkout-test.adyen.com/v71"); - } + /** + * Modifications constructor in {@link com.adyen.service.checkout package}. + * + * @param client {@link Client } (required) + */ + public ModificationsApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://checkout-test.adyen.com/v71"); + } - /** - * Modifications constructor in {@link com.adyen.service.checkout package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public ModificationsApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Modifications constructor in {@link com.adyen.service.checkout package}. Please use this + * constructor only if you would like to pass along your own url for routing or testing purposes. + * The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public ModificationsApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Cancel an authorised payment - * - * @param standalonePaymentCancelRequest {@link StandalonePaymentCancelRequest } (required) - * @return {@link StandalonePaymentCancelResponse } - * @throws ApiException if fails to make API call - */ - public StandalonePaymentCancelResponse cancelAuthorisedPayment(StandalonePaymentCancelRequest standalonePaymentCancelRequest) throws ApiException, IOException { - return cancelAuthorisedPayment(standalonePaymentCancelRequest, null); - } + /** + * Cancel an authorised payment + * + * @param standalonePaymentCancelRequest {@link StandalonePaymentCancelRequest } (required) + * @return {@link StandalonePaymentCancelResponse } + * @throws ApiException if fails to make API call + */ + public StandalonePaymentCancelResponse cancelAuthorisedPayment( + StandalonePaymentCancelRequest standalonePaymentCancelRequest) + throws ApiException, IOException { + return cancelAuthorisedPayment(standalonePaymentCancelRequest, null); + } - /** - * Cancel an authorised payment - * - * @param standalonePaymentCancelRequest {@link StandalonePaymentCancelRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link StandalonePaymentCancelResponse } - * @throws ApiException if fails to make API call - */ - public StandalonePaymentCancelResponse cancelAuthorisedPayment(StandalonePaymentCancelRequest standalonePaymentCancelRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = standalonePaymentCancelRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/cancels", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return StandalonePaymentCancelResponse.fromJson(jsonResult); - } + /** + * Cancel an authorised payment + * + * @param standalonePaymentCancelRequest {@link StandalonePaymentCancelRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link StandalonePaymentCancelResponse } + * @throws ApiException if fails to make API call + */ + public StandalonePaymentCancelResponse cancelAuthorisedPayment( + StandalonePaymentCancelRequest standalonePaymentCancelRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = standalonePaymentCancelRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/cancels", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return StandalonePaymentCancelResponse.fromJson(jsonResult); + } - /** - * Cancel an authorised payment - * - * @param paymentPspReference {@link String } The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment that you want to cancel. (required) - * @param paymentCancelRequest {@link PaymentCancelRequest } (required) - * @return {@link PaymentCancelResponse } - * @throws ApiException if fails to make API call - */ - public PaymentCancelResponse cancelAuthorisedPaymentByPspReference(String paymentPspReference, PaymentCancelRequest paymentCancelRequest) throws ApiException, IOException { - return cancelAuthorisedPaymentByPspReference(paymentPspReference, paymentCancelRequest, null); - } - - /** - * Cancel an authorised payment - * - * @param paymentPspReference {@link String } The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment that you want to cancel. (required) - * @param paymentCancelRequest {@link PaymentCancelRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PaymentCancelResponse } - * @throws ApiException if fails to make API call - */ - public PaymentCancelResponse cancelAuthorisedPaymentByPspReference(String paymentPspReference, PaymentCancelRequest paymentCancelRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (paymentPspReference == null) { - throw new IllegalArgumentException("Please provide the paymentPspReference path parameter"); - } - pathParams.put("paymentPspReference", paymentPspReference); + /** + * Cancel an authorised payment + * + * @param paymentPspReference {@link String } The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment that you want to cancel. (required) + * @param paymentCancelRequest {@link PaymentCancelRequest } (required) + * @return {@link PaymentCancelResponse } + * @throws ApiException if fails to make API call + */ + public PaymentCancelResponse cancelAuthorisedPaymentByPspReference( + String paymentPspReference, PaymentCancelRequest paymentCancelRequest) + throws ApiException, IOException { + return cancelAuthorisedPaymentByPspReference(paymentPspReference, paymentCancelRequest, null); + } - String requestBody = paymentCancelRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/payments/{paymentPspReference}/cancels", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return PaymentCancelResponse.fromJson(jsonResult); + /** + * Cancel an authorised payment + * + * @param paymentPspReference {@link String } The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment that you want to cancel. (required) + * @param paymentCancelRequest {@link PaymentCancelRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PaymentCancelResponse } + * @throws ApiException if fails to make API call + */ + public PaymentCancelResponse cancelAuthorisedPaymentByPspReference( + String paymentPspReference, + PaymentCancelRequest paymentCancelRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (paymentPspReference == null) { + throw new IllegalArgumentException("Please provide the paymentPspReference path parameter"); } + pathParams.put("paymentPspReference", paymentPspReference); - /** - * Capture an authorised payment - * - * @param paymentPspReference {@link String } The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment that you want to capture. (required) - * @param paymentCaptureRequest {@link PaymentCaptureRequest } (required) - * @return {@link PaymentCaptureResponse } - * @throws ApiException if fails to make API call - */ - public PaymentCaptureResponse captureAuthorisedPayment(String paymentPspReference, PaymentCaptureRequest paymentCaptureRequest) throws ApiException, IOException { - return captureAuthorisedPayment(paymentPspReference, paymentCaptureRequest, null); - } + String requestBody = paymentCancelRequest.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/payments/{paymentPspReference}/cancels", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return PaymentCancelResponse.fromJson(jsonResult); + } - /** - * Capture an authorised payment - * - * @param paymentPspReference {@link String } The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment that you want to capture. (required) - * @param paymentCaptureRequest {@link PaymentCaptureRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PaymentCaptureResponse } - * @throws ApiException if fails to make API call - */ - public PaymentCaptureResponse captureAuthorisedPayment(String paymentPspReference, PaymentCaptureRequest paymentCaptureRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (paymentPspReference == null) { - throw new IllegalArgumentException("Please provide the paymentPspReference path parameter"); - } - pathParams.put("paymentPspReference", paymentPspReference); + /** + * Capture an authorised payment + * + * @param paymentPspReference {@link String } The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment that you want to capture. (required) + * @param paymentCaptureRequest {@link PaymentCaptureRequest } (required) + * @return {@link PaymentCaptureResponse } + * @throws ApiException if fails to make API call + */ + public PaymentCaptureResponse captureAuthorisedPayment( + String paymentPspReference, PaymentCaptureRequest paymentCaptureRequest) + throws ApiException, IOException { + return captureAuthorisedPayment(paymentPspReference, paymentCaptureRequest, null); + } - String requestBody = paymentCaptureRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/payments/{paymentPspReference}/captures", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return PaymentCaptureResponse.fromJson(jsonResult); + /** + * Capture an authorised payment + * + * @param paymentPspReference {@link String } The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment that you want to capture. (required) + * @param paymentCaptureRequest {@link PaymentCaptureRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PaymentCaptureResponse } + * @throws ApiException if fails to make API call + */ + public PaymentCaptureResponse captureAuthorisedPayment( + String paymentPspReference, + PaymentCaptureRequest paymentCaptureRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (paymentPspReference == null) { + throw new IllegalArgumentException("Please provide the paymentPspReference path parameter"); } + pathParams.put("paymentPspReference", paymentPspReference); - /** - * Refund a captured payment - * - * @param paymentPspReference {@link String } The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment that you want to refund. (required) - * @param paymentRefundRequest {@link PaymentRefundRequest } (required) - * @return {@link PaymentRefundResponse } - * @throws ApiException if fails to make API call - */ - public PaymentRefundResponse refundCapturedPayment(String paymentPspReference, PaymentRefundRequest paymentRefundRequest) throws ApiException, IOException { - return refundCapturedPayment(paymentPspReference, paymentRefundRequest, null); - } + String requestBody = paymentCaptureRequest.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/payments/{paymentPspReference}/captures", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return PaymentCaptureResponse.fromJson(jsonResult); + } - /** - * Refund a captured payment - * - * @param paymentPspReference {@link String } The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment that you want to refund. (required) - * @param paymentRefundRequest {@link PaymentRefundRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PaymentRefundResponse } - * @throws ApiException if fails to make API call - */ - public PaymentRefundResponse refundCapturedPayment(String paymentPspReference, PaymentRefundRequest paymentRefundRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (paymentPspReference == null) { - throw new IllegalArgumentException("Please provide the paymentPspReference path parameter"); - } - pathParams.put("paymentPspReference", paymentPspReference); + /** + * Refund a captured payment + * + * @param paymentPspReference {@link String } The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment that you want to refund. (required) + * @param paymentRefundRequest {@link PaymentRefundRequest } (required) + * @return {@link PaymentRefundResponse } + * @throws ApiException if fails to make API call + */ + public PaymentRefundResponse refundCapturedPayment( + String paymentPspReference, PaymentRefundRequest paymentRefundRequest) + throws ApiException, IOException { + return refundCapturedPayment(paymentPspReference, paymentRefundRequest, null); + } - String requestBody = paymentRefundRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/payments/{paymentPspReference}/refunds", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return PaymentRefundResponse.fromJson(jsonResult); + /** + * Refund a captured payment + * + * @param paymentPspReference {@link String } The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment that you want to refund. (required) + * @param paymentRefundRequest {@link PaymentRefundRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PaymentRefundResponse } + * @throws ApiException if fails to make API call + */ + public PaymentRefundResponse refundCapturedPayment( + String paymentPspReference, + PaymentRefundRequest paymentRefundRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (paymentPspReference == null) { + throw new IllegalArgumentException("Please provide the paymentPspReference path parameter"); } + pathParams.put("paymentPspReference", paymentPspReference); - /** - * Refund or cancel a payment - * - * @param paymentPspReference {@link String } The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment that you want to reverse. (required) - * @param paymentReversalRequest {@link PaymentReversalRequest } (required) - * @return {@link PaymentReversalResponse } - * @throws ApiException if fails to make API call - */ - public PaymentReversalResponse refundOrCancelPayment(String paymentPspReference, PaymentReversalRequest paymentReversalRequest) throws ApiException, IOException { - return refundOrCancelPayment(paymentPspReference, paymentReversalRequest, null); - } + String requestBody = paymentRefundRequest.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/payments/{paymentPspReference}/refunds", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return PaymentRefundResponse.fromJson(jsonResult); + } - /** - * Refund or cancel a payment - * - * @param paymentPspReference {@link String } The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment that you want to reverse. (required) - * @param paymentReversalRequest {@link PaymentReversalRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PaymentReversalResponse } - * @throws ApiException if fails to make API call - */ - public PaymentReversalResponse refundOrCancelPayment(String paymentPspReference, PaymentReversalRequest paymentReversalRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (paymentPspReference == null) { - throw new IllegalArgumentException("Please provide the paymentPspReference path parameter"); - } - pathParams.put("paymentPspReference", paymentPspReference); + /** + * Refund or cancel a payment + * + * @param paymentPspReference {@link String } The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment that you want to reverse. (required) + * @param paymentReversalRequest {@link PaymentReversalRequest } (required) + * @return {@link PaymentReversalResponse } + * @throws ApiException if fails to make API call + */ + public PaymentReversalResponse refundOrCancelPayment( + String paymentPspReference, PaymentReversalRequest paymentReversalRequest) + throws ApiException, IOException { + return refundOrCancelPayment(paymentPspReference, paymentReversalRequest, null); + } - String requestBody = paymentReversalRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/payments/{paymentPspReference}/reversals", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return PaymentReversalResponse.fromJson(jsonResult); + /** + * Refund or cancel a payment + * + * @param paymentPspReference {@link String } The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment that you want to reverse. (required) + * @param paymentReversalRequest {@link PaymentReversalRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PaymentReversalResponse } + * @throws ApiException if fails to make API call + */ + public PaymentReversalResponse refundOrCancelPayment( + String paymentPspReference, + PaymentReversalRequest paymentReversalRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (paymentPspReference == null) { + throw new IllegalArgumentException("Please provide the paymentPspReference path parameter"); } + pathParams.put("paymentPspReference", paymentPspReference); - /** - * Update an authorised amount - * - * @param paymentPspReference {@link String } The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment. (required) - * @param paymentAmountUpdateRequest {@link PaymentAmountUpdateRequest } (required) - * @return {@link PaymentAmountUpdateResponse } - * @throws ApiException if fails to make API call - */ - public PaymentAmountUpdateResponse updateAuthorisedAmount(String paymentPspReference, PaymentAmountUpdateRequest paymentAmountUpdateRequest) throws ApiException, IOException { - return updateAuthorisedAmount(paymentPspReference, paymentAmountUpdateRequest, null); - } + String requestBody = paymentReversalRequest.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/payments/{paymentPspReference}/reversals", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return PaymentReversalResponse.fromJson(jsonResult); + } - /** - * Update an authorised amount - * - * @param paymentPspReference {@link String } The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment. (required) - * @param paymentAmountUpdateRequest {@link PaymentAmountUpdateRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PaymentAmountUpdateResponse } - * @throws ApiException if fails to make API call - */ - public PaymentAmountUpdateResponse updateAuthorisedAmount(String paymentPspReference, PaymentAmountUpdateRequest paymentAmountUpdateRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (paymentPspReference == null) { - throw new IllegalArgumentException("Please provide the paymentPspReference path parameter"); - } - pathParams.put("paymentPspReference", paymentPspReference); + /** + * Update an authorised amount + * + * @param paymentPspReference {@link String } The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment. (required) + * @param paymentAmountUpdateRequest {@link PaymentAmountUpdateRequest } (required) + * @return {@link PaymentAmountUpdateResponse } + * @throws ApiException if fails to make API call + */ + public PaymentAmountUpdateResponse updateAuthorisedAmount( + String paymentPspReference, PaymentAmountUpdateRequest paymentAmountUpdateRequest) + throws ApiException, IOException { + return updateAuthorisedAmount(paymentPspReference, paymentAmountUpdateRequest, null); + } - String requestBody = paymentAmountUpdateRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/payments/{paymentPspReference}/amountUpdates", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return PaymentAmountUpdateResponse.fromJson(jsonResult); + /** + * Update an authorised amount + * + * @param paymentPspReference {@link String } The + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) + * of the payment. (required) + * @param paymentAmountUpdateRequest {@link PaymentAmountUpdateRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PaymentAmountUpdateResponse } + * @throws ApiException if fails to make API call + */ + public PaymentAmountUpdateResponse updateAuthorisedAmount( + String paymentPspReference, + PaymentAmountUpdateRequest paymentAmountUpdateRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (paymentPspReference == null) { + throw new IllegalArgumentException("Please provide the paymentPspReference path parameter"); } + pathParams.put("paymentPspReference", paymentPspReference); + + String requestBody = paymentAmountUpdateRequest.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/payments/{paymentPspReference}/amountUpdates", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return PaymentAmountUpdateResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/checkout/OrdersApi.java b/src/main/java/com/adyen/service/checkout/OrdersApi.java index 3015fbde8..e0fe0a0b6 100644 --- a/src/main/java/com/adyen/service/checkout/OrdersApi.java +++ b/src/main/java/com/adyen/service/checkout/OrdersApi.java @@ -2,7 +2,7 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,122 +14,136 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.checkout.BalanceCheckRequest; import com.adyen.model.checkout.BalanceCheckResponse; import com.adyen.model.checkout.CancelOrderRequest; import com.adyen.model.checkout.CancelOrderResponse; import com.adyen.model.checkout.CreateOrderRequest; import com.adyen.model.checkout.CreateOrderResponse; -import com.adyen.model.checkout.ServiceError; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; -import java.util.HashMap; -import java.util.Map; public class OrdersApi extends Service { - public static final String API_VERSION = "71"; + public static final String API_VERSION = "71"; - protected String baseURL; + protected String baseURL; - /** - * Orders constructor in {@link com.adyen.service.checkout package}. - * @param client {@link Client } (required) - */ - public OrdersApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://checkout-test.adyen.com/v71"); - } + /** + * Orders constructor in {@link com.adyen.service.checkout package}. + * + * @param client {@link Client } (required) + */ + public OrdersApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://checkout-test.adyen.com/v71"); + } - /** - * Orders constructor in {@link com.adyen.service.checkout package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public OrdersApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Orders constructor in {@link com.adyen.service.checkout package}. Please use this constructor + * only if you would like to pass along your own url for routing or testing purposes. The latest + * API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public OrdersApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Cancel an order - * - * @param cancelOrderRequest {@link CancelOrderRequest } (required) - * @return {@link CancelOrderResponse } - * @throws ApiException if fails to make API call - */ - public CancelOrderResponse cancelOrder(CancelOrderRequest cancelOrderRequest) throws ApiException, IOException { - return cancelOrder(cancelOrderRequest, null); - } + /** + * Cancel an order + * + * @param cancelOrderRequest {@link CancelOrderRequest } (required) + * @return {@link CancelOrderResponse } + * @throws ApiException if fails to make API call + */ + public CancelOrderResponse cancelOrder(CancelOrderRequest cancelOrderRequest) + throws ApiException, IOException { + return cancelOrder(cancelOrderRequest, null); + } - /** - * Cancel an order - * - * @param cancelOrderRequest {@link CancelOrderRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link CancelOrderResponse } - * @throws ApiException if fails to make API call - */ - public CancelOrderResponse cancelOrder(CancelOrderRequest cancelOrderRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = cancelOrderRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/orders/cancel", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return CancelOrderResponse.fromJson(jsonResult); - } + /** + * Cancel an order + * + * @param cancelOrderRequest {@link CancelOrderRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link CancelOrderResponse } + * @throws ApiException if fails to make API call + */ + public CancelOrderResponse cancelOrder( + CancelOrderRequest cancelOrderRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = cancelOrderRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/orders/cancel", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return CancelOrderResponse.fromJson(jsonResult); + } - /** - * Get the balance of a gift card - * - * @param balanceCheckRequest {@link BalanceCheckRequest } (required) - * @return {@link BalanceCheckResponse } - * @throws ApiException if fails to make API call - */ - public BalanceCheckResponse getBalanceOfGiftCard(BalanceCheckRequest balanceCheckRequest) throws ApiException, IOException { - return getBalanceOfGiftCard(balanceCheckRequest, null); - } + /** + * Get the balance of a gift card + * + * @param balanceCheckRequest {@link BalanceCheckRequest } (required) + * @return {@link BalanceCheckResponse } + * @throws ApiException if fails to make API call + */ + public BalanceCheckResponse getBalanceOfGiftCard(BalanceCheckRequest balanceCheckRequest) + throws ApiException, IOException { + return getBalanceOfGiftCard(balanceCheckRequest, null); + } - /** - * Get the balance of a gift card - * - * @param balanceCheckRequest {@link BalanceCheckRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link BalanceCheckResponse } - * @throws ApiException if fails to make API call - */ - public BalanceCheckResponse getBalanceOfGiftCard(BalanceCheckRequest balanceCheckRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = balanceCheckRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/paymentMethods/balance", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return BalanceCheckResponse.fromJson(jsonResult); - } + /** + * Get the balance of a gift card + * + * @param balanceCheckRequest {@link BalanceCheckRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link BalanceCheckResponse } + * @throws ApiException if fails to make API call + */ + public BalanceCheckResponse getBalanceOfGiftCard( + BalanceCheckRequest balanceCheckRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = balanceCheckRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/paymentMethods/balance", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return BalanceCheckResponse.fromJson(jsonResult); + } - /** - * Create an order - * - * @param createOrderRequest {@link CreateOrderRequest } (required) - * @return {@link CreateOrderResponse } - * @throws ApiException if fails to make API call - */ - public CreateOrderResponse orders(CreateOrderRequest createOrderRequest) throws ApiException, IOException { - return orders(createOrderRequest, null); - } + /** + * Create an order + * + * @param createOrderRequest {@link CreateOrderRequest } (required) + * @return {@link CreateOrderResponse } + * @throws ApiException if fails to make API call + */ + public CreateOrderResponse orders(CreateOrderRequest createOrderRequest) + throws ApiException, IOException { + return orders(createOrderRequest, null); + } - /** - * Create an order - * - * @param createOrderRequest {@link CreateOrderRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link CreateOrderResponse } - * @throws ApiException if fails to make API call - */ - public CreateOrderResponse orders(CreateOrderRequest createOrderRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = createOrderRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/orders", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return CreateOrderResponse.fromJson(jsonResult); - } + /** + * Create an order + * + * @param createOrderRequest {@link CreateOrderRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link CreateOrderResponse } + * @throws ApiException if fails to make API call + */ + public CreateOrderResponse orders( + CreateOrderRequest createOrderRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = createOrderRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/orders", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return CreateOrderResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/checkout/PaymentLinksApi.java b/src/main/java/com/adyen/service/checkout/PaymentLinksApi.java index 033aa3da1..5b8374f8c 100644 --- a/src/main/java/com/adyen/service/checkout/PaymentLinksApi.java +++ b/src/main/java/com/adyen/service/checkout/PaymentLinksApi.java @@ -2,7 +2,7 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,135 +14,152 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.checkout.PaymentLinkRequest; import com.adyen.model.checkout.PaymentLinkResponse; -import com.adyen.model.checkout.ServiceError; import com.adyen.model.checkout.UpdatePaymentLinkRequest; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class PaymentLinksApi extends Service { - public static final String API_VERSION = "71"; - - protected String baseURL; - - /** - * Payment links constructor in {@link com.adyen.service.checkout package}. - * @param client {@link Client } (required) - */ - public PaymentLinksApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://checkout-test.adyen.com/v71"); + public static final String API_VERSION = "71"; + + protected String baseURL; + + /** + * Payment links constructor in {@link com.adyen.service.checkout package}. + * + * @param client {@link Client } (required) + */ + public PaymentLinksApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://checkout-test.adyen.com/v71"); + } + + /** + * Payment links constructor in {@link com.adyen.service.checkout package}. Please use this + * constructor only if you would like to pass along your own url for routing or testing purposes. + * The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public PaymentLinksApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Get a payment link + * + * @param linkId {@link String } Unique identifier of the payment link. (required) + * @return {@link PaymentLinkResponse } + * @throws ApiException if fails to make API call + */ + public PaymentLinkResponse getPaymentLink(String linkId) throws ApiException, IOException { + return getPaymentLink(linkId, null); + } + + /** + * Get a payment link + * + * @param linkId {@link String } Unique identifier of the payment link. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PaymentLinkResponse } + * @throws ApiException if fails to make API call + */ + public PaymentLinkResponse getPaymentLink(String linkId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (linkId == null) { + throw new IllegalArgumentException("Please provide the linkId path parameter"); } - - /** - * Payment links constructor in {@link com.adyen.service.checkout package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public PaymentLinksApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Get a payment link - * - * @param linkId {@link String } Unique identifier of the payment link. (required) - * @return {@link PaymentLinkResponse } - * @throws ApiException if fails to make API call - */ - public PaymentLinkResponse getPaymentLink(String linkId) throws ApiException, IOException { - return getPaymentLink(linkId, null); - } - - /** - * Get a payment link - * - * @param linkId {@link String } Unique identifier of the payment link. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PaymentLinkResponse } - * @throws ApiException if fails to make API call - */ - public PaymentLinkResponse getPaymentLink(String linkId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (linkId == null) { - throw new IllegalArgumentException("Please provide the linkId path parameter"); - } - pathParams.put("linkId", linkId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/paymentLinks/{linkId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return PaymentLinkResponse.fromJson(jsonResult); - } - - /** - * Create a payment link - * - * @param paymentLinkRequest {@link PaymentLinkRequest } (required) - * @return {@link PaymentLinkResponse } - * @throws ApiException if fails to make API call - */ - public PaymentLinkResponse paymentLinks(PaymentLinkRequest paymentLinkRequest) throws ApiException, IOException { - return paymentLinks(paymentLinkRequest, null); - } - - /** - * Create a payment link - * - * @param paymentLinkRequest {@link PaymentLinkRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PaymentLinkResponse } - * @throws ApiException if fails to make API call - */ - public PaymentLinkResponse paymentLinks(PaymentLinkRequest paymentLinkRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = paymentLinkRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/paymentLinks", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return PaymentLinkResponse.fromJson(jsonResult); - } - - /** - * Update the status of a payment link - * - * @param linkId {@link String } Unique identifier of the payment link. (required) - * @param updatePaymentLinkRequest {@link UpdatePaymentLinkRequest } (required) - * @return {@link PaymentLinkResponse } - * @throws ApiException if fails to make API call - */ - public PaymentLinkResponse updatePaymentLink(String linkId, UpdatePaymentLinkRequest updatePaymentLinkRequest) throws ApiException, IOException { - return updatePaymentLink(linkId, updatePaymentLinkRequest, null); - } - - /** - * Update the status of a payment link - * - * @param linkId {@link String } Unique identifier of the payment link. (required) - * @param updatePaymentLinkRequest {@link UpdatePaymentLinkRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PaymentLinkResponse } - * @throws ApiException if fails to make API call - */ - public PaymentLinkResponse updatePaymentLink(String linkId, UpdatePaymentLinkRequest updatePaymentLinkRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (linkId == null) { - throw new IllegalArgumentException("Please provide the linkId path parameter"); - } - pathParams.put("linkId", linkId); - - String requestBody = updatePaymentLinkRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/paymentLinks/{linkId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return PaymentLinkResponse.fromJson(jsonResult); + pathParams.put("linkId", linkId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/paymentLinks/{linkId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return PaymentLinkResponse.fromJson(jsonResult); + } + + /** + * Create a payment link + * + * @param paymentLinkRequest {@link PaymentLinkRequest } (required) + * @return {@link PaymentLinkResponse } + * @throws ApiException if fails to make API call + */ + public PaymentLinkResponse paymentLinks(PaymentLinkRequest paymentLinkRequest) + throws ApiException, IOException { + return paymentLinks(paymentLinkRequest, null); + } + + /** + * Create a payment link + * + * @param paymentLinkRequest {@link PaymentLinkRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PaymentLinkResponse } + * @throws ApiException if fails to make API call + */ + public PaymentLinkResponse paymentLinks( + PaymentLinkRequest paymentLinkRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = paymentLinkRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/paymentLinks", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return PaymentLinkResponse.fromJson(jsonResult); + } + + /** + * Update the status of a payment link + * + * @param linkId {@link String } Unique identifier of the payment link. (required) + * @param updatePaymentLinkRequest {@link UpdatePaymentLinkRequest } (required) + * @return {@link PaymentLinkResponse } + * @throws ApiException if fails to make API call + */ + public PaymentLinkResponse updatePaymentLink( + String linkId, UpdatePaymentLinkRequest updatePaymentLinkRequest) + throws ApiException, IOException { + return updatePaymentLink(linkId, updatePaymentLinkRequest, null); + } + + /** + * Update the status of a payment link + * + * @param linkId {@link String } Unique identifier of the payment link. (required) + * @param updatePaymentLinkRequest {@link UpdatePaymentLinkRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PaymentLinkResponse } + * @throws ApiException if fails to make API call + */ + public PaymentLinkResponse updatePaymentLink( + String linkId, + UpdatePaymentLinkRequest updatePaymentLinkRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (linkId == null) { + throw new IllegalArgumentException("Please provide the linkId path parameter"); } + pathParams.put("linkId", linkId); + + String requestBody = updatePaymentLinkRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/paymentLinks/{linkId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return PaymentLinkResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/checkout/PaymentsApi.java b/src/main/java/com/adyen/service/checkout/PaymentsApi.java index 52d3038b8..b36341649 100644 --- a/src/main/java/com/adyen/service/checkout/PaymentsApi.java +++ b/src/main/java/com/adyen/service/checkout/PaymentsApi.java @@ -2,7 +2,7 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,6 +14,7 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.checkout.CardDetailsRequest; import com.adyen.model.checkout.CardDetailsResponse; import com.adyen.model.checkout.CreateCheckoutSessionRequest; @@ -24,210 +25,241 @@ import com.adyen.model.checkout.PaymentMethodsResponse; import com.adyen.model.checkout.PaymentRequest; import com.adyen.model.checkout.PaymentResponse; -import com.adyen.model.checkout.ServiceError; import com.adyen.model.checkout.SessionResultResponse; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class PaymentsApi extends Service { - public static final String API_VERSION = "71"; + public static final String API_VERSION = "71"; - protected String baseURL; + protected String baseURL; - /** - * Payments constructor in {@link com.adyen.service.checkout package}. - * @param client {@link Client } (required) - */ - public PaymentsApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://checkout-test.adyen.com/v71"); - } + /** + * Payments constructor in {@link com.adyen.service.checkout package}. + * + * @param client {@link Client } (required) + */ + public PaymentsApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://checkout-test.adyen.com/v71"); + } - /** - * Payments constructor in {@link com.adyen.service.checkout package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public PaymentsApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Payments constructor in {@link com.adyen.service.checkout package}. Please use this constructor + * only if you would like to pass along your own url for routing or testing purposes. The latest + * API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public PaymentsApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Get the brands and other details of a card - * - * @param cardDetailsRequest {@link CardDetailsRequest } (required) - * @return {@link CardDetailsResponse } - * @throws ApiException if fails to make API call - */ - public CardDetailsResponse cardDetails(CardDetailsRequest cardDetailsRequest) throws ApiException, IOException { - return cardDetails(cardDetailsRequest, null); - } + /** + * Get the brands and other details of a card + * + * @param cardDetailsRequest {@link CardDetailsRequest } (required) + * @return {@link CardDetailsResponse } + * @throws ApiException if fails to make API call + */ + public CardDetailsResponse cardDetails(CardDetailsRequest cardDetailsRequest) + throws ApiException, IOException { + return cardDetails(cardDetailsRequest, null); + } - /** - * Get the brands and other details of a card - * - * @param cardDetailsRequest {@link CardDetailsRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link CardDetailsResponse } - * @throws ApiException if fails to make API call - */ - public CardDetailsResponse cardDetails(CardDetailsRequest cardDetailsRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = cardDetailsRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/cardDetails", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return CardDetailsResponse.fromJson(jsonResult); - } + /** + * Get the brands and other details of a card + * + * @param cardDetailsRequest {@link CardDetailsRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link CardDetailsResponse } + * @throws ApiException if fails to make API call + */ + public CardDetailsResponse cardDetails( + CardDetailsRequest cardDetailsRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = cardDetailsRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/cardDetails", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return CardDetailsResponse.fromJson(jsonResult); + } - /** - * Get the result of a payment session - * - * @param sessionId {@link String } A unique identifier of the session. (required) - * @param sessionResult {@link String } The `sessionResult` value from the Drop-in or Component. (required) - * @return {@link SessionResultResponse } - * @throws ApiException if fails to make API call - */ - public SessionResultResponse getResultOfPaymentSession(String sessionId, String sessionResult) throws ApiException, IOException { - return getResultOfPaymentSession(sessionId, sessionResult, null); - } + /** + * Get the result of a payment session + * + * @param sessionId {@link String } A unique identifier of the session. (required) + * @param sessionResult {@link String } The `sessionResult` value from the Drop-in or + * Component. (required) + * @return {@link SessionResultResponse } + * @throws ApiException if fails to make API call + */ + public SessionResultResponse getResultOfPaymentSession(String sessionId, String sessionResult) + throws ApiException, IOException { + return getResultOfPaymentSession(sessionId, sessionResult, null); + } - /** - * Get the result of a payment session - * - * @param sessionId {@link String } A unique identifier of the session. (required) - * @param sessionResult {@link String } Query: The `sessionResult` value from the Drop-in or Component. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link SessionResultResponse } - * @throws ApiException if fails to make API call - */ - public SessionResultResponse getResultOfPaymentSession(String sessionId, String sessionResult, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (sessionId == null) { - throw new IllegalArgumentException("Please provide the sessionId path parameter"); - } - pathParams.put("sessionId", sessionId); - - //Add query params - Map queryParams = new HashMap<>(); - if (sessionResult != null) { - queryParams.put("sessionResult", sessionResult); - } - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/sessions/{sessionId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return SessionResultResponse.fromJson(jsonResult); + /** + * Get the result of a payment session + * + * @param sessionId {@link String } A unique identifier of the session. (required) + * @param sessionResult {@link String } Query: The `sessionResult` value from the + * Drop-in or Component. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link SessionResultResponse } + * @throws ApiException if fails to make API call + */ + public SessionResultResponse getResultOfPaymentSession( + String sessionId, String sessionResult, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (sessionId == null) { + throw new IllegalArgumentException("Please provide the sessionId path parameter"); } + pathParams.put("sessionId", sessionId); - /** - * Get a list of available payment methods - * - * @param paymentMethodsRequest {@link PaymentMethodsRequest } (required) - * @return {@link PaymentMethodsResponse } - * @throws ApiException if fails to make API call - */ - public PaymentMethodsResponse paymentMethods(PaymentMethodsRequest paymentMethodsRequest) throws ApiException, IOException { - return paymentMethods(paymentMethodsRequest, null); + // Add query params + Map queryParams = new HashMap<>(); + if (sessionResult != null) { + queryParams.put("sessionResult", sessionResult); } - /** - * Get a list of available payment methods - * - * @param paymentMethodsRequest {@link PaymentMethodsRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PaymentMethodsResponse } - * @throws ApiException if fails to make API call - */ - public PaymentMethodsResponse paymentMethods(PaymentMethodsRequest paymentMethodsRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = paymentMethodsRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/paymentMethods", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return PaymentMethodsResponse.fromJson(jsonResult); - } + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/sessions/{sessionId}", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return SessionResultResponse.fromJson(jsonResult); + } - /** - * Start a transaction - * - * @param paymentRequest {@link PaymentRequest } (required) - * @return {@link PaymentResponse } - * @throws ApiException if fails to make API call - */ - public PaymentResponse payments(PaymentRequest paymentRequest) throws ApiException, IOException { - return payments(paymentRequest, null); - } + /** + * Get a list of available payment methods + * + * @param paymentMethodsRequest {@link PaymentMethodsRequest } (required) + * @return {@link PaymentMethodsResponse } + * @throws ApiException if fails to make API call + */ + public PaymentMethodsResponse paymentMethods(PaymentMethodsRequest paymentMethodsRequest) + throws ApiException, IOException { + return paymentMethods(paymentMethodsRequest, null); + } - /** - * Start a transaction - * - * @param paymentRequest {@link PaymentRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PaymentResponse } - * @throws ApiException if fails to make API call - */ - public PaymentResponse payments(PaymentRequest paymentRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = paymentRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/payments", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return PaymentResponse.fromJson(jsonResult); - } + /** + * Get a list of available payment methods + * + * @param paymentMethodsRequest {@link PaymentMethodsRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PaymentMethodsResponse } + * @throws ApiException if fails to make API call + */ + public PaymentMethodsResponse paymentMethods( + PaymentMethodsRequest paymentMethodsRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = paymentMethodsRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/paymentMethods", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return PaymentMethodsResponse.fromJson(jsonResult); + } - /** - * Submit details for a payment - * - * @param paymentDetailsRequest {@link PaymentDetailsRequest } (required) - * @return {@link PaymentDetailsResponse } - * @throws ApiException if fails to make API call - */ - public PaymentDetailsResponse paymentsDetails(PaymentDetailsRequest paymentDetailsRequest) throws ApiException, IOException { - return paymentsDetails(paymentDetailsRequest, null); - } + /** + * Start a transaction + * + * @param paymentRequest {@link PaymentRequest } (required) + * @return {@link PaymentResponse } + * @throws ApiException if fails to make API call + */ + public PaymentResponse payments(PaymentRequest paymentRequest) throws ApiException, IOException { + return payments(paymentRequest, null); + } - /** - * Submit details for a payment - * - * @param paymentDetailsRequest {@link PaymentDetailsRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PaymentDetailsResponse } - * @throws ApiException if fails to make API call - */ - public PaymentDetailsResponse paymentsDetails(PaymentDetailsRequest paymentDetailsRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = paymentDetailsRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/payments/details", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return PaymentDetailsResponse.fromJson(jsonResult); - } + /** + * Start a transaction + * + * @param paymentRequest {@link PaymentRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PaymentResponse } + * @throws ApiException if fails to make API call + */ + public PaymentResponse payments(PaymentRequest paymentRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = paymentRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/payments", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return PaymentResponse.fromJson(jsonResult); + } - /** - * Create a payment session - * - * @param createCheckoutSessionRequest {@link CreateCheckoutSessionRequest } (required) - * @return {@link CreateCheckoutSessionResponse } - * @throws ApiException if fails to make API call - */ - public CreateCheckoutSessionResponse sessions(CreateCheckoutSessionRequest createCheckoutSessionRequest) throws ApiException, IOException { - return sessions(createCheckoutSessionRequest, null); - } + /** + * Submit details for a payment + * + * @param paymentDetailsRequest {@link PaymentDetailsRequest } (required) + * @return {@link PaymentDetailsResponse } + * @throws ApiException if fails to make API call + */ + public PaymentDetailsResponse paymentsDetails(PaymentDetailsRequest paymentDetailsRequest) + throws ApiException, IOException { + return paymentsDetails(paymentDetailsRequest, null); + } - /** - * Create a payment session - * - * @param createCheckoutSessionRequest {@link CreateCheckoutSessionRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link CreateCheckoutSessionResponse } - * @throws ApiException if fails to make API call - */ - public CreateCheckoutSessionResponse sessions(CreateCheckoutSessionRequest createCheckoutSessionRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = createCheckoutSessionRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/sessions", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return CreateCheckoutSessionResponse.fromJson(jsonResult); - } + /** + * Submit details for a payment + * + * @param paymentDetailsRequest {@link PaymentDetailsRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PaymentDetailsResponse } + * @throws ApiException if fails to make API call + */ + public PaymentDetailsResponse paymentsDetails( + PaymentDetailsRequest paymentDetailsRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = paymentDetailsRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/payments/details", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return PaymentDetailsResponse.fromJson(jsonResult); + } + + /** + * Create a payment session + * + * @param createCheckoutSessionRequest {@link CreateCheckoutSessionRequest } (required) + * @return {@link CreateCheckoutSessionResponse } + * @throws ApiException if fails to make API call + */ + public CreateCheckoutSessionResponse sessions( + CreateCheckoutSessionRequest createCheckoutSessionRequest) throws ApiException, IOException { + return sessions(createCheckoutSessionRequest, null); + } + + /** + * Create a payment session + * + * @param createCheckoutSessionRequest {@link CreateCheckoutSessionRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link CreateCheckoutSessionResponse } + * @throws ApiException if fails to make API call + */ + public CreateCheckoutSessionResponse sessions( + CreateCheckoutSessionRequest createCheckoutSessionRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = createCheckoutSessionRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/sessions", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return CreateCheckoutSessionResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/checkout/RecurringApi.java b/src/main/java/com/adyen/service/checkout/RecurringApi.java index 714b154cb..7b8276b56 100644 --- a/src/main/java/com/adyen/service/checkout/RecurringApi.java +++ b/src/main/java/com/adyen/service/checkout/RecurringApi.java @@ -2,7 +2,7 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,144 +14,177 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.checkout.ListStoredPaymentMethodsResponse; import com.adyen.model.checkout.StoredPaymentMethodRequest; import com.adyen.model.checkout.StoredPaymentMethodResource; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class RecurringApi extends Service { - public static final String API_VERSION = "71"; - - protected String baseURL; - - /** - * Recurring constructor in {@link com.adyen.service.checkout package}. - * @param client {@link Client } (required) - */ - public RecurringApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://checkout-test.adyen.com/v71"); + public static final String API_VERSION = "71"; + + protected String baseURL; + + /** + * Recurring constructor in {@link com.adyen.service.checkout package}. + * + * @param client {@link Client } (required) + */ + public RecurringApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://checkout-test.adyen.com/v71"); + } + + /** + * Recurring constructor in {@link com.adyen.service.checkout package}. Please use this + * constructor only if you would like to pass along your own url for routing or testing purposes. + * The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public RecurringApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Delete a token for stored payment details + * + * @param storedPaymentMethodId {@link String } The unique identifier of the token. (required) + * @param shopperReference {@link String } Your reference to uniquely identify this shopper, for + * example user ID or account ID. Minimum length: 3 characters. > Your reference must not + * include personally identifiable information (PII), for example name or email address. + * (required) + * @param merchantAccount {@link String } Your merchant account. (required) + * @throws ApiException if fails to make API call + */ + public void deleteTokenForStoredPaymentDetails( + String storedPaymentMethodId, String shopperReference, String merchantAccount) + throws ApiException, IOException { + deleteTokenForStoredPaymentDetails( + storedPaymentMethodId, shopperReference, merchantAccount, null); + } + + /** + * Delete a token for stored payment details + * + * @param storedPaymentMethodId {@link String } The unique identifier of the token. (required) + * @param shopperReference {@link String } Query: Your reference to uniquely identify this + * shopper, for example user ID or account ID. Minimum length: 3 characters. > Your + * reference must not include personally identifiable information (PII), for example name or + * email address. (required) + * @param merchantAccount {@link String } Query: Your merchant account. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void deleteTokenForStoredPaymentDetails( + String storedPaymentMethodId, + String shopperReference, + String merchantAccount, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (storedPaymentMethodId == null) { + throw new IllegalArgumentException("Please provide the storedPaymentMethodId path parameter"); } + pathParams.put("storedPaymentMethodId", storedPaymentMethodId); - /** - * Recurring constructor in {@link com.adyen.service.checkout package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public RecurringApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; + // Add query params + Map queryParams = new HashMap<>(); + if (shopperReference != null) { + queryParams.put("shopperReference", shopperReference); } - - /** - * Delete a token for stored payment details - * - * @param storedPaymentMethodId {@link String } The unique identifier of the token. (required) - * @param shopperReference {@link String } Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. (required) - * @param merchantAccount {@link String } Your merchant account. (required) - * @throws ApiException if fails to make API call - */ - public void deleteTokenForStoredPaymentDetails(String storedPaymentMethodId, String shopperReference, String merchantAccount) throws ApiException, IOException { - deleteTokenForStoredPaymentDetails(storedPaymentMethodId, shopperReference, merchantAccount, null); + if (merchantAccount != null) { + queryParams.put("merchantAccount", merchantAccount); } - /** - * Delete a token for stored payment details - * - * @param storedPaymentMethodId {@link String } The unique identifier of the token. (required) - * @param shopperReference {@link String } Query: Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. (required) - * @param merchantAccount {@link String } Query: Your merchant account. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void deleteTokenForStoredPaymentDetails(String storedPaymentMethodId, String shopperReference, String merchantAccount, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (storedPaymentMethodId == null) { - throw new IllegalArgumentException("Please provide the storedPaymentMethodId path parameter"); - } - pathParams.put("storedPaymentMethodId", storedPaymentMethodId); - - //Add query params - Map queryParams = new HashMap<>(); - if (shopperReference != null) { - queryParams.put("shopperReference", shopperReference); - } - if (merchantAccount != null) { - queryParams.put("merchantAccount", merchantAccount); - } - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/storedPaymentMethods/{storedPaymentMethodId}", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams, queryParams); + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/storedPaymentMethods/{storedPaymentMethodId}", null); + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams, queryParams); + } + + /** + * Get tokens for stored payment details + * + * @return {@link ListStoredPaymentMethodsResponse } + * @throws ApiException if fails to make API call + */ + public ListStoredPaymentMethodsResponse getTokensForStoredPaymentDetails() + throws ApiException, IOException { + return getTokensForStoredPaymentDetails(null, null, null); + } + + /** + * Get tokens for stored payment details + * + * @param shopperReference {@link String } Query: Your reference to uniquely identify this + * shopper, for example user ID or account ID. Minimum length: 3 characters. > Your + * reference must not include personally identifiable information (PII), for example name or + * email address. (optional) + * @param merchantAccount {@link String } Query: Your merchant account. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ListStoredPaymentMethodsResponse } + * @throws ApiException if fails to make API call + */ + public ListStoredPaymentMethodsResponse getTokensForStoredPaymentDetails( + String shopperReference, String merchantAccount, RequestOptions requestOptions) + throws ApiException, IOException { + // Add query params + Map queryParams = new HashMap<>(); + if (shopperReference != null) { + queryParams.put("shopperReference", shopperReference); } - - /** - * Get tokens for stored payment details - * - * @return {@link ListStoredPaymentMethodsResponse } - * @throws ApiException if fails to make API call - */ - public ListStoredPaymentMethodsResponse getTokensForStoredPaymentDetails() throws ApiException, IOException { - return getTokensForStoredPaymentDetails(null, null, null); - } - - /** - * Get tokens for stored payment details - * - * @param shopperReference {@link String } Query: Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. (optional) - * @param merchantAccount {@link String } Query: Your merchant account. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ListStoredPaymentMethodsResponse } - * @throws ApiException if fails to make API call - */ - public ListStoredPaymentMethodsResponse getTokensForStoredPaymentDetails(String shopperReference, String merchantAccount, RequestOptions requestOptions) throws ApiException, IOException { - //Add query params - Map queryParams = new HashMap<>(); - if (shopperReference != null) { - queryParams.put("shopperReference", shopperReference); - } - if (merchantAccount != null) { - queryParams.put("merchantAccount", merchantAccount); - } - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/storedPaymentMethods", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); - return ListStoredPaymentMethodsResponse.fromJson(jsonResult); + if (merchantAccount != null) { + queryParams.put("merchantAccount", merchantAccount); } - /** - * Create a token to store payment details - * - * @param storedPaymentMethodRequest {@link StoredPaymentMethodRequest } (required) - * @return {@link StoredPaymentMethodResource } - * @throws ApiException if fails to make API call - */ - public StoredPaymentMethodResource storedPaymentMethods(StoredPaymentMethodRequest storedPaymentMethodRequest) throws ApiException, IOException { - return storedPaymentMethods(storedPaymentMethodRequest, null); - } - - /** - * Create a token to store payment details - * - * @param storedPaymentMethodRequest {@link StoredPaymentMethodRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link StoredPaymentMethodResource } - * @throws ApiException if fails to make API call - */ - public StoredPaymentMethodResource storedPaymentMethods(StoredPaymentMethodRequest storedPaymentMethodRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = storedPaymentMethodRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/storedPaymentMethods", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return StoredPaymentMethodResource.fromJson(jsonResult); - } + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/storedPaymentMethods", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); + return ListStoredPaymentMethodsResponse.fromJson(jsonResult); + } + + /** + * Create a token to store payment details + * + * @param storedPaymentMethodRequest {@link StoredPaymentMethodRequest } (required) + * @return {@link StoredPaymentMethodResource } + * @throws ApiException if fails to make API call + */ + public StoredPaymentMethodResource storedPaymentMethods( + StoredPaymentMethodRequest storedPaymentMethodRequest) throws ApiException, IOException { + return storedPaymentMethods(storedPaymentMethodRequest, null); + } + + /** + * Create a token to store payment details + * + * @param storedPaymentMethodRequest {@link StoredPaymentMethodRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link StoredPaymentMethodResource } + * @throws ApiException if fails to make API call + */ + public StoredPaymentMethodResource storedPaymentMethods( + StoredPaymentMethodRequest storedPaymentMethodRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = storedPaymentMethodRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/storedPaymentMethods", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return StoredPaymentMethodResource.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/checkout/UtilityApi.java b/src/main/java/com/adyen/service/checkout/UtilityApi.java index e3e8ce426..de0624206 100644 --- a/src/main/java/com/adyen/service/checkout/UtilityApi.java +++ b/src/main/java/com/adyen/service/checkout/UtilityApi.java @@ -2,7 +2,7 @@ * Adyen Checkout API * * The version of the OpenAPI document: 71 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,156 +14,173 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.checkout.ApplePaySessionRequest; import com.adyen.model.checkout.ApplePaySessionResponse; -import com.adyen.model.checkout.DefaultErrorResponseEntity; import com.adyen.model.checkout.PaypalUpdateOrderRequest; import com.adyen.model.checkout.PaypalUpdateOrderResponse; -import com.adyen.model.checkout.ServiceError; import com.adyen.model.checkout.UtilityRequest; import com.adyen.model.checkout.UtilityResponse; import com.adyen.model.checkout.ValidateShopperIdRequest; import com.adyen.model.checkout.ValidateShopperIdResponse; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; -import java.util.HashMap; -import java.util.Map; public class UtilityApi extends Service { - public static final String API_VERSION = "71"; - - protected String baseURL; - - /** - * Utility constructor in {@link com.adyen.service.checkout package}. - * @param client {@link Client } (required) - */ - public UtilityApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://checkout-test.adyen.com/v71"); - } - - /** - * Utility constructor in {@link com.adyen.service.checkout package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public UtilityApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Get an Apple Pay session - * - * @param applePaySessionRequest {@link ApplePaySessionRequest } (required) - * @return {@link ApplePaySessionResponse } - * @throws ApiException if fails to make API call - */ - public ApplePaySessionResponse getApplePaySession(ApplePaySessionRequest applePaySessionRequest) throws ApiException, IOException { - return getApplePaySession(applePaySessionRequest, null); - } - - /** - * Get an Apple Pay session - * - * @param applePaySessionRequest {@link ApplePaySessionRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ApplePaySessionResponse } - * @throws ApiException if fails to make API call - */ - public ApplePaySessionResponse getApplePaySession(ApplePaySessionRequest applePaySessionRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = applePaySessionRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/applePay/sessions", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return ApplePaySessionResponse.fromJson(jsonResult); - } - - /** - * Create originKey values for domains - * - * @param utilityRequest {@link UtilityRequest } (required) - * @return {@link UtilityResponse } - * @throws ApiException if fails to make API call - * @deprecated since Adyen Checkout API v67 - */ - @Deprecated - public UtilityResponse originKeys(UtilityRequest utilityRequest) throws ApiException, IOException { - return originKeys(utilityRequest, null); - } - - /** - * Create originKey values for domains - * - * @param utilityRequest {@link UtilityRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link UtilityResponse } - * @throws ApiException if fails to make API call - * @deprecated since Adyen Checkout API v67 - */ - @Deprecated - public UtilityResponse originKeys(UtilityRequest utilityRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = utilityRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/originKeys", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return UtilityResponse.fromJson(jsonResult); - } - - /** - * Updates the order for PayPal Express Checkout - * - * @param paypalUpdateOrderRequest {@link PaypalUpdateOrderRequest } (required) - * @return {@link PaypalUpdateOrderResponse } - * @throws ApiException if fails to make API call - */ - public PaypalUpdateOrderResponse updatesOrderForPaypalExpressCheckout(PaypalUpdateOrderRequest paypalUpdateOrderRequest) throws ApiException, IOException { - return updatesOrderForPaypalExpressCheckout(paypalUpdateOrderRequest, null); - } - - /** - * Updates the order for PayPal Express Checkout - * - * @param paypalUpdateOrderRequest {@link PaypalUpdateOrderRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PaypalUpdateOrderResponse } - * @throws ApiException if fails to make API call - */ - public PaypalUpdateOrderResponse updatesOrderForPaypalExpressCheckout(PaypalUpdateOrderRequest paypalUpdateOrderRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = paypalUpdateOrderRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/paypal/updateOrder", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return PaypalUpdateOrderResponse.fromJson(jsonResult); - } - - /** - * Validates shopper Id - * - * @param validateShopperIdRequest {@link ValidateShopperIdRequest } (required) - * @param validateShopperIdRequest {@link ValidateShopperIdRequest } (required) - * @return {@link ValidateShopperIdResponse } - * @throws ApiException if fails to make API call - */ - public ValidateShopperIdResponse validateShopperId(ValidateShopperIdRequest validateShopperIdRequest) throws ApiException, IOException { - return validateShopperId(validateShopperIdRequest, null); - } - - /** - * Validates shopper Id - * - * @param validateShopperIdRequest {@link ValidateShopperIdRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ValidateShopperIdResponse } - * @throws ApiException if fails to make API call - */ - public ValidateShopperIdResponse validateShopperId(ValidateShopperIdRequest validateShopperIdRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = validateShopperIdRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/validateShopperId", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return ValidateShopperIdResponse.fromJson(jsonResult); - } + public static final String API_VERSION = "71"; + + protected String baseURL; + + /** + * Utility constructor in {@link com.adyen.service.checkout package}. + * + * @param client {@link Client } (required) + */ + public UtilityApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://checkout-test.adyen.com/v71"); + } + + /** + * Utility constructor in {@link com.adyen.service.checkout package}. Please use this constructor + * only if you would like to pass along your own url for routing or testing purposes. The latest + * API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public UtilityApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Get an Apple Pay session + * + * @param applePaySessionRequest {@link ApplePaySessionRequest } (required) + * @return {@link ApplePaySessionResponse } + * @throws ApiException if fails to make API call + */ + public ApplePaySessionResponse getApplePaySession(ApplePaySessionRequest applePaySessionRequest) + throws ApiException, IOException { + return getApplePaySession(applePaySessionRequest, null); + } + + /** + * Get an Apple Pay session + * + * @param applePaySessionRequest {@link ApplePaySessionRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ApplePaySessionResponse } + * @throws ApiException if fails to make API call + */ + public ApplePaySessionResponse getApplePaySession( + ApplePaySessionRequest applePaySessionRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = applePaySessionRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/applePay/sessions", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return ApplePaySessionResponse.fromJson(jsonResult); + } + + /** + * Create originKey values for domains + * + * @param utilityRequest {@link UtilityRequest } (required) + * @return {@link UtilityResponse } + * @throws ApiException if fails to make API call + * @deprecated since Adyen Checkout API v67 + */ + @Deprecated + public UtilityResponse originKeys(UtilityRequest utilityRequest) + throws ApiException, IOException { + return originKeys(utilityRequest, null); + } + + /** + * Create originKey values for domains + * + * @param utilityRequest {@link UtilityRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link UtilityResponse } + * @throws ApiException if fails to make API call + * @deprecated since Adyen Checkout API v67 + */ + @Deprecated + public UtilityResponse originKeys(UtilityRequest utilityRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = utilityRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/originKeys", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return UtilityResponse.fromJson(jsonResult); + } + + /** + * Updates the order for PayPal Express Checkout + * + * @param paypalUpdateOrderRequest {@link PaypalUpdateOrderRequest } (required) + * @return {@link PaypalUpdateOrderResponse } + * @throws ApiException if fails to make API call + */ + public PaypalUpdateOrderResponse updatesOrderForPaypalExpressCheckout( + PaypalUpdateOrderRequest paypalUpdateOrderRequest) throws ApiException, IOException { + return updatesOrderForPaypalExpressCheckout(paypalUpdateOrderRequest, null); + } + + /** + * Updates the order for PayPal Express Checkout + * + * @param paypalUpdateOrderRequest {@link PaypalUpdateOrderRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PaypalUpdateOrderResponse } + * @throws ApiException if fails to make API call + */ + public PaypalUpdateOrderResponse updatesOrderForPaypalExpressCheckout( + PaypalUpdateOrderRequest paypalUpdateOrderRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = paypalUpdateOrderRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/paypal/updateOrder", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return PaypalUpdateOrderResponse.fromJson(jsonResult); + } + + /** + * Validates shopper Id + * + * @param validateShopperIdRequest {@link ValidateShopperIdRequest } (required) + * @param validateShopperIdRequest {@link ValidateShopperIdRequest } (required) + * @return {@link ValidateShopperIdResponse } + * @throws ApiException if fails to make API call + */ + public ValidateShopperIdResponse validateShopperId( + ValidateShopperIdRequest validateShopperIdRequest) throws ApiException, IOException { + return validateShopperId(validateShopperIdRequest, null); + } + + /** + * Validates shopper Id + * + * @param validateShopperIdRequest {@link ValidateShopperIdRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ValidateShopperIdResponse } + * @throws ApiException if fails to make API call + */ + public ValidateShopperIdResponse validateShopperId( + ValidateShopperIdRequest validateShopperIdRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = validateShopperIdRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/validateShopperId", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return ValidateShopperIdResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/dataprotection/DataProtectionApi.java b/src/main/java/com/adyen/service/dataprotection/DataProtectionApi.java index 94c332c22..1ccbef138 100644 --- a/src/main/java/com/adyen/service/dataprotection/DataProtectionApi.java +++ b/src/main/java/com/adyen/service/dataprotection/DataProtectionApi.java @@ -2,7 +2,7 @@ * Adyen Data Protection API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,66 +14,74 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.dataprotection.ServiceError; +import com.adyen.model.RequestOptions; import com.adyen.model.dataprotection.SubjectErasureByPspReferenceRequest; import com.adyen.model.dataprotection.SubjectErasureResponse; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; -import java.util.HashMap; -import java.util.Map; public class DataProtectionApi extends Service { - public static final String API_VERSION = "1"; + public static final String API_VERSION = "1"; - protected String baseURL; + protected String baseURL; - /** - * DataProtection constructor in {@link com.adyen.service.dataprotection package}. - * @param client {@link Client } (required) - */ - public DataProtectionApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://ca-test.adyen.com/ca/services/DataProtectionService/v1"); - } + /** + * DataProtection constructor in {@link com.adyen.service.dataprotection package}. + * + * @param client {@link Client } (required) + */ + public DataProtectionApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://ca-test.adyen.com/ca/services/DataProtectionService/v1"); + } - /** - * DataProtection constructor in {@link com.adyen.service.dataprotection package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public DataProtectionApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * DataProtection constructor in {@link com.adyen.service.dataprotection package}. Please use this + * constructor only if you would like to pass along your own url for routing or testing purposes. + * The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public DataProtectionApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Submit a Subject Erasure Request. - * - * @param subjectErasureByPspReferenceRequest {@link SubjectErasureByPspReferenceRequest } (required) - * @return {@link SubjectErasureResponse } - * @throws ApiException if fails to make API call - */ - public SubjectErasureResponse requestSubjectErasure(SubjectErasureByPspReferenceRequest subjectErasureByPspReferenceRequest) throws ApiException, IOException { - return requestSubjectErasure(subjectErasureByPspReferenceRequest, null); - } + /** + * Submit a Subject Erasure Request. + * + * @param subjectErasureByPspReferenceRequest {@link SubjectErasureByPspReferenceRequest } + * (required) + * @return {@link SubjectErasureResponse } + * @throws ApiException if fails to make API call + */ + public SubjectErasureResponse requestSubjectErasure( + SubjectErasureByPspReferenceRequest subjectErasureByPspReferenceRequest) + throws ApiException, IOException { + return requestSubjectErasure(subjectErasureByPspReferenceRequest, null); + } - /** - * Submit a Subject Erasure Request. - * - * @param subjectErasureByPspReferenceRequest {@link SubjectErasureByPspReferenceRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link SubjectErasureResponse } - * @throws ApiException if fails to make API call - */ - public SubjectErasureResponse requestSubjectErasure(SubjectErasureByPspReferenceRequest subjectErasureByPspReferenceRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = subjectErasureByPspReferenceRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/requestSubjectErasure", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return SubjectErasureResponse.fromJson(jsonResult); - } + /** + * Submit a Subject Erasure Request. + * + * @param subjectErasureByPspReferenceRequest {@link SubjectErasureByPspReferenceRequest } + * (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link SubjectErasureResponse } + * @throws ApiException if fails to make API call + */ + public SubjectErasureResponse requestSubjectErasure( + SubjectErasureByPspReferenceRequest subjectErasureByPspReferenceRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = subjectErasureByPspReferenceRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/requestSubjectErasure", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return SubjectErasureResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/disputes/DisputesApi.java b/src/main/java/com/adyen/service/disputes/DisputesApi.java index cddd27d0b..b48101adc 100644 --- a/src/main/java/com/adyen/service/disputes/DisputesApi.java +++ b/src/main/java/com/adyen/service/disputes/DisputesApi.java @@ -2,7 +2,7 @@ * Disputes API * * The version of the OpenAPI document: 30 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,6 +14,7 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.disputes.AcceptDisputeRequest; import com.adyen.model.disputes.AcceptDisputeResponse; import com.adyen.model.disputes.DefendDisputeRequest; @@ -22,170 +23,194 @@ import com.adyen.model.disputes.DefenseReasonsResponse; import com.adyen.model.disputes.DeleteDefenseDocumentRequest; import com.adyen.model.disputes.DeleteDefenseDocumentResponse; -import com.adyen.model.disputes.ServiceError; import com.adyen.model.disputes.SupplyDefenseDocumentRequest; import com.adyen.model.disputes.SupplyDefenseDocumentResponse; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; -import java.util.HashMap; -import java.util.Map; public class DisputesApi extends Service { - public static final String API_VERSION = "30"; - - protected String baseURL; - - /** - * Disputes constructor in {@link com.adyen.service.disputes package}. - * @param client {@link Client } (required) - */ - public DisputesApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://ca-test.adyen.com/ca/services/DisputeService/v30"); - } - - /** - * Disputes constructor in {@link com.adyen.service.disputes package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public DisputesApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Accept a dispute - * - * @param acceptDisputeRequest {@link AcceptDisputeRequest } (required) - * @return {@link AcceptDisputeResponse } - * @throws ApiException if fails to make API call - */ - public AcceptDisputeResponse acceptDispute(AcceptDisputeRequest acceptDisputeRequest) throws ApiException, IOException { - return acceptDispute(acceptDisputeRequest, null); - } - - /** - * Accept a dispute - * - * @param acceptDisputeRequest {@link AcceptDisputeRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link AcceptDisputeResponse } - * @throws ApiException if fails to make API call - */ - public AcceptDisputeResponse acceptDispute(AcceptDisputeRequest acceptDisputeRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = acceptDisputeRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/acceptDispute", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return AcceptDisputeResponse.fromJson(jsonResult); - } - - /** - * Defend a dispute - * - * @param defendDisputeRequest {@link DefendDisputeRequest } (required) - * @return {@link DefendDisputeResponse } - * @throws ApiException if fails to make API call - */ - public DefendDisputeResponse defendDispute(DefendDisputeRequest defendDisputeRequest) throws ApiException, IOException { - return defendDispute(defendDisputeRequest, null); - } - - /** - * Defend a dispute - * - * @param defendDisputeRequest {@link DefendDisputeRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link DefendDisputeResponse } - * @throws ApiException if fails to make API call - */ - public DefendDisputeResponse defendDispute(DefendDisputeRequest defendDisputeRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = defendDisputeRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/defendDispute", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return DefendDisputeResponse.fromJson(jsonResult); - } - - /** - * Delete a defense document - * - * @param deleteDefenseDocumentRequest {@link DeleteDefenseDocumentRequest } (required) - * @return {@link DeleteDefenseDocumentResponse } - * @throws ApiException if fails to make API call - */ - public DeleteDefenseDocumentResponse deleteDisputeDefenseDocument(DeleteDefenseDocumentRequest deleteDefenseDocumentRequest) throws ApiException, IOException { - return deleteDisputeDefenseDocument(deleteDefenseDocumentRequest, null); - } - - /** - * Delete a defense document - * - * @param deleteDefenseDocumentRequest {@link DeleteDefenseDocumentRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link DeleteDefenseDocumentResponse } - * @throws ApiException if fails to make API call - */ - public DeleteDefenseDocumentResponse deleteDisputeDefenseDocument(DeleteDefenseDocumentRequest deleteDefenseDocumentRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = deleteDefenseDocumentRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/deleteDisputeDefenseDocument", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return DeleteDefenseDocumentResponse.fromJson(jsonResult); - } - - /** - * Get applicable defense reasons - * - * @param defenseReasonsRequest {@link DefenseReasonsRequest } (required) - * @return {@link DefenseReasonsResponse } - * @throws ApiException if fails to make API call - */ - public DefenseReasonsResponse retrieveApplicableDefenseReasons(DefenseReasonsRequest defenseReasonsRequest) throws ApiException, IOException { - return retrieveApplicableDefenseReasons(defenseReasonsRequest, null); - } - - /** - * Get applicable defense reasons - * - * @param defenseReasonsRequest {@link DefenseReasonsRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link DefenseReasonsResponse } - * @throws ApiException if fails to make API call - */ - public DefenseReasonsResponse retrieveApplicableDefenseReasons(DefenseReasonsRequest defenseReasonsRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = defenseReasonsRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/retrieveApplicableDefenseReasons", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return DefenseReasonsResponse.fromJson(jsonResult); - } - - /** - * Supply a defense document - * - * @param supplyDefenseDocumentRequest {@link SupplyDefenseDocumentRequest } (required) - * @return {@link SupplyDefenseDocumentResponse } - * @throws ApiException if fails to make API call - */ - public SupplyDefenseDocumentResponse supplyDefenseDocument(SupplyDefenseDocumentRequest supplyDefenseDocumentRequest) throws ApiException, IOException { - return supplyDefenseDocument(supplyDefenseDocumentRequest, null); - } - - /** - * Supply a defense document - * - * @param supplyDefenseDocumentRequest {@link SupplyDefenseDocumentRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link SupplyDefenseDocumentResponse } - * @throws ApiException if fails to make API call - */ - public SupplyDefenseDocumentResponse supplyDefenseDocument(SupplyDefenseDocumentRequest supplyDefenseDocumentRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = supplyDefenseDocumentRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/supplyDefenseDocument", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return SupplyDefenseDocumentResponse.fromJson(jsonResult); - } + public static final String API_VERSION = "30"; + + protected String baseURL; + + /** + * Disputes constructor in {@link com.adyen.service.disputes package}. + * + * @param client {@link Client } (required) + */ + public DisputesApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://ca-test.adyen.com/ca/services/DisputeService/v30"); + } + + /** + * Disputes constructor in {@link com.adyen.service.disputes package}. Please use this constructor + * only if you would like to pass along your own url for routing or testing purposes. The latest + * API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public DisputesApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Accept a dispute + * + * @param acceptDisputeRequest {@link AcceptDisputeRequest } (required) + * @return {@link AcceptDisputeResponse } + * @throws ApiException if fails to make API call + */ + public AcceptDisputeResponse acceptDispute(AcceptDisputeRequest acceptDisputeRequest) + throws ApiException, IOException { + return acceptDispute(acceptDisputeRequest, null); + } + + /** + * Accept a dispute + * + * @param acceptDisputeRequest {@link AcceptDisputeRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link AcceptDisputeResponse } + * @throws ApiException if fails to make API call + */ + public AcceptDisputeResponse acceptDispute( + AcceptDisputeRequest acceptDisputeRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = acceptDisputeRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/acceptDispute", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return AcceptDisputeResponse.fromJson(jsonResult); + } + + /** + * Defend a dispute + * + * @param defendDisputeRequest {@link DefendDisputeRequest } (required) + * @return {@link DefendDisputeResponse } + * @throws ApiException if fails to make API call + */ + public DefendDisputeResponse defendDispute(DefendDisputeRequest defendDisputeRequest) + throws ApiException, IOException { + return defendDispute(defendDisputeRequest, null); + } + + /** + * Defend a dispute + * + * @param defendDisputeRequest {@link DefendDisputeRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link DefendDisputeResponse } + * @throws ApiException if fails to make API call + */ + public DefendDisputeResponse defendDispute( + DefendDisputeRequest defendDisputeRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = defendDisputeRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/defendDispute", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return DefendDisputeResponse.fromJson(jsonResult); + } + + /** + * Delete a defense document + * + * @param deleteDefenseDocumentRequest {@link DeleteDefenseDocumentRequest } (required) + * @return {@link DeleteDefenseDocumentResponse } + * @throws ApiException if fails to make API call + */ + public DeleteDefenseDocumentResponse deleteDisputeDefenseDocument( + DeleteDefenseDocumentRequest deleteDefenseDocumentRequest) throws ApiException, IOException { + return deleteDisputeDefenseDocument(deleteDefenseDocumentRequest, null); + } + + /** + * Delete a defense document + * + * @param deleteDefenseDocumentRequest {@link DeleteDefenseDocumentRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link DeleteDefenseDocumentResponse } + * @throws ApiException if fails to make API call + */ + public DeleteDefenseDocumentResponse deleteDisputeDefenseDocument( + DeleteDefenseDocumentRequest deleteDefenseDocumentRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = deleteDefenseDocumentRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/deleteDisputeDefenseDocument", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return DeleteDefenseDocumentResponse.fromJson(jsonResult); + } + + /** + * Get applicable defense reasons + * + * @param defenseReasonsRequest {@link DefenseReasonsRequest } (required) + * @return {@link DefenseReasonsResponse } + * @throws ApiException if fails to make API call + */ + public DefenseReasonsResponse retrieveApplicableDefenseReasons( + DefenseReasonsRequest defenseReasonsRequest) throws ApiException, IOException { + return retrieveApplicableDefenseReasons(defenseReasonsRequest, null); + } + + /** + * Get applicable defense reasons + * + * @param defenseReasonsRequest {@link DefenseReasonsRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link DefenseReasonsResponse } + * @throws ApiException if fails to make API call + */ + public DefenseReasonsResponse retrieveApplicableDefenseReasons( + DefenseReasonsRequest defenseReasonsRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = defenseReasonsRequest.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/retrieveApplicableDefenseReasons", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return DefenseReasonsResponse.fromJson(jsonResult); + } + + /** + * Supply a defense document + * + * @param supplyDefenseDocumentRequest {@link SupplyDefenseDocumentRequest } (required) + * @return {@link SupplyDefenseDocumentResponse } + * @throws ApiException if fails to make API call + */ + public SupplyDefenseDocumentResponse supplyDefenseDocument( + SupplyDefenseDocumentRequest supplyDefenseDocumentRequest) throws ApiException, IOException { + return supplyDefenseDocument(supplyDefenseDocumentRequest, null); + } + + /** + * Supply a defense document + * + * @param supplyDefenseDocumentRequest {@link SupplyDefenseDocumentRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link SupplyDefenseDocumentResponse } + * @throws ApiException if fails to make API call + */ + public SupplyDefenseDocumentResponse supplyDefenseDocument( + SupplyDefenseDocumentRequest supplyDefenseDocumentRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = supplyDefenseDocumentRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/supplyDefenseDocument", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return SupplyDefenseDocumentResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/legalentitymanagement/BusinessLinesApi.java b/src/main/java/com/adyen/service/legalentitymanagement/BusinessLinesApi.java index 5ef161922..9d8fd6abd 100644 --- a/src/main/java/com/adyen/service/legalentitymanagement/BusinessLinesApi.java +++ b/src/main/java/com/adyen/service/legalentitymanagement/BusinessLinesApi.java @@ -2,7 +2,7 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,165 +14,181 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.legalentitymanagement.BusinessLine; import com.adyen.model.legalentitymanagement.BusinessLineInfo; import com.adyen.model.legalentitymanagement.BusinessLineInfoUpdate; -import com.adyen.model.legalentitymanagement.ServiceError; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class BusinessLinesApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * Business lines constructor in {@link com.adyen.service.legalentitymanagement package}. - * @param client {@link Client } (required) - */ - public BusinessLinesApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://kyc-test.adyen.com/lem/v3"); - } - - /** - * Business lines constructor in {@link com.adyen.service.legalentitymanagement package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public BusinessLinesApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Create a business line - * - * @param businessLineInfo {@link BusinessLineInfo } (required) - * @return {@link BusinessLine } - * @throws ApiException if fails to make API call - */ - public BusinessLine createBusinessLine(BusinessLineInfo businessLineInfo) throws ApiException, IOException { - return createBusinessLine(businessLineInfo, null); - } - - /** - * Create a business line - * - * @param businessLineInfo {@link BusinessLineInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link BusinessLine } - * @throws ApiException if fails to make API call - */ - public BusinessLine createBusinessLine(BusinessLineInfo businessLineInfo, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = businessLineInfo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/businessLines", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return BusinessLine.fromJson(jsonResult); - } - - /** - * Delete a business line - * - * @param id {@link String } The unique identifier of the business line to be deleted. (required) - * @throws ApiException if fails to make API call - */ - public void deleteBusinessLine(String id) throws ApiException, IOException { - deleteBusinessLine(id, null); + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * Business lines constructor in {@link com.adyen.service.legalentitymanagement package}. + * + * @param client {@link Client } (required) + */ + public BusinessLinesApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://kyc-test.adyen.com/lem/v3"); + } + + /** + * Business lines constructor in {@link com.adyen.service.legalentitymanagement package}. Please + * use this constructor only if you would like to pass along your own url for routing or testing + * purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public BusinessLinesApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Create a business line + * + * @param businessLineInfo {@link BusinessLineInfo } (required) + * @return {@link BusinessLine } + * @throws ApiException if fails to make API call + */ + public BusinessLine createBusinessLine(BusinessLineInfo businessLineInfo) + throws ApiException, IOException { + return createBusinessLine(businessLineInfo, null); + } + + /** + * Create a business line + * + * @param businessLineInfo {@link BusinessLineInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link BusinessLine } + * @throws ApiException if fails to make API call + */ + public BusinessLine createBusinessLine( + BusinessLineInfo businessLineInfo, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = businessLineInfo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/businessLines", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return BusinessLine.fromJson(jsonResult); + } + + /** + * Delete a business line + * + * @param id {@link String } The unique identifier of the business line to be deleted. (required) + * @throws ApiException if fails to make API call + */ + public void deleteBusinessLine(String id) throws ApiException, IOException { + deleteBusinessLine(id, null); + } + + /** + * Delete a business line + * + * @param id {@link String } The unique identifier of the business line to be deleted. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void deleteBusinessLine(String id, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } - - /** - * Delete a business line - * - * @param id {@link String } The unique identifier of the business line to be deleted. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void deleteBusinessLine(String id, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/businessLines/{id}", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); - } - - /** - * Get a business line - * - * @param id {@link String } The unique identifier of the business line. (required) - * @return {@link BusinessLine } - * @throws ApiException if fails to make API call - */ - public BusinessLine getBusinessLine(String id) throws ApiException, IOException { - return getBusinessLine(id, null); + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/businessLines/{id}", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); + } + + /** + * Get a business line + * + * @param id {@link String } The unique identifier of the business line. (required) + * @return {@link BusinessLine } + * @throws ApiException if fails to make API call + */ + public BusinessLine getBusinessLine(String id) throws ApiException, IOException { + return getBusinessLine(id, null); + } + + /** + * Get a business line + * + * @param id {@link String } The unique identifier of the business line. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link BusinessLine } + * @throws ApiException if fails to make API call + */ + public BusinessLine getBusinessLine(String id, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } - - /** - * Get a business line - * - * @param id {@link String } The unique identifier of the business line. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link BusinessLine } - * @throws ApiException if fails to make API call - */ - public BusinessLine getBusinessLine(String id, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/businessLines/{id}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return BusinessLine.fromJson(jsonResult); - } - - /** - * Update a business line - * - * @param id {@link String } The unique identifier of the business line. (required) - * @param businessLineInfoUpdate {@link BusinessLineInfoUpdate } (required) - * @return {@link BusinessLine } - * @throws ApiException if fails to make API call - */ - public BusinessLine updateBusinessLine(String id, BusinessLineInfoUpdate businessLineInfoUpdate) throws ApiException, IOException { - return updateBusinessLine(id, businessLineInfoUpdate, null); - } - - /** - * Update a business line - * - * @param id {@link String } The unique identifier of the business line. (required) - * @param businessLineInfoUpdate {@link BusinessLineInfoUpdate } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link BusinessLine } - * @throws ApiException if fails to make API call - */ - public BusinessLine updateBusinessLine(String id, BusinessLineInfoUpdate businessLineInfoUpdate, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = businessLineInfoUpdate.toJson(); - Resource resource = new Resource(this, this.baseURL + "/businessLines/{id}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return BusinessLine.fromJson(jsonResult); + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/businessLines/{id}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return BusinessLine.fromJson(jsonResult); + } + + /** + * Update a business line + * + * @param id {@link String } The unique identifier of the business line. (required) + * @param businessLineInfoUpdate {@link BusinessLineInfoUpdate } (required) + * @return {@link BusinessLine } + * @throws ApiException if fails to make API call + */ + public BusinessLine updateBusinessLine(String id, BusinessLineInfoUpdate businessLineInfoUpdate) + throws ApiException, IOException { + return updateBusinessLine(id, businessLineInfoUpdate, null); + } + + /** + * Update a business line + * + * @param id {@link String } The unique identifier of the business line. (required) + * @param businessLineInfoUpdate {@link BusinessLineInfoUpdate } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link BusinessLine } + * @throws ApiException if fails to make API call + */ + public BusinessLine updateBusinessLine( + String id, BusinessLineInfoUpdate businessLineInfoUpdate, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); + + String requestBody = businessLineInfoUpdate.toJson(); + Resource resource = new Resource(this, this.baseURL + "/businessLines/{id}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return BusinessLine.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/legalentitymanagement/DocumentsApi.java b/src/main/java/com/adyen/service/legalentitymanagement/DocumentsApi.java index 08b9b7b9f..3e1c289ec 100644 --- a/src/main/java/com/adyen/service/legalentitymanagement/DocumentsApi.java +++ b/src/main/java/com/adyen/service/legalentitymanagement/DocumentsApi.java @@ -2,7 +2,7 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,170 +14,185 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.legalentitymanagement.Document; -import com.adyen.model.legalentitymanagement.ServiceError; import com.adyen.model.RequestOptions; +import com.adyen.model.legalentitymanagement.Document; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class DocumentsApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * Documents constructor in {@link com.adyen.service.legalentitymanagement package}. - * @param client {@link Client } (required) - */ - public DocumentsApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://kyc-test.adyen.com/lem/v3"); - } - - /** - * Documents constructor in {@link com.adyen.service.legalentitymanagement package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public DocumentsApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Delete a document - * - * @param id {@link String } The unique identifier of the document to be deleted. (required) - * @throws ApiException if fails to make API call - */ - public void deleteDocument(String id) throws ApiException, IOException { - deleteDocument(id, null); + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * Documents constructor in {@link com.adyen.service.legalentitymanagement package}. + * + * @param client {@link Client } (required) + */ + public DocumentsApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://kyc-test.adyen.com/lem/v3"); + } + + /** + * Documents constructor in {@link com.adyen.service.legalentitymanagement package}. Please use + * this constructor only if you would like to pass along your own url for routing or testing + * purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public DocumentsApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Delete a document + * + * @param id {@link String } The unique identifier of the document to be deleted. (required) + * @throws ApiException if fails to make API call + */ + public void deleteDocument(String id) throws ApiException, IOException { + deleteDocument(id, null); + } + + /** + * Delete a document + * + * @param id {@link String } The unique identifier of the document to be deleted. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void deleteDocument(String id, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } - - /** - * Delete a document - * - * @param id {@link String } The unique identifier of the document to be deleted. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void deleteDocument(String id, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/documents/{id}", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); - } - - /** - * Get a document - * - * @param id {@link String } The unique identifier of the document. (required) - * @return {@link Document } - * @throws ApiException if fails to make API call - */ - public Document getDocument(String id) throws ApiException, IOException { - return getDocument(id, null, null); - } - - /** - * Get a document - * - * @param id {@link String } The unique identifier of the document. (required) - * @param skipContent {@link Boolean } Query: Do not load document content while fetching the document. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link Document } - * @throws ApiException if fails to make API call - */ - public Document getDocument(String id, Boolean skipContent, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - //Add query params - Map queryParams = new HashMap<>(); - if (skipContent != null) { - queryParams.put("skipContent", skipContent.toString()); - } - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/documents/{id}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return Document.fromJson(jsonResult); - } - - /** - * Update a document - * - * @param id {@link String } The unique identifier of the document to be updated. (required) - * @param document {@link Document } (required) - * @return {@link Document } - * @throws ApiException if fails to make API call - */ - public Document updateDocument(String id, Document document) throws ApiException, IOException { - return updateDocument(id, document, null); - } - - /** - * Update a document - * - * @param id {@link String } The unique identifier of the document to be updated. (required) - * @param document {@link Document } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link Document } - * @throws ApiException if fails to make API call - */ - public Document updateDocument(String id, Document document, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = document.toJson(); - Resource resource = new Resource(this, this.baseURL + "/documents/{id}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return Document.fromJson(jsonResult); + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/documents/{id}", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); + } + + /** + * Get a document + * + * @param id {@link String } The unique identifier of the document. (required) + * @return {@link Document } + * @throws ApiException if fails to make API call + */ + public Document getDocument(String id) throws ApiException, IOException { + return getDocument(id, null, null); + } + + /** + * Get a document + * + * @param id {@link String } The unique identifier of the document. (required) + * @param skipContent {@link Boolean } Query: Do not load document content while fetching the + * document. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link Document } + * @throws ApiException if fails to make API call + */ + public Document getDocument(String id, Boolean skipContent, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); - /** - * Upload a document for verification checks - * - * @param document {@link Document } (required) - * @return {@link Document } - * @throws ApiException if fails to make API call - */ - public Document uploadDocumentForVerificationChecks(Document document) throws ApiException, IOException { - return uploadDocumentForVerificationChecks(document, null); + // Add query params + Map queryParams = new HashMap<>(); + if (skipContent != null) { + queryParams.put("skipContent", skipContent.toString()); } - /** - * Upload a document for verification checks - * - * @param document {@link Document } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link Document } - * @throws ApiException if fails to make API call - */ - public Document uploadDocumentForVerificationChecks(Document document, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = document.toJson(); - Resource resource = new Resource(this, this.baseURL + "/documents", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return Document.fromJson(jsonResult); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/documents/{id}", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return Document.fromJson(jsonResult); + } + + /** + * Update a document + * + * @param id {@link String } The unique identifier of the document to be updated. (required) + * @param document {@link Document } (required) + * @return {@link Document } + * @throws ApiException if fails to make API call + */ + public Document updateDocument(String id, Document document) throws ApiException, IOException { + return updateDocument(id, document, null); + } + + /** + * Update a document + * + * @param id {@link String } The unique identifier of the document to be updated. (required) + * @param document {@link Document } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link Document } + * @throws ApiException if fails to make API call + */ + public Document updateDocument(String id, Document document, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); + + String requestBody = document.toJson(); + Resource resource = new Resource(this, this.baseURL + "/documents/{id}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return Document.fromJson(jsonResult); + } + + /** + * Upload a document for verification checks + * + * @param document {@link Document } (required) + * @return {@link Document } + * @throws ApiException if fails to make API call + */ + public Document uploadDocumentForVerificationChecks(Document document) + throws ApiException, IOException { + return uploadDocumentForVerificationChecks(document, null); + } + + /** + * Upload a document for verification checks + * + * @param document {@link Document } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link Document } + * @throws ApiException if fails to make API call + */ + public Document uploadDocumentForVerificationChecks( + Document document, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = document.toJson(); + Resource resource = new Resource(this, this.baseURL + "/documents", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return Document.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/legalentitymanagement/HostedOnboardingApi.java b/src/main/java/com/adyen/service/legalentitymanagement/HostedOnboardingApi.java index 7b91a14ae..dbe900695 100644 --- a/src/main/java/com/adyen/service/legalentitymanagement/HostedOnboardingApi.java +++ b/src/main/java/com/adyen/service/legalentitymanagement/HostedOnboardingApi.java @@ -2,7 +2,7 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,134 +14,147 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.legalentitymanagement.OnboardingLink; import com.adyen.model.legalentitymanagement.OnboardingLinkInfo; import com.adyen.model.legalentitymanagement.OnboardingTheme; import com.adyen.model.legalentitymanagement.OnboardingThemes; -import com.adyen.model.legalentitymanagement.ServiceError; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class HostedOnboardingApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * Hosted Onboarding constructor in {@link com.adyen.service.legalentitymanagement package}. - * @param client {@link Client } (required) - */ - public HostedOnboardingApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://kyc-test.adyen.com/lem/v3"); + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * Hosted Onboarding constructor in {@link com.adyen.service.legalentitymanagement package}. + * + * @param client {@link Client } (required) + */ + public HostedOnboardingApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://kyc-test.adyen.com/lem/v3"); + } + + /** + * Hosted Onboarding constructor in {@link com.adyen.service.legalentitymanagement package}. + * Please use this constructor only if you would like to pass along your own url for routing or + * testing purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public HostedOnboardingApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Get a link to an Adyen-hosted onboarding page + * + * @param id {@link String } The unique identifier of the legal entity (required) + * @param onboardingLinkInfo {@link OnboardingLinkInfo } (required) + * @return {@link OnboardingLink } + * @throws ApiException if fails to make API call + */ + public OnboardingLink getLinkToAdyenhostedOnboardingPage( + String id, OnboardingLinkInfo onboardingLinkInfo) throws ApiException, IOException { + return getLinkToAdyenhostedOnboardingPage(id, onboardingLinkInfo, null); + } + + /** + * Get a link to an Adyen-hosted onboarding page + * + * @param id {@link String } The unique identifier of the legal entity (required) + * @param onboardingLinkInfo {@link OnboardingLinkInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link OnboardingLink } + * @throws ApiException if fails to make API call + */ + public OnboardingLink getLinkToAdyenhostedOnboardingPage( + String id, OnboardingLinkInfo onboardingLinkInfo, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } - - /** - * Hosted Onboarding constructor in {@link com.adyen.service.legalentitymanagement package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public HostedOnboardingApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Get a link to an Adyen-hosted onboarding page - * - * @param id {@link String } The unique identifier of the legal entity (required) - * @param onboardingLinkInfo {@link OnboardingLinkInfo } (required) - * @return {@link OnboardingLink } - * @throws ApiException if fails to make API call - */ - public OnboardingLink getLinkToAdyenhostedOnboardingPage(String id, OnboardingLinkInfo onboardingLinkInfo) throws ApiException, IOException { - return getLinkToAdyenhostedOnboardingPage(id, onboardingLinkInfo, null); - } - - /** - * Get a link to an Adyen-hosted onboarding page - * - * @param id {@link String } The unique identifier of the legal entity (required) - * @param onboardingLinkInfo {@link OnboardingLinkInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link OnboardingLink } - * @throws ApiException if fails to make API call - */ - public OnboardingLink getLinkToAdyenhostedOnboardingPage(String id, OnboardingLinkInfo onboardingLinkInfo, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = onboardingLinkInfo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}/onboardingLinks", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return OnboardingLink.fromJson(jsonResult); - } - - /** - * Get an onboarding link theme - * - * @param id {@link String } The unique identifier of the theme (required) - * @return {@link OnboardingTheme } - * @throws ApiException if fails to make API call - */ - public OnboardingTheme getOnboardingLinkTheme(String id) throws ApiException, IOException { - return getOnboardingLinkTheme(id, null); - } - - /** - * Get an onboarding link theme - * - * @param id {@link String } The unique identifier of the theme (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link OnboardingTheme } - * @throws ApiException if fails to make API call - */ - public OnboardingTheme getOnboardingLinkTheme(String id, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/themes/{id}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return OnboardingTheme.fromJson(jsonResult); - } - - /** - * Get a list of hosted onboarding page themes - * - * @return {@link OnboardingThemes } - * @throws ApiException if fails to make API call - */ - public OnboardingThemes listHostedOnboardingPageThemes() throws ApiException, IOException { - return listHostedOnboardingPageThemes(null); - } - - /** - * Get a list of hosted onboarding page themes - * - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link OnboardingThemes } - * @throws ApiException if fails to make API call - */ - public OnboardingThemes listHostedOnboardingPageThemes(RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/themes", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null); - return OnboardingThemes.fromJson(jsonResult); + pathParams.put("id", id); + + String requestBody = onboardingLinkInfo.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/legalEntities/{id}/onboardingLinks", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return OnboardingLink.fromJson(jsonResult); + } + + /** + * Get an onboarding link theme + * + * @param id {@link String } The unique identifier of the theme (required) + * @return {@link OnboardingTheme } + * @throws ApiException if fails to make API call + */ + public OnboardingTheme getOnboardingLinkTheme(String id) throws ApiException, IOException { + return getOnboardingLinkTheme(id, null); + } + + /** + * Get an onboarding link theme + * + * @param id {@link String } The unique identifier of the theme (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link OnboardingTheme } + * @throws ApiException if fails to make API call + */ + public OnboardingTheme getOnboardingLinkTheme(String id, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/themes/{id}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return OnboardingTheme.fromJson(jsonResult); + } + + /** + * Get a list of hosted onboarding page themes + * + * @return {@link OnboardingThemes } + * @throws ApiException if fails to make API call + */ + public OnboardingThemes listHostedOnboardingPageThemes() throws ApiException, IOException { + return listHostedOnboardingPageThemes(null); + } + + /** + * Get a list of hosted onboarding page themes + * + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link OnboardingThemes } + * @throws ApiException if fails to make API call + */ + public OnboardingThemes listHostedOnboardingPageThemes(RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/themes", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null); + return OnboardingThemes.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/legalentitymanagement/LegalEntitiesApi.java b/src/main/java/com/adyen/service/legalentitymanagement/LegalEntitiesApi.java index df2011173..70dc02e68 100644 --- a/src/main/java/com/adyen/service/legalentitymanagement/LegalEntitiesApi.java +++ b/src/main/java/com/adyen/service/legalentitymanagement/LegalEntitiesApi.java @@ -2,7 +2,7 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,237 +14,266 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.legalentitymanagement.BusinessLines; import com.adyen.model.legalentitymanagement.DataReviewConfirmationResponse; import com.adyen.model.legalentitymanagement.LegalEntity; import com.adyen.model.legalentitymanagement.LegalEntityInfo; import com.adyen.model.legalentitymanagement.LegalEntityInfoRequiredType; -import com.adyen.model.legalentitymanagement.ServiceError; import com.adyen.model.legalentitymanagement.VerificationErrors; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class LegalEntitiesApi extends Service { - public static final String API_VERSION = "3"; + public static final String API_VERSION = "3"; - protected String baseURL; + protected String baseURL; - /** - * Legal entities constructor in {@link com.adyen.service.legalentitymanagement package}. - * @param client {@link Client } (required) - */ - public LegalEntitiesApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://kyc-test.adyen.com/lem/v3"); - } + /** + * Legal entities constructor in {@link com.adyen.service.legalentitymanagement package}. + * + * @param client {@link Client } (required) + */ + public LegalEntitiesApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://kyc-test.adyen.com/lem/v3"); + } - /** - * Legal entities constructor in {@link com.adyen.service.legalentitymanagement package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public LegalEntitiesApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Legal entities constructor in {@link com.adyen.service.legalentitymanagement package}. Please + * use this constructor only if you would like to pass along your own url for routing or testing + * purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public LegalEntitiesApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Check a legal entity's verification errors - * - * @param id {@link String } The unique identifier of the legal entity. (required) - * @return {@link VerificationErrors } - * @throws ApiException if fails to make API call - */ - public VerificationErrors checkLegalEntitysVerificationErrors(String id) throws ApiException, IOException { - return checkLegalEntitysVerificationErrors(id, null); - } + /** + * Check a legal entity's verification errors + * + * @param id {@link String } The unique identifier of the legal entity. (required) + * @return {@link VerificationErrors } + * @throws ApiException if fails to make API call + */ + public VerificationErrors checkLegalEntitysVerificationErrors(String id) + throws ApiException, IOException { + return checkLegalEntitysVerificationErrors(id, null); + } - /** - * Check a legal entity's verification errors - * - * @param id {@link String } The unique identifier of the legal entity. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link VerificationErrors } - * @throws ApiException if fails to make API call - */ - public VerificationErrors checkLegalEntitysVerificationErrors(String id, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}/checkVerificationErrors", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return VerificationErrors.fromJson(jsonResult); + /** + * Check a legal entity's verification errors + * + * @param id {@link String } The unique identifier of the legal entity. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link VerificationErrors } + * @throws ApiException if fails to make API call + */ + public VerificationErrors checkLegalEntitysVerificationErrors( + String id, RequestOptions requestOptions) throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); - /** - * Confirm data review - * - * @param id {@link String } The unique identifier of the legal entity. (required) - * @return {@link DataReviewConfirmationResponse } - * @throws ApiException if fails to make API call - */ - public DataReviewConfirmationResponse confirmDataReview(String id) throws ApiException, IOException { - return confirmDataReview(id, null); - } + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/legalEntities/{id}/checkVerificationErrors", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return VerificationErrors.fromJson(jsonResult); + } - /** - * Confirm data review - * - * @param id {@link String } The unique identifier of the legal entity. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link DataReviewConfirmationResponse } - * @throws ApiException if fails to make API call - */ - public DataReviewConfirmationResponse confirmDataReview(String id, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}/confirmDataReview", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return DataReviewConfirmationResponse.fromJson(jsonResult); - } + /** + * Confirm data review + * + * @param id {@link String } The unique identifier of the legal entity. (required) + * @return {@link DataReviewConfirmationResponse } + * @throws ApiException if fails to make API call + */ + public DataReviewConfirmationResponse confirmDataReview(String id) + throws ApiException, IOException { + return confirmDataReview(id, null); + } - /** - * Create a legal entity - * - * @param legalEntityInfoRequiredType {@link LegalEntityInfoRequiredType } (required) - * @return {@link LegalEntity } - * @throws ApiException if fails to make API call - */ - public LegalEntity createLegalEntity(LegalEntityInfoRequiredType legalEntityInfoRequiredType) throws ApiException, IOException { - return createLegalEntity(legalEntityInfoRequiredType, null); + /** + * Confirm data review + * + * @param id {@link String } The unique identifier of the legal entity. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link DataReviewConfirmationResponse } + * @throws ApiException if fails to make API call + */ + public DataReviewConfirmationResponse confirmDataReview(String id, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); - /** - * Create a legal entity - * - * @param legalEntityInfoRequiredType {@link LegalEntityInfoRequiredType } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link LegalEntity } - * @throws ApiException if fails to make API call - */ - public LegalEntity createLegalEntity(LegalEntityInfoRequiredType legalEntityInfoRequiredType, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = legalEntityInfoRequiredType.toJson(); - Resource resource = new Resource(this, this.baseURL + "/legalEntities", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return LegalEntity.fromJson(jsonResult); - } + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/legalEntities/{id}/confirmDataReview", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return DataReviewConfirmationResponse.fromJson(jsonResult); + } - /** - * Get all business lines under a legal entity - * - * @param id {@link String } The unique identifier of the legal entity. (required) - * @return {@link BusinessLines } - * @throws ApiException if fails to make API call - */ - public BusinessLines getAllBusinessLinesUnderLegalEntity(String id) throws ApiException, IOException { - return getAllBusinessLinesUnderLegalEntity(id, null); - } + /** + * Create a legal entity + * + * @param legalEntityInfoRequiredType {@link LegalEntityInfoRequiredType } (required) + * @return {@link LegalEntity } + * @throws ApiException if fails to make API call + */ + public LegalEntity createLegalEntity(LegalEntityInfoRequiredType legalEntityInfoRequiredType) + throws ApiException, IOException { + return createLegalEntity(legalEntityInfoRequiredType, null); + } - /** - * Get all business lines under a legal entity - * - * @param id {@link String } The unique identifier of the legal entity. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link BusinessLines } - * @throws ApiException if fails to make API call - */ - public BusinessLines getAllBusinessLinesUnderLegalEntity(String id, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}/businessLines", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return BusinessLines.fromJson(jsonResult); - } + /** + * Create a legal entity + * + * @param legalEntityInfoRequiredType {@link LegalEntityInfoRequiredType } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link LegalEntity } + * @throws ApiException if fails to make API call + */ + public LegalEntity createLegalEntity( + LegalEntityInfoRequiredType legalEntityInfoRequiredType, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = legalEntityInfoRequiredType.toJson(); + Resource resource = new Resource(this, this.baseURL + "/legalEntities", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return LegalEntity.fromJson(jsonResult); + } - /** - * Get a legal entity - * - * @param id {@link String } The unique identifier of the legal entity. (required) - * @return {@link LegalEntity } - * @throws ApiException if fails to make API call - */ - public LegalEntity getLegalEntity(String id) throws ApiException, IOException { - return getLegalEntity(id, null); - } + /** + * Get all business lines under a legal entity + * + * @param id {@link String } The unique identifier of the legal entity. (required) + * @return {@link BusinessLines } + * @throws ApiException if fails to make API call + */ + public BusinessLines getAllBusinessLinesUnderLegalEntity(String id) + throws ApiException, IOException { + return getAllBusinessLinesUnderLegalEntity(id, null); + } - /** - * Get a legal entity - * - * @param id {@link String } The unique identifier of the legal entity. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link LegalEntity } - * @throws ApiException if fails to make API call - */ - public LegalEntity getLegalEntity(String id, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return LegalEntity.fromJson(jsonResult); + /** + * Get all business lines under a legal entity + * + * @param id {@link String } The unique identifier of the legal entity. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link BusinessLines } + * @throws ApiException if fails to make API call + */ + public BusinessLines getAllBusinessLinesUnderLegalEntity(String id, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/legalEntities/{id}/businessLines", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return BusinessLines.fromJson(jsonResult); + } - /** - * Update a legal entity - * - * @param id {@link String } The unique identifier of the legal entity. (required) - * @param legalEntityInfo {@link LegalEntityInfo } (required) - * @return {@link LegalEntity } - * @throws ApiException if fails to make API call - */ - public LegalEntity updateLegalEntity(String id, LegalEntityInfo legalEntityInfo) throws ApiException, IOException { - return updateLegalEntity(id, legalEntityInfo, null); + /** + * Get a legal entity + * + * @param id {@link String } The unique identifier of the legal entity. (required) + * @return {@link LegalEntity } + * @throws ApiException if fails to make API call + */ + public LegalEntity getLegalEntity(String id) throws ApiException, IOException { + return getLegalEntity(id, null); + } + + /** + * Get a legal entity + * + * @param id {@link String } The unique identifier of the legal entity. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link LegalEntity } + * @throws ApiException if fails to make API call + */ + public LegalEntity getLegalEntity(String id, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return LegalEntity.fromJson(jsonResult); + } - /** - * Update a legal entity - * - * @param id {@link String } The unique identifier of the legal entity. (required) - * @param legalEntityInfo {@link LegalEntityInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link LegalEntity } - * @throws ApiException if fails to make API call - */ - public LegalEntity updateLegalEntity(String id, LegalEntityInfo legalEntityInfo, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = legalEntityInfo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return LegalEntity.fromJson(jsonResult); + /** + * Update a legal entity + * + * @param id {@link String } The unique identifier of the legal entity. (required) + * @param legalEntityInfo {@link LegalEntityInfo } (required) + * @return {@link LegalEntity } + * @throws ApiException if fails to make API call + */ + public LegalEntity updateLegalEntity(String id, LegalEntityInfo legalEntityInfo) + throws ApiException, IOException { + return updateLegalEntity(id, legalEntityInfo, null); + } + + /** + * Update a legal entity + * + * @param id {@link String } The unique identifier of the legal entity. (required) + * @param legalEntityInfo {@link LegalEntityInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link LegalEntity } + * @throws ApiException if fails to make API call + */ + public LegalEntity updateLegalEntity( + String id, LegalEntityInfo legalEntityInfo, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); + + String requestBody = legalEntityInfo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return LegalEntity.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/legalentitymanagement/PciQuestionnairesApi.java b/src/main/java/com/adyen/service/legalentitymanagement/PciQuestionnairesApi.java index e9e7b2d1e..a89b0288d 100644 --- a/src/main/java/com/adyen/service/legalentitymanagement/PciQuestionnairesApi.java +++ b/src/main/java/com/adyen/service/legalentitymanagement/PciQuestionnairesApi.java @@ -2,7 +2,7 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,6 +14,7 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.legalentitymanagement.CalculatePciStatusRequest; import com.adyen.model.legalentitymanagement.CalculatePciStatusResponse; import com.adyen.model.legalentitymanagement.GeneratePciDescriptionRequest; @@ -22,215 +23,262 @@ import com.adyen.model.legalentitymanagement.GetPciQuestionnaireResponse; import com.adyen.model.legalentitymanagement.PciSigningRequest; import com.adyen.model.legalentitymanagement.PciSigningResponse; -import com.adyen.model.legalentitymanagement.ServiceError; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class PciQuestionnairesApi extends Service { - public static final String API_VERSION = "3"; + public static final String API_VERSION = "3"; - protected String baseURL; + protected String baseURL; - /** - * PCI questionnaires constructor in {@link com.adyen.service.legalentitymanagement package}. - * @param client {@link Client } (required) - */ - public PciQuestionnairesApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://kyc-test.adyen.com/lem/v3"); - } + /** + * PCI questionnaires constructor in {@link com.adyen.service.legalentitymanagement package}. + * + * @param client {@link Client } (required) + */ + public PciQuestionnairesApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://kyc-test.adyen.com/lem/v3"); + } - /** - * PCI questionnaires constructor in {@link com.adyen.service.legalentitymanagement package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public PciQuestionnairesApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * PCI questionnaires constructor in {@link com.adyen.service.legalentitymanagement package}. + * Please use this constructor only if you would like to pass along your own url for routing or + * testing purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public PciQuestionnairesApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Calculate PCI status of a legal entity - * - * @param id {@link String } The unique identifier of the legal entity to calculate PCI status. (required) - * @param calculatePciStatusRequest {@link CalculatePciStatusRequest } (required) - * @return {@link CalculatePciStatusResponse } - * @throws ApiException if fails to make API call - */ - public CalculatePciStatusResponse calculatePciStatusOfLegalEntity(String id, CalculatePciStatusRequest calculatePciStatusRequest) throws ApiException, IOException { - return calculatePciStatusOfLegalEntity(id, calculatePciStatusRequest, null); - } + /** + * Calculate PCI status of a legal entity + * + * @param id {@link String } The unique identifier of the legal entity to calculate PCI status. + * (required) + * @param calculatePciStatusRequest {@link CalculatePciStatusRequest } (required) + * @return {@link CalculatePciStatusResponse } + * @throws ApiException if fails to make API call + */ + public CalculatePciStatusResponse calculatePciStatusOfLegalEntity( + String id, CalculatePciStatusRequest calculatePciStatusRequest) + throws ApiException, IOException { + return calculatePciStatusOfLegalEntity(id, calculatePciStatusRequest, null); + } - /** - * Calculate PCI status of a legal entity - * - * @param id {@link String } The unique identifier of the legal entity to calculate PCI status. (required) - * @param calculatePciStatusRequest {@link CalculatePciStatusRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link CalculatePciStatusResponse } - * @throws ApiException if fails to make API call - */ - public CalculatePciStatusResponse calculatePciStatusOfLegalEntity(String id, CalculatePciStatusRequest calculatePciStatusRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = calculatePciStatusRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}/pciQuestionnaires/signingRequired", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return CalculatePciStatusResponse.fromJson(jsonResult); + /** + * Calculate PCI status of a legal entity + * + * @param id {@link String } The unique identifier of the legal entity to calculate PCI status. + * (required) + * @param calculatePciStatusRequest {@link CalculatePciStatusRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link CalculatePciStatusResponse } + * @throws ApiException if fails to make API call + */ + public CalculatePciStatusResponse calculatePciStatusOfLegalEntity( + String id, CalculatePciStatusRequest calculatePciStatusRequest, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); - /** - * Generate PCI questionnaire - * - * @param id {@link String } The unique identifier of the legal entity to get PCI questionnaire information. (required) - * @param generatePciDescriptionRequest {@link GeneratePciDescriptionRequest } (required) - * @return {@link GeneratePciDescriptionResponse } - * @throws ApiException if fails to make API call - */ - public GeneratePciDescriptionResponse generatePciQuestionnaire(String id, GeneratePciDescriptionRequest generatePciDescriptionRequest) throws ApiException, IOException { - return generatePciQuestionnaire(id, generatePciDescriptionRequest, null); - } + String requestBody = calculatePciStatusRequest.toJson(); + Resource resource = + new Resource( + this, this.baseURL + "/legalEntities/{id}/pciQuestionnaires/signingRequired", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return CalculatePciStatusResponse.fromJson(jsonResult); + } - /** - * Generate PCI questionnaire - * - * @param id {@link String } The unique identifier of the legal entity to get PCI questionnaire information. (required) - * @param generatePciDescriptionRequest {@link GeneratePciDescriptionRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link GeneratePciDescriptionResponse } - * @throws ApiException if fails to make API call - */ - public GeneratePciDescriptionResponse generatePciQuestionnaire(String id, GeneratePciDescriptionRequest generatePciDescriptionRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = generatePciDescriptionRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}/pciQuestionnaires/generatePciTemplates", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return GeneratePciDescriptionResponse.fromJson(jsonResult); - } + /** + * Generate PCI questionnaire + * + * @param id {@link String } The unique identifier of the legal entity to get PCI questionnaire + * information. (required) + * @param generatePciDescriptionRequest {@link GeneratePciDescriptionRequest } (required) + * @return {@link GeneratePciDescriptionResponse } + * @throws ApiException if fails to make API call + */ + public GeneratePciDescriptionResponse generatePciQuestionnaire( + String id, GeneratePciDescriptionRequest generatePciDescriptionRequest) + throws ApiException, IOException { + return generatePciQuestionnaire(id, generatePciDescriptionRequest, null); + } - /** - * Get PCI questionnaire - * - * @param id {@link String } The legal entity ID of the individual who signed the PCI questionnaire. (required) - * @param pciid {@link String } The unique identifier of the signed PCI questionnaire. (required) - * @return {@link GetPciQuestionnaireResponse } - * @throws ApiException if fails to make API call - */ - public GetPciQuestionnaireResponse getPciQuestionnaire(String id, String pciid) throws ApiException, IOException { - return getPciQuestionnaire(id, pciid, null); + /** + * Generate PCI questionnaire + * + * @param id {@link String } The unique identifier of the legal entity to get PCI questionnaire + * information. (required) + * @param generatePciDescriptionRequest {@link GeneratePciDescriptionRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link GeneratePciDescriptionResponse } + * @throws ApiException if fails to make API call + */ + public GeneratePciDescriptionResponse generatePciQuestionnaire( + String id, + GeneratePciDescriptionRequest generatePciDescriptionRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); - /** - * Get PCI questionnaire - * - * @param id {@link String } The legal entity ID of the individual who signed the PCI questionnaire. (required) - * @param pciid {@link String } The unique identifier of the signed PCI questionnaire. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link GetPciQuestionnaireResponse } - * @throws ApiException if fails to make API call - */ - public GetPciQuestionnaireResponse getPciQuestionnaire(String id, String pciid, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - if (pciid == null) { - throw new IllegalArgumentException("Please provide the pciid path parameter"); - } - pathParams.put("pciid", pciid); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}/pciQuestionnaires/{pciid}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return GetPciQuestionnaireResponse.fromJson(jsonResult); - } + String requestBody = generatePciDescriptionRequest.toJson(); + Resource resource = + new Resource( + this, + this.baseURL + "/legalEntities/{id}/pciQuestionnaires/generatePciTemplates", + null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return GeneratePciDescriptionResponse.fromJson(jsonResult); + } - /** - * Get PCI questionnaire details - * - * @param id {@link String } The unique identifier of the legal entity to get PCI questionnaire information. (required) - * @return {@link GetPciQuestionnaireInfosResponse } - * @throws ApiException if fails to make API call - */ - public GetPciQuestionnaireInfosResponse getPciQuestionnaireDetails(String id) throws ApiException, IOException { - return getPciQuestionnaireDetails(id, null); - } + /** + * Get PCI questionnaire + * + * @param id {@link String } The legal entity ID of the individual who signed the PCI + * questionnaire. (required) + * @param pciid {@link String } The unique identifier of the signed PCI questionnaire. (required) + * @return {@link GetPciQuestionnaireResponse } + * @throws ApiException if fails to make API call + */ + public GetPciQuestionnaireResponse getPciQuestionnaire(String id, String pciid) + throws ApiException, IOException { + return getPciQuestionnaire(id, pciid, null); + } - /** - * Get PCI questionnaire details - * - * @param id {@link String } The unique identifier of the legal entity to get PCI questionnaire information. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link GetPciQuestionnaireInfosResponse } - * @throws ApiException if fails to make API call - */ - public GetPciQuestionnaireInfosResponse getPciQuestionnaireDetails(String id, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}/pciQuestionnaires", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return GetPciQuestionnaireInfosResponse.fromJson(jsonResult); + /** + * Get PCI questionnaire + * + * @param id {@link String } The legal entity ID of the individual who signed the PCI + * questionnaire. (required) + * @param pciid {@link String } The unique identifier of the signed PCI questionnaire. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link GetPciQuestionnaireResponse } + * @throws ApiException if fails to make API call + */ + public GetPciQuestionnaireResponse getPciQuestionnaire( + String id, String pciid, RequestOptions requestOptions) throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); + if (pciid == null) { + throw new IllegalArgumentException("Please provide the pciid path parameter"); + } + pathParams.put("pciid", pciid); + + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/legalEntities/{id}/pciQuestionnaires/{pciid}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return GetPciQuestionnaireResponse.fromJson(jsonResult); + } - /** - * Sign PCI questionnaire - * - * @param id {@link String } The legal entity ID of the user that has a contractual relationship with your platform. (required) - * @param pciSigningRequest {@link PciSigningRequest } (required) - * @return {@link PciSigningResponse } - * @throws ApiException if fails to make API call - */ - public PciSigningResponse signPciQuestionnaire(String id, PciSigningRequest pciSigningRequest) throws ApiException, IOException { - return signPciQuestionnaire(id, pciSigningRequest, null); + /** + * Get PCI questionnaire details + * + * @param id {@link String } The unique identifier of the legal entity to get PCI questionnaire + * information. (required) + * @return {@link GetPciQuestionnaireInfosResponse } + * @throws ApiException if fails to make API call + */ + public GetPciQuestionnaireInfosResponse getPciQuestionnaireDetails(String id) + throws ApiException, IOException { + return getPciQuestionnaireDetails(id, null); + } + + /** + * Get PCI questionnaire details + * + * @param id {@link String } The unique identifier of the legal entity to get PCI questionnaire + * information. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link GetPciQuestionnaireInfosResponse } + * @throws ApiException if fails to make API call + */ + public GetPciQuestionnaireInfosResponse getPciQuestionnaireDetails( + String id, RequestOptions requestOptions) throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/legalEntities/{id}/pciQuestionnaires", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return GetPciQuestionnaireInfosResponse.fromJson(jsonResult); + } - /** - * Sign PCI questionnaire - * - * @param id {@link String } The legal entity ID of the user that has a contractual relationship with your platform. (required) - * @param pciSigningRequest {@link PciSigningRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PciSigningResponse } - * @throws ApiException if fails to make API call - */ - public PciSigningResponse signPciQuestionnaire(String id, PciSigningRequest pciSigningRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = pciSigningRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}/pciQuestionnaires/signPciTemplates", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return PciSigningResponse.fromJson(jsonResult); + /** + * Sign PCI questionnaire + * + * @param id {@link String } The legal entity ID of the user that has a contractual relationship + * with your platform. (required) + * @param pciSigningRequest {@link PciSigningRequest } (required) + * @return {@link PciSigningResponse } + * @throws ApiException if fails to make API call + */ + public PciSigningResponse signPciQuestionnaire(String id, PciSigningRequest pciSigningRequest) + throws ApiException, IOException { + return signPciQuestionnaire(id, pciSigningRequest, null); + } + + /** + * Sign PCI questionnaire + * + * @param id {@link String } The legal entity ID of the user that has a contractual relationship + * with your platform. (required) + * @param pciSigningRequest {@link PciSigningRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PciSigningResponse } + * @throws ApiException if fails to make API call + */ + public PciSigningResponse signPciQuestionnaire( + String id, PciSigningRequest pciSigningRequest, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); + + String requestBody = pciSigningRequest.toJson(); + Resource resource = + new Resource( + this, this.baseURL + "/legalEntities/{id}/pciQuestionnaires/signPciTemplates", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return PciSigningResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/legalentitymanagement/TaxEDeliveryConsentApi.java b/src/main/java/com/adyen/service/legalentitymanagement/TaxEDeliveryConsentApi.java index 6c4d19eef..caf3daad4 100644 --- a/src/main/java/com/adyen/service/legalentitymanagement/TaxEDeliveryConsentApi.java +++ b/src/main/java/com/adyen/service/legalentitymanagement/TaxEDeliveryConsentApi.java @@ -2,7 +2,7 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,105 +14,134 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.legalentitymanagement.CheckTaxElectronicDeliveryConsentResponse; -import com.adyen.model.legalentitymanagement.ServiceError; import com.adyen.model.legalentitymanagement.SetTaxElectronicDeliveryConsentRequest; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class TaxEDeliveryConsentApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; + public static final String API_VERSION = "3"; - /** - * Tax eDelivery consent constructor in {@link com.adyen.service.legalentitymanagement package}. - * @param client {@link Client } (required) - */ - public TaxEDeliveryConsentApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://kyc-test.adyen.com/lem/v3"); - } + protected String baseURL; - /** - * Tax eDelivery consent constructor in {@link com.adyen.service.legalentitymanagement package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public TaxEDeliveryConsentApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Tax eDelivery consent constructor in {@link com.adyen.service.legalentitymanagement package}. + * + * @param client {@link Client } (required) + */ + public TaxEDeliveryConsentApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://kyc-test.adyen.com/lem/v3"); + } - /** - * Check the status of consent for electronic delivery of tax forms - * - * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization. (required) - * @return {@link CheckTaxElectronicDeliveryConsentResponse } - * @throws ApiException if fails to make API call - */ - public CheckTaxElectronicDeliveryConsentResponse checkStatusOfConsentForElectronicDeliveryOfTaxForms(String id) throws ApiException, IOException { - return checkStatusOfConsentForElectronicDeliveryOfTaxForms(id, null); - } + /** + * Tax eDelivery consent constructor in {@link com.adyen.service.legalentitymanagement package}. + * Please use this constructor only if you would like to pass along your own url for routing or + * testing purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public TaxEDeliveryConsentApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Check the status of consent for electronic delivery of tax forms - * - * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link CheckTaxElectronicDeliveryConsentResponse } - * @throws ApiException if fails to make API call - */ - public CheckTaxElectronicDeliveryConsentResponse checkStatusOfConsentForElectronicDeliveryOfTaxForms(String id, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); + /** + * Check the status of consent for electronic delivery of tax forms + * + * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, + * this is the individual legal entity ID of the owner. For organizations, this is the ID of + * the organization. (required) + * @return {@link CheckTaxElectronicDeliveryConsentResponse } + * @throws ApiException if fails to make API call + */ + public CheckTaxElectronicDeliveryConsentResponse + checkStatusOfConsentForElectronicDeliveryOfTaxForms(String id) + throws ApiException, IOException { + return checkStatusOfConsentForElectronicDeliveryOfTaxForms(id, null); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}/checkTaxElectronicDeliveryConsent", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return CheckTaxElectronicDeliveryConsentResponse.fromJson(jsonResult); + /** + * Check the status of consent for electronic delivery of tax forms + * + * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, + * this is the individual legal entity ID of the owner. For organizations, this is the ID of + * the organization. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link CheckTaxElectronicDeliveryConsentResponse } + * @throws ApiException if fails to make API call + */ + public CheckTaxElectronicDeliveryConsentResponse + checkStatusOfConsentForElectronicDeliveryOfTaxForms(String id, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); - /** - * Set the consent status for electronic delivery of tax forms - * - * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization. (required) - * @param setTaxElectronicDeliveryConsentRequest {@link SetTaxElectronicDeliveryConsentRequest } (required) - * @throws ApiException if fails to make API call - */ - public void setConsentStatusForElectronicDeliveryOfTaxForms(String id, SetTaxElectronicDeliveryConsentRequest setTaxElectronicDeliveryConsentRequest) throws ApiException, IOException { - setConsentStatusForElectronicDeliveryOfTaxForms(id, setTaxElectronicDeliveryConsentRequest, null); - } + String requestBody = null; + Resource resource = + new Resource( + this, this.baseURL + "/legalEntities/{id}/checkTaxElectronicDeliveryConsent", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return CheckTaxElectronicDeliveryConsentResponse.fromJson(jsonResult); + } - /** - * Set the consent status for electronic delivery of tax forms - * - * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization. (required) - * @param setTaxElectronicDeliveryConsentRequest {@link SetTaxElectronicDeliveryConsentRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void setConsentStatusForElectronicDeliveryOfTaxForms(String id, SetTaxElectronicDeliveryConsentRequest setTaxElectronicDeliveryConsentRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); + /** + * Set the consent status for electronic delivery of tax forms + * + * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, + * this is the individual legal entity ID of the owner. For organizations, this is the ID of + * the organization. (required) + * @param setTaxElectronicDeliveryConsentRequest {@link SetTaxElectronicDeliveryConsentRequest } + * (required) + * @throws ApiException if fails to make API call + */ + public void setConsentStatusForElectronicDeliveryOfTaxForms( + String id, SetTaxElectronicDeliveryConsentRequest setTaxElectronicDeliveryConsentRequest) + throws ApiException, IOException { + setConsentStatusForElectronicDeliveryOfTaxForms( + id, setTaxElectronicDeliveryConsentRequest, null); + } - String requestBody = setTaxElectronicDeliveryConsentRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}/setTaxElectronicDeliveryConsent", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + /** + * Set the consent status for electronic delivery of tax forms + * + * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, + * this is the individual legal entity ID of the owner. For organizations, this is the ID of + * the organization. (required) + * @param setTaxElectronicDeliveryConsentRequest {@link SetTaxElectronicDeliveryConsentRequest } + * (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void setConsentStatusForElectronicDeliveryOfTaxForms( + String id, + SetTaxElectronicDeliveryConsentRequest setTaxElectronicDeliveryConsentRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); + + String requestBody = setTaxElectronicDeliveryConsentRequest.toJson(); + Resource resource = + new Resource( + this, this.baseURL + "/legalEntities/{id}/setTaxElectronicDeliveryConsent", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + } } diff --git a/src/main/java/com/adyen/service/legalentitymanagement/TermsOfServiceApi.java b/src/main/java/com/adyen/service/legalentitymanagement/TermsOfServiceApi.java index af06008f2..cceadbc9b 100644 --- a/src/main/java/com/adyen/service/legalentitymanagement/TermsOfServiceApi.java +++ b/src/main/java/com/adyen/service/legalentitymanagement/TermsOfServiceApi.java @@ -2,7 +2,7 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,6 +14,7 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.legalentitymanagement.AcceptTermsOfServiceRequest; import com.adyen.model.legalentitymanagement.AcceptTermsOfServiceResponse; import com.adyen.model.legalentitymanagement.CalculateTermsOfServiceStatusResponse; @@ -21,226 +22,304 @@ import com.adyen.model.legalentitymanagement.GetTermsOfServiceAcceptanceInfosResponse; import com.adyen.model.legalentitymanagement.GetTermsOfServiceDocumentRequest; import com.adyen.model.legalentitymanagement.GetTermsOfServiceDocumentResponse; -import com.adyen.model.legalentitymanagement.ServiceError; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class TermsOfServiceApi extends Service { - public static final String API_VERSION = "3"; + public static final String API_VERSION = "3"; - protected String baseURL; + protected String baseURL; - /** - * Terms of Service constructor in {@link com.adyen.service.legalentitymanagement package}. - * @param client {@link Client } (required) - */ - public TermsOfServiceApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://kyc-test.adyen.com/lem/v3"); - } + /** + * Terms of Service constructor in {@link com.adyen.service.legalentitymanagement package}. + * + * @param client {@link Client } (required) + */ + public TermsOfServiceApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://kyc-test.adyen.com/lem/v3"); + } - /** - * Terms of Service constructor in {@link com.adyen.service.legalentitymanagement package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public TermsOfServiceApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Terms of Service constructor in {@link com.adyen.service.legalentitymanagement package}. Please + * use this constructor only if you would like to pass along your own url for routing or testing + * purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public TermsOfServiceApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Accept Terms of Service - * - * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization. For legal representatives of individuals, this is the ID of the individual. (required) - * @param termsofservicedocumentid {@link String } The unique identifier of the Terms of Service document. (required) - * @param acceptTermsOfServiceRequest {@link AcceptTermsOfServiceRequest } (required) - * @return {@link AcceptTermsOfServiceResponse } - * @throws ApiException if fails to make API call - */ - public AcceptTermsOfServiceResponse acceptTermsOfService(String id, String termsofservicedocumentid, AcceptTermsOfServiceRequest acceptTermsOfServiceRequest) throws ApiException, IOException { - return acceptTermsOfService(id, termsofservicedocumentid, acceptTermsOfServiceRequest, null); - } + /** + * Accept Terms of Service + * + * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, + * this is the individual legal entity ID of the owner. For organizations, this is the ID of + * the organization. For legal representatives of individuals, this is the ID of the + * individual. (required) + * @param termsofservicedocumentid {@link String } The unique identifier of the Terms of Service + * document. (required) + * @param acceptTermsOfServiceRequest {@link AcceptTermsOfServiceRequest } (required) + * @return {@link AcceptTermsOfServiceResponse } + * @throws ApiException if fails to make API call + */ + public AcceptTermsOfServiceResponse acceptTermsOfService( + String id, + String termsofservicedocumentid, + AcceptTermsOfServiceRequest acceptTermsOfServiceRequest) + throws ApiException, IOException { + return acceptTermsOfService(id, termsofservicedocumentid, acceptTermsOfServiceRequest, null); + } - /** - * Accept Terms of Service - * - * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization. For legal representatives of individuals, this is the ID of the individual. (required) - * @param termsofservicedocumentid {@link String } The unique identifier of the Terms of Service document. (required) - * @param acceptTermsOfServiceRequest {@link AcceptTermsOfServiceRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link AcceptTermsOfServiceResponse } - * @throws ApiException if fails to make API call - */ - public AcceptTermsOfServiceResponse acceptTermsOfService(String id, String termsofservicedocumentid, AcceptTermsOfServiceRequest acceptTermsOfServiceRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - if (termsofservicedocumentid == null) { - throw new IllegalArgumentException("Please provide the termsofservicedocumentid path parameter"); - } - pathParams.put("termsofservicedocumentid", termsofservicedocumentid); - - String requestBody = acceptTermsOfServiceRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}/termsOfService/{termsofservicedocumentid}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return AcceptTermsOfServiceResponse.fromJson(jsonResult); + /** + * Accept Terms of Service + * + * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, + * this is the individual legal entity ID of the owner. For organizations, this is the ID of + * the organization. For legal representatives of individuals, this is the ID of the + * individual. (required) + * @param termsofservicedocumentid {@link String } The unique identifier of the Terms of Service + * document. (required) + * @param acceptTermsOfServiceRequest {@link AcceptTermsOfServiceRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link AcceptTermsOfServiceResponse } + * @throws ApiException if fails to make API call + */ + public AcceptTermsOfServiceResponse acceptTermsOfService( + String id, + String termsofservicedocumentid, + AcceptTermsOfServiceRequest acceptTermsOfServiceRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } - - /** - * Get accepted Terms of Service document - * - * @param id {@link String } The unique identifier of the legal entity. For sole proprietorship, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization. (required) - * @param termsofserviceacceptancereference {@link String } An Adyen-generated reference for the accepted Terms of Service. (required) - * @return {@link GetAcceptedTermsOfServiceDocumentResponse } - * @throws ApiException if fails to make API call - */ - public GetAcceptedTermsOfServiceDocumentResponse getAcceptedTermsOfServiceDocument(String id, String termsofserviceacceptancereference) throws ApiException, IOException { - return getAcceptedTermsOfServiceDocument(id, termsofserviceacceptancereference, null, null); + pathParams.put("id", id); + if (termsofservicedocumentid == null) { + throw new IllegalArgumentException( + "Please provide the termsofservicedocumentid path parameter"); } + pathParams.put("termsofservicedocumentid", termsofservicedocumentid); - /** - * Get accepted Terms of Service document - * - * @param id {@link String } The unique identifier of the legal entity. For sole proprietorship, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization. (required) - * @param termsofserviceacceptancereference {@link String } An Adyen-generated reference for the accepted Terms of Service. (required) - * @param termsOfServiceDocumentFormat {@link String } Query: The format of the Terms of Service document. Possible values: **JSON**, **PDF**, or **TXT** (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link GetAcceptedTermsOfServiceDocumentResponse } - * @throws ApiException if fails to make API call - */ - public GetAcceptedTermsOfServiceDocumentResponse getAcceptedTermsOfServiceDocument(String id, String termsofserviceacceptancereference, String termsOfServiceDocumentFormat, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - if (termsofserviceacceptancereference == null) { - throw new IllegalArgumentException("Please provide the termsofserviceacceptancereference path parameter"); - } - pathParams.put("termsofserviceacceptancereference", termsofserviceacceptancereference); - - //Add query params - Map queryParams = new HashMap<>(); - if (termsOfServiceDocumentFormat != null) { - queryParams.put("termsOfServiceDocumentFormat", termsOfServiceDocumentFormat); - } - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}/acceptedTermsOfServiceDocument/{termsofserviceacceptancereference}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return GetAcceptedTermsOfServiceDocumentResponse.fromJson(jsonResult); - } + String requestBody = acceptTermsOfServiceRequest.toJson(); + Resource resource = + new Resource( + this, + this.baseURL + "/legalEntities/{id}/termsOfService/{termsofservicedocumentid}", + null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return AcceptTermsOfServiceResponse.fromJson(jsonResult); + } - /** - * Get Terms of Service document - * - * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization. (required) - * @param getTermsOfServiceDocumentRequest {@link GetTermsOfServiceDocumentRequest } (required) - * @return {@link GetTermsOfServiceDocumentResponse } - * @throws ApiException if fails to make API call - */ - public GetTermsOfServiceDocumentResponse getTermsOfServiceDocument(String id, GetTermsOfServiceDocumentRequest getTermsOfServiceDocumentRequest) throws ApiException, IOException { - return getTermsOfServiceDocument(id, getTermsOfServiceDocumentRequest, null); - } + /** + * Get accepted Terms of Service document + * + * @param id {@link String } The unique identifier of the legal entity. For sole proprietorship, + * this is the individual legal entity ID of the owner. For organizations, this is the ID of + * the organization. (required) + * @param termsofserviceacceptancereference {@link String } An Adyen-generated reference for the + * accepted Terms of Service. (required) + * @return {@link GetAcceptedTermsOfServiceDocumentResponse } + * @throws ApiException if fails to make API call + */ + public GetAcceptedTermsOfServiceDocumentResponse getAcceptedTermsOfServiceDocument( + String id, String termsofserviceacceptancereference) throws ApiException, IOException { + return getAcceptedTermsOfServiceDocument(id, termsofserviceacceptancereference, null, null); + } - /** - * Get Terms of Service document - * - * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization. (required) - * @param getTermsOfServiceDocumentRequest {@link GetTermsOfServiceDocumentRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link GetTermsOfServiceDocumentResponse } - * @throws ApiException if fails to make API call - */ - public GetTermsOfServiceDocumentResponse getTermsOfServiceDocument(String id, GetTermsOfServiceDocumentRequest getTermsOfServiceDocumentRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = getTermsOfServiceDocumentRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}/termsOfService", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return GetTermsOfServiceDocumentResponse.fromJson(jsonResult); + /** + * Get accepted Terms of Service document + * + * @param id {@link String } The unique identifier of the legal entity. For sole proprietorship, + * this is the individual legal entity ID of the owner. For organizations, this is the ID of + * the organization. (required) + * @param termsofserviceacceptancereference {@link String } An Adyen-generated reference for the + * accepted Terms of Service. (required) + * @param termsOfServiceDocumentFormat {@link String } Query: The format of the Terms of Service + * document. Possible values: **JSON**, **PDF**, or **TXT** (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link GetAcceptedTermsOfServiceDocumentResponse } + * @throws ApiException if fails to make API call + */ + public GetAcceptedTermsOfServiceDocumentResponse getAcceptedTermsOfServiceDocument( + String id, + String termsofserviceacceptancereference, + String termsOfServiceDocumentFormat, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + if (termsofserviceacceptancereference == null) { + throw new IllegalArgumentException( + "Please provide the termsofserviceacceptancereference path parameter"); } + pathParams.put("termsofserviceacceptancereference", termsofserviceacceptancereference); - /** - * Get Terms of Service information for a legal entity - * - * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization. (required) - * @return {@link GetTermsOfServiceAcceptanceInfosResponse } - * @throws ApiException if fails to make API call - */ - public GetTermsOfServiceAcceptanceInfosResponse getTermsOfServiceInformationForLegalEntity(String id) throws ApiException, IOException { - return getTermsOfServiceInformationForLegalEntity(id, null); + // Add query params + Map queryParams = new HashMap<>(); + if (termsOfServiceDocumentFormat != null) { + queryParams.put("termsOfServiceDocumentFormat", termsOfServiceDocumentFormat); } - /** - * Get Terms of Service information for a legal entity - * - * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link GetTermsOfServiceAcceptanceInfosResponse } - * @throws ApiException if fails to make API call - */ - public GetTermsOfServiceAcceptanceInfosResponse getTermsOfServiceInformationForLegalEntity(String id, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}/termsOfServiceAcceptanceInfos", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return GetTermsOfServiceAcceptanceInfosResponse.fromJson(jsonResult); + String requestBody = null; + Resource resource = + new Resource( + this, + this.baseURL + + "/legalEntities/{id}/acceptedTermsOfServiceDocument/{termsofserviceacceptancereference}", + null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return GetAcceptedTermsOfServiceDocumentResponse.fromJson(jsonResult); + } + + /** + * Get Terms of Service document + * + * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, + * this is the individual legal entity ID of the owner. For organizations, this is the ID of + * the organization. (required) + * @param getTermsOfServiceDocumentRequest {@link GetTermsOfServiceDocumentRequest } (required) + * @return {@link GetTermsOfServiceDocumentResponse } + * @throws ApiException if fails to make API call + */ + public GetTermsOfServiceDocumentResponse getTermsOfServiceDocument( + String id, GetTermsOfServiceDocumentRequest getTermsOfServiceDocumentRequest) + throws ApiException, IOException { + return getTermsOfServiceDocument(id, getTermsOfServiceDocumentRequest, null); + } + + /** + * Get Terms of Service document + * + * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, + * this is the individual legal entity ID of the owner. For organizations, this is the ID of + * the organization. (required) + * @param getTermsOfServiceDocumentRequest {@link GetTermsOfServiceDocumentRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link GetTermsOfServiceDocumentResponse } + * @throws ApiException if fails to make API call + */ + public GetTermsOfServiceDocumentResponse getTermsOfServiceDocument( + String id, + GetTermsOfServiceDocumentRequest getTermsOfServiceDocumentRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); + + String requestBody = getTermsOfServiceDocumentRequest.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/legalEntities/{id}/termsOfService", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return GetTermsOfServiceDocumentResponse.fromJson(jsonResult); + } - /** - * Get Terms of Service status - * - * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization. (required) - * @return {@link CalculateTermsOfServiceStatusResponse } - * @throws ApiException if fails to make API call - */ - public CalculateTermsOfServiceStatusResponse getTermsOfServiceStatus(String id) throws ApiException, IOException { - return getTermsOfServiceStatus(id, null); + /** + * Get Terms of Service information for a legal entity + * + * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, + * this is the individual legal entity ID of the owner. For organizations, this is the ID of + * the organization. (required) + * @return {@link GetTermsOfServiceAcceptanceInfosResponse } + * @throws ApiException if fails to make API call + */ + public GetTermsOfServiceAcceptanceInfosResponse getTermsOfServiceInformationForLegalEntity( + String id) throws ApiException, IOException { + return getTermsOfServiceInformationForLegalEntity(id, null); + } + + /** + * Get Terms of Service information for a legal entity + * + * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, + * this is the individual legal entity ID of the owner. For organizations, this is the ID of + * the organization. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link GetTermsOfServiceAcceptanceInfosResponse } + * @throws ApiException if fails to make API call + */ + public GetTermsOfServiceAcceptanceInfosResponse getTermsOfServiceInformationForLegalEntity( + String id, RequestOptions requestOptions) throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = + new Resource( + this, this.baseURL + "/legalEntities/{id}/termsOfServiceAcceptanceInfos", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return GetTermsOfServiceAcceptanceInfosResponse.fromJson(jsonResult); + } - /** - * Get Terms of Service status - * - * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link CalculateTermsOfServiceStatusResponse } - * @throws ApiException if fails to make API call - */ - public CalculateTermsOfServiceStatusResponse getTermsOfServiceStatus(String id, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/legalEntities/{id}/termsOfServiceStatus", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return CalculateTermsOfServiceStatusResponse.fromJson(jsonResult); + /** + * Get Terms of Service status + * + * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, + * this is the individual legal entity ID of the owner. For organizations, this is the ID of + * the organization. (required) + * @return {@link CalculateTermsOfServiceStatusResponse } + * @throws ApiException if fails to make API call + */ + public CalculateTermsOfServiceStatusResponse getTermsOfServiceStatus(String id) + throws ApiException, IOException { + return getTermsOfServiceStatus(id, null); + } + + /** + * Get Terms of Service status + * + * @param id {@link String } The unique identifier of the legal entity. For sole proprietorships, + * this is the individual legal entity ID of the owner. For organizations, this is the ID of + * the organization. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link CalculateTermsOfServiceStatusResponse } + * @throws ApiException if fails to make API call + */ + public CalculateTermsOfServiceStatusResponse getTermsOfServiceStatus( + String id, RequestOptions requestOptions) throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/legalEntities/{id}/termsOfServiceStatus", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return CalculateTermsOfServiceStatusResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/legalentitymanagement/TransferInstrumentsApi.java b/src/main/java/com/adyen/service/legalentitymanagement/TransferInstrumentsApi.java index 4ef11c340..26ab79350 100644 --- a/src/main/java/com/adyen/service/legalentitymanagement/TransferInstrumentsApi.java +++ b/src/main/java/com/adyen/service/legalentitymanagement/TransferInstrumentsApi.java @@ -2,7 +2,7 @@ * Legal Entity Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,164 +14,182 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.legalentitymanagement.ServiceError; +import com.adyen.model.RequestOptions; import com.adyen.model.legalentitymanagement.TransferInstrument; import com.adyen.model.legalentitymanagement.TransferInstrumentInfo; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class TransferInstrumentsApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * Transfer instruments constructor in {@link com.adyen.service.legalentitymanagement package}. - * @param client {@link Client } (required) - */ - public TransferInstrumentsApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://kyc-test.adyen.com/lem/v3"); - } - - /** - * Transfer instruments constructor in {@link com.adyen.service.legalentitymanagement package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public TransferInstrumentsApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Create a transfer instrument - * - * @param transferInstrumentInfo {@link TransferInstrumentInfo } (required) - * @return {@link TransferInstrument } - * @throws ApiException if fails to make API call - */ - public TransferInstrument createTransferInstrument(TransferInstrumentInfo transferInstrumentInfo) throws ApiException, IOException { - return createTransferInstrument(transferInstrumentInfo, null); - } - - /** - * Create a transfer instrument - * - * @param transferInstrumentInfo {@link TransferInstrumentInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TransferInstrument } - * @throws ApiException if fails to make API call - */ - public TransferInstrument createTransferInstrument(TransferInstrumentInfo transferInstrumentInfo, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = transferInstrumentInfo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/transferInstruments", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return TransferInstrument.fromJson(jsonResult); - } - - /** - * Delete a transfer instrument - * - * @param id {@link String } The unique identifier of the transfer instrument to be deleted. (required) - * @throws ApiException if fails to make API call - */ - public void deleteTransferInstrument(String id) throws ApiException, IOException { - deleteTransferInstrument(id, null); + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * Transfer instruments constructor in {@link com.adyen.service.legalentitymanagement package}. + * + * @param client {@link Client } (required) + */ + public TransferInstrumentsApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://kyc-test.adyen.com/lem/v3"); + } + + /** + * Transfer instruments constructor in {@link com.adyen.service.legalentitymanagement package}. + * Please use this constructor only if you would like to pass along your own url for routing or + * testing purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public TransferInstrumentsApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Create a transfer instrument + * + * @param transferInstrumentInfo {@link TransferInstrumentInfo } (required) + * @return {@link TransferInstrument } + * @throws ApiException if fails to make API call + */ + public TransferInstrument createTransferInstrument(TransferInstrumentInfo transferInstrumentInfo) + throws ApiException, IOException { + return createTransferInstrument(transferInstrumentInfo, null); + } + + /** + * Create a transfer instrument + * + * @param transferInstrumentInfo {@link TransferInstrumentInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TransferInstrument } + * @throws ApiException if fails to make API call + */ + public TransferInstrument createTransferInstrument( + TransferInstrumentInfo transferInstrumentInfo, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = transferInstrumentInfo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/transferInstruments", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return TransferInstrument.fromJson(jsonResult); + } + + /** + * Delete a transfer instrument + * + * @param id {@link String } The unique identifier of the transfer instrument to be deleted. + * (required) + * @throws ApiException if fails to make API call + */ + public void deleteTransferInstrument(String id) throws ApiException, IOException { + deleteTransferInstrument(id, null); + } + + /** + * Delete a transfer instrument + * + * @param id {@link String } The unique identifier of the transfer instrument to be deleted. + * (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void deleteTransferInstrument(String id, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } - - /** - * Delete a transfer instrument - * - * @param id {@link String } The unique identifier of the transfer instrument to be deleted. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void deleteTransferInstrument(String id, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/transferInstruments/{id}", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); - } - - /** - * Get a transfer instrument - * - * @param id {@link String } The unique identifier of the transfer instrument. (required) - * @return {@link TransferInstrument } - * @throws ApiException if fails to make API call - */ - public TransferInstrument getTransferInstrument(String id) throws ApiException, IOException { - return getTransferInstrument(id, null); + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/transferInstruments/{id}", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); + } + + /** + * Get a transfer instrument + * + * @param id {@link String } The unique identifier of the transfer instrument. (required) + * @return {@link TransferInstrument } + * @throws ApiException if fails to make API call + */ + public TransferInstrument getTransferInstrument(String id) throws ApiException, IOException { + return getTransferInstrument(id, null); + } + + /** + * Get a transfer instrument + * + * @param id {@link String } The unique identifier of the transfer instrument. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TransferInstrument } + * @throws ApiException if fails to make API call + */ + public TransferInstrument getTransferInstrument(String id, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } - - /** - * Get a transfer instrument - * - * @param id {@link String } The unique identifier of the transfer instrument. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TransferInstrument } - * @throws ApiException if fails to make API call - */ - public TransferInstrument getTransferInstrument(String id, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/transferInstruments/{id}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TransferInstrument.fromJson(jsonResult); - } - - /** - * Update a transfer instrument - * - * @param id {@link String } The unique identifier of the transfer instrument. (required) - * @param transferInstrumentInfo {@link TransferInstrumentInfo } (required) - * @return {@link TransferInstrument } - * @throws ApiException if fails to make API call - */ - public TransferInstrument updateTransferInstrument(String id, TransferInstrumentInfo transferInstrumentInfo) throws ApiException, IOException { - return updateTransferInstrument(id, transferInstrumentInfo, null); - } - - /** - * Update a transfer instrument - * - * @param id {@link String } The unique identifier of the transfer instrument. (required) - * @param transferInstrumentInfo {@link TransferInstrumentInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TransferInstrument } - * @throws ApiException if fails to make API call - */ - public TransferInstrument updateTransferInstrument(String id, TransferInstrumentInfo transferInstrumentInfo, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = transferInstrumentInfo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/transferInstruments/{id}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return TransferInstrument.fromJson(jsonResult); + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/transferInstruments/{id}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TransferInstrument.fromJson(jsonResult); + } + + /** + * Update a transfer instrument + * + * @param id {@link String } The unique identifier of the transfer instrument. (required) + * @param transferInstrumentInfo {@link TransferInstrumentInfo } (required) + * @return {@link TransferInstrument } + * @throws ApiException if fails to make API call + */ + public TransferInstrument updateTransferInstrument( + String id, TransferInstrumentInfo transferInstrumentInfo) throws ApiException, IOException { + return updateTransferInstrument(id, transferInstrumentInfo, null); + } + + /** + * Update a transfer instrument + * + * @param id {@link String } The unique identifier of the transfer instrument. (required) + * @param transferInstrumentInfo {@link TransferInstrumentInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TransferInstrument } + * @throws ApiException if fails to make API call + */ + public TransferInstrument updateTransferInstrument( + String id, TransferInstrumentInfo transferInstrumentInfo, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); + + String requestBody = transferInstrumentInfo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/transferInstruments/{id}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return TransferInstrument.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/AccountCompanyLevelApi.java b/src/main/java/com/adyen/service/management/AccountCompanyLevelApi.java index 8379a9d7b..116e8c62c 100644 --- a/src/main/java/com/adyen/service/management/AccountCompanyLevelApi.java +++ b/src/main/java/com/adyen/service/management/AccountCompanyLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,153 +14,170 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.management.Company; import com.adyen.model.management.ListCompanyResponse; import com.adyen.model.management.ListMerchantResponse; -import com.adyen.model.management.RestServiceError; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class AccountCompanyLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * Account - company level constructor in {@link com.adyen.service.management package}. - * @param client {@link Client } (required) - */ - public AccountCompanyLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * Account - company level constructor in {@link com.adyen.service.management package}. + * + * @param client {@link Client } (required) + */ + public AccountCompanyLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } + + /** + * Account - company level constructor in {@link com.adyen.service.management package}. Please use + * this constructor only if you would like to pass along your own url for routing or testing + * purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public AccountCompanyLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Get a company account + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @return {@link Company } + * @throws ApiException if fails to make API call + */ + public Company getCompanyAccount(String companyId) throws ApiException, IOException { + return getCompanyAccount(companyId, null); + } + + /** + * Get a company account + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link Company } + * @throws ApiException if fails to make API call + */ + public Company getCompanyAccount(String companyId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } - - /** - * Account - company level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public AccountCompanyLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Get a company account - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @return {@link Company } - * @throws ApiException if fails to make API call - */ - public Company getCompanyAccount(String companyId) throws ApiException, IOException { - return getCompanyAccount(companyId, null); + pathParams.put("companyId", companyId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return Company.fromJson(jsonResult); + } + + /** + * Get a list of company accounts + * + * @return {@link ListCompanyResponse } + * @throws ApiException if fails to make API call + */ + public ListCompanyResponse listCompanyAccounts() throws ApiException, IOException { + return listCompanyAccounts(null, null, null); + } + + /** + * Get a list of company accounts + * + * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The + * default is 10 items on a page. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ListCompanyResponse } + * @throws ApiException if fails to make API call + */ + public ListCompanyResponse listCompanyAccounts( + Integer pageNumber, Integer pageSize, RequestOptions requestOptions) + throws ApiException, IOException { + // Add query params + Map queryParams = new HashMap<>(); + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); } - - /** - * Get a company account - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link Company } - * @throws ApiException if fails to make API call - */ - public Company getCompanyAccount(String companyId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return Company.fromJson(jsonResult); + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); } - /** - * Get a list of company accounts - * - * @return {@link ListCompanyResponse } - * @throws ApiException if fails to make API call - */ - public ListCompanyResponse listCompanyAccounts() throws ApiException, IOException { - return listCompanyAccounts(null, null, null); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); + return ListCompanyResponse.fromJson(jsonResult); + } + + /** + * Get a list of merchant accounts + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @return {@link ListMerchantResponse } + * @throws ApiException if fails to make API call + */ + public ListMerchantResponse listMerchantAccounts(String companyId) + throws ApiException, IOException { + return listMerchantAccounts(companyId, null, null, null); + } + + /** + * Get a list of merchant accounts + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The + * default is 10 items on a page. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ListMerchantResponse } + * @throws ApiException if fails to make API call + */ + public ListMerchantResponse listMerchantAccounts( + String companyId, Integer pageNumber, Integer pageSize, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } + pathParams.put("companyId", companyId); - /** - * Get a list of company accounts - * - * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The default is 10 items on a page. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ListCompanyResponse } - * @throws ApiException if fails to make API call - */ - public ListCompanyResponse listCompanyAccounts(Integer pageNumber, Integer pageSize, RequestOptions requestOptions) throws ApiException, IOException { - //Add query params - Map queryParams = new HashMap<>(); - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); - } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); - } - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); - return ListCompanyResponse.fromJson(jsonResult); + // Add query params + Map queryParams = new HashMap<>(); + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); } - - /** - * Get a list of merchant accounts - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @return {@link ListMerchantResponse } - * @throws ApiException if fails to make API call - */ - public ListMerchantResponse listMerchantAccounts(String companyId) throws ApiException, IOException { - return listMerchantAccounts(companyId, null, null, null); + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); } - /** - * Get a list of merchant accounts - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The default is 10 items on a page. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ListMerchantResponse } - * @throws ApiException if fails to make API call - */ - public ListMerchantResponse listMerchantAccounts(String companyId, Integer pageNumber, Integer pageSize, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - - //Add query params - Map queryParams = new HashMap<>(); - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); - } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); - } - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/merchants", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return ListMerchantResponse.fromJson(jsonResult); - } + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/merchants", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return ListMerchantResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/AccountMerchantLevelApi.java b/src/main/java/com/adyen/service/management/AccountMerchantLevelApi.java index 84648afdf..758098446 100644 --- a/src/main/java/com/adyen/service/management/AccountMerchantLevelApi.java +++ b/src/main/java/com/adyen/service/management/AccountMerchantLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,170 +14,189 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.management.CreateMerchantRequest; import com.adyen.model.management.CreateMerchantResponse; import com.adyen.model.management.ListMerchantResponse; import com.adyen.model.management.Merchant; import com.adyen.model.management.RequestActivationResponse; -import com.adyen.model.management.RestServiceError; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class AccountMerchantLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * Account - merchant level constructor in {@link com.adyen.service.management package}. - * @param client {@link Client } (required) - */ - public AccountMerchantLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } - - /** - * Account - merchant level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public AccountMerchantLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Create a merchant account - * - * @param createMerchantRequest {@link CreateMerchantRequest } (required) - * @return {@link CreateMerchantResponse } - * @throws ApiException if fails to make API call - */ - public CreateMerchantResponse createMerchantAccount(CreateMerchantRequest createMerchantRequest) throws ApiException, IOException { - return createMerchantAccount(createMerchantRequest, null); + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * Account - merchant level constructor in {@link com.adyen.service.management package}. + * + * @param client {@link Client } (required) + */ + public AccountMerchantLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } + + /** + * Account - merchant level constructor in {@link com.adyen.service.management package}. Please + * use this constructor only if you would like to pass along your own url for routing or testing + * purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public AccountMerchantLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Create a merchant account + * + * @param createMerchantRequest {@link CreateMerchantRequest } (required) + * @return {@link CreateMerchantResponse } + * @throws ApiException if fails to make API call + */ + public CreateMerchantResponse createMerchantAccount(CreateMerchantRequest createMerchantRequest) + throws ApiException, IOException { + return createMerchantAccount(createMerchantRequest, null); + } + + /** + * Create a merchant account + * + * @param createMerchantRequest {@link CreateMerchantRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link CreateMerchantResponse } + * @throws ApiException if fails to make API call + */ + public CreateMerchantResponse createMerchantAccount( + CreateMerchantRequest createMerchantRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = createMerchantRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return CreateMerchantResponse.fromJson(jsonResult); + } + + /** + * Get a merchant account + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @return {@link Merchant } + * @throws ApiException if fails to make API call + */ + public Merchant getMerchantAccount(String merchantId) throws ApiException, IOException { + return getMerchantAccount(merchantId, null); + } + + /** + * Get a merchant account + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link Merchant } + * @throws ApiException if fails to make API call + */ + public Merchant getMerchantAccount(String merchantId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } - - /** - * Create a merchant account - * - * @param createMerchantRequest {@link CreateMerchantRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link CreateMerchantResponse } - * @throws ApiException if fails to make API call - */ - public CreateMerchantResponse createMerchantAccount(CreateMerchantRequest createMerchantRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = createMerchantRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return CreateMerchantResponse.fromJson(jsonResult); - } - - /** - * Get a merchant account - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @return {@link Merchant } - * @throws ApiException if fails to make API call - */ - public Merchant getMerchantAccount(String merchantId) throws ApiException, IOException { - return getMerchantAccount(merchantId, null); - } - - /** - * Get a merchant account - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link Merchant } - * @throws ApiException if fails to make API call - */ - public Merchant getMerchantAccount(String merchantId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return Merchant.fromJson(jsonResult); + pathParams.put("merchantId", merchantId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return Merchant.fromJson(jsonResult); + } + + /** + * Get a list of merchant accounts + * + * @return {@link ListMerchantResponse } + * @throws ApiException if fails to make API call + */ + public ListMerchantResponse listMerchantAccounts() throws ApiException, IOException { + return listMerchantAccounts(null, null, null); + } + + /** + * Get a list of merchant accounts + * + * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The + * default is 10 items on a page. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ListMerchantResponse } + * @throws ApiException if fails to make API call + */ + public ListMerchantResponse listMerchantAccounts( + Integer pageNumber, Integer pageSize, RequestOptions requestOptions) + throws ApiException, IOException { + // Add query params + Map queryParams = new HashMap<>(); + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); } - - /** - * Get a list of merchant accounts - * - * @return {@link ListMerchantResponse } - * @throws ApiException if fails to make API call - */ - public ListMerchantResponse listMerchantAccounts() throws ApiException, IOException { - return listMerchantAccounts(null, null, null); - } - - /** - * Get a list of merchant accounts - * - * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The default is 10 items on a page. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ListMerchantResponse } - * @throws ApiException if fails to make API call - */ - public ListMerchantResponse listMerchantAccounts(Integer pageNumber, Integer pageSize, RequestOptions requestOptions) throws ApiException, IOException { - //Add query params - Map queryParams = new HashMap<>(); - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); - } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); - } - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); - return ListMerchantResponse.fromJson(jsonResult); - } - - /** - * Request to activate a merchant account - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @return {@link RequestActivationResponse } - * @throws ApiException if fails to make API call - */ - public RequestActivationResponse requestToActivateMerchantAccount(String merchantId) throws ApiException, IOException { - return requestToActivateMerchantAccount(merchantId, null); + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); } - /** - * Request to activate a merchant account - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link RequestActivationResponse } - * @throws ApiException if fails to make API call - */ - public RequestActivationResponse requestToActivateMerchantAccount(String merchantId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/activate", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return RequestActivationResponse.fromJson(jsonResult); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); + return ListMerchantResponse.fromJson(jsonResult); + } + + /** + * Request to activate a merchant account + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @return {@link RequestActivationResponse } + * @throws ApiException if fails to make API call + */ + public RequestActivationResponse requestToActivateMerchantAccount(String merchantId) + throws ApiException, IOException { + return requestToActivateMerchantAccount(merchantId, null); + } + + /** + * Request to activate a merchant account + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link RequestActivationResponse } + * @throws ApiException if fails to make API call + */ + public RequestActivationResponse requestToActivateMerchantAccount( + String merchantId, RequestOptions requestOptions) throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/activate", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return RequestActivationResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/AccountStoreLevelApi.java b/src/main/java/com/adyen/service/management/AccountStoreLevelApi.java index 73e2de199..6b32bcc40 100644 --- a/src/main/java/com/adyen/service/management/AccountStoreLevelApi.java +++ b/src/main/java/com/adyen/service/management/AccountStoreLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,343 +14,401 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.management.ListStoresResponse; -import com.adyen.model.management.RestServiceError; import com.adyen.model.management.Store; import com.adyen.model.management.StoreCreationRequest; import com.adyen.model.management.StoreCreationWithMerchantCodeRequest; import com.adyen.model.management.UpdateStoreRequest; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class AccountStoreLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * Account - store level constructor in {@link com.adyen.service.management package}. - * @param client {@link Client } (required) - */ - public AccountStoreLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * Account - store level constructor in {@link com.adyen.service.management package}. + * + * @param client {@link Client } (required) + */ + public AccountStoreLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } + + /** + * Account - store level constructor in {@link com.adyen.service.management package}. Please use + * this constructor only if you would like to pass along your own url for routing or testing + * purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public AccountStoreLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Create a store + * + * @param storeCreationWithMerchantCodeRequest {@link StoreCreationWithMerchantCodeRequest } + * (required) + * @return {@link Store } + * @throws ApiException if fails to make API call + */ + public Store createStore( + StoreCreationWithMerchantCodeRequest storeCreationWithMerchantCodeRequest) + throws ApiException, IOException { + return createStore(storeCreationWithMerchantCodeRequest, null); + } + + /** + * Create a store + * + * @param storeCreationWithMerchantCodeRequest {@link StoreCreationWithMerchantCodeRequest } + * (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link Store } + * @throws ApiException if fails to make API call + */ + public Store createStore( + StoreCreationWithMerchantCodeRequest storeCreationWithMerchantCodeRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = storeCreationWithMerchantCodeRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/stores", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return Store.fromJson(jsonResult); + } + + /** + * Create a store + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param storeCreationRequest {@link StoreCreationRequest } (required) + * @return {@link Store } + * @throws ApiException if fails to make API call + */ + public Store createStoreByMerchantId(String merchantId, StoreCreationRequest storeCreationRequest) + throws ApiException, IOException { + return createStoreByMerchantId(merchantId, storeCreationRequest, null); + } + + /** + * Create a store + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param storeCreationRequest {@link StoreCreationRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link Store } + * @throws ApiException if fails to make API call + */ + public Store createStoreByMerchantId( + String merchantId, StoreCreationRequest storeCreationRequest, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } - - /** - * Account - store level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public AccountStoreLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; + pathParams.put("merchantId", merchantId); + + String requestBody = storeCreationRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/stores", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return Store.fromJson(jsonResult); + } + + /** + * Get a store + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param storeId {@link String } The unique identifier of the store. (required) + * @return {@link Store } + * @throws ApiException if fails to make API call + */ + public Store getStore(String merchantId, String storeId) throws ApiException, IOException { + return getStore(merchantId, storeId, null); + } + + /** + * Get a store + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param storeId {@link String } The unique identifier of the store. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link Store } + * @throws ApiException if fails to make API call + */ + public Store getStore(String merchantId, String storeId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } - - /** - * Create a store - * - * @param storeCreationWithMerchantCodeRequest {@link StoreCreationWithMerchantCodeRequest } (required) - * @return {@link Store } - * @throws ApiException if fails to make API call - */ - public Store createStore(StoreCreationWithMerchantCodeRequest storeCreationWithMerchantCodeRequest) throws ApiException, IOException { - return createStore(storeCreationWithMerchantCodeRequest, null); + pathParams.put("merchantId", merchantId); + if (storeId == null) { + throw new IllegalArgumentException("Please provide the storeId path parameter"); } - - /** - * Create a store - * - * @param storeCreationWithMerchantCodeRequest {@link StoreCreationWithMerchantCodeRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link Store } - * @throws ApiException if fails to make API call - */ - public Store createStore(StoreCreationWithMerchantCodeRequest storeCreationWithMerchantCodeRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = storeCreationWithMerchantCodeRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/stores", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return Store.fromJson(jsonResult); + pathParams.put("storeId", storeId); + + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/merchants/{merchantId}/stores/{storeId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return Store.fromJson(jsonResult); + } + + /** + * Get a store + * + * @param storeId {@link String } The unique identifier of the store. (required) + * @return {@link Store } + * @throws ApiException if fails to make API call + */ + public Store getStoreById(String storeId) throws ApiException, IOException { + return getStoreById(storeId, null); + } + + /** + * Get a store + * + * @param storeId {@link String } The unique identifier of the store. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link Store } + * @throws ApiException if fails to make API call + */ + public Store getStoreById(String storeId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (storeId == null) { + throw new IllegalArgumentException("Please provide the storeId path parameter"); } - - /** - * Create a store - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param storeCreationRequest {@link StoreCreationRequest } (required) - * @return {@link Store } - * @throws ApiException if fails to make API call - */ - public Store createStoreByMerchantId(String merchantId, StoreCreationRequest storeCreationRequest) throws ApiException, IOException { - return createStoreByMerchantId(merchantId, storeCreationRequest, null); + pathParams.put("storeId", storeId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/stores/{storeId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return Store.fromJson(jsonResult); + } + + /** + * Get a list of stores + * + * @return {@link ListStoresResponse } + * @throws ApiException if fails to make API call + */ + public ListStoresResponse listStores() throws ApiException, IOException { + return listStores(null, null, null, null, null); + } + + /** + * Get a list of stores + * + * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The + * default is 10 items on a page. (optional) + * @param reference {@link String } Query: The reference of the store. (optional) + * @param merchantId {@link String } Query: The unique identifier of the merchant account. + * (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ListStoresResponse } + * @throws ApiException if fails to make API call + */ + public ListStoresResponse listStores( + Integer pageNumber, + Integer pageSize, + String reference, + String merchantId, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add query params + Map queryParams = new HashMap<>(); + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); } - - /** - * Create a store - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param storeCreationRequest {@link StoreCreationRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link Store } - * @throws ApiException if fails to make API call - */ - public Store createStoreByMerchantId(String merchantId, StoreCreationRequest storeCreationRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - - String requestBody = storeCreationRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/stores", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return Store.fromJson(jsonResult); + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); } - - /** - * Get a store - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param storeId {@link String } The unique identifier of the store. (required) - * @return {@link Store } - * @throws ApiException if fails to make API call - */ - public Store getStore(String merchantId, String storeId) throws ApiException, IOException { - return getStore(merchantId, storeId, null); + if (reference != null) { + queryParams.put("reference", reference); } - - /** - * Get a store - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param storeId {@link String } The unique identifier of the store. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link Store } - * @throws ApiException if fails to make API call - */ - public Store getStore(String merchantId, String storeId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (storeId == null) { - throw new IllegalArgumentException("Please provide the storeId path parameter"); - } - pathParams.put("storeId", storeId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/stores/{storeId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return Store.fromJson(jsonResult); + if (merchantId != null) { + queryParams.put("merchantId", merchantId); } - /** - * Get a store - * - * @param storeId {@link String } The unique identifier of the store. (required) - * @return {@link Store } - * @throws ApiException if fails to make API call - */ - public Store getStoreById(String storeId) throws ApiException, IOException { - return getStoreById(storeId, null); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/stores", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); + return ListStoresResponse.fromJson(jsonResult); + } + + /** + * Get a list of stores + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @return {@link ListStoresResponse } + * @throws ApiException if fails to make API call + */ + public ListStoresResponse listStoresByMerchantId(String merchantId) + throws ApiException, IOException { + return listStoresByMerchantId(merchantId, null, null, null, null); + } + + /** + * Get a list of stores + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The + * default is 10 items on a page. (optional) + * @param reference {@link String } Query: The reference of the store. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ListStoresResponse } + * @throws ApiException if fails to make API call + */ + public ListStoresResponse listStoresByMerchantId( + String merchantId, + Integer pageNumber, + Integer pageSize, + String reference, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); - /** - * Get a store - * - * @param storeId {@link String } The unique identifier of the store. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link Store } - * @throws ApiException if fails to make API call - */ - public Store getStoreById(String storeId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (storeId == null) { - throw new IllegalArgumentException("Please provide the storeId path parameter"); - } - pathParams.put("storeId", storeId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/stores/{storeId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return Store.fromJson(jsonResult); + // Add query params + Map queryParams = new HashMap<>(); + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); } - - /** - * Get a list of stores - * - * @return {@link ListStoresResponse } - * @throws ApiException if fails to make API call - */ - public ListStoresResponse listStores() throws ApiException, IOException { - return listStores(null, null, null, null, null); - } - - /** - * Get a list of stores - * - * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The default is 10 items on a page. (optional) - * @param reference {@link String } Query: The reference of the store. (optional) - * @param merchantId {@link String } Query: The unique identifier of the merchant account. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ListStoresResponse } - * @throws ApiException if fails to make API call - */ - public ListStoresResponse listStores(Integer pageNumber, Integer pageSize, String reference, String merchantId, RequestOptions requestOptions) throws ApiException, IOException { - //Add query params - Map queryParams = new HashMap<>(); - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); - } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); - } - if (reference != null) { - queryParams.put("reference", reference); - } - if (merchantId != null) { - queryParams.put("merchantId", merchantId); - } - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/stores", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); - return ListStoresResponse.fromJson(jsonResult); + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); } - - /** - * Get a list of stores - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @return {@link ListStoresResponse } - * @throws ApiException if fails to make API call - */ - public ListStoresResponse listStoresByMerchantId(String merchantId) throws ApiException, IOException { - return listStoresByMerchantId(merchantId, null, null, null, null); + if (reference != null) { + queryParams.put("reference", reference); } - /** - * Get a list of stores - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The default is 10 items on a page. (optional) - * @param reference {@link String } Query: The reference of the store. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ListStoresResponse } - * @throws ApiException if fails to make API call - */ - public ListStoresResponse listStoresByMerchantId(String merchantId, Integer pageNumber, Integer pageSize, String reference, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - - //Add query params - Map queryParams = new HashMap<>(); - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); - } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); - } - if (reference != null) { - queryParams.put("reference", reference); - } - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/stores", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return ListStoresResponse.fromJson(jsonResult); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/stores", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return ListStoresResponse.fromJson(jsonResult); + } + + /** + * Update a store + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param storeId {@link String } The unique identifier of the store. (required) + * @param updateStoreRequest {@link UpdateStoreRequest } (required) + * @return {@link Store } + * @throws ApiException if fails to make API call + */ + public Store updateStore(String merchantId, String storeId, UpdateStoreRequest updateStoreRequest) + throws ApiException, IOException { + return updateStore(merchantId, storeId, updateStoreRequest, null); + } + + /** + * Update a store + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param storeId {@link String } The unique identifier of the store. (required) + * @param updateStoreRequest {@link UpdateStoreRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link Store } + * @throws ApiException if fails to make API call + */ + public Store updateStore( + String merchantId, + String storeId, + UpdateStoreRequest updateStoreRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } - - /** - * Update a store - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param storeId {@link String } The unique identifier of the store. (required) - * @param updateStoreRequest {@link UpdateStoreRequest } (required) - * @return {@link Store } - * @throws ApiException if fails to make API call - */ - public Store updateStore(String merchantId, String storeId, UpdateStoreRequest updateStoreRequest) throws ApiException, IOException { - return updateStore(merchantId, storeId, updateStoreRequest, null); + pathParams.put("merchantId", merchantId); + if (storeId == null) { + throw new IllegalArgumentException("Please provide the storeId path parameter"); } - - /** - * Update a store - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param storeId {@link String } The unique identifier of the store. (required) - * @param updateStoreRequest {@link UpdateStoreRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link Store } - * @throws ApiException if fails to make API call - */ - public Store updateStore(String merchantId, String storeId, UpdateStoreRequest updateStoreRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (storeId == null) { - throw new IllegalArgumentException("Please provide the storeId path parameter"); - } - pathParams.put("storeId", storeId); - - String requestBody = updateStoreRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/stores/{storeId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return Store.fromJson(jsonResult); - } - - /** - * Update a store - * - * @param storeId {@link String } The unique identifier of the store. (required) - * @param updateStoreRequest {@link UpdateStoreRequest } (required) - * @return {@link Store } - * @throws ApiException if fails to make API call - */ - public Store updateStoreById(String storeId, UpdateStoreRequest updateStoreRequest) throws ApiException, IOException { - return updateStoreById(storeId, updateStoreRequest, null); - } - - /** - * Update a store - * - * @param storeId {@link String } The unique identifier of the store. (required) - * @param updateStoreRequest {@link UpdateStoreRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link Store } - * @throws ApiException if fails to make API call - */ - public Store updateStoreById(String storeId, UpdateStoreRequest updateStoreRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (storeId == null) { - throw new IllegalArgumentException("Please provide the storeId path parameter"); - } - pathParams.put("storeId", storeId); - - String requestBody = updateStoreRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/stores/{storeId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return Store.fromJson(jsonResult); + pathParams.put("storeId", storeId); + + String requestBody = updateStoreRequest.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/merchants/{merchantId}/stores/{storeId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return Store.fromJson(jsonResult); + } + + /** + * Update a store + * + * @param storeId {@link String } The unique identifier of the store. (required) + * @param updateStoreRequest {@link UpdateStoreRequest } (required) + * @return {@link Store } + * @throws ApiException if fails to make API call + */ + public Store updateStoreById(String storeId, UpdateStoreRequest updateStoreRequest) + throws ApiException, IOException { + return updateStoreById(storeId, updateStoreRequest, null); + } + + /** + * Update a store + * + * @param storeId {@link String } The unique identifier of the store. (required) + * @param updateStoreRequest {@link UpdateStoreRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link Store } + * @throws ApiException if fails to make API call + */ + public Store updateStoreById( + String storeId, UpdateStoreRequest updateStoreRequest, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (storeId == null) { + throw new IllegalArgumentException("Please provide the storeId path parameter"); } + pathParams.put("storeId", storeId); + + String requestBody = updateStoreRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/stores/{storeId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return Store.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/AllowedOriginsCompanyLevelApi.java b/src/main/java/com/adyen/service/management/AllowedOriginsCompanyLevelApi.java index 94bd3a336..6178ff1b6 100644 --- a/src/main/java/com/adyen/service/management/AllowedOriginsCompanyLevelApi.java +++ b/src/main/java/com/adyen/service/management/AllowedOriginsCompanyLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,207 +14,249 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.management.AllowedOrigin; import com.adyen.model.management.AllowedOriginsResponse; -import com.adyen.model.management.RestServiceError; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class AllowedOriginsCompanyLevelApi extends Service { - public static final String API_VERSION = "3"; + public static final String API_VERSION = "3"; - protected String baseURL; + protected String baseURL; - /** - * Allowed origins - company level constructor in {@link com.adyen.service.management package}. - * @param client {@link Client } (required) - */ - public AllowedOriginsCompanyLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } + /** + * Allowed origins - company level constructor in {@link com.adyen.service.management package}. + * + * @param client {@link Client } (required) + */ + public AllowedOriginsCompanyLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } - /** - * Allowed origins - company level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public AllowedOriginsCompanyLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Allowed origins - company level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or + * testing purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public AllowedOriginsCompanyLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Create an allowed origin - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param allowedOrigin {@link AllowedOrigin } (required) - * @return {@link AllowedOrigin } - * @throws ApiException if fails to make API call - */ - public AllowedOrigin createAllowedOrigin(String companyId, String apiCredentialId, AllowedOrigin allowedOrigin) throws ApiException, IOException { - return createAllowedOrigin(companyId, apiCredentialId, allowedOrigin, null); - } + /** + * Create an allowed origin + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param allowedOrigin {@link AllowedOrigin } (required) + * @return {@link AllowedOrigin } + * @throws ApiException if fails to make API call + */ + public AllowedOrigin createAllowedOrigin( + String companyId, String apiCredentialId, AllowedOrigin allowedOrigin) + throws ApiException, IOException { + return createAllowedOrigin(companyId, apiCredentialId, allowedOrigin, null); + } - /** - * Create an allowed origin - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param allowedOrigin {@link AllowedOrigin } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link AllowedOrigin } - * @throws ApiException if fails to make API call - */ - public AllowedOrigin createAllowedOrigin(String companyId, String apiCredentialId, AllowedOrigin allowedOrigin, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - if (apiCredentialId == null) { - throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); - } - pathParams.put("apiCredentialId", apiCredentialId); - - String requestBody = allowedOrigin.toJson(); - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/apiCredentials/{apiCredentialId}/allowedOrigins", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return AllowedOrigin.fromJson(jsonResult); + /** + * Create an allowed origin + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param allowedOrigin {@link AllowedOrigin } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link AllowedOrigin } + * @throws ApiException if fails to make API call + */ + public AllowedOrigin createAllowedOrigin( + String companyId, + String apiCredentialId, + AllowedOrigin allowedOrigin, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } - - /** - * Delete an allowed origin - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param originId {@link String } Unique identifier of the allowed origin. (required) - * @throws ApiException if fails to make API call - */ - public void deleteAllowedOrigin(String companyId, String apiCredentialId, String originId) throws ApiException, IOException { - deleteAllowedOrigin(companyId, apiCredentialId, originId, null); + pathParams.put("companyId", companyId); + if (apiCredentialId == null) { + throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); } + pathParams.put("apiCredentialId", apiCredentialId); - /** - * Delete an allowed origin - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param originId {@link String } Unique identifier of the allowed origin. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void deleteAllowedOrigin(String companyId, String apiCredentialId, String originId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - if (apiCredentialId == null) { - throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); - } - pathParams.put("apiCredentialId", apiCredentialId); - if (originId == null) { - throw new IllegalArgumentException("Please provide the originId path parameter"); - } - pathParams.put("originId", originId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/apiCredentials/{apiCredentialId}/allowedOrigins/{originId}", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); - } + String requestBody = allowedOrigin.toJson(); + Resource resource = + new Resource( + this, + this.baseURL + "/companies/{companyId}/apiCredentials/{apiCredentialId}/allowedOrigins", + null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return AllowedOrigin.fromJson(jsonResult); + } - /** - * Get an allowed origin - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param originId {@link String } Unique identifier of the allowed origin. (required) - * @return {@link AllowedOrigin } - * @throws ApiException if fails to make API call - */ - public AllowedOrigin getAllowedOrigin(String companyId, String apiCredentialId, String originId) throws ApiException, IOException { - return getAllowedOrigin(companyId, apiCredentialId, originId, null); - } + /** + * Delete an allowed origin + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param originId {@link String } Unique identifier of the allowed origin. (required) + * @throws ApiException if fails to make API call + */ + public void deleteAllowedOrigin(String companyId, String apiCredentialId, String originId) + throws ApiException, IOException { + deleteAllowedOrigin(companyId, apiCredentialId, originId, null); + } - /** - * Get an allowed origin - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param originId {@link String } Unique identifier of the allowed origin. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link AllowedOrigin } - * @throws ApiException if fails to make API call - */ - public AllowedOrigin getAllowedOrigin(String companyId, String apiCredentialId, String originId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - if (apiCredentialId == null) { - throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); - } - pathParams.put("apiCredentialId", apiCredentialId); - if (originId == null) { - throw new IllegalArgumentException("Please provide the originId path parameter"); - } - pathParams.put("originId", originId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/apiCredentials/{apiCredentialId}/allowedOrigins/{originId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return AllowedOrigin.fromJson(jsonResult); + /** + * Delete an allowed origin + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param originId {@link String } Unique identifier of the allowed origin. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void deleteAllowedOrigin( + String companyId, String apiCredentialId, String originId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } + pathParams.put("companyId", companyId); + if (apiCredentialId == null) { + throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + } + pathParams.put("apiCredentialId", apiCredentialId); + if (originId == null) { + throw new IllegalArgumentException("Please provide the originId path parameter"); + } + pathParams.put("originId", originId); + + String requestBody = null; + Resource resource = + new Resource( + this, + this.baseURL + + "/companies/{companyId}/apiCredentials/{apiCredentialId}/allowedOrigins/{originId}", + null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); + } - /** - * Get a list of allowed origins - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @return {@link AllowedOriginsResponse } - * @throws ApiException if fails to make API call - */ - public AllowedOriginsResponse listAllowedOrigins(String companyId, String apiCredentialId) throws ApiException, IOException { - return listAllowedOrigins(companyId, apiCredentialId, null); + /** + * Get an allowed origin + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param originId {@link String } Unique identifier of the allowed origin. (required) + * @return {@link AllowedOrigin } + * @throws ApiException if fails to make API call + */ + public AllowedOrigin getAllowedOrigin(String companyId, String apiCredentialId, String originId) + throws ApiException, IOException { + return getAllowedOrigin(companyId, apiCredentialId, originId, null); + } + + /** + * Get an allowed origin + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param originId {@link String } Unique identifier of the allowed origin. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link AllowedOrigin } + * @throws ApiException if fails to make API call + */ + public AllowedOrigin getAllowedOrigin( + String companyId, String apiCredentialId, String originId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + if (apiCredentialId == null) { + throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); } + pathParams.put("apiCredentialId", apiCredentialId); + if (originId == null) { + throw new IllegalArgumentException("Please provide the originId path parameter"); + } + pathParams.put("originId", originId); + + String requestBody = null; + Resource resource = + new Resource( + this, + this.baseURL + + "/companies/{companyId}/apiCredentials/{apiCredentialId}/allowedOrigins/{originId}", + null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return AllowedOrigin.fromJson(jsonResult); + } + + /** + * Get a list of allowed origins + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @return {@link AllowedOriginsResponse } + * @throws ApiException if fails to make API call + */ + public AllowedOriginsResponse listAllowedOrigins(String companyId, String apiCredentialId) + throws ApiException, IOException { + return listAllowedOrigins(companyId, apiCredentialId, null); + } - /** - * Get a list of allowed origins - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link AllowedOriginsResponse } - * @throws ApiException if fails to make API call - */ - public AllowedOriginsResponse listAllowedOrigins(String companyId, String apiCredentialId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - if (apiCredentialId == null) { - throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); - } - pathParams.put("apiCredentialId", apiCredentialId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/apiCredentials/{apiCredentialId}/allowedOrigins", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return AllowedOriginsResponse.fromJson(jsonResult); + /** + * Get a list of allowed origins + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link AllowedOriginsResponse } + * @throws ApiException if fails to make API call + */ + public AllowedOriginsResponse listAllowedOrigins( + String companyId, String apiCredentialId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } + pathParams.put("companyId", companyId); + if (apiCredentialId == null) { + throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + } + pathParams.put("apiCredentialId", apiCredentialId); + + String requestBody = null; + Resource resource = + new Resource( + this, + this.baseURL + "/companies/{companyId}/apiCredentials/{apiCredentialId}/allowedOrigins", + null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return AllowedOriginsResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/AllowedOriginsMerchantLevelApi.java b/src/main/java/com/adyen/service/management/AllowedOriginsMerchantLevelApi.java index 72d863e32..70bd9fe7e 100644 --- a/src/main/java/com/adyen/service/management/AllowedOriginsMerchantLevelApi.java +++ b/src/main/java/com/adyen/service/management/AllowedOriginsMerchantLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,207 +14,251 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.management.AllowedOrigin; import com.adyen.model.management.AllowedOriginsResponse; -import com.adyen.model.management.RestServiceError; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class AllowedOriginsMerchantLevelApi extends Service { - public static final String API_VERSION = "3"; + public static final String API_VERSION = "3"; - protected String baseURL; + protected String baseURL; - /** - * Allowed origins - merchant level constructor in {@link com.adyen.service.management package}. - * @param client {@link Client } (required) - */ - public AllowedOriginsMerchantLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } + /** + * Allowed origins - merchant level constructor in {@link com.adyen.service.management package}. + * + * @param client {@link Client } (required) + */ + public AllowedOriginsMerchantLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } - /** - * Allowed origins - merchant level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public AllowedOriginsMerchantLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Allowed origins - merchant level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or + * testing purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public AllowedOriginsMerchantLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Create an allowed origin - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param allowedOrigin {@link AllowedOrigin } (required) - * @return {@link AllowedOrigin } - * @throws ApiException if fails to make API call - */ - public AllowedOrigin createAllowedOrigin(String merchantId, String apiCredentialId, AllowedOrigin allowedOrigin) throws ApiException, IOException { - return createAllowedOrigin(merchantId, apiCredentialId, allowedOrigin, null); - } + /** + * Create an allowed origin + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param allowedOrigin {@link AllowedOrigin } (required) + * @return {@link AllowedOrigin } + * @throws ApiException if fails to make API call + */ + public AllowedOrigin createAllowedOrigin( + String merchantId, String apiCredentialId, AllowedOrigin allowedOrigin) + throws ApiException, IOException { + return createAllowedOrigin(merchantId, apiCredentialId, allowedOrigin, null); + } - /** - * Create an allowed origin - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param allowedOrigin {@link AllowedOrigin } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link AllowedOrigin } - * @throws ApiException if fails to make API call - */ - public AllowedOrigin createAllowedOrigin(String merchantId, String apiCredentialId, AllowedOrigin allowedOrigin, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (apiCredentialId == null) { - throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); - } - pathParams.put("apiCredentialId", apiCredentialId); - - String requestBody = allowedOrigin.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/apiCredentials/{apiCredentialId}/allowedOrigins", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return AllowedOrigin.fromJson(jsonResult); + /** + * Create an allowed origin + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param allowedOrigin {@link AllowedOrigin } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link AllowedOrigin } + * @throws ApiException if fails to make API call + */ + public AllowedOrigin createAllowedOrigin( + String merchantId, + String apiCredentialId, + AllowedOrigin allowedOrigin, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } - - /** - * Delete an allowed origin - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param originId {@link String } Unique identifier of the allowed origin. (required) - * @throws ApiException if fails to make API call - */ - public void deleteAllowedOrigin(String merchantId, String apiCredentialId, String originId) throws ApiException, IOException { - deleteAllowedOrigin(merchantId, apiCredentialId, originId, null); + pathParams.put("merchantId", merchantId); + if (apiCredentialId == null) { + throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); } + pathParams.put("apiCredentialId", apiCredentialId); - /** - * Delete an allowed origin - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param originId {@link String } Unique identifier of the allowed origin. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void deleteAllowedOrigin(String merchantId, String apiCredentialId, String originId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (apiCredentialId == null) { - throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); - } - pathParams.put("apiCredentialId", apiCredentialId); - if (originId == null) { - throw new IllegalArgumentException("Please provide the originId path parameter"); - } - pathParams.put("originId", originId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/apiCredentials/{apiCredentialId}/allowedOrigins/{originId}", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); - } + String requestBody = allowedOrigin.toJson(); + Resource resource = + new Resource( + this, + this.baseURL + + "/merchants/{merchantId}/apiCredentials/{apiCredentialId}/allowedOrigins", + null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return AllowedOrigin.fromJson(jsonResult); + } - /** - * Get an allowed origin - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param originId {@link String } Unique identifier of the allowed origin. (required) - * @return {@link AllowedOrigin } - * @throws ApiException if fails to make API call - */ - public AllowedOrigin getAllowedOrigin(String merchantId, String apiCredentialId, String originId) throws ApiException, IOException { - return getAllowedOrigin(merchantId, apiCredentialId, originId, null); - } + /** + * Delete an allowed origin + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param originId {@link String } Unique identifier of the allowed origin. (required) + * @throws ApiException if fails to make API call + */ + public void deleteAllowedOrigin(String merchantId, String apiCredentialId, String originId) + throws ApiException, IOException { + deleteAllowedOrigin(merchantId, apiCredentialId, originId, null); + } - /** - * Get an allowed origin - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param originId {@link String } Unique identifier of the allowed origin. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link AllowedOrigin } - * @throws ApiException if fails to make API call - */ - public AllowedOrigin getAllowedOrigin(String merchantId, String apiCredentialId, String originId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (apiCredentialId == null) { - throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); - } - pathParams.put("apiCredentialId", apiCredentialId); - if (originId == null) { - throw new IllegalArgumentException("Please provide the originId path parameter"); - } - pathParams.put("originId", originId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/apiCredentials/{apiCredentialId}/allowedOrigins/{originId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return AllowedOrigin.fromJson(jsonResult); + /** + * Delete an allowed origin + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param originId {@link String } Unique identifier of the allowed origin. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void deleteAllowedOrigin( + String merchantId, String apiCredentialId, String originId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); + if (apiCredentialId == null) { + throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + } + pathParams.put("apiCredentialId", apiCredentialId); + if (originId == null) { + throw new IllegalArgumentException("Please provide the originId path parameter"); + } + pathParams.put("originId", originId); + + String requestBody = null; + Resource resource = + new Resource( + this, + this.baseURL + + "/merchants/{merchantId}/apiCredentials/{apiCredentialId}/allowedOrigins/{originId}", + null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); + } - /** - * Get a list of allowed origins - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @return {@link AllowedOriginsResponse } - * @throws ApiException if fails to make API call - */ - public AllowedOriginsResponse listAllowedOrigins(String merchantId, String apiCredentialId) throws ApiException, IOException { - return listAllowedOrigins(merchantId, apiCredentialId, null); + /** + * Get an allowed origin + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param originId {@link String } Unique identifier of the allowed origin. (required) + * @return {@link AllowedOrigin } + * @throws ApiException if fails to make API call + */ + public AllowedOrigin getAllowedOrigin(String merchantId, String apiCredentialId, String originId) + throws ApiException, IOException { + return getAllowedOrigin(merchantId, apiCredentialId, originId, null); + } + + /** + * Get an allowed origin + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param originId {@link String } Unique identifier of the allowed origin. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link AllowedOrigin } + * @throws ApiException if fails to make API call + */ + public AllowedOrigin getAllowedOrigin( + String merchantId, String apiCredentialId, String originId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (apiCredentialId == null) { + throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); } + pathParams.put("apiCredentialId", apiCredentialId); + if (originId == null) { + throw new IllegalArgumentException("Please provide the originId path parameter"); + } + pathParams.put("originId", originId); + + String requestBody = null; + Resource resource = + new Resource( + this, + this.baseURL + + "/merchants/{merchantId}/apiCredentials/{apiCredentialId}/allowedOrigins/{originId}", + null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return AllowedOrigin.fromJson(jsonResult); + } + + /** + * Get a list of allowed origins + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @return {@link AllowedOriginsResponse } + * @throws ApiException if fails to make API call + */ + public AllowedOriginsResponse listAllowedOrigins(String merchantId, String apiCredentialId) + throws ApiException, IOException { + return listAllowedOrigins(merchantId, apiCredentialId, null); + } - /** - * Get a list of allowed origins - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link AllowedOriginsResponse } - * @throws ApiException if fails to make API call - */ - public AllowedOriginsResponse listAllowedOrigins(String merchantId, String apiCredentialId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (apiCredentialId == null) { - throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); - } - pathParams.put("apiCredentialId", apiCredentialId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/apiCredentials/{apiCredentialId}/allowedOrigins", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return AllowedOriginsResponse.fromJson(jsonResult); + /** + * Get a list of allowed origins + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link AllowedOriginsResponse } + * @throws ApiException if fails to make API call + */ + public AllowedOriginsResponse listAllowedOrigins( + String merchantId, String apiCredentialId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); + if (apiCredentialId == null) { + throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + } + pathParams.put("apiCredentialId", apiCredentialId); + + String requestBody = null; + Resource resource = + new Resource( + this, + this.baseURL + + "/merchants/{merchantId}/apiCredentials/{apiCredentialId}/allowedOrigins", + null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return AllowedOriginsResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/AndroidFilesCompanyLevelApi.java b/src/main/java/com/adyen/service/management/AndroidFilesCompanyLevelApi.java index e437c9488..f853b9638 100644 --- a/src/main/java/com/adyen/service/management/AndroidFilesCompanyLevelApi.java +++ b/src/main/java/com/adyen/service/management/AndroidFilesCompanyLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,288 +14,333 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.management.AndroidApp; import com.adyen.model.management.AndroidAppsResponse; import com.adyen.model.management.AndroidCertificatesResponse; import com.adyen.model.management.ReprocessAndroidAppResponse; -import com.adyen.model.management.RestServiceError; import com.adyen.model.management.UploadAndroidAppResponse; import com.adyen.model.management.UploadAndroidCertificateResponse; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class AndroidFilesCompanyLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; + public static final String API_VERSION = "3"; - /** - * Android files - company level constructor in {@link com.adyen.service.management package}. - * @param client {@link Client } (required) - */ - public AndroidFilesCompanyLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } + protected String baseURL; - /** - * Android files - company level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public AndroidFilesCompanyLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Android files - company level constructor in {@link com.adyen.service.management package}. + * + * @param client {@link Client } (required) + */ + public AndroidFilesCompanyLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } - /** - * Get Android app - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param id {@link String } The unique identifier of the app. (required) - * @return {@link AndroidApp } - * @throws ApiException if fails to make API call - */ - public AndroidApp getAndroidApp(String companyId, String id) throws ApiException, IOException { - return getAndroidApp(companyId, id, null); - } + /** + * Android files - company level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or + * testing purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public AndroidFilesCompanyLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Get Android app - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param id {@link String } The unique identifier of the app. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link AndroidApp } - * @throws ApiException if fails to make API call - */ - public AndroidApp getAndroidApp(String companyId, String id, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); + /** + * Get Android app + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param id {@link String } The unique identifier of the app. (required) + * @return {@link AndroidApp } + * @throws ApiException if fails to make API call + */ + public AndroidApp getAndroidApp(String companyId, String id) throws ApiException, IOException { + return getAndroidApp(companyId, id, null); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/androidApps/{id}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return AndroidApp.fromJson(jsonResult); + /** + * Get Android app + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param id {@link String } The unique identifier of the app. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link AndroidApp } + * @throws ApiException if fails to make API call + */ + public AndroidApp getAndroidApp(String companyId, String id, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } - - /** - * Get a list of Android apps - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @return {@link AndroidAppsResponse } - * @throws ApiException if fails to make API call - */ - public AndroidAppsResponse listAndroidApps(String companyId) throws ApiException, IOException { - return listAndroidApps(companyId, null, null, null, null, null); + pathParams.put("companyId", companyId); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); - /** - * Get a list of Android apps - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The default is 20 items on a page. (optional) - * @param packageName {@link String } Query: The package name that uniquely identifies the Android app. (optional) - * @param versionCode {@link Integer } Query: The version number of the app. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link AndroidAppsResponse } - * @throws ApiException if fails to make API call - */ - public AndroidAppsResponse listAndroidApps(String companyId, Integer pageNumber, Integer pageSize, String packageName, Integer versionCode, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/companies/{companyId}/androidApps/{id}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return AndroidApp.fromJson(jsonResult); + } - //Add query params - Map queryParams = new HashMap<>(); - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); - } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); - } - if (packageName != null) { - queryParams.put("packageName", packageName); - } - if (versionCode != null) { - queryParams.put("versionCode", versionCode.toString()); - } + /** + * Get a list of Android apps + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @return {@link AndroidAppsResponse } + * @throws ApiException if fails to make API call + */ + public AndroidAppsResponse listAndroidApps(String companyId) throws ApiException, IOException { + return listAndroidApps(companyId, null, null, null, null, null); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/androidApps", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return AndroidAppsResponse.fromJson(jsonResult); + /** + * Get a list of Android apps + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The + * default is 20 items on a page. (optional) + * @param packageName {@link String } Query: The package name that uniquely identifies the Android + * app. (optional) + * @param versionCode {@link Integer } Query: The version number of the app. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link AndroidAppsResponse } + * @throws ApiException if fails to make API call + */ + public AndroidAppsResponse listAndroidApps( + String companyId, + Integer pageNumber, + Integer pageSize, + String packageName, + Integer versionCode, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } + pathParams.put("companyId", companyId); - /** - * Get a list of Android certificates - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @return {@link AndroidCertificatesResponse } - * @throws ApiException if fails to make API call - */ - public AndroidCertificatesResponse listAndroidCertificates(String companyId) throws ApiException, IOException { - return listAndroidCertificates(companyId, null, null, null, null); + // Add query params + Map queryParams = new HashMap<>(); + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); + } + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); + } + if (packageName != null) { + queryParams.put("packageName", packageName); + } + if (versionCode != null) { + queryParams.put("versionCode", versionCode.toString()); } - /** - * Get a list of Android certificates - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The default is 20 items on a page. (optional) - * @param certificateName {@link String } Query: The name of the certificate. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link AndroidCertificatesResponse } - * @throws ApiException if fails to make API call - */ - public AndroidCertificatesResponse listAndroidCertificates(String companyId, Integer pageNumber, Integer pageSize, String certificateName, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/companies/{companyId}/androidApps", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return AndroidAppsResponse.fromJson(jsonResult); + } - //Add query params - Map queryParams = new HashMap<>(); - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); - } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); - } - if (certificateName != null) { - queryParams.put("certificateName", certificateName); - } + /** + * Get a list of Android certificates + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @return {@link AndroidCertificatesResponse } + * @throws ApiException if fails to make API call + */ + public AndroidCertificatesResponse listAndroidCertificates(String companyId) + throws ApiException, IOException { + return listAndroidCertificates(companyId, null, null, null, null); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/androidCertificates", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return AndroidCertificatesResponse.fromJson(jsonResult); + /** + * Get a list of Android certificates + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The + * default is 20 items on a page. (optional) + * @param certificateName {@link String } Query: The name of the certificate. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link AndroidCertificatesResponse } + * @throws ApiException if fails to make API call + */ + public AndroidCertificatesResponse listAndroidCertificates( + String companyId, + Integer pageNumber, + Integer pageSize, + String certificateName, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } + pathParams.put("companyId", companyId); - /** - * Reprocess Android App - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param id {@link String } The unique identifier of the app. (required) - * @return {@link ReprocessAndroidAppResponse } - * @throws ApiException if fails to make API call - */ - public ReprocessAndroidAppResponse reprocessAndroidApp(String companyId, String id) throws ApiException, IOException { - return reprocessAndroidApp(companyId, id, null); + // Add query params + Map queryParams = new HashMap<>(); + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); + } + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); + } + if (certificateName != null) { + queryParams.put("certificateName", certificateName); } - /** - * Reprocess Android App - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param id {@link String } The unique identifier of the app. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ReprocessAndroidAppResponse } - * @throws ApiException if fails to make API call - */ - public ReprocessAndroidAppResponse reprocessAndroidApp(String companyId, String id, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/companies/{companyId}/androidCertificates", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return AndroidCertificatesResponse.fromJson(jsonResult); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/androidApps/{id}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return ReprocessAndroidAppResponse.fromJson(jsonResult); - } + /** + * Reprocess Android App + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param id {@link String } The unique identifier of the app. (required) + * @return {@link ReprocessAndroidAppResponse } + * @throws ApiException if fails to make API call + */ + public ReprocessAndroidAppResponse reprocessAndroidApp(String companyId, String id) + throws ApiException, IOException { + return reprocessAndroidApp(companyId, id, null); + } - /** - * Upload Android App - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @return {@link UploadAndroidAppResponse } - * @throws ApiException if fails to make API call - */ - public UploadAndroidAppResponse uploadAndroidApp(String companyId) throws ApiException, IOException { - return uploadAndroidApp(companyId, null); + /** + * Reprocess Android App + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param id {@link String } The unique identifier of the app. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ReprocessAndroidAppResponse } + * @throws ApiException if fails to make API call + */ + public ReprocessAndroidAppResponse reprocessAndroidApp( + String companyId, String id, RequestOptions requestOptions) throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } + pathParams.put("companyId", companyId); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); - /** - * Upload Android App - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link UploadAndroidAppResponse } - * @throws ApiException if fails to make API call - */ - public UploadAndroidAppResponse uploadAndroidApp(String companyId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/companies/{companyId}/androidApps/{id}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return ReprocessAndroidAppResponse.fromJson(jsonResult); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/androidApps", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return UploadAndroidAppResponse.fromJson(jsonResult); - } + /** + * Upload Android App + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @return {@link UploadAndroidAppResponse } + * @throws ApiException if fails to make API call + */ + public UploadAndroidAppResponse uploadAndroidApp(String companyId) + throws ApiException, IOException { + return uploadAndroidApp(companyId, null); + } - /** - * Upload Android Certificate - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @return {@link UploadAndroidCertificateResponse } - * @throws ApiException if fails to make API call - */ - public UploadAndroidCertificateResponse uploadAndroidCertificate(String companyId) throws ApiException, IOException { - return uploadAndroidCertificate(companyId, null); + /** + * Upload Android App + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link UploadAndroidAppResponse } + * @throws ApiException if fails to make API call + */ + public UploadAndroidAppResponse uploadAndroidApp(String companyId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } + pathParams.put("companyId", companyId); - /** - * Upload Android Certificate - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link UploadAndroidCertificateResponse } - * @throws ApiException if fails to make API call - */ - public UploadAndroidCertificateResponse uploadAndroidCertificate(String companyId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/companies/{companyId}/androidApps", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return UploadAndroidAppResponse.fromJson(jsonResult); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/androidCertificates", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return UploadAndroidCertificateResponse.fromJson(jsonResult); + /** + * Upload Android Certificate + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @return {@link UploadAndroidCertificateResponse } + * @throws ApiException if fails to make API call + */ + public UploadAndroidCertificateResponse uploadAndroidCertificate(String companyId) + throws ApiException, IOException { + return uploadAndroidCertificate(companyId, null); + } + + /** + * Upload Android Certificate + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link UploadAndroidCertificateResponse } + * @throws ApiException if fails to make API call + */ + public UploadAndroidCertificateResponse uploadAndroidCertificate( + String companyId, RequestOptions requestOptions) throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } + pathParams.put("companyId", companyId); + + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/companies/{companyId}/androidCertificates", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return UploadAndroidCertificateResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/ApiCredentialsCompanyLevelApi.java b/src/main/java/com/adyen/service/management/ApiCredentialsCompanyLevelApi.java index 414713a73..076c9d9ff 100644 --- a/src/main/java/com/adyen/service/management/ApiCredentialsCompanyLevelApi.java +++ b/src/main/java/com/adyen/service/management/ApiCredentialsCompanyLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,202 +14,240 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.management.CompanyApiCredential; import com.adyen.model.management.CreateCompanyApiCredentialRequest; import com.adyen.model.management.CreateCompanyApiCredentialResponse; import com.adyen.model.management.ListCompanyApiCredentialsResponse; -import com.adyen.model.management.RestServiceError; import com.adyen.model.management.UpdateCompanyApiCredentialRequest; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class ApiCredentialsCompanyLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * API credentials - company level constructor in {@link com.adyen.service.management package}. - * @param client {@link Client } (required) - */ - public ApiCredentialsCompanyLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * API credentials - company level constructor in {@link com.adyen.service.management package}. + * + * @param client {@link Client } (required) + */ + public ApiCredentialsCompanyLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } + + /** + * API credentials - company level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or + * testing purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public ApiCredentialsCompanyLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Create an API credential. + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param createCompanyApiCredentialRequest {@link CreateCompanyApiCredentialRequest } (required) + * @return {@link CreateCompanyApiCredentialResponse } + * @throws ApiException if fails to make API call + */ + public CreateCompanyApiCredentialResponse createApiCredential( + String companyId, CreateCompanyApiCredentialRequest createCompanyApiCredentialRequest) + throws ApiException, IOException { + return createApiCredential(companyId, createCompanyApiCredentialRequest, null); + } + + /** + * Create an API credential. + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param createCompanyApiCredentialRequest {@link CreateCompanyApiCredentialRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link CreateCompanyApiCredentialResponse } + * @throws ApiException if fails to make API call + */ + public CreateCompanyApiCredentialResponse createApiCredential( + String companyId, + CreateCompanyApiCredentialRequest createCompanyApiCredentialRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } - - /** - * API credentials - company level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public ApiCredentialsCompanyLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; + pathParams.put("companyId", companyId); + + String requestBody = createCompanyApiCredentialRequest.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/companies/{companyId}/apiCredentials", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return CreateCompanyApiCredentialResponse.fromJson(jsonResult); + } + + /** + * Get an API credential + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @return {@link CompanyApiCredential } + * @throws ApiException if fails to make API call + */ + public CompanyApiCredential getApiCredential(String companyId, String apiCredentialId) + throws ApiException, IOException { + return getApiCredential(companyId, apiCredentialId, null); + } + + /** + * Get an API credential + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link CompanyApiCredential } + * @throws ApiException if fails to make API call + */ + public CompanyApiCredential getApiCredential( + String companyId, String apiCredentialId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } - - /** - * Create an API credential. - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param createCompanyApiCredentialRequest {@link CreateCompanyApiCredentialRequest } (required) - * @return {@link CreateCompanyApiCredentialResponse } - * @throws ApiException if fails to make API call - */ - public CreateCompanyApiCredentialResponse createApiCredential(String companyId, CreateCompanyApiCredentialRequest createCompanyApiCredentialRequest) throws ApiException, IOException { - return createApiCredential(companyId, createCompanyApiCredentialRequest, null); + pathParams.put("companyId", companyId); + if (apiCredentialId == null) { + throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); } - - /** - * Create an API credential. - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param createCompanyApiCredentialRequest {@link CreateCompanyApiCredentialRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link CreateCompanyApiCredentialResponse } - * @throws ApiException if fails to make API call - */ - public CreateCompanyApiCredentialResponse createApiCredential(String companyId, CreateCompanyApiCredentialRequest createCompanyApiCredentialRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - - String requestBody = createCompanyApiCredentialRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/apiCredentials", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return CreateCompanyApiCredentialResponse.fromJson(jsonResult); - } - - /** - * Get an API credential - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @return {@link CompanyApiCredential } - * @throws ApiException if fails to make API call - */ - public CompanyApiCredential getApiCredential(String companyId, String apiCredentialId) throws ApiException, IOException { - return getApiCredential(companyId, apiCredentialId, null); + pathParams.put("apiCredentialId", apiCredentialId); + + String requestBody = null; + Resource resource = + new Resource( + this, this.baseURL + "/companies/{companyId}/apiCredentials/{apiCredentialId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return CompanyApiCredential.fromJson(jsonResult); + } + + /** + * Get a list of API credentials + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @return {@link ListCompanyApiCredentialsResponse } + * @throws ApiException if fails to make API call + */ + public ListCompanyApiCredentialsResponse listApiCredentials(String companyId) + throws ApiException, IOException { + return listApiCredentials(companyId, null, null, null); + } + + /** + * Get a list of API credentials + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The + * default is 10 items on a page. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ListCompanyApiCredentialsResponse } + * @throws ApiException if fails to make API call + */ + public ListCompanyApiCredentialsResponse listApiCredentials( + String companyId, Integer pageNumber, Integer pageSize, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } + pathParams.put("companyId", companyId); - /** - * Get an API credential - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link CompanyApiCredential } - * @throws ApiException if fails to make API call - */ - public CompanyApiCredential getApiCredential(String companyId, String apiCredentialId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - if (apiCredentialId == null) { - throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); - } - pathParams.put("apiCredentialId", apiCredentialId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/apiCredentials/{apiCredentialId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return CompanyApiCredential.fromJson(jsonResult); + // Add query params + Map queryParams = new HashMap<>(); + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); } - - /** - * Get a list of API credentials - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @return {@link ListCompanyApiCredentialsResponse } - * @throws ApiException if fails to make API call - */ - public ListCompanyApiCredentialsResponse listApiCredentials(String companyId) throws ApiException, IOException { - return listApiCredentials(companyId, null, null, null); + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); } - /** - * Get a list of API credentials - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The default is 10 items on a page. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ListCompanyApiCredentialsResponse } - * @throws ApiException if fails to make API call - */ - public ListCompanyApiCredentialsResponse listApiCredentials(String companyId, Integer pageNumber, Integer pageSize, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - - //Add query params - Map queryParams = new HashMap<>(); - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); - } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); - } - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/apiCredentials", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return ListCompanyApiCredentialsResponse.fromJson(jsonResult); + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/companies/{companyId}/apiCredentials", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return ListCompanyApiCredentialsResponse.fromJson(jsonResult); + } + + /** + * Update an API credential. + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param updateCompanyApiCredentialRequest {@link UpdateCompanyApiCredentialRequest } (required) + * @return {@link CompanyApiCredential } + * @throws ApiException if fails to make API call + */ + public CompanyApiCredential updateApiCredential( + String companyId, + String apiCredentialId, + UpdateCompanyApiCredentialRequest updateCompanyApiCredentialRequest) + throws ApiException, IOException { + return updateApiCredential(companyId, apiCredentialId, updateCompanyApiCredentialRequest, null); + } + + /** + * Update an API credential. + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param updateCompanyApiCredentialRequest {@link UpdateCompanyApiCredentialRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link CompanyApiCredential } + * @throws ApiException if fails to make API call + */ + public CompanyApiCredential updateApiCredential( + String companyId, + String apiCredentialId, + UpdateCompanyApiCredentialRequest updateCompanyApiCredentialRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } - - /** - * Update an API credential. - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param updateCompanyApiCredentialRequest {@link UpdateCompanyApiCredentialRequest } (required) - * @return {@link CompanyApiCredential } - * @throws ApiException if fails to make API call - */ - public CompanyApiCredential updateApiCredential(String companyId, String apiCredentialId, UpdateCompanyApiCredentialRequest updateCompanyApiCredentialRequest) throws ApiException, IOException { - return updateApiCredential(companyId, apiCredentialId, updateCompanyApiCredentialRequest, null); - } - - /** - * Update an API credential. - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param updateCompanyApiCredentialRequest {@link UpdateCompanyApiCredentialRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link CompanyApiCredential } - * @throws ApiException if fails to make API call - */ - public CompanyApiCredential updateApiCredential(String companyId, String apiCredentialId, UpdateCompanyApiCredentialRequest updateCompanyApiCredentialRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - if (apiCredentialId == null) { - throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); - } - pathParams.put("apiCredentialId", apiCredentialId); - - String requestBody = updateCompanyApiCredentialRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/apiCredentials/{apiCredentialId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return CompanyApiCredential.fromJson(jsonResult); + pathParams.put("companyId", companyId); + if (apiCredentialId == null) { + throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); } + pathParams.put("apiCredentialId", apiCredentialId); + + String requestBody = updateCompanyApiCredentialRequest.toJson(); + Resource resource = + new Resource( + this, this.baseURL + "/companies/{companyId}/apiCredentials/{apiCredentialId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return CompanyApiCredential.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/ApiCredentialsMerchantLevelApi.java b/src/main/java/com/adyen/service/management/ApiCredentialsMerchantLevelApi.java index 39210e7c4..f31481c58 100644 --- a/src/main/java/com/adyen/service/management/ApiCredentialsMerchantLevelApi.java +++ b/src/main/java/com/adyen/service/management/ApiCredentialsMerchantLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,202 +14,245 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.management.ApiCredential; import com.adyen.model.management.CreateApiCredentialResponse; import com.adyen.model.management.CreateMerchantApiCredentialRequest; import com.adyen.model.management.ListMerchantApiCredentialsResponse; -import com.adyen.model.management.RestServiceError; import com.adyen.model.management.UpdateMerchantApiCredentialRequest; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class ApiCredentialsMerchantLevelApi extends Service { - public static final String API_VERSION = "3"; + public static final String API_VERSION = "3"; - protected String baseURL; + protected String baseURL; - /** - * API credentials - merchant level constructor in {@link com.adyen.service.management package}. - * @param client {@link Client } (required) - */ - public ApiCredentialsMerchantLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } + /** + * API credentials - merchant level constructor in {@link com.adyen.service.management package}. + * + * @param client {@link Client } (required) + */ + public ApiCredentialsMerchantLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } - /** - * API credentials - merchant level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public ApiCredentialsMerchantLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * API credentials - merchant level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or + * testing purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public ApiCredentialsMerchantLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Create an API credential - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param createMerchantApiCredentialRequest {@link CreateMerchantApiCredentialRequest } (required) - * @return {@link CreateApiCredentialResponse } - * @throws ApiException if fails to make API call - */ - public CreateApiCredentialResponse createApiCredential(String merchantId, CreateMerchantApiCredentialRequest createMerchantApiCredentialRequest) throws ApiException, IOException { - return createApiCredential(merchantId, createMerchantApiCredentialRequest, null); - } + /** + * Create an API credential + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param createMerchantApiCredentialRequest {@link CreateMerchantApiCredentialRequest } + * (required) + * @return {@link CreateApiCredentialResponse } + * @throws ApiException if fails to make API call + */ + public CreateApiCredentialResponse createApiCredential( + String merchantId, CreateMerchantApiCredentialRequest createMerchantApiCredentialRequest) + throws ApiException, IOException { + return createApiCredential(merchantId, createMerchantApiCredentialRequest, null); + } - /** - * Create an API credential - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param createMerchantApiCredentialRequest {@link CreateMerchantApiCredentialRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link CreateApiCredentialResponse } - * @throws ApiException if fails to make API call - */ - public CreateApiCredentialResponse createApiCredential(String merchantId, CreateMerchantApiCredentialRequest createMerchantApiCredentialRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - - String requestBody = createMerchantApiCredentialRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/apiCredentials", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return CreateApiCredentialResponse.fromJson(jsonResult); + /** + * Create an API credential + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param createMerchantApiCredentialRequest {@link CreateMerchantApiCredentialRequest } + * (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link CreateApiCredentialResponse } + * @throws ApiException if fails to make API call + */ + public CreateApiCredentialResponse createApiCredential( + String merchantId, + CreateMerchantApiCredentialRequest createMerchantApiCredentialRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); - /** - * Get an API credential - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @return {@link ApiCredential } - * @throws ApiException if fails to make API call - */ - public ApiCredential getApiCredential(String merchantId, String apiCredentialId) throws ApiException, IOException { - return getApiCredential(merchantId, apiCredentialId, null); - } + String requestBody = createMerchantApiCredentialRequest.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/merchants/{merchantId}/apiCredentials", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return CreateApiCredentialResponse.fromJson(jsonResult); + } - /** - * Get an API credential - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ApiCredential } - * @throws ApiException if fails to make API call - */ - public ApiCredential getApiCredential(String merchantId, String apiCredentialId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (apiCredentialId == null) { - throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); - } - pathParams.put("apiCredentialId", apiCredentialId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/apiCredentials/{apiCredentialId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return ApiCredential.fromJson(jsonResult); - } + /** + * Get an API credential + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @return {@link ApiCredential } + * @throws ApiException if fails to make API call + */ + public ApiCredential getApiCredential(String merchantId, String apiCredentialId) + throws ApiException, IOException { + return getApiCredential(merchantId, apiCredentialId, null); + } - /** - * Get a list of API credentials - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @return {@link ListMerchantApiCredentialsResponse } - * @throws ApiException if fails to make API call - */ - public ListMerchantApiCredentialsResponse listApiCredentials(String merchantId) throws ApiException, IOException { - return listApiCredentials(merchantId, null, null, null); + /** + * Get an API credential + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ApiCredential } + * @throws ApiException if fails to make API call + */ + public ApiCredential getApiCredential( + String merchantId, String apiCredentialId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); + if (apiCredentialId == null) { + throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + } + pathParams.put("apiCredentialId", apiCredentialId); + + String requestBody = null; + Resource resource = + new Resource( + this, this.baseURL + "/merchants/{merchantId}/apiCredentials/{apiCredentialId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return ApiCredential.fromJson(jsonResult); + } - /** - * Get a list of API credentials - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The default is 10 items on a page. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ListMerchantApiCredentialsResponse } - * @throws ApiException if fails to make API call - */ - public ListMerchantApiCredentialsResponse listApiCredentials(String merchantId, Integer pageNumber, Integer pageSize, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - - //Add query params - Map queryParams = new HashMap<>(); - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); - } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); - } - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/apiCredentials", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return ListMerchantApiCredentialsResponse.fromJson(jsonResult); + /** + * Get a list of API credentials + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @return {@link ListMerchantApiCredentialsResponse } + * @throws ApiException if fails to make API call + */ + public ListMerchantApiCredentialsResponse listApiCredentials(String merchantId) + throws ApiException, IOException { + return listApiCredentials(merchantId, null, null, null); + } + + /** + * Get a list of API credentials + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The + * default is 10 items on a page. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ListMerchantApiCredentialsResponse } + * @throws ApiException if fails to make API call + */ + public ListMerchantApiCredentialsResponse listApiCredentials( + String merchantId, Integer pageNumber, Integer pageSize, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); - /** - * Update an API credential - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param updateMerchantApiCredentialRequest {@link UpdateMerchantApiCredentialRequest } (required) - * @return {@link ApiCredential } - * @throws ApiException if fails to make API call - */ - public ApiCredential updateApiCredential(String merchantId, String apiCredentialId, UpdateMerchantApiCredentialRequest updateMerchantApiCredentialRequest) throws ApiException, IOException { - return updateApiCredential(merchantId, apiCredentialId, updateMerchantApiCredentialRequest, null); + // Add query params + Map queryParams = new HashMap<>(); + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); + } + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); } - /** - * Update an API credential - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param updateMerchantApiCredentialRequest {@link UpdateMerchantApiCredentialRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ApiCredential } - * @throws ApiException if fails to make API call - */ - public ApiCredential updateApiCredential(String merchantId, String apiCredentialId, UpdateMerchantApiCredentialRequest updateMerchantApiCredentialRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (apiCredentialId == null) { - throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); - } - pathParams.put("apiCredentialId", apiCredentialId); - - String requestBody = updateMerchantApiCredentialRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/apiCredentials/{apiCredentialId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return ApiCredential.fromJson(jsonResult); + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/merchants/{merchantId}/apiCredentials", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return ListMerchantApiCredentialsResponse.fromJson(jsonResult); + } + + /** + * Update an API credential + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param updateMerchantApiCredentialRequest {@link UpdateMerchantApiCredentialRequest } + * (required) + * @return {@link ApiCredential } + * @throws ApiException if fails to make API call + */ + public ApiCredential updateApiCredential( + String merchantId, + String apiCredentialId, + UpdateMerchantApiCredentialRequest updateMerchantApiCredentialRequest) + throws ApiException, IOException { + return updateApiCredential( + merchantId, apiCredentialId, updateMerchantApiCredentialRequest, null); + } + + /** + * Update an API credential + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param updateMerchantApiCredentialRequest {@link UpdateMerchantApiCredentialRequest } + * (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ApiCredential } + * @throws ApiException if fails to make API call + */ + public ApiCredential updateApiCredential( + String merchantId, + String apiCredentialId, + UpdateMerchantApiCredentialRequest updateMerchantApiCredentialRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); + if (apiCredentialId == null) { + throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + } + pathParams.put("apiCredentialId", apiCredentialId); + + String requestBody = updateMerchantApiCredentialRequest.toJson(); + Resource resource = + new Resource( + this, this.baseURL + "/merchants/{merchantId}/apiCredentials/{apiCredentialId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return ApiCredential.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/ApiKeyCompanyLevelApi.java b/src/main/java/com/adyen/service/management/ApiKeyCompanyLevelApi.java index dc179ffdc..3a3463785 100644 --- a/src/main/java/com/adyen/service/management/ApiKeyCompanyLevelApi.java +++ b/src/main/java/com/adyen/service/management/ApiKeyCompanyLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,78 +14,88 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.management.GenerateApiKeyResponse; -import com.adyen.model.management.RestServiceError; import com.adyen.model.RequestOptions; +import com.adyen.model.management.GenerateApiKeyResponse; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class ApiKeyCompanyLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; + public static final String API_VERSION = "3"; - /** - * API key - company level constructor in {@link com.adyen.service.management package}. - * @param client {@link Client } (required) - */ - public ApiKeyCompanyLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } + protected String baseURL; - /** - * API key - company level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public ApiKeyCompanyLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * API key - company level constructor in {@link com.adyen.service.management package}. + * + * @param client {@link Client } (required) + */ + public ApiKeyCompanyLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } - /** - * Generate new API key - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @return {@link GenerateApiKeyResponse } - * @throws ApiException if fails to make API call - */ - public GenerateApiKeyResponse generateNewApiKey(String companyId, String apiCredentialId) throws ApiException, IOException { - return generateNewApiKey(companyId, apiCredentialId, null); - } + /** + * API key - company level constructor in {@link com.adyen.service.management package}. Please use + * this constructor only if you would like to pass along your own url for routing or testing + * purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public ApiKeyCompanyLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Generate new API key - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link GenerateApiKeyResponse } - * @throws ApiException if fails to make API call - */ - public GenerateApiKeyResponse generateNewApiKey(String companyId, String apiCredentialId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - if (apiCredentialId == null) { - throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); - } - pathParams.put("apiCredentialId", apiCredentialId); + /** + * Generate new API key + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @return {@link GenerateApiKeyResponse } + * @throws ApiException if fails to make API call + */ + public GenerateApiKeyResponse generateNewApiKey(String companyId, String apiCredentialId) + throws ApiException, IOException { + return generateNewApiKey(companyId, apiCredentialId, null); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/apiCredentials/{apiCredentialId}/generateApiKey", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return GenerateApiKeyResponse.fromJson(jsonResult); + /** + * Generate new API key + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link GenerateApiKeyResponse } + * @throws ApiException if fails to make API call + */ + public GenerateApiKeyResponse generateNewApiKey( + String companyId, String apiCredentialId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } + pathParams.put("companyId", companyId); + if (apiCredentialId == null) { + throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + } + pathParams.put("apiCredentialId", apiCredentialId); + + String requestBody = null; + Resource resource = + new Resource( + this, + this.baseURL + "/companies/{companyId}/apiCredentials/{apiCredentialId}/generateApiKey", + null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return GenerateApiKeyResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/ApiKeyMerchantLevelApi.java b/src/main/java/com/adyen/service/management/ApiKeyMerchantLevelApi.java index 491caa8dd..f6beeaebf 100644 --- a/src/main/java/com/adyen/service/management/ApiKeyMerchantLevelApi.java +++ b/src/main/java/com/adyen/service/management/ApiKeyMerchantLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,78 +14,89 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.management.GenerateApiKeyResponse; -import com.adyen.model.management.RestServiceError; import com.adyen.model.RequestOptions; +import com.adyen.model.management.GenerateApiKeyResponse; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class ApiKeyMerchantLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; + public static final String API_VERSION = "3"; - /** - * API key - merchant level constructor in {@link com.adyen.service.management package}. - * @param client {@link Client } (required) - */ - public ApiKeyMerchantLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } + protected String baseURL; - /** - * API key - merchant level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public ApiKeyMerchantLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * API key - merchant level constructor in {@link com.adyen.service.management package}. + * + * @param client {@link Client } (required) + */ + public ApiKeyMerchantLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } - /** - * Generate new API key - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @return {@link GenerateApiKeyResponse } - * @throws ApiException if fails to make API call - */ - public GenerateApiKeyResponse generateNewApiKey(String merchantId, String apiCredentialId) throws ApiException, IOException { - return generateNewApiKey(merchantId, apiCredentialId, null); - } + /** + * API key - merchant level constructor in {@link com.adyen.service.management package}. Please + * use this constructor only if you would like to pass along your own url for routing or testing + * purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public ApiKeyMerchantLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Generate new API key - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link GenerateApiKeyResponse } - * @throws ApiException if fails to make API call - */ - public GenerateApiKeyResponse generateNewApiKey(String merchantId, String apiCredentialId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (apiCredentialId == null) { - throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); - } - pathParams.put("apiCredentialId", apiCredentialId); + /** + * Generate new API key + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @return {@link GenerateApiKeyResponse } + * @throws ApiException if fails to make API call + */ + public GenerateApiKeyResponse generateNewApiKey(String merchantId, String apiCredentialId) + throws ApiException, IOException { + return generateNewApiKey(merchantId, apiCredentialId, null); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/apiCredentials/{apiCredentialId}/generateApiKey", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return GenerateApiKeyResponse.fromJson(jsonResult); + /** + * Generate new API key + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link GenerateApiKeyResponse } + * @throws ApiException if fails to make API call + */ + public GenerateApiKeyResponse generateNewApiKey( + String merchantId, String apiCredentialId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); + if (apiCredentialId == null) { + throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + } + pathParams.put("apiCredentialId", apiCredentialId); + + String requestBody = null; + Resource resource = + new Resource( + this, + this.baseURL + + "/merchants/{merchantId}/apiCredentials/{apiCredentialId}/generateApiKey", + null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return GenerateApiKeyResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/ClientKeyCompanyLevelApi.java b/src/main/java/com/adyen/service/management/ClientKeyCompanyLevelApi.java index fcb2a2ba5..fc06fedfd 100644 --- a/src/main/java/com/adyen/service/management/ClientKeyCompanyLevelApi.java +++ b/src/main/java/com/adyen/service/management/ClientKeyCompanyLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,78 +14,89 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.management.GenerateClientKeyResponse; -import com.adyen.model.management.RestServiceError; import com.adyen.model.RequestOptions; +import com.adyen.model.management.GenerateClientKeyResponse; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class ClientKeyCompanyLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; + public static final String API_VERSION = "3"; - /** - * Client key - company level constructor in {@link com.adyen.service.management package}. - * @param client {@link Client } (required) - */ - public ClientKeyCompanyLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } + protected String baseURL; - /** - * Client key - company level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public ClientKeyCompanyLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Client key - company level constructor in {@link com.adyen.service.management package}. + * + * @param client {@link Client } (required) + */ + public ClientKeyCompanyLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } - /** - * Generate new client key - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @return {@link GenerateClientKeyResponse } - * @throws ApiException if fails to make API call - */ - public GenerateClientKeyResponse generateNewClientKey(String companyId, String apiCredentialId) throws ApiException, IOException { - return generateNewClientKey(companyId, apiCredentialId, null); - } + /** + * Client key - company level constructor in {@link com.adyen.service.management package}. Please + * use this constructor only if you would like to pass along your own url for routing or testing + * purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public ClientKeyCompanyLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Generate new client key - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link GenerateClientKeyResponse } - * @throws ApiException if fails to make API call - */ - public GenerateClientKeyResponse generateNewClientKey(String companyId, String apiCredentialId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - if (apiCredentialId == null) { - throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); - } - pathParams.put("apiCredentialId", apiCredentialId); + /** + * Generate new client key + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @return {@link GenerateClientKeyResponse } + * @throws ApiException if fails to make API call + */ + public GenerateClientKeyResponse generateNewClientKey(String companyId, String apiCredentialId) + throws ApiException, IOException { + return generateNewClientKey(companyId, apiCredentialId, null); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/apiCredentials/{apiCredentialId}/generateClientKey", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return GenerateClientKeyResponse.fromJson(jsonResult); + /** + * Generate new client key + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link GenerateClientKeyResponse } + * @throws ApiException if fails to make API call + */ + public GenerateClientKeyResponse generateNewClientKey( + String companyId, String apiCredentialId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } + pathParams.put("companyId", companyId); + if (apiCredentialId == null) { + throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + } + pathParams.put("apiCredentialId", apiCredentialId); + + String requestBody = null; + Resource resource = + new Resource( + this, + this.baseURL + + "/companies/{companyId}/apiCredentials/{apiCredentialId}/generateClientKey", + null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return GenerateClientKeyResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/ClientKeyMerchantLevelApi.java b/src/main/java/com/adyen/service/management/ClientKeyMerchantLevelApi.java index 09f1d8ba2..7069b3af3 100644 --- a/src/main/java/com/adyen/service/management/ClientKeyMerchantLevelApi.java +++ b/src/main/java/com/adyen/service/management/ClientKeyMerchantLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,78 +14,89 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.management.GenerateClientKeyResponse; -import com.adyen.model.management.RestServiceError; import com.adyen.model.RequestOptions; +import com.adyen.model.management.GenerateClientKeyResponse; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class ClientKeyMerchantLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; + public static final String API_VERSION = "3"; - /** - * Client key - merchant level constructor in {@link com.adyen.service.management package}. - * @param client {@link Client } (required) - */ - public ClientKeyMerchantLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } + protected String baseURL; - /** - * Client key - merchant level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public ClientKeyMerchantLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Client key - merchant level constructor in {@link com.adyen.service.management package}. + * + * @param client {@link Client } (required) + */ + public ClientKeyMerchantLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } - /** - * Generate new client key - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @return {@link GenerateClientKeyResponse } - * @throws ApiException if fails to make API call - */ - public GenerateClientKeyResponse generateNewClientKey(String merchantId, String apiCredentialId) throws ApiException, IOException { - return generateNewClientKey(merchantId, apiCredentialId, null); - } + /** + * Client key - merchant level constructor in {@link com.adyen.service.management package}. Please + * use this constructor only if you would like to pass along your own url for routing or testing + * purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public ClientKeyMerchantLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Generate new client key - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link GenerateClientKeyResponse } - * @throws ApiException if fails to make API call - */ - public GenerateClientKeyResponse generateNewClientKey(String merchantId, String apiCredentialId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (apiCredentialId == null) { - throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); - } - pathParams.put("apiCredentialId", apiCredentialId); + /** + * Generate new client key + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @return {@link GenerateClientKeyResponse } + * @throws ApiException if fails to make API call + */ + public GenerateClientKeyResponse generateNewClientKey(String merchantId, String apiCredentialId) + throws ApiException, IOException { + return generateNewClientKey(merchantId, apiCredentialId, null); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/apiCredentials/{apiCredentialId}/generateClientKey", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return GenerateClientKeyResponse.fromJson(jsonResult); + /** + * Generate new client key + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param apiCredentialId {@link String } Unique identifier of the API credential. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link GenerateClientKeyResponse } + * @throws ApiException if fails to make API call + */ + public GenerateClientKeyResponse generateNewClientKey( + String merchantId, String apiCredentialId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); + if (apiCredentialId == null) { + throw new IllegalArgumentException("Please provide the apiCredentialId path parameter"); + } + pathParams.put("apiCredentialId", apiCredentialId); + + String requestBody = null; + Resource resource = + new Resource( + this, + this.baseURL + + "/merchants/{merchantId}/apiCredentials/{apiCredentialId}/generateClientKey", + null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return GenerateClientKeyResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/MyApiCredentialApi.java b/src/main/java/com/adyen/service/management/MyApiCredentialApi.java index 43c750bc9..7ace2dc82 100644 --- a/src/main/java/com/adyen/service/management/MyApiCredentialApi.java +++ b/src/main/java/com/adyen/service/management/MyApiCredentialApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,204 +14,224 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.management.AllowedOrigin; import com.adyen.model.management.AllowedOriginsResponse; import com.adyen.model.management.CreateAllowedOriginRequest; import com.adyen.model.management.GenerateClientKeyResponse; import com.adyen.model.management.MeApiCredential; -import com.adyen.model.management.RestServiceError; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class MyApiCredentialApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * My API credential constructor in {@link com.adyen.service.management package}. - * @param client {@link Client } (required) - */ - public MyApiCredentialApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } - - /** - * My API credential constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public MyApiCredentialApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Add allowed origin - * - * @param createAllowedOriginRequest {@link CreateAllowedOriginRequest } (required) - * @return {@link AllowedOrigin } - * @throws ApiException if fails to make API call - */ - public AllowedOrigin addAllowedOrigin(CreateAllowedOriginRequest createAllowedOriginRequest) throws ApiException, IOException { - return addAllowedOrigin(createAllowedOriginRequest, null); - } - - /** - * Add allowed origin - * - * @param createAllowedOriginRequest {@link CreateAllowedOriginRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link AllowedOrigin } - * @throws ApiException if fails to make API call - */ - public AllowedOrigin addAllowedOrigin(CreateAllowedOriginRequest createAllowedOriginRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = createAllowedOriginRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/me/allowedOrigins", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return AllowedOrigin.fromJson(jsonResult); - } - - /** - * Generate a client key - * - * @return {@link GenerateClientKeyResponse } - * @throws ApiException if fails to make API call - */ - public GenerateClientKeyResponse generateClientKey() throws ApiException, IOException { - return generateClientKey(null); - } - - /** - * Generate a client key - * - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link GenerateClientKeyResponse } - * @throws ApiException if fails to make API call - */ - public GenerateClientKeyResponse generateClientKey(RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/me/generateClientKey", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return GenerateClientKeyResponse.fromJson(jsonResult); - } - - /** - * Get allowed origin details - * - * @param originId {@link String } Unique identifier of the allowed origin. (required) - * @return {@link AllowedOrigin } - * @throws ApiException if fails to make API call - */ - public AllowedOrigin getAllowedOriginDetails(String originId) throws ApiException, IOException { - return getAllowedOriginDetails(originId, null); - } - - /** - * Get allowed origin details - * - * @param originId {@link String } Unique identifier of the allowed origin. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link AllowedOrigin } - * @throws ApiException if fails to make API call - */ - public AllowedOrigin getAllowedOriginDetails(String originId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (originId == null) { - throw new IllegalArgumentException("Please provide the originId path parameter"); - } - pathParams.put("originId", originId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/me/allowedOrigins/{originId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return AllowedOrigin.fromJson(jsonResult); - } - - /** - * Get allowed origins - * - * @return {@link AllowedOriginsResponse } - * @throws ApiException if fails to make API call - */ - public AllowedOriginsResponse getAllowedOrigins() throws ApiException, IOException { - return getAllowedOrigins(null); + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * My API credential constructor in {@link com.adyen.service.management package}. + * + * @param client {@link Client } (required) + */ + public MyApiCredentialApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } + + /** + * My API credential constructor in {@link com.adyen.service.management package}. Please use this + * constructor only if you would like to pass along your own url for routing or testing purposes. + * The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public MyApiCredentialApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Add allowed origin + * + * @param createAllowedOriginRequest {@link CreateAllowedOriginRequest } (required) + * @return {@link AllowedOrigin } + * @throws ApiException if fails to make API call + */ + public AllowedOrigin addAllowedOrigin(CreateAllowedOriginRequest createAllowedOriginRequest) + throws ApiException, IOException { + return addAllowedOrigin(createAllowedOriginRequest, null); + } + + /** + * Add allowed origin + * + * @param createAllowedOriginRequest {@link CreateAllowedOriginRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link AllowedOrigin } + * @throws ApiException if fails to make API call + */ + public AllowedOrigin addAllowedOrigin( + CreateAllowedOriginRequest createAllowedOriginRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = createAllowedOriginRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/me/allowedOrigins", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return AllowedOrigin.fromJson(jsonResult); + } + + /** + * Generate a client key + * + * @return {@link GenerateClientKeyResponse } + * @throws ApiException if fails to make API call + */ + public GenerateClientKeyResponse generateClientKey() throws ApiException, IOException { + return generateClientKey(null); + } + + /** + * Generate a client key + * + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link GenerateClientKeyResponse } + * @throws ApiException if fails to make API call + */ + public GenerateClientKeyResponse generateClientKey(RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/me/generateClientKey", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return GenerateClientKeyResponse.fromJson(jsonResult); + } + + /** + * Get allowed origin details + * + * @param originId {@link String } Unique identifier of the allowed origin. (required) + * @return {@link AllowedOrigin } + * @throws ApiException if fails to make API call + */ + public AllowedOrigin getAllowedOriginDetails(String originId) throws ApiException, IOException { + return getAllowedOriginDetails(originId, null); + } + + /** + * Get allowed origin details + * + * @param originId {@link String } Unique identifier of the allowed origin. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link AllowedOrigin } + * @throws ApiException if fails to make API call + */ + public AllowedOrigin getAllowedOriginDetails(String originId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (originId == null) { + throw new IllegalArgumentException("Please provide the originId path parameter"); } - - /** - * Get allowed origins - * - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link AllowedOriginsResponse } - * @throws ApiException if fails to make API call - */ - public AllowedOriginsResponse getAllowedOrigins(RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/me/allowedOrigins", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null); - return AllowedOriginsResponse.fromJson(jsonResult); + pathParams.put("originId", originId); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/me/allowedOrigins/{originId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return AllowedOrigin.fromJson(jsonResult); + } + + /** + * Get allowed origins + * + * @return {@link AllowedOriginsResponse } + * @throws ApiException if fails to make API call + */ + public AllowedOriginsResponse getAllowedOrigins() throws ApiException, IOException { + return getAllowedOrigins(null); + } + + /** + * Get allowed origins + * + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link AllowedOriginsResponse } + * @throws ApiException if fails to make API call + */ + public AllowedOriginsResponse getAllowedOrigins(RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/me/allowedOrigins", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null); + return AllowedOriginsResponse.fromJson(jsonResult); + } + + /** + * Get API credential details + * + * @return {@link MeApiCredential } + * @throws ApiException if fails to make API call + */ + public MeApiCredential getApiCredentialDetails() throws ApiException, IOException { + return getApiCredentialDetails(null); + } + + /** + * Get API credential details + * + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link MeApiCredential } + * @throws ApiException if fails to make API call + */ + public MeApiCredential getApiCredentialDetails(RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/me", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null); + return MeApiCredential.fromJson(jsonResult); + } + + /** + * Remove allowed origin + * + * @param originId {@link String } Unique identifier of the allowed origin. (required) + * @throws ApiException if fails to make API call + */ + public void removeAllowedOrigin(String originId) throws ApiException, IOException { + removeAllowedOrigin(originId, null); + } + + /** + * Remove allowed origin + * + * @param originId {@link String } Unique identifier of the allowed origin. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void removeAllowedOrigin(String originId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (originId == null) { + throw new IllegalArgumentException("Please provide the originId path parameter"); } + pathParams.put("originId", originId); - /** - * Get API credential details - * - * @return {@link MeApiCredential } - * @throws ApiException if fails to make API call - */ - public MeApiCredential getApiCredentialDetails() throws ApiException, IOException { - return getApiCredentialDetails(null); - } - - /** - * Get API credential details - * - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link MeApiCredential } - * @throws ApiException if fails to make API call - */ - public MeApiCredential getApiCredentialDetails(RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/me", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null); - return MeApiCredential.fromJson(jsonResult); - } - - /** - * Remove allowed origin - * - * @param originId {@link String } Unique identifier of the allowed origin. (required) - * @throws ApiException if fails to make API call - */ - public void removeAllowedOrigin(String originId) throws ApiException, IOException { - removeAllowedOrigin(originId, null); - } - - /** - * Remove allowed origin - * - * @param originId {@link String } Unique identifier of the allowed origin. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void removeAllowedOrigin(String originId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (originId == null) { - throw new IllegalArgumentException("Please provide the originId path parameter"); - } - pathParams.put("originId", originId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/me/allowedOrigins/{originId}", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); - } + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/me/allowedOrigins/{originId}", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); + } } diff --git a/src/main/java/com/adyen/service/management/PaymentMethodsMerchantLevelApi.java b/src/main/java/com/adyen/service/management/PaymentMethodsMerchantLevelApi.java index 2ee0eb33f..2c79f81d7 100644 --- a/src/main/java/com/adyen/service/management/PaymentMethodsMerchantLevelApi.java +++ b/src/main/java/com/adyen/service/management/PaymentMethodsMerchantLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,287 +14,357 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.management.ApplePayInfo; import com.adyen.model.management.PaymentMethod; import com.adyen.model.management.PaymentMethodResponse; import com.adyen.model.management.PaymentMethodSetupInfo; -import com.adyen.model.management.RestServiceError; import com.adyen.model.management.UpdatePaymentMethodInfo; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class PaymentMethodsMerchantLevelApi extends Service { - public static final String API_VERSION = "3"; + public static final String API_VERSION = "3"; - protected String baseURL; + protected String baseURL; - /** - * Payment methods - merchant level constructor in {@link com.adyen.service.management package}. - * @param client {@link Client } (required) - */ - public PaymentMethodsMerchantLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } + /** + * Payment methods - merchant level constructor in {@link com.adyen.service.management package}. + * + * @param client {@link Client } (required) + */ + public PaymentMethodsMerchantLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } - /** - * Payment methods - merchant level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public PaymentMethodsMerchantLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Payment methods - merchant level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or + * testing purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public PaymentMethodsMerchantLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Add an Apple Pay domain - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param paymentMethodId {@link String } The unique identifier of the payment method. (required) - * @param applePayInfo {@link ApplePayInfo } (required) - * @throws ApiException if fails to make API call - */ - public void addApplePayDomain(String merchantId, String paymentMethodId, ApplePayInfo applePayInfo) throws ApiException, IOException { - addApplePayDomain(merchantId, paymentMethodId, applePayInfo, null); - } - - /** - * Add an Apple Pay domain - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param paymentMethodId {@link String } The unique identifier of the payment method. (required) - * @param applePayInfo {@link ApplePayInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void addApplePayDomain(String merchantId, String paymentMethodId, ApplePayInfo applePayInfo, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (paymentMethodId == null) { - throw new IllegalArgumentException("Please provide the paymentMethodId path parameter"); - } - pathParams.put("paymentMethodId", paymentMethodId); + /** + * Add an Apple Pay domain + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param paymentMethodId {@link String } The unique identifier of the payment method. (required) + * @param applePayInfo {@link ApplePayInfo } (required) + * @throws ApiException if fails to make API call + */ + public void addApplePayDomain( + String merchantId, String paymentMethodId, ApplePayInfo applePayInfo) + throws ApiException, IOException { + addApplePayDomain(merchantId, paymentMethodId, applePayInfo, null); + } - String requestBody = applePayInfo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/paymentMethodSettings/{paymentMethodId}/addApplePayDomains", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + /** + * Add an Apple Pay domain + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param paymentMethodId {@link String } The unique identifier of the payment method. (required) + * @param applePayInfo {@link ApplePayInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void addApplePayDomain( + String merchantId, + String paymentMethodId, + ApplePayInfo applePayInfo, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } - - /** - * Get all payment methods - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @return {@link PaymentMethodResponse } - * @throws ApiException if fails to make API call - */ - public PaymentMethodResponse getAllPaymentMethods(String merchantId) throws ApiException, IOException { - return getAllPaymentMethods(merchantId, null, null, null, null, null); + pathParams.put("merchantId", merchantId); + if (paymentMethodId == null) { + throw new IllegalArgumentException("Please provide the paymentMethodId path parameter"); } + pathParams.put("paymentMethodId", paymentMethodId); - /** - * Get all payment methods - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param storeId {@link String } Query: The unique identifier of the store for which to return the payment methods. (optional) - * @param businessLineId {@link String } Query: The unique identifier of the Business Line for which to return the payment methods. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The default is 10 items on a page. (optional) - * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PaymentMethodResponse } - * @throws ApiException if fails to make API call - */ - public PaymentMethodResponse getAllPaymentMethods(String merchantId, String storeId, String businessLineId, Integer pageSize, Integer pageNumber, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); + String requestBody = applePayInfo.toJson(); + Resource resource = + new Resource( + this, + this.baseURL + + "/merchants/{merchantId}/paymentMethodSettings/{paymentMethodId}/addApplePayDomains", + null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + } - //Add query params - Map queryParams = new HashMap<>(); - if (storeId != null) { - queryParams.put("storeId", storeId); - } - if (businessLineId != null) { - queryParams.put("businessLineId", businessLineId); - } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); - } - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); - } + /** + * Get all payment methods + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @return {@link PaymentMethodResponse } + * @throws ApiException if fails to make API call + */ + public PaymentMethodResponse getAllPaymentMethods(String merchantId) + throws ApiException, IOException { + return getAllPaymentMethods(merchantId, null, null, null, null, null); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/paymentMethodSettings", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return PaymentMethodResponse.fromJson(jsonResult); + /** + * Get all payment methods + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param storeId {@link String } Query: The unique identifier of the store for which to return + * the payment methods. (optional) + * @param businessLineId {@link String } Query: The unique identifier of the Business Line for + * which to return the payment methods. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The + * default is 10 items on a page. (optional) + * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PaymentMethodResponse } + * @throws ApiException if fails to make API call + */ + public PaymentMethodResponse getAllPaymentMethods( + String merchantId, + String storeId, + String businessLineId, + Integer pageSize, + Integer pageNumber, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); - /** - * Get Apple Pay domains - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param paymentMethodId {@link String } The unique identifier of the payment method. (required) - * @return {@link ApplePayInfo } - * @throws ApiException if fails to make API call - */ - public ApplePayInfo getApplePayDomains(String merchantId, String paymentMethodId) throws ApiException, IOException { - return getApplePayDomains(merchantId, paymentMethodId, null); + // Add query params + Map queryParams = new HashMap<>(); + if (storeId != null) { + queryParams.put("storeId", storeId); + } + if (businessLineId != null) { + queryParams.put("businessLineId", businessLineId); + } + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); + } + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); } - /** - * Get Apple Pay domains - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param paymentMethodId {@link String } The unique identifier of the payment method. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ApplePayInfo } - * @throws ApiException if fails to make API call - */ - public ApplePayInfo getApplePayDomains(String merchantId, String paymentMethodId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (paymentMethodId == null) { - throw new IllegalArgumentException("Please provide the paymentMethodId path parameter"); - } - pathParams.put("paymentMethodId", paymentMethodId); + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/merchants/{merchantId}/paymentMethodSettings", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return PaymentMethodResponse.fromJson(jsonResult); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/paymentMethodSettings/{paymentMethodId}/getApplePayDomains", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return ApplePayInfo.fromJson(jsonResult); - } + /** + * Get Apple Pay domains + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param paymentMethodId {@link String } The unique identifier of the payment method. (required) + * @return {@link ApplePayInfo } + * @throws ApiException if fails to make API call + */ + public ApplePayInfo getApplePayDomains(String merchantId, String paymentMethodId) + throws ApiException, IOException { + return getApplePayDomains(merchantId, paymentMethodId, null); + } - /** - * Get payment method details - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param paymentMethodId {@link String } The unique identifier of the payment method. (required) - * @return {@link PaymentMethod } - * @throws ApiException if fails to make API call - */ - public PaymentMethod getPaymentMethodDetails(String merchantId, String paymentMethodId) throws ApiException, IOException { - return getPaymentMethodDetails(merchantId, paymentMethodId, null); + /** + * Get Apple Pay domains + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param paymentMethodId {@link String } The unique identifier of the payment method. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ApplePayInfo } + * @throws ApiException if fails to make API call + */ + public ApplePayInfo getApplePayDomains( + String merchantId, String paymentMethodId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); + if (paymentMethodId == null) { + throw new IllegalArgumentException("Please provide the paymentMethodId path parameter"); + } + pathParams.put("paymentMethodId", paymentMethodId); - /** - * Get payment method details - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param paymentMethodId {@link String } The unique identifier of the payment method. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PaymentMethod } - * @throws ApiException if fails to make API call - */ - public PaymentMethod getPaymentMethodDetails(String merchantId, String paymentMethodId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (paymentMethodId == null) { - throw new IllegalArgumentException("Please provide the paymentMethodId path parameter"); - } - pathParams.put("paymentMethodId", paymentMethodId); + String requestBody = null; + Resource resource = + new Resource( + this, + this.baseURL + + "/merchants/{merchantId}/paymentMethodSettings/{paymentMethodId}/getApplePayDomains", + null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return ApplePayInfo.fromJson(jsonResult); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/paymentMethodSettings/{paymentMethodId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return PaymentMethod.fromJson(jsonResult); - } + /** + * Get payment method details + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param paymentMethodId {@link String } The unique identifier of the payment method. (required) + * @return {@link PaymentMethod } + * @throws ApiException if fails to make API call + */ + public PaymentMethod getPaymentMethodDetails(String merchantId, String paymentMethodId) + throws ApiException, IOException { + return getPaymentMethodDetails(merchantId, paymentMethodId, null); + } - /** - * Request a payment method - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param paymentMethodSetupInfo {@link PaymentMethodSetupInfo } (required) - * @return {@link PaymentMethod } - * @throws ApiException if fails to make API call - */ - public PaymentMethod requestPaymentMethod(String merchantId, PaymentMethodSetupInfo paymentMethodSetupInfo) throws ApiException, IOException { - return requestPaymentMethod(merchantId, paymentMethodSetupInfo, null); + /** + * Get payment method details + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param paymentMethodId {@link String } The unique identifier of the payment method. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PaymentMethod } + * @throws ApiException if fails to make API call + */ + public PaymentMethod getPaymentMethodDetails( + String merchantId, String paymentMethodId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (paymentMethodId == null) { + throw new IllegalArgumentException("Please provide the paymentMethodId path parameter"); } + pathParams.put("paymentMethodId", paymentMethodId); - /** - * Request a payment method - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param paymentMethodSetupInfo {@link PaymentMethodSetupInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PaymentMethod } - * @throws ApiException if fails to make API call - */ - public PaymentMethod requestPaymentMethod(String merchantId, PaymentMethodSetupInfo paymentMethodSetupInfo, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); + String requestBody = null; + Resource resource = + new Resource( + this, + this.baseURL + "/merchants/{merchantId}/paymentMethodSettings/{paymentMethodId}", + null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return PaymentMethod.fromJson(jsonResult); + } - String requestBody = paymentMethodSetupInfo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/paymentMethodSettings", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return PaymentMethod.fromJson(jsonResult); - } + /** + * Request a payment method + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param paymentMethodSetupInfo {@link PaymentMethodSetupInfo } (required) + * @return {@link PaymentMethod } + * @throws ApiException if fails to make API call + */ + public PaymentMethod requestPaymentMethod( + String merchantId, PaymentMethodSetupInfo paymentMethodSetupInfo) + throws ApiException, IOException { + return requestPaymentMethod(merchantId, paymentMethodSetupInfo, null); + } - /** - * Update a payment method - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param paymentMethodId {@link String } The unique identifier of the payment method. (required) - * @param updatePaymentMethodInfo {@link UpdatePaymentMethodInfo } (required) - * @return {@link PaymentMethod } - * @throws ApiException if fails to make API call - */ - public PaymentMethod updatePaymentMethod(String merchantId, String paymentMethodId, UpdatePaymentMethodInfo updatePaymentMethodInfo) throws ApiException, IOException { - return updatePaymentMethod(merchantId, paymentMethodId, updatePaymentMethodInfo, null); + /** + * Request a payment method + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param paymentMethodSetupInfo {@link PaymentMethodSetupInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PaymentMethod } + * @throws ApiException if fails to make API call + */ + public PaymentMethod requestPaymentMethod( + String merchantId, + PaymentMethodSetupInfo paymentMethodSetupInfo, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); + + String requestBody = paymentMethodSetupInfo.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/merchants/{merchantId}/paymentMethodSettings", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return PaymentMethod.fromJson(jsonResult); + } - /** - * Update a payment method - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param paymentMethodId {@link String } The unique identifier of the payment method. (required) - * @param updatePaymentMethodInfo {@link UpdatePaymentMethodInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PaymentMethod } - * @throws ApiException if fails to make API call - */ - public PaymentMethod updatePaymentMethod(String merchantId, String paymentMethodId, UpdatePaymentMethodInfo updatePaymentMethodInfo, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (paymentMethodId == null) { - throw new IllegalArgumentException("Please provide the paymentMethodId path parameter"); - } - pathParams.put("paymentMethodId", paymentMethodId); + /** + * Update a payment method + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param paymentMethodId {@link String } The unique identifier of the payment method. (required) + * @param updatePaymentMethodInfo {@link UpdatePaymentMethodInfo } (required) + * @return {@link PaymentMethod } + * @throws ApiException if fails to make API call + */ + public PaymentMethod updatePaymentMethod( + String merchantId, String paymentMethodId, UpdatePaymentMethodInfo updatePaymentMethodInfo) + throws ApiException, IOException { + return updatePaymentMethod(merchantId, paymentMethodId, updatePaymentMethodInfo, null); + } - String requestBody = updatePaymentMethodInfo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/paymentMethodSettings/{paymentMethodId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return PaymentMethod.fromJson(jsonResult); + /** + * Update a payment method + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param paymentMethodId {@link String } The unique identifier of the payment method. (required) + * @param updatePaymentMethodInfo {@link UpdatePaymentMethodInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PaymentMethod } + * @throws ApiException if fails to make API call + */ + public PaymentMethod updatePaymentMethod( + String merchantId, + String paymentMethodId, + UpdatePaymentMethodInfo updatePaymentMethodInfo, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); + if (paymentMethodId == null) { + throw new IllegalArgumentException("Please provide the paymentMethodId path parameter"); + } + pathParams.put("paymentMethodId", paymentMethodId); + + String requestBody = updatePaymentMethodInfo.toJson(); + Resource resource = + new Resource( + this, + this.baseURL + "/merchants/{merchantId}/paymentMethodSettings/{paymentMethodId}", + null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return PaymentMethod.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/PayoutSettingsMerchantLevelApi.java b/src/main/java/com/adyen/service/management/PayoutSettingsMerchantLevelApi.java index 34b42867f..9683792cb 100644 --- a/src/main/java/com/adyen/service/management/PayoutSettingsMerchantLevelApi.java +++ b/src/main/java/com/adyen/service/management/PayoutSettingsMerchantLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,226 +14,265 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.management.PayoutSettings; import com.adyen.model.management.PayoutSettingsRequest; import com.adyen.model.management.PayoutSettingsResponse; -import com.adyen.model.management.RestServiceError; import com.adyen.model.management.UpdatePayoutSettingsRequest; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class PayoutSettingsMerchantLevelApi extends Service { - public static final String API_VERSION = "3"; + public static final String API_VERSION = "3"; - protected String baseURL; + protected String baseURL; - /** - * Payout settings - merchant level constructor in {@link com.adyen.service.management package}. - * @param client {@link Client } (required) - */ - public PayoutSettingsMerchantLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } + /** + * Payout settings - merchant level constructor in {@link com.adyen.service.management package}. + * + * @param client {@link Client } (required) + */ + public PayoutSettingsMerchantLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } - /** - * Payout settings - merchant level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public PayoutSettingsMerchantLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Payout settings - merchant level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or + * testing purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public PayoutSettingsMerchantLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Add a payout setting - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param payoutSettingsRequest {@link PayoutSettingsRequest } (required) - * @return {@link PayoutSettings } - * @throws ApiException if fails to make API call - */ - public PayoutSettings addPayoutSetting(String merchantId, PayoutSettingsRequest payoutSettingsRequest) throws ApiException, IOException { - return addPayoutSetting(merchantId, payoutSettingsRequest, null); - } + /** + * Add a payout setting + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param payoutSettingsRequest {@link PayoutSettingsRequest } (required) + * @return {@link PayoutSettings } + * @throws ApiException if fails to make API call + */ + public PayoutSettings addPayoutSetting( + String merchantId, PayoutSettingsRequest payoutSettingsRequest) + throws ApiException, IOException { + return addPayoutSetting(merchantId, payoutSettingsRequest, null); + } - /** - * Add a payout setting - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param payoutSettingsRequest {@link PayoutSettingsRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PayoutSettings } - * @throws ApiException if fails to make API call - */ - public PayoutSettings addPayoutSetting(String merchantId, PayoutSettingsRequest payoutSettingsRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - - String requestBody = payoutSettingsRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/payoutSettings", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return PayoutSettings.fromJson(jsonResult); + /** + * Add a payout setting + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param payoutSettingsRequest {@link PayoutSettingsRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PayoutSettings } + * @throws ApiException if fails to make API call + */ + public PayoutSettings addPayoutSetting( + String merchantId, PayoutSettingsRequest payoutSettingsRequest, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); - /** - * Delete a payout setting - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param payoutSettingsId {@link String } The unique identifier of the payout setting. (required) - * @throws ApiException if fails to make API call - */ - public void deletePayoutSetting(String merchantId, String payoutSettingsId) throws ApiException, IOException { - deletePayoutSetting(merchantId, payoutSettingsId, null); - } + String requestBody = payoutSettingsRequest.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/merchants/{merchantId}/payoutSettings", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return PayoutSettings.fromJson(jsonResult); + } - /** - * Delete a payout setting - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param payoutSettingsId {@link String } The unique identifier of the payout setting. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void deletePayoutSetting(String merchantId, String payoutSettingsId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (payoutSettingsId == null) { - throw new IllegalArgumentException("Please provide the payoutSettingsId path parameter"); - } - pathParams.put("payoutSettingsId", payoutSettingsId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/payoutSettings/{payoutSettingsId}", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); - } + /** + * Delete a payout setting + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param payoutSettingsId {@link String } The unique identifier of the payout setting. (required) + * @throws ApiException if fails to make API call + */ + public void deletePayoutSetting(String merchantId, String payoutSettingsId) + throws ApiException, IOException { + deletePayoutSetting(merchantId, payoutSettingsId, null); + } - /** - * Get a payout setting - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param payoutSettingsId {@link String } The unique identifier of the payout setting. (required) - * @return {@link PayoutSettings } - * @throws ApiException if fails to make API call - */ - public PayoutSettings getPayoutSetting(String merchantId, String payoutSettingsId) throws ApiException, IOException { - return getPayoutSetting(merchantId, payoutSettingsId, null); + /** + * Delete a payout setting + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param payoutSettingsId {@link String } The unique identifier of the payout setting. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void deletePayoutSetting( + String merchantId, String payoutSettingsId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } - - /** - * Get a payout setting - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param payoutSettingsId {@link String } The unique identifier of the payout setting. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PayoutSettings } - * @throws ApiException if fails to make API call - */ - public PayoutSettings getPayoutSetting(String merchantId, String payoutSettingsId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (payoutSettingsId == null) { - throw new IllegalArgumentException("Please provide the payoutSettingsId path parameter"); - } - pathParams.put("payoutSettingsId", payoutSettingsId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/payoutSettings/{payoutSettingsId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return PayoutSettings.fromJson(jsonResult); + pathParams.put("merchantId", merchantId); + if (payoutSettingsId == null) { + throw new IllegalArgumentException("Please provide the payoutSettingsId path parameter"); } + pathParams.put("payoutSettingsId", payoutSettingsId); - /** - * Get a list of payout settings - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @return {@link PayoutSettingsResponse } - * @throws ApiException if fails to make API call - */ - public PayoutSettingsResponse listPayoutSettings(String merchantId) throws ApiException, IOException { - return listPayoutSettings(merchantId, null); - } + String requestBody = null; + Resource resource = + new Resource( + this, this.baseURL + "/merchants/{merchantId}/payoutSettings/{payoutSettingsId}", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); + } + + /** + * Get a payout setting + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param payoutSettingsId {@link String } The unique identifier of the payout setting. (required) + * @return {@link PayoutSettings } + * @throws ApiException if fails to make API call + */ + public PayoutSettings getPayoutSetting(String merchantId, String payoutSettingsId) + throws ApiException, IOException { + return getPayoutSetting(merchantId, payoutSettingsId, null); + } - /** - * Get a list of payout settings - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PayoutSettingsResponse } - * @throws ApiException if fails to make API call - */ - public PayoutSettingsResponse listPayoutSettings(String merchantId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/payoutSettings", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return PayoutSettingsResponse.fromJson(jsonResult); + /** + * Get a payout setting + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param payoutSettingsId {@link String } The unique identifier of the payout setting. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PayoutSettings } + * @throws ApiException if fails to make API call + */ + public PayoutSettings getPayoutSetting( + String merchantId, String payoutSettingsId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (payoutSettingsId == null) { + throw new IllegalArgumentException("Please provide the payoutSettingsId path parameter"); } + pathParams.put("payoutSettingsId", payoutSettingsId); + + String requestBody = null; + Resource resource = + new Resource( + this, this.baseURL + "/merchants/{merchantId}/payoutSettings/{payoutSettingsId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return PayoutSettings.fromJson(jsonResult); + } + + /** + * Get a list of payout settings + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @return {@link PayoutSettingsResponse } + * @throws ApiException if fails to make API call + */ + public PayoutSettingsResponse listPayoutSettings(String merchantId) + throws ApiException, IOException { + return listPayoutSettings(merchantId, null); + } - /** - * Update a payout setting - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param payoutSettingsId {@link String } The unique identifier of the payout setting. (required) - * @param updatePayoutSettingsRequest {@link UpdatePayoutSettingsRequest } (required) - * @return {@link PayoutSettings } - * @throws ApiException if fails to make API call - */ - public PayoutSettings updatePayoutSetting(String merchantId, String payoutSettingsId, UpdatePayoutSettingsRequest updatePayoutSettingsRequest) throws ApiException, IOException { - return updatePayoutSetting(merchantId, payoutSettingsId, updatePayoutSettingsRequest, null); + /** + * Get a list of payout settings + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PayoutSettingsResponse } + * @throws ApiException if fails to make API call + */ + public PayoutSettingsResponse listPayoutSettings(String merchantId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); - /** - * Update a payout setting - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param payoutSettingsId {@link String } The unique identifier of the payout setting. (required) - * @param updatePayoutSettingsRequest {@link UpdatePayoutSettingsRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PayoutSettings } - * @throws ApiException if fails to make API call - */ - public PayoutSettings updatePayoutSetting(String merchantId, String payoutSettingsId, UpdatePayoutSettingsRequest updatePayoutSettingsRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (payoutSettingsId == null) { - throw new IllegalArgumentException("Please provide the payoutSettingsId path parameter"); - } - pathParams.put("payoutSettingsId", payoutSettingsId); - - String requestBody = updatePayoutSettingsRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/payoutSettings/{payoutSettingsId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return PayoutSettings.fromJson(jsonResult); + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/merchants/{merchantId}/payoutSettings", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return PayoutSettingsResponse.fromJson(jsonResult); + } + + /** + * Update a payout setting + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param payoutSettingsId {@link String } The unique identifier of the payout setting. (required) + * @param updatePayoutSettingsRequest {@link UpdatePayoutSettingsRequest } (required) + * @return {@link PayoutSettings } + * @throws ApiException if fails to make API call + */ + public PayoutSettings updatePayoutSetting( + String merchantId, + String payoutSettingsId, + UpdatePayoutSettingsRequest updatePayoutSettingsRequest) + throws ApiException, IOException { + return updatePayoutSetting(merchantId, payoutSettingsId, updatePayoutSettingsRequest, null); + } + + /** + * Update a payout setting + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param payoutSettingsId {@link String } The unique identifier of the payout setting. (required) + * @param updatePayoutSettingsRequest {@link UpdatePayoutSettingsRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PayoutSettings } + * @throws ApiException if fails to make API call + */ + public PayoutSettings updatePayoutSetting( + String merchantId, + String payoutSettingsId, + UpdatePayoutSettingsRequest updatePayoutSettingsRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); + if (payoutSettingsId == null) { + throw new IllegalArgumentException("Please provide the payoutSettingsId path parameter"); + } + pathParams.put("payoutSettingsId", payoutSettingsId); + + String requestBody = updatePayoutSettingsRequest.toJson(); + Resource resource = + new Resource( + this, this.baseURL + "/merchants/{merchantId}/payoutSettings/{payoutSettingsId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return PayoutSettings.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/SplitConfigurationMerchantLevelApi.java b/src/main/java/com/adyen/service/management/SplitConfigurationMerchantLevelApi.java index e9f365af9..0713c7378 100644 --- a/src/main/java/com/adyen/service/management/SplitConfigurationMerchantLevelApi.java +++ b/src/main/java/com/adyen/service/management/SplitConfigurationMerchantLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,417 +14,553 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.management.RestServiceError; +import com.adyen.model.RequestOptions; import com.adyen.model.management.SplitConfiguration; import com.adyen.model.management.SplitConfigurationList; import com.adyen.model.management.SplitConfigurationRule; import com.adyen.model.management.UpdateSplitConfigurationLogicRequest; import com.adyen.model.management.UpdateSplitConfigurationRequest; import com.adyen.model.management.UpdateSplitConfigurationRuleRequest; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class SplitConfigurationMerchantLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * Split configuration - merchant level constructor in {@link com.adyen.service.management package}. - * @param client {@link Client } (required) - */ - public SplitConfigurationMerchantLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * Split configuration - merchant level constructor in {@link com.adyen.service.management + * package}. + * + * @param client {@link Client } (required) + */ + public SplitConfigurationMerchantLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } + + /** + * Split configuration - merchant level constructor in {@link com.adyen.service.management + * package}. Please use this constructor only if you would like to pass along your own url for + * routing or testing purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public SplitConfigurationMerchantLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Create a rule + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param splitConfigurationId {@link String } The unique identifier of the split configuration. + * (required) + * @param splitConfigurationRule {@link SplitConfigurationRule } (required) + * @return {@link SplitConfiguration } + * @throws ApiException if fails to make API call + */ + public SplitConfiguration createRule( + String merchantId, String splitConfigurationId, SplitConfigurationRule splitConfigurationRule) + throws ApiException, IOException { + return createRule(merchantId, splitConfigurationId, splitConfigurationRule, null); + } + + /** + * Create a rule + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param splitConfigurationId {@link String } The unique identifier of the split configuration. + * (required) + * @param splitConfigurationRule {@link SplitConfigurationRule } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link SplitConfiguration } + * @throws ApiException if fails to make API call + */ + public SplitConfiguration createRule( + String merchantId, + String splitConfigurationId, + SplitConfigurationRule splitConfigurationRule, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } - - /** - * Split configuration - merchant level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public SplitConfigurationMerchantLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; + pathParams.put("merchantId", merchantId); + if (splitConfigurationId == null) { + throw new IllegalArgumentException("Please provide the splitConfigurationId path parameter"); } - - /** - * Create a rule - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param splitConfigurationId {@link String } The unique identifier of the split configuration. (required) - * @param splitConfigurationRule {@link SplitConfigurationRule } (required) - * @return {@link SplitConfiguration } - * @throws ApiException if fails to make API call - */ - public SplitConfiguration createRule(String merchantId, String splitConfigurationId, SplitConfigurationRule splitConfigurationRule) throws ApiException, IOException { - return createRule(merchantId, splitConfigurationId, splitConfigurationRule, null); + pathParams.put("splitConfigurationId", splitConfigurationId); + + String requestBody = splitConfigurationRule.toJson(); + Resource resource = + new Resource( + this, + this.baseURL + "/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}", + null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return SplitConfiguration.fromJson(jsonResult); + } + + /** + * Create a split configuration + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param splitConfiguration {@link SplitConfiguration } (required) + * @return {@link SplitConfiguration } + * @throws ApiException if fails to make API call + */ + public SplitConfiguration createSplitConfiguration( + String merchantId, SplitConfiguration splitConfiguration) throws ApiException, IOException { + return createSplitConfiguration(merchantId, splitConfiguration, null); + } + + /** + * Create a split configuration + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param splitConfiguration {@link SplitConfiguration } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link SplitConfiguration } + * @throws ApiException if fails to make API call + */ + public SplitConfiguration createSplitConfiguration( + String merchantId, SplitConfiguration splitConfiguration, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } - - /** - * Create a rule - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param splitConfigurationId {@link String } The unique identifier of the split configuration. (required) - * @param splitConfigurationRule {@link SplitConfigurationRule } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link SplitConfiguration } - * @throws ApiException if fails to make API call - */ - public SplitConfiguration createRule(String merchantId, String splitConfigurationId, SplitConfigurationRule splitConfigurationRule, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (splitConfigurationId == null) { - throw new IllegalArgumentException("Please provide the splitConfigurationId path parameter"); - } - pathParams.put("splitConfigurationId", splitConfigurationId); - - String requestBody = splitConfigurationRule.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return SplitConfiguration.fromJson(jsonResult); + pathParams.put("merchantId", merchantId); + + String requestBody = splitConfiguration.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/merchants/{merchantId}/splitConfigurations", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return SplitConfiguration.fromJson(jsonResult); + } + + /** + * Delete a split configuration + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param splitConfigurationId {@link String } The unique identifier of the split configuration. + * (required) + * @return {@link SplitConfiguration } + * @throws ApiException if fails to make API call + */ + public SplitConfiguration deleteSplitConfiguration(String merchantId, String splitConfigurationId) + throws ApiException, IOException { + return deleteSplitConfiguration(merchantId, splitConfigurationId, null); + } + + /** + * Delete a split configuration + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param splitConfigurationId {@link String } The unique identifier of the split configuration. + * (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link SplitConfiguration } + * @throws ApiException if fails to make API call + */ + public SplitConfiguration deleteSplitConfiguration( + String merchantId, String splitConfigurationId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } - - /** - * Create a split configuration - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param splitConfiguration {@link SplitConfiguration } (required) - * @return {@link SplitConfiguration } - * @throws ApiException if fails to make API call - */ - public SplitConfiguration createSplitConfiguration(String merchantId, SplitConfiguration splitConfiguration) throws ApiException, IOException { - return createSplitConfiguration(merchantId, splitConfiguration, null); + pathParams.put("merchantId", merchantId); + if (splitConfigurationId == null) { + throw new IllegalArgumentException("Please provide the splitConfigurationId path parameter"); } - - /** - * Create a split configuration - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param splitConfiguration {@link SplitConfiguration } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link SplitConfiguration } - * @throws ApiException if fails to make API call - */ - public SplitConfiguration createSplitConfiguration(String merchantId, SplitConfiguration splitConfiguration, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - - String requestBody = splitConfiguration.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/splitConfigurations", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return SplitConfiguration.fromJson(jsonResult); + pathParams.put("splitConfigurationId", splitConfigurationId); + + String requestBody = null; + Resource resource = + new Resource( + this, + this.baseURL + "/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}", + null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); + return SplitConfiguration.fromJson(jsonResult); + } + + /** + * Delete a split configuration rule + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param splitConfigurationId {@link String } The unique identifier of the split configuration. + * (required) + * @param ruleId {@link String } (required) + * @return {@link SplitConfiguration } + * @throws ApiException if fails to make API call + */ + public SplitConfiguration deleteSplitConfigurationRule( + String merchantId, String splitConfigurationId, String ruleId) + throws ApiException, IOException { + return deleteSplitConfigurationRule(merchantId, splitConfigurationId, ruleId, null); + } + + /** + * Delete a split configuration rule + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param splitConfigurationId {@link String } The unique identifier of the split configuration. + * (required) + * @param ruleId {@link String } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link SplitConfiguration } + * @throws ApiException if fails to make API call + */ + public SplitConfiguration deleteSplitConfigurationRule( + String merchantId, String splitConfigurationId, String ruleId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } - - /** - * Delete a split configuration - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param splitConfigurationId {@link String } The unique identifier of the split configuration. (required) - * @return {@link SplitConfiguration } - * @throws ApiException if fails to make API call - */ - public SplitConfiguration deleteSplitConfiguration(String merchantId, String splitConfigurationId) throws ApiException, IOException { - return deleteSplitConfiguration(merchantId, splitConfigurationId, null); + pathParams.put("merchantId", merchantId); + if (splitConfigurationId == null) { + throw new IllegalArgumentException("Please provide the splitConfigurationId path parameter"); } - - /** - * Delete a split configuration - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param splitConfigurationId {@link String } The unique identifier of the split configuration. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link SplitConfiguration } - * @throws ApiException if fails to make API call - */ - public SplitConfiguration deleteSplitConfiguration(String merchantId, String splitConfigurationId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (splitConfigurationId == null) { - throw new IllegalArgumentException("Please provide the splitConfigurationId path parameter"); - } - pathParams.put("splitConfigurationId", splitConfigurationId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); - return SplitConfiguration.fromJson(jsonResult); + pathParams.put("splitConfigurationId", splitConfigurationId); + if (ruleId == null) { + throw new IllegalArgumentException("Please provide the ruleId path parameter"); } - - /** - * Delete a split configuration rule - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param splitConfigurationId {@link String } The unique identifier of the split configuration. (required) - * @param ruleId {@link String } (required) - * @return {@link SplitConfiguration } - * @throws ApiException if fails to make API call - */ - public SplitConfiguration deleteSplitConfigurationRule(String merchantId, String splitConfigurationId, String ruleId) throws ApiException, IOException { - return deleteSplitConfigurationRule(merchantId, splitConfigurationId, ruleId, null); + pathParams.put("ruleId", ruleId); + + String requestBody = null; + Resource resource = + new Resource( + this, + this.baseURL + + "/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}/rules/{ruleId}", + null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); + return SplitConfiguration.fromJson(jsonResult); + } + + /** + * Get a split configuration + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param splitConfigurationId {@link String } The unique identifier of the split configuration. + * (required) + * @return {@link SplitConfiguration } + * @throws ApiException if fails to make API call + */ + public SplitConfiguration getSplitConfiguration(String merchantId, String splitConfigurationId) + throws ApiException, IOException { + return getSplitConfiguration(merchantId, splitConfigurationId, null); + } + + /** + * Get a split configuration + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param splitConfigurationId {@link String } The unique identifier of the split configuration. + * (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link SplitConfiguration } + * @throws ApiException if fails to make API call + */ + public SplitConfiguration getSplitConfiguration( + String merchantId, String splitConfigurationId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } - - /** - * Delete a split configuration rule - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param splitConfigurationId {@link String } The unique identifier of the split configuration. (required) - * @param ruleId {@link String } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link SplitConfiguration } - * @throws ApiException if fails to make API call - */ - public SplitConfiguration deleteSplitConfigurationRule(String merchantId, String splitConfigurationId, String ruleId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (splitConfigurationId == null) { - throw new IllegalArgumentException("Please provide the splitConfigurationId path parameter"); - } - pathParams.put("splitConfigurationId", splitConfigurationId); - if (ruleId == null) { - throw new IllegalArgumentException("Please provide the ruleId path parameter"); - } - pathParams.put("ruleId", ruleId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}/rules/{ruleId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); - return SplitConfiguration.fromJson(jsonResult); + pathParams.put("merchantId", merchantId); + if (splitConfigurationId == null) { + throw new IllegalArgumentException("Please provide the splitConfigurationId path parameter"); } - - /** - * Get a split configuration - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param splitConfigurationId {@link String } The unique identifier of the split configuration. (required) - * @return {@link SplitConfiguration } - * @throws ApiException if fails to make API call - */ - public SplitConfiguration getSplitConfiguration(String merchantId, String splitConfigurationId) throws ApiException, IOException { - return getSplitConfiguration(merchantId, splitConfigurationId, null); + pathParams.put("splitConfigurationId", splitConfigurationId); + + String requestBody = null; + Resource resource = + new Resource( + this, + this.baseURL + "/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}", + null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return SplitConfiguration.fromJson(jsonResult); + } + + /** + * Get a list of split configurations + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @return {@link SplitConfigurationList } + * @throws ApiException if fails to make API call + */ + public SplitConfigurationList listSplitConfigurations(String merchantId) + throws ApiException, IOException { + return listSplitConfigurations(merchantId, null); + } + + /** + * Get a list of split configurations + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link SplitConfigurationList } + * @throws ApiException if fails to make API call + */ + public SplitConfigurationList listSplitConfigurations( + String merchantId, RequestOptions requestOptions) throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } - - /** - * Get a split configuration - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param splitConfigurationId {@link String } The unique identifier of the split configuration. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link SplitConfiguration } - * @throws ApiException if fails to make API call - */ - public SplitConfiguration getSplitConfiguration(String merchantId, String splitConfigurationId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (splitConfigurationId == null) { - throw new IllegalArgumentException("Please provide the splitConfigurationId path parameter"); - } - pathParams.put("splitConfigurationId", splitConfigurationId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return SplitConfiguration.fromJson(jsonResult); + pathParams.put("merchantId", merchantId); + + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/merchants/{merchantId}/splitConfigurations", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return SplitConfigurationList.fromJson(jsonResult); + } + + /** + * Update split conditions + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param splitConfigurationId {@link String } The identifier of the split configuration. + * (required) + * @param ruleId {@link String } The unique identifier of the split configuration rule. (required) + * @param updateSplitConfigurationRuleRequest {@link UpdateSplitConfigurationRuleRequest } + * (required) + * @return {@link SplitConfiguration } + * @throws ApiException if fails to make API call + */ + public SplitConfiguration updateSplitConditions( + String merchantId, + String splitConfigurationId, + String ruleId, + UpdateSplitConfigurationRuleRequest updateSplitConfigurationRuleRequest) + throws ApiException, IOException { + return updateSplitConditions( + merchantId, splitConfigurationId, ruleId, updateSplitConfigurationRuleRequest, null); + } + + /** + * Update split conditions + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param splitConfigurationId {@link String } The identifier of the split configuration. + * (required) + * @param ruleId {@link String } The unique identifier of the split configuration rule. (required) + * @param updateSplitConfigurationRuleRequest {@link UpdateSplitConfigurationRuleRequest } + * (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link SplitConfiguration } + * @throws ApiException if fails to make API call + */ + public SplitConfiguration updateSplitConditions( + String merchantId, + String splitConfigurationId, + String ruleId, + UpdateSplitConfigurationRuleRequest updateSplitConfigurationRuleRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } - - /** - * Get a list of split configurations - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @return {@link SplitConfigurationList } - * @throws ApiException if fails to make API call - */ - public SplitConfigurationList listSplitConfigurations(String merchantId) throws ApiException, IOException { - return listSplitConfigurations(merchantId, null); + pathParams.put("merchantId", merchantId); + if (splitConfigurationId == null) { + throw new IllegalArgumentException("Please provide the splitConfigurationId path parameter"); } - - /** - * Get a list of split configurations - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link SplitConfigurationList } - * @throws ApiException if fails to make API call - */ - public SplitConfigurationList listSplitConfigurations(String merchantId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/splitConfigurations", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return SplitConfigurationList.fromJson(jsonResult); + pathParams.put("splitConfigurationId", splitConfigurationId); + if (ruleId == null) { + throw new IllegalArgumentException("Please provide the ruleId path parameter"); } - - /** - * Update split conditions - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param splitConfigurationId {@link String } The identifier of the split configuration. (required) - * @param ruleId {@link String } The unique identifier of the split configuration rule. (required) - * @param updateSplitConfigurationRuleRequest {@link UpdateSplitConfigurationRuleRequest } (required) - * @return {@link SplitConfiguration } - * @throws ApiException if fails to make API call - */ - public SplitConfiguration updateSplitConditions(String merchantId, String splitConfigurationId, String ruleId, UpdateSplitConfigurationRuleRequest updateSplitConfigurationRuleRequest) throws ApiException, IOException { - return updateSplitConditions(merchantId, splitConfigurationId, ruleId, updateSplitConfigurationRuleRequest, null); + pathParams.put("ruleId", ruleId); + + String requestBody = updateSplitConfigurationRuleRequest.toJson(); + Resource resource = + new Resource( + this, + this.baseURL + + "/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}/rules/{ruleId}", + null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return SplitConfiguration.fromJson(jsonResult); + } + + /** + * Update split configuration description + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param splitConfigurationId {@link String } The unique identifier of the split configuration. + * (required) + * @param updateSplitConfigurationRequest {@link UpdateSplitConfigurationRequest } (required) + * @return {@link SplitConfiguration } + * @throws ApiException if fails to make API call + */ + public SplitConfiguration updateSplitConfigurationDescription( + String merchantId, + String splitConfigurationId, + UpdateSplitConfigurationRequest updateSplitConfigurationRequest) + throws ApiException, IOException { + return updateSplitConfigurationDescription( + merchantId, splitConfigurationId, updateSplitConfigurationRequest, null); + } + + /** + * Update split configuration description + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param splitConfigurationId {@link String } The unique identifier of the split configuration. + * (required) + * @param updateSplitConfigurationRequest {@link UpdateSplitConfigurationRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link SplitConfiguration } + * @throws ApiException if fails to make API call + */ + public SplitConfiguration updateSplitConfigurationDescription( + String merchantId, + String splitConfigurationId, + UpdateSplitConfigurationRequest updateSplitConfigurationRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } - - /** - * Update split conditions - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param splitConfigurationId {@link String } The identifier of the split configuration. (required) - * @param ruleId {@link String } The unique identifier of the split configuration rule. (required) - * @param updateSplitConfigurationRuleRequest {@link UpdateSplitConfigurationRuleRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link SplitConfiguration } - * @throws ApiException if fails to make API call - */ - public SplitConfiguration updateSplitConditions(String merchantId, String splitConfigurationId, String ruleId, UpdateSplitConfigurationRuleRequest updateSplitConfigurationRuleRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (splitConfigurationId == null) { - throw new IllegalArgumentException("Please provide the splitConfigurationId path parameter"); - } - pathParams.put("splitConfigurationId", splitConfigurationId); - if (ruleId == null) { - throw new IllegalArgumentException("Please provide the ruleId path parameter"); - } - pathParams.put("ruleId", ruleId); - - String requestBody = updateSplitConfigurationRuleRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}/rules/{ruleId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return SplitConfiguration.fromJson(jsonResult); + pathParams.put("merchantId", merchantId); + if (splitConfigurationId == null) { + throw new IllegalArgumentException("Please provide the splitConfigurationId path parameter"); } - - /** - * Update split configuration description - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param splitConfigurationId {@link String } The unique identifier of the split configuration. (required) - * @param updateSplitConfigurationRequest {@link UpdateSplitConfigurationRequest } (required) - * @return {@link SplitConfiguration } - * @throws ApiException if fails to make API call - */ - public SplitConfiguration updateSplitConfigurationDescription(String merchantId, String splitConfigurationId, UpdateSplitConfigurationRequest updateSplitConfigurationRequest) throws ApiException, IOException { - return updateSplitConfigurationDescription(merchantId, splitConfigurationId, updateSplitConfigurationRequest, null); + pathParams.put("splitConfigurationId", splitConfigurationId); + + String requestBody = updateSplitConfigurationRequest.toJson(); + Resource resource = + new Resource( + this, + this.baseURL + "/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}", + null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return SplitConfiguration.fromJson(jsonResult); + } + + /** + * Update the split logic + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param splitConfigurationId {@link String } The unique identifier of the split configuration. + * (required) + * @param ruleId {@link String } The unique identifier of the split configuration rule. (required) + * @param splitLogicId {@link String } The unique identifier of the split configuration split. + * (required) + * @param updateSplitConfigurationLogicRequest {@link UpdateSplitConfigurationLogicRequest } + * (required) + * @return {@link SplitConfiguration } + * @throws ApiException if fails to make API call + */ + public SplitConfiguration updateSplitLogic( + String merchantId, + String splitConfigurationId, + String ruleId, + String splitLogicId, + UpdateSplitConfigurationLogicRequest updateSplitConfigurationLogicRequest) + throws ApiException, IOException { + return updateSplitLogic( + merchantId, + splitConfigurationId, + ruleId, + splitLogicId, + updateSplitConfigurationLogicRequest, + null); + } + + /** + * Update the split logic + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param splitConfigurationId {@link String } The unique identifier of the split configuration. + * (required) + * @param ruleId {@link String } The unique identifier of the split configuration rule. (required) + * @param splitLogicId {@link String } The unique identifier of the split configuration split. + * (required) + * @param updateSplitConfigurationLogicRequest {@link UpdateSplitConfigurationLogicRequest } + * (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link SplitConfiguration } + * @throws ApiException if fails to make API call + */ + public SplitConfiguration updateSplitLogic( + String merchantId, + String splitConfigurationId, + String ruleId, + String splitLogicId, + UpdateSplitConfigurationLogicRequest updateSplitConfigurationLogicRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } - - /** - * Update split configuration description - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param splitConfigurationId {@link String } The unique identifier of the split configuration. (required) - * @param updateSplitConfigurationRequest {@link UpdateSplitConfigurationRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link SplitConfiguration } - * @throws ApiException if fails to make API call - */ - public SplitConfiguration updateSplitConfigurationDescription(String merchantId, String splitConfigurationId, UpdateSplitConfigurationRequest updateSplitConfigurationRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (splitConfigurationId == null) { - throw new IllegalArgumentException("Please provide the splitConfigurationId path parameter"); - } - pathParams.put("splitConfigurationId", splitConfigurationId); - - String requestBody = updateSplitConfigurationRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return SplitConfiguration.fromJson(jsonResult); + pathParams.put("merchantId", merchantId); + if (splitConfigurationId == null) { + throw new IllegalArgumentException("Please provide the splitConfigurationId path parameter"); } - - /** - * Update the split logic - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param splitConfigurationId {@link String } The unique identifier of the split configuration. (required) - * @param ruleId {@link String } The unique identifier of the split configuration rule. (required) - * @param splitLogicId {@link String } The unique identifier of the split configuration split. (required) - * @param updateSplitConfigurationLogicRequest {@link UpdateSplitConfigurationLogicRequest } (required) - * @return {@link SplitConfiguration } - * @throws ApiException if fails to make API call - */ - public SplitConfiguration updateSplitLogic(String merchantId, String splitConfigurationId, String ruleId, String splitLogicId, UpdateSplitConfigurationLogicRequest updateSplitConfigurationLogicRequest) throws ApiException, IOException { - return updateSplitLogic(merchantId, splitConfigurationId, ruleId, splitLogicId, updateSplitConfigurationLogicRequest, null); + pathParams.put("splitConfigurationId", splitConfigurationId); + if (ruleId == null) { + throw new IllegalArgumentException("Please provide the ruleId path parameter"); } - - /** - * Update the split logic - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param splitConfigurationId {@link String } The unique identifier of the split configuration. (required) - * @param ruleId {@link String } The unique identifier of the split configuration rule. (required) - * @param splitLogicId {@link String } The unique identifier of the split configuration split. (required) - * @param updateSplitConfigurationLogicRequest {@link UpdateSplitConfigurationLogicRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link SplitConfiguration } - * @throws ApiException if fails to make API call - */ - public SplitConfiguration updateSplitLogic(String merchantId, String splitConfigurationId, String ruleId, String splitLogicId, UpdateSplitConfigurationLogicRequest updateSplitConfigurationLogicRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (splitConfigurationId == null) { - throw new IllegalArgumentException("Please provide the splitConfigurationId path parameter"); - } - pathParams.put("splitConfigurationId", splitConfigurationId); - if (ruleId == null) { - throw new IllegalArgumentException("Please provide the ruleId path parameter"); - } - pathParams.put("ruleId", ruleId); - if (splitLogicId == null) { - throw new IllegalArgumentException("Please provide the splitLogicId path parameter"); - } - pathParams.put("splitLogicId", splitLogicId); - - String requestBody = updateSplitConfigurationLogicRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}/rules/{ruleId}/splitLogic/{splitLogicId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return SplitConfiguration.fromJson(jsonResult); + pathParams.put("ruleId", ruleId); + if (splitLogicId == null) { + throw new IllegalArgumentException("Please provide the splitLogicId path parameter"); } + pathParams.put("splitLogicId", splitLogicId); + + String requestBody = updateSplitConfigurationLogicRequest.toJson(); + Resource resource = + new Resource( + this, + this.baseURL + + "/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}/rules/{ruleId}/splitLogic/{splitLogicId}", + null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return SplitConfiguration.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/TerminalActionsCompanyLevelApi.java b/src/main/java/com/adyen/service/management/TerminalActionsCompanyLevelApi.java index 72f5ba3e0..ce4bc0026 100644 --- a/src/main/java/com/adyen/service/management/TerminalActionsCompanyLevelApi.java +++ b/src/main/java/com/adyen/service/management/TerminalActionsCompanyLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,131 +14,156 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.management.ExternalTerminalAction; import com.adyen.model.management.ListExternalTerminalActionsResponse; -import com.adyen.model.management.RestServiceError; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class TerminalActionsCompanyLevelApi extends Service { - public static final String API_VERSION = "3"; + public static final String API_VERSION = "3"; - protected String baseURL; + protected String baseURL; - /** - * Terminal actions - company level constructor in {@link com.adyen.service.management package}. - * @param client {@link Client } (required) - */ - public TerminalActionsCompanyLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } - - /** - * Terminal actions - company level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public TerminalActionsCompanyLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Terminal actions - company level constructor in {@link com.adyen.service.management package}. + * + * @param client {@link Client } (required) + */ + public TerminalActionsCompanyLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } - /** - * Get terminal action - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param actionId {@link String } The unique identifier of the terminal action. (required) - * @return {@link ExternalTerminalAction } - * @throws ApiException if fails to make API call - */ - public ExternalTerminalAction getTerminalAction(String companyId, String actionId) throws ApiException, IOException { - return getTerminalAction(companyId, actionId, null); - } + /** + * Terminal actions - company level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or + * testing purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public TerminalActionsCompanyLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Get terminal action - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param actionId {@link String } The unique identifier of the terminal action. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ExternalTerminalAction } - * @throws ApiException if fails to make API call - */ - public ExternalTerminalAction getTerminalAction(String companyId, String actionId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - if (actionId == null) { - throw new IllegalArgumentException("Please provide the actionId path parameter"); - } - pathParams.put("actionId", actionId); + /** + * Get terminal action + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param actionId {@link String } The unique identifier of the terminal action. (required) + * @return {@link ExternalTerminalAction } + * @throws ApiException if fails to make API call + */ + public ExternalTerminalAction getTerminalAction(String companyId, String actionId) + throws ApiException, IOException { + return getTerminalAction(companyId, actionId, null); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/terminalActions/{actionId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return ExternalTerminalAction.fromJson(jsonResult); + /** + * Get terminal action + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param actionId {@link String } The unique identifier of the terminal action. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ExternalTerminalAction } + * @throws ApiException if fails to make API call + */ + public ExternalTerminalAction getTerminalAction( + String companyId, String actionId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } - - /** - * Get a list of terminal actions - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @return {@link ListExternalTerminalActionsResponse } - * @throws ApiException if fails to make API call - */ - public ListExternalTerminalActionsResponse listTerminalActions(String companyId) throws ApiException, IOException { - return listTerminalActions(companyId, null, null, null, null, null); + pathParams.put("companyId", companyId); + if (actionId == null) { + throw new IllegalArgumentException("Please provide the actionId path parameter"); } + pathParams.put("actionId", actionId); + + String requestBody = null; + Resource resource = + new Resource( + this, this.baseURL + "/companies/{companyId}/terminalActions/{actionId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return ExternalTerminalAction.fromJson(jsonResult); + } - /** - * Get a list of terminal actions - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The default is 20 items on a page. (optional) - * @param status {@link String } Query: Returns terminal actions with the specified status. Allowed values: **pending**, **successful**, **failed**, **cancelled**, **tryLater**. (optional) - * @param type {@link String } Query: Returns terminal actions of the specified type. Allowed values: **InstallAndroidApp**, **UninstallAndroidApp**, **InstallAndroidCertificate**, **UninstallAndroidCertificate**. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ListExternalTerminalActionsResponse } - * @throws ApiException if fails to make API call - */ - public ListExternalTerminalActionsResponse listTerminalActions(String companyId, Integer pageNumber, Integer pageSize, String status, String type, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); + /** + * Get a list of terminal actions + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @return {@link ListExternalTerminalActionsResponse } + * @throws ApiException if fails to make API call + */ + public ListExternalTerminalActionsResponse listTerminalActions(String companyId) + throws ApiException, IOException { + return listTerminalActions(companyId, null, null, null, null, null); + } - //Add query params - Map queryParams = new HashMap<>(); - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); - } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); - } - if (status != null) { - queryParams.put("status", status); - } - if (type != null) { - queryParams.put("type", type); - } + /** + * Get a list of terminal actions + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The + * default is 20 items on a page. (optional) + * @param status {@link String } Query: Returns terminal actions with the specified status. + * Allowed values: **pending**, **successful**, **failed**, **cancelled**, **tryLater**. + * (optional) + * @param type {@link String } Query: Returns terminal actions of the specified type. Allowed + * values: **InstallAndroidApp**, **UninstallAndroidApp**, **InstallAndroidCertificate**, + * **UninstallAndroidCertificate**. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ListExternalTerminalActionsResponse } + * @throws ApiException if fails to make API call + */ + public ListExternalTerminalActionsResponse listTerminalActions( + String companyId, + Integer pageNumber, + Integer pageSize, + String status, + String type, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/terminalActions", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return ListExternalTerminalActionsResponse.fromJson(jsonResult); + // Add query params + Map queryParams = new HashMap<>(); + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); + } + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); } + if (status != null) { + queryParams.put("status", status); + } + if (type != null) { + queryParams.put("type", type); + } + + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/companies/{companyId}/terminalActions", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return ListExternalTerminalActionsResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/TerminalActionsTerminalLevelApi.java b/src/main/java/com/adyen/service/management/TerminalActionsTerminalLevelApi.java index 9ab09e324..c16269281 100644 --- a/src/main/java/com/adyen/service/management/TerminalActionsTerminalLevelApi.java +++ b/src/main/java/com/adyen/service/management/TerminalActionsTerminalLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,66 +14,71 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.management.RestServiceError; +import com.adyen.model.RequestOptions; import com.adyen.model.management.ScheduleTerminalActionsRequest; import com.adyen.model.management.ScheduleTerminalActionsResponse; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; -import java.util.HashMap; -import java.util.Map; public class TerminalActionsTerminalLevelApi extends Service { - public static final String API_VERSION = "3"; + public static final String API_VERSION = "3"; - protected String baseURL; + protected String baseURL; - /** - * Terminal actions - terminal level constructor in {@link com.adyen.service.management package}. - * @param client {@link Client } (required) - */ - public TerminalActionsTerminalLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } + /** + * Terminal actions - terminal level constructor in {@link com.adyen.service.management package}. + * + * @param client {@link Client } (required) + */ + public TerminalActionsTerminalLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } - /** - * Terminal actions - terminal level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public TerminalActionsTerminalLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Terminal actions - terminal level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or + * testing purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public TerminalActionsTerminalLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Create a terminal action - * - * @param scheduleTerminalActionsRequest {@link ScheduleTerminalActionsRequest } (required) - * @return {@link ScheduleTerminalActionsResponse } - * @throws ApiException if fails to make API call - */ - public ScheduleTerminalActionsResponse createTerminalAction(ScheduleTerminalActionsRequest scheduleTerminalActionsRequest) throws ApiException, IOException { - return createTerminalAction(scheduleTerminalActionsRequest, null); - } + /** + * Create a terminal action + * + * @param scheduleTerminalActionsRequest {@link ScheduleTerminalActionsRequest } (required) + * @return {@link ScheduleTerminalActionsResponse } + * @throws ApiException if fails to make API call + */ + public ScheduleTerminalActionsResponse createTerminalAction( + ScheduleTerminalActionsRequest scheduleTerminalActionsRequest) + throws ApiException, IOException { + return createTerminalAction(scheduleTerminalActionsRequest, null); + } - /** - * Create a terminal action - * - * @param scheduleTerminalActionsRequest {@link ScheduleTerminalActionsRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ScheduleTerminalActionsResponse } - * @throws ApiException if fails to make API call - */ - public ScheduleTerminalActionsResponse createTerminalAction(ScheduleTerminalActionsRequest scheduleTerminalActionsRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = scheduleTerminalActionsRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/terminals/scheduleActions", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return ScheduleTerminalActionsResponse.fromJson(jsonResult); - } + /** + * Create a terminal action + * + * @param scheduleTerminalActionsRequest {@link ScheduleTerminalActionsRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ScheduleTerminalActionsResponse } + * @throws ApiException if fails to make API call + */ + public ScheduleTerminalActionsResponse createTerminalAction( + ScheduleTerminalActionsRequest scheduleTerminalActionsRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = scheduleTerminalActionsRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/terminals/scheduleActions", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return ScheduleTerminalActionsResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/TerminalOrdersCompanyLevelApi.java b/src/main/java/com/adyen/service/management/TerminalOrdersCompanyLevelApi.java index 5b529e1d7..5072c16a6 100644 --- a/src/main/java/com/adyen/service/management/TerminalOrdersCompanyLevelApi.java +++ b/src/main/java/com/adyen/service/management/TerminalOrdersCompanyLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,8 +14,8 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.management.BillingEntitiesResponse; -import com.adyen.model.management.RestServiceError; import com.adyen.model.management.ShippingLocation; import com.adyen.model.management.ShippingLocationsResponse; import com.adyen.model.management.TerminalModelsResponse; @@ -23,452 +23,535 @@ import com.adyen.model.management.TerminalOrderRequest; import com.adyen.model.management.TerminalOrdersResponse; import com.adyen.model.management.TerminalProductsResponse; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class TerminalOrdersCompanyLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * Terminal orders - company level constructor in {@link com.adyen.service.management package}. - * @param client {@link Client } (required) - */ - public TerminalOrdersCompanyLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * Terminal orders - company level constructor in {@link com.adyen.service.management package}. + * + * @param client {@link Client } (required) + */ + public TerminalOrdersCompanyLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } + + /** + * Terminal orders - company level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or + * testing purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public TerminalOrdersCompanyLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Cancel an order + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param orderId {@link String } The unique identifier of the order. (required) + * @return {@link TerminalOrder } + * @throws ApiException if fails to make API call + */ + public TerminalOrder cancelOrder(String companyId, String orderId) + throws ApiException, IOException { + return cancelOrder(companyId, orderId, null); + } + + /** + * Cancel an order + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param orderId {@link String } The unique identifier of the order. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TerminalOrder } + * @throws ApiException if fails to make API call + */ + public TerminalOrder cancelOrder(String companyId, String orderId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } - - /** - * Terminal orders - company level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public TerminalOrdersCompanyLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; + pathParams.put("companyId", companyId); + if (orderId == null) { + throw new IllegalArgumentException("Please provide the orderId path parameter"); } - - /** - * Cancel an order - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param orderId {@link String } The unique identifier of the order. (required) - * @return {@link TerminalOrder } - * @throws ApiException if fails to make API call - */ - public TerminalOrder cancelOrder(String companyId, String orderId) throws ApiException, IOException { - return cancelOrder(companyId, orderId, null); + pathParams.put("orderId", orderId); + + String requestBody = null; + Resource resource = + new Resource( + this, this.baseURL + "/companies/{companyId}/terminalOrders/{orderId}/cancel", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return TerminalOrder.fromJson(jsonResult); + } + + /** + * Create an order + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param terminalOrderRequest {@link TerminalOrderRequest } (required) + * @return {@link TerminalOrder } + * @throws ApiException if fails to make API call + */ + public TerminalOrder createOrder(String companyId, TerminalOrderRequest terminalOrderRequest) + throws ApiException, IOException { + return createOrder(companyId, terminalOrderRequest, null); + } + + /** + * Create an order + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param terminalOrderRequest {@link TerminalOrderRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TerminalOrder } + * @throws ApiException if fails to make API call + */ + public TerminalOrder createOrder( + String companyId, TerminalOrderRequest terminalOrderRequest, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } - - /** - * Cancel an order - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param orderId {@link String } The unique identifier of the order. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TerminalOrder } - * @throws ApiException if fails to make API call - */ - public TerminalOrder cancelOrder(String companyId, String orderId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - if (orderId == null) { - throw new IllegalArgumentException("Please provide the orderId path parameter"); - } - pathParams.put("orderId", orderId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/terminalOrders/{orderId}/cancel", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return TerminalOrder.fromJson(jsonResult); + pathParams.put("companyId", companyId); + + String requestBody = terminalOrderRequest.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/companies/{companyId}/terminalOrders", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return TerminalOrder.fromJson(jsonResult); + } + + /** + * Create a shipping location + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param shippingLocation {@link ShippingLocation } (required) + * @return {@link ShippingLocation } + * @throws ApiException if fails to make API call + */ + public ShippingLocation createShippingLocation( + String companyId, ShippingLocation shippingLocation) throws ApiException, IOException { + return createShippingLocation(companyId, shippingLocation, null); + } + + /** + * Create a shipping location + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param shippingLocation {@link ShippingLocation } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ShippingLocation } + * @throws ApiException if fails to make API call + */ + public ShippingLocation createShippingLocation( + String companyId, ShippingLocation shippingLocation, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } - - /** - * Create an order - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param terminalOrderRequest {@link TerminalOrderRequest } (required) - * @return {@link TerminalOrder } - * @throws ApiException if fails to make API call - */ - public TerminalOrder createOrder(String companyId, TerminalOrderRequest terminalOrderRequest) throws ApiException, IOException { - return createOrder(companyId, terminalOrderRequest, null); + pathParams.put("companyId", companyId); + + String requestBody = shippingLocation.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/companies/{companyId}/shippingLocations", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return ShippingLocation.fromJson(jsonResult); + } + + /** + * Get an order + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param orderId {@link String } The unique identifier of the order. (required) + * @return {@link TerminalOrder } + * @throws ApiException if fails to make API call + */ + public TerminalOrder getOrder(String companyId, String orderId) throws ApiException, IOException { + return getOrder(companyId, orderId, null); + } + + /** + * Get an order + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param orderId {@link String } The unique identifier of the order. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TerminalOrder } + * @throws ApiException if fails to make API call + */ + public TerminalOrder getOrder(String companyId, String orderId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } - - /** - * Create an order - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param terminalOrderRequest {@link TerminalOrderRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TerminalOrder } - * @throws ApiException if fails to make API call - */ - public TerminalOrder createOrder(String companyId, TerminalOrderRequest terminalOrderRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - - String requestBody = terminalOrderRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/terminalOrders", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return TerminalOrder.fromJson(jsonResult); + pathParams.put("companyId", companyId); + if (orderId == null) { + throw new IllegalArgumentException("Please provide the orderId path parameter"); } - - /** - * Create a shipping location - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param shippingLocation {@link ShippingLocation } (required) - * @return {@link ShippingLocation } - * @throws ApiException if fails to make API call - */ - public ShippingLocation createShippingLocation(String companyId, ShippingLocation shippingLocation) throws ApiException, IOException { - return createShippingLocation(companyId, shippingLocation, null); + pathParams.put("orderId", orderId); + + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/companies/{companyId}/terminalOrders/{orderId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TerminalOrder.fromJson(jsonResult); + } + + /** + * Get a list of billing entities + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @return {@link BillingEntitiesResponse } + * @throws ApiException if fails to make API call + */ + public BillingEntitiesResponse listBillingEntities(String companyId) + throws ApiException, IOException { + return listBillingEntities(companyId, null, null); + } + + /** + * Get a list of billing entities + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param name {@link String } Query: The name of the billing entity. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link BillingEntitiesResponse } + * @throws ApiException if fails to make API call + */ + public BillingEntitiesResponse listBillingEntities( + String companyId, String name, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } + pathParams.put("companyId", companyId); - /** - * Create a shipping location - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param shippingLocation {@link ShippingLocation } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ShippingLocation } - * @throws ApiException if fails to make API call - */ - public ShippingLocation createShippingLocation(String companyId, ShippingLocation shippingLocation, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - - String requestBody = shippingLocation.toJson(); - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/shippingLocations", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return ShippingLocation.fromJson(jsonResult); + // Add query params + Map queryParams = new HashMap<>(); + if (name != null) { + queryParams.put("name", name); } - /** - * Get an order - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param orderId {@link String } The unique identifier of the order. (required) - * @return {@link TerminalOrder } - * @throws ApiException if fails to make API call - */ - public TerminalOrder getOrder(String companyId, String orderId) throws ApiException, IOException { - return getOrder(companyId, orderId, null); + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/companies/{companyId}/billingEntities", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return BillingEntitiesResponse.fromJson(jsonResult); + } + + /** + * Get a list of orders + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @return {@link TerminalOrdersResponse } + * @throws ApiException if fails to make API call + */ + public TerminalOrdersResponse listOrders(String companyId) throws ApiException, IOException { + return listOrders(companyId, null, null, null, null, null); + } + + /** + * Get a list of orders + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param customerOrderReference {@link String } Query: Your purchase order number. (optional) + * @param status {@link String } Query: The order status. Possible values (not case-sensitive): + * Placed, Confirmed, Cancelled, Shipped, Delivered. (optional) + * @param offset {@link Integer } Query: The number of orders to skip. (optional) + * @param limit {@link Integer } Query: The number of orders to return. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TerminalOrdersResponse } + * @throws ApiException if fails to make API call + */ + public TerminalOrdersResponse listOrders( + String companyId, + String customerOrderReference, + String status, + Integer offset, + Integer limit, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } + pathParams.put("companyId", companyId); - /** - * Get an order - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param orderId {@link String } The unique identifier of the order. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TerminalOrder } - * @throws ApiException if fails to make API call - */ - public TerminalOrder getOrder(String companyId, String orderId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - if (orderId == null) { - throw new IllegalArgumentException("Please provide the orderId path parameter"); - } - pathParams.put("orderId", orderId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/terminalOrders/{orderId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TerminalOrder.fromJson(jsonResult); + // Add query params + Map queryParams = new HashMap<>(); + if (customerOrderReference != null) { + queryParams.put("customerOrderReference", customerOrderReference); } - - /** - * Get a list of billing entities - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @return {@link BillingEntitiesResponse } - * @throws ApiException if fails to make API call - */ - public BillingEntitiesResponse listBillingEntities(String companyId) throws ApiException, IOException { - return listBillingEntities(companyId, null, null); + if (status != null) { + queryParams.put("status", status); } - - /** - * Get a list of billing entities - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param name {@link String } Query: The name of the billing entity. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link BillingEntitiesResponse } - * @throws ApiException if fails to make API call - */ - public BillingEntitiesResponse listBillingEntities(String companyId, String name, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - - //Add query params - Map queryParams = new HashMap<>(); - if (name != null) { - queryParams.put("name", name); - } - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/billingEntities", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return BillingEntitiesResponse.fromJson(jsonResult); + if (offset != null) { + queryParams.put("offset", offset.toString()); } - - /** - * Get a list of orders - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @return {@link TerminalOrdersResponse } - * @throws ApiException if fails to make API call - */ - public TerminalOrdersResponse listOrders(String companyId) throws ApiException, IOException { - return listOrders(companyId, null, null, null, null, null); + if (limit != null) { + queryParams.put("limit", limit.toString()); } - /** - * Get a list of orders - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param customerOrderReference {@link String } Query: Your purchase order number. (optional) - * @param status {@link String } Query: The order status. Possible values (not case-sensitive): Placed, Confirmed, Cancelled, Shipped, Delivered. (optional) - * @param offset {@link Integer } Query: The number of orders to skip. (optional) - * @param limit {@link Integer } Query: The number of orders to return. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TerminalOrdersResponse } - * @throws ApiException if fails to make API call - */ - public TerminalOrdersResponse listOrders(String companyId, String customerOrderReference, String status, Integer offset, Integer limit, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - - //Add query params - Map queryParams = new HashMap<>(); - if (customerOrderReference != null) { - queryParams.put("customerOrderReference", customerOrderReference); - } - if (status != null) { - queryParams.put("status", status); - } - if (offset != null) { - queryParams.put("offset", offset.toString()); - } - if (limit != null) { - queryParams.put("limit", limit.toString()); - } - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/terminalOrders", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return TerminalOrdersResponse.fromJson(jsonResult); + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/companies/{companyId}/terminalOrders", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return TerminalOrdersResponse.fromJson(jsonResult); + } + + /** + * Get a list of shipping locations + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @return {@link ShippingLocationsResponse } + * @throws ApiException if fails to make API call + */ + public ShippingLocationsResponse listShippingLocations(String companyId) + throws ApiException, IOException { + return listShippingLocations(companyId, null, null, null, null); + } + + /** + * Get a list of shipping locations + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param name {@link String } Query: The name of the shipping location. (optional) + * @param offset {@link Integer } Query: The number of locations to skip. (optional) + * @param limit {@link Integer } Query: The number of locations to return. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ShippingLocationsResponse } + * @throws ApiException if fails to make API call + */ + public ShippingLocationsResponse listShippingLocations( + String companyId, String name, Integer offset, Integer limit, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } + pathParams.put("companyId", companyId); - /** - * Get a list of shipping locations - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @return {@link ShippingLocationsResponse } - * @throws ApiException if fails to make API call - */ - public ShippingLocationsResponse listShippingLocations(String companyId) throws ApiException, IOException { - return listShippingLocations(companyId, null, null, null, null); + // Add query params + Map queryParams = new HashMap<>(); + if (name != null) { + queryParams.put("name", name); } - - /** - * Get a list of shipping locations - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param name {@link String } Query: The name of the shipping location. (optional) - * @param offset {@link Integer } Query: The number of locations to skip. (optional) - * @param limit {@link Integer } Query: The number of locations to return. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ShippingLocationsResponse } - * @throws ApiException if fails to make API call - */ - public ShippingLocationsResponse listShippingLocations(String companyId, String name, Integer offset, Integer limit, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - - //Add query params - Map queryParams = new HashMap<>(); - if (name != null) { - queryParams.put("name", name); - } - if (offset != null) { - queryParams.put("offset", offset.toString()); - } - if (limit != null) { - queryParams.put("limit", limit.toString()); - } - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/shippingLocations", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return ShippingLocationsResponse.fromJson(jsonResult); + if (offset != null) { + queryParams.put("offset", offset.toString()); } - - /** - * Get a list of terminal models - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @return {@link TerminalModelsResponse } - * @throws ApiException if fails to make API call - */ - public TerminalModelsResponse listTerminalModels(String companyId) throws ApiException, IOException { - return listTerminalModels(companyId, null); + if (limit != null) { + queryParams.put("limit", limit.toString()); } - /** - * Get a list of terminal models - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TerminalModelsResponse } - * @throws ApiException if fails to make API call - */ - public TerminalModelsResponse listTerminalModels(String companyId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/terminalModels", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TerminalModelsResponse.fromJson(jsonResult); + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/companies/{companyId}/shippingLocations", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return ShippingLocationsResponse.fromJson(jsonResult); + } + + /** + * Get a list of terminal models + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @return {@link TerminalModelsResponse } + * @throws ApiException if fails to make API call + */ + public TerminalModelsResponse listTerminalModels(String companyId) + throws ApiException, IOException { + return listTerminalModels(companyId, null); + } + + /** + * Get a list of terminal models + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TerminalModelsResponse } + * @throws ApiException if fails to make API call + */ + public TerminalModelsResponse listTerminalModels(String companyId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } - - /** - * Get a list of terminal products - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param country {@link String } The country to return products for, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. For example, **US** (required) - * @return {@link TerminalProductsResponse } - * @throws ApiException if fails to make API call - */ - public TerminalProductsResponse listTerminalProducts(String companyId, String country) throws ApiException, IOException { - return listTerminalProducts(companyId, country, null, null, null, null); + pathParams.put("companyId", companyId); + + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/companies/{companyId}/terminalModels", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TerminalModelsResponse.fromJson(jsonResult); + } + + /** + * Get a list of terminal products + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param country {@link String } The country to return products for, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. For example, **US** + * (required) + * @return {@link TerminalProductsResponse } + * @throws ApiException if fails to make API call + */ + public TerminalProductsResponse listTerminalProducts(String companyId, String country) + throws ApiException, IOException { + return listTerminalProducts(companyId, country, null, null, null, null); + } + + /** + * Get a list of terminal products + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param country {@link String } Query: The country to return products for, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. For example, **US** + * (required) + * @param terminalModelId {@link String } Query: The terminal model to return products for. Use + * the ID returned in the [GET + * `/terminalModels`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/companies/{companyId}/terminalModels) + * response. For example, **Verifone.M400** (optional) + * @param offset {@link Integer } Query: The number of products to skip. (optional) + * @param limit {@link Integer } Query: The number of products to return. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TerminalProductsResponse } + * @throws ApiException if fails to make API call + */ + public TerminalProductsResponse listTerminalProducts( + String companyId, + String country, + String terminalModelId, + Integer offset, + Integer limit, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } + pathParams.put("companyId", companyId); - /** - * Get a list of terminal products - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param country {@link String } Query: The country to return products for, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. For example, **US** (required) - * @param terminalModelId {@link String } Query: The terminal model to return products for. Use the ID returned in the [GET `/terminalModels`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/companies/{companyId}/terminalModels) response. For example, **Verifone.M400** (optional) - * @param offset {@link Integer } Query: The number of products to skip. (optional) - * @param limit {@link Integer } Query: The number of products to return. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TerminalProductsResponse } - * @throws ApiException if fails to make API call - */ - public TerminalProductsResponse listTerminalProducts(String companyId, String country, String terminalModelId, Integer offset, Integer limit, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - - //Add query params - Map queryParams = new HashMap<>(); - if (country != null) { - queryParams.put("country", country); - } - if (terminalModelId != null) { - queryParams.put("terminalModelId", terminalModelId); - } - if (offset != null) { - queryParams.put("offset", offset.toString()); - } - if (limit != null) { - queryParams.put("limit", limit.toString()); - } - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/terminalProducts", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return TerminalProductsResponse.fromJson(jsonResult); + // Add query params + Map queryParams = new HashMap<>(); + if (country != null) { + queryParams.put("country", country); } - - /** - * Update an order - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param orderId {@link String } The unique identifier of the order. (required) - * @param terminalOrderRequest {@link TerminalOrderRequest } (required) - * @return {@link TerminalOrder } - * @throws ApiException if fails to make API call - */ - public TerminalOrder updateOrder(String companyId, String orderId, TerminalOrderRequest terminalOrderRequest) throws ApiException, IOException { - return updateOrder(companyId, orderId, terminalOrderRequest, null); + if (terminalModelId != null) { + queryParams.put("terminalModelId", terminalModelId); + } + if (offset != null) { + queryParams.put("offset", offset.toString()); + } + if (limit != null) { + queryParams.put("limit", limit.toString()); } - /** - * Update an order - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param orderId {@link String } The unique identifier of the order. (required) - * @param terminalOrderRequest {@link TerminalOrderRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TerminalOrder } - * @throws ApiException if fails to make API call - */ - public TerminalOrder updateOrder(String companyId, String orderId, TerminalOrderRequest terminalOrderRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - if (orderId == null) { - throw new IllegalArgumentException("Please provide the orderId path parameter"); - } - pathParams.put("orderId", orderId); - - String requestBody = terminalOrderRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/terminalOrders/{orderId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return TerminalOrder.fromJson(jsonResult); + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/companies/{companyId}/terminalProducts", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return TerminalProductsResponse.fromJson(jsonResult); + } + + /** + * Update an order + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param orderId {@link String } The unique identifier of the order. (required) + * @param terminalOrderRequest {@link TerminalOrderRequest } (required) + * @return {@link TerminalOrder } + * @throws ApiException if fails to make API call + */ + public TerminalOrder updateOrder( + String companyId, String orderId, TerminalOrderRequest terminalOrderRequest) + throws ApiException, IOException { + return updateOrder(companyId, orderId, terminalOrderRequest, null); + } + + /** + * Update an order + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param orderId {@link String } The unique identifier of the order. (required) + * @param terminalOrderRequest {@link TerminalOrderRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TerminalOrder } + * @throws ApiException if fails to make API call + */ + public TerminalOrder updateOrder( + String companyId, + String orderId, + TerminalOrderRequest terminalOrderRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + if (orderId == null) { + throw new IllegalArgumentException("Please provide the orderId path parameter"); } + pathParams.put("orderId", orderId); + + String requestBody = terminalOrderRequest.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/companies/{companyId}/terminalOrders/{orderId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return TerminalOrder.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/TerminalOrdersMerchantLevelApi.java b/src/main/java/com/adyen/service/management/TerminalOrdersMerchantLevelApi.java index f0f0f289b..e21949e16 100644 --- a/src/main/java/com/adyen/service/management/TerminalOrdersMerchantLevelApi.java +++ b/src/main/java/com/adyen/service/management/TerminalOrdersMerchantLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,8 +14,8 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.management.BillingEntitiesResponse; -import com.adyen.model.management.RestServiceError; import com.adyen.model.management.ShippingLocation; import com.adyen.model.management.ShippingLocationsResponse; import com.adyen.model.management.TerminalModelsResponse; @@ -23,452 +23,536 @@ import com.adyen.model.management.TerminalOrderRequest; import com.adyen.model.management.TerminalOrdersResponse; import com.adyen.model.management.TerminalProductsResponse; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class TerminalOrdersMerchantLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * Terminal orders - merchant level constructor in {@link com.adyen.service.management package}. - * @param client {@link Client } (required) - */ - public TerminalOrdersMerchantLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * Terminal orders - merchant level constructor in {@link com.adyen.service.management package}. + * + * @param client {@link Client } (required) + */ + public TerminalOrdersMerchantLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } + + /** + * Terminal orders - merchant level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or + * testing purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public TerminalOrdersMerchantLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Cancel an order + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param orderId {@link String } The unique identifier of the order. (required) + * @return {@link TerminalOrder } + * @throws ApiException if fails to make API call + */ + public TerminalOrder cancelOrder(String merchantId, String orderId) + throws ApiException, IOException { + return cancelOrder(merchantId, orderId, null); + } + + /** + * Cancel an order + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param orderId {@link String } The unique identifier of the order. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TerminalOrder } + * @throws ApiException if fails to make API call + */ + public TerminalOrder cancelOrder(String merchantId, String orderId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } - - /** - * Terminal orders - merchant level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public TerminalOrdersMerchantLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; + pathParams.put("merchantId", merchantId); + if (orderId == null) { + throw new IllegalArgumentException("Please provide the orderId path parameter"); } - - /** - * Cancel an order - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param orderId {@link String } The unique identifier of the order. (required) - * @return {@link TerminalOrder } - * @throws ApiException if fails to make API call - */ - public TerminalOrder cancelOrder(String merchantId, String orderId) throws ApiException, IOException { - return cancelOrder(merchantId, orderId, null); + pathParams.put("orderId", orderId); + + String requestBody = null; + Resource resource = + new Resource( + this, this.baseURL + "/merchants/{merchantId}/terminalOrders/{orderId}/cancel", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return TerminalOrder.fromJson(jsonResult); + } + + /** + * Create an order + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param terminalOrderRequest {@link TerminalOrderRequest } (required) + * @return {@link TerminalOrder } + * @throws ApiException if fails to make API call + */ + public TerminalOrder createOrder(String merchantId, TerminalOrderRequest terminalOrderRequest) + throws ApiException, IOException { + return createOrder(merchantId, terminalOrderRequest, null); + } + + /** + * Create an order + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param terminalOrderRequest {@link TerminalOrderRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TerminalOrder } + * @throws ApiException if fails to make API call + */ + public TerminalOrder createOrder( + String merchantId, TerminalOrderRequest terminalOrderRequest, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } - - /** - * Cancel an order - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param orderId {@link String } The unique identifier of the order. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TerminalOrder } - * @throws ApiException if fails to make API call - */ - public TerminalOrder cancelOrder(String merchantId, String orderId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (orderId == null) { - throw new IllegalArgumentException("Please provide the orderId path parameter"); - } - pathParams.put("orderId", orderId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalOrders/{orderId}/cancel", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return TerminalOrder.fromJson(jsonResult); + pathParams.put("merchantId", merchantId); + + String requestBody = terminalOrderRequest.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalOrders", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return TerminalOrder.fromJson(jsonResult); + } + + /** + * Create a shipping location + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param shippingLocation {@link ShippingLocation } (required) + * @return {@link ShippingLocation } + * @throws ApiException if fails to make API call + */ + public ShippingLocation createShippingLocation( + String merchantId, ShippingLocation shippingLocation) throws ApiException, IOException { + return createShippingLocation(merchantId, shippingLocation, null); + } + + /** + * Create a shipping location + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param shippingLocation {@link ShippingLocation } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ShippingLocation } + * @throws ApiException if fails to make API call + */ + public ShippingLocation createShippingLocation( + String merchantId, ShippingLocation shippingLocation, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } - - /** - * Create an order - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param terminalOrderRequest {@link TerminalOrderRequest } (required) - * @return {@link TerminalOrder } - * @throws ApiException if fails to make API call - */ - public TerminalOrder createOrder(String merchantId, TerminalOrderRequest terminalOrderRequest) throws ApiException, IOException { - return createOrder(merchantId, terminalOrderRequest, null); + pathParams.put("merchantId", merchantId); + + String requestBody = shippingLocation.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/merchants/{merchantId}/shippingLocations", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return ShippingLocation.fromJson(jsonResult); + } + + /** + * Get an order + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param orderId {@link String } The unique identifier of the order. (required) + * @return {@link TerminalOrder } + * @throws ApiException if fails to make API call + */ + public TerminalOrder getOrder(String merchantId, String orderId) + throws ApiException, IOException { + return getOrder(merchantId, orderId, null); + } + + /** + * Get an order + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param orderId {@link String } The unique identifier of the order. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TerminalOrder } + * @throws ApiException if fails to make API call + */ + public TerminalOrder getOrder(String merchantId, String orderId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } - - /** - * Create an order - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param terminalOrderRequest {@link TerminalOrderRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TerminalOrder } - * @throws ApiException if fails to make API call - */ - public TerminalOrder createOrder(String merchantId, TerminalOrderRequest terminalOrderRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - - String requestBody = terminalOrderRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalOrders", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return TerminalOrder.fromJson(jsonResult); + pathParams.put("merchantId", merchantId); + if (orderId == null) { + throw new IllegalArgumentException("Please provide the orderId path parameter"); } - - /** - * Create a shipping location - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param shippingLocation {@link ShippingLocation } (required) - * @return {@link ShippingLocation } - * @throws ApiException if fails to make API call - */ - public ShippingLocation createShippingLocation(String merchantId, ShippingLocation shippingLocation) throws ApiException, IOException { - return createShippingLocation(merchantId, shippingLocation, null); + pathParams.put("orderId", orderId); + + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalOrders/{orderId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TerminalOrder.fromJson(jsonResult); + } + + /** + * Get a list of billing entities + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @return {@link BillingEntitiesResponse } + * @throws ApiException if fails to make API call + */ + public BillingEntitiesResponse listBillingEntities(String merchantId) + throws ApiException, IOException { + return listBillingEntities(merchantId, null, null); + } + + /** + * Get a list of billing entities + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param name {@link String } Query: The name of the billing entity. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link BillingEntitiesResponse } + * @throws ApiException if fails to make API call + */ + public BillingEntitiesResponse listBillingEntities( + String merchantId, String name, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); - /** - * Create a shipping location - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param shippingLocation {@link ShippingLocation } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ShippingLocation } - * @throws ApiException if fails to make API call - */ - public ShippingLocation createShippingLocation(String merchantId, ShippingLocation shippingLocation, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - - String requestBody = shippingLocation.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/shippingLocations", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return ShippingLocation.fromJson(jsonResult); + // Add query params + Map queryParams = new HashMap<>(); + if (name != null) { + queryParams.put("name", name); } - /** - * Get an order - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param orderId {@link String } The unique identifier of the order. (required) - * @return {@link TerminalOrder } - * @throws ApiException if fails to make API call - */ - public TerminalOrder getOrder(String merchantId, String orderId) throws ApiException, IOException { - return getOrder(merchantId, orderId, null); + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/merchants/{merchantId}/billingEntities", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return BillingEntitiesResponse.fromJson(jsonResult); + } + + /** + * Get a list of orders + * + * @param merchantId {@link String } (required) + * @return {@link TerminalOrdersResponse } + * @throws ApiException if fails to make API call + */ + public TerminalOrdersResponse listOrders(String merchantId) throws ApiException, IOException { + return listOrders(merchantId, null, null, null, null, null); + } + + /** + * Get a list of orders + * + * @param merchantId {@link String } (required) + * @param customerOrderReference {@link String } Query: Your purchase order number. (optional) + * @param status {@link String } Query: The order status. Possible values (not case-sensitive): + * Placed, Confirmed, Cancelled, Shipped, Delivered. (optional) + * @param offset {@link Integer } Query: The number of orders to skip. (optional) + * @param limit {@link Integer } Query: The number of orders to return. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TerminalOrdersResponse } + * @throws ApiException if fails to make API call + */ + public TerminalOrdersResponse listOrders( + String merchantId, + String customerOrderReference, + String status, + Integer offset, + Integer limit, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); - /** - * Get an order - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param orderId {@link String } The unique identifier of the order. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TerminalOrder } - * @throws ApiException if fails to make API call - */ - public TerminalOrder getOrder(String merchantId, String orderId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (orderId == null) { - throw new IllegalArgumentException("Please provide the orderId path parameter"); - } - pathParams.put("orderId", orderId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalOrders/{orderId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TerminalOrder.fromJson(jsonResult); + // Add query params + Map queryParams = new HashMap<>(); + if (customerOrderReference != null) { + queryParams.put("customerOrderReference", customerOrderReference); } - - /** - * Get a list of billing entities - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @return {@link BillingEntitiesResponse } - * @throws ApiException if fails to make API call - */ - public BillingEntitiesResponse listBillingEntities(String merchantId) throws ApiException, IOException { - return listBillingEntities(merchantId, null, null); + if (status != null) { + queryParams.put("status", status); } - - /** - * Get a list of billing entities - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param name {@link String } Query: The name of the billing entity. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link BillingEntitiesResponse } - * @throws ApiException if fails to make API call - */ - public BillingEntitiesResponse listBillingEntities(String merchantId, String name, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - - //Add query params - Map queryParams = new HashMap<>(); - if (name != null) { - queryParams.put("name", name); - } - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/billingEntities", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return BillingEntitiesResponse.fromJson(jsonResult); + if (offset != null) { + queryParams.put("offset", offset.toString()); } - - /** - * Get a list of orders - * - * @param merchantId {@link String } (required) - * @return {@link TerminalOrdersResponse } - * @throws ApiException if fails to make API call - */ - public TerminalOrdersResponse listOrders(String merchantId) throws ApiException, IOException { - return listOrders(merchantId, null, null, null, null, null); + if (limit != null) { + queryParams.put("limit", limit.toString()); } - /** - * Get a list of orders - * - * @param merchantId {@link String } (required) - * @param customerOrderReference {@link String } Query: Your purchase order number. (optional) - * @param status {@link String } Query: The order status. Possible values (not case-sensitive): Placed, Confirmed, Cancelled, Shipped, Delivered. (optional) - * @param offset {@link Integer } Query: The number of orders to skip. (optional) - * @param limit {@link Integer } Query: The number of orders to return. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TerminalOrdersResponse } - * @throws ApiException if fails to make API call - */ - public TerminalOrdersResponse listOrders(String merchantId, String customerOrderReference, String status, Integer offset, Integer limit, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - - //Add query params - Map queryParams = new HashMap<>(); - if (customerOrderReference != null) { - queryParams.put("customerOrderReference", customerOrderReference); - } - if (status != null) { - queryParams.put("status", status); - } - if (offset != null) { - queryParams.put("offset", offset.toString()); - } - if (limit != null) { - queryParams.put("limit", limit.toString()); - } - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalOrders", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return TerminalOrdersResponse.fromJson(jsonResult); + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalOrders", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return TerminalOrdersResponse.fromJson(jsonResult); + } + + /** + * Get a list of shipping locations + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @return {@link ShippingLocationsResponse } + * @throws ApiException if fails to make API call + */ + public ShippingLocationsResponse listShippingLocations(String merchantId) + throws ApiException, IOException { + return listShippingLocations(merchantId, null, null, null, null); + } + + /** + * Get a list of shipping locations + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param name {@link String } Query: The name of the shipping location. (optional) + * @param offset {@link Integer } Query: The number of locations to skip. (optional) + * @param limit {@link Integer } Query: The number of locations to return. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ShippingLocationsResponse } + * @throws ApiException if fails to make API call + */ + public ShippingLocationsResponse listShippingLocations( + String merchantId, String name, Integer offset, Integer limit, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); - /** - * Get a list of shipping locations - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @return {@link ShippingLocationsResponse } - * @throws ApiException if fails to make API call - */ - public ShippingLocationsResponse listShippingLocations(String merchantId) throws ApiException, IOException { - return listShippingLocations(merchantId, null, null, null, null); + // Add query params + Map queryParams = new HashMap<>(); + if (name != null) { + queryParams.put("name", name); } - - /** - * Get a list of shipping locations - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param name {@link String } Query: The name of the shipping location. (optional) - * @param offset {@link Integer } Query: The number of locations to skip. (optional) - * @param limit {@link Integer } Query: The number of locations to return. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ShippingLocationsResponse } - * @throws ApiException if fails to make API call - */ - public ShippingLocationsResponse listShippingLocations(String merchantId, String name, Integer offset, Integer limit, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - - //Add query params - Map queryParams = new HashMap<>(); - if (name != null) { - queryParams.put("name", name); - } - if (offset != null) { - queryParams.put("offset", offset.toString()); - } - if (limit != null) { - queryParams.put("limit", limit.toString()); - } - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/shippingLocations", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return ShippingLocationsResponse.fromJson(jsonResult); + if (offset != null) { + queryParams.put("offset", offset.toString()); } - - /** - * Get a list of terminal models - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @return {@link TerminalModelsResponse } - * @throws ApiException if fails to make API call - */ - public TerminalModelsResponse listTerminalModels(String merchantId) throws ApiException, IOException { - return listTerminalModels(merchantId, null); + if (limit != null) { + queryParams.put("limit", limit.toString()); } - /** - * Get a list of terminal models - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TerminalModelsResponse } - * @throws ApiException if fails to make API call - */ - public TerminalModelsResponse listTerminalModels(String merchantId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalModels", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TerminalModelsResponse.fromJson(jsonResult); + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/merchants/{merchantId}/shippingLocations", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return ShippingLocationsResponse.fromJson(jsonResult); + } + + /** + * Get a list of terminal models + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @return {@link TerminalModelsResponse } + * @throws ApiException if fails to make API call + */ + public TerminalModelsResponse listTerminalModels(String merchantId) + throws ApiException, IOException { + return listTerminalModels(merchantId, null); + } + + /** + * Get a list of terminal models + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TerminalModelsResponse } + * @throws ApiException if fails to make API call + */ + public TerminalModelsResponse listTerminalModels(String merchantId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } - - /** - * Get a list of terminal products - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param country {@link String } The country to return products for, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. For example, **US** (required) - * @return {@link TerminalProductsResponse } - * @throws ApiException if fails to make API call - */ - public TerminalProductsResponse listTerminalProducts(String merchantId, String country) throws ApiException, IOException { - return listTerminalProducts(merchantId, country, null, null, null, null); + pathParams.put("merchantId", merchantId); + + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalModels", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TerminalModelsResponse.fromJson(jsonResult); + } + + /** + * Get a list of terminal products + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param country {@link String } The country to return products for, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. For example, **US** + * (required) + * @return {@link TerminalProductsResponse } + * @throws ApiException if fails to make API call + */ + public TerminalProductsResponse listTerminalProducts(String merchantId, String country) + throws ApiException, IOException { + return listTerminalProducts(merchantId, country, null, null, null, null); + } + + /** + * Get a list of terminal products + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param country {@link String } Query: The country to return products for, in [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. For example, **US** + * (required) + * @param terminalModelId {@link String } Query: The terminal model to return products for. Use + * the ID returned in the [GET + * `/terminalModels`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/merchants/{merchantId}/terminalModels) + * response. For example, **Verifone.M400** (optional) + * @param offset {@link Integer } Query: The number of products to skip. (optional) + * @param limit {@link Integer } Query: The number of products to return. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TerminalProductsResponse } + * @throws ApiException if fails to make API call + */ + public TerminalProductsResponse listTerminalProducts( + String merchantId, + String country, + String terminalModelId, + Integer offset, + Integer limit, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); - /** - * Get a list of terminal products - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param country {@link String } Query: The country to return products for, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. For example, **US** (required) - * @param terminalModelId {@link String } Query: The terminal model to return products for. Use the ID returned in the [GET `/terminalModels`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/merchants/{merchantId}/terminalModels) response. For example, **Verifone.M400** (optional) - * @param offset {@link Integer } Query: The number of products to skip. (optional) - * @param limit {@link Integer } Query: The number of products to return. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TerminalProductsResponse } - * @throws ApiException if fails to make API call - */ - public TerminalProductsResponse listTerminalProducts(String merchantId, String country, String terminalModelId, Integer offset, Integer limit, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - - //Add query params - Map queryParams = new HashMap<>(); - if (country != null) { - queryParams.put("country", country); - } - if (terminalModelId != null) { - queryParams.put("terminalModelId", terminalModelId); - } - if (offset != null) { - queryParams.put("offset", offset.toString()); - } - if (limit != null) { - queryParams.put("limit", limit.toString()); - } - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalProducts", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return TerminalProductsResponse.fromJson(jsonResult); + // Add query params + Map queryParams = new HashMap<>(); + if (country != null) { + queryParams.put("country", country); } - - /** - * Update an order - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param orderId {@link String } The unique identifier of the order. (required) - * @param terminalOrderRequest {@link TerminalOrderRequest } (required) - * @return {@link TerminalOrder } - * @throws ApiException if fails to make API call - */ - public TerminalOrder updateOrder(String merchantId, String orderId, TerminalOrderRequest terminalOrderRequest) throws ApiException, IOException { - return updateOrder(merchantId, orderId, terminalOrderRequest, null); + if (terminalModelId != null) { + queryParams.put("terminalModelId", terminalModelId); + } + if (offset != null) { + queryParams.put("offset", offset.toString()); + } + if (limit != null) { + queryParams.put("limit", limit.toString()); } - /** - * Update an order - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param orderId {@link String } The unique identifier of the order. (required) - * @param terminalOrderRequest {@link TerminalOrderRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TerminalOrder } - * @throws ApiException if fails to make API call - */ - public TerminalOrder updateOrder(String merchantId, String orderId, TerminalOrderRequest terminalOrderRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (orderId == null) { - throw new IllegalArgumentException("Please provide the orderId path parameter"); - } - pathParams.put("orderId", orderId); - - String requestBody = terminalOrderRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalOrders/{orderId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return TerminalOrder.fromJson(jsonResult); + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalProducts", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return TerminalProductsResponse.fromJson(jsonResult); + } + + /** + * Update an order + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param orderId {@link String } The unique identifier of the order. (required) + * @param terminalOrderRequest {@link TerminalOrderRequest } (required) + * @return {@link TerminalOrder } + * @throws ApiException if fails to make API call + */ + public TerminalOrder updateOrder( + String merchantId, String orderId, TerminalOrderRequest terminalOrderRequest) + throws ApiException, IOException { + return updateOrder(merchantId, orderId, terminalOrderRequest, null); + } + + /** + * Update an order + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param orderId {@link String } The unique identifier of the order. (required) + * @param terminalOrderRequest {@link TerminalOrderRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TerminalOrder } + * @throws ApiException if fails to make API call + */ + public TerminalOrder updateOrder( + String merchantId, + String orderId, + TerminalOrderRequest terminalOrderRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (orderId == null) { + throw new IllegalArgumentException("Please provide the orderId path parameter"); } + pathParams.put("orderId", orderId); + + String requestBody = terminalOrderRequest.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalOrders/{orderId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return TerminalOrder.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/TerminalSettingsCompanyLevelApi.java b/src/main/java/com/adyen/service/management/TerminalSettingsCompanyLevelApi.java index 362399990..c06f7035b 100644 --- a/src/main/java/com/adyen/service/management/TerminalSettingsCompanyLevelApi.java +++ b/src/main/java/com/adyen/service/management/TerminalSettingsCompanyLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,192 +14,223 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.management.Logo; -import com.adyen.model.management.RestServiceError; import com.adyen.model.management.TerminalSettings; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class TerminalSettingsCompanyLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * Terminal settings - company level constructor in {@link com.adyen.service.management package}. - * @param client {@link Client } (required) - */ - public TerminalSettingsCompanyLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } - - /** - * Terminal settings - company level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public TerminalSettingsCompanyLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * Terminal settings - company level constructor in {@link com.adyen.service.management package}. + * + * @param client {@link Client } (required) + */ + public TerminalSettingsCompanyLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } + + /** + * Terminal settings - company level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or + * testing purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public TerminalSettingsCompanyLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Get the terminal logo + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param model {@link String } The terminal model. Possible values: E355, VX675WIFIBT, VX680, + * VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, + * V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo getTerminalLogo(String companyId, String model) throws ApiException, IOException { + return getTerminalLogo(companyId, model, null); + } + + /** + * Get the terminal logo + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param model {@link String } Query: The terminal model. Possible values: E355, VX675WIFIBT, + * VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, + * V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo getTerminalLogo(String companyId, String model, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } + pathParams.put("companyId", companyId); - /** - * Get the terminal logo - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param model {@link String } The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo getTerminalLogo(String companyId, String model) throws ApiException, IOException { - return getTerminalLogo(companyId, model, null); + // Add query params + Map queryParams = new HashMap<>(); + if (model != null) { + queryParams.put("model", model); } - /** - * Get the terminal logo - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param model {@link String } Query: The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo getTerminalLogo(String companyId, String model, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - - //Add query params - Map queryParams = new HashMap<>(); - if (model != null) { - queryParams.put("model", model); - } - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/terminalLogos", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return Logo.fromJson(jsonResult); + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/companies/{companyId}/terminalLogos", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return Logo.fromJson(jsonResult); + } + + /** + * Get terminal settings + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings getTerminalSettings(String companyId) throws ApiException, IOException { + return getTerminalSettings(companyId, null); + } + + /** + * Get terminal settings + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings getTerminalSettings(String companyId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } - - /** - * Get terminal settings - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings getTerminalSettings(String companyId) throws ApiException, IOException { - return getTerminalSettings(companyId, null); - } - - /** - * Get terminal settings - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings getTerminalSettings(String companyId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/terminalSettings", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TerminalSettings.fromJson(jsonResult); - } - - /** - * Update the terminal logo - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param model {@link String } The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) - * @param logo {@link Logo } (required) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo updateTerminalLogo(String companyId, String model, Logo logo) throws ApiException, IOException { - return updateTerminalLogo(companyId, model, logo, null); - } - - /** - * Update the terminal logo - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param logo {@link Logo } (required) - * @param model {@link String } Query: The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo updateTerminalLogo(String companyId, String model, Logo logo, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - - //Add query params - Map queryParams = new HashMap<>(); - if (model != null) { - queryParams.put("model", model); - } - - String requestBody = logo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/terminalLogos", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams, queryParams); - return Logo.fromJson(jsonResult); + pathParams.put("companyId", companyId); + + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/companies/{companyId}/terminalSettings", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TerminalSettings.fromJson(jsonResult); + } + + /** + * Update the terminal logo + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param model {@link String } The terminal model. Possible values: E355, VX675WIFIBT, VX680, + * VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, + * V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) + * @param logo {@link Logo } (required) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo updateTerminalLogo(String companyId, String model, Logo logo) + throws ApiException, IOException { + return updateTerminalLogo(companyId, model, logo, null); + } + + /** + * Update the terminal logo + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param logo {@link Logo } (required) + * @param model {@link String } Query: The terminal model. Possible values: E355, VX675WIFIBT, + * VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, + * V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo updateTerminalLogo( + String companyId, String model, Logo logo, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } + pathParams.put("companyId", companyId); - /** - * Update terminal settings - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param terminalSettings {@link TerminalSettings } (required) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings updateTerminalSettings(String companyId, TerminalSettings terminalSettings) throws ApiException, IOException { - return updateTerminalSettings(companyId, terminalSettings, null); + // Add query params + Map queryParams = new HashMap<>(); + if (model != null) { + queryParams.put("model", model); } - /** - * Update terminal settings - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param terminalSettings {@link TerminalSettings } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings updateTerminalSettings(String companyId, TerminalSettings terminalSettings, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - - String requestBody = terminalSettings.toJson(); - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/terminalSettings", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return TerminalSettings.fromJson(jsonResult); + String requestBody = logo.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/companies/{companyId}/terminalLogos", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams, queryParams); + return Logo.fromJson(jsonResult); + } + + /** + * Update terminal settings + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param terminalSettings {@link TerminalSettings } (required) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings updateTerminalSettings( + String companyId, TerminalSettings terminalSettings) throws ApiException, IOException { + return updateTerminalSettings(companyId, terminalSettings, null); + } + + /** + * Update terminal settings + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param terminalSettings {@link TerminalSettings } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings updateTerminalSettings( + String companyId, TerminalSettings terminalSettings, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } + pathParams.put("companyId", companyId); + + String requestBody = terminalSettings.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/companies/{companyId}/terminalSettings", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return TerminalSettings.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/TerminalSettingsMerchantLevelApi.java b/src/main/java/com/adyen/service/management/TerminalSettingsMerchantLevelApi.java index 3ce854e9c..e895dc3ad 100644 --- a/src/main/java/com/adyen/service/management/TerminalSettingsMerchantLevelApi.java +++ b/src/main/java/com/adyen/service/management/TerminalSettingsMerchantLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,192 +14,223 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.management.Logo; -import com.adyen.model.management.RestServiceError; import com.adyen.model.management.TerminalSettings; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class TerminalSettingsMerchantLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * Terminal settings - merchant level constructor in {@link com.adyen.service.management package}. - * @param client {@link Client } (required) - */ - public TerminalSettingsMerchantLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } - - /** - * Terminal settings - merchant level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public TerminalSettingsMerchantLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * Terminal settings - merchant level constructor in {@link com.adyen.service.management package}. + * + * @param client {@link Client } (required) + */ + public TerminalSettingsMerchantLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } + + /** + * Terminal settings - merchant level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or + * testing purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public TerminalSettingsMerchantLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Get the terminal logo + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param model {@link String } The terminal model. Possible values: E355, VX675WIFIBT, VX680, + * VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, + * V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo getTerminalLogo(String merchantId, String model) throws ApiException, IOException { + return getTerminalLogo(merchantId, model, null); + } + + /** + * Get the terminal logo + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param model {@link String } Query: The terminal model. Possible values: E355, VX675WIFIBT, + * VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, + * V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo getTerminalLogo(String merchantId, String model, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); - /** - * Get the terminal logo - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param model {@link String } The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo getTerminalLogo(String merchantId, String model) throws ApiException, IOException { - return getTerminalLogo(merchantId, model, null); + // Add query params + Map queryParams = new HashMap<>(); + if (model != null) { + queryParams.put("model", model); } - /** - * Get the terminal logo - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param model {@link String } Query: The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo getTerminalLogo(String merchantId, String model, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - - //Add query params - Map queryParams = new HashMap<>(); - if (model != null) { - queryParams.put("model", model); - } - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalLogos", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return Logo.fromJson(jsonResult); + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalLogos", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return Logo.fromJson(jsonResult); + } + + /** + * Get terminal settings + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings getTerminalSettings(String merchantId) throws ApiException, IOException { + return getTerminalSettings(merchantId, null); + } + + /** + * Get terminal settings + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings getTerminalSettings(String merchantId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } - - /** - * Get terminal settings - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings getTerminalSettings(String merchantId) throws ApiException, IOException { - return getTerminalSettings(merchantId, null); - } - - /** - * Get terminal settings - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings getTerminalSettings(String merchantId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalSettings", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TerminalSettings.fromJson(jsonResult); - } - - /** - * Update the terminal logo - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param model {@link String } The terminal model. Allowed values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) - * @param logo {@link Logo } (required) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo updateTerminalLogo(String merchantId, String model, Logo logo) throws ApiException, IOException { - return updateTerminalLogo(merchantId, model, logo, null); - } - - /** - * Update the terminal logo - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param logo {@link Logo } (required) - * @param model {@link String } Query: The terminal model. Allowed values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo updateTerminalLogo(String merchantId, String model, Logo logo, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - - //Add query params - Map queryParams = new HashMap<>(); - if (model != null) { - queryParams.put("model", model); - } - - String requestBody = logo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalLogos", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams, queryParams); - return Logo.fromJson(jsonResult); + pathParams.put("merchantId", merchantId); + + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalSettings", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TerminalSettings.fromJson(jsonResult); + } + + /** + * Update the terminal logo + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param model {@link String } The terminal model. Allowed values: E355, VX675WIFIBT, VX680, + * VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, + * V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) + * @param logo {@link Logo } (required) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo updateTerminalLogo(String merchantId, String model, Logo logo) + throws ApiException, IOException { + return updateTerminalLogo(merchantId, model, logo, null); + } + + /** + * Update the terminal logo + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param logo {@link Logo } (required) + * @param model {@link String } Query: The terminal model. Allowed values: E355, VX675WIFIBT, + * VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, + * V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo updateTerminalLogo( + String merchantId, String model, Logo logo, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); - /** - * Update terminal settings - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param terminalSettings {@link TerminalSettings } (required) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings updateTerminalSettings(String merchantId, TerminalSettings terminalSettings) throws ApiException, IOException { - return updateTerminalSettings(merchantId, terminalSettings, null); + // Add query params + Map queryParams = new HashMap<>(); + if (model != null) { + queryParams.put("model", model); } - /** - * Update terminal settings - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param terminalSettings {@link TerminalSettings } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings updateTerminalSettings(String merchantId, TerminalSettings terminalSettings, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - - String requestBody = terminalSettings.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalSettings", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return TerminalSettings.fromJson(jsonResult); + String requestBody = logo.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalLogos", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams, queryParams); + return Logo.fromJson(jsonResult); + } + + /** + * Update terminal settings + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param terminalSettings {@link TerminalSettings } (required) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings updateTerminalSettings( + String merchantId, TerminalSettings terminalSettings) throws ApiException, IOException { + return updateTerminalSettings(merchantId, terminalSettings, null); + } + + /** + * Update terminal settings + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param terminalSettings {@link TerminalSettings } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings updateTerminalSettings( + String merchantId, TerminalSettings terminalSettings, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); + + String requestBody = terminalSettings.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/merchants/{merchantId}/terminalSettings", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return TerminalSettings.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/TerminalSettingsStoreLevelApi.java b/src/main/java/com/adyen/service/management/TerminalSettingsStoreLevelApi.java index 51ad0e494..bb32d49bd 100644 --- a/src/main/java/com/adyen/service/management/TerminalSettingsStoreLevelApi.java +++ b/src/main/java/com/adyen/service/management/TerminalSettingsStoreLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,368 +14,445 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.management.Logo; -import com.adyen.model.management.RestServiceError; import com.adyen.model.management.TerminalSettings; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class TerminalSettingsStoreLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * Terminal settings - store level constructor in {@link com.adyen.service.management package}. - * @param client {@link Client } (required) - */ - public TerminalSettingsStoreLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * Terminal settings - store level constructor in {@link com.adyen.service.management package}. + * + * @param client {@link Client } (required) + */ + public TerminalSettingsStoreLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } + + /** + * Terminal settings - store level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or + * testing purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public TerminalSettingsStoreLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Get the terminal logo + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param reference {@link String } The reference that identifies the store. (required) + * @param model {@link String } The terminal model. Possible values: E355, VX675WIFIBT, VX680, + * VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, + * V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo getTerminalLogo(String merchantId, String reference, String model) + throws ApiException, IOException { + return getTerminalLogo(merchantId, reference, model, null); + } + + /** + * Get the terminal logo + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param reference {@link String } The reference that identifies the store. (required) + * @param model {@link String } Query: The terminal model. Possible values: E355, VX675WIFIBT, + * VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, + * V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo getTerminalLogo( + String merchantId, String reference, String model, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } - - /** - * Terminal settings - store level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public TerminalSettingsStoreLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; + pathParams.put("merchantId", merchantId); + if (reference == null) { + throw new IllegalArgumentException("Please provide the reference path parameter"); } + pathParams.put("reference", reference); - /** - * Get the terminal logo - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param reference {@link String } The reference that identifies the store. (required) - * @param model {@link String } The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo getTerminalLogo(String merchantId, String reference, String model) throws ApiException, IOException { - return getTerminalLogo(merchantId, reference, model, null); + // Add query params + Map queryParams = new HashMap<>(); + if (model != null) { + queryParams.put("model", model); } - /** - * Get the terminal logo - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param reference {@link String } The reference that identifies the store. (required) - * @param model {@link String } Query: The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo getTerminalLogo(String merchantId, String reference, String model, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (reference == null) { - throw new IllegalArgumentException("Please provide the reference path parameter"); - } - pathParams.put("reference", reference); - - //Add query params - Map queryParams = new HashMap<>(); - if (model != null) { - queryParams.put("model", model); - } - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/stores/{reference}/terminalLogos", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return Logo.fromJson(jsonResult); + String requestBody = null; + Resource resource = + new Resource( + this, this.baseURL + "/merchants/{merchantId}/stores/{reference}/terminalLogos", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return Logo.fromJson(jsonResult); + } + + /** + * Get the terminal logo + * + * @param storeId {@link String } The unique identifier of the store. (required) + * @param model {@link String } The terminal model. Possible values: E355, VX675WIFIBT, VX680, + * VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, + * V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo getTerminalLogoByStoreId(String storeId, String model) + throws ApiException, IOException { + return getTerminalLogoByStoreId(storeId, model, null); + } + + /** + * Get the terminal logo + * + * @param storeId {@link String } The unique identifier of the store. (required) + * @param model {@link String } Query: The terminal model. Possible values: E355, VX675WIFIBT, + * VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, + * V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo getTerminalLogoByStoreId(String storeId, String model, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (storeId == null) { + throw new IllegalArgumentException("Please provide the storeId path parameter"); } + pathParams.put("storeId", storeId); - /** - * Get the terminal logo - * - * @param storeId {@link String } The unique identifier of the store. (required) - * @param model {@link String } The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo getTerminalLogoByStoreId(String storeId, String model) throws ApiException, IOException { - return getTerminalLogoByStoreId(storeId, model, null); + // Add query params + Map queryParams = new HashMap<>(); + if (model != null) { + queryParams.put("model", model); } - /** - * Get the terminal logo - * - * @param storeId {@link String } The unique identifier of the store. (required) - * @param model {@link String } Query: The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo getTerminalLogoByStoreId(String storeId, String model, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (storeId == null) { - throw new IllegalArgumentException("Please provide the storeId path parameter"); - } - pathParams.put("storeId", storeId); - - //Add query params - Map queryParams = new HashMap<>(); - if (model != null) { - queryParams.put("model", model); - } - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/stores/{storeId}/terminalLogos", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return Logo.fromJson(jsonResult); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/stores/{storeId}/terminalLogos", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return Logo.fromJson(jsonResult); + } + + /** + * Get terminal settings + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param reference {@link String } The reference that identifies the store. (required) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings getTerminalSettings(String merchantId, String reference) + throws ApiException, IOException { + return getTerminalSettings(merchantId, reference, null); + } + + /** + * Get terminal settings + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param reference {@link String } The reference that identifies the store. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings getTerminalSettings( + String merchantId, String reference, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } - - /** - * Get terminal settings - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param reference {@link String } The reference that identifies the store. (required) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings getTerminalSettings(String merchantId, String reference) throws ApiException, IOException { - return getTerminalSettings(merchantId, reference, null); + pathParams.put("merchantId", merchantId); + if (reference == null) { + throw new IllegalArgumentException("Please provide the reference path parameter"); } - - /** - * Get terminal settings - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param reference {@link String } The reference that identifies the store. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings getTerminalSettings(String merchantId, String reference, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (reference == null) { - throw new IllegalArgumentException("Please provide the reference path parameter"); - } - pathParams.put("reference", reference); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/stores/{reference}/terminalSettings", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TerminalSettings.fromJson(jsonResult); + pathParams.put("reference", reference); + + String requestBody = null; + Resource resource = + new Resource( + this, + this.baseURL + "/merchants/{merchantId}/stores/{reference}/terminalSettings", + null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TerminalSettings.fromJson(jsonResult); + } + + /** + * Get terminal settings + * + * @param storeId {@link String } The unique identifier of the store. (required) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings getTerminalSettingsByStoreId(String storeId) + throws ApiException, IOException { + return getTerminalSettingsByStoreId(storeId, null); + } + + /** + * Get terminal settings + * + * @param storeId {@link String } The unique identifier of the store. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings getTerminalSettingsByStoreId( + String storeId, RequestOptions requestOptions) throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (storeId == null) { + throw new IllegalArgumentException("Please provide the storeId path parameter"); } - - /** - * Get terminal settings - * - * @param storeId {@link String } The unique identifier of the store. (required) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings getTerminalSettingsByStoreId(String storeId) throws ApiException, IOException { - return getTerminalSettingsByStoreId(storeId, null); - } - - /** - * Get terminal settings - * - * @param storeId {@link String } The unique identifier of the store. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings getTerminalSettingsByStoreId(String storeId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (storeId == null) { - throw new IllegalArgumentException("Please provide the storeId path parameter"); - } - pathParams.put("storeId", storeId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/stores/{storeId}/terminalSettings", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TerminalSettings.fromJson(jsonResult); - } - - /** - * Update the terminal logo - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param reference {@link String } The reference that identifies the store. (required) - * @param model {@link String } The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T (required) - * @param logo {@link Logo } (required) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo updateTerminalLogo(String merchantId, String reference, String model, Logo logo) throws ApiException, IOException { - return updateTerminalLogo(merchantId, reference, model, logo, null); + pathParams.put("storeId", storeId); + + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/stores/{storeId}/terminalSettings", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TerminalSettings.fromJson(jsonResult); + } + + /** + * Update the terminal logo + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param reference {@link String } The reference that identifies the store. (required) + * @param model {@link String } The terminal model. Possible values: E355, VX675WIFIBT, VX680, + * VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, + * V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T (required) + * @param logo {@link Logo } (required) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo updateTerminalLogo(String merchantId, String reference, String model, Logo logo) + throws ApiException, IOException { + return updateTerminalLogo(merchantId, reference, model, logo, null); + } + + /** + * Update the terminal logo + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param reference {@link String } The reference that identifies the store. (required) + * @param logo {@link Logo } (required) + * @param model {@link String } Query: The terminal model. Possible values: E355, VX675WIFIBT, + * VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, + * V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo updateTerminalLogo( + String merchantId, String reference, String model, Logo logo, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } - - /** - * Update the terminal logo - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param reference {@link String } The reference that identifies the store. (required) - * @param logo {@link Logo } (required) - * @param model {@link String } Query: The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo updateTerminalLogo(String merchantId, String reference, String model, Logo logo, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (reference == null) { - throw new IllegalArgumentException("Please provide the reference path parameter"); - } - pathParams.put("reference", reference); - - //Add query params - Map queryParams = new HashMap<>(); - if (model != null) { - queryParams.put("model", model); - } - - String requestBody = logo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/stores/{reference}/terminalLogos", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams, queryParams); - return Logo.fromJson(jsonResult); + pathParams.put("merchantId", merchantId); + if (reference == null) { + throw new IllegalArgumentException("Please provide the reference path parameter"); } + pathParams.put("reference", reference); - /** - * Update the terminal logo - * - * @param storeId {@link String } The unique identifier of the store. (required) - * @param model {@link String } The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) - * @param logo {@link Logo } (required) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo updateTerminalLogoByStoreId(String storeId, String model, Logo logo) throws ApiException, IOException { - return updateTerminalLogoByStoreId(storeId, model, logo, null); + // Add query params + Map queryParams = new HashMap<>(); + if (model != null) { + queryParams.put("model", model); } - /** - * Update the terminal logo - * - * @param storeId {@link String } The unique identifier of the store. (required) - * @param logo {@link Logo } (required) - * @param model {@link String } Query: The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo updateTerminalLogoByStoreId(String storeId, String model, Logo logo, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (storeId == null) { - throw new IllegalArgumentException("Please provide the storeId path parameter"); - } - pathParams.put("storeId", storeId); - - //Add query params - Map queryParams = new HashMap<>(); - if (model != null) { - queryParams.put("model", model); - } - - String requestBody = logo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/stores/{storeId}/terminalLogos", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams, queryParams); - return Logo.fromJson(jsonResult); + String requestBody = logo.toJson(); + Resource resource = + new Resource( + this, this.baseURL + "/merchants/{merchantId}/stores/{reference}/terminalLogos", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams, queryParams); + return Logo.fromJson(jsonResult); + } + + /** + * Update the terminal logo + * + * @param storeId {@link String } The unique identifier of the store. (required) + * @param model {@link String } The terminal model. Possible values: E355, VX675WIFIBT, VX680, + * VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, + * V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) + * @param logo {@link Logo } (required) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo updateTerminalLogoByStoreId(String storeId, String model, Logo logo) + throws ApiException, IOException { + return updateTerminalLogoByStoreId(storeId, model, logo, null); + } + + /** + * Update the terminal logo + * + * @param storeId {@link String } The unique identifier of the store. (required) + * @param logo {@link Logo } (required) + * @param model {@link String } Query: The terminal model. Possible values: E355, VX675WIFIBT, + * VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, + * V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo updateTerminalLogoByStoreId( + String storeId, String model, Logo logo, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (storeId == null) { + throw new IllegalArgumentException("Please provide the storeId path parameter"); } + pathParams.put("storeId", storeId); - /** - * Update terminal settings - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param reference {@link String } The reference that identifies the store. (required) - * @param terminalSettings {@link TerminalSettings } (required) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings updateTerminalSettings(String merchantId, String reference, TerminalSettings terminalSettings) throws ApiException, IOException { - return updateTerminalSettings(merchantId, reference, terminalSettings, null); + // Add query params + Map queryParams = new HashMap<>(); + if (model != null) { + queryParams.put("model", model); } - /** - * Update terminal settings - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param reference {@link String } The reference that identifies the store. (required) - * @param terminalSettings {@link TerminalSettings } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings updateTerminalSettings(String merchantId, String reference, TerminalSettings terminalSettings, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (reference == null) { - throw new IllegalArgumentException("Please provide the reference path parameter"); - } - pathParams.put("reference", reference); - - String requestBody = terminalSettings.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/stores/{reference}/terminalSettings", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return TerminalSettings.fromJson(jsonResult); + String requestBody = logo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/stores/{storeId}/terminalLogos", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams, queryParams); + return Logo.fromJson(jsonResult); + } + + /** + * Update terminal settings + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param reference {@link String } The reference that identifies the store. (required) + * @param terminalSettings {@link TerminalSettings } (required) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings updateTerminalSettings( + String merchantId, String reference, TerminalSettings terminalSettings) + throws ApiException, IOException { + return updateTerminalSettings(merchantId, reference, terminalSettings, null); + } + + /** + * Update terminal settings + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param reference {@link String } The reference that identifies the store. (required) + * @param terminalSettings {@link TerminalSettings } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings updateTerminalSettings( + String merchantId, + String reference, + TerminalSettings terminalSettings, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } - - /** - * Update terminal settings - * - * @param storeId {@link String } The unique identifier of the store. (required) - * @param terminalSettings {@link TerminalSettings } (required) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings updateTerminalSettingsByStoreId(String storeId, TerminalSettings terminalSettings) throws ApiException, IOException { - return updateTerminalSettingsByStoreId(storeId, terminalSettings, null); + pathParams.put("merchantId", merchantId); + if (reference == null) { + throw new IllegalArgumentException("Please provide the reference path parameter"); } - - /** - * Update terminal settings - * - * @param storeId {@link String } The unique identifier of the store. (required) - * @param terminalSettings {@link TerminalSettings } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings updateTerminalSettingsByStoreId(String storeId, TerminalSettings terminalSettings, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (storeId == null) { - throw new IllegalArgumentException("Please provide the storeId path parameter"); - } - pathParams.put("storeId", storeId); - - String requestBody = terminalSettings.toJson(); - Resource resource = new Resource(this, this.baseURL + "/stores/{storeId}/terminalSettings", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return TerminalSettings.fromJson(jsonResult); + pathParams.put("reference", reference); + + String requestBody = terminalSettings.toJson(); + Resource resource = + new Resource( + this, + this.baseURL + "/merchants/{merchantId}/stores/{reference}/terminalSettings", + null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return TerminalSettings.fromJson(jsonResult); + } + + /** + * Update terminal settings + * + * @param storeId {@link String } The unique identifier of the store. (required) + * @param terminalSettings {@link TerminalSettings } (required) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings updateTerminalSettingsByStoreId( + String storeId, TerminalSettings terminalSettings) throws ApiException, IOException { + return updateTerminalSettingsByStoreId(storeId, terminalSettings, null); + } + + /** + * Update terminal settings + * + * @param storeId {@link String } The unique identifier of the store. (required) + * @param terminalSettings {@link TerminalSettings } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings updateTerminalSettingsByStoreId( + String storeId, TerminalSettings terminalSettings, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (storeId == null) { + throw new IllegalArgumentException("Please provide the storeId path parameter"); } + pathParams.put("storeId", storeId); + + String requestBody = terminalSettings.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/stores/{storeId}/terminalSettings", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return TerminalSettings.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/TerminalSettingsTerminalLevelApi.java b/src/main/java/com/adyen/service/management/TerminalSettingsTerminalLevelApi.java index 6ae415012..83a167b33 100644 --- a/src/main/java/com/adyen/service/management/TerminalSettingsTerminalLevelApi.java +++ b/src/main/java/com/adyen/service/management/TerminalSettingsTerminalLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,176 +14,195 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.management.Logo; -import com.adyen.model.management.RestServiceError; import com.adyen.model.management.TerminalSettings; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class TerminalSettingsTerminalLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * Terminal settings - terminal level constructor in {@link com.adyen.service.management package}. - * @param client {@link Client } (required) - */ - public TerminalSettingsTerminalLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * Terminal settings - terminal level constructor in {@link com.adyen.service.management package}. + * + * @param client {@link Client } (required) + */ + public TerminalSettingsTerminalLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } + + /** + * Terminal settings - terminal level constructor in {@link com.adyen.service.management package}. + * Please use this constructor only if you would like to pass along your own url for routing or + * testing purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public TerminalSettingsTerminalLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Get the terminal logo + * + * @param terminalId {@link String } The unique identifier of the payment terminal. (required) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo getTerminalLogo(String terminalId) throws ApiException, IOException { + return getTerminalLogo(terminalId, null); + } + + /** + * Get the terminal logo + * + * @param terminalId {@link String } The unique identifier of the payment terminal. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo getTerminalLogo(String terminalId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (terminalId == null) { + throw new IllegalArgumentException("Please provide the terminalId path parameter"); } - - /** - * Terminal settings - terminal level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public TerminalSettingsTerminalLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; + pathParams.put("terminalId", terminalId); + + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/terminals/{terminalId}/terminalLogos", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return Logo.fromJson(jsonResult); + } + + /** + * Get terminal settings + * + * @param terminalId {@link String } The unique identifier of the payment terminal. (required) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings getTerminalSettings(String terminalId) throws ApiException, IOException { + return getTerminalSettings(terminalId, null); + } + + /** + * Get terminal settings + * + * @param terminalId {@link String } The unique identifier of the payment terminal. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings getTerminalSettings(String terminalId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (terminalId == null) { + throw new IllegalArgumentException("Please provide the terminalId path parameter"); } - - /** - * Get the terminal logo - * - * @param terminalId {@link String } The unique identifier of the payment terminal. (required) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo getTerminalLogo(String terminalId) throws ApiException, IOException { - return getTerminalLogo(terminalId, null); + pathParams.put("terminalId", terminalId); + + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/terminals/{terminalId}/terminalSettings", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TerminalSettings.fromJson(jsonResult); + } + + /** + * Update the logo + * + * @param terminalId {@link String } The unique identifier of the payment terminal. (required) + * @param logo {@link Logo } (required) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo updateLogo(String terminalId, Logo logo) throws ApiException, IOException { + return updateLogo(terminalId, logo, null); + } + + /** + * Update the logo + * + * @param terminalId {@link String } The unique identifier of the payment terminal. (required) + * @param logo {@link Logo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link Logo } + * @throws ApiException if fails to make API call + */ + public Logo updateLogo(String terminalId, Logo logo, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (terminalId == null) { + throw new IllegalArgumentException("Please provide the terminalId path parameter"); } - - /** - * Get the terminal logo - * - * @param terminalId {@link String } The unique identifier of the payment terminal. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo getTerminalLogo(String terminalId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (terminalId == null) { - throw new IllegalArgumentException("Please provide the terminalId path parameter"); - } - pathParams.put("terminalId", terminalId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/terminals/{terminalId}/terminalLogos", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return Logo.fromJson(jsonResult); - } - - /** - * Get terminal settings - * - * @param terminalId {@link String } The unique identifier of the payment terminal. (required) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings getTerminalSettings(String terminalId) throws ApiException, IOException { - return getTerminalSettings(terminalId, null); - } - - /** - * Get terminal settings - * - * @param terminalId {@link String } The unique identifier of the payment terminal. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings getTerminalSettings(String terminalId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (terminalId == null) { - throw new IllegalArgumentException("Please provide the terminalId path parameter"); - } - pathParams.put("terminalId", terminalId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/terminals/{terminalId}/terminalSettings", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TerminalSettings.fromJson(jsonResult); - } - - /** - * Update the logo - * - * @param terminalId {@link String } The unique identifier of the payment terminal. (required) - * @param logo {@link Logo } (required) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo updateLogo(String terminalId, Logo logo) throws ApiException, IOException { - return updateLogo(terminalId, logo, null); - } - - /** - * Update the logo - * - * @param terminalId {@link String } The unique identifier of the payment terminal. (required) - * @param logo {@link Logo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link Logo } - * @throws ApiException if fails to make API call - */ - public Logo updateLogo(String terminalId, Logo logo, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (terminalId == null) { - throw new IllegalArgumentException("Please provide the terminalId path parameter"); - } - pathParams.put("terminalId", terminalId); - - String requestBody = logo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/terminals/{terminalId}/terminalLogos", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return Logo.fromJson(jsonResult); - } - - /** - * Update terminal settings - * - * @param terminalId {@link String } The unique identifier of the payment terminal. (required) - * @param terminalSettings {@link TerminalSettings } (required) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings updateTerminalSettings(String terminalId, TerminalSettings terminalSettings) throws ApiException, IOException { - return updateTerminalSettings(terminalId, terminalSettings, null); - } - - /** - * Update terminal settings - * - * @param terminalId {@link String } The unique identifier of the payment terminal. (required) - * @param terminalSettings {@link TerminalSettings } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TerminalSettings } - * @throws ApiException if fails to make API call - */ - public TerminalSettings updateTerminalSettings(String terminalId, TerminalSettings terminalSettings, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (terminalId == null) { - throw new IllegalArgumentException("Please provide the terminalId path parameter"); - } - pathParams.put("terminalId", terminalId); - - String requestBody = terminalSettings.toJson(); - Resource resource = new Resource(this, this.baseURL + "/terminals/{terminalId}/terminalSettings", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return TerminalSettings.fromJson(jsonResult); + pathParams.put("terminalId", terminalId); + + String requestBody = logo.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/terminals/{terminalId}/terminalLogos", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return Logo.fromJson(jsonResult); + } + + /** + * Update terminal settings + * + * @param terminalId {@link String } The unique identifier of the payment terminal. (required) + * @param terminalSettings {@link TerminalSettings } (required) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings updateTerminalSettings( + String terminalId, TerminalSettings terminalSettings) throws ApiException, IOException { + return updateTerminalSettings(terminalId, terminalSettings, null); + } + + /** + * Update terminal settings + * + * @param terminalId {@link String } The unique identifier of the payment terminal. (required) + * @param terminalSettings {@link TerminalSettings } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TerminalSettings } + * @throws ApiException if fails to make API call + */ + public TerminalSettings updateTerminalSettings( + String terminalId, TerminalSettings terminalSettings, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (terminalId == null) { + throw new IllegalArgumentException("Please provide the terminalId path parameter"); } + pathParams.put("terminalId", terminalId); + + String requestBody = terminalSettings.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/terminals/{terminalId}/terminalSettings", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return TerminalSettings.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/TerminalsTerminalLevelApi.java b/src/main/java/com/adyen/service/management/TerminalsTerminalLevelApi.java index 619cbe6bf..7b877311b 100644 --- a/src/main/java/com/adyen/service/management/TerminalsTerminalLevelApi.java +++ b/src/main/java/com/adyen/service/management/TerminalsTerminalLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,131 +14,163 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.management.ListTerminalsResponse; -import com.adyen.model.management.RestServiceError; import com.adyen.model.management.TerminalReassignmentRequest; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class TerminalsTerminalLevelApi extends Service { - public static final String API_VERSION = "3"; + public static final String API_VERSION = "3"; - protected String baseURL; + protected String baseURL; - /** - * Terminals - terminal level constructor in {@link com.adyen.service.management package}. - * @param client {@link Client } (required) - */ - public TerminalsTerminalLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } + /** + * Terminals - terminal level constructor in {@link com.adyen.service.management package}. + * + * @param client {@link Client } (required) + */ + public TerminalsTerminalLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } - /** - * Terminals - terminal level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public TerminalsTerminalLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Get a list of terminals - * - * @return {@link ListTerminalsResponse } - * @throws ApiException if fails to make API call - */ - public ListTerminalsResponse listTerminals() throws ApiException, IOException { - return listTerminals(null, null, null, null, null, null, null, null, null); - } + /** + * Terminals - terminal level constructor in {@link com.adyen.service.management package}. Please + * use this constructor only if you would like to pass along your own url for routing or testing + * purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public TerminalsTerminalLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Get a list of terminals - * - * @param searchQuery {@link String } Query: Returns terminals with an ID that contains the specified string. If present, other query parameters are ignored. (optional) - * @param otpQuery {@link String } Query: Returns one or more terminals associated with the one-time passwords specified in the request. If this query parameter is used, other query parameters are ignored. (optional) - * @param countries {@link String } Query: Returns terminals located in the countries specified by their [two-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). (optional) - * @param merchantIds {@link String } Query: Returns terminals that belong to the merchant accounts specified by their unique merchant account ID. (optional) - * @param storeIds {@link String } Query: Returns terminals that are assigned to the [stores](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores) specified by their unique store ID. (optional) - * @param brandModels {@link String } Query: Returns terminals of the [models](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/companies/{companyId}/terminalModels) specified in the format *brand.model*. (optional) - * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The default is 20 items on a page. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ListTerminalsResponse } - * @throws ApiException if fails to make API call - */ - public ListTerminalsResponse listTerminals(String searchQuery, String otpQuery, String countries, String merchantIds, String storeIds, String brandModels, Integer pageNumber, Integer pageSize, RequestOptions requestOptions) throws ApiException, IOException { - //Add query params - Map queryParams = new HashMap<>(); - if (searchQuery != null) { - queryParams.put("searchQuery", searchQuery); - } - if (otpQuery != null) { - queryParams.put("otpQuery", otpQuery); - } - if (countries != null) { - queryParams.put("countries", countries); - } - if (merchantIds != null) { - queryParams.put("merchantIds", merchantIds); - } - if (storeIds != null) { - queryParams.put("storeIds", storeIds); - } - if (brandModels != null) { - queryParams.put("brandModels", brandModels); - } - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); - } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); - } + /** + * Get a list of terminals + * + * @return {@link ListTerminalsResponse } + * @throws ApiException if fails to make API call + */ + public ListTerminalsResponse listTerminals() throws ApiException, IOException { + return listTerminals(null, null, null, null, null, null, null, null, null); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/terminals", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); - return ListTerminalsResponse.fromJson(jsonResult); + /** + * Get a list of terminals + * + * @param searchQuery {@link String } Query: Returns terminals with an ID that contains the + * specified string. If present, other query parameters are ignored. (optional) + * @param otpQuery {@link String } Query: Returns one or more terminals associated with the + * one-time passwords specified in the request. If this query parameter is used, other query + * parameters are ignored. (optional) + * @param countries {@link String } Query: Returns terminals located in the countries specified by + * their [two-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). + * (optional) + * @param merchantIds {@link String } Query: Returns terminals that belong to the merchant + * accounts specified by their unique merchant account ID. (optional) + * @param storeIds {@link String } Query: Returns terminals that are assigned to the + * [stores](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores) + * specified by their unique store ID. (optional) + * @param brandModels {@link String } Query: Returns terminals of the + * [models](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/companies/{companyId}/terminalModels) + * specified in the format *brand.model*. (optional) + * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The + * default is 20 items on a page. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ListTerminalsResponse } + * @throws ApiException if fails to make API call + */ + public ListTerminalsResponse listTerminals( + String searchQuery, + String otpQuery, + String countries, + String merchantIds, + String storeIds, + String brandModels, + Integer pageNumber, + Integer pageSize, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add query params + Map queryParams = new HashMap<>(); + if (searchQuery != null) { + queryParams.put("searchQuery", searchQuery); } - - /** - * Reassign a terminal - * - * @param terminalId {@link String } The unique identifier of the payment terminal. (required) - * @param terminalReassignmentRequest {@link TerminalReassignmentRequest } (required) - * @throws ApiException if fails to make API call - */ - public void reassignTerminal(String terminalId, TerminalReassignmentRequest terminalReassignmentRequest) throws ApiException, IOException { - reassignTerminal(terminalId, terminalReassignmentRequest, null); + if (otpQuery != null) { + queryParams.put("otpQuery", otpQuery); + } + if (countries != null) { + queryParams.put("countries", countries); + } + if (merchantIds != null) { + queryParams.put("merchantIds", merchantIds); + } + if (storeIds != null) { + queryParams.put("storeIds", storeIds); + } + if (brandModels != null) { + queryParams.put("brandModels", brandModels); + } + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); + } + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); } - /** - * Reassign a terminal - * - * @param terminalId {@link String } The unique identifier of the payment terminal. (required) - * @param terminalReassignmentRequest {@link TerminalReassignmentRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void reassignTerminal(String terminalId, TerminalReassignmentRequest terminalReassignmentRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (terminalId == null) { - throw new IllegalArgumentException("Please provide the terminalId path parameter"); - } - pathParams.put("terminalId", terminalId); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/terminals", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); + return ListTerminalsResponse.fromJson(jsonResult); + } - String requestBody = terminalReassignmentRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/terminals/{terminalId}/reassign", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + /** + * Reassign a terminal + * + * @param terminalId {@link String } The unique identifier of the payment terminal. (required) + * @param terminalReassignmentRequest {@link TerminalReassignmentRequest } (required) + * @throws ApiException if fails to make API call + */ + public void reassignTerminal( + String terminalId, TerminalReassignmentRequest terminalReassignmentRequest) + throws ApiException, IOException { + reassignTerminal(terminalId, terminalReassignmentRequest, null); + } + + /** + * Reassign a terminal + * + * @param terminalId {@link String } The unique identifier of the payment terminal. (required) + * @param terminalReassignmentRequest {@link TerminalReassignmentRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void reassignTerminal( + String terminalId, + TerminalReassignmentRequest terminalReassignmentRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (terminalId == null) { + throw new IllegalArgumentException("Please provide the terminalId path parameter"); } + pathParams.put("terminalId", terminalId); + + String requestBody = terminalReassignmentRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/terminals/{terminalId}/reassign", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + } } diff --git a/src/main/java/com/adyen/service/management/UsersCompanyLevelApi.java b/src/main/java/com/adyen/service/management/UsersCompanyLevelApi.java index c07b49830..8d96a1d31 100644 --- a/src/main/java/com/adyen/service/management/UsersCompanyLevelApi.java +++ b/src/main/java/com/adyen/service/management/UsersCompanyLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,206 +14,241 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.management.CompanyUser; import com.adyen.model.management.CreateCompanyUserRequest; import com.adyen.model.management.CreateCompanyUserResponse; import com.adyen.model.management.ListCompanyUsersResponse; -import com.adyen.model.management.RestServiceError; import com.adyen.model.management.UpdateCompanyUserRequest; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class UsersCompanyLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * Users - company level constructor in {@link com.adyen.service.management package}. - * @param client {@link Client } (required) - */ - public UsersCompanyLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } - - /** - * Users - company level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public UsersCompanyLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * Users - company level constructor in {@link com.adyen.service.management package}. + * + * @param client {@link Client } (required) + */ + public UsersCompanyLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } + + /** + * Users - company level constructor in {@link com.adyen.service.management package}. Please use + * this constructor only if you would like to pass along your own url for routing or testing + * purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public UsersCompanyLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Create a new user + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param createCompanyUserRequest {@link CreateCompanyUserRequest } (required) + * @return {@link CreateCompanyUserResponse } + * @throws ApiException if fails to make API call + */ + public CreateCompanyUserResponse createNewUser( + String companyId, CreateCompanyUserRequest createCompanyUserRequest) + throws ApiException, IOException { + return createNewUser(companyId, createCompanyUserRequest, null); + } + + /** + * Create a new user + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param createCompanyUserRequest {@link CreateCompanyUserRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link CreateCompanyUserResponse } + * @throws ApiException if fails to make API call + */ + public CreateCompanyUserResponse createNewUser( + String companyId, + CreateCompanyUserRequest createCompanyUserRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } - - /** - * Create a new user - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param createCompanyUserRequest {@link CreateCompanyUserRequest } (required) - * @return {@link CreateCompanyUserResponse } - * @throws ApiException if fails to make API call - */ - public CreateCompanyUserResponse createNewUser(String companyId, CreateCompanyUserRequest createCompanyUserRequest) throws ApiException, IOException { - return createNewUser(companyId, createCompanyUserRequest, null); + pathParams.put("companyId", companyId); + + String requestBody = createCompanyUserRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/users", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return CreateCompanyUserResponse.fromJson(jsonResult); + } + + /** + * Get user details + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param userId {@link String } The unique identifier of the user. (required) + * @return {@link CompanyUser } + * @throws ApiException if fails to make API call + */ + public CompanyUser getUserDetails(String companyId, String userId) + throws ApiException, IOException { + return getUserDetails(companyId, userId, null); + } + + /** + * Get user details + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param userId {@link String } The unique identifier of the user. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link CompanyUser } + * @throws ApiException if fails to make API call + */ + public CompanyUser getUserDetails(String companyId, String userId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } - - /** - * Create a new user - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param createCompanyUserRequest {@link CreateCompanyUserRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link CreateCompanyUserResponse } - * @throws ApiException if fails to make API call - */ - public CreateCompanyUserResponse createNewUser(String companyId, CreateCompanyUserRequest createCompanyUserRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - - String requestBody = createCompanyUserRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/users", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return CreateCompanyUserResponse.fromJson(jsonResult); + pathParams.put("companyId", companyId); + if (userId == null) { + throw new IllegalArgumentException("Please provide the userId path parameter"); } - - /** - * Get user details - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param userId {@link String } The unique identifier of the user. (required) - * @return {@link CompanyUser } - * @throws ApiException if fails to make API call - */ - public CompanyUser getUserDetails(String companyId, String userId) throws ApiException, IOException { - return getUserDetails(companyId, userId, null); + pathParams.put("userId", userId); + + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/companies/{companyId}/users/{userId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return CompanyUser.fromJson(jsonResult); + } + + /** + * Get a list of users + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @return {@link ListCompanyUsersResponse } + * @throws ApiException if fails to make API call + */ + public ListCompanyUsersResponse listUsers(String companyId) throws ApiException, IOException { + return listUsers(companyId, null, null, null, null); + } + + /** + * Get a list of users + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param pageNumber {@link Integer } Query: The number of the page to return. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page. Maximum value is + * **100**. The default is **10** items on a page. (optional) + * @param username {@link String } Query: The partial or complete username to select all users + * that match. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ListCompanyUsersResponse } + * @throws ApiException if fails to make API call + */ + public ListCompanyUsersResponse listUsers( + String companyId, + Integer pageNumber, + Integer pageSize, + String username, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } + pathParams.put("companyId", companyId); - /** - * Get user details - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param userId {@link String } The unique identifier of the user. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link CompanyUser } - * @throws ApiException if fails to make API call - */ - public CompanyUser getUserDetails(String companyId, String userId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - if (userId == null) { - throw new IllegalArgumentException("Please provide the userId path parameter"); - } - pathParams.put("userId", userId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/users/{userId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return CompanyUser.fromJson(jsonResult); + // Add query params + Map queryParams = new HashMap<>(); + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); } - - /** - * Get a list of users - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @return {@link ListCompanyUsersResponse } - * @throws ApiException if fails to make API call - */ - public ListCompanyUsersResponse listUsers(String companyId) throws ApiException, IOException { - return listUsers(companyId, null, null, null, null); + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); } - - /** - * Get a list of users - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param pageNumber {@link Integer } Query: The number of the page to return. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page. Maximum value is **100**. The default is **10** items on a page. (optional) - * @param username {@link String } Query: The partial or complete username to select all users that match. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ListCompanyUsersResponse } - * @throws ApiException if fails to make API call - */ - public ListCompanyUsersResponse listUsers(String companyId, Integer pageNumber, Integer pageSize, String username, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - - //Add query params - Map queryParams = new HashMap<>(); - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); - } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); - } - if (username != null) { - queryParams.put("username", username); - } - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/users", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return ListCompanyUsersResponse.fromJson(jsonResult); + if (username != null) { + queryParams.put("username", username); } - /** - * Update user details - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param userId {@link String } The unique identifier of the user. (required) - * @param updateCompanyUserRequest {@link UpdateCompanyUserRequest } (required) - * @return {@link CompanyUser } - * @throws ApiException if fails to make API call - */ - public CompanyUser updateUserDetails(String companyId, String userId, UpdateCompanyUserRequest updateCompanyUserRequest) throws ApiException, IOException { - return updateUserDetails(companyId, userId, updateCompanyUserRequest, null); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/users", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return ListCompanyUsersResponse.fromJson(jsonResult); + } + + /** + * Update user details + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param userId {@link String } The unique identifier of the user. (required) + * @param updateCompanyUserRequest {@link UpdateCompanyUserRequest } (required) + * @return {@link CompanyUser } + * @throws ApiException if fails to make API call + */ + public CompanyUser updateUserDetails( + String companyId, String userId, UpdateCompanyUserRequest updateCompanyUserRequest) + throws ApiException, IOException { + return updateUserDetails(companyId, userId, updateCompanyUserRequest, null); + } + + /** + * Update user details + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param userId {@link String } The unique identifier of the user. (required) + * @param updateCompanyUserRequest {@link UpdateCompanyUserRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link CompanyUser } + * @throws ApiException if fails to make API call + */ + public CompanyUser updateUserDetails( + String companyId, + String userId, + UpdateCompanyUserRequest updateCompanyUserRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } - - /** - * Update user details - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param userId {@link String } The unique identifier of the user. (required) - * @param updateCompanyUserRequest {@link UpdateCompanyUserRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link CompanyUser } - * @throws ApiException if fails to make API call - */ - public CompanyUser updateUserDetails(String companyId, String userId, UpdateCompanyUserRequest updateCompanyUserRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - if (userId == null) { - throw new IllegalArgumentException("Please provide the userId path parameter"); - } - pathParams.put("userId", userId); - - String requestBody = updateCompanyUserRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/users/{userId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return CompanyUser.fromJson(jsonResult); + pathParams.put("companyId", companyId); + if (userId == null) { + throw new IllegalArgumentException("Please provide the userId path parameter"); } + pathParams.put("userId", userId); + + String requestBody = updateCompanyUserRequest.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/companies/{companyId}/users/{userId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return CompanyUser.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/UsersMerchantLevelApi.java b/src/main/java/com/adyen/service/management/UsersMerchantLevelApi.java index d3c4acc2b..fe5a4e722 100644 --- a/src/main/java/com/adyen/service/management/UsersMerchantLevelApi.java +++ b/src/main/java/com/adyen/service/management/UsersMerchantLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,206 +14,240 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.management.CreateMerchantUserRequest; import com.adyen.model.management.CreateUserResponse; import com.adyen.model.management.ListMerchantUsersResponse; -import com.adyen.model.management.RestServiceError; import com.adyen.model.management.UpdateMerchantUserRequest; import com.adyen.model.management.User; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class UsersMerchantLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; - - /** - * Users - merchant level constructor in {@link com.adyen.service.management package}. - * @param client {@link Client } (required) - */ - public UsersMerchantLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } - - /** - * Users - merchant level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public UsersMerchantLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; + public static final String API_VERSION = "3"; + + protected String baseURL; + + /** + * Users - merchant level constructor in {@link com.adyen.service.management package}. + * + * @param client {@link Client } (required) + */ + public UsersMerchantLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } + + /** + * Users - merchant level constructor in {@link com.adyen.service.management package}. Please use + * this constructor only if you would like to pass along your own url for routing or testing + * purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public UsersMerchantLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Create a new user + * + * @param merchantId {@link String } Unique identifier of the merchant. (required) + * @param createMerchantUserRequest {@link CreateMerchantUserRequest } (required) + * @return {@link CreateUserResponse } + * @throws ApiException if fails to make API call + */ + public CreateUserResponse createNewUser( + String merchantId, CreateMerchantUserRequest createMerchantUserRequest) + throws ApiException, IOException { + return createNewUser(merchantId, createMerchantUserRequest, null); + } + + /** + * Create a new user + * + * @param merchantId {@link String } Unique identifier of the merchant. (required) + * @param createMerchantUserRequest {@link CreateMerchantUserRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link CreateUserResponse } + * @throws ApiException if fails to make API call + */ + public CreateUserResponse createNewUser( + String merchantId, + CreateMerchantUserRequest createMerchantUserRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } - - /** - * Create a new user - * - * @param merchantId {@link String } Unique identifier of the merchant. (required) - * @param createMerchantUserRequest {@link CreateMerchantUserRequest } (required) - * @return {@link CreateUserResponse } - * @throws ApiException if fails to make API call - */ - public CreateUserResponse createNewUser(String merchantId, CreateMerchantUserRequest createMerchantUserRequest) throws ApiException, IOException { - return createNewUser(merchantId, createMerchantUserRequest, null); + pathParams.put("merchantId", merchantId); + + String requestBody = createMerchantUserRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/users", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return CreateUserResponse.fromJson(jsonResult); + } + + /** + * Get user details + * + * @param merchantId {@link String } Unique identifier of the merchant. (required) + * @param userId {@link String } Unique identifier of the user. (required) + * @return {@link User } + * @throws ApiException if fails to make API call + */ + public User getUserDetails(String merchantId, String userId) throws ApiException, IOException { + return getUserDetails(merchantId, userId, null); + } + + /** + * Get user details + * + * @param merchantId {@link String } Unique identifier of the merchant. (required) + * @param userId {@link String } Unique identifier of the user. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link User } + * @throws ApiException if fails to make API call + */ + public User getUserDetails(String merchantId, String userId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } - - /** - * Create a new user - * - * @param merchantId {@link String } Unique identifier of the merchant. (required) - * @param createMerchantUserRequest {@link CreateMerchantUserRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link CreateUserResponse } - * @throws ApiException if fails to make API call - */ - public CreateUserResponse createNewUser(String merchantId, CreateMerchantUserRequest createMerchantUserRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - - String requestBody = createMerchantUserRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/users", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return CreateUserResponse.fromJson(jsonResult); + pathParams.put("merchantId", merchantId); + if (userId == null) { + throw new IllegalArgumentException("Please provide the userId path parameter"); } - - /** - * Get user details - * - * @param merchantId {@link String } Unique identifier of the merchant. (required) - * @param userId {@link String } Unique identifier of the user. (required) - * @return {@link User } - * @throws ApiException if fails to make API call - */ - public User getUserDetails(String merchantId, String userId) throws ApiException, IOException { - return getUserDetails(merchantId, userId, null); + pathParams.put("userId", userId); + + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/merchants/{merchantId}/users/{userId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return User.fromJson(jsonResult); + } + + /** + * Get a list of users + * + * @param merchantId {@link String } Unique identifier of the merchant. (required) + * @return {@link ListMerchantUsersResponse } + * @throws ApiException if fails to make API call + */ + public ListMerchantUsersResponse listUsers(String merchantId) throws ApiException, IOException { + return listUsers(merchantId, null, null, null, null); + } + + /** + * Get a list of users + * + * @param merchantId {@link String } Unique identifier of the merchant. (required) + * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page. Maximum value is + * **100**. The default is **10** items on a page. (optional) + * @param username {@link String } Query: The partial or complete username to select all users + * that match. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ListMerchantUsersResponse } + * @throws ApiException if fails to make API call + */ + public ListMerchantUsersResponse listUsers( + String merchantId, + Integer pageNumber, + Integer pageSize, + String username, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); - /** - * Get user details - * - * @param merchantId {@link String } Unique identifier of the merchant. (required) - * @param userId {@link String } Unique identifier of the user. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link User } - * @throws ApiException if fails to make API call - */ - public User getUserDetails(String merchantId, String userId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (userId == null) { - throw new IllegalArgumentException("Please provide the userId path parameter"); - } - pathParams.put("userId", userId); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/users/{userId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return User.fromJson(jsonResult); + // Add query params + Map queryParams = new HashMap<>(); + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); } - - /** - * Get a list of users - * - * @param merchantId {@link String } Unique identifier of the merchant. (required) - * @return {@link ListMerchantUsersResponse } - * @throws ApiException if fails to make API call - */ - public ListMerchantUsersResponse listUsers(String merchantId) throws ApiException, IOException { - return listUsers(merchantId, null, null, null, null); + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); } - - /** - * Get a list of users - * - * @param merchantId {@link String } Unique identifier of the merchant. (required) - * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page. Maximum value is **100**. The default is **10** items on a page. (optional) - * @param username {@link String } Query: The partial or complete username to select all users that match. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ListMerchantUsersResponse } - * @throws ApiException if fails to make API call - */ - public ListMerchantUsersResponse listUsers(String merchantId, Integer pageNumber, Integer pageSize, String username, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - - //Add query params - Map queryParams = new HashMap<>(); - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); - } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); - } - if (username != null) { - queryParams.put("username", username); - } - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/users", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return ListMerchantUsersResponse.fromJson(jsonResult); + if (username != null) { + queryParams.put("username", username); } - /** - * Update a user - * - * @param merchantId {@link String } Unique identifier of the merchant. (required) - * @param userId {@link String } Unique identifier of the user. (required) - * @param updateMerchantUserRequest {@link UpdateMerchantUserRequest } (required) - * @return {@link User } - * @throws ApiException if fails to make API call - */ - public User updateUser(String merchantId, String userId, UpdateMerchantUserRequest updateMerchantUserRequest) throws ApiException, IOException { - return updateUser(merchantId, userId, updateMerchantUserRequest, null); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/users", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return ListMerchantUsersResponse.fromJson(jsonResult); + } + + /** + * Update a user + * + * @param merchantId {@link String } Unique identifier of the merchant. (required) + * @param userId {@link String } Unique identifier of the user. (required) + * @param updateMerchantUserRequest {@link UpdateMerchantUserRequest } (required) + * @return {@link User } + * @throws ApiException if fails to make API call + */ + public User updateUser( + String merchantId, String userId, UpdateMerchantUserRequest updateMerchantUserRequest) + throws ApiException, IOException { + return updateUser(merchantId, userId, updateMerchantUserRequest, null); + } + + /** + * Update a user + * + * @param merchantId {@link String } Unique identifier of the merchant. (required) + * @param userId {@link String } Unique identifier of the user. (required) + * @param updateMerchantUserRequest {@link UpdateMerchantUserRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link User } + * @throws ApiException if fails to make API call + */ + public User updateUser( + String merchantId, + String userId, + UpdateMerchantUserRequest updateMerchantUserRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } - - /** - * Update a user - * - * @param merchantId {@link String } Unique identifier of the merchant. (required) - * @param userId {@link String } Unique identifier of the user. (required) - * @param updateMerchantUserRequest {@link UpdateMerchantUserRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link User } - * @throws ApiException if fails to make API call - */ - public User updateUser(String merchantId, String userId, UpdateMerchantUserRequest updateMerchantUserRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (userId == null) { - throw new IllegalArgumentException("Please provide the userId path parameter"); - } - pathParams.put("userId", userId); - - String requestBody = updateMerchantUserRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/users/{userId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return User.fromJson(jsonResult); + pathParams.put("merchantId", merchantId); + if (userId == null) { + throw new IllegalArgumentException("Please provide the userId path parameter"); } + pathParams.put("userId", userId); + + String requestBody = updateMerchantUserRequest.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/merchants/{merchantId}/users/{userId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return User.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/WebhooksCompanyLevelApi.java b/src/main/java/com/adyen/service/management/WebhooksCompanyLevelApi.java index 36125628a..793fb3397 100644 --- a/src/main/java/com/adyen/service/management/WebhooksCompanyLevelApi.java +++ b/src/main/java/com/adyen/service/management/WebhooksCompanyLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,320 +14,375 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.management.CreateCompanyWebhookRequest; import com.adyen.model.management.GenerateHmacKeyResponse; import com.adyen.model.management.ListWebhooksResponse; -import com.adyen.model.management.RestServiceError; import com.adyen.model.management.TestCompanyWebhookRequest; import com.adyen.model.management.TestWebhookResponse; import com.adyen.model.management.UpdateCompanyWebhookRequest; import com.adyen.model.management.Webhook; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class WebhooksCompanyLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; + public static final String API_VERSION = "3"; - /** - * Webhooks - company level constructor in {@link com.adyen.service.management package}. - * @param client {@link Client } (required) - */ - public WebhooksCompanyLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } + protected String baseURL; - /** - * Webhooks - company level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public WebhooksCompanyLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Webhooks - company level constructor in {@link com.adyen.service.management package}. + * + * @param client {@link Client } (required) + */ + public WebhooksCompanyLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } - /** - * Generate an HMAC key - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @return {@link GenerateHmacKeyResponse } - * @throws ApiException if fails to make API call - */ - public GenerateHmacKeyResponse generateHmacKey(String companyId, String webhookId) throws ApiException, IOException { - return generateHmacKey(companyId, webhookId, null); - } + /** + * Webhooks - company level constructor in {@link com.adyen.service.management package}. Please + * use this constructor only if you would like to pass along your own url for routing or testing + * purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public WebhooksCompanyLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Generate an HMAC key - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link GenerateHmacKeyResponse } - * @throws ApiException if fails to make API call - */ - public GenerateHmacKeyResponse generateHmacKey(String companyId, String webhookId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - if (webhookId == null) { - throw new IllegalArgumentException("Please provide the webhookId path parameter"); - } - pathParams.put("webhookId", webhookId); + /** + * Generate an HMAC key + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @return {@link GenerateHmacKeyResponse } + * @throws ApiException if fails to make API call + */ + public GenerateHmacKeyResponse generateHmacKey(String companyId, String webhookId) + throws ApiException, IOException { + return generateHmacKey(companyId, webhookId, null); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/webhooks/{webhookId}/generateHmac", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return GenerateHmacKeyResponse.fromJson(jsonResult); + /** + * Generate an HMAC key + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link GenerateHmacKeyResponse } + * @throws ApiException if fails to make API call + */ + public GenerateHmacKeyResponse generateHmacKey( + String companyId, String webhookId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } - - /** - * Get a webhook - * - * @param companyId {@link String } Unique identifier of the [company account](https://docs.adyen.com/account/account-structure#company-account). (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @return {@link Webhook } - * @throws ApiException if fails to make API call - */ - public Webhook getWebhook(String companyId, String webhookId) throws ApiException, IOException { - return getWebhook(companyId, webhookId, null); + pathParams.put("companyId", companyId); + if (webhookId == null) { + throw new IllegalArgumentException("Please provide the webhookId path parameter"); } + pathParams.put("webhookId", webhookId); - /** - * Get a webhook - * - * @param companyId {@link String } Unique identifier of the [company account](https://docs.adyen.com/account/account-structure#company-account). (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link Webhook } - * @throws ApiException if fails to make API call - */ - public Webhook getWebhook(String companyId, String webhookId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - if (webhookId == null) { - throw new IllegalArgumentException("Please provide the webhookId path parameter"); - } - pathParams.put("webhookId", webhookId); + String requestBody = null; + Resource resource = + new Resource( + this, this.baseURL + "/companies/{companyId}/webhooks/{webhookId}/generateHmac", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return GenerateHmacKeyResponse.fromJson(jsonResult); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/webhooks/{webhookId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return Webhook.fromJson(jsonResult); - } + /** + * Get a webhook + * + * @param companyId {@link String } Unique identifier of the [company + * account](https://docs.adyen.com/account/account-structure#company-account). (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @return {@link Webhook } + * @throws ApiException if fails to make API call + */ + public Webhook getWebhook(String companyId, String webhookId) throws ApiException, IOException { + return getWebhook(companyId, webhookId, null); + } - /** - * List all webhooks - * - * @param companyId {@link String } Unique identifier of the [company account](https://docs.adyen.com/account/account-structure#company-account). (required) - * @return {@link ListWebhooksResponse } - * @throws ApiException if fails to make API call - */ - public ListWebhooksResponse listAllWebhooks(String companyId) throws ApiException, IOException { - return listAllWebhooks(companyId, null, null, null); + /** + * Get a webhook + * + * @param companyId {@link String } Unique identifier of the [company + * account](https://docs.adyen.com/account/account-structure#company-account). (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link Webhook } + * @throws ApiException if fails to make API call + */ + public Webhook getWebhook(String companyId, String webhookId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } + pathParams.put("companyId", companyId); + if (webhookId == null) { + throw new IllegalArgumentException("Please provide the webhookId path parameter"); + } + pathParams.put("webhookId", webhookId); - /** - * List all webhooks - * - * @param companyId {@link String } Unique identifier of the [company account](https://docs.adyen.com/account/account-structure#company-account). (required) - * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The default is 10 items on a page. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ListWebhooksResponse } - * @throws ApiException if fails to make API call - */ - public ListWebhooksResponse listAllWebhooks(String companyId, Integer pageNumber, Integer pageSize, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/companies/{companyId}/webhooks/{webhookId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return Webhook.fromJson(jsonResult); + } - //Add query params - Map queryParams = new HashMap<>(); - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); - } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); - } + /** + * List all webhooks + * + * @param companyId {@link String } Unique identifier of the [company + * account](https://docs.adyen.com/account/account-structure#company-account). (required) + * @return {@link ListWebhooksResponse } + * @throws ApiException if fails to make API call + */ + public ListWebhooksResponse listAllWebhooks(String companyId) throws ApiException, IOException { + return listAllWebhooks(companyId, null, null, null); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/webhooks", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return ListWebhooksResponse.fromJson(jsonResult); + /** + * List all webhooks + * + * @param companyId {@link String } Unique identifier of the [company + * account](https://docs.adyen.com/account/account-structure#company-account). (required) + * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The + * default is 10 items on a page. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ListWebhooksResponse } + * @throws ApiException if fails to make API call + */ + public ListWebhooksResponse listAllWebhooks( + String companyId, Integer pageNumber, Integer pageSize, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } + pathParams.put("companyId", companyId); - /** - * Remove a webhook - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @throws ApiException if fails to make API call - */ - public void removeWebhook(String companyId, String webhookId) throws ApiException, IOException { - removeWebhook(companyId, webhookId, null); + // Add query params + Map queryParams = new HashMap<>(); + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); + } + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); } - /** - * Remove a webhook - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void removeWebhook(String companyId, String webhookId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - if (webhookId == null) { - throw new IllegalArgumentException("Please provide the webhookId path parameter"); - } - pathParams.put("webhookId", webhookId); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/webhooks", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return ListWebhooksResponse.fromJson(jsonResult); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/webhooks/{webhookId}", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); - } + /** + * Remove a webhook + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @throws ApiException if fails to make API call + */ + public void removeWebhook(String companyId, String webhookId) throws ApiException, IOException { + removeWebhook(companyId, webhookId, null); + } - /** - * Set up a webhook - * - * @param companyId {@link String } Unique identifier of the [company account](https://docs.adyen.com/account/account-structure#company-account). (required) - * @param createCompanyWebhookRequest {@link CreateCompanyWebhookRequest } (required) - * @return {@link Webhook } - * @throws ApiException if fails to make API call - */ - public Webhook setUpWebhook(String companyId, CreateCompanyWebhookRequest createCompanyWebhookRequest) throws ApiException, IOException { - return setUpWebhook(companyId, createCompanyWebhookRequest, null); + /** + * Remove a webhook + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void removeWebhook(String companyId, String webhookId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } + pathParams.put("companyId", companyId); + if (webhookId == null) { + throw new IllegalArgumentException("Please provide the webhookId path parameter"); + } + pathParams.put("webhookId", webhookId); - /** - * Set up a webhook - * - * @param companyId {@link String } Unique identifier of the [company account](https://docs.adyen.com/account/account-structure#company-account). (required) - * @param createCompanyWebhookRequest {@link CreateCompanyWebhookRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link Webhook } - * @throws ApiException if fails to make API call - */ - public Webhook setUpWebhook(String companyId, CreateCompanyWebhookRequest createCompanyWebhookRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/companies/{companyId}/webhooks/{webhookId}", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); + } - String requestBody = createCompanyWebhookRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/webhooks", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return Webhook.fromJson(jsonResult); - } + /** + * Set up a webhook + * + * @param companyId {@link String } Unique identifier of the [company + * account](https://docs.adyen.com/account/account-structure#company-account). (required) + * @param createCompanyWebhookRequest {@link CreateCompanyWebhookRequest } (required) + * @return {@link Webhook } + * @throws ApiException if fails to make API call + */ + public Webhook setUpWebhook( + String companyId, CreateCompanyWebhookRequest createCompanyWebhookRequest) + throws ApiException, IOException { + return setUpWebhook(companyId, createCompanyWebhookRequest, null); + } - /** - * Test a webhook - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @param testCompanyWebhookRequest {@link TestCompanyWebhookRequest } (required) - * @return {@link TestWebhookResponse } - * @throws ApiException if fails to make API call - */ - public TestWebhookResponse testWebhook(String companyId, String webhookId, TestCompanyWebhookRequest testCompanyWebhookRequest) throws ApiException, IOException { - return testWebhook(companyId, webhookId, testCompanyWebhookRequest, null); + /** + * Set up a webhook + * + * @param companyId {@link String } Unique identifier of the [company + * account](https://docs.adyen.com/account/account-structure#company-account). (required) + * @param createCompanyWebhookRequest {@link CreateCompanyWebhookRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link Webhook } + * @throws ApiException if fails to make API call + */ + public Webhook setUpWebhook( + String companyId, + CreateCompanyWebhookRequest createCompanyWebhookRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } + pathParams.put("companyId", companyId); - /** - * Test a webhook - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @param testCompanyWebhookRequest {@link TestCompanyWebhookRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TestWebhookResponse } - * @throws ApiException if fails to make API call - */ - public TestWebhookResponse testWebhook(String companyId, String webhookId, TestCompanyWebhookRequest testCompanyWebhookRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - if (webhookId == null) { - throw new IllegalArgumentException("Please provide the webhookId path parameter"); - } - pathParams.put("webhookId", webhookId); + String requestBody = createCompanyWebhookRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/webhooks", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return Webhook.fromJson(jsonResult); + } - String requestBody = testCompanyWebhookRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/webhooks/{webhookId}/test", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return TestWebhookResponse.fromJson(jsonResult); - } + /** + * Test a webhook + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @param testCompanyWebhookRequest {@link TestCompanyWebhookRequest } (required) + * @return {@link TestWebhookResponse } + * @throws ApiException if fails to make API call + */ + public TestWebhookResponse testWebhook( + String companyId, String webhookId, TestCompanyWebhookRequest testCompanyWebhookRequest) + throws ApiException, IOException { + return testWebhook(companyId, webhookId, testCompanyWebhookRequest, null); + } - /** - * Update a webhook - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @param updateCompanyWebhookRequest {@link UpdateCompanyWebhookRequest } (required) - * @return {@link Webhook } - * @throws ApiException if fails to make API call - */ - public Webhook updateWebhook(String companyId, String webhookId, UpdateCompanyWebhookRequest updateCompanyWebhookRequest) throws ApiException, IOException { - return updateWebhook(companyId, webhookId, updateCompanyWebhookRequest, null); + /** + * Test a webhook + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @param testCompanyWebhookRequest {@link TestCompanyWebhookRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TestWebhookResponse } + * @throws ApiException if fails to make API call + */ + public TestWebhookResponse testWebhook( + String companyId, + String webhookId, + TestCompanyWebhookRequest testCompanyWebhookRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + if (webhookId == null) { + throw new IllegalArgumentException("Please provide the webhookId path parameter"); } + pathParams.put("webhookId", webhookId); + + String requestBody = testCompanyWebhookRequest.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/companies/{companyId}/webhooks/{webhookId}/test", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return TestWebhookResponse.fromJson(jsonResult); + } - /** - * Update a webhook - * - * @param companyId {@link String } The unique identifier of the company account. (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @param updateCompanyWebhookRequest {@link UpdateCompanyWebhookRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link Webhook } - * @throws ApiException if fails to make API call - */ - public Webhook updateWebhook(String companyId, String webhookId, UpdateCompanyWebhookRequest updateCompanyWebhookRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (companyId == null) { - throw new IllegalArgumentException("Please provide the companyId path parameter"); - } - pathParams.put("companyId", companyId); - if (webhookId == null) { - throw new IllegalArgumentException("Please provide the webhookId path parameter"); - } - pathParams.put("webhookId", webhookId); + /** + * Update a webhook + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @param updateCompanyWebhookRequest {@link UpdateCompanyWebhookRequest } (required) + * @return {@link Webhook } + * @throws ApiException if fails to make API call + */ + public Webhook updateWebhook( + String companyId, String webhookId, UpdateCompanyWebhookRequest updateCompanyWebhookRequest) + throws ApiException, IOException { + return updateWebhook(companyId, webhookId, updateCompanyWebhookRequest, null); + } - String requestBody = updateCompanyWebhookRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/webhooks/{webhookId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return Webhook.fromJson(jsonResult); + /** + * Update a webhook + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @param updateCompanyWebhookRequest {@link UpdateCompanyWebhookRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link Webhook } + * @throws ApiException if fails to make API call + */ + public Webhook updateWebhook( + String companyId, + String webhookId, + UpdateCompanyWebhookRequest updateCompanyWebhookRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); } + pathParams.put("companyId", companyId); + if (webhookId == null) { + throw new IllegalArgumentException("Please provide the webhookId path parameter"); + } + pathParams.put("webhookId", webhookId); + + String requestBody = updateCompanyWebhookRequest.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/companies/{companyId}/webhooks/{webhookId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return Webhook.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/management/WebhooksMerchantLevelApi.java b/src/main/java/com/adyen/service/management/WebhooksMerchantLevelApi.java index 18a21df0a..d8e2f63be 100644 --- a/src/main/java/com/adyen/service/management/WebhooksMerchantLevelApi.java +++ b/src/main/java/com/adyen/service/management/WebhooksMerchantLevelApi.java @@ -2,7 +2,7 @@ * Management API * * The version of the OpenAPI document: 3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,320 +14,372 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.management.CreateMerchantWebhookRequest; import com.adyen.model.management.GenerateHmacKeyResponse; import com.adyen.model.management.ListWebhooksResponse; -import com.adyen.model.management.RestServiceError; import com.adyen.model.management.TestWebhookRequest; import com.adyen.model.management.TestWebhookResponse; import com.adyen.model.management.UpdateMerchantWebhookRequest; import com.adyen.model.management.Webhook; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class WebhooksMerchantLevelApi extends Service { - public static final String API_VERSION = "3"; - - protected String baseURL; + public static final String API_VERSION = "3"; - /** - * Webhooks - merchant level constructor in {@link com.adyen.service.management package}. - * @param client {@link Client } (required) - */ - public WebhooksMerchantLevelApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); - } + protected String baseURL; - /** - * Webhooks - merchant level constructor in {@link com.adyen.service.management package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public WebhooksMerchantLevelApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Webhooks - merchant level constructor in {@link com.adyen.service.management package}. + * + * @param client {@link Client } (required) + */ + public WebhooksMerchantLevelApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-test.adyen.com/v3"); + } - /** - * Generate an HMAC key - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param webhookId {@link String } (required) - * @return {@link GenerateHmacKeyResponse } - * @throws ApiException if fails to make API call - */ - public GenerateHmacKeyResponse generateHmacKey(String merchantId, String webhookId) throws ApiException, IOException { - return generateHmacKey(merchantId, webhookId, null); - } + /** + * Webhooks - merchant level constructor in {@link com.adyen.service.management package}. Please + * use this constructor only if you would like to pass along your own url for routing or testing + * purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public WebhooksMerchantLevelApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Generate an HMAC key - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param webhookId {@link String } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link GenerateHmacKeyResponse } - * @throws ApiException if fails to make API call - */ - public GenerateHmacKeyResponse generateHmacKey(String merchantId, String webhookId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (webhookId == null) { - throw new IllegalArgumentException("Please provide the webhookId path parameter"); - } - pathParams.put("webhookId", webhookId); + /** + * Generate an HMAC key + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param webhookId {@link String } (required) + * @return {@link GenerateHmacKeyResponse } + * @throws ApiException if fails to make API call + */ + public GenerateHmacKeyResponse generateHmacKey(String merchantId, String webhookId) + throws ApiException, IOException { + return generateHmacKey(merchantId, webhookId, null); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/webhooks/{webhookId}/generateHmac", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return GenerateHmacKeyResponse.fromJson(jsonResult); + /** + * Generate an HMAC key + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param webhookId {@link String } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link GenerateHmacKeyResponse } + * @throws ApiException if fails to make API call + */ + public GenerateHmacKeyResponse generateHmacKey( + String merchantId, String webhookId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } - - /** - * Get a webhook - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @return {@link Webhook } - * @throws ApiException if fails to make API call - */ - public Webhook getWebhook(String merchantId, String webhookId) throws ApiException, IOException { - return getWebhook(merchantId, webhookId, null); + pathParams.put("merchantId", merchantId); + if (webhookId == null) { + throw new IllegalArgumentException("Please provide the webhookId path parameter"); } + pathParams.put("webhookId", webhookId); - /** - * Get a webhook - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link Webhook } - * @throws ApiException if fails to make API call - */ - public Webhook getWebhook(String merchantId, String webhookId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (webhookId == null) { - throw new IllegalArgumentException("Please provide the webhookId path parameter"); - } - pathParams.put("webhookId", webhookId); + String requestBody = null; + Resource resource = + new Resource( + this, this.baseURL + "/merchants/{merchantId}/webhooks/{webhookId}/generateHmac", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return GenerateHmacKeyResponse.fromJson(jsonResult); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/webhooks/{webhookId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return Webhook.fromJson(jsonResult); - } + /** + * Get a webhook + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @return {@link Webhook } + * @throws ApiException if fails to make API call + */ + public Webhook getWebhook(String merchantId, String webhookId) throws ApiException, IOException { + return getWebhook(merchantId, webhookId, null); + } - /** - * List all webhooks - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @return {@link ListWebhooksResponse } - * @throws ApiException if fails to make API call - */ - public ListWebhooksResponse listAllWebhooks(String merchantId) throws ApiException, IOException { - return listAllWebhooks(merchantId, null, null, null); + /** + * Get a webhook + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link Webhook } + * @throws ApiException if fails to make API call + */ + public Webhook getWebhook(String merchantId, String webhookId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); + if (webhookId == null) { + throw new IllegalArgumentException("Please provide the webhookId path parameter"); + } + pathParams.put("webhookId", webhookId); - /** - * List all webhooks - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) - * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The default is 10 items on a page. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ListWebhooksResponse } - * @throws ApiException if fails to make API call - */ - public ListWebhooksResponse listAllWebhooks(String merchantId, Integer pageNumber, Integer pageSize, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/merchants/{merchantId}/webhooks/{webhookId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return Webhook.fromJson(jsonResult); + } - //Add query params - Map queryParams = new HashMap<>(); - if (pageNumber != null) { - queryParams.put("pageNumber", pageNumber.toString()); - } - if (pageSize != null) { - queryParams.put("pageSize", pageSize.toString()); - } + /** + * List all webhooks + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @return {@link ListWebhooksResponse } + * @throws ApiException if fails to make API call + */ + public ListWebhooksResponse listAllWebhooks(String merchantId) throws ApiException, IOException { + return listAllWebhooks(merchantId, null, null, null); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/webhooks", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return ListWebhooksResponse.fromJson(jsonResult); + /** + * List all webhooks + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param pageNumber {@link Integer } Query: The number of the page to fetch. (optional) + * @param pageSize {@link Integer } Query: The number of items to have on a page, maximum 100. The + * default is 10 items on a page. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ListWebhooksResponse } + * @throws ApiException if fails to make API call + */ + public ListWebhooksResponse listAllWebhooks( + String merchantId, Integer pageNumber, Integer pageSize, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); - /** - * Remove a webhook - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @throws ApiException if fails to make API call - */ - public void removeWebhook(String merchantId, String webhookId) throws ApiException, IOException { - removeWebhook(merchantId, webhookId, null); + // Add query params + Map queryParams = new HashMap<>(); + if (pageNumber != null) { + queryParams.put("pageNumber", pageNumber.toString()); + } + if (pageSize != null) { + queryParams.put("pageSize", pageSize.toString()); } - /** - * Remove a webhook - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void removeWebhook(String merchantId, String webhookId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (webhookId == null) { - throw new IllegalArgumentException("Please provide the webhookId path parameter"); - } - pathParams.put("webhookId", webhookId); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/webhooks", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return ListWebhooksResponse.fromJson(jsonResult); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/webhooks/{webhookId}", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); - } + /** + * Remove a webhook + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @throws ApiException if fails to make API call + */ + public void removeWebhook(String merchantId, String webhookId) throws ApiException, IOException { + removeWebhook(merchantId, webhookId, null); + } - /** - * Set up a webhook - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param createMerchantWebhookRequest {@link CreateMerchantWebhookRequest } (required) - * @return {@link Webhook } - * @throws ApiException if fails to make API call - */ - public Webhook setUpWebhook(String merchantId, CreateMerchantWebhookRequest createMerchantWebhookRequest) throws ApiException, IOException { - return setUpWebhook(merchantId, createMerchantWebhookRequest, null); + /** + * Remove a webhook + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void removeWebhook(String merchantId, String webhookId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); + if (webhookId == null) { + throw new IllegalArgumentException("Please provide the webhookId path parameter"); + } + pathParams.put("webhookId", webhookId); - /** - * Set up a webhook - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param createMerchantWebhookRequest {@link CreateMerchantWebhookRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link Webhook } - * @throws ApiException if fails to make API call - */ - public Webhook setUpWebhook(String merchantId, CreateMerchantWebhookRequest createMerchantWebhookRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/merchants/{merchantId}/webhooks/{webhookId}", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.DELETE, pathParams); + } - String requestBody = createMerchantWebhookRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/webhooks", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return Webhook.fromJson(jsonResult); - } + /** + * Set up a webhook + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param createMerchantWebhookRequest {@link CreateMerchantWebhookRequest } (required) + * @return {@link Webhook } + * @throws ApiException if fails to make API call + */ + public Webhook setUpWebhook( + String merchantId, CreateMerchantWebhookRequest createMerchantWebhookRequest) + throws ApiException, IOException { + return setUpWebhook(merchantId, createMerchantWebhookRequest, null); + } - /** - * Test a webhook - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @param testWebhookRequest {@link TestWebhookRequest } (required) - * @return {@link TestWebhookResponse } - * @throws ApiException if fails to make API call - */ - public TestWebhookResponse testWebhook(String merchantId, String webhookId, TestWebhookRequest testWebhookRequest) throws ApiException, IOException { - return testWebhook(merchantId, webhookId, testWebhookRequest, null); + /** + * Set up a webhook + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param createMerchantWebhookRequest {@link CreateMerchantWebhookRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link Webhook } + * @throws ApiException if fails to make API call + */ + public Webhook setUpWebhook( + String merchantId, + CreateMerchantWebhookRequest createMerchantWebhookRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); - /** - * Test a webhook - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @param testWebhookRequest {@link TestWebhookRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TestWebhookResponse } - * @throws ApiException if fails to make API call - */ - public TestWebhookResponse testWebhook(String merchantId, String webhookId, TestWebhookRequest testWebhookRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (webhookId == null) { - throw new IllegalArgumentException("Please provide the webhookId path parameter"); - } - pathParams.put("webhookId", webhookId); + String requestBody = createMerchantWebhookRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/webhooks", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return Webhook.fromJson(jsonResult); + } - String requestBody = testWebhookRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/webhooks/{webhookId}/test", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return TestWebhookResponse.fromJson(jsonResult); - } + /** + * Test a webhook + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @param testWebhookRequest {@link TestWebhookRequest } (required) + * @return {@link TestWebhookResponse } + * @throws ApiException if fails to make API call + */ + public TestWebhookResponse testWebhook( + String merchantId, String webhookId, TestWebhookRequest testWebhookRequest) + throws ApiException, IOException { + return testWebhook(merchantId, webhookId, testWebhookRequest, null); + } - /** - * Update a webhook - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @param updateMerchantWebhookRequest {@link UpdateMerchantWebhookRequest } (required) - * @return {@link Webhook } - * @throws ApiException if fails to make API call - */ - public Webhook updateWebhook(String merchantId, String webhookId, UpdateMerchantWebhookRequest updateMerchantWebhookRequest) throws ApiException, IOException { - return updateWebhook(merchantId, webhookId, updateMerchantWebhookRequest, null); + /** + * Test a webhook + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @param testWebhookRequest {@link TestWebhookRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TestWebhookResponse } + * @throws ApiException if fails to make API call + */ + public TestWebhookResponse testWebhook( + String merchantId, + String webhookId, + TestWebhookRequest testWebhookRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); + } + pathParams.put("merchantId", merchantId); + if (webhookId == null) { + throw new IllegalArgumentException("Please provide the webhookId path parameter"); } + pathParams.put("webhookId", webhookId); + + String requestBody = testWebhookRequest.toJson(); + Resource resource = + new Resource( + this, this.baseURL + "/merchants/{merchantId}/webhooks/{webhookId}/test", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return TestWebhookResponse.fromJson(jsonResult); + } - /** - * Update a webhook - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) - * @param updateMerchantWebhookRequest {@link UpdateMerchantWebhookRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link Webhook } - * @throws ApiException if fails to make API call - */ - public Webhook updateWebhook(String merchantId, String webhookId, UpdateMerchantWebhookRequest updateMerchantWebhookRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (webhookId == null) { - throw new IllegalArgumentException("Please provide the webhookId path parameter"); - } - pathParams.put("webhookId", webhookId); + /** + * Update a webhook + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @param updateMerchantWebhookRequest {@link UpdateMerchantWebhookRequest } (required) + * @return {@link Webhook } + * @throws ApiException if fails to make API call + */ + public Webhook updateWebhook( + String merchantId, + String webhookId, + UpdateMerchantWebhookRequest updateMerchantWebhookRequest) + throws ApiException, IOException { + return updateWebhook(merchantId, webhookId, updateMerchantWebhookRequest, null); + } - String requestBody = updateMerchantWebhookRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/webhooks/{webhookId}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); - return Webhook.fromJson(jsonResult); + /** + * Update a webhook + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param webhookId {@link String } Unique identifier of the webhook configuration. (required) + * @param updateMerchantWebhookRequest {@link UpdateMerchantWebhookRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link Webhook } + * @throws ApiException if fails to make API call + */ + public Webhook updateWebhook( + String merchantId, + String webhookId, + UpdateMerchantWebhookRequest updateMerchantWebhookRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); + if (webhookId == null) { + throw new IllegalArgumentException("Please provide the webhookId path parameter"); + } + pathParams.put("webhookId", webhookId); + + String requestBody = updateMerchantWebhookRequest.toJson(); + Resource resource = + new Resource(this, this.baseURL + "/merchants/{merchantId}/webhooks/{webhookId}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return Webhook.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/payment/ModificationsApi.java b/src/main/java/com/adyen/service/payment/ModificationsApi.java index bfb89a9b1..2d039f002 100644 --- a/src/main/java/com/adyen/service/payment/ModificationsApi.java +++ b/src/main/java/com/adyen/service/payment/ModificationsApi.java @@ -2,7 +2,7 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,6 +14,7 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.payment.AdjustAuthorisationRequest; import com.adyen.model.payment.CancelOrRefundRequest; import com.adyen.model.payment.CancelRequest; @@ -21,252 +22,284 @@ import com.adyen.model.payment.DonationRequest; import com.adyen.model.payment.ModificationResult; import com.adyen.model.payment.RefundRequest; -import com.adyen.model.payment.ServiceError; import com.adyen.model.payment.TechnicalCancelRequest; import com.adyen.model.payment.VoidPendingRefundRequest; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; -import java.util.HashMap; -import java.util.Map; public class ModificationsApi extends Service { - public static final String API_VERSION = "68"; + public static final String API_VERSION = "68"; - protected String baseURL; + protected String baseURL; - /** - * Modifications constructor in {@link com.adyen.service.payment package}. - * @param client {@link Client } (required) - */ - public ModificationsApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/Payment/v68"); - } + /** + * Modifications constructor in {@link com.adyen.service.payment package}. + * + * @param client {@link Client } (required) + */ + public ModificationsApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/Payment/v68"); + } - /** - * Modifications constructor in {@link com.adyen.service.payment package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public ModificationsApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Modifications constructor in {@link com.adyen.service.payment package}. Please use this + * constructor only if you would like to pass along your own url for routing or testing purposes. + * The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public ModificationsApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Change the authorised amount - * - * @param adjustAuthorisationRequest {@link AdjustAuthorisationRequest } (required) - * @return {@link ModificationResult } - * @throws ApiException if fails to make API call - */ - public ModificationResult adjustAuthorisation(AdjustAuthorisationRequest adjustAuthorisationRequest) throws ApiException, IOException { - return adjustAuthorisation(adjustAuthorisationRequest, null); - } + /** + * Change the authorised amount + * + * @param adjustAuthorisationRequest {@link AdjustAuthorisationRequest } (required) + * @return {@link ModificationResult } + * @throws ApiException if fails to make API call + */ + public ModificationResult adjustAuthorisation( + AdjustAuthorisationRequest adjustAuthorisationRequest) throws ApiException, IOException { + return adjustAuthorisation(adjustAuthorisationRequest, null); + } - /** - * Change the authorised amount - * - * @param adjustAuthorisationRequest {@link AdjustAuthorisationRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ModificationResult } - * @throws ApiException if fails to make API call - */ - public ModificationResult adjustAuthorisation(AdjustAuthorisationRequest adjustAuthorisationRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = adjustAuthorisationRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/adjustAuthorisation", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return ModificationResult.fromJson(jsonResult); - } + /** + * Change the authorised amount + * + * @param adjustAuthorisationRequest {@link AdjustAuthorisationRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ModificationResult } + * @throws ApiException if fails to make API call + */ + public ModificationResult adjustAuthorisation( + AdjustAuthorisationRequest adjustAuthorisationRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = adjustAuthorisationRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/adjustAuthorisation", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return ModificationResult.fromJson(jsonResult); + } - /** - * Cancel an authorisation - * - * @param cancelRequest {@link CancelRequest } (required) - * @return {@link ModificationResult } - * @throws ApiException if fails to make API call - */ - public ModificationResult cancel(CancelRequest cancelRequest) throws ApiException, IOException { - return cancel(cancelRequest, null); - } + /** + * Cancel an authorisation + * + * @param cancelRequest {@link CancelRequest } (required) + * @return {@link ModificationResult } + * @throws ApiException if fails to make API call + */ + public ModificationResult cancel(CancelRequest cancelRequest) throws ApiException, IOException { + return cancel(cancelRequest, null); + } - /** - * Cancel an authorisation - * - * @param cancelRequest {@link CancelRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ModificationResult } - * @throws ApiException if fails to make API call - */ - public ModificationResult cancel(CancelRequest cancelRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = cancelRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/cancel", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return ModificationResult.fromJson(jsonResult); - } + /** + * Cancel an authorisation + * + * @param cancelRequest {@link CancelRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ModificationResult } + * @throws ApiException if fails to make API call + */ + public ModificationResult cancel(CancelRequest cancelRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = cancelRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/cancel", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return ModificationResult.fromJson(jsonResult); + } - /** - * Cancel or refund a payment - * - * @param cancelOrRefundRequest {@link CancelOrRefundRequest } (required) - * @return {@link ModificationResult } - * @throws ApiException if fails to make API call - */ - public ModificationResult cancelOrRefund(CancelOrRefundRequest cancelOrRefundRequest) throws ApiException, IOException { - return cancelOrRefund(cancelOrRefundRequest, null); - } + /** + * Cancel or refund a payment + * + * @param cancelOrRefundRequest {@link CancelOrRefundRequest } (required) + * @return {@link ModificationResult } + * @throws ApiException if fails to make API call + */ + public ModificationResult cancelOrRefund(CancelOrRefundRequest cancelOrRefundRequest) + throws ApiException, IOException { + return cancelOrRefund(cancelOrRefundRequest, null); + } - /** - * Cancel or refund a payment - * - * @param cancelOrRefundRequest {@link CancelOrRefundRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ModificationResult } - * @throws ApiException if fails to make API call - */ - public ModificationResult cancelOrRefund(CancelOrRefundRequest cancelOrRefundRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = cancelOrRefundRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/cancelOrRefund", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return ModificationResult.fromJson(jsonResult); - } + /** + * Cancel or refund a payment + * + * @param cancelOrRefundRequest {@link CancelOrRefundRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ModificationResult } + * @throws ApiException if fails to make API call + */ + public ModificationResult cancelOrRefund( + CancelOrRefundRequest cancelOrRefundRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = cancelOrRefundRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/cancelOrRefund", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return ModificationResult.fromJson(jsonResult); + } - /** - * Capture an authorisation - * - * @param captureRequest {@link CaptureRequest } (required) - * @return {@link ModificationResult } - * @throws ApiException if fails to make API call - */ - public ModificationResult capture(CaptureRequest captureRequest) throws ApiException, IOException { - return capture(captureRequest, null); - } + /** + * Capture an authorisation + * + * @param captureRequest {@link CaptureRequest } (required) + * @return {@link ModificationResult } + * @throws ApiException if fails to make API call + */ + public ModificationResult capture(CaptureRequest captureRequest) + throws ApiException, IOException { + return capture(captureRequest, null); + } - /** - * Capture an authorisation - * - * @param captureRequest {@link CaptureRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ModificationResult } - * @throws ApiException if fails to make API call - */ - public ModificationResult capture(CaptureRequest captureRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = captureRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/capture", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return ModificationResult.fromJson(jsonResult); - } + /** + * Capture an authorisation + * + * @param captureRequest {@link CaptureRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ModificationResult } + * @throws ApiException if fails to make API call + */ + public ModificationResult capture(CaptureRequest captureRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = captureRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/capture", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return ModificationResult.fromJson(jsonResult); + } - /** - * Create a donation - * - * @param donationRequest {@link DonationRequest } (required) - * @return {@link ModificationResult } - * @throws ApiException if fails to make API call - * @deprecated - */ - @Deprecated - public ModificationResult donate(DonationRequest donationRequest) throws ApiException, IOException { - return donate(donationRequest, null); - } + /** + * Create a donation + * + * @param donationRequest {@link DonationRequest } (required) + * @return {@link ModificationResult } + * @throws ApiException if fails to make API call + * @deprecated + */ + @Deprecated + public ModificationResult donate(DonationRequest donationRequest) + throws ApiException, IOException { + return donate(donationRequest, null); + } - /** - * Create a donation - * - * @param donationRequest {@link DonationRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ModificationResult } - * @throws ApiException if fails to make API call - * @deprecated - */ - @Deprecated - public ModificationResult donate(DonationRequest donationRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = donationRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/donate", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return ModificationResult.fromJson(jsonResult); - } + /** + * Create a donation + * + * @param donationRequest {@link DonationRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ModificationResult } + * @throws ApiException if fails to make API call + * @deprecated + */ + @Deprecated + public ModificationResult donate(DonationRequest donationRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = donationRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/donate", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return ModificationResult.fromJson(jsonResult); + } - /** - * Refund a captured payment - * - * @param refundRequest {@link RefundRequest } (required) - * @return {@link ModificationResult } - * @throws ApiException if fails to make API call - */ - public ModificationResult refund(RefundRequest refundRequest) throws ApiException, IOException { - return refund(refundRequest, null); - } + /** + * Refund a captured payment + * + * @param refundRequest {@link RefundRequest } (required) + * @return {@link ModificationResult } + * @throws ApiException if fails to make API call + */ + public ModificationResult refund(RefundRequest refundRequest) throws ApiException, IOException { + return refund(refundRequest, null); + } - /** - * Refund a captured payment - * - * @param refundRequest {@link RefundRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ModificationResult } - * @throws ApiException if fails to make API call - */ - public ModificationResult refund(RefundRequest refundRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = refundRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/refund", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return ModificationResult.fromJson(jsonResult); - } + /** + * Refund a captured payment + * + * @param refundRequest {@link RefundRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ModificationResult } + * @throws ApiException if fails to make API call + */ + public ModificationResult refund(RefundRequest refundRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = refundRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/refund", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return ModificationResult.fromJson(jsonResult); + } - /** - * Cancel an authorisation using your reference - * - * @param technicalCancelRequest {@link TechnicalCancelRequest } (required) - * @return {@link ModificationResult } - * @throws ApiException if fails to make API call - */ - public ModificationResult technicalCancel(TechnicalCancelRequest technicalCancelRequest) throws ApiException, IOException { - return technicalCancel(technicalCancelRequest, null); - } + /** + * Cancel an authorisation using your reference + * + * @param technicalCancelRequest {@link TechnicalCancelRequest } (required) + * @return {@link ModificationResult } + * @throws ApiException if fails to make API call + */ + public ModificationResult technicalCancel(TechnicalCancelRequest technicalCancelRequest) + throws ApiException, IOException { + return technicalCancel(technicalCancelRequest, null); + } - /** - * Cancel an authorisation using your reference - * - * @param technicalCancelRequest {@link TechnicalCancelRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ModificationResult } - * @throws ApiException if fails to make API call - */ - public ModificationResult technicalCancel(TechnicalCancelRequest technicalCancelRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = technicalCancelRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/technicalCancel", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return ModificationResult.fromJson(jsonResult); - } + /** + * Cancel an authorisation using your reference + * + * @param technicalCancelRequest {@link TechnicalCancelRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ModificationResult } + * @throws ApiException if fails to make API call + */ + public ModificationResult technicalCancel( + TechnicalCancelRequest technicalCancelRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = technicalCancelRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/technicalCancel", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return ModificationResult.fromJson(jsonResult); + } - /** - * Cancel an in-person refund - * - * @param voidPendingRefundRequest {@link VoidPendingRefundRequest } (required) - * @return {@link ModificationResult } - * @throws ApiException if fails to make API call - */ - public ModificationResult voidPendingRefund(VoidPendingRefundRequest voidPendingRefundRequest) throws ApiException, IOException { - return voidPendingRefund(voidPendingRefundRequest, null); - } + /** + * Cancel an in-person refund + * + * @param voidPendingRefundRequest {@link VoidPendingRefundRequest } (required) + * @return {@link ModificationResult } + * @throws ApiException if fails to make API call + */ + public ModificationResult voidPendingRefund(VoidPendingRefundRequest voidPendingRefundRequest) + throws ApiException, IOException { + return voidPendingRefund(voidPendingRefundRequest, null); + } - /** - * Cancel an in-person refund - * - * @param voidPendingRefundRequest {@link VoidPendingRefundRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ModificationResult } - * @throws ApiException if fails to make API call - */ - public ModificationResult voidPendingRefund(VoidPendingRefundRequest voidPendingRefundRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = voidPendingRefundRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/voidPendingRefund", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return ModificationResult.fromJson(jsonResult); - } + /** + * Cancel an in-person refund + * + * @param voidPendingRefundRequest {@link VoidPendingRefundRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ModificationResult } + * @throws ApiException if fails to make API call + */ + public ModificationResult voidPendingRefund( + VoidPendingRefundRequest voidPendingRefundRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = voidPendingRefundRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/voidPendingRefund", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return ModificationResult.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/payment/PaymentsApi.java b/src/main/java/com/adyen/service/payment/PaymentsApi.java index 72f8bb256..1c6749d78 100644 --- a/src/main/java/com/adyen/service/payment/PaymentsApi.java +++ b/src/main/java/com/adyen/service/payment/PaymentsApi.java @@ -2,7 +2,7 @@ * Adyen Payment API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,176 +14,197 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.payment.AuthenticationResultRequest; import com.adyen.model.payment.AuthenticationResultResponse; import com.adyen.model.payment.PaymentRequest; import com.adyen.model.payment.PaymentRequest3d; import com.adyen.model.payment.PaymentRequest3ds2; import com.adyen.model.payment.PaymentResult; -import com.adyen.model.payment.ServiceError; import com.adyen.model.payment.ThreeDS2ResultRequest; import com.adyen.model.payment.ThreeDS2ResultResponse; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; -import java.util.HashMap; -import java.util.Map; public class PaymentsApi extends Service { - public static final String API_VERSION = "68"; - - protected String baseURL; - - /** - * Payments constructor in {@link com.adyen.service.payment package}. - * @param client {@link Client } (required) - */ - public PaymentsApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/Payment/v68"); - } - - /** - * Payments constructor in {@link com.adyen.service.payment package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public PaymentsApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Create an authorisation - * - * @param paymentRequest {@link PaymentRequest } (required) - * @return {@link PaymentResult } - * @throws ApiException if fails to make API call - */ - public PaymentResult authorise(PaymentRequest paymentRequest) throws ApiException, IOException { - return authorise(paymentRequest, null); - } - - /** - * Create an authorisation - * - * @param paymentRequest {@link PaymentRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PaymentResult } - * @throws ApiException if fails to make API call - */ - public PaymentResult authorise(PaymentRequest paymentRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = paymentRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/authorise", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return PaymentResult.fromJson(jsonResult); - } - - /** - * Complete a 3DS authorisation - * - * @param paymentRequest3d {@link PaymentRequest3d } (required) - * @return {@link PaymentResult } - * @throws ApiException if fails to make API call - */ - public PaymentResult authorise3d(PaymentRequest3d paymentRequest3d) throws ApiException, IOException { - return authorise3d(paymentRequest3d, null); - } - - /** - * Complete a 3DS authorisation - * - * @param paymentRequest3d {@link PaymentRequest3d } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PaymentResult } - * @throws ApiException if fails to make API call - */ - public PaymentResult authorise3d(PaymentRequest3d paymentRequest3d, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = paymentRequest3d.toJson(); - Resource resource = new Resource(this, this.baseURL + "/authorise3d", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return PaymentResult.fromJson(jsonResult); - } - - /** - * Complete a 3DS2 authorisation - * - * @param paymentRequest3ds2 {@link PaymentRequest3ds2 } (required) - * @return {@link PaymentResult } - * @throws ApiException if fails to make API call - */ - public PaymentResult authorise3ds2(PaymentRequest3ds2 paymentRequest3ds2) throws ApiException, IOException { - return authorise3ds2(paymentRequest3ds2, null); - } - - /** - * Complete a 3DS2 authorisation - * - * @param paymentRequest3ds2 {@link PaymentRequest3ds2 } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PaymentResult } - * @throws ApiException if fails to make API call - */ - public PaymentResult authorise3ds2(PaymentRequest3ds2 paymentRequest3ds2, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = paymentRequest3ds2.toJson(); - Resource resource = new Resource(this, this.baseURL + "/authorise3ds2", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return PaymentResult.fromJson(jsonResult); - } - - /** - * Get the 3DS authentication result - * - * @param authenticationResultRequest {@link AuthenticationResultRequest } (required) - * @return {@link AuthenticationResultResponse } - * @throws ApiException if fails to make API call - */ - public AuthenticationResultResponse getAuthenticationResult(AuthenticationResultRequest authenticationResultRequest) throws ApiException, IOException { - return getAuthenticationResult(authenticationResultRequest, null); - } - - /** - * Get the 3DS authentication result - * - * @param authenticationResultRequest {@link AuthenticationResultRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link AuthenticationResultResponse } - * @throws ApiException if fails to make API call - */ - public AuthenticationResultResponse getAuthenticationResult(AuthenticationResultRequest authenticationResultRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = authenticationResultRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/getAuthenticationResult", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return AuthenticationResultResponse.fromJson(jsonResult); - } - - /** - * Get the 3DS2 authentication result - * - * @param threeDS2ResultRequest {@link ThreeDS2ResultRequest } (required) - * @return {@link ThreeDS2ResultResponse } - * @throws ApiException if fails to make API call - */ - public ThreeDS2ResultResponse retrieve3ds2Result(ThreeDS2ResultRequest threeDS2ResultRequest) throws ApiException, IOException { - return retrieve3ds2Result(threeDS2ResultRequest, null); - } - - /** - * Get the 3DS2 authentication result - * - * @param threeDS2ResultRequest {@link ThreeDS2ResultRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ThreeDS2ResultResponse } - * @throws ApiException if fails to make API call - */ - public ThreeDS2ResultResponse retrieve3ds2Result(ThreeDS2ResultRequest threeDS2ResultRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = threeDS2ResultRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/retrieve3ds2Result", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return ThreeDS2ResultResponse.fromJson(jsonResult); - } + public static final String API_VERSION = "68"; + + protected String baseURL; + + /** + * Payments constructor in {@link com.adyen.service.payment package}. + * + * @param client {@link Client } (required) + */ + public PaymentsApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/Payment/v68"); + } + + /** + * Payments constructor in {@link com.adyen.service.payment package}. Please use this constructor + * only if you would like to pass along your own url for routing or testing purposes. The latest + * API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public PaymentsApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Create an authorisation + * + * @param paymentRequest {@link PaymentRequest } (required) + * @return {@link PaymentResult } + * @throws ApiException if fails to make API call + */ + public PaymentResult authorise(PaymentRequest paymentRequest) throws ApiException, IOException { + return authorise(paymentRequest, null); + } + + /** + * Create an authorisation + * + * @param paymentRequest {@link PaymentRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PaymentResult } + * @throws ApiException if fails to make API call + */ + public PaymentResult authorise(PaymentRequest paymentRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = paymentRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/authorise", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return PaymentResult.fromJson(jsonResult); + } + + /** + * Complete a 3DS authorisation + * + * @param paymentRequest3d {@link PaymentRequest3d } (required) + * @return {@link PaymentResult } + * @throws ApiException if fails to make API call + */ + public PaymentResult authorise3d(PaymentRequest3d paymentRequest3d) + throws ApiException, IOException { + return authorise3d(paymentRequest3d, null); + } + + /** + * Complete a 3DS authorisation + * + * @param paymentRequest3d {@link PaymentRequest3d } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PaymentResult } + * @throws ApiException if fails to make API call + */ + public PaymentResult authorise3d(PaymentRequest3d paymentRequest3d, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = paymentRequest3d.toJson(); + Resource resource = new Resource(this, this.baseURL + "/authorise3d", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return PaymentResult.fromJson(jsonResult); + } + + /** + * Complete a 3DS2 authorisation + * + * @param paymentRequest3ds2 {@link PaymentRequest3ds2 } (required) + * @return {@link PaymentResult } + * @throws ApiException if fails to make API call + */ + public PaymentResult authorise3ds2(PaymentRequest3ds2 paymentRequest3ds2) + throws ApiException, IOException { + return authorise3ds2(paymentRequest3ds2, null); + } + + /** + * Complete a 3DS2 authorisation + * + * @param paymentRequest3ds2 {@link PaymentRequest3ds2 } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PaymentResult } + * @throws ApiException if fails to make API call + */ + public PaymentResult authorise3ds2( + PaymentRequest3ds2 paymentRequest3ds2, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = paymentRequest3ds2.toJson(); + Resource resource = new Resource(this, this.baseURL + "/authorise3ds2", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return PaymentResult.fromJson(jsonResult); + } + + /** + * Get the 3DS authentication result + * + * @param authenticationResultRequest {@link AuthenticationResultRequest } (required) + * @return {@link AuthenticationResultResponse } + * @throws ApiException if fails to make API call + */ + public AuthenticationResultResponse getAuthenticationResult( + AuthenticationResultRequest authenticationResultRequest) throws ApiException, IOException { + return getAuthenticationResult(authenticationResultRequest, null); + } + + /** + * Get the 3DS authentication result + * + * @param authenticationResultRequest {@link AuthenticationResultRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link AuthenticationResultResponse } + * @throws ApiException if fails to make API call + */ + public AuthenticationResultResponse getAuthenticationResult( + AuthenticationResultRequest authenticationResultRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = authenticationResultRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/getAuthenticationResult", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return AuthenticationResultResponse.fromJson(jsonResult); + } + + /** + * Get the 3DS2 authentication result + * + * @param threeDS2ResultRequest {@link ThreeDS2ResultRequest } (required) + * @return {@link ThreeDS2ResultResponse } + * @throws ApiException if fails to make API call + */ + public ThreeDS2ResultResponse retrieve3ds2Result(ThreeDS2ResultRequest threeDS2ResultRequest) + throws ApiException, IOException { + return retrieve3ds2Result(threeDS2ResultRequest, null); + } + + /** + * Get the 3DS2 authentication result + * + * @param threeDS2ResultRequest {@link ThreeDS2ResultRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ThreeDS2ResultResponse } + * @throws ApiException if fails to make API call + */ + public ThreeDS2ResultResponse retrieve3ds2Result( + ThreeDS2ResultRequest threeDS2ResultRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = threeDS2ResultRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/retrieve3ds2Result", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return ThreeDS2ResultResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/paymentsapp/PaymentsAppApi.java b/src/main/java/com/adyen/service/paymentsapp/PaymentsAppApi.java index 06157c6b4..244cc12a4 100644 --- a/src/main/java/com/adyen/service/paymentsapp/PaymentsAppApi.java +++ b/src/main/java/com/adyen/service/paymentsapp/PaymentsAppApi.java @@ -2,7 +2,7 @@ * Payments App API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,257 +14,315 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.paymentsapp.BoardingTokenRequest; import com.adyen.model.paymentsapp.BoardingTokenResponse; -import com.adyen.model.paymentsapp.DefaultErrorResponseEntity; import com.adyen.model.paymentsapp.PaymentsAppResponse; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class PaymentsAppApi extends Service { - public static final String API_VERSION = "1"; + public static final String API_VERSION = "1"; - protected String baseURL; + protected String baseURL; - /** - * Payments App constructor in {@link com.adyen.service.paymentsapp package}. - * @param client {@link Client } (required) - */ - public PaymentsAppApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://management-live.adyen.com/v1"); - } + /** + * Payments App constructor in {@link com.adyen.service.paymentsapp package}. + * + * @param client {@link Client } (required) + */ + public PaymentsAppApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://management-live.adyen.com/v1"); + } - /** - * Payments App constructor in {@link com.adyen.service.paymentsapp package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public PaymentsAppApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Payments App constructor in {@link com.adyen.service.paymentsapp package}. Please use this + * constructor only if you would like to pass along your own url for routing or testing purposes. + * The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public PaymentsAppApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Create a boarding token - merchant level - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param boardingTokenRequest {@link BoardingTokenRequest } (required) - * @param boardingTokenRequest {@link BoardingTokenRequest } (required) - * @return {@link BoardingTokenResponse } - * @throws ApiException if fails to make API call - */ - public BoardingTokenResponse generatePaymentsAppBoardingTokenForMerchant(String merchantId, BoardingTokenRequest boardingTokenRequest) throws ApiException, IOException { - return generatePaymentsAppBoardingTokenForMerchant(merchantId, boardingTokenRequest, null); - } - - /** - * Create a boarding token - merchant level - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param boardingTokenRequest {@link BoardingTokenRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link BoardingTokenResponse } - * @throws ApiException if fails to make API call - */ - public BoardingTokenResponse generatePaymentsAppBoardingTokenForMerchant(String merchantId, BoardingTokenRequest boardingTokenRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); + /** + * Create a boarding token - merchant level + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param boardingTokenRequest {@link BoardingTokenRequest } (required) + * @param boardingTokenRequest {@link BoardingTokenRequest } (required) + * @return {@link BoardingTokenResponse } + * @throws ApiException if fails to make API call + */ + public BoardingTokenResponse generatePaymentsAppBoardingTokenForMerchant( + String merchantId, BoardingTokenRequest boardingTokenRequest) + throws ApiException, IOException { + return generatePaymentsAppBoardingTokenForMerchant(merchantId, boardingTokenRequest, null); + } - String requestBody = boardingTokenRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/generatePaymentsAppBoardingToken", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return BoardingTokenResponse.fromJson(jsonResult); + /** + * Create a boarding token - merchant level + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param boardingTokenRequest {@link BoardingTokenRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link BoardingTokenResponse } + * @throws ApiException if fails to make API call + */ + public BoardingTokenResponse generatePaymentsAppBoardingTokenForMerchant( + String merchantId, BoardingTokenRequest boardingTokenRequest, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); - /** - * Create a boarding token - store level - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param storeId {@link String } The unique identifier of the store. (required) - * @param boardingTokenRequest {@link BoardingTokenRequest } (required) - * @param boardingTokenRequest {@link BoardingTokenRequest } (required) - * @return {@link BoardingTokenResponse } - * @throws ApiException if fails to make API call - */ - public BoardingTokenResponse generatePaymentsAppBoardingTokenForStore(String merchantId, String storeId, BoardingTokenRequest boardingTokenRequest) throws ApiException, IOException { - return generatePaymentsAppBoardingTokenForStore(merchantId, storeId, boardingTokenRequest, null); - } + String requestBody = boardingTokenRequest.toJson(); + Resource resource = + new Resource( + this, this.baseURL + "/merchants/{merchantId}/generatePaymentsAppBoardingToken", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return BoardingTokenResponse.fromJson(jsonResult); + } - /** - * Create a boarding token - store level - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param storeId {@link String } The unique identifier of the store. (required) - * @param boardingTokenRequest {@link BoardingTokenRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link BoardingTokenResponse } - * @throws ApiException if fails to make API call - */ - public BoardingTokenResponse generatePaymentsAppBoardingTokenForStore(String merchantId, String storeId, BoardingTokenRequest boardingTokenRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (storeId == null) { - throw new IllegalArgumentException("Please provide the storeId path parameter"); - } - pathParams.put("storeId", storeId); + /** + * Create a boarding token - store level + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param storeId {@link String } The unique identifier of the store. (required) + * @param boardingTokenRequest {@link BoardingTokenRequest } (required) + * @param boardingTokenRequest {@link BoardingTokenRequest } (required) + * @return {@link BoardingTokenResponse } + * @throws ApiException if fails to make API call + */ + public BoardingTokenResponse generatePaymentsAppBoardingTokenForStore( + String merchantId, String storeId, BoardingTokenRequest boardingTokenRequest) + throws ApiException, IOException { + return generatePaymentsAppBoardingTokenForStore( + merchantId, storeId, boardingTokenRequest, null); + } - String requestBody = boardingTokenRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/stores/{storeId}/generatePaymentsAppBoardingToken", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return BoardingTokenResponse.fromJson(jsonResult); + /** + * Create a boarding token - store level + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param storeId {@link String } The unique identifier of the store. (required) + * @param boardingTokenRequest {@link BoardingTokenRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link BoardingTokenResponse } + * @throws ApiException if fails to make API call + */ + public BoardingTokenResponse generatePaymentsAppBoardingTokenForStore( + String merchantId, + String storeId, + BoardingTokenRequest boardingTokenRequest, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } - - /** - * Get a list of Payments Apps - merchant level - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @return {@link PaymentsAppResponse } - * @throws ApiException if fails to make API call - */ - public PaymentsAppResponse listPaymentsAppForMerchant(String merchantId) throws ApiException, IOException { - return listPaymentsAppForMerchant(merchantId, null, null, null, null); + pathParams.put("merchantId", merchantId); + if (storeId == null) { + throw new IllegalArgumentException("Please provide the storeId path parameter"); } + pathParams.put("storeId", storeId); - /** - * Get a list of Payments Apps - merchant level - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param statuses {@link String } Query: The status of the Payments App. Comma-separated list of one or more values. If no value is provided, the list returns all statuses. Possible values: * **BOARDING** * **BOARDED** * **REVOKED** (optional) - * @param limit {@link Integer } Query: The number of items to return. (optional, default to 10) - * @param offset {@link Long } Query: The number of items to skip. (optional, default to 0) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PaymentsAppResponse } - * @throws ApiException if fails to make API call - */ - public PaymentsAppResponse listPaymentsAppForMerchant(String merchantId, String statuses, Integer limit, Long offset, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); + String requestBody = boardingTokenRequest.toJson(); + Resource resource = + new Resource( + this, + this.baseURL + + "/merchants/{merchantId}/stores/{storeId}/generatePaymentsAppBoardingToken", + null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return BoardingTokenResponse.fromJson(jsonResult); + } - //Add query params - Map queryParams = new HashMap<>(); - if (statuses != null) { - queryParams.put("statuses", statuses); - } - if (limit != null) { - queryParams.put("limit", limit.toString()); - } - if (offset != null) { - queryParams.put("offset", offset.toString()); - } + /** + * Get a list of Payments Apps - merchant level + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @return {@link PaymentsAppResponse } + * @throws ApiException if fails to make API call + */ + public PaymentsAppResponse listPaymentsAppForMerchant(String merchantId) + throws ApiException, IOException { + return listPaymentsAppForMerchant(merchantId, null, null, null, null); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/paymentsApps", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return PaymentsAppResponse.fromJson(jsonResult); + /** + * Get a list of Payments Apps - merchant level + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param statuses {@link String } Query: The status of the Payments App. Comma-separated list of + * one or more values. If no value is provided, the list returns all statuses. Possible + * values: * **BOARDING** * **BOARDED** * **REVOKED** (optional) + * @param limit {@link Integer } Query: The number of items to return. (optional, default to 10) + * @param offset {@link Long } Query: The number of items to skip. (optional, default to 0) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PaymentsAppResponse } + * @throws ApiException if fails to make API call + */ + public PaymentsAppResponse listPaymentsAppForMerchant( + String merchantId, String statuses, Integer limit, Long offset, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); - /** - * Get a list of Payments Apps - store level - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param storeId {@link String } The unique identifier of the store. (required) - * @return {@link PaymentsAppResponse } - * @throws ApiException if fails to make API call - */ - public PaymentsAppResponse listPaymentsAppForStore(String merchantId, String storeId) throws ApiException, IOException { - return listPaymentsAppForStore(merchantId, storeId, null, null, null, null); + // Add query params + Map queryParams = new HashMap<>(); + if (statuses != null) { + queryParams.put("statuses", statuses); + } + if (limit != null) { + queryParams.put("limit", limit.toString()); + } + if (offset != null) { + queryParams.put("offset", offset.toString()); } - /** - * Get a list of Payments Apps - store level - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param storeId {@link String } The unique identifier of the store. (required) - * @param statuses {@link String } Query: The status of the Payments App. Comma-separated list of one or more values. If no value is provided, the list returns all statuses. Possible values: * **BOARDING** * **BOARDED** * **REVOKED** (optional) - * @param limit {@link Integer } Query: The number of items to return. (optional, default to 10) - * @param offset {@link Long } Query: The number of items to skip. (optional, default to 0) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PaymentsAppResponse } - * @throws ApiException if fails to make API call - */ - public PaymentsAppResponse listPaymentsAppForStore(String merchantId, String storeId, String statuses, Integer limit, Long offset, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (storeId == null) { - throw new IllegalArgumentException("Please provide the storeId path parameter"); - } - pathParams.put("storeId", storeId); + String requestBody = null; + Resource resource = + new Resource(this, this.baseURL + "/merchants/{merchantId}/paymentsApps", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return PaymentsAppResponse.fromJson(jsonResult); + } - //Add query params - Map queryParams = new HashMap<>(); - if (statuses != null) { - queryParams.put("statuses", statuses); - } - if (limit != null) { - queryParams.put("limit", limit.toString()); - } - if (offset != null) { - queryParams.put("offset", offset.toString()); - } + /** + * Get a list of Payments Apps - store level + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param storeId {@link String } The unique identifier of the store. (required) + * @return {@link PaymentsAppResponse } + * @throws ApiException if fails to make API call + */ + public PaymentsAppResponse listPaymentsAppForStore(String merchantId, String storeId) + throws ApiException, IOException { + return listPaymentsAppForStore(merchantId, storeId, null, null, null, null); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/stores/{storeId}/paymentsApps", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); - return PaymentsAppResponse.fromJson(jsonResult); + /** + * Get a list of Payments Apps - store level + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param storeId {@link String } The unique identifier of the store. (required) + * @param statuses {@link String } Query: The status of the Payments App. Comma-separated list of + * one or more values. If no value is provided, the list returns all statuses. Possible + * values: * **BOARDING** * **BOARDED** * **REVOKED** (optional) + * @param limit {@link Integer } Query: The number of items to return. (optional, default to 10) + * @param offset {@link Long } Query: The number of items to skip. (optional, default to 0) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PaymentsAppResponse } + * @throws ApiException if fails to make API call + */ + public PaymentsAppResponse listPaymentsAppForStore( + String merchantId, + String storeId, + String statuses, + Integer limit, + Long offset, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); + if (storeId == null) { + throw new IllegalArgumentException("Please provide the storeId path parameter"); + } + pathParams.put("storeId", storeId); - /** - * Revoke Payments App instance authentication - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param installationId {@link String } The unique identifier of the Payments App instance on a device. (required) - * @throws ApiException if fails to make API call - */ - public void revokePaymentsApp(String merchantId, String installationId) throws ApiException, IOException { - revokePaymentsApp(merchantId, installationId, null); + // Add query params + Map queryParams = new HashMap<>(); + if (statuses != null) { + queryParams.put("statuses", statuses); + } + if (limit != null) { + queryParams.put("limit", limit.toString()); + } + if (offset != null) { + queryParams.put("offset", offset.toString()); } - /** - * Revoke Payments App instance authentication - * - * @param merchantId {@link String } The unique identifier of the merchant account. (required) - * @param installationId {@link String } The unique identifier of the Payments App instance on a device. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void revokePaymentsApp(String merchantId, String installationId, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (merchantId == null) { - throw new IllegalArgumentException("Please provide the merchantId path parameter"); - } - pathParams.put("merchantId", merchantId); - if (installationId == null) { - throw new IllegalArgumentException("Please provide the installationId path parameter"); - } - pathParams.put("installationId", installationId); + String requestBody = null; + Resource resource = + new Resource( + this, this.baseURL + "/merchants/{merchantId}/stores/{storeId}/paymentsApps", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams, queryParams); + return PaymentsAppResponse.fromJson(jsonResult); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/merchants/{merchantId}/paymentsApps/{installationId}/revoke", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + /** + * Revoke Payments App instance authentication + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param installationId {@link String } The unique identifier of the Payments App instance on a + * device. (required) + * @throws ApiException if fails to make API call + */ + public void revokePaymentsApp(String merchantId, String installationId) + throws ApiException, IOException { + revokePaymentsApp(merchantId, installationId, null); + } + + /** + * Revoke Payments App instance authentication + * + * @param merchantId {@link String } The unique identifier of the merchant account. (required) + * @param installationId {@link String } The unique identifier of the Payments App instance on a + * device. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void revokePaymentsApp( + String merchantId, String installationId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (merchantId == null) { + throw new IllegalArgumentException("Please provide the merchantId path parameter"); } + pathParams.put("merchantId", merchantId); + if (installationId == null) { + throw new IllegalArgumentException("Please provide the installationId path parameter"); + } + pathParams.put("installationId", installationId); + + String requestBody = null; + Resource resource = + new Resource( + this, + this.baseURL + "/merchants/{merchantId}/paymentsApps/{installationId}/revoke", + null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + } } diff --git a/src/main/java/com/adyen/service/payout/InitializationApi.java b/src/main/java/com/adyen/service/payout/InitializationApi.java index 63ee985f7..ca1a4a7eb 100644 --- a/src/main/java/com/adyen/service/payout/InitializationApi.java +++ b/src/main/java/com/adyen/service/payout/InitializationApi.java @@ -2,7 +2,7 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,122 +14,135 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.payout.ServiceError; +import com.adyen.model.RequestOptions; import com.adyen.model.payout.StoreDetailAndSubmitRequest; import com.adyen.model.payout.StoreDetailAndSubmitResponse; import com.adyen.model.payout.StoreDetailRequest; import com.adyen.model.payout.StoreDetailResponse; import com.adyen.model.payout.SubmitRequest; import com.adyen.model.payout.SubmitResponse; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; -import java.util.HashMap; -import java.util.Map; public class InitializationApi extends Service { - public static final String API_VERSION = "68"; + public static final String API_VERSION = "68"; - protected String baseURL; + protected String baseURL; - /** - * Initialization constructor in {@link com.adyen.service.payout package}. - * @param client {@link Client } (required) - */ - public InitializationApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/Payout/v68"); - } + /** + * Initialization constructor in {@link com.adyen.service.payout package}. + * + * @param client {@link Client } (required) + */ + public InitializationApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/Payout/v68"); + } - /** - * Initialization constructor in {@link com.adyen.service.payout package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public InitializationApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Initialization constructor in {@link com.adyen.service.payout package}. Please use this + * constructor only if you would like to pass along your own url for routing or testing purposes. + * The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public InitializationApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Store payout details - * - * @param storeDetailRequest {@link StoreDetailRequest } (required) - * @return {@link StoreDetailResponse } - * @throws ApiException if fails to make API call - */ - public StoreDetailResponse storeDetail(StoreDetailRequest storeDetailRequest) throws ApiException, IOException { - return storeDetail(storeDetailRequest, null); - } + /** + * Store payout details + * + * @param storeDetailRequest {@link StoreDetailRequest } (required) + * @return {@link StoreDetailResponse } + * @throws ApiException if fails to make API call + */ + public StoreDetailResponse storeDetail(StoreDetailRequest storeDetailRequest) + throws ApiException, IOException { + return storeDetail(storeDetailRequest, null); + } - /** - * Store payout details - * - * @param storeDetailRequest {@link StoreDetailRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link StoreDetailResponse } - * @throws ApiException if fails to make API call - */ - public StoreDetailResponse storeDetail(StoreDetailRequest storeDetailRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = storeDetailRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/storeDetail", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return StoreDetailResponse.fromJson(jsonResult); - } + /** + * Store payout details + * + * @param storeDetailRequest {@link StoreDetailRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link StoreDetailResponse } + * @throws ApiException if fails to make API call + */ + public StoreDetailResponse storeDetail( + StoreDetailRequest storeDetailRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = storeDetailRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/storeDetail", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return StoreDetailResponse.fromJson(jsonResult); + } - /** - * Store details and submit a payout - * - * @param storeDetailAndSubmitRequest {@link StoreDetailAndSubmitRequest } (required) - * @return {@link StoreDetailAndSubmitResponse } - * @throws ApiException if fails to make API call - */ - public StoreDetailAndSubmitResponse storeDetailAndSubmitThirdParty(StoreDetailAndSubmitRequest storeDetailAndSubmitRequest) throws ApiException, IOException { - return storeDetailAndSubmitThirdParty(storeDetailAndSubmitRequest, null); - } + /** + * Store details and submit a payout + * + * @param storeDetailAndSubmitRequest {@link StoreDetailAndSubmitRequest } (required) + * @return {@link StoreDetailAndSubmitResponse } + * @throws ApiException if fails to make API call + */ + public StoreDetailAndSubmitResponse storeDetailAndSubmitThirdParty( + StoreDetailAndSubmitRequest storeDetailAndSubmitRequest) throws ApiException, IOException { + return storeDetailAndSubmitThirdParty(storeDetailAndSubmitRequest, null); + } - /** - * Store details and submit a payout - * - * @param storeDetailAndSubmitRequest {@link StoreDetailAndSubmitRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link StoreDetailAndSubmitResponse } - * @throws ApiException if fails to make API call - */ - public StoreDetailAndSubmitResponse storeDetailAndSubmitThirdParty(StoreDetailAndSubmitRequest storeDetailAndSubmitRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = storeDetailAndSubmitRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/storeDetailAndSubmitThirdParty", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return StoreDetailAndSubmitResponse.fromJson(jsonResult); - } + /** + * Store details and submit a payout + * + * @param storeDetailAndSubmitRequest {@link StoreDetailAndSubmitRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link StoreDetailAndSubmitResponse } + * @throws ApiException if fails to make API call + */ + public StoreDetailAndSubmitResponse storeDetailAndSubmitThirdParty( + StoreDetailAndSubmitRequest storeDetailAndSubmitRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = storeDetailAndSubmitRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/storeDetailAndSubmitThirdParty", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return StoreDetailAndSubmitResponse.fromJson(jsonResult); + } - /** - * Submit a payout - * - * @param submitRequest {@link SubmitRequest } (required) - * @return {@link SubmitResponse } - * @throws ApiException if fails to make API call - */ - public SubmitResponse submitThirdParty(SubmitRequest submitRequest) throws ApiException, IOException { - return submitThirdParty(submitRequest, null); - } + /** + * Submit a payout + * + * @param submitRequest {@link SubmitRequest } (required) + * @return {@link SubmitResponse } + * @throws ApiException if fails to make API call + */ + public SubmitResponse submitThirdParty(SubmitRequest submitRequest) + throws ApiException, IOException { + return submitThirdParty(submitRequest, null); + } - /** - * Submit a payout - * - * @param submitRequest {@link SubmitRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link SubmitResponse } - * @throws ApiException if fails to make API call - */ - public SubmitResponse submitThirdParty(SubmitRequest submitRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = submitRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/submitThirdParty", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return SubmitResponse.fromJson(jsonResult); - } + /** + * Submit a payout + * + * @param submitRequest {@link SubmitRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link SubmitResponse } + * @throws ApiException if fails to make API call + */ + public SubmitResponse submitThirdParty(SubmitRequest submitRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = submitRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/submitThirdParty", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return SubmitResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/payout/InstantPayoutsApi.java b/src/main/java/com/adyen/service/payout/InstantPayoutsApi.java index d43f5e567..f914092b3 100644 --- a/src/main/java/com/adyen/service/payout/InstantPayoutsApi.java +++ b/src/main/java/com/adyen/service/payout/InstantPayoutsApi.java @@ -2,7 +2,7 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,66 +14,68 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.payout.PayoutRequest; import com.adyen.model.payout.PayoutResponse; -import com.adyen.model.payout.ServiceError; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; -import java.util.HashMap; -import java.util.Map; public class InstantPayoutsApi extends Service { - public static final String API_VERSION = "68"; + public static final String API_VERSION = "68"; - protected String baseURL; + protected String baseURL; - /** - * Instant payouts constructor in {@link com.adyen.service.payout package}. - * @param client {@link Client } (required) - */ - public InstantPayoutsApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/Payout/v68"); - } + /** + * Instant payouts constructor in {@link com.adyen.service.payout package}. + * + * @param client {@link Client } (required) + */ + public InstantPayoutsApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/Payout/v68"); + } - /** - * Instant payouts constructor in {@link com.adyen.service.payout package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public InstantPayoutsApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Instant payouts constructor in {@link com.adyen.service.payout package}. Please use this + * constructor only if you would like to pass along your own url for routing or testing purposes. + * The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public InstantPayoutsApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Make an instant card payout - * - * @param payoutRequest {@link PayoutRequest } (required) - * @return {@link PayoutResponse } - * @throws ApiException if fails to make API call - */ - public PayoutResponse payout(PayoutRequest payoutRequest) throws ApiException, IOException { - return payout(payoutRequest, null); - } + /** + * Make an instant card payout + * + * @param payoutRequest {@link PayoutRequest } (required) + * @return {@link PayoutResponse } + * @throws ApiException if fails to make API call + */ + public PayoutResponse payout(PayoutRequest payoutRequest) throws ApiException, IOException { + return payout(payoutRequest, null); + } - /** - * Make an instant card payout - * - * @param payoutRequest {@link PayoutRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link PayoutResponse } - * @throws ApiException if fails to make API call - */ - public PayoutResponse payout(PayoutRequest payoutRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = payoutRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/payout", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return PayoutResponse.fromJson(jsonResult); - } + /** + * Make an instant card payout + * + * @param payoutRequest {@link PayoutRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link PayoutResponse } + * @throws ApiException if fails to make API call + */ + public PayoutResponse payout(PayoutRequest payoutRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = payoutRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/payout", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return PayoutResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/payout/ReviewingApi.java b/src/main/java/com/adyen/service/payout/ReviewingApi.java index 505cc66a7..7d60f1266 100644 --- a/src/main/java/com/adyen/service/payout/ReviewingApi.java +++ b/src/main/java/com/adyen/service/payout/ReviewingApi.java @@ -2,7 +2,7 @@ * Adyen Payout API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,92 +14,99 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.payout.ModifyRequest; import com.adyen.model.payout.ModifyResponse; -import com.adyen.model.payout.ServiceError; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; -import java.util.HashMap; -import java.util.Map; public class ReviewingApi extends Service { - public static final String API_VERSION = "68"; + public static final String API_VERSION = "68"; - protected String baseURL; + protected String baseURL; - /** - * Reviewing constructor in {@link com.adyen.service.payout package}. - * @param client {@link Client } (required) - */ - public ReviewingApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/Payout/v68"); - } + /** + * Reviewing constructor in {@link com.adyen.service.payout package}. + * + * @param client {@link Client } (required) + */ + public ReviewingApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/Payout/v68"); + } - /** - * Reviewing constructor in {@link com.adyen.service.payout package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public ReviewingApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Reviewing constructor in {@link com.adyen.service.payout package}. Please use this constructor + * only if you would like to pass along your own url for routing or testing purposes. The latest + * API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public ReviewingApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Confirm a payout - * - * @param modifyRequest {@link ModifyRequest } (required) - * @return {@link ModifyResponse } - * @throws ApiException if fails to make API call - */ - public ModifyResponse confirmThirdParty(ModifyRequest modifyRequest) throws ApiException, IOException { - return confirmThirdParty(modifyRequest, null); - } + /** + * Confirm a payout + * + * @param modifyRequest {@link ModifyRequest } (required) + * @return {@link ModifyResponse } + * @throws ApiException if fails to make API call + */ + public ModifyResponse confirmThirdParty(ModifyRequest modifyRequest) + throws ApiException, IOException { + return confirmThirdParty(modifyRequest, null); + } - /** - * Confirm a payout - * - * @param modifyRequest {@link ModifyRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ModifyResponse } - * @throws ApiException if fails to make API call - */ - public ModifyResponse confirmThirdParty(ModifyRequest modifyRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = modifyRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/confirmThirdParty", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return ModifyResponse.fromJson(jsonResult); - } + /** + * Confirm a payout + * + * @param modifyRequest {@link ModifyRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ModifyResponse } + * @throws ApiException if fails to make API call + */ + public ModifyResponse confirmThirdParty( + ModifyRequest modifyRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = modifyRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/confirmThirdParty", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return ModifyResponse.fromJson(jsonResult); + } - /** - * Cancel a payout - * - * @param modifyRequest {@link ModifyRequest } (required) - * @return {@link ModifyResponse } - * @throws ApiException if fails to make API call - */ - public ModifyResponse declineThirdParty(ModifyRequest modifyRequest) throws ApiException, IOException { - return declineThirdParty(modifyRequest, null); - } + /** + * Cancel a payout + * + * @param modifyRequest {@link ModifyRequest } (required) + * @return {@link ModifyResponse } + * @throws ApiException if fails to make API call + */ + public ModifyResponse declineThirdParty(ModifyRequest modifyRequest) + throws ApiException, IOException { + return declineThirdParty(modifyRequest, null); + } - /** - * Cancel a payout - * - * @param modifyRequest {@link ModifyRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ModifyResponse } - * @throws ApiException if fails to make API call - */ - public ModifyResponse declineThirdParty(ModifyRequest modifyRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = modifyRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/declineThirdParty", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return ModifyResponse.fromJson(jsonResult); - } + /** + * Cancel a payout + * + * @param modifyRequest {@link ModifyRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ModifyResponse } + * @throws ApiException if fails to make API call + */ + public ModifyResponse declineThirdParty( + ModifyRequest modifyRequest, RequestOptions requestOptions) throws ApiException, IOException { + String requestBody = modifyRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/declineThirdParty", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return ModifyResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/posmobile/PosMobileApi.java b/src/main/java/com/adyen/service/posmobile/PosMobileApi.java index c812f4d89..7b7d8ce8e 100644 --- a/src/main/java/com/adyen/service/posmobile/PosMobileApi.java +++ b/src/main/java/com/adyen/service/posmobile/PosMobileApi.java @@ -2,7 +2,7 @@ * POS Mobile API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,65 +14,70 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.posmobile.CreateSessionRequest; import com.adyen.model.posmobile.CreateSessionResponse; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; -import java.util.HashMap; -import java.util.Map; public class PosMobileApi extends Service { - public static final String API_VERSION = "68"; + public static final String API_VERSION = "68"; - protected String baseURL; + protected String baseURL; - /** - * PosMobile constructor in {@link com.adyen.service.posmobile package}. - * @param client {@link Client } (required) - */ - public PosMobileApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://checkout-test.adyen.com/checkout/possdk/v68"); - } + /** + * PosMobile constructor in {@link com.adyen.service.posmobile package}. + * + * @param client {@link Client } (required) + */ + public PosMobileApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://checkout-test.adyen.com/checkout/possdk/v68"); + } - /** - * PosMobile constructor in {@link com.adyen.service.posmobile package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public PosMobileApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * PosMobile constructor in {@link com.adyen.service.posmobile package}. Please use this + * constructor only if you would like to pass along your own url for routing or testing purposes. + * The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public PosMobileApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Create a communication session - * - * @param createSessionRequest {@link CreateSessionRequest } (required) - * @return {@link CreateSessionResponse } - * @throws ApiException if fails to make API call - */ - public CreateSessionResponse createCommunicationSession(CreateSessionRequest createSessionRequest) throws ApiException, IOException { - return createCommunicationSession(createSessionRequest, null); - } + /** + * Create a communication session + * + * @param createSessionRequest {@link CreateSessionRequest } (required) + * @return {@link CreateSessionResponse } + * @throws ApiException if fails to make API call + */ + public CreateSessionResponse createCommunicationSession(CreateSessionRequest createSessionRequest) + throws ApiException, IOException { + return createCommunicationSession(createSessionRequest, null); + } - /** - * Create a communication session - * - * @param createSessionRequest {@link CreateSessionRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link CreateSessionResponse } - * @throws ApiException if fails to make API call - */ - public CreateSessionResponse createCommunicationSession(CreateSessionRequest createSessionRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = createSessionRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/sessions", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return CreateSessionResponse.fromJson(jsonResult); - } + /** + * Create a communication session + * + * @param createSessionRequest {@link CreateSessionRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link CreateSessionResponse } + * @throws ApiException if fails to make API call + */ + public CreateSessionResponse createCommunicationSession( + CreateSessionRequest createSessionRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = createSessionRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/sessions", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return CreateSessionResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/recurring/RecurringApi.java b/src/main/java/com/adyen/service/recurring/RecurringApi.java index 763b59137..156c369c6 100644 --- a/src/main/java/com/adyen/service/recurring/RecurringApi.java +++ b/src/main/java/com/adyen/service/recurring/RecurringApi.java @@ -2,7 +2,7 @@ * Adyen Recurring API * * The version of the OpenAPI document: 68 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,6 +14,7 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.recurring.CreatePermitRequest; import com.adyen.model.recurring.CreatePermitResult; import com.adyen.model.recurring.DisablePermitRequest; @@ -26,218 +27,245 @@ import com.adyen.model.recurring.RecurringDetailsResult; import com.adyen.model.recurring.ScheduleAccountUpdaterRequest; import com.adyen.model.recurring.ScheduleAccountUpdaterResult; -import com.adyen.model.recurring.ServiceError; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; -import java.util.HashMap; -import java.util.Map; public class RecurringApi extends Service { - public static final String API_VERSION = "68"; - - protected String baseURL; - - /** - * Recurring constructor in {@link com.adyen.service.recurring package}. - * @param client {@link Client } (required) - */ - public RecurringApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/Recurring/v68"); - } - - /** - * Recurring constructor in {@link com.adyen.service.recurring package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public RecurringApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Create new permits linked to a recurring contract. - * - * @param createPermitRequest {@link CreatePermitRequest } (required) - * @return {@link CreatePermitResult } - * @throws ApiException if fails to make API call - * @deprecated since Adyen Recurring API v68 - */ - @Deprecated - public CreatePermitResult createPermit(CreatePermitRequest createPermitRequest) throws ApiException, IOException { - return createPermit(createPermitRequest, null); - } - - /** - * Create new permits linked to a recurring contract. - * - * @param createPermitRequest {@link CreatePermitRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link CreatePermitResult } - * @throws ApiException if fails to make API call - * @deprecated since Adyen Recurring API v68 - */ - @Deprecated - public CreatePermitResult createPermit(CreatePermitRequest createPermitRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = createPermitRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/createPermit", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return CreatePermitResult.fromJson(jsonResult); - } - - /** - * Disable stored payment details - * - * @param disableRequest {@link DisableRequest } (required) - * @return {@link DisableResult } - * @throws ApiException if fails to make API call - * @deprecated since Adyen Recurring API v68 - */ - @Deprecated - public DisableResult disable(DisableRequest disableRequest) throws ApiException, IOException { - return disable(disableRequest, null); - } - - /** - * Disable stored payment details - * - * @param disableRequest {@link DisableRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link DisableResult } - * @throws ApiException if fails to make API call - * @deprecated since Adyen Recurring API v68 - */ - @Deprecated - public DisableResult disable(DisableRequest disableRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = disableRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/disable", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return DisableResult.fromJson(jsonResult); - } - - /** - * Disable an existing permit. - * - * @param disablePermitRequest {@link DisablePermitRequest } (required) - * @return {@link DisablePermitResult } - * @throws ApiException if fails to make API call - * @deprecated since Adyen Recurring API v68 - */ - @Deprecated - public DisablePermitResult disablePermit(DisablePermitRequest disablePermitRequest) throws ApiException, IOException { - return disablePermit(disablePermitRequest, null); - } - - /** - * Disable an existing permit. - * - * @param disablePermitRequest {@link DisablePermitRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link DisablePermitResult } - * @throws ApiException if fails to make API call - * @deprecated since Adyen Recurring API v68 - */ - @Deprecated - public DisablePermitResult disablePermit(DisablePermitRequest disablePermitRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = disablePermitRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/disablePermit", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return DisablePermitResult.fromJson(jsonResult); - } - - /** - * Get stored payment details - * - * @param recurringDetailsRequest {@link RecurringDetailsRequest } (required) - * @return {@link RecurringDetailsResult } - * @throws ApiException if fails to make API call - * @deprecated since Adyen Recurring API v68 - */ - @Deprecated - public RecurringDetailsResult listRecurringDetails(RecurringDetailsRequest recurringDetailsRequest) throws ApiException, IOException { - return listRecurringDetails(recurringDetailsRequest, null); - } - - /** - * Get stored payment details - * - * @param recurringDetailsRequest {@link RecurringDetailsRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link RecurringDetailsResult } - * @throws ApiException if fails to make API call - * @deprecated since Adyen Recurring API v68 - */ - @Deprecated - public RecurringDetailsResult listRecurringDetails(RecurringDetailsRequest recurringDetailsRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = recurringDetailsRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/listRecurringDetails", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return RecurringDetailsResult.fromJson(jsonResult); - } - - /** - * Ask issuer to notify the shopper - * - * @param notifyShopperRequest {@link NotifyShopperRequest } (required) - * @return {@link NotifyShopperResult } - * @throws ApiException if fails to make API call - * @deprecated since Adyen Recurring API v68 - */ - @Deprecated - public NotifyShopperResult notifyShopper(NotifyShopperRequest notifyShopperRequest) throws ApiException, IOException { - return notifyShopper(notifyShopperRequest, null); - } - - /** - * Ask issuer to notify the shopper - * - * @param notifyShopperRequest {@link NotifyShopperRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link NotifyShopperResult } - * @throws ApiException if fails to make API call - * @deprecated since Adyen Recurring API v68 - */ - @Deprecated - public NotifyShopperResult notifyShopper(NotifyShopperRequest notifyShopperRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = notifyShopperRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/notifyShopper", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return NotifyShopperResult.fromJson(jsonResult); - } - - /** - * Schedule running the Account Updater - * - * @param scheduleAccountUpdaterRequest {@link ScheduleAccountUpdaterRequest } (required) - * @return {@link ScheduleAccountUpdaterResult } - * @throws ApiException if fails to make API call - * @deprecated since Adyen Recurring API v68 - */ - @Deprecated - public ScheduleAccountUpdaterResult scheduleAccountUpdater(ScheduleAccountUpdaterRequest scheduleAccountUpdaterRequest) throws ApiException, IOException { - return scheduleAccountUpdater(scheduleAccountUpdaterRequest, null); - } - - /** - * Schedule running the Account Updater - * - * @param scheduleAccountUpdaterRequest {@link ScheduleAccountUpdaterRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ScheduleAccountUpdaterResult } - * @throws ApiException if fails to make API call - * @deprecated since Adyen Recurring API v68 - */ - @Deprecated - public ScheduleAccountUpdaterResult scheduleAccountUpdater(ScheduleAccountUpdaterRequest scheduleAccountUpdaterRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = scheduleAccountUpdaterRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/scheduleAccountUpdater", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return ScheduleAccountUpdaterResult.fromJson(jsonResult); - } + public static final String API_VERSION = "68"; + + protected String baseURL; + + /** + * Recurring constructor in {@link com.adyen.service.recurring package}. + * + * @param client {@link Client } (required) + */ + public RecurringApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/Recurring/v68"); + } + + /** + * Recurring constructor in {@link com.adyen.service.recurring package}. Please use this + * constructor only if you would like to pass along your own url for routing or testing purposes. + * The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public RecurringApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Create new permits linked to a recurring contract. + * + * @param createPermitRequest {@link CreatePermitRequest } (required) + * @return {@link CreatePermitResult } + * @throws ApiException if fails to make API call + * @deprecated since Adyen Recurring API v68 + */ + @Deprecated + public CreatePermitResult createPermit(CreatePermitRequest createPermitRequest) + throws ApiException, IOException { + return createPermit(createPermitRequest, null); + } + + /** + * Create new permits linked to a recurring contract. + * + * @param createPermitRequest {@link CreatePermitRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link CreatePermitResult } + * @throws ApiException if fails to make API call + * @deprecated since Adyen Recurring API v68 + */ + @Deprecated + public CreatePermitResult createPermit( + CreatePermitRequest createPermitRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = createPermitRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/createPermit", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return CreatePermitResult.fromJson(jsonResult); + } + + /** + * Disable stored payment details + * + * @param disableRequest {@link DisableRequest } (required) + * @return {@link DisableResult } + * @throws ApiException if fails to make API call + * @deprecated since Adyen Recurring API v68 + */ + @Deprecated + public DisableResult disable(DisableRequest disableRequest) throws ApiException, IOException { + return disable(disableRequest, null); + } + + /** + * Disable stored payment details + * + * @param disableRequest {@link DisableRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link DisableResult } + * @throws ApiException if fails to make API call + * @deprecated since Adyen Recurring API v68 + */ + @Deprecated + public DisableResult disable(DisableRequest disableRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = disableRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/disable", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return DisableResult.fromJson(jsonResult); + } + + /** + * Disable an existing permit. + * + * @param disablePermitRequest {@link DisablePermitRequest } (required) + * @return {@link DisablePermitResult } + * @throws ApiException if fails to make API call + * @deprecated since Adyen Recurring API v68 + */ + @Deprecated + public DisablePermitResult disablePermit(DisablePermitRequest disablePermitRequest) + throws ApiException, IOException { + return disablePermit(disablePermitRequest, null); + } + + /** + * Disable an existing permit. + * + * @param disablePermitRequest {@link DisablePermitRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link DisablePermitResult } + * @throws ApiException if fails to make API call + * @deprecated since Adyen Recurring API v68 + */ + @Deprecated + public DisablePermitResult disablePermit( + DisablePermitRequest disablePermitRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = disablePermitRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/disablePermit", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return DisablePermitResult.fromJson(jsonResult); + } + + /** + * Get stored payment details + * + * @param recurringDetailsRequest {@link RecurringDetailsRequest } (required) + * @return {@link RecurringDetailsResult } + * @throws ApiException if fails to make API call + * @deprecated since Adyen Recurring API v68 + */ + @Deprecated + public RecurringDetailsResult listRecurringDetails( + RecurringDetailsRequest recurringDetailsRequest) throws ApiException, IOException { + return listRecurringDetails(recurringDetailsRequest, null); + } + + /** + * Get stored payment details + * + * @param recurringDetailsRequest {@link RecurringDetailsRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link RecurringDetailsResult } + * @throws ApiException if fails to make API call + * @deprecated since Adyen Recurring API v68 + */ + @Deprecated + public RecurringDetailsResult listRecurringDetails( + RecurringDetailsRequest recurringDetailsRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = recurringDetailsRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/listRecurringDetails", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return RecurringDetailsResult.fromJson(jsonResult); + } + + /** + * Ask issuer to notify the shopper + * + * @param notifyShopperRequest {@link NotifyShopperRequest } (required) + * @return {@link NotifyShopperResult } + * @throws ApiException if fails to make API call + * @deprecated since Adyen Recurring API v68 + */ + @Deprecated + public NotifyShopperResult notifyShopper(NotifyShopperRequest notifyShopperRequest) + throws ApiException, IOException { + return notifyShopper(notifyShopperRequest, null); + } + + /** + * Ask issuer to notify the shopper + * + * @param notifyShopperRequest {@link NotifyShopperRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link NotifyShopperResult } + * @throws ApiException if fails to make API call + * @deprecated since Adyen Recurring API v68 + */ + @Deprecated + public NotifyShopperResult notifyShopper( + NotifyShopperRequest notifyShopperRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = notifyShopperRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/notifyShopper", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return NotifyShopperResult.fromJson(jsonResult); + } + + /** + * Schedule running the Account Updater + * + * @param scheduleAccountUpdaterRequest {@link ScheduleAccountUpdaterRequest } (required) + * @return {@link ScheduleAccountUpdaterResult } + * @throws ApiException if fails to make API call + * @deprecated since Adyen Recurring API v68 + */ + @Deprecated + public ScheduleAccountUpdaterResult scheduleAccountUpdater( + ScheduleAccountUpdaterRequest scheduleAccountUpdaterRequest) + throws ApiException, IOException { + return scheduleAccountUpdater(scheduleAccountUpdaterRequest, null); + } + + /** + * Schedule running the Account Updater + * + * @param scheduleAccountUpdaterRequest {@link ScheduleAccountUpdaterRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ScheduleAccountUpdaterResult } + * @throws ApiException if fails to make API call + * @deprecated since Adyen Recurring API v68 + */ + @Deprecated + public ScheduleAccountUpdaterResult scheduleAccountUpdater( + ScheduleAccountUpdaterRequest scheduleAccountUpdaterRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = scheduleAccountUpdaterRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/scheduleAccountUpdater", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return ScheduleAccountUpdaterResult.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/sessionauthentication/SessionAuthenticationApi.java b/src/main/java/com/adyen/service/sessionauthentication/SessionAuthenticationApi.java index bbc5183b8..0d33c9638 100644 --- a/src/main/java/com/adyen/service/sessionauthentication/SessionAuthenticationApi.java +++ b/src/main/java/com/adyen/service/sessionauthentication/SessionAuthenticationApi.java @@ -2,7 +2,7 @@ * Session authentication API * * The version of the OpenAPI document: 1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,67 +14,71 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.sessionauthentication.AuthenticationSessionRequest; import com.adyen.model.sessionauthentication.AuthenticationSessionResponse; -import com.adyen.model.sessionauthentication.DefaultErrorResponseEntity; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; -import java.util.HashMap; -import java.util.Map; public class SessionAuthenticationApi extends Service { - public static final String API_VERSION = "1"; + public static final String API_VERSION = "1"; - protected String baseURL; + protected String baseURL; - /** - * Session authentication constructor in {@link com.adyen.service.sessionauthentication package}. - * @param client {@link Client } (required) - */ - public SessionAuthenticationApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://test.adyen.com/authe/api/v1"); - } + /** + * Session authentication constructor in {@link com.adyen.service.sessionauthentication package}. + * + * @param client {@link Client } (required) + */ + public SessionAuthenticationApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://test.adyen.com/authe/api/v1"); + } - /** - * Session authentication constructor in {@link com.adyen.service.sessionauthentication package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public SessionAuthenticationApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Session authentication constructor in {@link com.adyen.service.sessionauthentication package}. + * Please use this constructor only if you would like to pass along your own url for routing or + * testing purposes. The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public SessionAuthenticationApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Create a session token - * - * @param authenticationSessionRequest {@link AuthenticationSessionRequest } (required) - * @param authenticationSessionRequest {@link AuthenticationSessionRequest } (required) - * @return {@link AuthenticationSessionResponse } - * @throws ApiException if fails to make API call - */ - public AuthenticationSessionResponse createAuthenticationSession(AuthenticationSessionRequest authenticationSessionRequest) throws ApiException, IOException { - return createAuthenticationSession(authenticationSessionRequest, null); - } + /** + * Create a session token + * + * @param authenticationSessionRequest {@link AuthenticationSessionRequest } (required) + * @param authenticationSessionRequest {@link AuthenticationSessionRequest } (required) + * @return {@link AuthenticationSessionResponse } + * @throws ApiException if fails to make API call + */ + public AuthenticationSessionResponse createAuthenticationSession( + AuthenticationSessionRequest authenticationSessionRequest) throws ApiException, IOException { + return createAuthenticationSession(authenticationSessionRequest, null); + } - /** - * Create a session token - * - * @param authenticationSessionRequest {@link AuthenticationSessionRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link AuthenticationSessionResponse } - * @throws ApiException if fails to make API call - */ - public AuthenticationSessionResponse createAuthenticationSession(AuthenticationSessionRequest authenticationSessionRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = authenticationSessionRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/sessions", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return AuthenticationSessionResponse.fromJson(jsonResult); - } + /** + * Create a session token + * + * @param authenticationSessionRequest {@link AuthenticationSessionRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link AuthenticationSessionResponse } + * @throws ApiException if fails to make API call + */ + public AuthenticationSessionResponse createAuthenticationSession( + AuthenticationSessionRequest authenticationSessionRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = authenticationSessionRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/sessions", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return AuthenticationSessionResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/storedvalue/StoredValueApi.java b/src/main/java/com/adyen/service/storedvalue/StoredValueApi.java index 06502c6b2..70fe4d6fd 100644 --- a/src/main/java/com/adyen/service/storedvalue/StoredValueApi.java +++ b/src/main/java/com/adyen/service/storedvalue/StoredValueApi.java @@ -2,7 +2,7 @@ * Adyen Stored Value API * * The version of the OpenAPI document: 46 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,7 +14,7 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import com.adyen.model.storedvalue.ServiceError; +import com.adyen.model.RequestOptions; import com.adyen.model.storedvalue.StoredValueBalanceCheckRequest; import com.adyen.model.storedvalue.StoredValueBalanceCheckResponse; import com.adyen.model.storedvalue.StoredValueBalanceMergeRequest; @@ -27,193 +27,225 @@ import com.adyen.model.storedvalue.StoredValueStatusChangeResponse; import com.adyen.model.storedvalue.StoredValueVoidRequest; import com.adyen.model.storedvalue.StoredValueVoidResponse; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; -import java.util.HashMap; -import java.util.Map; public class StoredValueApi extends Service { - public static final String API_VERSION = "46"; - - protected String baseURL; - - /** - * StoredValue constructor in {@link com.adyen.service.storedvalue package}. - * @param client {@link Client } (required) - */ - public StoredValueApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/StoredValue/v46"); - } - - /** - * StoredValue constructor in {@link com.adyen.service.storedvalue package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public StoredValueApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Changes the status of the payment method. - * - * @param storedValueStatusChangeRequest {@link StoredValueStatusChangeRequest } (required) - * @return {@link StoredValueStatusChangeResponse } - * @throws ApiException if fails to make API call - */ - public StoredValueStatusChangeResponse changeStatus(StoredValueStatusChangeRequest storedValueStatusChangeRequest) throws ApiException, IOException { - return changeStatus(storedValueStatusChangeRequest, null); - } - - /** - * Changes the status of the payment method. - * - * @param storedValueStatusChangeRequest {@link StoredValueStatusChangeRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link StoredValueStatusChangeResponse } - * @throws ApiException if fails to make API call - */ - public StoredValueStatusChangeResponse changeStatus(StoredValueStatusChangeRequest storedValueStatusChangeRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = storedValueStatusChangeRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/changeStatus", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return StoredValueStatusChangeResponse.fromJson(jsonResult); - } - - /** - * Checks the balance. - * - * @param storedValueBalanceCheckRequest {@link StoredValueBalanceCheckRequest } (required) - * @return {@link StoredValueBalanceCheckResponse } - * @throws ApiException if fails to make API call - */ - public StoredValueBalanceCheckResponse checkBalance(StoredValueBalanceCheckRequest storedValueBalanceCheckRequest) throws ApiException, IOException { - return checkBalance(storedValueBalanceCheckRequest, null); - } - - /** - * Checks the balance. - * - * @param storedValueBalanceCheckRequest {@link StoredValueBalanceCheckRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link StoredValueBalanceCheckResponse } - * @throws ApiException if fails to make API call - */ - public StoredValueBalanceCheckResponse checkBalance(StoredValueBalanceCheckRequest storedValueBalanceCheckRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = storedValueBalanceCheckRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/checkBalance", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return StoredValueBalanceCheckResponse.fromJson(jsonResult); - } - - /** - * Issues a new card. - * - * @param storedValueIssueRequest {@link StoredValueIssueRequest } (required) - * @return {@link StoredValueIssueResponse } - * @throws ApiException if fails to make API call - */ - public StoredValueIssueResponse issue(StoredValueIssueRequest storedValueIssueRequest) throws ApiException, IOException { - return issue(storedValueIssueRequest, null); - } - - /** - * Issues a new card. - * - * @param storedValueIssueRequest {@link StoredValueIssueRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link StoredValueIssueResponse } - * @throws ApiException if fails to make API call - */ - public StoredValueIssueResponse issue(StoredValueIssueRequest storedValueIssueRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = storedValueIssueRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/issue", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return StoredValueIssueResponse.fromJson(jsonResult); - } - - /** - * Loads the payment method. - * - * @param storedValueLoadRequest {@link StoredValueLoadRequest } (required) - * @return {@link StoredValueLoadResponse } - * @throws ApiException if fails to make API call - */ - public StoredValueLoadResponse load(StoredValueLoadRequest storedValueLoadRequest) throws ApiException, IOException { - return load(storedValueLoadRequest, null); - } - - /** - * Loads the payment method. - * - * @param storedValueLoadRequest {@link StoredValueLoadRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link StoredValueLoadResponse } - * @throws ApiException if fails to make API call - */ - public StoredValueLoadResponse load(StoredValueLoadRequest storedValueLoadRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = storedValueLoadRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/load", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return StoredValueLoadResponse.fromJson(jsonResult); - } - - /** - * Merge the balance of two cards. - * - * @param storedValueBalanceMergeRequest {@link StoredValueBalanceMergeRequest } (required) - * @return {@link StoredValueBalanceMergeResponse } - * @throws ApiException if fails to make API call - */ - public StoredValueBalanceMergeResponse mergeBalance(StoredValueBalanceMergeRequest storedValueBalanceMergeRequest) throws ApiException, IOException { - return mergeBalance(storedValueBalanceMergeRequest, null); - } - - /** - * Merge the balance of two cards. - * - * @param storedValueBalanceMergeRequest {@link StoredValueBalanceMergeRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link StoredValueBalanceMergeResponse } - * @throws ApiException if fails to make API call - */ - public StoredValueBalanceMergeResponse mergeBalance(StoredValueBalanceMergeRequest storedValueBalanceMergeRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = storedValueBalanceMergeRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/mergeBalance", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return StoredValueBalanceMergeResponse.fromJson(jsonResult); - } - - /** - * Voids a transaction. - * - * @param storedValueVoidRequest {@link StoredValueVoidRequest } (required) - * @return {@link StoredValueVoidResponse } - * @throws ApiException if fails to make API call - */ - public StoredValueVoidResponse voidTransaction(StoredValueVoidRequest storedValueVoidRequest) throws ApiException, IOException { - return voidTransaction(storedValueVoidRequest, null); - } - - /** - * Voids a transaction. - * - * @param storedValueVoidRequest {@link StoredValueVoidRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link StoredValueVoidResponse } - * @throws ApiException if fails to make API call - */ - public StoredValueVoidResponse voidTransaction(StoredValueVoidRequest storedValueVoidRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = storedValueVoidRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/voidTransaction", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return StoredValueVoidResponse.fromJson(jsonResult); - } + public static final String API_VERSION = "46"; + + protected String baseURL; + + /** + * StoredValue constructor in {@link com.adyen.service.storedvalue package}. + * + * @param client {@link Client } (required) + */ + public StoredValueApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/StoredValue/v46"); + } + + /** + * StoredValue constructor in {@link com.adyen.service.storedvalue package}. Please use this + * constructor only if you would like to pass along your own url for routing or testing purposes. + * The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public StoredValueApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Changes the status of the payment method. + * + * @param storedValueStatusChangeRequest {@link StoredValueStatusChangeRequest } (required) + * @return {@link StoredValueStatusChangeResponse } + * @throws ApiException if fails to make API call + */ + public StoredValueStatusChangeResponse changeStatus( + StoredValueStatusChangeRequest storedValueStatusChangeRequest) + throws ApiException, IOException { + return changeStatus(storedValueStatusChangeRequest, null); + } + + /** + * Changes the status of the payment method. + * + * @param storedValueStatusChangeRequest {@link StoredValueStatusChangeRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link StoredValueStatusChangeResponse } + * @throws ApiException if fails to make API call + */ + public StoredValueStatusChangeResponse changeStatus( + StoredValueStatusChangeRequest storedValueStatusChangeRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = storedValueStatusChangeRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/changeStatus", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return StoredValueStatusChangeResponse.fromJson(jsonResult); + } + + /** + * Checks the balance. + * + * @param storedValueBalanceCheckRequest {@link StoredValueBalanceCheckRequest } (required) + * @return {@link StoredValueBalanceCheckResponse } + * @throws ApiException if fails to make API call + */ + public StoredValueBalanceCheckResponse checkBalance( + StoredValueBalanceCheckRequest storedValueBalanceCheckRequest) + throws ApiException, IOException { + return checkBalance(storedValueBalanceCheckRequest, null); + } + + /** + * Checks the balance. + * + * @param storedValueBalanceCheckRequest {@link StoredValueBalanceCheckRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link StoredValueBalanceCheckResponse } + * @throws ApiException if fails to make API call + */ + public StoredValueBalanceCheckResponse checkBalance( + StoredValueBalanceCheckRequest storedValueBalanceCheckRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = storedValueBalanceCheckRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/checkBalance", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return StoredValueBalanceCheckResponse.fromJson(jsonResult); + } + + /** + * Issues a new card. + * + * @param storedValueIssueRequest {@link StoredValueIssueRequest } (required) + * @return {@link StoredValueIssueResponse } + * @throws ApiException if fails to make API call + */ + public StoredValueIssueResponse issue(StoredValueIssueRequest storedValueIssueRequest) + throws ApiException, IOException { + return issue(storedValueIssueRequest, null); + } + + /** + * Issues a new card. + * + * @param storedValueIssueRequest {@link StoredValueIssueRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link StoredValueIssueResponse } + * @throws ApiException if fails to make API call + */ + public StoredValueIssueResponse issue( + StoredValueIssueRequest storedValueIssueRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = storedValueIssueRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/issue", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return StoredValueIssueResponse.fromJson(jsonResult); + } + + /** + * Loads the payment method. + * + * @param storedValueLoadRequest {@link StoredValueLoadRequest } (required) + * @return {@link StoredValueLoadResponse } + * @throws ApiException if fails to make API call + */ + public StoredValueLoadResponse load(StoredValueLoadRequest storedValueLoadRequest) + throws ApiException, IOException { + return load(storedValueLoadRequest, null); + } + + /** + * Loads the payment method. + * + * @param storedValueLoadRequest {@link StoredValueLoadRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link StoredValueLoadResponse } + * @throws ApiException if fails to make API call + */ + public StoredValueLoadResponse load( + StoredValueLoadRequest storedValueLoadRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = storedValueLoadRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/load", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return StoredValueLoadResponse.fromJson(jsonResult); + } + + /** + * Merge the balance of two cards. + * + * @param storedValueBalanceMergeRequest {@link StoredValueBalanceMergeRequest } (required) + * @return {@link StoredValueBalanceMergeResponse } + * @throws ApiException if fails to make API call + */ + public StoredValueBalanceMergeResponse mergeBalance( + StoredValueBalanceMergeRequest storedValueBalanceMergeRequest) + throws ApiException, IOException { + return mergeBalance(storedValueBalanceMergeRequest, null); + } + + /** + * Merge the balance of two cards. + * + * @param storedValueBalanceMergeRequest {@link StoredValueBalanceMergeRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link StoredValueBalanceMergeResponse } + * @throws ApiException if fails to make API call + */ + public StoredValueBalanceMergeResponse mergeBalance( + StoredValueBalanceMergeRequest storedValueBalanceMergeRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = storedValueBalanceMergeRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/mergeBalance", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return StoredValueBalanceMergeResponse.fromJson(jsonResult); + } + + /** + * Voids a transaction. + * + * @param storedValueVoidRequest {@link StoredValueVoidRequest } (required) + * @return {@link StoredValueVoidResponse } + * @throws ApiException if fails to make API call + */ + public StoredValueVoidResponse voidTransaction(StoredValueVoidRequest storedValueVoidRequest) + throws ApiException, IOException { + return voidTransaction(storedValueVoidRequest, null); + } + + /** + * Voids a transaction. + * + * @param storedValueVoidRequest {@link StoredValueVoidRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link StoredValueVoidResponse } + * @throws ApiException if fails to make API call + */ + public StoredValueVoidResponse voidTransaction( + StoredValueVoidRequest storedValueVoidRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = storedValueVoidRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/voidTransaction", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return StoredValueVoidResponse.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/transfers/CapitalApi.java b/src/main/java/com/adyen/service/transfers/CapitalApi.java index 5eb8a9ef4..7b4e25f17 100644 --- a/src/main/java/com/adyen/service/transfers/CapitalApi.java +++ b/src/main/java/com/adyen/service/transfers/CapitalApi.java @@ -2,7 +2,7 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,149 +14,164 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.transfers.CapitalGrant; import com.adyen.model.transfers.CapitalGrantInfo; import com.adyen.model.transfers.CapitalGrants; -import com.adyen.model.transfers.RestServiceError; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; import java.util.HashMap; import java.util.Map; public class CapitalApi extends Service { - public static final String API_VERSION = "4"; - - protected String baseURL; - - /** - * Capital constructor in {@link com.adyen.service.transfers package}. - * @param client {@link Client } (required) - */ - public CapitalApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/btl/v4"); - } - - /** - * Capital constructor in {@link com.adyen.service.transfers package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public CapitalApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Get a capital account - * - * @return {@link CapitalGrants } - * @throws ApiException if fails to make API call - * @deprecated since Transfers API v4 - * Use the `/grants` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grants) instead. - */ - @Deprecated - public CapitalGrants getCapitalAccount() throws ApiException, IOException { - return getCapitalAccount(null, null); - } - - /** - * Get a capital account - * - * @param counterpartyAccountHolderId {@link String } Query: The counterparty account holder id. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link CapitalGrants } - * @throws ApiException if fails to make API call - * @deprecated since Transfers API v4 - * Use the `/grants` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grants) instead. - */ - @Deprecated - public CapitalGrants getCapitalAccount(String counterpartyAccountHolderId, RequestOptions requestOptions) throws ApiException, IOException { - //Add query params - Map queryParams = new HashMap<>(); - if (counterpartyAccountHolderId != null) { - queryParams.put("counterpartyAccountHolderId", counterpartyAccountHolderId); - } - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/grants", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); - return CapitalGrants.fromJson(jsonResult); - } - - /** - * Get grant reference details - * - * @param id {@link String } The unique identifier of the grant. (required) - * @return {@link CapitalGrant } - * @throws ApiException if fails to make API call - * @deprecated since Transfers API v4 - * Use the `/grants/{grantId}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grants/(grantId)) instead. - */ - @Deprecated - public CapitalGrant getGrantReferenceDetails(String id) throws ApiException, IOException { - return getGrantReferenceDetails(id, null); - } - - /** - * Get grant reference details - * - * @param id {@link String } The unique identifier of the grant. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link CapitalGrant } - * @throws ApiException if fails to make API call - * @deprecated since Transfers API v4 - * Use the `/grants/{grantId}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grants/(grantId)) instead. - */ - @Deprecated - public CapitalGrant getGrantReferenceDetails(String id, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); - - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/grants/{id}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return CapitalGrant.fromJson(jsonResult); - } - - /** - * Request a grant payout - * - * @param capitalGrantInfo {@link CapitalGrantInfo } (required) - * @return {@link CapitalGrant } - * @throws ApiException if fails to make API call - * @deprecated since Transfers API v4 - * Use the `/grants` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/post/grants) instead. - */ - @Deprecated - public CapitalGrant requestGrantPayout(CapitalGrantInfo capitalGrantInfo) throws ApiException, IOException { - return requestGrantPayout(capitalGrantInfo, null); + public static final String API_VERSION = "4"; + + protected String baseURL; + + /** + * Capital constructor in {@link com.adyen.service.transfers package}. + * + * @param client {@link Client } (required) + */ + public CapitalApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/btl/v4"); + } + + /** + * Capital constructor in {@link com.adyen.service.transfers package}. Please use this constructor + * only if you would like to pass along your own url for routing or testing purposes. The latest + * API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public CapitalApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } + + /** + * Get a capital account + * + * @return {@link CapitalGrants } + * @throws ApiException if fails to make API call + * @deprecated since Transfers API v4 Use the `/grants` endpoint from the [Capital + * API](https://docs.adyen.com/api-explorer/capital/latest/get/grants) instead. + */ + @Deprecated + public CapitalGrants getCapitalAccount() throws ApiException, IOException { + return getCapitalAccount(null, null); + } + + /** + * Get a capital account + * + * @param counterpartyAccountHolderId {@link String } Query: The counterparty account holder id. + * (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link CapitalGrants } + * @throws ApiException if fails to make API call + * @deprecated since Transfers API v4 Use the `/grants` endpoint from the [Capital + * API](https://docs.adyen.com/api-explorer/capital/latest/get/grants) instead. + */ + @Deprecated + public CapitalGrants getCapitalAccount( + String counterpartyAccountHolderId, RequestOptions requestOptions) + throws ApiException, IOException { + // Add query params + Map queryParams = new HashMap<>(); + if (counterpartyAccountHolderId != null) { + queryParams.put("counterpartyAccountHolderId", counterpartyAccountHolderId); } - /** - * Request a grant payout - * - * @param capitalGrantInfo {@link CapitalGrantInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link CapitalGrant } - * @throws ApiException if fails to make API call - * @deprecated since Transfers API v4 - * Use the `/grants` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/post/grants) instead. - */ - @Deprecated - public CapitalGrant requestGrantPayout(CapitalGrantInfo capitalGrantInfo, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = capitalGrantInfo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/grants", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return CapitalGrant.fromJson(jsonResult); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/grants", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); + return CapitalGrants.fromJson(jsonResult); + } + + /** + * Get grant reference details + * + * @param id {@link String } The unique identifier of the grant. (required) + * @return {@link CapitalGrant } + * @throws ApiException if fails to make API call + * @deprecated since Transfers API v4 Use the `/grants/{grantId}` endpoint from the [Capital + * API](https://docs.adyen.com/api-explorer/capital/latest/get/grants/(grantId)) instead. + */ + @Deprecated + public CapitalGrant getGrantReferenceDetails(String id) throws ApiException, IOException { + return getGrantReferenceDetails(id, null); + } + + /** + * Get grant reference details + * + * @param id {@link String } The unique identifier of the grant. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link CapitalGrant } + * @throws ApiException if fails to make API call + * @deprecated since Transfers API v4 Use the `/grants/{grantId}` endpoint from the [Capital + * API](https://docs.adyen.com/api-explorer/capital/latest/get/grants/(grantId)) instead. + */ + @Deprecated + public CapitalGrant getGrantReferenceDetails(String id, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/grants/{id}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return CapitalGrant.fromJson(jsonResult); + } + + /** + * Request a grant payout + * + * @param capitalGrantInfo {@link CapitalGrantInfo } (required) + * @return {@link CapitalGrant } + * @throws ApiException if fails to make API call + * @deprecated since Transfers API v4 Use the `/grants` endpoint from the [Capital + * API](https://docs.adyen.com/api-explorer/capital/latest/post/grants) instead. + */ + @Deprecated + public CapitalGrant requestGrantPayout(CapitalGrantInfo capitalGrantInfo) + throws ApiException, IOException { + return requestGrantPayout(capitalGrantInfo, null); + } + + /** + * Request a grant payout + * + * @param capitalGrantInfo {@link CapitalGrantInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link CapitalGrant } + * @throws ApiException if fails to make API call + * @deprecated since Transfers API v4 Use the `/grants` endpoint from the [Capital + * API](https://docs.adyen.com/api-explorer/capital/latest/post/grants) instead. + */ + @Deprecated + public CapitalGrant requestGrantPayout( + CapitalGrantInfo capitalGrantInfo, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = capitalGrantInfo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/grants", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return CapitalGrant.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/transfers/TransactionsApi.java b/src/main/java/com/adyen/service/transfers/TransactionsApi.java index 2e44fa1fe..570a190f1 100644 --- a/src/main/java/com/adyen/service/transfers/TransactionsApi.java +++ b/src/main/java/com/adyen/service/transfers/TransactionsApi.java @@ -2,7 +2,7 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,139 +14,188 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; -import java.time.OffsetDateTime; -import com.adyen.model.transfers.RestServiceError; +import com.adyen.model.RequestOptions; import com.adyen.model.transfers.Transaction; import com.adyen.model.transfers.TransactionSearchResponse; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; +import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; public class TransactionsApi extends Service { - public static final String API_VERSION = "4"; + public static final String API_VERSION = "4"; - protected String baseURL; + protected String baseURL; - /** - * Transactions constructor in {@link com.adyen.service.transfers package}. - * @param client {@link Client } (required) - */ - public TransactionsApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/btl/v4"); - } + /** + * Transactions constructor in {@link com.adyen.service.transfers package}. + * + * @param client {@link Client } (required) + */ + public TransactionsApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/btl/v4"); + } - /** - * Transactions constructor in {@link com.adyen.service.transfers package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public TransactionsApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } - - /** - * Get all transactions - * - * @param createdSince {@link OffsetDateTime } Only include transactions that have been created on or after this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**. (required) - * @param createdUntil {@link OffsetDateTime } Only include transactions that have been created on or before this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**. (required) - * @return {@link TransactionSearchResponse } - * @throws ApiException if fails to make API call - */ - public TransactionSearchResponse getAllTransactions(OffsetDateTime createdSince, OffsetDateTime createdUntil) throws ApiException, IOException { - return getAllTransactions(null, null, null, null, null, createdSince, createdUntil, null, null, null); - } + /** + * Transactions constructor in {@link com.adyen.service.transfers package}. Please use this + * constructor only if you would like to pass along your own url for routing or testing purposes. + * The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public TransactionsApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Get all transactions - * - * @param balancePlatform {@link String } Query: The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id). Required if you don't provide a `balanceAccountId` or `accountHolderId`. (optional) - * @param paymentInstrumentId {@link String } Query: The unique identifier of the [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_). To use this parameter, you must also provide a `balanceAccountId`, `accountHolderId`, or `balancePlatform`. The `paymentInstrumentId` must be related to the `balanceAccountId` or `accountHolderId` that you provide. (optional) - * @param accountHolderId {@link String } Query: The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/accountHolders/{id}__queryParam_id). Required if you don't provide a `balanceAccountId` or `balancePlatform`. If you provide a `balanceAccountId`, the `accountHolderId` must be related to the `balanceAccountId`. (optional) - * @param balanceAccountId {@link String } Query: The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id). Required if you don't provide an `accountHolderId` or `balancePlatform`. If you provide an `accountHolderId`, the `balanceAccountId` must be related to the `accountHolderId`. (optional) - * @param cursor {@link String } Query: The `cursor` returned in the links of the previous response. (optional) - * @param createdSince {@link OffsetDateTime } Query: Only include transactions that have been created on or after this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**. (required) - * @param createdUntil {@link OffsetDateTime } Query: Only include transactions that have been created on or before this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**. (required) - * @param sortOrder {@link String } Query: Determines the sort order of the returned transactions. The sort order is based on the creation date of the transaction. Possible values: - **asc**: Ascending order, from oldest to most recent. - **desc**: Descending order, from most recent to oldest. Default value: **asc**. (optional) - * @param limit {@link Integer } Query: The number of items returned per page, maximum of 100 items. By default, the response returns 10 items per page. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TransactionSearchResponse } - * @throws ApiException if fails to make API call - */ - public TransactionSearchResponse getAllTransactions(String balancePlatform, String paymentInstrumentId, String accountHolderId, String balanceAccountId, String cursor, OffsetDateTime createdSince, OffsetDateTime createdUntil, String sortOrder, Integer limit, RequestOptions requestOptions) throws ApiException, IOException { - //Add query params - Map queryParams = new HashMap<>(); - if (balancePlatform != null) { - queryParams.put("balancePlatform", balancePlatform); - } - if (paymentInstrumentId != null) { - queryParams.put("paymentInstrumentId", paymentInstrumentId); - } - if (accountHolderId != null) { - queryParams.put("accountHolderId", accountHolderId); - } - if (balanceAccountId != null) { - queryParams.put("balanceAccountId", balanceAccountId); - } - if (cursor != null) { - queryParams.put("cursor", cursor); - } - if (createdSince != null) { - queryParams.put("createdSince", createdSince.toString()); - } - if (createdUntil != null) { - queryParams.put("createdUntil", createdUntil.toString()); - } - if (sortOrder != null) { - queryParams.put("sortOrder", sortOrder); - } - if (limit != null) { - queryParams.put("limit", limit.toString()); - } + /** + * Get all transactions + * + * @param createdSince {@link OffsetDateTime } Only include transactions that have been created on + * or after this point in time. The value must be in ISO 8601 format. For example, + * **2021-05-30T15:07:40Z**. (required) + * @param createdUntil {@link OffsetDateTime } Only include transactions that have been created on + * or before this point in time. The value must be in ISO 8601 format. For example, + * **2021-05-30T15:07:40Z**. (required) + * @return {@link TransactionSearchResponse } + * @throws ApiException if fails to make API call + */ + public TransactionSearchResponse getAllTransactions( + OffsetDateTime createdSince, OffsetDateTime createdUntil) throws ApiException, IOException { + return getAllTransactions( + null, null, null, null, null, createdSince, createdUntil, null, null, null); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/transactions", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); - return TransactionSearchResponse.fromJson(jsonResult); + /** + * Get all transactions + * + * @param balancePlatform {@link String } Query: The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id). + * Required if you don't provide a `balanceAccountId` or + * `accountHolderId`. (optional) + * @param paymentInstrumentId {@link String } Query: The unique identifier of the [payment + * instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_). + * To use this parameter, you must also provide a `balanceAccountId`, + * `accountHolderId`, or `balancePlatform`. The + * `paymentInstrumentId` must be related to the `balanceAccountId` or + * `accountHolderId` that you provide. (optional) + * @param accountHolderId {@link String } Query: The unique identifier of the [account + * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/accountHolders/{id}__queryParam_id). + * Required if you don't provide a `balanceAccountId` or + * `balancePlatform`. If you provide a `balanceAccountId`, the + * `accountHolderId` must be related to the `balanceAccountId`. (optional) + * @param balanceAccountId {@link String } Query: The unique identifier of the [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id). + * Required if you don't provide an `accountHolderId` or + * `balancePlatform`. If you provide an `accountHolderId`, the + * `balanceAccountId` must be related to the `accountHolderId`. (optional) + * @param cursor {@link String } Query: The `cursor` returned in the links of the + * previous response. (optional) + * @param createdSince {@link OffsetDateTime } Query: Only include transactions that have been + * created on or after this point in time. The value must be in ISO 8601 format. For example, + * **2021-05-30T15:07:40Z**. (required) + * @param createdUntil {@link OffsetDateTime } Query: Only include transactions that have been + * created on or before this point in time. The value must be in ISO 8601 format. For example, + * **2021-05-30T15:07:40Z**. (required) + * @param sortOrder {@link String } Query: Determines the sort order of the returned transactions. + * The sort order is based on the creation date of the transaction. Possible values: - + * **asc**: Ascending order, from oldest to most recent. - **desc**: Descending order, from + * most recent to oldest. Default value: **asc**. (optional) + * @param limit {@link Integer } Query: The number of items returned per page, maximum of 100 + * items. By default, the response returns 10 items per page. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TransactionSearchResponse } + * @throws ApiException if fails to make API call + */ + public TransactionSearchResponse getAllTransactions( + String balancePlatform, + String paymentInstrumentId, + String accountHolderId, + String balanceAccountId, + String cursor, + OffsetDateTime createdSince, + OffsetDateTime createdUntil, + String sortOrder, + Integer limit, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add query params + Map queryParams = new HashMap<>(); + if (balancePlatform != null) { + queryParams.put("balancePlatform", balancePlatform); } - - /** - * Get a transaction - * - * @param id {@link String } The unique identifier of the transaction. (required) - * @return {@link Transaction } - * @throws ApiException if fails to make API call - */ - public Transaction getTransaction(String id) throws ApiException, IOException { - return getTransaction(id, null); + if (paymentInstrumentId != null) { + queryParams.put("paymentInstrumentId", paymentInstrumentId); + } + if (accountHolderId != null) { + queryParams.put("accountHolderId", accountHolderId); + } + if (balanceAccountId != null) { + queryParams.put("balanceAccountId", balanceAccountId); + } + if (cursor != null) { + queryParams.put("cursor", cursor); + } + if (createdSince != null) { + queryParams.put("createdSince", createdSince.toString()); + } + if (createdUntil != null) { + queryParams.put("createdUntil", createdUntil.toString()); + } + if (sortOrder != null) { + queryParams.put("sortOrder", sortOrder); + } + if (limit != null) { + queryParams.put("limit", limit.toString()); } - /** - * Get a transaction - * - * @param id {@link String } The unique identifier of the transaction. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link Transaction } - * @throws ApiException if fails to make API call - */ - public Transaction getTransaction(String id, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/transactions", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); + return TransactionSearchResponse.fromJson(jsonResult); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/transactions/{id}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return Transaction.fromJson(jsonResult); + /** + * Get a transaction + * + * @param id {@link String } The unique identifier of the transaction. (required) + * @return {@link Transaction } + * @throws ApiException if fails to make API call + */ + public Transaction getTransaction(String id) throws ApiException, IOException { + return getTransaction(id, null); + } + + /** + * Get a transaction + * + * @param id {@link String } The unique identifier of the transaction. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link Transaction } + * @throws ApiException if fails to make API call + */ + public Transaction getTransaction(String id, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/transactions/{id}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return Transaction.fromJson(jsonResult); + } } diff --git a/src/main/java/com/adyen/service/transfers/TransfersApi.java b/src/main/java/com/adyen/service/transfers/TransfersApi.java index b87c6233c..8b71f26d6 100644 --- a/src/main/java/com/adyen/service/transfers/TransfersApi.java +++ b/src/main/java/com/adyen/service/transfers/TransfersApi.java @@ -2,7 +2,7 @@ * Transfers API * * The version of the OpenAPI document: 4 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,261 +14,342 @@ import com.adyen.Client; import com.adyen.Service; import com.adyen.constants.ApiConstants; +import com.adyen.model.RequestOptions; import com.adyen.model.transfers.ApproveTransfersRequest; import com.adyen.model.transfers.CancelTransfersRequest; import com.adyen.model.transfers.FindTransfersResponse; -import java.time.OffsetDateTime; import com.adyen.model.transfers.ReturnTransferRequest; import com.adyen.model.transfers.ReturnTransferResponse; -import com.adyen.model.transfers.ServiceError; import com.adyen.model.transfers.Transfer; import com.adyen.model.transfers.TransferData; import com.adyen.model.transfers.TransferInfo; -import com.adyen.model.transfers.TransferServiceRestServiceError; -import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; - import java.io.IOException; +import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; public class TransfersApi extends Service { - public static final String API_VERSION = "4"; + public static final String API_VERSION = "4"; - protected String baseURL; - - /** - * Transfers constructor in {@link com.adyen.service.transfers package}. - * @param client {@link Client } (required) - */ - public TransfersApi(Client client) { - super(client); - this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/btl/v4"); - } + protected String baseURL; - /** - * Transfers constructor in {@link com.adyen.service.transfers package}. - * Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant. - * @param client {@link Client } (required) - * @param baseURL {@link String } (required) - */ - public TransfersApi(Client client, String baseURL) { - super(client); - this.baseURL = baseURL; - } + /** + * Transfers constructor in {@link com.adyen.service.transfers package}. + * + * @param client {@link Client } (required) + */ + public TransfersApi(Client client) { + super(client); + this.baseURL = createBaseURL("https://balanceplatform-api-test.adyen.com/btl/v4"); + } - /** - * Approve initiated transfers - * - * @param approveTransfersRequest {@link ApproveTransfersRequest } (required) - * @throws ApiException if fails to make API call - */ - public void approveInitiatedTransfers(ApproveTransfersRequest approveTransfersRequest) throws ApiException, IOException { - approveInitiatedTransfers(approveTransfersRequest, null); - } + /** + * Transfers constructor in {@link com.adyen.service.transfers package}. Please use this + * constructor only if you would like to pass along your own url for routing or testing purposes. + * The latest API version is defined in this class as a constant. + * + * @param client {@link Client } (required) + * @param baseURL {@link String } (required) + */ + public TransfersApi(Client client, String baseURL) { + super(client); + this.baseURL = baseURL; + } - /** - * Approve initiated transfers - * - * @param approveTransfersRequest {@link ApproveTransfersRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void approveInitiatedTransfers(ApproveTransfersRequest approveTransfersRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = approveTransfersRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/transfers/approve", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - } + /** + * Approve initiated transfers + * + * @param approveTransfersRequest {@link ApproveTransfersRequest } (required) + * @throws ApiException if fails to make API call + */ + public void approveInitiatedTransfers(ApproveTransfersRequest approveTransfersRequest) + throws ApiException, IOException { + approveInitiatedTransfers(approveTransfersRequest, null); + } - /** - * Cancel initiated transfers - * - * @param cancelTransfersRequest {@link CancelTransfersRequest } (required) - * @throws ApiException if fails to make API call - */ - public void cancelInitiatedTransfers(CancelTransfersRequest cancelTransfersRequest) throws ApiException, IOException { - cancelInitiatedTransfers(cancelTransfersRequest, null); - } + /** + * Approve initiated transfers + * + * @param approveTransfersRequest {@link ApproveTransfersRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void approveInitiatedTransfers( + ApproveTransfersRequest approveTransfersRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = approveTransfersRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/transfers/approve", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + } - /** - * Cancel initiated transfers - * - * @param cancelTransfersRequest {@link CancelTransfersRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @throws ApiException if fails to make API call - */ - public void cancelInitiatedTransfers(CancelTransfersRequest cancelTransfersRequest, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = cancelTransfersRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/transfers/cancel", null); - resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - } + /** + * Cancel initiated transfers + * + * @param cancelTransfersRequest {@link CancelTransfersRequest } (required) + * @throws ApiException if fails to make API call + */ + public void cancelInitiatedTransfers(CancelTransfersRequest cancelTransfersRequest) + throws ApiException, IOException { + cancelInitiatedTransfers(cancelTransfersRequest, null); + } - /** - * Get all transfers - * - * @param createdSince {@link OffsetDateTime } Only include transfers that have been created on or after this point in time. The value must be in ISO 8601 format and not earlier than 6 months before the `createdUntil` date. For example, **2021-05-30T15:07:40Z**. (required) - * @param createdUntil {@link OffsetDateTime } Only include transfers that have been created on or before this point in time. The value must be in ISO 8601 format and not later than 6 months after the `createdSince` date. For example, **2021-05-30T15:07:40Z**. (required) - * @return {@link FindTransfersResponse } - * @throws ApiException if fails to make API call - */ - public FindTransfersResponse getAllTransfers(OffsetDateTime createdSince, OffsetDateTime createdUntil) throws ApiException, IOException { - return getAllTransfers(null, null, null, null, null, null, createdSince, createdUntil, null, null, null, null); - } + /** + * Cancel initiated transfers + * + * @param cancelTransfersRequest {@link CancelTransfersRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @throws ApiException if fails to make API call + */ + public void cancelInitiatedTransfers( + CancelTransfersRequest cancelTransfersRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = cancelTransfersRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/transfers/cancel", null); + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + } - /** - * Get all transfers - * - * @param balancePlatform {@link String } Query: The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id). Required if you don't provide a `balanceAccountId` or `accountHolderId`. (optional) - * @param accountHolderId {@link String } Query: The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/accountHolders/{id}__queryParam_id). Required if you don't provide a `balanceAccountId` or `balancePlatform`. If you provide a `balanceAccountId`, the `accountHolderId` must be related to the `balanceAccountId`. (optional) - * @param balanceAccountId {@link String } Query: The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id). Required if you don't provide an `accountHolderId` or `balancePlatform`. If you provide an `accountHolderId`, the `balanceAccountId` must be related to the `accountHolderId`. (optional) - * @param paymentInstrumentId {@link String } Query: The unique identifier of the [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_). To use this parameter, you must also provide a `balanceAccountId`, `accountHolderId`, or `balancePlatform`. The `paymentInstrumentId` must be related to the `balanceAccountId` or `accountHolderId` that you provide. (optional) - * @param reference {@link String } Query: The reference you provided in the POST [/transfers](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers) request (optional) - * @param category {@link String } Query: The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users. (optional) - * @param createdSince {@link OffsetDateTime } Query: Only include transfers that have been created on or after this point in time. The value must be in ISO 8601 format and not earlier than 6 months before the `createdUntil` date. For example, **2021-05-30T15:07:40Z**. (required) - * @param createdUntil {@link OffsetDateTime } Query: Only include transfers that have been created on or before this point in time. The value must be in ISO 8601 format and not later than 6 months after the `createdSince` date. For example, **2021-05-30T15:07:40Z**. (required) - * @param sortOrder {@link String } Query: Determines the sort order of the returned transfers. The sort order is based on the creation date of the transfers. Possible values: - **asc**: Ascending order, from oldest to most recent. - **desc**: Descending order, from most recent to oldest. Default value: **asc**. (optional) - * @param cursor {@link String } Query: The `cursor` returned in the links of the previous response. (optional) - * @param limit {@link Integer } Query: The number of items returned per page, maximum of 100 items. By default, the response returns 10 items per page. (optional) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link FindTransfersResponse } - * @throws ApiException if fails to make API call - */ - public FindTransfersResponse getAllTransfers(String balancePlatform, String accountHolderId, String balanceAccountId, String paymentInstrumentId, String reference, String category, OffsetDateTime createdSince, OffsetDateTime createdUntil, String sortOrder, String cursor, Integer limit, RequestOptions requestOptions) throws ApiException, IOException { - //Add query params - Map queryParams = new HashMap<>(); - if (balancePlatform != null) { - queryParams.put("balancePlatform", balancePlatform); - } - if (accountHolderId != null) { - queryParams.put("accountHolderId", accountHolderId); - } - if (balanceAccountId != null) { - queryParams.put("balanceAccountId", balanceAccountId); - } - if (paymentInstrumentId != null) { - queryParams.put("paymentInstrumentId", paymentInstrumentId); - } - if (reference != null) { - queryParams.put("reference", reference); - } - if (category != null) { - queryParams.put("category", category); - } - if (createdSince != null) { - queryParams.put("createdSince", createdSince.toString()); - } - if (createdUntil != null) { - queryParams.put("createdUntil", createdUntil.toString()); - } - if (sortOrder != null) { - queryParams.put("sortOrder", sortOrder); - } - if (cursor != null) { - queryParams.put("cursor", cursor); - } - if (limit != null) { - queryParams.put("limit", limit.toString()); - } + /** + * Get all transfers + * + * @param createdSince {@link OffsetDateTime } Only include transfers that have been created on or + * after this point in time. The value must be in ISO 8601 format and not earlier than 6 + * months before the `createdUntil` date. For example, **2021-05-30T15:07:40Z**. + * (required) + * @param createdUntil {@link OffsetDateTime } Only include transfers that have been created on or + * before this point in time. The value must be in ISO 8601 format and not later than 6 months + * after the `createdSince` date. For example, **2021-05-30T15:07:40Z**. (required) + * @return {@link FindTransfersResponse } + * @throws ApiException if fails to make API call + */ + public FindTransfersResponse getAllTransfers( + OffsetDateTime createdSince, OffsetDateTime createdUntil) throws ApiException, IOException { + return getAllTransfers( + null, null, null, null, null, null, createdSince, createdUntil, null, null, null, null); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/transfers", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); - return FindTransfersResponse.fromJson(jsonResult); + /** + * Get all transfers + * + * @param balancePlatform {@link String } Query: The unique identifier of the [balance + * platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id). + * Required if you don't provide a `balanceAccountId` or + * `accountHolderId`. (optional) + * @param accountHolderId {@link String } Query: The unique identifier of the [account + * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/accountHolders/{id}__queryParam_id). + * Required if you don't provide a `balanceAccountId` or + * `balancePlatform`. If you provide a `balanceAccountId`, the + * `accountHolderId` must be related to the `balanceAccountId`. (optional) + * @param balanceAccountId {@link String } Query: The unique identifier of the [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id). + * Required if you don't provide an `accountHolderId` or + * `balancePlatform`. If you provide an `accountHolderId`, the + * `balanceAccountId` must be related to the `accountHolderId`. (optional) + * @param paymentInstrumentId {@link String } Query: The unique identifier of the [payment + * instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_). + * To use this parameter, you must also provide a `balanceAccountId`, + * `accountHolderId`, or `balancePlatform`. The + * `paymentInstrumentId` must be related to the `balanceAccountId` or + * `accountHolderId` that you provide. (optional) + * @param reference {@link String } Query: The reference you provided in the POST + * [/transfers](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers) request + * (optional) + * @param category {@link String } Query: The type of transfer. Possible values: - **bank**: + * Transfer to a [transfer + * instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) + * or a bank account. - **internal**: Transfer to another [balance + * account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) + * within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - + * **platformPayment**: Fund movements related to payments that are acquired for your users. + * (optional) + * @param createdSince {@link OffsetDateTime } Query: Only include transfers that have been + * created on or after this point in time. The value must be in ISO 8601 format and not + * earlier than 6 months before the `createdUntil` date. For example, + * **2021-05-30T15:07:40Z**. (required) + * @param createdUntil {@link OffsetDateTime } Query: Only include transfers that have been + * created on or before this point in time. The value must be in ISO 8601 format and not later + * than 6 months after the `createdSince` date. For example, + * **2021-05-30T15:07:40Z**. (required) + * @param sortOrder {@link String } Query: Determines the sort order of the returned transfers. + * The sort order is based on the creation date of the transfers. Possible values: - **asc**: + * Ascending order, from oldest to most recent. - **desc**: Descending order, from most recent + * to oldest. Default value: **asc**. (optional) + * @param cursor {@link String } Query: The `cursor` returned in the links of the + * previous response. (optional) + * @param limit {@link Integer } Query: The number of items returned per page, maximum of 100 + * items. By default, the response returns 10 items per page. (optional) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link FindTransfersResponse } + * @throws ApiException if fails to make API call + */ + public FindTransfersResponse getAllTransfers( + String balancePlatform, + String accountHolderId, + String balanceAccountId, + String paymentInstrumentId, + String reference, + String category, + OffsetDateTime createdSince, + OffsetDateTime createdUntil, + String sortOrder, + String cursor, + Integer limit, + RequestOptions requestOptions) + throws ApiException, IOException { + // Add query params + Map queryParams = new HashMap<>(); + if (balancePlatform != null) { + queryParams.put("balancePlatform", balancePlatform); } - - /** - * Get a transfer - * - * @param id {@link String } Unique identifier of the transfer. (required) - * @return {@link TransferData } - * @throws ApiException if fails to make API call - */ - public TransferData getTransfer(String id) throws ApiException, IOException { - return getTransfer(id, null); + if (accountHolderId != null) { + queryParams.put("accountHolderId", accountHolderId); + } + if (balanceAccountId != null) { + queryParams.put("balanceAccountId", balanceAccountId); + } + if (paymentInstrumentId != null) { + queryParams.put("paymentInstrumentId", paymentInstrumentId); + } + if (reference != null) { + queryParams.put("reference", reference); + } + if (category != null) { + queryParams.put("category", category); + } + if (createdSince != null) { + queryParams.put("createdSince", createdSince.toString()); + } + if (createdUntil != null) { + queryParams.put("createdUntil", createdUntil.toString()); + } + if (sortOrder != null) { + queryParams.put("sortOrder", sortOrder); + } + if (cursor != null) { + queryParams.put("cursor", cursor); + } + if (limit != null) { + queryParams.put("limit", limit.toString()); } - /** - * Get a transfer - * - * @param id {@link String } Unique identifier of the transfer. (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link TransferData } - * @throws ApiException if fails to make API call - */ - public TransferData getTransfer(String id, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (id == null) { - throw new IllegalArgumentException("Please provide the id path parameter"); - } - pathParams.put("id", id); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/transfers", null); + String jsonResult = + resource.request( + requestBody, requestOptions, ApiConstants.HttpMethod.GET, null, queryParams); + return FindTransfersResponse.fromJson(jsonResult); + } - String requestBody = null; - Resource resource = new Resource(this, this.baseURL + "/transfers/{id}", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); - return TransferData.fromJson(jsonResult); - } + /** + * Get a transfer + * + * @param id {@link String } Unique identifier of the transfer. (required) + * @return {@link TransferData } + * @throws ApiException if fails to make API call + */ + public TransferData getTransfer(String id) throws ApiException, IOException { + return getTransfer(id, null); + } - /** - * Return a transfer - * - * @param transferId {@link String } The unique identifier of the transfer to be returned. (required) - * @param returnTransferRequest {@link ReturnTransferRequest } (required) - * @return {@link ReturnTransferResponse } - * @throws ApiException if fails to make API call - */ - public ReturnTransferResponse returnTransfer(String transferId, ReturnTransferRequest returnTransferRequest) throws ApiException, IOException { - return returnTransfer(transferId, returnTransferRequest, null); + /** + * Get a transfer + * + * @param id {@link String } Unique identifier of the transfer. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link TransferData } + * @throws ApiException if fails to make API call + */ + public TransferData getTransfer(String id, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); } + pathParams.put("id", id); - /** - * Return a transfer - * - * @param transferId {@link String } The unique identifier of the transfer to be returned. (required) - * @param returnTransferRequest {@link ReturnTransferRequest } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link ReturnTransferResponse } - * @throws ApiException if fails to make API call - */ - public ReturnTransferResponse returnTransfer(String transferId, ReturnTransferRequest returnTransferRequest, RequestOptions requestOptions) throws ApiException, IOException { - //Add path params - Map pathParams = new HashMap<>(); - if (transferId == null) { - throw new IllegalArgumentException("Please provide the transferId path parameter"); - } - pathParams.put("transferId", transferId); + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/transfers/{id}", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.GET, pathParams); + return TransferData.fromJson(jsonResult); + } - String requestBody = returnTransferRequest.toJson(); - Resource resource = new Resource(this, this.baseURL + "/transfers/{transferId}/returns", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); - return ReturnTransferResponse.fromJson(jsonResult); - } + /** + * Return a transfer + * + * @param transferId {@link String } The unique identifier of the transfer to be returned. + * (required) + * @param returnTransferRequest {@link ReturnTransferRequest } (required) + * @return {@link ReturnTransferResponse } + * @throws ApiException if fails to make API call + */ + public ReturnTransferResponse returnTransfer( + String transferId, ReturnTransferRequest returnTransferRequest) + throws ApiException, IOException { + return returnTransfer(transferId, returnTransferRequest, null); + } - /** - * Transfer funds - * - * @param transferInfo {@link TransferInfo } (required) - * @return {@link Transfer } - * @throws ApiException if fails to make API call - */ - public Transfer transferFunds(TransferInfo transferInfo) throws ApiException, IOException { - return transferFunds(transferInfo, null); + /** + * Return a transfer + * + * @param transferId {@link String } The unique identifier of the transfer to be returned. + * (required) + * @param returnTransferRequest {@link ReturnTransferRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ReturnTransferResponse } + * @throws ApiException if fails to make API call + */ + public ReturnTransferResponse returnTransfer( + String transferId, ReturnTransferRequest returnTransferRequest, RequestOptions requestOptions) + throws ApiException, IOException { + // Add path params + Map pathParams = new HashMap<>(); + if (transferId == null) { + throw new IllegalArgumentException("Please provide the transferId path parameter"); } + pathParams.put("transferId", transferId); - /** - * Transfer funds - * - * @param transferInfo {@link TransferInfo } (required) - * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) - * @return {@link Transfer } - * @throws ApiException if fails to make API call - */ - public Transfer transferFunds(TransferInfo transferInfo, RequestOptions requestOptions) throws ApiException, IOException { - String requestBody = transferInfo.toJson(); - Resource resource = new Resource(this, this.baseURL + "/transfers", null); - String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); - return Transfer.fromJson(jsonResult); - } + String requestBody = returnTransferRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/transfers/{transferId}/returns", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, pathParams); + return ReturnTransferResponse.fromJson(jsonResult); + } + + /** + * Transfer funds + * + * @param transferInfo {@link TransferInfo } (required) + * @return {@link Transfer } + * @throws ApiException if fails to make API call + */ + public Transfer transferFunds(TransferInfo transferInfo) throws ApiException, IOException { + return transferFunds(transferInfo, null); + } + + /** + * Transfer funds + * + * @param transferInfo {@link TransferInfo } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link Transfer } + * @throws ApiException if fails to make API call + */ + public Transfer transferFunds(TransferInfo transferInfo, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = transferInfo.toJson(); + Resource resource = new Resource(this, this.baseURL + "/transfers", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return Transfer.fromJson(jsonResult); + } } diff --git a/src/test/java/com/adyen/model/nexo/PredefinedContentHelperTest.java b/src/test/java/com/adyen/model/nexo/PredefinedContentHelperTest.java index c44a52596..34c1c88f4 100644 --- a/src/test/java/com/adyen/model/nexo/PredefinedContentHelperTest.java +++ b/src/test/java/com/adyen/model/nexo/PredefinedContentHelperTest.java @@ -1,97 +1,97 @@ package com.adyen.model.nexo; -import org.junit.Test; - -import java.util.Map; -import java.util.Optional; - import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; -/** - * Tests for {@link PredefinedContentHelper}. - */ +import java.util.Map; +import java.util.Optional; +import org.junit.Test; + +/** Tests for {@link PredefinedContentHelper}. */ public class PredefinedContentHelperTest { - @Test - public void testShouldExtractValidEvent() { - String referenceId = "TransactionID=oLkO001517998574000&TimeStamp=2018-02-07T10%3a16%3a14.000Z&event=PIN_ENTERED"; - PredefinedContentHelper helper = new PredefinedContentHelper(referenceId); - - Optional event = helper.getEvent(); - assertTrue("Event should be present", event.isPresent()); - assertEquals(PredefinedContentHelper.DisplayNotificationEvent.PIN_ENTERED, event.get()); - } - - @Test - public void testShouldReturnEmptyForInvalidEvent() { - PredefinedContentHelper helper = new PredefinedContentHelper("event=INVALID_EVENT"); - - assertFalse("Event should not be present for invalid value", helper.getEvent().isPresent()); - } - - @Test - public void testShouldExtractTransactionId() { - PredefinedContentHelper helper = new PredefinedContentHelper("TransactionID=12345&TimeStamp=2018-02-07T10%3a16%3a14.000Z&event=PIN_ENTERED"); - - Optional transactionId = helper.getTransactionId(); - assertTrue("TransactionID should be present", transactionId.isPresent()); - assertEquals("12345", transactionId.get()); - } - - @Test - public void testShouldExtractTimeStamp() { - PredefinedContentHelper helper = new PredefinedContentHelper("TimeStamp=2024-07-11T12:00:00Z"); - - Optional timeStamp = helper.getTimeStamp(); - assertTrue("TimeStamp should be present", timeStamp.isPresent()); - assertEquals("2024-07-11T12:00:00Z", timeStamp.get()); - } - - @Test - public void testShouldExtractArbitraryKey() { - PredefinedContentHelper helper = new PredefinedContentHelper("foo=bar&baz=qux"); - - Optional foo = helper.get("foo"); - assertTrue("Value for 'foo' should be present", foo.isPresent()); - assertEquals("bar", foo.get()); - - Optional baz = helper.get("baz"); - assertTrue("Value for 'baz' should be present", baz.isPresent()); - assertEquals("qux", baz.get()); - - assertFalse("Value for 'missing' should not be present", helper.get("missing").isPresent()); - } - - @Test - public void testShouldConvertParamsToMap() { - PredefinedContentHelper helper = new PredefinedContentHelper("a=1&b=2&event=WAIT_FOR_PIN"); - - Map map = helper.toMap(); - assertEquals(3, map.size()); - assertEquals("1", map.get("a")); - assertEquals("2", map.get("b")); - assertEquals("WAIT_FOR_PIN", map.get("event")); - } - - @Test - public void testShouldHandleEmptyReferenceId() { - PredefinedContentHelper helper = new PredefinedContentHelper(""); - - assertFalse(helper.getEvent().isPresent()); - assertFalse(helper.getTransactionId().isPresent()); - assertFalse(helper.getTimeStamp().isPresent()); - assertTrue(helper.toMap().isEmpty()); - } - - @Test - public void testShouldHandleNullReferenceId() { - PredefinedContentHelper helper = new PredefinedContentHelper(null); - - assertFalse(helper.getEvent().isPresent()); - assertFalse(helper.getTransactionId().isPresent()); - assertFalse(helper.getTimeStamp().isPresent()); - assertTrue(helper.toMap().isEmpty()); - } -} \ No newline at end of file + @Test + public void testShouldExtractValidEvent() { + String referenceId = + "TransactionID=oLkO001517998574000&TimeStamp=2018-02-07T10%3a16%3a14.000Z&event=PIN_ENTERED"; + PredefinedContentHelper helper = new PredefinedContentHelper(referenceId); + + Optional event = helper.getEvent(); + assertTrue("Event should be present", event.isPresent()); + assertEquals(PredefinedContentHelper.DisplayNotificationEvent.PIN_ENTERED, event.get()); + } + + @Test + public void testShouldReturnEmptyForInvalidEvent() { + PredefinedContentHelper helper = new PredefinedContentHelper("event=INVALID_EVENT"); + + assertFalse("Event should not be present for invalid value", helper.getEvent().isPresent()); + } + + @Test + public void testShouldExtractTransactionId() { + PredefinedContentHelper helper = + new PredefinedContentHelper( + "TransactionID=12345&TimeStamp=2018-02-07T10%3a16%3a14.000Z&event=PIN_ENTERED"); + + Optional transactionId = helper.getTransactionId(); + assertTrue("TransactionID should be present", transactionId.isPresent()); + assertEquals("12345", transactionId.get()); + } + + @Test + public void testShouldExtractTimeStamp() { + PredefinedContentHelper helper = new PredefinedContentHelper("TimeStamp=2024-07-11T12:00:00Z"); + + Optional timeStamp = helper.getTimeStamp(); + assertTrue("TimeStamp should be present", timeStamp.isPresent()); + assertEquals("2024-07-11T12:00:00Z", timeStamp.get()); + } + + @Test + public void testShouldExtractArbitraryKey() { + PredefinedContentHelper helper = new PredefinedContentHelper("foo=bar&baz=qux"); + + Optional foo = helper.get("foo"); + assertTrue("Value for 'foo' should be present", foo.isPresent()); + assertEquals("bar", foo.get()); + + Optional baz = helper.get("baz"); + assertTrue("Value for 'baz' should be present", baz.isPresent()); + assertEquals("qux", baz.get()); + + assertFalse("Value for 'missing' should not be present", helper.get("missing").isPresent()); + } + + @Test + public void testShouldConvertParamsToMap() { + PredefinedContentHelper helper = new PredefinedContentHelper("a=1&b=2&event=WAIT_FOR_PIN"); + + Map map = helper.toMap(); + assertEquals(3, map.size()); + assertEquals("1", map.get("a")); + assertEquals("2", map.get("b")); + assertEquals("WAIT_FOR_PIN", map.get("event")); + } + + @Test + public void testShouldHandleEmptyReferenceId() { + PredefinedContentHelper helper = new PredefinedContentHelper(""); + + assertFalse(helper.getEvent().isPresent()); + assertFalse(helper.getTransactionId().isPresent()); + assertFalse(helper.getTimeStamp().isPresent()); + assertTrue(helper.toMap().isEmpty()); + } + + @Test + public void testShouldHandleNullReferenceId() { + PredefinedContentHelper helper = new PredefinedContentHelper(null); + + assertFalse(helper.getEvent().isPresent()); + assertFalse(helper.getTransactionId().isPresent()); + assertFalse(helper.getTimeStamp().isPresent()); + assertTrue(helper.toMap().isEmpty()); + } +}